~ubuntu-branches/ubuntu/raring/php5/raring

« back to all changes in this revision

Viewing changes to autom4te.cache/output.0

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-18 16:10:26 UTC
  • mfrom: (1.1.24) (0.3.58 sid)
  • Revision ID: package-import@ubuntu.com-20120618161026-hg1fc5r9z1a4hlqz
Tags: 5.4.4-1ubuntu1
* Merge from Debian unstable. Remaining changes:
  - d/rules: Simplify apache config settings since we never build 
    interbase or firebird.
  - debian/rules: export DEB_HOST_MULTIARCH properly.
  - Add build-dependency on lemon, which we now need.
  - Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
  - Dropped libcurl-dev not in the archive.
  - debian/control: replace build-depends on mysql-server with
    mysql-server-core-5.5 and mysql-client-5.5 to avoid upstart and
    mysql-server-5.5 postinst confusion with starting up multiple
    mysqlds listening on the same port.
  - Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions
    already in universe.
  - Dropped libonig-dev and libqgdbm since its in universe. (libonig MIR
    has been declined due to an inactive upstream. So this is probably
    a permanent change).
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests
* Dropped Changes:
  * d/rules: enable Suhosin patch with PHP5_SUHOSIN=yes -- Upstream suhosin
    has been slow to adopt PHP 5.4, and is showing signs of disengagement.
    Therefore, we will follow Debian's lead and drop Suhosin for now.
  - d/control: build-depend on mysql 5.5 instead of 5.1 for running tests.
    -- Debian just deps on mysql-server
  - Suggest php5-suhosin rather than recommends. -- Dropping suhosin
  - d/setup-mysql.sh: modify to work with mysql 5.5 differences -- superseded
    in Debian.
  - Only build php5-sqlite for sqlite3, dropping the obsolete sqlite2. --
    superseded in Debian
  - d/maxlifetime: Improve maxlifetime script to scan for more SAPIs and 
    scan all *.ini in conf.d directory. -- Change came from Debian
  - d/libapache2-mod-php5.postinst,libapache2-mod-php5filter.postinst: 
    Restart apache on first install to ensure module is fully enabled.
    -- Change came from Debian
  - debian/patches/php5-CVE-2012-1823.patch: filter query strings that
    are prefixed with '-' -- Fixed upstream
  - debian/control: Recommend php5-dev for php-pear. -- This was a poorly
    conceived idea anyway.
  - Pre-Depend on a new enough version of dpkg for dpkg-maintscript-helper
    rather than checking whether it exists at run-time, leading to more
    predictable behaviour on upgrades. -- Applied in Debian
  - d/p/gd-multiarch-fix.patch: superseded
* d/NEWS: add note explaining that SUHOSIN is no longer enabled in the
  Ubuntu packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
@%:@! /bin/sh
2
 
 
3
 
 
4
 
 
5
 
 
6
 
 
7
 
 
8
 
 
9
 
 
10
 
 
11
 
 
12
 
 
13
 
 
14
 
 
15
 
 
16
 
 
17
 
 
18
 
 
19
 
 
20
 
 
21
 
 
22
 
 
23
 
 
24
 
 
25
 
# Forbidden tokens and exceptions.
26
 
 
27
 
 
28
 
 
29
 
# Actually reserved by M4sh.
30
 
 
31
 
# Wrap our cleanup prior to m4sugar's cleanup.
32
 
 
33
 
# All the M4sugar macros start with `m4_', except `dnl' kept as is
34
 
# for sake of simplicity.
35
 
 
36
 
 
37
 
 
38
 
# If __m4_version__ is defined, we assume that we are being run by M4
39
 
# 1.6 or newer, and thus that  recursion is linear and debugmode(d)
40
 
# is available for faster checks of dereferencing undefined macros.
41
 
# But if it is missing, we assume we are being run by M4 1.4.x, that
42
 
#  recursion is quadratic, and that we need foreach-based
43
 
# replacement macros.  Use the raw builtin to avoid tripping up
44
 
# include tracing.
45
 
#                                                  -*- Autoconf -*-
46
 
# This file is part of Autoconf.
47
 
# foreach-based replacements for recursive functions.
48
 
# Speeds up GNU M4 1.4.x by avoiding quadratic $@ recursion, but penalizes
49
 
# GNU M4 1.6 by requiring more memory and macro expansions.
50
 
#
51
 
# Copyright (C) 2008 Free Software Foundation, Inc.
52
 
#
53
 
# This program is free software: you can redistribute it and/or modify
54
 
# it under the terms of the GNU General Public License as published by
55
 
# the Free Software Foundation; either version 2, or (at your option)
56
 
# any later version.
57
 
#
58
 
# This program is distributed in the hope that it will be useful,
59
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
60
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
61
 
# GNU General Public License for more details.
62
 
#
63
 
# You should have received a copy of the GNU General Public License
64
 
# along with this program; if not, write to the Free Software
65
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
66
 
# 02110-1301, USA.
67
 
#
68
 
# As a special exception, the Free Software Foundation gives unlimited
69
 
# permission to copy, distribute and modify the configure scripts that
70
 
# are the output of Autoconf.  You need not follow the terms of the GNU
71
 
# General Public License when using or distributing such scripts, even
72
 
# though portions of the text of Autoconf appear in them.  The GNU
73
 
# General Public License (GPL) does govern all other use of the material
74
 
# that constitutes the Autoconf program.
75
 
#
76
 
# Certain portions of the Autoconf source text are designed to be copied
77
 
# (in certain cases, depending on the input) into the output of
78
 
# Autoconf.  We call these the "data" portions.  The rest of the Autoconf
79
 
# source text consists of comments plus executable code that decides which
80
 
# of the data portions to output in any given case.  We call these
81
 
# comments and executable code the "non-data" portions.  Autoconf never
82
 
# copies any of the non-data portions into its output.
83
 
#
84
 
# This special exception to the GPL applies to versions of Autoconf
85
 
# released by the Free Software Foundation.  When you make and
86
 
# distribute a modified version of Autoconf, you may extend this special
87
 
# exception to the GPL to apply to your modified version as well, *unless*
88
 
# your modified version has the potential to copy into its output some
89
 
# of the text that was the non-data portion of the version that you started
90
 
# with.  (In other words, unless your change moves or copies text from
91
 
# the non-data portions to the data portions.)  If your modification has
92
 
# such potential, you must delete any notice of this special exception
93
 
# to the GPL from your modified version.
94
 
#
95
 
# Written by Eric Blake.
96
 
#
97
 
 
98
 
# In M4 1.4.x, every byte of $@ is rescanned.  This means that an
99
 
# algorithm on n arguments that recurses with one less argument each
100
 
# iteration will scan n * (n + 1) / 2 arguments, for O(n^2) time.  In
101
 
# M4 1.6, this was fixed so that $@ is only scanned once, then
102
 
# back-references are made to information stored about the scan.
103
 
# Thus, n iterations need only scan n arguments, for O(n) time.
104
 
# Additionally, in M4 1.4.x, recursive algorithms did not clean up
105
 
# memory very well, requiring O(n^2) memory rather than O(n) for n
106
 
# iterations.
107
 
#
108
 
# This file is designed to overcome the quadratic nature of $@
109
 
# recursion by writing a variant of m4_foreach that uses m4_for rather
110
 
# than $@ recursion to operate on the list.  This involves more macro
111
 
# expansions, but avoids the need to rescan a quadratic number of
112
 
# arguments, making these replacements very attractive for M4 1.4.x.
113
 
# On the other hand, in any version of M4, expanding additional macros
114
 
# costs additional time; therefore, in M4 1.6, where $@ recursion uses
115
 
# fewer macros, these replacements actually pessimize performance.
116
 
# Additionally, the use of $10 to mean the tenth argument violates
117
 
# POSIX; although all versions of m4 1.4.x support this meaning, a
118
 
# future m4 version may switch to take it as the first argument
119
 
# concatenated with a literal 0, so the implementations in this file
120
 
# are not future-proof.  Thus, this file is conditionally included as
121
 
# part of m4_init(), only when it is detected that M4 probably has
122
 
# quadratic behavior (ie. it lacks the macro __m4_version__).
123
 
#
124
 
# Please keep this file in sync with m4sugar.m4.
125
 
 
126
 
# m4_foreach(VARIABLE, LIST, EXPRESSION)
127
 
# --------------------------------------
128
 
# Expand EXPRESSION assigning each value of the LIST to VARIABLE.
129
 
# LIST should have the form `item_1, item_2, ..., item_n', i.e. the
130
 
# whole list must *quoted*.  Quote members too if you don't want them
131
 
# to be expanded.
132
 
#
133
 
# This version minimizes the number of times that $@ is evaluated by
134
 
# using m4_for to generate a boilerplate into VARIABLE then passing $@
135
 
# to that temporary macro.  Thus, the recursion is done in m4_for
136
 
# without reparsing any user input, and is not quadratic.  For an idea
137
 
# of how this works, note that m4_foreach(i,[1,2],[i]) defines i to be
138
 
#   m4_define([$1],[$3])$2[]m4_define([$1],[$4])$2[]m4_popdef([i])
139
 
# then calls i([i],[i],[1],[2]).
140
 
 
141
 
 
142
 
 
143
 
 
144
 
 
145
 
 
146
 
# m4_case(SWITCH, VAL1, IF-VAL1, VAL2, IF-VAL2, ..., DEFAULT)
147
 
# -----------------------------------------------------------
148
 
# Find the first VAL that SWITCH matches, and expand the corresponding
149
 
# IF-VAL.  If there are no matches, expand DEFAULT.
150
 
#
151
 
# Use m4_for to create a temporary macro in terms of a boilerplate
152
 
# m4_if with final cleanup.  If $# is even, we have DEFAULT; if it is
153
 
# odd, then rounding the last $# up in the temporary macro is
154
 
# harmless.  For example, both m4_case(1,2,3,4,5) and
155
 
# m4_case(1,2,3,4,5,6) result in the intermediate _m4_case being
156
 
#   m4_if([$1],[$2],[$3],[$1],[$4],[$5],_m4_popdef([_m4_case])[$6])
157
 
 
158
 
 
159
 
 
160
 
 
161
 
# m4_bmatch(SWITCH, RE1, VAL1, RE2, VAL2, ..., DEFAULT)
162
 
# -----------------------------------------------------
163
 
# m4 equivalent of
164
 
#
165
 
# if (SWITCH =~ RE1)
166
 
#   VAL1;
167
 
# elif (SWITCH =~ RE2)
168
 
#   VAL2;
169
 
# elif ...
170
 
#   ...
171
 
# else
172
 
#   DEFAULT
173
 
#
174
 
# We build the temporary macro _m4_b:
175
 
#   m4_define([_m4_b], _m4_defn([_m4_bmatch]))_m4_b([$1], [$2], [$3])...
176
 
#   _m4_b([$1], [$m-1], [$m])_m4_b([], [], [$m+1]_m4_popdef([_m4_b]))
177
 
# then invoke m4_unquote(_m4_b($@)), for concatenation with later text.
178
 
 
179
 
 
180
 
 
181
 
 
182
 
 
183
 
 
184
 
 
185
 
# m4_cond(TEST1, VAL1, IF-VAL1, TEST2, VAL2, IF-VAL2, ..., [DEFAULT])
186
 
# -------------------------------------------------------------------
187
 
# Similar to m4_if, except that each TEST is expanded when encountered.
188
 
# If the expansion of TESTn matches the string VALn, the result is IF-VALn.
189
 
# The result is DEFAULT if no tests passed.  This macro allows
190
 
# short-circuiting of expensive tests, where it pays to arrange quick
191
 
# filter tests to run first.
192
 
#
193
 
# m4_cond already guarantees either 3*n or 3*n + 1 arguments, 1 <= n.
194
 
# We only have to speed up _m4_cond, by building the temporary _m4_c:
195
 
#   m4_define([_m4_c], _m4_defn([m4_unquote]))_m4_c([m4_if(($1), [($2)],
196
 
#   [[$3]m4_define([_m4_c])])])_m4_c([m4_if(($4), [($5)],
197
 
#   [[$6]m4_define([_m4_c])])])..._m4_c([m4_if(($m-2), [($m-1)],
198
 
#   [[$m]m4_define([_m4_c])])])_m4_c([[$m+1]]_m4_popdef([_m4_c]))
199
 
# We invoke m4_unquote(_m4_c($@)), for concatenation with later text.
200
 
 
201
 
 
202
 
 
203
 
 
204
 
# m4_bpatsubsts(STRING, RE1, SUBST1, RE2, SUBST2, ...)
205
 
# ----------------------------------------------------
206
 
# m4 equivalent of
207
 
#
208
 
#   $_ = STRING;
209
 
#   s/RE1/SUBST1/g;
210
 
#   s/RE2/SUBST2/g;
211
 
#   ...
212
 
#
213
 
# m4_bpatsubsts already validated an odd number of arguments; we only
214
 
# need to speed up _m4_bpatsubsts.  To avoid nesting, we build the
215
 
# temporary _m4_p:
216
 
#   m4_define([_m4_p], [$1])m4_define([_m4_p],
217
 
#   m4_bpatsubst(m4_dquote(_m4_defn([_m4_p])), [$2], [$3]))m4_define([_m4_p],
218
 
#   m4_bpatsubst(m4_dquote(_m4_defn([_m4_p])), [$4], [$5]))m4_define([_m4_p],...
219
 
#   m4_bpatsubst(m4_dquote(_m4_defn([_m4_p])), [$m-1], [$m]))m4_unquote(
220
 
#   _m4_defn([_m4_p])_m4_popdef([_m4_p]))
221
 
 
222
 
 
223
 
 
224
 
 
225
 
# m4_shiftn(N, ...)
226
 
# -----------------
227
 
# Returns ... shifted N times.  Useful for recursive "varargs" constructs.
228
 
#
229
 
# m4_shiftn already validated arguments; we only need to speed up
230
 
# _m4_shiftn.  If N is 3, then we build the temporary _m4_s, defined as
231
 
#   ,[$5],[$6],...,[$m]_m4_popdef([_m4_s])
232
 
# before calling m4_shift(_m4_s($@)).
233
 
 
234
 
 
235
 
# m4_do(STRING, ...)
236
 
# ------------------
237
 
# This macro invokes all its arguments (in sequence, of course).  It is
238
 
# useful for making your macros more structured and readable by dropping
239
 
# unnecessary dnl's and have the macros indented properly.
240
 
#
241
 
# Here, we use the temporary macro _m4_do, defined as
242
 
#   $1[]$2[]...[]$n[]_m4_popdef([_m4_do])
243
 
 
244
 
 
245
 
# m4_dquote_elt(ARGS)
246
 
# -------------------
247
 
# Return ARGS as an unquoted list of double-quoted arguments.
248
 
#
249
 
# m4_foreach to the rescue.  It's easier to shift off the leading comma.
250
 
 
251
 
 
252
 
# m4_reverse(ARGS)
253
 
# ----------------
254
 
# Output ARGS in reverse order.
255
 
#
256
 
# Invoke _m4_r($@) with the temporary _m4_r built as
257
 
#   [$m], [$m-1], ..., [$2], [$1]_m4_popdef([_m4_r])
258
 
 
259
 
 
260
 
 
261
 
# m4_map(MACRO, LIST)
262
 
# -------------------
263
 
# Invoke MACRO($1), MACRO($2) etc. where $1, $2... are the elements
264
 
# of LIST.  $1, $2... must in turn be lists, appropriate for m4_apply.
265
 
#
266
 
# m4_map/m4_map_sep only execute once; the speedup comes in fixing
267
 
# _m4_map.  The mismatch in () is intentional, since $1 supplies the
268
 
# opening `(' (but it sure looks odd!).  Build the temporary _m4_m:
269
 
#   $1, [$3])$1, [$4])...$1, [$m])_m4_popdef([_m4_m])
270
 
 
271
 
 
272
 
 
273
 
 
274
 
# m4_transform(EXPRESSION, ARG...)
275
 
# --------------------------------
276
 
# Expand EXPRESSION([ARG]) for each argument.  More efficient than
277
 
# m4_foreach([var], [ARG...], [EXPRESSION(m4_defn([var]))])
278
 
#
279
 
# Invoke the temporary macro _m4_transform, defined as:
280
 
#   $1([$2])[]$1([$3])[]...$1([$m])[]_m4_popdef([_m4_transform])
281
 
 
282
 
 
283
 
 
284
 
 
285
 
# m4_transform_pair(EXPRESSION, [END-EXPR = EXPRESSION], ARG...)
286
 
# --------------------------------------------------------------
287
 
# Perform a pairwise grouping of consecutive ARGs, by expanding
288
 
# EXPRESSION([ARG1], [ARG2]).  If there are an odd number of ARGs, the
289
 
# final argument is expanded with END-EXPR([ARGn]).
290
 
#
291
 
# Build the temporary macro _m4_transform_pair, with the $2([$m+1])
292
 
# only output if $# is odd:
293
 
#   $1([$3], [$4])[]$1([$5], [$6])[]...$1([$m-1],
294
 
#   [$m])[]m4_default([$2], [$1])([$m+1])[]_m4_popdef([_m4_transform_pair])
295
 
 
296
 
 
297
 
 
298
 
 
299
 
 
300
 
 
301
 
# m4_join(SEP, ARG1, ARG2...)
302
 
# ---------------------------
303
 
# Produce ARG1SEPARG2...SEPARGn.  Avoid back-to-back SEP when a given ARG
304
 
# is the empty string.  No expansion is performed on SEP or ARGs.
305
 
#
306
 
# Use a self-modifying separator, since we don't know how many
307
 
# arguments might be skipped before a separator is first printed, but
308
 
# be careful if the separator contains $.  m4_foreach to the rescue.
309
 
 
310
 
 
311
 
# m4_joinall(SEP, ARG1, ARG2...)
312
 
# ------------------------------
313
 
# Produce ARG1SEPARG2...SEPARGn.  An empty ARG results in back-to-back SEP.
314
 
# No expansion is performed on SEP or ARGs.
315
 
#
316
 
# A bit easier than m4_join.  m4_foreach to the rescue.
317
 
 
318
 
 
319
 
# m4_list_cmp(A, B)
320
 
# -----------------
321
 
# Compare the two lists of integer expressions A and B.
322
 
#
323
 
# m4_list_cmp takes care of any side effects; we only override
324
 
# _m4_list_cmp_raw, where we can safely expand lists multiple times.
325
 
# First, insert padding so that both lists are the same length; the
326
 
# trailing +0 is necessary to handle a missing list.  Next, create a
327
 
# temporary macro to perform pairwise comparisons until an inequality
328
 
# is found.  For example, m4_list_cmp([1], [1,2]) creates _m4_cmp as
329
 
#   m4_if(m4_eval([($1) != ($3)]), [1], [m4_cmp([$1], [$3])],
330
 
#         m4_eval([($2) != ($4)]), [1], [m4_cmp([$2], [$4])],
331
 
#         [0]_m4_popdef([_m4_cmp], [_m4_size]))
332
 
# then calls _m4_cmp([1+0], [0], [1], [2+0])
333
 
 
334
 
 
335
 
 
336
 
 
337
 
 
338
 
 
339
 
 
340
 
 
341
 
# m4_max(EXPR, ...)
342
 
# m4_min(EXPR, ...)
343
 
# -----------------
344
 
# Return the decimal value of the maximum (or minimum) in a series of
345
 
# integer expressions.
346
 
#
347
 
# m4_foreach to the rescue; we only need to replace _m4_minmax.  Here,
348
 
# we need a temporary macro to track the best answer so far, so that
349
 
# the foreach expression is tractable.
350
 
 
351
 
 
352
 
# m4_set_add_all(SET, VALUE...)
353
 
# -----------------------------
354
 
# Add each VALUE into SET.  This is O(n) in the number of VALUEs, and
355
 
# can be faster than calling m4_set_add for each VALUE.
356
 
#
357
 
# m4_foreach to the rescue.  If no deletions have occurred, then avoid
358
 
# the speed penalty of m4_set_add.
359
 
 
360
 
 
361
 
 
362
 
# _m4_divert_diversion should be defined:
363
 
@%:@ Guess values for system-dependent variables and create Makefiles.
364
 
@%:@ Generated by GNU Autoconf 2.63.
365
 
 
366
 
 
367
 
 
368
 
 
369
 
@%:@ 
370
 
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
371
 
@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
372
 
@%:@ This configure script is free software; the Free Software Foundation
373
 
@%:@ gives unlimited permission to copy, distribute and modify it.
374
 
 
375
 
 
376
 
 
377
 
 
378
 
 
379
 
## --------------------- ##
380
 
## M4sh Initialization.  ##
381
 
## --------------------- ##
382
 
 
383
 
# Be more Bourne compatible
384
 
DUALCASE=1; export DUALCASE # for MKS sh
385
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
386
 
  emulate sh
387
 
  NULLCMD=:
388
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
389
 
  # is contrary to our usage.  Disable this feature.
390
 
  alias -g '${1+"$@"}'='"$@"'
391
 
  setopt NO_GLOB_SUBST
392
 
else
393
 
  case `(set -o) 2>/dev/null` in
394
 
  *posix*) set -o posix ;;
395
 
esac
396
 
 
397
 
fi
398
 
 
399
 
 
400
 
 
401
 
 
402
 
# PATH needs CR
403
 
# Avoid depending upon Character Ranges.
404
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
405
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
406
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
407
 
as_cr_digits='0123456789'
408
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
409
 
 
410
 
as_nl='
411
 
'
412
 
export as_nl
413
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
414
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
415
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
416
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
417
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
418
 
  as_echo='printf %s\n'
419
 
  as_echo_n='printf %s'
420
 
else
421
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
422
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
423
 
    as_echo_n='/usr/ucb/echo -n'
424
 
  else
425
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
426
 
    as_echo_n_body='eval
427
 
      arg=$1;
428
 
      case $arg in
429
 
      *"$as_nl"*)
430
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
431
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
432
 
      esac;
433
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
434
 
    '
435
 
    export as_echo_n_body
436
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
437
 
  fi
438
 
  export as_echo_body
439
 
  as_echo='sh -c $as_echo_body as_echo'
440
 
fi
441
 
 
442
 
# The user is always right.
443
 
if test "${PATH_SEPARATOR+set}" != set; then
444
 
  PATH_SEPARATOR=:
445
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
446
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
447
 
      PATH_SEPARATOR=';'
448
 
  }
449
 
fi
450
 
 
451
 
# Support unset when possible.
452
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
453
 
  as_unset=unset
454
 
else
455
 
  as_unset=false
456
 
fi
457
 
 
458
 
 
459
 
# IFS
460
 
# We need space, tab and new line, in precisely that order.  Quoting is
461
 
# there to prevent editors from complaining about space-tab.
462
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
463
 
# splitting by setting IFS to empty value.)
464
 
IFS=" ""        $as_nl"
465
 
 
466
 
# Find who we are.  Look in the path if we contain no directory separator.
467
 
case $0 in
468
 
  *[\\/]* ) as_myself=$0 ;;
469
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
470
 
for as_dir in $PATH
471
 
do
472
 
  IFS=$as_save_IFS
473
 
  test -z "$as_dir" && as_dir=.
474
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
475
 
done
476
 
IFS=$as_save_IFS
477
 
 
478
 
     ;;
479
 
esac
480
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
481
 
# in which case we are not to be found in the path.
482
 
if test "x$as_myself" = x; then
483
 
  as_myself=$0
484
 
fi
485
 
if test ! -f "$as_myself"; then
486
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
487
 
  { (exit 1); exit 1; }
488
 
fi
489
 
 
490
 
# Work around bugs in pre-3.0 UWIN ksh.
491
 
for as_var in ENV MAIL MAILPATH
492
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
493
 
done
494
 
PS1='$ '
495
 
PS2='> '
496
 
PS4='+ '
497
 
 
498
 
# NLS nuisances.
499
 
LC_ALL=C
500
 
export LC_ALL
501
 
LANGUAGE=C
502
 
export LANGUAGE
503
 
 
504
 
# Required to use basename.
505
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
506
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
507
 
  as_expr=expr
508
 
else
509
 
  as_expr=false
510
 
fi
511
 
 
512
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
513
 
  as_basename=basename
514
 
else
515
 
  as_basename=false
516
 
fi
517
 
 
518
 
 
519
 
# Name of the executable.
520
 
as_me=`$as_basename -- "$0" ||
521
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
522
 
         X"$0" : 'X\(//\)$' \| \
523
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
524
 
$as_echo X/"$0" |
525
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
526
 
            s//\1/
527
 
            q
528
 
          }
529
 
          /^X\/\(\/\/\)$/{
530
 
            s//\1/
531
 
            q
532
 
          }
533
 
          /^X\/\(\/\).*/{
534
 
            s//\1/
535
 
            q
536
 
          }
537
 
          s/.*/./; q'`
538
 
 
539
 
# CDPATH.
540
 
$as_unset CDPATH
541
 
 
542
 
 
543
 
 
544
 
 
545
 
 
546
 
if test "x$CONFIG_SHELL" = x; then
547
 
  if (eval ":") 2>/dev/null; then
548
 
  as_have_required=yes
549
 
else
550
 
  as_have_required=no
551
 
fi
552
 
 
553
 
  if test $as_have_required = yes &&     (eval ":
554
 
(as_func_return () {
555
 
  (exit \$1)
556
 
}
557
 
as_func_success () {
558
 
  as_func_return 0
559
 
}
560
 
as_func_failure () {
561
 
  as_func_return 1
562
 
}
563
 
as_func_ret_success () {
564
 
  return 0
565
 
}
566
 
as_func_ret_failure () {
567
 
  return 1
568
 
}
569
 
 
570
 
exitcode=0
571
 
if as_func_success; then
572
 
  :
573
 
else
574
 
  exitcode=1
575
 
  echo as_func_success failed.
576
 
fi
577
 
 
578
 
if as_func_failure; then
579
 
  exitcode=1
580
 
  echo as_func_failure succeeded.
581
 
fi
582
 
 
583
 
if as_func_ret_success; then
584
 
  :
585
 
else
586
 
  exitcode=1
587
 
  echo as_func_ret_success failed.
588
 
fi
589
 
 
590
 
if as_func_ret_failure; then
591
 
  exitcode=1
592
 
  echo as_func_ret_failure succeeded.
593
 
fi
594
 
 
595
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
596
 
  :
597
 
else
598
 
  exitcode=1
599
 
  echo positional parameters were not saved.
600
 
fi
601
 
 
602
 
test \$exitcode = 0) || { (exit 1); exit 1; }
603
 
 
604
 
(
605
 
  as_lineno_1=\$LINENO
606
 
  as_lineno_2=\$LINENO
607
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
608
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
609
 
") 2> /dev/null; then
610
 
  :
611
 
else
612
 
  as_candidate_shells=
613
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
614
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
615
 
do
616
 
  IFS=$as_save_IFS
617
 
  test -z "$as_dir" && as_dir=.
618
 
  case $as_dir in
619
 
         /*)
620
 
           for as_base in sh bash ksh sh5; do
621
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
622
 
           done;;
623
 
       esac
624
 
done
625
 
IFS=$as_save_IFS
626
 
 
627
 
 
628
 
      for as_shell in $as_candidate_shells $SHELL; do
629
 
         # Try only shells that exist, to save several forks.
630
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
631
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
632
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
633
 
  emulate sh
634
 
  NULLCMD=:
635
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
636
 
  # is contrary to our usage.  Disable this feature.
637
 
  alias -g '${1+"$@"}'='"$@"'
638
 
  setopt NO_GLOB_SUBST
639
 
else
640
 
  case `(set -o) 2>/dev/null` in
641
 
  *posix*) set -o posix ;;
642
 
esac
643
 
 
644
 
fi
645
 
 
646
 
 
647
 
:
648
 
_ASEOF
649
 
}; then
650
 
  CONFIG_SHELL=$as_shell
651
 
               as_have_required=yes
652
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
653
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
654
 
  emulate sh
655
 
  NULLCMD=:
656
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
657
 
  # is contrary to our usage.  Disable this feature.
658
 
  alias -g '${1+"$@"}'='"$@"'
659
 
  setopt NO_GLOB_SUBST
660
 
else
661
 
  case `(set -o) 2>/dev/null` in
662
 
  *posix*) set -o posix ;;
663
 
esac
664
 
 
665
 
fi
666
 
 
667
 
 
668
 
:
669
 
(as_func_return () {
670
 
  (exit $1)
671
 
}
672
 
as_func_success () {
673
 
  as_func_return 0
674
 
}
675
 
as_func_failure () {
676
 
  as_func_return 1
677
 
}
678
 
as_func_ret_success () {
679
 
  return 0
680
 
}
681
 
as_func_ret_failure () {
682
 
  return 1
683
 
}
684
 
 
685
 
exitcode=0
686
 
if as_func_success; then
687
 
  :
688
 
else
689
 
  exitcode=1
690
 
  echo as_func_success failed.
691
 
fi
692
 
 
693
 
if as_func_failure; then
694
 
  exitcode=1
695
 
  echo as_func_failure succeeded.
696
 
fi
697
 
 
698
 
if as_func_ret_success; then
699
 
  :
700
 
else
701
 
  exitcode=1
702
 
  echo as_func_ret_success failed.
703
 
fi
704
 
 
705
 
if as_func_ret_failure; then
706
 
  exitcode=1
707
 
  echo as_func_ret_failure succeeded.
708
 
fi
709
 
 
710
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
711
 
  :
712
 
else
713
 
  exitcode=1
714
 
  echo positional parameters were not saved.
715
 
fi
716
 
 
717
 
test $exitcode = 0) || { (exit 1); exit 1; }
718
 
 
719
 
(
720
 
  as_lineno_1=$LINENO
721
 
  as_lineno_2=$LINENO
722
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
723
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
724
 
 
725
 
_ASEOF
726
 
}; then
727
 
  break
728
 
fi
729
 
 
730
 
fi
731
 
 
732
 
      done
733
 
 
734
 
      if test "x$CONFIG_SHELL" != x; then
735
 
  for as_var in BASH_ENV ENV
736
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
737
 
        done
738
 
        export CONFIG_SHELL
739
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
740
 
fi
741
 
 
742
 
 
743
 
    if test $as_have_required = no; then
744
 
  echo This script requires a shell more modern than all the
745
 
      echo shells that I found on your system.  Please install a
746
 
      echo modern shell, or manually run the script under such a
747
 
      echo shell if you do have one.
748
 
      { (exit 1); exit 1; }
749
 
fi
750
 
 
751
 
    
752
 
fi
753
 
 
754
 
fi
755
 
 
756
 
 
757
 
 
758
 
(eval "as_func_return () {
759
 
  (exit \$1)
760
 
}
761
 
as_func_success () {
762
 
  as_func_return 0
763
 
}
764
 
as_func_failure () {
765
 
  as_func_return 1
766
 
}
767
 
as_func_ret_success () {
768
 
  return 0
769
 
}
770
 
as_func_ret_failure () {
771
 
  return 1
772
 
}
773
 
 
774
 
exitcode=0
775
 
if as_func_success; then
776
 
  :
777
 
else
778
 
  exitcode=1
779
 
  echo as_func_success failed.
780
 
fi
781
 
 
782
 
if as_func_failure; then
783
 
  exitcode=1
784
 
  echo as_func_failure succeeded.
785
 
fi
786
 
 
787
 
if as_func_ret_success; then
788
 
  :
789
 
else
790
 
  exitcode=1
791
 
  echo as_func_ret_success failed.
792
 
fi
793
 
 
794
 
if as_func_ret_failure; then
795
 
  exitcode=1
796
 
  echo as_func_ret_failure succeeded.
797
 
fi
798
 
 
799
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
800
 
  :
801
 
else
802
 
  exitcode=1
803
 
  echo positional parameters were not saved.
804
 
fi
805
 
 
806
 
test \$exitcode = 0") || {
807
 
  echo No shell found that supports shell functions.
808
 
  echo Please tell bug-autoconf@gnu.org about your system,
809
 
  echo including any error possibly output before this message.
810
 
  echo This can help us improve future autoconf versions.
811
 
  echo Configuration will now proceed without shell functions.
812
 
}
813
 
 
814
 
 
815
 
 
816
 
  as_lineno_1=$LINENO
817
 
  as_lineno_2=$LINENO
818
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
819
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
820
 
 
821
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
822
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
823
 
  # line-number line after each line using $LINENO; the second 'sed'
824
 
  # does the real work.  The second script uses 'N' to pair each
825
 
  # line-number line with the line containing $LINENO, and appends
826
 
  # trailing '-' during substitution so that $LINENO is not a special
827
 
  # case at line end.
828
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
829
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
830
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
831
 
  sed -n '
832
 
    p
833
 
    /[$]LINENO/=
834
 
  ' <$as_myself |
835
 
    sed '
836
 
      s/[$]LINENO.*/&-/
837
 
      t lineno
838
 
      b
839
 
      :lineno
840
 
      N
841
 
      :loop
842
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
843
 
      t loop
844
 
      s/-\n.*//
845
 
    ' >$as_me.lineno &&
846
 
  chmod +x "$as_me.lineno" ||
847
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
848
 
   { (exit 1); exit 1; }; }
849
 
 
850
 
  # Don't try to exec as it changes $[0], causing all sort of problems
851
 
  # (the dirname of $[0] is not the place where we might find the
852
 
  # original and so on.  Autoconf is especially sensitive to this).
853
 
  . "./$as_me.lineno"
854
 
  # Exit status is that of the last command.
855
 
  exit
856
 
}
857
 
 
858
 
 
859
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
860
 
  as_dirname=dirname
861
 
else
862
 
  as_dirname=false
863
 
fi
864
 
 
865
 
ECHO_C= ECHO_N= ECHO_T=
866
 
case `echo -n x` in
867
 
-n*)
868
 
  case `echo 'x\c'` in
869
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
870
 
  *)   ECHO_C='\c';;
871
 
  esac;;
872
 
*)
873
 
  ECHO_N='-n';;
874
 
esac
875
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
876
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
877
 
  as_expr=expr
878
 
else
879
 
  as_expr=false
880
 
fi
881
 
 
882
 
rm -f conf$$ conf$$.exe conf$$.file
883
 
if test -d conf$$.dir; then
884
 
  rm -f conf$$.dir/conf$$.file
885
 
else
886
 
  rm -f conf$$.dir
887
 
  mkdir conf$$.dir 2>/dev/null
888
 
fi
889
 
if (echo >conf$$.file) 2>/dev/null; then
890
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
891
 
    as_ln_s='ln -s'
892
 
    # ... but there are two gotchas:
893
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
894
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
895
 
    # In both cases, we have to default to `cp -p'.
896
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
897
 
      as_ln_s='cp -p'
898
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
899
 
    as_ln_s=ln
900
 
  else
901
 
    as_ln_s='cp -p'
902
 
  fi
903
 
else
904
 
  as_ln_s='cp -p'
905
 
fi
906
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
907
 
rmdir conf$$.dir 2>/dev/null
908
 
 
909
 
if mkdir -p . 2>/dev/null; then
910
 
  as_mkdir_p=:
911
 
else
912
 
  test -d ./-p && rmdir ./-p
913
 
  as_mkdir_p=false
914
 
fi
915
 
 
916
 
if test -x / >/dev/null 2>&1; then
917
 
  as_test_x='test -x'
918
 
else
919
 
  if ls -dL / >/dev/null 2>&1; then
920
 
    as_ls_L_option=L
921
 
  else
922
 
    as_ls_L_option=
923
 
  fi
924
 
  as_test_x='
925
 
    eval sh -c '\''
926
 
      if test -d "$1"; then
927
 
        test -d "$1/.";
928
 
      else
929
 
        case $1 in
930
 
        -*)set "./$1";;
931
 
        esac;
932
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
933
 
        ???[sx]*):;;*)false;;esac;fi
934
 
    '\'' sh
935
 
  '
936
 
fi
937
 
as_executable_p=$as_test_x
938
 
 
939
 
# Sed expression to map a string onto a valid CPP name.
940
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
941
 
 
942
 
# Sed expression to map a string onto a valid variable name.
943
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
944
 
 
945
 
 
946
 
 
947
 
 
948
 
 
949
 
 
950
 
 
951
 
 
952
 
 
953
 
# Check that we are running under the correct shell.
954
 
SHELL=${CONFIG_SHELL-/bin/sh}
955
 
 
956
 
case X$ECHO in
957
 
X*--fallback-echo)
958
 
  # Remove one level of quotation (which was required for Make).
959
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
960
 
  ;;
961
 
esac
962
 
 
963
 
echo=${ECHO-echo}
964
 
if test "X$1" = X--no-reexec; then
965
 
  # Discard the --no-reexec flag, and continue.
966
 
  shift
967
 
elif test "X$1" = X--fallback-echo; then
968
 
  # Avoid inline document here, it may be left over
969
 
  :
970
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
971
 
  # Yippee, $echo works!
972
 
  :
973
 
else
974
 
  # Restart under the correct shell.
975
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
976
 
fi
977
 
 
978
 
if test "X$1" = X--fallback-echo; then
979
 
  # used as fallback echo
980
 
  shift
981
 
  cat <<EOF
982
 
$*
983
 
EOF
984
 
  exit 0
985
 
fi
986
 
 
987
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
988
 
# if CDPATH is set.
989
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
990
 
 
991
 
if test -z "$ECHO"; then
992
 
if test "X${echo_test_string+set}" != Xset; then
993
 
# find a string as large as possible, as long as the shell can cope with it
994
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
995
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
996
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
997
 
       echo_test_string=`eval $cmd` &&
998
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
999
 
    then
1000
 
      break
1001
 
    fi
1002
 
  done
1003
 
fi
1004
 
 
1005
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1006
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1007
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
1008
 
  :
1009
 
else
1010
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
1011
 
  # backslashes.  This makes it impossible to quote backslashes using
1012
 
  #   echo "$something" | sed 's/\\/\\\\/g'
1013
 
  #
1014
 
  # So, first we look for a working echo in the user's PATH.
1015
 
 
1016
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1017
 
  for dir in $PATH /usr/ucb; do
1018
 
    IFS="$lt_save_ifs"
1019
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1020
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1021
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1022
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1023
 
      echo="$dir/echo"
1024
 
      break
1025
 
    fi
1026
 
  done
1027
 
  IFS="$lt_save_ifs"
1028
 
 
1029
 
  if test "X$echo" = Xecho; then
1030
 
    # We didn't find a better echo, so look for alternatives.
1031
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1032
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1033
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1034
 
      # This shell has a builtin print -r that does the trick.
1035
 
      echo='print -r'
1036
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1037
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
1038
 
      # If we have ksh, try running configure again with it.
1039
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1040
 
      export ORIGINAL_CONFIG_SHELL
1041
 
      CONFIG_SHELL=/bin/ksh
1042
 
      export CONFIG_SHELL
1043
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
1044
 
    else
1045
 
      # Try using printf.
1046
 
      echo='printf %s\n'
1047
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1048
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1049
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1050
 
        # Cool, printf works
1051
 
        :
1052
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
1053
 
           test "X$echo_testing_string" = 'X\t' &&
1054
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1055
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1056
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1057
 
        export CONFIG_SHELL
1058
 
        SHELL="$CONFIG_SHELL"
1059
 
        export SHELL
1060
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
1061
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
1062
 
           test "X$echo_testing_string" = 'X\t' &&
1063
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1064
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1065
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
1066
 
      else
1067
 
        # maybe with a smaller string...
1068
 
        prev=:
1069
 
 
1070
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
1071
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1072
 
          then
1073
 
            break
1074
 
          fi
1075
 
          prev="$cmd"
1076
 
        done
1077
 
 
1078
 
        if test "$prev" != 'sed 50q "$0"'; then
1079
 
          echo_test_string=`eval $prev`
1080
 
          export echo_test_string
1081
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
1082
 
        else
1083
 
          # Oops.  We lost completely, so just stick with echo.
1084
 
          echo=echo
1085
 
        fi
1086
 
      fi
1087
 
    fi
1088
 
  fi
1089
 
fi
1090
 
fi
1091
 
 
1092
 
# Copy echo and quote the copy suitably for passing to libtool from
1093
 
# the Makefile, instead of quoting the original, which is used later.
1094
 
ECHO=$echo
1095
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
1096
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1097
 
fi
1098
 
 
1099
 
 
1100
 
 
1101
 
 
1102
 
tagnames=${tagnames+${tagnames},}CXX
1103
 
 
1104
 
exec 7<&0 </dev/null 6>&1
1105
 
 
1106
 
# Name of the host.
1107
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
1108
 
# so uname gets run too.
1109
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1110
 
 
1111
 
#
1112
 
# Initializations.
1113
 
#
1114
 
ac_default_prefix=/usr/local
1115
 
ac_clean_files=
1116
 
ac_config_libobj_dir=.
1117
 
LIB@&t@OBJS=
1118
 
cross_compiling=no
1119
 
subdirs=
1120
 
MFLAGS=
1121
 
MAKEFLAGS=
1122
 
SHELL=${CONFIG_SHELL-/bin/sh}
1123
 
 
1124
 
# Identity of this package.
1125
 
PACKAGE_NAME=
1126
 
PACKAGE_TARNAME=
1127
 
PACKAGE_VERSION=
1128
 
PACKAGE_STRING=
1129
 
PACKAGE_BUGREPORT=
1130
 
 
1131
 
ac_unique_file="README.SVN-RULES"
1132
 
# Factoring default headers for most tests.
1133
 
ac_includes_default="\
1134
 
#include <stdio.h>
1135
 
#ifdef HAVE_SYS_TYPES_H
1136
 
# include <sys/types.h>
1137
 
#endif
1138
 
#ifdef HAVE_SYS_STAT_H
1139
 
# include <sys/stat.h>
1140
 
#endif
1141
 
#ifdef STDC_HEADERS
1142
 
# include <stdlib.h>
1143
 
# include <stddef.h>
1144
 
#else
1145
 
# ifdef HAVE_STDLIB_H
1146
 
#  include <stdlib.h>
1147
 
# endif
1148
 
#endif
1149
 
#ifdef HAVE_STRING_H
1150
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1151
 
#  include <memory.h>
1152
 
# endif
1153
 
# include <string.h>
1154
 
#endif
1155
 
#ifdef HAVE_STRINGS_H
1156
 
# include <strings.h>
1157
 
#endif
1158
 
#ifdef HAVE_INTTYPES_H
1159
 
# include <inttypes.h>
1160
 
#endif
1161
 
#ifdef HAVE_STDINT_H
1162
 
# include <stdint.h>
1163
 
#endif
1164
 
#ifdef HAVE_UNISTD_H
1165
 
# include <unistd.h>
1166
 
#endif"
1167
 
 
1168
 
ac_header_list=
1169
 
ac_subst_vars='LTLIBOBJS
1170
 
LIBTOOL
1171
 
NMEDIT
1172
 
DSYMUTIL
1173
 
STRIP
1174
 
AR
1175
 
ECHO
1176
 
PHP_VERSION_ID
1177
 
PHP_VERSION
1178
 
PHP_LIBS
1179
 
PHP_LDFLAGS
1180
 
PEAR_INSTALLDIR
1181
 
NATIVE_RPATHS
1182
 
INSTALL_IT
1183
 
EXTRA_INCLUDES
1184
 
INCLUDES
1185
 
ZEND_EXTRA_LIBS
1186
 
EXTRA_LIBS
1187
 
EXTRA_LDFLAGS_PROGRAM
1188
 
EXTRA_LDFLAGS
1189
 
EXTENSION_DIR
1190
 
DEBUG_CFLAGS
1191
 
program_suffix
1192
 
program_prefix
1193
 
php_abs_top_srcdir
1194
 
php_abs_top_builddir
1195
 
abs_srcdir
1196
 
abs_builddir
1197
 
PHP_INSTALLED_SAPIS
1198
 
EXPANDED_PHP_CONFIG_FILE_SCAN_DIR
1199
 
EXPANDED_PHP_CONFIG_FILE_PATH
1200
 
EXPANDED_LOCALSTATEDIR
1201
 
EXPANDED_SYSCONFDIR
1202
 
EXPANDED_DATADIR
1203
 
EXPANDED_LIBDIR
1204
 
EXPANDED_MANDIR
1205
 
EXPANDED_SBINDIR
1206
 
EXPANDED_BINDIR
1207
 
EXPANDED_EXTENSION_DIR
1208
 
EXPANDED_PEAR_INSTALLDIR
1209
 
INCLUDE_PATH
1210
 
INLINE_CFLAGS
1211
 
RANLIB
1212
 
LEMON
1213
 
SNMP_CONFIG
1214
 
PDO_OCI_VERSION
1215
 
PDO_OCI_DIR
1216
 
PDO_OCI_SHARED_LIBADD
1217
 
PDO_MYSQL_MODULE_TYPE
1218
 
ODBC_TYPE
1219
 
ODBC_LFLAGS
1220
 
ODBC_LIBS
1221
 
ODBC_INCLUDE
1222
 
OCI8_ORACLE_VERSION
1223
 
OCI8_DIR
1224
 
OCI8_SHARED_LIBADD
1225
 
MYSQL_INCLUDE
1226
 
MYSQL_LIBS
1227
 
MYSQL_MODULE_TYPE
1228
 
CXXCPP
1229
 
ac_ct_CXX
1230
 
CXXFLAGS
1231
 
CXX
1232
 
ICU_CONFIG
1233
 
OPENSSL_INCDIR_OPT
1234
 
PKG_CONFIG
1235
 
KRB5_CONFIG
1236
 
LTP_GENHTML
1237
 
LTP
1238
 
ALLOCA
1239
 
LIB@&t@OBJS
1240
 
PROG_SENDMAIL
1241
 
php_fpm_prefix
1242
 
php_fpm_localstatedir
1243
 
php_fpm_sysconfdir
1244
 
php_fpm_group
1245
 
php_fpm_user
1246
 
SHLIB_DL_SUFFIX_NAME
1247
 
SHLIB_SUFFIX_NAME
1248
 
RE2C
1249
 
YFLAGS
1250
 
YACC
1251
 
AWK
1252
 
LN_S
1253
 
CPP
1254
 
OBJEXT
1255
 
EXEEXT
1256
 
ac_ct_CC
1257
 
CPPFLAGS
1258
 
LDFLAGS
1259
 
CFLAGS
1260
 
CC
1261
 
target_os
1262
 
target_vendor
1263
 
target_cpu
1264
 
target
1265
 
host_os
1266
 
host_vendor
1267
 
host_cpu
1268
 
host
1269
 
build_os
1270
 
build_vendor
1271
 
build_cpu
1272
 
build
1273
 
CONFIGURE_OPTIONS
1274
 
CONFIGURE_COMMAND
1275
 
SED
1276
 
EGREP
1277
 
GREP
1278
 
target_alias
1279
 
host_alias
1280
 
build_alias
1281
 
LIBS
1282
 
ECHO_T
1283
 
ECHO_N
1284
 
ECHO_C
1285
 
DEFS
1286
 
mandir
1287
 
localedir
1288
 
libdir
1289
 
psdir
1290
 
pdfdir
1291
 
dvidir
1292
 
htmldir
1293
 
infodir
1294
 
docdir
1295
 
oldincludedir
1296
 
includedir
1297
 
localstatedir
1298
 
sharedstatedir
1299
 
sysconfdir
1300
 
datadir
1301
 
datarootdir
1302
 
libexecdir
1303
 
sbindir
1304
 
bindir
1305
 
program_transform_name
1306
 
prefix
1307
 
exec_prefix
1308
 
PACKAGE_BUGREPORT
1309
 
PACKAGE_STRING
1310
 
PACKAGE_VERSION
1311
 
PACKAGE_TARNAME
1312
 
PACKAGE_NAME
1313
 
PATH_SEPARATOR
1314
 
SHELL'
1315
 
ac_subst_files=''
1316
 
ac_user_opts='
1317
 
enable_option_checking
1318
 
with_libdir
1319
 
enable_rpath
1320
 
enable_re2c_cgoto
1321
 
enable_
1322
 
with_aolserver
1323
 
with_apxs2filter
1324
 
with_apxs2
1325
 
with_apxs
1326
 
with_apache
1327
 
enable_mod_charset
1328
 
with_apache_hooks
1329
 
with_apache_hooks_static
1330
 
with_caudium
1331
 
enable_cli
1332
 
with_continuity
1333
 
enable_embed
1334
 
enable_fpm
1335
 
with_fpm_user
1336
 
with_fpm_group
1337
 
with_isapi
1338
 
with_litespeed
1339
 
with_milter
1340
 
with_nsapi
1341
 
with_phttpd
1342
 
with_pi3web
1343
 
with_roxen
1344
 
enable_roxen_zts
1345
 
with_thttpd
1346
 
with_tux
1347
 
with_webjames
1348
 
enable_cgi
1349
 
enable_gcov
1350
 
enable_debug
1351
 
with_layout
1352
 
with_config_file_path
1353
 
with_config_file_scan_dir
1354
 
enable_safe_mode
1355
 
with_exec_dir
1356
 
enable_sigchild
1357
 
enable_magic_quotes
1358
 
enable_libgcc
1359
 
enable_short_tags
1360
 
enable_dmalloc
1361
 
enable_ipv6
1362
 
enable_fd_setsize
1363
 
enable_all
1364
 
with_regex
1365
 
enable_libxml
1366
 
with_libxml_dir
1367
 
with_openssl
1368
 
with_kerberos
1369
 
with_pcre_regex
1370
 
with_sqlite3
1371
 
with_zlib
1372
 
with_zlib_dir
1373
 
enable_bcmath
1374
 
with_bz2
1375
 
enable_calendar
1376
 
enable_ctype
1377
 
with_curl
1378
 
with_curlwrappers
1379
 
enable_dba
1380
 
with_qdbm
1381
 
with_gdbm
1382
 
with_ndbm
1383
 
with_db4
1384
 
with_db3
1385
 
with_db2
1386
 
with_db1
1387
 
with_dbm
1388
 
with_cdb
1389
 
enable_inifile
1390
 
enable_flatfile
1391
 
enable_dom
1392
 
with_enchant
1393
 
enable_exif
1394
 
enable_fileinfo
1395
 
enable_filter
1396
 
with_pcre_dir
1397
 
enable_ftp
1398
 
with_openssl_dir
1399
 
with_gd
1400
 
with_jpeg_dir
1401
 
with_png_dir
1402
 
with_xpm_dir
1403
 
with_freetype_dir
1404
 
with_t1lib
1405
 
enable_gd_native_ttf
1406
 
enable_gd_jis_conv
1407
 
with_gettext
1408
 
with_gmp
1409
 
with_mhash
1410
 
enable_hash
1411
 
with_iconv
1412
 
with_imap
1413
 
with_imap_ssl
1414
 
with_interbase
1415
 
enable_intl
1416
 
with_icu_dir
1417
 
enable_json
1418
 
with_ldap
1419
 
with_ldap_sasl
1420
 
enable_mbstring
1421
 
enable_mbregex
1422
 
enable_mbregex_backtrack
1423
 
with_libmbfl
1424
 
with_onig
1425
 
with_mcrypt
1426
 
with_mssql
1427
 
with_mysql
1428
 
with_mysql_sock
1429
 
with_mysqli
1430
 
enable_embedded_mysqli
1431
 
with_oci8
1432
 
with_adabas
1433
 
with_sapdb
1434
 
with_solid
1435
 
with_ibm_db2
1436
 
with_ODBCRouter
1437
 
with_empress
1438
 
with_empress_bcs
1439
 
with_birdstep
1440
 
with_custom_odbc
1441
 
with_iodbc
1442
 
with_esoob
1443
 
with_unixODBC
1444
 
with_dbmaker
1445
 
enable_pcntl
1446
 
enable_pdo
1447
 
with_pdo_dblib
1448
 
with_pdo_firebird
1449
 
with_pdo_mysql
1450
 
with_pdo_oci
1451
 
with_pdo_odbc
1452
 
with_pdo_pgsql
1453
 
with_pdo_sqlite
1454
 
with_pgsql
1455
 
enable_phar
1456
 
enable_posix
1457
 
with_pspell
1458
 
with_libedit
1459
 
with_readline
1460
 
with_recode
1461
 
enable_session
1462
 
with_mm
1463
 
enable_shmop
1464
 
enable_simplexml
1465
 
with_snmp
1466
 
enable_ucd_snmp_hack
1467
 
enable_soap
1468
 
enable_sockets
1469
 
with_sqlite
1470
 
enable_sqlite_utf8
1471
 
with_sybase_ct
1472
 
enable_sysvmsg
1473
 
enable_sysvsem
1474
 
enable_sysvshm
1475
 
with_tidy
1476
 
enable_tokenizer
1477
 
enable_wddx
1478
 
with_libexpat_dir
1479
 
enable_xml
1480
 
enable_xmlreader
1481
 
with_xmlrpc
1482
 
with_iconv_dir
1483
 
enable_xmlwriter
1484
 
with_xsl
1485
 
enable_zip
1486
 
enable_mysqlnd
1487
 
enable_mysqlnd_compression_support
1488
 
with_pear
1489
 
with_zend_vm
1490
 
enable_maintainer_zts
1491
 
enable_inline_optimization
1492
 
enable_zend_multibyte
1493
 
with_tsrm_pth
1494
 
with_tsrm_st
1495
 
with_tsrm_pthreads
1496
 
enable_shared
1497
 
enable_static
1498
 
enable_fast_install
1499
 
with_gnu_ld
1500
 
enable_libtool_lock
1501
 
with_pic
1502
 
with_tags
1503
 
'
1504
 
      ac_precious_vars='build_alias
1505
 
host_alias
1506
 
target_alias
1507
 
CC
1508
 
CFLAGS
1509
 
LDFLAGS
1510
 
LIBS
1511
 
CPPFLAGS
1512
 
CPP
1513
 
YACC
1514
 
YFLAGS
1515
 
CXX
1516
 
CXXFLAGS
1517
 
CCC
1518
 
CXXCPP'
1519
 
 
1520
 
 
1521
 
# Initialize some variables set by options.
1522
 
ac_init_help=
1523
 
ac_init_version=false
1524
 
ac_unrecognized_opts=
1525
 
ac_unrecognized_sep=
1526
 
# The variables have the same names as the options, with
1527
 
# dashes changed to underlines.
1528
 
cache_file=/dev/null
1529
 
exec_prefix=NONE
1530
 
no_create=
1531
 
no_recursion=
1532
 
prefix=NONE
1533
 
program_prefix=NONE
1534
 
program_suffix=NONE
1535
 
program_transform_name=s,x,x,
1536
 
silent=
1537
 
site=
1538
 
srcdir=
1539
 
verbose=
1540
 
x_includes=NONE
1541
 
x_libraries=NONE
1542
 
 
1543
 
# Installation directory options.
1544
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
1545
 
# and all the variables that are supposed to be based on exec_prefix
1546
 
# by default will actually change.
1547
 
# Use braces instead of parens because sh, perl, etc. also accept them.
1548
 
# (The list follows the same order as the GNU Coding Standards.)
1549
 
bindir='${exec_prefix}/bin'
1550
 
sbindir='${exec_prefix}/sbin'
1551
 
libexecdir='${exec_prefix}/libexec'
1552
 
datarootdir='${prefix}/share'
1553
 
datadir='${datarootdir}'
1554
 
sysconfdir='${prefix}/etc'
1555
 
sharedstatedir='${prefix}/com'
1556
 
localstatedir='${prefix}/var'
1557
 
includedir='${prefix}/include'
1558
 
oldincludedir='/usr/include'
1559
 
docdir='${datarootdir}/doc/${PACKAGE}'
1560
 
infodir='${datarootdir}/info'
1561
 
htmldir='${docdir}'
1562
 
dvidir='${docdir}'
1563
 
pdfdir='${docdir}'
1564
 
psdir='${docdir}'
1565
 
libdir='${exec_prefix}/lib'
1566
 
localedir='${datarootdir}/locale'
1567
 
mandir='${datarootdir}/man'
1568
 
 
1569
 
ac_prev=
1570
 
ac_dashdash=
1571
 
for ac_option
1572
 
do
1573
 
  # If the previous option needs an argument, assign it.
1574
 
  if test -n "$ac_prev"; then
1575
 
    eval $ac_prev=\$ac_option
1576
 
    ac_prev=
1577
 
    continue
1578
 
  fi
1579
 
 
1580
 
  case $ac_option in
1581
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1582
 
  *)    ac_optarg=yes ;;
1583
 
  esac
1584
 
 
1585
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
1586
 
 
1587
 
  case $ac_dashdash$ac_option in
1588
 
  --)
1589
 
    ac_dashdash=yes ;;
1590
 
 
1591
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1592
 
    ac_prev=bindir ;;
1593
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1594
 
    bindir=$ac_optarg ;;
1595
 
 
1596
 
  -build | --build | --buil | --bui | --bu)
1597
 
    ac_prev=build_alias ;;
1598
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1599
 
    build_alias=$ac_optarg ;;
1600
 
 
1601
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1602
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1603
 
    ac_prev=cache_file ;;
1604
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1605
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1606
 
    cache_file=$ac_optarg ;;
1607
 
 
1608
 
  --config-cache | -C)
1609
 
    cache_file=config.cache ;;
1610
 
 
1611
 
  -datadir | --datadir | --datadi | --datad)
1612
 
    ac_prev=datadir ;;
1613
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1614
 
    datadir=$ac_optarg ;;
1615
 
 
1616
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1617
 
  | --dataroo | --dataro | --datar)
1618
 
    ac_prev=datarootdir ;;
1619
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1620
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1621
 
    datarootdir=$ac_optarg ;;
1622
 
 
1623
 
  -disable-* | --disable-*)
1624
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1625
 
    # Reject names that are not valid shell variable names.
1626
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1627
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1628
 
   { (exit 1); exit 1; }; }
1629
 
    ac_useropt_orig=$ac_useropt
1630
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1631
 
    case $ac_user_opts in
1632
 
      *"
1633
 
"enable_$ac_useropt"
1634
 
"*) ;;
1635
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1636
 
         ac_unrecognized_sep=', ';;
1637
 
    esac
1638
 
    eval enable_$ac_useropt=no ;;
1639
 
 
1640
 
  -docdir | --docdir | --docdi | --doc | --do)
1641
 
    ac_prev=docdir ;;
1642
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1643
 
    docdir=$ac_optarg ;;
1644
 
 
1645
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1646
 
    ac_prev=dvidir ;;
1647
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1648
 
    dvidir=$ac_optarg ;;
1649
 
 
1650
 
  -enable-* | --enable-*)
1651
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1652
 
    # Reject names that are not valid shell variable names.
1653
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1654
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1655
 
   { (exit 1); exit 1; }; }
1656
 
    ac_useropt_orig=$ac_useropt
1657
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1658
 
    case $ac_user_opts in
1659
 
      *"
1660
 
"enable_$ac_useropt"
1661
 
"*) ;;
1662
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1663
 
         ac_unrecognized_sep=', ';;
1664
 
    esac
1665
 
    eval enable_$ac_useropt=\$ac_optarg ;;
1666
 
 
1667
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1668
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1669
 
  | --exec | --exe | --ex)
1670
 
    ac_prev=exec_prefix ;;
1671
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1672
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1673
 
  | --exec=* | --exe=* | --ex=*)
1674
 
    exec_prefix=$ac_optarg ;;
1675
 
 
1676
 
  -gas | --gas | --ga | --g)
1677
 
    # Obsolete; use --with-gas.
1678
 
    with_gas=yes ;;
1679
 
 
1680
 
  -help | --help | --hel | --he | -h)
1681
 
    ac_init_help=long ;;
1682
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1683
 
    ac_init_help=recursive ;;
1684
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1685
 
    ac_init_help=short ;;
1686
 
 
1687
 
  -host | --host | --hos | --ho)
1688
 
    ac_prev=host_alias ;;
1689
 
  -host=* | --host=* | --hos=* | --ho=*)
1690
 
    host_alias=$ac_optarg ;;
1691
 
 
1692
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1693
 
    ac_prev=htmldir ;;
1694
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1695
 
  | --ht=*)
1696
 
    htmldir=$ac_optarg ;;
1697
 
 
1698
 
  -includedir | --includedir | --includedi | --included | --include \
1699
 
  | --includ | --inclu | --incl | --inc)
1700
 
    ac_prev=includedir ;;
1701
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1702
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1703
 
    includedir=$ac_optarg ;;
1704
 
 
1705
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1706
 
    ac_prev=infodir ;;
1707
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1708
 
    infodir=$ac_optarg ;;
1709
 
 
1710
 
  -libdir | --libdir | --libdi | --libd)
1711
 
    ac_prev=libdir ;;
1712
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1713
 
    libdir=$ac_optarg ;;
1714
 
 
1715
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1716
 
  | --libexe | --libex | --libe)
1717
 
    ac_prev=libexecdir ;;
1718
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1719
 
  | --libexe=* | --libex=* | --libe=*)
1720
 
    libexecdir=$ac_optarg ;;
1721
 
 
1722
 
  -localedir | --localedir | --localedi | --localed | --locale)
1723
 
    ac_prev=localedir ;;
1724
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1725
 
    localedir=$ac_optarg ;;
1726
 
 
1727
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1728
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1729
 
    ac_prev=localstatedir ;;
1730
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1731
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1732
 
    localstatedir=$ac_optarg ;;
1733
 
 
1734
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1735
 
    ac_prev=mandir ;;
1736
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1737
 
    mandir=$ac_optarg ;;
1738
 
 
1739
 
  -nfp | --nfp | --nf)
1740
 
    # Obsolete; use --without-fp.
1741
 
    with_fp=no ;;
1742
 
 
1743
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1744
 
  | --no-cr | --no-c | -n)
1745
 
    no_create=yes ;;
1746
 
 
1747
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1748
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1749
 
    no_recursion=yes ;;
1750
 
 
1751
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1752
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1753
 
  | --oldin | --oldi | --old | --ol | --o)
1754
 
    ac_prev=oldincludedir ;;
1755
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1756
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1757
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1758
 
    oldincludedir=$ac_optarg ;;
1759
 
 
1760
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1761
 
    ac_prev=prefix ;;
1762
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1763
 
    prefix=$ac_optarg ;;
1764
 
 
1765
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1766
 
  | --program-pre | --program-pr | --program-p)
1767
 
    ac_prev=program_prefix ;;
1768
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1769
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1770
 
    program_prefix=$ac_optarg ;;
1771
 
 
1772
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1773
 
  | --program-suf | --program-su | --program-s)
1774
 
    ac_prev=program_suffix ;;
1775
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1776
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1777
 
    program_suffix=$ac_optarg ;;
1778
 
 
1779
 
  -program-transform-name | --program-transform-name \
1780
 
  | --program-transform-nam | --program-transform-na \
1781
 
  | --program-transform-n | --program-transform- \
1782
 
  | --program-transform | --program-transfor \
1783
 
  | --program-transfo | --program-transf \
1784
 
  | --program-trans | --program-tran \
1785
 
  | --progr-tra | --program-tr | --program-t)
1786
 
    ac_prev=program_transform_name ;;
1787
 
  -program-transform-name=* | --program-transform-name=* \
1788
 
  | --program-transform-nam=* | --program-transform-na=* \
1789
 
  | --program-transform-n=* | --program-transform-=* \
1790
 
  | --program-transform=* | --program-transfor=* \
1791
 
  | --program-transfo=* | --program-transf=* \
1792
 
  | --program-trans=* | --program-tran=* \
1793
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1794
 
    program_transform_name=$ac_optarg ;;
1795
 
 
1796
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1797
 
    ac_prev=pdfdir ;;
1798
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1799
 
    pdfdir=$ac_optarg ;;
1800
 
 
1801
 
  -psdir | --psdir | --psdi | --psd | --ps)
1802
 
    ac_prev=psdir ;;
1803
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1804
 
    psdir=$ac_optarg ;;
1805
 
 
1806
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1807
 
  | -silent | --silent | --silen | --sile | --sil)
1808
 
    silent=yes ;;
1809
 
 
1810
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1811
 
    ac_prev=sbindir ;;
1812
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1813
 
  | --sbi=* | --sb=*)
1814
 
    sbindir=$ac_optarg ;;
1815
 
 
1816
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1817
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1818
 
  | --sharedst | --shareds | --shared | --share | --shar \
1819
 
  | --sha | --sh)
1820
 
    ac_prev=sharedstatedir ;;
1821
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1822
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1823
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1824
 
  | --sha=* | --sh=*)
1825
 
    sharedstatedir=$ac_optarg ;;
1826
 
 
1827
 
  -site | --site | --sit)
1828
 
    ac_prev=site ;;
1829
 
  -site=* | --site=* | --sit=*)
1830
 
    site=$ac_optarg ;;
1831
 
 
1832
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1833
 
    ac_prev=srcdir ;;
1834
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1835
 
    srcdir=$ac_optarg ;;
1836
 
 
1837
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1838
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1839
 
    ac_prev=sysconfdir ;;
1840
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1841
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1842
 
    sysconfdir=$ac_optarg ;;
1843
 
 
1844
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1845
 
    ac_prev=target_alias ;;
1846
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1847
 
    target_alias=$ac_optarg ;;
1848
 
 
1849
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1850
 
    verbose=yes ;;
1851
 
 
1852
 
  -version | --version | --versio | --versi | --vers | -V)
1853
 
    ac_init_version=: ;;
1854
 
 
1855
 
  -with-* | --with-*)
1856
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1857
 
    # Reject names that are not valid shell variable names.
1858
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1859
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1860
 
   { (exit 1); exit 1; }; }
1861
 
    ac_useropt_orig=$ac_useropt
1862
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1863
 
    case $ac_user_opts in
1864
 
      *"
1865
 
"with_$ac_useropt"
1866
 
"*) ;;
1867
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1868
 
         ac_unrecognized_sep=', ';;
1869
 
    esac
1870
 
    eval with_$ac_useropt=\$ac_optarg ;;
1871
 
 
1872
 
  -without-* | --without-*)
1873
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1874
 
    # Reject names that are not valid shell variable names.
1875
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1876
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1877
 
   { (exit 1); exit 1; }; }
1878
 
    ac_useropt_orig=$ac_useropt
1879
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1880
 
    case $ac_user_opts in
1881
 
      *"
1882
 
"with_$ac_useropt"
1883
 
"*) ;;
1884
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1885
 
         ac_unrecognized_sep=', ';;
1886
 
    esac
1887
 
    eval with_$ac_useropt=no ;;
1888
 
 
1889
 
  --x)
1890
 
    # Obsolete; use --with-x.
1891
 
    with_x=yes ;;
1892
 
 
1893
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1894
 
  | --x-incl | --x-inc | --x-in | --x-i)
1895
 
    ac_prev=x_includes ;;
1896
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1897
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1898
 
    x_includes=$ac_optarg ;;
1899
 
 
1900
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1901
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1902
 
    ac_prev=x_libraries ;;
1903
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1904
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1905
 
    x_libraries=$ac_optarg ;;
1906
 
 
1907
 
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1908
 
Try \`$0 --help' for more information." >&2
1909
 
   { (exit 1); exit 1; }; }
1910
 
    ;;
1911
 
 
1912
 
  *=*)
1913
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1914
 
    # Reject names that are not valid shell variable names.
1915
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1916
 
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1917
 
   { (exit 1); exit 1; }; }
1918
 
    eval $ac_envvar=\$ac_optarg
1919
 
    export $ac_envvar ;;
1920
 
 
1921
 
  *)
1922
 
    # FIXME: should be removed in autoconf 3.0.
1923
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1924
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1925
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1926
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1927
 
    ;;
1928
 
 
1929
 
  esac
1930
 
done
1931
 
 
1932
 
if test -n "$ac_prev"; then
1933
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1934
 
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1935
 
   { (exit 1); exit 1; }; }
1936
 
fi
1937
 
 
1938
 
if test -n "$ac_unrecognized_opts"; then
1939
 
  case $enable_option_checking in
1940
 
    no) ;;
1941
 
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1942
 
   { (exit 1); exit 1; }; } ;;
1943
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1944
 
  esac
1945
 
fi
1946
 
 
1947
 
# Check all directory arguments for consistency.
1948
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1949
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1950
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1951
 
                libdir localedir mandir
1952
 
do
1953
 
  eval ac_val=\$$ac_var
1954
 
  # Remove trailing slashes.
1955
 
  case $ac_val in
1956
 
    */ )
1957
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1958
 
      eval $ac_var=\$ac_val;;
1959
 
  esac
1960
 
  # Be sure to have absolute directory names.
1961
 
  case $ac_val in
1962
 
    [\\/$]* | ?:[\\/]* )  continue;;
1963
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1964
 
  esac
1965
 
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1966
 
   { (exit 1); exit 1; }; }
1967
 
done
1968
 
 
1969
 
# There might be people who depend on the old broken behavior: `$host'
1970
 
# used to hold the argument of --host etc.
1971
 
# FIXME: To remove some day.
1972
 
build=$build_alias
1973
 
host=$host_alias
1974
 
target=$target_alias
1975
 
 
1976
 
# FIXME: To remove some day.
1977
 
if test "x$host_alias" != x; then
1978
 
  if test "x$build_alias" = x; then
1979
 
    cross_compiling=maybe
1980
 
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1981
 
    If a cross compiler is detected then cross compile mode will be used." >&2
1982
 
  elif test "x$build_alias" != "x$host_alias"; then
1983
 
    cross_compiling=yes
1984
 
  fi
1985
 
fi
1986
 
 
1987
 
ac_tool_prefix=
1988
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1989
 
 
1990
 
test "$silent" = yes && exec 6>/dev/null
1991
 
 
1992
 
 
1993
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1994
 
ac_ls_di=`ls -di .` &&
1995
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1996
 
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1997
 
   { (exit 1); exit 1; }; }
1998
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1999
 
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
2000
 
   { (exit 1); exit 1; }; }
2001
 
 
2002
 
 
2003
 
# Find the source files, if location was not specified.
2004
 
if test -z "$srcdir"; then
2005
 
  ac_srcdir_defaulted=yes
2006
 
  # Try the directory containing this script, then the parent directory.
2007
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
2008
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2009
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
2010
 
         X"$as_myself" : 'X\(//\)$' \| \
2011
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2012
 
$as_echo X"$as_myself" |
2013
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2014
 
            s//\1/
2015
 
            q
2016
 
          }
2017
 
          /^X\(\/\/\)[^/].*/{
2018
 
            s//\1/
2019
 
            q
2020
 
          }
2021
 
          /^X\(\/\/\)$/{
2022
 
            s//\1/
2023
 
            q
2024
 
          }
2025
 
          /^X\(\/\).*/{
2026
 
            s//\1/
2027
 
            q
2028
 
          }
2029
 
          s/.*/./; q'`
2030
 
  srcdir=$ac_confdir
2031
 
  if test ! -r "$srcdir/$ac_unique_file"; then
2032
 
    srcdir=..
2033
 
  fi
2034
 
else
2035
 
  ac_srcdir_defaulted=no
2036
 
fi
2037
 
if test ! -r "$srcdir/$ac_unique_file"; then
2038
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2039
 
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2040
 
   { (exit 1); exit 1; }; }
2041
 
fi
2042
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2043
 
ac_abs_confdir=`(
2044
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2045
 
   { (exit 1); exit 1; }; }
2046
 
        pwd)`
2047
 
# When building in place, set srcdir=.
2048
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
2049
 
  srcdir=.
2050
 
fi
2051
 
# Remove unnecessary trailing slashes from srcdir.
2052
 
# Double slashes in file names in object file debugging info
2053
 
# mess up M-x gdb in Emacs.
2054
 
case $srcdir in
2055
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2056
 
esac
2057
 
for ac_var in $ac_precious_vars; do
2058
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2059
 
  eval ac_env_${ac_var}_value=\$${ac_var}
2060
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2061
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2062
 
done
2063
 
 
2064
 
#
2065
 
# Report the --help message.
2066
 
#
2067
 
if test "$ac_init_help" = "long"; then
2068
 
  # Omit some internal or obsolete options to make the list less imposing.
2069
 
  # This message is too long to be a string in the A/UX 3.1 sh.
2070
 
  cat <<_ACEOF
2071
 
\`configure' configures this package to adapt to many kinds of systems.
2072
 
 
2073
 
Usage: $0 [OPTION]... [VAR=VALUE]...
2074
 
 
2075
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
2076
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
2077
 
 
2078
 
Defaults for the options are specified in brackets.
2079
 
 
2080
 
Configuration:
2081
 
  -h, --help              display this help and exit
2082
 
      --help=short        display options specific to this package
2083
 
      --help=recursive    display the short help of all the included packages
2084
 
  -V, --version           display version information and exit
2085
 
  -q, --quiet, --silent   do not print \`checking...' messages
2086
 
      --cache-file=FILE   cache test results in FILE [disabled]
2087
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
2088
 
  -n, --no-create         do not create output files
2089
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2090
 
 
2091
 
Installation directories:
2092
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
2093
 
                          [$ac_default_prefix]
2094
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2095
 
                          [PREFIX]
2096
 
 
2097
 
By default, \`make install' will install all the files in
2098
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2099
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2100
 
for instance \`--prefix=\$HOME'.
2101
 
 
2102
 
For better control, use the options below.
2103
 
 
2104
 
Fine tuning of the installation directories:
2105
 
  --bindir=DIR            user executables [EPREFIX/bin]
2106
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2107
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
2108
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2109
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2110
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2111
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
2112
 
  --includedir=DIR        C header files [PREFIX/include]
2113
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2114
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2115
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2116
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
2117
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2118
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
2119
 
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
2120
 
  --htmldir=DIR           html documentation [DOCDIR]
2121
 
  --dvidir=DIR            dvi documentation [DOCDIR]
2122
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
2123
 
  --psdir=DIR             ps documentation [DOCDIR]
2124
 
_ACEOF
2125
 
 
2126
 
  cat <<\_ACEOF
2127
 
 
2128
 
System types:
2129
 
  --build=BUILD     configure for building on BUILD [guessed]
2130
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2131
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
2132
 
_ACEOF
2133
 
fi
2134
 
 
2135
 
if test -n "$ac_init_help"; then
2136
 
 
2137
 
  cat <<\_ACEOF
2138
 
 
2139
 
Optional Features:
2140
 
  --disable-option-checking  ignore unrecognized --enable/--with options
2141
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2142
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2143
 
  --disable-rpath         Disable passing additional runtime library
2144
 
                          search paths
2145
 
  --enable-re2c-cgoto     Enable -g flag to re2c to use computed goto gcc extension
2146
 
 
2147
 
SAPI modules:
2148
 
 
2149
 
  --enable-mod-charset      APACHE: Enable transfer tables for mod_charset (Rus Apache)
2150
 
  --enable-mod-charset      APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)
2151
 
  --disable-cli           Disable building CLI version of PHP
2152
 
                          (this forces --without-pear)
2153
 
  --enable-embed=TYPE   EXPERIMENTAL: Enable building of embedded SAPI library
2154
 
                          TYPE is either 'shared' or 'static'. TYPE=shared
2155
 
  --enable-fpm              EXPERIMENTAL: Enable building of the fpm SAPI executable
2156
 
  --enable-roxen-zts        ROXEN: Build the Roxen module using Zend Thread Safety
2157
 
  --disable-cgi           Disable building CGI version of PHP
2158
 
 
2159
 
General settings:
2160
 
 
2161
 
  --enable-gcov           Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
2162
 
  --enable-debug          Compile with debugging symbols
2163
 
  --enable-safe-mode      Enable safe mode by default
2164
 
  --enable-sigchild       Enable PHP's own SIGCHLD handler
2165
 
  --enable-magic-quotes   Enable magic quotes by default.
2166
 
  --enable-libgcc         Enable explicitly linking against libgcc
2167
 
  --disable-short-tags    Disable the short-form <? start tag by default
2168
 
  --enable-dmalloc        Enable dmalloc
2169
 
  --disable-ipv6          Disable IPv6 support
2170
 
  --enable-fd-setsize     Set size of descriptor sets
2171
 
 
2172
 
Extensions:
2173
 
 
2174
 
  --with-EXTENSION=shared[,PATH]
2175
 
  
2176
 
    NOTE: Not all extensions can be build as 'shared'.
2177
 
 
2178
 
    Example: --with-foobar=shared,/usr/local/foobar/
2179
 
 
2180
 
      o Builds the foobar extension as shared extension.
2181
 
      o foobar package install prefix is /usr/local/foobar/
2182
 
 
2183
 
 
2184
 
 --disable-all   Disable all extensions which are enabled by default
2185
 
 
2186
 
  --disable-libxml        Disable LIBXML support
2187
 
  --enable-bcmath         Enable bc style precision math functions
2188
 
  --enable-calendar       Enable support for calendar conversion
2189
 
  --disable-ctype         Disable ctype functions
2190
 
  --enable-dba            Build DBA with bundled modules. To build shared DBA
2191
 
                          extension use --enable-dba=shared
2192
 
  --disable-inifile         DBA: INI support (bundled)
2193
 
  --disable-flatfile        DBA: FlatFile support (bundled)
2194
 
  --disable-dom           Disable DOM support
2195
 
  --enable-exif           Enable EXIF (metadata from images) support
2196
 
  --disable-fileinfo      Disable fileinfo support
2197
 
  --disable-filter        Disable input filter support
2198
 
  --enable-ftp            Enable FTP support
2199
 
  --enable-gd-native-ttf    GD: Enable TrueType string function
2200
 
  --enable-gd-jis-conv      GD: Enable JIS-mapped Japanese font support
2201
 
  --disable-hash          Disable hash support
2202
 
  --enable-intl           Enable internationalization support
2203
 
  --disable-json          Disable JavaScript Object Serialization support
2204
 
  --enable-mbstring       Enable multibyte string support
2205
 
  --disable-mbregex         MBSTRING: Disable multibyte regex support
2206
 
  --disable-mbregex-backtrack
2207
 
                            MBSTRING: Disable multibyte regex backtrack check
2208
 
  --enable-embedded-mysqli  MYSQLi: Enable embedded support
2209
 
                            Note: Does not work with MySQL native driver!
2210
 
  --enable-pcntl          Enable pcntl support (CLI/CGI only)
2211
 
  --disable-pdo           Disable PHP Data Objects support
2212
 
  --disable-phar          Disable phar support
2213
 
  --disable-posix         Disable POSIX-like functions
2214
 
  --disable-session       Disable session support
2215
 
  --enable-shmop          Enable shmop support
2216
 
  --disable-simplexml     Disable SimpleXML support
2217
 
  --enable-ucd-snmp-hack    SNMP: Enable UCD SNMP hack
2218
 
  --enable-soap           Enable SOAP support
2219
 
  --enable-sockets        Enable sockets support
2220
 
  --enable-sqlite-utf8      SQLite: Enable UTF-8 support for SQLite
2221
 
  --enable-sysvmsg        Enable sysvmsg support
2222
 
  --enable-sysvsem        Enable System V semaphore support
2223
 
  --enable-sysvshm        Enable the System V shared memory support
2224
 
  --disable-tokenizer     Disable tokenizer support
2225
 
  --enable-wddx           Enable WDDX support
2226
 
  --disable-xml           Disable XML support
2227
 
  --disable-xmlreader     Disable XMLReader support
2228
 
  --disable-xmlwriter     Disable XMLWriter support
2229
 
  --enable-zip            Include Zip read/write support
2230
 
  --enable-mysqlnd       Enable mysqlnd expliciely, will be done implicitly
2231
 
                         when required by other extensions
2232
 
  --disable-mysqlnd-compression-support
2233
 
                            Disable support for the MySQL compressed protocol in mysqlnd
2234
 
 
2235
 
PEAR:
2236
 
 
2237
 
 
2238
 
Zend:
2239
 
 
2240
 
  --enable-maintainer-zts Enable thread safety - for code maintainers only!!
2241
 
  --disable-inline-optimization 
2242
 
                          If building zend_execute.lo fails, try this switch
2243
 
  --enable-zend-multibyte Compile with zend multibyte support
2244
 
 
2245
 
TSRM:
2246
 
 
2247
 
 
2248
 
Libtool:
2249
 
 
2250
 
  --enable-shared=PKGS  build shared libraries default=yes
2251
 
  --enable-static=PKGS  build static libraries default=yes
2252
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
2253
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
2254
 
 
2255
 
Optional Packages:
2256
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2257
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2258
 
  --with-libdir=NAME      Look for libraries in .../NAME rather than .../lib
2259
 
  --with-aolserver=DIR    Specify path to the installed AOLserver
2260
 
  --with-apxs2filter=FILE   
2261
 
                          EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional
2262
 
                          pathname to the Apache apxs tool apxs
2263
 
  --with-apxs2=FILE     Build shared Apache 2.0 Handler module. FILE is the optional
2264
 
                          pathname to the Apache apxs tool apxs
2265
 
  --with-apxs=FILE      Build shared Apache 1.x module. FILE is the optional
2266
 
                          pathname to the Apache apxs tool apxs
2267
 
  --with-apache=DIR     Build Apache 1.x module. DIR is the top-level Apache
2268
 
                          build directory /usr/local/apache
2269
 
  --with-apache-hooks=FILE      
2270
 
                          EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional
2271
 
                          pathname to the Apache apxs tool apxs
2272
 
  --with-apache-hooks-static=DIR
2273
 
                          EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache
2274
 
                          build directory /usr/local/apache
2275
 
  --with-caudium=DIR    Build PHP as a Pike module for use with Caudium.
2276
 
                          DIR is the Caudium server dir /usr/local/caudium/server
2277
 
  --with-continuity=DIR   Build PHP as Continuity Server module. 
2278
 
                          DIR is path to the installed Continuity Server root
2279
 
  --with-fpm-user=USER  Set the user for php-fpm to run as. (default: nobody)
2280
 
  --with-fpm-group=GRP  Set the group for php-fpm to run as. For a system user, this 
2281
 
                  should usually be set to match the fpm username (default: nobody)
2282
 
  --with-isapi=DIR      Build PHP as an ISAPI module for use with Zeus
2283
 
  --with-litespeed        Build PHP as litespeed module
2284
 
  --with-milter=DIR     Build PHP as Milter application
2285
 
  --with-nsapi=DIR        Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver
2286
 
  --with-phttpd=DIR       Build PHP as phttpd module
2287
 
  --with-pi3web=DIR     Build PHP as Pi3Web module
2288
 
  --with-roxen=DIR        Build PHP as a Pike module. DIR is the base Roxen
2289
 
                          directory, normally /usr/local/roxen/server
2290
 
  --with-thttpd=SRCDIR    Build PHP as thttpd module
2291
 
  --with-tux=MODULEDIR    Build PHP as a TUX module (Linux only)
2292
 
  --with-webjames=SRCDIR  Build PHP as a WebJames module (RISC OS only)
2293
 
  --with-layout=TYPE      Set how installed files will be laid out.  Type can
2294
 
                          be either PHP or GNU PHP
2295
 
  --with-config-file-path=PATH
2296
 
                          Set the path in which to look for php.ini PREFIX/lib
2297
 
  --with-config-file-scan-dir=PATH
2298
 
                          Set the path where to scan for configuration files
2299
 
  --with-exec-dir=DIR   Only allow executables in DIR under safe-mode
2300
 
                          /usr/local/php/bin
2301
 
  --with-regex=TYPE       regex library type: system, php. TYPE=php
2302
 
                          WARNING: Do NOT use unless you know what you are doing!
2303
 
  --with-libxml-dir=DIR   LIBXML: libxml2 install prefix
2304
 
  --with-openssl=DIR    Include OpenSSL support (requires OpenSSL >= 0.9.6)
2305
 
  --with-kerberos=DIR     OPENSSL: Include Kerberos support
2306
 
  --with-pcre-regex=DIR   Include Perl Compatible Regular Expressions support.
2307
 
                          DIR is the PCRE install prefix BUNDLED
2308
 
  --without-sqlite3=DIR Do not include SQLite3 support. DIR is the prefix to
2309
 
                          SQLite3 installation directory.
2310
 
  --with-zlib=DIR       Include ZLIB support (requires zlib >= 1.0.9)
2311
 
  --with-zlib-dir=<DIR>   Define the location of zlib install directory
2312
 
  --with-bz2=DIR        Include BZip2 support
2313
 
  --with-curl=DIR       Include cURL support
2314
 
  --with-curlwrappers     EXPERIMENTAL: Use cURL for url streams
2315
 
  --with-qdbm=DIR         DBA: QDBM support
2316
 
  --with-gdbm=DIR         DBA: GDBM support
2317
 
  --with-ndbm=DIR         DBA: NDBM support
2318
 
  --with-db4=DIR          DBA: Oracle Berkeley DB 4.x or 5.x support
2319
 
  --with-db3=DIR          DBA: Oracle Berkeley DB 3.x support
2320
 
  --with-db2=DIR          DBA: Oracle Berkeley DB 2.x support
2321
 
  --with-db1=DIR          DBA: Oracle Berkeley DB 1.x support/emulation
2322
 
  --with-dbm=DIR          DBA: DBM support
2323
 
  --without-cdb=DIR       DBA: CDB support (bundled)
2324
 
  --with-libxml-dir=DIR   DOM: libxml2 install prefix
2325
 
  --with-enchant=DIR     Include enchant support.
2326
 
                          GNU Aspell version 1.1.3 or higher required.
2327
 
  --with-pcre-dir           FILTER: pcre install prefix
2328
 
  --with-openssl-dir=DIR  FTP: openssl install prefix
2329
 
  --with-gd=DIR         Include GD support.  DIR is the GD library base
2330
 
                          install directory BUNDLED
2331
 
  --with-jpeg-dir=DIR     GD: Set the path to libjpeg install prefix
2332
 
  --with-png-dir=DIR      GD: Set the path to libpng install prefix
2333
 
  --with-zlib-dir=DIR     GD: Set the path to libz install prefix
2334
 
  --with-xpm-dir=DIR      GD: Set the path to libXpm install prefix
2335
 
  --with-freetype-dir=DIR GD: Set the path to FreeType 2 install prefix
2336
 
  --with-t1lib=DIR        GD: Include T1lib support. T1lib version >= 5.0.0 required
2337
 
  --with-gettext=DIR    Include GNU gettext support
2338
 
  --with-gmp=DIR        Include GNU MP support
2339
 
  --with-mhash=DIR      Include mhash support
2340
 
  --without-iconv=DIR   Exclude iconv support
2341
 
  --with-imap=DIR       Include IMAP support. DIR is the c-client install prefix
2342
 
  --with-kerberos=DIR     IMAP: Include Kerberos support. DIR is the Kerberos install prefix
2343
 
  --with-imap-ssl=DIR     IMAP: Include SSL support. DIR is the OpenSSL install prefix
2344
 
  --with-interbase=DIR  Include InterBase support.  DIR is the InterBase base
2345
 
                          install directory /usr/interbase
2346
 
  --with-icu-dir=DIR      Specify where ICU libraries and headers can be found
2347
 
  --with-ldap=DIR       Include LDAP support
2348
 
  --with-ldap-sasl=DIR    LDAP: Include Cyrus SASL support
2349
 
  --with-libmbfl=DIR      MBSTRING: Use external libmbfl.  DIR is the libmbfl base
2350
 
                            install directory BUNDLED
2351
 
  --with-onig=DIR         MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
2352
 
                            If DIR is not set, the bundled oniguruma will be used
2353
 
  --with-mcrypt=DIR     Include mcrypt support
2354
 
  --with-mssql=DIR      Include MSSQL-DB support.  DIR is the FreeTDS home
2355
 
                          directory /usr/local/freetds
2356
 
  --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
2357
 
                          directory.  If mysqlnd is passed as DIR, 
2358
 
                          the MySQL native driver will be used /usr/local
2359
 
  --with-mysql-sock=DIR   MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer.
2360
 
                            If unspecified, the default locations are searched
2361
 
  --with-zlib-dir=DIR     MySQL: Set the path to libz install prefix
2362
 
  --with-mysqli=FILE    Include MySQLi support.  FILE is the path
2363
 
                          to mysql_config.  If mysqlnd is passed as FILE,
2364
 
                          the MySQL native driver will be used mysql_config
2365
 
  --with-oci8=DIR       Include Oracle Database OCI8 support. DIR defaults to \$ORACLE_HOME.
2366
 
                          Use --with-oci8=instantclient,/path/to/instant/client/lib 
2367
 
                          to use an Oracle Instant Client installation
2368
 
  --with-adabas=DIR     Include Adabas D support /usr/local
2369
 
  --with-sapdb=DIR      Include SAP DB support /usr/local
2370
 
  --with-solid=DIR      Include Solid support /usr/local/solid
2371
 
  --with-ibm-db2=DIR    Include IBM DB2 support /home/db2inst1/sqllib
2372
 
  --with-ODBCRouter=DIR Include ODBCRouter.com support /usr
2373
 
  --with-empress=DIR    Include Empress support \$EMPRESSPATH
2374
 
                          (Empress Version >= 8.60 required)
2375
 
  --with-empress-bcs=DIR
2376
 
                          Include Empress Local Access support \$EMPRESSPATH
2377
 
                          (Empress Version >= 8.60 required)
2378
 
  --with-birdstep=DIR   Include Birdstep support /usr/local/birdstep
2379
 
  --with-custom-odbc=DIR
2380
 
                          Include user defined ODBC support. DIR is ODBC install base
2381
 
                          directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and
2382
 
                          have some odbc.h in your include dirs. f.e. you should define 
2383
 
                          following for Sybase SQL Anywhere 5.5.00 on QNX, prior to
2384
 
                          running this configure script:
2385
 
                              CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
2386
 
                              LDFLAGS=-lunix
2387
 
                              CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"
2388
 
  --with-iodbc=DIR      Include iODBC support /usr/local
2389
 
  --with-esoob=DIR      Include Easysoft OOB support /usr/local/easysoft/oob/client
2390
 
  --with-unixODBC=DIR   Include unixODBC support /usr/local
2391
 
  --with-dbmaker=DIR    Include DBMaker support
2392
 
  --with-pdo-dblib=DIR    PDO: DBLIB-DB support.  DIR is the FreeTDS home directory
2393
 
  --with-pdo-firebird=DIR PDO: Firebird support.  DIR is the Firebird base
2394
 
                            install directory /opt/firebird
2395
 
  --with-pdo-mysql=DIR    PDO: MySQL support. DIR is the MySQL base directory
2396
 
                                 If mysqlnd is passed as DIR, the MySQL native
2397
 
                                 native driver will be used /usr/local
2398
 
  --with-zlib-dir=DIR       PDO_MySQL: Set the path to libz install prefix
2399
 
  --with-pdo-oci=DIR      PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME.
2400
 
                            Use --with-pdo-oci=instantclient,prefix,version 
2401
 
                            for an Oracle Instant Client SDK. 
2402
 
                            For example on Linux with 11.2 RPMs use:
2403
 
                            --with-pdo-oci=instantclient,/usr,11.2
2404
 
                            With 10.2 RPMs use:
2405
 
                            --with-pdo-oci=instantclient,/usr,10.2.0.4
2406
 
  --with-pdo-odbc=flavour,dir
2407
 
                            PDO: Support for 'flavour' ODBC driver.
2408
 
                            include and lib dirs are looked for under 'dir'.
2409
 
                            
2410
 
                            'flavour' can be one of:  ibm-db2, iODBC, unixODBC, generic
2411
 
                            If ',dir' part is omitted, default for the flavour 
2412
 
                            you have selected will used. e.g.:
2413
 
                            
2414
 
                              --with-pdo-odbc=unixODBC
2415
 
                              
2416
 
                            will check for unixODBC under /usr/local. You may attempt 
2417
 
                            to use an otherwise unsupported driver using the \"generic\" 
2418
 
                            flavour.  The syntax for generic ODBC support is:
2419
 
                            
2420
 
                              --with-pdo-odbc=generic,dir,libname,ldflags,cflags
2421
 
 
2422
 
                            When build as shared the extension filename is always pdo_odbc.so
2423
 
  --with-pdo-pgsql=DIR    PDO: PostgreSQL support.  DIR is the PostgreSQL base
2424
 
                            install directory or the path to pg_config
2425
 
  --without-pdo-sqlite=DIR
2426
 
                            PDO: sqlite 3 support.  DIR is the sqlite base
2427
 
                            install directory BUNDLED
2428
 
  --with-pgsql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
2429
 
                          base install directory or the path to pg_config
2430
 
  --with-pspell=DIR     Include PSPELL support.
2431
 
                          GNU Aspell version 0.50.0 or higher required
2432
 
  --with-libedit=DIR    Include libedit readline replacement (CLI/CGI only)
2433
 
  --with-readline=DIR   Include readline support (CLI/CGI only)
2434
 
  --with-recode=DIR     Include recode support
2435
 
  --with-mm=DIR           SESSION: Include mm support for session storage
2436
 
  --with-libxml-dir=DIR     SimpleXML: libxml2 install prefix
2437
 
  --with-snmp=DIR       Include SNMP support
2438
 
  --with-openssl-dir=DIR  SNMP: openssl install prefix
2439
 
  --with-libxml-dir=DIR     SOAP: libxml2 install prefix
2440
 
  --without-sqlite=DIR    Do not include sqlite support.  DIR is the sqlite base
2441
 
                          install directory BUNDLED
2442
 
  --with-sybase-ct=DIR  Include Sybase-CT support.  DIR is the Sybase home
2443
 
                          directory /home/sybase
2444
 
  --with-tidy=DIR       Include TIDY support
2445
 
  --with-libxml-dir=DIR     WDDX: libxml2 install prefix
2446
 
  --with-libexpat-dir=DIR   WDDX: libexpat dir for XMLRPC-EPI (deprecated)
2447
 
  --with-libxml-dir=DIR     XML: libxml2 install prefix
2448
 
  --with-libexpat-dir=DIR   XML: libexpat install prefix (deprecated)
2449
 
  --with-libxml-dir=DIR     XMLReader: libxml2 install prefix
2450
 
  --with-xmlrpc=DIR     Include XMLRPC-EPI support
2451
 
  --with-libxml-dir=DIR     XMLRPC-EPI: libxml2 install prefix
2452
 
  --with-libexpat-dir=DIR   XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
2453
 
  --with-iconv-dir=DIR      XMLRPC-EPI: iconv dir for XMLRPC-EPI
2454
 
  --with-libxml-dir=DIR     XMLWriter: libxml2 install prefix
2455
 
  --with-xsl=DIR        Include XSL support.  DIR is the libxslt base
2456
 
                          install directory (libxslt >= 1.1.0 required)
2457
 
  --with-zlib-dir=DIR     ZIP: Set the path to libz install prefix
2458
 
  --with-pcre-dir           ZIP: pcre install prefix
2459
 
  --with-zlib-dir=DIR       mysqlnd: Set the path to libz install prefix
2460
 
  --with-pear=DIR         Install PEAR in DIR PREFIX/lib/php
2461
 
  --without-pear          Do not install PEAR
2462
 
  --with-zend-vm=TYPE     Set virtual machine dispatch method. Type is
2463
 
                          one of "CALL", "SWITCH" or "GOTO" TYPE=CALL
2464
 
  --with-tsrm-pth=pth-config
2465
 
                          Use GNU Pth
2466
 
  --with-tsrm-st          Use SGI's State Threads
2467
 
  --with-tsrm-pthreads    Use POSIX threads (default)
2468
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
2469
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
2470
 
  --with-tags=TAGS      include additional configurations automatic
2471
 
 
2472
 
 
2473
 
Some influential environment variables:
2474
 
  CC          C compiler command
2475
 
  CFLAGS      C compiler flags
2476
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2477
 
              nonstandard directory <lib dir>
2478
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
2479
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2480
 
              you have headers in a nonstandard directory <include dir>
2481
 
  CPP         C preprocessor
2482
 
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2483
 
              the first program found out of: `bison -y', `byacc', `yacc'.
2484
 
  YFLAGS      The list of arguments that will be passed by default to $YACC.
2485
 
              This script will default YFLAGS to the empty string to avoid a
2486
 
              default value of `-d' given by some make applications.
2487
 
  CXX         C++ compiler command
2488
 
  CXXFLAGS    C++ compiler flags
2489
 
  CXXCPP      C++ preprocessor
2490
 
 
2491
 
Use these variables to override the choices made by `configure' or to help
2492
 
it to find libraries and programs with nonstandard names/locations.
2493
 
 
2494
 
_ACEOF
2495
 
ac_status=$?
2496
 
fi
2497
 
 
2498
 
if test "$ac_init_help" = "recursive"; then
2499
 
  # If there are subdirs, report their specific --help.
2500
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2501
 
    test -d "$ac_dir" ||
2502
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2503
 
      continue
2504
 
    ac_builddir=.
2505
 
 
2506
 
case "$ac_dir" in
2507
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2508
 
*)
2509
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2510
 
  # A ".." for each directory in $ac_dir_suffix.
2511
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2512
 
  case $ac_top_builddir_sub in
2513
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2514
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2515
 
  esac ;;
2516
 
esac
2517
 
ac_abs_top_builddir=$ac_pwd
2518
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
2519
 
# for backward compatibility:
2520
 
ac_top_builddir=$ac_top_build_prefix
2521
 
 
2522
 
case $srcdir in
2523
 
  .)  # We are building in place.
2524
 
    ac_srcdir=.
2525
 
    ac_top_srcdir=$ac_top_builddir_sub
2526
 
    ac_abs_top_srcdir=$ac_pwd ;;
2527
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
2528
 
    ac_srcdir=$srcdir$ac_dir_suffix;
2529
 
    ac_top_srcdir=$srcdir
2530
 
    ac_abs_top_srcdir=$srcdir ;;
2531
 
  *) # Relative name.
2532
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2533
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
2534
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2535
 
esac
2536
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2537
 
 
2538
 
    cd "$ac_dir" || { ac_status=$?; continue; }
2539
 
    # Check for guested configure.
2540
 
    if test -f "$ac_srcdir/configure.gnu"; then
2541
 
      echo &&
2542
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2543
 
    elif test -f "$ac_srcdir/configure"; then
2544
 
      echo &&
2545
 
      $SHELL "$ac_srcdir/configure" --help=recursive
2546
 
    else
2547
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2548
 
    fi || ac_status=$?
2549
 
    cd "$ac_pwd" || { ac_status=$?; break; }
2550
 
  done
2551
 
fi
2552
 
 
2553
 
test -n "$ac_init_help" && exit $ac_status
2554
 
if $ac_init_version; then
2555
 
  cat <<\_ACEOF
2556
 
configure
2557
 
generated by GNU Autoconf 2.63
2558
 
 
2559
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2560
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2561
 
This configure script is free software; the Free Software Foundation
2562
 
gives unlimited permission to copy, distribute and modify it.
2563
 
_ACEOF
2564
 
  exit
2565
 
fi
2566
 
cat >config.log <<_ACEOF
2567
 
This file contains any messages produced by compilers while
2568
 
running configure, to aid debugging if configure makes a mistake.
2569
 
 
2570
 
It was created by $as_me, which was
2571
 
generated by GNU Autoconf 2.63.  Invocation command line was
2572
 
 
2573
 
  $ $0 $@
2574
 
 
2575
 
_ACEOF
2576
 
exec 5>>config.log
2577
 
{
2578
 
cat <<_ASUNAME
2579
 
@%:@@%:@ --------- @%:@@%:@
2580
 
@%:@@%:@ Platform. @%:@@%:@
2581
 
@%:@@%:@ --------- @%:@@%:@
2582
 
 
2583
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2584
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2585
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2586
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2587
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2588
 
 
2589
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2590
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2591
 
 
2592
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2593
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2594
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2595
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2596
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2597
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2598
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2599
 
 
2600
 
_ASUNAME
2601
 
 
2602
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603
 
for as_dir in $PATH
2604
 
do
2605
 
  IFS=$as_save_IFS
2606
 
  test -z "$as_dir" && as_dir=.
2607
 
  $as_echo "PATH: $as_dir"
2608
 
done
2609
 
IFS=$as_save_IFS
2610
 
 
2611
 
} >&5
2612
 
 
2613
 
cat >&5 <<_ACEOF
2614
 
 
2615
 
 
2616
 
@%:@@%:@ ----------- @%:@@%:@
2617
 
@%:@@%:@ Core tests. @%:@@%:@
2618
 
@%:@@%:@ ----------- @%:@@%:@
2619
 
 
2620
 
_ACEOF
2621
 
 
2622
 
 
2623
 
# Keep a trace of the command line.
2624
 
# Strip out --no-create and --no-recursion so they do not pile up.
2625
 
# Strip out --silent because we don't want to record it for future runs.
2626
 
# Also quote any args containing shell meta-characters.
2627
 
# Make two passes to allow for proper duplicate-argument suppression.
2628
 
ac_configure_args=
2629
 
ac_configure_args0=
2630
 
ac_configure_args1=
2631
 
ac_must_keep_next=false
2632
 
for ac_pass in 1 2
2633
 
do
2634
 
  for ac_arg
2635
 
  do
2636
 
    case $ac_arg in
2637
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2638
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2639
 
    | -silent | --silent | --silen | --sile | --sil)
2640
 
      continue ;;
2641
 
    *\'*)
2642
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2643
 
    esac
2644
 
    case $ac_pass in
2645
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2646
 
    2)
2647
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2648
 
      if test $ac_must_keep_next = true; then
2649
 
        ac_must_keep_next=false # Got value, back to normal.
2650
 
      else
2651
 
        case $ac_arg in
2652
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
2653
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2654
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2655
 
          | -with-* | --with-* | -without-* | --without-* | --x)
2656
 
            case "$ac_configure_args0 " in
2657
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2658
 
            esac
2659
 
            ;;
2660
 
          -* ) ac_must_keep_next=true ;;
2661
 
        esac
2662
 
      fi
2663
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
2664
 
      ;;
2665
 
    esac
2666
 
  done
2667
 
done
2668
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2669
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2670
 
 
2671
 
# When interrupted or exit'd, cleanup temporary files, and complete
2672
 
# config.log.  We remove comments because anyway the quotes in there
2673
 
# would cause problems or look ugly.
2674
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
2675
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2676
 
trap 'exit_status=$?
2677
 
  # Save into config.log some information that might help in debugging.
2678
 
  {
2679
 
    echo
2680
 
 
2681
 
    cat <<\_ASBOX
2682
 
@%:@@%:@ ---------------- @%:@@%:@
2683
 
@%:@@%:@ Cache variables. @%:@@%:@
2684
 
@%:@@%:@ ---------------- @%:@@%:@
2685
 
_ASBOX
2686
 
    echo
2687
 
    # The following way of writing the cache mishandles newlines in values,
2688
 
(
2689
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2690
 
    eval ac_val=\$$ac_var
2691
 
    case $ac_val in #(
2692
 
    *${as_nl}*)
2693
 
      case $ac_var in #(
2694
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2695
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2696
 
      esac
2697
 
      case $ac_var in #(
2698
 
      _ | IFS | as_nl) ;; #(
2699
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2700
 
      *) $as_unset $ac_var ;;
2701
 
      esac ;;
2702
 
    esac
2703
 
  done
2704
 
  (set) 2>&1 |
2705
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2706
 
    *${as_nl}ac_space=\ *)
2707
 
      sed -n \
2708
 
        "s/'\''/'\''\\\\'\'''\''/g;
2709
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2710
 
      ;; #(
2711
 
    *)
2712
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2713
 
      ;;
2714
 
    esac |
2715
 
    sort
2716
 
)
2717
 
    echo
2718
 
 
2719
 
    cat <<\_ASBOX
2720
 
@%:@@%:@ ----------------- @%:@@%:@
2721
 
@%:@@%:@ Output variables. @%:@@%:@
2722
 
@%:@@%:@ ----------------- @%:@@%:@
2723
 
_ASBOX
2724
 
    echo
2725
 
    for ac_var in $ac_subst_vars
2726
 
    do
2727
 
      eval ac_val=\$$ac_var
2728
 
      case $ac_val in
2729
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2730
 
      esac
2731
 
      $as_echo "$ac_var='\''$ac_val'\''"
2732
 
    done | sort
2733
 
    echo
2734
 
 
2735
 
    if test -n "$ac_subst_files"; then
2736
 
      cat <<\_ASBOX
2737
 
@%:@@%:@ ------------------- @%:@@%:@
2738
 
@%:@@%:@ File substitutions. @%:@@%:@
2739
 
@%:@@%:@ ------------------- @%:@@%:@
2740
 
_ASBOX
2741
 
      echo
2742
 
      for ac_var in $ac_subst_files
2743
 
      do
2744
 
        eval ac_val=\$$ac_var
2745
 
        case $ac_val in
2746
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2747
 
        esac
2748
 
        $as_echo "$ac_var='\''$ac_val'\''"
2749
 
      done | sort
2750
 
      echo
2751
 
    fi
2752
 
 
2753
 
    if test -s confdefs.h; then
2754
 
      cat <<\_ASBOX
2755
 
@%:@@%:@ ----------- @%:@@%:@
2756
 
@%:@@%:@ confdefs.h. @%:@@%:@
2757
 
@%:@@%:@ ----------- @%:@@%:@
2758
 
_ASBOX
2759
 
      echo
2760
 
      cat confdefs.h
2761
 
      echo
2762
 
    fi
2763
 
    test "$ac_signal" != 0 &&
2764
 
      $as_echo "$as_me: caught signal $ac_signal"
2765
 
    $as_echo "$as_me: exit $exit_status"
2766
 
  } >&5
2767
 
  rm -f core *.core core.conftest.* &&
2768
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2769
 
    exit $exit_status
2770
 
' 0
2771
 
for ac_signal in 1 2 13 15; do
2772
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2773
 
done
2774
 
ac_signal=0
2775
 
 
2776
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2777
 
rm -f -r conftest* confdefs.h
2778
 
 
2779
 
# Predefined preprocessor variables.
2780
 
 
2781
 
cat >>confdefs.h <<_ACEOF
2782
 
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2783
 
_ACEOF
2784
 
 
2785
 
 
2786
 
cat >>confdefs.h <<_ACEOF
2787
 
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2788
 
_ACEOF
2789
 
 
2790
 
 
2791
 
cat >>confdefs.h <<_ACEOF
2792
 
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2793
 
_ACEOF
2794
 
 
2795
 
 
2796
 
cat >>confdefs.h <<_ACEOF
2797
 
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2798
 
_ACEOF
2799
 
 
2800
 
 
2801
 
cat >>confdefs.h <<_ACEOF
2802
 
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2803
 
_ACEOF
2804
 
 
2805
 
 
2806
 
# Let the site file select an alternate cache file if it wants to.
2807
 
# Prefer an explicitly selected file to automatically selected ones.
2808
 
ac_site_file1=NONE
2809
 
ac_site_file2=NONE
2810
 
if test -n "$CONFIG_SITE"; then
2811
 
  ac_site_file1=$CONFIG_SITE
2812
 
elif test "x$prefix" != xNONE; then
2813
 
  ac_site_file1=$prefix/share/config.site
2814
 
  ac_site_file2=$prefix/etc/config.site
2815
 
else
2816
 
  ac_site_file1=$ac_default_prefix/share/config.site
2817
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2818
 
fi
2819
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2820
 
do
2821
 
  test "x$ac_site_file" = xNONE && continue
2822
 
  if test -r "$ac_site_file"; then
2823
 
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2824
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2825
 
    sed 's/^/| /' "$ac_site_file" >&5
2826
 
    . "$ac_site_file"
2827
 
  fi
2828
 
done
2829
 
 
2830
 
if test -r "$cache_file"; then
2831
 
  # Some versions of bash will fail to source /dev/null (special
2832
 
  # files actually), so we avoid doing that.
2833
 
  if test -f "$cache_file"; then
2834
 
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2835
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2836
 
    case $cache_file in
2837
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2838
 
      *)                      . "./$cache_file";;
2839
 
    esac
2840
 
  fi
2841
 
else
2842
 
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2843
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2844
 
  >$cache_file
2845
 
fi
2846
 
 
2847
 
ac_header_list="$ac_header_list utime.h"
2848
 
# Check that the precious variables saved in the cache have kept the same
2849
 
# value.
2850
 
ac_cache_corrupted=false
2851
 
for ac_var in $ac_precious_vars; do
2852
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2853
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2854
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2855
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2856
 
  case $ac_old_set,$ac_new_set in
2857
 
    set,)
2858
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2859
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2860
 
      ac_cache_corrupted=: ;;
2861
 
    ,set)
2862
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2863
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2864
 
      ac_cache_corrupted=: ;;
2865
 
    ,);;
2866
 
    *)
2867
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2868
 
        # differences in whitespace do not lead to failure.
2869
 
        ac_old_val_w=`echo x $ac_old_val`
2870
 
        ac_new_val_w=`echo x $ac_new_val`
2871
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2872
 
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2873
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2874
 
          ac_cache_corrupted=:
2875
 
        else
2876
 
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2877
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2878
 
          eval $ac_var=\$ac_old_val
2879
 
        fi
2880
 
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2881
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2882
 
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2883
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2884
 
      fi;;
2885
 
  esac
2886
 
  # Pass precious variables to config.status.
2887
 
  if test "$ac_new_set" = set; then
2888
 
    case $ac_new_val in
2889
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2890
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2891
 
    esac
2892
 
    case " $ac_configure_args " in
2893
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2894
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2895
 
    esac
2896
 
  fi
2897
 
done
2898
 
if $ac_cache_corrupted; then
2899
 
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2900
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901
 
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2902
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2903
 
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2904
 
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2905
 
   { (exit 1); exit 1; }; }
2906
 
fi
2907
 
 
2908
 
 
2909
 
 
2910
 
 
2911
 
 
2912
 
 
2913
 
 
2914
 
 
2915
 
 
2916
 
 
2917
 
 
2918
 
 
2919
 
 
2920
 
 
2921
 
 
2922
 
 
2923
 
 
2924
 
ac_ext=c
2925
 
ac_cpp='$CPP $CPPFLAGS'
2926
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929
 
 
2930
 
 
2931
 
 
2932
 
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2933
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2934
 
if test "${ac_cv_path_GREP+set}" = set; then
2935
 
  $as_echo_n "(cached) " >&6
2936
 
else
2937
 
  if test -z "$GREP"; then
2938
 
  ac_path_GREP_found=false
2939
 
  # Loop through the user's path and test for each of PROGNAME-LIST
2940
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2942
 
do
2943
 
  IFS=$as_save_IFS
2944
 
  test -z "$as_dir" && as_dir=.
2945
 
  for ac_prog in grep ggrep; do
2946
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2947
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2948
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2949
 
# Check for GNU ac_path_GREP and select it if it is found.
2950
 
  # Check for GNU $ac_path_GREP
2951
 
case `"$ac_path_GREP" --version 2>&1` in
2952
 
*GNU*)
2953
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2954
 
*)
2955
 
  ac_count=0
2956
 
  $as_echo_n 0123456789 >"conftest.in"
2957
 
  while :
2958
 
  do
2959
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
2960
 
    mv "conftest.tmp" "conftest.in"
2961
 
    cp "conftest.in" "conftest.nl"
2962
 
    $as_echo 'GREP' >> "conftest.nl"
2963
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2964
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2965
 
    ac_count=`expr $ac_count + 1`
2966
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
2967
 
      # Best one so far, save it but keep looking for a better one
2968
 
      ac_cv_path_GREP="$ac_path_GREP"
2969
 
      ac_path_GREP_max=$ac_count
2970
 
    fi
2971
 
    # 10*(2^10) chars as input seems more than enough
2972
 
    test $ac_count -gt 10 && break
2973
 
  done
2974
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2975
 
esac
2976
 
 
2977
 
      $ac_path_GREP_found && break 3
2978
 
    done
2979
 
  done
2980
 
done
2981
 
IFS=$as_save_IFS
2982
 
  if test -z "$ac_cv_path_GREP"; then
2983
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2984
 
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2985
 
   { (exit 1); exit 1; }; }
2986
 
  fi
2987
 
else
2988
 
  ac_cv_path_GREP=$GREP
2989
 
fi
2990
 
 
2991
 
fi
2992
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2993
 
$as_echo "$ac_cv_path_GREP" >&6; }
2994
 
 GREP="$ac_cv_path_GREP"
2995
 
 
2996
 
 
2997
 
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
2998
 
$as_echo_n "checking for egrep... " >&6; }
2999
 
if test "${ac_cv_path_EGREP+set}" = set; then
3000
 
  $as_echo_n "(cached) " >&6
3001
 
else
3002
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3003
 
   then ac_cv_path_EGREP="$GREP -E"
3004
 
   else
3005
 
     if test -z "$EGREP"; then
3006
 
  ac_path_EGREP_found=false
3007
 
  # Loop through the user's path and test for each of PROGNAME-LIST
3008
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3010
 
do
3011
 
  IFS=$as_save_IFS
3012
 
  test -z "$as_dir" && as_dir=.
3013
 
  for ac_prog in egrep; do
3014
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3015
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3016
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3017
 
# Check for GNU ac_path_EGREP and select it if it is found.
3018
 
  # Check for GNU $ac_path_EGREP
3019
 
case `"$ac_path_EGREP" --version 2>&1` in
3020
 
*GNU*)
3021
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3022
 
*)
3023
 
  ac_count=0
3024
 
  $as_echo_n 0123456789 >"conftest.in"
3025
 
  while :
3026
 
  do
3027
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3028
 
    mv "conftest.tmp" "conftest.in"
3029
 
    cp "conftest.in" "conftest.nl"
3030
 
    $as_echo 'EGREP' >> "conftest.nl"
3031
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3032
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3033
 
    ac_count=`expr $ac_count + 1`
3034
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3035
 
      # Best one so far, save it but keep looking for a better one
3036
 
      ac_cv_path_EGREP="$ac_path_EGREP"
3037
 
      ac_path_EGREP_max=$ac_count
3038
 
    fi
3039
 
    # 10*(2^10) chars as input seems more than enough
3040
 
    test $ac_count -gt 10 && break
3041
 
  done
3042
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3043
 
esac
3044
 
 
3045
 
      $ac_path_EGREP_found && break 3
3046
 
    done
3047
 
  done
3048
 
done
3049
 
IFS=$as_save_IFS
3050
 
  if test -z "$ac_cv_path_EGREP"; then
3051
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3052
 
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3053
 
   { (exit 1); exit 1; }; }
3054
 
  fi
3055
 
else
3056
 
  ac_cv_path_EGREP=$EGREP
3057
 
fi
3058
 
 
3059
 
   fi
3060
 
fi
3061
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3062
 
$as_echo "$ac_cv_path_EGREP" >&6; }
3063
 
 EGREP="$ac_cv_path_EGREP"
3064
 
 
3065
 
 
3066
 
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3067
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3068
 
if test "${lt_cv_path_SED+set}" = set; then
3069
 
  $as_echo_n "(cached) " >&6
3070
 
else
3071
 
  # Loop through the user's path and test for sed and gsed.
3072
 
# Then use that list of sed's as ones to test for truncation.
3073
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074
 
for as_dir in $PATH
3075
 
do
3076
 
  IFS=$as_save_IFS
3077
 
  test -z "$as_dir" && as_dir=.
3078
 
  for lt_ac_prog in sed gsed; do
3079
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3080
 
      if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3081
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3082
 
      fi
3083
 
    done
3084
 
  done
3085
 
done
3086
 
lt_ac_max=0
3087
 
lt_ac_count=0
3088
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3089
 
# along with /bin/sed that truncates output.
3090
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3091
 
  test ! -f $lt_ac_sed && continue
3092
 
  cat /dev/null > conftest.in
3093
 
  lt_ac_count=0
3094
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3095
 
  # Check for GNU sed and select it if it is found.
3096
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3097
 
    lt_cv_path_SED=$lt_ac_sed
3098
 
    break
3099
 
  fi
3100
 
  while true; do
3101
 
    cat conftest.in conftest.in >conftest.tmp
3102
 
    mv conftest.tmp conftest.in
3103
 
    cp conftest.in conftest.nl
3104
 
    echo >>conftest.nl
3105
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3106
 
    cmp -s conftest.out conftest.nl || break
3107
 
    # 10000 chars as input seems more than enough
3108
 
    test $lt_ac_count -gt 10 && break
3109
 
    lt_ac_count=`expr $lt_ac_count + 1`
3110
 
    if test $lt_ac_count -gt $lt_ac_max; then
3111
 
      lt_ac_max=$lt_ac_count
3112
 
      lt_cv_path_SED=$lt_ac_sed
3113
 
    fi
3114
 
  done
3115
 
done
3116
 
 
3117
 
fi
3118
 
 
3119
 
SED=$lt_cv_path_SED
3120
 
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3121
 
$as_echo "$SED" >&6; }
3122
 
 
3123
 
 
3124
 
  
3125
 
  
3126
 
  
3127
 
  
3128
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
3129
 
 
3130
 
  
3131
 
 
3132
 
  
3133
 
  
3134
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
3135
 
 
3136
 
  
3137
 
 
3138
 
  test -f config.nice && mv config.nice config.nice.old
3139
 
  rm -f config.nice.old
3140
 
  cat >config.nice<<EOF
3141
 
#! /bin/sh
3142
 
#
3143
 
# Created by configure
3144
 
 
3145
 
EOF
3146
 
 
3147
 
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
3148
 
    eval val=\$$var
3149
 
    if test -n "$val"; then
3150
 
      echo "$var='$val' \\" >> config.nice
3151
 
    fi
3152
 
  done
3153
 
 
3154
 
  echo "'$0' \\" >> config.nice
3155
 
  if test `expr -- $0 : "'.*"` = 0; then
3156
 
    CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
3157
 
  else 
3158
 
    CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
3159
 
  fi
3160
 
  for arg in $ac_configure_args; do
3161
 
     if test `expr -- $arg : "'.*"` = 0; then
3162
 
        if test `expr -- $arg : "--.*"` = 0; then
3163
 
          break;
3164
 
        fi
3165
 
        echo "'$arg' \\" >> config.nice
3166
 
        CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
3167
 
     else
3168
 
        if test `expr -- $arg : "'--.*"` = 0; then
3169
 
          break;
3170
 
        fi
3171
 
        echo "$arg \\" >> config.nice
3172
 
        CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
3173
 
     fi
3174
 
  done
3175
 
  echo '"$@"' >> config.nice
3176
 
  chmod +x config.nice
3177
 
  CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
3178
 
  
3179
 
  
3180
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
3181
 
 
3182
 
  
3183
 
 
3184
 
  
3185
 
  
3186
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
3187
 
 
3188
 
  
3189
 
 
3190
 
 
3191
 
 
3192
 
ac_aux_dir=
3193
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3194
 
  if test -f "$ac_dir/install-sh"; then
3195
 
    ac_aux_dir=$ac_dir
3196
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
3197
 
    break
3198
 
  elif test -f "$ac_dir/install.sh"; then
3199
 
    ac_aux_dir=$ac_dir
3200
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
3201
 
    break
3202
 
  elif test -f "$ac_dir/shtool"; then
3203
 
    ac_aux_dir=$ac_dir
3204
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
3205
 
    break
3206
 
  fi
3207
 
done
3208
 
if test -z "$ac_aux_dir"; then
3209
 
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3210
 
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3211
 
   { (exit 1); exit 1; }; }
3212
 
fi
3213
 
 
3214
 
# These three variables are undocumented and unsupported,
3215
 
# and are intended to be withdrawn in a future Autoconf release.
3216
 
# They can cause serious problems if a builder's source tree is in a directory
3217
 
# whose full name contains unusual characters.
3218
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3219
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3220
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3221
 
 
3222
 
 
3223
 
# Make sure we can run config.sub.
3224
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3225
 
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3226
 
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3227
 
   { (exit 1); exit 1; }; }
3228
 
 
3229
 
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3230
 
$as_echo_n "checking build system type... " >&6; }
3231
 
if test "${ac_cv_build+set}" = set; then
3232
 
  $as_echo_n "(cached) " >&6
3233
 
else
3234
 
  ac_build_alias=$build_alias
3235
 
test "x$ac_build_alias" = x &&
3236
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3237
 
test "x$ac_build_alias" = x &&
3238
 
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3239
 
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3240
 
   { (exit 1); exit 1; }; }
3241
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3242
 
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3243
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3244
 
   { (exit 1); exit 1; }; }
3245
 
 
3246
 
fi
3247
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3248
 
$as_echo "$ac_cv_build" >&6; }
3249
 
case $ac_cv_build in
3250
 
*-*-*) ;;
3251
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3252
 
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3253
 
   { (exit 1); exit 1; }; };;
3254
 
esac
3255
 
build=$ac_cv_build
3256
 
ac_save_IFS=$IFS; IFS='-'
3257
 
set x $ac_cv_build
3258
 
shift
3259
 
build_cpu=$1
3260
 
build_vendor=$2
3261
 
shift; shift
3262
 
# Remember, the first character of IFS is used to create $*,
3263
 
# except with old shells:
3264
 
build_os=$*
3265
 
IFS=$ac_save_IFS
3266
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3267
 
 
3268
 
 
3269
 
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3270
 
$as_echo_n "checking host system type... " >&6; }
3271
 
if test "${ac_cv_host+set}" = set; then
3272
 
  $as_echo_n "(cached) " >&6
3273
 
else
3274
 
  if test "x$host_alias" = x; then
3275
 
  ac_cv_host=$ac_cv_build
3276
 
else
3277
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3278
 
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3279
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3280
 
   { (exit 1); exit 1; }; }
3281
 
fi
3282
 
 
3283
 
fi
3284
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3285
 
$as_echo "$ac_cv_host" >&6; }
3286
 
case $ac_cv_host in
3287
 
*-*-*) ;;
3288
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3289
 
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3290
 
   { (exit 1); exit 1; }; };;
3291
 
esac
3292
 
host=$ac_cv_host
3293
 
ac_save_IFS=$IFS; IFS='-'
3294
 
set x $ac_cv_host
3295
 
shift
3296
 
host_cpu=$1
3297
 
host_vendor=$2
3298
 
shift; shift
3299
 
# Remember, the first character of IFS is used to create $*,
3300
 
# except with old shells:
3301
 
host_os=$*
3302
 
IFS=$ac_save_IFS
3303
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3304
 
 
3305
 
 
3306
 
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
3307
 
$as_echo_n "checking target system type... " >&6; }
3308
 
if test "${ac_cv_target+set}" = set; then
3309
 
  $as_echo_n "(cached) " >&6
3310
 
else
3311
 
  if test "x$target_alias" = x; then
3312
 
  ac_cv_target=$ac_cv_host
3313
 
else
3314
 
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3315
 
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3316
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3317
 
   { (exit 1); exit 1; }; }
3318
 
fi
3319
 
 
3320
 
fi
3321
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3322
 
$as_echo "$ac_cv_target" >&6; }
3323
 
case $ac_cv_target in
3324
 
*-*-*) ;;
3325
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3326
 
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
3327
 
   { (exit 1); exit 1; }; };;
3328
 
esac
3329
 
target=$ac_cv_target
3330
 
ac_save_IFS=$IFS; IFS='-'
3331
 
set x $ac_cv_target
3332
 
shift
3333
 
target_cpu=$1
3334
 
target_vendor=$2
3335
 
shift; shift
3336
 
# Remember, the first character of IFS is used to create $*,
3337
 
# except with old shells:
3338
 
target_os=$*
3339
 
IFS=$ac_save_IFS
3340
 
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3341
 
 
3342
 
 
3343
 
# The aliases save the names the user supplied, while $host etc.
3344
 
# will get canonicalized.
3345
 
test -n "$target_alias" &&
3346
 
  test "$program_prefix$program_suffix$program_transform_name" = \
3347
 
    NONENONEs,x,x, &&
3348
 
  program_prefix=${target_alias}-
3349
 
 
3350
 
        if test -z "$host_alias" && test -n "$host"; then
3351
 
    host_alias=$host
3352
 
  fi
3353
 
  if test -z "$host_alias"; then
3354
 
    { { $as_echo "$as_me:$LINENO: error: host_alias is not set!" >&5
3355
 
$as_echo "$as_me: error: host_alias is not set!" >&2;}
3356
 
   { (exit 1); exit 1; }; }
3357
 
  fi
3358
 
 
3359
 
 
3360
 
ac_config_headers="$ac_config_headers main/php_config.h"
3361
 
 
3362
 
 
3363
 
PHP_MAJOR_VERSION=5
3364
 
PHP_MINOR_VERSION=3
3365
 
PHP_RELEASE_VERSION=10
3366
 
PHP_EXTRA_VERSION=""
3367
 
PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
3368
 
PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION`
3369
 
 
3370
 
 
3371
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION"
3372
 
 
3373
 
 
3374
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION"
3375
 
 
3376
 
 
3377
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION"
3378
 
 
3379
 
 
3380
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION"
3381
 
 
3382
 
 
3383
 
 
3384
 
 
3385
 
echo "/* automatically generated by configure */" > php_version.h.new
3386
 
echo "/* edit configure.in to change version number */" >> php_version.h.new
3387
 
echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new
3388
 
echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new
3389
 
echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new
3390
 
echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new
3391
 
echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new
3392
 
echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new
3393
 
cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1
3394
 
if test $? -ne 0 ; then
3395
 
  rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \
3396
 
  echo 'Updated main/php_version.h'
3397
 
else
3398
 
  rm -f php_version.h.new
3399
 
fi
3400
 
 
3401
 
 
3402
 
 
3403
 
if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
3404
 
  { { $as_echo "$as_me:$LINENO: error: --with-shared-apache is not supported. Please refer to the documentation for using APXS" >&5
3405
 
$as_echo "$as_me: error: --with-shared-apache is not supported. Please refer to the documentation for using APXS" >&2;}
3406
 
   { (exit 1); exit 1; }; }
3407
 
fi
3408
 
 
3409
 
if test -n "$with_apache" && test -n "$with_apxs"; then
3410
 
  { { $as_echo "$as_me:$LINENO: error: --with-apache and --with-apxs cannot be used together" >&5
3411
 
$as_echo "$as_me: error: --with-apache and --with-apxs cannot be used together" >&2;}
3412
 
   { (exit 1); exit 1; }; }
3413
 
fi
3414
 
 
3415
 
if test -n "$with_apxs2filter" && test -n "$with_apxs2"; then
3416
 
  { { $as_echo "$as_me:$LINENO: error: --with-apxs2filter and --with-apxs2 cannot be used together" >&5
3417
 
$as_echo "$as_me: error: --with-apxs2filter and --with-apxs2 cannot be used together" >&2;}
3418
 
   { (exit 1); exit 1; }; }
3419
 
fi
3420
 
 
3421
 
  
3422
 
 
3423
 
cwd=`pwd`
3424
 
 
3425
 
php_shtool=$srcdir/build/shtool
3426
 
T_MD=`$php_shtool echo -n -e %B`
3427
 
T_ME=`$php_shtool echo -n -e %b`
3428
 
 
3429
 
 
3430
 
test -d include || $php_shtool mkdir include
3431
 
> Makefile.objects
3432
 
> Makefile.fragments
3433
 
pattern=define
3434
 
$EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
3435
 
 
3436
 
 
3437
 
test -z "$CFLAGS" && auto_cflags=1
3438
 
 
3439
 
abs_srcdir=`(cd $srcdir; pwd)`
3440
 
abs_builddir=`pwd`
3441
 
 
3442
 
php_abs_top_srcdir=$abs_srcdir
3443
 
php_abs_top_builddir=$abs_builddir
3444
 
 
3445
 
 
3446
 
$php_shtool mkdir -p libs
3447
 
rm -f libs/*
3448
 
 
3449
 
 
3450
 
ac_ext=c
3451
 
ac_cpp='$CPP $CPPFLAGS'
3452
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
 
if test -n "$ac_tool_prefix"; then
3456
 
  for ac_prog in cc gcc
3457
 
  do
3458
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3459
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3460
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3461
 
$as_echo_n "checking for $ac_word... " >&6; }
3462
 
if test "${ac_cv_prog_CC+set}" = set; then
3463
 
  $as_echo_n "(cached) " >&6
3464
 
else
3465
 
  if test -n "$CC"; then
3466
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3467
 
else
3468
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469
 
for as_dir in $PATH
3470
 
do
3471
 
  IFS=$as_save_IFS
3472
 
  test -z "$as_dir" && as_dir=.
3473
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3474
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3476
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477
 
    break 2
3478
 
  fi
3479
 
done
3480
 
done
3481
 
IFS=$as_save_IFS
3482
 
 
3483
 
fi
3484
 
fi
3485
 
CC=$ac_cv_prog_CC
3486
 
if test -n "$CC"; then
3487
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3488
 
$as_echo "$CC" >&6; }
3489
 
else
3490
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3491
 
$as_echo "no" >&6; }
3492
 
fi
3493
 
 
3494
 
 
3495
 
    test -n "$CC" && break
3496
 
  done
3497
 
fi
3498
 
if test -z "$CC"; then
3499
 
  ac_ct_CC=$CC
3500
 
  for ac_prog in cc gcc
3501
 
do
3502
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3503
 
set dummy $ac_prog; ac_word=$2
3504
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3505
 
$as_echo_n "checking for $ac_word... " >&6; }
3506
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3507
 
  $as_echo_n "(cached) " >&6
3508
 
else
3509
 
  if test -n "$ac_ct_CC"; then
3510
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3511
 
else
3512
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513
 
for as_dir in $PATH
3514
 
do
3515
 
  IFS=$as_save_IFS
3516
 
  test -z "$as_dir" && as_dir=.
3517
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3518
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3520
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521
 
    break 2
3522
 
  fi
3523
 
done
3524
 
done
3525
 
IFS=$as_save_IFS
3526
 
 
3527
 
fi
3528
 
fi
3529
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3530
 
if test -n "$ac_ct_CC"; then
3531
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3532
 
$as_echo "$ac_ct_CC" >&6; }
3533
 
else
3534
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3535
 
$as_echo "no" >&6; }
3536
 
fi
3537
 
 
3538
 
 
3539
 
  test -n "$ac_ct_CC" && break
3540
 
done
3541
 
 
3542
 
  if test "x$ac_ct_CC" = x; then
3543
 
    CC=""
3544
 
  else
3545
 
    case $cross_compiling:$ac_tool_warned in
3546
 
yes:)
3547
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3548
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549
 
ac_tool_warned=yes ;;
3550
 
esac
3551
 
    CC=$ac_ct_CC
3552
 
  fi
3553
 
fi
3554
 
 
3555
 
 
3556
 
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3557
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558
 
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3559
 
See \`config.log' for more details." >&5
3560
 
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3561
 
See \`config.log' for more details." >&2;}
3562
 
   { (exit 1); exit 1; }; }; }
3563
 
 
3564
 
# Provide some information about the compiler.
3565
 
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3566
 
set X $ac_compile
3567
 
ac_compiler=$2
3568
 
{ (ac_try="$ac_compiler --version >&5"
3569
 
case "(($ac_try" in
3570
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571
 
  *) ac_try_echo=$ac_try;;
3572
 
esac
3573
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574
 
$as_echo "$ac_try_echo") >&5
3575
 
  (eval "$ac_compiler --version >&5") 2>&5
3576
 
  ac_status=$?
3577
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578
 
  (exit $ac_status); }
3579
 
{ (ac_try="$ac_compiler -v >&5"
3580
 
case "(($ac_try" in
3581
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582
 
  *) ac_try_echo=$ac_try;;
3583
 
esac
3584
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3585
 
$as_echo "$ac_try_echo") >&5
3586
 
  (eval "$ac_compiler -v >&5") 2>&5
3587
 
  ac_status=$?
3588
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589
 
  (exit $ac_status); }
3590
 
{ (ac_try="$ac_compiler -V >&5"
3591
 
case "(($ac_try" in
3592
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593
 
  *) ac_try_echo=$ac_try;;
3594
 
esac
3595
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3596
 
$as_echo "$ac_try_echo") >&5
3597
 
  (eval "$ac_compiler -V >&5") 2>&5
3598
 
  ac_status=$?
3599
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600
 
  (exit $ac_status); }
3601
 
 
3602
 
cat >conftest.$ac_ext <<_ACEOF
3603
 
/* confdefs.h.  */
3604
 
_ACEOF
3605
 
cat confdefs.h >>conftest.$ac_ext
3606
 
cat >>conftest.$ac_ext <<_ACEOF
3607
 
/* end confdefs.h.  */
3608
 
 
3609
 
int
3610
 
main ()
3611
 
{
3612
 
 
3613
 
  ;
3614
 
  return 0;
3615
 
}
3616
 
_ACEOF
3617
 
ac_clean_files_save=$ac_clean_files
3618
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3619
 
# Try to create an executable without -o first, disregard a.out.
3620
 
# It will help us diagnose broken compilers, and finding out an intuition
3621
 
# of exeext.
3622
 
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3623
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
3624
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3625
 
 
3626
 
# The possible output files:
3627
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3628
 
 
3629
 
ac_rmfiles=
3630
 
for ac_file in $ac_files
3631
 
do
3632
 
  case $ac_file in
3633
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3634
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3635
 
  esac
3636
 
done
3637
 
rm -f $ac_rmfiles
3638
 
 
3639
 
if { (ac_try="$ac_link_default"
3640
 
case "(($ac_try" in
3641
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642
 
  *) ac_try_echo=$ac_try;;
3643
 
esac
3644
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645
 
$as_echo "$ac_try_echo") >&5
3646
 
  (eval "$ac_link_default") 2>&5
3647
 
  ac_status=$?
3648
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649
 
  (exit $ac_status); }; then
3650
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3651
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3652
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3653
 
# so that the user can short-circuit this test for compilers unknown to
3654
 
# Autoconf.
3655
 
for ac_file in $ac_files ''
3656
 
do
3657
 
  test -f "$ac_file" || continue
3658
 
  case $ac_file in
3659
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3660
 
        ;;
3661
 
    [ab].out )
3662
 
        # We found the default executable, but exeext='' is most
3663
 
        # certainly right.
3664
 
        break;;
3665
 
    *.* )
3666
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3667
 
        then :; else
3668
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669
 
        fi
3670
 
        # We set ac_cv_exeext here because the later test for it is not
3671
 
        # safe: cross compilers may not add the suffix if given an `-o'
3672
 
        # argument, so we may need to know it at that point already.
3673
 
        # Even if this section looks crufty: it has the advantage of
3674
 
        # actually working.
3675
 
        break;;
3676
 
    * )
3677
 
        break;;
3678
 
  esac
3679
 
done
3680
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3681
 
 
3682
 
else
3683
 
  ac_file=''
3684
 
fi
3685
 
 
3686
 
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3687
 
$as_echo "$ac_file" >&6; }
3688
 
if test -z "$ac_file"; then
3689
 
  $as_echo "$as_me: failed program was:" >&5
3690
 
sed 's/^/| /' conftest.$ac_ext >&5
3691
 
 
3692
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3693
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694
 
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3695
 
See \`config.log' for more details." >&5
3696
 
$as_echo "$as_me: error: C compiler cannot create executables
3697
 
See \`config.log' for more details." >&2;}
3698
 
   { (exit 77); exit 77; }; }; }
3699
 
fi
3700
 
 
3701
 
ac_exeext=$ac_cv_exeext
3702
 
 
3703
 
# Check that the compiler produces executables we can run.  If not, either
3704
 
# the compiler is broken, or we cross compile.
3705
 
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3706
 
$as_echo_n "checking whether the C compiler works... " >&6; }
3707
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3708
 
# If not cross compiling, check that we can run a simple program.
3709
 
if test "$cross_compiling" != yes; then
3710
 
  if { ac_try='./$ac_file'
3711
 
  { (case "(($ac_try" in
3712
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713
 
  *) ac_try_echo=$ac_try;;
3714
 
esac
3715
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716
 
$as_echo "$ac_try_echo") >&5
3717
 
  (eval "$ac_try") 2>&5
3718
 
  ac_status=$?
3719
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720
 
  (exit $ac_status); }; }; then
3721
 
    cross_compiling=no
3722
 
  else
3723
 
    if test "$cross_compiling" = maybe; then
3724
 
        cross_compiling=yes
3725
 
    else
3726
 
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3727
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3728
 
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3729
 
If you meant to cross compile, use \`--host'.
3730
 
See \`config.log' for more details." >&5
3731
 
$as_echo "$as_me: error: cannot run C compiled programs.
3732
 
If you meant to cross compile, use \`--host'.
3733
 
See \`config.log' for more details." >&2;}
3734
 
   { (exit 1); exit 1; }; }; }
3735
 
    fi
3736
 
  fi
3737
 
fi
3738
 
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3739
 
$as_echo "yes" >&6; }
3740
 
 
3741
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3742
 
ac_clean_files=$ac_clean_files_save
3743
 
# Check that the compiler produces executables we can run.  If not, either
3744
 
# the compiler is broken, or we cross compile.
3745
 
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3746
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
3747
 
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3748
 
$as_echo "$cross_compiling" >&6; }
3749
 
 
3750
 
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3751
 
$as_echo_n "checking for suffix of executables... " >&6; }
3752
 
if { (ac_try="$ac_link"
3753
 
case "(($ac_try" in
3754
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755
 
  *) ac_try_echo=$ac_try;;
3756
 
esac
3757
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3758
 
$as_echo "$ac_try_echo") >&5
3759
 
  (eval "$ac_link") 2>&5
3760
 
  ac_status=$?
3761
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762
 
  (exit $ac_status); }; then
3763
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3764
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3765
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3766
 
# `rm'.
3767
 
for ac_file in conftest.exe conftest conftest.*; do
3768
 
  test -f "$ac_file" || continue
3769
 
  case $ac_file in
3770
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772
 
          break;;
3773
 
    * ) break;;
3774
 
  esac
3775
 
done
3776
 
else
3777
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3780
 
See \`config.log' for more details." >&5
3781
 
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3782
 
See \`config.log' for more details." >&2;}
3783
 
   { (exit 1); exit 1; }; }; }
3784
 
fi
3785
 
 
3786
 
rm -f conftest$ac_cv_exeext
3787
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3788
 
$as_echo "$ac_cv_exeext" >&6; }
3789
 
 
3790
 
rm -f conftest.$ac_ext
3791
 
EXEEXT=$ac_cv_exeext
3792
 
ac_exeext=$EXEEXT
3793
 
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3794
 
$as_echo_n "checking for suffix of object files... " >&6; }
3795
 
if test "${ac_cv_objext+set}" = set; then
3796
 
  $as_echo_n "(cached) " >&6
3797
 
else
3798
 
  cat >conftest.$ac_ext <<_ACEOF
3799
 
/* confdefs.h.  */
3800
 
_ACEOF
3801
 
cat confdefs.h >>conftest.$ac_ext
3802
 
cat >>conftest.$ac_ext <<_ACEOF
3803
 
/* end confdefs.h.  */
3804
 
 
3805
 
int
3806
 
main ()
3807
 
{
3808
 
 
3809
 
  ;
3810
 
  return 0;
3811
 
}
3812
 
_ACEOF
3813
 
rm -f conftest.o conftest.obj
3814
 
if { (ac_try="$ac_compile"
3815
 
case "(($ac_try" in
3816
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817
 
  *) ac_try_echo=$ac_try;;
3818
 
esac
3819
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3820
 
$as_echo "$ac_try_echo") >&5
3821
 
  (eval "$ac_compile") 2>&5
3822
 
  ac_status=$?
3823
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824
 
  (exit $ac_status); }; then
3825
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3826
 
  test -f "$ac_file" || continue;
3827
 
  case $ac_file in
3828
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3829
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3830
 
       break;;
3831
 
  esac
3832
 
done
3833
 
else
3834
 
  $as_echo "$as_me: failed program was:" >&5
3835
 
sed 's/^/| /' conftest.$ac_ext >&5
3836
 
 
3837
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3838
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3840
 
See \`config.log' for more details." >&5
3841
 
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3842
 
See \`config.log' for more details." >&2;}
3843
 
   { (exit 1); exit 1; }; }; }
3844
 
fi
3845
 
 
3846
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3847
 
fi
3848
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3849
 
$as_echo "$ac_cv_objext" >&6; }
3850
 
OBJEXT=$ac_cv_objext
3851
 
ac_objext=$OBJEXT
3852
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3853
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3854
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3855
 
  $as_echo_n "(cached) " >&6
3856
 
else
3857
 
  cat >conftest.$ac_ext <<_ACEOF
3858
 
/* confdefs.h.  */
3859
 
_ACEOF
3860
 
cat confdefs.h >>conftest.$ac_ext
3861
 
cat >>conftest.$ac_ext <<_ACEOF
3862
 
/* end confdefs.h.  */
3863
 
 
3864
 
int
3865
 
main ()
3866
 
{
3867
 
#ifndef __GNUC__
3868
 
       choke me
3869
 
#endif
3870
 
 
3871
 
  ;
3872
 
  return 0;
3873
 
}
3874
 
_ACEOF
3875
 
rm -f conftest.$ac_objext
3876
 
if { (ac_try="$ac_compile"
3877
 
case "(($ac_try" in
3878
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879
 
  *) ac_try_echo=$ac_try;;
3880
 
esac
3881
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3882
 
$as_echo "$ac_try_echo") >&5
3883
 
  (eval "$ac_compile") 2>conftest.er1
3884
 
  ac_status=$?
3885
 
  grep -v '^ *+' conftest.er1 >conftest.err
3886
 
  rm -f conftest.er1
3887
 
  cat conftest.err >&5
3888
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889
 
  (exit $ac_status); } && {
3890
 
         test -z "$ac_c_werror_flag" ||
3891
 
         test ! -s conftest.err
3892
 
       } && test -s conftest.$ac_objext; then
3893
 
  ac_compiler_gnu=yes
3894
 
else
3895
 
  $as_echo "$as_me: failed program was:" >&5
3896
 
sed 's/^/| /' conftest.$ac_ext >&5
3897
 
 
3898
 
        ac_compiler_gnu=no
3899
 
fi
3900
 
 
3901
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3903
 
 
3904
 
fi
3905
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3906
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3907
 
if test $ac_compiler_gnu = yes; then
3908
 
  GCC=yes
3909
 
else
3910
 
  GCC=
3911
 
fi
3912
 
ac_test_CFLAGS=${CFLAGS+set}
3913
 
ac_save_CFLAGS=$CFLAGS
3914
 
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3915
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3916
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3917
 
  $as_echo_n "(cached) " >&6
3918
 
else
3919
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3920
 
   ac_c_werror_flag=yes
3921
 
   ac_cv_prog_cc_g=no
3922
 
   CFLAGS="-g"
3923
 
   cat >conftest.$ac_ext <<_ACEOF
3924
 
/* confdefs.h.  */
3925
 
_ACEOF
3926
 
cat confdefs.h >>conftest.$ac_ext
3927
 
cat >>conftest.$ac_ext <<_ACEOF
3928
 
/* end confdefs.h.  */
3929
 
 
3930
 
int
3931
 
main ()
3932
 
{
3933
 
 
3934
 
  ;
3935
 
  return 0;
3936
 
}
3937
 
_ACEOF
3938
 
rm -f conftest.$ac_objext
3939
 
if { (ac_try="$ac_compile"
3940
 
case "(($ac_try" in
3941
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942
 
  *) ac_try_echo=$ac_try;;
3943
 
esac
3944
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3945
 
$as_echo "$ac_try_echo") >&5
3946
 
  (eval "$ac_compile") 2>conftest.er1
3947
 
  ac_status=$?
3948
 
  grep -v '^ *+' conftest.er1 >conftest.err
3949
 
  rm -f conftest.er1
3950
 
  cat conftest.err >&5
3951
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952
 
  (exit $ac_status); } && {
3953
 
         test -z "$ac_c_werror_flag" ||
3954
 
         test ! -s conftest.err
3955
 
       } && test -s conftest.$ac_objext; then
3956
 
  ac_cv_prog_cc_g=yes
3957
 
else
3958
 
  $as_echo "$as_me: failed program was:" >&5
3959
 
sed 's/^/| /' conftest.$ac_ext >&5
3960
 
 
3961
 
        CFLAGS=""
3962
 
      cat >conftest.$ac_ext <<_ACEOF
3963
 
/* confdefs.h.  */
3964
 
_ACEOF
3965
 
cat confdefs.h >>conftest.$ac_ext
3966
 
cat >>conftest.$ac_ext <<_ACEOF
3967
 
/* end confdefs.h.  */
3968
 
 
3969
 
int
3970
 
main ()
3971
 
{
3972
 
 
3973
 
  ;
3974
 
  return 0;
3975
 
}
3976
 
_ACEOF
3977
 
rm -f conftest.$ac_objext
3978
 
if { (ac_try="$ac_compile"
3979
 
case "(($ac_try" in
3980
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981
 
  *) ac_try_echo=$ac_try;;
3982
 
esac
3983
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984
 
$as_echo "$ac_try_echo") >&5
3985
 
  (eval "$ac_compile") 2>conftest.er1
3986
 
  ac_status=$?
3987
 
  grep -v '^ *+' conftest.er1 >conftest.err
3988
 
  rm -f conftest.er1
3989
 
  cat conftest.err >&5
3990
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991
 
  (exit $ac_status); } && {
3992
 
         test -z "$ac_c_werror_flag" ||
3993
 
         test ! -s conftest.err
3994
 
       } && test -s conftest.$ac_objext; then
3995
 
  :
3996
 
else
3997
 
  $as_echo "$as_me: failed program was:" >&5
3998
 
sed 's/^/| /' conftest.$ac_ext >&5
3999
 
 
4000
 
        ac_c_werror_flag=$ac_save_c_werror_flag
4001
 
         CFLAGS="-g"
4002
 
         cat >conftest.$ac_ext <<_ACEOF
4003
 
/* confdefs.h.  */
4004
 
_ACEOF
4005
 
cat confdefs.h >>conftest.$ac_ext
4006
 
cat >>conftest.$ac_ext <<_ACEOF
4007
 
/* end confdefs.h.  */
4008
 
 
4009
 
int
4010
 
main ()
4011
 
{
4012
 
 
4013
 
  ;
4014
 
  return 0;
4015
 
}
4016
 
_ACEOF
4017
 
rm -f conftest.$ac_objext
4018
 
if { (ac_try="$ac_compile"
4019
 
case "(($ac_try" in
4020
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021
 
  *) ac_try_echo=$ac_try;;
4022
 
esac
4023
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024
 
$as_echo "$ac_try_echo") >&5
4025
 
  (eval "$ac_compile") 2>conftest.er1
4026
 
  ac_status=$?
4027
 
  grep -v '^ *+' conftest.er1 >conftest.err
4028
 
  rm -f conftest.er1
4029
 
  cat conftest.err >&5
4030
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031
 
  (exit $ac_status); } && {
4032
 
         test -z "$ac_c_werror_flag" ||
4033
 
         test ! -s conftest.err
4034
 
       } && test -s conftest.$ac_objext; then
4035
 
  ac_cv_prog_cc_g=yes
4036
 
else
4037
 
  $as_echo "$as_me: failed program was:" >&5
4038
 
sed 's/^/| /' conftest.$ac_ext >&5
4039
 
 
4040
 
        
4041
 
fi
4042
 
 
4043
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044
 
fi
4045
 
 
4046
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047
 
fi
4048
 
 
4049
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4051
 
fi
4052
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4053
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
4054
 
if test "$ac_test_CFLAGS" = set; then
4055
 
  CFLAGS=$ac_save_CFLAGS
4056
 
elif test $ac_cv_prog_cc_g = yes; then
4057
 
  if test "$GCC" = yes; then
4058
 
    CFLAGS="-g -O2"
4059
 
  else
4060
 
    CFLAGS="-g"
4061
 
  fi
4062
 
else
4063
 
  if test "$GCC" = yes; then
4064
 
    CFLAGS="-O2"
4065
 
  else
4066
 
    CFLAGS=
4067
 
  fi
4068
 
fi
4069
 
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4070
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4071
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
4072
 
  $as_echo_n "(cached) " >&6
4073
 
else
4074
 
  ac_cv_prog_cc_c89=no
4075
 
ac_save_CC=$CC
4076
 
cat >conftest.$ac_ext <<_ACEOF
4077
 
/* confdefs.h.  */
4078
 
_ACEOF
4079
 
cat confdefs.h >>conftest.$ac_ext
4080
 
cat >>conftest.$ac_ext <<_ACEOF
4081
 
/* end confdefs.h.  */
4082
 
#include <stdarg.h>
4083
 
#include <stdio.h>
4084
 
#include <sys/types.h>
4085
 
#include <sys/stat.h>
4086
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4087
 
struct buf { int x; };
4088
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4089
 
static char *e (p, i)
4090
 
     char **p;
4091
 
     int i;
4092
 
{
4093
 
  return p[i];
4094
 
}
4095
 
static char *f (char * (*g) (char **, int), char **p, ...)
4096
 
{
4097
 
  char *s;
4098
 
  va_list v;
4099
 
  va_start (v,p);
4100
 
  s = g (p, va_arg (v,int));
4101
 
  va_end (v);
4102
 
  return s;
4103
 
}
4104
 
 
4105
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4106
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4107
 
   These don't provoke an error unfortunately, instead are silently treated
4108
 
   as 'x'.  The following induces an error, until -std is added to get
4109
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4110
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4111
 
   that's true only with -std.  */
4112
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4113
 
 
4114
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4115
 
   inside strings and character constants.  */
4116
 
#define FOO(x) 'x'
4117
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4118
 
 
4119
 
int test (int i, double x);
4120
 
struct s1 {int (*f) (int a);};
4121
 
struct s2 {int (*f) (double a);};
4122
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4123
 
int argc;
4124
 
char **argv;
4125
 
int
4126
 
main ()
4127
 
{
4128
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4129
 
  ;
4130
 
  return 0;
4131
 
}
4132
 
_ACEOF
4133
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4134
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4135
 
do
4136
 
  CC="$ac_save_CC $ac_arg"
4137
 
  rm -f conftest.$ac_objext
4138
 
if { (ac_try="$ac_compile"
4139
 
case "(($ac_try" in
4140
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141
 
  *) ac_try_echo=$ac_try;;
4142
 
esac
4143
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4144
 
$as_echo "$ac_try_echo") >&5
4145
 
  (eval "$ac_compile") 2>conftest.er1
4146
 
  ac_status=$?
4147
 
  grep -v '^ *+' conftest.er1 >conftest.err
4148
 
  rm -f conftest.er1
4149
 
  cat conftest.err >&5
4150
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151
 
  (exit $ac_status); } && {
4152
 
         test -z "$ac_c_werror_flag" ||
4153
 
         test ! -s conftest.err
4154
 
       } && test -s conftest.$ac_objext; then
4155
 
  ac_cv_prog_cc_c89=$ac_arg
4156
 
else
4157
 
  $as_echo "$as_me: failed program was:" >&5
4158
 
sed 's/^/| /' conftest.$ac_ext >&5
4159
 
 
4160
 
        
4161
 
fi
4162
 
 
4163
 
rm -f core conftest.err conftest.$ac_objext 
4164
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4165
 
done
4166
 
rm -f conftest.$ac_ext
4167
 
CC=$ac_save_CC
4168
 
 
4169
 
fi
4170
 
# AC_CACHE_VAL
4171
 
case "x$ac_cv_prog_cc_c89" in
4172
 
  x)
4173
 
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4174
 
$as_echo "none needed" >&6; } ;;
4175
 
  xno)
4176
 
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4177
 
$as_echo "unsupported" >&6; } ;;
4178
 
  *)
4179
 
    CC="$CC $ac_cv_prog_cc_c89"
4180
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4181
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4182
 
esac
4183
 
 
4184
 
 
4185
 
ac_ext=c
4186
 
ac_cpp='$CPP $CPPFLAGS'
4187
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190
 
 
4191
 
 
4192
 
ac_ext=c
4193
 
ac_cpp='$CPP $CPPFLAGS'
4194
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4198
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4199
 
# On Suns, sometimes $CPP names a directory.
4200
 
if test -n "$CPP" && test -d "$CPP"; then
4201
 
  CPP=
4202
 
fi
4203
 
if test -z "$CPP"; then
4204
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4205
 
  $as_echo_n "(cached) " >&6
4206
 
else
4207
 
      # Double quotes because CPP needs to be expanded
4208
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4209
 
    do
4210
 
      ac_preproc_ok=false
4211
 
for ac_c_preproc_warn_flag in '' yes
4212
 
do
4213
 
  # Use a header file that comes with gcc, so configuring glibc
4214
 
  # with a fresh cross-compiler works.
4215
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4216
 
  # <limits.h> exists even on freestanding compilers.
4217
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4218
 
  # not just through cpp. "Syntax error" is here to catch this case.
4219
 
  cat >conftest.$ac_ext <<_ACEOF
4220
 
/* confdefs.h.  */
4221
 
_ACEOF
4222
 
cat confdefs.h >>conftest.$ac_ext
4223
 
cat >>conftest.$ac_ext <<_ACEOF
4224
 
/* end confdefs.h.  */
4225
 
@%:@ifdef __STDC__
4226
 
@%:@ include <limits.h>
4227
 
@%:@else
4228
 
@%:@ include <assert.h>
4229
 
@%:@endif
4230
 
                     Syntax error
4231
 
_ACEOF
4232
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4233
 
case "(($ac_try" in
4234
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235
 
  *) ac_try_echo=$ac_try;;
4236
 
esac
4237
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4238
 
$as_echo "$ac_try_echo") >&5
4239
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4240
 
  ac_status=$?
4241
 
  grep -v '^ *+' conftest.er1 >conftest.err
4242
 
  rm -f conftest.er1
4243
 
  cat conftest.err >&5
4244
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245
 
  (exit $ac_status); } >/dev/null && {
4246
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4247
 
         test ! -s conftest.err
4248
 
       }; then
4249
 
  :
4250
 
else
4251
 
  $as_echo "$as_me: failed program was:" >&5
4252
 
sed 's/^/| /' conftest.$ac_ext >&5
4253
 
 
4254
 
  # Broken: fails on valid input.
4255
 
continue
4256
 
fi
4257
 
 
4258
 
rm -f conftest.err conftest.$ac_ext
4259
 
 
4260
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4261
 
  # can be detected and how.
4262
 
  cat >conftest.$ac_ext <<_ACEOF
4263
 
/* confdefs.h.  */
4264
 
_ACEOF
4265
 
cat confdefs.h >>conftest.$ac_ext
4266
 
cat >>conftest.$ac_ext <<_ACEOF
4267
 
/* end confdefs.h.  */
4268
 
@%:@include <ac_nonexistent.h>
4269
 
_ACEOF
4270
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4271
 
case "(($ac_try" in
4272
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273
 
  *) ac_try_echo=$ac_try;;
4274
 
esac
4275
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4276
 
$as_echo "$ac_try_echo") >&5
4277
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4278
 
  ac_status=$?
4279
 
  grep -v '^ *+' conftest.er1 >conftest.err
4280
 
  rm -f conftest.er1
4281
 
  cat conftest.err >&5
4282
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283
 
  (exit $ac_status); } >/dev/null && {
4284
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4285
 
         test ! -s conftest.err
4286
 
       }; then
4287
 
  # Broken: success on invalid input.
4288
 
continue
4289
 
else
4290
 
  $as_echo "$as_me: failed program was:" >&5
4291
 
sed 's/^/| /' conftest.$ac_ext >&5
4292
 
 
4293
 
  # Passes both tests.
4294
 
ac_preproc_ok=:
4295
 
break
4296
 
fi
4297
 
 
4298
 
rm -f conftest.err conftest.$ac_ext
4299
 
 
4300
 
done
4301
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302
 
rm -f conftest.err conftest.$ac_ext
4303
 
if $ac_preproc_ok; then
4304
 
  break
4305
 
fi
4306
 
 
4307
 
    done
4308
 
    ac_cv_prog_CPP=$CPP
4309
 
  
4310
 
fi
4311
 
  CPP=$ac_cv_prog_CPP
4312
 
else
4313
 
  ac_cv_prog_CPP=$CPP
4314
 
fi
4315
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4316
 
$as_echo "$CPP" >&6; }
4317
 
ac_preproc_ok=false
4318
 
for ac_c_preproc_warn_flag in '' yes
4319
 
do
4320
 
  # Use a header file that comes with gcc, so configuring glibc
4321
 
  # with a fresh cross-compiler works.
4322
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323
 
  # <limits.h> exists even on freestanding compilers.
4324
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4325
 
  # not just through cpp. "Syntax error" is here to catch this case.
4326
 
  cat >conftest.$ac_ext <<_ACEOF
4327
 
/* confdefs.h.  */
4328
 
_ACEOF
4329
 
cat confdefs.h >>conftest.$ac_ext
4330
 
cat >>conftest.$ac_ext <<_ACEOF
4331
 
/* end confdefs.h.  */
4332
 
@%:@ifdef __STDC__
4333
 
@%:@ include <limits.h>
4334
 
@%:@else
4335
 
@%:@ include <assert.h>
4336
 
@%:@endif
4337
 
                     Syntax error
4338
 
_ACEOF
4339
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4340
 
case "(($ac_try" in
4341
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342
 
  *) ac_try_echo=$ac_try;;
4343
 
esac
4344
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4345
 
$as_echo "$ac_try_echo") >&5
4346
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4347
 
  ac_status=$?
4348
 
  grep -v '^ *+' conftest.er1 >conftest.err
4349
 
  rm -f conftest.er1
4350
 
  cat conftest.err >&5
4351
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352
 
  (exit $ac_status); } >/dev/null && {
4353
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4354
 
         test ! -s conftest.err
4355
 
       }; then
4356
 
  :
4357
 
else
4358
 
  $as_echo "$as_me: failed program was:" >&5
4359
 
sed 's/^/| /' conftest.$ac_ext >&5
4360
 
 
4361
 
  # Broken: fails on valid input.
4362
 
continue
4363
 
fi
4364
 
 
4365
 
rm -f conftest.err conftest.$ac_ext
4366
 
 
4367
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4368
 
  # can be detected and how.
4369
 
  cat >conftest.$ac_ext <<_ACEOF
4370
 
/* confdefs.h.  */
4371
 
_ACEOF
4372
 
cat confdefs.h >>conftest.$ac_ext
4373
 
cat >>conftest.$ac_ext <<_ACEOF
4374
 
/* end confdefs.h.  */
4375
 
@%:@include <ac_nonexistent.h>
4376
 
_ACEOF
4377
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4378
 
case "(($ac_try" in
4379
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380
 
  *) ac_try_echo=$ac_try;;
4381
 
esac
4382
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4383
 
$as_echo "$ac_try_echo") >&5
4384
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4385
 
  ac_status=$?
4386
 
  grep -v '^ *+' conftest.er1 >conftest.err
4387
 
  rm -f conftest.er1
4388
 
  cat conftest.err >&5
4389
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390
 
  (exit $ac_status); } >/dev/null && {
4391
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4392
 
         test ! -s conftest.err
4393
 
       }; then
4394
 
  # Broken: success on invalid input.
4395
 
continue
4396
 
else
4397
 
  $as_echo "$as_me: failed program was:" >&5
4398
 
sed 's/^/| /' conftest.$ac_ext >&5
4399
 
 
4400
 
  # Passes both tests.
4401
 
ac_preproc_ok=:
4402
 
break
4403
 
fi
4404
 
 
4405
 
rm -f conftest.err conftest.$ac_ext
4406
 
 
4407
 
done
4408
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409
 
rm -f conftest.err conftest.$ac_ext
4410
 
if $ac_preproc_ok; then
4411
 
  :
4412
 
else
4413
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4414
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4416
 
See \`config.log' for more details." >&5
4417
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4418
 
See \`config.log' for more details." >&2;}
4419
 
   { (exit 1); exit 1; }; }; }
4420
 
fi
4421
 
 
4422
 
ac_ext=c
4423
 
ac_cpp='$CPP $CPPFLAGS'
4424
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
 
 
4428
 
 
4429
 
 
4430
 
  ICC="no"
4431
 
  { $as_echo "$as_me:$LINENO: checking for icc" >&5
4432
 
$as_echo_n "checking for icc... " >&6; }
4433
 
  cat >conftest.$ac_ext <<_ACEOF
4434
 
/* confdefs.h.  */
4435
 
_ACEOF
4436
 
cat confdefs.h >>conftest.$ac_ext
4437
 
cat >>conftest.$ac_ext <<_ACEOF
4438
 
/* end confdefs.h.  */
4439
 
__INTEL_COMPILER
4440
 
_ACEOF
4441
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442
 
  $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
4443
 
  ICC="no"
4444
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
4445
 
$as_echo "no" >&6; }
4446
 
else
4447
 
  ICC="yes"
4448
 
    GCC="no"
4449
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
4450
 
$as_echo "yes" >&6; }
4451
 
  
4452
 
fi
4453
 
rm -f conftest*
4454
 
 
4455
 
 
4456
 
 
4457
 
  SUNCC="no"
4458
 
  { $as_echo "$as_me:$LINENO: checking for suncc" >&5
4459
 
$as_echo_n "checking for suncc... " >&6; }
4460
 
  cat >conftest.$ac_ext <<_ACEOF
4461
 
/* confdefs.h.  */
4462
 
_ACEOF
4463
 
cat confdefs.h >>conftest.$ac_ext
4464
 
cat >>conftest.$ac_ext <<_ACEOF
4465
 
/* end confdefs.h.  */
4466
 
__SUNPRO_C
4467
 
_ACEOF
4468
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4469
 
  $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then
4470
 
  SUNCC="no"
4471
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
4472
 
$as_echo "no" >&6; }
4473
 
else
4474
 
  SUNCC="yes"
4475
 
    GCC="no"
4476
 
    test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload"
4477
 
    GCC=""
4478
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
4479
 
$as_echo "yes" >&6; }
4480
 
  
4481
 
fi
4482
 
rm -f conftest*
4483
 
 
4484
 
 
4485
 
if test "x$CC" != xcc; then
4486
 
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4487
 
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4488
 
else
4489
 
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4490
 
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4491
 
fi
4492
 
set dummy $CC; ac_cc=`$as_echo "$2" |
4493
 
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4494
 
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4495
 
  $as_echo_n "(cached) " >&6
4496
 
else
4497
 
  cat >conftest.$ac_ext <<_ACEOF
4498
 
/* confdefs.h.  */
4499
 
_ACEOF
4500
 
cat confdefs.h >>conftest.$ac_ext
4501
 
cat >>conftest.$ac_ext <<_ACEOF
4502
 
/* end confdefs.h.  */
4503
 
 
4504
 
int
4505
 
main ()
4506
 
{
4507
 
 
4508
 
  ;
4509
 
  return 0;
4510
 
}
4511
 
_ACEOF
4512
 
# Make sure it works both with $CC and with simple cc.
4513
 
# We do the test twice because some compilers refuse to overwrite an
4514
 
# existing .o file with -o, though they will create one.
4515
 
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4516
 
rm -f conftest2.*
4517
 
if { (case "(($ac_try" in
4518
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519
 
  *) ac_try_echo=$ac_try;;
4520
 
esac
4521
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4522
 
$as_echo "$ac_try_echo") >&5
4523
 
  (eval "$ac_try") 2>&5
4524
 
  ac_status=$?
4525
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526
 
  (exit $ac_status); } &&
4527
 
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
4528
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529
 
  *) ac_try_echo=$ac_try;;
4530
 
esac
4531
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4532
 
$as_echo "$ac_try_echo") >&5
4533
 
  (eval "$ac_try") 2>&5
4534
 
  ac_status=$?
4535
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536
 
  (exit $ac_status); };
4537
 
then
4538
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4539
 
  if test "x$CC" != xcc; then
4540
 
    # Test first that cc exists at all.
4541
 
    if { ac_try='cc -c conftest.$ac_ext >&5'
4542
 
  { (case "(($ac_try" in
4543
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544
 
  *) ac_try_echo=$ac_try;;
4545
 
esac
4546
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4547
 
$as_echo "$ac_try_echo") >&5
4548
 
  (eval "$ac_try") 2>&5
4549
 
  ac_status=$?
4550
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551
 
  (exit $ac_status); }; }; then
4552
 
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4553
 
      rm -f conftest2.*
4554
 
      if { (case "(($ac_try" in
4555
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556
 
  *) ac_try_echo=$ac_try;;
4557
 
esac
4558
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4559
 
$as_echo "$ac_try_echo") >&5
4560
 
  (eval "$ac_try") 2>&5
4561
 
  ac_status=$?
4562
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563
 
  (exit $ac_status); } &&
4564
 
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
4565
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566
 
  *) ac_try_echo=$ac_try;;
4567
 
esac
4568
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569
 
$as_echo "$ac_try_echo") >&5
4570
 
  (eval "$ac_try") 2>&5
4571
 
  ac_status=$?
4572
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573
 
  (exit $ac_status); };
4574
 
      then
4575
 
        # cc works too.
4576
 
        :
4577
 
      else
4578
 
        # cc exists but doesn't like -o.
4579
 
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
4580
 
      fi
4581
 
    fi
4582
 
  fi
4583
 
else
4584
 
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4585
 
fi
4586
 
rm -f core conftest*
4587
 
 
4588
 
fi
4589
 
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4590
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
4591
 
$as_echo "yes" >&6; }
4592
 
else
4593
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4594
 
$as_echo "no" >&6; }
4595
 
  
4596
 
cat >>confdefs.h <<\_ACEOF
4597
 
@%:@define NO_MINUS_C_MINUS_O 1
4598
 
_ACEOF
4599
 
 
4600
 
fi
4601
 
 
4602
 
ac_ext=c
4603
 
ac_cpp='$CPP $CPPFLAGS'
4604
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4608
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4609
 
# On Suns, sometimes $CPP names a directory.
4610
 
if test -n "$CPP" && test -d "$CPP"; then
4611
 
  CPP=
4612
 
fi
4613
 
if test -z "$CPP"; then
4614
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4615
 
  $as_echo_n "(cached) " >&6
4616
 
else
4617
 
      # Double quotes because CPP needs to be expanded
4618
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4619
 
    do
4620
 
      ac_preproc_ok=false
4621
 
for ac_c_preproc_warn_flag in '' yes
4622
 
do
4623
 
  # Use a header file that comes with gcc, so configuring glibc
4624
 
  # with a fresh cross-compiler works.
4625
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4626
 
  # <limits.h> exists even on freestanding compilers.
4627
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4628
 
  # not just through cpp. "Syntax error" is here to catch this case.
4629
 
  cat >conftest.$ac_ext <<_ACEOF
4630
 
/* confdefs.h.  */
4631
 
_ACEOF
4632
 
cat confdefs.h >>conftest.$ac_ext
4633
 
cat >>conftest.$ac_ext <<_ACEOF
4634
 
/* end confdefs.h.  */
4635
 
@%:@ifdef __STDC__
4636
 
@%:@ include <limits.h>
4637
 
@%:@else
4638
 
@%:@ include <assert.h>
4639
 
@%:@endif
4640
 
                     Syntax error
4641
 
_ACEOF
4642
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4643
 
case "(($ac_try" in
4644
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645
 
  *) ac_try_echo=$ac_try;;
4646
 
esac
4647
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4648
 
$as_echo "$ac_try_echo") >&5
4649
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4650
 
  ac_status=$?
4651
 
  grep -v '^ *+' conftest.er1 >conftest.err
4652
 
  rm -f conftest.er1
4653
 
  cat conftest.err >&5
4654
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655
 
  (exit $ac_status); } >/dev/null && {
4656
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4657
 
         test ! -s conftest.err
4658
 
       }; then
4659
 
  :
4660
 
else
4661
 
  $as_echo "$as_me: failed program was:" >&5
4662
 
sed 's/^/| /' conftest.$ac_ext >&5
4663
 
 
4664
 
  # Broken: fails on valid input.
4665
 
continue
4666
 
fi
4667
 
 
4668
 
rm -f conftest.err conftest.$ac_ext
4669
 
 
4670
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4671
 
  # can be detected and how.
4672
 
  cat >conftest.$ac_ext <<_ACEOF
4673
 
/* confdefs.h.  */
4674
 
_ACEOF
4675
 
cat confdefs.h >>conftest.$ac_ext
4676
 
cat >>conftest.$ac_ext <<_ACEOF
4677
 
/* end confdefs.h.  */
4678
 
@%:@include <ac_nonexistent.h>
4679
 
_ACEOF
4680
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4681
 
case "(($ac_try" in
4682
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683
 
  *) ac_try_echo=$ac_try;;
4684
 
esac
4685
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4686
 
$as_echo "$ac_try_echo") >&5
4687
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688
 
  ac_status=$?
4689
 
  grep -v '^ *+' conftest.er1 >conftest.err
4690
 
  rm -f conftest.er1
4691
 
  cat conftest.err >&5
4692
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693
 
  (exit $ac_status); } >/dev/null && {
4694
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4695
 
         test ! -s conftest.err
4696
 
       }; then
4697
 
  # Broken: success on invalid input.
4698
 
continue
4699
 
else
4700
 
  $as_echo "$as_me: failed program was:" >&5
4701
 
sed 's/^/| /' conftest.$ac_ext >&5
4702
 
 
4703
 
  # Passes both tests.
4704
 
ac_preproc_ok=:
4705
 
break
4706
 
fi
4707
 
 
4708
 
rm -f conftest.err conftest.$ac_ext
4709
 
 
4710
 
done
4711
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4712
 
rm -f conftest.err conftest.$ac_ext
4713
 
if $ac_preproc_ok; then
4714
 
  break
4715
 
fi
4716
 
 
4717
 
    done
4718
 
    ac_cv_prog_CPP=$CPP
4719
 
  
4720
 
fi
4721
 
  CPP=$ac_cv_prog_CPP
4722
 
else
4723
 
  ac_cv_prog_CPP=$CPP
4724
 
fi
4725
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4726
 
$as_echo "$CPP" >&6; }
4727
 
ac_preproc_ok=false
4728
 
for ac_c_preproc_warn_flag in '' yes
4729
 
do
4730
 
  # Use a header file that comes with gcc, so configuring glibc
4731
 
  # with a fresh cross-compiler works.
4732
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4733
 
  # <limits.h> exists even on freestanding compilers.
4734
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4735
 
  # not just through cpp. "Syntax error" is here to catch this case.
4736
 
  cat >conftest.$ac_ext <<_ACEOF
4737
 
/* confdefs.h.  */
4738
 
_ACEOF
4739
 
cat confdefs.h >>conftest.$ac_ext
4740
 
cat >>conftest.$ac_ext <<_ACEOF
4741
 
/* end confdefs.h.  */
4742
 
@%:@ifdef __STDC__
4743
 
@%:@ include <limits.h>
4744
 
@%:@else
4745
 
@%:@ include <assert.h>
4746
 
@%:@endif
4747
 
                     Syntax error
4748
 
_ACEOF
4749
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4750
 
case "(($ac_try" in
4751
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752
 
  *) ac_try_echo=$ac_try;;
4753
 
esac
4754
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755
 
$as_echo "$ac_try_echo") >&5
4756
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4757
 
  ac_status=$?
4758
 
  grep -v '^ *+' conftest.er1 >conftest.err
4759
 
  rm -f conftest.er1
4760
 
  cat conftest.err >&5
4761
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762
 
  (exit $ac_status); } >/dev/null && {
4763
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4764
 
         test ! -s conftest.err
4765
 
       }; then
4766
 
  :
4767
 
else
4768
 
  $as_echo "$as_me: failed program was:" >&5
4769
 
sed 's/^/| /' conftest.$ac_ext >&5
4770
 
 
4771
 
  # Broken: fails on valid input.
4772
 
continue
4773
 
fi
4774
 
 
4775
 
rm -f conftest.err conftest.$ac_ext
4776
 
 
4777
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4778
 
  # can be detected and how.
4779
 
  cat >conftest.$ac_ext <<_ACEOF
4780
 
/* confdefs.h.  */
4781
 
_ACEOF
4782
 
cat confdefs.h >>conftest.$ac_ext
4783
 
cat >>conftest.$ac_ext <<_ACEOF
4784
 
/* end confdefs.h.  */
4785
 
@%:@include <ac_nonexistent.h>
4786
 
_ACEOF
4787
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4788
 
case "(($ac_try" in
4789
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790
 
  *) ac_try_echo=$ac_try;;
4791
 
esac
4792
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793
 
$as_echo "$ac_try_echo") >&5
4794
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4795
 
  ac_status=$?
4796
 
  grep -v '^ *+' conftest.er1 >conftest.err
4797
 
  rm -f conftest.er1
4798
 
  cat conftest.err >&5
4799
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800
 
  (exit $ac_status); } >/dev/null && {
4801
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4802
 
         test ! -s conftest.err
4803
 
       }; then
4804
 
  # Broken: success on invalid input.
4805
 
continue
4806
 
else
4807
 
  $as_echo "$as_me: failed program was:" >&5
4808
 
sed 's/^/| /' conftest.$ac_ext >&5
4809
 
 
4810
 
  # Passes both tests.
4811
 
ac_preproc_ok=:
4812
 
break
4813
 
fi
4814
 
 
4815
 
rm -f conftest.err conftest.$ac_ext
4816
 
 
4817
 
done
4818
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4819
 
rm -f conftest.err conftest.$ac_ext
4820
 
if $ac_preproc_ok; then
4821
 
  :
4822
 
else
4823
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4824
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4825
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4826
 
See \`config.log' for more details." >&5
4827
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4828
 
See \`config.log' for more details." >&2;}
4829
 
   { (exit 1); exit 1; }; }; }
4830
 
fi
4831
 
 
4832
 
ac_ext=c
4833
 
ac_cpp='$CPP $CPPFLAGS'
4834
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837
 
 
4838
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4839
 
$as_echo_n "checking for ANSI C header files... " >&6; }
4840
 
if test "${ac_cv_header_stdc+set}" = set; then
4841
 
  $as_echo_n "(cached) " >&6
4842
 
else
4843
 
  cat >conftest.$ac_ext <<_ACEOF
4844
 
/* confdefs.h.  */
4845
 
_ACEOF
4846
 
cat confdefs.h >>conftest.$ac_ext
4847
 
cat >>conftest.$ac_ext <<_ACEOF
4848
 
/* end confdefs.h.  */
4849
 
#include <stdlib.h>
4850
 
#include <stdarg.h>
4851
 
#include <string.h>
4852
 
#include <float.h>
4853
 
 
4854
 
int
4855
 
main ()
4856
 
{
4857
 
 
4858
 
  ;
4859
 
  return 0;
4860
 
}
4861
 
_ACEOF
4862
 
rm -f conftest.$ac_objext
4863
 
if { (ac_try="$ac_compile"
4864
 
case "(($ac_try" in
4865
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866
 
  *) ac_try_echo=$ac_try;;
4867
 
esac
4868
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4869
 
$as_echo "$ac_try_echo") >&5
4870
 
  (eval "$ac_compile") 2>conftest.er1
4871
 
  ac_status=$?
4872
 
  grep -v '^ *+' conftest.er1 >conftest.err
4873
 
  rm -f conftest.er1
4874
 
  cat conftest.err >&5
4875
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876
 
  (exit $ac_status); } && {
4877
 
         test -z "$ac_c_werror_flag" ||
4878
 
         test ! -s conftest.err
4879
 
       } && test -s conftest.$ac_objext; then
4880
 
  ac_cv_header_stdc=yes
4881
 
else
4882
 
  $as_echo "$as_me: failed program was:" >&5
4883
 
sed 's/^/| /' conftest.$ac_ext >&5
4884
 
 
4885
 
        ac_cv_header_stdc=no
4886
 
fi
4887
 
 
4888
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889
 
 
4890
 
if test $ac_cv_header_stdc = yes; then
4891
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4892
 
  cat >conftest.$ac_ext <<_ACEOF
4893
 
/* confdefs.h.  */
4894
 
_ACEOF
4895
 
cat confdefs.h >>conftest.$ac_ext
4896
 
cat >>conftest.$ac_ext <<_ACEOF
4897
 
/* end confdefs.h.  */
4898
 
#include <string.h>
4899
 
 
4900
 
_ACEOF
4901
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4902
 
  $EGREP "memchr" >/dev/null 2>&1; then
4903
 
  :
4904
 
else
4905
 
  ac_cv_header_stdc=no
4906
 
fi
4907
 
rm -f conftest*
4908
 
 
4909
 
fi
4910
 
 
4911
 
if test $ac_cv_header_stdc = yes; then
4912
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4913
 
  cat >conftest.$ac_ext <<_ACEOF
4914
 
/* confdefs.h.  */
4915
 
_ACEOF
4916
 
cat confdefs.h >>conftest.$ac_ext
4917
 
cat >>conftest.$ac_ext <<_ACEOF
4918
 
/* end confdefs.h.  */
4919
 
#include <stdlib.h>
4920
 
 
4921
 
_ACEOF
4922
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923
 
  $EGREP "free" >/dev/null 2>&1; then
4924
 
  :
4925
 
else
4926
 
  ac_cv_header_stdc=no
4927
 
fi
4928
 
rm -f conftest*
4929
 
 
4930
 
fi
4931
 
 
4932
 
if test $ac_cv_header_stdc = yes; then
4933
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4934
 
  if test "$cross_compiling" = yes; then
4935
 
  :
4936
 
else
4937
 
  cat >conftest.$ac_ext <<_ACEOF
4938
 
/* confdefs.h.  */
4939
 
_ACEOF
4940
 
cat confdefs.h >>conftest.$ac_ext
4941
 
cat >>conftest.$ac_ext <<_ACEOF
4942
 
/* end confdefs.h.  */
4943
 
#include <ctype.h>
4944
 
#include <stdlib.h>
4945
 
#if ((' ' & 0x0FF) == 0x020)
4946
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4947
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4948
 
#else
4949
 
# define ISLOWER(c) \
4950
 
                   (('a' <= (c) && (c) <= 'i') \
4951
 
                     || ('j' <= (c) && (c) <= 'r') \
4952
 
                     || ('s' <= (c) && (c) <= 'z'))
4953
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4954
 
#endif
4955
 
 
4956
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4957
 
int
4958
 
main ()
4959
 
{
4960
 
  int i;
4961
 
  for (i = 0; i < 256; i++)
4962
 
    if (XOR (islower (i), ISLOWER (i))
4963
 
        || toupper (i) != TOUPPER (i))
4964
 
      return 2;
4965
 
  return 0;
4966
 
}
4967
 
_ACEOF
4968
 
rm -f conftest$ac_exeext
4969
 
if { (ac_try="$ac_link"
4970
 
case "(($ac_try" in
4971
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972
 
  *) ac_try_echo=$ac_try;;
4973
 
esac
4974
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4975
 
$as_echo "$ac_try_echo") >&5
4976
 
  (eval "$ac_link") 2>&5
4977
 
  ac_status=$?
4978
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4980
 
  { (case "(($ac_try" in
4981
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982
 
  *) ac_try_echo=$ac_try;;
4983
 
esac
4984
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4985
 
$as_echo "$ac_try_echo") >&5
4986
 
  (eval "$ac_try") 2>&5
4987
 
  ac_status=$?
4988
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989
 
  (exit $ac_status); }; }; then
4990
 
  :
4991
 
else
4992
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
4993
 
$as_echo "$as_me: failed program was:" >&5
4994
 
sed 's/^/| /' conftest.$ac_ext >&5
4995
 
 
4996
 
( exit $ac_status )
4997
 
ac_cv_header_stdc=no
4998
 
fi
4999
 
rm -rf conftest.dSYM
5000
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5001
 
fi
5002
 
 
5003
 
 
5004
 
fi
5005
 
fi
5006
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5007
 
$as_echo "$ac_cv_header_stdc" >&6; }
5008
 
if test $ac_cv_header_stdc = yes; then
5009
 
  
5010
 
cat >>confdefs.h <<\_ACEOF
5011
 
@%:@define STDC_HEADERS 1
5012
 
_ACEOF
5013
 
 
5014
 
fi
5015
 
 
5016
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5017
 
 
5018
 
 
5019
 
 
5020
 
 
5021
 
 
5022
 
 
5023
 
 
5024
 
 
5025
 
 
5026
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5027
 
                  inttypes.h stdint.h unistd.h
5028
 
do
5029
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5030
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5031
 
$as_echo_n "checking for $ac_header... " >&6; }
5032
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5033
 
  $as_echo_n "(cached) " >&6
5034
 
else
5035
 
  cat >conftest.$ac_ext <<_ACEOF
5036
 
/* confdefs.h.  */
5037
 
_ACEOF
5038
 
cat confdefs.h >>conftest.$ac_ext
5039
 
cat >>conftest.$ac_ext <<_ACEOF
5040
 
/* end confdefs.h.  */
5041
 
$ac_includes_default
5042
 
 
5043
 
@%:@include <$ac_header>
5044
 
_ACEOF
5045
 
rm -f conftest.$ac_objext
5046
 
if { (ac_try="$ac_compile"
5047
 
case "(($ac_try" in
5048
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049
 
  *) ac_try_echo=$ac_try;;
5050
 
esac
5051
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5052
 
$as_echo "$ac_try_echo") >&5
5053
 
  (eval "$ac_compile") 2>conftest.er1
5054
 
  ac_status=$?
5055
 
  grep -v '^ *+' conftest.er1 >conftest.err
5056
 
  rm -f conftest.er1
5057
 
  cat conftest.err >&5
5058
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059
 
  (exit $ac_status); } && {
5060
 
         test -z "$ac_c_werror_flag" ||
5061
 
         test ! -s conftest.err
5062
 
       } && test -s conftest.$ac_objext; then
5063
 
  eval "$as_ac_Header=yes"
5064
 
else
5065
 
  $as_echo "$as_me: failed program was:" >&5
5066
 
sed 's/^/| /' conftest.$ac_ext >&5
5067
 
 
5068
 
        eval "$as_ac_Header=no"
5069
 
fi
5070
 
 
5071
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072
 
fi
5073
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5074
 
                 $as_echo "$as_val"'`
5075
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5076
 
$as_echo "$ac_res" >&6; }
5077
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5078
 
                 $as_echo "$as_val"'`
5079
 
   if test "x$as_val" = x""yes; then
5080
 
  cat >>confdefs.h <<_ACEOF
5081
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5082
 
_ACEOF
5083
 
 
5084
 
fi
5085
 
 
5086
 
done
5087
 
 
5088
 
 
5089
 
 
5090
 
  if test "${ac_cv_header_minix_config_h+set}" = set; then
5091
 
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5092
 
$as_echo_n "checking for minix/config.h... " >&6; }
5093
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
5094
 
  $as_echo_n "(cached) " >&6
5095
 
fi
5096
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5097
 
$as_echo "$ac_cv_header_minix_config_h" >&6; }
5098
 
else
5099
 
  # Is the header compilable?
5100
 
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5101
 
$as_echo_n "checking minix/config.h usability... " >&6; }
5102
 
cat >conftest.$ac_ext <<_ACEOF
5103
 
/* confdefs.h.  */
5104
 
_ACEOF
5105
 
cat confdefs.h >>conftest.$ac_ext
5106
 
cat >>conftest.$ac_ext <<_ACEOF
5107
 
/* end confdefs.h.  */
5108
 
$ac_includes_default
5109
 
@%:@include <minix/config.h>
5110
 
_ACEOF
5111
 
rm -f conftest.$ac_objext
5112
 
if { (ac_try="$ac_compile"
5113
 
case "(($ac_try" in
5114
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115
 
  *) ac_try_echo=$ac_try;;
5116
 
esac
5117
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5118
 
$as_echo "$ac_try_echo") >&5
5119
 
  (eval "$ac_compile") 2>conftest.er1
5120
 
  ac_status=$?
5121
 
  grep -v '^ *+' conftest.er1 >conftest.err
5122
 
  rm -f conftest.er1
5123
 
  cat conftest.err >&5
5124
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125
 
  (exit $ac_status); } && {
5126
 
         test -z "$ac_c_werror_flag" ||
5127
 
         test ! -s conftest.err
5128
 
       } && test -s conftest.$ac_objext; then
5129
 
  ac_header_compiler=yes
5130
 
else
5131
 
  $as_echo "$as_me: failed program was:" >&5
5132
 
sed 's/^/| /' conftest.$ac_ext >&5
5133
 
 
5134
 
        ac_header_compiler=no
5135
 
fi
5136
 
 
5137
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5139
 
$as_echo "$ac_header_compiler" >&6; }
5140
 
 
5141
 
# Is the header present?
5142
 
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5143
 
$as_echo_n "checking minix/config.h presence... " >&6; }
5144
 
cat >conftest.$ac_ext <<_ACEOF
5145
 
/* confdefs.h.  */
5146
 
_ACEOF
5147
 
cat confdefs.h >>conftest.$ac_ext
5148
 
cat >>conftest.$ac_ext <<_ACEOF
5149
 
/* end confdefs.h.  */
5150
 
@%:@include <minix/config.h>
5151
 
_ACEOF
5152
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5153
 
case "(($ac_try" in
5154
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155
 
  *) ac_try_echo=$ac_try;;
5156
 
esac
5157
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5158
 
$as_echo "$ac_try_echo") >&5
5159
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5160
 
  ac_status=$?
5161
 
  grep -v '^ *+' conftest.er1 >conftest.err
5162
 
  rm -f conftest.er1
5163
 
  cat conftest.err >&5
5164
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165
 
  (exit $ac_status); } >/dev/null && {
5166
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5167
 
         test ! -s conftest.err
5168
 
       }; then
5169
 
  ac_header_preproc=yes
5170
 
else
5171
 
  $as_echo "$as_me: failed program was:" >&5
5172
 
sed 's/^/| /' conftest.$ac_ext >&5
5173
 
 
5174
 
  ac_header_preproc=no
5175
 
fi
5176
 
 
5177
 
rm -f conftest.err conftest.$ac_ext
5178
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5179
 
$as_echo "$ac_header_preproc" >&6; }
5180
 
 
5181
 
# So?  What about this header?
5182
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5183
 
  yes:no: )
5184
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5185
 
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5186
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5187
 
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5188
 
    ac_header_preproc=yes
5189
 
    ;;
5190
 
  no:yes:* )
5191
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5192
 
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5193
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5194
 
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5195
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5196
 
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5197
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5198
 
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5199
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5200
 
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5201
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5202
 
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5203
 
    
5204
 
    ;;
5205
 
esac
5206
 
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5207
 
$as_echo_n "checking for minix/config.h... " >&6; }
5208
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
5209
 
  $as_echo_n "(cached) " >&6
5210
 
else
5211
 
  ac_cv_header_minix_config_h=$ac_header_preproc
5212
 
fi
5213
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5214
 
$as_echo "$ac_cv_header_minix_config_h" >&6; }
5215
 
 
5216
 
fi
5217
 
if test "x$ac_cv_header_minix_config_h" = x""yes; then
5218
 
  MINIX=yes
5219
 
else
5220
 
  MINIX=
5221
 
fi
5222
 
 
5223
 
 
5224
 
  if test "$MINIX" = yes; then
5225
 
    
5226
 
cat >>confdefs.h <<\_ACEOF
5227
 
@%:@define _POSIX_SOURCE 1
5228
 
_ACEOF
5229
 
 
5230
 
    
5231
 
cat >>confdefs.h <<\_ACEOF
5232
 
@%:@define _POSIX_1_SOURCE 2
5233
 
_ACEOF
5234
 
 
5235
 
    
5236
 
cat >>confdefs.h <<\_ACEOF
5237
 
@%:@define _MINIX 1
5238
 
_ACEOF
5239
 
 
5240
 
  fi
5241
 
 
5242
 
  
5243
 
 
5244
 
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5245
 
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5246
 
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5247
 
  $as_echo_n "(cached) " >&6
5248
 
else
5249
 
  cat >conftest.$ac_ext <<_ACEOF
5250
 
/* confdefs.h.  */
5251
 
_ACEOF
5252
 
cat confdefs.h >>conftest.$ac_ext
5253
 
cat >>conftest.$ac_ext <<_ACEOF
5254
 
/* end confdefs.h.  */
5255
 
 
5256
 
#         define __EXTENSIONS__ 1
5257
 
          $ac_includes_default
5258
 
int
5259
 
main ()
5260
 
{
5261
 
 
5262
 
  ;
5263
 
  return 0;
5264
 
}
5265
 
_ACEOF
5266
 
rm -f conftest.$ac_objext
5267
 
if { (ac_try="$ac_compile"
5268
 
case "(($ac_try" in
5269
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270
 
  *) ac_try_echo=$ac_try;;
5271
 
esac
5272
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5273
 
$as_echo "$ac_try_echo") >&5
5274
 
  (eval "$ac_compile") 2>conftest.er1
5275
 
  ac_status=$?
5276
 
  grep -v '^ *+' conftest.er1 >conftest.err
5277
 
  rm -f conftest.er1
5278
 
  cat conftest.err >&5
5279
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280
 
  (exit $ac_status); } && {
5281
 
         test -z "$ac_c_werror_flag" ||
5282
 
         test ! -s conftest.err
5283
 
       } && test -s conftest.$ac_objext; then
5284
 
  ac_cv_safe_to_define___extensions__=yes
5285
 
else
5286
 
  $as_echo "$as_me: failed program was:" >&5
5287
 
sed 's/^/| /' conftest.$ac_ext >&5
5288
 
 
5289
 
        ac_cv_safe_to_define___extensions__=no
5290
 
fi
5291
 
 
5292
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293
 
fi
5294
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5295
 
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5296
 
  test $ac_cv_safe_to_define___extensions__ = yes &&
5297
 
    cat >>confdefs.h <<\_ACEOF
5298
 
@%:@define __EXTENSIONS__ 1
5299
 
_ACEOF
5300
 
 
5301
 
  cat >>confdefs.h <<\_ACEOF
5302
 
@%:@define _ALL_SOURCE 1
5303
 
_ACEOF
5304
 
 
5305
 
  cat >>confdefs.h <<\_ACEOF
5306
 
@%:@define _GNU_SOURCE 1
5307
 
_ACEOF
5308
 
 
5309
 
  cat >>confdefs.h <<\_ACEOF
5310
 
@%:@define _POSIX_PTHREAD_SEMANTICS 1
5311
 
_ACEOF
5312
 
 
5313
 
  cat >>confdefs.h <<\_ACEOF
5314
 
@%:@define _TANDEM_SOURCE 1
5315
 
_ACEOF
5316
 
 
5317
 
 
5318
 
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5319
 
$as_echo_n "checking whether ln -s works... " >&6; }
5320
 
LN_S=$as_ln_s
5321
 
if test "$LN_S" = "ln -s"; then
5322
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
5323
 
$as_echo "yes" >&6; }
5324
 
else
5325
 
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5326
 
$as_echo "no, using $LN_S" >&6; }
5327
 
fi
5328
 
 
5329
 
 
5330
 
 
5331
 
php_with_libdir=lib
5332
 
 
5333
 
{ $as_echo "$as_me:$LINENO: checking for system library directory" >&5
5334
 
$as_echo_n "checking for system library directory... " >&6; }
5335
 
 
5336
 
@%:@ Check whether --with-libdir was given.
5337
 
if test "${with_libdir+set}" = set; then
5338
 
  withval=$with_libdir; PHP_LIBDIR=$withval
5339
 
else
5340
 
  
5341
 
  PHP_LIBDIR=lib
5342
 
  
5343
 
 
5344
 
fi
5345
 
 
5346
 
 
5347
 
ext_output=$PHP_LIBDIR
5348
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
5349
 
$as_echo "$ext_output" >&6; }
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
php_enable_rpath=yes
5356
 
 
5357
 
{ $as_echo "$as_me:$LINENO: checking whether to enable runpaths" >&5
5358
 
$as_echo_n "checking whether to enable runpaths... " >&6; }
5359
 
@%:@ Check whether --enable-rpath was given.
5360
 
if test "${enable_rpath+set}" = set; then
5361
 
  enableval=$enable_rpath; PHP_RPATH=$enableval
5362
 
else
5363
 
  
5364
 
  PHP_RPATH=yes
5365
 
  
5366
 
 
5367
 
fi
5368
 
 
5369
 
 
5370
 
ext_output=$PHP_RPATH
5371
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
5372
 
$as_echo "$ext_output" >&6; }
5373
 
 
5374
 
 
5375
 
 
5376
 
 
5377
 
 
5378
 
{ $as_echo "$as_me:$LINENO: checking if compiler supports -R" >&5
5379
 
$as_echo_n "checking if compiler supports -R... " >&6; }
5380
 
if test "${php_cv_cc_dashr+set}" = set; then
5381
 
  $as_echo_n "(cached) " >&6
5382
 
else
5383
 
  
5384
 
  SAVE_LIBS=$LIBS
5385
 
  LIBS="-R /usr/$PHP_LIBDIR $LIBS"
5386
 
  cat >conftest.$ac_ext <<_ACEOF
5387
 
/* confdefs.h.  */
5388
 
_ACEOF
5389
 
cat confdefs.h >>conftest.$ac_ext
5390
 
cat >>conftest.$ac_ext <<_ACEOF
5391
 
/* end confdefs.h.  */
5392
 
 
5393
 
int
5394
 
main ()
5395
 
{
5396
 
 
5397
 
  ;
5398
 
  return 0;
5399
 
}
5400
 
_ACEOF
5401
 
rm -f conftest.$ac_objext conftest$ac_exeext
5402
 
if { (ac_try="$ac_link"
5403
 
case "(($ac_try" in
5404
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405
 
  *) ac_try_echo=$ac_try;;
5406
 
esac
5407
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5408
 
$as_echo "$ac_try_echo") >&5
5409
 
  (eval "$ac_link") 2>conftest.er1
5410
 
  ac_status=$?
5411
 
  grep -v '^ *+' conftest.er1 >conftest.err
5412
 
  rm -f conftest.er1
5413
 
  cat conftest.err >&5
5414
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415
 
  (exit $ac_status); } && {
5416
 
         test -z "$ac_c_werror_flag" ||
5417
 
         test ! -s conftest.err
5418
 
       } && test -s conftest$ac_exeext && {
5419
 
         test "$cross_compiling" = yes ||
5420
 
         $as_test_x conftest$ac_exeext
5421
 
       }; then
5422
 
  php_cv_cc_dashr=yes
5423
 
else
5424
 
  $as_echo "$as_me: failed program was:" >&5
5425
 
sed 's/^/| /' conftest.$ac_ext >&5
5426
 
 
5427
 
        php_cv_cc_dashr=no
5428
 
fi
5429
 
 
5430
 
rm -rf conftest.dSYM
5431
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5432
 
      conftest$ac_exeext conftest.$ac_ext
5433
 
  LIBS=$SAVE_LIBS
5434
 
fi
5435
 
 
5436
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_cc_dashr" >&5
5437
 
$as_echo "$php_cv_cc_dashr" >&6; }
5438
 
if test $php_cv_cc_dashr = "yes"; then
5439
 
  ld_runpath_switch=-R
5440
 
else
5441
 
  { $as_echo "$as_me:$LINENO: checking if compiler supports -Wl,-rpath," >&5
5442
 
$as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; }
5443
 
  if test "${php_cv_cc_rpath+set}" = set; then
5444
 
  $as_echo_n "(cached) " >&6
5445
 
else
5446
 
  
5447
 
    SAVE_LIBS=$LIBS
5448
 
    LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
5449
 
    cat >conftest.$ac_ext <<_ACEOF
5450
 
/* confdefs.h.  */
5451
 
_ACEOF
5452
 
cat confdefs.h >>conftest.$ac_ext
5453
 
cat >>conftest.$ac_ext <<_ACEOF
5454
 
/* end confdefs.h.  */
5455
 
 
5456
 
int
5457
 
main ()
5458
 
{
5459
 
 
5460
 
  ;
5461
 
  return 0;
5462
 
}
5463
 
_ACEOF
5464
 
rm -f conftest.$ac_objext conftest$ac_exeext
5465
 
if { (ac_try="$ac_link"
5466
 
case "(($ac_try" in
5467
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468
 
  *) ac_try_echo=$ac_try;;
5469
 
esac
5470
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5471
 
$as_echo "$ac_try_echo") >&5
5472
 
  (eval "$ac_link") 2>conftest.er1
5473
 
  ac_status=$?
5474
 
  grep -v '^ *+' conftest.er1 >conftest.err
5475
 
  rm -f conftest.er1
5476
 
  cat conftest.err >&5
5477
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478
 
  (exit $ac_status); } && {
5479
 
         test -z "$ac_c_werror_flag" ||
5480
 
         test ! -s conftest.err
5481
 
       } && test -s conftest$ac_exeext && {
5482
 
         test "$cross_compiling" = yes ||
5483
 
         $as_test_x conftest$ac_exeext
5484
 
       }; then
5485
 
  php_cv_cc_rpath=yes
5486
 
else
5487
 
  $as_echo "$as_me: failed program was:" >&5
5488
 
sed 's/^/| /' conftest.$ac_ext >&5
5489
 
 
5490
 
        php_cv_cc_rpath=no
5491
 
fi
5492
 
 
5493
 
rm -rf conftest.dSYM
5494
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5495
 
      conftest$ac_exeext conftest.$ac_ext
5496
 
    LIBS=$SAVE_LIBS
5497
 
fi
5498
 
 
5499
 
  { $as_echo "$as_me:$LINENO: result: $php_cv_cc_rpath" >&5
5500
 
$as_echo "$php_cv_cc_rpath" >&6; }
5501
 
  if test $php_cv_cc_rpath = "yes"; then
5502
 
    ld_runpath_switch=-Wl,-rpath,
5503
 
  else
5504
 
        ld_runpath_switch=-L
5505
 
  fi
5506
 
fi
5507
 
if test "$PHP_RPATH" = "no"; then
5508
 
  ld_runpath_switch=
5509
 
fi
5510
 
 
5511
 
 
5512
 
 
5513
 
  for ac_prog in gawk nawk awk mawk
5514
 
do
5515
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5516
 
set dummy $ac_prog; ac_word=$2
5517
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5518
 
$as_echo_n "checking for $ac_word... " >&6; }
5519
 
if test "${ac_cv_prog_AWK+set}" = set; then
5520
 
  $as_echo_n "(cached) " >&6
5521
 
else
5522
 
  if test -n "$AWK"; then
5523
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5524
 
else
5525
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526
 
as_dummy="/usr/xpg4/bin/:$PATH"
5527
 
for as_dir in $as_dummy
5528
 
do
5529
 
  IFS=$as_save_IFS
5530
 
  test -z "$as_dir" && as_dir=.
5531
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5532
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533
 
    ac_cv_prog_AWK="$ac_prog"
5534
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535
 
    break 2
5536
 
  fi
5537
 
done
5538
 
done
5539
 
IFS=$as_save_IFS
5540
 
 
5541
 
fi
5542
 
fi
5543
 
AWK=$ac_cv_prog_AWK
5544
 
if test -n "$AWK"; then
5545
 
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5546
 
$as_echo "$AWK" >&6; }
5547
 
else
5548
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5549
 
$as_echo "no" >&6; }
5550
 
fi
5551
 
 
5552
 
 
5553
 
  test -n "$AWK" && break
5554
 
done
5555
 
test -n "$AWK" || AWK="bork"
5556
 
 
5557
 
  case "$AWK" in
5558
 
    *mawk)
5559
 
      { $as_echo "$as_me:$LINENO: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
5560
 
$as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
5561
 
      ;;
5562
 
    *gawk)  
5563
 
      ;;
5564
 
    bork)   
5565
 
      { { $as_echo "$as_me:$LINENO: error: Could not find awk; Install GNU awk" >&5
5566
 
$as_echo "$as_me: error: Could not find awk; Install GNU awk" >&2;}
5567
 
   { (exit 1); exit 1; }; }
5568
 
      ;;
5569
 
    *)
5570
 
      { $as_echo "$as_me:$LINENO: checking if $AWK is broken" >&5
5571
 
$as_echo_n "checking if $AWK is broken... " >&6; }
5572
 
      if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
5573
 
        { $as_echo "$as_me:$LINENO: result: yes" >&5
5574
 
$as_echo "yes" >&6; }
5575
 
        { { $as_echo "$as_me:$LINENO: error: You should install GNU awk" >&5
5576
 
$as_echo "$as_me: error: You should install GNU awk" >&2;}
5577
 
   { (exit 1); exit 1; }; }
5578
 
      else
5579
 
        { $as_echo "$as_me:$LINENO: result: no" >&5
5580
 
$as_echo "no" >&6; }
5581
 
      fi
5582
 
      ;;
5583
 
  esac
5584
 
  
5585
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
5586
 
 
5587
 
 
5588
 
 
5589
 
  for ac_prog in 'bison -y' byacc
5590
 
do
5591
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5592
 
set dummy $ac_prog; ac_word=$2
5593
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5594
 
$as_echo_n "checking for $ac_word... " >&6; }
5595
 
if test "${ac_cv_prog_YACC+set}" = set; then
5596
 
  $as_echo_n "(cached) " >&6
5597
 
else
5598
 
  if test -n "$YACC"; then
5599
 
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5600
 
else
5601
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602
 
for as_dir in $PATH
5603
 
do
5604
 
  IFS=$as_save_IFS
5605
 
  test -z "$as_dir" && as_dir=.
5606
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5607
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608
 
    ac_cv_prog_YACC="$ac_prog"
5609
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610
 
    break 2
5611
 
  fi
5612
 
done
5613
 
done
5614
 
IFS=$as_save_IFS
5615
 
 
5616
 
fi
5617
 
fi
5618
 
YACC=$ac_cv_prog_YACC
5619
 
if test -n "$YACC"; then
5620
 
  { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5621
 
$as_echo "$YACC" >&6; }
5622
 
else
5623
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5624
 
$as_echo "no" >&6; }
5625
 
fi
5626
 
 
5627
 
 
5628
 
  test -n "$YACC" && break
5629
 
done
5630
 
test -n "$YACC" || YACC="yacc"
5631
 
 
5632
 
  
5633
 
  # we only support certain bison versions
5634
 
  bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5"
5635
 
 
5636
 
  # for standalone build of Zend Engine
5637
 
  test -z "$SED" && SED=sed
5638
 
 
5639
 
  bison_version=none
5640
 
  if test "$YACC"; then
5641
 
    { $as_echo "$as_me:$LINENO: checking for bison version" >&5
5642
 
$as_echo_n "checking for bison version... " >&6; }
5643
 
if test "${php_cv_bison_version+set}" = set; then
5644
 
  $as_echo_n "(cached) " >&6
5645
 
else
5646
 
  
5647
 
      bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
5648
 
      php_cv_bison_version=invalid
5649
 
      if test -n "$bison_version_vars"; then
5650
 
        set $bison_version_vars
5651
 
        bison_version="${1}.${2}"
5652
 
        for bison_check_version in $bison_version_list; do
5653
 
          if test "$bison_version" = "$bison_check_version"; then
5654
 
            php_cv_bison_version="$bison_check_version (ok)"
5655
 
            break
5656
 
          fi
5657
 
        done
5658
 
      fi
5659
 
    
5660
 
fi
5661
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_bison_version" >&5
5662
 
$as_echo "$php_cv_bison_version" >&6; }
5663
 
  fi
5664
 
  case $php_cv_bison_version in
5665
 
    ""|invalid)
5666
 
      bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
5667
 
      { $as_echo "$as_me:$LINENO: WARNING: $bison_msg" >&5
5668
 
$as_echo "$as_me: WARNING: $bison_msg" >&2;}
5669
 
      YACC="exit 0;"
5670
 
      ;;
5671
 
  esac
5672
 
 
5673
 
  
5674
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST YACC"
5675
 
 
5676
 
 
5677
 
 
5678
 
  # Extract the first word of "re2c", so it can be a program name with args.
5679
 
set dummy re2c; ac_word=$2
5680
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5681
 
$as_echo_n "checking for $ac_word... " >&6; }
5682
 
if test "${ac_cv_prog_RE2C+set}" = set; then
5683
 
  $as_echo_n "(cached) " >&6
5684
 
else
5685
 
  if test -n "$RE2C"; then
5686
 
  ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
5687
 
else
5688
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689
 
for as_dir in $PATH
5690
 
do
5691
 
  IFS=$as_save_IFS
5692
 
  test -z "$as_dir" && as_dir=.
5693
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5694
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695
 
    ac_cv_prog_RE2C="re2c"
5696
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697
 
    break 2
5698
 
  fi
5699
 
done
5700
 
done
5701
 
IFS=$as_save_IFS
5702
 
 
5703
 
fi
5704
 
fi
5705
 
RE2C=$ac_cv_prog_RE2C
5706
 
if test -n "$RE2C"; then
5707
 
  { $as_echo "$as_me:$LINENO: result: $RE2C" >&5
5708
 
$as_echo "$RE2C" >&6; }
5709
 
else
5710
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5711
 
$as_echo "no" >&6; }
5712
 
fi
5713
 
 
5714
 
 
5715
 
  if test -n "$RE2C"; then
5716
 
    { $as_echo "$as_me:$LINENO: checking for re2c version" >&5
5717
 
$as_echo_n "checking for re2c version... " >&6; }
5718
 
if test "${php_cv_re2c_version+set}" = set; then
5719
 
  $as_echo_n "(cached) " >&6
5720
 
else
5721
 
  
5722
 
      re2c_vernum=`$RE2C --vernum 2>/dev/null`
5723
 
      if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then
5724
 
        php_cv_re2c_version=invalid
5725
 
      else
5726
 
        php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2  2>/dev/null` (ok)"
5727
 
      fi 
5728
 
    
5729
 
fi
5730
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_re2c_version" >&5
5731
 
$as_echo "$php_cv_re2c_version" >&6; }
5732
 
  fi
5733
 
  case $php_cv_re2c_version in
5734
 
    ""|invalid)
5735
 
      { $as_echo "$as_me:$LINENO: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5
5736
 
$as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;}
5737
 
      RE2C="exit 0;"
5738
 
      ;;
5739
 
  esac
5740
 
  
5741
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
5742
 
 
5743
 
 
5744
 
 
5745
 
case $php_cv_bison_version in
5746
 
  ""|invalid)
5747
 
    if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then
5748
 
      { { $as_echo "$as_me:$LINENO: error: bison is required to build PHP/Zend when building a SVN checkout!" >&5
5749
 
$as_echo "$as_me: error: bison is required to build PHP/Zend when building a SVN checkout!" >&2;}
5750
 
   { (exit 1); exit 1; }; }
5751
 
    fi
5752
 
    ;;
5753
 
esac
5754
 
 
5755
 
 
5756
 
php_enable_re2c_cgoto=no
5757
 
 
5758
 
{ $as_echo "$as_me:$LINENO: checking whether to enable computed goto gcc extension with re2c" >&5
5759
 
$as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; }
5760
 
@%:@ Check whether --enable-re2c-cgoto was given.
5761
 
if test "${enable_re2c_cgoto+set}" = set; then
5762
 
  enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval
5763
 
else
5764
 
  
5765
 
  PHP_RE2C_CGOTO=no
5766
 
  
5767
 
 
5768
 
fi
5769
 
 
5770
 
 
5771
 
ext_output=$PHP_RE2C_CGOTO
5772
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
5773
 
$as_echo "$ext_output" >&6; }
5774
 
 
5775
 
 
5776
 
 
5777
 
 
5778
 
if test "$PHP_RE2C_CGOTO" = "no"; then
5779
 
  RE2C_FLAGS=""
5780
 
else
5781
 
  { $as_echo "$as_me:$LINENO: checking whether re2c -g works" >&5
5782
 
$as_echo_n "checking whether re2c -g works... " >&6; }
5783
 
  cat >conftest.$ac_ext <<_ACEOF
5784
 
/* confdefs.h.  */
5785
 
_ACEOF
5786
 
cat confdefs.h >>conftest.$ac_ext
5787
 
cat >>conftest.$ac_ext <<_ACEOF
5788
 
/* end confdefs.h.  */
5789
 
 
5790
 
int
5791
 
main ()
5792
 
{
5793
 
 
5794
 
int main(int argc, const char **argv)
5795
 
{
5796
 
  argc = argc;
5797
 
  argv = argv;
5798
 
label1:
5799
 
label2:
5800
 
  static void *adr[] = { &&label1, &&label2};
5801
 
  goto *adr[0];
5802
 
  return 0;
5803
 
}
5804
 
  
5805
 
  ;
5806
 
  return 0;
5807
 
}
5808
 
_ACEOF
5809
 
rm -f conftest.$ac_objext
5810
 
if { (ac_try="$ac_compile"
5811
 
case "(($ac_try" in
5812
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813
 
  *) ac_try_echo=$ac_try;;
5814
 
esac
5815
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5816
 
$as_echo "$ac_try_echo") >&5
5817
 
  (eval "$ac_compile") 2>conftest.er1
5818
 
  ac_status=$?
5819
 
  grep -v '^ *+' conftest.er1 >conftest.err
5820
 
  rm -f conftest.er1
5821
 
  cat conftest.err >&5
5822
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823
 
  (exit $ac_status); } && {
5824
 
         test -z "$ac_c_werror_flag" ||
5825
 
         test ! -s conftest.err
5826
 
       } && test -s conftest.$ac_objext; then
5827
 
  
5828
 
    RE2C_FLAGS=""
5829
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
5830
 
$as_echo "no" >&6; }
5831
 
  
5832
 
else
5833
 
  $as_echo "$as_me: failed program was:" >&5
5834
 
sed 's/^/| /' conftest.$ac_ext >&5
5835
 
 
5836
 
        
5837
 
    RE2C_FLAGS="-g"
5838
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
5839
 
$as_echo "yes" >&6; }
5840
 
  
5841
 
fi
5842
 
 
5843
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844
 
fi
5845
 
 
5846
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS"
5847
 
 
5848
 
 
5849
 
 
5850
 
case $host_cpu in
5851
 
  alpha*)
5852
 
    if test "$GCC" = "yes"; then
5853
 
      CFLAGS="$CFLAGS -mieee"
5854
 
    else
5855
 
      CFLAGS="$CFLAGS -ieee"
5856
 
    fi
5857
 
    ;;
5858
 
  sparc*)
5859
 
    if test "$SUNCC" = "yes"; then
5860
 
      CFLAGS="$CFLAGS -xmemalign=8s"
5861
 
    fi
5862
 
    ;;
5863
 
esac
5864
 
 
5865
 
if test "$GCC" = "yes"; then
5866
 
  case $host_alias in
5867
 
  *darwin*)
5868
 
    GCC_MAJOR_VERSION=`$CC -dumpversion | /usr/bin/sed -nE '1s/([0-9]+)\.[0-9]+\..*/\1/;1p'`
5869
 
    ;;
5870
 
  *)
5871
 
    GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[^0-9]*//;1s/\..*//;1p'`
5872
 
    ;;
5873
 
  esac
5874
 
  if test $GCC_MAJOR_VERSION -ge 4; then
5875
 
    CFLAGS="$CFLAGS -fvisibility=hidden"
5876
 
  fi
5877
 
fi
5878
 
 
5879
 
case $host_alias in
5880
 
  *solaris*)
5881
 
    CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
5882
 
    if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then
5883
 
      enable_libgcc=yes
5884
 
    fi
5885
 
    ;;
5886
 
  *dgux*)
5887
 
    CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR"
5888
 
    ;;
5889
 
  *darwin*|*rhapsody*)
5890
 
    if test -n "$GCC"; then
5891
 
      
5892
 
  gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp
5893
 
  { $as_echo "$as_me:$LINENO: checking whether $CC supports -no-cpp-precomp" >&5
5894
 
$as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; }
5895
 
if test "${ac_cv_gcc_arg_no_cpp_precomp+set}" = set; then
5896
 
  $as_echo_n "(cached) " >&6
5897
 
else
5898
 
  
5899
 
  echo 'void somefunc() { };' > conftest.c
5900
 
  cmd='$CC -no-cpp-precomp -c conftest.c'
5901
 
  if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then
5902
 
    ac_result=no
5903
 
  else
5904
 
    ac_result=yes
5905
 
  fi
5906
 
  eval $gcc_arg_name=$ac_result
5907
 
  rm -f conftest.*
5908
 
  
5909
 
fi
5910
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5
5911
 
$as_echo "$ac_cv_gcc_arg_no_cpp_precomp" >&6; }
5912
 
  if eval test "\$$gcc_arg_name" = "yes"; then
5913
 
    gcc_no_cpp_precomp=yes
5914
 
  else
5915
 
    :
5916
 
    
5917
 
  fi
5918
 
 
5919
 
      if test "$gcc_no_cpp_precomp" = "yes"; then
5920
 
        CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
5921
 
      fi
5922
 
    fi
5923
 
    php_multiple_shlib_versions_ok=yes
5924
 
    ;;
5925
 
  *beos*)
5926
 
    beos_threads=1
5927
 
    LIBS="$LIBS -lbe -lroot"
5928
 
    ;;
5929
 
  *mips*)
5930
 
    CPPFLAGS="$CPPFLAGS -D_XPG_IV"
5931
 
    ;;
5932
 
  *hpux*)
5933
 
    if test "$GCC" = "yes"; then
5934
 
      CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
5935
 
    fi
5936
 
    ;;
5937
 
  *netware*)
5938
 
    
5939
 
  OVERALL_TARGET=php
5940
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5941
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
5942
 
  php_c_post=
5943
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5944
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
5945
 
  php_cxx_post=
5946
 
  php_lo=lo
5947
 
 
5948
 
  case $with_pic in
5949
 
    yes) pic_setting='-prefer-pic';;
5950
 
    no)  pic_setting='-prefer-non-pic';;
5951
 
  esac
5952
 
 
5953
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5954
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
5955
 
  shared_c_post=
5956
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5957
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
5958
 
  shared_cxx_post=
5959
 
  shared_lo=lo
5960
 
 
5961
 
  php_build_target=program
5962
 
 
5963
 
    
5964
 
  
5965
 
  case /main in
5966
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
5967
 
  /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
5968
 
  *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
5969
 
  esac
5970
 
  
5971
 
  
5972
 
 
5973
 
  b_c_pre=$php_c_pre
5974
 
  b_cxx_pre=$php_cxx_pre
5975
 
  b_c_meta=$php_c_meta
5976
 
  b_cxx_meta=$php_cxx_meta
5977
 
  b_c_post=$php_c_post
5978
 
  b_cxx_post=$php_cxx_post
5979
 
  b_lo=$php_lo
5980
 
 
5981
 
 
5982
 
  old_IFS=$IFS
5983
 
  for ac_src in internal_functions.c; do
5984
 
  
5985
 
      IFS=.
5986
 
      set $ac_src
5987
 
      ac_obj=$1
5988
 
      IFS=$old_IFS
5989
 
      
5990
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
5991
 
 
5992
 
      case $ac_src in
5993
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5994
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5995
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5996
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
5997
 
      esac
5998
 
 
5999
 
    cat >>Makefile.objects<<EOF
6000
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6001
 
        $ac_comp
6002
 
EOF
6003
 
  done
6004
 
 
6005
 
 
6006
 
    
6007
 
  
6008
 
  case win32 in
6009
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
6010
 
  /*) ac_srcdir=`echo "win32"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
6011
 
  *) ac_srcdir="$abs_srcdir/win32/"; ac_bdir="win32/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
6012
 
  esac
6013
 
  
6014
 
  
6015
 
 
6016
 
  b_c_pre=$php_c_pre
6017
 
  b_cxx_pre=$php_cxx_pre
6018
 
  b_c_meta=$php_c_meta
6019
 
  b_cxx_meta=$php_cxx_meta
6020
 
  b_c_post=$php_c_post
6021
 
  b_cxx_post=$php_cxx_post
6022
 
  b_lo=$php_lo
6023
 
 
6024
 
 
6025
 
  old_IFS=$IFS
6026
 
  for ac_src in sendmail.c; do
6027
 
  
6028
 
      IFS=.
6029
 
      set $ac_src
6030
 
      ac_obj=$1
6031
 
      IFS=$old_IFS
6032
 
      
6033
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
6034
 
 
6035
 
      case $ac_src in
6036
 
        *.c) ac_comp="$b_c_pre -I$CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6037
 
        *.s) ac_comp="$b_c_pre -I$CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6038
 
        *.S) ac_comp="$b_c_pre -I$CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6039
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -I$CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
6040
 
      esac
6041
 
 
6042
 
    cat >>Makefile.objects<<EOF
6043
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6044
 
        $ac_comp
6045
 
EOF
6046
 
  done
6047
 
 
6048
 
 
6049
 
    PHP5LIB_SHARED_LIBADD=\$\(EXTRA_LIBS\)
6050
 
    EXTENSION_DIR=sys:/php$PHP_MAJOR_VERSION/ext
6051
 
    
6052
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP5LIB_SHARED_LIBADD"
6053
 
 
6054
 
    
6055
 
  install_modules="install-modules"
6056
 
 
6057
 
  case $host_alias in
6058
 
    *aix*)
6059
 
      suffix=so
6060
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o 'netware'/php5lib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS) $(PHP5LIB_SHARED_LIBADD) && mv -f 'netware'/.libs/php5lib.so 'netware'/php5lib.so'
6061
 
      ;;
6062
 
    *netware*)
6063
 
      suffix=nlm
6064
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS)  $(PHP5LIB_SHARED_LIBADD)'
6065
 
      ;;
6066
 
    *)
6067
 
      suffix=la
6068
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS) $(PHP5LIB_SHARED_LIBADD)'
6069
 
      ;;
6070
 
  esac
6071
 
 
6072
 
  if test "x" = "xyes"; then
6073
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/php5lib.$suffix"
6074
 
  else
6075
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/php5lib.$suffix"
6076
 
  fi
6077
 
  
6078
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
6079
 
 
6080
 
  cat >>Makefile.objects<<EOF
6081
 
\$(phplibdir)/php5lib.$suffix: netware/php5lib.$suffix
6082
 
        \$(LIBTOOL) --mode=install cp netware/php5lib.$suffix \$(phplibdir)
6083
 
 
6084
 
netware/php5lib.$suffix: \$(PHP_GLOBAL_OBJS) \$(PHP5LIB_SHARED_DEPENDENCIES)
6085
 
        $link_cmd
6086
 
 
6087
 
EOF
6088
 
 
6089
 
    ;;
6090
 
esac
6091
 
 
6092
 
# Disable PIC mode by default where it is known to be safe to do so,
6093
 
# to avoid the performance hit from the lost register
6094
 
{ $as_echo "$as_me:$LINENO: checking whether to force non-PIC code in shared modules" >&5
6095
 
$as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; }
6096
 
case $host_alias in
6097
 
  i?86-*-linux*|i?86-*-freebsd*)
6098
 
    if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then
6099
 
      with_pic=no
6100
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
6101
 
$as_echo "yes" >&6; }
6102
 
    else
6103
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
6104
 
$as_echo "no" >&6; }
6105
 
    fi
6106
 
    ;;
6107
 
  *)
6108
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
6109
 
$as_echo "no" >&6; }
6110
 
    ;;
6111
 
esac
6112
 
 
6113
 
 
6114
 
 
6115
 
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
 
 
6123
 
 
6124
 
 
6125
 
 
6126
 
 
6127
 
{ $as_echo "$as_me:$LINENO: checking whether /dev/urandom exists" >&5
6128
 
$as_echo_n "checking whether /dev/urandom exists... " >&6; } 
6129
 
if test -r "/dev/urandom" && test -c "/dev/urandom"; then 
6130
 
  
6131
 
cat >>confdefs.h <<\_ACEOF
6132
 
@%:@define HAVE_DEV_URANDOM 1
6133
 
_ACEOF
6134
 
 
6135
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
6136
 
$as_echo "yes" >&6; } 
6137
 
else 
6138
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6139
 
$as_echo "no" >&6; } 
6140
 
fi 
6141
 
 
6142
 
 
6143
 
 
6144
 
 
6145
 
 
6146
 
 
6147
 
 
6148
 
 
6149
 
 
6150
 
 
6151
 
 
6152
 
 
6153
 
 
6154
 
 
6155
 
 
6156
 
 
6157
 
 
6158
 
 
6159
 
 
6160
 
 
6161
 
 
6162
 
 
6163
 
 
6164
 
 
6165
 
if test "$beos_threads" = "1"; then
6166
 
  pthreads_working="yes"
6167
 
  ac_cv_pthreads_cflags=""
6168
 
else
6169
 
  save_CFLAGS=$CFLAGS
6170
 
  save_LIBS=$LIBS
6171
 
  
6172
 
if test -n "$ac_cv_pthreads_lib"; then
6173
 
  LIBS="$LIBS -l$ac_cv_pthreads_lib"
6174
 
fi
6175
 
 
6176
 
if test -n "$ac_cv_pthreads_cflags"; then
6177
 
  CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
6178
 
fi
6179
 
 
6180
 
  
6181
 
if test "$cross_compiling" = yes; then
6182
 
  
6183
 
    pthreads_working=no
6184
 
  case $host_alias in
6185
 
  *netware*)
6186
 
    pthreads_working=yes
6187
 
  esac
6188
 
 
6189
 
 
6190
 
else
6191
 
  cat >conftest.$ac_ext <<_ACEOF
6192
 
/* confdefs.h.  */
6193
 
_ACEOF
6194
 
cat confdefs.h >>conftest.$ac_ext
6195
 
cat >>conftest.$ac_ext <<_ACEOF
6196
 
/* end confdefs.h.  */
6197
 
 
6198
 
#include <pthread.h>
6199
 
#include <stddef.h>
6200
 
 
6201
 
void *thread_routine(void *data) {
6202
 
    return data;
6203
 
}
6204
 
 
6205
 
int main() {
6206
 
    pthread_t thd;
6207
 
    pthread_mutexattr_t mattr;
6208
 
    int data = 1;
6209
 
    pthread_mutexattr_init(&mattr);
6210
 
    return pthread_create(&thd, NULL, thread_routine, &data);
6211
 
6212
 
_ACEOF
6213
 
rm -f conftest$ac_exeext
6214
 
if { (ac_try="$ac_link"
6215
 
case "(($ac_try" in
6216
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217
 
  *) ac_try_echo=$ac_try;;
6218
 
esac
6219
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6220
 
$as_echo "$ac_try_echo") >&5
6221
 
  (eval "$ac_link") 2>&5
6222
 
  ac_status=$?
6223
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6225
 
  { (case "(($ac_try" in
6226
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227
 
  *) ac_try_echo=$ac_try;;
6228
 
esac
6229
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6230
 
$as_echo "$ac_try_echo") >&5
6231
 
  (eval "$ac_try") 2>&5
6232
 
  ac_status=$?
6233
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234
 
  (exit $ac_status); }; }; then
6235
 
  
6236
 
  pthreads_working=yes
6237
 
  
6238
 
else
6239
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
6240
 
$as_echo "$as_me: failed program was:" >&5
6241
 
sed 's/^/| /' conftest.$ac_ext >&5
6242
 
 
6243
 
( exit $ac_status )
6244
 
 
6245
 
  pthreads_working=no
6246
 
  
6247
 
fi
6248
 
rm -rf conftest.dSYM
6249
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6250
 
fi
6251
 
 
6252
 
  
6253
 
  LIBS=$save_LIBS
6254
 
  CFLAGS=$save_CFLAGS
6255
 
 
6256
 
  { $as_echo "$as_me:$LINENO: checking for pthreads_cflags" >&5
6257
 
$as_echo_n "checking for pthreads_cflags... " >&6; }
6258
 
if test "${ac_cv_pthreads_cflags+set}" = set; then
6259
 
  $as_echo_n "(cached) " >&6
6260
 
else
6261
 
  
6262
 
  ac_cv_pthreads_cflags=
6263
 
  if test "$pthreads_working" != "yes"; then
6264
 
    for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do 
6265
 
      ac_save=$CFLAGS
6266
 
      CFLAGS="$CFLAGS $flag"
6267
 
      
6268
 
if test "$cross_compiling" = yes; then
6269
 
  
6270
 
    pthreads_working=no
6271
 
  case $host_alias in
6272
 
  *netware*)
6273
 
    pthreads_working=yes
6274
 
  esac
6275
 
 
6276
 
 
6277
 
else
6278
 
  cat >conftest.$ac_ext <<_ACEOF
6279
 
/* confdefs.h.  */
6280
 
_ACEOF
6281
 
cat confdefs.h >>conftest.$ac_ext
6282
 
cat >>conftest.$ac_ext <<_ACEOF
6283
 
/* end confdefs.h.  */
6284
 
 
6285
 
#include <pthread.h>
6286
 
#include <stddef.h>
6287
 
 
6288
 
void *thread_routine(void *data) {
6289
 
    return data;
6290
 
}
6291
 
 
6292
 
int main() {
6293
 
    pthread_t thd;
6294
 
    pthread_mutexattr_t mattr;
6295
 
    int data = 1;
6296
 
    pthread_mutexattr_init(&mattr);
6297
 
    return pthread_create(&thd, NULL, thread_routine, &data);
6298
 
6299
 
_ACEOF
6300
 
rm -f conftest$ac_exeext
6301
 
if { (ac_try="$ac_link"
6302
 
case "(($ac_try" in
6303
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304
 
  *) ac_try_echo=$ac_try;;
6305
 
esac
6306
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307
 
$as_echo "$ac_try_echo") >&5
6308
 
  (eval "$ac_link") 2>&5
6309
 
  ac_status=$?
6310
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6312
 
  { (case "(($ac_try" in
6313
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314
 
  *) ac_try_echo=$ac_try;;
6315
 
esac
6316
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6317
 
$as_echo "$ac_try_echo") >&5
6318
 
  (eval "$ac_try") 2>&5
6319
 
  ac_status=$?
6320
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321
 
  (exit $ac_status); }; }; then
6322
 
  
6323
 
  pthreads_working=yes
6324
 
  
6325
 
else
6326
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
6327
 
$as_echo "$as_me: failed program was:" >&5
6328
 
sed 's/^/| /' conftest.$ac_ext >&5
6329
 
 
6330
 
( exit $ac_status )
6331
 
 
6332
 
  pthreads_working=no
6333
 
  
6334
 
fi
6335
 
rm -rf conftest.dSYM
6336
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6337
 
fi
6338
 
 
6339
 
  
6340
 
      CFLAGS=$ac_save
6341
 
      if test "$pthreads_working" = "yes"; then
6342
 
        ac_cv_pthreads_cflags=$flag
6343
 
        break
6344
 
      fi
6345
 
    done
6346
 
  fi
6347
 
fi
6348
 
 
6349
 
fi
6350
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthreads_cflags" >&5
6351
 
$as_echo "$ac_cv_pthreads_cflags" >&6; }
6352
 
 
6353
 
{ $as_echo "$as_me:$LINENO: checking for pthreads_lib" >&5
6354
 
$as_echo_n "checking for pthreads_lib... " >&6; }
6355
 
if test "${ac_cv_pthreads_lib+set}" = set; then
6356
 
  $as_echo_n "(cached) " >&6
6357
 
else
6358
 
  
6359
 
ac_cv_pthreads_lib=
6360
 
if test "$pthreads_working" != "yes"; then
6361
 
  for lib in pthread pthreads c_r; do
6362
 
    ac_save=$LIBS
6363
 
    LIBS="$LIBS -l$lib"
6364
 
    
6365
 
if test "$cross_compiling" = yes; then
6366
 
  
6367
 
    pthreads_working=no
6368
 
  case $host_alias in
6369
 
  *netware*)
6370
 
    pthreads_working=yes
6371
 
  esac
6372
 
 
6373
 
 
6374
 
else
6375
 
  cat >conftest.$ac_ext <<_ACEOF
6376
 
/* confdefs.h.  */
6377
 
_ACEOF
6378
 
cat confdefs.h >>conftest.$ac_ext
6379
 
cat >>conftest.$ac_ext <<_ACEOF
6380
 
/* end confdefs.h.  */
6381
 
 
6382
 
#include <pthread.h>
6383
 
#include <stddef.h>
6384
 
 
6385
 
void *thread_routine(void *data) {
6386
 
    return data;
6387
 
}
6388
 
 
6389
 
int main() {
6390
 
    pthread_t thd;
6391
 
    pthread_mutexattr_t mattr;
6392
 
    int data = 1;
6393
 
    pthread_mutexattr_init(&mattr);
6394
 
    return pthread_create(&thd, NULL, thread_routine, &data);
6395
 
6396
 
_ACEOF
6397
 
rm -f conftest$ac_exeext
6398
 
if { (ac_try="$ac_link"
6399
 
case "(($ac_try" in
6400
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401
 
  *) ac_try_echo=$ac_try;;
6402
 
esac
6403
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6404
 
$as_echo "$ac_try_echo") >&5
6405
 
  (eval "$ac_link") 2>&5
6406
 
  ac_status=$?
6407
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6409
 
  { (case "(($ac_try" in
6410
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411
 
  *) ac_try_echo=$ac_try;;
6412
 
esac
6413
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6414
 
$as_echo "$ac_try_echo") >&5
6415
 
  (eval "$ac_try") 2>&5
6416
 
  ac_status=$?
6417
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418
 
  (exit $ac_status); }; }; then
6419
 
  
6420
 
  pthreads_working=yes
6421
 
  
6422
 
else
6423
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
6424
 
$as_echo "$as_me: failed program was:" >&5
6425
 
sed 's/^/| /' conftest.$ac_ext >&5
6426
 
 
6427
 
( exit $ac_status )
6428
 
 
6429
 
  pthreads_working=no
6430
 
  
6431
 
fi
6432
 
rm -rf conftest.dSYM
6433
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6434
 
fi
6435
 
 
6436
 
  
6437
 
    LIBS=$ac_save
6438
 
    if test "$pthreads_working" = "yes"; then
6439
 
      ac_cv_pthreads_lib=$lib
6440
 
      break
6441
 
    fi
6442
 
  done
6443
 
fi
6444
 
 
6445
 
fi
6446
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthreads_lib" >&5
6447
 
$as_echo "$ac_cv_pthreads_lib" >&6; }
6448
 
 
6449
 
if test "$pthreads_working" = "yes"; then
6450
 
  threads_result="POSIX-Threads found"
6451
 
else
6452
 
  threads_result="POSIX-Threads not found"
6453
 
fi
6454
 
 
6455
 
 
6456
 
@%:@ Check whether --enable- was given.
6457
 
if test "${enable_+set}" = set; then
6458
 
  enableval=$enable_; 
6459
 
fi
6460
 
 
6461
 
 
6462
 
 
6463
 
  
6464
 
  
6465
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
6466
 
 
6467
 
  
6468
 
 
6469
 
 
6470
 
  
6471
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
6472
 
 
6473
 
  
6474
 
 
6475
 
 SHLIB_SUFFIX_NAME=so
6476
 
 SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
6477
 
 case $host_alias in
6478
 
 *hpux*)
6479
 
   SHLIB_SUFFIX_NAME=sl
6480
 
   SHLIB_DL_SUFFIX_NAME=sl
6481
 
   ;;
6482
 
 *darwin*)
6483
 
   SHLIB_SUFFIX_NAME=dylib
6484
 
   SHLIB_DL_SUFFIX_NAME=so
6485
 
   ;;
6486
 
 esac
6487
 
 
6488
 
PHP_SAPI=default
6489
 
 
6490
 
  OVERALL_TARGET=php
6491
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6492
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6493
 
  php_c_post=
6494
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6495
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6496
 
  php_cxx_post=
6497
 
  php_lo=lo
6498
 
 
6499
 
  case $with_pic in
6500
 
    yes) pic_setting='-prefer-pic';;
6501
 
    no)  pic_setting='-prefer-non-pic';;
6502
 
  esac
6503
 
 
6504
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6505
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6506
 
  shared_c_post=
6507
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6508
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6509
 
  shared_cxx_post=
6510
 
  shared_lo=lo
6511
 
 
6512
 
  php_build_target=program
6513
 
 
6514
 
 
6515
 
 
6516
 
 
6517
 
SAPI_SHARED=libs/libphp$PHP_MAJOR_VERSION.$SHLIB_DL_SUFFIX_NAME
6518
 
SAPI_STATIC=libs/libphp$PHP_MAJOR_VERSION.a
6519
 
SAPI_LIBTOOL=libphp$PHP_MAJOR_VERSION.la
6520
 
 
6521
 
 
6522
 
  { $as_echo "$as_me:$LINENO: result: " >&5
6523
 
$as_echo "" >&6; }
6524
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5
6525
 
$as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; }
6526
 
 
6527
 
 
6528
 
 
6529
 
 
6530
 
 
6531
 
php_with_aolserver=no
6532
 
 
6533
 
 
6534
 
 
6535
 
@%:@ Check whether --with-aolserver was given.
6536
 
if test "${with_aolserver+set}" = set; then
6537
 
  withval=$with_aolserver; PHP_AOLSERVER=$withval
6538
 
else
6539
 
  
6540
 
  PHP_AOLSERVER=no
6541
 
  
6542
 
 
6543
 
fi
6544
 
 
6545
 
 
6546
 
ext_output=$PHP_AOLSERVER
6547
 
 
6548
 
 
6549
 
 
6550
 
 
6551
 
 
6552
 
{ $as_echo "$as_me:$LINENO: checking for AOLserver support" >&5
6553
 
$as_echo_n "checking for AOLserver support... " >&6; }
6554
 
 
6555
 
if test "$PHP_AOLSERVER" != "no"; then
6556
 
  if test -d "$PHP_AOLSERVER/include"; then
6557
 
    PHP_AOLSERVER_SRC=$PHP_AOLSERVER
6558
 
  fi
6559
 
  if test -z "$PHP_AOLSERVER_SRC" || test ! -d $PHP_AOLSERVER_SRC/include; then
6560
 
    { { $as_echo "$as_me:$LINENO: error: Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" >&5
6561
 
$as_echo "$as_me: error: Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" >&2;}
6562
 
   { (exit 1); exit 1; }; }
6563
 
  fi
6564
 
  if test ! -d $PHP_AOLSERVER/bin ; then
6565
 
    { { $as_echo "$as_me:$LINENO: error: Please specify the path to the root of AOLserver using --with-aolserver=DIR" >&5
6566
 
$as_echo "$as_me: error: Please specify the path to the root of AOLserver using --with-aolserver=DIR" >&2;}
6567
 
   { (exit 1); exit 1; }; }
6568
 
  fi
6569
 
  
6570
 
  enable_maintainer_zts=yes
6571
 
  if test "$pthreads_working" != "yes"; then
6572
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
6573
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
6574
 
   { (exit 1); exit 1; }; }
6575
 
  fi
6576
 
 
6577
 
  
6578
 
  if test "$PHP_AOLSERVER_SRC/include" != "/usr/include"; then
6579
 
    
6580
 
  if test -z "$PHP_AOLSERVER_SRC/include" || echo "$PHP_AOLSERVER_SRC/include" | grep '^/' >/dev/null ; then
6581
 
    ai_p=$PHP_AOLSERVER_SRC/include
6582
 
  else
6583
 
    
6584
 
    ep_dir="`echo $PHP_AOLSERVER_SRC/include|$SED 's%/*[^/][^/]*/*$%%'`"
6585
 
    
6586
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
6587
 
    ai_p="$ep_realdir/`basename \"$PHP_AOLSERVER_SRC/include\"`"
6588
 
  fi
6589
 
 
6590
 
    
6591
 
  
6592
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
6593
 
  
6594
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
6595
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
6596
 
    eval "INCLUDEPATH$unique=set"
6597
 
    
6598
 
      if test ""; then
6599
 
        INCLUDES="-I$ai_p $INCLUDES"
6600
 
      else
6601
 
        INCLUDES="$INCLUDES -I$ai_p"
6602
 
      fi
6603
 
    
6604
 
  fi
6605
 
 
6606
 
  fi
6607
 
 
6608
 
  
6609
 
cat >>confdefs.h <<\_ACEOF
6610
 
@%:@define HAVE_AOLSERVER 1
6611
 
_ACEOF
6612
 
 
6613
 
  
6614
 
  if test "$PHP_SAPI" != "default"; then
6615
 
{ { $as_echo "$as_me:$LINENO: error: 
6616
 
+--------------------------------------------------------------------+
6617
 
|                        *** ATTENTION ***                           |
6618
 
|                                                                    |
6619
 
| You've configured multiple SAPIs to be build. You can build only   |
6620
 
| one SAPI module and CLI binary at the same time.                   |
6621
 
+--------------------------------------------------------------------+
6622
 
" >&5
6623
 
$as_echo "$as_me: error: 
6624
 
+--------------------------------------------------------------------+
6625
 
|                        *** ATTENTION ***                           |
6626
 
|                                                                    |
6627
 
| You've configured multiple SAPIs to be build. You can build only   |
6628
 
| one SAPI module and CLI binary at the same time.                   |
6629
 
+--------------------------------------------------------------------+
6630
 
" >&2;}
6631
 
   { (exit 1); exit 1; }; }
6632
 
  fi
6633
 
 
6634
 
  PHP_SAPI=aolserver
6635
 
  
6636
 
  case "shared" in
6637
 
  static) 
6638
 
  
6639
 
  OVERALL_TARGET=php
6640
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6641
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6642
 
  php_c_post=
6643
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6644
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6645
 
  php_cxx_post=
6646
 
  php_lo=lo
6647
 
 
6648
 
  case $with_pic in
6649
 
    yes) pic_setting='-prefer-pic';;
6650
 
    no)  pic_setting='-prefer-non-pic';;
6651
 
  esac
6652
 
 
6653
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6654
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6655
 
  shared_c_post=
6656
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6657
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6658
 
  shared_cxx_post=
6659
 
  shared_lo=lo
6660
 
 
6661
 
  php_build_target=program
6662
 
 
6663
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
6664
 
  php_build_target=static
6665
 
;;
6666
 
  shared) 
6667
 
  
6668
 
  OVERALL_TARGET=php
6669
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6670
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6671
 
  php_c_post=
6672
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6673
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6674
 
  php_cxx_post=
6675
 
  php_lo=lo
6676
 
 
6677
 
  case $with_pic in
6678
 
    yes) pic_setting='-prefer-pic';;
6679
 
    no)  pic_setting='-prefer-non-pic';;
6680
 
  esac
6681
 
 
6682
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6683
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6684
 
  shared_c_post=
6685
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6686
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6687
 
  shared_cxx_post=
6688
 
  shared_lo=lo
6689
 
 
6690
 
  php_build_target=program
6691
 
 
6692
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
6693
 
  php_build_target=shared
6694
 
  
6695
 
  php_c_pre=$shared_c_pre
6696
 
  php_c_meta=$shared_c_meta
6697
 
  php_c_post=$shared_c_post
6698
 
  php_cxx_pre=$shared_cxx_pre
6699
 
  php_cxx_meta=$shared_cxx_meta
6700
 
  php_cxx_post=$shared_cxx_post
6701
 
  php_lo=$shared_lo
6702
 
;;
6703
 
  bundle) 
6704
 
  
6705
 
  OVERALL_TARGET=php
6706
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6707
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6708
 
  php_c_post=
6709
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6710
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6711
 
  php_cxx_post=
6712
 
  php_lo=lo
6713
 
 
6714
 
  case $with_pic in
6715
 
    yes) pic_setting='-prefer-pic';;
6716
 
    no)  pic_setting='-prefer-non-pic';;
6717
 
  esac
6718
 
 
6719
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6720
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6721
 
  shared_c_post=
6722
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6723
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6724
 
  shared_cxx_post=
6725
 
  shared_lo=lo
6726
 
 
6727
 
  php_build_target=program
6728
 
 
6729
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
6730
 
  php_build_target=static
6731
 
;;
6732
 
  program) 
6733
 
  OVERALL_TARGET=php
6734
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6735
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6736
 
  php_c_post=
6737
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6738
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6739
 
  php_cxx_post=
6740
 
  php_lo=lo
6741
 
 
6742
 
  case $with_pic in
6743
 
    yes) pic_setting='-prefer-pic';;
6744
 
    no)  pic_setting='-prefer-non-pic';;
6745
 
  esac
6746
 
 
6747
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6748
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6749
 
  shared_c_post=
6750
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6751
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6752
 
  shared_cxx_post=
6753
 
  shared_lo=lo
6754
 
 
6755
 
  php_build_target=program
6756
 
;;
6757
 
  esac
6758
 
    
6759
 
  
6760
 
  
6761
 
  case sapi/aolserver in
6762
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
6763
 
  /*) ac_srcdir=`echo "sapi/aolserver"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
6764
 
  *) ac_srcdir="$abs_srcdir/sapi/aolserver/"; ac_bdir="sapi/aolserver/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
6765
 
  esac
6766
 
  
6767
 
  
6768
 
 
6769
 
  b_c_pre=$php_c_pre
6770
 
  b_cxx_pre=$php_cxx_pre
6771
 
  b_c_meta=$php_c_meta
6772
 
  b_cxx_meta=$php_cxx_meta
6773
 
  b_c_post=$php_c_post
6774
 
  b_cxx_post=$php_cxx_post
6775
 
  b_lo=$php_lo
6776
 
 
6777
 
 
6778
 
  old_IFS=$IFS
6779
 
  for ac_src in aolserver.c; do
6780
 
  
6781
 
      IFS=.
6782
 
      set $ac_src
6783
 
      ac_obj=$1
6784
 
      IFS=$old_IFS
6785
 
      
6786
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
6787
 
 
6788
 
      case $ac_src in
6789
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6790
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6791
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
6792
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
6793
 
      esac
6794
 
 
6795
 
    cat >>Makefile.objects<<EOF
6796
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6797
 
        $ac_comp
6798
 
EOF
6799
 
  done
6800
 
 
6801
 
 
6802
 
 
6803
 
  INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_AOLSERVER/bin/"
6804
 
fi
6805
 
 
6806
 
{ $as_echo "$as_me:$LINENO: result: $PHP_AOLSERVER" >&5
6807
 
$as_echo "$PHP_AOLSERVER" >&6; }
6808
 
 
6809
 
 
6810
 
 
6811
 
 
6812
 
php_with_apxs2filter=no
6813
 
 
6814
 
 
6815
 
 
6816
 
@%:@ Check whether --with-apxs2filter was given.
6817
 
if test "${with_apxs2filter+set}" = set; then
6818
 
  withval=$with_apxs2filter; PHP_APXS2FILTER=$withval
6819
 
else
6820
 
  
6821
 
  PHP_APXS2FILTER=no
6822
 
  
6823
 
 
6824
 
fi
6825
 
 
6826
 
 
6827
 
ext_output=$PHP_APXS2FILTER
6828
 
 
6829
 
 
6830
 
 
6831
 
 
6832
 
 
6833
 
{ $as_echo "$as_me:$LINENO: checking for Apache 2.0 filter-module support via DSO through APXS" >&5
6834
 
$as_echo_n "checking for Apache 2.0 filter-module support via DSO through APXS... " >&6; }
6835
 
 
6836
 
if test "$PHP_APXS2FILTER" != "no"; then
6837
 
  if test "$PHP_APXS2FILTER" = "yes"; then
6838
 
    APXS=apxs
6839
 
    $APXS -q CFLAGS >/dev/null 2>&1
6840
 
    if test "$?" != "0" && test -x /usr/sbin/apxs; then
6841
 
      APXS=/usr/sbin/apxs
6842
 
    fi
6843
 
  else
6844
 
    
6845
 
  if test -z "$PHP_APXS2FILTER" || echo "$PHP_APXS2FILTER" | grep '^/' >/dev/null ; then
6846
 
    APXS=$PHP_APXS2FILTER
6847
 
  else
6848
 
    
6849
 
    ep_dir="`echo $PHP_APXS2FILTER|$SED 's%/*[^/][^/]*/*$%%'`"
6850
 
    
6851
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
6852
 
    APXS="$ep_realdir/`basename \"$PHP_APXS2FILTER\"`"
6853
 
  fi
6854
 
 
6855
 
  fi
6856
 
 
6857
 
  $APXS -q CFLAGS >/dev/null 2>&1
6858
 
  if test "$?" != "0"; then
6859
 
    { $as_echo "$as_me:$LINENO: result: " >&5
6860
 
$as_echo "" >&6; }
6861
 
    { $as_echo "$as_me:$LINENO: result: " >&5
6862
 
$as_echo "" >&6; }
6863
 
    { $as_echo "$as_me:$LINENO: result: Sorry, I cannot run apxs.  Possible reasons follow:" >&5
6864
 
$as_echo "Sorry, I cannot run apxs.  Possible reasons follow:" >&6; } 
6865
 
    { $as_echo "$as_me:$LINENO: result: " >&5
6866
 
$as_echo "" >&6; }
6867
 
    { $as_echo "$as_me:$LINENO: result: 1. Perl is not installed" >&5
6868
 
$as_echo "1. Perl is not installed" >&6; }
6869
 
    { $as_echo "$as_me:$LINENO: result: 2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&5
6870
 
$as_echo "2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&6; }
6871
 
    { $as_echo "$as_me:$LINENO: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
6872
 
$as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
6873
 
    { $as_echo "$as_me:$LINENO: result: " >&5
6874
 
$as_echo "" >&6; }
6875
 
    { $as_echo "$as_me:$LINENO: result: The output of $APXS follows:" >&5
6876
 
$as_echo "The output of $APXS follows:" >&6; }
6877
 
    $APXS -q CFLAGS
6878
 
    { { $as_echo "$as_me:$LINENO: error: Aborting" >&5
6879
 
$as_echo "$as_me: error: Aborting" >&2;}
6880
 
   { (exit 1); exit 1; }; }
6881
 
  fi 
6882
 
 
6883
 
  APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
6884
 
  APXS_BINDIR=`$APXS -q BINDIR`
6885
 
  APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
6886
 
  APXS_CFLAGS=`$APXS -q CFLAGS`
6887
 
  APXS_MPM=`$APXS -q MPM_NAME`
6888
 
  APU_BINDIR=`$APXS -q APU_BINDIR`
6889
 
  APR_BINDIR=`$APXS -q APR_BINDIR`
6890
 
 
6891
 
  # Pick up ap[ru]-N-config if using httpd >=2.1
6892
 
  APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
6893
 
    echo $APR_BINDIR/apr-config`
6894
 
  APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
6895
 
    echo $APU_BINDIR/apu-config`
6896
 
 
6897
 
  APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
6898
 
  APU_CFLAGS="`$APU_CONFIG --includes`"
6899
 
 
6900
 
  for flag in $APXS_CFLAGS; do
6901
 
    case $flag in
6902
 
    -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
6903
 
    esac
6904
 
  done
6905
 
 
6906
 
  APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
6907
 
 
6908
 
  # Test that we're trying to configure with apache 2.x
6909
 
  
6910
 
  ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
6911
 
  ac_IFS=$IFS
6912
 
IFS="- /.
6913
 
"
6914
 
  set $ac_output
6915
 
  IFS=$ac_IFS
6916
 
 
6917
 
  APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
6918
 
 
6919
 
  if test "$APACHE_VERSION" -le 2000000; then
6920
 
    { { $as_echo "$as_me:$LINENO: error: You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropiate switch --with-apxs (without the 2)" >&5
6921
 
$as_echo "$as_me: error: You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropiate switch --with-apxs (without the 2)" >&2;}
6922
 
   { (exit 1); exit 1; }; }
6923
 
  elif test "$APACHE_VERSION" -lt 2000040; then
6924
 
    { { $as_echo "$as_me:$LINENO: error: Please note that Apache version >= 2.0.40 is required" >&5
6925
 
$as_echo "$as_me: error: Please note that Apache version >= 2.0.40 is required" >&2;}
6926
 
   { (exit 1); exit 1; }; }
6927
 
  fi
6928
 
 
6929
 
  APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
6930
 
  if test -z `$APXS -q SYSCONFDIR`; then
6931
 
    INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
6932
 
                 $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
6933
 
                       -i -n php5"
6934
 
  else
6935
 
    APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
6936
 
    INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
6937
 
                \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
6938
 
                 $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
6939
 
                       -S SYSCONFDIR='$APXS_SYSCONFDIR' \
6940
 
                       -i -a -n php5"
6941
 
  fi
6942
 
 
6943
 
  case $host_alias in
6944
 
  *aix*)
6945
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
6946
 
    
6947
 
  if test "$PHP_SAPI" != "default"; then
6948
 
{ { $as_echo "$as_me:$LINENO: error: 
6949
 
+--------------------------------------------------------------------+
6950
 
|                        *** ATTENTION ***                           |
6951
 
|                                                                    |
6952
 
| You've configured multiple SAPIs to be build. You can build only   |
6953
 
| one SAPI module and CLI binary at the same time.                   |
6954
 
+--------------------------------------------------------------------+
6955
 
" >&5
6956
 
$as_echo "$as_me: error: 
6957
 
+--------------------------------------------------------------------+
6958
 
|                        *** ATTENTION ***                           |
6959
 
|                                                                    |
6960
 
| You've configured multiple SAPIs to be build. You can build only   |
6961
 
| one SAPI module and CLI binary at the same time.                   |
6962
 
+--------------------------------------------------------------------+
6963
 
" >&2;}
6964
 
   { (exit 1); exit 1; }; }
6965
 
  fi
6966
 
 
6967
 
  PHP_SAPI=apache2filter
6968
 
  
6969
 
  case "shared" in
6970
 
  static) 
6971
 
  
6972
 
  OVERALL_TARGET=php
6973
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6974
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6975
 
  php_c_post=
6976
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6977
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6978
 
  php_cxx_post=
6979
 
  php_lo=lo
6980
 
 
6981
 
  case $with_pic in
6982
 
    yes) pic_setting='-prefer-pic';;
6983
 
    no)  pic_setting='-prefer-non-pic';;
6984
 
  esac
6985
 
 
6986
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6987
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6988
 
  shared_c_post=
6989
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6990
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6991
 
  shared_cxx_post=
6992
 
  shared_lo=lo
6993
 
 
6994
 
  php_build_target=program
6995
 
 
6996
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
6997
 
  php_build_target=static
6998
 
;;
6999
 
  shared) 
7000
 
  
7001
 
  OVERALL_TARGET=php
7002
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7003
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7004
 
  php_c_post=
7005
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7006
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7007
 
  php_cxx_post=
7008
 
  php_lo=lo
7009
 
 
7010
 
  case $with_pic in
7011
 
    yes) pic_setting='-prefer-pic';;
7012
 
    no)  pic_setting='-prefer-non-pic';;
7013
 
  esac
7014
 
 
7015
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7016
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7017
 
  shared_c_post=
7018
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7019
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7020
 
  shared_cxx_post=
7021
 
  shared_lo=lo
7022
 
 
7023
 
  php_build_target=program
7024
 
 
7025
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7026
 
  php_build_target=shared
7027
 
  
7028
 
  php_c_pre=$shared_c_pre
7029
 
  php_c_meta=$shared_c_meta
7030
 
  php_c_post=$shared_c_post
7031
 
  php_cxx_pre=$shared_cxx_pre
7032
 
  php_cxx_meta=$shared_cxx_meta
7033
 
  php_cxx_post=$shared_cxx_post
7034
 
  php_lo=$shared_lo
7035
 
;;
7036
 
  bundle) 
7037
 
  
7038
 
  OVERALL_TARGET=php
7039
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7040
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7041
 
  php_c_post=
7042
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7043
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7044
 
  php_cxx_post=
7045
 
  php_lo=lo
7046
 
 
7047
 
  case $with_pic in
7048
 
    yes) pic_setting='-prefer-pic';;
7049
 
    no)  pic_setting='-prefer-non-pic';;
7050
 
  esac
7051
 
 
7052
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7053
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7054
 
  shared_c_post=
7055
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7056
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7057
 
  shared_cxx_post=
7058
 
  shared_lo=lo
7059
 
 
7060
 
  php_build_target=program
7061
 
 
7062
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
7063
 
  php_build_target=static
7064
 
;;
7065
 
  program) 
7066
 
  OVERALL_TARGET=php
7067
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7068
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7069
 
  php_c_post=
7070
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7071
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7072
 
  php_cxx_post=
7073
 
  php_lo=lo
7074
 
 
7075
 
  case $with_pic in
7076
 
    yes) pic_setting='-prefer-pic';;
7077
 
    no)  pic_setting='-prefer-non-pic';;
7078
 
  esac
7079
 
 
7080
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7081
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7082
 
  shared_c_post=
7083
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7084
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7085
 
  shared_cxx_post=
7086
 
  shared_lo=lo
7087
 
 
7088
 
  php_build_target=program
7089
 
;;
7090
 
  esac
7091
 
    
7092
 
  
7093
 
  
7094
 
  case sapi/apache2filter in
7095
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7096
 
  /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7097
 
  *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7098
 
  esac
7099
 
  
7100
 
  
7101
 
 
7102
 
  b_c_pre=$php_c_pre
7103
 
  b_cxx_pre=$php_cxx_pre
7104
 
  b_c_meta=$php_c_meta
7105
 
  b_cxx_meta=$php_cxx_meta
7106
 
  b_c_post=$php_c_post
7107
 
  b_cxx_post=$php_cxx_post
7108
 
  b_lo=$php_lo
7109
 
 
7110
 
 
7111
 
  old_IFS=$IFS
7112
 
  for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
7113
 
  
7114
 
      IFS=.
7115
 
      set $ac_src
7116
 
      ac_obj=$1
7117
 
      IFS=$old_IFS
7118
 
      
7119
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7120
 
 
7121
 
      case $ac_src in
7122
 
        *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7123
 
        *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7124
 
        *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7125
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
7126
 
      esac
7127
 
 
7128
 
    cat >>Makefile.objects<<EOF
7129
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7130
 
        $ac_comp
7131
 
EOF
7132
 
  done
7133
 
 
7134
 
 
7135
 
 
7136
 
    INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL" 
7137
 
    ;;
7138
 
  *darwin*)
7139
 
                    if test -x "$APR_CONFIG"; then
7140
 
        MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
7141
 
    fi
7142
 
    if test -x "$APU_CONFIG"; then
7143
 
        MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
7144
 
    fi
7145
 
    MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
7146
 
    
7147
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
7148
 
 
7149
 
    
7150
 
  if test "$PHP_SAPI" != "default"; then
7151
 
{ { $as_echo "$as_me:$LINENO: error: 
7152
 
+--------------------------------------------------------------------+
7153
 
|                        *** ATTENTION ***                           |
7154
 
|                                                                    |
7155
 
| You've configured multiple SAPIs to be build. You can build only   |
7156
 
| one SAPI module and CLI binary at the same time.                   |
7157
 
+--------------------------------------------------------------------+
7158
 
" >&5
7159
 
$as_echo "$as_me: error: 
7160
 
+--------------------------------------------------------------------+
7161
 
|                        *** ATTENTION ***                           |
7162
 
|                                                                    |
7163
 
| You've configured multiple SAPIs to be build. You can build only   |
7164
 
| one SAPI module and CLI binary at the same time.                   |
7165
 
+--------------------------------------------------------------------+
7166
 
" >&2;}
7167
 
   { (exit 1); exit 1; }; }
7168
 
  fi
7169
 
 
7170
 
  PHP_SAPI=apache2filter
7171
 
  
7172
 
  case "bundle" in
7173
 
  static) 
7174
 
  
7175
 
  OVERALL_TARGET=php
7176
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7177
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7178
 
  php_c_post=
7179
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7180
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7181
 
  php_cxx_post=
7182
 
  php_lo=lo
7183
 
 
7184
 
  case $with_pic in
7185
 
    yes) pic_setting='-prefer-pic';;
7186
 
    no)  pic_setting='-prefer-non-pic';;
7187
 
  esac
7188
 
 
7189
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7190
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7191
 
  shared_c_post=
7192
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7193
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7194
 
  shared_cxx_post=
7195
 
  shared_lo=lo
7196
 
 
7197
 
  php_build_target=program
7198
 
 
7199
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7200
 
  php_build_target=static
7201
 
;;
7202
 
  shared) 
7203
 
  
7204
 
  OVERALL_TARGET=php
7205
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7206
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7207
 
  php_c_post=
7208
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7209
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7210
 
  php_cxx_post=
7211
 
  php_lo=lo
7212
 
 
7213
 
  case $with_pic in
7214
 
    yes) pic_setting='-prefer-pic';;
7215
 
    no)  pic_setting='-prefer-non-pic';;
7216
 
  esac
7217
 
 
7218
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7219
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7220
 
  shared_c_post=
7221
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7222
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7223
 
  shared_cxx_post=
7224
 
  shared_lo=lo
7225
 
 
7226
 
  php_build_target=program
7227
 
 
7228
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7229
 
  php_build_target=shared
7230
 
  
7231
 
  php_c_pre=$shared_c_pre
7232
 
  php_c_meta=$shared_c_meta
7233
 
  php_c_post=$shared_c_post
7234
 
  php_cxx_pre=$shared_cxx_pre
7235
 
  php_cxx_meta=$shared_cxx_meta
7236
 
  php_cxx_post=$shared_cxx_post
7237
 
  php_lo=$shared_lo
7238
 
;;
7239
 
  bundle) 
7240
 
  
7241
 
  OVERALL_TARGET=php
7242
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7243
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7244
 
  php_c_post=
7245
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7246
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7247
 
  php_cxx_post=
7248
 
  php_lo=lo
7249
 
 
7250
 
  case $with_pic in
7251
 
    yes) pic_setting='-prefer-pic';;
7252
 
    no)  pic_setting='-prefer-non-pic';;
7253
 
  esac
7254
 
 
7255
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7256
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7257
 
  shared_c_post=
7258
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7259
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7260
 
  shared_cxx_post=
7261
 
  shared_lo=lo
7262
 
 
7263
 
  php_build_target=program
7264
 
 
7265
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
7266
 
  php_build_target=static
7267
 
;;
7268
 
  program) 
7269
 
  OVERALL_TARGET=php
7270
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7271
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7272
 
  php_c_post=
7273
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7274
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7275
 
  php_cxx_post=
7276
 
  php_lo=lo
7277
 
 
7278
 
  case $with_pic in
7279
 
    yes) pic_setting='-prefer-pic';;
7280
 
    no)  pic_setting='-prefer-non-pic';;
7281
 
  esac
7282
 
 
7283
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7284
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7285
 
  shared_c_post=
7286
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7287
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7288
 
  shared_cxx_post=
7289
 
  shared_lo=lo
7290
 
 
7291
 
  php_build_target=program
7292
 
;;
7293
 
  esac
7294
 
    
7295
 
  
7296
 
  
7297
 
  case sapi/apache2filter in
7298
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7299
 
  /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7300
 
  *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7301
 
  esac
7302
 
  
7303
 
  
7304
 
 
7305
 
  b_c_pre=$php_c_pre
7306
 
  b_cxx_pre=$php_cxx_pre
7307
 
  b_c_meta=$php_c_meta
7308
 
  b_cxx_meta=$php_cxx_meta
7309
 
  b_c_post=$php_c_post
7310
 
  b_cxx_post=$php_cxx_post
7311
 
  b_lo=$php_lo
7312
 
 
7313
 
 
7314
 
  old_IFS=$IFS
7315
 
  for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
7316
 
  
7317
 
      IFS=.
7318
 
      set $ac_src
7319
 
      ac_obj=$1
7320
 
      IFS=$old_IFS
7321
 
      
7322
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7323
 
 
7324
 
      case $ac_src in
7325
 
        *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7326
 
        *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7327
 
        *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7328
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
7329
 
      esac
7330
 
 
7331
 
    cat >>Makefile.objects<<EOF
7332
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7333
 
        $ac_comp
7334
 
EOF
7335
 
  done
7336
 
 
7337
 
 
7338
 
 
7339
 
    SAPI_SHARED=libs/libphp5.so
7340
 
    INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
7341
 
    ;;
7342
 
  *beos*)
7343
 
    if test -f _APP_; then `rm _APP_`; fi
7344
 
    `ln -s $APXS_BINDIR/httpd _APP_`
7345
 
    EXTRA_LIBS="$EXTRA_LIBS _APP_"
7346
 
    
7347
 
  if test "$PHP_SAPI" != "default"; then
7348
 
{ { $as_echo "$as_me:$LINENO: error: 
7349
 
+--------------------------------------------------------------------+
7350
 
|                        *** ATTENTION ***                           |
7351
 
|                                                                    |
7352
 
| You've configured multiple SAPIs to be build. You can build only   |
7353
 
| one SAPI module and CLI binary at the same time.                   |
7354
 
+--------------------------------------------------------------------+
7355
 
" >&5
7356
 
$as_echo "$as_me: error: 
7357
 
+--------------------------------------------------------------------+
7358
 
|                        *** ATTENTION ***                           |
7359
 
|                                                                    |
7360
 
| You've configured multiple SAPIs to be build. You can build only   |
7361
 
| one SAPI module and CLI binary at the same time.                   |
7362
 
+--------------------------------------------------------------------+
7363
 
" >&2;}
7364
 
   { (exit 1); exit 1; }; }
7365
 
  fi
7366
 
 
7367
 
  PHP_SAPI=apache2filter
7368
 
  
7369
 
  case "shared" in
7370
 
  static) 
7371
 
  
7372
 
  OVERALL_TARGET=php
7373
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7374
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7375
 
  php_c_post=
7376
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7377
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7378
 
  php_cxx_post=
7379
 
  php_lo=lo
7380
 
 
7381
 
  case $with_pic in
7382
 
    yes) pic_setting='-prefer-pic';;
7383
 
    no)  pic_setting='-prefer-non-pic';;
7384
 
  esac
7385
 
 
7386
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7387
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7388
 
  shared_c_post=
7389
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7390
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7391
 
  shared_cxx_post=
7392
 
  shared_lo=lo
7393
 
 
7394
 
  php_build_target=program
7395
 
 
7396
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7397
 
  php_build_target=static
7398
 
;;
7399
 
  shared) 
7400
 
  
7401
 
  OVERALL_TARGET=php
7402
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7403
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7404
 
  php_c_post=
7405
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7406
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7407
 
  php_cxx_post=
7408
 
  php_lo=lo
7409
 
 
7410
 
  case $with_pic in
7411
 
    yes) pic_setting='-prefer-pic';;
7412
 
    no)  pic_setting='-prefer-non-pic';;
7413
 
  esac
7414
 
 
7415
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7416
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7417
 
  shared_c_post=
7418
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7419
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7420
 
  shared_cxx_post=
7421
 
  shared_lo=lo
7422
 
 
7423
 
  php_build_target=program
7424
 
 
7425
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7426
 
  php_build_target=shared
7427
 
  
7428
 
  php_c_pre=$shared_c_pre
7429
 
  php_c_meta=$shared_c_meta
7430
 
  php_c_post=$shared_c_post
7431
 
  php_cxx_pre=$shared_cxx_pre
7432
 
  php_cxx_meta=$shared_cxx_meta
7433
 
  php_cxx_post=$shared_cxx_post
7434
 
  php_lo=$shared_lo
7435
 
;;
7436
 
  bundle) 
7437
 
  
7438
 
  OVERALL_TARGET=php
7439
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7440
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7441
 
  php_c_post=
7442
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7443
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7444
 
  php_cxx_post=
7445
 
  php_lo=lo
7446
 
 
7447
 
  case $with_pic in
7448
 
    yes) pic_setting='-prefer-pic';;
7449
 
    no)  pic_setting='-prefer-non-pic';;
7450
 
  esac
7451
 
 
7452
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7453
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7454
 
  shared_c_post=
7455
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7456
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7457
 
  shared_cxx_post=
7458
 
  shared_lo=lo
7459
 
 
7460
 
  php_build_target=program
7461
 
 
7462
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
7463
 
  php_build_target=static
7464
 
;;
7465
 
  program) 
7466
 
  OVERALL_TARGET=php
7467
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7468
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7469
 
  php_c_post=
7470
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7471
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7472
 
  php_cxx_post=
7473
 
  php_lo=lo
7474
 
 
7475
 
  case $with_pic in
7476
 
    yes) pic_setting='-prefer-pic';;
7477
 
    no)  pic_setting='-prefer-non-pic';;
7478
 
  esac
7479
 
 
7480
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7481
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7482
 
  shared_c_post=
7483
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7484
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7485
 
  shared_cxx_post=
7486
 
  shared_lo=lo
7487
 
 
7488
 
  php_build_target=program
7489
 
;;
7490
 
  esac
7491
 
    
7492
 
  
7493
 
  
7494
 
  case sapi/apache2filter in
7495
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7496
 
  /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7497
 
  *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7498
 
  esac
7499
 
  
7500
 
  
7501
 
 
7502
 
  b_c_pre=$php_c_pre
7503
 
  b_cxx_pre=$php_cxx_pre
7504
 
  b_c_meta=$php_c_meta
7505
 
  b_cxx_meta=$php_cxx_meta
7506
 
  b_c_post=$php_c_post
7507
 
  b_cxx_post=$php_cxx_post
7508
 
  b_lo=$php_lo
7509
 
 
7510
 
 
7511
 
  old_IFS=$IFS
7512
 
  for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
7513
 
  
7514
 
      IFS=.
7515
 
      set $ac_src
7516
 
      ac_obj=$1
7517
 
      IFS=$old_IFS
7518
 
      
7519
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7520
 
 
7521
 
      case $ac_src in
7522
 
        *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7523
 
        *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7524
 
        *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7525
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
7526
 
      esac
7527
 
 
7528
 
    cat >>Makefile.objects<<EOF
7529
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7530
 
        $ac_comp
7531
 
EOF
7532
 
  done
7533
 
 
7534
 
 
7535
 
 
7536
 
    INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
7537
 
    ;;
7538
 
  *)
7539
 
    
7540
 
  if test "$PHP_SAPI" != "default"; then
7541
 
{ { $as_echo "$as_me:$LINENO: error: 
7542
 
+--------------------------------------------------------------------+
7543
 
|                        *** ATTENTION ***                           |
7544
 
|                                                                    |
7545
 
| You've configured multiple SAPIs to be build. You can build only   |
7546
 
| one SAPI module and CLI binary at the same time.                   |
7547
 
+--------------------------------------------------------------------+
7548
 
" >&5
7549
 
$as_echo "$as_me: error: 
7550
 
+--------------------------------------------------------------------+
7551
 
|                        *** ATTENTION ***                           |
7552
 
|                                                                    |
7553
 
| You've configured multiple SAPIs to be build. You can build only   |
7554
 
| one SAPI module and CLI binary at the same time.                   |
7555
 
+--------------------------------------------------------------------+
7556
 
" >&2;}
7557
 
   { (exit 1); exit 1; }; }
7558
 
  fi
7559
 
 
7560
 
  PHP_SAPI=apache2filter
7561
 
  
7562
 
  case "shared" in
7563
 
  static) 
7564
 
  
7565
 
  OVERALL_TARGET=php
7566
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7567
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7568
 
  php_c_post=
7569
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7570
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7571
 
  php_cxx_post=
7572
 
  php_lo=lo
7573
 
 
7574
 
  case $with_pic in
7575
 
    yes) pic_setting='-prefer-pic';;
7576
 
    no)  pic_setting='-prefer-non-pic';;
7577
 
  esac
7578
 
 
7579
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7580
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7581
 
  shared_c_post=
7582
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7583
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7584
 
  shared_cxx_post=
7585
 
  shared_lo=lo
7586
 
 
7587
 
  php_build_target=program
7588
 
 
7589
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7590
 
  php_build_target=static
7591
 
;;
7592
 
  shared) 
7593
 
  
7594
 
  OVERALL_TARGET=php
7595
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7596
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7597
 
  php_c_post=
7598
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7599
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7600
 
  php_cxx_post=
7601
 
  php_lo=lo
7602
 
 
7603
 
  case $with_pic in
7604
 
    yes) pic_setting='-prefer-pic';;
7605
 
    no)  pic_setting='-prefer-non-pic';;
7606
 
  esac
7607
 
 
7608
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7609
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7610
 
  shared_c_post=
7611
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7612
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7613
 
  shared_cxx_post=
7614
 
  shared_lo=lo
7615
 
 
7616
 
  php_build_target=program
7617
 
 
7618
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7619
 
  php_build_target=shared
7620
 
  
7621
 
  php_c_pre=$shared_c_pre
7622
 
  php_c_meta=$shared_c_meta
7623
 
  php_c_post=$shared_c_post
7624
 
  php_cxx_pre=$shared_cxx_pre
7625
 
  php_cxx_meta=$shared_cxx_meta
7626
 
  php_cxx_post=$shared_cxx_post
7627
 
  php_lo=$shared_lo
7628
 
;;
7629
 
  bundle) 
7630
 
  
7631
 
  OVERALL_TARGET=php
7632
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7633
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7634
 
  php_c_post=
7635
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7636
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7637
 
  php_cxx_post=
7638
 
  php_lo=lo
7639
 
 
7640
 
  case $with_pic in
7641
 
    yes) pic_setting='-prefer-pic';;
7642
 
    no)  pic_setting='-prefer-non-pic';;
7643
 
  esac
7644
 
 
7645
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7646
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7647
 
  shared_c_post=
7648
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7649
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7650
 
  shared_cxx_post=
7651
 
  shared_lo=lo
7652
 
 
7653
 
  php_build_target=program
7654
 
 
7655
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
7656
 
  php_build_target=static
7657
 
;;
7658
 
  program) 
7659
 
  OVERALL_TARGET=php
7660
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7661
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7662
 
  php_c_post=
7663
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7664
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7665
 
  php_cxx_post=
7666
 
  php_lo=lo
7667
 
 
7668
 
  case $with_pic in
7669
 
    yes) pic_setting='-prefer-pic';;
7670
 
    no)  pic_setting='-prefer-non-pic';;
7671
 
  esac
7672
 
 
7673
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7674
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7675
 
  shared_c_post=
7676
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7677
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7678
 
  shared_cxx_post=
7679
 
  shared_lo=lo
7680
 
 
7681
 
  php_build_target=program
7682
 
;;
7683
 
  esac
7684
 
    
7685
 
  
7686
 
  
7687
 
  case sapi/apache2filter in
7688
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7689
 
  /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7690
 
  *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7691
 
  esac
7692
 
  
7693
 
  
7694
 
 
7695
 
  b_c_pre=$php_c_pre
7696
 
  b_cxx_pre=$php_cxx_pre
7697
 
  b_c_meta=$php_c_meta
7698
 
  b_cxx_meta=$php_cxx_meta
7699
 
  b_c_post=$php_c_post
7700
 
  b_cxx_post=$php_cxx_post
7701
 
  b_lo=$php_lo
7702
 
 
7703
 
 
7704
 
  old_IFS=$IFS
7705
 
  for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
7706
 
  
7707
 
      IFS=.
7708
 
      set $ac_src
7709
 
      ac_obj=$1
7710
 
      IFS=$old_IFS
7711
 
      
7712
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7713
 
 
7714
 
      case $ac_src in
7715
 
        *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7716
 
        *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7717
 
        *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
7718
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
7719
 
      esac
7720
 
 
7721
 
    cat >>Makefile.objects<<EOF
7722
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7723
 
        $ac_comp
7724
 
EOF
7725
 
  done
7726
 
 
7727
 
 
7728
 
 
7729
 
    INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
7730
 
    ;;
7731
 
  esac
7732
 
 
7733
 
  if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser"; then
7734
 
    
7735
 
  enable_maintainer_zts=yes
7736
 
  if test "$pthreads_working" != "yes"; then
7737
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
7738
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
7739
 
   { (exit 1); exit 1; }; }
7740
 
  fi
7741
 
 
7742
 
  fi
7743
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
7744
 
$as_echo "yes" >&6; }
7745
 
  
7746
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
7747
 
 
7748
 
else
7749
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7750
 
$as_echo "no" >&6; }
7751
 
fi
7752
 
 
7753
 
 
7754
 
 
7755
 
 
7756
 
php_with_apxs2=no
7757
 
 
7758
 
 
7759
 
 
7760
 
@%:@ Check whether --with-apxs2 was given.
7761
 
if test "${with_apxs2+set}" = set; then
7762
 
  withval=$with_apxs2; PHP_APXS2=$withval
7763
 
else
7764
 
  
7765
 
  PHP_APXS2=no
7766
 
  
7767
 
 
7768
 
fi
7769
 
 
7770
 
 
7771
 
ext_output=$PHP_APXS2
7772
 
 
7773
 
 
7774
 
 
7775
 
 
7776
 
 
7777
 
{ $as_echo "$as_me:$LINENO: checking for Apache 2.0 handler-module support via DSO through APXS" >&5
7778
 
$as_echo_n "checking for Apache 2.0 handler-module support via DSO through APXS... " >&6; }
7779
 
 
7780
 
if test "$PHP_APXS2" != "no"; then
7781
 
  if test "$PHP_APXS2" = "yes"; then
7782
 
    APXS=apxs
7783
 
    $APXS -q CFLAGS >/dev/null 2>&1
7784
 
    if test "$?" != "0" && test -x /usr/sbin/apxs; then
7785
 
      APXS=/usr/sbin/apxs
7786
 
    fi
7787
 
  else
7788
 
    
7789
 
  if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then
7790
 
    APXS=$PHP_APXS2
7791
 
  else
7792
 
    
7793
 
    ep_dir="`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'`"
7794
 
    
7795
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
7796
 
    APXS="$ep_realdir/`basename \"$PHP_APXS2\"`"
7797
 
  fi
7798
 
 
7799
 
  fi
7800
 
 
7801
 
  $APXS -q CFLAGS >/dev/null 2>&1
7802
 
  if test "$?" != "0"; then
7803
 
    { $as_echo "$as_me:$LINENO: result: " >&5
7804
 
$as_echo "" >&6; }
7805
 
    { $as_echo "$as_me:$LINENO: result: " >&5
7806
 
$as_echo "" >&6; }
7807
 
    { $as_echo "$as_me:$LINENO: result: Sorry, I cannot run apxs.  Possible reasons follow:" >&5
7808
 
$as_echo "Sorry, I cannot run apxs.  Possible reasons follow:" >&6; } 
7809
 
    { $as_echo "$as_me:$LINENO: result: " >&5
7810
 
$as_echo "" >&6; }
7811
 
    { $as_echo "$as_me:$LINENO: result: 1. Perl is not installed" >&5
7812
 
$as_echo "1. Perl is not installed" >&6; }
7813
 
    { $as_echo "$as_me:$LINENO: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5
7814
 
$as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; }
7815
 
    { $as_echo "$as_me:$LINENO: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
7816
 
$as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
7817
 
    { $as_echo "$as_me:$LINENO: result: " >&5
7818
 
$as_echo "" >&6; }
7819
 
    { $as_echo "$as_me:$LINENO: result: The output of $APXS follows:" >&5
7820
 
$as_echo "The output of $APXS follows:" >&6; }
7821
 
    $APXS -q CFLAGS
7822
 
    { { $as_echo "$as_me:$LINENO: error: Aborting" >&5
7823
 
$as_echo "$as_me: error: Aborting" >&2;}
7824
 
   { (exit 1); exit 1; }; }
7825
 
  fi 
7826
 
 
7827
 
  APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
7828
 
  APXS_BINDIR=`$APXS -q BINDIR`
7829
 
  APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
7830
 
  APXS_CFLAGS=`$APXS -q CFLAGS`
7831
 
  APXS_MPM=`$APXS -q MPM_NAME`
7832
 
  APU_BINDIR=`$APXS -q APU_BINDIR`
7833
 
  APR_BINDIR=`$APXS -q APR_BINDIR`
7834
 
 
7835
 
  # Pick up ap[ru]-N-config if using httpd >=2.1
7836
 
  APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
7837
 
    echo $APR_BINDIR/apr-config`
7838
 
  APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
7839
 
    echo $APU_BINDIR/apu-config`
7840
 
 
7841
 
  APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
7842
 
  APU_CFLAGS="`$APU_CONFIG --includes`"
7843
 
 
7844
 
  for flag in $APXS_CFLAGS; do
7845
 
    case $flag in
7846
 
    -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
7847
 
    esac
7848
 
  done
7849
 
 
7850
 
  APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
7851
 
 
7852
 
  # Test that we're trying to configure with apache 2.x
7853
 
  
7854
 
  ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
7855
 
  ac_IFS=$IFS
7856
 
IFS="- /.
7857
 
"
7858
 
  set $ac_output
7859
 
  IFS=$ac_IFS
7860
 
 
7861
 
  APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
7862
 
 
7863
 
  if test "$APACHE_VERSION" -le 2000000; then
7864
 
    { { $as_echo "$as_me:$LINENO: error: You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropiate switch --with-apxs (without the 2)" >&5
7865
 
$as_echo "$as_me: error: You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropiate switch --with-apxs (without the 2)" >&2;}
7866
 
   { (exit 1); exit 1; }; }
7867
 
  elif test "$APACHE_VERSION" -lt 2000044; then
7868
 
    { { $as_echo "$as_me:$LINENO: error: Please note that Apache version >= 2.0.44 is required" >&5
7869
 
$as_echo "$as_me: error: Please note that Apache version >= 2.0.44 is required" >&2;}
7870
 
   { (exit 1); exit 1; }; }
7871
 
  fi
7872
 
 
7873
 
  APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
7874
 
  if test -z `$APXS -q SYSCONFDIR`; then
7875
 
    INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
7876
 
                 $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
7877
 
                       -i -n php5"
7878
 
  else
7879
 
    APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
7880
 
    INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
7881
 
                \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
7882
 
                 $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
7883
 
                       -S SYSCONFDIR='$APXS_SYSCONFDIR' \
7884
 
                       -i -a -n php5"
7885
 
  fi
7886
 
 
7887
 
  case $host_alias in
7888
 
  *aix*)
7889
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
7890
 
    
7891
 
  if test "$PHP_SAPI" != "default"; then
7892
 
{ { $as_echo "$as_me:$LINENO: error: 
7893
 
+--------------------------------------------------------------------+
7894
 
|                        *** ATTENTION ***                           |
7895
 
|                                                                    |
7896
 
| You've configured multiple SAPIs to be build. You can build only   |
7897
 
| one SAPI module and CLI binary at the same time.                   |
7898
 
+--------------------------------------------------------------------+
7899
 
" >&5
7900
 
$as_echo "$as_me: error: 
7901
 
+--------------------------------------------------------------------+
7902
 
|                        *** ATTENTION ***                           |
7903
 
|                                                                    |
7904
 
| You've configured multiple SAPIs to be build. You can build only   |
7905
 
| one SAPI module and CLI binary at the same time.                   |
7906
 
+--------------------------------------------------------------------+
7907
 
" >&2;}
7908
 
   { (exit 1); exit 1; }; }
7909
 
  fi
7910
 
 
7911
 
  PHP_SAPI=apache2handler
7912
 
  
7913
 
  case "shared" in
7914
 
  static) 
7915
 
  
7916
 
  OVERALL_TARGET=php
7917
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7918
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7919
 
  php_c_post=
7920
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7921
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7922
 
  php_cxx_post=
7923
 
  php_lo=lo
7924
 
 
7925
 
  case $with_pic in
7926
 
    yes) pic_setting='-prefer-pic';;
7927
 
    no)  pic_setting='-prefer-non-pic';;
7928
 
  esac
7929
 
 
7930
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7931
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7932
 
  shared_c_post=
7933
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7934
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7935
 
  shared_cxx_post=
7936
 
  shared_lo=lo
7937
 
 
7938
 
  php_build_target=program
7939
 
 
7940
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7941
 
  php_build_target=static
7942
 
;;
7943
 
  shared) 
7944
 
  
7945
 
  OVERALL_TARGET=php
7946
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7947
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7948
 
  php_c_post=
7949
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7950
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7951
 
  php_cxx_post=
7952
 
  php_lo=lo
7953
 
 
7954
 
  case $with_pic in
7955
 
    yes) pic_setting='-prefer-pic';;
7956
 
    no)  pic_setting='-prefer-non-pic';;
7957
 
  esac
7958
 
 
7959
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7960
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7961
 
  shared_c_post=
7962
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7963
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7964
 
  shared_cxx_post=
7965
 
  shared_lo=lo
7966
 
 
7967
 
  php_build_target=program
7968
 
 
7969
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7970
 
  php_build_target=shared
7971
 
  
7972
 
  php_c_pre=$shared_c_pre
7973
 
  php_c_meta=$shared_c_meta
7974
 
  php_c_post=$shared_c_post
7975
 
  php_cxx_pre=$shared_cxx_pre
7976
 
  php_cxx_meta=$shared_cxx_meta
7977
 
  php_cxx_post=$shared_cxx_post
7978
 
  php_lo=$shared_lo
7979
 
;;
7980
 
  bundle) 
7981
 
  
7982
 
  OVERALL_TARGET=php
7983
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7984
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7985
 
  php_c_post=
7986
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7987
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7988
 
  php_cxx_post=
7989
 
  php_lo=lo
7990
 
 
7991
 
  case $with_pic in
7992
 
    yes) pic_setting='-prefer-pic';;
7993
 
    no)  pic_setting='-prefer-non-pic';;
7994
 
  esac
7995
 
 
7996
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7997
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7998
 
  shared_c_post=
7999
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8000
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8001
 
  shared_cxx_post=
8002
 
  shared_lo=lo
8003
 
 
8004
 
  php_build_target=program
8005
 
 
8006
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8007
 
  php_build_target=static
8008
 
;;
8009
 
  program) 
8010
 
  OVERALL_TARGET=php
8011
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8012
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8013
 
  php_c_post=
8014
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8015
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8016
 
  php_cxx_post=
8017
 
  php_lo=lo
8018
 
 
8019
 
  case $with_pic in
8020
 
    yes) pic_setting='-prefer-pic';;
8021
 
    no)  pic_setting='-prefer-non-pic';;
8022
 
  esac
8023
 
 
8024
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8025
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8026
 
  shared_c_post=
8027
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8028
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8029
 
  shared_cxx_post=
8030
 
  shared_lo=lo
8031
 
 
8032
 
  php_build_target=program
8033
 
;;
8034
 
  esac
8035
 
    
8036
 
  
8037
 
  
8038
 
  case sapi/apache2handler in
8039
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8040
 
  /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8041
 
  *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8042
 
  esac
8043
 
  
8044
 
  
8045
 
 
8046
 
  b_c_pre=$php_c_pre
8047
 
  b_cxx_pre=$php_cxx_pre
8048
 
  b_c_meta=$php_c_meta
8049
 
  b_cxx_meta=$php_cxx_meta
8050
 
  b_c_post=$php_c_post
8051
 
  b_cxx_post=$php_cxx_post
8052
 
  b_lo=$php_lo
8053
 
 
8054
 
 
8055
 
  old_IFS=$IFS
8056
 
  for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
8057
 
  
8058
 
      IFS=.
8059
 
      set $ac_src
8060
 
      ac_obj=$1
8061
 
      IFS=$old_IFS
8062
 
      
8063
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8064
 
 
8065
 
      case $ac_src in
8066
 
        *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8067
 
        *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8068
 
        *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8069
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
8070
 
      esac
8071
 
 
8072
 
    cat >>Makefile.objects<<EOF
8073
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8074
 
        $ac_comp
8075
 
EOF
8076
 
  done
8077
 
 
8078
 
 
8079
 
 
8080
 
    INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL" 
8081
 
    ;;
8082
 
  *darwin*)
8083
 
                    if test -x "$APR_CONFIG"; then
8084
 
        MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
8085
 
    fi
8086
 
    if test -x "$APU_CONFIG"; then
8087
 
        MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
8088
 
    fi
8089
 
    MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
8090
 
    
8091
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
8092
 
 
8093
 
    
8094
 
  if test "$PHP_SAPI" != "default"; then
8095
 
{ { $as_echo "$as_me:$LINENO: error: 
8096
 
+--------------------------------------------------------------------+
8097
 
|                        *** ATTENTION ***                           |
8098
 
|                                                                    |
8099
 
| You've configured multiple SAPIs to be build. You can build only   |
8100
 
| one SAPI module and CLI binary at the same time.                   |
8101
 
+--------------------------------------------------------------------+
8102
 
" >&5
8103
 
$as_echo "$as_me: error: 
8104
 
+--------------------------------------------------------------------+
8105
 
|                        *** ATTENTION ***                           |
8106
 
|                                                                    |
8107
 
| You've configured multiple SAPIs to be build. You can build only   |
8108
 
| one SAPI module and CLI binary at the same time.                   |
8109
 
+--------------------------------------------------------------------+
8110
 
" >&2;}
8111
 
   { (exit 1); exit 1; }; }
8112
 
  fi
8113
 
 
8114
 
  PHP_SAPI=apache2handler
8115
 
  
8116
 
  case "bundle" in
8117
 
  static) 
8118
 
  
8119
 
  OVERALL_TARGET=php
8120
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8121
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8122
 
  php_c_post=
8123
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8124
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8125
 
  php_cxx_post=
8126
 
  php_lo=lo
8127
 
 
8128
 
  case $with_pic in
8129
 
    yes) pic_setting='-prefer-pic';;
8130
 
    no)  pic_setting='-prefer-non-pic';;
8131
 
  esac
8132
 
 
8133
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8134
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8135
 
  shared_c_post=
8136
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8137
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8138
 
  shared_cxx_post=
8139
 
  shared_lo=lo
8140
 
 
8141
 
  php_build_target=program
8142
 
 
8143
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8144
 
  php_build_target=static
8145
 
;;
8146
 
  shared) 
8147
 
  
8148
 
  OVERALL_TARGET=php
8149
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8150
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8151
 
  php_c_post=
8152
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8153
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8154
 
  php_cxx_post=
8155
 
  php_lo=lo
8156
 
 
8157
 
  case $with_pic in
8158
 
    yes) pic_setting='-prefer-pic';;
8159
 
    no)  pic_setting='-prefer-non-pic';;
8160
 
  esac
8161
 
 
8162
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8163
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8164
 
  shared_c_post=
8165
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8166
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8167
 
  shared_cxx_post=
8168
 
  shared_lo=lo
8169
 
 
8170
 
  php_build_target=program
8171
 
 
8172
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8173
 
  php_build_target=shared
8174
 
  
8175
 
  php_c_pre=$shared_c_pre
8176
 
  php_c_meta=$shared_c_meta
8177
 
  php_c_post=$shared_c_post
8178
 
  php_cxx_pre=$shared_cxx_pre
8179
 
  php_cxx_meta=$shared_cxx_meta
8180
 
  php_cxx_post=$shared_cxx_post
8181
 
  php_lo=$shared_lo
8182
 
;;
8183
 
  bundle) 
8184
 
  
8185
 
  OVERALL_TARGET=php
8186
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8187
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8188
 
  php_c_post=
8189
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8190
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8191
 
  php_cxx_post=
8192
 
  php_lo=lo
8193
 
 
8194
 
  case $with_pic in
8195
 
    yes) pic_setting='-prefer-pic';;
8196
 
    no)  pic_setting='-prefer-non-pic';;
8197
 
  esac
8198
 
 
8199
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8200
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8201
 
  shared_c_post=
8202
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8203
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8204
 
  shared_cxx_post=
8205
 
  shared_lo=lo
8206
 
 
8207
 
  php_build_target=program
8208
 
 
8209
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8210
 
  php_build_target=static
8211
 
;;
8212
 
  program) 
8213
 
  OVERALL_TARGET=php
8214
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8215
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8216
 
  php_c_post=
8217
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8218
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8219
 
  php_cxx_post=
8220
 
  php_lo=lo
8221
 
 
8222
 
  case $with_pic in
8223
 
    yes) pic_setting='-prefer-pic';;
8224
 
    no)  pic_setting='-prefer-non-pic';;
8225
 
  esac
8226
 
 
8227
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8228
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8229
 
  shared_c_post=
8230
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8231
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8232
 
  shared_cxx_post=
8233
 
  shared_lo=lo
8234
 
 
8235
 
  php_build_target=program
8236
 
;;
8237
 
  esac
8238
 
    
8239
 
  
8240
 
  
8241
 
  case sapi/apache2handler in
8242
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8243
 
  /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8244
 
  *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8245
 
  esac
8246
 
  
8247
 
  
8248
 
 
8249
 
  b_c_pre=$php_c_pre
8250
 
  b_cxx_pre=$php_cxx_pre
8251
 
  b_c_meta=$php_c_meta
8252
 
  b_cxx_meta=$php_cxx_meta
8253
 
  b_c_post=$php_c_post
8254
 
  b_cxx_post=$php_cxx_post
8255
 
  b_lo=$php_lo
8256
 
 
8257
 
 
8258
 
  old_IFS=$IFS
8259
 
  for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
8260
 
  
8261
 
      IFS=.
8262
 
      set $ac_src
8263
 
      ac_obj=$1
8264
 
      IFS=$old_IFS
8265
 
      
8266
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8267
 
 
8268
 
      case $ac_src in
8269
 
        *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8270
 
        *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8271
 
        *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8272
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
8273
 
      esac
8274
 
 
8275
 
    cat >>Makefile.objects<<EOF
8276
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8277
 
        $ac_comp
8278
 
EOF
8279
 
  done
8280
 
 
8281
 
 
8282
 
 
8283
 
    SAPI_SHARED=libs/libphp5.so
8284
 
    INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
8285
 
    ;;
8286
 
  *beos*)
8287
 
    if test -f _APP_; then `rm _APP_`; fi
8288
 
    `ln -s $APXS_BINDIR/httpd _APP_`
8289
 
    EXTRA_LIBS="$EXTRA_LIBS _APP_"
8290
 
    
8291
 
  if test "$PHP_SAPI" != "default"; then
8292
 
{ { $as_echo "$as_me:$LINENO: error: 
8293
 
+--------------------------------------------------------------------+
8294
 
|                        *** ATTENTION ***                           |
8295
 
|                                                                    |
8296
 
| You've configured multiple SAPIs to be build. You can build only   |
8297
 
| one SAPI module and CLI binary at the same time.                   |
8298
 
+--------------------------------------------------------------------+
8299
 
" >&5
8300
 
$as_echo "$as_me: error: 
8301
 
+--------------------------------------------------------------------+
8302
 
|                        *** ATTENTION ***                           |
8303
 
|                                                                    |
8304
 
| You've configured multiple SAPIs to be build. You can build only   |
8305
 
| one SAPI module and CLI binary at the same time.                   |
8306
 
+--------------------------------------------------------------------+
8307
 
" >&2;}
8308
 
   { (exit 1); exit 1; }; }
8309
 
  fi
8310
 
 
8311
 
  PHP_SAPI=apache2handler
8312
 
  
8313
 
  case "shared" in
8314
 
  static) 
8315
 
  
8316
 
  OVERALL_TARGET=php
8317
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8318
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8319
 
  php_c_post=
8320
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8321
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8322
 
  php_cxx_post=
8323
 
  php_lo=lo
8324
 
 
8325
 
  case $with_pic in
8326
 
    yes) pic_setting='-prefer-pic';;
8327
 
    no)  pic_setting='-prefer-non-pic';;
8328
 
  esac
8329
 
 
8330
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8331
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8332
 
  shared_c_post=
8333
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8334
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8335
 
  shared_cxx_post=
8336
 
  shared_lo=lo
8337
 
 
8338
 
  php_build_target=program
8339
 
 
8340
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8341
 
  php_build_target=static
8342
 
;;
8343
 
  shared) 
8344
 
  
8345
 
  OVERALL_TARGET=php
8346
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8347
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8348
 
  php_c_post=
8349
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8350
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8351
 
  php_cxx_post=
8352
 
  php_lo=lo
8353
 
 
8354
 
  case $with_pic in
8355
 
    yes) pic_setting='-prefer-pic';;
8356
 
    no)  pic_setting='-prefer-non-pic';;
8357
 
  esac
8358
 
 
8359
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8360
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8361
 
  shared_c_post=
8362
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8363
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8364
 
  shared_cxx_post=
8365
 
  shared_lo=lo
8366
 
 
8367
 
  php_build_target=program
8368
 
 
8369
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8370
 
  php_build_target=shared
8371
 
  
8372
 
  php_c_pre=$shared_c_pre
8373
 
  php_c_meta=$shared_c_meta
8374
 
  php_c_post=$shared_c_post
8375
 
  php_cxx_pre=$shared_cxx_pre
8376
 
  php_cxx_meta=$shared_cxx_meta
8377
 
  php_cxx_post=$shared_cxx_post
8378
 
  php_lo=$shared_lo
8379
 
;;
8380
 
  bundle) 
8381
 
  
8382
 
  OVERALL_TARGET=php
8383
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8384
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8385
 
  php_c_post=
8386
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8387
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8388
 
  php_cxx_post=
8389
 
  php_lo=lo
8390
 
 
8391
 
  case $with_pic in
8392
 
    yes) pic_setting='-prefer-pic';;
8393
 
    no)  pic_setting='-prefer-non-pic';;
8394
 
  esac
8395
 
 
8396
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8397
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8398
 
  shared_c_post=
8399
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8400
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8401
 
  shared_cxx_post=
8402
 
  shared_lo=lo
8403
 
 
8404
 
  php_build_target=program
8405
 
 
8406
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8407
 
  php_build_target=static
8408
 
;;
8409
 
  program) 
8410
 
  OVERALL_TARGET=php
8411
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8412
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8413
 
  php_c_post=
8414
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8415
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8416
 
  php_cxx_post=
8417
 
  php_lo=lo
8418
 
 
8419
 
  case $with_pic in
8420
 
    yes) pic_setting='-prefer-pic';;
8421
 
    no)  pic_setting='-prefer-non-pic';;
8422
 
  esac
8423
 
 
8424
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8425
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8426
 
  shared_c_post=
8427
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8428
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8429
 
  shared_cxx_post=
8430
 
  shared_lo=lo
8431
 
 
8432
 
  php_build_target=program
8433
 
;;
8434
 
  esac
8435
 
    
8436
 
  
8437
 
  
8438
 
  case sapi/apache2handler in
8439
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8440
 
  /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8441
 
  *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8442
 
  esac
8443
 
  
8444
 
  
8445
 
 
8446
 
  b_c_pre=$php_c_pre
8447
 
  b_cxx_pre=$php_cxx_pre
8448
 
  b_c_meta=$php_c_meta
8449
 
  b_cxx_meta=$php_cxx_meta
8450
 
  b_c_post=$php_c_post
8451
 
  b_cxx_post=$php_cxx_post
8452
 
  b_lo=$php_lo
8453
 
 
8454
 
 
8455
 
  old_IFS=$IFS
8456
 
  for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
8457
 
  
8458
 
      IFS=.
8459
 
      set $ac_src
8460
 
      ac_obj=$1
8461
 
      IFS=$old_IFS
8462
 
      
8463
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8464
 
 
8465
 
      case $ac_src in
8466
 
        *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8467
 
        *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8468
 
        *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8469
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
8470
 
      esac
8471
 
 
8472
 
    cat >>Makefile.objects<<EOF
8473
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8474
 
        $ac_comp
8475
 
EOF
8476
 
  done
8477
 
 
8478
 
 
8479
 
 
8480
 
    INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
8481
 
    ;;
8482
 
  *)
8483
 
    
8484
 
  if test "$PHP_SAPI" != "default"; then
8485
 
{ { $as_echo "$as_me:$LINENO: error: 
8486
 
+--------------------------------------------------------------------+
8487
 
|                        *** ATTENTION ***                           |
8488
 
|                                                                    |
8489
 
| You've configured multiple SAPIs to be build. You can build only   |
8490
 
| one SAPI module and CLI binary at the same time.                   |
8491
 
+--------------------------------------------------------------------+
8492
 
" >&5
8493
 
$as_echo "$as_me: error: 
8494
 
+--------------------------------------------------------------------+
8495
 
|                        *** ATTENTION ***                           |
8496
 
|                                                                    |
8497
 
| You've configured multiple SAPIs to be build. You can build only   |
8498
 
| one SAPI module and CLI binary at the same time.                   |
8499
 
+--------------------------------------------------------------------+
8500
 
" >&2;}
8501
 
   { (exit 1); exit 1; }; }
8502
 
  fi
8503
 
 
8504
 
  PHP_SAPI=apache2handler
8505
 
  
8506
 
  case "shared" in
8507
 
  static) 
8508
 
  
8509
 
  OVERALL_TARGET=php
8510
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8511
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8512
 
  php_c_post=
8513
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8514
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8515
 
  php_cxx_post=
8516
 
  php_lo=lo
8517
 
 
8518
 
  case $with_pic in
8519
 
    yes) pic_setting='-prefer-pic';;
8520
 
    no)  pic_setting='-prefer-non-pic';;
8521
 
  esac
8522
 
 
8523
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8524
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8525
 
  shared_c_post=
8526
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8527
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8528
 
  shared_cxx_post=
8529
 
  shared_lo=lo
8530
 
 
8531
 
  php_build_target=program
8532
 
 
8533
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8534
 
  php_build_target=static
8535
 
;;
8536
 
  shared) 
8537
 
  
8538
 
  OVERALL_TARGET=php
8539
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8540
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8541
 
  php_c_post=
8542
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8543
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8544
 
  php_cxx_post=
8545
 
  php_lo=lo
8546
 
 
8547
 
  case $with_pic in
8548
 
    yes) pic_setting='-prefer-pic';;
8549
 
    no)  pic_setting='-prefer-non-pic';;
8550
 
  esac
8551
 
 
8552
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8553
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8554
 
  shared_c_post=
8555
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8556
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8557
 
  shared_cxx_post=
8558
 
  shared_lo=lo
8559
 
 
8560
 
  php_build_target=program
8561
 
 
8562
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8563
 
  php_build_target=shared
8564
 
  
8565
 
  php_c_pre=$shared_c_pre
8566
 
  php_c_meta=$shared_c_meta
8567
 
  php_c_post=$shared_c_post
8568
 
  php_cxx_pre=$shared_cxx_pre
8569
 
  php_cxx_meta=$shared_cxx_meta
8570
 
  php_cxx_post=$shared_cxx_post
8571
 
  php_lo=$shared_lo
8572
 
;;
8573
 
  bundle) 
8574
 
  
8575
 
  OVERALL_TARGET=php
8576
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8577
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8578
 
  php_c_post=
8579
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8580
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8581
 
  php_cxx_post=
8582
 
  php_lo=lo
8583
 
 
8584
 
  case $with_pic in
8585
 
    yes) pic_setting='-prefer-pic';;
8586
 
    no)  pic_setting='-prefer-non-pic';;
8587
 
  esac
8588
 
 
8589
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8590
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8591
 
  shared_c_post=
8592
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8593
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8594
 
  shared_cxx_post=
8595
 
  shared_lo=lo
8596
 
 
8597
 
  php_build_target=program
8598
 
 
8599
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8600
 
  php_build_target=static
8601
 
;;
8602
 
  program) 
8603
 
  OVERALL_TARGET=php
8604
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8605
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8606
 
  php_c_post=
8607
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8608
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8609
 
  php_cxx_post=
8610
 
  php_lo=lo
8611
 
 
8612
 
  case $with_pic in
8613
 
    yes) pic_setting='-prefer-pic';;
8614
 
    no)  pic_setting='-prefer-non-pic';;
8615
 
  esac
8616
 
 
8617
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8618
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8619
 
  shared_c_post=
8620
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8621
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8622
 
  shared_cxx_post=
8623
 
  shared_lo=lo
8624
 
 
8625
 
  php_build_target=program
8626
 
;;
8627
 
  esac
8628
 
    
8629
 
  
8630
 
  
8631
 
  case sapi/apache2handler in
8632
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8633
 
  /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8634
 
  *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8635
 
  esac
8636
 
  
8637
 
  
8638
 
 
8639
 
  b_c_pre=$php_c_pre
8640
 
  b_cxx_pre=$php_cxx_pre
8641
 
  b_c_meta=$php_c_meta
8642
 
  b_cxx_meta=$php_cxx_meta
8643
 
  b_c_post=$php_c_post
8644
 
  b_cxx_post=$php_cxx_post
8645
 
  b_lo=$php_lo
8646
 
 
8647
 
 
8648
 
  old_IFS=$IFS
8649
 
  for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
8650
 
  
8651
 
      IFS=.
8652
 
      set $ac_src
8653
 
      ac_obj=$1
8654
 
      IFS=$old_IFS
8655
 
      
8656
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8657
 
 
8658
 
      case $ac_src in
8659
 
        *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8660
 
        *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8661
 
        *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8662
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
8663
 
      esac
8664
 
 
8665
 
    cat >>Makefile.objects<<EOF
8666
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8667
 
        $ac_comp
8668
 
EOF
8669
 
  done
8670
 
 
8671
 
 
8672
 
 
8673
 
    INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
8674
 
    ;;
8675
 
  esac
8676
 
 
8677
 
  if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
8678
 
    
8679
 
  enable_maintainer_zts=yes
8680
 
  if test "$pthreads_working" != "yes"; then
8681
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
8682
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
8683
 
   { (exit 1); exit 1; }; }
8684
 
  fi
8685
 
 
8686
 
  fi
8687
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
8688
 
$as_echo "yes" >&6; }
8689
 
  
8690
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
8691
 
 
8692
 
else
8693
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
8694
 
$as_echo "no" >&6; }
8695
 
fi
8696
 
 
8697
 
 
8698
 
 
8699
 
 
8700
 
 
8701
 
php_with_apxs=no
8702
 
 
8703
 
 
8704
 
 
8705
 
@%:@ Check whether --with-apxs was given.
8706
 
if test "${with_apxs+set}" = set; then
8707
 
  withval=$with_apxs; PHP_APXS=$withval
8708
 
else
8709
 
  
8710
 
  PHP_APXS=no
8711
 
  
8712
 
 
8713
 
fi
8714
 
 
8715
 
 
8716
 
ext_output=$PHP_APXS
8717
 
 
8718
 
 
8719
 
 
8720
 
 
8721
 
 
8722
 
{ $as_echo "$as_me:$LINENO: checking for Apache 1.x module support via DSO through APXS" >&5
8723
 
$as_echo_n "checking for Apache 1.x module support via DSO through APXS... " >&6; }
8724
 
 
8725
 
if test "$PHP_APXS" != "no"; then
8726
 
  if test "$PHP_APXS" = "yes"; then
8727
 
    APXS=apxs
8728
 
    $APXS -q CFLAGS >/dev/null 2>&1
8729
 
    if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x 
8730
 
      APXS=/usr/sbin/apxs
8731
 
    fi
8732
 
  else
8733
 
    
8734
 
  if test -z "$PHP_APXS" || echo "$PHP_APXS" | grep '^/' >/dev/null ; then
8735
 
    APXS=$PHP_APXS
8736
 
  else
8737
 
    
8738
 
    ep_dir="`echo $PHP_APXS|$SED 's%/*[^/][^/]*/*$%%'`"
8739
 
    
8740
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
8741
 
    APXS="$ep_realdir/`basename \"$PHP_APXS\"`"
8742
 
  fi
8743
 
 
8744
 
  fi
8745
 
 
8746
 
  $APXS -q CFLAGS >/dev/null 2>&1
8747
 
  if test "$?" != "0"; then
8748
 
    { $as_echo "$as_me:$LINENO: result: " >&5
8749
 
$as_echo "" >&6; }
8750
 
    { $as_echo "$as_me:$LINENO: result: " >&5
8751
 
$as_echo "" >&6; }
8752
 
    { $as_echo "$as_me:$LINENO: result: Sorry, I was not able to successfully run APXS.  Possible reasons:" >&5
8753
 
$as_echo "Sorry, I was not able to successfully run APXS.  Possible reasons:" >&6; }
8754
 
    { $as_echo "$as_me:$LINENO: result: " >&5
8755
 
$as_echo "" >&6; }
8756
 
    { $as_echo "$as_me:$LINENO: result: 1.  Perl is not installed;" >&5
8757
 
$as_echo "1.  Perl is not installed;" >&6; }
8758
 
    { $as_echo "$as_me:$LINENO: result: 2.  Apache was not compiled with DSO support (--enable-module=so);" >&5
8759
 
$as_echo "2.  Apache was not compiled with DSO support (--enable-module=so);" >&6; }
8760
 
    { $as_echo "$as_me:$LINENO: result: 3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&5
8761
 
$as_echo "3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&6; }
8762
 
    { $as_echo "$as_me:$LINENO: result: The output of $APXS follows" >&5
8763
 
$as_echo "The output of $APXS follows" >&6; }
8764
 
    $APXS -q CFLAGS
8765
 
    { { $as_echo "$as_me:$LINENO: error: Aborting" >&5
8766
 
$as_echo "$as_me: error: Aborting" >&2;}
8767
 
   { (exit 1); exit 1; }; } 
8768
 
  fi 
8769
 
 
8770
 
  APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
8771
 
  APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
8772
 
  APXS_CFLAGS=`$APXS -q CFLAGS`
8773
 
  APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
8774
 
  APACHE_INCLUDE=-I$APXS_INCLUDEDIR
8775
 
 
8776
 
  # Test that we're trying to configure with apache 1.x
8777
 
  
8778
 
  ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
8779
 
  ac_IFS=$IFS
8780
 
IFS="- /.
8781
 
"
8782
 
  set $ac_output
8783
 
  IFS=$ac_IFS
8784
 
 
8785
 
  APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
8786
 
 
8787
 
  if test "$APACHE_VERSION" -ge 2000000; then
8788
 
    { { $as_echo "$as_me:$LINENO: error: You have enabled Apache 1.3 support while your server is Apache 2.  Please use the appropiate switch --with-apxs2" >&5
8789
 
$as_echo "$as_me: error: You have enabled Apache 1.3 support while your server is Apache 2.  Please use the appropiate switch --with-apxs2" >&2;}
8790
 
   { (exit 1); exit 1; }; } 
8791
 
  fi
8792
 
 
8793
 
  for flag in $APXS_CFLAGS; do
8794
 
    case $flag in
8795
 
    -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
8796
 
    esac
8797
 
  done
8798
 
 
8799
 
  case $host_alias in
8800
 
  *aix*)
8801
 
    APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
8802
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
8803
 
    PHP_AIX_LDFLAGS="-Wl,-brtl"
8804
 
    build_type=shared
8805
 
    ;;
8806
 
  *darwin*)
8807
 
    MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
8808
 
    
8809
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
8810
 
 
8811
 
    SAPI_SHARED=libs/libphp5.so
8812
 
    build_type=bundle
8813
 
    ;;
8814
 
  *)
8815
 
    build_type=shared
8816
 
    ;;
8817
 
  esac
8818
 
 
8819
 
  
8820
 
  if test "$PHP_SAPI" != "default"; then
8821
 
{ { $as_echo "$as_me:$LINENO: error: 
8822
 
+--------------------------------------------------------------------+
8823
 
|                        *** ATTENTION ***                           |
8824
 
|                                                                    |
8825
 
| You've configured multiple SAPIs to be build. You can build only   |
8826
 
| one SAPI module and CLI binary at the same time.                   |
8827
 
+--------------------------------------------------------------------+
8828
 
" >&5
8829
 
$as_echo "$as_me: error: 
8830
 
+--------------------------------------------------------------------+
8831
 
|                        *** ATTENTION ***                           |
8832
 
|                                                                    |
8833
 
| You've configured multiple SAPIs to be build. You can build only   |
8834
 
| one SAPI module and CLI binary at the same time.                   |
8835
 
+--------------------------------------------------------------------+
8836
 
" >&2;}
8837
 
   { (exit 1); exit 1; }; }
8838
 
  fi
8839
 
 
8840
 
  PHP_SAPI=apache
8841
 
  
8842
 
  case "$build_type" in
8843
 
  static) 
8844
 
  
8845
 
  OVERALL_TARGET=php
8846
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8847
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8848
 
  php_c_post=
8849
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8850
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8851
 
  php_cxx_post=
8852
 
  php_lo=lo
8853
 
 
8854
 
  case $with_pic in
8855
 
    yes) pic_setting='-prefer-pic';;
8856
 
    no)  pic_setting='-prefer-non-pic';;
8857
 
  esac
8858
 
 
8859
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8860
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8861
 
  shared_c_post=
8862
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8863
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8864
 
  shared_cxx_post=
8865
 
  shared_lo=lo
8866
 
 
8867
 
  php_build_target=program
8868
 
 
8869
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8870
 
  php_build_target=static
8871
 
;;
8872
 
  shared) 
8873
 
  
8874
 
  OVERALL_TARGET=php
8875
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8876
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8877
 
  php_c_post=
8878
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8879
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8880
 
  php_cxx_post=
8881
 
  php_lo=lo
8882
 
 
8883
 
  case $with_pic in
8884
 
    yes) pic_setting='-prefer-pic';;
8885
 
    no)  pic_setting='-prefer-non-pic';;
8886
 
  esac
8887
 
 
8888
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8889
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8890
 
  shared_c_post=
8891
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8892
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8893
 
  shared_cxx_post=
8894
 
  shared_lo=lo
8895
 
 
8896
 
  php_build_target=program
8897
 
 
8898
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8899
 
  php_build_target=shared
8900
 
  
8901
 
  php_c_pre=$shared_c_pre
8902
 
  php_c_meta=$shared_c_meta
8903
 
  php_c_post=$shared_c_post
8904
 
  php_cxx_pre=$shared_cxx_pre
8905
 
  php_cxx_meta=$shared_cxx_meta
8906
 
  php_cxx_post=$shared_cxx_post
8907
 
  php_lo=$shared_lo
8908
 
;;
8909
 
  bundle) 
8910
 
  
8911
 
  OVERALL_TARGET=php
8912
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8913
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8914
 
  php_c_post=
8915
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8916
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8917
 
  php_cxx_post=
8918
 
  php_lo=lo
8919
 
 
8920
 
  case $with_pic in
8921
 
    yes) pic_setting='-prefer-pic';;
8922
 
    no)  pic_setting='-prefer-non-pic';;
8923
 
  esac
8924
 
 
8925
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8926
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8927
 
  shared_c_post=
8928
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8929
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8930
 
  shared_cxx_post=
8931
 
  shared_lo=lo
8932
 
 
8933
 
  php_build_target=program
8934
 
 
8935
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8936
 
  php_build_target=static
8937
 
;;
8938
 
  program) 
8939
 
  OVERALL_TARGET=php
8940
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8941
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8942
 
  php_c_post=
8943
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8944
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8945
 
  php_cxx_post=
8946
 
  php_lo=lo
8947
 
 
8948
 
  case $with_pic in
8949
 
    yes) pic_setting='-prefer-pic';;
8950
 
    no)  pic_setting='-prefer-non-pic';;
8951
 
  esac
8952
 
 
8953
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8954
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8955
 
  shared_c_post=
8956
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8957
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8958
 
  shared_cxx_post=
8959
 
  shared_lo=lo
8960
 
 
8961
 
  php_build_target=program
8962
 
;;
8963
 
  esac
8964
 
    
8965
 
  
8966
 
  
8967
 
  case sapi/apache in
8968
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8969
 
  /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8970
 
  *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8971
 
  esac
8972
 
  
8973
 
  
8974
 
 
8975
 
  b_c_pre=$php_c_pre
8976
 
  b_cxx_pre=$php_cxx_pre
8977
 
  b_c_meta=$php_c_meta
8978
 
  b_cxx_meta=$php_cxx_meta
8979
 
  b_c_post=$php_c_post
8980
 
  b_cxx_post=$php_cxx_post
8981
 
  b_lo=$php_lo
8982
 
 
8983
 
 
8984
 
  old_IFS=$IFS
8985
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
8986
 
  
8987
 
      IFS=.
8988
 
      set $ac_src
8989
 
      ac_obj=$1
8990
 
      IFS=$old_IFS
8991
 
      
8992
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8993
 
 
8994
 
      case $ac_src in
8995
 
        *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8996
 
        *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8997
 
        *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
8998
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
8999
 
      esac
9000
 
 
9001
 
    cat >>Makefile.objects<<EOF
9002
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9003
 
        $ac_comp
9004
 
EOF
9005
 
  done
9006
 
 
9007
 
 
9008
 
 
9009
 
 
9010
 
  # Test whether apxs support -S option
9011
 
  $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
9012
 
 
9013
 
  if test "$?" != "0"; then
9014
 
    APACHE_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
9015
 
  else 
9016
 
    APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
9017
 
    if test -z `$APXS -q SYSCONFDIR`; then
9018
 
      APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
9019
 
                       $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
9020
 
                             -i -n php5 $SAPI_SHARED"
9021
 
    else
9022
 
      APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
9023
 
      APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
9024
 
                      \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
9025
 
                       $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
9026
 
                             -S SYSCONFDIR='$APXS_SYSCONFDIR' \
9027
 
                             -i -a -n php5 $SAPI_SHARED"
9028
 
    fi
9029
 
  fi
9030
 
 
9031
 
  if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
9032
 
    PHP_APXS_BROKEN=yes
9033
 
  fi
9034
 
  STRONGHOLD=
9035
 
  
9036
 
cat >>confdefs.h <<\_ACEOF
9037
 
@%:@define HAVE_AP_CONFIG_H 1
9038
 
_ACEOF
9039
 
 
9040
 
  
9041
 
cat >>confdefs.h <<\_ACEOF
9042
 
@%:@define HAVE_AP_COMPAT_H 1
9043
 
_ACEOF
9044
 
 
9045
 
  
9046
 
cat >>confdefs.h <<\_ACEOF
9047
 
@%:@define HAVE_APACHE 1
9048
 
_ACEOF
9049
 
 
9050
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
9051
 
$as_echo "yes" >&6; }
9052
 
else
9053
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
9054
 
$as_echo "no" >&6; }
9055
 
fi
9056
 
 
9057
 
 
9058
 
php_with_apache=no
9059
 
 
9060
 
 
9061
 
 
9062
 
@%:@ Check whether --with-apache was given.
9063
 
if test "${with_apache+set}" = set; then
9064
 
  withval=$with_apache; PHP_APACHE=$withval
9065
 
else
9066
 
  
9067
 
  PHP_APACHE=no
9068
 
  
9069
 
 
9070
 
fi
9071
 
 
9072
 
 
9073
 
ext_output=$PHP_APACHE
9074
 
 
9075
 
 
9076
 
 
9077
 
 
9078
 
 
9079
 
{ $as_echo "$as_me:$LINENO: checking for Apache 1.x module support" >&5
9080
 
$as_echo_n "checking for Apache 1.x module support... " >&6; }
9081
 
 
9082
 
if test "$PHP_SAPI" != "apache" && test "$PHP_APACHE" != "no"; then
9083
 
  
9084
 
  if test "$PHP_APACHE" = "yes"; then
9085
 
    # Apache's default directory
9086
 
    PHP_APACHE=/usr/local/apache
9087
 
  fi
9088
 
 
9089
 
  APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php5.* sapi/apache/libphp5.module"
9090
 
 
9091
 
  
9092
 
cat >>confdefs.h <<\_ACEOF
9093
 
@%:@define HAVE_APACHE 1
9094
 
_ACEOF
9095
 
 
9096
 
  APACHE_MODULE=yes
9097
 
  
9098
 
  if test -z "$PHP_APACHE" || echo "$PHP_APACHE" | grep '^/' >/dev/null ; then
9099
 
    PHP_APACHE=$PHP_APACHE
9100
 
  else
9101
 
    
9102
 
    ep_dir="`echo $PHP_APACHE|$SED 's%/*[^/][^/]*/*$%%'`"
9103
 
    
9104
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
9105
 
    PHP_APACHE="$ep_realdir/`basename \"$PHP_APACHE\"`"
9106
 
  fi
9107
 
 
9108
 
  # For Apache 1.2.x
9109
 
  if test -f $PHP_APACHE/src/httpd.h; then 
9110
 
    APACHE_INCLUDE=-I$PHP_APACHE/src
9111
 
    APACHE_TARGET=$PHP_APACHE/src
9112
 
    
9113
 
  if test "$PHP_SAPI" != "default"; then
9114
 
{ { $as_echo "$as_me:$LINENO: error: 
9115
 
+--------------------------------------------------------------------+
9116
 
|                        *** ATTENTION ***                           |
9117
 
|                                                                    |
9118
 
| You've configured multiple SAPIs to be build. You can build only   |
9119
 
| one SAPI module and CLI binary at the same time.                   |
9120
 
+--------------------------------------------------------------------+
9121
 
" >&5
9122
 
$as_echo "$as_me: error: 
9123
 
+--------------------------------------------------------------------+
9124
 
|                        *** ATTENTION ***                           |
9125
 
|                                                                    |
9126
 
| You've configured multiple SAPIs to be build. You can build only   |
9127
 
| one SAPI module and CLI binary at the same time.                   |
9128
 
+--------------------------------------------------------------------+
9129
 
" >&2;}
9130
 
   { (exit 1); exit 1; }; }
9131
 
  fi
9132
 
 
9133
 
  PHP_SAPI=apache
9134
 
  
9135
 
  case "static" in
9136
 
  static) 
9137
 
  
9138
 
  OVERALL_TARGET=php
9139
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9140
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9141
 
  php_c_post=
9142
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9143
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9144
 
  php_cxx_post=
9145
 
  php_lo=lo
9146
 
 
9147
 
  case $with_pic in
9148
 
    yes) pic_setting='-prefer-pic';;
9149
 
    no)  pic_setting='-prefer-non-pic';;
9150
 
  esac
9151
 
 
9152
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9153
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9154
 
  shared_c_post=
9155
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9156
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9157
 
  shared_cxx_post=
9158
 
  shared_lo=lo
9159
 
 
9160
 
  php_build_target=program
9161
 
 
9162
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9163
 
  php_build_target=static
9164
 
;;
9165
 
  shared) 
9166
 
  
9167
 
  OVERALL_TARGET=php
9168
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9169
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9170
 
  php_c_post=
9171
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9172
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9173
 
  php_cxx_post=
9174
 
  php_lo=lo
9175
 
 
9176
 
  case $with_pic in
9177
 
    yes) pic_setting='-prefer-pic';;
9178
 
    no)  pic_setting='-prefer-non-pic';;
9179
 
  esac
9180
 
 
9181
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9182
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9183
 
  shared_c_post=
9184
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9185
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9186
 
  shared_cxx_post=
9187
 
  shared_lo=lo
9188
 
 
9189
 
  php_build_target=program
9190
 
 
9191
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9192
 
  php_build_target=shared
9193
 
  
9194
 
  php_c_pre=$shared_c_pre
9195
 
  php_c_meta=$shared_c_meta
9196
 
  php_c_post=$shared_c_post
9197
 
  php_cxx_pre=$shared_cxx_pre
9198
 
  php_cxx_meta=$shared_cxx_meta
9199
 
  php_cxx_post=$shared_cxx_post
9200
 
  php_lo=$shared_lo
9201
 
;;
9202
 
  bundle) 
9203
 
  
9204
 
  OVERALL_TARGET=php
9205
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9206
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9207
 
  php_c_post=
9208
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9209
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9210
 
  php_cxx_post=
9211
 
  php_lo=lo
9212
 
 
9213
 
  case $with_pic in
9214
 
    yes) pic_setting='-prefer-pic';;
9215
 
    no)  pic_setting='-prefer-non-pic';;
9216
 
  esac
9217
 
 
9218
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9219
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9220
 
  shared_c_post=
9221
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9222
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9223
 
  shared_cxx_post=
9224
 
  shared_lo=lo
9225
 
 
9226
 
  php_build_target=program
9227
 
 
9228
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
9229
 
  php_build_target=static
9230
 
;;
9231
 
  program) 
9232
 
  OVERALL_TARGET=php
9233
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9234
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9235
 
  php_c_post=
9236
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9237
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9238
 
  php_cxx_post=
9239
 
  php_lo=lo
9240
 
 
9241
 
  case $with_pic in
9242
 
    yes) pic_setting='-prefer-pic';;
9243
 
    no)  pic_setting='-prefer-non-pic';;
9244
 
  esac
9245
 
 
9246
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9247
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9248
 
  shared_c_post=
9249
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9250
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9251
 
  shared_cxx_post=
9252
 
  shared_lo=lo
9253
 
 
9254
 
  php_build_target=program
9255
 
;;
9256
 
  esac
9257
 
    
9258
 
  
9259
 
  
9260
 
  case sapi/apache in
9261
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9262
 
  /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9263
 
  *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9264
 
  esac
9265
 
  
9266
 
  
9267
 
 
9268
 
  b_c_pre=$php_c_pre
9269
 
  b_cxx_pre=$php_cxx_pre
9270
 
  b_c_meta=$php_c_meta
9271
 
  b_cxx_meta=$php_cxx_meta
9272
 
  b_c_post=$php_c_post
9273
 
  b_cxx_post=$php_cxx_post
9274
 
  b_lo=$php_lo
9275
 
 
9276
 
 
9277
 
  old_IFS=$IFS
9278
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9279
 
  
9280
 
      IFS=.
9281
 
      set $ac_src
9282
 
      ac_obj=$1
9283
 
      IFS=$old_IFS
9284
 
      
9285
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9286
 
 
9287
 
      case $ac_src in
9288
 
        *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9289
 
        *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9290
 
        *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9291
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
9292
 
      esac
9293
 
 
9294
 
    cat >>Makefile.objects<<EOF
9295
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9296
 
        $ac_comp
9297
 
EOF
9298
 
  done
9299
 
 
9300
 
 
9301
 
 
9302
 
    APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_INSTALL_FILES $APACHE_TARGET"
9303
 
    PHP_LIBS="-L. -lphp3"
9304
 
    { $as_echo "$as_me:$LINENO: result: yes - Apache 1.2.x" >&5
9305
 
$as_echo "yes - Apache 1.2.x" >&6; }
9306
 
    STRONGHOLD=
9307
 
    if test -f $PHP_APACHE/src/ap_config.h; then
9308
 
      
9309
 
cat >>confdefs.h <<\_ACEOF
9310
 
@%:@define HAVE_AP_CONFIG_H 1
9311
 
_ACEOF
9312
 
 
9313
 
    fi
9314
 
  # For Apache 2.0.x
9315
 
  elif test -f $PHP_APACHE/include/httpd.h && test -f $PHP_APACHE/srclib/apr/include/apr_general.h ; then
9316
 
    { { $as_echo "$as_me:$LINENO: error: Use --with-apxs2 with Apache 2.x!" >&5
9317
 
$as_echo "$as_me: error: Use --with-apxs2 with Apache 2.x!" >&2;}
9318
 
   { (exit 1); exit 1; }; }
9319
 
  # For Apache 1.3.x
9320
 
  elif test -f $PHP_APACHE/src/main/httpd.h; then
9321
 
    APACHE_HAS_REGEX=1
9322
 
    APACHE_INCLUDE="-I$PHP_APACHE/src/main -I$PHP_APACHE/src/os/unix -I$PHP_APACHE/src/ap"
9323
 
    APACHE_TARGET=$PHP_APACHE/src/modules/php5
9324
 
    if test ! -d $APACHE_TARGET; then
9325
 
      mkdir $APACHE_TARGET
9326
 
    fi
9327
 
    
9328
 
  if test "$PHP_SAPI" != "default"; then
9329
 
{ { $as_echo "$as_me:$LINENO: error: 
9330
 
+--------------------------------------------------------------------+
9331
 
|                        *** ATTENTION ***                           |
9332
 
|                                                                    |
9333
 
| You've configured multiple SAPIs to be build. You can build only   |
9334
 
| one SAPI module and CLI binary at the same time.                   |
9335
 
+--------------------------------------------------------------------+
9336
 
" >&5
9337
 
$as_echo "$as_me: error: 
9338
 
+--------------------------------------------------------------------+
9339
 
|                        *** ATTENTION ***                           |
9340
 
|                                                                    |
9341
 
| You've configured multiple SAPIs to be build. You can build only   |
9342
 
| one SAPI module and CLI binary at the same time.                   |
9343
 
+--------------------------------------------------------------------+
9344
 
" >&2;}
9345
 
   { (exit 1); exit 1; }; }
9346
 
  fi
9347
 
 
9348
 
  PHP_SAPI=apache
9349
 
  
9350
 
  case "static" in
9351
 
  static) 
9352
 
  
9353
 
  OVERALL_TARGET=php
9354
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9355
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9356
 
  php_c_post=
9357
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9358
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9359
 
  php_cxx_post=
9360
 
  php_lo=lo
9361
 
 
9362
 
  case $with_pic in
9363
 
    yes) pic_setting='-prefer-pic';;
9364
 
    no)  pic_setting='-prefer-non-pic';;
9365
 
  esac
9366
 
 
9367
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9368
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9369
 
  shared_c_post=
9370
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9371
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9372
 
  shared_cxx_post=
9373
 
  shared_lo=lo
9374
 
 
9375
 
  php_build_target=program
9376
 
 
9377
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9378
 
  php_build_target=static
9379
 
;;
9380
 
  shared) 
9381
 
  
9382
 
  OVERALL_TARGET=php
9383
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9384
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9385
 
  php_c_post=
9386
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9387
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9388
 
  php_cxx_post=
9389
 
  php_lo=lo
9390
 
 
9391
 
  case $with_pic in
9392
 
    yes) pic_setting='-prefer-pic';;
9393
 
    no)  pic_setting='-prefer-non-pic';;
9394
 
  esac
9395
 
 
9396
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9397
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9398
 
  shared_c_post=
9399
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9400
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9401
 
  shared_cxx_post=
9402
 
  shared_lo=lo
9403
 
 
9404
 
  php_build_target=program
9405
 
 
9406
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9407
 
  php_build_target=shared
9408
 
  
9409
 
  php_c_pre=$shared_c_pre
9410
 
  php_c_meta=$shared_c_meta
9411
 
  php_c_post=$shared_c_post
9412
 
  php_cxx_pre=$shared_cxx_pre
9413
 
  php_cxx_meta=$shared_cxx_meta
9414
 
  php_cxx_post=$shared_cxx_post
9415
 
  php_lo=$shared_lo
9416
 
;;
9417
 
  bundle) 
9418
 
  
9419
 
  OVERALL_TARGET=php
9420
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9421
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9422
 
  php_c_post=
9423
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9424
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9425
 
  php_cxx_post=
9426
 
  php_lo=lo
9427
 
 
9428
 
  case $with_pic in
9429
 
    yes) pic_setting='-prefer-pic';;
9430
 
    no)  pic_setting='-prefer-non-pic';;
9431
 
  esac
9432
 
 
9433
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9434
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9435
 
  shared_c_post=
9436
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9437
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9438
 
  shared_cxx_post=
9439
 
  shared_lo=lo
9440
 
 
9441
 
  php_build_target=program
9442
 
 
9443
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
9444
 
  php_build_target=static
9445
 
;;
9446
 
  program) 
9447
 
  OVERALL_TARGET=php
9448
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9449
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9450
 
  php_c_post=
9451
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9452
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9453
 
  php_cxx_post=
9454
 
  php_lo=lo
9455
 
 
9456
 
  case $with_pic in
9457
 
    yes) pic_setting='-prefer-pic';;
9458
 
    no)  pic_setting='-prefer-non-pic';;
9459
 
  esac
9460
 
 
9461
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9462
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9463
 
  shared_c_post=
9464
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9465
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9466
 
  shared_cxx_post=
9467
 
  shared_lo=lo
9468
 
 
9469
 
  php_build_target=program
9470
 
;;
9471
 
  esac
9472
 
    
9473
 
  
9474
 
  
9475
 
  case sapi/apache in
9476
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9477
 
  /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9478
 
  *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9479
 
  esac
9480
 
  
9481
 
  
9482
 
 
9483
 
  b_c_pre=$php_c_pre
9484
 
  b_cxx_pre=$php_cxx_pre
9485
 
  b_c_meta=$php_c_meta
9486
 
  b_cxx_meta=$php_cxx_meta
9487
 
  b_c_post=$php_c_post
9488
 
  b_cxx_post=$php_cxx_post
9489
 
  b_lo=$php_lo
9490
 
 
9491
 
 
9492
 
  old_IFS=$IFS
9493
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9494
 
  
9495
 
      IFS=.
9496
 
      set $ac_src
9497
 
      ac_obj=$1
9498
 
      IFS=$old_IFS
9499
 
      
9500
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9501
 
 
9502
 
      case $ac_src in
9503
 
        *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9504
 
        *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9505
 
        *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9506
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
9507
 
      esac
9508
 
 
9509
 
    cat >>Makefile.objects<<EOF
9510
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9511
 
        $ac_comp
9512
 
EOF
9513
 
  done
9514
 
 
9515
 
 
9516
 
 
9517
 
    APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
9518
 
    PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
9519
 
    { $as_echo "$as_me:$LINENO: result: yes - Apache 1.3.x" >&5
9520
 
$as_echo "yes - Apache 1.3.x" >&6; }
9521
 
    STRONGHOLD=
9522
 
    if test -f $PHP_APACHE/src/include/ap_config.h; then
9523
 
      
9524
 
cat >>confdefs.h <<\_ACEOF
9525
 
@%:@define HAVE_AP_CONFIG_H 1
9526
 
_ACEOF
9527
 
 
9528
 
    fi
9529
 
    if test -f $PHP_APACHE/src/include/ap_compat.h; then
9530
 
      
9531
 
cat >>confdefs.h <<\_ACEOF
9532
 
@%:@define HAVE_AP_COMPAT_H 1
9533
 
_ACEOF
9534
 
 
9535
 
      if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
9536
 
        { { $as_echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
9537
 
$as_echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
9538
 
   { (exit 1); exit 1; }; }
9539
 
      fi
9540
 
    elif test -f $PHP_APACHE/src/include/compat.h; then
9541
 
      
9542
 
cat >>confdefs.h <<\_ACEOF
9543
 
@%:@define HAVE_OLD_COMPAT_H 1
9544
 
_ACEOF
9545
 
 
9546
 
    fi
9547
 
  # Also for Apache 1.3.x
9548
 
  elif test -f $PHP_APACHE/src/include/httpd.h; then
9549
 
    APACHE_HAS_REGEX=1
9550
 
    APACHE_INCLUDE="-I$PHP_APACHE/src/include -I$PHP_APACHE/src/os/unix"
9551
 
    APACHE_TARGET=$PHP_APACHE/src/modules/php5
9552
 
    if test ! -d $APACHE_TARGET; then
9553
 
      mkdir $APACHE_TARGET
9554
 
    fi
9555
 
    
9556
 
  if test "$PHP_SAPI" != "default"; then
9557
 
{ { $as_echo "$as_me:$LINENO: error: 
9558
 
+--------------------------------------------------------------------+
9559
 
|                        *** ATTENTION ***                           |
9560
 
|                                                                    |
9561
 
| You've configured multiple SAPIs to be build. You can build only   |
9562
 
| one SAPI module and CLI binary at the same time.                   |
9563
 
+--------------------------------------------------------------------+
9564
 
" >&5
9565
 
$as_echo "$as_me: error: 
9566
 
+--------------------------------------------------------------------+
9567
 
|                        *** ATTENTION ***                           |
9568
 
|                                                                    |
9569
 
| You've configured multiple SAPIs to be build. You can build only   |
9570
 
| one SAPI module and CLI binary at the same time.                   |
9571
 
+--------------------------------------------------------------------+
9572
 
" >&2;}
9573
 
   { (exit 1); exit 1; }; }
9574
 
  fi
9575
 
 
9576
 
  PHP_SAPI=apache
9577
 
  
9578
 
  case "static" in
9579
 
  static) 
9580
 
  
9581
 
  OVERALL_TARGET=php
9582
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9583
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9584
 
  php_c_post=
9585
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9586
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9587
 
  php_cxx_post=
9588
 
  php_lo=lo
9589
 
 
9590
 
  case $with_pic in
9591
 
    yes) pic_setting='-prefer-pic';;
9592
 
    no)  pic_setting='-prefer-non-pic';;
9593
 
  esac
9594
 
 
9595
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9596
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9597
 
  shared_c_post=
9598
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9599
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9600
 
  shared_cxx_post=
9601
 
  shared_lo=lo
9602
 
 
9603
 
  php_build_target=program
9604
 
 
9605
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9606
 
  php_build_target=static
9607
 
;;
9608
 
  shared) 
9609
 
  
9610
 
  OVERALL_TARGET=php
9611
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9612
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9613
 
  php_c_post=
9614
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9615
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9616
 
  php_cxx_post=
9617
 
  php_lo=lo
9618
 
 
9619
 
  case $with_pic in
9620
 
    yes) pic_setting='-prefer-pic';;
9621
 
    no)  pic_setting='-prefer-non-pic';;
9622
 
  esac
9623
 
 
9624
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9625
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9626
 
  shared_c_post=
9627
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9628
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9629
 
  shared_cxx_post=
9630
 
  shared_lo=lo
9631
 
 
9632
 
  php_build_target=program
9633
 
 
9634
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9635
 
  php_build_target=shared
9636
 
  
9637
 
  php_c_pre=$shared_c_pre
9638
 
  php_c_meta=$shared_c_meta
9639
 
  php_c_post=$shared_c_post
9640
 
  php_cxx_pre=$shared_cxx_pre
9641
 
  php_cxx_meta=$shared_cxx_meta
9642
 
  php_cxx_post=$shared_cxx_post
9643
 
  php_lo=$shared_lo
9644
 
;;
9645
 
  bundle) 
9646
 
  
9647
 
  OVERALL_TARGET=php
9648
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9649
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9650
 
  php_c_post=
9651
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9652
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9653
 
  php_cxx_post=
9654
 
  php_lo=lo
9655
 
 
9656
 
  case $with_pic in
9657
 
    yes) pic_setting='-prefer-pic';;
9658
 
    no)  pic_setting='-prefer-non-pic';;
9659
 
  esac
9660
 
 
9661
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9662
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9663
 
  shared_c_post=
9664
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9665
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9666
 
  shared_cxx_post=
9667
 
  shared_lo=lo
9668
 
 
9669
 
  php_build_target=program
9670
 
 
9671
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
9672
 
  php_build_target=static
9673
 
;;
9674
 
  program) 
9675
 
  OVERALL_TARGET=php
9676
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9677
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9678
 
  php_c_post=
9679
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9680
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9681
 
  php_cxx_post=
9682
 
  php_lo=lo
9683
 
 
9684
 
  case $with_pic in
9685
 
    yes) pic_setting='-prefer-pic';;
9686
 
    no)  pic_setting='-prefer-non-pic';;
9687
 
  esac
9688
 
 
9689
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9690
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9691
 
  shared_c_post=
9692
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9693
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9694
 
  shared_cxx_post=
9695
 
  shared_lo=lo
9696
 
 
9697
 
  php_build_target=program
9698
 
;;
9699
 
  esac
9700
 
    
9701
 
  
9702
 
  
9703
 
  case sapi/apache in
9704
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9705
 
  /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9706
 
  *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9707
 
  esac
9708
 
  
9709
 
  
9710
 
 
9711
 
  b_c_pre=$php_c_pre
9712
 
  b_cxx_pre=$php_cxx_pre
9713
 
  b_c_meta=$php_c_meta
9714
 
  b_cxx_meta=$php_cxx_meta
9715
 
  b_c_post=$php_c_post
9716
 
  b_cxx_post=$php_cxx_post
9717
 
  b_lo=$php_lo
9718
 
 
9719
 
 
9720
 
  old_IFS=$IFS
9721
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9722
 
  
9723
 
      IFS=.
9724
 
      set $ac_src
9725
 
      ac_obj=$1
9726
 
      IFS=$old_IFS
9727
 
      
9728
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9729
 
 
9730
 
      case $ac_src in
9731
 
        *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9732
 
        *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9733
 
        *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9734
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
9735
 
      esac
9736
 
 
9737
 
    cat >>Makefile.objects<<EOF
9738
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9739
 
        $ac_comp
9740
 
EOF
9741
 
  done
9742
 
 
9743
 
 
9744
 
 
9745
 
    PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
9746
 
    APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
9747
 
    { $as_echo "$as_me:$LINENO: result: yes - Apache 1.3.x" >&5
9748
 
$as_echo "yes - Apache 1.3.x" >&6; }
9749
 
    STRONGHOLD=
9750
 
    if test -f $PHP_APACHE/src/include/ap_config.h; then
9751
 
      
9752
 
cat >>confdefs.h <<\_ACEOF
9753
 
@%:@define HAVE_AP_CONFIG_H 1
9754
 
_ACEOF
9755
 
 
9756
 
    fi
9757
 
    if test -f $PHP_APACHE/src/include/ap_compat.h; then
9758
 
      
9759
 
cat >>confdefs.h <<\_ACEOF
9760
 
@%:@define HAVE_AP_COMPAT_H 1
9761
 
_ACEOF
9762
 
 
9763
 
      if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
9764
 
        { { $as_echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
9765
 
$as_echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
9766
 
   { (exit 1); exit 1; }; }
9767
 
      fi
9768
 
    elif test -f $PHP_APACHE/src/include/compat.h; then
9769
 
      
9770
 
cat >>confdefs.h <<\_ACEOF
9771
 
@%:@define HAVE_OLD_COMPAT_H 1
9772
 
_ACEOF
9773
 
 
9774
 
    fi
9775
 
  # For StrongHold 2.2
9776
 
  elif test -f $PHP_APACHE/apache/httpd.h; then
9777
 
    APACHE_INCLUDE="-I$PHP_APACHE/apache -I$PHP_APACHE/ssl/include"
9778
 
    APACHE_TARGET=$PHP_APACHE/apache
9779
 
    
9780
 
  if test "$PHP_SAPI" != "default"; then
9781
 
{ { $as_echo "$as_me:$LINENO: error: 
9782
 
+--------------------------------------------------------------------+
9783
 
|                        *** ATTENTION ***                           |
9784
 
|                                                                    |
9785
 
| You've configured multiple SAPIs to be build. You can build only   |
9786
 
| one SAPI module and CLI binary at the same time.                   |
9787
 
+--------------------------------------------------------------------+
9788
 
" >&5
9789
 
$as_echo "$as_me: error: 
9790
 
+--------------------------------------------------------------------+
9791
 
|                        *** ATTENTION ***                           |
9792
 
|                                                                    |
9793
 
| You've configured multiple SAPIs to be build. You can build only   |
9794
 
| one SAPI module and CLI binary at the same time.                   |
9795
 
+--------------------------------------------------------------------+
9796
 
" >&2;}
9797
 
   { (exit 1); exit 1; }; }
9798
 
  fi
9799
 
 
9800
 
  PHP_SAPI=apache
9801
 
  
9802
 
  case "static" in
9803
 
  static) 
9804
 
  
9805
 
  OVERALL_TARGET=php
9806
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9807
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9808
 
  php_c_post=
9809
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9810
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9811
 
  php_cxx_post=
9812
 
  php_lo=lo
9813
 
 
9814
 
  case $with_pic in
9815
 
    yes) pic_setting='-prefer-pic';;
9816
 
    no)  pic_setting='-prefer-non-pic';;
9817
 
  esac
9818
 
 
9819
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9820
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9821
 
  shared_c_post=
9822
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9823
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9824
 
  shared_cxx_post=
9825
 
  shared_lo=lo
9826
 
 
9827
 
  php_build_target=program
9828
 
 
9829
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9830
 
  php_build_target=static
9831
 
;;
9832
 
  shared) 
9833
 
  
9834
 
  OVERALL_TARGET=php
9835
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9836
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9837
 
  php_c_post=
9838
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9839
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9840
 
  php_cxx_post=
9841
 
  php_lo=lo
9842
 
 
9843
 
  case $with_pic in
9844
 
    yes) pic_setting='-prefer-pic';;
9845
 
    no)  pic_setting='-prefer-non-pic';;
9846
 
  esac
9847
 
 
9848
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9849
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9850
 
  shared_c_post=
9851
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9852
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9853
 
  shared_cxx_post=
9854
 
  shared_lo=lo
9855
 
 
9856
 
  php_build_target=program
9857
 
 
9858
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9859
 
  php_build_target=shared
9860
 
  
9861
 
  php_c_pre=$shared_c_pre
9862
 
  php_c_meta=$shared_c_meta
9863
 
  php_c_post=$shared_c_post
9864
 
  php_cxx_pre=$shared_cxx_pre
9865
 
  php_cxx_meta=$shared_cxx_meta
9866
 
  php_cxx_post=$shared_cxx_post
9867
 
  php_lo=$shared_lo
9868
 
;;
9869
 
  bundle) 
9870
 
  
9871
 
  OVERALL_TARGET=php
9872
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9873
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9874
 
  php_c_post=
9875
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9876
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9877
 
  php_cxx_post=
9878
 
  php_lo=lo
9879
 
 
9880
 
  case $with_pic in
9881
 
    yes) pic_setting='-prefer-pic';;
9882
 
    no)  pic_setting='-prefer-non-pic';;
9883
 
  esac
9884
 
 
9885
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9886
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9887
 
  shared_c_post=
9888
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9889
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9890
 
  shared_cxx_post=
9891
 
  shared_lo=lo
9892
 
 
9893
 
  php_build_target=program
9894
 
 
9895
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
9896
 
  php_build_target=static
9897
 
;;
9898
 
  program) 
9899
 
  OVERALL_TARGET=php
9900
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9901
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9902
 
  php_c_post=
9903
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9904
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9905
 
  php_cxx_post=
9906
 
  php_lo=lo
9907
 
 
9908
 
  case $with_pic in
9909
 
    yes) pic_setting='-prefer-pic';;
9910
 
    no)  pic_setting='-prefer-non-pic';;
9911
 
  esac
9912
 
 
9913
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9914
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9915
 
  shared_c_post=
9916
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9917
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9918
 
  shared_cxx_post=
9919
 
  shared_lo=lo
9920
 
 
9921
 
  php_build_target=program
9922
 
;;
9923
 
  esac
9924
 
    
9925
 
  
9926
 
  
9927
 
  case sapi/apache in
9928
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9929
 
  /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9930
 
  *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9931
 
  esac
9932
 
  
9933
 
  
9934
 
 
9935
 
  b_c_pre=$php_c_pre
9936
 
  b_cxx_pre=$php_cxx_pre
9937
 
  b_c_meta=$php_c_meta
9938
 
  b_cxx_meta=$php_cxx_meta
9939
 
  b_c_post=$php_c_post
9940
 
  b_cxx_post=$php_cxx_post
9941
 
  b_lo=$php_lo
9942
 
 
9943
 
 
9944
 
  old_IFS=$IFS
9945
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9946
 
  
9947
 
      IFS=.
9948
 
      set $ac_src
9949
 
      ac_obj=$1
9950
 
      IFS=$old_IFS
9951
 
      
9952
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9953
 
 
9954
 
      case $ac_src in
9955
 
        *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9956
 
        *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9957
 
        *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
9958
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
9959
 
      esac
9960
 
 
9961
 
    cat >>Makefile.objects<<EOF
9962
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9963
 
        $ac_comp
9964
 
EOF
9965
 
  done
9966
 
 
9967
 
 
9968
 
 
9969
 
    PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
9970
 
    APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET"
9971
 
    STRONGHOLD=-DSTRONGHOLD=1
9972
 
    { $as_echo "$as_me:$LINENO: result: yes - StrongHold" >&5
9973
 
$as_echo "yes - StrongHold" >&6; }
9974
 
    if test -f $PHP_APACHE/apache/ap_config.h; then
9975
 
      
9976
 
cat >>confdefs.h <<\_ACEOF
9977
 
@%:@define HAVE_AP_CONFIG_H 1
9978
 
_ACEOF
9979
 
 
9980
 
    fi
9981
 
    if test -f $PHP_APACHE/src/ap_compat.h; then
9982
 
      
9983
 
cat >>confdefs.h <<\_ACEOF
9984
 
@%:@define HAVE_AP_COMPAT_H 1
9985
 
_ACEOF
9986
 
 
9987
 
      if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
9988
 
        { { $as_echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
9989
 
$as_echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
9990
 
   { (exit 1); exit 1; }; }
9991
 
      fi
9992
 
    elif test -f $PHP_APACHE/src/compat.h; then
9993
 
      
9994
 
cat >>confdefs.h <<\_ACEOF
9995
 
@%:@define HAVE_OLD_COMPAT_H 1
9996
 
_ACEOF
9997
 
 
9998
 
    fi
9999
 
  else
10000
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
10001
 
$as_echo "no" >&6; }
10002
 
    { { $as_echo "$as_me:$LINENO: error: Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" >&5
10003
 
$as_echo "$as_me: error: Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" >&2;}
10004
 
   { (exit 1); exit 1; }; }
10005
 
  fi
10006
 
else
10007
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
10008
 
$as_echo "no" >&6; }
10009
 
fi
10010
 
 
10011
 
# compatibility
10012
 
if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
10013
 
  enable_mod_charset=$with_mod_charset
10014
 
fi
10015
 
  
10016
 
 
10017
 
php_enable_mod_charset=no
10018
 
 
10019
 
{ $as_echo "$as_me:$LINENO: checking whether to enable Apache charset compatibility option" >&5
10020
 
$as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; }
10021
 
@%:@ Check whether --enable-mod-charset was given.
10022
 
if test "${enable_mod_charset+set}" = set; then
10023
 
  enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
10024
 
else
10025
 
  
10026
 
  PHP_MOD_CHARSET=no
10027
 
  
10028
 
 
10029
 
fi
10030
 
 
10031
 
 
10032
 
ext_output=$PHP_MOD_CHARSET
10033
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
10034
 
$as_echo "$ext_output" >&6; }
10035
 
 
10036
 
 
10037
 
 
10038
 
 
10039
 
if test "$PHP_MOD_CHARSET" = "yes"; then
10040
 
  
10041
 
cat >>confdefs.h <<\_ACEOF
10042
 
@%:@define USE_TRANSFER_TABLES 1
10043
 
_ACEOF
10044
 
 
10045
 
fi
10046
 
 
10047
 
if test "$APACHE_MODULE" = "yes"; then
10048
 
  
10049
 
  if test -n "$GCC"; then
10050
 
        
10051
 
  gcc_arg_name=ac_cv_gcc_arg_rdynamic
10052
 
  { $as_echo "$as_me:$LINENO: checking whether $CC supports -rdynamic" >&5
10053
 
$as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
10054
 
if test "${ac_cv_gcc_arg_rdynamic+set}" = set; then
10055
 
  $as_echo_n "(cached) " >&6
10056
 
else
10057
 
  
10058
 
  echo 'void somefunc() { };' > conftest.c
10059
 
  cmd='$CC -rdynamic -c conftest.c'
10060
 
  if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
10061
 
    ac_result=no
10062
 
  else
10063
 
    ac_result=yes
10064
 
  fi
10065
 
  eval $gcc_arg_name=$ac_result
10066
 
  rm -f conftest.*
10067
 
  
10068
 
fi
10069
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_arg_rdynamic" >&5
10070
 
$as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
10071
 
  if eval test "\$$gcc_arg_name" = "yes"; then
10072
 
    gcc_rdynamic=yes
10073
 
  else
10074
 
    :
10075
 
    
10076
 
  fi
10077
 
 
10078
 
    if test "$gcc_rdynamic" = "yes"; then
10079
 
      PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
10080
 
    fi
10081
 
  fi
10082
 
 
10083
 
  $php_shtool mkdir -p sapi/apache
10084
 
  
10085
 
  PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache/libphp5.module"
10086
 
 
10087
 
fi
10088
 
 
10089
 
if test -n "$APACHE_INSTALL"; then
10090
 
  if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
10091
 
    APXS_EXP=-bE:sapi/apache/mod_php5.exp
10092
 
  fi
10093
 
 
10094
 
  
10095
 
{ $as_echo "$as_me:$LINENO: checking for member fd in BUFF *" >&5
10096
 
$as_echo_n "checking for member fd in BUFF *... " >&6; }
10097
 
if test "${ac_cv_php_fd_in_buff+set}" = set; then
10098
 
  $as_echo_n "(cached) " >&6
10099
 
else
10100
 
  
10101
 
  save=$CPPFLAGS
10102
 
  if test -n "$APXS_INCLUDEDIR"; then
10103
 
    CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
10104
 
  else
10105
 
    CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
10106
 
  fi
10107
 
  cat >conftest.$ac_ext <<_ACEOF
10108
 
/* confdefs.h.  */
10109
 
_ACEOF
10110
 
cat confdefs.h >>conftest.$ac_ext
10111
 
cat >>conftest.$ac_ext <<_ACEOF
10112
 
/* end confdefs.h.  */
10113
 
#include <httpd.h>
10114
 
int
10115
 
main ()
10116
 
{
10117
 
conn_rec *c; int fd = c->client->fd;
10118
 
  ;
10119
 
  return 0;
10120
 
}
10121
 
_ACEOF
10122
 
rm -f conftest.$ac_objext
10123
 
if { (ac_try="$ac_compile"
10124
 
case "(($ac_try" in
10125
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126
 
  *) ac_try_echo=$ac_try;;
10127
 
esac
10128
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10129
 
$as_echo "$ac_try_echo") >&5
10130
 
  (eval "$ac_compile") 2>conftest.er1
10131
 
  ac_status=$?
10132
 
  grep -v '^ *+' conftest.er1 >conftest.err
10133
 
  rm -f conftest.er1
10134
 
  cat conftest.err >&5
10135
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136
 
  (exit $ac_status); } && {
10137
 
         test -z "$ac_c_werror_flag" ||
10138
 
         test ! -s conftest.err
10139
 
       } && test -s conftest.$ac_objext; then
10140
 
  
10141
 
    ac_cv_php_fd_in_buff=yes
10142
 
else
10143
 
  $as_echo "$as_me: failed program was:" >&5
10144
 
sed 's/^/| /' conftest.$ac_ext >&5
10145
 
 
10146
 
        ac_cv_php_fd_in_buff=no
10147
 
fi
10148
 
 
10149
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150
 
  CPPFLAGS=$save
10151
 
 
10152
 
fi
10153
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_fd_in_buff" >&5
10154
 
$as_echo "$ac_cv_php_fd_in_buff" >&6; }
10155
 
if test "$ac_cv_php_fd_in_buff" = "yes"; then
10156
 
  
10157
 
cat >>confdefs.h <<\_ACEOF
10158
 
@%:@define PHP_APACHE_HAVE_CLIENT_FD 1
10159
 
_ACEOF
10160
 
 
10161
 
fi
10162
 
 
10163
 
  INSTALL_IT=$APACHE_INSTALL
10164
 
 
10165
 
  
10166
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
10167
 
 
10168
 
  
10169
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
10170
 
 
10171
 
  
10172
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
10173
 
 
10174
 
  
10175
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
10176
 
 
10177
 
  
10178
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
10179
 
 
10180
 
  
10181
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INSTALL"
10182
 
 
10183
 
  
10184
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
10185
 
 
10186
 
fi
10187
 
 
10188
 
 
10189
 
 
10190
 
 
10191
 
 
10192
 
php_with_apache_hooks=no
10193
 
 
10194
 
 
10195
 
 
10196
 
@%:@ Check whether --with-apache-hooks was given.
10197
 
if test "${with_apache_hooks+set}" = set; then
10198
 
  withval=$with_apache_hooks; PHP_APACHE_HOOKS=$withval
10199
 
else
10200
 
  
10201
 
  PHP_APACHE_HOOKS=no
10202
 
  
10203
 
 
10204
 
fi
10205
 
 
10206
 
 
10207
 
ext_output=$PHP_APACHE_HOOKS
10208
 
 
10209
 
 
10210
 
 
10211
 
 
10212
 
 
10213
 
{ $as_echo "$as_me:$LINENO: checking for Apache 1.x (hooks) module support via DSO through APXS" >&5
10214
 
$as_echo_n "checking for Apache 1.x (hooks) module support via DSO through APXS... " >&6; }
10215
 
 
10216
 
if test "$PHP_APACHE_HOOKS" != "no"; then
10217
 
  if test "$PHP_APACHE_HOOKS" = "yes"; then
10218
 
    APXS=apxs
10219
 
    $APXS -q CFLAGS >/dev/null 2>&1
10220
 
    if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x 
10221
 
      APXS=/usr/sbin/apxs
10222
 
    fi
10223
 
  else
10224
 
    
10225
 
  if test -z "$PHP_APACHE_HOOKS" || echo "$PHP_APACHE_HOOKS" | grep '^/' >/dev/null ; then
10226
 
    APXS=$PHP_APACHE_HOOKS
10227
 
  else
10228
 
    
10229
 
    ep_dir="`echo $PHP_APACHE_HOOKS|$SED 's%/*[^/][^/]*/*$%%'`"
10230
 
    
10231
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
10232
 
    APXS="$ep_realdir/`basename \"$PHP_APACHE_HOOKS\"`"
10233
 
  fi
10234
 
 
10235
 
  fi
10236
 
 
10237
 
  $APXS -q CFLAGS >/dev/null 2>&1
10238
 
  if test "$?" != "0"; then
10239
 
    { $as_echo "$as_me:$LINENO: result: " >&5
10240
 
$as_echo "" >&6; }
10241
 
    { $as_echo "$as_me:$LINENO: result: " >&5
10242
 
$as_echo "" >&6; }
10243
 
    { $as_echo "$as_me:$LINENO: result: Sorry, I was not able to successfully run APXS.  Possible reasons:" >&5
10244
 
$as_echo "Sorry, I was not able to successfully run APXS.  Possible reasons:" >&6; }
10245
 
    { $as_echo "$as_me:$LINENO: result: " >&5
10246
 
$as_echo "" >&6; }
10247
 
    { $as_echo "$as_me:$LINENO: result: 1.  Perl is not installed;" >&5
10248
 
$as_echo "1.  Perl is not installed;" >&6; }
10249
 
    { $as_echo "$as_me:$LINENO: result: 2.  Apache was not compiled with DSO support (--enable-module=so);" >&5
10250
 
$as_echo "2.  Apache was not compiled with DSO support (--enable-module=so);" >&6; }
10251
 
    { $as_echo "$as_me:$LINENO: result: 3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&5
10252
 
$as_echo "3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&6; }
10253
 
    { $as_echo "$as_me:$LINENO: result: The output of $APXS follows" >&5
10254
 
$as_echo "The output of $APXS follows" >&6; }
10255
 
    $APXS -q CFLAGS
10256
 
    { { $as_echo "$as_me:$LINENO: error: Aborting" >&5
10257
 
$as_echo "$as_me: error: Aborting" >&2;}
10258
 
   { (exit 1); exit 1; }; } 
10259
 
  fi 
10260
 
 
10261
 
  APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
10262
 
  APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
10263
 
  APXS_CFLAGS=`$APXS -q CFLAGS`
10264
 
  APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
10265
 
  APACHE_INCLUDE=-I$APXS_INCLUDEDIR
10266
 
 
10267
 
  # Test that we're trying to configure with apache 1.x
10268
 
  
10269
 
  ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
10270
 
  ac_IFS=$IFS
10271
 
IFS="- /.
10272
 
"
10273
 
  set $ac_output
10274
 
  IFS=$ac_IFS
10275
 
 
10276
 
  APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
10277
 
 
10278
 
  if test "$APACHE_VERSION" -ge 2000000; then
10279
 
    { { $as_echo "$as_me:$LINENO: error: You have enabled Apache 1.3 support while your server is Apache 2.  Please use the appropiate switch --with-apxs2" >&5
10280
 
$as_echo "$as_me: error: You have enabled Apache 1.3 support while your server is Apache 2.  Please use the appropiate switch --with-apxs2" >&2;}
10281
 
   { (exit 1); exit 1; }; } 
10282
 
  fi
10283
 
 
10284
 
  for flag in $APXS_CFLAGS; do
10285
 
    case $flag in
10286
 
    -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
10287
 
    esac
10288
 
  done
10289
 
 
10290
 
  case $host_alias in
10291
 
  *aix*)
10292
 
    APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
10293
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
10294
 
    PHP_AIX_LDFLAGS="-Wl,-brtl"
10295
 
    build_type=shared
10296
 
    ;;
10297
 
  *darwin*)
10298
 
    MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
10299
 
    
10300
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
10301
 
 
10302
 
    SAPI_SHARED=libs/libphp5.so
10303
 
    build_type=bundle
10304
 
    ;;
10305
 
  *)
10306
 
    build_type=shared
10307
 
    ;;
10308
 
  esac
10309
 
 
10310
 
  
10311
 
  if test "$PHP_SAPI" != "default"; then
10312
 
{ { $as_echo "$as_me:$LINENO: error: 
10313
 
+--------------------------------------------------------------------+
10314
 
|                        *** ATTENTION ***                           |
10315
 
|                                                                    |
10316
 
| You've configured multiple SAPIs to be build. You can build only   |
10317
 
| one SAPI module and CLI binary at the same time.                   |
10318
 
+--------------------------------------------------------------------+
10319
 
" >&5
10320
 
$as_echo "$as_me: error: 
10321
 
+--------------------------------------------------------------------+
10322
 
|                        *** ATTENTION ***                           |
10323
 
|                                                                    |
10324
 
| You've configured multiple SAPIs to be build. You can build only   |
10325
 
| one SAPI module and CLI binary at the same time.                   |
10326
 
+--------------------------------------------------------------------+
10327
 
" >&2;}
10328
 
   { (exit 1); exit 1; }; }
10329
 
  fi
10330
 
 
10331
 
  PHP_SAPI=apache_hooks
10332
 
  
10333
 
  case "$build_type" in
10334
 
  static) 
10335
 
  
10336
 
  OVERALL_TARGET=php
10337
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10338
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10339
 
  php_c_post=
10340
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10341
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10342
 
  php_cxx_post=
10343
 
  php_lo=lo
10344
 
 
10345
 
  case $with_pic in
10346
 
    yes) pic_setting='-prefer-pic';;
10347
 
    no)  pic_setting='-prefer-non-pic';;
10348
 
  esac
10349
 
 
10350
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10351
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10352
 
  shared_c_post=
10353
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10354
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10355
 
  shared_cxx_post=
10356
 
  shared_lo=lo
10357
 
 
10358
 
  php_build_target=program
10359
 
 
10360
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10361
 
  php_build_target=static
10362
 
;;
10363
 
  shared) 
10364
 
  
10365
 
  OVERALL_TARGET=php
10366
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10367
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10368
 
  php_c_post=
10369
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10370
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10371
 
  php_cxx_post=
10372
 
  php_lo=lo
10373
 
 
10374
 
  case $with_pic in
10375
 
    yes) pic_setting='-prefer-pic';;
10376
 
    no)  pic_setting='-prefer-non-pic';;
10377
 
  esac
10378
 
 
10379
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10380
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10381
 
  shared_c_post=
10382
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10383
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10384
 
  shared_cxx_post=
10385
 
  shared_lo=lo
10386
 
 
10387
 
  php_build_target=program
10388
 
 
10389
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10390
 
  php_build_target=shared
10391
 
  
10392
 
  php_c_pre=$shared_c_pre
10393
 
  php_c_meta=$shared_c_meta
10394
 
  php_c_post=$shared_c_post
10395
 
  php_cxx_pre=$shared_cxx_pre
10396
 
  php_cxx_meta=$shared_cxx_meta
10397
 
  php_cxx_post=$shared_cxx_post
10398
 
  php_lo=$shared_lo
10399
 
;;
10400
 
  bundle) 
10401
 
  
10402
 
  OVERALL_TARGET=php
10403
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10404
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10405
 
  php_c_post=
10406
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10407
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10408
 
  php_cxx_post=
10409
 
  php_lo=lo
10410
 
 
10411
 
  case $with_pic in
10412
 
    yes) pic_setting='-prefer-pic';;
10413
 
    no)  pic_setting='-prefer-non-pic';;
10414
 
  esac
10415
 
 
10416
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10417
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10418
 
  shared_c_post=
10419
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10420
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10421
 
  shared_cxx_post=
10422
 
  shared_lo=lo
10423
 
 
10424
 
  php_build_target=program
10425
 
 
10426
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10427
 
  php_build_target=static
10428
 
;;
10429
 
  program) 
10430
 
  OVERALL_TARGET=php
10431
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10432
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10433
 
  php_c_post=
10434
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10435
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10436
 
  php_cxx_post=
10437
 
  php_lo=lo
10438
 
 
10439
 
  case $with_pic in
10440
 
    yes) pic_setting='-prefer-pic';;
10441
 
    no)  pic_setting='-prefer-non-pic';;
10442
 
  esac
10443
 
 
10444
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10445
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10446
 
  shared_c_post=
10447
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10448
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10449
 
  shared_cxx_post=
10450
 
  shared_lo=lo
10451
 
 
10452
 
  php_build_target=program
10453
 
;;
10454
 
  esac
10455
 
    
10456
 
  
10457
 
  
10458
 
  case sapi/apache_hooks in
10459
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10460
 
  /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10461
 
  *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10462
 
  esac
10463
 
  
10464
 
  
10465
 
 
10466
 
  b_c_pre=$php_c_pre
10467
 
  b_cxx_pre=$php_cxx_pre
10468
 
  b_c_meta=$php_c_meta
10469
 
  b_cxx_meta=$php_cxx_meta
10470
 
  b_c_post=$php_c_post
10471
 
  b_cxx_post=$php_cxx_post
10472
 
  b_lo=$php_lo
10473
 
 
10474
 
 
10475
 
  old_IFS=$IFS
10476
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
10477
 
  
10478
 
      IFS=.
10479
 
      set $ac_src
10480
 
      ac_obj=$1
10481
 
      IFS=$old_IFS
10482
 
      
10483
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10484
 
 
10485
 
      case $ac_src in
10486
 
        *.c) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10487
 
        *.s) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10488
 
        *.S) ac_comp="$b_c_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10489
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
10490
 
      esac
10491
 
 
10492
 
    cat >>Makefile.objects<<EOF
10493
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10494
 
        $ac_comp
10495
 
EOF
10496
 
  done
10497
 
 
10498
 
 
10499
 
 
10500
 
 
10501
 
  # Test whether apxs support -S option
10502
 
  $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
10503
 
 
10504
 
  if test "$?" != "0"; then
10505
 
    APACHE_HOOKS_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
10506
 
  else 
10507
 
    APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
10508
 
    if test -z `$APXS -q SYSCONFDIR`; then
10509
 
      APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
10510
 
                       $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
10511
 
                             -i -n php5 $SAPI_SHARED"
10512
 
    else
10513
 
      APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
10514
 
      APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
10515
 
                      \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
10516
 
                       $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
10517
 
                             -S SYSCONFDIR='$APXS_SYSCONFDIR' \
10518
 
                             -i -a -n php5 $SAPI_SHARED"
10519
 
    fi
10520
 
  fi
10521
 
 
10522
 
  if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
10523
 
    PHP_APXS_BROKEN=yes
10524
 
  fi
10525
 
  STRONGHOLD=
10526
 
  
10527
 
cat >>confdefs.h <<\_ACEOF
10528
 
@%:@define HAVE_AP_CONFIG_H 1
10529
 
_ACEOF
10530
 
 
10531
 
  
10532
 
cat >>confdefs.h <<\_ACEOF
10533
 
@%:@define HAVE_AP_COMPAT_H 1
10534
 
_ACEOF
10535
 
 
10536
 
  
10537
 
cat >>confdefs.h <<\_ACEOF
10538
 
@%:@define HAVE_APACHE_HOOKS 1
10539
 
_ACEOF
10540
 
 
10541
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10542
 
$as_echo "yes" >&6; }
10543
 
else
10544
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
10545
 
$as_echo "no" >&6; }
10546
 
fi
10547
 
 
10548
 
 
10549
 
php_with_apache_hooks_static=no
10550
 
 
10551
 
 
10552
 
 
10553
 
@%:@ Check whether --with-apache-hooks-static was given.
10554
 
if test "${with_apache_hooks_static+set}" = set; then
10555
 
  withval=$with_apache_hooks_static; PHP_APACHE_HOOKS_STATIC=$withval
10556
 
else
10557
 
  
10558
 
  PHP_APACHE_HOOKS_STATIC=no
10559
 
  
10560
 
 
10561
 
fi
10562
 
 
10563
 
 
10564
 
ext_output=$PHP_APACHE_HOOKS_STATIC
10565
 
 
10566
 
 
10567
 
 
10568
 
 
10569
 
 
10570
 
{ $as_echo "$as_me:$LINENO: checking for Apache 1.x (hooks) module support" >&5
10571
 
$as_echo_n "checking for Apache 1.x (hooks) module support... " >&6; }
10572
 
 
10573
 
if test "$PHP_SAPI" != "apache" && test "$PHP_SAPI" != "apache_hooks" && test "$PHP_APACHE_HOOKS_STATIC" != "no"; then
10574
 
 
10575
 
  if test "$PHP_APACHE_HOOKS_STATIC" = "yes"; then
10576
 
    # Apache's default directory
10577
 
    PHP_APACHE_HOOKS_STATIC=/usr/local/apache
10578
 
  fi
10579
 
 
10580
 
  APACHE_HOOKS_INSTALL_FILES="\$(srcdir)/sapi/apache_hooks/mod_php5.* sapi/apache_hooks/libphp5.module"
10581
 
 
10582
 
  
10583
 
cat >>confdefs.h <<\_ACEOF
10584
 
@%:@define HAVE_APACHE 1
10585
 
_ACEOF
10586
 
 
10587
 
  APACHE_HOOKS_MODULE=yes
10588
 
  
10589
 
  if test -z "$PHP_APACHE_HOOKS_STATIC" || echo "$PHP_APACHE_HOOKS_STATIC" | grep '^/' >/dev/null ; then
10590
 
    PHP_APACHE_HOOKS_STATIC=$PHP_APACHE_HOOKS_STATIC
10591
 
  else
10592
 
    
10593
 
    ep_dir="`echo $PHP_APACHE_HOOKS_STATIC|$SED 's%/*[^/][^/]*/*$%%'`"
10594
 
    
10595
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
10596
 
    PHP_APACHE_HOOKS_STATIC="$ep_realdir/`basename \"$PHP_APACHE_HOOKS_STATIC\"`"
10597
 
  fi
10598
 
 
10599
 
  # For Apache 1.2.x
10600
 
  if test -f $PHP_APACHE_HOOKS_STATIC/src/httpd.h; then 
10601
 
    APACHE_INCLUDE=-I$PHP_APACHE_HOOKS_STATIC/src
10602
 
    APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src
10603
 
    
10604
 
  if test "$PHP_SAPI" != "default"; then
10605
 
{ { $as_echo "$as_me:$LINENO: error: 
10606
 
+--------------------------------------------------------------------+
10607
 
|                        *** ATTENTION ***                           |
10608
 
|                                                                    |
10609
 
| You've configured multiple SAPIs to be build. You can build only   |
10610
 
| one SAPI module and CLI binary at the same time.                   |
10611
 
+--------------------------------------------------------------------+
10612
 
" >&5
10613
 
$as_echo "$as_me: error: 
10614
 
+--------------------------------------------------------------------+
10615
 
|                        *** ATTENTION ***                           |
10616
 
|                                                                    |
10617
 
| You've configured multiple SAPIs to be build. You can build only   |
10618
 
| one SAPI module and CLI binary at the same time.                   |
10619
 
+--------------------------------------------------------------------+
10620
 
" >&2;}
10621
 
   { (exit 1); exit 1; }; }
10622
 
  fi
10623
 
 
10624
 
  PHP_SAPI=apache_hooks
10625
 
  
10626
 
  case "static" in
10627
 
  static) 
10628
 
  
10629
 
  OVERALL_TARGET=php
10630
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10631
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10632
 
  php_c_post=
10633
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10634
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10635
 
  php_cxx_post=
10636
 
  php_lo=lo
10637
 
 
10638
 
  case $with_pic in
10639
 
    yes) pic_setting='-prefer-pic';;
10640
 
    no)  pic_setting='-prefer-non-pic';;
10641
 
  esac
10642
 
 
10643
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10644
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10645
 
  shared_c_post=
10646
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10647
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10648
 
  shared_cxx_post=
10649
 
  shared_lo=lo
10650
 
 
10651
 
  php_build_target=program
10652
 
 
10653
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10654
 
  php_build_target=static
10655
 
;;
10656
 
  shared) 
10657
 
  
10658
 
  OVERALL_TARGET=php
10659
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10660
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10661
 
  php_c_post=
10662
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10663
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10664
 
  php_cxx_post=
10665
 
  php_lo=lo
10666
 
 
10667
 
  case $with_pic in
10668
 
    yes) pic_setting='-prefer-pic';;
10669
 
    no)  pic_setting='-prefer-non-pic';;
10670
 
  esac
10671
 
 
10672
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10673
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10674
 
  shared_c_post=
10675
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10676
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10677
 
  shared_cxx_post=
10678
 
  shared_lo=lo
10679
 
 
10680
 
  php_build_target=program
10681
 
 
10682
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10683
 
  php_build_target=shared
10684
 
  
10685
 
  php_c_pre=$shared_c_pre
10686
 
  php_c_meta=$shared_c_meta
10687
 
  php_c_post=$shared_c_post
10688
 
  php_cxx_pre=$shared_cxx_pre
10689
 
  php_cxx_meta=$shared_cxx_meta
10690
 
  php_cxx_post=$shared_cxx_post
10691
 
  php_lo=$shared_lo
10692
 
;;
10693
 
  bundle) 
10694
 
  
10695
 
  OVERALL_TARGET=php
10696
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10697
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10698
 
  php_c_post=
10699
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10700
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10701
 
  php_cxx_post=
10702
 
  php_lo=lo
10703
 
 
10704
 
  case $with_pic in
10705
 
    yes) pic_setting='-prefer-pic';;
10706
 
    no)  pic_setting='-prefer-non-pic';;
10707
 
  esac
10708
 
 
10709
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10710
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10711
 
  shared_c_post=
10712
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10713
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10714
 
  shared_cxx_post=
10715
 
  shared_lo=lo
10716
 
 
10717
 
  php_build_target=program
10718
 
 
10719
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10720
 
  php_build_target=static
10721
 
;;
10722
 
  program) 
10723
 
  OVERALL_TARGET=php
10724
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10725
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10726
 
  php_c_post=
10727
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10728
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10729
 
  php_cxx_post=
10730
 
  php_lo=lo
10731
 
 
10732
 
  case $with_pic in
10733
 
    yes) pic_setting='-prefer-pic';;
10734
 
    no)  pic_setting='-prefer-non-pic';;
10735
 
  esac
10736
 
 
10737
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10738
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10739
 
  shared_c_post=
10740
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10741
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10742
 
  shared_cxx_post=
10743
 
  shared_lo=lo
10744
 
 
10745
 
  php_build_target=program
10746
 
;;
10747
 
  esac
10748
 
    
10749
 
  
10750
 
  
10751
 
  case sapi/apache_hooks in
10752
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10753
 
  /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10754
 
  *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10755
 
  esac
10756
 
  
10757
 
  
10758
 
 
10759
 
  b_c_pre=$php_c_pre
10760
 
  b_cxx_pre=$php_cxx_pre
10761
 
  b_c_meta=$php_c_meta
10762
 
  b_cxx_meta=$php_cxx_meta
10763
 
  b_c_post=$php_c_post
10764
 
  b_cxx_post=$php_cxx_post
10765
 
  b_lo=$php_lo
10766
 
 
10767
 
 
10768
 
  old_IFS=$IFS
10769
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
10770
 
  
10771
 
      IFS=.
10772
 
      set $ac_src
10773
 
      ac_obj=$1
10774
 
      IFS=$old_IFS
10775
 
      
10776
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10777
 
 
10778
 
      case $ac_src in
10779
 
        *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10780
 
        *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10781
 
        *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10782
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
10783
 
      esac
10784
 
 
10785
 
    cat >>Makefile.objects<<EOF
10786
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10787
 
        $ac_comp
10788
 
EOF
10789
 
  done
10790
 
 
10791
 
 
10792
 
 
10793
 
    APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
10794
 
    PHP_LIBS="-L. -lphp3"
10795
 
    { $as_echo "$as_me:$LINENO: result: yes - Apache 1.2.x" >&5
10796
 
$as_echo "yes - Apache 1.2.x" >&6; }
10797
 
    STRONGHOLD=
10798
 
    if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_config.h; then
10799
 
      
10800
 
cat >>confdefs.h <<\_ACEOF
10801
 
@%:@define HAVE_AP_CONFIG_H 1
10802
 
_ACEOF
10803
 
 
10804
 
    fi
10805
 
  # For Apache 2.0.x
10806
 
  elif test -f $PHP_APACHE_HOOKS_STATIC/include/httpd.h && test -f $PHP_APACHE_HOOKS_STATIC/srclib/apr/include/apr_general.h ; then
10807
 
    { { $as_echo "$as_me:$LINENO: error: Use --with-apxs2 with Apache 2.x!" >&5
10808
 
$as_echo "$as_me: error: Use --with-apxs2 with Apache 2.x!" >&2;}
10809
 
   { (exit 1); exit 1; }; }
10810
 
  # For Apache 1.3.x
10811
 
  elif test -f $PHP_APACHE_HOOKS_STATIC/src/main/httpd.h; then
10812
 
    APACHE_HAS_REGEX=1
10813
 
    APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/main -I$PHP_APACHE_HOOKS_STATIC/src/os/unix -I$PHP_APACHE_HOOKS_STATIC/src/ap"
10814
 
    APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
10815
 
    if test ! -d $APACHE_TARGET; then
10816
 
      mkdir $APACHE_TARGET
10817
 
    fi
10818
 
    
10819
 
  if test "$PHP_SAPI" != "default"; then
10820
 
{ { $as_echo "$as_me:$LINENO: error: 
10821
 
+--------------------------------------------------------------------+
10822
 
|                        *** ATTENTION ***                           |
10823
 
|                                                                    |
10824
 
| You've configured multiple SAPIs to be build. You can build only   |
10825
 
| one SAPI module and CLI binary at the same time.                   |
10826
 
+--------------------------------------------------------------------+
10827
 
" >&5
10828
 
$as_echo "$as_me: error: 
10829
 
+--------------------------------------------------------------------+
10830
 
|                        *** ATTENTION ***                           |
10831
 
|                                                                    |
10832
 
| You've configured multiple SAPIs to be build. You can build only   |
10833
 
| one SAPI module and CLI binary at the same time.                   |
10834
 
+--------------------------------------------------------------------+
10835
 
" >&2;}
10836
 
   { (exit 1); exit 1; }; }
10837
 
  fi
10838
 
 
10839
 
  PHP_SAPI=apache_hooks
10840
 
  
10841
 
  case "static" in
10842
 
  static) 
10843
 
  
10844
 
  OVERALL_TARGET=php
10845
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10846
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10847
 
  php_c_post=
10848
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10849
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10850
 
  php_cxx_post=
10851
 
  php_lo=lo
10852
 
 
10853
 
  case $with_pic in
10854
 
    yes) pic_setting='-prefer-pic';;
10855
 
    no)  pic_setting='-prefer-non-pic';;
10856
 
  esac
10857
 
 
10858
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10859
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10860
 
  shared_c_post=
10861
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10862
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10863
 
  shared_cxx_post=
10864
 
  shared_lo=lo
10865
 
 
10866
 
  php_build_target=program
10867
 
 
10868
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10869
 
  php_build_target=static
10870
 
;;
10871
 
  shared) 
10872
 
  
10873
 
  OVERALL_TARGET=php
10874
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10875
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10876
 
  php_c_post=
10877
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10878
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10879
 
  php_cxx_post=
10880
 
  php_lo=lo
10881
 
 
10882
 
  case $with_pic in
10883
 
    yes) pic_setting='-prefer-pic';;
10884
 
    no)  pic_setting='-prefer-non-pic';;
10885
 
  esac
10886
 
 
10887
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10888
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10889
 
  shared_c_post=
10890
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10891
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10892
 
  shared_cxx_post=
10893
 
  shared_lo=lo
10894
 
 
10895
 
  php_build_target=program
10896
 
 
10897
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10898
 
  php_build_target=shared
10899
 
  
10900
 
  php_c_pre=$shared_c_pre
10901
 
  php_c_meta=$shared_c_meta
10902
 
  php_c_post=$shared_c_post
10903
 
  php_cxx_pre=$shared_cxx_pre
10904
 
  php_cxx_meta=$shared_cxx_meta
10905
 
  php_cxx_post=$shared_cxx_post
10906
 
  php_lo=$shared_lo
10907
 
;;
10908
 
  bundle) 
10909
 
  
10910
 
  OVERALL_TARGET=php
10911
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10912
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10913
 
  php_c_post=
10914
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10915
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10916
 
  php_cxx_post=
10917
 
  php_lo=lo
10918
 
 
10919
 
  case $with_pic in
10920
 
    yes) pic_setting='-prefer-pic';;
10921
 
    no)  pic_setting='-prefer-non-pic';;
10922
 
  esac
10923
 
 
10924
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10925
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10926
 
  shared_c_post=
10927
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10928
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10929
 
  shared_cxx_post=
10930
 
  shared_lo=lo
10931
 
 
10932
 
  php_build_target=program
10933
 
 
10934
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10935
 
  php_build_target=static
10936
 
;;
10937
 
  program) 
10938
 
  OVERALL_TARGET=php
10939
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10940
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10941
 
  php_c_post=
10942
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10943
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10944
 
  php_cxx_post=
10945
 
  php_lo=lo
10946
 
 
10947
 
  case $with_pic in
10948
 
    yes) pic_setting='-prefer-pic';;
10949
 
    no)  pic_setting='-prefer-non-pic';;
10950
 
  esac
10951
 
 
10952
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10953
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10954
 
  shared_c_post=
10955
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10956
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10957
 
  shared_cxx_post=
10958
 
  shared_lo=lo
10959
 
 
10960
 
  php_build_target=program
10961
 
;;
10962
 
  esac
10963
 
    
10964
 
  
10965
 
  
10966
 
  case sapi/apache_hooks in
10967
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10968
 
  /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10969
 
  *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10970
 
  esac
10971
 
  
10972
 
  
10973
 
 
10974
 
  b_c_pre=$php_c_pre
10975
 
  b_cxx_pre=$php_cxx_pre
10976
 
  b_c_meta=$php_c_meta
10977
 
  b_cxx_meta=$php_cxx_meta
10978
 
  b_c_post=$php_c_post
10979
 
  b_cxx_post=$php_cxx_post
10980
 
  b_lo=$php_lo
10981
 
 
10982
 
 
10983
 
  old_IFS=$IFS
10984
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
10985
 
  
10986
 
      IFS=.
10987
 
      set $ac_src
10988
 
      ac_obj=$1
10989
 
      IFS=$old_IFS
10990
 
      
10991
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10992
 
 
10993
 
      case $ac_src in
10994
 
        *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10995
 
        *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10996
 
        *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
10997
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
10998
 
      esac
10999
 
 
11000
 
    cat >>Makefile.objects<<EOF
11001
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
11002
 
        $ac_comp
11003
 
EOF
11004
 
  done
11005
 
 
11006
 
 
11007
 
 
11008
 
    APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache_hooks/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache_hooks/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
11009
 
    PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
11010
 
    { $as_echo "$as_me:$LINENO: result: yes - Apache 1.3.x" >&5
11011
 
$as_echo "yes - Apache 1.3.x" >&6; }
11012
 
    STRONGHOLD=
11013
 
    if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
11014
 
      
11015
 
cat >>confdefs.h <<\_ACEOF
11016
 
@%:@define HAVE_AP_CONFIG_H 1
11017
 
_ACEOF
11018
 
 
11019
 
    fi
11020
 
    if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
11021
 
      
11022
 
cat >>confdefs.h <<\_ACEOF
11023
 
@%:@define HAVE_AP_COMPAT_H 1
11024
 
_ACEOF
11025
 
 
11026
 
      if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
11027
 
        { { $as_echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
11028
 
$as_echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
11029
 
   { (exit 1); exit 1; }; }
11030
 
      fi
11031
 
    elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
11032
 
      
11033
 
cat >>confdefs.h <<\_ACEOF
11034
 
@%:@define HAVE_OLD_COMPAT_H 1
11035
 
_ACEOF
11036
 
 
11037
 
    fi
11038
 
  # Also for Apache 1.3.x
11039
 
  elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/httpd.h; then
11040
 
    APACHE_HAS_REGEX=1
11041
 
    APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/include -I$PHP_APACHE_HOOKS_STATIC/src/os/unix"
11042
 
    APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
11043
 
    if test ! -d $APACHE_TARGET; then
11044
 
      mkdir $APACHE_TARGET
11045
 
    fi
11046
 
    
11047
 
  if test "$PHP_SAPI" != "default"; then
11048
 
{ { $as_echo "$as_me:$LINENO: error: 
11049
 
+--------------------------------------------------------------------+
11050
 
|                        *** ATTENTION ***                           |
11051
 
|                                                                    |
11052
 
| You've configured multiple SAPIs to be build. You can build only   |
11053
 
| one SAPI module and CLI binary at the same time.                   |
11054
 
+--------------------------------------------------------------------+
11055
 
" >&5
11056
 
$as_echo "$as_me: error: 
11057
 
+--------------------------------------------------------------------+
11058
 
|                        *** ATTENTION ***                           |
11059
 
|                                                                    |
11060
 
| You've configured multiple SAPIs to be build. You can build only   |
11061
 
| one SAPI module and CLI binary at the same time.                   |
11062
 
+--------------------------------------------------------------------+
11063
 
" >&2;}
11064
 
   { (exit 1); exit 1; }; }
11065
 
  fi
11066
 
 
11067
 
  PHP_SAPI=apache_hooks
11068
 
  
11069
 
  case "static" in
11070
 
  static) 
11071
 
  
11072
 
  OVERALL_TARGET=php
11073
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11074
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11075
 
  php_c_post=
11076
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11077
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11078
 
  php_cxx_post=
11079
 
  php_lo=lo
11080
 
 
11081
 
  case $with_pic in
11082
 
    yes) pic_setting='-prefer-pic';;
11083
 
    no)  pic_setting='-prefer-non-pic';;
11084
 
  esac
11085
 
 
11086
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11087
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11088
 
  shared_c_post=
11089
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11090
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11091
 
  shared_cxx_post=
11092
 
  shared_lo=lo
11093
 
 
11094
 
  php_build_target=program
11095
 
 
11096
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11097
 
  php_build_target=static
11098
 
;;
11099
 
  shared) 
11100
 
  
11101
 
  OVERALL_TARGET=php
11102
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11103
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11104
 
  php_c_post=
11105
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11106
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11107
 
  php_cxx_post=
11108
 
  php_lo=lo
11109
 
 
11110
 
  case $with_pic in
11111
 
    yes) pic_setting='-prefer-pic';;
11112
 
    no)  pic_setting='-prefer-non-pic';;
11113
 
  esac
11114
 
 
11115
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11116
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11117
 
  shared_c_post=
11118
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11119
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11120
 
  shared_cxx_post=
11121
 
  shared_lo=lo
11122
 
 
11123
 
  php_build_target=program
11124
 
 
11125
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11126
 
  php_build_target=shared
11127
 
  
11128
 
  php_c_pre=$shared_c_pre
11129
 
  php_c_meta=$shared_c_meta
11130
 
  php_c_post=$shared_c_post
11131
 
  php_cxx_pre=$shared_cxx_pre
11132
 
  php_cxx_meta=$shared_cxx_meta
11133
 
  php_cxx_post=$shared_cxx_post
11134
 
  php_lo=$shared_lo
11135
 
;;
11136
 
  bundle) 
11137
 
  
11138
 
  OVERALL_TARGET=php
11139
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11140
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11141
 
  php_c_post=
11142
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11143
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11144
 
  php_cxx_post=
11145
 
  php_lo=lo
11146
 
 
11147
 
  case $with_pic in
11148
 
    yes) pic_setting='-prefer-pic';;
11149
 
    no)  pic_setting='-prefer-non-pic';;
11150
 
  esac
11151
 
 
11152
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11153
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11154
 
  shared_c_post=
11155
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11156
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11157
 
  shared_cxx_post=
11158
 
  shared_lo=lo
11159
 
 
11160
 
  php_build_target=program
11161
 
 
11162
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
11163
 
  php_build_target=static
11164
 
;;
11165
 
  program) 
11166
 
  OVERALL_TARGET=php
11167
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11168
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11169
 
  php_c_post=
11170
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11171
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11172
 
  php_cxx_post=
11173
 
  php_lo=lo
11174
 
 
11175
 
  case $with_pic in
11176
 
    yes) pic_setting='-prefer-pic';;
11177
 
    no)  pic_setting='-prefer-non-pic';;
11178
 
  esac
11179
 
 
11180
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11181
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11182
 
  shared_c_post=
11183
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11184
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11185
 
  shared_cxx_post=
11186
 
  shared_lo=lo
11187
 
 
11188
 
  php_build_target=program
11189
 
;;
11190
 
  esac
11191
 
    
11192
 
  
11193
 
  
11194
 
  case sapi/apache_hooks in
11195
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
11196
 
  /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
11197
 
  *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
11198
 
  esac
11199
 
  
11200
 
  
11201
 
 
11202
 
  b_c_pre=$php_c_pre
11203
 
  b_cxx_pre=$php_cxx_pre
11204
 
  b_c_meta=$php_c_meta
11205
 
  b_cxx_meta=$php_cxx_meta
11206
 
  b_c_post=$php_c_post
11207
 
  b_cxx_post=$php_cxx_post
11208
 
  b_lo=$php_lo
11209
 
 
11210
 
 
11211
 
  old_IFS=$IFS
11212
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
11213
 
  
11214
 
      IFS=.
11215
 
      set $ac_src
11216
 
      ac_obj=$1
11217
 
      IFS=$old_IFS
11218
 
      
11219
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
11220
 
 
11221
 
      case $ac_src in
11222
 
        *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
11223
 
        *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
11224
 
        *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
11225
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
11226
 
      esac
11227
 
 
11228
 
    cat >>Makefile.objects<<EOF
11229
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
11230
 
        $ac_comp
11231
 
EOF
11232
 
  done
11233
 
 
11234
 
 
11235
 
 
11236
 
    PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
11237
 
    APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET; cp $srcdir/sapi/apache_hooks/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/sapi/apache_hooks/apMakefile.libdir $APACHE_TARGET/Makefile.libdir"
11238
 
    { $as_echo "$as_me:$LINENO: result: yes - Apache 1.3.x" >&5
11239
 
$as_echo "yes - Apache 1.3.x" >&6; }
11240
 
    STRONGHOLD=
11241
 
    if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
11242
 
      
11243
 
cat >>confdefs.h <<\_ACEOF
11244
 
@%:@define HAVE_AP_CONFIG_H 1
11245
 
_ACEOF
11246
 
 
11247
 
    fi
11248
 
    if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
11249
 
      
11250
 
cat >>confdefs.h <<\_ACEOF
11251
 
@%:@define HAVE_AP_COMPAT_H 1
11252
 
_ACEOF
11253
 
 
11254
 
      if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
11255
 
        { { $as_echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
11256
 
$as_echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
11257
 
   { (exit 1); exit 1; }; }
11258
 
      fi
11259
 
    elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
11260
 
      
11261
 
cat >>confdefs.h <<\_ACEOF
11262
 
@%:@define HAVE_OLD_COMPAT_H 1
11263
 
_ACEOF
11264
 
 
11265
 
    fi
11266
 
  # For StrongHold 2.2
11267
 
  elif test -f $PHP_APACHE_HOOKS_STATIC/apache/httpd.h; then
11268
 
    APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/apache -I$PHP_APACHE_HOOKS_STATIC/ssl/include"
11269
 
    APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/apache
11270
 
    
11271
 
  if test "$PHP_SAPI" != "default"; then
11272
 
{ { $as_echo "$as_me:$LINENO: error: 
11273
 
+--------------------------------------------------------------------+
11274
 
|                        *** ATTENTION ***                           |
11275
 
|                                                                    |
11276
 
| You've configured multiple SAPIs to be build. You can build only   |
11277
 
| one SAPI module and CLI binary at the same time.                   |
11278
 
+--------------------------------------------------------------------+
11279
 
" >&5
11280
 
$as_echo "$as_me: error: 
11281
 
+--------------------------------------------------------------------+
11282
 
|                        *** ATTENTION ***                           |
11283
 
|                                                                    |
11284
 
| You've configured multiple SAPIs to be build. You can build only   |
11285
 
| one SAPI module and CLI binary at the same time.                   |
11286
 
+--------------------------------------------------------------------+
11287
 
" >&2;}
11288
 
   { (exit 1); exit 1; }; }
11289
 
  fi
11290
 
 
11291
 
  PHP_SAPI=apache_hooks
11292
 
  
11293
 
  case "static" in
11294
 
  static) 
11295
 
  
11296
 
  OVERALL_TARGET=php
11297
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11298
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11299
 
  php_c_post=
11300
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11301
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11302
 
  php_cxx_post=
11303
 
  php_lo=lo
11304
 
 
11305
 
  case $with_pic in
11306
 
    yes) pic_setting='-prefer-pic';;
11307
 
    no)  pic_setting='-prefer-non-pic';;
11308
 
  esac
11309
 
 
11310
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11311
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11312
 
  shared_c_post=
11313
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11314
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11315
 
  shared_cxx_post=
11316
 
  shared_lo=lo
11317
 
 
11318
 
  php_build_target=program
11319
 
 
11320
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11321
 
  php_build_target=static
11322
 
;;
11323
 
  shared) 
11324
 
  
11325
 
  OVERALL_TARGET=php
11326
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11327
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11328
 
  php_c_post=
11329
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11330
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11331
 
  php_cxx_post=
11332
 
  php_lo=lo
11333
 
 
11334
 
  case $with_pic in
11335
 
    yes) pic_setting='-prefer-pic';;
11336
 
    no)  pic_setting='-prefer-non-pic';;
11337
 
  esac
11338
 
 
11339
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11340
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11341
 
  shared_c_post=
11342
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11343
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11344
 
  shared_cxx_post=
11345
 
  shared_lo=lo
11346
 
 
11347
 
  php_build_target=program
11348
 
 
11349
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11350
 
  php_build_target=shared
11351
 
  
11352
 
  php_c_pre=$shared_c_pre
11353
 
  php_c_meta=$shared_c_meta
11354
 
  php_c_post=$shared_c_post
11355
 
  php_cxx_pre=$shared_cxx_pre
11356
 
  php_cxx_meta=$shared_cxx_meta
11357
 
  php_cxx_post=$shared_cxx_post
11358
 
  php_lo=$shared_lo
11359
 
;;
11360
 
  bundle) 
11361
 
  
11362
 
  OVERALL_TARGET=php
11363
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11364
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11365
 
  php_c_post=
11366
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11367
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11368
 
  php_cxx_post=
11369
 
  php_lo=lo
11370
 
 
11371
 
  case $with_pic in
11372
 
    yes) pic_setting='-prefer-pic';;
11373
 
    no)  pic_setting='-prefer-non-pic';;
11374
 
  esac
11375
 
 
11376
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11377
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11378
 
  shared_c_post=
11379
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11380
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11381
 
  shared_cxx_post=
11382
 
  shared_lo=lo
11383
 
 
11384
 
  php_build_target=program
11385
 
 
11386
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
11387
 
  php_build_target=static
11388
 
;;
11389
 
  program) 
11390
 
  OVERALL_TARGET=php
11391
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11392
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11393
 
  php_c_post=
11394
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11395
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11396
 
  php_cxx_post=
11397
 
  php_lo=lo
11398
 
 
11399
 
  case $with_pic in
11400
 
    yes) pic_setting='-prefer-pic';;
11401
 
    no)  pic_setting='-prefer-non-pic';;
11402
 
  esac
11403
 
 
11404
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11405
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11406
 
  shared_c_post=
11407
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11408
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11409
 
  shared_cxx_post=
11410
 
  shared_lo=lo
11411
 
 
11412
 
  php_build_target=program
11413
 
;;
11414
 
  esac
11415
 
    
11416
 
  
11417
 
  
11418
 
  case sapi/apache_hooks in
11419
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
11420
 
  /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
11421
 
  *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
11422
 
  esac
11423
 
  
11424
 
  
11425
 
 
11426
 
  b_c_pre=$php_c_pre
11427
 
  b_cxx_pre=$php_cxx_pre
11428
 
  b_c_meta=$php_c_meta
11429
 
  b_cxx_meta=$php_cxx_meta
11430
 
  b_c_post=$php_c_post
11431
 
  b_cxx_post=$php_cxx_post
11432
 
  b_lo=$php_lo
11433
 
 
11434
 
 
11435
 
  old_IFS=$IFS
11436
 
  for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
11437
 
  
11438
 
      IFS=.
11439
 
      set $ac_src
11440
 
      ac_obj=$1
11441
 
      IFS=$old_IFS
11442
 
      
11443
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
11444
 
 
11445
 
      case $ac_src in
11446
 
        *.c) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
11447
 
        *.s) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
11448
 
        *.S) ac_comp="$b_c_pre $APACHE_INCLUDE $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
11449
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_INCLUDE $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
11450
 
      esac
11451
 
 
11452
 
    cat >>Makefile.objects<<EOF
11453
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
11454
 
        $ac_comp
11455
 
EOF
11456
 
  done
11457
 
 
11458
 
 
11459
 
 
11460
 
    PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
11461
 
    APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
11462
 
    STRONGHOLD=-DSTRONGHOLD=1
11463
 
    { $as_echo "$as_me:$LINENO: result: yes - StrongHold" >&5
11464
 
$as_echo "yes - StrongHold" >&6; }
11465
 
    if test -f $PHP_APACHE_HOOKS_STATIC/apache/ap_config.h; then
11466
 
      
11467
 
cat >>confdefs.h <<\_ACEOF
11468
 
@%:@define HAVE_AP_CONFIG_H 1
11469
 
_ACEOF
11470
 
 
11471
 
    fi
11472
 
    if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_compat.h; then
11473
 
      
11474
 
cat >>confdefs.h <<\_ACEOF
11475
 
@%:@define HAVE_AP_COMPAT_H 1
11476
 
_ACEOF
11477
 
 
11478
 
      if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
11479
 
        { { $as_echo "$as_me:$LINENO: error: Please run Apache\'s configure or src/Configure program once and try again" >&5
11480
 
$as_echo "$as_me: error: Please run Apache\'s configure or src/Configure program once and try again" >&2;}
11481
 
   { (exit 1); exit 1; }; }
11482
 
      fi
11483
 
    elif test -f $PHP_APACHE_HOOKS_STATIC/src/compat.h; then
11484
 
      
11485
 
cat >>confdefs.h <<\_ACEOF
11486
 
@%:@define HAVE_OLD_COMPAT_H 1
11487
 
_ACEOF
11488
 
 
11489
 
    fi
11490
 
  else
11491
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
11492
 
$as_echo "no" >&6; }
11493
 
    { { $as_echo "$as_me:$LINENO: error: Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" >&5
11494
 
$as_echo "$as_me: error: Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" >&2;}
11495
 
   { (exit 1); exit 1; }; }
11496
 
  fi
11497
 
else
11498
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
11499
 
$as_echo "no" >&6; }
11500
 
fi
11501
 
 
11502
 
# compatibility
11503
 
if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
11504
 
  enable_mod_charset=$with_mod_charset
11505
 
fi
11506
 
 
11507
 
 
11508
 
php_enable_mod_charset=no
11509
 
 
11510
 
{ $as_echo "$as_me:$LINENO: checking whether to enable Apache charset compatibility option" >&5
11511
 
$as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; }
11512
 
@%:@ Check whether --enable-mod-charset was given.
11513
 
if test "${enable_mod_charset+set}" = set; then
11514
 
  enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
11515
 
else
11516
 
  
11517
 
  PHP_MOD_CHARSET=no
11518
 
  
11519
 
 
11520
 
fi
11521
 
 
11522
 
 
11523
 
ext_output=$PHP_MOD_CHARSET
11524
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
11525
 
$as_echo "$ext_output" >&6; }
11526
 
 
11527
 
 
11528
 
 
11529
 
 
11530
 
if test "$PHP_MOD_CHARSET" = "yes"; then
11531
 
  
11532
 
cat >>confdefs.h <<\_ACEOF
11533
 
@%:@define USE_TRANSFER_TABLES 1
11534
 
_ACEOF
11535
 
 
11536
 
fi
11537
 
 
11538
 
if test "$APACHE_HOOKS_MODULE" = "yes"; then
11539
 
  
11540
 
  if test -n "$GCC"; then
11541
 
        
11542
 
  gcc_arg_name=ac_cv_gcc_arg_rdynamic
11543
 
  { $as_echo "$as_me:$LINENO: checking whether $CC supports -rdynamic" >&5
11544
 
$as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
11545
 
if test "${ac_cv_gcc_arg_rdynamic+set}" = set; then
11546
 
  $as_echo_n "(cached) " >&6
11547
 
else
11548
 
  
11549
 
  echo 'void somefunc() { };' > conftest.c
11550
 
  cmd='$CC -rdynamic -c conftest.c'
11551
 
  if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
11552
 
    ac_result=no
11553
 
  else
11554
 
    ac_result=yes
11555
 
  fi
11556
 
  eval $gcc_arg_name=$ac_result
11557
 
  rm -f conftest.*
11558
 
  
11559
 
fi
11560
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_arg_rdynamic" >&5
11561
 
$as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
11562
 
  if eval test "\$$gcc_arg_name" = "yes"; then
11563
 
    gcc_rdynamic=yes
11564
 
  else
11565
 
    :
11566
 
    
11567
 
  fi
11568
 
 
11569
 
    if test "$gcc_rdynamic" = "yes"; then
11570
 
      PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
11571
 
    fi
11572
 
  fi
11573
 
 
11574
 
  $php_shtool mkdir -p sapi/apache_hooks
11575
 
  
11576
 
  PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache_hooks/libphp5.module"
11577
 
 
11578
 
fi
11579
 
 
11580
 
if test -n "$APACHE_HOOKS_INSTALL"; then
11581
 
  if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
11582
 
    APXS_EXP=-bE:sapi/apache_hooks/mod_php5.exp
11583
 
  fi
11584
 
 
11585
 
  
11586
 
{ $as_echo "$as_me:$LINENO: checking for member fd in BUFF *" >&5
11587
 
$as_echo_n "checking for member fd in BUFF *... " >&6; }
11588
 
if test "${ac_cv_php_fd_in_buff+set}" = set; then
11589
 
  $as_echo_n "(cached) " >&6
11590
 
else
11591
 
  
11592
 
  save=$CPPFLAGS
11593
 
  if test -n "$APXS_INCLUDEDIR"; then
11594
 
    CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
11595
 
  else
11596
 
    CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
11597
 
  fi
11598
 
  cat >conftest.$ac_ext <<_ACEOF
11599
 
/* confdefs.h.  */
11600
 
_ACEOF
11601
 
cat confdefs.h >>conftest.$ac_ext
11602
 
cat >>conftest.$ac_ext <<_ACEOF
11603
 
/* end confdefs.h.  */
11604
 
#include <httpd.h>
11605
 
int
11606
 
main ()
11607
 
{
11608
 
conn_rec *c; int fd = c->client->fd;
11609
 
  ;
11610
 
  return 0;
11611
 
}
11612
 
_ACEOF
11613
 
rm -f conftest.$ac_objext
11614
 
if { (ac_try="$ac_compile"
11615
 
case "(($ac_try" in
11616
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617
 
  *) ac_try_echo=$ac_try;;
11618
 
esac
11619
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11620
 
$as_echo "$ac_try_echo") >&5
11621
 
  (eval "$ac_compile") 2>conftest.er1
11622
 
  ac_status=$?
11623
 
  grep -v '^ *+' conftest.er1 >conftest.err
11624
 
  rm -f conftest.er1
11625
 
  cat conftest.err >&5
11626
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627
 
  (exit $ac_status); } && {
11628
 
         test -z "$ac_c_werror_flag" ||
11629
 
         test ! -s conftest.err
11630
 
       } && test -s conftest.$ac_objext; then
11631
 
  
11632
 
    ac_cv_php_fd_in_buff=yes
11633
 
else
11634
 
  $as_echo "$as_me: failed program was:" >&5
11635
 
sed 's/^/| /' conftest.$ac_ext >&5
11636
 
 
11637
 
        ac_cv_php_fd_in_buff=no
11638
 
fi
11639
 
 
11640
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641
 
  CPPFLAGS=$save
11642
 
 
11643
 
fi
11644
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_fd_in_buff" >&5
11645
 
$as_echo "$ac_cv_php_fd_in_buff" >&6; }
11646
 
if test "$ac_cv_php_fd_in_buff" = "yes"; then
11647
 
  
11648
 
cat >>confdefs.h <<\_ACEOF
11649
 
@%:@define PHP_APACHE_HAVE_CLIENT_FD 1
11650
 
_ACEOF
11651
 
 
11652
 
fi
11653
 
 
11654
 
  INSTALL_IT=$APACHE_HOOKS_INSTALL
11655
 
 
11656
 
  
11657
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
11658
 
 
11659
 
  
11660
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
11661
 
 
11662
 
  
11663
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
11664
 
 
11665
 
  
11666
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
11667
 
 
11668
 
  
11669
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
11670
 
 
11671
 
  
11672
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_HOOKS_INSTALL"
11673
 
 
11674
 
  
11675
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
11676
 
 
11677
 
fi
11678
 
 
11679
 
 
11680
 
 
11681
 
RESULT=no
11682
 
 
11683
 
php_with_caudium=no
11684
 
 
11685
 
 
11686
 
 
11687
 
@%:@ Check whether --with-caudium was given.
11688
 
if test "${with_caudium+set}" = set; then
11689
 
  withval=$with_caudium; PHP_CAUDIUM=$withval
11690
 
else
11691
 
  
11692
 
  PHP_CAUDIUM=no
11693
 
  
11694
 
 
11695
 
fi
11696
 
 
11697
 
 
11698
 
ext_output=$PHP_CAUDIUM
11699
 
 
11700
 
 
11701
 
 
11702
 
 
11703
 
 
11704
 
{ $as_echo "$as_me:$LINENO: checking for Caudium support" >&5
11705
 
$as_echo_n "checking for Caudium support... " >&6; }
11706
 
 
11707
 
if test "$PHP_CAUDIUM" != "no"; then
11708
 
  if test "$prefix" = "NONE"; then CPREF=/usr/local/; fi
11709
 
  if test ! -d $PHP_CAUDIUM ; then
11710
 
    if test "$prefix" = "NONE"; then
11711
 
      PHP_CAUDIUM=/usr/local/caudium/server/
11712
 
    else
11713
 
      PHP_CAUDIUM=$prefix/caudium/server/
11714
 
    fi
11715
 
  fi
11716
 
  if test -f $PHP_CAUDIUM/bin/caudium; then
11717
 
    PIKE=$PHP_CAUDIUM/bin/caudium
11718
 
  elif test -f $PHP_CAUDIUM/bin/pike; then
11719
 
    PIKE=$PHP_CAUDIUM/bin/pike
11720
 
  else
11721
 
    { { $as_echo "$as_me:$LINENO: error: Could not find a pike in $PHP_CAUDIUM/bin/" >&5
11722
 
$as_echo "$as_me: error: Could not find a pike in $PHP_CAUDIUM/bin/" >&2;}
11723
 
   { (exit 1); exit 1; }; }
11724
 
  fi
11725
 
  if $PIKE -e 'float v; int rel;sscanf(version(), "Pike v%f release %d", v, rel);v += rel/10000.0; if(v < 7.0268) exit(1); exit(0);'; then
11726
 
    PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
11727
 
    PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,' `
11728
 
    if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
11729
 
      { { $as_echo "$as_me:$LINENO: error: Failed to figure out Pike module and include directories" >&5
11730
 
$as_echo "$as_me: error: Failed to figure out Pike module and include directories" >&2;}
11731
 
   { (exit 1); exit 1; }; }
11732
 
    fi
11733
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
11734
 
$as_echo "yes" >&6; }
11735
 
    PIKE=`echo $PIKE | pike -e 'int tries=100;
11736
 
       string orig,pike=Stdio.File("stdin")->read()-"\n";
11737
 
       orig=pike;
11738
 
       if(search(orig, "/"))
11739
 
         orig = combine_path(getcwd(), orig);
11740
 
       while(!catch(pike=readlink(pike)) && tries--)
11741
 
         ;
11742
 
       write(combine_path(dirname(orig), pike)); '`
11743
 
    
11744
 
  if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
11745
 
    
11746
 
  if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
11747
 
    ai_p=$PIKE_INCLUDE_DIR
11748
 
  else
11749
 
    
11750
 
    ep_dir="`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
11751
 
    
11752
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
11753
 
    ai_p="$ep_realdir/`basename \"$PIKE_INCLUDE_DIR\"`"
11754
 
  fi
11755
 
 
11756
 
    
11757
 
  
11758
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
11759
 
  
11760
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
11761
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
11762
 
    eval "INCLUDEPATH$unique=set"
11763
 
    
11764
 
      if test ""; then
11765
 
        INCLUDES="-I$ai_p $INCLUDES"
11766
 
      else
11767
 
        INCLUDES="$INCLUDES -I$ai_p"
11768
 
      fi
11769
 
    
11770
 
  fi
11771
 
 
11772
 
  fi
11773
 
 
11774
 
    if test "$prefix" != "NONE"; then
11775
 
      PIKE_C_INCLUDE=$prefix/include/`basename $PIKE`
11776
 
    else
11777
 
      PIKE_C_INCLUDE=/usr/local/include/`basename $PIKE`
11778
 
    fi
11779
 
    { $as_echo "$as_me:$LINENO: checking for C includes in $PIKE_C_INCLUDE" >&5
11780
 
$as_echo_n "checking for C includes in $PIKE_C_INCLUDE... " >&6; }
11781
 
    if test -f $PIKE_C_INCLUDE/version.h; then
11782
 
      PIKE_TEST_VER=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`
11783
 
      ###### VERSION MATCH CHECK #######
11784
 
      PMAJOR="^#define PIKE_MAJOR_VERSION"
11785
 
      PMINOR="^#define PIKE_MINOR_VERSION"
11786
 
      PBUILD="^#define PIKE_BUILD_VERSION"
11787
 
 
11788
 
      PIKE_CMAJOR_VERSION=0
11789
 
      PIKE_CMINOR_VERSION=0
11790
 
      PIKE_CBUILD_VERSION=0
11791
 
 
11792
 
      PIKE_CMAJOR_VERSION=`grep "$PMAJOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
11793
 
      if test -z "$PIKE_CMAJOR_VERSION"; then
11794
 
        if test -n "`grep f_version $PIKE_C_INCLUDE/version.h`"; then
11795
 
          PIKE_CMAJOR_VERSION=6
11796
 
        fi
11797
 
      else
11798
 
        PIKE_CMINOR_VERSION=`grep "$PMINOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
11799
 
        PIKE_CBUILD_VERSION=`grep "$PBUILD" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
11800
 
      fi
11801
 
 
11802
 
      if test "$PIKE_TEST_VER" = "${PIKE_CMAJOR_VERSION}.${PIKE_CMINOR_VERSION}.${PIKE_CBUILD_VERSION}"; then
11803
 
        
11804
 
  if test "$PIKE_C_INCLUDE" != "/usr/include"; then
11805
 
    
11806
 
  if test -z "$PIKE_C_INCLUDE" || echo "$PIKE_C_INCLUDE" | grep '^/' >/dev/null ; then
11807
 
    ai_p=$PIKE_C_INCLUDE
11808
 
  else
11809
 
    
11810
 
    ep_dir="`echo $PIKE_C_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
11811
 
    
11812
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
11813
 
    ai_p="$ep_realdir/`basename \"$PIKE_C_INCLUDE\"`"
11814
 
  fi
11815
 
 
11816
 
    
11817
 
  
11818
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
11819
 
  
11820
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
11821
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
11822
 
    eval "INCLUDEPATH$unique=set"
11823
 
    
11824
 
      if test ""; then
11825
 
        INCLUDES="-I$ai_p $INCLUDES"
11826
 
      else
11827
 
        INCLUDES="$INCLUDES -I$ai_p"
11828
 
      fi
11829
 
    
11830
 
  fi
11831
 
 
11832
 
  fi
11833
 
 
11834
 
        PIKE_INCLUDE_DIR="$PIKE_INCLUDE_DIR, $PIKE_C_INCLUDE"
11835
 
        { $as_echo "$as_me:$LINENO: result: found" >&5
11836
 
$as_echo "found" >&6; }
11837
 
      else
11838
 
        { $as_echo "$as_me:$LINENO: result: version mismatch" >&5
11839
 
$as_echo "version mismatch" >&6; }
11840
 
      fi
11841
 
    else
11842
 
      { $as_echo "$as_me:$LINENO: result: not found" >&5
11843
 
$as_echo "not found" >&6; }
11844
 
    fi
11845
 
  else
11846
 
    { { $as_echo "$as_me:$LINENO: error: Caudium PHP5 requires Pike 7.0 or newer" >&5
11847
 
$as_echo "$as_me: error: Caudium PHP5 requires Pike 7.0 or newer" >&2;}
11848
 
   { (exit 1); exit 1; }; }
11849
 
  fi
11850
 
  PIKE_VERSION=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`   
11851
 
  
11852
 
cat >>confdefs.h <<\_ACEOF
11853
 
@%:@define HAVE_CAUDIUM 1
11854
 
_ACEOF
11855
 
 
11856
 
  
11857
 
  if test "$PHP_SAPI" != "default"; then
11858
 
{ { $as_echo "$as_me:$LINENO: error: 
11859
 
+--------------------------------------------------------------------+
11860
 
|                        *** ATTENTION ***                           |
11861
 
|                                                                    |
11862
 
| You've configured multiple SAPIs to be build. You can build only   |
11863
 
| one SAPI module and CLI binary at the same time.                   |
11864
 
+--------------------------------------------------------------------+
11865
 
" >&5
11866
 
$as_echo "$as_me: error: 
11867
 
+--------------------------------------------------------------------+
11868
 
|                        *** ATTENTION ***                           |
11869
 
|                                                                    |
11870
 
| You've configured multiple SAPIs to be build. You can build only   |
11871
 
| one SAPI module and CLI binary at the same time.                   |
11872
 
+--------------------------------------------------------------------+
11873
 
" >&2;}
11874
 
   { (exit 1); exit 1; }; }
11875
 
  fi
11876
 
 
11877
 
  PHP_SAPI=caudium
11878
 
  
11879
 
  case "shared" in
11880
 
  static) 
11881
 
  
11882
 
  OVERALL_TARGET=php
11883
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11884
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11885
 
  php_c_post=
11886
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11887
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11888
 
  php_cxx_post=
11889
 
  php_lo=lo
11890
 
 
11891
 
  case $with_pic in
11892
 
    yes) pic_setting='-prefer-pic';;
11893
 
    no)  pic_setting='-prefer-non-pic';;
11894
 
  esac
11895
 
 
11896
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11897
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11898
 
  shared_c_post=
11899
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11900
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11901
 
  shared_cxx_post=
11902
 
  shared_lo=lo
11903
 
 
11904
 
  php_build_target=program
11905
 
 
11906
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11907
 
  php_build_target=static
11908
 
;;
11909
 
  shared) 
11910
 
  
11911
 
  OVERALL_TARGET=php
11912
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11913
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11914
 
  php_c_post=
11915
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11916
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11917
 
  php_cxx_post=
11918
 
  php_lo=lo
11919
 
 
11920
 
  case $with_pic in
11921
 
    yes) pic_setting='-prefer-pic';;
11922
 
    no)  pic_setting='-prefer-non-pic';;
11923
 
  esac
11924
 
 
11925
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11926
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11927
 
  shared_c_post=
11928
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11929
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11930
 
  shared_cxx_post=
11931
 
  shared_lo=lo
11932
 
 
11933
 
  php_build_target=program
11934
 
 
11935
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11936
 
  php_build_target=shared
11937
 
  
11938
 
  php_c_pre=$shared_c_pre
11939
 
  php_c_meta=$shared_c_meta
11940
 
  php_c_post=$shared_c_post
11941
 
  php_cxx_pre=$shared_cxx_pre
11942
 
  php_cxx_meta=$shared_cxx_meta
11943
 
  php_cxx_post=$shared_cxx_post
11944
 
  php_lo=$shared_lo
11945
 
;;
11946
 
  bundle) 
11947
 
  
11948
 
  OVERALL_TARGET=php
11949
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11950
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11951
 
  php_c_post=
11952
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11953
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11954
 
  php_cxx_post=
11955
 
  php_lo=lo
11956
 
 
11957
 
  case $with_pic in
11958
 
    yes) pic_setting='-prefer-pic';;
11959
 
    no)  pic_setting='-prefer-non-pic';;
11960
 
  esac
11961
 
 
11962
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11963
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11964
 
  shared_c_post=
11965
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11966
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11967
 
  shared_cxx_post=
11968
 
  shared_lo=lo
11969
 
 
11970
 
  php_build_target=program
11971
 
 
11972
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
11973
 
  php_build_target=static
11974
 
;;
11975
 
  program) 
11976
 
  OVERALL_TARGET=php
11977
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11978
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11979
 
  php_c_post=
11980
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11981
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11982
 
  php_cxx_post=
11983
 
  php_lo=lo
11984
 
 
11985
 
  case $with_pic in
11986
 
    yes) pic_setting='-prefer-pic';;
11987
 
    no)  pic_setting='-prefer-non-pic';;
11988
 
  esac
11989
 
 
11990
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11991
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11992
 
  shared_c_post=
11993
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11994
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11995
 
  shared_cxx_post=
11996
 
  shared_lo=lo
11997
 
 
11998
 
  php_build_target=program
11999
 
;;
12000
 
  esac
12001
 
    
12002
 
  
12003
 
  
12004
 
  case sapi/caudium in
12005
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
12006
 
  /*) ac_srcdir=`echo "sapi/caudium"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
12007
 
  *) ac_srcdir="$abs_srcdir/sapi/caudium/"; ac_bdir="sapi/caudium/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
12008
 
  esac
12009
 
  
12010
 
  
12011
 
 
12012
 
  b_c_pre=$php_c_pre
12013
 
  b_cxx_pre=$php_cxx_pre
12014
 
  b_c_meta=$php_c_meta
12015
 
  b_cxx_meta=$php_cxx_meta
12016
 
  b_c_post=$php_c_post
12017
 
  b_cxx_post=$php_cxx_post
12018
 
  b_lo=$php_lo
12019
 
 
12020
 
 
12021
 
  old_IFS=$IFS
12022
 
  for ac_src in caudium.c; do
12023
 
  
12024
 
      IFS=.
12025
 
      set $ac_src
12026
 
      ac_obj=$1
12027
 
      IFS=$old_IFS
12028
 
      
12029
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
12030
 
 
12031
 
      case $ac_src in
12032
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
12033
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
12034
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
12035
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
12036
 
      esac
12037
 
 
12038
 
    cat >>Makefile.objects<<EOF
12039
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
12040
 
        $ac_comp
12041
 
EOF
12042
 
  done
12043
 
 
12044
 
 
12045
 
 
12046
 
  INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_CAUDIUM/lib/$PIKE_VERSION/PHP5.so"
12047
 
  RESULT="  *** Pike binary used:         $PIKE
12048
 
  *** Pike include dir(s) used: $PIKE_INCLUDE_DIR
12049
 
  *** Pike version:             $PIKE_VERSION"
12050
 
    
12051
 
  enable_maintainer_zts=yes
12052
 
  if test "$pthreads_working" != "yes"; then
12053
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
12054
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
12055
 
   { (exit 1); exit 1; }; }
12056
 
  fi
12057
 
 
12058
 
fi
12059
 
{ $as_echo "$as_me:$LINENO: result: $RESULT" >&5
12060
 
$as_echo "$RESULT" >&6; }
12061
 
 
12062
 
 
12063
 
 
12064
 
 
12065
 
php_enable_cli=yes
12066
 
 
12067
 
 
12068
 
@%:@ Check whether --enable-cli was given.
12069
 
if test "${enable_cli+set}" = set; then
12070
 
  enableval=$enable_cli; PHP_CLI=$enableval
12071
 
else
12072
 
  
12073
 
  PHP_CLI=yes
12074
 
  
12075
 
 
12076
 
fi
12077
 
 
12078
 
 
12079
 
ext_output=$PHP_CLI
12080
 
 
12081
 
 
12082
 
 
12083
 
 
12084
 
 
12085
 
{ $as_echo "$as_me:$LINENO: checking for CLI build" >&5
12086
 
$as_echo_n "checking for CLI build... " >&6; }
12087
 
if test "$PHP_CLI" != "no"; then
12088
 
  
12089
 
  src=$abs_srcdir/sapi/cli/Makefile.frag
12090
 
  ac_srcdir=$abs_srcdir/sapi/cli
12091
 
  ac_builddir=sapi/cli
12092
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
12093
 
 
12094
 
  SAPI_CLI_PATH=sapi/cli/php
12095
 
  
12096
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH"
12097
 
 
12098
 
 
12099
 
  case $host_alias in
12100
 
  *aix*)
12101
 
    if test "$php_build_target" = "shared"; then
12102
 
      BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
12103
 
    else
12104
 
      BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
12105
 
    fi
12106
 
    ;;
12107
 
  *darwin*)
12108
 
    BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
12109
 
    ;;
12110
 
  *netware*)
12111
 
    BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -Lnetware -lphp5lib -o \$(SAPI_CLI_PATH)"
12112
 
    ;;
12113
 
  *)
12114
 
    BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
12115
 
    ;;
12116
 
  esac
12117
 
  INSTALL_CLI="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(bindir); \$(INSTALL) -m 0755 \$(SAPI_CLI_PATH) \$(INSTALL_ROOT)\$(bindir)/\$(program_prefix)php\$(program_suffix)\$(EXEEXT)"
12118
 
 
12119
 
  
12120
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI"
12121
 
 
12122
 
  
12123
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_CLI"
12124
 
 
12125
 
  
12126
 
  PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1"
12127
 
 
12128
 
fi
12129
 
{ $as_echo "$as_me:$LINENO: result: $PHP_CLI" >&5
12130
 
$as_echo "$PHP_CLI" >&6; }
12131
 
 
12132
 
 
12133
 
 
12134
 
php_with_continuity=no
12135
 
 
12136
 
{ $as_echo "$as_me:$LINENO: checking for Continuity support" >&5
12137
 
$as_echo_n "checking for Continuity support... " >&6; }
12138
 
 
12139
 
@%:@ Check whether --with-continuity was given.
12140
 
if test "${with_continuity+set}" = set; then
12141
 
  withval=$with_continuity; PHP_CONTINUITY=$withval
12142
 
else
12143
 
  
12144
 
  PHP_CONTINUITY=no
12145
 
  
12146
 
 
12147
 
fi
12148
 
 
12149
 
 
12150
 
ext_output=$PHP_CONTINUITY
12151
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
12152
 
$as_echo "$ext_output" >&6; }
12153
 
 
12154
 
 
12155
 
 
12156
 
 
12157
 
if test "$PHP_CONTINUITY" != "no"; then
12158
 
  if test ! -d $PHP_CONTINUITY; then
12159
 
    { { $as_echo "$as_me:$LINENO: error: Please specify the path to the root of your Continuity server using --with-continuity=DIR" >&5
12160
 
$as_echo "$as_me: error: Please specify the path to the root of your Continuity server using --with-continuity=DIR" >&2;}
12161
 
   { (exit 1); exit 1; }; }
12162
 
  fi
12163
 
  { $as_echo "$as_me:$LINENO: checking for Continuity include files" >&5
12164
 
$as_echo_n "checking for Continuity include files... " >&6; }
12165
 
  if test -d $PHP_CONTINUITY/include ; then
12166
 
    CAPI_INCLUDE=$PHP_CONTINUITY/include
12167
 
    { $as_echo "$as_me:$LINENO: result: Continuity Binary Distribution" >&5
12168
 
$as_echo "Continuity Binary Distribution" >&6; }
12169
 
  else
12170
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find your CAPI include files in either DIR/src or DIR/include" >&5
12171
 
$as_echo "$as_me: error: Cannot find your CAPI include files in either DIR/src or DIR/include" >&2;}
12172
 
   { (exit 1); exit 1; }; }
12173
 
  fi
12174
 
 
12175
 
  
12176
 
  if test "$PHP_SAPI" != "default"; then
12177
 
{ { $as_echo "$as_me:$LINENO: error: 
12178
 
+--------------------------------------------------------------------+
12179
 
|                        *** ATTENTION ***                           |
12180
 
|                                                                    |
12181
 
| You've configured multiple SAPIs to be build. You can build only   |
12182
 
| one SAPI module and CLI binary at the same time.                   |
12183
 
+--------------------------------------------------------------------+
12184
 
" >&5
12185
 
$as_echo "$as_me: error: 
12186
 
+--------------------------------------------------------------------+
12187
 
|                        *** ATTENTION ***                           |
12188
 
|                                                                    |
12189
 
| You've configured multiple SAPIs to be build. You can build only   |
12190
 
| one SAPI module and CLI binary at the same time.                   |
12191
 
+--------------------------------------------------------------------+
12192
 
" >&2;}
12193
 
   { (exit 1); exit 1; }; }
12194
 
  fi
12195
 
 
12196
 
  PHP_SAPI=continuity
12197
 
  
12198
 
  case "shared" in
12199
 
  static) 
12200
 
  
12201
 
  OVERALL_TARGET=php
12202
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12203
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
12204
 
  php_c_post=
12205
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12206
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
12207
 
  php_cxx_post=
12208
 
  php_lo=lo
12209
 
 
12210
 
  case $with_pic in
12211
 
    yes) pic_setting='-prefer-pic';;
12212
 
    no)  pic_setting='-prefer-non-pic';;
12213
 
  esac
12214
 
 
12215
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12216
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
12217
 
  shared_c_post=
12218
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12219
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
12220
 
  shared_cxx_post=
12221
 
  shared_lo=lo
12222
 
 
12223
 
  php_build_target=program
12224
 
 
12225
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
12226
 
  php_build_target=static
12227
 
;;
12228
 
  shared) 
12229
 
  
12230
 
  OVERALL_TARGET=php
12231
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12232
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
12233
 
  php_c_post=
12234
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12235
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
12236
 
  php_cxx_post=
12237
 
  php_lo=lo
12238
 
 
12239
 
  case $with_pic in
12240
 
    yes) pic_setting='-prefer-pic';;
12241
 
    no)  pic_setting='-prefer-non-pic';;
12242
 
  esac
12243
 
 
12244
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12245
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
12246
 
  shared_c_post=
12247
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12248
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
12249
 
  shared_cxx_post=
12250
 
  shared_lo=lo
12251
 
 
12252
 
  php_build_target=program
12253
 
 
12254
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
12255
 
  php_build_target=shared
12256
 
  
12257
 
  php_c_pre=$shared_c_pre
12258
 
  php_c_meta=$shared_c_meta
12259
 
  php_c_post=$shared_c_post
12260
 
  php_cxx_pre=$shared_cxx_pre
12261
 
  php_cxx_meta=$shared_cxx_meta
12262
 
  php_cxx_post=$shared_cxx_post
12263
 
  php_lo=$shared_lo
12264
 
;;
12265
 
  bundle) 
12266
 
  
12267
 
  OVERALL_TARGET=php
12268
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12269
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
12270
 
  php_c_post=
12271
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12272
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
12273
 
  php_cxx_post=
12274
 
  php_lo=lo
12275
 
 
12276
 
  case $with_pic in
12277
 
    yes) pic_setting='-prefer-pic';;
12278
 
    no)  pic_setting='-prefer-non-pic';;
12279
 
  esac
12280
 
 
12281
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12282
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
12283
 
  shared_c_post=
12284
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12285
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
12286
 
  shared_cxx_post=
12287
 
  shared_lo=lo
12288
 
 
12289
 
  php_build_target=program
12290
 
 
12291
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
12292
 
  php_build_target=static
12293
 
;;
12294
 
  program) 
12295
 
  OVERALL_TARGET=php
12296
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12297
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
12298
 
  php_c_post=
12299
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12300
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
12301
 
  php_cxx_post=
12302
 
  php_lo=lo
12303
 
 
12304
 
  case $with_pic in
12305
 
    yes) pic_setting='-prefer-pic';;
12306
 
    no)  pic_setting='-prefer-non-pic';;
12307
 
  esac
12308
 
 
12309
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12310
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
12311
 
  shared_c_post=
12312
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12313
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
12314
 
  shared_cxx_post=
12315
 
  shared_lo=lo
12316
 
 
12317
 
  php_build_target=program
12318
 
;;
12319
 
  esac
12320
 
    
12321
 
  
12322
 
  
12323
 
  case sapi/continuity in
12324
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
12325
 
  /*) ac_srcdir=`echo "sapi/continuity"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
12326
 
  *) ac_srcdir="$abs_srcdir/sapi/continuity/"; ac_bdir="sapi/continuity/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
12327
 
  esac
12328
 
  
12329
 
  
12330
 
 
12331
 
  b_c_pre=$php_c_pre
12332
 
  b_cxx_pre=$php_cxx_pre
12333
 
  b_c_meta=$php_c_meta
12334
 
  b_cxx_meta=$php_cxx_meta
12335
 
  b_c_post=$php_c_post
12336
 
  b_cxx_post=$php_cxx_post
12337
 
  b_lo=$php_lo
12338
 
 
12339
 
 
12340
 
  old_IFS=$IFS
12341
 
  for ac_src in capi.c; do
12342
 
  
12343
 
      IFS=.
12344
 
      set $ac_src
12345
 
      ac_obj=$1
12346
 
      IFS=$old_IFS
12347
 
      
12348
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
12349
 
 
12350
 
      case $ac_src in
12351
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
12352
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
12353
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
12354
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
12355
 
      esac
12356
 
 
12357
 
    cat >>Makefile.objects<<EOF
12358
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
12359
 
        $ac_comp
12360
 
EOF
12361
 
  done
12362
 
 
12363
 
 
12364
 
 
12365
 
  
12366
 
  if test "$CAPI_INCLUDE" != "/usr/include"; then
12367
 
    
12368
 
  if test -z "$CAPI_INCLUDE" || echo "$CAPI_INCLUDE" | grep '^/' >/dev/null ; then
12369
 
    ai_p=$CAPI_INCLUDE
12370
 
  else
12371
 
    
12372
 
    ep_dir="`echo $CAPI_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
12373
 
    
12374
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
12375
 
    ai_p="$ep_realdir/`basename \"$CAPI_INCLUDE\"`"
12376
 
  fi
12377
 
 
12378
 
    
12379
 
  
12380
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
12381
 
  
12382
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
12383
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
12384
 
    eval "INCLUDEPATH$unique=set"
12385
 
    
12386
 
      if test ""; then
12387
 
        INCLUDES="-I$ai_p $INCLUDES"
12388
 
      else
12389
 
        INCLUDES="$INCLUDES -I$ai_p"
12390
 
      fi
12391
 
    
12392
 
  fi
12393
 
 
12394
 
  fi
12395
 
 
12396
 
  
12397
 
  enable_maintainer_zts=yes
12398
 
  if test "$pthreads_working" != "yes"; then
12399
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
12400
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
12401
 
   { (exit 1); exit 1; }; }
12402
 
  fi
12403
 
 
12404
 
  
12405
 
cat >>confdefs.h <<\_ACEOF
12406
 
@%:@define HAVE_CONTINUITY 1
12407
 
_ACEOF
12408
 
 
12409
 
  INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_CONTINUITY/lib/"
12410
 
fi
12411
 
 
12412
 
 
12413
 
 
12414
 
 
12415
 
php_enable_embed=no
12416
 
 
12417
 
 
12418
 
@%:@ Check whether --enable-embed was given.
12419
 
if test "${enable_embed+set}" = set; then
12420
 
  enableval=$enable_embed; PHP_EMBED=$enableval
12421
 
else
12422
 
  
12423
 
  PHP_EMBED=no
12424
 
  
12425
 
 
12426
 
fi
12427
 
 
12428
 
 
12429
 
ext_output=$PHP_EMBED
12430
 
 
12431
 
 
12432
 
 
12433
 
 
12434
 
 
12435
 
{ $as_echo "$as_me:$LINENO: checking for embedded SAPI library support" >&5
12436
 
$as_echo_n "checking for embedded SAPI library support... " >&6; }
12437
 
 
12438
 
if test "$PHP_EMBED" != "no"; then
12439
 
  case "$PHP_EMBED" in
12440
 
    yes|shared)
12441
 
      PHP_EMBED_TYPE=shared
12442
 
      INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
12443
 
      ;;
12444
 
    static)
12445
 
      PHP_EMBED_TYPE=static
12446
 
      INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
12447
 
      ;;
12448
 
    *)
12449
 
      PHP_EMBED_TYPE=no
12450
 
      ;;
12451
 
  esac
12452
 
  if test "$PHP_EMBED_TYPE" != "no"; then
12453
 
    
12454
 
  if test "$PHP_SAPI" != "default"; then
12455
 
{ { $as_echo "$as_me:$LINENO: error: 
12456
 
+--------------------------------------------------------------------+
12457
 
|                        *** ATTENTION ***                           |
12458
 
|                                                                    |
12459
 
| You've configured multiple SAPIs to be build. You can build only   |
12460
 
| one SAPI module and CLI binary at the same time.                   |
12461
 
+--------------------------------------------------------------------+
12462
 
" >&5
12463
 
$as_echo "$as_me: error: 
12464
 
+--------------------------------------------------------------------+
12465
 
|                        *** ATTENTION ***                           |
12466
 
|                                                                    |
12467
 
| You've configured multiple SAPIs to be build. You can build only   |
12468
 
| one SAPI module and CLI binary at the same time.                   |
12469
 
+--------------------------------------------------------------------+
12470
 
" >&2;}
12471
 
   { (exit 1); exit 1; }; }
12472
 
  fi
12473
 
 
12474
 
  PHP_SAPI=embed
12475
 
  
12476
 
  case "$PHP_EMBED_TYPE" in
12477
 
  static) 
12478
 
  
12479
 
  OVERALL_TARGET=php
12480
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12481
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
12482
 
  php_c_post=
12483
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12484
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
12485
 
  php_cxx_post=
12486
 
  php_lo=lo
12487
 
 
12488
 
  case $with_pic in
12489
 
    yes) pic_setting='-prefer-pic';;
12490
 
    no)  pic_setting='-prefer-non-pic';;
12491
 
  esac
12492
 
 
12493
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12494
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
12495
 
  shared_c_post=
12496
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12497
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
12498
 
  shared_cxx_post=
12499
 
  shared_lo=lo
12500
 
 
12501
 
  php_build_target=program
12502
 
 
12503
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
12504
 
  php_build_target=static
12505
 
;;
12506
 
  shared) 
12507
 
  
12508
 
  OVERALL_TARGET=php
12509
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12510
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
12511
 
  php_c_post=
12512
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12513
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
12514
 
  php_cxx_post=
12515
 
  php_lo=lo
12516
 
 
12517
 
  case $with_pic in
12518
 
    yes) pic_setting='-prefer-pic';;
12519
 
    no)  pic_setting='-prefer-non-pic';;
12520
 
  esac
12521
 
 
12522
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12523
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
12524
 
  shared_c_post=
12525
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12526
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
12527
 
  shared_cxx_post=
12528
 
  shared_lo=lo
12529
 
 
12530
 
  php_build_target=program
12531
 
 
12532
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
12533
 
  php_build_target=shared
12534
 
  
12535
 
  php_c_pre=$shared_c_pre
12536
 
  php_c_meta=$shared_c_meta
12537
 
  php_c_post=$shared_c_post
12538
 
  php_cxx_pre=$shared_cxx_pre
12539
 
  php_cxx_meta=$shared_cxx_meta
12540
 
  php_cxx_post=$shared_cxx_post
12541
 
  php_lo=$shared_lo
12542
 
;;
12543
 
  bundle) 
12544
 
  
12545
 
  OVERALL_TARGET=php
12546
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12547
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
12548
 
  php_c_post=
12549
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12550
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
12551
 
  php_cxx_post=
12552
 
  php_lo=lo
12553
 
 
12554
 
  case $with_pic in
12555
 
    yes) pic_setting='-prefer-pic';;
12556
 
    no)  pic_setting='-prefer-non-pic';;
12557
 
  esac
12558
 
 
12559
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12560
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
12561
 
  shared_c_post=
12562
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12563
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
12564
 
  shared_cxx_post=
12565
 
  shared_lo=lo
12566
 
 
12567
 
  php_build_target=program
12568
 
 
12569
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
12570
 
  php_build_target=static
12571
 
;;
12572
 
  program) 
12573
 
  OVERALL_TARGET=php
12574
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12575
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
12576
 
  php_c_post=
12577
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12578
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
12579
 
  php_cxx_post=
12580
 
  php_lo=lo
12581
 
 
12582
 
  case $with_pic in
12583
 
    yes) pic_setting='-prefer-pic';;
12584
 
    no)  pic_setting='-prefer-non-pic';;
12585
 
  esac
12586
 
 
12587
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12588
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
12589
 
  shared_c_post=
12590
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12591
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
12592
 
  shared_cxx_post=
12593
 
  shared_lo=lo
12594
 
 
12595
 
  php_build_target=program
12596
 
;;
12597
 
  esac
12598
 
    
12599
 
  
12600
 
  
12601
 
  case sapi/embed in
12602
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
12603
 
  /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
12604
 
  *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
12605
 
  esac
12606
 
  
12607
 
  
12608
 
 
12609
 
  b_c_pre=$php_c_pre
12610
 
  b_cxx_pre=$php_cxx_pre
12611
 
  b_c_meta=$php_c_meta
12612
 
  b_cxx_meta=$php_cxx_meta
12613
 
  b_c_post=$php_c_post
12614
 
  b_cxx_post=$php_cxx_post
12615
 
  b_lo=$php_lo
12616
 
 
12617
 
 
12618
 
  old_IFS=$IFS
12619
 
  for ac_src in php_embed.c; do
12620
 
  
12621
 
      IFS=.
12622
 
      set $ac_src
12623
 
      ac_obj=$1
12624
 
      IFS=$old_IFS
12625
 
      
12626
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
12627
 
 
12628
 
      case $ac_src in
12629
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
12630
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
12631
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
12632
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
12633
 
      esac
12634
 
 
12635
 
    cat >>Makefile.objects<<EOF
12636
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
12637
 
        $ac_comp
12638
 
EOF
12639
 
  done
12640
 
 
12641
 
 
12642
 
 
12643
 
    
12644
 
  
12645
 
    for header_file in sapi/embed/php_embed.h; do
12646
 
      
12647
 
  
12648
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
12649
 
  
12650
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
12651
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
12652
 
    eval "INSTALLHEADERS$unique=set"
12653
 
    
12654
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
12655
 
      
12656
 
  fi
12657
 
 
12658
 
    done 
12659
 
  
12660
 
 
12661
 
  fi
12662
 
  { $as_echo "$as_me:$LINENO: result: $PHP_EMBED_TYPE" >&5
12663
 
$as_echo "$PHP_EMBED_TYPE" >&6; }
12664
 
else
12665
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
12666
 
$as_echo "no" >&6; }
12667
 
fi
12668
 
 
12669
 
 
12670
 
 
12671
 
 
12672
 
php_enable_fpm=no
12673
 
 
12674
 
 
12675
 
@%:@ Check whether --enable-fpm was given.
12676
 
if test "${enable_fpm+set}" = set; then
12677
 
  enableval=$enable_fpm; PHP_FPM=$enableval
12678
 
else
12679
 
  
12680
 
  PHP_FPM=no
12681
 
  
12682
 
 
12683
 
fi
12684
 
 
12685
 
 
12686
 
ext_output=$PHP_FPM
12687
 
 
12688
 
 
12689
 
 
12690
 
 
12691
 
 
12692
 
 
12693
 
 
12694
 
 
12695
 
 
12696
 
 
12697
 
 
12698
 
 
12699
 
 
12700
 
 
12701
 
 
12702
 
 
12703
 
 
12704
 
 
12705
 
 
12706
 
 
12707
 
 
12708
 
 
12709
 
 
12710
 
 
12711
 
 
12712
 
 
12713
 
 
12714
 
 
12715
 
 
12716
 
 
12717
 
 
12718
 
 
12719
 
 
12720
 
 
12721
 
{ $as_echo "$as_me:$LINENO: checking for FPM build" >&5
12722
 
$as_echo_n "checking for FPM build... " >&6; }
12723
 
if test "$PHP_FPM" != "no"; then
12724
 
  { $as_echo "$as_me:$LINENO: result: $PHP_FPM" >&5
12725
 
$as_echo "$PHP_FPM" >&6; }
12726
 
 
12727
 
  
12728
 
  
12729
 
 
12730
 
 
12731
 
for ac_func in setenv clearenv setproctitle
12732
 
do
12733
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12734
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12735
 
$as_echo_n "checking for $ac_func... " >&6; }
12736
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12737
 
  $as_echo_n "(cached) " >&6
12738
 
else
12739
 
  cat >conftest.$ac_ext <<_ACEOF
12740
 
/* confdefs.h.  */
12741
 
_ACEOF
12742
 
cat confdefs.h >>conftest.$ac_ext
12743
 
cat >>conftest.$ac_ext <<_ACEOF
12744
 
/* end confdefs.h.  */
12745
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12746
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12747
 
#define $ac_func innocuous_$ac_func
12748
 
 
12749
 
/* System header to define __stub macros and hopefully few prototypes,
12750
 
    which can conflict with char $ac_func (); below.
12751
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12752
 
    <limits.h> exists even on freestanding compilers.  */
12753
 
 
12754
 
#ifdef __STDC__
12755
 
# include <limits.h>
12756
 
#else
12757
 
# include <assert.h>
12758
 
#endif
12759
 
 
12760
 
#undef $ac_func
12761
 
 
12762
 
/* Override any GCC internal prototype to avoid an error.
12763
 
   Use char because int might match the return type of a GCC
12764
 
   builtin and then its argument prototype would still apply.  */
12765
 
#ifdef __cplusplus
12766
 
extern "C"
12767
 
#endif
12768
 
char $ac_func ();
12769
 
/* The GNU C library defines this for functions which it implements
12770
 
    to always fail with ENOSYS.  Some functions are actually named
12771
 
    something starting with __ and the normal name is an alias.  */
12772
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12773
 
choke me
12774
 
#endif
12775
 
 
12776
 
int
12777
 
main ()
12778
 
{
12779
 
return $ac_func ();
12780
 
  ;
12781
 
  return 0;
12782
 
}
12783
 
_ACEOF
12784
 
rm -f conftest.$ac_objext conftest$ac_exeext
12785
 
if { (ac_try="$ac_link"
12786
 
case "(($ac_try" in
12787
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788
 
  *) ac_try_echo=$ac_try;;
12789
 
esac
12790
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791
 
$as_echo "$ac_try_echo") >&5
12792
 
  (eval "$ac_link") 2>conftest.er1
12793
 
  ac_status=$?
12794
 
  grep -v '^ *+' conftest.er1 >conftest.err
12795
 
  rm -f conftest.er1
12796
 
  cat conftest.err >&5
12797
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798
 
  (exit $ac_status); } && {
12799
 
         test -z "$ac_c_werror_flag" ||
12800
 
         test ! -s conftest.err
12801
 
       } && test -s conftest$ac_exeext && {
12802
 
         test "$cross_compiling" = yes ||
12803
 
         $as_test_x conftest$ac_exeext
12804
 
       }; then
12805
 
  eval "$as_ac_var=yes"
12806
 
else
12807
 
  $as_echo "$as_me: failed program was:" >&5
12808
 
sed 's/^/| /' conftest.$ac_ext >&5
12809
 
 
12810
 
        eval "$as_ac_var=no"
12811
 
fi
12812
 
 
12813
 
rm -rf conftest.dSYM
12814
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12815
 
      conftest$ac_exeext conftest.$ac_ext
12816
 
fi
12817
 
ac_res=`eval 'as_val=${'$as_ac_var'}
12818
 
                 $as_echo "$as_val"'`
12819
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12820
 
$as_echo "$ac_res" >&6; }
12821
 
as_val=`eval 'as_val=${'$as_ac_var'}
12822
 
                 $as_echo "$as_val"'`
12823
 
   if test "x$as_val" = x""yes; then
12824
 
  cat >>confdefs.h <<_ACEOF
12825
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12826
 
_ACEOF
12827
 
 
12828
 
fi
12829
 
done
12830
 
 
12831
 
 
12832
 
  { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
12833
 
$as_echo_n "checking for library containing socket... " >&6; }
12834
 
if test "${ac_cv_search_socket+set}" = set; then
12835
 
  $as_echo_n "(cached) " >&6
12836
 
else
12837
 
  ac_func_search_save_LIBS=$LIBS
12838
 
cat >conftest.$ac_ext <<_ACEOF
12839
 
/* confdefs.h.  */
12840
 
_ACEOF
12841
 
cat confdefs.h >>conftest.$ac_ext
12842
 
cat >>conftest.$ac_ext <<_ACEOF
12843
 
/* end confdefs.h.  */
12844
 
 
12845
 
/* Override any GCC internal prototype to avoid an error.
12846
 
   Use char because int might match the return type of a GCC
12847
 
   builtin and then its argument prototype would still apply.  */
12848
 
#ifdef __cplusplus
12849
 
extern "C"
12850
 
#endif
12851
 
char socket ();
12852
 
int
12853
 
main ()
12854
 
{
12855
 
return socket ();
12856
 
  ;
12857
 
  return 0;
12858
 
}
12859
 
_ACEOF
12860
 
for ac_lib in '' socket; do
12861
 
  if test -z "$ac_lib"; then
12862
 
    ac_res="none required"
12863
 
  else
12864
 
    ac_res=-l$ac_lib
12865
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12866
 
  fi
12867
 
  rm -f conftest.$ac_objext conftest$ac_exeext
12868
 
if { (ac_try="$ac_link"
12869
 
case "(($ac_try" in
12870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871
 
  *) ac_try_echo=$ac_try;;
12872
 
esac
12873
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12874
 
$as_echo "$ac_try_echo") >&5
12875
 
  (eval "$ac_link") 2>conftest.er1
12876
 
  ac_status=$?
12877
 
  grep -v '^ *+' conftest.er1 >conftest.err
12878
 
  rm -f conftest.er1
12879
 
  cat conftest.err >&5
12880
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881
 
  (exit $ac_status); } && {
12882
 
         test -z "$ac_c_werror_flag" ||
12883
 
         test ! -s conftest.err
12884
 
       } && test -s conftest$ac_exeext && {
12885
 
         test "$cross_compiling" = yes ||
12886
 
         $as_test_x conftest$ac_exeext
12887
 
       }; then
12888
 
  ac_cv_search_socket=$ac_res
12889
 
else
12890
 
  $as_echo "$as_me: failed program was:" >&5
12891
 
sed 's/^/| /' conftest.$ac_ext >&5
12892
 
 
12893
 
        
12894
 
fi
12895
 
 
12896
 
rm -rf conftest.dSYM
12897
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12898
 
      conftest$ac_exeext 
12899
 
  if test "${ac_cv_search_socket+set}" = set; then
12900
 
  break
12901
 
fi
12902
 
done
12903
 
if test "${ac_cv_search_socket+set}" = set; then
12904
 
  :
12905
 
else
12906
 
  ac_cv_search_socket=no
12907
 
fi
12908
 
rm conftest.$ac_ext
12909
 
LIBS=$ac_func_search_save_LIBS
12910
 
fi
12911
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
12912
 
$as_echo "$ac_cv_search_socket" >&6; }
12913
 
ac_res=$ac_cv_search_socket
12914
 
if test "$ac_res" != no; then
12915
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12916
 
  
12917
 
fi
12918
 
 
12919
 
  { $as_echo "$as_me:$LINENO: checking for library containing inet_addr" >&5
12920
 
$as_echo_n "checking for library containing inet_addr... " >&6; }
12921
 
if test "${ac_cv_search_inet_addr+set}" = set; then
12922
 
  $as_echo_n "(cached) " >&6
12923
 
else
12924
 
  ac_func_search_save_LIBS=$LIBS
12925
 
cat >conftest.$ac_ext <<_ACEOF
12926
 
/* confdefs.h.  */
12927
 
_ACEOF
12928
 
cat confdefs.h >>conftest.$ac_ext
12929
 
cat >>conftest.$ac_ext <<_ACEOF
12930
 
/* end confdefs.h.  */
12931
 
 
12932
 
/* Override any GCC internal prototype to avoid an error.
12933
 
   Use char because int might match the return type of a GCC
12934
 
   builtin and then its argument prototype would still apply.  */
12935
 
#ifdef __cplusplus
12936
 
extern "C"
12937
 
#endif
12938
 
char inet_addr ();
12939
 
int
12940
 
main ()
12941
 
{
12942
 
return inet_addr ();
12943
 
  ;
12944
 
  return 0;
12945
 
}
12946
 
_ACEOF
12947
 
for ac_lib in '' nsl; do
12948
 
  if test -z "$ac_lib"; then
12949
 
    ac_res="none required"
12950
 
  else
12951
 
    ac_res=-l$ac_lib
12952
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12953
 
  fi
12954
 
  rm -f conftest.$ac_objext conftest$ac_exeext
12955
 
if { (ac_try="$ac_link"
12956
 
case "(($ac_try" in
12957
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958
 
  *) ac_try_echo=$ac_try;;
12959
 
esac
12960
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961
 
$as_echo "$ac_try_echo") >&5
12962
 
  (eval "$ac_link") 2>conftest.er1
12963
 
  ac_status=$?
12964
 
  grep -v '^ *+' conftest.er1 >conftest.err
12965
 
  rm -f conftest.er1
12966
 
  cat conftest.err >&5
12967
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968
 
  (exit $ac_status); } && {
12969
 
         test -z "$ac_c_werror_flag" ||
12970
 
         test ! -s conftest.err
12971
 
       } && test -s conftest$ac_exeext && {
12972
 
         test "$cross_compiling" = yes ||
12973
 
         $as_test_x conftest$ac_exeext
12974
 
       }; then
12975
 
  ac_cv_search_inet_addr=$ac_res
12976
 
else
12977
 
  $as_echo "$as_me: failed program was:" >&5
12978
 
sed 's/^/| /' conftest.$ac_ext >&5
12979
 
 
12980
 
        
12981
 
fi
12982
 
 
12983
 
rm -rf conftest.dSYM
12984
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12985
 
      conftest$ac_exeext 
12986
 
  if test "${ac_cv_search_inet_addr+set}" = set; then
12987
 
  break
12988
 
fi
12989
 
done
12990
 
if test "${ac_cv_search_inet_addr+set}" = set; then
12991
 
  :
12992
 
else
12993
 
  ac_cv_search_inet_addr=no
12994
 
fi
12995
 
rm conftest.$ac_ext
12996
 
LIBS=$ac_func_search_save_LIBS
12997
 
fi
12998
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5
12999
 
$as_echo "$ac_cv_search_inet_addr" >&6; }
13000
 
ac_res=$ac_cv_search_inet_addr
13001
 
if test "$ac_res" != no; then
13002
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13003
 
  
13004
 
fi
13005
 
 
13006
 
 
13007
 
  
13008
 
 
13009
 
 
13010
 
 
13011
 
 
13012
 
 
13013
 
for ac_header in errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h
13014
 
do
13015
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13016
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13017
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13018
 
$as_echo_n "checking for $ac_header... " >&6; }
13019
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13020
 
  $as_echo_n "(cached) " >&6
13021
 
fi
13022
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13023
 
                 $as_echo "$as_val"'`
13024
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13025
 
$as_echo "$ac_res" >&6; }
13026
 
else
13027
 
  # Is the header compilable?
13028
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13029
 
$as_echo_n "checking $ac_header usability... " >&6; }
13030
 
cat >conftest.$ac_ext <<_ACEOF
13031
 
/* confdefs.h.  */
13032
 
_ACEOF
13033
 
cat confdefs.h >>conftest.$ac_ext
13034
 
cat >>conftest.$ac_ext <<_ACEOF
13035
 
/* end confdefs.h.  */
13036
 
$ac_includes_default
13037
 
@%:@include <$ac_header>
13038
 
_ACEOF
13039
 
rm -f conftest.$ac_objext
13040
 
if { (ac_try="$ac_compile"
13041
 
case "(($ac_try" in
13042
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043
 
  *) ac_try_echo=$ac_try;;
13044
 
esac
13045
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13046
 
$as_echo "$ac_try_echo") >&5
13047
 
  (eval "$ac_compile") 2>conftest.er1
13048
 
  ac_status=$?
13049
 
  grep -v '^ *+' conftest.er1 >conftest.err
13050
 
  rm -f conftest.er1
13051
 
  cat conftest.err >&5
13052
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053
 
  (exit $ac_status); } && {
13054
 
         test -z "$ac_c_werror_flag" ||
13055
 
         test ! -s conftest.err
13056
 
       } && test -s conftest.$ac_objext; then
13057
 
  ac_header_compiler=yes
13058
 
else
13059
 
  $as_echo "$as_me: failed program was:" >&5
13060
 
sed 's/^/| /' conftest.$ac_ext >&5
13061
 
 
13062
 
        ac_header_compiler=no
13063
 
fi
13064
 
 
13065
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067
 
$as_echo "$ac_header_compiler" >&6; }
13068
 
 
13069
 
# Is the header present?
13070
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071
 
$as_echo_n "checking $ac_header presence... " >&6; }
13072
 
cat >conftest.$ac_ext <<_ACEOF
13073
 
/* confdefs.h.  */
13074
 
_ACEOF
13075
 
cat confdefs.h >>conftest.$ac_ext
13076
 
cat >>conftest.$ac_ext <<_ACEOF
13077
 
/* end confdefs.h.  */
13078
 
@%:@include <$ac_header>
13079
 
_ACEOF
13080
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
13081
 
case "(($ac_try" in
13082
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083
 
  *) ac_try_echo=$ac_try;;
13084
 
esac
13085
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13086
 
$as_echo "$ac_try_echo") >&5
13087
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13088
 
  ac_status=$?
13089
 
  grep -v '^ *+' conftest.er1 >conftest.err
13090
 
  rm -f conftest.er1
13091
 
  cat conftest.err >&5
13092
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093
 
  (exit $ac_status); } >/dev/null && {
13094
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13095
 
         test ! -s conftest.err
13096
 
       }; then
13097
 
  ac_header_preproc=yes
13098
 
else
13099
 
  $as_echo "$as_me: failed program was:" >&5
13100
 
sed 's/^/| /' conftest.$ac_ext >&5
13101
 
 
13102
 
  ac_header_preproc=no
13103
 
fi
13104
 
 
13105
 
rm -f conftest.err conftest.$ac_ext
13106
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13107
 
$as_echo "$ac_header_preproc" >&6; }
13108
 
 
13109
 
# So?  What about this header?
13110
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13111
 
  yes:no: )
13112
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13113
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13114
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13115
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13116
 
    ac_header_preproc=yes
13117
 
    ;;
13118
 
  no:yes:* )
13119
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13120
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13121
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13122
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13123
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13124
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13125
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13126
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13127
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13128
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13129
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13130
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13131
 
    
13132
 
    ;;
13133
 
esac
13134
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13135
 
$as_echo_n "checking for $ac_header... " >&6; }
13136
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13137
 
  $as_echo_n "(cached) " >&6
13138
 
else
13139
 
  eval "$as_ac_Header=\$ac_header_preproc"
13140
 
fi
13141
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13142
 
                 $as_echo "$as_val"'`
13143
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13144
 
$as_echo "$ac_res" >&6; }
13145
 
 
13146
 
fi
13147
 
as_val=`eval 'as_val=${'$as_ac_Header'}
13148
 
                 $as_echo "$as_val"'`
13149
 
   if test "x$as_val" = x""yes; then
13150
 
  cat >>confdefs.h <<_ACEOF
13151
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13152
 
_ACEOF
13153
 
 
13154
 
fi
13155
 
 
13156
 
done
13157
 
 
13158
 
  
13159
 
 
13160
 
 
13161
 
for ac_header in sys/select.h sys/socket.h sys/time.h
13162
 
do
13163
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13164
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13165
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13166
 
$as_echo_n "checking for $ac_header... " >&6; }
13167
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13168
 
  $as_echo_n "(cached) " >&6
13169
 
fi
13170
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13171
 
                 $as_echo "$as_val"'`
13172
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13173
 
$as_echo "$ac_res" >&6; }
13174
 
else
13175
 
  # Is the header compilable?
13176
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13177
 
$as_echo_n "checking $ac_header usability... " >&6; }
13178
 
cat >conftest.$ac_ext <<_ACEOF
13179
 
/* confdefs.h.  */
13180
 
_ACEOF
13181
 
cat confdefs.h >>conftest.$ac_ext
13182
 
cat >>conftest.$ac_ext <<_ACEOF
13183
 
/* end confdefs.h.  */
13184
 
$ac_includes_default
13185
 
@%:@include <$ac_header>
13186
 
_ACEOF
13187
 
rm -f conftest.$ac_objext
13188
 
if { (ac_try="$ac_compile"
13189
 
case "(($ac_try" in
13190
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191
 
  *) ac_try_echo=$ac_try;;
13192
 
esac
13193
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13194
 
$as_echo "$ac_try_echo") >&5
13195
 
  (eval "$ac_compile") 2>conftest.er1
13196
 
  ac_status=$?
13197
 
  grep -v '^ *+' conftest.er1 >conftest.err
13198
 
  rm -f conftest.er1
13199
 
  cat conftest.err >&5
13200
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201
 
  (exit $ac_status); } && {
13202
 
         test -z "$ac_c_werror_flag" ||
13203
 
         test ! -s conftest.err
13204
 
       } && test -s conftest.$ac_objext; then
13205
 
  ac_header_compiler=yes
13206
 
else
13207
 
  $as_echo "$as_me: failed program was:" >&5
13208
 
sed 's/^/| /' conftest.$ac_ext >&5
13209
 
 
13210
 
        ac_header_compiler=no
13211
 
fi
13212
 
 
13213
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13215
 
$as_echo "$ac_header_compiler" >&6; }
13216
 
 
13217
 
# Is the header present?
13218
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13219
 
$as_echo_n "checking $ac_header presence... " >&6; }
13220
 
cat >conftest.$ac_ext <<_ACEOF
13221
 
/* confdefs.h.  */
13222
 
_ACEOF
13223
 
cat confdefs.h >>conftest.$ac_ext
13224
 
cat >>conftest.$ac_ext <<_ACEOF
13225
 
/* end confdefs.h.  */
13226
 
@%:@include <$ac_header>
13227
 
_ACEOF
13228
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
13229
 
case "(($ac_try" in
13230
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231
 
  *) ac_try_echo=$ac_try;;
13232
 
esac
13233
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234
 
$as_echo "$ac_try_echo") >&5
13235
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13236
 
  ac_status=$?
13237
 
  grep -v '^ *+' conftest.er1 >conftest.err
13238
 
  rm -f conftest.er1
13239
 
  cat conftest.err >&5
13240
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241
 
  (exit $ac_status); } >/dev/null && {
13242
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13243
 
         test ! -s conftest.err
13244
 
       }; then
13245
 
  ac_header_preproc=yes
13246
 
else
13247
 
  $as_echo "$as_me: failed program was:" >&5
13248
 
sed 's/^/| /' conftest.$ac_ext >&5
13249
 
 
13250
 
  ac_header_preproc=no
13251
 
fi
13252
 
 
13253
 
rm -f conftest.err conftest.$ac_ext
13254
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13255
 
$as_echo "$ac_header_preproc" >&6; }
13256
 
 
13257
 
# So?  What about this header?
13258
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13259
 
  yes:no: )
13260
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13261
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13262
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13263
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13264
 
    ac_header_preproc=yes
13265
 
    ;;
13266
 
  no:yes:* )
13267
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13268
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13269
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13270
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13271
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13272
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13273
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13274
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13275
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13276
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13277
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13278
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13279
 
    
13280
 
    ;;
13281
 
esac
13282
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13283
 
$as_echo_n "checking for $ac_header... " >&6; }
13284
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13285
 
  $as_echo_n "(cached) " >&6
13286
 
else
13287
 
  eval "$as_ac_Header=\$ac_header_preproc"
13288
 
fi
13289
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13290
 
                 $as_echo "$as_val"'`
13291
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13292
 
$as_echo "$ac_res" >&6; }
13293
 
 
13294
 
fi
13295
 
as_val=`eval 'as_val=${'$as_ac_Header'}
13296
 
                 $as_echo "$as_val"'`
13297
 
   if test "x$as_val" = x""yes; then
13298
 
  cat >>confdefs.h <<_ACEOF
13299
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13300
 
_ACEOF
13301
 
 
13302
 
fi
13303
 
 
13304
 
done
13305
 
 
13306
 
  
13307
 
 
13308
 
for ac_header in arpa/inet.h netinet/in.h
13309
 
do
13310
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13311
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13312
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13313
 
$as_echo_n "checking for $ac_header... " >&6; }
13314
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13315
 
  $as_echo_n "(cached) " >&6
13316
 
fi
13317
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13318
 
                 $as_echo "$as_val"'`
13319
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13320
 
$as_echo "$ac_res" >&6; }
13321
 
else
13322
 
  # Is the header compilable?
13323
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13324
 
$as_echo_n "checking $ac_header usability... " >&6; }
13325
 
cat >conftest.$ac_ext <<_ACEOF
13326
 
/* confdefs.h.  */
13327
 
_ACEOF
13328
 
cat confdefs.h >>conftest.$ac_ext
13329
 
cat >>conftest.$ac_ext <<_ACEOF
13330
 
/* end confdefs.h.  */
13331
 
$ac_includes_default
13332
 
@%:@include <$ac_header>
13333
 
_ACEOF
13334
 
rm -f conftest.$ac_objext
13335
 
if { (ac_try="$ac_compile"
13336
 
case "(($ac_try" in
13337
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338
 
  *) ac_try_echo=$ac_try;;
13339
 
esac
13340
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13341
 
$as_echo "$ac_try_echo") >&5
13342
 
  (eval "$ac_compile") 2>conftest.er1
13343
 
  ac_status=$?
13344
 
  grep -v '^ *+' conftest.er1 >conftest.err
13345
 
  rm -f conftest.er1
13346
 
  cat conftest.err >&5
13347
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348
 
  (exit $ac_status); } && {
13349
 
         test -z "$ac_c_werror_flag" ||
13350
 
         test ! -s conftest.err
13351
 
       } && test -s conftest.$ac_objext; then
13352
 
  ac_header_compiler=yes
13353
 
else
13354
 
  $as_echo "$as_me: failed program was:" >&5
13355
 
sed 's/^/| /' conftest.$ac_ext >&5
13356
 
 
13357
 
        ac_header_compiler=no
13358
 
fi
13359
 
 
13360
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13361
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13362
 
$as_echo "$ac_header_compiler" >&6; }
13363
 
 
13364
 
# Is the header present?
13365
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13366
 
$as_echo_n "checking $ac_header presence... " >&6; }
13367
 
cat >conftest.$ac_ext <<_ACEOF
13368
 
/* confdefs.h.  */
13369
 
_ACEOF
13370
 
cat confdefs.h >>conftest.$ac_ext
13371
 
cat >>conftest.$ac_ext <<_ACEOF
13372
 
/* end confdefs.h.  */
13373
 
@%:@include <$ac_header>
13374
 
_ACEOF
13375
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
13376
 
case "(($ac_try" in
13377
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378
 
  *) ac_try_echo=$ac_try;;
13379
 
esac
13380
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13381
 
$as_echo "$ac_try_echo") >&5
13382
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13383
 
  ac_status=$?
13384
 
  grep -v '^ *+' conftest.er1 >conftest.err
13385
 
  rm -f conftest.er1
13386
 
  cat conftest.err >&5
13387
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388
 
  (exit $ac_status); } >/dev/null && {
13389
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13390
 
         test ! -s conftest.err
13391
 
       }; then
13392
 
  ac_header_preproc=yes
13393
 
else
13394
 
  $as_echo "$as_me: failed program was:" >&5
13395
 
sed 's/^/| /' conftest.$ac_ext >&5
13396
 
 
13397
 
  ac_header_preproc=no
13398
 
fi
13399
 
 
13400
 
rm -f conftest.err conftest.$ac_ext
13401
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13402
 
$as_echo "$ac_header_preproc" >&6; }
13403
 
 
13404
 
# So?  What about this header?
13405
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13406
 
  yes:no: )
13407
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13408
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13409
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13410
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13411
 
    ac_header_preproc=yes
13412
 
    ;;
13413
 
  no:yes:* )
13414
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13415
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13416
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13417
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13418
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13419
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13420
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13421
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13422
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13423
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13424
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13425
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13426
 
    
13427
 
    ;;
13428
 
esac
13429
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13430
 
$as_echo_n "checking for $ac_header... " >&6; }
13431
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13432
 
  $as_echo_n "(cached) " >&6
13433
 
else
13434
 
  eval "$as_ac_Header=\$ac_header_preproc"
13435
 
fi
13436
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
13437
 
                 $as_echo "$as_val"'`
13438
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13439
 
$as_echo "$ac_res" >&6; }
13440
 
 
13441
 
fi
13442
 
as_val=`eval 'as_val=${'$as_ac_Header'}
13443
 
                 $as_echo "$as_val"'`
13444
 
   if test "x$as_val" = x""yes; then
13445
 
  cat >>confdefs.h <<_ACEOF
13446
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13447
 
_ACEOF
13448
 
 
13449
 
fi
13450
 
 
13451
 
done
13452
 
 
13453
 
 
13454
 
  
13455
 
  { $as_echo "$as_me:$LINENO: checking for prctl" >&5
13456
 
$as_echo_n "checking for prctl... " >&6; }
13457
 
 
13458
 
  cat >conftest.$ac_ext <<_ACEOF
13459
 
/* confdefs.h.  */
13460
 
_ACEOF
13461
 
cat confdefs.h >>conftest.$ac_ext
13462
 
cat >>conftest.$ac_ext <<_ACEOF
13463
 
/* end confdefs.h.  */
13464
 
 #include <sys/prctl.h> 
13465
 
int
13466
 
main ()
13467
 
{
13468
 
prctl(0, 0, 0, 0, 0);
13469
 
  ;
13470
 
  return 0;
13471
 
}
13472
 
_ACEOF
13473
 
rm -f conftest.$ac_objext
13474
 
if { (ac_try="$ac_compile"
13475
 
case "(($ac_try" in
13476
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477
 
  *) ac_try_echo=$ac_try;;
13478
 
esac
13479
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13480
 
$as_echo "$ac_try_echo") >&5
13481
 
  (eval "$ac_compile") 2>conftest.er1
13482
 
  ac_status=$?
13483
 
  grep -v '^ *+' conftest.er1 >conftest.err
13484
 
  rm -f conftest.er1
13485
 
  cat conftest.err >&5
13486
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487
 
  (exit $ac_status); } && {
13488
 
         test -z "$ac_c_werror_flag" ||
13489
 
         test ! -s conftest.err
13490
 
       } && test -s conftest.$ac_objext; then
13491
 
  
13492
 
    
13493
 
cat >>confdefs.h <<\_ACEOF
13494
 
@%:@define HAVE_PRCTL 1
13495
 
_ACEOF
13496
 
 
13497
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
13498
 
$as_echo "yes" >&6; }
13499
 
  
13500
 
else
13501
 
  $as_echo "$as_me: failed program was:" >&5
13502
 
sed 's/^/| /' conftest.$ac_ext >&5
13503
 
 
13504
 
        
13505
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
13506
 
$as_echo "no" >&6; }
13507
 
  
13508
 
fi
13509
 
 
13510
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511
 
 
13512
 
  
13513
 
  have_clock_gettime=no
13514
 
 
13515
 
  { $as_echo "$as_me:$LINENO: checking for clock_gettime" >&5
13516
 
$as_echo_n "checking for clock_gettime... " >&6; }
13517
 
 
13518
 
  cat >conftest.$ac_ext <<_ACEOF
13519
 
/* confdefs.h.  */
13520
 
_ACEOF
13521
 
cat confdefs.h >>conftest.$ac_ext
13522
 
cat >>conftest.$ac_ext <<_ACEOF
13523
 
/* end confdefs.h.  */
13524
 
 #include <time.h> 
13525
 
int
13526
 
main ()
13527
 
{
13528
 
struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
13529
 
  ;
13530
 
  return 0;
13531
 
}
13532
 
_ACEOF
13533
 
rm -f conftest.$ac_objext conftest$ac_exeext
13534
 
if { (ac_try="$ac_link"
13535
 
case "(($ac_try" in
13536
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537
 
  *) ac_try_echo=$ac_try;;
13538
 
esac
13539
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13540
 
$as_echo "$ac_try_echo") >&5
13541
 
  (eval "$ac_link") 2>conftest.er1
13542
 
  ac_status=$?
13543
 
  grep -v '^ *+' conftest.er1 >conftest.err
13544
 
  rm -f conftest.er1
13545
 
  cat conftest.err >&5
13546
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547
 
  (exit $ac_status); } && {
13548
 
         test -z "$ac_c_werror_flag" ||
13549
 
         test ! -s conftest.err
13550
 
       } && test -s conftest$ac_exeext && {
13551
 
         test "$cross_compiling" = yes ||
13552
 
         $as_test_x conftest$ac_exeext
13553
 
       }; then
13554
 
  
13555
 
    have_clock_gettime=yes
13556
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
13557
 
$as_echo "yes" >&6; }
13558
 
  
13559
 
else
13560
 
  $as_echo "$as_me: failed program was:" >&5
13561
 
sed 's/^/| /' conftest.$ac_ext >&5
13562
 
 
13563
 
        
13564
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
13565
 
$as_echo "no" >&6; }
13566
 
  
13567
 
fi
13568
 
 
13569
 
rm -rf conftest.dSYM
13570
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13571
 
      conftest$ac_exeext conftest.$ac_ext
13572
 
 
13573
 
  if test "$have_clock_gettime" = "no"; then
13574
 
    { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13575
 
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13576
 
 
13577
 
    SAVED_LIBS="$LIBS"
13578
 
    LIBS="$LIBS -lrt"
13579
 
 
13580
 
    cat >conftest.$ac_ext <<_ACEOF
13581
 
/* confdefs.h.  */
13582
 
_ACEOF
13583
 
cat confdefs.h >>conftest.$ac_ext
13584
 
cat >>conftest.$ac_ext <<_ACEOF
13585
 
/* end confdefs.h.  */
13586
 
 #include <time.h> 
13587
 
int
13588
 
main ()
13589
 
{
13590
 
struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
13591
 
  ;
13592
 
  return 0;
13593
 
}
13594
 
_ACEOF
13595
 
rm -f conftest.$ac_objext conftest$ac_exeext
13596
 
if { (ac_try="$ac_link"
13597
 
case "(($ac_try" in
13598
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599
 
  *) ac_try_echo=$ac_try;;
13600
 
esac
13601
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13602
 
$as_echo "$ac_try_echo") >&5
13603
 
  (eval "$ac_link") 2>conftest.er1
13604
 
  ac_status=$?
13605
 
  grep -v '^ *+' conftest.er1 >conftest.err
13606
 
  rm -f conftest.er1
13607
 
  cat conftest.err >&5
13608
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609
 
  (exit $ac_status); } && {
13610
 
         test -z "$ac_c_werror_flag" ||
13611
 
         test ! -s conftest.err
13612
 
       } && test -s conftest$ac_exeext && {
13613
 
         test "$cross_compiling" = yes ||
13614
 
         $as_test_x conftest$ac_exeext
13615
 
       }; then
13616
 
  
13617
 
      have_clock_gettime=yes
13618
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
13619
 
$as_echo "yes" >&6; }
13620
 
    
13621
 
else
13622
 
  $as_echo "$as_me: failed program was:" >&5
13623
 
sed 's/^/| /' conftest.$ac_ext >&5
13624
 
 
13625
 
        
13626
 
      LIBS="$SAVED_LIBS"
13627
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
13628
 
$as_echo "no" >&6; }
13629
 
    
13630
 
fi
13631
 
 
13632
 
rm -rf conftest.dSYM
13633
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634
 
      conftest$ac_exeext conftest.$ac_ext
13635
 
  fi
13636
 
 
13637
 
  if test "$have_clock_gettime" = "yes"; then
13638
 
    
13639
 
cat >>confdefs.h <<\_ACEOF
13640
 
@%:@define HAVE_CLOCK_GETTIME 1
13641
 
_ACEOF
13642
 
 
13643
 
  fi
13644
 
 
13645
 
  have_clock_get_time=no
13646
 
 
13647
 
  if test "$have_clock_gettime" = "no"; then
13648
 
    { $as_echo "$as_me:$LINENO: checking for clock_get_time" >&5
13649
 
$as_echo_n "checking for clock_get_time... " >&6; }
13650
 
 
13651
 
    if test "$cross_compiling" = yes; then
13652
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13653
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13654
 
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13655
 
See \`config.log' for more details." >&5
13656
 
$as_echo "$as_me: error: cannot run test program while cross compiling
13657
 
See \`config.log' for more details." >&2;}
13658
 
   { (exit 1); exit 1; }; }; }
13659
 
else
13660
 
  cat >conftest.$ac_ext <<_ACEOF
13661
 
/* confdefs.h.  */
13662
 
_ACEOF
13663
 
cat confdefs.h >>conftest.$ac_ext
13664
 
cat >>conftest.$ac_ext <<_ACEOF
13665
 
/* end confdefs.h.  */
13666
 
 #include <mach/mach.h>
13667
 
      #include <mach/clock.h>
13668
 
      #include <mach/mach_error.h>
13669
 
 
13670
 
      int main()
13671
 
      {
13672
 
        kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime;
13673
 
        ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock);
13674
 
 
13675
 
        if (ret != KERN_SUCCESS) {
13676
 
          return 1;
13677
 
        }
13678
 
 
13679
 
        ret = clock_get_time(aClock, &aTime);
13680
 
        if (ret != KERN_SUCCESS) {
13681
 
          return 2;
13682
 
        }
13683
 
 
13684
 
        return 0;
13685
 
      }
13686
 
    
13687
 
_ACEOF
13688
 
rm -f conftest$ac_exeext
13689
 
if { (ac_try="$ac_link"
13690
 
case "(($ac_try" in
13691
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692
 
  *) ac_try_echo=$ac_try;;
13693
 
esac
13694
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13695
 
$as_echo "$ac_try_echo") >&5
13696
 
  (eval "$ac_link") 2>&5
13697
 
  ac_status=$?
13698
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700
 
  { (case "(($ac_try" in
13701
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702
 
  *) ac_try_echo=$ac_try;;
13703
 
esac
13704
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705
 
$as_echo "$ac_try_echo") >&5
13706
 
  (eval "$ac_try") 2>&5
13707
 
  ac_status=$?
13708
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709
 
  (exit $ac_status); }; }; then
13710
 
  
13711
 
      have_clock_get_time=yes
13712
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
13713
 
$as_echo "yes" >&6; }
13714
 
    
13715
 
else
13716
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
13717
 
$as_echo "$as_me: failed program was:" >&5
13718
 
sed 's/^/| /' conftest.$ac_ext >&5
13719
 
 
13720
 
( exit $ac_status )
13721
 
 
13722
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
13723
 
$as_echo "no" >&6; }
13724
 
    
13725
 
fi
13726
 
rm -rf conftest.dSYM
13727
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13728
 
fi
13729
 
 
13730
 
 
13731
 
  fi
13732
 
 
13733
 
  if test "$have_clock_get_time" = "yes"; then
13734
 
    
13735
 
cat >>confdefs.h <<\_ACEOF
13736
 
@%:@define HAVE_CLOCK_GET_TIME 1
13737
 
_ACEOF
13738
 
 
13739
 
  fi
13740
 
 
13741
 
  
13742
 
  have_ptrace=no
13743
 
  have_broken_ptrace=no
13744
 
 
13745
 
  { $as_echo "$as_me:$LINENO: checking for ptrace" >&5
13746
 
$as_echo_n "checking for ptrace... " >&6; }
13747
 
 
13748
 
  cat >conftest.$ac_ext <<_ACEOF
13749
 
/* confdefs.h.  */
13750
 
_ACEOF
13751
 
cat confdefs.h >>conftest.$ac_ext
13752
 
cat >>conftest.$ac_ext <<_ACEOF
13753
 
/* end confdefs.h.  */
13754
 
 
13755
 
    #include <sys/types.h>
13756
 
    #include <sys/ptrace.h> 
13757
 
int
13758
 
main ()
13759
 
{
13760
 
ptrace(0, 0, (void *) 0, 0);
13761
 
  ;
13762
 
  return 0;
13763
 
}
13764
 
_ACEOF
13765
 
rm -f conftest.$ac_objext
13766
 
if { (ac_try="$ac_compile"
13767
 
case "(($ac_try" in
13768
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769
 
  *) ac_try_echo=$ac_try;;
13770
 
esac
13771
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13772
 
$as_echo "$ac_try_echo") >&5
13773
 
  (eval "$ac_compile") 2>conftest.er1
13774
 
  ac_status=$?
13775
 
  grep -v '^ *+' conftest.er1 >conftest.err
13776
 
  rm -f conftest.er1
13777
 
  cat conftest.err >&5
13778
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779
 
  (exit $ac_status); } && {
13780
 
         test -z "$ac_c_werror_flag" ||
13781
 
         test ! -s conftest.err
13782
 
       } && test -s conftest.$ac_objext; then
13783
 
  
13784
 
    have_ptrace=yes
13785
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
13786
 
$as_echo "yes" >&6; }
13787
 
  
13788
 
else
13789
 
  $as_echo "$as_me: failed program was:" >&5
13790
 
sed 's/^/| /' conftest.$ac_ext >&5
13791
 
 
13792
 
        
13793
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
13794
 
$as_echo "no" >&6; }
13795
 
  
13796
 
fi
13797
 
 
13798
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799
 
 
13800
 
  if test "$have_ptrace" = "yes"; then
13801
 
    { $as_echo "$as_me:$LINENO: checking whether ptrace works" >&5
13802
 
$as_echo_n "checking whether ptrace works... " >&6; }
13803
 
 
13804
 
    if test "$cross_compiling" = yes; then
13805
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13806
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13807
 
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13808
 
See \`config.log' for more details." >&5
13809
 
$as_echo "$as_me: error: cannot run test program while cross compiling
13810
 
See \`config.log' for more details." >&2;}
13811
 
   { (exit 1); exit 1; }; }; }
13812
 
else
13813
 
  cat >conftest.$ac_ext <<_ACEOF
13814
 
/* confdefs.h.  */
13815
 
_ACEOF
13816
 
cat confdefs.h >>conftest.$ac_ext
13817
 
cat >>conftest.$ac_ext <<_ACEOF
13818
 
/* end confdefs.h.  */
13819
 
 
13820
 
      #include <unistd.h>
13821
 
      #include <signal.h>
13822
 
      #include <sys/wait.h>
13823
 
      #include <sys/types.h>
13824
 
      #include <sys/ptrace.h>
13825
 
      #include <errno.h>
13826
 
 
13827
 
      #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
13828
 
      #define PTRACE_ATTACH PT_ATTACH
13829
 
      #endif
13830
 
 
13831
 
      #if !defined(PTRACE_DETACH) && defined(PT_DETACH)
13832
 
      #define PTRACE_DETACH PT_DETACH
13833
 
      #endif
13834
 
 
13835
 
      #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D)
13836
 
      #define PTRACE_PEEKDATA PT_READ_D
13837
 
      #endif
13838
 
 
13839
 
      int main()
13840
 
      {
13841
 
        long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */
13842
 
        long v2;
13843
 
        pid_t child;
13844
 
        int status;
13845
 
 
13846
 
        if ( (child = fork()) ) { /* parent */
13847
 
          int ret = 0;
13848
 
 
13849
 
          if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) {
13850
 
            return 2;
13851
 
          }
13852
 
 
13853
 
          waitpid(child, &status, 0);
13854
 
 
13855
 
      #ifdef PT_IO
13856
 
          struct ptrace_io_desc ptio = {
13857
 
            .piod_op = PIOD_READ_D,
13858
 
            .piod_offs = &v1,
13859
 
            .piod_addr = &v2,
13860
 
            .piod_len = sizeof(v1)
13861
 
          };
13862
 
 
13863
 
          if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) {
13864
 
            ret = 3;
13865
 
          }
13866
 
      #else
13867
 
          errno = 0;
13868
 
 
13869
 
          v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0);
13870
 
 
13871
 
          if (errno) {
13872
 
            ret = 4;
13873
 
          }
13874
 
      #endif
13875
 
          ptrace(PTRACE_DETACH, child, (void *) 1, 0);
13876
 
 
13877
 
          kill(child, SIGKILL);
13878
 
 
13879
 
          return ret ? ret : (v1 != v2);
13880
 
        }
13881
 
        else { /* child */
13882
 
          sleep(10);
13883
 
          return 0;
13884
 
        }
13885
 
      }
13886
 
    
13887
 
_ACEOF
13888
 
rm -f conftest$ac_exeext
13889
 
if { (ac_try="$ac_link"
13890
 
case "(($ac_try" in
13891
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892
 
  *) ac_try_echo=$ac_try;;
13893
 
esac
13894
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13895
 
$as_echo "$ac_try_echo") >&5
13896
 
  (eval "$ac_link") 2>&5
13897
 
  ac_status=$?
13898
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13900
 
  { (case "(($ac_try" in
13901
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902
 
  *) ac_try_echo=$ac_try;;
13903
 
esac
13904
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13905
 
$as_echo "$ac_try_echo") >&5
13906
 
  (eval "$ac_try") 2>&5
13907
 
  ac_status=$?
13908
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909
 
  (exit $ac_status); }; }; then
13910
 
  
13911
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
13912
 
$as_echo "yes" >&6; }
13913
 
    
13914
 
else
13915
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
13916
 
$as_echo "$as_me: failed program was:" >&5
13917
 
sed 's/^/| /' conftest.$ac_ext >&5
13918
 
 
13919
 
( exit $ac_status )
13920
 
 
13921
 
      have_ptrace=no
13922
 
      have_broken_ptrace=yes
13923
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
13924
 
$as_echo "no" >&6; }
13925
 
    
13926
 
fi
13927
 
rm -rf conftest.dSYM
13928
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13929
 
fi
13930
 
 
13931
 
 
13932
 
  fi
13933
 
 
13934
 
  if test "$have_ptrace" = "yes"; then
13935
 
    
13936
 
cat >>confdefs.h <<\_ACEOF
13937
 
@%:@define HAVE_PTRACE 1
13938
 
_ACEOF
13939
 
 
13940
 
  fi
13941
 
 
13942
 
  have_mach_vm_read=no
13943
 
 
13944
 
  if test "$have_broken_ptrace" = "yes"; then
13945
 
    { $as_echo "$as_me:$LINENO: checking for mach_vm_read" >&5
13946
 
$as_echo_n "checking for mach_vm_read... " >&6; }
13947
 
 
13948
 
    cat >conftest.$ac_ext <<_ACEOF
13949
 
/* confdefs.h.  */
13950
 
_ACEOF
13951
 
cat confdefs.h >>conftest.$ac_ext
13952
 
cat >>conftest.$ac_ext <<_ACEOF
13953
 
/* end confdefs.h.  */
13954
 
 #include <mach/mach.h>
13955
 
      #include <mach/mach_vm.h>
13956
 
    
13957
 
int
13958
 
main ()
13959
 
{
13960
 
 
13961
 
      mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0);
13962
 
    
13963
 
  ;
13964
 
  return 0;
13965
 
}
13966
 
_ACEOF
13967
 
rm -f conftest.$ac_objext
13968
 
if { (ac_try="$ac_compile"
13969
 
case "(($ac_try" in
13970
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971
 
  *) ac_try_echo=$ac_try;;
13972
 
esac
13973
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13974
 
$as_echo "$ac_try_echo") >&5
13975
 
  (eval "$ac_compile") 2>conftest.er1
13976
 
  ac_status=$?
13977
 
  grep -v '^ *+' conftest.er1 >conftest.err
13978
 
  rm -f conftest.er1
13979
 
  cat conftest.err >&5
13980
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981
 
  (exit $ac_status); } && {
13982
 
         test -z "$ac_c_werror_flag" ||
13983
 
         test ! -s conftest.err
13984
 
       } && test -s conftest.$ac_objext; then
13985
 
  
13986
 
      have_mach_vm_read=yes
13987
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
13988
 
$as_echo "yes" >&6; }
13989
 
    
13990
 
else
13991
 
  $as_echo "$as_me: failed program was:" >&5
13992
 
sed 's/^/| /' conftest.$ac_ext >&5
13993
 
 
13994
 
        
13995
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
13996
 
$as_echo "no" >&6; }
13997
 
    
13998
 
fi
13999
 
 
14000
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001
 
  fi
14002
 
 
14003
 
  if test "$have_mach_vm_read" = "yes"; then
14004
 
    
14005
 
cat >>confdefs.h <<\_ACEOF
14006
 
@%:@define HAVE_MACH_VM_READ 1
14007
 
_ACEOF
14008
 
 
14009
 
  fi
14010
 
 
14011
 
  proc_mem_file=""
14012
 
 
14013
 
  if test -r /proc/$$/mem ; then
14014
 
    proc_mem_file="mem"
14015
 
  else
14016
 
    if test -r /proc/$$/as ; then
14017
 
      proc_mem_file="as"
14018
 
    fi
14019
 
  fi
14020
 
 
14021
 
  if test -n "$proc_mem_file" ; then
14022
 
    { $as_echo "$as_me:$LINENO: checking for proc mem file" >&5
14023
 
$as_echo_n "checking for proc mem file... " >&6; }
14024
 
  
14025
 
    if test "$cross_compiling" = yes; then
14026
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14027
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14028
 
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14029
 
See \`config.log' for more details." >&5
14030
 
$as_echo "$as_me: error: cannot run test program while cross compiling
14031
 
See \`config.log' for more details." >&2;}
14032
 
   { (exit 1); exit 1; }; }; }
14033
 
else
14034
 
  cat >conftest.$ac_ext <<_ACEOF
14035
 
/* confdefs.h.  */
14036
 
_ACEOF
14037
 
cat confdefs.h >>conftest.$ac_ext
14038
 
cat >>conftest.$ac_ext <<_ACEOF
14039
 
/* end confdefs.h.  */
14040
 
 
14041
 
      #define _GNU_SOURCE
14042
 
      #define _FILE_OFFSET_BITS 64
14043
 
      #include <stdint.h>
14044
 
      #include <unistd.h>
14045
 
      #include <sys/types.h>
14046
 
      #include <sys/stat.h>
14047
 
      #include <fcntl.h>
14048
 
      #include <stdio.h>
14049
 
      int main()
14050
 
      {
14051
 
        long v1 = (unsigned int) -1, v2 = 0;
14052
 
        char buf[128];
14053
 
        int fd;
14054
 
        sprintf(buf, "/proc/%d/$proc_mem_file", getpid());
14055
 
        fd = open(buf, O_RDONLY);
14056
 
        if (0 > fd) {
14057
 
          return 1;
14058
 
        }
14059
 
        if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) {
14060
 
          close(fd);
14061
 
          return 1;
14062
 
        }
14063
 
        close(fd);
14064
 
        return v1 != v2;
14065
 
      }
14066
 
    
14067
 
_ACEOF
14068
 
rm -f conftest$ac_exeext
14069
 
if { (ac_try="$ac_link"
14070
 
case "(($ac_try" in
14071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072
 
  *) ac_try_echo=$ac_try;;
14073
 
esac
14074
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14075
 
$as_echo "$ac_try_echo") >&5
14076
 
  (eval "$ac_link") 2>&5
14077
 
  ac_status=$?
14078
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14080
 
  { (case "(($ac_try" in
14081
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082
 
  *) ac_try_echo=$ac_try;;
14083
 
esac
14084
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14085
 
$as_echo "$ac_try_echo") >&5
14086
 
  (eval "$ac_try") 2>&5
14087
 
  ac_status=$?
14088
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089
 
  (exit $ac_status); }; }; then
14090
 
  
14091
 
      { $as_echo "$as_me:$LINENO: result: $proc_mem_file" >&5
14092
 
$as_echo "$proc_mem_file" >&6; }
14093
 
    
14094
 
else
14095
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
14096
 
$as_echo "$as_me: failed program was:" >&5
14097
 
sed 's/^/| /' conftest.$ac_ext >&5
14098
 
 
14099
 
( exit $ac_status )
14100
 
 
14101
 
      proc_mem_file=""
14102
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
14103
 
$as_echo "no" >&6; }
14104
 
    
14105
 
fi
14106
 
rm -rf conftest.dSYM
14107
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14108
 
fi
14109
 
 
14110
 
 
14111
 
  fi
14112
 
  
14113
 
  if test -n "$proc_mem_file"; then
14114
 
    
14115
 
cat >>confdefs.h <<_ACEOF
14116
 
@%:@define PROC_MEM_FILE "$proc_mem_file"
14117
 
_ACEOF
14118
 
 
14119
 
  fi
14120
 
  
14121
 
  fpm_trace_type=""
14122
 
 
14123
 
  if test "$have_ptrace" = "yes"; then
14124
 
    fpm_trace_type=ptrace
14125
 
    
14126
 
  elif test -n "$proc_mem_file"; then
14127
 
    fpm_trace_type=pread
14128
 
    
14129
 
  elif test "$have_mach_vm_read" = "yes" ; then
14130
 
    fpm_trace_type=mach
14131
 
    
14132
 
  else
14133
 
    { $as_echo "$as_me:$LINENO: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5
14134
 
$as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;}    
14135
 
  fi
14136
 
  
14137
 
 
14138
 
  
14139
 
  { $as_echo "$as_me:$LINENO: checking if gcc supports __sync_bool_compare_and_swap" >&5
14140
 
$as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
14141
 
  cat >conftest.$ac_ext <<_ACEOF
14142
 
/* confdefs.h.  */
14143
 
_ACEOF
14144
 
cat confdefs.h >>conftest.$ac_ext
14145
 
cat >>conftest.$ac_ext <<_ACEOF
14146
 
/* end confdefs.h.  */
14147
 
 
14148
 
int
14149
 
main ()
14150
 
{
14151
 
 
14152
 
    int variable = 1;
14153
 
    return (__sync_bool_compare_and_swap(&variable, 1, 2)
14154
 
           && __sync_add_and_fetch(&variable, 1)) ? 1 : 0;
14155
 
  
14156
 
  ;
14157
 
  return 0;
14158
 
}
14159
 
_ACEOF
14160
 
rm -f conftest.$ac_objext conftest$ac_exeext
14161
 
if { (ac_try="$ac_link"
14162
 
case "(($ac_try" in
14163
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164
 
  *) ac_try_echo=$ac_try;;
14165
 
esac
14166
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14167
 
$as_echo "$ac_try_echo") >&5
14168
 
  (eval "$ac_link") 2>conftest.er1
14169
 
  ac_status=$?
14170
 
  grep -v '^ *+' conftest.er1 >conftest.err
14171
 
  rm -f conftest.er1
14172
 
  cat conftest.err >&5
14173
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174
 
  (exit $ac_status); } && {
14175
 
         test -z "$ac_c_werror_flag" ||
14176
 
         test ! -s conftest.err
14177
 
       } && test -s conftest$ac_exeext && {
14178
 
         test "$cross_compiling" = yes ||
14179
 
         $as_test_x conftest$ac_exeext
14180
 
       }; then
14181
 
  
14182
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
14183
 
$as_echo "yes" >&6; }
14184
 
    
14185
 
cat >>confdefs.h <<\_ACEOF
14186
 
@%:@define HAVE_BUILTIN_ATOMIC 1
14187
 
_ACEOF
14188
 
 
14189
 
  
14190
 
else
14191
 
  $as_echo "$as_me: failed program was:" >&5
14192
 
sed 's/^/| /' conftest.$ac_ext >&5
14193
 
 
14194
 
        
14195
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
14196
 
$as_echo "no" >&6; }
14197
 
  
14198
 
fi
14199
 
 
14200
 
rm -rf conftest.dSYM
14201
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14202
 
      conftest$ac_exeext conftest.$ac_ext
14203
 
 
14204
 
  
14205
 
  have_lq=no
14206
 
 
14207
 
  { $as_echo "$as_me:$LINENO: checking for TCP_INFO" >&5
14208
 
$as_echo_n "checking for TCP_INFO... " >&6; }
14209
 
 
14210
 
  cat >conftest.$ac_ext <<_ACEOF
14211
 
/* confdefs.h.  */
14212
 
_ACEOF
14213
 
cat confdefs.h >>conftest.$ac_ext
14214
 
cat >>conftest.$ac_ext <<_ACEOF
14215
 
/* end confdefs.h.  */
14216
 
 #include <netinet/tcp.h> 
14217
 
int
14218
 
main ()
14219
 
{
14220
 
struct tcp_info ti; int x = TCP_INFO;
14221
 
  ;
14222
 
  return 0;
14223
 
}
14224
 
_ACEOF
14225
 
rm -f conftest.$ac_objext
14226
 
if { (ac_try="$ac_compile"
14227
 
case "(($ac_try" in
14228
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229
 
  *) ac_try_echo=$ac_try;;
14230
 
esac
14231
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14232
 
$as_echo "$ac_try_echo") >&5
14233
 
  (eval "$ac_compile") 2>conftest.er1
14234
 
  ac_status=$?
14235
 
  grep -v '^ *+' conftest.er1 >conftest.err
14236
 
  rm -f conftest.er1
14237
 
  cat conftest.err >&5
14238
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239
 
  (exit $ac_status); } && {
14240
 
         test -z "$ac_c_werror_flag" ||
14241
 
         test ! -s conftest.err
14242
 
       } && test -s conftest.$ac_objext; then
14243
 
  
14244
 
    have_lq=tcp_info
14245
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
14246
 
$as_echo "yes" >&6; }
14247
 
  
14248
 
else
14249
 
  $as_echo "$as_me: failed program was:" >&5
14250
 
sed 's/^/| /' conftest.$ac_ext >&5
14251
 
 
14252
 
        
14253
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
14254
 
$as_echo "no" >&6; }
14255
 
  
14256
 
fi
14257
 
 
14258
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259
 
 
14260
 
  if test "$have_lq" = "tcp_info"; then
14261
 
    
14262
 
cat >>confdefs.h <<\_ACEOF
14263
 
@%:@define HAVE_LQ_TCP_INFO 1
14264
 
_ACEOF
14265
 
 
14266
 
  fi
14267
 
 
14268
 
  if test "$have_lq" = "no" ; then
14269
 
    { $as_echo "$as_me:$LINENO: checking for SO_LISTENQLEN" >&5
14270
 
$as_echo_n "checking for SO_LISTENQLEN... " >&6; }
14271
 
 
14272
 
    cat >conftest.$ac_ext <<_ACEOF
14273
 
/* confdefs.h.  */
14274
 
_ACEOF
14275
 
cat confdefs.h >>conftest.$ac_ext
14276
 
cat >>conftest.$ac_ext <<_ACEOF
14277
 
/* end confdefs.h.  */
14278
 
 #include <sys/socket.h> 
14279
 
int
14280
 
main ()
14281
 
{
14282
 
int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN;
14283
 
  ;
14284
 
  return 0;
14285
 
}
14286
 
_ACEOF
14287
 
rm -f conftest.$ac_objext
14288
 
if { (ac_try="$ac_compile"
14289
 
case "(($ac_try" in
14290
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291
 
  *) ac_try_echo=$ac_try;;
14292
 
esac
14293
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14294
 
$as_echo "$ac_try_echo") >&5
14295
 
  (eval "$ac_compile") 2>conftest.er1
14296
 
  ac_status=$?
14297
 
  grep -v '^ *+' conftest.er1 >conftest.err
14298
 
  rm -f conftest.er1
14299
 
  cat conftest.err >&5
14300
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301
 
  (exit $ac_status); } && {
14302
 
         test -z "$ac_c_werror_flag" ||
14303
 
         test ! -s conftest.err
14304
 
       } && test -s conftest.$ac_objext; then
14305
 
  
14306
 
      have_lq=so_listenq
14307
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
14308
 
$as_echo "yes" >&6; }
14309
 
    
14310
 
else
14311
 
  $as_echo "$as_me: failed program was:" >&5
14312
 
sed 's/^/| /' conftest.$ac_ext >&5
14313
 
 
14314
 
        
14315
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
14316
 
$as_echo "no" >&6; }
14317
 
    
14318
 
fi
14319
 
 
14320
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321
 
 
14322
 
    if test "$have_lq" = "tcp_info"; then
14323
 
      
14324
 
cat >>confdefs.h <<\_ACEOF
14325
 
@%:@define HAVE_LQ_SO_LISTENQ 1
14326
 
_ACEOF
14327
 
 
14328
 
    fi
14329
 
  fi
14330
 
 
14331
 
        
14332
 
        { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
14333
 
$as_echo_n "checking for sysconf... " >&6; }
14334
 
 
14335
 
        cat >conftest.$ac_ext <<_ACEOF
14336
 
/* confdefs.h.  */
14337
 
_ACEOF
14338
 
cat confdefs.h >>conftest.$ac_ext
14339
 
cat >>conftest.$ac_ext <<_ACEOF
14340
 
/* end confdefs.h.  */
14341
 
 #include <unistd.h> 
14342
 
int
14343
 
main ()
14344
 
{
14345
 
sysconf(_SC_CLK_TCK);
14346
 
  ;
14347
 
  return 0;
14348
 
}
14349
 
_ACEOF
14350
 
rm -f conftest.$ac_objext
14351
 
if { (ac_try="$ac_compile"
14352
 
case "(($ac_try" in
14353
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354
 
  *) ac_try_echo=$ac_try;;
14355
 
esac
14356
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14357
 
$as_echo "$ac_try_echo") >&5
14358
 
  (eval "$ac_compile") 2>conftest.er1
14359
 
  ac_status=$?
14360
 
  grep -v '^ *+' conftest.er1 >conftest.err
14361
 
  rm -f conftest.er1
14362
 
  cat conftest.err >&5
14363
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364
 
  (exit $ac_status); } && {
14365
 
         test -z "$ac_c_werror_flag" ||
14366
 
         test ! -s conftest.err
14367
 
       } && test -s conftest.$ac_objext; then
14368
 
  
14369
 
                
14370
 
cat >>confdefs.h <<\_ACEOF
14371
 
@%:@define HAVE_SYSCONF 1
14372
 
_ACEOF
14373
 
 
14374
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
14375
 
$as_echo "yes" >&6; }
14376
 
        
14377
 
else
14378
 
  $as_echo "$as_me: failed program was:" >&5
14379
 
sed 's/^/| /' conftest.$ac_ext >&5
14380
 
 
14381
 
        
14382
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
14383
 
$as_echo "no" >&6; }
14384
 
        
14385
 
fi
14386
 
 
14387
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388
 
 
14389
 
        
14390
 
        { $as_echo "$as_me:$LINENO: checking for times" >&5
14391
 
$as_echo_n "checking for times... " >&6; }
14392
 
 
14393
 
        cat >conftest.$ac_ext <<_ACEOF
14394
 
/* confdefs.h.  */
14395
 
_ACEOF
14396
 
cat confdefs.h >>conftest.$ac_ext
14397
 
cat >>conftest.$ac_ext <<_ACEOF
14398
 
/* end confdefs.h.  */
14399
 
 #include <sys/times.h> 
14400
 
int
14401
 
main ()
14402
 
{
14403
 
struct tms t; times(&t);
14404
 
  ;
14405
 
  return 0;
14406
 
}
14407
 
_ACEOF
14408
 
rm -f conftest.$ac_objext
14409
 
if { (ac_try="$ac_compile"
14410
 
case "(($ac_try" in
14411
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412
 
  *) ac_try_echo=$ac_try;;
14413
 
esac
14414
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415
 
$as_echo "$ac_try_echo") >&5
14416
 
  (eval "$ac_compile") 2>conftest.er1
14417
 
  ac_status=$?
14418
 
  grep -v '^ *+' conftest.er1 >conftest.err
14419
 
  rm -f conftest.er1
14420
 
  cat conftest.err >&5
14421
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422
 
  (exit $ac_status); } && {
14423
 
         test -z "$ac_c_werror_flag" ||
14424
 
         test ! -s conftest.err
14425
 
       } && test -s conftest.$ac_objext; then
14426
 
  
14427
 
                
14428
 
cat >>confdefs.h <<\_ACEOF
14429
 
@%:@define HAVE_TIMES 1
14430
 
_ACEOF
14431
 
 
14432
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
14433
 
$as_echo "yes" >&6; }
14434
 
        
14435
 
else
14436
 
  $as_echo "$as_me: failed program was:" >&5
14437
 
sed 's/^/| /' conftest.$ac_ext >&5
14438
 
 
14439
 
        
14440
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
14441
 
$as_echo "no" >&6; }
14442
 
        
14443
 
fi
14444
 
 
14445
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446
 
 
14447
 
        
14448
 
        { $as_echo "$as_me:$LINENO: checking for kqueue" >&5
14449
 
$as_echo_n "checking for kqueue... " >&6; }
14450
 
 
14451
 
        cat >conftest.$ac_ext <<_ACEOF
14452
 
/* confdefs.h.  */
14453
 
_ACEOF
14454
 
cat confdefs.h >>conftest.$ac_ext
14455
 
cat >>conftest.$ac_ext <<_ACEOF
14456
 
/* end confdefs.h.  */
14457
 
 
14458
 
                #include <sys/types.h>
14459
 
                #include <sys/event.h>
14460
 
                #include <sys/time.h>
14461
 
        
14462
 
int
14463
 
main ()
14464
 
{
14465
 
 
14466
 
                int kfd;
14467
 
                struct kevent k;
14468
 
                kfd = kqueue();
14469
 
                /* 0 -> STDIN_FILENO */
14470
 
                EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL);
14471
 
        
14472
 
  ;
14473
 
  return 0;
14474
 
}
14475
 
_ACEOF
14476
 
rm -f conftest.$ac_objext
14477
 
if { (ac_try="$ac_compile"
14478
 
case "(($ac_try" in
14479
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480
 
  *) ac_try_echo=$ac_try;;
14481
 
esac
14482
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14483
 
$as_echo "$ac_try_echo") >&5
14484
 
  (eval "$ac_compile") 2>conftest.er1
14485
 
  ac_status=$?
14486
 
  grep -v '^ *+' conftest.er1 >conftest.err
14487
 
  rm -f conftest.er1
14488
 
  cat conftest.err >&5
14489
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490
 
  (exit $ac_status); } && {
14491
 
         test -z "$ac_c_werror_flag" ||
14492
 
         test ! -s conftest.err
14493
 
       } && test -s conftest.$ac_objext; then
14494
 
  
14495
 
                
14496
 
cat >>confdefs.h <<\_ACEOF
14497
 
@%:@define HAVE_KQUEUE 1
14498
 
_ACEOF
14499
 
 
14500
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
14501
 
$as_echo "yes" >&6; }
14502
 
        
14503
 
else
14504
 
  $as_echo "$as_me: failed program was:" >&5
14505
 
sed 's/^/| /' conftest.$ac_ext >&5
14506
 
 
14507
 
        
14508
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
14509
 
$as_echo "no" >&6; }
14510
 
        
14511
 
fi
14512
 
 
14513
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514
 
 
14515
 
        
14516
 
        { $as_echo "$as_me:$LINENO: checking for port framework" >&5
14517
 
$as_echo_n "checking for port framework... " >&6; }
14518
 
 
14519
 
        cat >conftest.$ac_ext <<_ACEOF
14520
 
/* confdefs.h.  */
14521
 
_ACEOF
14522
 
cat confdefs.h >>conftest.$ac_ext
14523
 
cat >>conftest.$ac_ext <<_ACEOF
14524
 
/* end confdefs.h.  */
14525
 
 
14526
 
                #include <port.h>
14527
 
        
14528
 
int
14529
 
main ()
14530
 
{
14531
 
 
14532
 
                int port;
14533
 
 
14534
 
                port = port_create();
14535
 
                if (port < 0) {
14536
 
                        return 1;
14537
 
                }
14538
 
        
14539
 
  ;
14540
 
  return 0;
14541
 
}
14542
 
_ACEOF
14543
 
rm -f conftest.$ac_objext
14544
 
if { (ac_try="$ac_compile"
14545
 
case "(($ac_try" in
14546
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547
 
  *) ac_try_echo=$ac_try;;
14548
 
esac
14549
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14550
 
$as_echo "$ac_try_echo") >&5
14551
 
  (eval "$ac_compile") 2>conftest.er1
14552
 
  ac_status=$?
14553
 
  grep -v '^ *+' conftest.er1 >conftest.err
14554
 
  rm -f conftest.er1
14555
 
  cat conftest.err >&5
14556
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557
 
  (exit $ac_status); } && {
14558
 
         test -z "$ac_c_werror_flag" ||
14559
 
         test ! -s conftest.err
14560
 
       } && test -s conftest.$ac_objext; then
14561
 
  
14562
 
                
14563
 
cat >>confdefs.h <<\_ACEOF
14564
 
@%:@define HAVE_PORT 1
14565
 
_ACEOF
14566
 
 
14567
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
14568
 
$as_echo "yes" >&6; }
14569
 
        
14570
 
else
14571
 
  $as_echo "$as_me: failed program was:" >&5
14572
 
sed 's/^/| /' conftest.$ac_ext >&5
14573
 
 
14574
 
        
14575
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
14576
 
$as_echo "no" >&6; }
14577
 
        
14578
 
fi
14579
 
 
14580
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581
 
 
14582
 
        
14583
 
        { $as_echo "$as_me:$LINENO: checking for /dev/poll" >&5
14584
 
$as_echo_n "checking for /dev/poll... " >&6; }
14585
 
 
14586
 
        cat >conftest.$ac_ext <<_ACEOF
14587
 
/* confdefs.h.  */
14588
 
_ACEOF
14589
 
cat confdefs.h >>conftest.$ac_ext
14590
 
cat >>conftest.$ac_ext <<_ACEOF
14591
 
/* end confdefs.h.  */
14592
 
 
14593
 
                #include <stdio.h>
14594
 
                #include <sys/devpoll.h>
14595
 
        
14596
 
int
14597
 
main ()
14598
 
{
14599
 
 
14600
 
                int n, dp;
14601
 
                struct dvpoll dvp;
14602
 
                dp = 0;
14603
 
                dvp.dp_fds = NULL;
14604
 
                dvp.dp_nfds = 0;
14605
 
                dvp.dp_timeout = 0;
14606
 
                n = ioctl(dp, DP_POLL, &dvp)
14607
 
        
14608
 
  ;
14609
 
  return 0;
14610
 
}
14611
 
_ACEOF
14612
 
rm -f conftest.$ac_objext
14613
 
if { (ac_try="$ac_compile"
14614
 
case "(($ac_try" in
14615
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616
 
  *) ac_try_echo=$ac_try;;
14617
 
esac
14618
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14619
 
$as_echo "$ac_try_echo") >&5
14620
 
  (eval "$ac_compile") 2>conftest.er1
14621
 
  ac_status=$?
14622
 
  grep -v '^ *+' conftest.er1 >conftest.err
14623
 
  rm -f conftest.er1
14624
 
  cat conftest.err >&5
14625
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626
 
  (exit $ac_status); } && {
14627
 
         test -z "$ac_c_werror_flag" ||
14628
 
         test ! -s conftest.err
14629
 
       } && test -s conftest.$ac_objext; then
14630
 
  
14631
 
                
14632
 
cat >>confdefs.h <<\_ACEOF
14633
 
@%:@define HAVE_DEVPOLL 1
14634
 
_ACEOF
14635
 
 
14636
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
14637
 
$as_echo "yes" >&6; }
14638
 
        
14639
 
else
14640
 
  $as_echo "$as_me: failed program was:" >&5
14641
 
sed 's/^/| /' conftest.$ac_ext >&5
14642
 
 
14643
 
        
14644
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
14645
 
$as_echo "no" >&6; }
14646
 
        
14647
 
fi
14648
 
 
14649
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650
 
 
14651
 
        
14652
 
        { $as_echo "$as_me:$LINENO: checking for epoll" >&5
14653
 
$as_echo_n "checking for epoll... " >&6; }
14654
 
 
14655
 
        cat >conftest.$ac_ext <<_ACEOF
14656
 
/* confdefs.h.  */
14657
 
_ACEOF
14658
 
cat confdefs.h >>conftest.$ac_ext
14659
 
cat >>conftest.$ac_ext <<_ACEOF
14660
 
/* end confdefs.h.  */
14661
 
 
14662
 
                #include <sys/epoll.h>
14663
 
        
14664
 
int
14665
 
main ()
14666
 
{
14667
 
 
14668
 
                int epollfd;
14669
 
                struct epoll_event e;
14670
 
 
14671
 
                epollfd = epoll_create(1);
14672
 
                if (epollfd < 0) {
14673
 
                        return 1;
14674
 
                }
14675
 
 
14676
 
                e.events = EPOLLIN | EPOLLET;
14677
 
                e.data.fd = 0;
14678
 
 
14679
 
                if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) {
14680
 
                        return 1;
14681
 
                }
14682
 
 
14683
 
                e.events = 0;
14684
 
                if (epoll_wait(epollfd, &e, 1, 1) < 0) {
14685
 
                        return 1;
14686
 
                }
14687
 
        
14688
 
  ;
14689
 
  return 0;
14690
 
}
14691
 
_ACEOF
14692
 
rm -f conftest.$ac_objext
14693
 
if { (ac_try="$ac_compile"
14694
 
case "(($ac_try" in
14695
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696
 
  *) ac_try_echo=$ac_try;;
14697
 
esac
14698
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14699
 
$as_echo "$ac_try_echo") >&5
14700
 
  (eval "$ac_compile") 2>conftest.er1
14701
 
  ac_status=$?
14702
 
  grep -v '^ *+' conftest.er1 >conftest.err
14703
 
  rm -f conftest.er1
14704
 
  cat conftest.err >&5
14705
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706
 
  (exit $ac_status); } && {
14707
 
         test -z "$ac_c_werror_flag" ||
14708
 
         test ! -s conftest.err
14709
 
       } && test -s conftest.$ac_objext; then
14710
 
  
14711
 
                
14712
 
cat >>confdefs.h <<\_ACEOF
14713
 
@%:@define HAVE_EPOLL 1
14714
 
_ACEOF
14715
 
 
14716
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
14717
 
$as_echo "yes" >&6; }
14718
 
        
14719
 
else
14720
 
  $as_echo "$as_me: failed program was:" >&5
14721
 
sed 's/^/| /' conftest.$ac_ext >&5
14722
 
 
14723
 
        
14724
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
14725
 
$as_echo "no" >&6; }
14726
 
        
14727
 
fi
14728
 
 
14729
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730
 
 
14731
 
        
14732
 
        { $as_echo "$as_me:$LINENO: checking for poll" >&5
14733
 
$as_echo_n "checking for poll... " >&6; }
14734
 
 
14735
 
        cat >conftest.$ac_ext <<_ACEOF
14736
 
/* confdefs.h.  */
14737
 
_ACEOF
14738
 
cat confdefs.h >>conftest.$ac_ext
14739
 
cat >>conftest.$ac_ext <<_ACEOF
14740
 
/* end confdefs.h.  */
14741
 
 
14742
 
                #include <poll.h>
14743
 
        
14744
 
int
14745
 
main ()
14746
 
{
14747
 
 
14748
 
                struct pollfd fds[2];
14749
 
 
14750
 
                fds[0].fd = 0;
14751
 
                fds[0].events = POLLIN;
14752
 
 
14753
 
                fds[1].fd = 0;
14754
 
                fds[1].events = POLLIN;
14755
 
 
14756
 
                 poll(fds, 2, 1);
14757
 
        
14758
 
  ;
14759
 
  return 0;
14760
 
}
14761
 
_ACEOF
14762
 
rm -f conftest.$ac_objext
14763
 
if { (ac_try="$ac_compile"
14764
 
case "(($ac_try" in
14765
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766
 
  *) ac_try_echo=$ac_try;;
14767
 
esac
14768
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14769
 
$as_echo "$ac_try_echo") >&5
14770
 
  (eval "$ac_compile") 2>conftest.er1
14771
 
  ac_status=$?
14772
 
  grep -v '^ *+' conftest.er1 >conftest.err
14773
 
  rm -f conftest.er1
14774
 
  cat conftest.err >&5
14775
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776
 
  (exit $ac_status); } && {
14777
 
         test -z "$ac_c_werror_flag" ||
14778
 
         test ! -s conftest.err
14779
 
       } && test -s conftest.$ac_objext; then
14780
 
  
14781
 
                
14782
 
cat >>confdefs.h <<\_ACEOF
14783
 
@%:@define HAVE_POLL 1
14784
 
_ACEOF
14785
 
 
14786
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
14787
 
$as_echo "yes" >&6; }
14788
 
        
14789
 
else
14790
 
  $as_echo "$as_me: failed program was:" >&5
14791
 
sed 's/^/| /' conftest.$ac_ext >&5
14792
 
 
14793
 
        
14794
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
14795
 
$as_echo "no" >&6; }
14796
 
        
14797
 
fi
14798
 
 
14799
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800
 
 
14801
 
        
14802
 
        { $as_echo "$as_me:$LINENO: checking for select" >&5
14803
 
$as_echo_n "checking for select... " >&6; }
14804
 
 
14805
 
        cat >conftest.$ac_ext <<_ACEOF
14806
 
/* confdefs.h.  */
14807
 
_ACEOF
14808
 
cat confdefs.h >>conftest.$ac_ext
14809
 
cat >>conftest.$ac_ext <<_ACEOF
14810
 
/* end confdefs.h.  */
14811
 
 
14812
 
                /* According to POSIX.1-2001 */
14813
 
                #include <sys/select.h>
14814
 
 
14815
 
                /* According to earlier standards */
14816
 
                #include <sys/time.h>
14817
 
                #include <sys/types.h>
14818
 
                #include <unistd.h>
14819
 
        
14820
 
int
14821
 
main ()
14822
 
{
14823
 
 
14824
 
                fd_set fds;
14825
 
                struct timeval t;
14826
 
                t.tv_sec = 0;
14827
 
                t.tv_usec = 42;
14828
 
                FD_ZERO(&fds);
14829
 
                /* 0 -> STDIN_FILENO */
14830
 
                FD_SET(0, &fds);
14831
 
                select(FD_SETSIZE, &fds, NULL, NULL, &t);
14832
 
        
14833
 
  ;
14834
 
  return 0;
14835
 
}
14836
 
_ACEOF
14837
 
rm -f conftest.$ac_objext
14838
 
if { (ac_try="$ac_compile"
14839
 
case "(($ac_try" in
14840
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841
 
  *) ac_try_echo=$ac_try;;
14842
 
esac
14843
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14844
 
$as_echo "$ac_try_echo") >&5
14845
 
  (eval "$ac_compile") 2>conftest.er1
14846
 
  ac_status=$?
14847
 
  grep -v '^ *+' conftest.er1 >conftest.err
14848
 
  rm -f conftest.er1
14849
 
  cat conftest.err >&5
14850
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851
 
  (exit $ac_status); } && {
14852
 
         test -z "$ac_c_werror_flag" ||
14853
 
         test ! -s conftest.err
14854
 
       } && test -s conftest.$ac_objext; then
14855
 
  
14856
 
                
14857
 
cat >>confdefs.h <<\_ACEOF
14858
 
@%:@define HAVE_SELECT 1
14859
 
_ACEOF
14860
 
 
14861
 
                { $as_echo "$as_me:$LINENO: result: yes" >&5
14862
 
$as_echo "yes" >&6; }
14863
 
        
14864
 
else
14865
 
  $as_echo "$as_me: failed program was:" >&5
14866
 
sed 's/^/| /' conftest.$ac_ext >&5
14867
 
 
14868
 
        
14869
 
                { $as_echo "$as_me:$LINENO: result: no" >&5
14870
 
$as_echo "no" >&6; }
14871
 
        
14872
 
fi
14873
 
 
14874
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14875
 
 
14876
 
 
14877
 
  
14878
 
php_with_fpm_user=nobody
14879
 
 
14880
 
 
14881
 
 
14882
 
@%:@ Check whether --with-fpm-user was given.
14883
 
if test "${with_fpm_user+set}" = set; then
14884
 
  withval=$with_fpm_user; PHP_FPM_USER=$withval
14885
 
else
14886
 
  
14887
 
  PHP_FPM_USER=nobody
14888
 
  
14889
 
 
14890
 
fi
14891
 
 
14892
 
 
14893
 
ext_output=$PHP_FPM_USER
14894
 
 
14895
 
 
14896
 
 
14897
 
 
14898
 
 
14899
 
  
14900
 
php_with_fpm_group=nobody
14901
 
 
14902
 
 
14903
 
 
14904
 
@%:@ Check whether --with-fpm-group was given.
14905
 
if test "${with_fpm_group+set}" = set; then
14906
 
  withval=$with_fpm_group; PHP_FPM_GROUP=$withval
14907
 
else
14908
 
  
14909
 
  PHP_FPM_GROUP=nobody
14910
 
  
14911
 
 
14912
 
fi
14913
 
 
14914
 
 
14915
 
ext_output=$PHP_FPM_GROUP
14916
 
 
14917
 
 
14918
 
 
14919
 
 
14920
 
 
14921
 
  if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then
14922
 
    php_fpm_user="nobody"
14923
 
  else
14924
 
    php_fpm_user="$PHP_FPM_USER"
14925
 
  fi
14926
 
 
14927
 
  if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then
14928
 
    php_fpm_group="nobody"
14929
 
  else
14930
 
    php_fpm_group="$PHP_FPM_GROUP"
14931
 
  fi
14932
 
 
14933
 
  
14934
 
  
14935
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user"
14936
 
 
14937
 
  
14938
 
 
14939
 
  
14940
 
  
14941
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group"
14942
 
 
14943
 
  
14944
 
 
14945
 
  php_fpm_sysconfdir=`eval echo $sysconfdir`
14946
 
  
14947
 
  
14948
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir"
14949
 
 
14950
 
  
14951
 
 
14952
 
  php_fpm_localstatedir=`eval echo $localstatedir`
14953
 
  
14954
 
  
14955
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir"
14956
 
 
14957
 
  
14958
 
 
14959
 
  php_fpm_prefix=`eval echo $prefix`
14960
 
  
14961
 
  
14962
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix"
14963
 
 
14964
 
  
14965
 
 
14966
 
 
14967
 
  
14968
 
cat >>confdefs.h <<_ACEOF
14969
 
@%:@define PHP_FPM_USER "$php_fpm_user"
14970
 
_ACEOF
14971
 
 
14972
 
  
14973
 
cat >>confdefs.h <<_ACEOF
14974
 
@%:@define PHP_FPM_GROUP "$php_fpm_group"
14975
 
_ACEOF
14976
 
 
14977
 
 
14978
 
  
14979
 
  PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.8 sapi/fpm/status.html"
14980
 
 
14981
 
  
14982
 
  src=$abs_srcdir/sapi/fpm/Makefile.frag
14983
 
  ac_srcdir=$abs_srcdir/sapi/fpm
14984
 
  ac_builddir=sapi/fpm
14985
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
14986
 
 
14987
 
 
14988
 
  SAPI_FPM_PATH=sapi/fpm/php-fpm
14989
 
  
14990
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH"
14991
 
 
14992
 
  
14993
 
  if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then
14994
 
    PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c"
14995
 
  fi
14996
 
  
14997
 
  PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm"
14998
 
 
14999
 
  INSTALL_IT=":"
15000
 
  PHP_FPM_FILES="fpm/fastcgi.c \
15001
 
    fpm/fpm.c \
15002
 
    fpm/fpm_children.c \
15003
 
    fpm/fpm_cleanup.c \
15004
 
    fpm/fpm_clock.c \
15005
 
    fpm/fpm_conf.c \
15006
 
    fpm/fpm_env.c \
15007
 
    fpm/fpm_events.c \
15008
 
                fpm/fpm_log.c \
15009
 
    fpm/fpm_main.c \
15010
 
    fpm/fpm_php.c \
15011
 
    fpm/fpm_php_trace.c \
15012
 
    fpm/fpm_process_ctl.c \
15013
 
    fpm/fpm_request.c \
15014
 
    fpm/fpm_shm.c \
15015
 
    fpm/fpm_scoreboard.c \
15016
 
    fpm/fpm_signals.c \
15017
 
    fpm/fpm_sockets.c \
15018
 
    fpm/fpm_status.c \
15019
 
    fpm/fpm_stdio.c \
15020
 
    fpm/fpm_unix.c \
15021
 
    fpm/fpm_worker_pool.c \
15022
 
    fpm/zlog.c \
15023
 
                fpm/events/select.c \
15024
 
                fpm/events/poll.c \
15025
 
                fpm/events/epoll.c \
15026
 
                fpm/events/kqueue.c \
15027
 
                fpm/events/devpoll.c \
15028
 
                fpm/events/port.c \
15029
 
  "
15030
 
 
15031
 
  
15032
 
  if test "$PHP_SAPI" != "default"; then
15033
 
{ { $as_echo "$as_me:$LINENO: error: 
15034
 
+--------------------------------------------------------------------+
15035
 
|                        *** ATTENTION ***                           |
15036
 
|                                                                    |
15037
 
| You've configured multiple SAPIs to be build. You can build only   |
15038
 
| one SAPI module and CLI binary at the same time.                   |
15039
 
+--------------------------------------------------------------------+
15040
 
" >&5
15041
 
$as_echo "$as_me: error: 
15042
 
+--------------------------------------------------------------------+
15043
 
|                        *** ATTENTION ***                           |
15044
 
|                                                                    |
15045
 
| You've configured multiple SAPIs to be build. You can build only   |
15046
 
| one SAPI module and CLI binary at the same time.                   |
15047
 
+--------------------------------------------------------------------+
15048
 
" >&2;}
15049
 
   { (exit 1); exit 1; }; }
15050
 
  fi
15051
 
 
15052
 
  PHP_SAPI=fpm
15053
 
  
15054
 
  case "program" in
15055
 
  static) 
15056
 
  
15057
 
  OVERALL_TARGET=php
15058
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15059
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15060
 
  php_c_post=
15061
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15062
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15063
 
  php_cxx_post=
15064
 
  php_lo=lo
15065
 
 
15066
 
  case $with_pic in
15067
 
    yes) pic_setting='-prefer-pic';;
15068
 
    no)  pic_setting='-prefer-non-pic';;
15069
 
  esac
15070
 
 
15071
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15072
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15073
 
  shared_c_post=
15074
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15075
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15076
 
  shared_cxx_post=
15077
 
  shared_lo=lo
15078
 
 
15079
 
  php_build_target=program
15080
 
 
15081
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15082
 
  php_build_target=static
15083
 
;;
15084
 
  shared) 
15085
 
  
15086
 
  OVERALL_TARGET=php
15087
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15088
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15089
 
  php_c_post=
15090
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15091
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15092
 
  php_cxx_post=
15093
 
  php_lo=lo
15094
 
 
15095
 
  case $with_pic in
15096
 
    yes) pic_setting='-prefer-pic';;
15097
 
    no)  pic_setting='-prefer-non-pic';;
15098
 
  esac
15099
 
 
15100
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15101
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15102
 
  shared_c_post=
15103
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15104
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15105
 
  shared_cxx_post=
15106
 
  shared_lo=lo
15107
 
 
15108
 
  php_build_target=program
15109
 
 
15110
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15111
 
  php_build_target=shared
15112
 
  
15113
 
  php_c_pre=$shared_c_pre
15114
 
  php_c_meta=$shared_c_meta
15115
 
  php_c_post=$shared_c_post
15116
 
  php_cxx_pre=$shared_cxx_pre
15117
 
  php_cxx_meta=$shared_cxx_meta
15118
 
  php_cxx_post=$shared_cxx_post
15119
 
  php_lo=$shared_lo
15120
 
;;
15121
 
  bundle) 
15122
 
  
15123
 
  OVERALL_TARGET=php
15124
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15125
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15126
 
  php_c_post=
15127
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15128
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15129
 
  php_cxx_post=
15130
 
  php_lo=lo
15131
 
 
15132
 
  case $with_pic in
15133
 
    yes) pic_setting='-prefer-pic';;
15134
 
    no)  pic_setting='-prefer-non-pic';;
15135
 
  esac
15136
 
 
15137
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15138
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15139
 
  shared_c_post=
15140
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15141
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15142
 
  shared_cxx_post=
15143
 
  shared_lo=lo
15144
 
 
15145
 
  php_build_target=program
15146
 
 
15147
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
15148
 
  php_build_target=static
15149
 
;;
15150
 
  program) 
15151
 
  OVERALL_TARGET='$(SAPI_FPM_PATH)'
15152
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15153
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15154
 
  php_c_post=
15155
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15156
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15157
 
  php_cxx_post=
15158
 
  php_lo=lo
15159
 
 
15160
 
  case $with_pic in
15161
 
    yes) pic_setting='-prefer-pic';;
15162
 
    no)  pic_setting='-prefer-non-pic';;
15163
 
  esac
15164
 
 
15165
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15166
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15167
 
  shared_c_post=
15168
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15169
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15170
 
  shared_cxx_post=
15171
 
  shared_lo=lo
15172
 
 
15173
 
  php_build_target=program
15174
 
;;
15175
 
  esac
15176
 
    
15177
 
  
15178
 
  
15179
 
  case sapi/fpm in
15180
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15181
 
  /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15182
 
  *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15183
 
  esac
15184
 
  
15185
 
  
15186
 
 
15187
 
  b_c_pre=$php_c_pre
15188
 
  b_cxx_pre=$php_cxx_pre
15189
 
  b_c_meta=$php_c_meta
15190
 
  b_cxx_meta=$php_cxx_meta
15191
 
  b_c_post=$php_c_post
15192
 
  b_cxx_post=$php_cxx_post
15193
 
  b_lo=$php_lo
15194
 
 
15195
 
 
15196
 
  old_IFS=$IFS
15197
 
  for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES; do
15198
 
  
15199
 
      IFS=.
15200
 
      set $ac_src
15201
 
      ac_obj=$1
15202
 
      IFS=$old_IFS
15203
 
      
15204
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15205
 
 
15206
 
      case $ac_src in
15207
 
        *.c) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15208
 
        *.s) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15209
 
        *.S) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15210
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_FPM_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
15211
 
      esac
15212
 
 
15213
 
    cat >>Makefile.objects<<EOF
15214
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15215
 
        $ac_comp
15216
 
EOF
15217
 
  done
15218
 
 
15219
 
 
15220
 
 
15221
 
 
15222
 
  case $host_alias in
15223
 
      *aix*)
15224
 
        BUILD_FPM="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(SAPI_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
15225
 
        ;;
15226
 
      *darwin*)
15227
 
        BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_SAPI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(SAPI_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
15228
 
      ;;
15229
 
      *)
15230
 
        BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(SAPI_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
15231
 
      ;;
15232
 
  esac
15233
 
 
15234
 
  
15235
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM"
15236
 
 
15237
 
else
15238
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
15239
 
$as_echo "no" >&6; }
15240
 
fi
15241
 
 
15242
 
 
15243
 
 
15244
 
php_with_isapi=no
15245
 
 
15246
 
{ $as_echo "$as_me:$LINENO: checking for Zeus ISAPI support" >&5
15247
 
$as_echo_n "checking for Zeus ISAPI support... " >&6; }
15248
 
 
15249
 
@%:@ Check whether --with-isapi was given.
15250
 
if test "${with_isapi+set}" = set; then
15251
 
  withval=$with_isapi; PHP_ISAPI=$withval
15252
 
else
15253
 
  
15254
 
  PHP_ISAPI=no
15255
 
  
15256
 
 
15257
 
fi
15258
 
 
15259
 
 
15260
 
ext_output=$PHP_ISAPI
15261
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
15262
 
$as_echo "$ext_output" >&6; }
15263
 
 
15264
 
 
15265
 
 
15266
 
 
15267
 
if test "$PHP_ISAPI" != "no"; then
15268
 
  if test "$PHP_ISAPI" = "yes"; then
15269
 
    ZEUSPATH=/usr/local/zeus # the default
15270
 
  else
15271
 
    ZEUSPATH=$PHP_ISAPI
15272
 
  fi
15273
 
  test -f "$ZEUSPATH/web/include/httpext.h" || { { $as_echo "$as_me:$LINENO: error: Unable to find httpext.h in $ZEUSPATH/web/include" >&5
15274
 
$as_echo "$as_me: error: Unable to find httpext.h in $ZEUSPATH/web/include" >&2;}
15275
 
   { (exit 1); exit 1; }; }
15276
 
  
15277
 
  enable_maintainer_zts=yes
15278
 
  if test "$pthreads_working" != "yes"; then
15279
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
15280
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
15281
 
   { (exit 1); exit 1; }; }
15282
 
  fi
15283
 
 
15284
 
  
15285
 
cat >>confdefs.h <<\_ACEOF
15286
 
@%:@define WITH_ZEUS 1
15287
 
_ACEOF
15288
 
 
15289
 
  
15290
 
  if test "$ZEUSPATH/web/include" != "/usr/include"; then
15291
 
    
15292
 
  if test -z "$ZEUSPATH/web/include" || echo "$ZEUSPATH/web/include" | grep '^/' >/dev/null ; then
15293
 
    ai_p=$ZEUSPATH/web/include
15294
 
  else
15295
 
    
15296
 
    ep_dir="`echo $ZEUSPATH/web/include|$SED 's%/*[^/][^/]*/*$%%'`"
15297
 
    
15298
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15299
 
    ai_p="$ep_realdir/`basename \"$ZEUSPATH/web/include\"`"
15300
 
  fi
15301
 
 
15302
 
    
15303
 
  
15304
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15305
 
  
15306
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15307
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
15308
 
    eval "INCLUDEPATH$unique=set"
15309
 
    
15310
 
      if test ""; then
15311
 
        INCLUDES="-I$ai_p $INCLUDES"
15312
 
      else
15313
 
        INCLUDES="$INCLUDES -I$ai_p"
15314
 
      fi
15315
 
    
15316
 
  fi
15317
 
 
15318
 
  fi
15319
 
 
15320
 
  
15321
 
  if test "$PHP_SAPI" != "default"; then
15322
 
{ { $as_echo "$as_me:$LINENO: error: 
15323
 
+--------------------------------------------------------------------+
15324
 
|                        *** ATTENTION ***                           |
15325
 
|                                                                    |
15326
 
| You've configured multiple SAPIs to be build. You can build only   |
15327
 
| one SAPI module and CLI binary at the same time.                   |
15328
 
+--------------------------------------------------------------------+
15329
 
" >&5
15330
 
$as_echo "$as_me: error: 
15331
 
+--------------------------------------------------------------------+
15332
 
|                        *** ATTENTION ***                           |
15333
 
|                                                                    |
15334
 
| You've configured multiple SAPIs to be build. You can build only   |
15335
 
| one SAPI module and CLI binary at the same time.                   |
15336
 
+--------------------------------------------------------------------+
15337
 
" >&2;}
15338
 
   { (exit 1); exit 1; }; }
15339
 
  fi
15340
 
 
15341
 
  PHP_SAPI=isapi
15342
 
  
15343
 
  case "shared" in
15344
 
  static) 
15345
 
  
15346
 
  OVERALL_TARGET=php
15347
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15348
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15349
 
  php_c_post=
15350
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15351
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15352
 
  php_cxx_post=
15353
 
  php_lo=lo
15354
 
 
15355
 
  case $with_pic in
15356
 
    yes) pic_setting='-prefer-pic';;
15357
 
    no)  pic_setting='-prefer-non-pic';;
15358
 
  esac
15359
 
 
15360
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15361
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15362
 
  shared_c_post=
15363
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15364
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15365
 
  shared_cxx_post=
15366
 
  shared_lo=lo
15367
 
 
15368
 
  php_build_target=program
15369
 
 
15370
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15371
 
  php_build_target=static
15372
 
;;
15373
 
  shared) 
15374
 
  
15375
 
  OVERALL_TARGET=php
15376
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15377
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15378
 
  php_c_post=
15379
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15380
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15381
 
  php_cxx_post=
15382
 
  php_lo=lo
15383
 
 
15384
 
  case $with_pic in
15385
 
    yes) pic_setting='-prefer-pic';;
15386
 
    no)  pic_setting='-prefer-non-pic';;
15387
 
  esac
15388
 
 
15389
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15390
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15391
 
  shared_c_post=
15392
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15393
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15394
 
  shared_cxx_post=
15395
 
  shared_lo=lo
15396
 
 
15397
 
  php_build_target=program
15398
 
 
15399
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15400
 
  php_build_target=shared
15401
 
  
15402
 
  php_c_pre=$shared_c_pre
15403
 
  php_c_meta=$shared_c_meta
15404
 
  php_c_post=$shared_c_post
15405
 
  php_cxx_pre=$shared_cxx_pre
15406
 
  php_cxx_meta=$shared_cxx_meta
15407
 
  php_cxx_post=$shared_cxx_post
15408
 
  php_lo=$shared_lo
15409
 
;;
15410
 
  bundle) 
15411
 
  
15412
 
  OVERALL_TARGET=php
15413
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15414
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15415
 
  php_c_post=
15416
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15417
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15418
 
  php_cxx_post=
15419
 
  php_lo=lo
15420
 
 
15421
 
  case $with_pic in
15422
 
    yes) pic_setting='-prefer-pic';;
15423
 
    no)  pic_setting='-prefer-non-pic';;
15424
 
  esac
15425
 
 
15426
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15427
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15428
 
  shared_c_post=
15429
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15430
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15431
 
  shared_cxx_post=
15432
 
  shared_lo=lo
15433
 
 
15434
 
  php_build_target=program
15435
 
 
15436
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
15437
 
  php_build_target=static
15438
 
;;
15439
 
  program) 
15440
 
  OVERALL_TARGET=php
15441
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15442
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15443
 
  php_c_post=
15444
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15445
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15446
 
  php_cxx_post=
15447
 
  php_lo=lo
15448
 
 
15449
 
  case $with_pic in
15450
 
    yes) pic_setting='-prefer-pic';;
15451
 
    no)  pic_setting='-prefer-non-pic';;
15452
 
  esac
15453
 
 
15454
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15455
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15456
 
  shared_c_post=
15457
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15458
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15459
 
  shared_cxx_post=
15460
 
  shared_lo=lo
15461
 
 
15462
 
  php_build_target=program
15463
 
;;
15464
 
  esac
15465
 
    
15466
 
  
15467
 
  
15468
 
  case sapi/isapi in
15469
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15470
 
  /*) ac_srcdir=`echo "sapi/isapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15471
 
  *) ac_srcdir="$abs_srcdir/sapi/isapi/"; ac_bdir="sapi/isapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15472
 
  esac
15473
 
  
15474
 
  
15475
 
 
15476
 
  b_c_pre=$php_c_pre
15477
 
  b_cxx_pre=$php_cxx_pre
15478
 
  b_c_meta=$php_c_meta
15479
 
  b_cxx_meta=$php_cxx_meta
15480
 
  b_c_post=$php_c_post
15481
 
  b_cxx_post=$php_cxx_post
15482
 
  b_lo=$php_lo
15483
 
 
15484
 
 
15485
 
  old_IFS=$IFS
15486
 
  for ac_src in php5isapi.c; do
15487
 
  
15488
 
      IFS=.
15489
 
      set $ac_src
15490
 
      ac_obj=$1
15491
 
      IFS=$old_IFS
15492
 
      
15493
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15494
 
 
15495
 
      case $ac_src in
15496
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15497
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15498
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15499
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
15500
 
      esac
15501
 
 
15502
 
    cat >>Makefile.objects<<EOF
15503
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15504
 
        $ac_comp
15505
 
EOF
15506
 
  done
15507
 
 
15508
 
 
15509
 
 
15510
 
  INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$ZEUSPATH/web/bin/"
15511
 
fi
15512
 
 
15513
 
 
15514
 
 
15515
 
{ $as_echo "$as_me:$LINENO: checking for LiteSpeed support" >&5
15516
 
$as_echo_n "checking for LiteSpeed support... " >&6; }
15517
 
 
15518
 
 
15519
 
php_with_litespeed=no
15520
 
 
15521
 
 
15522
 
 
15523
 
@%:@ Check whether --with-litespeed was given.
15524
 
if test "${with_litespeed+set}" = set; then
15525
 
  withval=$with_litespeed; PHP_LITESPEED=$withval
15526
 
else
15527
 
  
15528
 
  PHP_LITESPEED=no
15529
 
  test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL
15530
 
 
15531
 
fi
15532
 
 
15533
 
 
15534
 
 
15535
 
ext_output="yes, shared"
15536
 
ext_shared=yes
15537
 
case $PHP_LITESPEED in
15538
 
shared,*)
15539
 
  PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'`
15540
 
  ;;
15541
 
shared)
15542
 
  PHP_LITESPEED=yes
15543
 
  ;;
15544
 
no)
15545
 
  ext_output=no
15546
 
  ext_shared=no
15547
 
  ;;
15548
 
*)
15549
 
  ext_output=yes
15550
 
  ext_shared=no
15551
 
  ;;
15552
 
esac
15553
 
 
15554
 
 
15555
 
 
15556
 
 
15557
 
 
15558
 
 
15559
 
 
15560
 
 
15561
 
if test "$PHP_LITESPEED" != "no"; then
15562
 
  
15563
 
  src=$abs_srcdir/sapi/litespeed/Makefile.frag
15564
 
  ac_srcdir=$abs_srcdir/sapi/litespeed
15565
 
  ac_builddir=sapi/litespeed
15566
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
15567
 
 
15568
 
  SAPI_LITESPEED_PATH=sapi/litespeed/php
15569
 
  
15570
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_LITESPEED_PATH"
15571
 
 
15572
 
  
15573
 
  if test "$PHP_SAPI" != "default"; then
15574
 
{ { $as_echo "$as_me:$LINENO: error: 
15575
 
+--------------------------------------------------------------------+
15576
 
|                        *** ATTENTION ***                           |
15577
 
|                                                                    |
15578
 
| You've configured multiple SAPIs to be build. You can build only   |
15579
 
| one SAPI module and CLI binary at the same time.                   |
15580
 
+--------------------------------------------------------------------+
15581
 
" >&5
15582
 
$as_echo "$as_me: error: 
15583
 
+--------------------------------------------------------------------+
15584
 
|                        *** ATTENTION ***                           |
15585
 
|                                                                    |
15586
 
| You've configured multiple SAPIs to be build. You can build only   |
15587
 
| one SAPI module and CLI binary at the same time.                   |
15588
 
+--------------------------------------------------------------------+
15589
 
" >&2;}
15590
 
   { (exit 1); exit 1; }; }
15591
 
  fi
15592
 
 
15593
 
  PHP_SAPI=litespeed
15594
 
  
15595
 
  case "program" in
15596
 
  static) 
15597
 
  
15598
 
  OVERALL_TARGET=php
15599
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15600
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15601
 
  php_c_post=
15602
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15603
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15604
 
  php_cxx_post=
15605
 
  php_lo=lo
15606
 
 
15607
 
  case $with_pic in
15608
 
    yes) pic_setting='-prefer-pic';;
15609
 
    no)  pic_setting='-prefer-non-pic';;
15610
 
  esac
15611
 
 
15612
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15613
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15614
 
  shared_c_post=
15615
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15616
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15617
 
  shared_cxx_post=
15618
 
  shared_lo=lo
15619
 
 
15620
 
  php_build_target=program
15621
 
 
15622
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15623
 
  php_build_target=static
15624
 
;;
15625
 
  shared) 
15626
 
  
15627
 
  OVERALL_TARGET=php
15628
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15629
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15630
 
  php_c_post=
15631
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15632
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15633
 
  php_cxx_post=
15634
 
  php_lo=lo
15635
 
 
15636
 
  case $with_pic in
15637
 
    yes) pic_setting='-prefer-pic';;
15638
 
    no)  pic_setting='-prefer-non-pic';;
15639
 
  esac
15640
 
 
15641
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15642
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15643
 
  shared_c_post=
15644
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15645
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15646
 
  shared_cxx_post=
15647
 
  shared_lo=lo
15648
 
 
15649
 
  php_build_target=program
15650
 
 
15651
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15652
 
  php_build_target=shared
15653
 
  
15654
 
  php_c_pre=$shared_c_pre
15655
 
  php_c_meta=$shared_c_meta
15656
 
  php_c_post=$shared_c_post
15657
 
  php_cxx_pre=$shared_cxx_pre
15658
 
  php_cxx_meta=$shared_cxx_meta
15659
 
  php_cxx_post=$shared_cxx_post
15660
 
  php_lo=$shared_lo
15661
 
;;
15662
 
  bundle) 
15663
 
  
15664
 
  OVERALL_TARGET=php
15665
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15666
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15667
 
  php_c_post=
15668
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15669
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15670
 
  php_cxx_post=
15671
 
  php_lo=lo
15672
 
 
15673
 
  case $with_pic in
15674
 
    yes) pic_setting='-prefer-pic';;
15675
 
    no)  pic_setting='-prefer-non-pic';;
15676
 
  esac
15677
 
 
15678
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15679
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15680
 
  shared_c_post=
15681
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15682
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15683
 
  shared_cxx_post=
15684
 
  shared_lo=lo
15685
 
 
15686
 
  php_build_target=program
15687
 
 
15688
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
15689
 
  php_build_target=static
15690
 
;;
15691
 
  program) 
15692
 
  OVERALL_TARGET='$(SAPI_LITESPEED_PATH)'
15693
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15694
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15695
 
  php_c_post=
15696
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15697
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15698
 
  php_cxx_post=
15699
 
  php_lo=lo
15700
 
 
15701
 
  case $with_pic in
15702
 
    yes) pic_setting='-prefer-pic';;
15703
 
    no)  pic_setting='-prefer-non-pic';;
15704
 
  esac
15705
 
 
15706
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15707
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15708
 
  shared_c_post=
15709
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15710
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15711
 
  shared_cxx_post=
15712
 
  shared_lo=lo
15713
 
 
15714
 
  php_build_target=program
15715
 
;;
15716
 
  esac
15717
 
    
15718
 
  
15719
 
  
15720
 
  case sapi/litespeed in
15721
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15722
 
  /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15723
 
  *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15724
 
  esac
15725
 
  
15726
 
  
15727
 
 
15728
 
  b_c_pre=$php_c_pre
15729
 
  b_cxx_pre=$php_cxx_pre
15730
 
  b_c_meta=$php_c_meta
15731
 
  b_cxx_meta=$php_cxx_meta
15732
 
  b_c_post=$php_c_post
15733
 
  b_cxx_post=$php_cxx_post
15734
 
  b_lo=$php_lo
15735
 
 
15736
 
 
15737
 
  old_IFS=$IFS
15738
 
  for ac_src in lsapi_main.c lsapilib.c; do
15739
 
  
15740
 
      IFS=.
15741
 
      set $ac_src
15742
 
      ac_obj=$1
15743
 
      IFS=$old_IFS
15744
 
      
15745
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15746
 
 
15747
 
      case $ac_src in
15748
 
        *.c) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15749
 
        *.s) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15750
 
        *.S) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
15751
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre "" $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
15752
 
      esac
15753
 
 
15754
 
    cat >>Makefile.objects<<EOF
15755
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15756
 
        $ac_comp
15757
 
EOF
15758
 
  done
15759
 
 
15760
 
 
15761
 
 
15762
 
  INSTALL_IT="@echo \"Installing PHP LiteSpeed into: \$(INSTALL_ROOT)\$(bindir)/\"; \$(INSTALL) -m 0755 \$(SAPI_LITESPEED_PATH) \$(INSTALL_ROOT)\$(bindir)/lsphp"
15763
 
  case $host_alias in
15764
 
  *darwin*)
15765
 
    BUILD_LITESPEED="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_SAPI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
15766
 
    ;;
15767
 
  *cygwin*)
15768
 
    SAPI_LITESPEED_PATH=sapi/litespeed/php.exe
15769
 
    BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
15770
 
    ;;
15771
 
  *)
15772
 
    BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
15773
 
    ;;
15774
 
  esac
15775
 
 
15776
 
  
15777
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_LITESPEED"
15778
 
 
15779
 
fi
15780
 
 
15781
 
{ $as_echo "$as_me:$LINENO: result: $PHP_LITESPEED" >&5
15782
 
$as_echo "$PHP_LITESPEED" >&6; }
15783
 
 
15784
 
 
15785
 
 
15786
 
php_with_milter=no
15787
 
 
15788
 
{ $as_echo "$as_me:$LINENO: checking for Milter support" >&5
15789
 
$as_echo_n "checking for Milter support... " >&6; }
15790
 
 
15791
 
@%:@ Check whether --with-milter was given.
15792
 
if test "${with_milter+set}" = set; then
15793
 
  withval=$with_milter; PHP_MILTER=$withval
15794
 
else
15795
 
  
15796
 
  PHP_MILTER=no
15797
 
  
15798
 
 
15799
 
fi
15800
 
 
15801
 
 
15802
 
ext_output=$PHP_MILTER
15803
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
15804
 
$as_echo "$ext_output" >&6; }
15805
 
 
15806
 
 
15807
 
 
15808
 
 
15809
 
if test "$PHP_MILTER" != "no"; then
15810
 
  if test "$PHP_MILTER" = "yes"; then
15811
 
    if test -f /usr/lib/libmilter.a ; then
15812
 
      MILTERPATH=/usr/lib
15813
 
    else
15814
 
      if test -f /usr/lib/libmilter/libmilter.a ; then
15815
 
        MILTERPATH=/usr/lib/libmilter
15816
 
      else
15817
 
        { { $as_echo "$as_me:$LINENO: error: Unable to find libmilter.a" >&5
15818
 
$as_echo "$as_me: error: Unable to find libmilter.a" >&2;}
15819
 
   { (exit 1); exit 1; }; }
15820
 
      fi
15821
 
    fi
15822
 
  else
15823
 
    MILTERPATH=$PHP_MILTER
15824
 
  fi
15825
 
  
15826
 
  SAPI_MILTER_PATH=sapi/milter/php-milter
15827
 
  
15828
 
  enable_maintainer_zts=yes
15829
 
  if test "$pthreads_working" != "yes"; then
15830
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
15831
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
15832
 
   { (exit 1); exit 1; }; }
15833
 
  fi
15834
 
 
15835
 
  
15836
 
  src=$abs_srcdir/sapi/milter/Makefile.frag
15837
 
  ac_srcdir=$ext_srcdir
15838
 
  ac_builddir=$ext_builddir
15839
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
15840
 
 
15841
 
  
15842
 
  if test "$PHP_SAPI" != "default"; then
15843
 
{ { $as_echo "$as_me:$LINENO: error: 
15844
 
+--------------------------------------------------------------------+
15845
 
|                        *** ATTENTION ***                           |
15846
 
|                                                                    |
15847
 
| You've configured multiple SAPIs to be build. You can build only   |
15848
 
| one SAPI module and CLI binary at the same time.                   |
15849
 
+--------------------------------------------------------------------+
15850
 
" >&5
15851
 
$as_echo "$as_me: error: 
15852
 
+--------------------------------------------------------------------+
15853
 
|                        *** ATTENTION ***                           |
15854
 
|                                                                    |
15855
 
| You've configured multiple SAPIs to be build. You can build only   |
15856
 
| one SAPI module and CLI binary at the same time.                   |
15857
 
+--------------------------------------------------------------------+
15858
 
" >&2;}
15859
 
   { (exit 1); exit 1; }; }
15860
 
  fi
15861
 
 
15862
 
  PHP_SAPI=milter
15863
 
  
15864
 
  case "program" in
15865
 
  static) 
15866
 
  
15867
 
  OVERALL_TARGET=php
15868
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15869
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15870
 
  php_c_post=
15871
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15872
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15873
 
  php_cxx_post=
15874
 
  php_lo=lo
15875
 
 
15876
 
  case $with_pic in
15877
 
    yes) pic_setting='-prefer-pic';;
15878
 
    no)  pic_setting='-prefer-non-pic';;
15879
 
  esac
15880
 
 
15881
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15882
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15883
 
  shared_c_post=
15884
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15885
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15886
 
  shared_cxx_post=
15887
 
  shared_lo=lo
15888
 
 
15889
 
  php_build_target=program
15890
 
 
15891
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15892
 
  php_build_target=static
15893
 
;;
15894
 
  shared) 
15895
 
  
15896
 
  OVERALL_TARGET=php
15897
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15898
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15899
 
  php_c_post=
15900
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15901
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15902
 
  php_cxx_post=
15903
 
  php_lo=lo
15904
 
 
15905
 
  case $with_pic in
15906
 
    yes) pic_setting='-prefer-pic';;
15907
 
    no)  pic_setting='-prefer-non-pic';;
15908
 
  esac
15909
 
 
15910
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15911
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15912
 
  shared_c_post=
15913
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15914
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15915
 
  shared_cxx_post=
15916
 
  shared_lo=lo
15917
 
 
15918
 
  php_build_target=program
15919
 
 
15920
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15921
 
  php_build_target=shared
15922
 
  
15923
 
  php_c_pre=$shared_c_pre
15924
 
  php_c_meta=$shared_c_meta
15925
 
  php_c_post=$shared_c_post
15926
 
  php_cxx_pre=$shared_cxx_pre
15927
 
  php_cxx_meta=$shared_cxx_meta
15928
 
  php_cxx_post=$shared_cxx_post
15929
 
  php_lo=$shared_lo
15930
 
;;
15931
 
  bundle) 
15932
 
  
15933
 
  OVERALL_TARGET=php
15934
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15935
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15936
 
  php_c_post=
15937
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15938
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15939
 
  php_cxx_post=
15940
 
  php_lo=lo
15941
 
 
15942
 
  case $with_pic in
15943
 
    yes) pic_setting='-prefer-pic';;
15944
 
    no)  pic_setting='-prefer-non-pic';;
15945
 
  esac
15946
 
 
15947
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15948
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15949
 
  shared_c_post=
15950
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15951
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15952
 
  shared_cxx_post=
15953
 
  shared_lo=lo
15954
 
 
15955
 
  php_build_target=program
15956
 
 
15957
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
15958
 
  php_build_target=static
15959
 
;;
15960
 
  program) 
15961
 
  OVERALL_TARGET='$(SAPI_MILTER_PATH)'
15962
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15963
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15964
 
  php_c_post=
15965
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15966
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15967
 
  php_cxx_post=
15968
 
  php_lo=lo
15969
 
 
15970
 
  case $with_pic in
15971
 
    yes) pic_setting='-prefer-pic';;
15972
 
    no)  pic_setting='-prefer-non-pic';;
15973
 
  esac
15974
 
 
15975
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15976
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15977
 
  shared_c_post=
15978
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15979
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15980
 
  shared_cxx_post=
15981
 
  shared_lo=lo
15982
 
 
15983
 
  php_build_target=program
15984
 
;;
15985
 
  esac
15986
 
    
15987
 
  
15988
 
  
15989
 
  case sapi/milter in
15990
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15991
 
  /*) ac_srcdir=`echo "sapi/milter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15992
 
  *) ac_srcdir="$abs_srcdir/sapi/milter/"; ac_bdir="sapi/milter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15993
 
  esac
15994
 
  
15995
 
  
15996
 
 
15997
 
  b_c_pre=$php_c_pre
15998
 
  b_cxx_pre=$php_cxx_pre
15999
 
  b_c_meta=$php_c_meta
16000
 
  b_cxx_meta=$php_cxx_meta
16001
 
  b_c_post=$php_c_post
16002
 
  b_cxx_post=$php_cxx_post
16003
 
  b_lo=$php_lo
16004
 
 
16005
 
 
16006
 
  old_IFS=$IFS
16007
 
  for ac_src in php_milter.c getopt.c; do
16008
 
  
16009
 
      IFS=.
16010
 
      set $ac_src
16011
 
      ac_obj=$1
16012
 
      IFS=$old_IFS
16013
 
      
16014
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
16015
 
 
16016
 
      case $ac_src in
16017
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16018
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16019
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16020
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
16021
 
      esac
16022
 
 
16023
 
    cat >>Makefile.objects<<EOF
16024
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
16025
 
        $ac_comp
16026
 
EOF
16027
 
  done
16028
 
 
16029
 
 
16030
 
 
16031
 
  
16032
 
 
16033
 
  if test -n "$MILTERPATH"; then
16034
 
    
16035
 
  if test "$MILTERPATH" != "/usr/$PHP_LIBDIR" && test "$MILTERPATH" != "/usr/lib"; then
16036
 
    
16037
 
  if test -z "$MILTERPATH" || echo "$MILTERPATH" | grep '^/' >/dev/null ; then
16038
 
    ai_p=$MILTERPATH
16039
 
  else
16040
 
    
16041
 
    ep_dir="`echo $MILTERPATH|$SED 's%/*[^/][^/]*/*$%%'`"
16042
 
    
16043
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
16044
 
    ai_p="$ep_realdir/`basename \"$MILTERPATH\"`"
16045
 
  fi
16046
 
 
16047
 
    
16048
 
      
16049
 
  
16050
 
  
16051
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
16052
 
  
16053
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
16054
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
16055
 
    eval "LIBPATH$unique=set"
16056
 
    
16057
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
16058
 
    LDFLAGS="$LDFLAGS -L$ai_p"
16059
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
16060
 
  
16061
 
  fi
16062
 
 
16063
 
 
16064
 
    
16065
 
  fi
16066
 
 
16067
 
  fi
16068
 
  
16069
 
  
16070
 
  case milter in
16071
 
  c|c_r|pthread*) ;;
16072
 
  *) 
16073
 
      LIBS="-lmilter $LIBS" 
16074
 
   ;;
16075
 
  esac
16076
 
 
16077
 
 
16078
 
 
16079
 
 
16080
 
  BUILD_MILTER="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_MILTER_PATH)"
16081
 
  INSTALL_IT="\$(INSTALL) -m 0755 \$(SAPI_MILTER_PATH) \$(bindir)/php-milter"
16082
 
  
16083
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_MILTER_PATH"
16084
 
 
16085
 
  
16086
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_MILTER"
16087
 
 
16088
 
fi
16089
 
 
16090
 
 
16091
 
 
16092
 
php_with_nsapi=no
16093
 
 
16094
 
{ $as_echo "$as_me:$LINENO: checking for NSAPI support" >&5
16095
 
$as_echo_n "checking for NSAPI support... " >&6; }
16096
 
 
16097
 
@%:@ Check whether --with-nsapi was given.
16098
 
if test "${with_nsapi+set}" = set; then
16099
 
  withval=$with_nsapi; PHP_NSAPI=$withval
16100
 
else
16101
 
  
16102
 
  PHP_NSAPI=no
16103
 
  
16104
 
 
16105
 
fi
16106
 
 
16107
 
 
16108
 
ext_output=$PHP_NSAPI
16109
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
16110
 
$as_echo "$ext_output" >&6; }
16111
 
 
16112
 
 
16113
 
 
16114
 
 
16115
 
if test "$PHP_NSAPI" != "no"; then
16116
 
  if test ! -d $PHP_NSAPI/bin ; then
16117
 
    { { $as_echo "$as_me:$LINENO: error: Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" >&5
16118
 
$as_echo "$as_me: error: Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" >&2;}
16119
 
   { (exit 1); exit 1; }; }
16120
 
  fi
16121
 
  { $as_echo "$as_me:$LINENO: checking for NSAPI include files" >&5
16122
 
$as_echo_n "checking for NSAPI include files... " >&6; }
16123
 
  if test -d $PHP_NSAPI/include ; then
16124
 
    NSAPI_INC_DIR="$PHP_NSAPI/include"
16125
 
    { $as_echo "$as_me:$LINENO: result: Netscape 3.x / Sun 7.x style" >&5
16126
 
$as_echo "Netscape 3.x / Sun 7.x style" >&6; }
16127
 
    
16128
 
for ac_header in $NSAPI_INC_DIR/nsapi.h
16129
 
do
16130
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16131
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16132
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16133
 
$as_echo_n "checking for $ac_header... " >&6; }
16134
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16135
 
  $as_echo_n "(cached) " >&6
16136
 
fi
16137
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
16138
 
                 $as_echo "$as_val"'`
16139
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16140
 
$as_echo "$ac_res" >&6; }
16141
 
else
16142
 
  # Is the header compilable?
16143
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16144
 
$as_echo_n "checking $ac_header usability... " >&6; }
16145
 
cat >conftest.$ac_ext <<_ACEOF
16146
 
/* confdefs.h.  */
16147
 
_ACEOF
16148
 
cat confdefs.h >>conftest.$ac_ext
16149
 
cat >>conftest.$ac_ext <<_ACEOF
16150
 
/* end confdefs.h.  */
16151
 
$ac_includes_default
16152
 
@%:@include <$ac_header>
16153
 
_ACEOF
16154
 
rm -f conftest.$ac_objext
16155
 
if { (ac_try="$ac_compile"
16156
 
case "(($ac_try" in
16157
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158
 
  *) ac_try_echo=$ac_try;;
16159
 
esac
16160
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16161
 
$as_echo "$ac_try_echo") >&5
16162
 
  (eval "$ac_compile") 2>conftest.er1
16163
 
  ac_status=$?
16164
 
  grep -v '^ *+' conftest.er1 >conftest.err
16165
 
  rm -f conftest.er1
16166
 
  cat conftest.err >&5
16167
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168
 
  (exit $ac_status); } && {
16169
 
         test -z "$ac_c_werror_flag" ||
16170
 
         test ! -s conftest.err
16171
 
       } && test -s conftest.$ac_objext; then
16172
 
  ac_header_compiler=yes
16173
 
else
16174
 
  $as_echo "$as_me: failed program was:" >&5
16175
 
sed 's/^/| /' conftest.$ac_ext >&5
16176
 
 
16177
 
        ac_header_compiler=no
16178
 
fi
16179
 
 
16180
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16181
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16182
 
$as_echo "$ac_header_compiler" >&6; }
16183
 
 
16184
 
# Is the header present?
16185
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16186
 
$as_echo_n "checking $ac_header presence... " >&6; }
16187
 
cat >conftest.$ac_ext <<_ACEOF
16188
 
/* confdefs.h.  */
16189
 
_ACEOF
16190
 
cat confdefs.h >>conftest.$ac_ext
16191
 
cat >>conftest.$ac_ext <<_ACEOF
16192
 
/* end confdefs.h.  */
16193
 
@%:@include <$ac_header>
16194
 
_ACEOF
16195
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
16196
 
case "(($ac_try" in
16197
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198
 
  *) ac_try_echo=$ac_try;;
16199
 
esac
16200
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16201
 
$as_echo "$ac_try_echo") >&5
16202
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16203
 
  ac_status=$?
16204
 
  grep -v '^ *+' conftest.er1 >conftest.err
16205
 
  rm -f conftest.er1
16206
 
  cat conftest.err >&5
16207
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208
 
  (exit $ac_status); } >/dev/null && {
16209
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16210
 
         test ! -s conftest.err
16211
 
       }; then
16212
 
  ac_header_preproc=yes
16213
 
else
16214
 
  $as_echo "$as_me: failed program was:" >&5
16215
 
sed 's/^/| /' conftest.$ac_ext >&5
16216
 
 
16217
 
  ac_header_preproc=no
16218
 
fi
16219
 
 
16220
 
rm -f conftest.err conftest.$ac_ext
16221
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16222
 
$as_echo "$ac_header_preproc" >&6; }
16223
 
 
16224
 
# So?  What about this header?
16225
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16226
 
  yes:no: )
16227
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16228
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16229
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16230
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16231
 
    ac_header_preproc=yes
16232
 
    ;;
16233
 
  no:yes:* )
16234
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16235
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16236
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16237
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16238
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16239
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16240
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16241
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16242
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16243
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16244
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16245
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16246
 
    
16247
 
    ;;
16248
 
esac
16249
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16250
 
$as_echo_n "checking for $ac_header... " >&6; }
16251
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16252
 
  $as_echo_n "(cached) " >&6
16253
 
else
16254
 
  eval "$as_ac_Header=\$ac_header_preproc"
16255
 
fi
16256
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
16257
 
                 $as_echo "$as_val"'`
16258
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16259
 
$as_echo "$ac_res" >&6; }
16260
 
 
16261
 
fi
16262
 
as_val=`eval 'as_val=${'$as_ac_Header'}
16263
 
                 $as_echo "$as_val"'`
16264
 
   if test "x$as_val" = x""yes; then
16265
 
  cat >>confdefs.h <<_ACEOF
16266
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16267
 
_ACEOF
16268
 
 
16269
 
fi
16270
 
 
16271
 
done
16272
 
 
16273
 
    NSAPI_INCLUDE="-I$NSAPI_INC_DIR"
16274
 
  fi
16275
 
  if test -d $PHP_NSAPI/plugins/include ; then
16276
 
    NSAPI_INC_DIR="$PHP_NSAPI/plugins/include"
16277
 
    { $as_echo "$as_me:$LINENO: result: iPlanet 4.x / Sun 6.x style" >&5
16278
 
$as_echo "iPlanet 4.x / Sun 6.x style" >&6; }
16279
 
    
16280
 
for ac_header in $NSAPI_INC_DIR/nsapi.h
16281
 
do
16282
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16283
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16285
 
$as_echo_n "checking for $ac_header... " >&6; }
16286
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16287
 
  $as_echo_n "(cached) " >&6
16288
 
fi
16289
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
16290
 
                 $as_echo "$as_val"'`
16291
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16292
 
$as_echo "$ac_res" >&6; }
16293
 
else
16294
 
  # Is the header compilable?
16295
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16296
 
$as_echo_n "checking $ac_header usability... " >&6; }
16297
 
cat >conftest.$ac_ext <<_ACEOF
16298
 
/* confdefs.h.  */
16299
 
_ACEOF
16300
 
cat confdefs.h >>conftest.$ac_ext
16301
 
cat >>conftest.$ac_ext <<_ACEOF
16302
 
/* end confdefs.h.  */
16303
 
$ac_includes_default
16304
 
@%:@include <$ac_header>
16305
 
_ACEOF
16306
 
rm -f conftest.$ac_objext
16307
 
if { (ac_try="$ac_compile"
16308
 
case "(($ac_try" in
16309
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310
 
  *) ac_try_echo=$ac_try;;
16311
 
esac
16312
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16313
 
$as_echo "$ac_try_echo") >&5
16314
 
  (eval "$ac_compile") 2>conftest.er1
16315
 
  ac_status=$?
16316
 
  grep -v '^ *+' conftest.er1 >conftest.err
16317
 
  rm -f conftest.er1
16318
 
  cat conftest.err >&5
16319
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320
 
  (exit $ac_status); } && {
16321
 
         test -z "$ac_c_werror_flag" ||
16322
 
         test ! -s conftest.err
16323
 
       } && test -s conftest.$ac_objext; then
16324
 
  ac_header_compiler=yes
16325
 
else
16326
 
  $as_echo "$as_me: failed program was:" >&5
16327
 
sed 's/^/| /' conftest.$ac_ext >&5
16328
 
 
16329
 
        ac_header_compiler=no
16330
 
fi
16331
 
 
16332
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16334
 
$as_echo "$ac_header_compiler" >&6; }
16335
 
 
16336
 
# Is the header present?
16337
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16338
 
$as_echo_n "checking $ac_header presence... " >&6; }
16339
 
cat >conftest.$ac_ext <<_ACEOF
16340
 
/* confdefs.h.  */
16341
 
_ACEOF
16342
 
cat confdefs.h >>conftest.$ac_ext
16343
 
cat >>conftest.$ac_ext <<_ACEOF
16344
 
/* end confdefs.h.  */
16345
 
@%:@include <$ac_header>
16346
 
_ACEOF
16347
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
16348
 
case "(($ac_try" in
16349
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350
 
  *) ac_try_echo=$ac_try;;
16351
 
esac
16352
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16353
 
$as_echo "$ac_try_echo") >&5
16354
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16355
 
  ac_status=$?
16356
 
  grep -v '^ *+' conftest.er1 >conftest.err
16357
 
  rm -f conftest.er1
16358
 
  cat conftest.err >&5
16359
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360
 
  (exit $ac_status); } >/dev/null && {
16361
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16362
 
         test ! -s conftest.err
16363
 
       }; then
16364
 
  ac_header_preproc=yes
16365
 
else
16366
 
  $as_echo "$as_me: failed program was:" >&5
16367
 
sed 's/^/| /' conftest.$ac_ext >&5
16368
 
 
16369
 
  ac_header_preproc=no
16370
 
fi
16371
 
 
16372
 
rm -f conftest.err conftest.$ac_ext
16373
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16374
 
$as_echo "$ac_header_preproc" >&6; }
16375
 
 
16376
 
# So?  What about this header?
16377
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16378
 
  yes:no: )
16379
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16380
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16381
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16382
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16383
 
    ac_header_preproc=yes
16384
 
    ;;
16385
 
  no:yes:* )
16386
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16387
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16388
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16389
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16390
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16391
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16392
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16393
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16394
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16395
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16396
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16397
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16398
 
    
16399
 
    ;;
16400
 
esac
16401
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16402
 
$as_echo_n "checking for $ac_header... " >&6; }
16403
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16404
 
  $as_echo_n "(cached) " >&6
16405
 
else
16406
 
  eval "$as_ac_Header=\$ac_header_preproc"
16407
 
fi
16408
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
16409
 
                 $as_echo "$as_val"'`
16410
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16411
 
$as_echo "$ac_res" >&6; }
16412
 
 
16413
 
fi
16414
 
as_val=`eval 'as_val=${'$as_ac_Header'}
16415
 
                 $as_echo "$as_val"'`
16416
 
   if test "x$as_val" = x""yes; then
16417
 
  cat >>confdefs.h <<_ACEOF
16418
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16419
 
_ACEOF
16420
 
 
16421
 
fi
16422
 
 
16423
 
done
16424
 
 
16425
 
    NSAPI_INCLUDE="$NSAPI_INCLUDE -I$NSAPI_INC_DIR"
16426
 
  fi
16427
 
  if test -z "$NSAPI_INCLUDE"; then
16428
 
    { { $as_echo "$as_me:$LINENO: error: Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" >&5
16429
 
$as_echo "$as_me: error: Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" >&2;}
16430
 
   { (exit 1); exit 1; }; }
16431
 
  fi
16432
 
 
16433
 
  
16434
 
  for ac_i in $NSAPI_INCLUDE; do
16435
 
    case $ac_i in
16436
 
    -I*)
16437
 
      ac_ii=`echo $ac_i|cut -c 3-`
16438
 
      
16439
 
  if test "$ac_ii" != "/usr/include"; then
16440
 
    
16441
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
16442
 
    ai_p=$ac_ii
16443
 
  else
16444
 
    
16445
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
16446
 
    
16447
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
16448
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
16449
 
  fi
16450
 
 
16451
 
    
16452
 
  
16453
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
16454
 
  
16455
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
16456
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
16457
 
    eval "INCLUDEPATH$unique=set"
16458
 
    
16459
 
      if test ""; then
16460
 
        INCLUDES="-I$ai_p $INCLUDES"
16461
 
      else
16462
 
        INCLUDES="$INCLUDES -I$ai_p"
16463
 
      fi
16464
 
    
16465
 
  fi
16466
 
 
16467
 
  fi
16468
 
 
16469
 
    ;;
16470
 
    esac
16471
 
  done
16472
 
 
16473
 
  
16474
 
  enable_maintainer_zts=yes
16475
 
  if test "$pthreads_working" != "yes"; then
16476
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
16477
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
16478
 
   { (exit 1); exit 1; }; }
16479
 
  fi
16480
 
 
16481
 
  
16482
 
cat >>confdefs.h <<\_ACEOF
16483
 
@%:@define HAVE_NSAPI 1
16484
 
_ACEOF
16485
 
 
16486
 
  
16487
 
  if test "$PHP_SAPI" != "default"; then
16488
 
{ { $as_echo "$as_me:$LINENO: error: 
16489
 
+--------------------------------------------------------------------+
16490
 
|                        *** ATTENTION ***                           |
16491
 
|                                                                    |
16492
 
| You've configured multiple SAPIs to be build. You can build only   |
16493
 
| one SAPI module and CLI binary at the same time.                   |
16494
 
+--------------------------------------------------------------------+
16495
 
" >&5
16496
 
$as_echo "$as_me: error: 
16497
 
+--------------------------------------------------------------------+
16498
 
|                        *** ATTENTION ***                           |
16499
 
|                                                                    |
16500
 
| You've configured multiple SAPIs to be build. You can build only   |
16501
 
| one SAPI module and CLI binary at the same time.                   |
16502
 
+--------------------------------------------------------------------+
16503
 
" >&2;}
16504
 
   { (exit 1); exit 1; }; }
16505
 
  fi
16506
 
 
16507
 
  PHP_SAPI=nsapi
16508
 
  
16509
 
  case "shared" in
16510
 
  static) 
16511
 
  
16512
 
  OVERALL_TARGET=php
16513
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16514
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16515
 
  php_c_post=
16516
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16517
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16518
 
  php_cxx_post=
16519
 
  php_lo=lo
16520
 
 
16521
 
  case $with_pic in
16522
 
    yes) pic_setting='-prefer-pic';;
16523
 
    no)  pic_setting='-prefer-non-pic';;
16524
 
  esac
16525
 
 
16526
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16527
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16528
 
  shared_c_post=
16529
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16530
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16531
 
  shared_cxx_post=
16532
 
  shared_lo=lo
16533
 
 
16534
 
  php_build_target=program
16535
 
 
16536
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
16537
 
  php_build_target=static
16538
 
;;
16539
 
  shared) 
16540
 
  
16541
 
  OVERALL_TARGET=php
16542
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16543
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16544
 
  php_c_post=
16545
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16546
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16547
 
  php_cxx_post=
16548
 
  php_lo=lo
16549
 
 
16550
 
  case $with_pic in
16551
 
    yes) pic_setting='-prefer-pic';;
16552
 
    no)  pic_setting='-prefer-non-pic';;
16553
 
  esac
16554
 
 
16555
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16556
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16557
 
  shared_c_post=
16558
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16559
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16560
 
  shared_cxx_post=
16561
 
  shared_lo=lo
16562
 
 
16563
 
  php_build_target=program
16564
 
 
16565
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
16566
 
  php_build_target=shared
16567
 
  
16568
 
  php_c_pre=$shared_c_pre
16569
 
  php_c_meta=$shared_c_meta
16570
 
  php_c_post=$shared_c_post
16571
 
  php_cxx_pre=$shared_cxx_pre
16572
 
  php_cxx_meta=$shared_cxx_meta
16573
 
  php_cxx_post=$shared_cxx_post
16574
 
  php_lo=$shared_lo
16575
 
;;
16576
 
  bundle) 
16577
 
  
16578
 
  OVERALL_TARGET=php
16579
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16580
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16581
 
  php_c_post=
16582
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16583
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16584
 
  php_cxx_post=
16585
 
  php_lo=lo
16586
 
 
16587
 
  case $with_pic in
16588
 
    yes) pic_setting='-prefer-pic';;
16589
 
    no)  pic_setting='-prefer-non-pic';;
16590
 
  esac
16591
 
 
16592
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16593
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16594
 
  shared_c_post=
16595
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16596
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16597
 
  shared_cxx_post=
16598
 
  shared_lo=lo
16599
 
 
16600
 
  php_build_target=program
16601
 
 
16602
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
16603
 
  php_build_target=static
16604
 
;;
16605
 
  program) 
16606
 
  OVERALL_TARGET=php
16607
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16608
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16609
 
  php_c_post=
16610
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16611
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16612
 
  php_cxx_post=
16613
 
  php_lo=lo
16614
 
 
16615
 
  case $with_pic in
16616
 
    yes) pic_setting='-prefer-pic';;
16617
 
    no)  pic_setting='-prefer-non-pic';;
16618
 
  esac
16619
 
 
16620
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16621
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16622
 
  shared_c_post=
16623
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16624
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16625
 
  shared_cxx_post=
16626
 
  shared_lo=lo
16627
 
 
16628
 
  php_build_target=program
16629
 
;;
16630
 
  esac
16631
 
    
16632
 
  
16633
 
  
16634
 
  case sapi/nsapi in
16635
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
16636
 
  /*) ac_srcdir=`echo "sapi/nsapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
16637
 
  *) ac_srcdir="$abs_srcdir/sapi/nsapi/"; ac_bdir="sapi/nsapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
16638
 
  esac
16639
 
  
16640
 
  
16641
 
 
16642
 
  b_c_pre=$php_c_pre
16643
 
  b_cxx_pre=$php_cxx_pre
16644
 
  b_c_meta=$php_c_meta
16645
 
  b_cxx_meta=$php_cxx_meta
16646
 
  b_c_post=$php_c_post
16647
 
  b_cxx_post=$php_cxx_post
16648
 
  b_lo=$php_lo
16649
 
 
16650
 
 
16651
 
  old_IFS=$IFS
16652
 
  for ac_src in nsapi.c; do
16653
 
  
16654
 
      IFS=.
16655
 
      set $ac_src
16656
 
      ac_obj=$1
16657
 
      IFS=$old_IFS
16658
 
      
16659
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
16660
 
 
16661
 
      case $ac_src in
16662
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16663
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16664
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16665
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
16666
 
      esac
16667
 
 
16668
 
    cat >>Makefile.objects<<EOF
16669
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
16670
 
        $ac_comp
16671
 
EOF
16672
 
  done
16673
 
 
16674
 
 
16675
 
 
16676
 
  INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_NSAPI/bin/"
16677
 
fi
16678
 
 
16679
 
 
16680
 
 
16681
 
 
16682
 
 
16683
 
php_with_phttpd=no
16684
 
 
16685
 
{ $as_echo "$as_me:$LINENO: checking for PHTTPD support" >&5
16686
 
$as_echo_n "checking for PHTTPD support... " >&6; }
16687
 
 
16688
 
@%:@ Check whether --with-phttpd was given.
16689
 
if test "${with_phttpd+set}" = set; then
16690
 
  withval=$with_phttpd; PHP_PHTTPD=$withval
16691
 
else
16692
 
  
16693
 
  PHP_PHTTPD=no
16694
 
  
16695
 
 
16696
 
fi
16697
 
 
16698
 
 
16699
 
ext_output=$PHP_PHTTPD
16700
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
16701
 
$as_echo "$ext_output" >&6; }
16702
 
 
16703
 
 
16704
 
 
16705
 
 
16706
 
if test "$PHP_PHTTPD" != "no"; then
16707
 
  if test ! -d $PHP_PHTTPD ; then
16708
 
    { { $as_echo "$as_me:$LINENO: error: You did not specify a directory" >&5
16709
 
$as_echo "$as_me: error: You did not specify a directory" >&2;}
16710
 
   { (exit 1); exit 1; }; }
16711
 
  fi
16712
 
  
16713
 
  enable_maintainer_zts=yes
16714
 
  if test "$pthreads_working" != "yes"; then
16715
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
16716
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
16717
 
   { (exit 1); exit 1; }; }
16718
 
  fi
16719
 
 
16720
 
  
16721
 
  if test "$PHP_PHTTPD/include" != "/usr/include"; then
16722
 
    
16723
 
  if test -z "$PHP_PHTTPD/include" || echo "$PHP_PHTTPD/include" | grep '^/' >/dev/null ; then
16724
 
    ai_p=$PHP_PHTTPD/include
16725
 
  else
16726
 
    
16727
 
    ep_dir="`echo $PHP_PHTTPD/include|$SED 's%/*[^/][^/]*/*$%%'`"
16728
 
    
16729
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
16730
 
    ai_p="$ep_realdir/`basename \"$PHP_PHTTPD/include\"`"
16731
 
  fi
16732
 
 
16733
 
    
16734
 
  
16735
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
16736
 
  
16737
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
16738
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
16739
 
    eval "INCLUDEPATH$unique=set"
16740
 
    
16741
 
      if test ""; then
16742
 
        INCLUDES="-I$ai_p $INCLUDES"
16743
 
      else
16744
 
        INCLUDES="$INCLUDES -I$ai_p"
16745
 
      fi
16746
 
    
16747
 
  fi
16748
 
 
16749
 
  fi
16750
 
 
16751
 
  
16752
 
cat >>confdefs.h <<\_ACEOF
16753
 
@%:@define HAVE_PHTTPD 1
16754
 
_ACEOF
16755
 
 
16756
 
  
16757
 
  if test "$PHP_SAPI" != "default"; then
16758
 
{ { $as_echo "$as_me:$LINENO: error: 
16759
 
+--------------------------------------------------------------------+
16760
 
|                        *** ATTENTION ***                           |
16761
 
|                                                                    |
16762
 
| You've configured multiple SAPIs to be build. You can build only   |
16763
 
| one SAPI module and CLI binary at the same time.                   |
16764
 
+--------------------------------------------------------------------+
16765
 
" >&5
16766
 
$as_echo "$as_me: error: 
16767
 
+--------------------------------------------------------------------+
16768
 
|                        *** ATTENTION ***                           |
16769
 
|                                                                    |
16770
 
| You've configured multiple SAPIs to be build. You can build only   |
16771
 
| one SAPI module and CLI binary at the same time.                   |
16772
 
+--------------------------------------------------------------------+
16773
 
" >&2;}
16774
 
   { (exit 1); exit 1; }; }
16775
 
  fi
16776
 
 
16777
 
  PHP_SAPI=phttpd
16778
 
  
16779
 
  case "shared" in
16780
 
  static) 
16781
 
  
16782
 
  OVERALL_TARGET=php
16783
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16784
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16785
 
  php_c_post=
16786
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16787
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16788
 
  php_cxx_post=
16789
 
  php_lo=lo
16790
 
 
16791
 
  case $with_pic in
16792
 
    yes) pic_setting='-prefer-pic';;
16793
 
    no)  pic_setting='-prefer-non-pic';;
16794
 
  esac
16795
 
 
16796
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16797
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16798
 
  shared_c_post=
16799
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16800
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16801
 
  shared_cxx_post=
16802
 
  shared_lo=lo
16803
 
 
16804
 
  php_build_target=program
16805
 
 
16806
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
16807
 
  php_build_target=static
16808
 
;;
16809
 
  shared) 
16810
 
  
16811
 
  OVERALL_TARGET=php
16812
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16813
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16814
 
  php_c_post=
16815
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16816
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16817
 
  php_cxx_post=
16818
 
  php_lo=lo
16819
 
 
16820
 
  case $with_pic in
16821
 
    yes) pic_setting='-prefer-pic';;
16822
 
    no)  pic_setting='-prefer-non-pic';;
16823
 
  esac
16824
 
 
16825
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16826
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16827
 
  shared_c_post=
16828
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16829
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16830
 
  shared_cxx_post=
16831
 
  shared_lo=lo
16832
 
 
16833
 
  php_build_target=program
16834
 
 
16835
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
16836
 
  php_build_target=shared
16837
 
  
16838
 
  php_c_pre=$shared_c_pre
16839
 
  php_c_meta=$shared_c_meta
16840
 
  php_c_post=$shared_c_post
16841
 
  php_cxx_pre=$shared_cxx_pre
16842
 
  php_cxx_meta=$shared_cxx_meta
16843
 
  php_cxx_post=$shared_cxx_post
16844
 
  php_lo=$shared_lo
16845
 
;;
16846
 
  bundle) 
16847
 
  
16848
 
  OVERALL_TARGET=php
16849
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16850
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16851
 
  php_c_post=
16852
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16853
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16854
 
  php_cxx_post=
16855
 
  php_lo=lo
16856
 
 
16857
 
  case $with_pic in
16858
 
    yes) pic_setting='-prefer-pic';;
16859
 
    no)  pic_setting='-prefer-non-pic';;
16860
 
  esac
16861
 
 
16862
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16863
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16864
 
  shared_c_post=
16865
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16866
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16867
 
  shared_cxx_post=
16868
 
  shared_lo=lo
16869
 
 
16870
 
  php_build_target=program
16871
 
 
16872
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
16873
 
  php_build_target=static
16874
 
;;
16875
 
  program) 
16876
 
  OVERALL_TARGET=php
16877
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16878
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16879
 
  php_c_post=
16880
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16881
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16882
 
  php_cxx_post=
16883
 
  php_lo=lo
16884
 
 
16885
 
  case $with_pic in
16886
 
    yes) pic_setting='-prefer-pic';;
16887
 
    no)  pic_setting='-prefer-non-pic';;
16888
 
  esac
16889
 
 
16890
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16891
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16892
 
  shared_c_post=
16893
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16894
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16895
 
  shared_cxx_post=
16896
 
  shared_lo=lo
16897
 
 
16898
 
  php_build_target=program
16899
 
;;
16900
 
  esac
16901
 
    
16902
 
  
16903
 
  
16904
 
  case sapi/phttpd in
16905
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
16906
 
  /*) ac_srcdir=`echo "sapi/phttpd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
16907
 
  *) ac_srcdir="$abs_srcdir/sapi/phttpd/"; ac_bdir="sapi/phttpd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
16908
 
  esac
16909
 
  
16910
 
  
16911
 
 
16912
 
  b_c_pre=$php_c_pre
16913
 
  b_cxx_pre=$php_cxx_pre
16914
 
  b_c_meta=$php_c_meta
16915
 
  b_cxx_meta=$php_cxx_meta
16916
 
  b_c_post=$php_c_post
16917
 
  b_cxx_post=$php_cxx_post
16918
 
  b_lo=$php_lo
16919
 
 
16920
 
 
16921
 
  old_IFS=$IFS
16922
 
  for ac_src in phttpd.c; do
16923
 
  
16924
 
      IFS=.
16925
 
      set $ac_src
16926
 
      ac_obj=$1
16927
 
      IFS=$old_IFS
16928
 
      
16929
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
16930
 
 
16931
 
      case $ac_src in
16932
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16933
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16934
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16935
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
16936
 
      esac
16937
 
 
16938
 
    cat >>Makefile.objects<<EOF
16939
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
16940
 
        $ac_comp
16941
 
EOF
16942
 
  done
16943
 
 
16944
 
 
16945
 
 
16946
 
  INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_PHTTPD/modules/"
16947
 
fi
16948
 
 
16949
 
 
16950
 
 
16951
 
 
16952
 
php_with_pi3web=no
16953
 
 
16954
 
{ $as_echo "$as_me:$LINENO: checking for Pi3Web support" >&5
16955
 
$as_echo_n "checking for Pi3Web support... " >&6; }
16956
 
 
16957
 
@%:@ Check whether --with-pi3web was given.
16958
 
if test "${with_pi3web+set}" = set; then
16959
 
  withval=$with_pi3web; PHP_PI3WEB=$withval
16960
 
else
16961
 
  
16962
 
  PHP_PI3WEB=no
16963
 
  
16964
 
 
16965
 
fi
16966
 
 
16967
 
 
16968
 
ext_output=$PHP_PI3WEB
16969
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
16970
 
$as_echo "$ext_output" >&6; }
16971
 
 
16972
 
 
16973
 
 
16974
 
 
16975
 
if test "$PHP_PI3WEB" != "no"; then
16976
 
  if test "$PHP_PI3WEB" = "yes"; then
16977
 
    PI3PATH=../.. # the default
16978
 
  else
16979
 
    PI3PATH=$PHP_PI3WEB
16980
 
  fi
16981
 
  test -f "$PI3PATH/PiAPI/PiAPI.h" || { { $as_echo "$as_me:$LINENO: error: Unable to find PiAPI.h in $PI3PATH/PiAPI" >&5
16982
 
$as_echo "$as_me: error: Unable to find PiAPI.h in $PI3PATH/PiAPI" >&2;}
16983
 
   { (exit 1); exit 1; }; }
16984
 
  
16985
 
  enable_maintainer_zts=yes
16986
 
  if test "$pthreads_working" != "yes"; then
16987
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
16988
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
16989
 
   { (exit 1); exit 1; }; }
16990
 
  fi
16991
 
 
16992
 
  
16993
 
cat >>confdefs.h <<\_ACEOF
16994
 
@%:@define WITH_PI3WEB 1
16995
 
_ACEOF
16996
 
 
16997
 
  
16998
 
  if test "$PI3PATH/PiAPI" != "/usr/include"; then
16999
 
    
17000
 
  if test -z "$PI3PATH/PiAPI" || echo "$PI3PATH/PiAPI" | grep '^/' >/dev/null ; then
17001
 
    ai_p=$PI3PATH/PiAPI
17002
 
  else
17003
 
    
17004
 
    ep_dir="`echo $PI3PATH/PiAPI|$SED 's%/*[^/][^/]*/*$%%'`"
17005
 
    
17006
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17007
 
    ai_p="$ep_realdir/`basename \"$PI3PATH/PiAPI\"`"
17008
 
  fi
17009
 
 
17010
 
    
17011
 
  
17012
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
17013
 
  
17014
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
17015
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
17016
 
    eval "INCLUDEPATH$unique=set"
17017
 
    
17018
 
      if test ""; then
17019
 
        INCLUDES="-I$ai_p $INCLUDES"
17020
 
      else
17021
 
        INCLUDES="$INCLUDES -I$ai_p"
17022
 
      fi
17023
 
    
17024
 
  fi
17025
 
 
17026
 
  fi
17027
 
 
17028
 
  
17029
 
  if test "$PI3PATH/Pi2API" != "/usr/include"; then
17030
 
    
17031
 
  if test -z "$PI3PATH/Pi2API" || echo "$PI3PATH/Pi2API" | grep '^/' >/dev/null ; then
17032
 
    ai_p=$PI3PATH/Pi2API
17033
 
  else
17034
 
    
17035
 
    ep_dir="`echo $PI3PATH/Pi2API|$SED 's%/*[^/][^/]*/*$%%'`"
17036
 
    
17037
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17038
 
    ai_p="$ep_realdir/`basename \"$PI3PATH/Pi2API\"`"
17039
 
  fi
17040
 
 
17041
 
    
17042
 
  
17043
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
17044
 
  
17045
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
17046
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
17047
 
    eval "INCLUDEPATH$unique=set"
17048
 
    
17049
 
      if test ""; then
17050
 
        INCLUDES="-I$ai_p $INCLUDES"
17051
 
      else
17052
 
        INCLUDES="$INCLUDES -I$ai_p"
17053
 
      fi
17054
 
    
17055
 
  fi
17056
 
 
17057
 
  fi
17058
 
 
17059
 
  
17060
 
  if test "$PI3PATH/Pi3API" != "/usr/include"; then
17061
 
    
17062
 
  if test -z "$PI3PATH/Pi3API" || echo "$PI3PATH/Pi3API" | grep '^/' >/dev/null ; then
17063
 
    ai_p=$PI3PATH/Pi3API
17064
 
  else
17065
 
    
17066
 
    ep_dir="`echo $PI3PATH/Pi3API|$SED 's%/*[^/][^/]*/*$%%'`"
17067
 
    
17068
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17069
 
    ai_p="$ep_realdir/`basename \"$PI3PATH/Pi3API\"`"
17070
 
  fi
17071
 
 
17072
 
    
17073
 
  
17074
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
17075
 
  
17076
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
17077
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
17078
 
    eval "INCLUDEPATH$unique=set"
17079
 
    
17080
 
      if test ""; then
17081
 
        INCLUDES="-I$ai_p $INCLUDES"
17082
 
      else
17083
 
        INCLUDES="$INCLUDES -I$ai_p"
17084
 
      fi
17085
 
    
17086
 
  fi
17087
 
 
17088
 
  fi
17089
 
 
17090
 
  
17091
 
  if test "$PI3PATH/PHP5" != "/usr/include"; then
17092
 
    
17093
 
  if test -z "$PI3PATH/PHP5" || echo "$PI3PATH/PHP5" | grep '^/' >/dev/null ; then
17094
 
    ai_p=$PI3PATH/PHP5
17095
 
  else
17096
 
    
17097
 
    ep_dir="`echo $PI3PATH/PHP5|$SED 's%/*[^/][^/]*/*$%%'`"
17098
 
    
17099
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17100
 
    ai_p="$ep_realdir/`basename \"$PI3PATH/PHP5\"`"
17101
 
  fi
17102
 
 
17103
 
    
17104
 
  
17105
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
17106
 
  
17107
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
17108
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
17109
 
    eval "INCLUDEPATH$unique=set"
17110
 
    
17111
 
      if test ""; then
17112
 
        INCLUDES="-I$ai_p $INCLUDES"
17113
 
      else
17114
 
        INCLUDES="$INCLUDES -I$ai_p"
17115
 
      fi
17116
 
    
17117
 
  fi
17118
 
 
17119
 
  fi
17120
 
 
17121
 
  
17122
 
  if test "$PHP_SAPI" != "default"; then
17123
 
{ { $as_echo "$as_me:$LINENO: error: 
17124
 
+--------------------------------------------------------------------+
17125
 
|                        *** ATTENTION ***                           |
17126
 
|                                                                    |
17127
 
| You've configured multiple SAPIs to be build. You can build only   |
17128
 
| one SAPI module and CLI binary at the same time.                   |
17129
 
+--------------------------------------------------------------------+
17130
 
" >&5
17131
 
$as_echo "$as_me: error: 
17132
 
+--------------------------------------------------------------------+
17133
 
|                        *** ATTENTION ***                           |
17134
 
|                                                                    |
17135
 
| You've configured multiple SAPIs to be build. You can build only   |
17136
 
| one SAPI module and CLI binary at the same time.                   |
17137
 
+--------------------------------------------------------------------+
17138
 
" >&2;}
17139
 
   { (exit 1); exit 1; }; }
17140
 
  fi
17141
 
 
17142
 
  PHP_SAPI=pi3web
17143
 
  
17144
 
  case "shared" in
17145
 
  static) 
17146
 
  
17147
 
  OVERALL_TARGET=php
17148
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17149
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17150
 
  php_c_post=
17151
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17152
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17153
 
  php_cxx_post=
17154
 
  php_lo=lo
17155
 
 
17156
 
  case $with_pic in
17157
 
    yes) pic_setting='-prefer-pic';;
17158
 
    no)  pic_setting='-prefer-non-pic';;
17159
 
  esac
17160
 
 
17161
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17162
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17163
 
  shared_c_post=
17164
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17165
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17166
 
  shared_cxx_post=
17167
 
  shared_lo=lo
17168
 
 
17169
 
  php_build_target=program
17170
 
 
17171
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
17172
 
  php_build_target=static
17173
 
;;
17174
 
  shared) 
17175
 
  
17176
 
  OVERALL_TARGET=php
17177
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17178
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17179
 
  php_c_post=
17180
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17181
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17182
 
  php_cxx_post=
17183
 
  php_lo=lo
17184
 
 
17185
 
  case $with_pic in
17186
 
    yes) pic_setting='-prefer-pic';;
17187
 
    no)  pic_setting='-prefer-non-pic';;
17188
 
  esac
17189
 
 
17190
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17191
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17192
 
  shared_c_post=
17193
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17194
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17195
 
  shared_cxx_post=
17196
 
  shared_lo=lo
17197
 
 
17198
 
  php_build_target=program
17199
 
 
17200
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
17201
 
  php_build_target=shared
17202
 
  
17203
 
  php_c_pre=$shared_c_pre
17204
 
  php_c_meta=$shared_c_meta
17205
 
  php_c_post=$shared_c_post
17206
 
  php_cxx_pre=$shared_cxx_pre
17207
 
  php_cxx_meta=$shared_cxx_meta
17208
 
  php_cxx_post=$shared_cxx_post
17209
 
  php_lo=$shared_lo
17210
 
;;
17211
 
  bundle) 
17212
 
  
17213
 
  OVERALL_TARGET=php
17214
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17215
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17216
 
  php_c_post=
17217
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17218
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17219
 
  php_cxx_post=
17220
 
  php_lo=lo
17221
 
 
17222
 
  case $with_pic in
17223
 
    yes) pic_setting='-prefer-pic';;
17224
 
    no)  pic_setting='-prefer-non-pic';;
17225
 
  esac
17226
 
 
17227
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17228
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17229
 
  shared_c_post=
17230
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17231
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17232
 
  shared_cxx_post=
17233
 
  shared_lo=lo
17234
 
 
17235
 
  php_build_target=program
17236
 
 
17237
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
17238
 
  php_build_target=static
17239
 
;;
17240
 
  program) 
17241
 
  OVERALL_TARGET=php
17242
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17243
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17244
 
  php_c_post=
17245
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17246
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17247
 
  php_cxx_post=
17248
 
  php_lo=lo
17249
 
 
17250
 
  case $with_pic in
17251
 
    yes) pic_setting='-prefer-pic';;
17252
 
    no)  pic_setting='-prefer-non-pic';;
17253
 
  esac
17254
 
 
17255
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17256
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17257
 
  shared_c_post=
17258
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17259
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17260
 
  shared_cxx_post=
17261
 
  shared_lo=lo
17262
 
 
17263
 
  php_build_target=program
17264
 
;;
17265
 
  esac
17266
 
    
17267
 
  
17268
 
  
17269
 
  case sapi/pi3web in
17270
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
17271
 
  /*) ac_srcdir=`echo "sapi/pi3web"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
17272
 
  *) ac_srcdir="$abs_srcdir/sapi/pi3web/"; ac_bdir="sapi/pi3web/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
17273
 
  esac
17274
 
  
17275
 
  
17276
 
 
17277
 
  b_c_pre=$php_c_pre
17278
 
  b_cxx_pre=$php_cxx_pre
17279
 
  b_c_meta=$php_c_meta
17280
 
  b_cxx_meta=$php_cxx_meta
17281
 
  b_c_post=$php_c_post
17282
 
  b_cxx_post=$php_cxx_post
17283
 
  b_lo=$php_lo
17284
 
 
17285
 
 
17286
 
  old_IFS=$IFS
17287
 
  for ac_src in pi3web_sapi.c; do
17288
 
  
17289
 
      IFS=.
17290
 
      set $ac_src
17291
 
      ac_obj=$1
17292
 
      IFS=$old_IFS
17293
 
      
17294
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
17295
 
 
17296
 
      case $ac_src in
17297
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17298
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17299
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17300
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
17301
 
      esac
17302
 
 
17303
 
    cat >>Makefile.objects<<EOF
17304
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
17305
 
        $ac_comp
17306
 
EOF
17307
 
  done
17308
 
 
17309
 
 
17310
 
 
17311
 
  INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PI3PATH/bin/"
17312
 
fi
17313
 
 
17314
 
 
17315
 
 
17316
 
 
17317
 
php_with_roxen=no
17318
 
 
17319
 
 
17320
 
 
17321
 
@%:@ Check whether --with-roxen was given.
17322
 
if test "${with_roxen+set}" = set; then
17323
 
  withval=$with_roxen; PHP_ROXEN=$withval
17324
 
else
17325
 
  
17326
 
  PHP_ROXEN=no
17327
 
  
17328
 
 
17329
 
fi
17330
 
 
17331
 
 
17332
 
ext_output=$PHP_ROXEN
17333
 
 
17334
 
 
17335
 
 
17336
 
 
17337
 
 
17338
 
 
17339
 
php_enable_roxen_zts=no
17340
 
 
17341
 
{ $as_echo "$as_me:$LINENO: checking whether Roxen module is build using ZTS" >&5
17342
 
$as_echo_n "checking whether Roxen module is build using ZTS... " >&6; }
17343
 
@%:@ Check whether --enable-roxen-zts was given.
17344
 
if test "${enable_roxen_zts+set}" = set; then
17345
 
  enableval=$enable_roxen_zts; PHP_ROXEN_ZTS=$enableval
17346
 
else
17347
 
  
17348
 
  PHP_ROXEN_ZTS=no
17349
 
  
17350
 
 
17351
 
fi
17352
 
 
17353
 
 
17354
 
ext_output=$PHP_ROXEN_ZTS
17355
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
17356
 
$as_echo "$ext_output" >&6; }
17357
 
 
17358
 
 
17359
 
 
17360
 
 
17361
 
RESULT=
17362
 
{ $as_echo "$as_me:$LINENO: checking for Roxen/Pike support" >&5
17363
 
$as_echo_n "checking for Roxen/Pike support... " >&6; }
17364
 
if test "$PHP_ROXEN" != "no"; then
17365
 
  if test ! -d $PHP_ROXEN ; then
17366
 
    { { $as_echo "$as_me:$LINENO: error: You did not specify a directory" >&5
17367
 
$as_echo "$as_me: error: You did not specify a directory" >&2;}
17368
 
   { (exit 1); exit 1; }; }
17369
 
  fi
17370
 
  if test -f $PHP_ROXEN/bin/roxen; then
17371
 
    PIKE=$PHP_ROXEN/bin/roxen
17372
 
  elif test -f $PHP_ROXEN/bin/pike; then
17373
 
    PIKE=$PHP_ROXEN/bin/pike
17374
 
  else
17375
 
    { { $as_echo "$as_me:$LINENO: error: Could not find a pike in $PHP_ROXEN/bin/" >&5
17376
 
$as_echo "$as_me: error: Could not find a pike in $PHP_ROXEN/bin/" >&2;}
17377
 
   { (exit 1); exit 1; }; }
17378
 
  fi
17379
 
 
17380
 
  if $PIKE -e 'float v; catch(v = __VERSION__ + (__BUILD__/10000.0)); if(v < 0.7079) exit(1); exit(0);'; then
17381
 
    PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
17382
 
    PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,'`
17383
 
    if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
17384
 
      { { $as_echo "$as_me:$LINENO: error: Failed to figure out Pike module and include directories" >&5
17385
 
$as_echo "$as_me: error: Failed to figure out Pike module and include directories" >&2;}
17386
 
   { (exit 1); exit 1; }; }
17387
 
    fi
17388
 
  else
17389
 
    { { $as_echo "$as_me:$LINENO: error: Roxen/PHP requires Pike 0.7.79 or newer" >&5
17390
 
$as_echo "$as_me: error: Roxen/PHP requires Pike 0.7.79 or newer" >&2;}
17391
 
   { (exit 1); exit 1; }; }
17392
 
  fi
17393
 
   
17394
 
  
17395
 
  if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
17396
 
    
17397
 
  if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
17398
 
    ai_p=$PIKE_INCLUDE_DIR
17399
 
  else
17400
 
    
17401
 
    ep_dir="`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
17402
 
    
17403
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17404
 
    ai_p="$ep_realdir/`basename \"$PIKE_INCLUDE_DIR\"`"
17405
 
  fi
17406
 
 
17407
 
    
17408
 
  
17409
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
17410
 
  
17411
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
17412
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
17413
 
    eval "INCLUDEPATH$unique=set"
17414
 
    
17415
 
      if test ""; then
17416
 
        INCLUDES="-I$ai_p $INCLUDES"
17417
 
      else
17418
 
        INCLUDES="$INCLUDES -I$ai_p"
17419
 
      fi
17420
 
    
17421
 
  fi
17422
 
 
17423
 
  fi
17424
 
 
17425
 
  
17426
 
cat >>confdefs.h <<\_ACEOF
17427
 
@%:@define HAVE_ROXEN 1
17428
 
_ACEOF
17429
 
 
17430
 
  
17431
 
  if test "$PHP_SAPI" != "default"; then
17432
 
{ { $as_echo "$as_me:$LINENO: error: 
17433
 
+--------------------------------------------------------------------+
17434
 
|                        *** ATTENTION ***                           |
17435
 
|                                                                    |
17436
 
| You've configured multiple SAPIs to be build. You can build only   |
17437
 
| one SAPI module and CLI binary at the same time.                   |
17438
 
+--------------------------------------------------------------------+
17439
 
" >&5
17440
 
$as_echo "$as_me: error: 
17441
 
+--------------------------------------------------------------------+
17442
 
|                        *** ATTENTION ***                           |
17443
 
|                                                                    |
17444
 
| You've configured multiple SAPIs to be build. You can build only   |
17445
 
| one SAPI module and CLI binary at the same time.                   |
17446
 
+--------------------------------------------------------------------+
17447
 
" >&2;}
17448
 
   { (exit 1); exit 1; }; }
17449
 
  fi
17450
 
 
17451
 
  PHP_SAPI=roxen
17452
 
  
17453
 
  case "shared" in
17454
 
  static) 
17455
 
  
17456
 
  OVERALL_TARGET=php
17457
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17458
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17459
 
  php_c_post=
17460
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17461
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17462
 
  php_cxx_post=
17463
 
  php_lo=lo
17464
 
 
17465
 
  case $with_pic in
17466
 
    yes) pic_setting='-prefer-pic';;
17467
 
    no)  pic_setting='-prefer-non-pic';;
17468
 
  esac
17469
 
 
17470
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17471
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17472
 
  shared_c_post=
17473
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17474
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17475
 
  shared_cxx_post=
17476
 
  shared_lo=lo
17477
 
 
17478
 
  php_build_target=program
17479
 
 
17480
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
17481
 
  php_build_target=static
17482
 
;;
17483
 
  shared) 
17484
 
  
17485
 
  OVERALL_TARGET=php
17486
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17487
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17488
 
  php_c_post=
17489
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17490
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17491
 
  php_cxx_post=
17492
 
  php_lo=lo
17493
 
 
17494
 
  case $with_pic in
17495
 
    yes) pic_setting='-prefer-pic';;
17496
 
    no)  pic_setting='-prefer-non-pic';;
17497
 
  esac
17498
 
 
17499
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17500
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17501
 
  shared_c_post=
17502
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17503
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17504
 
  shared_cxx_post=
17505
 
  shared_lo=lo
17506
 
 
17507
 
  php_build_target=program
17508
 
 
17509
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
17510
 
  php_build_target=shared
17511
 
  
17512
 
  php_c_pre=$shared_c_pre
17513
 
  php_c_meta=$shared_c_meta
17514
 
  php_c_post=$shared_c_post
17515
 
  php_cxx_pre=$shared_cxx_pre
17516
 
  php_cxx_meta=$shared_cxx_meta
17517
 
  php_cxx_post=$shared_cxx_post
17518
 
  php_lo=$shared_lo
17519
 
;;
17520
 
  bundle) 
17521
 
  
17522
 
  OVERALL_TARGET=php
17523
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17524
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17525
 
  php_c_post=
17526
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17527
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17528
 
  php_cxx_post=
17529
 
  php_lo=lo
17530
 
 
17531
 
  case $with_pic in
17532
 
    yes) pic_setting='-prefer-pic';;
17533
 
    no)  pic_setting='-prefer-non-pic';;
17534
 
  esac
17535
 
 
17536
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17537
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17538
 
  shared_c_post=
17539
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17540
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17541
 
  shared_cxx_post=
17542
 
  shared_lo=lo
17543
 
 
17544
 
  php_build_target=program
17545
 
 
17546
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
17547
 
  php_build_target=static
17548
 
;;
17549
 
  program) 
17550
 
  OVERALL_TARGET=php
17551
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17552
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17553
 
  php_c_post=
17554
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17555
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17556
 
  php_cxx_post=
17557
 
  php_lo=lo
17558
 
 
17559
 
  case $with_pic in
17560
 
    yes) pic_setting='-prefer-pic';;
17561
 
    no)  pic_setting='-prefer-non-pic';;
17562
 
  esac
17563
 
 
17564
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17565
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17566
 
  shared_c_post=
17567
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17568
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17569
 
  shared_cxx_post=
17570
 
  shared_lo=lo
17571
 
 
17572
 
  php_build_target=program
17573
 
;;
17574
 
  esac
17575
 
    
17576
 
  
17577
 
  
17578
 
  case sapi/roxen in
17579
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
17580
 
  /*) ac_srcdir=`echo "sapi/roxen"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
17581
 
  *) ac_srcdir="$abs_srcdir/sapi/roxen/"; ac_bdir="sapi/roxen/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
17582
 
  esac
17583
 
  
17584
 
  
17585
 
 
17586
 
  b_c_pre=$php_c_pre
17587
 
  b_cxx_pre=$php_cxx_pre
17588
 
  b_c_meta=$php_c_meta
17589
 
  b_cxx_meta=$php_cxx_meta
17590
 
  b_c_post=$php_c_post
17591
 
  b_cxx_post=$php_cxx_post
17592
 
  b_lo=$php_lo
17593
 
 
17594
 
 
17595
 
  old_IFS=$IFS
17596
 
  for ac_src in roxen.c; do
17597
 
  
17598
 
      IFS=.
17599
 
      set $ac_src
17600
 
      ac_obj=$1
17601
 
      IFS=$old_IFS
17602
 
      
17603
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
17604
 
 
17605
 
      case $ac_src in
17606
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17607
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17608
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
17609
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
17610
 
      esac
17611
 
 
17612
 
    cat >>Makefile.objects<<EOF
17613
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
17614
 
        $ac_comp
17615
 
EOF
17616
 
  done
17617
 
 
17618
 
 
17619
 
 
17620
 
  INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PIKE_MODULE_DIR/PHP5.so"
17621
 
  RESULT="yes
17622
 
  Pike binary used:      $PIKE
17623
 
  Pike include dir:      $PIKE_INCLUDE_DIR
17624
 
  Pike module directory: $PIKE_MODULE_DIR"
17625
 
  PIKE_INCLUDE_DIR=" -I$PIKE_INCLUDE_DIR "
17626
 
 
17627
 
  if test "$PHP_ROXEN_ZTS" != "no"; then
17628
 
    
17629
 
  enable_maintainer_zts=yes
17630
 
  if test "$pthreads_working" != "yes"; then
17631
 
    { { $as_echo "$as_me:$LINENO: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&5
17632
 
$as_echo "$as_me: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." >&2;}
17633
 
   { (exit 1); exit 1; }; }
17634
 
  fi
17635
 
 
17636
 
    
17637
 
cat >>confdefs.h <<\_ACEOF
17638
 
@%:@define ROXEN_USE_ZTS 1
17639
 
_ACEOF
17640
 
 
17641
 
  fi
17642
 
fi
17643
 
{ $as_echo "$as_me:$LINENO: result: $RESULT" >&5
17644
 
$as_echo "$RESULT" >&6; }
17645
 
 
17646
 
 
17647
 
 
17648
 
 
17649
 
php_with_thttpd=no
17650
 
 
17651
 
 
17652
 
 
17653
 
@%:@ Check whether --with-thttpd was given.
17654
 
if test "${with_thttpd+set}" = set; then
17655
 
  withval=$with_thttpd; PHP_THTTPD=$withval
17656
 
else
17657
 
  
17658
 
  PHP_THTTPD=no
17659
 
  
17660
 
 
17661
 
fi
17662
 
 
17663
 
 
17664
 
ext_output=$PHP_THTTPD
17665
 
 
17666
 
 
17667
 
 
17668
 
 
17669
 
 
17670
 
{ $as_echo "$as_me:$LINENO: checking for thttpd" >&5
17671
 
$as_echo_n "checking for thttpd... " >&6; }
17672
 
 
17673
 
if test "$PHP_THTTPD" != "no"; then
17674
 
  if test ! -d $PHP_THTTPD; then
17675
 
    { $as_echo "$as_me:$LINENO: result: thttpd directory does not exist ($PHP_THTTPD)" >&5
17676
 
$as_echo "thttpd directory does not exist ($PHP_THTTPD)" >&6; }
17677
 
  fi
17678
 
 
17679
 
  
17680
 
  if test -z "$PHP_THTTPD" || echo "$PHP_THTTPD" | grep '^/' >/dev/null ; then
17681
 
    THTTPD=$PHP_THTTPD
17682
 
  else
17683
 
    
17684
 
    ep_dir="`echo $PHP_THTTPD|$SED 's%/*[^/][^/]*/*$%%'`"
17685
 
    
17686
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17687
 
    THTTPD="$ep_realdir/`basename \"$PHP_THTTPD\"`"
17688
 
  fi
17689
 
 
17690
 
  
17691
 
  if grep thttpd.2.21b $PHP_THTTPD/version.h >/dev/null; then
17692
 
    patch="test -f $THTTPD/php_patched || \
17693
 
    (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)"
17694
 
 
17695
 
  elif grep Premium $PHP_THTTPD/version.h >/dev/null; then
17696
 
    patch=
17697
 
  else
17698
 
    { { $as_echo "$as_me:$LINENO: error: This version only supports thttpd-2.21b and Premium thttpd" >&5
17699
 
$as_echo "$as_me: error: This version only supports thttpd-2.21b and Premium thttpd" >&2;}
17700
 
   { (exit 1); exit 1; }; }
17701
 
  fi
17702
 
  
17703
 
  if test -n "$GCC"; then
17704
 
        
17705
 
  gcc_arg_name=ac_cv_gcc_arg_rdynamic
17706
 
  { $as_echo "$as_me:$LINENO: checking whether $CC supports -rdynamic" >&5
17707
 
$as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
17708
 
if test "${ac_cv_gcc_arg_rdynamic+set}" = set; then
17709
 
  $as_echo_n "(cached) " >&6
17710
 
else
17711
 
  
17712
 
  echo 'void somefunc() { };' > conftest.c
17713
 
  cmd='$CC -rdynamic -c conftest.c'
17714
 
  if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
17715
 
    ac_result=no
17716
 
  else
17717
 
    ac_result=yes
17718
 
  fi
17719
 
  eval $gcc_arg_name=$ac_result
17720
 
  rm -f conftest.*
17721
 
  
17722
 
fi
17723
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_arg_rdynamic" >&5
17724
 
$as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
17725
 
  if eval test "\$$gcc_arg_name" = "yes"; then
17726
 
    gcc_rdynamic=yes
17727
 
  else
17728
 
    :
17729
 
    
17730
 
  fi
17731
 
 
17732
 
    if test "$gcc_rdynamic" = "yes"; then
17733
 
      PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
17734
 
    fi
17735
 
  fi
17736
 
 
17737
 
  INSTALL_IT="\
17738
 
    echo 'PHP_LIBS = -L. -lphp5 \$(PHP_LIBS) \$(EXTRA_LIBS)' > $THTTPD/php_makefile; \
17739
 
    echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $THTTPD/php_makefile; \
17740
 
    echo 'PHP_CFLAGS = \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(CPPFLAGS) \$(EXTRA_CFLAGS)' >> $THTTPD/php_makefile; \
17741
 
    rm -f $THTTPD/php_thttpd.c $THTTPD/php_thttpd.h $THTTPD/libphp5.a; \
17742
 
    \$(LN_S) $abs_srcdir/sapi/thttpd/thttpd.c $THTTPD/php_thttpd.c; \
17743
 
    \$(LN_S) $abs_srcdir/sapi/thttpd/php_thttpd.h $abs_builddir/$SAPI_STATIC $THTTPD/;\
17744
 
    $patch"
17745
 
  PHP_THTTPD="yes, using $THTTPD"
17746
 
  
17747
 
  if test "$THTTPD" != "/usr/include"; then
17748
 
    
17749
 
  if test -z "$THTTPD" || echo "$THTTPD" | grep '^/' >/dev/null ; then
17750
 
    ai_p=$THTTPD
17751
 
  else
17752
 
    
17753
 
    ep_dir="`echo $THTTPD|$SED 's%/*[^/][^/]*/*$%%'`"
17754
 
    
17755
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
17756
 
    ai_p="$ep_realdir/`basename \"$THTTPD\"`"
17757
 
  fi
17758
 
 
17759
 
    
17760
 
  
17761
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
17762
 
  
17763
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
17764
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
17765
 
    eval "INCLUDEPATH$unique=set"
17766
 
    
17767
 
      if test ""; then
17768
 
        INCLUDES="-I$ai_p $INCLUDES"
17769
 
      else
17770
 
        INCLUDES="$INCLUDES -I$ai_p"
17771
 
      fi
17772
 
    
17773
 
  fi
17774
 
 
17775
 
  fi
17776
 
 
17777
 
  
17778
 
  if test "$PHP_SAPI" != "default"; then
17779
 
{ { $as_echo "$as_me:$LINENO: error: 
17780
 
+--------------------------------------------------------------------+
17781
 
|                        *** ATTENTION ***                           |
17782
 
|                                                                    |
17783
 
| You've configured multiple SAPIs to be build. You can build only   |
17784
 
| one SAPI module and CLI binary at the same time.                   |
17785
 
+--------------------------------------------------------------------+
17786
 
" >&5
17787
 
$as_echo "$as_me: error: 
17788
 
+--------------------------------------------------------------------+
17789
 
|                        *** ATTENTION ***                           |
17790
 
|                                                                    |
17791
 
| You've configured multiple SAPIs to be build. You can build only   |
17792
 
| one SAPI module and CLI binary at the same time.                   |
17793
 
+--------------------------------------------------------------------+
17794
 
" >&2;}
17795
 
   { (exit 1); exit 1; }; }
17796
 
  fi
17797
 
 
17798
 
  PHP_SAPI=thttpd
17799
 
  
17800
 
  case "static" in
17801
 
  static) 
17802
 
  
17803
 
  OVERALL_TARGET=php
17804
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17805
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17806
 
  php_c_post=
17807
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17808
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17809
 
  php_cxx_post=
17810
 
  php_lo=lo
17811
 
 
17812
 
  case $with_pic in
17813
 
    yes) pic_setting='-prefer-pic';;
17814
 
    no)  pic_setting='-prefer-non-pic';;
17815
 
  esac
17816
 
 
17817
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17818
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17819
 
  shared_c_post=
17820
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17821
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17822
 
  shared_cxx_post=
17823
 
  shared_lo=lo
17824
 
 
17825
 
  php_build_target=program
17826
 
 
17827
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
17828
 
  php_build_target=static
17829
 
;;
17830
 
  shared) 
17831
 
  
17832
 
  OVERALL_TARGET=php
17833
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17834
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17835
 
  php_c_post=
17836
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17837
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17838
 
  php_cxx_post=
17839
 
  php_lo=lo
17840
 
 
17841
 
  case $with_pic in
17842
 
    yes) pic_setting='-prefer-pic';;
17843
 
    no)  pic_setting='-prefer-non-pic';;
17844
 
  esac
17845
 
 
17846
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17847
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17848
 
  shared_c_post=
17849
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17850
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17851
 
  shared_cxx_post=
17852
 
  shared_lo=lo
17853
 
 
17854
 
  php_build_target=program
17855
 
 
17856
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
17857
 
  php_build_target=shared
17858
 
  
17859
 
  php_c_pre=$shared_c_pre
17860
 
  php_c_meta=$shared_c_meta
17861
 
  php_c_post=$shared_c_post
17862
 
  php_cxx_pre=$shared_cxx_pre
17863
 
  php_cxx_meta=$shared_cxx_meta
17864
 
  php_cxx_post=$shared_cxx_post
17865
 
  php_lo=$shared_lo
17866
 
;;
17867
 
  bundle) 
17868
 
  
17869
 
  OVERALL_TARGET=php
17870
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17871
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17872
 
  php_c_post=
17873
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17874
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17875
 
  php_cxx_post=
17876
 
  php_lo=lo
17877
 
 
17878
 
  case $with_pic in
17879
 
    yes) pic_setting='-prefer-pic';;
17880
 
    no)  pic_setting='-prefer-non-pic';;
17881
 
  esac
17882
 
 
17883
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17884
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17885
 
  shared_c_post=
17886
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17887
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17888
 
  shared_cxx_post=
17889
 
  shared_lo=lo
17890
 
 
17891
 
  php_build_target=program
17892
 
 
17893
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
17894
 
  php_build_target=static
17895
 
;;
17896
 
  program) 
17897
 
  OVERALL_TARGET=php
17898
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17899
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
17900
 
  php_c_post=
17901
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17902
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
17903
 
  php_cxx_post=
17904
 
  php_lo=lo
17905
 
 
17906
 
  case $with_pic in
17907
 
    yes) pic_setting='-prefer-pic';;
17908
 
    no)  pic_setting='-prefer-non-pic';;
17909
 
  esac
17910
 
 
17911
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
17912
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
17913
 
  shared_c_post=
17914
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
17915
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
17916
 
  shared_cxx_post=
17917
 
  shared_lo=lo
17918
 
 
17919
 
  php_build_target=program
17920
 
;;
17921
 
  esac
17922
 
    
17923
 
  
17924
 
 
17925
 
fi
17926
 
{ $as_echo "$as_me:$LINENO: result: $PHP_THTTPD" >&5
17927
 
$as_echo "$PHP_THTTPD" >&6; }
17928
 
 
17929
 
 
17930
 
 
17931
 
php_with_tux=no
17932
 
 
17933
 
 
17934
 
 
17935
 
@%:@ Check whether --with-tux was given.
17936
 
if test "${with_tux+set}" = set; then
17937
 
  withval=$with_tux; PHP_TUX=$withval
17938
 
else
17939
 
  
17940
 
  PHP_TUX=no
17941
 
  
17942
 
 
17943
 
fi
17944
 
 
17945
 
 
17946
 
ext_output=$PHP_TUX
17947
 
 
17948
 
 
17949
 
 
17950
 
 
17951
 
 
17952
 
{ $as_echo "$as_me:$LINENO: checking for TUX" >&5
17953
 
$as_echo_n "checking for TUX... " >&6; }
17954
 
if test "$PHP_TUX" != "no"; then
17955
 
  INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_TUX/php5.tux.so"
17956
 
  
17957
 
for ac_header in tuxmodule.h
17958
 
do
17959
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17960
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17961
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17962
 
$as_echo_n "checking for $ac_header... " >&6; }
17963
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17964
 
  $as_echo_n "(cached) " >&6
17965
 
fi
17966
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
17967
 
                 $as_echo "$as_val"'`
17968
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17969
 
$as_echo "$ac_res" >&6; }
17970
 
else
17971
 
  # Is the header compilable?
17972
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17973
 
$as_echo_n "checking $ac_header usability... " >&6; }
17974
 
cat >conftest.$ac_ext <<_ACEOF
17975
 
/* confdefs.h.  */
17976
 
_ACEOF
17977
 
cat confdefs.h >>conftest.$ac_ext
17978
 
cat >>conftest.$ac_ext <<_ACEOF
17979
 
/* end confdefs.h.  */
17980
 
$ac_includes_default
17981
 
@%:@include <$ac_header>
17982
 
_ACEOF
17983
 
rm -f conftest.$ac_objext
17984
 
if { (ac_try="$ac_compile"
17985
 
case "(($ac_try" in
17986
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987
 
  *) ac_try_echo=$ac_try;;
17988
 
esac
17989
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17990
 
$as_echo "$ac_try_echo") >&5
17991
 
  (eval "$ac_compile") 2>conftest.er1
17992
 
  ac_status=$?
17993
 
  grep -v '^ *+' conftest.er1 >conftest.err
17994
 
  rm -f conftest.er1
17995
 
  cat conftest.err >&5
17996
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997
 
  (exit $ac_status); } && {
17998
 
         test -z "$ac_c_werror_flag" ||
17999
 
         test ! -s conftest.err
18000
 
       } && test -s conftest.$ac_objext; then
18001
 
  ac_header_compiler=yes
18002
 
else
18003
 
  $as_echo "$as_me: failed program was:" >&5
18004
 
sed 's/^/| /' conftest.$ac_ext >&5
18005
 
 
18006
 
        ac_header_compiler=no
18007
 
fi
18008
 
 
18009
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18011
 
$as_echo "$ac_header_compiler" >&6; }
18012
 
 
18013
 
# Is the header present?
18014
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18015
 
$as_echo_n "checking $ac_header presence... " >&6; }
18016
 
cat >conftest.$ac_ext <<_ACEOF
18017
 
/* confdefs.h.  */
18018
 
_ACEOF
18019
 
cat confdefs.h >>conftest.$ac_ext
18020
 
cat >>conftest.$ac_ext <<_ACEOF
18021
 
/* end confdefs.h.  */
18022
 
@%:@include <$ac_header>
18023
 
_ACEOF
18024
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
18025
 
case "(($ac_try" in
18026
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18027
 
  *) ac_try_echo=$ac_try;;
18028
 
esac
18029
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18030
 
$as_echo "$ac_try_echo") >&5
18031
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18032
 
  ac_status=$?
18033
 
  grep -v '^ *+' conftest.er1 >conftest.err
18034
 
  rm -f conftest.er1
18035
 
  cat conftest.err >&5
18036
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037
 
  (exit $ac_status); } >/dev/null && {
18038
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18039
 
         test ! -s conftest.err
18040
 
       }; then
18041
 
  ac_header_preproc=yes
18042
 
else
18043
 
  $as_echo "$as_me: failed program was:" >&5
18044
 
sed 's/^/| /' conftest.$ac_ext >&5
18045
 
 
18046
 
  ac_header_preproc=no
18047
 
fi
18048
 
 
18049
 
rm -f conftest.err conftest.$ac_ext
18050
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18051
 
$as_echo "$ac_header_preproc" >&6; }
18052
 
 
18053
 
# So?  What about this header?
18054
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18055
 
  yes:no: )
18056
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18057
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18058
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18059
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18060
 
    ac_header_preproc=yes
18061
 
    ;;
18062
 
  no:yes:* )
18063
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18064
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18065
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18066
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18067
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18068
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18069
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18070
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18071
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18072
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18073
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18074
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18075
 
    
18076
 
    ;;
18077
 
esac
18078
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18079
 
$as_echo_n "checking for $ac_header... " >&6; }
18080
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18081
 
  $as_echo_n "(cached) " >&6
18082
 
else
18083
 
  eval "$as_ac_Header=\$ac_header_preproc"
18084
 
fi
18085
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
18086
 
                 $as_echo "$as_val"'`
18087
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18088
 
$as_echo "$ac_res" >&6; }
18089
 
 
18090
 
fi
18091
 
as_val=`eval 'as_val=${'$as_ac_Header'}
18092
 
                 $as_echo "$as_val"'`
18093
 
   if test "x$as_val" = x""yes; then
18094
 
  cat >>confdefs.h <<_ACEOF
18095
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18096
 
_ACEOF
18097
 
 :
18098
 
else
18099
 
  { { $as_echo "$as_me:$LINENO: error: Cannot find tuxmodule.h" >&5
18100
 
$as_echo "$as_me: error: Cannot find tuxmodule.h" >&2;}
18101
 
   { (exit 1); exit 1; }; }
18102
 
fi
18103
 
 
18104
 
done
18105
 
 
18106
 
  
18107
 
  if test "$PHP_SAPI" != "default"; then
18108
 
{ { $as_echo "$as_me:$LINENO: error: 
18109
 
+--------------------------------------------------------------------+
18110
 
|                        *** ATTENTION ***                           |
18111
 
|                                                                    |
18112
 
| You've configured multiple SAPIs to be build. You can build only   |
18113
 
| one SAPI module and CLI binary at the same time.                   |
18114
 
+--------------------------------------------------------------------+
18115
 
" >&5
18116
 
$as_echo "$as_me: error: 
18117
 
+--------------------------------------------------------------------+
18118
 
|                        *** ATTENTION ***                           |
18119
 
|                                                                    |
18120
 
| You've configured multiple SAPIs to be build. You can build only   |
18121
 
| one SAPI module and CLI binary at the same time.                   |
18122
 
+--------------------------------------------------------------------+
18123
 
" >&2;}
18124
 
   { (exit 1); exit 1; }; }
18125
 
  fi
18126
 
 
18127
 
  PHP_SAPI=tux
18128
 
  
18129
 
  case "shared" in
18130
 
  static) 
18131
 
  
18132
 
  OVERALL_TARGET=php
18133
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18134
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18135
 
  php_c_post=
18136
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18137
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18138
 
  php_cxx_post=
18139
 
  php_lo=lo
18140
 
 
18141
 
  case $with_pic in
18142
 
    yes) pic_setting='-prefer-pic';;
18143
 
    no)  pic_setting='-prefer-non-pic';;
18144
 
  esac
18145
 
 
18146
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18147
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18148
 
  shared_c_post=
18149
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18150
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18151
 
  shared_cxx_post=
18152
 
  shared_lo=lo
18153
 
 
18154
 
  php_build_target=program
18155
 
 
18156
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
18157
 
  php_build_target=static
18158
 
;;
18159
 
  shared) 
18160
 
  
18161
 
  OVERALL_TARGET=php
18162
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18163
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18164
 
  php_c_post=
18165
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18166
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18167
 
  php_cxx_post=
18168
 
  php_lo=lo
18169
 
 
18170
 
  case $with_pic in
18171
 
    yes) pic_setting='-prefer-pic';;
18172
 
    no)  pic_setting='-prefer-non-pic';;
18173
 
  esac
18174
 
 
18175
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18176
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18177
 
  shared_c_post=
18178
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18179
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18180
 
  shared_cxx_post=
18181
 
  shared_lo=lo
18182
 
 
18183
 
  php_build_target=program
18184
 
 
18185
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
18186
 
  php_build_target=shared
18187
 
  
18188
 
  php_c_pre=$shared_c_pre
18189
 
  php_c_meta=$shared_c_meta
18190
 
  php_c_post=$shared_c_post
18191
 
  php_cxx_pre=$shared_cxx_pre
18192
 
  php_cxx_meta=$shared_cxx_meta
18193
 
  php_cxx_post=$shared_cxx_post
18194
 
  php_lo=$shared_lo
18195
 
;;
18196
 
  bundle) 
18197
 
  
18198
 
  OVERALL_TARGET=php
18199
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18200
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18201
 
  php_c_post=
18202
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18203
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18204
 
  php_cxx_post=
18205
 
  php_lo=lo
18206
 
 
18207
 
  case $with_pic in
18208
 
    yes) pic_setting='-prefer-pic';;
18209
 
    no)  pic_setting='-prefer-non-pic';;
18210
 
  esac
18211
 
 
18212
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18213
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18214
 
  shared_c_post=
18215
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18216
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18217
 
  shared_cxx_post=
18218
 
  shared_lo=lo
18219
 
 
18220
 
  php_build_target=program
18221
 
 
18222
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
18223
 
  php_build_target=static
18224
 
;;
18225
 
  program) 
18226
 
  OVERALL_TARGET=php
18227
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18228
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18229
 
  php_c_post=
18230
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18231
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18232
 
  php_cxx_post=
18233
 
  php_lo=lo
18234
 
 
18235
 
  case $with_pic in
18236
 
    yes) pic_setting='-prefer-pic';;
18237
 
    no)  pic_setting='-prefer-non-pic';;
18238
 
  esac
18239
 
 
18240
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18241
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18242
 
  shared_c_post=
18243
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18244
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18245
 
  shared_cxx_post=
18246
 
  shared_lo=lo
18247
 
 
18248
 
  php_build_target=program
18249
 
;;
18250
 
  esac
18251
 
    
18252
 
  
18253
 
  
18254
 
  case sapi/tux in
18255
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
18256
 
  /*) ac_srcdir=`echo "sapi/tux"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
18257
 
  *) ac_srcdir="$abs_srcdir/sapi/tux/"; ac_bdir="sapi/tux/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
18258
 
  esac
18259
 
  
18260
 
  
18261
 
 
18262
 
  b_c_pre=$php_c_pre
18263
 
  b_cxx_pre=$php_cxx_pre
18264
 
  b_c_meta=$php_c_meta
18265
 
  b_cxx_meta=$php_cxx_meta
18266
 
  b_c_post=$php_c_post
18267
 
  b_cxx_post=$php_cxx_post
18268
 
  b_lo=$php_lo
18269
 
 
18270
 
 
18271
 
  old_IFS=$IFS
18272
 
  for ac_src in php_tux.c; do
18273
 
  
18274
 
      IFS=.
18275
 
      set $ac_src
18276
 
      ac_obj=$1
18277
 
      IFS=$old_IFS
18278
 
      
18279
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
18280
 
 
18281
 
      case $ac_src in
18282
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
18283
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
18284
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
18285
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
18286
 
      esac
18287
 
 
18288
 
    cat >>Makefile.objects<<EOF
18289
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
18290
 
        $ac_comp
18291
 
EOF
18292
 
  done
18293
 
 
18294
 
 
18295
 
 
18296
 
  { $as_echo "$as_me:$LINENO: result: $PHP_TUX" >&5
18297
 
$as_echo "$PHP_TUX" >&6; }
18298
 
else
18299
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
18300
 
$as_echo "no" >&6; }
18301
 
fi
18302
 
 
18303
 
 
18304
 
 
18305
 
php_with_webjames=no
18306
 
 
18307
 
 
18308
 
 
18309
 
@%:@ Check whether --with-webjames was given.
18310
 
if test "${with_webjames+set}" = set; then
18311
 
  withval=$with_webjames; PHP_WEBJAMES=$withval
18312
 
else
18313
 
  
18314
 
  PHP_WEBJAMES=no
18315
 
  
18316
 
 
18317
 
fi
18318
 
 
18319
 
 
18320
 
ext_output=$PHP_WEBJAMES
18321
 
 
18322
 
 
18323
 
 
18324
 
 
18325
 
 
18326
 
{ $as_echo "$as_me:$LINENO: checking for webjames" >&5
18327
 
$as_echo_n "checking for webjames... " >&6; }
18328
 
 
18329
 
if test "$PHP_WEBJAMES" != "no"; then
18330
 
  
18331
 
  if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
18332
 
    PHP_WEBJAMES=$PHP_WEBJAMES
18333
 
  else
18334
 
    
18335
 
    ep_dir="`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`"
18336
 
    
18337
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
18338
 
    PHP_WEBJAMES="$ep_realdir/`basename \"$PHP_WEBJAMES\"`"
18339
 
  fi
18340
 
 
18341
 
  INSTALL_IT="\
18342
 
    echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $PHP_WEBJAMES/build/php; \
18343
 
    echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $PHP_WEBJAMES/build/php; \
18344
 
    echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $PHP_WEBJAMES/build/php;"
18345
 
  
18346
 
  if test "$PHP_WEBJAMES" != "/usr/include"; then
18347
 
    
18348
 
  if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
18349
 
    ai_p=$PHP_WEBJAMES
18350
 
  else
18351
 
    
18352
 
    ep_dir="`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`"
18353
 
    
18354
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
18355
 
    ai_p="$ep_realdir/`basename \"$PHP_WEBJAMES\"`"
18356
 
  fi
18357
 
 
18358
 
    
18359
 
  
18360
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
18361
 
  
18362
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
18363
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
18364
 
    eval "INCLUDEPATH$unique=set"
18365
 
    
18366
 
      if test ""; then
18367
 
        INCLUDES="-I$ai_p $INCLUDES"
18368
 
      else
18369
 
        INCLUDES="$INCLUDES -I$ai_p"
18370
 
      fi
18371
 
    
18372
 
  fi
18373
 
 
18374
 
  fi
18375
 
 
18376
 
  
18377
 
  if test "$PHP_SAPI" != "default"; then
18378
 
{ { $as_echo "$as_me:$LINENO: error: 
18379
 
+--------------------------------------------------------------------+
18380
 
|                        *** ATTENTION ***                           |
18381
 
|                                                                    |
18382
 
| You've configured multiple SAPIs to be build. You can build only   |
18383
 
| one SAPI module and CLI binary at the same time.                   |
18384
 
+--------------------------------------------------------------------+
18385
 
" >&5
18386
 
$as_echo "$as_me: error: 
18387
 
+--------------------------------------------------------------------+
18388
 
|                        *** ATTENTION ***                           |
18389
 
|                                                                    |
18390
 
| You've configured multiple SAPIs to be build. You can build only   |
18391
 
| one SAPI module and CLI binary at the same time.                   |
18392
 
+--------------------------------------------------------------------+
18393
 
" >&2;}
18394
 
   { (exit 1); exit 1; }; }
18395
 
  fi
18396
 
 
18397
 
  PHP_SAPI=webjames
18398
 
  
18399
 
  case "static" in
18400
 
  static) 
18401
 
  
18402
 
  OVERALL_TARGET=php
18403
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18404
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18405
 
  php_c_post=
18406
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18407
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18408
 
  php_cxx_post=
18409
 
  php_lo=lo
18410
 
 
18411
 
  case $with_pic in
18412
 
    yes) pic_setting='-prefer-pic';;
18413
 
    no)  pic_setting='-prefer-non-pic';;
18414
 
  esac
18415
 
 
18416
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18417
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18418
 
  shared_c_post=
18419
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18420
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18421
 
  shared_cxx_post=
18422
 
  shared_lo=lo
18423
 
 
18424
 
  php_build_target=program
18425
 
 
18426
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
18427
 
  php_build_target=static
18428
 
;;
18429
 
  shared) 
18430
 
  
18431
 
  OVERALL_TARGET=php
18432
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18433
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18434
 
  php_c_post=
18435
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18436
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18437
 
  php_cxx_post=
18438
 
  php_lo=lo
18439
 
 
18440
 
  case $with_pic in
18441
 
    yes) pic_setting='-prefer-pic';;
18442
 
    no)  pic_setting='-prefer-non-pic';;
18443
 
  esac
18444
 
 
18445
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18446
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18447
 
  shared_c_post=
18448
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18449
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18450
 
  shared_cxx_post=
18451
 
  shared_lo=lo
18452
 
 
18453
 
  php_build_target=program
18454
 
 
18455
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
18456
 
  php_build_target=shared
18457
 
  
18458
 
  php_c_pre=$shared_c_pre
18459
 
  php_c_meta=$shared_c_meta
18460
 
  php_c_post=$shared_c_post
18461
 
  php_cxx_pre=$shared_cxx_pre
18462
 
  php_cxx_meta=$shared_cxx_meta
18463
 
  php_cxx_post=$shared_cxx_post
18464
 
  php_lo=$shared_lo
18465
 
;;
18466
 
  bundle) 
18467
 
  
18468
 
  OVERALL_TARGET=php
18469
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18470
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18471
 
  php_c_post=
18472
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18473
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18474
 
  php_cxx_post=
18475
 
  php_lo=lo
18476
 
 
18477
 
  case $with_pic in
18478
 
    yes) pic_setting='-prefer-pic';;
18479
 
    no)  pic_setting='-prefer-non-pic';;
18480
 
  esac
18481
 
 
18482
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18483
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18484
 
  shared_c_post=
18485
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18486
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18487
 
  shared_cxx_post=
18488
 
  shared_lo=lo
18489
 
 
18490
 
  php_build_target=program
18491
 
 
18492
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
18493
 
  php_build_target=static
18494
 
;;
18495
 
  program) 
18496
 
  OVERALL_TARGET=php
18497
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18498
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18499
 
  php_c_post=
18500
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18501
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18502
 
  php_cxx_post=
18503
 
  php_lo=lo
18504
 
 
18505
 
  case $with_pic in
18506
 
    yes) pic_setting='-prefer-pic';;
18507
 
    no)  pic_setting='-prefer-non-pic';;
18508
 
  esac
18509
 
 
18510
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18511
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18512
 
  shared_c_post=
18513
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18514
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18515
 
  shared_cxx_post=
18516
 
  shared_lo=lo
18517
 
 
18518
 
  php_build_target=program
18519
 
;;
18520
 
  esac
18521
 
    
18522
 
  
18523
 
  
18524
 
  case sapi/webjames in
18525
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
18526
 
  /*) ac_srcdir=`echo "sapi/webjames"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
18527
 
  *) ac_srcdir="$abs_srcdir/sapi/webjames/"; ac_bdir="sapi/webjames/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
18528
 
  esac
18529
 
  
18530
 
  
18531
 
 
18532
 
  b_c_pre=$php_c_pre
18533
 
  b_cxx_pre=$php_cxx_pre
18534
 
  b_c_meta=$php_c_meta
18535
 
  b_cxx_meta=$php_cxx_meta
18536
 
  b_c_post=$php_c_post
18537
 
  b_cxx_post=$php_cxx_post
18538
 
  b_lo=$php_lo
18539
 
 
18540
 
 
18541
 
  old_IFS=$IFS
18542
 
  for ac_src in webjames.c; do
18543
 
  
18544
 
      IFS=.
18545
 
      set $ac_src
18546
 
      ac_obj=$1
18547
 
      IFS=$old_IFS
18548
 
      
18549
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
18550
 
 
18551
 
      case $ac_src in
18552
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
18553
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
18554
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
18555
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
18556
 
      esac
18557
 
 
18558
 
    cat >>Makefile.objects<<EOF
18559
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
18560
 
        $ac_comp
18561
 
EOF
18562
 
  done
18563
 
 
18564
 
 
18565
 
 
18566
 
  { $as_echo "$as_me:$LINENO: result: yes, using $PHP_WEBJAMES" >&5
18567
 
$as_echo "yes, using $PHP_WEBJAMES" >&6; }
18568
 
else
18569
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
18570
 
$as_echo "no" >&6; }
18571
 
fi
18572
 
 
18573
 
 
18574
 
 
18575
 
php_enable_cgi=yes
18576
 
 
18577
 
 
18578
 
@%:@ Check whether --enable-cgi was given.
18579
 
if test "${enable_cgi+set}" = set; then
18580
 
  enableval=$enable_cgi; PHP_CGI=$enableval
18581
 
else
18582
 
  
18583
 
  PHP_CGI=yes
18584
 
  
18585
 
 
18586
 
fi
18587
 
 
18588
 
 
18589
 
ext_output=$PHP_CGI
18590
 
 
18591
 
 
18592
 
 
18593
 
 
18594
 
 
18595
 
if test "$PHP_SAPI" = "default"; then
18596
 
  { $as_echo "$as_me:$LINENO: checking whether to build CGI binary" >&5
18597
 
$as_echo_n "checking whether to build CGI binary... " >&6; }
18598
 
  if test "$PHP_CGI" != "no"; then
18599
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
18600
 
$as_echo "yes" >&6; }
18601
 
 
18602
 
    { $as_echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
18603
 
$as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
18604
 
    cat >conftest.$ac_ext <<_ACEOF
18605
 
/* confdefs.h.  */
18606
 
_ACEOF
18607
 
cat confdefs.h >>conftest.$ac_ext
18608
 
cat >>conftest.$ac_ext <<_ACEOF
18609
 
/* end confdefs.h.  */
18610
 
#include <sys/socket.h>
18611
 
 
18612
 
_ACEOF
18613
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18614
 
  $EGREP "socklen_t" >/dev/null 2>&1; then
18615
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
18616
 
$as_echo "yes" >&6; }
18617
 
       
18618
 
cat >>confdefs.h <<\_ACEOF
18619
 
@%:@define HAVE_SOCKLEN_T 1
18620
 
_ACEOF
18621
 
 
18622
 
else
18623
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
18624
 
$as_echo "no" >&6; }
18625
 
fi
18626
 
rm -f conftest*
18627
 
 
18628
 
 
18629
 
    { $as_echo "$as_me:$LINENO: checking for sun_len in sys/un.h" >&5
18630
 
$as_echo_n "checking for sun_len in sys/un.h... " >&6; }
18631
 
    cat >conftest.$ac_ext <<_ACEOF
18632
 
/* confdefs.h.  */
18633
 
_ACEOF
18634
 
cat confdefs.h >>conftest.$ac_ext
18635
 
cat >>conftest.$ac_ext <<_ACEOF
18636
 
/* end confdefs.h.  */
18637
 
#include <sys/un.h>
18638
 
 
18639
 
_ACEOF
18640
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18641
 
  $EGREP "sun_len" >/dev/null 2>&1; then
18642
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
18643
 
$as_echo "yes" >&6; }
18644
 
       
18645
 
cat >>confdefs.h <<\_ACEOF
18646
 
@%:@define HAVE_SOCKADDR_UN_SUN_LEN 1
18647
 
_ACEOF
18648
 
 
18649
 
else
18650
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
18651
 
$as_echo "no" >&6; }
18652
 
fi
18653
 
rm -f conftest*
18654
 
 
18655
 
 
18656
 
    { $as_echo "$as_me:$LINENO: checking whether cross-process locking is required by accept()" >&5
18657
 
$as_echo_n "checking whether cross-process locking is required by accept()... " >&6; }
18658
 
    case "`uname -sr`" in
18659
 
      IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)      
18660
 
        { $as_echo "$as_me:$LINENO: result: yes" >&5
18661
 
$as_echo "yes" >&6; }
18662
 
        
18663
 
cat >>confdefs.h <<\_ACEOF
18664
 
@%:@define USE_LOCKING 1
18665
 
_ACEOF
18666
 
 
18667
 
      ;;
18668
 
      *)
18669
 
        { $as_echo "$as_me:$LINENO: result: no" >&5
18670
 
$as_echo "no" >&6; }
18671
 
      ;;
18672
 
    esac
18673
 
 
18674
 
    
18675
 
  src=$abs_srcdir/sapi/cgi/Makefile.frag
18676
 
  ac_srcdir=$ext_srcdir
18677
 
  ac_builddir=$ext_builddir
18678
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
18679
 
 
18680
 
 
18681
 
        case $host_alias in
18682
 
      *cygwin* )
18683
 
        SAPI_CGI_PATH=sapi/cgi/php-cgi.exe
18684
 
        ;;
18685
 
      * )
18686
 
        SAPI_CGI_PATH=sapi/cgi/php-cgi
18687
 
        ;;
18688
 
    esac
18689
 
    
18690
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH"
18691
 
 
18692
 
 
18693
 
        INSTALL_IT="@echo \"Installing PHP CGI binary: \$(INSTALL_ROOT)\$(bindir)/\"; \$(INSTALL) -m 0755 \$(SAPI_CGI_PATH) \$(INSTALL_ROOT)\$(bindir)/\$(program_prefix)php-cgi\$(program_suffix)\$(EXEEXT)"
18694
 
    
18695
 
  if test "$PHP_SAPI" != "default"; then
18696
 
{ { $as_echo "$as_me:$LINENO: error: 
18697
 
+--------------------------------------------------------------------+
18698
 
|                        *** ATTENTION ***                           |
18699
 
|                                                                    |
18700
 
| You've configured multiple SAPIs to be build. You can build only   |
18701
 
| one SAPI module and CLI binary at the same time.                   |
18702
 
+--------------------------------------------------------------------+
18703
 
" >&5
18704
 
$as_echo "$as_me: error: 
18705
 
+--------------------------------------------------------------------+
18706
 
|                        *** ATTENTION ***                           |
18707
 
|                                                                    |
18708
 
| You've configured multiple SAPIs to be build. You can build only   |
18709
 
| one SAPI module and CLI binary at the same time.                   |
18710
 
+--------------------------------------------------------------------+
18711
 
" >&2;}
18712
 
   { (exit 1); exit 1; }; }
18713
 
  fi
18714
 
 
18715
 
  PHP_SAPI=cgi
18716
 
  
18717
 
  case "program" in
18718
 
  static) 
18719
 
  
18720
 
  OVERALL_TARGET=php
18721
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18722
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18723
 
  php_c_post=
18724
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18725
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18726
 
  php_cxx_post=
18727
 
  php_lo=lo
18728
 
 
18729
 
  case $with_pic in
18730
 
    yes) pic_setting='-prefer-pic';;
18731
 
    no)  pic_setting='-prefer-non-pic';;
18732
 
  esac
18733
 
 
18734
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18735
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18736
 
  shared_c_post=
18737
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18738
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18739
 
  shared_cxx_post=
18740
 
  shared_lo=lo
18741
 
 
18742
 
  php_build_target=program
18743
 
 
18744
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
18745
 
  php_build_target=static
18746
 
;;
18747
 
  shared) 
18748
 
  
18749
 
  OVERALL_TARGET=php
18750
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18751
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18752
 
  php_c_post=
18753
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18754
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18755
 
  php_cxx_post=
18756
 
  php_lo=lo
18757
 
 
18758
 
  case $with_pic in
18759
 
    yes) pic_setting='-prefer-pic';;
18760
 
    no)  pic_setting='-prefer-non-pic';;
18761
 
  esac
18762
 
 
18763
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18764
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18765
 
  shared_c_post=
18766
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18767
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18768
 
  shared_cxx_post=
18769
 
  shared_lo=lo
18770
 
 
18771
 
  php_build_target=program
18772
 
 
18773
 
  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
18774
 
  php_build_target=shared
18775
 
  
18776
 
  php_c_pre=$shared_c_pre
18777
 
  php_c_meta=$shared_c_meta
18778
 
  php_c_post=$shared_c_post
18779
 
  php_cxx_pre=$shared_cxx_pre
18780
 
  php_cxx_meta=$shared_cxx_meta
18781
 
  php_cxx_post=$shared_cxx_post
18782
 
  php_lo=$shared_lo
18783
 
;;
18784
 
  bundle) 
18785
 
  
18786
 
  OVERALL_TARGET=php
18787
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18788
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18789
 
  php_c_post=
18790
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18791
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18792
 
  php_cxx_post=
18793
 
  php_lo=lo
18794
 
 
18795
 
  case $with_pic in
18796
 
    yes) pic_setting='-prefer-pic';;
18797
 
    no)  pic_setting='-prefer-non-pic';;
18798
 
  esac
18799
 
 
18800
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18801
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18802
 
  shared_c_post=
18803
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18804
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18805
 
  shared_cxx_post=
18806
 
  shared_lo=lo
18807
 
 
18808
 
  php_build_target=program
18809
 
 
18810
 
  OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
18811
 
  php_build_target=static
18812
 
;;
18813
 
  program) 
18814
 
  OVERALL_TARGET='$(SAPI_CGI_PATH)'
18815
 
  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18816
 
  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
18817
 
  php_c_post=
18818
 
  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18819
 
  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
18820
 
  php_cxx_post=
18821
 
  php_lo=lo
18822
 
 
18823
 
  case $with_pic in
18824
 
    yes) pic_setting='-prefer-pic';;
18825
 
    no)  pic_setting='-prefer-non-pic';;
18826
 
  esac
18827
 
 
18828
 
  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
18829
 
  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
18830
 
  shared_c_post=
18831
 
  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
18832
 
  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
18833
 
  shared_cxx_post=
18834
 
  shared_lo=lo
18835
 
 
18836
 
  php_build_target=program
18837
 
;;
18838
 
  esac
18839
 
    
18840
 
  
18841
 
  
18842
 
  case sapi/cgi in
18843
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
18844
 
  /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
18845
 
  *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
18846
 
  esac
18847
 
  
18848
 
  
18849
 
 
18850
 
  b_c_pre=$php_c_pre
18851
 
  b_cxx_pre=$php_cxx_pre
18852
 
  b_c_meta=$php_c_meta
18853
 
  b_cxx_meta=$php_cxx_meta
18854
 
  b_c_post=$php_c_post
18855
 
  b_cxx_post=$php_cxx_post
18856
 
  b_lo=$php_lo
18857
 
 
18858
 
 
18859
 
  old_IFS=$IFS
18860
 
  for ac_src in cgi_main.c fastcgi.c; do
18861
 
  
18862
 
      IFS=.
18863
 
      set $ac_src
18864
 
      ac_obj=$1
18865
 
      IFS=$old_IFS
18866
 
      
18867
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
18868
 
 
18869
 
      case $ac_src in
18870
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
18871
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
18872
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
18873
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
18874
 
      esac
18875
 
 
18876
 
    cat >>Makefile.objects<<EOF
18877
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
18878
 
        $ac_comp
18879
 
EOF
18880
 
  done
18881
 
 
18882
 
 
18883
 
 
18884
 
 
18885
 
    case $host_alias in
18886
 
      *aix*)
18887
 
        BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
18888
 
        ;;
18889
 
      *darwin*)
18890
 
        BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_SAPI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
18891
 
      ;;
18892
 
      *)
18893
 
        BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
18894
 
      ;;
18895
 
    esac
18896
 
 
18897
 
    
18898
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI"
18899
 
 
18900
 
 
18901
 
  elif test "$PHP_CLI" != "no"; then
18902
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
18903
 
$as_echo "no" >&6; }
18904
 
    OVERALL_TARGET=
18905
 
    PHP_SAPI=cli   
18906
 
  else
18907
 
    { { $as_echo "$as_me:$LINENO: error: No SAPIs selected." >&5
18908
 
$as_echo "$as_me: error: No SAPIs selected." >&2;}
18909
 
   { (exit 1); exit 1; }; }  
18910
 
  fi
18911
 
fi
18912
 
 
18913
 
 
18914
 
 
18915
 
{ $as_echo "$as_me:$LINENO: checking for chosen SAPI module" >&5
18916
 
$as_echo_n "checking for chosen SAPI module... " >&6; }
18917
 
{ $as_echo "$as_me:$LINENO: result: $PHP_SAPI" >&5
18918
 
$as_echo "$PHP_SAPI" >&6; }
18919
 
 
18920
 
if test "$enable_maintainer_zts" = "yes"; then
18921
 
  
18922
 
if test -n "$ac_cv_pthreads_lib"; then
18923
 
  LIBS="$LIBS -l$ac_cv_pthreads_lib"
18924
 
fi
18925
 
 
18926
 
if test -n "$ac_cv_pthreads_cflags"; then
18927
 
  CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
18928
 
fi
18929
 
 
18930
 
  
18931
 
  if test -z "$host_alias" && test -n "$host"; then
18932
 
    host_alias=$host
18933
 
  fi
18934
 
  if test -z "$host_alias"; then
18935
 
    { { $as_echo "$as_me:$LINENO: error: host_alias is not set. Make sure to run config.guess" >&5
18936
 
$as_echo "$as_me: error: host_alias is not set. Make sure to run config.guess" >&2;}
18937
 
   { (exit 1); exit 1; }; }
18938
 
  fi
18939
 
  case $host_alias in
18940
 
  *solaris*)
18941
 
    PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";;
18942
 
  *freebsd*)
18943
 
    PTHREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE";;
18944
 
  *linux*)
18945
 
    PTHREAD_FLAGS=-D_REENTRANT;;
18946
 
  *aix*)
18947
 
    PTHREAD_FLAGS=-D_THREAD_SAFE;;
18948
 
  *irix*)
18949
 
    PTHREAD_FLAGS=-D_POSIX_THREAD_SAFE_FUNCTIONS;;
18950
 
  *hpux*)
18951
 
    PTHREAD_FLAGS=-D_REENTRANT;;
18952
 
  *sco*)
18953
 
    PTHREAD_FLAGS=-D_REENTRANT;;
18954
 
  esac
18955
 
 
18956
 
  if test -n "$PTHREAD_FLAGS"; then
18957
 
    CPPFLAGS="$CPPFLAGS $PTHREAD_FLAGS"
18958
 
  fi
18959
 
 
18960
 
fi
18961
 
 
18962
 
 
18963
 
  { $as_echo "$as_me:$LINENO: result: " >&5
18964
 
$as_echo "" >&6; }
18965
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Running system checks${T_ME}" >&5
18966
 
$as_echo "${T_MD}Running system checks${T_ME}" >&6; }
18967
 
 
18968
 
 
18969
 
 
18970
 
  PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
18971
 
  # Extract the first word of "sendmail", so it can be a program name with args.
18972
 
set dummy sendmail; ac_word=$2
18973
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18974
 
$as_echo_n "checking for $ac_word... " >&6; }
18975
 
if test "${ac_cv_path_PROG_SENDMAIL+set}" = set; then
18976
 
  $as_echo_n "(cached) " >&6
18977
 
else
18978
 
  case $PROG_SENDMAIL in
18979
 
  [\\/]* | ?:[\\/]*)
18980
 
  ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path.
18981
 
  ;;
18982
 
  *)
18983
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18984
 
as_dummy="$PATH:$PHP_ALT_PATH"
18985
 
for as_dir in $as_dummy
18986
 
do
18987
 
  IFS=$as_save_IFS
18988
 
  test -z "$as_dir" && as_dir=.
18989
 
  for ac_exec_ext in '' $ac_executable_extensions; do
18990
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18991
 
    ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
18992
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18993
 
    break 2
18994
 
  fi
18995
 
done
18996
 
done
18997
 
IFS=$as_save_IFS
18998
 
 
18999
 
  ;;
19000
 
esac
19001
 
fi
19002
 
PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL
19003
 
if test -n "$PROG_SENDMAIL"; then
19004
 
  { $as_echo "$as_me:$LINENO: result: $PROG_SENDMAIL" >&5
19005
 
$as_echo "$PROG_SENDMAIL" >&6; }
19006
 
else
19007
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
19008
 
$as_echo "no" >&6; }
19009
 
fi
19010
 
 
19011
 
 
19012
 
  
19013
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL"
19014
 
 
19015
 
 
19016
 
 
19017
 
 
19018
 
  { $as_echo "$as_me:$LINENO: checking whether system uses EBCDIC" >&5
19019
 
$as_echo_n "checking whether system uses EBCDIC... " >&6; }
19020
 
if test "${ac_cv_ebcdic+set}" = set; then
19021
 
  $as_echo_n "(cached) " >&6
19022
 
else
19023
 
  
19024
 
  if test "$cross_compiling" = yes; then
19025
 
  
19026
 
  ac_cv_ebcdic=no
19027
 
 
19028
 
else
19029
 
  cat >conftest.$ac_ext <<_ACEOF
19030
 
/* confdefs.h.  */
19031
 
_ACEOF
19032
 
cat confdefs.h >>conftest.$ac_ext
19033
 
cat >>conftest.$ac_ext <<_ACEOF
19034
 
/* end confdefs.h.  */
19035
 
 
19036
 
int main(void) { 
19037
 
  return (unsigned char)'A' != (unsigned char)0xC1; 
19038
 
19039
 
 
19040
 
_ACEOF
19041
 
rm -f conftest$ac_exeext
19042
 
if { (ac_try="$ac_link"
19043
 
case "(($ac_try" in
19044
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045
 
  *) ac_try_echo=$ac_try;;
19046
 
esac
19047
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19048
 
$as_echo "$ac_try_echo") >&5
19049
 
  (eval "$ac_link") 2>&5
19050
 
  ac_status=$?
19051
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19053
 
  { (case "(($ac_try" in
19054
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055
 
  *) ac_try_echo=$ac_try;;
19056
 
esac
19057
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19058
 
$as_echo "$ac_try_echo") >&5
19059
 
  (eval "$ac_try") 2>&5
19060
 
  ac_status=$?
19061
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062
 
  (exit $ac_status); }; }; then
19063
 
  
19064
 
  ac_cv_ebcdic=yes
19065
 
 
19066
 
else
19067
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
19068
 
$as_echo "$as_me: failed program was:" >&5
19069
 
sed 's/^/| /' conftest.$ac_ext >&5
19070
 
 
19071
 
( exit $ac_status )
19072
 
 
19073
 
  ac_cv_ebcdic=no
19074
 
 
19075
 
fi
19076
 
rm -rf conftest.dSYM
19077
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19078
 
fi
19079
 
 
19080
 
 
19081
 
fi
19082
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_ebcdic" >&5
19083
 
$as_echo "$ac_cv_ebcdic" >&6; }
19084
 
  if test "$ac_cv_ebcdic" = "yes"; then
19085
 
    
19086
 
cat >>confdefs.h <<\_ACEOF
19087
 
@%:@define CHARSET_EBCDIC 1
19088
 
_ACEOF
19089
 
 
19090
 
  fi
19091
 
 
19092
 
 
19093
 
{ $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19094
 
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19095
 
if test "${ac_cv_c_bigendian_php+set}" = set; then
19096
 
  $as_echo_n "(cached) " >&6
19097
 
else
19098
 
  
19099
 
  ac_cv_c_bigendian_php=unknown
19100
 
  if test "$cross_compiling" = yes; then
19101
 
  ac_cv_c_bigendian_php=unknown
19102
 
else
19103
 
  cat >conftest.$ac_ext <<_ACEOF
19104
 
/* confdefs.h.  */
19105
 
_ACEOF
19106
 
cat confdefs.h >>conftest.$ac_ext
19107
 
cat >>conftest.$ac_ext <<_ACEOF
19108
 
/* end confdefs.h.  */
19109
 
 
19110
 
int main(void)
19111
 
{
19112
 
  short one = 1;
19113
 
  char *cp = (char *)&one;
19114
 
 
19115
 
  if (*cp == 0) {
19116
 
    return(0);
19117
 
  } else {
19118
 
    return(1);
19119
 
  }
19120
 
}
19121
 
  
19122
 
_ACEOF
19123
 
rm -f conftest$ac_exeext
19124
 
if { (ac_try="$ac_link"
19125
 
case "(($ac_try" in
19126
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127
 
  *) ac_try_echo=$ac_try;;
19128
 
esac
19129
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19130
 
$as_echo "$ac_try_echo") >&5
19131
 
  (eval "$ac_link") 2>&5
19132
 
  ac_status=$?
19133
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19135
 
  { (case "(($ac_try" in
19136
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137
 
  *) ac_try_echo=$ac_try;;
19138
 
esac
19139
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19140
 
$as_echo "$ac_try_echo") >&5
19141
 
  (eval "$ac_try") 2>&5
19142
 
  ac_status=$?
19143
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144
 
  (exit $ac_status); }; }; then
19145
 
  ac_cv_c_bigendian_php=yes
19146
 
else
19147
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
19148
 
$as_echo "$as_me: failed program was:" >&5
19149
 
sed 's/^/| /' conftest.$ac_ext >&5
19150
 
 
19151
 
( exit $ac_status )
19152
 
ac_cv_c_bigendian_php=no
19153
 
fi
19154
 
rm -rf conftest.dSYM
19155
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19156
 
fi
19157
 
 
19158
 
 
19159
 
 
19160
 
fi
19161
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian_php" >&5
19162
 
$as_echo "$ac_cv_c_bigendian_php" >&6; }
19163
 
 if test $ac_cv_c_bigendian_php = yes; then
19164
 
   
19165
 
cat >>confdefs.h <<\_ACEOF
19166
 
@%:@define WORDS_BIGENDIAN /**/
19167
 
_ACEOF
19168
 
 
19169
 
 fi
19170
 
 
19171
 
 
19172
 
 
19173
 
  { $as_echo "$as_me:$LINENO: checking whether writing to stdout works" >&5
19174
 
$as_echo_n "checking whether writing to stdout works... " >&6; }
19175
 
if test "${ac_cv_write_stdout+set}" = set; then
19176
 
  $as_echo_n "(cached) " >&6
19177
 
else
19178
 
  
19179
 
    if test "$cross_compiling" = yes; then
19180
 
  
19181
 
      ac_cv_write_stdout=no
19182
 
    
19183
 
else
19184
 
  cat >conftest.$ac_ext <<_ACEOF
19185
 
/* confdefs.h.  */
19186
 
_ACEOF
19187
 
cat confdefs.h >>conftest.$ac_ext
19188
 
cat >>conftest.$ac_ext <<_ACEOF
19189
 
/* end confdefs.h.  */
19190
 
 
19191
 
#ifdef HAVE_UNISTD_H
19192
 
#include <unistd.h>
19193
 
#endif
19194
 
 
19195
 
#define TEXT "This is the test message -- "
19196
 
 
19197
 
main()
19198
 
{
19199
 
  int n;
19200
 
 
19201
 
  n = write(1, TEXT, sizeof(TEXT)-1);
19202
 
  return (!(n == sizeof(TEXT)-1));
19203
 
}
19204
 
    
19205
 
_ACEOF
19206
 
rm -f conftest$ac_exeext
19207
 
if { (ac_try="$ac_link"
19208
 
case "(($ac_try" in
19209
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210
 
  *) ac_try_echo=$ac_try;;
19211
 
esac
19212
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19213
 
$as_echo "$ac_try_echo") >&5
19214
 
  (eval "$ac_link") 2>&5
19215
 
  ac_status=$?
19216
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19218
 
  { (case "(($ac_try" in
19219
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220
 
  *) ac_try_echo=$ac_try;;
19221
 
esac
19222
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19223
 
$as_echo "$ac_try_echo") >&5
19224
 
  (eval "$ac_try") 2>&5
19225
 
  ac_status=$?
19226
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227
 
  (exit $ac_status); }; }; then
19228
 
  
19229
 
      ac_cv_write_stdout=yes
19230
 
    
19231
 
else
19232
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
19233
 
$as_echo "$as_me: failed program was:" >&5
19234
 
sed 's/^/| /' conftest.$ac_ext >&5
19235
 
 
19236
 
( exit $ac_status )
19237
 
 
19238
 
      ac_cv_write_stdout=no
19239
 
    
19240
 
fi
19241
 
rm -rf conftest.dSYM
19242
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19243
 
fi
19244
 
 
19245
 
 
19246
 
  
19247
 
fi
19248
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_write_stdout" >&5
19249
 
$as_echo "$ac_cv_write_stdout" >&6; }
19250
 
  if test "$ac_cv_write_stdout" = "yes"; then
19251
 
    
19252
 
cat >>confdefs.h <<\_ACEOF
19253
 
@%:@define PHP_WRITE_STDOUT 1
19254
 
_ACEOF
19255
 
 
19256
 
  fi
19257
 
 
19258
 
 
19259
 
if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
19260
 
   CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
19261
 
   LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
19262
 
fi
19263
 
test -d /usr/ucblib && 
19264
 
  if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then
19265
 
    
19266
 
  if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then
19267
 
    ai_p=/usr/ucblib
19268
 
  else
19269
 
    
19270
 
    ep_dir="`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'`"
19271
 
    
19272
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
19273
 
    ai_p="$ep_realdir/`basename \"/usr/ucblib\"`"
19274
 
  fi
19275
 
 
19276
 
    
19277
 
      
19278
 
  
19279
 
  
19280
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
19281
 
  
19282
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
19283
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
19284
 
    eval "LIBPATH$unique=set"
19285
 
    
19286
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
19287
 
    LDFLAGS="$LDFLAGS -L$ai_p"
19288
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
19289
 
  
19290
 
  fi
19291
 
 
19292
 
 
19293
 
    
19294
 
  fi
19295
 
 
19296
 
 
19297
 
 
19298
 
 
19299
 
 
19300
 
 
19301
 
  unset ac_cv_func_socket
19302
 
  unset ac_cv_func___socket
19303
 
  unset found
19304
 
  
19305
 
  { $as_echo "$as_me:$LINENO: checking for socket" >&5
19306
 
$as_echo_n "checking for socket... " >&6; }
19307
 
if test "${ac_cv_func_socket+set}" = set; then
19308
 
  $as_echo_n "(cached) " >&6
19309
 
else
19310
 
  cat >conftest.$ac_ext <<_ACEOF
19311
 
/* confdefs.h.  */
19312
 
_ACEOF
19313
 
cat confdefs.h >>conftest.$ac_ext
19314
 
cat >>conftest.$ac_ext <<_ACEOF
19315
 
/* end confdefs.h.  */
19316
 
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
19317
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19318
 
#define socket innocuous_socket
19319
 
 
19320
 
/* System header to define __stub macros and hopefully few prototypes,
19321
 
    which can conflict with char socket (); below.
19322
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19323
 
    <limits.h> exists even on freestanding compilers.  */
19324
 
 
19325
 
#ifdef __STDC__
19326
 
# include <limits.h>
19327
 
#else
19328
 
# include <assert.h>
19329
 
#endif
19330
 
 
19331
 
#undef socket
19332
 
 
19333
 
/* Override any GCC internal prototype to avoid an error.
19334
 
   Use char because int might match the return type of a GCC
19335
 
   builtin and then its argument prototype would still apply.  */
19336
 
#ifdef __cplusplus
19337
 
extern "C"
19338
 
#endif
19339
 
char socket ();
19340
 
/* The GNU C library defines this for functions which it implements
19341
 
    to always fail with ENOSYS.  Some functions are actually named
19342
 
    something starting with __ and the normal name is an alias.  */
19343
 
#if defined __stub_socket || defined __stub___socket
19344
 
choke me
19345
 
#endif
19346
 
 
19347
 
int
19348
 
main ()
19349
 
{
19350
 
return socket ();
19351
 
  ;
19352
 
  return 0;
19353
 
}
19354
 
_ACEOF
19355
 
rm -f conftest.$ac_objext conftest$ac_exeext
19356
 
if { (ac_try="$ac_link"
19357
 
case "(($ac_try" in
19358
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359
 
  *) ac_try_echo=$ac_try;;
19360
 
esac
19361
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19362
 
$as_echo "$ac_try_echo") >&5
19363
 
  (eval "$ac_link") 2>conftest.er1
19364
 
  ac_status=$?
19365
 
  grep -v '^ *+' conftest.er1 >conftest.err
19366
 
  rm -f conftest.er1
19367
 
  cat conftest.err >&5
19368
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369
 
  (exit $ac_status); } && {
19370
 
         test -z "$ac_c_werror_flag" ||
19371
 
         test ! -s conftest.err
19372
 
       } && test -s conftest$ac_exeext && {
19373
 
         test "$cross_compiling" = yes ||
19374
 
         $as_test_x conftest$ac_exeext
19375
 
       }; then
19376
 
  ac_cv_func_socket=yes
19377
 
else
19378
 
  $as_echo "$as_me: failed program was:" >&5
19379
 
sed 's/^/| /' conftest.$ac_ext >&5
19380
 
 
19381
 
        ac_cv_func_socket=no
19382
 
fi
19383
 
 
19384
 
rm -rf conftest.dSYM
19385
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19386
 
      conftest$ac_exeext conftest.$ac_ext
19387
 
fi
19388
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19389
 
$as_echo "$ac_cv_func_socket" >&6; }
19390
 
if test "x$ac_cv_func_socket" = x""yes; then
19391
 
  found=yes
19392
 
else
19393
 
   { $as_echo "$as_me:$LINENO: checking for __socket" >&5
19394
 
$as_echo_n "checking for __socket... " >&6; }
19395
 
if test "${ac_cv_func___socket+set}" = set; then
19396
 
  $as_echo_n "(cached) " >&6
19397
 
else
19398
 
  cat >conftest.$ac_ext <<_ACEOF
19399
 
/* confdefs.h.  */
19400
 
_ACEOF
19401
 
cat confdefs.h >>conftest.$ac_ext
19402
 
cat >>conftest.$ac_ext <<_ACEOF
19403
 
/* end confdefs.h.  */
19404
 
/* Define __socket to an innocuous variant, in case <limits.h> declares __socket.
19405
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19406
 
#define __socket innocuous___socket
19407
 
 
19408
 
/* System header to define __stub macros and hopefully few prototypes,
19409
 
    which can conflict with char __socket (); below.
19410
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19411
 
    <limits.h> exists even on freestanding compilers.  */
19412
 
 
19413
 
#ifdef __STDC__
19414
 
# include <limits.h>
19415
 
#else
19416
 
# include <assert.h>
19417
 
#endif
19418
 
 
19419
 
#undef __socket
19420
 
 
19421
 
/* Override any GCC internal prototype to avoid an error.
19422
 
   Use char because int might match the return type of a GCC
19423
 
   builtin and then its argument prototype would still apply.  */
19424
 
#ifdef __cplusplus
19425
 
extern "C"
19426
 
#endif
19427
 
char __socket ();
19428
 
/* The GNU C library defines this for functions which it implements
19429
 
    to always fail with ENOSYS.  Some functions are actually named
19430
 
    something starting with __ and the normal name is an alias.  */
19431
 
#if defined __stub___socket || defined __stub_____socket
19432
 
choke me
19433
 
#endif
19434
 
 
19435
 
int
19436
 
main ()
19437
 
{
19438
 
return __socket ();
19439
 
  ;
19440
 
  return 0;
19441
 
}
19442
 
_ACEOF
19443
 
rm -f conftest.$ac_objext conftest$ac_exeext
19444
 
if { (ac_try="$ac_link"
19445
 
case "(($ac_try" in
19446
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447
 
  *) ac_try_echo=$ac_try;;
19448
 
esac
19449
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19450
 
$as_echo "$ac_try_echo") >&5
19451
 
  (eval "$ac_link") 2>conftest.er1
19452
 
  ac_status=$?
19453
 
  grep -v '^ *+' conftest.er1 >conftest.err
19454
 
  rm -f conftest.er1
19455
 
  cat conftest.err >&5
19456
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457
 
  (exit $ac_status); } && {
19458
 
         test -z "$ac_c_werror_flag" ||
19459
 
         test ! -s conftest.err
19460
 
       } && test -s conftest$ac_exeext && {
19461
 
         test "$cross_compiling" = yes ||
19462
 
         $as_test_x conftest$ac_exeext
19463
 
       }; then
19464
 
  ac_cv_func___socket=yes
19465
 
else
19466
 
  $as_echo "$as_me: failed program was:" >&5
19467
 
sed 's/^/| /' conftest.$ac_ext >&5
19468
 
 
19469
 
        ac_cv_func___socket=no
19470
 
fi
19471
 
 
19472
 
rm -rf conftest.dSYM
19473
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474
 
      conftest$ac_exeext conftest.$ac_ext
19475
 
fi
19476
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___socket" >&5
19477
 
$as_echo "$ac_cv_func___socket" >&6; }
19478
 
if test "x$ac_cv_func___socket" = x""yes; then
19479
 
  found=yes
19480
 
else
19481
 
  found=no
19482
 
fi
19483
 
 
19484
 
fi
19485
 
 
19486
 
 
19487
 
  case $found in
19488
 
  yes) 
19489
 
    
19490
 
cat >>confdefs.h <<\_ACEOF
19491
 
@%:@define HAVE_SOCKET 1
19492
 
_ACEOF
19493
 
 
19494
 
    ac_cv_func_socket=yes
19495
 
  ;;
19496
 
  
19497
 
    *) 
19498
 
  
19499
 
  unset ac_cv_lib_socket_socket
19500
 
  unset ac_cv_lib_socket___socket
19501
 
  unset found
19502
 
  { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19503
 
$as_echo_n "checking for socket in -lsocket... " >&6; }
19504
 
if test "${ac_cv_lib_socket_socket+set}" = set; then
19505
 
  $as_echo_n "(cached) " >&6
19506
 
else
19507
 
  ac_check_lib_save_LIBS=$LIBS
19508
 
LIBS="-lsocket  $LIBS"
19509
 
cat >conftest.$ac_ext <<_ACEOF
19510
 
/* confdefs.h.  */
19511
 
_ACEOF
19512
 
cat confdefs.h >>conftest.$ac_ext
19513
 
cat >>conftest.$ac_ext <<_ACEOF
19514
 
/* end confdefs.h.  */
19515
 
 
19516
 
/* Override any GCC internal prototype to avoid an error.
19517
 
   Use char because int might match the return type of a GCC
19518
 
   builtin and then its argument prototype would still apply.  */
19519
 
#ifdef __cplusplus
19520
 
extern "C"
19521
 
#endif
19522
 
char socket ();
19523
 
int
19524
 
main ()
19525
 
{
19526
 
return socket ();
19527
 
  ;
19528
 
  return 0;
19529
 
}
19530
 
_ACEOF
19531
 
rm -f conftest.$ac_objext conftest$ac_exeext
19532
 
if { (ac_try="$ac_link"
19533
 
case "(($ac_try" in
19534
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535
 
  *) ac_try_echo=$ac_try;;
19536
 
esac
19537
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19538
 
$as_echo "$ac_try_echo") >&5
19539
 
  (eval "$ac_link") 2>conftest.er1
19540
 
  ac_status=$?
19541
 
  grep -v '^ *+' conftest.er1 >conftest.err
19542
 
  rm -f conftest.er1
19543
 
  cat conftest.err >&5
19544
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545
 
  (exit $ac_status); } && {
19546
 
         test -z "$ac_c_werror_flag" ||
19547
 
         test ! -s conftest.err
19548
 
       } && test -s conftest$ac_exeext && {
19549
 
         test "$cross_compiling" = yes ||
19550
 
         $as_test_x conftest$ac_exeext
19551
 
       }; then
19552
 
  ac_cv_lib_socket_socket=yes
19553
 
else
19554
 
  $as_echo "$as_me: failed program was:" >&5
19555
 
sed 's/^/| /' conftest.$ac_ext >&5
19556
 
 
19557
 
        ac_cv_lib_socket_socket=no
19558
 
fi
19559
 
 
19560
 
rm -rf conftest.dSYM
19561
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19562
 
      conftest$ac_exeext conftest.$ac_ext
19563
 
LIBS=$ac_check_lib_save_LIBS
19564
 
fi
19565
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19566
 
$as_echo "$ac_cv_lib_socket_socket" >&6; }
19567
 
if test "x$ac_cv_lib_socket_socket" = x""yes; then
19568
 
  found=yes
19569
 
else
19570
 
  
19571
 
    { $as_echo "$as_me:$LINENO: checking for __socket in -lsocket" >&5
19572
 
$as_echo_n "checking for __socket in -lsocket... " >&6; }
19573
 
if test "${ac_cv_lib_socket___socket+set}" = set; then
19574
 
  $as_echo_n "(cached) " >&6
19575
 
else
19576
 
  ac_check_lib_save_LIBS=$LIBS
19577
 
LIBS="-lsocket  $LIBS"
19578
 
cat >conftest.$ac_ext <<_ACEOF
19579
 
/* confdefs.h.  */
19580
 
_ACEOF
19581
 
cat confdefs.h >>conftest.$ac_ext
19582
 
cat >>conftest.$ac_ext <<_ACEOF
19583
 
/* end confdefs.h.  */
19584
 
 
19585
 
/* Override any GCC internal prototype to avoid an error.
19586
 
   Use char because int might match the return type of a GCC
19587
 
   builtin and then its argument prototype would still apply.  */
19588
 
#ifdef __cplusplus
19589
 
extern "C"
19590
 
#endif
19591
 
char __socket ();
19592
 
int
19593
 
main ()
19594
 
{
19595
 
return __socket ();
19596
 
  ;
19597
 
  return 0;
19598
 
}
19599
 
_ACEOF
19600
 
rm -f conftest.$ac_objext conftest$ac_exeext
19601
 
if { (ac_try="$ac_link"
19602
 
case "(($ac_try" in
19603
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604
 
  *) ac_try_echo=$ac_try;;
19605
 
esac
19606
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19607
 
$as_echo "$ac_try_echo") >&5
19608
 
  (eval "$ac_link") 2>conftest.er1
19609
 
  ac_status=$?
19610
 
  grep -v '^ *+' conftest.er1 >conftest.err
19611
 
  rm -f conftest.er1
19612
 
  cat conftest.err >&5
19613
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614
 
  (exit $ac_status); } && {
19615
 
         test -z "$ac_c_werror_flag" ||
19616
 
         test ! -s conftest.err
19617
 
       } && test -s conftest$ac_exeext && {
19618
 
         test "$cross_compiling" = yes ||
19619
 
         $as_test_x conftest$ac_exeext
19620
 
       }; then
19621
 
  ac_cv_lib_socket___socket=yes
19622
 
else
19623
 
  $as_echo "$as_me: failed program was:" >&5
19624
 
sed 's/^/| /' conftest.$ac_ext >&5
19625
 
 
19626
 
        ac_cv_lib_socket___socket=no
19627
 
fi
19628
 
 
19629
 
rm -rf conftest.dSYM
19630
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19631
 
      conftest$ac_exeext conftest.$ac_ext
19632
 
LIBS=$ac_check_lib_save_LIBS
19633
 
fi
19634
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket___socket" >&5
19635
 
$as_echo "$ac_cv_lib_socket___socket" >&6; }
19636
 
if test "x$ac_cv_lib_socket___socket" = x""yes; then
19637
 
  found=yes
19638
 
else
19639
 
  found=no
19640
 
fi
19641
 
 
19642
 
  
19643
 
fi
19644
 
 
19645
 
 
19646
 
  if test "$found" = "yes"; then
19647
 
    ac_libs=$LIBS
19648
 
    LIBS="$LIBS -lsocket"
19649
 
    if test "$cross_compiling" = yes; then
19650
 
  found=no
19651
 
else
19652
 
  cat >conftest.$ac_ext <<_ACEOF
19653
 
/* confdefs.h.  */
19654
 
_ACEOF
19655
 
cat confdefs.h >>conftest.$ac_ext
19656
 
cat >>conftest.$ac_ext <<_ACEOF
19657
 
/* end confdefs.h.  */
19658
 
main() { return (0); }
19659
 
_ACEOF
19660
 
rm -f conftest$ac_exeext
19661
 
if { (ac_try="$ac_link"
19662
 
case "(($ac_try" in
19663
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664
 
  *) ac_try_echo=$ac_try;;
19665
 
esac
19666
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19667
 
$as_echo "$ac_try_echo") >&5
19668
 
  (eval "$ac_link") 2>&5
19669
 
  ac_status=$?
19670
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19672
 
  { (case "(($ac_try" in
19673
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674
 
  *) ac_try_echo=$ac_try;;
19675
 
esac
19676
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19677
 
$as_echo "$ac_try_echo") >&5
19678
 
  (eval "$ac_try") 2>&5
19679
 
  ac_status=$?
19680
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681
 
  (exit $ac_status); }; }; then
19682
 
  found=yes
19683
 
else
19684
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
19685
 
$as_echo "$as_me: failed program was:" >&5
19686
 
sed 's/^/| /' conftest.$ac_ext >&5
19687
 
 
19688
 
( exit $ac_status )
19689
 
found=no
19690
 
fi
19691
 
rm -rf conftest.dSYM
19692
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19693
 
fi
19694
 
 
19695
 
 
19696
 
    LIBS=$ac_libs
19697
 
  fi
19698
 
 
19699
 
  if test "$found" = "yes"; then
19700
 
    
19701
 
  
19702
 
  case socket in
19703
 
  c|c_r|pthread*) ;;
19704
 
  *) 
19705
 
      LIBS="-lsocket $LIBS" 
19706
 
   ;;
19707
 
  esac
19708
 
 
19709
 
 
19710
 
    
19711
 
cat >>confdefs.h <<\_ACEOF
19712
 
@%:@define HAVE_SOCKET 1
19713
 
_ACEOF
19714
 
 
19715
 
    
19716
 
cat >>confdefs.h <<\_ACEOF
19717
 
@%:@define HAVE_LIBSOCKET 1
19718
 
_ACEOF
19719
 
 
19720
 
    ac_cv_func_socket=yes
19721
 
  else
19722
 
    
19723
 
  :
19724
 
 
19725
 
  fi
19726
 
  
19727
 
 ;;
19728
 
  
19729
 
  esac
19730
 
 
19731
 
 
19732
 
  unset ac_cv_func_socketpair
19733
 
  unset ac_cv_func___socketpair
19734
 
  unset found
19735
 
  
19736
 
  { $as_echo "$as_me:$LINENO: checking for socketpair" >&5
19737
 
$as_echo_n "checking for socketpair... " >&6; }
19738
 
if test "${ac_cv_func_socketpair+set}" = set; then
19739
 
  $as_echo_n "(cached) " >&6
19740
 
else
19741
 
  cat >conftest.$ac_ext <<_ACEOF
19742
 
/* confdefs.h.  */
19743
 
_ACEOF
19744
 
cat confdefs.h >>conftest.$ac_ext
19745
 
cat >>conftest.$ac_ext <<_ACEOF
19746
 
/* end confdefs.h.  */
19747
 
/* Define socketpair to an innocuous variant, in case <limits.h> declares socketpair.
19748
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19749
 
#define socketpair innocuous_socketpair
19750
 
 
19751
 
/* System header to define __stub macros and hopefully few prototypes,
19752
 
    which can conflict with char socketpair (); below.
19753
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19754
 
    <limits.h> exists even on freestanding compilers.  */
19755
 
 
19756
 
#ifdef __STDC__
19757
 
# include <limits.h>
19758
 
#else
19759
 
# include <assert.h>
19760
 
#endif
19761
 
 
19762
 
#undef socketpair
19763
 
 
19764
 
/* Override any GCC internal prototype to avoid an error.
19765
 
   Use char because int might match the return type of a GCC
19766
 
   builtin and then its argument prototype would still apply.  */
19767
 
#ifdef __cplusplus
19768
 
extern "C"
19769
 
#endif
19770
 
char socketpair ();
19771
 
/* The GNU C library defines this for functions which it implements
19772
 
    to always fail with ENOSYS.  Some functions are actually named
19773
 
    something starting with __ and the normal name is an alias.  */
19774
 
#if defined __stub_socketpair || defined __stub___socketpair
19775
 
choke me
19776
 
#endif
19777
 
 
19778
 
int
19779
 
main ()
19780
 
{
19781
 
return socketpair ();
19782
 
  ;
19783
 
  return 0;
19784
 
}
19785
 
_ACEOF
19786
 
rm -f conftest.$ac_objext conftest$ac_exeext
19787
 
if { (ac_try="$ac_link"
19788
 
case "(($ac_try" in
19789
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790
 
  *) ac_try_echo=$ac_try;;
19791
 
esac
19792
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19793
 
$as_echo "$ac_try_echo") >&5
19794
 
  (eval "$ac_link") 2>conftest.er1
19795
 
  ac_status=$?
19796
 
  grep -v '^ *+' conftest.er1 >conftest.err
19797
 
  rm -f conftest.er1
19798
 
  cat conftest.err >&5
19799
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800
 
  (exit $ac_status); } && {
19801
 
         test -z "$ac_c_werror_flag" ||
19802
 
         test ! -s conftest.err
19803
 
       } && test -s conftest$ac_exeext && {
19804
 
         test "$cross_compiling" = yes ||
19805
 
         $as_test_x conftest$ac_exeext
19806
 
       }; then
19807
 
  ac_cv_func_socketpair=yes
19808
 
else
19809
 
  $as_echo "$as_me: failed program was:" >&5
19810
 
sed 's/^/| /' conftest.$ac_ext >&5
19811
 
 
19812
 
        ac_cv_func_socketpair=no
19813
 
fi
19814
 
 
19815
 
rm -rf conftest.dSYM
19816
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19817
 
      conftest$ac_exeext conftest.$ac_ext
19818
 
fi
19819
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_socketpair" >&5
19820
 
$as_echo "$ac_cv_func_socketpair" >&6; }
19821
 
if test "x$ac_cv_func_socketpair" = x""yes; then
19822
 
  found=yes
19823
 
else
19824
 
   { $as_echo "$as_me:$LINENO: checking for __socketpair" >&5
19825
 
$as_echo_n "checking for __socketpair... " >&6; }
19826
 
if test "${ac_cv_func___socketpair+set}" = set; then
19827
 
  $as_echo_n "(cached) " >&6
19828
 
else
19829
 
  cat >conftest.$ac_ext <<_ACEOF
19830
 
/* confdefs.h.  */
19831
 
_ACEOF
19832
 
cat confdefs.h >>conftest.$ac_ext
19833
 
cat >>conftest.$ac_ext <<_ACEOF
19834
 
/* end confdefs.h.  */
19835
 
/* Define __socketpair to an innocuous variant, in case <limits.h> declares __socketpair.
19836
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19837
 
#define __socketpair innocuous___socketpair
19838
 
 
19839
 
/* System header to define __stub macros and hopefully few prototypes,
19840
 
    which can conflict with char __socketpair (); below.
19841
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19842
 
    <limits.h> exists even on freestanding compilers.  */
19843
 
 
19844
 
#ifdef __STDC__
19845
 
# include <limits.h>
19846
 
#else
19847
 
# include <assert.h>
19848
 
#endif
19849
 
 
19850
 
#undef __socketpair
19851
 
 
19852
 
/* Override any GCC internal prototype to avoid an error.
19853
 
   Use char because int might match the return type of a GCC
19854
 
   builtin and then its argument prototype would still apply.  */
19855
 
#ifdef __cplusplus
19856
 
extern "C"
19857
 
#endif
19858
 
char __socketpair ();
19859
 
/* The GNU C library defines this for functions which it implements
19860
 
    to always fail with ENOSYS.  Some functions are actually named
19861
 
    something starting with __ and the normal name is an alias.  */
19862
 
#if defined __stub___socketpair || defined __stub_____socketpair
19863
 
choke me
19864
 
#endif
19865
 
 
19866
 
int
19867
 
main ()
19868
 
{
19869
 
return __socketpair ();
19870
 
  ;
19871
 
  return 0;
19872
 
}
19873
 
_ACEOF
19874
 
rm -f conftest.$ac_objext conftest$ac_exeext
19875
 
if { (ac_try="$ac_link"
19876
 
case "(($ac_try" in
19877
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878
 
  *) ac_try_echo=$ac_try;;
19879
 
esac
19880
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19881
 
$as_echo "$ac_try_echo") >&5
19882
 
  (eval "$ac_link") 2>conftest.er1
19883
 
  ac_status=$?
19884
 
  grep -v '^ *+' conftest.er1 >conftest.err
19885
 
  rm -f conftest.er1
19886
 
  cat conftest.err >&5
19887
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888
 
  (exit $ac_status); } && {
19889
 
         test -z "$ac_c_werror_flag" ||
19890
 
         test ! -s conftest.err
19891
 
       } && test -s conftest$ac_exeext && {
19892
 
         test "$cross_compiling" = yes ||
19893
 
         $as_test_x conftest$ac_exeext
19894
 
       }; then
19895
 
  ac_cv_func___socketpair=yes
19896
 
else
19897
 
  $as_echo "$as_me: failed program was:" >&5
19898
 
sed 's/^/| /' conftest.$ac_ext >&5
19899
 
 
19900
 
        ac_cv_func___socketpair=no
19901
 
fi
19902
 
 
19903
 
rm -rf conftest.dSYM
19904
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19905
 
      conftest$ac_exeext conftest.$ac_ext
19906
 
fi
19907
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___socketpair" >&5
19908
 
$as_echo "$ac_cv_func___socketpair" >&6; }
19909
 
if test "x$ac_cv_func___socketpair" = x""yes; then
19910
 
  found=yes
19911
 
else
19912
 
  found=no
19913
 
fi
19914
 
 
19915
 
fi
19916
 
 
19917
 
 
19918
 
  case $found in
19919
 
  yes) 
19920
 
    
19921
 
cat >>confdefs.h <<\_ACEOF
19922
 
@%:@define HAVE_SOCKETPAIR 1
19923
 
_ACEOF
19924
 
 
19925
 
    ac_cv_func_socketpair=yes
19926
 
  ;;
19927
 
  
19928
 
    *) 
19929
 
  
19930
 
  unset ac_cv_lib_socket_socketpair
19931
 
  unset ac_cv_lib_socket___socketpair
19932
 
  unset found
19933
 
  { $as_echo "$as_me:$LINENO: checking for socketpair in -lsocket" >&5
19934
 
$as_echo_n "checking for socketpair in -lsocket... " >&6; }
19935
 
if test "${ac_cv_lib_socket_socketpair+set}" = set; then
19936
 
  $as_echo_n "(cached) " >&6
19937
 
else
19938
 
  ac_check_lib_save_LIBS=$LIBS
19939
 
LIBS="-lsocket  $LIBS"
19940
 
cat >conftest.$ac_ext <<_ACEOF
19941
 
/* confdefs.h.  */
19942
 
_ACEOF
19943
 
cat confdefs.h >>conftest.$ac_ext
19944
 
cat >>conftest.$ac_ext <<_ACEOF
19945
 
/* end confdefs.h.  */
19946
 
 
19947
 
/* Override any GCC internal prototype to avoid an error.
19948
 
   Use char because int might match the return type of a GCC
19949
 
   builtin and then its argument prototype would still apply.  */
19950
 
#ifdef __cplusplus
19951
 
extern "C"
19952
 
#endif
19953
 
char socketpair ();
19954
 
int
19955
 
main ()
19956
 
{
19957
 
return socketpair ();
19958
 
  ;
19959
 
  return 0;
19960
 
}
19961
 
_ACEOF
19962
 
rm -f conftest.$ac_objext conftest$ac_exeext
19963
 
if { (ac_try="$ac_link"
19964
 
case "(($ac_try" in
19965
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966
 
  *) ac_try_echo=$ac_try;;
19967
 
esac
19968
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19969
 
$as_echo "$ac_try_echo") >&5
19970
 
  (eval "$ac_link") 2>conftest.er1
19971
 
  ac_status=$?
19972
 
  grep -v '^ *+' conftest.er1 >conftest.err
19973
 
  rm -f conftest.er1
19974
 
  cat conftest.err >&5
19975
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976
 
  (exit $ac_status); } && {
19977
 
         test -z "$ac_c_werror_flag" ||
19978
 
         test ! -s conftest.err
19979
 
       } && test -s conftest$ac_exeext && {
19980
 
         test "$cross_compiling" = yes ||
19981
 
         $as_test_x conftest$ac_exeext
19982
 
       }; then
19983
 
  ac_cv_lib_socket_socketpair=yes
19984
 
else
19985
 
  $as_echo "$as_me: failed program was:" >&5
19986
 
sed 's/^/| /' conftest.$ac_ext >&5
19987
 
 
19988
 
        ac_cv_lib_socket_socketpair=no
19989
 
fi
19990
 
 
19991
 
rm -rf conftest.dSYM
19992
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19993
 
      conftest$ac_exeext conftest.$ac_ext
19994
 
LIBS=$ac_check_lib_save_LIBS
19995
 
fi
19996
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socketpair" >&5
19997
 
$as_echo "$ac_cv_lib_socket_socketpair" >&6; }
19998
 
if test "x$ac_cv_lib_socket_socketpair" = x""yes; then
19999
 
  found=yes
20000
 
else
20001
 
  
20002
 
    { $as_echo "$as_me:$LINENO: checking for __socketpair in -lsocket" >&5
20003
 
$as_echo_n "checking for __socketpair in -lsocket... " >&6; }
20004
 
if test "${ac_cv_lib_socket___socketpair+set}" = set; then
20005
 
  $as_echo_n "(cached) " >&6
20006
 
else
20007
 
  ac_check_lib_save_LIBS=$LIBS
20008
 
LIBS="-lsocket  $LIBS"
20009
 
cat >conftest.$ac_ext <<_ACEOF
20010
 
/* confdefs.h.  */
20011
 
_ACEOF
20012
 
cat confdefs.h >>conftest.$ac_ext
20013
 
cat >>conftest.$ac_ext <<_ACEOF
20014
 
/* end confdefs.h.  */
20015
 
 
20016
 
/* Override any GCC internal prototype to avoid an error.
20017
 
   Use char because int might match the return type of a GCC
20018
 
   builtin and then its argument prototype would still apply.  */
20019
 
#ifdef __cplusplus
20020
 
extern "C"
20021
 
#endif
20022
 
char __socketpair ();
20023
 
int
20024
 
main ()
20025
 
{
20026
 
return __socketpair ();
20027
 
  ;
20028
 
  return 0;
20029
 
}
20030
 
_ACEOF
20031
 
rm -f conftest.$ac_objext conftest$ac_exeext
20032
 
if { (ac_try="$ac_link"
20033
 
case "(($ac_try" in
20034
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035
 
  *) ac_try_echo=$ac_try;;
20036
 
esac
20037
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20038
 
$as_echo "$ac_try_echo") >&5
20039
 
  (eval "$ac_link") 2>conftest.er1
20040
 
  ac_status=$?
20041
 
  grep -v '^ *+' conftest.er1 >conftest.err
20042
 
  rm -f conftest.er1
20043
 
  cat conftest.err >&5
20044
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045
 
  (exit $ac_status); } && {
20046
 
         test -z "$ac_c_werror_flag" ||
20047
 
         test ! -s conftest.err
20048
 
       } && test -s conftest$ac_exeext && {
20049
 
         test "$cross_compiling" = yes ||
20050
 
         $as_test_x conftest$ac_exeext
20051
 
       }; then
20052
 
  ac_cv_lib_socket___socketpair=yes
20053
 
else
20054
 
  $as_echo "$as_me: failed program was:" >&5
20055
 
sed 's/^/| /' conftest.$ac_ext >&5
20056
 
 
20057
 
        ac_cv_lib_socket___socketpair=no
20058
 
fi
20059
 
 
20060
 
rm -rf conftest.dSYM
20061
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20062
 
      conftest$ac_exeext conftest.$ac_ext
20063
 
LIBS=$ac_check_lib_save_LIBS
20064
 
fi
20065
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket___socketpair" >&5
20066
 
$as_echo "$ac_cv_lib_socket___socketpair" >&6; }
20067
 
if test "x$ac_cv_lib_socket___socketpair" = x""yes; then
20068
 
  found=yes
20069
 
else
20070
 
  found=no
20071
 
fi
20072
 
 
20073
 
  
20074
 
fi
20075
 
 
20076
 
 
20077
 
  if test "$found" = "yes"; then
20078
 
    ac_libs=$LIBS
20079
 
    LIBS="$LIBS -lsocket"
20080
 
    if test "$cross_compiling" = yes; then
20081
 
  found=no
20082
 
else
20083
 
  cat >conftest.$ac_ext <<_ACEOF
20084
 
/* confdefs.h.  */
20085
 
_ACEOF
20086
 
cat confdefs.h >>conftest.$ac_ext
20087
 
cat >>conftest.$ac_ext <<_ACEOF
20088
 
/* end confdefs.h.  */
20089
 
main() { return (0); }
20090
 
_ACEOF
20091
 
rm -f conftest$ac_exeext
20092
 
if { (ac_try="$ac_link"
20093
 
case "(($ac_try" in
20094
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095
 
  *) ac_try_echo=$ac_try;;
20096
 
esac
20097
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20098
 
$as_echo "$ac_try_echo") >&5
20099
 
  (eval "$ac_link") 2>&5
20100
 
  ac_status=$?
20101
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20103
 
  { (case "(($ac_try" in
20104
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105
 
  *) ac_try_echo=$ac_try;;
20106
 
esac
20107
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20108
 
$as_echo "$ac_try_echo") >&5
20109
 
  (eval "$ac_try") 2>&5
20110
 
  ac_status=$?
20111
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112
 
  (exit $ac_status); }; }; then
20113
 
  found=yes
20114
 
else
20115
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
20116
 
$as_echo "$as_me: failed program was:" >&5
20117
 
sed 's/^/| /' conftest.$ac_ext >&5
20118
 
 
20119
 
( exit $ac_status )
20120
 
found=no
20121
 
fi
20122
 
rm -rf conftest.dSYM
20123
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20124
 
fi
20125
 
 
20126
 
 
20127
 
    LIBS=$ac_libs
20128
 
  fi
20129
 
 
20130
 
  if test "$found" = "yes"; then
20131
 
    
20132
 
  
20133
 
  case socket in
20134
 
  c|c_r|pthread*) ;;
20135
 
  *) 
20136
 
      LIBS="-lsocket $LIBS" 
20137
 
   ;;
20138
 
  esac
20139
 
 
20140
 
 
20141
 
    
20142
 
cat >>confdefs.h <<\_ACEOF
20143
 
@%:@define HAVE_SOCKETPAIR 1
20144
 
_ACEOF
20145
 
 
20146
 
    
20147
 
cat >>confdefs.h <<\_ACEOF
20148
 
@%:@define HAVE_LIBSOCKET 1
20149
 
_ACEOF
20150
 
 
20151
 
    ac_cv_func_socketpair=yes
20152
 
  else
20153
 
    
20154
 
  :
20155
 
 
20156
 
  fi
20157
 
  
20158
 
 ;;
20159
 
  
20160
 
  esac
20161
 
 
20162
 
 
20163
 
  unset ac_cv_func_htonl
20164
 
  unset ac_cv_func___htonl
20165
 
  unset found
20166
 
  
20167
 
  { $as_echo "$as_me:$LINENO: checking for htonl" >&5
20168
 
$as_echo_n "checking for htonl... " >&6; }
20169
 
if test "${ac_cv_func_htonl+set}" = set; then
20170
 
  $as_echo_n "(cached) " >&6
20171
 
else
20172
 
  cat >conftest.$ac_ext <<_ACEOF
20173
 
/* confdefs.h.  */
20174
 
_ACEOF
20175
 
cat confdefs.h >>conftest.$ac_ext
20176
 
cat >>conftest.$ac_ext <<_ACEOF
20177
 
/* end confdefs.h.  */
20178
 
/* Define htonl to an innocuous variant, in case <limits.h> declares htonl.
20179
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20180
 
#define htonl innocuous_htonl
20181
 
 
20182
 
/* System header to define __stub macros and hopefully few prototypes,
20183
 
    which can conflict with char htonl (); below.
20184
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20185
 
    <limits.h> exists even on freestanding compilers.  */
20186
 
 
20187
 
#ifdef __STDC__
20188
 
# include <limits.h>
20189
 
#else
20190
 
# include <assert.h>
20191
 
#endif
20192
 
 
20193
 
#undef htonl
20194
 
 
20195
 
/* Override any GCC internal prototype to avoid an error.
20196
 
   Use char because int might match the return type of a GCC
20197
 
   builtin and then its argument prototype would still apply.  */
20198
 
#ifdef __cplusplus
20199
 
extern "C"
20200
 
#endif
20201
 
char htonl ();
20202
 
/* The GNU C library defines this for functions which it implements
20203
 
    to always fail with ENOSYS.  Some functions are actually named
20204
 
    something starting with __ and the normal name is an alias.  */
20205
 
#if defined __stub_htonl || defined __stub___htonl
20206
 
choke me
20207
 
#endif
20208
 
 
20209
 
int
20210
 
main ()
20211
 
{
20212
 
return htonl ();
20213
 
  ;
20214
 
  return 0;
20215
 
}
20216
 
_ACEOF
20217
 
rm -f conftest.$ac_objext conftest$ac_exeext
20218
 
if { (ac_try="$ac_link"
20219
 
case "(($ac_try" in
20220
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221
 
  *) ac_try_echo=$ac_try;;
20222
 
esac
20223
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20224
 
$as_echo "$ac_try_echo") >&5
20225
 
  (eval "$ac_link") 2>conftest.er1
20226
 
  ac_status=$?
20227
 
  grep -v '^ *+' conftest.er1 >conftest.err
20228
 
  rm -f conftest.er1
20229
 
  cat conftest.err >&5
20230
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231
 
  (exit $ac_status); } && {
20232
 
         test -z "$ac_c_werror_flag" ||
20233
 
         test ! -s conftest.err
20234
 
       } && test -s conftest$ac_exeext && {
20235
 
         test "$cross_compiling" = yes ||
20236
 
         $as_test_x conftest$ac_exeext
20237
 
       }; then
20238
 
  ac_cv_func_htonl=yes
20239
 
else
20240
 
  $as_echo "$as_me: failed program was:" >&5
20241
 
sed 's/^/| /' conftest.$ac_ext >&5
20242
 
 
20243
 
        ac_cv_func_htonl=no
20244
 
fi
20245
 
 
20246
 
rm -rf conftest.dSYM
20247
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20248
 
      conftest$ac_exeext conftest.$ac_ext
20249
 
fi
20250
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_htonl" >&5
20251
 
$as_echo "$ac_cv_func_htonl" >&6; }
20252
 
if test "x$ac_cv_func_htonl" = x""yes; then
20253
 
  found=yes
20254
 
else
20255
 
   { $as_echo "$as_me:$LINENO: checking for __htonl" >&5
20256
 
$as_echo_n "checking for __htonl... " >&6; }
20257
 
if test "${ac_cv_func___htonl+set}" = set; then
20258
 
  $as_echo_n "(cached) " >&6
20259
 
else
20260
 
  cat >conftest.$ac_ext <<_ACEOF
20261
 
/* confdefs.h.  */
20262
 
_ACEOF
20263
 
cat confdefs.h >>conftest.$ac_ext
20264
 
cat >>conftest.$ac_ext <<_ACEOF
20265
 
/* end confdefs.h.  */
20266
 
/* Define __htonl to an innocuous variant, in case <limits.h> declares __htonl.
20267
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20268
 
#define __htonl innocuous___htonl
20269
 
 
20270
 
/* System header to define __stub macros and hopefully few prototypes,
20271
 
    which can conflict with char __htonl (); below.
20272
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20273
 
    <limits.h> exists even on freestanding compilers.  */
20274
 
 
20275
 
#ifdef __STDC__
20276
 
# include <limits.h>
20277
 
#else
20278
 
# include <assert.h>
20279
 
#endif
20280
 
 
20281
 
#undef __htonl
20282
 
 
20283
 
/* Override any GCC internal prototype to avoid an error.
20284
 
   Use char because int might match the return type of a GCC
20285
 
   builtin and then its argument prototype would still apply.  */
20286
 
#ifdef __cplusplus
20287
 
extern "C"
20288
 
#endif
20289
 
char __htonl ();
20290
 
/* The GNU C library defines this for functions which it implements
20291
 
    to always fail with ENOSYS.  Some functions are actually named
20292
 
    something starting with __ and the normal name is an alias.  */
20293
 
#if defined __stub___htonl || defined __stub_____htonl
20294
 
choke me
20295
 
#endif
20296
 
 
20297
 
int
20298
 
main ()
20299
 
{
20300
 
return __htonl ();
20301
 
  ;
20302
 
  return 0;
20303
 
}
20304
 
_ACEOF
20305
 
rm -f conftest.$ac_objext conftest$ac_exeext
20306
 
if { (ac_try="$ac_link"
20307
 
case "(($ac_try" in
20308
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309
 
  *) ac_try_echo=$ac_try;;
20310
 
esac
20311
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20312
 
$as_echo "$ac_try_echo") >&5
20313
 
  (eval "$ac_link") 2>conftest.er1
20314
 
  ac_status=$?
20315
 
  grep -v '^ *+' conftest.er1 >conftest.err
20316
 
  rm -f conftest.er1
20317
 
  cat conftest.err >&5
20318
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319
 
  (exit $ac_status); } && {
20320
 
         test -z "$ac_c_werror_flag" ||
20321
 
         test ! -s conftest.err
20322
 
       } && test -s conftest$ac_exeext && {
20323
 
         test "$cross_compiling" = yes ||
20324
 
         $as_test_x conftest$ac_exeext
20325
 
       }; then
20326
 
  ac_cv_func___htonl=yes
20327
 
else
20328
 
  $as_echo "$as_me: failed program was:" >&5
20329
 
sed 's/^/| /' conftest.$ac_ext >&5
20330
 
 
20331
 
        ac_cv_func___htonl=no
20332
 
fi
20333
 
 
20334
 
rm -rf conftest.dSYM
20335
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20336
 
      conftest$ac_exeext conftest.$ac_ext
20337
 
fi
20338
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___htonl" >&5
20339
 
$as_echo "$ac_cv_func___htonl" >&6; }
20340
 
if test "x$ac_cv_func___htonl" = x""yes; then
20341
 
  found=yes
20342
 
else
20343
 
  found=no
20344
 
fi
20345
 
 
20346
 
fi
20347
 
 
20348
 
 
20349
 
  case $found in
20350
 
  yes) 
20351
 
    
20352
 
cat >>confdefs.h <<\_ACEOF
20353
 
@%:@define HAVE_HTONL 1
20354
 
_ACEOF
20355
 
 
20356
 
    ac_cv_func_htonl=yes
20357
 
  ;;
20358
 
  
20359
 
    *) 
20360
 
  
20361
 
  unset ac_cv_lib_socket_htonl
20362
 
  unset ac_cv_lib_socket___htonl
20363
 
  unset found
20364
 
  { $as_echo "$as_me:$LINENO: checking for htonl in -lsocket" >&5
20365
 
$as_echo_n "checking for htonl in -lsocket... " >&6; }
20366
 
if test "${ac_cv_lib_socket_htonl+set}" = set; then
20367
 
  $as_echo_n "(cached) " >&6
20368
 
else
20369
 
  ac_check_lib_save_LIBS=$LIBS
20370
 
LIBS="-lsocket  $LIBS"
20371
 
cat >conftest.$ac_ext <<_ACEOF
20372
 
/* confdefs.h.  */
20373
 
_ACEOF
20374
 
cat confdefs.h >>conftest.$ac_ext
20375
 
cat >>conftest.$ac_ext <<_ACEOF
20376
 
/* end confdefs.h.  */
20377
 
 
20378
 
/* Override any GCC internal prototype to avoid an error.
20379
 
   Use char because int might match the return type of a GCC
20380
 
   builtin and then its argument prototype would still apply.  */
20381
 
#ifdef __cplusplus
20382
 
extern "C"
20383
 
#endif
20384
 
char htonl ();
20385
 
int
20386
 
main ()
20387
 
{
20388
 
return htonl ();
20389
 
  ;
20390
 
  return 0;
20391
 
}
20392
 
_ACEOF
20393
 
rm -f conftest.$ac_objext conftest$ac_exeext
20394
 
if { (ac_try="$ac_link"
20395
 
case "(($ac_try" in
20396
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397
 
  *) ac_try_echo=$ac_try;;
20398
 
esac
20399
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20400
 
$as_echo "$ac_try_echo") >&5
20401
 
  (eval "$ac_link") 2>conftest.er1
20402
 
  ac_status=$?
20403
 
  grep -v '^ *+' conftest.er1 >conftest.err
20404
 
  rm -f conftest.er1
20405
 
  cat conftest.err >&5
20406
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407
 
  (exit $ac_status); } && {
20408
 
         test -z "$ac_c_werror_flag" ||
20409
 
         test ! -s conftest.err
20410
 
       } && test -s conftest$ac_exeext && {
20411
 
         test "$cross_compiling" = yes ||
20412
 
         $as_test_x conftest$ac_exeext
20413
 
       }; then
20414
 
  ac_cv_lib_socket_htonl=yes
20415
 
else
20416
 
  $as_echo "$as_me: failed program was:" >&5
20417
 
sed 's/^/| /' conftest.$ac_ext >&5
20418
 
 
20419
 
        ac_cv_lib_socket_htonl=no
20420
 
fi
20421
 
 
20422
 
rm -rf conftest.dSYM
20423
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20424
 
      conftest$ac_exeext conftest.$ac_ext
20425
 
LIBS=$ac_check_lib_save_LIBS
20426
 
fi
20427
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_htonl" >&5
20428
 
$as_echo "$ac_cv_lib_socket_htonl" >&6; }
20429
 
if test "x$ac_cv_lib_socket_htonl" = x""yes; then
20430
 
  found=yes
20431
 
else
20432
 
  
20433
 
    { $as_echo "$as_me:$LINENO: checking for __htonl in -lsocket" >&5
20434
 
$as_echo_n "checking for __htonl in -lsocket... " >&6; }
20435
 
if test "${ac_cv_lib_socket___htonl+set}" = set; then
20436
 
  $as_echo_n "(cached) " >&6
20437
 
else
20438
 
  ac_check_lib_save_LIBS=$LIBS
20439
 
LIBS="-lsocket  $LIBS"
20440
 
cat >conftest.$ac_ext <<_ACEOF
20441
 
/* confdefs.h.  */
20442
 
_ACEOF
20443
 
cat confdefs.h >>conftest.$ac_ext
20444
 
cat >>conftest.$ac_ext <<_ACEOF
20445
 
/* end confdefs.h.  */
20446
 
 
20447
 
/* Override any GCC internal prototype to avoid an error.
20448
 
   Use char because int might match the return type of a GCC
20449
 
   builtin and then its argument prototype would still apply.  */
20450
 
#ifdef __cplusplus
20451
 
extern "C"
20452
 
#endif
20453
 
char __htonl ();
20454
 
int
20455
 
main ()
20456
 
{
20457
 
return __htonl ();
20458
 
  ;
20459
 
  return 0;
20460
 
}
20461
 
_ACEOF
20462
 
rm -f conftest.$ac_objext conftest$ac_exeext
20463
 
if { (ac_try="$ac_link"
20464
 
case "(($ac_try" in
20465
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466
 
  *) ac_try_echo=$ac_try;;
20467
 
esac
20468
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20469
 
$as_echo "$ac_try_echo") >&5
20470
 
  (eval "$ac_link") 2>conftest.er1
20471
 
  ac_status=$?
20472
 
  grep -v '^ *+' conftest.er1 >conftest.err
20473
 
  rm -f conftest.er1
20474
 
  cat conftest.err >&5
20475
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476
 
  (exit $ac_status); } && {
20477
 
         test -z "$ac_c_werror_flag" ||
20478
 
         test ! -s conftest.err
20479
 
       } && test -s conftest$ac_exeext && {
20480
 
         test "$cross_compiling" = yes ||
20481
 
         $as_test_x conftest$ac_exeext
20482
 
       }; then
20483
 
  ac_cv_lib_socket___htonl=yes
20484
 
else
20485
 
  $as_echo "$as_me: failed program was:" >&5
20486
 
sed 's/^/| /' conftest.$ac_ext >&5
20487
 
 
20488
 
        ac_cv_lib_socket___htonl=no
20489
 
fi
20490
 
 
20491
 
rm -rf conftest.dSYM
20492
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20493
 
      conftest$ac_exeext conftest.$ac_ext
20494
 
LIBS=$ac_check_lib_save_LIBS
20495
 
fi
20496
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket___htonl" >&5
20497
 
$as_echo "$ac_cv_lib_socket___htonl" >&6; }
20498
 
if test "x$ac_cv_lib_socket___htonl" = x""yes; then
20499
 
  found=yes
20500
 
else
20501
 
  found=no
20502
 
fi
20503
 
 
20504
 
  
20505
 
fi
20506
 
 
20507
 
 
20508
 
  if test "$found" = "yes"; then
20509
 
    ac_libs=$LIBS
20510
 
    LIBS="$LIBS -lsocket"
20511
 
    if test "$cross_compiling" = yes; then
20512
 
  found=no
20513
 
else
20514
 
  cat >conftest.$ac_ext <<_ACEOF
20515
 
/* confdefs.h.  */
20516
 
_ACEOF
20517
 
cat confdefs.h >>conftest.$ac_ext
20518
 
cat >>conftest.$ac_ext <<_ACEOF
20519
 
/* end confdefs.h.  */
20520
 
main() { return (0); }
20521
 
_ACEOF
20522
 
rm -f conftest$ac_exeext
20523
 
if { (ac_try="$ac_link"
20524
 
case "(($ac_try" in
20525
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526
 
  *) ac_try_echo=$ac_try;;
20527
 
esac
20528
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20529
 
$as_echo "$ac_try_echo") >&5
20530
 
  (eval "$ac_link") 2>&5
20531
 
  ac_status=$?
20532
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20534
 
  { (case "(($ac_try" in
20535
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536
 
  *) ac_try_echo=$ac_try;;
20537
 
esac
20538
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20539
 
$as_echo "$ac_try_echo") >&5
20540
 
  (eval "$ac_try") 2>&5
20541
 
  ac_status=$?
20542
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543
 
  (exit $ac_status); }; }; then
20544
 
  found=yes
20545
 
else
20546
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
20547
 
$as_echo "$as_me: failed program was:" >&5
20548
 
sed 's/^/| /' conftest.$ac_ext >&5
20549
 
 
20550
 
( exit $ac_status )
20551
 
found=no
20552
 
fi
20553
 
rm -rf conftest.dSYM
20554
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20555
 
fi
20556
 
 
20557
 
 
20558
 
    LIBS=$ac_libs
20559
 
  fi
20560
 
 
20561
 
  if test "$found" = "yes"; then
20562
 
    
20563
 
  
20564
 
  case socket in
20565
 
  c|c_r|pthread*) ;;
20566
 
  *) 
20567
 
      LIBS="-lsocket $LIBS" 
20568
 
   ;;
20569
 
  esac
20570
 
 
20571
 
 
20572
 
    
20573
 
cat >>confdefs.h <<\_ACEOF
20574
 
@%:@define HAVE_HTONL 1
20575
 
_ACEOF
20576
 
 
20577
 
    
20578
 
cat >>confdefs.h <<\_ACEOF
20579
 
@%:@define HAVE_LIBSOCKET 1
20580
 
_ACEOF
20581
 
 
20582
 
    ac_cv_func_htonl=yes
20583
 
  else
20584
 
    
20585
 
  :
20586
 
 
20587
 
  fi
20588
 
  
20589
 
 ;;
20590
 
  
20591
 
  esac
20592
 
 
20593
 
 
20594
 
  unset ac_cv_func_gethostname
20595
 
  unset ac_cv_func___gethostname
20596
 
  unset found
20597
 
  
20598
 
  { $as_echo "$as_me:$LINENO: checking for gethostname" >&5
20599
 
$as_echo_n "checking for gethostname... " >&6; }
20600
 
if test "${ac_cv_func_gethostname+set}" = set; then
20601
 
  $as_echo_n "(cached) " >&6
20602
 
else
20603
 
  cat >conftest.$ac_ext <<_ACEOF
20604
 
/* confdefs.h.  */
20605
 
_ACEOF
20606
 
cat confdefs.h >>conftest.$ac_ext
20607
 
cat >>conftest.$ac_ext <<_ACEOF
20608
 
/* end confdefs.h.  */
20609
 
/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
20610
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20611
 
#define gethostname innocuous_gethostname
20612
 
 
20613
 
/* System header to define __stub macros and hopefully few prototypes,
20614
 
    which can conflict with char gethostname (); below.
20615
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20616
 
    <limits.h> exists even on freestanding compilers.  */
20617
 
 
20618
 
#ifdef __STDC__
20619
 
# include <limits.h>
20620
 
#else
20621
 
# include <assert.h>
20622
 
#endif
20623
 
 
20624
 
#undef gethostname
20625
 
 
20626
 
/* Override any GCC internal prototype to avoid an error.
20627
 
   Use char because int might match the return type of a GCC
20628
 
   builtin and then its argument prototype would still apply.  */
20629
 
#ifdef __cplusplus
20630
 
extern "C"
20631
 
#endif
20632
 
char gethostname ();
20633
 
/* The GNU C library defines this for functions which it implements
20634
 
    to always fail with ENOSYS.  Some functions are actually named
20635
 
    something starting with __ and the normal name is an alias.  */
20636
 
#if defined __stub_gethostname || defined __stub___gethostname
20637
 
choke me
20638
 
#endif
20639
 
 
20640
 
int
20641
 
main ()
20642
 
{
20643
 
return gethostname ();
20644
 
  ;
20645
 
  return 0;
20646
 
}
20647
 
_ACEOF
20648
 
rm -f conftest.$ac_objext conftest$ac_exeext
20649
 
if { (ac_try="$ac_link"
20650
 
case "(($ac_try" in
20651
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652
 
  *) ac_try_echo=$ac_try;;
20653
 
esac
20654
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20655
 
$as_echo "$ac_try_echo") >&5
20656
 
  (eval "$ac_link") 2>conftest.er1
20657
 
  ac_status=$?
20658
 
  grep -v '^ *+' conftest.er1 >conftest.err
20659
 
  rm -f conftest.er1
20660
 
  cat conftest.err >&5
20661
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662
 
  (exit $ac_status); } && {
20663
 
         test -z "$ac_c_werror_flag" ||
20664
 
         test ! -s conftest.err
20665
 
       } && test -s conftest$ac_exeext && {
20666
 
         test "$cross_compiling" = yes ||
20667
 
         $as_test_x conftest$ac_exeext
20668
 
       }; then
20669
 
  ac_cv_func_gethostname=yes
20670
 
else
20671
 
  $as_echo "$as_me: failed program was:" >&5
20672
 
sed 's/^/| /' conftest.$ac_ext >&5
20673
 
 
20674
 
        ac_cv_func_gethostname=no
20675
 
fi
20676
 
 
20677
 
rm -rf conftest.dSYM
20678
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20679
 
      conftest$ac_exeext conftest.$ac_ext
20680
 
fi
20681
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
20682
 
$as_echo "$ac_cv_func_gethostname" >&6; }
20683
 
if test "x$ac_cv_func_gethostname" = x""yes; then
20684
 
  found=yes
20685
 
else
20686
 
   { $as_echo "$as_me:$LINENO: checking for __gethostname" >&5
20687
 
$as_echo_n "checking for __gethostname... " >&6; }
20688
 
if test "${ac_cv_func___gethostname+set}" = set; then
20689
 
  $as_echo_n "(cached) " >&6
20690
 
else
20691
 
  cat >conftest.$ac_ext <<_ACEOF
20692
 
/* confdefs.h.  */
20693
 
_ACEOF
20694
 
cat confdefs.h >>conftest.$ac_ext
20695
 
cat >>conftest.$ac_ext <<_ACEOF
20696
 
/* end confdefs.h.  */
20697
 
/* Define __gethostname to an innocuous variant, in case <limits.h> declares __gethostname.
20698
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20699
 
#define __gethostname innocuous___gethostname
20700
 
 
20701
 
/* System header to define __stub macros and hopefully few prototypes,
20702
 
    which can conflict with char __gethostname (); below.
20703
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20704
 
    <limits.h> exists even on freestanding compilers.  */
20705
 
 
20706
 
#ifdef __STDC__
20707
 
# include <limits.h>
20708
 
#else
20709
 
# include <assert.h>
20710
 
#endif
20711
 
 
20712
 
#undef __gethostname
20713
 
 
20714
 
/* Override any GCC internal prototype to avoid an error.
20715
 
   Use char because int might match the return type of a GCC
20716
 
   builtin and then its argument prototype would still apply.  */
20717
 
#ifdef __cplusplus
20718
 
extern "C"
20719
 
#endif
20720
 
char __gethostname ();
20721
 
/* The GNU C library defines this for functions which it implements
20722
 
    to always fail with ENOSYS.  Some functions are actually named
20723
 
    something starting with __ and the normal name is an alias.  */
20724
 
#if defined __stub___gethostname || defined __stub_____gethostname
20725
 
choke me
20726
 
#endif
20727
 
 
20728
 
int
20729
 
main ()
20730
 
{
20731
 
return __gethostname ();
20732
 
  ;
20733
 
  return 0;
20734
 
}
20735
 
_ACEOF
20736
 
rm -f conftest.$ac_objext conftest$ac_exeext
20737
 
if { (ac_try="$ac_link"
20738
 
case "(($ac_try" in
20739
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740
 
  *) ac_try_echo=$ac_try;;
20741
 
esac
20742
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20743
 
$as_echo "$ac_try_echo") >&5
20744
 
  (eval "$ac_link") 2>conftest.er1
20745
 
  ac_status=$?
20746
 
  grep -v '^ *+' conftest.er1 >conftest.err
20747
 
  rm -f conftest.er1
20748
 
  cat conftest.err >&5
20749
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750
 
  (exit $ac_status); } && {
20751
 
         test -z "$ac_c_werror_flag" ||
20752
 
         test ! -s conftest.err
20753
 
       } && test -s conftest$ac_exeext && {
20754
 
         test "$cross_compiling" = yes ||
20755
 
         $as_test_x conftest$ac_exeext
20756
 
       }; then
20757
 
  ac_cv_func___gethostname=yes
20758
 
else
20759
 
  $as_echo "$as_me: failed program was:" >&5
20760
 
sed 's/^/| /' conftest.$ac_ext >&5
20761
 
 
20762
 
        ac_cv_func___gethostname=no
20763
 
fi
20764
 
 
20765
 
rm -rf conftest.dSYM
20766
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20767
 
      conftest$ac_exeext conftest.$ac_ext
20768
 
fi
20769
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___gethostname" >&5
20770
 
$as_echo "$ac_cv_func___gethostname" >&6; }
20771
 
if test "x$ac_cv_func___gethostname" = x""yes; then
20772
 
  found=yes
20773
 
else
20774
 
  found=no
20775
 
fi
20776
 
 
20777
 
fi
20778
 
 
20779
 
 
20780
 
  case $found in
20781
 
  yes) 
20782
 
    
20783
 
cat >>confdefs.h <<\_ACEOF
20784
 
@%:@define HAVE_GETHOSTNAME 1
20785
 
_ACEOF
20786
 
 
20787
 
    ac_cv_func_gethostname=yes
20788
 
  ;;
20789
 
  
20790
 
    *) 
20791
 
  
20792
 
  unset ac_cv_lib_nsl_gethostname
20793
 
  unset ac_cv_lib_nsl___gethostname
20794
 
  unset found
20795
 
  { $as_echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
20796
 
$as_echo_n "checking for gethostname in -lnsl... " >&6; }
20797
 
if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
20798
 
  $as_echo_n "(cached) " >&6
20799
 
else
20800
 
  ac_check_lib_save_LIBS=$LIBS
20801
 
LIBS="-lnsl  $LIBS"
20802
 
cat >conftest.$ac_ext <<_ACEOF
20803
 
/* confdefs.h.  */
20804
 
_ACEOF
20805
 
cat confdefs.h >>conftest.$ac_ext
20806
 
cat >>conftest.$ac_ext <<_ACEOF
20807
 
/* end confdefs.h.  */
20808
 
 
20809
 
/* Override any GCC internal prototype to avoid an error.
20810
 
   Use char because int might match the return type of a GCC
20811
 
   builtin and then its argument prototype would still apply.  */
20812
 
#ifdef __cplusplus
20813
 
extern "C"
20814
 
#endif
20815
 
char gethostname ();
20816
 
int
20817
 
main ()
20818
 
{
20819
 
return gethostname ();
20820
 
  ;
20821
 
  return 0;
20822
 
}
20823
 
_ACEOF
20824
 
rm -f conftest.$ac_objext conftest$ac_exeext
20825
 
if { (ac_try="$ac_link"
20826
 
case "(($ac_try" in
20827
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828
 
  *) ac_try_echo=$ac_try;;
20829
 
esac
20830
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20831
 
$as_echo "$ac_try_echo") >&5
20832
 
  (eval "$ac_link") 2>conftest.er1
20833
 
  ac_status=$?
20834
 
  grep -v '^ *+' conftest.er1 >conftest.err
20835
 
  rm -f conftest.er1
20836
 
  cat conftest.err >&5
20837
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838
 
  (exit $ac_status); } && {
20839
 
         test -z "$ac_c_werror_flag" ||
20840
 
         test ! -s conftest.err
20841
 
       } && test -s conftest$ac_exeext && {
20842
 
         test "$cross_compiling" = yes ||
20843
 
         $as_test_x conftest$ac_exeext
20844
 
       }; then
20845
 
  ac_cv_lib_nsl_gethostname=yes
20846
 
else
20847
 
  $as_echo "$as_me: failed program was:" >&5
20848
 
sed 's/^/| /' conftest.$ac_ext >&5
20849
 
 
20850
 
        ac_cv_lib_nsl_gethostname=no
20851
 
fi
20852
 
 
20853
 
rm -rf conftest.dSYM
20854
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20855
 
      conftest$ac_exeext conftest.$ac_ext
20856
 
LIBS=$ac_check_lib_save_LIBS
20857
 
fi
20858
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
20859
 
$as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
20860
 
if test "x$ac_cv_lib_nsl_gethostname" = x""yes; then
20861
 
  found=yes
20862
 
else
20863
 
  
20864
 
    { $as_echo "$as_me:$LINENO: checking for __gethostname in -lnsl" >&5
20865
 
$as_echo_n "checking for __gethostname in -lnsl... " >&6; }
20866
 
if test "${ac_cv_lib_nsl___gethostname+set}" = set; then
20867
 
  $as_echo_n "(cached) " >&6
20868
 
else
20869
 
  ac_check_lib_save_LIBS=$LIBS
20870
 
LIBS="-lnsl  $LIBS"
20871
 
cat >conftest.$ac_ext <<_ACEOF
20872
 
/* confdefs.h.  */
20873
 
_ACEOF
20874
 
cat confdefs.h >>conftest.$ac_ext
20875
 
cat >>conftest.$ac_ext <<_ACEOF
20876
 
/* end confdefs.h.  */
20877
 
 
20878
 
/* Override any GCC internal prototype to avoid an error.
20879
 
   Use char because int might match the return type of a GCC
20880
 
   builtin and then its argument prototype would still apply.  */
20881
 
#ifdef __cplusplus
20882
 
extern "C"
20883
 
#endif
20884
 
char __gethostname ();
20885
 
int
20886
 
main ()
20887
 
{
20888
 
return __gethostname ();
20889
 
  ;
20890
 
  return 0;
20891
 
}
20892
 
_ACEOF
20893
 
rm -f conftest.$ac_objext conftest$ac_exeext
20894
 
if { (ac_try="$ac_link"
20895
 
case "(($ac_try" in
20896
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897
 
  *) ac_try_echo=$ac_try;;
20898
 
esac
20899
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900
 
$as_echo "$ac_try_echo") >&5
20901
 
  (eval "$ac_link") 2>conftest.er1
20902
 
  ac_status=$?
20903
 
  grep -v '^ *+' conftest.er1 >conftest.err
20904
 
  rm -f conftest.er1
20905
 
  cat conftest.err >&5
20906
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907
 
  (exit $ac_status); } && {
20908
 
         test -z "$ac_c_werror_flag" ||
20909
 
         test ! -s conftest.err
20910
 
       } && test -s conftest$ac_exeext && {
20911
 
         test "$cross_compiling" = yes ||
20912
 
         $as_test_x conftest$ac_exeext
20913
 
       }; then
20914
 
  ac_cv_lib_nsl___gethostname=yes
20915
 
else
20916
 
  $as_echo "$as_me: failed program was:" >&5
20917
 
sed 's/^/| /' conftest.$ac_ext >&5
20918
 
 
20919
 
        ac_cv_lib_nsl___gethostname=no
20920
 
fi
20921
 
 
20922
 
rm -rf conftest.dSYM
20923
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20924
 
      conftest$ac_exeext conftest.$ac_ext
20925
 
LIBS=$ac_check_lib_save_LIBS
20926
 
fi
20927
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl___gethostname" >&5
20928
 
$as_echo "$ac_cv_lib_nsl___gethostname" >&6; }
20929
 
if test "x$ac_cv_lib_nsl___gethostname" = x""yes; then
20930
 
  found=yes
20931
 
else
20932
 
  found=no
20933
 
fi
20934
 
 
20935
 
  
20936
 
fi
20937
 
 
20938
 
 
20939
 
  if test "$found" = "yes"; then
20940
 
    ac_libs=$LIBS
20941
 
    LIBS="$LIBS -lnsl"
20942
 
    if test "$cross_compiling" = yes; then
20943
 
  found=no
20944
 
else
20945
 
  cat >conftest.$ac_ext <<_ACEOF
20946
 
/* confdefs.h.  */
20947
 
_ACEOF
20948
 
cat confdefs.h >>conftest.$ac_ext
20949
 
cat >>conftest.$ac_ext <<_ACEOF
20950
 
/* end confdefs.h.  */
20951
 
main() { return (0); }
20952
 
_ACEOF
20953
 
rm -f conftest$ac_exeext
20954
 
if { (ac_try="$ac_link"
20955
 
case "(($ac_try" in
20956
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957
 
  *) ac_try_echo=$ac_try;;
20958
 
esac
20959
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20960
 
$as_echo "$ac_try_echo") >&5
20961
 
  (eval "$ac_link") 2>&5
20962
 
  ac_status=$?
20963
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20965
 
  { (case "(($ac_try" in
20966
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967
 
  *) ac_try_echo=$ac_try;;
20968
 
esac
20969
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20970
 
$as_echo "$ac_try_echo") >&5
20971
 
  (eval "$ac_try") 2>&5
20972
 
  ac_status=$?
20973
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974
 
  (exit $ac_status); }; }; then
20975
 
  found=yes
20976
 
else
20977
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
20978
 
$as_echo "$as_me: failed program was:" >&5
20979
 
sed 's/^/| /' conftest.$ac_ext >&5
20980
 
 
20981
 
( exit $ac_status )
20982
 
found=no
20983
 
fi
20984
 
rm -rf conftest.dSYM
20985
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20986
 
fi
20987
 
 
20988
 
 
20989
 
    LIBS=$ac_libs
20990
 
  fi
20991
 
 
20992
 
  if test "$found" = "yes"; then
20993
 
    
20994
 
  
20995
 
  case nsl in
20996
 
  c|c_r|pthread*) ;;
20997
 
  *) 
20998
 
      LIBS="-lnsl $LIBS" 
20999
 
   ;;
21000
 
  esac
21001
 
 
21002
 
 
21003
 
    
21004
 
cat >>confdefs.h <<\_ACEOF
21005
 
@%:@define HAVE_GETHOSTNAME 1
21006
 
_ACEOF
21007
 
 
21008
 
    
21009
 
cat >>confdefs.h <<\_ACEOF
21010
 
@%:@define HAVE_LIBNSL 1
21011
 
_ACEOF
21012
 
 
21013
 
    ac_cv_func_gethostname=yes
21014
 
  else
21015
 
    
21016
 
  :
21017
 
 
21018
 
  fi
21019
 
  
21020
 
 ;;
21021
 
  
21022
 
  esac
21023
 
 
21024
 
 
21025
 
  unset ac_cv_func_gethostbyaddr
21026
 
  unset ac_cv_func___gethostbyaddr
21027
 
  unset found
21028
 
  
21029
 
  { $as_echo "$as_me:$LINENO: checking for gethostbyaddr" >&5
21030
 
$as_echo_n "checking for gethostbyaddr... " >&6; }
21031
 
if test "${ac_cv_func_gethostbyaddr+set}" = set; then
21032
 
  $as_echo_n "(cached) " >&6
21033
 
else
21034
 
  cat >conftest.$ac_ext <<_ACEOF
21035
 
/* confdefs.h.  */
21036
 
_ACEOF
21037
 
cat confdefs.h >>conftest.$ac_ext
21038
 
cat >>conftest.$ac_ext <<_ACEOF
21039
 
/* end confdefs.h.  */
21040
 
/* Define gethostbyaddr to an innocuous variant, in case <limits.h> declares gethostbyaddr.
21041
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21042
 
#define gethostbyaddr innocuous_gethostbyaddr
21043
 
 
21044
 
/* System header to define __stub macros and hopefully few prototypes,
21045
 
    which can conflict with char gethostbyaddr (); below.
21046
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21047
 
    <limits.h> exists even on freestanding compilers.  */
21048
 
 
21049
 
#ifdef __STDC__
21050
 
# include <limits.h>
21051
 
#else
21052
 
# include <assert.h>
21053
 
#endif
21054
 
 
21055
 
#undef gethostbyaddr
21056
 
 
21057
 
/* Override any GCC internal prototype to avoid an error.
21058
 
   Use char because int might match the return type of a GCC
21059
 
   builtin and then its argument prototype would still apply.  */
21060
 
#ifdef __cplusplus
21061
 
extern "C"
21062
 
#endif
21063
 
char gethostbyaddr ();
21064
 
/* The GNU C library defines this for functions which it implements
21065
 
    to always fail with ENOSYS.  Some functions are actually named
21066
 
    something starting with __ and the normal name is an alias.  */
21067
 
#if defined __stub_gethostbyaddr || defined __stub___gethostbyaddr
21068
 
choke me
21069
 
#endif
21070
 
 
21071
 
int
21072
 
main ()
21073
 
{
21074
 
return gethostbyaddr ();
21075
 
  ;
21076
 
  return 0;
21077
 
}
21078
 
_ACEOF
21079
 
rm -f conftest.$ac_objext conftest$ac_exeext
21080
 
if { (ac_try="$ac_link"
21081
 
case "(($ac_try" in
21082
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083
 
  *) ac_try_echo=$ac_try;;
21084
 
esac
21085
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21086
 
$as_echo "$ac_try_echo") >&5
21087
 
  (eval "$ac_link") 2>conftest.er1
21088
 
  ac_status=$?
21089
 
  grep -v '^ *+' conftest.er1 >conftest.err
21090
 
  rm -f conftest.er1
21091
 
  cat conftest.err >&5
21092
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093
 
  (exit $ac_status); } && {
21094
 
         test -z "$ac_c_werror_flag" ||
21095
 
         test ! -s conftest.err
21096
 
       } && test -s conftest$ac_exeext && {
21097
 
         test "$cross_compiling" = yes ||
21098
 
         $as_test_x conftest$ac_exeext
21099
 
       }; then
21100
 
  ac_cv_func_gethostbyaddr=yes
21101
 
else
21102
 
  $as_echo "$as_me: failed program was:" >&5
21103
 
sed 's/^/| /' conftest.$ac_ext >&5
21104
 
 
21105
 
        ac_cv_func_gethostbyaddr=no
21106
 
fi
21107
 
 
21108
 
rm -rf conftest.dSYM
21109
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21110
 
      conftest$ac_exeext conftest.$ac_ext
21111
 
fi
21112
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr" >&5
21113
 
$as_echo "$ac_cv_func_gethostbyaddr" >&6; }
21114
 
if test "x$ac_cv_func_gethostbyaddr" = x""yes; then
21115
 
  found=yes
21116
 
else
21117
 
   { $as_echo "$as_me:$LINENO: checking for __gethostbyaddr" >&5
21118
 
$as_echo_n "checking for __gethostbyaddr... " >&6; }
21119
 
if test "${ac_cv_func___gethostbyaddr+set}" = set; then
21120
 
  $as_echo_n "(cached) " >&6
21121
 
else
21122
 
  cat >conftest.$ac_ext <<_ACEOF
21123
 
/* confdefs.h.  */
21124
 
_ACEOF
21125
 
cat confdefs.h >>conftest.$ac_ext
21126
 
cat >>conftest.$ac_ext <<_ACEOF
21127
 
/* end confdefs.h.  */
21128
 
/* Define __gethostbyaddr to an innocuous variant, in case <limits.h> declares __gethostbyaddr.
21129
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21130
 
#define __gethostbyaddr innocuous___gethostbyaddr
21131
 
 
21132
 
/* System header to define __stub macros and hopefully few prototypes,
21133
 
    which can conflict with char __gethostbyaddr (); below.
21134
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21135
 
    <limits.h> exists even on freestanding compilers.  */
21136
 
 
21137
 
#ifdef __STDC__
21138
 
# include <limits.h>
21139
 
#else
21140
 
# include <assert.h>
21141
 
#endif
21142
 
 
21143
 
#undef __gethostbyaddr
21144
 
 
21145
 
/* Override any GCC internal prototype to avoid an error.
21146
 
   Use char because int might match the return type of a GCC
21147
 
   builtin and then its argument prototype would still apply.  */
21148
 
#ifdef __cplusplus
21149
 
extern "C"
21150
 
#endif
21151
 
char __gethostbyaddr ();
21152
 
/* The GNU C library defines this for functions which it implements
21153
 
    to always fail with ENOSYS.  Some functions are actually named
21154
 
    something starting with __ and the normal name is an alias.  */
21155
 
#if defined __stub___gethostbyaddr || defined __stub_____gethostbyaddr
21156
 
choke me
21157
 
#endif
21158
 
 
21159
 
int
21160
 
main ()
21161
 
{
21162
 
return __gethostbyaddr ();
21163
 
  ;
21164
 
  return 0;
21165
 
}
21166
 
_ACEOF
21167
 
rm -f conftest.$ac_objext conftest$ac_exeext
21168
 
if { (ac_try="$ac_link"
21169
 
case "(($ac_try" in
21170
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171
 
  *) ac_try_echo=$ac_try;;
21172
 
esac
21173
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21174
 
$as_echo "$ac_try_echo") >&5
21175
 
  (eval "$ac_link") 2>conftest.er1
21176
 
  ac_status=$?
21177
 
  grep -v '^ *+' conftest.er1 >conftest.err
21178
 
  rm -f conftest.er1
21179
 
  cat conftest.err >&5
21180
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181
 
  (exit $ac_status); } && {
21182
 
         test -z "$ac_c_werror_flag" ||
21183
 
         test ! -s conftest.err
21184
 
       } && test -s conftest$ac_exeext && {
21185
 
         test "$cross_compiling" = yes ||
21186
 
         $as_test_x conftest$ac_exeext
21187
 
       }; then
21188
 
  ac_cv_func___gethostbyaddr=yes
21189
 
else
21190
 
  $as_echo "$as_me: failed program was:" >&5
21191
 
sed 's/^/| /' conftest.$ac_ext >&5
21192
 
 
21193
 
        ac_cv_func___gethostbyaddr=no
21194
 
fi
21195
 
 
21196
 
rm -rf conftest.dSYM
21197
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21198
 
      conftest$ac_exeext conftest.$ac_ext
21199
 
fi
21200
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___gethostbyaddr" >&5
21201
 
$as_echo "$ac_cv_func___gethostbyaddr" >&6; }
21202
 
if test "x$ac_cv_func___gethostbyaddr" = x""yes; then
21203
 
  found=yes
21204
 
else
21205
 
  found=no
21206
 
fi
21207
 
 
21208
 
fi
21209
 
 
21210
 
 
21211
 
  case $found in
21212
 
  yes) 
21213
 
    
21214
 
cat >>confdefs.h <<\_ACEOF
21215
 
@%:@define HAVE_GETHOSTBYADDR 1
21216
 
_ACEOF
21217
 
 
21218
 
    ac_cv_func_gethostbyaddr=yes
21219
 
  ;;
21220
 
  
21221
 
    *) 
21222
 
  
21223
 
  unset ac_cv_lib_nsl_gethostbyaddr
21224
 
  unset ac_cv_lib_nsl___gethostbyaddr
21225
 
  unset found
21226
 
  { $as_echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl" >&5
21227
 
$as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; }
21228
 
if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then
21229
 
  $as_echo_n "(cached) " >&6
21230
 
else
21231
 
  ac_check_lib_save_LIBS=$LIBS
21232
 
LIBS="-lnsl  $LIBS"
21233
 
cat >conftest.$ac_ext <<_ACEOF
21234
 
/* confdefs.h.  */
21235
 
_ACEOF
21236
 
cat confdefs.h >>conftest.$ac_ext
21237
 
cat >>conftest.$ac_ext <<_ACEOF
21238
 
/* end confdefs.h.  */
21239
 
 
21240
 
/* Override any GCC internal prototype to avoid an error.
21241
 
   Use char because int might match the return type of a GCC
21242
 
   builtin and then its argument prototype would still apply.  */
21243
 
#ifdef __cplusplus
21244
 
extern "C"
21245
 
#endif
21246
 
char gethostbyaddr ();
21247
 
int
21248
 
main ()
21249
 
{
21250
 
return gethostbyaddr ();
21251
 
  ;
21252
 
  return 0;
21253
 
}
21254
 
_ACEOF
21255
 
rm -f conftest.$ac_objext conftest$ac_exeext
21256
 
if { (ac_try="$ac_link"
21257
 
case "(($ac_try" in
21258
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259
 
  *) ac_try_echo=$ac_try;;
21260
 
esac
21261
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21262
 
$as_echo "$ac_try_echo") >&5
21263
 
  (eval "$ac_link") 2>conftest.er1
21264
 
  ac_status=$?
21265
 
  grep -v '^ *+' conftest.er1 >conftest.err
21266
 
  rm -f conftest.er1
21267
 
  cat conftest.err >&5
21268
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269
 
  (exit $ac_status); } && {
21270
 
         test -z "$ac_c_werror_flag" ||
21271
 
         test ! -s conftest.err
21272
 
       } && test -s conftest$ac_exeext && {
21273
 
         test "$cross_compiling" = yes ||
21274
 
         $as_test_x conftest$ac_exeext
21275
 
       }; then
21276
 
  ac_cv_lib_nsl_gethostbyaddr=yes
21277
 
else
21278
 
  $as_echo "$as_me: failed program was:" >&5
21279
 
sed 's/^/| /' conftest.$ac_ext >&5
21280
 
 
21281
 
        ac_cv_lib_nsl_gethostbyaddr=no
21282
 
fi
21283
 
 
21284
 
rm -rf conftest.dSYM
21285
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21286
 
      conftest$ac_exeext conftest.$ac_ext
21287
 
LIBS=$ac_check_lib_save_LIBS
21288
 
fi
21289
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
21290
 
$as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
21291
 
if test "x$ac_cv_lib_nsl_gethostbyaddr" = x""yes; then
21292
 
  found=yes
21293
 
else
21294
 
  
21295
 
    { $as_echo "$as_me:$LINENO: checking for __gethostbyaddr in -lnsl" >&5
21296
 
$as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; }
21297
 
if test "${ac_cv_lib_nsl___gethostbyaddr+set}" = set; then
21298
 
  $as_echo_n "(cached) " >&6
21299
 
else
21300
 
  ac_check_lib_save_LIBS=$LIBS
21301
 
LIBS="-lnsl  $LIBS"
21302
 
cat >conftest.$ac_ext <<_ACEOF
21303
 
/* confdefs.h.  */
21304
 
_ACEOF
21305
 
cat confdefs.h >>conftest.$ac_ext
21306
 
cat >>conftest.$ac_ext <<_ACEOF
21307
 
/* end confdefs.h.  */
21308
 
 
21309
 
/* Override any GCC internal prototype to avoid an error.
21310
 
   Use char because int might match the return type of a GCC
21311
 
   builtin and then its argument prototype would still apply.  */
21312
 
#ifdef __cplusplus
21313
 
extern "C"
21314
 
#endif
21315
 
char __gethostbyaddr ();
21316
 
int
21317
 
main ()
21318
 
{
21319
 
return __gethostbyaddr ();
21320
 
  ;
21321
 
  return 0;
21322
 
}
21323
 
_ACEOF
21324
 
rm -f conftest.$ac_objext conftest$ac_exeext
21325
 
if { (ac_try="$ac_link"
21326
 
case "(($ac_try" in
21327
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328
 
  *) ac_try_echo=$ac_try;;
21329
 
esac
21330
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21331
 
$as_echo "$ac_try_echo") >&5
21332
 
  (eval "$ac_link") 2>conftest.er1
21333
 
  ac_status=$?
21334
 
  grep -v '^ *+' conftest.er1 >conftest.err
21335
 
  rm -f conftest.er1
21336
 
  cat conftest.err >&5
21337
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338
 
  (exit $ac_status); } && {
21339
 
         test -z "$ac_c_werror_flag" ||
21340
 
         test ! -s conftest.err
21341
 
       } && test -s conftest$ac_exeext && {
21342
 
         test "$cross_compiling" = yes ||
21343
 
         $as_test_x conftest$ac_exeext
21344
 
       }; then
21345
 
  ac_cv_lib_nsl___gethostbyaddr=yes
21346
 
else
21347
 
  $as_echo "$as_me: failed program was:" >&5
21348
 
sed 's/^/| /' conftest.$ac_ext >&5
21349
 
 
21350
 
        ac_cv_lib_nsl___gethostbyaddr=no
21351
 
fi
21352
 
 
21353
 
rm -rf conftest.dSYM
21354
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21355
 
      conftest$ac_exeext conftest.$ac_ext
21356
 
LIBS=$ac_check_lib_save_LIBS
21357
 
fi
21358
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl___gethostbyaddr" >&5
21359
 
$as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; }
21360
 
if test "x$ac_cv_lib_nsl___gethostbyaddr" = x""yes; then
21361
 
  found=yes
21362
 
else
21363
 
  found=no
21364
 
fi
21365
 
 
21366
 
  
21367
 
fi
21368
 
 
21369
 
 
21370
 
  if test "$found" = "yes"; then
21371
 
    ac_libs=$LIBS
21372
 
    LIBS="$LIBS -lnsl"
21373
 
    if test "$cross_compiling" = yes; then
21374
 
  found=no
21375
 
else
21376
 
  cat >conftest.$ac_ext <<_ACEOF
21377
 
/* confdefs.h.  */
21378
 
_ACEOF
21379
 
cat confdefs.h >>conftest.$ac_ext
21380
 
cat >>conftest.$ac_ext <<_ACEOF
21381
 
/* end confdefs.h.  */
21382
 
main() { return (0); }
21383
 
_ACEOF
21384
 
rm -f conftest$ac_exeext
21385
 
if { (ac_try="$ac_link"
21386
 
case "(($ac_try" in
21387
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388
 
  *) ac_try_echo=$ac_try;;
21389
 
esac
21390
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21391
 
$as_echo "$ac_try_echo") >&5
21392
 
  (eval "$ac_link") 2>&5
21393
 
  ac_status=$?
21394
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21396
 
  { (case "(($ac_try" in
21397
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398
 
  *) ac_try_echo=$ac_try;;
21399
 
esac
21400
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21401
 
$as_echo "$ac_try_echo") >&5
21402
 
  (eval "$ac_try") 2>&5
21403
 
  ac_status=$?
21404
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405
 
  (exit $ac_status); }; }; then
21406
 
  found=yes
21407
 
else
21408
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
21409
 
$as_echo "$as_me: failed program was:" >&5
21410
 
sed 's/^/| /' conftest.$ac_ext >&5
21411
 
 
21412
 
( exit $ac_status )
21413
 
found=no
21414
 
fi
21415
 
rm -rf conftest.dSYM
21416
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21417
 
fi
21418
 
 
21419
 
 
21420
 
    LIBS=$ac_libs
21421
 
  fi
21422
 
 
21423
 
  if test "$found" = "yes"; then
21424
 
    
21425
 
  
21426
 
  case nsl in
21427
 
  c|c_r|pthread*) ;;
21428
 
  *) 
21429
 
      LIBS="-lnsl $LIBS" 
21430
 
   ;;
21431
 
  esac
21432
 
 
21433
 
 
21434
 
    
21435
 
cat >>confdefs.h <<\_ACEOF
21436
 
@%:@define HAVE_GETHOSTBYADDR 1
21437
 
_ACEOF
21438
 
 
21439
 
    
21440
 
cat >>confdefs.h <<\_ACEOF
21441
 
@%:@define HAVE_LIBNSL 1
21442
 
_ACEOF
21443
 
 
21444
 
    ac_cv_func_gethostbyaddr=yes
21445
 
  else
21446
 
    
21447
 
  :
21448
 
 
21449
 
  fi
21450
 
  
21451
 
 ;;
21452
 
  
21453
 
  esac
21454
 
 
21455
 
 
21456
 
  unset ac_cv_func_yp_get_default_domain
21457
 
  unset ac_cv_func___yp_get_default_domain
21458
 
  unset found
21459
 
  
21460
 
  { $as_echo "$as_me:$LINENO: checking for yp_get_default_domain" >&5
21461
 
$as_echo_n "checking for yp_get_default_domain... " >&6; }
21462
 
if test "${ac_cv_func_yp_get_default_domain+set}" = set; then
21463
 
  $as_echo_n "(cached) " >&6
21464
 
else
21465
 
  cat >conftest.$ac_ext <<_ACEOF
21466
 
/* confdefs.h.  */
21467
 
_ACEOF
21468
 
cat confdefs.h >>conftest.$ac_ext
21469
 
cat >>conftest.$ac_ext <<_ACEOF
21470
 
/* end confdefs.h.  */
21471
 
/* Define yp_get_default_domain to an innocuous variant, in case <limits.h> declares yp_get_default_domain.
21472
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21473
 
#define yp_get_default_domain innocuous_yp_get_default_domain
21474
 
 
21475
 
/* System header to define __stub macros and hopefully few prototypes,
21476
 
    which can conflict with char yp_get_default_domain (); below.
21477
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21478
 
    <limits.h> exists even on freestanding compilers.  */
21479
 
 
21480
 
#ifdef __STDC__
21481
 
# include <limits.h>
21482
 
#else
21483
 
# include <assert.h>
21484
 
#endif
21485
 
 
21486
 
#undef yp_get_default_domain
21487
 
 
21488
 
/* Override any GCC internal prototype to avoid an error.
21489
 
   Use char because int might match the return type of a GCC
21490
 
   builtin and then its argument prototype would still apply.  */
21491
 
#ifdef __cplusplus
21492
 
extern "C"
21493
 
#endif
21494
 
char yp_get_default_domain ();
21495
 
/* The GNU C library defines this for functions which it implements
21496
 
    to always fail with ENOSYS.  Some functions are actually named
21497
 
    something starting with __ and the normal name is an alias.  */
21498
 
#if defined __stub_yp_get_default_domain || defined __stub___yp_get_default_domain
21499
 
choke me
21500
 
#endif
21501
 
 
21502
 
int
21503
 
main ()
21504
 
{
21505
 
return yp_get_default_domain ();
21506
 
  ;
21507
 
  return 0;
21508
 
}
21509
 
_ACEOF
21510
 
rm -f conftest.$ac_objext conftest$ac_exeext
21511
 
if { (ac_try="$ac_link"
21512
 
case "(($ac_try" in
21513
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21514
 
  *) ac_try_echo=$ac_try;;
21515
 
esac
21516
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21517
 
$as_echo "$ac_try_echo") >&5
21518
 
  (eval "$ac_link") 2>conftest.er1
21519
 
  ac_status=$?
21520
 
  grep -v '^ *+' conftest.er1 >conftest.err
21521
 
  rm -f conftest.er1
21522
 
  cat conftest.err >&5
21523
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524
 
  (exit $ac_status); } && {
21525
 
         test -z "$ac_c_werror_flag" ||
21526
 
         test ! -s conftest.err
21527
 
       } && test -s conftest$ac_exeext && {
21528
 
         test "$cross_compiling" = yes ||
21529
 
         $as_test_x conftest$ac_exeext
21530
 
       }; then
21531
 
  ac_cv_func_yp_get_default_domain=yes
21532
 
else
21533
 
  $as_echo "$as_me: failed program was:" >&5
21534
 
sed 's/^/| /' conftest.$ac_ext >&5
21535
 
 
21536
 
        ac_cv_func_yp_get_default_domain=no
21537
 
fi
21538
 
 
21539
 
rm -rf conftest.dSYM
21540
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21541
 
      conftest$ac_exeext conftest.$ac_ext
21542
 
fi
21543
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_yp_get_default_domain" >&5
21544
 
$as_echo "$ac_cv_func_yp_get_default_domain" >&6; }
21545
 
if test "x$ac_cv_func_yp_get_default_domain" = x""yes; then
21546
 
  found=yes
21547
 
else
21548
 
   { $as_echo "$as_me:$LINENO: checking for __yp_get_default_domain" >&5
21549
 
$as_echo_n "checking for __yp_get_default_domain... " >&6; }
21550
 
if test "${ac_cv_func___yp_get_default_domain+set}" = set; then
21551
 
  $as_echo_n "(cached) " >&6
21552
 
else
21553
 
  cat >conftest.$ac_ext <<_ACEOF
21554
 
/* confdefs.h.  */
21555
 
_ACEOF
21556
 
cat confdefs.h >>conftest.$ac_ext
21557
 
cat >>conftest.$ac_ext <<_ACEOF
21558
 
/* end confdefs.h.  */
21559
 
/* Define __yp_get_default_domain to an innocuous variant, in case <limits.h> declares __yp_get_default_domain.
21560
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21561
 
#define __yp_get_default_domain innocuous___yp_get_default_domain
21562
 
 
21563
 
/* System header to define __stub macros and hopefully few prototypes,
21564
 
    which can conflict with char __yp_get_default_domain (); below.
21565
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21566
 
    <limits.h> exists even on freestanding compilers.  */
21567
 
 
21568
 
#ifdef __STDC__
21569
 
# include <limits.h>
21570
 
#else
21571
 
# include <assert.h>
21572
 
#endif
21573
 
 
21574
 
#undef __yp_get_default_domain
21575
 
 
21576
 
/* Override any GCC internal prototype to avoid an error.
21577
 
   Use char because int might match the return type of a GCC
21578
 
   builtin and then its argument prototype would still apply.  */
21579
 
#ifdef __cplusplus
21580
 
extern "C"
21581
 
#endif
21582
 
char __yp_get_default_domain ();
21583
 
/* The GNU C library defines this for functions which it implements
21584
 
    to always fail with ENOSYS.  Some functions are actually named
21585
 
    something starting with __ and the normal name is an alias.  */
21586
 
#if defined __stub___yp_get_default_domain || defined __stub_____yp_get_default_domain
21587
 
choke me
21588
 
#endif
21589
 
 
21590
 
int
21591
 
main ()
21592
 
{
21593
 
return __yp_get_default_domain ();
21594
 
  ;
21595
 
  return 0;
21596
 
}
21597
 
_ACEOF
21598
 
rm -f conftest.$ac_objext conftest$ac_exeext
21599
 
if { (ac_try="$ac_link"
21600
 
case "(($ac_try" in
21601
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602
 
  *) ac_try_echo=$ac_try;;
21603
 
esac
21604
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21605
 
$as_echo "$ac_try_echo") >&5
21606
 
  (eval "$ac_link") 2>conftest.er1
21607
 
  ac_status=$?
21608
 
  grep -v '^ *+' conftest.er1 >conftest.err
21609
 
  rm -f conftest.er1
21610
 
  cat conftest.err >&5
21611
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612
 
  (exit $ac_status); } && {
21613
 
         test -z "$ac_c_werror_flag" ||
21614
 
         test ! -s conftest.err
21615
 
       } && test -s conftest$ac_exeext && {
21616
 
         test "$cross_compiling" = yes ||
21617
 
         $as_test_x conftest$ac_exeext
21618
 
       }; then
21619
 
  ac_cv_func___yp_get_default_domain=yes
21620
 
else
21621
 
  $as_echo "$as_me: failed program was:" >&5
21622
 
sed 's/^/| /' conftest.$ac_ext >&5
21623
 
 
21624
 
        ac_cv_func___yp_get_default_domain=no
21625
 
fi
21626
 
 
21627
 
rm -rf conftest.dSYM
21628
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21629
 
      conftest$ac_exeext conftest.$ac_ext
21630
 
fi
21631
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___yp_get_default_domain" >&5
21632
 
$as_echo "$ac_cv_func___yp_get_default_domain" >&6; }
21633
 
if test "x$ac_cv_func___yp_get_default_domain" = x""yes; then
21634
 
  found=yes
21635
 
else
21636
 
  found=no
21637
 
fi
21638
 
 
21639
 
fi
21640
 
 
21641
 
 
21642
 
  case $found in
21643
 
  yes) 
21644
 
    
21645
 
cat >>confdefs.h <<\_ACEOF
21646
 
@%:@define HAVE_YP_GET_DEFAULT_DOMAIN 1
21647
 
_ACEOF
21648
 
 
21649
 
    ac_cv_func_yp_get_default_domain=yes
21650
 
  ;;
21651
 
  
21652
 
    *) 
21653
 
  
21654
 
  unset ac_cv_lib_nsl_yp_get_default_domain
21655
 
  unset ac_cv_lib_nsl___yp_get_default_domain
21656
 
  unset found
21657
 
  { $as_echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
21658
 
$as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; }
21659
 
if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
21660
 
  $as_echo_n "(cached) " >&6
21661
 
else
21662
 
  ac_check_lib_save_LIBS=$LIBS
21663
 
LIBS="-lnsl  $LIBS"
21664
 
cat >conftest.$ac_ext <<_ACEOF
21665
 
/* confdefs.h.  */
21666
 
_ACEOF
21667
 
cat confdefs.h >>conftest.$ac_ext
21668
 
cat >>conftest.$ac_ext <<_ACEOF
21669
 
/* end confdefs.h.  */
21670
 
 
21671
 
/* Override any GCC internal prototype to avoid an error.
21672
 
   Use char because int might match the return type of a GCC
21673
 
   builtin and then its argument prototype would still apply.  */
21674
 
#ifdef __cplusplus
21675
 
extern "C"
21676
 
#endif
21677
 
char yp_get_default_domain ();
21678
 
int
21679
 
main ()
21680
 
{
21681
 
return yp_get_default_domain ();
21682
 
  ;
21683
 
  return 0;
21684
 
}
21685
 
_ACEOF
21686
 
rm -f conftest.$ac_objext conftest$ac_exeext
21687
 
if { (ac_try="$ac_link"
21688
 
case "(($ac_try" in
21689
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690
 
  *) ac_try_echo=$ac_try;;
21691
 
esac
21692
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21693
 
$as_echo "$ac_try_echo") >&5
21694
 
  (eval "$ac_link") 2>conftest.er1
21695
 
  ac_status=$?
21696
 
  grep -v '^ *+' conftest.er1 >conftest.err
21697
 
  rm -f conftest.er1
21698
 
  cat conftest.err >&5
21699
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700
 
  (exit $ac_status); } && {
21701
 
         test -z "$ac_c_werror_flag" ||
21702
 
         test ! -s conftest.err
21703
 
       } && test -s conftest$ac_exeext && {
21704
 
         test "$cross_compiling" = yes ||
21705
 
         $as_test_x conftest$ac_exeext
21706
 
       }; then
21707
 
  ac_cv_lib_nsl_yp_get_default_domain=yes
21708
 
else
21709
 
  $as_echo "$as_me: failed program was:" >&5
21710
 
sed 's/^/| /' conftest.$ac_ext >&5
21711
 
 
21712
 
        ac_cv_lib_nsl_yp_get_default_domain=no
21713
 
fi
21714
 
 
21715
 
rm -rf conftest.dSYM
21716
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717
 
      conftest$ac_exeext conftest.$ac_ext
21718
 
LIBS=$ac_check_lib_save_LIBS
21719
 
fi
21720
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
21721
 
$as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
21722
 
if test "x$ac_cv_lib_nsl_yp_get_default_domain" = x""yes; then
21723
 
  found=yes
21724
 
else
21725
 
  
21726
 
    { $as_echo "$as_me:$LINENO: checking for __yp_get_default_domain in -lnsl" >&5
21727
 
$as_echo_n "checking for __yp_get_default_domain in -lnsl... " >&6; }
21728
 
if test "${ac_cv_lib_nsl___yp_get_default_domain+set}" = set; then
21729
 
  $as_echo_n "(cached) " >&6
21730
 
else
21731
 
  ac_check_lib_save_LIBS=$LIBS
21732
 
LIBS="-lnsl  $LIBS"
21733
 
cat >conftest.$ac_ext <<_ACEOF
21734
 
/* confdefs.h.  */
21735
 
_ACEOF
21736
 
cat confdefs.h >>conftest.$ac_ext
21737
 
cat >>conftest.$ac_ext <<_ACEOF
21738
 
/* end confdefs.h.  */
21739
 
 
21740
 
/* Override any GCC internal prototype to avoid an error.
21741
 
   Use char because int might match the return type of a GCC
21742
 
   builtin and then its argument prototype would still apply.  */
21743
 
#ifdef __cplusplus
21744
 
extern "C"
21745
 
#endif
21746
 
char __yp_get_default_domain ();
21747
 
int
21748
 
main ()
21749
 
{
21750
 
return __yp_get_default_domain ();
21751
 
  ;
21752
 
  return 0;
21753
 
}
21754
 
_ACEOF
21755
 
rm -f conftest.$ac_objext conftest$ac_exeext
21756
 
if { (ac_try="$ac_link"
21757
 
case "(($ac_try" in
21758
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759
 
  *) ac_try_echo=$ac_try;;
21760
 
esac
21761
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21762
 
$as_echo "$ac_try_echo") >&5
21763
 
  (eval "$ac_link") 2>conftest.er1
21764
 
  ac_status=$?
21765
 
  grep -v '^ *+' conftest.er1 >conftest.err
21766
 
  rm -f conftest.er1
21767
 
  cat conftest.err >&5
21768
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769
 
  (exit $ac_status); } && {
21770
 
         test -z "$ac_c_werror_flag" ||
21771
 
         test ! -s conftest.err
21772
 
       } && test -s conftest$ac_exeext && {
21773
 
         test "$cross_compiling" = yes ||
21774
 
         $as_test_x conftest$ac_exeext
21775
 
       }; then
21776
 
  ac_cv_lib_nsl___yp_get_default_domain=yes
21777
 
else
21778
 
  $as_echo "$as_me: failed program was:" >&5
21779
 
sed 's/^/| /' conftest.$ac_ext >&5
21780
 
 
21781
 
        ac_cv_lib_nsl___yp_get_default_domain=no
21782
 
fi
21783
 
 
21784
 
rm -rf conftest.dSYM
21785
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21786
 
      conftest$ac_exeext conftest.$ac_ext
21787
 
LIBS=$ac_check_lib_save_LIBS
21788
 
fi
21789
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl___yp_get_default_domain" >&5
21790
 
$as_echo "$ac_cv_lib_nsl___yp_get_default_domain" >&6; }
21791
 
if test "x$ac_cv_lib_nsl___yp_get_default_domain" = x""yes; then
21792
 
  found=yes
21793
 
else
21794
 
  found=no
21795
 
fi
21796
 
 
21797
 
  
21798
 
fi
21799
 
 
21800
 
 
21801
 
  if test "$found" = "yes"; then
21802
 
    ac_libs=$LIBS
21803
 
    LIBS="$LIBS -lnsl"
21804
 
    if test "$cross_compiling" = yes; then
21805
 
  found=no
21806
 
else
21807
 
  cat >conftest.$ac_ext <<_ACEOF
21808
 
/* confdefs.h.  */
21809
 
_ACEOF
21810
 
cat confdefs.h >>conftest.$ac_ext
21811
 
cat >>conftest.$ac_ext <<_ACEOF
21812
 
/* end confdefs.h.  */
21813
 
main() { return (0); }
21814
 
_ACEOF
21815
 
rm -f conftest$ac_exeext
21816
 
if { (ac_try="$ac_link"
21817
 
case "(($ac_try" in
21818
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21819
 
  *) ac_try_echo=$ac_try;;
21820
 
esac
21821
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21822
 
$as_echo "$ac_try_echo") >&5
21823
 
  (eval "$ac_link") 2>&5
21824
 
  ac_status=$?
21825
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21827
 
  { (case "(($ac_try" in
21828
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829
 
  *) ac_try_echo=$ac_try;;
21830
 
esac
21831
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21832
 
$as_echo "$ac_try_echo") >&5
21833
 
  (eval "$ac_try") 2>&5
21834
 
  ac_status=$?
21835
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836
 
  (exit $ac_status); }; }; then
21837
 
  found=yes
21838
 
else
21839
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
21840
 
$as_echo "$as_me: failed program was:" >&5
21841
 
sed 's/^/| /' conftest.$ac_ext >&5
21842
 
 
21843
 
( exit $ac_status )
21844
 
found=no
21845
 
fi
21846
 
rm -rf conftest.dSYM
21847
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21848
 
fi
21849
 
 
21850
 
 
21851
 
    LIBS=$ac_libs
21852
 
  fi
21853
 
 
21854
 
  if test "$found" = "yes"; then
21855
 
    
21856
 
  
21857
 
  case nsl in
21858
 
  c|c_r|pthread*) ;;
21859
 
  *) 
21860
 
      LIBS="-lnsl $LIBS" 
21861
 
   ;;
21862
 
  esac
21863
 
 
21864
 
 
21865
 
    
21866
 
cat >>confdefs.h <<\_ACEOF
21867
 
@%:@define HAVE_YP_GET_DEFAULT_DOMAIN 1
21868
 
_ACEOF
21869
 
 
21870
 
    
21871
 
cat >>confdefs.h <<\_ACEOF
21872
 
@%:@define HAVE_LIBNSL 1
21873
 
_ACEOF
21874
 
 
21875
 
    ac_cv_func_yp_get_default_domain=yes
21876
 
  else
21877
 
    
21878
 
  :
21879
 
 
21880
 
  fi
21881
 
  
21882
 
 ;;
21883
 
  
21884
 
  esac
21885
 
 
21886
 
 
21887
 
 
21888
 
  unset ac_cv_func_dlopen
21889
 
  unset ac_cv_func___dlopen
21890
 
  unset found
21891
 
  
21892
 
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
21893
 
$as_echo_n "checking for dlopen... " >&6; }
21894
 
if test "${ac_cv_func_dlopen+set}" = set; then
21895
 
  $as_echo_n "(cached) " >&6
21896
 
else
21897
 
  cat >conftest.$ac_ext <<_ACEOF
21898
 
/* confdefs.h.  */
21899
 
_ACEOF
21900
 
cat confdefs.h >>conftest.$ac_ext
21901
 
cat >>conftest.$ac_ext <<_ACEOF
21902
 
/* end confdefs.h.  */
21903
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21904
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21905
 
#define dlopen innocuous_dlopen
21906
 
 
21907
 
/* System header to define __stub macros and hopefully few prototypes,
21908
 
    which can conflict with char dlopen (); below.
21909
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21910
 
    <limits.h> exists even on freestanding compilers.  */
21911
 
 
21912
 
#ifdef __STDC__
21913
 
# include <limits.h>
21914
 
#else
21915
 
# include <assert.h>
21916
 
#endif
21917
 
 
21918
 
#undef dlopen
21919
 
 
21920
 
/* Override any GCC internal prototype to avoid an error.
21921
 
   Use char because int might match the return type of a GCC
21922
 
   builtin and then its argument prototype would still apply.  */
21923
 
#ifdef __cplusplus
21924
 
extern "C"
21925
 
#endif
21926
 
char dlopen ();
21927
 
/* The GNU C library defines this for functions which it implements
21928
 
    to always fail with ENOSYS.  Some functions are actually named
21929
 
    something starting with __ and the normal name is an alias.  */
21930
 
#if defined __stub_dlopen || defined __stub___dlopen
21931
 
choke me
21932
 
#endif
21933
 
 
21934
 
int
21935
 
main ()
21936
 
{
21937
 
return dlopen ();
21938
 
  ;
21939
 
  return 0;
21940
 
}
21941
 
_ACEOF
21942
 
rm -f conftest.$ac_objext conftest$ac_exeext
21943
 
if { (ac_try="$ac_link"
21944
 
case "(($ac_try" in
21945
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946
 
  *) ac_try_echo=$ac_try;;
21947
 
esac
21948
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21949
 
$as_echo "$ac_try_echo") >&5
21950
 
  (eval "$ac_link") 2>conftest.er1
21951
 
  ac_status=$?
21952
 
  grep -v '^ *+' conftest.er1 >conftest.err
21953
 
  rm -f conftest.er1
21954
 
  cat conftest.err >&5
21955
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956
 
  (exit $ac_status); } && {
21957
 
         test -z "$ac_c_werror_flag" ||
21958
 
         test ! -s conftest.err
21959
 
       } && test -s conftest$ac_exeext && {
21960
 
         test "$cross_compiling" = yes ||
21961
 
         $as_test_x conftest$ac_exeext
21962
 
       }; then
21963
 
  ac_cv_func_dlopen=yes
21964
 
else
21965
 
  $as_echo "$as_me: failed program was:" >&5
21966
 
sed 's/^/| /' conftest.$ac_ext >&5
21967
 
 
21968
 
        ac_cv_func_dlopen=no
21969
 
fi
21970
 
 
21971
 
rm -rf conftest.dSYM
21972
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21973
 
      conftest$ac_exeext conftest.$ac_ext
21974
 
fi
21975
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21976
 
$as_echo "$ac_cv_func_dlopen" >&6; }
21977
 
if test "x$ac_cv_func_dlopen" = x""yes; then
21978
 
  found=yes
21979
 
else
21980
 
   { $as_echo "$as_me:$LINENO: checking for __dlopen" >&5
21981
 
$as_echo_n "checking for __dlopen... " >&6; }
21982
 
if test "${ac_cv_func___dlopen+set}" = set; then
21983
 
  $as_echo_n "(cached) " >&6
21984
 
else
21985
 
  cat >conftest.$ac_ext <<_ACEOF
21986
 
/* confdefs.h.  */
21987
 
_ACEOF
21988
 
cat confdefs.h >>conftest.$ac_ext
21989
 
cat >>conftest.$ac_ext <<_ACEOF
21990
 
/* end confdefs.h.  */
21991
 
/* Define __dlopen to an innocuous variant, in case <limits.h> declares __dlopen.
21992
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21993
 
#define __dlopen innocuous___dlopen
21994
 
 
21995
 
/* System header to define __stub macros and hopefully few prototypes,
21996
 
    which can conflict with char __dlopen (); below.
21997
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21998
 
    <limits.h> exists even on freestanding compilers.  */
21999
 
 
22000
 
#ifdef __STDC__
22001
 
# include <limits.h>
22002
 
#else
22003
 
# include <assert.h>
22004
 
#endif
22005
 
 
22006
 
#undef __dlopen
22007
 
 
22008
 
/* Override any GCC internal prototype to avoid an error.
22009
 
   Use char because int might match the return type of a GCC
22010
 
   builtin and then its argument prototype would still apply.  */
22011
 
#ifdef __cplusplus
22012
 
extern "C"
22013
 
#endif
22014
 
char __dlopen ();
22015
 
/* The GNU C library defines this for functions which it implements
22016
 
    to always fail with ENOSYS.  Some functions are actually named
22017
 
    something starting with __ and the normal name is an alias.  */
22018
 
#if defined __stub___dlopen || defined __stub_____dlopen
22019
 
choke me
22020
 
#endif
22021
 
 
22022
 
int
22023
 
main ()
22024
 
{
22025
 
return __dlopen ();
22026
 
  ;
22027
 
  return 0;
22028
 
}
22029
 
_ACEOF
22030
 
rm -f conftest.$ac_objext conftest$ac_exeext
22031
 
if { (ac_try="$ac_link"
22032
 
case "(($ac_try" in
22033
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034
 
  *) ac_try_echo=$ac_try;;
22035
 
esac
22036
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22037
 
$as_echo "$ac_try_echo") >&5
22038
 
  (eval "$ac_link") 2>conftest.er1
22039
 
  ac_status=$?
22040
 
  grep -v '^ *+' conftest.er1 >conftest.err
22041
 
  rm -f conftest.er1
22042
 
  cat conftest.err >&5
22043
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044
 
  (exit $ac_status); } && {
22045
 
         test -z "$ac_c_werror_flag" ||
22046
 
         test ! -s conftest.err
22047
 
       } && test -s conftest$ac_exeext && {
22048
 
         test "$cross_compiling" = yes ||
22049
 
         $as_test_x conftest$ac_exeext
22050
 
       }; then
22051
 
  ac_cv_func___dlopen=yes
22052
 
else
22053
 
  $as_echo "$as_me: failed program was:" >&5
22054
 
sed 's/^/| /' conftest.$ac_ext >&5
22055
 
 
22056
 
        ac_cv_func___dlopen=no
22057
 
fi
22058
 
 
22059
 
rm -rf conftest.dSYM
22060
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22061
 
      conftest$ac_exeext conftest.$ac_ext
22062
 
fi
22063
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___dlopen" >&5
22064
 
$as_echo "$ac_cv_func___dlopen" >&6; }
22065
 
if test "x$ac_cv_func___dlopen" = x""yes; then
22066
 
  found=yes
22067
 
else
22068
 
  found=no
22069
 
fi
22070
 
 
22071
 
fi
22072
 
 
22073
 
 
22074
 
  case $found in
22075
 
  yes) 
22076
 
    
22077
 
cat >>confdefs.h <<\_ACEOF
22078
 
@%:@define HAVE_DLOPEN 1
22079
 
_ACEOF
22080
 
 
22081
 
    ac_cv_func_dlopen=yes
22082
 
  ;;
22083
 
  
22084
 
    *) 
22085
 
  
22086
 
  unset ac_cv_lib_dl_dlopen
22087
 
  unset ac_cv_lib_dl___dlopen
22088
 
  unset found
22089
 
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22090
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
22091
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22092
 
  $as_echo_n "(cached) " >&6
22093
 
else
22094
 
  ac_check_lib_save_LIBS=$LIBS
22095
 
LIBS="-ldl  $LIBS"
22096
 
cat >conftest.$ac_ext <<_ACEOF
22097
 
/* confdefs.h.  */
22098
 
_ACEOF
22099
 
cat confdefs.h >>conftest.$ac_ext
22100
 
cat >>conftest.$ac_ext <<_ACEOF
22101
 
/* end confdefs.h.  */
22102
 
 
22103
 
/* Override any GCC internal prototype to avoid an error.
22104
 
   Use char because int might match the return type of a GCC
22105
 
   builtin and then its argument prototype would still apply.  */
22106
 
#ifdef __cplusplus
22107
 
extern "C"
22108
 
#endif
22109
 
char dlopen ();
22110
 
int
22111
 
main ()
22112
 
{
22113
 
return dlopen ();
22114
 
  ;
22115
 
  return 0;
22116
 
}
22117
 
_ACEOF
22118
 
rm -f conftest.$ac_objext conftest$ac_exeext
22119
 
if { (ac_try="$ac_link"
22120
 
case "(($ac_try" in
22121
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122
 
  *) ac_try_echo=$ac_try;;
22123
 
esac
22124
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22125
 
$as_echo "$ac_try_echo") >&5
22126
 
  (eval "$ac_link") 2>conftest.er1
22127
 
  ac_status=$?
22128
 
  grep -v '^ *+' conftest.er1 >conftest.err
22129
 
  rm -f conftest.er1
22130
 
  cat conftest.err >&5
22131
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132
 
  (exit $ac_status); } && {
22133
 
         test -z "$ac_c_werror_flag" ||
22134
 
         test ! -s conftest.err
22135
 
       } && test -s conftest$ac_exeext && {
22136
 
         test "$cross_compiling" = yes ||
22137
 
         $as_test_x conftest$ac_exeext
22138
 
       }; then
22139
 
  ac_cv_lib_dl_dlopen=yes
22140
 
else
22141
 
  $as_echo "$as_me: failed program was:" >&5
22142
 
sed 's/^/| /' conftest.$ac_ext >&5
22143
 
 
22144
 
        ac_cv_lib_dl_dlopen=no
22145
 
fi
22146
 
 
22147
 
rm -rf conftest.dSYM
22148
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22149
 
      conftest$ac_exeext conftest.$ac_ext
22150
 
LIBS=$ac_check_lib_save_LIBS
22151
 
fi
22152
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22153
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22154
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
22155
 
  found=yes
22156
 
else
22157
 
  
22158
 
    { $as_echo "$as_me:$LINENO: checking for __dlopen in -ldl" >&5
22159
 
$as_echo_n "checking for __dlopen in -ldl... " >&6; }
22160
 
if test "${ac_cv_lib_dl___dlopen+set}" = set; then
22161
 
  $as_echo_n "(cached) " >&6
22162
 
else
22163
 
  ac_check_lib_save_LIBS=$LIBS
22164
 
LIBS="-ldl  $LIBS"
22165
 
cat >conftest.$ac_ext <<_ACEOF
22166
 
/* confdefs.h.  */
22167
 
_ACEOF
22168
 
cat confdefs.h >>conftest.$ac_ext
22169
 
cat >>conftest.$ac_ext <<_ACEOF
22170
 
/* end confdefs.h.  */
22171
 
 
22172
 
/* Override any GCC internal prototype to avoid an error.
22173
 
   Use char because int might match the return type of a GCC
22174
 
   builtin and then its argument prototype would still apply.  */
22175
 
#ifdef __cplusplus
22176
 
extern "C"
22177
 
#endif
22178
 
char __dlopen ();
22179
 
int
22180
 
main ()
22181
 
{
22182
 
return __dlopen ();
22183
 
  ;
22184
 
  return 0;
22185
 
}
22186
 
_ACEOF
22187
 
rm -f conftest.$ac_objext conftest$ac_exeext
22188
 
if { (ac_try="$ac_link"
22189
 
case "(($ac_try" in
22190
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191
 
  *) ac_try_echo=$ac_try;;
22192
 
esac
22193
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22194
 
$as_echo "$ac_try_echo") >&5
22195
 
  (eval "$ac_link") 2>conftest.er1
22196
 
  ac_status=$?
22197
 
  grep -v '^ *+' conftest.er1 >conftest.err
22198
 
  rm -f conftest.er1
22199
 
  cat conftest.err >&5
22200
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201
 
  (exit $ac_status); } && {
22202
 
         test -z "$ac_c_werror_flag" ||
22203
 
         test ! -s conftest.err
22204
 
       } && test -s conftest$ac_exeext && {
22205
 
         test "$cross_compiling" = yes ||
22206
 
         $as_test_x conftest$ac_exeext
22207
 
       }; then
22208
 
  ac_cv_lib_dl___dlopen=yes
22209
 
else
22210
 
  $as_echo "$as_me: failed program was:" >&5
22211
 
sed 's/^/| /' conftest.$ac_ext >&5
22212
 
 
22213
 
        ac_cv_lib_dl___dlopen=no
22214
 
fi
22215
 
 
22216
 
rm -rf conftest.dSYM
22217
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22218
 
      conftest$ac_exeext conftest.$ac_ext
22219
 
LIBS=$ac_check_lib_save_LIBS
22220
 
fi
22221
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl___dlopen" >&5
22222
 
$as_echo "$ac_cv_lib_dl___dlopen" >&6; }
22223
 
if test "x$ac_cv_lib_dl___dlopen" = x""yes; then
22224
 
  found=yes
22225
 
else
22226
 
  found=no
22227
 
fi
22228
 
 
22229
 
  
22230
 
fi
22231
 
 
22232
 
 
22233
 
  if test "$found" = "yes"; then
22234
 
    ac_libs=$LIBS
22235
 
    LIBS="$LIBS -ldl"
22236
 
    if test "$cross_compiling" = yes; then
22237
 
  found=no
22238
 
else
22239
 
  cat >conftest.$ac_ext <<_ACEOF
22240
 
/* confdefs.h.  */
22241
 
_ACEOF
22242
 
cat confdefs.h >>conftest.$ac_ext
22243
 
cat >>conftest.$ac_ext <<_ACEOF
22244
 
/* end confdefs.h.  */
22245
 
main() { return (0); }
22246
 
_ACEOF
22247
 
rm -f conftest$ac_exeext
22248
 
if { (ac_try="$ac_link"
22249
 
case "(($ac_try" in
22250
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251
 
  *) ac_try_echo=$ac_try;;
22252
 
esac
22253
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22254
 
$as_echo "$ac_try_echo") >&5
22255
 
  (eval "$ac_link") 2>&5
22256
 
  ac_status=$?
22257
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22259
 
  { (case "(($ac_try" in
22260
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261
 
  *) ac_try_echo=$ac_try;;
22262
 
esac
22263
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22264
 
$as_echo "$ac_try_echo") >&5
22265
 
  (eval "$ac_try") 2>&5
22266
 
  ac_status=$?
22267
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268
 
  (exit $ac_status); }; }; then
22269
 
  found=yes
22270
 
else
22271
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
22272
 
$as_echo "$as_me: failed program was:" >&5
22273
 
sed 's/^/| /' conftest.$ac_ext >&5
22274
 
 
22275
 
( exit $ac_status )
22276
 
found=no
22277
 
fi
22278
 
rm -rf conftest.dSYM
22279
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22280
 
fi
22281
 
 
22282
 
 
22283
 
    LIBS=$ac_libs
22284
 
  fi
22285
 
 
22286
 
  if test "$found" = "yes"; then
22287
 
    
22288
 
  
22289
 
  case dl in
22290
 
  c|c_r|pthread*) ;;
22291
 
  *) 
22292
 
      LIBS="-ldl $LIBS" 
22293
 
   ;;
22294
 
  esac
22295
 
 
22296
 
 
22297
 
    
22298
 
cat >>confdefs.h <<\_ACEOF
22299
 
@%:@define HAVE_DLOPEN 1
22300
 
_ACEOF
22301
 
 
22302
 
    
22303
 
cat >>confdefs.h <<\_ACEOF
22304
 
@%:@define HAVE_LIBDL 1
22305
 
_ACEOF
22306
 
 
22307
 
    ac_cv_func_dlopen=yes
22308
 
  else
22309
 
    
22310
 
  :
22311
 
 
22312
 
  fi
22313
 
  
22314
 
 ;;
22315
 
  
22316
 
  esac
22317
 
 
22318
 
if test "$ac_cv_func_dlopen" = "yes"; then
22319
 
  
22320
 
cat >>confdefs.h <<\_ACEOF
22321
 
@%:@define HAVE_LIBDL 1
22322
 
_ACEOF
22323
 
 
22324
 
fi
22325
 
 
22326
 
{ $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
22327
 
$as_echo_n "checking for sin in -lm... " >&6; }
22328
 
if test "${ac_cv_lib_m_sin+set}" = set; then
22329
 
  $as_echo_n "(cached) " >&6
22330
 
else
22331
 
  ac_check_lib_save_LIBS=$LIBS
22332
 
LIBS="-lm  $LIBS"
22333
 
cat >conftest.$ac_ext <<_ACEOF
22334
 
/* confdefs.h.  */
22335
 
_ACEOF
22336
 
cat confdefs.h >>conftest.$ac_ext
22337
 
cat >>conftest.$ac_ext <<_ACEOF
22338
 
/* end confdefs.h.  */
22339
 
 
22340
 
/* Override any GCC internal prototype to avoid an error.
22341
 
   Use char because int might match the return type of a GCC
22342
 
   builtin and then its argument prototype would still apply.  */
22343
 
#ifdef __cplusplus
22344
 
extern "C"
22345
 
#endif
22346
 
char sin ();
22347
 
int
22348
 
main ()
22349
 
{
22350
 
return sin ();
22351
 
  ;
22352
 
  return 0;
22353
 
}
22354
 
_ACEOF
22355
 
rm -f conftest.$ac_objext conftest$ac_exeext
22356
 
if { (ac_try="$ac_link"
22357
 
case "(($ac_try" in
22358
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359
 
  *) ac_try_echo=$ac_try;;
22360
 
esac
22361
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22362
 
$as_echo "$ac_try_echo") >&5
22363
 
  (eval "$ac_link") 2>conftest.er1
22364
 
  ac_status=$?
22365
 
  grep -v '^ *+' conftest.er1 >conftest.err
22366
 
  rm -f conftest.er1
22367
 
  cat conftest.err >&5
22368
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369
 
  (exit $ac_status); } && {
22370
 
         test -z "$ac_c_werror_flag" ||
22371
 
         test ! -s conftest.err
22372
 
       } && test -s conftest$ac_exeext && {
22373
 
         test "$cross_compiling" = yes ||
22374
 
         $as_test_x conftest$ac_exeext
22375
 
       }; then
22376
 
  ac_cv_lib_m_sin=yes
22377
 
else
22378
 
  $as_echo "$as_me: failed program was:" >&5
22379
 
sed 's/^/| /' conftest.$ac_ext >&5
22380
 
 
22381
 
        ac_cv_lib_m_sin=no
22382
 
fi
22383
 
 
22384
 
rm -rf conftest.dSYM
22385
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22386
 
      conftest$ac_exeext conftest.$ac_ext
22387
 
LIBS=$ac_check_lib_save_LIBS
22388
 
fi
22389
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
22390
 
$as_echo "$ac_cv_lib_m_sin" >&6; }
22391
 
if test "x$ac_cv_lib_m_sin" = x""yes; then
22392
 
  cat >>confdefs.h <<_ACEOF
22393
 
@%:@define HAVE_LIBM 1
22394
 
_ACEOF
22395
 
 
22396
 
  LIBS="-lm $LIBS"
22397
 
 
22398
 
fi
22399
 
 
22400
 
 
22401
 
 
22402
 
  unset ac_cv_func_inet_aton
22403
 
  unset ac_cv_func___inet_aton
22404
 
  unset found
22405
 
  
22406
 
  { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
22407
 
$as_echo_n "checking for inet_aton... " >&6; }
22408
 
if test "${ac_cv_func_inet_aton+set}" = set; then
22409
 
  $as_echo_n "(cached) " >&6
22410
 
else
22411
 
  cat >conftest.$ac_ext <<_ACEOF
22412
 
/* confdefs.h.  */
22413
 
_ACEOF
22414
 
cat confdefs.h >>conftest.$ac_ext
22415
 
cat >>conftest.$ac_ext <<_ACEOF
22416
 
/* end confdefs.h.  */
22417
 
/* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
22418
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22419
 
#define inet_aton innocuous_inet_aton
22420
 
 
22421
 
/* System header to define __stub macros and hopefully few prototypes,
22422
 
    which can conflict with char inet_aton (); below.
22423
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22424
 
    <limits.h> exists even on freestanding compilers.  */
22425
 
 
22426
 
#ifdef __STDC__
22427
 
# include <limits.h>
22428
 
#else
22429
 
# include <assert.h>
22430
 
#endif
22431
 
 
22432
 
#undef inet_aton
22433
 
 
22434
 
/* Override any GCC internal prototype to avoid an error.
22435
 
   Use char because int might match the return type of a GCC
22436
 
   builtin and then its argument prototype would still apply.  */
22437
 
#ifdef __cplusplus
22438
 
extern "C"
22439
 
#endif
22440
 
char inet_aton ();
22441
 
/* The GNU C library defines this for functions which it implements
22442
 
    to always fail with ENOSYS.  Some functions are actually named
22443
 
    something starting with __ and the normal name is an alias.  */
22444
 
#if defined __stub_inet_aton || defined __stub___inet_aton
22445
 
choke me
22446
 
#endif
22447
 
 
22448
 
int
22449
 
main ()
22450
 
{
22451
 
return inet_aton ();
22452
 
  ;
22453
 
  return 0;
22454
 
}
22455
 
_ACEOF
22456
 
rm -f conftest.$ac_objext conftest$ac_exeext
22457
 
if { (ac_try="$ac_link"
22458
 
case "(($ac_try" in
22459
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460
 
  *) ac_try_echo=$ac_try;;
22461
 
esac
22462
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22463
 
$as_echo "$ac_try_echo") >&5
22464
 
  (eval "$ac_link") 2>conftest.er1
22465
 
  ac_status=$?
22466
 
  grep -v '^ *+' conftest.er1 >conftest.err
22467
 
  rm -f conftest.er1
22468
 
  cat conftest.err >&5
22469
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470
 
  (exit $ac_status); } && {
22471
 
         test -z "$ac_c_werror_flag" ||
22472
 
         test ! -s conftest.err
22473
 
       } && test -s conftest$ac_exeext && {
22474
 
         test "$cross_compiling" = yes ||
22475
 
         $as_test_x conftest$ac_exeext
22476
 
       }; then
22477
 
  ac_cv_func_inet_aton=yes
22478
 
else
22479
 
  $as_echo "$as_me: failed program was:" >&5
22480
 
sed 's/^/| /' conftest.$ac_ext >&5
22481
 
 
22482
 
        ac_cv_func_inet_aton=no
22483
 
fi
22484
 
 
22485
 
rm -rf conftest.dSYM
22486
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22487
 
      conftest$ac_exeext conftest.$ac_ext
22488
 
fi
22489
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
22490
 
$as_echo "$ac_cv_func_inet_aton" >&6; }
22491
 
if test "x$ac_cv_func_inet_aton" = x""yes; then
22492
 
  found=yes
22493
 
else
22494
 
   { $as_echo "$as_me:$LINENO: checking for __inet_aton" >&5
22495
 
$as_echo_n "checking for __inet_aton... " >&6; }
22496
 
if test "${ac_cv_func___inet_aton+set}" = set; then
22497
 
  $as_echo_n "(cached) " >&6
22498
 
else
22499
 
  cat >conftest.$ac_ext <<_ACEOF
22500
 
/* confdefs.h.  */
22501
 
_ACEOF
22502
 
cat confdefs.h >>conftest.$ac_ext
22503
 
cat >>conftest.$ac_ext <<_ACEOF
22504
 
/* end confdefs.h.  */
22505
 
/* Define __inet_aton to an innocuous variant, in case <limits.h> declares __inet_aton.
22506
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22507
 
#define __inet_aton innocuous___inet_aton
22508
 
 
22509
 
/* System header to define __stub macros and hopefully few prototypes,
22510
 
    which can conflict with char __inet_aton (); below.
22511
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22512
 
    <limits.h> exists even on freestanding compilers.  */
22513
 
 
22514
 
#ifdef __STDC__
22515
 
# include <limits.h>
22516
 
#else
22517
 
# include <assert.h>
22518
 
#endif
22519
 
 
22520
 
#undef __inet_aton
22521
 
 
22522
 
/* Override any GCC internal prototype to avoid an error.
22523
 
   Use char because int might match the return type of a GCC
22524
 
   builtin and then its argument prototype would still apply.  */
22525
 
#ifdef __cplusplus
22526
 
extern "C"
22527
 
#endif
22528
 
char __inet_aton ();
22529
 
/* The GNU C library defines this for functions which it implements
22530
 
    to always fail with ENOSYS.  Some functions are actually named
22531
 
    something starting with __ and the normal name is an alias.  */
22532
 
#if defined __stub___inet_aton || defined __stub_____inet_aton
22533
 
choke me
22534
 
#endif
22535
 
 
22536
 
int
22537
 
main ()
22538
 
{
22539
 
return __inet_aton ();
22540
 
  ;
22541
 
  return 0;
22542
 
}
22543
 
_ACEOF
22544
 
rm -f conftest.$ac_objext conftest$ac_exeext
22545
 
if { (ac_try="$ac_link"
22546
 
case "(($ac_try" in
22547
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548
 
  *) ac_try_echo=$ac_try;;
22549
 
esac
22550
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22551
 
$as_echo "$ac_try_echo") >&5
22552
 
  (eval "$ac_link") 2>conftest.er1
22553
 
  ac_status=$?
22554
 
  grep -v '^ *+' conftest.er1 >conftest.err
22555
 
  rm -f conftest.er1
22556
 
  cat conftest.err >&5
22557
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558
 
  (exit $ac_status); } && {
22559
 
         test -z "$ac_c_werror_flag" ||
22560
 
         test ! -s conftest.err
22561
 
       } && test -s conftest$ac_exeext && {
22562
 
         test "$cross_compiling" = yes ||
22563
 
         $as_test_x conftest$ac_exeext
22564
 
       }; then
22565
 
  ac_cv_func___inet_aton=yes
22566
 
else
22567
 
  $as_echo "$as_me: failed program was:" >&5
22568
 
sed 's/^/| /' conftest.$ac_ext >&5
22569
 
 
22570
 
        ac_cv_func___inet_aton=no
22571
 
fi
22572
 
 
22573
 
rm -rf conftest.dSYM
22574
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22575
 
      conftest$ac_exeext conftest.$ac_ext
22576
 
fi
22577
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
22578
 
$as_echo "$ac_cv_func___inet_aton" >&6; }
22579
 
if test "x$ac_cv_func___inet_aton" = x""yes; then
22580
 
  found=yes
22581
 
else
22582
 
  found=no
22583
 
fi
22584
 
 
22585
 
fi
22586
 
 
22587
 
 
22588
 
  case $found in
22589
 
  yes) 
22590
 
    
22591
 
cat >>confdefs.h <<\_ACEOF
22592
 
@%:@define HAVE_INET_ATON 1
22593
 
_ACEOF
22594
 
 
22595
 
    ac_cv_func_inet_aton=yes
22596
 
  ;;
22597
 
  
22598
 
    *) 
22599
 
  
22600
 
  unset ac_cv_lib_resolv_inet_aton
22601
 
  unset ac_cv_lib_resolv___inet_aton
22602
 
  unset found
22603
 
  { $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
22604
 
$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
22605
 
if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
22606
 
  $as_echo_n "(cached) " >&6
22607
 
else
22608
 
  ac_check_lib_save_LIBS=$LIBS
22609
 
LIBS="-lresolv  $LIBS"
22610
 
cat >conftest.$ac_ext <<_ACEOF
22611
 
/* confdefs.h.  */
22612
 
_ACEOF
22613
 
cat confdefs.h >>conftest.$ac_ext
22614
 
cat >>conftest.$ac_ext <<_ACEOF
22615
 
/* end confdefs.h.  */
22616
 
 
22617
 
/* Override any GCC internal prototype to avoid an error.
22618
 
   Use char because int might match the return type of a GCC
22619
 
   builtin and then its argument prototype would still apply.  */
22620
 
#ifdef __cplusplus
22621
 
extern "C"
22622
 
#endif
22623
 
char inet_aton ();
22624
 
int
22625
 
main ()
22626
 
{
22627
 
return inet_aton ();
22628
 
  ;
22629
 
  return 0;
22630
 
}
22631
 
_ACEOF
22632
 
rm -f conftest.$ac_objext conftest$ac_exeext
22633
 
if { (ac_try="$ac_link"
22634
 
case "(($ac_try" in
22635
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636
 
  *) ac_try_echo=$ac_try;;
22637
 
esac
22638
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22639
 
$as_echo "$ac_try_echo") >&5
22640
 
  (eval "$ac_link") 2>conftest.er1
22641
 
  ac_status=$?
22642
 
  grep -v '^ *+' conftest.er1 >conftest.err
22643
 
  rm -f conftest.er1
22644
 
  cat conftest.err >&5
22645
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646
 
  (exit $ac_status); } && {
22647
 
         test -z "$ac_c_werror_flag" ||
22648
 
         test ! -s conftest.err
22649
 
       } && test -s conftest$ac_exeext && {
22650
 
         test "$cross_compiling" = yes ||
22651
 
         $as_test_x conftest$ac_exeext
22652
 
       }; then
22653
 
  ac_cv_lib_resolv_inet_aton=yes
22654
 
else
22655
 
  $as_echo "$as_me: failed program was:" >&5
22656
 
sed 's/^/| /' conftest.$ac_ext >&5
22657
 
 
22658
 
        ac_cv_lib_resolv_inet_aton=no
22659
 
fi
22660
 
 
22661
 
rm -rf conftest.dSYM
22662
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22663
 
      conftest$ac_exeext conftest.$ac_ext
22664
 
LIBS=$ac_check_lib_save_LIBS
22665
 
fi
22666
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
22667
 
$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
22668
 
if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then
22669
 
  found=yes
22670
 
else
22671
 
  
22672
 
    { $as_echo "$as_me:$LINENO: checking for __inet_aton in -lresolv" >&5
22673
 
$as_echo_n "checking for __inet_aton in -lresolv... " >&6; }
22674
 
if test "${ac_cv_lib_resolv___inet_aton+set}" = set; then
22675
 
  $as_echo_n "(cached) " >&6
22676
 
else
22677
 
  ac_check_lib_save_LIBS=$LIBS
22678
 
LIBS="-lresolv  $LIBS"
22679
 
cat >conftest.$ac_ext <<_ACEOF
22680
 
/* confdefs.h.  */
22681
 
_ACEOF
22682
 
cat confdefs.h >>conftest.$ac_ext
22683
 
cat >>conftest.$ac_ext <<_ACEOF
22684
 
/* end confdefs.h.  */
22685
 
 
22686
 
/* Override any GCC internal prototype to avoid an error.
22687
 
   Use char because int might match the return type of a GCC
22688
 
   builtin and then its argument prototype would still apply.  */
22689
 
#ifdef __cplusplus
22690
 
extern "C"
22691
 
#endif
22692
 
char __inet_aton ();
22693
 
int
22694
 
main ()
22695
 
{
22696
 
return __inet_aton ();
22697
 
  ;
22698
 
  return 0;
22699
 
}
22700
 
_ACEOF
22701
 
rm -f conftest.$ac_objext conftest$ac_exeext
22702
 
if { (ac_try="$ac_link"
22703
 
case "(($ac_try" in
22704
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705
 
  *) ac_try_echo=$ac_try;;
22706
 
esac
22707
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22708
 
$as_echo "$ac_try_echo") >&5
22709
 
  (eval "$ac_link") 2>conftest.er1
22710
 
  ac_status=$?
22711
 
  grep -v '^ *+' conftest.er1 >conftest.err
22712
 
  rm -f conftest.er1
22713
 
  cat conftest.err >&5
22714
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715
 
  (exit $ac_status); } && {
22716
 
         test -z "$ac_c_werror_flag" ||
22717
 
         test ! -s conftest.err
22718
 
       } && test -s conftest$ac_exeext && {
22719
 
         test "$cross_compiling" = yes ||
22720
 
         $as_test_x conftest$ac_exeext
22721
 
       }; then
22722
 
  ac_cv_lib_resolv___inet_aton=yes
22723
 
else
22724
 
  $as_echo "$as_me: failed program was:" >&5
22725
 
sed 's/^/| /' conftest.$ac_ext >&5
22726
 
 
22727
 
        ac_cv_lib_resolv___inet_aton=no
22728
 
fi
22729
 
 
22730
 
rm -rf conftest.dSYM
22731
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22732
 
      conftest$ac_exeext conftest.$ac_ext
22733
 
LIBS=$ac_check_lib_save_LIBS
22734
 
fi
22735
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___inet_aton" >&5
22736
 
$as_echo "$ac_cv_lib_resolv___inet_aton" >&6; }
22737
 
if test "x$ac_cv_lib_resolv___inet_aton" = x""yes; then
22738
 
  found=yes
22739
 
else
22740
 
  found=no
22741
 
fi
22742
 
 
22743
 
  
22744
 
fi
22745
 
 
22746
 
 
22747
 
  if test "$found" = "yes"; then
22748
 
    ac_libs=$LIBS
22749
 
    LIBS="$LIBS -lresolv"
22750
 
    if test "$cross_compiling" = yes; then
22751
 
  found=no
22752
 
else
22753
 
  cat >conftest.$ac_ext <<_ACEOF
22754
 
/* confdefs.h.  */
22755
 
_ACEOF
22756
 
cat confdefs.h >>conftest.$ac_ext
22757
 
cat >>conftest.$ac_ext <<_ACEOF
22758
 
/* end confdefs.h.  */
22759
 
main() { return (0); }
22760
 
_ACEOF
22761
 
rm -f conftest$ac_exeext
22762
 
if { (ac_try="$ac_link"
22763
 
case "(($ac_try" in
22764
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765
 
  *) ac_try_echo=$ac_try;;
22766
 
esac
22767
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22768
 
$as_echo "$ac_try_echo") >&5
22769
 
  (eval "$ac_link") 2>&5
22770
 
  ac_status=$?
22771
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22773
 
  { (case "(($ac_try" in
22774
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775
 
  *) ac_try_echo=$ac_try;;
22776
 
esac
22777
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22778
 
$as_echo "$ac_try_echo") >&5
22779
 
  (eval "$ac_try") 2>&5
22780
 
  ac_status=$?
22781
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782
 
  (exit $ac_status); }; }; then
22783
 
  found=yes
22784
 
else
22785
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
22786
 
$as_echo "$as_me: failed program was:" >&5
22787
 
sed 's/^/| /' conftest.$ac_ext >&5
22788
 
 
22789
 
( exit $ac_status )
22790
 
found=no
22791
 
fi
22792
 
rm -rf conftest.dSYM
22793
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22794
 
fi
22795
 
 
22796
 
 
22797
 
    LIBS=$ac_libs
22798
 
  fi
22799
 
 
22800
 
  if test "$found" = "yes"; then
22801
 
    
22802
 
  
22803
 
  case resolv in
22804
 
  c|c_r|pthread*) ;;
22805
 
  *) 
22806
 
      LIBS="-lresolv $LIBS" 
22807
 
   ;;
22808
 
  esac
22809
 
 
22810
 
 
22811
 
    
22812
 
cat >>confdefs.h <<\_ACEOF
22813
 
@%:@define HAVE_INET_ATON 1
22814
 
_ACEOF
22815
 
 
22816
 
    
22817
 
cat >>confdefs.h <<\_ACEOF
22818
 
@%:@define HAVE_LIBRESOLV 1
22819
 
_ACEOF
22820
 
 
22821
 
    ac_cv_func_inet_aton=yes
22822
 
  else
22823
 
    
22824
 
  
22825
 
  unset ac_cv_lib_bind_inet_aton
22826
 
  unset ac_cv_lib_bind___inet_aton
22827
 
  unset found
22828
 
  { $as_echo "$as_me:$LINENO: checking for inet_aton in -lbind" >&5
22829
 
$as_echo_n "checking for inet_aton in -lbind... " >&6; }
22830
 
if test "${ac_cv_lib_bind_inet_aton+set}" = set; then
22831
 
  $as_echo_n "(cached) " >&6
22832
 
else
22833
 
  ac_check_lib_save_LIBS=$LIBS
22834
 
LIBS="-lbind  $LIBS"
22835
 
cat >conftest.$ac_ext <<_ACEOF
22836
 
/* confdefs.h.  */
22837
 
_ACEOF
22838
 
cat confdefs.h >>conftest.$ac_ext
22839
 
cat >>conftest.$ac_ext <<_ACEOF
22840
 
/* end confdefs.h.  */
22841
 
 
22842
 
/* Override any GCC internal prototype to avoid an error.
22843
 
   Use char because int might match the return type of a GCC
22844
 
   builtin and then its argument prototype would still apply.  */
22845
 
#ifdef __cplusplus
22846
 
extern "C"
22847
 
#endif
22848
 
char inet_aton ();
22849
 
int
22850
 
main ()
22851
 
{
22852
 
return inet_aton ();
22853
 
  ;
22854
 
  return 0;
22855
 
}
22856
 
_ACEOF
22857
 
rm -f conftest.$ac_objext conftest$ac_exeext
22858
 
if { (ac_try="$ac_link"
22859
 
case "(($ac_try" in
22860
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861
 
  *) ac_try_echo=$ac_try;;
22862
 
esac
22863
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22864
 
$as_echo "$ac_try_echo") >&5
22865
 
  (eval "$ac_link") 2>conftest.er1
22866
 
  ac_status=$?
22867
 
  grep -v '^ *+' conftest.er1 >conftest.err
22868
 
  rm -f conftest.er1
22869
 
  cat conftest.err >&5
22870
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871
 
  (exit $ac_status); } && {
22872
 
         test -z "$ac_c_werror_flag" ||
22873
 
         test ! -s conftest.err
22874
 
       } && test -s conftest$ac_exeext && {
22875
 
         test "$cross_compiling" = yes ||
22876
 
         $as_test_x conftest$ac_exeext
22877
 
       }; then
22878
 
  ac_cv_lib_bind_inet_aton=yes
22879
 
else
22880
 
  $as_echo "$as_me: failed program was:" >&5
22881
 
sed 's/^/| /' conftest.$ac_ext >&5
22882
 
 
22883
 
        ac_cv_lib_bind_inet_aton=no
22884
 
fi
22885
 
 
22886
 
rm -rf conftest.dSYM
22887
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22888
 
      conftest$ac_exeext conftest.$ac_ext
22889
 
LIBS=$ac_check_lib_save_LIBS
22890
 
fi
22891
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_aton" >&5
22892
 
$as_echo "$ac_cv_lib_bind_inet_aton" >&6; }
22893
 
if test "x$ac_cv_lib_bind_inet_aton" = x""yes; then
22894
 
  found=yes
22895
 
else
22896
 
  
22897
 
    { $as_echo "$as_me:$LINENO: checking for __inet_aton in -lbind" >&5
22898
 
$as_echo_n "checking for __inet_aton in -lbind... " >&6; }
22899
 
if test "${ac_cv_lib_bind___inet_aton+set}" = set; then
22900
 
  $as_echo_n "(cached) " >&6
22901
 
else
22902
 
  ac_check_lib_save_LIBS=$LIBS
22903
 
LIBS="-lbind  $LIBS"
22904
 
cat >conftest.$ac_ext <<_ACEOF
22905
 
/* confdefs.h.  */
22906
 
_ACEOF
22907
 
cat confdefs.h >>conftest.$ac_ext
22908
 
cat >>conftest.$ac_ext <<_ACEOF
22909
 
/* end confdefs.h.  */
22910
 
 
22911
 
/* Override any GCC internal prototype to avoid an error.
22912
 
   Use char because int might match the return type of a GCC
22913
 
   builtin and then its argument prototype would still apply.  */
22914
 
#ifdef __cplusplus
22915
 
extern "C"
22916
 
#endif
22917
 
char __inet_aton ();
22918
 
int
22919
 
main ()
22920
 
{
22921
 
return __inet_aton ();
22922
 
  ;
22923
 
  return 0;
22924
 
}
22925
 
_ACEOF
22926
 
rm -f conftest.$ac_objext conftest$ac_exeext
22927
 
if { (ac_try="$ac_link"
22928
 
case "(($ac_try" in
22929
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930
 
  *) ac_try_echo=$ac_try;;
22931
 
esac
22932
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22933
 
$as_echo "$ac_try_echo") >&5
22934
 
  (eval "$ac_link") 2>conftest.er1
22935
 
  ac_status=$?
22936
 
  grep -v '^ *+' conftest.er1 >conftest.err
22937
 
  rm -f conftest.er1
22938
 
  cat conftest.err >&5
22939
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940
 
  (exit $ac_status); } && {
22941
 
         test -z "$ac_c_werror_flag" ||
22942
 
         test ! -s conftest.err
22943
 
       } && test -s conftest$ac_exeext && {
22944
 
         test "$cross_compiling" = yes ||
22945
 
         $as_test_x conftest$ac_exeext
22946
 
       }; then
22947
 
  ac_cv_lib_bind___inet_aton=yes
22948
 
else
22949
 
  $as_echo "$as_me: failed program was:" >&5
22950
 
sed 's/^/| /' conftest.$ac_ext >&5
22951
 
 
22952
 
        ac_cv_lib_bind___inet_aton=no
22953
 
fi
22954
 
 
22955
 
rm -rf conftest.dSYM
22956
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22957
 
      conftest$ac_exeext conftest.$ac_ext
22958
 
LIBS=$ac_check_lib_save_LIBS
22959
 
fi
22960
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_aton" >&5
22961
 
$as_echo "$ac_cv_lib_bind___inet_aton" >&6; }
22962
 
if test "x$ac_cv_lib_bind___inet_aton" = x""yes; then
22963
 
  found=yes
22964
 
else
22965
 
  found=no
22966
 
fi
22967
 
 
22968
 
  
22969
 
fi
22970
 
 
22971
 
 
22972
 
  if test "$found" = "yes"; then
22973
 
    ac_libs=$LIBS
22974
 
    LIBS="$LIBS -lbind"
22975
 
    if test "$cross_compiling" = yes; then
22976
 
  found=no
22977
 
else
22978
 
  cat >conftest.$ac_ext <<_ACEOF
22979
 
/* confdefs.h.  */
22980
 
_ACEOF
22981
 
cat confdefs.h >>conftest.$ac_ext
22982
 
cat >>conftest.$ac_ext <<_ACEOF
22983
 
/* end confdefs.h.  */
22984
 
main() { return (0); }
22985
 
_ACEOF
22986
 
rm -f conftest$ac_exeext
22987
 
if { (ac_try="$ac_link"
22988
 
case "(($ac_try" in
22989
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22990
 
  *) ac_try_echo=$ac_try;;
22991
 
esac
22992
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22993
 
$as_echo "$ac_try_echo") >&5
22994
 
  (eval "$ac_link") 2>&5
22995
 
  ac_status=$?
22996
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22998
 
  { (case "(($ac_try" in
22999
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000
 
  *) ac_try_echo=$ac_try;;
23001
 
esac
23002
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23003
 
$as_echo "$ac_try_echo") >&5
23004
 
  (eval "$ac_try") 2>&5
23005
 
  ac_status=$?
23006
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007
 
  (exit $ac_status); }; }; then
23008
 
  found=yes
23009
 
else
23010
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
23011
 
$as_echo "$as_me: failed program was:" >&5
23012
 
sed 's/^/| /' conftest.$ac_ext >&5
23013
 
 
23014
 
( exit $ac_status )
23015
 
found=no
23016
 
fi
23017
 
rm -rf conftest.dSYM
23018
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23019
 
fi
23020
 
 
23021
 
 
23022
 
    LIBS=$ac_libs
23023
 
  fi
23024
 
 
23025
 
  if test "$found" = "yes"; then
23026
 
    
23027
 
  
23028
 
  case bind in
23029
 
  c|c_r|pthread*) ;;
23030
 
  *) 
23031
 
      LIBS="-lbind $LIBS" 
23032
 
   ;;
23033
 
  esac
23034
 
 
23035
 
 
23036
 
    
23037
 
cat >>confdefs.h <<\_ACEOF
23038
 
@%:@define HAVE_INET_ATON 1
23039
 
_ACEOF
23040
 
 
23041
 
    
23042
 
cat >>confdefs.h <<\_ACEOF
23043
 
@%:@define HAVE_LIBBIND 1
23044
 
_ACEOF
23045
 
 
23046
 
    ac_cv_func_inet_aton=yes
23047
 
  else
23048
 
    
23049
 
  :
23050
 
 
23051
 
  fi
23052
 
  
23053
 
 
23054
 
  fi
23055
 
  
23056
 
 ;;
23057
 
  
23058
 
  esac
23059
 
 
23060
 
 
23061
 
 
23062
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23063
 
$as_echo_n "checking for ANSI C header files... " >&6; }
23064
 
if test "${ac_cv_header_stdc+set}" = set; then
23065
 
  $as_echo_n "(cached) " >&6
23066
 
else
23067
 
  cat >conftest.$ac_ext <<_ACEOF
23068
 
/* confdefs.h.  */
23069
 
_ACEOF
23070
 
cat confdefs.h >>conftest.$ac_ext
23071
 
cat >>conftest.$ac_ext <<_ACEOF
23072
 
/* end confdefs.h.  */
23073
 
#include <stdlib.h>
23074
 
#include <stdarg.h>
23075
 
#include <string.h>
23076
 
#include <float.h>
23077
 
 
23078
 
int
23079
 
main ()
23080
 
{
23081
 
 
23082
 
  ;
23083
 
  return 0;
23084
 
}
23085
 
_ACEOF
23086
 
rm -f conftest.$ac_objext
23087
 
if { (ac_try="$ac_compile"
23088
 
case "(($ac_try" in
23089
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090
 
  *) ac_try_echo=$ac_try;;
23091
 
esac
23092
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23093
 
$as_echo "$ac_try_echo") >&5
23094
 
  (eval "$ac_compile") 2>conftest.er1
23095
 
  ac_status=$?
23096
 
  grep -v '^ *+' conftest.er1 >conftest.err
23097
 
  rm -f conftest.er1
23098
 
  cat conftest.err >&5
23099
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100
 
  (exit $ac_status); } && {
23101
 
         test -z "$ac_c_werror_flag" ||
23102
 
         test ! -s conftest.err
23103
 
       } && test -s conftest.$ac_objext; then
23104
 
  ac_cv_header_stdc=yes
23105
 
else
23106
 
  $as_echo "$as_me: failed program was:" >&5
23107
 
sed 's/^/| /' conftest.$ac_ext >&5
23108
 
 
23109
 
        ac_cv_header_stdc=no
23110
 
fi
23111
 
 
23112
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23113
 
 
23114
 
if test $ac_cv_header_stdc = yes; then
23115
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23116
 
  cat >conftest.$ac_ext <<_ACEOF
23117
 
/* confdefs.h.  */
23118
 
_ACEOF
23119
 
cat confdefs.h >>conftest.$ac_ext
23120
 
cat >>conftest.$ac_ext <<_ACEOF
23121
 
/* end confdefs.h.  */
23122
 
#include <string.h>
23123
 
 
23124
 
_ACEOF
23125
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23126
 
  $EGREP "memchr" >/dev/null 2>&1; then
23127
 
  :
23128
 
else
23129
 
  ac_cv_header_stdc=no
23130
 
fi
23131
 
rm -f conftest*
23132
 
 
23133
 
fi
23134
 
 
23135
 
if test $ac_cv_header_stdc = yes; then
23136
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23137
 
  cat >conftest.$ac_ext <<_ACEOF
23138
 
/* confdefs.h.  */
23139
 
_ACEOF
23140
 
cat confdefs.h >>conftest.$ac_ext
23141
 
cat >>conftest.$ac_ext <<_ACEOF
23142
 
/* end confdefs.h.  */
23143
 
#include <stdlib.h>
23144
 
 
23145
 
_ACEOF
23146
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23147
 
  $EGREP "free" >/dev/null 2>&1; then
23148
 
  :
23149
 
else
23150
 
  ac_cv_header_stdc=no
23151
 
fi
23152
 
rm -f conftest*
23153
 
 
23154
 
fi
23155
 
 
23156
 
if test $ac_cv_header_stdc = yes; then
23157
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23158
 
  if test "$cross_compiling" = yes; then
23159
 
  :
23160
 
else
23161
 
  cat >conftest.$ac_ext <<_ACEOF
23162
 
/* confdefs.h.  */
23163
 
_ACEOF
23164
 
cat confdefs.h >>conftest.$ac_ext
23165
 
cat >>conftest.$ac_ext <<_ACEOF
23166
 
/* end confdefs.h.  */
23167
 
#include <ctype.h>
23168
 
#include <stdlib.h>
23169
 
#if ((' ' & 0x0FF) == 0x020)
23170
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23171
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23172
 
#else
23173
 
# define ISLOWER(c) \
23174
 
                   (('a' <= (c) && (c) <= 'i') \
23175
 
                     || ('j' <= (c) && (c) <= 'r') \
23176
 
                     || ('s' <= (c) && (c) <= 'z'))
23177
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23178
 
#endif
23179
 
 
23180
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23181
 
int
23182
 
main ()
23183
 
{
23184
 
  int i;
23185
 
  for (i = 0; i < 256; i++)
23186
 
    if (XOR (islower (i), ISLOWER (i))
23187
 
        || toupper (i) != TOUPPER (i))
23188
 
      return 2;
23189
 
  return 0;
23190
 
}
23191
 
_ACEOF
23192
 
rm -f conftest$ac_exeext
23193
 
if { (ac_try="$ac_link"
23194
 
case "(($ac_try" in
23195
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196
 
  *) ac_try_echo=$ac_try;;
23197
 
esac
23198
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23199
 
$as_echo "$ac_try_echo") >&5
23200
 
  (eval "$ac_link") 2>&5
23201
 
  ac_status=$?
23202
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23204
 
  { (case "(($ac_try" in
23205
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206
 
  *) ac_try_echo=$ac_try;;
23207
 
esac
23208
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23209
 
$as_echo "$ac_try_echo") >&5
23210
 
  (eval "$ac_try") 2>&5
23211
 
  ac_status=$?
23212
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213
 
  (exit $ac_status); }; }; then
23214
 
  :
23215
 
else
23216
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
23217
 
$as_echo "$as_me: failed program was:" >&5
23218
 
sed 's/^/| /' conftest.$ac_ext >&5
23219
 
 
23220
 
( exit $ac_status )
23221
 
ac_cv_header_stdc=no
23222
 
fi
23223
 
rm -rf conftest.dSYM
23224
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23225
 
fi
23226
 
 
23227
 
 
23228
 
fi
23229
 
fi
23230
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23231
 
$as_echo "$ac_cv_header_stdc" >&6; }
23232
 
if test $ac_cv_header_stdc = yes; then
23233
 
  
23234
 
cat >>confdefs.h <<\_ACEOF
23235
 
@%:@define STDC_HEADERS 1
23236
 
_ACEOF
23237
 
 
23238
 
fi
23239
 
 
23240
 
 
23241
 
 
23242
 
 
23243
 
 
23244
 
 
23245
 
ac_header_dirent=no
23246
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23247
 
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23248
 
{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23249
 
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23250
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23251
 
  $as_echo_n "(cached) " >&6
23252
 
else
23253
 
  cat >conftest.$ac_ext <<_ACEOF
23254
 
/* confdefs.h.  */
23255
 
_ACEOF
23256
 
cat confdefs.h >>conftest.$ac_ext
23257
 
cat >>conftest.$ac_ext <<_ACEOF
23258
 
/* end confdefs.h.  */
23259
 
#include <sys/types.h>
23260
 
#include <$ac_hdr>
23261
 
 
23262
 
int
23263
 
main ()
23264
 
{
23265
 
if ((DIR *) 0)
23266
 
return 0;
23267
 
  ;
23268
 
  return 0;
23269
 
}
23270
 
_ACEOF
23271
 
rm -f conftest.$ac_objext
23272
 
if { (ac_try="$ac_compile"
23273
 
case "(($ac_try" in
23274
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275
 
  *) ac_try_echo=$ac_try;;
23276
 
esac
23277
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23278
 
$as_echo "$ac_try_echo") >&5
23279
 
  (eval "$ac_compile") 2>conftest.er1
23280
 
  ac_status=$?
23281
 
  grep -v '^ *+' conftest.er1 >conftest.err
23282
 
  rm -f conftest.er1
23283
 
  cat conftest.err >&5
23284
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285
 
  (exit $ac_status); } && {
23286
 
         test -z "$ac_c_werror_flag" ||
23287
 
         test ! -s conftest.err
23288
 
       } && test -s conftest.$ac_objext; then
23289
 
  eval "$as_ac_Header=yes"
23290
 
else
23291
 
  $as_echo "$as_me: failed program was:" >&5
23292
 
sed 's/^/| /' conftest.$ac_ext >&5
23293
 
 
23294
 
        eval "$as_ac_Header=no"
23295
 
fi
23296
 
 
23297
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23298
 
fi
23299
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
23300
 
                 $as_echo "$as_val"'`
23301
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23302
 
$as_echo "$ac_res" >&6; }
23303
 
as_val=`eval 'as_val=${'$as_ac_Header'}
23304
 
                 $as_echo "$as_val"'`
23305
 
   if test "x$as_val" = x""yes; then
23306
 
  cat >>confdefs.h <<_ACEOF
23307
 
@%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23308
 
_ACEOF
23309
 
 
23310
 
ac_header_dirent=$ac_hdr; break
23311
 
fi
23312
 
 
23313
 
done
23314
 
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23315
 
if test $ac_header_dirent = dirent.h; then
23316
 
  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
23317
 
$as_echo_n "checking for library containing opendir... " >&6; }
23318
 
if test "${ac_cv_search_opendir+set}" = set; then
23319
 
  $as_echo_n "(cached) " >&6
23320
 
else
23321
 
  ac_func_search_save_LIBS=$LIBS
23322
 
cat >conftest.$ac_ext <<_ACEOF
23323
 
/* confdefs.h.  */
23324
 
_ACEOF
23325
 
cat confdefs.h >>conftest.$ac_ext
23326
 
cat >>conftest.$ac_ext <<_ACEOF
23327
 
/* end confdefs.h.  */
23328
 
 
23329
 
/* Override any GCC internal prototype to avoid an error.
23330
 
   Use char because int might match the return type of a GCC
23331
 
   builtin and then its argument prototype would still apply.  */
23332
 
#ifdef __cplusplus
23333
 
extern "C"
23334
 
#endif
23335
 
char opendir ();
23336
 
int
23337
 
main ()
23338
 
{
23339
 
return opendir ();
23340
 
  ;
23341
 
  return 0;
23342
 
}
23343
 
_ACEOF
23344
 
for ac_lib in '' dir; do
23345
 
  if test -z "$ac_lib"; then
23346
 
    ac_res="none required"
23347
 
  else
23348
 
    ac_res=-l$ac_lib
23349
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23350
 
  fi
23351
 
  rm -f conftest.$ac_objext conftest$ac_exeext
23352
 
if { (ac_try="$ac_link"
23353
 
case "(($ac_try" in
23354
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355
 
  *) ac_try_echo=$ac_try;;
23356
 
esac
23357
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23358
 
$as_echo "$ac_try_echo") >&5
23359
 
  (eval "$ac_link") 2>conftest.er1
23360
 
  ac_status=$?
23361
 
  grep -v '^ *+' conftest.er1 >conftest.err
23362
 
  rm -f conftest.er1
23363
 
  cat conftest.err >&5
23364
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365
 
  (exit $ac_status); } && {
23366
 
         test -z "$ac_c_werror_flag" ||
23367
 
         test ! -s conftest.err
23368
 
       } && test -s conftest$ac_exeext && {
23369
 
         test "$cross_compiling" = yes ||
23370
 
         $as_test_x conftest$ac_exeext
23371
 
       }; then
23372
 
  ac_cv_search_opendir=$ac_res
23373
 
else
23374
 
  $as_echo "$as_me: failed program was:" >&5
23375
 
sed 's/^/| /' conftest.$ac_ext >&5
23376
 
 
23377
 
        
23378
 
fi
23379
 
 
23380
 
rm -rf conftest.dSYM
23381
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23382
 
      conftest$ac_exeext 
23383
 
  if test "${ac_cv_search_opendir+set}" = set; then
23384
 
  break
23385
 
fi
23386
 
done
23387
 
if test "${ac_cv_search_opendir+set}" = set; then
23388
 
  :
23389
 
else
23390
 
  ac_cv_search_opendir=no
23391
 
fi
23392
 
rm conftest.$ac_ext
23393
 
LIBS=$ac_func_search_save_LIBS
23394
 
fi
23395
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23396
 
$as_echo "$ac_cv_search_opendir" >&6; }
23397
 
ac_res=$ac_cv_search_opendir
23398
 
if test "$ac_res" != no; then
23399
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23400
 
  
23401
 
fi
23402
 
 
23403
 
else
23404
 
  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
23405
 
$as_echo_n "checking for library containing opendir... " >&6; }
23406
 
if test "${ac_cv_search_opendir+set}" = set; then
23407
 
  $as_echo_n "(cached) " >&6
23408
 
else
23409
 
  ac_func_search_save_LIBS=$LIBS
23410
 
cat >conftest.$ac_ext <<_ACEOF
23411
 
/* confdefs.h.  */
23412
 
_ACEOF
23413
 
cat confdefs.h >>conftest.$ac_ext
23414
 
cat >>conftest.$ac_ext <<_ACEOF
23415
 
/* end confdefs.h.  */
23416
 
 
23417
 
/* Override any GCC internal prototype to avoid an error.
23418
 
   Use char because int might match the return type of a GCC
23419
 
   builtin and then its argument prototype would still apply.  */
23420
 
#ifdef __cplusplus
23421
 
extern "C"
23422
 
#endif
23423
 
char opendir ();
23424
 
int
23425
 
main ()
23426
 
{
23427
 
return opendir ();
23428
 
  ;
23429
 
  return 0;
23430
 
}
23431
 
_ACEOF
23432
 
for ac_lib in '' x; do
23433
 
  if test -z "$ac_lib"; then
23434
 
    ac_res="none required"
23435
 
  else
23436
 
    ac_res=-l$ac_lib
23437
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23438
 
  fi
23439
 
  rm -f conftest.$ac_objext conftest$ac_exeext
23440
 
if { (ac_try="$ac_link"
23441
 
case "(($ac_try" in
23442
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443
 
  *) ac_try_echo=$ac_try;;
23444
 
esac
23445
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23446
 
$as_echo "$ac_try_echo") >&5
23447
 
  (eval "$ac_link") 2>conftest.er1
23448
 
  ac_status=$?
23449
 
  grep -v '^ *+' conftest.er1 >conftest.err
23450
 
  rm -f conftest.er1
23451
 
  cat conftest.err >&5
23452
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453
 
  (exit $ac_status); } && {
23454
 
         test -z "$ac_c_werror_flag" ||
23455
 
         test ! -s conftest.err
23456
 
       } && test -s conftest$ac_exeext && {
23457
 
         test "$cross_compiling" = yes ||
23458
 
         $as_test_x conftest$ac_exeext
23459
 
       }; then
23460
 
  ac_cv_search_opendir=$ac_res
23461
 
else
23462
 
  $as_echo "$as_me: failed program was:" >&5
23463
 
sed 's/^/| /' conftest.$ac_ext >&5
23464
 
 
23465
 
        
23466
 
fi
23467
 
 
23468
 
rm -rf conftest.dSYM
23469
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23470
 
      conftest$ac_exeext 
23471
 
  if test "${ac_cv_search_opendir+set}" = set; then
23472
 
  break
23473
 
fi
23474
 
done
23475
 
if test "${ac_cv_search_opendir+set}" = set; then
23476
 
  :
23477
 
else
23478
 
  ac_cv_search_opendir=no
23479
 
fi
23480
 
rm conftest.$ac_ext
23481
 
LIBS=$ac_func_search_save_LIBS
23482
 
fi
23483
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23484
 
$as_echo "$ac_cv_search_opendir" >&6; }
23485
 
ac_res=$ac_cv_search_opendir
23486
 
if test "$ac_res" != no; then
23487
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23488
 
  
23489
 
fi
23490
 
 
23491
 
fi
23492
 
 
23493
 
 
23494
 
 
23495
 
 
23496
 
 
23497
 
 
23498
 
 
23499
 
 
23500
 
 
23501
 
 
23502
 
 
23503
 
 
23504
 
 
23505
 
 
23506
 
 
23507
 
 
23508
 
 
23509
 
 
23510
 
 
23511
 
 
23512
 
 
23513
 
 
23514
 
 
23515
 
 
23516
 
 
23517
 
 
23518
 
 
23519
 
 
23520
 
 
23521
 
 
23522
 
 
23523
 
 
23524
 
 
23525
 
 
23526
 
 
23527
 
 
23528
 
 
23529
 
 
23530
 
 
23531
 
 
23532
 
 
23533
 
 
23534
 
 
23535
 
 
23536
 
 
23537
 
 
23538
 
 
23539
 
 
23540
 
 
23541
 
 
23542
 
 
23543
 
 
23544
 
 
23545
 
 
23546
 
 
23547
 
 
23548
 
for ac_header in  \
23549
 
inttypes.h \
23550
 
stdint.h \
23551
 
dirent.h \
23552
 
ApplicationServices/ApplicationServices.h \
23553
 
sys/param.h \
23554
 
sys/types.h \
23555
 
sys/time.h \
23556
 
netinet/in.h \
23557
 
alloca.h \
23558
 
arpa/inet.h \
23559
 
arpa/nameser.h \
23560
 
assert.h \
23561
 
crypt.h \
23562
 
dns.h \
23563
 
fcntl.h \
23564
 
grp.h \
23565
 
ieeefp.h \
23566
 
langinfo.h \
23567
 
limits.h \
23568
 
locale.h \
23569
 
monetary.h \
23570
 
netdb.h \
23571
 
pwd.h \
23572
 
resolv.h \
23573
 
signal.h \
23574
 
stdarg.h \
23575
 
stdlib.h \
23576
 
string.h \
23577
 
syslog.h \
23578
 
sysexits.h \
23579
 
sys/ioctl.h \
23580
 
sys/file.h \
23581
 
sys/mman.h \
23582
 
sys/mount.h \
23583
 
sys/poll.h \
23584
 
sys/resource.h \
23585
 
sys/select.h \
23586
 
sys/socket.h \
23587
 
sys/stat.h \
23588
 
sys/statfs.h \
23589
 
sys/statvfs.h \
23590
 
sys/vfs.h \
23591
 
sys/sysexits.h \
23592
 
sys/varargs.h \
23593
 
sys/wait.h \
23594
 
sys/loadavg.h \
23595
 
termios.h \
23596
 
unistd.h \
23597
 
unix.h \
23598
 
utime.h \
23599
 
sys/utsname.h \
23600
 
sys/ipc.h \
23601
 
dlfcn.h \
23602
 
assert.h
23603
 
 
23604
 
do
23605
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23606
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23607
 
$as_echo_n "checking for $ac_header... " >&6; }
23608
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23609
 
  $as_echo_n "(cached) " >&6
23610
 
else
23611
 
  cat >conftest.$ac_ext <<_ACEOF
23612
 
/* confdefs.h.  */
23613
 
_ACEOF
23614
 
cat confdefs.h >>conftest.$ac_ext
23615
 
cat >>conftest.$ac_ext <<_ACEOF
23616
 
/* end confdefs.h.  */
23617
 
 
23618
 
#ifdef HAVE_SYS_PARAM_H
23619
 
#include <sys/param.h>
23620
 
#endif
23621
 
#ifdef HAVE_SYS_TYPES_H
23622
 
#include <sys/types.h>
23623
 
#endif
23624
 
#ifdef HAVE_SYS_TIME_H
23625
 
#include <sys/time.h>
23626
 
#endif
23627
 
#ifdef HAVE_NETINET_IN_H
23628
 
#include <netinet/in.h>
23629
 
#endif
23630
 
#ifdef HAVE_ARPA_NAMESER_H
23631
 
#include <arpa/nameser.h>
23632
 
#endif
23633
 
 
23634
 
 
23635
 
@%:@include <$ac_header>
23636
 
_ACEOF
23637
 
rm -f conftest.$ac_objext
23638
 
if { (ac_try="$ac_compile"
23639
 
case "(($ac_try" in
23640
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641
 
  *) ac_try_echo=$ac_try;;
23642
 
esac
23643
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23644
 
$as_echo "$ac_try_echo") >&5
23645
 
  (eval "$ac_compile") 2>conftest.er1
23646
 
  ac_status=$?
23647
 
  grep -v '^ *+' conftest.er1 >conftest.err
23648
 
  rm -f conftest.er1
23649
 
  cat conftest.err >&5
23650
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651
 
  (exit $ac_status); } && {
23652
 
         test -z "$ac_c_werror_flag" ||
23653
 
         test ! -s conftest.err
23654
 
       } && test -s conftest.$ac_objext; then
23655
 
  eval "$as_ac_Header=yes"
23656
 
else
23657
 
  $as_echo "$as_me: failed program was:" >&5
23658
 
sed 's/^/| /' conftest.$ac_ext >&5
23659
 
 
23660
 
        eval "$as_ac_Header=no"
23661
 
fi
23662
 
 
23663
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23664
 
fi
23665
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
23666
 
                 $as_echo "$as_val"'`
23667
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23668
 
$as_echo "$ac_res" >&6; }
23669
 
as_val=`eval 'as_val=${'$as_ac_Header'}
23670
 
                 $as_echo "$as_val"'`
23671
 
   if test "x$as_val" = x""yes; then
23672
 
  cat >>confdefs.h <<_ACEOF
23673
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23674
 
_ACEOF
23675
 
 
23676
 
fi
23677
 
 
23678
 
done
23679
 
 
23680
 
 
23681
 
 
23682
 
  { $as_echo "$as_me:$LINENO: checking for fopencookie" >&5
23683
 
$as_echo_n "checking for fopencookie... " >&6; }
23684
 
if test "${ac_cv_func_fopencookie+set}" = set; then
23685
 
  $as_echo_n "(cached) " >&6
23686
 
else
23687
 
  cat >conftest.$ac_ext <<_ACEOF
23688
 
/* confdefs.h.  */
23689
 
_ACEOF
23690
 
cat confdefs.h >>conftest.$ac_ext
23691
 
cat >>conftest.$ac_ext <<_ACEOF
23692
 
/* end confdefs.h.  */
23693
 
/* Define fopencookie to an innocuous variant, in case <limits.h> declares fopencookie.
23694
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23695
 
#define fopencookie innocuous_fopencookie
23696
 
 
23697
 
/* System header to define __stub macros and hopefully few prototypes,
23698
 
    which can conflict with char fopencookie (); below.
23699
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23700
 
    <limits.h> exists even on freestanding compilers.  */
23701
 
 
23702
 
#ifdef __STDC__
23703
 
# include <limits.h>
23704
 
#else
23705
 
# include <assert.h>
23706
 
#endif
23707
 
 
23708
 
#undef fopencookie
23709
 
 
23710
 
/* Override any GCC internal prototype to avoid an error.
23711
 
   Use char because int might match the return type of a GCC
23712
 
   builtin and then its argument prototype would still apply.  */
23713
 
#ifdef __cplusplus
23714
 
extern "C"
23715
 
#endif
23716
 
char fopencookie ();
23717
 
/* The GNU C library defines this for functions which it implements
23718
 
    to always fail with ENOSYS.  Some functions are actually named
23719
 
    something starting with __ and the normal name is an alias.  */
23720
 
#if defined __stub_fopencookie || defined __stub___fopencookie
23721
 
choke me
23722
 
#endif
23723
 
 
23724
 
int
23725
 
main ()
23726
 
{
23727
 
return fopencookie ();
23728
 
  ;
23729
 
  return 0;
23730
 
}
23731
 
_ACEOF
23732
 
rm -f conftest.$ac_objext conftest$ac_exeext
23733
 
if { (ac_try="$ac_link"
23734
 
case "(($ac_try" in
23735
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736
 
  *) ac_try_echo=$ac_try;;
23737
 
esac
23738
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23739
 
$as_echo "$ac_try_echo") >&5
23740
 
  (eval "$ac_link") 2>conftest.er1
23741
 
  ac_status=$?
23742
 
  grep -v '^ *+' conftest.er1 >conftest.err
23743
 
  rm -f conftest.er1
23744
 
  cat conftest.err >&5
23745
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746
 
  (exit $ac_status); } && {
23747
 
         test -z "$ac_c_werror_flag" ||
23748
 
         test ! -s conftest.err
23749
 
       } && test -s conftest$ac_exeext && {
23750
 
         test "$cross_compiling" = yes ||
23751
 
         $as_test_x conftest$ac_exeext
23752
 
       }; then
23753
 
  ac_cv_func_fopencookie=yes
23754
 
else
23755
 
  $as_echo "$as_me: failed program was:" >&5
23756
 
sed 's/^/| /' conftest.$ac_ext >&5
23757
 
 
23758
 
        ac_cv_func_fopencookie=no
23759
 
fi
23760
 
 
23761
 
rm -rf conftest.dSYM
23762
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23763
 
      conftest$ac_exeext conftest.$ac_ext
23764
 
fi
23765
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fopencookie" >&5
23766
 
$as_echo "$ac_cv_func_fopencookie" >&6; }
23767
 
if test "x$ac_cv_func_fopencookie" = x""yes; then
23768
 
  have_glibc_fopencookie=yes
23769
 
fi
23770
 
 
23771
 
 
23772
 
  if test "$have_glibc_fopencookie" = "yes"; then
23773
 
cat >conftest.$ac_ext <<_ACEOF
23774
 
/* confdefs.h.  */
23775
 
_ACEOF
23776
 
cat confdefs.h >>conftest.$ac_ext
23777
 
cat >>conftest.$ac_ext <<_ACEOF
23778
 
/* end confdefs.h.  */
23779
 
 
23780
 
#define _GNU_SOURCE
23781
 
#include <stdio.h>
23782
 
 
23783
 
int
23784
 
main ()
23785
 
{
23786
 
cookie_io_functions_t cookie;
23787
 
  ;
23788
 
  return 0;
23789
 
}
23790
 
_ACEOF
23791
 
rm -f conftest.$ac_objext
23792
 
if { (ac_try="$ac_compile"
23793
 
case "(($ac_try" in
23794
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795
 
  *) ac_try_echo=$ac_try;;
23796
 
esac
23797
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23798
 
$as_echo "$ac_try_echo") >&5
23799
 
  (eval "$ac_compile") 2>conftest.er1
23800
 
  ac_status=$?
23801
 
  grep -v '^ *+' conftest.er1 >conftest.err
23802
 
  rm -f conftest.er1
23803
 
  cat conftest.err >&5
23804
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805
 
  (exit $ac_status); } && {
23806
 
         test -z "$ac_c_werror_flag" ||
23807
 
         test ! -s conftest.err
23808
 
       } && test -s conftest.$ac_objext; then
23809
 
  have_cookie_io_functions_t=yes
23810
 
else
23811
 
  $as_echo "$as_me: failed program was:" >&5
23812
 
sed 's/^/| /' conftest.$ac_ext >&5
23813
 
 
23814
 
        
23815
 
fi
23816
 
 
23817
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818
 
 
23819
 
    if test "$have_cookie_io_functions_t" = "yes"; then
23820
 
      cookie_io_functions_t=cookie_io_functions_t
23821
 
      have_fopen_cookie=yes
23822
 
 
23823
 
if test "$cross_compiling" = yes; then
23824
 
  
23825
 
  cookie_io_functions_use_off64_t=no
23826
 
 
23827
 
else
23828
 
  cat >conftest.$ac_ext <<_ACEOF
23829
 
/* confdefs.h.  */
23830
 
_ACEOF
23831
 
cat confdefs.h >>conftest.$ac_ext
23832
 
cat >>conftest.$ac_ext <<_ACEOF
23833
 
/* end confdefs.h.  */
23834
 
 
23835
 
#define _GNU_SOURCE
23836
 
#include <stdio.h>
23837
 
 
23838
 
struct cookiedata {
23839
 
  __off64_t pos;
23840
 
};
23841
 
 
23842
 
__ssize_t reader(void *cookie, char *buffer, size_t size)
23843
 
{ return size; }
23844
 
__ssize_t writer(void *cookie, const char *buffer, size_t size)
23845
 
{ return size; }
23846
 
int closer(void *cookie)
23847
 
{ return 0; }
23848
 
int seeker(void *cookie, __off64_t *position, int whence)
23849
 
{ ((struct cookiedata*)cookie)->pos = *position; return 0; }
23850
 
 
23851
 
cookie_io_functions_t funcs = {reader, writer, seeker, closer};
23852
 
 
23853
 
main() {
23854
 
  struct cookiedata g = { 0 };
23855
 
  FILE *fp = fopencookie(&g, "r", funcs);
23856
 
 
23857
 
  if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192)
23858
 
    exit(0);
23859
 
  exit(1);
23860
 
}
23861
 
 
23862
 
 
23863
 
_ACEOF
23864
 
rm -f conftest$ac_exeext
23865
 
if { (ac_try="$ac_link"
23866
 
case "(($ac_try" in
23867
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23868
 
  *) ac_try_echo=$ac_try;;
23869
 
esac
23870
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23871
 
$as_echo "$ac_try_echo") >&5
23872
 
  (eval "$ac_link") 2>&5
23873
 
  ac_status=$?
23874
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23876
 
  { (case "(($ac_try" in
23877
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878
 
  *) ac_try_echo=$ac_try;;
23879
 
esac
23880
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23881
 
$as_echo "$ac_try_echo") >&5
23882
 
  (eval "$ac_try") 2>&5
23883
 
  ac_status=$?
23884
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885
 
  (exit $ac_status); }; }; then
23886
 
  
23887
 
  cookie_io_functions_use_off64_t=yes
23888
 
 
23889
 
else
23890
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
23891
 
$as_echo "$as_me: failed program was:" >&5
23892
 
sed 's/^/| /' conftest.$ac_ext >&5
23893
 
 
23894
 
( exit $ac_status )
23895
 
 
23896
 
  cookie_io_functions_use_off64_t=no
23897
 
 
23898
 
fi
23899
 
rm -rf conftest.dSYM
23900
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23901
 
fi
23902
 
 
23903
 
 
23904
 
    
23905
 
    else
23906
 
 
23907
 
cat >conftest.$ac_ext <<_ACEOF
23908
 
/* confdefs.h.  */
23909
 
_ACEOF
23910
 
cat confdefs.h >>conftest.$ac_ext
23911
 
cat >>conftest.$ac_ext <<_ACEOF
23912
 
/* end confdefs.h.  */
23913
 
 
23914
 
#define _GNU_SOURCE
23915
 
#include <stdio.h>
23916
 
 
23917
 
int
23918
 
main ()
23919
 
{
23920
 
 _IO_cookie_io_functions_t cookie; 
23921
 
  ;
23922
 
  return 0;
23923
 
}
23924
 
_ACEOF
23925
 
rm -f conftest.$ac_objext
23926
 
if { (ac_try="$ac_compile"
23927
 
case "(($ac_try" in
23928
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929
 
  *) ac_try_echo=$ac_try;;
23930
 
esac
23931
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23932
 
$as_echo "$ac_try_echo") >&5
23933
 
  (eval "$ac_compile") 2>conftest.er1
23934
 
  ac_status=$?
23935
 
  grep -v '^ *+' conftest.er1 >conftest.err
23936
 
  rm -f conftest.er1
23937
 
  cat conftest.err >&5
23938
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939
 
  (exit $ac_status); } && {
23940
 
         test -z "$ac_c_werror_flag" ||
23941
 
         test ! -s conftest.err
23942
 
       } && test -s conftest.$ac_objext; then
23943
 
  have_IO_cookie_io_functions_t=yes
23944
 
else
23945
 
  $as_echo "$as_me: failed program was:" >&5
23946
 
sed 's/^/| /' conftest.$ac_ext >&5
23947
 
 
23948
 
        
23949
 
fi
23950
 
 
23951
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23952
 
      if test "$have_cookie_io_functions_t" = "yes" ; then
23953
 
        cookie_io_functions_t=_IO_cookie_io_functions_t
23954
 
        have_fopen_cookie=yes
23955
 
      fi
23956
 
    fi
23957
 
 
23958
 
    if test "$have_fopen_cookie" = "yes" ; then
23959
 
      
23960
 
cat >>confdefs.h <<\_ACEOF
23961
 
@%:@define HAVE_FOPENCOOKIE 1
23962
 
_ACEOF
23963
 
 
23964
 
      
23965
 
cat >>confdefs.h <<_ACEOF
23966
 
@%:@define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t
23967
 
_ACEOF
23968
 
 
23969
 
      if test "$cookie_io_functions_use_off64_t" = "yes" ; then
23970
 
        
23971
 
cat >>confdefs.h <<\_ACEOF
23972
 
@%:@define COOKIE_SEEKER_USES_OFF64_T 1
23973
 
_ACEOF
23974
 
 
23975
 
      fi
23976
 
    fi
23977
 
  fi
23978
 
 
23979
 
 
23980
 
  { $as_echo "$as_me:$LINENO: checking for broken getcwd" >&5
23981
 
$as_echo_n "checking for broken getcwd... " >&6; }
23982
 
  os=`uname -sr 2>/dev/null`
23983
 
  case $os in
23984
 
    SunOS*)
23985
 
      
23986
 
cat >>confdefs.h <<\_ACEOF
23987
 
@%:@define HAVE_BROKEN_GETCWD 1
23988
 
_ACEOF
23989
 
 
23990
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
23991
 
$as_echo "yes" >&6; };;
23992
 
    *)
23993
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
23994
 
$as_echo "no" >&6; };;
23995
 
  esac
23996
 
 
23997
 
 
23998
 
  { $as_echo "$as_me:$LINENO: checking for broken libc stdio" >&5
23999
 
$as_echo_n "checking for broken libc stdio... " >&6; }
24000
 
  if test "${_cv_have_broken_glibc_fopen_append+set}" = set; then
24001
 
  $as_echo_n "(cached) " >&6
24002
 
else
24003
 
  
24004
 
  if test "$cross_compiling" = yes; then
24005
 
  cat >conftest.$ac_ext <<_ACEOF
24006
 
/* confdefs.h.  */
24007
 
_ACEOF
24008
 
cat confdefs.h >>conftest.$ac_ext
24009
 
cat >>conftest.$ac_ext <<_ACEOF
24010
 
/* end confdefs.h.  */
24011
 
 
24012
 
#include <features.h>
24013
 
 
24014
 
int
24015
 
main ()
24016
 
{
24017
 
 
24018
 
#if !__GLIBC_PREREQ(2,2)
24019
 
choke me
24020
 
#endif
24021
 
 
24022
 
  ;
24023
 
  return 0;
24024
 
}
24025
 
_ACEOF
24026
 
rm -f conftest.$ac_objext
24027
 
if { (ac_try="$ac_compile"
24028
 
case "(($ac_try" in
24029
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030
 
  *) ac_try_echo=$ac_try;;
24031
 
esac
24032
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24033
 
$as_echo "$ac_try_echo") >&5
24034
 
  (eval "$ac_compile") 2>conftest.er1
24035
 
  ac_status=$?
24036
 
  grep -v '^ *+' conftest.er1 >conftest.err
24037
 
  rm -f conftest.er1
24038
 
  cat conftest.err >&5
24039
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040
 
  (exit $ac_status); } && {
24041
 
         test -z "$ac_c_werror_flag" ||
24042
 
         test ! -s conftest.err
24043
 
       } && test -s conftest.$ac_objext; then
24044
 
  _cv_have_broken_glibc_fopen_append=yes
24045
 
else
24046
 
  $as_echo "$as_me: failed program was:" >&5
24047
 
sed 's/^/| /' conftest.$ac_ext >&5
24048
 
 
24049
 
        _cv_have_broken_glibc_fopen_append=no 
24050
 
fi
24051
 
 
24052
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24053
 
 
24054
 
else
24055
 
  cat >conftest.$ac_ext <<_ACEOF
24056
 
/* confdefs.h.  */
24057
 
_ACEOF
24058
 
cat confdefs.h >>conftest.$ac_ext
24059
 
cat >>conftest.$ac_ext <<_ACEOF
24060
 
/* end confdefs.h.  */
24061
 
 
24062
 
#include <stdio.h>
24063
 
int main(int argc, char *argv[])
24064
 
{
24065
 
  FILE *fp;
24066
 
  long position;
24067
 
  char *filename = "/tmp/phpglibccheck";
24068
 
  
24069
 
  fp = fopen(filename, "w");
24070
 
  if (fp == NULL) {
24071
 
    perror("fopen");
24072
 
    exit(2);
24073
 
  }
24074
 
  fputs("foobar", fp);
24075
 
  fclose(fp);
24076
 
 
24077
 
  fp = fopen(filename, "a+");
24078
 
  position = ftell(fp);
24079
 
  fclose(fp);
24080
 
  unlink(filename);
24081
 
  if (position == 0)
24082
 
  return 1;
24083
 
  return 0;
24084
 
}
24085
 
 
24086
 
_ACEOF
24087
 
rm -f conftest$ac_exeext
24088
 
if { (ac_try="$ac_link"
24089
 
case "(($ac_try" in
24090
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091
 
  *) ac_try_echo=$ac_try;;
24092
 
esac
24093
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24094
 
$as_echo "$ac_try_echo") >&5
24095
 
  (eval "$ac_link") 2>&5
24096
 
  ac_status=$?
24097
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24099
 
  { (case "(($ac_try" in
24100
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101
 
  *) ac_try_echo=$ac_try;;
24102
 
esac
24103
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24104
 
$as_echo "$ac_try_echo") >&5
24105
 
  (eval "$ac_try") 2>&5
24106
 
  ac_status=$?
24107
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108
 
  (exit $ac_status); }; }; then
24109
 
  _cv_have_broken_glibc_fopen_append=no
24110
 
else
24111
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
24112
 
$as_echo "$as_me: failed program was:" >&5
24113
 
sed 's/^/| /' conftest.$ac_ext >&5
24114
 
 
24115
 
( exit $ac_status )
24116
 
_cv_have_broken_glibc_fopen_append=yes 
24117
 
fi
24118
 
rm -rf conftest.dSYM
24119
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24120
 
fi
24121
 
 
24122
 
 
24123
 
fi
24124
 
 
24125
 
 
24126
 
  if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then
24127
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
24128
 
$as_echo "yes" >&6; }
24129
 
    
24130
 
cat >>confdefs.h <<\_ACEOF
24131
 
@%:@define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1
24132
 
_ACEOF
24133
 
 
24134
 
  else
24135
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
24136
 
$as_echo "no" >&6; }
24137
 
  fi
24138
 
 
24139
 
 
24140
 
 
24141
 
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24142
 
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
24143
 
if test "${ac_cv_struct_tm+set}" = set; then
24144
 
  $as_echo_n "(cached) " >&6
24145
 
else
24146
 
  cat >conftest.$ac_ext <<_ACEOF
24147
 
/* confdefs.h.  */
24148
 
_ACEOF
24149
 
cat confdefs.h >>conftest.$ac_ext
24150
 
cat >>conftest.$ac_ext <<_ACEOF
24151
 
/* end confdefs.h.  */
24152
 
#include <sys/types.h>
24153
 
#include <time.h>
24154
 
 
24155
 
int
24156
 
main ()
24157
 
{
24158
 
struct tm tm;
24159
 
                                     int *p = &tm.tm_sec;
24160
 
                                     return !p;
24161
 
  ;
24162
 
  return 0;
24163
 
}
24164
 
_ACEOF
24165
 
rm -f conftest.$ac_objext
24166
 
if { (ac_try="$ac_compile"
24167
 
case "(($ac_try" in
24168
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24169
 
  *) ac_try_echo=$ac_try;;
24170
 
esac
24171
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24172
 
$as_echo "$ac_try_echo") >&5
24173
 
  (eval "$ac_compile") 2>conftest.er1
24174
 
  ac_status=$?
24175
 
  grep -v '^ *+' conftest.er1 >conftest.err
24176
 
  rm -f conftest.er1
24177
 
  cat conftest.err >&5
24178
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179
 
  (exit $ac_status); } && {
24180
 
         test -z "$ac_c_werror_flag" ||
24181
 
         test ! -s conftest.err
24182
 
       } && test -s conftest.$ac_objext; then
24183
 
  ac_cv_struct_tm=time.h
24184
 
else
24185
 
  $as_echo "$as_me: failed program was:" >&5
24186
 
sed 's/^/| /' conftest.$ac_ext >&5
24187
 
 
24188
 
        ac_cv_struct_tm=sys/time.h
24189
 
fi
24190
 
 
24191
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24192
 
fi
24193
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24194
 
$as_echo "$ac_cv_struct_tm" >&6; }
24195
 
if test $ac_cv_struct_tm = sys/time.h; then
24196
 
  
24197
 
cat >>confdefs.h <<\_ACEOF
24198
 
@%:@define TM_IN_SYS_TIME 1
24199
 
_ACEOF
24200
 
 
24201
 
fi
24202
 
 
24203
 
{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24204
 
$as_echo_n "checking for struct tm.tm_zone... " >&6; }
24205
 
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24206
 
  $as_echo_n "(cached) " >&6
24207
 
else
24208
 
  cat >conftest.$ac_ext <<_ACEOF
24209
 
/* confdefs.h.  */
24210
 
_ACEOF
24211
 
cat confdefs.h >>conftest.$ac_ext
24212
 
cat >>conftest.$ac_ext <<_ACEOF
24213
 
/* end confdefs.h.  */
24214
 
#include <sys/types.h>
24215
 
#include <$ac_cv_struct_tm>
24216
 
 
24217
 
 
24218
 
int
24219
 
main ()
24220
 
{
24221
 
static struct tm ac_aggr;
24222
 
if (ac_aggr.tm_zone)
24223
 
return 0;
24224
 
  ;
24225
 
  return 0;
24226
 
}
24227
 
_ACEOF
24228
 
rm -f conftest.$ac_objext
24229
 
if { (ac_try="$ac_compile"
24230
 
case "(($ac_try" in
24231
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232
 
  *) ac_try_echo=$ac_try;;
24233
 
esac
24234
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24235
 
$as_echo "$ac_try_echo") >&5
24236
 
  (eval "$ac_compile") 2>conftest.er1
24237
 
  ac_status=$?
24238
 
  grep -v '^ *+' conftest.er1 >conftest.err
24239
 
  rm -f conftest.er1
24240
 
  cat conftest.err >&5
24241
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242
 
  (exit $ac_status); } && {
24243
 
         test -z "$ac_c_werror_flag" ||
24244
 
         test ! -s conftest.err
24245
 
       } && test -s conftest.$ac_objext; then
24246
 
  ac_cv_member_struct_tm_tm_zone=yes
24247
 
else
24248
 
  $as_echo "$as_me: failed program was:" >&5
24249
 
sed 's/^/| /' conftest.$ac_ext >&5
24250
 
 
24251
 
        cat >conftest.$ac_ext <<_ACEOF
24252
 
/* confdefs.h.  */
24253
 
_ACEOF
24254
 
cat confdefs.h >>conftest.$ac_ext
24255
 
cat >>conftest.$ac_ext <<_ACEOF
24256
 
/* end confdefs.h.  */
24257
 
#include <sys/types.h>
24258
 
#include <$ac_cv_struct_tm>
24259
 
 
24260
 
 
24261
 
int
24262
 
main ()
24263
 
{
24264
 
static struct tm ac_aggr;
24265
 
if (sizeof ac_aggr.tm_zone)
24266
 
return 0;
24267
 
  ;
24268
 
  return 0;
24269
 
}
24270
 
_ACEOF
24271
 
rm -f conftest.$ac_objext
24272
 
if { (ac_try="$ac_compile"
24273
 
case "(($ac_try" in
24274
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24275
 
  *) ac_try_echo=$ac_try;;
24276
 
esac
24277
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24278
 
$as_echo "$ac_try_echo") >&5
24279
 
  (eval "$ac_compile") 2>conftest.er1
24280
 
  ac_status=$?
24281
 
  grep -v '^ *+' conftest.er1 >conftest.err
24282
 
  rm -f conftest.er1
24283
 
  cat conftest.err >&5
24284
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285
 
  (exit $ac_status); } && {
24286
 
         test -z "$ac_c_werror_flag" ||
24287
 
         test ! -s conftest.err
24288
 
       } && test -s conftest.$ac_objext; then
24289
 
  ac_cv_member_struct_tm_tm_zone=yes
24290
 
else
24291
 
  $as_echo "$as_me: failed program was:" >&5
24292
 
sed 's/^/| /' conftest.$ac_ext >&5
24293
 
 
24294
 
        ac_cv_member_struct_tm_tm_zone=no
24295
 
fi
24296
 
 
24297
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298
 
fi
24299
 
 
24300
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24301
 
fi
24302
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24303
 
$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
24304
 
if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
24305
 
  
24306
 
cat >>confdefs.h <<_ACEOF
24307
 
@%:@define HAVE_STRUCT_TM_TM_ZONE 1
24308
 
_ACEOF
24309
 
 
24310
 
 
24311
 
fi
24312
 
 
24313
 
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24314
 
  
24315
 
cat >>confdefs.h <<\_ACEOF
24316
 
@%:@define HAVE_TM_ZONE 1
24317
 
_ACEOF
24318
 
 
24319
 
else
24320
 
  { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24321
 
$as_echo_n "checking whether tzname is declared... " >&6; }
24322
 
if test "${ac_cv_have_decl_tzname+set}" = set; then
24323
 
  $as_echo_n "(cached) " >&6
24324
 
else
24325
 
  cat >conftest.$ac_ext <<_ACEOF
24326
 
/* confdefs.h.  */
24327
 
_ACEOF
24328
 
cat confdefs.h >>conftest.$ac_ext
24329
 
cat >>conftest.$ac_ext <<_ACEOF
24330
 
/* end confdefs.h.  */
24331
 
#include <time.h>
24332
 
 
24333
 
int
24334
 
main ()
24335
 
{
24336
 
#ifndef tzname
24337
 
  (void) tzname;
24338
 
#endif
24339
 
 
24340
 
  ;
24341
 
  return 0;
24342
 
}
24343
 
_ACEOF
24344
 
rm -f conftest.$ac_objext
24345
 
if { (ac_try="$ac_compile"
24346
 
case "(($ac_try" in
24347
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348
 
  *) ac_try_echo=$ac_try;;
24349
 
esac
24350
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24351
 
$as_echo "$ac_try_echo") >&5
24352
 
  (eval "$ac_compile") 2>conftest.er1
24353
 
  ac_status=$?
24354
 
  grep -v '^ *+' conftest.er1 >conftest.err
24355
 
  rm -f conftest.er1
24356
 
  cat conftest.err >&5
24357
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358
 
  (exit $ac_status); } && {
24359
 
         test -z "$ac_c_werror_flag" ||
24360
 
         test ! -s conftest.err
24361
 
       } && test -s conftest.$ac_objext; then
24362
 
  ac_cv_have_decl_tzname=yes
24363
 
else
24364
 
  $as_echo "$as_me: failed program was:" >&5
24365
 
sed 's/^/| /' conftest.$ac_ext >&5
24366
 
 
24367
 
        ac_cv_have_decl_tzname=no
24368
 
fi
24369
 
 
24370
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371
 
fi
24372
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24373
 
$as_echo "$ac_cv_have_decl_tzname" >&6; }
24374
 
if test "x$ac_cv_have_decl_tzname" = x""yes; then
24375
 
  
24376
 
cat >>confdefs.h <<_ACEOF
24377
 
@%:@define HAVE_DECL_TZNAME 1
24378
 
_ACEOF
24379
 
 
24380
 
 
24381
 
else
24382
 
  cat >>confdefs.h <<_ACEOF
24383
 
@%:@define HAVE_DECL_TZNAME 0
24384
 
_ACEOF
24385
 
 
24386
 
 
24387
 
fi
24388
 
 
24389
 
 
24390
 
  { $as_echo "$as_me:$LINENO: checking for tzname" >&5
24391
 
$as_echo_n "checking for tzname... " >&6; }
24392
 
if test "${ac_cv_var_tzname+set}" = set; then
24393
 
  $as_echo_n "(cached) " >&6
24394
 
else
24395
 
  cat >conftest.$ac_ext <<_ACEOF
24396
 
/* confdefs.h.  */
24397
 
_ACEOF
24398
 
cat confdefs.h >>conftest.$ac_ext
24399
 
cat >>conftest.$ac_ext <<_ACEOF
24400
 
/* end confdefs.h.  */
24401
 
#include <time.h>
24402
 
#if !HAVE_DECL_TZNAME
24403
 
extern char *tzname[];
24404
 
#endif
24405
 
 
24406
 
int
24407
 
main ()
24408
 
{
24409
 
return tzname[0][0];
24410
 
  ;
24411
 
  return 0;
24412
 
}
24413
 
_ACEOF
24414
 
rm -f conftest.$ac_objext conftest$ac_exeext
24415
 
if { (ac_try="$ac_link"
24416
 
case "(($ac_try" in
24417
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418
 
  *) ac_try_echo=$ac_try;;
24419
 
esac
24420
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24421
 
$as_echo "$ac_try_echo") >&5
24422
 
  (eval "$ac_link") 2>conftest.er1
24423
 
  ac_status=$?
24424
 
  grep -v '^ *+' conftest.er1 >conftest.err
24425
 
  rm -f conftest.er1
24426
 
  cat conftest.err >&5
24427
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428
 
  (exit $ac_status); } && {
24429
 
         test -z "$ac_c_werror_flag" ||
24430
 
         test ! -s conftest.err
24431
 
       } && test -s conftest$ac_exeext && {
24432
 
         test "$cross_compiling" = yes ||
24433
 
         $as_test_x conftest$ac_exeext
24434
 
       }; then
24435
 
  ac_cv_var_tzname=yes
24436
 
else
24437
 
  $as_echo "$as_me: failed program was:" >&5
24438
 
sed 's/^/| /' conftest.$ac_ext >&5
24439
 
 
24440
 
        ac_cv_var_tzname=no
24441
 
fi
24442
 
 
24443
 
rm -rf conftest.dSYM
24444
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24445
 
      conftest$ac_exeext conftest.$ac_ext
24446
 
fi
24447
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24448
 
$as_echo "$ac_cv_var_tzname" >&6; }
24449
 
  if test $ac_cv_var_tzname = yes; then
24450
 
    
24451
 
cat >>confdefs.h <<\_ACEOF
24452
 
@%:@define HAVE_TZNAME 1
24453
 
_ACEOF
24454
 
 
24455
 
  fi
24456
 
fi
24457
 
 
24458
 
 
24459
 
 
24460
 
  { $as_echo "$as_me:$LINENO: checking for missing declarations of reentrant functions" >&5
24461
 
$as_echo_n "checking for missing declarations of reentrant functions... " >&6; }
24462
 
  cat >conftest.$ac_ext <<_ACEOF
24463
 
/* confdefs.h.  */
24464
 
_ACEOF
24465
 
cat confdefs.h >>conftest.$ac_ext
24466
 
cat >>conftest.$ac_ext <<_ACEOF
24467
 
/* end confdefs.h.  */
24468
 
#include <time.h>
24469
 
int
24470
 
main ()
24471
 
{
24472
 
struct tm *(*func)() = localtime_r
24473
 
  ;
24474
 
  return 0;
24475
 
}
24476
 
_ACEOF
24477
 
rm -f conftest.$ac_objext
24478
 
if { (ac_try="$ac_compile"
24479
 
case "(($ac_try" in
24480
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481
 
  *) ac_try_echo=$ac_try;;
24482
 
esac
24483
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24484
 
$as_echo "$ac_try_echo") >&5
24485
 
  (eval "$ac_compile") 2>conftest.er1
24486
 
  ac_status=$?
24487
 
  grep -v '^ *+' conftest.er1 >conftest.err
24488
 
  rm -f conftest.er1
24489
 
  cat conftest.err >&5
24490
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491
 
  (exit $ac_status); } && {
24492
 
         test -z "$ac_c_werror_flag" ||
24493
 
         test ! -s conftest.err
24494
 
       } && test -s conftest.$ac_objext; then
24495
 
  
24496
 
    :
24497
 
  
24498
 
else
24499
 
  $as_echo "$as_me: failed program was:" >&5
24500
 
sed 's/^/| /' conftest.$ac_ext >&5
24501
 
 
24502
 
        
24503
 
    
24504
 
cat >>confdefs.h <<\_ACEOF
24505
 
@%:@define MISSING_LOCALTIME_R_DECL 1
24506
 
_ACEOF
24507
 
 
24508
 
  
24509
 
fi
24510
 
 
24511
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24512
 
  cat >conftest.$ac_ext <<_ACEOF
24513
 
/* confdefs.h.  */
24514
 
_ACEOF
24515
 
cat confdefs.h >>conftest.$ac_ext
24516
 
cat >>conftest.$ac_ext <<_ACEOF
24517
 
/* end confdefs.h.  */
24518
 
#include <time.h>
24519
 
int
24520
 
main ()
24521
 
{
24522
 
struct tm *(*func)() = gmtime_r
24523
 
  ;
24524
 
  return 0;
24525
 
}
24526
 
_ACEOF
24527
 
rm -f conftest.$ac_objext
24528
 
if { (ac_try="$ac_compile"
24529
 
case "(($ac_try" in
24530
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531
 
  *) ac_try_echo=$ac_try;;
24532
 
esac
24533
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24534
 
$as_echo "$ac_try_echo") >&5
24535
 
  (eval "$ac_compile") 2>conftest.er1
24536
 
  ac_status=$?
24537
 
  grep -v '^ *+' conftest.er1 >conftest.err
24538
 
  rm -f conftest.er1
24539
 
  cat conftest.err >&5
24540
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541
 
  (exit $ac_status); } && {
24542
 
         test -z "$ac_c_werror_flag" ||
24543
 
         test ! -s conftest.err
24544
 
       } && test -s conftest.$ac_objext; then
24545
 
  
24546
 
    :
24547
 
  
24548
 
else
24549
 
  $as_echo "$as_me: failed program was:" >&5
24550
 
sed 's/^/| /' conftest.$ac_ext >&5
24551
 
 
24552
 
        
24553
 
    
24554
 
cat >>confdefs.h <<\_ACEOF
24555
 
@%:@define MISSING_GMTIME_R_DECL 1
24556
 
_ACEOF
24557
 
 
24558
 
  
24559
 
fi
24560
 
 
24561
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24562
 
  cat >conftest.$ac_ext <<_ACEOF
24563
 
/* confdefs.h.  */
24564
 
_ACEOF
24565
 
cat confdefs.h >>conftest.$ac_ext
24566
 
cat >>conftest.$ac_ext <<_ACEOF
24567
 
/* end confdefs.h.  */
24568
 
#include <time.h>
24569
 
int
24570
 
main ()
24571
 
{
24572
 
char *(*func)() = asctime_r
24573
 
  ;
24574
 
  return 0;
24575
 
}
24576
 
_ACEOF
24577
 
rm -f conftest.$ac_objext
24578
 
if { (ac_try="$ac_compile"
24579
 
case "(($ac_try" in
24580
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581
 
  *) ac_try_echo=$ac_try;;
24582
 
esac
24583
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24584
 
$as_echo "$ac_try_echo") >&5
24585
 
  (eval "$ac_compile") 2>conftest.er1
24586
 
  ac_status=$?
24587
 
  grep -v '^ *+' conftest.er1 >conftest.err
24588
 
  rm -f conftest.er1
24589
 
  cat conftest.err >&5
24590
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591
 
  (exit $ac_status); } && {
24592
 
         test -z "$ac_c_werror_flag" ||
24593
 
         test ! -s conftest.err
24594
 
       } && test -s conftest.$ac_objext; then
24595
 
  
24596
 
    :
24597
 
  
24598
 
else
24599
 
  $as_echo "$as_me: failed program was:" >&5
24600
 
sed 's/^/| /' conftest.$ac_ext >&5
24601
 
 
24602
 
        
24603
 
    
24604
 
cat >>confdefs.h <<\_ACEOF
24605
 
@%:@define MISSING_ASCTIME_R_DECL 1
24606
 
_ACEOF
24607
 
 
24608
 
  
24609
 
fi
24610
 
 
24611
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24612
 
  cat >conftest.$ac_ext <<_ACEOF
24613
 
/* confdefs.h.  */
24614
 
_ACEOF
24615
 
cat confdefs.h >>conftest.$ac_ext
24616
 
cat >>conftest.$ac_ext <<_ACEOF
24617
 
/* end confdefs.h.  */
24618
 
#include <time.h>
24619
 
int
24620
 
main ()
24621
 
{
24622
 
char *(*func)() = ctime_r
24623
 
  ;
24624
 
  return 0;
24625
 
}
24626
 
_ACEOF
24627
 
rm -f conftest.$ac_objext
24628
 
if { (ac_try="$ac_compile"
24629
 
case "(($ac_try" in
24630
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24631
 
  *) ac_try_echo=$ac_try;;
24632
 
esac
24633
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24634
 
$as_echo "$ac_try_echo") >&5
24635
 
  (eval "$ac_compile") 2>conftest.er1
24636
 
  ac_status=$?
24637
 
  grep -v '^ *+' conftest.er1 >conftest.err
24638
 
  rm -f conftest.er1
24639
 
  cat conftest.err >&5
24640
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641
 
  (exit $ac_status); } && {
24642
 
         test -z "$ac_c_werror_flag" ||
24643
 
         test ! -s conftest.err
24644
 
       } && test -s conftest.$ac_objext; then
24645
 
  
24646
 
    :
24647
 
  
24648
 
else
24649
 
  $as_echo "$as_me: failed program was:" >&5
24650
 
sed 's/^/| /' conftest.$ac_ext >&5
24651
 
 
24652
 
        
24653
 
    
24654
 
cat >>confdefs.h <<\_ACEOF
24655
 
@%:@define MISSING_CTIME_R_DECL 1
24656
 
_ACEOF
24657
 
 
24658
 
  
24659
 
fi
24660
 
 
24661
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24662
 
  cat >conftest.$ac_ext <<_ACEOF
24663
 
/* confdefs.h.  */
24664
 
_ACEOF
24665
 
cat confdefs.h >>conftest.$ac_ext
24666
 
cat >>conftest.$ac_ext <<_ACEOF
24667
 
/* end confdefs.h.  */
24668
 
#include <string.h>
24669
 
int
24670
 
main ()
24671
 
{
24672
 
char *(*func)() = strtok_r
24673
 
  ;
24674
 
  return 0;
24675
 
}
24676
 
_ACEOF
24677
 
rm -f conftest.$ac_objext
24678
 
if { (ac_try="$ac_compile"
24679
 
case "(($ac_try" in
24680
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681
 
  *) ac_try_echo=$ac_try;;
24682
 
esac
24683
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24684
 
$as_echo "$ac_try_echo") >&5
24685
 
  (eval "$ac_compile") 2>conftest.er1
24686
 
  ac_status=$?
24687
 
  grep -v '^ *+' conftest.er1 >conftest.err
24688
 
  rm -f conftest.er1
24689
 
  cat conftest.err >&5
24690
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691
 
  (exit $ac_status); } && {
24692
 
         test -z "$ac_c_werror_flag" ||
24693
 
         test ! -s conftest.err
24694
 
       } && test -s conftest.$ac_objext; then
24695
 
  
24696
 
    :
24697
 
  
24698
 
else
24699
 
  $as_echo "$as_me: failed program was:" >&5
24700
 
sed 's/^/| /' conftest.$ac_ext >&5
24701
 
 
24702
 
        
24703
 
    
24704
 
cat >>confdefs.h <<\_ACEOF
24705
 
@%:@define MISSING_STRTOK_R_DECL 1
24706
 
_ACEOF
24707
 
 
24708
 
  
24709
 
fi
24710
 
 
24711
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24712
 
  { $as_echo "$as_me:$LINENO: result: done" >&5
24713
 
$as_echo "done" >&6; }
24714
 
 
24715
 
 
24716
 
  { $as_echo "$as_me:$LINENO: checking for fclose declaration" >&5
24717
 
$as_echo_n "checking for fclose declaration... " >&6; }
24718
 
  cat >conftest.$ac_ext <<_ACEOF
24719
 
/* confdefs.h.  */
24720
 
_ACEOF
24721
 
cat confdefs.h >>conftest.$ac_ext
24722
 
cat >>conftest.$ac_ext <<_ACEOF
24723
 
/* end confdefs.h.  */
24724
 
#include <stdio.h>
24725
 
int
24726
 
main ()
24727
 
{
24728
 
int (*func)() = fclose
24729
 
  ;
24730
 
  return 0;
24731
 
}
24732
 
_ACEOF
24733
 
rm -f conftest.$ac_objext
24734
 
if { (ac_try="$ac_compile"
24735
 
case "(($ac_try" in
24736
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737
 
  *) ac_try_echo=$ac_try;;
24738
 
esac
24739
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24740
 
$as_echo "$ac_try_echo") >&5
24741
 
  (eval "$ac_compile") 2>conftest.er1
24742
 
  ac_status=$?
24743
 
  grep -v '^ *+' conftest.er1 >conftest.err
24744
 
  rm -f conftest.er1
24745
 
  cat conftest.err >&5
24746
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747
 
  (exit $ac_status); } && {
24748
 
         test -z "$ac_c_werror_flag" ||
24749
 
         test ! -s conftest.err
24750
 
       } && test -s conftest.$ac_objext; then
24751
 
  
24752
 
    
24753
 
cat >>confdefs.h <<\_ACEOF
24754
 
@%:@define MISSING_FCLOSE_DECL 0
24755
 
_ACEOF
24756
 
 
24757
 
    { $as_echo "$as_me:$LINENO: result: ok" >&5
24758
 
$as_echo "ok" >&6; }
24759
 
  
24760
 
else
24761
 
  $as_echo "$as_me: failed program was:" >&5
24762
 
sed 's/^/| /' conftest.$ac_ext >&5
24763
 
 
24764
 
        
24765
 
    
24766
 
cat >>confdefs.h <<\_ACEOF
24767
 
@%:@define MISSING_FCLOSE_DECL 1
24768
 
_ACEOF
24769
 
 
24770
 
    { $as_echo "$as_me:$LINENO: result: missing" >&5
24771
 
$as_echo "missing" >&6; }
24772
 
  
24773
 
fi
24774
 
 
24775
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776
 
 
24777
 
 
24778
 
 
24779
 
{ $as_echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
24780
 
$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24781
 
if test "${ac_cv_struct_tm_gmtoff+set}" = set; then
24782
 
  $as_echo_n "(cached) " >&6
24783
 
else
24784
 
  cat >conftest.$ac_ext <<_ACEOF
24785
 
/* confdefs.h.  */
24786
 
_ACEOF
24787
 
cat confdefs.h >>conftest.$ac_ext
24788
 
cat >>conftest.$ac_ext <<_ACEOF
24789
 
/* end confdefs.h.  */
24790
 
#include <sys/types.h>
24791
 
#include <$ac_cv_struct_tm>
24792
 
int
24793
 
main ()
24794
 
{
24795
 
struct tm tm; tm.tm_gmtoff;
24796
 
  ;
24797
 
  return 0;
24798
 
}
24799
 
_ACEOF
24800
 
rm -f conftest.$ac_objext
24801
 
if { (ac_try="$ac_compile"
24802
 
case "(($ac_try" in
24803
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804
 
  *) ac_try_echo=$ac_try;;
24805
 
esac
24806
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24807
 
$as_echo "$ac_try_echo") >&5
24808
 
  (eval "$ac_compile") 2>conftest.er1
24809
 
  ac_status=$?
24810
 
  grep -v '^ *+' conftest.er1 >conftest.err
24811
 
  rm -f conftest.er1
24812
 
  cat conftest.err >&5
24813
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814
 
  (exit $ac_status); } && {
24815
 
         test -z "$ac_c_werror_flag" ||
24816
 
         test ! -s conftest.err
24817
 
       } && test -s conftest.$ac_objext; then
24818
 
  ac_cv_struct_tm_gmtoff=yes
24819
 
else
24820
 
  $as_echo "$as_me: failed program was:" >&5
24821
 
sed 's/^/| /' conftest.$ac_ext >&5
24822
 
 
24823
 
        ac_cv_struct_tm_gmtoff=no
24824
 
fi
24825
 
 
24826
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24827
 
fi
24828
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm_gmtoff" >&5
24829
 
$as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
24830
 
 
24831
 
if test "$ac_cv_struct_tm_gmtoff" = yes; then
24832
 
  
24833
 
cat >>confdefs.h <<\_ACEOF
24834
 
@%:@define HAVE_TM_GMTOFF 1
24835
 
_ACEOF
24836
 
 
24837
 
fi
24838
 
 
24839
 
 
24840
 
{ $as_echo "$as_me:$LINENO: checking for struct flock" >&5
24841
 
$as_echo_n "checking for struct flock... " >&6; }
24842
 
if test "${ac_cv_struct_flock+set}" = set; then
24843
 
  $as_echo_n "(cached) " >&6
24844
 
else
24845
 
  cat >conftest.$ac_ext <<_ACEOF
24846
 
/* confdefs.h.  */
24847
 
_ACEOF
24848
 
cat confdefs.h >>conftest.$ac_ext
24849
 
cat >>conftest.$ac_ext <<_ACEOF
24850
 
/* end confdefs.h.  */
24851
 
 
24852
 
#include <unistd.h>
24853
 
#include <fcntl.h>
24854
 
        
24855
 
int
24856
 
main ()
24857
 
{
24858
 
struct flock x;
24859
 
  ;
24860
 
  return 0;
24861
 
}
24862
 
_ACEOF
24863
 
rm -f conftest.$ac_objext
24864
 
if { (ac_try="$ac_compile"
24865
 
case "(($ac_try" in
24866
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867
 
  *) ac_try_echo=$ac_try;;
24868
 
esac
24869
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24870
 
$as_echo "$ac_try_echo") >&5
24871
 
  (eval "$ac_compile") 2>conftest.er1
24872
 
  ac_status=$?
24873
 
  grep -v '^ *+' conftest.er1 >conftest.err
24874
 
  rm -f conftest.er1
24875
 
  cat conftest.err >&5
24876
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877
 
  (exit $ac_status); } && {
24878
 
         test -z "$ac_c_werror_flag" ||
24879
 
         test ! -s conftest.err
24880
 
       } && test -s conftest.$ac_objext; then
24881
 
  
24882
 
          ac_cv_struct_flock=yes
24883
 
        
24884
 
else
24885
 
  $as_echo "$as_me: failed program was:" >&5
24886
 
sed 's/^/| /' conftest.$ac_ext >&5
24887
 
 
24888
 
        
24889
 
          ac_cv_struct_flock=no
24890
 
        
24891
 
fi
24892
 
 
24893
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24894
 
 
24895
 
fi
24896
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_flock" >&5
24897
 
$as_echo "$ac_cv_struct_flock" >&6; }
24898
 
if test "$ac_cv_struct_flock" = "yes" ; then
24899
 
    
24900
 
cat >>confdefs.h <<\_ACEOF
24901
 
@%:@define HAVE_STRUCT_FLOCK 1
24902
 
_ACEOF
24903
 
 
24904
 
fi
24905
 
 
24906
 
 
24907
 
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
24908
 
$as_echo_n "checking for socklen_t... " >&6; }
24909
 
if test "${ac_cv_socklen_t+set}" = set; then
24910
 
  $as_echo_n "(cached) " >&6
24911
 
else
24912
 
  cat >conftest.$ac_ext <<_ACEOF
24913
 
/* confdefs.h.  */
24914
 
_ACEOF
24915
 
cat confdefs.h >>conftest.$ac_ext
24916
 
cat >>conftest.$ac_ext <<_ACEOF
24917
 
/* end confdefs.h.  */
24918
 
 
24919
 
#include <sys/types.h>
24920
 
#include <sys/socket.h>
24921
 
 
24922
 
int
24923
 
main ()
24924
 
{
24925
 
 
24926
 
socklen_t x;
24927
 
 
24928
 
  ;
24929
 
  return 0;
24930
 
}
24931
 
_ACEOF
24932
 
rm -f conftest.$ac_objext
24933
 
if { (ac_try="$ac_compile"
24934
 
case "(($ac_try" in
24935
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24936
 
  *) ac_try_echo=$ac_try;;
24937
 
esac
24938
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24939
 
$as_echo "$ac_try_echo") >&5
24940
 
  (eval "$ac_compile") 2>conftest.er1
24941
 
  ac_status=$?
24942
 
  grep -v '^ *+' conftest.er1 >conftest.err
24943
 
  rm -f conftest.er1
24944
 
  cat conftest.err >&5
24945
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946
 
  (exit $ac_status); } && {
24947
 
         test -z "$ac_c_werror_flag" ||
24948
 
         test ! -s conftest.err
24949
 
       } && test -s conftest.$ac_objext; then
24950
 
  
24951
 
  ac_cv_socklen_t=yes
24952
 
 
24953
 
else
24954
 
  $as_echo "$as_me: failed program was:" >&5
24955
 
sed 's/^/| /' conftest.$ac_ext >&5
24956
 
 
24957
 
        
24958
 
  ac_cv_socklen_t=no
24959
 
 
24960
 
fi
24961
 
 
24962
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24963
 
fi
24964
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
24965
 
$as_echo "$ac_cv_socklen_t" >&6; }
24966
 
if test "$ac_cv_socklen_t" = "yes"; then
24967
 
  
24968
 
cat >>confdefs.h <<\_ACEOF
24969
 
@%:@define HAVE_SOCKLEN_T 1
24970
 
_ACEOF
24971
 
 
24972
 
fi
24973
 
 
24974
 
 
24975
 
# The cast to long int works around a bug in the HP C Compiler
24976
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24977
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24978
 
# This bug is HP SR number 8606223364.
24979
 
{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24980
 
$as_echo_n "checking size of size_t... " >&6; }
24981
 
if test "${ac_cv_sizeof_size_t+set}" = set; then
24982
 
  $as_echo_n "(cached) " >&6
24983
 
else
24984
 
  if test "$cross_compiling" = yes; then
24985
 
  # Depending upon the size, compute the lo and hi bounds.
24986
 
cat >conftest.$ac_ext <<_ACEOF
24987
 
/* confdefs.h.  */
24988
 
_ACEOF
24989
 
cat confdefs.h >>conftest.$ac_ext
24990
 
cat >>conftest.$ac_ext <<_ACEOF
24991
 
/* end confdefs.h.  */
24992
 
$ac_includes_default
24993
 
int
24994
 
main ()
24995
 
{
24996
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (size_t))) >= 0)@:>@;
24997
 
test_array @<:@0@:>@ = 0
24998
 
 
24999
 
  ;
25000
 
  return 0;
25001
 
}
25002
 
_ACEOF
25003
 
rm -f conftest.$ac_objext
25004
 
if { (ac_try="$ac_compile"
25005
 
case "(($ac_try" in
25006
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007
 
  *) ac_try_echo=$ac_try;;
25008
 
esac
25009
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25010
 
$as_echo "$ac_try_echo") >&5
25011
 
  (eval "$ac_compile") 2>conftest.er1
25012
 
  ac_status=$?
25013
 
  grep -v '^ *+' conftest.er1 >conftest.err
25014
 
  rm -f conftest.er1
25015
 
  cat conftest.err >&5
25016
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017
 
  (exit $ac_status); } && {
25018
 
         test -z "$ac_c_werror_flag" ||
25019
 
         test ! -s conftest.err
25020
 
       } && test -s conftest.$ac_objext; then
25021
 
  ac_lo=0 ac_mid=0
25022
 
  while :; do
25023
 
    cat >conftest.$ac_ext <<_ACEOF
25024
 
/* confdefs.h.  */
25025
 
_ACEOF
25026
 
cat confdefs.h >>conftest.$ac_ext
25027
 
cat >>conftest.$ac_ext <<_ACEOF
25028
 
/* end confdefs.h.  */
25029
 
$ac_includes_default
25030
 
int
25031
 
main ()
25032
 
{
25033
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)@:>@;
25034
 
test_array @<:@0@:>@ = 0
25035
 
 
25036
 
  ;
25037
 
  return 0;
25038
 
}
25039
 
_ACEOF
25040
 
rm -f conftest.$ac_objext
25041
 
if { (ac_try="$ac_compile"
25042
 
case "(($ac_try" in
25043
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044
 
  *) ac_try_echo=$ac_try;;
25045
 
esac
25046
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25047
 
$as_echo "$ac_try_echo") >&5
25048
 
  (eval "$ac_compile") 2>conftest.er1
25049
 
  ac_status=$?
25050
 
  grep -v '^ *+' conftest.er1 >conftest.err
25051
 
  rm -f conftest.er1
25052
 
  cat conftest.err >&5
25053
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054
 
  (exit $ac_status); } && {
25055
 
         test -z "$ac_c_werror_flag" ||
25056
 
         test ! -s conftest.err
25057
 
       } && test -s conftest.$ac_objext; then
25058
 
  ac_hi=$ac_mid; break
25059
 
else
25060
 
  $as_echo "$as_me: failed program was:" >&5
25061
 
sed 's/^/| /' conftest.$ac_ext >&5
25062
 
 
25063
 
        ac_lo=`expr $ac_mid + 1`
25064
 
                        if test $ac_lo -le $ac_mid; then
25065
 
                          ac_lo= ac_hi=
25066
 
                          break
25067
 
                        fi
25068
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
25069
 
fi
25070
 
 
25071
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25072
 
  done
25073
 
else
25074
 
  $as_echo "$as_me: failed program was:" >&5
25075
 
sed 's/^/| /' conftest.$ac_ext >&5
25076
 
 
25077
 
        cat >conftest.$ac_ext <<_ACEOF
25078
 
/* confdefs.h.  */
25079
 
_ACEOF
25080
 
cat confdefs.h >>conftest.$ac_ext
25081
 
cat >>conftest.$ac_ext <<_ACEOF
25082
 
/* end confdefs.h.  */
25083
 
$ac_includes_default
25084
 
int
25085
 
main ()
25086
 
{
25087
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (size_t))) < 0)@:>@;
25088
 
test_array @<:@0@:>@ = 0
25089
 
 
25090
 
  ;
25091
 
  return 0;
25092
 
}
25093
 
_ACEOF
25094
 
rm -f conftest.$ac_objext
25095
 
if { (ac_try="$ac_compile"
25096
 
case "(($ac_try" in
25097
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25098
 
  *) ac_try_echo=$ac_try;;
25099
 
esac
25100
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25101
 
$as_echo "$ac_try_echo") >&5
25102
 
  (eval "$ac_compile") 2>conftest.er1
25103
 
  ac_status=$?
25104
 
  grep -v '^ *+' conftest.er1 >conftest.err
25105
 
  rm -f conftest.er1
25106
 
  cat conftest.err >&5
25107
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108
 
  (exit $ac_status); } && {
25109
 
         test -z "$ac_c_werror_flag" ||
25110
 
         test ! -s conftest.err
25111
 
       } && test -s conftest.$ac_objext; then
25112
 
  ac_hi=-1 ac_mid=-1
25113
 
  while :; do
25114
 
    cat >conftest.$ac_ext <<_ACEOF
25115
 
/* confdefs.h.  */
25116
 
_ACEOF
25117
 
cat confdefs.h >>conftest.$ac_ext
25118
 
cat >>conftest.$ac_ext <<_ACEOF
25119
 
/* end confdefs.h.  */
25120
 
$ac_includes_default
25121
 
int
25122
 
main ()
25123
 
{
25124
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)@:>@;
25125
 
test_array @<:@0@:>@ = 0
25126
 
 
25127
 
  ;
25128
 
  return 0;
25129
 
}
25130
 
_ACEOF
25131
 
rm -f conftest.$ac_objext
25132
 
if { (ac_try="$ac_compile"
25133
 
case "(($ac_try" in
25134
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25135
 
  *) ac_try_echo=$ac_try;;
25136
 
esac
25137
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25138
 
$as_echo "$ac_try_echo") >&5
25139
 
  (eval "$ac_compile") 2>conftest.er1
25140
 
  ac_status=$?
25141
 
  grep -v '^ *+' conftest.er1 >conftest.err
25142
 
  rm -f conftest.er1
25143
 
  cat conftest.err >&5
25144
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145
 
  (exit $ac_status); } && {
25146
 
         test -z "$ac_c_werror_flag" ||
25147
 
         test ! -s conftest.err
25148
 
       } && test -s conftest.$ac_objext; then
25149
 
  ac_lo=$ac_mid; break
25150
 
else
25151
 
  $as_echo "$as_me: failed program was:" >&5
25152
 
sed 's/^/| /' conftest.$ac_ext >&5
25153
 
 
25154
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
25155
 
                        if test $ac_mid -le $ac_hi; then
25156
 
                          ac_lo= ac_hi=
25157
 
                          break
25158
 
                        fi
25159
 
                        ac_mid=`expr 2 '*' $ac_mid`
25160
 
fi
25161
 
 
25162
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25163
 
  done
25164
 
else
25165
 
  $as_echo "$as_me: failed program was:" >&5
25166
 
sed 's/^/| /' conftest.$ac_ext >&5
25167
 
 
25168
 
        ac_lo= ac_hi=
25169
 
fi
25170
 
 
25171
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172
 
fi
25173
 
 
25174
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25175
 
# Binary search between lo and hi bounds.
25176
 
while test "x$ac_lo" != "x$ac_hi"; do
25177
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25178
 
  cat >conftest.$ac_ext <<_ACEOF
25179
 
/* confdefs.h.  */
25180
 
_ACEOF
25181
 
cat confdefs.h >>conftest.$ac_ext
25182
 
cat >>conftest.$ac_ext <<_ACEOF
25183
 
/* end confdefs.h.  */
25184
 
$ac_includes_default
25185
 
int
25186
 
main ()
25187
 
{
25188
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)@:>@;
25189
 
test_array @<:@0@:>@ = 0
25190
 
 
25191
 
  ;
25192
 
  return 0;
25193
 
}
25194
 
_ACEOF
25195
 
rm -f conftest.$ac_objext
25196
 
if { (ac_try="$ac_compile"
25197
 
case "(($ac_try" in
25198
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199
 
  *) ac_try_echo=$ac_try;;
25200
 
esac
25201
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25202
 
$as_echo "$ac_try_echo") >&5
25203
 
  (eval "$ac_compile") 2>conftest.er1
25204
 
  ac_status=$?
25205
 
  grep -v '^ *+' conftest.er1 >conftest.err
25206
 
  rm -f conftest.er1
25207
 
  cat conftest.err >&5
25208
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209
 
  (exit $ac_status); } && {
25210
 
         test -z "$ac_c_werror_flag" ||
25211
 
         test ! -s conftest.err
25212
 
       } && test -s conftest.$ac_objext; then
25213
 
  ac_hi=$ac_mid
25214
 
else
25215
 
  $as_echo "$as_me: failed program was:" >&5
25216
 
sed 's/^/| /' conftest.$ac_ext >&5
25217
 
 
25218
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
25219
 
fi
25220
 
 
25221
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25222
 
done
25223
 
case $ac_lo in
25224
 
?*) ac_cv_sizeof_size_t=$ac_lo;;
25225
 
'') if test "$ac_cv_type_size_t" = yes; then
25226
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25227
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25228
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25229
 
See \`config.log' for more details." >&5
25230
 
$as_echo "$as_me: error: cannot compute sizeof (size_t)
25231
 
See \`config.log' for more details." >&2;}
25232
 
   { (exit 77); exit 77; }; }; }
25233
 
   else
25234
 
     ac_cv_sizeof_size_t=0
25235
 
   fi ;;
25236
 
esac
25237
 
else
25238
 
  cat >conftest.$ac_ext <<_ACEOF
25239
 
/* confdefs.h.  */
25240
 
_ACEOF
25241
 
cat confdefs.h >>conftest.$ac_ext
25242
 
cat >>conftest.$ac_ext <<_ACEOF
25243
 
/* end confdefs.h.  */
25244
 
$ac_includes_default
25245
 
static long int longval () { return (long int) (sizeof (size_t)); }
25246
 
static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25247
 
@%:@include <stdio.h>
25248
 
@%:@include <stdlib.h>
25249
 
int
25250
 
main ()
25251
 
{
25252
 
 
25253
 
  FILE *f = fopen ("conftest.val", "w");
25254
 
  if (! f)
25255
 
    return 1;
25256
 
  if (((long int) (sizeof (size_t))) < 0)
25257
 
    {
25258
 
      long int i = longval ();
25259
 
      if (i != ((long int) (sizeof (size_t))))
25260
 
        return 1;
25261
 
      fprintf (f, "%ld", i);
25262
 
    }
25263
 
  else
25264
 
    {
25265
 
      unsigned long int i = ulongval ();
25266
 
      if (i != ((long int) (sizeof (size_t))))
25267
 
        return 1;
25268
 
      fprintf (f, "%lu", i);
25269
 
    }
25270
 
  /* Do not output a trailing newline, as this causes \r\n confusion
25271
 
     on some platforms.  */
25272
 
  return ferror (f) || fclose (f) != 0;
25273
 
 
25274
 
  ;
25275
 
  return 0;
25276
 
}
25277
 
_ACEOF
25278
 
rm -f conftest$ac_exeext
25279
 
if { (ac_try="$ac_link"
25280
 
case "(($ac_try" in
25281
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282
 
  *) ac_try_echo=$ac_try;;
25283
 
esac
25284
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25285
 
$as_echo "$ac_try_echo") >&5
25286
 
  (eval "$ac_link") 2>&5
25287
 
  ac_status=$?
25288
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25290
 
  { (case "(($ac_try" in
25291
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292
 
  *) ac_try_echo=$ac_try;;
25293
 
esac
25294
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25295
 
$as_echo "$ac_try_echo") >&5
25296
 
  (eval "$ac_try") 2>&5
25297
 
  ac_status=$?
25298
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299
 
  (exit $ac_status); }; }; then
25300
 
  ac_cv_sizeof_size_t=`cat conftest.val`
25301
 
else
25302
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
25303
 
$as_echo "$as_me: failed program was:" >&5
25304
 
sed 's/^/| /' conftest.$ac_ext >&5
25305
 
 
25306
 
( exit $ac_status )
25307
 
if test "$ac_cv_type_size_t" = yes; then
25308
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25309
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25310
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25311
 
See \`config.log' for more details." >&5
25312
 
$as_echo "$as_me: error: cannot compute sizeof (size_t)
25313
 
See \`config.log' for more details." >&2;}
25314
 
   { (exit 77); exit 77; }; }; }
25315
 
   else
25316
 
     ac_cv_sizeof_size_t=0
25317
 
   fi
25318
 
fi
25319
 
rm -rf conftest.dSYM
25320
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25321
 
fi
25322
 
rm -f conftest.val
25323
 
fi
25324
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25325
 
$as_echo "$ac_cv_sizeof_size_t" >&6; }
25326
 
 
25327
 
 
25328
 
 
25329
 
cat >>confdefs.h <<_ACEOF
25330
 
@%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25331
 
_ACEOF
25332
 
 
25333
 
 
25334
 
# The cast to long int works around a bug in the HP C Compiler
25335
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25336
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25337
 
# This bug is HP SR number 8606223364.
25338
 
{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
25339
 
$as_echo_n "checking size of long long... " >&6; }
25340
 
if test "${ac_cv_sizeof_long_long+set}" = set; then
25341
 
  $as_echo_n "(cached) " >&6
25342
 
else
25343
 
  if test "$cross_compiling" = yes; then
25344
 
  # Depending upon the size, compute the lo and hi bounds.
25345
 
cat >conftest.$ac_ext <<_ACEOF
25346
 
/* confdefs.h.  */
25347
 
_ACEOF
25348
 
cat confdefs.h >>conftest.$ac_ext
25349
 
cat >>conftest.$ac_ext <<_ACEOF
25350
 
/* end confdefs.h.  */
25351
 
$ac_includes_default
25352
 
int
25353
 
main ()
25354
 
{
25355
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= 0)@:>@;
25356
 
test_array @<:@0@:>@ = 0
25357
 
 
25358
 
  ;
25359
 
  return 0;
25360
 
}
25361
 
_ACEOF
25362
 
rm -f conftest.$ac_objext
25363
 
if { (ac_try="$ac_compile"
25364
 
case "(($ac_try" in
25365
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25366
 
  *) ac_try_echo=$ac_try;;
25367
 
esac
25368
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25369
 
$as_echo "$ac_try_echo") >&5
25370
 
  (eval "$ac_compile") 2>conftest.er1
25371
 
  ac_status=$?
25372
 
  grep -v '^ *+' conftest.er1 >conftest.err
25373
 
  rm -f conftest.er1
25374
 
  cat conftest.err >&5
25375
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376
 
  (exit $ac_status); } && {
25377
 
         test -z "$ac_c_werror_flag" ||
25378
 
         test ! -s conftest.err
25379
 
       } && test -s conftest.$ac_objext; then
25380
 
  ac_lo=0 ac_mid=0
25381
 
  while :; do
25382
 
    cat >conftest.$ac_ext <<_ACEOF
25383
 
/* confdefs.h.  */
25384
 
_ACEOF
25385
 
cat confdefs.h >>conftest.$ac_ext
25386
 
cat >>conftest.$ac_ext <<_ACEOF
25387
 
/* end confdefs.h.  */
25388
 
$ac_includes_default
25389
 
int
25390
 
main ()
25391
 
{
25392
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
25393
 
test_array @<:@0@:>@ = 0
25394
 
 
25395
 
  ;
25396
 
  return 0;
25397
 
}
25398
 
_ACEOF
25399
 
rm -f conftest.$ac_objext
25400
 
if { (ac_try="$ac_compile"
25401
 
case "(($ac_try" in
25402
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403
 
  *) ac_try_echo=$ac_try;;
25404
 
esac
25405
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25406
 
$as_echo "$ac_try_echo") >&5
25407
 
  (eval "$ac_compile") 2>conftest.er1
25408
 
  ac_status=$?
25409
 
  grep -v '^ *+' conftest.er1 >conftest.err
25410
 
  rm -f conftest.er1
25411
 
  cat conftest.err >&5
25412
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413
 
  (exit $ac_status); } && {
25414
 
         test -z "$ac_c_werror_flag" ||
25415
 
         test ! -s conftest.err
25416
 
       } && test -s conftest.$ac_objext; then
25417
 
  ac_hi=$ac_mid; break
25418
 
else
25419
 
  $as_echo "$as_me: failed program was:" >&5
25420
 
sed 's/^/| /' conftest.$ac_ext >&5
25421
 
 
25422
 
        ac_lo=`expr $ac_mid + 1`
25423
 
                        if test $ac_lo -le $ac_mid; then
25424
 
                          ac_lo= ac_hi=
25425
 
                          break
25426
 
                        fi
25427
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
25428
 
fi
25429
 
 
25430
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25431
 
  done
25432
 
else
25433
 
  $as_echo "$as_me: failed program was:" >&5
25434
 
sed 's/^/| /' conftest.$ac_ext >&5
25435
 
 
25436
 
        cat >conftest.$ac_ext <<_ACEOF
25437
 
/* confdefs.h.  */
25438
 
_ACEOF
25439
 
cat confdefs.h >>conftest.$ac_ext
25440
 
cat >>conftest.$ac_ext <<_ACEOF
25441
 
/* end confdefs.h.  */
25442
 
$ac_includes_default
25443
 
int
25444
 
main ()
25445
 
{
25446
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) < 0)@:>@;
25447
 
test_array @<:@0@:>@ = 0
25448
 
 
25449
 
  ;
25450
 
  return 0;
25451
 
}
25452
 
_ACEOF
25453
 
rm -f conftest.$ac_objext
25454
 
if { (ac_try="$ac_compile"
25455
 
case "(($ac_try" in
25456
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25457
 
  *) ac_try_echo=$ac_try;;
25458
 
esac
25459
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25460
 
$as_echo "$ac_try_echo") >&5
25461
 
  (eval "$ac_compile") 2>conftest.er1
25462
 
  ac_status=$?
25463
 
  grep -v '^ *+' conftest.er1 >conftest.err
25464
 
  rm -f conftest.er1
25465
 
  cat conftest.err >&5
25466
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467
 
  (exit $ac_status); } && {
25468
 
         test -z "$ac_c_werror_flag" ||
25469
 
         test ! -s conftest.err
25470
 
       } && test -s conftest.$ac_objext; then
25471
 
  ac_hi=-1 ac_mid=-1
25472
 
  while :; do
25473
 
    cat >conftest.$ac_ext <<_ACEOF
25474
 
/* confdefs.h.  */
25475
 
_ACEOF
25476
 
cat confdefs.h >>conftest.$ac_ext
25477
 
cat >>conftest.$ac_ext <<_ACEOF
25478
 
/* end confdefs.h.  */
25479
 
$ac_includes_default
25480
 
int
25481
 
main ()
25482
 
{
25483
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)@:>@;
25484
 
test_array @<:@0@:>@ = 0
25485
 
 
25486
 
  ;
25487
 
  return 0;
25488
 
}
25489
 
_ACEOF
25490
 
rm -f conftest.$ac_objext
25491
 
if { (ac_try="$ac_compile"
25492
 
case "(($ac_try" in
25493
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25494
 
  *) ac_try_echo=$ac_try;;
25495
 
esac
25496
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25497
 
$as_echo "$ac_try_echo") >&5
25498
 
  (eval "$ac_compile") 2>conftest.er1
25499
 
  ac_status=$?
25500
 
  grep -v '^ *+' conftest.er1 >conftest.err
25501
 
  rm -f conftest.er1
25502
 
  cat conftest.err >&5
25503
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504
 
  (exit $ac_status); } && {
25505
 
         test -z "$ac_c_werror_flag" ||
25506
 
         test ! -s conftest.err
25507
 
       } && test -s conftest.$ac_objext; then
25508
 
  ac_lo=$ac_mid; break
25509
 
else
25510
 
  $as_echo "$as_me: failed program was:" >&5
25511
 
sed 's/^/| /' conftest.$ac_ext >&5
25512
 
 
25513
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
25514
 
                        if test $ac_mid -le $ac_hi; then
25515
 
                          ac_lo= ac_hi=
25516
 
                          break
25517
 
                        fi
25518
 
                        ac_mid=`expr 2 '*' $ac_mid`
25519
 
fi
25520
 
 
25521
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25522
 
  done
25523
 
else
25524
 
  $as_echo "$as_me: failed program was:" >&5
25525
 
sed 's/^/| /' conftest.$ac_ext >&5
25526
 
 
25527
 
        ac_lo= ac_hi=
25528
 
fi
25529
 
 
25530
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531
 
fi
25532
 
 
25533
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534
 
# Binary search between lo and hi bounds.
25535
 
while test "x$ac_lo" != "x$ac_hi"; do
25536
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25537
 
  cat >conftest.$ac_ext <<_ACEOF
25538
 
/* confdefs.h.  */
25539
 
_ACEOF
25540
 
cat confdefs.h >>conftest.$ac_ext
25541
 
cat >>conftest.$ac_ext <<_ACEOF
25542
 
/* end confdefs.h.  */
25543
 
$ac_includes_default
25544
 
int
25545
 
main ()
25546
 
{
25547
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
25548
 
test_array @<:@0@:>@ = 0
25549
 
 
25550
 
  ;
25551
 
  return 0;
25552
 
}
25553
 
_ACEOF
25554
 
rm -f conftest.$ac_objext
25555
 
if { (ac_try="$ac_compile"
25556
 
case "(($ac_try" in
25557
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25558
 
  *) ac_try_echo=$ac_try;;
25559
 
esac
25560
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25561
 
$as_echo "$ac_try_echo") >&5
25562
 
  (eval "$ac_compile") 2>conftest.er1
25563
 
  ac_status=$?
25564
 
  grep -v '^ *+' conftest.er1 >conftest.err
25565
 
  rm -f conftest.er1
25566
 
  cat conftest.err >&5
25567
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568
 
  (exit $ac_status); } && {
25569
 
         test -z "$ac_c_werror_flag" ||
25570
 
         test ! -s conftest.err
25571
 
       } && test -s conftest.$ac_objext; then
25572
 
  ac_hi=$ac_mid
25573
 
else
25574
 
  $as_echo "$as_me: failed program was:" >&5
25575
 
sed 's/^/| /' conftest.$ac_ext >&5
25576
 
 
25577
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
25578
 
fi
25579
 
 
25580
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25581
 
done
25582
 
case $ac_lo in
25583
 
?*) ac_cv_sizeof_long_long=$ac_lo;;
25584
 
'') if test "$ac_cv_type_long_long" = yes; then
25585
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25586
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25587
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25588
 
See \`config.log' for more details." >&5
25589
 
$as_echo "$as_me: error: cannot compute sizeof (long long)
25590
 
See \`config.log' for more details." >&2;}
25591
 
   { (exit 77); exit 77; }; }; }
25592
 
   else
25593
 
     ac_cv_sizeof_long_long=0
25594
 
   fi ;;
25595
 
esac
25596
 
else
25597
 
  cat >conftest.$ac_ext <<_ACEOF
25598
 
/* confdefs.h.  */
25599
 
_ACEOF
25600
 
cat confdefs.h >>conftest.$ac_ext
25601
 
cat >>conftest.$ac_ext <<_ACEOF
25602
 
/* end confdefs.h.  */
25603
 
$ac_includes_default
25604
 
static long int longval () { return (long int) (sizeof (long long)); }
25605
 
static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
25606
 
@%:@include <stdio.h>
25607
 
@%:@include <stdlib.h>
25608
 
int
25609
 
main ()
25610
 
{
25611
 
 
25612
 
  FILE *f = fopen ("conftest.val", "w");
25613
 
  if (! f)
25614
 
    return 1;
25615
 
  if (((long int) (sizeof (long long))) < 0)
25616
 
    {
25617
 
      long int i = longval ();
25618
 
      if (i != ((long int) (sizeof (long long))))
25619
 
        return 1;
25620
 
      fprintf (f, "%ld", i);
25621
 
    }
25622
 
  else
25623
 
    {
25624
 
      unsigned long int i = ulongval ();
25625
 
      if (i != ((long int) (sizeof (long long))))
25626
 
        return 1;
25627
 
      fprintf (f, "%lu", i);
25628
 
    }
25629
 
  /* Do not output a trailing newline, as this causes \r\n confusion
25630
 
     on some platforms.  */
25631
 
  return ferror (f) || fclose (f) != 0;
25632
 
 
25633
 
  ;
25634
 
  return 0;
25635
 
}
25636
 
_ACEOF
25637
 
rm -f conftest$ac_exeext
25638
 
if { (ac_try="$ac_link"
25639
 
case "(($ac_try" in
25640
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641
 
  *) ac_try_echo=$ac_try;;
25642
 
esac
25643
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25644
 
$as_echo "$ac_try_echo") >&5
25645
 
  (eval "$ac_link") 2>&5
25646
 
  ac_status=$?
25647
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25649
 
  { (case "(($ac_try" in
25650
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25651
 
  *) ac_try_echo=$ac_try;;
25652
 
esac
25653
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25654
 
$as_echo "$ac_try_echo") >&5
25655
 
  (eval "$ac_try") 2>&5
25656
 
  ac_status=$?
25657
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658
 
  (exit $ac_status); }; }; then
25659
 
  ac_cv_sizeof_long_long=`cat conftest.val`
25660
 
else
25661
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
25662
 
$as_echo "$as_me: failed program was:" >&5
25663
 
sed 's/^/| /' conftest.$ac_ext >&5
25664
 
 
25665
 
( exit $ac_status )
25666
 
if test "$ac_cv_type_long_long" = yes; then
25667
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25668
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25669
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25670
 
See \`config.log' for more details." >&5
25671
 
$as_echo "$as_me: error: cannot compute sizeof (long long)
25672
 
See \`config.log' for more details." >&2;}
25673
 
   { (exit 77); exit 77; }; }; }
25674
 
   else
25675
 
     ac_cv_sizeof_long_long=0
25676
 
   fi
25677
 
fi
25678
 
rm -rf conftest.dSYM
25679
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25680
 
fi
25681
 
rm -f conftest.val
25682
 
fi
25683
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25684
 
$as_echo "$ac_cv_sizeof_long_long" >&6; }
25685
 
 
25686
 
 
25687
 
 
25688
 
cat >>confdefs.h <<_ACEOF
25689
 
@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25690
 
_ACEOF
25691
 
 
25692
 
 
25693
 
# The cast to long int works around a bug in the HP C Compiler
25694
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25695
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25696
 
# This bug is HP SR number 8606223364.
25697
 
{ $as_echo "$as_me:$LINENO: checking size of long long int" >&5
25698
 
$as_echo_n "checking size of long long int... " >&6; }
25699
 
if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25700
 
  $as_echo_n "(cached) " >&6
25701
 
else
25702
 
  if test "$cross_compiling" = yes; then
25703
 
  # Depending upon the size, compute the lo and hi bounds.
25704
 
cat >conftest.$ac_ext <<_ACEOF
25705
 
/* confdefs.h.  */
25706
 
_ACEOF
25707
 
cat confdefs.h >>conftest.$ac_ext
25708
 
cat >>conftest.$ac_ext <<_ACEOF
25709
 
/* end confdefs.h.  */
25710
 
$ac_includes_default
25711
 
int
25712
 
main ()
25713
 
{
25714
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long int))) >= 0)@:>@;
25715
 
test_array @<:@0@:>@ = 0
25716
 
 
25717
 
  ;
25718
 
  return 0;
25719
 
}
25720
 
_ACEOF
25721
 
rm -f conftest.$ac_objext
25722
 
if { (ac_try="$ac_compile"
25723
 
case "(($ac_try" in
25724
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725
 
  *) ac_try_echo=$ac_try;;
25726
 
esac
25727
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25728
 
$as_echo "$ac_try_echo") >&5
25729
 
  (eval "$ac_compile") 2>conftest.er1
25730
 
  ac_status=$?
25731
 
  grep -v '^ *+' conftest.er1 >conftest.err
25732
 
  rm -f conftest.er1
25733
 
  cat conftest.err >&5
25734
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735
 
  (exit $ac_status); } && {
25736
 
         test -z "$ac_c_werror_flag" ||
25737
 
         test ! -s conftest.err
25738
 
       } && test -s conftest.$ac_objext; then
25739
 
  ac_lo=0 ac_mid=0
25740
 
  while :; do
25741
 
    cat >conftest.$ac_ext <<_ACEOF
25742
 
/* confdefs.h.  */
25743
 
_ACEOF
25744
 
cat confdefs.h >>conftest.$ac_ext
25745
 
cat >>conftest.$ac_ext <<_ACEOF
25746
 
/* end confdefs.h.  */
25747
 
$ac_includes_default
25748
 
int
25749
 
main ()
25750
 
{
25751
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)@:>@;
25752
 
test_array @<:@0@:>@ = 0
25753
 
 
25754
 
  ;
25755
 
  return 0;
25756
 
}
25757
 
_ACEOF
25758
 
rm -f conftest.$ac_objext
25759
 
if { (ac_try="$ac_compile"
25760
 
case "(($ac_try" in
25761
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25762
 
  *) ac_try_echo=$ac_try;;
25763
 
esac
25764
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25765
 
$as_echo "$ac_try_echo") >&5
25766
 
  (eval "$ac_compile") 2>conftest.er1
25767
 
  ac_status=$?
25768
 
  grep -v '^ *+' conftest.er1 >conftest.err
25769
 
  rm -f conftest.er1
25770
 
  cat conftest.err >&5
25771
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772
 
  (exit $ac_status); } && {
25773
 
         test -z "$ac_c_werror_flag" ||
25774
 
         test ! -s conftest.err
25775
 
       } && test -s conftest.$ac_objext; then
25776
 
  ac_hi=$ac_mid; break
25777
 
else
25778
 
  $as_echo "$as_me: failed program was:" >&5
25779
 
sed 's/^/| /' conftest.$ac_ext >&5
25780
 
 
25781
 
        ac_lo=`expr $ac_mid + 1`
25782
 
                        if test $ac_lo -le $ac_mid; then
25783
 
                          ac_lo= ac_hi=
25784
 
                          break
25785
 
                        fi
25786
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
25787
 
fi
25788
 
 
25789
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25790
 
  done
25791
 
else
25792
 
  $as_echo "$as_me: failed program was:" >&5
25793
 
sed 's/^/| /' conftest.$ac_ext >&5
25794
 
 
25795
 
        cat >conftest.$ac_ext <<_ACEOF
25796
 
/* confdefs.h.  */
25797
 
_ACEOF
25798
 
cat confdefs.h >>conftest.$ac_ext
25799
 
cat >>conftest.$ac_ext <<_ACEOF
25800
 
/* end confdefs.h.  */
25801
 
$ac_includes_default
25802
 
int
25803
 
main ()
25804
 
{
25805
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long int))) < 0)@:>@;
25806
 
test_array @<:@0@:>@ = 0
25807
 
 
25808
 
  ;
25809
 
  return 0;
25810
 
}
25811
 
_ACEOF
25812
 
rm -f conftest.$ac_objext
25813
 
if { (ac_try="$ac_compile"
25814
 
case "(($ac_try" in
25815
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25816
 
  *) ac_try_echo=$ac_try;;
25817
 
esac
25818
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25819
 
$as_echo "$ac_try_echo") >&5
25820
 
  (eval "$ac_compile") 2>conftest.er1
25821
 
  ac_status=$?
25822
 
  grep -v '^ *+' conftest.er1 >conftest.err
25823
 
  rm -f conftest.er1
25824
 
  cat conftest.err >&5
25825
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826
 
  (exit $ac_status); } && {
25827
 
         test -z "$ac_c_werror_flag" ||
25828
 
         test ! -s conftest.err
25829
 
       } && test -s conftest.$ac_objext; then
25830
 
  ac_hi=-1 ac_mid=-1
25831
 
  while :; do
25832
 
    cat >conftest.$ac_ext <<_ACEOF
25833
 
/* confdefs.h.  */
25834
 
_ACEOF
25835
 
cat confdefs.h >>conftest.$ac_ext
25836
 
cat >>conftest.$ac_ext <<_ACEOF
25837
 
/* end confdefs.h.  */
25838
 
$ac_includes_default
25839
 
int
25840
 
main ()
25841
 
{
25842
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)@:>@;
25843
 
test_array @<:@0@:>@ = 0
25844
 
 
25845
 
  ;
25846
 
  return 0;
25847
 
}
25848
 
_ACEOF
25849
 
rm -f conftest.$ac_objext
25850
 
if { (ac_try="$ac_compile"
25851
 
case "(($ac_try" in
25852
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25853
 
  *) ac_try_echo=$ac_try;;
25854
 
esac
25855
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25856
 
$as_echo "$ac_try_echo") >&5
25857
 
  (eval "$ac_compile") 2>conftest.er1
25858
 
  ac_status=$?
25859
 
  grep -v '^ *+' conftest.er1 >conftest.err
25860
 
  rm -f conftest.er1
25861
 
  cat conftest.err >&5
25862
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863
 
  (exit $ac_status); } && {
25864
 
         test -z "$ac_c_werror_flag" ||
25865
 
         test ! -s conftest.err
25866
 
       } && test -s conftest.$ac_objext; then
25867
 
  ac_lo=$ac_mid; break
25868
 
else
25869
 
  $as_echo "$as_me: failed program was:" >&5
25870
 
sed 's/^/| /' conftest.$ac_ext >&5
25871
 
 
25872
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
25873
 
                        if test $ac_mid -le $ac_hi; then
25874
 
                          ac_lo= ac_hi=
25875
 
                          break
25876
 
                        fi
25877
 
                        ac_mid=`expr 2 '*' $ac_mid`
25878
 
fi
25879
 
 
25880
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25881
 
  done
25882
 
else
25883
 
  $as_echo "$as_me: failed program was:" >&5
25884
 
sed 's/^/| /' conftest.$ac_ext >&5
25885
 
 
25886
 
        ac_lo= ac_hi=
25887
 
fi
25888
 
 
25889
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25890
 
fi
25891
 
 
25892
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25893
 
# Binary search between lo and hi bounds.
25894
 
while test "x$ac_lo" != "x$ac_hi"; do
25895
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25896
 
  cat >conftest.$ac_ext <<_ACEOF
25897
 
/* confdefs.h.  */
25898
 
_ACEOF
25899
 
cat confdefs.h >>conftest.$ac_ext
25900
 
cat >>conftest.$ac_ext <<_ACEOF
25901
 
/* end confdefs.h.  */
25902
 
$ac_includes_default
25903
 
int
25904
 
main ()
25905
 
{
25906
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)@:>@;
25907
 
test_array @<:@0@:>@ = 0
25908
 
 
25909
 
  ;
25910
 
  return 0;
25911
 
}
25912
 
_ACEOF
25913
 
rm -f conftest.$ac_objext
25914
 
if { (ac_try="$ac_compile"
25915
 
case "(($ac_try" in
25916
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25917
 
  *) ac_try_echo=$ac_try;;
25918
 
esac
25919
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25920
 
$as_echo "$ac_try_echo") >&5
25921
 
  (eval "$ac_compile") 2>conftest.er1
25922
 
  ac_status=$?
25923
 
  grep -v '^ *+' conftest.er1 >conftest.err
25924
 
  rm -f conftest.er1
25925
 
  cat conftest.err >&5
25926
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927
 
  (exit $ac_status); } && {
25928
 
         test -z "$ac_c_werror_flag" ||
25929
 
         test ! -s conftest.err
25930
 
       } && test -s conftest.$ac_objext; then
25931
 
  ac_hi=$ac_mid
25932
 
else
25933
 
  $as_echo "$as_me: failed program was:" >&5
25934
 
sed 's/^/| /' conftest.$ac_ext >&5
25935
 
 
25936
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
25937
 
fi
25938
 
 
25939
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25940
 
done
25941
 
case $ac_lo in
25942
 
?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25943
 
'') if test "$ac_cv_type_long_long_int" = yes; then
25944
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25945
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25946
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25947
 
See \`config.log' for more details." >&5
25948
 
$as_echo "$as_me: error: cannot compute sizeof (long long int)
25949
 
See \`config.log' for more details." >&2;}
25950
 
   { (exit 77); exit 77; }; }; }
25951
 
   else
25952
 
     ac_cv_sizeof_long_long_int=0
25953
 
   fi ;;
25954
 
esac
25955
 
else
25956
 
  cat >conftest.$ac_ext <<_ACEOF
25957
 
/* confdefs.h.  */
25958
 
_ACEOF
25959
 
cat confdefs.h >>conftest.$ac_ext
25960
 
cat >>conftest.$ac_ext <<_ACEOF
25961
 
/* end confdefs.h.  */
25962
 
$ac_includes_default
25963
 
static long int longval () { return (long int) (sizeof (long long int)); }
25964
 
static unsigned long int ulongval () { return (long int) (sizeof (long long int)); }
25965
 
@%:@include <stdio.h>
25966
 
@%:@include <stdlib.h>
25967
 
int
25968
 
main ()
25969
 
{
25970
 
 
25971
 
  FILE *f = fopen ("conftest.val", "w");
25972
 
  if (! f)
25973
 
    return 1;
25974
 
  if (((long int) (sizeof (long long int))) < 0)
25975
 
    {
25976
 
      long int i = longval ();
25977
 
      if (i != ((long int) (sizeof (long long int))))
25978
 
        return 1;
25979
 
      fprintf (f, "%ld", i);
25980
 
    }
25981
 
  else
25982
 
    {
25983
 
      unsigned long int i = ulongval ();
25984
 
      if (i != ((long int) (sizeof (long long int))))
25985
 
        return 1;
25986
 
      fprintf (f, "%lu", i);
25987
 
    }
25988
 
  /* Do not output a trailing newline, as this causes \r\n confusion
25989
 
     on some platforms.  */
25990
 
  return ferror (f) || fclose (f) != 0;
25991
 
 
25992
 
  ;
25993
 
  return 0;
25994
 
}
25995
 
_ACEOF
25996
 
rm -f conftest$ac_exeext
25997
 
if { (ac_try="$ac_link"
25998
 
case "(($ac_try" in
25999
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000
 
  *) ac_try_echo=$ac_try;;
26001
 
esac
26002
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26003
 
$as_echo "$ac_try_echo") >&5
26004
 
  (eval "$ac_link") 2>&5
26005
 
  ac_status=$?
26006
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26008
 
  { (case "(($ac_try" in
26009
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26010
 
  *) ac_try_echo=$ac_try;;
26011
 
esac
26012
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26013
 
$as_echo "$ac_try_echo") >&5
26014
 
  (eval "$ac_try") 2>&5
26015
 
  ac_status=$?
26016
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017
 
  (exit $ac_status); }; }; then
26018
 
  ac_cv_sizeof_long_long_int=`cat conftest.val`
26019
 
else
26020
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
26021
 
$as_echo "$as_me: failed program was:" >&5
26022
 
sed 's/^/| /' conftest.$ac_ext >&5
26023
 
 
26024
 
( exit $ac_status )
26025
 
if test "$ac_cv_type_long_long_int" = yes; then
26026
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26027
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26028
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
26029
 
See \`config.log' for more details." >&5
26030
 
$as_echo "$as_me: error: cannot compute sizeof (long long int)
26031
 
See \`config.log' for more details." >&2;}
26032
 
   { (exit 77); exit 77; }; }; }
26033
 
   else
26034
 
     ac_cv_sizeof_long_long_int=0
26035
 
   fi
26036
 
fi
26037
 
rm -rf conftest.dSYM
26038
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26039
 
fi
26040
 
rm -f conftest.val
26041
 
fi
26042
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
26043
 
$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26044
 
 
26045
 
 
26046
 
 
26047
 
cat >>confdefs.h <<_ACEOF
26048
 
@%:@define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26049
 
_ACEOF
26050
 
 
26051
 
 
26052
 
# The cast to long int works around a bug in the HP C Compiler
26053
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26054
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26055
 
# This bug is HP SR number 8606223364.
26056
 
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
26057
 
$as_echo_n "checking size of long... " >&6; }
26058
 
if test "${ac_cv_sizeof_long+set}" = set; then
26059
 
  $as_echo_n "(cached) " >&6
26060
 
else
26061
 
  if test "$cross_compiling" = yes; then
26062
 
  # Depending upon the size, compute the lo and hi bounds.
26063
 
cat >conftest.$ac_ext <<_ACEOF
26064
 
/* confdefs.h.  */
26065
 
_ACEOF
26066
 
cat confdefs.h >>conftest.$ac_ext
26067
 
cat >>conftest.$ac_ext <<_ACEOF
26068
 
/* end confdefs.h.  */
26069
 
$ac_includes_default
26070
 
int
26071
 
main ()
26072
 
{
26073
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@;
26074
 
test_array @<:@0@:>@ = 0
26075
 
 
26076
 
  ;
26077
 
  return 0;
26078
 
}
26079
 
_ACEOF
26080
 
rm -f conftest.$ac_objext
26081
 
if { (ac_try="$ac_compile"
26082
 
case "(($ac_try" in
26083
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26084
 
  *) ac_try_echo=$ac_try;;
26085
 
esac
26086
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26087
 
$as_echo "$ac_try_echo") >&5
26088
 
  (eval "$ac_compile") 2>conftest.er1
26089
 
  ac_status=$?
26090
 
  grep -v '^ *+' conftest.er1 >conftest.err
26091
 
  rm -f conftest.er1
26092
 
  cat conftest.err >&5
26093
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094
 
  (exit $ac_status); } && {
26095
 
         test -z "$ac_c_werror_flag" ||
26096
 
         test ! -s conftest.err
26097
 
       } && test -s conftest.$ac_objext; then
26098
 
  ac_lo=0 ac_mid=0
26099
 
  while :; do
26100
 
    cat >conftest.$ac_ext <<_ACEOF
26101
 
/* confdefs.h.  */
26102
 
_ACEOF
26103
 
cat confdefs.h >>conftest.$ac_ext
26104
 
cat >>conftest.$ac_ext <<_ACEOF
26105
 
/* end confdefs.h.  */
26106
 
$ac_includes_default
26107
 
int
26108
 
main ()
26109
 
{
26110
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
26111
 
test_array @<:@0@:>@ = 0
26112
 
 
26113
 
  ;
26114
 
  return 0;
26115
 
}
26116
 
_ACEOF
26117
 
rm -f conftest.$ac_objext
26118
 
if { (ac_try="$ac_compile"
26119
 
case "(($ac_try" in
26120
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121
 
  *) ac_try_echo=$ac_try;;
26122
 
esac
26123
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26124
 
$as_echo "$ac_try_echo") >&5
26125
 
  (eval "$ac_compile") 2>conftest.er1
26126
 
  ac_status=$?
26127
 
  grep -v '^ *+' conftest.er1 >conftest.err
26128
 
  rm -f conftest.er1
26129
 
  cat conftest.err >&5
26130
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131
 
  (exit $ac_status); } && {
26132
 
         test -z "$ac_c_werror_flag" ||
26133
 
         test ! -s conftest.err
26134
 
       } && test -s conftest.$ac_objext; then
26135
 
  ac_hi=$ac_mid; break
26136
 
else
26137
 
  $as_echo "$as_me: failed program was:" >&5
26138
 
sed 's/^/| /' conftest.$ac_ext >&5
26139
 
 
26140
 
        ac_lo=`expr $ac_mid + 1`
26141
 
                        if test $ac_lo -le $ac_mid; then
26142
 
                          ac_lo= ac_hi=
26143
 
                          break
26144
 
                        fi
26145
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
26146
 
fi
26147
 
 
26148
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26149
 
  done
26150
 
else
26151
 
  $as_echo "$as_me: failed program was:" >&5
26152
 
sed 's/^/| /' conftest.$ac_ext >&5
26153
 
 
26154
 
        cat >conftest.$ac_ext <<_ACEOF
26155
 
/* confdefs.h.  */
26156
 
_ACEOF
26157
 
cat confdefs.h >>conftest.$ac_ext
26158
 
cat >>conftest.$ac_ext <<_ACEOF
26159
 
/* end confdefs.h.  */
26160
 
$ac_includes_default
26161
 
int
26162
 
main ()
26163
 
{
26164
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@;
26165
 
test_array @<:@0@:>@ = 0
26166
 
 
26167
 
  ;
26168
 
  return 0;
26169
 
}
26170
 
_ACEOF
26171
 
rm -f conftest.$ac_objext
26172
 
if { (ac_try="$ac_compile"
26173
 
case "(($ac_try" in
26174
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175
 
  *) ac_try_echo=$ac_try;;
26176
 
esac
26177
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26178
 
$as_echo "$ac_try_echo") >&5
26179
 
  (eval "$ac_compile") 2>conftest.er1
26180
 
  ac_status=$?
26181
 
  grep -v '^ *+' conftest.er1 >conftest.err
26182
 
  rm -f conftest.er1
26183
 
  cat conftest.err >&5
26184
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185
 
  (exit $ac_status); } && {
26186
 
         test -z "$ac_c_werror_flag" ||
26187
 
         test ! -s conftest.err
26188
 
       } && test -s conftest.$ac_objext; then
26189
 
  ac_hi=-1 ac_mid=-1
26190
 
  while :; do
26191
 
    cat >conftest.$ac_ext <<_ACEOF
26192
 
/* confdefs.h.  */
26193
 
_ACEOF
26194
 
cat confdefs.h >>conftest.$ac_ext
26195
 
cat >>conftest.$ac_ext <<_ACEOF
26196
 
/* end confdefs.h.  */
26197
 
$ac_includes_default
26198
 
int
26199
 
main ()
26200
 
{
26201
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@;
26202
 
test_array @<:@0@:>@ = 0
26203
 
 
26204
 
  ;
26205
 
  return 0;
26206
 
}
26207
 
_ACEOF
26208
 
rm -f conftest.$ac_objext
26209
 
if { (ac_try="$ac_compile"
26210
 
case "(($ac_try" in
26211
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26212
 
  *) ac_try_echo=$ac_try;;
26213
 
esac
26214
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26215
 
$as_echo "$ac_try_echo") >&5
26216
 
  (eval "$ac_compile") 2>conftest.er1
26217
 
  ac_status=$?
26218
 
  grep -v '^ *+' conftest.er1 >conftest.err
26219
 
  rm -f conftest.er1
26220
 
  cat conftest.err >&5
26221
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222
 
  (exit $ac_status); } && {
26223
 
         test -z "$ac_c_werror_flag" ||
26224
 
         test ! -s conftest.err
26225
 
       } && test -s conftest.$ac_objext; then
26226
 
  ac_lo=$ac_mid; break
26227
 
else
26228
 
  $as_echo "$as_me: failed program was:" >&5
26229
 
sed 's/^/| /' conftest.$ac_ext >&5
26230
 
 
26231
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
26232
 
                        if test $ac_mid -le $ac_hi; then
26233
 
                          ac_lo= ac_hi=
26234
 
                          break
26235
 
                        fi
26236
 
                        ac_mid=`expr 2 '*' $ac_mid`
26237
 
fi
26238
 
 
26239
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240
 
  done
26241
 
else
26242
 
  $as_echo "$as_me: failed program was:" >&5
26243
 
sed 's/^/| /' conftest.$ac_ext >&5
26244
 
 
26245
 
        ac_lo= ac_hi=
26246
 
fi
26247
 
 
26248
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26249
 
fi
26250
 
 
26251
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26252
 
# Binary search between lo and hi bounds.
26253
 
while test "x$ac_lo" != "x$ac_hi"; do
26254
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26255
 
  cat >conftest.$ac_ext <<_ACEOF
26256
 
/* confdefs.h.  */
26257
 
_ACEOF
26258
 
cat confdefs.h >>conftest.$ac_ext
26259
 
cat >>conftest.$ac_ext <<_ACEOF
26260
 
/* end confdefs.h.  */
26261
 
$ac_includes_default
26262
 
int
26263
 
main ()
26264
 
{
26265
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
26266
 
test_array @<:@0@:>@ = 0
26267
 
 
26268
 
  ;
26269
 
  return 0;
26270
 
}
26271
 
_ACEOF
26272
 
rm -f conftest.$ac_objext
26273
 
if { (ac_try="$ac_compile"
26274
 
case "(($ac_try" in
26275
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26276
 
  *) ac_try_echo=$ac_try;;
26277
 
esac
26278
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26279
 
$as_echo "$ac_try_echo") >&5
26280
 
  (eval "$ac_compile") 2>conftest.er1
26281
 
  ac_status=$?
26282
 
  grep -v '^ *+' conftest.er1 >conftest.err
26283
 
  rm -f conftest.er1
26284
 
  cat conftest.err >&5
26285
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286
 
  (exit $ac_status); } && {
26287
 
         test -z "$ac_c_werror_flag" ||
26288
 
         test ! -s conftest.err
26289
 
       } && test -s conftest.$ac_objext; then
26290
 
  ac_hi=$ac_mid
26291
 
else
26292
 
  $as_echo "$as_me: failed program was:" >&5
26293
 
sed 's/^/| /' conftest.$ac_ext >&5
26294
 
 
26295
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
26296
 
fi
26297
 
 
26298
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26299
 
done
26300
 
case $ac_lo in
26301
 
?*) ac_cv_sizeof_long=$ac_lo;;
26302
 
'') if test "$ac_cv_type_long" = yes; then
26303
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26304
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26305
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26306
 
See \`config.log' for more details." >&5
26307
 
$as_echo "$as_me: error: cannot compute sizeof (long)
26308
 
See \`config.log' for more details." >&2;}
26309
 
   { (exit 77); exit 77; }; }; }
26310
 
   else
26311
 
     ac_cv_sizeof_long=0
26312
 
   fi ;;
26313
 
esac
26314
 
else
26315
 
  cat >conftest.$ac_ext <<_ACEOF
26316
 
/* confdefs.h.  */
26317
 
_ACEOF
26318
 
cat confdefs.h >>conftest.$ac_ext
26319
 
cat >>conftest.$ac_ext <<_ACEOF
26320
 
/* end confdefs.h.  */
26321
 
$ac_includes_default
26322
 
static long int longval () { return (long int) (sizeof (long)); }
26323
 
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26324
 
@%:@include <stdio.h>
26325
 
@%:@include <stdlib.h>
26326
 
int
26327
 
main ()
26328
 
{
26329
 
 
26330
 
  FILE *f = fopen ("conftest.val", "w");
26331
 
  if (! f)
26332
 
    return 1;
26333
 
  if (((long int) (sizeof (long))) < 0)
26334
 
    {
26335
 
      long int i = longval ();
26336
 
      if (i != ((long int) (sizeof (long))))
26337
 
        return 1;
26338
 
      fprintf (f, "%ld", i);
26339
 
    }
26340
 
  else
26341
 
    {
26342
 
      unsigned long int i = ulongval ();
26343
 
      if (i != ((long int) (sizeof (long))))
26344
 
        return 1;
26345
 
      fprintf (f, "%lu", i);
26346
 
    }
26347
 
  /* Do not output a trailing newline, as this causes \r\n confusion
26348
 
     on some platforms.  */
26349
 
  return ferror (f) || fclose (f) != 0;
26350
 
 
26351
 
  ;
26352
 
  return 0;
26353
 
}
26354
 
_ACEOF
26355
 
rm -f conftest$ac_exeext
26356
 
if { (ac_try="$ac_link"
26357
 
case "(($ac_try" in
26358
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26359
 
  *) ac_try_echo=$ac_try;;
26360
 
esac
26361
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26362
 
$as_echo "$ac_try_echo") >&5
26363
 
  (eval "$ac_link") 2>&5
26364
 
  ac_status=$?
26365
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26367
 
  { (case "(($ac_try" in
26368
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26369
 
  *) ac_try_echo=$ac_try;;
26370
 
esac
26371
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26372
 
$as_echo "$ac_try_echo") >&5
26373
 
  (eval "$ac_try") 2>&5
26374
 
  ac_status=$?
26375
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376
 
  (exit $ac_status); }; }; then
26377
 
  ac_cv_sizeof_long=`cat conftest.val`
26378
 
else
26379
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
26380
 
$as_echo "$as_me: failed program was:" >&5
26381
 
sed 's/^/| /' conftest.$ac_ext >&5
26382
 
 
26383
 
( exit $ac_status )
26384
 
if test "$ac_cv_type_long" = yes; then
26385
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26386
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26387
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26388
 
See \`config.log' for more details." >&5
26389
 
$as_echo "$as_me: error: cannot compute sizeof (long)
26390
 
See \`config.log' for more details." >&2;}
26391
 
   { (exit 77); exit 77; }; }; }
26392
 
   else
26393
 
     ac_cv_sizeof_long=0
26394
 
   fi
26395
 
fi
26396
 
rm -rf conftest.dSYM
26397
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26398
 
fi
26399
 
rm -f conftest.val
26400
 
fi
26401
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26402
 
$as_echo "$ac_cv_sizeof_long" >&6; }
26403
 
 
26404
 
 
26405
 
 
26406
 
cat >>confdefs.h <<_ACEOF
26407
 
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
26408
 
_ACEOF
26409
 
 
26410
 
 
26411
 
# The cast to long int works around a bug in the HP C Compiler
26412
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26413
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26414
 
# This bug is HP SR number 8606223364.
26415
 
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
26416
 
$as_echo_n "checking size of int... " >&6; }
26417
 
if test "${ac_cv_sizeof_int+set}" = set; then
26418
 
  $as_echo_n "(cached) " >&6
26419
 
else
26420
 
  if test "$cross_compiling" = yes; then
26421
 
  # Depending upon the size, compute the lo and hi bounds.
26422
 
cat >conftest.$ac_ext <<_ACEOF
26423
 
/* confdefs.h.  */
26424
 
_ACEOF
26425
 
cat confdefs.h >>conftest.$ac_ext
26426
 
cat >>conftest.$ac_ext <<_ACEOF
26427
 
/* end confdefs.h.  */
26428
 
$ac_includes_default
26429
 
int
26430
 
main ()
26431
 
{
26432
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= 0)@:>@;
26433
 
test_array @<:@0@:>@ = 0
26434
 
 
26435
 
  ;
26436
 
  return 0;
26437
 
}
26438
 
_ACEOF
26439
 
rm -f conftest.$ac_objext
26440
 
if { (ac_try="$ac_compile"
26441
 
case "(($ac_try" in
26442
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26443
 
  *) ac_try_echo=$ac_try;;
26444
 
esac
26445
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26446
 
$as_echo "$ac_try_echo") >&5
26447
 
  (eval "$ac_compile") 2>conftest.er1
26448
 
  ac_status=$?
26449
 
  grep -v '^ *+' conftest.er1 >conftest.err
26450
 
  rm -f conftest.er1
26451
 
  cat conftest.err >&5
26452
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453
 
  (exit $ac_status); } && {
26454
 
         test -z "$ac_c_werror_flag" ||
26455
 
         test ! -s conftest.err
26456
 
       } && test -s conftest.$ac_objext; then
26457
 
  ac_lo=0 ac_mid=0
26458
 
  while :; do
26459
 
    cat >conftest.$ac_ext <<_ACEOF
26460
 
/* confdefs.h.  */
26461
 
_ACEOF
26462
 
cat confdefs.h >>conftest.$ac_ext
26463
 
cat >>conftest.$ac_ext <<_ACEOF
26464
 
/* end confdefs.h.  */
26465
 
$ac_includes_default
26466
 
int
26467
 
main ()
26468
 
{
26469
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
26470
 
test_array @<:@0@:>@ = 0
26471
 
 
26472
 
  ;
26473
 
  return 0;
26474
 
}
26475
 
_ACEOF
26476
 
rm -f conftest.$ac_objext
26477
 
if { (ac_try="$ac_compile"
26478
 
case "(($ac_try" in
26479
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26480
 
  *) ac_try_echo=$ac_try;;
26481
 
esac
26482
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26483
 
$as_echo "$ac_try_echo") >&5
26484
 
  (eval "$ac_compile") 2>conftest.er1
26485
 
  ac_status=$?
26486
 
  grep -v '^ *+' conftest.er1 >conftest.err
26487
 
  rm -f conftest.er1
26488
 
  cat conftest.err >&5
26489
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490
 
  (exit $ac_status); } && {
26491
 
         test -z "$ac_c_werror_flag" ||
26492
 
         test ! -s conftest.err
26493
 
       } && test -s conftest.$ac_objext; then
26494
 
  ac_hi=$ac_mid; break
26495
 
else
26496
 
  $as_echo "$as_me: failed program was:" >&5
26497
 
sed 's/^/| /' conftest.$ac_ext >&5
26498
 
 
26499
 
        ac_lo=`expr $ac_mid + 1`
26500
 
                        if test $ac_lo -le $ac_mid; then
26501
 
                          ac_lo= ac_hi=
26502
 
                          break
26503
 
                        fi
26504
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
26505
 
fi
26506
 
 
26507
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26508
 
  done
26509
 
else
26510
 
  $as_echo "$as_me: failed program was:" >&5
26511
 
sed 's/^/| /' conftest.$ac_ext >&5
26512
 
 
26513
 
        cat >conftest.$ac_ext <<_ACEOF
26514
 
/* confdefs.h.  */
26515
 
_ACEOF
26516
 
cat confdefs.h >>conftest.$ac_ext
26517
 
cat >>conftest.$ac_ext <<_ACEOF
26518
 
/* end confdefs.h.  */
26519
 
$ac_includes_default
26520
 
int
26521
 
main ()
26522
 
{
26523
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) < 0)@:>@;
26524
 
test_array @<:@0@:>@ = 0
26525
 
 
26526
 
  ;
26527
 
  return 0;
26528
 
}
26529
 
_ACEOF
26530
 
rm -f conftest.$ac_objext
26531
 
if { (ac_try="$ac_compile"
26532
 
case "(($ac_try" in
26533
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534
 
  *) ac_try_echo=$ac_try;;
26535
 
esac
26536
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26537
 
$as_echo "$ac_try_echo") >&5
26538
 
  (eval "$ac_compile") 2>conftest.er1
26539
 
  ac_status=$?
26540
 
  grep -v '^ *+' conftest.er1 >conftest.err
26541
 
  rm -f conftest.er1
26542
 
  cat conftest.err >&5
26543
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544
 
  (exit $ac_status); } && {
26545
 
         test -z "$ac_c_werror_flag" ||
26546
 
         test ! -s conftest.err
26547
 
       } && test -s conftest.$ac_objext; then
26548
 
  ac_hi=-1 ac_mid=-1
26549
 
  while :; do
26550
 
    cat >conftest.$ac_ext <<_ACEOF
26551
 
/* confdefs.h.  */
26552
 
_ACEOF
26553
 
cat confdefs.h >>conftest.$ac_ext
26554
 
cat >>conftest.$ac_ext <<_ACEOF
26555
 
/* end confdefs.h.  */
26556
 
$ac_includes_default
26557
 
int
26558
 
main ()
26559
 
{
26560
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)@:>@;
26561
 
test_array @<:@0@:>@ = 0
26562
 
 
26563
 
  ;
26564
 
  return 0;
26565
 
}
26566
 
_ACEOF
26567
 
rm -f conftest.$ac_objext
26568
 
if { (ac_try="$ac_compile"
26569
 
case "(($ac_try" in
26570
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26571
 
  *) ac_try_echo=$ac_try;;
26572
 
esac
26573
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26574
 
$as_echo "$ac_try_echo") >&5
26575
 
  (eval "$ac_compile") 2>conftest.er1
26576
 
  ac_status=$?
26577
 
  grep -v '^ *+' conftest.er1 >conftest.err
26578
 
  rm -f conftest.er1
26579
 
  cat conftest.err >&5
26580
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581
 
  (exit $ac_status); } && {
26582
 
         test -z "$ac_c_werror_flag" ||
26583
 
         test ! -s conftest.err
26584
 
       } && test -s conftest.$ac_objext; then
26585
 
  ac_lo=$ac_mid; break
26586
 
else
26587
 
  $as_echo "$as_me: failed program was:" >&5
26588
 
sed 's/^/| /' conftest.$ac_ext >&5
26589
 
 
26590
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
26591
 
                        if test $ac_mid -le $ac_hi; then
26592
 
                          ac_lo= ac_hi=
26593
 
                          break
26594
 
                        fi
26595
 
                        ac_mid=`expr 2 '*' $ac_mid`
26596
 
fi
26597
 
 
26598
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26599
 
  done
26600
 
else
26601
 
  $as_echo "$as_me: failed program was:" >&5
26602
 
sed 's/^/| /' conftest.$ac_ext >&5
26603
 
 
26604
 
        ac_lo= ac_hi=
26605
 
fi
26606
 
 
26607
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26608
 
fi
26609
 
 
26610
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26611
 
# Binary search between lo and hi bounds.
26612
 
while test "x$ac_lo" != "x$ac_hi"; do
26613
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26614
 
  cat >conftest.$ac_ext <<_ACEOF
26615
 
/* confdefs.h.  */
26616
 
_ACEOF
26617
 
cat confdefs.h >>conftest.$ac_ext
26618
 
cat >>conftest.$ac_ext <<_ACEOF
26619
 
/* end confdefs.h.  */
26620
 
$ac_includes_default
26621
 
int
26622
 
main ()
26623
 
{
26624
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
26625
 
test_array @<:@0@:>@ = 0
26626
 
 
26627
 
  ;
26628
 
  return 0;
26629
 
}
26630
 
_ACEOF
26631
 
rm -f conftest.$ac_objext
26632
 
if { (ac_try="$ac_compile"
26633
 
case "(($ac_try" in
26634
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635
 
  *) ac_try_echo=$ac_try;;
26636
 
esac
26637
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26638
 
$as_echo "$ac_try_echo") >&5
26639
 
  (eval "$ac_compile") 2>conftest.er1
26640
 
  ac_status=$?
26641
 
  grep -v '^ *+' conftest.er1 >conftest.err
26642
 
  rm -f conftest.er1
26643
 
  cat conftest.err >&5
26644
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645
 
  (exit $ac_status); } && {
26646
 
         test -z "$ac_c_werror_flag" ||
26647
 
         test ! -s conftest.err
26648
 
       } && test -s conftest.$ac_objext; then
26649
 
  ac_hi=$ac_mid
26650
 
else
26651
 
  $as_echo "$as_me: failed program was:" >&5
26652
 
sed 's/^/| /' conftest.$ac_ext >&5
26653
 
 
26654
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
26655
 
fi
26656
 
 
26657
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26658
 
done
26659
 
case $ac_lo in
26660
 
?*) ac_cv_sizeof_int=$ac_lo;;
26661
 
'') if test "$ac_cv_type_int" = yes; then
26662
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26663
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26664
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26665
 
See \`config.log' for more details." >&5
26666
 
$as_echo "$as_me: error: cannot compute sizeof (int)
26667
 
See \`config.log' for more details." >&2;}
26668
 
   { (exit 77); exit 77; }; }; }
26669
 
   else
26670
 
     ac_cv_sizeof_int=0
26671
 
   fi ;;
26672
 
esac
26673
 
else
26674
 
  cat >conftest.$ac_ext <<_ACEOF
26675
 
/* confdefs.h.  */
26676
 
_ACEOF
26677
 
cat confdefs.h >>conftest.$ac_ext
26678
 
cat >>conftest.$ac_ext <<_ACEOF
26679
 
/* end confdefs.h.  */
26680
 
$ac_includes_default
26681
 
static long int longval () { return (long int) (sizeof (int)); }
26682
 
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
26683
 
@%:@include <stdio.h>
26684
 
@%:@include <stdlib.h>
26685
 
int
26686
 
main ()
26687
 
{
26688
 
 
26689
 
  FILE *f = fopen ("conftest.val", "w");
26690
 
  if (! f)
26691
 
    return 1;
26692
 
  if (((long int) (sizeof (int))) < 0)
26693
 
    {
26694
 
      long int i = longval ();
26695
 
      if (i != ((long int) (sizeof (int))))
26696
 
        return 1;
26697
 
      fprintf (f, "%ld", i);
26698
 
    }
26699
 
  else
26700
 
    {
26701
 
      unsigned long int i = ulongval ();
26702
 
      if (i != ((long int) (sizeof (int))))
26703
 
        return 1;
26704
 
      fprintf (f, "%lu", i);
26705
 
    }
26706
 
  /* Do not output a trailing newline, as this causes \r\n confusion
26707
 
     on some platforms.  */
26708
 
  return ferror (f) || fclose (f) != 0;
26709
 
 
26710
 
  ;
26711
 
  return 0;
26712
 
}
26713
 
_ACEOF
26714
 
rm -f conftest$ac_exeext
26715
 
if { (ac_try="$ac_link"
26716
 
case "(($ac_try" in
26717
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718
 
  *) ac_try_echo=$ac_try;;
26719
 
esac
26720
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26721
 
$as_echo "$ac_try_echo") >&5
26722
 
  (eval "$ac_link") 2>&5
26723
 
  ac_status=$?
26724
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26726
 
  { (case "(($ac_try" in
26727
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728
 
  *) ac_try_echo=$ac_try;;
26729
 
esac
26730
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26731
 
$as_echo "$ac_try_echo") >&5
26732
 
  (eval "$ac_try") 2>&5
26733
 
  ac_status=$?
26734
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735
 
  (exit $ac_status); }; }; then
26736
 
  ac_cv_sizeof_int=`cat conftest.val`
26737
 
else
26738
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
26739
 
$as_echo "$as_me: failed program was:" >&5
26740
 
sed 's/^/| /' conftest.$ac_ext >&5
26741
 
 
26742
 
( exit $ac_status )
26743
 
if test "$ac_cv_type_int" = yes; then
26744
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26745
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26746
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26747
 
See \`config.log' for more details." >&5
26748
 
$as_echo "$as_me: error: cannot compute sizeof (int)
26749
 
See \`config.log' for more details." >&2;}
26750
 
   { (exit 77); exit 77; }; }; }
26751
 
   else
26752
 
     ac_cv_sizeof_int=0
26753
 
   fi
26754
 
fi
26755
 
rm -rf conftest.dSYM
26756
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26757
 
fi
26758
 
rm -f conftest.val
26759
 
fi
26760
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26761
 
$as_echo "$ac_cv_sizeof_int" >&6; }
26762
 
 
26763
 
 
26764
 
 
26765
 
cat >>confdefs.h <<_ACEOF
26766
 
@%:@define SIZEOF_INT $ac_cv_sizeof_int
26767
 
_ACEOF
26768
 
 
26769
 
 
26770
 
 
26771
 
 
26772
 
  { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
26773
 
$as_echo_n "checking size of intmax_t... " >&6; }
26774
 
  
26775
 
  php_cache_value=php_cv_sizeof_intmax_t
26776
 
  if test "${php_cv_sizeof_intmax_t+set}" = set; then
26777
 
  $as_echo_n "(cached) " >&6
26778
 
else
26779
 
  
26780
 
    old_LIBS=$LIBS
26781
 
    LIBS=
26782
 
    old_LDFLAGS=$LDFLAGS
26783
 
    LDFLAGS=
26784
 
    if test "$cross_compiling" = yes; then
26785
 
  
26786
 
    eval $php_cache_value=0
26787
 
 
26788
 
else
26789
 
  cat >conftest.$ac_ext <<_ACEOF
26790
 
/* confdefs.h.  */
26791
 
_ACEOF
26792
 
cat confdefs.h >>conftest.$ac_ext
26793
 
cat >>conftest.$ac_ext <<_ACEOF
26794
 
/* end confdefs.h.  */
26795
 
#include <stdio.h>
26796
 
#if STDC_HEADERS
26797
 
#include <stdlib.h>
26798
 
#include <stddef.h>
26799
 
#endif
26800
 
#ifdef HAVE_INTTYPES_H
26801
 
#include <inttypes.h>
26802
 
#endif
26803
 
#ifdef HAVE_UNISTD_H
26804
 
#include <unistd.h>
26805
 
#endif
26806
 
 
26807
 
 
26808
 
int main()
26809
 
{
26810
 
        FILE *fp = fopen("conftestval", "w");
26811
 
        if (!fp) return(1);
26812
 
        fprintf(fp, "%d\n", sizeof(intmax_t));
26813
 
        return(0);
26814
 
}
26815
 
  
26816
 
_ACEOF
26817
 
rm -f conftest$ac_exeext
26818
 
if { (ac_try="$ac_link"
26819
 
case "(($ac_try" in
26820
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821
 
  *) ac_try_echo=$ac_try;;
26822
 
esac
26823
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26824
 
$as_echo "$ac_try_echo") >&5
26825
 
  (eval "$ac_link") 2>&5
26826
 
  ac_status=$?
26827
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26829
 
  { (case "(($ac_try" in
26830
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26831
 
  *) ac_try_echo=$ac_try;;
26832
 
esac
26833
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26834
 
$as_echo "$ac_try_echo") >&5
26835
 
  (eval "$ac_try") 2>&5
26836
 
  ac_status=$?
26837
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838
 
  (exit $ac_status); }; }; then
26839
 
  
26840
 
    eval $php_cache_value=`cat conftestval`
26841
 
  
26842
 
else
26843
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
26844
 
$as_echo "$as_me: failed program was:" >&5
26845
 
sed 's/^/| /' conftest.$ac_ext >&5
26846
 
 
26847
 
( exit $ac_status )
26848
 
 
26849
 
    eval $php_cache_value=0
26850
 
  
26851
 
fi
26852
 
rm -rf conftest.dSYM
26853
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26854
 
fi
26855
 
 
26856
 
 
26857
 
  LDFLAGS=$old_LDFLAGS
26858
 
  LIBS=$old_LIBS
26859
 
 
26860
 
fi
26861
 
 
26862
 
  if eval test "\$$php_cache_value" != "0"; then
26863
 
 
26864
 
    
26865
 
cat >>confdefs.h <<_ACEOF
26866
 
@%:@define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t
26867
 
_ACEOF
26868
 
 
26869
 
    
26870
 
cat >>confdefs.h <<_ACEOF
26871
 
@%:@define HAVE_INTMAX_T 1
26872
 
_ACEOF
26873
 
 
26874
 
  
26875
 
 
26876
 
  fi
26877
 
 
26878
 
  { $as_echo "$as_me:$LINENO: result: $php_cv_sizeof_intmax_t" >&5
26879
 
$as_echo "$php_cv_sizeof_intmax_t" >&6; }
26880
 
 
26881
 
 
26882
 
  { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
26883
 
$as_echo_n "checking size of ssize_t... " >&6; }
26884
 
  
26885
 
  php_cache_value=php_cv_sizeof_ssize_t
26886
 
  if test "${php_cv_sizeof_ssize_t+set}" = set; then
26887
 
  $as_echo_n "(cached) " >&6
26888
 
else
26889
 
  
26890
 
    old_LIBS=$LIBS
26891
 
    LIBS=
26892
 
    old_LDFLAGS=$LDFLAGS
26893
 
    LDFLAGS=
26894
 
    if test "$cross_compiling" = yes; then
26895
 
  
26896
 
    eval $php_cache_value=8
26897
 
 
26898
 
else
26899
 
  cat >conftest.$ac_ext <<_ACEOF
26900
 
/* confdefs.h.  */
26901
 
_ACEOF
26902
 
cat confdefs.h >>conftest.$ac_ext
26903
 
cat >>conftest.$ac_ext <<_ACEOF
26904
 
/* end confdefs.h.  */
26905
 
#include <stdio.h>
26906
 
#if STDC_HEADERS
26907
 
#include <stdlib.h>
26908
 
#include <stddef.h>
26909
 
#endif
26910
 
#ifdef HAVE_INTTYPES_H
26911
 
#include <inttypes.h>
26912
 
#endif
26913
 
#ifdef HAVE_UNISTD_H
26914
 
#include <unistd.h>
26915
 
#endif
26916
 
 
26917
 
 
26918
 
int main()
26919
 
{
26920
 
        FILE *fp = fopen("conftestval", "w");
26921
 
        if (!fp) return(1);
26922
 
        fprintf(fp, "%d\n", sizeof(ssize_t));
26923
 
        return(0);
26924
 
}
26925
 
  
26926
 
_ACEOF
26927
 
rm -f conftest$ac_exeext
26928
 
if { (ac_try="$ac_link"
26929
 
case "(($ac_try" in
26930
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26931
 
  *) ac_try_echo=$ac_try;;
26932
 
esac
26933
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26934
 
$as_echo "$ac_try_echo") >&5
26935
 
  (eval "$ac_link") 2>&5
26936
 
  ac_status=$?
26937
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26939
 
  { (case "(($ac_try" in
26940
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26941
 
  *) ac_try_echo=$ac_try;;
26942
 
esac
26943
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26944
 
$as_echo "$ac_try_echo") >&5
26945
 
  (eval "$ac_try") 2>&5
26946
 
  ac_status=$?
26947
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948
 
  (exit $ac_status); }; }; then
26949
 
  
26950
 
    eval $php_cache_value=`cat conftestval`
26951
 
  
26952
 
else
26953
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
26954
 
$as_echo "$as_me: failed program was:" >&5
26955
 
sed 's/^/| /' conftest.$ac_ext >&5
26956
 
 
26957
 
( exit $ac_status )
26958
 
 
26959
 
    eval $php_cache_value=0
26960
 
  
26961
 
fi
26962
 
rm -rf conftest.dSYM
26963
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26964
 
fi
26965
 
 
26966
 
 
26967
 
  LDFLAGS=$old_LDFLAGS
26968
 
  LIBS=$old_LIBS
26969
 
 
26970
 
fi
26971
 
 
26972
 
  if eval test "\$$php_cache_value" != "0"; then
26973
 
 
26974
 
    
26975
 
cat >>confdefs.h <<_ACEOF
26976
 
@%:@define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t
26977
 
_ACEOF
26978
 
 
26979
 
    
26980
 
cat >>confdefs.h <<_ACEOF
26981
 
@%:@define HAVE_SSIZE_T 1
26982
 
_ACEOF
26983
 
 
26984
 
  
26985
 
 
26986
 
  fi
26987
 
 
26988
 
  { $as_echo "$as_me:$LINENO: result: $php_cv_sizeof_ssize_t" >&5
26989
 
$as_echo "$php_cv_sizeof_ssize_t" >&6; }
26990
 
 
26991
 
 
26992
 
  { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
26993
 
$as_echo_n "checking size of ptrdiff_t... " >&6; }
26994
 
  
26995
 
  php_cache_value=php_cv_sizeof_ptrdiff_t
26996
 
  if test "${php_cv_sizeof_ptrdiff_t+set}" = set; then
26997
 
  $as_echo_n "(cached) " >&6
26998
 
else
26999
 
  
27000
 
    old_LIBS=$LIBS
27001
 
    LIBS=
27002
 
    old_LDFLAGS=$LDFLAGS
27003
 
    LDFLAGS=
27004
 
    if test "$cross_compiling" = yes; then
27005
 
  
27006
 
    eval $php_cache_value=8
27007
 
 
27008
 
else
27009
 
  cat >conftest.$ac_ext <<_ACEOF
27010
 
/* confdefs.h.  */
27011
 
_ACEOF
27012
 
cat confdefs.h >>conftest.$ac_ext
27013
 
cat >>conftest.$ac_ext <<_ACEOF
27014
 
/* end confdefs.h.  */
27015
 
#include <stdio.h>
27016
 
#if STDC_HEADERS
27017
 
#include <stdlib.h>
27018
 
#include <stddef.h>
27019
 
#endif
27020
 
#ifdef HAVE_INTTYPES_H
27021
 
#include <inttypes.h>
27022
 
#endif
27023
 
#ifdef HAVE_UNISTD_H
27024
 
#include <unistd.h>
27025
 
#endif
27026
 
 
27027
 
 
27028
 
int main()
27029
 
{
27030
 
        FILE *fp = fopen("conftestval", "w");
27031
 
        if (!fp) return(1);
27032
 
        fprintf(fp, "%d\n", sizeof(ptrdiff_t));
27033
 
        return(0);
27034
 
}
27035
 
  
27036
 
_ACEOF
27037
 
rm -f conftest$ac_exeext
27038
 
if { (ac_try="$ac_link"
27039
 
case "(($ac_try" in
27040
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041
 
  *) ac_try_echo=$ac_try;;
27042
 
esac
27043
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27044
 
$as_echo "$ac_try_echo") >&5
27045
 
  (eval "$ac_link") 2>&5
27046
 
  ac_status=$?
27047
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27049
 
  { (case "(($ac_try" in
27050
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051
 
  *) ac_try_echo=$ac_try;;
27052
 
esac
27053
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27054
 
$as_echo "$ac_try_echo") >&5
27055
 
  (eval "$ac_try") 2>&5
27056
 
  ac_status=$?
27057
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058
 
  (exit $ac_status); }; }; then
27059
 
  
27060
 
    eval $php_cache_value=`cat conftestval`
27061
 
  
27062
 
else
27063
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
27064
 
$as_echo "$as_me: failed program was:" >&5
27065
 
sed 's/^/| /' conftest.$ac_ext >&5
27066
 
 
27067
 
( exit $ac_status )
27068
 
 
27069
 
    eval $php_cache_value=0
27070
 
  
27071
 
fi
27072
 
rm -rf conftest.dSYM
27073
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27074
 
fi
27075
 
 
27076
 
 
27077
 
  LDFLAGS=$old_LDFLAGS
27078
 
  LIBS=$old_LIBS
27079
 
 
27080
 
fi
27081
 
 
27082
 
  if eval test "\$$php_cache_value" != "0"; then
27083
 
 
27084
 
    
27085
 
cat >>confdefs.h <<_ACEOF
27086
 
@%:@define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t
27087
 
_ACEOF
27088
 
 
27089
 
    
27090
 
cat >>confdefs.h <<_ACEOF
27091
 
@%:@define HAVE_PTRDIFF_T 1
27092
 
_ACEOF
27093
 
 
27094
 
  
27095
 
 
27096
 
  fi
27097
 
 
27098
 
  { $as_echo "$as_me:$LINENO: result: $php_cv_sizeof_ptrdiff_t" >&5
27099
 
$as_echo "$php_cv_sizeof_ptrdiff_t" >&6; }
27100
 
 
27101
 
 
27102
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
27103
 
$as_echo_n "checking for struct stat.st_blksize... " >&6; }
27104
 
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
27105
 
  $as_echo_n "(cached) " >&6
27106
 
else
27107
 
  cat >conftest.$ac_ext <<_ACEOF
27108
 
/* confdefs.h.  */
27109
 
_ACEOF
27110
 
cat confdefs.h >>conftest.$ac_ext
27111
 
cat >>conftest.$ac_ext <<_ACEOF
27112
 
/* end confdefs.h.  */
27113
 
$ac_includes_default
27114
 
int
27115
 
main ()
27116
 
{
27117
 
static struct stat ac_aggr;
27118
 
if (ac_aggr.st_blksize)
27119
 
return 0;
27120
 
  ;
27121
 
  return 0;
27122
 
}
27123
 
_ACEOF
27124
 
rm -f conftest.$ac_objext
27125
 
if { (ac_try="$ac_compile"
27126
 
case "(($ac_try" in
27127
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128
 
  *) ac_try_echo=$ac_try;;
27129
 
esac
27130
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27131
 
$as_echo "$ac_try_echo") >&5
27132
 
  (eval "$ac_compile") 2>conftest.er1
27133
 
  ac_status=$?
27134
 
  grep -v '^ *+' conftest.er1 >conftest.err
27135
 
  rm -f conftest.er1
27136
 
  cat conftest.err >&5
27137
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138
 
  (exit $ac_status); } && {
27139
 
         test -z "$ac_c_werror_flag" ||
27140
 
         test ! -s conftest.err
27141
 
       } && test -s conftest.$ac_objext; then
27142
 
  ac_cv_member_struct_stat_st_blksize=yes
27143
 
else
27144
 
  $as_echo "$as_me: failed program was:" >&5
27145
 
sed 's/^/| /' conftest.$ac_ext >&5
27146
 
 
27147
 
        cat >conftest.$ac_ext <<_ACEOF
27148
 
/* confdefs.h.  */
27149
 
_ACEOF
27150
 
cat confdefs.h >>conftest.$ac_ext
27151
 
cat >>conftest.$ac_ext <<_ACEOF
27152
 
/* end confdefs.h.  */
27153
 
$ac_includes_default
27154
 
int
27155
 
main ()
27156
 
{
27157
 
static struct stat ac_aggr;
27158
 
if (sizeof ac_aggr.st_blksize)
27159
 
return 0;
27160
 
  ;
27161
 
  return 0;
27162
 
}
27163
 
_ACEOF
27164
 
rm -f conftest.$ac_objext
27165
 
if { (ac_try="$ac_compile"
27166
 
case "(($ac_try" in
27167
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168
 
  *) ac_try_echo=$ac_try;;
27169
 
esac
27170
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27171
 
$as_echo "$ac_try_echo") >&5
27172
 
  (eval "$ac_compile") 2>conftest.er1
27173
 
  ac_status=$?
27174
 
  grep -v '^ *+' conftest.er1 >conftest.err
27175
 
  rm -f conftest.er1
27176
 
  cat conftest.err >&5
27177
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178
 
  (exit $ac_status); } && {
27179
 
         test -z "$ac_c_werror_flag" ||
27180
 
         test ! -s conftest.err
27181
 
       } && test -s conftest.$ac_objext; then
27182
 
  ac_cv_member_struct_stat_st_blksize=yes
27183
 
else
27184
 
  $as_echo "$as_me: failed program was:" >&5
27185
 
sed 's/^/| /' conftest.$ac_ext >&5
27186
 
 
27187
 
        ac_cv_member_struct_stat_st_blksize=no
27188
 
fi
27189
 
 
27190
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27191
 
fi
27192
 
 
27193
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27194
 
fi
27195
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
27196
 
$as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
27197
 
if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
27198
 
  
27199
 
cat >>confdefs.h <<_ACEOF
27200
 
@%:@define HAVE_STRUCT_STAT_ST_BLKSIZE 1
27201
 
_ACEOF
27202
 
 
27203
 
 
27204
 
cat >>confdefs.h <<\_ACEOF
27205
 
@%:@define HAVE_ST_BLKSIZE 1
27206
 
_ACEOF
27207
 
 
27208
 
fi
27209
 
 
27210
 
 
27211
 
if test "`uname -s 2>/dev/null`" != "QNX"; then
27212
 
  { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27213
 
$as_echo_n "checking for struct stat.st_blocks... " >&6; }
27214
 
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27215
 
  $as_echo_n "(cached) " >&6
27216
 
else
27217
 
  cat >conftest.$ac_ext <<_ACEOF
27218
 
/* confdefs.h.  */
27219
 
_ACEOF
27220
 
cat confdefs.h >>conftest.$ac_ext
27221
 
cat >>conftest.$ac_ext <<_ACEOF
27222
 
/* end confdefs.h.  */
27223
 
$ac_includes_default
27224
 
int
27225
 
main ()
27226
 
{
27227
 
static struct stat ac_aggr;
27228
 
if (ac_aggr.st_blocks)
27229
 
return 0;
27230
 
  ;
27231
 
  return 0;
27232
 
}
27233
 
_ACEOF
27234
 
rm -f conftest.$ac_objext
27235
 
if { (ac_try="$ac_compile"
27236
 
case "(($ac_try" in
27237
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238
 
  *) ac_try_echo=$ac_try;;
27239
 
esac
27240
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27241
 
$as_echo "$ac_try_echo") >&5
27242
 
  (eval "$ac_compile") 2>conftest.er1
27243
 
  ac_status=$?
27244
 
  grep -v '^ *+' conftest.er1 >conftest.err
27245
 
  rm -f conftest.er1
27246
 
  cat conftest.err >&5
27247
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248
 
  (exit $ac_status); } && {
27249
 
         test -z "$ac_c_werror_flag" ||
27250
 
         test ! -s conftest.err
27251
 
       } && test -s conftest.$ac_objext; then
27252
 
  ac_cv_member_struct_stat_st_blocks=yes
27253
 
else
27254
 
  $as_echo "$as_me: failed program was:" >&5
27255
 
sed 's/^/| /' conftest.$ac_ext >&5
27256
 
 
27257
 
        cat >conftest.$ac_ext <<_ACEOF
27258
 
/* confdefs.h.  */
27259
 
_ACEOF
27260
 
cat confdefs.h >>conftest.$ac_ext
27261
 
cat >>conftest.$ac_ext <<_ACEOF
27262
 
/* end confdefs.h.  */
27263
 
$ac_includes_default
27264
 
int
27265
 
main ()
27266
 
{
27267
 
static struct stat ac_aggr;
27268
 
if (sizeof ac_aggr.st_blocks)
27269
 
return 0;
27270
 
  ;
27271
 
  return 0;
27272
 
}
27273
 
_ACEOF
27274
 
rm -f conftest.$ac_objext
27275
 
if { (ac_try="$ac_compile"
27276
 
case "(($ac_try" in
27277
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27278
 
  *) ac_try_echo=$ac_try;;
27279
 
esac
27280
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27281
 
$as_echo "$ac_try_echo") >&5
27282
 
  (eval "$ac_compile") 2>conftest.er1
27283
 
  ac_status=$?
27284
 
  grep -v '^ *+' conftest.er1 >conftest.err
27285
 
  rm -f conftest.er1
27286
 
  cat conftest.err >&5
27287
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288
 
  (exit $ac_status); } && {
27289
 
         test -z "$ac_c_werror_flag" ||
27290
 
         test ! -s conftest.err
27291
 
       } && test -s conftest.$ac_objext; then
27292
 
  ac_cv_member_struct_stat_st_blocks=yes
27293
 
else
27294
 
  $as_echo "$as_me: failed program was:" >&5
27295
 
sed 's/^/| /' conftest.$ac_ext >&5
27296
 
 
27297
 
        ac_cv_member_struct_stat_st_blocks=no
27298
 
fi
27299
 
 
27300
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27301
 
fi
27302
 
 
27303
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27304
 
fi
27305
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27306
 
$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
27307
 
if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
27308
 
  
27309
 
cat >>confdefs.h <<_ACEOF
27310
 
@%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1
27311
 
_ACEOF
27312
 
 
27313
 
 
27314
 
cat >>confdefs.h <<\_ACEOF
27315
 
@%:@define HAVE_ST_BLOCKS 1
27316
 
_ACEOF
27317
 
 
27318
 
else
27319
 
  case " $LIB@&t@OBJS " in
27320
 
  *" fileblocks.$ac_objext "* ) ;;
27321
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS fileblocks.$ac_objext"
27322
 
 ;;
27323
 
esac
27324
 
 
27325
 
fi
27326
 
 
27327
 
 
27328
 
else
27329
 
  { $as_echo "$as_me:$LINENO: WARNING: warnings level for cc set to 0" >&5
27330
 
$as_echo "$as_me: WARNING: warnings level for cc set to 0" >&2;}
27331
 
  WARNING_LEVEL=0
27332
 
fi
27333
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
27334
 
$as_echo_n "checking for struct stat.st_rdev... " >&6; }
27335
 
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
27336
 
  $as_echo_n "(cached) " >&6
27337
 
else
27338
 
  cat >conftest.$ac_ext <<_ACEOF
27339
 
/* confdefs.h.  */
27340
 
_ACEOF
27341
 
cat confdefs.h >>conftest.$ac_ext
27342
 
cat >>conftest.$ac_ext <<_ACEOF
27343
 
/* end confdefs.h.  */
27344
 
$ac_includes_default
27345
 
int
27346
 
main ()
27347
 
{
27348
 
static struct stat ac_aggr;
27349
 
if (ac_aggr.st_rdev)
27350
 
return 0;
27351
 
  ;
27352
 
  return 0;
27353
 
}
27354
 
_ACEOF
27355
 
rm -f conftest.$ac_objext
27356
 
if { (ac_try="$ac_compile"
27357
 
case "(($ac_try" in
27358
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359
 
  *) ac_try_echo=$ac_try;;
27360
 
esac
27361
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27362
 
$as_echo "$ac_try_echo") >&5
27363
 
  (eval "$ac_compile") 2>conftest.er1
27364
 
  ac_status=$?
27365
 
  grep -v '^ *+' conftest.er1 >conftest.err
27366
 
  rm -f conftest.er1
27367
 
  cat conftest.err >&5
27368
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369
 
  (exit $ac_status); } && {
27370
 
         test -z "$ac_c_werror_flag" ||
27371
 
         test ! -s conftest.err
27372
 
       } && test -s conftest.$ac_objext; then
27373
 
  ac_cv_member_struct_stat_st_rdev=yes
27374
 
else
27375
 
  $as_echo "$as_me: failed program was:" >&5
27376
 
sed 's/^/| /' conftest.$ac_ext >&5
27377
 
 
27378
 
        cat >conftest.$ac_ext <<_ACEOF
27379
 
/* confdefs.h.  */
27380
 
_ACEOF
27381
 
cat confdefs.h >>conftest.$ac_ext
27382
 
cat >>conftest.$ac_ext <<_ACEOF
27383
 
/* end confdefs.h.  */
27384
 
$ac_includes_default
27385
 
int
27386
 
main ()
27387
 
{
27388
 
static struct stat ac_aggr;
27389
 
if (sizeof ac_aggr.st_rdev)
27390
 
return 0;
27391
 
  ;
27392
 
  return 0;
27393
 
}
27394
 
_ACEOF
27395
 
rm -f conftest.$ac_objext
27396
 
if { (ac_try="$ac_compile"
27397
 
case "(($ac_try" in
27398
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399
 
  *) ac_try_echo=$ac_try;;
27400
 
esac
27401
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27402
 
$as_echo "$ac_try_echo") >&5
27403
 
  (eval "$ac_compile") 2>conftest.er1
27404
 
  ac_status=$?
27405
 
  grep -v '^ *+' conftest.er1 >conftest.err
27406
 
  rm -f conftest.er1
27407
 
  cat conftest.err >&5
27408
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409
 
  (exit $ac_status); } && {
27410
 
         test -z "$ac_c_werror_flag" ||
27411
 
         test ! -s conftest.err
27412
 
       } && test -s conftest.$ac_objext; then
27413
 
  ac_cv_member_struct_stat_st_rdev=yes
27414
 
else
27415
 
  $as_echo "$as_me: failed program was:" >&5
27416
 
sed 's/^/| /' conftest.$ac_ext >&5
27417
 
 
27418
 
        ac_cv_member_struct_stat_st_rdev=no
27419
 
fi
27420
 
 
27421
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27422
 
fi
27423
 
 
27424
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27425
 
fi
27426
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
27427
 
$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
27428
 
if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
27429
 
  
27430
 
cat >>confdefs.h <<_ACEOF
27431
 
@%:@define HAVE_STRUCT_STAT_ST_RDEV 1
27432
 
_ACEOF
27433
 
 
27434
 
 
27435
 
cat >>confdefs.h <<\_ACEOF
27436
 
@%:@define HAVE_ST_RDEV 1
27437
 
_ACEOF
27438
 
 
27439
 
fi
27440
 
 
27441
 
 
27442
 
 
27443
 
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
27444
 
$as_echo_n "checking for size_t... " >&6; }
27445
 
if test "${ac_cv_type_size_t+set}" = set; then
27446
 
  $as_echo_n "(cached) " >&6
27447
 
else
27448
 
  ac_cv_type_size_t=no
27449
 
cat >conftest.$ac_ext <<_ACEOF
27450
 
/* confdefs.h.  */
27451
 
_ACEOF
27452
 
cat confdefs.h >>conftest.$ac_ext
27453
 
cat >>conftest.$ac_ext <<_ACEOF
27454
 
/* end confdefs.h.  */
27455
 
$ac_includes_default
27456
 
int
27457
 
main ()
27458
 
{
27459
 
if (sizeof (size_t))
27460
 
       return 0;
27461
 
  ;
27462
 
  return 0;
27463
 
}
27464
 
_ACEOF
27465
 
rm -f conftest.$ac_objext
27466
 
if { (ac_try="$ac_compile"
27467
 
case "(($ac_try" in
27468
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469
 
  *) ac_try_echo=$ac_try;;
27470
 
esac
27471
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27472
 
$as_echo "$ac_try_echo") >&5
27473
 
  (eval "$ac_compile") 2>conftest.er1
27474
 
  ac_status=$?
27475
 
  grep -v '^ *+' conftest.er1 >conftest.err
27476
 
  rm -f conftest.er1
27477
 
  cat conftest.err >&5
27478
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479
 
  (exit $ac_status); } && {
27480
 
         test -z "$ac_c_werror_flag" ||
27481
 
         test ! -s conftest.err
27482
 
       } && test -s conftest.$ac_objext; then
27483
 
  cat >conftest.$ac_ext <<_ACEOF
27484
 
/* confdefs.h.  */
27485
 
_ACEOF
27486
 
cat confdefs.h >>conftest.$ac_ext
27487
 
cat >>conftest.$ac_ext <<_ACEOF
27488
 
/* end confdefs.h.  */
27489
 
$ac_includes_default
27490
 
int
27491
 
main ()
27492
 
{
27493
 
if (sizeof ((size_t)))
27494
 
          return 0;
27495
 
  ;
27496
 
  return 0;
27497
 
}
27498
 
_ACEOF
27499
 
rm -f conftest.$ac_objext
27500
 
if { (ac_try="$ac_compile"
27501
 
case "(($ac_try" in
27502
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27503
 
  *) ac_try_echo=$ac_try;;
27504
 
esac
27505
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27506
 
$as_echo "$ac_try_echo") >&5
27507
 
  (eval "$ac_compile") 2>conftest.er1
27508
 
  ac_status=$?
27509
 
  grep -v '^ *+' conftest.er1 >conftest.err
27510
 
  rm -f conftest.er1
27511
 
  cat conftest.err >&5
27512
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513
 
  (exit $ac_status); } && {
27514
 
         test -z "$ac_c_werror_flag" ||
27515
 
         test ! -s conftest.err
27516
 
       } && test -s conftest.$ac_objext; then
27517
 
  :
27518
 
else
27519
 
  $as_echo "$as_me: failed program was:" >&5
27520
 
sed 's/^/| /' conftest.$ac_ext >&5
27521
 
 
27522
 
        ac_cv_type_size_t=yes
27523
 
fi
27524
 
 
27525
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27526
 
else
27527
 
  $as_echo "$as_me: failed program was:" >&5
27528
 
sed 's/^/| /' conftest.$ac_ext >&5
27529
 
 
27530
 
        
27531
 
fi
27532
 
 
27533
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27534
 
fi
27535
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27536
 
$as_echo "$ac_cv_type_size_t" >&6; }
27537
 
if test "x$ac_cv_type_size_t" = x""yes; then
27538
 
  :
27539
 
else
27540
 
  
27541
 
cat >>confdefs.h <<_ACEOF
27542
 
@%:@define size_t unsigned int
27543
 
_ACEOF
27544
 
 
27545
 
fi
27546
 
 
27547
 
{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
27548
 
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27549
 
if test "${ac_cv_type_uid_t+set}" = set; then
27550
 
  $as_echo_n "(cached) " >&6
27551
 
else
27552
 
  cat >conftest.$ac_ext <<_ACEOF
27553
 
/* confdefs.h.  */
27554
 
_ACEOF
27555
 
cat confdefs.h >>conftest.$ac_ext
27556
 
cat >>conftest.$ac_ext <<_ACEOF
27557
 
/* end confdefs.h.  */
27558
 
#include <sys/types.h>
27559
 
 
27560
 
_ACEOF
27561
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27562
 
  $EGREP "uid_t" >/dev/null 2>&1; then
27563
 
  ac_cv_type_uid_t=yes
27564
 
else
27565
 
  ac_cv_type_uid_t=no
27566
 
fi
27567
 
rm -f conftest*
27568
 
 
27569
 
fi
27570
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
27571
 
$as_echo "$ac_cv_type_uid_t" >&6; }
27572
 
if test $ac_cv_type_uid_t = no; then
27573
 
  
27574
 
cat >>confdefs.h <<\_ACEOF
27575
 
@%:@define uid_t int
27576
 
_ACEOF
27577
 
 
27578
 
  
27579
 
cat >>confdefs.h <<\_ACEOF
27580
 
@%:@define gid_t int
27581
 
_ACEOF
27582
 
 
27583
 
fi
27584
 
 
27585
 
 
27586
 
 
27587
 
    { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
27588
 
$as_echo_n "checking for struct sockaddr_storage... " >&6; }
27589
 
if test "${ac_cv_sockaddr_storage+set}" = set; then
27590
 
  $as_echo_n "(cached) " >&6
27591
 
else
27592
 
  cat >conftest.$ac_ext <<_ACEOF
27593
 
/* confdefs.h.  */
27594
 
_ACEOF
27595
 
cat confdefs.h >>conftest.$ac_ext
27596
 
cat >>conftest.$ac_ext <<_ACEOF
27597
 
/* end confdefs.h.  */
27598
 
#include <sys/types.h>
27599
 
#include <sys/socket.h>
27600
 
int
27601
 
main ()
27602
 
{
27603
 
struct sockaddr_storage s; s
27604
 
  ;
27605
 
  return 0;
27606
 
}
27607
 
_ACEOF
27608
 
rm -f conftest.$ac_objext
27609
 
if { (ac_try="$ac_compile"
27610
 
case "(($ac_try" in
27611
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612
 
  *) ac_try_echo=$ac_try;;
27613
 
esac
27614
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27615
 
$as_echo "$ac_try_echo") >&5
27616
 
  (eval "$ac_compile") 2>conftest.er1
27617
 
  ac_status=$?
27618
 
  grep -v '^ *+' conftest.er1 >conftest.err
27619
 
  rm -f conftest.er1
27620
 
  cat conftest.err >&5
27621
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622
 
  (exit $ac_status); } && {
27623
 
         test -z "$ac_c_werror_flag" ||
27624
 
         test ! -s conftest.err
27625
 
       } && test -s conftest.$ac_objext; then
27626
 
  ac_cv_sockaddr_storage=yes
27627
 
else
27628
 
  $as_echo "$as_me: failed program was:" >&5
27629
 
sed 's/^/| /' conftest.$ac_ext >&5
27630
 
 
27631
 
        ac_cv_sockaddr_storage=no
27632
 
fi
27633
 
 
27634
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27635
 
  
27636
 
fi
27637
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sockaddr_storage" >&5
27638
 
$as_echo "$ac_cv_sockaddr_storage" >&6; }
27639
 
  if test "$ac_cv_sockaddr_storage" = "yes"; then
27640
 
    
27641
 
cat >>confdefs.h <<\_ACEOF
27642
 
@%:@define HAVE_SOCKADDR_STORAGE 1
27643
 
_ACEOF
27644
 
 
27645
 
  fi
27646
 
    { $as_echo "$as_me:$LINENO: checking for field sa_len in struct sockaddr" >&5
27647
 
$as_echo_n "checking for field sa_len in struct sockaddr... " >&6; }
27648
 
if test "${ac_cv_sockaddr_sa_len+set}" = set; then
27649
 
  $as_echo_n "(cached) " >&6
27650
 
else
27651
 
  
27652
 
    cat >conftest.$ac_ext <<_ACEOF
27653
 
/* confdefs.h.  */
27654
 
_ACEOF
27655
 
cat confdefs.h >>conftest.$ac_ext
27656
 
cat >>conftest.$ac_ext <<_ACEOF
27657
 
/* end confdefs.h.  */
27658
 
#include <sys/types.h>
27659
 
#include <sys/socket.h>
27660
 
int
27661
 
main ()
27662
 
{
27663
 
static struct sockaddr sa; int n = (int) sa.sa_len; return n;
27664
 
  ;
27665
 
  return 0;
27666
 
}
27667
 
_ACEOF
27668
 
rm -f conftest.$ac_objext
27669
 
if { (ac_try="$ac_compile"
27670
 
case "(($ac_try" in
27671
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672
 
  *) ac_try_echo=$ac_try;;
27673
 
esac
27674
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27675
 
$as_echo "$ac_try_echo") >&5
27676
 
  (eval "$ac_compile") 2>conftest.er1
27677
 
  ac_status=$?
27678
 
  grep -v '^ *+' conftest.er1 >conftest.err
27679
 
  rm -f conftest.er1
27680
 
  cat conftest.err >&5
27681
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682
 
  (exit $ac_status); } && {
27683
 
         test -z "$ac_c_werror_flag" ||
27684
 
         test ! -s conftest.err
27685
 
       } && test -s conftest.$ac_objext; then
27686
 
  ac_cv_sockaddr_sa_len=yes
27687
 
else
27688
 
  $as_echo "$as_me: failed program was:" >&5
27689
 
sed 's/^/| /' conftest.$ac_ext >&5
27690
 
 
27691
 
        ac_cv_sockaddr_sa_len=no
27692
 
fi
27693
 
 
27694
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27695
 
  
27696
 
fi
27697
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sockaddr_sa_len" >&5
27698
 
$as_echo "$ac_cv_sockaddr_sa_len" >&6; }
27699
 
  if test "$ac_cv_sockaddr_sa_len" = "yes"; then
27700
 
    
27701
 
cat >>confdefs.h <<\_ACEOF
27702
 
@%:@define HAVE_SOCKADDR_SA_LEN 1
27703
 
_ACEOF
27704
 
 
27705
 
  fi
27706
 
 
27707
 
 
27708
 
{ $as_echo "$as_me:$LINENO: checking for IPv6 support" >&5
27709
 
$as_echo_n "checking for IPv6 support... " >&6; }
27710
 
if test "${ac_cv_ipv6_support+set}" = set; then
27711
 
  $as_echo_n "(cached) " >&6
27712
 
else
27713
 
  cat >conftest.$ac_ext <<_ACEOF
27714
 
/* confdefs.h.  */
27715
 
_ACEOF
27716
 
cat confdefs.h >>conftest.$ac_ext
27717
 
cat >>conftest.$ac_ext <<_ACEOF
27718
 
/* end confdefs.h.  */
27719
 
 #include <sys/types.h>
27720
 
#include <sys/socket.h>
27721
 
#include <netinet/in.h>
27722
 
int
27723
 
main ()
27724
 
{
27725
 
struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
27726
 
  ;
27727
 
  return 0;
27728
 
}
27729
 
_ACEOF
27730
 
rm -f conftest.$ac_objext conftest$ac_exeext
27731
 
if { (ac_try="$ac_link"
27732
 
case "(($ac_try" in
27733
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734
 
  *) ac_try_echo=$ac_try;;
27735
 
esac
27736
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27737
 
$as_echo "$ac_try_echo") >&5
27738
 
  (eval "$ac_link") 2>conftest.er1
27739
 
  ac_status=$?
27740
 
  grep -v '^ *+' conftest.er1 >conftest.err
27741
 
  rm -f conftest.er1
27742
 
  cat conftest.err >&5
27743
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744
 
  (exit $ac_status); } && {
27745
 
         test -z "$ac_c_werror_flag" ||
27746
 
         test ! -s conftest.err
27747
 
       } && test -s conftest$ac_exeext && {
27748
 
         test "$cross_compiling" = yes ||
27749
 
         $as_test_x conftest$ac_exeext
27750
 
       }; then
27751
 
  ac_cv_ipv6_support=yes
27752
 
else
27753
 
  $as_echo "$as_me: failed program was:" >&5
27754
 
sed 's/^/| /' conftest.$ac_ext >&5
27755
 
 
27756
 
        ac_cv_ipv6_support=no
27757
 
fi
27758
 
 
27759
 
rm -rf conftest.dSYM
27760
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27761
 
      conftest$ac_exeext conftest.$ac_ext
27762
 
fi
27763
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27764
 
$as_echo "$ac_cv_ipv6_support" >&6; }
27765
 
 
27766
 
 
27767
 
 
27768
 
for ac_func in vprintf
27769
 
do
27770
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27771
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27772
 
$as_echo_n "checking for $ac_func... " >&6; }
27773
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27774
 
  $as_echo_n "(cached) " >&6
27775
 
else
27776
 
  cat >conftest.$ac_ext <<_ACEOF
27777
 
/* confdefs.h.  */
27778
 
_ACEOF
27779
 
cat confdefs.h >>conftest.$ac_ext
27780
 
cat >>conftest.$ac_ext <<_ACEOF
27781
 
/* end confdefs.h.  */
27782
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27783
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27784
 
#define $ac_func innocuous_$ac_func
27785
 
 
27786
 
/* System header to define __stub macros and hopefully few prototypes,
27787
 
    which can conflict with char $ac_func (); below.
27788
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27789
 
    <limits.h> exists even on freestanding compilers.  */
27790
 
 
27791
 
#ifdef __STDC__
27792
 
# include <limits.h>
27793
 
#else
27794
 
# include <assert.h>
27795
 
#endif
27796
 
 
27797
 
#undef $ac_func
27798
 
 
27799
 
/* Override any GCC internal prototype to avoid an error.
27800
 
   Use char because int might match the return type of a GCC
27801
 
   builtin and then its argument prototype would still apply.  */
27802
 
#ifdef __cplusplus
27803
 
extern "C"
27804
 
#endif
27805
 
char $ac_func ();
27806
 
/* The GNU C library defines this for functions which it implements
27807
 
    to always fail with ENOSYS.  Some functions are actually named
27808
 
    something starting with __ and the normal name is an alias.  */
27809
 
#if defined __stub_$ac_func || defined __stub___$ac_func
27810
 
choke me
27811
 
#endif
27812
 
 
27813
 
int
27814
 
main ()
27815
 
{
27816
 
return $ac_func ();
27817
 
  ;
27818
 
  return 0;
27819
 
}
27820
 
_ACEOF
27821
 
rm -f conftest.$ac_objext conftest$ac_exeext
27822
 
if { (ac_try="$ac_link"
27823
 
case "(($ac_try" in
27824
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825
 
  *) ac_try_echo=$ac_try;;
27826
 
esac
27827
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27828
 
$as_echo "$ac_try_echo") >&5
27829
 
  (eval "$ac_link") 2>conftest.er1
27830
 
  ac_status=$?
27831
 
  grep -v '^ *+' conftest.er1 >conftest.err
27832
 
  rm -f conftest.er1
27833
 
  cat conftest.err >&5
27834
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835
 
  (exit $ac_status); } && {
27836
 
         test -z "$ac_c_werror_flag" ||
27837
 
         test ! -s conftest.err
27838
 
       } && test -s conftest$ac_exeext && {
27839
 
         test "$cross_compiling" = yes ||
27840
 
         $as_test_x conftest$ac_exeext
27841
 
       }; then
27842
 
  eval "$as_ac_var=yes"
27843
 
else
27844
 
  $as_echo "$as_me: failed program was:" >&5
27845
 
sed 's/^/| /' conftest.$ac_ext >&5
27846
 
 
27847
 
        eval "$as_ac_var=no"
27848
 
fi
27849
 
 
27850
 
rm -rf conftest.dSYM
27851
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27852
 
      conftest$ac_exeext conftest.$ac_ext
27853
 
fi
27854
 
ac_res=`eval 'as_val=${'$as_ac_var'}
27855
 
                 $as_echo "$as_val"'`
27856
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27857
 
$as_echo "$ac_res" >&6; }
27858
 
as_val=`eval 'as_val=${'$as_ac_var'}
27859
 
                 $as_echo "$as_val"'`
27860
 
   if test "x$as_val" = x""yes; then
27861
 
  cat >>confdefs.h <<_ACEOF
27862
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27863
 
_ACEOF
27864
 
 
27865
 
{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
27866
 
$as_echo_n "checking for _doprnt... " >&6; }
27867
 
if test "${ac_cv_func__doprnt+set}" = set; then
27868
 
  $as_echo_n "(cached) " >&6
27869
 
else
27870
 
  cat >conftest.$ac_ext <<_ACEOF
27871
 
/* confdefs.h.  */
27872
 
_ACEOF
27873
 
cat confdefs.h >>conftest.$ac_ext
27874
 
cat >>conftest.$ac_ext <<_ACEOF
27875
 
/* end confdefs.h.  */
27876
 
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27877
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27878
 
#define _doprnt innocuous__doprnt
27879
 
 
27880
 
/* System header to define __stub macros and hopefully few prototypes,
27881
 
    which can conflict with char _doprnt (); below.
27882
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27883
 
    <limits.h> exists even on freestanding compilers.  */
27884
 
 
27885
 
#ifdef __STDC__
27886
 
# include <limits.h>
27887
 
#else
27888
 
# include <assert.h>
27889
 
#endif
27890
 
 
27891
 
#undef _doprnt
27892
 
 
27893
 
/* Override any GCC internal prototype to avoid an error.
27894
 
   Use char because int might match the return type of a GCC
27895
 
   builtin and then its argument prototype would still apply.  */
27896
 
#ifdef __cplusplus
27897
 
extern "C"
27898
 
#endif
27899
 
char _doprnt ();
27900
 
/* The GNU C library defines this for functions which it implements
27901
 
    to always fail with ENOSYS.  Some functions are actually named
27902
 
    something starting with __ and the normal name is an alias.  */
27903
 
#if defined __stub__doprnt || defined __stub____doprnt
27904
 
choke me
27905
 
#endif
27906
 
 
27907
 
int
27908
 
main ()
27909
 
{
27910
 
return _doprnt ();
27911
 
  ;
27912
 
  return 0;
27913
 
}
27914
 
_ACEOF
27915
 
rm -f conftest.$ac_objext conftest$ac_exeext
27916
 
if { (ac_try="$ac_link"
27917
 
case "(($ac_try" in
27918
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919
 
  *) ac_try_echo=$ac_try;;
27920
 
esac
27921
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27922
 
$as_echo "$ac_try_echo") >&5
27923
 
  (eval "$ac_link") 2>conftest.er1
27924
 
  ac_status=$?
27925
 
  grep -v '^ *+' conftest.er1 >conftest.err
27926
 
  rm -f conftest.er1
27927
 
  cat conftest.err >&5
27928
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929
 
  (exit $ac_status); } && {
27930
 
         test -z "$ac_c_werror_flag" ||
27931
 
         test ! -s conftest.err
27932
 
       } && test -s conftest$ac_exeext && {
27933
 
         test "$cross_compiling" = yes ||
27934
 
         $as_test_x conftest$ac_exeext
27935
 
       }; then
27936
 
  ac_cv_func__doprnt=yes
27937
 
else
27938
 
  $as_echo "$as_me: failed program was:" >&5
27939
 
sed 's/^/| /' conftest.$ac_ext >&5
27940
 
 
27941
 
        ac_cv_func__doprnt=no
27942
 
fi
27943
 
 
27944
 
rm -rf conftest.dSYM
27945
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27946
 
      conftest$ac_exeext conftest.$ac_ext
27947
 
fi
27948
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27949
 
$as_echo "$ac_cv_func__doprnt" >&6; }
27950
 
if test "x$ac_cv_func__doprnt" = x""yes; then
27951
 
  
27952
 
cat >>confdefs.h <<\_ACEOF
27953
 
@%:@define HAVE_DOPRNT 1
27954
 
_ACEOF
27955
 
 
27956
 
fi
27957
 
 
27958
 
fi
27959
 
done
27960
 
 
27961
 
 
27962
 
 
27963
 
 
27964
 
 
27965
 
 
27966
 
 
27967
 
 
27968
 
 
27969
 
 
27970
 
 
27971
 
 
27972
 
 
27973
 
 
27974
 
 
27975
 
 
27976
 
 
27977
 
 
27978
 
 
27979
 
 
27980
 
 
27981
 
 
27982
 
 
27983
 
 
27984
 
 
27985
 
 
27986
 
 
27987
 
 
27988
 
 
27989
 
 
27990
 
 
27991
 
 
27992
 
 
27993
 
 
27994
 
 
27995
 
 
27996
 
 
27997
 
 
27998
 
 
27999
 
 
28000
 
 
28001
 
 
28002
 
 
28003
 
 
28004
 
 
28005
 
 
28006
 
 
28007
 
 
28008
 
 
28009
 
 
28010
 
 
28011
 
 
28012
 
 
28013
 
 
28014
 
 
28015
 
 
28016
 
 
28017
 
 
28018
 
 
28019
 
 
28020
 
 
28021
 
 
28022
 
 
28023
 
 
28024
 
 
28025
 
 
28026
 
 
28027
 
 
28028
 
 
28029
 
 
28030
 
 
28031
 
 
28032
 
 
28033
 
 
28034
 
 
28035
 
 
28036
 
 
28037
 
 
28038
 
 
28039
 
 
28040
 
 
28041
 
 
28042
 
 
28043
 
 
28044
 
for ac_func in alphasort \
28045
 
asctime_r \
28046
 
chroot \
28047
 
ctime_r \
28048
 
cuserid \
28049
 
crypt \
28050
 
flock \
28051
 
ftok \
28052
 
funopen \
28053
 
gai_strerror \
28054
 
gcvt \
28055
 
getloadavg \
28056
 
getlogin \
28057
 
getprotobyname \
28058
 
getprotobynumber \
28059
 
getservbyname \
28060
 
getservbyport \
28061
 
gethostname \
28062
 
getrusage \
28063
 
gettimeofday \
28064
 
gmtime_r \
28065
 
getpwnam_r \
28066
 
getgrnam_r \
28067
 
getpwuid_r \
28068
 
grantpt \
28069
 
inet_ntoa \
28070
 
inet_ntop \
28071
 
inet_pton \
28072
 
isascii \
28073
 
link \
28074
 
localtime_r \
28075
 
lockf \
28076
 
lchown \
28077
 
lrand48 \
28078
 
memcpy \
28079
 
memmove \
28080
 
mkstemp \
28081
 
mmap \
28082
 
nl_langinfo \
28083
 
perror \
28084
 
poll \
28085
 
ptsname \
28086
 
putenv \
28087
 
realpath \
28088
 
random \
28089
 
rand_r \
28090
 
scandir \
28091
 
setitimer \
28092
 
setlocale \
28093
 
localeconv \
28094
 
setenv \
28095
 
setpgid \
28096
 
setsockopt \
28097
 
setvbuf \
28098
 
shutdown \
28099
 
sin \
28100
 
snprintf \
28101
 
srand48 \
28102
 
srandom \
28103
 
statfs \
28104
 
statvfs \
28105
 
std_syslog \
28106
 
strcasecmp \
28107
 
strcoll \
28108
 
strdup \
28109
 
strerror \
28110
 
strftime \
28111
 
strnlen \
28112
 
strptime \
28113
 
strstr \
28114
 
strtok_r \
28115
 
symlink \
28116
 
tempnam \
28117
 
tzset \
28118
 
unlockpt \
28119
 
unsetenv \
28120
 
usleep \
28121
 
utime \
28122
 
vsnprintf \
28123
 
vasprintf \
28124
 
asprintf \
28125
 
nanosleep \
28126
 
 
28127
 
do
28128
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28129
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28130
 
$as_echo_n "checking for $ac_func... " >&6; }
28131
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28132
 
  $as_echo_n "(cached) " >&6
28133
 
else
28134
 
  cat >conftest.$ac_ext <<_ACEOF
28135
 
/* confdefs.h.  */
28136
 
_ACEOF
28137
 
cat confdefs.h >>conftest.$ac_ext
28138
 
cat >>conftest.$ac_ext <<_ACEOF
28139
 
/* end confdefs.h.  */
28140
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28141
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28142
 
#define $ac_func innocuous_$ac_func
28143
 
 
28144
 
/* System header to define __stub macros and hopefully few prototypes,
28145
 
    which can conflict with char $ac_func (); below.
28146
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28147
 
    <limits.h> exists even on freestanding compilers.  */
28148
 
 
28149
 
#ifdef __STDC__
28150
 
# include <limits.h>
28151
 
#else
28152
 
# include <assert.h>
28153
 
#endif
28154
 
 
28155
 
#undef $ac_func
28156
 
 
28157
 
/* Override any GCC internal prototype to avoid an error.
28158
 
   Use char because int might match the return type of a GCC
28159
 
   builtin and then its argument prototype would still apply.  */
28160
 
#ifdef __cplusplus
28161
 
extern "C"
28162
 
#endif
28163
 
char $ac_func ();
28164
 
/* The GNU C library defines this for functions which it implements
28165
 
    to always fail with ENOSYS.  Some functions are actually named
28166
 
    something starting with __ and the normal name is an alias.  */
28167
 
#if defined __stub_$ac_func || defined __stub___$ac_func
28168
 
choke me
28169
 
#endif
28170
 
 
28171
 
int
28172
 
main ()
28173
 
{
28174
 
return $ac_func ();
28175
 
  ;
28176
 
  return 0;
28177
 
}
28178
 
_ACEOF
28179
 
rm -f conftest.$ac_objext conftest$ac_exeext
28180
 
if { (ac_try="$ac_link"
28181
 
case "(($ac_try" in
28182
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183
 
  *) ac_try_echo=$ac_try;;
28184
 
esac
28185
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28186
 
$as_echo "$ac_try_echo") >&5
28187
 
  (eval "$ac_link") 2>conftest.er1
28188
 
  ac_status=$?
28189
 
  grep -v '^ *+' conftest.er1 >conftest.err
28190
 
  rm -f conftest.er1
28191
 
  cat conftest.err >&5
28192
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193
 
  (exit $ac_status); } && {
28194
 
         test -z "$ac_c_werror_flag" ||
28195
 
         test ! -s conftest.err
28196
 
       } && test -s conftest$ac_exeext && {
28197
 
         test "$cross_compiling" = yes ||
28198
 
         $as_test_x conftest$ac_exeext
28199
 
       }; then
28200
 
  eval "$as_ac_var=yes"
28201
 
else
28202
 
  $as_echo "$as_me: failed program was:" >&5
28203
 
sed 's/^/| /' conftest.$ac_ext >&5
28204
 
 
28205
 
        eval "$as_ac_var=no"
28206
 
fi
28207
 
 
28208
 
rm -rf conftest.dSYM
28209
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28210
 
      conftest$ac_exeext conftest.$ac_ext
28211
 
fi
28212
 
ac_res=`eval 'as_val=${'$as_ac_var'}
28213
 
                 $as_echo "$as_val"'`
28214
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28215
 
$as_echo "$ac_res" >&6; }
28216
 
as_val=`eval 'as_val=${'$as_ac_var'}
28217
 
                 $as_echo "$as_val"'`
28218
 
   if test "x$as_val" = x""yes; then
28219
 
  cat >>confdefs.h <<_ACEOF
28220
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28221
 
_ACEOF
28222
 
 
28223
 
fi
28224
 
done
28225
 
 
28226
 
 
28227
 
 
28228
 
  
28229
 
  unset ac_cv_lib_rt_nanosleep
28230
 
  unset ac_cv_lib_rt___nanosleep
28231
 
  unset found
28232
 
  { $as_echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
28233
 
$as_echo_n "checking for nanosleep in -lrt... " >&6; }
28234
 
if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
28235
 
  $as_echo_n "(cached) " >&6
28236
 
else
28237
 
  ac_check_lib_save_LIBS=$LIBS
28238
 
LIBS="-lrt  $LIBS"
28239
 
cat >conftest.$ac_ext <<_ACEOF
28240
 
/* confdefs.h.  */
28241
 
_ACEOF
28242
 
cat confdefs.h >>conftest.$ac_ext
28243
 
cat >>conftest.$ac_ext <<_ACEOF
28244
 
/* end confdefs.h.  */
28245
 
 
28246
 
/* Override any GCC internal prototype to avoid an error.
28247
 
   Use char because int might match the return type of a GCC
28248
 
   builtin and then its argument prototype would still apply.  */
28249
 
#ifdef __cplusplus
28250
 
extern "C"
28251
 
#endif
28252
 
char nanosleep ();
28253
 
int
28254
 
main ()
28255
 
{
28256
 
return nanosleep ();
28257
 
  ;
28258
 
  return 0;
28259
 
}
28260
 
_ACEOF
28261
 
rm -f conftest.$ac_objext conftest$ac_exeext
28262
 
if { (ac_try="$ac_link"
28263
 
case "(($ac_try" in
28264
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28265
 
  *) ac_try_echo=$ac_try;;
28266
 
esac
28267
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28268
 
$as_echo "$ac_try_echo") >&5
28269
 
  (eval "$ac_link") 2>conftest.er1
28270
 
  ac_status=$?
28271
 
  grep -v '^ *+' conftest.er1 >conftest.err
28272
 
  rm -f conftest.er1
28273
 
  cat conftest.err >&5
28274
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275
 
  (exit $ac_status); } && {
28276
 
         test -z "$ac_c_werror_flag" ||
28277
 
         test ! -s conftest.err
28278
 
       } && test -s conftest$ac_exeext && {
28279
 
         test "$cross_compiling" = yes ||
28280
 
         $as_test_x conftest$ac_exeext
28281
 
       }; then
28282
 
  ac_cv_lib_rt_nanosleep=yes
28283
 
else
28284
 
  $as_echo "$as_me: failed program was:" >&5
28285
 
sed 's/^/| /' conftest.$ac_ext >&5
28286
 
 
28287
 
        ac_cv_lib_rt_nanosleep=no
28288
 
fi
28289
 
 
28290
 
rm -rf conftest.dSYM
28291
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28292
 
      conftest$ac_exeext conftest.$ac_ext
28293
 
LIBS=$ac_check_lib_save_LIBS
28294
 
fi
28295
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
28296
 
$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
28297
 
if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then
28298
 
  found=yes
28299
 
else
28300
 
  
28301
 
    { $as_echo "$as_me:$LINENO: checking for __nanosleep in -lrt" >&5
28302
 
$as_echo_n "checking for __nanosleep in -lrt... " >&6; }
28303
 
if test "${ac_cv_lib_rt___nanosleep+set}" = set; then
28304
 
  $as_echo_n "(cached) " >&6
28305
 
else
28306
 
  ac_check_lib_save_LIBS=$LIBS
28307
 
LIBS="-lrt  $LIBS"
28308
 
cat >conftest.$ac_ext <<_ACEOF
28309
 
/* confdefs.h.  */
28310
 
_ACEOF
28311
 
cat confdefs.h >>conftest.$ac_ext
28312
 
cat >>conftest.$ac_ext <<_ACEOF
28313
 
/* end confdefs.h.  */
28314
 
 
28315
 
/* Override any GCC internal prototype to avoid an error.
28316
 
   Use char because int might match the return type of a GCC
28317
 
   builtin and then its argument prototype would still apply.  */
28318
 
#ifdef __cplusplus
28319
 
extern "C"
28320
 
#endif
28321
 
char __nanosleep ();
28322
 
int
28323
 
main ()
28324
 
{
28325
 
return __nanosleep ();
28326
 
  ;
28327
 
  return 0;
28328
 
}
28329
 
_ACEOF
28330
 
rm -f conftest.$ac_objext conftest$ac_exeext
28331
 
if { (ac_try="$ac_link"
28332
 
case "(($ac_try" in
28333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334
 
  *) ac_try_echo=$ac_try;;
28335
 
esac
28336
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28337
 
$as_echo "$ac_try_echo") >&5
28338
 
  (eval "$ac_link") 2>conftest.er1
28339
 
  ac_status=$?
28340
 
  grep -v '^ *+' conftest.er1 >conftest.err
28341
 
  rm -f conftest.er1
28342
 
  cat conftest.err >&5
28343
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344
 
  (exit $ac_status); } && {
28345
 
         test -z "$ac_c_werror_flag" ||
28346
 
         test ! -s conftest.err
28347
 
       } && test -s conftest$ac_exeext && {
28348
 
         test "$cross_compiling" = yes ||
28349
 
         $as_test_x conftest$ac_exeext
28350
 
       }; then
28351
 
  ac_cv_lib_rt___nanosleep=yes
28352
 
else
28353
 
  $as_echo "$as_me: failed program was:" >&5
28354
 
sed 's/^/| /' conftest.$ac_ext >&5
28355
 
 
28356
 
        ac_cv_lib_rt___nanosleep=no
28357
 
fi
28358
 
 
28359
 
rm -rf conftest.dSYM
28360
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28361
 
      conftest$ac_exeext conftest.$ac_ext
28362
 
LIBS=$ac_check_lib_save_LIBS
28363
 
fi
28364
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt___nanosleep" >&5
28365
 
$as_echo "$ac_cv_lib_rt___nanosleep" >&6; }
28366
 
if test "x$ac_cv_lib_rt___nanosleep" = x""yes; then
28367
 
  found=yes
28368
 
else
28369
 
  found=no
28370
 
fi
28371
 
 
28372
 
  
28373
 
fi
28374
 
 
28375
 
 
28376
 
  if test "$found" = "yes"; then
28377
 
    ac_libs=$LIBS
28378
 
    LIBS="$LIBS -lrt"
28379
 
    if test "$cross_compiling" = yes; then
28380
 
  found=no
28381
 
else
28382
 
  cat >conftest.$ac_ext <<_ACEOF
28383
 
/* confdefs.h.  */
28384
 
_ACEOF
28385
 
cat confdefs.h >>conftest.$ac_ext
28386
 
cat >>conftest.$ac_ext <<_ACEOF
28387
 
/* end confdefs.h.  */
28388
 
main() { return (0); }
28389
 
_ACEOF
28390
 
rm -f conftest$ac_exeext
28391
 
if { (ac_try="$ac_link"
28392
 
case "(($ac_try" in
28393
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394
 
  *) ac_try_echo=$ac_try;;
28395
 
esac
28396
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28397
 
$as_echo "$ac_try_echo") >&5
28398
 
  (eval "$ac_link") 2>&5
28399
 
  ac_status=$?
28400
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28402
 
  { (case "(($ac_try" in
28403
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404
 
  *) ac_try_echo=$ac_try;;
28405
 
esac
28406
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28407
 
$as_echo "$ac_try_echo") >&5
28408
 
  (eval "$ac_try") 2>&5
28409
 
  ac_status=$?
28410
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411
 
  (exit $ac_status); }; }; then
28412
 
  found=yes
28413
 
else
28414
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
28415
 
$as_echo "$as_me: failed program was:" >&5
28416
 
sed 's/^/| /' conftest.$ac_ext >&5
28417
 
 
28418
 
( exit $ac_status )
28419
 
found=no
28420
 
fi
28421
 
rm -rf conftest.dSYM
28422
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28423
 
fi
28424
 
 
28425
 
 
28426
 
    LIBS=$ac_libs
28427
 
  fi
28428
 
 
28429
 
  if test "$found" = "yes"; then
28430
 
    
28431
 
  
28432
 
  case rt in
28433
 
  c|c_r|pthread*) ;;
28434
 
  *) 
28435
 
      LIBS="-lrt $LIBS" 
28436
 
   ;;
28437
 
  esac
28438
 
 
28439
 
 
28440
 
    
28441
 
cat >>confdefs.h <<\_ACEOF
28442
 
@%:@define HAVE_NANOSLEEP 1
28443
 
_ACEOF
28444
 
 
28445
 
    
28446
 
cat >>confdefs.h <<\_ACEOF
28447
 
@%:@define HAVE_LIBRT 1
28448
 
_ACEOF
28449
 
 
28450
 
    ac_cv_func_nanosleep=yes
28451
 
  else
28452
 
    
28453
 
  :
28454
 
 
28455
 
  fi
28456
 
  
28457
 
 
28458
 
 
28459
 
{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
28460
 
$as_echo_n "checking for getaddrinfo... " >&6; }
28461
 
if test "${ac_cv_func_getaddrinfo+set}" = set; then
28462
 
  $as_echo_n "(cached) " >&6
28463
 
else
28464
 
  cat >conftest.$ac_ext <<_ACEOF
28465
 
/* confdefs.h.  */
28466
 
_ACEOF
28467
 
cat confdefs.h >>conftest.$ac_ext
28468
 
cat >>conftest.$ac_ext <<_ACEOF
28469
 
/* end confdefs.h.  */
28470
 
#include <netdb.h>
28471
 
int
28472
 
main ()
28473
 
{
28474
 
struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);
28475
 
  ;
28476
 
  return 0;
28477
 
}
28478
 
_ACEOF
28479
 
rm -f conftest.$ac_objext conftest$ac_exeext
28480
 
if { (ac_try="$ac_link"
28481
 
case "(($ac_try" in
28482
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483
 
  *) ac_try_echo=$ac_try;;
28484
 
esac
28485
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28486
 
$as_echo "$ac_try_echo") >&5
28487
 
  (eval "$ac_link") 2>conftest.er1
28488
 
  ac_status=$?
28489
 
  grep -v '^ *+' conftest.er1 >conftest.err
28490
 
  rm -f conftest.er1
28491
 
  cat conftest.err >&5
28492
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493
 
  (exit $ac_status); } && {
28494
 
         test -z "$ac_c_werror_flag" ||
28495
 
         test ! -s conftest.err
28496
 
       } && test -s conftest$ac_exeext && {
28497
 
         test "$cross_compiling" = yes ||
28498
 
         $as_test_x conftest$ac_exeext
28499
 
       }; then
28500
 
  if test "$cross_compiling" = yes; then
28501
 
  ac_cv_func_getaddrinfo=no
28502
 
else
28503
 
  cat >conftest.$ac_ext <<_ACEOF
28504
 
/* confdefs.h.  */
28505
 
_ACEOF
28506
 
cat confdefs.h >>conftest.$ac_ext
28507
 
cat >>conftest.$ac_ext <<_ACEOF
28508
 
/* end confdefs.h.  */
28509
 
 
28510
 
#include <netdb.h>
28511
 
#include <sys/types.h>
28512
 
#ifndef AF_INET
28513
 
# include <sys/socket.h>
28514
 
#endif
28515
 
int main(void) {
28516
 
  struct addrinfo *ai, *pai, hints;
28517
 
 
28518
 
  memset(&hints, 0, sizeof(hints));
28519
 
  hints.ai_flags = AI_NUMERICHOST;
28520
 
 
28521
 
  if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) {
28522
 
    exit(1);
28523
 
  }
28524
 
 
28525
 
  if (ai == 0) {
28526
 
    exit(1);
28527
 
  }
28528
 
 
28529
 
  pai = ai;
28530
 
  
28531
 
  while (pai) {
28532
 
    if (pai->ai_family != AF_INET) {
28533
 
      /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
28534
 
      exit(1);
28535
 
    }
28536
 
    if (pai->ai_addr->sa_family != AF_INET) {
28537
 
      /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
28538
 
      exit(1);
28539
 
    }
28540
 
    pai = pai->ai_next;
28541
 
  }
28542
 
  freeaddrinfo(ai);
28543
 
  exit(0);
28544
 
}
28545
 
  
28546
 
_ACEOF
28547
 
rm -f conftest$ac_exeext
28548
 
if { (ac_try="$ac_link"
28549
 
case "(($ac_try" in
28550
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28551
 
  *) ac_try_echo=$ac_try;;
28552
 
esac
28553
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28554
 
$as_echo "$ac_try_echo") >&5
28555
 
  (eval "$ac_link") 2>&5
28556
 
  ac_status=$?
28557
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28559
 
  { (case "(($ac_try" in
28560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561
 
  *) ac_try_echo=$ac_try;;
28562
 
esac
28563
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28564
 
$as_echo "$ac_try_echo") >&5
28565
 
  (eval "$ac_try") 2>&5
28566
 
  ac_status=$?
28567
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568
 
  (exit $ac_status); }; }; then
28569
 
  ac_cv_func_getaddrinfo=yes
28570
 
else
28571
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
28572
 
$as_echo "$as_me: failed program was:" >&5
28573
 
sed 's/^/| /' conftest.$ac_ext >&5
28574
 
 
28575
 
( exit $ac_status )
28576
 
ac_cv_func_getaddrinfo=no
28577
 
fi
28578
 
rm -rf conftest.dSYM
28579
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28580
 
fi
28581
 
 
28582
 
 
28583
 
else
28584
 
  $as_echo "$as_me: failed program was:" >&5
28585
 
sed 's/^/| /' conftest.$ac_ext >&5
28586
 
 
28587
 
        ac_cv_func_getaddrinfo=no
28588
 
fi
28589
 
 
28590
 
rm -rf conftest.dSYM
28591
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28592
 
      conftest$ac_exeext conftest.$ac_ext
28593
 
fi
28594
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
28595
 
$as_echo "$ac_cv_func_getaddrinfo" >&6; }
28596
 
if test "$ac_cv_func_getaddrinfo" = yes; then
28597
 
  
28598
 
cat >>confdefs.h <<\_ACEOF
28599
 
@%:@define HAVE_GETADDRINFO 1
28600
 
_ACEOF
28601
 
 
28602
 
fi
28603
 
 
28604
 
{ $as_echo "$as_me:$LINENO: checking for __sync_fetch_and_add" >&5
28605
 
$as_echo_n "checking for __sync_fetch_and_add... " >&6; }
28606
 
if test "${ac_cv_func_sync_fetch_and_add+set}" = set; then
28607
 
  $as_echo_n "(cached) " >&6
28608
 
else
28609
 
  cat >conftest.$ac_ext <<_ACEOF
28610
 
/* confdefs.h.  */
28611
 
_ACEOF
28612
 
cat confdefs.h >>conftest.$ac_ext
28613
 
cat >>conftest.$ac_ext <<_ACEOF
28614
 
/* end confdefs.h.  */
28615
 
 
28616
 
int
28617
 
main ()
28618
 
{
28619
 
int x;__sync_fetch_and_add(&x,1);
28620
 
  ;
28621
 
  return 0;
28622
 
}
28623
 
_ACEOF
28624
 
rm -f conftest.$ac_objext conftest$ac_exeext
28625
 
if { (ac_try="$ac_link"
28626
 
case "(($ac_try" in
28627
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28628
 
  *) ac_try_echo=$ac_try;;
28629
 
esac
28630
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28631
 
$as_echo "$ac_try_echo") >&5
28632
 
  (eval "$ac_link") 2>conftest.er1
28633
 
  ac_status=$?
28634
 
  grep -v '^ *+' conftest.er1 >conftest.err
28635
 
  rm -f conftest.er1
28636
 
  cat conftest.err >&5
28637
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638
 
  (exit $ac_status); } && {
28639
 
         test -z "$ac_c_werror_flag" ||
28640
 
         test ! -s conftest.err
28641
 
       } && test -s conftest$ac_exeext && {
28642
 
         test "$cross_compiling" = yes ||
28643
 
         $as_test_x conftest$ac_exeext
28644
 
       }; then
28645
 
  ac_cv_func_sync_fetch_and_add=yes
28646
 
else
28647
 
  $as_echo "$as_me: failed program was:" >&5
28648
 
sed 's/^/| /' conftest.$ac_ext >&5
28649
 
 
28650
 
        ac_cv_func_sync_fetch_and_add=no
28651
 
fi
28652
 
 
28653
 
rm -rf conftest.dSYM
28654
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28655
 
      conftest$ac_exeext conftest.$ac_ext
28656
 
fi
28657
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sync_fetch_and_add" >&5
28658
 
$as_echo "$ac_cv_func_sync_fetch_and_add" >&6; }
28659
 
if test "$ac_cv_func_sync_fetch_and_add" = yes; then
28660
 
  
28661
 
cat >>confdefs.h <<\_ACEOF
28662
 
@%:@define HAVE_SYNC_FETCH_AND_ADD 1
28663
 
_ACEOF
28664
 
 
28665
 
fi
28666
 
 
28667
 
 
28668
 
 
28669
 
 
28670
 
for ac_func in strlcat strlcpy getopt
28671
 
do
28672
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28673
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28674
 
$as_echo_n "checking for $ac_func... " >&6; }
28675
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28676
 
  $as_echo_n "(cached) " >&6
28677
 
else
28678
 
  cat >conftest.$ac_ext <<_ACEOF
28679
 
/* confdefs.h.  */
28680
 
_ACEOF
28681
 
cat confdefs.h >>conftest.$ac_ext
28682
 
cat >>conftest.$ac_ext <<_ACEOF
28683
 
/* end confdefs.h.  */
28684
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28685
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28686
 
#define $ac_func innocuous_$ac_func
28687
 
 
28688
 
/* System header to define __stub macros and hopefully few prototypes,
28689
 
    which can conflict with char $ac_func (); below.
28690
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28691
 
    <limits.h> exists even on freestanding compilers.  */
28692
 
 
28693
 
#ifdef __STDC__
28694
 
# include <limits.h>
28695
 
#else
28696
 
# include <assert.h>
28697
 
#endif
28698
 
 
28699
 
#undef $ac_func
28700
 
 
28701
 
/* Override any GCC internal prototype to avoid an error.
28702
 
   Use char because int might match the return type of a GCC
28703
 
   builtin and then its argument prototype would still apply.  */
28704
 
#ifdef __cplusplus
28705
 
extern "C"
28706
 
#endif
28707
 
char $ac_func ();
28708
 
/* The GNU C library defines this for functions which it implements
28709
 
    to always fail with ENOSYS.  Some functions are actually named
28710
 
    something starting with __ and the normal name is an alias.  */
28711
 
#if defined __stub_$ac_func || defined __stub___$ac_func
28712
 
choke me
28713
 
#endif
28714
 
 
28715
 
int
28716
 
main ()
28717
 
{
28718
 
return $ac_func ();
28719
 
  ;
28720
 
  return 0;
28721
 
}
28722
 
_ACEOF
28723
 
rm -f conftest.$ac_objext conftest$ac_exeext
28724
 
if { (ac_try="$ac_link"
28725
 
case "(($ac_try" in
28726
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28727
 
  *) ac_try_echo=$ac_try;;
28728
 
esac
28729
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28730
 
$as_echo "$ac_try_echo") >&5
28731
 
  (eval "$ac_link") 2>conftest.er1
28732
 
  ac_status=$?
28733
 
  grep -v '^ *+' conftest.er1 >conftest.err
28734
 
  rm -f conftest.er1
28735
 
  cat conftest.err >&5
28736
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737
 
  (exit $ac_status); } && {
28738
 
         test -z "$ac_c_werror_flag" ||
28739
 
         test ! -s conftest.err
28740
 
       } && test -s conftest$ac_exeext && {
28741
 
         test "$cross_compiling" = yes ||
28742
 
         $as_test_x conftest$ac_exeext
28743
 
       }; then
28744
 
  eval "$as_ac_var=yes"
28745
 
else
28746
 
  $as_echo "$as_me: failed program was:" >&5
28747
 
sed 's/^/| /' conftest.$ac_ext >&5
28748
 
 
28749
 
        eval "$as_ac_var=no"
28750
 
fi
28751
 
 
28752
 
rm -rf conftest.dSYM
28753
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28754
 
      conftest$ac_exeext conftest.$ac_ext
28755
 
fi
28756
 
ac_res=`eval 'as_val=${'$as_ac_var'}
28757
 
                 $as_echo "$as_val"'`
28758
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28759
 
$as_echo "$ac_res" >&6; }
28760
 
as_val=`eval 'as_val=${'$as_ac_var'}
28761
 
                 $as_echo "$as_val"'`
28762
 
   if test "x$as_val" = x""yes; then
28763
 
  cat >>confdefs.h <<_ACEOF
28764
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28765
 
_ACEOF
28766
 
 
28767
 
else
28768
 
  case " $LIB@&t@OBJS " in
28769
 
  *" $ac_func.$ac_objext "* ) ;;
28770
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext"
28771
 
 ;;
28772
 
esac
28773
 
 
28774
 
fi
28775
 
done
28776
 
 
28777
 
 
28778
 
 
28779
 
        
28780
 
  
28781
 
  
28782
 
for ac_header in $ac_header_list
28783
 
do
28784
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28785
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28786
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28787
 
$as_echo_n "checking for $ac_header... " >&6; }
28788
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28789
 
  $as_echo_n "(cached) " >&6
28790
 
fi
28791
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
28792
 
                 $as_echo "$as_val"'`
28793
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28794
 
$as_echo "$ac_res" >&6; }
28795
 
else
28796
 
  # Is the header compilable?
28797
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28798
 
$as_echo_n "checking $ac_header usability... " >&6; }
28799
 
cat >conftest.$ac_ext <<_ACEOF
28800
 
/* confdefs.h.  */
28801
 
_ACEOF
28802
 
cat confdefs.h >>conftest.$ac_ext
28803
 
cat >>conftest.$ac_ext <<_ACEOF
28804
 
/* end confdefs.h.  */
28805
 
$ac_includes_default
28806
 
@%:@include <$ac_header>
28807
 
_ACEOF
28808
 
rm -f conftest.$ac_objext
28809
 
if { (ac_try="$ac_compile"
28810
 
case "(($ac_try" in
28811
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28812
 
  *) ac_try_echo=$ac_try;;
28813
 
esac
28814
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28815
 
$as_echo "$ac_try_echo") >&5
28816
 
  (eval "$ac_compile") 2>conftest.er1
28817
 
  ac_status=$?
28818
 
  grep -v '^ *+' conftest.er1 >conftest.err
28819
 
  rm -f conftest.er1
28820
 
  cat conftest.err >&5
28821
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822
 
  (exit $ac_status); } && {
28823
 
         test -z "$ac_c_werror_flag" ||
28824
 
         test ! -s conftest.err
28825
 
       } && test -s conftest.$ac_objext; then
28826
 
  ac_header_compiler=yes
28827
 
else
28828
 
  $as_echo "$as_me: failed program was:" >&5
28829
 
sed 's/^/| /' conftest.$ac_ext >&5
28830
 
 
28831
 
        ac_header_compiler=no
28832
 
fi
28833
 
 
28834
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28835
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28836
 
$as_echo "$ac_header_compiler" >&6; }
28837
 
 
28838
 
# Is the header present?
28839
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28840
 
$as_echo_n "checking $ac_header presence... " >&6; }
28841
 
cat >conftest.$ac_ext <<_ACEOF
28842
 
/* confdefs.h.  */
28843
 
_ACEOF
28844
 
cat confdefs.h >>conftest.$ac_ext
28845
 
cat >>conftest.$ac_ext <<_ACEOF
28846
 
/* end confdefs.h.  */
28847
 
@%:@include <$ac_header>
28848
 
_ACEOF
28849
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
28850
 
case "(($ac_try" in
28851
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28852
 
  *) ac_try_echo=$ac_try;;
28853
 
esac
28854
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28855
 
$as_echo "$ac_try_echo") >&5
28856
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28857
 
  ac_status=$?
28858
 
  grep -v '^ *+' conftest.er1 >conftest.err
28859
 
  rm -f conftest.er1
28860
 
  cat conftest.err >&5
28861
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862
 
  (exit $ac_status); } >/dev/null && {
28863
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28864
 
         test ! -s conftest.err
28865
 
       }; then
28866
 
  ac_header_preproc=yes
28867
 
else
28868
 
  $as_echo "$as_me: failed program was:" >&5
28869
 
sed 's/^/| /' conftest.$ac_ext >&5
28870
 
 
28871
 
  ac_header_preproc=no
28872
 
fi
28873
 
 
28874
 
rm -f conftest.err conftest.$ac_ext
28875
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28876
 
$as_echo "$ac_header_preproc" >&6; }
28877
 
 
28878
 
# So?  What about this header?
28879
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28880
 
  yes:no: )
28881
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28882
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28883
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28884
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28885
 
    ac_header_preproc=yes
28886
 
    ;;
28887
 
  no:yes:* )
28888
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28889
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28890
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28891
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28892
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28893
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28894
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28895
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28896
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28897
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28898
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28899
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28900
 
    
28901
 
    ;;
28902
 
esac
28903
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28904
 
$as_echo_n "checking for $ac_header... " >&6; }
28905
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28906
 
  $as_echo_n "(cached) " >&6
28907
 
else
28908
 
  eval "$as_ac_Header=\$ac_header_preproc"
28909
 
fi
28910
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
28911
 
                 $as_echo "$as_val"'`
28912
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28913
 
$as_echo "$ac_res" >&6; }
28914
 
 
28915
 
fi
28916
 
as_val=`eval 'as_val=${'$as_ac_Header'}
28917
 
                 $as_echo "$as_val"'`
28918
 
   if test "x$as_val" = x""yes; then
28919
 
  cat >>confdefs.h <<_ACEOF
28920
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28921
 
_ACEOF
28922
 
 
28923
 
fi
28924
 
 
28925
 
done
28926
 
 
28927
 
  
28928
 
 
28929
 
 
28930
 
  
28931
 
 
28932
 
  
28933
 
     
28934
 
 
28935
 
{ $as_echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
28936
 
$as_echo_n "checking whether utime accepts a null argument... " >&6; }
28937
 
if test "${ac_cv_func_utime_null+set}" = set; then
28938
 
  $as_echo_n "(cached) " >&6
28939
 
else
28940
 
  rm -f conftest.data; >conftest.data
28941
 
# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
28942
 
if test "$cross_compiling" = yes; then
28943
 
  ac_cv_func_utime_null=no
28944
 
else
28945
 
  cat >conftest.$ac_ext <<_ACEOF
28946
 
/* confdefs.h.  */
28947
 
_ACEOF
28948
 
cat confdefs.h >>conftest.$ac_ext
28949
 
cat >>conftest.$ac_ext <<_ACEOF
28950
 
/* end confdefs.h.  */
28951
 
$ac_includes_default
28952
 
               #ifdef HAVE_UTIME_H
28953
 
               # include <utime.h>
28954
 
               #endif
28955
 
int
28956
 
main ()
28957
 
{
28958
 
struct stat s, t;
28959
 
  return ! (stat ("conftest.data", &s) == 0
28960
 
            && utime ("conftest.data", 0) == 0
28961
 
            && stat ("conftest.data", &t) == 0
28962
 
            && t.st_mtime >= s.st_mtime
28963
 
            && t.st_mtime - s.st_mtime < 120);
28964
 
  ;
28965
 
  return 0;
28966
 
}
28967
 
_ACEOF
28968
 
rm -f conftest$ac_exeext
28969
 
if { (ac_try="$ac_link"
28970
 
case "(($ac_try" in
28971
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972
 
  *) ac_try_echo=$ac_try;;
28973
 
esac
28974
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28975
 
$as_echo "$ac_try_echo") >&5
28976
 
  (eval "$ac_link") 2>&5
28977
 
  ac_status=$?
28978
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28980
 
  { (case "(($ac_try" in
28981
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982
 
  *) ac_try_echo=$ac_try;;
28983
 
esac
28984
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28985
 
$as_echo "$ac_try_echo") >&5
28986
 
  (eval "$ac_try") 2>&5
28987
 
  ac_status=$?
28988
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989
 
  (exit $ac_status); }; }; then
28990
 
  ac_cv_func_utime_null=yes
28991
 
else
28992
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
28993
 
$as_echo "$as_me: failed program was:" >&5
28994
 
sed 's/^/| /' conftest.$ac_ext >&5
28995
 
 
28996
 
( exit $ac_status )
28997
 
ac_cv_func_utime_null=no
28998
 
fi
28999
 
rm -rf conftest.dSYM
29000
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29001
 
fi
29002
 
 
29003
 
 
29004
 
fi
29005
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
29006
 
$as_echo "$ac_cv_func_utime_null" >&6; }
29007
 
if test $ac_cv_func_utime_null = yes; then
29008
 
  
29009
 
cat >>confdefs.h <<\_ACEOF
29010
 
@%:@define HAVE_UTIME_NULL 1
29011
 
_ACEOF
29012
 
 
29013
 
fi
29014
 
rm -f conftest.data
29015
 
 
29016
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29017
 
# for constant arguments.  Useless!
29018
 
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
29019
 
$as_echo_n "checking for working alloca.h... " >&6; }
29020
 
if test "${ac_cv_working_alloca_h+set}" = set; then
29021
 
  $as_echo_n "(cached) " >&6
29022
 
else
29023
 
  cat >conftest.$ac_ext <<_ACEOF
29024
 
/* confdefs.h.  */
29025
 
_ACEOF
29026
 
cat confdefs.h >>conftest.$ac_ext
29027
 
cat >>conftest.$ac_ext <<_ACEOF
29028
 
/* end confdefs.h.  */
29029
 
@%:@include <alloca.h>
29030
 
int
29031
 
main ()
29032
 
{
29033
 
char *p = (char *) alloca (2 * sizeof (int));
29034
 
                          if (p) return 0;
29035
 
  ;
29036
 
  return 0;
29037
 
}
29038
 
_ACEOF
29039
 
rm -f conftest.$ac_objext conftest$ac_exeext
29040
 
if { (ac_try="$ac_link"
29041
 
case "(($ac_try" in
29042
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29043
 
  *) ac_try_echo=$ac_try;;
29044
 
esac
29045
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29046
 
$as_echo "$ac_try_echo") >&5
29047
 
  (eval "$ac_link") 2>conftest.er1
29048
 
  ac_status=$?
29049
 
  grep -v '^ *+' conftest.er1 >conftest.err
29050
 
  rm -f conftest.er1
29051
 
  cat conftest.err >&5
29052
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053
 
  (exit $ac_status); } && {
29054
 
         test -z "$ac_c_werror_flag" ||
29055
 
         test ! -s conftest.err
29056
 
       } && test -s conftest$ac_exeext && {
29057
 
         test "$cross_compiling" = yes ||
29058
 
         $as_test_x conftest$ac_exeext
29059
 
       }; then
29060
 
  ac_cv_working_alloca_h=yes
29061
 
else
29062
 
  $as_echo "$as_me: failed program was:" >&5
29063
 
sed 's/^/| /' conftest.$ac_ext >&5
29064
 
 
29065
 
        ac_cv_working_alloca_h=no
29066
 
fi
29067
 
 
29068
 
rm -rf conftest.dSYM
29069
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29070
 
      conftest$ac_exeext conftest.$ac_ext
29071
 
fi
29072
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29073
 
$as_echo "$ac_cv_working_alloca_h" >&6; }
29074
 
if test $ac_cv_working_alloca_h = yes; then
29075
 
  
29076
 
cat >>confdefs.h <<\_ACEOF
29077
 
@%:@define HAVE_ALLOCA_H 1
29078
 
_ACEOF
29079
 
 
29080
 
fi
29081
 
 
29082
 
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
29083
 
$as_echo_n "checking for alloca... " >&6; }
29084
 
if test "${ac_cv_func_alloca_works+set}" = set; then
29085
 
  $as_echo_n "(cached) " >&6
29086
 
else
29087
 
  cat >conftest.$ac_ext <<_ACEOF
29088
 
/* confdefs.h.  */
29089
 
_ACEOF
29090
 
cat confdefs.h >>conftest.$ac_ext
29091
 
cat >>conftest.$ac_ext <<_ACEOF
29092
 
/* end confdefs.h.  */
29093
 
#ifdef __GNUC__
29094
 
# define alloca __builtin_alloca
29095
 
#else
29096
 
# ifdef _MSC_VER
29097
 
#  include <malloc.h>
29098
 
#  define alloca _alloca
29099
 
# else
29100
 
#  ifdef HAVE_ALLOCA_H
29101
 
#   include <alloca.h>
29102
 
#  else
29103
 
#   ifdef _AIX
29104
 
 #pragma alloca
29105
 
#   else
29106
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
29107
 
char *alloca ();
29108
 
#    endif
29109
 
#   endif
29110
 
#  endif
29111
 
# endif
29112
 
#endif
29113
 
 
29114
 
int
29115
 
main ()
29116
 
{
29117
 
char *p = (char *) alloca (1);
29118
 
                                    if (p) return 0;
29119
 
  ;
29120
 
  return 0;
29121
 
}
29122
 
_ACEOF
29123
 
rm -f conftest.$ac_objext conftest$ac_exeext
29124
 
if { (ac_try="$ac_link"
29125
 
case "(($ac_try" in
29126
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127
 
  *) ac_try_echo=$ac_try;;
29128
 
esac
29129
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29130
 
$as_echo "$ac_try_echo") >&5
29131
 
  (eval "$ac_link") 2>conftest.er1
29132
 
  ac_status=$?
29133
 
  grep -v '^ *+' conftest.er1 >conftest.err
29134
 
  rm -f conftest.er1
29135
 
  cat conftest.err >&5
29136
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137
 
  (exit $ac_status); } && {
29138
 
         test -z "$ac_c_werror_flag" ||
29139
 
         test ! -s conftest.err
29140
 
       } && test -s conftest$ac_exeext && {
29141
 
         test "$cross_compiling" = yes ||
29142
 
         $as_test_x conftest$ac_exeext
29143
 
       }; then
29144
 
  ac_cv_func_alloca_works=yes
29145
 
else
29146
 
  $as_echo "$as_me: failed program was:" >&5
29147
 
sed 's/^/| /' conftest.$ac_ext >&5
29148
 
 
29149
 
        ac_cv_func_alloca_works=no
29150
 
fi
29151
 
 
29152
 
rm -rf conftest.dSYM
29153
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29154
 
      conftest$ac_exeext conftest.$ac_ext
29155
 
fi
29156
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29157
 
$as_echo "$ac_cv_func_alloca_works" >&6; }
29158
 
 
29159
 
if test $ac_cv_func_alloca_works = yes; then
29160
 
  
29161
 
cat >>confdefs.h <<\_ACEOF
29162
 
@%:@define HAVE_ALLOCA 1
29163
 
_ACEOF
29164
 
 
29165
 
else
29166
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29167
 
# that cause trouble.  Some versions do not even contain alloca or
29168
 
# contain a buggy version.  If you still want to use their alloca,
29169
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
29170
 
 
29171
 
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29172
 
 
29173
 
cat >>confdefs.h <<\_ACEOF
29174
 
@%:@define C_ALLOCA 1
29175
 
_ACEOF
29176
 
 
29177
 
 
29178
 
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29179
 
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29180
 
if test "${ac_cv_os_cray+set}" = set; then
29181
 
  $as_echo_n "(cached) " >&6
29182
 
else
29183
 
  cat >conftest.$ac_ext <<_ACEOF
29184
 
/* confdefs.h.  */
29185
 
_ACEOF
29186
 
cat confdefs.h >>conftest.$ac_ext
29187
 
cat >>conftest.$ac_ext <<_ACEOF
29188
 
/* end confdefs.h.  */
29189
 
#if defined CRAY && ! defined CRAY2
29190
 
webecray
29191
 
#else
29192
 
wenotbecray
29193
 
#endif
29194
 
 
29195
 
_ACEOF
29196
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29197
 
  $EGREP "webecray" >/dev/null 2>&1; then
29198
 
  ac_cv_os_cray=yes
29199
 
else
29200
 
  ac_cv_os_cray=no
29201
 
fi
29202
 
rm -f conftest*
29203
 
 
29204
 
fi
29205
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29206
 
$as_echo "$ac_cv_os_cray" >&6; }
29207
 
if test $ac_cv_os_cray = yes; then
29208
 
  for ac_func in _getb67 GETB67 getb67; do
29209
 
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29210
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29211
 
$as_echo_n "checking for $ac_func... " >&6; }
29212
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29213
 
  $as_echo_n "(cached) " >&6
29214
 
else
29215
 
  cat >conftest.$ac_ext <<_ACEOF
29216
 
/* confdefs.h.  */
29217
 
_ACEOF
29218
 
cat confdefs.h >>conftest.$ac_ext
29219
 
cat >>conftest.$ac_ext <<_ACEOF
29220
 
/* end confdefs.h.  */
29221
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29222
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29223
 
#define $ac_func innocuous_$ac_func
29224
 
 
29225
 
/* System header to define __stub macros and hopefully few prototypes,
29226
 
    which can conflict with char $ac_func (); below.
29227
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29228
 
    <limits.h> exists even on freestanding compilers.  */
29229
 
 
29230
 
#ifdef __STDC__
29231
 
# include <limits.h>
29232
 
#else
29233
 
# include <assert.h>
29234
 
#endif
29235
 
 
29236
 
#undef $ac_func
29237
 
 
29238
 
/* Override any GCC internal prototype to avoid an error.
29239
 
   Use char because int might match the return type of a GCC
29240
 
   builtin and then its argument prototype would still apply.  */
29241
 
#ifdef __cplusplus
29242
 
extern "C"
29243
 
#endif
29244
 
char $ac_func ();
29245
 
/* The GNU C library defines this for functions which it implements
29246
 
    to always fail with ENOSYS.  Some functions are actually named
29247
 
    something starting with __ and the normal name is an alias.  */
29248
 
#if defined __stub_$ac_func || defined __stub___$ac_func
29249
 
choke me
29250
 
#endif
29251
 
 
29252
 
int
29253
 
main ()
29254
 
{
29255
 
return $ac_func ();
29256
 
  ;
29257
 
  return 0;
29258
 
}
29259
 
_ACEOF
29260
 
rm -f conftest.$ac_objext conftest$ac_exeext
29261
 
if { (ac_try="$ac_link"
29262
 
case "(($ac_try" in
29263
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29264
 
  *) ac_try_echo=$ac_try;;
29265
 
esac
29266
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29267
 
$as_echo "$ac_try_echo") >&5
29268
 
  (eval "$ac_link") 2>conftest.er1
29269
 
  ac_status=$?
29270
 
  grep -v '^ *+' conftest.er1 >conftest.err
29271
 
  rm -f conftest.er1
29272
 
  cat conftest.err >&5
29273
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274
 
  (exit $ac_status); } && {
29275
 
         test -z "$ac_c_werror_flag" ||
29276
 
         test ! -s conftest.err
29277
 
       } && test -s conftest$ac_exeext && {
29278
 
         test "$cross_compiling" = yes ||
29279
 
         $as_test_x conftest$ac_exeext
29280
 
       }; then
29281
 
  eval "$as_ac_var=yes"
29282
 
else
29283
 
  $as_echo "$as_me: failed program was:" >&5
29284
 
sed 's/^/| /' conftest.$ac_ext >&5
29285
 
 
29286
 
        eval "$as_ac_var=no"
29287
 
fi
29288
 
 
29289
 
rm -rf conftest.dSYM
29290
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29291
 
      conftest$ac_exeext conftest.$ac_ext
29292
 
fi
29293
 
ac_res=`eval 'as_val=${'$as_ac_var'}
29294
 
                 $as_echo "$as_val"'`
29295
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29296
 
$as_echo "$ac_res" >&6; }
29297
 
as_val=`eval 'as_val=${'$as_ac_var'}
29298
 
                 $as_echo "$as_val"'`
29299
 
   if test "x$as_val" = x""yes; then
29300
 
  
29301
 
cat >>confdefs.h <<_ACEOF
29302
 
@%:@define CRAY_STACKSEG_END $ac_func
29303
 
_ACEOF
29304
 
 
29305
 
    break
29306
 
fi
29307
 
 
29308
 
  done
29309
 
fi
29310
 
 
29311
 
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29312
 
$as_echo_n "checking stack direction for C alloca... " >&6; }
29313
 
if test "${ac_cv_c_stack_direction+set}" = set; then
29314
 
  $as_echo_n "(cached) " >&6
29315
 
else
29316
 
  if test "$cross_compiling" = yes; then
29317
 
  ac_cv_c_stack_direction=0
29318
 
else
29319
 
  cat >conftest.$ac_ext <<_ACEOF
29320
 
/* confdefs.h.  */
29321
 
_ACEOF
29322
 
cat confdefs.h >>conftest.$ac_ext
29323
 
cat >>conftest.$ac_ext <<_ACEOF
29324
 
/* end confdefs.h.  */
29325
 
$ac_includes_default
29326
 
int
29327
 
find_stack_direction ()
29328
 
{
29329
 
  static char *addr = 0;
29330
 
  auto char dummy;
29331
 
  if (addr == 0)
29332
 
    {
29333
 
      addr = &dummy;
29334
 
      return find_stack_direction ();
29335
 
    }
29336
 
  else
29337
 
    return (&dummy > addr) ? 1 : -1;
29338
 
}
29339
 
 
29340
 
int
29341
 
main ()
29342
 
{
29343
 
  return find_stack_direction () < 0;
29344
 
}
29345
 
_ACEOF
29346
 
rm -f conftest$ac_exeext
29347
 
if { (ac_try="$ac_link"
29348
 
case "(($ac_try" in
29349
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29350
 
  *) ac_try_echo=$ac_try;;
29351
 
esac
29352
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29353
 
$as_echo "$ac_try_echo") >&5
29354
 
  (eval "$ac_link") 2>&5
29355
 
  ac_status=$?
29356
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29358
 
  { (case "(($ac_try" in
29359
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29360
 
  *) ac_try_echo=$ac_try;;
29361
 
esac
29362
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29363
 
$as_echo "$ac_try_echo") >&5
29364
 
  (eval "$ac_try") 2>&5
29365
 
  ac_status=$?
29366
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367
 
  (exit $ac_status); }; }; then
29368
 
  ac_cv_c_stack_direction=1
29369
 
else
29370
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
29371
 
$as_echo "$as_me: failed program was:" >&5
29372
 
sed 's/^/| /' conftest.$ac_ext >&5
29373
 
 
29374
 
( exit $ac_status )
29375
 
ac_cv_c_stack_direction=-1
29376
 
fi
29377
 
rm -rf conftest.dSYM
29378
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29379
 
fi
29380
 
 
29381
 
 
29382
 
fi
29383
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29384
 
$as_echo "$ac_cv_c_stack_direction" >&6; }
29385
 
 
29386
 
cat >>confdefs.h <<_ACEOF
29387
 
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
29388
 
_ACEOF
29389
 
 
29390
 
 
29391
 
fi
29392
 
 
29393
 
 
29394
 
  { $as_echo "$as_me:$LINENO: checking for declared timezone" >&5
29395
 
$as_echo_n "checking for declared timezone... " >&6; }
29396
 
if test "${ac_cv_declared_timezone+set}" = set; then
29397
 
  $as_echo_n "(cached) " >&6
29398
 
else
29399
 
  
29400
 
    cat >conftest.$ac_ext <<_ACEOF
29401
 
/* confdefs.h.  */
29402
 
_ACEOF
29403
 
cat confdefs.h >>conftest.$ac_ext
29404
 
cat >>conftest.$ac_ext <<_ACEOF
29405
 
/* end confdefs.h.  */
29406
 
 
29407
 
#include <sys/types.h>
29408
 
#include <time.h>
29409
 
#ifdef HAVE_SYS_TIME_H
29410
 
#include <sys/time.h>
29411
 
#endif
29412
 
 
29413
 
int
29414
 
main ()
29415
 
{
29416
 
 
29417
 
    time_t foo = (time_t) timezone;
29418
 
 
29419
 
  ;
29420
 
  return 0;
29421
 
}
29422
 
_ACEOF
29423
 
rm -f conftest.$ac_objext
29424
 
if { (ac_try="$ac_compile"
29425
 
case "(($ac_try" in
29426
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427
 
  *) ac_try_echo=$ac_try;;
29428
 
esac
29429
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29430
 
$as_echo "$ac_try_echo") >&5
29431
 
  (eval "$ac_compile") 2>conftest.er1
29432
 
  ac_status=$?
29433
 
  grep -v '^ *+' conftest.er1 >conftest.err
29434
 
  rm -f conftest.er1
29435
 
  cat conftest.err >&5
29436
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437
 
  (exit $ac_status); } && {
29438
 
         test -z "$ac_c_werror_flag" ||
29439
 
         test ! -s conftest.err
29440
 
       } && test -s conftest.$ac_objext; then
29441
 
  
29442
 
  ac_cv_declared_timezone=yes
29443
 
 
29444
 
else
29445
 
  $as_echo "$as_me: failed program was:" >&5
29446
 
sed 's/^/| /' conftest.$ac_ext >&5
29447
 
 
29448
 
        
29449
 
  ac_cv_declared_timezone=no
29450
 
 
29451
 
fi
29452
 
 
29453
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29454
 
fi
29455
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_declared_timezone" >&5
29456
 
$as_echo "$ac_cv_declared_timezone" >&6; }
29457
 
  if test "$ac_cv_declared_timezone" = "yes"; then
29458
 
    
29459
 
cat >>confdefs.h <<\_ACEOF
29460
 
@%:@define HAVE_DECLARED_TIMEZONE 1
29461
 
_ACEOF
29462
 
 
29463
 
  fi
29464
 
 
29465
 
 
29466
 
{ $as_echo "$as_me:$LINENO: checking for type of reentrant time-related functions" >&5
29467
 
$as_echo_n "checking for type of reentrant time-related functions... " >&6; }
29468
 
if test "${ac_cv_time_r_type+set}" = set; then
29469
 
  $as_echo_n "(cached) " >&6
29470
 
else
29471
 
  
29472
 
if test "$cross_compiling" = yes; then
29473
 
  
29474
 
  ac_cv_time_r_type=POSIX
29475
 
 
29476
 
else
29477
 
  cat >conftest.$ac_ext <<_ACEOF
29478
 
/* confdefs.h.  */
29479
 
_ACEOF
29480
 
cat confdefs.h >>conftest.$ac_ext
29481
 
cat >>conftest.$ac_ext <<_ACEOF
29482
 
/* end confdefs.h.  */
29483
 
 
29484
 
#include <time.h>
29485
 
 
29486
 
main() {
29487
 
char buf[27];
29488
 
struct tm t;
29489
 
time_t old = 0;
29490
 
int r, s;
29491
 
 
29492
 
s = gmtime_r(&old, &t);
29493
 
r = (int) asctime_r(&t, buf, 26);
29494
 
if (r == s && s == 0) return (0);
29495
 
return (1);
29496
 
}
29497
 
 
29498
 
_ACEOF
29499
 
rm -f conftest$ac_exeext
29500
 
if { (ac_try="$ac_link"
29501
 
case "(($ac_try" in
29502
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503
 
  *) ac_try_echo=$ac_try;;
29504
 
esac
29505
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29506
 
$as_echo "$ac_try_echo") >&5
29507
 
  (eval "$ac_link") 2>&5
29508
 
  ac_status=$?
29509
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29511
 
  { (case "(($ac_try" in
29512
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513
 
  *) ac_try_echo=$ac_try;;
29514
 
esac
29515
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29516
 
$as_echo "$ac_try_echo") >&5
29517
 
  (eval "$ac_try") 2>&5
29518
 
  ac_status=$?
29519
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520
 
  (exit $ac_status); }; }; then
29521
 
  
29522
 
  ac_cv_time_r_type=hpux
29523
 
 
29524
 
else
29525
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
29526
 
$as_echo "$as_me: failed program was:" >&5
29527
 
sed 's/^/| /' conftest.$ac_ext >&5
29528
 
 
29529
 
( exit $ac_status )
29530
 
 
29531
 
  if test "$cross_compiling" = yes; then
29532
 
  
29533
 
    ac_cv_time_r_type=POSIX
29534
 
  
29535
 
else
29536
 
  cat >conftest.$ac_ext <<_ACEOF
29537
 
/* confdefs.h.  */
29538
 
_ACEOF
29539
 
cat confdefs.h >>conftest.$ac_ext
29540
 
cat >>conftest.$ac_ext <<_ACEOF
29541
 
/* end confdefs.h.  */
29542
 
 
29543
 
#include <time.h>
29544
 
main() {
29545
 
  struct tm t, *s;
29546
 
  time_t old = 0;
29547
 
  char buf[27], *p;
29548
 
  
29549
 
  s = gmtime_r(&old, &t);
29550
 
  p = asctime_r(&t, buf, 26);
29551
 
  if (p == buf && s == &t) return (0);
29552
 
  return (1);
29553
 
}
29554
 
  
29555
 
_ACEOF
29556
 
rm -f conftest$ac_exeext
29557
 
if { (ac_try="$ac_link"
29558
 
case "(($ac_try" in
29559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560
 
  *) ac_try_echo=$ac_try;;
29561
 
esac
29562
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29563
 
$as_echo "$ac_try_echo") >&5
29564
 
  (eval "$ac_link") 2>&5
29565
 
  ac_status=$?
29566
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29568
 
  { (case "(($ac_try" in
29569
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570
 
  *) ac_try_echo=$ac_try;;
29571
 
esac
29572
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29573
 
$as_echo "$ac_try_echo") >&5
29574
 
  (eval "$ac_try") 2>&5
29575
 
  ac_status=$?
29576
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577
 
  (exit $ac_status); }; }; then
29578
 
  
29579
 
    ac_cv_time_r_type=irix
29580
 
  
29581
 
else
29582
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
29583
 
$as_echo "$as_me: failed program was:" >&5
29584
 
sed 's/^/| /' conftest.$ac_ext >&5
29585
 
 
29586
 
( exit $ac_status )
29587
 
 
29588
 
    ac_cv_time_r_type=POSIX
29589
 
  
29590
 
fi
29591
 
rm -rf conftest.dSYM
29592
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29593
 
fi
29594
 
 
29595
 
 
29596
 
 
29597
 
fi
29598
 
rm -rf conftest.dSYM
29599
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29600
 
fi
29601
 
 
29602
 
 
29603
 
 
29604
 
fi
29605
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_time_r_type" >&5
29606
 
$as_echo "$ac_cv_time_r_type" >&6; }
29607
 
  case $ac_cv_time_r_type in
29608
 
  hpux) 
29609
 
cat >>confdefs.h <<\_ACEOF
29610
 
@%:@define PHP_HPUX_TIME_R 1
29611
 
_ACEOF
29612
 
 ;;
29613
 
  irix) 
29614
 
cat >>confdefs.h <<\_ACEOF
29615
 
@%:@define PHP_IRIX_TIME_R 1
29616
 
_ACEOF
29617
 
 ;;
29618
 
  esac
29619
 
 
29620
 
 
29621
 
    { $as_echo "$as_me:$LINENO: checking for readdir_r" >&5
29622
 
$as_echo_n "checking for readdir_r... " >&6; }
29623
 
if test "${ac_cv_func_readdir_r+set}" = set; then
29624
 
  $as_echo_n "(cached) " >&6
29625
 
else
29626
 
  cat >conftest.$ac_ext <<_ACEOF
29627
 
/* confdefs.h.  */
29628
 
_ACEOF
29629
 
cat confdefs.h >>conftest.$ac_ext
29630
 
cat >>conftest.$ac_ext <<_ACEOF
29631
 
/* end confdefs.h.  */
29632
 
/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
29633
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29634
 
#define readdir_r innocuous_readdir_r
29635
 
 
29636
 
/* System header to define __stub macros and hopefully few prototypes,
29637
 
    which can conflict with char readdir_r (); below.
29638
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29639
 
    <limits.h> exists even on freestanding compilers.  */
29640
 
 
29641
 
#ifdef __STDC__
29642
 
# include <limits.h>
29643
 
#else
29644
 
# include <assert.h>
29645
 
#endif
29646
 
 
29647
 
#undef readdir_r
29648
 
 
29649
 
/* Override any GCC internal prototype to avoid an error.
29650
 
   Use char because int might match the return type of a GCC
29651
 
   builtin and then its argument prototype would still apply.  */
29652
 
#ifdef __cplusplus
29653
 
extern "C"
29654
 
#endif
29655
 
char readdir_r ();
29656
 
/* The GNU C library defines this for functions which it implements
29657
 
    to always fail with ENOSYS.  Some functions are actually named
29658
 
    something starting with __ and the normal name is an alias.  */
29659
 
#if defined __stub_readdir_r || defined __stub___readdir_r
29660
 
choke me
29661
 
#endif
29662
 
 
29663
 
int
29664
 
main ()
29665
 
{
29666
 
return readdir_r ();
29667
 
  ;
29668
 
  return 0;
29669
 
}
29670
 
_ACEOF
29671
 
rm -f conftest.$ac_objext conftest$ac_exeext
29672
 
if { (ac_try="$ac_link"
29673
 
case "(($ac_try" in
29674
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675
 
  *) ac_try_echo=$ac_try;;
29676
 
esac
29677
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29678
 
$as_echo "$ac_try_echo") >&5
29679
 
  (eval "$ac_link") 2>conftest.er1
29680
 
  ac_status=$?
29681
 
  grep -v '^ *+' conftest.er1 >conftest.err
29682
 
  rm -f conftest.er1
29683
 
  cat conftest.err >&5
29684
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685
 
  (exit $ac_status); } && {
29686
 
         test -z "$ac_c_werror_flag" ||
29687
 
         test ! -s conftest.err
29688
 
       } && test -s conftest$ac_exeext && {
29689
 
         test "$cross_compiling" = yes ||
29690
 
         $as_test_x conftest$ac_exeext
29691
 
       }; then
29692
 
  ac_cv_func_readdir_r=yes
29693
 
else
29694
 
  $as_echo "$as_me: failed program was:" >&5
29695
 
sed 's/^/| /' conftest.$ac_ext >&5
29696
 
 
29697
 
        ac_cv_func_readdir_r=no
29698
 
fi
29699
 
 
29700
 
rm -rf conftest.dSYM
29701
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29702
 
      conftest$ac_exeext conftest.$ac_ext
29703
 
fi
29704
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
29705
 
$as_echo "$ac_cv_func_readdir_r" >&6; }
29706
 
if test "x$ac_cv_func_readdir_r" = x""yes; then
29707
 
  ac_cv_func_readdir_r=yes
29708
 
else
29709
 
  ac_cv_func_readdir=no
29710
 
fi
29711
 
 
29712
 
  if test "$ac_cv_func_readdir_r" = "yes"; then
29713
 
  { $as_echo "$as_me:$LINENO: checking for type of readdir_r" >&5
29714
 
$as_echo_n "checking for type of readdir_r... " >&6; }
29715
 
if test "${ac_cv_what_readdir_r+set}" = set; then
29716
 
  $as_echo_n "(cached) " >&6
29717
 
else
29718
 
  
29719
 
    if test "$cross_compiling" = yes; then
29720
 
  
29721
 
      ac_cv_what_readdir_r=none
29722
 
   
29723
 
else
29724
 
  cat >conftest.$ac_ext <<_ACEOF
29725
 
/* confdefs.h.  */
29726
 
_ACEOF
29727
 
cat confdefs.h >>conftest.$ac_ext
29728
 
cat >>conftest.$ac_ext <<_ACEOF
29729
 
/* end confdefs.h.  */
29730
 
 
29731
 
#define _REENTRANT
29732
 
#include <sys/types.h>
29733
 
#include <dirent.h>
29734
 
 
29735
 
#ifndef PATH_MAX
29736
 
#define PATH_MAX 1024
29737
 
#endif
29738
 
 
29739
 
main() {
29740
 
  DIR *dir;
29741
 
  char entry[sizeof(struct dirent)+PATH_MAX];
29742
 
  struct dirent *pentry = (struct dirent *) &entry;
29743
 
 
29744
 
  dir = opendir("/");
29745
 
  if (!dir) 
29746
 
    exit(1);
29747
 
  if (readdir_r(dir, (struct dirent *) entry, &pentry) == 0)
29748
 
    exit(0);
29749
 
  exit(1);
29750
 
}
29751
 
    
29752
 
_ACEOF
29753
 
rm -f conftest$ac_exeext
29754
 
if { (ac_try="$ac_link"
29755
 
case "(($ac_try" in
29756
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757
 
  *) ac_try_echo=$ac_try;;
29758
 
esac
29759
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29760
 
$as_echo "$ac_try_echo") >&5
29761
 
  (eval "$ac_link") 2>&5
29762
 
  ac_status=$?
29763
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29765
 
  { (case "(($ac_try" in
29766
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767
 
  *) ac_try_echo=$ac_try;;
29768
 
esac
29769
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29770
 
$as_echo "$ac_try_echo") >&5
29771
 
  (eval "$ac_try") 2>&5
29772
 
  ac_status=$?
29773
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774
 
  (exit $ac_status); }; }; then
29775
 
  
29776
 
      ac_cv_what_readdir_r=POSIX
29777
 
    
29778
 
else
29779
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
29780
 
$as_echo "$as_me: failed program was:" >&5
29781
 
sed 's/^/| /' conftest.$ac_ext >&5
29782
 
 
29783
 
( exit $ac_status )
29784
 
 
29785
 
      cat >conftest.$ac_ext <<_ACEOF
29786
 
/* confdefs.h.  */
29787
 
_ACEOF
29788
 
cat confdefs.h >>conftest.$ac_ext
29789
 
cat >>conftest.$ac_ext <<_ACEOF
29790
 
/* end confdefs.h.  */
29791
 
 
29792
 
#define _REENTRANT
29793
 
#include <sys/types.h>
29794
 
#include <dirent.h>
29795
 
int readdir_r(DIR *, struct dirent *);
29796
 
        
29797
 
_ACEOF
29798
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
29799
 
case "(($ac_try" in
29800
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29801
 
  *) ac_try_echo=$ac_try;;
29802
 
esac
29803
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29804
 
$as_echo "$ac_try_echo") >&5
29805
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29806
 
  ac_status=$?
29807
 
  grep -v '^ *+' conftest.er1 >conftest.err
29808
 
  rm -f conftest.er1
29809
 
  cat conftest.err >&5
29810
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811
 
  (exit $ac_status); } >/dev/null && {
29812
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29813
 
         test ! -s conftest.err
29814
 
       }; then
29815
 
  
29816
 
          ac_cv_what_readdir_r=old-style
29817
 
        
29818
 
else
29819
 
  $as_echo "$as_me: failed program was:" >&5
29820
 
sed 's/^/| /' conftest.$ac_ext >&5
29821
 
 
29822
 
  
29823
 
          ac_cv_what_readdir_r=none
29824
 
      
29825
 
fi
29826
 
 
29827
 
rm -f conftest.err conftest.$ac_ext
29828
 
    
29829
 
fi
29830
 
rm -rf conftest.dSYM
29831
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29832
 
fi
29833
 
 
29834
 
 
29835
 
  
29836
 
fi
29837
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_what_readdir_r" >&5
29838
 
$as_echo "$ac_cv_what_readdir_r" >&6; }
29839
 
    case $ac_cv_what_readdir_r in
29840
 
    POSIX)
29841
 
      
29842
 
cat >>confdefs.h <<\_ACEOF
29843
 
@%:@define HAVE_POSIX_READDIR_R 1
29844
 
_ACEOF
29845
 
;;
29846
 
    old-style)
29847
 
      
29848
 
cat >>confdefs.h <<\_ACEOF
29849
 
@%:@define HAVE_OLD_READDIR_R 1
29850
 
_ACEOF
29851
 
;;
29852
 
    esac
29853
 
  fi
29854
 
 
29855
 
 
29856
 
{ $as_echo "$as_me:$LINENO: checking for in_addr_t" >&5
29857
 
$as_echo_n "checking for in_addr_t... " >&6; }
29858
 
if test "${ac_cv_type_in_addr_t+set}" = set; then
29859
 
  $as_echo_n "(cached) " >&6
29860
 
else
29861
 
  cat >conftest.$ac_ext <<_ACEOF
29862
 
/* confdefs.h.  */
29863
 
_ACEOF
29864
 
cat confdefs.h >>conftest.$ac_ext
29865
 
cat >>conftest.$ac_ext <<_ACEOF
29866
 
/* end confdefs.h.  */
29867
 
#include <sys/types.h>
29868
 
#if STDC_HEADERS
29869
 
#include <stdlib.h>
29870
 
#include <stddef.h>
29871
 
#endif
29872
 
#ifdef HAVE_NETINET_IN_H
29873
 
#include <netinet/in.h>
29874
 
#endif
29875
 
_ACEOF
29876
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29877
 
  $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
29878
 
  ac_cv_type_in_addr_t=yes
29879
 
else
29880
 
  ac_cv_type_in_addr_t=no
29881
 
fi
29882
 
rm -f conftest*
29883
 
 
29884
 
fi
29885
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
29886
 
$as_echo "$ac_cv_type_in_addr_t" >&6; }
29887
 
if test $ac_cv_type_in_addr_t = no; then
29888
 
  
29889
 
cat >>confdefs.h <<\_ACEOF
29890
 
@%:@define in_addr_t u_int
29891
 
_ACEOF
29892
 
 
29893
 
fi
29894
 
 
29895
 
 
29896
 
 
29897
 
for ac_func in crypt_r
29898
 
do
29899
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29900
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29901
 
$as_echo_n "checking for $ac_func... " >&6; }
29902
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29903
 
  $as_echo_n "(cached) " >&6
29904
 
else
29905
 
  cat >conftest.$ac_ext <<_ACEOF
29906
 
/* confdefs.h.  */
29907
 
_ACEOF
29908
 
cat confdefs.h >>conftest.$ac_ext
29909
 
cat >>conftest.$ac_ext <<_ACEOF
29910
 
/* end confdefs.h.  */
29911
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29912
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29913
 
#define $ac_func innocuous_$ac_func
29914
 
 
29915
 
/* System header to define __stub macros and hopefully few prototypes,
29916
 
    which can conflict with char $ac_func (); below.
29917
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29918
 
    <limits.h> exists even on freestanding compilers.  */
29919
 
 
29920
 
#ifdef __STDC__
29921
 
# include <limits.h>
29922
 
#else
29923
 
# include <assert.h>
29924
 
#endif
29925
 
 
29926
 
#undef $ac_func
29927
 
 
29928
 
/* Override any GCC internal prototype to avoid an error.
29929
 
   Use char because int might match the return type of a GCC
29930
 
   builtin and then its argument prototype would still apply.  */
29931
 
#ifdef __cplusplus
29932
 
extern "C"
29933
 
#endif
29934
 
char $ac_func ();
29935
 
/* The GNU C library defines this for functions which it implements
29936
 
    to always fail with ENOSYS.  Some functions are actually named
29937
 
    something starting with __ and the normal name is an alias.  */
29938
 
#if defined __stub_$ac_func || defined __stub___$ac_func
29939
 
choke me
29940
 
#endif
29941
 
 
29942
 
int
29943
 
main ()
29944
 
{
29945
 
return $ac_func ();
29946
 
  ;
29947
 
  return 0;
29948
 
}
29949
 
_ACEOF
29950
 
rm -f conftest.$ac_objext conftest$ac_exeext
29951
 
if { (ac_try="$ac_link"
29952
 
case "(($ac_try" in
29953
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954
 
  *) ac_try_echo=$ac_try;;
29955
 
esac
29956
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29957
 
$as_echo "$ac_try_echo") >&5
29958
 
  (eval "$ac_link") 2>conftest.er1
29959
 
  ac_status=$?
29960
 
  grep -v '^ *+' conftest.er1 >conftest.err
29961
 
  rm -f conftest.er1
29962
 
  cat conftest.err >&5
29963
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964
 
  (exit $ac_status); } && {
29965
 
         test -z "$ac_c_werror_flag" ||
29966
 
         test ! -s conftest.err
29967
 
       } && test -s conftest$ac_exeext && {
29968
 
         test "$cross_compiling" = yes ||
29969
 
         $as_test_x conftest$ac_exeext
29970
 
       }; then
29971
 
  eval "$as_ac_var=yes"
29972
 
else
29973
 
  $as_echo "$as_me: failed program was:" >&5
29974
 
sed 's/^/| /' conftest.$ac_ext >&5
29975
 
 
29976
 
        eval "$as_ac_var=no"
29977
 
fi
29978
 
 
29979
 
rm -rf conftest.dSYM
29980
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29981
 
      conftest$ac_exeext conftest.$ac_ext
29982
 
fi
29983
 
ac_res=`eval 'as_val=${'$as_ac_var'}
29984
 
                 $as_echo "$as_val"'`
29985
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29986
 
$as_echo "$ac_res" >&6; }
29987
 
as_val=`eval 'as_val=${'$as_ac_var'}
29988
 
                 $as_echo "$as_val"'`
29989
 
   if test "x$as_val" = x""yes; then
29990
 
  cat >>confdefs.h <<_ACEOF
29991
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29992
 
_ACEOF
29993
 
  php_crypt_r="1" 
29994
 
else
29995
 
   php_crypt_r="0" 
29996
 
fi
29997
 
done
29998
 
 
29999
 
if test "x$php_crypt_r" = "x1"; then
30000
 
  
30001
 
  { $as_echo "$as_me:$LINENO: checking which data struct is used by crypt_r" >&5
30002
 
$as_echo_n "checking which data struct is used by crypt_r... " >&6; }
30003
 
if test "${php_cv_crypt_r_style+set}" = set; then
30004
 
  $as_echo_n "(cached) " >&6
30005
 
else
30006
 
  
30007
 
    php_cv_crypt_r_style=none
30008
 
    cat >conftest.$ac_ext <<_ACEOF
30009
 
/* confdefs.h.  */
30010
 
_ACEOF
30011
 
cat confdefs.h >>conftest.$ac_ext
30012
 
cat >>conftest.$ac_ext <<_ACEOF
30013
 
/* end confdefs.h.  */
30014
 
 
30015
 
#define _REENTRANT 1
30016
 
#include <crypt.h>
30017
 
 
30018
 
int
30019
 
main ()
30020
 
{
30021
 
 
30022
 
CRYPTD buffer;
30023
 
crypt_r("passwd", "hash", &buffer);
30024
 
 
30025
 
  ;
30026
 
  return 0;
30027
 
}
30028
 
_ACEOF
30029
 
rm -f conftest.$ac_objext
30030
 
if { (ac_try="$ac_compile"
30031
 
case "(($ac_try" in
30032
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30033
 
  *) ac_try_echo=$ac_try;;
30034
 
esac
30035
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30036
 
$as_echo "$ac_try_echo") >&5
30037
 
  (eval "$ac_compile") 2>conftest.er1
30038
 
  ac_status=$?
30039
 
  grep -v '^ *+' conftest.er1 >conftest.err
30040
 
  rm -f conftest.er1
30041
 
  cat conftest.err >&5
30042
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043
 
  (exit $ac_status); } && {
30044
 
         test -z "$ac_c_werror_flag" ||
30045
 
         test ! -s conftest.err
30046
 
       } && test -s conftest.$ac_objext; then
30047
 
  php_cv_crypt_r_style=cryptd
30048
 
else
30049
 
  $as_echo "$as_me: failed program was:" >&5
30050
 
sed 's/^/| /' conftest.$ac_ext >&5
30051
 
 
30052
 
        
30053
 
fi
30054
 
 
30055
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056
 
 
30057
 
    if test "$php_cv_crypt_r_style" = "none"; then
30058
 
      cat >conftest.$ac_ext <<_ACEOF
30059
 
/* confdefs.h.  */
30060
 
_ACEOF
30061
 
cat confdefs.h >>conftest.$ac_ext
30062
 
cat >>conftest.$ac_ext <<_ACEOF
30063
 
/* end confdefs.h.  */
30064
 
 
30065
 
#define _REENTRANT 1
30066
 
#include <crypt.h>
30067
 
 
30068
 
int
30069
 
main ()
30070
 
{
30071
 
 
30072
 
struct crypt_data buffer;
30073
 
crypt_r("passwd", "hash", &buffer);
30074
 
 
30075
 
  ;
30076
 
  return 0;
30077
 
}
30078
 
_ACEOF
30079
 
rm -f conftest.$ac_objext
30080
 
if { (ac_try="$ac_compile"
30081
 
case "(($ac_try" in
30082
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30083
 
  *) ac_try_echo=$ac_try;;
30084
 
esac
30085
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30086
 
$as_echo "$ac_try_echo") >&5
30087
 
  (eval "$ac_compile") 2>conftest.er1
30088
 
  ac_status=$?
30089
 
  grep -v '^ *+' conftest.er1 >conftest.err
30090
 
  rm -f conftest.er1
30091
 
  cat conftest.err >&5
30092
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093
 
  (exit $ac_status); } && {
30094
 
         test -z "$ac_c_werror_flag" ||
30095
 
         test ! -s conftest.err
30096
 
       } && test -s conftest.$ac_objext; then
30097
 
  php_cv_crypt_r_style=struct_crypt_data
30098
 
else
30099
 
  $as_echo "$as_me: failed program was:" >&5
30100
 
sed 's/^/| /' conftest.$ac_ext >&5
30101
 
 
30102
 
        
30103
 
fi
30104
 
 
30105
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30106
 
    fi
30107
 
 
30108
 
    if test "$php_cv_crypt_r_style" = "none"; then
30109
 
      cat >conftest.$ac_ext <<_ACEOF
30110
 
/* confdefs.h.  */
30111
 
_ACEOF
30112
 
cat confdefs.h >>conftest.$ac_ext
30113
 
cat >>conftest.$ac_ext <<_ACEOF
30114
 
/* end confdefs.h.  */
30115
 
 
30116
 
#define _REENTRANT 1
30117
 
#define _GNU_SOURCE
30118
 
#include <crypt.h>
30119
 
 
30120
 
int
30121
 
main ()
30122
 
{
30123
 
 
30124
 
struct crypt_data buffer;
30125
 
crypt_r("passwd", "hash", &buffer);
30126
 
 
30127
 
  ;
30128
 
  return 0;
30129
 
}
30130
 
_ACEOF
30131
 
rm -f conftest.$ac_objext
30132
 
if { (ac_try="$ac_compile"
30133
 
case "(($ac_try" in
30134
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135
 
  *) ac_try_echo=$ac_try;;
30136
 
esac
30137
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30138
 
$as_echo "$ac_try_echo") >&5
30139
 
  (eval "$ac_compile") 2>conftest.er1
30140
 
  ac_status=$?
30141
 
  grep -v '^ *+' conftest.er1 >conftest.err
30142
 
  rm -f conftest.er1
30143
 
  cat conftest.err >&5
30144
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145
 
  (exit $ac_status); } && {
30146
 
         test -z "$ac_c_werror_flag" ||
30147
 
         test ! -s conftest.err
30148
 
       } && test -s conftest.$ac_objext; then
30149
 
  php_cv_crypt_r_style=struct_crypt_data_gnu_source
30150
 
else
30151
 
  $as_echo "$as_me: failed program was:" >&5
30152
 
sed 's/^/| /' conftest.$ac_ext >&5
30153
 
 
30154
 
        
30155
 
fi
30156
 
 
30157
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30158
 
    fi
30159
 
    
30160
 
fi
30161
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_crypt_r_style" >&5
30162
 
$as_echo "$php_cv_crypt_r_style" >&6; }
30163
 
 
30164
 
  if test "$php_cv_crypt_r_style" = "cryptd"; then
30165
 
    
30166
 
cat >>confdefs.h <<\_ACEOF
30167
 
@%:@define CRYPT_R_CRYPTD 1
30168
 
_ACEOF
30169
 
 
30170
 
  fi
30171
 
  if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
30172
 
    
30173
 
cat >>confdefs.h <<\_ACEOF
30174
 
@%:@define CRYPT_R_STRUCT_CRYPT_DATA 1
30175
 
_ACEOF
30176
 
 
30177
 
  fi
30178
 
  if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
30179
 
    
30180
 
cat >>confdefs.h <<\_ACEOF
30181
 
@%:@define CRYPT_R_GNU_SOURCE 1
30182
 
_ACEOF
30183
 
 
30184
 
  fi
30185
 
  if test "$php_cv_crypt_r_style" = "none"; then
30186
 
    { { $as_echo "$as_me:$LINENO: error: Unable to detect data struct used by crypt_r" >&5
30187
 
$as_echo "$as_me: error: Unable to detect data struct used by crypt_r" >&2;}
30188
 
   { (exit 1); exit 1; }; }
30189
 
  fi
30190
 
 
30191
 
fi
30192
 
 
30193
 
 
30194
 
  { $as_echo "$as_me:$LINENO: result: " >&5
30195
 
$as_echo "" >&6; }
30196
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}General settings${T_ME}" >&5
30197
 
$as_echo "${T_MD}General settings${T_ME}" >&6; }
30198
 
 
30199
 
 
30200
 
 
30201
 
@%:@ Check whether --enable- was given.
30202
 
if test "${enable_+set}" = set; then
30203
 
  enableval=$enable_; 
30204
 
fi
30205
 
 
30206
 
 
30207
 
 
30208
 
 
30209
 
php_enable_gcov=no
30210
 
 
30211
 
{ $as_echo "$as_me:$LINENO: checking whether to include gcov symbols" >&5
30212
 
$as_echo_n "checking whether to include gcov symbols... " >&6; }
30213
 
@%:@ Check whether --enable-gcov was given.
30214
 
if test "${enable_gcov+set}" = set; then
30215
 
  enableval=$enable_gcov; PHP_GCOV=$enableval
30216
 
else
30217
 
  
30218
 
  PHP_GCOV=no
30219
 
  
30220
 
 
30221
 
fi
30222
 
 
30223
 
 
30224
 
ext_output=$PHP_GCOV
30225
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30226
 
$as_echo "$ext_output" >&6; }
30227
 
 
30228
 
 
30229
 
 
30230
 
 
30231
 
if test "$PHP_GCOV" = "yes"; then
30232
 
 
30233
 
  if test "$GCC" != "yes"; then
30234
 
    { { $as_echo "$as_me:$LINENO: error: GCC is required for --enable-gcov" >&5
30235
 
$as_echo "$as_me: error: GCC is required for --enable-gcov" >&2;}
30236
 
   { (exit 1); exit 1; }; }
30237
 
  fi
30238
 
  
30239
 
    case `$php_shtool path $CC` in
30240
 
    *ccache*) gcc_ccache=yes;;
30241
 
    *) gcc_ccache=no;;
30242
 
  esac
30243
 
 
30244
 
  if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
30245
 
    { { $as_echo "$as_me:$LINENO: error: ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." >&5
30246
 
$as_echo "$as_me: error: ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." >&2;}
30247
 
   { (exit 1); exit 1; }; }
30248
 
  fi
30249
 
  
30250
 
  ltp_version_list="1.5 1.6 1.7"
30251
 
 
30252
 
  # Extract the first word of "lcov", so it can be a program name with args.
30253
 
set dummy lcov; ac_word=$2
30254
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30255
 
$as_echo_n "checking for $ac_word... " >&6; }
30256
 
if test "${ac_cv_prog_LTP+set}" = set; then
30257
 
  $as_echo_n "(cached) " >&6
30258
 
else
30259
 
  if test -n "$LTP"; then
30260
 
  ac_cv_prog_LTP="$LTP" # Let the user override the test.
30261
 
else
30262
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30263
 
for as_dir in $PATH
30264
 
do
30265
 
  IFS=$as_save_IFS
30266
 
  test -z "$as_dir" && as_dir=.
30267
 
  for ac_exec_ext in '' $ac_executable_extensions; do
30268
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30269
 
    ac_cv_prog_LTP="lcov"
30270
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30271
 
    break 2
30272
 
  fi
30273
 
done
30274
 
done
30275
 
IFS=$as_save_IFS
30276
 
 
30277
 
fi
30278
 
fi
30279
 
LTP=$ac_cv_prog_LTP
30280
 
if test -n "$LTP"; then
30281
 
  { $as_echo "$as_me:$LINENO: result: $LTP" >&5
30282
 
$as_echo "$LTP" >&6; }
30283
 
else
30284
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
30285
 
$as_echo "no" >&6; }
30286
 
fi
30287
 
 
30288
 
 
30289
 
  # Extract the first word of "genhtml", so it can be a program name with args.
30290
 
set dummy genhtml; ac_word=$2
30291
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30292
 
$as_echo_n "checking for $ac_word... " >&6; }
30293
 
if test "${ac_cv_prog_LTP_GENHTML+set}" = set; then
30294
 
  $as_echo_n "(cached) " >&6
30295
 
else
30296
 
  if test -n "$LTP_GENHTML"; then
30297
 
  ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
30298
 
else
30299
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30300
 
for as_dir in $PATH
30301
 
do
30302
 
  IFS=$as_save_IFS
30303
 
  test -z "$as_dir" && as_dir=.
30304
 
  for ac_exec_ext in '' $ac_executable_extensions; do
30305
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30306
 
    ac_cv_prog_LTP_GENHTML="genhtml"
30307
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30308
 
    break 2
30309
 
  fi
30310
 
done
30311
 
done
30312
 
IFS=$as_save_IFS
30313
 
 
30314
 
fi
30315
 
fi
30316
 
LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
30317
 
if test -n "$LTP_GENHTML"; then
30318
 
  { $as_echo "$as_me:$LINENO: result: $LTP_GENHTML" >&5
30319
 
$as_echo "$LTP_GENHTML" >&6; }
30320
 
else
30321
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
30322
 
$as_echo "no" >&6; }
30323
 
fi
30324
 
 
30325
 
 
30326
 
  
30327
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST LTP"
30328
 
 
30329
 
  
30330
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST LTP_GENHTML"
30331
 
 
30332
 
 
30333
 
  if test "$LTP"; then
30334
 
    { $as_echo "$as_me:$LINENO: checking for ltp version" >&5
30335
 
$as_echo_n "checking for ltp version... " >&6; }
30336
 
if test "${php_cv_ltp_version+set}" = set; then
30337
 
  $as_echo_n "(cached) " >&6
30338
 
else
30339
 
  
30340
 
      php_cv_ltp_version=invalid
30341
 
      ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
30342
 
      for ltp_check_version in $ltp_version_list; do
30343
 
        if test "$ltp_version" = "$ltp_check_version"; then
30344
 
          php_cv_ltp_version="$ltp_check_version (ok)"
30345
 
        fi
30346
 
      done
30347
 
    
30348
 
fi
30349
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_ltp_version" >&5
30350
 
$as_echo "$php_cv_ltp_version" >&6; }
30351
 
  else
30352
 
    ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"      
30353
 
    { { $as_echo "$as_me:$LINENO: error: $ltp_msg" >&5
30354
 
$as_echo "$as_me: error: $ltp_msg" >&2;}
30355
 
   { (exit 1); exit 1; }; }
30356
 
  fi
30357
 
 
30358
 
  case $php_cv_ltp_version in
30359
 
    ""|invalid)
30360
 
      ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
30361
 
      { { $as_echo "$as_me:$LINENO: error: $ltp_msg" >&5
30362
 
$as_echo "$as_me: error: $ltp_msg" >&2;}
30363
 
   { (exit 1); exit 1; }; }
30364
 
      LTP="exit 0;"
30365
 
      ;;
30366
 
  esac
30367
 
 
30368
 
  if test -z "$LTP_GENHTML"; then
30369
 
    { { $as_echo "$as_me:$LINENO: error: Could not find genhtml from the LTP package" >&5
30370
 
$as_echo "$as_me: error: Could not find genhtml from the LTP package" >&2;}
30371
 
   { (exit 1); exit 1; }; }
30372
 
  fi
30373
 
 
30374
 
  
30375
 
cat >>confdefs.h <<\_ACEOF
30376
 
@%:@define HAVE_GCOV 1
30377
 
_ACEOF
30378
 
 
30379
 
  
30380
 
  src=$abs_srcdir/Makefile.gcov
30381
 
  ac_srcdir=$abs_srcdir
30382
 
  ac_builddir=$ext_builddir
30383
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
30384
 
 
30385
 
 
30386
 
    
30387
 
  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
30388
 
  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
30389
 
  
30390
 
 
30391
 
    CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
30392
 
  CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
30393
 
fi
30394
 
 
30395
 
 
30396
 
php_enable_debug=no
30397
 
 
30398
 
{ $as_echo "$as_me:$LINENO: checking whether to include debugging symbols" >&5
30399
 
$as_echo_n "checking whether to include debugging symbols... " >&6; }
30400
 
@%:@ Check whether --enable-debug was given.
30401
 
if test "${enable_debug+set}" = set; then
30402
 
  enableval=$enable_debug; PHP_DEBUG=$enableval
30403
 
else
30404
 
  
30405
 
  PHP_DEBUG=no
30406
 
  
30407
 
 
30408
 
fi
30409
 
 
30410
 
 
30411
 
ext_output=$PHP_DEBUG
30412
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30413
 
$as_echo "$ext_output" >&6; }
30414
 
 
30415
 
 
30416
 
 
30417
 
 
30418
 
if test "$PHP_DEBUG" = "yes"; then
30419
 
  PHP_DEBUG=1
30420
 
  ZEND_DEBUG=yes
30421
 
  
30422
 
  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
30423
 
  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
30424
 
  
30425
 
    if test "$GCC" = "yes" || test "$ICC" = "yes"; then
30426
 
    CFLAGS="$CFLAGS -O0"
30427
 
    CXXFLAGS="$CXXFLAGS -g -O0"
30428
 
  fi
30429
 
  if test "$SUNCC" = "yes"; then
30430
 
    if test -n "$auto_cflags"; then
30431
 
      CFLAGS="-g"
30432
 
      CXXFLAGS="-g"
30433
 
    else
30434
 
      CFLAGS="$CFLAGS -g"
30435
 
      CXXFLAGS="$CFLAGS -g"
30436
 
    fi
30437
 
  fi
30438
 
else
30439
 
  PHP_DEBUG=0
30440
 
  ZEND_DEBUG=no
30441
 
fi
30442
 
 
30443
 
 
30444
 
php_with_layout=PHP
30445
 
 
30446
 
{ $as_echo "$as_me:$LINENO: checking layout of installed files" >&5
30447
 
$as_echo_n "checking layout of installed files... " >&6; }
30448
 
 
30449
 
@%:@ Check whether --with-layout was given.
30450
 
if test "${with_layout+set}" = set; then
30451
 
  withval=$with_layout; PHP_LAYOUT=$withval
30452
 
else
30453
 
  
30454
 
  PHP_LAYOUT=PHP
30455
 
  
30456
 
 
30457
 
fi
30458
 
 
30459
 
 
30460
 
ext_output=$PHP_LAYOUT
30461
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30462
 
$as_echo "$ext_output" >&6; }
30463
 
 
30464
 
 
30465
 
 
30466
 
 
30467
 
case $PHP_LAYOUT in
30468
 
  GNU)
30469
 
    oldstyleextdir=no
30470
 
    ;;
30471
 
  *)
30472
 
    oldstyleextdir=yes
30473
 
    ;;
30474
 
esac
30475
 
 
30476
 
 
30477
 
php_with_config_file_path=DEFAULT
30478
 
 
30479
 
{ $as_echo "$as_me:$LINENO: checking path to configuration file" >&5
30480
 
$as_echo_n "checking path to configuration file... " >&6; }
30481
 
 
30482
 
@%:@ Check whether --with-config-file-path was given.
30483
 
if test "${with_config_file_path+set}" = set; then
30484
 
  withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval
30485
 
else
30486
 
  
30487
 
  PHP_CONFIG_FILE_PATH=DEFAULT
30488
 
  
30489
 
 
30490
 
fi
30491
 
 
30492
 
 
30493
 
ext_output=$PHP_CONFIG_FILE_PATH
30494
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30495
 
$as_echo "$ext_output" >&6; }
30496
 
 
30497
 
 
30498
 
 
30499
 
 
30500
 
if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
30501
 
  case $PHP_LAYOUT in
30502
 
    GNU)
30503
 
      PHP_CONFIG_FILE_PATH=$sysconfdir
30504
 
      ;;
30505
 
    *)
30506
 
      PHP_CONFIG_FILE_PATH=$libdir
30507
 
      ;;
30508
 
  esac
30509
 
fi
30510
 
 
30511
 
{ $as_echo "$as_me:$LINENO: checking where to scan for configuration files" >&5
30512
 
$as_echo_n "checking where to scan for configuration files... " >&6; }
30513
 
 
30514
 
php_with_config_file_scan_dir=DEFAULT
30515
 
 
30516
 
 
30517
 
 
30518
 
@%:@ Check whether --with-config-file-scan-dir was given.
30519
 
if test "${with_config_file_scan_dir+set}" = set; then
30520
 
  withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval
30521
 
else
30522
 
  
30523
 
  PHP_CONFIG_FILE_SCAN_DIR=DEFAULT
30524
 
  
30525
 
 
30526
 
fi
30527
 
 
30528
 
 
30529
 
ext_output=$PHP_CONFIG_FILE_SCAN_DIR
30530
 
 
30531
 
 
30532
 
 
30533
 
 
30534
 
if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then
30535
 
  PHP_CONFIG_FILE_SCAN_DIR=
30536
 
fi
30537
 
{ $as_echo "$as_me:$LINENO: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5
30538
 
$as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; }
30539
 
 
30540
 
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
30541
 
 
30542
 
 
30543
 
php_enable_safe_mode=no
30544
 
 
30545
 
{ $as_echo "$as_me:$LINENO: checking whether to enable safe mode by default" >&5
30546
 
$as_echo_n "checking whether to enable safe mode by default... " >&6; }
30547
 
@%:@ Check whether --enable-safe-mode was given.
30548
 
if test "${enable_safe_mode+set}" = set; then
30549
 
  enableval=$enable_safe_mode; PHP_SAFE_MODE=$enableval
30550
 
else
30551
 
  
30552
 
  PHP_SAFE_MODE=no
30553
 
  
30554
 
 
30555
 
fi
30556
 
 
30557
 
 
30558
 
ext_output=$PHP_SAFE_MODE
30559
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30560
 
$as_echo "$ext_output" >&6; }
30561
 
 
30562
 
 
30563
 
 
30564
 
 
30565
 
if test "$PHP_SAFE_MODE" = "yes"; then
30566
 
  
30567
 
cat >>confdefs.h <<\_ACEOF
30568
 
@%:@define PHP_SAFE_MODE 1
30569
 
_ACEOF
30570
 
 
30571
 
else
30572
 
  
30573
 
cat >>confdefs.h <<\_ACEOF
30574
 
@%:@define PHP_SAFE_MODE 0
30575
 
_ACEOF
30576
 
 
30577
 
fi
30578
 
 
30579
 
{ $as_echo "$as_me:$LINENO: checking for safe mode exec dir" >&5
30580
 
$as_echo_n "checking for safe mode exec dir... " >&6; }
30581
 
 
30582
 
php_with_exec_dir=no
30583
 
 
30584
 
 
30585
 
 
30586
 
@%:@ Check whether --with-exec-dir was given.
30587
 
if test "${with_exec_dir+set}" = set; then
30588
 
  withval=$with_exec_dir; PHP_EXEC_DIR=$withval
30589
 
else
30590
 
  
30591
 
  PHP_EXEC_DIR=no
30592
 
  
30593
 
 
30594
 
fi
30595
 
 
30596
 
 
30597
 
ext_output=$PHP_EXEC_DIR
30598
 
 
30599
 
 
30600
 
 
30601
 
 
30602
 
 
30603
 
if test "$PHP_EXEC_DIR" != "no" && test "$PHP_EXEC_DIR" != "yes" ; then
30604
 
  
30605
 
cat >>confdefs.h <<_ACEOF
30606
 
@%:@define PHP_SAFE_MODE_EXEC_DIR "$PHP_EXEC_DIR"
30607
 
_ACEOF
30608
 
 
30609
 
  { $as_echo "$as_me:$LINENO: result: $PHP_EXEC_DIR" >&5
30610
 
$as_echo "$PHP_EXEC_DIR" >&6; }
30611
 
else
30612
 
  
30613
 
cat >>confdefs.h <<\_ACEOF
30614
 
@%:@define PHP_SAFE_MODE_EXEC_DIR "/usr/local/php/bin"
30615
 
_ACEOF
30616
 
 
30617
 
  { $as_echo "$as_me:$LINENO: result: /usr/local/php/bin" >&5
30618
 
$as_echo "/usr/local/php/bin" >&6; }
30619
 
fi
30620
 
 
30621
 
 
30622
 
php_enable_sigchild=no
30623
 
 
30624
 
{ $as_echo "$as_me:$LINENO: checking whether to enable PHP's own SIGCHLD handler" >&5
30625
 
$as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; }
30626
 
@%:@ Check whether --enable-sigchild was given.
30627
 
if test "${enable_sigchild+set}" = set; then
30628
 
  enableval=$enable_sigchild; PHP_SIGCHILD=$enableval
30629
 
else
30630
 
  
30631
 
  PHP_SIGCHILD=no
30632
 
  
30633
 
 
30634
 
fi
30635
 
 
30636
 
 
30637
 
ext_output=$PHP_SIGCHILD
30638
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30639
 
$as_echo "$ext_output" >&6; }
30640
 
 
30641
 
 
30642
 
 
30643
 
 
30644
 
if test "$PHP_SIGCHILD" = "yes"; then
30645
 
  
30646
 
cat >>confdefs.h <<\_ACEOF
30647
 
@%:@define PHP_SIGCHILD 1
30648
 
_ACEOF
30649
 
 
30650
 
else
30651
 
  
30652
 
cat >>confdefs.h <<\_ACEOF
30653
 
@%:@define PHP_SIGCHILD 0
30654
 
_ACEOF
30655
 
 
30656
 
fi
30657
 
 
30658
 
 
30659
 
php_enable_magic_quotes=no
30660
 
 
30661
 
{ $as_echo "$as_me:$LINENO: checking whether to enable magic quotes by default" >&5
30662
 
$as_echo_n "checking whether to enable magic quotes by default... " >&6; }
30663
 
@%:@ Check whether --enable-magic-quotes was given.
30664
 
if test "${enable_magic_quotes+set}" = set; then
30665
 
  enableval=$enable_magic_quotes; PHP_MAGIC_QUOTES=$enableval
30666
 
else
30667
 
  
30668
 
  PHP_MAGIC_QUOTES=no
30669
 
  
30670
 
 
30671
 
fi
30672
 
 
30673
 
 
30674
 
ext_output=$PHP_MAGIC_QUOTES
30675
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30676
 
$as_echo "$ext_output" >&6; }
30677
 
 
30678
 
 
30679
 
 
30680
 
 
30681
 
if test "$PHP_MAGIC_QUOTES" = "yes"; then
30682
 
  
30683
 
cat >>confdefs.h <<\_ACEOF
30684
 
@%:@define MAGIC_QUOTES 1
30685
 
_ACEOF
30686
 
 
30687
 
else
30688
 
  
30689
 
cat >>confdefs.h <<\_ACEOF
30690
 
@%:@define MAGIC_QUOTES 0
30691
 
_ACEOF
30692
 
 
30693
 
fi
30694
 
 
30695
 
 
30696
 
php_enable_libgcc=no
30697
 
 
30698
 
{ $as_echo "$as_me:$LINENO: checking whether to explicitly link against libgcc" >&5
30699
 
$as_echo_n "checking whether to explicitly link against libgcc... " >&6; }
30700
 
@%:@ Check whether --enable-libgcc was given.
30701
 
if test "${enable_libgcc+set}" = set; then
30702
 
  enableval=$enable_libgcc; PHP_LIBGCC=$enableval
30703
 
else
30704
 
  
30705
 
  PHP_LIBGCC=no
30706
 
  
30707
 
 
30708
 
fi
30709
 
 
30710
 
 
30711
 
ext_output=$PHP_LIBGCC
30712
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30713
 
$as_echo "$ext_output" >&6; }
30714
 
 
30715
 
 
30716
 
 
30717
 
 
30718
 
if test "$PHP_LIBGCC" = "yes"; then
30719
 
  
30720
 
  
30721
 
  libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'`
30722
 
  
30723
 
 
30724
 
  if test -z "$libgcc_libpath"; then
30725
 
    { { $as_echo "$as_me:$LINENO: error: Cannot locate libgcc. Make sure that gcc is in your path" >&5
30726
 
$as_echo "$as_me: error: Cannot locate libgcc. Make sure that gcc is in your path" >&2;}
30727
 
   { (exit 1); exit 1; }; }
30728
 
  fi
30729
 
  
30730
 
  if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then
30731
 
    
30732
 
  if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then
30733
 
    ai_p=$libgcc_libpath
30734
 
  else
30735
 
    
30736
 
    ep_dir="`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'`"
30737
 
    
30738
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
30739
 
    ai_p="$ep_realdir/`basename \"$libgcc_libpath\"`"
30740
 
  fi
30741
 
 
30742
 
    
30743
 
      
30744
 
  
30745
 
  
30746
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30747
 
  
30748
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30749
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
30750
 
    eval "LIBPATH$unique=set"
30751
 
    
30752
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30753
 
    LDFLAGS="$LDFLAGS -L$ai_p"
30754
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
30755
 
  
30756
 
  fi
30757
 
 
30758
 
 
30759
 
    
30760
 
  fi
30761
 
 
30762
 
  
30763
 
  
30764
 
  case gcc in
30765
 
  c|c_r|pthread*) ;;
30766
 
  *) 
30767
 
      LIBS="$LIBS -lgcc" 
30768
 
   ;;
30769
 
  esac
30770
 
 
30771
 
 
30772
 
fi
30773
 
 
30774
 
 
30775
 
php_enable_short_tags=yes
30776
 
 
30777
 
{ $as_echo "$as_me:$LINENO: checking whether to enable short tags by default" >&5
30778
 
$as_echo_n "checking whether to enable short tags by default... " >&6; }
30779
 
@%:@ Check whether --enable-short-tags was given.
30780
 
if test "${enable_short_tags+set}" = set; then
30781
 
  enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval
30782
 
else
30783
 
  
30784
 
  PHP_SHORT_TAGS=yes
30785
 
  
30786
 
 
30787
 
fi
30788
 
 
30789
 
 
30790
 
ext_output=$PHP_SHORT_TAGS
30791
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30792
 
$as_echo "$ext_output" >&6; }
30793
 
 
30794
 
 
30795
 
 
30796
 
 
30797
 
if test "$PHP_SHORT_TAGS" = "yes"; then
30798
 
  
30799
 
cat >>confdefs.h <<\_ACEOF
30800
 
@%:@define DEFAULT_SHORT_OPEN_TAG "1"
30801
 
_ACEOF
30802
 
 
30803
 
else
30804
 
  
30805
 
cat >>confdefs.h <<\_ACEOF
30806
 
@%:@define DEFAULT_SHORT_OPEN_TAG "0"
30807
 
_ACEOF
30808
 
 
30809
 
fi
30810
 
 
30811
 
 
30812
 
php_enable_dmalloc=no
30813
 
 
30814
 
{ $as_echo "$as_me:$LINENO: checking whether to enable dmalloc" >&5
30815
 
$as_echo_n "checking whether to enable dmalloc... " >&6; }
30816
 
@%:@ Check whether --enable-dmalloc was given.
30817
 
if test "${enable_dmalloc+set}" = set; then
30818
 
  enableval=$enable_dmalloc; PHP_DMALLOC=$enableval
30819
 
else
30820
 
  
30821
 
  PHP_DMALLOC=no
30822
 
  
30823
 
 
30824
 
fi
30825
 
 
30826
 
 
30827
 
ext_output=$PHP_DMALLOC
30828
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30829
 
$as_echo "$ext_output" >&6; }
30830
 
 
30831
 
 
30832
 
 
30833
 
 
30834
 
if test "$PHP_DMALLOC" = "yes"; then
30835
 
  { $as_echo "$as_me:$LINENO: checking for dmalloc_error in -ldmalloc" >&5
30836
 
$as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; }
30837
 
if test "${ac_cv_lib_dmalloc_dmalloc_error+set}" = set; then
30838
 
  $as_echo_n "(cached) " >&6
30839
 
else
30840
 
  ac_check_lib_save_LIBS=$LIBS
30841
 
LIBS="-ldmalloc  $LIBS"
30842
 
cat >conftest.$ac_ext <<_ACEOF
30843
 
/* confdefs.h.  */
30844
 
_ACEOF
30845
 
cat confdefs.h >>conftest.$ac_ext
30846
 
cat >>conftest.$ac_ext <<_ACEOF
30847
 
/* end confdefs.h.  */
30848
 
 
30849
 
/* Override any GCC internal prototype to avoid an error.
30850
 
   Use char because int might match the return type of a GCC
30851
 
   builtin and then its argument prototype would still apply.  */
30852
 
#ifdef __cplusplus
30853
 
extern "C"
30854
 
#endif
30855
 
char dmalloc_error ();
30856
 
int
30857
 
main ()
30858
 
{
30859
 
return dmalloc_error ();
30860
 
  ;
30861
 
  return 0;
30862
 
}
30863
 
_ACEOF
30864
 
rm -f conftest.$ac_objext conftest$ac_exeext
30865
 
if { (ac_try="$ac_link"
30866
 
case "(($ac_try" in
30867
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30868
 
  *) ac_try_echo=$ac_try;;
30869
 
esac
30870
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30871
 
$as_echo "$ac_try_echo") >&5
30872
 
  (eval "$ac_link") 2>conftest.er1
30873
 
  ac_status=$?
30874
 
  grep -v '^ *+' conftest.er1 >conftest.err
30875
 
  rm -f conftest.er1
30876
 
  cat conftest.err >&5
30877
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878
 
  (exit $ac_status); } && {
30879
 
         test -z "$ac_c_werror_flag" ||
30880
 
         test ! -s conftest.err
30881
 
       } && test -s conftest$ac_exeext && {
30882
 
         test "$cross_compiling" = yes ||
30883
 
         $as_test_x conftest$ac_exeext
30884
 
       }; then
30885
 
  ac_cv_lib_dmalloc_dmalloc_error=yes
30886
 
else
30887
 
  $as_echo "$as_me: failed program was:" >&5
30888
 
sed 's/^/| /' conftest.$ac_ext >&5
30889
 
 
30890
 
        ac_cv_lib_dmalloc_dmalloc_error=no
30891
 
fi
30892
 
 
30893
 
rm -rf conftest.dSYM
30894
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30895
 
      conftest$ac_exeext conftest.$ac_ext
30896
 
LIBS=$ac_check_lib_save_LIBS
30897
 
fi
30898
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5
30899
 
$as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; }
30900
 
if test "x$ac_cv_lib_dmalloc_dmalloc_error" = x""yes; then
30901
 
  
30902
 
    
30903
 
  
30904
 
  case dmalloc in
30905
 
  c|c_r|pthread*) ;;
30906
 
  *) 
30907
 
      LIBS="-ldmalloc $LIBS" 
30908
 
   ;;
30909
 
  esac
30910
 
 
30911
 
 
30912
 
    
30913
 
cat >>confdefs.h <<\_ACEOF
30914
 
@%:@define HAVE_DMALLOC 1
30915
 
_ACEOF
30916
 
 
30917
 
    CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
30918
 
  
30919
 
else
30920
 
  
30921
 
    { { $as_echo "$as_me:$LINENO: error: Problem with enabling dmalloc. Please check config.log for details." >&5
30922
 
$as_echo "$as_me: error: Problem with enabling dmalloc. Please check config.log for details." >&2;}
30923
 
   { (exit 1); exit 1; }; }
30924
 
  
30925
 
fi
30926
 
 
30927
 
fi
30928
 
 
30929
 
 
30930
 
php_enable_ipv6=yes
30931
 
 
30932
 
{ $as_echo "$as_me:$LINENO: checking whether to enable IPv6 support" >&5
30933
 
$as_echo_n "checking whether to enable IPv6 support... " >&6; }
30934
 
@%:@ Check whether --enable-ipv6 was given.
30935
 
if test "${enable_ipv6+set}" = set; then
30936
 
  enableval=$enable_ipv6; PHP_IPV6=$enableval
30937
 
else
30938
 
  
30939
 
  PHP_IPV6=yes
30940
 
  
30941
 
 
30942
 
fi
30943
 
 
30944
 
 
30945
 
ext_output=$PHP_IPV6
30946
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
30947
 
$as_echo "$ext_output" >&6; }
30948
 
 
30949
 
 
30950
 
 
30951
 
 
30952
 
if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
30953
 
  
30954
 
cat >>confdefs.h <<\_ACEOF
30955
 
@%:@define HAVE_IPV6 1
30956
 
_ACEOF
30957
 
 
30958
 
fi
30959
 
 
30960
 
{ $as_echo "$as_me:$LINENO: checking how big to make fd sets" >&5
30961
 
$as_echo_n "checking how big to make fd sets... " >&6; }
30962
 
 
30963
 
php_enable_fd_setsize=no
30964
 
 
30965
 
 
30966
 
@%:@ Check whether --enable-fd-setsize was given.
30967
 
if test "${enable_fd_setsize+set}" = set; then
30968
 
  enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval
30969
 
else
30970
 
  
30971
 
  PHP_FD_SETSIZE=no
30972
 
  
30973
 
 
30974
 
fi
30975
 
 
30976
 
 
30977
 
ext_output=$PHP_FD_SETSIZE
30978
 
 
30979
 
 
30980
 
 
30981
 
 
30982
 
 
30983
 
if test "$PHP_FD_SETSIZE" != "no"; then
30984
 
  if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
30985
 
    CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
30986
 
    { $as_echo "$as_me:$LINENO: result: using $PHP_FD_SETSIZE" >&5
30987
 
$as_echo "using $PHP_FD_SETSIZE" >&6; }
30988
 
  else
30989
 
    { { $as_echo "$as_me:$LINENO: error: Invalid value passed to --enable-fd-setsize!" >&5
30990
 
$as_echo "$as_me: error: Invalid value passed to --enable-fd-setsize!" >&2;}
30991
 
   { (exit 1); exit 1; }; }
30992
 
  fi
30993
 
else
30994
 
  { $as_echo "$as_me:$LINENO: result: using system default" >&5
30995
 
$as_echo "using system default" >&6; }
30996
 
fi
30997
 
 
30998
 
 
30999
 
@%:@ Check whether --enable- was given.
31000
 
if test "${enable_+set}" = set; then
31001
 
  enableval=$enable_; 
31002
 
fi
31003
 
 
31004
 
 
31005
 
 
31006
 
 
31007
 
  { $as_echo "$as_me:$LINENO: result: " >&5
31008
 
$as_echo "" >&6; }
31009
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Configuring extensions${T_ME}" >&5
31010
 
$as_echo "${T_MD}Configuring extensions${T_ME}" >&6; }
31011
 
 
31012
 
 
31013
 
 
31014
 
@%:@ Check whether --enable-all was given.
31015
 
if test "${enable_all+set}" = set; then
31016
 
  enableval=$enable_all; 
31017
 
  PHP_ENABLE_ALL=$enableval
31018
 
 
31019
 
fi
31020
 
 
31021
 
 
31022
 
# reading config stubs
31023
 
 
31024
 
 
31025
 
 
31026
 
 
31027
 
# The cast to long int works around a bug in the HP C Compiler
31028
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31029
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31030
 
# This bug is HP SR number 8606223364.
31031
 
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
31032
 
$as_echo_n "checking size of long... " >&6; }
31033
 
if test "${ac_cv_sizeof_long+set}" = set; then
31034
 
  $as_echo_n "(cached) " >&6
31035
 
else
31036
 
  if test "$cross_compiling" = yes; then
31037
 
  # Depending upon the size, compute the lo and hi bounds.
31038
 
cat >conftest.$ac_ext <<_ACEOF
31039
 
/* confdefs.h.  */
31040
 
_ACEOF
31041
 
cat confdefs.h >>conftest.$ac_ext
31042
 
cat >>conftest.$ac_ext <<_ACEOF
31043
 
/* end confdefs.h.  */
31044
 
$ac_includes_default
31045
 
int
31046
 
main ()
31047
 
{
31048
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@;
31049
 
test_array @<:@0@:>@ = 0
31050
 
 
31051
 
  ;
31052
 
  return 0;
31053
 
}
31054
 
_ACEOF
31055
 
rm -f conftest.$ac_objext
31056
 
if { (ac_try="$ac_compile"
31057
 
case "(($ac_try" in
31058
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059
 
  *) ac_try_echo=$ac_try;;
31060
 
esac
31061
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31062
 
$as_echo "$ac_try_echo") >&5
31063
 
  (eval "$ac_compile") 2>conftest.er1
31064
 
  ac_status=$?
31065
 
  grep -v '^ *+' conftest.er1 >conftest.err
31066
 
  rm -f conftest.er1
31067
 
  cat conftest.err >&5
31068
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069
 
  (exit $ac_status); } && {
31070
 
         test -z "$ac_c_werror_flag" ||
31071
 
         test ! -s conftest.err
31072
 
       } && test -s conftest.$ac_objext; then
31073
 
  ac_lo=0 ac_mid=0
31074
 
  while :; do
31075
 
    cat >conftest.$ac_ext <<_ACEOF
31076
 
/* confdefs.h.  */
31077
 
_ACEOF
31078
 
cat confdefs.h >>conftest.$ac_ext
31079
 
cat >>conftest.$ac_ext <<_ACEOF
31080
 
/* end confdefs.h.  */
31081
 
$ac_includes_default
31082
 
int
31083
 
main ()
31084
 
{
31085
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
31086
 
test_array @<:@0@:>@ = 0
31087
 
 
31088
 
  ;
31089
 
  return 0;
31090
 
}
31091
 
_ACEOF
31092
 
rm -f conftest.$ac_objext
31093
 
if { (ac_try="$ac_compile"
31094
 
case "(($ac_try" in
31095
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096
 
  *) ac_try_echo=$ac_try;;
31097
 
esac
31098
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31099
 
$as_echo "$ac_try_echo") >&5
31100
 
  (eval "$ac_compile") 2>conftest.er1
31101
 
  ac_status=$?
31102
 
  grep -v '^ *+' conftest.er1 >conftest.err
31103
 
  rm -f conftest.er1
31104
 
  cat conftest.err >&5
31105
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106
 
  (exit $ac_status); } && {
31107
 
         test -z "$ac_c_werror_flag" ||
31108
 
         test ! -s conftest.err
31109
 
       } && test -s conftest.$ac_objext; then
31110
 
  ac_hi=$ac_mid; break
31111
 
else
31112
 
  $as_echo "$as_me: failed program was:" >&5
31113
 
sed 's/^/| /' conftest.$ac_ext >&5
31114
 
 
31115
 
        ac_lo=`expr $ac_mid + 1`
31116
 
                        if test $ac_lo -le $ac_mid; then
31117
 
                          ac_lo= ac_hi=
31118
 
                          break
31119
 
                        fi
31120
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
31121
 
fi
31122
 
 
31123
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31124
 
  done
31125
 
else
31126
 
  $as_echo "$as_me: failed program was:" >&5
31127
 
sed 's/^/| /' conftest.$ac_ext >&5
31128
 
 
31129
 
        cat >conftest.$ac_ext <<_ACEOF
31130
 
/* confdefs.h.  */
31131
 
_ACEOF
31132
 
cat confdefs.h >>conftest.$ac_ext
31133
 
cat >>conftest.$ac_ext <<_ACEOF
31134
 
/* end confdefs.h.  */
31135
 
$ac_includes_default
31136
 
int
31137
 
main ()
31138
 
{
31139
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@;
31140
 
test_array @<:@0@:>@ = 0
31141
 
 
31142
 
  ;
31143
 
  return 0;
31144
 
}
31145
 
_ACEOF
31146
 
rm -f conftest.$ac_objext
31147
 
if { (ac_try="$ac_compile"
31148
 
case "(($ac_try" in
31149
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31150
 
  *) ac_try_echo=$ac_try;;
31151
 
esac
31152
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31153
 
$as_echo "$ac_try_echo") >&5
31154
 
  (eval "$ac_compile") 2>conftest.er1
31155
 
  ac_status=$?
31156
 
  grep -v '^ *+' conftest.er1 >conftest.err
31157
 
  rm -f conftest.er1
31158
 
  cat conftest.err >&5
31159
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160
 
  (exit $ac_status); } && {
31161
 
         test -z "$ac_c_werror_flag" ||
31162
 
         test ! -s conftest.err
31163
 
       } && test -s conftest.$ac_objext; then
31164
 
  ac_hi=-1 ac_mid=-1
31165
 
  while :; do
31166
 
    cat >conftest.$ac_ext <<_ACEOF
31167
 
/* confdefs.h.  */
31168
 
_ACEOF
31169
 
cat confdefs.h >>conftest.$ac_ext
31170
 
cat >>conftest.$ac_ext <<_ACEOF
31171
 
/* end confdefs.h.  */
31172
 
$ac_includes_default
31173
 
int
31174
 
main ()
31175
 
{
31176
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@;
31177
 
test_array @<:@0@:>@ = 0
31178
 
 
31179
 
  ;
31180
 
  return 0;
31181
 
}
31182
 
_ACEOF
31183
 
rm -f conftest.$ac_objext
31184
 
if { (ac_try="$ac_compile"
31185
 
case "(($ac_try" in
31186
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187
 
  *) ac_try_echo=$ac_try;;
31188
 
esac
31189
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31190
 
$as_echo "$ac_try_echo") >&5
31191
 
  (eval "$ac_compile") 2>conftest.er1
31192
 
  ac_status=$?
31193
 
  grep -v '^ *+' conftest.er1 >conftest.err
31194
 
  rm -f conftest.er1
31195
 
  cat conftest.err >&5
31196
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197
 
  (exit $ac_status); } && {
31198
 
         test -z "$ac_c_werror_flag" ||
31199
 
         test ! -s conftest.err
31200
 
       } && test -s conftest.$ac_objext; then
31201
 
  ac_lo=$ac_mid; break
31202
 
else
31203
 
  $as_echo "$as_me: failed program was:" >&5
31204
 
sed 's/^/| /' conftest.$ac_ext >&5
31205
 
 
31206
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
31207
 
                        if test $ac_mid -le $ac_hi; then
31208
 
                          ac_lo= ac_hi=
31209
 
                          break
31210
 
                        fi
31211
 
                        ac_mid=`expr 2 '*' $ac_mid`
31212
 
fi
31213
 
 
31214
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31215
 
  done
31216
 
else
31217
 
  $as_echo "$as_me: failed program was:" >&5
31218
 
sed 's/^/| /' conftest.$ac_ext >&5
31219
 
 
31220
 
        ac_lo= ac_hi=
31221
 
fi
31222
 
 
31223
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31224
 
fi
31225
 
 
31226
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31227
 
# Binary search between lo and hi bounds.
31228
 
while test "x$ac_lo" != "x$ac_hi"; do
31229
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31230
 
  cat >conftest.$ac_ext <<_ACEOF
31231
 
/* confdefs.h.  */
31232
 
_ACEOF
31233
 
cat confdefs.h >>conftest.$ac_ext
31234
 
cat >>conftest.$ac_ext <<_ACEOF
31235
 
/* end confdefs.h.  */
31236
 
$ac_includes_default
31237
 
int
31238
 
main ()
31239
 
{
31240
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
31241
 
test_array @<:@0@:>@ = 0
31242
 
 
31243
 
  ;
31244
 
  return 0;
31245
 
}
31246
 
_ACEOF
31247
 
rm -f conftest.$ac_objext
31248
 
if { (ac_try="$ac_compile"
31249
 
case "(($ac_try" in
31250
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251
 
  *) ac_try_echo=$ac_try;;
31252
 
esac
31253
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31254
 
$as_echo "$ac_try_echo") >&5
31255
 
  (eval "$ac_compile") 2>conftest.er1
31256
 
  ac_status=$?
31257
 
  grep -v '^ *+' conftest.er1 >conftest.err
31258
 
  rm -f conftest.er1
31259
 
  cat conftest.err >&5
31260
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261
 
  (exit $ac_status); } && {
31262
 
         test -z "$ac_c_werror_flag" ||
31263
 
         test ! -s conftest.err
31264
 
       } && test -s conftest.$ac_objext; then
31265
 
  ac_hi=$ac_mid
31266
 
else
31267
 
  $as_echo "$as_me: failed program was:" >&5
31268
 
sed 's/^/| /' conftest.$ac_ext >&5
31269
 
 
31270
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
31271
 
fi
31272
 
 
31273
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31274
 
done
31275
 
case $ac_lo in
31276
 
?*) ac_cv_sizeof_long=$ac_lo;;
31277
 
'') if test "$ac_cv_type_long" = yes; then
31278
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31279
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31280
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
31281
 
See \`config.log' for more details." >&5
31282
 
$as_echo "$as_me: error: cannot compute sizeof (long)
31283
 
See \`config.log' for more details." >&2;}
31284
 
   { (exit 77); exit 77; }; }; }
31285
 
   else
31286
 
     ac_cv_sizeof_long=0
31287
 
   fi ;;
31288
 
esac
31289
 
else
31290
 
  cat >conftest.$ac_ext <<_ACEOF
31291
 
/* confdefs.h.  */
31292
 
_ACEOF
31293
 
cat confdefs.h >>conftest.$ac_ext
31294
 
cat >>conftest.$ac_ext <<_ACEOF
31295
 
/* end confdefs.h.  */
31296
 
$ac_includes_default
31297
 
static long int longval () { return (long int) (sizeof (long)); }
31298
 
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
31299
 
@%:@include <stdio.h>
31300
 
@%:@include <stdlib.h>
31301
 
int
31302
 
main ()
31303
 
{
31304
 
 
31305
 
  FILE *f = fopen ("conftest.val", "w");
31306
 
  if (! f)
31307
 
    return 1;
31308
 
  if (((long int) (sizeof (long))) < 0)
31309
 
    {
31310
 
      long int i = longval ();
31311
 
      if (i != ((long int) (sizeof (long))))
31312
 
        return 1;
31313
 
      fprintf (f, "%ld", i);
31314
 
    }
31315
 
  else
31316
 
    {
31317
 
      unsigned long int i = ulongval ();
31318
 
      if (i != ((long int) (sizeof (long))))
31319
 
        return 1;
31320
 
      fprintf (f, "%lu", i);
31321
 
    }
31322
 
  /* Do not output a trailing newline, as this causes \r\n confusion
31323
 
     on some platforms.  */
31324
 
  return ferror (f) || fclose (f) != 0;
31325
 
 
31326
 
  ;
31327
 
  return 0;
31328
 
}
31329
 
_ACEOF
31330
 
rm -f conftest$ac_exeext
31331
 
if { (ac_try="$ac_link"
31332
 
case "(($ac_try" in
31333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31334
 
  *) ac_try_echo=$ac_try;;
31335
 
esac
31336
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31337
 
$as_echo "$ac_try_echo") >&5
31338
 
  (eval "$ac_link") 2>&5
31339
 
  ac_status=$?
31340
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31342
 
  { (case "(($ac_try" in
31343
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344
 
  *) ac_try_echo=$ac_try;;
31345
 
esac
31346
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31347
 
$as_echo "$ac_try_echo") >&5
31348
 
  (eval "$ac_try") 2>&5
31349
 
  ac_status=$?
31350
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351
 
  (exit $ac_status); }; }; then
31352
 
  ac_cv_sizeof_long=`cat conftest.val`
31353
 
else
31354
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
31355
 
$as_echo "$as_me: failed program was:" >&5
31356
 
sed 's/^/| /' conftest.$ac_ext >&5
31357
 
 
31358
 
( exit $ac_status )
31359
 
if test "$ac_cv_type_long" = yes; then
31360
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31361
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31362
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
31363
 
See \`config.log' for more details." >&5
31364
 
$as_echo "$as_me: error: cannot compute sizeof (long)
31365
 
See \`config.log' for more details." >&2;}
31366
 
   { (exit 77); exit 77; }; }; }
31367
 
   else
31368
 
     ac_cv_sizeof_long=0
31369
 
   fi
31370
 
fi
31371
 
rm -rf conftest.dSYM
31372
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31373
 
fi
31374
 
rm -f conftest.val
31375
 
fi
31376
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
31377
 
$as_echo "$ac_cv_sizeof_long" >&6; }
31378
 
 
31379
 
 
31380
 
 
31381
 
cat >>confdefs.h <<_ACEOF
31382
 
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
31383
 
_ACEOF
31384
 
 
31385
 
 
31386
 
# The cast to long int works around a bug in the HP C Compiler
31387
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31388
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31389
 
# This bug is HP SR number 8606223364.
31390
 
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
31391
 
$as_echo_n "checking size of int... " >&6; }
31392
 
if test "${ac_cv_sizeof_int+set}" = set; then
31393
 
  $as_echo_n "(cached) " >&6
31394
 
else
31395
 
  if test "$cross_compiling" = yes; then
31396
 
  # Depending upon the size, compute the lo and hi bounds.
31397
 
cat >conftest.$ac_ext <<_ACEOF
31398
 
/* confdefs.h.  */
31399
 
_ACEOF
31400
 
cat confdefs.h >>conftest.$ac_ext
31401
 
cat >>conftest.$ac_ext <<_ACEOF
31402
 
/* end confdefs.h.  */
31403
 
$ac_includes_default
31404
 
int
31405
 
main ()
31406
 
{
31407
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= 0)@:>@;
31408
 
test_array @<:@0@:>@ = 0
31409
 
 
31410
 
  ;
31411
 
  return 0;
31412
 
}
31413
 
_ACEOF
31414
 
rm -f conftest.$ac_objext
31415
 
if { (ac_try="$ac_compile"
31416
 
case "(($ac_try" in
31417
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418
 
  *) ac_try_echo=$ac_try;;
31419
 
esac
31420
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31421
 
$as_echo "$ac_try_echo") >&5
31422
 
  (eval "$ac_compile") 2>conftest.er1
31423
 
  ac_status=$?
31424
 
  grep -v '^ *+' conftest.er1 >conftest.err
31425
 
  rm -f conftest.er1
31426
 
  cat conftest.err >&5
31427
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428
 
  (exit $ac_status); } && {
31429
 
         test -z "$ac_c_werror_flag" ||
31430
 
         test ! -s conftest.err
31431
 
       } && test -s conftest.$ac_objext; then
31432
 
  ac_lo=0 ac_mid=0
31433
 
  while :; do
31434
 
    cat >conftest.$ac_ext <<_ACEOF
31435
 
/* confdefs.h.  */
31436
 
_ACEOF
31437
 
cat confdefs.h >>conftest.$ac_ext
31438
 
cat >>conftest.$ac_ext <<_ACEOF
31439
 
/* end confdefs.h.  */
31440
 
$ac_includes_default
31441
 
int
31442
 
main ()
31443
 
{
31444
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
31445
 
test_array @<:@0@:>@ = 0
31446
 
 
31447
 
  ;
31448
 
  return 0;
31449
 
}
31450
 
_ACEOF
31451
 
rm -f conftest.$ac_objext
31452
 
if { (ac_try="$ac_compile"
31453
 
case "(($ac_try" in
31454
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455
 
  *) ac_try_echo=$ac_try;;
31456
 
esac
31457
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31458
 
$as_echo "$ac_try_echo") >&5
31459
 
  (eval "$ac_compile") 2>conftest.er1
31460
 
  ac_status=$?
31461
 
  grep -v '^ *+' conftest.er1 >conftest.err
31462
 
  rm -f conftest.er1
31463
 
  cat conftest.err >&5
31464
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465
 
  (exit $ac_status); } && {
31466
 
         test -z "$ac_c_werror_flag" ||
31467
 
         test ! -s conftest.err
31468
 
       } && test -s conftest.$ac_objext; then
31469
 
  ac_hi=$ac_mid; break
31470
 
else
31471
 
  $as_echo "$as_me: failed program was:" >&5
31472
 
sed 's/^/| /' conftest.$ac_ext >&5
31473
 
 
31474
 
        ac_lo=`expr $ac_mid + 1`
31475
 
                        if test $ac_lo -le $ac_mid; then
31476
 
                          ac_lo= ac_hi=
31477
 
                          break
31478
 
                        fi
31479
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
31480
 
fi
31481
 
 
31482
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31483
 
  done
31484
 
else
31485
 
  $as_echo "$as_me: failed program was:" >&5
31486
 
sed 's/^/| /' conftest.$ac_ext >&5
31487
 
 
31488
 
        cat >conftest.$ac_ext <<_ACEOF
31489
 
/* confdefs.h.  */
31490
 
_ACEOF
31491
 
cat confdefs.h >>conftest.$ac_ext
31492
 
cat >>conftest.$ac_ext <<_ACEOF
31493
 
/* end confdefs.h.  */
31494
 
$ac_includes_default
31495
 
int
31496
 
main ()
31497
 
{
31498
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) < 0)@:>@;
31499
 
test_array @<:@0@:>@ = 0
31500
 
 
31501
 
  ;
31502
 
  return 0;
31503
 
}
31504
 
_ACEOF
31505
 
rm -f conftest.$ac_objext
31506
 
if { (ac_try="$ac_compile"
31507
 
case "(($ac_try" in
31508
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509
 
  *) ac_try_echo=$ac_try;;
31510
 
esac
31511
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31512
 
$as_echo "$ac_try_echo") >&5
31513
 
  (eval "$ac_compile") 2>conftest.er1
31514
 
  ac_status=$?
31515
 
  grep -v '^ *+' conftest.er1 >conftest.err
31516
 
  rm -f conftest.er1
31517
 
  cat conftest.err >&5
31518
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31519
 
  (exit $ac_status); } && {
31520
 
         test -z "$ac_c_werror_flag" ||
31521
 
         test ! -s conftest.err
31522
 
       } && test -s conftest.$ac_objext; then
31523
 
  ac_hi=-1 ac_mid=-1
31524
 
  while :; do
31525
 
    cat >conftest.$ac_ext <<_ACEOF
31526
 
/* confdefs.h.  */
31527
 
_ACEOF
31528
 
cat confdefs.h >>conftest.$ac_ext
31529
 
cat >>conftest.$ac_ext <<_ACEOF
31530
 
/* end confdefs.h.  */
31531
 
$ac_includes_default
31532
 
int
31533
 
main ()
31534
 
{
31535
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)@:>@;
31536
 
test_array @<:@0@:>@ = 0
31537
 
 
31538
 
  ;
31539
 
  return 0;
31540
 
}
31541
 
_ACEOF
31542
 
rm -f conftest.$ac_objext
31543
 
if { (ac_try="$ac_compile"
31544
 
case "(($ac_try" in
31545
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31546
 
  *) ac_try_echo=$ac_try;;
31547
 
esac
31548
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31549
 
$as_echo "$ac_try_echo") >&5
31550
 
  (eval "$ac_compile") 2>conftest.er1
31551
 
  ac_status=$?
31552
 
  grep -v '^ *+' conftest.er1 >conftest.err
31553
 
  rm -f conftest.er1
31554
 
  cat conftest.err >&5
31555
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556
 
  (exit $ac_status); } && {
31557
 
         test -z "$ac_c_werror_flag" ||
31558
 
         test ! -s conftest.err
31559
 
       } && test -s conftest.$ac_objext; then
31560
 
  ac_lo=$ac_mid; break
31561
 
else
31562
 
  $as_echo "$as_me: failed program was:" >&5
31563
 
sed 's/^/| /' conftest.$ac_ext >&5
31564
 
 
31565
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
31566
 
                        if test $ac_mid -le $ac_hi; then
31567
 
                          ac_lo= ac_hi=
31568
 
                          break
31569
 
                        fi
31570
 
                        ac_mid=`expr 2 '*' $ac_mid`
31571
 
fi
31572
 
 
31573
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31574
 
  done
31575
 
else
31576
 
  $as_echo "$as_me: failed program was:" >&5
31577
 
sed 's/^/| /' conftest.$ac_ext >&5
31578
 
 
31579
 
        ac_lo= ac_hi=
31580
 
fi
31581
 
 
31582
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31583
 
fi
31584
 
 
31585
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31586
 
# Binary search between lo and hi bounds.
31587
 
while test "x$ac_lo" != "x$ac_hi"; do
31588
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31589
 
  cat >conftest.$ac_ext <<_ACEOF
31590
 
/* confdefs.h.  */
31591
 
_ACEOF
31592
 
cat confdefs.h >>conftest.$ac_ext
31593
 
cat >>conftest.$ac_ext <<_ACEOF
31594
 
/* end confdefs.h.  */
31595
 
$ac_includes_default
31596
 
int
31597
 
main ()
31598
 
{
31599
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
31600
 
test_array @<:@0@:>@ = 0
31601
 
 
31602
 
  ;
31603
 
  return 0;
31604
 
}
31605
 
_ACEOF
31606
 
rm -f conftest.$ac_objext
31607
 
if { (ac_try="$ac_compile"
31608
 
case "(($ac_try" in
31609
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610
 
  *) ac_try_echo=$ac_try;;
31611
 
esac
31612
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31613
 
$as_echo "$ac_try_echo") >&5
31614
 
  (eval "$ac_compile") 2>conftest.er1
31615
 
  ac_status=$?
31616
 
  grep -v '^ *+' conftest.er1 >conftest.err
31617
 
  rm -f conftest.er1
31618
 
  cat conftest.err >&5
31619
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620
 
  (exit $ac_status); } && {
31621
 
         test -z "$ac_c_werror_flag" ||
31622
 
         test ! -s conftest.err
31623
 
       } && test -s conftest.$ac_objext; then
31624
 
  ac_hi=$ac_mid
31625
 
else
31626
 
  $as_echo "$as_me: failed program was:" >&5
31627
 
sed 's/^/| /' conftest.$ac_ext >&5
31628
 
 
31629
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
31630
 
fi
31631
 
 
31632
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31633
 
done
31634
 
case $ac_lo in
31635
 
?*) ac_cv_sizeof_int=$ac_lo;;
31636
 
'') if test "$ac_cv_type_int" = yes; then
31637
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31638
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31639
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
31640
 
See \`config.log' for more details." >&5
31641
 
$as_echo "$as_me: error: cannot compute sizeof (int)
31642
 
See \`config.log' for more details." >&2;}
31643
 
   { (exit 77); exit 77; }; }; }
31644
 
   else
31645
 
     ac_cv_sizeof_int=0
31646
 
   fi ;;
31647
 
esac
31648
 
else
31649
 
  cat >conftest.$ac_ext <<_ACEOF
31650
 
/* confdefs.h.  */
31651
 
_ACEOF
31652
 
cat confdefs.h >>conftest.$ac_ext
31653
 
cat >>conftest.$ac_ext <<_ACEOF
31654
 
/* end confdefs.h.  */
31655
 
$ac_includes_default
31656
 
static long int longval () { return (long int) (sizeof (int)); }
31657
 
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
31658
 
@%:@include <stdio.h>
31659
 
@%:@include <stdlib.h>
31660
 
int
31661
 
main ()
31662
 
{
31663
 
 
31664
 
  FILE *f = fopen ("conftest.val", "w");
31665
 
  if (! f)
31666
 
    return 1;
31667
 
  if (((long int) (sizeof (int))) < 0)
31668
 
    {
31669
 
      long int i = longval ();
31670
 
      if (i != ((long int) (sizeof (int))))
31671
 
        return 1;
31672
 
      fprintf (f, "%ld", i);
31673
 
    }
31674
 
  else
31675
 
    {
31676
 
      unsigned long int i = ulongval ();
31677
 
      if (i != ((long int) (sizeof (int))))
31678
 
        return 1;
31679
 
      fprintf (f, "%lu", i);
31680
 
    }
31681
 
  /* Do not output a trailing newline, as this causes \r\n confusion
31682
 
     on some platforms.  */
31683
 
  return ferror (f) || fclose (f) != 0;
31684
 
 
31685
 
  ;
31686
 
  return 0;
31687
 
}
31688
 
_ACEOF
31689
 
rm -f conftest$ac_exeext
31690
 
if { (ac_try="$ac_link"
31691
 
case "(($ac_try" in
31692
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31693
 
  *) ac_try_echo=$ac_try;;
31694
 
esac
31695
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31696
 
$as_echo "$ac_try_echo") >&5
31697
 
  (eval "$ac_link") 2>&5
31698
 
  ac_status=$?
31699
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31701
 
  { (case "(($ac_try" in
31702
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31703
 
  *) ac_try_echo=$ac_try;;
31704
 
esac
31705
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31706
 
$as_echo "$ac_try_echo") >&5
31707
 
  (eval "$ac_try") 2>&5
31708
 
  ac_status=$?
31709
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710
 
  (exit $ac_status); }; }; then
31711
 
  ac_cv_sizeof_int=`cat conftest.val`
31712
 
else
31713
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
31714
 
$as_echo "$as_me: failed program was:" >&5
31715
 
sed 's/^/| /' conftest.$ac_ext >&5
31716
 
 
31717
 
( exit $ac_status )
31718
 
if test "$ac_cv_type_int" = yes; then
31719
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31720
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31721
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
31722
 
See \`config.log' for more details." >&5
31723
 
$as_echo "$as_me: error: cannot compute sizeof (int)
31724
 
See \`config.log' for more details." >&2;}
31725
 
   { (exit 77); exit 77; }; }; }
31726
 
   else
31727
 
     ac_cv_sizeof_int=0
31728
 
   fi
31729
 
fi
31730
 
rm -rf conftest.dSYM
31731
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31732
 
fi
31733
 
rm -f conftest.val
31734
 
fi
31735
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
31736
 
$as_echo "$ac_cv_sizeof_int" >&6; }
31737
 
 
31738
 
 
31739
 
 
31740
 
cat >>confdefs.h <<_ACEOF
31741
 
@%:@define SIZEOF_INT $ac_cv_sizeof_int
31742
 
_ACEOF
31743
 
 
31744
 
 
31745
 
 
31746
 
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
31747
 
$as_echo_n "checking for int32_t... " >&6; }
31748
 
if test "${ac_cv_int_type_int32_t+set}" = set; then
31749
 
  $as_echo_n "(cached) " >&6
31750
 
else
31751
 
  
31752
 
cat >conftest.$ac_ext <<_ACEOF
31753
 
/* confdefs.h.  */
31754
 
_ACEOF
31755
 
cat confdefs.h >>conftest.$ac_ext
31756
 
cat >>conftest.$ac_ext <<_ACEOF
31757
 
/* end confdefs.h.  */
31758
 
 
31759
 
#if HAVE_SYS_TYPES_H
31760
 
# include <sys/types.h>
31761
 
#endif
31762
 
#if HAVE_INTTYPES_H
31763
 
# include <inttypes.h>
31764
 
#elif HAVE_STDINT_H   
31765
 
# include <stdint.h>  
31766
 
#endif
31767
 
int
31768
 
main ()
31769
 
{
31770
 
if ((int32_t *) 0)
31771
 
  return 0;   
31772
 
if (sizeof (int32_t))
31773
 
  return 0;
31774
 
 
31775
 
  ;
31776
 
  return 0;
31777
 
}
31778
 
_ACEOF
31779
 
rm -f conftest.$ac_objext
31780
 
if { (ac_try="$ac_compile"
31781
 
case "(($ac_try" in
31782
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783
 
  *) ac_try_echo=$ac_try;;
31784
 
esac
31785
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31786
 
$as_echo "$ac_try_echo") >&5
31787
 
  (eval "$ac_compile") 2>conftest.er1
31788
 
  ac_status=$?
31789
 
  grep -v '^ *+' conftest.er1 >conftest.err
31790
 
  rm -f conftest.er1
31791
 
  cat conftest.err >&5
31792
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793
 
  (exit $ac_status); } && {
31794
 
         test -z "$ac_c_werror_flag" ||
31795
 
         test ! -s conftest.err
31796
 
       } && test -s conftest.$ac_objext; then
31797
 
  ac_cv_int_type_int32_t=yes
31798
 
else
31799
 
  $as_echo "$as_me: failed program was:" >&5
31800
 
sed 's/^/| /' conftest.$ac_ext >&5
31801
 
 
31802
 
        ac_cv_int_type_int32_t=no
31803
 
fi
31804
 
 
31805
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31806
 
 
31807
 
fi
31808
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_int_type_int32_t" >&5
31809
 
$as_echo "$ac_cv_int_type_int32_t" >&6; }
31810
 
if test "$ac_cv_int_type_int32_t" = "yes"; then
31811
 
  
31812
 
cat >>confdefs.h <<\_ACEOF
31813
 
@%:@define HAVE_INT32_T 1
31814
 
_ACEOF
31815
 
 
31816
 
fi
31817
 
 
31818
 
 
31819
 
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
31820
 
$as_echo_n "checking for uint32_t... " >&6; }
31821
 
if test "${ac_cv_int_type_uint32_t+set}" = set; then
31822
 
  $as_echo_n "(cached) " >&6
31823
 
else
31824
 
  
31825
 
cat >conftest.$ac_ext <<_ACEOF
31826
 
/* confdefs.h.  */
31827
 
_ACEOF
31828
 
cat confdefs.h >>conftest.$ac_ext
31829
 
cat >>conftest.$ac_ext <<_ACEOF
31830
 
/* end confdefs.h.  */
31831
 
 
31832
 
#if HAVE_SYS_TYPES_H
31833
 
# include <sys/types.h>
31834
 
#endif
31835
 
#if HAVE_INTTYPES_H
31836
 
# include <inttypes.h>
31837
 
#elif HAVE_STDINT_H   
31838
 
# include <stdint.h>  
31839
 
#endif
31840
 
int
31841
 
main ()
31842
 
{
31843
 
if ((uint32_t *) 0)
31844
 
  return 0;   
31845
 
if (sizeof (uint32_t))
31846
 
  return 0;
31847
 
 
31848
 
  ;
31849
 
  return 0;
31850
 
}
31851
 
_ACEOF
31852
 
rm -f conftest.$ac_objext
31853
 
if { (ac_try="$ac_compile"
31854
 
case "(($ac_try" in
31855
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31856
 
  *) ac_try_echo=$ac_try;;
31857
 
esac
31858
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31859
 
$as_echo "$ac_try_echo") >&5
31860
 
  (eval "$ac_compile") 2>conftest.er1
31861
 
  ac_status=$?
31862
 
  grep -v '^ *+' conftest.er1 >conftest.err
31863
 
  rm -f conftest.er1
31864
 
  cat conftest.err >&5
31865
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866
 
  (exit $ac_status); } && {
31867
 
         test -z "$ac_c_werror_flag" ||
31868
 
         test ! -s conftest.err
31869
 
       } && test -s conftest.$ac_objext; then
31870
 
  ac_cv_int_type_uint32_t=yes
31871
 
else
31872
 
  $as_echo "$as_me: failed program was:" >&5
31873
 
sed 's/^/| /' conftest.$ac_ext >&5
31874
 
 
31875
 
        ac_cv_int_type_uint32_t=no
31876
 
fi
31877
 
 
31878
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31879
 
 
31880
 
fi
31881
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_int_type_uint32_t" >&5
31882
 
$as_echo "$ac_cv_int_type_uint32_t" >&6; }
31883
 
if test "$ac_cv_int_type_uint32_t" = "yes"; then
31884
 
  
31885
 
cat >>confdefs.h <<\_ACEOF
31886
 
@%:@define HAVE_UINT32_T 1
31887
 
_ACEOF
31888
 
 
31889
 
fi
31890
 
 
31891
 
 
31892
 
 
31893
 
 
31894
 
 
31895
 
 
31896
 
 
31897
 
for ac_header in  \
31898
 
sys/types.h \
31899
 
inttypes.h \
31900
 
stdint.h \
31901
 
string.h \
31902
 
stdlib.h
31903
 
 
31904
 
do
31905
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31906
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31907
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31908
 
$as_echo_n "checking for $ac_header... " >&6; }
31909
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31910
 
  $as_echo_n "(cached) " >&6
31911
 
fi
31912
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
31913
 
                 $as_echo "$as_val"'`
31914
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31915
 
$as_echo "$ac_res" >&6; }
31916
 
else
31917
 
  # Is the header compilable?
31918
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31919
 
$as_echo_n "checking $ac_header usability... " >&6; }
31920
 
cat >conftest.$ac_ext <<_ACEOF
31921
 
/* confdefs.h.  */
31922
 
_ACEOF
31923
 
cat confdefs.h >>conftest.$ac_ext
31924
 
cat >>conftest.$ac_ext <<_ACEOF
31925
 
/* end confdefs.h.  */
31926
 
$ac_includes_default
31927
 
@%:@include <$ac_header>
31928
 
_ACEOF
31929
 
rm -f conftest.$ac_objext
31930
 
if { (ac_try="$ac_compile"
31931
 
case "(($ac_try" in
31932
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31933
 
  *) ac_try_echo=$ac_try;;
31934
 
esac
31935
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31936
 
$as_echo "$ac_try_echo") >&5
31937
 
  (eval "$ac_compile") 2>conftest.er1
31938
 
  ac_status=$?
31939
 
  grep -v '^ *+' conftest.er1 >conftest.err
31940
 
  rm -f conftest.er1
31941
 
  cat conftest.err >&5
31942
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943
 
  (exit $ac_status); } && {
31944
 
         test -z "$ac_c_werror_flag" ||
31945
 
         test ! -s conftest.err
31946
 
       } && test -s conftest.$ac_objext; then
31947
 
  ac_header_compiler=yes
31948
 
else
31949
 
  $as_echo "$as_me: failed program was:" >&5
31950
 
sed 's/^/| /' conftest.$ac_ext >&5
31951
 
 
31952
 
        ac_header_compiler=no
31953
 
fi
31954
 
 
31955
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31956
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31957
 
$as_echo "$ac_header_compiler" >&6; }
31958
 
 
31959
 
# Is the header present?
31960
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31961
 
$as_echo_n "checking $ac_header presence... " >&6; }
31962
 
cat >conftest.$ac_ext <<_ACEOF
31963
 
/* confdefs.h.  */
31964
 
_ACEOF
31965
 
cat confdefs.h >>conftest.$ac_ext
31966
 
cat >>conftest.$ac_ext <<_ACEOF
31967
 
/* end confdefs.h.  */
31968
 
@%:@include <$ac_header>
31969
 
_ACEOF
31970
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
31971
 
case "(($ac_try" in
31972
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31973
 
  *) ac_try_echo=$ac_try;;
31974
 
esac
31975
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31976
 
$as_echo "$ac_try_echo") >&5
31977
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31978
 
  ac_status=$?
31979
 
  grep -v '^ *+' conftest.er1 >conftest.err
31980
 
  rm -f conftest.er1
31981
 
  cat conftest.err >&5
31982
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983
 
  (exit $ac_status); } >/dev/null && {
31984
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31985
 
         test ! -s conftest.err
31986
 
       }; then
31987
 
  ac_header_preproc=yes
31988
 
else
31989
 
  $as_echo "$as_me: failed program was:" >&5
31990
 
sed 's/^/| /' conftest.$ac_ext >&5
31991
 
 
31992
 
  ac_header_preproc=no
31993
 
fi
31994
 
 
31995
 
rm -f conftest.err conftest.$ac_ext
31996
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31997
 
$as_echo "$ac_header_preproc" >&6; }
31998
 
 
31999
 
# So?  What about this header?
32000
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32001
 
  yes:no: )
32002
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32003
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32004
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32005
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32006
 
    ac_header_preproc=yes
32007
 
    ;;
32008
 
  no:yes:* )
32009
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32010
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32011
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32012
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32013
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32014
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32015
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32016
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32017
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32018
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32019
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32020
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32021
 
    
32022
 
    ;;
32023
 
esac
32024
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32025
 
$as_echo_n "checking for $ac_header... " >&6; }
32026
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32027
 
  $as_echo_n "(cached) " >&6
32028
 
else
32029
 
  eval "$as_ac_Header=\$ac_header_preproc"
32030
 
fi
32031
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
32032
 
                 $as_echo "$as_val"'`
32033
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32034
 
$as_echo "$ac_res" >&6; }
32035
 
 
32036
 
fi
32037
 
as_val=`eval 'as_val=${'$as_ac_Header'}
32038
 
                 $as_echo "$as_val"'`
32039
 
   if test "x$as_val" = x""yes; then
32040
 
  cat >>confdefs.h <<_ACEOF
32041
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32042
 
_ACEOF
32043
 
 
32044
 
fi
32045
 
 
32046
 
done
32047
 
 
32048
 
 
32049
 
 
32050
 
 
32051
 
 
32052
 
for ac_func in strtoll atoll strftime
32053
 
do
32054
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32055
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32056
 
$as_echo_n "checking for $ac_func... " >&6; }
32057
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32058
 
  $as_echo_n "(cached) " >&6
32059
 
else
32060
 
  cat >conftest.$ac_ext <<_ACEOF
32061
 
/* confdefs.h.  */
32062
 
_ACEOF
32063
 
cat confdefs.h >>conftest.$ac_ext
32064
 
cat >>conftest.$ac_ext <<_ACEOF
32065
 
/* end confdefs.h.  */
32066
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32067
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32068
 
#define $ac_func innocuous_$ac_func
32069
 
 
32070
 
/* System header to define __stub macros and hopefully few prototypes,
32071
 
    which can conflict with char $ac_func (); below.
32072
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32073
 
    <limits.h> exists even on freestanding compilers.  */
32074
 
 
32075
 
#ifdef __STDC__
32076
 
# include <limits.h>
32077
 
#else
32078
 
# include <assert.h>
32079
 
#endif
32080
 
 
32081
 
#undef $ac_func
32082
 
 
32083
 
/* Override any GCC internal prototype to avoid an error.
32084
 
   Use char because int might match the return type of a GCC
32085
 
   builtin and then its argument prototype would still apply.  */
32086
 
#ifdef __cplusplus
32087
 
extern "C"
32088
 
#endif
32089
 
char $ac_func ();
32090
 
/* The GNU C library defines this for functions which it implements
32091
 
    to always fail with ENOSYS.  Some functions are actually named
32092
 
    something starting with __ and the normal name is an alias.  */
32093
 
#if defined __stub_$ac_func || defined __stub___$ac_func
32094
 
choke me
32095
 
#endif
32096
 
 
32097
 
int
32098
 
main ()
32099
 
{
32100
 
return $ac_func ();
32101
 
  ;
32102
 
  return 0;
32103
 
}
32104
 
_ACEOF
32105
 
rm -f conftest.$ac_objext conftest$ac_exeext
32106
 
if { (ac_try="$ac_link"
32107
 
case "(($ac_try" in
32108
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32109
 
  *) ac_try_echo=$ac_try;;
32110
 
esac
32111
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32112
 
$as_echo "$ac_try_echo") >&5
32113
 
  (eval "$ac_link") 2>conftest.er1
32114
 
  ac_status=$?
32115
 
  grep -v '^ *+' conftest.er1 >conftest.err
32116
 
  rm -f conftest.er1
32117
 
  cat conftest.err >&5
32118
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119
 
  (exit $ac_status); } && {
32120
 
         test -z "$ac_c_werror_flag" ||
32121
 
         test ! -s conftest.err
32122
 
       } && test -s conftest$ac_exeext && {
32123
 
         test "$cross_compiling" = yes ||
32124
 
         $as_test_x conftest$ac_exeext
32125
 
       }; then
32126
 
  eval "$as_ac_var=yes"
32127
 
else
32128
 
  $as_echo "$as_me: failed program was:" >&5
32129
 
sed 's/^/| /' conftest.$ac_ext >&5
32130
 
 
32131
 
        eval "$as_ac_var=no"
32132
 
fi
32133
 
 
32134
 
rm -rf conftest.dSYM
32135
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32136
 
      conftest$ac_exeext conftest.$ac_ext
32137
 
fi
32138
 
ac_res=`eval 'as_val=${'$as_ac_var'}
32139
 
                 $as_echo "$as_val"'`
32140
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32141
 
$as_echo "$ac_res" >&6; }
32142
 
as_val=`eval 'as_val=${'$as_ac_var'}
32143
 
                 $as_echo "$as_val"'`
32144
 
   if test "x$as_val" = x""yes; then
32145
 
  cat >>confdefs.h <<_ACEOF
32146
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32147
 
_ACEOF
32148
 
 
32149
 
fi
32150
 
done
32151
 
 
32152
 
 
32153
 
 
32154
 
 
32155
 
PHP_DATE_CFLAGS="-I@ext_builddir@/lib"
32156
 
timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c 
32157
 
                 lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
32158
 
 
32159
 
 
32160
 
  ext_builddir=ext/date
32161
 
  ext_srcdir=$abs_srcdir/ext/date
32162
 
 
32163
 
  ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
32164
 
 
32165
 
  if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
32166
 
    PHP_DATE_SHARED=no
32167
 
    
32168
 
  
32169
 
  case ext/date in
32170
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32171
 
  /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32172
 
  *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32173
 
  esac
32174
 
  
32175
 
  
32176
 
 
32177
 
  b_c_pre=$php_c_pre
32178
 
  b_cxx_pre=$php_cxx_pre
32179
 
  b_c_meta=$php_c_meta
32180
 
  b_cxx_meta=$php_cxx_meta
32181
 
  b_c_post=$php_c_post
32182
 
  b_cxx_post=$php_cxx_post
32183
 
  b_lo=$php_lo
32184
 
 
32185
 
 
32186
 
  old_IFS=$IFS
32187
 
  for ac_src in php_date.c $timelib_sources; do
32188
 
  
32189
 
      IFS=.
32190
 
      set $ac_src
32191
 
      ac_obj=$1
32192
 
      IFS=$old_IFS
32193
 
      
32194
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
32195
 
 
32196
 
      case $ac_src in
32197
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32198
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32199
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32200
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32201
 
      esac
32202
 
 
32203
 
    cat >>Makefile.objects<<EOF
32204
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32205
 
        $ac_comp
32206
 
EOF
32207
 
  done
32208
 
 
32209
 
 
32210
 
    EXT_STATIC="$EXT_STATIC date"
32211
 
    if test "no" != "nocli"; then
32212
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC date"
32213
 
    fi
32214
 
  else
32215
 
    if test "no" = "shared" || test "no" = "yes"; then
32216
 
      PHP_DATE_SHARED=yes
32217
 
      
32218
 
  case ext/date in
32219
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32220
 
  /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32221
 
  *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32222
 
  esac
32223
 
  
32224
 
  
32225
 
 
32226
 
  b_c_pre=$shared_c_pre
32227
 
  b_cxx_pre=$shared_cxx_pre
32228
 
  b_c_meta=$shared_c_meta
32229
 
  b_cxx_meta=$shared_cxx_meta
32230
 
  b_c_post=$shared_c_post
32231
 
  b_cxx_post=$shared_cxx_post
32232
 
  b_lo=$shared_lo
32233
 
 
32234
 
 
32235
 
  old_IFS=$IFS
32236
 
  for ac_src in php_date.c $timelib_sources; do
32237
 
  
32238
 
      IFS=.
32239
 
      set $ac_src
32240
 
      ac_obj=$1
32241
 
      IFS=$old_IFS
32242
 
      
32243
 
      shared_objects_date="$shared_objects_date $ac_bdir$ac_obj.lo"
32244
 
 
32245
 
      case $ac_src in
32246
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32247
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32248
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32249
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32250
 
      esac
32251
 
 
32252
 
    cat >>Makefile.objects<<EOF
32253
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32254
 
        $ac_comp
32255
 
EOF
32256
 
  done
32257
 
 
32258
 
      case $host_alias in
32259
 
        *netware*)
32260
 
          
32261
 
  install_modules="install-modules"
32262
 
 
32263
 
  case $host_alias in
32264
 
    *aix*)
32265
 
      suffix=so
32266
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpdate.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(PHPDATE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpdate.so '$ext_builddir'/phpdate.so'
32267
 
      ;;
32268
 
    *netware*)
32269
 
      suffix=nlm
32270
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) -L$(top_builddir)/netware -lphp5lib $(DATE_SHARED_LIBADD)'
32271
 
      ;;
32272
 
    *)
32273
 
      suffix=la
32274
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(PHPDATE_SHARED_LIBADD)'
32275
 
      ;;
32276
 
  esac
32277
 
 
32278
 
  if test "x" = "xyes"; then
32279
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdate.$suffix"
32280
 
  else
32281
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdate.$suffix"
32282
 
  fi
32283
 
  
32284
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
32285
 
 
32286
 
  cat >>Makefile.objects<<EOF
32287
 
\$(phplibdir)/phpdate.$suffix: $ext_builddir/phpdate.$suffix
32288
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpdate.$suffix \$(phplibdir)
32289
 
 
32290
 
$ext_builddir/phpdate.$suffix: \$(shared_objects_date) \$(PHPDATE_SHARED_DEPENDENCIES)
32291
 
        $link_cmd
32292
 
 
32293
 
EOF
32294
 
 
32295
 
          ;;
32296
 
        *)
32297
 
          
32298
 
  install_modules="install-modules"
32299
 
 
32300
 
  case $host_alias in
32301
 
    *aix*)
32302
 
      suffix=so
32303
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/date.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(DATE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/date.so '$ext_builddir'/date.so'
32304
 
      ;;
32305
 
    *netware*)
32306
 
      suffix=nlm
32307
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) -L$(top_builddir)/netware -lphp5lib $(E_SHARED_LIBADD)'
32308
 
      ;;
32309
 
    *)
32310
 
      suffix=la
32311
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_date) $(DATE_SHARED_LIBADD)'
32312
 
      ;;
32313
 
  esac
32314
 
 
32315
 
  if test "x" = "xyes"; then
32316
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/date.$suffix"
32317
 
  else
32318
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/date.$suffix"
32319
 
  fi
32320
 
  
32321
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
32322
 
 
32323
 
  cat >>Makefile.objects<<EOF
32324
 
\$(phplibdir)/date.$suffix: $ext_builddir/date.$suffix
32325
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/date.$suffix \$(phplibdir)
32326
 
 
32327
 
$ext_builddir/date.$suffix: \$(shared_objects_date) \$(DATE_SHARED_DEPENDENCIES)
32328
 
        $link_cmd
32329
 
 
32330
 
EOF
32331
 
 
32332
 
          ;;
32333
 
      esac
32334
 
      
32335
 
cat >>confdefs.h <<_ACEOF
32336
 
@%:@define COMPILE_DL_DATE 1
32337
 
_ACEOF
32338
 
 
32339
 
    fi
32340
 
  fi
32341
 
 
32342
 
  if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
32343
 
    PHP_DATE_SHARED=no
32344
 
    case "$PHP_SAPI" in
32345
 
      cgi|embed)
32346
 
        
32347
 
  
32348
 
  case ext/date in
32349
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32350
 
  /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32351
 
  *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32352
 
  esac
32353
 
  
32354
 
  
32355
 
 
32356
 
  b_c_pre=$php_c_pre
32357
 
  b_cxx_pre=$php_cxx_pre
32358
 
  b_c_meta=$php_c_meta
32359
 
  b_cxx_meta=$php_cxx_meta
32360
 
  b_c_post=$php_c_post
32361
 
  b_cxx_post=$php_cxx_post
32362
 
  b_lo=$php_lo
32363
 
 
32364
 
 
32365
 
  old_IFS=$IFS
32366
 
  for ac_src in php_date.c $timelib_sources; do
32367
 
  
32368
 
      IFS=.
32369
 
      set $ac_src
32370
 
      ac_obj=$1
32371
 
      IFS=$old_IFS
32372
 
      
32373
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
32374
 
 
32375
 
      case $ac_src in
32376
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32377
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32378
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32379
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32380
 
      esac
32381
 
 
32382
 
    cat >>Makefile.objects<<EOF
32383
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32384
 
        $ac_comp
32385
 
EOF
32386
 
  done
32387
 
 
32388
 
 
32389
 
        EXT_STATIC="$EXT_STATIC date"
32390
 
        ;;
32391
 
      *)
32392
 
        
32393
 
  
32394
 
  case ext/date in
32395
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32396
 
  /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32397
 
  *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32398
 
  esac
32399
 
  
32400
 
  
32401
 
 
32402
 
  b_c_pre=$php_c_pre
32403
 
  b_cxx_pre=$php_cxx_pre
32404
 
  b_c_meta=$php_c_meta
32405
 
  b_cxx_meta=$php_cxx_meta
32406
 
  b_c_post=$php_c_post
32407
 
  b_cxx_post=$php_cxx_post
32408
 
  b_lo=$php_lo
32409
 
 
32410
 
 
32411
 
  old_IFS=$IFS
32412
 
  for ac_src in php_date.c $timelib_sources; do
32413
 
  
32414
 
      IFS=.
32415
 
      set $ac_src
32416
 
      ac_obj=$1
32417
 
      IFS=$old_IFS
32418
 
      
32419
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
32420
 
 
32421
 
      case $ac_src in
32422
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32423
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32424
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32425
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32426
 
      esac
32427
 
 
32428
 
    cat >>Makefile.objects<<EOF
32429
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32430
 
        $ac_comp
32431
 
EOF
32432
 
  done
32433
 
 
32434
 
 
32435
 
        ;;
32436
 
    esac
32437
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC date"
32438
 
  fi
32439
 
  
32440
 
  
32441
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
32442
 
  
32443
 
 
32444
 
 
32445
 
  if test "$ext_builddir" = "."; then
32446
 
    PHP_PECL_EXTENSION=date
32447
 
    
32448
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
32449
 
 
32450
 
  fi
32451
 
 
32452
 
 
32453
 
 
32454
 
  
32455
 
    $php_shtool mkdir -p $ext_builddir/lib
32456
 
  
32457
 
 
32458
 
 
32459
 
  if test "$ext_builddir/lib" != "/usr/include"; then
32460
 
    
32461
 
  if test -z "$ext_builddir/lib" || echo "$ext_builddir/lib" | grep '^/' >/dev/null ; then
32462
 
    ai_p=$ext_builddir/lib
32463
 
  else
32464
 
    
32465
 
    ep_dir="`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'`"
32466
 
    
32467
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32468
 
    ai_p="$ep_realdir/`basename \"$ext_builddir/lib\"`"
32469
 
  fi
32470
 
 
32471
 
    
32472
 
  
32473
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32474
 
  
32475
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
32476
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
32477
 
    eval "INCLUDEPATH$unique=set"
32478
 
    
32479
 
      if test ""; then
32480
 
        INCLUDES="-I$ai_p $INCLUDES"
32481
 
      else
32482
 
        INCLUDES="$INCLUDES -I$ai_p"
32483
 
      fi
32484
 
    
32485
 
  fi
32486
 
 
32487
 
  fi
32488
 
 
32489
 
 
32490
 
  if test "$ext_srcdir/lib" != "/usr/include"; then
32491
 
    
32492
 
  if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then
32493
 
    ai_p=$ext_srcdir/lib
32494
 
  else
32495
 
    
32496
 
    ep_dir="`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'`"
32497
 
    
32498
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32499
 
    ai_p="$ep_realdir/`basename \"$ext_srcdir/lib\"`"
32500
 
  fi
32501
 
 
32502
 
    
32503
 
  
32504
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32505
 
  
32506
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
32507
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
32508
 
    eval "INCLUDEPATH$unique=set"
32509
 
    
32510
 
      if test ""; then
32511
 
        INCLUDES="-I$ai_p $INCLUDES"
32512
 
      else
32513
 
        INCLUDES="$INCLUDES -I$ai_p"
32514
 
      fi
32515
 
    
32516
 
  fi
32517
 
 
32518
 
  fi
32519
 
 
32520
 
 
32521
 
 
32522
 
  
32523
 
    header_path=ext/date
32524
 
    for header_file in php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h; do
32525
 
      hp_hf="$header_path/$header_file"
32526
 
      
32527
 
  
32528
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
32529
 
  
32530
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
32531
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
32532
 
    eval "INSTALLHEADERS$unique=set"
32533
 
    
32534
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
32535
 
      
32536
 
  fi
32537
 
 
32538
 
    done 
32539
 
  
32540
 
 
32541
 
 
32542
 
cat > $ext_builddir/lib/timelib_config.h <<EOF
32543
 
#ifdef PHP_WIN32
32544
 
# include "config.w32.h"
32545
 
#else
32546
 
# include <php_config.h>
32547
 
#endif
32548
 
EOF
32549
 
 
32550
 
 
32551
 
 
32552
 
php_with_regex=php
32553
 
 
32554
 
 
32555
 
 
32556
 
@%:@ Check whether --with-regex was given.
32557
 
if test "${with_regex+set}" = set; then
32558
 
  withval=$with_regex; PHP_REGEX=$withval
32559
 
else
32560
 
  
32561
 
  PHP_REGEX=php
32562
 
  
32563
 
 
32564
 
fi
32565
 
 
32566
 
 
32567
 
ext_output=$PHP_REGEX
32568
 
 
32569
 
 
32570
 
 
32571
 
 
32572
 
 
32573
 
case $PHP_REGEX in
32574
 
  system)
32575
 
    if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then
32576
 
      REGEX_TYPE=php
32577
 
    else
32578
 
      REGEX_TYPE=system
32579
 
    fi
32580
 
    ;;
32581
 
  yes | php)
32582
 
    REGEX_TYPE=php
32583
 
    ;;
32584
 
  *)
32585
 
    REGEX_TYPE=php
32586
 
    { $as_echo "$as_me:$LINENO: WARNING: Invalid regex library type selected. Using default value: php" >&5
32587
 
$as_echo "$as_me: WARNING: Invalid regex library type selected. Using default value: php" >&2;}
32588
 
    ;;
32589
 
esac
32590
 
 
32591
 
{ $as_echo "$as_me:$LINENO: checking which regex library to use" >&5
32592
 
$as_echo_n "checking which regex library to use... " >&6; }
32593
 
{ $as_echo "$as_me:$LINENO: result: $REGEX_TYPE" >&5
32594
 
$as_echo "$REGEX_TYPE" >&6; }
32595
 
 
32596
 
if test "$REGEX_TYPE" = "php"; then
32597
 
  ereg_regex_sources="regex/regcomp.c regex/regexec.c regex/regerror.c regex/regfree.c"
32598
 
  ereg_regex_headers="regex/"
32599
 
  PHP_EREG_CFLAGS="-Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp"
32600
 
fi
32601
 
 
32602
 
 
32603
 
  ext_builddir=ext/ereg
32604
 
  ext_srcdir=$abs_srcdir/ext/ereg
32605
 
 
32606
 
  ac_extra=`echo "$PHP_EREG_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
32607
 
 
32608
 
  if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
32609
 
    PHP_EREG_SHARED=no
32610
 
    
32611
 
  
32612
 
  case ext/ereg in
32613
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32614
 
  /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32615
 
  *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32616
 
  esac
32617
 
  
32618
 
  
32619
 
 
32620
 
  b_c_pre=$php_c_pre
32621
 
  b_cxx_pre=$php_cxx_pre
32622
 
  b_c_meta=$php_c_meta
32623
 
  b_cxx_meta=$php_cxx_meta
32624
 
  b_c_post=$php_c_post
32625
 
  b_cxx_post=$php_cxx_post
32626
 
  b_lo=$php_lo
32627
 
 
32628
 
 
32629
 
  old_IFS=$IFS
32630
 
  for ac_src in ereg.c $ereg_regex_sources; do
32631
 
  
32632
 
      IFS=.
32633
 
      set $ac_src
32634
 
      ac_obj=$1
32635
 
      IFS=$old_IFS
32636
 
      
32637
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
32638
 
 
32639
 
      case $ac_src in
32640
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32641
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32642
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32643
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32644
 
      esac
32645
 
 
32646
 
    cat >>Makefile.objects<<EOF
32647
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32648
 
        $ac_comp
32649
 
EOF
32650
 
  done
32651
 
 
32652
 
 
32653
 
    EXT_STATIC="$EXT_STATIC ereg"
32654
 
    if test "no" != "nocli"; then
32655
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
32656
 
    fi
32657
 
  else
32658
 
    if test "no" = "shared" || test "no" = "yes"; then
32659
 
      PHP_EREG_SHARED=yes
32660
 
      
32661
 
  case ext/ereg in
32662
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32663
 
  /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32664
 
  *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32665
 
  esac
32666
 
  
32667
 
  
32668
 
 
32669
 
  b_c_pre=$shared_c_pre
32670
 
  b_cxx_pre=$shared_cxx_pre
32671
 
  b_c_meta=$shared_c_meta
32672
 
  b_cxx_meta=$shared_cxx_meta
32673
 
  b_c_post=$shared_c_post
32674
 
  b_cxx_post=$shared_cxx_post
32675
 
  b_lo=$shared_lo
32676
 
 
32677
 
 
32678
 
  old_IFS=$IFS
32679
 
  for ac_src in ereg.c $ereg_regex_sources; do
32680
 
  
32681
 
      IFS=.
32682
 
      set $ac_src
32683
 
      ac_obj=$1
32684
 
      IFS=$old_IFS
32685
 
      
32686
 
      shared_objects_ereg="$shared_objects_ereg $ac_bdir$ac_obj.lo"
32687
 
 
32688
 
      case $ac_src in
32689
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32690
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32691
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32692
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32693
 
      esac
32694
 
 
32695
 
    cat >>Makefile.objects<<EOF
32696
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32697
 
        $ac_comp
32698
 
EOF
32699
 
  done
32700
 
 
32701
 
      case $host_alias in
32702
 
        *netware*)
32703
 
          
32704
 
  install_modules="install-modules"
32705
 
 
32706
 
  case $host_alias in
32707
 
    *aix*)
32708
 
      suffix=so
32709
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpereg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(PHPEREG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpereg.so '$ext_builddir'/phpereg.so'
32710
 
      ;;
32711
 
    *netware*)
32712
 
      suffix=nlm
32713
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) -L$(top_builddir)/netware -lphp5lib $(EREG_SHARED_LIBADD)'
32714
 
      ;;
32715
 
    *)
32716
 
      suffix=la
32717
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(PHPEREG_SHARED_LIBADD)'
32718
 
      ;;
32719
 
  esac
32720
 
 
32721
 
  if test "x" = "xyes"; then
32722
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpereg.$suffix"
32723
 
  else
32724
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpereg.$suffix"
32725
 
  fi
32726
 
  
32727
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
32728
 
 
32729
 
  cat >>Makefile.objects<<EOF
32730
 
\$(phplibdir)/phpereg.$suffix: $ext_builddir/phpereg.$suffix
32731
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpereg.$suffix \$(phplibdir)
32732
 
 
32733
 
$ext_builddir/phpereg.$suffix: \$(shared_objects_ereg) \$(PHPEREG_SHARED_DEPENDENCIES)
32734
 
        $link_cmd
32735
 
 
32736
 
EOF
32737
 
 
32738
 
          ;;
32739
 
        *)
32740
 
          
32741
 
  install_modules="install-modules"
32742
 
 
32743
 
  case $host_alias in
32744
 
    *aix*)
32745
 
      suffix=so
32746
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ereg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(EREG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ereg.so '$ext_builddir'/ereg.so'
32747
 
      ;;
32748
 
    *netware*)
32749
 
      suffix=nlm
32750
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) -L$(top_builddir)/netware -lphp5lib $(G_SHARED_LIBADD)'
32751
 
      ;;
32752
 
    *)
32753
 
      suffix=la
32754
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ereg) $(EREG_SHARED_LIBADD)'
32755
 
      ;;
32756
 
  esac
32757
 
 
32758
 
  if test "x" = "xyes"; then
32759
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ereg.$suffix"
32760
 
  else
32761
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/ereg.$suffix"
32762
 
  fi
32763
 
  
32764
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
32765
 
 
32766
 
  cat >>Makefile.objects<<EOF
32767
 
\$(phplibdir)/ereg.$suffix: $ext_builddir/ereg.$suffix
32768
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/ereg.$suffix \$(phplibdir)
32769
 
 
32770
 
$ext_builddir/ereg.$suffix: \$(shared_objects_ereg) \$(EREG_SHARED_DEPENDENCIES)
32771
 
        $link_cmd
32772
 
 
32773
 
EOF
32774
 
 
32775
 
          ;;
32776
 
      esac
32777
 
      
32778
 
cat >>confdefs.h <<_ACEOF
32779
 
@%:@define COMPILE_DL_EREG 1
32780
 
_ACEOF
32781
 
 
32782
 
    fi
32783
 
  fi
32784
 
 
32785
 
  if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
32786
 
    PHP_EREG_SHARED=no
32787
 
    case "$PHP_SAPI" in
32788
 
      cgi|embed)
32789
 
        
32790
 
  
32791
 
  case ext/ereg in
32792
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32793
 
  /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32794
 
  *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32795
 
  esac
32796
 
  
32797
 
  
32798
 
 
32799
 
  b_c_pre=$php_c_pre
32800
 
  b_cxx_pre=$php_cxx_pre
32801
 
  b_c_meta=$php_c_meta
32802
 
  b_cxx_meta=$php_cxx_meta
32803
 
  b_c_post=$php_c_post
32804
 
  b_cxx_post=$php_cxx_post
32805
 
  b_lo=$php_lo
32806
 
 
32807
 
 
32808
 
  old_IFS=$IFS
32809
 
  for ac_src in ereg.c $ereg_regex_sources; do
32810
 
  
32811
 
      IFS=.
32812
 
      set $ac_src
32813
 
      ac_obj=$1
32814
 
      IFS=$old_IFS
32815
 
      
32816
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
32817
 
 
32818
 
      case $ac_src in
32819
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32820
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32821
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32822
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32823
 
      esac
32824
 
 
32825
 
    cat >>Makefile.objects<<EOF
32826
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32827
 
        $ac_comp
32828
 
EOF
32829
 
  done
32830
 
 
32831
 
 
32832
 
        EXT_STATIC="$EXT_STATIC ereg"
32833
 
        ;;
32834
 
      *)
32835
 
        
32836
 
  
32837
 
  case ext/ereg in
32838
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
32839
 
  /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
32840
 
  *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
32841
 
  esac
32842
 
  
32843
 
  
32844
 
 
32845
 
  b_c_pre=$php_c_pre
32846
 
  b_cxx_pre=$php_cxx_pre
32847
 
  b_c_meta=$php_c_meta
32848
 
  b_cxx_meta=$php_cxx_meta
32849
 
  b_c_post=$php_c_post
32850
 
  b_cxx_post=$php_cxx_post
32851
 
  b_lo=$php_lo
32852
 
 
32853
 
 
32854
 
  old_IFS=$IFS
32855
 
  for ac_src in ereg.c $ereg_regex_sources; do
32856
 
  
32857
 
      IFS=.
32858
 
      set $ac_src
32859
 
      ac_obj=$1
32860
 
      IFS=$old_IFS
32861
 
      
32862
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
32863
 
 
32864
 
      case $ac_src in
32865
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32866
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32867
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
32868
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
32869
 
      esac
32870
 
 
32871
 
    cat >>Makefile.objects<<EOF
32872
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
32873
 
        $ac_comp
32874
 
EOF
32875
 
  done
32876
 
 
32877
 
 
32878
 
        ;;
32879
 
    esac
32880
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
32881
 
  fi
32882
 
  
32883
 
  
32884
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
32885
 
  
32886
 
 
32887
 
 
32888
 
  if test "$ext_builddir" = "."; then
32889
 
    PHP_PECL_EXTENSION=ereg
32890
 
    
32891
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
32892
 
 
32893
 
  fi
32894
 
 
32895
 
 
32896
 
  
32897
 
    header_path=ext/ereg
32898
 
    for header_file in php_ereg.h php_regex.h $ereg_regex_headers; do
32899
 
      hp_hf="$header_path/$header_file"
32900
 
      
32901
 
  
32902
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
32903
 
  
32904
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
32905
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
32906
 
    eval "INSTALLHEADERS$unique=set"
32907
 
    
32908
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
32909
 
      
32910
 
  fi
32911
 
 
32912
 
    done 
32913
 
  
32914
 
 
32915
 
 
32916
 
if test "$REGEX_TYPE" = "php"; then
32917
 
  
32918
 
cat >>confdefs.h <<\_ACEOF
32919
 
@%:@define HAVE_REGEX_T_RE_MAGIC 1
32920
 
_ACEOF
32921
 
 
32922
 
  
32923
 
cat >>confdefs.h <<\_ACEOF
32924
 
@%:@define HSREGEX 1
32925
 
_ACEOF
32926
 
 
32927
 
  
32928
 
cat >>confdefs.h <<\_ACEOF
32929
 
@%:@define REGEX 1
32930
 
_ACEOF
32931
 
  
32932
 
  
32933
 
  
32934
 
    $php_shtool mkdir -p $ext_builddir/regex
32935
 
  
32936
 
 
32937
 
  
32938
 
  if test "$ext_srcdir/regex" != "/usr/include"; then
32939
 
    
32940
 
  if test -z "$ext_srcdir/regex" || echo "$ext_srcdir/regex" | grep '^/' >/dev/null ; then
32941
 
    ai_p=$ext_srcdir/regex
32942
 
  else
32943
 
    
32944
 
    ep_dir="`echo $ext_srcdir/regex|$SED 's%/*[^/][^/]*/*$%%'`"
32945
 
    
32946
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32947
 
    ai_p="$ep_realdir/`basename \"$ext_srcdir/regex\"`"
32948
 
  fi
32949
 
 
32950
 
    
32951
 
  
32952
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32953
 
  
32954
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
32955
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
32956
 
    eval "INCLUDEPATH$unique=set"
32957
 
    
32958
 
      if test ""; then
32959
 
        INCLUDES="-I$ai_p $INCLUDES"
32960
 
      else
32961
 
        INCLUDES="$INCLUDES -I$ai_p"
32962
 
      fi
32963
 
    
32964
 
  fi
32965
 
 
32966
 
  fi
32967
 
 
32968
 
elif test "$REGEX_TYPE" = "system"; then
32969
 
  
32970
 
cat >>confdefs.h <<\_ACEOF
32971
 
@%:@define REGEX 0
32972
 
_ACEOF
32973
 
 
32974
 
    { $as_echo "$as_me:$LINENO: checking whether field re_magic exists in struct regex_t" >&5
32975
 
$as_echo_n "checking whether field re_magic exists in struct regex_t... " >&6; }
32976
 
if test "${ac_cv_regex_t_re_magic+set}" = set; then
32977
 
  $as_echo_n "(cached) " >&6
32978
 
else
32979
 
  
32980
 
  cat >conftest.$ac_ext <<_ACEOF
32981
 
/* confdefs.h.  */
32982
 
_ACEOF
32983
 
cat confdefs.h >>conftest.$ac_ext
32984
 
cat >>conftest.$ac_ext <<_ACEOF
32985
 
/* end confdefs.h.  */
32986
 
#include <sys/types.h>
32987
 
#include <regex.h>
32988
 
int
32989
 
main ()
32990
 
{
32991
 
regex_t rt; rt.re_magic;
32992
 
  ;
32993
 
  return 0;
32994
 
}
32995
 
_ACEOF
32996
 
rm -f conftest.$ac_objext
32997
 
if { (ac_try="$ac_compile"
32998
 
case "(($ac_try" in
32999
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000
 
  *) ac_try_echo=$ac_try;;
33001
 
esac
33002
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33003
 
$as_echo "$ac_try_echo") >&5
33004
 
  (eval "$ac_compile") 2>conftest.er1
33005
 
  ac_status=$?
33006
 
  grep -v '^ *+' conftest.er1 >conftest.err
33007
 
  rm -f conftest.er1
33008
 
  cat conftest.err >&5
33009
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010
 
  (exit $ac_status); } && {
33011
 
         test -z "$ac_c_werror_flag" ||
33012
 
         test ! -s conftest.err
33013
 
       } && test -s conftest.$ac_objext; then
33014
 
  ac_cv_regex_t_re_magic=yes
33015
 
else
33016
 
  $as_echo "$as_me: failed program was:" >&5
33017
 
sed 's/^/| /' conftest.$ac_ext >&5
33018
 
 
33019
 
        ac_cv_regex_t_re_magic=no
33020
 
fi
33021
 
 
33022
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33023
 
fi
33024
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_regex_t_re_magic" >&5
33025
 
$as_echo "$ac_cv_regex_t_re_magic" >&6; }
33026
 
  if test "$ac_cv_regex_t_re_magic" = "yes"; then
33027
 
    
33028
 
cat >>confdefs.h <<\_ACEOF
33029
 
@%:@define HAVE_REGEX_T_RE_MAGIC  
33030
 
_ACEOF
33031
 
   
33032
 
  fi 
33033
 
fi   
33034
 
 
33035
 
 
33036
 
 
33037
 
php_enable_libxml=yes
33038
 
 
33039
 
{ $as_echo "$as_me:$LINENO: checking whether to enable LIBXML support" >&5
33040
 
$as_echo_n "checking whether to enable LIBXML support... " >&6; }
33041
 
@%:@ Check whether --enable-libxml was given.
33042
 
if test "${enable_libxml+set}" = set; then
33043
 
  enableval=$enable_libxml; PHP_LIBXML=$enableval
33044
 
else
33045
 
  
33046
 
  PHP_LIBXML=yes
33047
 
  test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL
33048
 
 
33049
 
fi
33050
 
 
33051
 
 
33052
 
 
33053
 
ext_output="yes, shared"
33054
 
ext_shared=yes
33055
 
case $PHP_LIBXML in
33056
 
shared,*)
33057
 
  PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'`
33058
 
  ;;
33059
 
shared)
33060
 
  PHP_LIBXML=yes
33061
 
  ;;
33062
 
no)
33063
 
  ext_output=no
33064
 
  ext_shared=no
33065
 
  ;;
33066
 
*)
33067
 
  ext_output=yes
33068
 
  ext_shared=no
33069
 
  ;;
33070
 
esac
33071
 
 
33072
 
 
33073
 
 
33074
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
33075
 
$as_echo "$ext_output" >&6; }
33076
 
 
33077
 
 
33078
 
 
33079
 
 
33080
 
if test -z "$PHP_LIBXML_DIR"; then
33081
 
  
33082
 
php_with_libxml_dir=no
33083
 
 
33084
 
{ $as_echo "$as_me:$LINENO: checking libxml2 install dir" >&5
33085
 
$as_echo_n "checking libxml2 install dir... " >&6; }
33086
 
 
33087
 
@%:@ Check whether --with-libxml-dir was given.
33088
 
if test "${with_libxml_dir+set}" = set; then
33089
 
  withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
33090
 
else
33091
 
  
33092
 
  PHP_LIBXML_DIR=no
33093
 
  
33094
 
 
33095
 
fi
33096
 
 
33097
 
 
33098
 
ext_output=$PHP_LIBXML_DIR
33099
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
33100
 
$as_echo "$ext_output" >&6; }
33101
 
 
33102
 
 
33103
 
 
33104
 
fi
33105
 
 
33106
 
if test "$PHP_LIBXML" != "no"; then
33107
 
 
33108
 
    ext_shared=no
33109
 
 
33110
 
  
33111
 
{ $as_echo "$as_me:$LINENO: checking for xml2-config path" >&5
33112
 
$as_echo_n "checking for xml2-config path... " >&6; }
33113
 
if test "${ac_cv_php_xml2_config_path+set}" = set; then
33114
 
  $as_echo_n "(cached) " >&6
33115
 
else
33116
 
  
33117
 
  for i in $PHP_LIBXML_DIR /usr/local /usr; do
33118
 
    if test -x "$i/bin/xml2-config"; then
33119
 
      ac_cv_php_xml2_config_path="$i/bin/xml2-config"
33120
 
      break
33121
 
    fi
33122
 
  done
33123
 
 
33124
 
fi
33125
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
33126
 
$as_echo "$ac_cv_php_xml2_config_path" >&6; }
33127
 
 
33128
 
  if test -x "$ac_cv_php_xml2_config_path"; then
33129
 
    XML2_CONFIG="$ac_cv_php_xml2_config_path"
33130
 
    libxml_full_version=`$XML2_CONFIG --version`
33131
 
    ac_IFS=$IFS
33132
 
    IFS="."
33133
 
    set $libxml_full_version
33134
 
    IFS=$ac_IFS
33135
 
    LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
33136
 
    if test "$LIBXML_VERSION" -ge "2006011"; then
33137
 
      LIBXML_LIBS=`$XML2_CONFIG --libs`
33138
 
      LIBXML_INCS=`$XML2_CONFIG --cflags`
33139
 
      
33140
 
  for ac_i in $LIBXML_LIBS; do
33141
 
    case $ac_i in
33142
 
    -pthread)
33143
 
      if test "$ext_shared" = "yes"; then
33144
 
        LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread"
33145
 
      else
33146
 
        
33147
 
  
33148
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
33149
 
  
33150
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
33151
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
33152
 
    eval "EXTRA_LDFLAGS$unique=set"
33153
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
33154
 
  fi
33155
 
 
33156
 
      fi
33157
 
    ;;
33158
 
    -l*)
33159
 
      ac_ii=`echo $ac_i|cut -c 3-`
33160
 
      
33161
 
  
33162
 
  case $ac_ii in
33163
 
  c|c_r|pthread*) ;;
33164
 
  *) 
33165
 
    if test "$ext_shared" = "yes"; then
33166
 
        LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii" 
33167
 
    else
33168
 
      
33169
 
  
33170
 
  case $ac_ii in
33171
 
  c|c_r|pthread*) ;;
33172
 
  *) 
33173
 
      LIBS="$LIBS -l$ac_ii" 
33174
 
   ;;
33175
 
  esac
33176
 
 
33177
 
 
33178
 
    fi
33179
 
   ;;
33180
 
  esac
33181
 
 
33182
 
 
33183
 
    ;;
33184
 
    -L*)
33185
 
      ac_ii=`echo $ac_i|cut -c 3-`
33186
 
      
33187
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
33188
 
    
33189
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
33190
 
    ai_p=$ac_ii
33191
 
  else
33192
 
    
33193
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
33194
 
    
33195
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33196
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
33197
 
  fi
33198
 
 
33199
 
    
33200
 
      if test "$ext_shared" = "yes"; then
33201
 
        LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD"
33202
 
        test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD"
33203
 
      else
33204
 
        
33205
 
  
33206
 
  
33207
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33208
 
  
33209
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33210
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
33211
 
    eval "LIBPATH$unique=set"
33212
 
    
33213
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33214
 
    LDFLAGS="$LDFLAGS -L$ai_p"
33215
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
33216
 
  
33217
 
  fi
33218
 
 
33219
 
 
33220
 
      fi
33221
 
    
33222
 
  fi
33223
 
 
33224
 
    ;;
33225
 
    esac
33226
 
  done
33227
 
 
33228
 
      
33229
 
  for ac_i in $LIBXML_INCS; do
33230
 
    case $ac_i in
33231
 
    -I*)
33232
 
      ac_ii=`echo $ac_i|cut -c 3-`
33233
 
      
33234
 
  if test "$ac_ii" != "/usr/include"; then
33235
 
    
33236
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
33237
 
    ai_p=$ac_ii
33238
 
  else
33239
 
    
33240
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
33241
 
    
33242
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33243
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
33244
 
  fi
33245
 
 
33246
 
    
33247
 
  
33248
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33249
 
  
33250
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
33251
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
33252
 
    eval "INCLUDEPATH$unique=set"
33253
 
    
33254
 
      if test ""; then
33255
 
        INCLUDES="-I$ai_p $INCLUDES"
33256
 
      else
33257
 
        INCLUDES="$INCLUDES -I$ai_p"
33258
 
      fi
33259
 
    
33260
 
  fi
33261
 
 
33262
 
  fi
33263
 
 
33264
 
    ;;
33265
 
    esac
33266
 
  done
33267
 
 
33268
 
 
33269
 
            { $as_echo "$as_me:$LINENO: checking whether libxml build works" >&5
33270
 
$as_echo_n "checking whether libxml build works... " >&6; }
33271
 
if test "${php_cv_libxml_build_works+set}" = set; then
33272
 
  $as_echo_n "(cached) " >&6
33273
 
else
33274
 
  
33275
 
        
33276
 
  old_LIBS=$LIBS
33277
 
  LIBS="
33278
 
          $LIBXML_SHARED_LIBADD
33279
 
         $LIBS"
33280
 
  if test "$cross_compiling" = yes; then
33281
 
  
33282
 
    LIBS=$old_LIBS
33283
 
  
33284
 
else
33285
 
  cat >conftest.$ac_ext <<_ACEOF
33286
 
/* confdefs.h.  */
33287
 
_ACEOF
33288
 
cat confdefs.h >>conftest.$ac_ext
33289
 
cat >>conftest.$ac_ext <<_ACEOF
33290
 
/* end confdefs.h.  */
33291
 
 
33292
 
    
33293
 
    char xmlInitParser();
33294
 
    int main() {
33295
 
      xmlInitParser();
33296
 
      return 0;
33297
 
    }
33298
 
  
33299
 
_ACEOF
33300
 
rm -f conftest$ac_exeext
33301
 
if { (ac_try="$ac_link"
33302
 
case "(($ac_try" in
33303
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33304
 
  *) ac_try_echo=$ac_try;;
33305
 
esac
33306
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33307
 
$as_echo "$ac_try_echo") >&5
33308
 
  (eval "$ac_link") 2>&5
33309
 
  ac_status=$?
33310
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33312
 
  { (case "(($ac_try" in
33313
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33314
 
  *) ac_try_echo=$ac_try;;
33315
 
esac
33316
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33317
 
$as_echo "$ac_try_echo") >&5
33318
 
  (eval "$ac_try") 2>&5
33319
 
  ac_status=$?
33320
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321
 
  (exit $ac_status); }; }; then
33322
 
  
33323
 
    LIBS=$old_LIBS
33324
 
    
33325
 
          php_cv_libxml_build_works=yes
33326
 
        
33327
 
  
33328
 
else
33329
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
33330
 
$as_echo "$as_me: failed program was:" >&5
33331
 
sed 's/^/| /' conftest.$ac_ext >&5
33332
 
 
33333
 
( exit $ac_status )
33334
 
 
33335
 
    LIBS=$old_LIBS
33336
 
    
33337
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
33338
 
$as_echo "no" >&6; }
33339
 
          { { $as_echo "$as_me:$LINENO: error: build test failed.  Please check the config.log for details." >&5
33340
 
$as_echo "$as_me: error: build test failed.  Please check the config.log for details." >&2;}
33341
 
   { (exit 1); exit 1; }; }
33342
 
        
33343
 
  
33344
 
fi
33345
 
rm -rf conftest.dSYM
33346
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33347
 
fi
33348
 
 
33349
 
 
33350
 
 
33351
 
      
33352
 
fi
33353
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
33354
 
$as_echo "$php_cv_libxml_build_works" >&6; }
33355
 
      if test "$php_cv_libxml_build_works" = "yes"; then
33356
 
        
33357
 
cat >>confdefs.h <<\_ACEOF
33358
 
@%:@define HAVE_LIBXML 1
33359
 
_ACEOF
33360
 
 
33361
 
      fi
33362
 
      
33363
 
    
33364
 
cat >>confdefs.h <<\_ACEOF
33365
 
@%:@define HAVE_LIBXML 1
33366
 
_ACEOF
33367
 
 
33368
 
    
33369
 
  ext_builddir=ext/libxml
33370
 
  ext_srcdir=$abs_srcdir/ext/libxml
33371
 
 
33372
 
  ac_extra=
33373
 
 
33374
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
33375
 
    PHP_LIBXML_SHARED=no
33376
 
    
33377
 
  
33378
 
  case ext/libxml in
33379
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33380
 
  /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33381
 
  *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33382
 
  esac
33383
 
  
33384
 
  
33385
 
 
33386
 
  b_c_pre=$php_c_pre
33387
 
  b_cxx_pre=$php_cxx_pre
33388
 
  b_c_meta=$php_c_meta
33389
 
  b_cxx_meta=$php_cxx_meta
33390
 
  b_c_post=$php_c_post
33391
 
  b_cxx_post=$php_cxx_post
33392
 
  b_lo=$php_lo
33393
 
 
33394
 
 
33395
 
  old_IFS=$IFS
33396
 
  for ac_src in libxml.c; do
33397
 
  
33398
 
      IFS=.
33399
 
      set $ac_src
33400
 
      ac_obj=$1
33401
 
      IFS=$old_IFS
33402
 
      
33403
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
33404
 
 
33405
 
      case $ac_src in
33406
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33407
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33408
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33409
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33410
 
      esac
33411
 
 
33412
 
    cat >>Makefile.objects<<EOF
33413
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33414
 
        $ac_comp
33415
 
EOF
33416
 
  done
33417
 
 
33418
 
 
33419
 
    EXT_STATIC="$EXT_STATIC libxml"
33420
 
    if test "$ext_shared" != "nocli"; then
33421
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
33422
 
    fi
33423
 
  else
33424
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
33425
 
      PHP_LIBXML_SHARED=yes
33426
 
      
33427
 
  case ext/libxml in
33428
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33429
 
  /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33430
 
  *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33431
 
  esac
33432
 
  
33433
 
  
33434
 
 
33435
 
  b_c_pre=$shared_c_pre
33436
 
  b_cxx_pre=$shared_cxx_pre
33437
 
  b_c_meta=$shared_c_meta
33438
 
  b_cxx_meta=$shared_cxx_meta
33439
 
  b_c_post=$shared_c_post
33440
 
  b_cxx_post=$shared_cxx_post
33441
 
  b_lo=$shared_lo
33442
 
 
33443
 
 
33444
 
  old_IFS=$IFS
33445
 
  for ac_src in libxml.c; do
33446
 
  
33447
 
      IFS=.
33448
 
      set $ac_src
33449
 
      ac_obj=$1
33450
 
      IFS=$old_IFS
33451
 
      
33452
 
      shared_objects_libxml="$shared_objects_libxml $ac_bdir$ac_obj.lo"
33453
 
 
33454
 
      case $ac_src in
33455
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33456
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33457
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33458
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33459
 
      esac
33460
 
 
33461
 
    cat >>Makefile.objects<<EOF
33462
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33463
 
        $ac_comp
33464
 
EOF
33465
 
  done
33466
 
 
33467
 
      case $host_alias in
33468
 
        *netware*)
33469
 
          
33470
 
  install_modules="install-modules"
33471
 
 
33472
 
  case $host_alias in
33473
 
    *aix*)
33474
 
      suffix=so
33475
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phplibxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(PHPLIBXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phplibxml.so '$ext_builddir'/phplibxml.so'
33476
 
      ;;
33477
 
    *netware*)
33478
 
      suffix=nlm
33479
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) -L$(top_builddir)/netware -lphp5lib $(LIBXML_SHARED_LIBADD)'
33480
 
      ;;
33481
 
    *)
33482
 
      suffix=la
33483
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(PHPLIBXML_SHARED_LIBADD)'
33484
 
      ;;
33485
 
  esac
33486
 
 
33487
 
  if test "x" = "xyes"; then
33488
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phplibxml.$suffix"
33489
 
  else
33490
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phplibxml.$suffix"
33491
 
  fi
33492
 
  
33493
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
33494
 
 
33495
 
  cat >>Makefile.objects<<EOF
33496
 
\$(phplibdir)/phplibxml.$suffix: $ext_builddir/phplibxml.$suffix
33497
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phplibxml.$suffix \$(phplibdir)
33498
 
 
33499
 
$ext_builddir/phplibxml.$suffix: \$(shared_objects_libxml) \$(PHPLIBXML_SHARED_DEPENDENCIES)
33500
 
        $link_cmd
33501
 
 
33502
 
EOF
33503
 
 
33504
 
          ;;
33505
 
        *)
33506
 
          
33507
 
  install_modules="install-modules"
33508
 
 
33509
 
  case $host_alias in
33510
 
    *aix*)
33511
 
      suffix=so
33512
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/libxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(LIBXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/libxml.so '$ext_builddir'/libxml.so'
33513
 
      ;;
33514
 
    *netware*)
33515
 
      suffix=nlm
33516
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) -L$(top_builddir)/netware -lphp5lib $(XML_SHARED_LIBADD)'
33517
 
      ;;
33518
 
    *)
33519
 
      suffix=la
33520
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_libxml) $(LIBXML_SHARED_LIBADD)'
33521
 
      ;;
33522
 
  esac
33523
 
 
33524
 
  if test "x" = "xyes"; then
33525
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/libxml.$suffix"
33526
 
  else
33527
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/libxml.$suffix"
33528
 
  fi
33529
 
  
33530
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
33531
 
 
33532
 
  cat >>Makefile.objects<<EOF
33533
 
\$(phplibdir)/libxml.$suffix: $ext_builddir/libxml.$suffix
33534
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/libxml.$suffix \$(phplibdir)
33535
 
 
33536
 
$ext_builddir/libxml.$suffix: \$(shared_objects_libxml) \$(LIBXML_SHARED_DEPENDENCIES)
33537
 
        $link_cmd
33538
 
 
33539
 
EOF
33540
 
 
33541
 
          ;;
33542
 
      esac
33543
 
      
33544
 
cat >>confdefs.h <<_ACEOF
33545
 
@%:@define COMPILE_DL_LIBXML 1
33546
 
_ACEOF
33547
 
 
33548
 
    fi
33549
 
  fi
33550
 
 
33551
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
33552
 
    PHP_LIBXML_SHARED=no
33553
 
    case "$PHP_SAPI" in
33554
 
      cgi|embed)
33555
 
        
33556
 
  
33557
 
  case ext/libxml in
33558
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33559
 
  /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33560
 
  *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33561
 
  esac
33562
 
  
33563
 
  
33564
 
 
33565
 
  b_c_pre=$php_c_pre
33566
 
  b_cxx_pre=$php_cxx_pre
33567
 
  b_c_meta=$php_c_meta
33568
 
  b_cxx_meta=$php_cxx_meta
33569
 
  b_c_post=$php_c_post
33570
 
  b_cxx_post=$php_cxx_post
33571
 
  b_lo=$php_lo
33572
 
 
33573
 
 
33574
 
  old_IFS=$IFS
33575
 
  for ac_src in libxml.c; do
33576
 
  
33577
 
      IFS=.
33578
 
      set $ac_src
33579
 
      ac_obj=$1
33580
 
      IFS=$old_IFS
33581
 
      
33582
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
33583
 
 
33584
 
      case $ac_src in
33585
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33586
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33587
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33588
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33589
 
      esac
33590
 
 
33591
 
    cat >>Makefile.objects<<EOF
33592
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33593
 
        $ac_comp
33594
 
EOF
33595
 
  done
33596
 
 
33597
 
 
33598
 
        EXT_STATIC="$EXT_STATIC libxml"
33599
 
        ;;
33600
 
      *)
33601
 
        
33602
 
  
33603
 
  case ext/libxml in
33604
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33605
 
  /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33606
 
  *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33607
 
  esac
33608
 
  
33609
 
  
33610
 
 
33611
 
  b_c_pre=$php_c_pre
33612
 
  b_cxx_pre=$php_cxx_pre
33613
 
  b_c_meta=$php_c_meta
33614
 
  b_cxx_meta=$php_cxx_meta
33615
 
  b_c_post=$php_c_post
33616
 
  b_cxx_post=$php_cxx_post
33617
 
  b_lo=$php_lo
33618
 
 
33619
 
 
33620
 
  old_IFS=$IFS
33621
 
  for ac_src in libxml.c; do
33622
 
  
33623
 
      IFS=.
33624
 
      set $ac_src
33625
 
      ac_obj=$1
33626
 
      IFS=$old_IFS
33627
 
      
33628
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
33629
 
 
33630
 
      case $ac_src in
33631
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33632
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33633
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33634
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33635
 
      esac
33636
 
 
33637
 
    cat >>Makefile.objects<<EOF
33638
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33639
 
        $ac_comp
33640
 
EOF
33641
 
  done
33642
 
 
33643
 
 
33644
 
        ;;
33645
 
    esac
33646
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
33647
 
  fi
33648
 
  
33649
 
  
33650
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
33651
 
  
33652
 
 
33653
 
 
33654
 
  if test "$ext_builddir" = "."; then
33655
 
    PHP_PECL_EXTENSION=libxml
33656
 
    
33657
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
33658
 
 
33659
 
  fi
33660
 
 
33661
 
    
33662
 
  
33663
 
    for header_file in ext/libxml/php_libxml.h; do
33664
 
      
33665
 
  
33666
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
33667
 
  
33668
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
33669
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
33670
 
    eval "INSTALLHEADERS$unique=set"
33671
 
    
33672
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
33673
 
      
33674
 
  fi
33675
 
 
33676
 
    done 
33677
 
  
33678
 
 
33679
 
  
33680
 
    else
33681
 
      { { $as_echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
33682
 
$as_echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
33683
 
   { (exit 1); exit 1; }; }
33684
 
    fi
33685
 
else 
33686
 
    { { $as_echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
33687
 
$as_echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
33688
 
   { (exit 1); exit 1; }; }
33689
 
  
33690
 
  fi
33691
 
 
33692
 
fi
33693
 
 
33694
 
 
33695
 
 
33696
 
php_with_openssl=no
33697
 
 
33698
 
{ $as_echo "$as_me:$LINENO: checking for OpenSSL support" >&5
33699
 
$as_echo_n "checking for OpenSSL support... " >&6; }
33700
 
 
33701
 
@%:@ Check whether --with-openssl was given.
33702
 
if test "${with_openssl+set}" = set; then
33703
 
  withval=$with_openssl; PHP_OPENSSL=$withval
33704
 
else
33705
 
  
33706
 
  PHP_OPENSSL=no
33707
 
  test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL
33708
 
 
33709
 
fi
33710
 
 
33711
 
 
33712
 
 
33713
 
ext_output="yes, shared"
33714
 
ext_shared=yes
33715
 
case $PHP_OPENSSL in
33716
 
shared,*)
33717
 
  PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'`
33718
 
  ;;
33719
 
shared)
33720
 
  PHP_OPENSSL=yes
33721
 
  ;;
33722
 
no)
33723
 
  ext_output=no
33724
 
  ext_shared=no
33725
 
  ;;
33726
 
*)
33727
 
  ext_output=yes
33728
 
  ext_shared=no
33729
 
  ;;
33730
 
esac
33731
 
 
33732
 
 
33733
 
 
33734
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
33735
 
$as_echo "$ext_output" >&6; }
33736
 
 
33737
 
 
33738
 
 
33739
 
 
33740
 
 
33741
 
php_with_kerberos=no
33742
 
 
33743
 
{ $as_echo "$as_me:$LINENO: checking for Kerberos support" >&5
33744
 
$as_echo_n "checking for Kerberos support... " >&6; }
33745
 
 
33746
 
@%:@ Check whether --with-kerberos was given.
33747
 
if test "${with_kerberos+set}" = set; then
33748
 
  withval=$with_kerberos; PHP_KERBEROS=$withval
33749
 
else
33750
 
  
33751
 
  PHP_KERBEROS=no
33752
 
  
33753
 
 
33754
 
fi
33755
 
 
33756
 
 
33757
 
ext_output=$PHP_KERBEROS
33758
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
33759
 
$as_echo "$ext_output" >&6; }
33760
 
 
33761
 
 
33762
 
 
33763
 
 
33764
 
if test "$PHP_OPENSSL" != "no"; then
33765
 
  
33766
 
  ext_builddir=ext/openssl
33767
 
  ext_srcdir=$abs_srcdir/ext/openssl
33768
 
 
33769
 
  ac_extra=
33770
 
 
33771
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
33772
 
    PHP_OPENSSL_SHARED=no
33773
 
    
33774
 
  
33775
 
  case ext/openssl in
33776
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33777
 
  /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33778
 
  *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33779
 
  esac
33780
 
  
33781
 
  
33782
 
 
33783
 
  b_c_pre=$php_c_pre
33784
 
  b_cxx_pre=$php_cxx_pre
33785
 
  b_c_meta=$php_c_meta
33786
 
  b_cxx_meta=$php_cxx_meta
33787
 
  b_c_post=$php_c_post
33788
 
  b_cxx_post=$php_cxx_post
33789
 
  b_lo=$php_lo
33790
 
 
33791
 
 
33792
 
  old_IFS=$IFS
33793
 
  for ac_src in openssl.c xp_ssl.c; do
33794
 
  
33795
 
      IFS=.
33796
 
      set $ac_src
33797
 
      ac_obj=$1
33798
 
      IFS=$old_IFS
33799
 
      
33800
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
33801
 
 
33802
 
      case $ac_src in
33803
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33804
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33805
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33806
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33807
 
      esac
33808
 
 
33809
 
    cat >>Makefile.objects<<EOF
33810
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33811
 
        $ac_comp
33812
 
EOF
33813
 
  done
33814
 
 
33815
 
 
33816
 
    EXT_STATIC="$EXT_STATIC openssl"
33817
 
    if test "$ext_shared" != "nocli"; then
33818
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
33819
 
    fi
33820
 
  else
33821
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
33822
 
      PHP_OPENSSL_SHARED=yes
33823
 
      
33824
 
  case ext/openssl in
33825
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33826
 
  /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33827
 
  *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33828
 
  esac
33829
 
  
33830
 
  
33831
 
 
33832
 
  b_c_pre=$shared_c_pre
33833
 
  b_cxx_pre=$shared_cxx_pre
33834
 
  b_c_meta=$shared_c_meta
33835
 
  b_cxx_meta=$shared_cxx_meta
33836
 
  b_c_post=$shared_c_post
33837
 
  b_cxx_post=$shared_cxx_post
33838
 
  b_lo=$shared_lo
33839
 
 
33840
 
 
33841
 
  old_IFS=$IFS
33842
 
  for ac_src in openssl.c xp_ssl.c; do
33843
 
  
33844
 
      IFS=.
33845
 
      set $ac_src
33846
 
      ac_obj=$1
33847
 
      IFS=$old_IFS
33848
 
      
33849
 
      shared_objects_openssl="$shared_objects_openssl $ac_bdir$ac_obj.lo"
33850
 
 
33851
 
      case $ac_src in
33852
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33853
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33854
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33855
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33856
 
      esac
33857
 
 
33858
 
    cat >>Makefile.objects<<EOF
33859
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33860
 
        $ac_comp
33861
 
EOF
33862
 
  done
33863
 
 
33864
 
      case $host_alias in
33865
 
        *netware*)
33866
 
          
33867
 
  install_modules="install-modules"
33868
 
 
33869
 
  case $host_alias in
33870
 
    *aix*)
33871
 
      suffix=so
33872
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpopenssl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(PHPOPENSSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpopenssl.so '$ext_builddir'/phpopenssl.so'
33873
 
      ;;
33874
 
    *netware*)
33875
 
      suffix=nlm
33876
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) -L$(top_builddir)/netware -lphp5lib $(OPENSSL_SHARED_LIBADD)'
33877
 
      ;;
33878
 
    *)
33879
 
      suffix=la
33880
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(PHPOPENSSL_SHARED_LIBADD)'
33881
 
      ;;
33882
 
  esac
33883
 
 
33884
 
  if test "x" = "xyes"; then
33885
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpopenssl.$suffix"
33886
 
  else
33887
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpopenssl.$suffix"
33888
 
  fi
33889
 
  
33890
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
33891
 
 
33892
 
  cat >>Makefile.objects<<EOF
33893
 
\$(phplibdir)/phpopenssl.$suffix: $ext_builddir/phpopenssl.$suffix
33894
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpopenssl.$suffix \$(phplibdir)
33895
 
 
33896
 
$ext_builddir/phpopenssl.$suffix: \$(shared_objects_openssl) \$(PHPOPENSSL_SHARED_DEPENDENCIES)
33897
 
        $link_cmd
33898
 
 
33899
 
EOF
33900
 
 
33901
 
          ;;
33902
 
        *)
33903
 
          
33904
 
  install_modules="install-modules"
33905
 
 
33906
 
  case $host_alias in
33907
 
    *aix*)
33908
 
      suffix=so
33909
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/openssl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(OPENSSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/openssl.so '$ext_builddir'/openssl.so'
33910
 
      ;;
33911
 
    *netware*)
33912
 
      suffix=nlm
33913
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) -L$(top_builddir)/netware -lphp5lib $(NSSL_SHARED_LIBADD)'
33914
 
      ;;
33915
 
    *)
33916
 
      suffix=la
33917
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_openssl) $(OPENSSL_SHARED_LIBADD)'
33918
 
      ;;
33919
 
  esac
33920
 
 
33921
 
  if test "x" = "xyes"; then
33922
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/openssl.$suffix"
33923
 
  else
33924
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/openssl.$suffix"
33925
 
  fi
33926
 
  
33927
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
33928
 
 
33929
 
  cat >>Makefile.objects<<EOF
33930
 
\$(phplibdir)/openssl.$suffix: $ext_builddir/openssl.$suffix
33931
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/openssl.$suffix \$(phplibdir)
33932
 
 
33933
 
$ext_builddir/openssl.$suffix: \$(shared_objects_openssl) \$(OPENSSL_SHARED_DEPENDENCIES)
33934
 
        $link_cmd
33935
 
 
33936
 
EOF
33937
 
 
33938
 
          ;;
33939
 
      esac
33940
 
      
33941
 
cat >>confdefs.h <<_ACEOF
33942
 
@%:@define COMPILE_DL_OPENSSL 1
33943
 
_ACEOF
33944
 
 
33945
 
    fi
33946
 
  fi
33947
 
 
33948
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
33949
 
    PHP_OPENSSL_SHARED=no
33950
 
    case "$PHP_SAPI" in
33951
 
      cgi|embed)
33952
 
        
33953
 
  
33954
 
  case ext/openssl in
33955
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33956
 
  /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33957
 
  *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33958
 
  esac
33959
 
  
33960
 
  
33961
 
 
33962
 
  b_c_pre=$php_c_pre
33963
 
  b_cxx_pre=$php_cxx_pre
33964
 
  b_c_meta=$php_c_meta
33965
 
  b_cxx_meta=$php_cxx_meta
33966
 
  b_c_post=$php_c_post
33967
 
  b_cxx_post=$php_cxx_post
33968
 
  b_lo=$php_lo
33969
 
 
33970
 
 
33971
 
  old_IFS=$IFS
33972
 
  for ac_src in openssl.c xp_ssl.c; do
33973
 
  
33974
 
      IFS=.
33975
 
      set $ac_src
33976
 
      ac_obj=$1
33977
 
      IFS=$old_IFS
33978
 
      
33979
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
33980
 
 
33981
 
      case $ac_src in
33982
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33983
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33984
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33985
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33986
 
      esac
33987
 
 
33988
 
    cat >>Makefile.objects<<EOF
33989
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33990
 
        $ac_comp
33991
 
EOF
33992
 
  done
33993
 
 
33994
 
 
33995
 
        EXT_STATIC="$EXT_STATIC openssl"
33996
 
        ;;
33997
 
      *)
33998
 
        
33999
 
  
34000
 
  case ext/openssl in
34001
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34002
 
  /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34003
 
  *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34004
 
  esac
34005
 
  
34006
 
  
34007
 
 
34008
 
  b_c_pre=$php_c_pre
34009
 
  b_cxx_pre=$php_cxx_pre
34010
 
  b_c_meta=$php_c_meta
34011
 
  b_cxx_meta=$php_cxx_meta
34012
 
  b_c_post=$php_c_post
34013
 
  b_cxx_post=$php_cxx_post
34014
 
  b_lo=$php_lo
34015
 
 
34016
 
 
34017
 
  old_IFS=$IFS
34018
 
  for ac_src in openssl.c xp_ssl.c; do
34019
 
  
34020
 
      IFS=.
34021
 
      set $ac_src
34022
 
      ac_obj=$1
34023
 
      IFS=$old_IFS
34024
 
      
34025
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
34026
 
 
34027
 
      case $ac_src in
34028
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34029
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34030
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34031
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34032
 
      esac
34033
 
 
34034
 
    cat >>Makefile.objects<<EOF
34035
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34036
 
        $ac_comp
34037
 
EOF
34038
 
  done
34039
 
 
34040
 
 
34041
 
        ;;
34042
 
    esac
34043
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
34044
 
  fi
34045
 
  
34046
 
  
34047
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
34048
 
  
34049
 
 
34050
 
 
34051
 
  if test "$ext_builddir" = "."; then
34052
 
    PHP_PECL_EXTENSION=openssl
34053
 
    
34054
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
34055
 
 
34056
 
  fi
34057
 
 
34058
 
  
34059
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST OPENSSL_SHARED_LIBADD"
34060
 
 
34061
 
 
34062
 
  if test "$PHP_KERBEROS" != "no"; then
34063
 
    
34064
 
  found_kerberos=no
34065
 
  unset KERBEROS_CFLAGS
34066
 
  unset KERBEROS_LIBS
34067
 
 
34068
 
    if test -z "$KRB5_CONFIG"; then
34069
 
    # Extract the first word of "krb5-config", so it can be a program name with args.
34070
 
set dummy krb5-config; ac_word=$2
34071
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34072
 
$as_echo_n "checking for $ac_word... " >&6; }
34073
 
if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then
34074
 
  $as_echo_n "(cached) " >&6
34075
 
else
34076
 
  case $KRB5_CONFIG in
34077
 
  [\\/]* | ?:[\\/]*)
34078
 
  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
34079
 
  ;;
34080
 
  *)
34081
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34082
 
as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
34083
 
for as_dir in $as_dummy
34084
 
do
34085
 
  IFS=$as_save_IFS
34086
 
  test -z "$as_dir" && as_dir=.
34087
 
  for ac_exec_ext in '' $ac_executable_extensions; do
34088
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34089
 
    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34090
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34091
 
    break 2
34092
 
  fi
34093
 
done
34094
 
done
34095
 
IFS=$as_save_IFS
34096
 
 
34097
 
  test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
34098
 
  ;;
34099
 
esac
34100
 
fi
34101
 
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
34102
 
if test -n "$KRB5_CONFIG"; then
34103
 
  { $as_echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
34104
 
$as_echo "$KRB5_CONFIG" >&6; }
34105
 
else
34106
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
34107
 
$as_echo "no" >&6; }
34108
 
fi
34109
 
 
34110
 
 
34111
 
  fi
34112
 
 
34113
 
    if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
34114
 
    KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
34115
 
    KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
34116
 
 
34117
 
    if test -n "$KERBEROS_LIBS"; then
34118
 
      found_kerberos=yes
34119
 
      
34120
 
  for ac_i in $KERBEROS_LIBS; do
34121
 
    case $ac_i in
34122
 
    -pthread)
34123
 
      if test "$ext_shared" = "yes"; then
34124
 
        OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
34125
 
      else
34126
 
        
34127
 
  
34128
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
34129
 
  
34130
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
34131
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34132
 
    eval "EXTRA_LDFLAGS$unique=set"
34133
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
34134
 
  fi
34135
 
 
34136
 
      fi
34137
 
    ;;
34138
 
    -l*)
34139
 
      ac_ii=`echo $ac_i|cut -c 3-`
34140
 
      
34141
 
  
34142
 
  case $ac_ii in
34143
 
  c|c_r|pthread*) ;;
34144
 
  *) 
34145
 
    if test "$ext_shared" = "yes"; then
34146
 
        OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" 
34147
 
    else
34148
 
      
34149
 
  
34150
 
  case $ac_ii in
34151
 
  c|c_r|pthread*) ;;
34152
 
  *) 
34153
 
      LIBS="$LIBS -l$ac_ii" 
34154
 
   ;;
34155
 
  esac
34156
 
 
34157
 
 
34158
 
    fi
34159
 
   ;;
34160
 
  esac
34161
 
 
34162
 
 
34163
 
    ;;
34164
 
    -L*)
34165
 
      ac_ii=`echo $ac_i|cut -c 3-`
34166
 
      
34167
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
34168
 
    
34169
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34170
 
    ai_p=$ac_ii
34171
 
  else
34172
 
    
34173
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
34174
 
    
34175
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34176
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
34177
 
  fi
34178
 
 
34179
 
    
34180
 
      if test "$ext_shared" = "yes"; then
34181
 
        OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
34182
 
        test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
34183
 
      else
34184
 
        
34185
 
  
34186
 
  
34187
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34188
 
  
34189
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34190
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34191
 
    eval "LIBPATH$unique=set"
34192
 
    
34193
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34194
 
    LDFLAGS="$LDFLAGS -L$ai_p"
34195
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
34196
 
  
34197
 
  fi
34198
 
 
34199
 
 
34200
 
      fi
34201
 
    
34202
 
  fi
34203
 
 
34204
 
    ;;
34205
 
    esac
34206
 
  done
34207
 
 
34208
 
      
34209
 
  for ac_i in $KERBEROS_CFLAGS; do
34210
 
    case $ac_i in
34211
 
    -I*)
34212
 
      ac_ii=`echo $ac_i|cut -c 3-`
34213
 
      
34214
 
  if test "$ac_ii" != "/usr/include"; then
34215
 
    
34216
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34217
 
    ai_p=$ac_ii
34218
 
  else
34219
 
    
34220
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
34221
 
    
34222
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34223
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
34224
 
  fi
34225
 
 
34226
 
    
34227
 
  
34228
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34229
 
  
34230
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
34231
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34232
 
    eval "INCLUDEPATH$unique=set"
34233
 
    
34234
 
      if test ""; then
34235
 
        INCLUDES="-I$ai_p $INCLUDES"
34236
 
      else
34237
 
        INCLUDES="$INCLUDES -I$ai_p"
34238
 
      fi
34239
 
    
34240
 
  fi
34241
 
 
34242
 
  fi
34243
 
 
34244
 
    ;;
34245
 
    esac
34246
 
  done
34247
 
 
34248
 
    fi
34249
 
  fi
34250
 
 
34251
 
    if test "$found_kerberos" = "no"; then
34252
 
 
34253
 
    if test "$PHP_KERBEROS" = "yes"; then
34254
 
      PHP_KERBEROS="/usr/kerberos /usr/local /usr"
34255
 
    fi
34256
 
 
34257
 
    for i in $PHP_KERBEROS; do
34258
 
      if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
34259
 
        PHP_KERBEROS_DIR=$i
34260
 
        break
34261
 
      fi
34262
 
    done
34263
 
 
34264
 
    if test "$PHP_KERBEROS_DIR"; then
34265
 
      found_kerberos=yes
34266
 
      
34267
 
  if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
34268
 
    
34269
 
  if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
34270
 
    ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
34271
 
  else
34272
 
    
34273
 
    ep_dir="`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
34274
 
    
34275
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34276
 
    ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/$PHP_LIBDIR\"`"
34277
 
  fi
34278
 
 
34279
 
    
34280
 
      if test "$ext_shared" = "yes"; then
34281
 
        OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
34282
 
        test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
34283
 
      else
34284
 
        
34285
 
  
34286
 
  
34287
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34288
 
  
34289
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34290
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34291
 
    eval "LIBPATH$unique=set"
34292
 
    
34293
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34294
 
    LDFLAGS="$LDFLAGS -L$ai_p"
34295
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
34296
 
  
34297
 
  fi
34298
 
 
34299
 
 
34300
 
      fi
34301
 
    
34302
 
  fi
34303
 
 
34304
 
      
34305
 
  
34306
 
  case gssapi_krb5 in
34307
 
  c|c_r|pthread*) ;;
34308
 
  *) 
34309
 
    if test "$ext_shared" = "yes"; then
34310
 
        OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lgssapi_krb5" 
34311
 
    else
34312
 
      
34313
 
  
34314
 
  case gssapi_krb5 in
34315
 
  c|c_r|pthread*) ;;
34316
 
  *) 
34317
 
      LIBS="$LIBS -lgssapi_krb5" 
34318
 
   ;;
34319
 
  esac
34320
 
 
34321
 
 
34322
 
    fi
34323
 
   ;;
34324
 
  esac
34325
 
 
34326
 
 
34327
 
      
34328
 
  
34329
 
  case krb5 in
34330
 
  c|c_r|pthread*) ;;
34331
 
  *) 
34332
 
    if test "$ext_shared" = "yes"; then
34333
 
        OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lkrb5" 
34334
 
    else
34335
 
      
34336
 
  
34337
 
  case krb5 in
34338
 
  c|c_r|pthread*) ;;
34339
 
  *) 
34340
 
      LIBS="$LIBS -lkrb5" 
34341
 
   ;;
34342
 
  esac
34343
 
 
34344
 
 
34345
 
    fi
34346
 
   ;;
34347
 
  esac
34348
 
 
34349
 
 
34350
 
      
34351
 
  
34352
 
  case k5crypto in
34353
 
  c|c_r|pthread*) ;;
34354
 
  *) 
34355
 
    if test "$ext_shared" = "yes"; then
34356
 
        OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lk5crypto" 
34357
 
    else
34358
 
      
34359
 
  
34360
 
  case k5crypto in
34361
 
  c|c_r|pthread*) ;;
34362
 
  *) 
34363
 
      LIBS="$LIBS -lk5crypto" 
34364
 
   ;;
34365
 
  esac
34366
 
 
34367
 
 
34368
 
    fi
34369
 
   ;;
34370
 
  esac
34371
 
 
34372
 
 
34373
 
      
34374
 
  
34375
 
  case com_err in
34376
 
  c|c_r|pthread*) ;;
34377
 
  *) 
34378
 
    if test "$ext_shared" = "yes"; then
34379
 
        OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lcom_err" 
34380
 
    else
34381
 
      
34382
 
  
34383
 
  case com_err in
34384
 
  c|c_r|pthread*) ;;
34385
 
  *) 
34386
 
      LIBS="$LIBS -lcom_err" 
34387
 
   ;;
34388
 
  esac
34389
 
 
34390
 
 
34391
 
    fi
34392
 
   ;;
34393
 
  esac
34394
 
 
34395
 
 
34396
 
      
34397
 
  if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
34398
 
    
34399
 
  if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
34400
 
    ai_p=$PHP_KERBEROS_DIR/include
34401
 
  else
34402
 
    
34403
 
    ep_dir="`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
34404
 
    
34405
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34406
 
    ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/include\"`"
34407
 
  fi
34408
 
 
34409
 
    
34410
 
  
34411
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34412
 
  
34413
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
34414
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34415
 
    eval "INCLUDEPATH$unique=set"
34416
 
    
34417
 
      if test ""; then
34418
 
        INCLUDES="-I$ai_p $INCLUDES"
34419
 
      else
34420
 
        INCLUDES="$INCLUDES -I$ai_p"
34421
 
      fi
34422
 
    
34423
 
  fi
34424
 
 
34425
 
  fi
34426
 
 
34427
 
    fi
34428
 
  fi
34429
 
 
34430
 
  if test "$found_kerberos" = "yes"; then
34431
 
:
34432
 
 
34433
 
  fi
34434
 
 
34435
 
  fi
34436
 
 
34437
 
  { $as_echo "$as_me:$LINENO: checking for DSA_get_default_method in -lssl" >&5
34438
 
$as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; }
34439
 
if test "${ac_cv_lib_ssl_DSA_get_default_method+set}" = set; then
34440
 
  $as_echo_n "(cached) " >&6
34441
 
else
34442
 
  ac_check_lib_save_LIBS=$LIBS
34443
 
LIBS="-lssl  $LIBS"
34444
 
cat >conftest.$ac_ext <<_ACEOF
34445
 
/* confdefs.h.  */
34446
 
_ACEOF
34447
 
cat confdefs.h >>conftest.$ac_ext
34448
 
cat >>conftest.$ac_ext <<_ACEOF
34449
 
/* end confdefs.h.  */
34450
 
 
34451
 
/* Override any GCC internal prototype to avoid an error.
34452
 
   Use char because int might match the return type of a GCC
34453
 
   builtin and then its argument prototype would still apply.  */
34454
 
#ifdef __cplusplus
34455
 
extern "C"
34456
 
#endif
34457
 
char DSA_get_default_method ();
34458
 
int
34459
 
main ()
34460
 
{
34461
 
return DSA_get_default_method ();
34462
 
  ;
34463
 
  return 0;
34464
 
}
34465
 
_ACEOF
34466
 
rm -f conftest.$ac_objext conftest$ac_exeext
34467
 
if { (ac_try="$ac_link"
34468
 
case "(($ac_try" in
34469
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34470
 
  *) ac_try_echo=$ac_try;;
34471
 
esac
34472
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34473
 
$as_echo "$ac_try_echo") >&5
34474
 
  (eval "$ac_link") 2>conftest.er1
34475
 
  ac_status=$?
34476
 
  grep -v '^ *+' conftest.er1 >conftest.err
34477
 
  rm -f conftest.er1
34478
 
  cat conftest.err >&5
34479
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480
 
  (exit $ac_status); } && {
34481
 
         test -z "$ac_c_werror_flag" ||
34482
 
         test ! -s conftest.err
34483
 
       } && test -s conftest$ac_exeext && {
34484
 
         test "$cross_compiling" = yes ||
34485
 
         $as_test_x conftest$ac_exeext
34486
 
       }; then
34487
 
  ac_cv_lib_ssl_DSA_get_default_method=yes
34488
 
else
34489
 
  $as_echo "$as_me: failed program was:" >&5
34490
 
sed 's/^/| /' conftest.$ac_ext >&5
34491
 
 
34492
 
        ac_cv_lib_ssl_DSA_get_default_method=no
34493
 
fi
34494
 
 
34495
 
rm -rf conftest.dSYM
34496
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34497
 
      conftest$ac_exeext conftest.$ac_ext
34498
 
LIBS=$ac_check_lib_save_LIBS
34499
 
fi
34500
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5
34501
 
$as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; }
34502
 
if test "x$ac_cv_lib_ssl_DSA_get_default_method" = x""yes; then
34503
 
  
34504
 
cat >>confdefs.h <<\_ACEOF
34505
 
@%:@define HAVE_DSA_DEFAULT_METHOD 1
34506
 
_ACEOF
34507
 
 
34508
 
fi
34509
 
 
34510
 
  { $as_echo "$as_me:$LINENO: checking for X509_free in -lcrypto" >&5
34511
 
$as_echo_n "checking for X509_free in -lcrypto... " >&6; }
34512
 
if test "${ac_cv_lib_crypto_X509_free+set}" = set; then
34513
 
  $as_echo_n "(cached) " >&6
34514
 
else
34515
 
  ac_check_lib_save_LIBS=$LIBS
34516
 
LIBS="-lcrypto  $LIBS"
34517
 
cat >conftest.$ac_ext <<_ACEOF
34518
 
/* confdefs.h.  */
34519
 
_ACEOF
34520
 
cat confdefs.h >>conftest.$ac_ext
34521
 
cat >>conftest.$ac_ext <<_ACEOF
34522
 
/* end confdefs.h.  */
34523
 
 
34524
 
/* Override any GCC internal prototype to avoid an error.
34525
 
   Use char because int might match the return type of a GCC
34526
 
   builtin and then its argument prototype would still apply.  */
34527
 
#ifdef __cplusplus
34528
 
extern "C"
34529
 
#endif
34530
 
char X509_free ();
34531
 
int
34532
 
main ()
34533
 
{
34534
 
return X509_free ();
34535
 
  ;
34536
 
  return 0;
34537
 
}
34538
 
_ACEOF
34539
 
rm -f conftest.$ac_objext conftest$ac_exeext
34540
 
if { (ac_try="$ac_link"
34541
 
case "(($ac_try" in
34542
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34543
 
  *) ac_try_echo=$ac_try;;
34544
 
esac
34545
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34546
 
$as_echo "$ac_try_echo") >&5
34547
 
  (eval "$ac_link") 2>conftest.er1
34548
 
  ac_status=$?
34549
 
  grep -v '^ *+' conftest.er1 >conftest.err
34550
 
  rm -f conftest.er1
34551
 
  cat conftest.err >&5
34552
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553
 
  (exit $ac_status); } && {
34554
 
         test -z "$ac_c_werror_flag" ||
34555
 
         test ! -s conftest.err
34556
 
       } && test -s conftest$ac_exeext && {
34557
 
         test "$cross_compiling" = yes ||
34558
 
         $as_test_x conftest$ac_exeext
34559
 
       }; then
34560
 
  ac_cv_lib_crypto_X509_free=yes
34561
 
else
34562
 
  $as_echo "$as_me: failed program was:" >&5
34563
 
sed 's/^/| /' conftest.$ac_ext >&5
34564
 
 
34565
 
        ac_cv_lib_crypto_X509_free=no
34566
 
fi
34567
 
 
34568
 
rm -rf conftest.dSYM
34569
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34570
 
      conftest$ac_exeext conftest.$ac_ext
34571
 
LIBS=$ac_check_lib_save_LIBS
34572
 
fi
34573
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_free" >&5
34574
 
$as_echo "$ac_cv_lib_crypto_X509_free" >&6; }
34575
 
if test "x$ac_cv_lib_crypto_X509_free" = x""yes; then
34576
 
  
34577
 
cat >>confdefs.h <<\_ACEOF
34578
 
@%:@define HAVE_DSA_DEFAULT_METHOD 1
34579
 
_ACEOF
34580
 
 
34581
 
fi
34582
 
 
34583
 
 
34584
 
  
34585
 
  found_openssl=no
34586
 
  unset OPENSSL_INCDIR
34587
 
  unset OPENSSL_LIBDIR
34588
 
 
34589
 
    test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
34590
 
  test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
34591
 
 
34592
 
    if test "$PHP_OPENSSL" != "no"; then
34593
 
    PHP_OPENSSL_DIR=$PHP_OPENSSL
34594
 
  elif test "$PHP_IMAP_SSL" != "no"; then
34595
 
    PHP_OPENSSL_DIR=$PHP_IMAP_SSL
34596
 
  fi
34597
 
 
34598
 
    if test -z "$PKG_CONFIG"; then
34599
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
34600
 
set dummy pkg-config; ac_word=$2
34601
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34602
 
$as_echo_n "checking for $ac_word... " >&6; }
34603
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34604
 
  $as_echo_n "(cached) " >&6
34605
 
else
34606
 
  case $PKG_CONFIG in
34607
 
  [\\/]* | ?:[\\/]*)
34608
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34609
 
  ;;
34610
 
  *)
34611
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34612
 
for as_dir in $PATH
34613
 
do
34614
 
  IFS=$as_save_IFS
34615
 
  test -z "$as_dir" && as_dir=.
34616
 
  for ac_exec_ext in '' $ac_executable_extensions; do
34617
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34618
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34619
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34620
 
    break 2
34621
 
  fi
34622
 
done
34623
 
done
34624
 
IFS=$as_save_IFS
34625
 
 
34626
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
34627
 
  ;;
34628
 
esac
34629
 
fi
34630
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34631
 
if test -n "$PKG_CONFIG"; then
34632
 
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34633
 
$as_echo "$PKG_CONFIG" >&6; }
34634
 
else
34635
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
34636
 
$as_echo "no" >&6; }
34637
 
fi
34638
 
 
34639
 
 
34640
 
  fi
34641
 
 
34642
 
    if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
34643
 
    if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
34644
 
      found_openssl=yes
34645
 
      OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
34646
 
      OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
34647
 
      OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
34648
 
    else
34649
 
      { { $as_echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
34650
 
$as_echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
34651
 
   { (exit 1); exit 1; }; }
34652
 
    fi
34653
 
 
34654
 
    if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
34655
 
      
34656
 
  for ac_i in $OPENSSL_LIBS; do
34657
 
    case $ac_i in
34658
 
    -pthread)
34659
 
      if test "$ext_shared" = "yes"; then
34660
 
        OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
34661
 
      else
34662
 
        
34663
 
  
34664
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
34665
 
  
34666
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
34667
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34668
 
    eval "EXTRA_LDFLAGS$unique=set"
34669
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
34670
 
  fi
34671
 
 
34672
 
      fi
34673
 
    ;;
34674
 
    -l*)
34675
 
      ac_ii=`echo $ac_i|cut -c 3-`
34676
 
      
34677
 
  
34678
 
  case $ac_ii in
34679
 
  c|c_r|pthread*) ;;
34680
 
  *) 
34681
 
    if test "$ext_shared" = "yes"; then
34682
 
        OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii" 
34683
 
    else
34684
 
      
34685
 
  
34686
 
  case $ac_ii in
34687
 
  c|c_r|pthread*) ;;
34688
 
  *) 
34689
 
      LIBS="$LIBS -l$ac_ii" 
34690
 
   ;;
34691
 
  esac
34692
 
 
34693
 
 
34694
 
    fi
34695
 
   ;;
34696
 
  esac
34697
 
 
34698
 
 
34699
 
    ;;
34700
 
    -L*)
34701
 
      ac_ii=`echo $ac_i|cut -c 3-`
34702
 
      
34703
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
34704
 
    
34705
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34706
 
    ai_p=$ac_ii
34707
 
  else
34708
 
    
34709
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
34710
 
    
34711
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34712
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
34713
 
  fi
34714
 
 
34715
 
    
34716
 
      if test "$ext_shared" = "yes"; then
34717
 
        OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
34718
 
        test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
34719
 
      else
34720
 
        
34721
 
  
34722
 
  
34723
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34724
 
  
34725
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34726
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34727
 
    eval "LIBPATH$unique=set"
34728
 
    
34729
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34730
 
    LDFLAGS="$LDFLAGS -L$ai_p"
34731
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
34732
 
  
34733
 
  fi
34734
 
 
34735
 
 
34736
 
      fi
34737
 
    
34738
 
  fi
34739
 
 
34740
 
    ;;
34741
 
    esac
34742
 
  done
34743
 
 
34744
 
      
34745
 
  for ac_i in $OPENSSL_INCS; do
34746
 
    case $ac_i in
34747
 
    -I*)
34748
 
      ac_ii=`echo $ac_i|cut -c 3-`
34749
 
      
34750
 
  if test "$ac_ii" != "/usr/include"; then
34751
 
    
34752
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34753
 
    ai_p=$ac_ii
34754
 
  else
34755
 
    
34756
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
34757
 
    
34758
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34759
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
34760
 
  fi
34761
 
 
34762
 
    
34763
 
  
34764
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34765
 
  
34766
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
34767
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34768
 
    eval "INCLUDEPATH$unique=set"
34769
 
    
34770
 
      if test ""; then
34771
 
        INCLUDES="-I$ai_p $INCLUDES"
34772
 
      else
34773
 
        INCLUDES="$INCLUDES -I$ai_p"
34774
 
      fi
34775
 
    
34776
 
  fi
34777
 
 
34778
 
  fi
34779
 
 
34780
 
    ;;
34781
 
    esac
34782
 
  done
34783
 
 
34784
 
    fi
34785
 
  fi
34786
 
 
34787
 
    if test "$found_openssl" = "no"; then
34788
 
  
34789
 
    if test "$PHP_OPENSSL_DIR" = "yes"; then
34790
 
      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
34791
 
    fi
34792
 
 
34793
 
    for i in $PHP_OPENSSL_DIR; do
34794
 
      if test -r $i/include/openssl/evp.h; then
34795
 
        OPENSSL_INCDIR=$i/include
34796
 
      fi
34797
 
      if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
34798
 
        OPENSSL_LIBDIR=$i/$PHP_LIBDIR
34799
 
      fi
34800
 
      test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
34801
 
    done
34802
 
 
34803
 
    if test -z "$OPENSSL_INCDIR"; then
34804
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find OpenSSL's <evp.h>" >&5
34805
 
$as_echo "$as_me: error: Cannot find OpenSSL's <evp.h>" >&2;}
34806
 
   { (exit 1); exit 1; }; }
34807
 
    fi
34808
 
 
34809
 
    if test -z "$OPENSSL_LIBDIR"; then
34810
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find OpenSSL's libraries" >&5
34811
 
$as_echo "$as_me: error: Cannot find OpenSSL's libraries" >&2;}
34812
 
   { (exit 1); exit 1; }; }
34813
 
    fi
34814
 
 
34815
 
    old_CPPFLAGS=$CPPFLAGS
34816
 
    CPPFLAGS=-I$OPENSSL_INCDIR
34817
 
    { $as_echo "$as_me:$LINENO: checking for OpenSSL version" >&5
34818
 
$as_echo_n "checking for OpenSSL version... " >&6; }
34819
 
    cat >conftest.$ac_ext <<_ACEOF
34820
 
/* confdefs.h.  */
34821
 
_ACEOF
34822
 
cat confdefs.h >>conftest.$ac_ext
34823
 
cat >>conftest.$ac_ext <<_ACEOF
34824
 
/* end confdefs.h.  */
34825
 
 
34826
 
#include <openssl/opensslv.h>
34827
 
#if OPENSSL_VERSION_NUMBER >= 0x0090600fL
34828
 
  yes
34829
 
#endif
34830
 
    
34831
 
_ACEOF
34832
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34833
 
  $EGREP "yes" >/dev/null 2>&1; then
34834
 
  
34835
 
      { $as_echo "$as_me:$LINENO: result: >= 0.9.6" >&5
34836
 
$as_echo ">= 0.9.6" >&6; }
34837
 
    
34838
 
else
34839
 
  
34840
 
      { { $as_echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
34841
 
$as_echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
34842
 
   { (exit 1); exit 1; }; }
34843
 
    
34844
 
fi
34845
 
rm -f conftest*
34846
 
 
34847
 
    CPPFLAGS=$old_CPPFLAGS
34848
 
 
34849
 
    
34850
 
  if test "$OPENSSL_INCDIR" != "/usr/include"; then
34851
 
    
34852
 
  if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
34853
 
    ai_p=$OPENSSL_INCDIR
34854
 
  else
34855
 
    
34856
 
    ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
34857
 
    
34858
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34859
 
    ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
34860
 
  fi
34861
 
 
34862
 
    
34863
 
  
34864
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34865
 
  
34866
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
34867
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34868
 
    eval "INCLUDEPATH$unique=set"
34869
 
    
34870
 
      if test ""; then
34871
 
        INCLUDES="-I$ai_p $INCLUDES"
34872
 
      else
34873
 
        INCLUDES="$INCLUDES -I$ai_p"
34874
 
      fi
34875
 
    
34876
 
  fi
34877
 
 
34878
 
  fi
34879
 
 
34880
 
  
34881
 
    
34882
 
  save_old_LDFLAGS=$LDFLAGS
34883
 
  ac_stuff="
34884
 
      -L$OPENSSL_LIBDIR
34885
 
    "
34886
 
  
34887
 
  save_ext_shared=$ext_shared
34888
 
  ext_shared=yes
34889
 
  
34890
 
  for ac_i in $ac_stuff; do
34891
 
    case $ac_i in
34892
 
    -pthread)
34893
 
      if test "$ext_shared" = "yes"; then
34894
 
        LDFLAGS="$LDFLAGS -pthread"
34895
 
      else
34896
 
        
34897
 
  
34898
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
34899
 
  
34900
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
34901
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34902
 
    eval "EXTRA_LDFLAGS$unique=set"
34903
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
34904
 
  fi
34905
 
 
34906
 
      fi
34907
 
    ;;
34908
 
    -l*)
34909
 
      ac_ii=`echo $ac_i|cut -c 3-`
34910
 
      
34911
 
  
34912
 
  case $ac_ii in
34913
 
  c|c_r|pthread*) ;;
34914
 
  *) 
34915
 
    if test "$ext_shared" = "yes"; then
34916
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
34917
 
    else
34918
 
      
34919
 
  
34920
 
  case $ac_ii in
34921
 
  c|c_r|pthread*) ;;
34922
 
  *) 
34923
 
      LIBS="$LIBS -l$ac_ii" 
34924
 
   ;;
34925
 
  esac
34926
 
 
34927
 
 
34928
 
    fi
34929
 
   ;;
34930
 
  esac
34931
 
 
34932
 
 
34933
 
    ;;
34934
 
    -L*)
34935
 
      ac_ii=`echo $ac_i|cut -c 3-`
34936
 
      
34937
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
34938
 
    
34939
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34940
 
    ai_p=$ac_ii
34941
 
  else
34942
 
    
34943
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
34944
 
    
34945
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34946
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
34947
 
  fi
34948
 
 
34949
 
    
34950
 
      if test "$ext_shared" = "yes"; then
34951
 
        LDFLAGS="-L$ai_p $LDFLAGS"
34952
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
34953
 
      else
34954
 
        
34955
 
  
34956
 
  
34957
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34958
 
  
34959
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34960
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
34961
 
    eval "LIBPATH$unique=set"
34962
 
    
34963
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34964
 
    LDFLAGS="$LDFLAGS -L$ai_p"
34965
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
34966
 
  
34967
 
  fi
34968
 
 
34969
 
 
34970
 
      fi
34971
 
    
34972
 
  fi
34973
 
 
34974
 
    ;;
34975
 
    esac
34976
 
  done
34977
 
 
34978
 
  { $as_echo "$as_me:$LINENO: checking for CRYPTO_free in -lcrypto" >&5
34979
 
$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
34980
 
if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then
34981
 
  $as_echo_n "(cached) " >&6
34982
 
else
34983
 
  ac_check_lib_save_LIBS=$LIBS
34984
 
LIBS="-lcrypto  $LIBS"
34985
 
cat >conftest.$ac_ext <<_ACEOF
34986
 
/* confdefs.h.  */
34987
 
_ACEOF
34988
 
cat confdefs.h >>conftest.$ac_ext
34989
 
cat >>conftest.$ac_ext <<_ACEOF
34990
 
/* end confdefs.h.  */
34991
 
 
34992
 
/* Override any GCC internal prototype to avoid an error.
34993
 
   Use char because int might match the return type of a GCC
34994
 
   builtin and then its argument prototype would still apply.  */
34995
 
#ifdef __cplusplus
34996
 
extern "C"
34997
 
#endif
34998
 
char CRYPTO_free ();
34999
 
int
35000
 
main ()
35001
 
{
35002
 
return CRYPTO_free ();
35003
 
  ;
35004
 
  return 0;
35005
 
}
35006
 
_ACEOF
35007
 
rm -f conftest.$ac_objext conftest$ac_exeext
35008
 
if { (ac_try="$ac_link"
35009
 
case "(($ac_try" in
35010
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35011
 
  *) ac_try_echo=$ac_try;;
35012
 
esac
35013
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35014
 
$as_echo "$ac_try_echo") >&5
35015
 
  (eval "$ac_link") 2>conftest.er1
35016
 
  ac_status=$?
35017
 
  grep -v '^ *+' conftest.er1 >conftest.err
35018
 
  rm -f conftest.er1
35019
 
  cat conftest.err >&5
35020
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021
 
  (exit $ac_status); } && {
35022
 
         test -z "$ac_c_werror_flag" ||
35023
 
         test ! -s conftest.err
35024
 
       } && test -s conftest$ac_exeext && {
35025
 
         test "$cross_compiling" = yes ||
35026
 
         $as_test_x conftest$ac_exeext
35027
 
       }; then
35028
 
  ac_cv_lib_crypto_CRYPTO_free=yes
35029
 
else
35030
 
  $as_echo "$as_me: failed program was:" >&5
35031
 
sed 's/^/| /' conftest.$ac_ext >&5
35032
 
 
35033
 
        ac_cv_lib_crypto_CRYPTO_free=no
35034
 
fi
35035
 
 
35036
 
rm -rf conftest.dSYM
35037
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35038
 
      conftest$ac_exeext conftest.$ac_ext
35039
 
LIBS=$ac_check_lib_save_LIBS
35040
 
fi
35041
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
35042
 
$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
35043
 
if test "x$ac_cv_lib_crypto_CRYPTO_free" = x""yes; then
35044
 
  
35045
 
    LDFLAGS=$save_old_LDFLAGS
35046
 
    ext_shared=$save_ext_shared
35047
 
    
35048
 
      
35049
 
  
35050
 
  case crypto in
35051
 
  c|c_r|pthread*) ;;
35052
 
  *) 
35053
 
    if test "$ext_shared" = "yes"; then
35054
 
        OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD" 
35055
 
    else
35056
 
      
35057
 
  
35058
 
  case crypto in
35059
 
  c|c_r|pthread*) ;;
35060
 
  *) 
35061
 
      LIBS="-lcrypto $LIBS" 
35062
 
   ;;
35063
 
  esac
35064
 
 
35065
 
 
35066
 
    fi
35067
 
   ;;
35068
 
  esac
35069
 
 
35070
 
 
35071
 
    
35072
 
  
35073
 
else
35074
 
  
35075
 
    LDFLAGS=$save_old_LDFLAGS
35076
 
    ext_shared=$save_ext_shared
35077
 
    unset ac_cv_lib_crypto_CRYPTO_free
35078
 
    
35079
 
      { { $as_echo "$as_me:$LINENO: error: libcrypto not found!" >&5
35080
 
$as_echo "$as_me: error: libcrypto not found!" >&2;}
35081
 
   { (exit 1); exit 1; }; }
35082
 
    
35083
 
  
35084
 
fi
35085
 
 
35086
 
 
35087
 
    old_LIBS=$LIBS
35088
 
    LIBS="$LIBS -lcrypto"
35089
 
    
35090
 
  save_old_LDFLAGS=$LDFLAGS
35091
 
  ac_stuff="
35092
 
      -L$OPENSSL_LIBDIR
35093
 
    "
35094
 
  
35095
 
  save_ext_shared=$ext_shared
35096
 
  ext_shared=yes
35097
 
  
35098
 
  for ac_i in $ac_stuff; do
35099
 
    case $ac_i in
35100
 
    -pthread)
35101
 
      if test "$ext_shared" = "yes"; then
35102
 
        LDFLAGS="$LDFLAGS -pthread"
35103
 
      else
35104
 
        
35105
 
  
35106
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
35107
 
  
35108
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
35109
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
35110
 
    eval "EXTRA_LDFLAGS$unique=set"
35111
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
35112
 
  fi
35113
 
 
35114
 
      fi
35115
 
    ;;
35116
 
    -l*)
35117
 
      ac_ii=`echo $ac_i|cut -c 3-`
35118
 
      
35119
 
  
35120
 
  case $ac_ii in
35121
 
  c|c_r|pthread*) ;;
35122
 
  *) 
35123
 
    if test "$ext_shared" = "yes"; then
35124
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
35125
 
    else
35126
 
      
35127
 
  
35128
 
  case $ac_ii in
35129
 
  c|c_r|pthread*) ;;
35130
 
  *) 
35131
 
      LIBS="$LIBS -l$ac_ii" 
35132
 
   ;;
35133
 
  esac
35134
 
 
35135
 
 
35136
 
    fi
35137
 
   ;;
35138
 
  esac
35139
 
 
35140
 
 
35141
 
    ;;
35142
 
    -L*)
35143
 
      ac_ii=`echo $ac_i|cut -c 3-`
35144
 
      
35145
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
35146
 
    
35147
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
35148
 
    ai_p=$ac_ii
35149
 
  else
35150
 
    
35151
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
35152
 
    
35153
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35154
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
35155
 
  fi
35156
 
 
35157
 
    
35158
 
      if test "$ext_shared" = "yes"; then
35159
 
        LDFLAGS="-L$ai_p $LDFLAGS"
35160
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
35161
 
      else
35162
 
        
35163
 
  
35164
 
  
35165
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35166
 
  
35167
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
35168
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
35169
 
    eval "LIBPATH$unique=set"
35170
 
    
35171
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
35172
 
    LDFLAGS="$LDFLAGS -L$ai_p"
35173
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
35174
 
  
35175
 
  fi
35176
 
 
35177
 
 
35178
 
      fi
35179
 
    
35180
 
  fi
35181
 
 
35182
 
    ;;
35183
 
    esac
35184
 
  done
35185
 
 
35186
 
  { $as_echo "$as_me:$LINENO: checking for SSL_CTX_set_ssl_version in -lssl" >&5
35187
 
$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
35188
 
if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then
35189
 
  $as_echo_n "(cached) " >&6
35190
 
else
35191
 
  ac_check_lib_save_LIBS=$LIBS
35192
 
LIBS="-lssl  $LIBS"
35193
 
cat >conftest.$ac_ext <<_ACEOF
35194
 
/* confdefs.h.  */
35195
 
_ACEOF
35196
 
cat confdefs.h >>conftest.$ac_ext
35197
 
cat >>conftest.$ac_ext <<_ACEOF
35198
 
/* end confdefs.h.  */
35199
 
 
35200
 
/* Override any GCC internal prototype to avoid an error.
35201
 
   Use char because int might match the return type of a GCC
35202
 
   builtin and then its argument prototype would still apply.  */
35203
 
#ifdef __cplusplus
35204
 
extern "C"
35205
 
#endif
35206
 
char SSL_CTX_set_ssl_version ();
35207
 
int
35208
 
main ()
35209
 
{
35210
 
return SSL_CTX_set_ssl_version ();
35211
 
  ;
35212
 
  return 0;
35213
 
}
35214
 
_ACEOF
35215
 
rm -f conftest.$ac_objext conftest$ac_exeext
35216
 
if { (ac_try="$ac_link"
35217
 
case "(($ac_try" in
35218
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35219
 
  *) ac_try_echo=$ac_try;;
35220
 
esac
35221
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35222
 
$as_echo "$ac_try_echo") >&5
35223
 
  (eval "$ac_link") 2>conftest.er1
35224
 
  ac_status=$?
35225
 
  grep -v '^ *+' conftest.er1 >conftest.err
35226
 
  rm -f conftest.er1
35227
 
  cat conftest.err >&5
35228
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229
 
  (exit $ac_status); } && {
35230
 
         test -z "$ac_c_werror_flag" ||
35231
 
         test ! -s conftest.err
35232
 
       } && test -s conftest$ac_exeext && {
35233
 
         test "$cross_compiling" = yes ||
35234
 
         $as_test_x conftest$ac_exeext
35235
 
       }; then
35236
 
  ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
35237
 
else
35238
 
  $as_echo "$as_me: failed program was:" >&5
35239
 
sed 's/^/| /' conftest.$ac_ext >&5
35240
 
 
35241
 
        ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
35242
 
fi
35243
 
 
35244
 
rm -rf conftest.dSYM
35245
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35246
 
      conftest$ac_exeext conftest.$ac_ext
35247
 
LIBS=$ac_check_lib_save_LIBS
35248
 
fi
35249
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
35250
 
$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
35251
 
if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = x""yes; then
35252
 
  
35253
 
    LDFLAGS=$save_old_LDFLAGS
35254
 
    ext_shared=$save_ext_shared
35255
 
    
35256
 
      found_openssl=yes
35257
 
    
35258
 
  
35259
 
else
35260
 
  
35261
 
    LDFLAGS=$save_old_LDFLAGS
35262
 
    ext_shared=$save_ext_shared
35263
 
    unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
35264
 
    
35265
 
      { { $as_echo "$as_me:$LINENO: error: libssl not found!" >&5
35266
 
$as_echo "$as_me: error: libssl not found!" >&2;}
35267
 
   { (exit 1); exit 1; }; }
35268
 
    
35269
 
  
35270
 
fi
35271
 
 
35272
 
    LIBS=$old_LIBS
35273
 
    
35274
 
  
35275
 
  case ssl in
35276
 
  c|c_r|pthread*) ;;
35277
 
  *) 
35278
 
    if test "$ext_shared" = "yes"; then
35279
 
        OPENSSL_SHARED_LIBADD="-lssl $OPENSSL_SHARED_LIBADD" 
35280
 
    else
35281
 
      
35282
 
  
35283
 
  case ssl in
35284
 
  c|c_r|pthread*) ;;
35285
 
  *) 
35286
 
      LIBS="-lssl $LIBS" 
35287
 
   ;;
35288
 
  esac
35289
 
 
35290
 
 
35291
 
    fi
35292
 
   ;;
35293
 
  esac
35294
 
 
35295
 
 
35296
 
    
35297
 
  
35298
 
  case crypto in
35299
 
  c|c_r|pthread*) ;;
35300
 
  *) 
35301
 
    if test "$ext_shared" = "yes"; then
35302
 
        OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD" 
35303
 
    else
35304
 
      
35305
 
  
35306
 
  case crypto in
35307
 
  c|c_r|pthread*) ;;
35308
 
  *) 
35309
 
      LIBS="-lcrypto $LIBS" 
35310
 
   ;;
35311
 
  esac
35312
 
 
35313
 
 
35314
 
    fi
35315
 
   ;;
35316
 
  esac
35317
 
 
35318
 
 
35319
 
 
35320
 
    
35321
 
  if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
35322
 
    
35323
 
  if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
35324
 
    ai_p=$OPENSSL_LIBDIR
35325
 
  else
35326
 
    
35327
 
    ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
35328
 
    
35329
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35330
 
    ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
35331
 
  fi
35332
 
 
35333
 
    
35334
 
      if test "$ext_shared" = "yes"; then
35335
 
        OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
35336
 
        test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
35337
 
      else
35338
 
        
35339
 
  
35340
 
  
35341
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35342
 
  
35343
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
35344
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
35345
 
    eval "LIBPATH$unique=set"
35346
 
    
35347
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
35348
 
    LDFLAGS="$LDFLAGS -L$ai_p"
35349
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
35350
 
  
35351
 
  fi
35352
 
 
35353
 
 
35354
 
      fi
35355
 
    
35356
 
  fi
35357
 
 
35358
 
  fi
35359
 
 
35360
 
  if test "$found_openssl" = "yes"; then
35361
 
    OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
35362
 
  
35363
 
 
35364
 
 
35365
 
    
35366
 
cat >>confdefs.h <<\_ACEOF
35367
 
@%:@define HAVE_OPENSSL_EXT 1
35368
 
_ACEOF
35369
 
 
35370
 
  
35371
 
else 
35372
 
    { { $as_echo "$as_me:$LINENO: error: OpenSSL check failed. Please check config.log for more information." >&5
35373
 
$as_echo "$as_me: error: OpenSSL check failed. Please check config.log for more information." >&2;}
35374
 
   { (exit 1); exit 1; }; }
35375
 
  
35376
 
  fi
35377
 
 
35378
 
fi
35379
 
 
35380
 
 
35381
 
 
35382
 
 
35383
 
php_with_pcre_regex=yes
35384
 
 
35385
 
 
35386
 
 
35387
 
@%:@ Check whether --with-pcre-regex was given.
35388
 
if test "${with_pcre_regex+set}" = set; then
35389
 
  withval=$with_pcre_regex; PHP_PCRE_REGEX=$withval
35390
 
else
35391
 
  
35392
 
  PHP_PCRE_REGEX=yes
35393
 
  
35394
 
 
35395
 
fi
35396
 
 
35397
 
 
35398
 
ext_output=$PHP_PCRE_REGEX
35399
 
 
35400
 
 
35401
 
 
35402
 
 
35403
 
 
35404
 
  if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
35405
 
    { $as_echo "$as_me:$LINENO: checking for PCRE headers location" >&5
35406
 
$as_echo_n "checking for PCRE headers location... " >&6; }
35407
 
    for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do
35408
 
      test -f $i/pcre.h && PCRE_INCDIR=$i
35409
 
    done
35410
 
 
35411
 
    if test -z "$PCRE_INCDIR"; then
35412
 
      { { $as_echo "$as_me:$LINENO: error: Could not find pcre.h in $PHP_PCRE_REGEX" >&5
35413
 
$as_echo "$as_me: error: Could not find pcre.h in $PHP_PCRE_REGEX" >&2;}
35414
 
   { (exit 1); exit 1; }; }
35415
 
    fi
35416
 
    { $as_echo "$as_me:$LINENO: result: $PCRE_INCDIR" >&5
35417
 
$as_echo "$PCRE_INCDIR" >&6; }
35418
 
 
35419
 
    { $as_echo "$as_me:$LINENO: checking for PCRE library location" >&5
35420
 
$as_echo_n "checking for PCRE library location... " >&6; }
35421
 
    for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do
35422
 
      test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j
35423
 
    done
35424
 
    
35425
 
    if test -z "$PCRE_LIBDIR" ; then
35426
 
      { { $as_echo "$as_me:$LINENO: error: Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" >&5
35427
 
$as_echo "$as_me: error: Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" >&2;}
35428
 
   { (exit 1); exit 1; }; }
35429
 
    fi
35430
 
    { $as_echo "$as_me:$LINENO: result: $PCRE_LIBDIR" >&5
35431
 
$as_echo "$PCRE_LIBDIR" >&6; }
35432
 
 
35433
 
    
35434
 
    pcre_major=`grep PCRE_MAJOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
35435
 
    pcre_minor=`grep PCRE_MINOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
35436
 
    
35437
 
    pcre_minor_length=`echo "$pcre_minor" | wc -c | sed -e 's/^0-9//g'`
35438
 
    if test "$pcre_minor_length" -eq 2 ; then
35439
 
      pcre_minor="$pcre_minor"0
35440
 
    fi
35441
 
    pcre_version=$pcre_major$pcre_minor
35442
 
    if test "$pcre_version" -lt 660; then
35443
 
      { { $as_echo "$as_me:$LINENO: error: The PCRE extension requires PCRE library version >= 6.6" >&5
35444
 
$as_echo "$as_me: error: The PCRE extension requires PCRE library version >= 6.6" >&2;}
35445
 
   { (exit 1); exit 1; }; }
35446
 
    fi
35447
 
 
35448
 
    
35449
 
 
35450
 
  if test -n "$PCRE_LIBDIR"; then
35451
 
    
35452
 
  if test "$PCRE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PCRE_LIBDIR" != "/usr/lib"; then
35453
 
    
35454
 
  if test -z "$PCRE_LIBDIR" || echo "$PCRE_LIBDIR" | grep '^/' >/dev/null ; then
35455
 
    ai_p=$PCRE_LIBDIR
35456
 
  else
35457
 
    
35458
 
    ep_dir="`echo $PCRE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
35459
 
    
35460
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35461
 
    ai_p="$ep_realdir/`basename \"$PCRE_LIBDIR\"`"
35462
 
  fi
35463
 
 
35464
 
    
35465
 
      
35466
 
  
35467
 
  
35468
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35469
 
  
35470
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
35471
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
35472
 
    eval "LIBPATH$unique=set"
35473
 
    
35474
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
35475
 
    LDFLAGS="$LDFLAGS -L$ai_p"
35476
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
35477
 
  
35478
 
  fi
35479
 
 
35480
 
 
35481
 
    
35482
 
  fi
35483
 
 
35484
 
  fi
35485
 
  
35486
 
  
35487
 
  case pcre in
35488
 
  c|c_r|pthread*) ;;
35489
 
  *) 
35490
 
      LIBS="-lpcre $LIBS" 
35491
 
   ;;
35492
 
  esac
35493
 
 
35494
 
 
35495
 
 
35496
 
 
35497
 
    
35498
 
    
35499
 
cat >>confdefs.h <<\_ACEOF
35500
 
@%:@define HAVE_PCRE 1
35501
 
_ACEOF
35502
 
 
35503
 
    
35504
 
  if test "$PCRE_INCDIR" != "/usr/include"; then
35505
 
    
35506
 
  if test -z "$PCRE_INCDIR" || echo "$PCRE_INCDIR" | grep '^/' >/dev/null ; then
35507
 
    ai_p=$PCRE_INCDIR
35508
 
  else
35509
 
    
35510
 
    ep_dir="`echo $PCRE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
35511
 
    
35512
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35513
 
    ai_p="$ep_realdir/`basename \"$PCRE_INCDIR\"`"
35514
 
  fi
35515
 
 
35516
 
    
35517
 
  
35518
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35519
 
  
35520
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
35521
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
35522
 
    eval "INCLUDEPATH$unique=set"
35523
 
    
35524
 
      if test ""; then
35525
 
        INCLUDES="-I$ai_p $INCLUDES"
35526
 
      else
35527
 
        INCLUDES="$INCLUDES -I$ai_p"
35528
 
      fi
35529
 
    
35530
 
  fi
35531
 
 
35532
 
  fi
35533
 
 
35534
 
    
35535
 
  ext_builddir=ext/pcre
35536
 
  ext_srcdir=$abs_srcdir/ext/pcre
35537
 
 
35538
 
  ac_extra=
35539
 
 
35540
 
  if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
35541
 
    PHP_PCRE_SHARED=no
35542
 
    
35543
 
  
35544
 
  case ext/pcre in
35545
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35546
 
  /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35547
 
  *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35548
 
  esac
35549
 
  
35550
 
  
35551
 
 
35552
 
  b_c_pre=$php_c_pre
35553
 
  b_cxx_pre=$php_cxx_pre
35554
 
  b_c_meta=$php_c_meta
35555
 
  b_cxx_meta=$php_cxx_meta
35556
 
  b_c_post=$php_c_post
35557
 
  b_cxx_post=$php_cxx_post
35558
 
  b_lo=$php_lo
35559
 
 
35560
 
 
35561
 
  old_IFS=$IFS
35562
 
  for ac_src in php_pcre.c; do
35563
 
  
35564
 
      IFS=.
35565
 
      set $ac_src
35566
 
      ac_obj=$1
35567
 
      IFS=$old_IFS
35568
 
      
35569
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35570
 
 
35571
 
      case $ac_src in
35572
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35573
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35574
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35575
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35576
 
      esac
35577
 
 
35578
 
    cat >>Makefile.objects<<EOF
35579
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35580
 
        $ac_comp
35581
 
EOF
35582
 
  done
35583
 
 
35584
 
 
35585
 
    EXT_STATIC="$EXT_STATIC pcre"
35586
 
    if test "no" != "nocli"; then
35587
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
35588
 
    fi
35589
 
  else
35590
 
    if test "no" = "shared" || test "no" = "yes"; then
35591
 
      PHP_PCRE_SHARED=yes
35592
 
      
35593
 
  case ext/pcre in
35594
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35595
 
  /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35596
 
  *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35597
 
  esac
35598
 
  
35599
 
  
35600
 
 
35601
 
  b_c_pre=$shared_c_pre
35602
 
  b_cxx_pre=$shared_cxx_pre
35603
 
  b_c_meta=$shared_c_meta
35604
 
  b_cxx_meta=$shared_cxx_meta
35605
 
  b_c_post=$shared_c_post
35606
 
  b_cxx_post=$shared_cxx_post
35607
 
  b_lo=$shared_lo
35608
 
 
35609
 
 
35610
 
  old_IFS=$IFS
35611
 
  for ac_src in php_pcre.c; do
35612
 
  
35613
 
      IFS=.
35614
 
      set $ac_src
35615
 
      ac_obj=$1
35616
 
      IFS=$old_IFS
35617
 
      
35618
 
      shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
35619
 
 
35620
 
      case $ac_src in
35621
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35622
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35623
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35624
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35625
 
      esac
35626
 
 
35627
 
    cat >>Makefile.objects<<EOF
35628
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35629
 
        $ac_comp
35630
 
EOF
35631
 
  done
35632
 
 
35633
 
      case $host_alias in
35634
 
        *netware*)
35635
 
          
35636
 
  install_modules="install-modules"
35637
 
 
35638
 
  case $host_alias in
35639
 
    *aix*)
35640
 
      suffix=so
35641
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppcre.so '$ext_builddir'/phppcre.so'
35642
 
      ;;
35643
 
    *netware*)
35644
 
      suffix=nlm
35645
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(PCRE_SHARED_LIBADD)'
35646
 
      ;;
35647
 
    *)
35648
 
      suffix=la
35649
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD)'
35650
 
      ;;
35651
 
  esac
35652
 
 
35653
 
  if test "x" = "xyes"; then
35654
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
35655
 
  else
35656
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
35657
 
  fi
35658
 
  
35659
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
35660
 
 
35661
 
  cat >>Makefile.objects<<EOF
35662
 
\$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
35663
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
35664
 
 
35665
 
$ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
35666
 
        $link_cmd
35667
 
 
35668
 
EOF
35669
 
 
35670
 
          ;;
35671
 
        *)
35672
 
          
35673
 
  install_modules="install-modules"
35674
 
 
35675
 
  case $host_alias in
35676
 
    *aix*)
35677
 
      suffix=so
35678
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pcre.so '$ext_builddir'/pcre.so'
35679
 
      ;;
35680
 
    *netware*)
35681
 
      suffix=nlm
35682
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(E_SHARED_LIBADD)'
35683
 
      ;;
35684
 
    *)
35685
 
      suffix=la
35686
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD)'
35687
 
      ;;
35688
 
  esac
35689
 
 
35690
 
  if test "x" = "xyes"; then
35691
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
35692
 
  else
35693
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
35694
 
  fi
35695
 
  
35696
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
35697
 
 
35698
 
  cat >>Makefile.objects<<EOF
35699
 
\$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
35700
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
35701
 
 
35702
 
$ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
35703
 
        $link_cmd
35704
 
 
35705
 
EOF
35706
 
 
35707
 
          ;;
35708
 
      esac
35709
 
      
35710
 
cat >>confdefs.h <<_ACEOF
35711
 
@%:@define COMPILE_DL_PCRE 1
35712
 
_ACEOF
35713
 
 
35714
 
    fi
35715
 
  fi
35716
 
 
35717
 
  if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
35718
 
    PHP_PCRE_SHARED=no
35719
 
    case "$PHP_SAPI" in
35720
 
      cgi|embed)
35721
 
        
35722
 
  
35723
 
  case ext/pcre in
35724
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35725
 
  /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35726
 
  *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35727
 
  esac
35728
 
  
35729
 
  
35730
 
 
35731
 
  b_c_pre=$php_c_pre
35732
 
  b_cxx_pre=$php_cxx_pre
35733
 
  b_c_meta=$php_c_meta
35734
 
  b_cxx_meta=$php_cxx_meta
35735
 
  b_c_post=$php_c_post
35736
 
  b_cxx_post=$php_cxx_post
35737
 
  b_lo=$php_lo
35738
 
 
35739
 
 
35740
 
  old_IFS=$IFS
35741
 
  for ac_src in php_pcre.c; do
35742
 
  
35743
 
      IFS=.
35744
 
      set $ac_src
35745
 
      ac_obj=$1
35746
 
      IFS=$old_IFS
35747
 
      
35748
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35749
 
 
35750
 
      case $ac_src in
35751
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35752
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35753
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35754
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35755
 
      esac
35756
 
 
35757
 
    cat >>Makefile.objects<<EOF
35758
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35759
 
        $ac_comp
35760
 
EOF
35761
 
  done
35762
 
 
35763
 
 
35764
 
        EXT_STATIC="$EXT_STATIC pcre"
35765
 
        ;;
35766
 
      *)
35767
 
        
35768
 
  
35769
 
  case ext/pcre in
35770
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35771
 
  /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35772
 
  *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35773
 
  esac
35774
 
  
35775
 
  
35776
 
 
35777
 
  b_c_pre=$php_c_pre
35778
 
  b_cxx_pre=$php_cxx_pre
35779
 
  b_c_meta=$php_c_meta
35780
 
  b_cxx_meta=$php_cxx_meta
35781
 
  b_c_post=$php_c_post
35782
 
  b_cxx_post=$php_cxx_post
35783
 
  b_lo=$php_lo
35784
 
 
35785
 
 
35786
 
  old_IFS=$IFS
35787
 
  for ac_src in php_pcre.c; do
35788
 
  
35789
 
      IFS=.
35790
 
      set $ac_src
35791
 
      ac_obj=$1
35792
 
      IFS=$old_IFS
35793
 
      
35794
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
35795
 
 
35796
 
      case $ac_src in
35797
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35798
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35799
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35800
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35801
 
      esac
35802
 
 
35803
 
    cat >>Makefile.objects<<EOF
35804
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35805
 
        $ac_comp
35806
 
EOF
35807
 
  done
35808
 
 
35809
 
 
35810
 
        ;;
35811
 
    esac
35812
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
35813
 
  fi
35814
 
  
35815
 
  
35816
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
35817
 
  
35818
 
 
35819
 
 
35820
 
  if test "$ext_builddir" = "."; then
35821
 
    PHP_PECL_EXTENSION=pcre
35822
 
    
35823
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
35824
 
 
35825
 
  fi
35826
 
 
35827
 
    
35828
 
  
35829
 
    header_path=ext/pcre
35830
 
    for header_file in php_pcre.h; do
35831
 
      hp_hf="$header_path/$header_file"
35832
 
      
35833
 
  
35834
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
35835
 
  
35836
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
35837
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
35838
 
    eval "INSTALLHEADERS$unique=set"
35839
 
    
35840
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
35841
 
      
35842
 
  fi
35843
 
 
35844
 
    done 
35845
 
  
35846
 
 
35847
 
  else
35848
 
    { $as_echo "$as_me:$LINENO: checking for PCRE library to use" >&5
35849
 
$as_echo_n "checking for PCRE library to use... " >&6; }
35850
 
    { $as_echo "$as_me:$LINENO: result: bundled" >&5
35851
 
$as_echo "bundled" >&6; }
35852
 
    pcrelib_sources="pcrelib/pcre_chartables.c pcrelib/pcre_ucd.c \
35853
 
                                 pcrelib/pcre_compile.c pcrelib/pcre_config.c pcrelib/pcre_exec.c \
35854
 
                                 pcrelib/pcre_fullinfo.c pcrelib/pcre_get.c pcrelib/pcre_globals.c \
35855
 
                                 pcrelib/pcre_info.c pcrelib/pcre_maketables.c pcrelib/pcre_newline.c \
35856
 
                                 pcrelib/pcre_ord2utf8.c pcrelib/pcre_refcount.c pcrelib/pcre_study.c \
35857
 
                                 pcrelib/pcre_tables.c pcrelib/pcre_try_flipped.c pcrelib/pcre_valid_utf8.c \
35858
 
                                 pcrelib/pcre_version.c pcrelib/pcre_xclass.c"
35859
 
    
35860
 
  ext_builddir=ext/pcre
35861
 
  ext_srcdir=$abs_srcdir/ext/pcre
35862
 
 
35863
 
  ac_extra=`echo "-I@ext_srcdir@/pcrelib"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
35864
 
 
35865
 
  if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
35866
 
    PHP_PCRE_SHARED=no
35867
 
    
35868
 
  
35869
 
  case ext/pcre in
35870
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35871
 
  /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35872
 
  *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35873
 
  esac
35874
 
  
35875
 
  
35876
 
 
35877
 
  b_c_pre=$php_c_pre
35878
 
  b_cxx_pre=$php_cxx_pre
35879
 
  b_c_meta=$php_c_meta
35880
 
  b_cxx_meta=$php_cxx_meta
35881
 
  b_c_post=$php_c_post
35882
 
  b_cxx_post=$php_cxx_post
35883
 
  b_lo=$php_lo
35884
 
 
35885
 
 
35886
 
  old_IFS=$IFS
35887
 
  for ac_src in $pcrelib_sources php_pcre.c; do
35888
 
  
35889
 
      IFS=.
35890
 
      set $ac_src
35891
 
      ac_obj=$1
35892
 
      IFS=$old_IFS
35893
 
      
35894
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35895
 
 
35896
 
      case $ac_src in
35897
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35898
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35899
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35900
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35901
 
      esac
35902
 
 
35903
 
    cat >>Makefile.objects<<EOF
35904
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35905
 
        $ac_comp
35906
 
EOF
35907
 
  done
35908
 
 
35909
 
 
35910
 
    EXT_STATIC="$EXT_STATIC pcre"
35911
 
    if test "no" != "nocli"; then
35912
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
35913
 
    fi
35914
 
  else
35915
 
    if test "no" = "shared" || test "no" = "yes"; then
35916
 
      PHP_PCRE_SHARED=yes
35917
 
      
35918
 
  case ext/pcre in
35919
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35920
 
  /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35921
 
  *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35922
 
  esac
35923
 
  
35924
 
  
35925
 
 
35926
 
  b_c_pre=$shared_c_pre
35927
 
  b_cxx_pre=$shared_cxx_pre
35928
 
  b_c_meta=$shared_c_meta
35929
 
  b_cxx_meta=$shared_cxx_meta
35930
 
  b_c_post=$shared_c_post
35931
 
  b_cxx_post=$shared_cxx_post
35932
 
  b_lo=$shared_lo
35933
 
 
35934
 
 
35935
 
  old_IFS=$IFS
35936
 
  for ac_src in $pcrelib_sources php_pcre.c; do
35937
 
  
35938
 
      IFS=.
35939
 
      set $ac_src
35940
 
      ac_obj=$1
35941
 
      IFS=$old_IFS
35942
 
      
35943
 
      shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
35944
 
 
35945
 
      case $ac_src in
35946
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35947
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35948
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35949
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35950
 
      esac
35951
 
 
35952
 
    cat >>Makefile.objects<<EOF
35953
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35954
 
        $ac_comp
35955
 
EOF
35956
 
  done
35957
 
 
35958
 
      case $host_alias in
35959
 
        *netware*)
35960
 
          
35961
 
  install_modules="install-modules"
35962
 
 
35963
 
  case $host_alias in
35964
 
    *aix*)
35965
 
      suffix=so
35966
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppcre.so '$ext_builddir'/phppcre.so'
35967
 
      ;;
35968
 
    *netware*)
35969
 
      suffix=nlm
35970
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(PCRE_SHARED_LIBADD)'
35971
 
      ;;
35972
 
    *)
35973
 
      suffix=la
35974
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PHPPCRE_SHARED_LIBADD)'
35975
 
      ;;
35976
 
  esac
35977
 
 
35978
 
  if test "x" = "xyes"; then
35979
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
35980
 
  else
35981
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
35982
 
  fi
35983
 
  
35984
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
35985
 
 
35986
 
  cat >>Makefile.objects<<EOF
35987
 
\$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
35988
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
35989
 
 
35990
 
$ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
35991
 
        $link_cmd
35992
 
 
35993
 
EOF
35994
 
 
35995
 
          ;;
35996
 
        *)
35997
 
          
35998
 
  install_modules="install-modules"
35999
 
 
36000
 
  case $host_alias in
36001
 
    *aix*)
36002
 
      suffix=so
36003
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pcre.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pcre.so '$ext_builddir'/pcre.so'
36004
 
      ;;
36005
 
    *netware*)
36006
 
      suffix=nlm
36007
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) -L$(top_builddir)/netware -lphp5lib $(E_SHARED_LIBADD)'
36008
 
      ;;
36009
 
    *)
36010
 
      suffix=la
36011
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcre) $(PCRE_SHARED_LIBADD)'
36012
 
      ;;
36013
 
  esac
36014
 
 
36015
 
  if test "x" = "xyes"; then
36016
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
36017
 
  else
36018
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
36019
 
  fi
36020
 
  
36021
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
36022
 
 
36023
 
  cat >>Makefile.objects<<EOF
36024
 
\$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
36025
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
36026
 
 
36027
 
$ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
36028
 
        $link_cmd
36029
 
 
36030
 
EOF
36031
 
 
36032
 
          ;;
36033
 
      esac
36034
 
      
36035
 
cat >>confdefs.h <<_ACEOF
36036
 
@%:@define COMPILE_DL_PCRE 1
36037
 
_ACEOF
36038
 
 
36039
 
    fi
36040
 
  fi
36041
 
 
36042
 
  if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
36043
 
    PHP_PCRE_SHARED=no
36044
 
    case "$PHP_SAPI" in
36045
 
      cgi|embed)
36046
 
        
36047
 
  
36048
 
  case ext/pcre in
36049
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36050
 
  /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36051
 
  *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36052
 
  esac
36053
 
  
36054
 
  
36055
 
 
36056
 
  b_c_pre=$php_c_pre
36057
 
  b_cxx_pre=$php_cxx_pre
36058
 
  b_c_meta=$php_c_meta
36059
 
  b_cxx_meta=$php_cxx_meta
36060
 
  b_c_post=$php_c_post
36061
 
  b_cxx_post=$php_cxx_post
36062
 
  b_lo=$php_lo
36063
 
 
36064
 
 
36065
 
  old_IFS=$IFS
36066
 
  for ac_src in $pcrelib_sources php_pcre.c; do
36067
 
  
36068
 
      IFS=.
36069
 
      set $ac_src
36070
 
      ac_obj=$1
36071
 
      IFS=$old_IFS
36072
 
      
36073
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36074
 
 
36075
 
      case $ac_src in
36076
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36077
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36078
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36079
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36080
 
      esac
36081
 
 
36082
 
    cat >>Makefile.objects<<EOF
36083
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36084
 
        $ac_comp
36085
 
EOF
36086
 
  done
36087
 
 
36088
 
 
36089
 
        EXT_STATIC="$EXT_STATIC pcre"
36090
 
        ;;
36091
 
      *)
36092
 
        
36093
 
  
36094
 
  case ext/pcre in
36095
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36096
 
  /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36097
 
  *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36098
 
  esac
36099
 
  
36100
 
  
36101
 
 
36102
 
  b_c_pre=$php_c_pre
36103
 
  b_cxx_pre=$php_cxx_pre
36104
 
  b_c_meta=$php_c_meta
36105
 
  b_cxx_meta=$php_cxx_meta
36106
 
  b_c_post=$php_c_post
36107
 
  b_cxx_post=$php_cxx_post
36108
 
  b_lo=$php_lo
36109
 
 
36110
 
 
36111
 
  old_IFS=$IFS
36112
 
  for ac_src in $pcrelib_sources php_pcre.c; do
36113
 
  
36114
 
      IFS=.
36115
 
      set $ac_src
36116
 
      ac_obj=$1
36117
 
      IFS=$old_IFS
36118
 
      
36119
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
36120
 
 
36121
 
      case $ac_src in
36122
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36123
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36124
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36125
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36126
 
      esac
36127
 
 
36128
 
    cat >>Makefile.objects<<EOF
36129
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36130
 
        $ac_comp
36131
 
EOF
36132
 
  done
36133
 
 
36134
 
 
36135
 
        ;;
36136
 
    esac
36137
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
36138
 
  fi
36139
 
  
36140
 
  
36141
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
36142
 
  
36143
 
 
36144
 
 
36145
 
  if test "$ext_builddir" = "."; then
36146
 
    PHP_PECL_EXTENSION=pcre
36147
 
    
36148
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
36149
 
 
36150
 
  fi
36151
 
 
36152
 
    
36153
 
  
36154
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/pcrelib"
36155
 
  
36156
 
 
36157
 
    
36158
 
  
36159
 
    header_path=ext/pcre
36160
 
    for header_file in php_pcre.h pcrelib/; do
36161
 
      hp_hf="$header_path/$header_file"
36162
 
      
36163
 
  
36164
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
36165
 
  
36166
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
36167
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36168
 
    eval "INSTALLHEADERS$unique=set"
36169
 
    
36170
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
36171
 
      
36172
 
  fi
36173
 
 
36174
 
    done 
36175
 
  
36176
 
 
36177
 
    
36178
 
cat >>confdefs.h <<\_ACEOF
36179
 
@%:@define HAVE_BUNDLED_PCRE 1
36180
 
_ACEOF
36181
 
 
36182
 
  fi
36183
 
 
36184
 
 
36185
 
 
36186
 
php_with_sqlite3=yes
36187
 
 
36188
 
{ $as_echo "$as_me:$LINENO: checking whether to enable the SQLite3 extension" >&5
36189
 
$as_echo_n "checking whether to enable the SQLite3 extension... " >&6; }
36190
 
 
36191
 
@%:@ Check whether --with-sqlite3 was given.
36192
 
if test "${with_sqlite3+set}" = set; then
36193
 
  withval=$with_sqlite3; PHP_SQLITE3=$withval
36194
 
else
36195
 
  
36196
 
  PHP_SQLITE3=yes
36197
 
  test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL
36198
 
 
36199
 
fi
36200
 
 
36201
 
 
36202
 
 
36203
 
ext_output="yes, shared"
36204
 
ext_shared=yes
36205
 
case $PHP_SQLITE3 in
36206
 
shared,*)
36207
 
  PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'`
36208
 
  ;;
36209
 
shared)
36210
 
  PHP_SQLITE3=yes
36211
 
  ;;
36212
 
no)
36213
 
  ext_output=no
36214
 
  ext_shared=no
36215
 
  ;;
36216
 
*)
36217
 
  ext_output=yes
36218
 
  ext_shared=no
36219
 
  ;;
36220
 
esac
36221
 
 
36222
 
 
36223
 
 
36224
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
36225
 
$as_echo "$ext_output" >&6; }
36226
 
 
36227
 
 
36228
 
 
36229
 
 
36230
 
if test $PHP_SQLITE3 != "no"; then
36231
 
  sqlite3_extra_sources=""
36232
 
  PHP_SQLITE3_CFLAGS=""
36233
 
 
36234
 
    if test -z "$enable_maintainer_zts"; then
36235
 
    if test -f "$phpincludedir/main/php_config.h"; then
36236
 
      ZTS=`grep '#define ZTS' $phpincludedir/main/php_config.h|$SED 's/#define ZTS//'`
36237
 
      if test "$ZTS" -eq "1"; then
36238
 
        enable_maintainer_zts="yes"
36239
 
      fi
36240
 
    fi
36241
 
  fi
36242
 
 
36243
 
  if test $PHP_SQLITE3 != "yes"; then
36244
 
    { $as_echo "$as_me:$LINENO: checking for sqlite3 files in default path" >&5
36245
 
$as_echo_n "checking for sqlite3 files in default path... " >&6; }
36246
 
    for i in $PHP_SQLITE3 /usr/local /usr; do
36247
 
      if test -r $i/include/sqlite3.h; then
36248
 
        SQLITE3_DIR=$i
36249
 
        { $as_echo "$as_me:$LINENO: result: found in $i" >&5
36250
 
$as_echo "found in $i" >&6; }
36251
 
        break
36252
 
      fi
36253
 
    done
36254
 
 
36255
 
    if test -z "$SQLITE3_DIR"; then
36256
 
      { $as_echo "$as_me:$LINENO: result: not found" >&5
36257
 
$as_echo "not found" >&6; }
36258
 
      { { $as_echo "$as_me:$LINENO: error: Please reinstall the sqlite distribution from http://www.sqlite.org" >&5
36259
 
$as_echo "$as_me: error: Please reinstall the sqlite distribution from http://www.sqlite.org" >&2;}
36260
 
   { (exit 1); exit 1; }; }
36261
 
    fi
36262
 
 
36263
 
    { $as_echo "$as_me:$LINENO: checking for SQLite 3.3.9+" >&5
36264
 
$as_echo_n "checking for SQLite 3.3.9+... " >&6; }
36265
 
    
36266
 
  save_old_LDFLAGS=$LDFLAGS
36267
 
  ac_stuff="
36268
 
      -L$SQLITE3_DIR/$PHP_LIBDIR -lm
36269
 
    "
36270
 
  
36271
 
  save_ext_shared=$ext_shared
36272
 
  ext_shared=yes
36273
 
  
36274
 
  for ac_i in $ac_stuff; do
36275
 
    case $ac_i in
36276
 
    -pthread)
36277
 
      if test "$ext_shared" = "yes"; then
36278
 
        LDFLAGS="$LDFLAGS -pthread"
36279
 
      else
36280
 
        
36281
 
  
36282
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
36283
 
  
36284
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
36285
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36286
 
    eval "EXTRA_LDFLAGS$unique=set"
36287
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
36288
 
  fi
36289
 
 
36290
 
      fi
36291
 
    ;;
36292
 
    -l*)
36293
 
      ac_ii=`echo $ac_i|cut -c 3-`
36294
 
      
36295
 
  
36296
 
  case $ac_ii in
36297
 
  c|c_r|pthread*) ;;
36298
 
  *) 
36299
 
    if test "$ext_shared" = "yes"; then
36300
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
36301
 
    else
36302
 
      
36303
 
  
36304
 
  case $ac_ii in
36305
 
  c|c_r|pthread*) ;;
36306
 
  *) 
36307
 
      LIBS="$LIBS -l$ac_ii" 
36308
 
   ;;
36309
 
  esac
36310
 
 
36311
 
 
36312
 
    fi
36313
 
   ;;
36314
 
  esac
36315
 
 
36316
 
 
36317
 
    ;;
36318
 
    -L*)
36319
 
      ac_ii=`echo $ac_i|cut -c 3-`
36320
 
      
36321
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
36322
 
    
36323
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
36324
 
    ai_p=$ac_ii
36325
 
  else
36326
 
    
36327
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
36328
 
    
36329
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36330
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
36331
 
  fi
36332
 
 
36333
 
    
36334
 
      if test "$ext_shared" = "yes"; then
36335
 
        LDFLAGS="-L$ai_p $LDFLAGS"
36336
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
36337
 
      else
36338
 
        
36339
 
  
36340
 
  
36341
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36342
 
  
36343
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36344
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36345
 
    eval "LIBPATH$unique=set"
36346
 
    
36347
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36348
 
    LDFLAGS="$LDFLAGS -L$ai_p"
36349
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
36350
 
  
36351
 
  fi
36352
 
 
36353
 
 
36354
 
      fi
36355
 
    
36356
 
  fi
36357
 
 
36358
 
    ;;
36359
 
    esac
36360
 
  done
36361
 
 
36362
 
  { $as_echo "$as_me:$LINENO: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
36363
 
$as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
36364
 
if test "${ac_cv_lib_sqlite3_sqlite3_prepare_v2+set}" = set; then
36365
 
  $as_echo_n "(cached) " >&6
36366
 
else
36367
 
  ac_check_lib_save_LIBS=$LIBS
36368
 
LIBS="-lsqlite3  $LIBS"
36369
 
cat >conftest.$ac_ext <<_ACEOF
36370
 
/* confdefs.h.  */
36371
 
_ACEOF
36372
 
cat confdefs.h >>conftest.$ac_ext
36373
 
cat >>conftest.$ac_ext <<_ACEOF
36374
 
/* end confdefs.h.  */
36375
 
 
36376
 
/* Override any GCC internal prototype to avoid an error.
36377
 
   Use char because int might match the return type of a GCC
36378
 
   builtin and then its argument prototype would still apply.  */
36379
 
#ifdef __cplusplus
36380
 
extern "C"
36381
 
#endif
36382
 
char sqlite3_prepare_v2 ();
36383
 
int
36384
 
main ()
36385
 
{
36386
 
return sqlite3_prepare_v2 ();
36387
 
  ;
36388
 
  return 0;
36389
 
}
36390
 
_ACEOF
36391
 
rm -f conftest.$ac_objext conftest$ac_exeext
36392
 
if { (ac_try="$ac_link"
36393
 
case "(($ac_try" in
36394
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36395
 
  *) ac_try_echo=$ac_try;;
36396
 
esac
36397
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36398
 
$as_echo "$ac_try_echo") >&5
36399
 
  (eval "$ac_link") 2>conftest.er1
36400
 
  ac_status=$?
36401
 
  grep -v '^ *+' conftest.er1 >conftest.err
36402
 
  rm -f conftest.er1
36403
 
  cat conftest.err >&5
36404
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405
 
  (exit $ac_status); } && {
36406
 
         test -z "$ac_c_werror_flag" ||
36407
 
         test ! -s conftest.err
36408
 
       } && test -s conftest$ac_exeext && {
36409
 
         test "$cross_compiling" = yes ||
36410
 
         $as_test_x conftest$ac_exeext
36411
 
       }; then
36412
 
  ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
36413
 
else
36414
 
  $as_echo "$as_me: failed program was:" >&5
36415
 
sed 's/^/| /' conftest.$ac_ext >&5
36416
 
 
36417
 
        ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
36418
 
fi
36419
 
 
36420
 
rm -rf conftest.dSYM
36421
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36422
 
      conftest$ac_exeext conftest.$ac_ext
36423
 
LIBS=$ac_check_lib_save_LIBS
36424
 
fi
36425
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
36426
 
$as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
36427
 
if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = x""yes; then
36428
 
  
36429
 
    LDFLAGS=$save_old_LDFLAGS
36430
 
    ext_shared=$save_ext_shared
36431
 
    
36432
 
      { $as_echo "$as_me:$LINENO: result: found" >&5
36433
 
$as_echo "found" >&6; }
36434
 
      
36435
 
 
36436
 
  if test "$ext_shared" = "yes"; then
36437
 
    SQLITE3_SHARED_LIBADD="-lsqlite3 $SQLITE3_SHARED_LIBADD"
36438
 
    if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
36439
 
      
36440
 
  if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
36441
 
    
36442
 
  if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
36443
 
    ai_p=$SQLITE3_DIR/$PHP_LIBDIR
36444
 
  else
36445
 
    
36446
 
    ep_dir="`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
36447
 
    
36448
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36449
 
    ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/$PHP_LIBDIR\"`"
36450
 
  fi
36451
 
 
36452
 
    
36453
 
      if test "$ext_shared" = "yes"; then
36454
 
        SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD"
36455
 
        test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD"
36456
 
      else
36457
 
        
36458
 
  
36459
 
  
36460
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36461
 
  
36462
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36463
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36464
 
    eval "LIBPATH$unique=set"
36465
 
    
36466
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36467
 
    LDFLAGS="$LDFLAGS -L$ai_p"
36468
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
36469
 
  
36470
 
  fi
36471
 
 
36472
 
 
36473
 
      fi
36474
 
    
36475
 
  fi
36476
 
 
36477
 
    fi
36478
 
  else
36479
 
    
36480
 
 
36481
 
  if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
36482
 
    
36483
 
  if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
36484
 
    
36485
 
  if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
36486
 
    ai_p=$SQLITE3_DIR/$PHP_LIBDIR
36487
 
  else
36488
 
    
36489
 
    ep_dir="`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
36490
 
    
36491
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36492
 
    ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/$PHP_LIBDIR\"`"
36493
 
  fi
36494
 
 
36495
 
    
36496
 
      
36497
 
  
36498
 
  
36499
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36500
 
  
36501
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36502
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36503
 
    eval "LIBPATH$unique=set"
36504
 
    
36505
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36506
 
    LDFLAGS="$LDFLAGS -L$ai_p"
36507
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
36508
 
  
36509
 
  fi
36510
 
 
36511
 
 
36512
 
    
36513
 
  fi
36514
 
 
36515
 
  fi
36516
 
  
36517
 
  
36518
 
  case sqlite3 in
36519
 
  c|c_r|pthread*) ;;
36520
 
  *) 
36521
 
      LIBS="-lsqlite3 $LIBS" 
36522
 
   ;;
36523
 
  esac
36524
 
 
36525
 
 
36526
 
 
36527
 
 
36528
 
  fi
36529
 
 
36530
 
 
36531
 
      
36532
 
  if test "$SQLITE3_DIR/include" != "/usr/include"; then
36533
 
    
36534
 
  if test -z "$SQLITE3_DIR/include" || echo "$SQLITE3_DIR/include" | grep '^/' >/dev/null ; then
36535
 
    ai_p=$SQLITE3_DIR/include
36536
 
  else
36537
 
    
36538
 
    ep_dir="`echo $SQLITE3_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
36539
 
    
36540
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36541
 
    ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/include\"`"
36542
 
  fi
36543
 
 
36544
 
    
36545
 
  
36546
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36547
 
  
36548
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
36549
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36550
 
    eval "INCLUDEPATH$unique=set"
36551
 
    
36552
 
      if test ""; then
36553
 
        INCLUDES="-I$ai_p $INCLUDES"
36554
 
      else
36555
 
        INCLUDES="$INCLUDES -I$ai_p"
36556
 
      fi
36557
 
    
36558
 
  fi
36559
 
 
36560
 
  fi
36561
 
 
36562
 
    
36563
 
  
36564
 
else
36565
 
  
36566
 
    LDFLAGS=$save_old_LDFLAGS
36567
 
    ext_shared=$save_ext_shared
36568
 
    unset ac_cv_lib_sqlite3_sqlite3_prepare_v2
36569
 
    
36570
 
      { $as_echo "$as_me:$LINENO: result: not found" >&5
36571
 
$as_echo "not found" >&6; }
36572
 
      { { $as_echo "$as_me:$LINENO: error: Please install SQLite 3.3.9 first or check libsqlite3 is present" >&5
36573
 
$as_echo "$as_me: error: Please install SQLite 3.3.9 first or check libsqlite3 is present" >&2;}
36574
 
   { (exit 1); exit 1; }; }
36575
 
    
36576
 
  
36577
 
fi
36578
 
 
36579
 
 
36580
 
    
36581
 
  save_old_LDFLAGS=$LDFLAGS
36582
 
  ac_stuff=""
36583
 
  
36584
 
  save_ext_shared=$ext_shared
36585
 
  ext_shared=yes
36586
 
  
36587
 
  for ac_i in $ac_stuff; do
36588
 
    case $ac_i in
36589
 
    -pthread)
36590
 
      if test "$ext_shared" = "yes"; then
36591
 
        LDFLAGS="$LDFLAGS -pthread"
36592
 
      else
36593
 
        
36594
 
  
36595
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
36596
 
  
36597
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
36598
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36599
 
    eval "EXTRA_LDFLAGS$unique=set"
36600
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
36601
 
  fi
36602
 
 
36603
 
      fi
36604
 
    ;;
36605
 
    -l*)
36606
 
      ac_ii=`echo $ac_i|cut -c 3-`
36607
 
      
36608
 
  
36609
 
  case $ac_ii in
36610
 
  c|c_r|pthread*) ;;
36611
 
  *) 
36612
 
    if test "$ext_shared" = "yes"; then
36613
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
36614
 
    else
36615
 
      
36616
 
  
36617
 
  case $ac_ii in
36618
 
  c|c_r|pthread*) ;;
36619
 
  *) 
36620
 
      LIBS="$LIBS -l$ac_ii" 
36621
 
   ;;
36622
 
  esac
36623
 
 
36624
 
 
36625
 
    fi
36626
 
   ;;
36627
 
  esac
36628
 
 
36629
 
 
36630
 
    ;;
36631
 
    -L*)
36632
 
      ac_ii=`echo $ac_i|cut -c 3-`
36633
 
      
36634
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
36635
 
    
36636
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
36637
 
    ai_p=$ac_ii
36638
 
  else
36639
 
    
36640
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
36641
 
    
36642
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36643
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
36644
 
  fi
36645
 
 
36646
 
    
36647
 
      if test "$ext_shared" = "yes"; then
36648
 
        LDFLAGS="-L$ai_p $LDFLAGS"
36649
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
36650
 
      else
36651
 
        
36652
 
  
36653
 
  
36654
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36655
 
  
36656
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36657
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36658
 
    eval "LIBPATH$unique=set"
36659
 
    
36660
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36661
 
    LDFLAGS="$LDFLAGS -L$ai_p"
36662
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
36663
 
  
36664
 
  fi
36665
 
 
36666
 
 
36667
 
      fi
36668
 
    
36669
 
  fi
36670
 
 
36671
 
    ;;
36672
 
    esac
36673
 
  done
36674
 
 
36675
 
  { $as_echo "$as_me:$LINENO: checking for sqlite3_key in -lsqlite3" >&5
36676
 
$as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
36677
 
if test "${ac_cv_lib_sqlite3_sqlite3_key+set}" = set; then
36678
 
  $as_echo_n "(cached) " >&6
36679
 
else
36680
 
  ac_check_lib_save_LIBS=$LIBS
36681
 
LIBS="-lsqlite3  $LIBS"
36682
 
cat >conftest.$ac_ext <<_ACEOF
36683
 
/* confdefs.h.  */
36684
 
_ACEOF
36685
 
cat confdefs.h >>conftest.$ac_ext
36686
 
cat >>conftest.$ac_ext <<_ACEOF
36687
 
/* end confdefs.h.  */
36688
 
 
36689
 
/* Override any GCC internal prototype to avoid an error.
36690
 
   Use char because int might match the return type of a GCC
36691
 
   builtin and then its argument prototype would still apply.  */
36692
 
#ifdef __cplusplus
36693
 
extern "C"
36694
 
#endif
36695
 
char sqlite3_key ();
36696
 
int
36697
 
main ()
36698
 
{
36699
 
return sqlite3_key ();
36700
 
  ;
36701
 
  return 0;
36702
 
}
36703
 
_ACEOF
36704
 
rm -f conftest.$ac_objext conftest$ac_exeext
36705
 
if { (ac_try="$ac_link"
36706
 
case "(($ac_try" in
36707
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36708
 
  *) ac_try_echo=$ac_try;;
36709
 
esac
36710
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36711
 
$as_echo "$ac_try_echo") >&5
36712
 
  (eval "$ac_link") 2>conftest.er1
36713
 
  ac_status=$?
36714
 
  grep -v '^ *+' conftest.er1 >conftest.err
36715
 
  rm -f conftest.er1
36716
 
  cat conftest.err >&5
36717
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718
 
  (exit $ac_status); } && {
36719
 
         test -z "$ac_c_werror_flag" ||
36720
 
         test ! -s conftest.err
36721
 
       } && test -s conftest$ac_exeext && {
36722
 
         test "$cross_compiling" = yes ||
36723
 
         $as_test_x conftest$ac_exeext
36724
 
       }; then
36725
 
  ac_cv_lib_sqlite3_sqlite3_key=yes
36726
 
else
36727
 
  $as_echo "$as_me: failed program was:" >&5
36728
 
sed 's/^/| /' conftest.$ac_ext >&5
36729
 
 
36730
 
        ac_cv_lib_sqlite3_sqlite3_key=no
36731
 
fi
36732
 
 
36733
 
rm -rf conftest.dSYM
36734
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36735
 
      conftest$ac_exeext conftest.$ac_ext
36736
 
LIBS=$ac_check_lib_save_LIBS
36737
 
fi
36738
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
36739
 
$as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
36740
 
if test "x$ac_cv_lib_sqlite3_sqlite3_key" = x""yes; then
36741
 
  
36742
 
    LDFLAGS=$save_old_LDFLAGS
36743
 
    ext_shared=$save_ext_shared
36744
 
    
36745
 
      
36746
 
cat >>confdefs.h <<\_ACEOF
36747
 
@%:@define HAVE_SQLITE3_KEY 1
36748
 
_ACEOF
36749
 
 
36750
 
    
36751
 
  
36752
 
else
36753
 
  
36754
 
    LDFLAGS=$save_old_LDFLAGS
36755
 
    ext_shared=$save_ext_shared
36756
 
    unset ac_cv_lib_sqlite3_sqlite3_key
36757
 
    
36758
 
  
36759
 
fi
36760
 
 
36761
 
 
36762
 
    
36763
 
  save_old_LDFLAGS=$LDFLAGS
36764
 
  ac_stuff=""
36765
 
  
36766
 
  save_ext_shared=$ext_shared
36767
 
  ext_shared=yes
36768
 
  
36769
 
  for ac_i in $ac_stuff; do
36770
 
    case $ac_i in
36771
 
    -pthread)
36772
 
      if test "$ext_shared" = "yes"; then
36773
 
        LDFLAGS="$LDFLAGS -pthread"
36774
 
      else
36775
 
        
36776
 
  
36777
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
36778
 
  
36779
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
36780
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36781
 
    eval "EXTRA_LDFLAGS$unique=set"
36782
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
36783
 
  fi
36784
 
 
36785
 
      fi
36786
 
    ;;
36787
 
    -l*)
36788
 
      ac_ii=`echo $ac_i|cut -c 3-`
36789
 
      
36790
 
  
36791
 
  case $ac_ii in
36792
 
  c|c_r|pthread*) ;;
36793
 
  *) 
36794
 
    if test "$ext_shared" = "yes"; then
36795
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
36796
 
    else
36797
 
      
36798
 
  
36799
 
  case $ac_ii in
36800
 
  c|c_r|pthread*) ;;
36801
 
  *) 
36802
 
      LIBS="$LIBS -l$ac_ii" 
36803
 
   ;;
36804
 
  esac
36805
 
 
36806
 
 
36807
 
    fi
36808
 
   ;;
36809
 
  esac
36810
 
 
36811
 
 
36812
 
    ;;
36813
 
    -L*)
36814
 
      ac_ii=`echo $ac_i|cut -c 3-`
36815
 
      
36816
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
36817
 
    
36818
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
36819
 
    ai_p=$ac_ii
36820
 
  else
36821
 
    
36822
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
36823
 
    
36824
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36825
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
36826
 
  fi
36827
 
 
36828
 
    
36829
 
      if test "$ext_shared" = "yes"; then
36830
 
        LDFLAGS="-L$ai_p $LDFLAGS"
36831
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
36832
 
      else
36833
 
        
36834
 
  
36835
 
  
36836
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36837
 
  
36838
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36839
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36840
 
    eval "LIBPATH$unique=set"
36841
 
    
36842
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36843
 
    LDFLAGS="$LDFLAGS -L$ai_p"
36844
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
36845
 
  
36846
 
  fi
36847
 
 
36848
 
 
36849
 
      fi
36850
 
    
36851
 
  fi
36852
 
 
36853
 
    ;;
36854
 
    esac
36855
 
  done
36856
 
 
36857
 
  { $as_echo "$as_me:$LINENO: checking for sqlite3_load_extension in -lsqlite3" >&5
36858
 
$as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
36859
 
if test "${ac_cv_lib_sqlite3_sqlite3_load_extension+set}" = set; then
36860
 
  $as_echo_n "(cached) " >&6
36861
 
else
36862
 
  ac_check_lib_save_LIBS=$LIBS
36863
 
LIBS="-lsqlite3  $LIBS"
36864
 
cat >conftest.$ac_ext <<_ACEOF
36865
 
/* confdefs.h.  */
36866
 
_ACEOF
36867
 
cat confdefs.h >>conftest.$ac_ext
36868
 
cat >>conftest.$ac_ext <<_ACEOF
36869
 
/* end confdefs.h.  */
36870
 
 
36871
 
/* Override any GCC internal prototype to avoid an error.
36872
 
   Use char because int might match the return type of a GCC
36873
 
   builtin and then its argument prototype would still apply.  */
36874
 
#ifdef __cplusplus
36875
 
extern "C"
36876
 
#endif
36877
 
char sqlite3_load_extension ();
36878
 
int
36879
 
main ()
36880
 
{
36881
 
return sqlite3_load_extension ();
36882
 
  ;
36883
 
  return 0;
36884
 
}
36885
 
_ACEOF
36886
 
rm -f conftest.$ac_objext conftest$ac_exeext
36887
 
if { (ac_try="$ac_link"
36888
 
case "(($ac_try" in
36889
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36890
 
  *) ac_try_echo=$ac_try;;
36891
 
esac
36892
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36893
 
$as_echo "$ac_try_echo") >&5
36894
 
  (eval "$ac_link") 2>conftest.er1
36895
 
  ac_status=$?
36896
 
  grep -v '^ *+' conftest.er1 >conftest.err
36897
 
  rm -f conftest.er1
36898
 
  cat conftest.err >&5
36899
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900
 
  (exit $ac_status); } && {
36901
 
         test -z "$ac_c_werror_flag" ||
36902
 
         test ! -s conftest.err
36903
 
       } && test -s conftest$ac_exeext && {
36904
 
         test "$cross_compiling" = yes ||
36905
 
         $as_test_x conftest$ac_exeext
36906
 
       }; then
36907
 
  ac_cv_lib_sqlite3_sqlite3_load_extension=yes
36908
 
else
36909
 
  $as_echo "$as_me: failed program was:" >&5
36910
 
sed 's/^/| /' conftest.$ac_ext >&5
36911
 
 
36912
 
        ac_cv_lib_sqlite3_sqlite3_load_extension=no
36913
 
fi
36914
 
 
36915
 
rm -rf conftest.dSYM
36916
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36917
 
      conftest$ac_exeext conftest.$ac_ext
36918
 
LIBS=$ac_check_lib_save_LIBS
36919
 
fi
36920
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
36921
 
$as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
36922
 
if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = x""yes; then
36923
 
  
36924
 
    LDFLAGS=$save_old_LDFLAGS
36925
 
    ext_shared=$save_ext_shared
36926
 
    
36927
 
  
36928
 
else
36929
 
  
36930
 
    LDFLAGS=$save_old_LDFLAGS
36931
 
    ext_shared=$save_ext_shared
36932
 
    unset ac_cv_lib_sqlite3_sqlite3_load_extension
36933
 
    
36934
 
cat >>confdefs.h <<\_ACEOF
36935
 
@%:@define SQLITE_OMIT_LOAD_EXTENSION 1
36936
 
_ACEOF
36937
 
 
36938
 
    
36939
 
  
36940
 
fi
36941
 
 
36942
 
 
36943
 
  else
36944
 
    { $as_echo "$as_me:$LINENO: checking bundled sqlite3 library" >&5
36945
 
$as_echo_n "checking bundled sqlite3 library... " >&6; }
36946
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
36947
 
$as_echo "yes" >&6; }
36948
 
 
36949
 
    sqlite3_extra_sources="libsqlite/sqlite3.c"
36950
 
 
36951
 
    if test "$enable_maintainer_zts" = "yes"; then
36952
 
      threadsafe_flags="-DSQLITE_THREADSAFE=1"
36953
 
    else
36954
 
      threadsafe_flags="-DSQLITE_THREADSAFE=0"
36955
 
    fi
36956
 
 
36957
 
    if test "$ZEND_DEBUG" = "yes"; then
36958
 
      debug_flags="-DSQLITE_DEBUG=1"
36959
 
    fi
36960
 
 
36961
 
    other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
36962
 
 
36963
 
            if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
36964
 
      other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
36965
 
    fi
36966
 
 
36967
 
    PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags"
36968
 
    
36969
 
  
36970
 
    for header_file in ext/sqlite3/libsqlite/sqlite3.h; do
36971
 
      
36972
 
  
36973
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
36974
 
  
36975
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
36976
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
36977
 
    eval "INSTALLHEADERS$unique=set"
36978
 
    
36979
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
36980
 
      
36981
 
  fi
36982
 
 
36983
 
    done 
36984
 
  
36985
 
 
36986
 
  fi
36987
 
 
36988
 
  
36989
 
cat >>confdefs.h <<\_ACEOF
36990
 
@%:@define HAVE_SQLITE3 1
36991
 
_ACEOF
36992
 
 
36993
 
 
36994
 
  sqlite3_sources="sqlite3.c $sqlite3_extra_sources"
36995
 
 
36996
 
  
36997
 
  ext_builddir=ext/sqlite3
36998
 
  ext_srcdir=$abs_srcdir/ext/sqlite3
36999
 
 
37000
 
  ac_extra=`echo "$PHP_SQLITE3_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
37001
 
 
37002
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
37003
 
    PHP_SQLITE3_SHARED=no
37004
 
    
37005
 
  
37006
 
  case ext/sqlite3 in
37007
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37008
 
  /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37009
 
  *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37010
 
  esac
37011
 
  
37012
 
  
37013
 
 
37014
 
  b_c_pre=$php_c_pre
37015
 
  b_cxx_pre=$php_cxx_pre
37016
 
  b_c_meta=$php_c_meta
37017
 
  b_cxx_meta=$php_cxx_meta
37018
 
  b_c_post=$php_c_post
37019
 
  b_cxx_post=$php_cxx_post
37020
 
  b_lo=$php_lo
37021
 
 
37022
 
 
37023
 
  old_IFS=$IFS
37024
 
  for ac_src in $sqlite3_sources; do
37025
 
  
37026
 
      IFS=.
37027
 
      set $ac_src
37028
 
      ac_obj=$1
37029
 
      IFS=$old_IFS
37030
 
      
37031
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
37032
 
 
37033
 
      case $ac_src in
37034
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37035
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37036
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37037
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37038
 
      esac
37039
 
 
37040
 
    cat >>Makefile.objects<<EOF
37041
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37042
 
        $ac_comp
37043
 
EOF
37044
 
  done
37045
 
 
37046
 
 
37047
 
    EXT_STATIC="$EXT_STATIC sqlite3"
37048
 
    if test "$ext_shared" != "nocli"; then
37049
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
37050
 
    fi
37051
 
  else
37052
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
37053
 
      PHP_SQLITE3_SHARED=yes
37054
 
      
37055
 
  case ext/sqlite3 in
37056
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37057
 
  /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37058
 
  *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37059
 
  esac
37060
 
  
37061
 
  
37062
 
 
37063
 
  b_c_pre=$shared_c_pre
37064
 
  b_cxx_pre=$shared_cxx_pre
37065
 
  b_c_meta=$shared_c_meta
37066
 
  b_cxx_meta=$shared_cxx_meta
37067
 
  b_c_post=$shared_c_post
37068
 
  b_cxx_post=$shared_cxx_post
37069
 
  b_lo=$shared_lo
37070
 
 
37071
 
 
37072
 
  old_IFS=$IFS
37073
 
  for ac_src in $sqlite3_sources; do
37074
 
  
37075
 
      IFS=.
37076
 
      set $ac_src
37077
 
      ac_obj=$1
37078
 
      IFS=$old_IFS
37079
 
      
37080
 
      shared_objects_sqlite3="$shared_objects_sqlite3 $ac_bdir$ac_obj.lo"
37081
 
 
37082
 
      case $ac_src in
37083
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37084
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37085
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37086
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37087
 
      esac
37088
 
 
37089
 
    cat >>Makefile.objects<<EOF
37090
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37091
 
        $ac_comp
37092
 
EOF
37093
 
  done
37094
 
 
37095
 
      case $host_alias in
37096
 
        *netware*)
37097
 
          
37098
 
  install_modules="install-modules"
37099
 
 
37100
 
  case $host_alias in
37101
 
    *aix*)
37102
 
      suffix=so
37103
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsqlite3.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(PHPSQLITE3_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsqlite3.so '$ext_builddir'/phpsqlite3.so'
37104
 
      ;;
37105
 
    *netware*)
37106
 
      suffix=nlm
37107
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) -L$(top_builddir)/netware -lphp5lib $(SQLITE3_SHARED_LIBADD)'
37108
 
      ;;
37109
 
    *)
37110
 
      suffix=la
37111
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(PHPSQLITE3_SHARED_LIBADD)'
37112
 
      ;;
37113
 
  esac
37114
 
 
37115
 
  if test "x" = "xyes"; then
37116
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsqlite3.$suffix"
37117
 
  else
37118
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsqlite3.$suffix"
37119
 
  fi
37120
 
  
37121
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
37122
 
 
37123
 
  cat >>Makefile.objects<<EOF
37124
 
\$(phplibdir)/phpsqlite3.$suffix: $ext_builddir/phpsqlite3.$suffix
37125
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsqlite3.$suffix \$(phplibdir)
37126
 
 
37127
 
$ext_builddir/phpsqlite3.$suffix: \$(shared_objects_sqlite3) \$(PHPSQLITE3_SHARED_DEPENDENCIES)
37128
 
        $link_cmd
37129
 
 
37130
 
EOF
37131
 
 
37132
 
          ;;
37133
 
        *)
37134
 
          
37135
 
  install_modules="install-modules"
37136
 
 
37137
 
  case $host_alias in
37138
 
    *aix*)
37139
 
      suffix=so
37140
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sqlite3.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(SQLITE3_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sqlite3.so '$ext_builddir'/sqlite3.so'
37141
 
      ;;
37142
 
    *netware*)
37143
 
      suffix=nlm
37144
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) -L$(top_builddir)/netware -lphp5lib $(ITE3_SHARED_LIBADD)'
37145
 
      ;;
37146
 
    *)
37147
 
      suffix=la
37148
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite3) $(SQLITE3_SHARED_LIBADD)'
37149
 
      ;;
37150
 
  esac
37151
 
 
37152
 
  if test "x" = "xyes"; then
37153
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sqlite3.$suffix"
37154
 
  else
37155
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/sqlite3.$suffix"
37156
 
  fi
37157
 
  
37158
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
37159
 
 
37160
 
  cat >>Makefile.objects<<EOF
37161
 
\$(phplibdir)/sqlite3.$suffix: $ext_builddir/sqlite3.$suffix
37162
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/sqlite3.$suffix \$(phplibdir)
37163
 
 
37164
 
$ext_builddir/sqlite3.$suffix: \$(shared_objects_sqlite3) \$(SQLITE3_SHARED_DEPENDENCIES)
37165
 
        $link_cmd
37166
 
 
37167
 
EOF
37168
 
 
37169
 
          ;;
37170
 
      esac
37171
 
      
37172
 
cat >>confdefs.h <<_ACEOF
37173
 
@%:@define COMPILE_DL_SQLITE3 1
37174
 
_ACEOF
37175
 
 
37176
 
    fi
37177
 
  fi
37178
 
 
37179
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
37180
 
    PHP_SQLITE3_SHARED=no
37181
 
    case "$PHP_SAPI" in
37182
 
      cgi|embed)
37183
 
        
37184
 
  
37185
 
  case ext/sqlite3 in
37186
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37187
 
  /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37188
 
  *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37189
 
  esac
37190
 
  
37191
 
  
37192
 
 
37193
 
  b_c_pre=$php_c_pre
37194
 
  b_cxx_pre=$php_cxx_pre
37195
 
  b_c_meta=$php_c_meta
37196
 
  b_cxx_meta=$php_cxx_meta
37197
 
  b_c_post=$php_c_post
37198
 
  b_cxx_post=$php_cxx_post
37199
 
  b_lo=$php_lo
37200
 
 
37201
 
 
37202
 
  old_IFS=$IFS
37203
 
  for ac_src in $sqlite3_sources; do
37204
 
  
37205
 
      IFS=.
37206
 
      set $ac_src
37207
 
      ac_obj=$1
37208
 
      IFS=$old_IFS
37209
 
      
37210
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
37211
 
 
37212
 
      case $ac_src in
37213
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37214
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37215
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37216
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37217
 
      esac
37218
 
 
37219
 
    cat >>Makefile.objects<<EOF
37220
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37221
 
        $ac_comp
37222
 
EOF
37223
 
  done
37224
 
 
37225
 
 
37226
 
        EXT_STATIC="$EXT_STATIC sqlite3"
37227
 
        ;;
37228
 
      *)
37229
 
        
37230
 
  
37231
 
  case ext/sqlite3 in
37232
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37233
 
  /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37234
 
  *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37235
 
  esac
37236
 
  
37237
 
  
37238
 
 
37239
 
  b_c_pre=$php_c_pre
37240
 
  b_cxx_pre=$php_cxx_pre
37241
 
  b_c_meta=$php_c_meta
37242
 
  b_cxx_meta=$php_cxx_meta
37243
 
  b_c_post=$php_c_post
37244
 
  b_cxx_post=$php_cxx_post
37245
 
  b_lo=$php_lo
37246
 
 
37247
 
 
37248
 
  old_IFS=$IFS
37249
 
  for ac_src in $sqlite3_sources; do
37250
 
  
37251
 
      IFS=.
37252
 
      set $ac_src
37253
 
      ac_obj=$1
37254
 
      IFS=$old_IFS
37255
 
      
37256
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
37257
 
 
37258
 
      case $ac_src in
37259
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37260
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37261
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37262
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37263
 
      esac
37264
 
 
37265
 
    cat >>Makefile.objects<<EOF
37266
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37267
 
        $ac_comp
37268
 
EOF
37269
 
  done
37270
 
 
37271
 
 
37272
 
        ;;
37273
 
    esac
37274
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
37275
 
  fi
37276
 
  
37277
 
  
37278
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
37279
 
  
37280
 
 
37281
 
 
37282
 
  if test "$ext_builddir" = "."; then
37283
 
    PHP_PECL_EXTENSION=sqlite3
37284
 
    
37285
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
37286
 
 
37287
 
  fi
37288
 
 
37289
 
  
37290
 
  
37291
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/libsqlite"
37292
 
  
37293
 
 
37294
 
  
37295
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE3_SHARED_LIBADD"
37296
 
 
37297
 
fi
37298
 
 
37299
 
 
37300
 
 
37301
 
php_with_zlib=no
37302
 
 
37303
 
{ $as_echo "$as_me:$LINENO: checking for ZLIB support" >&5
37304
 
$as_echo_n "checking for ZLIB support... " >&6; }
37305
 
 
37306
 
@%:@ Check whether --with-zlib was given.
37307
 
if test "${with_zlib+set}" = set; then
37308
 
  withval=$with_zlib; PHP_ZLIB=$withval
37309
 
else
37310
 
  
37311
 
  PHP_ZLIB=no
37312
 
  test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL
37313
 
 
37314
 
fi
37315
 
 
37316
 
 
37317
 
 
37318
 
ext_output="yes, shared"
37319
 
ext_shared=yes
37320
 
case $PHP_ZLIB in
37321
 
shared,*)
37322
 
  PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'`
37323
 
  ;;
37324
 
shared)
37325
 
  PHP_ZLIB=yes
37326
 
  ;;
37327
 
no)
37328
 
  ext_output=no
37329
 
  ext_shared=no
37330
 
  ;;
37331
 
*)
37332
 
  ext_output=yes
37333
 
  ext_shared=no
37334
 
  ;;
37335
 
esac
37336
 
 
37337
 
 
37338
 
 
37339
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
37340
 
$as_echo "$ext_output" >&6; }
37341
 
 
37342
 
 
37343
 
 
37344
 
 
37345
 
 
37346
 
php_with_zlib_dir=no
37347
 
 
37348
 
{ $as_echo "$as_me:$LINENO: checking if the location of ZLIB install directory is defined" >&5
37349
 
$as_echo_n "checking if the location of ZLIB install directory is defined... " >&6; }
37350
 
 
37351
 
@%:@ Check whether --with-zlib-dir was given.
37352
 
if test "${with_zlib_dir+set}" = set; then
37353
 
  withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
37354
 
else
37355
 
  
37356
 
  PHP_ZLIB_DIR=no
37357
 
  
37358
 
 
37359
 
fi
37360
 
 
37361
 
 
37362
 
ext_output=$PHP_ZLIB_DIR
37363
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
37364
 
$as_echo "$ext_output" >&6; }
37365
 
 
37366
 
 
37367
 
 
37368
 
 
37369
 
if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
37370
 
  
37371
 
  ext_builddir=ext/zlib
37372
 
  ext_srcdir=$abs_srcdir/ext/zlib
37373
 
 
37374
 
  ac_extra=
37375
 
 
37376
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
37377
 
    PHP_ZLIB_SHARED=no
37378
 
    
37379
 
  
37380
 
  case ext/zlib in
37381
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37382
 
  /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37383
 
  *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37384
 
  esac
37385
 
  
37386
 
  
37387
 
 
37388
 
  b_c_pre=$php_c_pre
37389
 
  b_cxx_pre=$php_cxx_pre
37390
 
  b_c_meta=$php_c_meta
37391
 
  b_cxx_meta=$php_cxx_meta
37392
 
  b_c_post=$php_c_post
37393
 
  b_cxx_post=$php_cxx_post
37394
 
  b_lo=$php_lo
37395
 
 
37396
 
 
37397
 
  old_IFS=$IFS
37398
 
  for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
37399
 
  
37400
 
      IFS=.
37401
 
      set $ac_src
37402
 
      ac_obj=$1
37403
 
      IFS=$old_IFS
37404
 
      
37405
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
37406
 
 
37407
 
      case $ac_src in
37408
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37409
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37410
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37411
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37412
 
      esac
37413
 
 
37414
 
    cat >>Makefile.objects<<EOF
37415
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37416
 
        $ac_comp
37417
 
EOF
37418
 
  done
37419
 
 
37420
 
 
37421
 
    EXT_STATIC="$EXT_STATIC zlib"
37422
 
    if test "$ext_shared" != "nocli"; then
37423
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
37424
 
    fi
37425
 
  else
37426
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
37427
 
      PHP_ZLIB_SHARED=yes
37428
 
      
37429
 
  case ext/zlib in
37430
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37431
 
  /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37432
 
  *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37433
 
  esac
37434
 
  
37435
 
  
37436
 
 
37437
 
  b_c_pre=$shared_c_pre
37438
 
  b_cxx_pre=$shared_cxx_pre
37439
 
  b_c_meta=$shared_c_meta
37440
 
  b_cxx_meta=$shared_cxx_meta
37441
 
  b_c_post=$shared_c_post
37442
 
  b_cxx_post=$shared_cxx_post
37443
 
  b_lo=$shared_lo
37444
 
 
37445
 
 
37446
 
  old_IFS=$IFS
37447
 
  for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
37448
 
  
37449
 
      IFS=.
37450
 
      set $ac_src
37451
 
      ac_obj=$1
37452
 
      IFS=$old_IFS
37453
 
      
37454
 
      shared_objects_zlib="$shared_objects_zlib $ac_bdir$ac_obj.lo"
37455
 
 
37456
 
      case $ac_src in
37457
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37458
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37459
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37460
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37461
 
      esac
37462
 
 
37463
 
    cat >>Makefile.objects<<EOF
37464
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37465
 
        $ac_comp
37466
 
EOF
37467
 
  done
37468
 
 
37469
 
      case $host_alias in
37470
 
        *netware*)
37471
 
          
37472
 
  install_modules="install-modules"
37473
 
 
37474
 
  case $host_alias in
37475
 
    *aix*)
37476
 
      suffix=so
37477
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpzlib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(PHPZLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpzlib.so '$ext_builddir'/phpzlib.so'
37478
 
      ;;
37479
 
    *netware*)
37480
 
      suffix=nlm
37481
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) -L$(top_builddir)/netware -lphp5lib $(ZLIB_SHARED_LIBADD)'
37482
 
      ;;
37483
 
    *)
37484
 
      suffix=la
37485
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(PHPZLIB_SHARED_LIBADD)'
37486
 
      ;;
37487
 
  esac
37488
 
 
37489
 
  if test "x" = "xyes"; then
37490
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzlib.$suffix"
37491
 
  else
37492
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzlib.$suffix"
37493
 
  fi
37494
 
  
37495
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
37496
 
 
37497
 
  cat >>Makefile.objects<<EOF
37498
 
\$(phplibdir)/phpzlib.$suffix: $ext_builddir/phpzlib.$suffix
37499
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpzlib.$suffix \$(phplibdir)
37500
 
 
37501
 
$ext_builddir/phpzlib.$suffix: \$(shared_objects_zlib) \$(PHPZLIB_SHARED_DEPENDENCIES)
37502
 
        $link_cmd
37503
 
 
37504
 
EOF
37505
 
 
37506
 
          ;;
37507
 
        *)
37508
 
          
37509
 
  install_modules="install-modules"
37510
 
 
37511
 
  case $host_alias in
37512
 
    *aix*)
37513
 
      suffix=so
37514
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/zlib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(ZLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/zlib.so '$ext_builddir'/zlib.so'
37515
 
      ;;
37516
 
    *netware*)
37517
 
      suffix=nlm
37518
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) -L$(top_builddir)/netware -lphp5lib $(B_SHARED_LIBADD)'
37519
 
      ;;
37520
 
    *)
37521
 
      suffix=la
37522
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zlib) $(ZLIB_SHARED_LIBADD)'
37523
 
      ;;
37524
 
  esac
37525
 
 
37526
 
  if test "x" = "xyes"; then
37527
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zlib.$suffix"
37528
 
  else
37529
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/zlib.$suffix"
37530
 
  fi
37531
 
  
37532
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
37533
 
 
37534
 
  cat >>Makefile.objects<<EOF
37535
 
\$(phplibdir)/zlib.$suffix: $ext_builddir/zlib.$suffix
37536
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/zlib.$suffix \$(phplibdir)
37537
 
 
37538
 
$ext_builddir/zlib.$suffix: \$(shared_objects_zlib) \$(ZLIB_SHARED_DEPENDENCIES)
37539
 
        $link_cmd
37540
 
 
37541
 
EOF
37542
 
 
37543
 
          ;;
37544
 
      esac
37545
 
      
37546
 
cat >>confdefs.h <<_ACEOF
37547
 
@%:@define COMPILE_DL_ZLIB 1
37548
 
_ACEOF
37549
 
 
37550
 
    fi
37551
 
  fi
37552
 
 
37553
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
37554
 
    PHP_ZLIB_SHARED=no
37555
 
    case "$PHP_SAPI" in
37556
 
      cgi|embed)
37557
 
        
37558
 
  
37559
 
  case ext/zlib in
37560
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37561
 
  /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37562
 
  *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37563
 
  esac
37564
 
  
37565
 
  
37566
 
 
37567
 
  b_c_pre=$php_c_pre
37568
 
  b_cxx_pre=$php_cxx_pre
37569
 
  b_c_meta=$php_c_meta
37570
 
  b_cxx_meta=$php_cxx_meta
37571
 
  b_c_post=$php_c_post
37572
 
  b_cxx_post=$php_cxx_post
37573
 
  b_lo=$php_lo
37574
 
 
37575
 
 
37576
 
  old_IFS=$IFS
37577
 
  for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
37578
 
  
37579
 
      IFS=.
37580
 
      set $ac_src
37581
 
      ac_obj=$1
37582
 
      IFS=$old_IFS
37583
 
      
37584
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
37585
 
 
37586
 
      case $ac_src in
37587
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37588
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37589
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37590
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37591
 
      esac
37592
 
 
37593
 
    cat >>Makefile.objects<<EOF
37594
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37595
 
        $ac_comp
37596
 
EOF
37597
 
  done
37598
 
 
37599
 
 
37600
 
        EXT_STATIC="$EXT_STATIC zlib"
37601
 
        ;;
37602
 
      *)
37603
 
        
37604
 
  
37605
 
  case ext/zlib in
37606
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37607
 
  /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37608
 
  *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37609
 
  esac
37610
 
  
37611
 
  
37612
 
 
37613
 
  b_c_pre=$php_c_pre
37614
 
  b_cxx_pre=$php_cxx_pre
37615
 
  b_c_meta=$php_c_meta
37616
 
  b_cxx_meta=$php_cxx_meta
37617
 
  b_c_post=$php_c_post
37618
 
  b_cxx_post=$php_cxx_post
37619
 
  b_lo=$php_lo
37620
 
 
37621
 
 
37622
 
  old_IFS=$IFS
37623
 
  for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
37624
 
  
37625
 
      IFS=.
37626
 
      set $ac_src
37627
 
      ac_obj=$1
37628
 
      IFS=$old_IFS
37629
 
      
37630
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
37631
 
 
37632
 
      case $ac_src in
37633
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37634
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37635
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37636
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37637
 
      esac
37638
 
 
37639
 
    cat >>Makefile.objects<<EOF
37640
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37641
 
        $ac_comp
37642
 
EOF
37643
 
  done
37644
 
 
37645
 
 
37646
 
        ;;
37647
 
    esac
37648
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
37649
 
  fi
37650
 
  
37651
 
  
37652
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
37653
 
  
37654
 
 
37655
 
 
37656
 
  if test "$ext_builddir" = "."; then
37657
 
    PHP_PECL_EXTENSION=zlib
37658
 
    
37659
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
37660
 
 
37661
 
  fi
37662
 
 
37663
 
  
37664
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ZLIB_SHARED_LIBADD"
37665
 
 
37666
 
  
37667
 
  if test "$PHP_ZLIB" != "yes" -a "$PHP_ZLIB" != "no"; then 
37668
 
    if test -f $PHP_ZLIB/include/zlib/zlib.h; then
37669
 
      ZLIB_DIR=$PHP_ZLIB
37670
 
      ZLIB_INCDIR=$ZLIB_DIR/include/zlib
37671
 
    elif test -f $PHP_ZLIB/include/zlib.h; then
37672
 
      ZLIB_DIR=$PHP_ZLIB
37673
 
      ZLIB_INCDIR=$ZLIB_DIR/include
37674
 
    fi
37675
 
  else 
37676
 
    for i in /usr/local /usr $PHP_ZLIB_DIR; do
37677
 
      if test -f $i/include/zlib/zlib.h; then
37678
 
        ZLIB_DIR=$i
37679
 
        ZLIB_INCDIR=$i/include/zlib
37680
 
      elif test -f $i/include/zlib.h; then
37681
 
        ZLIB_DIR=$i
37682
 
        ZLIB_INCDIR=$i/include
37683
 
      fi
37684
 
    done
37685
 
  fi
37686
 
  
37687
 
  if test -z "$ZLIB_DIR"; then
37688
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find libz" >&5
37689
 
$as_echo "$as_me: error: Cannot find libz" >&2;}
37690
 
   { (exit 1); exit 1; }; }
37691
 
  fi
37692
 
 
37693
 
  case $ZLIB_DIR in
37694
 
  /usr) ac_extra= ;; 
37695
 
  *) ac_extra=-L$ZLIB_DIR/$PHP_LIBDIR ;;
37696
 
  esac
37697
 
 
37698
 
  
37699
 
  save_old_LDFLAGS=$LDFLAGS
37700
 
  ac_stuff="
37701
 
    $ac_extra
37702
 
  "
37703
 
  
37704
 
  save_ext_shared=$ext_shared
37705
 
  ext_shared=yes
37706
 
  
37707
 
  for ac_i in $ac_stuff; do
37708
 
    case $ac_i in
37709
 
    -pthread)
37710
 
      if test "$ext_shared" = "yes"; then
37711
 
        LDFLAGS="$LDFLAGS -pthread"
37712
 
      else
37713
 
        
37714
 
  
37715
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
37716
 
  
37717
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
37718
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
37719
 
    eval "EXTRA_LDFLAGS$unique=set"
37720
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
37721
 
  fi
37722
 
 
37723
 
      fi
37724
 
    ;;
37725
 
    -l*)
37726
 
      ac_ii=`echo $ac_i|cut -c 3-`
37727
 
      
37728
 
  
37729
 
  case $ac_ii in
37730
 
  c|c_r|pthread*) ;;
37731
 
  *) 
37732
 
    if test "$ext_shared" = "yes"; then
37733
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
37734
 
    else
37735
 
      
37736
 
  
37737
 
  case $ac_ii in
37738
 
  c|c_r|pthread*) ;;
37739
 
  *) 
37740
 
      LIBS="$LIBS -l$ac_ii" 
37741
 
   ;;
37742
 
  esac
37743
 
 
37744
 
 
37745
 
    fi
37746
 
   ;;
37747
 
  esac
37748
 
 
37749
 
 
37750
 
    ;;
37751
 
    -L*)
37752
 
      ac_ii=`echo $ac_i|cut -c 3-`
37753
 
      
37754
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
37755
 
    
37756
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
37757
 
    ai_p=$ac_ii
37758
 
  else
37759
 
    
37760
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
37761
 
    
37762
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
37763
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
37764
 
  fi
37765
 
 
37766
 
    
37767
 
      if test "$ext_shared" = "yes"; then
37768
 
        LDFLAGS="-L$ai_p $LDFLAGS"
37769
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
37770
 
      else
37771
 
        
37772
 
  
37773
 
  
37774
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37775
 
  
37776
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
37777
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
37778
 
    eval "LIBPATH$unique=set"
37779
 
    
37780
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
37781
 
    LDFLAGS="$LDFLAGS -L$ai_p"
37782
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
37783
 
  
37784
 
  fi
37785
 
 
37786
 
 
37787
 
      fi
37788
 
    
37789
 
  fi
37790
 
 
37791
 
    ;;
37792
 
    esac
37793
 
  done
37794
 
 
37795
 
  { $as_echo "$as_me:$LINENO: checking for gzgets in -lz" >&5
37796
 
$as_echo_n "checking for gzgets in -lz... " >&6; }
37797
 
if test "${ac_cv_lib_z_gzgets+set}" = set; then
37798
 
  $as_echo_n "(cached) " >&6
37799
 
else
37800
 
  ac_check_lib_save_LIBS=$LIBS
37801
 
LIBS="-lz  $LIBS"
37802
 
cat >conftest.$ac_ext <<_ACEOF
37803
 
/* confdefs.h.  */
37804
 
_ACEOF
37805
 
cat confdefs.h >>conftest.$ac_ext
37806
 
cat >>conftest.$ac_ext <<_ACEOF
37807
 
/* end confdefs.h.  */
37808
 
 
37809
 
/* Override any GCC internal prototype to avoid an error.
37810
 
   Use char because int might match the return type of a GCC
37811
 
   builtin and then its argument prototype would still apply.  */
37812
 
#ifdef __cplusplus
37813
 
extern "C"
37814
 
#endif
37815
 
char gzgets ();
37816
 
int
37817
 
main ()
37818
 
{
37819
 
return gzgets ();
37820
 
  ;
37821
 
  return 0;
37822
 
}
37823
 
_ACEOF
37824
 
rm -f conftest.$ac_objext conftest$ac_exeext
37825
 
if { (ac_try="$ac_link"
37826
 
case "(($ac_try" in
37827
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37828
 
  *) ac_try_echo=$ac_try;;
37829
 
esac
37830
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37831
 
$as_echo "$ac_try_echo") >&5
37832
 
  (eval "$ac_link") 2>conftest.er1
37833
 
  ac_status=$?
37834
 
  grep -v '^ *+' conftest.er1 >conftest.err
37835
 
  rm -f conftest.er1
37836
 
  cat conftest.err >&5
37837
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838
 
  (exit $ac_status); } && {
37839
 
         test -z "$ac_c_werror_flag" ||
37840
 
         test ! -s conftest.err
37841
 
       } && test -s conftest$ac_exeext && {
37842
 
         test "$cross_compiling" = yes ||
37843
 
         $as_test_x conftest$ac_exeext
37844
 
       }; then
37845
 
  ac_cv_lib_z_gzgets=yes
37846
 
else
37847
 
  $as_echo "$as_me: failed program was:" >&5
37848
 
sed 's/^/| /' conftest.$ac_ext >&5
37849
 
 
37850
 
        ac_cv_lib_z_gzgets=no
37851
 
fi
37852
 
 
37853
 
rm -rf conftest.dSYM
37854
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37855
 
      conftest$ac_exeext conftest.$ac_ext
37856
 
LIBS=$ac_check_lib_save_LIBS
37857
 
fi
37858
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzgets" >&5
37859
 
$as_echo "$ac_cv_lib_z_gzgets" >&6; }
37860
 
if test "x$ac_cv_lib_z_gzgets" = x""yes; then
37861
 
  
37862
 
    LDFLAGS=$save_old_LDFLAGS
37863
 
    ext_shared=$save_ext_shared
37864
 
    
37865
 
    
37866
 
cat >>confdefs.h <<\_ACEOF
37867
 
@%:@define HAVE_ZLIB 1
37868
 
_ACEOF
37869
 
 
37870
 
  
37871
 
  
37872
 
else
37873
 
  
37874
 
    LDFLAGS=$save_old_LDFLAGS
37875
 
    ext_shared=$save_ext_shared
37876
 
    unset ac_cv_lib_z_gzgets
37877
 
    
37878
 
    { { $as_echo "$as_me:$LINENO: error: ZLIB extension requires zlib >= 1.0.9" >&5
37879
 
$as_echo "$as_me: error: ZLIB extension requires zlib >= 1.0.9" >&2;}
37880
 
   { (exit 1); exit 1; }; }
37881
 
  
37882
 
  
37883
 
fi
37884
 
 
37885
 
 
37886
 
  
37887
 
  if test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
37888
 
    
37889
 
  if test -z "$ZLIB_DIR/$PHP_LIBDIR" || echo "$ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
37890
 
    ai_p=$ZLIB_DIR/$PHP_LIBDIR
37891
 
  else
37892
 
    
37893
 
    ep_dir="`echo $ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
37894
 
    
37895
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
37896
 
    ai_p="$ep_realdir/`basename \"$ZLIB_DIR/$PHP_LIBDIR\"`"
37897
 
  fi
37898
 
 
37899
 
    
37900
 
      if test "$ext_shared" = "yes"; then
37901
 
        ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD"
37902
 
        test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD"
37903
 
      else
37904
 
        
37905
 
  
37906
 
  
37907
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37908
 
  
37909
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
37910
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
37911
 
    eval "LIBPATH$unique=set"
37912
 
    
37913
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
37914
 
    LDFLAGS="$LDFLAGS -L$ai_p"
37915
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
37916
 
  
37917
 
  fi
37918
 
 
37919
 
 
37920
 
      fi
37921
 
    
37922
 
  fi
37923
 
 
37924
 
 
37925
 
  PHP_ZLIB_DIR=$ZLIB_DIR
37926
 
  
37927
 
  
37928
 
  case z in
37929
 
  c|c_r|pthread*) ;;
37930
 
  *) 
37931
 
    if test "$ext_shared" = "yes"; then
37932
 
        ZLIB_SHARED_LIBADD="-lz $ZLIB_SHARED_LIBADD" 
37933
 
    else
37934
 
      
37935
 
  
37936
 
  case z in
37937
 
  c|c_r|pthread*) ;;
37938
 
  *) 
37939
 
      LIBS="-lz $LIBS" 
37940
 
   ;;
37941
 
  esac
37942
 
 
37943
 
 
37944
 
    fi
37945
 
   ;;
37946
 
  esac
37947
 
 
37948
 
 
37949
 
  
37950
 
  if test "$ZLIB_INCDIR" != "/usr/include"; then
37951
 
    
37952
 
  if test -z "$ZLIB_INCDIR" || echo "$ZLIB_INCDIR" | grep '^/' >/dev/null ; then
37953
 
    ai_p=$ZLIB_INCDIR
37954
 
  else
37955
 
    
37956
 
    ep_dir="`echo $ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
37957
 
    
37958
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
37959
 
    ai_p="$ep_realdir/`basename \"$ZLIB_INCDIR\"`"
37960
 
  fi
37961
 
 
37962
 
    
37963
 
  
37964
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37965
 
  
37966
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
37967
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
37968
 
    eval "INCLUDEPATH$unique=set"
37969
 
    
37970
 
      if test ""; then
37971
 
        INCLUDES="-I$ai_p $INCLUDES"
37972
 
      else
37973
 
        INCLUDES="$INCLUDES -I$ai_p"
37974
 
      fi
37975
 
    
37976
 
  fi
37977
 
 
37978
 
  fi
37979
 
 
37980
 
 
37981
 
fi
37982
 
 
37983
 
 
37984
 
 
37985
 
php_enable_bcmath=no
37986
 
 
37987
 
{ $as_echo "$as_me:$LINENO: checking whether to enable bc style precision math functions" >&5
37988
 
$as_echo_n "checking whether to enable bc style precision math functions... " >&6; }
37989
 
@%:@ Check whether --enable-bcmath was given.
37990
 
if test "${enable_bcmath+set}" = set; then
37991
 
  enableval=$enable_bcmath; PHP_BCMATH=$enableval
37992
 
else
37993
 
  
37994
 
  PHP_BCMATH=no
37995
 
  test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL
37996
 
 
37997
 
fi
37998
 
 
37999
 
 
38000
 
 
38001
 
ext_output="yes, shared"
38002
 
ext_shared=yes
38003
 
case $PHP_BCMATH in
38004
 
shared,*)
38005
 
  PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'`
38006
 
  ;;
38007
 
shared)
38008
 
  PHP_BCMATH=yes
38009
 
  ;;
38010
 
no)
38011
 
  ext_output=no
38012
 
  ext_shared=no
38013
 
  ;;
38014
 
*)
38015
 
  ext_output=yes
38016
 
  ext_shared=no
38017
 
  ;;
38018
 
esac
38019
 
 
38020
 
 
38021
 
 
38022
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
38023
 
$as_echo "$ext_output" >&6; }
38024
 
 
38025
 
 
38026
 
 
38027
 
 
38028
 
if test "$PHP_BCMATH" != "no"; then
38029
 
  
38030
 
  ext_builddir=ext/bcmath
38031
 
  ext_srcdir=$abs_srcdir/ext/bcmath
38032
 
 
38033
 
  ac_extra=`echo "-I@ext_srcdir@/libbcmath/src"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
38034
 
 
38035
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
38036
 
    PHP_BCMATH_SHARED=no
38037
 
    
38038
 
  
38039
 
  case ext/bcmath in
38040
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38041
 
  /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38042
 
  *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38043
 
  esac
38044
 
  
38045
 
  
38046
 
 
38047
 
  b_c_pre=$php_c_pre
38048
 
  b_cxx_pre=$php_cxx_pre
38049
 
  b_c_meta=$php_c_meta
38050
 
  b_cxx_meta=$php_cxx_meta
38051
 
  b_c_post=$php_c_post
38052
 
  b_cxx_post=$php_cxx_post
38053
 
  b_lo=$php_lo
38054
 
 
38055
 
 
38056
 
  old_IFS=$IFS
38057
 
  for ac_src in bcmath.c \
38058
 
libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
38059
 
libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
38060
 
libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
38061
 
libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
38062
 
  
38063
 
      IFS=.
38064
 
      set $ac_src
38065
 
      ac_obj=$1
38066
 
      IFS=$old_IFS
38067
 
      
38068
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
38069
 
 
38070
 
      case $ac_src in
38071
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38072
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38073
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38074
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38075
 
      esac
38076
 
 
38077
 
    cat >>Makefile.objects<<EOF
38078
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38079
 
        $ac_comp
38080
 
EOF
38081
 
  done
38082
 
 
38083
 
 
38084
 
    EXT_STATIC="$EXT_STATIC bcmath"
38085
 
    if test "$ext_shared" != "nocli"; then
38086
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
38087
 
    fi
38088
 
  else
38089
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
38090
 
      PHP_BCMATH_SHARED=yes
38091
 
      
38092
 
  case ext/bcmath in
38093
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38094
 
  /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38095
 
  *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38096
 
  esac
38097
 
  
38098
 
  
38099
 
 
38100
 
  b_c_pre=$shared_c_pre
38101
 
  b_cxx_pre=$shared_cxx_pre
38102
 
  b_c_meta=$shared_c_meta
38103
 
  b_cxx_meta=$shared_cxx_meta
38104
 
  b_c_post=$shared_c_post
38105
 
  b_cxx_post=$shared_cxx_post
38106
 
  b_lo=$shared_lo
38107
 
 
38108
 
 
38109
 
  old_IFS=$IFS
38110
 
  for ac_src in bcmath.c \
38111
 
libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
38112
 
libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
38113
 
libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
38114
 
libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
38115
 
  
38116
 
      IFS=.
38117
 
      set $ac_src
38118
 
      ac_obj=$1
38119
 
      IFS=$old_IFS
38120
 
      
38121
 
      shared_objects_bcmath="$shared_objects_bcmath $ac_bdir$ac_obj.lo"
38122
 
 
38123
 
      case $ac_src in
38124
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38125
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38126
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38127
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38128
 
      esac
38129
 
 
38130
 
    cat >>Makefile.objects<<EOF
38131
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38132
 
        $ac_comp
38133
 
EOF
38134
 
  done
38135
 
 
38136
 
      case $host_alias in
38137
 
        *netware*)
38138
 
          
38139
 
  install_modules="install-modules"
38140
 
 
38141
 
  case $host_alias in
38142
 
    *aix*)
38143
 
      suffix=so
38144
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpbcmath.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(PHPBCMATH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpbcmath.so '$ext_builddir'/phpbcmath.so'
38145
 
      ;;
38146
 
    *netware*)
38147
 
      suffix=nlm
38148
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) -L$(top_builddir)/netware -lphp5lib $(BCMATH_SHARED_LIBADD)'
38149
 
      ;;
38150
 
    *)
38151
 
      suffix=la
38152
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(PHPBCMATH_SHARED_LIBADD)'
38153
 
      ;;
38154
 
  esac
38155
 
 
38156
 
  if test "x" = "xyes"; then
38157
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbcmath.$suffix"
38158
 
  else
38159
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbcmath.$suffix"
38160
 
  fi
38161
 
  
38162
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
38163
 
 
38164
 
  cat >>Makefile.objects<<EOF
38165
 
\$(phplibdir)/phpbcmath.$suffix: $ext_builddir/phpbcmath.$suffix
38166
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpbcmath.$suffix \$(phplibdir)
38167
 
 
38168
 
$ext_builddir/phpbcmath.$suffix: \$(shared_objects_bcmath) \$(PHPBCMATH_SHARED_DEPENDENCIES)
38169
 
        $link_cmd
38170
 
 
38171
 
EOF
38172
 
 
38173
 
          ;;
38174
 
        *)
38175
 
          
38176
 
  install_modules="install-modules"
38177
 
 
38178
 
  case $host_alias in
38179
 
    *aix*)
38180
 
      suffix=so
38181
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/bcmath.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(BCMATH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/bcmath.so '$ext_builddir'/bcmath.so'
38182
 
      ;;
38183
 
    *netware*)
38184
 
      suffix=nlm
38185
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) -L$(top_builddir)/netware -lphp5lib $(ATH_SHARED_LIBADD)'
38186
 
      ;;
38187
 
    *)
38188
 
      suffix=la
38189
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bcmath) $(BCMATH_SHARED_LIBADD)'
38190
 
      ;;
38191
 
  esac
38192
 
 
38193
 
  if test "x" = "xyes"; then
38194
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bcmath.$suffix"
38195
 
  else
38196
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/bcmath.$suffix"
38197
 
  fi
38198
 
  
38199
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
38200
 
 
38201
 
  cat >>Makefile.objects<<EOF
38202
 
\$(phplibdir)/bcmath.$suffix: $ext_builddir/bcmath.$suffix
38203
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/bcmath.$suffix \$(phplibdir)
38204
 
 
38205
 
$ext_builddir/bcmath.$suffix: \$(shared_objects_bcmath) \$(BCMATH_SHARED_DEPENDENCIES)
38206
 
        $link_cmd
38207
 
 
38208
 
EOF
38209
 
 
38210
 
          ;;
38211
 
      esac
38212
 
      
38213
 
cat >>confdefs.h <<_ACEOF
38214
 
@%:@define COMPILE_DL_BCMATH 1
38215
 
_ACEOF
38216
 
 
38217
 
    fi
38218
 
  fi
38219
 
 
38220
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
38221
 
    PHP_BCMATH_SHARED=no
38222
 
    case "$PHP_SAPI" in
38223
 
      cgi|embed)
38224
 
        
38225
 
  
38226
 
  case ext/bcmath in
38227
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38228
 
  /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38229
 
  *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38230
 
  esac
38231
 
  
38232
 
  
38233
 
 
38234
 
  b_c_pre=$php_c_pre
38235
 
  b_cxx_pre=$php_cxx_pre
38236
 
  b_c_meta=$php_c_meta
38237
 
  b_cxx_meta=$php_cxx_meta
38238
 
  b_c_post=$php_c_post
38239
 
  b_cxx_post=$php_cxx_post
38240
 
  b_lo=$php_lo
38241
 
 
38242
 
 
38243
 
  old_IFS=$IFS
38244
 
  for ac_src in bcmath.c \
38245
 
libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
38246
 
libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
38247
 
libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
38248
 
libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
38249
 
  
38250
 
      IFS=.
38251
 
      set $ac_src
38252
 
      ac_obj=$1
38253
 
      IFS=$old_IFS
38254
 
      
38255
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
38256
 
 
38257
 
      case $ac_src in
38258
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38259
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38260
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38261
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38262
 
      esac
38263
 
 
38264
 
    cat >>Makefile.objects<<EOF
38265
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38266
 
        $ac_comp
38267
 
EOF
38268
 
  done
38269
 
 
38270
 
 
38271
 
        EXT_STATIC="$EXT_STATIC bcmath"
38272
 
        ;;
38273
 
      *)
38274
 
        
38275
 
  
38276
 
  case ext/bcmath in
38277
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38278
 
  /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38279
 
  *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38280
 
  esac
38281
 
  
38282
 
  
38283
 
 
38284
 
  b_c_pre=$php_c_pre
38285
 
  b_cxx_pre=$php_cxx_pre
38286
 
  b_c_meta=$php_c_meta
38287
 
  b_cxx_meta=$php_cxx_meta
38288
 
  b_c_post=$php_c_post
38289
 
  b_cxx_post=$php_cxx_post
38290
 
  b_lo=$php_lo
38291
 
 
38292
 
 
38293
 
  old_IFS=$IFS
38294
 
  for ac_src in bcmath.c \
38295
 
libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/rt.c libbcmath/src/sub.c \
38296
 
libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
38297
 
libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
38298
 
libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
38299
 
  
38300
 
      IFS=.
38301
 
      set $ac_src
38302
 
      ac_obj=$1
38303
 
      IFS=$old_IFS
38304
 
      
38305
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
38306
 
 
38307
 
      case $ac_src in
38308
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38309
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38310
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38311
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38312
 
      esac
38313
 
 
38314
 
    cat >>Makefile.objects<<EOF
38315
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38316
 
        $ac_comp
38317
 
EOF
38318
 
  done
38319
 
 
38320
 
 
38321
 
        ;;
38322
 
    esac
38323
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
38324
 
  fi
38325
 
  
38326
 
  
38327
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
38328
 
  
38329
 
 
38330
 
 
38331
 
  if test "$ext_builddir" = "."; then
38332
 
    PHP_PECL_EXTENSION=bcmath
38333
 
    
38334
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
38335
 
 
38336
 
  fi
38337
 
 
38338
 
  
38339
 
  
38340
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/libbcmath/src"
38341
 
  
38342
 
 
38343
 
  
38344
 
cat >>confdefs.h <<\_ACEOF
38345
 
@%:@define HAVE_BCMATH 1
38346
 
_ACEOF
38347
 
 
38348
 
fi
38349
 
 
38350
 
 
38351
 
 
38352
 
php_with_bz2=no
38353
 
 
38354
 
{ $as_echo "$as_me:$LINENO: checking for BZip2 support" >&5
38355
 
$as_echo_n "checking for BZip2 support... " >&6; }
38356
 
 
38357
 
@%:@ Check whether --with-bz2 was given.
38358
 
if test "${with_bz2+set}" = set; then
38359
 
  withval=$with_bz2; PHP_BZ2=$withval
38360
 
else
38361
 
  
38362
 
  PHP_BZ2=no
38363
 
  test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL
38364
 
 
38365
 
fi
38366
 
 
38367
 
 
38368
 
 
38369
 
ext_output="yes, shared"
38370
 
ext_shared=yes
38371
 
case $PHP_BZ2 in
38372
 
shared,*)
38373
 
  PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'`
38374
 
  ;;
38375
 
shared)
38376
 
  PHP_BZ2=yes
38377
 
  ;;
38378
 
no)
38379
 
  ext_output=no
38380
 
  ext_shared=no
38381
 
  ;;
38382
 
*)
38383
 
  ext_output=yes
38384
 
  ext_shared=no
38385
 
  ;;
38386
 
esac
38387
 
 
38388
 
 
38389
 
 
38390
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
38391
 
$as_echo "$ext_output" >&6; }
38392
 
 
38393
 
 
38394
 
 
38395
 
 
38396
 
if test "$PHP_BZ2" != "no"; then
38397
 
  if test -r $PHP_BZ2/include/bzlib.h; then
38398
 
    BZIP_DIR=$PHP_BZ2
38399
 
  else
38400
 
    { $as_echo "$as_me:$LINENO: checking for BZip2 in default path" >&5
38401
 
$as_echo_n "checking for BZip2 in default path... " >&6; }
38402
 
    for i in /usr/local /usr; do
38403
 
      if test -r $i/include/bzlib.h; then
38404
 
        BZIP_DIR=$i
38405
 
        { $as_echo "$as_me:$LINENO: result: found in $i" >&5
38406
 
$as_echo "found in $i" >&6; }
38407
 
        break
38408
 
      fi
38409
 
    done
38410
 
  fi
38411
 
 
38412
 
  if test -z "$BZIP_DIR"; then
38413
 
    { $as_echo "$as_me:$LINENO: result: not found" >&5
38414
 
$as_echo "not found" >&6; }
38415
 
    { { $as_echo "$as_me:$LINENO: error: Please reinstall the BZip2 distribution" >&5
38416
 
$as_echo "$as_me: error: Please reinstall the BZip2 distribution" >&2;}
38417
 
   { (exit 1); exit 1; }; }
38418
 
  fi
38419
 
 
38420
 
  
38421
 
  save_old_LDFLAGS=$LDFLAGS
38422
 
  ac_stuff="
38423
 
    -L$BZIP_DIR/$PHP_LIBDIR
38424
 
  "
38425
 
  
38426
 
  save_ext_shared=$ext_shared
38427
 
  ext_shared=yes
38428
 
  
38429
 
  for ac_i in $ac_stuff; do
38430
 
    case $ac_i in
38431
 
    -pthread)
38432
 
      if test "$ext_shared" = "yes"; then
38433
 
        LDFLAGS="$LDFLAGS -pthread"
38434
 
      else
38435
 
        
38436
 
  
38437
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
38438
 
  
38439
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
38440
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
38441
 
    eval "EXTRA_LDFLAGS$unique=set"
38442
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
38443
 
  fi
38444
 
 
38445
 
      fi
38446
 
    ;;
38447
 
    -l*)
38448
 
      ac_ii=`echo $ac_i|cut -c 3-`
38449
 
      
38450
 
  
38451
 
  case $ac_ii in
38452
 
  c|c_r|pthread*) ;;
38453
 
  *) 
38454
 
    if test "$ext_shared" = "yes"; then
38455
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
38456
 
    else
38457
 
      
38458
 
  
38459
 
  case $ac_ii in
38460
 
  c|c_r|pthread*) ;;
38461
 
  *) 
38462
 
      LIBS="$LIBS -l$ac_ii" 
38463
 
   ;;
38464
 
  esac
38465
 
 
38466
 
 
38467
 
    fi
38468
 
   ;;
38469
 
  esac
38470
 
 
38471
 
 
38472
 
    ;;
38473
 
    -L*)
38474
 
      ac_ii=`echo $ac_i|cut -c 3-`
38475
 
      
38476
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
38477
 
    
38478
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
38479
 
    ai_p=$ac_ii
38480
 
  else
38481
 
    
38482
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
38483
 
    
38484
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38485
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
38486
 
  fi
38487
 
 
38488
 
    
38489
 
      if test "$ext_shared" = "yes"; then
38490
 
        LDFLAGS="-L$ai_p $LDFLAGS"
38491
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
38492
 
      else
38493
 
        
38494
 
  
38495
 
  
38496
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38497
 
  
38498
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38499
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
38500
 
    eval "LIBPATH$unique=set"
38501
 
    
38502
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38503
 
    LDFLAGS="$LDFLAGS -L$ai_p"
38504
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
38505
 
  
38506
 
  fi
38507
 
 
38508
 
 
38509
 
      fi
38510
 
    
38511
 
  fi
38512
 
 
38513
 
    ;;
38514
 
    esac
38515
 
  done
38516
 
 
38517
 
  { $as_echo "$as_me:$LINENO: checking for BZ2_bzerror in -lbz2" >&5
38518
 
$as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; }
38519
 
if test "${ac_cv_lib_bz2_BZ2_bzerror+set}" = set; then
38520
 
  $as_echo_n "(cached) " >&6
38521
 
else
38522
 
  ac_check_lib_save_LIBS=$LIBS
38523
 
LIBS="-lbz2  $LIBS"
38524
 
cat >conftest.$ac_ext <<_ACEOF
38525
 
/* confdefs.h.  */
38526
 
_ACEOF
38527
 
cat confdefs.h >>conftest.$ac_ext
38528
 
cat >>conftest.$ac_ext <<_ACEOF
38529
 
/* end confdefs.h.  */
38530
 
 
38531
 
/* Override any GCC internal prototype to avoid an error.
38532
 
   Use char because int might match the return type of a GCC
38533
 
   builtin and then its argument prototype would still apply.  */
38534
 
#ifdef __cplusplus
38535
 
extern "C"
38536
 
#endif
38537
 
char BZ2_bzerror ();
38538
 
int
38539
 
main ()
38540
 
{
38541
 
return BZ2_bzerror ();
38542
 
  ;
38543
 
  return 0;
38544
 
}
38545
 
_ACEOF
38546
 
rm -f conftest.$ac_objext conftest$ac_exeext
38547
 
if { (ac_try="$ac_link"
38548
 
case "(($ac_try" in
38549
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38550
 
  *) ac_try_echo=$ac_try;;
38551
 
esac
38552
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38553
 
$as_echo "$ac_try_echo") >&5
38554
 
  (eval "$ac_link") 2>conftest.er1
38555
 
  ac_status=$?
38556
 
  grep -v '^ *+' conftest.er1 >conftest.err
38557
 
  rm -f conftest.er1
38558
 
  cat conftest.err >&5
38559
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560
 
  (exit $ac_status); } && {
38561
 
         test -z "$ac_c_werror_flag" ||
38562
 
         test ! -s conftest.err
38563
 
       } && test -s conftest$ac_exeext && {
38564
 
         test "$cross_compiling" = yes ||
38565
 
         $as_test_x conftest$ac_exeext
38566
 
       }; then
38567
 
  ac_cv_lib_bz2_BZ2_bzerror=yes
38568
 
else
38569
 
  $as_echo "$as_me: failed program was:" >&5
38570
 
sed 's/^/| /' conftest.$ac_ext >&5
38571
 
 
38572
 
        ac_cv_lib_bz2_BZ2_bzerror=no
38573
 
fi
38574
 
 
38575
 
rm -rf conftest.dSYM
38576
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38577
 
      conftest$ac_exeext conftest.$ac_ext
38578
 
LIBS=$ac_check_lib_save_LIBS
38579
 
fi
38580
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5
38581
 
$as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; }
38582
 
if test "x$ac_cv_lib_bz2_BZ2_bzerror" = x""yes; then
38583
 
  
38584
 
    LDFLAGS=$save_old_LDFLAGS
38585
 
    ext_shared=$save_ext_shared
38586
 
    
38587
 
    
38588
 
  if test "$BZIP_DIR/include" != "/usr/include"; then
38589
 
    
38590
 
  if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then
38591
 
    ai_p=$BZIP_DIR/include
38592
 
  else
38593
 
    
38594
 
    ep_dir="`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
38595
 
    
38596
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38597
 
    ai_p="$ep_realdir/`basename \"$BZIP_DIR/include\"`"
38598
 
  fi
38599
 
 
38600
 
    
38601
 
  
38602
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38603
 
  
38604
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
38605
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
38606
 
    eval "INCLUDEPATH$unique=set"
38607
 
    
38608
 
      if test ""; then
38609
 
        INCLUDES="-I$ai_p $INCLUDES"
38610
 
      else
38611
 
        INCLUDES="$INCLUDES -I$ai_p"
38612
 
      fi
38613
 
    
38614
 
  fi
38615
 
 
38616
 
  fi
38617
 
 
38618
 
    
38619
 
 
38620
 
  if test "$ext_shared" = "yes"; then
38621
 
    BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD"
38622
 
    if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
38623
 
      
38624
 
  if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38625
 
    
38626
 
  if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38627
 
    ai_p=$BZIP_DIR/$PHP_LIBDIR
38628
 
  else
38629
 
    
38630
 
    ep_dir="`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
38631
 
    
38632
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38633
 
    ai_p="$ep_realdir/`basename \"$BZIP_DIR/$PHP_LIBDIR\"`"
38634
 
  fi
38635
 
 
38636
 
    
38637
 
      if test "$ext_shared" = "yes"; then
38638
 
        BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD"
38639
 
        test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD"
38640
 
      else
38641
 
        
38642
 
  
38643
 
  
38644
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38645
 
  
38646
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38647
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
38648
 
    eval "LIBPATH$unique=set"
38649
 
    
38650
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38651
 
    LDFLAGS="$LDFLAGS -L$ai_p"
38652
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
38653
 
  
38654
 
  fi
38655
 
 
38656
 
 
38657
 
      fi
38658
 
    
38659
 
  fi
38660
 
 
38661
 
    fi
38662
 
  else
38663
 
    
38664
 
 
38665
 
  if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
38666
 
    
38667
 
  if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38668
 
    
38669
 
  if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38670
 
    ai_p=$BZIP_DIR/$PHP_LIBDIR
38671
 
  else
38672
 
    
38673
 
    ep_dir="`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
38674
 
    
38675
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38676
 
    ai_p="$ep_realdir/`basename \"$BZIP_DIR/$PHP_LIBDIR\"`"
38677
 
  fi
38678
 
 
38679
 
    
38680
 
      
38681
 
  
38682
 
  
38683
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38684
 
  
38685
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38686
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
38687
 
    eval "LIBPATH$unique=set"
38688
 
    
38689
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38690
 
    LDFLAGS="$LDFLAGS -L$ai_p"
38691
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
38692
 
  
38693
 
  fi
38694
 
 
38695
 
 
38696
 
    
38697
 
  fi
38698
 
 
38699
 
  fi
38700
 
  
38701
 
  
38702
 
  case bz2 in
38703
 
  c|c_r|pthread*) ;;
38704
 
  *) 
38705
 
      LIBS="-lbz2 $LIBS" 
38706
 
   ;;
38707
 
  esac
38708
 
 
38709
 
 
38710
 
 
38711
 
 
38712
 
  fi
38713
 
 
38714
 
 
38715
 
    
38716
 
cat >>confdefs.h <<\_ACEOF
38717
 
@%:@define HAVE_BZ2 1
38718
 
_ACEOF
38719
 
 
38720
 
  
38721
 
  
38722
 
else
38723
 
  
38724
 
    LDFLAGS=$save_old_LDFLAGS
38725
 
    ext_shared=$save_ext_shared
38726
 
    unset ac_cv_lib_bz2_BZ2_bzerror
38727
 
    
38728
 
    { { $as_echo "$as_me:$LINENO: error: bz2 module requires libbz2 >= 1.0.0" >&5
38729
 
$as_echo "$as_me: error: bz2 module requires libbz2 >= 1.0.0" >&2;}
38730
 
   { (exit 1); exit 1; }; }
38731
 
  
38732
 
  
38733
 
fi
38734
 
 
38735
 
 
38736
 
  
38737
 
  ext_builddir=ext/bz2
38738
 
  ext_srcdir=$abs_srcdir/ext/bz2
38739
 
 
38740
 
  ac_extra=
38741
 
 
38742
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
38743
 
    PHP_BZ2_SHARED=no
38744
 
    
38745
 
  
38746
 
  case ext/bz2 in
38747
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38748
 
  /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38749
 
  *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38750
 
  esac
38751
 
  
38752
 
  
38753
 
 
38754
 
  b_c_pre=$php_c_pre
38755
 
  b_cxx_pre=$php_cxx_pre
38756
 
  b_c_meta=$php_c_meta
38757
 
  b_cxx_meta=$php_cxx_meta
38758
 
  b_c_post=$php_c_post
38759
 
  b_cxx_post=$php_cxx_post
38760
 
  b_lo=$php_lo
38761
 
 
38762
 
 
38763
 
  old_IFS=$IFS
38764
 
  for ac_src in bz2.c bz2_filter.c; do
38765
 
  
38766
 
      IFS=.
38767
 
      set $ac_src
38768
 
      ac_obj=$1
38769
 
      IFS=$old_IFS
38770
 
      
38771
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
38772
 
 
38773
 
      case $ac_src in
38774
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38775
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38776
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38777
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38778
 
      esac
38779
 
 
38780
 
    cat >>Makefile.objects<<EOF
38781
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38782
 
        $ac_comp
38783
 
EOF
38784
 
  done
38785
 
 
38786
 
 
38787
 
    EXT_STATIC="$EXT_STATIC bz2"
38788
 
    if test "$ext_shared" != "nocli"; then
38789
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
38790
 
    fi
38791
 
  else
38792
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
38793
 
      PHP_BZ2_SHARED=yes
38794
 
      
38795
 
  case ext/bz2 in
38796
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38797
 
  /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38798
 
  *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38799
 
  esac
38800
 
  
38801
 
  
38802
 
 
38803
 
  b_c_pre=$shared_c_pre
38804
 
  b_cxx_pre=$shared_cxx_pre
38805
 
  b_c_meta=$shared_c_meta
38806
 
  b_cxx_meta=$shared_cxx_meta
38807
 
  b_c_post=$shared_c_post
38808
 
  b_cxx_post=$shared_cxx_post
38809
 
  b_lo=$shared_lo
38810
 
 
38811
 
 
38812
 
  old_IFS=$IFS
38813
 
  for ac_src in bz2.c bz2_filter.c; do
38814
 
  
38815
 
      IFS=.
38816
 
      set $ac_src
38817
 
      ac_obj=$1
38818
 
      IFS=$old_IFS
38819
 
      
38820
 
      shared_objects_bz2="$shared_objects_bz2 $ac_bdir$ac_obj.lo"
38821
 
 
38822
 
      case $ac_src in
38823
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38824
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38825
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38826
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38827
 
      esac
38828
 
 
38829
 
    cat >>Makefile.objects<<EOF
38830
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38831
 
        $ac_comp
38832
 
EOF
38833
 
  done
38834
 
 
38835
 
      case $host_alias in
38836
 
        *netware*)
38837
 
          
38838
 
  install_modules="install-modules"
38839
 
 
38840
 
  case $host_alias in
38841
 
    *aix*)
38842
 
      suffix=so
38843
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpbz2.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(PHPBZ2_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpbz2.so '$ext_builddir'/phpbz2.so'
38844
 
      ;;
38845
 
    *netware*)
38846
 
      suffix=nlm
38847
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) -L$(top_builddir)/netware -lphp5lib $(BZ2_SHARED_LIBADD)'
38848
 
      ;;
38849
 
    *)
38850
 
      suffix=la
38851
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(PHPBZ2_SHARED_LIBADD)'
38852
 
      ;;
38853
 
  esac
38854
 
 
38855
 
  if test "x" = "xyes"; then
38856
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbz2.$suffix"
38857
 
  else
38858
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbz2.$suffix"
38859
 
  fi
38860
 
  
38861
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
38862
 
 
38863
 
  cat >>Makefile.objects<<EOF
38864
 
\$(phplibdir)/phpbz2.$suffix: $ext_builddir/phpbz2.$suffix
38865
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpbz2.$suffix \$(phplibdir)
38866
 
 
38867
 
$ext_builddir/phpbz2.$suffix: \$(shared_objects_bz2) \$(PHPBZ2_SHARED_DEPENDENCIES)
38868
 
        $link_cmd
38869
 
 
38870
 
EOF
38871
 
 
38872
 
          ;;
38873
 
        *)
38874
 
          
38875
 
  install_modules="install-modules"
38876
 
 
38877
 
  case $host_alias in
38878
 
    *aix*)
38879
 
      suffix=so
38880
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/bz2.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(BZ2_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/bz2.so '$ext_builddir'/bz2.so'
38881
 
      ;;
38882
 
    *netware*)
38883
 
      suffix=nlm
38884
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
38885
 
      ;;
38886
 
    *)
38887
 
      suffix=la
38888
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_bz2) $(BZ2_SHARED_LIBADD)'
38889
 
      ;;
38890
 
  esac
38891
 
 
38892
 
  if test "x" = "xyes"; then
38893
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bz2.$suffix"
38894
 
  else
38895
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/bz2.$suffix"
38896
 
  fi
38897
 
  
38898
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
38899
 
 
38900
 
  cat >>Makefile.objects<<EOF
38901
 
\$(phplibdir)/bz2.$suffix: $ext_builddir/bz2.$suffix
38902
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/bz2.$suffix \$(phplibdir)
38903
 
 
38904
 
$ext_builddir/bz2.$suffix: \$(shared_objects_bz2) \$(BZ2_SHARED_DEPENDENCIES)
38905
 
        $link_cmd
38906
 
 
38907
 
EOF
38908
 
 
38909
 
          ;;
38910
 
      esac
38911
 
      
38912
 
cat >>confdefs.h <<_ACEOF
38913
 
@%:@define COMPILE_DL_BZ2 1
38914
 
_ACEOF
38915
 
 
38916
 
    fi
38917
 
  fi
38918
 
 
38919
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
38920
 
    PHP_BZ2_SHARED=no
38921
 
    case "$PHP_SAPI" in
38922
 
      cgi|embed)
38923
 
        
38924
 
  
38925
 
  case ext/bz2 in
38926
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38927
 
  /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38928
 
  *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38929
 
  esac
38930
 
  
38931
 
  
38932
 
 
38933
 
  b_c_pre=$php_c_pre
38934
 
  b_cxx_pre=$php_cxx_pre
38935
 
  b_c_meta=$php_c_meta
38936
 
  b_cxx_meta=$php_cxx_meta
38937
 
  b_c_post=$php_c_post
38938
 
  b_cxx_post=$php_cxx_post
38939
 
  b_lo=$php_lo
38940
 
 
38941
 
 
38942
 
  old_IFS=$IFS
38943
 
  for ac_src in bz2.c bz2_filter.c; do
38944
 
  
38945
 
      IFS=.
38946
 
      set $ac_src
38947
 
      ac_obj=$1
38948
 
      IFS=$old_IFS
38949
 
      
38950
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
38951
 
 
38952
 
      case $ac_src in
38953
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38954
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38955
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38956
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38957
 
      esac
38958
 
 
38959
 
    cat >>Makefile.objects<<EOF
38960
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38961
 
        $ac_comp
38962
 
EOF
38963
 
  done
38964
 
 
38965
 
 
38966
 
        EXT_STATIC="$EXT_STATIC bz2"
38967
 
        ;;
38968
 
      *)
38969
 
        
38970
 
  
38971
 
  case ext/bz2 in
38972
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38973
 
  /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38974
 
  *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38975
 
  esac
38976
 
  
38977
 
  
38978
 
 
38979
 
  b_c_pre=$php_c_pre
38980
 
  b_cxx_pre=$php_cxx_pre
38981
 
  b_c_meta=$php_c_meta
38982
 
  b_cxx_meta=$php_cxx_meta
38983
 
  b_c_post=$php_c_post
38984
 
  b_cxx_post=$php_cxx_post
38985
 
  b_lo=$php_lo
38986
 
 
38987
 
 
38988
 
  old_IFS=$IFS
38989
 
  for ac_src in bz2.c bz2_filter.c; do
38990
 
  
38991
 
      IFS=.
38992
 
      set $ac_src
38993
 
      ac_obj=$1
38994
 
      IFS=$old_IFS
38995
 
      
38996
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
38997
 
 
38998
 
      case $ac_src in
38999
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39000
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39001
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39002
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
39003
 
      esac
39004
 
 
39005
 
    cat >>Makefile.objects<<EOF
39006
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
39007
 
        $ac_comp
39008
 
EOF
39009
 
  done
39010
 
 
39011
 
 
39012
 
        ;;
39013
 
    esac
39014
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
39015
 
  fi
39016
 
  
39017
 
  
39018
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
39019
 
  
39020
 
 
39021
 
 
39022
 
  if test "$ext_builddir" = "."; then
39023
 
    PHP_PECL_EXTENSION=bz2
39024
 
    
39025
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
39026
 
 
39027
 
  fi
39028
 
 
39029
 
  
39030
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST BZ2_SHARED_LIBADD"
39031
 
 
39032
 
fi
39033
 
 
39034
 
 
39035
 
 
39036
 
php_enable_calendar=no
39037
 
 
39038
 
{ $as_echo "$as_me:$LINENO: checking whether to enable calendar conversion support" >&5
39039
 
$as_echo_n "checking whether to enable calendar conversion support... " >&6; }
39040
 
@%:@ Check whether --enable-calendar was given.
39041
 
if test "${enable_calendar+set}" = set; then
39042
 
  enableval=$enable_calendar; PHP_CALENDAR=$enableval
39043
 
else
39044
 
  
39045
 
  PHP_CALENDAR=no
39046
 
  test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL
39047
 
 
39048
 
fi
39049
 
 
39050
 
 
39051
 
 
39052
 
ext_output="yes, shared"
39053
 
ext_shared=yes
39054
 
case $PHP_CALENDAR in
39055
 
shared,*)
39056
 
  PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'`
39057
 
  ;;
39058
 
shared)
39059
 
  PHP_CALENDAR=yes
39060
 
  ;;
39061
 
no)
39062
 
  ext_output=no
39063
 
  ext_shared=no
39064
 
  ;;
39065
 
*)
39066
 
  ext_output=yes
39067
 
  ext_shared=no
39068
 
  ;;
39069
 
esac
39070
 
 
39071
 
 
39072
 
 
39073
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
39074
 
$as_echo "$ext_output" >&6; }
39075
 
 
39076
 
 
39077
 
 
39078
 
 
39079
 
if test "$PHP_CALENDAR" = "yes"; then
39080
 
  
39081
 
cat >>confdefs.h <<\_ACEOF
39082
 
@%:@define HAVE_CALENDAR 1
39083
 
_ACEOF
39084
 
 
39085
 
  
39086
 
  ext_builddir=ext/calendar
39087
 
  ext_srcdir=$abs_srcdir/ext/calendar
39088
 
 
39089
 
  ac_extra=
39090
 
 
39091
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
39092
 
    PHP_CALENDAR_SHARED=no
39093
 
    
39094
 
  
39095
 
  case ext/calendar in
39096
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
39097
 
  /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
39098
 
  *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
39099
 
  esac
39100
 
  
39101
 
  
39102
 
 
39103
 
  b_c_pre=$php_c_pre
39104
 
  b_cxx_pre=$php_cxx_pre
39105
 
  b_c_meta=$php_c_meta
39106
 
  b_cxx_meta=$php_cxx_meta
39107
 
  b_c_post=$php_c_post
39108
 
  b_cxx_post=$php_cxx_post
39109
 
  b_lo=$php_lo
39110
 
 
39111
 
 
39112
 
  old_IFS=$IFS
39113
 
  for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
39114
 
  
39115
 
      IFS=.
39116
 
      set $ac_src
39117
 
      ac_obj=$1
39118
 
      IFS=$old_IFS
39119
 
      
39120
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
39121
 
 
39122
 
      case $ac_src in
39123
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39124
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39125
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39126
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
39127
 
      esac
39128
 
 
39129
 
    cat >>Makefile.objects<<EOF
39130
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
39131
 
        $ac_comp
39132
 
EOF
39133
 
  done
39134
 
 
39135
 
 
39136
 
    EXT_STATIC="$EXT_STATIC calendar"
39137
 
    if test "$ext_shared" != "nocli"; then
39138
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
39139
 
    fi
39140
 
  else
39141
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
39142
 
      PHP_CALENDAR_SHARED=yes
39143
 
      
39144
 
  case ext/calendar in
39145
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
39146
 
  /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
39147
 
  *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
39148
 
  esac
39149
 
  
39150
 
  
39151
 
 
39152
 
  b_c_pre=$shared_c_pre
39153
 
  b_cxx_pre=$shared_cxx_pre
39154
 
  b_c_meta=$shared_c_meta
39155
 
  b_cxx_meta=$shared_cxx_meta
39156
 
  b_c_post=$shared_c_post
39157
 
  b_cxx_post=$shared_cxx_post
39158
 
  b_lo=$shared_lo
39159
 
 
39160
 
 
39161
 
  old_IFS=$IFS
39162
 
  for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
39163
 
  
39164
 
      IFS=.
39165
 
      set $ac_src
39166
 
      ac_obj=$1
39167
 
      IFS=$old_IFS
39168
 
      
39169
 
      shared_objects_calendar="$shared_objects_calendar $ac_bdir$ac_obj.lo"
39170
 
 
39171
 
      case $ac_src in
39172
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39173
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39174
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39175
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
39176
 
      esac
39177
 
 
39178
 
    cat >>Makefile.objects<<EOF
39179
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
39180
 
        $ac_comp
39181
 
EOF
39182
 
  done
39183
 
 
39184
 
      case $host_alias in
39185
 
        *netware*)
39186
 
          
39187
 
  install_modules="install-modules"
39188
 
 
39189
 
  case $host_alias in
39190
 
    *aix*)
39191
 
      suffix=so
39192
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpcalendar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(PHPCALENDAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpcalendar.so '$ext_builddir'/phpcalendar.so'
39193
 
      ;;
39194
 
    *netware*)
39195
 
      suffix=nlm
39196
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) -L$(top_builddir)/netware -lphp5lib $(CALENDAR_SHARED_LIBADD)'
39197
 
      ;;
39198
 
    *)
39199
 
      suffix=la
39200
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(PHPCALENDAR_SHARED_LIBADD)'
39201
 
      ;;
39202
 
  esac
39203
 
 
39204
 
  if test "x" = "xyes"; then
39205
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcalendar.$suffix"
39206
 
  else
39207
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcalendar.$suffix"
39208
 
  fi
39209
 
  
39210
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
39211
 
 
39212
 
  cat >>Makefile.objects<<EOF
39213
 
\$(phplibdir)/phpcalendar.$suffix: $ext_builddir/phpcalendar.$suffix
39214
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpcalendar.$suffix \$(phplibdir)
39215
 
 
39216
 
$ext_builddir/phpcalendar.$suffix: \$(shared_objects_calendar) \$(PHPCALENDAR_SHARED_DEPENDENCIES)
39217
 
        $link_cmd
39218
 
 
39219
 
EOF
39220
 
 
39221
 
          ;;
39222
 
        *)
39223
 
          
39224
 
  install_modules="install-modules"
39225
 
 
39226
 
  case $host_alias in
39227
 
    *aix*)
39228
 
      suffix=so
39229
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/calendar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(CALENDAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/calendar.so '$ext_builddir'/calendar.so'
39230
 
      ;;
39231
 
    *netware*)
39232
 
      suffix=nlm
39233
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) -L$(top_builddir)/netware -lphp5lib $(ENDAR_SHARED_LIBADD)'
39234
 
      ;;
39235
 
    *)
39236
 
      suffix=la
39237
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_calendar) $(CALENDAR_SHARED_LIBADD)'
39238
 
      ;;
39239
 
  esac
39240
 
 
39241
 
  if test "x" = "xyes"; then
39242
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/calendar.$suffix"
39243
 
  else
39244
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/calendar.$suffix"
39245
 
  fi
39246
 
  
39247
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
39248
 
 
39249
 
  cat >>Makefile.objects<<EOF
39250
 
\$(phplibdir)/calendar.$suffix: $ext_builddir/calendar.$suffix
39251
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/calendar.$suffix \$(phplibdir)
39252
 
 
39253
 
$ext_builddir/calendar.$suffix: \$(shared_objects_calendar) \$(CALENDAR_SHARED_DEPENDENCIES)
39254
 
        $link_cmd
39255
 
 
39256
 
EOF
39257
 
 
39258
 
          ;;
39259
 
      esac
39260
 
      
39261
 
cat >>confdefs.h <<_ACEOF
39262
 
@%:@define COMPILE_DL_CALENDAR 1
39263
 
_ACEOF
39264
 
 
39265
 
    fi
39266
 
  fi
39267
 
 
39268
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
39269
 
    PHP_CALENDAR_SHARED=no
39270
 
    case "$PHP_SAPI" in
39271
 
      cgi|embed)
39272
 
        
39273
 
  
39274
 
  case ext/calendar in
39275
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
39276
 
  /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
39277
 
  *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
39278
 
  esac
39279
 
  
39280
 
  
39281
 
 
39282
 
  b_c_pre=$php_c_pre
39283
 
  b_cxx_pre=$php_cxx_pre
39284
 
  b_c_meta=$php_c_meta
39285
 
  b_cxx_meta=$php_cxx_meta
39286
 
  b_c_post=$php_c_post
39287
 
  b_cxx_post=$php_cxx_post
39288
 
  b_lo=$php_lo
39289
 
 
39290
 
 
39291
 
  old_IFS=$IFS
39292
 
  for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
39293
 
  
39294
 
      IFS=.
39295
 
      set $ac_src
39296
 
      ac_obj=$1
39297
 
      IFS=$old_IFS
39298
 
      
39299
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
39300
 
 
39301
 
      case $ac_src in
39302
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39303
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39304
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39305
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
39306
 
      esac
39307
 
 
39308
 
    cat >>Makefile.objects<<EOF
39309
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
39310
 
        $ac_comp
39311
 
EOF
39312
 
  done
39313
 
 
39314
 
 
39315
 
        EXT_STATIC="$EXT_STATIC calendar"
39316
 
        ;;
39317
 
      *)
39318
 
        
39319
 
  
39320
 
  case ext/calendar in
39321
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
39322
 
  /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
39323
 
  *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
39324
 
  esac
39325
 
  
39326
 
  
39327
 
 
39328
 
  b_c_pre=$php_c_pre
39329
 
  b_cxx_pre=$php_cxx_pre
39330
 
  b_c_meta=$php_c_meta
39331
 
  b_cxx_meta=$php_cxx_meta
39332
 
  b_c_post=$php_c_post
39333
 
  b_cxx_post=$php_cxx_post
39334
 
  b_lo=$php_lo
39335
 
 
39336
 
 
39337
 
  old_IFS=$IFS
39338
 
  for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
39339
 
  
39340
 
      IFS=.
39341
 
      set $ac_src
39342
 
      ac_obj=$1
39343
 
      IFS=$old_IFS
39344
 
      
39345
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
39346
 
 
39347
 
      case $ac_src in
39348
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39349
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39350
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39351
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
39352
 
      esac
39353
 
 
39354
 
    cat >>Makefile.objects<<EOF
39355
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
39356
 
        $ac_comp
39357
 
EOF
39358
 
  done
39359
 
 
39360
 
 
39361
 
        ;;
39362
 
    esac
39363
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
39364
 
  fi
39365
 
  
39366
 
  
39367
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
39368
 
  
39369
 
 
39370
 
 
39371
 
  if test "$ext_builddir" = "."; then
39372
 
    PHP_PECL_EXTENSION=calendar
39373
 
    
39374
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
39375
 
 
39376
 
  fi
39377
 
 
39378
 
fi
39379
 
 
39380
 
 
39381
 
 
39382
 
php_enable_ctype=yes
39383
 
 
39384
 
{ $as_echo "$as_me:$LINENO: checking whether to enable ctype functions" >&5
39385
 
$as_echo_n "checking whether to enable ctype functions... " >&6; }
39386
 
@%:@ Check whether --enable-ctype was given.
39387
 
if test "${enable_ctype+set}" = set; then
39388
 
  enableval=$enable_ctype; PHP_CTYPE=$enableval
39389
 
else
39390
 
  
39391
 
  PHP_CTYPE=yes
39392
 
  test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL
39393
 
 
39394
 
fi
39395
 
 
39396
 
 
39397
 
 
39398
 
ext_output="yes, shared"
39399
 
ext_shared=yes
39400
 
case $PHP_CTYPE in
39401
 
shared,*)
39402
 
  PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'`
39403
 
  ;;
39404
 
shared)
39405
 
  PHP_CTYPE=yes
39406
 
  ;;
39407
 
no)
39408
 
  ext_output=no
39409
 
  ext_shared=no
39410
 
  ;;
39411
 
*)
39412
 
  ext_output=yes
39413
 
  ext_shared=no
39414
 
  ;;
39415
 
esac
39416
 
 
39417
 
 
39418
 
 
39419
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
39420
 
$as_echo "$ext_output" >&6; }
39421
 
 
39422
 
 
39423
 
 
39424
 
 
39425
 
if test "$PHP_CTYPE" != "no"; then
39426
 
  
39427
 
cat >>confdefs.h <<\_ACEOF
39428
 
@%:@define HAVE_CTYPE 1
39429
 
_ACEOF
39430
 
 
39431
 
  
39432
 
  ext_builddir=ext/ctype
39433
 
  ext_srcdir=$abs_srcdir/ext/ctype
39434
 
 
39435
 
  ac_extra=
39436
 
 
39437
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
39438
 
    PHP_CTYPE_SHARED=no
39439
 
    
39440
 
  
39441
 
  case ext/ctype in
39442
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
39443
 
  /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
39444
 
  *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
39445
 
  esac
39446
 
  
39447
 
  
39448
 
 
39449
 
  b_c_pre=$php_c_pre
39450
 
  b_cxx_pre=$php_cxx_pre
39451
 
  b_c_meta=$php_c_meta
39452
 
  b_cxx_meta=$php_cxx_meta
39453
 
  b_c_post=$php_c_post
39454
 
  b_cxx_post=$php_cxx_post
39455
 
  b_lo=$php_lo
39456
 
 
39457
 
 
39458
 
  old_IFS=$IFS
39459
 
  for ac_src in ctype.c; do
39460
 
  
39461
 
      IFS=.
39462
 
      set $ac_src
39463
 
      ac_obj=$1
39464
 
      IFS=$old_IFS
39465
 
      
39466
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
39467
 
 
39468
 
      case $ac_src in
39469
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39470
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39471
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39472
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
39473
 
      esac
39474
 
 
39475
 
    cat >>Makefile.objects<<EOF
39476
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
39477
 
        $ac_comp
39478
 
EOF
39479
 
  done
39480
 
 
39481
 
 
39482
 
    EXT_STATIC="$EXT_STATIC ctype"
39483
 
    if test "$ext_shared" != "nocli"; then
39484
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
39485
 
    fi
39486
 
  else
39487
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
39488
 
      PHP_CTYPE_SHARED=yes
39489
 
      
39490
 
  case ext/ctype in
39491
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
39492
 
  /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
39493
 
  *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
39494
 
  esac
39495
 
  
39496
 
  
39497
 
 
39498
 
  b_c_pre=$shared_c_pre
39499
 
  b_cxx_pre=$shared_cxx_pre
39500
 
  b_c_meta=$shared_c_meta
39501
 
  b_cxx_meta=$shared_cxx_meta
39502
 
  b_c_post=$shared_c_post
39503
 
  b_cxx_post=$shared_cxx_post
39504
 
  b_lo=$shared_lo
39505
 
 
39506
 
 
39507
 
  old_IFS=$IFS
39508
 
  for ac_src in ctype.c; do
39509
 
  
39510
 
      IFS=.
39511
 
      set $ac_src
39512
 
      ac_obj=$1
39513
 
      IFS=$old_IFS
39514
 
      
39515
 
      shared_objects_ctype="$shared_objects_ctype $ac_bdir$ac_obj.lo"
39516
 
 
39517
 
      case $ac_src in
39518
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39519
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39520
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39521
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
39522
 
      esac
39523
 
 
39524
 
    cat >>Makefile.objects<<EOF
39525
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
39526
 
        $ac_comp
39527
 
EOF
39528
 
  done
39529
 
 
39530
 
      case $host_alias in
39531
 
        *netware*)
39532
 
          
39533
 
  install_modules="install-modules"
39534
 
 
39535
 
  case $host_alias in
39536
 
    *aix*)
39537
 
      suffix=so
39538
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpctype.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(PHPCTYPE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpctype.so '$ext_builddir'/phpctype.so'
39539
 
      ;;
39540
 
    *netware*)
39541
 
      suffix=nlm
39542
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) -L$(top_builddir)/netware -lphp5lib $(CTYPE_SHARED_LIBADD)'
39543
 
      ;;
39544
 
    *)
39545
 
      suffix=la
39546
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(PHPCTYPE_SHARED_LIBADD)'
39547
 
      ;;
39548
 
  esac
39549
 
 
39550
 
  if test "x" = "xyes"; then
39551
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpctype.$suffix"
39552
 
  else
39553
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpctype.$suffix"
39554
 
  fi
39555
 
  
39556
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
39557
 
 
39558
 
  cat >>Makefile.objects<<EOF
39559
 
\$(phplibdir)/phpctype.$suffix: $ext_builddir/phpctype.$suffix
39560
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpctype.$suffix \$(phplibdir)
39561
 
 
39562
 
$ext_builddir/phpctype.$suffix: \$(shared_objects_ctype) \$(PHPCTYPE_SHARED_DEPENDENCIES)
39563
 
        $link_cmd
39564
 
 
39565
 
EOF
39566
 
 
39567
 
          ;;
39568
 
        *)
39569
 
          
39570
 
  install_modules="install-modules"
39571
 
 
39572
 
  case $host_alias in
39573
 
    *aix*)
39574
 
      suffix=so
39575
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ctype.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(CTYPE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ctype.so '$ext_builddir'/ctype.so'
39576
 
      ;;
39577
 
    *netware*)
39578
 
      suffix=nlm
39579
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) -L$(top_builddir)/netware -lphp5lib $(PE_SHARED_LIBADD)'
39580
 
      ;;
39581
 
    *)
39582
 
      suffix=la
39583
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ctype) $(CTYPE_SHARED_LIBADD)'
39584
 
      ;;
39585
 
  esac
39586
 
 
39587
 
  if test "x" = "xyes"; then
39588
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ctype.$suffix"
39589
 
  else
39590
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/ctype.$suffix"
39591
 
  fi
39592
 
  
39593
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
39594
 
 
39595
 
  cat >>Makefile.objects<<EOF
39596
 
\$(phplibdir)/ctype.$suffix: $ext_builddir/ctype.$suffix
39597
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/ctype.$suffix \$(phplibdir)
39598
 
 
39599
 
$ext_builddir/ctype.$suffix: \$(shared_objects_ctype) \$(CTYPE_SHARED_DEPENDENCIES)
39600
 
        $link_cmd
39601
 
 
39602
 
EOF
39603
 
 
39604
 
          ;;
39605
 
      esac
39606
 
      
39607
 
cat >>confdefs.h <<_ACEOF
39608
 
@%:@define COMPILE_DL_CTYPE 1
39609
 
_ACEOF
39610
 
 
39611
 
    fi
39612
 
  fi
39613
 
 
39614
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
39615
 
    PHP_CTYPE_SHARED=no
39616
 
    case "$PHP_SAPI" in
39617
 
      cgi|embed)
39618
 
        
39619
 
  
39620
 
  case ext/ctype in
39621
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
39622
 
  /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
39623
 
  *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
39624
 
  esac
39625
 
  
39626
 
  
39627
 
 
39628
 
  b_c_pre=$php_c_pre
39629
 
  b_cxx_pre=$php_cxx_pre
39630
 
  b_c_meta=$php_c_meta
39631
 
  b_cxx_meta=$php_cxx_meta
39632
 
  b_c_post=$php_c_post
39633
 
  b_cxx_post=$php_cxx_post
39634
 
  b_lo=$php_lo
39635
 
 
39636
 
 
39637
 
  old_IFS=$IFS
39638
 
  for ac_src in ctype.c; do
39639
 
  
39640
 
      IFS=.
39641
 
      set $ac_src
39642
 
      ac_obj=$1
39643
 
      IFS=$old_IFS
39644
 
      
39645
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
39646
 
 
39647
 
      case $ac_src in
39648
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39649
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39650
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39651
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
39652
 
      esac
39653
 
 
39654
 
    cat >>Makefile.objects<<EOF
39655
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
39656
 
        $ac_comp
39657
 
EOF
39658
 
  done
39659
 
 
39660
 
 
39661
 
        EXT_STATIC="$EXT_STATIC ctype"
39662
 
        ;;
39663
 
      *)
39664
 
        
39665
 
  
39666
 
  case ext/ctype in
39667
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
39668
 
  /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
39669
 
  *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
39670
 
  esac
39671
 
  
39672
 
  
39673
 
 
39674
 
  b_c_pre=$php_c_pre
39675
 
  b_cxx_pre=$php_cxx_pre
39676
 
  b_c_meta=$php_c_meta
39677
 
  b_cxx_meta=$php_cxx_meta
39678
 
  b_c_post=$php_c_post
39679
 
  b_cxx_post=$php_cxx_post
39680
 
  b_lo=$php_lo
39681
 
 
39682
 
 
39683
 
  old_IFS=$IFS
39684
 
  for ac_src in ctype.c; do
39685
 
  
39686
 
      IFS=.
39687
 
      set $ac_src
39688
 
      ac_obj=$1
39689
 
      IFS=$old_IFS
39690
 
      
39691
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
39692
 
 
39693
 
      case $ac_src in
39694
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39695
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39696
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
39697
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
39698
 
      esac
39699
 
 
39700
 
    cat >>Makefile.objects<<EOF
39701
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
39702
 
        $ac_comp
39703
 
EOF
39704
 
  done
39705
 
 
39706
 
 
39707
 
        ;;
39708
 
    esac
39709
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
39710
 
  fi
39711
 
  
39712
 
  
39713
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
39714
 
  
39715
 
 
39716
 
 
39717
 
  if test "$ext_builddir" = "."; then
39718
 
    PHP_PECL_EXTENSION=ctype
39719
 
    
39720
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
39721
 
 
39722
 
  fi
39723
 
 
39724
 
fi
39725
 
 
39726
 
 
39727
 
 
39728
 
php_with_curl=no
39729
 
 
39730
 
{ $as_echo "$as_me:$LINENO: checking for cURL support" >&5
39731
 
$as_echo_n "checking for cURL support... " >&6; }
39732
 
 
39733
 
@%:@ Check whether --with-curl was given.
39734
 
if test "${with_curl+set}" = set; then
39735
 
  withval=$with_curl; PHP_CURL=$withval
39736
 
else
39737
 
  
39738
 
  PHP_CURL=no
39739
 
  test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL
39740
 
 
39741
 
fi
39742
 
 
39743
 
 
39744
 
 
39745
 
ext_output="yes, shared"
39746
 
ext_shared=yes
39747
 
case $PHP_CURL in
39748
 
shared,*)
39749
 
  PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'`
39750
 
  ;;
39751
 
shared)
39752
 
  PHP_CURL=yes
39753
 
  ;;
39754
 
no)
39755
 
  ext_output=no
39756
 
  ext_shared=no
39757
 
  ;;
39758
 
*)
39759
 
  ext_output=yes
39760
 
  ext_shared=no
39761
 
  ;;
39762
 
esac
39763
 
 
39764
 
 
39765
 
 
39766
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
39767
 
$as_echo "$ext_output" >&6; }
39768
 
 
39769
 
 
39770
 
 
39771
 
 
39772
 
 
39773
 
php_with_curlwrappers=no
39774
 
 
39775
 
{ $as_echo "$as_me:$LINENO: checking if we should use cURL for url streams" >&5
39776
 
$as_echo_n "checking if we should use cURL for url streams... " >&6; }
39777
 
 
39778
 
@%:@ Check whether --with-curlwrappers was given.
39779
 
if test "${with_curlwrappers+set}" = set; then
39780
 
  withval=$with_curlwrappers; PHP_CURLWRAPPERS=$withval
39781
 
else
39782
 
  
39783
 
  PHP_CURLWRAPPERS=no
39784
 
  
39785
 
 
39786
 
fi
39787
 
 
39788
 
 
39789
 
ext_output=$PHP_CURLWRAPPERS
39790
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
39791
 
$as_echo "$ext_output" >&6; }
39792
 
 
39793
 
 
39794
 
 
39795
 
 
39796
 
if test "$PHP_CURL" != "no"; then
39797
 
  if test -r $PHP_CURL/include/curl/easy.h; then
39798
 
    CURL_DIR=$PHP_CURL
39799
 
  else
39800
 
    { $as_echo "$as_me:$LINENO: checking for cURL in default path" >&5
39801
 
$as_echo_n "checking for cURL in default path... " >&6; }
39802
 
    for i in /usr/local /usr; do
39803
 
      if test -r $i/include/curl/easy.h; then
39804
 
        CURL_DIR=$i
39805
 
        { $as_echo "$as_me:$LINENO: result: found in $i" >&5
39806
 
$as_echo "found in $i" >&6; }
39807
 
        break
39808
 
      fi
39809
 
    done
39810
 
  fi
39811
 
 
39812
 
  if test -z "$CURL_DIR"; then
39813
 
    { $as_echo "$as_me:$LINENO: result: not found" >&5
39814
 
$as_echo "not found" >&6; }
39815
 
    { { $as_echo "$as_me:$LINENO: error: Please reinstall the libcurl distribution -
39816
 
    easy.h should be in <curl-dir>/include/curl/" >&5
39817
 
$as_echo "$as_me: error: Please reinstall the libcurl distribution -
39818
 
    easy.h should be in <curl-dir>/include/curl/" >&2;}
39819
 
   { (exit 1); exit 1; }; }
39820
 
  fi
39821
 
 
39822
 
  CURL_CONFIG="curl-config"
39823
 
  { $as_echo "$as_me:$LINENO: checking for cURL 7.10.5 or greater" >&5
39824
 
$as_echo_n "checking for cURL 7.10.5 or greater... " >&6; }
39825
 
 
39826
 
  if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then
39827
 
    CURL_CONFIG=${CURL_DIR}/bin/curl-config
39828
 
  else
39829
 
    if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then
39830
 
      CURL_CONFIG=${CURL_DIR}/curl-config
39831
 
    fi
39832
 
  fi
39833
 
 
39834
 
  curl_version_full=`$CURL_CONFIG --version`
39835
 
  curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
39836
 
  if test "$curl_version" -ge 7010005; then
39837
 
    { $as_echo "$as_me:$LINENO: result: $curl_version_full" >&5
39838
 
$as_echo "$curl_version_full" >&6; }
39839
 
    CURL_LIBS=`$CURL_CONFIG --libs`
39840
 
  else
39841
 
    { { $as_echo "$as_me:$LINENO: error: cURL version 7.10.5 or later is required to compile php with cURL support" >&5
39842
 
$as_echo "$as_me: error: cURL version 7.10.5 or later is required to compile php with cURL support" >&2;}
39843
 
   { (exit 1); exit 1; }; }
39844
 
  fi
39845
 
 
39846
 
  
39847
 
  if test "$CURL_DIR/include" != "/usr/include"; then
39848
 
    
39849
 
  if test -z "$CURL_DIR/include" || echo "$CURL_DIR/include" | grep '^/' >/dev/null ; then
39850
 
    ai_p=$CURL_DIR/include
39851
 
  else
39852
 
    
39853
 
    ep_dir="`echo $CURL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
39854
 
    
39855
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39856
 
    ai_p="$ep_realdir/`basename \"$CURL_DIR/include\"`"
39857
 
  fi
39858
 
 
39859
 
    
39860
 
  
39861
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39862
 
  
39863
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
39864
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
39865
 
    eval "INCLUDEPATH$unique=set"
39866
 
    
39867
 
      if test ""; then
39868
 
        INCLUDES="-I$ai_p $INCLUDES"
39869
 
      else
39870
 
        INCLUDES="$INCLUDES -I$ai_p"
39871
 
      fi
39872
 
    
39873
 
  fi
39874
 
 
39875
 
  fi
39876
 
 
39877
 
  
39878
 
  for ac_i in $CURL_LIBS; do
39879
 
    case $ac_i in
39880
 
    -pthread)
39881
 
      if test "$ext_shared" = "yes"; then
39882
 
        CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread"
39883
 
      else
39884
 
        
39885
 
  
39886
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
39887
 
  
39888
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
39889
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
39890
 
    eval "EXTRA_LDFLAGS$unique=set"
39891
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
39892
 
  fi
39893
 
 
39894
 
      fi
39895
 
    ;;
39896
 
    -l*)
39897
 
      ac_ii=`echo $ac_i|cut -c 3-`
39898
 
      
39899
 
  
39900
 
  case $ac_ii in
39901
 
  c|c_r|pthread*) ;;
39902
 
  *) 
39903
 
    if test "$ext_shared" = "yes"; then
39904
 
        CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii" 
39905
 
    else
39906
 
      
39907
 
  
39908
 
  case $ac_ii in
39909
 
  c|c_r|pthread*) ;;
39910
 
  *) 
39911
 
      LIBS="$LIBS -l$ac_ii" 
39912
 
   ;;
39913
 
  esac
39914
 
 
39915
 
 
39916
 
    fi
39917
 
   ;;
39918
 
  esac
39919
 
 
39920
 
 
39921
 
    ;;
39922
 
    -L*)
39923
 
      ac_ii=`echo $ac_i|cut -c 3-`
39924
 
      
39925
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
39926
 
    
39927
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39928
 
    ai_p=$ac_ii
39929
 
  else
39930
 
    
39931
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
39932
 
    
39933
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39934
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
39935
 
  fi
39936
 
 
39937
 
    
39938
 
      if test "$ext_shared" = "yes"; then
39939
 
        CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
39940
 
        test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
39941
 
      else
39942
 
        
39943
 
  
39944
 
  
39945
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39946
 
  
39947
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39948
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
39949
 
    eval "LIBPATH$unique=set"
39950
 
    
39951
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39952
 
    LDFLAGS="$LDFLAGS -L$ai_p"
39953
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
39954
 
  
39955
 
  fi
39956
 
 
39957
 
 
39958
 
      fi
39959
 
    
39960
 
  fi
39961
 
 
39962
 
    ;;
39963
 
    esac
39964
 
  done
39965
 
 
39966
 
  
39967
 
 
39968
 
  if test "$ext_shared" = "yes"; then
39969
 
    CURL_SHARED_LIBADD="-lcurl $CURL_SHARED_LIBADD"
39970
 
    if test -n "$CURL_DIR/$PHP_LIBDIR"; then
39971
 
      
39972
 
  if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39973
 
    
39974
 
  if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39975
 
    ai_p=$CURL_DIR/$PHP_LIBDIR
39976
 
  else
39977
 
    
39978
 
    ep_dir="`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
39979
 
    
39980
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39981
 
    ai_p="$ep_realdir/`basename \"$CURL_DIR/$PHP_LIBDIR\"`"
39982
 
  fi
39983
 
 
39984
 
    
39985
 
      if test "$ext_shared" = "yes"; then
39986
 
        CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
39987
 
        test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
39988
 
      else
39989
 
        
39990
 
  
39991
 
  
39992
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39993
 
  
39994
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39995
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
39996
 
    eval "LIBPATH$unique=set"
39997
 
    
39998
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39999
 
    LDFLAGS="$LDFLAGS -L$ai_p"
40000
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
40001
 
  
40002
 
  fi
40003
 
 
40004
 
 
40005
 
      fi
40006
 
    
40007
 
  fi
40008
 
 
40009
 
    fi
40010
 
  else
40011
 
    
40012
 
 
40013
 
  if test -n "$CURL_DIR/$PHP_LIBDIR"; then
40014
 
    
40015
 
  if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40016
 
    
40017
 
  if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40018
 
    ai_p=$CURL_DIR/$PHP_LIBDIR
40019
 
  else
40020
 
    
40021
 
    ep_dir="`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
40022
 
    
40023
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40024
 
    ai_p="$ep_realdir/`basename \"$CURL_DIR/$PHP_LIBDIR\"`"
40025
 
  fi
40026
 
 
40027
 
    
40028
 
      
40029
 
  
40030
 
  
40031
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40032
 
  
40033
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40034
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
40035
 
    eval "LIBPATH$unique=set"
40036
 
    
40037
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40038
 
    LDFLAGS="$LDFLAGS -L$ai_p"
40039
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
40040
 
  
40041
 
  fi
40042
 
 
40043
 
 
40044
 
    
40045
 
  fi
40046
 
 
40047
 
  fi
40048
 
  
40049
 
  
40050
 
  case curl in
40051
 
  c|c_r|pthread*) ;;
40052
 
  *) 
40053
 
      LIBS="-lcurl $LIBS" 
40054
 
   ;;
40055
 
  esac
40056
 
 
40057
 
 
40058
 
 
40059
 
 
40060
 
  fi
40061
 
 
40062
 
 
40063
 
  
40064
 
  { $as_echo "$as_me:$LINENO: checking for SSL support in libcurl" >&5
40065
 
$as_echo_n "checking for SSL support in libcurl... " >&6; }
40066
 
  CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL`
40067
 
  if test "$CURL_SSL" = "SSL"; then
40068
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
40069
 
$as_echo "yes" >&6; }
40070
 
    
40071
 
cat >>confdefs.h <<\_ACEOF
40072
 
@%:@define HAVE_CURL_SSL 1
40073
 
_ACEOF
40074
 
 
40075
 
   
40076
 
    save_CFLAGS="$CFLAGS"
40077
 
    CFLAGS="`$CURL_CONFIG --cflags`"
40078
 
   
40079
 
    ac_ext=c
40080
 
ac_cpp='$CPP $CPPFLAGS'
40081
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40082
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40083
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
40084
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
40085
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
40086
 
# On Suns, sometimes $CPP names a directory.
40087
 
if test -n "$CPP" && test -d "$CPP"; then
40088
 
  CPP=
40089
 
fi
40090
 
if test -z "$CPP"; then
40091
 
  if test "${ac_cv_prog_CPP+set}" = set; then
40092
 
  $as_echo_n "(cached) " >&6
40093
 
else
40094
 
      # Double quotes because CPP needs to be expanded
40095
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
40096
 
    do
40097
 
      ac_preproc_ok=false
40098
 
for ac_c_preproc_warn_flag in '' yes
40099
 
do
40100
 
  # Use a header file that comes with gcc, so configuring glibc
40101
 
  # with a fresh cross-compiler works.
40102
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40103
 
  # <limits.h> exists even on freestanding compilers.
40104
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
40105
 
  # not just through cpp. "Syntax error" is here to catch this case.
40106
 
  cat >conftest.$ac_ext <<_ACEOF
40107
 
/* confdefs.h.  */
40108
 
_ACEOF
40109
 
cat confdefs.h >>conftest.$ac_ext
40110
 
cat >>conftest.$ac_ext <<_ACEOF
40111
 
/* end confdefs.h.  */
40112
 
@%:@ifdef __STDC__
40113
 
@%:@ include <limits.h>
40114
 
@%:@else
40115
 
@%:@ include <assert.h>
40116
 
@%:@endif
40117
 
                     Syntax error
40118
 
_ACEOF
40119
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
40120
 
case "(($ac_try" in
40121
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40122
 
  *) ac_try_echo=$ac_try;;
40123
 
esac
40124
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40125
 
$as_echo "$ac_try_echo") >&5
40126
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40127
 
  ac_status=$?
40128
 
  grep -v '^ *+' conftest.er1 >conftest.err
40129
 
  rm -f conftest.er1
40130
 
  cat conftest.err >&5
40131
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132
 
  (exit $ac_status); } >/dev/null && {
40133
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40134
 
         test ! -s conftest.err
40135
 
       }; then
40136
 
  :
40137
 
else
40138
 
  $as_echo "$as_me: failed program was:" >&5
40139
 
sed 's/^/| /' conftest.$ac_ext >&5
40140
 
 
40141
 
  # Broken: fails on valid input.
40142
 
continue
40143
 
fi
40144
 
 
40145
 
rm -f conftest.err conftest.$ac_ext
40146
 
 
40147
 
  # OK, works on sane cases.  Now check whether nonexistent headers
40148
 
  # can be detected and how.
40149
 
  cat >conftest.$ac_ext <<_ACEOF
40150
 
/* confdefs.h.  */
40151
 
_ACEOF
40152
 
cat confdefs.h >>conftest.$ac_ext
40153
 
cat >>conftest.$ac_ext <<_ACEOF
40154
 
/* end confdefs.h.  */
40155
 
@%:@include <ac_nonexistent.h>
40156
 
_ACEOF
40157
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
40158
 
case "(($ac_try" in
40159
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40160
 
  *) ac_try_echo=$ac_try;;
40161
 
esac
40162
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40163
 
$as_echo "$ac_try_echo") >&5
40164
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40165
 
  ac_status=$?
40166
 
  grep -v '^ *+' conftest.er1 >conftest.err
40167
 
  rm -f conftest.er1
40168
 
  cat conftest.err >&5
40169
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170
 
  (exit $ac_status); } >/dev/null && {
40171
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40172
 
         test ! -s conftest.err
40173
 
       }; then
40174
 
  # Broken: success on invalid input.
40175
 
continue
40176
 
else
40177
 
  $as_echo "$as_me: failed program was:" >&5
40178
 
sed 's/^/| /' conftest.$ac_ext >&5
40179
 
 
40180
 
  # Passes both tests.
40181
 
ac_preproc_ok=:
40182
 
break
40183
 
fi
40184
 
 
40185
 
rm -f conftest.err conftest.$ac_ext
40186
 
 
40187
 
done
40188
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
40189
 
rm -f conftest.err conftest.$ac_ext
40190
 
if $ac_preproc_ok; then
40191
 
  break
40192
 
fi
40193
 
 
40194
 
    done
40195
 
    ac_cv_prog_CPP=$CPP
40196
 
  
40197
 
fi
40198
 
  CPP=$ac_cv_prog_CPP
40199
 
else
40200
 
  ac_cv_prog_CPP=$CPP
40201
 
fi
40202
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
40203
 
$as_echo "$CPP" >&6; }
40204
 
ac_preproc_ok=false
40205
 
for ac_c_preproc_warn_flag in '' yes
40206
 
do
40207
 
  # Use a header file that comes with gcc, so configuring glibc
40208
 
  # with a fresh cross-compiler works.
40209
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40210
 
  # <limits.h> exists even on freestanding compilers.
40211
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
40212
 
  # not just through cpp. "Syntax error" is here to catch this case.
40213
 
  cat >conftest.$ac_ext <<_ACEOF
40214
 
/* confdefs.h.  */
40215
 
_ACEOF
40216
 
cat confdefs.h >>conftest.$ac_ext
40217
 
cat >>conftest.$ac_ext <<_ACEOF
40218
 
/* end confdefs.h.  */
40219
 
@%:@ifdef __STDC__
40220
 
@%:@ include <limits.h>
40221
 
@%:@else
40222
 
@%:@ include <assert.h>
40223
 
@%:@endif
40224
 
                     Syntax error
40225
 
_ACEOF
40226
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
40227
 
case "(($ac_try" in
40228
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40229
 
  *) ac_try_echo=$ac_try;;
40230
 
esac
40231
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40232
 
$as_echo "$ac_try_echo") >&5
40233
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40234
 
  ac_status=$?
40235
 
  grep -v '^ *+' conftest.er1 >conftest.err
40236
 
  rm -f conftest.er1
40237
 
  cat conftest.err >&5
40238
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239
 
  (exit $ac_status); } >/dev/null && {
40240
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40241
 
         test ! -s conftest.err
40242
 
       }; then
40243
 
  :
40244
 
else
40245
 
  $as_echo "$as_me: failed program was:" >&5
40246
 
sed 's/^/| /' conftest.$ac_ext >&5
40247
 
 
40248
 
  # Broken: fails on valid input.
40249
 
continue
40250
 
fi
40251
 
 
40252
 
rm -f conftest.err conftest.$ac_ext
40253
 
 
40254
 
  # OK, works on sane cases.  Now check whether nonexistent headers
40255
 
  # can be detected and how.
40256
 
  cat >conftest.$ac_ext <<_ACEOF
40257
 
/* confdefs.h.  */
40258
 
_ACEOF
40259
 
cat confdefs.h >>conftest.$ac_ext
40260
 
cat >>conftest.$ac_ext <<_ACEOF
40261
 
/* end confdefs.h.  */
40262
 
@%:@include <ac_nonexistent.h>
40263
 
_ACEOF
40264
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
40265
 
case "(($ac_try" in
40266
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40267
 
  *) ac_try_echo=$ac_try;;
40268
 
esac
40269
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40270
 
$as_echo "$ac_try_echo") >&5
40271
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40272
 
  ac_status=$?
40273
 
  grep -v '^ *+' conftest.er1 >conftest.err
40274
 
  rm -f conftest.er1
40275
 
  cat conftest.err >&5
40276
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40277
 
  (exit $ac_status); } >/dev/null && {
40278
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40279
 
         test ! -s conftest.err
40280
 
       }; then
40281
 
  # Broken: success on invalid input.
40282
 
continue
40283
 
else
40284
 
  $as_echo "$as_me: failed program was:" >&5
40285
 
sed 's/^/| /' conftest.$ac_ext >&5
40286
 
 
40287
 
  # Passes both tests.
40288
 
ac_preproc_ok=:
40289
 
break
40290
 
fi
40291
 
 
40292
 
rm -f conftest.err conftest.$ac_ext
40293
 
 
40294
 
done
40295
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
40296
 
rm -f conftest.err conftest.$ac_ext
40297
 
if $ac_preproc_ok; then
40298
 
  :
40299
 
else
40300
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
40301
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40302
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
40303
 
See \`config.log' for more details." >&5
40304
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
40305
 
See \`config.log' for more details." >&2;}
40306
 
   { (exit 1); exit 1; }; }; }
40307
 
fi
40308
 
 
40309
 
ac_ext=c
40310
 
ac_cpp='$CPP $CPPFLAGS'
40311
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40312
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40313
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
40314
 
 
40315
 
    { $as_echo "$as_me:$LINENO: checking for openssl support in libcurl" >&5
40316
 
$as_echo_n "checking for openssl support in libcurl... " >&6; }
40317
 
    if test "$cross_compiling" = yes; then
40318
 
  
40319
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
40320
 
$as_echo "no" >&6; }
40321
 
    
40322
 
else
40323
 
  cat >conftest.$ac_ext <<_ACEOF
40324
 
/* confdefs.h.  */
40325
 
_ACEOF
40326
 
cat confdefs.h >>conftest.$ac_ext
40327
 
cat >>conftest.$ac_ext <<_ACEOF
40328
 
/* end confdefs.h.  */
40329
 
 
40330
 
#include <curl/curl.h>
40331
 
 
40332
 
int main(int argc, char *argv[])
40333
 
{
40334
 
  curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
40335
 
 
40336
 
  if (data && data->ssl_version && *data->ssl_version) {
40337
 
    const char *ptr = data->ssl_version;
40338
 
 
40339
 
    while(*ptr == ' ') ++ptr;
40340
 
    return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1);
40341
 
  }
40342
 
  return 1;
40343
 
}
40344
 
    
40345
 
_ACEOF
40346
 
rm -f conftest$ac_exeext
40347
 
if { (ac_try="$ac_link"
40348
 
case "(($ac_try" in
40349
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40350
 
  *) ac_try_echo=$ac_try;;
40351
 
esac
40352
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40353
 
$as_echo "$ac_try_echo") >&5
40354
 
  (eval "$ac_link") 2>&5
40355
 
  ac_status=$?
40356
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40357
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40358
 
  { (case "(($ac_try" in
40359
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40360
 
  *) ac_try_echo=$ac_try;;
40361
 
esac
40362
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40363
 
$as_echo "$ac_try_echo") >&5
40364
 
  (eval "$ac_try") 2>&5
40365
 
  ac_status=$?
40366
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40367
 
  (exit $ac_status); }; }; then
40368
 
  
40369
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
40370
 
$as_echo "yes" >&6; }
40371
 
      
40372
 
for ac_header in openssl/crypto.h
40373
 
do
40374
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40375
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40376
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40377
 
$as_echo_n "checking for $ac_header... " >&6; }
40378
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40379
 
  $as_echo_n "(cached) " >&6
40380
 
fi
40381
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
40382
 
                 $as_echo "$as_val"'`
40383
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40384
 
$as_echo "$ac_res" >&6; }
40385
 
else
40386
 
  # Is the header compilable?
40387
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
40388
 
$as_echo_n "checking $ac_header usability... " >&6; }
40389
 
cat >conftest.$ac_ext <<_ACEOF
40390
 
/* confdefs.h.  */
40391
 
_ACEOF
40392
 
cat confdefs.h >>conftest.$ac_ext
40393
 
cat >>conftest.$ac_ext <<_ACEOF
40394
 
/* end confdefs.h.  */
40395
 
$ac_includes_default
40396
 
@%:@include <$ac_header>
40397
 
_ACEOF
40398
 
rm -f conftest.$ac_objext
40399
 
if { (ac_try="$ac_compile"
40400
 
case "(($ac_try" in
40401
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40402
 
  *) ac_try_echo=$ac_try;;
40403
 
esac
40404
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40405
 
$as_echo "$ac_try_echo") >&5
40406
 
  (eval "$ac_compile") 2>conftest.er1
40407
 
  ac_status=$?
40408
 
  grep -v '^ *+' conftest.er1 >conftest.err
40409
 
  rm -f conftest.er1
40410
 
  cat conftest.err >&5
40411
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412
 
  (exit $ac_status); } && {
40413
 
         test -z "$ac_c_werror_flag" ||
40414
 
         test ! -s conftest.err
40415
 
       } && test -s conftest.$ac_objext; then
40416
 
  ac_header_compiler=yes
40417
 
else
40418
 
  $as_echo "$as_me: failed program was:" >&5
40419
 
sed 's/^/| /' conftest.$ac_ext >&5
40420
 
 
40421
 
        ac_header_compiler=no
40422
 
fi
40423
 
 
40424
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40425
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40426
 
$as_echo "$ac_header_compiler" >&6; }
40427
 
 
40428
 
# Is the header present?
40429
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
40430
 
$as_echo_n "checking $ac_header presence... " >&6; }
40431
 
cat >conftest.$ac_ext <<_ACEOF
40432
 
/* confdefs.h.  */
40433
 
_ACEOF
40434
 
cat confdefs.h >>conftest.$ac_ext
40435
 
cat >>conftest.$ac_ext <<_ACEOF
40436
 
/* end confdefs.h.  */
40437
 
@%:@include <$ac_header>
40438
 
_ACEOF
40439
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
40440
 
case "(($ac_try" in
40441
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40442
 
  *) ac_try_echo=$ac_try;;
40443
 
esac
40444
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40445
 
$as_echo "$ac_try_echo") >&5
40446
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40447
 
  ac_status=$?
40448
 
  grep -v '^ *+' conftest.er1 >conftest.err
40449
 
  rm -f conftest.er1
40450
 
  cat conftest.err >&5
40451
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40452
 
  (exit $ac_status); } >/dev/null && {
40453
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40454
 
         test ! -s conftest.err
40455
 
       }; then
40456
 
  ac_header_preproc=yes
40457
 
else
40458
 
  $as_echo "$as_me: failed program was:" >&5
40459
 
sed 's/^/| /' conftest.$ac_ext >&5
40460
 
 
40461
 
  ac_header_preproc=no
40462
 
fi
40463
 
 
40464
 
rm -f conftest.err conftest.$ac_ext
40465
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40466
 
$as_echo "$ac_header_preproc" >&6; }
40467
 
 
40468
 
# So?  What about this header?
40469
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40470
 
  yes:no: )
40471
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40472
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40473
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40474
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40475
 
    ac_header_preproc=yes
40476
 
    ;;
40477
 
  no:yes:* )
40478
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40479
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40480
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40481
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40482
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40483
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40484
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40485
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40486
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40487
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40488
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40489
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40490
 
    
40491
 
    ;;
40492
 
esac
40493
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40494
 
$as_echo_n "checking for $ac_header... " >&6; }
40495
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40496
 
  $as_echo_n "(cached) " >&6
40497
 
else
40498
 
  eval "$as_ac_Header=\$ac_header_preproc"
40499
 
fi
40500
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
40501
 
                 $as_echo "$as_val"'`
40502
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40503
 
$as_echo "$ac_res" >&6; }
40504
 
 
40505
 
fi
40506
 
as_val=`eval 'as_val=${'$as_ac_Header'}
40507
 
                 $as_echo "$as_val"'`
40508
 
   if test "x$as_val" = x""yes; then
40509
 
  cat >>confdefs.h <<_ACEOF
40510
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40511
 
_ACEOF
40512
 
 
40513
 
        
40514
 
cat >>confdefs.h <<\_ACEOF
40515
 
@%:@define HAVE_CURL_OPENSSL 1
40516
 
_ACEOF
40517
 
 
40518
 
      
40519
 
fi
40520
 
 
40521
 
done
40522
 
 
40523
 
    
40524
 
else
40525
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
40526
 
$as_echo "$as_me: failed program was:" >&5
40527
 
sed 's/^/| /' conftest.$ac_ext >&5
40528
 
 
40529
 
( exit $ac_status )
40530
 
 
40531
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
40532
 
$as_echo "no" >&6; }
40533
 
    
40534
 
fi
40535
 
rm -rf conftest.dSYM
40536
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40537
 
fi
40538
 
 
40539
 
 
40540
 
   
40541
 
    { $as_echo "$as_me:$LINENO: checking for gnutls support in libcurl" >&5
40542
 
$as_echo_n "checking for gnutls support in libcurl... " >&6; }
40543
 
    if test "$cross_compiling" = yes; then
40544
 
  
40545
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
40546
 
$as_echo "no" >&6; }
40547
 
    
40548
 
else
40549
 
  cat >conftest.$ac_ext <<_ACEOF
40550
 
/* confdefs.h.  */
40551
 
_ACEOF
40552
 
cat confdefs.h >>conftest.$ac_ext
40553
 
cat >>conftest.$ac_ext <<_ACEOF
40554
 
/* end confdefs.h.  */
40555
 
 
40556
 
#include <curl/curl.h>
40557
 
 
40558
 
int main(int argc, char *argv[])
40559
 
{
40560
 
  curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
40561
 
  
40562
 
  if (data && data->ssl_version && *data->ssl_version) {
40563
 
    const char *ptr = data->ssl_version;
40564
 
 
40565
 
    while(*ptr == ' ') ++ptr;
40566
 
    return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
40567
 
  }
40568
 
  return 1;
40569
 
}
40570
 
 
40571
 
_ACEOF
40572
 
rm -f conftest$ac_exeext
40573
 
if { (ac_try="$ac_link"
40574
 
case "(($ac_try" in
40575
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40576
 
  *) ac_try_echo=$ac_try;;
40577
 
esac
40578
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40579
 
$as_echo "$ac_try_echo") >&5
40580
 
  (eval "$ac_link") 2>&5
40581
 
  ac_status=$?
40582
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40583
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40584
 
  { (case "(($ac_try" in
40585
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40586
 
  *) ac_try_echo=$ac_try;;
40587
 
esac
40588
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40589
 
$as_echo "$ac_try_echo") >&5
40590
 
  (eval "$ac_try") 2>&5
40591
 
  ac_status=$?
40592
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40593
 
  (exit $ac_status); }; }; then
40594
 
  
40595
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
40596
 
$as_echo "yes" >&6; }
40597
 
      if test "${ac_cv_header_gcrypt_h+set}" = set; then
40598
 
  { $as_echo "$as_me:$LINENO: checking for gcrypt.h" >&5
40599
 
$as_echo_n "checking for gcrypt.h... " >&6; }
40600
 
if test "${ac_cv_header_gcrypt_h+set}" = set; then
40601
 
  $as_echo_n "(cached) " >&6
40602
 
fi
40603
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gcrypt_h" >&5
40604
 
$as_echo "$ac_cv_header_gcrypt_h" >&6; }
40605
 
else
40606
 
  # Is the header compilable?
40607
 
{ $as_echo "$as_me:$LINENO: checking gcrypt.h usability" >&5
40608
 
$as_echo_n "checking gcrypt.h usability... " >&6; }
40609
 
cat >conftest.$ac_ext <<_ACEOF
40610
 
/* confdefs.h.  */
40611
 
_ACEOF
40612
 
cat confdefs.h >>conftest.$ac_ext
40613
 
cat >>conftest.$ac_ext <<_ACEOF
40614
 
/* end confdefs.h.  */
40615
 
$ac_includes_default
40616
 
@%:@include <gcrypt.h>
40617
 
_ACEOF
40618
 
rm -f conftest.$ac_objext
40619
 
if { (ac_try="$ac_compile"
40620
 
case "(($ac_try" in
40621
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40622
 
  *) ac_try_echo=$ac_try;;
40623
 
esac
40624
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40625
 
$as_echo "$ac_try_echo") >&5
40626
 
  (eval "$ac_compile") 2>conftest.er1
40627
 
  ac_status=$?
40628
 
  grep -v '^ *+' conftest.er1 >conftest.err
40629
 
  rm -f conftest.er1
40630
 
  cat conftest.err >&5
40631
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632
 
  (exit $ac_status); } && {
40633
 
         test -z "$ac_c_werror_flag" ||
40634
 
         test ! -s conftest.err
40635
 
       } && test -s conftest.$ac_objext; then
40636
 
  ac_header_compiler=yes
40637
 
else
40638
 
  $as_echo "$as_me: failed program was:" >&5
40639
 
sed 's/^/| /' conftest.$ac_ext >&5
40640
 
 
40641
 
        ac_header_compiler=no
40642
 
fi
40643
 
 
40644
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40645
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40646
 
$as_echo "$ac_header_compiler" >&6; }
40647
 
 
40648
 
# Is the header present?
40649
 
{ $as_echo "$as_me:$LINENO: checking gcrypt.h presence" >&5
40650
 
$as_echo_n "checking gcrypt.h presence... " >&6; }
40651
 
cat >conftest.$ac_ext <<_ACEOF
40652
 
/* confdefs.h.  */
40653
 
_ACEOF
40654
 
cat confdefs.h >>conftest.$ac_ext
40655
 
cat >>conftest.$ac_ext <<_ACEOF
40656
 
/* end confdefs.h.  */
40657
 
@%:@include <gcrypt.h>
40658
 
_ACEOF
40659
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
40660
 
case "(($ac_try" in
40661
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40662
 
  *) ac_try_echo=$ac_try;;
40663
 
esac
40664
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40665
 
$as_echo "$ac_try_echo") >&5
40666
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40667
 
  ac_status=$?
40668
 
  grep -v '^ *+' conftest.er1 >conftest.err
40669
 
  rm -f conftest.er1
40670
 
  cat conftest.err >&5
40671
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672
 
  (exit $ac_status); } >/dev/null && {
40673
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40674
 
         test ! -s conftest.err
40675
 
       }; then
40676
 
  ac_header_preproc=yes
40677
 
else
40678
 
  $as_echo "$as_me: failed program was:" >&5
40679
 
sed 's/^/| /' conftest.$ac_ext >&5
40680
 
 
40681
 
  ac_header_preproc=no
40682
 
fi
40683
 
 
40684
 
rm -f conftest.err conftest.$ac_ext
40685
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40686
 
$as_echo "$ac_header_preproc" >&6; }
40687
 
 
40688
 
# So?  What about this header?
40689
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40690
 
  yes:no: )
40691
 
    { $as_echo "$as_me:$LINENO: WARNING: gcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
40692
 
$as_echo "$as_me: WARNING: gcrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40693
 
    { $as_echo "$as_me:$LINENO: WARNING: gcrypt.h: proceeding with the compiler's result" >&5
40694
 
$as_echo "$as_me: WARNING: gcrypt.h: proceeding with the compiler's result" >&2;}
40695
 
    ac_header_preproc=yes
40696
 
    ;;
40697
 
  no:yes:* )
40698
 
    { $as_echo "$as_me:$LINENO: WARNING: gcrypt.h: present but cannot be compiled" >&5
40699
 
$as_echo "$as_me: WARNING: gcrypt.h: present but cannot be compiled" >&2;}
40700
 
    { $as_echo "$as_me:$LINENO: WARNING: gcrypt.h:     check for missing prerequisite headers?" >&5
40701
 
$as_echo "$as_me: WARNING: gcrypt.h:     check for missing prerequisite headers?" >&2;}
40702
 
    { $as_echo "$as_me:$LINENO: WARNING: gcrypt.h: see the Autoconf documentation" >&5
40703
 
$as_echo "$as_me: WARNING: gcrypt.h: see the Autoconf documentation" >&2;}
40704
 
    { $as_echo "$as_me:$LINENO: WARNING: gcrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
40705
 
$as_echo "$as_me: WARNING: gcrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40706
 
    { $as_echo "$as_me:$LINENO: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&5
40707
 
$as_echo "$as_me: WARNING: gcrypt.h: proceeding with the preprocessor's result" >&2;}
40708
 
    { $as_echo "$as_me:$LINENO: WARNING: gcrypt.h: in the future, the compiler will take precedence" >&5
40709
 
$as_echo "$as_me: WARNING: gcrypt.h: in the future, the compiler will take precedence" >&2;}
40710
 
    
40711
 
    ;;
40712
 
esac
40713
 
{ $as_echo "$as_me:$LINENO: checking for gcrypt.h" >&5
40714
 
$as_echo_n "checking for gcrypt.h... " >&6; }
40715
 
if test "${ac_cv_header_gcrypt_h+set}" = set; then
40716
 
  $as_echo_n "(cached) " >&6
40717
 
else
40718
 
  ac_cv_header_gcrypt_h=$ac_header_preproc
40719
 
fi
40720
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gcrypt_h" >&5
40721
 
$as_echo "$ac_cv_header_gcrypt_h" >&6; }
40722
 
 
40723
 
fi
40724
 
if test "x$ac_cv_header_gcrypt_h" = x""yes; then
40725
 
  
40726
 
        
40727
 
cat >>confdefs.h <<\_ACEOF
40728
 
@%:@define HAVE_CURL_GNUTLS 1
40729
 
_ACEOF
40730
 
 
40731
 
      
40732
 
fi
40733
 
 
40734
 
 
40735
 
    
40736
 
else
40737
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
40738
 
$as_echo "$as_me: failed program was:" >&5
40739
 
sed 's/^/| /' conftest.$ac_ext >&5
40740
 
 
40741
 
( exit $ac_status )
40742
 
 
40743
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
40744
 
$as_echo "no" >&6; }
40745
 
    
40746
 
fi
40747
 
rm -rf conftest.dSYM
40748
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40749
 
fi
40750
 
 
40751
 
 
40752
 
   
40753
 
    CFLAGS="$save_CFLAGS"
40754
 
  else
40755
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
40756
 
$as_echo "no" >&6; }
40757
 
  fi
40758
 
 
40759
 
  
40760
 
  save_old_LDFLAGS=$LDFLAGS
40761
 
  ac_stuff="
40762
 
    $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
40763
 
  "
40764
 
  
40765
 
  save_ext_shared=$ext_shared
40766
 
  ext_shared=yes
40767
 
  
40768
 
  for ac_i in $ac_stuff; do
40769
 
    case $ac_i in
40770
 
    -pthread)
40771
 
      if test "$ext_shared" = "yes"; then
40772
 
        LDFLAGS="$LDFLAGS -pthread"
40773
 
      else
40774
 
        
40775
 
  
40776
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40777
 
  
40778
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40779
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
40780
 
    eval "EXTRA_LDFLAGS$unique=set"
40781
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40782
 
  fi
40783
 
 
40784
 
      fi
40785
 
    ;;
40786
 
    -l*)
40787
 
      ac_ii=`echo $ac_i|cut -c 3-`
40788
 
      
40789
 
  
40790
 
  case $ac_ii in
40791
 
  c|c_r|pthread*) ;;
40792
 
  *) 
40793
 
    if test "$ext_shared" = "yes"; then
40794
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
40795
 
    else
40796
 
      
40797
 
  
40798
 
  case $ac_ii in
40799
 
  c|c_r|pthread*) ;;
40800
 
  *) 
40801
 
      LIBS="$LIBS -l$ac_ii" 
40802
 
   ;;
40803
 
  esac
40804
 
 
40805
 
 
40806
 
    fi
40807
 
   ;;
40808
 
  esac
40809
 
 
40810
 
 
40811
 
    ;;
40812
 
    -L*)
40813
 
      ac_ii=`echo $ac_i|cut -c 3-`
40814
 
      
40815
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
40816
 
    
40817
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
40818
 
    ai_p=$ac_ii
40819
 
  else
40820
 
    
40821
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
40822
 
    
40823
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40824
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
40825
 
  fi
40826
 
 
40827
 
    
40828
 
      if test "$ext_shared" = "yes"; then
40829
 
        LDFLAGS="-L$ai_p $LDFLAGS"
40830
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
40831
 
      else
40832
 
        
40833
 
  
40834
 
  
40835
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40836
 
  
40837
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40838
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
40839
 
    eval "LIBPATH$unique=set"
40840
 
    
40841
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40842
 
    LDFLAGS="$LDFLAGS -L$ai_p"
40843
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
40844
 
  
40845
 
  fi
40846
 
 
40847
 
 
40848
 
      fi
40849
 
    
40850
 
  fi
40851
 
 
40852
 
    ;;
40853
 
    esac
40854
 
  done
40855
 
 
40856
 
  { $as_echo "$as_me:$LINENO: checking for curl_easy_perform in -lcurl" >&5
40857
 
$as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; }
40858
 
if test "${ac_cv_lib_curl_curl_easy_perform+set}" = set; then
40859
 
  $as_echo_n "(cached) " >&6
40860
 
else
40861
 
  ac_check_lib_save_LIBS=$LIBS
40862
 
LIBS="-lcurl  $LIBS"
40863
 
cat >conftest.$ac_ext <<_ACEOF
40864
 
/* confdefs.h.  */
40865
 
_ACEOF
40866
 
cat confdefs.h >>conftest.$ac_ext
40867
 
cat >>conftest.$ac_ext <<_ACEOF
40868
 
/* end confdefs.h.  */
40869
 
 
40870
 
/* Override any GCC internal prototype to avoid an error.
40871
 
   Use char because int might match the return type of a GCC
40872
 
   builtin and then its argument prototype would still apply.  */
40873
 
#ifdef __cplusplus
40874
 
extern "C"
40875
 
#endif
40876
 
char curl_easy_perform ();
40877
 
int
40878
 
main ()
40879
 
{
40880
 
return curl_easy_perform ();
40881
 
  ;
40882
 
  return 0;
40883
 
}
40884
 
_ACEOF
40885
 
rm -f conftest.$ac_objext conftest$ac_exeext
40886
 
if { (ac_try="$ac_link"
40887
 
case "(($ac_try" in
40888
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40889
 
  *) ac_try_echo=$ac_try;;
40890
 
esac
40891
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40892
 
$as_echo "$ac_try_echo") >&5
40893
 
  (eval "$ac_link") 2>conftest.er1
40894
 
  ac_status=$?
40895
 
  grep -v '^ *+' conftest.er1 >conftest.err
40896
 
  rm -f conftest.er1
40897
 
  cat conftest.err >&5
40898
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40899
 
  (exit $ac_status); } && {
40900
 
         test -z "$ac_c_werror_flag" ||
40901
 
         test ! -s conftest.err
40902
 
       } && test -s conftest$ac_exeext && {
40903
 
         test "$cross_compiling" = yes ||
40904
 
         $as_test_x conftest$ac_exeext
40905
 
       }; then
40906
 
  ac_cv_lib_curl_curl_easy_perform=yes
40907
 
else
40908
 
  $as_echo "$as_me: failed program was:" >&5
40909
 
sed 's/^/| /' conftest.$ac_ext >&5
40910
 
 
40911
 
        ac_cv_lib_curl_curl_easy_perform=no
40912
 
fi
40913
 
 
40914
 
rm -rf conftest.dSYM
40915
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40916
 
      conftest$ac_exeext conftest.$ac_ext
40917
 
LIBS=$ac_check_lib_save_LIBS
40918
 
fi
40919
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_perform" >&5
40920
 
$as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; }
40921
 
if test "x$ac_cv_lib_curl_curl_easy_perform" = x""yes; then
40922
 
  
40923
 
    LDFLAGS=$save_old_LDFLAGS
40924
 
    ext_shared=$save_ext_shared
40925
 
     
40926
 
    
40927
 
cat >>confdefs.h <<\_ACEOF
40928
 
@%:@define HAVE_CURL 1
40929
 
_ACEOF
40930
 
 
40931
 
  
40932
 
  
40933
 
else
40934
 
  
40935
 
    LDFLAGS=$save_old_LDFLAGS
40936
 
    ext_shared=$save_ext_shared
40937
 
    unset ac_cv_lib_curl_curl_easy_perform
40938
 
    
40939
 
    { { $as_echo "$as_me:$LINENO: error: There is something wrong. Please check config.log for more information." >&5
40940
 
$as_echo "$as_me: error: There is something wrong. Please check config.log for more information." >&2;}
40941
 
   { (exit 1); exit 1; }; }
40942
 
  
40943
 
  
40944
 
fi
40945
 
 
40946
 
 
40947
 
  
40948
 
  save_old_LDFLAGS=$LDFLAGS
40949
 
  ac_stuff="
40950
 
    $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
40951
 
  "
40952
 
  
40953
 
  save_ext_shared=$ext_shared
40954
 
  ext_shared=yes
40955
 
  
40956
 
  for ac_i in $ac_stuff; do
40957
 
    case $ac_i in
40958
 
    -pthread)
40959
 
      if test "$ext_shared" = "yes"; then
40960
 
        LDFLAGS="$LDFLAGS -pthread"
40961
 
      else
40962
 
        
40963
 
  
40964
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40965
 
  
40966
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40967
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
40968
 
    eval "EXTRA_LDFLAGS$unique=set"
40969
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40970
 
  fi
40971
 
 
40972
 
      fi
40973
 
    ;;
40974
 
    -l*)
40975
 
      ac_ii=`echo $ac_i|cut -c 3-`
40976
 
      
40977
 
  
40978
 
  case $ac_ii in
40979
 
  c|c_r|pthread*) ;;
40980
 
  *) 
40981
 
    if test "$ext_shared" = "yes"; then
40982
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
40983
 
    else
40984
 
      
40985
 
  
40986
 
  case $ac_ii in
40987
 
  c|c_r|pthread*) ;;
40988
 
  *) 
40989
 
      LIBS="$LIBS -l$ac_ii" 
40990
 
   ;;
40991
 
  esac
40992
 
 
40993
 
 
40994
 
    fi
40995
 
   ;;
40996
 
  esac
40997
 
 
40998
 
 
40999
 
    ;;
41000
 
    -L*)
41001
 
      ac_ii=`echo $ac_i|cut -c 3-`
41002
 
      
41003
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41004
 
    
41005
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41006
 
    ai_p=$ac_ii
41007
 
  else
41008
 
    
41009
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
41010
 
    
41011
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41012
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
41013
 
  fi
41014
 
 
41015
 
    
41016
 
      if test "$ext_shared" = "yes"; then
41017
 
        LDFLAGS="-L$ai_p $LDFLAGS"
41018
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41019
 
      else
41020
 
        
41021
 
  
41022
 
  
41023
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41024
 
  
41025
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41026
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
41027
 
    eval "LIBPATH$unique=set"
41028
 
    
41029
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41030
 
    LDFLAGS="$LDFLAGS -L$ai_p"
41031
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
41032
 
  
41033
 
  fi
41034
 
 
41035
 
 
41036
 
      fi
41037
 
    
41038
 
  fi
41039
 
 
41040
 
    ;;
41041
 
    esac
41042
 
  done
41043
 
 
41044
 
  { $as_echo "$as_me:$LINENO: checking for curl_version_info in -lcurl" >&5
41045
 
$as_echo_n "checking for curl_version_info in -lcurl... " >&6; }
41046
 
if test "${ac_cv_lib_curl_curl_version_info+set}" = set; then
41047
 
  $as_echo_n "(cached) " >&6
41048
 
else
41049
 
  ac_check_lib_save_LIBS=$LIBS
41050
 
LIBS="-lcurl  $LIBS"
41051
 
cat >conftest.$ac_ext <<_ACEOF
41052
 
/* confdefs.h.  */
41053
 
_ACEOF
41054
 
cat confdefs.h >>conftest.$ac_ext
41055
 
cat >>conftest.$ac_ext <<_ACEOF
41056
 
/* end confdefs.h.  */
41057
 
 
41058
 
/* Override any GCC internal prototype to avoid an error.
41059
 
   Use char because int might match the return type of a GCC
41060
 
   builtin and then its argument prototype would still apply.  */
41061
 
#ifdef __cplusplus
41062
 
extern "C"
41063
 
#endif
41064
 
char curl_version_info ();
41065
 
int
41066
 
main ()
41067
 
{
41068
 
return curl_version_info ();
41069
 
  ;
41070
 
  return 0;
41071
 
}
41072
 
_ACEOF
41073
 
rm -f conftest.$ac_objext conftest$ac_exeext
41074
 
if { (ac_try="$ac_link"
41075
 
case "(($ac_try" in
41076
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41077
 
  *) ac_try_echo=$ac_try;;
41078
 
esac
41079
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41080
 
$as_echo "$ac_try_echo") >&5
41081
 
  (eval "$ac_link") 2>conftest.er1
41082
 
  ac_status=$?
41083
 
  grep -v '^ *+' conftest.er1 >conftest.err
41084
 
  rm -f conftest.er1
41085
 
  cat conftest.err >&5
41086
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087
 
  (exit $ac_status); } && {
41088
 
         test -z "$ac_c_werror_flag" ||
41089
 
         test ! -s conftest.err
41090
 
       } && test -s conftest$ac_exeext && {
41091
 
         test "$cross_compiling" = yes ||
41092
 
         $as_test_x conftest$ac_exeext
41093
 
       }; then
41094
 
  ac_cv_lib_curl_curl_version_info=yes
41095
 
else
41096
 
  $as_echo "$as_me: failed program was:" >&5
41097
 
sed 's/^/| /' conftest.$ac_ext >&5
41098
 
 
41099
 
        ac_cv_lib_curl_curl_version_info=no
41100
 
fi
41101
 
 
41102
 
rm -rf conftest.dSYM
41103
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41104
 
      conftest$ac_exeext conftest.$ac_ext
41105
 
LIBS=$ac_check_lib_save_LIBS
41106
 
fi
41107
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_version_info" >&5
41108
 
$as_echo "$ac_cv_lib_curl_curl_version_info" >&6; }
41109
 
if test "x$ac_cv_lib_curl_curl_version_info" = x""yes; then
41110
 
  
41111
 
    LDFLAGS=$save_old_LDFLAGS
41112
 
    ext_shared=$save_ext_shared
41113
 
    
41114
 
    
41115
 
cat >>confdefs.h <<\_ACEOF
41116
 
@%:@define HAVE_CURL_VERSION_INFO 1
41117
 
_ACEOF
41118
 
 
41119
 
  
41120
 
  
41121
 
else
41122
 
  
41123
 
    LDFLAGS=$save_old_LDFLAGS
41124
 
    ext_shared=$save_ext_shared
41125
 
    unset ac_cv_lib_curl_curl_version_info
41126
 
    
41127
 
  
41128
 
fi
41129
 
 
41130
 
 
41131
 
  
41132
 
  save_old_LDFLAGS=$LDFLAGS
41133
 
  ac_stuff="
41134
 
    $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
41135
 
  "
41136
 
  
41137
 
  save_ext_shared=$ext_shared
41138
 
  ext_shared=yes
41139
 
  
41140
 
  for ac_i in $ac_stuff; do
41141
 
    case $ac_i in
41142
 
    -pthread)
41143
 
      if test "$ext_shared" = "yes"; then
41144
 
        LDFLAGS="$LDFLAGS -pthread"
41145
 
      else
41146
 
        
41147
 
  
41148
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41149
 
  
41150
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41151
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
41152
 
    eval "EXTRA_LDFLAGS$unique=set"
41153
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41154
 
  fi
41155
 
 
41156
 
      fi
41157
 
    ;;
41158
 
    -l*)
41159
 
      ac_ii=`echo $ac_i|cut -c 3-`
41160
 
      
41161
 
  
41162
 
  case $ac_ii in
41163
 
  c|c_r|pthread*) ;;
41164
 
  *) 
41165
 
    if test "$ext_shared" = "yes"; then
41166
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
41167
 
    else
41168
 
      
41169
 
  
41170
 
  case $ac_ii in
41171
 
  c|c_r|pthread*) ;;
41172
 
  *) 
41173
 
      LIBS="$LIBS -l$ac_ii" 
41174
 
   ;;
41175
 
  esac
41176
 
 
41177
 
 
41178
 
    fi
41179
 
   ;;
41180
 
  esac
41181
 
 
41182
 
 
41183
 
    ;;
41184
 
    -L*)
41185
 
      ac_ii=`echo $ac_i|cut -c 3-`
41186
 
      
41187
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41188
 
    
41189
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41190
 
    ai_p=$ac_ii
41191
 
  else
41192
 
    
41193
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
41194
 
    
41195
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41196
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
41197
 
  fi
41198
 
 
41199
 
    
41200
 
      if test "$ext_shared" = "yes"; then
41201
 
        LDFLAGS="-L$ai_p $LDFLAGS"
41202
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41203
 
      else
41204
 
        
41205
 
  
41206
 
  
41207
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41208
 
  
41209
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41210
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
41211
 
    eval "LIBPATH$unique=set"
41212
 
    
41213
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41214
 
    LDFLAGS="$LDFLAGS -L$ai_p"
41215
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
41216
 
  
41217
 
  fi
41218
 
 
41219
 
 
41220
 
      fi
41221
 
    
41222
 
  fi
41223
 
 
41224
 
    ;;
41225
 
    esac
41226
 
  done
41227
 
 
41228
 
  { $as_echo "$as_me:$LINENO: checking for curl_easy_strerror in -lcurl" >&5
41229
 
$as_echo_n "checking for curl_easy_strerror in -lcurl... " >&6; }
41230
 
if test "${ac_cv_lib_curl_curl_easy_strerror+set}" = set; then
41231
 
  $as_echo_n "(cached) " >&6
41232
 
else
41233
 
  ac_check_lib_save_LIBS=$LIBS
41234
 
LIBS="-lcurl  $LIBS"
41235
 
cat >conftest.$ac_ext <<_ACEOF
41236
 
/* confdefs.h.  */
41237
 
_ACEOF
41238
 
cat confdefs.h >>conftest.$ac_ext
41239
 
cat >>conftest.$ac_ext <<_ACEOF
41240
 
/* end confdefs.h.  */
41241
 
 
41242
 
/* Override any GCC internal prototype to avoid an error.
41243
 
   Use char because int might match the return type of a GCC
41244
 
   builtin and then its argument prototype would still apply.  */
41245
 
#ifdef __cplusplus
41246
 
extern "C"
41247
 
#endif
41248
 
char curl_easy_strerror ();
41249
 
int
41250
 
main ()
41251
 
{
41252
 
return curl_easy_strerror ();
41253
 
  ;
41254
 
  return 0;
41255
 
}
41256
 
_ACEOF
41257
 
rm -f conftest.$ac_objext conftest$ac_exeext
41258
 
if { (ac_try="$ac_link"
41259
 
case "(($ac_try" in
41260
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41261
 
  *) ac_try_echo=$ac_try;;
41262
 
esac
41263
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41264
 
$as_echo "$ac_try_echo") >&5
41265
 
  (eval "$ac_link") 2>conftest.er1
41266
 
  ac_status=$?
41267
 
  grep -v '^ *+' conftest.er1 >conftest.err
41268
 
  rm -f conftest.er1
41269
 
  cat conftest.err >&5
41270
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41271
 
  (exit $ac_status); } && {
41272
 
         test -z "$ac_c_werror_flag" ||
41273
 
         test ! -s conftest.err
41274
 
       } && test -s conftest$ac_exeext && {
41275
 
         test "$cross_compiling" = yes ||
41276
 
         $as_test_x conftest$ac_exeext
41277
 
       }; then
41278
 
  ac_cv_lib_curl_curl_easy_strerror=yes
41279
 
else
41280
 
  $as_echo "$as_me: failed program was:" >&5
41281
 
sed 's/^/| /' conftest.$ac_ext >&5
41282
 
 
41283
 
        ac_cv_lib_curl_curl_easy_strerror=no
41284
 
fi
41285
 
 
41286
 
rm -rf conftest.dSYM
41287
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41288
 
      conftest$ac_exeext conftest.$ac_ext
41289
 
LIBS=$ac_check_lib_save_LIBS
41290
 
fi
41291
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
41292
 
$as_echo "$ac_cv_lib_curl_curl_easy_strerror" >&6; }
41293
 
if test "x$ac_cv_lib_curl_curl_easy_strerror" = x""yes; then
41294
 
  
41295
 
    LDFLAGS=$save_old_LDFLAGS
41296
 
    ext_shared=$save_ext_shared
41297
 
    
41298
 
    
41299
 
cat >>confdefs.h <<\_ACEOF
41300
 
@%:@define HAVE_CURL_EASY_STRERROR 1
41301
 
_ACEOF
41302
 
 
41303
 
  
41304
 
  
41305
 
else
41306
 
  
41307
 
    LDFLAGS=$save_old_LDFLAGS
41308
 
    ext_shared=$save_ext_shared
41309
 
    unset ac_cv_lib_curl_curl_easy_strerror
41310
 
    
41311
 
  
41312
 
fi
41313
 
 
41314
 
 
41315
 
  
41316
 
  save_old_LDFLAGS=$LDFLAGS
41317
 
  ac_stuff="
41318
 
    $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
41319
 
  "
41320
 
  
41321
 
  save_ext_shared=$ext_shared
41322
 
  ext_shared=yes
41323
 
  
41324
 
  for ac_i in $ac_stuff; do
41325
 
    case $ac_i in
41326
 
    -pthread)
41327
 
      if test "$ext_shared" = "yes"; then
41328
 
        LDFLAGS="$LDFLAGS -pthread"
41329
 
      else
41330
 
        
41331
 
  
41332
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41333
 
  
41334
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41335
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
41336
 
    eval "EXTRA_LDFLAGS$unique=set"
41337
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41338
 
  fi
41339
 
 
41340
 
      fi
41341
 
    ;;
41342
 
    -l*)
41343
 
      ac_ii=`echo $ac_i|cut -c 3-`
41344
 
      
41345
 
  
41346
 
  case $ac_ii in
41347
 
  c|c_r|pthread*) ;;
41348
 
  *) 
41349
 
    if test "$ext_shared" = "yes"; then
41350
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
41351
 
    else
41352
 
      
41353
 
  
41354
 
  case $ac_ii in
41355
 
  c|c_r|pthread*) ;;
41356
 
  *) 
41357
 
      LIBS="$LIBS -l$ac_ii" 
41358
 
   ;;
41359
 
  esac
41360
 
 
41361
 
 
41362
 
    fi
41363
 
   ;;
41364
 
  esac
41365
 
 
41366
 
 
41367
 
    ;;
41368
 
    -L*)
41369
 
      ac_ii=`echo $ac_i|cut -c 3-`
41370
 
      
41371
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41372
 
    
41373
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41374
 
    ai_p=$ac_ii
41375
 
  else
41376
 
    
41377
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
41378
 
    
41379
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41380
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
41381
 
  fi
41382
 
 
41383
 
    
41384
 
      if test "$ext_shared" = "yes"; then
41385
 
        LDFLAGS="-L$ai_p $LDFLAGS"
41386
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41387
 
      else
41388
 
        
41389
 
  
41390
 
  
41391
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41392
 
  
41393
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41394
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
41395
 
    eval "LIBPATH$unique=set"
41396
 
    
41397
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41398
 
    LDFLAGS="$LDFLAGS -L$ai_p"
41399
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
41400
 
  
41401
 
  fi
41402
 
 
41403
 
 
41404
 
      fi
41405
 
    
41406
 
  fi
41407
 
 
41408
 
    ;;
41409
 
    esac
41410
 
  done
41411
 
 
41412
 
  { $as_echo "$as_me:$LINENO: checking for curl_multi_strerror in -lcurl" >&5
41413
 
$as_echo_n "checking for curl_multi_strerror in -lcurl... " >&6; }
41414
 
if test "${ac_cv_lib_curl_curl_multi_strerror+set}" = set; then
41415
 
  $as_echo_n "(cached) " >&6
41416
 
else
41417
 
  ac_check_lib_save_LIBS=$LIBS
41418
 
LIBS="-lcurl  $LIBS"
41419
 
cat >conftest.$ac_ext <<_ACEOF
41420
 
/* confdefs.h.  */
41421
 
_ACEOF
41422
 
cat confdefs.h >>conftest.$ac_ext
41423
 
cat >>conftest.$ac_ext <<_ACEOF
41424
 
/* end confdefs.h.  */
41425
 
 
41426
 
/* Override any GCC internal prototype to avoid an error.
41427
 
   Use char because int might match the return type of a GCC
41428
 
   builtin and then its argument prototype would still apply.  */
41429
 
#ifdef __cplusplus
41430
 
extern "C"
41431
 
#endif
41432
 
char curl_multi_strerror ();
41433
 
int
41434
 
main ()
41435
 
{
41436
 
return curl_multi_strerror ();
41437
 
  ;
41438
 
  return 0;
41439
 
}
41440
 
_ACEOF
41441
 
rm -f conftest.$ac_objext conftest$ac_exeext
41442
 
if { (ac_try="$ac_link"
41443
 
case "(($ac_try" in
41444
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41445
 
  *) ac_try_echo=$ac_try;;
41446
 
esac
41447
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41448
 
$as_echo "$ac_try_echo") >&5
41449
 
  (eval "$ac_link") 2>conftest.er1
41450
 
  ac_status=$?
41451
 
  grep -v '^ *+' conftest.er1 >conftest.err
41452
 
  rm -f conftest.er1
41453
 
  cat conftest.err >&5
41454
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41455
 
  (exit $ac_status); } && {
41456
 
         test -z "$ac_c_werror_flag" ||
41457
 
         test ! -s conftest.err
41458
 
       } && test -s conftest$ac_exeext && {
41459
 
         test "$cross_compiling" = yes ||
41460
 
         $as_test_x conftest$ac_exeext
41461
 
       }; then
41462
 
  ac_cv_lib_curl_curl_multi_strerror=yes
41463
 
else
41464
 
  $as_echo "$as_me: failed program was:" >&5
41465
 
sed 's/^/| /' conftest.$ac_ext >&5
41466
 
 
41467
 
        ac_cv_lib_curl_curl_multi_strerror=no
41468
 
fi
41469
 
 
41470
 
rm -rf conftest.dSYM
41471
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41472
 
      conftest$ac_exeext conftest.$ac_ext
41473
 
LIBS=$ac_check_lib_save_LIBS
41474
 
fi
41475
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_multi_strerror" >&5
41476
 
$as_echo "$ac_cv_lib_curl_curl_multi_strerror" >&6; }
41477
 
if test "x$ac_cv_lib_curl_curl_multi_strerror" = x""yes; then
41478
 
  
41479
 
    LDFLAGS=$save_old_LDFLAGS
41480
 
    ext_shared=$save_ext_shared
41481
 
    
41482
 
    
41483
 
cat >>confdefs.h <<\_ACEOF
41484
 
@%:@define HAVE_CURL_MULTI_STRERROR 1
41485
 
_ACEOF
41486
 
 
41487
 
  
41488
 
  
41489
 
else
41490
 
  
41491
 
    LDFLAGS=$save_old_LDFLAGS
41492
 
    ext_shared=$save_ext_shared
41493
 
    unset ac_cv_lib_curl_curl_multi_strerror
41494
 
    
41495
 
  
41496
 
fi
41497
 
 
41498
 
 
41499
 
  if test "$PHP_CURLWRAPPERS" != "no" ; then
41500
 
    
41501
 
cat >>confdefs.h <<\_ACEOF
41502
 
@%:@define PHP_CURL_URL_WRAPPERS 1
41503
 
_ACEOF
41504
 
 
41505
 
  fi
41506
 
 
41507
 
  
41508
 
  ext_builddir=ext/curl
41509
 
  ext_srcdir=$abs_srcdir/ext/curl
41510
 
 
41511
 
  ac_extra=
41512
 
 
41513
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
41514
 
    PHP_CURL_SHARED=no
41515
 
    
41516
 
  
41517
 
  case ext/curl in
41518
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
41519
 
  /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
41520
 
  *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
41521
 
  esac
41522
 
  
41523
 
  
41524
 
 
41525
 
  b_c_pre=$php_c_pre
41526
 
  b_cxx_pre=$php_cxx_pre
41527
 
  b_c_meta=$php_c_meta
41528
 
  b_cxx_meta=$php_cxx_meta
41529
 
  b_c_post=$php_c_post
41530
 
  b_cxx_post=$php_cxx_post
41531
 
  b_lo=$php_lo
41532
 
 
41533
 
 
41534
 
  old_IFS=$IFS
41535
 
  for ac_src in interface.c multi.c streams.c; do
41536
 
  
41537
 
      IFS=.
41538
 
      set $ac_src
41539
 
      ac_obj=$1
41540
 
      IFS=$old_IFS
41541
 
      
41542
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
41543
 
 
41544
 
      case $ac_src in
41545
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41546
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41547
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41548
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
41549
 
      esac
41550
 
 
41551
 
    cat >>Makefile.objects<<EOF
41552
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
41553
 
        $ac_comp
41554
 
EOF
41555
 
  done
41556
 
 
41557
 
 
41558
 
    EXT_STATIC="$EXT_STATIC curl"
41559
 
    if test "$ext_shared" != "nocli"; then
41560
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
41561
 
    fi
41562
 
  else
41563
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
41564
 
      PHP_CURL_SHARED=yes
41565
 
      
41566
 
  case ext/curl in
41567
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
41568
 
  /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
41569
 
  *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
41570
 
  esac
41571
 
  
41572
 
  
41573
 
 
41574
 
  b_c_pre=$shared_c_pre
41575
 
  b_cxx_pre=$shared_cxx_pre
41576
 
  b_c_meta=$shared_c_meta
41577
 
  b_cxx_meta=$shared_cxx_meta
41578
 
  b_c_post=$shared_c_post
41579
 
  b_cxx_post=$shared_cxx_post
41580
 
  b_lo=$shared_lo
41581
 
 
41582
 
 
41583
 
  old_IFS=$IFS
41584
 
  for ac_src in interface.c multi.c streams.c; do
41585
 
  
41586
 
      IFS=.
41587
 
      set $ac_src
41588
 
      ac_obj=$1
41589
 
      IFS=$old_IFS
41590
 
      
41591
 
      shared_objects_curl="$shared_objects_curl $ac_bdir$ac_obj.lo"
41592
 
 
41593
 
      case $ac_src in
41594
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41595
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41596
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41597
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
41598
 
      esac
41599
 
 
41600
 
    cat >>Makefile.objects<<EOF
41601
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
41602
 
        $ac_comp
41603
 
EOF
41604
 
  done
41605
 
 
41606
 
      case $host_alias in
41607
 
        *netware*)
41608
 
          
41609
 
  install_modules="install-modules"
41610
 
 
41611
 
  case $host_alias in
41612
 
    *aix*)
41613
 
      suffix=so
41614
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpcurl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(PHPCURL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpcurl.so '$ext_builddir'/phpcurl.so'
41615
 
      ;;
41616
 
    *netware*)
41617
 
      suffix=nlm
41618
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) -L$(top_builddir)/netware -lphp5lib $(CURL_SHARED_LIBADD)'
41619
 
      ;;
41620
 
    *)
41621
 
      suffix=la
41622
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(PHPCURL_SHARED_LIBADD)'
41623
 
      ;;
41624
 
  esac
41625
 
 
41626
 
  if test "x" = "xyes"; then
41627
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcurl.$suffix"
41628
 
  else
41629
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcurl.$suffix"
41630
 
  fi
41631
 
  
41632
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
41633
 
 
41634
 
  cat >>Makefile.objects<<EOF
41635
 
\$(phplibdir)/phpcurl.$suffix: $ext_builddir/phpcurl.$suffix
41636
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpcurl.$suffix \$(phplibdir)
41637
 
 
41638
 
$ext_builddir/phpcurl.$suffix: \$(shared_objects_curl) \$(PHPCURL_SHARED_DEPENDENCIES)
41639
 
        $link_cmd
41640
 
 
41641
 
EOF
41642
 
 
41643
 
          ;;
41644
 
        *)
41645
 
          
41646
 
  install_modules="install-modules"
41647
 
 
41648
 
  case $host_alias in
41649
 
    *aix*)
41650
 
      suffix=so
41651
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/curl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(CURL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/curl.so '$ext_builddir'/curl.so'
41652
 
      ;;
41653
 
    *netware*)
41654
 
      suffix=nlm
41655
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) -L$(top_builddir)/netware -lphp5lib $(L_SHARED_LIBADD)'
41656
 
      ;;
41657
 
    *)
41658
 
      suffix=la
41659
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_curl) $(CURL_SHARED_LIBADD)'
41660
 
      ;;
41661
 
  esac
41662
 
 
41663
 
  if test "x" = "xyes"; then
41664
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/curl.$suffix"
41665
 
  else
41666
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/curl.$suffix"
41667
 
  fi
41668
 
  
41669
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
41670
 
 
41671
 
  cat >>Makefile.objects<<EOF
41672
 
\$(phplibdir)/curl.$suffix: $ext_builddir/curl.$suffix
41673
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/curl.$suffix \$(phplibdir)
41674
 
 
41675
 
$ext_builddir/curl.$suffix: \$(shared_objects_curl) \$(CURL_SHARED_DEPENDENCIES)
41676
 
        $link_cmd
41677
 
 
41678
 
EOF
41679
 
 
41680
 
          ;;
41681
 
      esac
41682
 
      
41683
 
cat >>confdefs.h <<_ACEOF
41684
 
@%:@define COMPILE_DL_CURL 1
41685
 
_ACEOF
41686
 
 
41687
 
    fi
41688
 
  fi
41689
 
 
41690
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
41691
 
    PHP_CURL_SHARED=no
41692
 
    case "$PHP_SAPI" in
41693
 
      cgi|embed)
41694
 
        
41695
 
  
41696
 
  case ext/curl in
41697
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
41698
 
  /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
41699
 
  *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
41700
 
  esac
41701
 
  
41702
 
  
41703
 
 
41704
 
  b_c_pre=$php_c_pre
41705
 
  b_cxx_pre=$php_cxx_pre
41706
 
  b_c_meta=$php_c_meta
41707
 
  b_cxx_meta=$php_cxx_meta
41708
 
  b_c_post=$php_c_post
41709
 
  b_cxx_post=$php_cxx_post
41710
 
  b_lo=$php_lo
41711
 
 
41712
 
 
41713
 
  old_IFS=$IFS
41714
 
  for ac_src in interface.c multi.c streams.c; do
41715
 
  
41716
 
      IFS=.
41717
 
      set $ac_src
41718
 
      ac_obj=$1
41719
 
      IFS=$old_IFS
41720
 
      
41721
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
41722
 
 
41723
 
      case $ac_src in
41724
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41725
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41726
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41727
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
41728
 
      esac
41729
 
 
41730
 
    cat >>Makefile.objects<<EOF
41731
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
41732
 
        $ac_comp
41733
 
EOF
41734
 
  done
41735
 
 
41736
 
 
41737
 
        EXT_STATIC="$EXT_STATIC curl"
41738
 
        ;;
41739
 
      *)
41740
 
        
41741
 
  
41742
 
  case ext/curl in
41743
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
41744
 
  /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
41745
 
  *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
41746
 
  esac
41747
 
  
41748
 
  
41749
 
 
41750
 
  b_c_pre=$php_c_pre
41751
 
  b_cxx_pre=$php_cxx_pre
41752
 
  b_c_meta=$php_c_meta
41753
 
  b_cxx_meta=$php_cxx_meta
41754
 
  b_c_post=$php_c_post
41755
 
  b_cxx_post=$php_cxx_post
41756
 
  b_lo=$php_lo
41757
 
 
41758
 
 
41759
 
  old_IFS=$IFS
41760
 
  for ac_src in interface.c multi.c streams.c; do
41761
 
  
41762
 
      IFS=.
41763
 
      set $ac_src
41764
 
      ac_obj=$1
41765
 
      IFS=$old_IFS
41766
 
      
41767
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
41768
 
 
41769
 
      case $ac_src in
41770
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41771
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41772
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
41773
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
41774
 
      esac
41775
 
 
41776
 
    cat >>Makefile.objects<<EOF
41777
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
41778
 
        $ac_comp
41779
 
EOF
41780
 
  done
41781
 
 
41782
 
 
41783
 
        ;;
41784
 
    esac
41785
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
41786
 
  fi
41787
 
  
41788
 
  
41789
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
41790
 
  
41791
 
 
41792
 
 
41793
 
  if test "$ext_builddir" = "."; then
41794
 
    PHP_PECL_EXTENSION=curl
41795
 
    
41796
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
41797
 
 
41798
 
  fi
41799
 
 
41800
 
  
41801
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CURL_SHARED_LIBADD"
41802
 
 
41803
 
fi
41804
 
 
41805
 
 
41806
 
 
41807
 
 
41808
 
 
41809
 
 
41810
 
 
41811
 
 
41812
 
 
41813
 
 
41814
 
 
41815
 
 
41816
 
 
41817
 
 
41818
 
 
41819
 
 
41820
 
 
41821
 
php_enable_dba=no
41822
 
 
41823
 
 
41824
 
@%:@ Check whether --enable-dba was given.
41825
 
if test "${enable_dba+set}" = set; then
41826
 
  enableval=$enable_dba; PHP_DBA=$enableval
41827
 
else
41828
 
  
41829
 
  PHP_DBA=no
41830
 
  test "$PHP_ENABLE_ALL" && PHP_DBA=$PHP_ENABLE_ALL
41831
 
 
41832
 
fi
41833
 
 
41834
 
 
41835
 
 
41836
 
ext_output="yes, shared"
41837
 
ext_shared=yes
41838
 
case $PHP_DBA in
41839
 
shared,*)
41840
 
  PHP_DBA=`echo "$PHP_DBA"|$SED 's/^shared,//'`
41841
 
  ;;
41842
 
shared)
41843
 
  PHP_DBA=yes
41844
 
  ;;
41845
 
no)
41846
 
  ext_output=no
41847
 
  ext_shared=no
41848
 
  ;;
41849
 
*)
41850
 
  ext_output=yes
41851
 
  ext_shared=no
41852
 
  ;;
41853
 
esac
41854
 
 
41855
 
 
41856
 
 
41857
 
 
41858
 
 
41859
 
 
41860
 
 
41861
 
 
41862
 
 
41863
 
php_with_qdbm=no
41864
 
 
41865
 
 
41866
 
 
41867
 
@%:@ Check whether --with-qdbm was given.
41868
 
if test "${with_qdbm+set}" = set; then
41869
 
  withval=$with_qdbm; PHP_QDBM=$withval
41870
 
else
41871
 
  
41872
 
  PHP_QDBM=no
41873
 
  
41874
 
 
41875
 
fi
41876
 
 
41877
 
 
41878
 
ext_output=$PHP_QDBM
41879
 
 
41880
 
 
41881
 
 
41882
 
 
41883
 
 
41884
 
 
41885
 
php_with_gdbm=no
41886
 
 
41887
 
 
41888
 
 
41889
 
@%:@ Check whether --with-gdbm was given.
41890
 
if test "${with_gdbm+set}" = set; then
41891
 
  withval=$with_gdbm; PHP_GDBM=$withval
41892
 
else
41893
 
  
41894
 
  PHP_GDBM=no
41895
 
  
41896
 
 
41897
 
fi
41898
 
 
41899
 
 
41900
 
ext_output=$PHP_GDBM
41901
 
 
41902
 
 
41903
 
 
41904
 
 
41905
 
 
41906
 
 
41907
 
php_with_ndbm=no
41908
 
 
41909
 
 
41910
 
 
41911
 
@%:@ Check whether --with-ndbm was given.
41912
 
if test "${with_ndbm+set}" = set; then
41913
 
  withval=$with_ndbm; PHP_NDBM=$withval
41914
 
else
41915
 
  
41916
 
  PHP_NDBM=no
41917
 
  
41918
 
 
41919
 
fi
41920
 
 
41921
 
 
41922
 
ext_output=$PHP_NDBM
41923
 
 
41924
 
 
41925
 
 
41926
 
 
41927
 
 
41928
 
 
41929
 
php_with_db4=no
41930
 
 
41931
 
 
41932
 
 
41933
 
@%:@ Check whether --with-db4 was given.
41934
 
if test "${with_db4+set}" = set; then
41935
 
  withval=$with_db4; PHP_DB4=$withval
41936
 
else
41937
 
  
41938
 
  PHP_DB4=no
41939
 
  
41940
 
 
41941
 
fi
41942
 
 
41943
 
 
41944
 
ext_output=$PHP_DB4
41945
 
 
41946
 
 
41947
 
 
41948
 
 
41949
 
 
41950
 
 
41951
 
php_with_db3=no
41952
 
 
41953
 
 
41954
 
 
41955
 
@%:@ Check whether --with-db3 was given.
41956
 
if test "${with_db3+set}" = set; then
41957
 
  withval=$with_db3; PHP_DB3=$withval
41958
 
else
41959
 
  
41960
 
  PHP_DB3=no
41961
 
  
41962
 
 
41963
 
fi
41964
 
 
41965
 
 
41966
 
ext_output=$PHP_DB3
41967
 
 
41968
 
 
41969
 
 
41970
 
 
41971
 
 
41972
 
 
41973
 
php_with_db2=no
41974
 
 
41975
 
 
41976
 
 
41977
 
@%:@ Check whether --with-db2 was given.
41978
 
if test "${with_db2+set}" = set; then
41979
 
  withval=$with_db2; PHP_DB2=$withval
41980
 
else
41981
 
  
41982
 
  PHP_DB2=no
41983
 
  
41984
 
 
41985
 
fi
41986
 
 
41987
 
 
41988
 
ext_output=$PHP_DB2
41989
 
 
41990
 
 
41991
 
 
41992
 
 
41993
 
 
41994
 
 
41995
 
php_with_db1=no
41996
 
 
41997
 
 
41998
 
 
41999
 
@%:@ Check whether --with-db1 was given.
42000
 
if test "${with_db1+set}" = set; then
42001
 
  withval=$with_db1; PHP_DB1=$withval
42002
 
else
42003
 
  
42004
 
  PHP_DB1=no
42005
 
  
42006
 
 
42007
 
fi
42008
 
 
42009
 
 
42010
 
ext_output=$PHP_DB1
42011
 
 
42012
 
 
42013
 
 
42014
 
 
42015
 
 
42016
 
 
42017
 
php_with_dbm=no
42018
 
 
42019
 
 
42020
 
 
42021
 
@%:@ Check whether --with-dbm was given.
42022
 
if test "${with_dbm+set}" = set; then
42023
 
  withval=$with_dbm; PHP_DBM=$withval
42024
 
else
42025
 
  
42026
 
  PHP_DBM=no
42027
 
  
42028
 
 
42029
 
fi
42030
 
 
42031
 
 
42032
 
ext_output=$PHP_DBM
42033
 
 
42034
 
 
42035
 
 
42036
 
 
42037
 
 
42038
 
 
42039
 
# QDBM
42040
 
if test "$PHP_QDBM" != "no"; then
42041
 
  
42042
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
42043
 
 
42044
 
  for i in $PHP_QDBM /usr/local /usr; do
42045
 
    if test -f "$i/include/depot.h"; then
42046
 
      THIS_PREFIX=$i
42047
 
      THIS_INCLUDE=$i/include/depot.h
42048
 
      break
42049
 
    fi
42050
 
  done
42051
 
 
42052
 
  if test -n "$THIS_INCLUDE"; then
42053
 
    for LIB in qdbm; do
42054
 
      
42055
 
  save_old_LDFLAGS=$LDFLAGS
42056
 
  ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
42057
 
  
42058
 
  save_ext_shared=$ext_shared
42059
 
  ext_shared=yes
42060
 
  
42061
 
  for ac_i in $ac_stuff; do
42062
 
    case $ac_i in
42063
 
    -pthread)
42064
 
      if test "$ext_shared" = "yes"; then
42065
 
        LDFLAGS="$LDFLAGS -pthread"
42066
 
      else
42067
 
        
42068
 
  
42069
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42070
 
  
42071
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42072
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42073
 
    eval "EXTRA_LDFLAGS$unique=set"
42074
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42075
 
  fi
42076
 
 
42077
 
      fi
42078
 
    ;;
42079
 
    -l*)
42080
 
      ac_ii=`echo $ac_i|cut -c 3-`
42081
 
      
42082
 
  
42083
 
  case $ac_ii in
42084
 
  c|c_r|pthread*) ;;
42085
 
  *) 
42086
 
    if test "$ext_shared" = "yes"; then
42087
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
42088
 
    else
42089
 
      
42090
 
  
42091
 
  case $ac_ii in
42092
 
  c|c_r|pthread*) ;;
42093
 
  *) 
42094
 
      LIBS="$LIBS -l$ac_ii" 
42095
 
   ;;
42096
 
  esac
42097
 
 
42098
 
 
42099
 
    fi
42100
 
   ;;
42101
 
  esac
42102
 
 
42103
 
 
42104
 
    ;;
42105
 
    -L*)
42106
 
      ac_ii=`echo $ac_i|cut -c 3-`
42107
 
      
42108
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42109
 
    
42110
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42111
 
    ai_p=$ac_ii
42112
 
  else
42113
 
    
42114
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
42115
 
    
42116
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42117
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
42118
 
  fi
42119
 
 
42120
 
    
42121
 
      if test "$ext_shared" = "yes"; then
42122
 
        LDFLAGS="-L$ai_p $LDFLAGS"
42123
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42124
 
      else
42125
 
        
42126
 
  
42127
 
  
42128
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42129
 
  
42130
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42131
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42132
 
    eval "LIBPATH$unique=set"
42133
 
    
42134
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42135
 
    LDFLAGS="$LDFLAGS -L$ai_p"
42136
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
42137
 
  
42138
 
  fi
42139
 
 
42140
 
 
42141
 
      fi
42142
 
    
42143
 
  fi
42144
 
 
42145
 
    ;;
42146
 
    esac
42147
 
  done
42148
 
 
42149
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh`
42150
 
{ $as_echo "$as_me:$LINENO: checking for dpopen in -l$LIB" >&5
42151
 
$as_echo_n "checking for dpopen in -l$LIB... " >&6; }
42152
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42153
 
  $as_echo_n "(cached) " >&6
42154
 
else
42155
 
  ac_check_lib_save_LIBS=$LIBS
42156
 
LIBS="-l$LIB  $LIBS"
42157
 
cat >conftest.$ac_ext <<_ACEOF
42158
 
/* confdefs.h.  */
42159
 
_ACEOF
42160
 
cat confdefs.h >>conftest.$ac_ext
42161
 
cat >>conftest.$ac_ext <<_ACEOF
42162
 
/* end confdefs.h.  */
42163
 
 
42164
 
/* Override any GCC internal prototype to avoid an error.
42165
 
   Use char because int might match the return type of a GCC
42166
 
   builtin and then its argument prototype would still apply.  */
42167
 
#ifdef __cplusplus
42168
 
extern "C"
42169
 
#endif
42170
 
char dpopen ();
42171
 
int
42172
 
main ()
42173
 
{
42174
 
return dpopen ();
42175
 
  ;
42176
 
  return 0;
42177
 
}
42178
 
_ACEOF
42179
 
rm -f conftest.$ac_objext conftest$ac_exeext
42180
 
if { (ac_try="$ac_link"
42181
 
case "(($ac_try" in
42182
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42183
 
  *) ac_try_echo=$ac_try;;
42184
 
esac
42185
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42186
 
$as_echo "$ac_try_echo") >&5
42187
 
  (eval "$ac_link") 2>conftest.er1
42188
 
  ac_status=$?
42189
 
  grep -v '^ *+' conftest.er1 >conftest.err
42190
 
  rm -f conftest.er1
42191
 
  cat conftest.err >&5
42192
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42193
 
  (exit $ac_status); } && {
42194
 
         test -z "$ac_c_werror_flag" ||
42195
 
         test ! -s conftest.err
42196
 
       } && test -s conftest$ac_exeext && {
42197
 
         test "$cross_compiling" = yes ||
42198
 
         $as_test_x conftest$ac_exeext
42199
 
       }; then
42200
 
  eval "$as_ac_Lib=yes"
42201
 
else
42202
 
  $as_echo "$as_me: failed program was:" >&5
42203
 
sed 's/^/| /' conftest.$ac_ext >&5
42204
 
 
42205
 
        eval "$as_ac_Lib=no"
42206
 
fi
42207
 
 
42208
 
rm -rf conftest.dSYM
42209
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42210
 
      conftest$ac_exeext conftest.$ac_ext
42211
 
LIBS=$ac_check_lib_save_LIBS
42212
 
fi
42213
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
42214
 
                 $as_echo "$as_val"'`
42215
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42216
 
$as_echo "$ac_res" >&6; }
42217
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
42218
 
                 $as_echo "$as_val"'`
42219
 
   if test "x$as_val" = x""yes; then
42220
 
  
42221
 
    LDFLAGS=$save_old_LDFLAGS
42222
 
    ext_shared=$save_ext_shared
42223
 
    
42224
 
        
42225
 
cat >>confdefs.h <<_ACEOF
42226
 
@%:@define QDBM_INCLUDE_FILE "$THIS_INCLUDE"
42227
 
_ACEOF
42228
 
 
42229
 
        
42230
 
cat >>confdefs.h <<\_ACEOF
42231
 
@%:@define DBA_QDBM 1
42232
 
_ACEOF
42233
 
 
42234
 
        THIS_LIBS=$LIB
42235
 
      
42236
 
  
42237
 
else
42238
 
  
42239
 
    LDFLAGS=$save_old_LDFLAGS
42240
 
    ext_shared=$save_ext_shared
42241
 
    unset ac_cv_lib_$LIB_dpopen
42242
 
    
42243
 
  
42244
 
fi
42245
 
 
42246
 
      if test -n "$THIS_LIBS"; then
42247
 
        break
42248
 
      fi
42249
 
    done
42250
 
  fi
42251
 
 
42252
 
  
42253
 
  if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
42254
 
    THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
42255
 
  fi
42256
 
 
42257
 
  
42258
 
  THIS_RESULT=yes
42259
 
  if test -z "$THIS_INCLUDE"; then
42260
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
42261
 
$as_echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
42262
 
   { (exit 1); exit 1; }; }
42263
 
  fi
42264
 
  if test -z "$THIS_LIBS"; then
42265
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
42266
 
$as_echo "$as_me: error: DBA: Could not find necessary library." >&2;}
42267
 
   { (exit 1); exit 1; }; }
42268
 
  fi
42269
 
 
42270
 
  
42271
 
  
42272
 
 
42273
 
  if test "$ext_shared" = "yes"; then
42274
 
    DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
42275
 
    if test -n "$THIS_LFLAGS"; then
42276
 
      
42277
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42278
 
    
42279
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42280
 
    ai_p=$THIS_LFLAGS
42281
 
  else
42282
 
    
42283
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42284
 
    
42285
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42286
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42287
 
  fi
42288
 
 
42289
 
    
42290
 
      if test "$ext_shared" = "yes"; then
42291
 
        DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
42292
 
        test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
42293
 
      else
42294
 
        
42295
 
  
42296
 
  
42297
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42298
 
  
42299
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42300
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42301
 
    eval "LIBPATH$unique=set"
42302
 
    
42303
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42304
 
    LDFLAGS="$LDFLAGS -L$ai_p"
42305
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
42306
 
  
42307
 
  fi
42308
 
 
42309
 
 
42310
 
      fi
42311
 
    
42312
 
  fi
42313
 
 
42314
 
    fi
42315
 
  else
42316
 
    
42317
 
 
42318
 
  if test -n "$THIS_LFLAGS"; then
42319
 
    
42320
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42321
 
    
42322
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42323
 
    ai_p=$THIS_LFLAGS
42324
 
  else
42325
 
    
42326
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42327
 
    
42328
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42329
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42330
 
  fi
42331
 
 
42332
 
    
42333
 
      
42334
 
  
42335
 
  
42336
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42337
 
  
42338
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42339
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42340
 
    eval "LIBPATH$unique=set"
42341
 
    
42342
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42343
 
    LDFLAGS="$LDFLAGS -L$ai_p"
42344
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
42345
 
  
42346
 
  fi
42347
 
 
42348
 
 
42349
 
    
42350
 
  fi
42351
 
 
42352
 
  fi
42353
 
  
42354
 
  
42355
 
  case $THIS_LIBS in
42356
 
  c|c_r|pthread*) ;;
42357
 
  *) 
42358
 
      LIBS="-l$THIS_LIBS $LIBS" 
42359
 
   ;;
42360
 
  esac
42361
 
 
42362
 
 
42363
 
 
42364
 
 
42365
 
  fi
42366
 
 
42367
 
 
42368
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
42369
 
 
42370
 
fi
42371
 
 
42372
 
  THIS_NAME=QDBM
42373
 
  if test -n ""; then
42374
 
    THIS_FULL_NAME=""
42375
 
  else
42376
 
    THIS_FULL_NAME="$THIS_NAME"
42377
 
  fi
42378
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
42379
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
42380
 
  if test -n ""; then
42381
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
42382
 
$as_echo "$as_me: error: " >&2;}
42383
 
   { (exit 1); exit 1; }; }
42384
 
  fi
42385
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
42386
 
    HAVE_DBA=1
42387
 
    eval HAVE_$THIS_NAME=1
42388
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
42389
 
$as_echo "$THIS_RESULT" >&6; }
42390
 
  else
42391
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
42392
 
$as_echo "no" >&6; }
42393
 
  fi
42394
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
42395
 
 
42396
 
 
42397
 
# GDBM
42398
 
if test "$PHP_GDBM" != "no"; then
42399
 
  
42400
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
42401
 
 
42402
 
  if test "$HAVE_QDBM" = "1"; then
42403
 
    
42404
 
  THIS_NAME=GDBM
42405
 
  if test -n "gdbm"; then
42406
 
    THIS_FULL_NAME="gdbm"
42407
 
  else
42408
 
    THIS_FULL_NAME="$THIS_NAME"
42409
 
  fi
42410
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
42411
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
42412
 
  if test -n "You cannot combine --with-gdbm with --with-qdbm"; then
42413
 
    { { $as_echo "$as_me:$LINENO: error: You cannot combine --with-gdbm with --with-qdbm" >&5
42414
 
$as_echo "$as_me: error: You cannot combine --with-gdbm with --with-qdbm" >&2;}
42415
 
   { (exit 1); exit 1; }; }
42416
 
  fi
42417
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
42418
 
    HAVE_DBA=1
42419
 
    eval HAVE_$THIS_NAME=1
42420
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
42421
 
$as_echo "$THIS_RESULT" >&6; }
42422
 
  else
42423
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
42424
 
$as_echo "no" >&6; }
42425
 
  fi
42426
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
42427
 
 
42428
 
  fi
42429
 
  for i in $PHP_GDBM /usr/local /usr; do
42430
 
    if test -f "$i/include/gdbm.h"; then
42431
 
      THIS_PREFIX=$i
42432
 
      THIS_INCLUDE=$i/include/gdbm.h
42433
 
      break
42434
 
    fi
42435
 
  done
42436
 
 
42437
 
  if test -n "$THIS_INCLUDE"; then
42438
 
    
42439
 
  save_old_LDFLAGS=$LDFLAGS
42440
 
  ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
42441
 
  
42442
 
  save_ext_shared=$ext_shared
42443
 
  ext_shared=yes
42444
 
  
42445
 
  for ac_i in $ac_stuff; do
42446
 
    case $ac_i in
42447
 
    -pthread)
42448
 
      if test "$ext_shared" = "yes"; then
42449
 
        LDFLAGS="$LDFLAGS -pthread"
42450
 
      else
42451
 
        
42452
 
  
42453
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42454
 
  
42455
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42456
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42457
 
    eval "EXTRA_LDFLAGS$unique=set"
42458
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42459
 
  fi
42460
 
 
42461
 
      fi
42462
 
    ;;
42463
 
    -l*)
42464
 
      ac_ii=`echo $ac_i|cut -c 3-`
42465
 
      
42466
 
  
42467
 
  case $ac_ii in
42468
 
  c|c_r|pthread*) ;;
42469
 
  *) 
42470
 
    if test "$ext_shared" = "yes"; then
42471
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
42472
 
    else
42473
 
      
42474
 
  
42475
 
  case $ac_ii in
42476
 
  c|c_r|pthread*) ;;
42477
 
  *) 
42478
 
      LIBS="$LIBS -l$ac_ii" 
42479
 
   ;;
42480
 
  esac
42481
 
 
42482
 
 
42483
 
    fi
42484
 
   ;;
42485
 
  esac
42486
 
 
42487
 
 
42488
 
    ;;
42489
 
    -L*)
42490
 
      ac_ii=`echo $ac_i|cut -c 3-`
42491
 
      
42492
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42493
 
    
42494
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42495
 
    ai_p=$ac_ii
42496
 
  else
42497
 
    
42498
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
42499
 
    
42500
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42501
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
42502
 
  fi
42503
 
 
42504
 
    
42505
 
      if test "$ext_shared" = "yes"; then
42506
 
        LDFLAGS="-L$ai_p $LDFLAGS"
42507
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42508
 
      else
42509
 
        
42510
 
  
42511
 
  
42512
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42513
 
  
42514
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42515
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42516
 
    eval "LIBPATH$unique=set"
42517
 
    
42518
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42519
 
    LDFLAGS="$LDFLAGS -L$ai_p"
42520
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
42521
 
  
42522
 
  fi
42523
 
 
42524
 
 
42525
 
      fi
42526
 
    
42527
 
  fi
42528
 
 
42529
 
    ;;
42530
 
    esac
42531
 
  done
42532
 
 
42533
 
  { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
42534
 
$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
42535
 
if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
42536
 
  $as_echo_n "(cached) " >&6
42537
 
else
42538
 
  ac_check_lib_save_LIBS=$LIBS
42539
 
LIBS="-lgdbm  $LIBS"
42540
 
cat >conftest.$ac_ext <<_ACEOF
42541
 
/* confdefs.h.  */
42542
 
_ACEOF
42543
 
cat confdefs.h >>conftest.$ac_ext
42544
 
cat >>conftest.$ac_ext <<_ACEOF
42545
 
/* end confdefs.h.  */
42546
 
 
42547
 
/* Override any GCC internal prototype to avoid an error.
42548
 
   Use char because int might match the return type of a GCC
42549
 
   builtin and then its argument prototype would still apply.  */
42550
 
#ifdef __cplusplus
42551
 
extern "C"
42552
 
#endif
42553
 
char gdbm_open ();
42554
 
int
42555
 
main ()
42556
 
{
42557
 
return gdbm_open ();
42558
 
  ;
42559
 
  return 0;
42560
 
}
42561
 
_ACEOF
42562
 
rm -f conftest.$ac_objext conftest$ac_exeext
42563
 
if { (ac_try="$ac_link"
42564
 
case "(($ac_try" in
42565
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42566
 
  *) ac_try_echo=$ac_try;;
42567
 
esac
42568
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42569
 
$as_echo "$ac_try_echo") >&5
42570
 
  (eval "$ac_link") 2>conftest.er1
42571
 
  ac_status=$?
42572
 
  grep -v '^ *+' conftest.er1 >conftest.err
42573
 
  rm -f conftest.er1
42574
 
  cat conftest.err >&5
42575
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576
 
  (exit $ac_status); } && {
42577
 
         test -z "$ac_c_werror_flag" ||
42578
 
         test ! -s conftest.err
42579
 
       } && test -s conftest$ac_exeext && {
42580
 
         test "$cross_compiling" = yes ||
42581
 
         $as_test_x conftest$ac_exeext
42582
 
       }; then
42583
 
  ac_cv_lib_gdbm_gdbm_open=yes
42584
 
else
42585
 
  $as_echo "$as_me: failed program was:" >&5
42586
 
sed 's/^/| /' conftest.$ac_ext >&5
42587
 
 
42588
 
        ac_cv_lib_gdbm_gdbm_open=no
42589
 
fi
42590
 
 
42591
 
rm -rf conftest.dSYM
42592
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42593
 
      conftest$ac_exeext conftest.$ac_ext
42594
 
LIBS=$ac_check_lib_save_LIBS
42595
 
fi
42596
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
42597
 
$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
42598
 
if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
42599
 
  
42600
 
    LDFLAGS=$save_old_LDFLAGS
42601
 
    ext_shared=$save_ext_shared
42602
 
    
42603
 
      
42604
 
cat >>confdefs.h <<_ACEOF
42605
 
@%:@define GDBM_INCLUDE_FILE "$THIS_INCLUDE"
42606
 
_ACEOF
42607
 
 
42608
 
      
42609
 
cat >>confdefs.h <<\_ACEOF
42610
 
@%:@define DBA_GDBM 1
42611
 
_ACEOF
42612
 
 
42613
 
      THIS_LIBS=gdbm
42614
 
    
42615
 
  
42616
 
else
42617
 
  
42618
 
    LDFLAGS=$save_old_LDFLAGS
42619
 
    ext_shared=$save_ext_shared
42620
 
    unset ac_cv_lib_gdbm_gdbm_open
42621
 
    
42622
 
  
42623
 
fi
42624
 
 
42625
 
  fi
42626
 
    
42627
 
  
42628
 
  if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
42629
 
    THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
42630
 
  fi
42631
 
 
42632
 
  
42633
 
  THIS_RESULT=yes
42634
 
  if test -z "$THIS_INCLUDE"; then
42635
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
42636
 
$as_echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
42637
 
   { (exit 1); exit 1; }; }
42638
 
  fi
42639
 
  if test -z "$THIS_LIBS"; then
42640
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
42641
 
$as_echo "$as_me: error: DBA: Could not find necessary library." >&2;}
42642
 
   { (exit 1); exit 1; }; }
42643
 
  fi
42644
 
 
42645
 
  
42646
 
  
42647
 
 
42648
 
  if test "$ext_shared" = "yes"; then
42649
 
    DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
42650
 
    if test -n "$THIS_LFLAGS"; then
42651
 
      
42652
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42653
 
    
42654
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42655
 
    ai_p=$THIS_LFLAGS
42656
 
  else
42657
 
    
42658
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42659
 
    
42660
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42661
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42662
 
  fi
42663
 
 
42664
 
    
42665
 
      if test "$ext_shared" = "yes"; then
42666
 
        DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
42667
 
        test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
42668
 
      else
42669
 
        
42670
 
  
42671
 
  
42672
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42673
 
  
42674
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42675
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42676
 
    eval "LIBPATH$unique=set"
42677
 
    
42678
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42679
 
    LDFLAGS="$LDFLAGS -L$ai_p"
42680
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
42681
 
  
42682
 
  fi
42683
 
 
42684
 
 
42685
 
      fi
42686
 
    
42687
 
  fi
42688
 
 
42689
 
    fi
42690
 
  else
42691
 
    
42692
 
 
42693
 
  if test -n "$THIS_LFLAGS"; then
42694
 
    
42695
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
42696
 
    
42697
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
42698
 
    ai_p=$THIS_LFLAGS
42699
 
  else
42700
 
    
42701
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
42702
 
    
42703
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42704
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
42705
 
  fi
42706
 
 
42707
 
    
42708
 
      
42709
 
  
42710
 
  
42711
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42712
 
  
42713
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42714
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42715
 
    eval "LIBPATH$unique=set"
42716
 
    
42717
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42718
 
    LDFLAGS="$LDFLAGS -L$ai_p"
42719
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
42720
 
  
42721
 
  fi
42722
 
 
42723
 
 
42724
 
    
42725
 
  fi
42726
 
 
42727
 
  fi
42728
 
  
42729
 
  
42730
 
  case $THIS_LIBS in
42731
 
  c|c_r|pthread*) ;;
42732
 
  *) 
42733
 
      LIBS="-l$THIS_LIBS $LIBS" 
42734
 
   ;;
42735
 
  esac
42736
 
 
42737
 
 
42738
 
 
42739
 
 
42740
 
  fi
42741
 
 
42742
 
 
42743
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
42744
 
 
42745
 
fi
42746
 
 
42747
 
  THIS_NAME=GDBM
42748
 
  if test -n ""; then
42749
 
    THIS_FULL_NAME=""
42750
 
  else
42751
 
    THIS_FULL_NAME="$THIS_NAME"
42752
 
  fi
42753
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
42754
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
42755
 
  if test -n ""; then
42756
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
42757
 
$as_echo "$as_me: error: " >&2;}
42758
 
   { (exit 1); exit 1; }; }
42759
 
  fi
42760
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
42761
 
    HAVE_DBA=1
42762
 
    eval HAVE_$THIS_NAME=1
42763
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
42764
 
$as_echo "$THIS_RESULT" >&6; }
42765
 
  else
42766
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
42767
 
$as_echo "no" >&6; }
42768
 
  fi
42769
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
42770
 
 
42771
 
 
42772
 
# NDBM
42773
 
if test "$PHP_NDBM" != "no"; then
42774
 
  
42775
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
42776
 
 
42777
 
  for i in $PHP_NDBM /usr/local /usr; do
42778
 
    if test -f "$i/include/ndbm.h"; then
42779
 
      THIS_PREFIX=$i
42780
 
      THIS_INCLUDE=$i/include/ndbm.h
42781
 
      break
42782
 
    elif test -f "$i/include/db1/ndbm.h"; then
42783
 
      THIS_PREFIX=$i
42784
 
      THIS_INCLUDE=$i/include/db1/ndbm.h
42785
 
      break
42786
 
    fi
42787
 
  done
42788
 
  
42789
 
  if test -n "$THIS_INCLUDE"; then
42790
 
    for LIB in ndbm db1 c; do
42791
 
      
42792
 
  save_old_LDFLAGS=$LDFLAGS
42793
 
  ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
42794
 
  
42795
 
  save_ext_shared=$ext_shared
42796
 
  ext_shared=yes
42797
 
  
42798
 
  for ac_i in $ac_stuff; do
42799
 
    case $ac_i in
42800
 
    -pthread)
42801
 
      if test "$ext_shared" = "yes"; then
42802
 
        LDFLAGS="$LDFLAGS -pthread"
42803
 
      else
42804
 
        
42805
 
  
42806
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42807
 
  
42808
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42809
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42810
 
    eval "EXTRA_LDFLAGS$unique=set"
42811
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42812
 
  fi
42813
 
 
42814
 
      fi
42815
 
    ;;
42816
 
    -l*)
42817
 
      ac_ii=`echo $ac_i|cut -c 3-`
42818
 
      
42819
 
  
42820
 
  case $ac_ii in
42821
 
  c|c_r|pthread*) ;;
42822
 
  *) 
42823
 
    if test "$ext_shared" = "yes"; then
42824
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
42825
 
    else
42826
 
      
42827
 
  
42828
 
  case $ac_ii in
42829
 
  c|c_r|pthread*) ;;
42830
 
  *) 
42831
 
      LIBS="$LIBS -l$ac_ii" 
42832
 
   ;;
42833
 
  esac
42834
 
 
42835
 
 
42836
 
    fi
42837
 
   ;;
42838
 
  esac
42839
 
 
42840
 
 
42841
 
    ;;
42842
 
    -L*)
42843
 
      ac_ii=`echo $ac_i|cut -c 3-`
42844
 
      
42845
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42846
 
    
42847
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42848
 
    ai_p=$ac_ii
42849
 
  else
42850
 
    
42851
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
42852
 
    
42853
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42854
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
42855
 
  fi
42856
 
 
42857
 
    
42858
 
      if test "$ext_shared" = "yes"; then
42859
 
        LDFLAGS="-L$ai_p $LDFLAGS"
42860
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42861
 
      else
42862
 
        
42863
 
  
42864
 
  
42865
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42866
 
  
42867
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42868
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
42869
 
    eval "LIBPATH$unique=set"
42870
 
    
42871
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42872
 
    LDFLAGS="$LDFLAGS -L$ai_p"
42873
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
42874
 
  
42875
 
  fi
42876
 
 
42877
 
 
42878
 
      fi
42879
 
    
42880
 
  fi
42881
 
 
42882
 
    ;;
42883
 
    esac
42884
 
  done
42885
 
 
42886
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh`
42887
 
{ $as_echo "$as_me:$LINENO: checking for dbm_open in -l$LIB" >&5
42888
 
$as_echo_n "checking for dbm_open in -l$LIB... " >&6; }
42889
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
42890
 
  $as_echo_n "(cached) " >&6
42891
 
else
42892
 
  ac_check_lib_save_LIBS=$LIBS
42893
 
LIBS="-l$LIB  $LIBS"
42894
 
cat >conftest.$ac_ext <<_ACEOF
42895
 
/* confdefs.h.  */
42896
 
_ACEOF
42897
 
cat confdefs.h >>conftest.$ac_ext
42898
 
cat >>conftest.$ac_ext <<_ACEOF
42899
 
/* end confdefs.h.  */
42900
 
 
42901
 
/* Override any GCC internal prototype to avoid an error.
42902
 
   Use char because int might match the return type of a GCC
42903
 
   builtin and then its argument prototype would still apply.  */
42904
 
#ifdef __cplusplus
42905
 
extern "C"
42906
 
#endif
42907
 
char dbm_open ();
42908
 
int
42909
 
main ()
42910
 
{
42911
 
return dbm_open ();
42912
 
  ;
42913
 
  return 0;
42914
 
}
42915
 
_ACEOF
42916
 
rm -f conftest.$ac_objext conftest$ac_exeext
42917
 
if { (ac_try="$ac_link"
42918
 
case "(($ac_try" in
42919
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42920
 
  *) ac_try_echo=$ac_try;;
42921
 
esac
42922
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42923
 
$as_echo "$ac_try_echo") >&5
42924
 
  (eval "$ac_link") 2>conftest.er1
42925
 
  ac_status=$?
42926
 
  grep -v '^ *+' conftest.er1 >conftest.err
42927
 
  rm -f conftest.er1
42928
 
  cat conftest.err >&5
42929
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42930
 
  (exit $ac_status); } && {
42931
 
         test -z "$ac_c_werror_flag" ||
42932
 
         test ! -s conftest.err
42933
 
       } && test -s conftest$ac_exeext && {
42934
 
         test "$cross_compiling" = yes ||
42935
 
         $as_test_x conftest$ac_exeext
42936
 
       }; then
42937
 
  eval "$as_ac_Lib=yes"
42938
 
else
42939
 
  $as_echo "$as_me: failed program was:" >&5
42940
 
sed 's/^/| /' conftest.$ac_ext >&5
42941
 
 
42942
 
        eval "$as_ac_Lib=no"
42943
 
fi
42944
 
 
42945
 
rm -rf conftest.dSYM
42946
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42947
 
      conftest$ac_exeext conftest.$ac_ext
42948
 
LIBS=$ac_check_lib_save_LIBS
42949
 
fi
42950
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
42951
 
                 $as_echo "$as_val"'`
42952
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42953
 
$as_echo "$ac_res" >&6; }
42954
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
42955
 
                 $as_echo "$as_val"'`
42956
 
   if test "x$as_val" = x""yes; then
42957
 
  
42958
 
    LDFLAGS=$save_old_LDFLAGS
42959
 
    ext_shared=$save_ext_shared
42960
 
    
42961
 
        
42962
 
cat >>confdefs.h <<_ACEOF
42963
 
@%:@define NDBM_INCLUDE_FILE "$THIS_INCLUDE"
42964
 
_ACEOF
42965
 
 
42966
 
        
42967
 
cat >>confdefs.h <<\_ACEOF
42968
 
@%:@define DBA_NDBM 1
42969
 
_ACEOF
42970
 
 
42971
 
        THIS_LIBS=$LIB
42972
 
      
42973
 
  
42974
 
else
42975
 
  
42976
 
    LDFLAGS=$save_old_LDFLAGS
42977
 
    ext_shared=$save_ext_shared
42978
 
    unset ac_cv_lib_$LIB_dbm_open
42979
 
    
42980
 
  
42981
 
fi
42982
 
 
42983
 
      if test -n "$THIS_LIBS"; then
42984
 
        break
42985
 
      fi
42986
 
    done
42987
 
  fi
42988
 
 
42989
 
  
42990
 
  if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
42991
 
    THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
42992
 
  fi
42993
 
 
42994
 
  
42995
 
  THIS_RESULT=yes
42996
 
  if test -z "$THIS_INCLUDE"; then
42997
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
42998
 
$as_echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
42999
 
   { (exit 1); exit 1; }; }
43000
 
  fi
43001
 
  if test -z "$THIS_LIBS"; then
43002
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
43003
 
$as_echo "$as_me: error: DBA: Could not find necessary library." >&2;}
43004
 
   { (exit 1); exit 1; }; }
43005
 
  fi
43006
 
 
43007
 
  
43008
 
  
43009
 
 
43010
 
  if test "$ext_shared" = "yes"; then
43011
 
    DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
43012
 
    if test -n "$THIS_LFLAGS"; then
43013
 
      
43014
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43015
 
    
43016
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43017
 
    ai_p=$THIS_LFLAGS
43018
 
  else
43019
 
    
43020
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43021
 
    
43022
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43023
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43024
 
  fi
43025
 
 
43026
 
    
43027
 
      if test "$ext_shared" = "yes"; then
43028
 
        DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
43029
 
        test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
43030
 
      else
43031
 
        
43032
 
  
43033
 
  
43034
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43035
 
  
43036
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43037
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
43038
 
    eval "LIBPATH$unique=set"
43039
 
    
43040
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43041
 
    LDFLAGS="$LDFLAGS -L$ai_p"
43042
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
43043
 
  
43044
 
  fi
43045
 
 
43046
 
 
43047
 
      fi
43048
 
    
43049
 
  fi
43050
 
 
43051
 
    fi
43052
 
  else
43053
 
    
43054
 
 
43055
 
  if test -n "$THIS_LFLAGS"; then
43056
 
    
43057
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43058
 
    
43059
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43060
 
    ai_p=$THIS_LFLAGS
43061
 
  else
43062
 
    
43063
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43064
 
    
43065
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43066
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43067
 
  fi
43068
 
 
43069
 
    
43070
 
      
43071
 
  
43072
 
  
43073
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43074
 
  
43075
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43076
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
43077
 
    eval "LIBPATH$unique=set"
43078
 
    
43079
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43080
 
    LDFLAGS="$LDFLAGS -L$ai_p"
43081
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
43082
 
  
43083
 
  fi
43084
 
 
43085
 
 
43086
 
    
43087
 
  fi
43088
 
 
43089
 
  fi
43090
 
  
43091
 
  
43092
 
  case $THIS_LIBS in
43093
 
  c|c_r|pthread*) ;;
43094
 
  *) 
43095
 
      LIBS="-l$THIS_LIBS $LIBS" 
43096
 
   ;;
43097
 
  esac
43098
 
 
43099
 
 
43100
 
 
43101
 
 
43102
 
  fi
43103
 
 
43104
 
 
43105
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
43106
 
 
43107
 
fi
43108
 
 
43109
 
  THIS_NAME=NDBM
43110
 
  if test -n ""; then
43111
 
    THIS_FULL_NAME=""
43112
 
  else
43113
 
    THIS_FULL_NAME="$THIS_NAME"
43114
 
  fi
43115
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
43116
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
43117
 
  if test -n ""; then
43118
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
43119
 
$as_echo "$as_me: error: " >&2;}
43120
 
   { (exit 1); exit 1; }; }
43121
 
  fi
43122
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43123
 
    HAVE_DBA=1
43124
 
    eval HAVE_$THIS_NAME=1
43125
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
43126
 
$as_echo "$THIS_RESULT" >&6; }
43127
 
  else
43128
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
43129
 
$as_echo "no" >&6; }
43130
 
  fi
43131
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43132
 
 
43133
 
 
43134
 
 
43135
 
 
43136
 
# DB4
43137
 
if test "$PHP_DB4" != "no"; then
43138
 
  
43139
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
43140
 
 
43141
 
  dbdp4="/usr/local/BerkeleyDB.4."
43142
 
  dbdp5="/usr/local/BerkeleyDB.5."
43143
 
  for i in $PHP_DB4 ${dbdp5}1 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do
43144
 
    if test -f "$i/db5/db.h"; then
43145
 
      THIS_PREFIX=$i
43146
 
      THIS_INCLUDE=$i/db5/db.h
43147
 
      break
43148
 
    elif test -f "$i/db4/db.h"; then
43149
 
      THIS_PREFIX=$i
43150
 
      THIS_INCLUDE=$i/db4/db.h
43151
 
      break
43152
 
    elif test -f "$i/include/db5.1/db.h"; then
43153
 
      THIS_PREFIX=$i
43154
 
      THIS_INCLUDE=$i/include/db5.1/db.h
43155
 
      break
43156
 
    elif test -f "$i/include/db5.0/db.h"; then
43157
 
      THIS_PREFIX=$i
43158
 
      THIS_INCLUDE=$i/include/db5.0/db.h
43159
 
      break
43160
 
    elif test -f "$i/include/db4.8/db.h"; then
43161
 
      THIS_PREFIX=$i
43162
 
      THIS_INCLUDE=$i/include/db4.8/db.h
43163
 
      break
43164
 
    elif test -f "$i/include/db4.7/db.h"; then
43165
 
      THIS_PREFIX=$i
43166
 
      THIS_INCLUDE=$i/include/db4.7/db.h
43167
 
      break
43168
 
    elif test -f "$i/include/db4.6/db.h"; then
43169
 
      THIS_PREFIX=$i
43170
 
      THIS_INCLUDE=$i/include/db4.6/db.h
43171
 
      break
43172
 
    elif test -f "$i/include/db4.5/db.h"; then
43173
 
      THIS_PREFIX=$i
43174
 
      THIS_INCLUDE=$i/include/db4.5/db.h
43175
 
      break
43176
 
    elif test -f "$i/include/db4/db.h"; then
43177
 
      THIS_PREFIX=$i
43178
 
      THIS_INCLUDE=$i/include/db4/db.h
43179
 
      break
43180
 
    elif test -f "$i/include/db/db4.h"; then
43181
 
      THIS_PREFIX=$i
43182
 
      THIS_INCLUDE=$i/include/db/db4.h
43183
 
      break
43184
 
    elif test -f "$i/include/db4.h"; then
43185
 
      THIS_PREFIX=$i
43186
 
      THIS_INCLUDE=$i/include/db4.h
43187
 
      break
43188
 
    elif test -f "$i/include/db.h"; then
43189
 
      THIS_PREFIX=$i
43190
 
      THIS_INCLUDE=$i/include/db.h
43191
 
      break
43192
 
    fi
43193
 
  done
43194
 
  
43195
 
  if test -z "$THIS_INCLUDE"; then
43196
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
43197
 
$as_echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
43198
 
   { (exit 1); exit 1; }; }
43199
 
  fi
43200
 
  for LIB in db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do
43201
 
    if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
43202
 
      lib_found="";
43203
 
      
43204
 
  old_LDFLAGS=$LDFLAGS
43205
 
  LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
43206
 
  old_LIBS=$LIBS
43207
 
  LIBS="-l$LIB $LIBS"
43208
 
  
43209
 
        cat >conftest.$ac_ext <<_ACEOF
43210
 
/* confdefs.h.  */
43211
 
_ACEOF
43212
 
cat confdefs.h >>conftest.$ac_ext
43213
 
cat >>conftest.$ac_ext <<_ACEOF
43214
 
/* end confdefs.h.  */
43215
 
 
43216
 
#include "$THIS_INCLUDE"
43217
 
        
43218
 
int
43219
 
main ()
43220
 
{
43221
 
 
43222
 
          (void)db_create((DB**)0, (DB_ENV*)0, 0);
43223
 
        
43224
 
  ;
43225
 
  return 0;
43226
 
}
43227
 
_ACEOF
43228
 
rm -f conftest.$ac_objext conftest$ac_exeext
43229
 
if { (ac_try="$ac_link"
43230
 
case "(($ac_try" in
43231
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43232
 
  *) ac_try_echo=$ac_try;;
43233
 
esac
43234
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43235
 
$as_echo "$ac_try_echo") >&5
43236
 
  (eval "$ac_link") 2>conftest.er1
43237
 
  ac_status=$?
43238
 
  grep -v '^ *+' conftest.er1 >conftest.err
43239
 
  rm -f conftest.er1
43240
 
  cat conftest.err >&5
43241
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43242
 
  (exit $ac_status); } && {
43243
 
         test -z "$ac_c_werror_flag" ||
43244
 
         test ! -s conftest.err
43245
 
       } && test -s conftest$ac_exeext && {
43246
 
         test "$cross_compiling" = yes ||
43247
 
         $as_test_x conftest$ac_exeext
43248
 
       }; then
43249
 
  
43250
 
          cat >conftest.$ac_ext <<_ACEOF
43251
 
/* confdefs.h.  */
43252
 
_ACEOF
43253
 
cat confdefs.h >>conftest.$ac_ext
43254
 
cat >>conftest.$ac_ext <<_ACEOF
43255
 
/* end confdefs.h.  */
43256
 
 
43257
 
#include "$THIS_INCLUDE"
43258
 
#if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5)
43259
 
            yes
43260
 
#endif
43261
 
          
43262
 
_ACEOF
43263
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43264
 
  $EGREP "yes" >/dev/null 2>&1; then
43265
 
  
43266
 
            THIS_LIBS=$LIB
43267
 
            lib_found=1
43268
 
          
43269
 
fi
43270
 
rm -f conftest*
43271
 
 
43272
 
        
43273
 
else
43274
 
  $as_echo "$as_me: failed program was:" >&5
43275
 
sed 's/^/| /' conftest.$ac_ext >&5
43276
 
 
43277
 
        
43278
 
fi
43279
 
 
43280
 
rm -rf conftest.dSYM
43281
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43282
 
      conftest$ac_exeext conftest.$ac_ext
43283
 
      
43284
 
  LDFLAGS=$old_LDFLAGS
43285
 
  LIBS=$old_LIBS
43286
 
 
43287
 
      if test -n "$lib_found"; then
43288
 
        lib_found="";
43289
 
        break;
43290
 
      fi
43291
 
    fi
43292
 
  done
43293
 
  if test -z "$THIS_LIBS"; then
43294
 
    { $as_echo "$as_me:$LINENO: checking for DB4 major version" >&5
43295
 
$as_echo_n "checking for DB4 major version... " >&6; }
43296
 
    { { $as_echo "$as_me:$LINENO: error: Header contains different version" >&5
43297
 
$as_echo "$as_me: error: Header contains different version" >&2;}
43298
 
   { (exit 1); exit 1; }; }
43299
 
  fi
43300
 
  if test "4" = "4"; then
43301
 
    { $as_echo "$as_me:$LINENO: checking for DB4 minor version and patch level" >&5
43302
 
$as_echo_n "checking for DB4 minor version and patch level... " >&6; }
43303
 
    cat >conftest.$ac_ext <<_ACEOF
43304
 
/* confdefs.h.  */
43305
 
_ACEOF
43306
 
cat confdefs.h >>conftest.$ac_ext
43307
 
cat >>conftest.$ac_ext <<_ACEOF
43308
 
/* end confdefs.h.  */
43309
 
 
43310
 
#include "$THIS_INCLUDE"
43311
 
#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
43312
 
      yes
43313
 
#endif
43314
 
    
43315
 
_ACEOF
43316
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43317
 
  $EGREP "yes" >/dev/null 2>&1; then
43318
 
  
43319
 
      { $as_echo "$as_me:$LINENO: result: ok" >&5
43320
 
$as_echo "ok" >&6; }
43321
 
    
43322
 
else
43323
 
  
43324
 
      { { $as_echo "$as_me:$LINENO: error: Version 4.1 requires patch level 25" >&5
43325
 
$as_echo "$as_me: error: Version 4.1 requires patch level 25" >&2;}
43326
 
   { (exit 1); exit 1; }; }
43327
 
    
43328
 
fi
43329
 
rm -f conftest*
43330
 
 
43331
 
  fi
43332
 
  if test "$ext_shared" = "yes"; then
43333
 
    { $as_echo "$as_me:$LINENO: checking if dba can be used as shared extension" >&5
43334
 
$as_echo_n "checking if dba can be used as shared extension... " >&6; }
43335
 
    cat >conftest.$ac_ext <<_ACEOF
43336
 
/* confdefs.h.  */
43337
 
_ACEOF
43338
 
cat confdefs.h >>conftest.$ac_ext
43339
 
cat >>conftest.$ac_ext <<_ACEOF
43340
 
/* end confdefs.h.  */
43341
 
 
43342
 
#include "$THIS_INCLUDE"
43343
 
#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
43344
 
      yes
43345
 
#endif
43346
 
    
43347
 
_ACEOF
43348
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43349
 
  $EGREP "yes" >/dev/null 2>&1; then
43350
 
  
43351
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
43352
 
$as_echo "yes" >&6; }
43353
 
    
43354
 
else
43355
 
  
43356
 
      { { $as_echo "$as_me:$LINENO: error: At least version 3.3 is required" >&5
43357
 
$as_echo "$as_me: error: At least version 3.3 is required" >&2;}
43358
 
   { (exit 1); exit 1; }; }
43359
 
    
43360
 
fi
43361
 
rm -f conftest*
43362
 
 
43363
 
  fi
43364
 
  if test -n "$THIS_LIBS"; then
43365
 
    
43366
 
cat >>confdefs.h <<\_ACEOF
43367
 
@%:@define DBA_DB4 1
43368
 
_ACEOF
43369
 
 
43370
 
    if test -n "$THIS_INCLUDE"; then
43371
 
      
43372
 
cat >>confdefs.h <<_ACEOF
43373
 
@%:@define DB4_INCLUDE_FILE "$THIS_INCLUDE"
43374
 
_ACEOF
43375
 
 
43376
 
    fi
43377
 
  else
43378
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
43379
 
$as_echo "$as_me: error: DBA: Could not find necessary library." >&2;}
43380
 
   { (exit 1); exit 1; }; }
43381
 
  fi
43382
 
  THIS_RESULT=yes
43383
 
  DB4_LIBS=$THIS_LIBS
43384
 
  DB4_PREFIX=$THIS_PREFIX
43385
 
  DB4_INCLUDE=$THIS_INCLUDE
43386
 
  
43387
 
  if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
43388
 
    THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
43389
 
  fi
43390
 
 
43391
 
  
43392
 
  
43393
 
 
43394
 
  if test "$ext_shared" = "yes"; then
43395
 
    DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
43396
 
    if test -n "$THIS_LFLAGS"; then
43397
 
      
43398
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43399
 
    
43400
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43401
 
    ai_p=$THIS_LFLAGS
43402
 
  else
43403
 
    
43404
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43405
 
    
43406
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43407
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43408
 
  fi
43409
 
 
43410
 
    
43411
 
      if test "$ext_shared" = "yes"; then
43412
 
        DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
43413
 
        test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
43414
 
      else
43415
 
        
43416
 
  
43417
 
  
43418
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43419
 
  
43420
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43421
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
43422
 
    eval "LIBPATH$unique=set"
43423
 
    
43424
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43425
 
    LDFLAGS="$LDFLAGS -L$ai_p"
43426
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
43427
 
  
43428
 
  fi
43429
 
 
43430
 
 
43431
 
      fi
43432
 
    
43433
 
  fi
43434
 
 
43435
 
    fi
43436
 
  else
43437
 
    
43438
 
 
43439
 
  if test -n "$THIS_LFLAGS"; then
43440
 
    
43441
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43442
 
    
43443
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43444
 
    ai_p=$THIS_LFLAGS
43445
 
  else
43446
 
    
43447
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43448
 
    
43449
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43450
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43451
 
  fi
43452
 
 
43453
 
    
43454
 
      
43455
 
  
43456
 
  
43457
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43458
 
  
43459
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43460
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
43461
 
    eval "LIBPATH$unique=set"
43462
 
    
43463
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43464
 
    LDFLAGS="$LDFLAGS -L$ai_p"
43465
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
43466
 
  
43467
 
  fi
43468
 
 
43469
 
 
43470
 
    
43471
 
  fi
43472
 
 
43473
 
  fi
43474
 
  
43475
 
  
43476
 
  case $THIS_LIBS in
43477
 
  c|c_r|pthread*) ;;
43478
 
  *) 
43479
 
      LIBS="-l$THIS_LIBS $LIBS" 
43480
 
   ;;
43481
 
  esac
43482
 
 
43483
 
 
43484
 
 
43485
 
 
43486
 
  fi
43487
 
 
43488
 
 
43489
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
43490
 
 
43491
 
 
43492
 
fi
43493
 
 
43494
 
  THIS_NAME=DB4
43495
 
  if test -n "Berkeley DB4"; then
43496
 
    THIS_FULL_NAME="Berkeley DB4"
43497
 
  else
43498
 
    THIS_FULL_NAME="$THIS_NAME"
43499
 
  fi
43500
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
43501
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
43502
 
  if test -n ""; then
43503
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
43504
 
$as_echo "$as_me: error: " >&2;}
43505
 
   { (exit 1); exit 1; }; }
43506
 
  fi
43507
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43508
 
    HAVE_DBA=1
43509
 
    eval HAVE_$THIS_NAME=1
43510
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
43511
 
$as_echo "$THIS_RESULT" >&6; }
43512
 
  else
43513
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
43514
 
$as_echo "no" >&6; }
43515
 
  fi
43516
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43517
 
 
43518
 
 
43519
 
# DB3
43520
 
if test "$PHP_DB3" != "no"; then
43521
 
  
43522
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
43523
 
 
43524
 
  if test "$HAVE_DB4" = "1"; then
43525
 
    
43526
 
  THIS_NAME=DB3
43527
 
  if test -n "Berkeley DB3"; then
43528
 
    THIS_FULL_NAME="Berkeley DB3"
43529
 
  else
43530
 
    THIS_FULL_NAME="$THIS_NAME"
43531
 
  fi
43532
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
43533
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
43534
 
  if test -n "You cannot combine --with-db3 with --with-db4"; then
43535
 
    { { $as_echo "$as_me:$LINENO: error: You cannot combine --with-db3 with --with-db4" >&5
43536
 
$as_echo "$as_me: error: You cannot combine --with-db3 with --with-db4" >&2;}
43537
 
   { (exit 1); exit 1; }; }
43538
 
  fi
43539
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43540
 
    HAVE_DBA=1
43541
 
    eval HAVE_$THIS_NAME=1
43542
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
43543
 
$as_echo "$THIS_RESULT" >&6; }
43544
 
  else
43545
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
43546
 
$as_echo "no" >&6; }
43547
 
  fi
43548
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43549
 
 
43550
 
  fi
43551
 
  for i in $PHP_DB3 /usr/local/BerkeleyDB.3.3 /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB.3.1 /usr/local/BerkeleyDB.3.0 /usr/local /usr; do
43552
 
    if test -f "$i/db3/db.h"; then
43553
 
      THIS_PREFIX=$i
43554
 
      THIS_INCLUDE=$i/include/db3/db.h
43555
 
      break
43556
 
    elif test -f "$i/include/db3/db.h"; then
43557
 
      THIS_PREFIX=$i
43558
 
      THIS_INCLUDE=$i/include/db3/db.h
43559
 
      break
43560
 
    elif test -f "$i/include/db/db3.h"; then
43561
 
      THIS_PREFIX=$i
43562
 
      THIS_INCLUDE=$i/include/db/db3.h
43563
 
      break
43564
 
    elif test -f "$i/include/db3.h"; then
43565
 
      THIS_PREFIX=$i
43566
 
      THIS_INCLUDE=$i/include/db3.h
43567
 
      break
43568
 
    elif test -f "$i/include/db.h"; then
43569
 
      THIS_PREFIX=$i
43570
 
      THIS_INCLUDE=$i/include/db.h
43571
 
      break
43572
 
    fi
43573
 
  done
43574
 
  
43575
 
  if test -z "$THIS_INCLUDE"; then
43576
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
43577
 
$as_echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
43578
 
   { (exit 1); exit 1; }; }
43579
 
  fi
43580
 
  for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do
43581
 
    if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
43582
 
      lib_found="";
43583
 
      
43584
 
  old_LDFLAGS=$LDFLAGS
43585
 
  LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
43586
 
  old_LIBS=$LIBS
43587
 
  LIBS="-l$LIB $LIBS"
43588
 
  
43589
 
        cat >conftest.$ac_ext <<_ACEOF
43590
 
/* confdefs.h.  */
43591
 
_ACEOF
43592
 
cat confdefs.h >>conftest.$ac_ext
43593
 
cat >>conftest.$ac_ext <<_ACEOF
43594
 
/* end confdefs.h.  */
43595
 
 
43596
 
#include "$THIS_INCLUDE"
43597
 
        
43598
 
int
43599
 
main ()
43600
 
{
43601
 
 
43602
 
          (void)db_create((DB**)0, (DB_ENV*)0, 0);
43603
 
        
43604
 
  ;
43605
 
  return 0;
43606
 
}
43607
 
_ACEOF
43608
 
rm -f conftest.$ac_objext conftest$ac_exeext
43609
 
if { (ac_try="$ac_link"
43610
 
case "(($ac_try" in
43611
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43612
 
  *) ac_try_echo=$ac_try;;
43613
 
esac
43614
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43615
 
$as_echo "$ac_try_echo") >&5
43616
 
  (eval "$ac_link") 2>conftest.er1
43617
 
  ac_status=$?
43618
 
  grep -v '^ *+' conftest.er1 >conftest.err
43619
 
  rm -f conftest.er1
43620
 
  cat conftest.err >&5
43621
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43622
 
  (exit $ac_status); } && {
43623
 
         test -z "$ac_c_werror_flag" ||
43624
 
         test ! -s conftest.err
43625
 
       } && test -s conftest$ac_exeext && {
43626
 
         test "$cross_compiling" = yes ||
43627
 
         $as_test_x conftest$ac_exeext
43628
 
       }; then
43629
 
  
43630
 
          cat >conftest.$ac_ext <<_ACEOF
43631
 
/* confdefs.h.  */
43632
 
_ACEOF
43633
 
cat confdefs.h >>conftest.$ac_ext
43634
 
cat >>conftest.$ac_ext <<_ACEOF
43635
 
/* end confdefs.h.  */
43636
 
 
43637
 
#include "$THIS_INCLUDE"
43638
 
#if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5)
43639
 
            yes
43640
 
#endif
43641
 
          
43642
 
_ACEOF
43643
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43644
 
  $EGREP "yes" >/dev/null 2>&1; then
43645
 
  
43646
 
            THIS_LIBS=$LIB
43647
 
            lib_found=1
43648
 
          
43649
 
fi
43650
 
rm -f conftest*
43651
 
 
43652
 
        
43653
 
else
43654
 
  $as_echo "$as_me: failed program was:" >&5
43655
 
sed 's/^/| /' conftest.$ac_ext >&5
43656
 
 
43657
 
        
43658
 
fi
43659
 
 
43660
 
rm -rf conftest.dSYM
43661
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43662
 
      conftest$ac_exeext conftest.$ac_ext
43663
 
      
43664
 
  LDFLAGS=$old_LDFLAGS
43665
 
  LIBS=$old_LIBS
43666
 
 
43667
 
      if test -n "$lib_found"; then
43668
 
        lib_found="";
43669
 
        break;
43670
 
      fi
43671
 
    fi
43672
 
  done
43673
 
  if test -z "$THIS_LIBS"; then
43674
 
    { $as_echo "$as_me:$LINENO: checking for DB3 major version" >&5
43675
 
$as_echo_n "checking for DB3 major version... " >&6; }
43676
 
    { { $as_echo "$as_me:$LINENO: error: Header contains different version" >&5
43677
 
$as_echo "$as_me: error: Header contains different version" >&2;}
43678
 
   { (exit 1); exit 1; }; }
43679
 
  fi
43680
 
  if test "3" = "4"; then
43681
 
    { $as_echo "$as_me:$LINENO: checking for DB4 minor version and patch level" >&5
43682
 
$as_echo_n "checking for DB4 minor version and patch level... " >&6; }
43683
 
    cat >conftest.$ac_ext <<_ACEOF
43684
 
/* confdefs.h.  */
43685
 
_ACEOF
43686
 
cat confdefs.h >>conftest.$ac_ext
43687
 
cat >>conftest.$ac_ext <<_ACEOF
43688
 
/* end confdefs.h.  */
43689
 
 
43690
 
#include "$THIS_INCLUDE"
43691
 
#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
43692
 
      yes
43693
 
#endif
43694
 
    
43695
 
_ACEOF
43696
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43697
 
  $EGREP "yes" >/dev/null 2>&1; then
43698
 
  
43699
 
      { $as_echo "$as_me:$LINENO: result: ok" >&5
43700
 
$as_echo "ok" >&6; }
43701
 
    
43702
 
else
43703
 
  
43704
 
      { { $as_echo "$as_me:$LINENO: error: Version 4.1 requires patch level 25" >&5
43705
 
$as_echo "$as_me: error: Version 4.1 requires patch level 25" >&2;}
43706
 
   { (exit 1); exit 1; }; }
43707
 
    
43708
 
fi
43709
 
rm -f conftest*
43710
 
 
43711
 
  fi
43712
 
  if test "$ext_shared" = "yes"; then
43713
 
    { $as_echo "$as_me:$LINENO: checking if dba can be used as shared extension" >&5
43714
 
$as_echo_n "checking if dba can be used as shared extension... " >&6; }
43715
 
    cat >conftest.$ac_ext <<_ACEOF
43716
 
/* confdefs.h.  */
43717
 
_ACEOF
43718
 
cat confdefs.h >>conftest.$ac_ext
43719
 
cat >>conftest.$ac_ext <<_ACEOF
43720
 
/* end confdefs.h.  */
43721
 
 
43722
 
#include "$THIS_INCLUDE"
43723
 
#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
43724
 
      yes
43725
 
#endif
43726
 
    
43727
 
_ACEOF
43728
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43729
 
  $EGREP "yes" >/dev/null 2>&1; then
43730
 
  
43731
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
43732
 
$as_echo "yes" >&6; }
43733
 
    
43734
 
else
43735
 
  
43736
 
      { { $as_echo "$as_me:$LINENO: error: At least version 3.3 is required" >&5
43737
 
$as_echo "$as_me: error: At least version 3.3 is required" >&2;}
43738
 
   { (exit 1); exit 1; }; }
43739
 
    
43740
 
fi
43741
 
rm -f conftest*
43742
 
 
43743
 
  fi
43744
 
  if test -n "$THIS_LIBS"; then
43745
 
    
43746
 
cat >>confdefs.h <<\_ACEOF
43747
 
@%:@define DBA_DB3 1
43748
 
_ACEOF
43749
 
 
43750
 
    if test -n "$THIS_INCLUDE"; then
43751
 
      
43752
 
cat >>confdefs.h <<_ACEOF
43753
 
@%:@define DB3_INCLUDE_FILE "$THIS_INCLUDE"
43754
 
_ACEOF
43755
 
 
43756
 
    fi
43757
 
  else
43758
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
43759
 
$as_echo "$as_me: error: DBA: Could not find necessary library." >&2;}
43760
 
   { (exit 1); exit 1; }; }
43761
 
  fi
43762
 
  THIS_RESULT=yes
43763
 
  DB3_LIBS=$THIS_LIBS
43764
 
  DB3_PREFIX=$THIS_PREFIX
43765
 
  DB3_INCLUDE=$THIS_INCLUDE
43766
 
  
43767
 
  if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
43768
 
    THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
43769
 
  fi
43770
 
 
43771
 
  
43772
 
  
43773
 
 
43774
 
  if test "$ext_shared" = "yes"; then
43775
 
    DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
43776
 
    if test -n "$THIS_LFLAGS"; then
43777
 
      
43778
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43779
 
    
43780
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43781
 
    ai_p=$THIS_LFLAGS
43782
 
  else
43783
 
    
43784
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43785
 
    
43786
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43787
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43788
 
  fi
43789
 
 
43790
 
    
43791
 
      if test "$ext_shared" = "yes"; then
43792
 
        DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
43793
 
        test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
43794
 
      else
43795
 
        
43796
 
  
43797
 
  
43798
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43799
 
  
43800
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43801
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
43802
 
    eval "LIBPATH$unique=set"
43803
 
    
43804
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43805
 
    LDFLAGS="$LDFLAGS -L$ai_p"
43806
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
43807
 
  
43808
 
  fi
43809
 
 
43810
 
 
43811
 
      fi
43812
 
    
43813
 
  fi
43814
 
 
43815
 
    fi
43816
 
  else
43817
 
    
43818
 
 
43819
 
  if test -n "$THIS_LFLAGS"; then
43820
 
    
43821
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
43822
 
    
43823
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
43824
 
    ai_p=$THIS_LFLAGS
43825
 
  else
43826
 
    
43827
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
43828
 
    
43829
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43830
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
43831
 
  fi
43832
 
 
43833
 
    
43834
 
      
43835
 
  
43836
 
  
43837
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43838
 
  
43839
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43840
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
43841
 
    eval "LIBPATH$unique=set"
43842
 
    
43843
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43844
 
    LDFLAGS="$LDFLAGS -L$ai_p"
43845
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
43846
 
  
43847
 
  fi
43848
 
 
43849
 
 
43850
 
    
43851
 
  fi
43852
 
 
43853
 
  fi
43854
 
  
43855
 
  
43856
 
  case $THIS_LIBS in
43857
 
  c|c_r|pthread*) ;;
43858
 
  *) 
43859
 
      LIBS="-l$THIS_LIBS $LIBS" 
43860
 
   ;;
43861
 
  esac
43862
 
 
43863
 
 
43864
 
 
43865
 
 
43866
 
  fi
43867
 
 
43868
 
 
43869
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
43870
 
 
43871
 
 
43872
 
fi
43873
 
 
43874
 
  THIS_NAME=DB3
43875
 
  if test -n "Berkeley DB3"; then
43876
 
    THIS_FULL_NAME="Berkeley DB3"
43877
 
  else
43878
 
    THIS_FULL_NAME="$THIS_NAME"
43879
 
  fi
43880
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
43881
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
43882
 
  if test -n ""; then
43883
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
43884
 
$as_echo "$as_me: error: " >&2;}
43885
 
   { (exit 1); exit 1; }; }
43886
 
  fi
43887
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43888
 
    HAVE_DBA=1
43889
 
    eval HAVE_$THIS_NAME=1
43890
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
43891
 
$as_echo "$THIS_RESULT" >&6; }
43892
 
  else
43893
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
43894
 
$as_echo "no" >&6; }
43895
 
  fi
43896
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43897
 
 
43898
 
 
43899
 
# DB2
43900
 
if test "$PHP_DB2" != "no"; then
43901
 
  
43902
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
43903
 
 
43904
 
  if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then
43905
 
    
43906
 
  THIS_NAME=DB2
43907
 
  if test -n "Berkeley DB2"; then
43908
 
    THIS_FULL_NAME="Berkeley DB2"
43909
 
  else
43910
 
    THIS_FULL_NAME="$THIS_NAME"
43911
 
  fi
43912
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
43913
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
43914
 
  if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then
43915
 
    { { $as_echo "$as_me:$LINENO: error: You cannot combine --with-db2 with --with-db3 or --with-db4" >&5
43916
 
$as_echo "$as_me: error: You cannot combine --with-db2 with --with-db3 or --with-db4" >&2;}
43917
 
   { (exit 1); exit 1; }; }
43918
 
  fi
43919
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
43920
 
    HAVE_DBA=1
43921
 
    eval HAVE_$THIS_NAME=1
43922
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
43923
 
$as_echo "$THIS_RESULT" >&6; }
43924
 
  else
43925
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
43926
 
$as_echo "no" >&6; }
43927
 
  fi
43928
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
43929
 
 
43930
 
  fi
43931
 
  for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do
43932
 
    if test -f "$i/db2/db.h"; then
43933
 
      THIS_PREFIX=$i
43934
 
      THIS_INCLUDE=$i/db2/db.h
43935
 
      break
43936
 
    elif test -f "$i/include/db2/db.h"; then
43937
 
      THIS_PREFIX=$i
43938
 
      THIS_INCLUDE=$i/include/db2/db.h
43939
 
      break
43940
 
    elif test -f "$i/include/db/db2.h"; then
43941
 
      THIS_PREFIX=$i
43942
 
      THIS_INCLUDE=$i/include/db/db2.h
43943
 
      break
43944
 
    elif test -f "$i/include/db2.h"; then
43945
 
      THIS_PREFIX=$i
43946
 
      THIS_INCLUDE=$i/include/db2.h
43947
 
      break
43948
 
    elif test -f "$i/include/db.h"; then
43949
 
      THIS_PREFIX=$i
43950
 
      THIS_INCLUDE=$i/include/db.h
43951
 
      break
43952
 
    fi
43953
 
  done
43954
 
  
43955
 
  if test -z "$THIS_INCLUDE"; then
43956
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
43957
 
$as_echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
43958
 
   { (exit 1); exit 1; }; }
43959
 
  fi
43960
 
  for LIB in db-2 db2 db; do
43961
 
    if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
43962
 
      lib_found="";
43963
 
      
43964
 
  old_LDFLAGS=$LDFLAGS
43965
 
  LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
43966
 
  old_LIBS=$LIBS
43967
 
  LIBS="-l$LIB $LIBS"
43968
 
  
43969
 
        cat >conftest.$ac_ext <<_ACEOF
43970
 
/* confdefs.h.  */
43971
 
_ACEOF
43972
 
cat confdefs.h >>conftest.$ac_ext
43973
 
cat >>conftest.$ac_ext <<_ACEOF
43974
 
/* end confdefs.h.  */
43975
 
 
43976
 
#include "$THIS_INCLUDE"
43977
 
        
43978
 
int
43979
 
main ()
43980
 
{
43981
 
 
43982
 
          (void)db_appinit("", NULL, (DB_ENV*)0, 0);
43983
 
        
43984
 
  ;
43985
 
  return 0;
43986
 
}
43987
 
_ACEOF
43988
 
rm -f conftest.$ac_objext conftest$ac_exeext
43989
 
if { (ac_try="$ac_link"
43990
 
case "(($ac_try" in
43991
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43992
 
  *) ac_try_echo=$ac_try;;
43993
 
esac
43994
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43995
 
$as_echo "$ac_try_echo") >&5
43996
 
  (eval "$ac_link") 2>conftest.er1
43997
 
  ac_status=$?
43998
 
  grep -v '^ *+' conftest.er1 >conftest.err
43999
 
  rm -f conftest.er1
44000
 
  cat conftest.err >&5
44001
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44002
 
  (exit $ac_status); } && {
44003
 
         test -z "$ac_c_werror_flag" ||
44004
 
         test ! -s conftest.err
44005
 
       } && test -s conftest$ac_exeext && {
44006
 
         test "$cross_compiling" = yes ||
44007
 
         $as_test_x conftest$ac_exeext
44008
 
       }; then
44009
 
  
44010
 
          cat >conftest.$ac_ext <<_ACEOF
44011
 
/* confdefs.h.  */
44012
 
_ACEOF
44013
 
cat confdefs.h >>conftest.$ac_ext
44014
 
cat >>conftest.$ac_ext <<_ACEOF
44015
 
/* end confdefs.h.  */
44016
 
 
44017
 
#include "$THIS_INCLUDE"
44018
 
#if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5)
44019
 
            yes
44020
 
#endif
44021
 
          
44022
 
_ACEOF
44023
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44024
 
  $EGREP "yes" >/dev/null 2>&1; then
44025
 
  
44026
 
            THIS_LIBS=$LIB
44027
 
            lib_found=1
44028
 
          
44029
 
fi
44030
 
rm -f conftest*
44031
 
 
44032
 
        
44033
 
else
44034
 
  $as_echo "$as_me: failed program was:" >&5
44035
 
sed 's/^/| /' conftest.$ac_ext >&5
44036
 
 
44037
 
        
44038
 
fi
44039
 
 
44040
 
rm -rf conftest.dSYM
44041
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44042
 
      conftest$ac_exeext conftest.$ac_ext
44043
 
      
44044
 
  LDFLAGS=$old_LDFLAGS
44045
 
  LIBS=$old_LIBS
44046
 
 
44047
 
      if test -n "$lib_found"; then
44048
 
        lib_found="";
44049
 
        break;
44050
 
      fi
44051
 
    fi
44052
 
  done
44053
 
  if test -z "$THIS_LIBS"; then
44054
 
    { $as_echo "$as_me:$LINENO: checking for DB2 major version" >&5
44055
 
$as_echo_n "checking for DB2 major version... " >&6; }
44056
 
    { { $as_echo "$as_me:$LINENO: error: Header contains different version" >&5
44057
 
$as_echo "$as_me: error: Header contains different version" >&2;}
44058
 
   { (exit 1); exit 1; }; }
44059
 
  fi
44060
 
  if test "2" = "4"; then
44061
 
    { $as_echo "$as_me:$LINENO: checking for DB4 minor version and patch level" >&5
44062
 
$as_echo_n "checking for DB4 minor version and patch level... " >&6; }
44063
 
    cat >conftest.$ac_ext <<_ACEOF
44064
 
/* confdefs.h.  */
44065
 
_ACEOF
44066
 
cat confdefs.h >>conftest.$ac_ext
44067
 
cat >>conftest.$ac_ext <<_ACEOF
44068
 
/* end confdefs.h.  */
44069
 
 
44070
 
#include "$THIS_INCLUDE"
44071
 
#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
44072
 
      yes
44073
 
#endif
44074
 
    
44075
 
_ACEOF
44076
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44077
 
  $EGREP "yes" >/dev/null 2>&1; then
44078
 
  
44079
 
      { $as_echo "$as_me:$LINENO: result: ok" >&5
44080
 
$as_echo "ok" >&6; }
44081
 
    
44082
 
else
44083
 
  
44084
 
      { { $as_echo "$as_me:$LINENO: error: Version 4.1 requires patch level 25" >&5
44085
 
$as_echo "$as_me: error: Version 4.1 requires patch level 25" >&2;}
44086
 
   { (exit 1); exit 1; }; }
44087
 
    
44088
 
fi
44089
 
rm -f conftest*
44090
 
 
44091
 
  fi
44092
 
  if test "$ext_shared" = "yes"; then
44093
 
    { $as_echo "$as_me:$LINENO: checking if dba can be used as shared extension" >&5
44094
 
$as_echo_n "checking if dba can be used as shared extension... " >&6; }
44095
 
    cat >conftest.$ac_ext <<_ACEOF
44096
 
/* confdefs.h.  */
44097
 
_ACEOF
44098
 
cat confdefs.h >>conftest.$ac_ext
44099
 
cat >>conftest.$ac_ext <<_ACEOF
44100
 
/* end confdefs.h.  */
44101
 
 
44102
 
#include "$THIS_INCLUDE"
44103
 
#if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
44104
 
      yes
44105
 
#endif
44106
 
    
44107
 
_ACEOF
44108
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44109
 
  $EGREP "yes" >/dev/null 2>&1; then
44110
 
  
44111
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
44112
 
$as_echo "yes" >&6; }
44113
 
    
44114
 
else
44115
 
  
44116
 
      { { $as_echo "$as_me:$LINENO: error: At least version 3.3 is required" >&5
44117
 
$as_echo "$as_me: error: At least version 3.3 is required" >&2;}
44118
 
   { (exit 1); exit 1; }; }
44119
 
    
44120
 
fi
44121
 
rm -f conftest*
44122
 
 
44123
 
  fi
44124
 
  if test -n "$THIS_LIBS"; then
44125
 
    
44126
 
cat >>confdefs.h <<\_ACEOF
44127
 
@%:@define DBA_DB2 1
44128
 
_ACEOF
44129
 
 
44130
 
    if test -n "$THIS_INCLUDE"; then
44131
 
      
44132
 
cat >>confdefs.h <<_ACEOF
44133
 
@%:@define DB2_INCLUDE_FILE "$THIS_INCLUDE"
44134
 
_ACEOF
44135
 
 
44136
 
    fi
44137
 
  else
44138
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
44139
 
$as_echo "$as_me: error: DBA: Could not find necessary library." >&2;}
44140
 
   { (exit 1); exit 1; }; }
44141
 
  fi
44142
 
  THIS_RESULT=yes
44143
 
  DB2_LIBS=$THIS_LIBS
44144
 
  DB2_PREFIX=$THIS_PREFIX
44145
 
  DB2_INCLUDE=$THIS_INCLUDE
44146
 
  
44147
 
  if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
44148
 
    THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
44149
 
  fi
44150
 
 
44151
 
  
44152
 
  
44153
 
 
44154
 
  if test "$ext_shared" = "yes"; then
44155
 
    DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
44156
 
    if test -n "$THIS_LFLAGS"; then
44157
 
      
44158
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
44159
 
    
44160
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
44161
 
    ai_p=$THIS_LFLAGS
44162
 
  else
44163
 
    
44164
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
44165
 
    
44166
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44167
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
44168
 
  fi
44169
 
 
44170
 
    
44171
 
      if test "$ext_shared" = "yes"; then
44172
 
        DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
44173
 
        test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
44174
 
      else
44175
 
        
44176
 
  
44177
 
  
44178
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44179
 
  
44180
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44181
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
44182
 
    eval "LIBPATH$unique=set"
44183
 
    
44184
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44185
 
    LDFLAGS="$LDFLAGS -L$ai_p"
44186
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
44187
 
  
44188
 
  fi
44189
 
 
44190
 
 
44191
 
      fi
44192
 
    
44193
 
  fi
44194
 
 
44195
 
    fi
44196
 
  else
44197
 
    
44198
 
 
44199
 
  if test -n "$THIS_LFLAGS"; then
44200
 
    
44201
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
44202
 
    
44203
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
44204
 
    ai_p=$THIS_LFLAGS
44205
 
  else
44206
 
    
44207
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
44208
 
    
44209
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44210
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
44211
 
  fi
44212
 
 
44213
 
    
44214
 
      
44215
 
  
44216
 
  
44217
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44218
 
  
44219
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44220
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
44221
 
    eval "LIBPATH$unique=set"
44222
 
    
44223
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44224
 
    LDFLAGS="$LDFLAGS -L$ai_p"
44225
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
44226
 
  
44227
 
  fi
44228
 
 
44229
 
 
44230
 
    
44231
 
  fi
44232
 
 
44233
 
  fi
44234
 
  
44235
 
  
44236
 
  case $THIS_LIBS in
44237
 
  c|c_r|pthread*) ;;
44238
 
  *) 
44239
 
      LIBS="-l$THIS_LIBS $LIBS" 
44240
 
   ;;
44241
 
  esac
44242
 
 
44243
 
 
44244
 
 
44245
 
 
44246
 
  fi
44247
 
 
44248
 
 
44249
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
44250
 
 
44251
 
 
44252
 
fi
44253
 
 
44254
 
  THIS_NAME=DB2
44255
 
  if test -n "Berkeley DB2"; then
44256
 
    THIS_FULL_NAME="Berkeley DB2"
44257
 
  else
44258
 
    THIS_FULL_NAME="$THIS_NAME"
44259
 
  fi
44260
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
44261
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
44262
 
  if test -n ""; then
44263
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
44264
 
$as_echo "$as_me: error: " >&2;}
44265
 
   { (exit 1); exit 1; }; }
44266
 
  fi
44267
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
44268
 
    HAVE_DBA=1
44269
 
    eval HAVE_$THIS_NAME=1
44270
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
44271
 
$as_echo "$THIS_RESULT" >&6; }
44272
 
  else
44273
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
44274
 
$as_echo "no" >&6; }
44275
 
  fi
44276
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
44277
 
 
44278
 
 
44279
 
# DB1
44280
 
if test "$PHP_DB1" != "no"; then
44281
 
  
44282
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
44283
 
 
44284
 
  { $as_echo "$as_me:$LINENO: checking for DB1 in library" >&5
44285
 
$as_echo_n "checking for DB1 in library... " >&6; }
44286
 
  if test "$HAVE_DB4" = "1"; then
44287
 
    THIS_VERSION=4
44288
 
    THIS_LIBS=$DB4_LIBS
44289
 
    THIS_PREFIX=$DB4_PREFIX
44290
 
  elif test "$HAVE_DB3" = "1"; then
44291
 
    THIS_LIBS=$DB3_LIBS
44292
 
    THIS_PREFIX=$DB3_PREFIX
44293
 
  elif test "$HAVE_DB2" = "1"; then
44294
 
    THIS_VERSION=2
44295
 
    THIS_LIBS=$DB2_LIBS
44296
 
    THIS_PREFIX=$DB2_PREFIX
44297
 
  fi
44298
 
  if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then
44299
 
    
44300
 
cat >>confdefs.h <<_ACEOF
44301
 
@%:@define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION"
44302
 
_ACEOF
44303
 
 
44304
 
    for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do
44305
 
      if test -f "$THIS_PREFIX/$i"; then
44306
 
        THIS_INCLUDE=$THIS_PREFIX/$i
44307
 
        break
44308
 
      fi
44309
 
    done
44310
 
  else
44311
 
    
44312
 
cat >>confdefs.h <<_ACEOF
44313
 
@%:@define DB1_VERSION "Unknown DB1"
44314
 
_ACEOF
44315
 
 
44316
 
    for i in $PHP_DB1 /usr/local /usr; do
44317
 
      if test -f "$i/db1/db.h"; then
44318
 
        THIS_PREFIX=$i
44319
 
        THIS_INCLUDE=$i/db1/db.h
44320
 
        break
44321
 
      elif test -f "$i/include/db1/db.h"; then
44322
 
        THIS_PREFIX=$i
44323
 
        THIS_INCLUDE=$i/include/db1/db.h
44324
 
        break
44325
 
      elif test -f "$i/include/db.h"; then
44326
 
        THIS_PREFIX=$i
44327
 
        THIS_INCLUDE=$i/include/db.h
44328
 
        break
44329
 
      fi
44330
 
    done
44331
 
    THIS_LIBS=db
44332
 
  fi
44333
 
  { $as_echo "$as_me:$LINENO: result: $THIS_LIBS" >&5
44334
 
$as_echo "$THIS_LIBS" >&6; }
44335
 
  { $as_echo "$as_me:$LINENO: checking for DB1 in header" >&5
44336
 
$as_echo_n "checking for DB1 in header... " >&6; }
44337
 
  { $as_echo "$as_me:$LINENO: result: $THIS_INCLUDE" >&5
44338
 
$as_echo "$THIS_INCLUDE" >&6; }
44339
 
  if test -n "$THIS_INCLUDE"; then
44340
 
    
44341
 
  old_LDFLAGS=$LDFLAGS
44342
 
  LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
44343
 
  old_LIBS=$LIBS
44344
 
  LIBS="-l$THIS_LIBS $LIBS"
44345
 
  
44346
 
      cat >conftest.$ac_ext <<_ACEOF
44347
 
/* confdefs.h.  */
44348
 
_ACEOF
44349
 
cat confdefs.h >>conftest.$ac_ext
44350
 
cat >>conftest.$ac_ext <<_ACEOF
44351
 
/* end confdefs.h.  */
44352
 
 
44353
 
#include "$THIS_INCLUDE"
44354
 
      
44355
 
int
44356
 
main ()
44357
 
{
44358
 
 
44359
 
        DB * dbp = dbopen("", 0, 0, DB_HASH, 0);
44360
 
      
44361
 
  ;
44362
 
  return 0;
44363
 
}
44364
 
_ACEOF
44365
 
rm -f conftest.$ac_objext conftest$ac_exeext
44366
 
if { (ac_try="$ac_link"
44367
 
case "(($ac_try" in
44368
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44369
 
  *) ac_try_echo=$ac_try;;
44370
 
esac
44371
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44372
 
$as_echo "$ac_try_echo") >&5
44373
 
  (eval "$ac_link") 2>conftest.er1
44374
 
  ac_status=$?
44375
 
  grep -v '^ *+' conftest.er1 >conftest.err
44376
 
  rm -f conftest.er1
44377
 
  cat conftest.err >&5
44378
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44379
 
  (exit $ac_status); } && {
44380
 
         test -z "$ac_c_werror_flag" ||
44381
 
         test ! -s conftest.err
44382
 
       } && test -s conftest$ac_exeext && {
44383
 
         test "$cross_compiling" = yes ||
44384
 
         $as_test_x conftest$ac_exeext
44385
 
       }; then
44386
 
  
44387
 
        
44388
 
cat >>confdefs.h <<_ACEOF
44389
 
@%:@define DB1_INCLUDE_FILE "$THIS_INCLUDE"
44390
 
_ACEOF
44391
 
 
44392
 
        
44393
 
cat >>confdefs.h <<\_ACEOF
44394
 
@%:@define DBA_DB1 1
44395
 
_ACEOF
44396
 
 
44397
 
        THIS_RESULT=yes
44398
 
      
44399
 
else
44400
 
  $as_echo "$as_me: failed program was:" >&5
44401
 
sed 's/^/| /' conftest.$ac_ext >&5
44402
 
 
44403
 
        
44404
 
        THIS_RESULT=no
44405
 
      
44406
 
fi
44407
 
 
44408
 
rm -rf conftest.dSYM
44409
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44410
 
      conftest$ac_exeext conftest.$ac_ext
44411
 
    
44412
 
  LDFLAGS=$old_LDFLAGS
44413
 
  LIBS=$old_LIBS
44414
 
 
44415
 
  fi
44416
 
  
44417
 
  if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
44418
 
    THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
44419
 
  fi
44420
 
 
44421
 
  
44422
 
  THIS_RESULT=yes
44423
 
  if test -z "$THIS_INCLUDE"; then
44424
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
44425
 
$as_echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
44426
 
   { (exit 1); exit 1; }; }
44427
 
  fi
44428
 
  if test -z "$THIS_LIBS"; then
44429
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
44430
 
$as_echo "$as_me: error: DBA: Could not find necessary library." >&2;}
44431
 
   { (exit 1); exit 1; }; }
44432
 
  fi
44433
 
 
44434
 
  
44435
 
  
44436
 
 
44437
 
  if test "$ext_shared" = "yes"; then
44438
 
    DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
44439
 
    if test -n "$THIS_LFLAGS"; then
44440
 
      
44441
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
44442
 
    
44443
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
44444
 
    ai_p=$THIS_LFLAGS
44445
 
  else
44446
 
    
44447
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
44448
 
    
44449
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44450
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
44451
 
  fi
44452
 
 
44453
 
    
44454
 
      if test "$ext_shared" = "yes"; then
44455
 
        DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
44456
 
        test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
44457
 
      else
44458
 
        
44459
 
  
44460
 
  
44461
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44462
 
  
44463
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44464
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
44465
 
    eval "LIBPATH$unique=set"
44466
 
    
44467
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44468
 
    LDFLAGS="$LDFLAGS -L$ai_p"
44469
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
44470
 
  
44471
 
  fi
44472
 
 
44473
 
 
44474
 
      fi
44475
 
    
44476
 
  fi
44477
 
 
44478
 
    fi
44479
 
  else
44480
 
    
44481
 
 
44482
 
  if test -n "$THIS_LFLAGS"; then
44483
 
    
44484
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
44485
 
    
44486
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
44487
 
    ai_p=$THIS_LFLAGS
44488
 
  else
44489
 
    
44490
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
44491
 
    
44492
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44493
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
44494
 
  fi
44495
 
 
44496
 
    
44497
 
      
44498
 
  
44499
 
  
44500
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44501
 
  
44502
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44503
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
44504
 
    eval "LIBPATH$unique=set"
44505
 
    
44506
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44507
 
    LDFLAGS="$LDFLAGS -L$ai_p"
44508
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
44509
 
  
44510
 
  fi
44511
 
 
44512
 
 
44513
 
    
44514
 
  fi
44515
 
 
44516
 
  fi
44517
 
  
44518
 
  
44519
 
  case $THIS_LIBS in
44520
 
  c|c_r|pthread*) ;;
44521
 
  *) 
44522
 
      LIBS="-l$THIS_LIBS $LIBS" 
44523
 
   ;;
44524
 
  esac
44525
 
 
44526
 
 
44527
 
 
44528
 
 
44529
 
  fi
44530
 
 
44531
 
 
44532
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
44533
 
 
44534
 
fi
44535
 
 
44536
 
  THIS_NAME=DB1
44537
 
  if test -n "DB1"; then
44538
 
    THIS_FULL_NAME="DB1"
44539
 
  else
44540
 
    THIS_FULL_NAME="$THIS_NAME"
44541
 
  fi
44542
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
44543
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
44544
 
  if test -n ""; then
44545
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
44546
 
$as_echo "$as_me: error: " >&2;}
44547
 
   { (exit 1); exit 1; }; }
44548
 
  fi
44549
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
44550
 
    HAVE_DBA=1
44551
 
    eval HAVE_$THIS_NAME=1
44552
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
44553
 
$as_echo "$THIS_RESULT" >&6; }
44554
 
  else
44555
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
44556
 
$as_echo "no" >&6; }
44557
 
  fi
44558
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
44559
 
 
44560
 
 
44561
 
# DBM
44562
 
if test "$PHP_DBM" != "no"; then
44563
 
  
44564
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
44565
 
 
44566
 
  if test "$HAVE_QDBM" = "1"; then
44567
 
    
44568
 
  THIS_NAME=DBM
44569
 
  if test -n "dbm"; then
44570
 
    THIS_FULL_NAME="dbm"
44571
 
  else
44572
 
    THIS_FULL_NAME="$THIS_NAME"
44573
 
  fi
44574
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
44575
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
44576
 
  if test -n "You cannot combine --with-dbm with --with-qdbm"; then
44577
 
    { { $as_echo "$as_me:$LINENO: error: You cannot combine --with-dbm with --with-qdbm" >&5
44578
 
$as_echo "$as_me: error: You cannot combine --with-dbm with --with-qdbm" >&2;}
44579
 
   { (exit 1); exit 1; }; }
44580
 
  fi
44581
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
44582
 
    HAVE_DBA=1
44583
 
    eval HAVE_$THIS_NAME=1
44584
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
44585
 
$as_echo "$THIS_RESULT" >&6; }
44586
 
  else
44587
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
44588
 
$as_echo "no" >&6; }
44589
 
  fi
44590
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
44591
 
 
44592
 
  fi
44593
 
  for i in $PHP_DBM /usr/local /usr; do
44594
 
    if test -f "$i/include/dbm.h"; then
44595
 
      THIS_PREFIX=$i
44596
 
      THIS_INCLUDE=$i/include/dbm.h
44597
 
      break
44598
 
    elif test -f "$i/include/gdbm/dbm.h"; then
44599
 
      THIS_PREFIX=$i
44600
 
      THIS_INCLUDE=$i/include/gdbm/dbm.h
44601
 
      break
44602
 
    fi
44603
 
  done
44604
 
 
44605
 
  if test -n "$THIS_INCLUDE"; then
44606
 
    for LIB in dbm c gdbm; do
44607
 
      
44608
 
  save_old_LDFLAGS=$LDFLAGS
44609
 
  ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
44610
 
  
44611
 
  save_ext_shared=$ext_shared
44612
 
  ext_shared=yes
44613
 
  
44614
 
  for ac_i in $ac_stuff; do
44615
 
    case $ac_i in
44616
 
    -pthread)
44617
 
      if test "$ext_shared" = "yes"; then
44618
 
        LDFLAGS="$LDFLAGS -pthread"
44619
 
      else
44620
 
        
44621
 
  
44622
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44623
 
  
44624
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44625
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
44626
 
    eval "EXTRA_LDFLAGS$unique=set"
44627
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44628
 
  fi
44629
 
 
44630
 
      fi
44631
 
    ;;
44632
 
    -l*)
44633
 
      ac_ii=`echo $ac_i|cut -c 3-`
44634
 
      
44635
 
  
44636
 
  case $ac_ii in
44637
 
  c|c_r|pthread*) ;;
44638
 
  *) 
44639
 
    if test "$ext_shared" = "yes"; then
44640
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
44641
 
    else
44642
 
      
44643
 
  
44644
 
  case $ac_ii in
44645
 
  c|c_r|pthread*) ;;
44646
 
  *) 
44647
 
      LIBS="$LIBS -l$ac_ii" 
44648
 
   ;;
44649
 
  esac
44650
 
 
44651
 
 
44652
 
    fi
44653
 
   ;;
44654
 
  esac
44655
 
 
44656
 
 
44657
 
    ;;
44658
 
    -L*)
44659
 
      ac_ii=`echo $ac_i|cut -c 3-`
44660
 
      
44661
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44662
 
    
44663
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44664
 
    ai_p=$ac_ii
44665
 
  else
44666
 
    
44667
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
44668
 
    
44669
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44670
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
44671
 
  fi
44672
 
 
44673
 
    
44674
 
      if test "$ext_shared" = "yes"; then
44675
 
        LDFLAGS="-L$ai_p $LDFLAGS"
44676
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44677
 
      else
44678
 
        
44679
 
  
44680
 
  
44681
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44682
 
  
44683
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44684
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
44685
 
    eval "LIBPATH$unique=set"
44686
 
    
44687
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44688
 
    LDFLAGS="$LDFLAGS -L$ai_p"
44689
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
44690
 
  
44691
 
  fi
44692
 
 
44693
 
 
44694
 
      fi
44695
 
    
44696
 
  fi
44697
 
 
44698
 
    ;;
44699
 
    esac
44700
 
  done
44701
 
 
44702
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh`
44703
 
{ $as_echo "$as_me:$LINENO: checking for dbminit in -l$LIB" >&5
44704
 
$as_echo_n "checking for dbminit in -l$LIB... " >&6; }
44705
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44706
 
  $as_echo_n "(cached) " >&6
44707
 
else
44708
 
  ac_check_lib_save_LIBS=$LIBS
44709
 
LIBS="-l$LIB  $LIBS"
44710
 
cat >conftest.$ac_ext <<_ACEOF
44711
 
/* confdefs.h.  */
44712
 
_ACEOF
44713
 
cat confdefs.h >>conftest.$ac_ext
44714
 
cat >>conftest.$ac_ext <<_ACEOF
44715
 
/* end confdefs.h.  */
44716
 
 
44717
 
/* Override any GCC internal prototype to avoid an error.
44718
 
   Use char because int might match the return type of a GCC
44719
 
   builtin and then its argument prototype would still apply.  */
44720
 
#ifdef __cplusplus
44721
 
extern "C"
44722
 
#endif
44723
 
char dbminit ();
44724
 
int
44725
 
main ()
44726
 
{
44727
 
return dbminit ();
44728
 
  ;
44729
 
  return 0;
44730
 
}
44731
 
_ACEOF
44732
 
rm -f conftest.$ac_objext conftest$ac_exeext
44733
 
if { (ac_try="$ac_link"
44734
 
case "(($ac_try" in
44735
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44736
 
  *) ac_try_echo=$ac_try;;
44737
 
esac
44738
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44739
 
$as_echo "$ac_try_echo") >&5
44740
 
  (eval "$ac_link") 2>conftest.er1
44741
 
  ac_status=$?
44742
 
  grep -v '^ *+' conftest.er1 >conftest.err
44743
 
  rm -f conftest.er1
44744
 
  cat conftest.err >&5
44745
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44746
 
  (exit $ac_status); } && {
44747
 
         test -z "$ac_c_werror_flag" ||
44748
 
         test ! -s conftest.err
44749
 
       } && test -s conftest$ac_exeext && {
44750
 
         test "$cross_compiling" = yes ||
44751
 
         $as_test_x conftest$ac_exeext
44752
 
       }; then
44753
 
  eval "$as_ac_Lib=yes"
44754
 
else
44755
 
  $as_echo "$as_me: failed program was:" >&5
44756
 
sed 's/^/| /' conftest.$ac_ext >&5
44757
 
 
44758
 
        eval "$as_ac_Lib=no"
44759
 
fi
44760
 
 
44761
 
rm -rf conftest.dSYM
44762
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44763
 
      conftest$ac_exeext conftest.$ac_ext
44764
 
LIBS=$ac_check_lib_save_LIBS
44765
 
fi
44766
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
44767
 
                 $as_echo "$as_val"'`
44768
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44769
 
$as_echo "$ac_res" >&6; }
44770
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
44771
 
                 $as_echo "$as_val"'`
44772
 
   if test "x$as_val" = x""yes; then
44773
 
  
44774
 
    LDFLAGS=$save_old_LDFLAGS
44775
 
    ext_shared=$save_ext_shared
44776
 
    
44777
 
        { $as_echo "$as_me:$LINENO: checking for DBM using GDBM" >&5
44778
 
$as_echo_n "checking for DBM using GDBM... " >&6; }
44779
 
        
44780
 
cat >>confdefs.h <<_ACEOF
44781
 
@%:@define DBM_INCLUDE_FILE "$THIS_INCLUDE"
44782
 
_ACEOF
44783
 
 
44784
 
        if test "$LIB" = "gdbm"; then
44785
 
          
44786
 
cat >>confdefs.h <<_ACEOF
44787
 
@%:@define DBM_VERSION "GDBM"
44788
 
_ACEOF
44789
 
 
44790
 
          { $as_echo "$as_me:$LINENO: result: yes" >&5
44791
 
$as_echo "yes" >&6; }
44792
 
        else
44793
 
          
44794
 
cat >>confdefs.h <<_ACEOF
44795
 
@%:@define DBM_VERSION "DBM"
44796
 
_ACEOF
44797
 
 
44798
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
44799
 
$as_echo "no" >&6; }
44800
 
        fi
44801
 
        
44802
 
cat >>confdefs.h <<\_ACEOF
44803
 
@%:@define DBA_DBM 1
44804
 
_ACEOF
44805
 
 
44806
 
        THIS_LIBS=$LIB
44807
 
      
44808
 
  
44809
 
else
44810
 
  
44811
 
    LDFLAGS=$save_old_LDFLAGS
44812
 
    ext_shared=$save_ext_shared
44813
 
    unset ac_cv_lib_$LIB_dbminit
44814
 
    
44815
 
  
44816
 
fi
44817
 
 
44818
 
      if test -n "$THIS_LIBS"; then
44819
 
        break
44820
 
      fi
44821
 
    done
44822
 
  fi
44823
 
  
44824
 
  
44825
 
  if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
44826
 
    THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
44827
 
  fi
44828
 
 
44829
 
  
44830
 
  THIS_RESULT=yes
44831
 
  if test -z "$THIS_INCLUDE"; then
44832
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
44833
 
$as_echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
44834
 
   { (exit 1); exit 1; }; }
44835
 
  fi
44836
 
  if test -z "$THIS_LIBS"; then
44837
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
44838
 
$as_echo "$as_me: error: DBA: Could not find necessary library." >&2;}
44839
 
   { (exit 1); exit 1; }; }
44840
 
  fi
44841
 
 
44842
 
  
44843
 
  
44844
 
 
44845
 
  if test "$ext_shared" = "yes"; then
44846
 
    DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
44847
 
    if test -n "$THIS_LFLAGS"; then
44848
 
      
44849
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
44850
 
    
44851
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
44852
 
    ai_p=$THIS_LFLAGS
44853
 
  else
44854
 
    
44855
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
44856
 
    
44857
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44858
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
44859
 
  fi
44860
 
 
44861
 
    
44862
 
      if test "$ext_shared" = "yes"; then
44863
 
        DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
44864
 
        test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
44865
 
      else
44866
 
        
44867
 
  
44868
 
  
44869
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44870
 
  
44871
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44872
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
44873
 
    eval "LIBPATH$unique=set"
44874
 
    
44875
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44876
 
    LDFLAGS="$LDFLAGS -L$ai_p"
44877
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
44878
 
  
44879
 
  fi
44880
 
 
44881
 
 
44882
 
      fi
44883
 
    
44884
 
  fi
44885
 
 
44886
 
    fi
44887
 
  else
44888
 
    
44889
 
 
44890
 
  if test -n "$THIS_LFLAGS"; then
44891
 
    
44892
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
44893
 
    
44894
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
44895
 
    ai_p=$THIS_LFLAGS
44896
 
  else
44897
 
    
44898
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
44899
 
    
44900
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44901
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
44902
 
  fi
44903
 
 
44904
 
    
44905
 
      
44906
 
  
44907
 
  
44908
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44909
 
  
44910
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44911
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
44912
 
    eval "LIBPATH$unique=set"
44913
 
    
44914
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44915
 
    LDFLAGS="$LDFLAGS -L$ai_p"
44916
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
44917
 
  
44918
 
  fi
44919
 
 
44920
 
 
44921
 
    
44922
 
  fi
44923
 
 
44924
 
  fi
44925
 
  
44926
 
  
44927
 
  case $THIS_LIBS in
44928
 
  c|c_r|pthread*) ;;
44929
 
  *) 
44930
 
      LIBS="-l$THIS_LIBS $LIBS" 
44931
 
   ;;
44932
 
  esac
44933
 
 
44934
 
 
44935
 
 
44936
 
 
44937
 
  fi
44938
 
 
44939
 
 
44940
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
44941
 
 
44942
 
fi
44943
 
 
44944
 
  THIS_NAME=DBM
44945
 
  if test -n ""; then
44946
 
    THIS_FULL_NAME=""
44947
 
  else
44948
 
    THIS_FULL_NAME="$THIS_NAME"
44949
 
  fi
44950
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
44951
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
44952
 
  if test -n ""; then
44953
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
44954
 
$as_echo "$as_me: error: " >&2;}
44955
 
   { (exit 1); exit 1; }; }
44956
 
  fi
44957
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
44958
 
    HAVE_DBA=1
44959
 
    eval HAVE_$THIS_NAME=1
44960
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
44961
 
$as_echo "$THIS_RESULT" >&6; }
44962
 
  else
44963
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
44964
 
$as_echo "no" >&6; }
44965
 
  fi
44966
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
44967
 
 
44968
 
 
44969
 
if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then
44970
 
  php_dba_enable=yes
44971
 
else
44972
 
  php_dba_enable=no
44973
 
fi
44974
 
 
44975
 
 
44976
 
php_with_cdb=$php_dba_enable
44977
 
 
44978
 
 
44979
 
 
44980
 
@%:@ Check whether --with-cdb was given.
44981
 
if test "${with_cdb+set}" = set; then
44982
 
  withval=$with_cdb; PHP_CDB=$withval
44983
 
else
44984
 
  
44985
 
  PHP_CDB=$php_dba_enable
44986
 
  
44987
 
 
44988
 
fi
44989
 
 
44990
 
 
44991
 
ext_output=$PHP_CDB
44992
 
 
44993
 
 
44994
 
 
44995
 
 
44996
 
 
44997
 
 
44998
 
php_enable_inifile=$php_dba_enable
44999
 
 
45000
 
 
45001
 
@%:@ Check whether --enable-inifile was given.
45002
 
if test "${enable_inifile+set}" = set; then
45003
 
  enableval=$enable_inifile; PHP_INIFILE=$enableval
45004
 
else
45005
 
  
45006
 
  PHP_INIFILE=$php_dba_enable
45007
 
  
45008
 
 
45009
 
fi
45010
 
 
45011
 
 
45012
 
ext_output=$PHP_INIFILE
45013
 
 
45014
 
 
45015
 
 
45016
 
 
45017
 
 
45018
 
 
45019
 
php_enable_flatfile=$php_dba_enable
45020
 
 
45021
 
 
45022
 
@%:@ Check whether --enable-flatfile was given.
45023
 
if test "${enable_flatfile+set}" = set; then
45024
 
  enableval=$enable_flatfile; PHP_FLATFILE=$enableval
45025
 
else
45026
 
  
45027
 
  PHP_FLATFILE=$php_dba_enable
45028
 
  
45029
 
 
45030
 
fi
45031
 
 
45032
 
 
45033
 
ext_output=$PHP_FLATFILE
45034
 
 
45035
 
 
45036
 
 
45037
 
 
45038
 
 
45039
 
# CDB
45040
 
if test "$PHP_CDB" = "yes"; then
45041
 
  
45042
 
cat >>confdefs.h <<\_ACEOF
45043
 
@%:@define DBA_CDB_BUILTIN 1
45044
 
_ACEOF
45045
 
 
45046
 
  
45047
 
cat >>confdefs.h <<\_ACEOF
45048
 
@%:@define DBA_CDB_MAKE 1
45049
 
_ACEOF
45050
 
 
45051
 
  
45052
 
cat >>confdefs.h <<\_ACEOF
45053
 
@%:@define DBA_CDB 1
45054
 
_ACEOF
45055
 
 
45056
 
  cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c"
45057
 
  THIS_RESULT="builtin"
45058
 
elif test "$PHP_CDB" != "no"; then
45059
 
  
45060
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
45061
 
 
45062
 
  for i in $PHP_CDB /usr/local /usr; do
45063
 
    if test -f "$i/include/cdb.h"; then
45064
 
      THIS_PREFIX=$i
45065
 
      THIS_INCLUDE=$i/include/cdb.h
45066
 
      break
45067
 
    fi
45068
 
  done
45069
 
 
45070
 
  if test -n "$THIS_INCLUDE"; then
45071
 
    for LIB in cdb c; do
45072
 
      
45073
 
  save_old_LDFLAGS=$LDFLAGS
45074
 
  ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
45075
 
  
45076
 
  save_ext_shared=$ext_shared
45077
 
  ext_shared=yes
45078
 
  
45079
 
  for ac_i in $ac_stuff; do
45080
 
    case $ac_i in
45081
 
    -pthread)
45082
 
      if test "$ext_shared" = "yes"; then
45083
 
        LDFLAGS="$LDFLAGS -pthread"
45084
 
      else
45085
 
        
45086
 
  
45087
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45088
 
  
45089
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45090
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
45091
 
    eval "EXTRA_LDFLAGS$unique=set"
45092
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45093
 
  fi
45094
 
 
45095
 
      fi
45096
 
    ;;
45097
 
    -l*)
45098
 
      ac_ii=`echo $ac_i|cut -c 3-`
45099
 
      
45100
 
  
45101
 
  case $ac_ii in
45102
 
  c|c_r|pthread*) ;;
45103
 
  *) 
45104
 
    if test "$ext_shared" = "yes"; then
45105
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
45106
 
    else
45107
 
      
45108
 
  
45109
 
  case $ac_ii in
45110
 
  c|c_r|pthread*) ;;
45111
 
  *) 
45112
 
      LIBS="$LIBS -l$ac_ii" 
45113
 
   ;;
45114
 
  esac
45115
 
 
45116
 
 
45117
 
    fi
45118
 
   ;;
45119
 
  esac
45120
 
 
45121
 
 
45122
 
    ;;
45123
 
    -L*)
45124
 
      ac_ii=`echo $ac_i|cut -c 3-`
45125
 
      
45126
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45127
 
    
45128
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45129
 
    ai_p=$ac_ii
45130
 
  else
45131
 
    
45132
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45133
 
    
45134
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45135
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45136
 
  fi
45137
 
 
45138
 
    
45139
 
      if test "$ext_shared" = "yes"; then
45140
 
        LDFLAGS="-L$ai_p $LDFLAGS"
45141
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45142
 
      else
45143
 
        
45144
 
  
45145
 
  
45146
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45147
 
  
45148
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45149
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
45150
 
    eval "LIBPATH$unique=set"
45151
 
    
45152
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45153
 
    LDFLAGS="$LDFLAGS -L$ai_p"
45154
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
45155
 
  
45156
 
  fi
45157
 
 
45158
 
 
45159
 
      fi
45160
 
    
45161
 
  fi
45162
 
 
45163
 
    ;;
45164
 
    esac
45165
 
  done
45166
 
 
45167
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh`
45168
 
{ $as_echo "$as_me:$LINENO: checking for cdb_read in -l$LIB" >&5
45169
 
$as_echo_n "checking for cdb_read in -l$LIB... " >&6; }
45170
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
45171
 
  $as_echo_n "(cached) " >&6
45172
 
else
45173
 
  ac_check_lib_save_LIBS=$LIBS
45174
 
LIBS="-l$LIB  $LIBS"
45175
 
cat >conftest.$ac_ext <<_ACEOF
45176
 
/* confdefs.h.  */
45177
 
_ACEOF
45178
 
cat confdefs.h >>conftest.$ac_ext
45179
 
cat >>conftest.$ac_ext <<_ACEOF
45180
 
/* end confdefs.h.  */
45181
 
 
45182
 
/* Override any GCC internal prototype to avoid an error.
45183
 
   Use char because int might match the return type of a GCC
45184
 
   builtin and then its argument prototype would still apply.  */
45185
 
#ifdef __cplusplus
45186
 
extern "C"
45187
 
#endif
45188
 
char cdb_read ();
45189
 
int
45190
 
main ()
45191
 
{
45192
 
return cdb_read ();
45193
 
  ;
45194
 
  return 0;
45195
 
}
45196
 
_ACEOF
45197
 
rm -f conftest.$ac_objext conftest$ac_exeext
45198
 
if { (ac_try="$ac_link"
45199
 
case "(($ac_try" in
45200
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45201
 
  *) ac_try_echo=$ac_try;;
45202
 
esac
45203
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45204
 
$as_echo "$ac_try_echo") >&5
45205
 
  (eval "$ac_link") 2>conftest.er1
45206
 
  ac_status=$?
45207
 
  grep -v '^ *+' conftest.er1 >conftest.err
45208
 
  rm -f conftest.er1
45209
 
  cat conftest.err >&5
45210
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45211
 
  (exit $ac_status); } && {
45212
 
         test -z "$ac_c_werror_flag" ||
45213
 
         test ! -s conftest.err
45214
 
       } && test -s conftest$ac_exeext && {
45215
 
         test "$cross_compiling" = yes ||
45216
 
         $as_test_x conftest$ac_exeext
45217
 
       }; then
45218
 
  eval "$as_ac_Lib=yes"
45219
 
else
45220
 
  $as_echo "$as_me: failed program was:" >&5
45221
 
sed 's/^/| /' conftest.$ac_ext >&5
45222
 
 
45223
 
        eval "$as_ac_Lib=no"
45224
 
fi
45225
 
 
45226
 
rm -rf conftest.dSYM
45227
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45228
 
      conftest$ac_exeext conftest.$ac_ext
45229
 
LIBS=$ac_check_lib_save_LIBS
45230
 
fi
45231
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
45232
 
                 $as_echo "$as_val"'`
45233
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45234
 
$as_echo "$ac_res" >&6; }
45235
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
45236
 
                 $as_echo "$as_val"'`
45237
 
   if test "x$as_val" = x""yes; then
45238
 
  
45239
 
    LDFLAGS=$save_old_LDFLAGS
45240
 
    ext_shared=$save_ext_shared
45241
 
    
45242
 
        
45243
 
cat >>confdefs.h <<_ACEOF
45244
 
@%:@define CDB_INCLUDE_FILE "$THIS_INCLUDE"
45245
 
_ACEOF
45246
 
 
45247
 
        
45248
 
cat >>confdefs.h <<\_ACEOF
45249
 
@%:@define DBA_CDB 1
45250
 
_ACEOF
45251
 
 
45252
 
        THIS_LIBS=$LIB
45253
 
      
45254
 
  
45255
 
else
45256
 
  
45257
 
    LDFLAGS=$save_old_LDFLAGS
45258
 
    ext_shared=$save_ext_shared
45259
 
    unset ac_cv_lib_$LIB_cdb_read
45260
 
    
45261
 
  
45262
 
fi
45263
 
 
45264
 
      if test -n "$THIS_LIBS"; then
45265
 
        break
45266
 
      fi
45267
 
    done
45268
 
  fi
45269
 
 
45270
 
  
45271
 
  if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
45272
 
    THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
45273
 
  fi
45274
 
 
45275
 
  
45276
 
  THIS_RESULT=yes
45277
 
  if test -z "$THIS_INCLUDE"; then
45278
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary header file(s)." >&5
45279
 
$as_echo "$as_me: error: DBA: Could not find necessary header file(s)." >&2;}
45280
 
   { (exit 1); exit 1; }; }
45281
 
  fi
45282
 
  if test -z "$THIS_LIBS"; then
45283
 
    { { $as_echo "$as_me:$LINENO: error: DBA: Could not find necessary library." >&5
45284
 
$as_echo "$as_me: error: DBA: Could not find necessary library." >&2;}
45285
 
   { (exit 1); exit 1; }; }
45286
 
  fi
45287
 
 
45288
 
  
45289
 
  
45290
 
 
45291
 
  if test "$ext_shared" = "yes"; then
45292
 
    DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
45293
 
    if test -n "$THIS_LFLAGS"; then
45294
 
      
45295
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
45296
 
    
45297
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
45298
 
    ai_p=$THIS_LFLAGS
45299
 
  else
45300
 
    
45301
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
45302
 
    
45303
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45304
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
45305
 
  fi
45306
 
 
45307
 
    
45308
 
      if test "$ext_shared" = "yes"; then
45309
 
        DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
45310
 
        test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
45311
 
      else
45312
 
        
45313
 
  
45314
 
  
45315
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45316
 
  
45317
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45318
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
45319
 
    eval "LIBPATH$unique=set"
45320
 
    
45321
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45322
 
    LDFLAGS="$LDFLAGS -L$ai_p"
45323
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
45324
 
  
45325
 
  fi
45326
 
 
45327
 
 
45328
 
      fi
45329
 
    
45330
 
  fi
45331
 
 
45332
 
    fi
45333
 
  else
45334
 
    
45335
 
 
45336
 
  if test -n "$THIS_LFLAGS"; then
45337
 
    
45338
 
  if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
45339
 
    
45340
 
  if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
45341
 
    ai_p=$THIS_LFLAGS
45342
 
  else
45343
 
    
45344
 
    ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
45345
 
    
45346
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45347
 
    ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
45348
 
  fi
45349
 
 
45350
 
    
45351
 
      
45352
 
  
45353
 
  
45354
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45355
 
  
45356
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45357
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
45358
 
    eval "LIBPATH$unique=set"
45359
 
    
45360
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45361
 
    LDFLAGS="$LDFLAGS -L$ai_p"
45362
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
45363
 
  
45364
 
  fi
45365
 
 
45366
 
 
45367
 
    
45368
 
  fi
45369
 
 
45370
 
  fi
45371
 
  
45372
 
  
45373
 
  case $THIS_LIBS in
45374
 
  c|c_r|pthread*) ;;
45375
 
  *) 
45376
 
      LIBS="-l$THIS_LIBS $LIBS" 
45377
 
   ;;
45378
 
  esac
45379
 
 
45380
 
 
45381
 
 
45382
 
 
45383
 
  fi
45384
 
 
45385
 
 
45386
 
  unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
45387
 
 
45388
 
fi
45389
 
 
45390
 
  THIS_NAME=CDB
45391
 
  if test -n ""; then
45392
 
    THIS_FULL_NAME=""
45393
 
  else
45394
 
    THIS_FULL_NAME="$THIS_NAME"
45395
 
  fi
45396
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
45397
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
45398
 
  if test -n ""; then
45399
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
45400
 
$as_echo "$as_me: error: " >&2;}
45401
 
   { (exit 1); exit 1; }; }
45402
 
  fi
45403
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
45404
 
    HAVE_DBA=1
45405
 
    eval HAVE_$THIS_NAME=1
45406
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
45407
 
$as_echo "$THIS_RESULT" >&6; }
45408
 
  else
45409
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
45410
 
$as_echo "no" >&6; }
45411
 
  fi
45412
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
45413
 
 
45414
 
 
45415
 
# INIFILE
45416
 
if test "$PHP_INIFILE" != "no"; then
45417
 
  
45418
 
cat >>confdefs.h <<\_ACEOF
45419
 
@%:@define DBA_INIFILE 1
45420
 
_ACEOF
45421
 
 
45422
 
  ini_sources="libinifile/inifile.c"
45423
 
  THIS_RESULT="builtin"
45424
 
fi
45425
 
 
45426
 
  THIS_NAME=INIFILE
45427
 
  if test -n "INI File"; then
45428
 
    THIS_FULL_NAME="INI File"
45429
 
  else
45430
 
    THIS_FULL_NAME="$THIS_NAME"
45431
 
  fi
45432
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
45433
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
45434
 
  if test -n ""; then
45435
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
45436
 
$as_echo "$as_me: error: " >&2;}
45437
 
   { (exit 1); exit 1; }; }
45438
 
  fi
45439
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
45440
 
    HAVE_DBA=1
45441
 
    eval HAVE_$THIS_NAME=1
45442
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
45443
 
$as_echo "$THIS_RESULT" >&6; }
45444
 
  else
45445
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
45446
 
$as_echo "no" >&6; }
45447
 
  fi
45448
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
45449
 
 
45450
 
 
45451
 
# FLATFILE
45452
 
if test "$PHP_FLATFILE" != "no"; then
45453
 
  
45454
 
cat >>confdefs.h <<\_ACEOF
45455
 
@%:@define DBA_FLATFILE 1
45456
 
_ACEOF
45457
 
 
45458
 
  flat_sources="libflatfile/flatfile.c"
45459
 
  THIS_RESULT="builtin"
45460
 
fi
45461
 
 
45462
 
  THIS_NAME=FLATFILE
45463
 
  if test -n "FlatFile"; then
45464
 
    THIS_FULL_NAME="FlatFile"
45465
 
  else
45466
 
    THIS_FULL_NAME="$THIS_NAME"
45467
 
  fi
45468
 
  { $as_echo "$as_me:$LINENO: checking for $THIS_FULL_NAME support" >&5
45469
 
$as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
45470
 
  if test -n ""; then
45471
 
    { { $as_echo "$as_me:$LINENO: error: " >&5
45472
 
$as_echo "$as_me: error: " >&2;}
45473
 
   { (exit 1); exit 1; }; }
45474
 
  fi
45475
 
  if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
45476
 
    HAVE_DBA=1
45477
 
    eval HAVE_$THIS_NAME=1
45478
 
    { $as_echo "$as_me:$LINENO: result: $THIS_RESULT" >&5
45479
 
$as_echo "$THIS_RESULT" >&6; }
45480
 
  else
45481
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
45482
 
$as_echo "no" >&6; }
45483
 
  fi
45484
 
  unset THIS_RESULT THIS_NAME THIS_FULL_NAME
45485
 
 
45486
 
 
45487
 
{ $as_echo "$as_me:$LINENO: checking whether to enable DBA interface" >&5
45488
 
$as_echo_n "checking whether to enable DBA interface... " >&6; }
45489
 
if test "$HAVE_DBA" = "1"; then
45490
 
  if test "$ext_shared" = "yes"; then
45491
 
    { $as_echo "$as_me:$LINENO: result: yes, shared" >&5
45492
 
$as_echo "yes, shared" >&6; }
45493
 
  else
45494
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
45495
 
$as_echo "yes" >&6; }
45496
 
  fi
45497
 
  
45498
 
cat >>confdefs.h <<\_ACEOF
45499
 
@%:@define HAVE_DBA 1
45500
 
_ACEOF
45501
 
 
45502
 
  
45503
 
  ext_builddir=ext/dba
45504
 
  ext_srcdir=$abs_srcdir/ext/dba
45505
 
 
45506
 
  ac_extra=
45507
 
 
45508
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
45509
 
    PHP_DBA_SHARED=no
45510
 
    
45511
 
  
45512
 
  case ext/dba in
45513
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45514
 
  /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45515
 
  *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45516
 
  esac
45517
 
  
45518
 
  
45519
 
 
45520
 
  b_c_pre=$php_c_pre
45521
 
  b_cxx_pre=$php_cxx_pre
45522
 
  b_c_meta=$php_c_meta
45523
 
  b_cxx_meta=$php_cxx_meta
45524
 
  b_c_post=$php_c_post
45525
 
  b_cxx_post=$php_cxx_post
45526
 
  b_lo=$php_lo
45527
 
 
45528
 
 
45529
 
  old_IFS=$IFS
45530
 
  for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c $cdb_sources $flat_sources $ini_sources; do
45531
 
  
45532
 
      IFS=.
45533
 
      set $ac_src
45534
 
      ac_obj=$1
45535
 
      IFS=$old_IFS
45536
 
      
45537
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
45538
 
 
45539
 
      case $ac_src in
45540
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45541
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45542
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45543
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45544
 
      esac
45545
 
 
45546
 
    cat >>Makefile.objects<<EOF
45547
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45548
 
        $ac_comp
45549
 
EOF
45550
 
  done
45551
 
 
45552
 
 
45553
 
    EXT_STATIC="$EXT_STATIC dba"
45554
 
    if test "$ext_shared" != "nocli"; then
45555
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
45556
 
    fi
45557
 
  else
45558
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
45559
 
      PHP_DBA_SHARED=yes
45560
 
      
45561
 
  case ext/dba in
45562
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45563
 
  /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45564
 
  *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45565
 
  esac
45566
 
  
45567
 
  
45568
 
 
45569
 
  b_c_pre=$shared_c_pre
45570
 
  b_cxx_pre=$shared_cxx_pre
45571
 
  b_c_meta=$shared_c_meta
45572
 
  b_cxx_meta=$shared_cxx_meta
45573
 
  b_c_post=$shared_c_post
45574
 
  b_cxx_post=$shared_cxx_post
45575
 
  b_lo=$shared_lo
45576
 
 
45577
 
 
45578
 
  old_IFS=$IFS
45579
 
  for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c $cdb_sources $flat_sources $ini_sources; do
45580
 
  
45581
 
      IFS=.
45582
 
      set $ac_src
45583
 
      ac_obj=$1
45584
 
      IFS=$old_IFS
45585
 
      
45586
 
      shared_objects_dba="$shared_objects_dba $ac_bdir$ac_obj.lo"
45587
 
 
45588
 
      case $ac_src in
45589
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45590
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45591
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45592
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45593
 
      esac
45594
 
 
45595
 
    cat >>Makefile.objects<<EOF
45596
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45597
 
        $ac_comp
45598
 
EOF
45599
 
  done
45600
 
 
45601
 
      case $host_alias in
45602
 
        *netware*)
45603
 
          
45604
 
  install_modules="install-modules"
45605
 
 
45606
 
  case $host_alias in
45607
 
    *aix*)
45608
 
      suffix=so
45609
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpdba.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(PHPDBA_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpdba.so '$ext_builddir'/phpdba.so'
45610
 
      ;;
45611
 
    *netware*)
45612
 
      suffix=nlm
45613
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) -L$(top_builddir)/netware -lphp5lib $(DBA_SHARED_LIBADD)'
45614
 
      ;;
45615
 
    *)
45616
 
      suffix=la
45617
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(PHPDBA_SHARED_LIBADD)'
45618
 
      ;;
45619
 
  esac
45620
 
 
45621
 
  if test "x" = "xyes"; then
45622
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdba.$suffix"
45623
 
  else
45624
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdba.$suffix"
45625
 
  fi
45626
 
  
45627
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
45628
 
 
45629
 
  cat >>Makefile.objects<<EOF
45630
 
\$(phplibdir)/phpdba.$suffix: $ext_builddir/phpdba.$suffix
45631
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpdba.$suffix \$(phplibdir)
45632
 
 
45633
 
$ext_builddir/phpdba.$suffix: \$(shared_objects_dba) \$(PHPDBA_SHARED_DEPENDENCIES)
45634
 
        $link_cmd
45635
 
 
45636
 
EOF
45637
 
 
45638
 
          ;;
45639
 
        *)
45640
 
          
45641
 
  install_modules="install-modules"
45642
 
 
45643
 
  case $host_alias in
45644
 
    *aix*)
45645
 
      suffix=so
45646
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/dba.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(DBA_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/dba.so '$ext_builddir'/dba.so'
45647
 
      ;;
45648
 
    *netware*)
45649
 
      suffix=nlm
45650
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
45651
 
      ;;
45652
 
    *)
45653
 
      suffix=la
45654
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dba) $(DBA_SHARED_LIBADD)'
45655
 
      ;;
45656
 
  esac
45657
 
 
45658
 
  if test "x" = "xyes"; then
45659
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dba.$suffix"
45660
 
  else
45661
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/dba.$suffix"
45662
 
  fi
45663
 
  
45664
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
45665
 
 
45666
 
  cat >>Makefile.objects<<EOF
45667
 
\$(phplibdir)/dba.$suffix: $ext_builddir/dba.$suffix
45668
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/dba.$suffix \$(phplibdir)
45669
 
 
45670
 
$ext_builddir/dba.$suffix: \$(shared_objects_dba) \$(DBA_SHARED_DEPENDENCIES)
45671
 
        $link_cmd
45672
 
 
45673
 
EOF
45674
 
 
45675
 
          ;;
45676
 
      esac
45677
 
      
45678
 
cat >>confdefs.h <<_ACEOF
45679
 
@%:@define COMPILE_DL_DBA 1
45680
 
_ACEOF
45681
 
 
45682
 
    fi
45683
 
  fi
45684
 
 
45685
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
45686
 
    PHP_DBA_SHARED=no
45687
 
    case "$PHP_SAPI" in
45688
 
      cgi|embed)
45689
 
        
45690
 
  
45691
 
  case ext/dba in
45692
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45693
 
  /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45694
 
  *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45695
 
  esac
45696
 
  
45697
 
  
45698
 
 
45699
 
  b_c_pre=$php_c_pre
45700
 
  b_cxx_pre=$php_cxx_pre
45701
 
  b_c_meta=$php_c_meta
45702
 
  b_cxx_meta=$php_cxx_meta
45703
 
  b_c_post=$php_c_post
45704
 
  b_cxx_post=$php_cxx_post
45705
 
  b_lo=$php_lo
45706
 
 
45707
 
 
45708
 
  old_IFS=$IFS
45709
 
  for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c $cdb_sources $flat_sources $ini_sources; do
45710
 
  
45711
 
      IFS=.
45712
 
      set $ac_src
45713
 
      ac_obj=$1
45714
 
      IFS=$old_IFS
45715
 
      
45716
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
45717
 
 
45718
 
      case $ac_src in
45719
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45720
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45721
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45722
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45723
 
      esac
45724
 
 
45725
 
    cat >>Makefile.objects<<EOF
45726
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45727
 
        $ac_comp
45728
 
EOF
45729
 
  done
45730
 
 
45731
 
 
45732
 
        EXT_STATIC="$EXT_STATIC dba"
45733
 
        ;;
45734
 
      *)
45735
 
        
45736
 
  
45737
 
  case ext/dba in
45738
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45739
 
  /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45740
 
  *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45741
 
  esac
45742
 
  
45743
 
  
45744
 
 
45745
 
  b_c_pre=$php_c_pre
45746
 
  b_cxx_pre=$php_cxx_pre
45747
 
  b_c_meta=$php_c_meta
45748
 
  b_cxx_meta=$php_cxx_meta
45749
 
  b_c_post=$php_c_post
45750
 
  b_cxx_post=$php_cxx_post
45751
 
  b_lo=$php_lo
45752
 
 
45753
 
 
45754
 
  old_IFS=$IFS
45755
 
  for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c $cdb_sources $flat_sources $ini_sources; do
45756
 
  
45757
 
      IFS=.
45758
 
      set $ac_src
45759
 
      ac_obj=$1
45760
 
      IFS=$old_IFS
45761
 
      
45762
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
45763
 
 
45764
 
      case $ac_src in
45765
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45766
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45767
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45768
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45769
 
      esac
45770
 
 
45771
 
    cat >>Makefile.objects<<EOF
45772
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45773
 
        $ac_comp
45774
 
EOF
45775
 
  done
45776
 
 
45777
 
 
45778
 
        ;;
45779
 
    esac
45780
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
45781
 
  fi
45782
 
  
45783
 
  
45784
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
45785
 
  
45786
 
 
45787
 
 
45788
 
  if test "$ext_builddir" = "."; then
45789
 
    PHP_PECL_EXTENSION=dba
45790
 
    
45791
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
45792
 
 
45793
 
  fi
45794
 
 
45795
 
  
45796
 
  
45797
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/libinifile"
45798
 
  
45799
 
 
45800
 
  
45801
 
  
45802
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/libcdb"
45803
 
  
45804
 
 
45805
 
  
45806
 
  
45807
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/libflatfile"
45808
 
  
45809
 
 
45810
 
  
45811
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST DBA_SHARED_LIBADD"
45812
 
 
45813
 
else
45814
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
45815
 
$as_echo "no" >&6; }
45816
 
fi
45817
 
 
45818
 
 
45819
 
 
45820
 
php_enable_dom=yes
45821
 
 
45822
 
{ $as_echo "$as_me:$LINENO: checking whether to enable DOM support" >&5
45823
 
$as_echo_n "checking whether to enable DOM support... " >&6; }
45824
 
@%:@ Check whether --enable-dom was given.
45825
 
if test "${enable_dom+set}" = set; then
45826
 
  enableval=$enable_dom; PHP_DOM=$enableval
45827
 
else
45828
 
  
45829
 
  PHP_DOM=yes
45830
 
  test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL
45831
 
 
45832
 
fi
45833
 
 
45834
 
 
45835
 
 
45836
 
ext_output="yes, shared"
45837
 
ext_shared=yes
45838
 
case $PHP_DOM in
45839
 
shared,*)
45840
 
  PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'`
45841
 
  ;;
45842
 
shared)
45843
 
  PHP_DOM=yes
45844
 
  ;;
45845
 
no)
45846
 
  ext_output=no
45847
 
  ext_shared=no
45848
 
  ;;
45849
 
*)
45850
 
  ext_output=yes
45851
 
  ext_shared=no
45852
 
  ;;
45853
 
esac
45854
 
 
45855
 
 
45856
 
 
45857
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
45858
 
$as_echo "$ext_output" >&6; }
45859
 
 
45860
 
 
45861
 
 
45862
 
 
45863
 
if test -z "$PHP_LIBXML_DIR"; then
45864
 
  
45865
 
php_with_libxml_dir=no
45866
 
 
45867
 
{ $as_echo "$as_me:$LINENO: checking libxml2 install dir" >&5
45868
 
$as_echo_n "checking libxml2 install dir... " >&6; }
45869
 
 
45870
 
@%:@ Check whether --with-libxml-dir was given.
45871
 
if test "${with_libxml_dir+set}" = set; then
45872
 
  withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
45873
 
else
45874
 
  
45875
 
  PHP_LIBXML_DIR=no
45876
 
  
45877
 
 
45878
 
fi
45879
 
 
45880
 
 
45881
 
ext_output=$PHP_LIBXML_DIR
45882
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
45883
 
$as_echo "$ext_output" >&6; }
45884
 
 
45885
 
 
45886
 
 
45887
 
fi
45888
 
 
45889
 
if test "$PHP_DOM" != "no"; then
45890
 
 
45891
 
  if test "$PHP_LIBXML" = "no"; then   
45892
 
    { { $as_echo "$as_me:$LINENO: error: DOM extension requires LIBXML extension, add --enable-libxml" >&5
45893
 
$as_echo "$as_me: error: DOM extension requires LIBXML extension, add --enable-libxml" >&2;}
45894
 
   { (exit 1); exit 1; }; }
45895
 
  fi
45896
 
 
45897
 
  
45898
 
{ $as_echo "$as_me:$LINENO: checking for xml2-config path" >&5
45899
 
$as_echo_n "checking for xml2-config path... " >&6; }
45900
 
if test "${ac_cv_php_xml2_config_path+set}" = set; then
45901
 
  $as_echo_n "(cached) " >&6
45902
 
else
45903
 
  
45904
 
  for i in $PHP_LIBXML_DIR /usr/local /usr; do
45905
 
    if test -x "$i/bin/xml2-config"; then
45906
 
      ac_cv_php_xml2_config_path="$i/bin/xml2-config"
45907
 
      break
45908
 
    fi
45909
 
  done
45910
 
 
45911
 
fi
45912
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
45913
 
$as_echo "$ac_cv_php_xml2_config_path" >&6; }
45914
 
 
45915
 
  if test -x "$ac_cv_php_xml2_config_path"; then
45916
 
    XML2_CONFIG="$ac_cv_php_xml2_config_path"
45917
 
    libxml_full_version=`$XML2_CONFIG --version`
45918
 
    ac_IFS=$IFS
45919
 
    IFS="."
45920
 
    set $libxml_full_version
45921
 
    IFS=$ac_IFS
45922
 
    LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
45923
 
    if test "$LIBXML_VERSION" -ge "2006011"; then
45924
 
      LIBXML_LIBS=`$XML2_CONFIG --libs`
45925
 
      LIBXML_INCS=`$XML2_CONFIG --cflags`
45926
 
      
45927
 
  for ac_i in $LIBXML_LIBS; do
45928
 
    case $ac_i in
45929
 
    -pthread)
45930
 
      if test "$ext_shared" = "yes"; then
45931
 
        DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread"
45932
 
      else
45933
 
        
45934
 
  
45935
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45936
 
  
45937
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45938
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
45939
 
    eval "EXTRA_LDFLAGS$unique=set"
45940
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45941
 
  fi
45942
 
 
45943
 
      fi
45944
 
    ;;
45945
 
    -l*)
45946
 
      ac_ii=`echo $ac_i|cut -c 3-`
45947
 
      
45948
 
  
45949
 
  case $ac_ii in
45950
 
  c|c_r|pthread*) ;;
45951
 
  *) 
45952
 
    if test "$ext_shared" = "yes"; then
45953
 
        DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii" 
45954
 
    else
45955
 
      
45956
 
  
45957
 
  case $ac_ii in
45958
 
  c|c_r|pthread*) ;;
45959
 
  *) 
45960
 
      LIBS="$LIBS -l$ac_ii" 
45961
 
   ;;
45962
 
  esac
45963
 
 
45964
 
 
45965
 
    fi
45966
 
   ;;
45967
 
  esac
45968
 
 
45969
 
 
45970
 
    ;;
45971
 
    -L*)
45972
 
      ac_ii=`echo $ac_i|cut -c 3-`
45973
 
      
45974
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45975
 
    
45976
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45977
 
    ai_p=$ac_ii
45978
 
  else
45979
 
    
45980
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45981
 
    
45982
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45983
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45984
 
  fi
45985
 
 
45986
 
    
45987
 
      if test "$ext_shared" = "yes"; then
45988
 
        DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD"
45989
 
        test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD"
45990
 
      else
45991
 
        
45992
 
  
45993
 
  
45994
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45995
 
  
45996
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45997
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
45998
 
    eval "LIBPATH$unique=set"
45999
 
    
46000
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46001
 
    LDFLAGS="$LDFLAGS -L$ai_p"
46002
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
46003
 
  
46004
 
  fi
46005
 
 
46006
 
 
46007
 
      fi
46008
 
    
46009
 
  fi
46010
 
 
46011
 
    ;;
46012
 
    esac
46013
 
  done
46014
 
 
46015
 
      
46016
 
  for ac_i in $LIBXML_INCS; do
46017
 
    case $ac_i in
46018
 
    -I*)
46019
 
      ac_ii=`echo $ac_i|cut -c 3-`
46020
 
      
46021
 
  if test "$ac_ii" != "/usr/include"; then
46022
 
    
46023
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
46024
 
    ai_p=$ac_ii
46025
 
  else
46026
 
    
46027
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
46028
 
    
46029
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46030
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
46031
 
  fi
46032
 
 
46033
 
    
46034
 
  
46035
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46036
 
  
46037
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
46038
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
46039
 
    eval "INCLUDEPATH$unique=set"
46040
 
    
46041
 
      if test ""; then
46042
 
        INCLUDES="-I$ai_p $INCLUDES"
46043
 
      else
46044
 
        INCLUDES="$INCLUDES -I$ai_p"
46045
 
      fi
46046
 
    
46047
 
  fi
46048
 
 
46049
 
  fi
46050
 
 
46051
 
    ;;
46052
 
    esac
46053
 
  done
46054
 
 
46055
 
 
46056
 
            { $as_echo "$as_me:$LINENO: checking whether libxml build works" >&5
46057
 
$as_echo_n "checking whether libxml build works... " >&6; }
46058
 
if test "${php_cv_libxml_build_works+set}" = set; then
46059
 
  $as_echo_n "(cached) " >&6
46060
 
else
46061
 
  
46062
 
        
46063
 
  old_LIBS=$LIBS
46064
 
  LIBS="
46065
 
          $DOM_SHARED_LIBADD
46066
 
         $LIBS"
46067
 
  if test "$cross_compiling" = yes; then
46068
 
  
46069
 
    LIBS=$old_LIBS
46070
 
  
46071
 
else
46072
 
  cat >conftest.$ac_ext <<_ACEOF
46073
 
/* confdefs.h.  */
46074
 
_ACEOF
46075
 
cat confdefs.h >>conftest.$ac_ext
46076
 
cat >>conftest.$ac_ext <<_ACEOF
46077
 
/* end confdefs.h.  */
46078
 
 
46079
 
    
46080
 
    char xmlInitParser();
46081
 
    int main() {
46082
 
      xmlInitParser();
46083
 
      return 0;
46084
 
    }
46085
 
  
46086
 
_ACEOF
46087
 
rm -f conftest$ac_exeext
46088
 
if { (ac_try="$ac_link"
46089
 
case "(($ac_try" in
46090
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46091
 
  *) ac_try_echo=$ac_try;;
46092
 
esac
46093
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46094
 
$as_echo "$ac_try_echo") >&5
46095
 
  (eval "$ac_link") 2>&5
46096
 
  ac_status=$?
46097
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46098
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46099
 
  { (case "(($ac_try" in
46100
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46101
 
  *) ac_try_echo=$ac_try;;
46102
 
esac
46103
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46104
 
$as_echo "$ac_try_echo") >&5
46105
 
  (eval "$ac_try") 2>&5
46106
 
  ac_status=$?
46107
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46108
 
  (exit $ac_status); }; }; then
46109
 
  
46110
 
    LIBS=$old_LIBS
46111
 
    
46112
 
          php_cv_libxml_build_works=yes
46113
 
        
46114
 
  
46115
 
else
46116
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
46117
 
$as_echo "$as_me: failed program was:" >&5
46118
 
sed 's/^/| /' conftest.$ac_ext >&5
46119
 
 
46120
 
( exit $ac_status )
46121
 
 
46122
 
    LIBS=$old_LIBS
46123
 
    
46124
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
46125
 
$as_echo "no" >&6; }
46126
 
          { { $as_echo "$as_me:$LINENO: error: build test failed.  Please check the config.log for details." >&5
46127
 
$as_echo "$as_me: error: build test failed.  Please check the config.log for details." >&2;}
46128
 
   { (exit 1); exit 1; }; }
46129
 
        
46130
 
  
46131
 
fi
46132
 
rm -rf conftest.dSYM
46133
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46134
 
fi
46135
 
 
46136
 
 
46137
 
 
46138
 
      
46139
 
fi
46140
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
46141
 
$as_echo "$php_cv_libxml_build_works" >&6; }
46142
 
      if test "$php_cv_libxml_build_works" = "yes"; then
46143
 
        
46144
 
cat >>confdefs.h <<\_ACEOF
46145
 
@%:@define HAVE_LIBXML 1
46146
 
_ACEOF
46147
 
 
46148
 
      fi
46149
 
      
46150
 
    
46151
 
cat >>confdefs.h <<\_ACEOF
46152
 
@%:@define HAVE_DOM 1
46153
 
_ACEOF
46154
 
 
46155
 
    
46156
 
  ext_builddir=ext/dom
46157
 
  ext_srcdir=$abs_srcdir/ext/dom
46158
 
 
46159
 
  ac_extra=
46160
 
 
46161
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
46162
 
    PHP_DOM_SHARED=no
46163
 
    
46164
 
  
46165
 
  case ext/dom in
46166
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46167
 
  /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46168
 
  *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46169
 
  esac
46170
 
  
46171
 
  
46172
 
 
46173
 
  b_c_pre=$php_c_pre
46174
 
  b_cxx_pre=$php_cxx_pre
46175
 
  b_c_meta=$php_c_meta
46176
 
  b_cxx_meta=$php_cxx_meta
46177
 
  b_c_post=$php_c_post
46178
 
  b_cxx_post=$php_cxx_post
46179
 
  b_lo=$php_lo
46180
 
 
46181
 
 
46182
 
  old_IFS=$IFS
46183
 
  for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
46184
 
                            domstringlist.c domexception.c namelist.c \
46185
 
                            processinginstruction.c cdatasection.c \
46186
 
                            documentfragment.c domimplementation.c \
46187
 
                            element.c node.c string_extend.c characterdata.c \
46188
 
                            documenttype.c domimplementationlist.c entity.c \
46189
 
                            nodelist.c text.c comment.c domconfiguration.c \
46190
 
                            domimplementationsource.c entityreference.c \
46191
 
                            notation.c xpath.c dom_iterators.c \
46192
 
                            typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
46193
 
  
46194
 
      IFS=.
46195
 
      set $ac_src
46196
 
      ac_obj=$1
46197
 
      IFS=$old_IFS
46198
 
      
46199
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46200
 
 
46201
 
      case $ac_src in
46202
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46203
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46204
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46205
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46206
 
      esac
46207
 
 
46208
 
    cat >>Makefile.objects<<EOF
46209
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46210
 
        $ac_comp
46211
 
EOF
46212
 
  done
46213
 
 
46214
 
 
46215
 
    EXT_STATIC="$EXT_STATIC dom"
46216
 
    if test "$ext_shared" != "nocli"; then
46217
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
46218
 
    fi
46219
 
  else
46220
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
46221
 
      PHP_DOM_SHARED=yes
46222
 
      
46223
 
  case ext/dom in
46224
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46225
 
  /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46226
 
  *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46227
 
  esac
46228
 
  
46229
 
  
46230
 
 
46231
 
  b_c_pre=$shared_c_pre
46232
 
  b_cxx_pre=$shared_cxx_pre
46233
 
  b_c_meta=$shared_c_meta
46234
 
  b_cxx_meta=$shared_cxx_meta
46235
 
  b_c_post=$shared_c_post
46236
 
  b_cxx_post=$shared_cxx_post
46237
 
  b_lo=$shared_lo
46238
 
 
46239
 
 
46240
 
  old_IFS=$IFS
46241
 
  for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
46242
 
                            domstringlist.c domexception.c namelist.c \
46243
 
                            processinginstruction.c cdatasection.c \
46244
 
                            documentfragment.c domimplementation.c \
46245
 
                            element.c node.c string_extend.c characterdata.c \
46246
 
                            documenttype.c domimplementationlist.c entity.c \
46247
 
                            nodelist.c text.c comment.c domconfiguration.c \
46248
 
                            domimplementationsource.c entityreference.c \
46249
 
                            notation.c xpath.c dom_iterators.c \
46250
 
                            typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
46251
 
  
46252
 
      IFS=.
46253
 
      set $ac_src
46254
 
      ac_obj=$1
46255
 
      IFS=$old_IFS
46256
 
      
46257
 
      shared_objects_dom="$shared_objects_dom $ac_bdir$ac_obj.lo"
46258
 
 
46259
 
      case $ac_src in
46260
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46261
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46262
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46263
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46264
 
      esac
46265
 
 
46266
 
    cat >>Makefile.objects<<EOF
46267
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46268
 
        $ac_comp
46269
 
EOF
46270
 
  done
46271
 
 
46272
 
      case $host_alias in
46273
 
        *netware*)
46274
 
          
46275
 
  install_modules="install-modules"
46276
 
 
46277
 
  case $host_alias in
46278
 
    *aix*)
46279
 
      suffix=so
46280
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpdom.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(PHPDOM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpdom.so '$ext_builddir'/phpdom.so'
46281
 
      ;;
46282
 
    *netware*)
46283
 
      suffix=nlm
46284
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) -L$(top_builddir)/netware -lphp5lib $(DOM_SHARED_LIBADD)'
46285
 
      ;;
46286
 
    *)
46287
 
      suffix=la
46288
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(PHPDOM_SHARED_LIBADD)'
46289
 
      ;;
46290
 
  esac
46291
 
 
46292
 
  if test "x" = "xyes"; then
46293
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdom.$suffix"
46294
 
  else
46295
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdom.$suffix"
46296
 
  fi
46297
 
  
46298
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
46299
 
 
46300
 
  cat >>Makefile.objects<<EOF
46301
 
\$(phplibdir)/phpdom.$suffix: $ext_builddir/phpdom.$suffix
46302
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpdom.$suffix \$(phplibdir)
46303
 
 
46304
 
$ext_builddir/phpdom.$suffix: \$(shared_objects_dom) \$(PHPDOM_SHARED_DEPENDENCIES)
46305
 
        $link_cmd
46306
 
 
46307
 
EOF
46308
 
 
46309
 
          ;;
46310
 
        *)
46311
 
          
46312
 
  install_modules="install-modules"
46313
 
 
46314
 
  case $host_alias in
46315
 
    *aix*)
46316
 
      suffix=so
46317
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/dom.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(DOM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/dom.so '$ext_builddir'/dom.so'
46318
 
      ;;
46319
 
    *netware*)
46320
 
      suffix=nlm
46321
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
46322
 
      ;;
46323
 
    *)
46324
 
      suffix=la
46325
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_dom) $(DOM_SHARED_LIBADD)'
46326
 
      ;;
46327
 
  esac
46328
 
 
46329
 
  if test "x" = "xyes"; then
46330
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dom.$suffix"
46331
 
  else
46332
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/dom.$suffix"
46333
 
  fi
46334
 
  
46335
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
46336
 
 
46337
 
  cat >>Makefile.objects<<EOF
46338
 
\$(phplibdir)/dom.$suffix: $ext_builddir/dom.$suffix
46339
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/dom.$suffix \$(phplibdir)
46340
 
 
46341
 
$ext_builddir/dom.$suffix: \$(shared_objects_dom) \$(DOM_SHARED_DEPENDENCIES)
46342
 
        $link_cmd
46343
 
 
46344
 
EOF
46345
 
 
46346
 
          ;;
46347
 
      esac
46348
 
      
46349
 
cat >>confdefs.h <<_ACEOF
46350
 
@%:@define COMPILE_DL_DOM 1
46351
 
_ACEOF
46352
 
 
46353
 
    fi
46354
 
  fi
46355
 
 
46356
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
46357
 
    PHP_DOM_SHARED=no
46358
 
    case "$PHP_SAPI" in
46359
 
      cgi|embed)
46360
 
        
46361
 
  
46362
 
  case ext/dom in
46363
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46364
 
  /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46365
 
  *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46366
 
  esac
46367
 
  
46368
 
  
46369
 
 
46370
 
  b_c_pre=$php_c_pre
46371
 
  b_cxx_pre=$php_cxx_pre
46372
 
  b_c_meta=$php_c_meta
46373
 
  b_cxx_meta=$php_cxx_meta
46374
 
  b_c_post=$php_c_post
46375
 
  b_cxx_post=$php_cxx_post
46376
 
  b_lo=$php_lo
46377
 
 
46378
 
 
46379
 
  old_IFS=$IFS
46380
 
  for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
46381
 
                            domstringlist.c domexception.c namelist.c \
46382
 
                            processinginstruction.c cdatasection.c \
46383
 
                            documentfragment.c domimplementation.c \
46384
 
                            element.c node.c string_extend.c characterdata.c \
46385
 
                            documenttype.c domimplementationlist.c entity.c \
46386
 
                            nodelist.c text.c comment.c domconfiguration.c \
46387
 
                            domimplementationsource.c entityreference.c \
46388
 
                            notation.c xpath.c dom_iterators.c \
46389
 
                            typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
46390
 
  
46391
 
      IFS=.
46392
 
      set $ac_src
46393
 
      ac_obj=$1
46394
 
      IFS=$old_IFS
46395
 
      
46396
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46397
 
 
46398
 
      case $ac_src in
46399
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46400
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46401
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46402
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46403
 
      esac
46404
 
 
46405
 
    cat >>Makefile.objects<<EOF
46406
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46407
 
        $ac_comp
46408
 
EOF
46409
 
  done
46410
 
 
46411
 
 
46412
 
        EXT_STATIC="$EXT_STATIC dom"
46413
 
        ;;
46414
 
      *)
46415
 
        
46416
 
  
46417
 
  case ext/dom in
46418
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46419
 
  /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46420
 
  *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46421
 
  esac
46422
 
  
46423
 
  
46424
 
 
46425
 
  b_c_pre=$php_c_pre
46426
 
  b_cxx_pre=$php_cxx_pre
46427
 
  b_c_meta=$php_c_meta
46428
 
  b_cxx_meta=$php_cxx_meta
46429
 
  b_c_post=$php_c_post
46430
 
  b_cxx_post=$php_cxx_post
46431
 
  b_lo=$php_lo
46432
 
 
46433
 
 
46434
 
  old_IFS=$IFS
46435
 
  for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
46436
 
                            domstringlist.c domexception.c namelist.c \
46437
 
                            processinginstruction.c cdatasection.c \
46438
 
                            documentfragment.c domimplementation.c \
46439
 
                            element.c node.c string_extend.c characterdata.c \
46440
 
                            documenttype.c domimplementationlist.c entity.c \
46441
 
                            nodelist.c text.c comment.c domconfiguration.c \
46442
 
                            domimplementationsource.c entityreference.c \
46443
 
                            notation.c xpath.c dom_iterators.c \
46444
 
                            typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
46445
 
  
46446
 
      IFS=.
46447
 
      set $ac_src
46448
 
      ac_obj=$1
46449
 
      IFS=$old_IFS
46450
 
      
46451
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
46452
 
 
46453
 
      case $ac_src in
46454
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46455
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46456
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46457
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46458
 
      esac
46459
 
 
46460
 
    cat >>Makefile.objects<<EOF
46461
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46462
 
        $ac_comp
46463
 
EOF
46464
 
  done
46465
 
 
46466
 
 
46467
 
        ;;
46468
 
    esac
46469
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
46470
 
  fi
46471
 
  
46472
 
  
46473
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
46474
 
  
46475
 
 
46476
 
 
46477
 
  if test "$ext_builddir" = "."; then
46478
 
    PHP_PECL_EXTENSION=dom
46479
 
    
46480
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
46481
 
 
46482
 
  fi
46483
 
 
46484
 
    
46485
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST DOM_SHARED_LIBADD"
46486
 
 
46487
 
    
46488
 
  
46489
 
    for header_file in ext/dom/xml_common.h; do
46490
 
      
46491
 
  
46492
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
46493
 
  
46494
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
46495
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
46496
 
    eval "INSTALLHEADERS$unique=set"
46497
 
    
46498
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
46499
 
      
46500
 
  fi
46501
 
 
46502
 
    done 
46503
 
  
46504
 
 
46505
 
    
46506
 
  am_i_shared=$PHP_DOM_SHARED
46507
 
  is_it_shared=$PHP_LIBXML_SHARED
46508
 
  is_it_enabled=$PHP_LIBXML
46509
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
46510
 
    { { $as_echo "$as_me:$LINENO: error: 
46511
 
You've configured extension dom to build statically, but it
46512
 
depends on extension libxml, which you've configured to build shared.
46513
 
You either need to build dom shared or build libxml statically for the
46514
 
build to be successful.
46515
 
" >&5
46516
 
$as_echo "$as_me: error: 
46517
 
You've configured extension dom to build statically, but it
46518
 
depends on extension libxml, which you've configured to build shared.
46519
 
You either need to build dom shared or build libxml statically for the
46520
 
build to be successful.
46521
 
" >&2;}
46522
 
   { (exit 1); exit 1; }; }
46523
 
  fi
46524
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
46525
 
    { { $as_echo "$as_me:$LINENO: error: 
46526
 
You've configured extension dom, which depends on extension libxml,
46527
 
but you've either not enabled libxml, or have disabled it.
46528
 
" >&5
46529
 
$as_echo "$as_me: error: 
46530
 
You've configured extension dom, which depends on extension libxml,
46531
 
but you've either not enabled libxml, or have disabled it.
46532
 
" >&2;}
46533
 
   { (exit 1); exit 1; }; }
46534
 
  fi
46535
 
  
46536
 
  
46537
 
    else
46538
 
      { { $as_echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
46539
 
$as_echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
46540
 
   { (exit 1); exit 1; }; }
46541
 
    fi
46542
 
else 
46543
 
    { { $as_echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
46544
 
$as_echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
46545
 
   { (exit 1); exit 1; }; }
46546
 
  
46547
 
  fi
46548
 
 
46549
 
fi
46550
 
 
46551
 
 
46552
 
 
46553
 
php_with_enchant=no
46554
 
 
46555
 
{ $as_echo "$as_me:$LINENO: checking for ENCHANT support" >&5
46556
 
$as_echo_n "checking for ENCHANT support... " >&6; }
46557
 
 
46558
 
@%:@ Check whether --with-enchant was given.
46559
 
if test "${with_enchant+set}" = set; then
46560
 
  withval=$with_enchant; PHP_ENCHANT=$withval
46561
 
else
46562
 
  
46563
 
  PHP_ENCHANT=no
46564
 
  test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL
46565
 
 
46566
 
fi
46567
 
 
46568
 
 
46569
 
 
46570
 
ext_output="yes, shared"
46571
 
ext_shared=yes
46572
 
case $PHP_ENCHANT in
46573
 
shared,*)
46574
 
  PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'`
46575
 
  ;;
46576
 
shared)
46577
 
  PHP_ENCHANT=yes
46578
 
  ;;
46579
 
no)
46580
 
  ext_output=no
46581
 
  ext_shared=no
46582
 
  ;;
46583
 
*)
46584
 
  ext_output=yes
46585
 
  ext_shared=no
46586
 
  ;;
46587
 
esac
46588
 
 
46589
 
 
46590
 
 
46591
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
46592
 
$as_echo "$ext_output" >&6; }
46593
 
 
46594
 
 
46595
 
 
46596
 
 
46597
 
if test "$PHP_ENCHANT" != "no"; then
46598
 
        
46599
 
  ext_builddir=ext/enchant
46600
 
  ext_srcdir=$abs_srcdir/ext/enchant
46601
 
 
46602
 
  ac_extra=
46603
 
 
46604
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
46605
 
    PHP_ENCHANT_SHARED=no
46606
 
    
46607
 
  
46608
 
  case ext/enchant in
46609
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46610
 
  /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46611
 
  *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46612
 
  esac
46613
 
  
46614
 
  
46615
 
 
46616
 
  b_c_pre=$php_c_pre
46617
 
  b_cxx_pre=$php_cxx_pre
46618
 
  b_c_meta=$php_c_meta
46619
 
  b_cxx_meta=$php_cxx_meta
46620
 
  b_c_post=$php_c_post
46621
 
  b_cxx_post=$php_cxx_post
46622
 
  b_lo=$php_lo
46623
 
 
46624
 
 
46625
 
  old_IFS=$IFS
46626
 
  for ac_src in enchant.c; do
46627
 
  
46628
 
      IFS=.
46629
 
      set $ac_src
46630
 
      ac_obj=$1
46631
 
      IFS=$old_IFS
46632
 
      
46633
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46634
 
 
46635
 
      case $ac_src in
46636
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46637
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46638
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46639
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46640
 
      esac
46641
 
 
46642
 
    cat >>Makefile.objects<<EOF
46643
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46644
 
        $ac_comp
46645
 
EOF
46646
 
  done
46647
 
 
46648
 
 
46649
 
    EXT_STATIC="$EXT_STATIC enchant"
46650
 
    if test "$ext_shared" != "nocli"; then
46651
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
46652
 
    fi
46653
 
  else
46654
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
46655
 
      PHP_ENCHANT_SHARED=yes
46656
 
      
46657
 
  case ext/enchant in
46658
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46659
 
  /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46660
 
  *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46661
 
  esac
46662
 
  
46663
 
  
46664
 
 
46665
 
  b_c_pre=$shared_c_pre
46666
 
  b_cxx_pre=$shared_cxx_pre
46667
 
  b_c_meta=$shared_c_meta
46668
 
  b_cxx_meta=$shared_cxx_meta
46669
 
  b_c_post=$shared_c_post
46670
 
  b_cxx_post=$shared_cxx_post
46671
 
  b_lo=$shared_lo
46672
 
 
46673
 
 
46674
 
  old_IFS=$IFS
46675
 
  for ac_src in enchant.c; do
46676
 
  
46677
 
      IFS=.
46678
 
      set $ac_src
46679
 
      ac_obj=$1
46680
 
      IFS=$old_IFS
46681
 
      
46682
 
      shared_objects_enchant="$shared_objects_enchant $ac_bdir$ac_obj.lo"
46683
 
 
46684
 
      case $ac_src in
46685
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46686
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46687
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46688
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46689
 
      esac
46690
 
 
46691
 
    cat >>Makefile.objects<<EOF
46692
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46693
 
        $ac_comp
46694
 
EOF
46695
 
  done
46696
 
 
46697
 
      case $host_alias in
46698
 
        *netware*)
46699
 
          
46700
 
  install_modules="install-modules"
46701
 
 
46702
 
  case $host_alias in
46703
 
    *aix*)
46704
 
      suffix=so
46705
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpenchant.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(PHPENCHANT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpenchant.so '$ext_builddir'/phpenchant.so'
46706
 
      ;;
46707
 
    *netware*)
46708
 
      suffix=nlm
46709
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) -L$(top_builddir)/netware -lphp5lib $(ENCHANT_SHARED_LIBADD)'
46710
 
      ;;
46711
 
    *)
46712
 
      suffix=la
46713
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(PHPENCHANT_SHARED_LIBADD)'
46714
 
      ;;
46715
 
  esac
46716
 
 
46717
 
  if test "x" = "xyes"; then
46718
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpenchant.$suffix"
46719
 
  else
46720
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpenchant.$suffix"
46721
 
  fi
46722
 
  
46723
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
46724
 
 
46725
 
  cat >>Makefile.objects<<EOF
46726
 
\$(phplibdir)/phpenchant.$suffix: $ext_builddir/phpenchant.$suffix
46727
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpenchant.$suffix \$(phplibdir)
46728
 
 
46729
 
$ext_builddir/phpenchant.$suffix: \$(shared_objects_enchant) \$(PHPENCHANT_SHARED_DEPENDENCIES)
46730
 
        $link_cmd
46731
 
 
46732
 
EOF
46733
 
 
46734
 
          ;;
46735
 
        *)
46736
 
          
46737
 
  install_modules="install-modules"
46738
 
 
46739
 
  case $host_alias in
46740
 
    *aix*)
46741
 
      suffix=so
46742
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/enchant.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(ENCHANT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/enchant.so '$ext_builddir'/enchant.so'
46743
 
      ;;
46744
 
    *netware*)
46745
 
      suffix=nlm
46746
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) -L$(top_builddir)/netware -lphp5lib $(HANT_SHARED_LIBADD)'
46747
 
      ;;
46748
 
    *)
46749
 
      suffix=la
46750
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_enchant) $(ENCHANT_SHARED_LIBADD)'
46751
 
      ;;
46752
 
  esac
46753
 
 
46754
 
  if test "x" = "xyes"; then
46755
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/enchant.$suffix"
46756
 
  else
46757
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/enchant.$suffix"
46758
 
  fi
46759
 
  
46760
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
46761
 
 
46762
 
  cat >>Makefile.objects<<EOF
46763
 
\$(phplibdir)/enchant.$suffix: $ext_builddir/enchant.$suffix
46764
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/enchant.$suffix \$(phplibdir)
46765
 
 
46766
 
$ext_builddir/enchant.$suffix: \$(shared_objects_enchant) \$(ENCHANT_SHARED_DEPENDENCIES)
46767
 
        $link_cmd
46768
 
 
46769
 
EOF
46770
 
 
46771
 
          ;;
46772
 
      esac
46773
 
      
46774
 
cat >>confdefs.h <<_ACEOF
46775
 
@%:@define COMPILE_DL_ENCHANT 1
46776
 
_ACEOF
46777
 
 
46778
 
    fi
46779
 
  fi
46780
 
 
46781
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
46782
 
    PHP_ENCHANT_SHARED=no
46783
 
    case "$PHP_SAPI" in
46784
 
      cgi|embed)
46785
 
        
46786
 
  
46787
 
  case ext/enchant in
46788
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46789
 
  /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46790
 
  *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46791
 
  esac
46792
 
  
46793
 
  
46794
 
 
46795
 
  b_c_pre=$php_c_pre
46796
 
  b_cxx_pre=$php_cxx_pre
46797
 
  b_c_meta=$php_c_meta
46798
 
  b_cxx_meta=$php_cxx_meta
46799
 
  b_c_post=$php_c_post
46800
 
  b_cxx_post=$php_cxx_post
46801
 
  b_lo=$php_lo
46802
 
 
46803
 
 
46804
 
  old_IFS=$IFS
46805
 
  for ac_src in enchant.c; do
46806
 
  
46807
 
      IFS=.
46808
 
      set $ac_src
46809
 
      ac_obj=$1
46810
 
      IFS=$old_IFS
46811
 
      
46812
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46813
 
 
46814
 
      case $ac_src in
46815
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46816
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46817
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46818
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46819
 
      esac
46820
 
 
46821
 
    cat >>Makefile.objects<<EOF
46822
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46823
 
        $ac_comp
46824
 
EOF
46825
 
  done
46826
 
 
46827
 
 
46828
 
        EXT_STATIC="$EXT_STATIC enchant"
46829
 
        ;;
46830
 
      *)
46831
 
        
46832
 
  
46833
 
  case ext/enchant in
46834
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46835
 
  /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46836
 
  *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46837
 
  esac
46838
 
  
46839
 
  
46840
 
 
46841
 
  b_c_pre=$php_c_pre
46842
 
  b_cxx_pre=$php_cxx_pre
46843
 
  b_c_meta=$php_c_meta
46844
 
  b_cxx_meta=$php_cxx_meta
46845
 
  b_c_post=$php_c_post
46846
 
  b_cxx_post=$php_cxx_post
46847
 
  b_lo=$php_lo
46848
 
 
46849
 
 
46850
 
  old_IFS=$IFS
46851
 
  for ac_src in enchant.c; do
46852
 
  
46853
 
      IFS=.
46854
 
      set $ac_src
46855
 
      ac_obj=$1
46856
 
      IFS=$old_IFS
46857
 
      
46858
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
46859
 
 
46860
 
      case $ac_src in
46861
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46862
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46863
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46864
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46865
 
      esac
46866
 
 
46867
 
    cat >>Makefile.objects<<EOF
46868
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46869
 
        $ac_comp
46870
 
EOF
46871
 
  done
46872
 
 
46873
 
 
46874
 
        ;;
46875
 
    esac
46876
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
46877
 
  fi
46878
 
  
46879
 
  
46880
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
46881
 
  
46882
 
 
46883
 
 
46884
 
  if test "$ext_builddir" = "."; then
46885
 
    PHP_PECL_EXTENSION=enchant
46886
 
    
46887
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
46888
 
 
46889
 
  fi
46890
 
 
46891
 
        if test "$PHP_ENCHANT" != "yes"; then
46892
 
            ENCHANT_SEARCH_DIRS=$PHP_ENCHANT
46893
 
        else
46894
 
            ENCHANT_SEARCH_DIRS="/usr/local /usr"
46895
 
        fi
46896
 
        for i in $ENCHANT_SEARCH_DIRS; do
46897
 
                if test -f $i/include/enchant/enchant.h; then
46898
 
                        ENCHANT_DIR=$i
46899
 
                        ENCHANT_INCDIR=$i/include/enchant
46900
 
                elif test -f $i/include/enchant.h; then
46901
 
                        ENCHANT_DIR=$i
46902
 
                        ENCHANT_INCDIR=$i/include
46903
 
                fi
46904
 
        done
46905
 
 
46906
 
        if test -z "$ENCHANT_DIR"; then
46907
 
                { { $as_echo "$as_me:$LINENO: error: Cannot find enchant" >&5
46908
 
$as_echo "$as_me: error: Cannot find enchant" >&2;}
46909
 
   { (exit 1); exit 1; }; }
46910
 
        fi
46911
 
 
46912
 
        ENCHANT_LIBDIR=$ENCHANT_DIR/lib
46913
 
 
46914
 
        
46915
 
cat >>confdefs.h <<\_ACEOF
46916
 
@%:@define HAVE_ENCHANT 1
46917
 
_ACEOF
46918
 
 
46919
 
        
46920
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ENCHANT_SHARED_LIBADD"
46921
 
 
46922
 
        
46923
 
 
46924
 
  if test "$ext_shared" = "yes"; then
46925
 
    ENCHANT_SHARED_LIBADD="-lenchant $ENCHANT_SHARED_LIBADD"
46926
 
    if test -n "$ENCHANT_LIBDIR"; then
46927
 
      
46928
 
  if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
46929
 
    
46930
 
  if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
46931
 
    ai_p=$ENCHANT_LIBDIR
46932
 
  else
46933
 
    
46934
 
    ep_dir="`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
46935
 
    
46936
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46937
 
    ai_p="$ep_realdir/`basename \"$ENCHANT_LIBDIR\"`"
46938
 
  fi
46939
 
 
46940
 
    
46941
 
      if test "$ext_shared" = "yes"; then
46942
 
        ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD"
46943
 
        test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD"
46944
 
      else
46945
 
        
46946
 
  
46947
 
  
46948
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46949
 
  
46950
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46951
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
46952
 
    eval "LIBPATH$unique=set"
46953
 
    
46954
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46955
 
    LDFLAGS="$LDFLAGS -L$ai_p"
46956
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
46957
 
  
46958
 
  fi
46959
 
 
46960
 
 
46961
 
      fi
46962
 
    
46963
 
  fi
46964
 
 
46965
 
    fi
46966
 
  else
46967
 
    
46968
 
 
46969
 
  if test -n "$ENCHANT_LIBDIR"; then
46970
 
    
46971
 
  if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
46972
 
    
46973
 
  if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
46974
 
    ai_p=$ENCHANT_LIBDIR
46975
 
  else
46976
 
    
46977
 
    ep_dir="`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
46978
 
    
46979
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46980
 
    ai_p="$ep_realdir/`basename \"$ENCHANT_LIBDIR\"`"
46981
 
  fi
46982
 
 
46983
 
    
46984
 
      
46985
 
  
46986
 
  
46987
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46988
 
  
46989
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46990
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
46991
 
    eval "LIBPATH$unique=set"
46992
 
    
46993
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46994
 
    LDFLAGS="$LDFLAGS -L$ai_p"
46995
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
46996
 
  
46997
 
  fi
46998
 
 
46999
 
 
47000
 
    
47001
 
  fi
47002
 
 
47003
 
  fi
47004
 
  
47005
 
  
47006
 
  case enchant in
47007
 
  c|c_r|pthread*) ;;
47008
 
  *) 
47009
 
      LIBS="-lenchant $LIBS" 
47010
 
   ;;
47011
 
  esac
47012
 
 
47013
 
 
47014
 
 
47015
 
 
47016
 
  fi
47017
 
 
47018
 
 
47019
 
        
47020
 
  if test "$ENCHANT_INCDIR" != "/usr/include"; then
47021
 
    
47022
 
  if test -z "$ENCHANT_INCDIR" || echo "$ENCHANT_INCDIR" | grep '^/' >/dev/null ; then
47023
 
    ai_p=$ENCHANT_INCDIR
47024
 
  else
47025
 
    
47026
 
    ep_dir="`echo $ENCHANT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
47027
 
    
47028
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
47029
 
    ai_p="$ep_realdir/`basename \"$ENCHANT_INCDIR\"`"
47030
 
  fi
47031
 
 
47032
 
    
47033
 
  
47034
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47035
 
  
47036
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
47037
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
47038
 
    eval "INCLUDEPATH$unique=set"
47039
 
    
47040
 
      if test ""; then
47041
 
        INCLUDES="-I$ai_p $INCLUDES"
47042
 
      else
47043
 
        INCLUDES="$INCLUDES -I$ai_p"
47044
 
      fi
47045
 
    
47046
 
  fi
47047
 
 
47048
 
  fi
47049
 
 
47050
 
        
47051
 
  save_old_LDFLAGS=$LDFLAGS
47052
 
  ac_stuff=" -L$ENCHANT_LIB $ENCHANT_SHARED_LIBADD"
47053
 
  
47054
 
  save_ext_shared=$ext_shared
47055
 
  ext_shared=yes
47056
 
  
47057
 
  for ac_i in $ac_stuff; do
47058
 
    case $ac_i in
47059
 
    -pthread)
47060
 
      if test "$ext_shared" = "yes"; then
47061
 
        LDFLAGS="$LDFLAGS -pthread"
47062
 
      else
47063
 
        
47064
 
  
47065
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
47066
 
  
47067
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
47068
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
47069
 
    eval "EXTRA_LDFLAGS$unique=set"
47070
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
47071
 
  fi
47072
 
 
47073
 
      fi
47074
 
    ;;
47075
 
    -l*)
47076
 
      ac_ii=`echo $ac_i|cut -c 3-`
47077
 
      
47078
 
  
47079
 
  case $ac_ii in
47080
 
  c|c_r|pthread*) ;;
47081
 
  *) 
47082
 
    if test "$ext_shared" = "yes"; then
47083
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
47084
 
    else
47085
 
      
47086
 
  
47087
 
  case $ac_ii in
47088
 
  c|c_r|pthread*) ;;
47089
 
  *) 
47090
 
      LIBS="$LIBS -l$ac_ii" 
47091
 
   ;;
47092
 
  esac
47093
 
 
47094
 
 
47095
 
    fi
47096
 
   ;;
47097
 
  esac
47098
 
 
47099
 
 
47100
 
    ;;
47101
 
    -L*)
47102
 
      ac_ii=`echo $ac_i|cut -c 3-`
47103
 
      
47104
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
47105
 
    
47106
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
47107
 
    ai_p=$ac_ii
47108
 
  else
47109
 
    
47110
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
47111
 
    
47112
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
47113
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
47114
 
  fi
47115
 
 
47116
 
    
47117
 
      if test "$ext_shared" = "yes"; then
47118
 
        LDFLAGS="-L$ai_p $LDFLAGS"
47119
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
47120
 
      else
47121
 
        
47122
 
  
47123
 
  
47124
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47125
 
  
47126
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
47127
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
47128
 
    eval "LIBPATH$unique=set"
47129
 
    
47130
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
47131
 
    LDFLAGS="$LDFLAGS -L$ai_p"
47132
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
47133
 
  
47134
 
  fi
47135
 
 
47136
 
 
47137
 
      fi
47138
 
    
47139
 
  fi
47140
 
 
47141
 
    ;;
47142
 
    esac
47143
 
  done
47144
 
 
47145
 
  { $as_echo "$as_me:$LINENO: checking for enchant_broker_set_param in -lenchant" >&5
47146
 
$as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; }
47147
 
if test "${ac_cv_lib_enchant_enchant_broker_set_param+set}" = set; then
47148
 
  $as_echo_n "(cached) " >&6
47149
 
else
47150
 
  ac_check_lib_save_LIBS=$LIBS
47151
 
LIBS="-lenchant  $LIBS"
47152
 
cat >conftest.$ac_ext <<_ACEOF
47153
 
/* confdefs.h.  */
47154
 
_ACEOF
47155
 
cat confdefs.h >>conftest.$ac_ext
47156
 
cat >>conftest.$ac_ext <<_ACEOF
47157
 
/* end confdefs.h.  */
47158
 
 
47159
 
/* Override any GCC internal prototype to avoid an error.
47160
 
   Use char because int might match the return type of a GCC
47161
 
   builtin and then its argument prototype would still apply.  */
47162
 
#ifdef __cplusplus
47163
 
extern "C"
47164
 
#endif
47165
 
char enchant_broker_set_param ();
47166
 
int
47167
 
main ()
47168
 
{
47169
 
return enchant_broker_set_param ();
47170
 
  ;
47171
 
  return 0;
47172
 
}
47173
 
_ACEOF
47174
 
rm -f conftest.$ac_objext conftest$ac_exeext
47175
 
if { (ac_try="$ac_link"
47176
 
case "(($ac_try" in
47177
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47178
 
  *) ac_try_echo=$ac_try;;
47179
 
esac
47180
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47181
 
$as_echo "$ac_try_echo") >&5
47182
 
  (eval "$ac_link") 2>conftest.er1
47183
 
  ac_status=$?
47184
 
  grep -v '^ *+' conftest.er1 >conftest.err
47185
 
  rm -f conftest.er1
47186
 
  cat conftest.err >&5
47187
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47188
 
  (exit $ac_status); } && {
47189
 
         test -z "$ac_c_werror_flag" ||
47190
 
         test ! -s conftest.err
47191
 
       } && test -s conftest$ac_exeext && {
47192
 
         test "$cross_compiling" = yes ||
47193
 
         $as_test_x conftest$ac_exeext
47194
 
       }; then
47195
 
  ac_cv_lib_enchant_enchant_broker_set_param=yes
47196
 
else
47197
 
  $as_echo "$as_me: failed program was:" >&5
47198
 
sed 's/^/| /' conftest.$ac_ext >&5
47199
 
 
47200
 
        ac_cv_lib_enchant_enchant_broker_set_param=no
47201
 
fi
47202
 
 
47203
 
rm -rf conftest.dSYM
47204
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47205
 
      conftest$ac_exeext conftest.$ac_ext
47206
 
LIBS=$ac_check_lib_save_LIBS
47207
 
fi
47208
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5
47209
 
$as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; }
47210
 
if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = x""yes; then
47211
 
  
47212
 
    LDFLAGS=$save_old_LDFLAGS
47213
 
    ext_shared=$save_ext_shared
47214
 
    
47215
 
          
47216
 
cat >>confdefs.h <<\_ACEOF
47217
 
@%:@define HAVE_ENCHANT_BROKER_SET_PARAM 1
47218
 
_ACEOF
47219
 
 
47220
 
          
47221
 
cat >>confdefs.h <<\_ACEOF
47222
 
@%:@define ENCHANT_VERSION_STRING "1.5.x"
47223
 
_ACEOF
47224
 
 
47225
 
        
47226
 
  
47227
 
else
47228
 
  
47229
 
    LDFLAGS=$save_old_LDFLAGS
47230
 
    ext_shared=$save_ext_shared
47231
 
    unset ac_cv_lib_enchant_enchant_broker_set_param
47232
 
    
47233
 
  
47234
 
fi
47235
 
 
47236
 
 
47237
 
fi
47238
 
 
47239
 
 
47240
 
 
47241
 
php_enable_exif=no
47242
 
 
47243
 
{ $as_echo "$as_me:$LINENO: checking whether to enable EXIF (metadata from images) support" >&5
47244
 
$as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; }
47245
 
@%:@ Check whether --enable-exif was given.
47246
 
if test "${enable_exif+set}" = set; then
47247
 
  enableval=$enable_exif; PHP_EXIF=$enableval
47248
 
else
47249
 
  
47250
 
  PHP_EXIF=no
47251
 
  test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL
47252
 
 
47253
 
fi
47254
 
 
47255
 
 
47256
 
 
47257
 
ext_output="yes, shared"
47258
 
ext_shared=yes
47259
 
case $PHP_EXIF in
47260
 
shared,*)
47261
 
  PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'`
47262
 
  ;;
47263
 
shared)
47264
 
  PHP_EXIF=yes
47265
 
  ;;
47266
 
no)
47267
 
  ext_output=no
47268
 
  ext_shared=no
47269
 
  ;;
47270
 
*)
47271
 
  ext_output=yes
47272
 
  ext_shared=no
47273
 
  ;;
47274
 
esac
47275
 
 
47276
 
 
47277
 
 
47278
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
47279
 
$as_echo "$ext_output" >&6; }
47280
 
 
47281
 
 
47282
 
 
47283
 
 
47284
 
if test "$PHP_EXIF" != "no"; then
47285
 
  
47286
 
cat >>confdefs.h <<\_ACEOF
47287
 
@%:@define HAVE_EXIF 1
47288
 
_ACEOF
47289
 
 
47290
 
  
47291
 
  ext_builddir=ext/exif
47292
 
  ext_srcdir=$abs_srcdir/ext/exif
47293
 
 
47294
 
  ac_extra=
47295
 
 
47296
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
47297
 
    PHP_EXIF_SHARED=no
47298
 
    
47299
 
  
47300
 
  case ext/exif in
47301
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47302
 
  /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47303
 
  *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47304
 
  esac
47305
 
  
47306
 
  
47307
 
 
47308
 
  b_c_pre=$php_c_pre
47309
 
  b_cxx_pre=$php_cxx_pre
47310
 
  b_c_meta=$php_c_meta
47311
 
  b_cxx_meta=$php_cxx_meta
47312
 
  b_c_post=$php_c_post
47313
 
  b_cxx_post=$php_cxx_post
47314
 
  b_lo=$php_lo
47315
 
 
47316
 
 
47317
 
  old_IFS=$IFS
47318
 
  for ac_src in exif.c; do
47319
 
  
47320
 
      IFS=.
47321
 
      set $ac_src
47322
 
      ac_obj=$1
47323
 
      IFS=$old_IFS
47324
 
      
47325
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47326
 
 
47327
 
      case $ac_src in
47328
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47329
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47330
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47331
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47332
 
      esac
47333
 
 
47334
 
    cat >>Makefile.objects<<EOF
47335
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47336
 
        $ac_comp
47337
 
EOF
47338
 
  done
47339
 
 
47340
 
 
47341
 
    EXT_STATIC="$EXT_STATIC exif"
47342
 
    if test "$ext_shared" != "nocli"; then
47343
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
47344
 
    fi
47345
 
  else
47346
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
47347
 
      PHP_EXIF_SHARED=yes
47348
 
      
47349
 
  case ext/exif in
47350
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47351
 
  /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47352
 
  *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47353
 
  esac
47354
 
  
47355
 
  
47356
 
 
47357
 
  b_c_pre=$shared_c_pre
47358
 
  b_cxx_pre=$shared_cxx_pre
47359
 
  b_c_meta=$shared_c_meta
47360
 
  b_cxx_meta=$shared_cxx_meta
47361
 
  b_c_post=$shared_c_post
47362
 
  b_cxx_post=$shared_cxx_post
47363
 
  b_lo=$shared_lo
47364
 
 
47365
 
 
47366
 
  old_IFS=$IFS
47367
 
  for ac_src in exif.c; do
47368
 
  
47369
 
      IFS=.
47370
 
      set $ac_src
47371
 
      ac_obj=$1
47372
 
      IFS=$old_IFS
47373
 
      
47374
 
      shared_objects_exif="$shared_objects_exif $ac_bdir$ac_obj.lo"
47375
 
 
47376
 
      case $ac_src in
47377
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47378
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47379
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47380
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47381
 
      esac
47382
 
 
47383
 
    cat >>Makefile.objects<<EOF
47384
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47385
 
        $ac_comp
47386
 
EOF
47387
 
  done
47388
 
 
47389
 
      case $host_alias in
47390
 
        *netware*)
47391
 
          
47392
 
  install_modules="install-modules"
47393
 
 
47394
 
  case $host_alias in
47395
 
    *aix*)
47396
 
      suffix=so
47397
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpexif.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(PHPEXIF_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpexif.so '$ext_builddir'/phpexif.so'
47398
 
      ;;
47399
 
    *netware*)
47400
 
      suffix=nlm
47401
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) -L$(top_builddir)/netware -lphp5lib $(EXIF_SHARED_LIBADD)'
47402
 
      ;;
47403
 
    *)
47404
 
      suffix=la
47405
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(PHPEXIF_SHARED_LIBADD)'
47406
 
      ;;
47407
 
  esac
47408
 
 
47409
 
  if test "x" = "xyes"; then
47410
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpexif.$suffix"
47411
 
  else
47412
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpexif.$suffix"
47413
 
  fi
47414
 
  
47415
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
47416
 
 
47417
 
  cat >>Makefile.objects<<EOF
47418
 
\$(phplibdir)/phpexif.$suffix: $ext_builddir/phpexif.$suffix
47419
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpexif.$suffix \$(phplibdir)
47420
 
 
47421
 
$ext_builddir/phpexif.$suffix: \$(shared_objects_exif) \$(PHPEXIF_SHARED_DEPENDENCIES)
47422
 
        $link_cmd
47423
 
 
47424
 
EOF
47425
 
 
47426
 
          ;;
47427
 
        *)
47428
 
          
47429
 
  install_modules="install-modules"
47430
 
 
47431
 
  case $host_alias in
47432
 
    *aix*)
47433
 
      suffix=so
47434
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/exif.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(EXIF_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/exif.so '$ext_builddir'/exif.so'
47435
 
      ;;
47436
 
    *netware*)
47437
 
      suffix=nlm
47438
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) -L$(top_builddir)/netware -lphp5lib $(F_SHARED_LIBADD)'
47439
 
      ;;
47440
 
    *)
47441
 
      suffix=la
47442
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_exif) $(EXIF_SHARED_LIBADD)'
47443
 
      ;;
47444
 
  esac
47445
 
 
47446
 
  if test "x" = "xyes"; then
47447
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/exif.$suffix"
47448
 
  else
47449
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/exif.$suffix"
47450
 
  fi
47451
 
  
47452
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
47453
 
 
47454
 
  cat >>Makefile.objects<<EOF
47455
 
\$(phplibdir)/exif.$suffix: $ext_builddir/exif.$suffix
47456
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/exif.$suffix \$(phplibdir)
47457
 
 
47458
 
$ext_builddir/exif.$suffix: \$(shared_objects_exif) \$(EXIF_SHARED_DEPENDENCIES)
47459
 
        $link_cmd
47460
 
 
47461
 
EOF
47462
 
 
47463
 
          ;;
47464
 
      esac
47465
 
      
47466
 
cat >>confdefs.h <<_ACEOF
47467
 
@%:@define COMPILE_DL_EXIF 1
47468
 
_ACEOF
47469
 
 
47470
 
    fi
47471
 
  fi
47472
 
 
47473
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
47474
 
    PHP_EXIF_SHARED=no
47475
 
    case "$PHP_SAPI" in
47476
 
      cgi|embed)
47477
 
        
47478
 
  
47479
 
  case ext/exif in
47480
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47481
 
  /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47482
 
  *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47483
 
  esac
47484
 
  
47485
 
  
47486
 
 
47487
 
  b_c_pre=$php_c_pre
47488
 
  b_cxx_pre=$php_cxx_pre
47489
 
  b_c_meta=$php_c_meta
47490
 
  b_cxx_meta=$php_cxx_meta
47491
 
  b_c_post=$php_c_post
47492
 
  b_cxx_post=$php_cxx_post
47493
 
  b_lo=$php_lo
47494
 
 
47495
 
 
47496
 
  old_IFS=$IFS
47497
 
  for ac_src in exif.c; do
47498
 
  
47499
 
      IFS=.
47500
 
      set $ac_src
47501
 
      ac_obj=$1
47502
 
      IFS=$old_IFS
47503
 
      
47504
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47505
 
 
47506
 
      case $ac_src in
47507
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47508
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47509
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47510
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47511
 
      esac
47512
 
 
47513
 
    cat >>Makefile.objects<<EOF
47514
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47515
 
        $ac_comp
47516
 
EOF
47517
 
  done
47518
 
 
47519
 
 
47520
 
        EXT_STATIC="$EXT_STATIC exif"
47521
 
        ;;
47522
 
      *)
47523
 
        
47524
 
  
47525
 
  case ext/exif in
47526
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47527
 
  /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47528
 
  *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47529
 
  esac
47530
 
  
47531
 
  
47532
 
 
47533
 
  b_c_pre=$php_c_pre
47534
 
  b_cxx_pre=$php_cxx_pre
47535
 
  b_c_meta=$php_c_meta
47536
 
  b_cxx_meta=$php_cxx_meta
47537
 
  b_c_post=$php_c_post
47538
 
  b_cxx_post=$php_cxx_post
47539
 
  b_lo=$php_lo
47540
 
 
47541
 
 
47542
 
  old_IFS=$IFS
47543
 
  for ac_src in exif.c; do
47544
 
  
47545
 
      IFS=.
47546
 
      set $ac_src
47547
 
      ac_obj=$1
47548
 
      IFS=$old_IFS
47549
 
      
47550
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
47551
 
 
47552
 
      case $ac_src in
47553
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47554
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47555
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47556
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47557
 
      esac
47558
 
 
47559
 
    cat >>Makefile.objects<<EOF
47560
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47561
 
        $ac_comp
47562
 
EOF
47563
 
  done
47564
 
 
47565
 
 
47566
 
        ;;
47567
 
    esac
47568
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
47569
 
  fi
47570
 
  
47571
 
  
47572
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
47573
 
  
47574
 
 
47575
 
 
47576
 
  if test "$ext_builddir" = "."; then
47577
 
    PHP_PECL_EXTENSION=exif
47578
 
    
47579
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
47580
 
 
47581
 
  fi
47582
 
 
47583
 
fi
47584
 
 
47585
 
 
47586
 
 
47587
 
php_enable_fileinfo=yes
47588
 
 
47589
 
{ $as_echo "$as_me:$LINENO: checking for fileinfo support" >&5
47590
 
$as_echo_n "checking for fileinfo support... " >&6; }
47591
 
@%:@ Check whether --enable-fileinfo was given.
47592
 
if test "${enable_fileinfo+set}" = set; then
47593
 
  enableval=$enable_fileinfo; PHP_FILEINFO=$enableval
47594
 
else
47595
 
  
47596
 
  PHP_FILEINFO=yes
47597
 
  test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL
47598
 
 
47599
 
fi
47600
 
 
47601
 
 
47602
 
 
47603
 
ext_output="yes, shared"
47604
 
ext_shared=yes
47605
 
case $PHP_FILEINFO in
47606
 
shared,*)
47607
 
  PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'`
47608
 
  ;;
47609
 
shared)
47610
 
  PHP_FILEINFO=yes
47611
 
  ;;
47612
 
no)
47613
 
  ext_output=no
47614
 
  ext_shared=no
47615
 
  ;;
47616
 
*)
47617
 
  ext_output=yes
47618
 
  ext_shared=no
47619
 
  ;;
47620
 
esac
47621
 
 
47622
 
 
47623
 
 
47624
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
47625
 
$as_echo "$ext_output" >&6; }
47626
 
 
47627
 
 
47628
 
 
47629
 
 
47630
 
if test "$PHP_FILEINFO" != "no"; then
47631
 
 
47632
 
  libmagic_sources=" \
47633
 
    libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \
47634
 
    libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \
47635
 
    libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \
47636
 
    libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
47637
 
    libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c"
47638
 
 
47639
 
  
47640
 
  ext_builddir=ext/fileinfo
47641
 
  ext_srcdir=$abs_srcdir/ext/fileinfo
47642
 
 
47643
 
  ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
47644
 
 
47645
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
47646
 
    PHP_FILEINFO_SHARED=no
47647
 
    
47648
 
  
47649
 
  case ext/fileinfo in
47650
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47651
 
  /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47652
 
  *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47653
 
  esac
47654
 
  
47655
 
  
47656
 
 
47657
 
  b_c_pre=$php_c_pre
47658
 
  b_cxx_pre=$php_cxx_pre
47659
 
  b_c_meta=$php_c_meta
47660
 
  b_cxx_meta=$php_cxx_meta
47661
 
  b_c_post=$php_c_post
47662
 
  b_cxx_post=$php_cxx_post
47663
 
  b_lo=$php_lo
47664
 
 
47665
 
 
47666
 
  old_IFS=$IFS
47667
 
  for ac_src in fileinfo.c $libmagic_sources; do
47668
 
  
47669
 
      IFS=.
47670
 
      set $ac_src
47671
 
      ac_obj=$1
47672
 
      IFS=$old_IFS
47673
 
      
47674
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47675
 
 
47676
 
      case $ac_src in
47677
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47678
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47679
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47680
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47681
 
      esac
47682
 
 
47683
 
    cat >>Makefile.objects<<EOF
47684
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47685
 
        $ac_comp
47686
 
EOF
47687
 
  done
47688
 
 
47689
 
 
47690
 
    EXT_STATIC="$EXT_STATIC fileinfo"
47691
 
    if test "$ext_shared" != "nocli"; then
47692
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
47693
 
    fi
47694
 
  else
47695
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
47696
 
      PHP_FILEINFO_SHARED=yes
47697
 
      
47698
 
  case ext/fileinfo in
47699
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47700
 
  /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47701
 
  *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47702
 
  esac
47703
 
  
47704
 
  
47705
 
 
47706
 
  b_c_pre=$shared_c_pre
47707
 
  b_cxx_pre=$shared_cxx_pre
47708
 
  b_c_meta=$shared_c_meta
47709
 
  b_cxx_meta=$shared_cxx_meta
47710
 
  b_c_post=$shared_c_post
47711
 
  b_cxx_post=$shared_cxx_post
47712
 
  b_lo=$shared_lo
47713
 
 
47714
 
 
47715
 
  old_IFS=$IFS
47716
 
  for ac_src in fileinfo.c $libmagic_sources; do
47717
 
  
47718
 
      IFS=.
47719
 
      set $ac_src
47720
 
      ac_obj=$1
47721
 
      IFS=$old_IFS
47722
 
      
47723
 
      shared_objects_fileinfo="$shared_objects_fileinfo $ac_bdir$ac_obj.lo"
47724
 
 
47725
 
      case $ac_src in
47726
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47727
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47728
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47729
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47730
 
      esac
47731
 
 
47732
 
    cat >>Makefile.objects<<EOF
47733
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47734
 
        $ac_comp
47735
 
EOF
47736
 
  done
47737
 
 
47738
 
      case $host_alias in
47739
 
        *netware*)
47740
 
          
47741
 
  install_modules="install-modules"
47742
 
 
47743
 
  case $host_alias in
47744
 
    *aix*)
47745
 
      suffix=so
47746
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpfileinfo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(PHPFILEINFO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpfileinfo.so '$ext_builddir'/phpfileinfo.so'
47747
 
      ;;
47748
 
    *netware*)
47749
 
      suffix=nlm
47750
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) -L$(top_builddir)/netware -lphp5lib $(FILEINFO_SHARED_LIBADD)'
47751
 
      ;;
47752
 
    *)
47753
 
      suffix=la
47754
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(PHPFILEINFO_SHARED_LIBADD)'
47755
 
      ;;
47756
 
  esac
47757
 
 
47758
 
  if test "x" = "xyes"; then
47759
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfileinfo.$suffix"
47760
 
  else
47761
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfileinfo.$suffix"
47762
 
  fi
47763
 
  
47764
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
47765
 
 
47766
 
  cat >>Makefile.objects<<EOF
47767
 
\$(phplibdir)/phpfileinfo.$suffix: $ext_builddir/phpfileinfo.$suffix
47768
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpfileinfo.$suffix \$(phplibdir)
47769
 
 
47770
 
$ext_builddir/phpfileinfo.$suffix: \$(shared_objects_fileinfo) \$(PHPFILEINFO_SHARED_DEPENDENCIES)
47771
 
        $link_cmd
47772
 
 
47773
 
EOF
47774
 
 
47775
 
          ;;
47776
 
        *)
47777
 
          
47778
 
  install_modules="install-modules"
47779
 
 
47780
 
  case $host_alias in
47781
 
    *aix*)
47782
 
      suffix=so
47783
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/fileinfo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(FILEINFO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/fileinfo.so '$ext_builddir'/fileinfo.so'
47784
 
      ;;
47785
 
    *netware*)
47786
 
      suffix=nlm
47787
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) -L$(top_builddir)/netware -lphp5lib $(EINFO_SHARED_LIBADD)'
47788
 
      ;;
47789
 
    *)
47790
 
      suffix=la
47791
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fileinfo) $(FILEINFO_SHARED_LIBADD)'
47792
 
      ;;
47793
 
  esac
47794
 
 
47795
 
  if test "x" = "xyes"; then
47796
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/fileinfo.$suffix"
47797
 
  else
47798
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/fileinfo.$suffix"
47799
 
  fi
47800
 
  
47801
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
47802
 
 
47803
 
  cat >>Makefile.objects<<EOF
47804
 
\$(phplibdir)/fileinfo.$suffix: $ext_builddir/fileinfo.$suffix
47805
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/fileinfo.$suffix \$(phplibdir)
47806
 
 
47807
 
$ext_builddir/fileinfo.$suffix: \$(shared_objects_fileinfo) \$(FILEINFO_SHARED_DEPENDENCIES)
47808
 
        $link_cmd
47809
 
 
47810
 
EOF
47811
 
 
47812
 
          ;;
47813
 
      esac
47814
 
      
47815
 
cat >>confdefs.h <<_ACEOF
47816
 
@%:@define COMPILE_DL_FILEINFO 1
47817
 
_ACEOF
47818
 
 
47819
 
    fi
47820
 
  fi
47821
 
 
47822
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
47823
 
    PHP_FILEINFO_SHARED=no
47824
 
    case "$PHP_SAPI" in
47825
 
      cgi|embed)
47826
 
        
47827
 
  
47828
 
  case ext/fileinfo in
47829
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47830
 
  /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47831
 
  *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47832
 
  esac
47833
 
  
47834
 
  
47835
 
 
47836
 
  b_c_pre=$php_c_pre
47837
 
  b_cxx_pre=$php_cxx_pre
47838
 
  b_c_meta=$php_c_meta
47839
 
  b_cxx_meta=$php_cxx_meta
47840
 
  b_c_post=$php_c_post
47841
 
  b_cxx_post=$php_cxx_post
47842
 
  b_lo=$php_lo
47843
 
 
47844
 
 
47845
 
  old_IFS=$IFS
47846
 
  for ac_src in fileinfo.c $libmagic_sources; do
47847
 
  
47848
 
      IFS=.
47849
 
      set $ac_src
47850
 
      ac_obj=$1
47851
 
      IFS=$old_IFS
47852
 
      
47853
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47854
 
 
47855
 
      case $ac_src in
47856
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47857
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47858
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47859
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47860
 
      esac
47861
 
 
47862
 
    cat >>Makefile.objects<<EOF
47863
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47864
 
        $ac_comp
47865
 
EOF
47866
 
  done
47867
 
 
47868
 
 
47869
 
        EXT_STATIC="$EXT_STATIC fileinfo"
47870
 
        ;;
47871
 
      *)
47872
 
        
47873
 
  
47874
 
  case ext/fileinfo in
47875
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47876
 
  /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47877
 
  *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47878
 
  esac
47879
 
  
47880
 
  
47881
 
 
47882
 
  b_c_pre=$php_c_pre
47883
 
  b_cxx_pre=$php_cxx_pre
47884
 
  b_c_meta=$php_c_meta
47885
 
  b_cxx_meta=$php_cxx_meta
47886
 
  b_c_post=$php_c_post
47887
 
  b_cxx_post=$php_cxx_post
47888
 
  b_lo=$php_lo
47889
 
 
47890
 
 
47891
 
  old_IFS=$IFS
47892
 
  for ac_src in fileinfo.c $libmagic_sources; do
47893
 
  
47894
 
      IFS=.
47895
 
      set $ac_src
47896
 
      ac_obj=$1
47897
 
      IFS=$old_IFS
47898
 
      
47899
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
47900
 
 
47901
 
      case $ac_src in
47902
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47903
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47904
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47905
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47906
 
      esac
47907
 
 
47908
 
    cat >>Makefile.objects<<EOF
47909
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47910
 
        $ac_comp
47911
 
EOF
47912
 
  done
47913
 
 
47914
 
 
47915
 
        ;;
47916
 
    esac
47917
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
47918
 
  fi
47919
 
  
47920
 
  
47921
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
47922
 
  
47923
 
 
47924
 
 
47925
 
  if test "$ext_builddir" = "."; then
47926
 
    PHP_PECL_EXTENSION=fileinfo
47927
 
    
47928
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
47929
 
 
47930
 
  fi
47931
 
 
47932
 
  
47933
 
  
47934
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/libmagic"
47935
 
  
47936
 
 
47937
 
 
47938
 
  
47939
 
 
47940
 
for ac_func in utimes strndup
47941
 
do
47942
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47943
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47944
 
$as_echo_n "checking for $ac_func... " >&6; }
47945
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47946
 
  $as_echo_n "(cached) " >&6
47947
 
else
47948
 
  cat >conftest.$ac_ext <<_ACEOF
47949
 
/* confdefs.h.  */
47950
 
_ACEOF
47951
 
cat confdefs.h >>conftest.$ac_ext
47952
 
cat >>conftest.$ac_ext <<_ACEOF
47953
 
/* end confdefs.h.  */
47954
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47955
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47956
 
#define $ac_func innocuous_$ac_func
47957
 
 
47958
 
/* System header to define __stub macros and hopefully few prototypes,
47959
 
    which can conflict with char $ac_func (); below.
47960
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47961
 
    <limits.h> exists even on freestanding compilers.  */
47962
 
 
47963
 
#ifdef __STDC__
47964
 
# include <limits.h>
47965
 
#else
47966
 
# include <assert.h>
47967
 
#endif
47968
 
 
47969
 
#undef $ac_func
47970
 
 
47971
 
/* Override any GCC internal prototype to avoid an error.
47972
 
   Use char because int might match the return type of a GCC
47973
 
   builtin and then its argument prototype would still apply.  */
47974
 
#ifdef __cplusplus
47975
 
extern "C"
47976
 
#endif
47977
 
char $ac_func ();
47978
 
/* The GNU C library defines this for functions which it implements
47979
 
    to always fail with ENOSYS.  Some functions are actually named
47980
 
    something starting with __ and the normal name is an alias.  */
47981
 
#if defined __stub_$ac_func || defined __stub___$ac_func
47982
 
choke me
47983
 
#endif
47984
 
 
47985
 
int
47986
 
main ()
47987
 
{
47988
 
return $ac_func ();
47989
 
  ;
47990
 
  return 0;
47991
 
}
47992
 
_ACEOF
47993
 
rm -f conftest.$ac_objext conftest$ac_exeext
47994
 
if { (ac_try="$ac_link"
47995
 
case "(($ac_try" in
47996
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47997
 
  *) ac_try_echo=$ac_try;;
47998
 
esac
47999
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48000
 
$as_echo "$ac_try_echo") >&5
48001
 
  (eval "$ac_link") 2>conftest.er1
48002
 
  ac_status=$?
48003
 
  grep -v '^ *+' conftest.er1 >conftest.err
48004
 
  rm -f conftest.er1
48005
 
  cat conftest.err >&5
48006
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48007
 
  (exit $ac_status); } && {
48008
 
         test -z "$ac_c_werror_flag" ||
48009
 
         test ! -s conftest.err
48010
 
       } && test -s conftest$ac_exeext && {
48011
 
         test "$cross_compiling" = yes ||
48012
 
         $as_test_x conftest$ac_exeext
48013
 
       }; then
48014
 
  eval "$as_ac_var=yes"
48015
 
else
48016
 
  $as_echo "$as_me: failed program was:" >&5
48017
 
sed 's/^/| /' conftest.$ac_ext >&5
48018
 
 
48019
 
        eval "$as_ac_var=no"
48020
 
fi
48021
 
 
48022
 
rm -rf conftest.dSYM
48023
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48024
 
      conftest$ac_exeext conftest.$ac_ext
48025
 
fi
48026
 
ac_res=`eval 'as_val=${'$as_ac_var'}
48027
 
                 $as_echo "$as_val"'`
48028
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48029
 
$as_echo "$ac_res" >&6; }
48030
 
as_val=`eval 'as_val=${'$as_ac_var'}
48031
 
                 $as_echo "$as_val"'`
48032
 
   if test "x$as_val" = x""yes; then
48033
 
  cat >>confdefs.h <<_ACEOF
48034
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48035
 
_ACEOF
48036
 
 
48037
 
fi
48038
 
done
48039
 
 
48040
 
 
48041
 
  
48042
 
  src=$ext_srcdir/Makefile.frag
48043
 
  ac_srcdir=$ext_srcdir
48044
 
  ac_builddir=$ext_builddir
48045
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
48046
 
 
48047
 
fi
48048
 
 
48049
 
 
48050
 
 
48051
 
php_enable_filter=yes
48052
 
 
48053
 
{ $as_echo "$as_me:$LINENO: checking whether to enable input filter support" >&5
48054
 
$as_echo_n "checking whether to enable input filter support... " >&6; }
48055
 
@%:@ Check whether --enable-filter was given.
48056
 
if test "${enable_filter+set}" = set; then
48057
 
  enableval=$enable_filter; PHP_FILTER=$enableval
48058
 
else
48059
 
  
48060
 
  PHP_FILTER=yes
48061
 
  test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL
48062
 
 
48063
 
fi
48064
 
 
48065
 
 
48066
 
 
48067
 
ext_output="yes, shared"
48068
 
ext_shared=yes
48069
 
case $PHP_FILTER in
48070
 
shared,*)
48071
 
  PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'`
48072
 
  ;;
48073
 
shared)
48074
 
  PHP_FILTER=yes
48075
 
  ;;
48076
 
no)
48077
 
  ext_output=no
48078
 
  ext_shared=no
48079
 
  ;;
48080
 
*)
48081
 
  ext_output=yes
48082
 
  ext_shared=no
48083
 
  ;;
48084
 
esac
48085
 
 
48086
 
 
48087
 
 
48088
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
48089
 
$as_echo "$ext_output" >&6; }
48090
 
 
48091
 
 
48092
 
 
48093
 
 
48094
 
 
48095
 
php_with_pcre_dir=no
48096
 
 
48097
 
{ $as_echo "$as_me:$LINENO: checking pcre install prefix" >&5
48098
 
$as_echo_n "checking pcre install prefix... " >&6; }
48099
 
 
48100
 
@%:@ Check whether --with-pcre-dir was given.
48101
 
if test "${with_pcre_dir+set}" = set; then
48102
 
  withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
48103
 
else
48104
 
  
48105
 
  PHP_PCRE_DIR=no
48106
 
  
48107
 
 
48108
 
fi
48109
 
 
48110
 
 
48111
 
ext_output=$PHP_PCRE_DIR
48112
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
48113
 
$as_echo "$ext_output" >&6; }
48114
 
 
48115
 
 
48116
 
 
48117
 
 
48118
 
if test "$PHP_FILTER" != "no"; then
48119
 
 
48120
 
    if test -n "$PHP_VERSION"; then
48121
 
        ext_shared=no
48122
 
  else
48123
 
        old_CPPFLAGS=$CPPFLAGS
48124
 
    CPPFLAGS=$INCLUDES
48125
 
    cat >conftest.$ac_ext <<_ACEOF
48126
 
/* confdefs.h.  */
48127
 
_ACEOF
48128
 
cat confdefs.h >>conftest.$ac_ext
48129
 
cat >>conftest.$ac_ext <<_ACEOF
48130
 
/* end confdefs.h.  */
48131
 
 
48132
 
#include <main/php_config.h>
48133
 
#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
48134
 
yes
48135
 
#endif
48136
 
    
48137
 
_ACEOF
48138
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48139
 
  $EGREP "yes" >/dev/null 2>&1; then
48140
 
  
48141
 
      PHP_PCRE_REGEX=yes
48142
 
    
48143
 
else
48144
 
  
48145
 
      cat >conftest.$ac_ext <<_ACEOF
48146
 
/* confdefs.h.  */
48147
 
_ACEOF
48148
 
cat confdefs.h >>conftest.$ac_ext
48149
 
cat >>conftest.$ac_ext <<_ACEOF
48150
 
/* end confdefs.h.  */
48151
 
 
48152
 
#include <main/php_config.h>
48153
 
#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
48154
 
yes
48155
 
#endif
48156
 
      
48157
 
_ACEOF
48158
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48159
 
  $EGREP "yes" >/dev/null 2>&1; then
48160
 
  
48161
 
        PHP_PCRE_REGEX=pecl
48162
 
      
48163
 
else
48164
 
  
48165
 
        PHP_PCRE_REGEX=no
48166
 
      
48167
 
fi
48168
 
rm -f conftest*
48169
 
 
48170
 
    
48171
 
fi
48172
 
rm -f conftest*
48173
 
 
48174
 
    CPPFLAGS=$old_CPPFLAGS
48175
 
  fi
48176
 
 
48177
 
  
48178
 
  ext_builddir=ext/filter
48179
 
  ext_srcdir=$abs_srcdir/ext/filter
48180
 
 
48181
 
  ac_extra=
48182
 
 
48183
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
48184
 
    PHP_FILTER_SHARED=no
48185
 
    
48186
 
  
48187
 
  case ext/filter in
48188
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48189
 
  /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48190
 
  *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48191
 
  esac
48192
 
  
48193
 
  
48194
 
 
48195
 
  b_c_pre=$php_c_pre
48196
 
  b_cxx_pre=$php_cxx_pre
48197
 
  b_c_meta=$php_c_meta
48198
 
  b_cxx_meta=$php_cxx_meta
48199
 
  b_c_post=$php_c_post
48200
 
  b_cxx_post=$php_cxx_post
48201
 
  b_lo=$php_lo
48202
 
 
48203
 
 
48204
 
  old_IFS=$IFS
48205
 
  for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
48206
 
  
48207
 
      IFS=.
48208
 
      set $ac_src
48209
 
      ac_obj=$1
48210
 
      IFS=$old_IFS
48211
 
      
48212
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
48213
 
 
48214
 
      case $ac_src in
48215
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48216
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48217
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48218
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48219
 
      esac
48220
 
 
48221
 
    cat >>Makefile.objects<<EOF
48222
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48223
 
        $ac_comp
48224
 
EOF
48225
 
  done
48226
 
 
48227
 
 
48228
 
    EXT_STATIC="$EXT_STATIC filter"
48229
 
    if test "$ext_shared" != "nocli"; then
48230
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
48231
 
    fi
48232
 
  else
48233
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
48234
 
      PHP_FILTER_SHARED=yes
48235
 
      
48236
 
  case ext/filter in
48237
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48238
 
  /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48239
 
  *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48240
 
  esac
48241
 
  
48242
 
  
48243
 
 
48244
 
  b_c_pre=$shared_c_pre
48245
 
  b_cxx_pre=$shared_cxx_pre
48246
 
  b_c_meta=$shared_c_meta
48247
 
  b_cxx_meta=$shared_cxx_meta
48248
 
  b_c_post=$shared_c_post
48249
 
  b_cxx_post=$shared_cxx_post
48250
 
  b_lo=$shared_lo
48251
 
 
48252
 
 
48253
 
  old_IFS=$IFS
48254
 
  for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
48255
 
  
48256
 
      IFS=.
48257
 
      set $ac_src
48258
 
      ac_obj=$1
48259
 
      IFS=$old_IFS
48260
 
      
48261
 
      shared_objects_filter="$shared_objects_filter $ac_bdir$ac_obj.lo"
48262
 
 
48263
 
      case $ac_src in
48264
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48265
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48266
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48267
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48268
 
      esac
48269
 
 
48270
 
    cat >>Makefile.objects<<EOF
48271
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48272
 
        $ac_comp
48273
 
EOF
48274
 
  done
48275
 
 
48276
 
      case $host_alias in
48277
 
        *netware*)
48278
 
          
48279
 
  install_modules="install-modules"
48280
 
 
48281
 
  case $host_alias in
48282
 
    *aix*)
48283
 
      suffix=so
48284
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpfilter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(PHPFILTER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpfilter.so '$ext_builddir'/phpfilter.so'
48285
 
      ;;
48286
 
    *netware*)
48287
 
      suffix=nlm
48288
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) -L$(top_builddir)/netware -lphp5lib $(FILTER_SHARED_LIBADD)'
48289
 
      ;;
48290
 
    *)
48291
 
      suffix=la
48292
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(PHPFILTER_SHARED_LIBADD)'
48293
 
      ;;
48294
 
  esac
48295
 
 
48296
 
  if test "x" = "xyes"; then
48297
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfilter.$suffix"
48298
 
  else
48299
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfilter.$suffix"
48300
 
  fi
48301
 
  
48302
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
48303
 
 
48304
 
  cat >>Makefile.objects<<EOF
48305
 
\$(phplibdir)/phpfilter.$suffix: $ext_builddir/phpfilter.$suffix
48306
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpfilter.$suffix \$(phplibdir)
48307
 
 
48308
 
$ext_builddir/phpfilter.$suffix: \$(shared_objects_filter) \$(PHPFILTER_SHARED_DEPENDENCIES)
48309
 
        $link_cmd
48310
 
 
48311
 
EOF
48312
 
 
48313
 
          ;;
48314
 
        *)
48315
 
          
48316
 
  install_modules="install-modules"
48317
 
 
48318
 
  case $host_alias in
48319
 
    *aix*)
48320
 
      suffix=so
48321
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/filter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(FILTER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/filter.so '$ext_builddir'/filter.so'
48322
 
      ;;
48323
 
    *netware*)
48324
 
      suffix=nlm
48325
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) -L$(top_builddir)/netware -lphp5lib $(TER_SHARED_LIBADD)'
48326
 
      ;;
48327
 
    *)
48328
 
      suffix=la
48329
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_filter) $(FILTER_SHARED_LIBADD)'
48330
 
      ;;
48331
 
  esac
48332
 
 
48333
 
  if test "x" = "xyes"; then
48334
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/filter.$suffix"
48335
 
  else
48336
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/filter.$suffix"
48337
 
  fi
48338
 
  
48339
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
48340
 
 
48341
 
  cat >>Makefile.objects<<EOF
48342
 
\$(phplibdir)/filter.$suffix: $ext_builddir/filter.$suffix
48343
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/filter.$suffix \$(phplibdir)
48344
 
 
48345
 
$ext_builddir/filter.$suffix: \$(shared_objects_filter) \$(FILTER_SHARED_DEPENDENCIES)
48346
 
        $link_cmd
48347
 
 
48348
 
EOF
48349
 
 
48350
 
          ;;
48351
 
      esac
48352
 
      
48353
 
cat >>confdefs.h <<_ACEOF
48354
 
@%:@define COMPILE_DL_FILTER 1
48355
 
_ACEOF
48356
 
 
48357
 
    fi
48358
 
  fi
48359
 
 
48360
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
48361
 
    PHP_FILTER_SHARED=no
48362
 
    case "$PHP_SAPI" in
48363
 
      cgi|embed)
48364
 
        
48365
 
  
48366
 
  case ext/filter in
48367
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48368
 
  /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48369
 
  *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48370
 
  esac
48371
 
  
48372
 
  
48373
 
 
48374
 
  b_c_pre=$php_c_pre
48375
 
  b_cxx_pre=$php_cxx_pre
48376
 
  b_c_meta=$php_c_meta
48377
 
  b_cxx_meta=$php_cxx_meta
48378
 
  b_c_post=$php_c_post
48379
 
  b_cxx_post=$php_cxx_post
48380
 
  b_lo=$php_lo
48381
 
 
48382
 
 
48383
 
  old_IFS=$IFS
48384
 
  for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
48385
 
  
48386
 
      IFS=.
48387
 
      set $ac_src
48388
 
      ac_obj=$1
48389
 
      IFS=$old_IFS
48390
 
      
48391
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
48392
 
 
48393
 
      case $ac_src in
48394
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48395
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48396
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48397
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48398
 
      esac
48399
 
 
48400
 
    cat >>Makefile.objects<<EOF
48401
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48402
 
        $ac_comp
48403
 
EOF
48404
 
  done
48405
 
 
48406
 
 
48407
 
        EXT_STATIC="$EXT_STATIC filter"
48408
 
        ;;
48409
 
      *)
48410
 
        
48411
 
  
48412
 
  case ext/filter in
48413
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48414
 
  /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48415
 
  *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48416
 
  esac
48417
 
  
48418
 
  
48419
 
 
48420
 
  b_c_pre=$php_c_pre
48421
 
  b_cxx_pre=$php_cxx_pre
48422
 
  b_c_meta=$php_c_meta
48423
 
  b_cxx_meta=$php_cxx_meta
48424
 
  b_c_post=$php_c_post
48425
 
  b_cxx_post=$php_cxx_post
48426
 
  b_lo=$php_lo
48427
 
 
48428
 
 
48429
 
  old_IFS=$IFS
48430
 
  for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
48431
 
  
48432
 
      IFS=.
48433
 
      set $ac_src
48434
 
      ac_obj=$1
48435
 
      IFS=$old_IFS
48436
 
      
48437
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
48438
 
 
48439
 
      case $ac_src in
48440
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48441
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48442
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48443
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48444
 
      esac
48445
 
 
48446
 
    cat >>Makefile.objects<<EOF
48447
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48448
 
        $ac_comp
48449
 
EOF
48450
 
  done
48451
 
 
48452
 
 
48453
 
        ;;
48454
 
    esac
48455
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
48456
 
  fi
48457
 
  
48458
 
  
48459
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
48460
 
  
48461
 
 
48462
 
 
48463
 
  if test "$ext_builddir" = "."; then
48464
 
    PHP_PECL_EXTENSION=filter
48465
 
    
48466
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
48467
 
 
48468
 
  fi
48469
 
 
48470
 
  
48471
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST FILTER_SHARED_LIBADD"
48472
 
 
48473
 
 
48474
 
  
48475
 
  
48476
 
    for header_file in ext/filter/php_filter.h; do
48477
 
      
48478
 
  
48479
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
48480
 
  
48481
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
48482
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
48483
 
    eval "INSTALLHEADERS$unique=set"
48484
 
    
48485
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
48486
 
      
48487
 
  fi
48488
 
 
48489
 
    done 
48490
 
  
48491
 
 
48492
 
  
48493
 
  am_i_shared=$PHP_FILTER_SHARED
48494
 
  is_it_shared=$PHP_PCRE_SHARED
48495
 
  is_it_enabled=$PHP_PCRE
48496
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
48497
 
    { { $as_echo "$as_me:$LINENO: error: 
48498
 
You've configured extension filter to build statically, but it
48499
 
depends on extension pcre, which you've configured to build shared.
48500
 
You either need to build filter shared or build pcre statically for the
48501
 
build to be successful.
48502
 
" >&5
48503
 
$as_echo "$as_me: error: 
48504
 
You've configured extension filter to build statically, but it
48505
 
depends on extension pcre, which you've configured to build shared.
48506
 
You either need to build filter shared or build pcre statically for the
48507
 
build to be successful.
48508
 
" >&2;}
48509
 
   { (exit 1); exit 1; }; }
48510
 
  fi
48511
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
48512
 
    { { $as_echo "$as_me:$LINENO: error: 
48513
 
You've configured extension filter, which depends on extension pcre,
48514
 
but you've either not enabled pcre, or have disabled it.
48515
 
" >&5
48516
 
$as_echo "$as_me: error: 
48517
 
You've configured extension filter, which depends on extension pcre,
48518
 
but you've either not enabled pcre, or have disabled it.
48519
 
" >&2;}
48520
 
   { (exit 1); exit 1; }; }
48521
 
  fi
48522
 
  
48523
 
fi
48524
 
 
48525
 
 
48526
 
 
48527
 
php_enable_ftp=no
48528
 
 
48529
 
{ $as_echo "$as_me:$LINENO: checking whether to enable FTP support" >&5
48530
 
$as_echo_n "checking whether to enable FTP support... " >&6; }
48531
 
@%:@ Check whether --enable-ftp was given.
48532
 
if test "${enable_ftp+set}" = set; then
48533
 
  enableval=$enable_ftp; PHP_FTP=$enableval
48534
 
else
48535
 
  
48536
 
  PHP_FTP=no
48537
 
  test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL
48538
 
 
48539
 
fi
48540
 
 
48541
 
 
48542
 
 
48543
 
ext_output="yes, shared"
48544
 
ext_shared=yes
48545
 
case $PHP_FTP in
48546
 
shared,*)
48547
 
  PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'`
48548
 
  ;;
48549
 
shared)
48550
 
  PHP_FTP=yes
48551
 
  ;;
48552
 
no)
48553
 
  ext_output=no
48554
 
  ext_shared=no
48555
 
  ;;
48556
 
*)
48557
 
  ext_output=yes
48558
 
  ext_shared=no
48559
 
  ;;
48560
 
esac
48561
 
 
48562
 
 
48563
 
 
48564
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
48565
 
$as_echo "$ext_output" >&6; }
48566
 
 
48567
 
 
48568
 
 
48569
 
 
48570
 
 
48571
 
php_with_openssl_dir=no
48572
 
 
48573
 
{ $as_echo "$as_me:$LINENO: checking OpenSSL dir for FTP" >&5
48574
 
$as_echo_n "checking OpenSSL dir for FTP... " >&6; }
48575
 
 
48576
 
@%:@ Check whether --with-openssl-dir was given.
48577
 
if test "${with_openssl_dir+set}" = set; then
48578
 
  withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
48579
 
else
48580
 
  
48581
 
  PHP_OPENSSL_DIR=no
48582
 
  
48583
 
 
48584
 
fi
48585
 
 
48586
 
 
48587
 
ext_output=$PHP_OPENSSL_DIR
48588
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
48589
 
$as_echo "$ext_output" >&6; }
48590
 
 
48591
 
 
48592
 
 
48593
 
 
48594
 
if test "$PHP_FTP" = "yes"; then
48595
 
  
48596
 
cat >>confdefs.h <<\_ACEOF
48597
 
@%:@define HAVE_FTP 1
48598
 
_ACEOF
48599
 
 
48600
 
  
48601
 
  ext_builddir=ext/ftp
48602
 
  ext_srcdir=$abs_srcdir/ext/ftp
48603
 
 
48604
 
  ac_extra=
48605
 
 
48606
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
48607
 
    PHP_FTP_SHARED=no
48608
 
    
48609
 
  
48610
 
  case ext/ftp in
48611
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48612
 
  /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48613
 
  *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48614
 
  esac
48615
 
  
48616
 
  
48617
 
 
48618
 
  b_c_pre=$php_c_pre
48619
 
  b_cxx_pre=$php_cxx_pre
48620
 
  b_c_meta=$php_c_meta
48621
 
  b_cxx_meta=$php_cxx_meta
48622
 
  b_c_post=$php_c_post
48623
 
  b_cxx_post=$php_cxx_post
48624
 
  b_lo=$php_lo
48625
 
 
48626
 
 
48627
 
  old_IFS=$IFS
48628
 
  for ac_src in php_ftp.c ftp.c; do
48629
 
  
48630
 
      IFS=.
48631
 
      set $ac_src
48632
 
      ac_obj=$1
48633
 
      IFS=$old_IFS
48634
 
      
48635
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
48636
 
 
48637
 
      case $ac_src in
48638
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48639
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48640
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48641
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48642
 
      esac
48643
 
 
48644
 
    cat >>Makefile.objects<<EOF
48645
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48646
 
        $ac_comp
48647
 
EOF
48648
 
  done
48649
 
 
48650
 
 
48651
 
    EXT_STATIC="$EXT_STATIC ftp"
48652
 
    if test "$ext_shared" != "nocli"; then
48653
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
48654
 
    fi
48655
 
  else
48656
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
48657
 
      PHP_FTP_SHARED=yes
48658
 
      
48659
 
  case ext/ftp in
48660
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48661
 
  /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48662
 
  *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48663
 
  esac
48664
 
  
48665
 
  
48666
 
 
48667
 
  b_c_pre=$shared_c_pre
48668
 
  b_cxx_pre=$shared_cxx_pre
48669
 
  b_c_meta=$shared_c_meta
48670
 
  b_cxx_meta=$shared_cxx_meta
48671
 
  b_c_post=$shared_c_post
48672
 
  b_cxx_post=$shared_cxx_post
48673
 
  b_lo=$shared_lo
48674
 
 
48675
 
 
48676
 
  old_IFS=$IFS
48677
 
  for ac_src in php_ftp.c ftp.c; do
48678
 
  
48679
 
      IFS=.
48680
 
      set $ac_src
48681
 
      ac_obj=$1
48682
 
      IFS=$old_IFS
48683
 
      
48684
 
      shared_objects_ftp="$shared_objects_ftp $ac_bdir$ac_obj.lo"
48685
 
 
48686
 
      case $ac_src in
48687
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48688
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48689
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48690
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48691
 
      esac
48692
 
 
48693
 
    cat >>Makefile.objects<<EOF
48694
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48695
 
        $ac_comp
48696
 
EOF
48697
 
  done
48698
 
 
48699
 
      case $host_alias in
48700
 
        *netware*)
48701
 
          
48702
 
  install_modules="install-modules"
48703
 
 
48704
 
  case $host_alias in
48705
 
    *aix*)
48706
 
      suffix=so
48707
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpftp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(PHPFTP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpftp.so '$ext_builddir'/phpftp.so'
48708
 
      ;;
48709
 
    *netware*)
48710
 
      suffix=nlm
48711
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) -L$(top_builddir)/netware -lphp5lib $(FTP_SHARED_LIBADD)'
48712
 
      ;;
48713
 
    *)
48714
 
      suffix=la
48715
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(PHPFTP_SHARED_LIBADD)'
48716
 
      ;;
48717
 
  esac
48718
 
 
48719
 
  if test "x" = "xyes"; then
48720
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpftp.$suffix"
48721
 
  else
48722
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpftp.$suffix"
48723
 
  fi
48724
 
  
48725
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
48726
 
 
48727
 
  cat >>Makefile.objects<<EOF
48728
 
\$(phplibdir)/phpftp.$suffix: $ext_builddir/phpftp.$suffix
48729
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpftp.$suffix \$(phplibdir)
48730
 
 
48731
 
$ext_builddir/phpftp.$suffix: \$(shared_objects_ftp) \$(PHPFTP_SHARED_DEPENDENCIES)
48732
 
        $link_cmd
48733
 
 
48734
 
EOF
48735
 
 
48736
 
          ;;
48737
 
        *)
48738
 
          
48739
 
  install_modules="install-modules"
48740
 
 
48741
 
  case $host_alias in
48742
 
    *aix*)
48743
 
      suffix=so
48744
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ftp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(FTP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ftp.so '$ext_builddir'/ftp.so'
48745
 
      ;;
48746
 
    *netware*)
48747
 
      suffix=nlm
48748
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
48749
 
      ;;
48750
 
    *)
48751
 
      suffix=la
48752
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ftp) $(FTP_SHARED_LIBADD)'
48753
 
      ;;
48754
 
  esac
48755
 
 
48756
 
  if test "x" = "xyes"; then
48757
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ftp.$suffix"
48758
 
  else
48759
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/ftp.$suffix"
48760
 
  fi
48761
 
  
48762
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
48763
 
 
48764
 
  cat >>Makefile.objects<<EOF
48765
 
\$(phplibdir)/ftp.$suffix: $ext_builddir/ftp.$suffix
48766
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/ftp.$suffix \$(phplibdir)
48767
 
 
48768
 
$ext_builddir/ftp.$suffix: \$(shared_objects_ftp) \$(FTP_SHARED_DEPENDENCIES)
48769
 
        $link_cmd
48770
 
 
48771
 
EOF
48772
 
 
48773
 
          ;;
48774
 
      esac
48775
 
      
48776
 
cat >>confdefs.h <<_ACEOF
48777
 
@%:@define COMPILE_DL_FTP 1
48778
 
_ACEOF
48779
 
 
48780
 
    fi
48781
 
  fi
48782
 
 
48783
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
48784
 
    PHP_FTP_SHARED=no
48785
 
    case "$PHP_SAPI" in
48786
 
      cgi|embed)
48787
 
        
48788
 
  
48789
 
  case ext/ftp in
48790
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48791
 
  /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48792
 
  *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48793
 
  esac
48794
 
  
48795
 
  
48796
 
 
48797
 
  b_c_pre=$php_c_pre
48798
 
  b_cxx_pre=$php_cxx_pre
48799
 
  b_c_meta=$php_c_meta
48800
 
  b_cxx_meta=$php_cxx_meta
48801
 
  b_c_post=$php_c_post
48802
 
  b_cxx_post=$php_cxx_post
48803
 
  b_lo=$php_lo
48804
 
 
48805
 
 
48806
 
  old_IFS=$IFS
48807
 
  for ac_src in php_ftp.c ftp.c; do
48808
 
  
48809
 
      IFS=.
48810
 
      set $ac_src
48811
 
      ac_obj=$1
48812
 
      IFS=$old_IFS
48813
 
      
48814
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
48815
 
 
48816
 
      case $ac_src in
48817
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48818
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48819
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48820
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48821
 
      esac
48822
 
 
48823
 
    cat >>Makefile.objects<<EOF
48824
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48825
 
        $ac_comp
48826
 
EOF
48827
 
  done
48828
 
 
48829
 
 
48830
 
        EXT_STATIC="$EXT_STATIC ftp"
48831
 
        ;;
48832
 
      *)
48833
 
        
48834
 
  
48835
 
  case ext/ftp in
48836
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48837
 
  /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48838
 
  *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48839
 
  esac
48840
 
  
48841
 
  
48842
 
 
48843
 
  b_c_pre=$php_c_pre
48844
 
  b_cxx_pre=$php_cxx_pre
48845
 
  b_c_meta=$php_c_meta
48846
 
  b_cxx_meta=$php_cxx_meta
48847
 
  b_c_post=$php_c_post
48848
 
  b_cxx_post=$php_cxx_post
48849
 
  b_lo=$php_lo
48850
 
 
48851
 
 
48852
 
  old_IFS=$IFS
48853
 
  for ac_src in php_ftp.c ftp.c; do
48854
 
  
48855
 
      IFS=.
48856
 
      set $ac_src
48857
 
      ac_obj=$1
48858
 
      IFS=$old_IFS
48859
 
      
48860
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
48861
 
 
48862
 
      case $ac_src in
48863
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48864
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48865
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48866
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48867
 
      esac
48868
 
 
48869
 
    cat >>Makefile.objects<<EOF
48870
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48871
 
        $ac_comp
48872
 
EOF
48873
 
  done
48874
 
 
48875
 
 
48876
 
        ;;
48877
 
    esac
48878
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
48879
 
  fi
48880
 
  
48881
 
  
48882
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
48883
 
  
48884
 
 
48885
 
 
48886
 
  if test "$ext_builddir" = "."; then
48887
 
    PHP_PECL_EXTENSION=ftp
48888
 
    
48889
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
48890
 
 
48891
 
  fi
48892
 
 
48893
 
 
48894
 
    test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
48895
 
 
48896
 
  if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
48897
 
    
48898
 
  found_openssl=no
48899
 
  unset OPENSSL_INCDIR
48900
 
  unset OPENSSL_LIBDIR
48901
 
 
48902
 
    test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
48903
 
  test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
48904
 
 
48905
 
    if test "$PHP_OPENSSL" != "no"; then
48906
 
    PHP_OPENSSL_DIR=$PHP_OPENSSL
48907
 
  elif test "$PHP_IMAP_SSL" != "no"; then
48908
 
    PHP_OPENSSL_DIR=$PHP_IMAP_SSL
48909
 
  fi
48910
 
 
48911
 
    if test -z "$PKG_CONFIG"; then
48912
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
48913
 
set dummy pkg-config; ac_word=$2
48914
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48915
 
$as_echo_n "checking for $ac_word... " >&6; }
48916
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
48917
 
  $as_echo_n "(cached) " >&6
48918
 
else
48919
 
  case $PKG_CONFIG in
48920
 
  [\\/]* | ?:[\\/]*)
48921
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
48922
 
  ;;
48923
 
  *)
48924
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48925
 
for as_dir in $PATH
48926
 
do
48927
 
  IFS=$as_save_IFS
48928
 
  test -z "$as_dir" && as_dir=.
48929
 
  for ac_exec_ext in '' $ac_executable_extensions; do
48930
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48931
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48932
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48933
 
    break 2
48934
 
  fi
48935
 
done
48936
 
done
48937
 
IFS=$as_save_IFS
48938
 
 
48939
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
48940
 
  ;;
48941
 
esac
48942
 
fi
48943
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
48944
 
if test -n "$PKG_CONFIG"; then
48945
 
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
48946
 
$as_echo "$PKG_CONFIG" >&6; }
48947
 
else
48948
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
48949
 
$as_echo "no" >&6; }
48950
 
fi
48951
 
 
48952
 
 
48953
 
  fi
48954
 
 
48955
 
    if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
48956
 
    if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
48957
 
      found_openssl=yes
48958
 
      OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
48959
 
      OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
48960
 
      OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
48961
 
    else
48962
 
      { { $as_echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
48963
 
$as_echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
48964
 
   { (exit 1); exit 1; }; }
48965
 
    fi
48966
 
 
48967
 
    if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
48968
 
      
48969
 
  for ac_i in $OPENSSL_LIBS; do
48970
 
    case $ac_i in
48971
 
    -pthread)
48972
 
      if test "$ext_shared" = "yes"; then
48973
 
        FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread"
48974
 
      else
48975
 
        
48976
 
  
48977
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
48978
 
  
48979
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
48980
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
48981
 
    eval "EXTRA_LDFLAGS$unique=set"
48982
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
48983
 
  fi
48984
 
 
48985
 
      fi
48986
 
    ;;
48987
 
    -l*)
48988
 
      ac_ii=`echo $ac_i|cut -c 3-`
48989
 
      
48990
 
  
48991
 
  case $ac_ii in
48992
 
  c|c_r|pthread*) ;;
48993
 
  *) 
48994
 
    if test "$ext_shared" = "yes"; then
48995
 
        FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii" 
48996
 
    else
48997
 
      
48998
 
  
48999
 
  case $ac_ii in
49000
 
  c|c_r|pthread*) ;;
49001
 
  *) 
49002
 
      LIBS="$LIBS -l$ac_ii" 
49003
 
   ;;
49004
 
  esac
49005
 
 
49006
 
 
49007
 
    fi
49008
 
   ;;
49009
 
  esac
49010
 
 
49011
 
 
49012
 
    ;;
49013
 
    -L*)
49014
 
      ac_ii=`echo $ac_i|cut -c 3-`
49015
 
      
49016
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
49017
 
    
49018
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
49019
 
    ai_p=$ac_ii
49020
 
  else
49021
 
    
49022
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
49023
 
    
49024
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49025
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
49026
 
  fi
49027
 
 
49028
 
    
49029
 
      if test "$ext_shared" = "yes"; then
49030
 
        FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
49031
 
        test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
49032
 
      else
49033
 
        
49034
 
  
49035
 
  
49036
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49037
 
  
49038
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49039
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
49040
 
    eval "LIBPATH$unique=set"
49041
 
    
49042
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49043
 
    LDFLAGS="$LDFLAGS -L$ai_p"
49044
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
49045
 
  
49046
 
  fi
49047
 
 
49048
 
 
49049
 
      fi
49050
 
    
49051
 
  fi
49052
 
 
49053
 
    ;;
49054
 
    esac
49055
 
  done
49056
 
 
49057
 
      
49058
 
  for ac_i in $OPENSSL_INCS; do
49059
 
    case $ac_i in
49060
 
    -I*)
49061
 
      ac_ii=`echo $ac_i|cut -c 3-`
49062
 
      
49063
 
  if test "$ac_ii" != "/usr/include"; then
49064
 
    
49065
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
49066
 
    ai_p=$ac_ii
49067
 
  else
49068
 
    
49069
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
49070
 
    
49071
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49072
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
49073
 
  fi
49074
 
 
49075
 
    
49076
 
  
49077
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49078
 
  
49079
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
49080
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
49081
 
    eval "INCLUDEPATH$unique=set"
49082
 
    
49083
 
      if test ""; then
49084
 
        INCLUDES="-I$ai_p $INCLUDES"
49085
 
      else
49086
 
        INCLUDES="$INCLUDES -I$ai_p"
49087
 
      fi
49088
 
    
49089
 
  fi
49090
 
 
49091
 
  fi
49092
 
 
49093
 
    ;;
49094
 
    esac
49095
 
  done
49096
 
 
49097
 
    fi
49098
 
  fi
49099
 
 
49100
 
    if test "$found_openssl" = "no"; then
49101
 
  
49102
 
    if test "$PHP_OPENSSL_DIR" = "yes"; then
49103
 
      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
49104
 
    fi
49105
 
 
49106
 
    for i in $PHP_OPENSSL_DIR; do
49107
 
      if test -r $i/include/openssl/evp.h; then
49108
 
        OPENSSL_INCDIR=$i/include
49109
 
      fi
49110
 
      if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
49111
 
        OPENSSL_LIBDIR=$i/$PHP_LIBDIR
49112
 
      fi
49113
 
      test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
49114
 
    done
49115
 
 
49116
 
    if test -z "$OPENSSL_INCDIR"; then
49117
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find OpenSSL's <evp.h>" >&5
49118
 
$as_echo "$as_me: error: Cannot find OpenSSL's <evp.h>" >&2;}
49119
 
   { (exit 1); exit 1; }; }
49120
 
    fi
49121
 
 
49122
 
    if test -z "$OPENSSL_LIBDIR"; then
49123
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find OpenSSL's libraries" >&5
49124
 
$as_echo "$as_me: error: Cannot find OpenSSL's libraries" >&2;}
49125
 
   { (exit 1); exit 1; }; }
49126
 
    fi
49127
 
 
49128
 
    old_CPPFLAGS=$CPPFLAGS
49129
 
    CPPFLAGS=-I$OPENSSL_INCDIR
49130
 
    { $as_echo "$as_me:$LINENO: checking for OpenSSL version" >&5
49131
 
$as_echo_n "checking for OpenSSL version... " >&6; }
49132
 
    cat >conftest.$ac_ext <<_ACEOF
49133
 
/* confdefs.h.  */
49134
 
_ACEOF
49135
 
cat confdefs.h >>conftest.$ac_ext
49136
 
cat >>conftest.$ac_ext <<_ACEOF
49137
 
/* end confdefs.h.  */
49138
 
 
49139
 
#include <openssl/opensslv.h>
49140
 
#if OPENSSL_VERSION_NUMBER >= 0x0090600fL
49141
 
  yes
49142
 
#endif
49143
 
    
49144
 
_ACEOF
49145
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49146
 
  $EGREP "yes" >/dev/null 2>&1; then
49147
 
  
49148
 
      { $as_echo "$as_me:$LINENO: result: >= 0.9.6" >&5
49149
 
$as_echo ">= 0.9.6" >&6; }
49150
 
    
49151
 
else
49152
 
  
49153
 
      { { $as_echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
49154
 
$as_echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
49155
 
   { (exit 1); exit 1; }; }
49156
 
    
49157
 
fi
49158
 
rm -f conftest*
49159
 
 
49160
 
    CPPFLAGS=$old_CPPFLAGS
49161
 
 
49162
 
    
49163
 
  if test "$OPENSSL_INCDIR" != "/usr/include"; then
49164
 
    
49165
 
  if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
49166
 
    ai_p=$OPENSSL_INCDIR
49167
 
  else
49168
 
    
49169
 
    ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
49170
 
    
49171
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49172
 
    ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
49173
 
  fi
49174
 
 
49175
 
    
49176
 
  
49177
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49178
 
  
49179
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
49180
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
49181
 
    eval "INCLUDEPATH$unique=set"
49182
 
    
49183
 
      if test ""; then
49184
 
        INCLUDES="-I$ai_p $INCLUDES"
49185
 
      else
49186
 
        INCLUDES="$INCLUDES -I$ai_p"
49187
 
      fi
49188
 
    
49189
 
  fi
49190
 
 
49191
 
  fi
49192
 
 
49193
 
  
49194
 
    
49195
 
  save_old_LDFLAGS=$LDFLAGS
49196
 
  ac_stuff="
49197
 
      -L$OPENSSL_LIBDIR
49198
 
    "
49199
 
  
49200
 
  save_ext_shared=$ext_shared
49201
 
  ext_shared=yes
49202
 
  
49203
 
  for ac_i in $ac_stuff; do
49204
 
    case $ac_i in
49205
 
    -pthread)
49206
 
      if test "$ext_shared" = "yes"; then
49207
 
        LDFLAGS="$LDFLAGS -pthread"
49208
 
      else
49209
 
        
49210
 
  
49211
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
49212
 
  
49213
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
49214
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
49215
 
    eval "EXTRA_LDFLAGS$unique=set"
49216
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
49217
 
  fi
49218
 
 
49219
 
      fi
49220
 
    ;;
49221
 
    -l*)
49222
 
      ac_ii=`echo $ac_i|cut -c 3-`
49223
 
      
49224
 
  
49225
 
  case $ac_ii in
49226
 
  c|c_r|pthread*) ;;
49227
 
  *) 
49228
 
    if test "$ext_shared" = "yes"; then
49229
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
49230
 
    else
49231
 
      
49232
 
  
49233
 
  case $ac_ii in
49234
 
  c|c_r|pthread*) ;;
49235
 
  *) 
49236
 
      LIBS="$LIBS -l$ac_ii" 
49237
 
   ;;
49238
 
  esac
49239
 
 
49240
 
 
49241
 
    fi
49242
 
   ;;
49243
 
  esac
49244
 
 
49245
 
 
49246
 
    ;;
49247
 
    -L*)
49248
 
      ac_ii=`echo $ac_i|cut -c 3-`
49249
 
      
49250
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
49251
 
    
49252
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
49253
 
    ai_p=$ac_ii
49254
 
  else
49255
 
    
49256
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
49257
 
    
49258
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49259
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
49260
 
  fi
49261
 
 
49262
 
    
49263
 
      if test "$ext_shared" = "yes"; then
49264
 
        LDFLAGS="-L$ai_p $LDFLAGS"
49265
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
49266
 
      else
49267
 
        
49268
 
  
49269
 
  
49270
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49271
 
  
49272
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49273
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
49274
 
    eval "LIBPATH$unique=set"
49275
 
    
49276
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49277
 
    LDFLAGS="$LDFLAGS -L$ai_p"
49278
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
49279
 
  
49280
 
  fi
49281
 
 
49282
 
 
49283
 
      fi
49284
 
    
49285
 
  fi
49286
 
 
49287
 
    ;;
49288
 
    esac
49289
 
  done
49290
 
 
49291
 
  { $as_echo "$as_me:$LINENO: checking for CRYPTO_free in -lcrypto" >&5
49292
 
$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
49293
 
if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then
49294
 
  $as_echo_n "(cached) " >&6
49295
 
else
49296
 
  ac_check_lib_save_LIBS=$LIBS
49297
 
LIBS="-lcrypto  $LIBS"
49298
 
cat >conftest.$ac_ext <<_ACEOF
49299
 
/* confdefs.h.  */
49300
 
_ACEOF
49301
 
cat confdefs.h >>conftest.$ac_ext
49302
 
cat >>conftest.$ac_ext <<_ACEOF
49303
 
/* end confdefs.h.  */
49304
 
 
49305
 
/* Override any GCC internal prototype to avoid an error.
49306
 
   Use char because int might match the return type of a GCC
49307
 
   builtin and then its argument prototype would still apply.  */
49308
 
#ifdef __cplusplus
49309
 
extern "C"
49310
 
#endif
49311
 
char CRYPTO_free ();
49312
 
int
49313
 
main ()
49314
 
{
49315
 
return CRYPTO_free ();
49316
 
  ;
49317
 
  return 0;
49318
 
}
49319
 
_ACEOF
49320
 
rm -f conftest.$ac_objext conftest$ac_exeext
49321
 
if { (ac_try="$ac_link"
49322
 
case "(($ac_try" in
49323
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49324
 
  *) ac_try_echo=$ac_try;;
49325
 
esac
49326
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49327
 
$as_echo "$ac_try_echo") >&5
49328
 
  (eval "$ac_link") 2>conftest.er1
49329
 
  ac_status=$?
49330
 
  grep -v '^ *+' conftest.er1 >conftest.err
49331
 
  rm -f conftest.er1
49332
 
  cat conftest.err >&5
49333
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49334
 
  (exit $ac_status); } && {
49335
 
         test -z "$ac_c_werror_flag" ||
49336
 
         test ! -s conftest.err
49337
 
       } && test -s conftest$ac_exeext && {
49338
 
         test "$cross_compiling" = yes ||
49339
 
         $as_test_x conftest$ac_exeext
49340
 
       }; then
49341
 
  ac_cv_lib_crypto_CRYPTO_free=yes
49342
 
else
49343
 
  $as_echo "$as_me: failed program was:" >&5
49344
 
sed 's/^/| /' conftest.$ac_ext >&5
49345
 
 
49346
 
        ac_cv_lib_crypto_CRYPTO_free=no
49347
 
fi
49348
 
 
49349
 
rm -rf conftest.dSYM
49350
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49351
 
      conftest$ac_exeext conftest.$ac_ext
49352
 
LIBS=$ac_check_lib_save_LIBS
49353
 
fi
49354
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
49355
 
$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
49356
 
if test "x$ac_cv_lib_crypto_CRYPTO_free" = x""yes; then
49357
 
  
49358
 
    LDFLAGS=$save_old_LDFLAGS
49359
 
    ext_shared=$save_ext_shared
49360
 
    
49361
 
      
49362
 
  
49363
 
  case crypto in
49364
 
  c|c_r|pthread*) ;;
49365
 
  *) 
49366
 
    if test "$ext_shared" = "yes"; then
49367
 
        FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD" 
49368
 
    else
49369
 
      
49370
 
  
49371
 
  case crypto in
49372
 
  c|c_r|pthread*) ;;
49373
 
  *) 
49374
 
      LIBS="-lcrypto $LIBS" 
49375
 
   ;;
49376
 
  esac
49377
 
 
49378
 
 
49379
 
    fi
49380
 
   ;;
49381
 
  esac
49382
 
 
49383
 
 
49384
 
    
49385
 
  
49386
 
else
49387
 
  
49388
 
    LDFLAGS=$save_old_LDFLAGS
49389
 
    ext_shared=$save_ext_shared
49390
 
    unset ac_cv_lib_crypto_CRYPTO_free
49391
 
    
49392
 
      { { $as_echo "$as_me:$LINENO: error: libcrypto not found!" >&5
49393
 
$as_echo "$as_me: error: libcrypto not found!" >&2;}
49394
 
   { (exit 1); exit 1; }; }
49395
 
    
49396
 
  
49397
 
fi
49398
 
 
49399
 
 
49400
 
    old_LIBS=$LIBS
49401
 
    LIBS="$LIBS -lcrypto"
49402
 
    
49403
 
  save_old_LDFLAGS=$LDFLAGS
49404
 
  ac_stuff="
49405
 
      -L$OPENSSL_LIBDIR
49406
 
    "
49407
 
  
49408
 
  save_ext_shared=$ext_shared
49409
 
  ext_shared=yes
49410
 
  
49411
 
  for ac_i in $ac_stuff; do
49412
 
    case $ac_i in
49413
 
    -pthread)
49414
 
      if test "$ext_shared" = "yes"; then
49415
 
        LDFLAGS="$LDFLAGS -pthread"
49416
 
      else
49417
 
        
49418
 
  
49419
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
49420
 
  
49421
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
49422
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
49423
 
    eval "EXTRA_LDFLAGS$unique=set"
49424
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
49425
 
  fi
49426
 
 
49427
 
      fi
49428
 
    ;;
49429
 
    -l*)
49430
 
      ac_ii=`echo $ac_i|cut -c 3-`
49431
 
      
49432
 
  
49433
 
  case $ac_ii in
49434
 
  c|c_r|pthread*) ;;
49435
 
  *) 
49436
 
    if test "$ext_shared" = "yes"; then
49437
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
49438
 
    else
49439
 
      
49440
 
  
49441
 
  case $ac_ii in
49442
 
  c|c_r|pthread*) ;;
49443
 
  *) 
49444
 
      LIBS="$LIBS -l$ac_ii" 
49445
 
   ;;
49446
 
  esac
49447
 
 
49448
 
 
49449
 
    fi
49450
 
   ;;
49451
 
  esac
49452
 
 
49453
 
 
49454
 
    ;;
49455
 
    -L*)
49456
 
      ac_ii=`echo $ac_i|cut -c 3-`
49457
 
      
49458
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
49459
 
    
49460
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
49461
 
    ai_p=$ac_ii
49462
 
  else
49463
 
    
49464
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
49465
 
    
49466
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49467
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
49468
 
  fi
49469
 
 
49470
 
    
49471
 
      if test "$ext_shared" = "yes"; then
49472
 
        LDFLAGS="-L$ai_p $LDFLAGS"
49473
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
49474
 
      else
49475
 
        
49476
 
  
49477
 
  
49478
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49479
 
  
49480
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49481
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
49482
 
    eval "LIBPATH$unique=set"
49483
 
    
49484
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49485
 
    LDFLAGS="$LDFLAGS -L$ai_p"
49486
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
49487
 
  
49488
 
  fi
49489
 
 
49490
 
 
49491
 
      fi
49492
 
    
49493
 
  fi
49494
 
 
49495
 
    ;;
49496
 
    esac
49497
 
  done
49498
 
 
49499
 
  { $as_echo "$as_me:$LINENO: checking for SSL_CTX_set_ssl_version in -lssl" >&5
49500
 
$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
49501
 
if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then
49502
 
  $as_echo_n "(cached) " >&6
49503
 
else
49504
 
  ac_check_lib_save_LIBS=$LIBS
49505
 
LIBS="-lssl  $LIBS"
49506
 
cat >conftest.$ac_ext <<_ACEOF
49507
 
/* confdefs.h.  */
49508
 
_ACEOF
49509
 
cat confdefs.h >>conftest.$ac_ext
49510
 
cat >>conftest.$ac_ext <<_ACEOF
49511
 
/* end confdefs.h.  */
49512
 
 
49513
 
/* Override any GCC internal prototype to avoid an error.
49514
 
   Use char because int might match the return type of a GCC
49515
 
   builtin and then its argument prototype would still apply.  */
49516
 
#ifdef __cplusplus
49517
 
extern "C"
49518
 
#endif
49519
 
char SSL_CTX_set_ssl_version ();
49520
 
int
49521
 
main ()
49522
 
{
49523
 
return SSL_CTX_set_ssl_version ();
49524
 
  ;
49525
 
  return 0;
49526
 
}
49527
 
_ACEOF
49528
 
rm -f conftest.$ac_objext conftest$ac_exeext
49529
 
if { (ac_try="$ac_link"
49530
 
case "(($ac_try" in
49531
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49532
 
  *) ac_try_echo=$ac_try;;
49533
 
esac
49534
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49535
 
$as_echo "$ac_try_echo") >&5
49536
 
  (eval "$ac_link") 2>conftest.er1
49537
 
  ac_status=$?
49538
 
  grep -v '^ *+' conftest.er1 >conftest.err
49539
 
  rm -f conftest.er1
49540
 
  cat conftest.err >&5
49541
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49542
 
  (exit $ac_status); } && {
49543
 
         test -z "$ac_c_werror_flag" ||
49544
 
         test ! -s conftest.err
49545
 
       } && test -s conftest$ac_exeext && {
49546
 
         test "$cross_compiling" = yes ||
49547
 
         $as_test_x conftest$ac_exeext
49548
 
       }; then
49549
 
  ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
49550
 
else
49551
 
  $as_echo "$as_me: failed program was:" >&5
49552
 
sed 's/^/| /' conftest.$ac_ext >&5
49553
 
 
49554
 
        ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
49555
 
fi
49556
 
 
49557
 
rm -rf conftest.dSYM
49558
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49559
 
      conftest$ac_exeext conftest.$ac_ext
49560
 
LIBS=$ac_check_lib_save_LIBS
49561
 
fi
49562
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
49563
 
$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
49564
 
if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = x""yes; then
49565
 
  
49566
 
    LDFLAGS=$save_old_LDFLAGS
49567
 
    ext_shared=$save_ext_shared
49568
 
    
49569
 
      found_openssl=yes
49570
 
    
49571
 
  
49572
 
else
49573
 
  
49574
 
    LDFLAGS=$save_old_LDFLAGS
49575
 
    ext_shared=$save_ext_shared
49576
 
    unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
49577
 
    
49578
 
      { { $as_echo "$as_me:$LINENO: error: libssl not found!" >&5
49579
 
$as_echo "$as_me: error: libssl not found!" >&2;}
49580
 
   { (exit 1); exit 1; }; }
49581
 
    
49582
 
  
49583
 
fi
49584
 
 
49585
 
    LIBS=$old_LIBS
49586
 
    
49587
 
  
49588
 
  case ssl in
49589
 
  c|c_r|pthread*) ;;
49590
 
  *) 
49591
 
    if test "$ext_shared" = "yes"; then
49592
 
        FTP_SHARED_LIBADD="-lssl $FTP_SHARED_LIBADD" 
49593
 
    else
49594
 
      
49595
 
  
49596
 
  case ssl in
49597
 
  c|c_r|pthread*) ;;
49598
 
  *) 
49599
 
      LIBS="-lssl $LIBS" 
49600
 
   ;;
49601
 
  esac
49602
 
 
49603
 
 
49604
 
    fi
49605
 
   ;;
49606
 
  esac
49607
 
 
49608
 
 
49609
 
    
49610
 
  
49611
 
  case crypto in
49612
 
  c|c_r|pthread*) ;;
49613
 
  *) 
49614
 
    if test "$ext_shared" = "yes"; then
49615
 
        FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD" 
49616
 
    else
49617
 
      
49618
 
  
49619
 
  case crypto in
49620
 
  c|c_r|pthread*) ;;
49621
 
  *) 
49622
 
      LIBS="-lcrypto $LIBS" 
49623
 
   ;;
49624
 
  esac
49625
 
 
49626
 
 
49627
 
    fi
49628
 
   ;;
49629
 
  esac
49630
 
 
49631
 
 
49632
 
 
49633
 
    
49634
 
  if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
49635
 
    
49636
 
  if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
49637
 
    ai_p=$OPENSSL_LIBDIR
49638
 
  else
49639
 
    
49640
 
    ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
49641
 
    
49642
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49643
 
    ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
49644
 
  fi
49645
 
 
49646
 
    
49647
 
      if test "$ext_shared" = "yes"; then
49648
 
        FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
49649
 
        test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
49650
 
      else
49651
 
        
49652
 
  
49653
 
  
49654
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49655
 
  
49656
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49657
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
49658
 
    eval "LIBPATH$unique=set"
49659
 
    
49660
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49661
 
    LDFLAGS="$LDFLAGS -L$ai_p"
49662
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
49663
 
  
49664
 
  fi
49665
 
 
49666
 
 
49667
 
      fi
49668
 
    
49669
 
  fi
49670
 
 
49671
 
  fi
49672
 
 
49673
 
  if test "$found_openssl" = "yes"; then
49674
 
    OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
49675
 
  
49676
 
 
49677
 
:
49678
 
 
49679
 
  fi
49680
 
 
49681
 
    
49682
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD"
49683
 
 
49684
 
  fi
49685
 
fi
49686
 
 
49687
 
 
49688
 
 
49689
 
 
49690
 
php_with_gd=no
49691
 
 
49692
 
{ $as_echo "$as_me:$LINENO: checking for GD support" >&5
49693
 
$as_echo_n "checking for GD support... " >&6; }
49694
 
 
49695
 
@%:@ Check whether --with-gd was given.
49696
 
if test "${with_gd+set}" = set; then
49697
 
  withval=$with_gd; PHP_GD=$withval
49698
 
else
49699
 
  
49700
 
  PHP_GD=no
49701
 
  test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL
49702
 
 
49703
 
fi
49704
 
 
49705
 
 
49706
 
 
49707
 
ext_output="yes, shared"
49708
 
ext_shared=yes
49709
 
case $PHP_GD in
49710
 
shared,*)
49711
 
  PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'`
49712
 
  ;;
49713
 
shared)
49714
 
  PHP_GD=yes
49715
 
  ;;
49716
 
no)
49717
 
  ext_output=no
49718
 
  ext_shared=no
49719
 
  ;;
49720
 
*)
49721
 
  ext_output=yes
49722
 
  ext_shared=no
49723
 
  ;;
49724
 
esac
49725
 
 
49726
 
 
49727
 
 
49728
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
49729
 
$as_echo "$ext_output" >&6; }
49730
 
 
49731
 
 
49732
 
 
49733
 
 
49734
 
if test -z "$PHP_JPEG_DIR"; then
49735
 
  
49736
 
php_with_jpeg_dir=no
49737
 
 
49738
 
{ $as_echo "$as_me:$LINENO: checking for the location of libjpeg" >&5
49739
 
$as_echo_n "checking for the location of libjpeg... " >&6; }
49740
 
 
49741
 
@%:@ Check whether --with-jpeg-dir was given.
49742
 
if test "${with_jpeg_dir+set}" = set; then
49743
 
  withval=$with_jpeg_dir; PHP_JPEG_DIR=$withval
49744
 
else
49745
 
  
49746
 
  PHP_JPEG_DIR=no
49747
 
  
49748
 
 
49749
 
fi
49750
 
 
49751
 
 
49752
 
ext_output=$PHP_JPEG_DIR
49753
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
49754
 
$as_echo "$ext_output" >&6; }
49755
 
 
49756
 
 
49757
 
 
49758
 
fi
49759
 
 
49760
 
if test -z "$PHP_PNG_DIR"; then
49761
 
  
49762
 
php_with_png_dir=no
49763
 
 
49764
 
{ $as_echo "$as_me:$LINENO: checking for the location of libpng" >&5
49765
 
$as_echo_n "checking for the location of libpng... " >&6; }
49766
 
 
49767
 
@%:@ Check whether --with-png-dir was given.
49768
 
if test "${with_png_dir+set}" = set; then
49769
 
  withval=$with_png_dir; PHP_PNG_DIR=$withval
49770
 
else
49771
 
  
49772
 
  PHP_PNG_DIR=no
49773
 
  
49774
 
 
49775
 
fi
49776
 
 
49777
 
 
49778
 
ext_output=$PHP_PNG_DIR
49779
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
49780
 
$as_echo "$ext_output" >&6; }
49781
 
 
49782
 
 
49783
 
 
49784
 
fi
49785
 
 
49786
 
if test -z "$PHP_ZLIB_DIR"; then
49787
 
  
49788
 
php_with_zlib_dir=no
49789
 
 
49790
 
{ $as_echo "$as_me:$LINENO: checking for the location of libz" >&5
49791
 
$as_echo_n "checking for the location of libz... " >&6; }
49792
 
 
49793
 
@%:@ Check whether --with-zlib-dir was given.
49794
 
if test "${with_zlib_dir+set}" = set; then
49795
 
  withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
49796
 
else
49797
 
  
49798
 
  PHP_ZLIB_DIR=no
49799
 
  
49800
 
 
49801
 
fi
49802
 
 
49803
 
 
49804
 
ext_output=$PHP_ZLIB_DIR
49805
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
49806
 
$as_echo "$ext_output" >&6; }
49807
 
 
49808
 
 
49809
 
 
49810
 
fi
49811
 
 
49812
 
 
49813
 
php_with_xpm_dir=no
49814
 
 
49815
 
{ $as_echo "$as_me:$LINENO: checking for the location of libXpm" >&5
49816
 
$as_echo_n "checking for the location of libXpm... " >&6; }
49817
 
 
49818
 
@%:@ Check whether --with-xpm-dir was given.
49819
 
if test "${with_xpm_dir+set}" = set; then
49820
 
  withval=$with_xpm_dir; PHP_XPM_DIR=$withval
49821
 
else
49822
 
  
49823
 
  PHP_XPM_DIR=no
49824
 
  
49825
 
 
49826
 
fi
49827
 
 
49828
 
 
49829
 
ext_output=$PHP_XPM_DIR
49830
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
49831
 
$as_echo "$ext_output" >&6; }
49832
 
 
49833
 
 
49834
 
 
49835
 
 
49836
 
 
49837
 
php_with_freetype_dir=no
49838
 
 
49839
 
{ $as_echo "$as_me:$LINENO: checking for FreeType 2" >&5
49840
 
$as_echo_n "checking for FreeType 2... " >&6; }
49841
 
 
49842
 
@%:@ Check whether --with-freetype-dir was given.
49843
 
if test "${with_freetype_dir+set}" = set; then
49844
 
  withval=$with_freetype_dir; PHP_FREETYPE_DIR=$withval
49845
 
else
49846
 
  
49847
 
  PHP_FREETYPE_DIR=no
49848
 
  
49849
 
 
49850
 
fi
49851
 
 
49852
 
 
49853
 
ext_output=$PHP_FREETYPE_DIR
49854
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
49855
 
$as_echo "$ext_output" >&6; }
49856
 
 
49857
 
 
49858
 
 
49859
 
 
49860
 
 
49861
 
php_with_t1lib=no
49862
 
 
49863
 
{ $as_echo "$as_me:$LINENO: checking for T1lib support" >&5
49864
 
$as_echo_n "checking for T1lib support... " >&6; }
49865
 
 
49866
 
@%:@ Check whether --with-t1lib was given.
49867
 
if test "${with_t1lib+set}" = set; then
49868
 
  withval=$with_t1lib; PHP_T1LIB=$withval
49869
 
else
49870
 
  
49871
 
  PHP_T1LIB=no
49872
 
  
49873
 
 
49874
 
fi
49875
 
 
49876
 
 
49877
 
ext_output=$PHP_T1LIB
49878
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
49879
 
$as_echo "$ext_output" >&6; }
49880
 
 
49881
 
 
49882
 
 
49883
 
 
49884
 
 
49885
 
php_enable_gd_native_ttf=no
49886
 
 
49887
 
{ $as_echo "$as_me:$LINENO: checking whether to enable truetype string function in GD" >&5
49888
 
$as_echo_n "checking whether to enable truetype string function in GD... " >&6; }
49889
 
@%:@ Check whether --enable-gd-native-ttf was given.
49890
 
if test "${enable_gd_native_ttf+set}" = set; then
49891
 
  enableval=$enable_gd_native_ttf; PHP_GD_NATIVE_TTF=$enableval
49892
 
else
49893
 
  
49894
 
  PHP_GD_NATIVE_TTF=no
49895
 
  
49896
 
 
49897
 
fi
49898
 
 
49899
 
 
49900
 
ext_output=$PHP_GD_NATIVE_TTF
49901
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
49902
 
$as_echo "$ext_output" >&6; }
49903
 
 
49904
 
 
49905
 
 
49906
 
 
49907
 
 
49908
 
php_enable_gd_jis_conv=no
49909
 
 
49910
 
{ $as_echo "$as_me:$LINENO: checking whether to enable JIS-mapped Japanese font support in GD" >&5
49911
 
$as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; }
49912
 
@%:@ Check whether --enable-gd-jis-conv was given.
49913
 
if test "${enable_gd_jis_conv+set}" = set; then
49914
 
  enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval
49915
 
else
49916
 
  
49917
 
  PHP_GD_JIS_CONV=no
49918
 
  
49919
 
 
49920
 
fi
49921
 
 
49922
 
 
49923
 
ext_output=$PHP_GD_JIS_CONV
49924
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
49925
 
$as_echo "$ext_output" >&6; }
49926
 
 
49927
 
 
49928
 
 
49929
 
 
49930
 
 
49931
 
 
49932
 
 
49933
 
 
49934
 
 
49935
 
 
49936
 
 
49937
 
 
49938
 
 
49939
 
 
49940
 
 
49941
 
 
49942
 
 
49943
 
 
49944
 
 
49945
 
 
49946
 
 
49947
 
 
49948
 
 
49949
 
 
49950
 
if test "$PHP_GD" = "yes"; then
49951
 
  GD_MODULE_TYPE=builtin
49952
 
  extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \
49953
 
                 libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/gd_png.c libgd/gd_jpeg.c \
49954
 
                 libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c libgd/gdfontmb.c libgd/gdfontl.c \
49955
 
                 libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c libgd/gdcache.c libgd/gdkanji.c \
49956
 
                 libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c libgd/gd_topal.c libgd/gd_gif_in.c \
49957
 
                 libgd/xbm.c libgd/gd_gif_out.c libgd/gd_security.c libgd/gd_filter.c \
49958
 
                 libgd/gd_pixelate.c libgd/gd_arc.c libgd/gd_rotate.c libgd/gd_color.c"
49959
 
 
49960
 
  
49961
 
 
49962
 
for ac_func in fabsf floorf
49963
 
do
49964
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49965
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49966
 
$as_echo_n "checking for $ac_func... " >&6; }
49967
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49968
 
  $as_echo_n "(cached) " >&6
49969
 
else
49970
 
  cat >conftest.$ac_ext <<_ACEOF
49971
 
/* confdefs.h.  */
49972
 
_ACEOF
49973
 
cat confdefs.h >>conftest.$ac_ext
49974
 
cat >>conftest.$ac_ext <<_ACEOF
49975
 
/* end confdefs.h.  */
49976
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49977
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49978
 
#define $ac_func innocuous_$ac_func
49979
 
 
49980
 
/* System header to define __stub macros and hopefully few prototypes,
49981
 
    which can conflict with char $ac_func (); below.
49982
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49983
 
    <limits.h> exists even on freestanding compilers.  */
49984
 
 
49985
 
#ifdef __STDC__
49986
 
# include <limits.h>
49987
 
#else
49988
 
# include <assert.h>
49989
 
#endif
49990
 
 
49991
 
#undef $ac_func
49992
 
 
49993
 
/* Override any GCC internal prototype to avoid an error.
49994
 
   Use char because int might match the return type of a GCC
49995
 
   builtin and then its argument prototype would still apply.  */
49996
 
#ifdef __cplusplus
49997
 
extern "C"
49998
 
#endif
49999
 
char $ac_func ();
50000
 
/* The GNU C library defines this for functions which it implements
50001
 
    to always fail with ENOSYS.  Some functions are actually named
50002
 
    something starting with __ and the normal name is an alias.  */
50003
 
#if defined __stub_$ac_func || defined __stub___$ac_func
50004
 
choke me
50005
 
#endif
50006
 
 
50007
 
int
50008
 
main ()
50009
 
{
50010
 
return $ac_func ();
50011
 
  ;
50012
 
  return 0;
50013
 
}
50014
 
_ACEOF
50015
 
rm -f conftest.$ac_objext conftest$ac_exeext
50016
 
if { (ac_try="$ac_link"
50017
 
case "(($ac_try" in
50018
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50019
 
  *) ac_try_echo=$ac_try;;
50020
 
esac
50021
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50022
 
$as_echo "$ac_try_echo") >&5
50023
 
  (eval "$ac_link") 2>conftest.er1
50024
 
  ac_status=$?
50025
 
  grep -v '^ *+' conftest.er1 >conftest.err
50026
 
  rm -f conftest.er1
50027
 
  cat conftest.err >&5
50028
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50029
 
  (exit $ac_status); } && {
50030
 
         test -z "$ac_c_werror_flag" ||
50031
 
         test ! -s conftest.err
50032
 
       } && test -s conftest$ac_exeext && {
50033
 
         test "$cross_compiling" = yes ||
50034
 
         $as_test_x conftest$ac_exeext
50035
 
       }; then
50036
 
  eval "$as_ac_var=yes"
50037
 
else
50038
 
  $as_echo "$as_me: failed program was:" >&5
50039
 
sed 's/^/| /' conftest.$ac_ext >&5
50040
 
 
50041
 
        eval "$as_ac_var=no"
50042
 
fi
50043
 
 
50044
 
rm -rf conftest.dSYM
50045
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50046
 
      conftest$ac_exeext conftest.$ac_ext
50047
 
fi
50048
 
ac_res=`eval 'as_val=${'$as_ac_var'}
50049
 
                 $as_echo "$as_val"'`
50050
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50051
 
$as_echo "$ac_res" >&6; }
50052
 
as_val=`eval 'as_val=${'$as_ac_var'}
50053
 
                 $as_echo "$as_val"'`
50054
 
   if test "x$as_val" = x""yes; then
50055
 
  cat >>confdefs.h <<_ACEOF
50056
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50057
 
_ACEOF
50058
 
 
50059
 
fi
50060
 
done
50061
 
 
50062
 
 
50063
 
  test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes
50064
 
 
50065
 
  
50066
 
        if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
50067
 
                if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
50068
 
                        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
50069
 
                        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
50070
 
                elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
50071
 
                        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
50072
 
                        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
50073
 
                else
50074
 
                        { { $as_echo "$as_me:$LINENO: error: Can't find zlib headers under \"$PHP_ZLIB_DIR\"" >&5
50075
 
$as_echo "$as_me: error: Can't find zlib headers under \"$PHP_ZLIB_DIR\"" >&2;}
50076
 
   { (exit 1); exit 1; }; }
50077
 
                fi
50078
 
        else
50079
 
                for i in /usr/local /usr; do
50080
 
                        if test -f "$i/include/zlib/zlib.h"; then
50081
 
                                PHP_ZLIB_DIR="$i"
50082
 
                                PHP_ZLIB_INCDIR="$i/include/zlib"
50083
 
                        elif test -f "$i/include/zlib.h"; then
50084
 
                                PHP_ZLIB_DIR="$i"
50085
 
                                PHP_ZLIB_INCDIR="$i/include"
50086
 
                        fi
50087
 
                done
50088
 
        fi
50089
 
 
50090
 
  
50091
 
  if test "$PHP_GD_NATIVE_TTF" = "yes"; then
50092
 
    
50093
 
cat >>confdefs.h <<\_ACEOF
50094
 
@%:@define USE_GD_IMGSTRTTF 1
50095
 
_ACEOF
50096
 
 
50097
 
  fi
50098
 
 
50099
 
  
50100
 
  if test "$PHP_GD_JIS_CONV" = "yes"; then
50101
 
    USE_GD_JIS_CONV=1
50102
 
  fi
50103
 
 
50104
 
  
50105
 
  if test "$PHP_JPEG_DIR" != "no"; then
50106
 
 
50107
 
    for i in $PHP_JPEG_DIR /usr/local /usr; do
50108
 
      test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
50109
 
    done
50110
 
 
50111
 
    if test -z "$GD_JPEG_DIR"; then
50112
 
      { { $as_echo "$as_me:$LINENO: error: jpeglib.h not found." >&5
50113
 
$as_echo "$as_me: error: jpeglib.h not found." >&2;}
50114
 
   { (exit 1); exit 1; }; }
50115
 
    fi
50116
 
 
50117
 
    
50118
 
  save_old_LDFLAGS=$LDFLAGS
50119
 
  ac_stuff="
50120
 
      -L$GD_JPEG_DIR/$PHP_LIBDIR
50121
 
    "
50122
 
  
50123
 
  save_ext_shared=$ext_shared
50124
 
  ext_shared=yes
50125
 
  
50126
 
  for ac_i in $ac_stuff; do
50127
 
    case $ac_i in
50128
 
    -pthread)
50129
 
      if test "$ext_shared" = "yes"; then
50130
 
        LDFLAGS="$LDFLAGS -pthread"
50131
 
      else
50132
 
        
50133
 
  
50134
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
50135
 
  
50136
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
50137
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50138
 
    eval "EXTRA_LDFLAGS$unique=set"
50139
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
50140
 
  fi
50141
 
 
50142
 
      fi
50143
 
    ;;
50144
 
    -l*)
50145
 
      ac_ii=`echo $ac_i|cut -c 3-`
50146
 
      
50147
 
  
50148
 
  case $ac_ii in
50149
 
  c|c_r|pthread*) ;;
50150
 
  *) 
50151
 
    if test "$ext_shared" = "yes"; then
50152
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
50153
 
    else
50154
 
      
50155
 
  
50156
 
  case $ac_ii in
50157
 
  c|c_r|pthread*) ;;
50158
 
  *) 
50159
 
      LIBS="$LIBS -l$ac_ii" 
50160
 
   ;;
50161
 
  esac
50162
 
 
50163
 
 
50164
 
    fi
50165
 
   ;;
50166
 
  esac
50167
 
 
50168
 
 
50169
 
    ;;
50170
 
    -L*)
50171
 
      ac_ii=`echo $ac_i|cut -c 3-`
50172
 
      
50173
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
50174
 
    
50175
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
50176
 
    ai_p=$ac_ii
50177
 
  else
50178
 
    
50179
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
50180
 
    
50181
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50182
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
50183
 
  fi
50184
 
 
50185
 
    
50186
 
      if test "$ext_shared" = "yes"; then
50187
 
        LDFLAGS="-L$ai_p $LDFLAGS"
50188
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
50189
 
      else
50190
 
        
50191
 
  
50192
 
  
50193
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50194
 
  
50195
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50196
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50197
 
    eval "LIBPATH$unique=set"
50198
 
    
50199
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50200
 
    LDFLAGS="$LDFLAGS -L$ai_p"
50201
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
50202
 
  
50203
 
  fi
50204
 
 
50205
 
 
50206
 
      fi
50207
 
    
50208
 
  fi
50209
 
 
50210
 
    ;;
50211
 
    esac
50212
 
  done
50213
 
 
50214
 
  { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
50215
 
$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
50216
 
if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
50217
 
  $as_echo_n "(cached) " >&6
50218
 
else
50219
 
  ac_check_lib_save_LIBS=$LIBS
50220
 
LIBS="-ljpeg  $LIBS"
50221
 
cat >conftest.$ac_ext <<_ACEOF
50222
 
/* confdefs.h.  */
50223
 
_ACEOF
50224
 
cat confdefs.h >>conftest.$ac_ext
50225
 
cat >>conftest.$ac_ext <<_ACEOF
50226
 
/* end confdefs.h.  */
50227
 
 
50228
 
/* Override any GCC internal prototype to avoid an error.
50229
 
   Use char because int might match the return type of a GCC
50230
 
   builtin and then its argument prototype would still apply.  */
50231
 
#ifdef __cplusplus
50232
 
extern "C"
50233
 
#endif
50234
 
char jpeg_read_header ();
50235
 
int
50236
 
main ()
50237
 
{
50238
 
return jpeg_read_header ();
50239
 
  ;
50240
 
  return 0;
50241
 
}
50242
 
_ACEOF
50243
 
rm -f conftest.$ac_objext conftest$ac_exeext
50244
 
if { (ac_try="$ac_link"
50245
 
case "(($ac_try" in
50246
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50247
 
  *) ac_try_echo=$ac_try;;
50248
 
esac
50249
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50250
 
$as_echo "$ac_try_echo") >&5
50251
 
  (eval "$ac_link") 2>conftest.er1
50252
 
  ac_status=$?
50253
 
  grep -v '^ *+' conftest.er1 >conftest.err
50254
 
  rm -f conftest.er1
50255
 
  cat conftest.err >&5
50256
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50257
 
  (exit $ac_status); } && {
50258
 
         test -z "$ac_c_werror_flag" ||
50259
 
         test ! -s conftest.err
50260
 
       } && test -s conftest$ac_exeext && {
50261
 
         test "$cross_compiling" = yes ||
50262
 
         $as_test_x conftest$ac_exeext
50263
 
       }; then
50264
 
  ac_cv_lib_jpeg_jpeg_read_header=yes
50265
 
else
50266
 
  $as_echo "$as_me: failed program was:" >&5
50267
 
sed 's/^/| /' conftest.$ac_ext >&5
50268
 
 
50269
 
        ac_cv_lib_jpeg_jpeg_read_header=no
50270
 
fi
50271
 
 
50272
 
rm -rf conftest.dSYM
50273
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50274
 
      conftest$ac_exeext conftest.$ac_ext
50275
 
LIBS=$ac_check_lib_save_LIBS
50276
 
fi
50277
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
50278
 
$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
50279
 
if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
50280
 
  
50281
 
    LDFLAGS=$save_old_LDFLAGS
50282
 
    ext_shared=$save_ext_shared
50283
 
    
50284
 
      
50285
 
  if test "$GD_JPEG_DIR/include" != "/usr/include"; then
50286
 
    
50287
 
  if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
50288
 
    ai_p=$GD_JPEG_DIR/include
50289
 
  else
50290
 
    
50291
 
    ep_dir="`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
50292
 
    
50293
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50294
 
    ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/include\"`"
50295
 
  fi
50296
 
 
50297
 
    
50298
 
  
50299
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50300
 
  
50301
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
50302
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50303
 
    eval "INCLUDEPATH$unique=set"
50304
 
    
50305
 
      if test ""; then
50306
 
        INCLUDES="-I$ai_p $INCLUDES"
50307
 
      else
50308
 
        INCLUDES="$INCLUDES -I$ai_p"
50309
 
      fi
50310
 
    
50311
 
  fi
50312
 
 
50313
 
  fi
50314
 
 
50315
 
      
50316
 
 
50317
 
  if test "$ext_shared" = "yes"; then
50318
 
    GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
50319
 
    if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
50320
 
      
50321
 
  if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50322
 
    
50323
 
  if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50324
 
    ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
50325
 
  else
50326
 
    
50327
 
    ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50328
 
    
50329
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50330
 
    ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
50331
 
  fi
50332
 
 
50333
 
    
50334
 
      if test "$ext_shared" = "yes"; then
50335
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
50336
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
50337
 
      else
50338
 
        
50339
 
  
50340
 
  
50341
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50342
 
  
50343
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50344
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50345
 
    eval "LIBPATH$unique=set"
50346
 
    
50347
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50348
 
    LDFLAGS="$LDFLAGS -L$ai_p"
50349
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
50350
 
  
50351
 
  fi
50352
 
 
50353
 
 
50354
 
      fi
50355
 
    
50356
 
  fi
50357
 
 
50358
 
    fi
50359
 
  else
50360
 
    
50361
 
 
50362
 
  if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
50363
 
    
50364
 
  if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50365
 
    
50366
 
  if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50367
 
    ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
50368
 
  else
50369
 
    
50370
 
    ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50371
 
    
50372
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50373
 
    ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
50374
 
  fi
50375
 
 
50376
 
    
50377
 
      
50378
 
  
50379
 
  
50380
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50381
 
  
50382
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50383
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50384
 
    eval "LIBPATH$unique=set"
50385
 
    
50386
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50387
 
    LDFLAGS="$LDFLAGS -L$ai_p"
50388
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
50389
 
  
50390
 
  fi
50391
 
 
50392
 
 
50393
 
    
50394
 
  fi
50395
 
 
50396
 
  fi
50397
 
  
50398
 
  
50399
 
  case jpeg in
50400
 
  c|c_r|pthread*) ;;
50401
 
  *) 
50402
 
      LIBS="-ljpeg $LIBS" 
50403
 
   ;;
50404
 
  esac
50405
 
 
50406
 
 
50407
 
 
50408
 
 
50409
 
  fi
50410
 
 
50411
 
 
50412
 
    
50413
 
  
50414
 
else
50415
 
  
50416
 
    LDFLAGS=$save_old_LDFLAGS
50417
 
    ext_shared=$save_ext_shared
50418
 
    unset ac_cv_lib_jpeg_jpeg_read_header
50419
 
    
50420
 
      { { $as_echo "$as_me:$LINENO: error: Problem with libjpeg.(a|so). Please check config.log for more information." >&5
50421
 
$as_echo "$as_me: error: Problem with libjpeg.(a|so). Please check config.log for more information." >&2;}
50422
 
   { (exit 1); exit 1; }; }
50423
 
    
50424
 
  
50425
 
fi
50426
 
 
50427
 
  else
50428
 
    { $as_echo "$as_me:$LINENO: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
50429
 
$as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
50430
 
  fi
50431
 
 
50432
 
  
50433
 
  if test "$PHP_PNG_DIR" != "no"; then
50434
 
 
50435
 
    for i in $PHP_PNG_DIR /usr/local /usr; do
50436
 
      test -f $i/include/png.h && GD_PNG_DIR=$i && break
50437
 
    done
50438
 
 
50439
 
    if test -z "$GD_PNG_DIR"; then
50440
 
      { { $as_echo "$as_me:$LINENO: error: png.h not found." >&5
50441
 
$as_echo "$as_me: error: png.h not found." >&2;}
50442
 
   { (exit 1); exit 1; }; }
50443
 
    fi
50444
 
 
50445
 
    if test "$PHP_ZLIB_DIR" = "no"; then
50446
 
      { { $as_echo "$as_me:$LINENO: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" >&5
50447
 
$as_echo "$as_me: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" >&2;}
50448
 
   { (exit 1); exit 1; }; }
50449
 
    fi
50450
 
 
50451
 
    
50452
 
  save_old_LDFLAGS=$LDFLAGS
50453
 
  ac_stuff="
50454
 
      -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
50455
 
    "
50456
 
  
50457
 
  save_ext_shared=$ext_shared
50458
 
  ext_shared=yes
50459
 
  
50460
 
  for ac_i in $ac_stuff; do
50461
 
    case $ac_i in
50462
 
    -pthread)
50463
 
      if test "$ext_shared" = "yes"; then
50464
 
        LDFLAGS="$LDFLAGS -pthread"
50465
 
      else
50466
 
        
50467
 
  
50468
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
50469
 
  
50470
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
50471
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50472
 
    eval "EXTRA_LDFLAGS$unique=set"
50473
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
50474
 
  fi
50475
 
 
50476
 
      fi
50477
 
    ;;
50478
 
    -l*)
50479
 
      ac_ii=`echo $ac_i|cut -c 3-`
50480
 
      
50481
 
  
50482
 
  case $ac_ii in
50483
 
  c|c_r|pthread*) ;;
50484
 
  *) 
50485
 
    if test "$ext_shared" = "yes"; then
50486
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
50487
 
    else
50488
 
      
50489
 
  
50490
 
  case $ac_ii in
50491
 
  c|c_r|pthread*) ;;
50492
 
  *) 
50493
 
      LIBS="$LIBS -l$ac_ii" 
50494
 
   ;;
50495
 
  esac
50496
 
 
50497
 
 
50498
 
    fi
50499
 
   ;;
50500
 
  esac
50501
 
 
50502
 
 
50503
 
    ;;
50504
 
    -L*)
50505
 
      ac_ii=`echo $ac_i|cut -c 3-`
50506
 
      
50507
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
50508
 
    
50509
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
50510
 
    ai_p=$ac_ii
50511
 
  else
50512
 
    
50513
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
50514
 
    
50515
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50516
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
50517
 
  fi
50518
 
 
50519
 
    
50520
 
      if test "$ext_shared" = "yes"; then
50521
 
        LDFLAGS="-L$ai_p $LDFLAGS"
50522
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
50523
 
      else
50524
 
        
50525
 
  
50526
 
  
50527
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50528
 
  
50529
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50530
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50531
 
    eval "LIBPATH$unique=set"
50532
 
    
50533
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50534
 
    LDFLAGS="$LDFLAGS -L$ai_p"
50535
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
50536
 
  
50537
 
  fi
50538
 
 
50539
 
 
50540
 
      fi
50541
 
    
50542
 
  fi
50543
 
 
50544
 
    ;;
50545
 
    esac
50546
 
  done
50547
 
 
50548
 
  { $as_echo "$as_me:$LINENO: checking for png_write_image in -lpng" >&5
50549
 
$as_echo_n "checking for png_write_image in -lpng... " >&6; }
50550
 
if test "${ac_cv_lib_png_png_write_image+set}" = set; then
50551
 
  $as_echo_n "(cached) " >&6
50552
 
else
50553
 
  ac_check_lib_save_LIBS=$LIBS
50554
 
LIBS="-lpng  $LIBS"
50555
 
cat >conftest.$ac_ext <<_ACEOF
50556
 
/* confdefs.h.  */
50557
 
_ACEOF
50558
 
cat confdefs.h >>conftest.$ac_ext
50559
 
cat >>conftest.$ac_ext <<_ACEOF
50560
 
/* end confdefs.h.  */
50561
 
 
50562
 
/* Override any GCC internal prototype to avoid an error.
50563
 
   Use char because int might match the return type of a GCC
50564
 
   builtin and then its argument prototype would still apply.  */
50565
 
#ifdef __cplusplus
50566
 
extern "C"
50567
 
#endif
50568
 
char png_write_image ();
50569
 
int
50570
 
main ()
50571
 
{
50572
 
return png_write_image ();
50573
 
  ;
50574
 
  return 0;
50575
 
}
50576
 
_ACEOF
50577
 
rm -f conftest.$ac_objext conftest$ac_exeext
50578
 
if { (ac_try="$ac_link"
50579
 
case "(($ac_try" in
50580
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50581
 
  *) ac_try_echo=$ac_try;;
50582
 
esac
50583
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50584
 
$as_echo "$ac_try_echo") >&5
50585
 
  (eval "$ac_link") 2>conftest.er1
50586
 
  ac_status=$?
50587
 
  grep -v '^ *+' conftest.er1 >conftest.err
50588
 
  rm -f conftest.er1
50589
 
  cat conftest.err >&5
50590
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50591
 
  (exit $ac_status); } && {
50592
 
         test -z "$ac_c_werror_flag" ||
50593
 
         test ! -s conftest.err
50594
 
       } && test -s conftest$ac_exeext && {
50595
 
         test "$cross_compiling" = yes ||
50596
 
         $as_test_x conftest$ac_exeext
50597
 
       }; then
50598
 
  ac_cv_lib_png_png_write_image=yes
50599
 
else
50600
 
  $as_echo "$as_me: failed program was:" >&5
50601
 
sed 's/^/| /' conftest.$ac_ext >&5
50602
 
 
50603
 
        ac_cv_lib_png_png_write_image=no
50604
 
fi
50605
 
 
50606
 
rm -rf conftest.dSYM
50607
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50608
 
      conftest$ac_exeext conftest.$ac_ext
50609
 
LIBS=$ac_check_lib_save_LIBS
50610
 
fi
50611
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_write_image" >&5
50612
 
$as_echo "$ac_cv_lib_png_png_write_image" >&6; }
50613
 
if test "x$ac_cv_lib_png_png_write_image" = x""yes; then
50614
 
  
50615
 
    LDFLAGS=$save_old_LDFLAGS
50616
 
    ext_shared=$save_ext_shared
50617
 
    
50618
 
      
50619
 
  if test "$GD_PNG_DIR/include" != "/usr/include"; then
50620
 
    
50621
 
  if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
50622
 
    ai_p=$GD_PNG_DIR/include
50623
 
  else
50624
 
    
50625
 
    ep_dir="`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
50626
 
    
50627
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50628
 
    ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/include\"`"
50629
 
  fi
50630
 
 
50631
 
    
50632
 
  
50633
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50634
 
  
50635
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
50636
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50637
 
    eval "INCLUDEPATH$unique=set"
50638
 
    
50639
 
      if test ""; then
50640
 
        INCLUDES="-I$ai_p $INCLUDES"
50641
 
      else
50642
 
        INCLUDES="$INCLUDES -I$ai_p"
50643
 
      fi
50644
 
    
50645
 
  fi
50646
 
 
50647
 
  fi
50648
 
 
50649
 
      
50650
 
 
50651
 
  if test "$ext_shared" = "yes"; then
50652
 
    GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
50653
 
    if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
50654
 
      
50655
 
  if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50656
 
    
50657
 
  if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50658
 
    ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
50659
 
  else
50660
 
    
50661
 
    ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50662
 
    
50663
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50664
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
50665
 
  fi
50666
 
 
50667
 
    
50668
 
      if test "$ext_shared" = "yes"; then
50669
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
50670
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
50671
 
      else
50672
 
        
50673
 
  
50674
 
  
50675
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50676
 
  
50677
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50678
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50679
 
    eval "LIBPATH$unique=set"
50680
 
    
50681
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50682
 
    LDFLAGS="$LDFLAGS -L$ai_p"
50683
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
50684
 
  
50685
 
  fi
50686
 
 
50687
 
 
50688
 
      fi
50689
 
    
50690
 
  fi
50691
 
 
50692
 
    fi
50693
 
  else
50694
 
    
50695
 
 
50696
 
  if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
50697
 
    
50698
 
  if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50699
 
    
50700
 
  if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50701
 
    ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
50702
 
  else
50703
 
    
50704
 
    ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50705
 
    
50706
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50707
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
50708
 
  fi
50709
 
 
50710
 
    
50711
 
      
50712
 
  
50713
 
  
50714
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50715
 
  
50716
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50717
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50718
 
    eval "LIBPATH$unique=set"
50719
 
    
50720
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50721
 
    LDFLAGS="$LDFLAGS -L$ai_p"
50722
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
50723
 
  
50724
 
  fi
50725
 
 
50726
 
 
50727
 
    
50728
 
  fi
50729
 
 
50730
 
  fi
50731
 
  
50732
 
  
50733
 
  case z in
50734
 
  c|c_r|pthread*) ;;
50735
 
  *) 
50736
 
      LIBS="-lz $LIBS" 
50737
 
   ;;
50738
 
  esac
50739
 
 
50740
 
 
50741
 
 
50742
 
 
50743
 
  fi
50744
 
 
50745
 
 
50746
 
      
50747
 
 
50748
 
  if test "$ext_shared" = "yes"; then
50749
 
    GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
50750
 
    if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
50751
 
      
50752
 
  if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50753
 
    
50754
 
  if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50755
 
    ai_p=$GD_PNG_DIR/$PHP_LIBDIR
50756
 
  else
50757
 
    
50758
 
    ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50759
 
    
50760
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50761
 
    ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
50762
 
  fi
50763
 
 
50764
 
    
50765
 
      if test "$ext_shared" = "yes"; then
50766
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
50767
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
50768
 
      else
50769
 
        
50770
 
  
50771
 
  
50772
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50773
 
  
50774
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50775
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50776
 
    eval "LIBPATH$unique=set"
50777
 
    
50778
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50779
 
    LDFLAGS="$LDFLAGS -L$ai_p"
50780
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
50781
 
  
50782
 
  fi
50783
 
 
50784
 
 
50785
 
      fi
50786
 
    
50787
 
  fi
50788
 
 
50789
 
    fi
50790
 
  else
50791
 
    
50792
 
 
50793
 
  if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
50794
 
    
50795
 
  if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50796
 
    
50797
 
  if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50798
 
    ai_p=$GD_PNG_DIR/$PHP_LIBDIR
50799
 
  else
50800
 
    
50801
 
    ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50802
 
    
50803
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50804
 
    ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
50805
 
  fi
50806
 
 
50807
 
    
50808
 
      
50809
 
  
50810
 
  
50811
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50812
 
  
50813
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50814
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50815
 
    eval "LIBPATH$unique=set"
50816
 
    
50817
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50818
 
    LDFLAGS="$LDFLAGS -L$ai_p"
50819
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
50820
 
  
50821
 
  fi
50822
 
 
50823
 
 
50824
 
    
50825
 
  fi
50826
 
 
50827
 
  fi
50828
 
  
50829
 
  
50830
 
  case png in
50831
 
  c|c_r|pthread*) ;;
50832
 
  *) 
50833
 
      LIBS="-lpng $LIBS" 
50834
 
   ;;
50835
 
  esac
50836
 
 
50837
 
 
50838
 
 
50839
 
 
50840
 
  fi
50841
 
 
50842
 
 
50843
 
    
50844
 
  
50845
 
else
50846
 
  
50847
 
    LDFLAGS=$save_old_LDFLAGS
50848
 
    ext_shared=$save_ext_shared
50849
 
    unset ac_cv_lib_png_png_write_image
50850
 
    
50851
 
      { { $as_echo "$as_me:$LINENO: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." >&5
50852
 
$as_echo "$as_me: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." >&2;}
50853
 
   { (exit 1); exit 1; }; }
50854
 
    
50855
 
  
50856
 
fi
50857
 
 
50858
 
 
50859
 
  else
50860
 
    { $as_echo "$as_me:$LINENO: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
50861
 
$as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
50862
 
  fi
50863
 
 
50864
 
  
50865
 
  if test "$PHP_XPM_DIR" != "no"; then
50866
 
 
50867
 
    for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
50868
 
      test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
50869
 
    done
50870
 
 
50871
 
    if test -z "$GD_XPM_DIR"; then
50872
 
      { { $as_echo "$as_me:$LINENO: error: libXpm.(a|so) not found." >&5
50873
 
$as_echo "$as_me: error: libXpm.(a|so) not found." >&2;}
50874
 
   { (exit 1); exit 1; }; }
50875
 
    fi
50876
 
 
50877
 
    for i in include include/X11; do
50878
 
      test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
50879
 
    done
50880
 
 
50881
 
    if test -z "$GD_XPM_INC"; then
50882
 
      { { $as_echo "$as_me:$LINENO: error: xpm.h not found." >&5
50883
 
$as_echo "$as_me: error: xpm.h not found." >&2;}
50884
 
   { (exit 1); exit 1; }; }
50885
 
    fi
50886
 
 
50887
 
    
50888
 
  save_old_LDFLAGS=$LDFLAGS
50889
 
  ac_stuff="
50890
 
      -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
50891
 
    "
50892
 
  
50893
 
  save_ext_shared=$ext_shared
50894
 
  ext_shared=yes
50895
 
  
50896
 
  for ac_i in $ac_stuff; do
50897
 
    case $ac_i in
50898
 
    -pthread)
50899
 
      if test "$ext_shared" = "yes"; then
50900
 
        LDFLAGS="$LDFLAGS -pthread"
50901
 
      else
50902
 
        
50903
 
  
50904
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
50905
 
  
50906
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
50907
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50908
 
    eval "EXTRA_LDFLAGS$unique=set"
50909
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
50910
 
  fi
50911
 
 
50912
 
      fi
50913
 
    ;;
50914
 
    -l*)
50915
 
      ac_ii=`echo $ac_i|cut -c 3-`
50916
 
      
50917
 
  
50918
 
  case $ac_ii in
50919
 
  c|c_r|pthread*) ;;
50920
 
  *) 
50921
 
    if test "$ext_shared" = "yes"; then
50922
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
50923
 
    else
50924
 
      
50925
 
  
50926
 
  case $ac_ii in
50927
 
  c|c_r|pthread*) ;;
50928
 
  *) 
50929
 
      LIBS="$LIBS -l$ac_ii" 
50930
 
   ;;
50931
 
  esac
50932
 
 
50933
 
 
50934
 
    fi
50935
 
   ;;
50936
 
  esac
50937
 
 
50938
 
 
50939
 
    ;;
50940
 
    -L*)
50941
 
      ac_ii=`echo $ac_i|cut -c 3-`
50942
 
      
50943
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
50944
 
    
50945
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
50946
 
    ai_p=$ac_ii
50947
 
  else
50948
 
    
50949
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
50950
 
    
50951
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50952
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
50953
 
  fi
50954
 
 
50955
 
    
50956
 
      if test "$ext_shared" = "yes"; then
50957
 
        LDFLAGS="-L$ai_p $LDFLAGS"
50958
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
50959
 
      else
50960
 
        
50961
 
  
50962
 
  
50963
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50964
 
  
50965
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50966
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
50967
 
    eval "LIBPATH$unique=set"
50968
 
    
50969
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50970
 
    LDFLAGS="$LDFLAGS -L$ai_p"
50971
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
50972
 
  
50973
 
  fi
50974
 
 
50975
 
 
50976
 
      fi
50977
 
    
50978
 
  fi
50979
 
 
50980
 
    ;;
50981
 
    esac
50982
 
  done
50983
 
 
50984
 
  { $as_echo "$as_me:$LINENO: checking for XpmFreeXpmImage in -lXpm" >&5
50985
 
$as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
50986
 
if test "${ac_cv_lib_Xpm_XpmFreeXpmImage+set}" = set; then
50987
 
  $as_echo_n "(cached) " >&6
50988
 
else
50989
 
  ac_check_lib_save_LIBS=$LIBS
50990
 
LIBS="-lXpm  $LIBS"
50991
 
cat >conftest.$ac_ext <<_ACEOF
50992
 
/* confdefs.h.  */
50993
 
_ACEOF
50994
 
cat confdefs.h >>conftest.$ac_ext
50995
 
cat >>conftest.$ac_ext <<_ACEOF
50996
 
/* end confdefs.h.  */
50997
 
 
50998
 
/* Override any GCC internal prototype to avoid an error.
50999
 
   Use char because int might match the return type of a GCC
51000
 
   builtin and then its argument prototype would still apply.  */
51001
 
#ifdef __cplusplus
51002
 
extern "C"
51003
 
#endif
51004
 
char XpmFreeXpmImage ();
51005
 
int
51006
 
main ()
51007
 
{
51008
 
return XpmFreeXpmImage ();
51009
 
  ;
51010
 
  return 0;
51011
 
}
51012
 
_ACEOF
51013
 
rm -f conftest.$ac_objext conftest$ac_exeext
51014
 
if { (ac_try="$ac_link"
51015
 
case "(($ac_try" in
51016
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51017
 
  *) ac_try_echo=$ac_try;;
51018
 
esac
51019
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51020
 
$as_echo "$ac_try_echo") >&5
51021
 
  (eval "$ac_link") 2>conftest.er1
51022
 
  ac_status=$?
51023
 
  grep -v '^ *+' conftest.er1 >conftest.err
51024
 
  rm -f conftest.er1
51025
 
  cat conftest.err >&5
51026
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51027
 
  (exit $ac_status); } && {
51028
 
         test -z "$ac_c_werror_flag" ||
51029
 
         test ! -s conftest.err
51030
 
       } && test -s conftest$ac_exeext && {
51031
 
         test "$cross_compiling" = yes ||
51032
 
         $as_test_x conftest$ac_exeext
51033
 
       }; then
51034
 
  ac_cv_lib_Xpm_XpmFreeXpmImage=yes
51035
 
else
51036
 
  $as_echo "$as_me: failed program was:" >&5
51037
 
sed 's/^/| /' conftest.$ac_ext >&5
51038
 
 
51039
 
        ac_cv_lib_Xpm_XpmFreeXpmImage=no
51040
 
fi
51041
 
 
51042
 
rm -rf conftest.dSYM
51043
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51044
 
      conftest$ac_exeext conftest.$ac_ext
51045
 
LIBS=$ac_check_lib_save_LIBS
51046
 
fi
51047
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
51048
 
$as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
51049
 
if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = x""yes; then
51050
 
  
51051
 
    LDFLAGS=$save_old_LDFLAGS
51052
 
    ext_shared=$save_ext_shared
51053
 
    
51054
 
      
51055
 
  if test "$GD_XPM_INC" != "/usr/include"; then
51056
 
    
51057
 
  if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
51058
 
    ai_p=$GD_XPM_INC
51059
 
  else
51060
 
    
51061
 
    ep_dir="`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`"
51062
 
    
51063
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51064
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_INC\"`"
51065
 
  fi
51066
 
 
51067
 
    
51068
 
  
51069
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51070
 
  
51071
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51072
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51073
 
    eval "INCLUDEPATH$unique=set"
51074
 
    
51075
 
      if test ""; then
51076
 
        INCLUDES="-I$ai_p $INCLUDES"
51077
 
      else
51078
 
        INCLUDES="$INCLUDES -I$ai_p"
51079
 
      fi
51080
 
    
51081
 
  fi
51082
 
 
51083
 
  fi
51084
 
 
51085
 
      
51086
 
 
51087
 
  if test "$ext_shared" = "yes"; then
51088
 
    GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
51089
 
    if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
51090
 
      
51091
 
  if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51092
 
    
51093
 
  if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51094
 
    ai_p=$GD_XPM_DIR/$PHP_LIBDIR
51095
 
  else
51096
 
    
51097
 
    ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51098
 
    
51099
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51100
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
51101
 
  fi
51102
 
 
51103
 
    
51104
 
      if test "$ext_shared" = "yes"; then
51105
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
51106
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
51107
 
      else
51108
 
        
51109
 
  
51110
 
  
51111
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51112
 
  
51113
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51114
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51115
 
    eval "LIBPATH$unique=set"
51116
 
    
51117
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51118
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51119
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51120
 
  
51121
 
  fi
51122
 
 
51123
 
 
51124
 
      fi
51125
 
    
51126
 
  fi
51127
 
 
51128
 
    fi
51129
 
  else
51130
 
    
51131
 
 
51132
 
  if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
51133
 
    
51134
 
  if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51135
 
    
51136
 
  if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51137
 
    ai_p=$GD_XPM_DIR/$PHP_LIBDIR
51138
 
  else
51139
 
    
51140
 
    ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51141
 
    
51142
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51143
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
51144
 
  fi
51145
 
 
51146
 
    
51147
 
      
51148
 
  
51149
 
  
51150
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51151
 
  
51152
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51153
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51154
 
    eval "LIBPATH$unique=set"
51155
 
    
51156
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51157
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51158
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51159
 
  
51160
 
  fi
51161
 
 
51162
 
 
51163
 
    
51164
 
  fi
51165
 
 
51166
 
  fi
51167
 
  
51168
 
  
51169
 
  case Xpm in
51170
 
  c|c_r|pthread*) ;;
51171
 
  *) 
51172
 
      LIBS="-lXpm $LIBS" 
51173
 
   ;;
51174
 
  esac
51175
 
 
51176
 
 
51177
 
 
51178
 
 
51179
 
  fi
51180
 
 
51181
 
 
51182
 
      
51183
 
 
51184
 
  if test "$ext_shared" = "yes"; then
51185
 
    GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
51186
 
    if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
51187
 
      
51188
 
  if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51189
 
    
51190
 
  if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51191
 
    ai_p=$GD_XPM_DIR/$PHP_LIBDIR
51192
 
  else
51193
 
    
51194
 
    ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51195
 
    
51196
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51197
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
51198
 
  fi
51199
 
 
51200
 
    
51201
 
      if test "$ext_shared" = "yes"; then
51202
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
51203
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
51204
 
      else
51205
 
        
51206
 
  
51207
 
  
51208
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51209
 
  
51210
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51211
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51212
 
    eval "LIBPATH$unique=set"
51213
 
    
51214
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51215
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51216
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51217
 
  
51218
 
  fi
51219
 
 
51220
 
 
51221
 
      fi
51222
 
    
51223
 
  fi
51224
 
 
51225
 
    fi
51226
 
  else
51227
 
    
51228
 
 
51229
 
  if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
51230
 
    
51231
 
  if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51232
 
    
51233
 
  if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51234
 
    ai_p=$GD_XPM_DIR/$PHP_LIBDIR
51235
 
  else
51236
 
    
51237
 
    ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51238
 
    
51239
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51240
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
51241
 
  fi
51242
 
 
51243
 
    
51244
 
      
51245
 
  
51246
 
  
51247
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51248
 
  
51249
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51250
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51251
 
    eval "LIBPATH$unique=set"
51252
 
    
51253
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51254
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51255
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51256
 
  
51257
 
  fi
51258
 
 
51259
 
 
51260
 
    
51261
 
  fi
51262
 
 
51263
 
  fi
51264
 
  
51265
 
  
51266
 
  case X11 in
51267
 
  c|c_r|pthread*) ;;
51268
 
  *) 
51269
 
      LIBS="-lX11 $LIBS" 
51270
 
   ;;
51271
 
  esac
51272
 
 
51273
 
 
51274
 
 
51275
 
 
51276
 
  fi
51277
 
 
51278
 
 
51279
 
    
51280
 
  
51281
 
else
51282
 
  
51283
 
    LDFLAGS=$save_old_LDFLAGS
51284
 
    ext_shared=$save_ext_shared
51285
 
    unset ac_cv_lib_Xpm_XpmFreeXpmImage
51286
 
    
51287
 
      { { $as_echo "$as_me:$LINENO: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." >&5
51288
 
$as_echo "$as_me: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." >&2;}
51289
 
   { (exit 1); exit 1; }; }
51290
 
    
51291
 
  
51292
 
fi
51293
 
 
51294
 
  else
51295
 
    { $as_echo "$as_me:$LINENO: result: If configure fails try --with-xpm-dir=<DIR>" >&5
51296
 
$as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
51297
 
  fi
51298
 
 
51299
 
  
51300
 
  if test "$PHP_FREETYPE_DIR" != "no"; then
51301
 
 
51302
 
    for i in $PHP_FREETYPE_DIR /usr/local /usr; do
51303
 
      if test -f "$i/include/freetype2/freetype/freetype.h"; then
51304
 
        FREETYPE2_DIR=$i
51305
 
        FREETYPE2_INC_DIR=$i/include/freetype2
51306
 
        break
51307
 
      fi
51308
 
    done
51309
 
 
51310
 
    if test -z "$FREETYPE2_DIR"; then
51311
 
      { { $as_echo "$as_me:$LINENO: error: freetype.h not found." >&5
51312
 
$as_echo "$as_me: error: freetype.h not found." >&2;}
51313
 
   { (exit 1); exit 1; }; }
51314
 
    fi
51315
 
 
51316
 
    
51317
 
  save_old_LDFLAGS=$LDFLAGS
51318
 
  ac_stuff="
51319
 
      -L$FREETYPE2_DIR/$PHP_LIBDIR
51320
 
    "
51321
 
  
51322
 
  save_ext_shared=$ext_shared
51323
 
  ext_shared=yes
51324
 
  
51325
 
  for ac_i in $ac_stuff; do
51326
 
    case $ac_i in
51327
 
    -pthread)
51328
 
      if test "$ext_shared" = "yes"; then
51329
 
        LDFLAGS="$LDFLAGS -pthread"
51330
 
      else
51331
 
        
51332
 
  
51333
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
51334
 
  
51335
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
51336
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51337
 
    eval "EXTRA_LDFLAGS$unique=set"
51338
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
51339
 
  fi
51340
 
 
51341
 
      fi
51342
 
    ;;
51343
 
    -l*)
51344
 
      ac_ii=`echo $ac_i|cut -c 3-`
51345
 
      
51346
 
  
51347
 
  case $ac_ii in
51348
 
  c|c_r|pthread*) ;;
51349
 
  *) 
51350
 
    if test "$ext_shared" = "yes"; then
51351
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
51352
 
    else
51353
 
      
51354
 
  
51355
 
  case $ac_ii in
51356
 
  c|c_r|pthread*) ;;
51357
 
  *) 
51358
 
      LIBS="$LIBS -l$ac_ii" 
51359
 
   ;;
51360
 
  esac
51361
 
 
51362
 
 
51363
 
    fi
51364
 
   ;;
51365
 
  esac
51366
 
 
51367
 
 
51368
 
    ;;
51369
 
    -L*)
51370
 
      ac_ii=`echo $ac_i|cut -c 3-`
51371
 
      
51372
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
51373
 
    
51374
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51375
 
    ai_p=$ac_ii
51376
 
  else
51377
 
    
51378
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
51379
 
    
51380
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51381
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
51382
 
  fi
51383
 
 
51384
 
    
51385
 
      if test "$ext_shared" = "yes"; then
51386
 
        LDFLAGS="-L$ai_p $LDFLAGS"
51387
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
51388
 
      else
51389
 
        
51390
 
  
51391
 
  
51392
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51393
 
  
51394
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51395
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51396
 
    eval "LIBPATH$unique=set"
51397
 
    
51398
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51399
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51400
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51401
 
  
51402
 
  fi
51403
 
 
51404
 
 
51405
 
      fi
51406
 
    
51407
 
  fi
51408
 
 
51409
 
    ;;
51410
 
    esac
51411
 
  done
51412
 
 
51413
 
  { $as_echo "$as_me:$LINENO: checking for FT_New_Face in -lfreetype" >&5
51414
 
$as_echo_n "checking for FT_New_Face in -lfreetype... " >&6; }
51415
 
if test "${ac_cv_lib_freetype_FT_New_Face+set}" = set; then
51416
 
  $as_echo_n "(cached) " >&6
51417
 
else
51418
 
  ac_check_lib_save_LIBS=$LIBS
51419
 
LIBS="-lfreetype  $LIBS"
51420
 
cat >conftest.$ac_ext <<_ACEOF
51421
 
/* confdefs.h.  */
51422
 
_ACEOF
51423
 
cat confdefs.h >>conftest.$ac_ext
51424
 
cat >>conftest.$ac_ext <<_ACEOF
51425
 
/* end confdefs.h.  */
51426
 
 
51427
 
/* Override any GCC internal prototype to avoid an error.
51428
 
   Use char because int might match the return type of a GCC
51429
 
   builtin and then its argument prototype would still apply.  */
51430
 
#ifdef __cplusplus
51431
 
extern "C"
51432
 
#endif
51433
 
char FT_New_Face ();
51434
 
int
51435
 
main ()
51436
 
{
51437
 
return FT_New_Face ();
51438
 
  ;
51439
 
  return 0;
51440
 
}
51441
 
_ACEOF
51442
 
rm -f conftest.$ac_objext conftest$ac_exeext
51443
 
if { (ac_try="$ac_link"
51444
 
case "(($ac_try" in
51445
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51446
 
  *) ac_try_echo=$ac_try;;
51447
 
esac
51448
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51449
 
$as_echo "$ac_try_echo") >&5
51450
 
  (eval "$ac_link") 2>conftest.er1
51451
 
  ac_status=$?
51452
 
  grep -v '^ *+' conftest.er1 >conftest.err
51453
 
  rm -f conftest.er1
51454
 
  cat conftest.err >&5
51455
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51456
 
  (exit $ac_status); } && {
51457
 
         test -z "$ac_c_werror_flag" ||
51458
 
         test ! -s conftest.err
51459
 
       } && test -s conftest$ac_exeext && {
51460
 
         test "$cross_compiling" = yes ||
51461
 
         $as_test_x conftest$ac_exeext
51462
 
       }; then
51463
 
  ac_cv_lib_freetype_FT_New_Face=yes
51464
 
else
51465
 
  $as_echo "$as_me: failed program was:" >&5
51466
 
sed 's/^/| /' conftest.$ac_ext >&5
51467
 
 
51468
 
        ac_cv_lib_freetype_FT_New_Face=no
51469
 
fi
51470
 
 
51471
 
rm -rf conftest.dSYM
51472
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51473
 
      conftest$ac_exeext conftest.$ac_ext
51474
 
LIBS=$ac_check_lib_save_LIBS
51475
 
fi
51476
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_New_Face" >&5
51477
 
$as_echo "$ac_cv_lib_freetype_FT_New_Face" >&6; }
51478
 
if test "x$ac_cv_lib_freetype_FT_New_Face" = x""yes; then
51479
 
  
51480
 
    LDFLAGS=$save_old_LDFLAGS
51481
 
    ext_shared=$save_ext_shared
51482
 
    
51483
 
      
51484
 
 
51485
 
  if test "$ext_shared" = "yes"; then
51486
 
    GD_SHARED_LIBADD="-lfreetype $GD_SHARED_LIBADD"
51487
 
    if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
51488
 
      
51489
 
  if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51490
 
    
51491
 
  if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51492
 
    ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
51493
 
  else
51494
 
    
51495
 
    ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51496
 
    
51497
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51498
 
    ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
51499
 
  fi
51500
 
 
51501
 
    
51502
 
      if test "$ext_shared" = "yes"; then
51503
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
51504
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
51505
 
      else
51506
 
        
51507
 
  
51508
 
  
51509
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51510
 
  
51511
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51512
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51513
 
    eval "LIBPATH$unique=set"
51514
 
    
51515
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51516
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51517
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51518
 
  
51519
 
  fi
51520
 
 
51521
 
 
51522
 
      fi
51523
 
    
51524
 
  fi
51525
 
 
51526
 
    fi
51527
 
  else
51528
 
    
51529
 
 
51530
 
  if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
51531
 
    
51532
 
  if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51533
 
    
51534
 
  if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51535
 
    ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
51536
 
  else
51537
 
    
51538
 
    ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51539
 
    
51540
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51541
 
    ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
51542
 
  fi
51543
 
 
51544
 
    
51545
 
      
51546
 
  
51547
 
  
51548
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51549
 
  
51550
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51551
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51552
 
    eval "LIBPATH$unique=set"
51553
 
    
51554
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51555
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51556
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51557
 
  
51558
 
  fi
51559
 
 
51560
 
 
51561
 
    
51562
 
  fi
51563
 
 
51564
 
  fi
51565
 
  
51566
 
  
51567
 
  case freetype in
51568
 
  c|c_r|pthread*) ;;
51569
 
  *) 
51570
 
      LIBS="-lfreetype $LIBS" 
51571
 
   ;;
51572
 
  esac
51573
 
 
51574
 
 
51575
 
 
51576
 
 
51577
 
  fi
51578
 
 
51579
 
 
51580
 
      
51581
 
  if test "$FREETYPE2_DIR/include" != "/usr/include"; then
51582
 
    
51583
 
  if test -z "$FREETYPE2_DIR/include" || echo "$FREETYPE2_DIR/include" | grep '^/' >/dev/null ; then
51584
 
    ai_p=$FREETYPE2_DIR/include
51585
 
  else
51586
 
    
51587
 
    ep_dir="`echo $FREETYPE2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
51588
 
    
51589
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51590
 
    ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/include\"`"
51591
 
  fi
51592
 
 
51593
 
    
51594
 
  
51595
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51596
 
  
51597
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51598
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51599
 
    eval "INCLUDEPATH$unique=set"
51600
 
    
51601
 
      if test ""; then
51602
 
        INCLUDES="-I$ai_p $INCLUDES"
51603
 
      else
51604
 
        INCLUDES="$INCLUDES -I$ai_p"
51605
 
      fi
51606
 
    
51607
 
  fi
51608
 
 
51609
 
  fi
51610
 
 
51611
 
      
51612
 
  if test "$FREETYPE2_INC_DIR" != "/usr/include"; then
51613
 
    
51614
 
  if test -z "$FREETYPE2_INC_DIR" || echo "$FREETYPE2_INC_DIR" | grep '^/' >/dev/null ; then
51615
 
    ai_p=$FREETYPE2_INC_DIR
51616
 
  else
51617
 
    
51618
 
    ep_dir="`echo $FREETYPE2_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
51619
 
    
51620
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51621
 
    ai_p="$ep_realdir/`basename \"$FREETYPE2_INC_DIR\"`"
51622
 
  fi
51623
 
 
51624
 
    
51625
 
  
51626
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51627
 
  
51628
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51629
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51630
 
    eval "INCLUDEPATH$unique=set"
51631
 
    
51632
 
      if test ""; then
51633
 
        INCLUDES="-I$ai_p $INCLUDES"
51634
 
      else
51635
 
        INCLUDES="$INCLUDES -I$ai_p"
51636
 
      fi
51637
 
    
51638
 
  fi
51639
 
 
51640
 
  fi
51641
 
 
51642
 
      
51643
 
cat >>confdefs.h <<\_ACEOF
51644
 
@%:@define USE_GD_IMGSTRTTF 1
51645
 
_ACEOF
51646
 
 
51647
 
      
51648
 
cat >>confdefs.h <<\_ACEOF
51649
 
@%:@define HAVE_LIBFREETYPE 1
51650
 
_ACEOF
51651
 
 
51652
 
      
51653
 
cat >>confdefs.h <<\_ACEOF
51654
 
@%:@define ENABLE_GD_TTF 1
51655
 
_ACEOF
51656
 
 
51657
 
    
51658
 
  
51659
 
else
51660
 
  
51661
 
    LDFLAGS=$save_old_LDFLAGS
51662
 
    ext_shared=$save_ext_shared
51663
 
    unset ac_cv_lib_freetype_FT_New_Face
51664
 
    
51665
 
      { { $as_echo "$as_me:$LINENO: error: Problem with freetype.(a|so). Please check config.log for more information." >&5
51666
 
$as_echo "$as_me: error: Problem with freetype.(a|so). Please check config.log for more information." >&2;}
51667
 
   { (exit 1); exit 1; }; }
51668
 
    
51669
 
  
51670
 
fi
51671
 
 
51672
 
  else
51673
 
    { $as_echo "$as_me:$LINENO: result: If configure fails try --with-freetype-dir=<DIR>" >&5
51674
 
$as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
51675
 
  fi
51676
 
 
51677
 
  
51678
 
  if test "$PHP_T1LIB" != "no"; then
51679
 
 
51680
 
    for i in $PHP_T1LIB /usr/local /usr; do
51681
 
      test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
51682
 
    done
51683
 
 
51684
 
    if test -z "$GD_T1_DIR"; then
51685
 
      { { $as_echo "$as_me:$LINENO: error: Your t1lib distribution is not installed correctly. Please reinstall it." >&5
51686
 
$as_echo "$as_me: error: Your t1lib distribution is not installed correctly. Please reinstall it." >&2;}
51687
 
   { (exit 1); exit 1; }; }
51688
 
    fi
51689
 
 
51690
 
    
51691
 
  save_old_LDFLAGS=$LDFLAGS
51692
 
  ac_stuff="
51693
 
      -L$GD_T1_DIR/$PHP_LIBDIR
51694
 
    "
51695
 
  
51696
 
  save_ext_shared=$ext_shared
51697
 
  ext_shared=yes
51698
 
  
51699
 
  for ac_i in $ac_stuff; do
51700
 
    case $ac_i in
51701
 
    -pthread)
51702
 
      if test "$ext_shared" = "yes"; then
51703
 
        LDFLAGS="$LDFLAGS -pthread"
51704
 
      else
51705
 
        
51706
 
  
51707
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
51708
 
  
51709
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
51710
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51711
 
    eval "EXTRA_LDFLAGS$unique=set"
51712
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
51713
 
  fi
51714
 
 
51715
 
      fi
51716
 
    ;;
51717
 
    -l*)
51718
 
      ac_ii=`echo $ac_i|cut -c 3-`
51719
 
      
51720
 
  
51721
 
  case $ac_ii in
51722
 
  c|c_r|pthread*) ;;
51723
 
  *) 
51724
 
    if test "$ext_shared" = "yes"; then
51725
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
51726
 
    else
51727
 
      
51728
 
  
51729
 
  case $ac_ii in
51730
 
  c|c_r|pthread*) ;;
51731
 
  *) 
51732
 
      LIBS="$LIBS -l$ac_ii" 
51733
 
   ;;
51734
 
  esac
51735
 
 
51736
 
 
51737
 
    fi
51738
 
   ;;
51739
 
  esac
51740
 
 
51741
 
 
51742
 
    ;;
51743
 
    -L*)
51744
 
      ac_ii=`echo $ac_i|cut -c 3-`
51745
 
      
51746
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
51747
 
    
51748
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51749
 
    ai_p=$ac_ii
51750
 
  else
51751
 
    
51752
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
51753
 
    
51754
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51755
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
51756
 
  fi
51757
 
 
51758
 
    
51759
 
      if test "$ext_shared" = "yes"; then
51760
 
        LDFLAGS="-L$ai_p $LDFLAGS"
51761
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
51762
 
      else
51763
 
        
51764
 
  
51765
 
  
51766
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51767
 
  
51768
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51769
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51770
 
    eval "LIBPATH$unique=set"
51771
 
    
51772
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51773
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51774
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51775
 
  
51776
 
  fi
51777
 
 
51778
 
 
51779
 
      fi
51780
 
    
51781
 
  fi
51782
 
 
51783
 
    ;;
51784
 
    esac
51785
 
  done
51786
 
 
51787
 
  { $as_echo "$as_me:$LINENO: checking for T1_StrError in -lt1" >&5
51788
 
$as_echo_n "checking for T1_StrError in -lt1... " >&6; }
51789
 
if test "${ac_cv_lib_t1_T1_StrError+set}" = set; then
51790
 
  $as_echo_n "(cached) " >&6
51791
 
else
51792
 
  ac_check_lib_save_LIBS=$LIBS
51793
 
LIBS="-lt1  $LIBS"
51794
 
cat >conftest.$ac_ext <<_ACEOF
51795
 
/* confdefs.h.  */
51796
 
_ACEOF
51797
 
cat confdefs.h >>conftest.$ac_ext
51798
 
cat >>conftest.$ac_ext <<_ACEOF
51799
 
/* end confdefs.h.  */
51800
 
 
51801
 
/* Override any GCC internal prototype to avoid an error.
51802
 
   Use char because int might match the return type of a GCC
51803
 
   builtin and then its argument prototype would still apply.  */
51804
 
#ifdef __cplusplus
51805
 
extern "C"
51806
 
#endif
51807
 
char T1_StrError ();
51808
 
int
51809
 
main ()
51810
 
{
51811
 
return T1_StrError ();
51812
 
  ;
51813
 
  return 0;
51814
 
}
51815
 
_ACEOF
51816
 
rm -f conftest.$ac_objext conftest$ac_exeext
51817
 
if { (ac_try="$ac_link"
51818
 
case "(($ac_try" in
51819
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51820
 
  *) ac_try_echo=$ac_try;;
51821
 
esac
51822
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51823
 
$as_echo "$ac_try_echo") >&5
51824
 
  (eval "$ac_link") 2>conftest.er1
51825
 
  ac_status=$?
51826
 
  grep -v '^ *+' conftest.er1 >conftest.err
51827
 
  rm -f conftest.er1
51828
 
  cat conftest.err >&5
51829
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51830
 
  (exit $ac_status); } && {
51831
 
         test -z "$ac_c_werror_flag" ||
51832
 
         test ! -s conftest.err
51833
 
       } && test -s conftest$ac_exeext && {
51834
 
         test "$cross_compiling" = yes ||
51835
 
         $as_test_x conftest$ac_exeext
51836
 
       }; then
51837
 
  ac_cv_lib_t1_T1_StrError=yes
51838
 
else
51839
 
  $as_echo "$as_me: failed program was:" >&5
51840
 
sed 's/^/| /' conftest.$ac_ext >&5
51841
 
 
51842
 
        ac_cv_lib_t1_T1_StrError=no
51843
 
fi
51844
 
 
51845
 
rm -rf conftest.dSYM
51846
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51847
 
      conftest$ac_exeext conftest.$ac_ext
51848
 
LIBS=$ac_check_lib_save_LIBS
51849
 
fi
51850
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_StrError" >&5
51851
 
$as_echo "$ac_cv_lib_t1_T1_StrError" >&6; }
51852
 
if test "x$ac_cv_lib_t1_T1_StrError" = x""yes; then
51853
 
  
51854
 
    LDFLAGS=$save_old_LDFLAGS
51855
 
    ext_shared=$save_ext_shared
51856
 
    
51857
 
      
51858
 
cat >>confdefs.h <<\_ACEOF
51859
 
@%:@define HAVE_LIBT1 1
51860
 
_ACEOF
51861
 
 
51862
 
      
51863
 
  if test "$GD_T1_DIR/include" != "/usr/include"; then
51864
 
    
51865
 
  if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
51866
 
    ai_p=$GD_T1_DIR/include
51867
 
  else
51868
 
    
51869
 
    ep_dir="`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
51870
 
    
51871
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51872
 
    ai_p="$ep_realdir/`basename \"$GD_T1_DIR/include\"`"
51873
 
  fi
51874
 
 
51875
 
    
51876
 
  
51877
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51878
 
  
51879
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51880
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51881
 
    eval "INCLUDEPATH$unique=set"
51882
 
    
51883
 
      if test ""; then
51884
 
        INCLUDES="-I$ai_p $INCLUDES"
51885
 
      else
51886
 
        INCLUDES="$INCLUDES -I$ai_p"
51887
 
      fi
51888
 
    
51889
 
  fi
51890
 
 
51891
 
  fi
51892
 
 
51893
 
      
51894
 
 
51895
 
  if test "$ext_shared" = "yes"; then
51896
 
    GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
51897
 
    if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
51898
 
      
51899
 
  if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51900
 
    
51901
 
  if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51902
 
    ai_p=$GD_T1_DIR/$PHP_LIBDIR
51903
 
  else
51904
 
    
51905
 
    ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51906
 
    
51907
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51908
 
    ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
51909
 
  fi
51910
 
 
51911
 
    
51912
 
      if test "$ext_shared" = "yes"; then
51913
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
51914
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
51915
 
      else
51916
 
        
51917
 
  
51918
 
  
51919
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51920
 
  
51921
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51922
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51923
 
    eval "LIBPATH$unique=set"
51924
 
    
51925
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51926
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51927
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51928
 
  
51929
 
  fi
51930
 
 
51931
 
 
51932
 
      fi
51933
 
    
51934
 
  fi
51935
 
 
51936
 
    fi
51937
 
  else
51938
 
    
51939
 
 
51940
 
  if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
51941
 
    
51942
 
  if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51943
 
    
51944
 
  if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51945
 
    ai_p=$GD_T1_DIR/$PHP_LIBDIR
51946
 
  else
51947
 
    
51948
 
    ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
51949
 
    
51950
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51951
 
    ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
51952
 
  fi
51953
 
 
51954
 
    
51955
 
      
51956
 
  
51957
 
  
51958
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51959
 
  
51960
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51961
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
51962
 
    eval "LIBPATH$unique=set"
51963
 
    
51964
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51965
 
    LDFLAGS="$LDFLAGS -L$ai_p"
51966
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
51967
 
  
51968
 
  fi
51969
 
 
51970
 
 
51971
 
    
51972
 
  fi
51973
 
 
51974
 
  fi
51975
 
  
51976
 
  
51977
 
  case t1 in
51978
 
  c|c_r|pthread*) ;;
51979
 
  *) 
51980
 
      LIBS="-lt1 $LIBS" 
51981
 
   ;;
51982
 
  esac
51983
 
 
51984
 
 
51985
 
 
51986
 
 
51987
 
  fi
51988
 
 
51989
 
 
51990
 
    
51991
 
  
51992
 
else
51993
 
  
51994
 
    LDFLAGS=$save_old_LDFLAGS
51995
 
    ext_shared=$save_ext_shared
51996
 
    unset ac_cv_lib_t1_T1_StrError
51997
 
    
51998
 
      { { $as_echo "$as_me:$LINENO: error: Problem with libt1.(a|so). Please check config.log for more information." >&5
51999
 
$as_echo "$as_me: error: Problem with libt1.(a|so). Please check config.log for more information." >&2;}
52000
 
   { (exit 1); exit 1; }; }
52001
 
    
52002
 
  
52003
 
fi
52004
 
 
52005
 
  fi
52006
 
 
52007
 
 
52008
 
  
52009
 
cat >>confdefs.h <<\_ACEOF
52010
 
@%:@define HAVE_LIBGD 1
52011
 
_ACEOF
52012
 
 
52013
 
  
52014
 
cat >>confdefs.h <<\_ACEOF
52015
 
@%:@define HAVE_LIBGD13 1
52016
 
_ACEOF
52017
 
 
52018
 
  
52019
 
cat >>confdefs.h <<\_ACEOF
52020
 
@%:@define HAVE_LIBGD15 1
52021
 
_ACEOF
52022
 
 
52023
 
  
52024
 
cat >>confdefs.h <<\_ACEOF
52025
 
@%:@define HAVE_LIBGD20 1
52026
 
_ACEOF
52027
 
 
52028
 
  
52029
 
cat >>confdefs.h <<\_ACEOF
52030
 
@%:@define HAVE_LIBGD204 1
52031
 
_ACEOF
52032
 
 
52033
 
  
52034
 
cat >>confdefs.h <<\_ACEOF
52035
 
@%:@define HAVE_GD_IMAGESETTILE 1
52036
 
_ACEOF
52037
 
 
52038
 
  
52039
 
cat >>confdefs.h <<\_ACEOF
52040
 
@%:@define HAVE_GD_IMAGESETBRUSH 1
52041
 
_ACEOF
52042
 
 
52043
 
  
52044
 
cat >>confdefs.h <<\_ACEOF
52045
 
@%:@define HAVE_GDIMAGECOLORRESOLVE 1
52046
 
_ACEOF
52047
 
 
52048
 
  
52049
 
cat >>confdefs.h <<\_ACEOF
52050
 
@%:@define HAVE_COLORCLOSESTHWB 1
52051
 
_ACEOF
52052
 
 
52053
 
  
52054
 
cat >>confdefs.h <<\_ACEOF
52055
 
@%:@define HAVE_GD_WBMP 1
52056
 
_ACEOF
52057
 
 
52058
 
  
52059
 
cat >>confdefs.h <<\_ACEOF
52060
 
@%:@define HAVE_GD_GD2 1
52061
 
_ACEOF
52062
 
 
52063
 
  
52064
 
cat >>confdefs.h <<\_ACEOF
52065
 
@%:@define HAVE_GD_PNG 1
52066
 
_ACEOF
52067
 
 
52068
 
  
52069
 
cat >>confdefs.h <<\_ACEOF
52070
 
@%:@define HAVE_GD_XBM 1
52071
 
_ACEOF
52072
 
 
52073
 
  
52074
 
cat >>confdefs.h <<\_ACEOF
52075
 
@%:@define HAVE_GD_BUNDLED 1
52076
 
_ACEOF
52077
 
 
52078
 
  
52079
 
cat >>confdefs.h <<\_ACEOF
52080
 
@%:@define HAVE_GD_GIF_READ 1
52081
 
_ACEOF
52082
 
 
52083
 
  
52084
 
cat >>confdefs.h <<\_ACEOF
52085
 
@%:@define HAVE_GD_GIF_CREATE 1
52086
 
_ACEOF
52087
 
 
52088
 
  
52089
 
cat >>confdefs.h <<\_ACEOF
52090
 
@%:@define HAVE_GD_IMAGEELLIPSE 1
52091
 
_ACEOF
52092
 
 
52093
 
  
52094
 
cat >>confdefs.h <<\_ACEOF
52095
 
@%:@define HAVE_GD_FONTCACHESHUTDOWN 1
52096
 
_ACEOF
52097
 
 
52098
 
  
52099
 
cat >>confdefs.h <<\_ACEOF
52100
 
@%:@define HAVE_GD_FONTMUTEX 1
52101
 
_ACEOF
52102
 
 
52103
 
  
52104
 
cat >>confdefs.h <<\_ACEOF
52105
 
@%:@define HAVE_GD_DYNAMIC_CTX_EX 1
52106
 
_ACEOF
52107
 
 
52108
 
  
52109
 
cat >>confdefs.h <<\_ACEOF
52110
 
@%:@define HAVE_GD_GIF_CTX 1
52111
 
_ACEOF
52112
 
 
52113
 
 
52114
 
  GDLIB_CFLAGS="-DHAVE_LIBPNG"
52115
 
 
52116
 
 
52117
 
  if test -n "$GD_JPEG_DIR"; then
52118
 
    
52119
 
cat >>confdefs.h <<\_ACEOF
52120
 
@%:@define HAVE_GD_JPG 1
52121
 
_ACEOF
52122
 
 
52123
 
    GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG"
52124
 
  fi
52125
 
 
52126
 
  if test -n "$GD_XPM_DIR"; then
52127
 
    
52128
 
cat >>confdefs.h <<\_ACEOF
52129
 
@%:@define HAVE_GD_XPM 1
52130
 
_ACEOF
52131
 
 
52132
 
    GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM"
52133
 
  fi
52134
 
 
52135
 
  if test -n "$FREETYPE2_DIR"; then
52136
 
    
52137
 
cat >>confdefs.h <<\_ACEOF
52138
 
@%:@define HAVE_GD_STRINGFT 1
52139
 
_ACEOF
52140
 
 
52141
 
    
52142
 
cat >>confdefs.h <<\_ACEOF
52143
 
@%:@define HAVE_GD_STRINGFTEX 1
52144
 
_ACEOF
52145
 
 
52146
 
    
52147
 
cat >>confdefs.h <<\_ACEOF
52148
 
@%:@define ENABLE_GD_TTF 1
52149
 
_ACEOF
52150
 
 
52151
 
    GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF"
52152
 
  fi
52153
 
 
52154
 
  if test -n "$USE_GD_JIS_CONV"; then
52155
 
    
52156
 
cat >>confdefs.h <<\_ACEOF
52157
 
@%:@define USE_GD_JISX0208 1
52158
 
_ACEOF
52159
 
 
52160
 
    GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
52161
 
  fi
52162
 
 
52163
 
else
52164
 
 
52165
 
 if test "$PHP_GD" != "no"; then
52166
 
  GD_MODULE_TYPE=external
52167
 
  extra_sources="gdcache.c libgd/gd_compat.c libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c \
52168
 
                 libgd/gd_rotate.c libgd/gd_color.c"
52169
 
 
52170
 
  
52171
 
        if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
52172
 
                if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
52173
 
                        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
52174
 
                        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
52175
 
                elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
52176
 
                        PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
52177
 
                        PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
52178
 
                else
52179
 
                        { { $as_echo "$as_me:$LINENO: error: Can't find zlib headers under \"$PHP_ZLIB_DIR\"" >&5
52180
 
$as_echo "$as_me: error: Can't find zlib headers under \"$PHP_ZLIB_DIR\"" >&2;}
52181
 
   { (exit 1); exit 1; }; }
52182
 
                fi
52183
 
        else
52184
 
                for i in /usr/local /usr; do
52185
 
                        if test -f "$i/include/zlib/zlib.h"; then
52186
 
                                PHP_ZLIB_DIR="$i"
52187
 
                                PHP_ZLIB_INCDIR="$i/include/zlib"
52188
 
                        elif test -f "$i/include/zlib.h"; then
52189
 
                                PHP_ZLIB_DIR="$i"
52190
 
                                PHP_ZLIB_INCDIR="$i/include"
52191
 
                        fi
52192
 
                done
52193
 
        fi
52194
 
 
52195
 
  
52196
 
  if test "$PHP_GD_NATIVE_TTF" = "yes"; then
52197
 
    
52198
 
cat >>confdefs.h <<\_ACEOF
52199
 
@%:@define USE_GD_IMGSTRTTF 1
52200
 
_ACEOF
52201
 
 
52202
 
  fi
52203
 
 
52204
 
  
52205
 
  if test "$PHP_JPEG_DIR" != "no"; then
52206
 
 
52207
 
    for i in $PHP_JPEG_DIR /usr/local /usr; do
52208
 
      test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
52209
 
    done
52210
 
 
52211
 
    if test -z "$GD_JPEG_DIR"; then
52212
 
      { { $as_echo "$as_me:$LINENO: error: jpeglib.h not found." >&5
52213
 
$as_echo "$as_me: error: jpeglib.h not found." >&2;}
52214
 
   { (exit 1); exit 1; }; }
52215
 
    fi
52216
 
 
52217
 
    
52218
 
  save_old_LDFLAGS=$LDFLAGS
52219
 
  ac_stuff="
52220
 
      -L$GD_JPEG_DIR/$PHP_LIBDIR
52221
 
    "
52222
 
  
52223
 
  save_ext_shared=$ext_shared
52224
 
  ext_shared=yes
52225
 
  
52226
 
  for ac_i in $ac_stuff; do
52227
 
    case $ac_i in
52228
 
    -pthread)
52229
 
      if test "$ext_shared" = "yes"; then
52230
 
        LDFLAGS="$LDFLAGS -pthread"
52231
 
      else
52232
 
        
52233
 
  
52234
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52235
 
  
52236
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52237
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52238
 
    eval "EXTRA_LDFLAGS$unique=set"
52239
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52240
 
  fi
52241
 
 
52242
 
      fi
52243
 
    ;;
52244
 
    -l*)
52245
 
      ac_ii=`echo $ac_i|cut -c 3-`
52246
 
      
52247
 
  
52248
 
  case $ac_ii in
52249
 
  c|c_r|pthread*) ;;
52250
 
  *) 
52251
 
    if test "$ext_shared" = "yes"; then
52252
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
52253
 
    else
52254
 
      
52255
 
  
52256
 
  case $ac_ii in
52257
 
  c|c_r|pthread*) ;;
52258
 
  *) 
52259
 
      LIBS="$LIBS -l$ac_ii" 
52260
 
   ;;
52261
 
  esac
52262
 
 
52263
 
 
52264
 
    fi
52265
 
   ;;
52266
 
  esac
52267
 
 
52268
 
 
52269
 
    ;;
52270
 
    -L*)
52271
 
      ac_ii=`echo $ac_i|cut -c 3-`
52272
 
      
52273
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52274
 
    
52275
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52276
 
    ai_p=$ac_ii
52277
 
  else
52278
 
    
52279
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52280
 
    
52281
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52282
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52283
 
  fi
52284
 
 
52285
 
    
52286
 
      if test "$ext_shared" = "yes"; then
52287
 
        LDFLAGS="-L$ai_p $LDFLAGS"
52288
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52289
 
      else
52290
 
        
52291
 
  
52292
 
  
52293
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52294
 
  
52295
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52296
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52297
 
    eval "LIBPATH$unique=set"
52298
 
    
52299
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52300
 
    LDFLAGS="$LDFLAGS -L$ai_p"
52301
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
52302
 
  
52303
 
  fi
52304
 
 
52305
 
 
52306
 
      fi
52307
 
    
52308
 
  fi
52309
 
 
52310
 
    ;;
52311
 
    esac
52312
 
  done
52313
 
 
52314
 
  { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
52315
 
$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
52316
 
if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
52317
 
  $as_echo_n "(cached) " >&6
52318
 
else
52319
 
  ac_check_lib_save_LIBS=$LIBS
52320
 
LIBS="-ljpeg  $LIBS"
52321
 
cat >conftest.$ac_ext <<_ACEOF
52322
 
/* confdefs.h.  */
52323
 
_ACEOF
52324
 
cat confdefs.h >>conftest.$ac_ext
52325
 
cat >>conftest.$ac_ext <<_ACEOF
52326
 
/* end confdefs.h.  */
52327
 
 
52328
 
/* Override any GCC internal prototype to avoid an error.
52329
 
   Use char because int might match the return type of a GCC
52330
 
   builtin and then its argument prototype would still apply.  */
52331
 
#ifdef __cplusplus
52332
 
extern "C"
52333
 
#endif
52334
 
char jpeg_read_header ();
52335
 
int
52336
 
main ()
52337
 
{
52338
 
return jpeg_read_header ();
52339
 
  ;
52340
 
  return 0;
52341
 
}
52342
 
_ACEOF
52343
 
rm -f conftest.$ac_objext conftest$ac_exeext
52344
 
if { (ac_try="$ac_link"
52345
 
case "(($ac_try" in
52346
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52347
 
  *) ac_try_echo=$ac_try;;
52348
 
esac
52349
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52350
 
$as_echo "$ac_try_echo") >&5
52351
 
  (eval "$ac_link") 2>conftest.er1
52352
 
  ac_status=$?
52353
 
  grep -v '^ *+' conftest.er1 >conftest.err
52354
 
  rm -f conftest.er1
52355
 
  cat conftest.err >&5
52356
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52357
 
  (exit $ac_status); } && {
52358
 
         test -z "$ac_c_werror_flag" ||
52359
 
         test ! -s conftest.err
52360
 
       } && test -s conftest$ac_exeext && {
52361
 
         test "$cross_compiling" = yes ||
52362
 
         $as_test_x conftest$ac_exeext
52363
 
       }; then
52364
 
  ac_cv_lib_jpeg_jpeg_read_header=yes
52365
 
else
52366
 
  $as_echo "$as_me: failed program was:" >&5
52367
 
sed 's/^/| /' conftest.$ac_ext >&5
52368
 
 
52369
 
        ac_cv_lib_jpeg_jpeg_read_header=no
52370
 
fi
52371
 
 
52372
 
rm -rf conftest.dSYM
52373
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52374
 
      conftest$ac_exeext conftest.$ac_ext
52375
 
LIBS=$ac_check_lib_save_LIBS
52376
 
fi
52377
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
52378
 
$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
52379
 
if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
52380
 
  
52381
 
    LDFLAGS=$save_old_LDFLAGS
52382
 
    ext_shared=$save_ext_shared
52383
 
    
52384
 
      
52385
 
  if test "$GD_JPEG_DIR/include" != "/usr/include"; then
52386
 
    
52387
 
  if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
52388
 
    ai_p=$GD_JPEG_DIR/include
52389
 
  else
52390
 
    
52391
 
    ep_dir="`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
52392
 
    
52393
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52394
 
    ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/include\"`"
52395
 
  fi
52396
 
 
52397
 
    
52398
 
  
52399
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52400
 
  
52401
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52402
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52403
 
    eval "INCLUDEPATH$unique=set"
52404
 
    
52405
 
      if test ""; then
52406
 
        INCLUDES="-I$ai_p $INCLUDES"
52407
 
      else
52408
 
        INCLUDES="$INCLUDES -I$ai_p"
52409
 
      fi
52410
 
    
52411
 
  fi
52412
 
 
52413
 
  fi
52414
 
 
52415
 
      
52416
 
 
52417
 
  if test "$ext_shared" = "yes"; then
52418
 
    GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
52419
 
    if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
52420
 
      
52421
 
  if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52422
 
    
52423
 
  if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52424
 
    ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
52425
 
  else
52426
 
    
52427
 
    ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52428
 
    
52429
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52430
 
    ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
52431
 
  fi
52432
 
 
52433
 
    
52434
 
      if test "$ext_shared" = "yes"; then
52435
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
52436
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
52437
 
      else
52438
 
        
52439
 
  
52440
 
  
52441
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52442
 
  
52443
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52444
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52445
 
    eval "LIBPATH$unique=set"
52446
 
    
52447
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52448
 
    LDFLAGS="$LDFLAGS -L$ai_p"
52449
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
52450
 
  
52451
 
  fi
52452
 
 
52453
 
 
52454
 
      fi
52455
 
    
52456
 
  fi
52457
 
 
52458
 
    fi
52459
 
  else
52460
 
    
52461
 
 
52462
 
  if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
52463
 
    
52464
 
  if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52465
 
    
52466
 
  if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52467
 
    ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
52468
 
  else
52469
 
    
52470
 
    ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52471
 
    
52472
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52473
 
    ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
52474
 
  fi
52475
 
 
52476
 
    
52477
 
      
52478
 
  
52479
 
  
52480
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52481
 
  
52482
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52483
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52484
 
    eval "LIBPATH$unique=set"
52485
 
    
52486
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52487
 
    LDFLAGS="$LDFLAGS -L$ai_p"
52488
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
52489
 
  
52490
 
  fi
52491
 
 
52492
 
 
52493
 
    
52494
 
  fi
52495
 
 
52496
 
  fi
52497
 
  
52498
 
  
52499
 
  case jpeg in
52500
 
  c|c_r|pthread*) ;;
52501
 
  *) 
52502
 
      LIBS="-ljpeg $LIBS" 
52503
 
   ;;
52504
 
  esac
52505
 
 
52506
 
 
52507
 
 
52508
 
 
52509
 
  fi
52510
 
 
52511
 
 
52512
 
    
52513
 
  
52514
 
else
52515
 
  
52516
 
    LDFLAGS=$save_old_LDFLAGS
52517
 
    ext_shared=$save_ext_shared
52518
 
    unset ac_cv_lib_jpeg_jpeg_read_header
52519
 
    
52520
 
      { { $as_echo "$as_me:$LINENO: error: Problem with libjpeg.(a|so). Please check config.log for more information." >&5
52521
 
$as_echo "$as_me: error: Problem with libjpeg.(a|so). Please check config.log for more information." >&2;}
52522
 
   { (exit 1); exit 1; }; }
52523
 
    
52524
 
  
52525
 
fi
52526
 
 
52527
 
  else
52528
 
    { $as_echo "$as_me:$LINENO: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
52529
 
$as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
52530
 
  fi
52531
 
 
52532
 
  
52533
 
  if test "$PHP_PNG_DIR" != "no"; then
52534
 
 
52535
 
    for i in $PHP_PNG_DIR /usr/local /usr; do
52536
 
      test -f $i/include/png.h && GD_PNG_DIR=$i && break
52537
 
    done
52538
 
 
52539
 
    if test -z "$GD_PNG_DIR"; then
52540
 
      { { $as_echo "$as_me:$LINENO: error: png.h not found." >&5
52541
 
$as_echo "$as_me: error: png.h not found." >&2;}
52542
 
   { (exit 1); exit 1; }; }
52543
 
    fi
52544
 
 
52545
 
    if test "$PHP_ZLIB_DIR" = "no"; then
52546
 
      { { $as_echo "$as_me:$LINENO: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" >&5
52547
 
$as_echo "$as_me: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" >&2;}
52548
 
   { (exit 1); exit 1; }; }
52549
 
    fi
52550
 
 
52551
 
    
52552
 
  save_old_LDFLAGS=$LDFLAGS
52553
 
  ac_stuff="
52554
 
      -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
52555
 
    "
52556
 
  
52557
 
  save_ext_shared=$ext_shared
52558
 
  ext_shared=yes
52559
 
  
52560
 
  for ac_i in $ac_stuff; do
52561
 
    case $ac_i in
52562
 
    -pthread)
52563
 
      if test "$ext_shared" = "yes"; then
52564
 
        LDFLAGS="$LDFLAGS -pthread"
52565
 
      else
52566
 
        
52567
 
  
52568
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52569
 
  
52570
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52571
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52572
 
    eval "EXTRA_LDFLAGS$unique=set"
52573
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52574
 
  fi
52575
 
 
52576
 
      fi
52577
 
    ;;
52578
 
    -l*)
52579
 
      ac_ii=`echo $ac_i|cut -c 3-`
52580
 
      
52581
 
  
52582
 
  case $ac_ii in
52583
 
  c|c_r|pthread*) ;;
52584
 
  *) 
52585
 
    if test "$ext_shared" = "yes"; then
52586
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
52587
 
    else
52588
 
      
52589
 
  
52590
 
  case $ac_ii in
52591
 
  c|c_r|pthread*) ;;
52592
 
  *) 
52593
 
      LIBS="$LIBS -l$ac_ii" 
52594
 
   ;;
52595
 
  esac
52596
 
 
52597
 
 
52598
 
    fi
52599
 
   ;;
52600
 
  esac
52601
 
 
52602
 
 
52603
 
    ;;
52604
 
    -L*)
52605
 
      ac_ii=`echo $ac_i|cut -c 3-`
52606
 
      
52607
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52608
 
    
52609
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52610
 
    ai_p=$ac_ii
52611
 
  else
52612
 
    
52613
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52614
 
    
52615
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52616
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52617
 
  fi
52618
 
 
52619
 
    
52620
 
      if test "$ext_shared" = "yes"; then
52621
 
        LDFLAGS="-L$ai_p $LDFLAGS"
52622
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52623
 
      else
52624
 
        
52625
 
  
52626
 
  
52627
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52628
 
  
52629
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52630
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52631
 
    eval "LIBPATH$unique=set"
52632
 
    
52633
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52634
 
    LDFLAGS="$LDFLAGS -L$ai_p"
52635
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
52636
 
  
52637
 
  fi
52638
 
 
52639
 
 
52640
 
      fi
52641
 
    
52642
 
  fi
52643
 
 
52644
 
    ;;
52645
 
    esac
52646
 
  done
52647
 
 
52648
 
  { $as_echo "$as_me:$LINENO: checking for png_write_image in -lpng" >&5
52649
 
$as_echo_n "checking for png_write_image in -lpng... " >&6; }
52650
 
if test "${ac_cv_lib_png_png_write_image+set}" = set; then
52651
 
  $as_echo_n "(cached) " >&6
52652
 
else
52653
 
  ac_check_lib_save_LIBS=$LIBS
52654
 
LIBS="-lpng  $LIBS"
52655
 
cat >conftest.$ac_ext <<_ACEOF
52656
 
/* confdefs.h.  */
52657
 
_ACEOF
52658
 
cat confdefs.h >>conftest.$ac_ext
52659
 
cat >>conftest.$ac_ext <<_ACEOF
52660
 
/* end confdefs.h.  */
52661
 
 
52662
 
/* Override any GCC internal prototype to avoid an error.
52663
 
   Use char because int might match the return type of a GCC
52664
 
   builtin and then its argument prototype would still apply.  */
52665
 
#ifdef __cplusplus
52666
 
extern "C"
52667
 
#endif
52668
 
char png_write_image ();
52669
 
int
52670
 
main ()
52671
 
{
52672
 
return png_write_image ();
52673
 
  ;
52674
 
  return 0;
52675
 
}
52676
 
_ACEOF
52677
 
rm -f conftest.$ac_objext conftest$ac_exeext
52678
 
if { (ac_try="$ac_link"
52679
 
case "(($ac_try" in
52680
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52681
 
  *) ac_try_echo=$ac_try;;
52682
 
esac
52683
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52684
 
$as_echo "$ac_try_echo") >&5
52685
 
  (eval "$ac_link") 2>conftest.er1
52686
 
  ac_status=$?
52687
 
  grep -v '^ *+' conftest.er1 >conftest.err
52688
 
  rm -f conftest.er1
52689
 
  cat conftest.err >&5
52690
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52691
 
  (exit $ac_status); } && {
52692
 
         test -z "$ac_c_werror_flag" ||
52693
 
         test ! -s conftest.err
52694
 
       } && test -s conftest$ac_exeext && {
52695
 
         test "$cross_compiling" = yes ||
52696
 
         $as_test_x conftest$ac_exeext
52697
 
       }; then
52698
 
  ac_cv_lib_png_png_write_image=yes
52699
 
else
52700
 
  $as_echo "$as_me: failed program was:" >&5
52701
 
sed 's/^/| /' conftest.$ac_ext >&5
52702
 
 
52703
 
        ac_cv_lib_png_png_write_image=no
52704
 
fi
52705
 
 
52706
 
rm -rf conftest.dSYM
52707
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52708
 
      conftest$ac_exeext conftest.$ac_ext
52709
 
LIBS=$ac_check_lib_save_LIBS
52710
 
fi
52711
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_write_image" >&5
52712
 
$as_echo "$ac_cv_lib_png_png_write_image" >&6; }
52713
 
if test "x$ac_cv_lib_png_png_write_image" = x""yes; then
52714
 
  
52715
 
    LDFLAGS=$save_old_LDFLAGS
52716
 
    ext_shared=$save_ext_shared
52717
 
    
52718
 
      
52719
 
  if test "$GD_PNG_DIR/include" != "/usr/include"; then
52720
 
    
52721
 
  if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
52722
 
    ai_p=$GD_PNG_DIR/include
52723
 
  else
52724
 
    
52725
 
    ep_dir="`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
52726
 
    
52727
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52728
 
    ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/include\"`"
52729
 
  fi
52730
 
 
52731
 
    
52732
 
  
52733
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52734
 
  
52735
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52736
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52737
 
    eval "INCLUDEPATH$unique=set"
52738
 
    
52739
 
      if test ""; then
52740
 
        INCLUDES="-I$ai_p $INCLUDES"
52741
 
      else
52742
 
        INCLUDES="$INCLUDES -I$ai_p"
52743
 
      fi
52744
 
    
52745
 
  fi
52746
 
 
52747
 
  fi
52748
 
 
52749
 
      
52750
 
 
52751
 
  if test "$ext_shared" = "yes"; then
52752
 
    GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
52753
 
    if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
52754
 
      
52755
 
  if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52756
 
    
52757
 
  if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52758
 
    ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
52759
 
  else
52760
 
    
52761
 
    ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52762
 
    
52763
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52764
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
52765
 
  fi
52766
 
 
52767
 
    
52768
 
      if test "$ext_shared" = "yes"; then
52769
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
52770
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
52771
 
      else
52772
 
        
52773
 
  
52774
 
  
52775
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52776
 
  
52777
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52778
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52779
 
    eval "LIBPATH$unique=set"
52780
 
    
52781
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52782
 
    LDFLAGS="$LDFLAGS -L$ai_p"
52783
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
52784
 
  
52785
 
  fi
52786
 
 
52787
 
 
52788
 
      fi
52789
 
    
52790
 
  fi
52791
 
 
52792
 
    fi
52793
 
  else
52794
 
    
52795
 
 
52796
 
  if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
52797
 
    
52798
 
  if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52799
 
    
52800
 
  if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52801
 
    ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
52802
 
  else
52803
 
    
52804
 
    ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52805
 
    
52806
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52807
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
52808
 
  fi
52809
 
 
52810
 
    
52811
 
      
52812
 
  
52813
 
  
52814
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52815
 
  
52816
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52817
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52818
 
    eval "LIBPATH$unique=set"
52819
 
    
52820
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52821
 
    LDFLAGS="$LDFLAGS -L$ai_p"
52822
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
52823
 
  
52824
 
  fi
52825
 
 
52826
 
 
52827
 
    
52828
 
  fi
52829
 
 
52830
 
  fi
52831
 
  
52832
 
  
52833
 
  case z in
52834
 
  c|c_r|pthread*) ;;
52835
 
  *) 
52836
 
      LIBS="-lz $LIBS" 
52837
 
   ;;
52838
 
  esac
52839
 
 
52840
 
 
52841
 
 
52842
 
 
52843
 
  fi
52844
 
 
52845
 
 
52846
 
      
52847
 
 
52848
 
  if test "$ext_shared" = "yes"; then
52849
 
    GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
52850
 
    if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
52851
 
      
52852
 
  if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52853
 
    
52854
 
  if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52855
 
    ai_p=$GD_PNG_DIR/$PHP_LIBDIR
52856
 
  else
52857
 
    
52858
 
    ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52859
 
    
52860
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52861
 
    ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
52862
 
  fi
52863
 
 
52864
 
    
52865
 
      if test "$ext_shared" = "yes"; then
52866
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
52867
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
52868
 
      else
52869
 
        
52870
 
  
52871
 
  
52872
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52873
 
  
52874
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52875
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52876
 
    eval "LIBPATH$unique=set"
52877
 
    
52878
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52879
 
    LDFLAGS="$LDFLAGS -L$ai_p"
52880
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
52881
 
  
52882
 
  fi
52883
 
 
52884
 
 
52885
 
      fi
52886
 
    
52887
 
  fi
52888
 
 
52889
 
    fi
52890
 
  else
52891
 
    
52892
 
 
52893
 
  if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
52894
 
    
52895
 
  if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52896
 
    
52897
 
  if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52898
 
    ai_p=$GD_PNG_DIR/$PHP_LIBDIR
52899
 
  else
52900
 
    
52901
 
    ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52902
 
    
52903
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52904
 
    ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
52905
 
  fi
52906
 
 
52907
 
    
52908
 
      
52909
 
  
52910
 
  
52911
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52912
 
  
52913
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52914
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
52915
 
    eval "LIBPATH$unique=set"
52916
 
    
52917
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52918
 
    LDFLAGS="$LDFLAGS -L$ai_p"
52919
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
52920
 
  
52921
 
  fi
52922
 
 
52923
 
 
52924
 
    
52925
 
  fi
52926
 
 
52927
 
  fi
52928
 
  
52929
 
  
52930
 
  case png in
52931
 
  c|c_r|pthread*) ;;
52932
 
  *) 
52933
 
      LIBS="-lpng $LIBS" 
52934
 
   ;;
52935
 
  esac
52936
 
 
52937
 
 
52938
 
 
52939
 
 
52940
 
  fi
52941
 
 
52942
 
 
52943
 
    
52944
 
  
52945
 
else
52946
 
  
52947
 
    LDFLAGS=$save_old_LDFLAGS
52948
 
    ext_shared=$save_ext_shared
52949
 
    unset ac_cv_lib_png_png_write_image
52950
 
    
52951
 
      { { $as_echo "$as_me:$LINENO: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." >&5
52952
 
$as_echo "$as_me: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." >&2;}
52953
 
   { (exit 1); exit 1; }; }
52954
 
    
52955
 
  
52956
 
fi
52957
 
 
52958
 
 
52959
 
  else
52960
 
    { $as_echo "$as_me:$LINENO: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
52961
 
$as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
52962
 
  fi
52963
 
 
52964
 
  
52965
 
  if test "$PHP_XPM_DIR" != "no"; then
52966
 
 
52967
 
    for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
52968
 
      test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
52969
 
    done
52970
 
 
52971
 
    if test -z "$GD_XPM_DIR"; then
52972
 
      { { $as_echo "$as_me:$LINENO: error: libXpm.(a|so) not found." >&5
52973
 
$as_echo "$as_me: error: libXpm.(a|so) not found." >&2;}
52974
 
   { (exit 1); exit 1; }; }
52975
 
    fi
52976
 
 
52977
 
    for i in include include/X11; do
52978
 
      test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
52979
 
    done
52980
 
 
52981
 
    if test -z "$GD_XPM_INC"; then
52982
 
      { { $as_echo "$as_me:$LINENO: error: xpm.h not found." >&5
52983
 
$as_echo "$as_me: error: xpm.h not found." >&2;}
52984
 
   { (exit 1); exit 1; }; }
52985
 
    fi
52986
 
 
52987
 
    
52988
 
  save_old_LDFLAGS=$LDFLAGS
52989
 
  ac_stuff="
52990
 
      -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
52991
 
    "
52992
 
  
52993
 
  save_ext_shared=$ext_shared
52994
 
  ext_shared=yes
52995
 
  
52996
 
  for ac_i in $ac_stuff; do
52997
 
    case $ac_i in
52998
 
    -pthread)
52999
 
      if test "$ext_shared" = "yes"; then
53000
 
        LDFLAGS="$LDFLAGS -pthread"
53001
 
      else
53002
 
        
53003
 
  
53004
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
53005
 
  
53006
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
53007
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53008
 
    eval "EXTRA_LDFLAGS$unique=set"
53009
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
53010
 
  fi
53011
 
 
53012
 
      fi
53013
 
    ;;
53014
 
    -l*)
53015
 
      ac_ii=`echo $ac_i|cut -c 3-`
53016
 
      
53017
 
  
53018
 
  case $ac_ii in
53019
 
  c|c_r|pthread*) ;;
53020
 
  *) 
53021
 
    if test "$ext_shared" = "yes"; then
53022
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
53023
 
    else
53024
 
      
53025
 
  
53026
 
  case $ac_ii in
53027
 
  c|c_r|pthread*) ;;
53028
 
  *) 
53029
 
      LIBS="$LIBS -l$ac_ii" 
53030
 
   ;;
53031
 
  esac
53032
 
 
53033
 
 
53034
 
    fi
53035
 
   ;;
53036
 
  esac
53037
 
 
53038
 
 
53039
 
    ;;
53040
 
    -L*)
53041
 
      ac_ii=`echo $ac_i|cut -c 3-`
53042
 
      
53043
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
53044
 
    
53045
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53046
 
    ai_p=$ac_ii
53047
 
  else
53048
 
    
53049
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
53050
 
    
53051
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53052
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
53053
 
  fi
53054
 
 
53055
 
    
53056
 
      if test "$ext_shared" = "yes"; then
53057
 
        LDFLAGS="-L$ai_p $LDFLAGS"
53058
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
53059
 
      else
53060
 
        
53061
 
  
53062
 
  
53063
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53064
 
  
53065
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53066
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53067
 
    eval "LIBPATH$unique=set"
53068
 
    
53069
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53070
 
    LDFLAGS="$LDFLAGS -L$ai_p"
53071
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
53072
 
  
53073
 
  fi
53074
 
 
53075
 
 
53076
 
      fi
53077
 
    
53078
 
  fi
53079
 
 
53080
 
    ;;
53081
 
    esac
53082
 
  done
53083
 
 
53084
 
  { $as_echo "$as_me:$LINENO: checking for XpmFreeXpmImage in -lXpm" >&5
53085
 
$as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
53086
 
if test "${ac_cv_lib_Xpm_XpmFreeXpmImage+set}" = set; then
53087
 
  $as_echo_n "(cached) " >&6
53088
 
else
53089
 
  ac_check_lib_save_LIBS=$LIBS
53090
 
LIBS="-lXpm  $LIBS"
53091
 
cat >conftest.$ac_ext <<_ACEOF
53092
 
/* confdefs.h.  */
53093
 
_ACEOF
53094
 
cat confdefs.h >>conftest.$ac_ext
53095
 
cat >>conftest.$ac_ext <<_ACEOF
53096
 
/* end confdefs.h.  */
53097
 
 
53098
 
/* Override any GCC internal prototype to avoid an error.
53099
 
   Use char because int might match the return type of a GCC
53100
 
   builtin and then its argument prototype would still apply.  */
53101
 
#ifdef __cplusplus
53102
 
extern "C"
53103
 
#endif
53104
 
char XpmFreeXpmImage ();
53105
 
int
53106
 
main ()
53107
 
{
53108
 
return XpmFreeXpmImage ();
53109
 
  ;
53110
 
  return 0;
53111
 
}
53112
 
_ACEOF
53113
 
rm -f conftest.$ac_objext conftest$ac_exeext
53114
 
if { (ac_try="$ac_link"
53115
 
case "(($ac_try" in
53116
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53117
 
  *) ac_try_echo=$ac_try;;
53118
 
esac
53119
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53120
 
$as_echo "$ac_try_echo") >&5
53121
 
  (eval "$ac_link") 2>conftest.er1
53122
 
  ac_status=$?
53123
 
  grep -v '^ *+' conftest.er1 >conftest.err
53124
 
  rm -f conftest.er1
53125
 
  cat conftest.err >&5
53126
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53127
 
  (exit $ac_status); } && {
53128
 
         test -z "$ac_c_werror_flag" ||
53129
 
         test ! -s conftest.err
53130
 
       } && test -s conftest$ac_exeext && {
53131
 
         test "$cross_compiling" = yes ||
53132
 
         $as_test_x conftest$ac_exeext
53133
 
       }; then
53134
 
  ac_cv_lib_Xpm_XpmFreeXpmImage=yes
53135
 
else
53136
 
  $as_echo "$as_me: failed program was:" >&5
53137
 
sed 's/^/| /' conftest.$ac_ext >&5
53138
 
 
53139
 
        ac_cv_lib_Xpm_XpmFreeXpmImage=no
53140
 
fi
53141
 
 
53142
 
rm -rf conftest.dSYM
53143
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53144
 
      conftest$ac_exeext conftest.$ac_ext
53145
 
LIBS=$ac_check_lib_save_LIBS
53146
 
fi
53147
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
53148
 
$as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
53149
 
if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = x""yes; then
53150
 
  
53151
 
    LDFLAGS=$save_old_LDFLAGS
53152
 
    ext_shared=$save_ext_shared
53153
 
    
53154
 
      
53155
 
  if test "$GD_XPM_INC" != "/usr/include"; then
53156
 
    
53157
 
  if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
53158
 
    ai_p=$GD_XPM_INC
53159
 
  else
53160
 
    
53161
 
    ep_dir="`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`"
53162
 
    
53163
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53164
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_INC\"`"
53165
 
  fi
53166
 
 
53167
 
    
53168
 
  
53169
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53170
 
  
53171
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
53172
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53173
 
    eval "INCLUDEPATH$unique=set"
53174
 
    
53175
 
      if test ""; then
53176
 
        INCLUDES="-I$ai_p $INCLUDES"
53177
 
      else
53178
 
        INCLUDES="$INCLUDES -I$ai_p"
53179
 
      fi
53180
 
    
53181
 
  fi
53182
 
 
53183
 
  fi
53184
 
 
53185
 
      
53186
 
 
53187
 
  if test "$ext_shared" = "yes"; then
53188
 
    GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
53189
 
    if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
53190
 
      
53191
 
  if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53192
 
    
53193
 
  if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53194
 
    ai_p=$GD_XPM_DIR/$PHP_LIBDIR
53195
 
  else
53196
 
    
53197
 
    ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53198
 
    
53199
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53200
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
53201
 
  fi
53202
 
 
53203
 
    
53204
 
      if test "$ext_shared" = "yes"; then
53205
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
53206
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
53207
 
      else
53208
 
        
53209
 
  
53210
 
  
53211
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53212
 
  
53213
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53214
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53215
 
    eval "LIBPATH$unique=set"
53216
 
    
53217
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53218
 
    LDFLAGS="$LDFLAGS -L$ai_p"
53219
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
53220
 
  
53221
 
  fi
53222
 
 
53223
 
 
53224
 
      fi
53225
 
    
53226
 
  fi
53227
 
 
53228
 
    fi
53229
 
  else
53230
 
    
53231
 
 
53232
 
  if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
53233
 
    
53234
 
  if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53235
 
    
53236
 
  if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53237
 
    ai_p=$GD_XPM_DIR/$PHP_LIBDIR
53238
 
  else
53239
 
    
53240
 
    ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53241
 
    
53242
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53243
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
53244
 
  fi
53245
 
 
53246
 
    
53247
 
      
53248
 
  
53249
 
  
53250
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53251
 
  
53252
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53253
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53254
 
    eval "LIBPATH$unique=set"
53255
 
    
53256
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53257
 
    LDFLAGS="$LDFLAGS -L$ai_p"
53258
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
53259
 
  
53260
 
  fi
53261
 
 
53262
 
 
53263
 
    
53264
 
  fi
53265
 
 
53266
 
  fi
53267
 
  
53268
 
  
53269
 
  case Xpm in
53270
 
  c|c_r|pthread*) ;;
53271
 
  *) 
53272
 
      LIBS="-lXpm $LIBS" 
53273
 
   ;;
53274
 
  esac
53275
 
 
53276
 
 
53277
 
 
53278
 
 
53279
 
  fi
53280
 
 
53281
 
 
53282
 
      
53283
 
 
53284
 
  if test "$ext_shared" = "yes"; then
53285
 
    GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
53286
 
    if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
53287
 
      
53288
 
  if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53289
 
    
53290
 
  if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53291
 
    ai_p=$GD_XPM_DIR/$PHP_LIBDIR
53292
 
  else
53293
 
    
53294
 
    ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53295
 
    
53296
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53297
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
53298
 
  fi
53299
 
 
53300
 
    
53301
 
      if test "$ext_shared" = "yes"; then
53302
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
53303
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
53304
 
      else
53305
 
        
53306
 
  
53307
 
  
53308
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53309
 
  
53310
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53311
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53312
 
    eval "LIBPATH$unique=set"
53313
 
    
53314
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53315
 
    LDFLAGS="$LDFLAGS -L$ai_p"
53316
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
53317
 
  
53318
 
  fi
53319
 
 
53320
 
 
53321
 
      fi
53322
 
    
53323
 
  fi
53324
 
 
53325
 
    fi
53326
 
  else
53327
 
    
53328
 
 
53329
 
  if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
53330
 
    
53331
 
  if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53332
 
    
53333
 
  if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53334
 
    ai_p=$GD_XPM_DIR/$PHP_LIBDIR
53335
 
  else
53336
 
    
53337
 
    ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53338
 
    
53339
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53340
 
    ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
53341
 
  fi
53342
 
 
53343
 
    
53344
 
      
53345
 
  
53346
 
  
53347
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53348
 
  
53349
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53350
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53351
 
    eval "LIBPATH$unique=set"
53352
 
    
53353
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53354
 
    LDFLAGS="$LDFLAGS -L$ai_p"
53355
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
53356
 
  
53357
 
  fi
53358
 
 
53359
 
 
53360
 
    
53361
 
  fi
53362
 
 
53363
 
  fi
53364
 
  
53365
 
  
53366
 
  case X11 in
53367
 
  c|c_r|pthread*) ;;
53368
 
  *) 
53369
 
      LIBS="-lX11 $LIBS" 
53370
 
   ;;
53371
 
  esac
53372
 
 
53373
 
 
53374
 
 
53375
 
 
53376
 
  fi
53377
 
 
53378
 
 
53379
 
    
53380
 
  
53381
 
else
53382
 
  
53383
 
    LDFLAGS=$save_old_LDFLAGS
53384
 
    ext_shared=$save_ext_shared
53385
 
    unset ac_cv_lib_Xpm_XpmFreeXpmImage
53386
 
    
53387
 
      { { $as_echo "$as_me:$LINENO: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." >&5
53388
 
$as_echo "$as_me: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." >&2;}
53389
 
   { (exit 1); exit 1; }; }
53390
 
    
53391
 
  
53392
 
fi
53393
 
 
53394
 
  else
53395
 
    { $as_echo "$as_me:$LINENO: result: If configure fails try --with-xpm-dir=<DIR>" >&5
53396
 
$as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
53397
 
  fi
53398
 
 
53399
 
  
53400
 
  if test "$PHP_FREETYPE_DIR" != "no"; then
53401
 
 
53402
 
    for i in $PHP_FREETYPE_DIR /usr/local /usr; do
53403
 
      if test -f "$i/include/freetype2/freetype/freetype.h"; then
53404
 
        FREETYPE2_DIR=$i
53405
 
        FREETYPE2_INC_DIR=$i/include/freetype2
53406
 
        break
53407
 
      fi
53408
 
    done
53409
 
 
53410
 
    if test -z "$FREETYPE2_DIR"; then
53411
 
      { { $as_echo "$as_me:$LINENO: error: freetype.h not found." >&5
53412
 
$as_echo "$as_me: error: freetype.h not found." >&2;}
53413
 
   { (exit 1); exit 1; }; }
53414
 
    fi
53415
 
 
53416
 
    
53417
 
  save_old_LDFLAGS=$LDFLAGS
53418
 
  ac_stuff="
53419
 
      -L$FREETYPE2_DIR/$PHP_LIBDIR
53420
 
    "
53421
 
  
53422
 
  save_ext_shared=$ext_shared
53423
 
  ext_shared=yes
53424
 
  
53425
 
  for ac_i in $ac_stuff; do
53426
 
    case $ac_i in
53427
 
    -pthread)
53428
 
      if test "$ext_shared" = "yes"; then
53429
 
        LDFLAGS="$LDFLAGS -pthread"
53430
 
      else
53431
 
        
53432
 
  
53433
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
53434
 
  
53435
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
53436
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53437
 
    eval "EXTRA_LDFLAGS$unique=set"
53438
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
53439
 
  fi
53440
 
 
53441
 
      fi
53442
 
    ;;
53443
 
    -l*)
53444
 
      ac_ii=`echo $ac_i|cut -c 3-`
53445
 
      
53446
 
  
53447
 
  case $ac_ii in
53448
 
  c|c_r|pthread*) ;;
53449
 
  *) 
53450
 
    if test "$ext_shared" = "yes"; then
53451
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
53452
 
    else
53453
 
      
53454
 
  
53455
 
  case $ac_ii in
53456
 
  c|c_r|pthread*) ;;
53457
 
  *) 
53458
 
      LIBS="$LIBS -l$ac_ii" 
53459
 
   ;;
53460
 
  esac
53461
 
 
53462
 
 
53463
 
    fi
53464
 
   ;;
53465
 
  esac
53466
 
 
53467
 
 
53468
 
    ;;
53469
 
    -L*)
53470
 
      ac_ii=`echo $ac_i|cut -c 3-`
53471
 
      
53472
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
53473
 
    
53474
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53475
 
    ai_p=$ac_ii
53476
 
  else
53477
 
    
53478
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
53479
 
    
53480
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53481
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
53482
 
  fi
53483
 
 
53484
 
    
53485
 
      if test "$ext_shared" = "yes"; then
53486
 
        LDFLAGS="-L$ai_p $LDFLAGS"
53487
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
53488
 
      else
53489
 
        
53490
 
  
53491
 
  
53492
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53493
 
  
53494
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53495
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53496
 
    eval "LIBPATH$unique=set"
53497
 
    
53498
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53499
 
    LDFLAGS="$LDFLAGS -L$ai_p"
53500
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
53501
 
  
53502
 
  fi
53503
 
 
53504
 
 
53505
 
      fi
53506
 
    
53507
 
  fi
53508
 
 
53509
 
    ;;
53510
 
    esac
53511
 
  done
53512
 
 
53513
 
  { $as_echo "$as_me:$LINENO: checking for FT_New_Face in -lfreetype" >&5
53514
 
$as_echo_n "checking for FT_New_Face in -lfreetype... " >&6; }
53515
 
if test "${ac_cv_lib_freetype_FT_New_Face+set}" = set; then
53516
 
  $as_echo_n "(cached) " >&6
53517
 
else
53518
 
  ac_check_lib_save_LIBS=$LIBS
53519
 
LIBS="-lfreetype  $LIBS"
53520
 
cat >conftest.$ac_ext <<_ACEOF
53521
 
/* confdefs.h.  */
53522
 
_ACEOF
53523
 
cat confdefs.h >>conftest.$ac_ext
53524
 
cat >>conftest.$ac_ext <<_ACEOF
53525
 
/* end confdefs.h.  */
53526
 
 
53527
 
/* Override any GCC internal prototype to avoid an error.
53528
 
   Use char because int might match the return type of a GCC
53529
 
   builtin and then its argument prototype would still apply.  */
53530
 
#ifdef __cplusplus
53531
 
extern "C"
53532
 
#endif
53533
 
char FT_New_Face ();
53534
 
int
53535
 
main ()
53536
 
{
53537
 
return FT_New_Face ();
53538
 
  ;
53539
 
  return 0;
53540
 
}
53541
 
_ACEOF
53542
 
rm -f conftest.$ac_objext conftest$ac_exeext
53543
 
if { (ac_try="$ac_link"
53544
 
case "(($ac_try" in
53545
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53546
 
  *) ac_try_echo=$ac_try;;
53547
 
esac
53548
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53549
 
$as_echo "$ac_try_echo") >&5
53550
 
  (eval "$ac_link") 2>conftest.er1
53551
 
  ac_status=$?
53552
 
  grep -v '^ *+' conftest.er1 >conftest.err
53553
 
  rm -f conftest.er1
53554
 
  cat conftest.err >&5
53555
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53556
 
  (exit $ac_status); } && {
53557
 
         test -z "$ac_c_werror_flag" ||
53558
 
         test ! -s conftest.err
53559
 
       } && test -s conftest$ac_exeext && {
53560
 
         test "$cross_compiling" = yes ||
53561
 
         $as_test_x conftest$ac_exeext
53562
 
       }; then
53563
 
  ac_cv_lib_freetype_FT_New_Face=yes
53564
 
else
53565
 
  $as_echo "$as_me: failed program was:" >&5
53566
 
sed 's/^/| /' conftest.$ac_ext >&5
53567
 
 
53568
 
        ac_cv_lib_freetype_FT_New_Face=no
53569
 
fi
53570
 
 
53571
 
rm -rf conftest.dSYM
53572
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53573
 
      conftest$ac_exeext conftest.$ac_ext
53574
 
LIBS=$ac_check_lib_save_LIBS
53575
 
fi
53576
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_New_Face" >&5
53577
 
$as_echo "$ac_cv_lib_freetype_FT_New_Face" >&6; }
53578
 
if test "x$ac_cv_lib_freetype_FT_New_Face" = x""yes; then
53579
 
  
53580
 
    LDFLAGS=$save_old_LDFLAGS
53581
 
    ext_shared=$save_ext_shared
53582
 
    
53583
 
      
53584
 
 
53585
 
  if test "$ext_shared" = "yes"; then
53586
 
    GD_SHARED_LIBADD="-lfreetype $GD_SHARED_LIBADD"
53587
 
    if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
53588
 
      
53589
 
  if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53590
 
    
53591
 
  if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53592
 
    ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
53593
 
  else
53594
 
    
53595
 
    ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53596
 
    
53597
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53598
 
    ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
53599
 
  fi
53600
 
 
53601
 
    
53602
 
      if test "$ext_shared" = "yes"; then
53603
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
53604
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
53605
 
      else
53606
 
        
53607
 
  
53608
 
  
53609
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53610
 
  
53611
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53612
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53613
 
    eval "LIBPATH$unique=set"
53614
 
    
53615
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53616
 
    LDFLAGS="$LDFLAGS -L$ai_p"
53617
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
53618
 
  
53619
 
  fi
53620
 
 
53621
 
 
53622
 
      fi
53623
 
    
53624
 
  fi
53625
 
 
53626
 
    fi
53627
 
  else
53628
 
    
53629
 
 
53630
 
  if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
53631
 
    
53632
 
  if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
53633
 
    
53634
 
  if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
53635
 
    ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
53636
 
  else
53637
 
    
53638
 
    ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53639
 
    
53640
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53641
 
    ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
53642
 
  fi
53643
 
 
53644
 
    
53645
 
      
53646
 
  
53647
 
  
53648
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53649
 
  
53650
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53651
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53652
 
    eval "LIBPATH$unique=set"
53653
 
    
53654
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53655
 
    LDFLAGS="$LDFLAGS -L$ai_p"
53656
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
53657
 
  
53658
 
  fi
53659
 
 
53660
 
 
53661
 
    
53662
 
  fi
53663
 
 
53664
 
  fi
53665
 
  
53666
 
  
53667
 
  case freetype in
53668
 
  c|c_r|pthread*) ;;
53669
 
  *) 
53670
 
      LIBS="-lfreetype $LIBS" 
53671
 
   ;;
53672
 
  esac
53673
 
 
53674
 
 
53675
 
 
53676
 
 
53677
 
  fi
53678
 
 
53679
 
 
53680
 
      
53681
 
  if test "$FREETYPE2_DIR/include" != "/usr/include"; then
53682
 
    
53683
 
  if test -z "$FREETYPE2_DIR/include" || echo "$FREETYPE2_DIR/include" | grep '^/' >/dev/null ; then
53684
 
    ai_p=$FREETYPE2_DIR/include
53685
 
  else
53686
 
    
53687
 
    ep_dir="`echo $FREETYPE2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
53688
 
    
53689
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53690
 
    ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/include\"`"
53691
 
  fi
53692
 
 
53693
 
    
53694
 
  
53695
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53696
 
  
53697
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
53698
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53699
 
    eval "INCLUDEPATH$unique=set"
53700
 
    
53701
 
      if test ""; then
53702
 
        INCLUDES="-I$ai_p $INCLUDES"
53703
 
      else
53704
 
        INCLUDES="$INCLUDES -I$ai_p"
53705
 
      fi
53706
 
    
53707
 
  fi
53708
 
 
53709
 
  fi
53710
 
 
53711
 
      
53712
 
  if test "$FREETYPE2_INC_DIR" != "/usr/include"; then
53713
 
    
53714
 
  if test -z "$FREETYPE2_INC_DIR" || echo "$FREETYPE2_INC_DIR" | grep '^/' >/dev/null ; then
53715
 
    ai_p=$FREETYPE2_INC_DIR
53716
 
  else
53717
 
    
53718
 
    ep_dir="`echo $FREETYPE2_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
53719
 
    
53720
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53721
 
    ai_p="$ep_realdir/`basename \"$FREETYPE2_INC_DIR\"`"
53722
 
  fi
53723
 
 
53724
 
    
53725
 
  
53726
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53727
 
  
53728
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
53729
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53730
 
    eval "INCLUDEPATH$unique=set"
53731
 
    
53732
 
      if test ""; then
53733
 
        INCLUDES="-I$ai_p $INCLUDES"
53734
 
      else
53735
 
        INCLUDES="$INCLUDES -I$ai_p"
53736
 
      fi
53737
 
    
53738
 
  fi
53739
 
 
53740
 
  fi
53741
 
 
53742
 
      
53743
 
cat >>confdefs.h <<\_ACEOF
53744
 
@%:@define USE_GD_IMGSTRTTF 1
53745
 
_ACEOF
53746
 
 
53747
 
      
53748
 
cat >>confdefs.h <<\_ACEOF
53749
 
@%:@define HAVE_LIBFREETYPE 1
53750
 
_ACEOF
53751
 
 
53752
 
      
53753
 
cat >>confdefs.h <<\_ACEOF
53754
 
@%:@define ENABLE_GD_TTF 1
53755
 
_ACEOF
53756
 
 
53757
 
    
53758
 
  
53759
 
else
53760
 
  
53761
 
    LDFLAGS=$save_old_LDFLAGS
53762
 
    ext_shared=$save_ext_shared
53763
 
    unset ac_cv_lib_freetype_FT_New_Face
53764
 
    
53765
 
      { { $as_echo "$as_me:$LINENO: error: Problem with freetype.(a|so). Please check config.log for more information." >&5
53766
 
$as_echo "$as_me: error: Problem with freetype.(a|so). Please check config.log for more information." >&2;}
53767
 
   { (exit 1); exit 1; }; }
53768
 
    
53769
 
  
53770
 
fi
53771
 
 
53772
 
  else
53773
 
    { $as_echo "$as_me:$LINENO: result: If configure fails try --with-freetype-dir=<DIR>" >&5
53774
 
$as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
53775
 
  fi
53776
 
 
53777
 
  
53778
 
  if test "$PHP_T1LIB" != "no"; then
53779
 
 
53780
 
    for i in $PHP_T1LIB /usr/local /usr; do
53781
 
      test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
53782
 
    done
53783
 
 
53784
 
    if test -z "$GD_T1_DIR"; then
53785
 
      { { $as_echo "$as_me:$LINENO: error: Your t1lib distribution is not installed correctly. Please reinstall it." >&5
53786
 
$as_echo "$as_me: error: Your t1lib distribution is not installed correctly. Please reinstall it." >&2;}
53787
 
   { (exit 1); exit 1; }; }
53788
 
    fi
53789
 
 
53790
 
    
53791
 
  save_old_LDFLAGS=$LDFLAGS
53792
 
  ac_stuff="
53793
 
      -L$GD_T1_DIR/$PHP_LIBDIR
53794
 
    "
53795
 
  
53796
 
  save_ext_shared=$ext_shared
53797
 
  ext_shared=yes
53798
 
  
53799
 
  for ac_i in $ac_stuff; do
53800
 
    case $ac_i in
53801
 
    -pthread)
53802
 
      if test "$ext_shared" = "yes"; then
53803
 
        LDFLAGS="$LDFLAGS -pthread"
53804
 
      else
53805
 
        
53806
 
  
53807
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
53808
 
  
53809
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
53810
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53811
 
    eval "EXTRA_LDFLAGS$unique=set"
53812
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
53813
 
  fi
53814
 
 
53815
 
      fi
53816
 
    ;;
53817
 
    -l*)
53818
 
      ac_ii=`echo $ac_i|cut -c 3-`
53819
 
      
53820
 
  
53821
 
  case $ac_ii in
53822
 
  c|c_r|pthread*) ;;
53823
 
  *) 
53824
 
    if test "$ext_shared" = "yes"; then
53825
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
53826
 
    else
53827
 
      
53828
 
  
53829
 
  case $ac_ii in
53830
 
  c|c_r|pthread*) ;;
53831
 
  *) 
53832
 
      LIBS="$LIBS -l$ac_ii" 
53833
 
   ;;
53834
 
  esac
53835
 
 
53836
 
 
53837
 
    fi
53838
 
   ;;
53839
 
  esac
53840
 
 
53841
 
 
53842
 
    ;;
53843
 
    -L*)
53844
 
      ac_ii=`echo $ac_i|cut -c 3-`
53845
 
      
53846
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
53847
 
    
53848
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53849
 
    ai_p=$ac_ii
53850
 
  else
53851
 
    
53852
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
53853
 
    
53854
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53855
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
53856
 
  fi
53857
 
 
53858
 
    
53859
 
      if test "$ext_shared" = "yes"; then
53860
 
        LDFLAGS="-L$ai_p $LDFLAGS"
53861
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
53862
 
      else
53863
 
        
53864
 
  
53865
 
  
53866
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53867
 
  
53868
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53869
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53870
 
    eval "LIBPATH$unique=set"
53871
 
    
53872
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53873
 
    LDFLAGS="$LDFLAGS -L$ai_p"
53874
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
53875
 
  
53876
 
  fi
53877
 
 
53878
 
 
53879
 
      fi
53880
 
    
53881
 
  fi
53882
 
 
53883
 
    ;;
53884
 
    esac
53885
 
  done
53886
 
 
53887
 
  { $as_echo "$as_me:$LINENO: checking for T1_StrError in -lt1" >&5
53888
 
$as_echo_n "checking for T1_StrError in -lt1... " >&6; }
53889
 
if test "${ac_cv_lib_t1_T1_StrError+set}" = set; then
53890
 
  $as_echo_n "(cached) " >&6
53891
 
else
53892
 
  ac_check_lib_save_LIBS=$LIBS
53893
 
LIBS="-lt1  $LIBS"
53894
 
cat >conftest.$ac_ext <<_ACEOF
53895
 
/* confdefs.h.  */
53896
 
_ACEOF
53897
 
cat confdefs.h >>conftest.$ac_ext
53898
 
cat >>conftest.$ac_ext <<_ACEOF
53899
 
/* end confdefs.h.  */
53900
 
 
53901
 
/* Override any GCC internal prototype to avoid an error.
53902
 
   Use char because int might match the return type of a GCC
53903
 
   builtin and then its argument prototype would still apply.  */
53904
 
#ifdef __cplusplus
53905
 
extern "C"
53906
 
#endif
53907
 
char T1_StrError ();
53908
 
int
53909
 
main ()
53910
 
{
53911
 
return T1_StrError ();
53912
 
  ;
53913
 
  return 0;
53914
 
}
53915
 
_ACEOF
53916
 
rm -f conftest.$ac_objext conftest$ac_exeext
53917
 
if { (ac_try="$ac_link"
53918
 
case "(($ac_try" in
53919
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53920
 
  *) ac_try_echo=$ac_try;;
53921
 
esac
53922
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53923
 
$as_echo "$ac_try_echo") >&5
53924
 
  (eval "$ac_link") 2>conftest.er1
53925
 
  ac_status=$?
53926
 
  grep -v '^ *+' conftest.er1 >conftest.err
53927
 
  rm -f conftest.er1
53928
 
  cat conftest.err >&5
53929
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53930
 
  (exit $ac_status); } && {
53931
 
         test -z "$ac_c_werror_flag" ||
53932
 
         test ! -s conftest.err
53933
 
       } && test -s conftest$ac_exeext && {
53934
 
         test "$cross_compiling" = yes ||
53935
 
         $as_test_x conftest$ac_exeext
53936
 
       }; then
53937
 
  ac_cv_lib_t1_T1_StrError=yes
53938
 
else
53939
 
  $as_echo "$as_me: failed program was:" >&5
53940
 
sed 's/^/| /' conftest.$ac_ext >&5
53941
 
 
53942
 
        ac_cv_lib_t1_T1_StrError=no
53943
 
fi
53944
 
 
53945
 
rm -rf conftest.dSYM
53946
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53947
 
      conftest$ac_exeext conftest.$ac_ext
53948
 
LIBS=$ac_check_lib_save_LIBS
53949
 
fi
53950
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_StrError" >&5
53951
 
$as_echo "$ac_cv_lib_t1_T1_StrError" >&6; }
53952
 
if test "x$ac_cv_lib_t1_T1_StrError" = x""yes; then
53953
 
  
53954
 
    LDFLAGS=$save_old_LDFLAGS
53955
 
    ext_shared=$save_ext_shared
53956
 
    
53957
 
      
53958
 
cat >>confdefs.h <<\_ACEOF
53959
 
@%:@define HAVE_LIBT1 1
53960
 
_ACEOF
53961
 
 
53962
 
      
53963
 
  if test "$GD_T1_DIR/include" != "/usr/include"; then
53964
 
    
53965
 
  if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
53966
 
    ai_p=$GD_T1_DIR/include
53967
 
  else
53968
 
    
53969
 
    ep_dir="`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
53970
 
    
53971
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53972
 
    ai_p="$ep_realdir/`basename \"$GD_T1_DIR/include\"`"
53973
 
  fi
53974
 
 
53975
 
    
53976
 
  
53977
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53978
 
  
53979
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
53980
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
53981
 
    eval "INCLUDEPATH$unique=set"
53982
 
    
53983
 
      if test ""; then
53984
 
        INCLUDES="-I$ai_p $INCLUDES"
53985
 
      else
53986
 
        INCLUDES="$INCLUDES -I$ai_p"
53987
 
      fi
53988
 
    
53989
 
  fi
53990
 
 
53991
 
  fi
53992
 
 
53993
 
      
53994
 
 
53995
 
  if test "$ext_shared" = "yes"; then
53996
 
    GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
53997
 
    if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
53998
 
      
53999
 
  if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
54000
 
    
54001
 
  if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
54002
 
    ai_p=$GD_T1_DIR/$PHP_LIBDIR
54003
 
  else
54004
 
    
54005
 
    ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
54006
 
    
54007
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54008
 
    ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
54009
 
  fi
54010
 
 
54011
 
    
54012
 
      if test "$ext_shared" = "yes"; then
54013
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
54014
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
54015
 
      else
54016
 
        
54017
 
  
54018
 
  
54019
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54020
 
  
54021
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54022
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54023
 
    eval "LIBPATH$unique=set"
54024
 
    
54025
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54026
 
    LDFLAGS="$LDFLAGS -L$ai_p"
54027
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
54028
 
  
54029
 
  fi
54030
 
 
54031
 
 
54032
 
      fi
54033
 
    
54034
 
  fi
54035
 
 
54036
 
    fi
54037
 
  else
54038
 
    
54039
 
 
54040
 
  if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
54041
 
    
54042
 
  if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
54043
 
    
54044
 
  if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
54045
 
    ai_p=$GD_T1_DIR/$PHP_LIBDIR
54046
 
  else
54047
 
    
54048
 
    ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
54049
 
    
54050
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54051
 
    ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
54052
 
  fi
54053
 
 
54054
 
    
54055
 
      
54056
 
  
54057
 
  
54058
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54059
 
  
54060
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54061
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54062
 
    eval "LIBPATH$unique=set"
54063
 
    
54064
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54065
 
    LDFLAGS="$LDFLAGS -L$ai_p"
54066
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
54067
 
  
54068
 
  fi
54069
 
 
54070
 
 
54071
 
    
54072
 
  fi
54073
 
 
54074
 
  fi
54075
 
  
54076
 
  
54077
 
  case t1 in
54078
 
  c|c_r|pthread*) ;;
54079
 
  *) 
54080
 
      LIBS="-lt1 $LIBS" 
54081
 
   ;;
54082
 
  esac
54083
 
 
54084
 
 
54085
 
 
54086
 
 
54087
 
  fi
54088
 
 
54089
 
 
54090
 
    
54091
 
  
54092
 
else
54093
 
  
54094
 
    LDFLAGS=$save_old_LDFLAGS
54095
 
    ext_shared=$save_ext_shared
54096
 
    unset ac_cv_lib_t1_T1_StrError
54097
 
    
54098
 
      { { $as_echo "$as_me:$LINENO: error: Problem with libt1.(a|so). Please check config.log for more information." >&5
54099
 
$as_echo "$as_me: error: Problem with libt1.(a|so). Please check config.log for more information." >&2;}
54100
 
   { (exit 1); exit 1; }; }
54101
 
    
54102
 
  
54103
 
fi
54104
 
 
54105
 
  fi
54106
 
 
54107
 
 
54108
 
  for i in include/gd1.3 include/gd include gd1.3 gd ""; do
54109
 
    test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i"
54110
 
  done
54111
 
 
54112
 
  for i in $PHP_LIBDIR/gd1.3 $PHP_LIBDIR/gd $PHP_LIBDIR gd1.3 gd ""; do
54113
 
    test -f "$PHP_GD/$i/libgd.$SHLIB_SUFFIX_NAME" || test -f "$PHP_GD/$i/libgd.a" && GD_LIB="$PHP_GD/$i"
54114
 
  done
54115
 
 
54116
 
  if test -n "$GD_INCLUDE" && test -n "$GD_LIB"; then
54117
 
    
54118
 
 
54119
 
  if test "$ext_shared" = "yes"; then
54120
 
    GD_SHARED_LIBADD="-lgd $GD_SHARED_LIBADD"
54121
 
    if test -n "$GD_LIB"; then
54122
 
      
54123
 
  if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
54124
 
    
54125
 
  if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
54126
 
    ai_p=$GD_LIB
54127
 
  else
54128
 
    
54129
 
    ep_dir="`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
54130
 
    
54131
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54132
 
    ai_p="$ep_realdir/`basename \"$GD_LIB\"`"
54133
 
  fi
54134
 
 
54135
 
    
54136
 
      if test "$ext_shared" = "yes"; then
54137
 
        GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
54138
 
        test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
54139
 
      else
54140
 
        
54141
 
  
54142
 
  
54143
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54144
 
  
54145
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54146
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54147
 
    eval "LIBPATH$unique=set"
54148
 
    
54149
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54150
 
    LDFLAGS="$LDFLAGS -L$ai_p"
54151
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
54152
 
  
54153
 
  fi
54154
 
 
54155
 
 
54156
 
      fi
54157
 
    
54158
 
  fi
54159
 
 
54160
 
    fi
54161
 
  else
54162
 
    
54163
 
 
54164
 
  if test -n "$GD_LIB"; then
54165
 
    
54166
 
  if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
54167
 
    
54168
 
  if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
54169
 
    ai_p=$GD_LIB
54170
 
  else
54171
 
    
54172
 
    ep_dir="`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
54173
 
    
54174
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54175
 
    ai_p="$ep_realdir/`basename \"$GD_LIB\"`"
54176
 
  fi
54177
 
 
54178
 
    
54179
 
      
54180
 
  
54181
 
  
54182
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54183
 
  
54184
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54185
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54186
 
    eval "LIBPATH$unique=set"
54187
 
    
54188
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54189
 
    LDFLAGS="$LDFLAGS -L$ai_p"
54190
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
54191
 
  
54192
 
  fi
54193
 
 
54194
 
 
54195
 
    
54196
 
  fi
54197
 
 
54198
 
  fi
54199
 
  
54200
 
  
54201
 
  case gd in
54202
 
  c|c_r|pthread*) ;;
54203
 
  *) 
54204
 
      LIBS="-lgd $LIBS" 
54205
 
   ;;
54206
 
  esac
54207
 
 
54208
 
 
54209
 
 
54210
 
 
54211
 
  fi
54212
 
 
54213
 
 
54214
 
    
54215
 
cat >>confdefs.h <<\_ACEOF
54216
 
@%:@define HAVE_LIBGD 1
54217
 
_ACEOF
54218
 
 
54219
 
    
54220
 
  
54221
 
  save_old_LDFLAGS=$LDFLAGS
54222
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54223
 
  
54224
 
  save_ext_shared=$ext_shared
54225
 
  ext_shared=yes
54226
 
  
54227
 
  for ac_i in $ac_stuff; do
54228
 
    case $ac_i in
54229
 
    -pthread)
54230
 
      if test "$ext_shared" = "yes"; then
54231
 
        LDFLAGS="$LDFLAGS -pthread"
54232
 
      else
54233
 
        
54234
 
  
54235
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54236
 
  
54237
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54238
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54239
 
    eval "EXTRA_LDFLAGS$unique=set"
54240
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54241
 
  fi
54242
 
 
54243
 
      fi
54244
 
    ;;
54245
 
    -l*)
54246
 
      ac_ii=`echo $ac_i|cut -c 3-`
54247
 
      
54248
 
  
54249
 
  case $ac_ii in
54250
 
  c|c_r|pthread*) ;;
54251
 
  *) 
54252
 
    if test "$ext_shared" = "yes"; then
54253
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
54254
 
    else
54255
 
      
54256
 
  
54257
 
  case $ac_ii in
54258
 
  c|c_r|pthread*) ;;
54259
 
  *) 
54260
 
      LIBS="$LIBS -l$ac_ii" 
54261
 
   ;;
54262
 
  esac
54263
 
 
54264
 
 
54265
 
    fi
54266
 
   ;;
54267
 
  esac
54268
 
 
54269
 
 
54270
 
    ;;
54271
 
    -L*)
54272
 
      ac_ii=`echo $ac_i|cut -c 3-`
54273
 
      
54274
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54275
 
    
54276
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54277
 
    ai_p=$ac_ii
54278
 
  else
54279
 
    
54280
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54281
 
    
54282
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54283
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54284
 
  fi
54285
 
 
54286
 
    
54287
 
      if test "$ext_shared" = "yes"; then
54288
 
        LDFLAGS="-L$ai_p $LDFLAGS"
54289
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54290
 
      else
54291
 
        
54292
 
  
54293
 
  
54294
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54295
 
  
54296
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54297
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54298
 
    eval "LIBPATH$unique=set"
54299
 
    
54300
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54301
 
    LDFLAGS="$LDFLAGS -L$ai_p"
54302
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
54303
 
  
54304
 
  fi
54305
 
 
54306
 
 
54307
 
      fi
54308
 
    
54309
 
  fi
54310
 
 
54311
 
    ;;
54312
 
    esac
54313
 
  done
54314
 
 
54315
 
  { $as_echo "$as_me:$LINENO: checking for gdImageString16 in -lgd" >&5
54316
 
$as_echo_n "checking for gdImageString16 in -lgd... " >&6; }
54317
 
if test "${ac_cv_lib_gd_gdImageString16+set}" = set; then
54318
 
  $as_echo_n "(cached) " >&6
54319
 
else
54320
 
  ac_check_lib_save_LIBS=$LIBS
54321
 
LIBS="-lgd  $LIBS"
54322
 
cat >conftest.$ac_ext <<_ACEOF
54323
 
/* confdefs.h.  */
54324
 
_ACEOF
54325
 
cat confdefs.h >>conftest.$ac_ext
54326
 
cat >>conftest.$ac_ext <<_ACEOF
54327
 
/* end confdefs.h.  */
54328
 
 
54329
 
/* Override any GCC internal prototype to avoid an error.
54330
 
   Use char because int might match the return type of a GCC
54331
 
   builtin and then its argument prototype would still apply.  */
54332
 
#ifdef __cplusplus
54333
 
extern "C"
54334
 
#endif
54335
 
char gdImageString16 ();
54336
 
int
54337
 
main ()
54338
 
{
54339
 
return gdImageString16 ();
54340
 
  ;
54341
 
  return 0;
54342
 
}
54343
 
_ACEOF
54344
 
rm -f conftest.$ac_objext conftest$ac_exeext
54345
 
if { (ac_try="$ac_link"
54346
 
case "(($ac_try" in
54347
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54348
 
  *) ac_try_echo=$ac_try;;
54349
 
esac
54350
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54351
 
$as_echo "$ac_try_echo") >&5
54352
 
  (eval "$ac_link") 2>conftest.er1
54353
 
  ac_status=$?
54354
 
  grep -v '^ *+' conftest.er1 >conftest.err
54355
 
  rm -f conftest.er1
54356
 
  cat conftest.err >&5
54357
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54358
 
  (exit $ac_status); } && {
54359
 
         test -z "$ac_c_werror_flag" ||
54360
 
         test ! -s conftest.err
54361
 
       } && test -s conftest$ac_exeext && {
54362
 
         test "$cross_compiling" = yes ||
54363
 
         $as_test_x conftest$ac_exeext
54364
 
       }; then
54365
 
  ac_cv_lib_gd_gdImageString16=yes
54366
 
else
54367
 
  $as_echo "$as_me: failed program was:" >&5
54368
 
sed 's/^/| /' conftest.$ac_ext >&5
54369
 
 
54370
 
        ac_cv_lib_gd_gdImageString16=no
54371
 
fi
54372
 
 
54373
 
rm -rf conftest.dSYM
54374
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54375
 
      conftest$ac_exeext conftest.$ac_ext
54376
 
LIBS=$ac_check_lib_save_LIBS
54377
 
fi
54378
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageString16" >&5
54379
 
$as_echo "$ac_cv_lib_gd_gdImageString16" >&6; }
54380
 
if test "x$ac_cv_lib_gd_gdImageString16" = x""yes; then
54381
 
  
54382
 
    LDFLAGS=$save_old_LDFLAGS
54383
 
    ext_shared=$save_ext_shared
54384
 
    
54385
 
cat >>confdefs.h <<\_ACEOF
54386
 
@%:@define HAVE_LIBGD13 1
54387
 
_ACEOF
54388
 
 
54389
 
  
54390
 
else
54391
 
  
54392
 
    LDFLAGS=$save_old_LDFLAGS
54393
 
    ext_shared=$save_ext_shared
54394
 
    unset ac_cv_lib_gd_gdImageString16
54395
 
    
54396
 
  
54397
 
fi
54398
 
 
54399
 
  
54400
 
  save_old_LDFLAGS=$LDFLAGS
54401
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54402
 
  
54403
 
  save_ext_shared=$ext_shared
54404
 
  ext_shared=yes
54405
 
  
54406
 
  for ac_i in $ac_stuff; do
54407
 
    case $ac_i in
54408
 
    -pthread)
54409
 
      if test "$ext_shared" = "yes"; then
54410
 
        LDFLAGS="$LDFLAGS -pthread"
54411
 
      else
54412
 
        
54413
 
  
54414
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54415
 
  
54416
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54417
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54418
 
    eval "EXTRA_LDFLAGS$unique=set"
54419
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54420
 
  fi
54421
 
 
54422
 
      fi
54423
 
    ;;
54424
 
    -l*)
54425
 
      ac_ii=`echo $ac_i|cut -c 3-`
54426
 
      
54427
 
  
54428
 
  case $ac_ii in
54429
 
  c|c_r|pthread*) ;;
54430
 
  *) 
54431
 
    if test "$ext_shared" = "yes"; then
54432
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
54433
 
    else
54434
 
      
54435
 
  
54436
 
  case $ac_ii in
54437
 
  c|c_r|pthread*) ;;
54438
 
  *) 
54439
 
      LIBS="$LIBS -l$ac_ii" 
54440
 
   ;;
54441
 
  esac
54442
 
 
54443
 
 
54444
 
    fi
54445
 
   ;;
54446
 
  esac
54447
 
 
54448
 
 
54449
 
    ;;
54450
 
    -L*)
54451
 
      ac_ii=`echo $ac_i|cut -c 3-`
54452
 
      
54453
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54454
 
    
54455
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54456
 
    ai_p=$ac_ii
54457
 
  else
54458
 
    
54459
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54460
 
    
54461
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54462
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54463
 
  fi
54464
 
 
54465
 
    
54466
 
      if test "$ext_shared" = "yes"; then
54467
 
        LDFLAGS="-L$ai_p $LDFLAGS"
54468
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54469
 
      else
54470
 
        
54471
 
  
54472
 
  
54473
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54474
 
  
54475
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54476
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54477
 
    eval "LIBPATH$unique=set"
54478
 
    
54479
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54480
 
    LDFLAGS="$LDFLAGS -L$ai_p"
54481
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
54482
 
  
54483
 
  fi
54484
 
 
54485
 
 
54486
 
      fi
54487
 
    
54488
 
  fi
54489
 
 
54490
 
    ;;
54491
 
    esac
54492
 
  done
54493
 
 
54494
 
  { $as_echo "$as_me:$LINENO: checking for gdImagePaletteCopy in -lgd" >&5
54495
 
$as_echo_n "checking for gdImagePaletteCopy in -lgd... " >&6; }
54496
 
if test "${ac_cv_lib_gd_gdImagePaletteCopy+set}" = set; then
54497
 
  $as_echo_n "(cached) " >&6
54498
 
else
54499
 
  ac_check_lib_save_LIBS=$LIBS
54500
 
LIBS="-lgd  $LIBS"
54501
 
cat >conftest.$ac_ext <<_ACEOF
54502
 
/* confdefs.h.  */
54503
 
_ACEOF
54504
 
cat confdefs.h >>conftest.$ac_ext
54505
 
cat >>conftest.$ac_ext <<_ACEOF
54506
 
/* end confdefs.h.  */
54507
 
 
54508
 
/* Override any GCC internal prototype to avoid an error.
54509
 
   Use char because int might match the return type of a GCC
54510
 
   builtin and then its argument prototype would still apply.  */
54511
 
#ifdef __cplusplus
54512
 
extern "C"
54513
 
#endif
54514
 
char gdImagePaletteCopy ();
54515
 
int
54516
 
main ()
54517
 
{
54518
 
return gdImagePaletteCopy ();
54519
 
  ;
54520
 
  return 0;
54521
 
}
54522
 
_ACEOF
54523
 
rm -f conftest.$ac_objext conftest$ac_exeext
54524
 
if { (ac_try="$ac_link"
54525
 
case "(($ac_try" in
54526
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54527
 
  *) ac_try_echo=$ac_try;;
54528
 
esac
54529
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54530
 
$as_echo "$ac_try_echo") >&5
54531
 
  (eval "$ac_link") 2>conftest.er1
54532
 
  ac_status=$?
54533
 
  grep -v '^ *+' conftest.er1 >conftest.err
54534
 
  rm -f conftest.er1
54535
 
  cat conftest.err >&5
54536
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54537
 
  (exit $ac_status); } && {
54538
 
         test -z "$ac_c_werror_flag" ||
54539
 
         test ! -s conftest.err
54540
 
       } && test -s conftest$ac_exeext && {
54541
 
         test "$cross_compiling" = yes ||
54542
 
         $as_test_x conftest$ac_exeext
54543
 
       }; then
54544
 
  ac_cv_lib_gd_gdImagePaletteCopy=yes
54545
 
else
54546
 
  $as_echo "$as_me: failed program was:" >&5
54547
 
sed 's/^/| /' conftest.$ac_ext >&5
54548
 
 
54549
 
        ac_cv_lib_gd_gdImagePaletteCopy=no
54550
 
fi
54551
 
 
54552
 
rm -rf conftest.dSYM
54553
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54554
 
      conftest$ac_exeext conftest.$ac_ext
54555
 
LIBS=$ac_check_lib_save_LIBS
54556
 
fi
54557
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePaletteCopy" >&5
54558
 
$as_echo "$ac_cv_lib_gd_gdImagePaletteCopy" >&6; }
54559
 
if test "x$ac_cv_lib_gd_gdImagePaletteCopy" = x""yes; then
54560
 
  
54561
 
    LDFLAGS=$save_old_LDFLAGS
54562
 
    ext_shared=$save_ext_shared
54563
 
    
54564
 
cat >>confdefs.h <<\_ACEOF
54565
 
@%:@define HAVE_LIBGD15 1
54566
 
_ACEOF
54567
 
 
54568
 
  
54569
 
else
54570
 
  
54571
 
    LDFLAGS=$save_old_LDFLAGS
54572
 
    ext_shared=$save_ext_shared
54573
 
    unset ac_cv_lib_gd_gdImagePaletteCopy
54574
 
    
54575
 
  
54576
 
fi
54577
 
 
54578
 
  
54579
 
  save_old_LDFLAGS=$LDFLAGS
54580
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54581
 
  
54582
 
  save_ext_shared=$ext_shared
54583
 
  ext_shared=yes
54584
 
  
54585
 
  for ac_i in $ac_stuff; do
54586
 
    case $ac_i in
54587
 
    -pthread)
54588
 
      if test "$ext_shared" = "yes"; then
54589
 
        LDFLAGS="$LDFLAGS -pthread"
54590
 
      else
54591
 
        
54592
 
  
54593
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54594
 
  
54595
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54596
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54597
 
    eval "EXTRA_LDFLAGS$unique=set"
54598
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54599
 
  fi
54600
 
 
54601
 
      fi
54602
 
    ;;
54603
 
    -l*)
54604
 
      ac_ii=`echo $ac_i|cut -c 3-`
54605
 
      
54606
 
  
54607
 
  case $ac_ii in
54608
 
  c|c_r|pthread*) ;;
54609
 
  *) 
54610
 
    if test "$ext_shared" = "yes"; then
54611
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
54612
 
    else
54613
 
      
54614
 
  
54615
 
  case $ac_ii in
54616
 
  c|c_r|pthread*) ;;
54617
 
  *) 
54618
 
      LIBS="$LIBS -l$ac_ii" 
54619
 
   ;;
54620
 
  esac
54621
 
 
54622
 
 
54623
 
    fi
54624
 
   ;;
54625
 
  esac
54626
 
 
54627
 
 
54628
 
    ;;
54629
 
    -L*)
54630
 
      ac_ii=`echo $ac_i|cut -c 3-`
54631
 
      
54632
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54633
 
    
54634
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54635
 
    ai_p=$ac_ii
54636
 
  else
54637
 
    
54638
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54639
 
    
54640
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54641
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54642
 
  fi
54643
 
 
54644
 
    
54645
 
      if test "$ext_shared" = "yes"; then
54646
 
        LDFLAGS="-L$ai_p $LDFLAGS"
54647
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54648
 
      else
54649
 
        
54650
 
  
54651
 
  
54652
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54653
 
  
54654
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54655
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54656
 
    eval "LIBPATH$unique=set"
54657
 
    
54658
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54659
 
    LDFLAGS="$LDFLAGS -L$ai_p"
54660
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
54661
 
  
54662
 
  fi
54663
 
 
54664
 
 
54665
 
      fi
54666
 
    
54667
 
  fi
54668
 
 
54669
 
    ;;
54670
 
    esac
54671
 
  done
54672
 
 
54673
 
  { $as_echo "$as_me:$LINENO: checking for gdImageCreateFromPng in -lgd" >&5
54674
 
$as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; }
54675
 
if test "${ac_cv_lib_gd_gdImageCreateFromPng+set}" = set; then
54676
 
  $as_echo_n "(cached) " >&6
54677
 
else
54678
 
  ac_check_lib_save_LIBS=$LIBS
54679
 
LIBS="-lgd  $LIBS"
54680
 
cat >conftest.$ac_ext <<_ACEOF
54681
 
/* confdefs.h.  */
54682
 
_ACEOF
54683
 
cat confdefs.h >>conftest.$ac_ext
54684
 
cat >>conftest.$ac_ext <<_ACEOF
54685
 
/* end confdefs.h.  */
54686
 
 
54687
 
/* Override any GCC internal prototype to avoid an error.
54688
 
   Use char because int might match the return type of a GCC
54689
 
   builtin and then its argument prototype would still apply.  */
54690
 
#ifdef __cplusplus
54691
 
extern "C"
54692
 
#endif
54693
 
char gdImageCreateFromPng ();
54694
 
int
54695
 
main ()
54696
 
{
54697
 
return gdImageCreateFromPng ();
54698
 
  ;
54699
 
  return 0;
54700
 
}
54701
 
_ACEOF
54702
 
rm -f conftest.$ac_objext conftest$ac_exeext
54703
 
if { (ac_try="$ac_link"
54704
 
case "(($ac_try" in
54705
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54706
 
  *) ac_try_echo=$ac_try;;
54707
 
esac
54708
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54709
 
$as_echo "$ac_try_echo") >&5
54710
 
  (eval "$ac_link") 2>conftest.er1
54711
 
  ac_status=$?
54712
 
  grep -v '^ *+' conftest.er1 >conftest.err
54713
 
  rm -f conftest.er1
54714
 
  cat conftest.err >&5
54715
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54716
 
  (exit $ac_status); } && {
54717
 
         test -z "$ac_c_werror_flag" ||
54718
 
         test ! -s conftest.err
54719
 
       } && test -s conftest$ac_exeext && {
54720
 
         test "$cross_compiling" = yes ||
54721
 
         $as_test_x conftest$ac_exeext
54722
 
       }; then
54723
 
  ac_cv_lib_gd_gdImageCreateFromPng=yes
54724
 
else
54725
 
  $as_echo "$as_me: failed program was:" >&5
54726
 
sed 's/^/| /' conftest.$ac_ext >&5
54727
 
 
54728
 
        ac_cv_lib_gd_gdImageCreateFromPng=no
54729
 
fi
54730
 
 
54731
 
rm -rf conftest.dSYM
54732
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54733
 
      conftest$ac_exeext conftest.$ac_ext
54734
 
LIBS=$ac_check_lib_save_LIBS
54735
 
fi
54736
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5
54737
 
$as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; }
54738
 
if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = x""yes; then
54739
 
  
54740
 
    LDFLAGS=$save_old_LDFLAGS
54741
 
    ext_shared=$save_ext_shared
54742
 
    
54743
 
cat >>confdefs.h <<\_ACEOF
54744
 
@%:@define HAVE_GD_PNG 1
54745
 
_ACEOF
54746
 
 
54747
 
  
54748
 
else
54749
 
  
54750
 
    LDFLAGS=$save_old_LDFLAGS
54751
 
    ext_shared=$save_ext_shared
54752
 
    unset ac_cv_lib_gd_gdImageCreateFromPng
54753
 
    
54754
 
  
54755
 
fi
54756
 
 
54757
 
  
54758
 
  save_old_LDFLAGS=$LDFLAGS
54759
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54760
 
  
54761
 
  save_ext_shared=$ext_shared
54762
 
  ext_shared=yes
54763
 
  
54764
 
  for ac_i in $ac_stuff; do
54765
 
    case $ac_i in
54766
 
    -pthread)
54767
 
      if test "$ext_shared" = "yes"; then
54768
 
        LDFLAGS="$LDFLAGS -pthread"
54769
 
      else
54770
 
        
54771
 
  
54772
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54773
 
  
54774
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54775
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54776
 
    eval "EXTRA_LDFLAGS$unique=set"
54777
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54778
 
  fi
54779
 
 
54780
 
      fi
54781
 
    ;;
54782
 
    -l*)
54783
 
      ac_ii=`echo $ac_i|cut -c 3-`
54784
 
      
54785
 
  
54786
 
  case $ac_ii in
54787
 
  c|c_r|pthread*) ;;
54788
 
  *) 
54789
 
    if test "$ext_shared" = "yes"; then
54790
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
54791
 
    else
54792
 
      
54793
 
  
54794
 
  case $ac_ii in
54795
 
  c|c_r|pthread*) ;;
54796
 
  *) 
54797
 
      LIBS="$LIBS -l$ac_ii" 
54798
 
   ;;
54799
 
  esac
54800
 
 
54801
 
 
54802
 
    fi
54803
 
   ;;
54804
 
  esac
54805
 
 
54806
 
 
54807
 
    ;;
54808
 
    -L*)
54809
 
      ac_ii=`echo $ac_i|cut -c 3-`
54810
 
      
54811
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54812
 
    
54813
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54814
 
    ai_p=$ac_ii
54815
 
  else
54816
 
    
54817
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54818
 
    
54819
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54820
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54821
 
  fi
54822
 
 
54823
 
    
54824
 
      if test "$ext_shared" = "yes"; then
54825
 
        LDFLAGS="-L$ai_p $LDFLAGS"
54826
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
54827
 
      else
54828
 
        
54829
 
  
54830
 
  
54831
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54832
 
  
54833
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54834
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54835
 
    eval "LIBPATH$unique=set"
54836
 
    
54837
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54838
 
    LDFLAGS="$LDFLAGS -L$ai_p"
54839
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
54840
 
  
54841
 
  fi
54842
 
 
54843
 
 
54844
 
      fi
54845
 
    
54846
 
  fi
54847
 
 
54848
 
    ;;
54849
 
    esac
54850
 
  done
54851
 
 
54852
 
  { $as_echo "$as_me:$LINENO: checking for gdImageCreateFromGif in -lgd" >&5
54853
 
$as_echo_n "checking for gdImageCreateFromGif in -lgd... " >&6; }
54854
 
if test "${ac_cv_lib_gd_gdImageCreateFromGif+set}" = set; then
54855
 
  $as_echo_n "(cached) " >&6
54856
 
else
54857
 
  ac_check_lib_save_LIBS=$LIBS
54858
 
LIBS="-lgd  $LIBS"
54859
 
cat >conftest.$ac_ext <<_ACEOF
54860
 
/* confdefs.h.  */
54861
 
_ACEOF
54862
 
cat confdefs.h >>conftest.$ac_ext
54863
 
cat >>conftest.$ac_ext <<_ACEOF
54864
 
/* end confdefs.h.  */
54865
 
 
54866
 
/* Override any GCC internal prototype to avoid an error.
54867
 
   Use char because int might match the return type of a GCC
54868
 
   builtin and then its argument prototype would still apply.  */
54869
 
#ifdef __cplusplus
54870
 
extern "C"
54871
 
#endif
54872
 
char gdImageCreateFromGif ();
54873
 
int
54874
 
main ()
54875
 
{
54876
 
return gdImageCreateFromGif ();
54877
 
  ;
54878
 
  return 0;
54879
 
}
54880
 
_ACEOF
54881
 
rm -f conftest.$ac_objext conftest$ac_exeext
54882
 
if { (ac_try="$ac_link"
54883
 
case "(($ac_try" in
54884
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54885
 
  *) ac_try_echo=$ac_try;;
54886
 
esac
54887
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54888
 
$as_echo "$ac_try_echo") >&5
54889
 
  (eval "$ac_link") 2>conftest.er1
54890
 
  ac_status=$?
54891
 
  grep -v '^ *+' conftest.er1 >conftest.err
54892
 
  rm -f conftest.er1
54893
 
  cat conftest.err >&5
54894
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54895
 
  (exit $ac_status); } && {
54896
 
         test -z "$ac_c_werror_flag" ||
54897
 
         test ! -s conftest.err
54898
 
       } && test -s conftest$ac_exeext && {
54899
 
         test "$cross_compiling" = yes ||
54900
 
         $as_test_x conftest$ac_exeext
54901
 
       }; then
54902
 
  ac_cv_lib_gd_gdImageCreateFromGif=yes
54903
 
else
54904
 
  $as_echo "$as_me: failed program was:" >&5
54905
 
sed 's/^/| /' conftest.$ac_ext >&5
54906
 
 
54907
 
        ac_cv_lib_gd_gdImageCreateFromGif=no
54908
 
fi
54909
 
 
54910
 
rm -rf conftest.dSYM
54911
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54912
 
      conftest$ac_exeext conftest.$ac_ext
54913
 
LIBS=$ac_check_lib_save_LIBS
54914
 
fi
54915
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromGif" >&5
54916
 
$as_echo "$ac_cv_lib_gd_gdImageCreateFromGif" >&6; }
54917
 
if test "x$ac_cv_lib_gd_gdImageCreateFromGif" = x""yes; then
54918
 
  
54919
 
    LDFLAGS=$save_old_LDFLAGS
54920
 
    ext_shared=$save_ext_shared
54921
 
    
54922
 
cat >>confdefs.h <<\_ACEOF
54923
 
@%:@define HAVE_GD_GIF_READ 1
54924
 
_ACEOF
54925
 
 
54926
 
  
54927
 
else
54928
 
  
54929
 
    LDFLAGS=$save_old_LDFLAGS
54930
 
    ext_shared=$save_ext_shared
54931
 
    unset ac_cv_lib_gd_gdImageCreateFromGif
54932
 
    
54933
 
  
54934
 
fi
54935
 
 
54936
 
  
54937
 
  save_old_LDFLAGS=$LDFLAGS
54938
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
54939
 
  
54940
 
  save_ext_shared=$ext_shared
54941
 
  ext_shared=yes
54942
 
  
54943
 
  for ac_i in $ac_stuff; do
54944
 
    case $ac_i in
54945
 
    -pthread)
54946
 
      if test "$ext_shared" = "yes"; then
54947
 
        LDFLAGS="$LDFLAGS -pthread"
54948
 
      else
54949
 
        
54950
 
  
54951
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54952
 
  
54953
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54954
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
54955
 
    eval "EXTRA_LDFLAGS$unique=set"
54956
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54957
 
  fi
54958
 
 
54959
 
      fi
54960
 
    ;;
54961
 
    -l*)
54962
 
      ac_ii=`echo $ac_i|cut -c 3-`
54963
 
      
54964
 
  
54965
 
  case $ac_ii in
54966
 
  c|c_r|pthread*) ;;
54967
 
  *) 
54968
 
    if test "$ext_shared" = "yes"; then
54969
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
54970
 
    else
54971
 
      
54972
 
  
54973
 
  case $ac_ii in
54974
 
  c|c_r|pthread*) ;;
54975
 
  *) 
54976
 
      LIBS="$LIBS -l$ac_ii" 
54977
 
   ;;
54978
 
  esac
54979
 
 
54980
 
 
54981
 
    fi
54982
 
   ;;
54983
 
  esac
54984
 
 
54985
 
 
54986
 
    ;;
54987
 
    -L*)
54988
 
      ac_ii=`echo $ac_i|cut -c 3-`
54989
 
      
54990
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54991
 
    
54992
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54993
 
    ai_p=$ac_ii
54994
 
  else
54995
 
    
54996
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54997
 
    
54998
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54999
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55000
 
  fi
55001
 
 
55002
 
    
55003
 
      if test "$ext_shared" = "yes"; then
55004
 
        LDFLAGS="-L$ai_p $LDFLAGS"
55005
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55006
 
      else
55007
 
        
55008
 
  
55009
 
  
55010
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55011
 
  
55012
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55013
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55014
 
    eval "LIBPATH$unique=set"
55015
 
    
55016
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55017
 
    LDFLAGS="$LDFLAGS -L$ai_p"
55018
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
55019
 
  
55020
 
  fi
55021
 
 
55022
 
 
55023
 
      fi
55024
 
    
55025
 
  fi
55026
 
 
55027
 
    ;;
55028
 
    esac
55029
 
  done
55030
 
 
55031
 
  { $as_echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5
55032
 
$as_echo_n "checking for gdImageGif in -lgd... " >&6; }
55033
 
if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then
55034
 
  $as_echo_n "(cached) " >&6
55035
 
else
55036
 
  ac_check_lib_save_LIBS=$LIBS
55037
 
LIBS="-lgd  $LIBS"
55038
 
cat >conftest.$ac_ext <<_ACEOF
55039
 
/* confdefs.h.  */
55040
 
_ACEOF
55041
 
cat confdefs.h >>conftest.$ac_ext
55042
 
cat >>conftest.$ac_ext <<_ACEOF
55043
 
/* end confdefs.h.  */
55044
 
 
55045
 
/* Override any GCC internal prototype to avoid an error.
55046
 
   Use char because int might match the return type of a GCC
55047
 
   builtin and then its argument prototype would still apply.  */
55048
 
#ifdef __cplusplus
55049
 
extern "C"
55050
 
#endif
55051
 
char gdImageGif ();
55052
 
int
55053
 
main ()
55054
 
{
55055
 
return gdImageGif ();
55056
 
  ;
55057
 
  return 0;
55058
 
}
55059
 
_ACEOF
55060
 
rm -f conftest.$ac_objext conftest$ac_exeext
55061
 
if { (ac_try="$ac_link"
55062
 
case "(($ac_try" in
55063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55064
 
  *) ac_try_echo=$ac_try;;
55065
 
esac
55066
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55067
 
$as_echo "$ac_try_echo") >&5
55068
 
  (eval "$ac_link") 2>conftest.er1
55069
 
  ac_status=$?
55070
 
  grep -v '^ *+' conftest.er1 >conftest.err
55071
 
  rm -f conftest.er1
55072
 
  cat conftest.err >&5
55073
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55074
 
  (exit $ac_status); } && {
55075
 
         test -z "$ac_c_werror_flag" ||
55076
 
         test ! -s conftest.err
55077
 
       } && test -s conftest$ac_exeext && {
55078
 
         test "$cross_compiling" = yes ||
55079
 
         $as_test_x conftest$ac_exeext
55080
 
       }; then
55081
 
  ac_cv_lib_gd_gdImageGif=yes
55082
 
else
55083
 
  $as_echo "$as_me: failed program was:" >&5
55084
 
sed 's/^/| /' conftest.$ac_ext >&5
55085
 
 
55086
 
        ac_cv_lib_gd_gdImageGif=no
55087
 
fi
55088
 
 
55089
 
rm -rf conftest.dSYM
55090
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55091
 
      conftest$ac_exeext conftest.$ac_ext
55092
 
LIBS=$ac_check_lib_save_LIBS
55093
 
fi
55094
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5
55095
 
$as_echo "$ac_cv_lib_gd_gdImageGif" >&6; }
55096
 
if test "x$ac_cv_lib_gd_gdImageGif" = x""yes; then
55097
 
  
55098
 
    LDFLAGS=$save_old_LDFLAGS
55099
 
    ext_shared=$save_ext_shared
55100
 
    
55101
 
cat >>confdefs.h <<\_ACEOF
55102
 
@%:@define HAVE_GD_GIF_CREATE 1
55103
 
_ACEOF
55104
 
 
55105
 
  
55106
 
else
55107
 
  
55108
 
    LDFLAGS=$save_old_LDFLAGS
55109
 
    ext_shared=$save_ext_shared
55110
 
    unset ac_cv_lib_gd_gdImageGif
55111
 
    
55112
 
  
55113
 
fi
55114
 
 
55115
 
  
55116
 
  save_old_LDFLAGS=$LDFLAGS
55117
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
55118
 
  
55119
 
  save_ext_shared=$ext_shared
55120
 
  ext_shared=yes
55121
 
  
55122
 
  for ac_i in $ac_stuff; do
55123
 
    case $ac_i in
55124
 
    -pthread)
55125
 
      if test "$ext_shared" = "yes"; then
55126
 
        LDFLAGS="$LDFLAGS -pthread"
55127
 
      else
55128
 
        
55129
 
  
55130
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
55131
 
  
55132
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
55133
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55134
 
    eval "EXTRA_LDFLAGS$unique=set"
55135
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
55136
 
  fi
55137
 
 
55138
 
      fi
55139
 
    ;;
55140
 
    -l*)
55141
 
      ac_ii=`echo $ac_i|cut -c 3-`
55142
 
      
55143
 
  
55144
 
  case $ac_ii in
55145
 
  c|c_r|pthread*) ;;
55146
 
  *) 
55147
 
    if test "$ext_shared" = "yes"; then
55148
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
55149
 
    else
55150
 
      
55151
 
  
55152
 
  case $ac_ii in
55153
 
  c|c_r|pthread*) ;;
55154
 
  *) 
55155
 
      LIBS="$LIBS -l$ac_ii" 
55156
 
   ;;
55157
 
  esac
55158
 
 
55159
 
 
55160
 
    fi
55161
 
   ;;
55162
 
  esac
55163
 
 
55164
 
 
55165
 
    ;;
55166
 
    -L*)
55167
 
      ac_ii=`echo $ac_i|cut -c 3-`
55168
 
      
55169
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
55170
 
    
55171
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
55172
 
    ai_p=$ac_ii
55173
 
  else
55174
 
    
55175
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
55176
 
    
55177
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
55178
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55179
 
  fi
55180
 
 
55181
 
    
55182
 
      if test "$ext_shared" = "yes"; then
55183
 
        LDFLAGS="-L$ai_p $LDFLAGS"
55184
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55185
 
      else
55186
 
        
55187
 
  
55188
 
  
55189
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55190
 
  
55191
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55192
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55193
 
    eval "LIBPATH$unique=set"
55194
 
    
55195
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55196
 
    LDFLAGS="$LDFLAGS -L$ai_p"
55197
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
55198
 
  
55199
 
  fi
55200
 
 
55201
 
 
55202
 
      fi
55203
 
    
55204
 
  fi
55205
 
 
55206
 
    ;;
55207
 
    esac
55208
 
  done
55209
 
 
55210
 
  { $as_echo "$as_me:$LINENO: checking for gdImageWBMP in -lgd" >&5
55211
 
$as_echo_n "checking for gdImageWBMP in -lgd... " >&6; }
55212
 
if test "${ac_cv_lib_gd_gdImageWBMP+set}" = set; then
55213
 
  $as_echo_n "(cached) " >&6
55214
 
else
55215
 
  ac_check_lib_save_LIBS=$LIBS
55216
 
LIBS="-lgd  $LIBS"
55217
 
cat >conftest.$ac_ext <<_ACEOF
55218
 
/* confdefs.h.  */
55219
 
_ACEOF
55220
 
cat confdefs.h >>conftest.$ac_ext
55221
 
cat >>conftest.$ac_ext <<_ACEOF
55222
 
/* end confdefs.h.  */
55223
 
 
55224
 
/* Override any GCC internal prototype to avoid an error.
55225
 
   Use char because int might match the return type of a GCC
55226
 
   builtin and then its argument prototype would still apply.  */
55227
 
#ifdef __cplusplus
55228
 
extern "C"
55229
 
#endif
55230
 
char gdImageWBMP ();
55231
 
int
55232
 
main ()
55233
 
{
55234
 
return gdImageWBMP ();
55235
 
  ;
55236
 
  return 0;
55237
 
}
55238
 
_ACEOF
55239
 
rm -f conftest.$ac_objext conftest$ac_exeext
55240
 
if { (ac_try="$ac_link"
55241
 
case "(($ac_try" in
55242
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55243
 
  *) ac_try_echo=$ac_try;;
55244
 
esac
55245
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55246
 
$as_echo "$ac_try_echo") >&5
55247
 
  (eval "$ac_link") 2>conftest.er1
55248
 
  ac_status=$?
55249
 
  grep -v '^ *+' conftest.er1 >conftest.err
55250
 
  rm -f conftest.er1
55251
 
  cat conftest.err >&5
55252
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55253
 
  (exit $ac_status); } && {
55254
 
         test -z "$ac_c_werror_flag" ||
55255
 
         test ! -s conftest.err
55256
 
       } && test -s conftest$ac_exeext && {
55257
 
         test "$cross_compiling" = yes ||
55258
 
         $as_test_x conftest$ac_exeext
55259
 
       }; then
55260
 
  ac_cv_lib_gd_gdImageWBMP=yes
55261
 
else
55262
 
  $as_echo "$as_me: failed program was:" >&5
55263
 
sed 's/^/| /' conftest.$ac_ext >&5
55264
 
 
55265
 
        ac_cv_lib_gd_gdImageWBMP=no
55266
 
fi
55267
 
 
55268
 
rm -rf conftest.dSYM
55269
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55270
 
      conftest$ac_exeext conftest.$ac_ext
55271
 
LIBS=$ac_check_lib_save_LIBS
55272
 
fi
55273
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageWBMP" >&5
55274
 
$as_echo "$ac_cv_lib_gd_gdImageWBMP" >&6; }
55275
 
if test "x$ac_cv_lib_gd_gdImageWBMP" = x""yes; then
55276
 
  
55277
 
    LDFLAGS=$save_old_LDFLAGS
55278
 
    ext_shared=$save_ext_shared
55279
 
    
55280
 
cat >>confdefs.h <<\_ACEOF
55281
 
@%:@define HAVE_GD_WBMP 1
55282
 
_ACEOF
55283
 
 
55284
 
  
55285
 
else
55286
 
  
55287
 
    LDFLAGS=$save_old_LDFLAGS
55288
 
    ext_shared=$save_ext_shared
55289
 
    unset ac_cv_lib_gd_gdImageWBMP
55290
 
    
55291
 
  
55292
 
fi
55293
 
 
55294
 
  
55295
 
  save_old_LDFLAGS=$LDFLAGS
55296
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
55297
 
  
55298
 
  save_ext_shared=$ext_shared
55299
 
  ext_shared=yes
55300
 
  
55301
 
  for ac_i in $ac_stuff; do
55302
 
    case $ac_i in
55303
 
    -pthread)
55304
 
      if test "$ext_shared" = "yes"; then
55305
 
        LDFLAGS="$LDFLAGS -pthread"
55306
 
      else
55307
 
        
55308
 
  
55309
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
55310
 
  
55311
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
55312
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55313
 
    eval "EXTRA_LDFLAGS$unique=set"
55314
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
55315
 
  fi
55316
 
 
55317
 
      fi
55318
 
    ;;
55319
 
    -l*)
55320
 
      ac_ii=`echo $ac_i|cut -c 3-`
55321
 
      
55322
 
  
55323
 
  case $ac_ii in
55324
 
  c|c_r|pthread*) ;;
55325
 
  *) 
55326
 
    if test "$ext_shared" = "yes"; then
55327
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
55328
 
    else
55329
 
      
55330
 
  
55331
 
  case $ac_ii in
55332
 
  c|c_r|pthread*) ;;
55333
 
  *) 
55334
 
      LIBS="$LIBS -l$ac_ii" 
55335
 
   ;;
55336
 
  esac
55337
 
 
55338
 
 
55339
 
    fi
55340
 
   ;;
55341
 
  esac
55342
 
 
55343
 
 
55344
 
    ;;
55345
 
    -L*)
55346
 
      ac_ii=`echo $ac_i|cut -c 3-`
55347
 
      
55348
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
55349
 
    
55350
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
55351
 
    ai_p=$ac_ii
55352
 
  else
55353
 
    
55354
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
55355
 
    
55356
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
55357
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55358
 
  fi
55359
 
 
55360
 
    
55361
 
      if test "$ext_shared" = "yes"; then
55362
 
        LDFLAGS="-L$ai_p $LDFLAGS"
55363
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55364
 
      else
55365
 
        
55366
 
  
55367
 
  
55368
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55369
 
  
55370
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55371
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55372
 
    eval "LIBPATH$unique=set"
55373
 
    
55374
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55375
 
    LDFLAGS="$LDFLAGS -L$ai_p"
55376
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
55377
 
  
55378
 
  fi
55379
 
 
55380
 
 
55381
 
      fi
55382
 
    
55383
 
  fi
55384
 
 
55385
 
    ;;
55386
 
    esac
55387
 
  done
55388
 
 
55389
 
  { $as_echo "$as_me:$LINENO: checking for gdImageCreateFromJpeg in -lgd" >&5
55390
 
$as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; }
55391
 
if test "${ac_cv_lib_gd_gdImageCreateFromJpeg+set}" = set; then
55392
 
  $as_echo_n "(cached) " >&6
55393
 
else
55394
 
  ac_check_lib_save_LIBS=$LIBS
55395
 
LIBS="-lgd  $LIBS"
55396
 
cat >conftest.$ac_ext <<_ACEOF
55397
 
/* confdefs.h.  */
55398
 
_ACEOF
55399
 
cat confdefs.h >>conftest.$ac_ext
55400
 
cat >>conftest.$ac_ext <<_ACEOF
55401
 
/* end confdefs.h.  */
55402
 
 
55403
 
/* Override any GCC internal prototype to avoid an error.
55404
 
   Use char because int might match the return type of a GCC
55405
 
   builtin and then its argument prototype would still apply.  */
55406
 
#ifdef __cplusplus
55407
 
extern "C"
55408
 
#endif
55409
 
char gdImageCreateFromJpeg ();
55410
 
int
55411
 
main ()
55412
 
{
55413
 
return gdImageCreateFromJpeg ();
55414
 
  ;
55415
 
  return 0;
55416
 
}
55417
 
_ACEOF
55418
 
rm -f conftest.$ac_objext conftest$ac_exeext
55419
 
if { (ac_try="$ac_link"
55420
 
case "(($ac_try" in
55421
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55422
 
  *) ac_try_echo=$ac_try;;
55423
 
esac
55424
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55425
 
$as_echo "$ac_try_echo") >&5
55426
 
  (eval "$ac_link") 2>conftest.er1
55427
 
  ac_status=$?
55428
 
  grep -v '^ *+' conftest.er1 >conftest.err
55429
 
  rm -f conftest.er1
55430
 
  cat conftest.err >&5
55431
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55432
 
  (exit $ac_status); } && {
55433
 
         test -z "$ac_c_werror_flag" ||
55434
 
         test ! -s conftest.err
55435
 
       } && test -s conftest$ac_exeext && {
55436
 
         test "$cross_compiling" = yes ||
55437
 
         $as_test_x conftest$ac_exeext
55438
 
       }; then
55439
 
  ac_cv_lib_gd_gdImageCreateFromJpeg=yes
55440
 
else
55441
 
  $as_echo "$as_me: failed program was:" >&5
55442
 
sed 's/^/| /' conftest.$ac_ext >&5
55443
 
 
55444
 
        ac_cv_lib_gd_gdImageCreateFromJpeg=no
55445
 
fi
55446
 
 
55447
 
rm -rf conftest.dSYM
55448
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55449
 
      conftest$ac_exeext conftest.$ac_ext
55450
 
LIBS=$ac_check_lib_save_LIBS
55451
 
fi
55452
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5
55453
 
$as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; }
55454
 
if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = x""yes; then
55455
 
  
55456
 
    LDFLAGS=$save_old_LDFLAGS
55457
 
    ext_shared=$save_ext_shared
55458
 
    
55459
 
cat >>confdefs.h <<\_ACEOF
55460
 
@%:@define HAVE_GD_JPG 1
55461
 
_ACEOF
55462
 
 
55463
 
  
55464
 
else
55465
 
  
55466
 
    LDFLAGS=$save_old_LDFLAGS
55467
 
    ext_shared=$save_ext_shared
55468
 
    unset ac_cv_lib_gd_gdImageCreateFromJpeg
55469
 
    
55470
 
  
55471
 
fi
55472
 
 
55473
 
  
55474
 
  save_old_LDFLAGS=$LDFLAGS
55475
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
55476
 
  
55477
 
  save_ext_shared=$ext_shared
55478
 
  ext_shared=yes
55479
 
  
55480
 
  for ac_i in $ac_stuff; do
55481
 
    case $ac_i in
55482
 
    -pthread)
55483
 
      if test "$ext_shared" = "yes"; then
55484
 
        LDFLAGS="$LDFLAGS -pthread"
55485
 
      else
55486
 
        
55487
 
  
55488
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
55489
 
  
55490
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
55491
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55492
 
    eval "EXTRA_LDFLAGS$unique=set"
55493
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
55494
 
  fi
55495
 
 
55496
 
      fi
55497
 
    ;;
55498
 
    -l*)
55499
 
      ac_ii=`echo $ac_i|cut -c 3-`
55500
 
      
55501
 
  
55502
 
  case $ac_ii in
55503
 
  c|c_r|pthread*) ;;
55504
 
  *) 
55505
 
    if test "$ext_shared" = "yes"; then
55506
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
55507
 
    else
55508
 
      
55509
 
  
55510
 
  case $ac_ii in
55511
 
  c|c_r|pthread*) ;;
55512
 
  *) 
55513
 
      LIBS="$LIBS -l$ac_ii" 
55514
 
   ;;
55515
 
  esac
55516
 
 
55517
 
 
55518
 
    fi
55519
 
   ;;
55520
 
  esac
55521
 
 
55522
 
 
55523
 
    ;;
55524
 
    -L*)
55525
 
      ac_ii=`echo $ac_i|cut -c 3-`
55526
 
      
55527
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
55528
 
    
55529
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
55530
 
    ai_p=$ac_ii
55531
 
  else
55532
 
    
55533
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
55534
 
    
55535
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
55536
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55537
 
  fi
55538
 
 
55539
 
    
55540
 
      if test "$ext_shared" = "yes"; then
55541
 
        LDFLAGS="-L$ai_p $LDFLAGS"
55542
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55543
 
      else
55544
 
        
55545
 
  
55546
 
  
55547
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55548
 
  
55549
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55550
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55551
 
    eval "LIBPATH$unique=set"
55552
 
    
55553
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55554
 
    LDFLAGS="$LDFLAGS -L$ai_p"
55555
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
55556
 
  
55557
 
  fi
55558
 
 
55559
 
 
55560
 
      fi
55561
 
    
55562
 
  fi
55563
 
 
55564
 
    ;;
55565
 
    esac
55566
 
  done
55567
 
 
55568
 
  { $as_echo "$as_me:$LINENO: checking for gdImageCreateFromXpm in -lgd" >&5
55569
 
$as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; }
55570
 
if test "${ac_cv_lib_gd_gdImageCreateFromXpm+set}" = set; then
55571
 
  $as_echo_n "(cached) " >&6
55572
 
else
55573
 
  ac_check_lib_save_LIBS=$LIBS
55574
 
LIBS="-lgd  $LIBS"
55575
 
cat >conftest.$ac_ext <<_ACEOF
55576
 
/* confdefs.h.  */
55577
 
_ACEOF
55578
 
cat confdefs.h >>conftest.$ac_ext
55579
 
cat >>conftest.$ac_ext <<_ACEOF
55580
 
/* end confdefs.h.  */
55581
 
 
55582
 
/* Override any GCC internal prototype to avoid an error.
55583
 
   Use char because int might match the return type of a GCC
55584
 
   builtin and then its argument prototype would still apply.  */
55585
 
#ifdef __cplusplus
55586
 
extern "C"
55587
 
#endif
55588
 
char gdImageCreateFromXpm ();
55589
 
int
55590
 
main ()
55591
 
{
55592
 
return gdImageCreateFromXpm ();
55593
 
  ;
55594
 
  return 0;
55595
 
}
55596
 
_ACEOF
55597
 
rm -f conftest.$ac_objext conftest$ac_exeext
55598
 
if { (ac_try="$ac_link"
55599
 
case "(($ac_try" in
55600
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55601
 
  *) ac_try_echo=$ac_try;;
55602
 
esac
55603
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55604
 
$as_echo "$ac_try_echo") >&5
55605
 
  (eval "$ac_link") 2>conftest.er1
55606
 
  ac_status=$?
55607
 
  grep -v '^ *+' conftest.er1 >conftest.err
55608
 
  rm -f conftest.er1
55609
 
  cat conftest.err >&5
55610
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55611
 
  (exit $ac_status); } && {
55612
 
         test -z "$ac_c_werror_flag" ||
55613
 
         test ! -s conftest.err
55614
 
       } && test -s conftest$ac_exeext && {
55615
 
         test "$cross_compiling" = yes ||
55616
 
         $as_test_x conftest$ac_exeext
55617
 
       }; then
55618
 
  ac_cv_lib_gd_gdImageCreateFromXpm=yes
55619
 
else
55620
 
  $as_echo "$as_me: failed program was:" >&5
55621
 
sed 's/^/| /' conftest.$ac_ext >&5
55622
 
 
55623
 
        ac_cv_lib_gd_gdImageCreateFromXpm=no
55624
 
fi
55625
 
 
55626
 
rm -rf conftest.dSYM
55627
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55628
 
      conftest$ac_exeext conftest.$ac_ext
55629
 
LIBS=$ac_check_lib_save_LIBS
55630
 
fi
55631
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5
55632
 
$as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; }
55633
 
if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = x""yes; then
55634
 
  
55635
 
    LDFLAGS=$save_old_LDFLAGS
55636
 
    ext_shared=$save_ext_shared
55637
 
    
55638
 
cat >>confdefs.h <<\_ACEOF
55639
 
@%:@define HAVE_GD_XPM 1
55640
 
_ACEOF
55641
 
 
55642
 
  
55643
 
else
55644
 
  
55645
 
    LDFLAGS=$save_old_LDFLAGS
55646
 
    ext_shared=$save_ext_shared
55647
 
    unset ac_cv_lib_gd_gdImageCreateFromXpm
55648
 
    
55649
 
  
55650
 
fi
55651
 
 
55652
 
  
55653
 
  save_old_LDFLAGS=$LDFLAGS
55654
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
55655
 
  
55656
 
  save_ext_shared=$ext_shared
55657
 
  ext_shared=yes
55658
 
  
55659
 
  for ac_i in $ac_stuff; do
55660
 
    case $ac_i in
55661
 
    -pthread)
55662
 
      if test "$ext_shared" = "yes"; then
55663
 
        LDFLAGS="$LDFLAGS -pthread"
55664
 
      else
55665
 
        
55666
 
  
55667
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
55668
 
  
55669
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
55670
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55671
 
    eval "EXTRA_LDFLAGS$unique=set"
55672
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
55673
 
  fi
55674
 
 
55675
 
      fi
55676
 
    ;;
55677
 
    -l*)
55678
 
      ac_ii=`echo $ac_i|cut -c 3-`
55679
 
      
55680
 
  
55681
 
  case $ac_ii in
55682
 
  c|c_r|pthread*) ;;
55683
 
  *) 
55684
 
    if test "$ext_shared" = "yes"; then
55685
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
55686
 
    else
55687
 
      
55688
 
  
55689
 
  case $ac_ii in
55690
 
  c|c_r|pthread*) ;;
55691
 
  *) 
55692
 
      LIBS="$LIBS -l$ac_ii" 
55693
 
   ;;
55694
 
  esac
55695
 
 
55696
 
 
55697
 
    fi
55698
 
   ;;
55699
 
  esac
55700
 
 
55701
 
 
55702
 
    ;;
55703
 
    -L*)
55704
 
      ac_ii=`echo $ac_i|cut -c 3-`
55705
 
      
55706
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
55707
 
    
55708
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
55709
 
    ai_p=$ac_ii
55710
 
  else
55711
 
    
55712
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
55713
 
    
55714
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
55715
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55716
 
  fi
55717
 
 
55718
 
    
55719
 
      if test "$ext_shared" = "yes"; then
55720
 
        LDFLAGS="-L$ai_p $LDFLAGS"
55721
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55722
 
      else
55723
 
        
55724
 
  
55725
 
  
55726
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55727
 
  
55728
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55729
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55730
 
    eval "LIBPATH$unique=set"
55731
 
    
55732
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55733
 
    LDFLAGS="$LDFLAGS -L$ai_p"
55734
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
55735
 
  
55736
 
  fi
55737
 
 
55738
 
 
55739
 
      fi
55740
 
    
55741
 
  fi
55742
 
 
55743
 
    ;;
55744
 
    esac
55745
 
  done
55746
 
 
55747
 
  { $as_echo "$as_me:$LINENO: checking for gdImageCreateFromGd2 in -lgd" >&5
55748
 
$as_echo_n "checking for gdImageCreateFromGd2 in -lgd... " >&6; }
55749
 
if test "${ac_cv_lib_gd_gdImageCreateFromGd2+set}" = set; then
55750
 
  $as_echo_n "(cached) " >&6
55751
 
else
55752
 
  ac_check_lib_save_LIBS=$LIBS
55753
 
LIBS="-lgd  $LIBS"
55754
 
cat >conftest.$ac_ext <<_ACEOF
55755
 
/* confdefs.h.  */
55756
 
_ACEOF
55757
 
cat confdefs.h >>conftest.$ac_ext
55758
 
cat >>conftest.$ac_ext <<_ACEOF
55759
 
/* end confdefs.h.  */
55760
 
 
55761
 
/* Override any GCC internal prototype to avoid an error.
55762
 
   Use char because int might match the return type of a GCC
55763
 
   builtin and then its argument prototype would still apply.  */
55764
 
#ifdef __cplusplus
55765
 
extern "C"
55766
 
#endif
55767
 
char gdImageCreateFromGd2 ();
55768
 
int
55769
 
main ()
55770
 
{
55771
 
return gdImageCreateFromGd2 ();
55772
 
  ;
55773
 
  return 0;
55774
 
}
55775
 
_ACEOF
55776
 
rm -f conftest.$ac_objext conftest$ac_exeext
55777
 
if { (ac_try="$ac_link"
55778
 
case "(($ac_try" in
55779
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55780
 
  *) ac_try_echo=$ac_try;;
55781
 
esac
55782
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55783
 
$as_echo "$ac_try_echo") >&5
55784
 
  (eval "$ac_link") 2>conftest.er1
55785
 
  ac_status=$?
55786
 
  grep -v '^ *+' conftest.er1 >conftest.err
55787
 
  rm -f conftest.er1
55788
 
  cat conftest.err >&5
55789
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55790
 
  (exit $ac_status); } && {
55791
 
         test -z "$ac_c_werror_flag" ||
55792
 
         test ! -s conftest.err
55793
 
       } && test -s conftest$ac_exeext && {
55794
 
         test "$cross_compiling" = yes ||
55795
 
         $as_test_x conftest$ac_exeext
55796
 
       }; then
55797
 
  ac_cv_lib_gd_gdImageCreateFromGd2=yes
55798
 
else
55799
 
  $as_echo "$as_me: failed program was:" >&5
55800
 
sed 's/^/| /' conftest.$ac_ext >&5
55801
 
 
55802
 
        ac_cv_lib_gd_gdImageCreateFromGd2=no
55803
 
fi
55804
 
 
55805
 
rm -rf conftest.dSYM
55806
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55807
 
      conftest$ac_exeext conftest.$ac_ext
55808
 
LIBS=$ac_check_lib_save_LIBS
55809
 
fi
55810
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromGd2" >&5
55811
 
$as_echo "$ac_cv_lib_gd_gdImageCreateFromGd2" >&6; }
55812
 
if test "x$ac_cv_lib_gd_gdImageCreateFromGd2" = x""yes; then
55813
 
  
55814
 
    LDFLAGS=$save_old_LDFLAGS
55815
 
    ext_shared=$save_ext_shared
55816
 
    
55817
 
cat >>confdefs.h <<\_ACEOF
55818
 
@%:@define HAVE_GD_GD2 1
55819
 
_ACEOF
55820
 
 
55821
 
  
55822
 
else
55823
 
  
55824
 
    LDFLAGS=$save_old_LDFLAGS
55825
 
    ext_shared=$save_ext_shared
55826
 
    unset ac_cv_lib_gd_gdImageCreateFromGd2
55827
 
    
55828
 
  
55829
 
fi
55830
 
 
55831
 
  
55832
 
  save_old_LDFLAGS=$LDFLAGS
55833
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
55834
 
  
55835
 
  save_ext_shared=$ext_shared
55836
 
  ext_shared=yes
55837
 
  
55838
 
  for ac_i in $ac_stuff; do
55839
 
    case $ac_i in
55840
 
    -pthread)
55841
 
      if test "$ext_shared" = "yes"; then
55842
 
        LDFLAGS="$LDFLAGS -pthread"
55843
 
      else
55844
 
        
55845
 
  
55846
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
55847
 
  
55848
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
55849
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55850
 
    eval "EXTRA_LDFLAGS$unique=set"
55851
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
55852
 
  fi
55853
 
 
55854
 
      fi
55855
 
    ;;
55856
 
    -l*)
55857
 
      ac_ii=`echo $ac_i|cut -c 3-`
55858
 
      
55859
 
  
55860
 
  case $ac_ii in
55861
 
  c|c_r|pthread*) ;;
55862
 
  *) 
55863
 
    if test "$ext_shared" = "yes"; then
55864
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
55865
 
    else
55866
 
      
55867
 
  
55868
 
  case $ac_ii in
55869
 
  c|c_r|pthread*) ;;
55870
 
  *) 
55871
 
      LIBS="$LIBS -l$ac_ii" 
55872
 
   ;;
55873
 
  esac
55874
 
 
55875
 
 
55876
 
    fi
55877
 
   ;;
55878
 
  esac
55879
 
 
55880
 
 
55881
 
    ;;
55882
 
    -L*)
55883
 
      ac_ii=`echo $ac_i|cut -c 3-`
55884
 
      
55885
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
55886
 
    
55887
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
55888
 
    ai_p=$ac_ii
55889
 
  else
55890
 
    
55891
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
55892
 
    
55893
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
55894
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
55895
 
  fi
55896
 
 
55897
 
    
55898
 
      if test "$ext_shared" = "yes"; then
55899
 
        LDFLAGS="-L$ai_p $LDFLAGS"
55900
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
55901
 
      else
55902
 
        
55903
 
  
55904
 
  
55905
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55906
 
  
55907
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55908
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
55909
 
    eval "LIBPATH$unique=set"
55910
 
    
55911
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55912
 
    LDFLAGS="$LDFLAGS -L$ai_p"
55913
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
55914
 
  
55915
 
  fi
55916
 
 
55917
 
 
55918
 
      fi
55919
 
    
55920
 
  fi
55921
 
 
55922
 
    ;;
55923
 
    esac
55924
 
  done
55925
 
 
55926
 
  { $as_echo "$as_me:$LINENO: checking for gdImageCreateTrueColor in -lgd" >&5
55927
 
$as_echo_n "checking for gdImageCreateTrueColor in -lgd... " >&6; }
55928
 
if test "${ac_cv_lib_gd_gdImageCreateTrueColor+set}" = set; then
55929
 
  $as_echo_n "(cached) " >&6
55930
 
else
55931
 
  ac_check_lib_save_LIBS=$LIBS
55932
 
LIBS="-lgd  $LIBS"
55933
 
cat >conftest.$ac_ext <<_ACEOF
55934
 
/* confdefs.h.  */
55935
 
_ACEOF
55936
 
cat confdefs.h >>conftest.$ac_ext
55937
 
cat >>conftest.$ac_ext <<_ACEOF
55938
 
/* end confdefs.h.  */
55939
 
 
55940
 
/* Override any GCC internal prototype to avoid an error.
55941
 
   Use char because int might match the return type of a GCC
55942
 
   builtin and then its argument prototype would still apply.  */
55943
 
#ifdef __cplusplus
55944
 
extern "C"
55945
 
#endif
55946
 
char gdImageCreateTrueColor ();
55947
 
int
55948
 
main ()
55949
 
{
55950
 
return gdImageCreateTrueColor ();
55951
 
  ;
55952
 
  return 0;
55953
 
}
55954
 
_ACEOF
55955
 
rm -f conftest.$ac_objext conftest$ac_exeext
55956
 
if { (ac_try="$ac_link"
55957
 
case "(($ac_try" in
55958
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55959
 
  *) ac_try_echo=$ac_try;;
55960
 
esac
55961
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55962
 
$as_echo "$ac_try_echo") >&5
55963
 
  (eval "$ac_link") 2>conftest.er1
55964
 
  ac_status=$?
55965
 
  grep -v '^ *+' conftest.er1 >conftest.err
55966
 
  rm -f conftest.er1
55967
 
  cat conftest.err >&5
55968
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55969
 
  (exit $ac_status); } && {
55970
 
         test -z "$ac_c_werror_flag" ||
55971
 
         test ! -s conftest.err
55972
 
       } && test -s conftest$ac_exeext && {
55973
 
         test "$cross_compiling" = yes ||
55974
 
         $as_test_x conftest$ac_exeext
55975
 
       }; then
55976
 
  ac_cv_lib_gd_gdImageCreateTrueColor=yes
55977
 
else
55978
 
  $as_echo "$as_me: failed program was:" >&5
55979
 
sed 's/^/| /' conftest.$ac_ext >&5
55980
 
 
55981
 
        ac_cv_lib_gd_gdImageCreateTrueColor=no
55982
 
fi
55983
 
 
55984
 
rm -rf conftest.dSYM
55985
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55986
 
      conftest$ac_exeext conftest.$ac_ext
55987
 
LIBS=$ac_check_lib_save_LIBS
55988
 
fi
55989
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
55990
 
$as_echo "$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
55991
 
if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = x""yes; then
55992
 
  
55993
 
    LDFLAGS=$save_old_LDFLAGS
55994
 
    ext_shared=$save_ext_shared
55995
 
    
55996
 
cat >>confdefs.h <<\_ACEOF
55997
 
@%:@define HAVE_LIBGD20 1
55998
 
_ACEOF
55999
 
 
56000
 
  
56001
 
else
56002
 
  
56003
 
    LDFLAGS=$save_old_LDFLAGS
56004
 
    ext_shared=$save_ext_shared
56005
 
    unset ac_cv_lib_gd_gdImageCreateTrueColor
56006
 
    
56007
 
  
56008
 
fi
56009
 
 
56010
 
  
56011
 
  save_old_LDFLAGS=$LDFLAGS
56012
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56013
 
  
56014
 
  save_ext_shared=$ext_shared
56015
 
  ext_shared=yes
56016
 
  
56017
 
  for ac_i in $ac_stuff; do
56018
 
    case $ac_i in
56019
 
    -pthread)
56020
 
      if test "$ext_shared" = "yes"; then
56021
 
        LDFLAGS="$LDFLAGS -pthread"
56022
 
      else
56023
 
        
56024
 
  
56025
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56026
 
  
56027
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56028
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56029
 
    eval "EXTRA_LDFLAGS$unique=set"
56030
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56031
 
  fi
56032
 
 
56033
 
      fi
56034
 
    ;;
56035
 
    -l*)
56036
 
      ac_ii=`echo $ac_i|cut -c 3-`
56037
 
      
56038
 
  
56039
 
  case $ac_ii in
56040
 
  c|c_r|pthread*) ;;
56041
 
  *) 
56042
 
    if test "$ext_shared" = "yes"; then
56043
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
56044
 
    else
56045
 
      
56046
 
  
56047
 
  case $ac_ii in
56048
 
  c|c_r|pthread*) ;;
56049
 
  *) 
56050
 
      LIBS="$LIBS -l$ac_ii" 
56051
 
   ;;
56052
 
  esac
56053
 
 
56054
 
 
56055
 
    fi
56056
 
   ;;
56057
 
  esac
56058
 
 
56059
 
 
56060
 
    ;;
56061
 
    -L*)
56062
 
      ac_ii=`echo $ac_i|cut -c 3-`
56063
 
      
56064
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56065
 
    
56066
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56067
 
    ai_p=$ac_ii
56068
 
  else
56069
 
    
56070
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56071
 
    
56072
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56073
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56074
 
  fi
56075
 
 
56076
 
    
56077
 
      if test "$ext_shared" = "yes"; then
56078
 
        LDFLAGS="-L$ai_p $LDFLAGS"
56079
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56080
 
      else
56081
 
        
56082
 
  
56083
 
  
56084
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56085
 
  
56086
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56087
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56088
 
    eval "LIBPATH$unique=set"
56089
 
    
56090
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56091
 
    LDFLAGS="$LDFLAGS -L$ai_p"
56092
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
56093
 
  
56094
 
  fi
56095
 
 
56096
 
 
56097
 
      fi
56098
 
    
56099
 
  fi
56100
 
 
56101
 
    ;;
56102
 
    esac
56103
 
  done
56104
 
 
56105
 
  { $as_echo "$as_me:$LINENO: checking for gdImageSetTile in -lgd" >&5
56106
 
$as_echo_n "checking for gdImageSetTile in -lgd... " >&6; }
56107
 
if test "${ac_cv_lib_gd_gdImageSetTile+set}" = set; then
56108
 
  $as_echo_n "(cached) " >&6
56109
 
else
56110
 
  ac_check_lib_save_LIBS=$LIBS
56111
 
LIBS="-lgd  $LIBS"
56112
 
cat >conftest.$ac_ext <<_ACEOF
56113
 
/* confdefs.h.  */
56114
 
_ACEOF
56115
 
cat confdefs.h >>conftest.$ac_ext
56116
 
cat >>conftest.$ac_ext <<_ACEOF
56117
 
/* end confdefs.h.  */
56118
 
 
56119
 
/* Override any GCC internal prototype to avoid an error.
56120
 
   Use char because int might match the return type of a GCC
56121
 
   builtin and then its argument prototype would still apply.  */
56122
 
#ifdef __cplusplus
56123
 
extern "C"
56124
 
#endif
56125
 
char gdImageSetTile ();
56126
 
int
56127
 
main ()
56128
 
{
56129
 
return gdImageSetTile ();
56130
 
  ;
56131
 
  return 0;
56132
 
}
56133
 
_ACEOF
56134
 
rm -f conftest.$ac_objext conftest$ac_exeext
56135
 
if { (ac_try="$ac_link"
56136
 
case "(($ac_try" in
56137
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56138
 
  *) ac_try_echo=$ac_try;;
56139
 
esac
56140
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56141
 
$as_echo "$ac_try_echo") >&5
56142
 
  (eval "$ac_link") 2>conftest.er1
56143
 
  ac_status=$?
56144
 
  grep -v '^ *+' conftest.er1 >conftest.err
56145
 
  rm -f conftest.er1
56146
 
  cat conftest.err >&5
56147
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56148
 
  (exit $ac_status); } && {
56149
 
         test -z "$ac_c_werror_flag" ||
56150
 
         test ! -s conftest.err
56151
 
       } && test -s conftest$ac_exeext && {
56152
 
         test "$cross_compiling" = yes ||
56153
 
         $as_test_x conftest$ac_exeext
56154
 
       }; then
56155
 
  ac_cv_lib_gd_gdImageSetTile=yes
56156
 
else
56157
 
  $as_echo "$as_me: failed program was:" >&5
56158
 
sed 's/^/| /' conftest.$ac_ext >&5
56159
 
 
56160
 
        ac_cv_lib_gd_gdImageSetTile=no
56161
 
fi
56162
 
 
56163
 
rm -rf conftest.dSYM
56164
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56165
 
      conftest$ac_exeext conftest.$ac_ext
56166
 
LIBS=$ac_check_lib_save_LIBS
56167
 
fi
56168
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageSetTile" >&5
56169
 
$as_echo "$ac_cv_lib_gd_gdImageSetTile" >&6; }
56170
 
if test "x$ac_cv_lib_gd_gdImageSetTile" = x""yes; then
56171
 
  
56172
 
    LDFLAGS=$save_old_LDFLAGS
56173
 
    ext_shared=$save_ext_shared
56174
 
    
56175
 
cat >>confdefs.h <<\_ACEOF
56176
 
@%:@define HAVE_GD_IMAGESETTILE 1
56177
 
_ACEOF
56178
 
 
56179
 
  
56180
 
else
56181
 
  
56182
 
    LDFLAGS=$save_old_LDFLAGS
56183
 
    ext_shared=$save_ext_shared
56184
 
    unset ac_cv_lib_gd_gdImageSetTile
56185
 
    
56186
 
  
56187
 
fi
56188
 
 
56189
 
  
56190
 
  save_old_LDFLAGS=$LDFLAGS
56191
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56192
 
  
56193
 
  save_ext_shared=$ext_shared
56194
 
  ext_shared=yes
56195
 
  
56196
 
  for ac_i in $ac_stuff; do
56197
 
    case $ac_i in
56198
 
    -pthread)
56199
 
      if test "$ext_shared" = "yes"; then
56200
 
        LDFLAGS="$LDFLAGS -pthread"
56201
 
      else
56202
 
        
56203
 
  
56204
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56205
 
  
56206
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56207
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56208
 
    eval "EXTRA_LDFLAGS$unique=set"
56209
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56210
 
  fi
56211
 
 
56212
 
      fi
56213
 
    ;;
56214
 
    -l*)
56215
 
      ac_ii=`echo $ac_i|cut -c 3-`
56216
 
      
56217
 
  
56218
 
  case $ac_ii in
56219
 
  c|c_r|pthread*) ;;
56220
 
  *) 
56221
 
    if test "$ext_shared" = "yes"; then
56222
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
56223
 
    else
56224
 
      
56225
 
  
56226
 
  case $ac_ii in
56227
 
  c|c_r|pthread*) ;;
56228
 
  *) 
56229
 
      LIBS="$LIBS -l$ac_ii" 
56230
 
   ;;
56231
 
  esac
56232
 
 
56233
 
 
56234
 
    fi
56235
 
   ;;
56236
 
  esac
56237
 
 
56238
 
 
56239
 
    ;;
56240
 
    -L*)
56241
 
      ac_ii=`echo $ac_i|cut -c 3-`
56242
 
      
56243
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56244
 
    
56245
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56246
 
    ai_p=$ac_ii
56247
 
  else
56248
 
    
56249
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56250
 
    
56251
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56252
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56253
 
  fi
56254
 
 
56255
 
    
56256
 
      if test "$ext_shared" = "yes"; then
56257
 
        LDFLAGS="-L$ai_p $LDFLAGS"
56258
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56259
 
      else
56260
 
        
56261
 
  
56262
 
  
56263
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56264
 
  
56265
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56266
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56267
 
    eval "LIBPATH$unique=set"
56268
 
    
56269
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56270
 
    LDFLAGS="$LDFLAGS -L$ai_p"
56271
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
56272
 
  
56273
 
  fi
56274
 
 
56275
 
 
56276
 
      fi
56277
 
    
56278
 
  fi
56279
 
 
56280
 
    ;;
56281
 
    esac
56282
 
  done
56283
 
 
56284
 
  { $as_echo "$as_me:$LINENO: checking for gdImageEllipse in -lgd" >&5
56285
 
$as_echo_n "checking for gdImageEllipse in -lgd... " >&6; }
56286
 
if test "${ac_cv_lib_gd_gdImageEllipse+set}" = set; then
56287
 
  $as_echo_n "(cached) " >&6
56288
 
else
56289
 
  ac_check_lib_save_LIBS=$LIBS
56290
 
LIBS="-lgd  $LIBS"
56291
 
cat >conftest.$ac_ext <<_ACEOF
56292
 
/* confdefs.h.  */
56293
 
_ACEOF
56294
 
cat confdefs.h >>conftest.$ac_ext
56295
 
cat >>conftest.$ac_ext <<_ACEOF
56296
 
/* end confdefs.h.  */
56297
 
 
56298
 
/* Override any GCC internal prototype to avoid an error.
56299
 
   Use char because int might match the return type of a GCC
56300
 
   builtin and then its argument prototype would still apply.  */
56301
 
#ifdef __cplusplus
56302
 
extern "C"
56303
 
#endif
56304
 
char gdImageEllipse ();
56305
 
int
56306
 
main ()
56307
 
{
56308
 
return gdImageEllipse ();
56309
 
  ;
56310
 
  return 0;
56311
 
}
56312
 
_ACEOF
56313
 
rm -f conftest.$ac_objext conftest$ac_exeext
56314
 
if { (ac_try="$ac_link"
56315
 
case "(($ac_try" in
56316
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56317
 
  *) ac_try_echo=$ac_try;;
56318
 
esac
56319
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56320
 
$as_echo "$ac_try_echo") >&5
56321
 
  (eval "$ac_link") 2>conftest.er1
56322
 
  ac_status=$?
56323
 
  grep -v '^ *+' conftest.er1 >conftest.err
56324
 
  rm -f conftest.er1
56325
 
  cat conftest.err >&5
56326
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56327
 
  (exit $ac_status); } && {
56328
 
         test -z "$ac_c_werror_flag" ||
56329
 
         test ! -s conftest.err
56330
 
       } && test -s conftest$ac_exeext && {
56331
 
         test "$cross_compiling" = yes ||
56332
 
         $as_test_x conftest$ac_exeext
56333
 
       }; then
56334
 
  ac_cv_lib_gd_gdImageEllipse=yes
56335
 
else
56336
 
  $as_echo "$as_me: failed program was:" >&5
56337
 
sed 's/^/| /' conftest.$ac_ext >&5
56338
 
 
56339
 
        ac_cv_lib_gd_gdImageEllipse=no
56340
 
fi
56341
 
 
56342
 
rm -rf conftest.dSYM
56343
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56344
 
      conftest$ac_exeext conftest.$ac_ext
56345
 
LIBS=$ac_check_lib_save_LIBS
56346
 
fi
56347
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageEllipse" >&5
56348
 
$as_echo "$ac_cv_lib_gd_gdImageEllipse" >&6; }
56349
 
if test "x$ac_cv_lib_gd_gdImageEllipse" = x""yes; then
56350
 
  
56351
 
    LDFLAGS=$save_old_LDFLAGS
56352
 
    ext_shared=$save_ext_shared
56353
 
    
56354
 
cat >>confdefs.h <<\_ACEOF
56355
 
@%:@define HAVE_GD_IMAGEELLIPSE 1
56356
 
_ACEOF
56357
 
 
56358
 
  
56359
 
else
56360
 
  
56361
 
    LDFLAGS=$save_old_LDFLAGS
56362
 
    ext_shared=$save_ext_shared
56363
 
    unset ac_cv_lib_gd_gdImageEllipse
56364
 
    
56365
 
  
56366
 
fi
56367
 
 
56368
 
  
56369
 
  save_old_LDFLAGS=$LDFLAGS
56370
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56371
 
  
56372
 
  save_ext_shared=$ext_shared
56373
 
  ext_shared=yes
56374
 
  
56375
 
  for ac_i in $ac_stuff; do
56376
 
    case $ac_i in
56377
 
    -pthread)
56378
 
      if test "$ext_shared" = "yes"; then
56379
 
        LDFLAGS="$LDFLAGS -pthread"
56380
 
      else
56381
 
        
56382
 
  
56383
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56384
 
  
56385
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56386
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56387
 
    eval "EXTRA_LDFLAGS$unique=set"
56388
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56389
 
  fi
56390
 
 
56391
 
      fi
56392
 
    ;;
56393
 
    -l*)
56394
 
      ac_ii=`echo $ac_i|cut -c 3-`
56395
 
      
56396
 
  
56397
 
  case $ac_ii in
56398
 
  c|c_r|pthread*) ;;
56399
 
  *) 
56400
 
    if test "$ext_shared" = "yes"; then
56401
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
56402
 
    else
56403
 
      
56404
 
  
56405
 
  case $ac_ii in
56406
 
  c|c_r|pthread*) ;;
56407
 
  *) 
56408
 
      LIBS="$LIBS -l$ac_ii" 
56409
 
   ;;
56410
 
  esac
56411
 
 
56412
 
 
56413
 
    fi
56414
 
   ;;
56415
 
  esac
56416
 
 
56417
 
 
56418
 
    ;;
56419
 
    -L*)
56420
 
      ac_ii=`echo $ac_i|cut -c 3-`
56421
 
      
56422
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56423
 
    
56424
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56425
 
    ai_p=$ac_ii
56426
 
  else
56427
 
    
56428
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56429
 
    
56430
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56431
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56432
 
  fi
56433
 
 
56434
 
    
56435
 
      if test "$ext_shared" = "yes"; then
56436
 
        LDFLAGS="-L$ai_p $LDFLAGS"
56437
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56438
 
      else
56439
 
        
56440
 
  
56441
 
  
56442
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56443
 
  
56444
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56445
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56446
 
    eval "LIBPATH$unique=set"
56447
 
    
56448
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56449
 
    LDFLAGS="$LDFLAGS -L$ai_p"
56450
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
56451
 
  
56452
 
  fi
56453
 
 
56454
 
 
56455
 
      fi
56456
 
    
56457
 
  fi
56458
 
 
56459
 
    ;;
56460
 
    esac
56461
 
  done
56462
 
 
56463
 
  { $as_echo "$as_me:$LINENO: checking for gdImageSetBrush in -lgd" >&5
56464
 
$as_echo_n "checking for gdImageSetBrush in -lgd... " >&6; }
56465
 
if test "${ac_cv_lib_gd_gdImageSetBrush+set}" = set; then
56466
 
  $as_echo_n "(cached) " >&6
56467
 
else
56468
 
  ac_check_lib_save_LIBS=$LIBS
56469
 
LIBS="-lgd  $LIBS"
56470
 
cat >conftest.$ac_ext <<_ACEOF
56471
 
/* confdefs.h.  */
56472
 
_ACEOF
56473
 
cat confdefs.h >>conftest.$ac_ext
56474
 
cat >>conftest.$ac_ext <<_ACEOF
56475
 
/* end confdefs.h.  */
56476
 
 
56477
 
/* Override any GCC internal prototype to avoid an error.
56478
 
   Use char because int might match the return type of a GCC
56479
 
   builtin and then its argument prototype would still apply.  */
56480
 
#ifdef __cplusplus
56481
 
extern "C"
56482
 
#endif
56483
 
char gdImageSetBrush ();
56484
 
int
56485
 
main ()
56486
 
{
56487
 
return gdImageSetBrush ();
56488
 
  ;
56489
 
  return 0;
56490
 
}
56491
 
_ACEOF
56492
 
rm -f conftest.$ac_objext conftest$ac_exeext
56493
 
if { (ac_try="$ac_link"
56494
 
case "(($ac_try" in
56495
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56496
 
  *) ac_try_echo=$ac_try;;
56497
 
esac
56498
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56499
 
$as_echo "$ac_try_echo") >&5
56500
 
  (eval "$ac_link") 2>conftest.er1
56501
 
  ac_status=$?
56502
 
  grep -v '^ *+' conftest.er1 >conftest.err
56503
 
  rm -f conftest.er1
56504
 
  cat conftest.err >&5
56505
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56506
 
  (exit $ac_status); } && {
56507
 
         test -z "$ac_c_werror_flag" ||
56508
 
         test ! -s conftest.err
56509
 
       } && test -s conftest$ac_exeext && {
56510
 
         test "$cross_compiling" = yes ||
56511
 
         $as_test_x conftest$ac_exeext
56512
 
       }; then
56513
 
  ac_cv_lib_gd_gdImageSetBrush=yes
56514
 
else
56515
 
  $as_echo "$as_me: failed program was:" >&5
56516
 
sed 's/^/| /' conftest.$ac_ext >&5
56517
 
 
56518
 
        ac_cv_lib_gd_gdImageSetBrush=no
56519
 
fi
56520
 
 
56521
 
rm -rf conftest.dSYM
56522
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56523
 
      conftest$ac_exeext conftest.$ac_ext
56524
 
LIBS=$ac_check_lib_save_LIBS
56525
 
fi
56526
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageSetBrush" >&5
56527
 
$as_echo "$ac_cv_lib_gd_gdImageSetBrush" >&6; }
56528
 
if test "x$ac_cv_lib_gd_gdImageSetBrush" = x""yes; then
56529
 
  
56530
 
    LDFLAGS=$save_old_LDFLAGS
56531
 
    ext_shared=$save_ext_shared
56532
 
    
56533
 
cat >>confdefs.h <<\_ACEOF
56534
 
@%:@define HAVE_GD_IMAGESETBRUSH 1
56535
 
_ACEOF
56536
 
 
56537
 
  
56538
 
else
56539
 
  
56540
 
    LDFLAGS=$save_old_LDFLAGS
56541
 
    ext_shared=$save_ext_shared
56542
 
    unset ac_cv_lib_gd_gdImageSetBrush
56543
 
    
56544
 
  
56545
 
fi
56546
 
 
56547
 
  
56548
 
  save_old_LDFLAGS=$LDFLAGS
56549
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56550
 
  
56551
 
  save_ext_shared=$ext_shared
56552
 
  ext_shared=yes
56553
 
  
56554
 
  for ac_i in $ac_stuff; do
56555
 
    case $ac_i in
56556
 
    -pthread)
56557
 
      if test "$ext_shared" = "yes"; then
56558
 
        LDFLAGS="$LDFLAGS -pthread"
56559
 
      else
56560
 
        
56561
 
  
56562
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56563
 
  
56564
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56565
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56566
 
    eval "EXTRA_LDFLAGS$unique=set"
56567
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56568
 
  fi
56569
 
 
56570
 
      fi
56571
 
    ;;
56572
 
    -l*)
56573
 
      ac_ii=`echo $ac_i|cut -c 3-`
56574
 
      
56575
 
  
56576
 
  case $ac_ii in
56577
 
  c|c_r|pthread*) ;;
56578
 
  *) 
56579
 
    if test "$ext_shared" = "yes"; then
56580
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
56581
 
    else
56582
 
      
56583
 
  
56584
 
  case $ac_ii in
56585
 
  c|c_r|pthread*) ;;
56586
 
  *) 
56587
 
      LIBS="$LIBS -l$ac_ii" 
56588
 
   ;;
56589
 
  esac
56590
 
 
56591
 
 
56592
 
    fi
56593
 
   ;;
56594
 
  esac
56595
 
 
56596
 
 
56597
 
    ;;
56598
 
    -L*)
56599
 
      ac_ii=`echo $ac_i|cut -c 3-`
56600
 
      
56601
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56602
 
    
56603
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56604
 
    ai_p=$ac_ii
56605
 
  else
56606
 
    
56607
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56608
 
    
56609
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56610
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56611
 
  fi
56612
 
 
56613
 
    
56614
 
      if test "$ext_shared" = "yes"; then
56615
 
        LDFLAGS="-L$ai_p $LDFLAGS"
56616
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56617
 
      else
56618
 
        
56619
 
  
56620
 
  
56621
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56622
 
  
56623
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56624
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56625
 
    eval "LIBPATH$unique=set"
56626
 
    
56627
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56628
 
    LDFLAGS="$LDFLAGS -L$ai_p"
56629
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
56630
 
  
56631
 
  fi
56632
 
 
56633
 
 
56634
 
      fi
56635
 
    
56636
 
  fi
56637
 
 
56638
 
    ;;
56639
 
    esac
56640
 
  done
56641
 
 
56642
 
  { $as_echo "$as_me:$LINENO: checking for gdImageStringTTF in -lgd" >&5
56643
 
$as_echo_n "checking for gdImageStringTTF in -lgd... " >&6; }
56644
 
if test "${ac_cv_lib_gd_gdImageStringTTF+set}" = set; then
56645
 
  $as_echo_n "(cached) " >&6
56646
 
else
56647
 
  ac_check_lib_save_LIBS=$LIBS
56648
 
LIBS="-lgd  $LIBS"
56649
 
cat >conftest.$ac_ext <<_ACEOF
56650
 
/* confdefs.h.  */
56651
 
_ACEOF
56652
 
cat confdefs.h >>conftest.$ac_ext
56653
 
cat >>conftest.$ac_ext <<_ACEOF
56654
 
/* end confdefs.h.  */
56655
 
 
56656
 
/* Override any GCC internal prototype to avoid an error.
56657
 
   Use char because int might match the return type of a GCC
56658
 
   builtin and then its argument prototype would still apply.  */
56659
 
#ifdef __cplusplus
56660
 
extern "C"
56661
 
#endif
56662
 
char gdImageStringTTF ();
56663
 
int
56664
 
main ()
56665
 
{
56666
 
return gdImageStringTTF ();
56667
 
  ;
56668
 
  return 0;
56669
 
}
56670
 
_ACEOF
56671
 
rm -f conftest.$ac_objext conftest$ac_exeext
56672
 
if { (ac_try="$ac_link"
56673
 
case "(($ac_try" in
56674
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56675
 
  *) ac_try_echo=$ac_try;;
56676
 
esac
56677
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56678
 
$as_echo "$ac_try_echo") >&5
56679
 
  (eval "$ac_link") 2>conftest.er1
56680
 
  ac_status=$?
56681
 
  grep -v '^ *+' conftest.er1 >conftest.err
56682
 
  rm -f conftest.er1
56683
 
  cat conftest.err >&5
56684
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56685
 
  (exit $ac_status); } && {
56686
 
         test -z "$ac_c_werror_flag" ||
56687
 
         test ! -s conftest.err
56688
 
       } && test -s conftest$ac_exeext && {
56689
 
         test "$cross_compiling" = yes ||
56690
 
         $as_test_x conftest$ac_exeext
56691
 
       }; then
56692
 
  ac_cv_lib_gd_gdImageStringTTF=yes
56693
 
else
56694
 
  $as_echo "$as_me: failed program was:" >&5
56695
 
sed 's/^/| /' conftest.$ac_ext >&5
56696
 
 
56697
 
        ac_cv_lib_gd_gdImageStringTTF=no
56698
 
fi
56699
 
 
56700
 
rm -rf conftest.dSYM
56701
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56702
 
      conftest$ac_exeext conftest.$ac_ext
56703
 
LIBS=$ac_check_lib_save_LIBS
56704
 
fi
56705
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
56706
 
$as_echo "$ac_cv_lib_gd_gdImageStringTTF" >&6; }
56707
 
if test "x$ac_cv_lib_gd_gdImageStringTTF" = x""yes; then
56708
 
  
56709
 
    LDFLAGS=$save_old_LDFLAGS
56710
 
    ext_shared=$save_ext_shared
56711
 
    
56712
 
cat >>confdefs.h <<\_ACEOF
56713
 
@%:@define HAVE_GD_STRINGTTF 1
56714
 
_ACEOF
56715
 
 
56716
 
  
56717
 
else
56718
 
  
56719
 
    LDFLAGS=$save_old_LDFLAGS
56720
 
    ext_shared=$save_ext_shared
56721
 
    unset ac_cv_lib_gd_gdImageStringTTF
56722
 
    
56723
 
  
56724
 
fi
56725
 
 
56726
 
  
56727
 
  save_old_LDFLAGS=$LDFLAGS
56728
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56729
 
  
56730
 
  save_ext_shared=$ext_shared
56731
 
  ext_shared=yes
56732
 
  
56733
 
  for ac_i in $ac_stuff; do
56734
 
    case $ac_i in
56735
 
    -pthread)
56736
 
      if test "$ext_shared" = "yes"; then
56737
 
        LDFLAGS="$LDFLAGS -pthread"
56738
 
      else
56739
 
        
56740
 
  
56741
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56742
 
  
56743
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56744
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56745
 
    eval "EXTRA_LDFLAGS$unique=set"
56746
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56747
 
  fi
56748
 
 
56749
 
      fi
56750
 
    ;;
56751
 
    -l*)
56752
 
      ac_ii=`echo $ac_i|cut -c 3-`
56753
 
      
56754
 
  
56755
 
  case $ac_ii in
56756
 
  c|c_r|pthread*) ;;
56757
 
  *) 
56758
 
    if test "$ext_shared" = "yes"; then
56759
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
56760
 
    else
56761
 
      
56762
 
  
56763
 
  case $ac_ii in
56764
 
  c|c_r|pthread*) ;;
56765
 
  *) 
56766
 
      LIBS="$LIBS -l$ac_ii" 
56767
 
   ;;
56768
 
  esac
56769
 
 
56770
 
 
56771
 
    fi
56772
 
   ;;
56773
 
  esac
56774
 
 
56775
 
 
56776
 
    ;;
56777
 
    -L*)
56778
 
      ac_ii=`echo $ac_i|cut -c 3-`
56779
 
      
56780
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56781
 
    
56782
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56783
 
    ai_p=$ac_ii
56784
 
  else
56785
 
    
56786
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56787
 
    
56788
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56789
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56790
 
  fi
56791
 
 
56792
 
    
56793
 
      if test "$ext_shared" = "yes"; then
56794
 
        LDFLAGS="-L$ai_p $LDFLAGS"
56795
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56796
 
      else
56797
 
        
56798
 
  
56799
 
  
56800
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56801
 
  
56802
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56803
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56804
 
    eval "LIBPATH$unique=set"
56805
 
    
56806
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56807
 
    LDFLAGS="$LDFLAGS -L$ai_p"
56808
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
56809
 
  
56810
 
  fi
56811
 
 
56812
 
 
56813
 
      fi
56814
 
    
56815
 
  fi
56816
 
 
56817
 
    ;;
56818
 
    esac
56819
 
  done
56820
 
 
56821
 
  { $as_echo "$as_me:$LINENO: checking for gdImageStringFT in -lgd" >&5
56822
 
$as_echo_n "checking for gdImageStringFT in -lgd... " >&6; }
56823
 
if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then
56824
 
  $as_echo_n "(cached) " >&6
56825
 
else
56826
 
  ac_check_lib_save_LIBS=$LIBS
56827
 
LIBS="-lgd  $LIBS"
56828
 
cat >conftest.$ac_ext <<_ACEOF
56829
 
/* confdefs.h.  */
56830
 
_ACEOF
56831
 
cat confdefs.h >>conftest.$ac_ext
56832
 
cat >>conftest.$ac_ext <<_ACEOF
56833
 
/* end confdefs.h.  */
56834
 
 
56835
 
/* Override any GCC internal prototype to avoid an error.
56836
 
   Use char because int might match the return type of a GCC
56837
 
   builtin and then its argument prototype would still apply.  */
56838
 
#ifdef __cplusplus
56839
 
extern "C"
56840
 
#endif
56841
 
char gdImageStringFT ();
56842
 
int
56843
 
main ()
56844
 
{
56845
 
return gdImageStringFT ();
56846
 
  ;
56847
 
  return 0;
56848
 
}
56849
 
_ACEOF
56850
 
rm -f conftest.$ac_objext conftest$ac_exeext
56851
 
if { (ac_try="$ac_link"
56852
 
case "(($ac_try" in
56853
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56854
 
  *) ac_try_echo=$ac_try;;
56855
 
esac
56856
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56857
 
$as_echo "$ac_try_echo") >&5
56858
 
  (eval "$ac_link") 2>conftest.er1
56859
 
  ac_status=$?
56860
 
  grep -v '^ *+' conftest.er1 >conftest.err
56861
 
  rm -f conftest.er1
56862
 
  cat conftest.err >&5
56863
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56864
 
  (exit $ac_status); } && {
56865
 
         test -z "$ac_c_werror_flag" ||
56866
 
         test ! -s conftest.err
56867
 
       } && test -s conftest$ac_exeext && {
56868
 
         test "$cross_compiling" = yes ||
56869
 
         $as_test_x conftest$ac_exeext
56870
 
       }; then
56871
 
  ac_cv_lib_gd_gdImageStringFT=yes
56872
 
else
56873
 
  $as_echo "$as_me: failed program was:" >&5
56874
 
sed 's/^/| /' conftest.$ac_ext >&5
56875
 
 
56876
 
        ac_cv_lib_gd_gdImageStringFT=no
56877
 
fi
56878
 
 
56879
 
rm -rf conftest.dSYM
56880
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56881
 
      conftest$ac_exeext conftest.$ac_ext
56882
 
LIBS=$ac_check_lib_save_LIBS
56883
 
fi
56884
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFT" >&5
56885
 
$as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; }
56886
 
if test "x$ac_cv_lib_gd_gdImageStringFT" = x""yes; then
56887
 
  
56888
 
    LDFLAGS=$save_old_LDFLAGS
56889
 
    ext_shared=$save_ext_shared
56890
 
    
56891
 
cat >>confdefs.h <<\_ACEOF
56892
 
@%:@define HAVE_GD_STRINGFT 1
56893
 
_ACEOF
56894
 
 
56895
 
  
56896
 
else
56897
 
  
56898
 
    LDFLAGS=$save_old_LDFLAGS
56899
 
    ext_shared=$save_ext_shared
56900
 
    unset ac_cv_lib_gd_gdImageStringFT
56901
 
    
56902
 
  
56903
 
fi
56904
 
 
56905
 
  
56906
 
  save_old_LDFLAGS=$LDFLAGS
56907
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
56908
 
  
56909
 
  save_ext_shared=$ext_shared
56910
 
  ext_shared=yes
56911
 
  
56912
 
  for ac_i in $ac_stuff; do
56913
 
    case $ac_i in
56914
 
    -pthread)
56915
 
      if test "$ext_shared" = "yes"; then
56916
 
        LDFLAGS="$LDFLAGS -pthread"
56917
 
      else
56918
 
        
56919
 
  
56920
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
56921
 
  
56922
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
56923
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56924
 
    eval "EXTRA_LDFLAGS$unique=set"
56925
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
56926
 
  fi
56927
 
 
56928
 
      fi
56929
 
    ;;
56930
 
    -l*)
56931
 
      ac_ii=`echo $ac_i|cut -c 3-`
56932
 
      
56933
 
  
56934
 
  case $ac_ii in
56935
 
  c|c_r|pthread*) ;;
56936
 
  *) 
56937
 
    if test "$ext_shared" = "yes"; then
56938
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
56939
 
    else
56940
 
      
56941
 
  
56942
 
  case $ac_ii in
56943
 
  c|c_r|pthread*) ;;
56944
 
  *) 
56945
 
      LIBS="$LIBS -l$ac_ii" 
56946
 
   ;;
56947
 
  esac
56948
 
 
56949
 
 
56950
 
    fi
56951
 
   ;;
56952
 
  esac
56953
 
 
56954
 
 
56955
 
    ;;
56956
 
    -L*)
56957
 
      ac_ii=`echo $ac_i|cut -c 3-`
56958
 
      
56959
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
56960
 
    
56961
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
56962
 
    ai_p=$ac_ii
56963
 
  else
56964
 
    
56965
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
56966
 
    
56967
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56968
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
56969
 
  fi
56970
 
 
56971
 
    
56972
 
      if test "$ext_shared" = "yes"; then
56973
 
        LDFLAGS="-L$ai_p $LDFLAGS"
56974
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
56975
 
      else
56976
 
        
56977
 
  
56978
 
  
56979
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56980
 
  
56981
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56982
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
56983
 
    eval "LIBPATH$unique=set"
56984
 
    
56985
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56986
 
    LDFLAGS="$LDFLAGS -L$ai_p"
56987
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
56988
 
  
56989
 
  fi
56990
 
 
56991
 
 
56992
 
      fi
56993
 
    
56994
 
  fi
56995
 
 
56996
 
    ;;
56997
 
    esac
56998
 
  done
56999
 
 
57000
 
  { $as_echo "$as_me:$LINENO: checking for gdImageStringFTEx in -lgd" >&5
57001
 
$as_echo_n "checking for gdImageStringFTEx in -lgd... " >&6; }
57002
 
if test "${ac_cv_lib_gd_gdImageStringFTEx+set}" = set; then
57003
 
  $as_echo_n "(cached) " >&6
57004
 
else
57005
 
  ac_check_lib_save_LIBS=$LIBS
57006
 
LIBS="-lgd  $LIBS"
57007
 
cat >conftest.$ac_ext <<_ACEOF
57008
 
/* confdefs.h.  */
57009
 
_ACEOF
57010
 
cat confdefs.h >>conftest.$ac_ext
57011
 
cat >>conftest.$ac_ext <<_ACEOF
57012
 
/* end confdefs.h.  */
57013
 
 
57014
 
/* Override any GCC internal prototype to avoid an error.
57015
 
   Use char because int might match the return type of a GCC
57016
 
   builtin and then its argument prototype would still apply.  */
57017
 
#ifdef __cplusplus
57018
 
extern "C"
57019
 
#endif
57020
 
char gdImageStringFTEx ();
57021
 
int
57022
 
main ()
57023
 
{
57024
 
return gdImageStringFTEx ();
57025
 
  ;
57026
 
  return 0;
57027
 
}
57028
 
_ACEOF
57029
 
rm -f conftest.$ac_objext conftest$ac_exeext
57030
 
if { (ac_try="$ac_link"
57031
 
case "(($ac_try" in
57032
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57033
 
  *) ac_try_echo=$ac_try;;
57034
 
esac
57035
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57036
 
$as_echo "$ac_try_echo") >&5
57037
 
  (eval "$ac_link") 2>conftest.er1
57038
 
  ac_status=$?
57039
 
  grep -v '^ *+' conftest.er1 >conftest.err
57040
 
  rm -f conftest.er1
57041
 
  cat conftest.err >&5
57042
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57043
 
  (exit $ac_status); } && {
57044
 
         test -z "$ac_c_werror_flag" ||
57045
 
         test ! -s conftest.err
57046
 
       } && test -s conftest$ac_exeext && {
57047
 
         test "$cross_compiling" = yes ||
57048
 
         $as_test_x conftest$ac_exeext
57049
 
       }; then
57050
 
  ac_cv_lib_gd_gdImageStringFTEx=yes
57051
 
else
57052
 
  $as_echo "$as_me: failed program was:" >&5
57053
 
sed 's/^/| /' conftest.$ac_ext >&5
57054
 
 
57055
 
        ac_cv_lib_gd_gdImageStringFTEx=no
57056
 
fi
57057
 
 
57058
 
rm -rf conftest.dSYM
57059
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57060
 
      conftest$ac_exeext conftest.$ac_ext
57061
 
LIBS=$ac_check_lib_save_LIBS
57062
 
fi
57063
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFTEx" >&5
57064
 
$as_echo "$ac_cv_lib_gd_gdImageStringFTEx" >&6; }
57065
 
if test "x$ac_cv_lib_gd_gdImageStringFTEx" = x""yes; then
57066
 
  
57067
 
    LDFLAGS=$save_old_LDFLAGS
57068
 
    ext_shared=$save_ext_shared
57069
 
    
57070
 
cat >>confdefs.h <<\_ACEOF
57071
 
@%:@define HAVE_GD_STRINGFTEX 1
57072
 
_ACEOF
57073
 
 
57074
 
  
57075
 
else
57076
 
  
57077
 
    LDFLAGS=$save_old_LDFLAGS
57078
 
    ext_shared=$save_ext_shared
57079
 
    unset ac_cv_lib_gd_gdImageStringFTEx
57080
 
    
57081
 
  
57082
 
fi
57083
 
 
57084
 
  
57085
 
  save_old_LDFLAGS=$LDFLAGS
57086
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57087
 
  
57088
 
  save_ext_shared=$ext_shared
57089
 
  ext_shared=yes
57090
 
  
57091
 
  for ac_i in $ac_stuff; do
57092
 
    case $ac_i in
57093
 
    -pthread)
57094
 
      if test "$ext_shared" = "yes"; then
57095
 
        LDFLAGS="$LDFLAGS -pthread"
57096
 
      else
57097
 
        
57098
 
  
57099
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57100
 
  
57101
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57102
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57103
 
    eval "EXTRA_LDFLAGS$unique=set"
57104
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57105
 
  fi
57106
 
 
57107
 
      fi
57108
 
    ;;
57109
 
    -l*)
57110
 
      ac_ii=`echo $ac_i|cut -c 3-`
57111
 
      
57112
 
  
57113
 
  case $ac_ii in
57114
 
  c|c_r|pthread*) ;;
57115
 
  *) 
57116
 
    if test "$ext_shared" = "yes"; then
57117
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
57118
 
    else
57119
 
      
57120
 
  
57121
 
  case $ac_ii in
57122
 
  c|c_r|pthread*) ;;
57123
 
  *) 
57124
 
      LIBS="$LIBS -l$ac_ii" 
57125
 
   ;;
57126
 
  esac
57127
 
 
57128
 
 
57129
 
    fi
57130
 
   ;;
57131
 
  esac
57132
 
 
57133
 
 
57134
 
    ;;
57135
 
    -L*)
57136
 
      ac_ii=`echo $ac_i|cut -c 3-`
57137
 
      
57138
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57139
 
    
57140
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57141
 
    ai_p=$ac_ii
57142
 
  else
57143
 
    
57144
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57145
 
    
57146
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57147
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57148
 
  fi
57149
 
 
57150
 
    
57151
 
      if test "$ext_shared" = "yes"; then
57152
 
        LDFLAGS="-L$ai_p $LDFLAGS"
57153
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57154
 
      else
57155
 
        
57156
 
  
57157
 
  
57158
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57159
 
  
57160
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57161
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57162
 
    eval "LIBPATH$unique=set"
57163
 
    
57164
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57165
 
    LDFLAGS="$LDFLAGS -L$ai_p"
57166
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
57167
 
  
57168
 
  fi
57169
 
 
57170
 
 
57171
 
      fi
57172
 
    
57173
 
  fi
57174
 
 
57175
 
    ;;
57176
 
    esac
57177
 
  done
57178
 
 
57179
 
  { $as_echo "$as_me:$LINENO: checking for gdImageColorClosestHWB in -lgd" >&5
57180
 
$as_echo_n "checking for gdImageColorClosestHWB in -lgd... " >&6; }
57181
 
if test "${ac_cv_lib_gd_gdImageColorClosestHWB+set}" = set; then
57182
 
  $as_echo_n "(cached) " >&6
57183
 
else
57184
 
  ac_check_lib_save_LIBS=$LIBS
57185
 
LIBS="-lgd  $LIBS"
57186
 
cat >conftest.$ac_ext <<_ACEOF
57187
 
/* confdefs.h.  */
57188
 
_ACEOF
57189
 
cat confdefs.h >>conftest.$ac_ext
57190
 
cat >>conftest.$ac_ext <<_ACEOF
57191
 
/* end confdefs.h.  */
57192
 
 
57193
 
/* Override any GCC internal prototype to avoid an error.
57194
 
   Use char because int might match the return type of a GCC
57195
 
   builtin and then its argument prototype would still apply.  */
57196
 
#ifdef __cplusplus
57197
 
extern "C"
57198
 
#endif
57199
 
char gdImageColorClosestHWB ();
57200
 
int
57201
 
main ()
57202
 
{
57203
 
return gdImageColorClosestHWB ();
57204
 
  ;
57205
 
  return 0;
57206
 
}
57207
 
_ACEOF
57208
 
rm -f conftest.$ac_objext conftest$ac_exeext
57209
 
if { (ac_try="$ac_link"
57210
 
case "(($ac_try" in
57211
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57212
 
  *) ac_try_echo=$ac_try;;
57213
 
esac
57214
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57215
 
$as_echo "$ac_try_echo") >&5
57216
 
  (eval "$ac_link") 2>conftest.er1
57217
 
  ac_status=$?
57218
 
  grep -v '^ *+' conftest.er1 >conftest.err
57219
 
  rm -f conftest.er1
57220
 
  cat conftest.err >&5
57221
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57222
 
  (exit $ac_status); } && {
57223
 
         test -z "$ac_c_werror_flag" ||
57224
 
         test ! -s conftest.err
57225
 
       } && test -s conftest$ac_exeext && {
57226
 
         test "$cross_compiling" = yes ||
57227
 
         $as_test_x conftest$ac_exeext
57228
 
       }; then
57229
 
  ac_cv_lib_gd_gdImageColorClosestHWB=yes
57230
 
else
57231
 
  $as_echo "$as_me: failed program was:" >&5
57232
 
sed 's/^/| /' conftest.$ac_ext >&5
57233
 
 
57234
 
        ac_cv_lib_gd_gdImageColorClosestHWB=no
57235
 
fi
57236
 
 
57237
 
rm -rf conftest.dSYM
57238
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57239
 
      conftest$ac_exeext conftest.$ac_ext
57240
 
LIBS=$ac_check_lib_save_LIBS
57241
 
fi
57242
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageColorClosestHWB" >&5
57243
 
$as_echo "$ac_cv_lib_gd_gdImageColorClosestHWB" >&6; }
57244
 
if test "x$ac_cv_lib_gd_gdImageColorClosestHWB" = x""yes; then
57245
 
  
57246
 
    LDFLAGS=$save_old_LDFLAGS
57247
 
    ext_shared=$save_ext_shared
57248
 
    
57249
 
cat >>confdefs.h <<\_ACEOF
57250
 
@%:@define HAVE_COLORCLOSESTHWB 1
57251
 
_ACEOF
57252
 
 
57253
 
  
57254
 
else
57255
 
  
57256
 
    LDFLAGS=$save_old_LDFLAGS
57257
 
    ext_shared=$save_ext_shared
57258
 
    unset ac_cv_lib_gd_gdImageColorClosestHWB
57259
 
    
57260
 
  
57261
 
fi
57262
 
 
57263
 
  
57264
 
  save_old_LDFLAGS=$LDFLAGS
57265
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57266
 
  
57267
 
  save_ext_shared=$ext_shared
57268
 
  ext_shared=yes
57269
 
  
57270
 
  for ac_i in $ac_stuff; do
57271
 
    case $ac_i in
57272
 
    -pthread)
57273
 
      if test "$ext_shared" = "yes"; then
57274
 
        LDFLAGS="$LDFLAGS -pthread"
57275
 
      else
57276
 
        
57277
 
  
57278
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57279
 
  
57280
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57281
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57282
 
    eval "EXTRA_LDFLAGS$unique=set"
57283
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57284
 
  fi
57285
 
 
57286
 
      fi
57287
 
    ;;
57288
 
    -l*)
57289
 
      ac_ii=`echo $ac_i|cut -c 3-`
57290
 
      
57291
 
  
57292
 
  case $ac_ii in
57293
 
  c|c_r|pthread*) ;;
57294
 
  *) 
57295
 
    if test "$ext_shared" = "yes"; then
57296
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
57297
 
    else
57298
 
      
57299
 
  
57300
 
  case $ac_ii in
57301
 
  c|c_r|pthread*) ;;
57302
 
  *) 
57303
 
      LIBS="$LIBS -l$ac_ii" 
57304
 
   ;;
57305
 
  esac
57306
 
 
57307
 
 
57308
 
    fi
57309
 
   ;;
57310
 
  esac
57311
 
 
57312
 
 
57313
 
    ;;
57314
 
    -L*)
57315
 
      ac_ii=`echo $ac_i|cut -c 3-`
57316
 
      
57317
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57318
 
    
57319
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57320
 
    ai_p=$ac_ii
57321
 
  else
57322
 
    
57323
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57324
 
    
57325
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57326
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57327
 
  fi
57328
 
 
57329
 
    
57330
 
      if test "$ext_shared" = "yes"; then
57331
 
        LDFLAGS="-L$ai_p $LDFLAGS"
57332
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57333
 
      else
57334
 
        
57335
 
  
57336
 
  
57337
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57338
 
  
57339
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57340
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57341
 
    eval "LIBPATH$unique=set"
57342
 
    
57343
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57344
 
    LDFLAGS="$LDFLAGS -L$ai_p"
57345
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
57346
 
  
57347
 
  fi
57348
 
 
57349
 
 
57350
 
      fi
57351
 
    
57352
 
  fi
57353
 
 
57354
 
    ;;
57355
 
    esac
57356
 
  done
57357
 
 
57358
 
  { $as_echo "$as_me:$LINENO: checking for gdImageColorResolve in -lgd" >&5
57359
 
$as_echo_n "checking for gdImageColorResolve in -lgd... " >&6; }
57360
 
if test "${ac_cv_lib_gd_gdImageColorResolve+set}" = set; then
57361
 
  $as_echo_n "(cached) " >&6
57362
 
else
57363
 
  ac_check_lib_save_LIBS=$LIBS
57364
 
LIBS="-lgd  $LIBS"
57365
 
cat >conftest.$ac_ext <<_ACEOF
57366
 
/* confdefs.h.  */
57367
 
_ACEOF
57368
 
cat confdefs.h >>conftest.$ac_ext
57369
 
cat >>conftest.$ac_ext <<_ACEOF
57370
 
/* end confdefs.h.  */
57371
 
 
57372
 
/* Override any GCC internal prototype to avoid an error.
57373
 
   Use char because int might match the return type of a GCC
57374
 
   builtin and then its argument prototype would still apply.  */
57375
 
#ifdef __cplusplus
57376
 
extern "C"
57377
 
#endif
57378
 
char gdImageColorResolve ();
57379
 
int
57380
 
main ()
57381
 
{
57382
 
return gdImageColorResolve ();
57383
 
  ;
57384
 
  return 0;
57385
 
}
57386
 
_ACEOF
57387
 
rm -f conftest.$ac_objext conftest$ac_exeext
57388
 
if { (ac_try="$ac_link"
57389
 
case "(($ac_try" in
57390
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57391
 
  *) ac_try_echo=$ac_try;;
57392
 
esac
57393
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57394
 
$as_echo "$ac_try_echo") >&5
57395
 
  (eval "$ac_link") 2>conftest.er1
57396
 
  ac_status=$?
57397
 
  grep -v '^ *+' conftest.er1 >conftest.err
57398
 
  rm -f conftest.er1
57399
 
  cat conftest.err >&5
57400
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57401
 
  (exit $ac_status); } && {
57402
 
         test -z "$ac_c_werror_flag" ||
57403
 
         test ! -s conftest.err
57404
 
       } && test -s conftest$ac_exeext && {
57405
 
         test "$cross_compiling" = yes ||
57406
 
         $as_test_x conftest$ac_exeext
57407
 
       }; then
57408
 
  ac_cv_lib_gd_gdImageColorResolve=yes
57409
 
else
57410
 
  $as_echo "$as_me: failed program was:" >&5
57411
 
sed 's/^/| /' conftest.$ac_ext >&5
57412
 
 
57413
 
        ac_cv_lib_gd_gdImageColorResolve=no
57414
 
fi
57415
 
 
57416
 
rm -rf conftest.dSYM
57417
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57418
 
      conftest$ac_exeext conftest.$ac_ext
57419
 
LIBS=$ac_check_lib_save_LIBS
57420
 
fi
57421
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageColorResolve" >&5
57422
 
$as_echo "$ac_cv_lib_gd_gdImageColorResolve" >&6; }
57423
 
if test "x$ac_cv_lib_gd_gdImageColorResolve" = x""yes; then
57424
 
  
57425
 
    LDFLAGS=$save_old_LDFLAGS
57426
 
    ext_shared=$save_ext_shared
57427
 
    
57428
 
cat >>confdefs.h <<\_ACEOF
57429
 
@%:@define HAVE_GDIMAGECOLORRESOLVE 1
57430
 
_ACEOF
57431
 
 
57432
 
  
57433
 
else
57434
 
  
57435
 
    LDFLAGS=$save_old_LDFLAGS
57436
 
    ext_shared=$save_ext_shared
57437
 
    unset ac_cv_lib_gd_gdImageColorResolve
57438
 
    
57439
 
  
57440
 
fi
57441
 
 
57442
 
  
57443
 
  save_old_LDFLAGS=$LDFLAGS
57444
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57445
 
  
57446
 
  save_ext_shared=$ext_shared
57447
 
  ext_shared=yes
57448
 
  
57449
 
  for ac_i in $ac_stuff; do
57450
 
    case $ac_i in
57451
 
    -pthread)
57452
 
      if test "$ext_shared" = "yes"; then
57453
 
        LDFLAGS="$LDFLAGS -pthread"
57454
 
      else
57455
 
        
57456
 
  
57457
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57458
 
  
57459
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57460
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57461
 
    eval "EXTRA_LDFLAGS$unique=set"
57462
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57463
 
  fi
57464
 
 
57465
 
      fi
57466
 
    ;;
57467
 
    -l*)
57468
 
      ac_ii=`echo $ac_i|cut -c 3-`
57469
 
      
57470
 
  
57471
 
  case $ac_ii in
57472
 
  c|c_r|pthread*) ;;
57473
 
  *) 
57474
 
    if test "$ext_shared" = "yes"; then
57475
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
57476
 
    else
57477
 
      
57478
 
  
57479
 
  case $ac_ii in
57480
 
  c|c_r|pthread*) ;;
57481
 
  *) 
57482
 
      LIBS="$LIBS -l$ac_ii" 
57483
 
   ;;
57484
 
  esac
57485
 
 
57486
 
 
57487
 
    fi
57488
 
   ;;
57489
 
  esac
57490
 
 
57491
 
 
57492
 
    ;;
57493
 
    -L*)
57494
 
      ac_ii=`echo $ac_i|cut -c 3-`
57495
 
      
57496
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57497
 
    
57498
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57499
 
    ai_p=$ac_ii
57500
 
  else
57501
 
    
57502
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57503
 
    
57504
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57505
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57506
 
  fi
57507
 
 
57508
 
    
57509
 
      if test "$ext_shared" = "yes"; then
57510
 
        LDFLAGS="-L$ai_p $LDFLAGS"
57511
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57512
 
      else
57513
 
        
57514
 
  
57515
 
  
57516
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57517
 
  
57518
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57519
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57520
 
    eval "LIBPATH$unique=set"
57521
 
    
57522
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57523
 
    LDFLAGS="$LDFLAGS -L$ai_p"
57524
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
57525
 
  
57526
 
  fi
57527
 
 
57528
 
 
57529
 
      fi
57530
 
    
57531
 
  fi
57532
 
 
57533
 
    ;;
57534
 
    esac
57535
 
  done
57536
 
 
57537
 
  { $as_echo "$as_me:$LINENO: checking for gdImageGifCtx in -lgd" >&5
57538
 
$as_echo_n "checking for gdImageGifCtx in -lgd... " >&6; }
57539
 
if test "${ac_cv_lib_gd_gdImageGifCtx+set}" = set; then
57540
 
  $as_echo_n "(cached) " >&6
57541
 
else
57542
 
  ac_check_lib_save_LIBS=$LIBS
57543
 
LIBS="-lgd  $LIBS"
57544
 
cat >conftest.$ac_ext <<_ACEOF
57545
 
/* confdefs.h.  */
57546
 
_ACEOF
57547
 
cat confdefs.h >>conftest.$ac_ext
57548
 
cat >>conftest.$ac_ext <<_ACEOF
57549
 
/* end confdefs.h.  */
57550
 
 
57551
 
/* Override any GCC internal prototype to avoid an error.
57552
 
   Use char because int might match the return type of a GCC
57553
 
   builtin and then its argument prototype would still apply.  */
57554
 
#ifdef __cplusplus
57555
 
extern "C"
57556
 
#endif
57557
 
char gdImageGifCtx ();
57558
 
int
57559
 
main ()
57560
 
{
57561
 
return gdImageGifCtx ();
57562
 
  ;
57563
 
  return 0;
57564
 
}
57565
 
_ACEOF
57566
 
rm -f conftest.$ac_objext conftest$ac_exeext
57567
 
if { (ac_try="$ac_link"
57568
 
case "(($ac_try" in
57569
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57570
 
  *) ac_try_echo=$ac_try;;
57571
 
esac
57572
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57573
 
$as_echo "$ac_try_echo") >&5
57574
 
  (eval "$ac_link") 2>conftest.er1
57575
 
  ac_status=$?
57576
 
  grep -v '^ *+' conftest.er1 >conftest.err
57577
 
  rm -f conftest.er1
57578
 
  cat conftest.err >&5
57579
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57580
 
  (exit $ac_status); } && {
57581
 
         test -z "$ac_c_werror_flag" ||
57582
 
         test ! -s conftest.err
57583
 
       } && test -s conftest$ac_exeext && {
57584
 
         test "$cross_compiling" = yes ||
57585
 
         $as_test_x conftest$ac_exeext
57586
 
       }; then
57587
 
  ac_cv_lib_gd_gdImageGifCtx=yes
57588
 
else
57589
 
  $as_echo "$as_me: failed program was:" >&5
57590
 
sed 's/^/| /' conftest.$ac_ext >&5
57591
 
 
57592
 
        ac_cv_lib_gd_gdImageGifCtx=no
57593
 
fi
57594
 
 
57595
 
rm -rf conftest.dSYM
57596
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57597
 
      conftest$ac_exeext conftest.$ac_ext
57598
 
LIBS=$ac_check_lib_save_LIBS
57599
 
fi
57600
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGifCtx" >&5
57601
 
$as_echo "$ac_cv_lib_gd_gdImageGifCtx" >&6; }
57602
 
if test "x$ac_cv_lib_gd_gdImageGifCtx" = x""yes; then
57603
 
  
57604
 
    LDFLAGS=$save_old_LDFLAGS
57605
 
    ext_shared=$save_ext_shared
57606
 
    
57607
 
cat >>confdefs.h <<\_ACEOF
57608
 
@%:@define HAVE_GD_GIF_CTX 1
57609
 
_ACEOF
57610
 
 
57611
 
  
57612
 
else
57613
 
  
57614
 
    LDFLAGS=$save_old_LDFLAGS
57615
 
    ext_shared=$save_ext_shared
57616
 
    unset ac_cv_lib_gd_gdImageGifCtx
57617
 
    
57618
 
  
57619
 
fi
57620
 
 
57621
 
  
57622
 
  save_old_LDFLAGS=$LDFLAGS
57623
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57624
 
  
57625
 
  save_ext_shared=$ext_shared
57626
 
  ext_shared=yes
57627
 
  
57628
 
  for ac_i in $ac_stuff; do
57629
 
    case $ac_i in
57630
 
    -pthread)
57631
 
      if test "$ext_shared" = "yes"; then
57632
 
        LDFLAGS="$LDFLAGS -pthread"
57633
 
      else
57634
 
        
57635
 
  
57636
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57637
 
  
57638
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57639
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57640
 
    eval "EXTRA_LDFLAGS$unique=set"
57641
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57642
 
  fi
57643
 
 
57644
 
      fi
57645
 
    ;;
57646
 
    -l*)
57647
 
      ac_ii=`echo $ac_i|cut -c 3-`
57648
 
      
57649
 
  
57650
 
  case $ac_ii in
57651
 
  c|c_r|pthread*) ;;
57652
 
  *) 
57653
 
    if test "$ext_shared" = "yes"; then
57654
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
57655
 
    else
57656
 
      
57657
 
  
57658
 
  case $ac_ii in
57659
 
  c|c_r|pthread*) ;;
57660
 
  *) 
57661
 
      LIBS="$LIBS -l$ac_ii" 
57662
 
   ;;
57663
 
  esac
57664
 
 
57665
 
 
57666
 
    fi
57667
 
   ;;
57668
 
  esac
57669
 
 
57670
 
 
57671
 
    ;;
57672
 
    -L*)
57673
 
      ac_ii=`echo $ac_i|cut -c 3-`
57674
 
      
57675
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57676
 
    
57677
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57678
 
    ai_p=$ac_ii
57679
 
  else
57680
 
    
57681
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57682
 
    
57683
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57684
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57685
 
  fi
57686
 
 
57687
 
    
57688
 
      if test "$ext_shared" = "yes"; then
57689
 
        LDFLAGS="-L$ai_p $LDFLAGS"
57690
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57691
 
      else
57692
 
        
57693
 
  
57694
 
  
57695
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57696
 
  
57697
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57698
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57699
 
    eval "LIBPATH$unique=set"
57700
 
    
57701
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57702
 
    LDFLAGS="$LDFLAGS -L$ai_p"
57703
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
57704
 
  
57705
 
  fi
57706
 
 
57707
 
 
57708
 
      fi
57709
 
    
57710
 
  fi
57711
 
 
57712
 
    ;;
57713
 
    esac
57714
 
  done
57715
 
 
57716
 
  { $as_echo "$as_me:$LINENO: checking for gdCacheCreate in -lgd" >&5
57717
 
$as_echo_n "checking for gdCacheCreate in -lgd... " >&6; }
57718
 
if test "${ac_cv_lib_gd_gdCacheCreate+set}" = set; then
57719
 
  $as_echo_n "(cached) " >&6
57720
 
else
57721
 
  ac_check_lib_save_LIBS=$LIBS
57722
 
LIBS="-lgd  $LIBS"
57723
 
cat >conftest.$ac_ext <<_ACEOF
57724
 
/* confdefs.h.  */
57725
 
_ACEOF
57726
 
cat confdefs.h >>conftest.$ac_ext
57727
 
cat >>conftest.$ac_ext <<_ACEOF
57728
 
/* end confdefs.h.  */
57729
 
 
57730
 
/* Override any GCC internal prototype to avoid an error.
57731
 
   Use char because int might match the return type of a GCC
57732
 
   builtin and then its argument prototype would still apply.  */
57733
 
#ifdef __cplusplus
57734
 
extern "C"
57735
 
#endif
57736
 
char gdCacheCreate ();
57737
 
int
57738
 
main ()
57739
 
{
57740
 
return gdCacheCreate ();
57741
 
  ;
57742
 
  return 0;
57743
 
}
57744
 
_ACEOF
57745
 
rm -f conftest.$ac_objext conftest$ac_exeext
57746
 
if { (ac_try="$ac_link"
57747
 
case "(($ac_try" in
57748
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57749
 
  *) ac_try_echo=$ac_try;;
57750
 
esac
57751
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57752
 
$as_echo "$ac_try_echo") >&5
57753
 
  (eval "$ac_link") 2>conftest.er1
57754
 
  ac_status=$?
57755
 
  grep -v '^ *+' conftest.er1 >conftest.err
57756
 
  rm -f conftest.er1
57757
 
  cat conftest.err >&5
57758
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57759
 
  (exit $ac_status); } && {
57760
 
         test -z "$ac_c_werror_flag" ||
57761
 
         test ! -s conftest.err
57762
 
       } && test -s conftest$ac_exeext && {
57763
 
         test "$cross_compiling" = yes ||
57764
 
         $as_test_x conftest$ac_exeext
57765
 
       }; then
57766
 
  ac_cv_lib_gd_gdCacheCreate=yes
57767
 
else
57768
 
  $as_echo "$as_me: failed program was:" >&5
57769
 
sed 's/^/| /' conftest.$ac_ext >&5
57770
 
 
57771
 
        ac_cv_lib_gd_gdCacheCreate=no
57772
 
fi
57773
 
 
57774
 
rm -rf conftest.dSYM
57775
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57776
 
      conftest$ac_exeext conftest.$ac_ext
57777
 
LIBS=$ac_check_lib_save_LIBS
57778
 
fi
57779
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdCacheCreate" >&5
57780
 
$as_echo "$ac_cv_lib_gd_gdCacheCreate" >&6; }
57781
 
if test "x$ac_cv_lib_gd_gdCacheCreate" = x""yes; then
57782
 
  
57783
 
    LDFLAGS=$save_old_LDFLAGS
57784
 
    ext_shared=$save_ext_shared
57785
 
    
57786
 
cat >>confdefs.h <<\_ACEOF
57787
 
@%:@define HAVE_GD_CACHE_CREATE 1
57788
 
_ACEOF
57789
 
 
57790
 
  
57791
 
else
57792
 
  
57793
 
    LDFLAGS=$save_old_LDFLAGS
57794
 
    ext_shared=$save_ext_shared
57795
 
    unset ac_cv_lib_gd_gdCacheCreate
57796
 
    
57797
 
  
57798
 
fi
57799
 
 
57800
 
  
57801
 
  save_old_LDFLAGS=$LDFLAGS
57802
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57803
 
  
57804
 
  save_ext_shared=$ext_shared
57805
 
  ext_shared=yes
57806
 
  
57807
 
  for ac_i in $ac_stuff; do
57808
 
    case $ac_i in
57809
 
    -pthread)
57810
 
      if test "$ext_shared" = "yes"; then
57811
 
        LDFLAGS="$LDFLAGS -pthread"
57812
 
      else
57813
 
        
57814
 
  
57815
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57816
 
  
57817
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57818
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57819
 
    eval "EXTRA_LDFLAGS$unique=set"
57820
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57821
 
  fi
57822
 
 
57823
 
      fi
57824
 
    ;;
57825
 
    -l*)
57826
 
      ac_ii=`echo $ac_i|cut -c 3-`
57827
 
      
57828
 
  
57829
 
  case $ac_ii in
57830
 
  c|c_r|pthread*) ;;
57831
 
  *) 
57832
 
    if test "$ext_shared" = "yes"; then
57833
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
57834
 
    else
57835
 
      
57836
 
  
57837
 
  case $ac_ii in
57838
 
  c|c_r|pthread*) ;;
57839
 
  *) 
57840
 
      LIBS="$LIBS -l$ac_ii" 
57841
 
   ;;
57842
 
  esac
57843
 
 
57844
 
 
57845
 
    fi
57846
 
   ;;
57847
 
  esac
57848
 
 
57849
 
 
57850
 
    ;;
57851
 
    -L*)
57852
 
      ac_ii=`echo $ac_i|cut -c 3-`
57853
 
      
57854
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57855
 
    
57856
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57857
 
    ai_p=$ac_ii
57858
 
  else
57859
 
    
57860
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
57861
 
    
57862
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57863
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
57864
 
  fi
57865
 
 
57866
 
    
57867
 
      if test "$ext_shared" = "yes"; then
57868
 
        LDFLAGS="-L$ai_p $LDFLAGS"
57869
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57870
 
      else
57871
 
        
57872
 
  
57873
 
  
57874
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57875
 
  
57876
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57877
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57878
 
    eval "LIBPATH$unique=set"
57879
 
    
57880
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57881
 
    LDFLAGS="$LDFLAGS -L$ai_p"
57882
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
57883
 
  
57884
 
  fi
57885
 
 
57886
 
 
57887
 
      fi
57888
 
    
57889
 
  fi
57890
 
 
57891
 
    ;;
57892
 
    esac
57893
 
  done
57894
 
 
57895
 
  { $as_echo "$as_me:$LINENO: checking for gdFontCacheShutdown in -lgd" >&5
57896
 
$as_echo_n "checking for gdFontCacheShutdown in -lgd... " >&6; }
57897
 
if test "${ac_cv_lib_gd_gdFontCacheShutdown+set}" = set; then
57898
 
  $as_echo_n "(cached) " >&6
57899
 
else
57900
 
  ac_check_lib_save_LIBS=$LIBS
57901
 
LIBS="-lgd  $LIBS"
57902
 
cat >conftest.$ac_ext <<_ACEOF
57903
 
/* confdefs.h.  */
57904
 
_ACEOF
57905
 
cat confdefs.h >>conftest.$ac_ext
57906
 
cat >>conftest.$ac_ext <<_ACEOF
57907
 
/* end confdefs.h.  */
57908
 
 
57909
 
/* Override any GCC internal prototype to avoid an error.
57910
 
   Use char because int might match the return type of a GCC
57911
 
   builtin and then its argument prototype would still apply.  */
57912
 
#ifdef __cplusplus
57913
 
extern "C"
57914
 
#endif
57915
 
char gdFontCacheShutdown ();
57916
 
int
57917
 
main ()
57918
 
{
57919
 
return gdFontCacheShutdown ();
57920
 
  ;
57921
 
  return 0;
57922
 
}
57923
 
_ACEOF
57924
 
rm -f conftest.$ac_objext conftest$ac_exeext
57925
 
if { (ac_try="$ac_link"
57926
 
case "(($ac_try" in
57927
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57928
 
  *) ac_try_echo=$ac_try;;
57929
 
esac
57930
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57931
 
$as_echo "$ac_try_echo") >&5
57932
 
  (eval "$ac_link") 2>conftest.er1
57933
 
  ac_status=$?
57934
 
  grep -v '^ *+' conftest.er1 >conftest.err
57935
 
  rm -f conftest.er1
57936
 
  cat conftest.err >&5
57937
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57938
 
  (exit $ac_status); } && {
57939
 
         test -z "$ac_c_werror_flag" ||
57940
 
         test ! -s conftest.err
57941
 
       } && test -s conftest$ac_exeext && {
57942
 
         test "$cross_compiling" = yes ||
57943
 
         $as_test_x conftest$ac_exeext
57944
 
       }; then
57945
 
  ac_cv_lib_gd_gdFontCacheShutdown=yes
57946
 
else
57947
 
  $as_echo "$as_me: failed program was:" >&5
57948
 
sed 's/^/| /' conftest.$ac_ext >&5
57949
 
 
57950
 
        ac_cv_lib_gd_gdFontCacheShutdown=no
57951
 
fi
57952
 
 
57953
 
rm -rf conftest.dSYM
57954
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57955
 
      conftest$ac_exeext conftest.$ac_ext
57956
 
LIBS=$ac_check_lib_save_LIBS
57957
 
fi
57958
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdFontCacheShutdown" >&5
57959
 
$as_echo "$ac_cv_lib_gd_gdFontCacheShutdown" >&6; }
57960
 
if test "x$ac_cv_lib_gd_gdFontCacheShutdown" = x""yes; then
57961
 
  
57962
 
    LDFLAGS=$save_old_LDFLAGS
57963
 
    ext_shared=$save_ext_shared
57964
 
    
57965
 
cat >>confdefs.h <<\_ACEOF
57966
 
@%:@define HAVE_GD_FONTCACHESHUTDOWN 1
57967
 
_ACEOF
57968
 
 
57969
 
  
57970
 
else
57971
 
  
57972
 
    LDFLAGS=$save_old_LDFLAGS
57973
 
    ext_shared=$save_ext_shared
57974
 
    unset ac_cv_lib_gd_gdFontCacheShutdown
57975
 
    
57976
 
  
57977
 
fi
57978
 
 
57979
 
  
57980
 
  save_old_LDFLAGS=$LDFLAGS
57981
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
57982
 
  
57983
 
  save_ext_shared=$ext_shared
57984
 
  ext_shared=yes
57985
 
  
57986
 
  for ac_i in $ac_stuff; do
57987
 
    case $ac_i in
57988
 
    -pthread)
57989
 
      if test "$ext_shared" = "yes"; then
57990
 
        LDFLAGS="$LDFLAGS -pthread"
57991
 
      else
57992
 
        
57993
 
  
57994
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57995
 
  
57996
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57997
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
57998
 
    eval "EXTRA_LDFLAGS$unique=set"
57999
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
58000
 
  fi
58001
 
 
58002
 
      fi
58003
 
    ;;
58004
 
    -l*)
58005
 
      ac_ii=`echo $ac_i|cut -c 3-`
58006
 
      
58007
 
  
58008
 
  case $ac_ii in
58009
 
  c|c_r|pthread*) ;;
58010
 
  *) 
58011
 
    if test "$ext_shared" = "yes"; then
58012
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
58013
 
    else
58014
 
      
58015
 
  
58016
 
  case $ac_ii in
58017
 
  c|c_r|pthread*) ;;
58018
 
  *) 
58019
 
      LIBS="$LIBS -l$ac_ii" 
58020
 
   ;;
58021
 
  esac
58022
 
 
58023
 
 
58024
 
    fi
58025
 
   ;;
58026
 
  esac
58027
 
 
58028
 
 
58029
 
    ;;
58030
 
    -L*)
58031
 
      ac_ii=`echo $ac_i|cut -c 3-`
58032
 
      
58033
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
58034
 
    
58035
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
58036
 
    ai_p=$ac_ii
58037
 
  else
58038
 
    
58039
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
58040
 
    
58041
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58042
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
58043
 
  fi
58044
 
 
58045
 
    
58046
 
      if test "$ext_shared" = "yes"; then
58047
 
        LDFLAGS="-L$ai_p $LDFLAGS"
58048
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
58049
 
      else
58050
 
        
58051
 
  
58052
 
  
58053
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58054
 
  
58055
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58056
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
58057
 
    eval "LIBPATH$unique=set"
58058
 
    
58059
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58060
 
    LDFLAGS="$LDFLAGS -L$ai_p"
58061
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
58062
 
  
58063
 
  fi
58064
 
 
58065
 
 
58066
 
      fi
58067
 
    
58068
 
  fi
58069
 
 
58070
 
    ;;
58071
 
    esac
58072
 
  done
58073
 
 
58074
 
  { $as_echo "$as_me:$LINENO: checking for gdFreeFontCache in -lgd" >&5
58075
 
$as_echo_n "checking for gdFreeFontCache in -lgd... " >&6; }
58076
 
if test "${ac_cv_lib_gd_gdFreeFontCache+set}" = set; then
58077
 
  $as_echo_n "(cached) " >&6
58078
 
else
58079
 
  ac_check_lib_save_LIBS=$LIBS
58080
 
LIBS="-lgd  $LIBS"
58081
 
cat >conftest.$ac_ext <<_ACEOF
58082
 
/* confdefs.h.  */
58083
 
_ACEOF
58084
 
cat confdefs.h >>conftest.$ac_ext
58085
 
cat >>conftest.$ac_ext <<_ACEOF
58086
 
/* end confdefs.h.  */
58087
 
 
58088
 
/* Override any GCC internal prototype to avoid an error.
58089
 
   Use char because int might match the return type of a GCC
58090
 
   builtin and then its argument prototype would still apply.  */
58091
 
#ifdef __cplusplus
58092
 
extern "C"
58093
 
#endif
58094
 
char gdFreeFontCache ();
58095
 
int
58096
 
main ()
58097
 
{
58098
 
return gdFreeFontCache ();
58099
 
  ;
58100
 
  return 0;
58101
 
}
58102
 
_ACEOF
58103
 
rm -f conftest.$ac_objext conftest$ac_exeext
58104
 
if { (ac_try="$ac_link"
58105
 
case "(($ac_try" in
58106
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58107
 
  *) ac_try_echo=$ac_try;;
58108
 
esac
58109
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58110
 
$as_echo "$ac_try_echo") >&5
58111
 
  (eval "$ac_link") 2>conftest.er1
58112
 
  ac_status=$?
58113
 
  grep -v '^ *+' conftest.er1 >conftest.err
58114
 
  rm -f conftest.er1
58115
 
  cat conftest.err >&5
58116
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58117
 
  (exit $ac_status); } && {
58118
 
         test -z "$ac_c_werror_flag" ||
58119
 
         test ! -s conftest.err
58120
 
       } && test -s conftest$ac_exeext && {
58121
 
         test "$cross_compiling" = yes ||
58122
 
         $as_test_x conftest$ac_exeext
58123
 
       }; then
58124
 
  ac_cv_lib_gd_gdFreeFontCache=yes
58125
 
else
58126
 
  $as_echo "$as_me: failed program was:" >&5
58127
 
sed 's/^/| /' conftest.$ac_ext >&5
58128
 
 
58129
 
        ac_cv_lib_gd_gdFreeFontCache=no
58130
 
fi
58131
 
 
58132
 
rm -rf conftest.dSYM
58133
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58134
 
      conftest$ac_exeext conftest.$ac_ext
58135
 
LIBS=$ac_check_lib_save_LIBS
58136
 
fi
58137
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdFreeFontCache" >&5
58138
 
$as_echo "$ac_cv_lib_gd_gdFreeFontCache" >&6; }
58139
 
if test "x$ac_cv_lib_gd_gdFreeFontCache" = x""yes; then
58140
 
  
58141
 
    LDFLAGS=$save_old_LDFLAGS
58142
 
    ext_shared=$save_ext_shared
58143
 
    
58144
 
cat >>confdefs.h <<\_ACEOF
58145
 
@%:@define HAVE_GD_FREEFONTCACHE 1
58146
 
_ACEOF
58147
 
 
58148
 
  
58149
 
else
58150
 
  
58151
 
    LDFLAGS=$save_old_LDFLAGS
58152
 
    ext_shared=$save_ext_shared
58153
 
    unset ac_cv_lib_gd_gdFreeFontCache
58154
 
    
58155
 
  
58156
 
fi
58157
 
 
58158
 
  
58159
 
  save_old_LDFLAGS=$LDFLAGS
58160
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
58161
 
  
58162
 
  save_ext_shared=$ext_shared
58163
 
  ext_shared=yes
58164
 
  
58165
 
  for ac_i in $ac_stuff; do
58166
 
    case $ac_i in
58167
 
    -pthread)
58168
 
      if test "$ext_shared" = "yes"; then
58169
 
        LDFLAGS="$LDFLAGS -pthread"
58170
 
      else
58171
 
        
58172
 
  
58173
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
58174
 
  
58175
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
58176
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
58177
 
    eval "EXTRA_LDFLAGS$unique=set"
58178
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
58179
 
  fi
58180
 
 
58181
 
      fi
58182
 
    ;;
58183
 
    -l*)
58184
 
      ac_ii=`echo $ac_i|cut -c 3-`
58185
 
      
58186
 
  
58187
 
  case $ac_ii in
58188
 
  c|c_r|pthread*) ;;
58189
 
  *) 
58190
 
    if test "$ext_shared" = "yes"; then
58191
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
58192
 
    else
58193
 
      
58194
 
  
58195
 
  case $ac_ii in
58196
 
  c|c_r|pthread*) ;;
58197
 
  *) 
58198
 
      LIBS="$LIBS -l$ac_ii" 
58199
 
   ;;
58200
 
  esac
58201
 
 
58202
 
 
58203
 
    fi
58204
 
   ;;
58205
 
  esac
58206
 
 
58207
 
 
58208
 
    ;;
58209
 
    -L*)
58210
 
      ac_ii=`echo $ac_i|cut -c 3-`
58211
 
      
58212
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
58213
 
    
58214
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
58215
 
    ai_p=$ac_ii
58216
 
  else
58217
 
    
58218
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
58219
 
    
58220
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58221
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
58222
 
  fi
58223
 
 
58224
 
    
58225
 
      if test "$ext_shared" = "yes"; then
58226
 
        LDFLAGS="-L$ai_p $LDFLAGS"
58227
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
58228
 
      else
58229
 
        
58230
 
  
58231
 
  
58232
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58233
 
  
58234
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58235
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
58236
 
    eval "LIBPATH$unique=set"
58237
 
    
58238
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58239
 
    LDFLAGS="$LDFLAGS -L$ai_p"
58240
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
58241
 
  
58242
 
  fi
58243
 
 
58244
 
 
58245
 
      fi
58246
 
    
58247
 
  fi
58248
 
 
58249
 
    ;;
58250
 
    esac
58251
 
  done
58252
 
 
58253
 
  { $as_echo "$as_me:$LINENO: checking for gdFontCacheMutexSetup in -lgd" >&5
58254
 
$as_echo_n "checking for gdFontCacheMutexSetup in -lgd... " >&6; }
58255
 
if test "${ac_cv_lib_gd_gdFontCacheMutexSetup+set}" = set; then
58256
 
  $as_echo_n "(cached) " >&6
58257
 
else
58258
 
  ac_check_lib_save_LIBS=$LIBS
58259
 
LIBS="-lgd  $LIBS"
58260
 
cat >conftest.$ac_ext <<_ACEOF
58261
 
/* confdefs.h.  */
58262
 
_ACEOF
58263
 
cat confdefs.h >>conftest.$ac_ext
58264
 
cat >>conftest.$ac_ext <<_ACEOF
58265
 
/* end confdefs.h.  */
58266
 
 
58267
 
/* Override any GCC internal prototype to avoid an error.
58268
 
   Use char because int might match the return type of a GCC
58269
 
   builtin and then its argument prototype would still apply.  */
58270
 
#ifdef __cplusplus
58271
 
extern "C"
58272
 
#endif
58273
 
char gdFontCacheMutexSetup ();
58274
 
int
58275
 
main ()
58276
 
{
58277
 
return gdFontCacheMutexSetup ();
58278
 
  ;
58279
 
  return 0;
58280
 
}
58281
 
_ACEOF
58282
 
rm -f conftest.$ac_objext conftest$ac_exeext
58283
 
if { (ac_try="$ac_link"
58284
 
case "(($ac_try" in
58285
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58286
 
  *) ac_try_echo=$ac_try;;
58287
 
esac
58288
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58289
 
$as_echo "$ac_try_echo") >&5
58290
 
  (eval "$ac_link") 2>conftest.er1
58291
 
  ac_status=$?
58292
 
  grep -v '^ *+' conftest.er1 >conftest.err
58293
 
  rm -f conftest.er1
58294
 
  cat conftest.err >&5
58295
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58296
 
  (exit $ac_status); } && {
58297
 
         test -z "$ac_c_werror_flag" ||
58298
 
         test ! -s conftest.err
58299
 
       } && test -s conftest$ac_exeext && {
58300
 
         test "$cross_compiling" = yes ||
58301
 
         $as_test_x conftest$ac_exeext
58302
 
       }; then
58303
 
  ac_cv_lib_gd_gdFontCacheMutexSetup=yes
58304
 
else
58305
 
  $as_echo "$as_me: failed program was:" >&5
58306
 
sed 's/^/| /' conftest.$ac_ext >&5
58307
 
 
58308
 
        ac_cv_lib_gd_gdFontCacheMutexSetup=no
58309
 
fi
58310
 
 
58311
 
rm -rf conftest.dSYM
58312
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58313
 
      conftest$ac_exeext conftest.$ac_ext
58314
 
LIBS=$ac_check_lib_save_LIBS
58315
 
fi
58316
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdFontCacheMutexSetup" >&5
58317
 
$as_echo "$ac_cv_lib_gd_gdFontCacheMutexSetup" >&6; }
58318
 
if test "x$ac_cv_lib_gd_gdFontCacheMutexSetup" = x""yes; then
58319
 
  
58320
 
    LDFLAGS=$save_old_LDFLAGS
58321
 
    ext_shared=$save_ext_shared
58322
 
    
58323
 
cat >>confdefs.h <<\_ACEOF
58324
 
@%:@define HAVE_GD_FONTMUTEX 1
58325
 
_ACEOF
58326
 
 
58327
 
  
58328
 
else
58329
 
  
58330
 
    LDFLAGS=$save_old_LDFLAGS
58331
 
    ext_shared=$save_ext_shared
58332
 
    unset ac_cv_lib_gd_gdFontCacheMutexSetup
58333
 
    
58334
 
  
58335
 
fi
58336
 
 
58337
 
  
58338
 
  save_old_LDFLAGS=$LDFLAGS
58339
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
58340
 
  
58341
 
  save_ext_shared=$ext_shared
58342
 
  ext_shared=yes
58343
 
  
58344
 
  for ac_i in $ac_stuff; do
58345
 
    case $ac_i in
58346
 
    -pthread)
58347
 
      if test "$ext_shared" = "yes"; then
58348
 
        LDFLAGS="$LDFLAGS -pthread"
58349
 
      else
58350
 
        
58351
 
  
58352
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
58353
 
  
58354
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
58355
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
58356
 
    eval "EXTRA_LDFLAGS$unique=set"
58357
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
58358
 
  fi
58359
 
 
58360
 
      fi
58361
 
    ;;
58362
 
    -l*)
58363
 
      ac_ii=`echo $ac_i|cut -c 3-`
58364
 
      
58365
 
  
58366
 
  case $ac_ii in
58367
 
  c|c_r|pthread*) ;;
58368
 
  *) 
58369
 
    if test "$ext_shared" = "yes"; then
58370
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
58371
 
    else
58372
 
      
58373
 
  
58374
 
  case $ac_ii in
58375
 
  c|c_r|pthread*) ;;
58376
 
  *) 
58377
 
      LIBS="$LIBS -l$ac_ii" 
58378
 
   ;;
58379
 
  esac
58380
 
 
58381
 
 
58382
 
    fi
58383
 
   ;;
58384
 
  esac
58385
 
 
58386
 
 
58387
 
    ;;
58388
 
    -L*)
58389
 
      ac_ii=`echo $ac_i|cut -c 3-`
58390
 
      
58391
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
58392
 
    
58393
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
58394
 
    ai_p=$ac_ii
58395
 
  else
58396
 
    
58397
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
58398
 
    
58399
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58400
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
58401
 
  fi
58402
 
 
58403
 
    
58404
 
      if test "$ext_shared" = "yes"; then
58405
 
        LDFLAGS="-L$ai_p $LDFLAGS"
58406
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
58407
 
      else
58408
 
        
58409
 
  
58410
 
  
58411
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58412
 
  
58413
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58414
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
58415
 
    eval "LIBPATH$unique=set"
58416
 
    
58417
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58418
 
    LDFLAGS="$LDFLAGS -L$ai_p"
58419
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
58420
 
  
58421
 
  fi
58422
 
 
58423
 
 
58424
 
      fi
58425
 
    
58426
 
  fi
58427
 
 
58428
 
    ;;
58429
 
    esac
58430
 
  done
58431
 
 
58432
 
  { $as_echo "$as_me:$LINENO: checking for gdNewDynamicCtxEx in -lgd" >&5
58433
 
$as_echo_n "checking for gdNewDynamicCtxEx in -lgd... " >&6; }
58434
 
if test "${ac_cv_lib_gd_gdNewDynamicCtxEx+set}" = set; then
58435
 
  $as_echo_n "(cached) " >&6
58436
 
else
58437
 
  ac_check_lib_save_LIBS=$LIBS
58438
 
LIBS="-lgd  $LIBS"
58439
 
cat >conftest.$ac_ext <<_ACEOF
58440
 
/* confdefs.h.  */
58441
 
_ACEOF
58442
 
cat confdefs.h >>conftest.$ac_ext
58443
 
cat >>conftest.$ac_ext <<_ACEOF
58444
 
/* end confdefs.h.  */
58445
 
 
58446
 
/* Override any GCC internal prototype to avoid an error.
58447
 
   Use char because int might match the return type of a GCC
58448
 
   builtin and then its argument prototype would still apply.  */
58449
 
#ifdef __cplusplus
58450
 
extern "C"
58451
 
#endif
58452
 
char gdNewDynamicCtxEx ();
58453
 
int
58454
 
main ()
58455
 
{
58456
 
return gdNewDynamicCtxEx ();
58457
 
  ;
58458
 
  return 0;
58459
 
}
58460
 
_ACEOF
58461
 
rm -f conftest.$ac_objext conftest$ac_exeext
58462
 
if { (ac_try="$ac_link"
58463
 
case "(($ac_try" in
58464
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58465
 
  *) ac_try_echo=$ac_try;;
58466
 
esac
58467
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58468
 
$as_echo "$ac_try_echo") >&5
58469
 
  (eval "$ac_link") 2>conftest.er1
58470
 
  ac_status=$?
58471
 
  grep -v '^ *+' conftest.er1 >conftest.err
58472
 
  rm -f conftest.er1
58473
 
  cat conftest.err >&5
58474
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58475
 
  (exit $ac_status); } && {
58476
 
         test -z "$ac_c_werror_flag" ||
58477
 
         test ! -s conftest.err
58478
 
       } && test -s conftest$ac_exeext && {
58479
 
         test "$cross_compiling" = yes ||
58480
 
         $as_test_x conftest$ac_exeext
58481
 
       }; then
58482
 
  ac_cv_lib_gd_gdNewDynamicCtxEx=yes
58483
 
else
58484
 
  $as_echo "$as_me: failed program was:" >&5
58485
 
sed 's/^/| /' conftest.$ac_ext >&5
58486
 
 
58487
 
        ac_cv_lib_gd_gdNewDynamicCtxEx=no
58488
 
fi
58489
 
 
58490
 
rm -rf conftest.dSYM
58491
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58492
 
      conftest$ac_exeext conftest.$ac_ext
58493
 
LIBS=$ac_check_lib_save_LIBS
58494
 
fi
58495
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdNewDynamicCtxEx" >&5
58496
 
$as_echo "$ac_cv_lib_gd_gdNewDynamicCtxEx" >&6; }
58497
 
if test "x$ac_cv_lib_gd_gdNewDynamicCtxEx" = x""yes; then
58498
 
  
58499
 
    LDFLAGS=$save_old_LDFLAGS
58500
 
    ext_shared=$save_ext_shared
58501
 
    
58502
 
cat >>confdefs.h <<\_ACEOF
58503
 
@%:@define HAVE_GD_DYNAMIC_CTX_EX 1
58504
 
_ACEOF
58505
 
 
58506
 
  
58507
 
else
58508
 
  
58509
 
    LDFLAGS=$save_old_LDFLAGS
58510
 
    ext_shared=$save_ext_shared
58511
 
    unset ac_cv_lib_gd_gdNewDynamicCtxEx
58512
 
    
58513
 
  
58514
 
fi
58515
 
 
58516
 
 
58517
 
  elif test -z "$GD_INCLUDE"; then
58518
 
    { { $as_echo "$as_me:$LINENO: error: Unable to find gd.h anywhere under $PHP_GD" >&5
58519
 
$as_echo "$as_me: error: Unable to find gd.h anywhere under $PHP_GD" >&2;}
58520
 
   { (exit 1); exit 1; }; }
58521
 
  else
58522
 
    { { $as_echo "$as_me:$LINENO: error: Unable to find libgd.(a|so) anywhere under $PHP_GD" >&5
58523
 
$as_echo "$as_me: error: Unable to find libgd.(a|so) anywhere under $PHP_GD" >&2;}
58524
 
   { (exit 1); exit 1; }; }
58525
 
  fi
58526
 
 
58527
 
  
58528
 
  if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
58529
 
    GD_INCLUDE=$GD_INCLUDE
58530
 
  else
58531
 
    
58532
 
    ep_dir="`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
58533
 
    
58534
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58535
 
    GD_INCLUDE="$ep_realdir/`basename \"$GD_INCLUDE\"`"
58536
 
  fi
58537
 
 
58538
 
 
58539
 
        old_CPPFLAGS=$CPPFLAGS
58540
 
  CPPFLAGS=-I$GD_INCLUDE
58541
 
  cat >conftest.$ac_ext <<_ACEOF
58542
 
/* confdefs.h.  */
58543
 
_ACEOF
58544
 
cat confdefs.h >>conftest.$ac_ext
58545
 
cat >>conftest.$ac_ext <<_ACEOF
58546
 
/* end confdefs.h.  */
58547
 
 
58548
 
#include <gd.h>
58549
 
#include <stdlib.h>
58550
 
  
58551
 
int
58552
 
main ()
58553
 
{
58554
 
 
58555
 
gdIOCtx *ctx;
58556
 
ctx = malloc(sizeof(gdIOCtx));
58557
 
ctx->gd_free = 1;
58558
 
  
58559
 
  ;
58560
 
  return 0;
58561
 
}
58562
 
_ACEOF
58563
 
rm -f conftest.$ac_objext
58564
 
if { (ac_try="$ac_compile"
58565
 
case "(($ac_try" in
58566
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58567
 
  *) ac_try_echo=$ac_try;;
58568
 
esac
58569
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58570
 
$as_echo "$ac_try_echo") >&5
58571
 
  (eval "$ac_compile") 2>conftest.er1
58572
 
  ac_status=$?
58573
 
  grep -v '^ *+' conftest.er1 >conftest.err
58574
 
  rm -f conftest.er1
58575
 
  cat conftest.err >&5
58576
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58577
 
  (exit $ac_status); } && {
58578
 
         test -z "$ac_c_werror_flag" ||
58579
 
         test ! -s conftest.err
58580
 
       } && test -s conftest.$ac_objext; then
58581
 
  
58582
 
    
58583
 
cat >>confdefs.h <<\_ACEOF
58584
 
@%:@define HAVE_LIBGD204 1
58585
 
_ACEOF
58586
 
 
58587
 
  
58588
 
else
58589
 
  $as_echo "$as_me: failed program was:" >&5
58590
 
sed 's/^/| /' conftest.$ac_ext >&5
58591
 
 
58592
 
        
58593
 
fi
58594
 
 
58595
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58596
 
  CPPFLAGS=$old_CPPFLAGS
58597
 
 
58598
 
 fi
58599
 
fi
58600
 
 
58601
 
if test "$PHP_GD" != "no"; then
58602
 
  
58603
 
  ext_builddir=ext/gd
58604
 
  ext_srcdir=$abs_srcdir/ext/gd
58605
 
 
58606
 
  ac_extra=`echo "\\$(GDLIB_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
58607
 
 
58608
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
58609
 
    PHP_GD_SHARED=no
58610
 
    
58611
 
  
58612
 
  case ext/gd in
58613
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
58614
 
  /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
58615
 
  *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
58616
 
  esac
58617
 
  
58618
 
  
58619
 
 
58620
 
  b_c_pre=$php_c_pre
58621
 
  b_cxx_pre=$php_cxx_pre
58622
 
  b_c_meta=$php_c_meta
58623
 
  b_cxx_meta=$php_cxx_meta
58624
 
  b_c_post=$php_c_post
58625
 
  b_cxx_post=$php_cxx_post
58626
 
  b_lo=$php_lo
58627
 
 
58628
 
 
58629
 
  old_IFS=$IFS
58630
 
  for ac_src in gd.c $extra_sources; do
58631
 
  
58632
 
      IFS=.
58633
 
      set $ac_src
58634
 
      ac_obj=$1
58635
 
      IFS=$old_IFS
58636
 
      
58637
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
58638
 
 
58639
 
      case $ac_src in
58640
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58641
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58642
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58643
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
58644
 
      esac
58645
 
 
58646
 
    cat >>Makefile.objects<<EOF
58647
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
58648
 
        $ac_comp
58649
 
EOF
58650
 
  done
58651
 
 
58652
 
 
58653
 
    EXT_STATIC="$EXT_STATIC gd"
58654
 
    if test "$ext_shared" != "nocli"; then
58655
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
58656
 
    fi
58657
 
  else
58658
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
58659
 
      PHP_GD_SHARED=yes
58660
 
      
58661
 
  case ext/gd in
58662
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
58663
 
  /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
58664
 
  *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
58665
 
  esac
58666
 
  
58667
 
  
58668
 
 
58669
 
  b_c_pre=$shared_c_pre
58670
 
  b_cxx_pre=$shared_cxx_pre
58671
 
  b_c_meta=$shared_c_meta
58672
 
  b_cxx_meta=$shared_cxx_meta
58673
 
  b_c_post=$shared_c_post
58674
 
  b_cxx_post=$shared_cxx_post
58675
 
  b_lo=$shared_lo
58676
 
 
58677
 
 
58678
 
  old_IFS=$IFS
58679
 
  for ac_src in gd.c $extra_sources; do
58680
 
  
58681
 
      IFS=.
58682
 
      set $ac_src
58683
 
      ac_obj=$1
58684
 
      IFS=$old_IFS
58685
 
      
58686
 
      shared_objects_gd="$shared_objects_gd $ac_bdir$ac_obj.lo"
58687
 
 
58688
 
      case $ac_src in
58689
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58690
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58691
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58692
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
58693
 
      esac
58694
 
 
58695
 
    cat >>Makefile.objects<<EOF
58696
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
58697
 
        $ac_comp
58698
 
EOF
58699
 
  done
58700
 
 
58701
 
      case $host_alias in
58702
 
        *netware*)
58703
 
          
58704
 
  install_modules="install-modules"
58705
 
 
58706
 
  case $host_alias in
58707
 
    *aix*)
58708
 
      suffix=so
58709
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpgd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(PHPGD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpgd.so '$ext_builddir'/phpgd.so'
58710
 
      ;;
58711
 
    *netware*)
58712
 
      suffix=nlm
58713
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) -L$(top_builddir)/netware -lphp5lib $(GD_SHARED_LIBADD)'
58714
 
      ;;
58715
 
    *)
58716
 
      suffix=la
58717
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(PHPGD_SHARED_LIBADD)'
58718
 
      ;;
58719
 
  esac
58720
 
 
58721
 
  if test "x" = "xyes"; then
58722
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgd.$suffix"
58723
 
  else
58724
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgd.$suffix"
58725
 
  fi
58726
 
  
58727
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
58728
 
 
58729
 
  cat >>Makefile.objects<<EOF
58730
 
\$(phplibdir)/phpgd.$suffix: $ext_builddir/phpgd.$suffix
58731
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpgd.$suffix \$(phplibdir)
58732
 
 
58733
 
$ext_builddir/phpgd.$suffix: \$(shared_objects_gd) \$(PHPGD_SHARED_DEPENDENCIES)
58734
 
        $link_cmd
58735
 
 
58736
 
EOF
58737
 
 
58738
 
          ;;
58739
 
        *)
58740
 
          
58741
 
  install_modules="install-modules"
58742
 
 
58743
 
  case $host_alias in
58744
 
    *aix*)
58745
 
      suffix=so
58746
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/gd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(GD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/gd.so '$ext_builddir'/gd.so'
58747
 
      ;;
58748
 
    *netware*)
58749
 
      suffix=nlm
58750
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
58751
 
      ;;
58752
 
    *)
58753
 
      suffix=la
58754
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gd) $(GD_SHARED_LIBADD)'
58755
 
      ;;
58756
 
  esac
58757
 
 
58758
 
  if test "x" = "xyes"; then
58759
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gd.$suffix"
58760
 
  else
58761
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/gd.$suffix"
58762
 
  fi
58763
 
  
58764
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
58765
 
 
58766
 
  cat >>Makefile.objects<<EOF
58767
 
\$(phplibdir)/gd.$suffix: $ext_builddir/gd.$suffix
58768
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/gd.$suffix \$(phplibdir)
58769
 
 
58770
 
$ext_builddir/gd.$suffix: \$(shared_objects_gd) \$(GD_SHARED_DEPENDENCIES)
58771
 
        $link_cmd
58772
 
 
58773
 
EOF
58774
 
 
58775
 
          ;;
58776
 
      esac
58777
 
      
58778
 
cat >>confdefs.h <<_ACEOF
58779
 
@%:@define COMPILE_DL_GD 1
58780
 
_ACEOF
58781
 
 
58782
 
    fi
58783
 
  fi
58784
 
 
58785
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
58786
 
    PHP_GD_SHARED=no
58787
 
    case "$PHP_SAPI" in
58788
 
      cgi|embed)
58789
 
        
58790
 
  
58791
 
  case ext/gd in
58792
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
58793
 
  /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
58794
 
  *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
58795
 
  esac
58796
 
  
58797
 
  
58798
 
 
58799
 
  b_c_pre=$php_c_pre
58800
 
  b_cxx_pre=$php_cxx_pre
58801
 
  b_c_meta=$php_c_meta
58802
 
  b_cxx_meta=$php_cxx_meta
58803
 
  b_c_post=$php_c_post
58804
 
  b_cxx_post=$php_cxx_post
58805
 
  b_lo=$php_lo
58806
 
 
58807
 
 
58808
 
  old_IFS=$IFS
58809
 
  for ac_src in gd.c $extra_sources; do
58810
 
  
58811
 
      IFS=.
58812
 
      set $ac_src
58813
 
      ac_obj=$1
58814
 
      IFS=$old_IFS
58815
 
      
58816
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
58817
 
 
58818
 
      case $ac_src in
58819
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58820
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58821
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58822
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
58823
 
      esac
58824
 
 
58825
 
    cat >>Makefile.objects<<EOF
58826
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
58827
 
        $ac_comp
58828
 
EOF
58829
 
  done
58830
 
 
58831
 
 
58832
 
        EXT_STATIC="$EXT_STATIC gd"
58833
 
        ;;
58834
 
      *)
58835
 
        
58836
 
  
58837
 
  case ext/gd in
58838
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
58839
 
  /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
58840
 
  *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
58841
 
  esac
58842
 
  
58843
 
  
58844
 
 
58845
 
  b_c_pre=$php_c_pre
58846
 
  b_cxx_pre=$php_cxx_pre
58847
 
  b_c_meta=$php_c_meta
58848
 
  b_cxx_meta=$php_cxx_meta
58849
 
  b_c_post=$php_c_post
58850
 
  b_cxx_post=$php_cxx_post
58851
 
  b_lo=$php_lo
58852
 
 
58853
 
 
58854
 
  old_IFS=$IFS
58855
 
  for ac_src in gd.c $extra_sources; do
58856
 
  
58857
 
      IFS=.
58858
 
      set $ac_src
58859
 
      ac_obj=$1
58860
 
      IFS=$old_IFS
58861
 
      
58862
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
58863
 
 
58864
 
      case $ac_src in
58865
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58866
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58867
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
58868
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
58869
 
      esac
58870
 
 
58871
 
    cat >>Makefile.objects<<EOF
58872
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
58873
 
        $ac_comp
58874
 
EOF
58875
 
  done
58876
 
 
58877
 
 
58878
 
        ;;
58879
 
    esac
58880
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
58881
 
  fi
58882
 
  
58883
 
  
58884
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
58885
 
  
58886
 
 
58887
 
 
58888
 
  if test "$ext_builddir" = "."; then
58889
 
    PHP_PECL_EXTENSION=gd
58890
 
    
58891
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
58892
 
 
58893
 
  fi
58894
 
 
58895
 
 
58896
 
  
58897
 
  
58898
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/libgd"
58899
 
  
58900
 
 
58901
 
 
58902
 
  if test "$GD_MODULE_TYPE" = "builtin"; then
58903
 
    GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS"
58904
 
    GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
58905
 
 
58906
 
    
58907
 
  old_LIBS=$LIBS
58908
 
  LIBS=" $GD_SHARED_LIBADD  $LIBS"
58909
 
  if test "$cross_compiling" = yes; then
58910
 
  
58911
 
    LIBS=$old_LIBS
58912
 
  
58913
 
else
58914
 
  cat >conftest.$ac_ext <<_ACEOF
58915
 
/* confdefs.h.  */
58916
 
_ACEOF
58917
 
cat confdefs.h >>conftest.$ac_ext
58918
 
cat >>conftest.$ac_ext <<_ACEOF
58919
 
/* end confdefs.h.  */
58920
 
 
58921
 
    char foobar () {}
58922
 
    char foobar();
58923
 
    int main() {
58924
 
      foobar();
58925
 
      return 0;
58926
 
    }
58927
 
  
58928
 
_ACEOF
58929
 
rm -f conftest$ac_exeext
58930
 
if { (ac_try="$ac_link"
58931
 
case "(($ac_try" in
58932
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58933
 
  *) ac_try_echo=$ac_try;;
58934
 
esac
58935
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58936
 
$as_echo "$ac_try_echo") >&5
58937
 
  (eval "$ac_link") 2>&5
58938
 
  ac_status=$?
58939
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58940
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58941
 
  { (case "(($ac_try" in
58942
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58943
 
  *) ac_try_echo=$ac_try;;
58944
 
esac
58945
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58946
 
$as_echo "$ac_try_echo") >&5
58947
 
  (eval "$ac_try") 2>&5
58948
 
  ac_status=$?
58949
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58950
 
  (exit $ac_status); }; }; then
58951
 
  
58952
 
    LIBS=$old_LIBS
58953
 
    
58954
 
  
58955
 
else
58956
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
58957
 
$as_echo "$as_me: failed program was:" >&5
58958
 
sed 's/^/| /' conftest.$ac_ext >&5
58959
 
 
58960
 
( exit $ac_status )
58961
 
 
58962
 
    LIBS=$old_LIBS
58963
 
    
58964
 
      { { $as_echo "$as_me:$LINENO: error: GD build test failed. Please check the config.log for details." >&5
58965
 
$as_echo "$as_me: error: GD build test failed. Please check the config.log for details." >&2;}
58966
 
   { (exit 1); exit 1; }; }
58967
 
    
58968
 
  
58969
 
fi
58970
 
rm -rf conftest.dSYM
58971
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58972
 
fi
58973
 
 
58974
 
 
58975
 
 
58976
 
  else
58977
 
    GD_HEADER_DIRS="ext/gd/"
58978
 
    GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS"
58979
 
    
58980
 
  if test "$GD_INCLUDE" != "/usr/include"; then
58981
 
    
58982
 
  if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
58983
 
    ai_p=$GD_INCLUDE
58984
 
  else
58985
 
    
58986
 
    ep_dir="`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
58987
 
    
58988
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58989
 
    ai_p="$ep_realdir/`basename \"$GD_INCLUDE\"`"
58990
 
  fi
58991
 
 
58992
 
    
58993
 
  
58994
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58995
 
  
58996
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
58997
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
58998
 
    eval "INCLUDEPATH$unique=set"
58999
 
    
59000
 
      if test ""; then
59001
 
        INCLUDES="-I$ai_p $INCLUDES"
59002
 
      else
59003
 
        INCLUDES="$INCLUDES -I$ai_p"
59004
 
      fi
59005
 
    
59006
 
  fi
59007
 
 
59008
 
  fi
59009
 
 
59010
 
    
59011
 
  save_old_LDFLAGS=$LDFLAGS
59012
 
  ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
59013
 
  
59014
 
  save_ext_shared=$ext_shared
59015
 
  ext_shared=yes
59016
 
  
59017
 
  for ac_i in $ac_stuff; do
59018
 
    case $ac_i in
59019
 
    -pthread)
59020
 
      if test "$ext_shared" = "yes"; then
59021
 
        LDFLAGS="$LDFLAGS -pthread"
59022
 
      else
59023
 
        
59024
 
  
59025
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
59026
 
  
59027
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
59028
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
59029
 
    eval "EXTRA_LDFLAGS$unique=set"
59030
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
59031
 
  fi
59032
 
 
59033
 
      fi
59034
 
    ;;
59035
 
    -l*)
59036
 
      ac_ii=`echo $ac_i|cut -c 3-`
59037
 
      
59038
 
  
59039
 
  case $ac_ii in
59040
 
  c|c_r|pthread*) ;;
59041
 
  *) 
59042
 
    if test "$ext_shared" = "yes"; then
59043
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
59044
 
    else
59045
 
      
59046
 
  
59047
 
  case $ac_ii in
59048
 
  c|c_r|pthread*) ;;
59049
 
  *) 
59050
 
      LIBS="$LIBS -l$ac_ii" 
59051
 
   ;;
59052
 
  esac
59053
 
 
59054
 
 
59055
 
    fi
59056
 
   ;;
59057
 
  esac
59058
 
 
59059
 
 
59060
 
    ;;
59061
 
    -L*)
59062
 
      ac_ii=`echo $ac_i|cut -c 3-`
59063
 
      
59064
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
59065
 
    
59066
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
59067
 
    ai_p=$ac_ii
59068
 
  else
59069
 
    
59070
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
59071
 
    
59072
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59073
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
59074
 
  fi
59075
 
 
59076
 
    
59077
 
      if test "$ext_shared" = "yes"; then
59078
 
        LDFLAGS="-L$ai_p $LDFLAGS"
59079
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
59080
 
      else
59081
 
        
59082
 
  
59083
 
  
59084
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59085
 
  
59086
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59087
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
59088
 
    eval "LIBPATH$unique=set"
59089
 
    
59090
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59091
 
    LDFLAGS="$LDFLAGS -L$ai_p"
59092
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
59093
 
  
59094
 
  fi
59095
 
 
59096
 
 
59097
 
      fi
59098
 
    
59099
 
  fi
59100
 
 
59101
 
    ;;
59102
 
    esac
59103
 
  done
59104
 
 
59105
 
  { $as_echo "$as_me:$LINENO: checking for gdImageCreate in -lgd" >&5
59106
 
$as_echo_n "checking for gdImageCreate in -lgd... " >&6; }
59107
 
if test "${ac_cv_lib_gd_gdImageCreate+set}" = set; then
59108
 
  $as_echo_n "(cached) " >&6
59109
 
else
59110
 
  ac_check_lib_save_LIBS=$LIBS
59111
 
LIBS="-lgd  $LIBS"
59112
 
cat >conftest.$ac_ext <<_ACEOF
59113
 
/* confdefs.h.  */
59114
 
_ACEOF
59115
 
cat confdefs.h >>conftest.$ac_ext
59116
 
cat >>conftest.$ac_ext <<_ACEOF
59117
 
/* end confdefs.h.  */
59118
 
 
59119
 
/* Override any GCC internal prototype to avoid an error.
59120
 
   Use char because int might match the return type of a GCC
59121
 
   builtin and then its argument prototype would still apply.  */
59122
 
#ifdef __cplusplus
59123
 
extern "C"
59124
 
#endif
59125
 
char gdImageCreate ();
59126
 
int
59127
 
main ()
59128
 
{
59129
 
return gdImageCreate ();
59130
 
  ;
59131
 
  return 0;
59132
 
}
59133
 
_ACEOF
59134
 
rm -f conftest.$ac_objext conftest$ac_exeext
59135
 
if { (ac_try="$ac_link"
59136
 
case "(($ac_try" in
59137
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59138
 
  *) ac_try_echo=$ac_try;;
59139
 
esac
59140
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59141
 
$as_echo "$ac_try_echo") >&5
59142
 
  (eval "$ac_link") 2>conftest.er1
59143
 
  ac_status=$?
59144
 
  grep -v '^ *+' conftest.er1 >conftest.err
59145
 
  rm -f conftest.er1
59146
 
  cat conftest.err >&5
59147
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59148
 
  (exit $ac_status); } && {
59149
 
         test -z "$ac_c_werror_flag" ||
59150
 
         test ! -s conftest.err
59151
 
       } && test -s conftest$ac_exeext && {
59152
 
         test "$cross_compiling" = yes ||
59153
 
         $as_test_x conftest$ac_exeext
59154
 
       }; then
59155
 
  ac_cv_lib_gd_gdImageCreate=yes
59156
 
else
59157
 
  $as_echo "$as_me: failed program was:" >&5
59158
 
sed 's/^/| /' conftest.$ac_ext >&5
59159
 
 
59160
 
        ac_cv_lib_gd_gdImageCreate=no
59161
 
fi
59162
 
 
59163
 
rm -rf conftest.dSYM
59164
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59165
 
      conftest$ac_exeext conftest.$ac_ext
59166
 
LIBS=$ac_check_lib_save_LIBS
59167
 
fi
59168
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreate" >&5
59169
 
$as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; }
59170
 
if test "x$ac_cv_lib_gd_gdImageCreate" = x""yes; then
59171
 
  
59172
 
    LDFLAGS=$save_old_LDFLAGS
59173
 
    ext_shared=$save_ext_shared
59174
 
    
59175
 
  
59176
 
else
59177
 
  
59178
 
    LDFLAGS=$save_old_LDFLAGS
59179
 
    ext_shared=$save_ext_shared
59180
 
    unset ac_cv_lib_gd_gdImageCreate
59181
 
    
59182
 
      { { $as_echo "$as_me:$LINENO: error: GD build test failed. Please check the config.log for details." >&5
59183
 
$as_echo "$as_me: error: GD build test failed. Please check the config.log for details." >&2;}
59184
 
   { (exit 1); exit 1; }; }
59185
 
    
59186
 
  
59187
 
fi
59188
 
 
59189
 
  fi
59190
 
 
59191
 
  
59192
 
  
59193
 
    for header_file in $GD_HEADER_DIRS; do
59194
 
      
59195
 
  
59196
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
59197
 
  
59198
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
59199
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
59200
 
    eval "INSTALLHEADERS$unique=set"
59201
 
    
59202
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
59203
 
      
59204
 
  fi
59205
 
 
59206
 
    done 
59207
 
  
59208
 
 
59209
 
  
59210
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS"
59211
 
 
59212
 
  
59213
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD"
59214
 
 
59215
 
fi
59216
 
 
59217
 
 
59218
 
 
59219
 
php_with_gettext=no
59220
 
 
59221
 
{ $as_echo "$as_me:$LINENO: checking for GNU gettext support" >&5
59222
 
$as_echo_n "checking for GNU gettext support... " >&6; }
59223
 
 
59224
 
@%:@ Check whether --with-gettext was given.
59225
 
if test "${with_gettext+set}" = set; then
59226
 
  withval=$with_gettext; PHP_GETTEXT=$withval
59227
 
else
59228
 
  
59229
 
  PHP_GETTEXT=no
59230
 
  test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL
59231
 
 
59232
 
fi
59233
 
 
59234
 
 
59235
 
 
59236
 
ext_output="yes, shared"
59237
 
ext_shared=yes
59238
 
case $PHP_GETTEXT in
59239
 
shared,*)
59240
 
  PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'`
59241
 
  ;;
59242
 
shared)
59243
 
  PHP_GETTEXT=yes
59244
 
  ;;
59245
 
no)
59246
 
  ext_output=no
59247
 
  ext_shared=no
59248
 
  ;;
59249
 
*)
59250
 
  ext_output=yes
59251
 
  ext_shared=no
59252
 
  ;;
59253
 
esac
59254
 
 
59255
 
 
59256
 
 
59257
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
59258
 
$as_echo "$ext_output" >&6; }
59259
 
 
59260
 
 
59261
 
 
59262
 
 
59263
 
if test "$PHP_GETTEXT" != "no"; then
59264
 
  for i in $PHP_GETTEXT /usr/local /usr; do
59265
 
    test -r $i/include/libintl.h && GETTEXT_DIR=$i && break
59266
 
  done
59267
 
 
59268
 
  if test -z "$GETTEXT_DIR"; then
59269
 
    { { $as_echo "$as_me:$LINENO: error: Cannot locate header file libintl.h" >&5
59270
 
$as_echo "$as_me: error: Cannot locate header file libintl.h" >&2;}
59271
 
   { (exit 1); exit 1; }; }
59272
 
  fi
59273
 
 
59274
 
  GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR
59275
 
  GETTEXT_INCDIR=$GETTEXT_DIR/include
59276
 
  
59277
 
  O_LDFLAGS=$LDFLAGS
59278
 
  LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR"
59279
 
  { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
59280
 
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
59281
 
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
59282
 
  $as_echo_n "(cached) " >&6
59283
 
else
59284
 
  ac_check_lib_save_LIBS=$LIBS
59285
 
LIBS="-lintl  $LIBS"
59286
 
cat >conftest.$ac_ext <<_ACEOF
59287
 
/* confdefs.h.  */
59288
 
_ACEOF
59289
 
cat confdefs.h >>conftest.$ac_ext
59290
 
cat >>conftest.$ac_ext <<_ACEOF
59291
 
/* end confdefs.h.  */
59292
 
 
59293
 
/* Override any GCC internal prototype to avoid an error.
59294
 
   Use char because int might match the return type of a GCC
59295
 
   builtin and then its argument prototype would still apply.  */
59296
 
#ifdef __cplusplus
59297
 
extern "C"
59298
 
#endif
59299
 
char bindtextdomain ();
59300
 
int
59301
 
main ()
59302
 
{
59303
 
return bindtextdomain ();
59304
 
  ;
59305
 
  return 0;
59306
 
}
59307
 
_ACEOF
59308
 
rm -f conftest.$ac_objext conftest$ac_exeext
59309
 
if { (ac_try="$ac_link"
59310
 
case "(($ac_try" in
59311
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59312
 
  *) ac_try_echo=$ac_try;;
59313
 
esac
59314
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59315
 
$as_echo "$ac_try_echo") >&5
59316
 
  (eval "$ac_link") 2>conftest.er1
59317
 
  ac_status=$?
59318
 
  grep -v '^ *+' conftest.er1 >conftest.err
59319
 
  rm -f conftest.er1
59320
 
  cat conftest.err >&5
59321
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59322
 
  (exit $ac_status); } && {
59323
 
         test -z "$ac_c_werror_flag" ||
59324
 
         test ! -s conftest.err
59325
 
       } && test -s conftest$ac_exeext && {
59326
 
         test "$cross_compiling" = yes ||
59327
 
         $as_test_x conftest$ac_exeext
59328
 
       }; then
59329
 
  ac_cv_lib_intl_bindtextdomain=yes
59330
 
else
59331
 
  $as_echo "$as_me: failed program was:" >&5
59332
 
sed 's/^/| /' conftest.$ac_ext >&5
59333
 
 
59334
 
        ac_cv_lib_intl_bindtextdomain=no
59335
 
fi
59336
 
 
59337
 
rm -rf conftest.dSYM
59338
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59339
 
      conftest$ac_exeext conftest.$ac_ext
59340
 
LIBS=$ac_check_lib_save_LIBS
59341
 
fi
59342
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
59343
 
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
59344
 
if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
59345
 
  
59346
 
        GETTEXT_LIBS=intl
59347
 
        GETTEXT_CHECK_IN_LIB=intl
59348
 
        
59349
 
else
59350
 
  { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lc" >&5
59351
 
$as_echo_n "checking for bindtextdomain in -lc... " >&6; }
59352
 
if test "${ac_cv_lib_c_bindtextdomain+set}" = set; then
59353
 
  $as_echo_n "(cached) " >&6
59354
 
else
59355
 
  ac_check_lib_save_LIBS=$LIBS
59356
 
LIBS="-lc  $LIBS"
59357
 
cat >conftest.$ac_ext <<_ACEOF
59358
 
/* confdefs.h.  */
59359
 
_ACEOF
59360
 
cat confdefs.h >>conftest.$ac_ext
59361
 
cat >>conftest.$ac_ext <<_ACEOF
59362
 
/* end confdefs.h.  */
59363
 
 
59364
 
/* Override any GCC internal prototype to avoid an error.
59365
 
   Use char because int might match the return type of a GCC
59366
 
   builtin and then its argument prototype would still apply.  */
59367
 
#ifdef __cplusplus
59368
 
extern "C"
59369
 
#endif
59370
 
char bindtextdomain ();
59371
 
int
59372
 
main ()
59373
 
{
59374
 
return bindtextdomain ();
59375
 
  ;
59376
 
  return 0;
59377
 
}
59378
 
_ACEOF
59379
 
rm -f conftest.$ac_objext conftest$ac_exeext
59380
 
if { (ac_try="$ac_link"
59381
 
case "(($ac_try" in
59382
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59383
 
  *) ac_try_echo=$ac_try;;
59384
 
esac
59385
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59386
 
$as_echo "$ac_try_echo") >&5
59387
 
  (eval "$ac_link") 2>conftest.er1
59388
 
  ac_status=$?
59389
 
  grep -v '^ *+' conftest.er1 >conftest.err
59390
 
  rm -f conftest.er1
59391
 
  cat conftest.err >&5
59392
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59393
 
  (exit $ac_status); } && {
59394
 
         test -z "$ac_c_werror_flag" ||
59395
 
         test ! -s conftest.err
59396
 
       } && test -s conftest$ac_exeext && {
59397
 
         test "$cross_compiling" = yes ||
59398
 
         $as_test_x conftest$ac_exeext
59399
 
       }; then
59400
 
  ac_cv_lib_c_bindtextdomain=yes
59401
 
else
59402
 
  $as_echo "$as_me: failed program was:" >&5
59403
 
sed 's/^/| /' conftest.$ac_ext >&5
59404
 
 
59405
 
        ac_cv_lib_c_bindtextdomain=no
59406
 
fi
59407
 
 
59408
 
rm -rf conftest.dSYM
59409
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59410
 
      conftest$ac_exeext conftest.$ac_ext
59411
 
LIBS=$ac_check_lib_save_LIBS
59412
 
fi
59413
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_bindtextdomain" >&5
59414
 
$as_echo "$ac_cv_lib_c_bindtextdomain" >&6; }
59415
 
if test "x$ac_cv_lib_c_bindtextdomain" = x""yes; then
59416
 
  
59417
 
                GETTEXT_LIBS=
59418
 
                GETTEXT_CHECK_IN_LIB=c
59419
 
        
59420
 
else
59421
 
  
59422
 
                { { $as_echo "$as_me:$LINENO: error: Unable to find required gettext library" >&5
59423
 
$as_echo "$as_me: error: Unable to find required gettext library" >&2;}
59424
 
   { (exit 1); exit 1; }; }
59425
 
        
59426
 
fi
59427
 
 
59428
 
  
59429
 
fi
59430
 
 
59431
 
  LDFLAGS=$O_LDFLAGS
59432
 
 
59433
 
  
59434
 
cat >>confdefs.h <<\_ACEOF
59435
 
@%:@define HAVE_LIBINTL 1
59436
 
_ACEOF
59437
 
 
59438
 
  
59439
 
  ext_builddir=ext/gettext
59440
 
  ext_srcdir=$abs_srcdir/ext/gettext
59441
 
 
59442
 
  ac_extra=
59443
 
 
59444
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
59445
 
    PHP_GETTEXT_SHARED=no
59446
 
    
59447
 
  
59448
 
  case ext/gettext in
59449
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59450
 
  /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59451
 
  *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59452
 
  esac
59453
 
  
59454
 
  
59455
 
 
59456
 
  b_c_pre=$php_c_pre
59457
 
  b_cxx_pre=$php_cxx_pre
59458
 
  b_c_meta=$php_c_meta
59459
 
  b_cxx_meta=$php_cxx_meta
59460
 
  b_c_post=$php_c_post
59461
 
  b_cxx_post=$php_cxx_post
59462
 
  b_lo=$php_lo
59463
 
 
59464
 
 
59465
 
  old_IFS=$IFS
59466
 
  for ac_src in gettext.c; do
59467
 
  
59468
 
      IFS=.
59469
 
      set $ac_src
59470
 
      ac_obj=$1
59471
 
      IFS=$old_IFS
59472
 
      
59473
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
59474
 
 
59475
 
      case $ac_src in
59476
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59477
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59478
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59479
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59480
 
      esac
59481
 
 
59482
 
    cat >>Makefile.objects<<EOF
59483
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59484
 
        $ac_comp
59485
 
EOF
59486
 
  done
59487
 
 
59488
 
 
59489
 
    EXT_STATIC="$EXT_STATIC gettext"
59490
 
    if test "$ext_shared" != "nocli"; then
59491
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
59492
 
    fi
59493
 
  else
59494
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
59495
 
      PHP_GETTEXT_SHARED=yes
59496
 
      
59497
 
  case ext/gettext in
59498
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59499
 
  /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59500
 
  *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59501
 
  esac
59502
 
  
59503
 
  
59504
 
 
59505
 
  b_c_pre=$shared_c_pre
59506
 
  b_cxx_pre=$shared_cxx_pre
59507
 
  b_c_meta=$shared_c_meta
59508
 
  b_cxx_meta=$shared_cxx_meta
59509
 
  b_c_post=$shared_c_post
59510
 
  b_cxx_post=$shared_cxx_post
59511
 
  b_lo=$shared_lo
59512
 
 
59513
 
 
59514
 
  old_IFS=$IFS
59515
 
  for ac_src in gettext.c; do
59516
 
  
59517
 
      IFS=.
59518
 
      set $ac_src
59519
 
      ac_obj=$1
59520
 
      IFS=$old_IFS
59521
 
      
59522
 
      shared_objects_gettext="$shared_objects_gettext $ac_bdir$ac_obj.lo"
59523
 
 
59524
 
      case $ac_src in
59525
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59526
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59527
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59528
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59529
 
      esac
59530
 
 
59531
 
    cat >>Makefile.objects<<EOF
59532
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59533
 
        $ac_comp
59534
 
EOF
59535
 
  done
59536
 
 
59537
 
      case $host_alias in
59538
 
        *netware*)
59539
 
          
59540
 
  install_modules="install-modules"
59541
 
 
59542
 
  case $host_alias in
59543
 
    *aix*)
59544
 
      suffix=so
59545
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpgettext.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(PHPGETTEXT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpgettext.so '$ext_builddir'/phpgettext.so'
59546
 
      ;;
59547
 
    *netware*)
59548
 
      suffix=nlm
59549
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) -L$(top_builddir)/netware -lphp5lib $(GETTEXT_SHARED_LIBADD)'
59550
 
      ;;
59551
 
    *)
59552
 
      suffix=la
59553
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(PHPGETTEXT_SHARED_LIBADD)'
59554
 
      ;;
59555
 
  esac
59556
 
 
59557
 
  if test "x" = "xyes"; then
59558
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgettext.$suffix"
59559
 
  else
59560
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgettext.$suffix"
59561
 
  fi
59562
 
  
59563
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
59564
 
 
59565
 
  cat >>Makefile.objects<<EOF
59566
 
\$(phplibdir)/phpgettext.$suffix: $ext_builddir/phpgettext.$suffix
59567
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpgettext.$suffix \$(phplibdir)
59568
 
 
59569
 
$ext_builddir/phpgettext.$suffix: \$(shared_objects_gettext) \$(PHPGETTEXT_SHARED_DEPENDENCIES)
59570
 
        $link_cmd
59571
 
 
59572
 
EOF
59573
 
 
59574
 
          ;;
59575
 
        *)
59576
 
          
59577
 
  install_modules="install-modules"
59578
 
 
59579
 
  case $host_alias in
59580
 
    *aix*)
59581
 
      suffix=so
59582
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/gettext.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(GETTEXT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/gettext.so '$ext_builddir'/gettext.so'
59583
 
      ;;
59584
 
    *netware*)
59585
 
      suffix=nlm
59586
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) -L$(top_builddir)/netware -lphp5lib $(TEXT_SHARED_LIBADD)'
59587
 
      ;;
59588
 
    *)
59589
 
      suffix=la
59590
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gettext) $(GETTEXT_SHARED_LIBADD)'
59591
 
      ;;
59592
 
  esac
59593
 
 
59594
 
  if test "x" = "xyes"; then
59595
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gettext.$suffix"
59596
 
  else
59597
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/gettext.$suffix"
59598
 
  fi
59599
 
  
59600
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
59601
 
 
59602
 
  cat >>Makefile.objects<<EOF
59603
 
\$(phplibdir)/gettext.$suffix: $ext_builddir/gettext.$suffix
59604
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/gettext.$suffix \$(phplibdir)
59605
 
 
59606
 
$ext_builddir/gettext.$suffix: \$(shared_objects_gettext) \$(GETTEXT_SHARED_DEPENDENCIES)
59607
 
        $link_cmd
59608
 
 
59609
 
EOF
59610
 
 
59611
 
          ;;
59612
 
      esac
59613
 
      
59614
 
cat >>confdefs.h <<_ACEOF
59615
 
@%:@define COMPILE_DL_GETTEXT 1
59616
 
_ACEOF
59617
 
 
59618
 
    fi
59619
 
  fi
59620
 
 
59621
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
59622
 
    PHP_GETTEXT_SHARED=no
59623
 
    case "$PHP_SAPI" in
59624
 
      cgi|embed)
59625
 
        
59626
 
  
59627
 
  case ext/gettext in
59628
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59629
 
  /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59630
 
  *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59631
 
  esac
59632
 
  
59633
 
  
59634
 
 
59635
 
  b_c_pre=$php_c_pre
59636
 
  b_cxx_pre=$php_cxx_pre
59637
 
  b_c_meta=$php_c_meta
59638
 
  b_cxx_meta=$php_cxx_meta
59639
 
  b_c_post=$php_c_post
59640
 
  b_cxx_post=$php_cxx_post
59641
 
  b_lo=$php_lo
59642
 
 
59643
 
 
59644
 
  old_IFS=$IFS
59645
 
  for ac_src in gettext.c; do
59646
 
  
59647
 
      IFS=.
59648
 
      set $ac_src
59649
 
      ac_obj=$1
59650
 
      IFS=$old_IFS
59651
 
      
59652
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
59653
 
 
59654
 
      case $ac_src in
59655
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59656
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59657
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59658
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59659
 
      esac
59660
 
 
59661
 
    cat >>Makefile.objects<<EOF
59662
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59663
 
        $ac_comp
59664
 
EOF
59665
 
  done
59666
 
 
59667
 
 
59668
 
        EXT_STATIC="$EXT_STATIC gettext"
59669
 
        ;;
59670
 
      *)
59671
 
        
59672
 
  
59673
 
  case ext/gettext in
59674
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59675
 
  /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59676
 
  *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59677
 
  esac
59678
 
  
59679
 
  
59680
 
 
59681
 
  b_c_pre=$php_c_pre
59682
 
  b_cxx_pre=$php_cxx_pre
59683
 
  b_c_meta=$php_c_meta
59684
 
  b_cxx_meta=$php_cxx_meta
59685
 
  b_c_post=$php_c_post
59686
 
  b_cxx_post=$php_cxx_post
59687
 
  b_lo=$php_lo
59688
 
 
59689
 
 
59690
 
  old_IFS=$IFS
59691
 
  for ac_src in gettext.c; do
59692
 
  
59693
 
      IFS=.
59694
 
      set $ac_src
59695
 
      ac_obj=$1
59696
 
      IFS=$old_IFS
59697
 
      
59698
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
59699
 
 
59700
 
      case $ac_src in
59701
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59702
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59703
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59704
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59705
 
      esac
59706
 
 
59707
 
    cat >>Makefile.objects<<EOF
59708
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59709
 
        $ac_comp
59710
 
EOF
59711
 
  done
59712
 
 
59713
 
 
59714
 
        ;;
59715
 
    esac
59716
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
59717
 
  fi
59718
 
  
59719
 
  
59720
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
59721
 
  
59722
 
 
59723
 
 
59724
 
  if test "$ext_builddir" = "."; then
59725
 
    PHP_PECL_EXTENSION=gettext
59726
 
    
59727
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
59728
 
 
59729
 
  fi
59730
 
 
59731
 
  
59732
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST GETTEXT_SHARED_LIBADD"
59733
 
 
59734
 
 
59735
 
  if test -n "$GETTEXT_LIBS"; then
59736
 
    
59737
 
 
59738
 
  if test "$ext_shared" = "yes"; then
59739
 
    GETTEXT_SHARED_LIBADD="-l$GETTEXT_LIBS $GETTEXT_SHARED_LIBADD"
59740
 
    if test -n "$GETTEXT_LIBDIR"; then
59741
 
      
59742
 
  if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
59743
 
    
59744
 
  if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
59745
 
    ai_p=$GETTEXT_LIBDIR
59746
 
  else
59747
 
    
59748
 
    ep_dir="`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
59749
 
    
59750
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59751
 
    ai_p="$ep_realdir/`basename \"$GETTEXT_LIBDIR\"`"
59752
 
  fi
59753
 
 
59754
 
    
59755
 
      if test "$ext_shared" = "yes"; then
59756
 
        GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD"
59757
 
        test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD"
59758
 
      else
59759
 
        
59760
 
  
59761
 
  
59762
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59763
 
  
59764
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59765
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
59766
 
    eval "LIBPATH$unique=set"
59767
 
    
59768
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59769
 
    LDFLAGS="$LDFLAGS -L$ai_p"
59770
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
59771
 
  
59772
 
  fi
59773
 
 
59774
 
 
59775
 
      fi
59776
 
    
59777
 
  fi
59778
 
 
59779
 
    fi
59780
 
  else
59781
 
    
59782
 
 
59783
 
  if test -n "$GETTEXT_LIBDIR"; then
59784
 
    
59785
 
  if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
59786
 
    
59787
 
  if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
59788
 
    ai_p=$GETTEXT_LIBDIR
59789
 
  else
59790
 
    
59791
 
    ep_dir="`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
59792
 
    
59793
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59794
 
    ai_p="$ep_realdir/`basename \"$GETTEXT_LIBDIR\"`"
59795
 
  fi
59796
 
 
59797
 
    
59798
 
      
59799
 
  
59800
 
  
59801
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59802
 
  
59803
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59804
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
59805
 
    eval "LIBPATH$unique=set"
59806
 
    
59807
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59808
 
    LDFLAGS="$LDFLAGS -L$ai_p"
59809
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
59810
 
  
59811
 
  fi
59812
 
 
59813
 
 
59814
 
    
59815
 
  fi
59816
 
 
59817
 
  fi
59818
 
  
59819
 
  
59820
 
  case $GETTEXT_LIBS in
59821
 
  c|c_r|pthread*) ;;
59822
 
  *) 
59823
 
      LIBS="-l$GETTEXT_LIBS $LIBS" 
59824
 
   ;;
59825
 
  esac
59826
 
 
59827
 
 
59828
 
 
59829
 
 
59830
 
  fi
59831
 
 
59832
 
 
59833
 
  fi
59834
 
 
59835
 
  
59836
 
  if test "$GETTEXT_INCDIR" != "/usr/include"; then
59837
 
    
59838
 
  if test -z "$GETTEXT_INCDIR" || echo "$GETTEXT_INCDIR" | grep '^/' >/dev/null ; then
59839
 
    ai_p=$GETTEXT_INCDIR
59840
 
  else
59841
 
    
59842
 
    ep_dir="`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
59843
 
    
59844
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59845
 
    ai_p="$ep_realdir/`basename \"$GETTEXT_INCDIR\"`"
59846
 
  fi
59847
 
 
59848
 
    
59849
 
  
59850
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59851
 
  
59852
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
59853
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
59854
 
    eval "INCLUDEPATH$unique=set"
59855
 
    
59856
 
      if test ""; then
59857
 
        INCLUDES="-I$ai_p $INCLUDES"
59858
 
      else
59859
 
        INCLUDES="$INCLUDES -I$ai_p"
59860
 
      fi
59861
 
    
59862
 
  fi
59863
 
 
59864
 
  fi
59865
 
 
59866
 
 
59867
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh`
59868
 
{ $as_echo "$as_me:$LINENO: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
59869
 
$as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
59870
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
59871
 
  $as_echo_n "(cached) " >&6
59872
 
else
59873
 
  ac_check_lib_save_LIBS=$LIBS
59874
 
LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
59875
 
cat >conftest.$ac_ext <<_ACEOF
59876
 
/* confdefs.h.  */
59877
 
_ACEOF
59878
 
cat confdefs.h >>conftest.$ac_ext
59879
 
cat >>conftest.$ac_ext <<_ACEOF
59880
 
/* end confdefs.h.  */
59881
 
 
59882
 
/* Override any GCC internal prototype to avoid an error.
59883
 
   Use char because int might match the return type of a GCC
59884
 
   builtin and then its argument prototype would still apply.  */
59885
 
#ifdef __cplusplus
59886
 
extern "C"
59887
 
#endif
59888
 
char ngettext ();
59889
 
int
59890
 
main ()
59891
 
{
59892
 
return ngettext ();
59893
 
  ;
59894
 
  return 0;
59895
 
}
59896
 
_ACEOF
59897
 
rm -f conftest.$ac_objext conftest$ac_exeext
59898
 
if { (ac_try="$ac_link"
59899
 
case "(($ac_try" in
59900
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59901
 
  *) ac_try_echo=$ac_try;;
59902
 
esac
59903
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59904
 
$as_echo "$ac_try_echo") >&5
59905
 
  (eval "$ac_link") 2>conftest.er1
59906
 
  ac_status=$?
59907
 
  grep -v '^ *+' conftest.er1 >conftest.err
59908
 
  rm -f conftest.er1
59909
 
  cat conftest.err >&5
59910
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59911
 
  (exit $ac_status); } && {
59912
 
         test -z "$ac_c_werror_flag" ||
59913
 
         test ! -s conftest.err
59914
 
       } && test -s conftest$ac_exeext && {
59915
 
         test "$cross_compiling" = yes ||
59916
 
         $as_test_x conftest$ac_exeext
59917
 
       }; then
59918
 
  eval "$as_ac_Lib=yes"
59919
 
else
59920
 
  $as_echo "$as_me: failed program was:" >&5
59921
 
sed 's/^/| /' conftest.$ac_ext >&5
59922
 
 
59923
 
        eval "$as_ac_Lib=no"
59924
 
fi
59925
 
 
59926
 
rm -rf conftest.dSYM
59927
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59928
 
      conftest$ac_exeext conftest.$ac_ext
59929
 
LIBS=$ac_check_lib_save_LIBS
59930
 
fi
59931
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
59932
 
                 $as_echo "$as_val"'`
59933
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59934
 
$as_echo "$ac_res" >&6; }
59935
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
59936
 
                 $as_echo "$as_val"'`
59937
 
   if test "x$as_val" = x""yes; then
59938
 
  
59939
 
cat >>confdefs.h <<\_ACEOF
59940
 
@%:@define HAVE_NGETTEXT 1
59941
 
_ACEOF
59942
 
 
59943
 
fi
59944
 
 
59945
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh`
59946
 
{ $as_echo "$as_me:$LINENO: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
59947
 
$as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
59948
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
59949
 
  $as_echo_n "(cached) " >&6
59950
 
else
59951
 
  ac_check_lib_save_LIBS=$LIBS
59952
 
LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
59953
 
cat >conftest.$ac_ext <<_ACEOF
59954
 
/* confdefs.h.  */
59955
 
_ACEOF
59956
 
cat confdefs.h >>conftest.$ac_ext
59957
 
cat >>conftest.$ac_ext <<_ACEOF
59958
 
/* end confdefs.h.  */
59959
 
 
59960
 
/* Override any GCC internal prototype to avoid an error.
59961
 
   Use char because int might match the return type of a GCC
59962
 
   builtin and then its argument prototype would still apply.  */
59963
 
#ifdef __cplusplus
59964
 
extern "C"
59965
 
#endif
59966
 
char dngettext ();
59967
 
int
59968
 
main ()
59969
 
{
59970
 
return dngettext ();
59971
 
  ;
59972
 
  return 0;
59973
 
}
59974
 
_ACEOF
59975
 
rm -f conftest.$ac_objext conftest$ac_exeext
59976
 
if { (ac_try="$ac_link"
59977
 
case "(($ac_try" in
59978
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59979
 
  *) ac_try_echo=$ac_try;;
59980
 
esac
59981
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59982
 
$as_echo "$ac_try_echo") >&5
59983
 
  (eval "$ac_link") 2>conftest.er1
59984
 
  ac_status=$?
59985
 
  grep -v '^ *+' conftest.er1 >conftest.err
59986
 
  rm -f conftest.er1
59987
 
  cat conftest.err >&5
59988
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59989
 
  (exit $ac_status); } && {
59990
 
         test -z "$ac_c_werror_flag" ||
59991
 
         test ! -s conftest.err
59992
 
       } && test -s conftest$ac_exeext && {
59993
 
         test "$cross_compiling" = yes ||
59994
 
         $as_test_x conftest$ac_exeext
59995
 
       }; then
59996
 
  eval "$as_ac_Lib=yes"
59997
 
else
59998
 
  $as_echo "$as_me: failed program was:" >&5
59999
 
sed 's/^/| /' conftest.$ac_ext >&5
60000
 
 
60001
 
        eval "$as_ac_Lib=no"
60002
 
fi
60003
 
 
60004
 
rm -rf conftest.dSYM
60005
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60006
 
      conftest$ac_exeext conftest.$ac_ext
60007
 
LIBS=$ac_check_lib_save_LIBS
60008
 
fi
60009
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
60010
 
                 $as_echo "$as_val"'`
60011
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60012
 
$as_echo "$ac_res" >&6; }
60013
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
60014
 
                 $as_echo "$as_val"'`
60015
 
   if test "x$as_val" = x""yes; then
60016
 
  
60017
 
cat >>confdefs.h <<\_ACEOF
60018
 
@%:@define HAVE_DNGETTEXT 1
60019
 
_ACEOF
60020
 
 
60021
 
fi
60022
 
 
60023
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh`
60024
 
{ $as_echo "$as_me:$LINENO: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
60025
 
$as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
60026
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
60027
 
  $as_echo_n "(cached) " >&6
60028
 
else
60029
 
  ac_check_lib_save_LIBS=$LIBS
60030
 
LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
60031
 
cat >conftest.$ac_ext <<_ACEOF
60032
 
/* confdefs.h.  */
60033
 
_ACEOF
60034
 
cat confdefs.h >>conftest.$ac_ext
60035
 
cat >>conftest.$ac_ext <<_ACEOF
60036
 
/* end confdefs.h.  */
60037
 
 
60038
 
/* Override any GCC internal prototype to avoid an error.
60039
 
   Use char because int might match the return type of a GCC
60040
 
   builtin and then its argument prototype would still apply.  */
60041
 
#ifdef __cplusplus
60042
 
extern "C"
60043
 
#endif
60044
 
char dcngettext ();
60045
 
int
60046
 
main ()
60047
 
{
60048
 
return dcngettext ();
60049
 
  ;
60050
 
  return 0;
60051
 
}
60052
 
_ACEOF
60053
 
rm -f conftest.$ac_objext conftest$ac_exeext
60054
 
if { (ac_try="$ac_link"
60055
 
case "(($ac_try" in
60056
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60057
 
  *) ac_try_echo=$ac_try;;
60058
 
esac
60059
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60060
 
$as_echo "$ac_try_echo") >&5
60061
 
  (eval "$ac_link") 2>conftest.er1
60062
 
  ac_status=$?
60063
 
  grep -v '^ *+' conftest.er1 >conftest.err
60064
 
  rm -f conftest.er1
60065
 
  cat conftest.err >&5
60066
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60067
 
  (exit $ac_status); } && {
60068
 
         test -z "$ac_c_werror_flag" ||
60069
 
         test ! -s conftest.err
60070
 
       } && test -s conftest$ac_exeext && {
60071
 
         test "$cross_compiling" = yes ||
60072
 
         $as_test_x conftest$ac_exeext
60073
 
       }; then
60074
 
  eval "$as_ac_Lib=yes"
60075
 
else
60076
 
  $as_echo "$as_me: failed program was:" >&5
60077
 
sed 's/^/| /' conftest.$ac_ext >&5
60078
 
 
60079
 
        eval "$as_ac_Lib=no"
60080
 
fi
60081
 
 
60082
 
rm -rf conftest.dSYM
60083
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60084
 
      conftest$ac_exeext conftest.$ac_ext
60085
 
LIBS=$ac_check_lib_save_LIBS
60086
 
fi
60087
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
60088
 
                 $as_echo "$as_val"'`
60089
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60090
 
$as_echo "$ac_res" >&6; }
60091
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
60092
 
                 $as_echo "$as_val"'`
60093
 
   if test "x$as_val" = x""yes; then
60094
 
  
60095
 
cat >>confdefs.h <<\_ACEOF
60096
 
@%:@define HAVE_DCNGETTEXT 1
60097
 
_ACEOF
60098
 
 
60099
 
fi
60100
 
 
60101
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh`
60102
 
{ $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5
60103
 
$as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
60104
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
60105
 
  $as_echo_n "(cached) " >&6
60106
 
else
60107
 
  ac_check_lib_save_LIBS=$LIBS
60108
 
LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
60109
 
cat >conftest.$ac_ext <<_ACEOF
60110
 
/* confdefs.h.  */
60111
 
_ACEOF
60112
 
cat confdefs.h >>conftest.$ac_ext
60113
 
cat >>conftest.$ac_ext <<_ACEOF
60114
 
/* end confdefs.h.  */
60115
 
 
60116
 
/* Override any GCC internal prototype to avoid an error.
60117
 
   Use char because int might match the return type of a GCC
60118
 
   builtin and then its argument prototype would still apply.  */
60119
 
#ifdef __cplusplus
60120
 
extern "C"
60121
 
#endif
60122
 
char bind_textdomain_codeset ();
60123
 
int
60124
 
main ()
60125
 
{
60126
 
return bind_textdomain_codeset ();
60127
 
  ;
60128
 
  return 0;
60129
 
}
60130
 
_ACEOF
60131
 
rm -f conftest.$ac_objext conftest$ac_exeext
60132
 
if { (ac_try="$ac_link"
60133
 
case "(($ac_try" in
60134
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60135
 
  *) ac_try_echo=$ac_try;;
60136
 
esac
60137
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60138
 
$as_echo "$ac_try_echo") >&5
60139
 
  (eval "$ac_link") 2>conftest.er1
60140
 
  ac_status=$?
60141
 
  grep -v '^ *+' conftest.er1 >conftest.err
60142
 
  rm -f conftest.er1
60143
 
  cat conftest.err >&5
60144
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60145
 
  (exit $ac_status); } && {
60146
 
         test -z "$ac_c_werror_flag" ||
60147
 
         test ! -s conftest.err
60148
 
       } && test -s conftest$ac_exeext && {
60149
 
         test "$cross_compiling" = yes ||
60150
 
         $as_test_x conftest$ac_exeext
60151
 
       }; then
60152
 
  eval "$as_ac_Lib=yes"
60153
 
else
60154
 
  $as_echo "$as_me: failed program was:" >&5
60155
 
sed 's/^/| /' conftest.$ac_ext >&5
60156
 
 
60157
 
        eval "$as_ac_Lib=no"
60158
 
fi
60159
 
 
60160
 
rm -rf conftest.dSYM
60161
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60162
 
      conftest$ac_exeext conftest.$ac_ext
60163
 
LIBS=$ac_check_lib_save_LIBS
60164
 
fi
60165
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
60166
 
                 $as_echo "$as_val"'`
60167
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60168
 
$as_echo "$ac_res" >&6; }
60169
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
60170
 
                 $as_echo "$as_val"'`
60171
 
   if test "x$as_val" = x""yes; then
60172
 
  
60173
 
cat >>confdefs.h <<\_ACEOF
60174
 
@%:@define HAVE_BIND_TEXTDOMAIN_CODESET 1
60175
 
_ACEOF
60176
 
 
60177
 
fi
60178
 
 
60179
 
  
60180
 
fi
60181
 
 
60182
 
 
60183
 
 
60184
 
php_with_gmp=no
60185
 
 
60186
 
{ $as_echo "$as_me:$LINENO: checking for GNU MP support" >&5
60187
 
$as_echo_n "checking for GNU MP support... " >&6; }
60188
 
 
60189
 
@%:@ Check whether --with-gmp was given.
60190
 
if test "${with_gmp+set}" = set; then
60191
 
  withval=$with_gmp; PHP_GMP=$withval
60192
 
else
60193
 
  
60194
 
  PHP_GMP=no
60195
 
  test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL
60196
 
 
60197
 
fi
60198
 
 
60199
 
 
60200
 
 
60201
 
ext_output="yes, shared"
60202
 
ext_shared=yes
60203
 
case $PHP_GMP in
60204
 
shared,*)
60205
 
  PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'`
60206
 
  ;;
60207
 
shared)
60208
 
  PHP_GMP=yes
60209
 
  ;;
60210
 
no)
60211
 
  ext_output=no
60212
 
  ext_shared=no
60213
 
  ;;
60214
 
*)
60215
 
  ext_output=yes
60216
 
  ext_shared=no
60217
 
  ;;
60218
 
esac
60219
 
 
60220
 
 
60221
 
 
60222
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
60223
 
$as_echo "$ext_output" >&6; }
60224
 
 
60225
 
 
60226
 
 
60227
 
 
60228
 
if test "$PHP_GMP" != "no"; then
60229
 
 
60230
 
  for i in $PHP_GMP /usr/local /usr; do
60231
 
    test -f $i/include/gmp.h && GMP_DIR=$i && break
60232
 
  done
60233
 
 
60234
 
  if test -z "$GMP_DIR"; then
60235
 
    { { $as_echo "$as_me:$LINENO: error: Unable to locate gmp.h" >&5
60236
 
$as_echo "$as_me: error: Unable to locate gmp.h" >&2;}
60237
 
   { (exit 1); exit 1; }; }
60238
 
  fi
60239
 
 
60240
 
  
60241
 
  save_old_LDFLAGS=$LDFLAGS
60242
 
  ac_stuff="
60243
 
    -L$GMP_DIR/$PHP_LIBDIR
60244
 
  "
60245
 
  
60246
 
  save_ext_shared=$ext_shared
60247
 
  ext_shared=yes
60248
 
  
60249
 
  for ac_i in $ac_stuff; do
60250
 
    case $ac_i in
60251
 
    -pthread)
60252
 
      if test "$ext_shared" = "yes"; then
60253
 
        LDFLAGS="$LDFLAGS -pthread"
60254
 
      else
60255
 
        
60256
 
  
60257
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
60258
 
  
60259
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
60260
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
60261
 
    eval "EXTRA_LDFLAGS$unique=set"
60262
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
60263
 
  fi
60264
 
 
60265
 
      fi
60266
 
    ;;
60267
 
    -l*)
60268
 
      ac_ii=`echo $ac_i|cut -c 3-`
60269
 
      
60270
 
  
60271
 
  case $ac_ii in
60272
 
  c|c_r|pthread*) ;;
60273
 
  *) 
60274
 
    if test "$ext_shared" = "yes"; then
60275
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
60276
 
    else
60277
 
      
60278
 
  
60279
 
  case $ac_ii in
60280
 
  c|c_r|pthread*) ;;
60281
 
  *) 
60282
 
      LIBS="$LIBS -l$ac_ii" 
60283
 
   ;;
60284
 
  esac
60285
 
 
60286
 
 
60287
 
    fi
60288
 
   ;;
60289
 
  esac
60290
 
 
60291
 
 
60292
 
    ;;
60293
 
    -L*)
60294
 
      ac_ii=`echo $ac_i|cut -c 3-`
60295
 
      
60296
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
60297
 
    
60298
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
60299
 
    ai_p=$ac_ii
60300
 
  else
60301
 
    
60302
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
60303
 
    
60304
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60305
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
60306
 
  fi
60307
 
 
60308
 
    
60309
 
      if test "$ext_shared" = "yes"; then
60310
 
        LDFLAGS="-L$ai_p $LDFLAGS"
60311
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
60312
 
      else
60313
 
        
60314
 
  
60315
 
  
60316
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60317
 
  
60318
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60319
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
60320
 
    eval "LIBPATH$unique=set"
60321
 
    
60322
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60323
 
    LDFLAGS="$LDFLAGS -L$ai_p"
60324
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
60325
 
  
60326
 
  fi
60327
 
 
60328
 
 
60329
 
      fi
60330
 
    
60331
 
  fi
60332
 
 
60333
 
    ;;
60334
 
    esac
60335
 
  done
60336
 
 
60337
 
  { $as_echo "$as_me:$LINENO: checking for __gmp_randinit_lc_2exp_size in -lgmp" >&5
60338
 
$as_echo_n "checking for __gmp_randinit_lc_2exp_size in -lgmp... " >&6; }
60339
 
if test "${ac_cv_lib_gmp___gmp_randinit_lc_2exp_size+set}" = set; then
60340
 
  $as_echo_n "(cached) " >&6
60341
 
else
60342
 
  ac_check_lib_save_LIBS=$LIBS
60343
 
LIBS="-lgmp  $LIBS"
60344
 
cat >conftest.$ac_ext <<_ACEOF
60345
 
/* confdefs.h.  */
60346
 
_ACEOF
60347
 
cat confdefs.h >>conftest.$ac_ext
60348
 
cat >>conftest.$ac_ext <<_ACEOF
60349
 
/* end confdefs.h.  */
60350
 
 
60351
 
/* Override any GCC internal prototype to avoid an error.
60352
 
   Use char because int might match the return type of a GCC
60353
 
   builtin and then its argument prototype would still apply.  */
60354
 
#ifdef __cplusplus
60355
 
extern "C"
60356
 
#endif
60357
 
char __gmp_randinit_lc_2exp_size ();
60358
 
int
60359
 
main ()
60360
 
{
60361
 
return __gmp_randinit_lc_2exp_size ();
60362
 
  ;
60363
 
  return 0;
60364
 
}
60365
 
_ACEOF
60366
 
rm -f conftest.$ac_objext conftest$ac_exeext
60367
 
if { (ac_try="$ac_link"
60368
 
case "(($ac_try" in
60369
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60370
 
  *) ac_try_echo=$ac_try;;
60371
 
esac
60372
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60373
 
$as_echo "$ac_try_echo") >&5
60374
 
  (eval "$ac_link") 2>conftest.er1
60375
 
  ac_status=$?
60376
 
  grep -v '^ *+' conftest.er1 >conftest.err
60377
 
  rm -f conftest.er1
60378
 
  cat conftest.err >&5
60379
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60380
 
  (exit $ac_status); } && {
60381
 
         test -z "$ac_c_werror_flag" ||
60382
 
         test ! -s conftest.err
60383
 
       } && test -s conftest$ac_exeext && {
60384
 
         test "$cross_compiling" = yes ||
60385
 
         $as_test_x conftest$ac_exeext
60386
 
       }; then
60387
 
  ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=yes
60388
 
else
60389
 
  $as_echo "$as_me: failed program was:" >&5
60390
 
sed 's/^/| /' conftest.$ac_ext >&5
60391
 
 
60392
 
        ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=no
60393
 
fi
60394
 
 
60395
 
rm -rf conftest.dSYM
60396
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60397
 
      conftest$ac_exeext conftest.$ac_ext
60398
 
LIBS=$ac_check_lib_save_LIBS
60399
 
fi
60400
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&5
60401
 
$as_echo "$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&6; }
60402
 
if test "x$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" = x""yes; then
60403
 
  
60404
 
    LDFLAGS=$save_old_LDFLAGS
60405
 
    ext_shared=$save_ext_shared
60406
 
    
60407
 
  
60408
 
else
60409
 
  
60410
 
    LDFLAGS=$save_old_LDFLAGS
60411
 
    ext_shared=$save_ext_shared
60412
 
    unset ac_cv_lib_gmp___gmp_randinit_lc_2exp_size
60413
 
    
60414
 
    
60415
 
  save_old_LDFLAGS=$LDFLAGS
60416
 
  ac_stuff="
60417
 
      -L$GMP_DIR/$PHP_LIBDIR
60418
 
    "
60419
 
  
60420
 
  save_ext_shared=$ext_shared
60421
 
  ext_shared=yes
60422
 
  
60423
 
  for ac_i in $ac_stuff; do
60424
 
    case $ac_i in
60425
 
    -pthread)
60426
 
      if test "$ext_shared" = "yes"; then
60427
 
        LDFLAGS="$LDFLAGS -pthread"
60428
 
      else
60429
 
        
60430
 
  
60431
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
60432
 
  
60433
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
60434
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
60435
 
    eval "EXTRA_LDFLAGS$unique=set"
60436
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
60437
 
  fi
60438
 
 
60439
 
      fi
60440
 
    ;;
60441
 
    -l*)
60442
 
      ac_ii=`echo $ac_i|cut -c 3-`
60443
 
      
60444
 
  
60445
 
  case $ac_ii in
60446
 
  c|c_r|pthread*) ;;
60447
 
  *) 
60448
 
    if test "$ext_shared" = "yes"; then
60449
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
60450
 
    else
60451
 
      
60452
 
  
60453
 
  case $ac_ii in
60454
 
  c|c_r|pthread*) ;;
60455
 
  *) 
60456
 
      LIBS="$LIBS -l$ac_ii" 
60457
 
   ;;
60458
 
  esac
60459
 
 
60460
 
 
60461
 
    fi
60462
 
   ;;
60463
 
  esac
60464
 
 
60465
 
 
60466
 
    ;;
60467
 
    -L*)
60468
 
      ac_ii=`echo $ac_i|cut -c 3-`
60469
 
      
60470
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
60471
 
    
60472
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
60473
 
    ai_p=$ac_ii
60474
 
  else
60475
 
    
60476
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
60477
 
    
60478
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60479
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
60480
 
  fi
60481
 
 
60482
 
    
60483
 
      if test "$ext_shared" = "yes"; then
60484
 
        LDFLAGS="-L$ai_p $LDFLAGS"
60485
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
60486
 
      else
60487
 
        
60488
 
  
60489
 
  
60490
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60491
 
  
60492
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60493
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
60494
 
    eval "LIBPATH$unique=set"
60495
 
    
60496
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60497
 
    LDFLAGS="$LDFLAGS -L$ai_p"
60498
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
60499
 
  
60500
 
  fi
60501
 
 
60502
 
 
60503
 
      fi
60504
 
    
60505
 
  fi
60506
 
 
60507
 
    ;;
60508
 
    esac
60509
 
  done
60510
 
 
60511
 
  { $as_echo "$as_me:$LINENO: checking for gmp_randinit_lc_2exp_size in -lgmp" >&5
60512
 
$as_echo_n "checking for gmp_randinit_lc_2exp_size in -lgmp... " >&6; }
60513
 
if test "${ac_cv_lib_gmp_gmp_randinit_lc_2exp_size+set}" = set; then
60514
 
  $as_echo_n "(cached) " >&6
60515
 
else
60516
 
  ac_check_lib_save_LIBS=$LIBS
60517
 
LIBS="-lgmp  $LIBS"
60518
 
cat >conftest.$ac_ext <<_ACEOF
60519
 
/* confdefs.h.  */
60520
 
_ACEOF
60521
 
cat confdefs.h >>conftest.$ac_ext
60522
 
cat >>conftest.$ac_ext <<_ACEOF
60523
 
/* end confdefs.h.  */
60524
 
 
60525
 
/* Override any GCC internal prototype to avoid an error.
60526
 
   Use char because int might match the return type of a GCC
60527
 
   builtin and then its argument prototype would still apply.  */
60528
 
#ifdef __cplusplus
60529
 
extern "C"
60530
 
#endif
60531
 
char gmp_randinit_lc_2exp_size ();
60532
 
int
60533
 
main ()
60534
 
{
60535
 
return gmp_randinit_lc_2exp_size ();
60536
 
  ;
60537
 
  return 0;
60538
 
}
60539
 
_ACEOF
60540
 
rm -f conftest.$ac_objext conftest$ac_exeext
60541
 
if { (ac_try="$ac_link"
60542
 
case "(($ac_try" in
60543
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60544
 
  *) ac_try_echo=$ac_try;;
60545
 
esac
60546
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60547
 
$as_echo "$ac_try_echo") >&5
60548
 
  (eval "$ac_link") 2>conftest.er1
60549
 
  ac_status=$?
60550
 
  grep -v '^ *+' conftest.er1 >conftest.err
60551
 
  rm -f conftest.er1
60552
 
  cat conftest.err >&5
60553
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60554
 
  (exit $ac_status); } && {
60555
 
         test -z "$ac_c_werror_flag" ||
60556
 
         test ! -s conftest.err
60557
 
       } && test -s conftest$ac_exeext && {
60558
 
         test "$cross_compiling" = yes ||
60559
 
         $as_test_x conftest$ac_exeext
60560
 
       }; then
60561
 
  ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=yes
60562
 
else
60563
 
  $as_echo "$as_me: failed program was:" >&5
60564
 
sed 's/^/| /' conftest.$ac_ext >&5
60565
 
 
60566
 
        ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=no
60567
 
fi
60568
 
 
60569
 
rm -rf conftest.dSYM
60570
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60571
 
      conftest$ac_exeext conftest.$ac_ext
60572
 
LIBS=$ac_check_lib_save_LIBS
60573
 
fi
60574
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&5
60575
 
$as_echo "$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&6; }
60576
 
if test "x$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" = x""yes; then
60577
 
  
60578
 
    LDFLAGS=$save_old_LDFLAGS
60579
 
    ext_shared=$save_ext_shared
60580
 
    
60581
 
  
60582
 
else
60583
 
  
60584
 
    LDFLAGS=$save_old_LDFLAGS
60585
 
    ext_shared=$save_ext_shared
60586
 
    unset ac_cv_lib_gmp_gmp_randinit_lc_2exp_size
60587
 
    
60588
 
      { { $as_echo "$as_me:$LINENO: error: GNU MP Library version 4.1.2 or greater required." >&5
60589
 
$as_echo "$as_me: error: GNU MP Library version 4.1.2 or greater required." >&2;}
60590
 
   { (exit 1); exit 1; }; }
60591
 
    
60592
 
  
60593
 
fi
60594
 
 
60595
 
  
60596
 
  
60597
 
fi
60598
 
 
60599
 
 
60600
 
  
60601
 
 
60602
 
  if test "$ext_shared" = "yes"; then
60603
 
    GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD"
60604
 
    if test -n "$GMP_DIR/$PHP_LIBDIR"; then
60605
 
      
60606
 
  if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
60607
 
    
60608
 
  if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60609
 
    ai_p=$GMP_DIR/$PHP_LIBDIR
60610
 
  else
60611
 
    
60612
 
    ep_dir="`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
60613
 
    
60614
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60615
 
    ai_p="$ep_realdir/`basename \"$GMP_DIR/$PHP_LIBDIR\"`"
60616
 
  fi
60617
 
 
60618
 
    
60619
 
      if test "$ext_shared" = "yes"; then
60620
 
        GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD"
60621
 
        test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD"
60622
 
      else
60623
 
        
60624
 
  
60625
 
  
60626
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60627
 
  
60628
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60629
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
60630
 
    eval "LIBPATH$unique=set"
60631
 
    
60632
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60633
 
    LDFLAGS="$LDFLAGS -L$ai_p"
60634
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
60635
 
  
60636
 
  fi
60637
 
 
60638
 
 
60639
 
      fi
60640
 
    
60641
 
  fi
60642
 
 
60643
 
    fi
60644
 
  else
60645
 
    
60646
 
 
60647
 
  if test -n "$GMP_DIR/$PHP_LIBDIR"; then
60648
 
    
60649
 
  if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
60650
 
    
60651
 
  if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60652
 
    ai_p=$GMP_DIR/$PHP_LIBDIR
60653
 
  else
60654
 
    
60655
 
    ep_dir="`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
60656
 
    
60657
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60658
 
    ai_p="$ep_realdir/`basename \"$GMP_DIR/$PHP_LIBDIR\"`"
60659
 
  fi
60660
 
 
60661
 
    
60662
 
      
60663
 
  
60664
 
  
60665
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60666
 
  
60667
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60668
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
60669
 
    eval "LIBPATH$unique=set"
60670
 
    
60671
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60672
 
    LDFLAGS="$LDFLAGS -L$ai_p"
60673
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
60674
 
  
60675
 
  fi
60676
 
 
60677
 
 
60678
 
    
60679
 
  fi
60680
 
 
60681
 
  fi
60682
 
  
60683
 
  
60684
 
  case gmp in
60685
 
  c|c_r|pthread*) ;;
60686
 
  *) 
60687
 
      LIBS="-lgmp $LIBS" 
60688
 
   ;;
60689
 
  esac
60690
 
 
60691
 
 
60692
 
 
60693
 
 
60694
 
  fi
60695
 
 
60696
 
 
60697
 
  
60698
 
  if test "$GMP_DIR/include" != "/usr/include"; then
60699
 
    
60700
 
  if test -z "$GMP_DIR/include" || echo "$GMP_DIR/include" | grep '^/' >/dev/null ; then
60701
 
    ai_p=$GMP_DIR/include
60702
 
  else
60703
 
    
60704
 
    ep_dir="`echo $GMP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
60705
 
    
60706
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60707
 
    ai_p="$ep_realdir/`basename \"$GMP_DIR/include\"`"
60708
 
  fi
60709
 
 
60710
 
    
60711
 
  
60712
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60713
 
  
60714
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
60715
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
60716
 
    eval "INCLUDEPATH$unique=set"
60717
 
    
60718
 
      if test ""; then
60719
 
        INCLUDES="-I$ai_p $INCLUDES"
60720
 
      else
60721
 
        INCLUDES="$INCLUDES -I$ai_p"
60722
 
      fi
60723
 
    
60724
 
  fi
60725
 
 
60726
 
  fi
60727
 
 
60728
 
 
60729
 
  
60730
 
  ext_builddir=ext/gmp
60731
 
  ext_srcdir=$abs_srcdir/ext/gmp
60732
 
 
60733
 
  ac_extra=
60734
 
 
60735
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
60736
 
    PHP_GMP_SHARED=no
60737
 
    
60738
 
  
60739
 
  case ext/gmp in
60740
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60741
 
  /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60742
 
  *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60743
 
  esac
60744
 
  
60745
 
  
60746
 
 
60747
 
  b_c_pre=$php_c_pre
60748
 
  b_cxx_pre=$php_cxx_pre
60749
 
  b_c_meta=$php_c_meta
60750
 
  b_cxx_meta=$php_cxx_meta
60751
 
  b_c_post=$php_c_post
60752
 
  b_cxx_post=$php_cxx_post
60753
 
  b_lo=$php_lo
60754
 
 
60755
 
 
60756
 
  old_IFS=$IFS
60757
 
  for ac_src in gmp.c; do
60758
 
  
60759
 
      IFS=.
60760
 
      set $ac_src
60761
 
      ac_obj=$1
60762
 
      IFS=$old_IFS
60763
 
      
60764
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
60765
 
 
60766
 
      case $ac_src in
60767
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60768
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60769
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60770
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60771
 
      esac
60772
 
 
60773
 
    cat >>Makefile.objects<<EOF
60774
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60775
 
        $ac_comp
60776
 
EOF
60777
 
  done
60778
 
 
60779
 
 
60780
 
    EXT_STATIC="$EXT_STATIC gmp"
60781
 
    if test "$ext_shared" != "nocli"; then
60782
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
60783
 
    fi
60784
 
  else
60785
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
60786
 
      PHP_GMP_SHARED=yes
60787
 
      
60788
 
  case ext/gmp in
60789
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60790
 
  /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60791
 
  *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60792
 
  esac
60793
 
  
60794
 
  
60795
 
 
60796
 
  b_c_pre=$shared_c_pre
60797
 
  b_cxx_pre=$shared_cxx_pre
60798
 
  b_c_meta=$shared_c_meta
60799
 
  b_cxx_meta=$shared_cxx_meta
60800
 
  b_c_post=$shared_c_post
60801
 
  b_cxx_post=$shared_cxx_post
60802
 
  b_lo=$shared_lo
60803
 
 
60804
 
 
60805
 
  old_IFS=$IFS
60806
 
  for ac_src in gmp.c; do
60807
 
  
60808
 
      IFS=.
60809
 
      set $ac_src
60810
 
      ac_obj=$1
60811
 
      IFS=$old_IFS
60812
 
      
60813
 
      shared_objects_gmp="$shared_objects_gmp $ac_bdir$ac_obj.lo"
60814
 
 
60815
 
      case $ac_src in
60816
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60817
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60818
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60819
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60820
 
      esac
60821
 
 
60822
 
    cat >>Makefile.objects<<EOF
60823
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60824
 
        $ac_comp
60825
 
EOF
60826
 
  done
60827
 
 
60828
 
      case $host_alias in
60829
 
        *netware*)
60830
 
          
60831
 
  install_modules="install-modules"
60832
 
 
60833
 
  case $host_alias in
60834
 
    *aix*)
60835
 
      suffix=so
60836
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpgmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(PHPGMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpgmp.so '$ext_builddir'/phpgmp.so'
60837
 
      ;;
60838
 
    *netware*)
60839
 
      suffix=nlm
60840
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) -L$(top_builddir)/netware -lphp5lib $(GMP_SHARED_LIBADD)'
60841
 
      ;;
60842
 
    *)
60843
 
      suffix=la
60844
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(PHPGMP_SHARED_LIBADD)'
60845
 
      ;;
60846
 
  esac
60847
 
 
60848
 
  if test "x" = "xyes"; then
60849
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgmp.$suffix"
60850
 
  else
60851
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgmp.$suffix"
60852
 
  fi
60853
 
  
60854
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
60855
 
 
60856
 
  cat >>Makefile.objects<<EOF
60857
 
\$(phplibdir)/phpgmp.$suffix: $ext_builddir/phpgmp.$suffix
60858
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpgmp.$suffix \$(phplibdir)
60859
 
 
60860
 
$ext_builddir/phpgmp.$suffix: \$(shared_objects_gmp) \$(PHPGMP_SHARED_DEPENDENCIES)
60861
 
        $link_cmd
60862
 
 
60863
 
EOF
60864
 
 
60865
 
          ;;
60866
 
        *)
60867
 
          
60868
 
  install_modules="install-modules"
60869
 
 
60870
 
  case $host_alias in
60871
 
    *aix*)
60872
 
      suffix=so
60873
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/gmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(GMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/gmp.so '$ext_builddir'/gmp.so'
60874
 
      ;;
60875
 
    *netware*)
60876
 
      suffix=nlm
60877
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
60878
 
      ;;
60879
 
    *)
60880
 
      suffix=la
60881
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_gmp) $(GMP_SHARED_LIBADD)'
60882
 
      ;;
60883
 
  esac
60884
 
 
60885
 
  if test "x" = "xyes"; then
60886
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gmp.$suffix"
60887
 
  else
60888
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/gmp.$suffix"
60889
 
  fi
60890
 
  
60891
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
60892
 
 
60893
 
  cat >>Makefile.objects<<EOF
60894
 
\$(phplibdir)/gmp.$suffix: $ext_builddir/gmp.$suffix
60895
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/gmp.$suffix \$(phplibdir)
60896
 
 
60897
 
$ext_builddir/gmp.$suffix: \$(shared_objects_gmp) \$(GMP_SHARED_DEPENDENCIES)
60898
 
        $link_cmd
60899
 
 
60900
 
EOF
60901
 
 
60902
 
          ;;
60903
 
      esac
60904
 
      
60905
 
cat >>confdefs.h <<_ACEOF
60906
 
@%:@define COMPILE_DL_GMP 1
60907
 
_ACEOF
60908
 
 
60909
 
    fi
60910
 
  fi
60911
 
 
60912
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
60913
 
    PHP_GMP_SHARED=no
60914
 
    case "$PHP_SAPI" in
60915
 
      cgi|embed)
60916
 
        
60917
 
  
60918
 
  case ext/gmp in
60919
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60920
 
  /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60921
 
  *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60922
 
  esac
60923
 
  
60924
 
  
60925
 
 
60926
 
  b_c_pre=$php_c_pre
60927
 
  b_cxx_pre=$php_cxx_pre
60928
 
  b_c_meta=$php_c_meta
60929
 
  b_cxx_meta=$php_cxx_meta
60930
 
  b_c_post=$php_c_post
60931
 
  b_cxx_post=$php_cxx_post
60932
 
  b_lo=$php_lo
60933
 
 
60934
 
 
60935
 
  old_IFS=$IFS
60936
 
  for ac_src in gmp.c; do
60937
 
  
60938
 
      IFS=.
60939
 
      set $ac_src
60940
 
      ac_obj=$1
60941
 
      IFS=$old_IFS
60942
 
      
60943
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
60944
 
 
60945
 
      case $ac_src in
60946
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60947
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60948
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60949
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60950
 
      esac
60951
 
 
60952
 
    cat >>Makefile.objects<<EOF
60953
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60954
 
        $ac_comp
60955
 
EOF
60956
 
  done
60957
 
 
60958
 
 
60959
 
        EXT_STATIC="$EXT_STATIC gmp"
60960
 
        ;;
60961
 
      *)
60962
 
        
60963
 
  
60964
 
  case ext/gmp in
60965
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60966
 
  /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60967
 
  *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60968
 
  esac
60969
 
  
60970
 
  
60971
 
 
60972
 
  b_c_pre=$php_c_pre
60973
 
  b_cxx_pre=$php_cxx_pre
60974
 
  b_c_meta=$php_c_meta
60975
 
  b_cxx_meta=$php_cxx_meta
60976
 
  b_c_post=$php_c_post
60977
 
  b_cxx_post=$php_cxx_post
60978
 
  b_lo=$php_lo
60979
 
 
60980
 
 
60981
 
  old_IFS=$IFS
60982
 
  for ac_src in gmp.c; do
60983
 
  
60984
 
      IFS=.
60985
 
      set $ac_src
60986
 
      ac_obj=$1
60987
 
      IFS=$old_IFS
60988
 
      
60989
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
60990
 
 
60991
 
      case $ac_src in
60992
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60993
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60994
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60995
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60996
 
      esac
60997
 
 
60998
 
    cat >>Makefile.objects<<EOF
60999
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
61000
 
        $ac_comp
61001
 
EOF
61002
 
  done
61003
 
 
61004
 
 
61005
 
        ;;
61006
 
    esac
61007
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
61008
 
  fi
61009
 
  
61010
 
  
61011
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
61012
 
  
61013
 
 
61014
 
 
61015
 
  if test "$ext_builddir" = "."; then
61016
 
    PHP_PECL_EXTENSION=gmp
61017
 
    
61018
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
61019
 
 
61020
 
  fi
61021
 
 
61022
 
  
61023
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST GMP_SHARED_LIBADD"
61024
 
 
61025
 
  
61026
 
cat >>confdefs.h <<\_ACEOF
61027
 
@%:@define HAVE_GMP 1
61028
 
_ACEOF
61029
 
 
61030
 
fi
61031
 
 
61032
 
 
61033
 
 
61034
 
php_with_mhash=no
61035
 
 
61036
 
{ $as_echo "$as_me:$LINENO: checking for mhash support" >&5
61037
 
$as_echo_n "checking for mhash support... " >&6; }
61038
 
 
61039
 
@%:@ Check whether --with-mhash was given.
61040
 
if test "${with_mhash+set}" = set; then
61041
 
  withval=$with_mhash; PHP_MHASH=$withval
61042
 
else
61043
 
  
61044
 
  PHP_MHASH=no
61045
 
  test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL
61046
 
 
61047
 
fi
61048
 
 
61049
 
 
61050
 
 
61051
 
ext_output="yes, shared"
61052
 
ext_shared=yes
61053
 
case $PHP_MHASH in
61054
 
shared,*)
61055
 
  PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'`
61056
 
  ;;
61057
 
shared)
61058
 
  PHP_MHASH=yes
61059
 
  ;;
61060
 
no)
61061
 
  ext_output=no
61062
 
  ext_shared=no
61063
 
  ;;
61064
 
*)
61065
 
  ext_output=yes
61066
 
  ext_shared=no
61067
 
  ;;
61068
 
esac
61069
 
 
61070
 
 
61071
 
 
61072
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
61073
 
$as_echo "$ext_output" >&6; }
61074
 
 
61075
 
 
61076
 
 
61077
 
 
61078
 
 
61079
 
php_enable_hash=yes
61080
 
 
61081
 
{ $as_echo "$as_me:$LINENO: checking whether to enable hash support" >&5
61082
 
$as_echo_n "checking whether to enable hash support... " >&6; }
61083
 
@%:@ Check whether --enable-hash was given.
61084
 
if test "${enable_hash+set}" = set; then
61085
 
  enableval=$enable_hash; PHP_HASH=$enableval
61086
 
else
61087
 
  
61088
 
  PHP_HASH=yes
61089
 
  test "$PHP_ENABLE_ALL" && PHP_HASH=$PHP_ENABLE_ALL
61090
 
 
61091
 
fi
61092
 
 
61093
 
 
61094
 
 
61095
 
ext_output="yes, shared"
61096
 
ext_shared=yes
61097
 
case $PHP_HASH in
61098
 
shared,*)
61099
 
  PHP_HASH=`echo "$PHP_HASH"|$SED 's/^shared,//'`
61100
 
  ;;
61101
 
shared)
61102
 
  PHP_HASH=yes
61103
 
  ;;
61104
 
no)
61105
 
  ext_output=no
61106
 
  ext_shared=no
61107
 
  ;;
61108
 
*)
61109
 
  ext_output=yes
61110
 
  ext_shared=no
61111
 
  ;;
61112
 
esac
61113
 
 
61114
 
 
61115
 
 
61116
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
61117
 
$as_echo "$ext_output" >&6; }
61118
 
 
61119
 
 
61120
 
 
61121
 
 
61122
 
if test "$PHP_MHASH" != "no"; then
61123
 
  if test "$PHP_HASH" = "no"; then
61124
 
    PHP_HASH="yes"
61125
 
  fi
61126
 
 
61127
 
  
61128
 
cat >>confdefs.h <<\_ACEOF
61129
 
@%:@define PHP_MHASH_BC 1
61130
 
_ACEOF
61131
 
 
61132
 
fi
61133
 
 
61134
 
if test "$PHP_HASH" != "no"; then
61135
 
  
61136
 
cat >>confdefs.h <<\_ACEOF
61137
 
@%:@define HAVE_HASH_EXT 1
61138
 
_ACEOF
61139
 
 
61140
 
 
61141
 
  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
61142
 
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
61143
 
if test "${ac_cv_c_bigendian_php+set}" = set; then
61144
 
  $as_echo_n "(cached) " >&6
61145
 
else
61146
 
  
61147
 
  ac_cv_c_bigendian_php=unknown
61148
 
  if test "$cross_compiling" = yes; then
61149
 
  ac_cv_c_bigendian_php=unknown
61150
 
else
61151
 
  cat >conftest.$ac_ext <<_ACEOF
61152
 
/* confdefs.h.  */
61153
 
_ACEOF
61154
 
cat confdefs.h >>conftest.$ac_ext
61155
 
cat >>conftest.$ac_ext <<_ACEOF
61156
 
/* end confdefs.h.  */
61157
 
 
61158
 
int main(void)
61159
 
{
61160
 
  short one = 1;
61161
 
  char *cp = (char *)&one;
61162
 
 
61163
 
  if (*cp == 0) {
61164
 
    return(0);
61165
 
  } else {
61166
 
    return(1);
61167
 
  }
61168
 
}
61169
 
  
61170
 
_ACEOF
61171
 
rm -f conftest$ac_exeext
61172
 
if { (ac_try="$ac_link"
61173
 
case "(($ac_try" in
61174
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61175
 
  *) ac_try_echo=$ac_try;;
61176
 
esac
61177
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61178
 
$as_echo "$ac_try_echo") >&5
61179
 
  (eval "$ac_link") 2>&5
61180
 
  ac_status=$?
61181
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61182
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61183
 
  { (case "(($ac_try" in
61184
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61185
 
  *) ac_try_echo=$ac_try;;
61186
 
esac
61187
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61188
 
$as_echo "$ac_try_echo") >&5
61189
 
  (eval "$ac_try") 2>&5
61190
 
  ac_status=$?
61191
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61192
 
  (exit $ac_status); }; }; then
61193
 
  ac_cv_c_bigendian_php=yes
61194
 
else
61195
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
61196
 
$as_echo "$as_me: failed program was:" >&5
61197
 
sed 's/^/| /' conftest.$ac_ext >&5
61198
 
 
61199
 
( exit $ac_status )
61200
 
ac_cv_c_bigendian_php=no
61201
 
fi
61202
 
rm -rf conftest.dSYM
61203
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61204
 
fi
61205
 
 
61206
 
 
61207
 
 
61208
 
fi
61209
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian_php" >&5
61210
 
$as_echo "$ac_cv_c_bigendian_php" >&6; }
61211
 
 if test $ac_cv_c_bigendian_php = yes; then
61212
 
   
61213
 
cat >>confdefs.h <<\_ACEOF
61214
 
@%:@define WORDS_BIGENDIAN /**/
61215
 
_ACEOF
61216
 
 
61217
 
 fi
61218
 
 
61219
 
 
61220
 
  # The cast to long int works around a bug in the HP C Compiler
61221
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
61222
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
61223
 
# This bug is HP SR number 8606223364.
61224
 
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
61225
 
$as_echo_n "checking size of short... " >&6; }
61226
 
if test "${ac_cv_sizeof_short+set}" = set; then
61227
 
  $as_echo_n "(cached) " >&6
61228
 
else
61229
 
  if test "$cross_compiling" = yes; then
61230
 
  # Depending upon the size, compute the lo and hi bounds.
61231
 
cat >conftest.$ac_ext <<_ACEOF
61232
 
/* confdefs.h.  */
61233
 
_ACEOF
61234
 
cat confdefs.h >>conftest.$ac_ext
61235
 
cat >>conftest.$ac_ext <<_ACEOF
61236
 
/* end confdefs.h.  */
61237
 
$ac_includes_default
61238
 
int
61239
 
main ()
61240
 
{
61241
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= 0)@:>@;
61242
 
test_array @<:@0@:>@ = 0
61243
 
 
61244
 
  ;
61245
 
  return 0;
61246
 
}
61247
 
_ACEOF
61248
 
rm -f conftest.$ac_objext
61249
 
if { (ac_try="$ac_compile"
61250
 
case "(($ac_try" in
61251
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61252
 
  *) ac_try_echo=$ac_try;;
61253
 
esac
61254
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61255
 
$as_echo "$ac_try_echo") >&5
61256
 
  (eval "$ac_compile") 2>conftest.er1
61257
 
  ac_status=$?
61258
 
  grep -v '^ *+' conftest.er1 >conftest.err
61259
 
  rm -f conftest.er1
61260
 
  cat conftest.err >&5
61261
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61262
 
  (exit $ac_status); } && {
61263
 
         test -z "$ac_c_werror_flag" ||
61264
 
         test ! -s conftest.err
61265
 
       } && test -s conftest.$ac_objext; then
61266
 
  ac_lo=0 ac_mid=0
61267
 
  while :; do
61268
 
    cat >conftest.$ac_ext <<_ACEOF
61269
 
/* confdefs.h.  */
61270
 
_ACEOF
61271
 
cat confdefs.h >>conftest.$ac_ext
61272
 
cat >>conftest.$ac_ext <<_ACEOF
61273
 
/* end confdefs.h.  */
61274
 
$ac_includes_default
61275
 
int
61276
 
main ()
61277
 
{
61278
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@;
61279
 
test_array @<:@0@:>@ = 0
61280
 
 
61281
 
  ;
61282
 
  return 0;
61283
 
}
61284
 
_ACEOF
61285
 
rm -f conftest.$ac_objext
61286
 
if { (ac_try="$ac_compile"
61287
 
case "(($ac_try" in
61288
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61289
 
  *) ac_try_echo=$ac_try;;
61290
 
esac
61291
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61292
 
$as_echo "$ac_try_echo") >&5
61293
 
  (eval "$ac_compile") 2>conftest.er1
61294
 
  ac_status=$?
61295
 
  grep -v '^ *+' conftest.er1 >conftest.err
61296
 
  rm -f conftest.er1
61297
 
  cat conftest.err >&5
61298
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61299
 
  (exit $ac_status); } && {
61300
 
         test -z "$ac_c_werror_flag" ||
61301
 
         test ! -s conftest.err
61302
 
       } && test -s conftest.$ac_objext; then
61303
 
  ac_hi=$ac_mid; break
61304
 
else
61305
 
  $as_echo "$as_me: failed program was:" >&5
61306
 
sed 's/^/| /' conftest.$ac_ext >&5
61307
 
 
61308
 
        ac_lo=`expr $ac_mid + 1`
61309
 
                        if test $ac_lo -le $ac_mid; then
61310
 
                          ac_lo= ac_hi=
61311
 
                          break
61312
 
                        fi
61313
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
61314
 
fi
61315
 
 
61316
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61317
 
  done
61318
 
else
61319
 
  $as_echo "$as_me: failed program was:" >&5
61320
 
sed 's/^/| /' conftest.$ac_ext >&5
61321
 
 
61322
 
        cat >conftest.$ac_ext <<_ACEOF
61323
 
/* confdefs.h.  */
61324
 
_ACEOF
61325
 
cat confdefs.h >>conftest.$ac_ext
61326
 
cat >>conftest.$ac_ext <<_ACEOF
61327
 
/* end confdefs.h.  */
61328
 
$ac_includes_default
61329
 
int
61330
 
main ()
61331
 
{
61332
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) < 0)@:>@;
61333
 
test_array @<:@0@:>@ = 0
61334
 
 
61335
 
  ;
61336
 
  return 0;
61337
 
}
61338
 
_ACEOF
61339
 
rm -f conftest.$ac_objext
61340
 
if { (ac_try="$ac_compile"
61341
 
case "(($ac_try" in
61342
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61343
 
  *) ac_try_echo=$ac_try;;
61344
 
esac
61345
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61346
 
$as_echo "$ac_try_echo") >&5
61347
 
  (eval "$ac_compile") 2>conftest.er1
61348
 
  ac_status=$?
61349
 
  grep -v '^ *+' conftest.er1 >conftest.err
61350
 
  rm -f conftest.er1
61351
 
  cat conftest.err >&5
61352
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61353
 
  (exit $ac_status); } && {
61354
 
         test -z "$ac_c_werror_flag" ||
61355
 
         test ! -s conftest.err
61356
 
       } && test -s conftest.$ac_objext; then
61357
 
  ac_hi=-1 ac_mid=-1
61358
 
  while :; do
61359
 
    cat >conftest.$ac_ext <<_ACEOF
61360
 
/* confdefs.h.  */
61361
 
_ACEOF
61362
 
cat confdefs.h >>conftest.$ac_ext
61363
 
cat >>conftest.$ac_ext <<_ACEOF
61364
 
/* end confdefs.h.  */
61365
 
$ac_includes_default
61366
 
int
61367
 
main ()
61368
 
{
61369
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)@:>@;
61370
 
test_array @<:@0@:>@ = 0
61371
 
 
61372
 
  ;
61373
 
  return 0;
61374
 
}
61375
 
_ACEOF
61376
 
rm -f conftest.$ac_objext
61377
 
if { (ac_try="$ac_compile"
61378
 
case "(($ac_try" in
61379
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61380
 
  *) ac_try_echo=$ac_try;;
61381
 
esac
61382
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61383
 
$as_echo "$ac_try_echo") >&5
61384
 
  (eval "$ac_compile") 2>conftest.er1
61385
 
  ac_status=$?
61386
 
  grep -v '^ *+' conftest.er1 >conftest.err
61387
 
  rm -f conftest.er1
61388
 
  cat conftest.err >&5
61389
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61390
 
  (exit $ac_status); } && {
61391
 
         test -z "$ac_c_werror_flag" ||
61392
 
         test ! -s conftest.err
61393
 
       } && test -s conftest.$ac_objext; then
61394
 
  ac_lo=$ac_mid; break
61395
 
else
61396
 
  $as_echo "$as_me: failed program was:" >&5
61397
 
sed 's/^/| /' conftest.$ac_ext >&5
61398
 
 
61399
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
61400
 
                        if test $ac_mid -le $ac_hi; then
61401
 
                          ac_lo= ac_hi=
61402
 
                          break
61403
 
                        fi
61404
 
                        ac_mid=`expr 2 '*' $ac_mid`
61405
 
fi
61406
 
 
61407
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61408
 
  done
61409
 
else
61410
 
  $as_echo "$as_me: failed program was:" >&5
61411
 
sed 's/^/| /' conftest.$ac_ext >&5
61412
 
 
61413
 
        ac_lo= ac_hi=
61414
 
fi
61415
 
 
61416
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61417
 
fi
61418
 
 
61419
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61420
 
# Binary search between lo and hi bounds.
61421
 
while test "x$ac_lo" != "x$ac_hi"; do
61422
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
61423
 
  cat >conftest.$ac_ext <<_ACEOF
61424
 
/* confdefs.h.  */
61425
 
_ACEOF
61426
 
cat confdefs.h >>conftest.$ac_ext
61427
 
cat >>conftest.$ac_ext <<_ACEOF
61428
 
/* end confdefs.h.  */
61429
 
$ac_includes_default
61430
 
int
61431
 
main ()
61432
 
{
61433
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@;
61434
 
test_array @<:@0@:>@ = 0
61435
 
 
61436
 
  ;
61437
 
  return 0;
61438
 
}
61439
 
_ACEOF
61440
 
rm -f conftest.$ac_objext
61441
 
if { (ac_try="$ac_compile"
61442
 
case "(($ac_try" in
61443
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61444
 
  *) ac_try_echo=$ac_try;;
61445
 
esac
61446
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61447
 
$as_echo "$ac_try_echo") >&5
61448
 
  (eval "$ac_compile") 2>conftest.er1
61449
 
  ac_status=$?
61450
 
  grep -v '^ *+' conftest.er1 >conftest.err
61451
 
  rm -f conftest.er1
61452
 
  cat conftest.err >&5
61453
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61454
 
  (exit $ac_status); } && {
61455
 
         test -z "$ac_c_werror_flag" ||
61456
 
         test ! -s conftest.err
61457
 
       } && test -s conftest.$ac_objext; then
61458
 
  ac_hi=$ac_mid
61459
 
else
61460
 
  $as_echo "$as_me: failed program was:" >&5
61461
 
sed 's/^/| /' conftest.$ac_ext >&5
61462
 
 
61463
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
61464
 
fi
61465
 
 
61466
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61467
 
done
61468
 
case $ac_lo in
61469
 
?*) ac_cv_sizeof_short=$ac_lo;;
61470
 
'') if test "$ac_cv_type_short" = yes; then
61471
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
61472
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
61473
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
61474
 
See \`config.log' for more details." >&5
61475
 
$as_echo "$as_me: error: cannot compute sizeof (short)
61476
 
See \`config.log' for more details." >&2;}
61477
 
   { (exit 77); exit 77; }; }; }
61478
 
   else
61479
 
     ac_cv_sizeof_short=0
61480
 
   fi ;;
61481
 
esac
61482
 
else
61483
 
  cat >conftest.$ac_ext <<_ACEOF
61484
 
/* confdefs.h.  */
61485
 
_ACEOF
61486
 
cat confdefs.h >>conftest.$ac_ext
61487
 
cat >>conftest.$ac_ext <<_ACEOF
61488
 
/* end confdefs.h.  */
61489
 
$ac_includes_default
61490
 
static long int longval () { return (long int) (sizeof (short)); }
61491
 
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
61492
 
@%:@include <stdio.h>
61493
 
@%:@include <stdlib.h>
61494
 
int
61495
 
main ()
61496
 
{
61497
 
 
61498
 
  FILE *f = fopen ("conftest.val", "w");
61499
 
  if (! f)
61500
 
    return 1;
61501
 
  if (((long int) (sizeof (short))) < 0)
61502
 
    {
61503
 
      long int i = longval ();
61504
 
      if (i != ((long int) (sizeof (short))))
61505
 
        return 1;
61506
 
      fprintf (f, "%ld", i);
61507
 
    }
61508
 
  else
61509
 
    {
61510
 
      unsigned long int i = ulongval ();
61511
 
      if (i != ((long int) (sizeof (short))))
61512
 
        return 1;
61513
 
      fprintf (f, "%lu", i);
61514
 
    }
61515
 
  /* Do not output a trailing newline, as this causes \r\n confusion
61516
 
     on some platforms.  */
61517
 
  return ferror (f) || fclose (f) != 0;
61518
 
 
61519
 
  ;
61520
 
  return 0;
61521
 
}
61522
 
_ACEOF
61523
 
rm -f conftest$ac_exeext
61524
 
if { (ac_try="$ac_link"
61525
 
case "(($ac_try" in
61526
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61527
 
  *) ac_try_echo=$ac_try;;
61528
 
esac
61529
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61530
 
$as_echo "$ac_try_echo") >&5
61531
 
  (eval "$ac_link") 2>&5
61532
 
  ac_status=$?
61533
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61534
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61535
 
  { (case "(($ac_try" in
61536
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61537
 
  *) ac_try_echo=$ac_try;;
61538
 
esac
61539
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61540
 
$as_echo "$ac_try_echo") >&5
61541
 
  (eval "$ac_try") 2>&5
61542
 
  ac_status=$?
61543
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61544
 
  (exit $ac_status); }; }; then
61545
 
  ac_cv_sizeof_short=`cat conftest.val`
61546
 
else
61547
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
61548
 
$as_echo "$as_me: failed program was:" >&5
61549
 
sed 's/^/| /' conftest.$ac_ext >&5
61550
 
 
61551
 
( exit $ac_status )
61552
 
if test "$ac_cv_type_short" = yes; then
61553
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
61554
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
61555
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
61556
 
See \`config.log' for more details." >&5
61557
 
$as_echo "$as_me: error: cannot compute sizeof (short)
61558
 
See \`config.log' for more details." >&2;}
61559
 
   { (exit 77); exit 77; }; }; }
61560
 
   else
61561
 
     ac_cv_sizeof_short=0
61562
 
   fi
61563
 
fi
61564
 
rm -rf conftest.dSYM
61565
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61566
 
fi
61567
 
rm -f conftest.val
61568
 
fi
61569
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
61570
 
$as_echo "$ac_cv_sizeof_short" >&6; }
61571
 
 
61572
 
 
61573
 
 
61574
 
cat >>confdefs.h <<_ACEOF
61575
 
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
61576
 
_ACEOF
61577
 
 
61578
 
 
61579
 
  # The cast to long int works around a bug in the HP C Compiler
61580
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
61581
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
61582
 
# This bug is HP SR number 8606223364.
61583
 
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
61584
 
$as_echo_n "checking size of int... " >&6; }
61585
 
if test "${ac_cv_sizeof_int+set}" = set; then
61586
 
  $as_echo_n "(cached) " >&6
61587
 
else
61588
 
  if test "$cross_compiling" = yes; then
61589
 
  # Depending upon the size, compute the lo and hi bounds.
61590
 
cat >conftest.$ac_ext <<_ACEOF
61591
 
/* confdefs.h.  */
61592
 
_ACEOF
61593
 
cat confdefs.h >>conftest.$ac_ext
61594
 
cat >>conftest.$ac_ext <<_ACEOF
61595
 
/* end confdefs.h.  */
61596
 
$ac_includes_default
61597
 
int
61598
 
main ()
61599
 
{
61600
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= 0)@:>@;
61601
 
test_array @<:@0@:>@ = 0
61602
 
 
61603
 
  ;
61604
 
  return 0;
61605
 
}
61606
 
_ACEOF
61607
 
rm -f conftest.$ac_objext
61608
 
if { (ac_try="$ac_compile"
61609
 
case "(($ac_try" in
61610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61611
 
  *) ac_try_echo=$ac_try;;
61612
 
esac
61613
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61614
 
$as_echo "$ac_try_echo") >&5
61615
 
  (eval "$ac_compile") 2>conftest.er1
61616
 
  ac_status=$?
61617
 
  grep -v '^ *+' conftest.er1 >conftest.err
61618
 
  rm -f conftest.er1
61619
 
  cat conftest.err >&5
61620
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61621
 
  (exit $ac_status); } && {
61622
 
         test -z "$ac_c_werror_flag" ||
61623
 
         test ! -s conftest.err
61624
 
       } && test -s conftest.$ac_objext; then
61625
 
  ac_lo=0 ac_mid=0
61626
 
  while :; do
61627
 
    cat >conftest.$ac_ext <<_ACEOF
61628
 
/* confdefs.h.  */
61629
 
_ACEOF
61630
 
cat confdefs.h >>conftest.$ac_ext
61631
 
cat >>conftest.$ac_ext <<_ACEOF
61632
 
/* end confdefs.h.  */
61633
 
$ac_includes_default
61634
 
int
61635
 
main ()
61636
 
{
61637
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
61638
 
test_array @<:@0@:>@ = 0
61639
 
 
61640
 
  ;
61641
 
  return 0;
61642
 
}
61643
 
_ACEOF
61644
 
rm -f conftest.$ac_objext
61645
 
if { (ac_try="$ac_compile"
61646
 
case "(($ac_try" in
61647
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61648
 
  *) ac_try_echo=$ac_try;;
61649
 
esac
61650
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61651
 
$as_echo "$ac_try_echo") >&5
61652
 
  (eval "$ac_compile") 2>conftest.er1
61653
 
  ac_status=$?
61654
 
  grep -v '^ *+' conftest.er1 >conftest.err
61655
 
  rm -f conftest.er1
61656
 
  cat conftest.err >&5
61657
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61658
 
  (exit $ac_status); } && {
61659
 
         test -z "$ac_c_werror_flag" ||
61660
 
         test ! -s conftest.err
61661
 
       } && test -s conftest.$ac_objext; then
61662
 
  ac_hi=$ac_mid; break
61663
 
else
61664
 
  $as_echo "$as_me: failed program was:" >&5
61665
 
sed 's/^/| /' conftest.$ac_ext >&5
61666
 
 
61667
 
        ac_lo=`expr $ac_mid + 1`
61668
 
                        if test $ac_lo -le $ac_mid; then
61669
 
                          ac_lo= ac_hi=
61670
 
                          break
61671
 
                        fi
61672
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
61673
 
fi
61674
 
 
61675
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61676
 
  done
61677
 
else
61678
 
  $as_echo "$as_me: failed program was:" >&5
61679
 
sed 's/^/| /' conftest.$ac_ext >&5
61680
 
 
61681
 
        cat >conftest.$ac_ext <<_ACEOF
61682
 
/* confdefs.h.  */
61683
 
_ACEOF
61684
 
cat confdefs.h >>conftest.$ac_ext
61685
 
cat >>conftest.$ac_ext <<_ACEOF
61686
 
/* end confdefs.h.  */
61687
 
$ac_includes_default
61688
 
int
61689
 
main ()
61690
 
{
61691
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) < 0)@:>@;
61692
 
test_array @<:@0@:>@ = 0
61693
 
 
61694
 
  ;
61695
 
  return 0;
61696
 
}
61697
 
_ACEOF
61698
 
rm -f conftest.$ac_objext
61699
 
if { (ac_try="$ac_compile"
61700
 
case "(($ac_try" in
61701
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61702
 
  *) ac_try_echo=$ac_try;;
61703
 
esac
61704
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61705
 
$as_echo "$ac_try_echo") >&5
61706
 
  (eval "$ac_compile") 2>conftest.er1
61707
 
  ac_status=$?
61708
 
  grep -v '^ *+' conftest.er1 >conftest.err
61709
 
  rm -f conftest.er1
61710
 
  cat conftest.err >&5
61711
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61712
 
  (exit $ac_status); } && {
61713
 
         test -z "$ac_c_werror_flag" ||
61714
 
         test ! -s conftest.err
61715
 
       } && test -s conftest.$ac_objext; then
61716
 
  ac_hi=-1 ac_mid=-1
61717
 
  while :; do
61718
 
    cat >conftest.$ac_ext <<_ACEOF
61719
 
/* confdefs.h.  */
61720
 
_ACEOF
61721
 
cat confdefs.h >>conftest.$ac_ext
61722
 
cat >>conftest.$ac_ext <<_ACEOF
61723
 
/* end confdefs.h.  */
61724
 
$ac_includes_default
61725
 
int
61726
 
main ()
61727
 
{
61728
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)@:>@;
61729
 
test_array @<:@0@:>@ = 0
61730
 
 
61731
 
  ;
61732
 
  return 0;
61733
 
}
61734
 
_ACEOF
61735
 
rm -f conftest.$ac_objext
61736
 
if { (ac_try="$ac_compile"
61737
 
case "(($ac_try" in
61738
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61739
 
  *) ac_try_echo=$ac_try;;
61740
 
esac
61741
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61742
 
$as_echo "$ac_try_echo") >&5
61743
 
  (eval "$ac_compile") 2>conftest.er1
61744
 
  ac_status=$?
61745
 
  grep -v '^ *+' conftest.er1 >conftest.err
61746
 
  rm -f conftest.er1
61747
 
  cat conftest.err >&5
61748
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61749
 
  (exit $ac_status); } && {
61750
 
         test -z "$ac_c_werror_flag" ||
61751
 
         test ! -s conftest.err
61752
 
       } && test -s conftest.$ac_objext; then
61753
 
  ac_lo=$ac_mid; break
61754
 
else
61755
 
  $as_echo "$as_me: failed program was:" >&5
61756
 
sed 's/^/| /' conftest.$ac_ext >&5
61757
 
 
61758
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
61759
 
                        if test $ac_mid -le $ac_hi; then
61760
 
                          ac_lo= ac_hi=
61761
 
                          break
61762
 
                        fi
61763
 
                        ac_mid=`expr 2 '*' $ac_mid`
61764
 
fi
61765
 
 
61766
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61767
 
  done
61768
 
else
61769
 
  $as_echo "$as_me: failed program was:" >&5
61770
 
sed 's/^/| /' conftest.$ac_ext >&5
61771
 
 
61772
 
        ac_lo= ac_hi=
61773
 
fi
61774
 
 
61775
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61776
 
fi
61777
 
 
61778
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61779
 
# Binary search between lo and hi bounds.
61780
 
while test "x$ac_lo" != "x$ac_hi"; do
61781
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
61782
 
  cat >conftest.$ac_ext <<_ACEOF
61783
 
/* confdefs.h.  */
61784
 
_ACEOF
61785
 
cat confdefs.h >>conftest.$ac_ext
61786
 
cat >>conftest.$ac_ext <<_ACEOF
61787
 
/* end confdefs.h.  */
61788
 
$ac_includes_default
61789
 
int
61790
 
main ()
61791
 
{
61792
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
61793
 
test_array @<:@0@:>@ = 0
61794
 
 
61795
 
  ;
61796
 
  return 0;
61797
 
}
61798
 
_ACEOF
61799
 
rm -f conftest.$ac_objext
61800
 
if { (ac_try="$ac_compile"
61801
 
case "(($ac_try" in
61802
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61803
 
  *) ac_try_echo=$ac_try;;
61804
 
esac
61805
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61806
 
$as_echo "$ac_try_echo") >&5
61807
 
  (eval "$ac_compile") 2>conftest.er1
61808
 
  ac_status=$?
61809
 
  grep -v '^ *+' conftest.er1 >conftest.err
61810
 
  rm -f conftest.er1
61811
 
  cat conftest.err >&5
61812
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61813
 
  (exit $ac_status); } && {
61814
 
         test -z "$ac_c_werror_flag" ||
61815
 
         test ! -s conftest.err
61816
 
       } && test -s conftest.$ac_objext; then
61817
 
  ac_hi=$ac_mid
61818
 
else
61819
 
  $as_echo "$as_me: failed program was:" >&5
61820
 
sed 's/^/| /' conftest.$ac_ext >&5
61821
 
 
61822
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
61823
 
fi
61824
 
 
61825
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61826
 
done
61827
 
case $ac_lo in
61828
 
?*) ac_cv_sizeof_int=$ac_lo;;
61829
 
'') if test "$ac_cv_type_int" = yes; then
61830
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
61831
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
61832
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
61833
 
See \`config.log' for more details." >&5
61834
 
$as_echo "$as_me: error: cannot compute sizeof (int)
61835
 
See \`config.log' for more details." >&2;}
61836
 
   { (exit 77); exit 77; }; }; }
61837
 
   else
61838
 
     ac_cv_sizeof_int=0
61839
 
   fi ;;
61840
 
esac
61841
 
else
61842
 
  cat >conftest.$ac_ext <<_ACEOF
61843
 
/* confdefs.h.  */
61844
 
_ACEOF
61845
 
cat confdefs.h >>conftest.$ac_ext
61846
 
cat >>conftest.$ac_ext <<_ACEOF
61847
 
/* end confdefs.h.  */
61848
 
$ac_includes_default
61849
 
static long int longval () { return (long int) (sizeof (int)); }
61850
 
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
61851
 
@%:@include <stdio.h>
61852
 
@%:@include <stdlib.h>
61853
 
int
61854
 
main ()
61855
 
{
61856
 
 
61857
 
  FILE *f = fopen ("conftest.val", "w");
61858
 
  if (! f)
61859
 
    return 1;
61860
 
  if (((long int) (sizeof (int))) < 0)
61861
 
    {
61862
 
      long int i = longval ();
61863
 
      if (i != ((long int) (sizeof (int))))
61864
 
        return 1;
61865
 
      fprintf (f, "%ld", i);
61866
 
    }
61867
 
  else
61868
 
    {
61869
 
      unsigned long int i = ulongval ();
61870
 
      if (i != ((long int) (sizeof (int))))
61871
 
        return 1;
61872
 
      fprintf (f, "%lu", i);
61873
 
    }
61874
 
  /* Do not output a trailing newline, as this causes \r\n confusion
61875
 
     on some platforms.  */
61876
 
  return ferror (f) || fclose (f) != 0;
61877
 
 
61878
 
  ;
61879
 
  return 0;
61880
 
}
61881
 
_ACEOF
61882
 
rm -f conftest$ac_exeext
61883
 
if { (ac_try="$ac_link"
61884
 
case "(($ac_try" in
61885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61886
 
  *) ac_try_echo=$ac_try;;
61887
 
esac
61888
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61889
 
$as_echo "$ac_try_echo") >&5
61890
 
  (eval "$ac_link") 2>&5
61891
 
  ac_status=$?
61892
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61893
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61894
 
  { (case "(($ac_try" in
61895
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61896
 
  *) ac_try_echo=$ac_try;;
61897
 
esac
61898
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61899
 
$as_echo "$ac_try_echo") >&5
61900
 
  (eval "$ac_try") 2>&5
61901
 
  ac_status=$?
61902
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61903
 
  (exit $ac_status); }; }; then
61904
 
  ac_cv_sizeof_int=`cat conftest.val`
61905
 
else
61906
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
61907
 
$as_echo "$as_me: failed program was:" >&5
61908
 
sed 's/^/| /' conftest.$ac_ext >&5
61909
 
 
61910
 
( exit $ac_status )
61911
 
if test "$ac_cv_type_int" = yes; then
61912
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
61913
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
61914
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
61915
 
See \`config.log' for more details." >&5
61916
 
$as_echo "$as_me: error: cannot compute sizeof (int)
61917
 
See \`config.log' for more details." >&2;}
61918
 
   { (exit 77); exit 77; }; }; }
61919
 
   else
61920
 
     ac_cv_sizeof_int=0
61921
 
   fi
61922
 
fi
61923
 
rm -rf conftest.dSYM
61924
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61925
 
fi
61926
 
rm -f conftest.val
61927
 
fi
61928
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
61929
 
$as_echo "$ac_cv_sizeof_int" >&6; }
61930
 
 
61931
 
 
61932
 
 
61933
 
cat >>confdefs.h <<_ACEOF
61934
 
@%:@define SIZEOF_INT $ac_cv_sizeof_int
61935
 
_ACEOF
61936
 
 
61937
 
 
61938
 
  # The cast to long int works around a bug in the HP C Compiler
61939
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
61940
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
61941
 
# This bug is HP SR number 8606223364.
61942
 
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
61943
 
$as_echo_n "checking size of long... " >&6; }
61944
 
if test "${ac_cv_sizeof_long+set}" = set; then
61945
 
  $as_echo_n "(cached) " >&6
61946
 
else
61947
 
  if test "$cross_compiling" = yes; then
61948
 
  # Depending upon the size, compute the lo and hi bounds.
61949
 
cat >conftest.$ac_ext <<_ACEOF
61950
 
/* confdefs.h.  */
61951
 
_ACEOF
61952
 
cat confdefs.h >>conftest.$ac_ext
61953
 
cat >>conftest.$ac_ext <<_ACEOF
61954
 
/* end confdefs.h.  */
61955
 
$ac_includes_default
61956
 
int
61957
 
main ()
61958
 
{
61959
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@;
61960
 
test_array @<:@0@:>@ = 0
61961
 
 
61962
 
  ;
61963
 
  return 0;
61964
 
}
61965
 
_ACEOF
61966
 
rm -f conftest.$ac_objext
61967
 
if { (ac_try="$ac_compile"
61968
 
case "(($ac_try" in
61969
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61970
 
  *) ac_try_echo=$ac_try;;
61971
 
esac
61972
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61973
 
$as_echo "$ac_try_echo") >&5
61974
 
  (eval "$ac_compile") 2>conftest.er1
61975
 
  ac_status=$?
61976
 
  grep -v '^ *+' conftest.er1 >conftest.err
61977
 
  rm -f conftest.er1
61978
 
  cat conftest.err >&5
61979
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61980
 
  (exit $ac_status); } && {
61981
 
         test -z "$ac_c_werror_flag" ||
61982
 
         test ! -s conftest.err
61983
 
       } && test -s conftest.$ac_objext; then
61984
 
  ac_lo=0 ac_mid=0
61985
 
  while :; do
61986
 
    cat >conftest.$ac_ext <<_ACEOF
61987
 
/* confdefs.h.  */
61988
 
_ACEOF
61989
 
cat confdefs.h >>conftest.$ac_ext
61990
 
cat >>conftest.$ac_ext <<_ACEOF
61991
 
/* end confdefs.h.  */
61992
 
$ac_includes_default
61993
 
int
61994
 
main ()
61995
 
{
61996
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
61997
 
test_array @<:@0@:>@ = 0
61998
 
 
61999
 
  ;
62000
 
  return 0;
62001
 
}
62002
 
_ACEOF
62003
 
rm -f conftest.$ac_objext
62004
 
if { (ac_try="$ac_compile"
62005
 
case "(($ac_try" in
62006
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62007
 
  *) ac_try_echo=$ac_try;;
62008
 
esac
62009
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62010
 
$as_echo "$ac_try_echo") >&5
62011
 
  (eval "$ac_compile") 2>conftest.er1
62012
 
  ac_status=$?
62013
 
  grep -v '^ *+' conftest.er1 >conftest.err
62014
 
  rm -f conftest.er1
62015
 
  cat conftest.err >&5
62016
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62017
 
  (exit $ac_status); } && {
62018
 
         test -z "$ac_c_werror_flag" ||
62019
 
         test ! -s conftest.err
62020
 
       } && test -s conftest.$ac_objext; then
62021
 
  ac_hi=$ac_mid; break
62022
 
else
62023
 
  $as_echo "$as_me: failed program was:" >&5
62024
 
sed 's/^/| /' conftest.$ac_ext >&5
62025
 
 
62026
 
        ac_lo=`expr $ac_mid + 1`
62027
 
                        if test $ac_lo -le $ac_mid; then
62028
 
                          ac_lo= ac_hi=
62029
 
                          break
62030
 
                        fi
62031
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
62032
 
fi
62033
 
 
62034
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62035
 
  done
62036
 
else
62037
 
  $as_echo "$as_me: failed program was:" >&5
62038
 
sed 's/^/| /' conftest.$ac_ext >&5
62039
 
 
62040
 
        cat >conftest.$ac_ext <<_ACEOF
62041
 
/* confdefs.h.  */
62042
 
_ACEOF
62043
 
cat confdefs.h >>conftest.$ac_ext
62044
 
cat >>conftest.$ac_ext <<_ACEOF
62045
 
/* end confdefs.h.  */
62046
 
$ac_includes_default
62047
 
int
62048
 
main ()
62049
 
{
62050
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@;
62051
 
test_array @<:@0@:>@ = 0
62052
 
 
62053
 
  ;
62054
 
  return 0;
62055
 
}
62056
 
_ACEOF
62057
 
rm -f conftest.$ac_objext
62058
 
if { (ac_try="$ac_compile"
62059
 
case "(($ac_try" in
62060
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62061
 
  *) ac_try_echo=$ac_try;;
62062
 
esac
62063
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62064
 
$as_echo "$ac_try_echo") >&5
62065
 
  (eval "$ac_compile") 2>conftest.er1
62066
 
  ac_status=$?
62067
 
  grep -v '^ *+' conftest.er1 >conftest.err
62068
 
  rm -f conftest.er1
62069
 
  cat conftest.err >&5
62070
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62071
 
  (exit $ac_status); } && {
62072
 
         test -z "$ac_c_werror_flag" ||
62073
 
         test ! -s conftest.err
62074
 
       } && test -s conftest.$ac_objext; then
62075
 
  ac_hi=-1 ac_mid=-1
62076
 
  while :; do
62077
 
    cat >conftest.$ac_ext <<_ACEOF
62078
 
/* confdefs.h.  */
62079
 
_ACEOF
62080
 
cat confdefs.h >>conftest.$ac_ext
62081
 
cat >>conftest.$ac_ext <<_ACEOF
62082
 
/* end confdefs.h.  */
62083
 
$ac_includes_default
62084
 
int
62085
 
main ()
62086
 
{
62087
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@;
62088
 
test_array @<:@0@:>@ = 0
62089
 
 
62090
 
  ;
62091
 
  return 0;
62092
 
}
62093
 
_ACEOF
62094
 
rm -f conftest.$ac_objext
62095
 
if { (ac_try="$ac_compile"
62096
 
case "(($ac_try" in
62097
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62098
 
  *) ac_try_echo=$ac_try;;
62099
 
esac
62100
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62101
 
$as_echo "$ac_try_echo") >&5
62102
 
  (eval "$ac_compile") 2>conftest.er1
62103
 
  ac_status=$?
62104
 
  grep -v '^ *+' conftest.er1 >conftest.err
62105
 
  rm -f conftest.er1
62106
 
  cat conftest.err >&5
62107
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62108
 
  (exit $ac_status); } && {
62109
 
         test -z "$ac_c_werror_flag" ||
62110
 
         test ! -s conftest.err
62111
 
       } && test -s conftest.$ac_objext; then
62112
 
  ac_lo=$ac_mid; break
62113
 
else
62114
 
  $as_echo "$as_me: failed program was:" >&5
62115
 
sed 's/^/| /' conftest.$ac_ext >&5
62116
 
 
62117
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
62118
 
                        if test $ac_mid -le $ac_hi; then
62119
 
                          ac_lo= ac_hi=
62120
 
                          break
62121
 
                        fi
62122
 
                        ac_mid=`expr 2 '*' $ac_mid`
62123
 
fi
62124
 
 
62125
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62126
 
  done
62127
 
else
62128
 
  $as_echo "$as_me: failed program was:" >&5
62129
 
sed 's/^/| /' conftest.$ac_ext >&5
62130
 
 
62131
 
        ac_lo= ac_hi=
62132
 
fi
62133
 
 
62134
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62135
 
fi
62136
 
 
62137
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62138
 
# Binary search between lo and hi bounds.
62139
 
while test "x$ac_lo" != "x$ac_hi"; do
62140
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
62141
 
  cat >conftest.$ac_ext <<_ACEOF
62142
 
/* confdefs.h.  */
62143
 
_ACEOF
62144
 
cat confdefs.h >>conftest.$ac_ext
62145
 
cat >>conftest.$ac_ext <<_ACEOF
62146
 
/* end confdefs.h.  */
62147
 
$ac_includes_default
62148
 
int
62149
 
main ()
62150
 
{
62151
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
62152
 
test_array @<:@0@:>@ = 0
62153
 
 
62154
 
  ;
62155
 
  return 0;
62156
 
}
62157
 
_ACEOF
62158
 
rm -f conftest.$ac_objext
62159
 
if { (ac_try="$ac_compile"
62160
 
case "(($ac_try" in
62161
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62162
 
  *) ac_try_echo=$ac_try;;
62163
 
esac
62164
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62165
 
$as_echo "$ac_try_echo") >&5
62166
 
  (eval "$ac_compile") 2>conftest.er1
62167
 
  ac_status=$?
62168
 
  grep -v '^ *+' conftest.er1 >conftest.err
62169
 
  rm -f conftest.er1
62170
 
  cat conftest.err >&5
62171
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62172
 
  (exit $ac_status); } && {
62173
 
         test -z "$ac_c_werror_flag" ||
62174
 
         test ! -s conftest.err
62175
 
       } && test -s conftest.$ac_objext; then
62176
 
  ac_hi=$ac_mid
62177
 
else
62178
 
  $as_echo "$as_me: failed program was:" >&5
62179
 
sed 's/^/| /' conftest.$ac_ext >&5
62180
 
 
62181
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
62182
 
fi
62183
 
 
62184
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62185
 
done
62186
 
case $ac_lo in
62187
 
?*) ac_cv_sizeof_long=$ac_lo;;
62188
 
'') if test "$ac_cv_type_long" = yes; then
62189
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
62190
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
62191
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
62192
 
See \`config.log' for more details." >&5
62193
 
$as_echo "$as_me: error: cannot compute sizeof (long)
62194
 
See \`config.log' for more details." >&2;}
62195
 
   { (exit 77); exit 77; }; }; }
62196
 
   else
62197
 
     ac_cv_sizeof_long=0
62198
 
   fi ;;
62199
 
esac
62200
 
else
62201
 
  cat >conftest.$ac_ext <<_ACEOF
62202
 
/* confdefs.h.  */
62203
 
_ACEOF
62204
 
cat confdefs.h >>conftest.$ac_ext
62205
 
cat >>conftest.$ac_ext <<_ACEOF
62206
 
/* end confdefs.h.  */
62207
 
$ac_includes_default
62208
 
static long int longval () { return (long int) (sizeof (long)); }
62209
 
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
62210
 
@%:@include <stdio.h>
62211
 
@%:@include <stdlib.h>
62212
 
int
62213
 
main ()
62214
 
{
62215
 
 
62216
 
  FILE *f = fopen ("conftest.val", "w");
62217
 
  if (! f)
62218
 
    return 1;
62219
 
  if (((long int) (sizeof (long))) < 0)
62220
 
    {
62221
 
      long int i = longval ();
62222
 
      if (i != ((long int) (sizeof (long))))
62223
 
        return 1;
62224
 
      fprintf (f, "%ld", i);
62225
 
    }
62226
 
  else
62227
 
    {
62228
 
      unsigned long int i = ulongval ();
62229
 
      if (i != ((long int) (sizeof (long))))
62230
 
        return 1;
62231
 
      fprintf (f, "%lu", i);
62232
 
    }
62233
 
  /* Do not output a trailing newline, as this causes \r\n confusion
62234
 
     on some platforms.  */
62235
 
  return ferror (f) || fclose (f) != 0;
62236
 
 
62237
 
  ;
62238
 
  return 0;
62239
 
}
62240
 
_ACEOF
62241
 
rm -f conftest$ac_exeext
62242
 
if { (ac_try="$ac_link"
62243
 
case "(($ac_try" in
62244
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62245
 
  *) ac_try_echo=$ac_try;;
62246
 
esac
62247
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62248
 
$as_echo "$ac_try_echo") >&5
62249
 
  (eval "$ac_link") 2>&5
62250
 
  ac_status=$?
62251
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62252
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62253
 
  { (case "(($ac_try" in
62254
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62255
 
  *) ac_try_echo=$ac_try;;
62256
 
esac
62257
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62258
 
$as_echo "$ac_try_echo") >&5
62259
 
  (eval "$ac_try") 2>&5
62260
 
  ac_status=$?
62261
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62262
 
  (exit $ac_status); }; }; then
62263
 
  ac_cv_sizeof_long=`cat conftest.val`
62264
 
else
62265
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
62266
 
$as_echo "$as_me: failed program was:" >&5
62267
 
sed 's/^/| /' conftest.$ac_ext >&5
62268
 
 
62269
 
( exit $ac_status )
62270
 
if test "$ac_cv_type_long" = yes; then
62271
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
62272
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
62273
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
62274
 
See \`config.log' for more details." >&5
62275
 
$as_echo "$as_me: error: cannot compute sizeof (long)
62276
 
See \`config.log' for more details." >&2;}
62277
 
   { (exit 77); exit 77; }; }; }
62278
 
   else
62279
 
     ac_cv_sizeof_long=0
62280
 
   fi
62281
 
fi
62282
 
rm -rf conftest.dSYM
62283
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62284
 
fi
62285
 
rm -f conftest.val
62286
 
fi
62287
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
62288
 
$as_echo "$ac_cv_sizeof_long" >&6; }
62289
 
 
62290
 
 
62291
 
 
62292
 
cat >>confdefs.h <<_ACEOF
62293
 
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
62294
 
_ACEOF
62295
 
 
62296
 
 
62297
 
  # The cast to long int works around a bug in the HP C Compiler
62298
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
62299
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
62300
 
# This bug is HP SR number 8606223364.
62301
 
{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
62302
 
$as_echo_n "checking size of long long... " >&6; }
62303
 
if test "${ac_cv_sizeof_long_long+set}" = set; then
62304
 
  $as_echo_n "(cached) " >&6
62305
 
else
62306
 
  if test "$cross_compiling" = yes; then
62307
 
  # Depending upon the size, compute the lo and hi bounds.
62308
 
cat >conftest.$ac_ext <<_ACEOF
62309
 
/* confdefs.h.  */
62310
 
_ACEOF
62311
 
cat confdefs.h >>conftest.$ac_ext
62312
 
cat >>conftest.$ac_ext <<_ACEOF
62313
 
/* end confdefs.h.  */
62314
 
$ac_includes_default
62315
 
int
62316
 
main ()
62317
 
{
62318
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= 0)@:>@;
62319
 
test_array @<:@0@:>@ = 0
62320
 
 
62321
 
  ;
62322
 
  return 0;
62323
 
}
62324
 
_ACEOF
62325
 
rm -f conftest.$ac_objext
62326
 
if { (ac_try="$ac_compile"
62327
 
case "(($ac_try" in
62328
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62329
 
  *) ac_try_echo=$ac_try;;
62330
 
esac
62331
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62332
 
$as_echo "$ac_try_echo") >&5
62333
 
  (eval "$ac_compile") 2>conftest.er1
62334
 
  ac_status=$?
62335
 
  grep -v '^ *+' conftest.er1 >conftest.err
62336
 
  rm -f conftest.er1
62337
 
  cat conftest.err >&5
62338
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62339
 
  (exit $ac_status); } && {
62340
 
         test -z "$ac_c_werror_flag" ||
62341
 
         test ! -s conftest.err
62342
 
       } && test -s conftest.$ac_objext; then
62343
 
  ac_lo=0 ac_mid=0
62344
 
  while :; do
62345
 
    cat >conftest.$ac_ext <<_ACEOF
62346
 
/* confdefs.h.  */
62347
 
_ACEOF
62348
 
cat confdefs.h >>conftest.$ac_ext
62349
 
cat >>conftest.$ac_ext <<_ACEOF
62350
 
/* end confdefs.h.  */
62351
 
$ac_includes_default
62352
 
int
62353
 
main ()
62354
 
{
62355
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
62356
 
test_array @<:@0@:>@ = 0
62357
 
 
62358
 
  ;
62359
 
  return 0;
62360
 
}
62361
 
_ACEOF
62362
 
rm -f conftest.$ac_objext
62363
 
if { (ac_try="$ac_compile"
62364
 
case "(($ac_try" in
62365
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62366
 
  *) ac_try_echo=$ac_try;;
62367
 
esac
62368
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62369
 
$as_echo "$ac_try_echo") >&5
62370
 
  (eval "$ac_compile") 2>conftest.er1
62371
 
  ac_status=$?
62372
 
  grep -v '^ *+' conftest.er1 >conftest.err
62373
 
  rm -f conftest.er1
62374
 
  cat conftest.err >&5
62375
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62376
 
  (exit $ac_status); } && {
62377
 
         test -z "$ac_c_werror_flag" ||
62378
 
         test ! -s conftest.err
62379
 
       } && test -s conftest.$ac_objext; then
62380
 
  ac_hi=$ac_mid; break
62381
 
else
62382
 
  $as_echo "$as_me: failed program was:" >&5
62383
 
sed 's/^/| /' conftest.$ac_ext >&5
62384
 
 
62385
 
        ac_lo=`expr $ac_mid + 1`
62386
 
                        if test $ac_lo -le $ac_mid; then
62387
 
                          ac_lo= ac_hi=
62388
 
                          break
62389
 
                        fi
62390
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
62391
 
fi
62392
 
 
62393
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62394
 
  done
62395
 
else
62396
 
  $as_echo "$as_me: failed program was:" >&5
62397
 
sed 's/^/| /' conftest.$ac_ext >&5
62398
 
 
62399
 
        cat >conftest.$ac_ext <<_ACEOF
62400
 
/* confdefs.h.  */
62401
 
_ACEOF
62402
 
cat confdefs.h >>conftest.$ac_ext
62403
 
cat >>conftest.$ac_ext <<_ACEOF
62404
 
/* end confdefs.h.  */
62405
 
$ac_includes_default
62406
 
int
62407
 
main ()
62408
 
{
62409
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) < 0)@:>@;
62410
 
test_array @<:@0@:>@ = 0
62411
 
 
62412
 
  ;
62413
 
  return 0;
62414
 
}
62415
 
_ACEOF
62416
 
rm -f conftest.$ac_objext
62417
 
if { (ac_try="$ac_compile"
62418
 
case "(($ac_try" in
62419
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62420
 
  *) ac_try_echo=$ac_try;;
62421
 
esac
62422
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62423
 
$as_echo "$ac_try_echo") >&5
62424
 
  (eval "$ac_compile") 2>conftest.er1
62425
 
  ac_status=$?
62426
 
  grep -v '^ *+' conftest.er1 >conftest.err
62427
 
  rm -f conftest.er1
62428
 
  cat conftest.err >&5
62429
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62430
 
  (exit $ac_status); } && {
62431
 
         test -z "$ac_c_werror_flag" ||
62432
 
         test ! -s conftest.err
62433
 
       } && test -s conftest.$ac_objext; then
62434
 
  ac_hi=-1 ac_mid=-1
62435
 
  while :; do
62436
 
    cat >conftest.$ac_ext <<_ACEOF
62437
 
/* confdefs.h.  */
62438
 
_ACEOF
62439
 
cat confdefs.h >>conftest.$ac_ext
62440
 
cat >>conftest.$ac_ext <<_ACEOF
62441
 
/* end confdefs.h.  */
62442
 
$ac_includes_default
62443
 
int
62444
 
main ()
62445
 
{
62446
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)@:>@;
62447
 
test_array @<:@0@:>@ = 0
62448
 
 
62449
 
  ;
62450
 
  return 0;
62451
 
}
62452
 
_ACEOF
62453
 
rm -f conftest.$ac_objext
62454
 
if { (ac_try="$ac_compile"
62455
 
case "(($ac_try" in
62456
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62457
 
  *) ac_try_echo=$ac_try;;
62458
 
esac
62459
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62460
 
$as_echo "$ac_try_echo") >&5
62461
 
  (eval "$ac_compile") 2>conftest.er1
62462
 
  ac_status=$?
62463
 
  grep -v '^ *+' conftest.er1 >conftest.err
62464
 
  rm -f conftest.er1
62465
 
  cat conftest.err >&5
62466
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62467
 
  (exit $ac_status); } && {
62468
 
         test -z "$ac_c_werror_flag" ||
62469
 
         test ! -s conftest.err
62470
 
       } && test -s conftest.$ac_objext; then
62471
 
  ac_lo=$ac_mid; break
62472
 
else
62473
 
  $as_echo "$as_me: failed program was:" >&5
62474
 
sed 's/^/| /' conftest.$ac_ext >&5
62475
 
 
62476
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
62477
 
                        if test $ac_mid -le $ac_hi; then
62478
 
                          ac_lo= ac_hi=
62479
 
                          break
62480
 
                        fi
62481
 
                        ac_mid=`expr 2 '*' $ac_mid`
62482
 
fi
62483
 
 
62484
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62485
 
  done
62486
 
else
62487
 
  $as_echo "$as_me: failed program was:" >&5
62488
 
sed 's/^/| /' conftest.$ac_ext >&5
62489
 
 
62490
 
        ac_lo= ac_hi=
62491
 
fi
62492
 
 
62493
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62494
 
fi
62495
 
 
62496
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62497
 
# Binary search between lo and hi bounds.
62498
 
while test "x$ac_lo" != "x$ac_hi"; do
62499
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
62500
 
  cat >conftest.$ac_ext <<_ACEOF
62501
 
/* confdefs.h.  */
62502
 
_ACEOF
62503
 
cat confdefs.h >>conftest.$ac_ext
62504
 
cat >>conftest.$ac_ext <<_ACEOF
62505
 
/* end confdefs.h.  */
62506
 
$ac_includes_default
62507
 
int
62508
 
main ()
62509
 
{
62510
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
62511
 
test_array @<:@0@:>@ = 0
62512
 
 
62513
 
  ;
62514
 
  return 0;
62515
 
}
62516
 
_ACEOF
62517
 
rm -f conftest.$ac_objext
62518
 
if { (ac_try="$ac_compile"
62519
 
case "(($ac_try" in
62520
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62521
 
  *) ac_try_echo=$ac_try;;
62522
 
esac
62523
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62524
 
$as_echo "$ac_try_echo") >&5
62525
 
  (eval "$ac_compile") 2>conftest.er1
62526
 
  ac_status=$?
62527
 
  grep -v '^ *+' conftest.er1 >conftest.err
62528
 
  rm -f conftest.er1
62529
 
  cat conftest.err >&5
62530
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62531
 
  (exit $ac_status); } && {
62532
 
         test -z "$ac_c_werror_flag" ||
62533
 
         test ! -s conftest.err
62534
 
       } && test -s conftest.$ac_objext; then
62535
 
  ac_hi=$ac_mid
62536
 
else
62537
 
  $as_echo "$as_me: failed program was:" >&5
62538
 
sed 's/^/| /' conftest.$ac_ext >&5
62539
 
 
62540
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
62541
 
fi
62542
 
 
62543
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62544
 
done
62545
 
case $ac_lo in
62546
 
?*) ac_cv_sizeof_long_long=$ac_lo;;
62547
 
'') if test "$ac_cv_type_long_long" = yes; then
62548
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
62549
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
62550
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
62551
 
See \`config.log' for more details." >&5
62552
 
$as_echo "$as_me: error: cannot compute sizeof (long long)
62553
 
See \`config.log' for more details." >&2;}
62554
 
   { (exit 77); exit 77; }; }; }
62555
 
   else
62556
 
     ac_cv_sizeof_long_long=0
62557
 
   fi ;;
62558
 
esac
62559
 
else
62560
 
  cat >conftest.$ac_ext <<_ACEOF
62561
 
/* confdefs.h.  */
62562
 
_ACEOF
62563
 
cat confdefs.h >>conftest.$ac_ext
62564
 
cat >>conftest.$ac_ext <<_ACEOF
62565
 
/* end confdefs.h.  */
62566
 
$ac_includes_default
62567
 
static long int longval () { return (long int) (sizeof (long long)); }
62568
 
static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
62569
 
@%:@include <stdio.h>
62570
 
@%:@include <stdlib.h>
62571
 
int
62572
 
main ()
62573
 
{
62574
 
 
62575
 
  FILE *f = fopen ("conftest.val", "w");
62576
 
  if (! f)
62577
 
    return 1;
62578
 
  if (((long int) (sizeof (long long))) < 0)
62579
 
    {
62580
 
      long int i = longval ();
62581
 
      if (i != ((long int) (sizeof (long long))))
62582
 
        return 1;
62583
 
      fprintf (f, "%ld", i);
62584
 
    }
62585
 
  else
62586
 
    {
62587
 
      unsigned long int i = ulongval ();
62588
 
      if (i != ((long int) (sizeof (long long))))
62589
 
        return 1;
62590
 
      fprintf (f, "%lu", i);
62591
 
    }
62592
 
  /* Do not output a trailing newline, as this causes \r\n confusion
62593
 
     on some platforms.  */
62594
 
  return ferror (f) || fclose (f) != 0;
62595
 
 
62596
 
  ;
62597
 
  return 0;
62598
 
}
62599
 
_ACEOF
62600
 
rm -f conftest$ac_exeext
62601
 
if { (ac_try="$ac_link"
62602
 
case "(($ac_try" in
62603
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62604
 
  *) ac_try_echo=$ac_try;;
62605
 
esac
62606
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62607
 
$as_echo "$ac_try_echo") >&5
62608
 
  (eval "$ac_link") 2>&5
62609
 
  ac_status=$?
62610
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62611
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62612
 
  { (case "(($ac_try" in
62613
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62614
 
  *) ac_try_echo=$ac_try;;
62615
 
esac
62616
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62617
 
$as_echo "$ac_try_echo") >&5
62618
 
  (eval "$ac_try") 2>&5
62619
 
  ac_status=$?
62620
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62621
 
  (exit $ac_status); }; }; then
62622
 
  ac_cv_sizeof_long_long=`cat conftest.val`
62623
 
else
62624
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
62625
 
$as_echo "$as_me: failed program was:" >&5
62626
 
sed 's/^/| /' conftest.$ac_ext >&5
62627
 
 
62628
 
( exit $ac_status )
62629
 
if test "$ac_cv_type_long_long" = yes; then
62630
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
62631
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
62632
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
62633
 
See \`config.log' for more details." >&5
62634
 
$as_echo "$as_me: error: cannot compute sizeof (long long)
62635
 
See \`config.log' for more details." >&2;}
62636
 
   { (exit 77); exit 77; }; }; }
62637
 
   else
62638
 
     ac_cv_sizeof_long_long=0
62639
 
   fi
62640
 
fi
62641
 
rm -rf conftest.dSYM
62642
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62643
 
fi
62644
 
rm -f conftest.val
62645
 
fi
62646
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
62647
 
$as_echo "$ac_cv_sizeof_long_long" >&6; }
62648
 
 
62649
 
 
62650
 
 
62651
 
cat >>confdefs.h <<_ACEOF
62652
 
@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
62653
 
_ACEOF
62654
 
 
62655
 
 
62656
 
  
62657
 
  EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \
62658
 
    hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \
62659
 
    hash_crc32.c hash_salsa.c"
62660
 
  EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \
62661
 
    php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \
62662
 
    php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h php_hash_salsa.h \
62663
 
    php_hash_types.h"
62664
 
  
62665
 
  
62666
 
  ext_builddir=ext/hash
62667
 
  ext_srcdir=$abs_srcdir/ext/hash
62668
 
 
62669
 
  ac_extra=
62670
 
 
62671
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
62672
 
    PHP_HASH_SHARED=no
62673
 
    
62674
 
  
62675
 
  case ext/hash in
62676
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62677
 
  /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62678
 
  *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62679
 
  esac
62680
 
  
62681
 
  
62682
 
 
62683
 
  b_c_pre=$php_c_pre
62684
 
  b_cxx_pre=$php_cxx_pre
62685
 
  b_c_meta=$php_c_meta
62686
 
  b_cxx_meta=$php_cxx_meta
62687
 
  b_c_post=$php_c_post
62688
 
  b_cxx_post=$php_cxx_post
62689
 
  b_lo=$php_lo
62690
 
 
62691
 
 
62692
 
  old_IFS=$IFS
62693
 
  for ac_src in $EXT_HASH_SOURCES; do
62694
 
  
62695
 
      IFS=.
62696
 
      set $ac_src
62697
 
      ac_obj=$1
62698
 
      IFS=$old_IFS
62699
 
      
62700
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
62701
 
 
62702
 
      case $ac_src in
62703
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62704
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62705
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62706
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62707
 
      esac
62708
 
 
62709
 
    cat >>Makefile.objects<<EOF
62710
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62711
 
        $ac_comp
62712
 
EOF
62713
 
  done
62714
 
 
62715
 
 
62716
 
    EXT_STATIC="$EXT_STATIC hash"
62717
 
    if test "$ext_shared" != "nocli"; then
62718
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
62719
 
    fi
62720
 
  else
62721
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
62722
 
      PHP_HASH_SHARED=yes
62723
 
      
62724
 
  case ext/hash in
62725
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62726
 
  /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62727
 
  *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62728
 
  esac
62729
 
  
62730
 
  
62731
 
 
62732
 
  b_c_pre=$shared_c_pre
62733
 
  b_cxx_pre=$shared_cxx_pre
62734
 
  b_c_meta=$shared_c_meta
62735
 
  b_cxx_meta=$shared_cxx_meta
62736
 
  b_c_post=$shared_c_post
62737
 
  b_cxx_post=$shared_cxx_post
62738
 
  b_lo=$shared_lo
62739
 
 
62740
 
 
62741
 
  old_IFS=$IFS
62742
 
  for ac_src in $EXT_HASH_SOURCES; do
62743
 
  
62744
 
      IFS=.
62745
 
      set $ac_src
62746
 
      ac_obj=$1
62747
 
      IFS=$old_IFS
62748
 
      
62749
 
      shared_objects_hash="$shared_objects_hash $ac_bdir$ac_obj.lo"
62750
 
 
62751
 
      case $ac_src in
62752
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62753
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62754
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62755
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62756
 
      esac
62757
 
 
62758
 
    cat >>Makefile.objects<<EOF
62759
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62760
 
        $ac_comp
62761
 
EOF
62762
 
  done
62763
 
 
62764
 
      case $host_alias in
62765
 
        *netware*)
62766
 
          
62767
 
  install_modules="install-modules"
62768
 
 
62769
 
  case $host_alias in
62770
 
    *aix*)
62771
 
      suffix=so
62772
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phphash.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(PHPHASH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phphash.so '$ext_builddir'/phphash.so'
62773
 
      ;;
62774
 
    *netware*)
62775
 
      suffix=nlm
62776
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) -L$(top_builddir)/netware -lphp5lib $(HASH_SHARED_LIBADD)'
62777
 
      ;;
62778
 
    *)
62779
 
      suffix=la
62780
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(PHPHASH_SHARED_LIBADD)'
62781
 
      ;;
62782
 
  esac
62783
 
 
62784
 
  if test "x" = "xyes"; then
62785
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phphash.$suffix"
62786
 
  else
62787
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phphash.$suffix"
62788
 
  fi
62789
 
  
62790
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
62791
 
 
62792
 
  cat >>Makefile.objects<<EOF
62793
 
\$(phplibdir)/phphash.$suffix: $ext_builddir/phphash.$suffix
62794
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phphash.$suffix \$(phplibdir)
62795
 
 
62796
 
$ext_builddir/phphash.$suffix: \$(shared_objects_hash) \$(PHPHASH_SHARED_DEPENDENCIES)
62797
 
        $link_cmd
62798
 
 
62799
 
EOF
62800
 
 
62801
 
          ;;
62802
 
        *)
62803
 
          
62804
 
  install_modules="install-modules"
62805
 
 
62806
 
  case $host_alias in
62807
 
    *aix*)
62808
 
      suffix=so
62809
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/hash.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(HASH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/hash.so '$ext_builddir'/hash.so'
62810
 
      ;;
62811
 
    *netware*)
62812
 
      suffix=nlm
62813
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) -L$(top_builddir)/netware -lphp5lib $(H_SHARED_LIBADD)'
62814
 
      ;;
62815
 
    *)
62816
 
      suffix=la
62817
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_hash) $(HASH_SHARED_LIBADD)'
62818
 
      ;;
62819
 
  esac
62820
 
 
62821
 
  if test "x" = "xyes"; then
62822
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/hash.$suffix"
62823
 
  else
62824
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/hash.$suffix"
62825
 
  fi
62826
 
  
62827
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
62828
 
 
62829
 
  cat >>Makefile.objects<<EOF
62830
 
\$(phplibdir)/hash.$suffix: $ext_builddir/hash.$suffix
62831
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/hash.$suffix \$(phplibdir)
62832
 
 
62833
 
$ext_builddir/hash.$suffix: \$(shared_objects_hash) \$(HASH_SHARED_DEPENDENCIES)
62834
 
        $link_cmd
62835
 
 
62836
 
EOF
62837
 
 
62838
 
          ;;
62839
 
      esac
62840
 
      
62841
 
cat >>confdefs.h <<_ACEOF
62842
 
@%:@define COMPILE_DL_HASH 1
62843
 
_ACEOF
62844
 
 
62845
 
    fi
62846
 
  fi
62847
 
 
62848
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
62849
 
    PHP_HASH_SHARED=no
62850
 
    case "$PHP_SAPI" in
62851
 
      cgi|embed)
62852
 
        
62853
 
  
62854
 
  case ext/hash in
62855
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62856
 
  /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62857
 
  *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62858
 
  esac
62859
 
  
62860
 
  
62861
 
 
62862
 
  b_c_pre=$php_c_pre
62863
 
  b_cxx_pre=$php_cxx_pre
62864
 
  b_c_meta=$php_c_meta
62865
 
  b_cxx_meta=$php_cxx_meta
62866
 
  b_c_post=$php_c_post
62867
 
  b_cxx_post=$php_cxx_post
62868
 
  b_lo=$php_lo
62869
 
 
62870
 
 
62871
 
  old_IFS=$IFS
62872
 
  for ac_src in $EXT_HASH_SOURCES; do
62873
 
  
62874
 
      IFS=.
62875
 
      set $ac_src
62876
 
      ac_obj=$1
62877
 
      IFS=$old_IFS
62878
 
      
62879
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
62880
 
 
62881
 
      case $ac_src in
62882
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62883
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62884
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62885
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62886
 
      esac
62887
 
 
62888
 
    cat >>Makefile.objects<<EOF
62889
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62890
 
        $ac_comp
62891
 
EOF
62892
 
  done
62893
 
 
62894
 
 
62895
 
        EXT_STATIC="$EXT_STATIC hash"
62896
 
        ;;
62897
 
      *)
62898
 
        
62899
 
  
62900
 
  case ext/hash in
62901
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62902
 
  /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62903
 
  *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62904
 
  esac
62905
 
  
62906
 
  
62907
 
 
62908
 
  b_c_pre=$php_c_pre
62909
 
  b_cxx_pre=$php_cxx_pre
62910
 
  b_c_meta=$php_c_meta
62911
 
  b_cxx_meta=$php_cxx_meta
62912
 
  b_c_post=$php_c_post
62913
 
  b_cxx_post=$php_cxx_post
62914
 
  b_lo=$php_lo
62915
 
 
62916
 
 
62917
 
  old_IFS=$IFS
62918
 
  for ac_src in $EXT_HASH_SOURCES; do
62919
 
  
62920
 
      IFS=.
62921
 
      set $ac_src
62922
 
      ac_obj=$1
62923
 
      IFS=$old_IFS
62924
 
      
62925
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
62926
 
 
62927
 
      case $ac_src in
62928
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62929
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62930
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62931
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62932
 
      esac
62933
 
 
62934
 
    cat >>Makefile.objects<<EOF
62935
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62936
 
        $ac_comp
62937
 
EOF
62938
 
  done
62939
 
 
62940
 
 
62941
 
        ;;
62942
 
    esac
62943
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
62944
 
  fi
62945
 
  
62946
 
  
62947
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
62948
 
  
62949
 
 
62950
 
 
62951
 
  if test "$ext_builddir" = "."; then
62952
 
    PHP_PECL_EXTENSION=hash
62953
 
    
62954
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
62955
 
 
62956
 
  fi
62957
 
 
62958
 
  
62959
 
        
62960
 
  
62961
 
    header_path=ext/hash
62962
 
    for header_file in $EXT_HASH_HEADERS; do
62963
 
      hp_hf="$header_path/$header_file"
62964
 
      
62965
 
  
62966
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
62967
 
  
62968
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
62969
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
62970
 
    eval "INSTALLHEADERS$unique=set"
62971
 
    
62972
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
62973
 
      
62974
 
  fi
62975
 
 
62976
 
    done 
62977
 
  
62978
 
 
62979
 
  
62980
 
fi
62981
 
 
62982
 
 
62983
 
 
62984
 
php_with_iconv=yes
62985
 
 
62986
 
{ $as_echo "$as_me:$LINENO: checking for iconv support" >&5
62987
 
$as_echo_n "checking for iconv support... " >&6; }
62988
 
 
62989
 
@%:@ Check whether --with-iconv was given.
62990
 
if test "${with_iconv+set}" = set; then
62991
 
  withval=$with_iconv; PHP_ICONV=$withval
62992
 
else
62993
 
  
62994
 
  PHP_ICONV=yes
62995
 
  test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL
62996
 
 
62997
 
fi
62998
 
 
62999
 
 
63000
 
 
63001
 
ext_output="yes, shared"
63002
 
ext_shared=yes
63003
 
case $PHP_ICONV in
63004
 
shared,*)
63005
 
  PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'`
63006
 
  ;;
63007
 
shared)
63008
 
  PHP_ICONV=yes
63009
 
  ;;
63010
 
no)
63011
 
  ext_output=no
63012
 
  ext_shared=no
63013
 
  ;;
63014
 
*)
63015
 
  ext_output=yes
63016
 
  ext_shared=no
63017
 
  ;;
63018
 
esac
63019
 
 
63020
 
 
63021
 
 
63022
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
63023
 
$as_echo "$ext_output" >&6; }
63024
 
 
63025
 
 
63026
 
 
63027
 
 
63028
 
if test "$PHP_ICONV" != "no"; then
63029
 
 
63030
 
  
63031
 
  found_iconv=no
63032
 
  unset ICONV_DIR
63033
 
 
63034
 
  # Create the directories for a VPATH build:
63035
 
  $php_shtool mkdir -p ext/iconv
63036
 
 
63037
 
  echo > ext/iconv/php_have_bsd_iconv.h
63038
 
  echo > ext/iconv/php_have_ibm_iconv.h
63039
 
  echo > ext/iconv/php_have_glibc_iconv.h
63040
 
  echo > ext/iconv/php_have_libiconv.h
63041
 
  echo > ext/iconv/php_have_iconv.h
63042
 
  echo > ext/iconv/php_php_iconv_impl.h
63043
 
  echo > ext/iconv/php_iconv_aliased_libiconv.h
63044
 
  echo > ext/iconv/php_php_iconv_h_path.h
63045
 
  echo > ext/iconv/php_iconv_supports_errno.h
63046
 
 
63047
 
        if test "$PHP_ICONV" = "yes"; then
63048
 
    { $as_echo "$as_me:$LINENO: checking for iconv" >&5
63049
 
$as_echo_n "checking for iconv... " >&6; }
63050
 
if test "${ac_cv_func_iconv+set}" = set; then
63051
 
  $as_echo_n "(cached) " >&6
63052
 
else
63053
 
  cat >conftest.$ac_ext <<_ACEOF
63054
 
/* confdefs.h.  */
63055
 
_ACEOF
63056
 
cat confdefs.h >>conftest.$ac_ext
63057
 
cat >>conftest.$ac_ext <<_ACEOF
63058
 
/* end confdefs.h.  */
63059
 
/* Define iconv to an innocuous variant, in case <limits.h> declares iconv.
63060
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63061
 
#define iconv innocuous_iconv
63062
 
 
63063
 
/* System header to define __stub macros and hopefully few prototypes,
63064
 
    which can conflict with char iconv (); below.
63065
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63066
 
    <limits.h> exists even on freestanding compilers.  */
63067
 
 
63068
 
#ifdef __STDC__
63069
 
# include <limits.h>
63070
 
#else
63071
 
# include <assert.h>
63072
 
#endif
63073
 
 
63074
 
#undef iconv
63075
 
 
63076
 
/* Override any GCC internal prototype to avoid an error.
63077
 
   Use char because int might match the return type of a GCC
63078
 
   builtin and then its argument prototype would still apply.  */
63079
 
#ifdef __cplusplus
63080
 
extern "C"
63081
 
#endif
63082
 
char iconv ();
63083
 
/* The GNU C library defines this for functions which it implements
63084
 
    to always fail with ENOSYS.  Some functions are actually named
63085
 
    something starting with __ and the normal name is an alias.  */
63086
 
#if defined __stub_iconv || defined __stub___iconv
63087
 
choke me
63088
 
#endif
63089
 
 
63090
 
int
63091
 
main ()
63092
 
{
63093
 
return iconv ();
63094
 
  ;
63095
 
  return 0;
63096
 
}
63097
 
_ACEOF
63098
 
rm -f conftest.$ac_objext conftest$ac_exeext
63099
 
if { (ac_try="$ac_link"
63100
 
case "(($ac_try" in
63101
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63102
 
  *) ac_try_echo=$ac_try;;
63103
 
esac
63104
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63105
 
$as_echo "$ac_try_echo") >&5
63106
 
  (eval "$ac_link") 2>conftest.er1
63107
 
  ac_status=$?
63108
 
  grep -v '^ *+' conftest.er1 >conftest.err
63109
 
  rm -f conftest.er1
63110
 
  cat conftest.err >&5
63111
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63112
 
  (exit $ac_status); } && {
63113
 
         test -z "$ac_c_werror_flag" ||
63114
 
         test ! -s conftest.err
63115
 
       } && test -s conftest$ac_exeext && {
63116
 
         test "$cross_compiling" = yes ||
63117
 
         $as_test_x conftest$ac_exeext
63118
 
       }; then
63119
 
  ac_cv_func_iconv=yes
63120
 
else
63121
 
  $as_echo "$as_me: failed program was:" >&5
63122
 
sed 's/^/| /' conftest.$ac_ext >&5
63123
 
 
63124
 
        ac_cv_func_iconv=no
63125
 
fi
63126
 
 
63127
 
rm -rf conftest.dSYM
63128
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63129
 
      conftest$ac_exeext conftest.$ac_ext
63130
 
fi
63131
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_iconv" >&5
63132
 
$as_echo "$ac_cv_func_iconv" >&6; }
63133
 
if test "x$ac_cv_func_iconv" = x""yes; then
63134
 
  
63135
 
      found_iconv=yes
63136
 
    
63137
 
else
63138
 
  
63139
 
      { $as_echo "$as_me:$LINENO: checking for libiconv" >&5
63140
 
$as_echo_n "checking for libiconv... " >&6; }
63141
 
if test "${ac_cv_func_libiconv+set}" = set; then
63142
 
  $as_echo_n "(cached) " >&6
63143
 
else
63144
 
  cat >conftest.$ac_ext <<_ACEOF
63145
 
/* confdefs.h.  */
63146
 
_ACEOF
63147
 
cat confdefs.h >>conftest.$ac_ext
63148
 
cat >>conftest.$ac_ext <<_ACEOF
63149
 
/* end confdefs.h.  */
63150
 
/* Define libiconv to an innocuous variant, in case <limits.h> declares libiconv.
63151
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63152
 
#define libiconv innocuous_libiconv
63153
 
 
63154
 
/* System header to define __stub macros and hopefully few prototypes,
63155
 
    which can conflict with char libiconv (); below.
63156
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63157
 
    <limits.h> exists even on freestanding compilers.  */
63158
 
 
63159
 
#ifdef __STDC__
63160
 
# include <limits.h>
63161
 
#else
63162
 
# include <assert.h>
63163
 
#endif
63164
 
 
63165
 
#undef libiconv
63166
 
 
63167
 
/* Override any GCC internal prototype to avoid an error.
63168
 
   Use char because int might match the return type of a GCC
63169
 
   builtin and then its argument prototype would still apply.  */
63170
 
#ifdef __cplusplus
63171
 
extern "C"
63172
 
#endif
63173
 
char libiconv ();
63174
 
/* The GNU C library defines this for functions which it implements
63175
 
    to always fail with ENOSYS.  Some functions are actually named
63176
 
    something starting with __ and the normal name is an alias.  */
63177
 
#if defined __stub_libiconv || defined __stub___libiconv
63178
 
choke me
63179
 
#endif
63180
 
 
63181
 
int
63182
 
main ()
63183
 
{
63184
 
return libiconv ();
63185
 
  ;
63186
 
  return 0;
63187
 
}
63188
 
_ACEOF
63189
 
rm -f conftest.$ac_objext conftest$ac_exeext
63190
 
if { (ac_try="$ac_link"
63191
 
case "(($ac_try" in
63192
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63193
 
  *) ac_try_echo=$ac_try;;
63194
 
esac
63195
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63196
 
$as_echo "$ac_try_echo") >&5
63197
 
  (eval "$ac_link") 2>conftest.er1
63198
 
  ac_status=$?
63199
 
  grep -v '^ *+' conftest.er1 >conftest.err
63200
 
  rm -f conftest.er1
63201
 
  cat conftest.err >&5
63202
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63203
 
  (exit $ac_status); } && {
63204
 
         test -z "$ac_c_werror_flag" ||
63205
 
         test ! -s conftest.err
63206
 
       } && test -s conftest$ac_exeext && {
63207
 
         test "$cross_compiling" = yes ||
63208
 
         $as_test_x conftest$ac_exeext
63209
 
       }; then
63210
 
  ac_cv_func_libiconv=yes
63211
 
else
63212
 
  $as_echo "$as_me: failed program was:" >&5
63213
 
sed 's/^/| /' conftest.$ac_ext >&5
63214
 
 
63215
 
        ac_cv_func_libiconv=no
63216
 
fi
63217
 
 
63218
 
rm -rf conftest.dSYM
63219
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63220
 
      conftest$ac_exeext conftest.$ac_ext
63221
 
fi
63222
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_libiconv" >&5
63223
 
$as_echo "$ac_cv_func_libiconv" >&6; }
63224
 
if test "x$ac_cv_func_libiconv" = x""yes; then
63225
 
  
63226
 
        
63227
 
  echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
63228
 
 
63229
 
        
63230
 
cat >>confdefs.h <<\_ACEOF
63231
 
@%:@define HAVE_LIBICONV 1
63232
 
_ACEOF
63233
 
 
63234
 
        found_iconv=yes
63235
 
      
63236
 
fi
63237
 
 
63238
 
    
63239
 
fi
63240
 
 
63241
 
  fi
63242
 
 
63243
 
        if test "$found_iconv" = "no"; then
63244
 
 
63245
 
    for i in $PHP_ICONV /usr/local /usr; do
63246
 
      if test -r $i/include/giconv.h; then
63247
 
        
63248
 
cat >>confdefs.h <<\_ACEOF
63249
 
@%:@define HAVE_GICONV_H 1
63250
 
_ACEOF
63251
 
 
63252
 
        ICONV_DIR=$i
63253
 
        iconv_lib_name=giconv
63254
 
        break
63255
 
      elif test -r $i/include/iconv.h; then
63256
 
        ICONV_DIR=$i
63257
 
        iconv_lib_name=iconv
63258
 
        break
63259
 
      fi
63260
 
    done
63261
 
 
63262
 
    if test -z "$ICONV_DIR"; then
63263
 
      { { $as_echo "$as_me:$LINENO: error: Please specify the install prefix of iconv with --with-iconv=<DIR>" >&5
63264
 
$as_echo "$as_me: error: Please specify the install prefix of iconv with --with-iconv=<DIR>" >&2;}
63265
 
   { (exit 1); exit 1; }; }
63266
 
    fi
63267
 
  
63268
 
    if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
63269
 
       test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
63270
 
    then
63271
 
      
63272
 
  save_old_LDFLAGS=$LDFLAGS
63273
 
  ac_stuff="
63274
 
        -L$ICONV_DIR/$PHP_LIBDIR
63275
 
      "
63276
 
  
63277
 
  save_ext_shared=$ext_shared
63278
 
  ext_shared=yes
63279
 
  
63280
 
  for ac_i in $ac_stuff; do
63281
 
    case $ac_i in
63282
 
    -pthread)
63283
 
      if test "$ext_shared" = "yes"; then
63284
 
        LDFLAGS="$LDFLAGS -pthread"
63285
 
      else
63286
 
        
63287
 
  
63288
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
63289
 
  
63290
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
63291
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
63292
 
    eval "EXTRA_LDFLAGS$unique=set"
63293
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
63294
 
  fi
63295
 
 
63296
 
      fi
63297
 
    ;;
63298
 
    -l*)
63299
 
      ac_ii=`echo $ac_i|cut -c 3-`
63300
 
      
63301
 
  
63302
 
  case $ac_ii in
63303
 
  c|c_r|pthread*) ;;
63304
 
  *) 
63305
 
    if test "$ext_shared" = "yes"; then
63306
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
63307
 
    else
63308
 
      
63309
 
  
63310
 
  case $ac_ii in
63311
 
  c|c_r|pthread*) ;;
63312
 
  *) 
63313
 
      LIBS="$LIBS -l$ac_ii" 
63314
 
   ;;
63315
 
  esac
63316
 
 
63317
 
 
63318
 
    fi
63319
 
   ;;
63320
 
  esac
63321
 
 
63322
 
 
63323
 
    ;;
63324
 
    -L*)
63325
 
      ac_ii=`echo $ac_i|cut -c 3-`
63326
 
      
63327
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
63328
 
    
63329
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
63330
 
    ai_p=$ac_ii
63331
 
  else
63332
 
    
63333
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
63334
 
    
63335
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63336
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
63337
 
  fi
63338
 
 
63339
 
    
63340
 
      if test "$ext_shared" = "yes"; then
63341
 
        LDFLAGS="-L$ai_p $LDFLAGS"
63342
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
63343
 
      else
63344
 
        
63345
 
  
63346
 
  
63347
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63348
 
  
63349
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63350
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
63351
 
    eval "LIBPATH$unique=set"
63352
 
    
63353
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63354
 
    LDFLAGS="$LDFLAGS -L$ai_p"
63355
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
63356
 
  
63357
 
  fi
63358
 
 
63359
 
 
63360
 
      fi
63361
 
    
63362
 
  fi
63363
 
 
63364
 
    ;;
63365
 
    esac
63366
 
  done
63367
 
 
63368
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
63369
 
{ $as_echo "$as_me:$LINENO: checking for libiconv in -l$iconv_lib_name" >&5
63370
 
$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
63371
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
63372
 
  $as_echo_n "(cached) " >&6
63373
 
else
63374
 
  ac_check_lib_save_LIBS=$LIBS
63375
 
LIBS="-l$iconv_lib_name  $LIBS"
63376
 
cat >conftest.$ac_ext <<_ACEOF
63377
 
/* confdefs.h.  */
63378
 
_ACEOF
63379
 
cat confdefs.h >>conftest.$ac_ext
63380
 
cat >>conftest.$ac_ext <<_ACEOF
63381
 
/* end confdefs.h.  */
63382
 
 
63383
 
/* Override any GCC internal prototype to avoid an error.
63384
 
   Use char because int might match the return type of a GCC
63385
 
   builtin and then its argument prototype would still apply.  */
63386
 
#ifdef __cplusplus
63387
 
extern "C"
63388
 
#endif
63389
 
char libiconv ();
63390
 
int
63391
 
main ()
63392
 
{
63393
 
return libiconv ();
63394
 
  ;
63395
 
  return 0;
63396
 
}
63397
 
_ACEOF
63398
 
rm -f conftest.$ac_objext conftest$ac_exeext
63399
 
if { (ac_try="$ac_link"
63400
 
case "(($ac_try" in
63401
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63402
 
  *) ac_try_echo=$ac_try;;
63403
 
esac
63404
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63405
 
$as_echo "$ac_try_echo") >&5
63406
 
  (eval "$ac_link") 2>conftest.er1
63407
 
  ac_status=$?
63408
 
  grep -v '^ *+' conftest.er1 >conftest.err
63409
 
  rm -f conftest.er1
63410
 
  cat conftest.err >&5
63411
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63412
 
  (exit $ac_status); } && {
63413
 
         test -z "$ac_c_werror_flag" ||
63414
 
         test ! -s conftest.err
63415
 
       } && test -s conftest$ac_exeext && {
63416
 
         test "$cross_compiling" = yes ||
63417
 
         $as_test_x conftest$ac_exeext
63418
 
       }; then
63419
 
  eval "$as_ac_Lib=yes"
63420
 
else
63421
 
  $as_echo "$as_me: failed program was:" >&5
63422
 
sed 's/^/| /' conftest.$ac_ext >&5
63423
 
 
63424
 
        eval "$as_ac_Lib=no"
63425
 
fi
63426
 
 
63427
 
rm -rf conftest.dSYM
63428
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63429
 
      conftest$ac_exeext conftest.$ac_ext
63430
 
LIBS=$ac_check_lib_save_LIBS
63431
 
fi
63432
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
63433
 
                 $as_echo "$as_val"'`
63434
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63435
 
$as_echo "$ac_res" >&6; }
63436
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
63437
 
                 $as_echo "$as_val"'`
63438
 
   if test "x$as_val" = x""yes; then
63439
 
  
63440
 
    LDFLAGS=$save_old_LDFLAGS
63441
 
    ext_shared=$save_ext_shared
63442
 
    
63443
 
        found_iconv=yes
63444
 
        
63445
 
  echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
63446
 
 
63447
 
        
63448
 
cat >>confdefs.h <<\_ACEOF
63449
 
@%:@define HAVE_LIBICONV 1
63450
 
_ACEOF
63451
 
 
63452
 
        
63453
 
  echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
63454
 
 
63455
 
        
63456
 
cat >>confdefs.h <<\_ACEOF
63457
 
@%:@define ICONV_ALIASED_LIBICONV 1
63458
 
_ACEOF
63459
 
 
63460
 
      
63461
 
  
63462
 
else
63463
 
  
63464
 
    LDFLAGS=$save_old_LDFLAGS
63465
 
    ext_shared=$save_ext_shared
63466
 
    unset ac_cv_lib_$iconv_lib_name_libiconv
63467
 
    
63468
 
        
63469
 
  save_old_LDFLAGS=$LDFLAGS
63470
 
  ac_stuff="
63471
 
          -L$ICONV_DIR/$PHP_LIBDIR
63472
 
        "
63473
 
  
63474
 
  save_ext_shared=$ext_shared
63475
 
  ext_shared=yes
63476
 
  
63477
 
  for ac_i in $ac_stuff; do
63478
 
    case $ac_i in
63479
 
    -pthread)
63480
 
      if test "$ext_shared" = "yes"; then
63481
 
        LDFLAGS="$LDFLAGS -pthread"
63482
 
      else
63483
 
        
63484
 
  
63485
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
63486
 
  
63487
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
63488
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
63489
 
    eval "EXTRA_LDFLAGS$unique=set"
63490
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
63491
 
  fi
63492
 
 
63493
 
      fi
63494
 
    ;;
63495
 
    -l*)
63496
 
      ac_ii=`echo $ac_i|cut -c 3-`
63497
 
      
63498
 
  
63499
 
  case $ac_ii in
63500
 
  c|c_r|pthread*) ;;
63501
 
  *) 
63502
 
    if test "$ext_shared" = "yes"; then
63503
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
63504
 
    else
63505
 
      
63506
 
  
63507
 
  case $ac_ii in
63508
 
  c|c_r|pthread*) ;;
63509
 
  *) 
63510
 
      LIBS="$LIBS -l$ac_ii" 
63511
 
   ;;
63512
 
  esac
63513
 
 
63514
 
 
63515
 
    fi
63516
 
   ;;
63517
 
  esac
63518
 
 
63519
 
 
63520
 
    ;;
63521
 
    -L*)
63522
 
      ac_ii=`echo $ac_i|cut -c 3-`
63523
 
      
63524
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
63525
 
    
63526
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
63527
 
    ai_p=$ac_ii
63528
 
  else
63529
 
    
63530
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
63531
 
    
63532
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63533
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
63534
 
  fi
63535
 
 
63536
 
    
63537
 
      if test "$ext_shared" = "yes"; then
63538
 
        LDFLAGS="-L$ai_p $LDFLAGS"
63539
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
63540
 
      else
63541
 
        
63542
 
  
63543
 
  
63544
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63545
 
  
63546
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63547
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
63548
 
    eval "LIBPATH$unique=set"
63549
 
    
63550
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63551
 
    LDFLAGS="$LDFLAGS -L$ai_p"
63552
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
63553
 
  
63554
 
  fi
63555
 
 
63556
 
 
63557
 
      fi
63558
 
    
63559
 
  fi
63560
 
 
63561
 
    ;;
63562
 
    esac
63563
 
  done
63564
 
 
63565
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
63566
 
{ $as_echo "$as_me:$LINENO: checking for iconv in -l$iconv_lib_name" >&5
63567
 
$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
63568
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
63569
 
  $as_echo_n "(cached) " >&6
63570
 
else
63571
 
  ac_check_lib_save_LIBS=$LIBS
63572
 
LIBS="-l$iconv_lib_name  $LIBS"
63573
 
cat >conftest.$ac_ext <<_ACEOF
63574
 
/* confdefs.h.  */
63575
 
_ACEOF
63576
 
cat confdefs.h >>conftest.$ac_ext
63577
 
cat >>conftest.$ac_ext <<_ACEOF
63578
 
/* end confdefs.h.  */
63579
 
 
63580
 
/* Override any GCC internal prototype to avoid an error.
63581
 
   Use char because int might match the return type of a GCC
63582
 
   builtin and then its argument prototype would still apply.  */
63583
 
#ifdef __cplusplus
63584
 
extern "C"
63585
 
#endif
63586
 
char iconv ();
63587
 
int
63588
 
main ()
63589
 
{
63590
 
return iconv ();
63591
 
  ;
63592
 
  return 0;
63593
 
}
63594
 
_ACEOF
63595
 
rm -f conftest.$ac_objext conftest$ac_exeext
63596
 
if { (ac_try="$ac_link"
63597
 
case "(($ac_try" in
63598
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63599
 
  *) ac_try_echo=$ac_try;;
63600
 
esac
63601
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63602
 
$as_echo "$ac_try_echo") >&5
63603
 
  (eval "$ac_link") 2>conftest.er1
63604
 
  ac_status=$?
63605
 
  grep -v '^ *+' conftest.er1 >conftest.err
63606
 
  rm -f conftest.er1
63607
 
  cat conftest.err >&5
63608
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63609
 
  (exit $ac_status); } && {
63610
 
         test -z "$ac_c_werror_flag" ||
63611
 
         test ! -s conftest.err
63612
 
       } && test -s conftest$ac_exeext && {
63613
 
         test "$cross_compiling" = yes ||
63614
 
         $as_test_x conftest$ac_exeext
63615
 
       }; then
63616
 
  eval "$as_ac_Lib=yes"
63617
 
else
63618
 
  $as_echo "$as_me: failed program was:" >&5
63619
 
sed 's/^/| /' conftest.$ac_ext >&5
63620
 
 
63621
 
        eval "$as_ac_Lib=no"
63622
 
fi
63623
 
 
63624
 
rm -rf conftest.dSYM
63625
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63626
 
      conftest$ac_exeext conftest.$ac_ext
63627
 
LIBS=$ac_check_lib_save_LIBS
63628
 
fi
63629
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
63630
 
                 $as_echo "$as_val"'`
63631
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63632
 
$as_echo "$ac_res" >&6; }
63633
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
63634
 
                 $as_echo "$as_val"'`
63635
 
   if test "x$as_val" = x""yes; then
63636
 
  
63637
 
    LDFLAGS=$save_old_LDFLAGS
63638
 
    ext_shared=$save_ext_shared
63639
 
    
63640
 
          found_iconv=yes
63641
 
        
63642
 
  
63643
 
else
63644
 
  
63645
 
    LDFLAGS=$save_old_LDFLAGS
63646
 
    ext_shared=$save_ext_shared
63647
 
    unset ac_cv_lib_$iconv_lib_name_iconv
63648
 
    
63649
 
  
63650
 
fi
63651
 
 
63652
 
      
63653
 
  
63654
 
fi
63655
 
 
63656
 
    fi
63657
 
  fi
63658
 
 
63659
 
  if test "$found_iconv" = "yes"; then
63660
 
    
63661
 
  echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
63662
 
 
63663
 
    
63664
 
cat >>confdefs.h <<\_ACEOF
63665
 
@%:@define HAVE_ICONV 1
63666
 
_ACEOF
63667
 
 
63668
 
    if test -n "$ICONV_DIR"; then
63669
 
      
63670
 
 
63671
 
  if test "$ext_shared" = "yes"; then
63672
 
    ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD"
63673
 
    if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
63674
 
      
63675
 
  if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
63676
 
    
63677
 
  if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
63678
 
    ai_p=$ICONV_DIR/$PHP_LIBDIR
63679
 
  else
63680
 
    
63681
 
    ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
63682
 
    
63683
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63684
 
    ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
63685
 
  fi
63686
 
 
63687
 
    
63688
 
      if test "$ext_shared" = "yes"; then
63689
 
        ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
63690
 
        test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
63691
 
      else
63692
 
        
63693
 
  
63694
 
  
63695
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63696
 
  
63697
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63698
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
63699
 
    eval "LIBPATH$unique=set"
63700
 
    
63701
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63702
 
    LDFLAGS="$LDFLAGS -L$ai_p"
63703
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
63704
 
  
63705
 
  fi
63706
 
 
63707
 
 
63708
 
      fi
63709
 
    
63710
 
  fi
63711
 
 
63712
 
    fi
63713
 
  else
63714
 
    
63715
 
 
63716
 
  if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
63717
 
    
63718
 
  if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
63719
 
    
63720
 
  if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
63721
 
    ai_p=$ICONV_DIR/$PHP_LIBDIR
63722
 
  else
63723
 
    
63724
 
    ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
63725
 
    
63726
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63727
 
    ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
63728
 
  fi
63729
 
 
63730
 
    
63731
 
      
63732
 
  
63733
 
  
63734
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63735
 
  
63736
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63737
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
63738
 
    eval "LIBPATH$unique=set"
63739
 
    
63740
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63741
 
    LDFLAGS="$LDFLAGS -L$ai_p"
63742
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
63743
 
  
63744
 
  fi
63745
 
 
63746
 
 
63747
 
    
63748
 
  fi
63749
 
 
63750
 
  fi
63751
 
  
63752
 
  
63753
 
  case $iconv_lib_name in
63754
 
  c|c_r|pthread*) ;;
63755
 
  *) 
63756
 
      LIBS="-l$iconv_lib_name $LIBS" 
63757
 
   ;;
63758
 
  esac
63759
 
 
63760
 
 
63761
 
 
63762
 
 
63763
 
  fi
63764
 
 
63765
 
 
63766
 
      
63767
 
  if test "$ICONV_DIR/include" != "/usr/include"; then
63768
 
    
63769
 
  if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
63770
 
    ai_p=$ICONV_DIR/include
63771
 
  else
63772
 
    
63773
 
    ep_dir="`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
63774
 
    
63775
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63776
 
    ai_p="$ep_realdir/`basename \"$ICONV_DIR/include\"`"
63777
 
  fi
63778
 
 
63779
 
    
63780
 
  
63781
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63782
 
  
63783
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
63784
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
63785
 
    eval "INCLUDEPATH$unique=set"
63786
 
    
63787
 
      if test ""; then
63788
 
        INCLUDES="-I$ai_p $INCLUDES"
63789
 
      else
63790
 
        INCLUDES="$INCLUDES -I$ai_p"
63791
 
      fi
63792
 
    
63793
 
  fi
63794
 
 
63795
 
  fi
63796
 
 
63797
 
    fi
63798
 
    
63799
 
    iconv_avail="yes";
63800
 
  
63801
 
else 
63802
 
    iconv_avail="no";
63803
 
  
63804
 
  fi
63805
 
 
63806
 
 
63807
 
  if test "$iconv_avail" != "no"; then
63808
 
    if test -z "$ICONV_DIR"; then
63809
 
      for i in /usr/local /usr; do
63810
 
        if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
63811
 
          PHP_ICONV_PREFIX="$i"
63812
 
          break
63813
 
        fi
63814
 
      done
63815
 
      if test -z "$PHP_ICONV_PREFIX"; then
63816
 
        PHP_ICONV_PREFIX="/usr"
63817
 
      fi
63818
 
    else
63819
 
      PHP_ICONV_PREFIX="$ICONV_DIR"
63820
 
    fi
63821
 
 
63822
 
    CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS"
63823
 
    LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS"
63824
 
 
63825
 
    if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then
63826
 
      PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h"
63827
 
    else
63828
 
      PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h"
63829
 
    fi 
63830
 
 
63831
 
    { $as_echo "$as_me:$LINENO: checking if iconv is glibc's" >&5
63832
 
$as_echo_n "checking if iconv is glibc's... " >&6; }
63833
 
    cat >conftest.$ac_ext <<_ACEOF
63834
 
/* confdefs.h.  */
63835
 
_ACEOF
63836
 
cat confdefs.h >>conftest.$ac_ext
63837
 
cat >>conftest.$ac_ext <<_ACEOF
63838
 
/* end confdefs.h.  */
63839
 
#include <gnu/libc-version.h>
63840
 
int
63841
 
main ()
63842
 
{
63843
 
gnu_get_libc_version();
63844
 
  ;
63845
 
  return 0;
63846
 
}
63847
 
_ACEOF
63848
 
rm -f conftest.$ac_objext conftest$ac_exeext
63849
 
if { (ac_try="$ac_link"
63850
 
case "(($ac_try" in
63851
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63852
 
  *) ac_try_echo=$ac_try;;
63853
 
esac
63854
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63855
 
$as_echo "$ac_try_echo") >&5
63856
 
  (eval "$ac_link") 2>conftest.er1
63857
 
  ac_status=$?
63858
 
  grep -v '^ *+' conftest.er1 >conftest.err
63859
 
  rm -f conftest.er1
63860
 
  cat conftest.err >&5
63861
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63862
 
  (exit $ac_status); } && {
63863
 
         test -z "$ac_c_werror_flag" ||
63864
 
         test ! -s conftest.err
63865
 
       } && test -s conftest$ac_exeext && {
63866
 
         test "$cross_compiling" = yes ||
63867
 
         $as_test_x conftest$ac_exeext
63868
 
       }; then
63869
 
  
63870
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
63871
 
$as_echo "yes" >&6; }
63872
 
      iconv_impl_name="glibc"
63873
 
    
63874
 
else
63875
 
  $as_echo "$as_me: failed program was:" >&5
63876
 
sed 's/^/| /' conftest.$ac_ext >&5
63877
 
 
63878
 
        
63879
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
63880
 
$as_echo "no" >&6; }
63881
 
    
63882
 
fi
63883
 
 
63884
 
rm -rf conftest.dSYM
63885
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63886
 
      conftest$ac_exeext conftest.$ac_ext
63887
 
 
63888
 
    if test -z "$iconv_impl_name"; then
63889
 
      { $as_echo "$as_me:$LINENO: checking if using GNU libiconv" >&5
63890
 
$as_echo_n "checking if using GNU libiconv... " >&6; }
63891
 
      php_iconv_old_ld="$LDFLAGS"
63892
 
      LDFLAGS="-liconv $LDFLAGS"
63893
 
      if test "$cross_compiling" = yes; then
63894
 
  
63895
 
        { $as_echo "$as_me:$LINENO: result: no" >&5
63896
 
$as_echo "no" >&6; }
63897
 
        LDFLAGS="$php_iconv_old_ld"
63898
 
      
63899
 
else
63900
 
  cat >conftest.$ac_ext <<_ACEOF
63901
 
/* confdefs.h.  */
63902
 
_ACEOF
63903
 
cat confdefs.h >>conftest.$ac_ext
63904
 
cat >>conftest.$ac_ext <<_ACEOF
63905
 
/* end confdefs.h.  */
63906
 
 
63907
 
#include <$PHP_ICONV_H_PATH>
63908
 
int main() {
63909
 
        printf("%d", _libiconv_version);
63910
 
        return 0;
63911
 
}
63912
 
      
63913
 
_ACEOF
63914
 
rm -f conftest$ac_exeext
63915
 
if { (ac_try="$ac_link"
63916
 
case "(($ac_try" in
63917
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63918
 
  *) ac_try_echo=$ac_try;;
63919
 
esac
63920
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63921
 
$as_echo "$ac_try_echo") >&5
63922
 
  (eval "$ac_link") 2>&5
63923
 
  ac_status=$?
63924
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63925
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
63926
 
  { (case "(($ac_try" in
63927
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63928
 
  *) ac_try_echo=$ac_try;;
63929
 
esac
63930
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63931
 
$as_echo "$ac_try_echo") >&5
63932
 
  (eval "$ac_try") 2>&5
63933
 
  ac_status=$?
63934
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63935
 
  (exit $ac_status); }; }; then
63936
 
  
63937
 
        { $as_echo "$as_me:$LINENO: result: yes" >&5
63938
 
$as_echo "yes" >&6; }
63939
 
        iconv_impl_name="gnu_libiconv"
63940
 
      
63941
 
else
63942
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
63943
 
$as_echo "$as_me: failed program was:" >&5
63944
 
sed 's/^/| /' conftest.$ac_ext >&5
63945
 
 
63946
 
( exit $ac_status )
63947
 
 
63948
 
        { $as_echo "$as_me:$LINENO: result: no" >&5
63949
 
$as_echo "no" >&6; }
63950
 
        LDFLAGS="$php_iconv_old_ld"
63951
 
      
63952
 
fi
63953
 
rm -rf conftest.dSYM
63954
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63955
 
fi
63956
 
 
63957
 
 
63958
 
    fi
63959
 
 
63960
 
    if test -z "$iconv_impl_name"; then
63961
 
      { $as_echo "$as_me:$LINENO: checking if iconv is Konstantin Chuguev's" >&5
63962
 
$as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; }
63963
 
      cat >conftest.$ac_ext <<_ACEOF
63964
 
/* confdefs.h.  */
63965
 
_ACEOF
63966
 
cat confdefs.h >>conftest.$ac_ext
63967
 
cat >>conftest.$ac_ext <<_ACEOF
63968
 
/* end confdefs.h.  */
63969
 
#include <iconv.h>
63970
 
int
63971
 
main ()
63972
 
{
63973
 
iconv_ccs_init(NULL, NULL);
63974
 
  ;
63975
 
  return 0;
63976
 
}
63977
 
_ACEOF
63978
 
rm -f conftest.$ac_objext conftest$ac_exeext
63979
 
if { (ac_try="$ac_link"
63980
 
case "(($ac_try" in
63981
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63982
 
  *) ac_try_echo=$ac_try;;
63983
 
esac
63984
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63985
 
$as_echo "$ac_try_echo") >&5
63986
 
  (eval "$ac_link") 2>conftest.er1
63987
 
  ac_status=$?
63988
 
  grep -v '^ *+' conftest.er1 >conftest.err
63989
 
  rm -f conftest.er1
63990
 
  cat conftest.err >&5
63991
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63992
 
  (exit $ac_status); } && {
63993
 
         test -z "$ac_c_werror_flag" ||
63994
 
         test ! -s conftest.err
63995
 
       } && test -s conftest$ac_exeext && {
63996
 
         test "$cross_compiling" = yes ||
63997
 
         $as_test_x conftest$ac_exeext
63998
 
       }; then
63999
 
  
64000
 
        { $as_echo "$as_me:$LINENO: result: yes" >&5
64001
 
$as_echo "yes" >&6; }
64002
 
        iconv_impl_name="bsd"
64003
 
      
64004
 
else
64005
 
  $as_echo "$as_me: failed program was:" >&5
64006
 
sed 's/^/| /' conftest.$ac_ext >&5
64007
 
 
64008
 
        
64009
 
        { $as_echo "$as_me:$LINENO: result: no" >&5
64010
 
$as_echo "no" >&6; }
64011
 
      
64012
 
fi
64013
 
 
64014
 
rm -rf conftest.dSYM
64015
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64016
 
      conftest$ac_exeext conftest.$ac_ext
64017
 
    fi
64018
 
 
64019
 
    if test -z "$iconv_impl_name"; then
64020
 
      { $as_echo "$as_me:$LINENO: checking if using IBM iconv" >&5
64021
 
$as_echo_n "checking if using IBM iconv... " >&6; }
64022
 
      php_iconv_old_ld="$LDFLAGS"
64023
 
      LDFLAGS="-liconv $LDFLAGS"
64024
 
      cat >conftest.$ac_ext <<_ACEOF
64025
 
/* confdefs.h.  */
64026
 
_ACEOF
64027
 
cat confdefs.h >>conftest.$ac_ext
64028
 
cat >>conftest.$ac_ext <<_ACEOF
64029
 
/* end confdefs.h.  */
64030
 
#include <iconv.h>
64031
 
int
64032
 
main ()
64033
 
{
64034
 
cstoccsid("");
64035
 
  ;
64036
 
  return 0;
64037
 
}
64038
 
_ACEOF
64039
 
rm -f conftest.$ac_objext conftest$ac_exeext
64040
 
if { (ac_try="$ac_link"
64041
 
case "(($ac_try" in
64042
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64043
 
  *) ac_try_echo=$ac_try;;
64044
 
esac
64045
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64046
 
$as_echo "$ac_try_echo") >&5
64047
 
  (eval "$ac_link") 2>conftest.er1
64048
 
  ac_status=$?
64049
 
  grep -v '^ *+' conftest.er1 >conftest.err
64050
 
  rm -f conftest.er1
64051
 
  cat conftest.err >&5
64052
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64053
 
  (exit $ac_status); } && {
64054
 
         test -z "$ac_c_werror_flag" ||
64055
 
         test ! -s conftest.err
64056
 
       } && test -s conftest$ac_exeext && {
64057
 
         test "$cross_compiling" = yes ||
64058
 
         $as_test_x conftest$ac_exeext
64059
 
       }; then
64060
 
  
64061
 
        { $as_echo "$as_me:$LINENO: result: yes" >&5
64062
 
$as_echo "yes" >&6; }
64063
 
        iconv_impl_name="ibm"
64064
 
      
64065
 
else
64066
 
  $as_echo "$as_me: failed program was:" >&5
64067
 
sed 's/^/| /' conftest.$ac_ext >&5
64068
 
 
64069
 
        
64070
 
        { $as_echo "$as_me:$LINENO: result: no" >&5
64071
 
$as_echo "no" >&6; }
64072
 
        LDFLAGS="$php_iconv_old_ld"
64073
 
      
64074
 
fi
64075
 
 
64076
 
rm -rf conftest.dSYM
64077
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64078
 
      conftest$ac_exeext conftest.$ac_ext
64079
 
    fi
64080
 
 
64081
 
    echo > ext/iconv/php_have_bsd_iconv.h
64082
 
    echo > ext/iconv/php_have_glibc_iconv.h
64083
 
    echo > ext/iconv/php_have_libiconv.h
64084
 
    echo > ext/iconv/php_have_ibm_iconv.h
64085
 
 
64086
 
    case "$iconv_impl_name" in
64087
 
      gnu_libiconv )
64088
 
        
64089
 
  echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h
64090
 
 
64091
 
        
64092
 
cat >>confdefs.h <<\_ACEOF
64093
 
@%:@define PHP_ICONV_IMPL "libiconv"
64094
 
_ACEOF
64095
 
 
64096
 
        
64097
 
  echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
64098
 
 
64099
 
        
64100
 
 
64101
 
  if test "$ext_shared" = "yes"; then
64102
 
    ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD"
64103
 
    if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
64104
 
      
64105
 
  if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
64106
 
    
64107
 
  if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
64108
 
    ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
64109
 
  else
64110
 
    
64111
 
    ep_dir="`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`"
64112
 
    
64113
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
64114
 
    ai_p="$ep_realdir/`basename \""$PHP_ICONV_PREFIX/$PHP_LIBDIR"\"`"
64115
 
  fi
64116
 
 
64117
 
    
64118
 
      if test "$ext_shared" = "yes"; then
64119
 
        ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
64120
 
        test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
64121
 
      else
64122
 
        
64123
 
  
64124
 
  
64125
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64126
 
  
64127
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64128
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
64129
 
    eval "LIBPATH$unique=set"
64130
 
    
64131
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64132
 
    LDFLAGS="$LDFLAGS -L$ai_p"
64133
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
64134
 
  
64135
 
  fi
64136
 
 
64137
 
 
64138
 
      fi
64139
 
    
64140
 
  fi
64141
 
 
64142
 
    fi
64143
 
  else
64144
 
    
64145
 
 
64146
 
  if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
64147
 
    
64148
 
  if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
64149
 
    
64150
 
  if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
64151
 
    ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
64152
 
  else
64153
 
    
64154
 
    ep_dir="`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`"
64155
 
    
64156
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
64157
 
    ai_p="$ep_realdir/`basename \""$PHP_ICONV_PREFIX/$PHP_LIBDIR"\"`"
64158
 
  fi
64159
 
 
64160
 
    
64161
 
      
64162
 
  
64163
 
  
64164
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64165
 
  
64166
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64167
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
64168
 
    eval "LIBPATH$unique=set"
64169
 
    
64170
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64171
 
    LDFLAGS="$LDFLAGS -L$ai_p"
64172
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
64173
 
  
64174
 
  fi
64175
 
 
64176
 
 
64177
 
    
64178
 
  fi
64179
 
 
64180
 
  fi
64181
 
  
64182
 
  
64183
 
  case iconv in
64184
 
  c|c_r|pthread*) ;;
64185
 
  *) 
64186
 
      LIBS="-liconv $LIBS" 
64187
 
   ;;
64188
 
  esac
64189
 
 
64190
 
 
64191
 
 
64192
 
 
64193
 
  fi
64194
 
 
64195
 
 
64196
 
        ;;
64197
 
 
64198
 
      bsd )
64199
 
        
64200
 
  echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h
64201
 
 
64202
 
        
64203
 
cat >>confdefs.h <<\_ACEOF
64204
 
@%:@define HAVE_BSD_ICONV 1
64205
 
_ACEOF
64206
 
 
64207
 
        
64208
 
  echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h
64209
 
 
64210
 
        
64211
 
cat >>confdefs.h <<\_ACEOF
64212
 
@%:@define PHP_ICONV_IMPL "BSD iconv"
64213
 
_ACEOF
64214
 
 
64215
 
        ;;
64216
 
 
64217
 
      glibc )
64218
 
        
64219
 
  echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h
64220
 
 
64221
 
        
64222
 
cat >>confdefs.h <<\_ACEOF
64223
 
@%:@define HAVE_GLIBC_ICONV 1
64224
 
_ACEOF
64225
 
 
64226
 
        
64227
 
  echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h
64228
 
 
64229
 
        
64230
 
cat >>confdefs.h <<\_ACEOF
64231
 
@%:@define PHP_ICONV_IMPL "glibc"
64232
 
_ACEOF
64233
 
 
64234
 
        ;;
64235
 
      ibm )
64236
 
        
64237
 
  echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h
64238
 
 
64239
 
        
64240
 
cat >>confdefs.h <<\_ACEOF
64241
 
@%:@define HAVE_IBM_ICONV 1
64242
 
_ACEOF
64243
 
 
64244
 
        
64245
 
  echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h
64246
 
 
64247
 
        
64248
 
cat >>confdefs.h <<\_ACEOF
64249
 
@%:@define PHP_ICONV_IMPL "IBM iconv"
64250
 
_ACEOF
64251
 
 
64252
 
        ;;
64253
 
    esac
64254
 
 
64255
 
    { $as_echo "$as_me:$LINENO: checking if iconv supports errno" >&5
64256
 
$as_echo_n "checking if iconv supports errno... " >&6; }
64257
 
    if test "$cross_compiling" = yes; then
64258
 
  
64259
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
64260
 
$as_echo "no" >&6; }
64261
 
      
64262
 
  echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
64263
 
 
64264
 
      
64265
 
cat >>confdefs.h <<\_ACEOF
64266
 
@%:@define ICONV_SUPPORTS_ERRNO 0
64267
 
_ACEOF
64268
 
 
64269
 
    
64270
 
else
64271
 
  cat >conftest.$ac_ext <<_ACEOF
64272
 
/* confdefs.h.  */
64273
 
_ACEOF
64274
 
cat confdefs.h >>conftest.$ac_ext
64275
 
cat >>conftest.$ac_ext <<_ACEOF
64276
 
/* end confdefs.h.  */
64277
 
 
64278
 
#include <$PHP_ICONV_H_PATH>
64279
 
#include <errno.h>
64280
 
 
64281
 
int main() {
64282
 
  iconv_t cd;
64283
 
  cd = iconv_open( "*blahblah*", "*blahblah*" );
64284
 
  if (cd == (iconv_t)(-1)) {
64285
 
    if (errno == EINVAL) {
64286
 
      return 0;
64287
 
        } else {
64288
 
      return 1;
64289
 
    }
64290
 
  }
64291
 
  iconv_close( cd );
64292
 
  return 2;
64293
 
}
64294
 
    
64295
 
_ACEOF
64296
 
rm -f conftest$ac_exeext
64297
 
if { (ac_try="$ac_link"
64298
 
case "(($ac_try" in
64299
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64300
 
  *) ac_try_echo=$ac_try;;
64301
 
esac
64302
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64303
 
$as_echo "$ac_try_echo") >&5
64304
 
  (eval "$ac_link") 2>&5
64305
 
  ac_status=$?
64306
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64307
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64308
 
  { (case "(($ac_try" in
64309
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64310
 
  *) ac_try_echo=$ac_try;;
64311
 
esac
64312
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64313
 
$as_echo "$ac_try_echo") >&5
64314
 
  (eval "$ac_try") 2>&5
64315
 
  ac_status=$?
64316
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64317
 
  (exit $ac_status); }; }; then
64318
 
  
64319
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
64320
 
$as_echo "yes" >&6; }
64321
 
      
64322
 
  echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h
64323
 
 
64324
 
      
64325
 
cat >>confdefs.h <<\_ACEOF
64326
 
@%:@define ICONV_SUPPORTS_ERRNO 1
64327
 
_ACEOF
64328
 
 
64329
 
    
64330
 
else
64331
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
64332
 
$as_echo "$as_me: failed program was:" >&5
64333
 
sed 's/^/| /' conftest.$ac_ext >&5
64334
 
 
64335
 
( exit $ac_status )
64336
 
 
64337
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
64338
 
$as_echo "no" >&6; }
64339
 
      
64340
 
  echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
64341
 
 
64342
 
      
64343
 
cat >>confdefs.h <<\_ACEOF
64344
 
@%:@define ICONV_SUPPORTS_ERRNO 0
64345
 
_ACEOF
64346
 
 
64347
 
    
64348
 
fi
64349
 
rm -rf conftest.dSYM
64350
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
64351
 
fi
64352
 
 
64353
 
 
64354
 
 
64355
 
    { $as_echo "$as_me:$LINENO: checking if your cpp allows macro usage in include lines" >&5
64356
 
$as_echo_n "checking if your cpp allows macro usage in include lines... " >&6; }
64357
 
    cat >conftest.$ac_ext <<_ACEOF
64358
 
/* confdefs.h.  */
64359
 
_ACEOF
64360
 
cat confdefs.h >>conftest.$ac_ext
64361
 
cat >>conftest.$ac_ext <<_ACEOF
64362
 
/* end confdefs.h.  */
64363
 
 
64364
 
#define FOO <$PHP_ICONV_H_PATH>
64365
 
#include FOO
64366
 
    
64367
 
int
64368
 
main ()
64369
 
{
64370
 
 
64371
 
  ;
64372
 
  return 0;
64373
 
}
64374
 
_ACEOF
64375
 
rm -f conftest.$ac_objext
64376
 
if { (ac_try="$ac_compile"
64377
 
case "(($ac_try" in
64378
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64379
 
  *) ac_try_echo=$ac_try;;
64380
 
esac
64381
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64382
 
$as_echo "$ac_try_echo") >&5
64383
 
  (eval "$ac_compile") 2>conftest.er1
64384
 
  ac_status=$?
64385
 
  grep -v '^ *+' conftest.er1 >conftest.err
64386
 
  rm -f conftest.er1
64387
 
  cat conftest.err >&5
64388
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64389
 
  (exit $ac_status); } && {
64390
 
         test -z "$ac_c_werror_flag" ||
64391
 
         test ! -s conftest.err
64392
 
       } && test -s conftest.$ac_objext; then
64393
 
  
64394
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
64395
 
$as_echo "yes" >&6; }
64396
 
      
64397
 
  echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h
64398
 
 
64399
 
      
64400
 
cat >>confdefs.h <<_ACEOF
64401
 
@%:@define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>
64402
 
_ACEOF
64403
 
 
64404
 
    
64405
 
else
64406
 
  $as_echo "$as_me: failed program was:" >&5
64407
 
sed 's/^/| /' conftest.$ac_ext >&5
64408
 
 
64409
 
        
64410
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
64411
 
$as_echo "no" >&6; }
64412
 
    
64413
 
fi
64414
 
 
64415
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64416
 
 
64417
 
    
64418
 
  ext_builddir=ext/iconv
64419
 
  ext_srcdir=$abs_srcdir/ext/iconv
64420
 
 
64421
 
  ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
64422
 
 
64423
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
64424
 
    PHP_ICONV_SHARED=no
64425
 
    
64426
 
  
64427
 
  case ext/iconv in
64428
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64429
 
  /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64430
 
  *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64431
 
  esac
64432
 
  
64433
 
  
64434
 
 
64435
 
  b_c_pre=$php_c_pre
64436
 
  b_cxx_pre=$php_cxx_pre
64437
 
  b_c_meta=$php_c_meta
64438
 
  b_cxx_meta=$php_cxx_meta
64439
 
  b_c_post=$php_c_post
64440
 
  b_cxx_post=$php_cxx_post
64441
 
  b_lo=$php_lo
64442
 
 
64443
 
 
64444
 
  old_IFS=$IFS
64445
 
  for ac_src in iconv.c; do
64446
 
  
64447
 
      IFS=.
64448
 
      set $ac_src
64449
 
      ac_obj=$1
64450
 
      IFS=$old_IFS
64451
 
      
64452
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
64453
 
 
64454
 
      case $ac_src in
64455
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64456
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64457
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64458
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64459
 
      esac
64460
 
 
64461
 
    cat >>Makefile.objects<<EOF
64462
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64463
 
        $ac_comp
64464
 
EOF
64465
 
  done
64466
 
 
64467
 
 
64468
 
    EXT_STATIC="$EXT_STATIC iconv"
64469
 
    if test "$ext_shared" != "nocli"; then
64470
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
64471
 
    fi
64472
 
  else
64473
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
64474
 
      PHP_ICONV_SHARED=yes
64475
 
      
64476
 
  case ext/iconv in
64477
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64478
 
  /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64479
 
  *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64480
 
  esac
64481
 
  
64482
 
  
64483
 
 
64484
 
  b_c_pre=$shared_c_pre
64485
 
  b_cxx_pre=$shared_cxx_pre
64486
 
  b_c_meta=$shared_c_meta
64487
 
  b_cxx_meta=$shared_cxx_meta
64488
 
  b_c_post=$shared_c_post
64489
 
  b_cxx_post=$shared_cxx_post
64490
 
  b_lo=$shared_lo
64491
 
 
64492
 
 
64493
 
  old_IFS=$IFS
64494
 
  for ac_src in iconv.c; do
64495
 
  
64496
 
      IFS=.
64497
 
      set $ac_src
64498
 
      ac_obj=$1
64499
 
      IFS=$old_IFS
64500
 
      
64501
 
      shared_objects_iconv="$shared_objects_iconv $ac_bdir$ac_obj.lo"
64502
 
 
64503
 
      case $ac_src in
64504
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64505
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64506
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64507
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64508
 
      esac
64509
 
 
64510
 
    cat >>Makefile.objects<<EOF
64511
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64512
 
        $ac_comp
64513
 
EOF
64514
 
  done
64515
 
 
64516
 
      case $host_alias in
64517
 
        *netware*)
64518
 
          
64519
 
  install_modules="install-modules"
64520
 
 
64521
 
  case $host_alias in
64522
 
    *aix*)
64523
 
      suffix=so
64524
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpiconv.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(PHPICONV_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpiconv.so '$ext_builddir'/phpiconv.so'
64525
 
      ;;
64526
 
    *netware*)
64527
 
      suffix=nlm
64528
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) -L$(top_builddir)/netware -lphp5lib $(ICONV_SHARED_LIBADD)'
64529
 
      ;;
64530
 
    *)
64531
 
      suffix=la
64532
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(PHPICONV_SHARED_LIBADD)'
64533
 
      ;;
64534
 
  esac
64535
 
 
64536
 
  if test "x" = "xyes"; then
64537
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpiconv.$suffix"
64538
 
  else
64539
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpiconv.$suffix"
64540
 
  fi
64541
 
  
64542
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
64543
 
 
64544
 
  cat >>Makefile.objects<<EOF
64545
 
\$(phplibdir)/phpiconv.$suffix: $ext_builddir/phpiconv.$suffix
64546
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpiconv.$suffix \$(phplibdir)
64547
 
 
64548
 
$ext_builddir/phpiconv.$suffix: \$(shared_objects_iconv) \$(PHPICONV_SHARED_DEPENDENCIES)
64549
 
        $link_cmd
64550
 
 
64551
 
EOF
64552
 
 
64553
 
          ;;
64554
 
        *)
64555
 
          
64556
 
  install_modules="install-modules"
64557
 
 
64558
 
  case $host_alias in
64559
 
    *aix*)
64560
 
      suffix=so
64561
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/iconv.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(ICONV_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/iconv.so '$ext_builddir'/iconv.so'
64562
 
      ;;
64563
 
    *netware*)
64564
 
      suffix=nlm
64565
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) -L$(top_builddir)/netware -lphp5lib $(NV_SHARED_LIBADD)'
64566
 
      ;;
64567
 
    *)
64568
 
      suffix=la
64569
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_iconv) $(ICONV_SHARED_LIBADD)'
64570
 
      ;;
64571
 
  esac
64572
 
 
64573
 
  if test "x" = "xyes"; then
64574
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/iconv.$suffix"
64575
 
  else
64576
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/iconv.$suffix"
64577
 
  fi
64578
 
  
64579
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
64580
 
 
64581
 
  cat >>Makefile.objects<<EOF
64582
 
\$(phplibdir)/iconv.$suffix: $ext_builddir/iconv.$suffix
64583
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/iconv.$suffix \$(phplibdir)
64584
 
 
64585
 
$ext_builddir/iconv.$suffix: \$(shared_objects_iconv) \$(ICONV_SHARED_DEPENDENCIES)
64586
 
        $link_cmd
64587
 
 
64588
 
EOF
64589
 
 
64590
 
          ;;
64591
 
      esac
64592
 
      
64593
 
cat >>confdefs.h <<_ACEOF
64594
 
@%:@define COMPILE_DL_ICONV 1
64595
 
_ACEOF
64596
 
 
64597
 
    fi
64598
 
  fi
64599
 
 
64600
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
64601
 
    PHP_ICONV_SHARED=no
64602
 
    case "$PHP_SAPI" in
64603
 
      cgi|embed)
64604
 
        
64605
 
  
64606
 
  case ext/iconv in
64607
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64608
 
  /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64609
 
  *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64610
 
  esac
64611
 
  
64612
 
  
64613
 
 
64614
 
  b_c_pre=$php_c_pre
64615
 
  b_cxx_pre=$php_cxx_pre
64616
 
  b_c_meta=$php_c_meta
64617
 
  b_cxx_meta=$php_cxx_meta
64618
 
  b_c_post=$php_c_post
64619
 
  b_cxx_post=$php_cxx_post
64620
 
  b_lo=$php_lo
64621
 
 
64622
 
 
64623
 
  old_IFS=$IFS
64624
 
  for ac_src in iconv.c; do
64625
 
  
64626
 
      IFS=.
64627
 
      set $ac_src
64628
 
      ac_obj=$1
64629
 
      IFS=$old_IFS
64630
 
      
64631
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
64632
 
 
64633
 
      case $ac_src in
64634
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64635
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64636
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64637
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64638
 
      esac
64639
 
 
64640
 
    cat >>Makefile.objects<<EOF
64641
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64642
 
        $ac_comp
64643
 
EOF
64644
 
  done
64645
 
 
64646
 
 
64647
 
        EXT_STATIC="$EXT_STATIC iconv"
64648
 
        ;;
64649
 
      *)
64650
 
        
64651
 
  
64652
 
  case ext/iconv in
64653
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64654
 
  /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64655
 
  *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64656
 
  esac
64657
 
  
64658
 
  
64659
 
 
64660
 
  b_c_pre=$php_c_pre
64661
 
  b_cxx_pre=$php_cxx_pre
64662
 
  b_c_meta=$php_c_meta
64663
 
  b_cxx_meta=$php_cxx_meta
64664
 
  b_c_post=$php_c_post
64665
 
  b_cxx_post=$php_cxx_post
64666
 
  b_lo=$php_lo
64667
 
 
64668
 
 
64669
 
  old_IFS=$IFS
64670
 
  for ac_src in iconv.c; do
64671
 
  
64672
 
      IFS=.
64673
 
      set $ac_src
64674
 
      ac_obj=$1
64675
 
      IFS=$old_IFS
64676
 
      
64677
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
64678
 
 
64679
 
      case $ac_src in
64680
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64681
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64682
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64683
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64684
 
      esac
64685
 
 
64686
 
    cat >>Makefile.objects<<EOF
64687
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64688
 
        $ac_comp
64689
 
EOF
64690
 
  done
64691
 
 
64692
 
 
64693
 
        ;;
64694
 
    esac
64695
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
64696
 
  fi
64697
 
  
64698
 
  
64699
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
64700
 
  
64701
 
 
64702
 
 
64703
 
  if test "$ext_builddir" = "."; then
64704
 
    PHP_PECL_EXTENSION=iconv
64705
 
    
64706
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
64707
 
 
64708
 
  fi
64709
 
 
64710
 
    
64711
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ICONV_SHARED_LIBADD"
64712
 
 
64713
 
    
64714
 
  
64715
 
    for header_file in ext/iconv/; do
64716
 
      
64717
 
  
64718
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
64719
 
  
64720
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
64721
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
64722
 
    eval "INSTALLHEADERS$unique=set"
64723
 
    
64724
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
64725
 
      
64726
 
  fi
64727
 
 
64728
 
    done 
64729
 
  
64730
 
 
64731
 
  else
64732
 
    { { $as_echo "$as_me:$LINENO: error: Please reinstall the iconv library." >&5
64733
 
$as_echo "$as_me: error: Please reinstall the iconv library." >&2;}
64734
 
   { (exit 1); exit 1; }; }
64735
 
  fi
64736
 
fi
64737
 
 
64738
 
 
64739
 
 
64740
 
 
64741
 
 
64742
 
 
64743
 
 
64744
 
 
64745
 
 
64746
 
 
64747
 
 
64748
 
 
64749
 
 
64750
 
 
64751
 
php_with_imap=no
64752
 
 
64753
 
{ $as_echo "$as_me:$LINENO: checking for IMAP support" >&5
64754
 
$as_echo_n "checking for IMAP support... " >&6; }
64755
 
 
64756
 
@%:@ Check whether --with-imap was given.
64757
 
if test "${with_imap+set}" = set; then
64758
 
  withval=$with_imap; PHP_IMAP=$withval
64759
 
else
64760
 
  
64761
 
  PHP_IMAP=no
64762
 
  test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL
64763
 
 
64764
 
fi
64765
 
 
64766
 
 
64767
 
 
64768
 
ext_output="yes, shared"
64769
 
ext_shared=yes
64770
 
case $PHP_IMAP in
64771
 
shared,*)
64772
 
  PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'`
64773
 
  ;;
64774
 
shared)
64775
 
  PHP_IMAP=yes
64776
 
  ;;
64777
 
no)
64778
 
  ext_output=no
64779
 
  ext_shared=no
64780
 
  ;;
64781
 
*)
64782
 
  ext_output=yes
64783
 
  ext_shared=no
64784
 
  ;;
64785
 
esac
64786
 
 
64787
 
 
64788
 
 
64789
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
64790
 
$as_echo "$ext_output" >&6; }
64791
 
 
64792
 
 
64793
 
 
64794
 
 
64795
 
 
64796
 
php_with_kerberos=no
64797
 
 
64798
 
{ $as_echo "$as_me:$LINENO: checking for IMAP Kerberos support" >&5
64799
 
$as_echo_n "checking for IMAP Kerberos support... " >&6; }
64800
 
 
64801
 
@%:@ Check whether --with-kerberos was given.
64802
 
if test "${with_kerberos+set}" = set; then
64803
 
  withval=$with_kerberos; PHP_KERBEROS=$withval
64804
 
else
64805
 
  
64806
 
  PHP_KERBEROS=no
64807
 
  
64808
 
 
64809
 
fi
64810
 
 
64811
 
 
64812
 
ext_output=$PHP_KERBEROS
64813
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
64814
 
$as_echo "$ext_output" >&6; }
64815
 
 
64816
 
 
64817
 
 
64818
 
 
64819
 
 
64820
 
php_with_imap_ssl=no
64821
 
 
64822
 
{ $as_echo "$as_me:$LINENO: checking for IMAP SSL support" >&5
64823
 
$as_echo_n "checking for IMAP SSL support... " >&6; }
64824
 
 
64825
 
@%:@ Check whether --with-imap-ssl was given.
64826
 
if test "${with_imap_ssl+set}" = set; then
64827
 
  withval=$with_imap_ssl; PHP_IMAP_SSL=$withval
64828
 
else
64829
 
  
64830
 
  PHP_IMAP_SSL=no
64831
 
  
64832
 
 
64833
 
fi
64834
 
 
64835
 
 
64836
 
ext_output=$PHP_IMAP_SSL
64837
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
64838
 
$as_echo "$ext_output" >&6; }
64839
 
 
64840
 
 
64841
 
 
64842
 
 
64843
 
 
64844
 
if test "$PHP_IMAP" != "no"; then  
64845
 
    
64846
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD"
64847
 
 
64848
 
    
64849
 
  ext_builddir=ext/imap
64850
 
  ext_srcdir=$abs_srcdir/ext/imap
64851
 
 
64852
 
  ac_extra=
64853
 
 
64854
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
64855
 
    PHP_IMAP_SHARED=no
64856
 
    
64857
 
  
64858
 
  case ext/imap in
64859
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64860
 
  /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64861
 
  *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64862
 
  esac
64863
 
  
64864
 
  
64865
 
 
64866
 
  b_c_pre=$php_c_pre
64867
 
  b_cxx_pre=$php_cxx_pre
64868
 
  b_c_meta=$php_c_meta
64869
 
  b_cxx_meta=$php_cxx_meta
64870
 
  b_c_post=$php_c_post
64871
 
  b_cxx_post=$php_cxx_post
64872
 
  b_lo=$php_lo
64873
 
 
64874
 
 
64875
 
  old_IFS=$IFS
64876
 
  for ac_src in php_imap.c; do
64877
 
  
64878
 
      IFS=.
64879
 
      set $ac_src
64880
 
      ac_obj=$1
64881
 
      IFS=$old_IFS
64882
 
      
64883
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
64884
 
 
64885
 
      case $ac_src in
64886
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64887
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64888
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64889
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64890
 
      esac
64891
 
 
64892
 
    cat >>Makefile.objects<<EOF
64893
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64894
 
        $ac_comp
64895
 
EOF
64896
 
  done
64897
 
 
64898
 
 
64899
 
    EXT_STATIC="$EXT_STATIC imap"
64900
 
    if test "$ext_shared" != "nocli"; then
64901
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
64902
 
    fi
64903
 
  else
64904
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
64905
 
      PHP_IMAP_SHARED=yes
64906
 
      
64907
 
  case ext/imap in
64908
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64909
 
  /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64910
 
  *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64911
 
  esac
64912
 
  
64913
 
  
64914
 
 
64915
 
  b_c_pre=$shared_c_pre
64916
 
  b_cxx_pre=$shared_cxx_pre
64917
 
  b_c_meta=$shared_c_meta
64918
 
  b_cxx_meta=$shared_cxx_meta
64919
 
  b_c_post=$shared_c_post
64920
 
  b_cxx_post=$shared_cxx_post
64921
 
  b_lo=$shared_lo
64922
 
 
64923
 
 
64924
 
  old_IFS=$IFS
64925
 
  for ac_src in php_imap.c; do
64926
 
  
64927
 
      IFS=.
64928
 
      set $ac_src
64929
 
      ac_obj=$1
64930
 
      IFS=$old_IFS
64931
 
      
64932
 
      shared_objects_imap="$shared_objects_imap $ac_bdir$ac_obj.lo"
64933
 
 
64934
 
      case $ac_src in
64935
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64936
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64937
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64938
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64939
 
      esac
64940
 
 
64941
 
    cat >>Makefile.objects<<EOF
64942
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64943
 
        $ac_comp
64944
 
EOF
64945
 
  done
64946
 
 
64947
 
      case $host_alias in
64948
 
        *netware*)
64949
 
          
64950
 
  install_modules="install-modules"
64951
 
 
64952
 
  case $host_alias in
64953
 
    *aix*)
64954
 
      suffix=so
64955
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpimap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(PHPIMAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpimap.so '$ext_builddir'/phpimap.so'
64956
 
      ;;
64957
 
    *netware*)
64958
 
      suffix=nlm
64959
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) -L$(top_builddir)/netware -lphp5lib $(IMAP_SHARED_LIBADD)'
64960
 
      ;;
64961
 
    *)
64962
 
      suffix=la
64963
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(PHPIMAP_SHARED_LIBADD)'
64964
 
      ;;
64965
 
  esac
64966
 
 
64967
 
  if test "x" = "xyes"; then
64968
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpimap.$suffix"
64969
 
  else
64970
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpimap.$suffix"
64971
 
  fi
64972
 
  
64973
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
64974
 
 
64975
 
  cat >>Makefile.objects<<EOF
64976
 
\$(phplibdir)/phpimap.$suffix: $ext_builddir/phpimap.$suffix
64977
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpimap.$suffix \$(phplibdir)
64978
 
 
64979
 
$ext_builddir/phpimap.$suffix: \$(shared_objects_imap) \$(PHPIMAP_SHARED_DEPENDENCIES)
64980
 
        $link_cmd
64981
 
 
64982
 
EOF
64983
 
 
64984
 
          ;;
64985
 
        *)
64986
 
          
64987
 
  install_modules="install-modules"
64988
 
 
64989
 
  case $host_alias in
64990
 
    *aix*)
64991
 
      suffix=so
64992
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/imap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(IMAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/imap.so '$ext_builddir'/imap.so'
64993
 
      ;;
64994
 
    *netware*)
64995
 
      suffix=nlm
64996
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
64997
 
      ;;
64998
 
    *)
64999
 
      suffix=la
65000
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_imap) $(IMAP_SHARED_LIBADD)'
65001
 
      ;;
65002
 
  esac
65003
 
 
65004
 
  if test "x" = "xyes"; then
65005
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/imap.$suffix"
65006
 
  else
65007
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/imap.$suffix"
65008
 
  fi
65009
 
  
65010
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
65011
 
 
65012
 
  cat >>Makefile.objects<<EOF
65013
 
\$(phplibdir)/imap.$suffix: $ext_builddir/imap.$suffix
65014
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/imap.$suffix \$(phplibdir)
65015
 
 
65016
 
$ext_builddir/imap.$suffix: \$(shared_objects_imap) \$(IMAP_SHARED_DEPENDENCIES)
65017
 
        $link_cmd
65018
 
 
65019
 
EOF
65020
 
 
65021
 
          ;;
65022
 
      esac
65023
 
      
65024
 
cat >>confdefs.h <<_ACEOF
65025
 
@%:@define COMPILE_DL_IMAP 1
65026
 
_ACEOF
65027
 
 
65028
 
    fi
65029
 
  fi
65030
 
 
65031
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
65032
 
    PHP_IMAP_SHARED=no
65033
 
    case "$PHP_SAPI" in
65034
 
      cgi|embed)
65035
 
        
65036
 
  
65037
 
  case ext/imap in
65038
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65039
 
  /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65040
 
  *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65041
 
  esac
65042
 
  
65043
 
  
65044
 
 
65045
 
  b_c_pre=$php_c_pre
65046
 
  b_cxx_pre=$php_cxx_pre
65047
 
  b_c_meta=$php_c_meta
65048
 
  b_cxx_meta=$php_cxx_meta
65049
 
  b_c_post=$php_c_post
65050
 
  b_cxx_post=$php_cxx_post
65051
 
  b_lo=$php_lo
65052
 
 
65053
 
 
65054
 
  old_IFS=$IFS
65055
 
  for ac_src in php_imap.c; do
65056
 
  
65057
 
      IFS=.
65058
 
      set $ac_src
65059
 
      ac_obj=$1
65060
 
      IFS=$old_IFS
65061
 
      
65062
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
65063
 
 
65064
 
      case $ac_src in
65065
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65066
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65067
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65068
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65069
 
      esac
65070
 
 
65071
 
    cat >>Makefile.objects<<EOF
65072
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65073
 
        $ac_comp
65074
 
EOF
65075
 
  done
65076
 
 
65077
 
 
65078
 
        EXT_STATIC="$EXT_STATIC imap"
65079
 
        ;;
65080
 
      *)
65081
 
        
65082
 
  
65083
 
  case ext/imap in
65084
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65085
 
  /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65086
 
  *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65087
 
  esac
65088
 
  
65089
 
  
65090
 
 
65091
 
  b_c_pre=$php_c_pre
65092
 
  b_cxx_pre=$php_cxx_pre
65093
 
  b_c_meta=$php_c_meta
65094
 
  b_cxx_meta=$php_cxx_meta
65095
 
  b_c_post=$php_c_post
65096
 
  b_cxx_post=$php_cxx_post
65097
 
  b_lo=$php_lo
65098
 
 
65099
 
 
65100
 
  old_IFS=$IFS
65101
 
  for ac_src in php_imap.c; do
65102
 
  
65103
 
      IFS=.
65104
 
      set $ac_src
65105
 
      ac_obj=$1
65106
 
      IFS=$old_IFS
65107
 
      
65108
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
65109
 
 
65110
 
      case $ac_src in
65111
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65112
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65113
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65114
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65115
 
      esac
65116
 
 
65117
 
    cat >>Makefile.objects<<EOF
65118
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65119
 
        $ac_comp
65120
 
EOF
65121
 
  done
65122
 
 
65123
 
 
65124
 
        ;;
65125
 
    esac
65126
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
65127
 
  fi
65128
 
  
65129
 
  
65130
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
65131
 
  
65132
 
 
65133
 
 
65134
 
  if test "$ext_builddir" = "."; then
65135
 
    PHP_PECL_EXTENSION=imap
65136
 
    
65137
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
65138
 
 
65139
 
  fi
65140
 
 
65141
 
    
65142
 
cat >>confdefs.h <<\_ACEOF
65143
 
@%:@define HAVE_IMAP 1
65144
 
_ACEOF
65145
 
 
65146
 
 
65147
 
    for i in $PHP_IMAP /usr/local /usr; do
65148
 
      if test -r "$i/c-client.h"; then
65149
 
    
65150
 
cat >>confdefs.h <<\_ACEOF
65151
 
@%:@define HAVE_IMAP2000 1
65152
 
_ACEOF
65153
 
 
65154
 
    IMAP_DIR=$i
65155
 
    IMAP_INC_DIR=$i
65156
 
    break
65157
 
  elif test -r "$i/rfc822.h"; then 
65158
 
    IMAP_DIR=$i; 
65159
 
    IMAP_INC_DIR=$i
65160
 
        break
65161
 
 
65162
 
      elif test -r "$i/include/c-client/c-client.h"; then
65163
 
    
65164
 
cat >>confdefs.h <<\_ACEOF
65165
 
@%:@define HAVE_IMAP2000 1
65166
 
_ACEOF
65167
 
 
65168
 
    IMAP_DIR=$i
65169
 
    IMAP_INC_DIR=$i/include/c-client
65170
 
    break
65171
 
  elif test -r "$i/include/c-client/rfc822.h"; then 
65172
 
    IMAP_DIR=$i; 
65173
 
    IMAP_INC_DIR=$i/include/c-client
65174
 
        break
65175
 
 
65176
 
      elif test -r "$i/include/imap/c-client.h"; then
65177
 
    
65178
 
cat >>confdefs.h <<\_ACEOF
65179
 
@%:@define HAVE_IMAP2000 1
65180
 
_ACEOF
65181
 
 
65182
 
    IMAP_DIR=$i
65183
 
    IMAP_INC_DIR=$i/include/imap
65184
 
    break
65185
 
  elif test -r "$i/include/imap/rfc822.h"; then 
65186
 
    IMAP_DIR=$i; 
65187
 
    IMAP_INC_DIR=$i/include/imap
65188
 
        break
65189
 
 
65190
 
      elif test -r "$i/include/c-client.h"; then
65191
 
    
65192
 
cat >>confdefs.h <<\_ACEOF
65193
 
@%:@define HAVE_IMAP2000 1
65194
 
_ACEOF
65195
 
 
65196
 
    IMAP_DIR=$i
65197
 
    IMAP_INC_DIR=$i/include
65198
 
    break
65199
 
  elif test -r "$i/include/rfc822.h"; then 
65200
 
    IMAP_DIR=$i; 
65201
 
    IMAP_INC_DIR=$i/include
65202
 
        break
65203
 
 
65204
 
      elif test -r "$i/imap/c-client.h"; then
65205
 
    
65206
 
cat >>confdefs.h <<\_ACEOF
65207
 
@%:@define HAVE_IMAP2000 1
65208
 
_ACEOF
65209
 
 
65210
 
    IMAP_DIR=$i
65211
 
    IMAP_INC_DIR=$i/imap
65212
 
    break
65213
 
  elif test -r "$i/imap/rfc822.h"; then 
65214
 
    IMAP_DIR=$i; 
65215
 
    IMAP_INC_DIR=$i/imap
65216
 
        break
65217
 
 
65218
 
      elif test -r "$i/c-client/c-client.h"; then
65219
 
    
65220
 
cat >>confdefs.h <<\_ACEOF
65221
 
@%:@define HAVE_IMAP2000 1
65222
 
_ACEOF
65223
 
 
65224
 
    IMAP_DIR=$i
65225
 
    IMAP_INC_DIR=$i/c-client
65226
 
    break
65227
 
  elif test -r "$i/c-client/rfc822.h"; then 
65228
 
    IMAP_DIR=$i; 
65229
 
    IMAP_INC_DIR=$i/c-client
65230
 
        break
65231
 
 
65232
 
      fi
65233
 
    done
65234
 
 
65235
 
        cat >conftest.$ac_ext <<_ACEOF
65236
 
/* confdefs.h.  */
65237
 
_ACEOF
65238
 
cat confdefs.h >>conftest.$ac_ext
65239
 
cat >>conftest.$ac_ext <<_ACEOF
65240
 
/* end confdefs.h.  */
65241
 
#include <$IMAP_INC_DIR/mail.h>
65242
 
 
65243
 
_ACEOF
65244
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65245
 
  $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then
65246
 
  
65247
 
      
65248
 
cat >>confdefs.h <<\_ACEOF
65249
 
@%:@define HAVE_IMAP2004 1
65250
 
_ACEOF
65251
 
 
65252
 
    
65253
 
fi
65254
 
rm -f conftest*
65255
 
 
65256
 
 
65257
 
        old_CFLAGS=$CFLAGS
65258
 
    CFLAGS="-I$IMAP_INC_DIR"
65259
 
    { $as_echo "$as_me:$LINENO: checking for utf8_mime2text signature" >&5
65260
 
$as_echo_n "checking for utf8_mime2text signature... " >&6; }
65261
 
if test "${ac_cv_utf8_mime2text+set}" = set; then
65262
 
  $as_echo_n "(cached) " >&6
65263
 
else
65264
 
  cat >conftest.$ac_ext <<_ACEOF
65265
 
/* confdefs.h.  */
65266
 
_ACEOF
65267
 
cat confdefs.h >>conftest.$ac_ext
65268
 
cat >>conftest.$ac_ext <<_ACEOF
65269
 
/* end confdefs.h.  */
65270
 
 
65271
 
#include <stdio.h>
65272
 
#include <c-client.h>
65273
 
      
65274
 
int
65275
 
main ()
65276
 
{
65277
 
 
65278
 
        SIZEDTEXT *src, *dst;
65279
 
        utf8_mime2text(src, dst);
65280
 
      
65281
 
  ;
65282
 
  return 0;
65283
 
}
65284
 
_ACEOF
65285
 
rm -f conftest.$ac_objext
65286
 
if { (ac_try="$ac_compile"
65287
 
case "(($ac_try" in
65288
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65289
 
  *) ac_try_echo=$ac_try;;
65290
 
esac
65291
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65292
 
$as_echo "$ac_try_echo") >&5
65293
 
  (eval "$ac_compile") 2>conftest.er1
65294
 
  ac_status=$?
65295
 
  grep -v '^ *+' conftest.er1 >conftest.err
65296
 
  rm -f conftest.er1
65297
 
  cat conftest.err >&5
65298
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65299
 
  (exit $ac_status); } && {
65300
 
         test -z "$ac_c_werror_flag" ||
65301
 
         test ! -s conftest.err
65302
 
       } && test -s conftest.$ac_objext; then
65303
 
  
65304
 
        ac_cv_utf8_mime2text=old
65305
 
      
65306
 
else
65307
 
  $as_echo "$as_me: failed program was:" >&5
65308
 
sed 's/^/| /' conftest.$ac_ext >&5
65309
 
 
65310
 
        
65311
 
        ac_cv_utf8_mime2text=new
65312
 
      
65313
 
fi
65314
 
 
65315
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65316
 
    
65317
 
fi
65318
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_utf8_mime2text" >&5
65319
 
$as_echo "$ac_cv_utf8_mime2text" >&6; }
65320
 
    if test "$ac_cv_utf8_mime2text" = "new"; then
65321
 
      
65322
 
cat >>confdefs.h <<\_ACEOF
65323
 
@%:@define HAVE_NEW_MIME2TEXT 1
65324
 
_ACEOF
65325
 
 
65326
 
    fi
65327
 
    CFLAGS=$old_CFLAGS
65328
 
 
65329
 
    old_CFLAGS=$CFLAGS
65330
 
    CFLAGS="-I$IMAP_INC_DIR"
65331
 
    { $as_echo "$as_me:$LINENO: checking for U8T_DECOMPOSE" >&5
65332
 
$as_echo_n "checking for U8T_DECOMPOSE... " >&6; }
65333
 
if test "${ac_cv_u8t_canonical+set}" = set; then
65334
 
  $as_echo_n "(cached) " >&6
65335
 
else
65336
 
  cat >conftest.$ac_ext <<_ACEOF
65337
 
/* confdefs.h.  */
65338
 
_ACEOF
65339
 
cat confdefs.h >>conftest.$ac_ext
65340
 
cat >>conftest.$ac_ext <<_ACEOF
65341
 
/* end confdefs.h.  */
65342
 
 
65343
 
#include <c-client.h>
65344
 
      
65345
 
int
65346
 
main ()
65347
 
{
65348
 
 
65349
 
         int i = U8T_CANONICAL;
65350
 
      
65351
 
  ;
65352
 
  return 0;
65353
 
}
65354
 
_ACEOF
65355
 
rm -f conftest.$ac_objext
65356
 
if { (ac_try="$ac_compile"
65357
 
case "(($ac_try" in
65358
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65359
 
  *) ac_try_echo=$ac_try;;
65360
 
esac
65361
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65362
 
$as_echo "$ac_try_echo") >&5
65363
 
  (eval "$ac_compile") 2>conftest.er1
65364
 
  ac_status=$?
65365
 
  grep -v '^ *+' conftest.er1 >conftest.err
65366
 
  rm -f conftest.er1
65367
 
  cat conftest.err >&5
65368
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65369
 
  (exit $ac_status); } && {
65370
 
         test -z "$ac_c_werror_flag" ||
65371
 
         test ! -s conftest.err
65372
 
       } && test -s conftest.$ac_objext; then
65373
 
  
65374
 
         ac_cv_u8t_decompose=yes
65375
 
      
65376
 
else
65377
 
  $as_echo "$as_me: failed program was:" >&5
65378
 
sed 's/^/| /' conftest.$ac_ext >&5
65379
 
 
65380
 
        
65381
 
         ac_cv_u8t_decompose=no
65382
 
      
65383
 
fi
65384
 
 
65385
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65386
 
    
65387
 
fi
65388
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_u8t_canonical" >&5
65389
 
$as_echo "$ac_cv_u8t_canonical" >&6; }
65390
 
    CFLAGS=$old_CFLAGS
65391
 
 
65392
 
    if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then
65393
 
                { { $as_echo "$as_me:$LINENO: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." >&5
65394
 
$as_echo "$as_me: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." >&2;}
65395
 
   { (exit 1); exit 1; }; }
65396
 
    fi
65397
 
    if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then
65398
 
                { { $as_echo "$as_me:$LINENO: error: utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." >&5
65399
 
$as_echo "$as_me: error: utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." >&2;}
65400
 
   { (exit 1); exit 1; }; }
65401
 
    fi
65402
 
 
65403
 
        old_CPPFLAGS=$CPPFLAGS
65404
 
    CPPFLAGS=-I$IMAP_INC_DIR
65405
 
    cat >conftest.$ac_ext <<_ACEOF
65406
 
/* confdefs.h.  */
65407
 
_ACEOF
65408
 
cat confdefs.h >>conftest.$ac_ext
65409
 
cat >>conftest.$ac_ext <<_ACEOF
65410
 
/* end confdefs.h.  */
65411
 
 
65412
 
#include "imap4r1.h"
65413
 
#if defined(IMAPSSLPORT)
65414
 
      this_is_true
65415
 
#endif
65416
 
    
65417
 
_ACEOF
65418
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65419
 
  $EGREP "this_is_true" >/dev/null 2>&1; then
65420
 
  
65421
 
      
65422
 
cat >>confdefs.h <<\_ACEOF
65423
 
@%:@define HAVE_IMAP2001 1
65424
 
_ACEOF
65425
 
 
65426
 
    
65427
 
fi
65428
 
rm -f conftest*
65429
 
 
65430
 
    CPPFLAGS=$old_CPPFLAGS
65431
 
 
65432
 
    
65433
 
  save_old_LDFLAGS=$LDFLAGS
65434
 
  ac_stuff=""
65435
 
  
65436
 
  save_ext_shared=$ext_shared
65437
 
  ext_shared=yes
65438
 
  
65439
 
  for ac_i in $ac_stuff; do
65440
 
    case $ac_i in
65441
 
    -pthread)
65442
 
      if test "$ext_shared" = "yes"; then
65443
 
        LDFLAGS="$LDFLAGS -pthread"
65444
 
      else
65445
 
        
65446
 
  
65447
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
65448
 
  
65449
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
65450
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
65451
 
    eval "EXTRA_LDFLAGS$unique=set"
65452
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
65453
 
  fi
65454
 
 
65455
 
      fi
65456
 
    ;;
65457
 
    -l*)
65458
 
      ac_ii=`echo $ac_i|cut -c 3-`
65459
 
      
65460
 
  
65461
 
  case $ac_ii in
65462
 
  c|c_r|pthread*) ;;
65463
 
  *) 
65464
 
    if test "$ext_shared" = "yes"; then
65465
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
65466
 
    else
65467
 
      
65468
 
  
65469
 
  case $ac_ii in
65470
 
  c|c_r|pthread*) ;;
65471
 
  *) 
65472
 
      LIBS="$LIBS -l$ac_ii" 
65473
 
   ;;
65474
 
  esac
65475
 
 
65476
 
 
65477
 
    fi
65478
 
   ;;
65479
 
  esac
65480
 
 
65481
 
 
65482
 
    ;;
65483
 
    -L*)
65484
 
      ac_ii=`echo $ac_i|cut -c 3-`
65485
 
      
65486
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
65487
 
    
65488
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
65489
 
    ai_p=$ac_ii
65490
 
  else
65491
 
    
65492
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
65493
 
    
65494
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65495
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
65496
 
  fi
65497
 
 
65498
 
    
65499
 
      if test "$ext_shared" = "yes"; then
65500
 
        LDFLAGS="-L$ai_p $LDFLAGS"
65501
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
65502
 
      else
65503
 
        
65504
 
  
65505
 
  
65506
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65507
 
  
65508
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65509
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
65510
 
    eval "LIBPATH$unique=set"
65511
 
    
65512
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65513
 
    LDFLAGS="$LDFLAGS -L$ai_p"
65514
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
65515
 
  
65516
 
  fi
65517
 
 
65518
 
 
65519
 
      fi
65520
 
    
65521
 
  fi
65522
 
 
65523
 
    ;;
65524
 
    esac
65525
 
  done
65526
 
 
65527
 
  { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
65528
 
$as_echo_n "checking for pam_start in -lpam... " >&6; }
65529
 
if test "${ac_cv_lib_pam_pam_start+set}" = set; then
65530
 
  $as_echo_n "(cached) " >&6
65531
 
else
65532
 
  ac_check_lib_save_LIBS=$LIBS
65533
 
LIBS="-lpam  $LIBS"
65534
 
cat >conftest.$ac_ext <<_ACEOF
65535
 
/* confdefs.h.  */
65536
 
_ACEOF
65537
 
cat confdefs.h >>conftest.$ac_ext
65538
 
cat >>conftest.$ac_ext <<_ACEOF
65539
 
/* end confdefs.h.  */
65540
 
 
65541
 
/* Override any GCC internal prototype to avoid an error.
65542
 
   Use char because int might match the return type of a GCC
65543
 
   builtin and then its argument prototype would still apply.  */
65544
 
#ifdef __cplusplus
65545
 
extern "C"
65546
 
#endif
65547
 
char pam_start ();
65548
 
int
65549
 
main ()
65550
 
{
65551
 
return pam_start ();
65552
 
  ;
65553
 
  return 0;
65554
 
}
65555
 
_ACEOF
65556
 
rm -f conftest.$ac_objext conftest$ac_exeext
65557
 
if { (ac_try="$ac_link"
65558
 
case "(($ac_try" in
65559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65560
 
  *) ac_try_echo=$ac_try;;
65561
 
esac
65562
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65563
 
$as_echo "$ac_try_echo") >&5
65564
 
  (eval "$ac_link") 2>conftest.er1
65565
 
  ac_status=$?
65566
 
  grep -v '^ *+' conftest.er1 >conftest.err
65567
 
  rm -f conftest.er1
65568
 
  cat conftest.err >&5
65569
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65570
 
  (exit $ac_status); } && {
65571
 
         test -z "$ac_c_werror_flag" ||
65572
 
         test ! -s conftest.err
65573
 
       } && test -s conftest$ac_exeext && {
65574
 
         test "$cross_compiling" = yes ||
65575
 
         $as_test_x conftest$ac_exeext
65576
 
       }; then
65577
 
  ac_cv_lib_pam_pam_start=yes
65578
 
else
65579
 
  $as_echo "$as_me: failed program was:" >&5
65580
 
sed 's/^/| /' conftest.$ac_ext >&5
65581
 
 
65582
 
        ac_cv_lib_pam_pam_start=no
65583
 
fi
65584
 
 
65585
 
rm -rf conftest.dSYM
65586
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65587
 
      conftest$ac_exeext conftest.$ac_ext
65588
 
LIBS=$ac_check_lib_save_LIBS
65589
 
fi
65590
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
65591
 
$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
65592
 
if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
65593
 
  
65594
 
    LDFLAGS=$save_old_LDFLAGS
65595
 
    ext_shared=$save_ext_shared
65596
 
    
65597
 
      
65598
 
  
65599
 
  case pam in
65600
 
  c|c_r|pthread*) ;;
65601
 
  *) 
65602
 
    if test "$ext_shared" = "yes"; then
65603
 
        IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD" 
65604
 
    else
65605
 
      
65606
 
  
65607
 
  case pam in
65608
 
  c|c_r|pthread*) ;;
65609
 
  *) 
65610
 
      LIBS="-lpam $LIBS" 
65611
 
   ;;
65612
 
  esac
65613
 
 
65614
 
 
65615
 
    fi
65616
 
   ;;
65617
 
  esac
65618
 
 
65619
 
 
65620
 
      
65621
 
cat >>confdefs.h <<\_ACEOF
65622
 
@%:@define HAVE_LIBPAM 1
65623
 
_ACEOF
65624
 
 
65625
 
    
65626
 
  
65627
 
else
65628
 
  
65629
 
    LDFLAGS=$save_old_LDFLAGS
65630
 
    ext_shared=$save_ext_shared
65631
 
    unset ac_cv_lib_pam_pam_start
65632
 
    
65633
 
  
65634
 
fi
65635
 
 
65636
 
 
65637
 
    
65638
 
  save_old_LDFLAGS=$LDFLAGS
65639
 
  ac_stuff=""
65640
 
  
65641
 
  save_ext_shared=$ext_shared
65642
 
  ext_shared=yes
65643
 
  
65644
 
  for ac_i in $ac_stuff; do
65645
 
    case $ac_i in
65646
 
    -pthread)
65647
 
      if test "$ext_shared" = "yes"; then
65648
 
        LDFLAGS="$LDFLAGS -pthread"
65649
 
      else
65650
 
        
65651
 
  
65652
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
65653
 
  
65654
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
65655
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
65656
 
    eval "EXTRA_LDFLAGS$unique=set"
65657
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
65658
 
  fi
65659
 
 
65660
 
      fi
65661
 
    ;;
65662
 
    -l*)
65663
 
      ac_ii=`echo $ac_i|cut -c 3-`
65664
 
      
65665
 
  
65666
 
  case $ac_ii in
65667
 
  c|c_r|pthread*) ;;
65668
 
  *) 
65669
 
    if test "$ext_shared" = "yes"; then
65670
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
65671
 
    else
65672
 
      
65673
 
  
65674
 
  case $ac_ii in
65675
 
  c|c_r|pthread*) ;;
65676
 
  *) 
65677
 
      LIBS="$LIBS -l$ac_ii" 
65678
 
   ;;
65679
 
  esac
65680
 
 
65681
 
 
65682
 
    fi
65683
 
   ;;
65684
 
  esac
65685
 
 
65686
 
 
65687
 
    ;;
65688
 
    -L*)
65689
 
      ac_ii=`echo $ac_i|cut -c 3-`
65690
 
      
65691
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
65692
 
    
65693
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
65694
 
    ai_p=$ac_ii
65695
 
  else
65696
 
    
65697
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
65698
 
    
65699
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65700
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
65701
 
  fi
65702
 
 
65703
 
    
65704
 
      if test "$ext_shared" = "yes"; then
65705
 
        LDFLAGS="-L$ai_p $LDFLAGS"
65706
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
65707
 
      else
65708
 
        
65709
 
  
65710
 
  
65711
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65712
 
  
65713
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65714
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
65715
 
    eval "LIBPATH$unique=set"
65716
 
    
65717
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65718
 
    LDFLAGS="$LDFLAGS -L$ai_p"
65719
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
65720
 
  
65721
 
  fi
65722
 
 
65723
 
 
65724
 
      fi
65725
 
    
65726
 
  fi
65727
 
 
65728
 
    ;;
65729
 
    esac
65730
 
  done
65731
 
 
65732
 
  { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
65733
 
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
65734
 
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
65735
 
  $as_echo_n "(cached) " >&6
65736
 
else
65737
 
  ac_check_lib_save_LIBS=$LIBS
65738
 
LIBS="-lcrypt  $LIBS"
65739
 
cat >conftest.$ac_ext <<_ACEOF
65740
 
/* confdefs.h.  */
65741
 
_ACEOF
65742
 
cat confdefs.h >>conftest.$ac_ext
65743
 
cat >>conftest.$ac_ext <<_ACEOF
65744
 
/* end confdefs.h.  */
65745
 
 
65746
 
/* Override any GCC internal prototype to avoid an error.
65747
 
   Use char because int might match the return type of a GCC
65748
 
   builtin and then its argument prototype would still apply.  */
65749
 
#ifdef __cplusplus
65750
 
extern "C"
65751
 
#endif
65752
 
char crypt ();
65753
 
int
65754
 
main ()
65755
 
{
65756
 
return crypt ();
65757
 
  ;
65758
 
  return 0;
65759
 
}
65760
 
_ACEOF
65761
 
rm -f conftest.$ac_objext conftest$ac_exeext
65762
 
if { (ac_try="$ac_link"
65763
 
case "(($ac_try" in
65764
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65765
 
  *) ac_try_echo=$ac_try;;
65766
 
esac
65767
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65768
 
$as_echo "$ac_try_echo") >&5
65769
 
  (eval "$ac_link") 2>conftest.er1
65770
 
  ac_status=$?
65771
 
  grep -v '^ *+' conftest.er1 >conftest.err
65772
 
  rm -f conftest.er1
65773
 
  cat conftest.err >&5
65774
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65775
 
  (exit $ac_status); } && {
65776
 
         test -z "$ac_c_werror_flag" ||
65777
 
         test ! -s conftest.err
65778
 
       } && test -s conftest$ac_exeext && {
65779
 
         test "$cross_compiling" = yes ||
65780
 
         $as_test_x conftest$ac_exeext
65781
 
       }; then
65782
 
  ac_cv_lib_crypt_crypt=yes
65783
 
else
65784
 
  $as_echo "$as_me: failed program was:" >&5
65785
 
sed 's/^/| /' conftest.$ac_ext >&5
65786
 
 
65787
 
        ac_cv_lib_crypt_crypt=no
65788
 
fi
65789
 
 
65790
 
rm -rf conftest.dSYM
65791
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65792
 
      conftest$ac_exeext conftest.$ac_ext
65793
 
LIBS=$ac_check_lib_save_LIBS
65794
 
fi
65795
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
65796
 
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
65797
 
if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
65798
 
  
65799
 
    LDFLAGS=$save_old_LDFLAGS
65800
 
    ext_shared=$save_ext_shared
65801
 
    
65802
 
      
65803
 
  
65804
 
  case crypt in
65805
 
  c|c_r|pthread*) ;;
65806
 
  *) 
65807
 
    if test "$ext_shared" = "yes"; then
65808
 
        IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD" 
65809
 
    else
65810
 
      
65811
 
  
65812
 
  case crypt in
65813
 
  c|c_r|pthread*) ;;
65814
 
  *) 
65815
 
      LIBS="-lcrypt $LIBS" 
65816
 
   ;;
65817
 
  esac
65818
 
 
65819
 
 
65820
 
    fi
65821
 
   ;;
65822
 
  esac
65823
 
 
65824
 
 
65825
 
      
65826
 
cat >>confdefs.h <<\_ACEOF
65827
 
@%:@define HAVE_LIBCRYPT 1
65828
 
_ACEOF
65829
 
 
65830
 
    
65831
 
  
65832
 
else
65833
 
  
65834
 
    LDFLAGS=$save_old_LDFLAGS
65835
 
    ext_shared=$save_ext_shared
65836
 
    unset ac_cv_lib_crypt_crypt
65837
 
    
65838
 
  
65839
 
fi
65840
 
 
65841
 
            
65842
 
    
65843
 
  if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then
65844
 
    IMAP_DIR=$IMAP_DIR
65845
 
  else
65846
 
    
65847
 
    ep_dir="`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
65848
 
    
65849
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65850
 
    IMAP_DIR="$ep_realdir/`basename \"$IMAP_DIR\"`"
65851
 
  fi
65852
 
 
65853
 
 
65854
 
    if test -z "$IMAP_DIR"; then
65855
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find rfc822.h. Please check your c-client installation." >&5
65856
 
$as_echo "$as_me: error: Cannot find rfc822.h. Please check your c-client installation." >&2;}
65857
 
   { (exit 1); exit 1; }; }
65858
 
    fi
65859
 
 
65860
 
    if test -r "$IMAP_DIR/c-client/c-client.a"; then
65861
 
      ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1
65862
 
    elif test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then
65863
 
      ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1
65864
 
    fi
65865
 
 
65866
 
    for lib in c-client4 c-client imap; do
65867
 
      IMAP_LIB=$lib
65868
 
      
65869
 
  str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*"
65870
 
  for i in `echo $str`; do
65871
 
    test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2
65872
 
  done
65873
 
 
65874
 
      
65875
 
  str="$IMAP_DIR/c-client/lib$lib.*"
65876
 
  for i in `echo $str`; do
65877
 
    test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2
65878
 
  done
65879
 
 
65880
 
    done
65881
 
 
65882
 
    if test -z "$IMAP_LIBDIR"; then
65883
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find imap library (libc-client.a). Please check your c-client installation." >&5
65884
 
$as_echo "$as_me: error: Cannot find imap library (libc-client.a). Please check your c-client installation." >&2;}
65885
 
   { (exit 1); exit 1; }; }
65886
 
    fi
65887
 
 
65888
 
    
65889
 
  if test "$IMAP_INC_DIR" != "/usr/include"; then
65890
 
    
65891
 
  if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then
65892
 
    ai_p=$IMAP_INC_DIR
65893
 
  else
65894
 
    
65895
 
    ep_dir="`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
65896
 
    
65897
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65898
 
    ai_p="$ep_realdir/`basename \"$IMAP_INC_DIR\"`"
65899
 
  fi
65900
 
 
65901
 
    
65902
 
  
65903
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65904
 
  
65905
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
65906
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
65907
 
    eval "INCLUDEPATH$unique=set"
65908
 
    
65909
 
      if test ""; then
65910
 
        INCLUDES="-I$ai_p $INCLUDES"
65911
 
      else
65912
 
        INCLUDES="$INCLUDES -I$ai_p"
65913
 
      fi
65914
 
    
65915
 
  fi
65916
 
 
65917
 
  fi
65918
 
 
65919
 
    
65920
 
  
65921
 
  case $IMAP_LIB in
65922
 
  c|c_r|pthread*) ;;
65923
 
  *) 
65924
 
    if test "$ext_shared" = "yes"; then
65925
 
        IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD" 
65926
 
    else
65927
 
      
65928
 
  
65929
 
  case $IMAP_LIB in
65930
 
  c|c_r|pthread*) ;;
65931
 
  *) 
65932
 
      DLIBS="-l$IMAP_LIB $DLIBS" 
65933
 
   ;;
65934
 
  esac
65935
 
 
65936
 
 
65937
 
    fi
65938
 
   ;;
65939
 
  esac
65940
 
 
65941
 
 
65942
 
    
65943
 
  if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then
65944
 
    
65945
 
  if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then
65946
 
    ai_p=$IMAP_LIBDIR
65947
 
  else
65948
 
    
65949
 
    ep_dir="`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
65950
 
    
65951
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65952
 
    ai_p="$ep_realdir/`basename \"$IMAP_LIBDIR\"`"
65953
 
  fi
65954
 
 
65955
 
    
65956
 
      if test "$ext_shared" = "yes"; then
65957
 
        IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
65958
 
        test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
65959
 
      else
65960
 
        
65961
 
  
65962
 
  
65963
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65964
 
  
65965
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65966
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
65967
 
    eval "LIBPATH$unique=set"
65968
 
    
65969
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65970
 
    LDFLAGS="$LDFLAGS -L$ai_p"
65971
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
65972
 
  
65973
 
  fi
65974
 
 
65975
 
 
65976
 
      fi
65977
 
    
65978
 
  fi
65979
 
 
65980
 
    
65981
 
  if test "$PHP_KERBEROS" != "no"; then
65982
 
    
65983
 
  found_kerberos=no
65984
 
  unset KERBEROS_CFLAGS
65985
 
  unset KERBEROS_LIBS
65986
 
 
65987
 
    if test -z "$KRB5_CONFIG"; then
65988
 
    # Extract the first word of "krb5-config", so it can be a program name with args.
65989
 
set dummy krb5-config; ac_word=$2
65990
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
65991
 
$as_echo_n "checking for $ac_word... " >&6; }
65992
 
if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then
65993
 
  $as_echo_n "(cached) " >&6
65994
 
else
65995
 
  case $KRB5_CONFIG in
65996
 
  [\\/]* | ?:[\\/]*)
65997
 
  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
65998
 
  ;;
65999
 
  *)
66000
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66001
 
as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
66002
 
for as_dir in $as_dummy
66003
 
do
66004
 
  IFS=$as_save_IFS
66005
 
  test -z "$as_dir" && as_dir=.
66006
 
  for ac_exec_ext in '' $ac_executable_extensions; do
66007
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
66008
 
    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
66009
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
66010
 
    break 2
66011
 
  fi
66012
 
done
66013
 
done
66014
 
IFS=$as_save_IFS
66015
 
 
66016
 
  test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
66017
 
  ;;
66018
 
esac
66019
 
fi
66020
 
KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
66021
 
if test -n "$KRB5_CONFIG"; then
66022
 
  { $as_echo "$as_me:$LINENO: result: $KRB5_CONFIG" >&5
66023
 
$as_echo "$KRB5_CONFIG" >&6; }
66024
 
else
66025
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
66026
 
$as_echo "no" >&6; }
66027
 
fi
66028
 
 
66029
 
 
66030
 
  fi
66031
 
 
66032
 
    if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
66033
 
    KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
66034
 
    KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
66035
 
 
66036
 
    if test -n "$KERBEROS_LIBS"; then
66037
 
      found_kerberos=yes
66038
 
      
66039
 
  for ac_i in $KERBEROS_LIBS; do
66040
 
    case $ac_i in
66041
 
    -pthread)
66042
 
      if test "$ext_shared" = "yes"; then
66043
 
        IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
66044
 
      else
66045
 
        
66046
 
  
66047
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
66048
 
  
66049
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
66050
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66051
 
    eval "EXTRA_LDFLAGS$unique=set"
66052
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
66053
 
  fi
66054
 
 
66055
 
      fi
66056
 
    ;;
66057
 
    -l*)
66058
 
      ac_ii=`echo $ac_i|cut -c 3-`
66059
 
      
66060
 
  
66061
 
  case $ac_ii in
66062
 
  c|c_r|pthread*) ;;
66063
 
  *) 
66064
 
    if test "$ext_shared" = "yes"; then
66065
 
        IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" 
66066
 
    else
66067
 
      
66068
 
  
66069
 
  case $ac_ii in
66070
 
  c|c_r|pthread*) ;;
66071
 
  *) 
66072
 
      LIBS="$LIBS -l$ac_ii" 
66073
 
   ;;
66074
 
  esac
66075
 
 
66076
 
 
66077
 
    fi
66078
 
   ;;
66079
 
  esac
66080
 
 
66081
 
 
66082
 
    ;;
66083
 
    -L*)
66084
 
      ac_ii=`echo $ac_i|cut -c 3-`
66085
 
      
66086
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
66087
 
    
66088
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66089
 
    ai_p=$ac_ii
66090
 
  else
66091
 
    
66092
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66093
 
    
66094
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66095
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66096
 
  fi
66097
 
 
66098
 
    
66099
 
      if test "$ext_shared" = "yes"; then
66100
 
        IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
66101
 
        test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
66102
 
      else
66103
 
        
66104
 
  
66105
 
  
66106
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66107
 
  
66108
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66109
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66110
 
    eval "LIBPATH$unique=set"
66111
 
    
66112
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66113
 
    LDFLAGS="$LDFLAGS -L$ai_p"
66114
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
66115
 
  
66116
 
  fi
66117
 
 
66118
 
 
66119
 
      fi
66120
 
    
66121
 
  fi
66122
 
 
66123
 
    ;;
66124
 
    esac
66125
 
  done
66126
 
 
66127
 
      
66128
 
  for ac_i in $KERBEROS_CFLAGS; do
66129
 
    case $ac_i in
66130
 
    -I*)
66131
 
      ac_ii=`echo $ac_i|cut -c 3-`
66132
 
      
66133
 
  if test "$ac_ii" != "/usr/include"; then
66134
 
    
66135
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66136
 
    ai_p=$ac_ii
66137
 
  else
66138
 
    
66139
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66140
 
    
66141
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66142
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66143
 
  fi
66144
 
 
66145
 
    
66146
 
  
66147
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66148
 
  
66149
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66150
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66151
 
    eval "INCLUDEPATH$unique=set"
66152
 
    
66153
 
      if test ""; then
66154
 
        INCLUDES="-I$ai_p $INCLUDES"
66155
 
      else
66156
 
        INCLUDES="$INCLUDES -I$ai_p"
66157
 
      fi
66158
 
    
66159
 
  fi
66160
 
 
66161
 
  fi
66162
 
 
66163
 
    ;;
66164
 
    esac
66165
 
  done
66166
 
 
66167
 
    fi
66168
 
  fi
66169
 
 
66170
 
    if test "$found_kerberos" = "no"; then
66171
 
 
66172
 
    if test "$PHP_KERBEROS" = "yes"; then
66173
 
      PHP_KERBEROS="/usr/kerberos /usr/local /usr"
66174
 
    fi
66175
 
 
66176
 
    for i in $PHP_KERBEROS; do
66177
 
      if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
66178
 
        PHP_KERBEROS_DIR=$i
66179
 
        break
66180
 
      fi
66181
 
    done
66182
 
 
66183
 
    if test "$PHP_KERBEROS_DIR"; then
66184
 
      found_kerberos=yes
66185
 
      
66186
 
  if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
66187
 
    
66188
 
  if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
66189
 
    ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
66190
 
  else
66191
 
    
66192
 
    ep_dir="`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
66193
 
    
66194
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66195
 
    ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/$PHP_LIBDIR\"`"
66196
 
  fi
66197
 
 
66198
 
    
66199
 
      if test "$ext_shared" = "yes"; then
66200
 
        IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
66201
 
        test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
66202
 
      else
66203
 
        
66204
 
  
66205
 
  
66206
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66207
 
  
66208
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66209
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66210
 
    eval "LIBPATH$unique=set"
66211
 
    
66212
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66213
 
    LDFLAGS="$LDFLAGS -L$ai_p"
66214
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
66215
 
  
66216
 
  fi
66217
 
 
66218
 
 
66219
 
      fi
66220
 
    
66221
 
  fi
66222
 
 
66223
 
      
66224
 
  
66225
 
  case gssapi_krb5 in
66226
 
  c|c_r|pthread*) ;;
66227
 
  *) 
66228
 
    if test "$ext_shared" = "yes"; then
66229
 
        IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lgssapi_krb5" 
66230
 
    else
66231
 
      
66232
 
  
66233
 
  case gssapi_krb5 in
66234
 
  c|c_r|pthread*) ;;
66235
 
  *) 
66236
 
      LIBS="$LIBS -lgssapi_krb5" 
66237
 
   ;;
66238
 
  esac
66239
 
 
66240
 
 
66241
 
    fi
66242
 
   ;;
66243
 
  esac
66244
 
 
66245
 
 
66246
 
      
66247
 
  
66248
 
  case krb5 in
66249
 
  c|c_r|pthread*) ;;
66250
 
  *) 
66251
 
    if test "$ext_shared" = "yes"; then
66252
 
        IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lkrb5" 
66253
 
    else
66254
 
      
66255
 
  
66256
 
  case krb5 in
66257
 
  c|c_r|pthread*) ;;
66258
 
  *) 
66259
 
      LIBS="$LIBS -lkrb5" 
66260
 
   ;;
66261
 
  esac
66262
 
 
66263
 
 
66264
 
    fi
66265
 
   ;;
66266
 
  esac
66267
 
 
66268
 
 
66269
 
      
66270
 
  
66271
 
  case k5crypto in
66272
 
  c|c_r|pthread*) ;;
66273
 
  *) 
66274
 
    if test "$ext_shared" = "yes"; then
66275
 
        IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lk5crypto" 
66276
 
    else
66277
 
      
66278
 
  
66279
 
  case k5crypto in
66280
 
  c|c_r|pthread*) ;;
66281
 
  *) 
66282
 
      LIBS="$LIBS -lk5crypto" 
66283
 
   ;;
66284
 
  esac
66285
 
 
66286
 
 
66287
 
    fi
66288
 
   ;;
66289
 
  esac
66290
 
 
66291
 
 
66292
 
      
66293
 
  
66294
 
  case com_err in
66295
 
  c|c_r|pthread*) ;;
66296
 
  *) 
66297
 
    if test "$ext_shared" = "yes"; then
66298
 
        IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lcom_err" 
66299
 
    else
66300
 
      
66301
 
  
66302
 
  case com_err in
66303
 
  c|c_r|pthread*) ;;
66304
 
  *) 
66305
 
      LIBS="$LIBS -lcom_err" 
66306
 
   ;;
66307
 
  esac
66308
 
 
66309
 
 
66310
 
    fi
66311
 
   ;;
66312
 
  esac
66313
 
 
66314
 
 
66315
 
      
66316
 
  if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
66317
 
    
66318
 
  if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
66319
 
    ai_p=$PHP_KERBEROS_DIR/include
66320
 
  else
66321
 
    
66322
 
    ep_dir="`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
66323
 
    
66324
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66325
 
    ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/include\"`"
66326
 
  fi
66327
 
 
66328
 
    
66329
 
  
66330
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66331
 
  
66332
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66333
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66334
 
    eval "INCLUDEPATH$unique=set"
66335
 
    
66336
 
      if test ""; then
66337
 
        INCLUDES="-I$ai_p $INCLUDES"
66338
 
      else
66339
 
        INCLUDES="$INCLUDES -I$ai_p"
66340
 
      fi
66341
 
    
66342
 
  fi
66343
 
 
66344
 
  fi
66345
 
 
66346
 
    fi
66347
 
  fi
66348
 
 
66349
 
  if test "$found_kerberos" = "yes"; then
66350
 
 
66351
 
      
66352
 
cat >>confdefs.h <<\_ACEOF
66353
 
@%:@define HAVE_IMAP_KRB 1
66354
 
_ACEOF
66355
 
 
66356
 
    
66357
 
else 
66358
 
      { { $as_echo "$as_me:$LINENO: error: Kerberos libraries not found. 
66359
 
      
66360
 
      Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
66361
 
      " >&5
66362
 
$as_echo "$as_me: error: Kerberos libraries not found. 
66363
 
      
66364
 
      Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
66365
 
      " >&2;}
66366
 
   { (exit 1); exit 1; }; }
66367
 
    
66368
 
  fi
66369
 
 
66370
 
  else
66371
 
    cat >conftest.$ac_ext <<_ACEOF
66372
 
/* confdefs.h.  */
66373
 
_ACEOF
66374
 
cat confdefs.h >>conftest.$ac_ext
66375
 
cat >>conftest.$ac_ext <<_ACEOF
66376
 
/* end confdefs.h.  */
66377
 
#include <$IMAP_INC_DIR/linkage.h>
66378
 
 
66379
 
_ACEOF
66380
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66381
 
  $EGREP "auth_gss" >/dev/null 2>&1; then
66382
 
  
66383
 
      { { $as_echo "$as_me:$LINENO: error: This c-client library is built with Kerberos support. 
66384
 
 
66385
 
      Add --with-kerberos to your configure line. Check config.log for details.
66386
 
      " >&5
66387
 
$as_echo "$as_me: error: This c-client library is built with Kerberos support. 
66388
 
 
66389
 
      Add --with-kerberos to your configure line. Check config.log for details.
66390
 
      " >&2;}
66391
 
   { (exit 1); exit 1; }; }
66392
 
    
66393
 
fi
66394
 
rm -f conftest*
66395
 
 
66396
 
  fi
66397
 
 
66398
 
    
66399
 
  if test "$PHP_IMAP_SSL" != "no"; then
66400
 
    if test "$PHP_OPENSSL" = ""; then
66401
 
      PHP_OPENSSL='no'
66402
 
    fi
66403
 
    
66404
 
  found_openssl=no
66405
 
  unset OPENSSL_INCDIR
66406
 
  unset OPENSSL_LIBDIR
66407
 
 
66408
 
    test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
66409
 
  test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
66410
 
 
66411
 
    if test "$PHP_OPENSSL" != "no"; then
66412
 
    PHP_OPENSSL_DIR=$PHP_OPENSSL
66413
 
  elif test "$PHP_IMAP_SSL" != "no"; then
66414
 
    PHP_OPENSSL_DIR=$PHP_IMAP_SSL
66415
 
  fi
66416
 
 
66417
 
    if test -z "$PKG_CONFIG"; then
66418
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
66419
 
set dummy pkg-config; ac_word=$2
66420
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
66421
 
$as_echo_n "checking for $ac_word... " >&6; }
66422
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
66423
 
  $as_echo_n "(cached) " >&6
66424
 
else
66425
 
  case $PKG_CONFIG in
66426
 
  [\\/]* | ?:[\\/]*)
66427
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
66428
 
  ;;
66429
 
  *)
66430
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66431
 
for as_dir in $PATH
66432
 
do
66433
 
  IFS=$as_save_IFS
66434
 
  test -z "$as_dir" && as_dir=.
66435
 
  for ac_exec_ext in '' $ac_executable_extensions; do
66436
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
66437
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
66438
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
66439
 
    break 2
66440
 
  fi
66441
 
done
66442
 
done
66443
 
IFS=$as_save_IFS
66444
 
 
66445
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
66446
 
  ;;
66447
 
esac
66448
 
fi
66449
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
66450
 
if test -n "$PKG_CONFIG"; then
66451
 
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
66452
 
$as_echo "$PKG_CONFIG" >&6; }
66453
 
else
66454
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
66455
 
$as_echo "no" >&6; }
66456
 
fi
66457
 
 
66458
 
 
66459
 
  fi
66460
 
 
66461
 
    if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
66462
 
    if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
66463
 
      found_openssl=yes
66464
 
      OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
66465
 
      OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
66466
 
      OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
66467
 
    else
66468
 
      { { $as_echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
66469
 
$as_echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
66470
 
   { (exit 1); exit 1; }; }
66471
 
    fi
66472
 
 
66473
 
    if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
66474
 
      
66475
 
  for ac_i in $OPENSSL_LIBS; do
66476
 
    case $ac_i in
66477
 
    -pthread)
66478
 
      if test "$ext_shared" = "yes"; then
66479
 
        IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
66480
 
      else
66481
 
        
66482
 
  
66483
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
66484
 
  
66485
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
66486
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66487
 
    eval "EXTRA_LDFLAGS$unique=set"
66488
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
66489
 
  fi
66490
 
 
66491
 
      fi
66492
 
    ;;
66493
 
    -l*)
66494
 
      ac_ii=`echo $ac_i|cut -c 3-`
66495
 
      
66496
 
  
66497
 
  case $ac_ii in
66498
 
  c|c_r|pthread*) ;;
66499
 
  *) 
66500
 
    if test "$ext_shared" = "yes"; then
66501
 
        IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii" 
66502
 
    else
66503
 
      
66504
 
  
66505
 
  case $ac_ii in
66506
 
  c|c_r|pthread*) ;;
66507
 
  *) 
66508
 
      LIBS="$LIBS -l$ac_ii" 
66509
 
   ;;
66510
 
  esac
66511
 
 
66512
 
 
66513
 
    fi
66514
 
   ;;
66515
 
  esac
66516
 
 
66517
 
 
66518
 
    ;;
66519
 
    -L*)
66520
 
      ac_ii=`echo $ac_i|cut -c 3-`
66521
 
      
66522
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
66523
 
    
66524
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66525
 
    ai_p=$ac_ii
66526
 
  else
66527
 
    
66528
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66529
 
    
66530
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66531
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66532
 
  fi
66533
 
 
66534
 
    
66535
 
      if test "$ext_shared" = "yes"; then
66536
 
        IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
66537
 
        test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
66538
 
      else
66539
 
        
66540
 
  
66541
 
  
66542
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66543
 
  
66544
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66545
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66546
 
    eval "LIBPATH$unique=set"
66547
 
    
66548
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66549
 
    LDFLAGS="$LDFLAGS -L$ai_p"
66550
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
66551
 
  
66552
 
  fi
66553
 
 
66554
 
 
66555
 
      fi
66556
 
    
66557
 
  fi
66558
 
 
66559
 
    ;;
66560
 
    esac
66561
 
  done
66562
 
 
66563
 
      
66564
 
  for ac_i in $OPENSSL_INCS; do
66565
 
    case $ac_i in
66566
 
    -I*)
66567
 
      ac_ii=`echo $ac_i|cut -c 3-`
66568
 
      
66569
 
  if test "$ac_ii" != "/usr/include"; then
66570
 
    
66571
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66572
 
    ai_p=$ac_ii
66573
 
  else
66574
 
    
66575
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66576
 
    
66577
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66578
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66579
 
  fi
66580
 
 
66581
 
    
66582
 
  
66583
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66584
 
  
66585
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66586
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66587
 
    eval "INCLUDEPATH$unique=set"
66588
 
    
66589
 
      if test ""; then
66590
 
        INCLUDES="-I$ai_p $INCLUDES"
66591
 
      else
66592
 
        INCLUDES="$INCLUDES -I$ai_p"
66593
 
      fi
66594
 
    
66595
 
  fi
66596
 
 
66597
 
  fi
66598
 
 
66599
 
    ;;
66600
 
    esac
66601
 
  done
66602
 
 
66603
 
    fi
66604
 
  fi
66605
 
 
66606
 
    if test "$found_openssl" = "no"; then
66607
 
  
66608
 
    if test "$PHP_OPENSSL_DIR" = "yes"; then
66609
 
      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
66610
 
    fi
66611
 
 
66612
 
    for i in $PHP_OPENSSL_DIR; do
66613
 
      if test -r $i/include/openssl/evp.h; then
66614
 
        OPENSSL_INCDIR=$i/include
66615
 
      fi
66616
 
      if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
66617
 
        OPENSSL_LIBDIR=$i/$PHP_LIBDIR
66618
 
      fi
66619
 
      test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
66620
 
    done
66621
 
 
66622
 
    if test -z "$OPENSSL_INCDIR"; then
66623
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find OpenSSL's <evp.h>" >&5
66624
 
$as_echo "$as_me: error: Cannot find OpenSSL's <evp.h>" >&2;}
66625
 
   { (exit 1); exit 1; }; }
66626
 
    fi
66627
 
 
66628
 
    if test -z "$OPENSSL_LIBDIR"; then
66629
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find OpenSSL's libraries" >&5
66630
 
$as_echo "$as_me: error: Cannot find OpenSSL's libraries" >&2;}
66631
 
   { (exit 1); exit 1; }; }
66632
 
    fi
66633
 
 
66634
 
    old_CPPFLAGS=$CPPFLAGS
66635
 
    CPPFLAGS=-I$OPENSSL_INCDIR
66636
 
    { $as_echo "$as_me:$LINENO: checking for OpenSSL version" >&5
66637
 
$as_echo_n "checking for OpenSSL version... " >&6; }
66638
 
    cat >conftest.$ac_ext <<_ACEOF
66639
 
/* confdefs.h.  */
66640
 
_ACEOF
66641
 
cat confdefs.h >>conftest.$ac_ext
66642
 
cat >>conftest.$ac_ext <<_ACEOF
66643
 
/* end confdefs.h.  */
66644
 
 
66645
 
#include <openssl/opensslv.h>
66646
 
#if OPENSSL_VERSION_NUMBER >= 0x0090600fL
66647
 
  yes
66648
 
#endif
66649
 
    
66650
 
_ACEOF
66651
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66652
 
  $EGREP "yes" >/dev/null 2>&1; then
66653
 
  
66654
 
      { $as_echo "$as_me:$LINENO: result: >= 0.9.6" >&5
66655
 
$as_echo ">= 0.9.6" >&6; }
66656
 
    
66657
 
else
66658
 
  
66659
 
      { { $as_echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
66660
 
$as_echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
66661
 
   { (exit 1); exit 1; }; }
66662
 
    
66663
 
fi
66664
 
rm -f conftest*
66665
 
 
66666
 
    CPPFLAGS=$old_CPPFLAGS
66667
 
 
66668
 
    
66669
 
  if test "$OPENSSL_INCDIR" != "/usr/include"; then
66670
 
    
66671
 
  if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
66672
 
    ai_p=$OPENSSL_INCDIR
66673
 
  else
66674
 
    
66675
 
    ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
66676
 
    
66677
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66678
 
    ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
66679
 
  fi
66680
 
 
66681
 
    
66682
 
  
66683
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66684
 
  
66685
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66686
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66687
 
    eval "INCLUDEPATH$unique=set"
66688
 
    
66689
 
      if test ""; then
66690
 
        INCLUDES="-I$ai_p $INCLUDES"
66691
 
      else
66692
 
        INCLUDES="$INCLUDES -I$ai_p"
66693
 
      fi
66694
 
    
66695
 
  fi
66696
 
 
66697
 
  fi
66698
 
 
66699
 
  
66700
 
    
66701
 
  save_old_LDFLAGS=$LDFLAGS
66702
 
  ac_stuff="
66703
 
      -L$OPENSSL_LIBDIR
66704
 
    "
66705
 
  
66706
 
  save_ext_shared=$ext_shared
66707
 
  ext_shared=yes
66708
 
  
66709
 
  for ac_i in $ac_stuff; do
66710
 
    case $ac_i in
66711
 
    -pthread)
66712
 
      if test "$ext_shared" = "yes"; then
66713
 
        LDFLAGS="$LDFLAGS -pthread"
66714
 
      else
66715
 
        
66716
 
  
66717
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
66718
 
  
66719
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
66720
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66721
 
    eval "EXTRA_LDFLAGS$unique=set"
66722
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
66723
 
  fi
66724
 
 
66725
 
      fi
66726
 
    ;;
66727
 
    -l*)
66728
 
      ac_ii=`echo $ac_i|cut -c 3-`
66729
 
      
66730
 
  
66731
 
  case $ac_ii in
66732
 
  c|c_r|pthread*) ;;
66733
 
  *) 
66734
 
    if test "$ext_shared" = "yes"; then
66735
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
66736
 
    else
66737
 
      
66738
 
  
66739
 
  case $ac_ii in
66740
 
  c|c_r|pthread*) ;;
66741
 
  *) 
66742
 
      LIBS="$LIBS -l$ac_ii" 
66743
 
   ;;
66744
 
  esac
66745
 
 
66746
 
 
66747
 
    fi
66748
 
   ;;
66749
 
  esac
66750
 
 
66751
 
 
66752
 
    ;;
66753
 
    -L*)
66754
 
      ac_ii=`echo $ac_i|cut -c 3-`
66755
 
      
66756
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
66757
 
    
66758
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66759
 
    ai_p=$ac_ii
66760
 
  else
66761
 
    
66762
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66763
 
    
66764
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66765
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66766
 
  fi
66767
 
 
66768
 
    
66769
 
      if test "$ext_shared" = "yes"; then
66770
 
        LDFLAGS="-L$ai_p $LDFLAGS"
66771
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
66772
 
      else
66773
 
        
66774
 
  
66775
 
  
66776
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66777
 
  
66778
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66779
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66780
 
    eval "LIBPATH$unique=set"
66781
 
    
66782
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66783
 
    LDFLAGS="$LDFLAGS -L$ai_p"
66784
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
66785
 
  
66786
 
  fi
66787
 
 
66788
 
 
66789
 
      fi
66790
 
    
66791
 
  fi
66792
 
 
66793
 
    ;;
66794
 
    esac
66795
 
  done
66796
 
 
66797
 
  { $as_echo "$as_me:$LINENO: checking for CRYPTO_free in -lcrypto" >&5
66798
 
$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
66799
 
if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then
66800
 
  $as_echo_n "(cached) " >&6
66801
 
else
66802
 
  ac_check_lib_save_LIBS=$LIBS
66803
 
LIBS="-lcrypto  $LIBS"
66804
 
cat >conftest.$ac_ext <<_ACEOF
66805
 
/* confdefs.h.  */
66806
 
_ACEOF
66807
 
cat confdefs.h >>conftest.$ac_ext
66808
 
cat >>conftest.$ac_ext <<_ACEOF
66809
 
/* end confdefs.h.  */
66810
 
 
66811
 
/* Override any GCC internal prototype to avoid an error.
66812
 
   Use char because int might match the return type of a GCC
66813
 
   builtin and then its argument prototype would still apply.  */
66814
 
#ifdef __cplusplus
66815
 
extern "C"
66816
 
#endif
66817
 
char CRYPTO_free ();
66818
 
int
66819
 
main ()
66820
 
{
66821
 
return CRYPTO_free ();
66822
 
  ;
66823
 
  return 0;
66824
 
}
66825
 
_ACEOF
66826
 
rm -f conftest.$ac_objext conftest$ac_exeext
66827
 
if { (ac_try="$ac_link"
66828
 
case "(($ac_try" in
66829
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66830
 
  *) ac_try_echo=$ac_try;;
66831
 
esac
66832
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66833
 
$as_echo "$ac_try_echo") >&5
66834
 
  (eval "$ac_link") 2>conftest.er1
66835
 
  ac_status=$?
66836
 
  grep -v '^ *+' conftest.er1 >conftest.err
66837
 
  rm -f conftest.er1
66838
 
  cat conftest.err >&5
66839
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66840
 
  (exit $ac_status); } && {
66841
 
         test -z "$ac_c_werror_flag" ||
66842
 
         test ! -s conftest.err
66843
 
       } && test -s conftest$ac_exeext && {
66844
 
         test "$cross_compiling" = yes ||
66845
 
         $as_test_x conftest$ac_exeext
66846
 
       }; then
66847
 
  ac_cv_lib_crypto_CRYPTO_free=yes
66848
 
else
66849
 
  $as_echo "$as_me: failed program was:" >&5
66850
 
sed 's/^/| /' conftest.$ac_ext >&5
66851
 
 
66852
 
        ac_cv_lib_crypto_CRYPTO_free=no
66853
 
fi
66854
 
 
66855
 
rm -rf conftest.dSYM
66856
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66857
 
      conftest$ac_exeext conftest.$ac_ext
66858
 
LIBS=$ac_check_lib_save_LIBS
66859
 
fi
66860
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
66861
 
$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
66862
 
if test "x$ac_cv_lib_crypto_CRYPTO_free" = x""yes; then
66863
 
  
66864
 
    LDFLAGS=$save_old_LDFLAGS
66865
 
    ext_shared=$save_ext_shared
66866
 
    
66867
 
      
66868
 
  
66869
 
  case crypto in
66870
 
  c|c_r|pthread*) ;;
66871
 
  *) 
66872
 
    if test "$ext_shared" = "yes"; then
66873
 
        IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD" 
66874
 
    else
66875
 
      
66876
 
  
66877
 
  case crypto in
66878
 
  c|c_r|pthread*) ;;
66879
 
  *) 
66880
 
      LIBS="-lcrypto $LIBS" 
66881
 
   ;;
66882
 
  esac
66883
 
 
66884
 
 
66885
 
    fi
66886
 
   ;;
66887
 
  esac
66888
 
 
66889
 
 
66890
 
    
66891
 
  
66892
 
else
66893
 
  
66894
 
    LDFLAGS=$save_old_LDFLAGS
66895
 
    ext_shared=$save_ext_shared
66896
 
    unset ac_cv_lib_crypto_CRYPTO_free
66897
 
    
66898
 
      { { $as_echo "$as_me:$LINENO: error: libcrypto not found!" >&5
66899
 
$as_echo "$as_me: error: libcrypto not found!" >&2;}
66900
 
   { (exit 1); exit 1; }; }
66901
 
    
66902
 
  
66903
 
fi
66904
 
 
66905
 
 
66906
 
    old_LIBS=$LIBS
66907
 
    LIBS="$LIBS -lcrypto"
66908
 
    
66909
 
  save_old_LDFLAGS=$LDFLAGS
66910
 
  ac_stuff="
66911
 
      -L$OPENSSL_LIBDIR
66912
 
    "
66913
 
  
66914
 
  save_ext_shared=$ext_shared
66915
 
  ext_shared=yes
66916
 
  
66917
 
  for ac_i in $ac_stuff; do
66918
 
    case $ac_i in
66919
 
    -pthread)
66920
 
      if test "$ext_shared" = "yes"; then
66921
 
        LDFLAGS="$LDFLAGS -pthread"
66922
 
      else
66923
 
        
66924
 
  
66925
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
66926
 
  
66927
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
66928
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66929
 
    eval "EXTRA_LDFLAGS$unique=set"
66930
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
66931
 
  fi
66932
 
 
66933
 
      fi
66934
 
    ;;
66935
 
    -l*)
66936
 
      ac_ii=`echo $ac_i|cut -c 3-`
66937
 
      
66938
 
  
66939
 
  case $ac_ii in
66940
 
  c|c_r|pthread*) ;;
66941
 
  *) 
66942
 
    if test "$ext_shared" = "yes"; then
66943
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
66944
 
    else
66945
 
      
66946
 
  
66947
 
  case $ac_ii in
66948
 
  c|c_r|pthread*) ;;
66949
 
  *) 
66950
 
      LIBS="$LIBS -l$ac_ii" 
66951
 
   ;;
66952
 
  esac
66953
 
 
66954
 
 
66955
 
    fi
66956
 
   ;;
66957
 
  esac
66958
 
 
66959
 
 
66960
 
    ;;
66961
 
    -L*)
66962
 
      ac_ii=`echo $ac_i|cut -c 3-`
66963
 
      
66964
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
66965
 
    
66966
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66967
 
    ai_p=$ac_ii
66968
 
  else
66969
 
    
66970
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66971
 
    
66972
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66973
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66974
 
  fi
66975
 
 
66976
 
    
66977
 
      if test "$ext_shared" = "yes"; then
66978
 
        LDFLAGS="-L$ai_p $LDFLAGS"
66979
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
66980
 
      else
66981
 
        
66982
 
  
66983
 
  
66984
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66985
 
  
66986
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66987
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
66988
 
    eval "LIBPATH$unique=set"
66989
 
    
66990
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66991
 
    LDFLAGS="$LDFLAGS -L$ai_p"
66992
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
66993
 
  
66994
 
  fi
66995
 
 
66996
 
 
66997
 
      fi
66998
 
    
66999
 
  fi
67000
 
 
67001
 
    ;;
67002
 
    esac
67003
 
  done
67004
 
 
67005
 
  { $as_echo "$as_me:$LINENO: checking for SSL_CTX_set_ssl_version in -lssl" >&5
67006
 
$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
67007
 
if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then
67008
 
  $as_echo_n "(cached) " >&6
67009
 
else
67010
 
  ac_check_lib_save_LIBS=$LIBS
67011
 
LIBS="-lssl  $LIBS"
67012
 
cat >conftest.$ac_ext <<_ACEOF
67013
 
/* confdefs.h.  */
67014
 
_ACEOF
67015
 
cat confdefs.h >>conftest.$ac_ext
67016
 
cat >>conftest.$ac_ext <<_ACEOF
67017
 
/* end confdefs.h.  */
67018
 
 
67019
 
/* Override any GCC internal prototype to avoid an error.
67020
 
   Use char because int might match the return type of a GCC
67021
 
   builtin and then its argument prototype would still apply.  */
67022
 
#ifdef __cplusplus
67023
 
extern "C"
67024
 
#endif
67025
 
char SSL_CTX_set_ssl_version ();
67026
 
int
67027
 
main ()
67028
 
{
67029
 
return SSL_CTX_set_ssl_version ();
67030
 
  ;
67031
 
  return 0;
67032
 
}
67033
 
_ACEOF
67034
 
rm -f conftest.$ac_objext conftest$ac_exeext
67035
 
if { (ac_try="$ac_link"
67036
 
case "(($ac_try" in
67037
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67038
 
  *) ac_try_echo=$ac_try;;
67039
 
esac
67040
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67041
 
$as_echo "$ac_try_echo") >&5
67042
 
  (eval "$ac_link") 2>conftest.er1
67043
 
  ac_status=$?
67044
 
  grep -v '^ *+' conftest.er1 >conftest.err
67045
 
  rm -f conftest.er1
67046
 
  cat conftest.err >&5
67047
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67048
 
  (exit $ac_status); } && {
67049
 
         test -z "$ac_c_werror_flag" ||
67050
 
         test ! -s conftest.err
67051
 
       } && test -s conftest$ac_exeext && {
67052
 
         test "$cross_compiling" = yes ||
67053
 
         $as_test_x conftest$ac_exeext
67054
 
       }; then
67055
 
  ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
67056
 
else
67057
 
  $as_echo "$as_me: failed program was:" >&5
67058
 
sed 's/^/| /' conftest.$ac_ext >&5
67059
 
 
67060
 
        ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
67061
 
fi
67062
 
 
67063
 
rm -rf conftest.dSYM
67064
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67065
 
      conftest$ac_exeext conftest.$ac_ext
67066
 
LIBS=$ac_check_lib_save_LIBS
67067
 
fi
67068
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
67069
 
$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
67070
 
if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = x""yes; then
67071
 
  
67072
 
    LDFLAGS=$save_old_LDFLAGS
67073
 
    ext_shared=$save_ext_shared
67074
 
    
67075
 
      found_openssl=yes
67076
 
    
67077
 
  
67078
 
else
67079
 
  
67080
 
    LDFLAGS=$save_old_LDFLAGS
67081
 
    ext_shared=$save_ext_shared
67082
 
    unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
67083
 
    
67084
 
      { { $as_echo "$as_me:$LINENO: error: libssl not found!" >&5
67085
 
$as_echo "$as_me: error: libssl not found!" >&2;}
67086
 
   { (exit 1); exit 1; }; }
67087
 
    
67088
 
  
67089
 
fi
67090
 
 
67091
 
    LIBS=$old_LIBS
67092
 
    
67093
 
  
67094
 
  case ssl in
67095
 
  c|c_r|pthread*) ;;
67096
 
  *) 
67097
 
    if test "$ext_shared" = "yes"; then
67098
 
        IMAP_SHARED_LIBADD="-lssl $IMAP_SHARED_LIBADD" 
67099
 
    else
67100
 
      
67101
 
  
67102
 
  case ssl in
67103
 
  c|c_r|pthread*) ;;
67104
 
  *) 
67105
 
      LIBS="-lssl $LIBS" 
67106
 
   ;;
67107
 
  esac
67108
 
 
67109
 
 
67110
 
    fi
67111
 
   ;;
67112
 
  esac
67113
 
 
67114
 
 
67115
 
    
67116
 
  
67117
 
  case crypto in
67118
 
  c|c_r|pthread*) ;;
67119
 
  *) 
67120
 
    if test "$ext_shared" = "yes"; then
67121
 
        IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD" 
67122
 
    else
67123
 
      
67124
 
  
67125
 
  case crypto in
67126
 
  c|c_r|pthread*) ;;
67127
 
  *) 
67128
 
      LIBS="-lcrypto $LIBS" 
67129
 
   ;;
67130
 
  esac
67131
 
 
67132
 
 
67133
 
    fi
67134
 
   ;;
67135
 
  esac
67136
 
 
67137
 
 
67138
 
 
67139
 
    
67140
 
  if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
67141
 
    
67142
 
  if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
67143
 
    ai_p=$OPENSSL_LIBDIR
67144
 
  else
67145
 
    
67146
 
    ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
67147
 
    
67148
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67149
 
    ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
67150
 
  fi
67151
 
 
67152
 
    
67153
 
      if test "$ext_shared" = "yes"; then
67154
 
        IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
67155
 
        test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
67156
 
      else
67157
 
        
67158
 
  
67159
 
  
67160
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67161
 
  
67162
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67163
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
67164
 
    eval "LIBPATH$unique=set"
67165
 
    
67166
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67167
 
    LDFLAGS="$LDFLAGS -L$ai_p"
67168
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
67169
 
  
67170
 
  fi
67171
 
 
67172
 
 
67173
 
      fi
67174
 
    
67175
 
  fi
67176
 
 
67177
 
  fi
67178
 
 
67179
 
  if test "$found_openssl" = "yes"; then
67180
 
    OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
67181
 
  
67182
 
 
67183
 
 
67184
 
      
67185
 
cat >>confdefs.h <<\_ACEOF
67186
 
@%:@define HAVE_IMAP_SSL 1
67187
 
_ACEOF
67188
 
 
67189
 
    
67190
 
else 
67191
 
      { { $as_echo "$as_me:$LINENO: error: OpenSSL libraries not found. 
67192
 
      
67193
 
      Check the path given to --with-openssl-dir and output in config.log)
67194
 
      " >&5
67195
 
$as_echo "$as_me: error: OpenSSL libraries not found. 
67196
 
      
67197
 
      Check the path given to --with-openssl-dir and output in config.log)
67198
 
      " >&2;}
67199
 
   { (exit 1); exit 1; }; }
67200
 
    
67201
 
  fi
67202
 
 
67203
 
  elif test -f "$IMAP_INC_DIR/linkage.c"; then
67204
 
    cat >conftest.$ac_ext <<_ACEOF
67205
 
/* confdefs.h.  */
67206
 
_ACEOF
67207
 
cat confdefs.h >>conftest.$ac_ext
67208
 
cat >>conftest.$ac_ext <<_ACEOF
67209
 
/* end confdefs.h.  */
67210
 
#include <$IMAP_INC_DIR/linkage.c>
67211
 
 
67212
 
_ACEOF
67213
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67214
 
  $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then
67215
 
  
67216
 
      { { $as_echo "$as_me:$LINENO: error: This c-client library is built with SSL support. 
67217
 
 
67218
 
      Add --with-imap-ssl to your configure line. Check config.log for details.
67219
 
      " >&5
67220
 
$as_echo "$as_me: error: This c-client library is built with SSL support. 
67221
 
 
67222
 
      Add --with-imap-ssl to your configure line. Check config.log for details.
67223
 
      " >&2;}
67224
 
   { (exit 1); exit 1; }; }
67225
 
    
67226
 
fi
67227
 
rm -f conftest*
67228
 
 
67229
 
  fi
67230
 
 
67231
 
 
67232
 
        TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD"
67233
 
 
67234
 
        
67235
 
  
67236
 
  old_LIBS=$LIBS
67237
 
  LIBS="$TST_LIBS $LIBS"
67238
 
  if test "$cross_compiling" = yes; then
67239
 
  
67240
 
    LIBS=$old_LIBS
67241
 
  
67242
 
else
67243
 
  cat >conftest.$ac_ext <<_ACEOF
67244
 
/* confdefs.h.  */
67245
 
_ACEOF
67246
 
cat confdefs.h >>conftest.$ac_ext
67247
 
cat >>conftest.$ac_ext <<_ACEOF
67248
 
/* end confdefs.h.  */
67249
 
 
67250
 
    
67251
 
#if defined(__GNUC__) && __GNUC__ >= 4
67252
 
# define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
67253
 
#else
67254
 
# define PHP_IMAP_EXPORT
67255
 
#endif
67256
 
 
67257
 
    PHP_IMAP_EXPORT void mm_log(void){}
67258
 
    PHP_IMAP_EXPORT void mm_dlog(void){}
67259
 
    PHP_IMAP_EXPORT void mm_flags(void){}
67260
 
    PHP_IMAP_EXPORT void mm_fatal(void){}
67261
 
    PHP_IMAP_EXPORT void mm_critical(void){}
67262
 
    PHP_IMAP_EXPORT void mm_nocritical(void){}
67263
 
    PHP_IMAP_EXPORT void mm_notify(void){}
67264
 
    PHP_IMAP_EXPORT void mm_login(void){}
67265
 
    PHP_IMAP_EXPORT void mm_diskerror(void){}
67266
 
    PHP_IMAP_EXPORT void mm_status(void){}
67267
 
    PHP_IMAP_EXPORT void mm_lsub(void){}
67268
 
    PHP_IMAP_EXPORT void mm_list(void){}
67269
 
    PHP_IMAP_EXPORT void mm_exists(void){}
67270
 
    PHP_IMAP_EXPORT void mm_searched(void){}
67271
 
    PHP_IMAP_EXPORT void mm_expunged(void){}
67272
 
  
67273
 
    char auth_gssapi_valid();
67274
 
    int main() {
67275
 
      auth_gssapi_valid();
67276
 
      return 0;
67277
 
    }
67278
 
  
67279
 
_ACEOF
67280
 
rm -f conftest$ac_exeext
67281
 
if { (ac_try="$ac_link"
67282
 
case "(($ac_try" in
67283
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67284
 
  *) ac_try_echo=$ac_try;;
67285
 
esac
67286
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67287
 
$as_echo "$ac_try_echo") >&5
67288
 
  (eval "$ac_link") 2>&5
67289
 
  ac_status=$?
67290
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67291
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
67292
 
  { (case "(($ac_try" in
67293
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67294
 
  *) ac_try_echo=$ac_try;;
67295
 
esac
67296
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67297
 
$as_echo "$ac_try_echo") >&5
67298
 
  (eval "$ac_try") 2>&5
67299
 
  ac_status=$?
67300
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67301
 
  (exit $ac_status); }; }; then
67302
 
  
67303
 
    LIBS=$old_LIBS
67304
 
    
67305
 
      
67306
 
cat >>confdefs.h <<\_ACEOF
67307
 
@%:@define HAVE_IMAP_AUTH_GSS 1
67308
 
_ACEOF
67309
 
 
67310
 
    
67311
 
  
67312
 
else
67313
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
67314
 
$as_echo "$as_me: failed program was:" >&5
67315
 
sed 's/^/| /' conftest.$ac_ext >&5
67316
 
 
67317
 
( exit $ac_status )
67318
 
 
67319
 
    LIBS=$old_LIBS
67320
 
    
67321
 
  
67322
 
fi
67323
 
rm -rf conftest.dSYM
67324
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
67325
 
fi
67326
 
 
67327
 
 
67328
 
 
67329
 
 
67330
 
 
67331
 
        
67332
 
  
67333
 
  old_LIBS=$LIBS
67334
 
  LIBS="$TST_LIBS $LIBS"
67335
 
  if test "$cross_compiling" = yes; then
67336
 
  
67337
 
    LIBS=$old_LIBS
67338
 
  
67339
 
else
67340
 
  cat >conftest.$ac_ext <<_ACEOF
67341
 
/* confdefs.h.  */
67342
 
_ACEOF
67343
 
cat confdefs.h >>conftest.$ac_ext
67344
 
cat >>conftest.$ac_ext <<_ACEOF
67345
 
/* end confdefs.h.  */
67346
 
 
67347
 
    
67348
 
#if defined(__GNUC__) && __GNUC__ >= 4
67349
 
# define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
67350
 
#else
67351
 
# define PHP_IMAP_EXPORT
67352
 
#endif
67353
 
 
67354
 
    PHP_IMAP_EXPORT void mm_log(void){}
67355
 
    PHP_IMAP_EXPORT void mm_dlog(void){}
67356
 
    PHP_IMAP_EXPORT void mm_flags(void){}
67357
 
    PHP_IMAP_EXPORT void mm_fatal(void){}
67358
 
    PHP_IMAP_EXPORT void mm_critical(void){}
67359
 
    PHP_IMAP_EXPORT void mm_nocritical(void){}
67360
 
    PHP_IMAP_EXPORT void mm_notify(void){}
67361
 
    PHP_IMAP_EXPORT void mm_login(void){}
67362
 
    PHP_IMAP_EXPORT void mm_diskerror(void){}
67363
 
    PHP_IMAP_EXPORT void mm_status(void){}
67364
 
    PHP_IMAP_EXPORT void mm_lsub(void){}
67365
 
    PHP_IMAP_EXPORT void mm_list(void){}
67366
 
    PHP_IMAP_EXPORT void mm_exists(void){}
67367
 
    PHP_IMAP_EXPORT void mm_searched(void){}
67368
 
    PHP_IMAP_EXPORT void mm_expunged(void){}
67369
 
  
67370
 
    char utf8_to_mutf7();
67371
 
    int main() {
67372
 
      utf8_to_mutf7();
67373
 
      return 0;
67374
 
    }
67375
 
  
67376
 
_ACEOF
67377
 
rm -f conftest$ac_exeext
67378
 
if { (ac_try="$ac_link"
67379
 
case "(($ac_try" in
67380
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67381
 
  *) ac_try_echo=$ac_try;;
67382
 
esac
67383
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67384
 
$as_echo "$ac_try_echo") >&5
67385
 
  (eval "$ac_link") 2>&5
67386
 
  ac_status=$?
67387
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67388
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
67389
 
  { (case "(($ac_try" in
67390
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67391
 
  *) ac_try_echo=$ac_try;;
67392
 
esac
67393
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67394
 
$as_echo "$ac_try_echo") >&5
67395
 
  (eval "$ac_try") 2>&5
67396
 
  ac_status=$?
67397
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67398
 
  (exit $ac_status); }; }; then
67399
 
  
67400
 
    LIBS=$old_LIBS
67401
 
    
67402
 
      
67403
 
cat >>confdefs.h <<\_ACEOF
67404
 
@%:@define HAVE_IMAP_MUTF7 1
67405
 
_ACEOF
67406
 
 
67407
 
    
67408
 
  
67409
 
else
67410
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
67411
 
$as_echo "$as_me: failed program was:" >&5
67412
 
sed 's/^/| /' conftest.$ac_ext >&5
67413
 
 
67414
 
( exit $ac_status )
67415
 
 
67416
 
    LIBS=$old_LIBS
67417
 
    
67418
 
  
67419
 
fi
67420
 
rm -rf conftest.dSYM
67421
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
67422
 
fi
67423
 
 
67424
 
 
67425
 
 
67426
 
 
67427
 
 
67428
 
    { $as_echo "$as_me:$LINENO: checking whether rfc822_output_address_list function present" >&5
67429
 
$as_echo_n "checking whether rfc822_output_address_list function present... " >&6; }
67430
 
    
67431
 
  old_LIBS=$LIBS
67432
 
  LIBS="
67433
 
      $TST_LIBS
67434
 
     $LIBS"
67435
 
  if test "$cross_compiling" = yes; then
67436
 
  
67437
 
    LIBS=$old_LIBS
67438
 
  
67439
 
else
67440
 
  cat >conftest.$ac_ext <<_ACEOF
67441
 
/* confdefs.h.  */
67442
 
_ACEOF
67443
 
cat confdefs.h >>conftest.$ac_ext
67444
 
cat >>conftest.$ac_ext <<_ACEOF
67445
 
/* end confdefs.h.  */
67446
 
 
67447
 
    
67448
 
#if defined(__GNUC__) && __GNUC__ >= 4
67449
 
# define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
67450
 
#else
67451
 
# define PHP_IMAP_EXPORT
67452
 
#endif
67453
 
 
67454
 
      PHP_IMAP_EXPORT void mm_log(void){}
67455
 
      PHP_IMAP_EXPORT void mm_dlog(void){}
67456
 
      PHP_IMAP_EXPORT void mm_flags(void){}
67457
 
      PHP_IMAP_EXPORT void mm_fatal(void){}
67458
 
      PHP_IMAP_EXPORT void mm_critical(void){}
67459
 
      PHP_IMAP_EXPORT void mm_nocritical(void){}
67460
 
      PHP_IMAP_EXPORT void mm_notify(void){}
67461
 
      PHP_IMAP_EXPORT void mm_login(void){}
67462
 
      PHP_IMAP_EXPORT void mm_diskerror(void){}
67463
 
      PHP_IMAP_EXPORT void mm_status(void){}
67464
 
      PHP_IMAP_EXPORT void mm_lsub(void){}
67465
 
      PHP_IMAP_EXPORT void mm_list(void){}
67466
 
      PHP_IMAP_EXPORT void mm_exists(void){}
67467
 
      PHP_IMAP_EXPORT void mm_searched(void){}
67468
 
      PHP_IMAP_EXPORT void mm_expunged(void){}
67469
 
      void rfc822_output_address_list(void);
67470
 
      void (*f)(void);
67471
 
      char foobar () {f = rfc822_output_address_list;}
67472
 
    
67473
 
    char foobar();
67474
 
    int main() {
67475
 
      foobar();
67476
 
      return 0;
67477
 
    }
67478
 
  
67479
 
_ACEOF
67480
 
rm -f conftest$ac_exeext
67481
 
if { (ac_try="$ac_link"
67482
 
case "(($ac_try" in
67483
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67484
 
  *) ac_try_echo=$ac_try;;
67485
 
esac
67486
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67487
 
$as_echo "$ac_try_echo") >&5
67488
 
  (eval "$ac_link") 2>&5
67489
 
  ac_status=$?
67490
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67491
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
67492
 
  { (case "(($ac_try" in
67493
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67494
 
  *) ac_try_echo=$ac_try;;
67495
 
esac
67496
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67497
 
$as_echo "$ac_try_echo") >&5
67498
 
  (eval "$ac_try") 2>&5
67499
 
  ac_status=$?
67500
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67501
 
  (exit $ac_status); }; }; then
67502
 
  
67503
 
    LIBS=$old_LIBS
67504
 
    
67505
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
67506
 
$as_echo "yes" >&6; }
67507
 
      
67508
 
cat >>confdefs.h <<\_ACEOF
67509
 
@%:@define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1
67510
 
_ACEOF
67511
 
 
67512
 
    
67513
 
  
67514
 
else
67515
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
67516
 
$as_echo "$as_me: failed program was:" >&5
67517
 
sed 's/^/| /' conftest.$ac_ext >&5
67518
 
 
67519
 
( exit $ac_status )
67520
 
 
67521
 
    LIBS=$old_LIBS
67522
 
    
67523
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
67524
 
$as_echo "no" >&6; }
67525
 
        
67526
 
  
67527
 
fi
67528
 
rm -rf conftest.dSYM
67529
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
67530
 
fi
67531
 
 
67532
 
 
67533
 
 
67534
 
 
67535
 
    { $as_echo "$as_me:$LINENO: checking whether build with IMAP works" >&5
67536
 
$as_echo_n "checking whether build with IMAP works... " >&6; }
67537
 
    
67538
 
  
67539
 
  old_LIBS=$LIBS
67540
 
  LIBS="$TST_LIBS $LIBS"
67541
 
  if test "$cross_compiling" = yes; then
67542
 
  
67543
 
    LIBS=$old_LIBS
67544
 
  
67545
 
else
67546
 
  cat >conftest.$ac_ext <<_ACEOF
67547
 
/* confdefs.h.  */
67548
 
_ACEOF
67549
 
cat confdefs.h >>conftest.$ac_ext
67550
 
cat >>conftest.$ac_ext <<_ACEOF
67551
 
/* end confdefs.h.  */
67552
 
 
67553
 
    
67554
 
#if defined(__GNUC__) && __GNUC__ >= 4
67555
 
# define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
67556
 
#else
67557
 
# define PHP_IMAP_EXPORT
67558
 
#endif
67559
 
 
67560
 
    PHP_IMAP_EXPORT void mm_log(void){}
67561
 
    PHP_IMAP_EXPORT void mm_dlog(void){}
67562
 
    PHP_IMAP_EXPORT void mm_flags(void){}
67563
 
    PHP_IMAP_EXPORT void mm_fatal(void){}
67564
 
    PHP_IMAP_EXPORT void mm_critical(void){}
67565
 
    PHP_IMAP_EXPORT void mm_nocritical(void){}
67566
 
    PHP_IMAP_EXPORT void mm_notify(void){}
67567
 
    PHP_IMAP_EXPORT void mm_login(void){}
67568
 
    PHP_IMAP_EXPORT void mm_diskerror(void){}
67569
 
    PHP_IMAP_EXPORT void mm_status(void){}
67570
 
    PHP_IMAP_EXPORT void mm_lsub(void){}
67571
 
    PHP_IMAP_EXPORT void mm_list(void){}
67572
 
    PHP_IMAP_EXPORT void mm_exists(void){}
67573
 
    PHP_IMAP_EXPORT void mm_searched(void){}
67574
 
    PHP_IMAP_EXPORT void mm_expunged(void){}
67575
 
  
67576
 
    char mail_newbody();
67577
 
    int main() {
67578
 
      mail_newbody();
67579
 
      return 0;
67580
 
    }
67581
 
  
67582
 
_ACEOF
67583
 
rm -f conftest$ac_exeext
67584
 
if { (ac_try="$ac_link"
67585
 
case "(($ac_try" in
67586
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67587
 
  *) ac_try_echo=$ac_try;;
67588
 
esac
67589
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67590
 
$as_echo "$ac_try_echo") >&5
67591
 
  (eval "$ac_link") 2>&5
67592
 
  ac_status=$?
67593
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67594
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
67595
 
  { (case "(($ac_try" in
67596
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67597
 
  *) ac_try_echo=$ac_try;;
67598
 
esac
67599
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67600
 
$as_echo "$ac_try_echo") >&5
67601
 
  (eval "$ac_try") 2>&5
67602
 
  ac_status=$?
67603
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67604
 
  (exit $ac_status); }; }; then
67605
 
  
67606
 
    LIBS=$old_LIBS
67607
 
    
67608
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
67609
 
$as_echo "yes" >&6; }
67610
 
    
67611
 
  
67612
 
else
67613
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
67614
 
$as_echo "$as_me: failed program was:" >&5
67615
 
sed 's/^/| /' conftest.$ac_ext >&5
67616
 
 
67617
 
( exit $ac_status )
67618
 
 
67619
 
    LIBS=$old_LIBS
67620
 
    
67621
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
67622
 
$as_echo "no" >&6; }
67623
 
      { { $as_echo "$as_me:$LINENO: error: build test failed. Please check the config.log for details." >&5
67624
 
$as_echo "$as_me: error: build test failed. Please check the config.log for details." >&2;}
67625
 
   { (exit 1); exit 1; }; }
67626
 
    
67627
 
  
67628
 
fi
67629
 
rm -rf conftest.dSYM
67630
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
67631
 
fi
67632
 
 
67633
 
 
67634
 
 
67635
 
 
67636
 
fi
67637
 
 
67638
 
 
67639
 
 
67640
 
php_with_interbase=no
67641
 
 
67642
 
{ $as_echo "$as_me:$LINENO: checking for InterBase support" >&5
67643
 
$as_echo_n "checking for InterBase support... " >&6; }
67644
 
 
67645
 
@%:@ Check whether --with-interbase was given.
67646
 
if test "${with_interbase+set}" = set; then
67647
 
  withval=$with_interbase; PHP_INTERBASE=$withval
67648
 
else
67649
 
  
67650
 
  PHP_INTERBASE=no
67651
 
  test "$PHP_ENABLE_ALL" && PHP_INTERBASE=$PHP_ENABLE_ALL
67652
 
 
67653
 
fi
67654
 
 
67655
 
 
67656
 
 
67657
 
ext_output="yes, shared"
67658
 
ext_shared=yes
67659
 
case $PHP_INTERBASE in
67660
 
shared,*)
67661
 
  PHP_INTERBASE=`echo "$PHP_INTERBASE"|$SED 's/^shared,//'`
67662
 
  ;;
67663
 
shared)
67664
 
  PHP_INTERBASE=yes
67665
 
  ;;
67666
 
no)
67667
 
  ext_output=no
67668
 
  ext_shared=no
67669
 
  ;;
67670
 
*)
67671
 
  ext_output=yes
67672
 
  ext_shared=no
67673
 
  ;;
67674
 
esac
67675
 
 
67676
 
 
67677
 
 
67678
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
67679
 
$as_echo "$ext_output" >&6; }
67680
 
 
67681
 
 
67682
 
 
67683
 
 
67684
 
if test "$PHP_INTERBASE" != "no"; then
67685
 
  if test "$PHP_INTERBASE" = "yes"; then
67686
 
    IBASE_INCDIR=/usr/interbase/include
67687
 
    IBASE_LIBDIR=/usr/interbase/lib
67688
 
  else
67689
 
    IBASE_INCDIR=$PHP_INTERBASE/include
67690
 
    IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR
67691
 
  fi
67692
 
 
67693
 
  
67694
 
  save_old_LDFLAGS=$LDFLAGS
67695
 
  ac_stuff="
67696
 
    -L$IBASE_LIBDIR
67697
 
  "
67698
 
  
67699
 
  save_ext_shared=$ext_shared
67700
 
  ext_shared=yes
67701
 
  
67702
 
  for ac_i in $ac_stuff; do
67703
 
    case $ac_i in
67704
 
    -pthread)
67705
 
      if test "$ext_shared" = "yes"; then
67706
 
        LDFLAGS="$LDFLAGS -pthread"
67707
 
      else
67708
 
        
67709
 
  
67710
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
67711
 
  
67712
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
67713
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
67714
 
    eval "EXTRA_LDFLAGS$unique=set"
67715
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
67716
 
  fi
67717
 
 
67718
 
      fi
67719
 
    ;;
67720
 
    -l*)
67721
 
      ac_ii=`echo $ac_i|cut -c 3-`
67722
 
      
67723
 
  
67724
 
  case $ac_ii in
67725
 
  c|c_r|pthread*) ;;
67726
 
  *) 
67727
 
    if test "$ext_shared" = "yes"; then
67728
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
67729
 
    else
67730
 
      
67731
 
  
67732
 
  case $ac_ii in
67733
 
  c|c_r|pthread*) ;;
67734
 
  *) 
67735
 
      LIBS="$LIBS -l$ac_ii" 
67736
 
   ;;
67737
 
  esac
67738
 
 
67739
 
 
67740
 
    fi
67741
 
   ;;
67742
 
  esac
67743
 
 
67744
 
 
67745
 
    ;;
67746
 
    -L*)
67747
 
      ac_ii=`echo $ac_i|cut -c 3-`
67748
 
      
67749
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
67750
 
    
67751
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
67752
 
    ai_p=$ac_ii
67753
 
  else
67754
 
    
67755
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
67756
 
    
67757
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67758
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
67759
 
  fi
67760
 
 
67761
 
    
67762
 
      if test "$ext_shared" = "yes"; then
67763
 
        LDFLAGS="-L$ai_p $LDFLAGS"
67764
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
67765
 
      else
67766
 
        
67767
 
  
67768
 
  
67769
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67770
 
  
67771
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67772
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
67773
 
    eval "LIBPATH$unique=set"
67774
 
    
67775
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67776
 
    LDFLAGS="$LDFLAGS -L$ai_p"
67777
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
67778
 
  
67779
 
  fi
67780
 
 
67781
 
 
67782
 
      fi
67783
 
    
67784
 
  fi
67785
 
 
67786
 
    ;;
67787
 
    esac
67788
 
  done
67789
 
 
67790
 
  { $as_echo "$as_me:$LINENO: checking for isc_detach_database in -lfbclient" >&5
67791
 
$as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
67792
 
if test "${ac_cv_lib_fbclient_isc_detach_database+set}" = set; then
67793
 
  $as_echo_n "(cached) " >&6
67794
 
else
67795
 
  ac_check_lib_save_LIBS=$LIBS
67796
 
LIBS="-lfbclient  $LIBS"
67797
 
cat >conftest.$ac_ext <<_ACEOF
67798
 
/* confdefs.h.  */
67799
 
_ACEOF
67800
 
cat confdefs.h >>conftest.$ac_ext
67801
 
cat >>conftest.$ac_ext <<_ACEOF
67802
 
/* end confdefs.h.  */
67803
 
 
67804
 
/* Override any GCC internal prototype to avoid an error.
67805
 
   Use char because int might match the return type of a GCC
67806
 
   builtin and then its argument prototype would still apply.  */
67807
 
#ifdef __cplusplus
67808
 
extern "C"
67809
 
#endif
67810
 
char isc_detach_database ();
67811
 
int
67812
 
main ()
67813
 
{
67814
 
return isc_detach_database ();
67815
 
  ;
67816
 
  return 0;
67817
 
}
67818
 
_ACEOF
67819
 
rm -f conftest.$ac_objext conftest$ac_exeext
67820
 
if { (ac_try="$ac_link"
67821
 
case "(($ac_try" in
67822
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67823
 
  *) ac_try_echo=$ac_try;;
67824
 
esac
67825
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67826
 
$as_echo "$ac_try_echo") >&5
67827
 
  (eval "$ac_link") 2>conftest.er1
67828
 
  ac_status=$?
67829
 
  grep -v '^ *+' conftest.er1 >conftest.err
67830
 
  rm -f conftest.er1
67831
 
  cat conftest.err >&5
67832
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67833
 
  (exit $ac_status); } && {
67834
 
         test -z "$ac_c_werror_flag" ||
67835
 
         test ! -s conftest.err
67836
 
       } && test -s conftest$ac_exeext && {
67837
 
         test "$cross_compiling" = yes ||
67838
 
         $as_test_x conftest$ac_exeext
67839
 
       }; then
67840
 
  ac_cv_lib_fbclient_isc_detach_database=yes
67841
 
else
67842
 
  $as_echo "$as_me: failed program was:" >&5
67843
 
sed 's/^/| /' conftest.$ac_ext >&5
67844
 
 
67845
 
        ac_cv_lib_fbclient_isc_detach_database=no
67846
 
fi
67847
 
 
67848
 
rm -rf conftest.dSYM
67849
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67850
 
      conftest$ac_exeext conftest.$ac_ext
67851
 
LIBS=$ac_check_lib_save_LIBS
67852
 
fi
67853
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
67854
 
$as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
67855
 
if test "x$ac_cv_lib_fbclient_isc_detach_database" = x""yes; then
67856
 
  
67857
 
    LDFLAGS=$save_old_LDFLAGS
67858
 
    ext_shared=$save_ext_shared
67859
 
    
67860
 
    IBASE_LIBNAME=fbclient
67861
 
  
67862
 
  
67863
 
else
67864
 
  
67865
 
    LDFLAGS=$save_old_LDFLAGS
67866
 
    ext_shared=$save_ext_shared
67867
 
    unset ac_cv_lib_fbclient_isc_detach_database
67868
 
    
67869
 
    
67870
 
  save_old_LDFLAGS=$LDFLAGS
67871
 
  ac_stuff="
67872
 
      -L$IBASE_LIBDIR
67873
 
    "
67874
 
  
67875
 
  save_ext_shared=$ext_shared
67876
 
  ext_shared=yes
67877
 
  
67878
 
  for ac_i in $ac_stuff; do
67879
 
    case $ac_i in
67880
 
    -pthread)
67881
 
      if test "$ext_shared" = "yes"; then
67882
 
        LDFLAGS="$LDFLAGS -pthread"
67883
 
      else
67884
 
        
67885
 
  
67886
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
67887
 
  
67888
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
67889
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
67890
 
    eval "EXTRA_LDFLAGS$unique=set"
67891
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
67892
 
  fi
67893
 
 
67894
 
      fi
67895
 
    ;;
67896
 
    -l*)
67897
 
      ac_ii=`echo $ac_i|cut -c 3-`
67898
 
      
67899
 
  
67900
 
  case $ac_ii in
67901
 
  c|c_r|pthread*) ;;
67902
 
  *) 
67903
 
    if test "$ext_shared" = "yes"; then
67904
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
67905
 
    else
67906
 
      
67907
 
  
67908
 
  case $ac_ii in
67909
 
  c|c_r|pthread*) ;;
67910
 
  *) 
67911
 
      LIBS="$LIBS -l$ac_ii" 
67912
 
   ;;
67913
 
  esac
67914
 
 
67915
 
 
67916
 
    fi
67917
 
   ;;
67918
 
  esac
67919
 
 
67920
 
 
67921
 
    ;;
67922
 
    -L*)
67923
 
      ac_ii=`echo $ac_i|cut -c 3-`
67924
 
      
67925
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
67926
 
    
67927
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
67928
 
    ai_p=$ac_ii
67929
 
  else
67930
 
    
67931
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
67932
 
    
67933
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67934
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
67935
 
  fi
67936
 
 
67937
 
    
67938
 
      if test "$ext_shared" = "yes"; then
67939
 
        LDFLAGS="-L$ai_p $LDFLAGS"
67940
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
67941
 
      else
67942
 
        
67943
 
  
67944
 
  
67945
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67946
 
  
67947
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67948
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
67949
 
    eval "LIBPATH$unique=set"
67950
 
    
67951
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67952
 
    LDFLAGS="$LDFLAGS -L$ai_p"
67953
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
67954
 
  
67955
 
  fi
67956
 
 
67957
 
 
67958
 
      fi
67959
 
    
67960
 
  fi
67961
 
 
67962
 
    ;;
67963
 
    esac
67964
 
  done
67965
 
 
67966
 
  { $as_echo "$as_me:$LINENO: checking for isc_detach_database in -lgds" >&5
67967
 
$as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
67968
 
if test "${ac_cv_lib_gds_isc_detach_database+set}" = set; then
67969
 
  $as_echo_n "(cached) " >&6
67970
 
else
67971
 
  ac_check_lib_save_LIBS=$LIBS
67972
 
LIBS="-lgds  $LIBS"
67973
 
cat >conftest.$ac_ext <<_ACEOF
67974
 
/* confdefs.h.  */
67975
 
_ACEOF
67976
 
cat confdefs.h >>conftest.$ac_ext
67977
 
cat >>conftest.$ac_ext <<_ACEOF
67978
 
/* end confdefs.h.  */
67979
 
 
67980
 
/* Override any GCC internal prototype to avoid an error.
67981
 
   Use char because int might match the return type of a GCC
67982
 
   builtin and then its argument prototype would still apply.  */
67983
 
#ifdef __cplusplus
67984
 
extern "C"
67985
 
#endif
67986
 
char isc_detach_database ();
67987
 
int
67988
 
main ()
67989
 
{
67990
 
return isc_detach_database ();
67991
 
  ;
67992
 
  return 0;
67993
 
}
67994
 
_ACEOF
67995
 
rm -f conftest.$ac_objext conftest$ac_exeext
67996
 
if { (ac_try="$ac_link"
67997
 
case "(($ac_try" in
67998
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67999
 
  *) ac_try_echo=$ac_try;;
68000
 
esac
68001
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68002
 
$as_echo "$ac_try_echo") >&5
68003
 
  (eval "$ac_link") 2>conftest.er1
68004
 
  ac_status=$?
68005
 
  grep -v '^ *+' conftest.er1 >conftest.err
68006
 
  rm -f conftest.er1
68007
 
  cat conftest.err >&5
68008
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68009
 
  (exit $ac_status); } && {
68010
 
         test -z "$ac_c_werror_flag" ||
68011
 
         test ! -s conftest.err
68012
 
       } && test -s conftest$ac_exeext && {
68013
 
         test "$cross_compiling" = yes ||
68014
 
         $as_test_x conftest$ac_exeext
68015
 
       }; then
68016
 
  ac_cv_lib_gds_isc_detach_database=yes
68017
 
else
68018
 
  $as_echo "$as_me: failed program was:" >&5
68019
 
sed 's/^/| /' conftest.$ac_ext >&5
68020
 
 
68021
 
        ac_cv_lib_gds_isc_detach_database=no
68022
 
fi
68023
 
 
68024
 
rm -rf conftest.dSYM
68025
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68026
 
      conftest$ac_exeext conftest.$ac_ext
68027
 
LIBS=$ac_check_lib_save_LIBS
68028
 
fi
68029
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gds_isc_detach_database" >&5
68030
 
$as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
68031
 
if test "x$ac_cv_lib_gds_isc_detach_database" = x""yes; then
68032
 
  
68033
 
    LDFLAGS=$save_old_LDFLAGS
68034
 
    ext_shared=$save_ext_shared
68035
 
    
68036
 
      IBASE_LIBNAME=gds
68037
 
    
68038
 
  
68039
 
else
68040
 
  
68041
 
    LDFLAGS=$save_old_LDFLAGS
68042
 
    ext_shared=$save_ext_shared
68043
 
    unset ac_cv_lib_gds_isc_detach_database
68044
 
    
68045
 
      
68046
 
  save_old_LDFLAGS=$LDFLAGS
68047
 
  ac_stuff="
68048
 
        -L$IBASE_LIBDIR
68049
 
      "
68050
 
  
68051
 
  save_ext_shared=$ext_shared
68052
 
  ext_shared=yes
68053
 
  
68054
 
  for ac_i in $ac_stuff; do
68055
 
    case $ac_i in
68056
 
    -pthread)
68057
 
      if test "$ext_shared" = "yes"; then
68058
 
        LDFLAGS="$LDFLAGS -pthread"
68059
 
      else
68060
 
        
68061
 
  
68062
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
68063
 
  
68064
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
68065
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
68066
 
    eval "EXTRA_LDFLAGS$unique=set"
68067
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
68068
 
  fi
68069
 
 
68070
 
      fi
68071
 
    ;;
68072
 
    -l*)
68073
 
      ac_ii=`echo $ac_i|cut -c 3-`
68074
 
      
68075
 
  
68076
 
  case $ac_ii in
68077
 
  c|c_r|pthread*) ;;
68078
 
  *) 
68079
 
    if test "$ext_shared" = "yes"; then
68080
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
68081
 
    else
68082
 
      
68083
 
  
68084
 
  case $ac_ii in
68085
 
  c|c_r|pthread*) ;;
68086
 
  *) 
68087
 
      LIBS="$LIBS -l$ac_ii" 
68088
 
   ;;
68089
 
  esac
68090
 
 
68091
 
 
68092
 
    fi
68093
 
   ;;
68094
 
  esac
68095
 
 
68096
 
 
68097
 
    ;;
68098
 
    -L*)
68099
 
      ac_ii=`echo $ac_i|cut -c 3-`
68100
 
      
68101
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
68102
 
    
68103
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
68104
 
    ai_p=$ac_ii
68105
 
  else
68106
 
    
68107
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
68108
 
    
68109
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68110
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
68111
 
  fi
68112
 
 
68113
 
    
68114
 
      if test "$ext_shared" = "yes"; then
68115
 
        LDFLAGS="-L$ai_p $LDFLAGS"
68116
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
68117
 
      else
68118
 
        
68119
 
  
68120
 
  
68121
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68122
 
  
68123
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68124
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
68125
 
    eval "LIBPATH$unique=set"
68126
 
    
68127
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68128
 
    LDFLAGS="$LDFLAGS -L$ai_p"
68129
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
68130
 
  
68131
 
  fi
68132
 
 
68133
 
 
68134
 
      fi
68135
 
    
68136
 
  fi
68137
 
 
68138
 
    ;;
68139
 
    esac
68140
 
  done
68141
 
 
68142
 
  { $as_echo "$as_me:$LINENO: checking for isc_detach_database in -lib_util" >&5
68143
 
$as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
68144
 
if test "${ac_cv_lib_ib_util_isc_detach_database+set}" = set; then
68145
 
  $as_echo_n "(cached) " >&6
68146
 
else
68147
 
  ac_check_lib_save_LIBS=$LIBS
68148
 
LIBS="-lib_util  $LIBS"
68149
 
cat >conftest.$ac_ext <<_ACEOF
68150
 
/* confdefs.h.  */
68151
 
_ACEOF
68152
 
cat confdefs.h >>conftest.$ac_ext
68153
 
cat >>conftest.$ac_ext <<_ACEOF
68154
 
/* end confdefs.h.  */
68155
 
 
68156
 
/* Override any GCC internal prototype to avoid an error.
68157
 
   Use char because int might match the return type of a GCC
68158
 
   builtin and then its argument prototype would still apply.  */
68159
 
#ifdef __cplusplus
68160
 
extern "C"
68161
 
#endif
68162
 
char isc_detach_database ();
68163
 
int
68164
 
main ()
68165
 
{
68166
 
return isc_detach_database ();
68167
 
  ;
68168
 
  return 0;
68169
 
}
68170
 
_ACEOF
68171
 
rm -f conftest.$ac_objext conftest$ac_exeext
68172
 
if { (ac_try="$ac_link"
68173
 
case "(($ac_try" in
68174
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68175
 
  *) ac_try_echo=$ac_try;;
68176
 
esac
68177
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68178
 
$as_echo "$ac_try_echo") >&5
68179
 
  (eval "$ac_link") 2>conftest.er1
68180
 
  ac_status=$?
68181
 
  grep -v '^ *+' conftest.er1 >conftest.err
68182
 
  rm -f conftest.er1
68183
 
  cat conftest.err >&5
68184
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68185
 
  (exit $ac_status); } && {
68186
 
         test -z "$ac_c_werror_flag" ||
68187
 
         test ! -s conftest.err
68188
 
       } && test -s conftest$ac_exeext && {
68189
 
         test "$cross_compiling" = yes ||
68190
 
         $as_test_x conftest$ac_exeext
68191
 
       }; then
68192
 
  ac_cv_lib_ib_util_isc_detach_database=yes
68193
 
else
68194
 
  $as_echo "$as_me: failed program was:" >&5
68195
 
sed 's/^/| /' conftest.$ac_ext >&5
68196
 
 
68197
 
        ac_cv_lib_ib_util_isc_detach_database=no
68198
 
fi
68199
 
 
68200
 
rm -rf conftest.dSYM
68201
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68202
 
      conftest$ac_exeext conftest.$ac_ext
68203
 
LIBS=$ac_check_lib_save_LIBS
68204
 
fi
68205
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
68206
 
$as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
68207
 
if test "x$ac_cv_lib_ib_util_isc_detach_database" = x""yes; then
68208
 
  
68209
 
    LDFLAGS=$save_old_LDFLAGS
68210
 
    ext_shared=$save_ext_shared
68211
 
    
68212
 
        IBASE_LIBNAME=ib_util
68213
 
      
68214
 
  
68215
 
else
68216
 
  
68217
 
    LDFLAGS=$save_old_LDFLAGS
68218
 
    ext_shared=$save_ext_shared
68219
 
    unset ac_cv_lib_ib_util_isc_detach_database
68220
 
    
68221
 
        { { $as_echo "$as_me:$LINENO: error: libgds, libib_util or libfbclient not found! Check config.log for more information." >&5
68222
 
$as_echo "$as_me: error: libgds, libib_util or libfbclient not found! Check config.log for more information." >&2;}
68223
 
   { (exit 1); exit 1; }; }
68224
 
      
68225
 
  
68226
 
fi
68227
 
 
68228
 
    
68229
 
  
68230
 
fi
68231
 
 
68232
 
  
68233
 
  
68234
 
fi
68235
 
 
68236
 
  
68237
 
  
68238
 
 
68239
 
  if test "$ext_shared" = "yes"; then
68240
 
    INTERBASE_SHARED_LIBADD="-l$IBASE_LIBNAME $INTERBASE_SHARED_LIBADD"
68241
 
    if test -n "$IBASE_LIBDIR"; then
68242
 
      
68243
 
  if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
68244
 
    
68245
 
  if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
68246
 
    ai_p=$IBASE_LIBDIR
68247
 
  else
68248
 
    
68249
 
    ep_dir="`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
68250
 
    
68251
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68252
 
    ai_p="$ep_realdir/`basename \"$IBASE_LIBDIR\"`"
68253
 
  fi
68254
 
 
68255
 
    
68256
 
      if test "$ext_shared" = "yes"; then
68257
 
        INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD"
68258
 
        test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD"
68259
 
      else
68260
 
        
68261
 
  
68262
 
  
68263
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68264
 
  
68265
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68266
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
68267
 
    eval "LIBPATH$unique=set"
68268
 
    
68269
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68270
 
    LDFLAGS="$LDFLAGS -L$ai_p"
68271
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
68272
 
  
68273
 
  fi
68274
 
 
68275
 
 
68276
 
      fi
68277
 
    
68278
 
  fi
68279
 
 
68280
 
    fi
68281
 
  else
68282
 
    
68283
 
 
68284
 
  if test -n "$IBASE_LIBDIR"; then
68285
 
    
68286
 
  if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
68287
 
    
68288
 
  if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
68289
 
    ai_p=$IBASE_LIBDIR
68290
 
  else
68291
 
    
68292
 
    ep_dir="`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
68293
 
    
68294
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68295
 
    ai_p="$ep_realdir/`basename \"$IBASE_LIBDIR\"`"
68296
 
  fi
68297
 
 
68298
 
    
68299
 
      
68300
 
  
68301
 
  
68302
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68303
 
  
68304
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68305
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
68306
 
    eval "LIBPATH$unique=set"
68307
 
    
68308
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68309
 
    LDFLAGS="$LDFLAGS -L$ai_p"
68310
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
68311
 
  
68312
 
  fi
68313
 
 
68314
 
 
68315
 
    
68316
 
  fi
68317
 
 
68318
 
  fi
68319
 
  
68320
 
  
68321
 
  case $IBASE_LIBNAME in
68322
 
  c|c_r|pthread*) ;;
68323
 
  *) 
68324
 
      LIBS="-l$IBASE_LIBNAME $LIBS" 
68325
 
   ;;
68326
 
  esac
68327
 
 
68328
 
 
68329
 
 
68330
 
 
68331
 
  fi
68332
 
 
68333
 
 
68334
 
  
68335
 
  if test "$IBASE_INCDIR" != "/usr/include"; then
68336
 
    
68337
 
  if test -z "$IBASE_INCDIR" || echo "$IBASE_INCDIR" | grep '^/' >/dev/null ; then
68338
 
    ai_p=$IBASE_INCDIR
68339
 
  else
68340
 
    
68341
 
    ep_dir="`echo $IBASE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
68342
 
    
68343
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68344
 
    ai_p="$ep_realdir/`basename \"$IBASE_INCDIR\"`"
68345
 
  fi
68346
 
 
68347
 
    
68348
 
  
68349
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68350
 
  
68351
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
68352
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
68353
 
    eval "INCLUDEPATH$unique=set"
68354
 
    
68355
 
      if test ""; then
68356
 
        INCLUDES="-I$ai_p $INCLUDES"
68357
 
      else
68358
 
        INCLUDES="$INCLUDES -I$ai_p"
68359
 
      fi
68360
 
    
68361
 
  fi
68362
 
 
68363
 
  fi
68364
 
 
68365
 
  
68366
 
cat >>confdefs.h <<\_ACEOF
68367
 
@%:@define HAVE_IBASE 1
68368
 
_ACEOF
68369
 
 
68370
 
  
68371
 
  ext_builddir=ext/interbase
68372
 
  ext_srcdir=$abs_srcdir/ext/interbase
68373
 
 
68374
 
  ac_extra=
68375
 
 
68376
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
68377
 
    PHP_INTERBASE_SHARED=no
68378
 
    
68379
 
  
68380
 
  case ext/interbase in
68381
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68382
 
  /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68383
 
  *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68384
 
  esac
68385
 
  
68386
 
  
68387
 
 
68388
 
  b_c_pre=$php_c_pre
68389
 
  b_cxx_pre=$php_cxx_pre
68390
 
  b_c_meta=$php_c_meta
68391
 
  b_cxx_meta=$php_cxx_meta
68392
 
  b_c_post=$php_c_post
68393
 
  b_cxx_post=$php_cxx_post
68394
 
  b_lo=$php_lo
68395
 
 
68396
 
 
68397
 
  old_IFS=$IFS
68398
 
  for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
68399
 
  
68400
 
      IFS=.
68401
 
      set $ac_src
68402
 
      ac_obj=$1
68403
 
      IFS=$old_IFS
68404
 
      
68405
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
68406
 
 
68407
 
      case $ac_src in
68408
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68409
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68410
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68411
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68412
 
      esac
68413
 
 
68414
 
    cat >>Makefile.objects<<EOF
68415
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68416
 
        $ac_comp
68417
 
EOF
68418
 
  done
68419
 
 
68420
 
 
68421
 
    EXT_STATIC="$EXT_STATIC interbase"
68422
 
    if test "$ext_shared" != "nocli"; then
68423
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
68424
 
    fi
68425
 
  else
68426
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
68427
 
      PHP_INTERBASE_SHARED=yes
68428
 
      
68429
 
  case ext/interbase in
68430
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68431
 
  /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68432
 
  *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68433
 
  esac
68434
 
  
68435
 
  
68436
 
 
68437
 
  b_c_pre=$shared_c_pre
68438
 
  b_cxx_pre=$shared_cxx_pre
68439
 
  b_c_meta=$shared_c_meta
68440
 
  b_cxx_meta=$shared_cxx_meta
68441
 
  b_c_post=$shared_c_post
68442
 
  b_cxx_post=$shared_cxx_post
68443
 
  b_lo=$shared_lo
68444
 
 
68445
 
 
68446
 
  old_IFS=$IFS
68447
 
  for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
68448
 
  
68449
 
      IFS=.
68450
 
      set $ac_src
68451
 
      ac_obj=$1
68452
 
      IFS=$old_IFS
68453
 
      
68454
 
      shared_objects_interbase="$shared_objects_interbase $ac_bdir$ac_obj.lo"
68455
 
 
68456
 
      case $ac_src in
68457
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68458
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68459
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68460
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68461
 
      esac
68462
 
 
68463
 
    cat >>Makefile.objects<<EOF
68464
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68465
 
        $ac_comp
68466
 
EOF
68467
 
  done
68468
 
 
68469
 
      case $host_alias in
68470
 
        *netware*)
68471
 
          
68472
 
  install_modules="install-modules"
68473
 
 
68474
 
  case $host_alias in
68475
 
    *aix*)
68476
 
      suffix=so
68477
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpinterbase.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(PHPINTERBASE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpinterbase.so '$ext_builddir'/phpinterbase.so'
68478
 
      ;;
68479
 
    *netware*)
68480
 
      suffix=nlm
68481
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) -L$(top_builddir)/netware -lphp5lib $(INTERBASE_SHARED_LIBADD)'
68482
 
      ;;
68483
 
    *)
68484
 
      suffix=la
68485
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(PHPINTERBASE_SHARED_LIBADD)'
68486
 
      ;;
68487
 
  esac
68488
 
 
68489
 
  if test "x" = "xyes"; then
68490
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpinterbase.$suffix"
68491
 
  else
68492
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpinterbase.$suffix"
68493
 
  fi
68494
 
  
68495
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
68496
 
 
68497
 
  cat >>Makefile.objects<<EOF
68498
 
\$(phplibdir)/phpinterbase.$suffix: $ext_builddir/phpinterbase.$suffix
68499
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpinterbase.$suffix \$(phplibdir)
68500
 
 
68501
 
$ext_builddir/phpinterbase.$suffix: \$(shared_objects_interbase) \$(PHPINTERBASE_SHARED_DEPENDENCIES)
68502
 
        $link_cmd
68503
 
 
68504
 
EOF
68505
 
 
68506
 
          ;;
68507
 
        *)
68508
 
          
68509
 
  install_modules="install-modules"
68510
 
 
68511
 
  case $host_alias in
68512
 
    *aix*)
68513
 
      suffix=so
68514
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/interbase.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(INTERBASE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/interbase.so '$ext_builddir'/interbase.so'
68515
 
      ;;
68516
 
    *netware*)
68517
 
      suffix=nlm
68518
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) -L$(top_builddir)/netware -lphp5lib $(ERBASE_SHARED_LIBADD)'
68519
 
      ;;
68520
 
    *)
68521
 
      suffix=la
68522
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_interbase) $(INTERBASE_SHARED_LIBADD)'
68523
 
      ;;
68524
 
  esac
68525
 
 
68526
 
  if test "x" = "xyes"; then
68527
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/interbase.$suffix"
68528
 
  else
68529
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/interbase.$suffix"
68530
 
  fi
68531
 
  
68532
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
68533
 
 
68534
 
  cat >>Makefile.objects<<EOF
68535
 
\$(phplibdir)/interbase.$suffix: $ext_builddir/interbase.$suffix
68536
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/interbase.$suffix \$(phplibdir)
68537
 
 
68538
 
$ext_builddir/interbase.$suffix: \$(shared_objects_interbase) \$(INTERBASE_SHARED_DEPENDENCIES)
68539
 
        $link_cmd
68540
 
 
68541
 
EOF
68542
 
 
68543
 
          ;;
68544
 
      esac
68545
 
      
68546
 
cat >>confdefs.h <<_ACEOF
68547
 
@%:@define COMPILE_DL_INTERBASE 1
68548
 
_ACEOF
68549
 
 
68550
 
    fi
68551
 
  fi
68552
 
 
68553
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
68554
 
    PHP_INTERBASE_SHARED=no
68555
 
    case "$PHP_SAPI" in
68556
 
      cgi|embed)
68557
 
        
68558
 
  
68559
 
  case ext/interbase in
68560
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68561
 
  /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68562
 
  *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68563
 
  esac
68564
 
  
68565
 
  
68566
 
 
68567
 
  b_c_pre=$php_c_pre
68568
 
  b_cxx_pre=$php_cxx_pre
68569
 
  b_c_meta=$php_c_meta
68570
 
  b_cxx_meta=$php_cxx_meta
68571
 
  b_c_post=$php_c_post
68572
 
  b_cxx_post=$php_cxx_post
68573
 
  b_lo=$php_lo
68574
 
 
68575
 
 
68576
 
  old_IFS=$IFS
68577
 
  for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
68578
 
  
68579
 
      IFS=.
68580
 
      set $ac_src
68581
 
      ac_obj=$1
68582
 
      IFS=$old_IFS
68583
 
      
68584
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
68585
 
 
68586
 
      case $ac_src in
68587
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68588
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68589
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68590
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68591
 
      esac
68592
 
 
68593
 
    cat >>Makefile.objects<<EOF
68594
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68595
 
        $ac_comp
68596
 
EOF
68597
 
  done
68598
 
 
68599
 
 
68600
 
        EXT_STATIC="$EXT_STATIC interbase"
68601
 
        ;;
68602
 
      *)
68603
 
        
68604
 
  
68605
 
  case ext/interbase in
68606
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68607
 
  /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68608
 
  *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68609
 
  esac
68610
 
  
68611
 
  
68612
 
 
68613
 
  b_c_pre=$php_c_pre
68614
 
  b_cxx_pre=$php_cxx_pre
68615
 
  b_c_meta=$php_c_meta
68616
 
  b_cxx_meta=$php_cxx_meta
68617
 
  b_c_post=$php_c_post
68618
 
  b_cxx_post=$php_cxx_post
68619
 
  b_lo=$php_lo
68620
 
 
68621
 
 
68622
 
  old_IFS=$IFS
68623
 
  for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
68624
 
  
68625
 
      IFS=.
68626
 
      set $ac_src
68627
 
      ac_obj=$1
68628
 
      IFS=$old_IFS
68629
 
      
68630
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
68631
 
 
68632
 
      case $ac_src in
68633
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68634
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68635
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68636
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68637
 
      esac
68638
 
 
68639
 
    cat >>Makefile.objects<<EOF
68640
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68641
 
        $ac_comp
68642
 
EOF
68643
 
  done
68644
 
 
68645
 
 
68646
 
        ;;
68647
 
    esac
68648
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
68649
 
  fi
68650
 
  
68651
 
  
68652
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
68653
 
  
68654
 
 
68655
 
 
68656
 
  if test "$ext_builddir" = "."; then
68657
 
    PHP_PECL_EXTENSION=interbase
68658
 
    
68659
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
68660
 
 
68661
 
  fi
68662
 
 
68663
 
  
68664
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST INTERBASE_SHARED_LIBADD"
68665
 
 
68666
 
fi
68667
 
 
68668
 
 
68669
 
 
68670
 
php_enable_intl=no
68671
 
 
68672
 
{ $as_echo "$as_me:$LINENO: checking whether to enable internationalization support" >&5
68673
 
$as_echo_n "checking whether to enable internationalization support... " >&6; }
68674
 
@%:@ Check whether --enable-intl was given.
68675
 
if test "${enable_intl+set}" = set; then
68676
 
  enableval=$enable_intl; PHP_INTL=$enableval
68677
 
else
68678
 
  
68679
 
  PHP_INTL=no
68680
 
  test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL
68681
 
 
68682
 
fi
68683
 
 
68684
 
 
68685
 
 
68686
 
ext_output="yes, shared"
68687
 
ext_shared=yes
68688
 
case $PHP_INTL in
68689
 
shared,*)
68690
 
  PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'`
68691
 
  ;;
68692
 
shared)
68693
 
  PHP_INTL=yes
68694
 
  ;;
68695
 
no)
68696
 
  ext_output=no
68697
 
  ext_shared=no
68698
 
  ;;
68699
 
*)
68700
 
  ext_output=yes
68701
 
  ext_shared=no
68702
 
  ;;
68703
 
esac
68704
 
 
68705
 
 
68706
 
 
68707
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
68708
 
$as_echo "$ext_output" >&6; }
68709
 
 
68710
 
 
68711
 
 
68712
 
 
68713
 
if test "$PHP_INTL" != "no"; then
68714
 
  
68715
 
  
68716
 
php_with_icu_dir=DEFAULT
68717
 
 
68718
 
 
68719
 
 
68720
 
@%:@ Check whether --with-icu-dir was given.
68721
 
if test "${with_icu_dir+set}" = set; then
68722
 
  withval=$with_icu_dir; PHP_ICU_DIR=$withval
68723
 
else
68724
 
  
68725
 
  PHP_ICU_DIR=DEFAULT
68726
 
  
68727
 
 
68728
 
fi
68729
 
 
68730
 
 
68731
 
ext_output=$PHP_ICU_DIR
68732
 
 
68733
 
 
68734
 
 
68735
 
 
68736
 
 
68737
 
  if test "$PHP_ICU_DIR" = "no"; then
68738
 
    PHP_ICU_DIR=DEFAULT
68739
 
  fi
68740
 
 
68741
 
  if test "$PHP_ICU_DIR" = "DEFAULT"; then
68742
 
        # Extract the first word of "icu-config", so it can be a program name with args.
68743
 
set dummy icu-config; ac_word=$2
68744
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
68745
 
$as_echo_n "checking for $ac_word... " >&6; }
68746
 
if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
68747
 
  $as_echo_n "(cached) " >&6
68748
 
else
68749
 
  case $ICU_CONFIG in
68750
 
  [\\/]* | ?:[\\/]*)
68751
 
  ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
68752
 
  ;;
68753
 
  *)
68754
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68755
 
as_dummy="$PATH:/usr/local/bin"
68756
 
for as_dir in $as_dummy
68757
 
do
68758
 
  IFS=$as_save_IFS
68759
 
  test -z "$as_dir" && as_dir=.
68760
 
  for ac_exec_ext in '' $ac_executable_extensions; do
68761
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
68762
 
    ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
68763
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
68764
 
    break 2
68765
 
  fi
68766
 
done
68767
 
done
68768
 
IFS=$as_save_IFS
68769
 
 
68770
 
  test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no"
68771
 
  ;;
68772
 
esac
68773
 
fi
68774
 
ICU_CONFIG=$ac_cv_path_ICU_CONFIG
68775
 
if test -n "$ICU_CONFIG"; then
68776
 
  { $as_echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
68777
 
$as_echo "$ICU_CONFIG" >&6; }
68778
 
else
68779
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
68780
 
$as_echo "no" >&6; }
68781
 
fi
68782
 
 
68783
 
 
68784
 
  else
68785
 
    ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
68786
 
  fi
68787
 
 
68788
 
  { $as_echo "$as_me:$LINENO: checking for location of ICU headers and libraries" >&5
68789
 
$as_echo_n "checking for location of ICU headers and libraries... " >&6; }
68790
 
 
68791
 
    icu_install_prefix=`$ICU_CONFIG --prefix 2> /dev/null`
68792
 
  if test "$?" != "0" || test -z "$icu_install_prefix"; then
68793
 
    { $as_echo "$as_me:$LINENO: result: not found" >&5
68794
 
$as_echo "not found" >&6; }
68795
 
    { { $as_echo "$as_me:$LINENO: error: Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." >&5
68796
 
$as_echo "$as_me: error: Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." >&2;}
68797
 
   { (exit 1); exit 1; }; }
68798
 
  else
68799
 
    { $as_echo "$as_me:$LINENO: result: $icu_install_prefix" >&5
68800
 
$as_echo "$icu_install_prefix" >&6; }
68801
 
 
68802
 
        { $as_echo "$as_me:$LINENO: checking for ICU 3.4 or greater" >&5
68803
 
$as_echo_n "checking for ICU 3.4 or greater... " >&6; }
68804
 
    icu_version_full=`$ICU_CONFIG --version`
68805
 
    ac_IFS=$IFS
68806
 
    IFS="."
68807
 
    set $icu_version_full
68808
 
    IFS=$ac_IFS
68809
 
    icu_version=`expr $1 \* 1000 + $2`
68810
 
    { $as_echo "$as_me:$LINENO: result: found $icu_version_full" >&5
68811
 
$as_echo "found $icu_version_full" >&6; }
68812
 
 
68813
 
    if test "$icu_version" -lt "3004"; then
68814
 
      { { $as_echo "$as_me:$LINENO: error: ICU version 3.4 or later is required" >&5
68815
 
$as_echo "$as_me: error: ICU version 3.4 or later is required" >&2;}
68816
 
   { (exit 1); exit 1; }; }
68817
 
    fi
68818
 
 
68819
 
    ICU_VERSION=$icu_version
68820
 
    ICU_INCS=`$ICU_CONFIG --cppflags-searchpath`
68821
 
    ICU_LIBS=`$ICU_CONFIG --ldflags --ldflags-icuio`
68822
 
    
68823
 
  for ac_i in $ICU_INCS; do
68824
 
    case $ac_i in
68825
 
    -I*)
68826
 
      ac_ii=`echo $ac_i|cut -c 3-`
68827
 
      
68828
 
  if test "$ac_ii" != "/usr/include"; then
68829
 
    
68830
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
68831
 
    ai_p=$ac_ii
68832
 
  else
68833
 
    
68834
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
68835
 
    
68836
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68837
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
68838
 
  fi
68839
 
 
68840
 
    
68841
 
  
68842
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68843
 
  
68844
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
68845
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
68846
 
    eval "INCLUDEPATH$unique=set"
68847
 
    
68848
 
      if test ""; then
68849
 
        INCLUDES="-I$ai_p $INCLUDES"
68850
 
      else
68851
 
        INCLUDES="$INCLUDES -I$ai_p"
68852
 
      fi
68853
 
    
68854
 
  fi
68855
 
 
68856
 
  fi
68857
 
 
68858
 
    ;;
68859
 
    esac
68860
 
  done
68861
 
 
68862
 
    
68863
 
  for ac_i in $ICU_LIBS; do
68864
 
    case $ac_i in
68865
 
    -pthread)
68866
 
      if test "$ext_shared" = "yes"; then
68867
 
        INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread"
68868
 
      else
68869
 
        
68870
 
  
68871
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
68872
 
  
68873
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
68874
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
68875
 
    eval "EXTRA_LDFLAGS$unique=set"
68876
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
68877
 
  fi
68878
 
 
68879
 
      fi
68880
 
    ;;
68881
 
    -l*)
68882
 
      ac_ii=`echo $ac_i|cut -c 3-`
68883
 
      
68884
 
  
68885
 
  case $ac_ii in
68886
 
  c|c_r|pthread*) ;;
68887
 
  *) 
68888
 
    if test "$ext_shared" = "yes"; then
68889
 
        INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii" 
68890
 
    else
68891
 
      
68892
 
  
68893
 
  case $ac_ii in
68894
 
  c|c_r|pthread*) ;;
68895
 
  *) 
68896
 
      LIBS="$LIBS -l$ac_ii" 
68897
 
   ;;
68898
 
  esac
68899
 
 
68900
 
 
68901
 
    fi
68902
 
   ;;
68903
 
  esac
68904
 
 
68905
 
 
68906
 
    ;;
68907
 
    -L*)
68908
 
      ac_ii=`echo $ac_i|cut -c 3-`
68909
 
      
68910
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
68911
 
    
68912
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
68913
 
    ai_p=$ac_ii
68914
 
  else
68915
 
    
68916
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
68917
 
    
68918
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68919
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
68920
 
  fi
68921
 
 
68922
 
    
68923
 
      if test "$ext_shared" = "yes"; then
68924
 
        INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD"
68925
 
        test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD"
68926
 
      else
68927
 
        
68928
 
  
68929
 
  
68930
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68931
 
  
68932
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68933
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
68934
 
    eval "LIBPATH$unique=set"
68935
 
    
68936
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68937
 
    LDFLAGS="$LDFLAGS -L$ai_p"
68938
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
68939
 
  
68940
 
  fi
68941
 
 
68942
 
 
68943
 
      fi
68944
 
    
68945
 
  fi
68946
 
 
68947
 
    ;;
68948
 
    esac
68949
 
  done
68950
 
 
68951
 
  fi
68952
 
 
68953
 
  
68954
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD"
68955
 
 
68956
 
  
68957
 
  if test -z "$php_cxx_done"; then
68958
 
    ac_ext=cpp
68959
 
ac_cpp='$CXXCPP $CPPFLAGS'
68960
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
68961
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
68962
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
68963
 
if test -z "$CXX"; then
68964
 
  if test -n "$CCC"; then
68965
 
    CXX=$CCC
68966
 
  else
68967
 
    if test -n "$ac_tool_prefix"; then
68968
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
68969
 
  do
68970
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
68971
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
68972
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
68973
 
$as_echo_n "checking for $ac_word... " >&6; }
68974
 
if test "${ac_cv_prog_CXX+set}" = set; then
68975
 
  $as_echo_n "(cached) " >&6
68976
 
else
68977
 
  if test -n "$CXX"; then
68978
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
68979
 
else
68980
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68981
 
for as_dir in $PATH
68982
 
do
68983
 
  IFS=$as_save_IFS
68984
 
  test -z "$as_dir" && as_dir=.
68985
 
  for ac_exec_ext in '' $ac_executable_extensions; do
68986
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
68987
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
68988
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
68989
 
    break 2
68990
 
  fi
68991
 
done
68992
 
done
68993
 
IFS=$as_save_IFS
68994
 
 
68995
 
fi
68996
 
fi
68997
 
CXX=$ac_cv_prog_CXX
68998
 
if test -n "$CXX"; then
68999
 
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
69000
 
$as_echo "$CXX" >&6; }
69001
 
else
69002
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
69003
 
$as_echo "no" >&6; }
69004
 
fi
69005
 
 
69006
 
 
69007
 
    test -n "$CXX" && break
69008
 
  done
69009
 
fi
69010
 
if test -z "$CXX"; then
69011
 
  ac_ct_CXX=$CXX
69012
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
69013
 
do
69014
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
69015
 
set dummy $ac_prog; ac_word=$2
69016
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
69017
 
$as_echo_n "checking for $ac_word... " >&6; }
69018
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
69019
 
  $as_echo_n "(cached) " >&6
69020
 
else
69021
 
  if test -n "$ac_ct_CXX"; then
69022
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
69023
 
else
69024
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69025
 
for as_dir in $PATH
69026
 
do
69027
 
  IFS=$as_save_IFS
69028
 
  test -z "$as_dir" && as_dir=.
69029
 
  for ac_exec_ext in '' $ac_executable_extensions; do
69030
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
69031
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
69032
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
69033
 
    break 2
69034
 
  fi
69035
 
done
69036
 
done
69037
 
IFS=$as_save_IFS
69038
 
 
69039
 
fi
69040
 
fi
69041
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
69042
 
if test -n "$ac_ct_CXX"; then
69043
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
69044
 
$as_echo "$ac_ct_CXX" >&6; }
69045
 
else
69046
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
69047
 
$as_echo "no" >&6; }
69048
 
fi
69049
 
 
69050
 
 
69051
 
  test -n "$ac_ct_CXX" && break
69052
 
done
69053
 
 
69054
 
  if test "x$ac_ct_CXX" = x; then
69055
 
    CXX="g++"
69056
 
  else
69057
 
    case $cross_compiling:$ac_tool_warned in
69058
 
yes:)
69059
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
69060
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
69061
 
ac_tool_warned=yes ;;
69062
 
esac
69063
 
    CXX=$ac_ct_CXX
69064
 
  fi
69065
 
fi
69066
 
 
69067
 
  fi
69068
 
fi
69069
 
# Provide some information about the compiler.
69070
 
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
69071
 
set X $ac_compile
69072
 
ac_compiler=$2
69073
 
{ (ac_try="$ac_compiler --version >&5"
69074
 
case "(($ac_try" in
69075
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69076
 
  *) ac_try_echo=$ac_try;;
69077
 
esac
69078
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69079
 
$as_echo "$ac_try_echo") >&5
69080
 
  (eval "$ac_compiler --version >&5") 2>&5
69081
 
  ac_status=$?
69082
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69083
 
  (exit $ac_status); }
69084
 
{ (ac_try="$ac_compiler -v >&5"
69085
 
case "(($ac_try" in
69086
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69087
 
  *) ac_try_echo=$ac_try;;
69088
 
esac
69089
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69090
 
$as_echo "$ac_try_echo") >&5
69091
 
  (eval "$ac_compiler -v >&5") 2>&5
69092
 
  ac_status=$?
69093
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69094
 
  (exit $ac_status); }
69095
 
{ (ac_try="$ac_compiler -V >&5"
69096
 
case "(($ac_try" in
69097
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69098
 
  *) ac_try_echo=$ac_try;;
69099
 
esac
69100
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69101
 
$as_echo "$ac_try_echo") >&5
69102
 
  (eval "$ac_compiler -V >&5") 2>&5
69103
 
  ac_status=$?
69104
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69105
 
  (exit $ac_status); }
69106
 
 
69107
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
69108
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
69109
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
69110
 
  $as_echo_n "(cached) " >&6
69111
 
else
69112
 
  cat >conftest.$ac_ext <<_ACEOF
69113
 
/* confdefs.h.  */
69114
 
_ACEOF
69115
 
cat confdefs.h >>conftest.$ac_ext
69116
 
cat >>conftest.$ac_ext <<_ACEOF
69117
 
/* end confdefs.h.  */
69118
 
 
69119
 
int
69120
 
main ()
69121
 
{
69122
 
#ifndef __GNUC__
69123
 
       choke me
69124
 
#endif
69125
 
 
69126
 
  ;
69127
 
  return 0;
69128
 
}
69129
 
_ACEOF
69130
 
rm -f conftest.$ac_objext
69131
 
if { (ac_try="$ac_compile"
69132
 
case "(($ac_try" in
69133
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69134
 
  *) ac_try_echo=$ac_try;;
69135
 
esac
69136
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69137
 
$as_echo "$ac_try_echo") >&5
69138
 
  (eval "$ac_compile") 2>conftest.er1
69139
 
  ac_status=$?
69140
 
  grep -v '^ *+' conftest.er1 >conftest.err
69141
 
  rm -f conftest.er1
69142
 
  cat conftest.err >&5
69143
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69144
 
  (exit $ac_status); } && {
69145
 
         test -z "$ac_cxx_werror_flag" ||
69146
 
         test ! -s conftest.err
69147
 
       } && test -s conftest.$ac_objext; then
69148
 
  ac_compiler_gnu=yes
69149
 
else
69150
 
  $as_echo "$as_me: failed program was:" >&5
69151
 
sed 's/^/| /' conftest.$ac_ext >&5
69152
 
 
69153
 
        ac_compiler_gnu=no
69154
 
fi
69155
 
 
69156
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69157
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
69158
 
 
69159
 
fi
69160
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
69161
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
69162
 
if test $ac_compiler_gnu = yes; then
69163
 
  GXX=yes
69164
 
else
69165
 
  GXX=
69166
 
fi
69167
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
69168
 
ac_save_CXXFLAGS=$CXXFLAGS
69169
 
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
69170
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
69171
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
69172
 
  $as_echo_n "(cached) " >&6
69173
 
else
69174
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
69175
 
   ac_cxx_werror_flag=yes
69176
 
   ac_cv_prog_cxx_g=no
69177
 
   CXXFLAGS="-g"
69178
 
   cat >conftest.$ac_ext <<_ACEOF
69179
 
/* confdefs.h.  */
69180
 
_ACEOF
69181
 
cat confdefs.h >>conftest.$ac_ext
69182
 
cat >>conftest.$ac_ext <<_ACEOF
69183
 
/* end confdefs.h.  */
69184
 
 
69185
 
int
69186
 
main ()
69187
 
{
69188
 
 
69189
 
  ;
69190
 
  return 0;
69191
 
}
69192
 
_ACEOF
69193
 
rm -f conftest.$ac_objext
69194
 
if { (ac_try="$ac_compile"
69195
 
case "(($ac_try" in
69196
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69197
 
  *) ac_try_echo=$ac_try;;
69198
 
esac
69199
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69200
 
$as_echo "$ac_try_echo") >&5
69201
 
  (eval "$ac_compile") 2>conftest.er1
69202
 
  ac_status=$?
69203
 
  grep -v '^ *+' conftest.er1 >conftest.err
69204
 
  rm -f conftest.er1
69205
 
  cat conftest.err >&5
69206
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69207
 
  (exit $ac_status); } && {
69208
 
         test -z "$ac_cxx_werror_flag" ||
69209
 
         test ! -s conftest.err
69210
 
       } && test -s conftest.$ac_objext; then
69211
 
  ac_cv_prog_cxx_g=yes
69212
 
else
69213
 
  $as_echo "$as_me: failed program was:" >&5
69214
 
sed 's/^/| /' conftest.$ac_ext >&5
69215
 
 
69216
 
        CXXFLAGS=""
69217
 
      cat >conftest.$ac_ext <<_ACEOF
69218
 
/* confdefs.h.  */
69219
 
_ACEOF
69220
 
cat confdefs.h >>conftest.$ac_ext
69221
 
cat >>conftest.$ac_ext <<_ACEOF
69222
 
/* end confdefs.h.  */
69223
 
 
69224
 
int
69225
 
main ()
69226
 
{
69227
 
 
69228
 
  ;
69229
 
  return 0;
69230
 
}
69231
 
_ACEOF
69232
 
rm -f conftest.$ac_objext
69233
 
if { (ac_try="$ac_compile"
69234
 
case "(($ac_try" in
69235
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69236
 
  *) ac_try_echo=$ac_try;;
69237
 
esac
69238
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69239
 
$as_echo "$ac_try_echo") >&5
69240
 
  (eval "$ac_compile") 2>conftest.er1
69241
 
  ac_status=$?
69242
 
  grep -v '^ *+' conftest.er1 >conftest.err
69243
 
  rm -f conftest.er1
69244
 
  cat conftest.err >&5
69245
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69246
 
  (exit $ac_status); } && {
69247
 
         test -z "$ac_cxx_werror_flag" ||
69248
 
         test ! -s conftest.err
69249
 
       } && test -s conftest.$ac_objext; then
69250
 
  :
69251
 
else
69252
 
  $as_echo "$as_me: failed program was:" >&5
69253
 
sed 's/^/| /' conftest.$ac_ext >&5
69254
 
 
69255
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
69256
 
         CXXFLAGS="-g"
69257
 
         cat >conftest.$ac_ext <<_ACEOF
69258
 
/* confdefs.h.  */
69259
 
_ACEOF
69260
 
cat confdefs.h >>conftest.$ac_ext
69261
 
cat >>conftest.$ac_ext <<_ACEOF
69262
 
/* end confdefs.h.  */
69263
 
 
69264
 
int
69265
 
main ()
69266
 
{
69267
 
 
69268
 
  ;
69269
 
  return 0;
69270
 
}
69271
 
_ACEOF
69272
 
rm -f conftest.$ac_objext
69273
 
if { (ac_try="$ac_compile"
69274
 
case "(($ac_try" in
69275
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69276
 
  *) ac_try_echo=$ac_try;;
69277
 
esac
69278
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69279
 
$as_echo "$ac_try_echo") >&5
69280
 
  (eval "$ac_compile") 2>conftest.er1
69281
 
  ac_status=$?
69282
 
  grep -v '^ *+' conftest.er1 >conftest.err
69283
 
  rm -f conftest.er1
69284
 
  cat conftest.err >&5
69285
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69286
 
  (exit $ac_status); } && {
69287
 
         test -z "$ac_cxx_werror_flag" ||
69288
 
         test ! -s conftest.err
69289
 
       } && test -s conftest.$ac_objext; then
69290
 
  ac_cv_prog_cxx_g=yes
69291
 
else
69292
 
  $as_echo "$as_me: failed program was:" >&5
69293
 
sed 's/^/| /' conftest.$ac_ext >&5
69294
 
 
69295
 
        
69296
 
fi
69297
 
 
69298
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69299
 
fi
69300
 
 
69301
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69302
 
fi
69303
 
 
69304
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69305
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
69306
 
fi
69307
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
69308
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
69309
 
if test "$ac_test_CXXFLAGS" = set; then
69310
 
  CXXFLAGS=$ac_save_CXXFLAGS
69311
 
elif test $ac_cv_prog_cxx_g = yes; then
69312
 
  if test "$GXX" = yes; then
69313
 
    CXXFLAGS="-g -O2"
69314
 
  else
69315
 
    CXXFLAGS="-g"
69316
 
  fi
69317
 
else
69318
 
  if test "$GXX" = yes; then
69319
 
    CXXFLAGS="-O2"
69320
 
  else
69321
 
    CXXFLAGS=
69322
 
  fi
69323
 
fi
69324
 
ac_ext=c
69325
 
ac_cpp='$CPP $CPPFLAGS'
69326
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
69327
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
69328
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
69329
 
 
69330
 
    ac_ext=cpp
69331
 
ac_cpp='$CXXCPP $CPPFLAGS'
69332
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
69333
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
69334
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
69335
 
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
69336
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
69337
 
if test -z "$CXXCPP"; then
69338
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
69339
 
  $as_echo_n "(cached) " >&6
69340
 
else
69341
 
      # Double quotes because CXXCPP needs to be expanded
69342
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
69343
 
    do
69344
 
      ac_preproc_ok=false
69345
 
for ac_cxx_preproc_warn_flag in '' yes
69346
 
do
69347
 
  # Use a header file that comes with gcc, so configuring glibc
69348
 
  # with a fresh cross-compiler works.
69349
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69350
 
  # <limits.h> exists even on freestanding compilers.
69351
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
69352
 
  # not just through cpp. "Syntax error" is here to catch this case.
69353
 
  cat >conftest.$ac_ext <<_ACEOF
69354
 
/* confdefs.h.  */
69355
 
_ACEOF
69356
 
cat confdefs.h >>conftest.$ac_ext
69357
 
cat >>conftest.$ac_ext <<_ACEOF
69358
 
/* end confdefs.h.  */
69359
 
@%:@ifdef __STDC__
69360
 
@%:@ include <limits.h>
69361
 
@%:@else
69362
 
@%:@ include <assert.h>
69363
 
@%:@endif
69364
 
                     Syntax error
69365
 
_ACEOF
69366
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
69367
 
case "(($ac_try" in
69368
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69369
 
  *) ac_try_echo=$ac_try;;
69370
 
esac
69371
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69372
 
$as_echo "$ac_try_echo") >&5
69373
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
69374
 
  ac_status=$?
69375
 
  grep -v '^ *+' conftest.er1 >conftest.err
69376
 
  rm -f conftest.er1
69377
 
  cat conftest.err >&5
69378
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69379
 
  (exit $ac_status); } >/dev/null && {
69380
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
69381
 
         test ! -s conftest.err
69382
 
       }; then
69383
 
  :
69384
 
else
69385
 
  $as_echo "$as_me: failed program was:" >&5
69386
 
sed 's/^/| /' conftest.$ac_ext >&5
69387
 
 
69388
 
  # Broken: fails on valid input.
69389
 
continue
69390
 
fi
69391
 
 
69392
 
rm -f conftest.err conftest.$ac_ext
69393
 
 
69394
 
  # OK, works on sane cases.  Now check whether nonexistent headers
69395
 
  # can be detected and how.
69396
 
  cat >conftest.$ac_ext <<_ACEOF
69397
 
/* confdefs.h.  */
69398
 
_ACEOF
69399
 
cat confdefs.h >>conftest.$ac_ext
69400
 
cat >>conftest.$ac_ext <<_ACEOF
69401
 
/* end confdefs.h.  */
69402
 
@%:@include <ac_nonexistent.h>
69403
 
_ACEOF
69404
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
69405
 
case "(($ac_try" in
69406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69407
 
  *) ac_try_echo=$ac_try;;
69408
 
esac
69409
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69410
 
$as_echo "$ac_try_echo") >&5
69411
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
69412
 
  ac_status=$?
69413
 
  grep -v '^ *+' conftest.er1 >conftest.err
69414
 
  rm -f conftest.er1
69415
 
  cat conftest.err >&5
69416
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69417
 
  (exit $ac_status); } >/dev/null && {
69418
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
69419
 
         test ! -s conftest.err
69420
 
       }; then
69421
 
  # Broken: success on invalid input.
69422
 
continue
69423
 
else
69424
 
  $as_echo "$as_me: failed program was:" >&5
69425
 
sed 's/^/| /' conftest.$ac_ext >&5
69426
 
 
69427
 
  # Passes both tests.
69428
 
ac_preproc_ok=:
69429
 
break
69430
 
fi
69431
 
 
69432
 
rm -f conftest.err conftest.$ac_ext
69433
 
 
69434
 
done
69435
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
69436
 
rm -f conftest.err conftest.$ac_ext
69437
 
if $ac_preproc_ok; then
69438
 
  break
69439
 
fi
69440
 
 
69441
 
    done
69442
 
    ac_cv_prog_CXXCPP=$CXXCPP
69443
 
  
69444
 
fi
69445
 
  CXXCPP=$ac_cv_prog_CXXCPP
69446
 
else
69447
 
  ac_cv_prog_CXXCPP=$CXXCPP
69448
 
fi
69449
 
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
69450
 
$as_echo "$CXXCPP" >&6; }
69451
 
ac_preproc_ok=false
69452
 
for ac_cxx_preproc_warn_flag in '' yes
69453
 
do
69454
 
  # Use a header file that comes with gcc, so configuring glibc
69455
 
  # with a fresh cross-compiler works.
69456
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69457
 
  # <limits.h> exists even on freestanding compilers.
69458
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
69459
 
  # not just through cpp. "Syntax error" is here to catch this case.
69460
 
  cat >conftest.$ac_ext <<_ACEOF
69461
 
/* confdefs.h.  */
69462
 
_ACEOF
69463
 
cat confdefs.h >>conftest.$ac_ext
69464
 
cat >>conftest.$ac_ext <<_ACEOF
69465
 
/* end confdefs.h.  */
69466
 
@%:@ifdef __STDC__
69467
 
@%:@ include <limits.h>
69468
 
@%:@else
69469
 
@%:@ include <assert.h>
69470
 
@%:@endif
69471
 
                     Syntax error
69472
 
_ACEOF
69473
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
69474
 
case "(($ac_try" in
69475
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69476
 
  *) ac_try_echo=$ac_try;;
69477
 
esac
69478
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69479
 
$as_echo "$ac_try_echo") >&5
69480
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
69481
 
  ac_status=$?
69482
 
  grep -v '^ *+' conftest.er1 >conftest.err
69483
 
  rm -f conftest.er1
69484
 
  cat conftest.err >&5
69485
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69486
 
  (exit $ac_status); } >/dev/null && {
69487
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
69488
 
         test ! -s conftest.err
69489
 
       }; then
69490
 
  :
69491
 
else
69492
 
  $as_echo "$as_me: failed program was:" >&5
69493
 
sed 's/^/| /' conftest.$ac_ext >&5
69494
 
 
69495
 
  # Broken: fails on valid input.
69496
 
continue
69497
 
fi
69498
 
 
69499
 
rm -f conftest.err conftest.$ac_ext
69500
 
 
69501
 
  # OK, works on sane cases.  Now check whether nonexistent headers
69502
 
  # can be detected and how.
69503
 
  cat >conftest.$ac_ext <<_ACEOF
69504
 
/* confdefs.h.  */
69505
 
_ACEOF
69506
 
cat confdefs.h >>conftest.$ac_ext
69507
 
cat >>conftest.$ac_ext <<_ACEOF
69508
 
/* end confdefs.h.  */
69509
 
@%:@include <ac_nonexistent.h>
69510
 
_ACEOF
69511
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
69512
 
case "(($ac_try" in
69513
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69514
 
  *) ac_try_echo=$ac_try;;
69515
 
esac
69516
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69517
 
$as_echo "$ac_try_echo") >&5
69518
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
69519
 
  ac_status=$?
69520
 
  grep -v '^ *+' conftest.er1 >conftest.err
69521
 
  rm -f conftest.er1
69522
 
  cat conftest.err >&5
69523
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69524
 
  (exit $ac_status); } >/dev/null && {
69525
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
69526
 
         test ! -s conftest.err
69527
 
       }; then
69528
 
  # Broken: success on invalid input.
69529
 
continue
69530
 
else
69531
 
  $as_echo "$as_me: failed program was:" >&5
69532
 
sed 's/^/| /' conftest.$ac_ext >&5
69533
 
 
69534
 
  # Passes both tests.
69535
 
ac_preproc_ok=:
69536
 
break
69537
 
fi
69538
 
 
69539
 
rm -f conftest.err conftest.$ac_ext
69540
 
 
69541
 
done
69542
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
69543
 
rm -f conftest.err conftest.$ac_ext
69544
 
if $ac_preproc_ok; then
69545
 
  :
69546
 
else
69547
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
69548
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
69549
 
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
69550
 
See \`config.log' for more details." >&5
69551
 
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
69552
 
See \`config.log' for more details." >&2;}
69553
 
   { (exit 1); exit 1; }; }; }
69554
 
fi
69555
 
 
69556
 
ac_ext=c
69557
 
ac_cpp='$CPP $CPPFLAGS'
69558
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
69559
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
69560
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
69561
 
 
69562
 
    php_cxx_done=yes
69563
 
  fi
69564
 
 
69565
 
 
69566
 
  
69567
 
  ext_builddir=ext/intl
69568
 
  ext_srcdir=$abs_srcdir/ext/intl
69569
 
 
69570
 
  ac_extra=`echo "$ICU_INCS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
69571
 
 
69572
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
69573
 
    PHP_INTL_SHARED=no
69574
 
    
69575
 
  
69576
 
  case ext/intl in
69577
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69578
 
  /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69579
 
  *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69580
 
  esac
69581
 
  
69582
 
  
69583
 
 
69584
 
  b_c_pre=$php_c_pre
69585
 
  b_cxx_pre=$php_cxx_pre
69586
 
  b_c_meta=$php_c_meta
69587
 
  b_cxx_meta=$php_cxx_meta
69588
 
  b_c_post=$php_c_post
69589
 
  b_cxx_post=$php_cxx_post
69590
 
  b_lo=$php_lo
69591
 
 
69592
 
 
69593
 
  old_IFS=$IFS
69594
 
  for ac_src in php_intl.c \
69595
 
    intl_error.c \
69596
 
    intl_convert.c \
69597
 
    collator/collator.c \
69598
 
    collator/collator_class.c \
69599
 
    collator/collator_sort.c \
69600
 
    collator/collator_convert.c \
69601
 
    collator/collator_locale.c \
69602
 
    collator/collator_compare.c \
69603
 
    collator/collator_attr.c \
69604
 
    collator/collator_create.c \
69605
 
    collator/collator_is_numeric.c \
69606
 
    collator/collator_error.c \
69607
 
    common/common_error.c \
69608
 
    formatter/formatter.c \
69609
 
    formatter/formatter_main.c \
69610
 
    formatter/formatter_class.c \
69611
 
    formatter/formatter_attr.c \
69612
 
    formatter/formatter_data.c \
69613
 
    formatter/formatter_format.c \
69614
 
    formatter/formatter_parse.c \
69615
 
    normalizer/normalizer.c \
69616
 
    normalizer/normalizer_class.c \
69617
 
    normalizer/normalizer_normalize.c \
69618
 
    locale/locale.c \
69619
 
    locale/locale_class.c \
69620
 
    locale/locale_methods.c \
69621
 
    dateformat/dateformat.c \
69622
 
    dateformat/dateformat_class.c \
69623
 
    dateformat/dateformat_attr.c \
69624
 
    dateformat/dateformat_data.c \
69625
 
    dateformat/dateformat_format.c \
69626
 
    dateformat/dateformat_parse.c \
69627
 
    msgformat/msgformat.c \
69628
 
    msgformat/msgformat_attr.c \
69629
 
    msgformat/msgformat_class.c \
69630
 
    msgformat/msgformat_data.c  \
69631
 
    msgformat/msgformat_format.c \
69632
 
    msgformat/msgformat_helpers.cpp \
69633
 
    msgformat/msgformat_parse.c \
69634
 
    grapheme/grapheme_string.c \
69635
 
    grapheme/grapheme_util.c \
69636
 
    resourcebundle/resourcebundle.c \
69637
 
    resourcebundle/resourcebundle_class.c \
69638
 
    resourcebundle/resourcebundle_iterator.c \
69639
 
    idn/idn.c; do
69640
 
  
69641
 
      IFS=.
69642
 
      set $ac_src
69643
 
      ac_obj=$1
69644
 
      IFS=$old_IFS
69645
 
      
69646
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
69647
 
 
69648
 
      case $ac_src in
69649
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69650
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69651
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69652
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69653
 
      esac
69654
 
 
69655
 
    cat >>Makefile.objects<<EOF
69656
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69657
 
        $ac_comp
69658
 
EOF
69659
 
  done
69660
 
 
69661
 
 
69662
 
    EXT_STATIC="$EXT_STATIC intl"
69663
 
    if test "$ext_shared" != "nocli"; then
69664
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
69665
 
    fi
69666
 
  else
69667
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
69668
 
      PHP_INTL_SHARED=yes
69669
 
      
69670
 
  case ext/intl in
69671
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69672
 
  /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69673
 
  *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69674
 
  esac
69675
 
  
69676
 
  
69677
 
 
69678
 
  b_c_pre=$shared_c_pre
69679
 
  b_cxx_pre=$shared_cxx_pre
69680
 
  b_c_meta=$shared_c_meta
69681
 
  b_cxx_meta=$shared_cxx_meta
69682
 
  b_c_post=$shared_c_post
69683
 
  b_cxx_post=$shared_cxx_post
69684
 
  b_lo=$shared_lo
69685
 
 
69686
 
 
69687
 
  old_IFS=$IFS
69688
 
  for ac_src in php_intl.c \
69689
 
    intl_error.c \
69690
 
    intl_convert.c \
69691
 
    collator/collator.c \
69692
 
    collator/collator_class.c \
69693
 
    collator/collator_sort.c \
69694
 
    collator/collator_convert.c \
69695
 
    collator/collator_locale.c \
69696
 
    collator/collator_compare.c \
69697
 
    collator/collator_attr.c \
69698
 
    collator/collator_create.c \
69699
 
    collator/collator_is_numeric.c \
69700
 
    collator/collator_error.c \
69701
 
    common/common_error.c \
69702
 
    formatter/formatter.c \
69703
 
    formatter/formatter_main.c \
69704
 
    formatter/formatter_class.c \
69705
 
    formatter/formatter_attr.c \
69706
 
    formatter/formatter_data.c \
69707
 
    formatter/formatter_format.c \
69708
 
    formatter/formatter_parse.c \
69709
 
    normalizer/normalizer.c \
69710
 
    normalizer/normalizer_class.c \
69711
 
    normalizer/normalizer_normalize.c \
69712
 
    locale/locale.c \
69713
 
    locale/locale_class.c \
69714
 
    locale/locale_methods.c \
69715
 
    dateformat/dateformat.c \
69716
 
    dateformat/dateformat_class.c \
69717
 
    dateformat/dateformat_attr.c \
69718
 
    dateformat/dateformat_data.c \
69719
 
    dateformat/dateformat_format.c \
69720
 
    dateformat/dateformat_parse.c \
69721
 
    msgformat/msgformat.c \
69722
 
    msgformat/msgformat_attr.c \
69723
 
    msgformat/msgformat_class.c \
69724
 
    msgformat/msgformat_data.c  \
69725
 
    msgformat/msgformat_format.c \
69726
 
    msgformat/msgformat_helpers.cpp \
69727
 
    msgformat/msgformat_parse.c \
69728
 
    grapheme/grapheme_string.c \
69729
 
    grapheme/grapheme_util.c \
69730
 
    resourcebundle/resourcebundle.c \
69731
 
    resourcebundle/resourcebundle_class.c \
69732
 
    resourcebundle/resourcebundle_iterator.c \
69733
 
    idn/idn.c; do
69734
 
  
69735
 
      IFS=.
69736
 
      set $ac_src
69737
 
      ac_obj=$1
69738
 
      IFS=$old_IFS
69739
 
      
69740
 
      shared_objects_intl="$shared_objects_intl $ac_bdir$ac_obj.lo"
69741
 
 
69742
 
      case $ac_src in
69743
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69744
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69745
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69746
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69747
 
      esac
69748
 
 
69749
 
    cat >>Makefile.objects<<EOF
69750
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69751
 
        $ac_comp
69752
 
EOF
69753
 
  done
69754
 
 
69755
 
      case $host_alias in
69756
 
        *netware*)
69757
 
          
69758
 
  install_modules="install-modules"
69759
 
 
69760
 
  case $host_alias in
69761
 
    *aix*)
69762
 
      suffix=so
69763
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpintl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(PHPINTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpintl.so '$ext_builddir'/phpintl.so'
69764
 
      ;;
69765
 
    *netware*)
69766
 
      suffix=nlm
69767
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) -L$(top_builddir)/netware -lphp5lib $(INTL_SHARED_LIBADD)'
69768
 
      ;;
69769
 
    *)
69770
 
      suffix=la
69771
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(PHPINTL_SHARED_LIBADD)'
69772
 
      ;;
69773
 
  esac
69774
 
 
69775
 
  if test "x" = "xyes"; then
69776
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpintl.$suffix"
69777
 
  else
69778
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpintl.$suffix"
69779
 
  fi
69780
 
  
69781
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
69782
 
 
69783
 
  cat >>Makefile.objects<<EOF
69784
 
\$(phplibdir)/phpintl.$suffix: $ext_builddir/phpintl.$suffix
69785
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpintl.$suffix \$(phplibdir)
69786
 
 
69787
 
$ext_builddir/phpintl.$suffix: \$(shared_objects_intl) \$(PHPINTL_SHARED_DEPENDENCIES)
69788
 
        $link_cmd
69789
 
 
69790
 
EOF
69791
 
 
69792
 
          ;;
69793
 
        *)
69794
 
          
69795
 
  install_modules="install-modules"
69796
 
 
69797
 
  case $host_alias in
69798
 
    *aix*)
69799
 
      suffix=so
69800
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/intl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(INTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/intl.so '$ext_builddir'/intl.so'
69801
 
      ;;
69802
 
    *netware*)
69803
 
      suffix=nlm
69804
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) -L$(top_builddir)/netware -lphp5lib $(L_SHARED_LIBADD)'
69805
 
      ;;
69806
 
    *)
69807
 
      suffix=la
69808
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_intl) $(INTL_SHARED_LIBADD)'
69809
 
      ;;
69810
 
  esac
69811
 
 
69812
 
  if test "x" = "xyes"; then
69813
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/intl.$suffix"
69814
 
  else
69815
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/intl.$suffix"
69816
 
  fi
69817
 
  
69818
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
69819
 
 
69820
 
  cat >>Makefile.objects<<EOF
69821
 
\$(phplibdir)/intl.$suffix: $ext_builddir/intl.$suffix
69822
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/intl.$suffix \$(phplibdir)
69823
 
 
69824
 
$ext_builddir/intl.$suffix: \$(shared_objects_intl) \$(INTL_SHARED_DEPENDENCIES)
69825
 
        $link_cmd
69826
 
 
69827
 
EOF
69828
 
 
69829
 
          ;;
69830
 
      esac
69831
 
      
69832
 
cat >>confdefs.h <<_ACEOF
69833
 
@%:@define COMPILE_DL_INTL 1
69834
 
_ACEOF
69835
 
 
69836
 
    fi
69837
 
  fi
69838
 
 
69839
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
69840
 
    PHP_INTL_SHARED=no
69841
 
    case "$PHP_SAPI" in
69842
 
      cgi|embed)
69843
 
        
69844
 
  
69845
 
  case ext/intl in
69846
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69847
 
  /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69848
 
  *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69849
 
  esac
69850
 
  
69851
 
  
69852
 
 
69853
 
  b_c_pre=$php_c_pre
69854
 
  b_cxx_pre=$php_cxx_pre
69855
 
  b_c_meta=$php_c_meta
69856
 
  b_cxx_meta=$php_cxx_meta
69857
 
  b_c_post=$php_c_post
69858
 
  b_cxx_post=$php_cxx_post
69859
 
  b_lo=$php_lo
69860
 
 
69861
 
 
69862
 
  old_IFS=$IFS
69863
 
  for ac_src in php_intl.c \
69864
 
    intl_error.c \
69865
 
    intl_convert.c \
69866
 
    collator/collator.c \
69867
 
    collator/collator_class.c \
69868
 
    collator/collator_sort.c \
69869
 
    collator/collator_convert.c \
69870
 
    collator/collator_locale.c \
69871
 
    collator/collator_compare.c \
69872
 
    collator/collator_attr.c \
69873
 
    collator/collator_create.c \
69874
 
    collator/collator_is_numeric.c \
69875
 
    collator/collator_error.c \
69876
 
    common/common_error.c \
69877
 
    formatter/formatter.c \
69878
 
    formatter/formatter_main.c \
69879
 
    formatter/formatter_class.c \
69880
 
    formatter/formatter_attr.c \
69881
 
    formatter/formatter_data.c \
69882
 
    formatter/formatter_format.c \
69883
 
    formatter/formatter_parse.c \
69884
 
    normalizer/normalizer.c \
69885
 
    normalizer/normalizer_class.c \
69886
 
    normalizer/normalizer_normalize.c \
69887
 
    locale/locale.c \
69888
 
    locale/locale_class.c \
69889
 
    locale/locale_methods.c \
69890
 
    dateformat/dateformat.c \
69891
 
    dateformat/dateformat_class.c \
69892
 
    dateformat/dateformat_attr.c \
69893
 
    dateformat/dateformat_data.c \
69894
 
    dateformat/dateformat_format.c \
69895
 
    dateformat/dateformat_parse.c \
69896
 
    msgformat/msgformat.c \
69897
 
    msgformat/msgformat_attr.c \
69898
 
    msgformat/msgformat_class.c \
69899
 
    msgformat/msgformat_data.c  \
69900
 
    msgformat/msgformat_format.c \
69901
 
    msgformat/msgformat_helpers.cpp \
69902
 
    msgformat/msgformat_parse.c \
69903
 
    grapheme/grapheme_string.c \
69904
 
    grapheme/grapheme_util.c \
69905
 
    resourcebundle/resourcebundle.c \
69906
 
    resourcebundle/resourcebundle_class.c \
69907
 
    resourcebundle/resourcebundle_iterator.c \
69908
 
    idn/idn.c; do
69909
 
  
69910
 
      IFS=.
69911
 
      set $ac_src
69912
 
      ac_obj=$1
69913
 
      IFS=$old_IFS
69914
 
      
69915
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
69916
 
 
69917
 
      case $ac_src in
69918
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69919
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69920
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69921
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69922
 
      esac
69923
 
 
69924
 
    cat >>Makefile.objects<<EOF
69925
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69926
 
        $ac_comp
69927
 
EOF
69928
 
  done
69929
 
 
69930
 
 
69931
 
        EXT_STATIC="$EXT_STATIC intl"
69932
 
        ;;
69933
 
      *)
69934
 
        
69935
 
  
69936
 
  case ext/intl in
69937
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69938
 
  /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69939
 
  *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69940
 
  esac
69941
 
  
69942
 
  
69943
 
 
69944
 
  b_c_pre=$php_c_pre
69945
 
  b_cxx_pre=$php_cxx_pre
69946
 
  b_c_meta=$php_c_meta
69947
 
  b_cxx_meta=$php_cxx_meta
69948
 
  b_c_post=$php_c_post
69949
 
  b_cxx_post=$php_cxx_post
69950
 
  b_lo=$php_lo
69951
 
 
69952
 
 
69953
 
  old_IFS=$IFS
69954
 
  for ac_src in php_intl.c \
69955
 
    intl_error.c \
69956
 
    intl_convert.c \
69957
 
    collator/collator.c \
69958
 
    collator/collator_class.c \
69959
 
    collator/collator_sort.c \
69960
 
    collator/collator_convert.c \
69961
 
    collator/collator_locale.c \
69962
 
    collator/collator_compare.c \
69963
 
    collator/collator_attr.c \
69964
 
    collator/collator_create.c \
69965
 
    collator/collator_is_numeric.c \
69966
 
    collator/collator_error.c \
69967
 
    common/common_error.c \
69968
 
    formatter/formatter.c \
69969
 
    formatter/formatter_main.c \
69970
 
    formatter/formatter_class.c \
69971
 
    formatter/formatter_attr.c \
69972
 
    formatter/formatter_data.c \
69973
 
    formatter/formatter_format.c \
69974
 
    formatter/formatter_parse.c \
69975
 
    normalizer/normalizer.c \
69976
 
    normalizer/normalizer_class.c \
69977
 
    normalizer/normalizer_normalize.c \
69978
 
    locale/locale.c \
69979
 
    locale/locale_class.c \
69980
 
    locale/locale_methods.c \
69981
 
    dateformat/dateformat.c \
69982
 
    dateformat/dateformat_class.c \
69983
 
    dateformat/dateformat_attr.c \
69984
 
    dateformat/dateformat_data.c \
69985
 
    dateformat/dateformat_format.c \
69986
 
    dateformat/dateformat_parse.c \
69987
 
    msgformat/msgformat.c \
69988
 
    msgformat/msgformat_attr.c \
69989
 
    msgformat/msgformat_class.c \
69990
 
    msgformat/msgformat_data.c  \
69991
 
    msgformat/msgformat_format.c \
69992
 
    msgformat/msgformat_helpers.cpp \
69993
 
    msgformat/msgformat_parse.c \
69994
 
    grapheme/grapheme_string.c \
69995
 
    grapheme/grapheme_util.c \
69996
 
    resourcebundle/resourcebundle.c \
69997
 
    resourcebundle/resourcebundle_class.c \
69998
 
    resourcebundle/resourcebundle_iterator.c \
69999
 
    idn/idn.c; do
70000
 
  
70001
 
      IFS=.
70002
 
      set $ac_src
70003
 
      ac_obj=$1
70004
 
      IFS=$old_IFS
70005
 
      
70006
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
70007
 
 
70008
 
      case $ac_src in
70009
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70010
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70011
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70012
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70013
 
      esac
70014
 
 
70015
 
    cat >>Makefile.objects<<EOF
70016
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70017
 
        $ac_comp
70018
 
EOF
70019
 
  done
70020
 
 
70021
 
 
70022
 
        ;;
70023
 
    esac
70024
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
70025
 
  fi
70026
 
  
70027
 
  
70028
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
70029
 
  
70030
 
 
70031
 
 
70032
 
  if test "$ext_builddir" = "."; then
70033
 
    PHP_PECL_EXTENSION=intl
70034
 
    
70035
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
70036
 
 
70037
 
  fi
70038
 
 
70039
 
 
70040
 
  
70041
 
  
70042
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/collator"
70043
 
  
70044
 
 
70045
 
  
70046
 
  
70047
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/common"
70048
 
  
70049
 
 
70050
 
  
70051
 
  
70052
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/formatter"
70053
 
  
70054
 
 
70055
 
  
70056
 
  
70057
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/normalizer"
70058
 
  
70059
 
 
70060
 
  
70061
 
  
70062
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/dateformat"
70063
 
  
70064
 
 
70065
 
  
70066
 
  
70067
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/locale"
70068
 
  
70069
 
 
70070
 
  
70071
 
  
70072
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/msgformat"
70073
 
  
70074
 
 
70075
 
  
70076
 
  
70077
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/grapheme"
70078
 
  
70079
 
 
70080
 
  
70081
 
  
70082
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/resourcebundle"
70083
 
  
70084
 
 
70085
 
  
70086
 
  
70087
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/idn"
70088
 
  
70089
 
 
70090
 
fi
70091
 
 
70092
 
 
70093
 
 
70094
 
php_enable_json=yes
70095
 
 
70096
 
{ $as_echo "$as_me:$LINENO: checking whether to enable JavaScript Object Serialization support" >&5
70097
 
$as_echo_n "checking whether to enable JavaScript Object Serialization support... " >&6; }
70098
 
@%:@ Check whether --enable-json was given.
70099
 
if test "${enable_json+set}" = set; then
70100
 
  enableval=$enable_json; PHP_JSON=$enableval
70101
 
else
70102
 
  
70103
 
  PHP_JSON=yes
70104
 
  test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL
70105
 
 
70106
 
fi
70107
 
 
70108
 
 
70109
 
 
70110
 
ext_output="yes, shared"
70111
 
ext_shared=yes
70112
 
case $PHP_JSON in
70113
 
shared,*)
70114
 
  PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'`
70115
 
  ;;
70116
 
shared)
70117
 
  PHP_JSON=yes
70118
 
  ;;
70119
 
no)
70120
 
  ext_output=no
70121
 
  ext_shared=no
70122
 
  ;;
70123
 
*)
70124
 
  ext_output=yes
70125
 
  ext_shared=no
70126
 
  ;;
70127
 
esac
70128
 
 
70129
 
 
70130
 
 
70131
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
70132
 
$as_echo "$ext_output" >&6; }
70133
 
 
70134
 
 
70135
 
 
70136
 
 
70137
 
if test "$PHP_JSON" != "no"; then
70138
 
  
70139
 
cat >>confdefs.h <<\_ACEOF
70140
 
@%:@define HAVE_JSON 1 
70141
 
_ACEOF
70142
 
 
70143
 
  { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
70144
 
$as_echo_n "checking for ANSI C header files... " >&6; }
70145
 
if test "${ac_cv_header_stdc+set}" = set; then
70146
 
  $as_echo_n "(cached) " >&6
70147
 
else
70148
 
  cat >conftest.$ac_ext <<_ACEOF
70149
 
/* confdefs.h.  */
70150
 
_ACEOF
70151
 
cat confdefs.h >>conftest.$ac_ext
70152
 
cat >>conftest.$ac_ext <<_ACEOF
70153
 
/* end confdefs.h.  */
70154
 
#include <stdlib.h>
70155
 
#include <stdarg.h>
70156
 
#include <string.h>
70157
 
#include <float.h>
70158
 
 
70159
 
int
70160
 
main ()
70161
 
{
70162
 
 
70163
 
  ;
70164
 
  return 0;
70165
 
}
70166
 
_ACEOF
70167
 
rm -f conftest.$ac_objext
70168
 
if { (ac_try="$ac_compile"
70169
 
case "(($ac_try" in
70170
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70171
 
  *) ac_try_echo=$ac_try;;
70172
 
esac
70173
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70174
 
$as_echo "$ac_try_echo") >&5
70175
 
  (eval "$ac_compile") 2>conftest.er1
70176
 
  ac_status=$?
70177
 
  grep -v '^ *+' conftest.er1 >conftest.err
70178
 
  rm -f conftest.er1
70179
 
  cat conftest.err >&5
70180
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70181
 
  (exit $ac_status); } && {
70182
 
         test -z "$ac_c_werror_flag" ||
70183
 
         test ! -s conftest.err
70184
 
       } && test -s conftest.$ac_objext; then
70185
 
  ac_cv_header_stdc=yes
70186
 
else
70187
 
  $as_echo "$as_me: failed program was:" >&5
70188
 
sed 's/^/| /' conftest.$ac_ext >&5
70189
 
 
70190
 
        ac_cv_header_stdc=no
70191
 
fi
70192
 
 
70193
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70194
 
 
70195
 
if test $ac_cv_header_stdc = yes; then
70196
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
70197
 
  cat >conftest.$ac_ext <<_ACEOF
70198
 
/* confdefs.h.  */
70199
 
_ACEOF
70200
 
cat confdefs.h >>conftest.$ac_ext
70201
 
cat >>conftest.$ac_ext <<_ACEOF
70202
 
/* end confdefs.h.  */
70203
 
#include <string.h>
70204
 
 
70205
 
_ACEOF
70206
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70207
 
  $EGREP "memchr" >/dev/null 2>&1; then
70208
 
  :
70209
 
else
70210
 
  ac_cv_header_stdc=no
70211
 
fi
70212
 
rm -f conftest*
70213
 
 
70214
 
fi
70215
 
 
70216
 
if test $ac_cv_header_stdc = yes; then
70217
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
70218
 
  cat >conftest.$ac_ext <<_ACEOF
70219
 
/* confdefs.h.  */
70220
 
_ACEOF
70221
 
cat confdefs.h >>conftest.$ac_ext
70222
 
cat >>conftest.$ac_ext <<_ACEOF
70223
 
/* end confdefs.h.  */
70224
 
#include <stdlib.h>
70225
 
 
70226
 
_ACEOF
70227
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70228
 
  $EGREP "free" >/dev/null 2>&1; then
70229
 
  :
70230
 
else
70231
 
  ac_cv_header_stdc=no
70232
 
fi
70233
 
rm -f conftest*
70234
 
 
70235
 
fi
70236
 
 
70237
 
if test $ac_cv_header_stdc = yes; then
70238
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
70239
 
  if test "$cross_compiling" = yes; then
70240
 
  :
70241
 
else
70242
 
  cat >conftest.$ac_ext <<_ACEOF
70243
 
/* confdefs.h.  */
70244
 
_ACEOF
70245
 
cat confdefs.h >>conftest.$ac_ext
70246
 
cat >>conftest.$ac_ext <<_ACEOF
70247
 
/* end confdefs.h.  */
70248
 
#include <ctype.h>
70249
 
#include <stdlib.h>
70250
 
#if ((' ' & 0x0FF) == 0x020)
70251
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
70252
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
70253
 
#else
70254
 
# define ISLOWER(c) \
70255
 
                   (('a' <= (c) && (c) <= 'i') \
70256
 
                     || ('j' <= (c) && (c) <= 'r') \
70257
 
                     || ('s' <= (c) && (c) <= 'z'))
70258
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
70259
 
#endif
70260
 
 
70261
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
70262
 
int
70263
 
main ()
70264
 
{
70265
 
  int i;
70266
 
  for (i = 0; i < 256; i++)
70267
 
    if (XOR (islower (i), ISLOWER (i))
70268
 
        || toupper (i) != TOUPPER (i))
70269
 
      return 2;
70270
 
  return 0;
70271
 
}
70272
 
_ACEOF
70273
 
rm -f conftest$ac_exeext
70274
 
if { (ac_try="$ac_link"
70275
 
case "(($ac_try" in
70276
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70277
 
  *) ac_try_echo=$ac_try;;
70278
 
esac
70279
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70280
 
$as_echo "$ac_try_echo") >&5
70281
 
  (eval "$ac_link") 2>&5
70282
 
  ac_status=$?
70283
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70284
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
70285
 
  { (case "(($ac_try" in
70286
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70287
 
  *) ac_try_echo=$ac_try;;
70288
 
esac
70289
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70290
 
$as_echo "$ac_try_echo") >&5
70291
 
  (eval "$ac_try") 2>&5
70292
 
  ac_status=$?
70293
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70294
 
  (exit $ac_status); }; }; then
70295
 
  :
70296
 
else
70297
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
70298
 
$as_echo "$as_me: failed program was:" >&5
70299
 
sed 's/^/| /' conftest.$ac_ext >&5
70300
 
 
70301
 
( exit $ac_status )
70302
 
ac_cv_header_stdc=no
70303
 
fi
70304
 
rm -rf conftest.dSYM
70305
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
70306
 
fi
70307
 
 
70308
 
 
70309
 
fi
70310
 
fi
70311
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
70312
 
$as_echo "$ac_cv_header_stdc" >&6; }
70313
 
if test $ac_cv_header_stdc = yes; then
70314
 
  
70315
 
cat >>confdefs.h <<\_ACEOF
70316
 
@%:@define STDC_HEADERS 1
70317
 
_ACEOF
70318
 
 
70319
 
fi
70320
 
 
70321
 
 
70322
 
  
70323
 
  ext_builddir=ext/json
70324
 
  ext_srcdir=$abs_srcdir/ext/json
70325
 
 
70326
 
  ac_extra=
70327
 
 
70328
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
70329
 
    PHP_JSON_SHARED=no
70330
 
    
70331
 
  
70332
 
  case ext/json in
70333
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70334
 
  /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70335
 
  *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70336
 
  esac
70337
 
  
70338
 
  
70339
 
 
70340
 
  b_c_pre=$php_c_pre
70341
 
  b_cxx_pre=$php_cxx_pre
70342
 
  b_c_meta=$php_c_meta
70343
 
  b_cxx_meta=$php_cxx_meta
70344
 
  b_c_post=$php_c_post
70345
 
  b_cxx_post=$php_cxx_post
70346
 
  b_lo=$php_lo
70347
 
 
70348
 
 
70349
 
  old_IFS=$IFS
70350
 
  for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
70351
 
  
70352
 
      IFS=.
70353
 
      set $ac_src
70354
 
      ac_obj=$1
70355
 
      IFS=$old_IFS
70356
 
      
70357
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
70358
 
 
70359
 
      case $ac_src in
70360
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70361
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70362
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70363
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70364
 
      esac
70365
 
 
70366
 
    cat >>Makefile.objects<<EOF
70367
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70368
 
        $ac_comp
70369
 
EOF
70370
 
  done
70371
 
 
70372
 
 
70373
 
    EXT_STATIC="$EXT_STATIC json"
70374
 
    if test "$ext_shared" != "nocli"; then
70375
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC json"
70376
 
    fi
70377
 
  else
70378
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
70379
 
      PHP_JSON_SHARED=yes
70380
 
      
70381
 
  case ext/json in
70382
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70383
 
  /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70384
 
  *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70385
 
  esac
70386
 
  
70387
 
  
70388
 
 
70389
 
  b_c_pre=$shared_c_pre
70390
 
  b_cxx_pre=$shared_cxx_pre
70391
 
  b_c_meta=$shared_c_meta
70392
 
  b_cxx_meta=$shared_cxx_meta
70393
 
  b_c_post=$shared_c_post
70394
 
  b_cxx_post=$shared_cxx_post
70395
 
  b_lo=$shared_lo
70396
 
 
70397
 
 
70398
 
  old_IFS=$IFS
70399
 
  for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
70400
 
  
70401
 
      IFS=.
70402
 
      set $ac_src
70403
 
      ac_obj=$1
70404
 
      IFS=$old_IFS
70405
 
      
70406
 
      shared_objects_json="$shared_objects_json $ac_bdir$ac_obj.lo"
70407
 
 
70408
 
      case $ac_src in
70409
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70410
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70411
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70412
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70413
 
      esac
70414
 
 
70415
 
    cat >>Makefile.objects<<EOF
70416
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70417
 
        $ac_comp
70418
 
EOF
70419
 
  done
70420
 
 
70421
 
      case $host_alias in
70422
 
        *netware*)
70423
 
          
70424
 
  install_modules="install-modules"
70425
 
 
70426
 
  case $host_alias in
70427
 
    *aix*)
70428
 
      suffix=so
70429
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpjson.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(PHPJSON_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpjson.so '$ext_builddir'/phpjson.so'
70430
 
      ;;
70431
 
    *netware*)
70432
 
      suffix=nlm
70433
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) -L$(top_builddir)/netware -lphp5lib $(JSON_SHARED_LIBADD)'
70434
 
      ;;
70435
 
    *)
70436
 
      suffix=la
70437
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(PHPJSON_SHARED_LIBADD)'
70438
 
      ;;
70439
 
  esac
70440
 
 
70441
 
  if test "x" = "xyes"; then
70442
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpjson.$suffix"
70443
 
  else
70444
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpjson.$suffix"
70445
 
  fi
70446
 
  
70447
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
70448
 
 
70449
 
  cat >>Makefile.objects<<EOF
70450
 
\$(phplibdir)/phpjson.$suffix: $ext_builddir/phpjson.$suffix
70451
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpjson.$suffix \$(phplibdir)
70452
 
 
70453
 
$ext_builddir/phpjson.$suffix: \$(shared_objects_json) \$(PHPJSON_SHARED_DEPENDENCIES)
70454
 
        $link_cmd
70455
 
 
70456
 
EOF
70457
 
 
70458
 
          ;;
70459
 
        *)
70460
 
          
70461
 
  install_modules="install-modules"
70462
 
 
70463
 
  case $host_alias in
70464
 
    *aix*)
70465
 
      suffix=so
70466
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/json.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(JSON_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/json.so '$ext_builddir'/json.so'
70467
 
      ;;
70468
 
    *netware*)
70469
 
      suffix=nlm
70470
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) -L$(top_builddir)/netware -lphp5lib $(N_SHARED_LIBADD)'
70471
 
      ;;
70472
 
    *)
70473
 
      suffix=la
70474
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_json) $(JSON_SHARED_LIBADD)'
70475
 
      ;;
70476
 
  esac
70477
 
 
70478
 
  if test "x" = "xyes"; then
70479
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/json.$suffix"
70480
 
  else
70481
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/json.$suffix"
70482
 
  fi
70483
 
  
70484
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
70485
 
 
70486
 
  cat >>Makefile.objects<<EOF
70487
 
\$(phplibdir)/json.$suffix: $ext_builddir/json.$suffix
70488
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/json.$suffix \$(phplibdir)
70489
 
 
70490
 
$ext_builddir/json.$suffix: \$(shared_objects_json) \$(JSON_SHARED_DEPENDENCIES)
70491
 
        $link_cmd
70492
 
 
70493
 
EOF
70494
 
 
70495
 
          ;;
70496
 
      esac
70497
 
      
70498
 
cat >>confdefs.h <<_ACEOF
70499
 
@%:@define COMPILE_DL_JSON 1
70500
 
_ACEOF
70501
 
 
70502
 
    fi
70503
 
  fi
70504
 
 
70505
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
70506
 
    PHP_JSON_SHARED=no
70507
 
    case "$PHP_SAPI" in
70508
 
      cgi|embed)
70509
 
        
70510
 
  
70511
 
  case ext/json in
70512
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70513
 
  /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70514
 
  *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70515
 
  esac
70516
 
  
70517
 
  
70518
 
 
70519
 
  b_c_pre=$php_c_pre
70520
 
  b_cxx_pre=$php_cxx_pre
70521
 
  b_c_meta=$php_c_meta
70522
 
  b_cxx_meta=$php_cxx_meta
70523
 
  b_c_post=$php_c_post
70524
 
  b_cxx_post=$php_cxx_post
70525
 
  b_lo=$php_lo
70526
 
 
70527
 
 
70528
 
  old_IFS=$IFS
70529
 
  for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
70530
 
  
70531
 
      IFS=.
70532
 
      set $ac_src
70533
 
      ac_obj=$1
70534
 
      IFS=$old_IFS
70535
 
      
70536
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
70537
 
 
70538
 
      case $ac_src in
70539
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70540
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70541
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70542
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70543
 
      esac
70544
 
 
70545
 
    cat >>Makefile.objects<<EOF
70546
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70547
 
        $ac_comp
70548
 
EOF
70549
 
  done
70550
 
 
70551
 
 
70552
 
        EXT_STATIC="$EXT_STATIC json"
70553
 
        ;;
70554
 
      *)
70555
 
        
70556
 
  
70557
 
  case ext/json in
70558
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70559
 
  /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70560
 
  *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70561
 
  esac
70562
 
  
70563
 
  
70564
 
 
70565
 
  b_c_pre=$php_c_pre
70566
 
  b_cxx_pre=$php_cxx_pre
70567
 
  b_c_meta=$php_c_meta
70568
 
  b_cxx_meta=$php_cxx_meta
70569
 
  b_c_post=$php_c_post
70570
 
  b_cxx_post=$php_cxx_post
70571
 
  b_lo=$php_lo
70572
 
 
70573
 
 
70574
 
  old_IFS=$IFS
70575
 
  for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
70576
 
  
70577
 
      IFS=.
70578
 
      set $ac_src
70579
 
      ac_obj=$1
70580
 
      IFS=$old_IFS
70581
 
      
70582
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
70583
 
 
70584
 
      case $ac_src in
70585
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70586
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70587
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70588
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70589
 
      esac
70590
 
 
70591
 
    cat >>Makefile.objects<<EOF
70592
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70593
 
        $ac_comp
70594
 
EOF
70595
 
  done
70596
 
 
70597
 
 
70598
 
        ;;
70599
 
    esac
70600
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC json"
70601
 
  fi
70602
 
  
70603
 
  
70604
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
70605
 
  
70606
 
 
70607
 
 
70608
 
  if test "$ext_builddir" = "."; then
70609
 
    PHP_PECL_EXTENSION=json
70610
 
    
70611
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
70612
 
 
70613
 
  fi
70614
 
 
70615
 
  
70616
 
  
70617
 
    header_path=ext/json
70618
 
    for header_file in php_json.h; do
70619
 
      hp_hf="$header_path/$header_file"
70620
 
      
70621
 
  
70622
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
70623
 
  
70624
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
70625
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
70626
 
    eval "INSTALLHEADERS$unique=set"
70627
 
    
70628
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
70629
 
      
70630
 
  fi
70631
 
 
70632
 
    done 
70633
 
  
70634
 
 
70635
 
  
70636
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST JSON_SHARED_LIBADD"
70637
 
 
70638
 
fi
70639
 
 
70640
 
 
70641
 
 
70642
 
 
70643
 
 
70644
 
 
70645
 
 
70646
 
php_with_ldap=no
70647
 
 
70648
 
{ $as_echo "$as_me:$LINENO: checking for LDAP support" >&5
70649
 
$as_echo_n "checking for LDAP support... " >&6; }
70650
 
 
70651
 
@%:@ Check whether --with-ldap was given.
70652
 
if test "${with_ldap+set}" = set; then
70653
 
  withval=$with_ldap; PHP_LDAP=$withval
70654
 
else
70655
 
  
70656
 
  PHP_LDAP=no
70657
 
  test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL
70658
 
 
70659
 
fi
70660
 
 
70661
 
 
70662
 
 
70663
 
ext_output="yes, shared"
70664
 
ext_shared=yes
70665
 
case $PHP_LDAP in
70666
 
shared,*)
70667
 
  PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'`
70668
 
  ;;
70669
 
shared)
70670
 
  PHP_LDAP=yes
70671
 
  ;;
70672
 
no)
70673
 
  ext_output=no
70674
 
  ext_shared=no
70675
 
  ;;
70676
 
*)
70677
 
  ext_output=yes
70678
 
  ext_shared=no
70679
 
  ;;
70680
 
esac
70681
 
 
70682
 
 
70683
 
 
70684
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
70685
 
$as_echo "$ext_output" >&6; }
70686
 
 
70687
 
 
70688
 
 
70689
 
 
70690
 
 
70691
 
php_with_ldap_sasl=no
70692
 
 
70693
 
{ $as_echo "$as_me:$LINENO: checking for LDAP Cyrus SASL support" >&5
70694
 
$as_echo_n "checking for LDAP Cyrus SASL support... " >&6; }
70695
 
 
70696
 
@%:@ Check whether --with-ldap-sasl was given.
70697
 
if test "${with_ldap_sasl+set}" = set; then
70698
 
  withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval
70699
 
else
70700
 
  
70701
 
  PHP_LDAP_SASL=no
70702
 
  
70703
 
 
70704
 
fi
70705
 
 
70706
 
 
70707
 
ext_output=$PHP_LDAP_SASL
70708
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
70709
 
$as_echo "$ext_output" >&6; }
70710
 
 
70711
 
 
70712
 
 
70713
 
 
70714
 
if test "$PHP_LDAP" != "no"; then
70715
 
 
70716
 
  
70717
 
  ext_builddir=ext/ldap
70718
 
  ext_srcdir=$abs_srcdir/ext/ldap
70719
 
 
70720
 
  ac_extra=`echo "-DLDAP_DEPRECATED=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
70721
 
 
70722
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
70723
 
    PHP_LDAP_SHARED=no
70724
 
    
70725
 
  
70726
 
  case ext/ldap in
70727
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70728
 
  /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70729
 
  *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70730
 
  esac
70731
 
  
70732
 
  
70733
 
 
70734
 
  b_c_pre=$php_c_pre
70735
 
  b_cxx_pre=$php_cxx_pre
70736
 
  b_c_meta=$php_c_meta
70737
 
  b_cxx_meta=$php_cxx_meta
70738
 
  b_c_post=$php_c_post
70739
 
  b_cxx_post=$php_cxx_post
70740
 
  b_lo=$php_lo
70741
 
 
70742
 
 
70743
 
  old_IFS=$IFS
70744
 
  for ac_src in ldap.c; do
70745
 
  
70746
 
      IFS=.
70747
 
      set $ac_src
70748
 
      ac_obj=$1
70749
 
      IFS=$old_IFS
70750
 
      
70751
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
70752
 
 
70753
 
      case $ac_src in
70754
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70755
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70756
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70757
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70758
 
      esac
70759
 
 
70760
 
    cat >>Makefile.objects<<EOF
70761
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70762
 
        $ac_comp
70763
 
EOF
70764
 
  done
70765
 
 
70766
 
 
70767
 
    EXT_STATIC="$EXT_STATIC ldap"
70768
 
    if test "$ext_shared" != "nocli"; then
70769
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
70770
 
    fi
70771
 
  else
70772
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
70773
 
      PHP_LDAP_SHARED=yes
70774
 
      
70775
 
  case ext/ldap in
70776
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70777
 
  /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70778
 
  *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70779
 
  esac
70780
 
  
70781
 
  
70782
 
 
70783
 
  b_c_pre=$shared_c_pre
70784
 
  b_cxx_pre=$shared_cxx_pre
70785
 
  b_c_meta=$shared_c_meta
70786
 
  b_cxx_meta=$shared_cxx_meta
70787
 
  b_c_post=$shared_c_post
70788
 
  b_cxx_post=$shared_cxx_post
70789
 
  b_lo=$shared_lo
70790
 
 
70791
 
 
70792
 
  old_IFS=$IFS
70793
 
  for ac_src in ldap.c; do
70794
 
  
70795
 
      IFS=.
70796
 
      set $ac_src
70797
 
      ac_obj=$1
70798
 
      IFS=$old_IFS
70799
 
      
70800
 
      shared_objects_ldap="$shared_objects_ldap $ac_bdir$ac_obj.lo"
70801
 
 
70802
 
      case $ac_src in
70803
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70804
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70805
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70806
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70807
 
      esac
70808
 
 
70809
 
    cat >>Makefile.objects<<EOF
70810
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70811
 
        $ac_comp
70812
 
EOF
70813
 
  done
70814
 
 
70815
 
      case $host_alias in
70816
 
        *netware*)
70817
 
          
70818
 
  install_modules="install-modules"
70819
 
 
70820
 
  case $host_alias in
70821
 
    *aix*)
70822
 
      suffix=so
70823
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpldap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(PHPLDAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpldap.so '$ext_builddir'/phpldap.so'
70824
 
      ;;
70825
 
    *netware*)
70826
 
      suffix=nlm
70827
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) -L$(top_builddir)/netware -lphp5lib $(LDAP_SHARED_LIBADD)'
70828
 
      ;;
70829
 
    *)
70830
 
      suffix=la
70831
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(PHPLDAP_SHARED_LIBADD)'
70832
 
      ;;
70833
 
  esac
70834
 
 
70835
 
  if test "x" = "xyes"; then
70836
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpldap.$suffix"
70837
 
  else
70838
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpldap.$suffix"
70839
 
  fi
70840
 
  
70841
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
70842
 
 
70843
 
  cat >>Makefile.objects<<EOF
70844
 
\$(phplibdir)/phpldap.$suffix: $ext_builddir/phpldap.$suffix
70845
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpldap.$suffix \$(phplibdir)
70846
 
 
70847
 
$ext_builddir/phpldap.$suffix: \$(shared_objects_ldap) \$(PHPLDAP_SHARED_DEPENDENCIES)
70848
 
        $link_cmd
70849
 
 
70850
 
EOF
70851
 
 
70852
 
          ;;
70853
 
        *)
70854
 
          
70855
 
  install_modules="install-modules"
70856
 
 
70857
 
  case $host_alias in
70858
 
    *aix*)
70859
 
      suffix=so
70860
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/ldap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(LDAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/ldap.so '$ext_builddir'/ldap.so'
70861
 
      ;;
70862
 
    *netware*)
70863
 
      suffix=nlm
70864
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
70865
 
      ;;
70866
 
    *)
70867
 
      suffix=la
70868
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_ldap) $(LDAP_SHARED_LIBADD)'
70869
 
      ;;
70870
 
  esac
70871
 
 
70872
 
  if test "x" = "xyes"; then
70873
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ldap.$suffix"
70874
 
  else
70875
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/ldap.$suffix"
70876
 
  fi
70877
 
  
70878
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
70879
 
 
70880
 
  cat >>Makefile.objects<<EOF
70881
 
\$(phplibdir)/ldap.$suffix: $ext_builddir/ldap.$suffix
70882
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/ldap.$suffix \$(phplibdir)
70883
 
 
70884
 
$ext_builddir/ldap.$suffix: \$(shared_objects_ldap) \$(LDAP_SHARED_DEPENDENCIES)
70885
 
        $link_cmd
70886
 
 
70887
 
EOF
70888
 
 
70889
 
          ;;
70890
 
      esac
70891
 
      
70892
 
cat >>confdefs.h <<_ACEOF
70893
 
@%:@define COMPILE_DL_LDAP 1
70894
 
_ACEOF
70895
 
 
70896
 
    fi
70897
 
  fi
70898
 
 
70899
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
70900
 
    PHP_LDAP_SHARED=no
70901
 
    case "$PHP_SAPI" in
70902
 
      cgi|embed)
70903
 
        
70904
 
  
70905
 
  case ext/ldap in
70906
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70907
 
  /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70908
 
  *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70909
 
  esac
70910
 
  
70911
 
  
70912
 
 
70913
 
  b_c_pre=$php_c_pre
70914
 
  b_cxx_pre=$php_cxx_pre
70915
 
  b_c_meta=$php_c_meta
70916
 
  b_cxx_meta=$php_cxx_meta
70917
 
  b_c_post=$php_c_post
70918
 
  b_cxx_post=$php_cxx_post
70919
 
  b_lo=$php_lo
70920
 
 
70921
 
 
70922
 
  old_IFS=$IFS
70923
 
  for ac_src in ldap.c; do
70924
 
  
70925
 
      IFS=.
70926
 
      set $ac_src
70927
 
      ac_obj=$1
70928
 
      IFS=$old_IFS
70929
 
      
70930
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
70931
 
 
70932
 
      case $ac_src in
70933
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70934
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70935
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70936
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70937
 
      esac
70938
 
 
70939
 
    cat >>Makefile.objects<<EOF
70940
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70941
 
        $ac_comp
70942
 
EOF
70943
 
  done
70944
 
 
70945
 
 
70946
 
        EXT_STATIC="$EXT_STATIC ldap"
70947
 
        ;;
70948
 
      *)
70949
 
        
70950
 
  
70951
 
  case ext/ldap in
70952
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70953
 
  /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70954
 
  *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70955
 
  esac
70956
 
  
70957
 
  
70958
 
 
70959
 
  b_c_pre=$php_c_pre
70960
 
  b_cxx_pre=$php_cxx_pre
70961
 
  b_c_meta=$php_c_meta
70962
 
  b_cxx_meta=$php_cxx_meta
70963
 
  b_c_post=$php_c_post
70964
 
  b_cxx_post=$php_cxx_post
70965
 
  b_lo=$php_lo
70966
 
 
70967
 
 
70968
 
  old_IFS=$IFS
70969
 
  for ac_src in ldap.c; do
70970
 
  
70971
 
      IFS=.
70972
 
      set $ac_src
70973
 
      ac_obj=$1
70974
 
      IFS=$old_IFS
70975
 
      
70976
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
70977
 
 
70978
 
      case $ac_src in
70979
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70980
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70981
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70982
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70983
 
      esac
70984
 
 
70985
 
    cat >>Makefile.objects<<EOF
70986
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70987
 
        $ac_comp
70988
 
EOF
70989
 
  done
70990
 
 
70991
 
 
70992
 
        ;;
70993
 
    esac
70994
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
70995
 
  fi
70996
 
  
70997
 
  
70998
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
70999
 
  
71000
 
 
71001
 
 
71002
 
  if test "$ext_builddir" = "."; then
71003
 
    PHP_PECL_EXTENSION=ldap
71004
 
    
71005
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
71006
 
 
71007
 
  fi
71008
 
 
71009
 
 
71010
 
  if test "$PHP_LDAP" = "yes"; then
71011
 
    for i in /usr/local /usr; do
71012
 
      
71013
 
  if test -f $i/include/ldap.h; then
71014
 
    LDAP_DIR=$i
71015
 
    LDAP_INCDIR=$i/include
71016
 
    LDAP_LIBDIR=$i/$PHP_LIBDIR
71017
 
  elif test -f $i/include/umich-ldap/ldap.h; then
71018
 
    LDAP_DIR=$i
71019
 
    LDAP_INCDIR=$i/include/umich-ldap
71020
 
    LDAP_LIBDIR=$i/$PHP_LIBDIR
71021
 
  elif test -f $i/ldap/public/ldap.h; then
71022
 
    LDAP_DIR=$i
71023
 
    LDAP_INCDIR=$i/ldap/public
71024
 
    LDAP_LIBDIR=$i/$PHP_LIBDIR
71025
 
  fi
71026
 
 
71027
 
    done
71028
 
  else
71029
 
    
71030
 
  if test -f $PHP_LDAP/include/ldap.h; then
71031
 
    LDAP_DIR=$PHP_LDAP
71032
 
    LDAP_INCDIR=$PHP_LDAP/include
71033
 
    LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
71034
 
  elif test -f $PHP_LDAP/include/umich-ldap/ldap.h; then
71035
 
    LDAP_DIR=$PHP_LDAP
71036
 
    LDAP_INCDIR=$PHP_LDAP/include/umich-ldap
71037
 
    LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
71038
 
  elif test -f $PHP_LDAP/ldap/public/ldap.h; then
71039
 
    LDAP_DIR=$PHP_LDAP
71040
 
    LDAP_INCDIR=$PHP_LDAP/ldap/public
71041
 
    LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
71042
 
  fi
71043
 
 
71044
 
  fi
71045
 
 
71046
 
  if test -z "$LDAP_DIR"; then
71047
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find ldap.h" >&5
71048
 
$as_echo "$as_me: error: Cannot find ldap.h" >&2;}
71049
 
   { (exit 1); exit 1; }; }
71050
 
  fi
71051
 
 
71052
 
        
71053
 
  if test `uname` = "Linux"; then
71054
 
    LDAP_PTHREAD=pthread
71055
 
  else
71056
 
    LDAP_PTHREAD=
71057
 
  fi
71058
 
 
71059
 
  if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then
71060
 
    
71061
 
 
71062
 
  if test "$ext_shared" = "yes"; then
71063
 
    LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD"
71064
 
    if test -n "$LDAP_LIBDIR"; then
71065
 
      
71066
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71067
 
    
71068
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71069
 
    ai_p=$LDAP_LIBDIR
71070
 
  else
71071
 
    
71072
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71073
 
    
71074
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71075
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71076
 
  fi
71077
 
 
71078
 
    
71079
 
      if test "$ext_shared" = "yes"; then
71080
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71081
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71082
 
      else
71083
 
        
71084
 
  
71085
 
  
71086
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71087
 
  
71088
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71089
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71090
 
    eval "LIBPATH$unique=set"
71091
 
    
71092
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71093
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71094
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71095
 
  
71096
 
  fi
71097
 
 
71098
 
 
71099
 
      fi
71100
 
    
71101
 
  fi
71102
 
 
71103
 
    fi
71104
 
  else
71105
 
    
71106
 
 
71107
 
  if test -n "$LDAP_LIBDIR"; then
71108
 
    
71109
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71110
 
    
71111
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71112
 
    ai_p=$LDAP_LIBDIR
71113
 
  else
71114
 
    
71115
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71116
 
    
71117
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71118
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71119
 
  fi
71120
 
 
71121
 
    
71122
 
      
71123
 
  
71124
 
  
71125
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71126
 
  
71127
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71128
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71129
 
    eval "LIBPATH$unique=set"
71130
 
    
71131
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71132
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71133
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71134
 
  
71135
 
  fi
71136
 
 
71137
 
 
71138
 
    
71139
 
  fi
71140
 
 
71141
 
  fi
71142
 
  
71143
 
  
71144
 
  case lber in
71145
 
  c|c_r|pthread*) ;;
71146
 
  *) 
71147
 
      LIBS="-llber $LIBS" 
71148
 
   ;;
71149
 
  esac
71150
 
 
71151
 
 
71152
 
 
71153
 
 
71154
 
  fi
71155
 
 
71156
 
 
71157
 
    
71158
 
 
71159
 
  if test "$ext_shared" = "yes"; then
71160
 
    LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
71161
 
    if test -n "$LDAP_LIBDIR"; then
71162
 
      
71163
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71164
 
    
71165
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71166
 
    ai_p=$LDAP_LIBDIR
71167
 
  else
71168
 
    
71169
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71170
 
    
71171
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71172
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71173
 
  fi
71174
 
 
71175
 
    
71176
 
      if test "$ext_shared" = "yes"; then
71177
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71178
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71179
 
      else
71180
 
        
71181
 
  
71182
 
  
71183
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71184
 
  
71185
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71186
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71187
 
    eval "LIBPATH$unique=set"
71188
 
    
71189
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71190
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71191
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71192
 
  
71193
 
  fi
71194
 
 
71195
 
 
71196
 
      fi
71197
 
    
71198
 
  fi
71199
 
 
71200
 
    fi
71201
 
  else
71202
 
    
71203
 
 
71204
 
  if test -n "$LDAP_LIBDIR"; then
71205
 
    
71206
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71207
 
    
71208
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71209
 
    ai_p=$LDAP_LIBDIR
71210
 
  else
71211
 
    
71212
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71213
 
    
71214
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71215
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71216
 
  fi
71217
 
 
71218
 
    
71219
 
      
71220
 
  
71221
 
  
71222
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71223
 
  
71224
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71225
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71226
 
    eval "LIBPATH$unique=set"
71227
 
    
71228
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71229
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71230
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71231
 
  
71232
 
  fi
71233
 
 
71234
 
 
71235
 
    
71236
 
  fi
71237
 
 
71238
 
  fi
71239
 
  
71240
 
  
71241
 
  case ldap in
71242
 
  c|c_r|pthread*) ;;
71243
 
  *) 
71244
 
      LIBS="-lldap $LIBS" 
71245
 
   ;;
71246
 
  esac
71247
 
 
71248
 
 
71249
 
 
71250
 
 
71251
 
  fi
71252
 
 
71253
 
 
71254
 
 
71255
 
  elif test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/libldap.3.dylib; then
71256
 
    
71257
 
 
71258
 
  if test "$ext_shared" = "yes"; then
71259
 
    LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
71260
 
    if test -n "$LDAP_LIBDIR"; then
71261
 
      
71262
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71263
 
    
71264
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71265
 
    ai_p=$LDAP_LIBDIR
71266
 
  else
71267
 
    
71268
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71269
 
    
71270
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71271
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71272
 
  fi
71273
 
 
71274
 
    
71275
 
      if test "$ext_shared" = "yes"; then
71276
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71277
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71278
 
      else
71279
 
        
71280
 
  
71281
 
  
71282
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71283
 
  
71284
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71285
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71286
 
    eval "LIBPATH$unique=set"
71287
 
    
71288
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71289
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71290
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71291
 
  
71292
 
  fi
71293
 
 
71294
 
 
71295
 
      fi
71296
 
    
71297
 
  fi
71298
 
 
71299
 
    fi
71300
 
  else
71301
 
    
71302
 
 
71303
 
  if test -n "$LDAP_LIBDIR"; then
71304
 
    
71305
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71306
 
    
71307
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71308
 
    ai_p=$LDAP_LIBDIR
71309
 
  else
71310
 
    
71311
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71312
 
    
71313
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71314
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71315
 
  fi
71316
 
 
71317
 
    
71318
 
      
71319
 
  
71320
 
  
71321
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71322
 
  
71323
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71324
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71325
 
    eval "LIBPATH$unique=set"
71326
 
    
71327
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71328
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71329
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71330
 
  
71331
 
  fi
71332
 
 
71333
 
 
71334
 
    
71335
 
  fi
71336
 
 
71337
 
  fi
71338
 
  
71339
 
  
71340
 
  case ldap in
71341
 
  c|c_r|pthread*) ;;
71342
 
  *) 
71343
 
      LIBS="-lldap $LIBS" 
71344
 
   ;;
71345
 
  esac
71346
 
 
71347
 
 
71348
 
 
71349
 
 
71350
 
  fi
71351
 
 
71352
 
 
71353
 
 
71354
 
  elif test -f $LDAP_LIBDIR/libssldap50.$SHLIB_SUFFIX_NAME; then
71355
 
    if test -n "$LDAP_PTHREAD"; then 
71356
 
      
71357
 
  
71358
 
  case $LDAP_PTHREAD in
71359
 
  c|c_r|pthread*) ;;
71360
 
  *) 
71361
 
      LIBS="-l$LDAP_PTHREAD $LIBS" 
71362
 
   ;;
71363
 
  esac
71364
 
 
71365
 
 
71366
 
    fi
71367
 
    
71368
 
 
71369
 
  if test "$ext_shared" = "yes"; then
71370
 
    LDAP_SHARED_LIBADD="-lnspr4 $LDAP_SHARED_LIBADD"
71371
 
    if test -n "$LDAP_LIBDIR"; then
71372
 
      
71373
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71374
 
    
71375
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71376
 
    ai_p=$LDAP_LIBDIR
71377
 
  else
71378
 
    
71379
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71380
 
    
71381
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71382
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71383
 
  fi
71384
 
 
71385
 
    
71386
 
      if test "$ext_shared" = "yes"; then
71387
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71388
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71389
 
      else
71390
 
        
71391
 
  
71392
 
  
71393
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71394
 
  
71395
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71396
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71397
 
    eval "LIBPATH$unique=set"
71398
 
    
71399
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71400
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71401
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71402
 
  
71403
 
  fi
71404
 
 
71405
 
 
71406
 
      fi
71407
 
    
71408
 
  fi
71409
 
 
71410
 
    fi
71411
 
  else
71412
 
    
71413
 
 
71414
 
  if test -n "$LDAP_LIBDIR"; then
71415
 
    
71416
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71417
 
    
71418
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71419
 
    ai_p=$LDAP_LIBDIR
71420
 
  else
71421
 
    
71422
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71423
 
    
71424
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71425
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71426
 
  fi
71427
 
 
71428
 
    
71429
 
      
71430
 
  
71431
 
  
71432
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71433
 
  
71434
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71435
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71436
 
    eval "LIBPATH$unique=set"
71437
 
    
71438
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71439
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71440
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71441
 
  
71442
 
  fi
71443
 
 
71444
 
 
71445
 
    
71446
 
  fi
71447
 
 
71448
 
  fi
71449
 
  
71450
 
  
71451
 
  case nspr4 in
71452
 
  c|c_r|pthread*) ;;
71453
 
  *) 
71454
 
      LIBS="-lnspr4 $LIBS" 
71455
 
   ;;
71456
 
  esac
71457
 
 
71458
 
 
71459
 
 
71460
 
 
71461
 
  fi
71462
 
 
71463
 
 
71464
 
    
71465
 
 
71466
 
  if test "$ext_shared" = "yes"; then
71467
 
    LDAP_SHARED_LIBADD="-lplc4 $LDAP_SHARED_LIBADD"
71468
 
    if test -n "$LDAP_LIBDIR"; then
71469
 
      
71470
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71471
 
    
71472
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71473
 
    ai_p=$LDAP_LIBDIR
71474
 
  else
71475
 
    
71476
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71477
 
    
71478
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71479
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71480
 
  fi
71481
 
 
71482
 
    
71483
 
      if test "$ext_shared" = "yes"; then
71484
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71485
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71486
 
      else
71487
 
        
71488
 
  
71489
 
  
71490
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71491
 
  
71492
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71493
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71494
 
    eval "LIBPATH$unique=set"
71495
 
    
71496
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71497
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71498
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71499
 
  
71500
 
  fi
71501
 
 
71502
 
 
71503
 
      fi
71504
 
    
71505
 
  fi
71506
 
 
71507
 
    fi
71508
 
  else
71509
 
    
71510
 
 
71511
 
  if test -n "$LDAP_LIBDIR"; then
71512
 
    
71513
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71514
 
    
71515
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71516
 
    ai_p=$LDAP_LIBDIR
71517
 
  else
71518
 
    
71519
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71520
 
    
71521
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71522
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71523
 
  fi
71524
 
 
71525
 
    
71526
 
      
71527
 
  
71528
 
  
71529
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71530
 
  
71531
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71532
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71533
 
    eval "LIBPATH$unique=set"
71534
 
    
71535
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71536
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71537
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71538
 
  
71539
 
  fi
71540
 
 
71541
 
 
71542
 
    
71543
 
  fi
71544
 
 
71545
 
  fi
71546
 
  
71547
 
  
71548
 
  case plc4 in
71549
 
  c|c_r|pthread*) ;;
71550
 
  *) 
71551
 
      LIBS="-lplc4 $LIBS" 
71552
 
   ;;
71553
 
  esac
71554
 
 
71555
 
 
71556
 
 
71557
 
 
71558
 
  fi
71559
 
 
71560
 
 
71561
 
    
71562
 
 
71563
 
  if test "$ext_shared" = "yes"; then
71564
 
    LDAP_SHARED_LIBADD="-lplds4 $LDAP_SHARED_LIBADD"
71565
 
    if test -n "$LDAP_LIBDIR"; then
71566
 
      
71567
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71568
 
    
71569
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71570
 
    ai_p=$LDAP_LIBDIR
71571
 
  else
71572
 
    
71573
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71574
 
    
71575
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71576
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71577
 
  fi
71578
 
 
71579
 
    
71580
 
      if test "$ext_shared" = "yes"; then
71581
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71582
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71583
 
      else
71584
 
        
71585
 
  
71586
 
  
71587
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71588
 
  
71589
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71590
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71591
 
    eval "LIBPATH$unique=set"
71592
 
    
71593
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71594
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71595
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71596
 
  
71597
 
  fi
71598
 
 
71599
 
 
71600
 
      fi
71601
 
    
71602
 
  fi
71603
 
 
71604
 
    fi
71605
 
  else
71606
 
    
71607
 
 
71608
 
  if test -n "$LDAP_LIBDIR"; then
71609
 
    
71610
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71611
 
    
71612
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71613
 
    ai_p=$LDAP_LIBDIR
71614
 
  else
71615
 
    
71616
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71617
 
    
71618
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71619
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71620
 
  fi
71621
 
 
71622
 
    
71623
 
      
71624
 
  
71625
 
  
71626
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71627
 
  
71628
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71629
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71630
 
    eval "LIBPATH$unique=set"
71631
 
    
71632
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71633
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71634
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71635
 
  
71636
 
  fi
71637
 
 
71638
 
 
71639
 
    
71640
 
  fi
71641
 
 
71642
 
  fi
71643
 
  
71644
 
  
71645
 
  case plds4 in
71646
 
  c|c_r|pthread*) ;;
71647
 
  *) 
71648
 
      LIBS="-lplds4 $LIBS" 
71649
 
   ;;
71650
 
  esac
71651
 
 
71652
 
 
71653
 
 
71654
 
 
71655
 
  fi
71656
 
 
71657
 
 
71658
 
    
71659
 
 
71660
 
  if test "$ext_shared" = "yes"; then
71661
 
    LDAP_SHARED_LIBADD="-lssldap50 $LDAP_SHARED_LIBADD"
71662
 
    if test -n "$LDAP_LIBDIR"; then
71663
 
      
71664
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71665
 
    
71666
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71667
 
    ai_p=$LDAP_LIBDIR
71668
 
  else
71669
 
    
71670
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71671
 
    
71672
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71673
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71674
 
  fi
71675
 
 
71676
 
    
71677
 
      if test "$ext_shared" = "yes"; then
71678
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71679
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71680
 
      else
71681
 
        
71682
 
  
71683
 
  
71684
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71685
 
  
71686
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71687
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71688
 
    eval "LIBPATH$unique=set"
71689
 
    
71690
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71691
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71692
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71693
 
  
71694
 
  fi
71695
 
 
71696
 
 
71697
 
      fi
71698
 
    
71699
 
  fi
71700
 
 
71701
 
    fi
71702
 
  else
71703
 
    
71704
 
 
71705
 
  if test -n "$LDAP_LIBDIR"; then
71706
 
    
71707
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71708
 
    
71709
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71710
 
    ai_p=$LDAP_LIBDIR
71711
 
  else
71712
 
    
71713
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71714
 
    
71715
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71716
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71717
 
  fi
71718
 
 
71719
 
    
71720
 
      
71721
 
  
71722
 
  
71723
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71724
 
  
71725
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71726
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71727
 
    eval "LIBPATH$unique=set"
71728
 
    
71729
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71730
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71731
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71732
 
  
71733
 
  fi
71734
 
 
71735
 
 
71736
 
    
71737
 
  fi
71738
 
 
71739
 
  fi
71740
 
  
71741
 
  
71742
 
  case ssldap50 in
71743
 
  c|c_r|pthread*) ;;
71744
 
  *) 
71745
 
      LIBS="-lssldap50 $LIBS" 
71746
 
   ;;
71747
 
  esac
71748
 
 
71749
 
 
71750
 
 
71751
 
 
71752
 
  fi
71753
 
 
71754
 
 
71755
 
    
71756
 
 
71757
 
  if test "$ext_shared" = "yes"; then
71758
 
    LDAP_SHARED_LIBADD="-lldap50 $LDAP_SHARED_LIBADD"
71759
 
    if test -n "$LDAP_LIBDIR"; then
71760
 
      
71761
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71762
 
    
71763
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71764
 
    ai_p=$LDAP_LIBDIR
71765
 
  else
71766
 
    
71767
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71768
 
    
71769
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71770
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71771
 
  fi
71772
 
 
71773
 
    
71774
 
      if test "$ext_shared" = "yes"; then
71775
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71776
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71777
 
      else
71778
 
        
71779
 
  
71780
 
  
71781
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71782
 
  
71783
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71784
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71785
 
    eval "LIBPATH$unique=set"
71786
 
    
71787
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71788
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71789
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71790
 
  
71791
 
  fi
71792
 
 
71793
 
 
71794
 
      fi
71795
 
    
71796
 
  fi
71797
 
 
71798
 
    fi
71799
 
  else
71800
 
    
71801
 
 
71802
 
  if test -n "$LDAP_LIBDIR"; then
71803
 
    
71804
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71805
 
    
71806
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71807
 
    ai_p=$LDAP_LIBDIR
71808
 
  else
71809
 
    
71810
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71811
 
    
71812
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71813
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71814
 
  fi
71815
 
 
71816
 
    
71817
 
      
71818
 
  
71819
 
  
71820
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71821
 
  
71822
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71823
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71824
 
    eval "LIBPATH$unique=set"
71825
 
    
71826
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71827
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71828
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71829
 
  
71830
 
  fi
71831
 
 
71832
 
 
71833
 
    
71834
 
  fi
71835
 
 
71836
 
  fi
71837
 
  
71838
 
  
71839
 
  case ldap50 in
71840
 
  c|c_r|pthread*) ;;
71841
 
  *) 
71842
 
      LIBS="-lldap50 $LIBS" 
71843
 
   ;;
71844
 
  esac
71845
 
 
71846
 
 
71847
 
 
71848
 
 
71849
 
  fi
71850
 
 
71851
 
 
71852
 
    
71853
 
 
71854
 
  if test "$ext_shared" = "yes"; then
71855
 
    LDAP_SHARED_LIBADD="-lprldap50 $LDAP_SHARED_LIBADD"
71856
 
    if test -n "$LDAP_LIBDIR"; then
71857
 
      
71858
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71859
 
    
71860
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71861
 
    ai_p=$LDAP_LIBDIR
71862
 
  else
71863
 
    
71864
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71865
 
    
71866
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71867
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71868
 
  fi
71869
 
 
71870
 
    
71871
 
      if test "$ext_shared" = "yes"; then
71872
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71873
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71874
 
      else
71875
 
        
71876
 
  
71877
 
  
71878
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71879
 
  
71880
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71881
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71882
 
    eval "LIBPATH$unique=set"
71883
 
    
71884
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71885
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71886
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71887
 
  
71888
 
  fi
71889
 
 
71890
 
 
71891
 
      fi
71892
 
    
71893
 
  fi
71894
 
 
71895
 
    fi
71896
 
  else
71897
 
    
71898
 
 
71899
 
  if test -n "$LDAP_LIBDIR"; then
71900
 
    
71901
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71902
 
    
71903
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71904
 
    ai_p=$LDAP_LIBDIR
71905
 
  else
71906
 
    
71907
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71908
 
    
71909
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71910
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71911
 
  fi
71912
 
 
71913
 
    
71914
 
      
71915
 
  
71916
 
  
71917
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71918
 
  
71919
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71920
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71921
 
    eval "LIBPATH$unique=set"
71922
 
    
71923
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71924
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71925
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71926
 
  
71927
 
  fi
71928
 
 
71929
 
 
71930
 
    
71931
 
  fi
71932
 
 
71933
 
  fi
71934
 
  
71935
 
  
71936
 
  case prldap50 in
71937
 
  c|c_r|pthread*) ;;
71938
 
  *) 
71939
 
      LIBS="-lprldap50 $LIBS" 
71940
 
   ;;
71941
 
  esac
71942
 
 
71943
 
 
71944
 
 
71945
 
 
71946
 
  fi
71947
 
 
71948
 
 
71949
 
    
71950
 
 
71951
 
  if test "$ext_shared" = "yes"; then
71952
 
    LDAP_SHARED_LIBADD="-lssl3 $LDAP_SHARED_LIBADD"
71953
 
    if test -n "$LDAP_LIBDIR"; then
71954
 
      
71955
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71956
 
    
71957
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
71958
 
    ai_p=$LDAP_LIBDIR
71959
 
  else
71960
 
    
71961
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71962
 
    
71963
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71964
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
71965
 
  fi
71966
 
 
71967
 
    
71968
 
      if test "$ext_shared" = "yes"; then
71969
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
71970
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
71971
 
      else
71972
 
        
71973
 
  
71974
 
  
71975
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71976
 
  
71977
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71978
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
71979
 
    eval "LIBPATH$unique=set"
71980
 
    
71981
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71982
 
    LDFLAGS="$LDFLAGS -L$ai_p"
71983
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
71984
 
  
71985
 
  fi
71986
 
 
71987
 
 
71988
 
      fi
71989
 
    
71990
 
  fi
71991
 
 
71992
 
    fi
71993
 
  else
71994
 
    
71995
 
 
71996
 
  if test -n "$LDAP_LIBDIR"; then
71997
 
    
71998
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
71999
 
    
72000
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72001
 
    ai_p=$LDAP_LIBDIR
72002
 
  else
72003
 
    
72004
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72005
 
    
72006
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72007
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72008
 
  fi
72009
 
 
72010
 
    
72011
 
      
72012
 
  
72013
 
  
72014
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72015
 
  
72016
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72017
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72018
 
    eval "LIBPATH$unique=set"
72019
 
    
72020
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72021
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72022
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72023
 
  
72024
 
  fi
72025
 
 
72026
 
 
72027
 
    
72028
 
  fi
72029
 
 
72030
 
  fi
72031
 
  
72032
 
  
72033
 
  case ssl3 in
72034
 
  c|c_r|pthread*) ;;
72035
 
  *) 
72036
 
      LIBS="-lssl3 $LIBS" 
72037
 
   ;;
72038
 
  esac
72039
 
 
72040
 
 
72041
 
 
72042
 
 
72043
 
  fi
72044
 
 
72045
 
 
72046
 
    
72047
 
cat >>confdefs.h <<\_ACEOF
72048
 
@%:@define HAVE_NSLDAP 1
72049
 
_ACEOF
72050
 
 
72051
 
 
72052
 
  elif test -f $LDAP_LIBDIR/libldapssl41.$SHLIB_SUFFIX_NAME; then
72053
 
    if test -n "$LDAP_PTHREAD"; then 
72054
 
      
72055
 
  
72056
 
  case $LDAP_PTHREAD in
72057
 
  c|c_r|pthread*) ;;
72058
 
  *) 
72059
 
      LIBS="-l$LDAP_PTHREAD $LIBS" 
72060
 
   ;;
72061
 
  esac
72062
 
 
72063
 
 
72064
 
    fi
72065
 
    
72066
 
 
72067
 
  if test "$ext_shared" = "yes"; then
72068
 
    LDAP_SHARED_LIBADD="-lnspr3 $LDAP_SHARED_LIBADD"
72069
 
    if test -n "$LDAP_LIBDIR"; then
72070
 
      
72071
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72072
 
    
72073
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72074
 
    ai_p=$LDAP_LIBDIR
72075
 
  else
72076
 
    
72077
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72078
 
    
72079
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72080
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72081
 
  fi
72082
 
 
72083
 
    
72084
 
      if test "$ext_shared" = "yes"; then
72085
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72086
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72087
 
      else
72088
 
        
72089
 
  
72090
 
  
72091
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72092
 
  
72093
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72094
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72095
 
    eval "LIBPATH$unique=set"
72096
 
    
72097
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72098
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72099
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72100
 
  
72101
 
  fi
72102
 
 
72103
 
 
72104
 
      fi
72105
 
    
72106
 
  fi
72107
 
 
72108
 
    fi
72109
 
  else
72110
 
    
72111
 
 
72112
 
  if test -n "$LDAP_LIBDIR"; then
72113
 
    
72114
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72115
 
    
72116
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72117
 
    ai_p=$LDAP_LIBDIR
72118
 
  else
72119
 
    
72120
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72121
 
    
72122
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72123
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72124
 
  fi
72125
 
 
72126
 
    
72127
 
      
72128
 
  
72129
 
  
72130
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72131
 
  
72132
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72133
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72134
 
    eval "LIBPATH$unique=set"
72135
 
    
72136
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72137
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72138
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72139
 
  
72140
 
  fi
72141
 
 
72142
 
 
72143
 
    
72144
 
  fi
72145
 
 
72146
 
  fi
72147
 
  
72148
 
  
72149
 
  case nspr3 in
72150
 
  c|c_r|pthread*) ;;
72151
 
  *) 
72152
 
      LIBS="-lnspr3 $LIBS" 
72153
 
   ;;
72154
 
  esac
72155
 
 
72156
 
 
72157
 
 
72158
 
 
72159
 
  fi
72160
 
 
72161
 
 
72162
 
    
72163
 
 
72164
 
  if test "$ext_shared" = "yes"; then
72165
 
    LDAP_SHARED_LIBADD="-lplc3 $LDAP_SHARED_LIBADD"
72166
 
    if test -n "$LDAP_LIBDIR"; then
72167
 
      
72168
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72169
 
    
72170
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72171
 
    ai_p=$LDAP_LIBDIR
72172
 
  else
72173
 
    
72174
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72175
 
    
72176
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72177
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72178
 
  fi
72179
 
 
72180
 
    
72181
 
      if test "$ext_shared" = "yes"; then
72182
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72183
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72184
 
      else
72185
 
        
72186
 
  
72187
 
  
72188
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72189
 
  
72190
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72191
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72192
 
    eval "LIBPATH$unique=set"
72193
 
    
72194
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72195
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72196
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72197
 
  
72198
 
  fi
72199
 
 
72200
 
 
72201
 
      fi
72202
 
    
72203
 
  fi
72204
 
 
72205
 
    fi
72206
 
  else
72207
 
    
72208
 
 
72209
 
  if test -n "$LDAP_LIBDIR"; then
72210
 
    
72211
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72212
 
    
72213
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72214
 
    ai_p=$LDAP_LIBDIR
72215
 
  else
72216
 
    
72217
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72218
 
    
72219
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72220
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72221
 
  fi
72222
 
 
72223
 
    
72224
 
      
72225
 
  
72226
 
  
72227
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72228
 
  
72229
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72230
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72231
 
    eval "LIBPATH$unique=set"
72232
 
    
72233
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72234
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72235
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72236
 
  
72237
 
  fi
72238
 
 
72239
 
 
72240
 
    
72241
 
  fi
72242
 
 
72243
 
  fi
72244
 
  
72245
 
  
72246
 
  case plc3 in
72247
 
  c|c_r|pthread*) ;;
72248
 
  *) 
72249
 
      LIBS="-lplc3 $LIBS" 
72250
 
   ;;
72251
 
  esac
72252
 
 
72253
 
 
72254
 
 
72255
 
 
72256
 
  fi
72257
 
 
72258
 
 
72259
 
    
72260
 
 
72261
 
  if test "$ext_shared" = "yes"; then
72262
 
    LDAP_SHARED_LIBADD="-lplds3 $LDAP_SHARED_LIBADD"
72263
 
    if test -n "$LDAP_LIBDIR"; then
72264
 
      
72265
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72266
 
    
72267
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72268
 
    ai_p=$LDAP_LIBDIR
72269
 
  else
72270
 
    
72271
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72272
 
    
72273
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72274
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72275
 
  fi
72276
 
 
72277
 
    
72278
 
      if test "$ext_shared" = "yes"; then
72279
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72280
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72281
 
      else
72282
 
        
72283
 
  
72284
 
  
72285
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72286
 
  
72287
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72288
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72289
 
    eval "LIBPATH$unique=set"
72290
 
    
72291
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72292
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72293
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72294
 
  
72295
 
  fi
72296
 
 
72297
 
 
72298
 
      fi
72299
 
    
72300
 
  fi
72301
 
 
72302
 
    fi
72303
 
  else
72304
 
    
72305
 
 
72306
 
  if test -n "$LDAP_LIBDIR"; then
72307
 
    
72308
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72309
 
    
72310
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72311
 
    ai_p=$LDAP_LIBDIR
72312
 
  else
72313
 
    
72314
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72315
 
    
72316
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72317
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72318
 
  fi
72319
 
 
72320
 
    
72321
 
      
72322
 
  
72323
 
  
72324
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72325
 
  
72326
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72327
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72328
 
    eval "LIBPATH$unique=set"
72329
 
    
72330
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72331
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72332
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72333
 
  
72334
 
  fi
72335
 
 
72336
 
 
72337
 
    
72338
 
  fi
72339
 
 
72340
 
  fi
72341
 
  
72342
 
  
72343
 
  case plds3 in
72344
 
  c|c_r|pthread*) ;;
72345
 
  *) 
72346
 
      LIBS="-lplds3 $LIBS" 
72347
 
   ;;
72348
 
  esac
72349
 
 
72350
 
 
72351
 
 
72352
 
 
72353
 
  fi
72354
 
 
72355
 
 
72356
 
    
72357
 
 
72358
 
  if test "$ext_shared" = "yes"; then
72359
 
    LDAP_SHARED_LIBADD="-lldapssl41 $LDAP_SHARED_LIBADD"
72360
 
    if test -n "$LDAP_LIBDIR"; then
72361
 
      
72362
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72363
 
    
72364
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72365
 
    ai_p=$LDAP_LIBDIR
72366
 
  else
72367
 
    
72368
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72369
 
    
72370
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72371
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72372
 
  fi
72373
 
 
72374
 
    
72375
 
      if test "$ext_shared" = "yes"; then
72376
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72377
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72378
 
      else
72379
 
        
72380
 
  
72381
 
  
72382
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72383
 
  
72384
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72385
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72386
 
    eval "LIBPATH$unique=set"
72387
 
    
72388
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72389
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72390
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72391
 
  
72392
 
  fi
72393
 
 
72394
 
 
72395
 
      fi
72396
 
    
72397
 
  fi
72398
 
 
72399
 
    fi
72400
 
  else
72401
 
    
72402
 
 
72403
 
  if test -n "$LDAP_LIBDIR"; then
72404
 
    
72405
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72406
 
    
72407
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72408
 
    ai_p=$LDAP_LIBDIR
72409
 
  else
72410
 
    
72411
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72412
 
    
72413
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72414
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72415
 
  fi
72416
 
 
72417
 
    
72418
 
      
72419
 
  
72420
 
  
72421
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72422
 
  
72423
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72424
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72425
 
    eval "LIBPATH$unique=set"
72426
 
    
72427
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72428
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72429
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72430
 
  
72431
 
  fi
72432
 
 
72433
 
 
72434
 
    
72435
 
  fi
72436
 
 
72437
 
  fi
72438
 
  
72439
 
  
72440
 
  case ldapssl41 in
72441
 
  c|c_r|pthread*) ;;
72442
 
  *) 
72443
 
      LIBS="-lldapssl41 $LIBS" 
72444
 
   ;;
72445
 
  esac
72446
 
 
72447
 
 
72448
 
 
72449
 
 
72450
 
  fi
72451
 
 
72452
 
 
72453
 
    
72454
 
cat >>confdefs.h <<\_ACEOF
72455
 
@%:@define HAVE_NSLDAP 1
72456
 
_ACEOF
72457
 
 
72458
 
 
72459
 
  elif test -f $LDAP_LIBDIR/libldapssl30.$SHLIB_SUFFIX_NAME; then
72460
 
    if test -n "$LDAP_PTHREAD"; then 
72461
 
      
72462
 
  
72463
 
  case $LDAP_PTHREAD in
72464
 
  c|c_r|pthread*) ;;
72465
 
  *) 
72466
 
      LIBS="-l$LDAP_PTHREAD $LIBS" 
72467
 
   ;;
72468
 
  esac
72469
 
 
72470
 
 
72471
 
    fi
72472
 
    
72473
 
 
72474
 
  if test "$ext_shared" = "yes"; then
72475
 
    LDAP_SHARED_LIBADD="-lldapssl30 $LDAP_SHARED_LIBADD"
72476
 
    if test -n "$LDAP_LIBDIR"; then
72477
 
      
72478
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72479
 
    
72480
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72481
 
    ai_p=$LDAP_LIBDIR
72482
 
  else
72483
 
    
72484
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72485
 
    
72486
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72487
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72488
 
  fi
72489
 
 
72490
 
    
72491
 
      if test "$ext_shared" = "yes"; then
72492
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72493
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72494
 
      else
72495
 
        
72496
 
  
72497
 
  
72498
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72499
 
  
72500
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72501
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72502
 
    eval "LIBPATH$unique=set"
72503
 
    
72504
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72505
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72506
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72507
 
  
72508
 
  fi
72509
 
 
72510
 
 
72511
 
      fi
72512
 
    
72513
 
  fi
72514
 
 
72515
 
    fi
72516
 
  else
72517
 
    
72518
 
 
72519
 
  if test -n "$LDAP_LIBDIR"; then
72520
 
    
72521
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72522
 
    
72523
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72524
 
    ai_p=$LDAP_LIBDIR
72525
 
  else
72526
 
    
72527
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72528
 
    
72529
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72530
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72531
 
  fi
72532
 
 
72533
 
    
72534
 
      
72535
 
  
72536
 
  
72537
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72538
 
  
72539
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72540
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72541
 
    eval "LIBPATH$unique=set"
72542
 
    
72543
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72544
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72545
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72546
 
  
72547
 
  fi
72548
 
 
72549
 
 
72550
 
    
72551
 
  fi
72552
 
 
72553
 
  fi
72554
 
  
72555
 
  
72556
 
  case ldapssl30 in
72557
 
  c|c_r|pthread*) ;;
72558
 
  *) 
72559
 
      LIBS="-lldapssl30 $LIBS" 
72560
 
   ;;
72561
 
  esac
72562
 
 
72563
 
 
72564
 
 
72565
 
 
72566
 
  fi
72567
 
 
72568
 
 
72569
 
    
72570
 
cat >>confdefs.h <<\_ACEOF
72571
 
@%:@define HAVE_NSLDAP 1
72572
 
_ACEOF
72573
 
 
72574
 
 
72575
 
  elif test -f $LDAP_LIBDIR/libldap30.$SHLIB_SUFFIX_NAME; then
72576
 
    if test -n "$LDAP_PTHREAD"; then 
72577
 
      
72578
 
  
72579
 
  case $LDAP_PTHREAD in
72580
 
  c|c_r|pthread*) ;;
72581
 
  *) 
72582
 
      LIBS="-l$LDAP_PTHREAD $LIBS" 
72583
 
   ;;
72584
 
  esac
72585
 
 
72586
 
 
72587
 
    fi
72588
 
    
72589
 
 
72590
 
  if test "$ext_shared" = "yes"; then
72591
 
    LDAP_SHARED_LIBADD="-lldap30 $LDAP_SHARED_LIBADD"
72592
 
    if test -n "$LDAP_LIBDIR"; then
72593
 
      
72594
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72595
 
    
72596
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72597
 
    ai_p=$LDAP_LIBDIR
72598
 
  else
72599
 
    
72600
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72601
 
    
72602
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72603
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72604
 
  fi
72605
 
 
72606
 
    
72607
 
      if test "$ext_shared" = "yes"; then
72608
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72609
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72610
 
      else
72611
 
        
72612
 
  
72613
 
  
72614
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72615
 
  
72616
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72617
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72618
 
    eval "LIBPATH$unique=set"
72619
 
    
72620
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72621
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72622
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72623
 
  
72624
 
  fi
72625
 
 
72626
 
 
72627
 
      fi
72628
 
    
72629
 
  fi
72630
 
 
72631
 
    fi
72632
 
  else
72633
 
    
72634
 
 
72635
 
  if test -n "$LDAP_LIBDIR"; then
72636
 
    
72637
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72638
 
    
72639
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72640
 
    ai_p=$LDAP_LIBDIR
72641
 
  else
72642
 
    
72643
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72644
 
    
72645
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72646
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72647
 
  fi
72648
 
 
72649
 
    
72650
 
      
72651
 
  
72652
 
  
72653
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72654
 
  
72655
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72656
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72657
 
    eval "LIBPATH$unique=set"
72658
 
    
72659
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72660
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72661
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72662
 
  
72663
 
  fi
72664
 
 
72665
 
 
72666
 
    
72667
 
  fi
72668
 
 
72669
 
  fi
72670
 
  
72671
 
  
72672
 
  case ldap30 in
72673
 
  c|c_r|pthread*) ;;
72674
 
  *) 
72675
 
      LIBS="-lldap30 $LIBS" 
72676
 
   ;;
72677
 
  esac
72678
 
 
72679
 
 
72680
 
 
72681
 
 
72682
 
  fi
72683
 
 
72684
 
 
72685
 
    
72686
 
cat >>confdefs.h <<\_ACEOF
72687
 
@%:@define HAVE_NSLDAP 1
72688
 
_ACEOF
72689
 
 
72690
 
 
72691
 
  elif test -f $LDAP_LIBDIR/libumich_ldap.$SHLIB_SUFFIX_NAME; then
72692
 
    
72693
 
 
72694
 
  if test "$ext_shared" = "yes"; then
72695
 
    LDAP_SHARED_LIBADD="-lumich_lber $LDAP_SHARED_LIBADD"
72696
 
    if test -n "$LDAP_LIBDIR"; then
72697
 
      
72698
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72699
 
    
72700
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72701
 
    ai_p=$LDAP_LIBDIR
72702
 
  else
72703
 
    
72704
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72705
 
    
72706
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72707
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72708
 
  fi
72709
 
 
72710
 
    
72711
 
      if test "$ext_shared" = "yes"; then
72712
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72713
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72714
 
      else
72715
 
        
72716
 
  
72717
 
  
72718
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72719
 
  
72720
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72721
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72722
 
    eval "LIBPATH$unique=set"
72723
 
    
72724
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72725
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72726
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72727
 
  
72728
 
  fi
72729
 
 
72730
 
 
72731
 
      fi
72732
 
    
72733
 
  fi
72734
 
 
72735
 
    fi
72736
 
  else
72737
 
    
72738
 
 
72739
 
  if test -n "$LDAP_LIBDIR"; then
72740
 
    
72741
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72742
 
    
72743
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72744
 
    ai_p=$LDAP_LIBDIR
72745
 
  else
72746
 
    
72747
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72748
 
    
72749
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72750
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72751
 
  fi
72752
 
 
72753
 
    
72754
 
      
72755
 
  
72756
 
  
72757
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72758
 
  
72759
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72760
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72761
 
    eval "LIBPATH$unique=set"
72762
 
    
72763
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72764
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72765
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72766
 
  
72767
 
  fi
72768
 
 
72769
 
 
72770
 
    
72771
 
  fi
72772
 
 
72773
 
  fi
72774
 
  
72775
 
  
72776
 
  case umich_lber in
72777
 
  c|c_r|pthread*) ;;
72778
 
  *) 
72779
 
      LIBS="-lumich_lber $LIBS" 
72780
 
   ;;
72781
 
  esac
72782
 
 
72783
 
 
72784
 
 
72785
 
 
72786
 
  fi
72787
 
 
72788
 
 
72789
 
    
72790
 
 
72791
 
  if test "$ext_shared" = "yes"; then
72792
 
    LDAP_SHARED_LIBADD="-lumich_ldap $LDAP_SHARED_LIBADD"
72793
 
    if test -n "$LDAP_LIBDIR"; then
72794
 
      
72795
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72796
 
    
72797
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72798
 
    ai_p=$LDAP_LIBDIR
72799
 
  else
72800
 
    
72801
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72802
 
    
72803
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72804
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72805
 
  fi
72806
 
 
72807
 
    
72808
 
      if test "$ext_shared" = "yes"; then
72809
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72810
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72811
 
      else
72812
 
        
72813
 
  
72814
 
  
72815
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72816
 
  
72817
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72818
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72819
 
    eval "LIBPATH$unique=set"
72820
 
    
72821
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72822
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72823
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72824
 
  
72825
 
  fi
72826
 
 
72827
 
 
72828
 
      fi
72829
 
    
72830
 
  fi
72831
 
 
72832
 
    fi
72833
 
  else
72834
 
    
72835
 
 
72836
 
  if test -n "$LDAP_LIBDIR"; then
72837
 
    
72838
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72839
 
    
72840
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72841
 
    ai_p=$LDAP_LIBDIR
72842
 
  else
72843
 
    
72844
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72845
 
    
72846
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72847
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72848
 
  fi
72849
 
 
72850
 
    
72851
 
      
72852
 
  
72853
 
  
72854
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72855
 
  
72856
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72857
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72858
 
    eval "LIBPATH$unique=set"
72859
 
    
72860
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72861
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72862
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72863
 
  
72864
 
  fi
72865
 
 
72866
 
 
72867
 
    
72868
 
  fi
72869
 
 
72870
 
  fi
72871
 
  
72872
 
  
72873
 
  case umich_ldap in
72874
 
  c|c_r|pthread*) ;;
72875
 
  *) 
72876
 
      LIBS="-lumich_ldap $LIBS" 
72877
 
   ;;
72878
 
  esac
72879
 
 
72880
 
 
72881
 
 
72882
 
 
72883
 
  fi
72884
 
 
72885
 
 
72886
 
 
72887
 
  elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME; then
72888
 
    
72889
 
 
72890
 
  if test "$ext_shared" = "yes"; then
72891
 
    LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD"
72892
 
    if test -n "$LDAP_LIBDIR"; then
72893
 
      
72894
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72895
 
    
72896
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72897
 
    ai_p=$LDAP_LIBDIR
72898
 
  else
72899
 
    
72900
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72901
 
    
72902
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72903
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72904
 
  fi
72905
 
 
72906
 
    
72907
 
      if test "$ext_shared" = "yes"; then
72908
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
72909
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
72910
 
      else
72911
 
        
72912
 
  
72913
 
  
72914
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72915
 
  
72916
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72917
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72918
 
    eval "LIBPATH$unique=set"
72919
 
    
72920
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72921
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72922
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72923
 
  
72924
 
  fi
72925
 
 
72926
 
 
72927
 
      fi
72928
 
    
72929
 
  fi
72930
 
 
72931
 
    fi
72932
 
  else
72933
 
    
72934
 
 
72935
 
  if test -n "$LDAP_LIBDIR"; then
72936
 
    
72937
 
  if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
72938
 
    
72939
 
  if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
72940
 
    ai_p=$LDAP_LIBDIR
72941
 
  else
72942
 
    
72943
 
    ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
72944
 
    
72945
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72946
 
    ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
72947
 
  fi
72948
 
 
72949
 
    
72950
 
      
72951
 
  
72952
 
  
72953
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72954
 
  
72955
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72956
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
72957
 
    eval "LIBPATH$unique=set"
72958
 
    
72959
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72960
 
    LDFLAGS="$LDFLAGS -L$ai_p"
72961
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
72962
 
  
72963
 
  fi
72964
 
 
72965
 
 
72966
 
    
72967
 
  fi
72968
 
 
72969
 
  fi
72970
 
  
72971
 
  
72972
 
  case clntsh in
72973
 
  c|c_r|pthread*) ;;
72974
 
  *) 
72975
 
      LIBS="-lclntsh $LIBS" 
72976
 
   ;;
72977
 
  esac
72978
 
 
72979
 
 
72980
 
 
72981
 
 
72982
 
  fi
72983
 
 
72984
 
 
72985
 
    
72986
 
cat >>confdefs.h <<\_ACEOF
72987
 
@%:@define HAVE_ORALDAP 1
72988
 
_ACEOF
72989
 
 
72990
 
    if test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
72991
 
      
72992
 
cat >>confdefs.h <<\_ACEOF
72993
 
@%:@define HAVE_ORALDAP_10 1
72994
 
_ACEOF
72995
 
 
72996
 
    fi
72997
 
  else
72998
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find ldap libraries in $LDAP_LIBDIR." >&5
72999
 
$as_echo "$as_me: error: Cannot find ldap libraries in $LDAP_LIBDIR." >&2;}
73000
 
   { (exit 1); exit 1; }; }
73001
 
  fi
73002
 
 
73003
 
  
73004
 
  if test "$LDAP_INCDIR" != "/usr/include"; then
73005
 
    
73006
 
  if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then
73007
 
    ai_p=$LDAP_INCDIR
73008
 
  else
73009
 
    
73010
 
    ep_dir="`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
73011
 
    
73012
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73013
 
    ai_p="$ep_realdir/`basename \"$LDAP_INCDIR\"`"
73014
 
  fi
73015
 
 
73016
 
    
73017
 
  
73018
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73019
 
  
73020
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73021
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
73022
 
    eval "INCLUDEPATH$unique=set"
73023
 
    
73024
 
      if test ""; then
73025
 
        INCLUDES="-I$ai_p $INCLUDES"
73026
 
      else
73027
 
        INCLUDES="$INCLUDES -I$ai_p"
73028
 
      fi
73029
 
    
73030
 
  fi
73031
 
 
73032
 
  fi
73033
 
 
73034
 
  
73035
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD"
73036
 
 
73037
 
  
73038
 
cat >>confdefs.h <<\_ACEOF
73039
 
@%:@define HAVE_LDAP 1
73040
 
_ACEOF
73041
 
 
73042
 
  
73043
 
    _SAVE_CPPFLAGS=$CPPFLAGS
73044
 
  _SAVE_LIBS=$LIBS
73045
 
  CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
73046
 
  LIBS="$LIBS $LDAP_SHARED_LIBADD"
73047
 
 
73048
 
    { $as_echo "$as_me:$LINENO: checking for 3 arg ldap_set_rebind_proc" >&5
73049
 
$as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; }
73050
 
if test "${ac_cv_3arg_setrebindproc+set}" = set; then
73051
 
  $as_echo_n "(cached) " >&6
73052
 
else
73053
 
  cat >conftest.$ac_ext <<_ACEOF
73054
 
/* confdefs.h.  */
73055
 
_ACEOF
73056
 
cat confdefs.h >>conftest.$ac_ext
73057
 
cat >>conftest.$ac_ext <<_ACEOF
73058
 
/* end confdefs.h.  */
73059
 
#include <ldap.h>
73060
 
int
73061
 
main ()
73062
 
{
73063
 
ldap_set_rebind_proc(0,0,0)
73064
 
  ;
73065
 
  return 0;
73066
 
}
73067
 
_ACEOF
73068
 
rm -f conftest.$ac_objext
73069
 
if { (ac_try="$ac_compile"
73070
 
case "(($ac_try" in
73071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73072
 
  *) ac_try_echo=$ac_try;;
73073
 
esac
73074
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73075
 
$as_echo "$ac_try_echo") >&5
73076
 
  (eval "$ac_compile") 2>conftest.er1
73077
 
  ac_status=$?
73078
 
  grep -v '^ *+' conftest.er1 >conftest.err
73079
 
  rm -f conftest.er1
73080
 
  cat conftest.err >&5
73081
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73082
 
  (exit $ac_status); } && {
73083
 
         test -z "$ac_c_werror_flag" ||
73084
 
         test ! -s conftest.err
73085
 
       } && test -s conftest.$ac_objext; then
73086
 
  ac_cv_3arg_setrebindproc=yes
73087
 
else
73088
 
  $as_echo "$as_me: failed program was:" >&5
73089
 
sed 's/^/| /' conftest.$ac_ext >&5
73090
 
 
73091
 
        ac_cv_3arg_setrebindproc=no
73092
 
fi
73093
 
 
73094
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73095
 
fi
73096
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_3arg_setrebindproc" >&5
73097
 
$as_echo "$ac_cv_3arg_setrebindproc" >&6; }
73098
 
  if test "$ac_cv_3arg_setrebindproc" = yes; then
73099
 
    
73100
 
cat >>confdefs.h <<\_ACEOF
73101
 
@%:@define HAVE_3ARG_SETREBINDPROC 1
73102
 
_ACEOF
73103
 
 
73104
 
  fi
73105
 
 
73106
 
      
73107
 
 
73108
 
 
73109
 
for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s
73110
 
do
73111
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73112
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73113
 
$as_echo_n "checking for $ac_func... " >&6; }
73114
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73115
 
  $as_echo_n "(cached) " >&6
73116
 
else
73117
 
  cat >conftest.$ac_ext <<_ACEOF
73118
 
/* confdefs.h.  */
73119
 
_ACEOF
73120
 
cat confdefs.h >>conftest.$ac_ext
73121
 
cat >>conftest.$ac_ext <<_ACEOF
73122
 
/* end confdefs.h.  */
73123
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73124
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73125
 
#define $ac_func innocuous_$ac_func
73126
 
 
73127
 
/* System header to define __stub macros and hopefully few prototypes,
73128
 
    which can conflict with char $ac_func (); below.
73129
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73130
 
    <limits.h> exists even on freestanding compilers.  */
73131
 
 
73132
 
#ifdef __STDC__
73133
 
# include <limits.h>
73134
 
#else
73135
 
# include <assert.h>
73136
 
#endif
73137
 
 
73138
 
#undef $ac_func
73139
 
 
73140
 
/* Override any GCC internal prototype to avoid an error.
73141
 
   Use char because int might match the return type of a GCC
73142
 
   builtin and then its argument prototype would still apply.  */
73143
 
#ifdef __cplusplus
73144
 
extern "C"
73145
 
#endif
73146
 
char $ac_func ();
73147
 
/* The GNU C library defines this for functions which it implements
73148
 
    to always fail with ENOSYS.  Some functions are actually named
73149
 
    something starting with __ and the normal name is an alias.  */
73150
 
#if defined __stub_$ac_func || defined __stub___$ac_func
73151
 
choke me
73152
 
#endif
73153
 
 
73154
 
int
73155
 
main ()
73156
 
{
73157
 
return $ac_func ();
73158
 
  ;
73159
 
  return 0;
73160
 
}
73161
 
_ACEOF
73162
 
rm -f conftest.$ac_objext conftest$ac_exeext
73163
 
if { (ac_try="$ac_link"
73164
 
case "(($ac_try" in
73165
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73166
 
  *) ac_try_echo=$ac_try;;
73167
 
esac
73168
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73169
 
$as_echo "$ac_try_echo") >&5
73170
 
  (eval "$ac_link") 2>conftest.er1
73171
 
  ac_status=$?
73172
 
  grep -v '^ *+' conftest.er1 >conftest.err
73173
 
  rm -f conftest.er1
73174
 
  cat conftest.err >&5
73175
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73176
 
  (exit $ac_status); } && {
73177
 
         test -z "$ac_c_werror_flag" ||
73178
 
         test ! -s conftest.err
73179
 
       } && test -s conftest$ac_exeext && {
73180
 
         test "$cross_compiling" = yes ||
73181
 
         $as_test_x conftest$ac_exeext
73182
 
       }; then
73183
 
  eval "$as_ac_var=yes"
73184
 
else
73185
 
  $as_echo "$as_me: failed program was:" >&5
73186
 
sed 's/^/| /' conftest.$ac_ext >&5
73187
 
 
73188
 
        eval "$as_ac_var=no"
73189
 
fi
73190
 
 
73191
 
rm -rf conftest.dSYM
73192
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73193
 
      conftest$ac_exeext conftest.$ac_ext
73194
 
fi
73195
 
ac_res=`eval 'as_val=${'$as_ac_var'}
73196
 
                 $as_echo "$as_val"'`
73197
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73198
 
$as_echo "$ac_res" >&6; }
73199
 
as_val=`eval 'as_val=${'$as_ac_var'}
73200
 
                 $as_echo "$as_val"'`
73201
 
   if test "x$as_val" = x""yes; then
73202
 
  cat >>confdefs.h <<_ACEOF
73203
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73204
 
_ACEOF
73205
 
 
73206
 
fi
73207
 
done
73208
 
 
73209
 
  
73210
 
        if test "$PHP_LDAP_SASL" != "no"; then
73211
 
    
73212
 
  if test "$PHP_LDAP_SASL" = "yes"; then
73213
 
    SEARCH_DIRS="/usr/local /usr"
73214
 
  else
73215
 
    SEARCH_DIRS=$PHP_LDAP_SASL
73216
 
  fi
73217
 
 
73218
 
  for i in $SEARCH_DIRS; do
73219
 
    if test -f $i/include/sasl/sasl.h; then
73220
 
      LDAP_SASL_DIR=$i
73221
 
      
73222
 
cat >>confdefs.h <<\_ACEOF
73223
 
@%:@define HAVE_LDAP_SASL_SASL_H 1
73224
 
_ACEOF
73225
 
 
73226
 
      break
73227
 
    elif test -f $i/include/sasl.h; then
73228
 
      LDAP_SASL_DIR=$i
73229
 
      
73230
 
cat >>confdefs.h <<\_ACEOF
73231
 
@%:@define HAVE_LDAP_SASL_H 1
73232
 
_ACEOF
73233
 
 
73234
 
      break
73235
 
    fi
73236
 
  done
73237
 
  
73238
 
  if test "$LDAP_SASL_DIR"; then
73239
 
    LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include
73240
 
    LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR
73241
 
  else
73242
 
    { { $as_echo "$as_me:$LINENO: error: sasl.h not found!" >&5
73243
 
$as_echo "$as_me: error: sasl.h not found!" >&2;}
73244
 
   { (exit 1); exit 1; }; }
73245
 
  fi
73246
 
 
73247
 
  if test "$PHP_LDAP_SASL" = "yes"; then
73248
 
    SASL_LIB="-lsasl2"
73249
 
  else
73250
 
    SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2"
73251
 
  fi
73252
 
  
73253
 
  
73254
 
  save_old_LDFLAGS=$LDFLAGS
73255
 
  ac_stuff="
73256
 
    $LDAP_SHARED_LIBADD $SASL_LIB
73257
 
  "
73258
 
  
73259
 
  save_ext_shared=$ext_shared
73260
 
  ext_shared=yes
73261
 
  
73262
 
  for ac_i in $ac_stuff; do
73263
 
    case $ac_i in
73264
 
    -pthread)
73265
 
      if test "$ext_shared" = "yes"; then
73266
 
        LDFLAGS="$LDFLAGS -pthread"
73267
 
      else
73268
 
        
73269
 
  
73270
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
73271
 
  
73272
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
73273
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
73274
 
    eval "EXTRA_LDFLAGS$unique=set"
73275
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
73276
 
  fi
73277
 
 
73278
 
      fi
73279
 
    ;;
73280
 
    -l*)
73281
 
      ac_ii=`echo $ac_i|cut -c 3-`
73282
 
      
73283
 
  
73284
 
  case $ac_ii in
73285
 
  c|c_r|pthread*) ;;
73286
 
  *) 
73287
 
    if test "$ext_shared" = "yes"; then
73288
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
73289
 
    else
73290
 
      
73291
 
  
73292
 
  case $ac_ii in
73293
 
  c|c_r|pthread*) ;;
73294
 
  *) 
73295
 
      LIBS="$LIBS -l$ac_ii" 
73296
 
   ;;
73297
 
  esac
73298
 
 
73299
 
 
73300
 
    fi
73301
 
   ;;
73302
 
  esac
73303
 
 
73304
 
 
73305
 
    ;;
73306
 
    -L*)
73307
 
      ac_ii=`echo $ac_i|cut -c 3-`
73308
 
      
73309
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
73310
 
    
73311
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
73312
 
    ai_p=$ac_ii
73313
 
  else
73314
 
    
73315
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
73316
 
    
73317
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73318
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
73319
 
  fi
73320
 
 
73321
 
    
73322
 
      if test "$ext_shared" = "yes"; then
73323
 
        LDFLAGS="-L$ai_p $LDFLAGS"
73324
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
73325
 
      else
73326
 
        
73327
 
  
73328
 
  
73329
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73330
 
  
73331
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73332
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
73333
 
    eval "LIBPATH$unique=set"
73334
 
    
73335
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73336
 
    LDFLAGS="$LDFLAGS -L$ai_p"
73337
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
73338
 
  
73339
 
  fi
73340
 
 
73341
 
 
73342
 
      fi
73343
 
    
73344
 
  fi
73345
 
 
73346
 
    ;;
73347
 
    esac
73348
 
  done
73349
 
 
73350
 
  { $as_echo "$as_me:$LINENO: checking for sasl_version in -lsasl2" >&5
73351
 
$as_echo_n "checking for sasl_version in -lsasl2... " >&6; }
73352
 
if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then
73353
 
  $as_echo_n "(cached) " >&6
73354
 
else
73355
 
  ac_check_lib_save_LIBS=$LIBS
73356
 
LIBS="-lsasl2  $LIBS"
73357
 
cat >conftest.$ac_ext <<_ACEOF
73358
 
/* confdefs.h.  */
73359
 
_ACEOF
73360
 
cat confdefs.h >>conftest.$ac_ext
73361
 
cat >>conftest.$ac_ext <<_ACEOF
73362
 
/* end confdefs.h.  */
73363
 
 
73364
 
/* Override any GCC internal prototype to avoid an error.
73365
 
   Use char because int might match the return type of a GCC
73366
 
   builtin and then its argument prototype would still apply.  */
73367
 
#ifdef __cplusplus
73368
 
extern "C"
73369
 
#endif
73370
 
char sasl_version ();
73371
 
int
73372
 
main ()
73373
 
{
73374
 
return sasl_version ();
73375
 
  ;
73376
 
  return 0;
73377
 
}
73378
 
_ACEOF
73379
 
rm -f conftest.$ac_objext conftest$ac_exeext
73380
 
if { (ac_try="$ac_link"
73381
 
case "(($ac_try" in
73382
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73383
 
  *) ac_try_echo=$ac_try;;
73384
 
esac
73385
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73386
 
$as_echo "$ac_try_echo") >&5
73387
 
  (eval "$ac_link") 2>conftest.er1
73388
 
  ac_status=$?
73389
 
  grep -v '^ *+' conftest.er1 >conftest.err
73390
 
  rm -f conftest.er1
73391
 
  cat conftest.err >&5
73392
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73393
 
  (exit $ac_status); } && {
73394
 
         test -z "$ac_c_werror_flag" ||
73395
 
         test ! -s conftest.err
73396
 
       } && test -s conftest$ac_exeext && {
73397
 
         test "$cross_compiling" = yes ||
73398
 
         $as_test_x conftest$ac_exeext
73399
 
       }; then
73400
 
  ac_cv_lib_sasl2_sasl_version=yes
73401
 
else
73402
 
  $as_echo "$as_me: failed program was:" >&5
73403
 
sed 's/^/| /' conftest.$ac_ext >&5
73404
 
 
73405
 
        ac_cv_lib_sasl2_sasl_version=no
73406
 
fi
73407
 
 
73408
 
rm -rf conftest.dSYM
73409
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73410
 
      conftest$ac_exeext conftest.$ac_ext
73411
 
LIBS=$ac_check_lib_save_LIBS
73412
 
fi
73413
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_version" >&5
73414
 
$as_echo "$ac_cv_lib_sasl2_sasl_version" >&6; }
73415
 
if test "x$ac_cv_lib_sasl2_sasl_version" = x""yes; then
73416
 
  
73417
 
    LDFLAGS=$save_old_LDFLAGS
73418
 
    ext_shared=$save_ext_shared
73419
 
    
73420
 
    
73421
 
  if test "$LDAP_SASL_INCDIR" != "/usr/include"; then
73422
 
    
73423
 
  if test -z "$LDAP_SASL_INCDIR" || echo "$LDAP_SASL_INCDIR" | grep '^/' >/dev/null ; then
73424
 
    ai_p=$LDAP_SASL_INCDIR
73425
 
  else
73426
 
    
73427
 
    ep_dir="`echo $LDAP_SASL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
73428
 
    
73429
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73430
 
    ai_p="$ep_realdir/`basename \"$LDAP_SASL_INCDIR\"`"
73431
 
  fi
73432
 
 
73433
 
    
73434
 
  
73435
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73436
 
  
73437
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73438
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
73439
 
    eval "INCLUDEPATH$unique=set"
73440
 
    
73441
 
      if test ""; then
73442
 
        INCLUDES="-I$ai_p $INCLUDES"
73443
 
      else
73444
 
        INCLUDES="$INCLUDES -I$ai_p"
73445
 
      fi
73446
 
    
73447
 
  fi
73448
 
 
73449
 
  fi
73450
 
 
73451
 
    
73452
 
 
73453
 
  if test "$ext_shared" = "yes"; then
73454
 
    LDAP_SHARED_LIBADD="-lsasl2 $LDAP_SHARED_LIBADD"
73455
 
    if test -n "$LDAP_SASL_LIBDIR"; then
73456
 
      
73457
 
  if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
73458
 
    
73459
 
  if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
73460
 
    ai_p=$LDAP_SASL_LIBDIR
73461
 
  else
73462
 
    
73463
 
    ep_dir="`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
73464
 
    
73465
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73466
 
    ai_p="$ep_realdir/`basename \"$LDAP_SASL_LIBDIR\"`"
73467
 
  fi
73468
 
 
73469
 
    
73470
 
      if test "$ext_shared" = "yes"; then
73471
 
        LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
73472
 
        test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
73473
 
      else
73474
 
        
73475
 
  
73476
 
  
73477
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73478
 
  
73479
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73480
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
73481
 
    eval "LIBPATH$unique=set"
73482
 
    
73483
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73484
 
    LDFLAGS="$LDFLAGS -L$ai_p"
73485
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
73486
 
  
73487
 
  fi
73488
 
 
73489
 
 
73490
 
      fi
73491
 
    
73492
 
  fi
73493
 
 
73494
 
    fi
73495
 
  else
73496
 
    
73497
 
 
73498
 
  if test -n "$LDAP_SASL_LIBDIR"; then
73499
 
    
73500
 
  if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
73501
 
    
73502
 
  if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
73503
 
    ai_p=$LDAP_SASL_LIBDIR
73504
 
  else
73505
 
    
73506
 
    ep_dir="`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
73507
 
    
73508
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73509
 
    ai_p="$ep_realdir/`basename \"$LDAP_SASL_LIBDIR\"`"
73510
 
  fi
73511
 
 
73512
 
    
73513
 
      
73514
 
  
73515
 
  
73516
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73517
 
  
73518
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73519
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
73520
 
    eval "LIBPATH$unique=set"
73521
 
    
73522
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73523
 
    LDFLAGS="$LDFLAGS -L$ai_p"
73524
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
73525
 
  
73526
 
  fi
73527
 
 
73528
 
 
73529
 
    
73530
 
  fi
73531
 
 
73532
 
  fi
73533
 
  
73534
 
  
73535
 
  case sasl2 in
73536
 
  c|c_r|pthread*) ;;
73537
 
  *) 
73538
 
      LIBS="-lsasl2 $LIBS" 
73539
 
   ;;
73540
 
  esac
73541
 
 
73542
 
 
73543
 
 
73544
 
 
73545
 
  fi
73546
 
 
73547
 
 
73548
 
    
73549
 
cat >>confdefs.h <<\_ACEOF
73550
 
@%:@define HAVE_LDAP_SASL 1
73551
 
_ACEOF
73552
 
 
73553
 
  
73554
 
  
73555
 
else
73556
 
  
73557
 
    LDFLAGS=$save_old_LDFLAGS
73558
 
    ext_shared=$save_ext_shared
73559
 
    unset ac_cv_lib_sasl2_sasl_version
73560
 
    
73561
 
    { { $as_echo "$as_me:$LINENO: error: LDAP SASL check failed. Please check config.log for more information." >&5
73562
 
$as_echo "$as_me: error: LDAP SASL check failed. Please check config.log for more information." >&2;}
73563
 
   { (exit 1); exit 1; }; }
73564
 
  
73565
 
  
73566
 
fi
73567
 
 
73568
 
 
73569
 
  fi
73570
 
 
73571
 
        { $as_echo "$as_me:$LINENO: checking for ldap_bind_s" >&5
73572
 
$as_echo_n "checking for ldap_bind_s... " >&6; }
73573
 
if test "${ac_cv_func_ldap_bind_s+set}" = set; then
73574
 
  $as_echo_n "(cached) " >&6
73575
 
else
73576
 
  cat >conftest.$ac_ext <<_ACEOF
73577
 
/* confdefs.h.  */
73578
 
_ACEOF
73579
 
cat confdefs.h >>conftest.$ac_ext
73580
 
cat >>conftest.$ac_ext <<_ACEOF
73581
 
/* end confdefs.h.  */
73582
 
/* Define ldap_bind_s to an innocuous variant, in case <limits.h> declares ldap_bind_s.
73583
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73584
 
#define ldap_bind_s innocuous_ldap_bind_s
73585
 
 
73586
 
/* System header to define __stub macros and hopefully few prototypes,
73587
 
    which can conflict with char ldap_bind_s (); below.
73588
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73589
 
    <limits.h> exists even on freestanding compilers.  */
73590
 
 
73591
 
#ifdef __STDC__
73592
 
# include <limits.h>
73593
 
#else
73594
 
# include <assert.h>
73595
 
#endif
73596
 
 
73597
 
#undef ldap_bind_s
73598
 
 
73599
 
/* Override any GCC internal prototype to avoid an error.
73600
 
   Use char because int might match the return type of a GCC
73601
 
   builtin and then its argument prototype would still apply.  */
73602
 
#ifdef __cplusplus
73603
 
extern "C"
73604
 
#endif
73605
 
char ldap_bind_s ();
73606
 
/* The GNU C library defines this for functions which it implements
73607
 
    to always fail with ENOSYS.  Some functions are actually named
73608
 
    something starting with __ and the normal name is an alias.  */
73609
 
#if defined __stub_ldap_bind_s || defined __stub___ldap_bind_s
73610
 
choke me
73611
 
#endif
73612
 
 
73613
 
int
73614
 
main ()
73615
 
{
73616
 
return ldap_bind_s ();
73617
 
  ;
73618
 
  return 0;
73619
 
}
73620
 
_ACEOF
73621
 
rm -f conftest.$ac_objext conftest$ac_exeext
73622
 
if { (ac_try="$ac_link"
73623
 
case "(($ac_try" in
73624
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73625
 
  *) ac_try_echo=$ac_try;;
73626
 
esac
73627
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73628
 
$as_echo "$ac_try_echo") >&5
73629
 
  (eval "$ac_link") 2>conftest.er1
73630
 
  ac_status=$?
73631
 
  grep -v '^ *+' conftest.er1 >conftest.err
73632
 
  rm -f conftest.er1
73633
 
  cat conftest.err >&5
73634
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73635
 
  (exit $ac_status); } && {
73636
 
         test -z "$ac_c_werror_flag" ||
73637
 
         test ! -s conftest.err
73638
 
       } && test -s conftest$ac_exeext && {
73639
 
         test "$cross_compiling" = yes ||
73640
 
         $as_test_x conftest$ac_exeext
73641
 
       }; then
73642
 
  ac_cv_func_ldap_bind_s=yes
73643
 
else
73644
 
  $as_echo "$as_me: failed program was:" >&5
73645
 
sed 's/^/| /' conftest.$ac_ext >&5
73646
 
 
73647
 
        ac_cv_func_ldap_bind_s=no
73648
 
fi
73649
 
 
73650
 
rm -rf conftest.dSYM
73651
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73652
 
      conftest$ac_exeext conftest.$ac_ext
73653
 
fi
73654
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_bind_s" >&5
73655
 
$as_echo "$ac_cv_func_ldap_bind_s" >&6; }
73656
 
if test "x$ac_cv_func_ldap_bind_s" = x""yes; then
73657
 
  :
73658
 
else
73659
 
  
73660
 
    { { $as_echo "$as_me:$LINENO: error: LDAP build check failed. Please check config.log for more information." >&5
73661
 
$as_echo "$as_me: error: LDAP build check failed. Please check config.log for more information." >&2;}
73662
 
   { (exit 1); exit 1; }; } 
73663
 
  
73664
 
fi
73665
 
 
73666
 
  
73667
 
    CPPFLAGS=$_SAVE_CPPFLAGS
73668
 
  LIBS=$_SAVE_LIBS
73669
 
fi 
73670
 
 
73671
 
 
73672
 
 
73673
 
 
73674
 
 
73675
 
 
73676
 
 
73677
 
 
73678
 
 
73679
 
 
73680
 
 
73681
 
 
73682
 
 
73683
 
 
73684
 
 
73685
 
 
73686
 
 
73687
 
 
73688
 
 
73689
 
 
73690
 
 
73691
 
 
73692
 
 
73693
 
 
73694
 
php_enable_mbstring=no
73695
 
 
73696
 
{ $as_echo "$as_me:$LINENO: checking whether to enable multibyte string support" >&5
73697
 
$as_echo_n "checking whether to enable multibyte string support... " >&6; }
73698
 
@%:@ Check whether --enable-mbstring was given.
73699
 
if test "${enable_mbstring+set}" = set; then
73700
 
  enableval=$enable_mbstring; PHP_MBSTRING=$enableval
73701
 
else
73702
 
  
73703
 
  PHP_MBSTRING=no
73704
 
  test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL
73705
 
 
73706
 
fi
73707
 
 
73708
 
 
73709
 
 
73710
 
ext_output="yes, shared"
73711
 
ext_shared=yes
73712
 
case $PHP_MBSTRING in
73713
 
shared,*)
73714
 
  PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'`
73715
 
  ;;
73716
 
shared)
73717
 
  PHP_MBSTRING=yes
73718
 
  ;;
73719
 
no)
73720
 
  ext_output=no
73721
 
  ext_shared=no
73722
 
  ;;
73723
 
*)
73724
 
  ext_output=yes
73725
 
  ext_shared=no
73726
 
  ;;
73727
 
esac
73728
 
 
73729
 
 
73730
 
 
73731
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
73732
 
$as_echo "$ext_output" >&6; }
73733
 
 
73734
 
 
73735
 
 
73736
 
 
73737
 
 
73738
 
php_enable_mbregex=yes
73739
 
 
73740
 
{ $as_echo "$as_me:$LINENO: checking whether to enable multibyte regex support" >&5
73741
 
$as_echo_n "checking whether to enable multibyte regex support... " >&6; }
73742
 
@%:@ Check whether --enable-mbregex was given.
73743
 
if test "${enable_mbregex+set}" = set; then
73744
 
  enableval=$enable_mbregex; PHP_MBREGEX=$enableval
73745
 
else
73746
 
  
73747
 
  PHP_MBREGEX=yes
73748
 
  
73749
 
 
73750
 
fi
73751
 
 
73752
 
 
73753
 
ext_output=$PHP_MBREGEX
73754
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
73755
 
$as_echo "$ext_output" >&6; }
73756
 
 
73757
 
 
73758
 
 
73759
 
 
73760
 
 
73761
 
php_enable_mbregex_backtrack=yes
73762
 
 
73763
 
{ $as_echo "$as_me:$LINENO: checking whether to check multibyte regex backtrack" >&5
73764
 
$as_echo_n "checking whether to check multibyte regex backtrack... " >&6; }
73765
 
@%:@ Check whether --enable-mbregex_backtrack was given.
73766
 
if test "${enable_mbregex_backtrack+set}" = set; then
73767
 
  enableval=$enable_mbregex_backtrack; PHP_MBREGEX_BACKTRACK=$enableval
73768
 
else
73769
 
  
73770
 
  PHP_MBREGEX_BACKTRACK=yes
73771
 
  
73772
 
 
73773
 
fi
73774
 
 
73775
 
 
73776
 
ext_output=$PHP_MBREGEX_BACKTRACK
73777
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
73778
 
$as_echo "$ext_output" >&6; }
73779
 
 
73780
 
 
73781
 
 
73782
 
 
73783
 
 
73784
 
php_with_libmbfl=no
73785
 
 
73786
 
{ $as_echo "$as_me:$LINENO: checking for external libmbfl" >&5
73787
 
$as_echo_n "checking for external libmbfl... " >&6; }
73788
 
 
73789
 
@%:@ Check whether --with-libmbfl was given.
73790
 
if test "${with_libmbfl+set}" = set; then
73791
 
  withval=$with_libmbfl; PHP_LIBMBFL=$withval
73792
 
else
73793
 
  
73794
 
  PHP_LIBMBFL=no
73795
 
  
73796
 
 
73797
 
fi
73798
 
 
73799
 
 
73800
 
ext_output=$PHP_LIBMBFL
73801
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
73802
 
$as_echo "$ext_output" >&6; }
73803
 
 
73804
 
 
73805
 
 
73806
 
 
73807
 
 
73808
 
php_with_onig=no
73809
 
 
73810
 
{ $as_echo "$as_me:$LINENO: checking for external oniguruma" >&5
73811
 
$as_echo_n "checking for external oniguruma... " >&6; }
73812
 
 
73813
 
@%:@ Check whether --with-onig was given.
73814
 
if test "${with_onig+set}" = set; then
73815
 
  withval=$with_onig; PHP_ONIG=$withval
73816
 
else
73817
 
  
73818
 
  PHP_ONIG=no
73819
 
  
73820
 
 
73821
 
fi
73822
 
 
73823
 
 
73824
 
ext_output=$PHP_ONIG
73825
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
73826
 
$as_echo "$ext_output" >&6; }
73827
 
 
73828
 
 
73829
 
 
73830
 
 
73831
 
if test "$PHP_MBSTRING" != "no"; then  
73832
 
  
73833
 
cat >>confdefs.h <<\_ACEOF
73834
 
@%:@define HAVE_MBSTRING 1
73835
 
_ACEOF
73836
 
 
73837
 
 
73838
 
  
73839
 
  PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c"
73840
 
 
73841
 
 
73842
 
  if test "$PHP_MBREGEX" != "no"; then
73843
 
    
73844
 
  if test "$PHP_MBREGEX" = "yes"; then
73845
 
    if test "$PHP_ONIG" = "yes" || test "$PHP_ONIG" = "no"; then
73846
 
                        if test "$PHP_MBREGEX_BACKTRACK" != "no"; then
73847
 
        
73848
 
cat >>confdefs.h <<\_ACEOF
73849
 
@%:@define USE_COMBINATION_EXPLOSION_CHECK 1
73850
 
_ACEOF
73851
 
 
73852
 
      fi
73853
 
 
73854
 
      { $as_echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
73855
 
$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
73856
 
if test "${php_cv_mbstring_stdarg+set}" = set; then
73857
 
  $as_echo_n "(cached) " >&6
73858
 
else
73859
 
  
73860
 
        if test "$cross_compiling" = yes; then
73861
 
  
73862
 
                    case $host_alias in
73863
 
          *netware*)
73864
 
          php_cv_mbstring_stdarg=yes
73865
 
          ;;
73866
 
          *)
73867
 
          php_cv_mbstring_stdarg=no
73868
 
          ;;
73869
 
          esac
73870
 
        
73871
 
else
73872
 
  cat >conftest.$ac_ext <<_ACEOF
73873
 
/* confdefs.h.  */
73874
 
_ACEOF
73875
 
cat confdefs.h >>conftest.$ac_ext
73876
 
cat >>conftest.$ac_ext <<_ACEOF
73877
 
/* end confdefs.h.  */
73878
 
 
73879
 
#include <stdarg.h>
73880
 
int foo(int x, ...) {
73881
 
        va_list va;
73882
 
        va_start(va, x);
73883
 
        va_arg(va, int);
73884
 
        va_arg(va, char *);
73885
 
        va_arg(va, double);
73886
 
        return 0;
73887
 
}
73888
 
int main() { return foo(10, "", 3.14); }
73889
 
        
73890
 
_ACEOF
73891
 
rm -f conftest$ac_exeext
73892
 
if { (ac_try="$ac_link"
73893
 
case "(($ac_try" in
73894
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73895
 
  *) ac_try_echo=$ac_try;;
73896
 
esac
73897
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73898
 
$as_echo "$ac_try_echo") >&5
73899
 
  (eval "$ac_link") 2>&5
73900
 
  ac_status=$?
73901
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73902
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
73903
 
  { (case "(($ac_try" in
73904
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73905
 
  *) ac_try_echo=$ac_try;;
73906
 
esac
73907
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73908
 
$as_echo "$ac_try_echo") >&5
73909
 
  (eval "$ac_try") 2>&5
73910
 
  ac_status=$?
73911
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73912
 
  (exit $ac_status); }; }; then
73913
 
  php_cv_mbstring_stdarg=yes
73914
 
else
73915
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
73916
 
$as_echo "$as_me: failed program was:" >&5
73917
 
sed 's/^/| /' conftest.$ac_ext >&5
73918
 
 
73919
 
( exit $ac_status )
73920
 
php_cv_mbstring_stdarg=no
73921
 
fi
73922
 
rm -rf conftest.dSYM
73923
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
73924
 
fi
73925
 
 
73926
 
 
73927
 
      
73928
 
fi
73929
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_mbstring_stdarg" >&5
73930
 
$as_echo "$php_cv_mbstring_stdarg" >&6; }
73931
 
 
73932
 
      
73933
 
 
73934
 
 
73935
 
 
73936
 
 
73937
 
 
73938
 
 
73939
 
for ac_header in stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h
73940
 
do
73941
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
73942
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73943
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
73944
 
$as_echo_n "checking for $ac_header... " >&6; }
73945
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73946
 
  $as_echo_n "(cached) " >&6
73947
 
fi
73948
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
73949
 
                 $as_echo "$as_val"'`
73950
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73951
 
$as_echo "$ac_res" >&6; }
73952
 
else
73953
 
  # Is the header compilable?
73954
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
73955
 
$as_echo_n "checking $ac_header usability... " >&6; }
73956
 
cat >conftest.$ac_ext <<_ACEOF
73957
 
/* confdefs.h.  */
73958
 
_ACEOF
73959
 
cat confdefs.h >>conftest.$ac_ext
73960
 
cat >>conftest.$ac_ext <<_ACEOF
73961
 
/* end confdefs.h.  */
73962
 
$ac_includes_default
73963
 
@%:@include <$ac_header>
73964
 
_ACEOF
73965
 
rm -f conftest.$ac_objext
73966
 
if { (ac_try="$ac_compile"
73967
 
case "(($ac_try" in
73968
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73969
 
  *) ac_try_echo=$ac_try;;
73970
 
esac
73971
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73972
 
$as_echo "$ac_try_echo") >&5
73973
 
  (eval "$ac_compile") 2>conftest.er1
73974
 
  ac_status=$?
73975
 
  grep -v '^ *+' conftest.er1 >conftest.err
73976
 
  rm -f conftest.er1
73977
 
  cat conftest.err >&5
73978
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73979
 
  (exit $ac_status); } && {
73980
 
         test -z "$ac_c_werror_flag" ||
73981
 
         test ! -s conftest.err
73982
 
       } && test -s conftest.$ac_objext; then
73983
 
  ac_header_compiler=yes
73984
 
else
73985
 
  $as_echo "$as_me: failed program was:" >&5
73986
 
sed 's/^/| /' conftest.$ac_ext >&5
73987
 
 
73988
 
        ac_header_compiler=no
73989
 
fi
73990
 
 
73991
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73992
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
73993
 
$as_echo "$ac_header_compiler" >&6; }
73994
 
 
73995
 
# Is the header present?
73996
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
73997
 
$as_echo_n "checking $ac_header presence... " >&6; }
73998
 
cat >conftest.$ac_ext <<_ACEOF
73999
 
/* confdefs.h.  */
74000
 
_ACEOF
74001
 
cat confdefs.h >>conftest.$ac_ext
74002
 
cat >>conftest.$ac_ext <<_ACEOF
74003
 
/* end confdefs.h.  */
74004
 
@%:@include <$ac_header>
74005
 
_ACEOF
74006
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
74007
 
case "(($ac_try" in
74008
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74009
 
  *) ac_try_echo=$ac_try;;
74010
 
esac
74011
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74012
 
$as_echo "$ac_try_echo") >&5
74013
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
74014
 
  ac_status=$?
74015
 
  grep -v '^ *+' conftest.er1 >conftest.err
74016
 
  rm -f conftest.er1
74017
 
  cat conftest.err >&5
74018
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74019
 
  (exit $ac_status); } >/dev/null && {
74020
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
74021
 
         test ! -s conftest.err
74022
 
       }; then
74023
 
  ac_header_preproc=yes
74024
 
else
74025
 
  $as_echo "$as_me: failed program was:" >&5
74026
 
sed 's/^/| /' conftest.$ac_ext >&5
74027
 
 
74028
 
  ac_header_preproc=no
74029
 
fi
74030
 
 
74031
 
rm -f conftest.err conftest.$ac_ext
74032
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
74033
 
$as_echo "$ac_header_preproc" >&6; }
74034
 
 
74035
 
# So?  What about this header?
74036
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
74037
 
  yes:no: )
74038
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
74039
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
74040
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
74041
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
74042
 
    ac_header_preproc=yes
74043
 
    ;;
74044
 
  no:yes:* )
74045
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
74046
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
74047
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
74048
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
74049
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
74050
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
74051
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
74052
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
74053
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
74054
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
74055
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
74056
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
74057
 
    
74058
 
    ;;
74059
 
esac
74060
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
74061
 
$as_echo_n "checking for $ac_header... " >&6; }
74062
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74063
 
  $as_echo_n "(cached) " >&6
74064
 
else
74065
 
  eval "$as_ac_Header=\$ac_header_preproc"
74066
 
fi
74067
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
74068
 
                 $as_echo "$as_val"'`
74069
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
74070
 
$as_echo "$ac_res" >&6; }
74071
 
 
74072
 
fi
74073
 
as_val=`eval 'as_val=${'$as_ac_Header'}
74074
 
                 $as_echo "$as_val"'`
74075
 
   if test "x$as_val" = x""yes; then
74076
 
  cat >>confdefs.h <<_ACEOF
74077
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
74078
 
_ACEOF
74079
 
 
74080
 
fi
74081
 
 
74082
 
done
74083
 
 
74084
 
      # The cast to long int works around a bug in the HP C Compiler
74085
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
74086
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
74087
 
# This bug is HP SR number 8606223364.
74088
 
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
74089
 
$as_echo_n "checking size of int... " >&6; }
74090
 
if test "${ac_cv_sizeof_int+set}" = set; then
74091
 
  $as_echo_n "(cached) " >&6
74092
 
else
74093
 
  if test "$cross_compiling" = yes; then
74094
 
  # Depending upon the size, compute the lo and hi bounds.
74095
 
cat >conftest.$ac_ext <<_ACEOF
74096
 
/* confdefs.h.  */
74097
 
_ACEOF
74098
 
cat confdefs.h >>conftest.$ac_ext
74099
 
cat >>conftest.$ac_ext <<_ACEOF
74100
 
/* end confdefs.h.  */
74101
 
$ac_includes_default
74102
 
int
74103
 
main ()
74104
 
{
74105
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= 0)@:>@;
74106
 
test_array @<:@0@:>@ = 0
74107
 
 
74108
 
  ;
74109
 
  return 0;
74110
 
}
74111
 
_ACEOF
74112
 
rm -f conftest.$ac_objext
74113
 
if { (ac_try="$ac_compile"
74114
 
case "(($ac_try" in
74115
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74116
 
  *) ac_try_echo=$ac_try;;
74117
 
esac
74118
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74119
 
$as_echo "$ac_try_echo") >&5
74120
 
  (eval "$ac_compile") 2>conftest.er1
74121
 
  ac_status=$?
74122
 
  grep -v '^ *+' conftest.er1 >conftest.err
74123
 
  rm -f conftest.er1
74124
 
  cat conftest.err >&5
74125
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74126
 
  (exit $ac_status); } && {
74127
 
         test -z "$ac_c_werror_flag" ||
74128
 
         test ! -s conftest.err
74129
 
       } && test -s conftest.$ac_objext; then
74130
 
  ac_lo=0 ac_mid=0
74131
 
  while :; do
74132
 
    cat >conftest.$ac_ext <<_ACEOF
74133
 
/* confdefs.h.  */
74134
 
_ACEOF
74135
 
cat confdefs.h >>conftest.$ac_ext
74136
 
cat >>conftest.$ac_ext <<_ACEOF
74137
 
/* end confdefs.h.  */
74138
 
$ac_includes_default
74139
 
int
74140
 
main ()
74141
 
{
74142
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
74143
 
test_array @<:@0@:>@ = 0
74144
 
 
74145
 
  ;
74146
 
  return 0;
74147
 
}
74148
 
_ACEOF
74149
 
rm -f conftest.$ac_objext
74150
 
if { (ac_try="$ac_compile"
74151
 
case "(($ac_try" in
74152
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74153
 
  *) ac_try_echo=$ac_try;;
74154
 
esac
74155
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74156
 
$as_echo "$ac_try_echo") >&5
74157
 
  (eval "$ac_compile") 2>conftest.er1
74158
 
  ac_status=$?
74159
 
  grep -v '^ *+' conftest.er1 >conftest.err
74160
 
  rm -f conftest.er1
74161
 
  cat conftest.err >&5
74162
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74163
 
  (exit $ac_status); } && {
74164
 
         test -z "$ac_c_werror_flag" ||
74165
 
         test ! -s conftest.err
74166
 
       } && test -s conftest.$ac_objext; then
74167
 
  ac_hi=$ac_mid; break
74168
 
else
74169
 
  $as_echo "$as_me: failed program was:" >&5
74170
 
sed 's/^/| /' conftest.$ac_ext >&5
74171
 
 
74172
 
        ac_lo=`expr $ac_mid + 1`
74173
 
                        if test $ac_lo -le $ac_mid; then
74174
 
                          ac_lo= ac_hi=
74175
 
                          break
74176
 
                        fi
74177
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
74178
 
fi
74179
 
 
74180
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74181
 
  done
74182
 
else
74183
 
  $as_echo "$as_me: failed program was:" >&5
74184
 
sed 's/^/| /' conftest.$ac_ext >&5
74185
 
 
74186
 
        cat >conftest.$ac_ext <<_ACEOF
74187
 
/* confdefs.h.  */
74188
 
_ACEOF
74189
 
cat confdefs.h >>conftest.$ac_ext
74190
 
cat >>conftest.$ac_ext <<_ACEOF
74191
 
/* end confdefs.h.  */
74192
 
$ac_includes_default
74193
 
int
74194
 
main ()
74195
 
{
74196
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) < 0)@:>@;
74197
 
test_array @<:@0@:>@ = 0
74198
 
 
74199
 
  ;
74200
 
  return 0;
74201
 
}
74202
 
_ACEOF
74203
 
rm -f conftest.$ac_objext
74204
 
if { (ac_try="$ac_compile"
74205
 
case "(($ac_try" in
74206
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74207
 
  *) ac_try_echo=$ac_try;;
74208
 
esac
74209
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74210
 
$as_echo "$ac_try_echo") >&5
74211
 
  (eval "$ac_compile") 2>conftest.er1
74212
 
  ac_status=$?
74213
 
  grep -v '^ *+' conftest.er1 >conftest.err
74214
 
  rm -f conftest.er1
74215
 
  cat conftest.err >&5
74216
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74217
 
  (exit $ac_status); } && {
74218
 
         test -z "$ac_c_werror_flag" ||
74219
 
         test ! -s conftest.err
74220
 
       } && test -s conftest.$ac_objext; then
74221
 
  ac_hi=-1 ac_mid=-1
74222
 
  while :; do
74223
 
    cat >conftest.$ac_ext <<_ACEOF
74224
 
/* confdefs.h.  */
74225
 
_ACEOF
74226
 
cat confdefs.h >>conftest.$ac_ext
74227
 
cat >>conftest.$ac_ext <<_ACEOF
74228
 
/* end confdefs.h.  */
74229
 
$ac_includes_default
74230
 
int
74231
 
main ()
74232
 
{
74233
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)@:>@;
74234
 
test_array @<:@0@:>@ = 0
74235
 
 
74236
 
  ;
74237
 
  return 0;
74238
 
}
74239
 
_ACEOF
74240
 
rm -f conftest.$ac_objext
74241
 
if { (ac_try="$ac_compile"
74242
 
case "(($ac_try" in
74243
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74244
 
  *) ac_try_echo=$ac_try;;
74245
 
esac
74246
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74247
 
$as_echo "$ac_try_echo") >&5
74248
 
  (eval "$ac_compile") 2>conftest.er1
74249
 
  ac_status=$?
74250
 
  grep -v '^ *+' conftest.er1 >conftest.err
74251
 
  rm -f conftest.er1
74252
 
  cat conftest.err >&5
74253
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74254
 
  (exit $ac_status); } && {
74255
 
         test -z "$ac_c_werror_flag" ||
74256
 
         test ! -s conftest.err
74257
 
       } && test -s conftest.$ac_objext; then
74258
 
  ac_lo=$ac_mid; break
74259
 
else
74260
 
  $as_echo "$as_me: failed program was:" >&5
74261
 
sed 's/^/| /' conftest.$ac_ext >&5
74262
 
 
74263
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
74264
 
                        if test $ac_mid -le $ac_hi; then
74265
 
                          ac_lo= ac_hi=
74266
 
                          break
74267
 
                        fi
74268
 
                        ac_mid=`expr 2 '*' $ac_mid`
74269
 
fi
74270
 
 
74271
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74272
 
  done
74273
 
else
74274
 
  $as_echo "$as_me: failed program was:" >&5
74275
 
sed 's/^/| /' conftest.$ac_ext >&5
74276
 
 
74277
 
        ac_lo= ac_hi=
74278
 
fi
74279
 
 
74280
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74281
 
fi
74282
 
 
74283
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74284
 
# Binary search between lo and hi bounds.
74285
 
while test "x$ac_lo" != "x$ac_hi"; do
74286
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
74287
 
  cat >conftest.$ac_ext <<_ACEOF
74288
 
/* confdefs.h.  */
74289
 
_ACEOF
74290
 
cat confdefs.h >>conftest.$ac_ext
74291
 
cat >>conftest.$ac_ext <<_ACEOF
74292
 
/* end confdefs.h.  */
74293
 
$ac_includes_default
74294
 
int
74295
 
main ()
74296
 
{
74297
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
74298
 
test_array @<:@0@:>@ = 0
74299
 
 
74300
 
  ;
74301
 
  return 0;
74302
 
}
74303
 
_ACEOF
74304
 
rm -f conftest.$ac_objext
74305
 
if { (ac_try="$ac_compile"
74306
 
case "(($ac_try" in
74307
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74308
 
  *) ac_try_echo=$ac_try;;
74309
 
esac
74310
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74311
 
$as_echo "$ac_try_echo") >&5
74312
 
  (eval "$ac_compile") 2>conftest.er1
74313
 
  ac_status=$?
74314
 
  grep -v '^ *+' conftest.er1 >conftest.err
74315
 
  rm -f conftest.er1
74316
 
  cat conftest.err >&5
74317
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74318
 
  (exit $ac_status); } && {
74319
 
         test -z "$ac_c_werror_flag" ||
74320
 
         test ! -s conftest.err
74321
 
       } && test -s conftest.$ac_objext; then
74322
 
  ac_hi=$ac_mid
74323
 
else
74324
 
  $as_echo "$as_me: failed program was:" >&5
74325
 
sed 's/^/| /' conftest.$ac_ext >&5
74326
 
 
74327
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
74328
 
fi
74329
 
 
74330
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74331
 
done
74332
 
case $ac_lo in
74333
 
?*) ac_cv_sizeof_int=$ac_lo;;
74334
 
'') if test "$ac_cv_type_int" = yes; then
74335
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
74336
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
74337
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
74338
 
See \`config.log' for more details." >&5
74339
 
$as_echo "$as_me: error: cannot compute sizeof (int)
74340
 
See \`config.log' for more details." >&2;}
74341
 
   { (exit 77); exit 77; }; }; }
74342
 
   else
74343
 
     ac_cv_sizeof_int=0
74344
 
   fi ;;
74345
 
esac
74346
 
else
74347
 
  cat >conftest.$ac_ext <<_ACEOF
74348
 
/* confdefs.h.  */
74349
 
_ACEOF
74350
 
cat confdefs.h >>conftest.$ac_ext
74351
 
cat >>conftest.$ac_ext <<_ACEOF
74352
 
/* end confdefs.h.  */
74353
 
$ac_includes_default
74354
 
static long int longval () { return (long int) (sizeof (int)); }
74355
 
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
74356
 
@%:@include <stdio.h>
74357
 
@%:@include <stdlib.h>
74358
 
int
74359
 
main ()
74360
 
{
74361
 
 
74362
 
  FILE *f = fopen ("conftest.val", "w");
74363
 
  if (! f)
74364
 
    return 1;
74365
 
  if (((long int) (sizeof (int))) < 0)
74366
 
    {
74367
 
      long int i = longval ();
74368
 
      if (i != ((long int) (sizeof (int))))
74369
 
        return 1;
74370
 
      fprintf (f, "%ld", i);
74371
 
    }
74372
 
  else
74373
 
    {
74374
 
      unsigned long int i = ulongval ();
74375
 
      if (i != ((long int) (sizeof (int))))
74376
 
        return 1;
74377
 
      fprintf (f, "%lu", i);
74378
 
    }
74379
 
  /* Do not output a trailing newline, as this causes \r\n confusion
74380
 
     on some platforms.  */
74381
 
  return ferror (f) || fclose (f) != 0;
74382
 
 
74383
 
  ;
74384
 
  return 0;
74385
 
}
74386
 
_ACEOF
74387
 
rm -f conftest$ac_exeext
74388
 
if { (ac_try="$ac_link"
74389
 
case "(($ac_try" in
74390
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74391
 
  *) ac_try_echo=$ac_try;;
74392
 
esac
74393
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74394
 
$as_echo "$ac_try_echo") >&5
74395
 
  (eval "$ac_link") 2>&5
74396
 
  ac_status=$?
74397
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74398
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
74399
 
  { (case "(($ac_try" in
74400
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74401
 
  *) ac_try_echo=$ac_try;;
74402
 
esac
74403
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74404
 
$as_echo "$ac_try_echo") >&5
74405
 
  (eval "$ac_try") 2>&5
74406
 
  ac_status=$?
74407
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74408
 
  (exit $ac_status); }; }; then
74409
 
  ac_cv_sizeof_int=`cat conftest.val`
74410
 
else
74411
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
74412
 
$as_echo "$as_me: failed program was:" >&5
74413
 
sed 's/^/| /' conftest.$ac_ext >&5
74414
 
 
74415
 
( exit $ac_status )
74416
 
if test "$ac_cv_type_int" = yes; then
74417
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
74418
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
74419
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
74420
 
See \`config.log' for more details." >&5
74421
 
$as_echo "$as_me: error: cannot compute sizeof (int)
74422
 
See \`config.log' for more details." >&2;}
74423
 
   { (exit 77); exit 77; }; }; }
74424
 
   else
74425
 
     ac_cv_sizeof_int=0
74426
 
   fi
74427
 
fi
74428
 
rm -rf conftest.dSYM
74429
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
74430
 
fi
74431
 
rm -f conftest.val
74432
 
fi
74433
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
74434
 
$as_echo "$ac_cv_sizeof_int" >&6; }
74435
 
 
74436
 
 
74437
 
 
74438
 
cat >>confdefs.h <<_ACEOF
74439
 
@%:@define SIZEOF_INT $ac_cv_sizeof_int
74440
 
_ACEOF
74441
 
 
74442
 
 
74443
 
      # The cast to long int works around a bug in the HP C Compiler
74444
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
74445
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
74446
 
# This bug is HP SR number 8606223364.
74447
 
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
74448
 
$as_echo_n "checking size of short... " >&6; }
74449
 
if test "${ac_cv_sizeof_short+set}" = set; then
74450
 
  $as_echo_n "(cached) " >&6
74451
 
else
74452
 
  if test "$cross_compiling" = yes; then
74453
 
  # Depending upon the size, compute the lo and hi bounds.
74454
 
cat >conftest.$ac_ext <<_ACEOF
74455
 
/* confdefs.h.  */
74456
 
_ACEOF
74457
 
cat confdefs.h >>conftest.$ac_ext
74458
 
cat >>conftest.$ac_ext <<_ACEOF
74459
 
/* end confdefs.h.  */
74460
 
$ac_includes_default
74461
 
int
74462
 
main ()
74463
 
{
74464
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= 0)@:>@;
74465
 
test_array @<:@0@:>@ = 0
74466
 
 
74467
 
  ;
74468
 
  return 0;
74469
 
}
74470
 
_ACEOF
74471
 
rm -f conftest.$ac_objext
74472
 
if { (ac_try="$ac_compile"
74473
 
case "(($ac_try" in
74474
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74475
 
  *) ac_try_echo=$ac_try;;
74476
 
esac
74477
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74478
 
$as_echo "$ac_try_echo") >&5
74479
 
  (eval "$ac_compile") 2>conftest.er1
74480
 
  ac_status=$?
74481
 
  grep -v '^ *+' conftest.er1 >conftest.err
74482
 
  rm -f conftest.er1
74483
 
  cat conftest.err >&5
74484
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74485
 
  (exit $ac_status); } && {
74486
 
         test -z "$ac_c_werror_flag" ||
74487
 
         test ! -s conftest.err
74488
 
       } && test -s conftest.$ac_objext; then
74489
 
  ac_lo=0 ac_mid=0
74490
 
  while :; do
74491
 
    cat >conftest.$ac_ext <<_ACEOF
74492
 
/* confdefs.h.  */
74493
 
_ACEOF
74494
 
cat confdefs.h >>conftest.$ac_ext
74495
 
cat >>conftest.$ac_ext <<_ACEOF
74496
 
/* end confdefs.h.  */
74497
 
$ac_includes_default
74498
 
int
74499
 
main ()
74500
 
{
74501
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@;
74502
 
test_array @<:@0@:>@ = 0
74503
 
 
74504
 
  ;
74505
 
  return 0;
74506
 
}
74507
 
_ACEOF
74508
 
rm -f conftest.$ac_objext
74509
 
if { (ac_try="$ac_compile"
74510
 
case "(($ac_try" in
74511
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74512
 
  *) ac_try_echo=$ac_try;;
74513
 
esac
74514
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74515
 
$as_echo "$ac_try_echo") >&5
74516
 
  (eval "$ac_compile") 2>conftest.er1
74517
 
  ac_status=$?
74518
 
  grep -v '^ *+' conftest.er1 >conftest.err
74519
 
  rm -f conftest.er1
74520
 
  cat conftest.err >&5
74521
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74522
 
  (exit $ac_status); } && {
74523
 
         test -z "$ac_c_werror_flag" ||
74524
 
         test ! -s conftest.err
74525
 
       } && test -s conftest.$ac_objext; then
74526
 
  ac_hi=$ac_mid; break
74527
 
else
74528
 
  $as_echo "$as_me: failed program was:" >&5
74529
 
sed 's/^/| /' conftest.$ac_ext >&5
74530
 
 
74531
 
        ac_lo=`expr $ac_mid + 1`
74532
 
                        if test $ac_lo -le $ac_mid; then
74533
 
                          ac_lo= ac_hi=
74534
 
                          break
74535
 
                        fi
74536
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
74537
 
fi
74538
 
 
74539
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74540
 
  done
74541
 
else
74542
 
  $as_echo "$as_me: failed program was:" >&5
74543
 
sed 's/^/| /' conftest.$ac_ext >&5
74544
 
 
74545
 
        cat >conftest.$ac_ext <<_ACEOF
74546
 
/* confdefs.h.  */
74547
 
_ACEOF
74548
 
cat confdefs.h >>conftest.$ac_ext
74549
 
cat >>conftest.$ac_ext <<_ACEOF
74550
 
/* end confdefs.h.  */
74551
 
$ac_includes_default
74552
 
int
74553
 
main ()
74554
 
{
74555
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) < 0)@:>@;
74556
 
test_array @<:@0@:>@ = 0
74557
 
 
74558
 
  ;
74559
 
  return 0;
74560
 
}
74561
 
_ACEOF
74562
 
rm -f conftest.$ac_objext
74563
 
if { (ac_try="$ac_compile"
74564
 
case "(($ac_try" in
74565
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74566
 
  *) ac_try_echo=$ac_try;;
74567
 
esac
74568
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74569
 
$as_echo "$ac_try_echo") >&5
74570
 
  (eval "$ac_compile") 2>conftest.er1
74571
 
  ac_status=$?
74572
 
  grep -v '^ *+' conftest.er1 >conftest.err
74573
 
  rm -f conftest.er1
74574
 
  cat conftest.err >&5
74575
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74576
 
  (exit $ac_status); } && {
74577
 
         test -z "$ac_c_werror_flag" ||
74578
 
         test ! -s conftest.err
74579
 
       } && test -s conftest.$ac_objext; then
74580
 
  ac_hi=-1 ac_mid=-1
74581
 
  while :; do
74582
 
    cat >conftest.$ac_ext <<_ACEOF
74583
 
/* confdefs.h.  */
74584
 
_ACEOF
74585
 
cat confdefs.h >>conftest.$ac_ext
74586
 
cat >>conftest.$ac_ext <<_ACEOF
74587
 
/* end confdefs.h.  */
74588
 
$ac_includes_default
74589
 
int
74590
 
main ()
74591
 
{
74592
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)@:>@;
74593
 
test_array @<:@0@:>@ = 0
74594
 
 
74595
 
  ;
74596
 
  return 0;
74597
 
}
74598
 
_ACEOF
74599
 
rm -f conftest.$ac_objext
74600
 
if { (ac_try="$ac_compile"
74601
 
case "(($ac_try" in
74602
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74603
 
  *) ac_try_echo=$ac_try;;
74604
 
esac
74605
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74606
 
$as_echo "$ac_try_echo") >&5
74607
 
  (eval "$ac_compile") 2>conftest.er1
74608
 
  ac_status=$?
74609
 
  grep -v '^ *+' conftest.er1 >conftest.err
74610
 
  rm -f conftest.er1
74611
 
  cat conftest.err >&5
74612
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74613
 
  (exit $ac_status); } && {
74614
 
         test -z "$ac_c_werror_flag" ||
74615
 
         test ! -s conftest.err
74616
 
       } && test -s conftest.$ac_objext; then
74617
 
  ac_lo=$ac_mid; break
74618
 
else
74619
 
  $as_echo "$as_me: failed program was:" >&5
74620
 
sed 's/^/| /' conftest.$ac_ext >&5
74621
 
 
74622
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
74623
 
                        if test $ac_mid -le $ac_hi; then
74624
 
                          ac_lo= ac_hi=
74625
 
                          break
74626
 
                        fi
74627
 
                        ac_mid=`expr 2 '*' $ac_mid`
74628
 
fi
74629
 
 
74630
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74631
 
  done
74632
 
else
74633
 
  $as_echo "$as_me: failed program was:" >&5
74634
 
sed 's/^/| /' conftest.$ac_ext >&5
74635
 
 
74636
 
        ac_lo= ac_hi=
74637
 
fi
74638
 
 
74639
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74640
 
fi
74641
 
 
74642
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74643
 
# Binary search between lo and hi bounds.
74644
 
while test "x$ac_lo" != "x$ac_hi"; do
74645
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
74646
 
  cat >conftest.$ac_ext <<_ACEOF
74647
 
/* confdefs.h.  */
74648
 
_ACEOF
74649
 
cat confdefs.h >>conftest.$ac_ext
74650
 
cat >>conftest.$ac_ext <<_ACEOF
74651
 
/* end confdefs.h.  */
74652
 
$ac_includes_default
74653
 
int
74654
 
main ()
74655
 
{
74656
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)@:>@;
74657
 
test_array @<:@0@:>@ = 0
74658
 
 
74659
 
  ;
74660
 
  return 0;
74661
 
}
74662
 
_ACEOF
74663
 
rm -f conftest.$ac_objext
74664
 
if { (ac_try="$ac_compile"
74665
 
case "(($ac_try" in
74666
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74667
 
  *) ac_try_echo=$ac_try;;
74668
 
esac
74669
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74670
 
$as_echo "$ac_try_echo") >&5
74671
 
  (eval "$ac_compile") 2>conftest.er1
74672
 
  ac_status=$?
74673
 
  grep -v '^ *+' conftest.er1 >conftest.err
74674
 
  rm -f conftest.er1
74675
 
  cat conftest.err >&5
74676
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74677
 
  (exit $ac_status); } && {
74678
 
         test -z "$ac_c_werror_flag" ||
74679
 
         test ! -s conftest.err
74680
 
       } && test -s conftest.$ac_objext; then
74681
 
  ac_hi=$ac_mid
74682
 
else
74683
 
  $as_echo "$as_me: failed program was:" >&5
74684
 
sed 's/^/| /' conftest.$ac_ext >&5
74685
 
 
74686
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
74687
 
fi
74688
 
 
74689
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74690
 
done
74691
 
case $ac_lo in
74692
 
?*) ac_cv_sizeof_short=$ac_lo;;
74693
 
'') if test "$ac_cv_type_short" = yes; then
74694
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
74695
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
74696
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
74697
 
See \`config.log' for more details." >&5
74698
 
$as_echo "$as_me: error: cannot compute sizeof (short)
74699
 
See \`config.log' for more details." >&2;}
74700
 
   { (exit 77); exit 77; }; }; }
74701
 
   else
74702
 
     ac_cv_sizeof_short=0
74703
 
   fi ;;
74704
 
esac
74705
 
else
74706
 
  cat >conftest.$ac_ext <<_ACEOF
74707
 
/* confdefs.h.  */
74708
 
_ACEOF
74709
 
cat confdefs.h >>conftest.$ac_ext
74710
 
cat >>conftest.$ac_ext <<_ACEOF
74711
 
/* end confdefs.h.  */
74712
 
$ac_includes_default
74713
 
static long int longval () { return (long int) (sizeof (short)); }
74714
 
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
74715
 
@%:@include <stdio.h>
74716
 
@%:@include <stdlib.h>
74717
 
int
74718
 
main ()
74719
 
{
74720
 
 
74721
 
  FILE *f = fopen ("conftest.val", "w");
74722
 
  if (! f)
74723
 
    return 1;
74724
 
  if (((long int) (sizeof (short))) < 0)
74725
 
    {
74726
 
      long int i = longval ();
74727
 
      if (i != ((long int) (sizeof (short))))
74728
 
        return 1;
74729
 
      fprintf (f, "%ld", i);
74730
 
    }
74731
 
  else
74732
 
    {
74733
 
      unsigned long int i = ulongval ();
74734
 
      if (i != ((long int) (sizeof (short))))
74735
 
        return 1;
74736
 
      fprintf (f, "%lu", i);
74737
 
    }
74738
 
  /* Do not output a trailing newline, as this causes \r\n confusion
74739
 
     on some platforms.  */
74740
 
  return ferror (f) || fclose (f) != 0;
74741
 
 
74742
 
  ;
74743
 
  return 0;
74744
 
}
74745
 
_ACEOF
74746
 
rm -f conftest$ac_exeext
74747
 
if { (ac_try="$ac_link"
74748
 
case "(($ac_try" in
74749
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74750
 
  *) ac_try_echo=$ac_try;;
74751
 
esac
74752
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74753
 
$as_echo "$ac_try_echo") >&5
74754
 
  (eval "$ac_link") 2>&5
74755
 
  ac_status=$?
74756
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74757
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
74758
 
  { (case "(($ac_try" in
74759
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74760
 
  *) ac_try_echo=$ac_try;;
74761
 
esac
74762
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74763
 
$as_echo "$ac_try_echo") >&5
74764
 
  (eval "$ac_try") 2>&5
74765
 
  ac_status=$?
74766
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74767
 
  (exit $ac_status); }; }; then
74768
 
  ac_cv_sizeof_short=`cat conftest.val`
74769
 
else
74770
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
74771
 
$as_echo "$as_me: failed program was:" >&5
74772
 
sed 's/^/| /' conftest.$ac_ext >&5
74773
 
 
74774
 
( exit $ac_status )
74775
 
if test "$ac_cv_type_short" = yes; then
74776
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
74777
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
74778
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
74779
 
See \`config.log' for more details." >&5
74780
 
$as_echo "$as_me: error: cannot compute sizeof (short)
74781
 
See \`config.log' for more details." >&2;}
74782
 
   { (exit 77); exit 77; }; }; }
74783
 
   else
74784
 
     ac_cv_sizeof_short=0
74785
 
   fi
74786
 
fi
74787
 
rm -rf conftest.dSYM
74788
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
74789
 
fi
74790
 
rm -f conftest.val
74791
 
fi
74792
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
74793
 
$as_echo "$ac_cv_sizeof_short" >&6; }
74794
 
 
74795
 
 
74796
 
 
74797
 
cat >>confdefs.h <<_ACEOF
74798
 
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
74799
 
_ACEOF
74800
 
 
74801
 
 
74802
 
      # The cast to long int works around a bug in the HP C Compiler
74803
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
74804
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
74805
 
# This bug is HP SR number 8606223364.
74806
 
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
74807
 
$as_echo_n "checking size of long... " >&6; }
74808
 
if test "${ac_cv_sizeof_long+set}" = set; then
74809
 
  $as_echo_n "(cached) " >&6
74810
 
else
74811
 
  if test "$cross_compiling" = yes; then
74812
 
  # Depending upon the size, compute the lo and hi bounds.
74813
 
cat >conftest.$ac_ext <<_ACEOF
74814
 
/* confdefs.h.  */
74815
 
_ACEOF
74816
 
cat confdefs.h >>conftest.$ac_ext
74817
 
cat >>conftest.$ac_ext <<_ACEOF
74818
 
/* end confdefs.h.  */
74819
 
$ac_includes_default
74820
 
int
74821
 
main ()
74822
 
{
74823
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@;
74824
 
test_array @<:@0@:>@ = 0
74825
 
 
74826
 
  ;
74827
 
  return 0;
74828
 
}
74829
 
_ACEOF
74830
 
rm -f conftest.$ac_objext
74831
 
if { (ac_try="$ac_compile"
74832
 
case "(($ac_try" in
74833
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74834
 
  *) ac_try_echo=$ac_try;;
74835
 
esac
74836
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74837
 
$as_echo "$ac_try_echo") >&5
74838
 
  (eval "$ac_compile") 2>conftest.er1
74839
 
  ac_status=$?
74840
 
  grep -v '^ *+' conftest.er1 >conftest.err
74841
 
  rm -f conftest.er1
74842
 
  cat conftest.err >&5
74843
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74844
 
  (exit $ac_status); } && {
74845
 
         test -z "$ac_c_werror_flag" ||
74846
 
         test ! -s conftest.err
74847
 
       } && test -s conftest.$ac_objext; then
74848
 
  ac_lo=0 ac_mid=0
74849
 
  while :; do
74850
 
    cat >conftest.$ac_ext <<_ACEOF
74851
 
/* confdefs.h.  */
74852
 
_ACEOF
74853
 
cat confdefs.h >>conftest.$ac_ext
74854
 
cat >>conftest.$ac_ext <<_ACEOF
74855
 
/* end confdefs.h.  */
74856
 
$ac_includes_default
74857
 
int
74858
 
main ()
74859
 
{
74860
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
74861
 
test_array @<:@0@:>@ = 0
74862
 
 
74863
 
  ;
74864
 
  return 0;
74865
 
}
74866
 
_ACEOF
74867
 
rm -f conftest.$ac_objext
74868
 
if { (ac_try="$ac_compile"
74869
 
case "(($ac_try" in
74870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74871
 
  *) ac_try_echo=$ac_try;;
74872
 
esac
74873
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74874
 
$as_echo "$ac_try_echo") >&5
74875
 
  (eval "$ac_compile") 2>conftest.er1
74876
 
  ac_status=$?
74877
 
  grep -v '^ *+' conftest.er1 >conftest.err
74878
 
  rm -f conftest.er1
74879
 
  cat conftest.err >&5
74880
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74881
 
  (exit $ac_status); } && {
74882
 
         test -z "$ac_c_werror_flag" ||
74883
 
         test ! -s conftest.err
74884
 
       } && test -s conftest.$ac_objext; then
74885
 
  ac_hi=$ac_mid; break
74886
 
else
74887
 
  $as_echo "$as_me: failed program was:" >&5
74888
 
sed 's/^/| /' conftest.$ac_ext >&5
74889
 
 
74890
 
        ac_lo=`expr $ac_mid + 1`
74891
 
                        if test $ac_lo -le $ac_mid; then
74892
 
                          ac_lo= ac_hi=
74893
 
                          break
74894
 
                        fi
74895
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
74896
 
fi
74897
 
 
74898
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74899
 
  done
74900
 
else
74901
 
  $as_echo "$as_me: failed program was:" >&5
74902
 
sed 's/^/| /' conftest.$ac_ext >&5
74903
 
 
74904
 
        cat >conftest.$ac_ext <<_ACEOF
74905
 
/* confdefs.h.  */
74906
 
_ACEOF
74907
 
cat confdefs.h >>conftest.$ac_ext
74908
 
cat >>conftest.$ac_ext <<_ACEOF
74909
 
/* end confdefs.h.  */
74910
 
$ac_includes_default
74911
 
int
74912
 
main ()
74913
 
{
74914
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@;
74915
 
test_array @<:@0@:>@ = 0
74916
 
 
74917
 
  ;
74918
 
  return 0;
74919
 
}
74920
 
_ACEOF
74921
 
rm -f conftest.$ac_objext
74922
 
if { (ac_try="$ac_compile"
74923
 
case "(($ac_try" in
74924
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74925
 
  *) ac_try_echo=$ac_try;;
74926
 
esac
74927
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74928
 
$as_echo "$ac_try_echo") >&5
74929
 
  (eval "$ac_compile") 2>conftest.er1
74930
 
  ac_status=$?
74931
 
  grep -v '^ *+' conftest.er1 >conftest.err
74932
 
  rm -f conftest.er1
74933
 
  cat conftest.err >&5
74934
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74935
 
  (exit $ac_status); } && {
74936
 
         test -z "$ac_c_werror_flag" ||
74937
 
         test ! -s conftest.err
74938
 
       } && test -s conftest.$ac_objext; then
74939
 
  ac_hi=-1 ac_mid=-1
74940
 
  while :; do
74941
 
    cat >conftest.$ac_ext <<_ACEOF
74942
 
/* confdefs.h.  */
74943
 
_ACEOF
74944
 
cat confdefs.h >>conftest.$ac_ext
74945
 
cat >>conftest.$ac_ext <<_ACEOF
74946
 
/* end confdefs.h.  */
74947
 
$ac_includes_default
74948
 
int
74949
 
main ()
74950
 
{
74951
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@;
74952
 
test_array @<:@0@:>@ = 0
74953
 
 
74954
 
  ;
74955
 
  return 0;
74956
 
}
74957
 
_ACEOF
74958
 
rm -f conftest.$ac_objext
74959
 
if { (ac_try="$ac_compile"
74960
 
case "(($ac_try" in
74961
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74962
 
  *) ac_try_echo=$ac_try;;
74963
 
esac
74964
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74965
 
$as_echo "$ac_try_echo") >&5
74966
 
  (eval "$ac_compile") 2>conftest.er1
74967
 
  ac_status=$?
74968
 
  grep -v '^ *+' conftest.er1 >conftest.err
74969
 
  rm -f conftest.er1
74970
 
  cat conftest.err >&5
74971
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74972
 
  (exit $ac_status); } && {
74973
 
         test -z "$ac_c_werror_flag" ||
74974
 
         test ! -s conftest.err
74975
 
       } && test -s conftest.$ac_objext; then
74976
 
  ac_lo=$ac_mid; break
74977
 
else
74978
 
  $as_echo "$as_me: failed program was:" >&5
74979
 
sed 's/^/| /' conftest.$ac_ext >&5
74980
 
 
74981
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
74982
 
                        if test $ac_mid -le $ac_hi; then
74983
 
                          ac_lo= ac_hi=
74984
 
                          break
74985
 
                        fi
74986
 
                        ac_mid=`expr 2 '*' $ac_mid`
74987
 
fi
74988
 
 
74989
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74990
 
  done
74991
 
else
74992
 
  $as_echo "$as_me: failed program was:" >&5
74993
 
sed 's/^/| /' conftest.$ac_ext >&5
74994
 
 
74995
 
        ac_lo= ac_hi=
74996
 
fi
74997
 
 
74998
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74999
 
fi
75000
 
 
75001
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75002
 
# Binary search between lo and hi bounds.
75003
 
while test "x$ac_lo" != "x$ac_hi"; do
75004
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
75005
 
  cat >conftest.$ac_ext <<_ACEOF
75006
 
/* confdefs.h.  */
75007
 
_ACEOF
75008
 
cat confdefs.h >>conftest.$ac_ext
75009
 
cat >>conftest.$ac_ext <<_ACEOF
75010
 
/* end confdefs.h.  */
75011
 
$ac_includes_default
75012
 
int
75013
 
main ()
75014
 
{
75015
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
75016
 
test_array @<:@0@:>@ = 0
75017
 
 
75018
 
  ;
75019
 
  return 0;
75020
 
}
75021
 
_ACEOF
75022
 
rm -f conftest.$ac_objext
75023
 
if { (ac_try="$ac_compile"
75024
 
case "(($ac_try" in
75025
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75026
 
  *) ac_try_echo=$ac_try;;
75027
 
esac
75028
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75029
 
$as_echo "$ac_try_echo") >&5
75030
 
  (eval "$ac_compile") 2>conftest.er1
75031
 
  ac_status=$?
75032
 
  grep -v '^ *+' conftest.er1 >conftest.err
75033
 
  rm -f conftest.er1
75034
 
  cat conftest.err >&5
75035
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75036
 
  (exit $ac_status); } && {
75037
 
         test -z "$ac_c_werror_flag" ||
75038
 
         test ! -s conftest.err
75039
 
       } && test -s conftest.$ac_objext; then
75040
 
  ac_hi=$ac_mid
75041
 
else
75042
 
  $as_echo "$as_me: failed program was:" >&5
75043
 
sed 's/^/| /' conftest.$ac_ext >&5
75044
 
 
75045
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
75046
 
fi
75047
 
 
75048
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75049
 
done
75050
 
case $ac_lo in
75051
 
?*) ac_cv_sizeof_long=$ac_lo;;
75052
 
'') if test "$ac_cv_type_long" = yes; then
75053
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
75054
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
75055
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
75056
 
See \`config.log' for more details." >&5
75057
 
$as_echo "$as_me: error: cannot compute sizeof (long)
75058
 
See \`config.log' for more details." >&2;}
75059
 
   { (exit 77); exit 77; }; }; }
75060
 
   else
75061
 
     ac_cv_sizeof_long=0
75062
 
   fi ;;
75063
 
esac
75064
 
else
75065
 
  cat >conftest.$ac_ext <<_ACEOF
75066
 
/* confdefs.h.  */
75067
 
_ACEOF
75068
 
cat confdefs.h >>conftest.$ac_ext
75069
 
cat >>conftest.$ac_ext <<_ACEOF
75070
 
/* end confdefs.h.  */
75071
 
$ac_includes_default
75072
 
static long int longval () { return (long int) (sizeof (long)); }
75073
 
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
75074
 
@%:@include <stdio.h>
75075
 
@%:@include <stdlib.h>
75076
 
int
75077
 
main ()
75078
 
{
75079
 
 
75080
 
  FILE *f = fopen ("conftest.val", "w");
75081
 
  if (! f)
75082
 
    return 1;
75083
 
  if (((long int) (sizeof (long))) < 0)
75084
 
    {
75085
 
      long int i = longval ();
75086
 
      if (i != ((long int) (sizeof (long))))
75087
 
        return 1;
75088
 
      fprintf (f, "%ld", i);
75089
 
    }
75090
 
  else
75091
 
    {
75092
 
      unsigned long int i = ulongval ();
75093
 
      if (i != ((long int) (sizeof (long))))
75094
 
        return 1;
75095
 
      fprintf (f, "%lu", i);
75096
 
    }
75097
 
  /* Do not output a trailing newline, as this causes \r\n confusion
75098
 
     on some platforms.  */
75099
 
  return ferror (f) || fclose (f) != 0;
75100
 
 
75101
 
  ;
75102
 
  return 0;
75103
 
}
75104
 
_ACEOF
75105
 
rm -f conftest$ac_exeext
75106
 
if { (ac_try="$ac_link"
75107
 
case "(($ac_try" in
75108
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75109
 
  *) ac_try_echo=$ac_try;;
75110
 
esac
75111
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75112
 
$as_echo "$ac_try_echo") >&5
75113
 
  (eval "$ac_link") 2>&5
75114
 
  ac_status=$?
75115
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75116
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
75117
 
  { (case "(($ac_try" in
75118
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75119
 
  *) ac_try_echo=$ac_try;;
75120
 
esac
75121
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75122
 
$as_echo "$ac_try_echo") >&5
75123
 
  (eval "$ac_try") 2>&5
75124
 
  ac_status=$?
75125
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75126
 
  (exit $ac_status); }; }; then
75127
 
  ac_cv_sizeof_long=`cat conftest.val`
75128
 
else
75129
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
75130
 
$as_echo "$as_me: failed program was:" >&5
75131
 
sed 's/^/| /' conftest.$ac_ext >&5
75132
 
 
75133
 
( exit $ac_status )
75134
 
if test "$ac_cv_type_long" = yes; then
75135
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
75136
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
75137
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
75138
 
See \`config.log' for more details." >&5
75139
 
$as_echo "$as_me: error: cannot compute sizeof (long)
75140
 
See \`config.log' for more details." >&2;}
75141
 
   { (exit 77); exit 77; }; }; }
75142
 
   else
75143
 
     ac_cv_sizeof_long=0
75144
 
   fi
75145
 
fi
75146
 
rm -rf conftest.dSYM
75147
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
75148
 
fi
75149
 
rm -f conftest.val
75150
 
fi
75151
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
75152
 
$as_echo "$ac_cv_sizeof_long" >&6; }
75153
 
 
75154
 
 
75155
 
 
75156
 
cat >>confdefs.h <<_ACEOF
75157
 
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
75158
 
_ACEOF
75159
 
 
75160
 
 
75161
 
      { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
75162
 
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
75163
 
if test "${ac_cv_c_const+set}" = set; then
75164
 
  $as_echo_n "(cached) " >&6
75165
 
else
75166
 
  cat >conftest.$ac_ext <<_ACEOF
75167
 
/* confdefs.h.  */
75168
 
_ACEOF
75169
 
cat confdefs.h >>conftest.$ac_ext
75170
 
cat >>conftest.$ac_ext <<_ACEOF
75171
 
/* end confdefs.h.  */
75172
 
 
75173
 
int
75174
 
main ()
75175
 
{
75176
 
/* FIXME: Include the comments suggested by Paul. */
75177
 
#ifndef __cplusplus
75178
 
  /* Ultrix mips cc rejects this.  */
75179
 
  typedef int charset[2];
75180
 
  const charset cs;
75181
 
  /* SunOS 4.1.1 cc rejects this.  */
75182
 
  char const *const *pcpcc;
75183
 
  char **ppc;
75184
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
75185
 
  struct point {int x, y;};
75186
 
  static struct point const zero = {0,0};
75187
 
  /* AIX XL C 1.02.0.0 rejects this.
75188
 
     It does not let you subtract one const X* pointer from another in
75189
 
     an arm of an if-expression whose if-part is not a constant
75190
 
     expression */
75191
 
  const char *g = "string";
75192
 
  pcpcc = &g + (g ? g-g : 0);
75193
 
  /* HPUX 7.0 cc rejects these. */
75194
 
  ++pcpcc;
75195
 
  ppc = (char**) pcpcc;
75196
 
  pcpcc = (char const *const *) ppc;
75197
 
  { /* SCO 3.2v4 cc rejects this.  */
75198
 
    char *t;
75199
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
75200
 
 
75201
 
    *t++ = 0;
75202
 
    if (s) return 0;
75203
 
  }
75204
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
75205
 
    int x[] = {25, 17};
75206
 
    const int *foo = &x[0];
75207
 
    ++foo;
75208
 
  }
75209
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
75210
 
    typedef const int *iptr;
75211
 
    iptr p = 0;
75212
 
    ++p;
75213
 
  }
75214
 
  { /* AIX XL C 1.02.0.0 rejects this saying
75215
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
75216
 
    struct s { int j; const int *ap[3]; };
75217
 
    struct s *b; b->j = 5;
75218
 
  }
75219
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
75220
 
    const int foo = 10;
75221
 
    if (!foo) return 0;
75222
 
  }
75223
 
  return !cs[0] && !zero.x;
75224
 
#endif
75225
 
 
75226
 
  ;
75227
 
  return 0;
75228
 
}
75229
 
_ACEOF
75230
 
rm -f conftest.$ac_objext
75231
 
if { (ac_try="$ac_compile"
75232
 
case "(($ac_try" in
75233
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75234
 
  *) ac_try_echo=$ac_try;;
75235
 
esac
75236
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75237
 
$as_echo "$ac_try_echo") >&5
75238
 
  (eval "$ac_compile") 2>conftest.er1
75239
 
  ac_status=$?
75240
 
  grep -v '^ *+' conftest.er1 >conftest.err
75241
 
  rm -f conftest.er1
75242
 
  cat conftest.err >&5
75243
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75244
 
  (exit $ac_status); } && {
75245
 
         test -z "$ac_c_werror_flag" ||
75246
 
         test ! -s conftest.err
75247
 
       } && test -s conftest.$ac_objext; then
75248
 
  ac_cv_c_const=yes
75249
 
else
75250
 
  $as_echo "$as_me: failed program was:" >&5
75251
 
sed 's/^/| /' conftest.$ac_ext >&5
75252
 
 
75253
 
        ac_cv_c_const=no
75254
 
fi
75255
 
 
75256
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75257
 
fi
75258
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
75259
 
$as_echo "$ac_cv_c_const" >&6; }
75260
 
if test $ac_cv_c_const = no; then
75261
 
  
75262
 
cat >>confdefs.h <<\_ACEOF
75263
 
@%:@define const /**/
75264
 
_ACEOF
75265
 
 
75266
 
fi
75267
 
 
75268
 
      { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
75269
 
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
75270
 
if test "${ac_cv_header_time+set}" = set; then
75271
 
  $as_echo_n "(cached) " >&6
75272
 
else
75273
 
  cat >conftest.$ac_ext <<_ACEOF
75274
 
/* confdefs.h.  */
75275
 
_ACEOF
75276
 
cat confdefs.h >>conftest.$ac_ext
75277
 
cat >>conftest.$ac_ext <<_ACEOF
75278
 
/* end confdefs.h.  */
75279
 
#include <sys/types.h>
75280
 
#include <sys/time.h>
75281
 
#include <time.h>
75282
 
 
75283
 
int
75284
 
main ()
75285
 
{
75286
 
if ((struct tm *) 0)
75287
 
return 0;
75288
 
  ;
75289
 
  return 0;
75290
 
}
75291
 
_ACEOF
75292
 
rm -f conftest.$ac_objext
75293
 
if { (ac_try="$ac_compile"
75294
 
case "(($ac_try" in
75295
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75296
 
  *) ac_try_echo=$ac_try;;
75297
 
esac
75298
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75299
 
$as_echo "$ac_try_echo") >&5
75300
 
  (eval "$ac_compile") 2>conftest.er1
75301
 
  ac_status=$?
75302
 
  grep -v '^ *+' conftest.er1 >conftest.err
75303
 
  rm -f conftest.er1
75304
 
  cat conftest.err >&5
75305
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75306
 
  (exit $ac_status); } && {
75307
 
         test -z "$ac_c_werror_flag" ||
75308
 
         test ! -s conftest.err
75309
 
       } && test -s conftest.$ac_objext; then
75310
 
  ac_cv_header_time=yes
75311
 
else
75312
 
  $as_echo "$as_me: failed program was:" >&5
75313
 
sed 's/^/| /' conftest.$ac_ext >&5
75314
 
 
75315
 
        ac_cv_header_time=no
75316
 
fi
75317
 
 
75318
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75319
 
fi
75320
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
75321
 
$as_echo "$ac_cv_header_time" >&6; }
75322
 
if test $ac_cv_header_time = yes; then
75323
 
  
75324
 
cat >>confdefs.h <<\_ACEOF
75325
 
@%:@define TIME_WITH_SYS_TIME 1
75326
 
_ACEOF
75327
 
 
75328
 
fi
75329
 
 
75330
 
      # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
75331
 
# for constant arguments.  Useless!
75332
 
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
75333
 
$as_echo_n "checking for working alloca.h... " >&6; }
75334
 
if test "${ac_cv_working_alloca_h+set}" = set; then
75335
 
  $as_echo_n "(cached) " >&6
75336
 
else
75337
 
  cat >conftest.$ac_ext <<_ACEOF
75338
 
/* confdefs.h.  */
75339
 
_ACEOF
75340
 
cat confdefs.h >>conftest.$ac_ext
75341
 
cat >>conftest.$ac_ext <<_ACEOF
75342
 
/* end confdefs.h.  */
75343
 
@%:@include <alloca.h>
75344
 
int
75345
 
main ()
75346
 
{
75347
 
char *p = (char *) alloca (2 * sizeof (int));
75348
 
                          if (p) return 0;
75349
 
  ;
75350
 
  return 0;
75351
 
}
75352
 
_ACEOF
75353
 
rm -f conftest.$ac_objext conftest$ac_exeext
75354
 
if { (ac_try="$ac_link"
75355
 
case "(($ac_try" in
75356
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75357
 
  *) ac_try_echo=$ac_try;;
75358
 
esac
75359
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75360
 
$as_echo "$ac_try_echo") >&5
75361
 
  (eval "$ac_link") 2>conftest.er1
75362
 
  ac_status=$?
75363
 
  grep -v '^ *+' conftest.er1 >conftest.err
75364
 
  rm -f conftest.er1
75365
 
  cat conftest.err >&5
75366
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75367
 
  (exit $ac_status); } && {
75368
 
         test -z "$ac_c_werror_flag" ||
75369
 
         test ! -s conftest.err
75370
 
       } && test -s conftest$ac_exeext && {
75371
 
         test "$cross_compiling" = yes ||
75372
 
         $as_test_x conftest$ac_exeext
75373
 
       }; then
75374
 
  ac_cv_working_alloca_h=yes
75375
 
else
75376
 
  $as_echo "$as_me: failed program was:" >&5
75377
 
sed 's/^/| /' conftest.$ac_ext >&5
75378
 
 
75379
 
        ac_cv_working_alloca_h=no
75380
 
fi
75381
 
 
75382
 
rm -rf conftest.dSYM
75383
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
75384
 
      conftest$ac_exeext conftest.$ac_ext
75385
 
fi
75386
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
75387
 
$as_echo "$ac_cv_working_alloca_h" >&6; }
75388
 
if test $ac_cv_working_alloca_h = yes; then
75389
 
  
75390
 
cat >>confdefs.h <<\_ACEOF
75391
 
@%:@define HAVE_ALLOCA_H 1
75392
 
_ACEOF
75393
 
 
75394
 
fi
75395
 
 
75396
 
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
75397
 
$as_echo_n "checking for alloca... " >&6; }
75398
 
if test "${ac_cv_func_alloca_works+set}" = set; then
75399
 
  $as_echo_n "(cached) " >&6
75400
 
else
75401
 
  cat >conftest.$ac_ext <<_ACEOF
75402
 
/* confdefs.h.  */
75403
 
_ACEOF
75404
 
cat confdefs.h >>conftest.$ac_ext
75405
 
cat >>conftest.$ac_ext <<_ACEOF
75406
 
/* end confdefs.h.  */
75407
 
#ifdef __GNUC__
75408
 
# define alloca __builtin_alloca
75409
 
#else
75410
 
# ifdef _MSC_VER
75411
 
#  include <malloc.h>
75412
 
#  define alloca _alloca
75413
 
# else
75414
 
#  ifdef HAVE_ALLOCA_H
75415
 
#   include <alloca.h>
75416
 
#  else
75417
 
#   ifdef _AIX
75418
 
 #pragma alloca
75419
 
#   else
75420
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
75421
 
char *alloca ();
75422
 
#    endif
75423
 
#   endif
75424
 
#  endif
75425
 
# endif
75426
 
#endif
75427
 
 
75428
 
int
75429
 
main ()
75430
 
{
75431
 
char *p = (char *) alloca (1);
75432
 
                                    if (p) return 0;
75433
 
  ;
75434
 
  return 0;
75435
 
}
75436
 
_ACEOF
75437
 
rm -f conftest.$ac_objext conftest$ac_exeext
75438
 
if { (ac_try="$ac_link"
75439
 
case "(($ac_try" in
75440
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75441
 
  *) ac_try_echo=$ac_try;;
75442
 
esac
75443
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75444
 
$as_echo "$ac_try_echo") >&5
75445
 
  (eval "$ac_link") 2>conftest.er1
75446
 
  ac_status=$?
75447
 
  grep -v '^ *+' conftest.er1 >conftest.err
75448
 
  rm -f conftest.er1
75449
 
  cat conftest.err >&5
75450
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75451
 
  (exit $ac_status); } && {
75452
 
         test -z "$ac_c_werror_flag" ||
75453
 
         test ! -s conftest.err
75454
 
       } && test -s conftest$ac_exeext && {
75455
 
         test "$cross_compiling" = yes ||
75456
 
         $as_test_x conftest$ac_exeext
75457
 
       }; then
75458
 
  ac_cv_func_alloca_works=yes
75459
 
else
75460
 
  $as_echo "$as_me: failed program was:" >&5
75461
 
sed 's/^/| /' conftest.$ac_ext >&5
75462
 
 
75463
 
        ac_cv_func_alloca_works=no
75464
 
fi
75465
 
 
75466
 
rm -rf conftest.dSYM
75467
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
75468
 
      conftest$ac_exeext conftest.$ac_ext
75469
 
fi
75470
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
75471
 
$as_echo "$ac_cv_func_alloca_works" >&6; }
75472
 
 
75473
 
if test $ac_cv_func_alloca_works = yes; then
75474
 
  
75475
 
cat >>confdefs.h <<\_ACEOF
75476
 
@%:@define HAVE_ALLOCA 1
75477
 
_ACEOF
75478
 
 
75479
 
else
75480
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
75481
 
# that cause trouble.  Some versions do not even contain alloca or
75482
 
# contain a buggy version.  If you still want to use their alloca,
75483
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
75484
 
 
75485
 
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
75486
 
 
75487
 
cat >>confdefs.h <<\_ACEOF
75488
 
@%:@define C_ALLOCA 1
75489
 
_ACEOF
75490
 
 
75491
 
 
75492
 
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
75493
 
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
75494
 
if test "${ac_cv_os_cray+set}" = set; then
75495
 
  $as_echo_n "(cached) " >&6
75496
 
else
75497
 
  cat >conftest.$ac_ext <<_ACEOF
75498
 
/* confdefs.h.  */
75499
 
_ACEOF
75500
 
cat confdefs.h >>conftest.$ac_ext
75501
 
cat >>conftest.$ac_ext <<_ACEOF
75502
 
/* end confdefs.h.  */
75503
 
#if defined CRAY && ! defined CRAY2
75504
 
webecray
75505
 
#else
75506
 
wenotbecray
75507
 
#endif
75508
 
 
75509
 
_ACEOF
75510
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
75511
 
  $EGREP "webecray" >/dev/null 2>&1; then
75512
 
  ac_cv_os_cray=yes
75513
 
else
75514
 
  ac_cv_os_cray=no
75515
 
fi
75516
 
rm -f conftest*
75517
 
 
75518
 
fi
75519
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
75520
 
$as_echo "$ac_cv_os_cray" >&6; }
75521
 
if test $ac_cv_os_cray = yes; then
75522
 
  for ac_func in _getb67 GETB67 getb67; do
75523
 
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
75524
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
75525
 
$as_echo_n "checking for $ac_func... " >&6; }
75526
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
75527
 
  $as_echo_n "(cached) " >&6
75528
 
else
75529
 
  cat >conftest.$ac_ext <<_ACEOF
75530
 
/* confdefs.h.  */
75531
 
_ACEOF
75532
 
cat confdefs.h >>conftest.$ac_ext
75533
 
cat >>conftest.$ac_ext <<_ACEOF
75534
 
/* end confdefs.h.  */
75535
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
75536
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
75537
 
#define $ac_func innocuous_$ac_func
75538
 
 
75539
 
/* System header to define __stub macros and hopefully few prototypes,
75540
 
    which can conflict with char $ac_func (); below.
75541
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
75542
 
    <limits.h> exists even on freestanding compilers.  */
75543
 
 
75544
 
#ifdef __STDC__
75545
 
# include <limits.h>
75546
 
#else
75547
 
# include <assert.h>
75548
 
#endif
75549
 
 
75550
 
#undef $ac_func
75551
 
 
75552
 
/* Override any GCC internal prototype to avoid an error.
75553
 
   Use char because int might match the return type of a GCC
75554
 
   builtin and then its argument prototype would still apply.  */
75555
 
#ifdef __cplusplus
75556
 
extern "C"
75557
 
#endif
75558
 
char $ac_func ();
75559
 
/* The GNU C library defines this for functions which it implements
75560
 
    to always fail with ENOSYS.  Some functions are actually named
75561
 
    something starting with __ and the normal name is an alias.  */
75562
 
#if defined __stub_$ac_func || defined __stub___$ac_func
75563
 
choke me
75564
 
#endif
75565
 
 
75566
 
int
75567
 
main ()
75568
 
{
75569
 
return $ac_func ();
75570
 
  ;
75571
 
  return 0;
75572
 
}
75573
 
_ACEOF
75574
 
rm -f conftest.$ac_objext conftest$ac_exeext
75575
 
if { (ac_try="$ac_link"
75576
 
case "(($ac_try" in
75577
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75578
 
  *) ac_try_echo=$ac_try;;
75579
 
esac
75580
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75581
 
$as_echo "$ac_try_echo") >&5
75582
 
  (eval "$ac_link") 2>conftest.er1
75583
 
  ac_status=$?
75584
 
  grep -v '^ *+' conftest.er1 >conftest.err
75585
 
  rm -f conftest.er1
75586
 
  cat conftest.err >&5
75587
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75588
 
  (exit $ac_status); } && {
75589
 
         test -z "$ac_c_werror_flag" ||
75590
 
         test ! -s conftest.err
75591
 
       } && test -s conftest$ac_exeext && {
75592
 
         test "$cross_compiling" = yes ||
75593
 
         $as_test_x conftest$ac_exeext
75594
 
       }; then
75595
 
  eval "$as_ac_var=yes"
75596
 
else
75597
 
  $as_echo "$as_me: failed program was:" >&5
75598
 
sed 's/^/| /' conftest.$ac_ext >&5
75599
 
 
75600
 
        eval "$as_ac_var=no"
75601
 
fi
75602
 
 
75603
 
rm -rf conftest.dSYM
75604
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
75605
 
      conftest$ac_exeext conftest.$ac_ext
75606
 
fi
75607
 
ac_res=`eval 'as_val=${'$as_ac_var'}
75608
 
                 $as_echo "$as_val"'`
75609
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
75610
 
$as_echo "$ac_res" >&6; }
75611
 
as_val=`eval 'as_val=${'$as_ac_var'}
75612
 
                 $as_echo "$as_val"'`
75613
 
   if test "x$as_val" = x""yes; then
75614
 
  
75615
 
cat >>confdefs.h <<_ACEOF
75616
 
@%:@define CRAY_STACKSEG_END $ac_func
75617
 
_ACEOF
75618
 
 
75619
 
    break
75620
 
fi
75621
 
 
75622
 
  done
75623
 
fi
75624
 
 
75625
 
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
75626
 
$as_echo_n "checking stack direction for C alloca... " >&6; }
75627
 
if test "${ac_cv_c_stack_direction+set}" = set; then
75628
 
  $as_echo_n "(cached) " >&6
75629
 
else
75630
 
  if test "$cross_compiling" = yes; then
75631
 
  ac_cv_c_stack_direction=0
75632
 
else
75633
 
  cat >conftest.$ac_ext <<_ACEOF
75634
 
/* confdefs.h.  */
75635
 
_ACEOF
75636
 
cat confdefs.h >>conftest.$ac_ext
75637
 
cat >>conftest.$ac_ext <<_ACEOF
75638
 
/* end confdefs.h.  */
75639
 
$ac_includes_default
75640
 
int
75641
 
find_stack_direction ()
75642
 
{
75643
 
  static char *addr = 0;
75644
 
  auto char dummy;
75645
 
  if (addr == 0)
75646
 
    {
75647
 
      addr = &dummy;
75648
 
      return find_stack_direction ();
75649
 
    }
75650
 
  else
75651
 
    return (&dummy > addr) ? 1 : -1;
75652
 
}
75653
 
 
75654
 
int
75655
 
main ()
75656
 
{
75657
 
  return find_stack_direction () < 0;
75658
 
}
75659
 
_ACEOF
75660
 
rm -f conftest$ac_exeext
75661
 
if { (ac_try="$ac_link"
75662
 
case "(($ac_try" in
75663
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75664
 
  *) ac_try_echo=$ac_try;;
75665
 
esac
75666
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75667
 
$as_echo "$ac_try_echo") >&5
75668
 
  (eval "$ac_link") 2>&5
75669
 
  ac_status=$?
75670
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75671
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
75672
 
  { (case "(($ac_try" in
75673
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75674
 
  *) ac_try_echo=$ac_try;;
75675
 
esac
75676
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75677
 
$as_echo "$ac_try_echo") >&5
75678
 
  (eval "$ac_try") 2>&5
75679
 
  ac_status=$?
75680
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75681
 
  (exit $ac_status); }; }; then
75682
 
  ac_cv_c_stack_direction=1
75683
 
else
75684
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
75685
 
$as_echo "$as_me: failed program was:" >&5
75686
 
sed 's/^/| /' conftest.$ac_ext >&5
75687
 
 
75688
 
( exit $ac_status )
75689
 
ac_cv_c_stack_direction=-1
75690
 
fi
75691
 
rm -rf conftest.dSYM
75692
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
75693
 
fi
75694
 
 
75695
 
 
75696
 
fi
75697
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
75698
 
$as_echo "$ac_cv_c_stack_direction" >&6; }
75699
 
 
75700
 
cat >>confdefs.h <<_ACEOF
75701
 
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
75702
 
_ACEOF
75703
 
 
75704
 
 
75705
 
fi
75706
 
 
75707
 
      { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
75708
 
$as_echo_n "checking for working memcmp... " >&6; }
75709
 
if test "${ac_cv_func_memcmp_working+set}" = set; then
75710
 
  $as_echo_n "(cached) " >&6
75711
 
else
75712
 
  if test "$cross_compiling" = yes; then
75713
 
  ac_cv_func_memcmp_working=no
75714
 
else
75715
 
  cat >conftest.$ac_ext <<_ACEOF
75716
 
/* confdefs.h.  */
75717
 
_ACEOF
75718
 
cat confdefs.h >>conftest.$ac_ext
75719
 
cat >>conftest.$ac_ext <<_ACEOF
75720
 
/* end confdefs.h.  */
75721
 
$ac_includes_default
75722
 
int
75723
 
main ()
75724
 
{
75725
 
 
75726
 
  /* Some versions of memcmp are not 8-bit clean.  */
75727
 
  char c0 = '\100', c1 = '\200', c2 = '\201';
75728
 
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
75729
 
    return 1;
75730
 
 
75731
 
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
75732
 
     or more and with at least one buffer not starting on a 4-byte boundary.
75733
 
     William Lewis provided this test program.   */
75734
 
  {
75735
 
    char foo[21];
75736
 
    char bar[21];
75737
 
    int i;
75738
 
    for (i = 0; i < 4; i++)
75739
 
      {
75740
 
        char *a = foo + i;
75741
 
        char *b = bar + i;
75742
 
        strcpy (a, "--------01111111");
75743
 
        strcpy (b, "--------10000000");
75744
 
        if (memcmp (a, b, 16) >= 0)
75745
 
          return 1;
75746
 
      }
75747
 
    return 0;
75748
 
  }
75749
 
 
75750
 
  ;
75751
 
  return 0;
75752
 
}
75753
 
_ACEOF
75754
 
rm -f conftest$ac_exeext
75755
 
if { (ac_try="$ac_link"
75756
 
case "(($ac_try" in
75757
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75758
 
  *) ac_try_echo=$ac_try;;
75759
 
esac
75760
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75761
 
$as_echo "$ac_try_echo") >&5
75762
 
  (eval "$ac_link") 2>&5
75763
 
  ac_status=$?
75764
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75765
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
75766
 
  { (case "(($ac_try" in
75767
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75768
 
  *) ac_try_echo=$ac_try;;
75769
 
esac
75770
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75771
 
$as_echo "$ac_try_echo") >&5
75772
 
  (eval "$ac_try") 2>&5
75773
 
  ac_status=$?
75774
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75775
 
  (exit $ac_status); }; }; then
75776
 
  ac_cv_func_memcmp_working=yes
75777
 
else
75778
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
75779
 
$as_echo "$as_me: failed program was:" >&5
75780
 
sed 's/^/| /' conftest.$ac_ext >&5
75781
 
 
75782
 
( exit $ac_status )
75783
 
ac_cv_func_memcmp_working=no
75784
 
fi
75785
 
rm -rf conftest.dSYM
75786
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
75787
 
fi
75788
 
 
75789
 
 
75790
 
fi
75791
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
75792
 
$as_echo "$ac_cv_func_memcmp_working" >&6; }
75793
 
test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
75794
 
  *" memcmp.$ac_objext "* ) ;;
75795
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
75796
 
 ;;
75797
 
esac
75798
 
 
75799
 
 
75800
 
      if test "${ac_cv_header_stdarg_h+set}" = set; then
75801
 
  { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
75802
 
$as_echo_n "checking for stdarg.h... " >&6; }
75803
 
if test "${ac_cv_header_stdarg_h+set}" = set; then
75804
 
  $as_echo_n "(cached) " >&6
75805
 
fi
75806
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
75807
 
$as_echo "$ac_cv_header_stdarg_h" >&6; }
75808
 
else
75809
 
  # Is the header compilable?
75810
 
{ $as_echo "$as_me:$LINENO: checking stdarg.h usability" >&5
75811
 
$as_echo_n "checking stdarg.h usability... " >&6; }
75812
 
cat >conftest.$ac_ext <<_ACEOF
75813
 
/* confdefs.h.  */
75814
 
_ACEOF
75815
 
cat confdefs.h >>conftest.$ac_ext
75816
 
cat >>conftest.$ac_ext <<_ACEOF
75817
 
/* end confdefs.h.  */
75818
 
$ac_includes_default
75819
 
@%:@include <stdarg.h>
75820
 
_ACEOF
75821
 
rm -f conftest.$ac_objext
75822
 
if { (ac_try="$ac_compile"
75823
 
case "(($ac_try" in
75824
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75825
 
  *) ac_try_echo=$ac_try;;
75826
 
esac
75827
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75828
 
$as_echo "$ac_try_echo") >&5
75829
 
  (eval "$ac_compile") 2>conftest.er1
75830
 
  ac_status=$?
75831
 
  grep -v '^ *+' conftest.er1 >conftest.err
75832
 
  rm -f conftest.er1
75833
 
  cat conftest.err >&5
75834
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75835
 
  (exit $ac_status); } && {
75836
 
         test -z "$ac_c_werror_flag" ||
75837
 
         test ! -s conftest.err
75838
 
       } && test -s conftest.$ac_objext; then
75839
 
  ac_header_compiler=yes
75840
 
else
75841
 
  $as_echo "$as_me: failed program was:" >&5
75842
 
sed 's/^/| /' conftest.$ac_ext >&5
75843
 
 
75844
 
        ac_header_compiler=no
75845
 
fi
75846
 
 
75847
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75848
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
75849
 
$as_echo "$ac_header_compiler" >&6; }
75850
 
 
75851
 
# Is the header present?
75852
 
{ $as_echo "$as_me:$LINENO: checking stdarg.h presence" >&5
75853
 
$as_echo_n "checking stdarg.h presence... " >&6; }
75854
 
cat >conftest.$ac_ext <<_ACEOF
75855
 
/* confdefs.h.  */
75856
 
_ACEOF
75857
 
cat confdefs.h >>conftest.$ac_ext
75858
 
cat >>conftest.$ac_ext <<_ACEOF
75859
 
/* end confdefs.h.  */
75860
 
@%:@include <stdarg.h>
75861
 
_ACEOF
75862
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
75863
 
case "(($ac_try" in
75864
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75865
 
  *) ac_try_echo=$ac_try;;
75866
 
esac
75867
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75868
 
$as_echo "$ac_try_echo") >&5
75869
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
75870
 
  ac_status=$?
75871
 
  grep -v '^ *+' conftest.er1 >conftest.err
75872
 
  rm -f conftest.er1
75873
 
  cat conftest.err >&5
75874
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75875
 
  (exit $ac_status); } >/dev/null && {
75876
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
75877
 
         test ! -s conftest.err
75878
 
       }; then
75879
 
  ac_header_preproc=yes
75880
 
else
75881
 
  $as_echo "$as_me: failed program was:" >&5
75882
 
sed 's/^/| /' conftest.$ac_ext >&5
75883
 
 
75884
 
  ac_header_preproc=no
75885
 
fi
75886
 
 
75887
 
rm -f conftest.err conftest.$ac_ext
75888
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
75889
 
$as_echo "$ac_header_preproc" >&6; }
75890
 
 
75891
 
# So?  What about this header?
75892
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
75893
 
  yes:no: )
75894
 
    { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
75895
 
$as_echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
75896
 
    { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
75897
 
$as_echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
75898
 
    ac_header_preproc=yes
75899
 
    ;;
75900
 
  no:yes:* )
75901
 
    { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
75902
 
$as_echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
75903
 
    { $as_echo "$as_me:$LINENO: WARNING: stdarg.h:     check for missing prerequisite headers?" >&5
75904
 
$as_echo "$as_me: WARNING: stdarg.h:     check for missing prerequisite headers?" >&2;}
75905
 
    { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
75906
 
$as_echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
75907
 
    { $as_echo "$as_me:$LINENO: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&5
75908
 
$as_echo "$as_me: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
75909
 
    { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
75910
 
$as_echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
75911
 
    { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
75912
 
$as_echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
75913
 
    
75914
 
    ;;
75915
 
esac
75916
 
{ $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
75917
 
$as_echo_n "checking for stdarg.h... " >&6; }
75918
 
if test "${ac_cv_header_stdarg_h+set}" = set; then
75919
 
  $as_echo_n "(cached) " >&6
75920
 
else
75921
 
  ac_cv_header_stdarg_h=$ac_header_preproc
75922
 
fi
75923
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
75924
 
$as_echo "$ac_cv_header_stdarg_h" >&6; }
75925
 
 
75926
 
fi
75927
 
if test "x$ac_cv_header_stdarg_h" = x""yes; then
75928
 
  
75929
 
        
75930
 
cat >>confdefs.h <<\_ACEOF
75931
 
@%:@define HAVE_STDARG_PROTOTYPES 1
75932
 
_ACEOF
75933
 
 
75934
 
      
75935
 
fi
75936
 
 
75937
 
 
75938
 
      
75939
 
cat >>confdefs.h <<\_ACEOF
75940
 
@%:@define PHP_ONIG_BUNDLED 1
75941
 
_ACEOF
75942
 
 
75943
 
      
75944
 
cat >>confdefs.h <<\_ACEOF
75945
 
@%:@define HAVE_ONIG 1
75946
 
_ACEOF
75947
 
 
75948
 
      
75949
 
  PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DNOT_RUBY"
75950
 
 
75951
 
      
75952
 
  PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma"
75953
 
 
75954
 
      
75955
 
  PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma/enc"
75956
 
 
75957
 
      
75958
 
  PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES oniguruma"
75959
 
 
75960
 
      
75961
 
  PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS oniguruma/config.h"
75962
 
 
75963
 
      
75964
 
  PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES 
75965
 
        oniguruma/regcomp.c
75966
 
        oniguruma/regerror.c
75967
 
        oniguruma/regexec.c
75968
 
        oniguruma/reggnu.c
75969
 
        oniguruma/regparse.c
75970
 
        oniguruma/regenc.c
75971
 
        oniguruma/regext.c
75972
 
        oniguruma/regsyntax.c
75973
 
        oniguruma/regtrav.c
75974
 
        oniguruma/regversion.c
75975
 
        oniguruma/st.c
75976
 
        oniguruma/enc/unicode.c
75977
 
        oniguruma/enc/ascii.c
75978
 
        oniguruma/enc/utf8.c
75979
 
        oniguruma/enc/euc_jp.c
75980
 
        oniguruma/enc/euc_tw.c
75981
 
        oniguruma/enc/euc_kr.c
75982
 
        oniguruma/enc/sjis.c
75983
 
        oniguruma/enc/iso8859_1.c
75984
 
        oniguruma/enc/iso8859_2.c
75985
 
        oniguruma/enc/iso8859_3.c
75986
 
        oniguruma/enc/iso8859_4.c
75987
 
        oniguruma/enc/iso8859_5.c
75988
 
        oniguruma/enc/iso8859_6.c
75989
 
        oniguruma/enc/iso8859_7.c
75990
 
        oniguruma/enc/iso8859_8.c
75991
 
        oniguruma/enc/iso8859_9.c
75992
 
        oniguruma/enc/iso8859_10.c
75993
 
        oniguruma/enc/iso8859_11.c
75994
 
        oniguruma/enc/iso8859_13.c
75995
 
        oniguruma/enc/iso8859_14.c
75996
 
        oniguruma/enc/iso8859_15.c
75997
 
        oniguruma/enc/iso8859_16.c
75998
 
        oniguruma/enc/koi8.c
75999
 
        oniguruma/enc/koi8_r.c
76000
 
        oniguruma/enc/big5.c
76001
 
        oniguruma/enc/utf16_be.c
76002
 
        oniguruma/enc/utf16_le.c
76003
 
        oniguruma/enc/utf32_be.c
76004
 
        oniguruma/enc/utf32_le.c
76005
 
      "
76006
 
 
76007
 
      
76008
 
  PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS oniguruma/oniguruma.h"
76009
 
 
76010
 
    else
76011
 
                        if test ! -f "$PHP_ONIG/include/oniguruma.h"; then
76012
 
        { { $as_echo "$as_me:$LINENO: error: oniguruma.h not found in $PHP_ONIG/include" >&5
76013
 
$as_echo "$as_me: error: oniguruma.h not found in $PHP_ONIG/include" >&2;}
76014
 
   { (exit 1); exit 1; }; }
76015
 
      fi
76016
 
      
76017
 
  if test "$PHP_ONIG/include" != "/usr/include"; then
76018
 
    
76019
 
  if test -z "$PHP_ONIG/include" || echo "$PHP_ONIG/include" | grep '^/' >/dev/null ; then
76020
 
    ai_p=$PHP_ONIG/include
76021
 
  else
76022
 
    
76023
 
    ep_dir="`echo $PHP_ONIG/include|$SED 's%/*[^/][^/]*/*$%%'`"
76024
 
    
76025
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76026
 
    ai_p="$ep_realdir/`basename \"$PHP_ONIG/include\"`"
76027
 
  fi
76028
 
 
76029
 
    
76030
 
  
76031
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76032
 
  
76033
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
76034
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76035
 
    eval "INCLUDEPATH$unique=set"
76036
 
    
76037
 
      if test ""; then
76038
 
        INCLUDES="-I$ai_p $INCLUDES"
76039
 
      else
76040
 
        INCLUDES="$INCLUDES -I$ai_p"
76041
 
      fi
76042
 
    
76043
 
  fi
76044
 
 
76045
 
  fi
76046
 
 
76047
 
 
76048
 
      
76049
 
  save_old_LDFLAGS=$LDFLAGS
76050
 
  ac_stuff="
76051
 
        -L$PHP_ONIG/$PHP_LIBDIR
76052
 
      "
76053
 
  
76054
 
  save_ext_shared=$ext_shared
76055
 
  ext_shared=yes
76056
 
  
76057
 
  for ac_i in $ac_stuff; do
76058
 
    case $ac_i in
76059
 
    -pthread)
76060
 
      if test "$ext_shared" = "yes"; then
76061
 
        LDFLAGS="$LDFLAGS -pthread"
76062
 
      else
76063
 
        
76064
 
  
76065
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
76066
 
  
76067
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
76068
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76069
 
    eval "EXTRA_LDFLAGS$unique=set"
76070
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
76071
 
  fi
76072
 
 
76073
 
      fi
76074
 
    ;;
76075
 
    -l*)
76076
 
      ac_ii=`echo $ac_i|cut -c 3-`
76077
 
      
76078
 
  
76079
 
  case $ac_ii in
76080
 
  c|c_r|pthread*) ;;
76081
 
  *) 
76082
 
    if test "$ext_shared" = "yes"; then
76083
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
76084
 
    else
76085
 
      
76086
 
  
76087
 
  case $ac_ii in
76088
 
  c|c_r|pthread*) ;;
76089
 
  *) 
76090
 
      LIBS="$LIBS -l$ac_ii" 
76091
 
   ;;
76092
 
  esac
76093
 
 
76094
 
 
76095
 
    fi
76096
 
   ;;
76097
 
  esac
76098
 
 
76099
 
 
76100
 
    ;;
76101
 
    -L*)
76102
 
      ac_ii=`echo $ac_i|cut -c 3-`
76103
 
      
76104
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
76105
 
    
76106
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
76107
 
    ai_p=$ac_ii
76108
 
  else
76109
 
    
76110
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
76111
 
    
76112
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76113
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
76114
 
  fi
76115
 
 
76116
 
    
76117
 
      if test "$ext_shared" = "yes"; then
76118
 
        LDFLAGS="-L$ai_p $LDFLAGS"
76119
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
76120
 
      else
76121
 
        
76122
 
  
76123
 
  
76124
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76125
 
  
76126
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76127
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76128
 
    eval "LIBPATH$unique=set"
76129
 
    
76130
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76131
 
    LDFLAGS="$LDFLAGS -L$ai_p"
76132
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
76133
 
  
76134
 
  fi
76135
 
 
76136
 
 
76137
 
      fi
76138
 
    
76139
 
  fi
76140
 
 
76141
 
    ;;
76142
 
    esac
76143
 
  done
76144
 
 
76145
 
  { $as_echo "$as_me:$LINENO: checking for onig_init in -lonig" >&5
76146
 
$as_echo_n "checking for onig_init in -lonig... " >&6; }
76147
 
if test "${ac_cv_lib_onig_onig_init+set}" = set; then
76148
 
  $as_echo_n "(cached) " >&6
76149
 
else
76150
 
  ac_check_lib_save_LIBS=$LIBS
76151
 
LIBS="-lonig  $LIBS"
76152
 
cat >conftest.$ac_ext <<_ACEOF
76153
 
/* confdefs.h.  */
76154
 
_ACEOF
76155
 
cat confdefs.h >>conftest.$ac_ext
76156
 
cat >>conftest.$ac_ext <<_ACEOF
76157
 
/* end confdefs.h.  */
76158
 
 
76159
 
/* Override any GCC internal prototype to avoid an error.
76160
 
   Use char because int might match the return type of a GCC
76161
 
   builtin and then its argument prototype would still apply.  */
76162
 
#ifdef __cplusplus
76163
 
extern "C"
76164
 
#endif
76165
 
char onig_init ();
76166
 
int
76167
 
main ()
76168
 
{
76169
 
return onig_init ();
76170
 
  ;
76171
 
  return 0;
76172
 
}
76173
 
_ACEOF
76174
 
rm -f conftest.$ac_objext conftest$ac_exeext
76175
 
if { (ac_try="$ac_link"
76176
 
case "(($ac_try" in
76177
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76178
 
  *) ac_try_echo=$ac_try;;
76179
 
esac
76180
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76181
 
$as_echo "$ac_try_echo") >&5
76182
 
  (eval "$ac_link") 2>conftest.er1
76183
 
  ac_status=$?
76184
 
  grep -v '^ *+' conftest.er1 >conftest.err
76185
 
  rm -f conftest.er1
76186
 
  cat conftest.err >&5
76187
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76188
 
  (exit $ac_status); } && {
76189
 
         test -z "$ac_c_werror_flag" ||
76190
 
         test ! -s conftest.err
76191
 
       } && test -s conftest$ac_exeext && {
76192
 
         test "$cross_compiling" = yes ||
76193
 
         $as_test_x conftest$ac_exeext
76194
 
       }; then
76195
 
  ac_cv_lib_onig_onig_init=yes
76196
 
else
76197
 
  $as_echo "$as_me: failed program was:" >&5
76198
 
sed 's/^/| /' conftest.$ac_ext >&5
76199
 
 
76200
 
        ac_cv_lib_onig_onig_init=no
76201
 
fi
76202
 
 
76203
 
rm -rf conftest.dSYM
76204
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
76205
 
      conftest$ac_exeext conftest.$ac_ext
76206
 
LIBS=$ac_check_lib_save_LIBS
76207
 
fi
76208
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_onig_onig_init" >&5
76209
 
$as_echo "$ac_cv_lib_onig_onig_init" >&6; }
76210
 
if test "x$ac_cv_lib_onig_onig_init" = x""yes; then
76211
 
  
76212
 
    LDFLAGS=$save_old_LDFLAGS
76213
 
    ext_shared=$save_ext_shared
76214
 
    
76215
 
        
76216
 
 
76217
 
  if test "$ext_shared" = "yes"; then
76218
 
    MBSTRING_SHARED_LIBADD="-lonig $MBSTRING_SHARED_LIBADD"
76219
 
    if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
76220
 
      
76221
 
  if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
76222
 
    
76223
 
  if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
76224
 
    ai_p=$PHP_ONIG/$PHP_LIBDIR
76225
 
  else
76226
 
    
76227
 
    ep_dir="`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
76228
 
    
76229
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76230
 
    ai_p="$ep_realdir/`basename \"$PHP_ONIG/$PHP_LIBDIR\"`"
76231
 
  fi
76232
 
 
76233
 
    
76234
 
      if test "$ext_shared" = "yes"; then
76235
 
        MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
76236
 
        test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
76237
 
      else
76238
 
        
76239
 
  
76240
 
  
76241
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76242
 
  
76243
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76244
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76245
 
    eval "LIBPATH$unique=set"
76246
 
    
76247
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76248
 
    LDFLAGS="$LDFLAGS -L$ai_p"
76249
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
76250
 
  
76251
 
  fi
76252
 
 
76253
 
 
76254
 
      fi
76255
 
    
76256
 
  fi
76257
 
 
76258
 
    fi
76259
 
  else
76260
 
    
76261
 
 
76262
 
  if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
76263
 
    
76264
 
  if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
76265
 
    
76266
 
  if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
76267
 
    ai_p=$PHP_ONIG/$PHP_LIBDIR
76268
 
  else
76269
 
    
76270
 
    ep_dir="`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
76271
 
    
76272
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76273
 
    ai_p="$ep_realdir/`basename \"$PHP_ONIG/$PHP_LIBDIR\"`"
76274
 
  fi
76275
 
 
76276
 
    
76277
 
      
76278
 
  
76279
 
  
76280
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76281
 
  
76282
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76283
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76284
 
    eval "LIBPATH$unique=set"
76285
 
    
76286
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76287
 
    LDFLAGS="$LDFLAGS -L$ai_p"
76288
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
76289
 
  
76290
 
  fi
76291
 
 
76292
 
 
76293
 
    
76294
 
  fi
76295
 
 
76296
 
  fi
76297
 
  
76298
 
  
76299
 
  case onig in
76300
 
  c|c_r|pthread*) ;;
76301
 
  *) 
76302
 
      LIBS="-lonig $LIBS" 
76303
 
   ;;
76304
 
  esac
76305
 
 
76306
 
 
76307
 
 
76308
 
 
76309
 
  fi
76310
 
 
76311
 
 
76312
 
        
76313
 
cat >>confdefs.h <<\_ACEOF
76314
 
@%:@define HAVE_ONIG 1
76315
 
_ACEOF
76316
 
 
76317
 
      
76318
 
  
76319
 
else
76320
 
  
76321
 
    LDFLAGS=$save_old_LDFLAGS
76322
 
    ext_shared=$save_ext_shared
76323
 
    unset ac_cv_lib_onig_onig_init
76324
 
    
76325
 
        { { $as_echo "$as_me:$LINENO: error: Problem with oniguruma. Please check config.log for more information." >&5
76326
 
$as_echo "$as_me: error: Problem with oniguruma. Please check config.log for more information." >&2;}
76327
 
   { (exit 1); exit 1; }; }
76328
 
      
76329
 
  
76330
 
fi
76331
 
 
76332
 
 
76333
 
      save_old_LDFLAGS=$LDFLAGS
76334
 
      
76335
 
  for ac_i in $MBSTRING_SHARED_LIBADD; do
76336
 
    case $ac_i in
76337
 
    -pthread)
76338
 
      if test "$ext_shared" = "yes"; then
76339
 
        LDFLAGS="$LDFLAGS -pthread"
76340
 
      else
76341
 
        
76342
 
  
76343
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
76344
 
  
76345
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
76346
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76347
 
    eval "EXTRA_LDFLAGS$unique=set"
76348
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
76349
 
  fi
76350
 
 
76351
 
      fi
76352
 
    ;;
76353
 
    -l*)
76354
 
      ac_ii=`echo $ac_i|cut -c 3-`
76355
 
      
76356
 
  
76357
 
  case $ac_ii in
76358
 
  c|c_r|pthread*) ;;
76359
 
  *) 
76360
 
    if test "$ext_shared" = "yes"; then
76361
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
76362
 
    else
76363
 
      
76364
 
  
76365
 
  case $ac_ii in
76366
 
  c|c_r|pthread*) ;;
76367
 
  *) 
76368
 
      LIBS="$LIBS -l$ac_ii" 
76369
 
   ;;
76370
 
  esac
76371
 
 
76372
 
 
76373
 
    fi
76374
 
   ;;
76375
 
  esac
76376
 
 
76377
 
 
76378
 
    ;;
76379
 
    -L*)
76380
 
      ac_ii=`echo $ac_i|cut -c 3-`
76381
 
      
76382
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
76383
 
    
76384
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
76385
 
    ai_p=$ac_ii
76386
 
  else
76387
 
    
76388
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
76389
 
    
76390
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76391
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
76392
 
  fi
76393
 
 
76394
 
    
76395
 
      if test "$ext_shared" = "yes"; then
76396
 
        LDFLAGS="-L$ai_p $LDFLAGS"
76397
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
76398
 
      else
76399
 
        
76400
 
  
76401
 
  
76402
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76403
 
  
76404
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76405
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76406
 
    eval "LIBPATH$unique=set"
76407
 
    
76408
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76409
 
    LDFLAGS="$LDFLAGS -L$ai_p"
76410
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
76411
 
  
76412
 
  fi
76413
 
 
76414
 
 
76415
 
      fi
76416
 
    
76417
 
  fi
76418
 
 
76419
 
    ;;
76420
 
    esac
76421
 
  done
76422
 
 
76423
 
      { $as_echo "$as_me:$LINENO: checking if oniguruma has an invalid entry for KOI8 encoding" >&5
76424
 
$as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; }
76425
 
      cat >conftest.$ac_ext <<_ACEOF
76426
 
/* confdefs.h.  */
76427
 
_ACEOF
76428
 
cat confdefs.h >>conftest.$ac_ext
76429
 
cat >>conftest.$ac_ext <<_ACEOF
76430
 
/* end confdefs.h.  */
76431
 
 
76432
 
#include <oniguruma.h>
76433
 
      
76434
 
int
76435
 
main ()
76436
 
{
76437
 
 
76438
 
return (int)(ONIG_ENCODING_KOI8 + 1);
76439
 
      
76440
 
  ;
76441
 
  return 0;
76442
 
}
76443
 
_ACEOF
76444
 
rm -f conftest.$ac_objext conftest$ac_exeext
76445
 
if { (ac_try="$ac_link"
76446
 
case "(($ac_try" in
76447
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76448
 
  *) ac_try_echo=$ac_try;;
76449
 
esac
76450
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76451
 
$as_echo "$ac_try_echo") >&5
76452
 
  (eval "$ac_link") 2>conftest.er1
76453
 
  ac_status=$?
76454
 
  grep -v '^ *+' conftest.er1 >conftest.err
76455
 
  rm -f conftest.er1
76456
 
  cat conftest.err >&5
76457
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76458
 
  (exit $ac_status); } && {
76459
 
         test -z "$ac_c_werror_flag" ||
76460
 
         test ! -s conftest.err
76461
 
       } && test -s conftest$ac_exeext && {
76462
 
         test "$cross_compiling" = yes ||
76463
 
         $as_test_x conftest$ac_exeext
76464
 
       }; then
76465
 
  
76466
 
        { $as_echo "$as_me:$LINENO: result: no" >&5
76467
 
$as_echo "no" >&6; }
76468
 
      
76469
 
else
76470
 
  $as_echo "$as_me: failed program was:" >&5
76471
 
sed 's/^/| /' conftest.$ac_ext >&5
76472
 
 
76473
 
        
76474
 
        { $as_echo "$as_me:$LINENO: result: yes" >&5
76475
 
$as_echo "yes" >&6; }
76476
 
        
76477
 
cat >>confdefs.h <<\_ACEOF
76478
 
@%:@define PHP_ONIG_BAD_KOI8_ENTRY 1
76479
 
_ACEOF
76480
 
 
76481
 
      
76482
 
fi
76483
 
 
76484
 
rm -rf conftest.dSYM
76485
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
76486
 
      conftest$ac_exeext conftest.$ac_ext
76487
 
      LDFLAGS=$save_old_LDFLAGS
76488
 
    fi
76489
 
 
76490
 
    
76491
 
  PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1"
76492
 
 
76493
 
    
76494
 
  PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar"
76495
 
 
76496
 
 
76497
 
    
76498
 
cat >>confdefs.h <<\_ACEOF
76499
 
@%:@define HAVE_MBREGEX 1
76500
 
_ACEOF
76501
 
 
76502
 
 
76503
 
    
76504
 
  PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c"
76505
 
 
76506
 
    
76507
 
  PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h"
76508
 
 
76509
 
  fi
76510
 
 
76511
 
  fi
76512
 
  
76513
 
    
76514
 
    if test "$PHP_LIBMBFL" = "yes" || test "$PHP_LIBMBFL" = "no"; then
76515
 
                
76516
 
  PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl"
76517
 
 
76518
 
    
76519
 
  PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl"
76520
 
 
76521
 
    
76522
 
  PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters"
76523
 
 
76524
 
    
76525
 
  PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls"
76526
 
 
76527
 
    
76528
 
  PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl"
76529
 
 
76530
 
    
76531
 
  PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl"
76532
 
 
76533
 
    
76534
 
  PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS libmbfl/config.h"
76535
 
 
76536
 
 
76537
 
    
76538
 
  PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES 
76539
 
     libmbfl/filters/html_entities.c
76540
 
     libmbfl/filters/mbfilter_7bit.c
76541
 
     libmbfl/filters/mbfilter_ascii.c
76542
 
     libmbfl/filters/mbfilter_base64.c
76543
 
     libmbfl/filters/mbfilter_big5.c
76544
 
     libmbfl/filters/mbfilter_byte2.c
76545
 
     libmbfl/filters/mbfilter_byte4.c
76546
 
     libmbfl/filters/mbfilter_cp1251.c
76547
 
     libmbfl/filters/mbfilter_cp1252.c
76548
 
     libmbfl/filters/mbfilter_cp1254.c
76549
 
     libmbfl/filters/mbfilter_cp5022x.c
76550
 
     libmbfl/filters/mbfilter_cp51932.c
76551
 
     libmbfl/filters/mbfilter_cp850.c
76552
 
     libmbfl/filters/mbfilter_cp866.c
76553
 
     libmbfl/filters/mbfilter_cp932.c
76554
 
     libmbfl/filters/mbfilter_cp936.c
76555
 
     libmbfl/filters/mbfilter_euc_cn.c
76556
 
     libmbfl/filters/mbfilter_euc_jp.c
76557
 
     libmbfl/filters/mbfilter_euc_jp_win.c
76558
 
     libmbfl/filters/mbfilter_euc_kr.c
76559
 
     libmbfl/filters/mbfilter_euc_tw.c
76560
 
     libmbfl/filters/mbfilter_htmlent.c
76561
 
     libmbfl/filters/mbfilter_hz.c
76562
 
     libmbfl/filters/mbfilter_iso2022_jp_ms.c
76563
 
     libmbfl/filters/mbfilter_iso2022_kr.c
76564
 
     libmbfl/filters/mbfilter_iso8859_1.c
76565
 
     libmbfl/filters/mbfilter_iso8859_10.c
76566
 
     libmbfl/filters/mbfilter_iso8859_13.c
76567
 
     libmbfl/filters/mbfilter_iso8859_14.c
76568
 
     libmbfl/filters/mbfilter_iso8859_15.c
76569
 
     libmbfl/filters/mbfilter_iso8859_16.c
76570
 
     libmbfl/filters/mbfilter_iso8859_2.c
76571
 
     libmbfl/filters/mbfilter_iso8859_3.c
76572
 
     libmbfl/filters/mbfilter_iso8859_4.c
76573
 
     libmbfl/filters/mbfilter_iso8859_5.c
76574
 
     libmbfl/filters/mbfilter_iso8859_6.c
76575
 
     libmbfl/filters/mbfilter_iso8859_7.c
76576
 
     libmbfl/filters/mbfilter_iso8859_8.c
76577
 
     libmbfl/filters/mbfilter_iso8859_9.c
76578
 
     libmbfl/filters/mbfilter_jis.c
76579
 
     libmbfl/filters/mbfilter_koi8r.c
76580
 
     libmbfl/filters/mbfilter_armscii8.c
76581
 
     libmbfl/filters/mbfilter_qprint.c
76582
 
     libmbfl/filters/mbfilter_sjis.c
76583
 
     libmbfl/filters/mbfilter_sjis_open.c
76584
 
     libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c
76585
 
     libmbfl/filters/mbfilter_ucs2.c
76586
 
     libmbfl/filters/mbfilter_ucs4.c
76587
 
     libmbfl/filters/mbfilter_uhc.c
76588
 
     libmbfl/filters/mbfilter_utf16.c
76589
 
     libmbfl/filters/mbfilter_utf32.c
76590
 
     libmbfl/filters/mbfilter_utf7.c
76591
 
     libmbfl/filters/mbfilter_utf7imap.c
76592
 
     libmbfl/filters/mbfilter_utf8.c
76593
 
     libmbfl/filters/mbfilter_uuencode.c
76594
 
     libmbfl/filters/mbfilter_koi8u.c
76595
 
     libmbfl/mbfl/mbfilter.c
76596
 
     libmbfl/mbfl/mbfilter_8bit.c
76597
 
     libmbfl/mbfl/mbfilter_pass.c
76598
 
     libmbfl/mbfl/mbfilter_wchar.c
76599
 
     libmbfl/mbfl/mbfl_convert.c
76600
 
     libmbfl/mbfl/mbfl_encoding.c
76601
 
     libmbfl/mbfl/mbfl_filter_output.c
76602
 
     libmbfl/mbfl/mbfl_ident.c
76603
 
     libmbfl/mbfl/mbfl_language.c
76604
 
     libmbfl/mbfl/mbfl_memory_device.c
76605
 
     libmbfl/mbfl/mbfl_string.c
76606
 
     libmbfl/mbfl/mbfl_allocators.c
76607
 
     libmbfl/nls/nls_de.c
76608
 
     libmbfl/nls/nls_en.c
76609
 
     libmbfl/nls/nls_ja.c
76610
 
     libmbfl/nls/nls_kr.c
76611
 
     libmbfl/nls/nls_neutral.c
76612
 
     libmbfl/nls/nls_ru.c
76613
 
     libmbfl/nls/nls_uni.c
76614
 
     libmbfl/nls/nls_zh.c
76615
 
     libmbfl/nls/nls_hy.c
76616
 
     libmbfl/nls/nls_tr.c
76617
 
     libmbfl/nls/nls_ua.c
76618
 
    "
76619
 
 
76620
 
    
76621
 
  PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H"
76622
 
 
76623
 
    
76624
 
  PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h"
76625
 
 
76626
 
  else
76627
 
                for inc in include include/mbfl-1.0 include/mbfl; do
76628
 
      if test -f "$PHP_LIBMBFL/$inc/mbfilter.h"; then
76629
 
        PHP_LIBMBFL_INCLUDE="$inc"
76630
 
        break
76631
 
      fi
76632
 
    done
76633
 
 
76634
 
    if test -z "$PHP_LIBMBFL_INCLUDE"; then
76635
 
      { { $as_echo "$as_me:$LINENO: error: mbfilter.h not found. Please reinstall libmbfl library." >&5
76636
 
$as_echo "$as_me: error: mbfilter.h not found. Please reinstall libmbfl library." >&2;}
76637
 
   { (exit 1); exit 1; }; }
76638
 
    else 
76639
 
      
76640
 
  if test "$PHP_LIBMBFL_INCLUDE" != "/usr/include"; then
76641
 
    
76642
 
  if test -z "$PHP_LIBMBFL_INCLUDE" || echo "$PHP_LIBMBFL_INCLUDE" | grep '^/' >/dev/null ; then
76643
 
    ai_p=$PHP_LIBMBFL_INCLUDE
76644
 
  else
76645
 
    
76646
 
    ep_dir="`echo $PHP_LIBMBFL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
76647
 
    
76648
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76649
 
    ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL_INCLUDE\"`"
76650
 
  fi
76651
 
 
76652
 
    
76653
 
  
76654
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76655
 
  
76656
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
76657
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76658
 
    eval "INCLUDEPATH$unique=set"
76659
 
    
76660
 
      if test ""; then
76661
 
        INCLUDES="-I$ai_p $INCLUDES"
76662
 
      else
76663
 
        INCLUDES="$INCLUDES -I$ai_p"
76664
 
      fi
76665
 
    
76666
 
  fi
76667
 
 
76668
 
  fi
76669
 
 
76670
 
    fi
76671
 
 
76672
 
    
76673
 
  save_old_LDFLAGS=$LDFLAGS
76674
 
  ac_stuff="
76675
 
      -L$PHP_LIBMBFL/$PHP_LIBDIR
76676
 
    "
76677
 
  
76678
 
  save_ext_shared=$ext_shared
76679
 
  ext_shared=yes
76680
 
  
76681
 
  for ac_i in $ac_stuff; do
76682
 
    case $ac_i in
76683
 
    -pthread)
76684
 
      if test "$ext_shared" = "yes"; then
76685
 
        LDFLAGS="$LDFLAGS -pthread"
76686
 
      else
76687
 
        
76688
 
  
76689
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
76690
 
  
76691
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
76692
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76693
 
    eval "EXTRA_LDFLAGS$unique=set"
76694
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
76695
 
  fi
76696
 
 
76697
 
      fi
76698
 
    ;;
76699
 
    -l*)
76700
 
      ac_ii=`echo $ac_i|cut -c 3-`
76701
 
      
76702
 
  
76703
 
  case $ac_ii in
76704
 
  c|c_r|pthread*) ;;
76705
 
  *) 
76706
 
    if test "$ext_shared" = "yes"; then
76707
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
76708
 
    else
76709
 
      
76710
 
  
76711
 
  case $ac_ii in
76712
 
  c|c_r|pthread*) ;;
76713
 
  *) 
76714
 
      LIBS="$LIBS -l$ac_ii" 
76715
 
   ;;
76716
 
  esac
76717
 
 
76718
 
 
76719
 
    fi
76720
 
   ;;
76721
 
  esac
76722
 
 
76723
 
 
76724
 
    ;;
76725
 
    -L*)
76726
 
      ac_ii=`echo $ac_i|cut -c 3-`
76727
 
      
76728
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
76729
 
    
76730
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
76731
 
    ai_p=$ac_ii
76732
 
  else
76733
 
    
76734
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
76735
 
    
76736
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76737
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
76738
 
  fi
76739
 
 
76740
 
    
76741
 
      if test "$ext_shared" = "yes"; then
76742
 
        LDFLAGS="-L$ai_p $LDFLAGS"
76743
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
76744
 
      else
76745
 
        
76746
 
  
76747
 
  
76748
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76749
 
  
76750
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76751
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76752
 
    eval "LIBPATH$unique=set"
76753
 
    
76754
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76755
 
    LDFLAGS="$LDFLAGS -L$ai_p"
76756
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
76757
 
  
76758
 
  fi
76759
 
 
76760
 
 
76761
 
      fi
76762
 
    
76763
 
  fi
76764
 
 
76765
 
    ;;
76766
 
    esac
76767
 
  done
76768
 
 
76769
 
  { $as_echo "$as_me:$LINENO: checking for mbfl_buffer_converter_new in -lmbfl" >&5
76770
 
$as_echo_n "checking for mbfl_buffer_converter_new in -lmbfl... " >&6; }
76771
 
if test "${ac_cv_lib_mbfl_mbfl_buffer_converter_new+set}" = set; then
76772
 
  $as_echo_n "(cached) " >&6
76773
 
else
76774
 
  ac_check_lib_save_LIBS=$LIBS
76775
 
LIBS="-lmbfl  $LIBS"
76776
 
cat >conftest.$ac_ext <<_ACEOF
76777
 
/* confdefs.h.  */
76778
 
_ACEOF
76779
 
cat confdefs.h >>conftest.$ac_ext
76780
 
cat >>conftest.$ac_ext <<_ACEOF
76781
 
/* end confdefs.h.  */
76782
 
 
76783
 
/* Override any GCC internal prototype to avoid an error.
76784
 
   Use char because int might match the return type of a GCC
76785
 
   builtin and then its argument prototype would still apply.  */
76786
 
#ifdef __cplusplus
76787
 
extern "C"
76788
 
#endif
76789
 
char mbfl_buffer_converter_new ();
76790
 
int
76791
 
main ()
76792
 
{
76793
 
return mbfl_buffer_converter_new ();
76794
 
  ;
76795
 
  return 0;
76796
 
}
76797
 
_ACEOF
76798
 
rm -f conftest.$ac_objext conftest$ac_exeext
76799
 
if { (ac_try="$ac_link"
76800
 
case "(($ac_try" in
76801
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76802
 
  *) ac_try_echo=$ac_try;;
76803
 
esac
76804
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76805
 
$as_echo "$ac_try_echo") >&5
76806
 
  (eval "$ac_link") 2>conftest.er1
76807
 
  ac_status=$?
76808
 
  grep -v '^ *+' conftest.er1 >conftest.err
76809
 
  rm -f conftest.er1
76810
 
  cat conftest.err >&5
76811
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76812
 
  (exit $ac_status); } && {
76813
 
         test -z "$ac_c_werror_flag" ||
76814
 
         test ! -s conftest.err
76815
 
       } && test -s conftest$ac_exeext && {
76816
 
         test "$cross_compiling" = yes ||
76817
 
         $as_test_x conftest$ac_exeext
76818
 
       }; then
76819
 
  ac_cv_lib_mbfl_mbfl_buffer_converter_new=yes
76820
 
else
76821
 
  $as_echo "$as_me: failed program was:" >&5
76822
 
sed 's/^/| /' conftest.$ac_ext >&5
76823
 
 
76824
 
        ac_cv_lib_mbfl_mbfl_buffer_converter_new=no
76825
 
fi
76826
 
 
76827
 
rm -rf conftest.dSYM
76828
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
76829
 
      conftest$ac_exeext conftest.$ac_ext
76830
 
LIBS=$ac_check_lib_save_LIBS
76831
 
fi
76832
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&5
76833
 
$as_echo "$ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&6; }
76834
 
if test "x$ac_cv_lib_mbfl_mbfl_buffer_converter_new" = x""yes; then
76835
 
  
76836
 
    LDFLAGS=$save_old_LDFLAGS
76837
 
    ext_shared=$save_ext_shared
76838
 
    
76839
 
      
76840
 
 
76841
 
  if test "$ext_shared" = "yes"; then
76842
 
    MBSTRING_SHARED_LIBADD="-lmbfl $MBSTRING_SHARED_LIBADD"
76843
 
    if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
76844
 
      
76845
 
  if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
76846
 
    
76847
 
  if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
76848
 
    ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
76849
 
  else
76850
 
    
76851
 
    ep_dir="`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
76852
 
    
76853
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76854
 
    ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL/$PHP_LIBDIR\"`"
76855
 
  fi
76856
 
 
76857
 
    
76858
 
      if test "$ext_shared" = "yes"; then
76859
 
        MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
76860
 
        test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
76861
 
      else
76862
 
        
76863
 
  
76864
 
  
76865
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76866
 
  
76867
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76868
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76869
 
    eval "LIBPATH$unique=set"
76870
 
    
76871
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76872
 
    LDFLAGS="$LDFLAGS -L$ai_p"
76873
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
76874
 
  
76875
 
  fi
76876
 
 
76877
 
 
76878
 
      fi
76879
 
    
76880
 
  fi
76881
 
 
76882
 
    fi
76883
 
  else
76884
 
    
76885
 
 
76886
 
  if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
76887
 
    
76888
 
  if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
76889
 
    
76890
 
  if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
76891
 
    ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
76892
 
  else
76893
 
    
76894
 
    ep_dir="`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
76895
 
    
76896
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76897
 
    ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL/$PHP_LIBDIR\"`"
76898
 
  fi
76899
 
 
76900
 
    
76901
 
      
76902
 
  
76903
 
  
76904
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76905
 
  
76906
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76907
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
76908
 
    eval "LIBPATH$unique=set"
76909
 
    
76910
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76911
 
    LDFLAGS="$LDFLAGS -L$ai_p"
76912
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
76913
 
  
76914
 
  fi
76915
 
 
76916
 
 
76917
 
    
76918
 
  fi
76919
 
 
76920
 
  fi
76921
 
  
76922
 
  
76923
 
  case mbfl in
76924
 
  c|c_r|pthread*) ;;
76925
 
  *) 
76926
 
      LIBS="-lmbfl $LIBS" 
76927
 
   ;;
76928
 
  esac
76929
 
 
76930
 
 
76931
 
 
76932
 
 
76933
 
  fi
76934
 
 
76935
 
 
76936
 
    
76937
 
  
76938
 
else
76939
 
  
76940
 
    LDFLAGS=$save_old_LDFLAGS
76941
 
    ext_shared=$save_ext_shared
76942
 
    unset ac_cv_lib_mbfl_mbfl_buffer_converter_new
76943
 
    
76944
 
      { { $as_echo "$as_me:$LINENO: error: Problem with libmbfl. Please check config.log for more information." >&5
76945
 
$as_echo "$as_me: error: Problem with libmbfl. Please check config.log for more information." >&2;}
76946
 
   { (exit 1); exit 1; }; }
76947
 
    
76948
 
  
76949
 
fi
76950
 
 
76951
 
  fi
76952
 
 
76953
 
  
76954
 
  
76955
 
  ext_builddir=ext/mbstring
76956
 
  ext_srcdir=$abs_srcdir/ext/mbstring
76957
 
 
76958
 
  ac_extra=`echo "$PHP_MBSTRING_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
76959
 
 
76960
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
76961
 
    PHP_MBSTRING_SHARED=no
76962
 
    
76963
 
  
76964
 
  case ext/mbstring in
76965
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76966
 
  /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76967
 
  *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76968
 
  esac
76969
 
  
76970
 
  
76971
 
 
76972
 
  b_c_pre=$php_c_pre
76973
 
  b_cxx_pre=$php_cxx_pre
76974
 
  b_c_meta=$php_c_meta
76975
 
  b_cxx_meta=$php_cxx_meta
76976
 
  b_c_post=$php_c_post
76977
 
  b_cxx_post=$php_cxx_post
76978
 
  b_lo=$php_lo
76979
 
 
76980
 
 
76981
 
  old_IFS=$IFS
76982
 
  for ac_src in $PHP_MBSTRING_SOURCES; do
76983
 
  
76984
 
      IFS=.
76985
 
      set $ac_src
76986
 
      ac_obj=$1
76987
 
      IFS=$old_IFS
76988
 
      
76989
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76990
 
 
76991
 
      case $ac_src in
76992
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76993
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76994
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76995
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76996
 
      esac
76997
 
 
76998
 
    cat >>Makefile.objects<<EOF
76999
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77000
 
        $ac_comp
77001
 
EOF
77002
 
  done
77003
 
 
77004
 
 
77005
 
    EXT_STATIC="$EXT_STATIC mbstring"
77006
 
    if test "$ext_shared" != "nocli"; then
77007
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
77008
 
    fi
77009
 
  else
77010
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
77011
 
      PHP_MBSTRING_SHARED=yes
77012
 
      
77013
 
  case ext/mbstring in
77014
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77015
 
  /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77016
 
  *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77017
 
  esac
77018
 
  
77019
 
  
77020
 
 
77021
 
  b_c_pre=$shared_c_pre
77022
 
  b_cxx_pre=$shared_cxx_pre
77023
 
  b_c_meta=$shared_c_meta
77024
 
  b_cxx_meta=$shared_cxx_meta
77025
 
  b_c_post=$shared_c_post
77026
 
  b_cxx_post=$shared_cxx_post
77027
 
  b_lo=$shared_lo
77028
 
 
77029
 
 
77030
 
  old_IFS=$IFS
77031
 
  for ac_src in $PHP_MBSTRING_SOURCES; do
77032
 
  
77033
 
      IFS=.
77034
 
      set $ac_src
77035
 
      ac_obj=$1
77036
 
      IFS=$old_IFS
77037
 
      
77038
 
      shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
77039
 
 
77040
 
      case $ac_src in
77041
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77042
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77043
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77044
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77045
 
      esac
77046
 
 
77047
 
    cat >>Makefile.objects<<EOF
77048
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77049
 
        $ac_comp
77050
 
EOF
77051
 
  done
77052
 
 
77053
 
      case $host_alias in
77054
 
        *netware*)
77055
 
          
77056
 
  install_modules="install-modules"
77057
 
 
77058
 
  case $host_alias in
77059
 
    *aix*)
77060
 
      suffix=so
77061
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmbstring.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(PHPMBSTRING_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmbstring.so '$ext_builddir'/phpmbstring.so'
77062
 
      ;;
77063
 
    *netware*)
77064
 
      suffix=nlm
77065
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) -L$(top_builddir)/netware -lphp5lib $(MBSTRING_SHARED_LIBADD)'
77066
 
      ;;
77067
 
    *)
77068
 
      suffix=la
77069
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(PHPMBSTRING_SHARED_LIBADD)'
77070
 
      ;;
77071
 
  esac
77072
 
 
77073
 
  if test "x" = "xyes"; then
77074
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmbstring.$suffix"
77075
 
  else
77076
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmbstring.$suffix"
77077
 
  fi
77078
 
  
77079
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
77080
 
 
77081
 
  cat >>Makefile.objects<<EOF
77082
 
\$(phplibdir)/phpmbstring.$suffix: $ext_builddir/phpmbstring.$suffix
77083
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmbstring.$suffix \$(phplibdir)
77084
 
 
77085
 
$ext_builddir/phpmbstring.$suffix: \$(shared_objects_mbstring) \$(PHPMBSTRING_SHARED_DEPENDENCIES)
77086
 
        $link_cmd
77087
 
 
77088
 
EOF
77089
 
 
77090
 
          ;;
77091
 
        *)
77092
 
          
77093
 
  install_modules="install-modules"
77094
 
 
77095
 
  case $host_alias in
77096
 
    *aix*)
77097
 
      suffix=so
77098
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mbstring.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(MBSTRING_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mbstring.so '$ext_builddir'/mbstring.so'
77099
 
      ;;
77100
 
    *netware*)
77101
 
      suffix=nlm
77102
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) -L$(top_builddir)/netware -lphp5lib $(TRING_SHARED_LIBADD)'
77103
 
      ;;
77104
 
    *)
77105
 
      suffix=la
77106
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mbstring) $(MBSTRING_SHARED_LIBADD)'
77107
 
      ;;
77108
 
  esac
77109
 
 
77110
 
  if test "x" = "xyes"; then
77111
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mbstring.$suffix"
77112
 
  else
77113
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/mbstring.$suffix"
77114
 
  fi
77115
 
  
77116
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
77117
 
 
77118
 
  cat >>Makefile.objects<<EOF
77119
 
\$(phplibdir)/mbstring.$suffix: $ext_builddir/mbstring.$suffix
77120
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/mbstring.$suffix \$(phplibdir)
77121
 
 
77122
 
$ext_builddir/mbstring.$suffix: \$(shared_objects_mbstring) \$(MBSTRING_SHARED_DEPENDENCIES)
77123
 
        $link_cmd
77124
 
 
77125
 
EOF
77126
 
 
77127
 
          ;;
77128
 
      esac
77129
 
      
77130
 
cat >>confdefs.h <<_ACEOF
77131
 
@%:@define COMPILE_DL_MBSTRING 1
77132
 
_ACEOF
77133
 
 
77134
 
    fi
77135
 
  fi
77136
 
 
77137
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
77138
 
    PHP_MBSTRING_SHARED=no
77139
 
    case "$PHP_SAPI" in
77140
 
      cgi|embed)
77141
 
        
77142
 
  
77143
 
  case ext/mbstring in
77144
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77145
 
  /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77146
 
  *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77147
 
  esac
77148
 
  
77149
 
  
77150
 
 
77151
 
  b_c_pre=$php_c_pre
77152
 
  b_cxx_pre=$php_cxx_pre
77153
 
  b_c_meta=$php_c_meta
77154
 
  b_cxx_meta=$php_cxx_meta
77155
 
  b_c_post=$php_c_post
77156
 
  b_cxx_post=$php_cxx_post
77157
 
  b_lo=$php_lo
77158
 
 
77159
 
 
77160
 
  old_IFS=$IFS
77161
 
  for ac_src in $PHP_MBSTRING_SOURCES; do
77162
 
  
77163
 
      IFS=.
77164
 
      set $ac_src
77165
 
      ac_obj=$1
77166
 
      IFS=$old_IFS
77167
 
      
77168
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
77169
 
 
77170
 
      case $ac_src in
77171
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77172
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77173
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77174
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77175
 
      esac
77176
 
 
77177
 
    cat >>Makefile.objects<<EOF
77178
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77179
 
        $ac_comp
77180
 
EOF
77181
 
  done
77182
 
 
77183
 
 
77184
 
        EXT_STATIC="$EXT_STATIC mbstring"
77185
 
        ;;
77186
 
      *)
77187
 
        
77188
 
  
77189
 
  case ext/mbstring in
77190
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77191
 
  /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77192
 
  *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77193
 
  esac
77194
 
  
77195
 
  
77196
 
 
77197
 
  b_c_pre=$php_c_pre
77198
 
  b_cxx_pre=$php_cxx_pre
77199
 
  b_c_meta=$php_c_meta
77200
 
  b_cxx_meta=$php_cxx_meta
77201
 
  b_c_post=$php_c_post
77202
 
  b_cxx_post=$php_cxx_post
77203
 
  b_lo=$php_lo
77204
 
 
77205
 
 
77206
 
  old_IFS=$IFS
77207
 
  for ac_src in $PHP_MBSTRING_SOURCES; do
77208
 
  
77209
 
      IFS=.
77210
 
      set $ac_src
77211
 
      ac_obj=$1
77212
 
      IFS=$old_IFS
77213
 
      
77214
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
77215
 
 
77216
 
      case $ac_src in
77217
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77218
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77219
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77220
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77221
 
      esac
77222
 
 
77223
 
    cat >>Makefile.objects<<EOF
77224
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77225
 
        $ac_comp
77226
 
EOF
77227
 
  done
77228
 
 
77229
 
 
77230
 
        ;;
77231
 
    esac
77232
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
77233
 
  fi
77234
 
  
77235
 
  
77236
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
77237
 
  
77238
 
 
77239
 
 
77240
 
  if test "$ext_builddir" = "."; then
77241
 
    PHP_PECL_EXTENSION=mbstring
77242
 
    
77243
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
77244
 
 
77245
 
  fi
77246
 
 
77247
 
  
77248
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MBSTRING_SHARED_LIBADD"
77249
 
 
77250
 
 
77251
 
  for dir in $PHP_MBSTRING_EXTRA_BUILD_DIRS; do
77252
 
    
77253
 
  
77254
 
    $php_shtool mkdir -p $ext_builddir/$dir
77255
 
  
77256
 
 
77257
 
  done
77258
 
  
77259
 
  for dir in $PHP_MBSTRING_EXTRA_INCLUDES; do
77260
 
    
77261
 
  if test "$ext_srcdir/$dir" != "/usr/include"; then
77262
 
    
77263
 
  if test -z "$ext_srcdir/$dir" || echo "$ext_srcdir/$dir" | grep '^/' >/dev/null ; then
77264
 
    ai_p=$ext_srcdir/$dir
77265
 
  else
77266
 
    
77267
 
    ep_dir="`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'`"
77268
 
    
77269
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77270
 
    ai_p="$ep_realdir/`basename \"$ext_srcdir/$dir\"`"
77271
 
  fi
77272
 
 
77273
 
    
77274
 
  
77275
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77276
 
  
77277
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
77278
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
77279
 
    eval "INCLUDEPATH$unique=set"
77280
 
    
77281
 
      if test ""; then
77282
 
        INCLUDES="-I$ai_p $INCLUDES"
77283
 
      else
77284
 
        INCLUDES="$INCLUDES -I$ai_p"
77285
 
      fi
77286
 
    
77287
 
  fi
77288
 
 
77289
 
  fi
77290
 
 
77291
 
    
77292
 
  if test "$ext_builddir/$dir" != "/usr/include"; then
77293
 
    
77294
 
  if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then
77295
 
    ai_p=$ext_builddir/$dir
77296
 
  else
77297
 
    
77298
 
    ep_dir="`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'`"
77299
 
    
77300
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77301
 
    ai_p="$ep_realdir/`basename \"$ext_builddir/$dir\"`"
77302
 
  fi
77303
 
 
77304
 
    
77305
 
  
77306
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77307
 
  
77308
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
77309
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
77310
 
    eval "INCLUDEPATH$unique=set"
77311
 
    
77312
 
      if test ""; then
77313
 
        INCLUDES="-I$ai_p $INCLUDES"
77314
 
      else
77315
 
        INCLUDES="$INCLUDES -I$ai_p"
77316
 
      fi
77317
 
    
77318
 
  fi
77319
 
 
77320
 
  fi
77321
 
 
77322
 
  done
77323
 
 
77324
 
  if test "$ext_shared" = "no"; then
77325
 
    
77326
 
  
77327
 
  case ext/mbstring in
77328
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77329
 
  /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77330
 
  *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77331
 
  esac
77332
 
  
77333
 
  
77334
 
 
77335
 
  b_c_pre=$php_c_pre
77336
 
  b_cxx_pre=$php_cxx_pre
77337
 
  b_c_meta=$php_c_meta
77338
 
  b_cxx_meta=$php_cxx_meta
77339
 
  b_c_post=$php_c_post
77340
 
  b_cxx_post=$php_cxx_post
77341
 
  b_lo=$php_lo
77342
 
 
77343
 
 
77344
 
  old_IFS=$IFS
77345
 
  for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
77346
 
  
77347
 
      IFS=.
77348
 
      set $ac_src
77349
 
      ac_obj=$1
77350
 
      IFS=$old_IFS
77351
 
      
77352
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
77353
 
 
77354
 
      case $ac_src in
77355
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77356
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77357
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77358
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77359
 
      esac
77360
 
 
77361
 
    cat >>Makefile.objects<<EOF
77362
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77363
 
        $ac_comp
77364
 
EOF
77365
 
  done
77366
 
 
77367
 
 
77368
 
    out="php_config.h"
77369
 
  else
77370
 
    
77371
 
  case ext/mbstring in
77372
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77373
 
  /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77374
 
  *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77375
 
  esac
77376
 
  
77377
 
  
77378
 
 
77379
 
  b_c_pre=$shared_c_pre
77380
 
  b_cxx_pre=$shared_cxx_pre
77381
 
  b_c_meta=$shared_c_meta
77382
 
  b_cxx_meta=$shared_cxx_meta
77383
 
  b_c_post=$shared_c_post
77384
 
  b_cxx_post=$shared_cxx_post
77385
 
  b_lo=$shared_lo
77386
 
 
77387
 
 
77388
 
  old_IFS=$IFS
77389
 
  for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
77390
 
  
77391
 
      IFS=.
77392
 
      set $ac_src
77393
 
      ac_obj=$1
77394
 
      IFS=$old_IFS
77395
 
      
77396
 
      shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
77397
 
 
77398
 
      case $ac_src in
77399
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77400
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77401
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77402
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77403
 
      esac
77404
 
 
77405
 
    cat >>Makefile.objects<<EOF
77406
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77407
 
        $ac_comp
77408
 
EOF
77409
 
  done
77410
 
 
77411
 
    if test -f "$ext_builddir/config.h.in"; then
77412
 
      out="$abs_builddir/config.h"
77413
 
    else
77414
 
      out="php_config.h"
77415
 
    fi
77416
 
  fi
77417
 
  
77418
 
  for cfg in $PHP_MBSTRING_EXTRA_CONFIG_HEADERS; do
77419
 
    cat > $ext_builddir/$cfg <<EOF
77420
 
#include "$out"
77421
 
EOF
77422
 
  done
77423
 
  
77424
 
  PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS mbstring.h"
77425
 
 
77426
 
  
77427
 
  
77428
 
    header_path=ext/mbstring
77429
 
    for header_file in $PHP_MBSTRING_INSTALL_HEADERS; do
77430
 
      hp_hf="$header_path/$header_file"
77431
 
      
77432
 
  
77433
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
77434
 
  
77435
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
77436
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
77437
 
    eval "INSTALLHEADERS$unique=set"
77438
 
    
77439
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
77440
 
      
77441
 
  fi
77442
 
 
77443
 
    done 
77444
 
  
77445
 
 
77446
 
 
77447
 
fi
77448
 
 
77449
 
# vim600: sts=2 sw=2 et
77450
 
 
77451
 
 
77452
 
  
77453
 
 
77454
 
 
77455
 
 
77456
 
php_with_mcrypt=no
77457
 
 
77458
 
{ $as_echo "$as_me:$LINENO: checking for mcrypt support" >&5
77459
 
$as_echo_n "checking for mcrypt support... " >&6; }
77460
 
 
77461
 
@%:@ Check whether --with-mcrypt was given.
77462
 
if test "${with_mcrypt+set}" = set; then
77463
 
  withval=$with_mcrypt; PHP_MCRYPT=$withval
77464
 
else
77465
 
  
77466
 
  PHP_MCRYPT=no
77467
 
  test "$PHP_ENABLE_ALL" && PHP_MCRYPT=$PHP_ENABLE_ALL
77468
 
 
77469
 
fi
77470
 
 
77471
 
 
77472
 
 
77473
 
ext_output="yes, shared"
77474
 
ext_shared=yes
77475
 
case $PHP_MCRYPT in
77476
 
shared,*)
77477
 
  PHP_MCRYPT=`echo "$PHP_MCRYPT"|$SED 's/^shared,//'`
77478
 
  ;;
77479
 
shared)
77480
 
  PHP_MCRYPT=yes
77481
 
  ;;
77482
 
no)
77483
 
  ext_output=no
77484
 
  ext_shared=no
77485
 
  ;;
77486
 
*)
77487
 
  ext_output=yes
77488
 
  ext_shared=no
77489
 
  ;;
77490
 
esac
77491
 
 
77492
 
 
77493
 
 
77494
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
77495
 
$as_echo "$ext_output" >&6; }
77496
 
 
77497
 
 
77498
 
 
77499
 
 
77500
 
if test "$PHP_MCRYPT" != "no"; then
77501
 
  for i in $PHP_MCRYPT /usr/local /usr; do
77502
 
    test -f $i/include/mcrypt.h && MCRYPT_DIR=$i && break
77503
 
  done
77504
 
 
77505
 
  if test -z "$MCRYPT_DIR"; then
77506
 
    { { $as_echo "$as_me:$LINENO: error: mcrypt.h not found. Please reinstall libmcrypt." >&5
77507
 
$as_echo "$as_me: error: mcrypt.h not found. Please reinstall libmcrypt." >&2;}
77508
 
   { (exit 1); exit 1; }; }
77509
 
  fi
77510
 
 
77511
 
  
77512
 
  old_CPPFLAGS=$CPPFLAGS
77513
 
  CPPFLAGS=-I$MCRYPT_DIR/include
77514
 
  { $as_echo "$as_me:$LINENO: checking for libmcrypt version" >&5
77515
 
$as_echo_n "checking for libmcrypt version... " >&6; }
77516
 
  cat >conftest.$ac_ext <<_ACEOF
77517
 
/* confdefs.h.  */
77518
 
_ACEOF
77519
 
cat confdefs.h >>conftest.$ac_ext
77520
 
cat >>conftest.$ac_ext <<_ACEOF
77521
 
/* end confdefs.h.  */
77522
 
 
77523
 
#include <mcrypt.h>
77524
 
#if MCRYPT_API_VERSION >= 20021217
77525
 
  yes
77526
 
#endif
77527
 
  
77528
 
_ACEOF
77529
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
77530
 
  $EGREP "yes" >/dev/null 2>&1; then
77531
 
  
77532
 
    { $as_echo "$as_me:$LINENO: result: >= 2.5.6" >&5
77533
 
$as_echo ">= 2.5.6" >&6; }
77534
 
  
77535
 
else
77536
 
  
77537
 
    { { $as_echo "$as_me:$LINENO: error: libmcrypt version 2.5.6 or greater required." >&5
77538
 
$as_echo "$as_me: error: libmcrypt version 2.5.6 or greater required." >&2;}
77539
 
   { (exit 1); exit 1; }; }
77540
 
  
77541
 
fi
77542
 
rm -f conftest*
77543
 
 
77544
 
  CPPFLAGS=$old_CPPFLAGS
77545
 
 
77546
 
 
77547
 
  
77548
 
  save_old_LDFLAGS=$LDFLAGS
77549
 
  ac_stuff="
77550
 
    -L$MCRYPT_DIR/$PHP_LIBDIR -lltdl
77551
 
  "
77552
 
  
77553
 
  save_ext_shared=$ext_shared
77554
 
  ext_shared=yes
77555
 
  
77556
 
  for ac_i in $ac_stuff; do
77557
 
    case $ac_i in
77558
 
    -pthread)
77559
 
      if test "$ext_shared" = "yes"; then
77560
 
        LDFLAGS="$LDFLAGS -pthread"
77561
 
      else
77562
 
        
77563
 
  
77564
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
77565
 
  
77566
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
77567
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
77568
 
    eval "EXTRA_LDFLAGS$unique=set"
77569
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
77570
 
  fi
77571
 
 
77572
 
      fi
77573
 
    ;;
77574
 
    -l*)
77575
 
      ac_ii=`echo $ac_i|cut -c 3-`
77576
 
      
77577
 
  
77578
 
  case $ac_ii in
77579
 
  c|c_r|pthread*) ;;
77580
 
  *) 
77581
 
    if test "$ext_shared" = "yes"; then
77582
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
77583
 
    else
77584
 
      
77585
 
  
77586
 
  case $ac_ii in
77587
 
  c|c_r|pthread*) ;;
77588
 
  *) 
77589
 
      LIBS="$LIBS -l$ac_ii" 
77590
 
   ;;
77591
 
  esac
77592
 
 
77593
 
 
77594
 
    fi
77595
 
   ;;
77596
 
  esac
77597
 
 
77598
 
 
77599
 
    ;;
77600
 
    -L*)
77601
 
      ac_ii=`echo $ac_i|cut -c 3-`
77602
 
      
77603
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
77604
 
    
77605
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
77606
 
    ai_p=$ac_ii
77607
 
  else
77608
 
    
77609
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
77610
 
    
77611
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77612
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
77613
 
  fi
77614
 
 
77615
 
    
77616
 
      if test "$ext_shared" = "yes"; then
77617
 
        LDFLAGS="-L$ai_p $LDFLAGS"
77618
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
77619
 
      else
77620
 
        
77621
 
  
77622
 
  
77623
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77624
 
  
77625
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77626
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
77627
 
    eval "LIBPATH$unique=set"
77628
 
    
77629
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77630
 
    LDFLAGS="$LDFLAGS -L$ai_p"
77631
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
77632
 
  
77633
 
  fi
77634
 
 
77635
 
 
77636
 
      fi
77637
 
    
77638
 
  fi
77639
 
 
77640
 
    ;;
77641
 
    esac
77642
 
  done
77643
 
 
77644
 
  { $as_echo "$as_me:$LINENO: checking for mcrypt_module_open in -lmcrypt" >&5
77645
 
$as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; }
77646
 
if test "${ac_cv_lib_mcrypt_mcrypt_module_open+set}" = set; then
77647
 
  $as_echo_n "(cached) " >&6
77648
 
else
77649
 
  ac_check_lib_save_LIBS=$LIBS
77650
 
LIBS="-lmcrypt  $LIBS"
77651
 
cat >conftest.$ac_ext <<_ACEOF
77652
 
/* confdefs.h.  */
77653
 
_ACEOF
77654
 
cat confdefs.h >>conftest.$ac_ext
77655
 
cat >>conftest.$ac_ext <<_ACEOF
77656
 
/* end confdefs.h.  */
77657
 
 
77658
 
/* Override any GCC internal prototype to avoid an error.
77659
 
   Use char because int might match the return type of a GCC
77660
 
   builtin and then its argument prototype would still apply.  */
77661
 
#ifdef __cplusplus
77662
 
extern "C"
77663
 
#endif
77664
 
char mcrypt_module_open ();
77665
 
int
77666
 
main ()
77667
 
{
77668
 
return mcrypt_module_open ();
77669
 
  ;
77670
 
  return 0;
77671
 
}
77672
 
_ACEOF
77673
 
rm -f conftest.$ac_objext conftest$ac_exeext
77674
 
if { (ac_try="$ac_link"
77675
 
case "(($ac_try" in
77676
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77677
 
  *) ac_try_echo=$ac_try;;
77678
 
esac
77679
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77680
 
$as_echo "$ac_try_echo") >&5
77681
 
  (eval "$ac_link") 2>conftest.er1
77682
 
  ac_status=$?
77683
 
  grep -v '^ *+' conftest.er1 >conftest.err
77684
 
  rm -f conftest.er1
77685
 
  cat conftest.err >&5
77686
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77687
 
  (exit $ac_status); } && {
77688
 
         test -z "$ac_c_werror_flag" ||
77689
 
         test ! -s conftest.err
77690
 
       } && test -s conftest$ac_exeext && {
77691
 
         test "$cross_compiling" = yes ||
77692
 
         $as_test_x conftest$ac_exeext
77693
 
       }; then
77694
 
  ac_cv_lib_mcrypt_mcrypt_module_open=yes
77695
 
else
77696
 
  $as_echo "$as_me: failed program was:" >&5
77697
 
sed 's/^/| /' conftest.$ac_ext >&5
77698
 
 
77699
 
        ac_cv_lib_mcrypt_mcrypt_module_open=no
77700
 
fi
77701
 
 
77702
 
rm -rf conftest.dSYM
77703
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77704
 
      conftest$ac_exeext conftest.$ac_ext
77705
 
LIBS=$ac_check_lib_save_LIBS
77706
 
fi
77707
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
77708
 
$as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
77709
 
if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = x""yes; then
77710
 
  
77711
 
    LDFLAGS=$save_old_LDFLAGS
77712
 
    ext_shared=$save_ext_shared
77713
 
    
77714
 
    
77715
 
  
77716
 
  case ltdl in
77717
 
  c|c_r|pthread*) ;;
77718
 
  *) 
77719
 
    if test "$ext_shared" = "yes"; then
77720
 
        MCRYPT_SHARED_LIBADD="-lltdl $MCRYPT_SHARED_LIBADD" 
77721
 
    else
77722
 
      
77723
 
  
77724
 
  case ltdl in
77725
 
  c|c_r|pthread*) ;;
77726
 
  *) 
77727
 
      LIBS="-lltdl $LIBS" 
77728
 
   ;;
77729
 
  esac
77730
 
 
77731
 
 
77732
 
    fi
77733
 
   ;;
77734
 
  esac
77735
 
 
77736
 
 
77737
 
    
77738
 
cat >>confdefs.h <<\_ACEOF
77739
 
@%:@define HAVE_LIBMCRYPT 1
77740
 
_ACEOF
77741
 
 
77742
 
  
77743
 
  
77744
 
else
77745
 
  
77746
 
    LDFLAGS=$save_old_LDFLAGS
77747
 
    ext_shared=$save_ext_shared
77748
 
    unset ac_cv_lib_mcrypt_mcrypt_module_open
77749
 
    
77750
 
    
77751
 
  save_old_LDFLAGS=$LDFLAGS
77752
 
  ac_stuff="
77753
 
      -L$MCRYPT_DIR/$PHP_LIBDIR
77754
 
    "
77755
 
  
77756
 
  save_ext_shared=$ext_shared
77757
 
  ext_shared=yes
77758
 
  
77759
 
  for ac_i in $ac_stuff; do
77760
 
    case $ac_i in
77761
 
    -pthread)
77762
 
      if test "$ext_shared" = "yes"; then
77763
 
        LDFLAGS="$LDFLAGS -pthread"
77764
 
      else
77765
 
        
77766
 
  
77767
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
77768
 
  
77769
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
77770
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
77771
 
    eval "EXTRA_LDFLAGS$unique=set"
77772
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
77773
 
  fi
77774
 
 
77775
 
      fi
77776
 
    ;;
77777
 
    -l*)
77778
 
      ac_ii=`echo $ac_i|cut -c 3-`
77779
 
      
77780
 
  
77781
 
  case $ac_ii in
77782
 
  c|c_r|pthread*) ;;
77783
 
  *) 
77784
 
    if test "$ext_shared" = "yes"; then
77785
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
77786
 
    else
77787
 
      
77788
 
  
77789
 
  case $ac_ii in
77790
 
  c|c_r|pthread*) ;;
77791
 
  *) 
77792
 
      LIBS="$LIBS -l$ac_ii" 
77793
 
   ;;
77794
 
  esac
77795
 
 
77796
 
 
77797
 
    fi
77798
 
   ;;
77799
 
  esac
77800
 
 
77801
 
 
77802
 
    ;;
77803
 
    -L*)
77804
 
      ac_ii=`echo $ac_i|cut -c 3-`
77805
 
      
77806
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
77807
 
    
77808
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
77809
 
    ai_p=$ac_ii
77810
 
  else
77811
 
    
77812
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
77813
 
    
77814
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77815
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
77816
 
  fi
77817
 
 
77818
 
    
77819
 
      if test "$ext_shared" = "yes"; then
77820
 
        LDFLAGS="-L$ai_p $LDFLAGS"
77821
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
77822
 
      else
77823
 
        
77824
 
  
77825
 
  
77826
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77827
 
  
77828
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77829
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
77830
 
    eval "LIBPATH$unique=set"
77831
 
    
77832
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77833
 
    LDFLAGS="$LDFLAGS -L$ai_p"
77834
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
77835
 
  
77836
 
  fi
77837
 
 
77838
 
 
77839
 
      fi
77840
 
    
77841
 
  fi
77842
 
 
77843
 
    ;;
77844
 
    esac
77845
 
  done
77846
 
 
77847
 
  { $as_echo "$as_me:$LINENO: checking for mcrypt_module_open in -lmcrypt" >&5
77848
 
$as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; }
77849
 
if test "${ac_cv_lib_mcrypt_mcrypt_module_open+set}" = set; then
77850
 
  $as_echo_n "(cached) " >&6
77851
 
else
77852
 
  ac_check_lib_save_LIBS=$LIBS
77853
 
LIBS="-lmcrypt  $LIBS"
77854
 
cat >conftest.$ac_ext <<_ACEOF
77855
 
/* confdefs.h.  */
77856
 
_ACEOF
77857
 
cat confdefs.h >>conftest.$ac_ext
77858
 
cat >>conftest.$ac_ext <<_ACEOF
77859
 
/* end confdefs.h.  */
77860
 
 
77861
 
/* Override any GCC internal prototype to avoid an error.
77862
 
   Use char because int might match the return type of a GCC
77863
 
   builtin and then its argument prototype would still apply.  */
77864
 
#ifdef __cplusplus
77865
 
extern "C"
77866
 
#endif
77867
 
char mcrypt_module_open ();
77868
 
int
77869
 
main ()
77870
 
{
77871
 
return mcrypt_module_open ();
77872
 
  ;
77873
 
  return 0;
77874
 
}
77875
 
_ACEOF
77876
 
rm -f conftest.$ac_objext conftest$ac_exeext
77877
 
if { (ac_try="$ac_link"
77878
 
case "(($ac_try" in
77879
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77880
 
  *) ac_try_echo=$ac_try;;
77881
 
esac
77882
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77883
 
$as_echo "$ac_try_echo") >&5
77884
 
  (eval "$ac_link") 2>conftest.er1
77885
 
  ac_status=$?
77886
 
  grep -v '^ *+' conftest.er1 >conftest.err
77887
 
  rm -f conftest.er1
77888
 
  cat conftest.err >&5
77889
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77890
 
  (exit $ac_status); } && {
77891
 
         test -z "$ac_c_werror_flag" ||
77892
 
         test ! -s conftest.err
77893
 
       } && test -s conftest$ac_exeext && {
77894
 
         test "$cross_compiling" = yes ||
77895
 
         $as_test_x conftest$ac_exeext
77896
 
       }; then
77897
 
  ac_cv_lib_mcrypt_mcrypt_module_open=yes
77898
 
else
77899
 
  $as_echo "$as_me: failed program was:" >&5
77900
 
sed 's/^/| /' conftest.$ac_ext >&5
77901
 
 
77902
 
        ac_cv_lib_mcrypt_mcrypt_module_open=no
77903
 
fi
77904
 
 
77905
 
rm -rf conftest.dSYM
77906
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77907
 
      conftest$ac_exeext conftest.$ac_ext
77908
 
LIBS=$ac_check_lib_save_LIBS
77909
 
fi
77910
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
77911
 
$as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
77912
 
if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = x""yes; then
77913
 
  
77914
 
    LDFLAGS=$save_old_LDFLAGS
77915
 
    ext_shared=$save_ext_shared
77916
 
    
77917
 
      
77918
 
cat >>confdefs.h <<\_ACEOF
77919
 
@%:@define HAVE_LIBMCRYPT 1
77920
 
_ACEOF
77921
 
 
77922
 
    
77923
 
  
77924
 
else
77925
 
  
77926
 
    LDFLAGS=$save_old_LDFLAGS
77927
 
    ext_shared=$save_ext_shared
77928
 
    unset ac_cv_lib_mcrypt_mcrypt_module_open
77929
 
    
77930
 
      { { $as_echo "$as_me:$LINENO: error: Sorry, I was not able to diagnose which libmcrypt version you have installed." >&5
77931
 
$as_echo "$as_me: error: Sorry, I was not able to diagnose which libmcrypt version you have installed." >&2;}
77932
 
   { (exit 1); exit 1; }; }
77933
 
    
77934
 
  
77935
 
fi
77936
 
 
77937
 
  
77938
 
  
77939
 
fi
77940
 
 
77941
 
 
77942
 
  
77943
 
 
77944
 
  if test "$ext_shared" = "yes"; then
77945
 
    MCRYPT_SHARED_LIBADD="-lmcrypt $MCRYPT_SHARED_LIBADD"
77946
 
    if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
77947
 
      
77948
 
  if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
77949
 
    
77950
 
  if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
77951
 
    ai_p=$MCRYPT_DIR/$PHP_LIBDIR
77952
 
  else
77953
 
    
77954
 
    ep_dir="`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
77955
 
    
77956
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77957
 
    ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/$PHP_LIBDIR\"`"
77958
 
  fi
77959
 
 
77960
 
    
77961
 
      if test "$ext_shared" = "yes"; then
77962
 
        MCRYPT_SHARED_LIBADD="-L$ai_p $MCRYPT_SHARED_LIBADD"
77963
 
        test -n "$ld_runpath_switch" && MCRYPT_SHARED_LIBADD="$ld_runpath_switch$ai_p $MCRYPT_SHARED_LIBADD"
77964
 
      else
77965
 
        
77966
 
  
77967
 
  
77968
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77969
 
  
77970
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77971
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
77972
 
    eval "LIBPATH$unique=set"
77973
 
    
77974
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77975
 
    LDFLAGS="$LDFLAGS -L$ai_p"
77976
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
77977
 
  
77978
 
  fi
77979
 
 
77980
 
 
77981
 
      fi
77982
 
    
77983
 
  fi
77984
 
 
77985
 
    fi
77986
 
  else
77987
 
    
77988
 
 
77989
 
  if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
77990
 
    
77991
 
  if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
77992
 
    
77993
 
  if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
77994
 
    ai_p=$MCRYPT_DIR/$PHP_LIBDIR
77995
 
  else
77996
 
    
77997
 
    ep_dir="`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
77998
 
    
77999
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78000
 
    ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/$PHP_LIBDIR\"`"
78001
 
  fi
78002
 
 
78003
 
    
78004
 
      
78005
 
  
78006
 
  
78007
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78008
 
  
78009
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78010
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
78011
 
    eval "LIBPATH$unique=set"
78012
 
    
78013
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78014
 
    LDFLAGS="$LDFLAGS -L$ai_p"
78015
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
78016
 
  
78017
 
  fi
78018
 
 
78019
 
 
78020
 
    
78021
 
  fi
78022
 
 
78023
 
  fi
78024
 
  
78025
 
  
78026
 
  case mcrypt in
78027
 
  c|c_r|pthread*) ;;
78028
 
  *) 
78029
 
      LIBS="-lmcrypt $LIBS" 
78030
 
   ;;
78031
 
  esac
78032
 
 
78033
 
 
78034
 
 
78035
 
 
78036
 
  fi
78037
 
 
78038
 
 
78039
 
  
78040
 
  if test "$MCRYPT_DIR/include" != "/usr/include"; then
78041
 
    
78042
 
  if test -z "$MCRYPT_DIR/include" || echo "$MCRYPT_DIR/include" | grep '^/' >/dev/null ; then
78043
 
    ai_p=$MCRYPT_DIR/include
78044
 
  else
78045
 
    
78046
 
    ep_dir="`echo $MCRYPT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
78047
 
    
78048
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78049
 
    ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/include\"`"
78050
 
  fi
78051
 
 
78052
 
    
78053
 
  
78054
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78055
 
  
78056
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
78057
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
78058
 
    eval "INCLUDEPATH$unique=set"
78059
 
    
78060
 
      if test ""; then
78061
 
        INCLUDES="-I$ai_p $INCLUDES"
78062
 
      else
78063
 
        INCLUDES="$INCLUDES -I$ai_p"
78064
 
      fi
78065
 
    
78066
 
  fi
78067
 
 
78068
 
  fi
78069
 
 
78070
 
 
78071
 
  
78072
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MCRYPT_SHARED_LIBADD"
78073
 
 
78074
 
  
78075
 
  ext_builddir=ext/mcrypt
78076
 
  ext_srcdir=$abs_srcdir/ext/mcrypt
78077
 
 
78078
 
  ac_extra=
78079
 
 
78080
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
78081
 
    PHP_MCRYPT_SHARED=no
78082
 
    
78083
 
  
78084
 
  case ext/mcrypt in
78085
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78086
 
  /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78087
 
  *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78088
 
  esac
78089
 
  
78090
 
  
78091
 
 
78092
 
  b_c_pre=$php_c_pre
78093
 
  b_cxx_pre=$php_cxx_pre
78094
 
  b_c_meta=$php_c_meta
78095
 
  b_cxx_meta=$php_cxx_meta
78096
 
  b_c_post=$php_c_post
78097
 
  b_cxx_post=$php_cxx_post
78098
 
  b_lo=$php_lo
78099
 
 
78100
 
 
78101
 
  old_IFS=$IFS
78102
 
  for ac_src in mcrypt.c mcrypt_filter.c; do
78103
 
  
78104
 
      IFS=.
78105
 
      set $ac_src
78106
 
      ac_obj=$1
78107
 
      IFS=$old_IFS
78108
 
      
78109
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78110
 
 
78111
 
      case $ac_src in
78112
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78113
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78114
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78115
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78116
 
      esac
78117
 
 
78118
 
    cat >>Makefile.objects<<EOF
78119
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78120
 
        $ac_comp
78121
 
EOF
78122
 
  done
78123
 
 
78124
 
 
78125
 
    EXT_STATIC="$EXT_STATIC mcrypt"
78126
 
    if test "$ext_shared" != "nocli"; then
78127
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
78128
 
    fi
78129
 
  else
78130
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
78131
 
      PHP_MCRYPT_SHARED=yes
78132
 
      
78133
 
  case ext/mcrypt in
78134
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78135
 
  /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78136
 
  *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78137
 
  esac
78138
 
  
78139
 
  
78140
 
 
78141
 
  b_c_pre=$shared_c_pre
78142
 
  b_cxx_pre=$shared_cxx_pre
78143
 
  b_c_meta=$shared_c_meta
78144
 
  b_cxx_meta=$shared_cxx_meta
78145
 
  b_c_post=$shared_c_post
78146
 
  b_cxx_post=$shared_cxx_post
78147
 
  b_lo=$shared_lo
78148
 
 
78149
 
 
78150
 
  old_IFS=$IFS
78151
 
  for ac_src in mcrypt.c mcrypt_filter.c; do
78152
 
  
78153
 
      IFS=.
78154
 
      set $ac_src
78155
 
      ac_obj=$1
78156
 
      IFS=$old_IFS
78157
 
      
78158
 
      shared_objects_mcrypt="$shared_objects_mcrypt $ac_bdir$ac_obj.lo"
78159
 
 
78160
 
      case $ac_src in
78161
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78162
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78163
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78164
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78165
 
      esac
78166
 
 
78167
 
    cat >>Makefile.objects<<EOF
78168
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78169
 
        $ac_comp
78170
 
EOF
78171
 
  done
78172
 
 
78173
 
      case $host_alias in
78174
 
        *netware*)
78175
 
          
78176
 
  install_modules="install-modules"
78177
 
 
78178
 
  case $host_alias in
78179
 
    *aix*)
78180
 
      suffix=so
78181
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(PHPMCRYPT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmcrypt.so '$ext_builddir'/phpmcrypt.so'
78182
 
      ;;
78183
 
    *netware*)
78184
 
      suffix=nlm
78185
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) -L$(top_builddir)/netware -lphp5lib $(MCRYPT_SHARED_LIBADD)'
78186
 
      ;;
78187
 
    *)
78188
 
      suffix=la
78189
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(PHPMCRYPT_SHARED_LIBADD)'
78190
 
      ;;
78191
 
  esac
78192
 
 
78193
 
  if test "x" = "xyes"; then
78194
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmcrypt.$suffix"
78195
 
  else
78196
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmcrypt.$suffix"
78197
 
  fi
78198
 
  
78199
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
78200
 
 
78201
 
  cat >>Makefile.objects<<EOF
78202
 
\$(phplibdir)/phpmcrypt.$suffix: $ext_builddir/phpmcrypt.$suffix
78203
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmcrypt.$suffix \$(phplibdir)
78204
 
 
78205
 
$ext_builddir/phpmcrypt.$suffix: \$(shared_objects_mcrypt) \$(PHPMCRYPT_SHARED_DEPENDENCIES)
78206
 
        $link_cmd
78207
 
 
78208
 
EOF
78209
 
 
78210
 
          ;;
78211
 
        *)
78212
 
          
78213
 
  install_modules="install-modules"
78214
 
 
78215
 
  case $host_alias in
78216
 
    *aix*)
78217
 
      suffix=so
78218
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(MCRYPT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mcrypt.so '$ext_builddir'/mcrypt.so'
78219
 
      ;;
78220
 
    *netware*)
78221
 
      suffix=nlm
78222
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) -L$(top_builddir)/netware -lphp5lib $(YPT_SHARED_LIBADD)'
78223
 
      ;;
78224
 
    *)
78225
 
      suffix=la
78226
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mcrypt) $(MCRYPT_SHARED_LIBADD)'
78227
 
      ;;
78228
 
  esac
78229
 
 
78230
 
  if test "x" = "xyes"; then
78231
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mcrypt.$suffix"
78232
 
  else
78233
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/mcrypt.$suffix"
78234
 
  fi
78235
 
  
78236
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
78237
 
 
78238
 
  cat >>Makefile.objects<<EOF
78239
 
\$(phplibdir)/mcrypt.$suffix: $ext_builddir/mcrypt.$suffix
78240
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/mcrypt.$suffix \$(phplibdir)
78241
 
 
78242
 
$ext_builddir/mcrypt.$suffix: \$(shared_objects_mcrypt) \$(MCRYPT_SHARED_DEPENDENCIES)
78243
 
        $link_cmd
78244
 
 
78245
 
EOF
78246
 
 
78247
 
          ;;
78248
 
      esac
78249
 
      
78250
 
cat >>confdefs.h <<_ACEOF
78251
 
@%:@define COMPILE_DL_MCRYPT 1
78252
 
_ACEOF
78253
 
 
78254
 
    fi
78255
 
  fi
78256
 
 
78257
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
78258
 
    PHP_MCRYPT_SHARED=no
78259
 
    case "$PHP_SAPI" in
78260
 
      cgi|embed)
78261
 
        
78262
 
  
78263
 
  case ext/mcrypt in
78264
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78265
 
  /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78266
 
  *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78267
 
  esac
78268
 
  
78269
 
  
78270
 
 
78271
 
  b_c_pre=$php_c_pre
78272
 
  b_cxx_pre=$php_cxx_pre
78273
 
  b_c_meta=$php_c_meta
78274
 
  b_cxx_meta=$php_cxx_meta
78275
 
  b_c_post=$php_c_post
78276
 
  b_cxx_post=$php_cxx_post
78277
 
  b_lo=$php_lo
78278
 
 
78279
 
 
78280
 
  old_IFS=$IFS
78281
 
  for ac_src in mcrypt.c mcrypt_filter.c; do
78282
 
  
78283
 
      IFS=.
78284
 
      set $ac_src
78285
 
      ac_obj=$1
78286
 
      IFS=$old_IFS
78287
 
      
78288
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78289
 
 
78290
 
      case $ac_src in
78291
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78292
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78293
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78294
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78295
 
      esac
78296
 
 
78297
 
    cat >>Makefile.objects<<EOF
78298
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78299
 
        $ac_comp
78300
 
EOF
78301
 
  done
78302
 
 
78303
 
 
78304
 
        EXT_STATIC="$EXT_STATIC mcrypt"
78305
 
        ;;
78306
 
      *)
78307
 
        
78308
 
  
78309
 
  case ext/mcrypt in
78310
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78311
 
  /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78312
 
  *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78313
 
  esac
78314
 
  
78315
 
  
78316
 
 
78317
 
  b_c_pre=$php_c_pre
78318
 
  b_cxx_pre=$php_cxx_pre
78319
 
  b_c_meta=$php_c_meta
78320
 
  b_cxx_meta=$php_cxx_meta
78321
 
  b_c_post=$php_c_post
78322
 
  b_cxx_post=$php_cxx_post
78323
 
  b_lo=$php_lo
78324
 
 
78325
 
 
78326
 
  old_IFS=$IFS
78327
 
  for ac_src in mcrypt.c mcrypt_filter.c; do
78328
 
  
78329
 
      IFS=.
78330
 
      set $ac_src
78331
 
      ac_obj=$1
78332
 
      IFS=$old_IFS
78333
 
      
78334
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
78335
 
 
78336
 
      case $ac_src in
78337
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78338
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78339
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78340
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78341
 
      esac
78342
 
 
78343
 
    cat >>Makefile.objects<<EOF
78344
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78345
 
        $ac_comp
78346
 
EOF
78347
 
  done
78348
 
 
78349
 
 
78350
 
        ;;
78351
 
    esac
78352
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
78353
 
  fi
78354
 
  
78355
 
  
78356
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
78357
 
  
78358
 
 
78359
 
 
78360
 
  if test "$ext_builddir" = "."; then
78361
 
    PHP_PECL_EXTENSION=mcrypt
78362
 
    
78363
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
78364
 
 
78365
 
  fi
78366
 
 
78367
 
fi
78368
 
 
78369
 
 
78370
 
 
78371
 
php_with_mssql=no
78372
 
 
78373
 
{ $as_echo "$as_me:$LINENO: checking for MSSQL support via FreeTDS" >&5
78374
 
$as_echo_n "checking for MSSQL support via FreeTDS... " >&6; }
78375
 
 
78376
 
@%:@ Check whether --with-mssql was given.
78377
 
if test "${with_mssql+set}" = set; then
78378
 
  withval=$with_mssql; PHP_MSSQL=$withval
78379
 
else
78380
 
  
78381
 
  PHP_MSSQL=no
78382
 
  test "$PHP_ENABLE_ALL" && PHP_MSSQL=$PHP_ENABLE_ALL
78383
 
 
78384
 
fi
78385
 
 
78386
 
 
78387
 
 
78388
 
ext_output="yes, shared"
78389
 
ext_shared=yes
78390
 
case $PHP_MSSQL in
78391
 
shared,*)
78392
 
  PHP_MSSQL=`echo "$PHP_MSSQL"|$SED 's/^shared,//'`
78393
 
  ;;
78394
 
shared)
78395
 
  PHP_MSSQL=yes
78396
 
  ;;
78397
 
no)
78398
 
  ext_output=no
78399
 
  ext_shared=no
78400
 
  ;;
78401
 
*)
78402
 
  ext_output=yes
78403
 
  ext_shared=no
78404
 
  ;;
78405
 
esac
78406
 
 
78407
 
 
78408
 
 
78409
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
78410
 
$as_echo "$ext_output" >&6; }
78411
 
 
78412
 
 
78413
 
 
78414
 
 
78415
 
if test "$PHP_MSSQL" != "no"; then
78416
 
 
78417
 
  if test "$PHP_MSSQL" = "yes"; then
78418
 
    for i in /usr/local /usr; do
78419
 
      if test -f $i/include/sybdb.h; then
78420
 
        FREETDS_INSTALLATION_DIR=$i
78421
 
        FREETDS_INCLUDE_DIR=$i/include
78422
 
        break
78423
 
      elif test -f $i/include/freetds/sybdb.h; then
78424
 
        FREETDS_INSTALLATION_DIR=$i
78425
 
        FREETDS_INCLUDE_DIR=$i/include/freetds
78426
 
        break
78427
 
      fi
78428
 
    done
78429
 
 
78430
 
    if test -z "$FREETDS_INSTALLATION_DIR"; then
78431
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find FreeTDS in known installation directories" >&5
78432
 
$as_echo "$as_me: error: Cannot find FreeTDS in known installation directories" >&2;}
78433
 
   { (exit 1); exit 1; }; }
78434
 
    fi
78435
 
 
78436
 
  elif test "$PHP_MSSQL" != "no"; then
78437
 
 
78438
 
    if test -f $PHP_MSSQL/include/sybdb.h; then
78439
 
      FREETDS_INSTALLATION_DIR=$PHP_MSSQL
78440
 
      FREETDS_INCLUDE_DIR=$PHP_MSSQL/include
78441
 
    elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then
78442
 
      FREETDS_INSTALLATION_DIR=$PHP_MSSQL
78443
 
      FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds
78444
 
    else
78445
 
      { { $as_echo "$as_me:$LINENO: error: Directory $PHP_MSSQL is not a FreeTDS installation directory" >&5
78446
 
$as_echo "$as_me: error: Directory $PHP_MSSQL is not a FreeTDS installation directory" >&2;}
78447
 
   { (exit 1); exit 1; }; }
78448
 
    fi
78449
 
  fi  
78450
 
 
78451
 
  if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
78452
 
     { { $as_echo "$as_me:$LINENO: error: Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" >&5
78453
 
$as_echo "$as_me: error: Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" >&2;}
78454
 
   { (exit 1); exit 1; }; }
78455
 
  fi
78456
 
 
78457
 
  
78458
 
  if test "$FREETDS_INCLUDE_DIR" != "/usr/include"; then
78459
 
    
78460
 
  if test -z "$FREETDS_INCLUDE_DIR" || echo "$FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
78461
 
    ai_p=$FREETDS_INCLUDE_DIR
78462
 
  else
78463
 
    
78464
 
    ep_dir="`echo $FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
78465
 
    
78466
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78467
 
    ai_p="$ep_realdir/`basename \"$FREETDS_INCLUDE_DIR\"`"
78468
 
  fi
78469
 
 
78470
 
    
78471
 
  
78472
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78473
 
  
78474
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
78475
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
78476
 
    eval "INCLUDEPATH$unique=set"
78477
 
    
78478
 
      if test ""; then
78479
 
        INCLUDES="-I$ai_p $INCLUDES"
78480
 
      else
78481
 
        INCLUDES="$INCLUDES -I$ai_p"
78482
 
      fi
78483
 
    
78484
 
  fi
78485
 
 
78486
 
  fi
78487
 
 
78488
 
  
78489
 
 
78490
 
  if test "$ext_shared" = "yes"; then
78491
 
    MSSQL_SHARED_LIBADD="-lsybdb $MSSQL_SHARED_LIBADD"
78492
 
    if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
78493
 
      
78494
 
  if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
78495
 
    
78496
 
  if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
78497
 
    ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
78498
 
  else
78499
 
    
78500
 
    ep_dir="`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
78501
 
    
78502
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78503
 
    ai_p="$ep_realdir/`basename \"$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
78504
 
  fi
78505
 
 
78506
 
    
78507
 
      if test "$ext_shared" = "yes"; then
78508
 
        MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
78509
 
        test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
78510
 
      else
78511
 
        
78512
 
  
78513
 
  
78514
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78515
 
  
78516
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78517
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
78518
 
    eval "LIBPATH$unique=set"
78519
 
    
78520
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78521
 
    LDFLAGS="$LDFLAGS -L$ai_p"
78522
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
78523
 
  
78524
 
  fi
78525
 
 
78526
 
 
78527
 
      fi
78528
 
    
78529
 
  fi
78530
 
 
78531
 
    fi
78532
 
  else
78533
 
    
78534
 
 
78535
 
  if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
78536
 
    
78537
 
  if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
78538
 
    
78539
 
  if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
78540
 
    ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
78541
 
  else
78542
 
    
78543
 
    ep_dir="`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
78544
 
    
78545
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78546
 
    ai_p="$ep_realdir/`basename \"$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
78547
 
  fi
78548
 
 
78549
 
    
78550
 
      
78551
 
  
78552
 
  
78553
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78554
 
  
78555
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78556
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
78557
 
    eval "LIBPATH$unique=set"
78558
 
    
78559
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78560
 
    LDFLAGS="$LDFLAGS -L$ai_p"
78561
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
78562
 
  
78563
 
  fi
78564
 
 
78565
 
 
78566
 
    
78567
 
  fi
78568
 
 
78569
 
  fi
78570
 
  
78571
 
  
78572
 
  case sybdb in
78573
 
  c|c_r|pthread*) ;;
78574
 
  *) 
78575
 
      LIBS="-lsybdb $LIBS" 
78576
 
   ;;
78577
 
  esac
78578
 
 
78579
 
 
78580
 
 
78581
 
 
78582
 
  fi
78583
 
 
78584
 
 
78585
 
 
78586
 
  
78587
 
  ext_builddir=ext/mssql
78588
 
  ext_srcdir=$abs_srcdir/ext/mssql
78589
 
 
78590
 
  ac_extra=
78591
 
 
78592
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
78593
 
    PHP_MSSQL_SHARED=no
78594
 
    
78595
 
  
78596
 
  case ext/mssql in
78597
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78598
 
  /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78599
 
  *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78600
 
  esac
78601
 
  
78602
 
  
78603
 
 
78604
 
  b_c_pre=$php_c_pre
78605
 
  b_cxx_pre=$php_cxx_pre
78606
 
  b_c_meta=$php_c_meta
78607
 
  b_cxx_meta=$php_cxx_meta
78608
 
  b_c_post=$php_c_post
78609
 
  b_cxx_post=$php_cxx_post
78610
 
  b_lo=$php_lo
78611
 
 
78612
 
 
78613
 
  old_IFS=$IFS
78614
 
  for ac_src in php_mssql.c; do
78615
 
  
78616
 
      IFS=.
78617
 
      set $ac_src
78618
 
      ac_obj=$1
78619
 
      IFS=$old_IFS
78620
 
      
78621
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78622
 
 
78623
 
      case $ac_src in
78624
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78625
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78626
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78627
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78628
 
      esac
78629
 
 
78630
 
    cat >>Makefile.objects<<EOF
78631
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78632
 
        $ac_comp
78633
 
EOF
78634
 
  done
78635
 
 
78636
 
 
78637
 
    EXT_STATIC="$EXT_STATIC mssql"
78638
 
    if test "$ext_shared" != "nocli"; then
78639
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
78640
 
    fi
78641
 
  else
78642
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
78643
 
      PHP_MSSQL_SHARED=yes
78644
 
      
78645
 
  case ext/mssql in
78646
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78647
 
  /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78648
 
  *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78649
 
  esac
78650
 
  
78651
 
  
78652
 
 
78653
 
  b_c_pre=$shared_c_pre
78654
 
  b_cxx_pre=$shared_cxx_pre
78655
 
  b_c_meta=$shared_c_meta
78656
 
  b_cxx_meta=$shared_cxx_meta
78657
 
  b_c_post=$shared_c_post
78658
 
  b_cxx_post=$shared_cxx_post
78659
 
  b_lo=$shared_lo
78660
 
 
78661
 
 
78662
 
  old_IFS=$IFS
78663
 
  for ac_src in php_mssql.c; do
78664
 
  
78665
 
      IFS=.
78666
 
      set $ac_src
78667
 
      ac_obj=$1
78668
 
      IFS=$old_IFS
78669
 
      
78670
 
      shared_objects_mssql="$shared_objects_mssql $ac_bdir$ac_obj.lo"
78671
 
 
78672
 
      case $ac_src in
78673
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78674
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78675
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78676
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78677
 
      esac
78678
 
 
78679
 
    cat >>Makefile.objects<<EOF
78680
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78681
 
        $ac_comp
78682
 
EOF
78683
 
  done
78684
 
 
78685
 
      case $host_alias in
78686
 
        *netware*)
78687
 
          
78688
 
  install_modules="install-modules"
78689
 
 
78690
 
  case $host_alias in
78691
 
    *aix*)
78692
 
      suffix=so
78693
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmssql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(PHPMSSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmssql.so '$ext_builddir'/phpmssql.so'
78694
 
      ;;
78695
 
    *netware*)
78696
 
      suffix=nlm
78697
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) -L$(top_builddir)/netware -lphp5lib $(MSSQL_SHARED_LIBADD)'
78698
 
      ;;
78699
 
    *)
78700
 
      suffix=la
78701
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(PHPMSSQL_SHARED_LIBADD)'
78702
 
      ;;
78703
 
  esac
78704
 
 
78705
 
  if test "x" = "xyes"; then
78706
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmssql.$suffix"
78707
 
  else
78708
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmssql.$suffix"
78709
 
  fi
78710
 
  
78711
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
78712
 
 
78713
 
  cat >>Makefile.objects<<EOF
78714
 
\$(phplibdir)/phpmssql.$suffix: $ext_builddir/phpmssql.$suffix
78715
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmssql.$suffix \$(phplibdir)
78716
 
 
78717
 
$ext_builddir/phpmssql.$suffix: \$(shared_objects_mssql) \$(PHPMSSQL_SHARED_DEPENDENCIES)
78718
 
        $link_cmd
78719
 
 
78720
 
EOF
78721
 
 
78722
 
          ;;
78723
 
        *)
78724
 
          
78725
 
  install_modules="install-modules"
78726
 
 
78727
 
  case $host_alias in
78728
 
    *aix*)
78729
 
      suffix=so
78730
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mssql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(MSSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mssql.so '$ext_builddir'/mssql.so'
78731
 
      ;;
78732
 
    *netware*)
78733
 
      suffix=nlm
78734
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) -L$(top_builddir)/netware -lphp5lib $(QL_SHARED_LIBADD)'
78735
 
      ;;
78736
 
    *)
78737
 
      suffix=la
78738
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mssql) $(MSSQL_SHARED_LIBADD)'
78739
 
      ;;
78740
 
  esac
78741
 
 
78742
 
  if test "x" = "xyes"; then
78743
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mssql.$suffix"
78744
 
  else
78745
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/mssql.$suffix"
78746
 
  fi
78747
 
  
78748
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
78749
 
 
78750
 
  cat >>Makefile.objects<<EOF
78751
 
\$(phplibdir)/mssql.$suffix: $ext_builddir/mssql.$suffix
78752
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/mssql.$suffix \$(phplibdir)
78753
 
 
78754
 
$ext_builddir/mssql.$suffix: \$(shared_objects_mssql) \$(MSSQL_SHARED_DEPENDENCIES)
78755
 
        $link_cmd
78756
 
 
78757
 
EOF
78758
 
 
78759
 
          ;;
78760
 
      esac
78761
 
      
78762
 
cat >>confdefs.h <<_ACEOF
78763
 
@%:@define COMPILE_DL_MSSQL 1
78764
 
_ACEOF
78765
 
 
78766
 
    fi
78767
 
  fi
78768
 
 
78769
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
78770
 
    PHP_MSSQL_SHARED=no
78771
 
    case "$PHP_SAPI" in
78772
 
      cgi|embed)
78773
 
        
78774
 
  
78775
 
  case ext/mssql in
78776
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78777
 
  /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78778
 
  *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78779
 
  esac
78780
 
  
78781
 
  
78782
 
 
78783
 
  b_c_pre=$php_c_pre
78784
 
  b_cxx_pre=$php_cxx_pre
78785
 
  b_c_meta=$php_c_meta
78786
 
  b_cxx_meta=$php_cxx_meta
78787
 
  b_c_post=$php_c_post
78788
 
  b_cxx_post=$php_cxx_post
78789
 
  b_lo=$php_lo
78790
 
 
78791
 
 
78792
 
  old_IFS=$IFS
78793
 
  for ac_src in php_mssql.c; do
78794
 
  
78795
 
      IFS=.
78796
 
      set $ac_src
78797
 
      ac_obj=$1
78798
 
      IFS=$old_IFS
78799
 
      
78800
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78801
 
 
78802
 
      case $ac_src in
78803
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78804
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78805
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78806
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78807
 
      esac
78808
 
 
78809
 
    cat >>Makefile.objects<<EOF
78810
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78811
 
        $ac_comp
78812
 
EOF
78813
 
  done
78814
 
 
78815
 
 
78816
 
        EXT_STATIC="$EXT_STATIC mssql"
78817
 
        ;;
78818
 
      *)
78819
 
        
78820
 
  
78821
 
  case ext/mssql in
78822
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78823
 
  /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78824
 
  *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78825
 
  esac
78826
 
  
78827
 
  
78828
 
 
78829
 
  b_c_pre=$php_c_pre
78830
 
  b_cxx_pre=$php_cxx_pre
78831
 
  b_c_meta=$php_c_meta
78832
 
  b_cxx_meta=$php_cxx_meta
78833
 
  b_c_post=$php_c_post
78834
 
  b_cxx_post=$php_cxx_post
78835
 
  b_lo=$php_lo
78836
 
 
78837
 
 
78838
 
  old_IFS=$IFS
78839
 
  for ac_src in php_mssql.c; do
78840
 
  
78841
 
      IFS=.
78842
 
      set $ac_src
78843
 
      ac_obj=$1
78844
 
      IFS=$old_IFS
78845
 
      
78846
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
78847
 
 
78848
 
      case $ac_src in
78849
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78850
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78851
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78852
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78853
 
      esac
78854
 
 
78855
 
    cat >>Makefile.objects<<EOF
78856
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78857
 
        $ac_comp
78858
 
EOF
78859
 
  done
78860
 
 
78861
 
 
78862
 
        ;;
78863
 
    esac
78864
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
78865
 
  fi
78866
 
  
78867
 
  
78868
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
78869
 
  
78870
 
 
78871
 
 
78872
 
  if test "$ext_builddir" = "."; then
78873
 
    PHP_PECL_EXTENSION=mssql
78874
 
    
78875
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
78876
 
 
78877
 
  fi
78878
 
 
78879
 
  { $as_echo "$as_me:$LINENO: checking for dnet_addr in -ldnet_stub" >&5
78880
 
$as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; }
78881
 
if test "${ac_cv_lib_dnet_stub_dnet_addr+set}" = set; then
78882
 
  $as_echo_n "(cached) " >&6
78883
 
else
78884
 
  ac_check_lib_save_LIBS=$LIBS
78885
 
LIBS="-ldnet_stub  $LIBS"
78886
 
cat >conftest.$ac_ext <<_ACEOF
78887
 
/* confdefs.h.  */
78888
 
_ACEOF
78889
 
cat confdefs.h >>conftest.$ac_ext
78890
 
cat >>conftest.$ac_ext <<_ACEOF
78891
 
/* end confdefs.h.  */
78892
 
 
78893
 
/* Override any GCC internal prototype to avoid an error.
78894
 
   Use char because int might match the return type of a GCC
78895
 
   builtin and then its argument prototype would still apply.  */
78896
 
#ifdef __cplusplus
78897
 
extern "C"
78898
 
#endif
78899
 
char dnet_addr ();
78900
 
int
78901
 
main ()
78902
 
{
78903
 
return dnet_addr ();
78904
 
  ;
78905
 
  return 0;
78906
 
}
78907
 
_ACEOF
78908
 
rm -f conftest.$ac_objext conftest$ac_exeext
78909
 
if { (ac_try="$ac_link"
78910
 
case "(($ac_try" in
78911
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78912
 
  *) ac_try_echo=$ac_try;;
78913
 
esac
78914
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78915
 
$as_echo "$ac_try_echo") >&5
78916
 
  (eval "$ac_link") 2>conftest.er1
78917
 
  ac_status=$?
78918
 
  grep -v '^ *+' conftest.er1 >conftest.err
78919
 
  rm -f conftest.er1
78920
 
  cat conftest.err >&5
78921
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78922
 
  (exit $ac_status); } && {
78923
 
         test -z "$ac_c_werror_flag" ||
78924
 
         test ! -s conftest.err
78925
 
       } && test -s conftest$ac_exeext && {
78926
 
         test "$cross_compiling" = yes ||
78927
 
         $as_test_x conftest$ac_exeext
78928
 
       }; then
78929
 
  ac_cv_lib_dnet_stub_dnet_addr=yes
78930
 
else
78931
 
  $as_echo "$as_me: failed program was:" >&5
78932
 
sed 's/^/| /' conftest.$ac_ext >&5
78933
 
 
78934
 
        ac_cv_lib_dnet_stub_dnet_addr=no
78935
 
fi
78936
 
 
78937
 
rm -rf conftest.dSYM
78938
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
78939
 
      conftest$ac_exeext conftest.$ac_ext
78940
 
LIBS=$ac_check_lib_save_LIBS
78941
 
fi
78942
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
78943
 
$as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
78944
 
if test "x$ac_cv_lib_dnet_stub_dnet_addr" = x""yes; then
78945
 
   
78946
 
 
78947
 
  if test "$ext_shared" = "yes"; then
78948
 
    MSSQL_SHARED_LIBADD="-ldnet_stub $MSSQL_SHARED_LIBADD"
78949
 
    if test -n ""; then
78950
 
      
78951
 
  if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
78952
 
    
78953
 
  if test -z "" || echo "" | grep '^/' >/dev/null ; then
78954
 
    ai_p=
78955
 
  else
78956
 
    
78957
 
    ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
78958
 
    
78959
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78960
 
    ai_p="$ep_realdir/`basename \"\"`"
78961
 
  fi
78962
 
 
78963
 
    
78964
 
      if test "$ext_shared" = "yes"; then
78965
 
        MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
78966
 
        test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
78967
 
      else
78968
 
        
78969
 
  
78970
 
  
78971
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78972
 
  
78973
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78974
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
78975
 
    eval "LIBPATH$unique=set"
78976
 
    
78977
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78978
 
    LDFLAGS="$LDFLAGS -L$ai_p"
78979
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
78980
 
  
78981
 
  fi
78982
 
 
78983
 
 
78984
 
      fi
78985
 
    
78986
 
  fi
78987
 
 
78988
 
    fi
78989
 
  else
78990
 
    
78991
 
 
78992
 
  if test -n ""; then
78993
 
    
78994
 
  if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
78995
 
    
78996
 
  if test -z "" || echo "" | grep '^/' >/dev/null ; then
78997
 
    ai_p=
78998
 
  else
78999
 
    
79000
 
    ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
79001
 
    
79002
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79003
 
    ai_p="$ep_realdir/`basename \"\"`"
79004
 
  fi
79005
 
 
79006
 
    
79007
 
      
79008
 
  
79009
 
  
79010
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79011
 
  
79012
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79013
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79014
 
    eval "LIBPATH$unique=set"
79015
 
    
79016
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79017
 
    LDFLAGS="$LDFLAGS -L$ai_p"
79018
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
79019
 
  
79020
 
  fi
79021
 
 
79022
 
 
79023
 
    
79024
 
  fi
79025
 
 
79026
 
  fi
79027
 
  
79028
 
  
79029
 
  case dnet_stub in
79030
 
  c|c_r|pthread*) ;;
79031
 
  *) 
79032
 
      LIBS="-ldnet_stub $LIBS" 
79033
 
   ;;
79034
 
  esac
79035
 
 
79036
 
 
79037
 
 
79038
 
 
79039
 
  fi
79040
 
 
79041
 
 
79042
 
        
79043
 
cat >>confdefs.h <<\_ACEOF
79044
 
@%:@define HAVE_LIBDNET_STUB 1
79045
 
_ACEOF
79046
 
 
79047
 
     
79048
 
fi
79049
 
 
79050
 
  
79051
 
cat >>confdefs.h <<\_ACEOF
79052
 
@%:@define HAVE_MSSQL 1
79053
 
_ACEOF
79054
 
 
79055
 
  
79056
 
cat >>confdefs.h <<\_ACEOF
79057
 
@%:@define HAVE_FREETDS 1
79058
 
_ACEOF
79059
 
 
79060
 
  
79061
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MSSQL_SHARED_LIBADD"
79062
 
 
79063
 
fi
79064
 
 
79065
 
 
79066
 
 
79067
 
 
79068
 
 
79069
 
 
79070
 
 
79071
 
 
79072
 
php_with_mysql=no
79073
 
 
79074
 
{ $as_echo "$as_me:$LINENO: checking for MySQL support" >&5
79075
 
$as_echo_n "checking for MySQL support... " >&6; }
79076
 
 
79077
 
@%:@ Check whether --with-mysql was given.
79078
 
if test "${with_mysql+set}" = set; then
79079
 
  withval=$with_mysql; PHP_MYSQL=$withval
79080
 
else
79081
 
  
79082
 
  PHP_MYSQL=no
79083
 
  test "$PHP_ENABLE_ALL" && PHP_MYSQL=$PHP_ENABLE_ALL
79084
 
 
79085
 
fi
79086
 
 
79087
 
 
79088
 
 
79089
 
ext_output="yes, shared"
79090
 
ext_shared=yes
79091
 
case $PHP_MYSQL in
79092
 
shared,*)
79093
 
  PHP_MYSQL=`echo "$PHP_MYSQL"|$SED 's/^shared,//'`
79094
 
  ;;
79095
 
shared)
79096
 
  PHP_MYSQL=yes
79097
 
  ;;
79098
 
no)
79099
 
  ext_output=no
79100
 
  ext_shared=no
79101
 
  ;;
79102
 
*)
79103
 
  ext_output=yes
79104
 
  ext_shared=no
79105
 
  ;;
79106
 
esac
79107
 
 
79108
 
 
79109
 
 
79110
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
79111
 
$as_echo "$ext_output" >&6; }
79112
 
 
79113
 
 
79114
 
 
79115
 
 
79116
 
 
79117
 
php_with_mysql_sock=no
79118
 
 
79119
 
{ $as_echo "$as_me:$LINENO: checking for specified location of the MySQL UNIX socket" >&5
79120
 
$as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; }
79121
 
 
79122
 
@%:@ Check whether --with-mysql-sock was given.
79123
 
if test "${with_mysql_sock+set}" = set; then
79124
 
  withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval
79125
 
else
79126
 
  
79127
 
  PHP_MYSQL_SOCK=no
79128
 
  
79129
 
 
79130
 
fi
79131
 
 
79132
 
 
79133
 
ext_output=$PHP_MYSQL_SOCK
79134
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
79135
 
$as_echo "$ext_output" >&6; }
79136
 
 
79137
 
 
79138
 
 
79139
 
 
79140
 
if test -z "$PHP_ZLIB_DIR"; then
79141
 
  
79142
 
php_with_zlib_dir=no
79143
 
 
79144
 
{ $as_echo "$as_me:$LINENO: checking for the location of libz" >&5
79145
 
$as_echo_n "checking for the location of libz... " >&6; }
79146
 
 
79147
 
@%:@ Check whether --with-zlib-dir was given.
79148
 
if test "${with_zlib_dir+set}" = set; then
79149
 
  withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
79150
 
else
79151
 
  
79152
 
  PHP_ZLIB_DIR=no
79153
 
  
79154
 
 
79155
 
fi
79156
 
 
79157
 
 
79158
 
ext_output=$PHP_ZLIB_DIR
79159
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
79160
 
$as_echo "$ext_output" >&6; }
79161
 
 
79162
 
 
79163
 
 
79164
 
fi
79165
 
 
79166
 
if test "$PHP_MYSQL" = "mysqlnd"; then
79167
 
    PHP_MYSQLND_ENABLED=yes
79168
 
 
79169
 
elif test "$PHP_MYSQL" != "no"; then
79170
 
  MYSQL_DIR=
79171
 
  MYSQL_INC_DIR=
79172
 
 
79173
 
  for i in $PHP_MYSQL /usr/local /usr; do
79174
 
    if test -r $i/include/mysql/mysql.h; then
79175
 
      MYSQL_DIR=$i
79176
 
      MYSQL_INC_DIR=$i/include/mysql
79177
 
      break
79178
 
    elif test -r $i/include/mysql.h; then
79179
 
      MYSQL_DIR=$i
79180
 
      MYSQL_INC_DIR=$i/include
79181
 
      break
79182
 
    fi
79183
 
  done
79184
 
 
79185
 
  if test -z "$MYSQL_DIR"; then
79186
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find MySQL header files under $PHP_MYSQL.
79187
 
Note that the MySQL client library is not bundled anymore!" >&5
79188
 
$as_echo "$as_me: error: Cannot find MySQL header files under $PHP_MYSQL.
79189
 
Note that the MySQL client library is not bundled anymore!" >&2;}
79190
 
   { (exit 1); exit 1; }; }
79191
 
  fi
79192
 
 
79193
 
  if test "$enable_maintainer_zts" = "yes"; then
79194
 
    MYSQL_LIBNAME=mysqlclient_r
79195
 
  else
79196
 
    MYSQL_LIBNAME=mysqlclient
79197
 
  fi
79198
 
  case $host_alias in
79199
 
    *netware*)
79200
 
      MYSQL_LIBNAME=mysql
79201
 
      ;;
79202
 
  esac
79203
 
 
79204
 
    if test -z "$PHP_LIBDIR"; then
79205
 
    PHP_LIBDIR=lib
79206
 
  fi
79207
 
 
79208
 
  for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do
79209
 
    
79210
 
  str="$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.*"
79211
 
  for j in `echo $str`; do
79212
 
    if test -r $j; then
79213
 
      MYSQL_LIB_DIR=$MYSQL_DIR/$i
79214
 
      break 2
79215
 
    fi
79216
 
  done
79217
 
 
79218
 
  done
79219
 
 
79220
 
  if test -z "$MYSQL_LIB_DIR"; then
79221
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR.
79222
 
Note that the MySQL client library is not bundled anymore!" >&5
79223
 
$as_echo "$as_me: error: Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR.
79224
 
Note that the MySQL client library is not bundled anymore!" >&2;}
79225
 
   { (exit 1); exit 1; }; }
79226
 
  fi
79227
 
 
79228
 
  
79229
 
  save_old_LDFLAGS=$LDFLAGS
79230
 
  ac_stuff="
79231
 
    -L$MYSQL_LIB_DIR 
79232
 
  "
79233
 
  
79234
 
  save_ext_shared=$ext_shared
79235
 
  ext_shared=yes
79236
 
  
79237
 
  for ac_i in $ac_stuff; do
79238
 
    case $ac_i in
79239
 
    -pthread)
79240
 
      if test "$ext_shared" = "yes"; then
79241
 
        LDFLAGS="$LDFLAGS -pthread"
79242
 
      else
79243
 
        
79244
 
  
79245
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
79246
 
  
79247
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
79248
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79249
 
    eval "EXTRA_LDFLAGS$unique=set"
79250
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
79251
 
  fi
79252
 
 
79253
 
      fi
79254
 
    ;;
79255
 
    -l*)
79256
 
      ac_ii=`echo $ac_i|cut -c 3-`
79257
 
      
79258
 
  
79259
 
  case $ac_ii in
79260
 
  c|c_r|pthread*) ;;
79261
 
  *) 
79262
 
    if test "$ext_shared" = "yes"; then
79263
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
79264
 
    else
79265
 
      
79266
 
  
79267
 
  case $ac_ii in
79268
 
  c|c_r|pthread*) ;;
79269
 
  *) 
79270
 
      LIBS="$LIBS -l$ac_ii" 
79271
 
   ;;
79272
 
  esac
79273
 
 
79274
 
 
79275
 
    fi
79276
 
   ;;
79277
 
  esac
79278
 
 
79279
 
 
79280
 
    ;;
79281
 
    -L*)
79282
 
      ac_ii=`echo $ac_i|cut -c 3-`
79283
 
      
79284
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
79285
 
    
79286
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
79287
 
    ai_p=$ac_ii
79288
 
  else
79289
 
    
79290
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
79291
 
    
79292
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79293
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
79294
 
  fi
79295
 
 
79296
 
    
79297
 
      if test "$ext_shared" = "yes"; then
79298
 
        LDFLAGS="-L$ai_p $LDFLAGS"
79299
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
79300
 
      else
79301
 
        
79302
 
  
79303
 
  
79304
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79305
 
  
79306
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79307
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79308
 
    eval "LIBPATH$unique=set"
79309
 
    
79310
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79311
 
    LDFLAGS="$LDFLAGS -L$ai_p"
79312
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
79313
 
  
79314
 
  fi
79315
 
 
79316
 
 
79317
 
      fi
79318
 
    
79319
 
  fi
79320
 
 
79321
 
    ;;
79322
 
    esac
79323
 
  done
79324
 
 
79325
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_close" | $as_tr_sh`
79326
 
{ $as_echo "$as_me:$LINENO: checking for mysql_close in -l$MYSQL_LIBNAME" >&5
79327
 
$as_echo_n "checking for mysql_close in -l$MYSQL_LIBNAME... " >&6; }
79328
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
79329
 
  $as_echo_n "(cached) " >&6
79330
 
else
79331
 
  ac_check_lib_save_LIBS=$LIBS
79332
 
LIBS="-l$MYSQL_LIBNAME  $LIBS"
79333
 
cat >conftest.$ac_ext <<_ACEOF
79334
 
/* confdefs.h.  */
79335
 
_ACEOF
79336
 
cat confdefs.h >>conftest.$ac_ext
79337
 
cat >>conftest.$ac_ext <<_ACEOF
79338
 
/* end confdefs.h.  */
79339
 
 
79340
 
/* Override any GCC internal prototype to avoid an error.
79341
 
   Use char because int might match the return type of a GCC
79342
 
   builtin and then its argument prototype would still apply.  */
79343
 
#ifdef __cplusplus
79344
 
extern "C"
79345
 
#endif
79346
 
char mysql_close ();
79347
 
int
79348
 
main ()
79349
 
{
79350
 
return mysql_close ();
79351
 
  ;
79352
 
  return 0;
79353
 
}
79354
 
_ACEOF
79355
 
rm -f conftest.$ac_objext conftest$ac_exeext
79356
 
if { (ac_try="$ac_link"
79357
 
case "(($ac_try" in
79358
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79359
 
  *) ac_try_echo=$ac_try;;
79360
 
esac
79361
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79362
 
$as_echo "$ac_try_echo") >&5
79363
 
  (eval "$ac_link") 2>conftest.er1
79364
 
  ac_status=$?
79365
 
  grep -v '^ *+' conftest.er1 >conftest.err
79366
 
  rm -f conftest.er1
79367
 
  cat conftest.err >&5
79368
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79369
 
  (exit $ac_status); } && {
79370
 
         test -z "$ac_c_werror_flag" ||
79371
 
         test ! -s conftest.err
79372
 
       } && test -s conftest$ac_exeext && {
79373
 
         test "$cross_compiling" = yes ||
79374
 
         $as_test_x conftest$ac_exeext
79375
 
       }; then
79376
 
  eval "$as_ac_Lib=yes"
79377
 
else
79378
 
  $as_echo "$as_me: failed program was:" >&5
79379
 
sed 's/^/| /' conftest.$ac_ext >&5
79380
 
 
79381
 
        eval "$as_ac_Lib=no"
79382
 
fi
79383
 
 
79384
 
rm -rf conftest.dSYM
79385
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79386
 
      conftest$ac_exeext conftest.$ac_ext
79387
 
LIBS=$ac_check_lib_save_LIBS
79388
 
fi
79389
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
79390
 
                 $as_echo "$as_val"'`
79391
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
79392
 
$as_echo "$ac_res" >&6; }
79393
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
79394
 
                 $as_echo "$as_val"'`
79395
 
   if test "x$as_val" = x""yes; then
79396
 
  
79397
 
    LDFLAGS=$save_old_LDFLAGS
79398
 
    ext_shared=$save_ext_shared
79399
 
     
79400
 
  
79401
 
else
79402
 
  
79403
 
    LDFLAGS=$save_old_LDFLAGS
79404
 
    ext_shared=$save_ext_shared
79405
 
    unset ac_cv_lib_$MYSQL_LIBNAME_mysql_close
79406
 
    
79407
 
    if test "$PHP_ZLIB_DIR" != "no"; then
79408
 
      
79409
 
 
79410
 
  if test "$ext_shared" = "yes"; then
79411
 
    MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD"
79412
 
    if test -n "$PHP_ZLIB_DIR"; then
79413
 
      
79414
 
  if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
79415
 
    
79416
 
  if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
79417
 
    ai_p=$PHP_ZLIB_DIR
79418
 
  else
79419
 
    
79420
 
    ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
79421
 
    
79422
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79423
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
79424
 
  fi
79425
 
 
79426
 
    
79427
 
      if test "$ext_shared" = "yes"; then
79428
 
        MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
79429
 
        test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
79430
 
      else
79431
 
        
79432
 
  
79433
 
  
79434
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79435
 
  
79436
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79437
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79438
 
    eval "LIBPATH$unique=set"
79439
 
    
79440
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79441
 
    LDFLAGS="$LDFLAGS -L$ai_p"
79442
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
79443
 
  
79444
 
  fi
79445
 
 
79446
 
 
79447
 
      fi
79448
 
    
79449
 
  fi
79450
 
 
79451
 
    fi
79452
 
  else
79453
 
    
79454
 
 
79455
 
  if test -n "$PHP_ZLIB_DIR"; then
79456
 
    
79457
 
  if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
79458
 
    
79459
 
  if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
79460
 
    ai_p=$PHP_ZLIB_DIR
79461
 
  else
79462
 
    
79463
 
    ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
79464
 
    
79465
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79466
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
79467
 
  fi
79468
 
 
79469
 
    
79470
 
      
79471
 
  
79472
 
  
79473
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79474
 
  
79475
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79476
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79477
 
    eval "LIBPATH$unique=set"
79478
 
    
79479
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79480
 
    LDFLAGS="$LDFLAGS -L$ai_p"
79481
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
79482
 
  
79483
 
  fi
79484
 
 
79485
 
 
79486
 
    
79487
 
  fi
79488
 
 
79489
 
  fi
79490
 
  
79491
 
  
79492
 
  case z in
79493
 
  c|c_r|pthread*) ;;
79494
 
  *) 
79495
 
      LIBS="-lz $LIBS" 
79496
 
   ;;
79497
 
  esac
79498
 
 
79499
 
 
79500
 
 
79501
 
 
79502
 
  fi
79503
 
 
79504
 
 
79505
 
      
79506
 
  save_old_LDFLAGS=$LDFLAGS
79507
 
  ac_stuff="
79508
 
        -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$MYSQL_LIB_DIR 
79509
 
      "
79510
 
  
79511
 
  save_ext_shared=$ext_shared
79512
 
  ext_shared=yes
79513
 
  
79514
 
  for ac_i in $ac_stuff; do
79515
 
    case $ac_i in
79516
 
    -pthread)
79517
 
      if test "$ext_shared" = "yes"; then
79518
 
        LDFLAGS="$LDFLAGS -pthread"
79519
 
      else
79520
 
        
79521
 
  
79522
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
79523
 
  
79524
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
79525
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79526
 
    eval "EXTRA_LDFLAGS$unique=set"
79527
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
79528
 
  fi
79529
 
 
79530
 
      fi
79531
 
    ;;
79532
 
    -l*)
79533
 
      ac_ii=`echo $ac_i|cut -c 3-`
79534
 
      
79535
 
  
79536
 
  case $ac_ii in
79537
 
  c|c_r|pthread*) ;;
79538
 
  *) 
79539
 
    if test "$ext_shared" = "yes"; then
79540
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
79541
 
    else
79542
 
      
79543
 
  
79544
 
  case $ac_ii in
79545
 
  c|c_r|pthread*) ;;
79546
 
  *) 
79547
 
      LIBS="$LIBS -l$ac_ii" 
79548
 
   ;;
79549
 
  esac
79550
 
 
79551
 
 
79552
 
    fi
79553
 
   ;;
79554
 
  esac
79555
 
 
79556
 
 
79557
 
    ;;
79558
 
    -L*)
79559
 
      ac_ii=`echo $ac_i|cut -c 3-`
79560
 
      
79561
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
79562
 
    
79563
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
79564
 
    ai_p=$ac_ii
79565
 
  else
79566
 
    
79567
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
79568
 
    
79569
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79570
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
79571
 
  fi
79572
 
 
79573
 
    
79574
 
      if test "$ext_shared" = "yes"; then
79575
 
        LDFLAGS="-L$ai_p $LDFLAGS"
79576
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
79577
 
      else
79578
 
        
79579
 
  
79580
 
  
79581
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79582
 
  
79583
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79584
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79585
 
    eval "LIBPATH$unique=set"
79586
 
    
79587
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79588
 
    LDFLAGS="$LDFLAGS -L$ai_p"
79589
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
79590
 
  
79591
 
  fi
79592
 
 
79593
 
 
79594
 
      fi
79595
 
    
79596
 
  fi
79597
 
 
79598
 
    ;;
79599
 
    esac
79600
 
  done
79601
 
 
79602
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_error" | $as_tr_sh`
79603
 
{ $as_echo "$as_me:$LINENO: checking for mysql_error in -l$MYSQL_LIBNAME" >&5
79604
 
$as_echo_n "checking for mysql_error in -l$MYSQL_LIBNAME... " >&6; }
79605
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
79606
 
  $as_echo_n "(cached) " >&6
79607
 
else
79608
 
  ac_check_lib_save_LIBS=$LIBS
79609
 
LIBS="-l$MYSQL_LIBNAME  $LIBS"
79610
 
cat >conftest.$ac_ext <<_ACEOF
79611
 
/* confdefs.h.  */
79612
 
_ACEOF
79613
 
cat confdefs.h >>conftest.$ac_ext
79614
 
cat >>conftest.$ac_ext <<_ACEOF
79615
 
/* end confdefs.h.  */
79616
 
 
79617
 
/* Override any GCC internal prototype to avoid an error.
79618
 
   Use char because int might match the return type of a GCC
79619
 
   builtin and then its argument prototype would still apply.  */
79620
 
#ifdef __cplusplus
79621
 
extern "C"
79622
 
#endif
79623
 
char mysql_error ();
79624
 
int
79625
 
main ()
79626
 
{
79627
 
return mysql_error ();
79628
 
  ;
79629
 
  return 0;
79630
 
}
79631
 
_ACEOF
79632
 
rm -f conftest.$ac_objext conftest$ac_exeext
79633
 
if { (ac_try="$ac_link"
79634
 
case "(($ac_try" in
79635
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79636
 
  *) ac_try_echo=$ac_try;;
79637
 
esac
79638
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79639
 
$as_echo "$ac_try_echo") >&5
79640
 
  (eval "$ac_link") 2>conftest.er1
79641
 
  ac_status=$?
79642
 
  grep -v '^ *+' conftest.er1 >conftest.err
79643
 
  rm -f conftest.er1
79644
 
  cat conftest.err >&5
79645
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79646
 
  (exit $ac_status); } && {
79647
 
         test -z "$ac_c_werror_flag" ||
79648
 
         test ! -s conftest.err
79649
 
       } && test -s conftest$ac_exeext && {
79650
 
         test "$cross_compiling" = yes ||
79651
 
         $as_test_x conftest$ac_exeext
79652
 
       }; then
79653
 
  eval "$as_ac_Lib=yes"
79654
 
else
79655
 
  $as_echo "$as_me: failed program was:" >&5
79656
 
sed 's/^/| /' conftest.$ac_ext >&5
79657
 
 
79658
 
        eval "$as_ac_Lib=no"
79659
 
fi
79660
 
 
79661
 
rm -rf conftest.dSYM
79662
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79663
 
      conftest$ac_exeext conftest.$ac_ext
79664
 
LIBS=$ac_check_lib_save_LIBS
79665
 
fi
79666
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
79667
 
                 $as_echo "$as_val"'`
79668
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
79669
 
$as_echo "$ac_res" >&6; }
79670
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
79671
 
                 $as_echo "$as_val"'`
79672
 
   if test "x$as_val" = x""yes; then
79673
 
  
79674
 
    LDFLAGS=$save_old_LDFLAGS
79675
 
    ext_shared=$save_ext_shared
79676
 
    
79677
 
  
79678
 
else
79679
 
  
79680
 
    LDFLAGS=$save_old_LDFLAGS
79681
 
    ext_shared=$save_ext_shared
79682
 
    unset ac_cv_lib_$MYSQL_LIBNAME_mysql_error
79683
 
    
79684
 
        { { $as_echo "$as_me:$LINENO: error: mysql configure failed. Please check config.log for more information." >&5
79685
 
$as_echo "$as_me: error: mysql configure failed. Please check config.log for more information." >&2;}
79686
 
   { (exit 1); exit 1; }; }
79687
 
      
79688
 
  
79689
 
fi
79690
 
  
79691
 
      MYSQL_LIBS="-L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
79692
 
    else
79693
 
      
79694
 
  
79695
 
  case z in
79696
 
  c|c_r|pthread*) ;;
79697
 
  *) 
79698
 
    if test "$ext_shared" = "yes"; then
79699
 
        MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD" 
79700
 
    else
79701
 
      
79702
 
  
79703
 
  case z in
79704
 
  c|c_r|pthread*) ;;
79705
 
  *) 
79706
 
      LIBS="-lz $LIBS" 
79707
 
   ;;
79708
 
  esac
79709
 
 
79710
 
 
79711
 
    fi
79712
 
   ;;
79713
 
  esac
79714
 
 
79715
 
 
79716
 
      
79717
 
  save_old_LDFLAGS=$LDFLAGS
79718
 
  ac_stuff="
79719
 
        -L$MYSQL_LIB_DIR
79720
 
      "
79721
 
  
79722
 
  save_ext_shared=$ext_shared
79723
 
  ext_shared=yes
79724
 
  
79725
 
  for ac_i in $ac_stuff; do
79726
 
    case $ac_i in
79727
 
    -pthread)
79728
 
      if test "$ext_shared" = "yes"; then
79729
 
        LDFLAGS="$LDFLAGS -pthread"
79730
 
      else
79731
 
        
79732
 
  
79733
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
79734
 
  
79735
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
79736
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79737
 
    eval "EXTRA_LDFLAGS$unique=set"
79738
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
79739
 
  fi
79740
 
 
79741
 
      fi
79742
 
    ;;
79743
 
    -l*)
79744
 
      ac_ii=`echo $ac_i|cut -c 3-`
79745
 
      
79746
 
  
79747
 
  case $ac_ii in
79748
 
  c|c_r|pthread*) ;;
79749
 
  *) 
79750
 
    if test "$ext_shared" = "yes"; then
79751
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
79752
 
    else
79753
 
      
79754
 
  
79755
 
  case $ac_ii in
79756
 
  c|c_r|pthread*) ;;
79757
 
  *) 
79758
 
      LIBS="$LIBS -l$ac_ii" 
79759
 
   ;;
79760
 
  esac
79761
 
 
79762
 
 
79763
 
    fi
79764
 
   ;;
79765
 
  esac
79766
 
 
79767
 
 
79768
 
    ;;
79769
 
    -L*)
79770
 
      ac_ii=`echo $ac_i|cut -c 3-`
79771
 
      
79772
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
79773
 
    
79774
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
79775
 
    ai_p=$ac_ii
79776
 
  else
79777
 
    
79778
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
79779
 
    
79780
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79781
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
79782
 
  fi
79783
 
 
79784
 
    
79785
 
      if test "$ext_shared" = "yes"; then
79786
 
        LDFLAGS="-L$ai_p $LDFLAGS"
79787
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
79788
 
      else
79789
 
        
79790
 
  
79791
 
  
79792
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79793
 
  
79794
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79795
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79796
 
    eval "LIBPATH$unique=set"
79797
 
    
79798
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79799
 
    LDFLAGS="$LDFLAGS -L$ai_p"
79800
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
79801
 
  
79802
 
  fi
79803
 
 
79804
 
 
79805
 
      fi
79806
 
    
79807
 
  fi
79808
 
 
79809
 
    ;;
79810
 
    esac
79811
 
  done
79812
 
 
79813
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_errno" | $as_tr_sh`
79814
 
{ $as_echo "$as_me:$LINENO: checking for mysql_errno in -l$MYSQL_LIBNAME" >&5
79815
 
$as_echo_n "checking for mysql_errno in -l$MYSQL_LIBNAME... " >&6; }
79816
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
79817
 
  $as_echo_n "(cached) " >&6
79818
 
else
79819
 
  ac_check_lib_save_LIBS=$LIBS
79820
 
LIBS="-l$MYSQL_LIBNAME  $LIBS"
79821
 
cat >conftest.$ac_ext <<_ACEOF
79822
 
/* confdefs.h.  */
79823
 
_ACEOF
79824
 
cat confdefs.h >>conftest.$ac_ext
79825
 
cat >>conftest.$ac_ext <<_ACEOF
79826
 
/* end confdefs.h.  */
79827
 
 
79828
 
/* Override any GCC internal prototype to avoid an error.
79829
 
   Use char because int might match the return type of a GCC
79830
 
   builtin and then its argument prototype would still apply.  */
79831
 
#ifdef __cplusplus
79832
 
extern "C"
79833
 
#endif
79834
 
char mysql_errno ();
79835
 
int
79836
 
main ()
79837
 
{
79838
 
return mysql_errno ();
79839
 
  ;
79840
 
  return 0;
79841
 
}
79842
 
_ACEOF
79843
 
rm -f conftest.$ac_objext conftest$ac_exeext
79844
 
if { (ac_try="$ac_link"
79845
 
case "(($ac_try" in
79846
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79847
 
  *) ac_try_echo=$ac_try;;
79848
 
esac
79849
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79850
 
$as_echo "$ac_try_echo") >&5
79851
 
  (eval "$ac_link") 2>conftest.er1
79852
 
  ac_status=$?
79853
 
  grep -v '^ *+' conftest.er1 >conftest.err
79854
 
  rm -f conftest.er1
79855
 
  cat conftest.err >&5
79856
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79857
 
  (exit $ac_status); } && {
79858
 
         test -z "$ac_c_werror_flag" ||
79859
 
         test ! -s conftest.err
79860
 
       } && test -s conftest$ac_exeext && {
79861
 
         test "$cross_compiling" = yes ||
79862
 
         $as_test_x conftest$ac_exeext
79863
 
       }; then
79864
 
  eval "$as_ac_Lib=yes"
79865
 
else
79866
 
  $as_echo "$as_me: failed program was:" >&5
79867
 
sed 's/^/| /' conftest.$ac_ext >&5
79868
 
 
79869
 
        eval "$as_ac_Lib=no"
79870
 
fi
79871
 
 
79872
 
rm -rf conftest.dSYM
79873
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79874
 
      conftest$ac_exeext conftest.$ac_ext
79875
 
LIBS=$ac_check_lib_save_LIBS
79876
 
fi
79877
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
79878
 
                 $as_echo "$as_val"'`
79879
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
79880
 
$as_echo "$ac_res" >&6; }
79881
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
79882
 
                 $as_echo "$as_val"'`
79883
 
   if test "x$as_val" = x""yes; then
79884
 
  
79885
 
    LDFLAGS=$save_old_LDFLAGS
79886
 
    ext_shared=$save_ext_shared
79887
 
    
79888
 
  
79889
 
else
79890
 
  
79891
 
    LDFLAGS=$save_old_LDFLAGS
79892
 
    ext_shared=$save_ext_shared
79893
 
    unset ac_cv_lib_$MYSQL_LIBNAME_mysql_errno
79894
 
    
79895
 
        { { $as_echo "$as_me:$LINENO: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." >&5
79896
 
$as_echo "$as_me: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." >&2;}
79897
 
   { (exit 1); exit 1; }; }
79898
 
      
79899
 
  
79900
 
fi
79901
 
   
79902
 
      MYSQL_LIBS="-lz"
79903
 
    fi
79904
 
  
79905
 
  
79906
 
fi
79907
 
 
79908
 
 
79909
 
  
79910
 
 
79911
 
  if test "$ext_shared" = "yes"; then
79912
 
    MYSQL_SHARED_LIBADD="-l$MYSQL_LIBNAME $MYSQL_SHARED_LIBADD"
79913
 
    if test -n "$MYSQL_LIB_DIR"; then
79914
 
      
79915
 
  if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
79916
 
    
79917
 
  if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
79918
 
    ai_p=$MYSQL_LIB_DIR
79919
 
  else
79920
 
    
79921
 
    ep_dir="`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
79922
 
    
79923
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79924
 
    ai_p="$ep_realdir/`basename \"$MYSQL_LIB_DIR\"`"
79925
 
  fi
79926
 
 
79927
 
    
79928
 
      if test "$ext_shared" = "yes"; then
79929
 
        MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
79930
 
        test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
79931
 
      else
79932
 
        
79933
 
  
79934
 
  
79935
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79936
 
  
79937
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79938
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79939
 
    eval "LIBPATH$unique=set"
79940
 
    
79941
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79942
 
    LDFLAGS="$LDFLAGS -L$ai_p"
79943
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
79944
 
  
79945
 
  fi
79946
 
 
79947
 
 
79948
 
      fi
79949
 
    
79950
 
  fi
79951
 
 
79952
 
    fi
79953
 
  else
79954
 
    
79955
 
 
79956
 
  if test -n "$MYSQL_LIB_DIR"; then
79957
 
    
79958
 
  if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
79959
 
    
79960
 
  if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
79961
 
    ai_p=$MYSQL_LIB_DIR
79962
 
  else
79963
 
    
79964
 
    ep_dir="`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
79965
 
    
79966
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
79967
 
    ai_p="$ep_realdir/`basename \"$MYSQL_LIB_DIR\"`"
79968
 
  fi
79969
 
 
79970
 
    
79971
 
      
79972
 
  
79973
 
  
79974
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
79975
 
  
79976
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
79977
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
79978
 
    eval "LIBPATH$unique=set"
79979
 
    
79980
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
79981
 
    LDFLAGS="$LDFLAGS -L$ai_p"
79982
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
79983
 
  
79984
 
  fi
79985
 
 
79986
 
 
79987
 
    
79988
 
  fi
79989
 
 
79990
 
  fi
79991
 
  
79992
 
  
79993
 
  case $MYSQL_LIBNAME in
79994
 
  c|c_r|pthread*) ;;
79995
 
  *) 
79996
 
      LIBS="-l$MYSQL_LIBNAME $LIBS" 
79997
 
   ;;
79998
 
  esac
79999
 
 
80000
 
 
80001
 
 
80002
 
 
80003
 
  fi
80004
 
 
80005
 
 
80006
 
  
80007
 
  if test "$MYSQL_INC_DIR" != "/usr/include"; then
80008
 
    
80009
 
  if test -z "$MYSQL_INC_DIR" || echo "$MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
80010
 
    ai_p=$MYSQL_INC_DIR
80011
 
  else
80012
 
    
80013
 
    ep_dir="`echo $MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
80014
 
    
80015
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80016
 
    ai_p="$ep_realdir/`basename \"$MYSQL_INC_DIR\"`"
80017
 
  fi
80018
 
 
80019
 
    
80020
 
  
80021
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80022
 
  
80023
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
80024
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
80025
 
    eval "INCLUDEPATH$unique=set"
80026
 
    
80027
 
      if test ""; then
80028
 
        INCLUDES="-I$ai_p $INCLUDES"
80029
 
      else
80030
 
        INCLUDES="$INCLUDES -I$ai_p"
80031
 
      fi
80032
 
    
80033
 
  fi
80034
 
 
80035
 
  fi
80036
 
 
80037
 
 
80038
 
  MYSQL_MODULE_TYPE=external
80039
 
  MYSQL_LIBS="-L$MYSQL_LIB_DIR -l$MYSQL_LIBNAME $MYSQL_LIBS"
80040
 
  MYSQL_INCLUDE=-I$MYSQL_INC_DIR
80041
 
 
80042
 
  
80043
 
  
80044
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_MODULE_TYPE"
80045
 
 
80046
 
  
80047
 
 
80048
 
  
80049
 
  
80050
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_LIBS"
80051
 
 
80052
 
  
80053
 
 
80054
 
  
80055
 
  
80056
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_INCLUDE"
80057
 
 
80058
 
  
80059
 
 
80060
 
fi
80061
 
 
80062
 
if test "$PHP_MYSQL" != "no"; then
80063
 
  { $as_echo "$as_me:$LINENO: checking for MySQL UNIX socket location" >&5
80064
 
$as_echo_n "checking for MySQL UNIX socket location... " >&6; }
80065
 
  if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then
80066
 
    MYSQL_SOCK=$PHP_MYSQL_SOCK
80067
 
    
80068
 
cat >>confdefs.h <<_ACEOF
80069
 
@%:@define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
80070
 
_ACEOF
80071
 
 
80072
 
    { $as_echo "$as_me:$LINENO: result: $MYSQL_SOCK" >&5
80073
 
$as_echo "$MYSQL_SOCK" >&6; }
80074
 
  elif test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL_SOCK" = "yes"; then
80075
 
    
80076
 
  for i in  \
80077
 
    /var/run/mysqld/mysqld.sock \
80078
 
    /var/tmp/mysql.sock \
80079
 
    /var/run/mysql/mysql.sock \
80080
 
    /var/lib/mysql/mysql.sock \
80081
 
    /var/mysql/mysql.sock \
80082
 
    /usr/local/mysql/var/mysql.sock \
80083
 
    /Private/tmp/mysql.sock \
80084
 
    /private/tmp/mysql.sock \
80085
 
    /tmp/mysql.sock \
80086
 
  ; do
80087
 
    if test -r $i; then
80088
 
      MYSQL_SOCK=$i
80089
 
      break 2
80090
 
    fi
80091
 
  done
80092
 
 
80093
 
  if test -n "$MYSQL_SOCK"; then
80094
 
    
80095
 
cat >>confdefs.h <<_ACEOF
80096
 
@%:@define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
80097
 
_ACEOF
80098
 
 
80099
 
    { $as_echo "$as_me:$LINENO: result: $MYSQL_SOCK" >&5
80100
 
$as_echo "$MYSQL_SOCK" >&6; }
80101
 
  else
80102
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
80103
 
$as_echo "no" >&6; }
80104
 
  fi
80105
 
 
80106
 
  else
80107
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
80108
 
$as_echo "no" >&6; }
80109
 
  fi
80110
 
 
80111
 
  
80112
 
cat >>confdefs.h <<\_ACEOF
80113
 
@%:@define HAVE_MYSQL 1
80114
 
_ACEOF
80115
 
 
80116
 
  
80117
 
  ext_builddir=ext/mysql
80118
 
  ext_srcdir=$abs_srcdir/ext/mysql
80119
 
 
80120
 
  ac_extra=
80121
 
 
80122
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
80123
 
    PHP_MYSQL_SHARED=no
80124
 
    
80125
 
  
80126
 
  case ext/mysql in
80127
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80128
 
  /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80129
 
  *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80130
 
  esac
80131
 
  
80132
 
  
80133
 
 
80134
 
  b_c_pre=$php_c_pre
80135
 
  b_cxx_pre=$php_cxx_pre
80136
 
  b_c_meta=$php_c_meta
80137
 
  b_cxx_meta=$php_cxx_meta
80138
 
  b_c_post=$php_c_post
80139
 
  b_cxx_post=$php_cxx_post
80140
 
  b_lo=$php_lo
80141
 
 
80142
 
 
80143
 
  old_IFS=$IFS
80144
 
  for ac_src in php_mysql.c; do
80145
 
  
80146
 
      IFS=.
80147
 
      set $ac_src
80148
 
      ac_obj=$1
80149
 
      IFS=$old_IFS
80150
 
      
80151
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
80152
 
 
80153
 
      case $ac_src in
80154
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80155
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80156
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80157
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80158
 
      esac
80159
 
 
80160
 
    cat >>Makefile.objects<<EOF
80161
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80162
 
        $ac_comp
80163
 
EOF
80164
 
  done
80165
 
 
80166
 
 
80167
 
    EXT_STATIC="$EXT_STATIC mysql"
80168
 
    if test "$ext_shared" != "nocli"; then
80169
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
80170
 
    fi
80171
 
  else
80172
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
80173
 
      PHP_MYSQL_SHARED=yes
80174
 
      
80175
 
  case ext/mysql in
80176
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80177
 
  /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80178
 
  *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80179
 
  esac
80180
 
  
80181
 
  
80182
 
 
80183
 
  b_c_pre=$shared_c_pre
80184
 
  b_cxx_pre=$shared_cxx_pre
80185
 
  b_c_meta=$shared_c_meta
80186
 
  b_cxx_meta=$shared_cxx_meta
80187
 
  b_c_post=$shared_c_post
80188
 
  b_cxx_post=$shared_cxx_post
80189
 
  b_lo=$shared_lo
80190
 
 
80191
 
 
80192
 
  old_IFS=$IFS
80193
 
  for ac_src in php_mysql.c; do
80194
 
  
80195
 
      IFS=.
80196
 
      set $ac_src
80197
 
      ac_obj=$1
80198
 
      IFS=$old_IFS
80199
 
      
80200
 
      shared_objects_mysql="$shared_objects_mysql $ac_bdir$ac_obj.lo"
80201
 
 
80202
 
      case $ac_src in
80203
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80204
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80205
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80206
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80207
 
      esac
80208
 
 
80209
 
    cat >>Makefile.objects<<EOF
80210
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80211
 
        $ac_comp
80212
 
EOF
80213
 
  done
80214
 
 
80215
 
      case $host_alias in
80216
 
        *netware*)
80217
 
          
80218
 
  install_modules="install-modules"
80219
 
 
80220
 
  case $host_alias in
80221
 
    *aix*)
80222
 
      suffix=so
80223
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(PHPMYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmysql.so '$ext_builddir'/phpmysql.so'
80224
 
      ;;
80225
 
    *netware*)
80226
 
      suffix=nlm
80227
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) -L$(top_builddir)/netware -lphp5lib $(MYSQL_SHARED_LIBADD)'
80228
 
      ;;
80229
 
    *)
80230
 
      suffix=la
80231
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(PHPMYSQL_SHARED_LIBADD)'
80232
 
      ;;
80233
 
  esac
80234
 
 
80235
 
  if test "x" = "xyes"; then
80236
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysql.$suffix"
80237
 
  else
80238
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysql.$suffix"
80239
 
  fi
80240
 
  
80241
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
80242
 
 
80243
 
  cat >>Makefile.objects<<EOF
80244
 
\$(phplibdir)/phpmysql.$suffix: $ext_builddir/phpmysql.$suffix
80245
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysql.$suffix \$(phplibdir)
80246
 
 
80247
 
$ext_builddir/phpmysql.$suffix: \$(shared_objects_mysql) \$(PHPMYSQL_SHARED_DEPENDENCIES)
80248
 
        $link_cmd
80249
 
 
80250
 
EOF
80251
 
 
80252
 
          ;;
80253
 
        *)
80254
 
          
80255
 
  install_modules="install-modules"
80256
 
 
80257
 
  case $host_alias in
80258
 
    *aix*)
80259
 
      suffix=so
80260
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(MYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mysql.so '$ext_builddir'/mysql.so'
80261
 
      ;;
80262
 
    *netware*)
80263
 
      suffix=nlm
80264
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) -L$(top_builddir)/netware -lphp5lib $(QL_SHARED_LIBADD)'
80265
 
      ;;
80266
 
    *)
80267
 
      suffix=la
80268
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysql) $(MYSQL_SHARED_LIBADD)'
80269
 
      ;;
80270
 
  esac
80271
 
 
80272
 
  if test "x" = "xyes"; then
80273
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysql.$suffix"
80274
 
  else
80275
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysql.$suffix"
80276
 
  fi
80277
 
  
80278
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
80279
 
 
80280
 
  cat >>Makefile.objects<<EOF
80281
 
\$(phplibdir)/mysql.$suffix: $ext_builddir/mysql.$suffix
80282
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/mysql.$suffix \$(phplibdir)
80283
 
 
80284
 
$ext_builddir/mysql.$suffix: \$(shared_objects_mysql) \$(MYSQL_SHARED_DEPENDENCIES)
80285
 
        $link_cmd
80286
 
 
80287
 
EOF
80288
 
 
80289
 
          ;;
80290
 
      esac
80291
 
      
80292
 
cat >>confdefs.h <<_ACEOF
80293
 
@%:@define COMPILE_DL_MYSQL 1
80294
 
_ACEOF
80295
 
 
80296
 
    fi
80297
 
  fi
80298
 
 
80299
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
80300
 
    PHP_MYSQL_SHARED=no
80301
 
    case "$PHP_SAPI" in
80302
 
      cgi|embed)
80303
 
        
80304
 
  
80305
 
  case ext/mysql in
80306
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80307
 
  /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80308
 
  *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80309
 
  esac
80310
 
  
80311
 
  
80312
 
 
80313
 
  b_c_pre=$php_c_pre
80314
 
  b_cxx_pre=$php_cxx_pre
80315
 
  b_c_meta=$php_c_meta
80316
 
  b_cxx_meta=$php_cxx_meta
80317
 
  b_c_post=$php_c_post
80318
 
  b_cxx_post=$php_cxx_post
80319
 
  b_lo=$php_lo
80320
 
 
80321
 
 
80322
 
  old_IFS=$IFS
80323
 
  for ac_src in php_mysql.c; do
80324
 
  
80325
 
      IFS=.
80326
 
      set $ac_src
80327
 
      ac_obj=$1
80328
 
      IFS=$old_IFS
80329
 
      
80330
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
80331
 
 
80332
 
      case $ac_src in
80333
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80334
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80335
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80336
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80337
 
      esac
80338
 
 
80339
 
    cat >>Makefile.objects<<EOF
80340
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80341
 
        $ac_comp
80342
 
EOF
80343
 
  done
80344
 
 
80345
 
 
80346
 
        EXT_STATIC="$EXT_STATIC mysql"
80347
 
        ;;
80348
 
      *)
80349
 
        
80350
 
  
80351
 
  case ext/mysql in
80352
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80353
 
  /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80354
 
  *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80355
 
  esac
80356
 
  
80357
 
  
80358
 
 
80359
 
  b_c_pre=$php_c_pre
80360
 
  b_cxx_pre=$php_cxx_pre
80361
 
  b_c_meta=$php_c_meta
80362
 
  b_cxx_meta=$php_cxx_meta
80363
 
  b_c_post=$php_c_post
80364
 
  b_cxx_post=$php_cxx_post
80365
 
  b_lo=$php_lo
80366
 
 
80367
 
 
80368
 
  old_IFS=$IFS
80369
 
  for ac_src in php_mysql.c; do
80370
 
  
80371
 
      IFS=.
80372
 
      set $ac_src
80373
 
      ac_obj=$1
80374
 
      IFS=$old_IFS
80375
 
      
80376
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
80377
 
 
80378
 
      case $ac_src in
80379
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80380
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80381
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80382
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80383
 
      esac
80384
 
 
80385
 
    cat >>Makefile.objects<<EOF
80386
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80387
 
        $ac_comp
80388
 
EOF
80389
 
  done
80390
 
 
80391
 
 
80392
 
        ;;
80393
 
    esac
80394
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
80395
 
  fi
80396
 
  
80397
 
  
80398
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
80399
 
  
80400
 
 
80401
 
 
80402
 
  if test "$ext_builddir" = "."; then
80403
 
    PHP_PECL_EXTENSION=mysql
80404
 
    
80405
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
80406
 
 
80407
 
  fi
80408
 
 
80409
 
  
80410
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_SHARED_LIBADD"
80411
 
 
80412
 
 
80413
 
  if test "$PHP_MYSQL" = "mysqlnd"; then
80414
 
    
80415
 
  am_i_shared=$PHP_MYSQL_SHARED
80416
 
  is_it_shared=$PHP_MYSQLND_SHARED
80417
 
  is_it_enabled=$PHP_MYSQLND
80418
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
80419
 
    { { $as_echo "$as_me:$LINENO: error: 
80420
 
You've configured extension mysql to build statically, but it
80421
 
depends on extension mysqlnd, which you've configured to build shared.
80422
 
You either need to build mysql shared or build mysqlnd statically for the
80423
 
build to be successful.
80424
 
" >&5
80425
 
$as_echo "$as_me: error: 
80426
 
You've configured extension mysql to build statically, but it
80427
 
depends on extension mysqlnd, which you've configured to build shared.
80428
 
You either need to build mysql shared or build mysqlnd statically for the
80429
 
build to be successful.
80430
 
" >&2;}
80431
 
   { (exit 1); exit 1; }; }
80432
 
  fi
80433
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
80434
 
    { { $as_echo "$as_me:$LINENO: error: 
80435
 
You've configured extension mysql, which depends on extension mysqlnd,
80436
 
but you've either not enabled mysqlnd, or have disabled it.
80437
 
" >&5
80438
 
$as_echo "$as_me: error: 
80439
 
You've configured extension mysql, which depends on extension mysqlnd,
80440
 
but you've either not enabled mysqlnd, or have disabled it.
80441
 
" >&2;}
80442
 
   { (exit 1); exit 1; }; }
80443
 
  fi
80444
 
  
80445
 
    
80446
 
cat >>confdefs.h <<\_ACEOF
80447
 
@%:@define MYSQL_USE_MYSQLND 1
80448
 
_ACEOF
80449
 
 
80450
 
  fi
80451
 
fi
80452
 
 
80453
 
 
80454
 
 
80455
 
php_with_mysqli=no
80456
 
 
80457
 
{ $as_echo "$as_me:$LINENO: checking for MySQLi support" >&5
80458
 
$as_echo_n "checking for MySQLi support... " >&6; }
80459
 
 
80460
 
@%:@ Check whether --with-mysqli was given.
80461
 
if test "${with_mysqli+set}" = set; then
80462
 
  withval=$with_mysqli; PHP_MYSQLI=$withval
80463
 
else
80464
 
  
80465
 
  PHP_MYSQLI=no
80466
 
  test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL
80467
 
 
80468
 
fi
80469
 
 
80470
 
 
80471
 
 
80472
 
ext_output="yes, shared"
80473
 
ext_shared=yes
80474
 
case $PHP_MYSQLI in
80475
 
shared,*)
80476
 
  PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'`
80477
 
  ;;
80478
 
shared)
80479
 
  PHP_MYSQLI=yes
80480
 
  ;;
80481
 
no)
80482
 
  ext_output=no
80483
 
  ext_shared=no
80484
 
  ;;
80485
 
*)
80486
 
  ext_output=yes
80487
 
  ext_shared=no
80488
 
  ;;
80489
 
esac
80490
 
 
80491
 
 
80492
 
 
80493
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
80494
 
$as_echo "$ext_output" >&6; }
80495
 
 
80496
 
 
80497
 
 
80498
 
 
80499
 
 
80500
 
php_enable_embedded_mysqli=no
80501
 
 
80502
 
{ $as_echo "$as_me:$LINENO: checking whether to enable embedded MySQLi support" >&5
80503
 
$as_echo_n "checking whether to enable embedded MySQLi support... " >&6; }
80504
 
@%:@ Check whether --enable-embedded_mysqli was given.
80505
 
if test "${enable_embedded_mysqli+set}" = set; then
80506
 
  enableval=$enable_embedded_mysqli; PHP_EMBEDDED_MYSQLI=$enableval
80507
 
else
80508
 
  
80509
 
  PHP_EMBEDDED_MYSQLI=no
80510
 
  
80511
 
 
80512
 
fi
80513
 
 
80514
 
 
80515
 
ext_output=$PHP_EMBEDDED_MYSQLI
80516
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
80517
 
$as_echo "$ext_output" >&6; }
80518
 
 
80519
 
 
80520
 
 
80521
 
 
80522
 
if test "$PHP_MYSQLI" = "mysqlnd"; then
80523
 
    PHP_MYSQLND_ENABLED=yes
80524
 
 
80525
 
elif test "$PHP_MYSQLI" != "no"; then
80526
 
 
80527
 
  if test "$PHP_MYSQLI" = "yes"; then
80528
 
    MYSQL_CONFIG=`$php_shtool path mysql_config`
80529
 
  else
80530
 
    MYSQL_CONFIG=$PHP_MYSQLI
80531
 
  fi
80532
 
 
80533
 
  MYSQL_LIB_NAME='mysqlclient'
80534
 
  if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then
80535
 
    
80536
 
cat >>confdefs.h <<\_ACEOF
80537
 
@%:@define HAVE_EMBEDDED_MYSQLI 1
80538
 
_ACEOF
80539
 
 
80540
 
    MYSQL_LIB_CFG='--libmysqld-libs'
80541
 
        mysqli_extra_sources="mysqli_embedded.c"
80542
 
  elif test "$enable_maintainer_zts" = "yes"; then
80543
 
    MYSQL_LIB_CFG='--libs_r'
80544
 
    MYSQL_LIB_NAME='mysqlclient_r'
80545
 
  else
80546
 
    MYSQL_LIB_CFG='--libs'
80547
 
  fi
80548
 
  
80549
 
  if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then
80550
 
    MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
80551
 
    MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"`
80552
 
  else
80553
 
    { $as_echo "$as_me:$LINENO: result: mysql_config not found" >&5
80554
 
$as_echo "mysql_config not found" >&6; }
80555
 
    { { $as_echo "$as_me:$LINENO: error: Please reinstall the mysql distribution" >&5
80556
 
$as_echo "$as_me: error: Please reinstall the mysql distribution" >&2;}
80557
 
   { (exit 1); exit 1; }; }
80558
 
  fi
80559
 
 
80560
 
        
80561
 
  save_old_LDFLAGS=$LDFLAGS
80562
 
  ac_stuff="
80563
 
    $MYSQLI_LIBLINE
80564
 
  "
80565
 
  
80566
 
  save_ext_shared=$ext_shared
80567
 
  ext_shared=yes
80568
 
  
80569
 
  for ac_i in $ac_stuff; do
80570
 
    case $ac_i in
80571
 
    -pthread)
80572
 
      if test "$ext_shared" = "yes"; then
80573
 
        LDFLAGS="$LDFLAGS -pthread"
80574
 
      else
80575
 
        
80576
 
  
80577
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
80578
 
  
80579
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
80580
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
80581
 
    eval "EXTRA_LDFLAGS$unique=set"
80582
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
80583
 
  fi
80584
 
 
80585
 
      fi
80586
 
    ;;
80587
 
    -l*)
80588
 
      ac_ii=`echo $ac_i|cut -c 3-`
80589
 
      
80590
 
  
80591
 
  case $ac_ii in
80592
 
  c|c_r|pthread*) ;;
80593
 
  *) 
80594
 
    if test "$ext_shared" = "yes"; then
80595
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
80596
 
    else
80597
 
      
80598
 
  
80599
 
  case $ac_ii in
80600
 
  c|c_r|pthread*) ;;
80601
 
  *) 
80602
 
      LIBS="$LIBS -l$ac_ii" 
80603
 
   ;;
80604
 
  esac
80605
 
 
80606
 
 
80607
 
    fi
80608
 
   ;;
80609
 
  esac
80610
 
 
80611
 
 
80612
 
    ;;
80613
 
    -L*)
80614
 
      ac_ii=`echo $ac_i|cut -c 3-`
80615
 
      
80616
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
80617
 
    
80618
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80619
 
    ai_p=$ac_ii
80620
 
  else
80621
 
    
80622
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
80623
 
    
80624
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80625
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
80626
 
  fi
80627
 
 
80628
 
    
80629
 
      if test "$ext_shared" = "yes"; then
80630
 
        LDFLAGS="-L$ai_p $LDFLAGS"
80631
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
80632
 
      else
80633
 
        
80634
 
  
80635
 
  
80636
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80637
 
  
80638
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80639
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
80640
 
    eval "LIBPATH$unique=set"
80641
 
    
80642
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80643
 
    LDFLAGS="$LDFLAGS -L$ai_p"
80644
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
80645
 
  
80646
 
  fi
80647
 
 
80648
 
 
80649
 
      fi
80650
 
    
80651
 
  fi
80652
 
 
80653
 
    ;;
80654
 
    esac
80655
 
  done
80656
 
 
80657
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh`
80658
 
{ $as_echo "$as_me:$LINENO: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5
80659
 
$as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; }
80660
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
80661
 
  $as_echo_n "(cached) " >&6
80662
 
else
80663
 
  ac_check_lib_save_LIBS=$LIBS
80664
 
LIBS="-l$MYSQL_LIB_NAME  $LIBS"
80665
 
cat >conftest.$ac_ext <<_ACEOF
80666
 
/* confdefs.h.  */
80667
 
_ACEOF
80668
 
cat confdefs.h >>conftest.$ac_ext
80669
 
cat >>conftest.$ac_ext <<_ACEOF
80670
 
/* end confdefs.h.  */
80671
 
 
80672
 
/* Override any GCC internal prototype to avoid an error.
80673
 
   Use char because int might match the return type of a GCC
80674
 
   builtin and then its argument prototype would still apply.  */
80675
 
#ifdef __cplusplus
80676
 
extern "C"
80677
 
#endif
80678
 
char mysql_set_server_option ();
80679
 
int
80680
 
main ()
80681
 
{
80682
 
return mysql_set_server_option ();
80683
 
  ;
80684
 
  return 0;
80685
 
}
80686
 
_ACEOF
80687
 
rm -f conftest.$ac_objext conftest$ac_exeext
80688
 
if { (ac_try="$ac_link"
80689
 
case "(($ac_try" in
80690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80691
 
  *) ac_try_echo=$ac_try;;
80692
 
esac
80693
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80694
 
$as_echo "$ac_try_echo") >&5
80695
 
  (eval "$ac_link") 2>conftest.er1
80696
 
  ac_status=$?
80697
 
  grep -v '^ *+' conftest.er1 >conftest.err
80698
 
  rm -f conftest.er1
80699
 
  cat conftest.err >&5
80700
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80701
 
  (exit $ac_status); } && {
80702
 
         test -z "$ac_c_werror_flag" ||
80703
 
         test ! -s conftest.err
80704
 
       } && test -s conftest$ac_exeext && {
80705
 
         test "$cross_compiling" = yes ||
80706
 
         $as_test_x conftest$ac_exeext
80707
 
       }; then
80708
 
  eval "$as_ac_Lib=yes"
80709
 
else
80710
 
  $as_echo "$as_me: failed program was:" >&5
80711
 
sed 's/^/| /' conftest.$ac_ext >&5
80712
 
 
80713
 
        eval "$as_ac_Lib=no"
80714
 
fi
80715
 
 
80716
 
rm -rf conftest.dSYM
80717
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80718
 
      conftest$ac_exeext conftest.$ac_ext
80719
 
LIBS=$ac_check_lib_save_LIBS
80720
 
fi
80721
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
80722
 
                 $as_echo "$as_val"'`
80723
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
80724
 
$as_echo "$ac_res" >&6; }
80725
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
80726
 
                 $as_echo "$as_val"'`
80727
 
   if test "x$as_val" = x""yes; then
80728
 
  
80729
 
    LDFLAGS=$save_old_LDFLAGS
80730
 
    ext_shared=$save_ext_shared
80731
 
    
80732
 
    
80733
 
  for ac_i in $MYSQLI_INCLINE; do
80734
 
    case $ac_i in
80735
 
    -I*)
80736
 
      ac_ii=`echo $ac_i|cut -c 3-`
80737
 
      
80738
 
  if test "$ac_ii" != "/usr/include"; then
80739
 
    
80740
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80741
 
    ai_p=$ac_ii
80742
 
  else
80743
 
    
80744
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
80745
 
    
80746
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80747
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
80748
 
  fi
80749
 
 
80750
 
    
80751
 
  
80752
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80753
 
  
80754
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
80755
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
80756
 
    eval "INCLUDEPATH$unique=set"
80757
 
    
80758
 
      if test ""; then
80759
 
        INCLUDES="-I$ai_p $INCLUDES"
80760
 
      else
80761
 
        INCLUDES="$INCLUDES -I$ai_p"
80762
 
      fi
80763
 
    
80764
 
  fi
80765
 
 
80766
 
  fi
80767
 
 
80768
 
    ;;
80769
 
    esac
80770
 
  done
80771
 
 
80772
 
    
80773
 
  for ac_i in $MYSQLI_LIBLINE; do
80774
 
    case $ac_i in
80775
 
    -pthread)
80776
 
      if test "$ext_shared" = "yes"; then
80777
 
        MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread"
80778
 
      else
80779
 
        
80780
 
  
80781
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
80782
 
  
80783
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
80784
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
80785
 
    eval "EXTRA_LDFLAGS$unique=set"
80786
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
80787
 
  fi
80788
 
 
80789
 
      fi
80790
 
    ;;
80791
 
    -l*)
80792
 
      ac_ii=`echo $ac_i|cut -c 3-`
80793
 
      
80794
 
  
80795
 
  case $ac_ii in
80796
 
  c|c_r|pthread*) ;;
80797
 
  *) 
80798
 
    if test "$ext_shared" = "yes"; then
80799
 
        MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii" 
80800
 
    else
80801
 
      
80802
 
  
80803
 
  case $ac_ii in
80804
 
  c|c_r|pthread*) ;;
80805
 
  *) 
80806
 
      LIBS="$LIBS -l$ac_ii" 
80807
 
   ;;
80808
 
  esac
80809
 
 
80810
 
 
80811
 
    fi
80812
 
   ;;
80813
 
  esac
80814
 
 
80815
 
 
80816
 
    ;;
80817
 
    -L*)
80818
 
      ac_ii=`echo $ac_i|cut -c 3-`
80819
 
      
80820
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
80821
 
    
80822
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80823
 
    ai_p=$ac_ii
80824
 
  else
80825
 
    
80826
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
80827
 
    
80828
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80829
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
80830
 
  fi
80831
 
 
80832
 
    
80833
 
      if test "$ext_shared" = "yes"; then
80834
 
        MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD"
80835
 
        test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD"
80836
 
      else
80837
 
        
80838
 
  
80839
 
  
80840
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80841
 
  
80842
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80843
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
80844
 
    eval "LIBPATH$unique=set"
80845
 
    
80846
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80847
 
    LDFLAGS="$LDFLAGS -L$ai_p"
80848
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
80849
 
  
80850
 
  fi
80851
 
 
80852
 
 
80853
 
      fi
80854
 
    
80855
 
  fi
80856
 
 
80857
 
    ;;
80858
 
    esac
80859
 
  done
80860
 
 
80861
 
    
80862
 
cat >>confdefs.h <<\_ACEOF
80863
 
@%:@define HAVE_MYSQLILIB 1
80864
 
_ACEOF
80865
 
 
80866
 
    
80867
 
  save_old_LDFLAGS=$LDFLAGS
80868
 
  ac_stuff="$MYSQLI_LIBLINE"
80869
 
  
80870
 
  save_ext_shared=$ext_shared
80871
 
  ext_shared=yes
80872
 
  
80873
 
  for ac_i in $ac_stuff; do
80874
 
    case $ac_i in
80875
 
    -pthread)
80876
 
      if test "$ext_shared" = "yes"; then
80877
 
        LDFLAGS="$LDFLAGS -pthread"
80878
 
      else
80879
 
        
80880
 
  
80881
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
80882
 
  
80883
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
80884
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
80885
 
    eval "EXTRA_LDFLAGS$unique=set"
80886
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
80887
 
  fi
80888
 
 
80889
 
      fi
80890
 
    ;;
80891
 
    -l*)
80892
 
      ac_ii=`echo $ac_i|cut -c 3-`
80893
 
      
80894
 
  
80895
 
  case $ac_ii in
80896
 
  c|c_r|pthread*) ;;
80897
 
  *) 
80898
 
    if test "$ext_shared" = "yes"; then
80899
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
80900
 
    else
80901
 
      
80902
 
  
80903
 
  case $ac_ii in
80904
 
  c|c_r|pthread*) ;;
80905
 
  *) 
80906
 
      LIBS="$LIBS -l$ac_ii" 
80907
 
   ;;
80908
 
  esac
80909
 
 
80910
 
 
80911
 
    fi
80912
 
   ;;
80913
 
  esac
80914
 
 
80915
 
 
80916
 
    ;;
80917
 
    -L*)
80918
 
      ac_ii=`echo $ac_i|cut -c 3-`
80919
 
      
80920
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
80921
 
    
80922
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80923
 
    ai_p=$ac_ii
80924
 
  else
80925
 
    
80926
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
80927
 
    
80928
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80929
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
80930
 
  fi
80931
 
 
80932
 
    
80933
 
      if test "$ext_shared" = "yes"; then
80934
 
        LDFLAGS="-L$ai_p $LDFLAGS"
80935
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
80936
 
      else
80937
 
        
80938
 
  
80939
 
  
80940
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80941
 
  
80942
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80943
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
80944
 
    eval "LIBPATH$unique=set"
80945
 
    
80946
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80947
 
    LDFLAGS="$LDFLAGS -L$ai_p"
80948
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
80949
 
  
80950
 
  fi
80951
 
 
80952
 
 
80953
 
      fi
80954
 
    
80955
 
  fi
80956
 
 
80957
 
    ;;
80958
 
    esac
80959
 
  done
80960
 
 
80961
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh`
80962
 
{ $as_echo "$as_me:$LINENO: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5
80963
 
$as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; }
80964
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
80965
 
  $as_echo_n "(cached) " >&6
80966
 
else
80967
 
  ac_check_lib_save_LIBS=$LIBS
80968
 
LIBS="-l$MYSQL_LIB_NAME  $LIBS"
80969
 
cat >conftest.$ac_ext <<_ACEOF
80970
 
/* confdefs.h.  */
80971
 
_ACEOF
80972
 
cat confdefs.h >>conftest.$ac_ext
80973
 
cat >>conftest.$ac_ext <<_ACEOF
80974
 
/* end confdefs.h.  */
80975
 
 
80976
 
/* Override any GCC internal prototype to avoid an error.
80977
 
   Use char because int might match the return type of a GCC
80978
 
   builtin and then its argument prototype would still apply.  */
80979
 
#ifdef __cplusplus
80980
 
extern "C"
80981
 
#endif
80982
 
char mysql_set_character_set ();
80983
 
int
80984
 
main ()
80985
 
{
80986
 
return mysql_set_character_set ();
80987
 
  ;
80988
 
  return 0;
80989
 
}
80990
 
_ACEOF
80991
 
rm -f conftest.$ac_objext conftest$ac_exeext
80992
 
if { (ac_try="$ac_link"
80993
 
case "(($ac_try" in
80994
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80995
 
  *) ac_try_echo=$ac_try;;
80996
 
esac
80997
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80998
 
$as_echo "$ac_try_echo") >&5
80999
 
  (eval "$ac_link") 2>conftest.er1
81000
 
  ac_status=$?
81001
 
  grep -v '^ *+' conftest.er1 >conftest.err
81002
 
  rm -f conftest.er1
81003
 
  cat conftest.err >&5
81004
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81005
 
  (exit $ac_status); } && {
81006
 
         test -z "$ac_c_werror_flag" ||
81007
 
         test ! -s conftest.err
81008
 
       } && test -s conftest$ac_exeext && {
81009
 
         test "$cross_compiling" = yes ||
81010
 
         $as_test_x conftest$ac_exeext
81011
 
       }; then
81012
 
  eval "$as_ac_Lib=yes"
81013
 
else
81014
 
  $as_echo "$as_me: failed program was:" >&5
81015
 
sed 's/^/| /' conftest.$ac_ext >&5
81016
 
 
81017
 
        eval "$as_ac_Lib=no"
81018
 
fi
81019
 
 
81020
 
rm -rf conftest.dSYM
81021
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81022
 
      conftest$ac_exeext conftest.$ac_ext
81023
 
LIBS=$ac_check_lib_save_LIBS
81024
 
fi
81025
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
81026
 
                 $as_echo "$as_val"'`
81027
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
81028
 
$as_echo "$ac_res" >&6; }
81029
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
81030
 
                 $as_echo "$as_val"'`
81031
 
   if test "x$as_val" = x""yes; then
81032
 
  
81033
 
    LDFLAGS=$save_old_LDFLAGS
81034
 
    ext_shared=$save_ext_shared
81035
 
     
81036
 
  
81037
 
else
81038
 
  
81039
 
    LDFLAGS=$save_old_LDFLAGS
81040
 
    ext_shared=$save_ext_shared
81041
 
    unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set
81042
 
    
81043
 
      { { $as_echo "$as_me:$LINENO: error: MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." >&5
81044
 
$as_echo "$as_me: error: MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." >&2;}
81045
 
   { (exit 1); exit 1; }; }
81046
 
    
81047
 
  
81048
 
fi
81049
 
 
81050
 
  
81051
 
  
81052
 
else
81053
 
  
81054
 
    LDFLAGS=$save_old_LDFLAGS
81055
 
    ext_shared=$save_ext_shared
81056
 
    unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option
81057
 
    
81058
 
    { { $as_echo "$as_me:$LINENO: error: wrong mysql library version or lib not found. Check config.log for more information." >&5
81059
 
$as_echo "$as_me: error: wrong mysql library version or lib not found. Check config.log for more information." >&2;}
81060
 
   { (exit 1); exit 1; }; }
81061
 
  
81062
 
  
81063
 
fi
81064
 
 
81065
 
        
81066
 
  save_old_LDFLAGS=$LDFLAGS
81067
 
  ac_stuff="
81068
 
    $MYSQLI_LIBLINE
81069
 
  "
81070
 
  
81071
 
  save_ext_shared=$ext_shared
81072
 
  ext_shared=yes
81073
 
  
81074
 
  for ac_i in $ac_stuff; do
81075
 
    case $ac_i in
81076
 
    -pthread)
81077
 
      if test "$ext_shared" = "yes"; then
81078
 
        LDFLAGS="$LDFLAGS -pthread"
81079
 
      else
81080
 
        
81081
 
  
81082
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
81083
 
  
81084
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
81085
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
81086
 
    eval "EXTRA_LDFLAGS$unique=set"
81087
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
81088
 
  fi
81089
 
 
81090
 
      fi
81091
 
    ;;
81092
 
    -l*)
81093
 
      ac_ii=`echo $ac_i|cut -c 3-`
81094
 
      
81095
 
  
81096
 
  case $ac_ii in
81097
 
  c|c_r|pthread*) ;;
81098
 
  *) 
81099
 
    if test "$ext_shared" = "yes"; then
81100
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
81101
 
    else
81102
 
      
81103
 
  
81104
 
  case $ac_ii in
81105
 
  c|c_r|pthread*) ;;
81106
 
  *) 
81107
 
      LIBS="$LIBS -l$ac_ii" 
81108
 
   ;;
81109
 
  esac
81110
 
 
81111
 
 
81112
 
    fi
81113
 
   ;;
81114
 
  esac
81115
 
 
81116
 
 
81117
 
    ;;
81118
 
    -L*)
81119
 
      ac_ii=`echo $ac_i|cut -c 3-`
81120
 
      
81121
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
81122
 
    
81123
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
81124
 
    ai_p=$ac_ii
81125
 
  else
81126
 
    
81127
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
81128
 
    
81129
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
81130
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
81131
 
  fi
81132
 
 
81133
 
    
81134
 
      if test "$ext_shared" = "yes"; then
81135
 
        LDFLAGS="-L$ai_p $LDFLAGS"
81136
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
81137
 
      else
81138
 
        
81139
 
  
81140
 
  
81141
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81142
 
  
81143
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81144
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
81145
 
    eval "LIBPATH$unique=set"
81146
 
    
81147
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81148
 
    LDFLAGS="$LDFLAGS -L$ai_p"
81149
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
81150
 
  
81151
 
  fi
81152
 
 
81153
 
 
81154
 
      fi
81155
 
    
81156
 
  fi
81157
 
 
81158
 
    ;;
81159
 
    esac
81160
 
  done
81161
 
 
81162
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh`
81163
 
{ $as_echo "$as_me:$LINENO: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5
81164
 
$as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; }
81165
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
81166
 
  $as_echo_n "(cached) " >&6
81167
 
else
81168
 
  ac_check_lib_save_LIBS=$LIBS
81169
 
LIBS="-l$MYSQL_LIB_NAME  $LIBS"
81170
 
cat >conftest.$ac_ext <<_ACEOF
81171
 
/* confdefs.h.  */
81172
 
_ACEOF
81173
 
cat confdefs.h >>conftest.$ac_ext
81174
 
cat >>conftest.$ac_ext <<_ACEOF
81175
 
/* end confdefs.h.  */
81176
 
 
81177
 
/* Override any GCC internal prototype to avoid an error.
81178
 
   Use char because int might match the return type of a GCC
81179
 
   builtin and then its argument prototype would still apply.  */
81180
 
#ifdef __cplusplus
81181
 
extern "C"
81182
 
#endif
81183
 
char mysql_stmt_next_result ();
81184
 
int
81185
 
main ()
81186
 
{
81187
 
return mysql_stmt_next_result ();
81188
 
  ;
81189
 
  return 0;
81190
 
}
81191
 
_ACEOF
81192
 
rm -f conftest.$ac_objext conftest$ac_exeext
81193
 
if { (ac_try="$ac_link"
81194
 
case "(($ac_try" in
81195
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81196
 
  *) ac_try_echo=$ac_try;;
81197
 
esac
81198
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81199
 
$as_echo "$ac_try_echo") >&5
81200
 
  (eval "$ac_link") 2>conftest.er1
81201
 
  ac_status=$?
81202
 
  grep -v '^ *+' conftest.er1 >conftest.err
81203
 
  rm -f conftest.er1
81204
 
  cat conftest.err >&5
81205
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81206
 
  (exit $ac_status); } && {
81207
 
         test -z "$ac_c_werror_flag" ||
81208
 
         test ! -s conftest.err
81209
 
       } && test -s conftest$ac_exeext && {
81210
 
         test "$cross_compiling" = yes ||
81211
 
         $as_test_x conftest$ac_exeext
81212
 
       }; then
81213
 
  eval "$as_ac_Lib=yes"
81214
 
else
81215
 
  $as_echo "$as_me: failed program was:" >&5
81216
 
sed 's/^/| /' conftest.$ac_ext >&5
81217
 
 
81218
 
        eval "$as_ac_Lib=no"
81219
 
fi
81220
 
 
81221
 
rm -rf conftest.dSYM
81222
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81223
 
      conftest$ac_exeext conftest.$ac_ext
81224
 
LIBS=$ac_check_lib_save_LIBS
81225
 
fi
81226
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
81227
 
                 $as_echo "$as_val"'`
81228
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
81229
 
$as_echo "$ac_res" >&6; }
81230
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
81231
 
                 $as_echo "$as_val"'`
81232
 
   if test "x$as_val" = x""yes; then
81233
 
  
81234
 
    LDFLAGS=$save_old_LDFLAGS
81235
 
    ext_shared=$save_ext_shared
81236
 
    
81237
 
    
81238
 
cat >>confdefs.h <<\_ACEOF
81239
 
@%:@define HAVE_STMT_NEXT_RESULT 1
81240
 
_ACEOF
81241
 
 
81242
 
  
81243
 
  
81244
 
else
81245
 
  
81246
 
    LDFLAGS=$save_old_LDFLAGS
81247
 
    ext_shared=$save_ext_shared
81248
 
    unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result
81249
 
    
81250
 
  
81251
 
  
81252
 
fi
81253
 
 
81254
 
fi
81255
 
 
81256
 
if test "$PHP_MYSQLI" != "no"; then
81257
 
  mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \
81258
 
                  mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \
81259
 
                  mysqli_exception.c $mysqli_extra_sources"
81260
 
  
81261
 
  ext_builddir=ext/mysqli
81262
 
  ext_srcdir=$abs_srcdir/ext/mysqli
81263
 
 
81264
 
  ac_extra=
81265
 
 
81266
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
81267
 
    PHP_MYSQLI_SHARED=no
81268
 
    
81269
 
  
81270
 
  case ext/mysqli in
81271
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81272
 
  /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81273
 
  *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81274
 
  esac
81275
 
  
81276
 
  
81277
 
 
81278
 
  b_c_pre=$php_c_pre
81279
 
  b_cxx_pre=$php_cxx_pre
81280
 
  b_c_meta=$php_c_meta
81281
 
  b_cxx_meta=$php_cxx_meta
81282
 
  b_c_post=$php_c_post
81283
 
  b_cxx_post=$php_cxx_post
81284
 
  b_lo=$php_lo
81285
 
 
81286
 
 
81287
 
  old_IFS=$IFS
81288
 
  for ac_src in $mysqli_sources; do
81289
 
  
81290
 
      IFS=.
81291
 
      set $ac_src
81292
 
      ac_obj=$1
81293
 
      IFS=$old_IFS
81294
 
      
81295
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
81296
 
 
81297
 
      case $ac_src in
81298
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81299
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81300
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81301
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81302
 
      esac
81303
 
 
81304
 
    cat >>Makefile.objects<<EOF
81305
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81306
 
        $ac_comp
81307
 
EOF
81308
 
  done
81309
 
 
81310
 
 
81311
 
    EXT_STATIC="$EXT_STATIC mysqli"
81312
 
    if test "$ext_shared" != "nocli"; then
81313
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
81314
 
    fi
81315
 
  else
81316
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
81317
 
      PHP_MYSQLI_SHARED=yes
81318
 
      
81319
 
  case ext/mysqli in
81320
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81321
 
  /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81322
 
  *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81323
 
  esac
81324
 
  
81325
 
  
81326
 
 
81327
 
  b_c_pre=$shared_c_pre
81328
 
  b_cxx_pre=$shared_cxx_pre
81329
 
  b_c_meta=$shared_c_meta
81330
 
  b_cxx_meta=$shared_cxx_meta
81331
 
  b_c_post=$shared_c_post
81332
 
  b_cxx_post=$shared_cxx_post
81333
 
  b_lo=$shared_lo
81334
 
 
81335
 
 
81336
 
  old_IFS=$IFS
81337
 
  for ac_src in $mysqli_sources; do
81338
 
  
81339
 
      IFS=.
81340
 
      set $ac_src
81341
 
      ac_obj=$1
81342
 
      IFS=$old_IFS
81343
 
      
81344
 
      shared_objects_mysqli="$shared_objects_mysqli $ac_bdir$ac_obj.lo"
81345
 
 
81346
 
      case $ac_src in
81347
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81348
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81349
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81350
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81351
 
      esac
81352
 
 
81353
 
    cat >>Makefile.objects<<EOF
81354
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81355
 
        $ac_comp
81356
 
EOF
81357
 
  done
81358
 
 
81359
 
      case $host_alias in
81360
 
        *netware*)
81361
 
          
81362
 
  install_modules="install-modules"
81363
 
 
81364
 
  case $host_alias in
81365
 
    *aix*)
81366
 
      suffix=so
81367
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmysqli.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(PHPMYSQLI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmysqli.so '$ext_builddir'/phpmysqli.so'
81368
 
      ;;
81369
 
    *netware*)
81370
 
      suffix=nlm
81371
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) -L$(top_builddir)/netware -lphp5lib $(MYSQLI_SHARED_LIBADD)'
81372
 
      ;;
81373
 
    *)
81374
 
      suffix=la
81375
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(PHPMYSQLI_SHARED_LIBADD)'
81376
 
      ;;
81377
 
  esac
81378
 
 
81379
 
  if test "x" = "xyes"; then
81380
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqli.$suffix"
81381
 
  else
81382
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqli.$suffix"
81383
 
  fi
81384
 
  
81385
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
81386
 
 
81387
 
  cat >>Makefile.objects<<EOF
81388
 
\$(phplibdir)/phpmysqli.$suffix: $ext_builddir/phpmysqli.$suffix
81389
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqli.$suffix \$(phplibdir)
81390
 
 
81391
 
$ext_builddir/phpmysqli.$suffix: \$(shared_objects_mysqli) \$(PHPMYSQLI_SHARED_DEPENDENCIES)
81392
 
        $link_cmd
81393
 
 
81394
 
EOF
81395
 
 
81396
 
          ;;
81397
 
        *)
81398
 
          
81399
 
  install_modules="install-modules"
81400
 
 
81401
 
  case $host_alias in
81402
 
    *aix*)
81403
 
      suffix=so
81404
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mysqli.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(MYSQLI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mysqli.so '$ext_builddir'/mysqli.so'
81405
 
      ;;
81406
 
    *netware*)
81407
 
      suffix=nlm
81408
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) -L$(top_builddir)/netware -lphp5lib $(QLI_SHARED_LIBADD)'
81409
 
      ;;
81410
 
    *)
81411
 
      suffix=la
81412
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqli) $(MYSQLI_SHARED_LIBADD)'
81413
 
      ;;
81414
 
  esac
81415
 
 
81416
 
  if test "x" = "xyes"; then
81417
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqli.$suffix"
81418
 
  else
81419
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqli.$suffix"
81420
 
  fi
81421
 
  
81422
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
81423
 
 
81424
 
  cat >>Makefile.objects<<EOF
81425
 
\$(phplibdir)/mysqli.$suffix: $ext_builddir/mysqli.$suffix
81426
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/mysqli.$suffix \$(phplibdir)
81427
 
 
81428
 
$ext_builddir/mysqli.$suffix: \$(shared_objects_mysqli) \$(MYSQLI_SHARED_DEPENDENCIES)
81429
 
        $link_cmd
81430
 
 
81431
 
EOF
81432
 
 
81433
 
          ;;
81434
 
      esac
81435
 
      
81436
 
cat >>confdefs.h <<_ACEOF
81437
 
@%:@define COMPILE_DL_MYSQLI 1
81438
 
_ACEOF
81439
 
 
81440
 
    fi
81441
 
  fi
81442
 
 
81443
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
81444
 
    PHP_MYSQLI_SHARED=no
81445
 
    case "$PHP_SAPI" in
81446
 
      cgi|embed)
81447
 
        
81448
 
  
81449
 
  case ext/mysqli in
81450
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81451
 
  /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81452
 
  *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81453
 
  esac
81454
 
  
81455
 
  
81456
 
 
81457
 
  b_c_pre=$php_c_pre
81458
 
  b_cxx_pre=$php_cxx_pre
81459
 
  b_c_meta=$php_c_meta
81460
 
  b_cxx_meta=$php_cxx_meta
81461
 
  b_c_post=$php_c_post
81462
 
  b_cxx_post=$php_cxx_post
81463
 
  b_lo=$php_lo
81464
 
 
81465
 
 
81466
 
  old_IFS=$IFS
81467
 
  for ac_src in $mysqli_sources; do
81468
 
  
81469
 
      IFS=.
81470
 
      set $ac_src
81471
 
      ac_obj=$1
81472
 
      IFS=$old_IFS
81473
 
      
81474
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
81475
 
 
81476
 
      case $ac_src in
81477
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81478
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81479
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81480
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81481
 
      esac
81482
 
 
81483
 
    cat >>Makefile.objects<<EOF
81484
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81485
 
        $ac_comp
81486
 
EOF
81487
 
  done
81488
 
 
81489
 
 
81490
 
        EXT_STATIC="$EXT_STATIC mysqli"
81491
 
        ;;
81492
 
      *)
81493
 
        
81494
 
  
81495
 
  case ext/mysqli in
81496
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81497
 
  /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81498
 
  *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81499
 
  esac
81500
 
  
81501
 
  
81502
 
 
81503
 
  b_c_pre=$php_c_pre
81504
 
  b_cxx_pre=$php_cxx_pre
81505
 
  b_c_meta=$php_c_meta
81506
 
  b_cxx_meta=$php_cxx_meta
81507
 
  b_c_post=$php_c_post
81508
 
  b_cxx_post=$php_cxx_post
81509
 
  b_lo=$php_lo
81510
 
 
81511
 
 
81512
 
  old_IFS=$IFS
81513
 
  for ac_src in $mysqli_sources; do
81514
 
  
81515
 
      IFS=.
81516
 
      set $ac_src
81517
 
      ac_obj=$1
81518
 
      IFS=$old_IFS
81519
 
      
81520
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
81521
 
 
81522
 
      case $ac_src in
81523
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81524
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81525
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81526
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81527
 
      esac
81528
 
 
81529
 
    cat >>Makefile.objects<<EOF
81530
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81531
 
        $ac_comp
81532
 
EOF
81533
 
  done
81534
 
 
81535
 
 
81536
 
        ;;
81537
 
    esac
81538
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
81539
 
  fi
81540
 
  
81541
 
  
81542
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
81543
 
  
81544
 
 
81545
 
 
81546
 
  if test "$ext_builddir" = "."; then
81547
 
    PHP_PECL_EXTENSION=mysqli
81548
 
    
81549
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
81550
 
 
81551
 
  fi
81552
 
 
81553
 
  
81554
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQLI_SHARED_LIBADD"
81555
 
 
81556
 
  
81557
 
  
81558
 
    for header_file in ext/mysqli/php_mysqli_structs.h; do
81559
 
      
81560
 
  
81561
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
81562
 
  
81563
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
81564
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
81565
 
    eval "INSTALLHEADERS$unique=set"
81566
 
    
81567
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
81568
 
      
81569
 
  fi
81570
 
 
81571
 
    done 
81572
 
  
81573
 
 
81574
 
 
81575
 
  if test "$PHP_MYSQLI" = "mysqlnd"; then
81576
 
    
81577
 
  am_i_shared=$PHP_MYSQLI_SHARED
81578
 
  is_it_shared=$PHP_MYSQLND_SHARED
81579
 
  is_it_enabled=$PHP_MYSQLND
81580
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
81581
 
    { { $as_echo "$as_me:$LINENO: error: 
81582
 
You've configured extension mysqli to build statically, but it
81583
 
depends on extension mysqlnd, which you've configured to build shared.
81584
 
You either need to build mysqli shared or build mysqlnd statically for the
81585
 
build to be successful.
81586
 
" >&5
81587
 
$as_echo "$as_me: error: 
81588
 
You've configured extension mysqli to build statically, but it
81589
 
depends on extension mysqlnd, which you've configured to build shared.
81590
 
You either need to build mysqli shared or build mysqlnd statically for the
81591
 
build to be successful.
81592
 
" >&2;}
81593
 
   { (exit 1); exit 1; }; }
81594
 
  fi
81595
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
81596
 
    { { $as_echo "$as_me:$LINENO: error: 
81597
 
You've configured extension mysqli, which depends on extension mysqlnd,
81598
 
but you've either not enabled mysqlnd, or have disabled it.
81599
 
" >&5
81600
 
$as_echo "$as_me: error: 
81601
 
You've configured extension mysqli, which depends on extension mysqlnd,
81602
 
but you've either not enabled mysqlnd, or have disabled it.
81603
 
" >&2;}
81604
 
   { (exit 1); exit 1; }; }
81605
 
  fi
81606
 
  
81607
 
    
81608
 
cat >>confdefs.h <<\_ACEOF
81609
 
@%:@define MYSQLI_USE_MYSQLND 1
81610
 
_ACEOF
81611
 
 
81612
 
  fi
81613
 
fi
81614
 
 
81615
 
 
81616
 
if test -z "$SED"; then
81617
 
  PHP_OCI8_SED="sed";
81618
 
else
81619
 
  PHP_OCI8_SED="$SED";
81620
 
fi
81621
 
 
81622
 
 
81623
 
 
81624
 
 
81625
 
 
81626
 
 
81627
 
 
81628
 
 
81629
 
 
81630
 
 
81631
 
 
81632
 
php_with_oci8=no
81633
 
 
81634
 
{ $as_echo "$as_me:$LINENO: checking for Oracle Database OCI8 support" >&5
81635
 
$as_echo_n "checking for Oracle Database OCI8 support... " >&6; }
81636
 
 
81637
 
@%:@ Check whether --with-oci8 was given.
81638
 
if test "${with_oci8+set}" = set; then
81639
 
  withval=$with_oci8; PHP_OCI8=$withval
81640
 
else
81641
 
  
81642
 
  PHP_OCI8=no
81643
 
  test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL
81644
 
 
81645
 
fi
81646
 
 
81647
 
 
81648
 
 
81649
 
ext_output="yes, shared"
81650
 
ext_shared=yes
81651
 
case $PHP_OCI8 in
81652
 
shared,*)
81653
 
  PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'`
81654
 
  ;;
81655
 
shared)
81656
 
  PHP_OCI8=yes
81657
 
  ;;
81658
 
no)
81659
 
  ext_output=no
81660
 
  ext_shared=no
81661
 
  ;;
81662
 
*)
81663
 
  ext_output=yes
81664
 
  ext_shared=no
81665
 
  ;;
81666
 
esac
81667
 
 
81668
 
 
81669
 
 
81670
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
81671
 
$as_echo "$ext_output" >&6; }
81672
 
 
81673
 
 
81674
 
 
81675
 
 
81676
 
if test "$PHP_OCI8" != "no"; then 
81677
 
 
81678
 
  if test -z "$PHP_OCI8"; then
81679
 
        { { $as_echo "$as_me:$LINENO: error: Empty parameter value passed to --with-oci8" >&5
81680
 
$as_echo "$as_me: error: Empty parameter value passed to --with-oci8" >&2;}
81681
 
   { (exit 1); exit 1; }; }
81682
 
  fi
81683
 
 
81684
 
  
81685
 
  { $as_echo "$as_me:$LINENO: checking PHP version" >&5
81686
 
$as_echo_n "checking PHP version... " >&6; }
81687
 
 
81688
 
  tmp_version=$PHP_VERSION
81689
 
  if test -z "$tmp_version"; then
81690
 
    if test -z "$PHP_CONFIG"; then
81691
 
      { { $as_echo "$as_me:$LINENO: error: php-config not found" >&5
81692
 
$as_echo "$as_me: error: php-config not found" >&2;}
81693
 
   { (exit 1); exit 1; }; }
81694
 
    fi
81695
 
    php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
81696
 
  else
81697
 
    php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
81698
 
  fi
81699
 
 
81700
 
  if test -z "$php_version"; then
81701
 
    { { $as_echo "$as_me:$LINENO: error: failed to detect PHP version, please report" >&5
81702
 
$as_echo "$as_me: error: failed to detect PHP version, please report" >&2;}
81703
 
   { (exit 1); exit 1; }; }
81704
 
  fi
81705
 
 
81706
 
  ac_IFS=$IFS
81707
 
  IFS="."
81708
 
  set $php_version
81709
 
  IFS=$ac_IFS
81710
 
  oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3`
81711
 
 
81712
 
  if test "$oci8_php_version" -lt "4003009"; then
81713
 
    { { $as_echo "$as_me:$LINENO: error: You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" >&5
81714
 
$as_echo "$as_me: error: You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" >&2;}
81715
 
   { (exit 1); exit 1; }; }
81716
 
  elif test "$oci8_php_version" -ge "6000000"; then
81717
 
    { { $as_echo "$as_me:$LINENO: error: This version of OCI8 is not compatible with PHP 6 or higher" >&5
81718
 
$as_echo "$as_me: error: This version of OCI8 is not compatible with PHP 6 or higher" >&2;}
81719
 
   { (exit 1); exit 1; }; }
81720
 
  else
81721
 
    { $as_echo "$as_me:$LINENO: result: $php_version, ok" >&5
81722
 
$as_echo "$php_version, ok" >&6; }
81723
 
  fi
81724
 
 
81725
 
  
81726
 
  # The cast to long int works around a bug in the HP C Compiler
81727
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
81728
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
81729
 
# This bug is HP SR number 8606223364.
81730
 
{ $as_echo "$as_me:$LINENO: checking size of long int" >&5
81731
 
$as_echo_n "checking size of long int... " >&6; }
81732
 
if test "${ac_cv_sizeof_long_int+set}" = set; then
81733
 
  $as_echo_n "(cached) " >&6
81734
 
else
81735
 
  if test "$cross_compiling" = yes; then
81736
 
  # Depending upon the size, compute the lo and hi bounds.
81737
 
cat >conftest.$ac_ext <<_ACEOF
81738
 
/* confdefs.h.  */
81739
 
_ACEOF
81740
 
cat confdefs.h >>conftest.$ac_ext
81741
 
cat >>conftest.$ac_ext <<_ACEOF
81742
 
/* end confdefs.h.  */
81743
 
$ac_includes_default
81744
 
int
81745
 
main ()
81746
 
{
81747
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) >= 0)@:>@;
81748
 
test_array @<:@0@:>@ = 0
81749
 
 
81750
 
  ;
81751
 
  return 0;
81752
 
}
81753
 
_ACEOF
81754
 
rm -f conftest.$ac_objext
81755
 
if { (ac_try="$ac_compile"
81756
 
case "(($ac_try" in
81757
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81758
 
  *) ac_try_echo=$ac_try;;
81759
 
esac
81760
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81761
 
$as_echo "$ac_try_echo") >&5
81762
 
  (eval "$ac_compile") 2>conftest.er1
81763
 
  ac_status=$?
81764
 
  grep -v '^ *+' conftest.er1 >conftest.err
81765
 
  rm -f conftest.er1
81766
 
  cat conftest.err >&5
81767
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81768
 
  (exit $ac_status); } && {
81769
 
         test -z "$ac_c_werror_flag" ||
81770
 
         test ! -s conftest.err
81771
 
       } && test -s conftest.$ac_objext; then
81772
 
  ac_lo=0 ac_mid=0
81773
 
  while :; do
81774
 
    cat >conftest.$ac_ext <<_ACEOF
81775
 
/* confdefs.h.  */
81776
 
_ACEOF
81777
 
cat confdefs.h >>conftest.$ac_ext
81778
 
cat >>conftest.$ac_ext <<_ACEOF
81779
 
/* end confdefs.h.  */
81780
 
$ac_includes_default
81781
 
int
81782
 
main ()
81783
 
{
81784
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)@:>@;
81785
 
test_array @<:@0@:>@ = 0
81786
 
 
81787
 
  ;
81788
 
  return 0;
81789
 
}
81790
 
_ACEOF
81791
 
rm -f conftest.$ac_objext
81792
 
if { (ac_try="$ac_compile"
81793
 
case "(($ac_try" in
81794
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81795
 
  *) ac_try_echo=$ac_try;;
81796
 
esac
81797
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81798
 
$as_echo "$ac_try_echo") >&5
81799
 
  (eval "$ac_compile") 2>conftest.er1
81800
 
  ac_status=$?
81801
 
  grep -v '^ *+' conftest.er1 >conftest.err
81802
 
  rm -f conftest.er1
81803
 
  cat conftest.err >&5
81804
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81805
 
  (exit $ac_status); } && {
81806
 
         test -z "$ac_c_werror_flag" ||
81807
 
         test ! -s conftest.err
81808
 
       } && test -s conftest.$ac_objext; then
81809
 
  ac_hi=$ac_mid; break
81810
 
else
81811
 
  $as_echo "$as_me: failed program was:" >&5
81812
 
sed 's/^/| /' conftest.$ac_ext >&5
81813
 
 
81814
 
        ac_lo=`expr $ac_mid + 1`
81815
 
                        if test $ac_lo -le $ac_mid; then
81816
 
                          ac_lo= ac_hi=
81817
 
                          break
81818
 
                        fi
81819
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
81820
 
fi
81821
 
 
81822
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81823
 
  done
81824
 
else
81825
 
  $as_echo "$as_me: failed program was:" >&5
81826
 
sed 's/^/| /' conftest.$ac_ext >&5
81827
 
 
81828
 
        cat >conftest.$ac_ext <<_ACEOF
81829
 
/* confdefs.h.  */
81830
 
_ACEOF
81831
 
cat confdefs.h >>conftest.$ac_ext
81832
 
cat >>conftest.$ac_ext <<_ACEOF
81833
 
/* end confdefs.h.  */
81834
 
$ac_includes_default
81835
 
int
81836
 
main ()
81837
 
{
81838
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) < 0)@:>@;
81839
 
test_array @<:@0@:>@ = 0
81840
 
 
81841
 
  ;
81842
 
  return 0;
81843
 
}
81844
 
_ACEOF
81845
 
rm -f conftest.$ac_objext
81846
 
if { (ac_try="$ac_compile"
81847
 
case "(($ac_try" in
81848
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81849
 
  *) ac_try_echo=$ac_try;;
81850
 
esac
81851
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81852
 
$as_echo "$ac_try_echo") >&5
81853
 
  (eval "$ac_compile") 2>conftest.er1
81854
 
  ac_status=$?
81855
 
  grep -v '^ *+' conftest.er1 >conftest.err
81856
 
  rm -f conftest.er1
81857
 
  cat conftest.err >&5
81858
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81859
 
  (exit $ac_status); } && {
81860
 
         test -z "$ac_c_werror_flag" ||
81861
 
         test ! -s conftest.err
81862
 
       } && test -s conftest.$ac_objext; then
81863
 
  ac_hi=-1 ac_mid=-1
81864
 
  while :; do
81865
 
    cat >conftest.$ac_ext <<_ACEOF
81866
 
/* confdefs.h.  */
81867
 
_ACEOF
81868
 
cat confdefs.h >>conftest.$ac_ext
81869
 
cat >>conftest.$ac_ext <<_ACEOF
81870
 
/* end confdefs.h.  */
81871
 
$ac_includes_default
81872
 
int
81873
 
main ()
81874
 
{
81875
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)@:>@;
81876
 
test_array @<:@0@:>@ = 0
81877
 
 
81878
 
  ;
81879
 
  return 0;
81880
 
}
81881
 
_ACEOF
81882
 
rm -f conftest.$ac_objext
81883
 
if { (ac_try="$ac_compile"
81884
 
case "(($ac_try" in
81885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81886
 
  *) ac_try_echo=$ac_try;;
81887
 
esac
81888
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81889
 
$as_echo "$ac_try_echo") >&5
81890
 
  (eval "$ac_compile") 2>conftest.er1
81891
 
  ac_status=$?
81892
 
  grep -v '^ *+' conftest.er1 >conftest.err
81893
 
  rm -f conftest.er1
81894
 
  cat conftest.err >&5
81895
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81896
 
  (exit $ac_status); } && {
81897
 
         test -z "$ac_c_werror_flag" ||
81898
 
         test ! -s conftest.err
81899
 
       } && test -s conftest.$ac_objext; then
81900
 
  ac_lo=$ac_mid; break
81901
 
else
81902
 
  $as_echo "$as_me: failed program was:" >&5
81903
 
sed 's/^/| /' conftest.$ac_ext >&5
81904
 
 
81905
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
81906
 
                        if test $ac_mid -le $ac_hi; then
81907
 
                          ac_lo= ac_hi=
81908
 
                          break
81909
 
                        fi
81910
 
                        ac_mid=`expr 2 '*' $ac_mid`
81911
 
fi
81912
 
 
81913
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81914
 
  done
81915
 
else
81916
 
  $as_echo "$as_me: failed program was:" >&5
81917
 
sed 's/^/| /' conftest.$ac_ext >&5
81918
 
 
81919
 
        ac_lo= ac_hi=
81920
 
fi
81921
 
 
81922
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81923
 
fi
81924
 
 
81925
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81926
 
# Binary search between lo and hi bounds.
81927
 
while test "x$ac_lo" != "x$ac_hi"; do
81928
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
81929
 
  cat >conftest.$ac_ext <<_ACEOF
81930
 
/* confdefs.h.  */
81931
 
_ACEOF
81932
 
cat confdefs.h >>conftest.$ac_ext
81933
 
cat >>conftest.$ac_ext <<_ACEOF
81934
 
/* end confdefs.h.  */
81935
 
$ac_includes_default
81936
 
int
81937
 
main ()
81938
 
{
81939
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)@:>@;
81940
 
test_array @<:@0@:>@ = 0
81941
 
 
81942
 
  ;
81943
 
  return 0;
81944
 
}
81945
 
_ACEOF
81946
 
rm -f conftest.$ac_objext
81947
 
if { (ac_try="$ac_compile"
81948
 
case "(($ac_try" in
81949
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81950
 
  *) ac_try_echo=$ac_try;;
81951
 
esac
81952
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81953
 
$as_echo "$ac_try_echo") >&5
81954
 
  (eval "$ac_compile") 2>conftest.er1
81955
 
  ac_status=$?
81956
 
  grep -v '^ *+' conftest.er1 >conftest.err
81957
 
  rm -f conftest.er1
81958
 
  cat conftest.err >&5
81959
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81960
 
  (exit $ac_status); } && {
81961
 
         test -z "$ac_c_werror_flag" ||
81962
 
         test ! -s conftest.err
81963
 
       } && test -s conftest.$ac_objext; then
81964
 
  ac_hi=$ac_mid
81965
 
else
81966
 
  $as_echo "$as_me: failed program was:" >&5
81967
 
sed 's/^/| /' conftest.$ac_ext >&5
81968
 
 
81969
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
81970
 
fi
81971
 
 
81972
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81973
 
done
81974
 
case $ac_lo in
81975
 
?*) ac_cv_sizeof_long_int=$ac_lo;;
81976
 
'') if test "$ac_cv_type_long_int" = yes; then
81977
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81978
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
81979
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
81980
 
See \`config.log' for more details." >&5
81981
 
$as_echo "$as_me: error: cannot compute sizeof (long int)
81982
 
See \`config.log' for more details." >&2;}
81983
 
   { (exit 77); exit 77; }; }; }
81984
 
   else
81985
 
     ac_cv_sizeof_long_int=0
81986
 
   fi ;;
81987
 
esac
81988
 
else
81989
 
  cat >conftest.$ac_ext <<_ACEOF
81990
 
/* confdefs.h.  */
81991
 
_ACEOF
81992
 
cat confdefs.h >>conftest.$ac_ext
81993
 
cat >>conftest.$ac_ext <<_ACEOF
81994
 
/* end confdefs.h.  */
81995
 
$ac_includes_default
81996
 
static long int longval () { return (long int) (sizeof (long int)); }
81997
 
static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
81998
 
@%:@include <stdio.h>
81999
 
@%:@include <stdlib.h>
82000
 
int
82001
 
main ()
82002
 
{
82003
 
 
82004
 
  FILE *f = fopen ("conftest.val", "w");
82005
 
  if (! f)
82006
 
    return 1;
82007
 
  if (((long int) (sizeof (long int))) < 0)
82008
 
    {
82009
 
      long int i = longval ();
82010
 
      if (i != ((long int) (sizeof (long int))))
82011
 
        return 1;
82012
 
      fprintf (f, "%ld", i);
82013
 
    }
82014
 
  else
82015
 
    {
82016
 
      unsigned long int i = ulongval ();
82017
 
      if (i != ((long int) (sizeof (long int))))
82018
 
        return 1;
82019
 
      fprintf (f, "%lu", i);
82020
 
    }
82021
 
  /* Do not output a trailing newline, as this causes \r\n confusion
82022
 
     on some platforms.  */
82023
 
  return ferror (f) || fclose (f) != 0;
82024
 
 
82025
 
  ;
82026
 
  return 0;
82027
 
}
82028
 
_ACEOF
82029
 
rm -f conftest$ac_exeext
82030
 
if { (ac_try="$ac_link"
82031
 
case "(($ac_try" in
82032
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82033
 
  *) ac_try_echo=$ac_try;;
82034
 
esac
82035
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82036
 
$as_echo "$ac_try_echo") >&5
82037
 
  (eval "$ac_link") 2>&5
82038
 
  ac_status=$?
82039
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82040
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
82041
 
  { (case "(($ac_try" in
82042
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82043
 
  *) ac_try_echo=$ac_try;;
82044
 
esac
82045
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82046
 
$as_echo "$ac_try_echo") >&5
82047
 
  (eval "$ac_try") 2>&5
82048
 
  ac_status=$?
82049
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82050
 
  (exit $ac_status); }; }; then
82051
 
  ac_cv_sizeof_long_int=`cat conftest.val`
82052
 
else
82053
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
82054
 
$as_echo "$as_me: failed program was:" >&5
82055
 
sed 's/^/| /' conftest.$ac_ext >&5
82056
 
 
82057
 
( exit $ac_status )
82058
 
if test "$ac_cv_type_long_int" = yes; then
82059
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
82060
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
82061
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
82062
 
See \`config.log' for more details." >&5
82063
 
$as_echo "$as_me: error: cannot compute sizeof (long int)
82064
 
See \`config.log' for more details." >&2;}
82065
 
   { (exit 77); exit 77; }; }; }
82066
 
   else
82067
 
     ac_cv_sizeof_long_int=0
82068
 
   fi
82069
 
fi
82070
 
rm -rf conftest.dSYM
82071
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
82072
 
fi
82073
 
rm -f conftest.val
82074
 
fi
82075
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
82076
 
$as_echo "$ac_cv_sizeof_long_int" >&6; }
82077
 
 
82078
 
 
82079
 
 
82080
 
cat >>confdefs.h <<_ACEOF
82081
 
@%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
82082
 
_ACEOF
82083
 
 
82084
 
 
82085
 
  { $as_echo "$as_me:$LINENO: checking checking if we're on a 64-bit platform" >&5
82086
 
$as_echo_n "checking checking if we're on a 64-bit platform... " >&6; }
82087
 
  if test "$ac_cv_sizeof_long_int" = "4"; then
82088
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
82089
 
$as_echo "no" >&6; }
82090
 
    PHP_OCI8_OH_LIBDIR=lib32 
82091
 
    PHP_OCI8_IC_LIBDIR_SUFFIX=""
82092
 
  else
82093
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
82094
 
$as_echo "yes" >&6; }
82095
 
    PHP_OCI8_OH_LIBDIR=lib
82096
 
    PHP_OCI8_IC_LIBDIR_SUFFIX=64
82097
 
  fi
82098
 
 
82099
 
  
82100
 
  PHP_OCI8_INSTANT_CLIENT="no"
82101
 
 
82102
 
            if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then
82103
 
    { $as_echo "$as_me:$LINENO: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5
82104
 
$as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;}
82105
 
    PHP_OCI8=instantclient
82106
 
  fi
82107
 
 
82108
 
  if test "`echo $PHP_OCI8`" = "instantclient"; then
82109
 
    PHP_OCI8_INSTANT_CLIENT="yes"
82110
 
  elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then
82111
 
    PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`"
82112
 
    PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`"
82113
 
    if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
82114
 
        PHP_OCI8_INSTANT_CLIENT="yes"
82115
 
    fi
82116
 
    if test -z "$PHP_OCI8"; then
82117
 
        PHP_OCI8=yes
82118
 
    fi
82119
 
  elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then
82120
 
    PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`"
82121
 
    PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`"
82122
 
    if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
82123
 
        PHP_OCI8_INSTANT_CLIENT="yes"
82124
 
    fi
82125
 
    if test -z "$PHP_OCI8"; then
82126
 
        PHP_OCI8=yes
82127
 
    fi
82128
 
  fi
82129
 
 
82130
 
  if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
82131
 
            
82132
 
    { $as_echo "$as_me:$LINENO: checking Oracle ORACLE_HOME install directory" >&5
82133
 
$as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; }
82134
 
 
82135
 
    if test "$PHP_OCI8" = "yes"; then
82136
 
      OCI8_DIR=$ORACLE_HOME
82137
 
    else
82138
 
      OCI8_DIR=$PHP_OCI8
82139
 
    fi
82140
 
    { $as_echo "$as_me:$LINENO: result: $OCI8_DIR" >&5
82141
 
$as_echo "$OCI8_DIR" >&6; }
82142
 
 
82143
 
    
82144
 
  { $as_echo "$as_me:$LINENO: checking ORACLE_HOME library validity" >&5
82145
 
$as_echo_n "checking ORACLE_HOME library validity... " >&6; }
82146
 
  if test ! -d "$OCI8_DIR"; then
82147
 
    { { $as_echo "$as_me:$LINENO: error: ${OCI8_DIR} is not a directory" >&5
82148
 
$as_echo "$as_me: error: ${OCI8_DIR} is not a directory" >&2;}
82149
 
   { (exit 1); exit 1; }; }
82150
 
  fi
82151
 
  if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then
82152
 
    OCI8_LIB_DIR=lib
82153
 
  elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
82154
 
    OCI8_LIB_DIR=lib32
82155
 
  elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
82156
 
    OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR
82157
 
  else
82158
 
        if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then
82159
 
      { { $as_echo "$as_me:$LINENO: error: Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" >&5
82160
 
$as_echo "$as_me: error: Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" >&2;}
82161
 
   { (exit 1); exit 1; }; }
82162
 
    else
82163
 
      { { $as_echo "$as_me:$LINENO: error: Oracle library directory not found in ${OCI8_DIR}" >&5
82164
 
$as_echo "$as_me: error: Oracle library directory not found in ${OCI8_DIR}" >&2;}
82165
 
   { (exit 1); exit 1; }; }
82166
 
    fi
82167
 
  fi
82168
 
  { $as_echo "$as_me:$LINENO: result: $OCI8_LIB_DIR" >&5
82169
 
$as_echo "$OCI8_LIB_DIR" >&6; }
82170
 
 
82171
 
 
82172
 
    if test -d "$OCI8_DIR/rdbms/public"; then
82173
 
      
82174
 
  if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then
82175
 
    
82176
 
  if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then
82177
 
    ai_p=$OCI8_DIR/rdbms/public
82178
 
  else
82179
 
    
82180
 
    ep_dir="`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`"
82181
 
    
82182
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82183
 
    ai_p="$ep_realdir/`basename \"$OCI8_DIR/rdbms/public\"`"
82184
 
  fi
82185
 
 
82186
 
    
82187
 
  
82188
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82189
 
  
82190
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82191
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82192
 
    eval "INCLUDEPATH$unique=set"
82193
 
    
82194
 
      if test ""; then
82195
 
        INCLUDES="-I$ai_p $INCLUDES"
82196
 
      else
82197
 
        INCLUDES="$INCLUDES -I$ai_p"
82198
 
      fi
82199
 
    
82200
 
  fi
82201
 
 
82202
 
  fi
82203
 
 
82204
 
      OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public"
82205
 
    fi
82206
 
    if test -d "$OCI8_DIR/rdbms/demo"; then
82207
 
      
82208
 
  if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then
82209
 
    
82210
 
  if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
82211
 
    ai_p=$OCI8_DIR/rdbms/demo
82212
 
  else
82213
 
    
82214
 
    ep_dir="`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`"
82215
 
    
82216
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82217
 
    ai_p="$ep_realdir/`basename \"$OCI8_DIR/rdbms/demo\"`"
82218
 
  fi
82219
 
 
82220
 
    
82221
 
  
82222
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82223
 
  
82224
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82225
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82226
 
    eval "INCLUDEPATH$unique=set"
82227
 
    
82228
 
      if test ""; then
82229
 
        INCLUDES="-I$ai_p $INCLUDES"
82230
 
      else
82231
 
        INCLUDES="$INCLUDES -I$ai_p"
82232
 
      fi
82233
 
    
82234
 
  fi
82235
 
 
82236
 
  fi
82237
 
 
82238
 
      OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo"
82239
 
    fi
82240
 
    if test -d "$OCI8_DIR/network/public"; then
82241
 
      
82242
 
  if test "$OCI8_DIR/network/public" != "/usr/include"; then
82243
 
    
82244
 
  if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then
82245
 
    ai_p=$OCI8_DIR/network/public
82246
 
  else
82247
 
    
82248
 
    ep_dir="`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`"
82249
 
    
82250
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82251
 
    ai_p="$ep_realdir/`basename \"$OCI8_DIR/network/public\"`"
82252
 
  fi
82253
 
 
82254
 
    
82255
 
  
82256
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82257
 
  
82258
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82259
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82260
 
    eval "INCLUDEPATH$unique=set"
82261
 
    
82262
 
      if test ""; then
82263
 
        INCLUDES="-I$ai_p $INCLUDES"
82264
 
      else
82265
 
        INCLUDES="$INCLUDES -I$ai_p"
82266
 
      fi
82267
 
    
82268
 
  fi
82269
 
 
82270
 
  fi
82271
 
 
82272
 
      OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public"
82273
 
    fi
82274
 
    if test -d "$OCI8_DIR/plsql/public"; then
82275
 
      
82276
 
  if test "$OCI8_DIR/plsql/public" != "/usr/include"; then
82277
 
    
82278
 
  if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then
82279
 
    ai_p=$OCI8_DIR/plsql/public
82280
 
  else
82281
 
    
82282
 
    ep_dir="`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`"
82283
 
    
82284
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82285
 
    ai_p="$ep_realdir/`basename \"$OCI8_DIR/plsql/public\"`"
82286
 
  fi
82287
 
 
82288
 
    
82289
 
  
82290
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82291
 
  
82292
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82293
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82294
 
    eval "INCLUDEPATH$unique=set"
82295
 
    
82296
 
      if test ""; then
82297
 
        INCLUDES="-I$ai_p $INCLUDES"
82298
 
      else
82299
 
        INCLUDES="$INCLUDES -I$ai_p"
82300
 
      fi
82301
 
    
82302
 
  fi
82303
 
 
82304
 
  fi
82305
 
 
82306
 
      OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public"
82307
 
    fi
82308
 
 
82309
 
    if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then
82310
 
      
82311
 
  for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do
82312
 
    case $ac_i in
82313
 
    -pthread)
82314
 
      if test "$ext_shared" = "yes"; then
82315
 
        OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
82316
 
      else
82317
 
        
82318
 
  
82319
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82320
 
  
82321
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82322
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82323
 
    eval "EXTRA_LDFLAGS$unique=set"
82324
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82325
 
  fi
82326
 
 
82327
 
      fi
82328
 
    ;;
82329
 
    -l*)
82330
 
      ac_ii=`echo $ac_i|cut -c 3-`
82331
 
      
82332
 
  
82333
 
  case $ac_ii in
82334
 
  c|c_r|pthread*) ;;
82335
 
  *) 
82336
 
    if test "$ext_shared" = "yes"; then
82337
 
        OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" 
82338
 
    else
82339
 
      
82340
 
  
82341
 
  case $ac_ii in
82342
 
  c|c_r|pthread*) ;;
82343
 
  *) 
82344
 
      LIBS="$LIBS -l$ac_ii" 
82345
 
   ;;
82346
 
  esac
82347
 
 
82348
 
 
82349
 
    fi
82350
 
   ;;
82351
 
  esac
82352
 
 
82353
 
 
82354
 
    ;;
82355
 
    -L*)
82356
 
      ac_ii=`echo $ac_i|cut -c 3-`
82357
 
      
82358
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82359
 
    
82360
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82361
 
    ai_p=$ac_ii
82362
 
  else
82363
 
    
82364
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82365
 
    
82366
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82367
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82368
 
  fi
82369
 
 
82370
 
    
82371
 
      if test "$ext_shared" = "yes"; then
82372
 
        OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
82373
 
        test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
82374
 
      else
82375
 
        
82376
 
  
82377
 
  
82378
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82379
 
  
82380
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82381
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82382
 
    eval "LIBPATH$unique=set"
82383
 
    
82384
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82385
 
    LDFLAGS="$LDFLAGS -L$ai_p"
82386
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
82387
 
  
82388
 
  fi
82389
 
 
82390
 
 
82391
 
      fi
82392
 
    
82393
 
  fi
82394
 
 
82395
 
    ;;
82396
 
    esac
82397
 
  done
82398
 
 
82399
 
    elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then
82400
 
      
82401
 
  for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do
82402
 
    case $ac_i in
82403
 
    -pthread)
82404
 
      if test "$ext_shared" = "yes"; then
82405
 
        OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
82406
 
      else
82407
 
        
82408
 
  
82409
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82410
 
  
82411
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82412
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82413
 
    eval "EXTRA_LDFLAGS$unique=set"
82414
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82415
 
  fi
82416
 
 
82417
 
      fi
82418
 
    ;;
82419
 
    -l*)
82420
 
      ac_ii=`echo $ac_i|cut -c 3-`
82421
 
      
82422
 
  
82423
 
  case $ac_ii in
82424
 
  c|c_r|pthread*) ;;
82425
 
  *) 
82426
 
    if test "$ext_shared" = "yes"; then
82427
 
        OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" 
82428
 
    else
82429
 
      
82430
 
  
82431
 
  case $ac_ii in
82432
 
  c|c_r|pthread*) ;;
82433
 
  *) 
82434
 
      LIBS="$LIBS -l$ac_ii" 
82435
 
   ;;
82436
 
  esac
82437
 
 
82438
 
 
82439
 
    fi
82440
 
   ;;
82441
 
  esac
82442
 
 
82443
 
 
82444
 
    ;;
82445
 
    -L*)
82446
 
      ac_ii=`echo $ac_i|cut -c 3-`
82447
 
      
82448
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82449
 
    
82450
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82451
 
    ai_p=$ac_ii
82452
 
  else
82453
 
    
82454
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82455
 
    
82456
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82457
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82458
 
  fi
82459
 
 
82460
 
    
82461
 
      if test "$ext_shared" = "yes"; then
82462
 
        OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
82463
 
        test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
82464
 
      else
82465
 
        
82466
 
  
82467
 
  
82468
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82469
 
  
82470
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82471
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82472
 
    eval "LIBPATH$unique=set"
82473
 
    
82474
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82475
 
    LDFLAGS="$LDFLAGS -L$ai_p"
82476
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
82477
 
  
82478
 
  fi
82479
 
 
82480
 
 
82481
 
      fi
82482
 
    
82483
 
  fi
82484
 
 
82485
 
    ;;
82486
 
    esac
82487
 
  done
82488
 
 
82489
 
    fi
82490
 
 
82491
 
    
82492
 
  { $as_echo "$as_me:$LINENO: checking Oracle library version compatibility" >&5
82493
 
$as_echo_n "checking Oracle library version compatibility... " >&6; }
82494
 
  OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
82495
 
  OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | tail -1`  # Oracle 10g, 11g etc
82496
 
  if test -s "$OCI8_DIR/orainst/unix.rgs"; then
82497
 
    OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/  */:/g' | cut -d: -f 6 | cut -c 2-4`
82498
 
    test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3
82499
 
  elif test -f "$OCI8_LCS"; then
82500
 
        OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
82501
 
  elif test -f $OCI8_LCS_BASE.9.0; then
82502
 
        OCI8_ORACLE_VERSION=9.0
82503
 
  elif test -f $OCI8_LCS_BASE.8.0; then
82504
 
    OCI8_ORACLE_VERSION=8.1
82505
 
  elif test -f $OCI8_LCS_BASE.1.0; then
82506
 
    OCI8_ORACLE_VERSION=8.0
82507
 
  elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then 
82508
 
    if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then 
82509
 
      OCI8_ORACLE_VERSION=8.0
82510
 
    else
82511
 
      OCI8_ORACLE_VERSION=8.1
82512
 
    fi
82513
 
  else
82514
 
    { { $as_echo "$as_me:$LINENO: error: Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" >&5
82515
 
$as_echo "$as_me: error: Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" >&2;}
82516
 
   { (exit 1); exit 1; }; }
82517
 
  fi
82518
 
  { $as_echo "$as_me:$LINENO: result: $OCI8_ORACLE_VERSION" >&5
82519
 
$as_echo "$OCI8_ORACLE_VERSION" >&6; }
82520
 
 
82521
 
 
82522
 
    case $OCI8_ORACLE_VERSION in
82523
 
      7.3|8.0|8.1)
82524
 
        { { $as_echo "$as_me:$LINENO: error: Oracle client libraries < 9.2 are not supported" >&5
82525
 
$as_echo "$as_me: error: Oracle client libraries < 9.2 are not supported" >&2;}
82526
 
   { (exit 1); exit 1; }; }
82527
 
        ;;
82528
 
 
82529
 
      9.0)
82530
 
        
82531
 
  save_old_LDFLAGS=$LDFLAGS
82532
 
  ac_stuff="
82533
 
          -L$OCI8_DIR/$OCI8_LIB_DIR $OCI8_SHARED_LIBADD
82534
 
        "
82535
 
  
82536
 
  save_ext_shared=$ext_shared
82537
 
  ext_shared=yes
82538
 
  
82539
 
  for ac_i in $ac_stuff; do
82540
 
    case $ac_i in
82541
 
    -pthread)
82542
 
      if test "$ext_shared" = "yes"; then
82543
 
        LDFLAGS="$LDFLAGS -pthread"
82544
 
      else
82545
 
        
82546
 
  
82547
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82548
 
  
82549
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82550
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82551
 
    eval "EXTRA_LDFLAGS$unique=set"
82552
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82553
 
  fi
82554
 
 
82555
 
      fi
82556
 
    ;;
82557
 
    -l*)
82558
 
      ac_ii=`echo $ac_i|cut -c 3-`
82559
 
      
82560
 
  
82561
 
  case $ac_ii in
82562
 
  c|c_r|pthread*) ;;
82563
 
  *) 
82564
 
    if test "$ext_shared" = "yes"; then
82565
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
82566
 
    else
82567
 
      
82568
 
  
82569
 
  case $ac_ii in
82570
 
  c|c_r|pthread*) ;;
82571
 
  *) 
82572
 
      LIBS="$LIBS -l$ac_ii" 
82573
 
   ;;
82574
 
  esac
82575
 
 
82576
 
 
82577
 
    fi
82578
 
   ;;
82579
 
  esac
82580
 
 
82581
 
 
82582
 
    ;;
82583
 
    -L*)
82584
 
      ac_ii=`echo $ac_i|cut -c 3-`
82585
 
      
82586
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82587
 
    
82588
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82589
 
    ai_p=$ac_ii
82590
 
  else
82591
 
    
82592
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82593
 
    
82594
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82595
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82596
 
  fi
82597
 
 
82598
 
    
82599
 
      if test "$ext_shared" = "yes"; then
82600
 
        LDFLAGS="-L$ai_p $LDFLAGS"
82601
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
82602
 
      else
82603
 
        
82604
 
  
82605
 
  
82606
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82607
 
  
82608
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82609
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82610
 
    eval "LIBPATH$unique=set"
82611
 
    
82612
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82613
 
    LDFLAGS="$LDFLAGS -L$ai_p"
82614
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
82615
 
  
82616
 
  fi
82617
 
 
82618
 
 
82619
 
      fi
82620
 
    
82621
 
  fi
82622
 
 
82623
 
    ;;
82624
 
    esac
82625
 
  done
82626
 
 
82627
 
  { $as_echo "$as_me:$LINENO: checking for OCIEnvNlsCreate in -lclntsh" >&5
82628
 
$as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; }
82629
 
if test "${ac_cv_lib_clntsh_OCIEnvNlsCreate+set}" = set; then
82630
 
  $as_echo_n "(cached) " >&6
82631
 
else
82632
 
  ac_check_lib_save_LIBS=$LIBS
82633
 
LIBS="-lclntsh  $LIBS"
82634
 
cat >conftest.$ac_ext <<_ACEOF
82635
 
/* confdefs.h.  */
82636
 
_ACEOF
82637
 
cat confdefs.h >>conftest.$ac_ext
82638
 
cat >>conftest.$ac_ext <<_ACEOF
82639
 
/* end confdefs.h.  */
82640
 
 
82641
 
/* Override any GCC internal prototype to avoid an error.
82642
 
   Use char because int might match the return type of a GCC
82643
 
   builtin and then its argument prototype would still apply.  */
82644
 
#ifdef __cplusplus
82645
 
extern "C"
82646
 
#endif
82647
 
char OCIEnvNlsCreate ();
82648
 
int
82649
 
main ()
82650
 
{
82651
 
return OCIEnvNlsCreate ();
82652
 
  ;
82653
 
  return 0;
82654
 
}
82655
 
_ACEOF
82656
 
rm -f conftest.$ac_objext conftest$ac_exeext
82657
 
if { (ac_try="$ac_link"
82658
 
case "(($ac_try" in
82659
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82660
 
  *) ac_try_echo=$ac_try;;
82661
 
esac
82662
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82663
 
$as_echo "$ac_try_echo") >&5
82664
 
  (eval "$ac_link") 2>conftest.er1
82665
 
  ac_status=$?
82666
 
  grep -v '^ *+' conftest.er1 >conftest.err
82667
 
  rm -f conftest.er1
82668
 
  cat conftest.err >&5
82669
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82670
 
  (exit $ac_status); } && {
82671
 
         test -z "$ac_c_werror_flag" ||
82672
 
         test ! -s conftest.err
82673
 
       } && test -s conftest$ac_exeext && {
82674
 
         test "$cross_compiling" = yes ||
82675
 
         $as_test_x conftest$ac_exeext
82676
 
       }; then
82677
 
  ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
82678
 
else
82679
 
  $as_echo "$as_me: failed program was:" >&5
82680
 
sed 's/^/| /' conftest.$ac_ext >&5
82681
 
 
82682
 
        ac_cv_lib_clntsh_OCIEnvNlsCreate=no
82683
 
fi
82684
 
 
82685
 
rm -rf conftest.dSYM
82686
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
82687
 
      conftest$ac_exeext conftest.$ac_ext
82688
 
LIBS=$ac_check_lib_save_LIBS
82689
 
fi
82690
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
82691
 
$as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
82692
 
if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = x""yes; then
82693
 
  
82694
 
    LDFLAGS=$save_old_LDFLAGS
82695
 
    ext_shared=$save_ext_shared
82696
 
    
82697
 
          OCI8_ORACLE_VERSION=9.2
82698
 
        
82699
 
  
82700
 
else
82701
 
  
82702
 
    LDFLAGS=$save_old_LDFLAGS
82703
 
    ext_shared=$save_ext_shared
82704
 
    unset ac_cv_lib_clntsh_OCIEnvNlsCreate
82705
 
    
82706
 
          { { $as_echo "$as_me:$LINENO: error: Oracle client libraries < 9.2 are not supported" >&5
82707
 
$as_echo "$as_me: error: Oracle client libraries < 9.2 are not supported" >&2;}
82708
 
   { (exit 1); exit 1; }; }
82709
 
        
82710
 
  
82711
 
fi
82712
 
 
82713
 
        ;;
82714
 
 
82715
 
      *)
82716
 
        
82717
 
cat >>confdefs.h <<\_ACEOF
82718
 
@%:@define HAVE_OCI_LOB_READ2 1
82719
 
_ACEOF
82720
 
 
82721
 
        ;;
82722
 
    esac
82723
 
 
82724
 
    
82725
 
  
82726
 
  case clntsh in
82727
 
  c|c_r|pthread*) ;;
82728
 
  *) 
82729
 
    if test "$ext_shared" = "yes"; then
82730
 
        OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" 
82731
 
    else
82732
 
      
82733
 
  
82734
 
  case clntsh in
82735
 
  c|c_r|pthread*) ;;
82736
 
  *) 
82737
 
      LIBS="$LIBS -lclntsh" 
82738
 
   ;;
82739
 
  esac
82740
 
 
82741
 
 
82742
 
    fi
82743
 
   ;;
82744
 
  esac
82745
 
 
82746
 
 
82747
 
    
82748
 
  if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then
82749
 
    
82750
 
  if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then
82751
 
    ai_p=$OCI8_DIR/$OCI8_LIB_DIR
82752
 
  else
82753
 
    
82754
 
    ep_dir="`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
82755
 
    
82756
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82757
 
    ai_p="$ep_realdir/`basename \"$OCI8_DIR/$OCI8_LIB_DIR\"`"
82758
 
  fi
82759
 
 
82760
 
    
82761
 
      if test "$ext_shared" = "yes"; then
82762
 
        OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
82763
 
        test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
82764
 
      else
82765
 
        
82766
 
  
82767
 
  
82768
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82769
 
  
82770
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82771
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
82772
 
    eval "LIBPATH$unique=set"
82773
 
    
82774
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82775
 
    LDFLAGS="$LDFLAGS -L$ai_p"
82776
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
82777
 
  
82778
 
  fi
82779
 
 
82780
 
 
82781
 
      fi
82782
 
    
82783
 
  fi
82784
 
 
82785
 
    
82786
 
  ext_builddir=ext/oci8
82787
 
  ext_srcdir=$abs_srcdir/ext/oci8
82788
 
 
82789
 
  ac_extra=
82790
 
 
82791
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
82792
 
    PHP_OCI8_SHARED=no
82793
 
    
82794
 
  
82795
 
  case ext/oci8 in
82796
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
82797
 
  /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
82798
 
  *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
82799
 
  esac
82800
 
  
82801
 
  
82802
 
 
82803
 
  b_c_pre=$php_c_pre
82804
 
  b_cxx_pre=$php_cxx_pre
82805
 
  b_c_meta=$php_c_meta
82806
 
  b_cxx_meta=$php_cxx_meta
82807
 
  b_c_post=$php_c_post
82808
 
  b_cxx_post=$php_cxx_post
82809
 
  b_lo=$php_lo
82810
 
 
82811
 
 
82812
 
  old_IFS=$IFS
82813
 
  for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
82814
 
  
82815
 
      IFS=.
82816
 
      set $ac_src
82817
 
      ac_obj=$1
82818
 
      IFS=$old_IFS
82819
 
      
82820
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
82821
 
 
82822
 
      case $ac_src in
82823
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82824
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82825
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82826
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
82827
 
      esac
82828
 
 
82829
 
    cat >>Makefile.objects<<EOF
82830
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
82831
 
        $ac_comp
82832
 
EOF
82833
 
  done
82834
 
 
82835
 
 
82836
 
    EXT_STATIC="$EXT_STATIC oci8"
82837
 
    if test "$ext_shared" != "nocli"; then
82838
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
82839
 
    fi
82840
 
  else
82841
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
82842
 
      PHP_OCI8_SHARED=yes
82843
 
      
82844
 
  case ext/oci8 in
82845
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
82846
 
  /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
82847
 
  *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
82848
 
  esac
82849
 
  
82850
 
  
82851
 
 
82852
 
  b_c_pre=$shared_c_pre
82853
 
  b_cxx_pre=$shared_cxx_pre
82854
 
  b_c_meta=$shared_c_meta
82855
 
  b_cxx_meta=$shared_cxx_meta
82856
 
  b_c_post=$shared_c_post
82857
 
  b_cxx_post=$shared_cxx_post
82858
 
  b_lo=$shared_lo
82859
 
 
82860
 
 
82861
 
  old_IFS=$IFS
82862
 
  for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
82863
 
  
82864
 
      IFS=.
82865
 
      set $ac_src
82866
 
      ac_obj=$1
82867
 
      IFS=$old_IFS
82868
 
      
82869
 
      shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
82870
 
 
82871
 
      case $ac_src in
82872
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82873
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82874
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82875
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
82876
 
      esac
82877
 
 
82878
 
    cat >>Makefile.objects<<EOF
82879
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
82880
 
        $ac_comp
82881
 
EOF
82882
 
  done
82883
 
 
82884
 
      case $host_alias in
82885
 
        *netware*)
82886
 
          
82887
 
  install_modules="install-modules"
82888
 
 
82889
 
  case $host_alias in
82890
 
    *aix*)
82891
 
      suffix=so
82892
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpoci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpoci8.so '$ext_builddir'/phpoci8.so'
82893
 
      ;;
82894
 
    *netware*)
82895
 
      suffix=nlm
82896
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(OCI8_SHARED_LIBADD)'
82897
 
      ;;
82898
 
    *)
82899
 
      suffix=la
82900
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD)'
82901
 
      ;;
82902
 
  esac
82903
 
 
82904
 
  if test "x" = "xyes"; then
82905
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
82906
 
  else
82907
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
82908
 
  fi
82909
 
  
82910
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
82911
 
 
82912
 
  cat >>Makefile.objects<<EOF
82913
 
\$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
82914
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
82915
 
 
82916
 
$ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
82917
 
        $link_cmd
82918
 
 
82919
 
EOF
82920
 
 
82921
 
          ;;
82922
 
        *)
82923
 
          
82924
 
  install_modules="install-modules"
82925
 
 
82926
 
  case $host_alias in
82927
 
    *aix*)
82928
 
      suffix=so
82929
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/oci8.so '$ext_builddir'/oci8.so'
82930
 
      ;;
82931
 
    *netware*)
82932
 
      suffix=nlm
82933
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(8_SHARED_LIBADD)'
82934
 
      ;;
82935
 
    *)
82936
 
      suffix=la
82937
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD)'
82938
 
      ;;
82939
 
  esac
82940
 
 
82941
 
  if test "x" = "xyes"; then
82942
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
82943
 
  else
82944
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
82945
 
  fi
82946
 
  
82947
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
82948
 
 
82949
 
  cat >>Makefile.objects<<EOF
82950
 
\$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
82951
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
82952
 
 
82953
 
$ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
82954
 
        $link_cmd
82955
 
 
82956
 
EOF
82957
 
 
82958
 
          ;;
82959
 
      esac
82960
 
      
82961
 
cat >>confdefs.h <<_ACEOF
82962
 
@%:@define COMPILE_DL_OCI8 1
82963
 
_ACEOF
82964
 
 
82965
 
    fi
82966
 
  fi
82967
 
 
82968
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
82969
 
    PHP_OCI8_SHARED=no
82970
 
    case "$PHP_SAPI" in
82971
 
      cgi|embed)
82972
 
        
82973
 
  
82974
 
  case ext/oci8 in
82975
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
82976
 
  /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
82977
 
  *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
82978
 
  esac
82979
 
  
82980
 
  
82981
 
 
82982
 
  b_c_pre=$php_c_pre
82983
 
  b_cxx_pre=$php_cxx_pre
82984
 
  b_c_meta=$php_c_meta
82985
 
  b_cxx_meta=$php_cxx_meta
82986
 
  b_c_post=$php_c_post
82987
 
  b_cxx_post=$php_cxx_post
82988
 
  b_lo=$php_lo
82989
 
 
82990
 
 
82991
 
  old_IFS=$IFS
82992
 
  for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
82993
 
  
82994
 
      IFS=.
82995
 
      set $ac_src
82996
 
      ac_obj=$1
82997
 
      IFS=$old_IFS
82998
 
      
82999
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83000
 
 
83001
 
      case $ac_src in
83002
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83003
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83004
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83005
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83006
 
      esac
83007
 
 
83008
 
    cat >>Makefile.objects<<EOF
83009
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83010
 
        $ac_comp
83011
 
EOF
83012
 
  done
83013
 
 
83014
 
 
83015
 
        EXT_STATIC="$EXT_STATIC oci8"
83016
 
        ;;
83017
 
      *)
83018
 
        
83019
 
  
83020
 
  case ext/oci8 in
83021
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83022
 
  /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83023
 
  *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83024
 
  esac
83025
 
  
83026
 
  
83027
 
 
83028
 
  b_c_pre=$php_c_pre
83029
 
  b_cxx_pre=$php_cxx_pre
83030
 
  b_c_meta=$php_c_meta
83031
 
  b_cxx_meta=$php_cxx_meta
83032
 
  b_c_post=$php_c_post
83033
 
  b_cxx_post=$php_cxx_post
83034
 
  b_lo=$php_lo
83035
 
 
83036
 
 
83037
 
  old_IFS=$IFS
83038
 
  for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83039
 
  
83040
 
      IFS=.
83041
 
      set $ac_src
83042
 
      ac_obj=$1
83043
 
      IFS=$old_IFS
83044
 
      
83045
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
83046
 
 
83047
 
      case $ac_src in
83048
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83049
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83050
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83051
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83052
 
      esac
83053
 
 
83054
 
    cat >>Makefile.objects<<EOF
83055
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83056
 
        $ac_comp
83057
 
EOF
83058
 
  done
83059
 
 
83060
 
 
83061
 
        ;;
83062
 
    esac
83063
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
83064
 
  fi
83065
 
  
83066
 
  
83067
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
83068
 
  
83069
 
 
83070
 
 
83071
 
  if test "$ext_builddir" = "."; then
83072
 
    PHP_PECL_EXTENSION=oci8
83073
 
    
83074
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
83075
 
 
83076
 
  fi
83077
 
 
83078
 
    
83079
 
cat >>confdefs.h <<\_ACEOF
83080
 
@%:@define HAVE_OCI8 1
83081
 
_ACEOF
83082
 
 
83083
 
 
83084
 
    
83085
 
  
83086
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
83087
 
 
83088
 
  
83089
 
 
83090
 
    
83091
 
  
83092
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
83093
 
 
83094
 
  
83095
 
 
83096
 
    
83097
 
  
83098
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
83099
 
 
83100
 
  
83101
 
 
83102
 
 
83103
 
        
83104
 
cat >>confdefs.h <<_ACEOF
83105
 
@%:@define PHP_OCI8_DEF_DIR "$OCI8_DIR"
83106
 
_ACEOF
83107
 
 
83108
 
    
83109
 
cat >>confdefs.h <<_ACEOF
83110
 
@%:@define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD"
83111
 
_ACEOF
83112
 
 
83113
 
 
83114
 
  else
83115
 
            
83116
 
    { $as_echo "$as_me:$LINENO: checking Oracle Instant Client directory" >&5
83117
 
$as_echo_n "checking Oracle Instant Client directory... " >&6; }
83118
 
 
83119
 
    if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then
83120
 
                                    PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | tail -1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'`
83121
 
      if test -z "$PHP_OCI8_INSTANT_CLIENT"; then
83122
 
        { { $as_echo "$as_me:$LINENO: error: Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" >&5
83123
 
$as_echo "$as_me: error: Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" >&2;}
83124
 
   { (exit 1); exit 1; }; }
83125
 
      fi
83126
 
    fi
83127
 
    { $as_echo "$as_me:$LINENO: result: $PHP_OCI8_INSTANT_CLIENT" >&5
83128
 
$as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; }
83129
 
 
83130
 
    OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT
83131
 
 
83132
 
    { $as_echo "$as_me:$LINENO: checking Oracle Instant Client SDK header directory" >&5
83133
 
$as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; }
83134
 
 
83135
 
        OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'`
83136
 
 
83137
 
        OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include
83138
 
 
83139
 
        OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'`
83140
 
 
83141
 
    if test -f "$OCISDKRPMINC/oci.h"; then
83142
 
      { $as_echo "$as_me:$LINENO: result: $OCISDKRPMINC" >&5
83143
 
$as_echo "$OCISDKRPMINC" >&6; }
83144
 
      
83145
 
  if test "$OCISDKRPMINC" != "/usr/include"; then
83146
 
    
83147
 
  if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then
83148
 
    ai_p=$OCISDKRPMINC
83149
 
  else
83150
 
    
83151
 
    ep_dir="`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'`"
83152
 
    
83153
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83154
 
    ai_p="$ep_realdir/`basename \"$OCISDKRPMINC\"`"
83155
 
  fi
83156
 
 
83157
 
    
83158
 
  
83159
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83160
 
  
83161
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
83162
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
83163
 
    eval "INCLUDEPATH$unique=set"
83164
 
    
83165
 
      if test ""; then
83166
 
        INCLUDES="-I$ai_p $INCLUDES"
83167
 
      else
83168
 
        INCLUDES="$INCLUDES -I$ai_p"
83169
 
      fi
83170
 
    
83171
 
  fi
83172
 
 
83173
 
  fi
83174
 
 
83175
 
      OCI8INCDIR=$OCISDKRPMINC
83176
 
    elif test -f "$OCISDKZIPINC/oci.h"; then
83177
 
      { $as_echo "$as_me:$LINENO: result: $OCISDKZIPINC" >&5
83178
 
$as_echo "$OCISDKZIPINC" >&6; }
83179
 
      
83180
 
  if test "$OCISDKZIPINC" != "/usr/include"; then
83181
 
    
83182
 
  if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then
83183
 
    ai_p=$OCISDKZIPINC
83184
 
  else
83185
 
    
83186
 
    ep_dir="`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'`"
83187
 
    
83188
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83189
 
    ai_p="$ep_realdir/`basename \"$OCISDKZIPINC\"`"
83190
 
  fi
83191
 
 
83192
 
    
83193
 
  
83194
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83195
 
  
83196
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
83197
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
83198
 
    eval "INCLUDEPATH$unique=set"
83199
 
    
83200
 
      if test ""; then
83201
 
        INCLUDES="-I$ai_p $INCLUDES"
83202
 
      else
83203
 
        INCLUDES="$INCLUDES -I$ai_p"
83204
 
      fi
83205
 
    
83206
 
  fi
83207
 
 
83208
 
  fi
83209
 
 
83210
 
      OCI8INCDIR=$OCISDKZIPINC
83211
 
    elif test -f "$OCISDKMANINC/oci.h"; then
83212
 
      { $as_echo "$as_me:$LINENO: result: $OCISDKMANINC" >&5
83213
 
$as_echo "$OCISDKMANINC" >&6; }
83214
 
      
83215
 
  if test "$OCISDKMANINC" != "/usr/include"; then
83216
 
    
83217
 
  if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then
83218
 
    ai_p=$OCISDKMANINC
83219
 
  else
83220
 
    
83221
 
    ep_dir="`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'`"
83222
 
    
83223
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83224
 
    ai_p="$ep_realdir/`basename \"$OCISDKMANINC\"`"
83225
 
  fi
83226
 
 
83227
 
    
83228
 
  
83229
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83230
 
  
83231
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
83232
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
83233
 
    eval "INCLUDEPATH$unique=set"
83234
 
    
83235
 
      if test ""; then
83236
 
        INCLUDES="-I$ai_p $INCLUDES"
83237
 
      else
83238
 
        INCLUDES="$INCLUDES -I$ai_p"
83239
 
      fi
83240
 
    
83241
 
  fi
83242
 
 
83243
 
  fi
83244
 
 
83245
 
      OCI8INCDIR=$OCISDKMANINC
83246
 
    else
83247
 
      { { $as_echo "$as_me:$LINENO: error: Oracle Instant Client SDK header files not found" >&5
83248
 
$as_echo "$as_me: error: Oracle Instant Client SDK header files not found" >&2;}
83249
 
   { (exit 1); exit 1; }; }
83250
 
    fi
83251
 
 
83252
 
    OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'`
83253
 
    if test -f "$OCISYSLIBLIST"; then
83254
 
      
83255
 
  for ac_i in `cat $OCISYSLIBLIST`; do
83256
 
    case $ac_i in
83257
 
    -pthread)
83258
 
      if test "$ext_shared" = "yes"; then
83259
 
        OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
83260
 
      else
83261
 
        
83262
 
  
83263
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
83264
 
  
83265
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
83266
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
83267
 
    eval "EXTRA_LDFLAGS$unique=set"
83268
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
83269
 
  fi
83270
 
 
83271
 
      fi
83272
 
    ;;
83273
 
    -l*)
83274
 
      ac_ii=`echo $ac_i|cut -c 3-`
83275
 
      
83276
 
  
83277
 
  case $ac_ii in
83278
 
  c|c_r|pthread*) ;;
83279
 
  *) 
83280
 
    if test "$ext_shared" = "yes"; then
83281
 
        OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii" 
83282
 
    else
83283
 
      
83284
 
  
83285
 
  case $ac_ii in
83286
 
  c|c_r|pthread*) ;;
83287
 
  *) 
83288
 
      LIBS="$LIBS -l$ac_ii" 
83289
 
   ;;
83290
 
  esac
83291
 
 
83292
 
 
83293
 
    fi
83294
 
   ;;
83295
 
  esac
83296
 
 
83297
 
 
83298
 
    ;;
83299
 
    -L*)
83300
 
      ac_ii=`echo $ac_i|cut -c 3-`
83301
 
      
83302
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
83303
 
    
83304
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
83305
 
    ai_p=$ac_ii
83306
 
  else
83307
 
    
83308
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
83309
 
    
83310
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83311
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
83312
 
  fi
83313
 
 
83314
 
    
83315
 
      if test "$ext_shared" = "yes"; then
83316
 
        OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
83317
 
        test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
83318
 
      else
83319
 
        
83320
 
  
83321
 
  
83322
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83323
 
  
83324
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
83325
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
83326
 
    eval "LIBPATH$unique=set"
83327
 
    
83328
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83329
 
    LDFLAGS="$LDFLAGS -L$ai_p"
83330
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
83331
 
  
83332
 
  fi
83333
 
 
83334
 
 
83335
 
      fi
83336
 
    
83337
 
  fi
83338
 
 
83339
 
    ;;
83340
 
    esac
83341
 
  done
83342
 
 
83343
 
    fi
83344
 
 
83345
 
    
83346
 
  { $as_echo "$as_me:$LINENO: checking Oracle Instant Client library version compatibility" >&5
83347
 
$as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; }
83348
 
  OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME
83349
 
  OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | tail -1`  # Oracle 10g, 11g etc
83350
 
  OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | tail -1`
83351
 
  if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then
83352
 
    if test ! -f "$OCI8_LCS_BASE"; then
83353
 
      { { $as_echo "$as_me:$LINENO: error: Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" >&5
83354
 
$as_echo "$as_me: error: Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" >&2;}
83355
 
   { (exit 1); exit 1; }; }
83356
 
    fi
83357
 
    OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
83358
 
  else
83359
 
    { { $as_echo "$as_me:$LINENO: error: Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" >&5
83360
 
$as_echo "$as_me: error: Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" >&2;}
83361
 
   { (exit 1); exit 1; }; }
83362
 
  fi
83363
 
  { $as_echo "$as_me:$LINENO: result: $OCI8_ORACLE_VERSION" >&5
83364
 
$as_echo "$OCI8_ORACLE_VERSION" >&6; }
83365
 
 
83366
 
    
83367
 
  
83368
 
  case clntsh in
83369
 
  c|c_r|pthread*) ;;
83370
 
  *) 
83371
 
    if test "$ext_shared" = "yes"; then
83372
 
        OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh" 
83373
 
    else
83374
 
      
83375
 
  
83376
 
  case clntsh in
83377
 
  c|c_r|pthread*) ;;
83378
 
  *) 
83379
 
      LIBS="$LIBS -lclntsh" 
83380
 
   ;;
83381
 
  esac
83382
 
 
83383
 
 
83384
 
    fi
83385
 
   ;;
83386
 
  esac
83387
 
 
83388
 
 
83389
 
    
83390
 
  if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then
83391
 
    
83392
 
  if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then
83393
 
    ai_p=$PHP_OCI8_INSTANT_CLIENT
83394
 
  else
83395
 
    
83396
 
    ep_dir="`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'`"
83397
 
    
83398
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83399
 
    ai_p="$ep_realdir/`basename \"$PHP_OCI8_INSTANT_CLIENT\"`"
83400
 
  fi
83401
 
 
83402
 
    
83403
 
      if test "$ext_shared" = "yes"; then
83404
 
        OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
83405
 
        test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
83406
 
      else
83407
 
        
83408
 
  
83409
 
  
83410
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83411
 
  
83412
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
83413
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
83414
 
    eval "LIBPATH$unique=set"
83415
 
    
83416
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83417
 
    LDFLAGS="$LDFLAGS -L$ai_p"
83418
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
83419
 
  
83420
 
  fi
83421
 
 
83422
 
 
83423
 
      fi
83424
 
    
83425
 
  fi
83426
 
 
83427
 
 
83428
 
    
83429
 
cat >>confdefs.h <<\_ACEOF
83430
 
@%:@define HAVE_OCI_INSTANT_CLIENT 1
83431
 
_ACEOF
83432
 
 
83433
 
    
83434
 
cat >>confdefs.h <<\_ACEOF
83435
 
@%:@define HAVE_OCI_LOB_READ2 1
83436
 
_ACEOF
83437
 
 
83438
 
 
83439
 
    
83440
 
  ext_builddir=ext/oci8
83441
 
  ext_srcdir=$abs_srcdir/ext/oci8
83442
 
 
83443
 
  ac_extra=
83444
 
 
83445
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
83446
 
    PHP_OCI8_SHARED=no
83447
 
    
83448
 
  
83449
 
  case ext/oci8 in
83450
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83451
 
  /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83452
 
  *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83453
 
  esac
83454
 
  
83455
 
  
83456
 
 
83457
 
  b_c_pre=$php_c_pre
83458
 
  b_cxx_pre=$php_cxx_pre
83459
 
  b_c_meta=$php_c_meta
83460
 
  b_cxx_meta=$php_cxx_meta
83461
 
  b_c_post=$php_c_post
83462
 
  b_cxx_post=$php_cxx_post
83463
 
  b_lo=$php_lo
83464
 
 
83465
 
 
83466
 
  old_IFS=$IFS
83467
 
  for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83468
 
  
83469
 
      IFS=.
83470
 
      set $ac_src
83471
 
      ac_obj=$1
83472
 
      IFS=$old_IFS
83473
 
      
83474
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83475
 
 
83476
 
      case $ac_src in
83477
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83478
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83479
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83480
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83481
 
      esac
83482
 
 
83483
 
    cat >>Makefile.objects<<EOF
83484
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83485
 
        $ac_comp
83486
 
EOF
83487
 
  done
83488
 
 
83489
 
 
83490
 
    EXT_STATIC="$EXT_STATIC oci8"
83491
 
    if test "$ext_shared" != "nocli"; then
83492
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
83493
 
    fi
83494
 
  else
83495
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
83496
 
      PHP_OCI8_SHARED=yes
83497
 
      
83498
 
  case ext/oci8 in
83499
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83500
 
  /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83501
 
  *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83502
 
  esac
83503
 
  
83504
 
  
83505
 
 
83506
 
  b_c_pre=$shared_c_pre
83507
 
  b_cxx_pre=$shared_cxx_pre
83508
 
  b_c_meta=$shared_c_meta
83509
 
  b_cxx_meta=$shared_cxx_meta
83510
 
  b_c_post=$shared_c_post
83511
 
  b_cxx_post=$shared_cxx_post
83512
 
  b_lo=$shared_lo
83513
 
 
83514
 
 
83515
 
  old_IFS=$IFS
83516
 
  for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83517
 
  
83518
 
      IFS=.
83519
 
      set $ac_src
83520
 
      ac_obj=$1
83521
 
      IFS=$old_IFS
83522
 
      
83523
 
      shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
83524
 
 
83525
 
      case $ac_src in
83526
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83527
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83528
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83529
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83530
 
      esac
83531
 
 
83532
 
    cat >>Makefile.objects<<EOF
83533
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83534
 
        $ac_comp
83535
 
EOF
83536
 
  done
83537
 
 
83538
 
      case $host_alias in
83539
 
        *netware*)
83540
 
          
83541
 
  install_modules="install-modules"
83542
 
 
83543
 
  case $host_alias in
83544
 
    *aix*)
83545
 
      suffix=so
83546
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpoci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpoci8.so '$ext_builddir'/phpoci8.so'
83547
 
      ;;
83548
 
    *netware*)
83549
 
      suffix=nlm
83550
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(OCI8_SHARED_LIBADD)'
83551
 
      ;;
83552
 
    *)
83553
 
      suffix=la
83554
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(PHPOCI8_SHARED_LIBADD)'
83555
 
      ;;
83556
 
  esac
83557
 
 
83558
 
  if test "x" = "xyes"; then
83559
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
83560
 
  else
83561
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
83562
 
  fi
83563
 
  
83564
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
83565
 
 
83566
 
  cat >>Makefile.objects<<EOF
83567
 
\$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
83568
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
83569
 
 
83570
 
$ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
83571
 
        $link_cmd
83572
 
 
83573
 
EOF
83574
 
 
83575
 
          ;;
83576
 
        *)
83577
 
          
83578
 
  install_modules="install-modules"
83579
 
 
83580
 
  case $host_alias in
83581
 
    *aix*)
83582
 
      suffix=so
83583
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/oci8.so '$ext_builddir'/oci8.so'
83584
 
      ;;
83585
 
    *netware*)
83586
 
      suffix=nlm
83587
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) -L$(top_builddir)/netware -lphp5lib $(8_SHARED_LIBADD)'
83588
 
      ;;
83589
 
    *)
83590
 
      suffix=la
83591
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_oci8) $(OCI8_SHARED_LIBADD)'
83592
 
      ;;
83593
 
  esac
83594
 
 
83595
 
  if test "x" = "xyes"; then
83596
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
83597
 
  else
83598
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
83599
 
  fi
83600
 
  
83601
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
83602
 
 
83603
 
  cat >>Makefile.objects<<EOF
83604
 
\$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
83605
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
83606
 
 
83607
 
$ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
83608
 
        $link_cmd
83609
 
 
83610
 
EOF
83611
 
 
83612
 
          ;;
83613
 
      esac
83614
 
      
83615
 
cat >>confdefs.h <<_ACEOF
83616
 
@%:@define COMPILE_DL_OCI8 1
83617
 
_ACEOF
83618
 
 
83619
 
    fi
83620
 
  fi
83621
 
 
83622
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
83623
 
    PHP_OCI8_SHARED=no
83624
 
    case "$PHP_SAPI" in
83625
 
      cgi|embed)
83626
 
        
83627
 
  
83628
 
  case ext/oci8 in
83629
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83630
 
  /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83631
 
  *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83632
 
  esac
83633
 
  
83634
 
  
83635
 
 
83636
 
  b_c_pre=$php_c_pre
83637
 
  b_cxx_pre=$php_cxx_pre
83638
 
  b_c_meta=$php_c_meta
83639
 
  b_cxx_meta=$php_cxx_meta
83640
 
  b_c_post=$php_c_post
83641
 
  b_cxx_post=$php_cxx_post
83642
 
  b_lo=$php_lo
83643
 
 
83644
 
 
83645
 
  old_IFS=$IFS
83646
 
  for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83647
 
  
83648
 
      IFS=.
83649
 
      set $ac_src
83650
 
      ac_obj=$1
83651
 
      IFS=$old_IFS
83652
 
      
83653
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83654
 
 
83655
 
      case $ac_src in
83656
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83657
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83658
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83659
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83660
 
      esac
83661
 
 
83662
 
    cat >>Makefile.objects<<EOF
83663
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83664
 
        $ac_comp
83665
 
EOF
83666
 
  done
83667
 
 
83668
 
 
83669
 
        EXT_STATIC="$EXT_STATIC oci8"
83670
 
        ;;
83671
 
      *)
83672
 
        
83673
 
  
83674
 
  case ext/oci8 in
83675
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83676
 
  /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83677
 
  *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83678
 
  esac
83679
 
  
83680
 
  
83681
 
 
83682
 
  b_c_pre=$php_c_pre
83683
 
  b_cxx_pre=$php_cxx_pre
83684
 
  b_c_meta=$php_c_meta
83685
 
  b_cxx_meta=$php_cxx_meta
83686
 
  b_c_post=$php_c_post
83687
 
  b_cxx_post=$php_cxx_post
83688
 
  b_lo=$php_lo
83689
 
 
83690
 
 
83691
 
  old_IFS=$IFS
83692
 
  for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
83693
 
  
83694
 
      IFS=.
83695
 
      set $ac_src
83696
 
      ac_obj=$1
83697
 
      IFS=$old_IFS
83698
 
      
83699
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
83700
 
 
83701
 
      case $ac_src in
83702
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83703
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83704
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83705
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83706
 
      esac
83707
 
 
83708
 
    cat >>Makefile.objects<<EOF
83709
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83710
 
        $ac_comp
83711
 
EOF
83712
 
  done
83713
 
 
83714
 
 
83715
 
        ;;
83716
 
    esac
83717
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
83718
 
  fi
83719
 
  
83720
 
  
83721
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
83722
 
  
83723
 
 
83724
 
 
83725
 
  if test "$ext_builddir" = "."; then
83726
 
    PHP_PECL_EXTENSION=oci8
83727
 
    
83728
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
83729
 
 
83730
 
  fi
83731
 
 
83732
 
    
83733
 
cat >>confdefs.h <<\_ACEOF
83734
 
@%:@define HAVE_OCI8 1
83735
 
_ACEOF
83736
 
 
83737
 
 
83738
 
    
83739
 
  
83740
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
83741
 
 
83742
 
  
83743
 
 
83744
 
    
83745
 
  
83746
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
83747
 
 
83748
 
  
83749
 
 
83750
 
    
83751
 
  
83752
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
83753
 
 
83754
 
  
83755
 
 
83756
 
 
83757
 
  fi
83758
 
fi
83759
 
 
83760
 
 
83761
 
 
83762
 
 
83763
 
 
83764
 
 
83765
 
 
83766
 
 
83767
 
 
83768
 
 
83769
 
 
83770
 
 
83771
 
if test -z "$ODBC_TYPE"; then
83772
 
 
83773
 
php_with_adabas=no
83774
 
 
83775
 
 
83776
 
 
83777
 
@%:@ Check whether --with-adabas was given.
83778
 
if test "${with_adabas+set}" = set; then
83779
 
  withval=$with_adabas; PHP_ADABAS=$withval
83780
 
else
83781
 
  
83782
 
  PHP_ADABAS=no
83783
 
  test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL
83784
 
 
83785
 
fi
83786
 
 
83787
 
 
83788
 
 
83789
 
ext_output="yes, shared"
83790
 
ext_shared=yes
83791
 
case $PHP_ADABAS in
83792
 
shared,*)
83793
 
  PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'`
83794
 
  ;;
83795
 
shared)
83796
 
  PHP_ADABAS=yes
83797
 
  ;;
83798
 
no)
83799
 
  ext_output=no
83800
 
  ext_shared=no
83801
 
  ;;
83802
 
*)
83803
 
  ext_output=yes
83804
 
  ext_shared=no
83805
 
  ;;
83806
 
esac
83807
 
 
83808
 
 
83809
 
 
83810
 
 
83811
 
 
83812
 
 
83813
 
 
83814
 
 
83815
 
  if test "$PHP_ADABAS" != "no"; then
83816
 
    { $as_echo "$as_me:$LINENO: checking for Adabas support" >&5
83817
 
$as_echo_n "checking for Adabas support... " >&6; }
83818
 
    if test "$PHP_ADABAS" = "yes"; then
83819
 
      PHP_ADABAS=/usr/local
83820
 
    fi
83821
 
    
83822
 
  if test "$PHP_ADABAS/incl" != "/usr/include"; then
83823
 
    
83824
 
  if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then
83825
 
    ai_p=$PHP_ADABAS/incl
83826
 
  else
83827
 
    
83828
 
    ep_dir="`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'`"
83829
 
    
83830
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83831
 
    ai_p="$ep_realdir/`basename \"$PHP_ADABAS/incl\"`"
83832
 
  fi
83833
 
 
83834
 
    
83835
 
  
83836
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83837
 
  
83838
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
83839
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
83840
 
    eval "INCLUDEPATH$unique=set"
83841
 
    
83842
 
      if test ""; then
83843
 
        INCLUDES="-I$ai_p $INCLUDES"
83844
 
      else
83845
 
        INCLUDES="$INCLUDES -I$ai_p"
83846
 
      fi
83847
 
    
83848
 
  fi
83849
 
 
83850
 
  fi
83851
 
 
83852
 
    
83853
 
  if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then
83854
 
    
83855
 
  if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
83856
 
    ai_p=$PHP_ADABAS/$PHP_LIBDIR
83857
 
  else
83858
 
    
83859
 
    ep_dir="`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
83860
 
    
83861
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83862
 
    ai_p="$ep_realdir/`basename \"$PHP_ADABAS/$PHP_LIBDIR\"`"
83863
 
  fi
83864
 
 
83865
 
    
83866
 
      
83867
 
  
83868
 
  
83869
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83870
 
  
83871
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
83872
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
83873
 
    eval "LIBPATH$unique=set"
83874
 
    
83875
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83876
 
    LDFLAGS="$LDFLAGS -L$ai_p"
83877
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
83878
 
  
83879
 
  fi
83880
 
 
83881
 
 
83882
 
    
83883
 
  fi
83884
 
 
83885
 
    ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a"
83886
 
    ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a"
83887
 
    $srcdir/build/shtool mkdir -f -p ext/odbc
83888
 
    rm -f "$ODBC_LIB"
83889
 
    cp "$ODBC_OBJS" "$ODBC_LIB"
83890
 
    
83891
 
  
83892
 
  case sqlptc in
83893
 
  c|c_r|pthread*) ;;
83894
 
  *) 
83895
 
      LIBS="-lsqlptc $LIBS" 
83896
 
   ;;
83897
 
  esac
83898
 
 
83899
 
 
83900
 
    
83901
 
  
83902
 
  case sqlrte in
83903
 
  c|c_r|pthread*) ;;
83904
 
  *) 
83905
 
      LIBS="-lsqlrte $LIBS" 
83906
 
   ;;
83907
 
  esac
83908
 
 
83909
 
 
83910
 
    
83911
 
 
83912
 
  if test -n "$abs_builddir/ext/odbc"; then
83913
 
    
83914
 
  if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then
83915
 
    
83916
 
  if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then
83917
 
    ai_p=$abs_builddir/ext/odbc
83918
 
  else
83919
 
    
83920
 
    ep_dir="`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'`"
83921
 
    
83922
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83923
 
    ai_p="$ep_realdir/`basename \"$abs_builddir/ext/odbc\"`"
83924
 
  fi
83925
 
 
83926
 
    
83927
 
      
83928
 
  
83929
 
  
83930
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83931
 
  
83932
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
83933
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
83934
 
    eval "LIBPATH$unique=set"
83935
 
    
83936
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83937
 
    LDFLAGS="$LDFLAGS -L$ai_p"
83938
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
83939
 
  
83940
 
  fi
83941
 
 
83942
 
 
83943
 
    
83944
 
  fi
83945
 
 
83946
 
  fi
83947
 
  
83948
 
  
83949
 
  case odbc_adabas in
83950
 
  c|c_r|pthread*) ;;
83951
 
  *) 
83952
 
      LIBS="-lodbc_adabas $LIBS" 
83953
 
   ;;
83954
 
  esac
83955
 
 
83956
 
 
83957
 
 
83958
 
 
83959
 
    ODBC_TYPE=adabas
83960
 
    ODBC_INCDIR=$PHP_ADABAS/incl
83961
 
    
83962
 
if ! test -f "$ODBC_INCDIR/sqlext.h"; then
83963
 
  { { $as_echo "$as_me:$LINENO: error: ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" >&5
83964
 
$as_echo "$as_me: error: ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" >&2;}
83965
 
   { (exit 1); exit 1; }; }
83966
 
fi
83967
 
 
83968
 
    
83969
 
cat >>confdefs.h <<\_ACEOF
83970
 
@%:@define HAVE_ADABAS 1
83971
 
_ACEOF
83972
 
 
83973
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
83974
 
$as_echo "$ext_output" >&6; }
83975
 
  fi
83976
 
fi
83977
 
 
83978
 
if test -z "$ODBC_TYPE"; then
83979
 
 
83980
 
php_with_sapdb=no
83981
 
 
83982
 
 
83983
 
 
83984
 
@%:@ Check whether --with-sapdb was given.
83985
 
if test "${with_sapdb+set}" = set; then
83986
 
  withval=$with_sapdb; PHP_SAPDB=$withval
83987
 
else
83988
 
  
83989
 
  PHP_SAPDB=no
83990
 
  test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL
83991
 
 
83992
 
fi
83993
 
 
83994
 
 
83995
 
 
83996
 
ext_output="yes, shared"
83997
 
ext_shared=yes
83998
 
case $PHP_SAPDB in
83999
 
shared,*)
84000
 
  PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'`
84001
 
  ;;
84002
 
shared)
84003
 
  PHP_SAPDB=yes
84004
 
  ;;
84005
 
no)
84006
 
  ext_output=no
84007
 
  ext_shared=no
84008
 
  ;;
84009
 
*)
84010
 
  ext_output=yes
84011
 
  ext_shared=no
84012
 
  ;;
84013
 
esac
84014
 
 
84015
 
 
84016
 
 
84017
 
 
84018
 
 
84019
 
 
84020
 
 
84021
 
 
84022
 
  if test "$PHP_SAPDB" != "no"; then
84023
 
    { $as_echo "$as_me:$LINENO: checking for SAP DB support" >&5
84024
 
$as_echo_n "checking for SAP DB support... " >&6; }
84025
 
    if test "$PHP_SAPDB" = "yes"; then
84026
 
      PHP_SAPDB=/usr/local
84027
 
    fi
84028
 
    
84029
 
  if test "$PHP_SAPDB/incl" != "/usr/include"; then
84030
 
    
84031
 
  if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then
84032
 
    ai_p=$PHP_SAPDB/incl
84033
 
  else
84034
 
    
84035
 
    ep_dir="`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'`"
84036
 
    
84037
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84038
 
    ai_p="$ep_realdir/`basename \"$PHP_SAPDB/incl\"`"
84039
 
  fi
84040
 
 
84041
 
    
84042
 
  
84043
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84044
 
  
84045
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
84046
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
84047
 
    eval "INCLUDEPATH$unique=set"
84048
 
    
84049
 
      if test ""; then
84050
 
        INCLUDES="-I$ai_p $INCLUDES"
84051
 
      else
84052
 
        INCLUDES="$INCLUDES -I$ai_p"
84053
 
      fi
84054
 
    
84055
 
  fi
84056
 
 
84057
 
  fi
84058
 
 
84059
 
    
84060
 
  if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then
84061
 
    
84062
 
  if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
84063
 
    ai_p=$PHP_SAPDB/$PHP_LIBDIR
84064
 
  else
84065
 
    
84066
 
    ep_dir="`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
84067
 
    
84068
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84069
 
    ai_p="$ep_realdir/`basename \"$PHP_SAPDB/$PHP_LIBDIR\"`"
84070
 
  fi
84071
 
 
84072
 
    
84073
 
      
84074
 
  
84075
 
  
84076
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84077
 
  
84078
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84079
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
84080
 
    eval "LIBPATH$unique=set"
84081
 
    
84082
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84083
 
    LDFLAGS="$LDFLAGS -L$ai_p"
84084
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
84085
 
  
84086
 
  fi
84087
 
 
84088
 
 
84089
 
    
84090
 
  fi
84091
 
 
84092
 
    
84093
 
  
84094
 
  case sqlod in
84095
 
  c|c_r|pthread*) ;;
84096
 
  *) 
84097
 
      LIBS="-lsqlod $LIBS" 
84098
 
   ;;
84099
 
  esac
84100
 
 
84101
 
 
84102
 
    ODBC_TYPE=sapdb
84103
 
    
84104
 
cat >>confdefs.h <<\_ACEOF
84105
 
@%:@define HAVE_SAPDB 1
84106
 
_ACEOF
84107
 
 
84108
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
84109
 
$as_echo "$ext_output" >&6; }
84110
 
  fi
84111
 
fi
84112
 
 
84113
 
if test -z "$ODBC_TYPE"; then
84114
 
 
84115
 
php_with_solid=no
84116
 
 
84117
 
 
84118
 
 
84119
 
@%:@ Check whether --with-solid was given.
84120
 
if test "${with_solid+set}" = set; then
84121
 
  withval=$with_solid; PHP_SOLID=$withval
84122
 
else
84123
 
  
84124
 
  PHP_SOLID=no
84125
 
  test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL
84126
 
 
84127
 
fi
84128
 
 
84129
 
 
84130
 
 
84131
 
ext_output="yes, shared"
84132
 
ext_shared=yes
84133
 
case $PHP_SOLID in
84134
 
shared,*)
84135
 
  PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'`
84136
 
  ;;
84137
 
shared)
84138
 
  PHP_SOLID=yes
84139
 
  ;;
84140
 
no)
84141
 
  ext_output=no
84142
 
  ext_shared=no
84143
 
  ;;
84144
 
*)
84145
 
  ext_output=yes
84146
 
  ext_shared=no
84147
 
  ;;
84148
 
esac
84149
 
 
84150
 
 
84151
 
 
84152
 
 
84153
 
 
84154
 
 
84155
 
 
84156
 
 
84157
 
  if test "$PHP_SOLID" != "no"; then
84158
 
    { $as_echo "$as_me:$LINENO: checking for Solid support" >&5
84159
 
$as_echo_n "checking for Solid support... " >&6; }
84160
 
    if test "$PHP_SOLID" = "yes"; then
84161
 
      PHP_SOLID=/usr/local/solid
84162
 
    fi
84163
 
    ODBC_INCDIR=$PHP_SOLID/include
84164
 
    ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR
84165
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
84166
 
    ODBC_TYPE=solid
84167
 
    if test -f $ODBC_LIBDIR/soc*35.a; then
84168
 
      
84169
 
cat >>confdefs.h <<\_ACEOF
84170
 
@%:@define HAVE_SOLID_35 1
84171
 
_ACEOF
84172
 
 
84173
 
    elif test -f $ODBC_LIBDIR/scl*30.a; then
84174
 
      
84175
 
cat >>confdefs.h <<\_ACEOF
84176
 
@%:@define HAVE_SOLID_30 1
84177
 
_ACEOF
84178
 
 
84179
 
    elif test -f $ODBC_LIBDIR/scl*23.a; then
84180
 
      
84181
 
cat >>confdefs.h <<\_ACEOF
84182
 
@%:@define HAVE_SOLID 1
84183
 
_ACEOF
84184
 
 
84185
 
    fi
84186
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
84187
 
$as_echo "$ext_output" >&6; }
84188
 
    
84189
 
  { $as_echo "$as_me:$LINENO: checking Solid library file" >&5
84190
 
$as_echo_n "checking Solid library file... " >&6; }  
84191
 
  ac_solid_uname_r=`uname -r 2>/dev/null`
84192
 
  ac_solid_uname_s=`uname -s 2>/dev/null`
84193
 
  case $ac_solid_uname_s in
84194
 
    AIX) ac_solid_os=a3x;;   # a4x for AIX4/ Solid 2.3/3.0 only
84195
 
    HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10
84196
 
    IRIX) ac_solid_os=irx;;  # Solid 2.3(?)/ 3.0 only
84197
 
    Linux) 
84198
 
      if ldd -v /bin/sh | grep GLIBC > /dev/null; then
84199
 
        
84200
 
cat >>confdefs.h <<\_ACEOF
84201
 
@%:@define SS_LINUX 1
84202
 
_ACEOF
84203
 
 
84204
 
        ac_solid_os=l2x
84205
 
      else
84206
 
        
84207
 
cat >>confdefs.h <<\_ACEOF
84208
 
@%:@define SS_LINUX 1
84209
 
_ACEOF
84210
 
 
84211
 
        ac_solid_os=lux
84212
 
      fi;; 
84213
 
    SunOS) 
84214
 
      ac_solid_os=ssx;; # should we deal with SunOS 4?
84215
 
    FreeBSD) 
84216
 
      if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then
84217
 
        
84218
 
cat >>confdefs.h <<\_ACEOF
84219
 
@%:@define SS_FBX 1
84220
 
_ACEOF
84221
 
 
84222
 
        ac_solid_os=fex
84223
 
      else 
84224
 
        
84225
 
cat >>confdefs.h <<\_ACEOF
84226
 
@%:@define SS_FBX 1
84227
 
_ACEOF
84228
 
 
84229
 
        ac_solid_os=fbx
84230
 
      fi;;
84231
 
  esac
84232
 
 
84233
 
  if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then
84234
 
    ac_solid_version=35
84235
 
    ac_solid_prefix=soc
84236
 
  elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then
84237
 
    ac_solid_version=30
84238
 
    ac_solid_prefix=scl
84239
 
  elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then
84240
 
    ac_solid_version=23
84241
 
    ac_solid_prefix=scl
84242
 
  fi
84243
 
 
84244
 
#
84245
 
# Check for the library files, and setup the ODBC_LIBS path...
84246
 
#
84247
 
if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \
84248
 
  ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then
84249
 
  #
84250
 
  # we have an error and should bail out, as we can't find the libs!
84251
 
  #
84252
 
  echo ""
84253
 
  echo "*********************************************************************"
84254
 
  echo "* Unable to locate $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so or $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a"
84255
 
  echo "* Please correct this by creating the following links and reconfiguring:"
84256
 
  echo "* $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a"
84257
 
  echo "* $ODBC_LIBDIR/${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so"
84258
 
  echo "*********************************************************************"
84259
 
else
84260
 
  ODBC_LFLAGS=-L$ODBC_LIBDIR
84261
 
  ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version}
84262
 
fi
84263
 
 
84264
 
  { $as_echo "$as_me:$LINENO: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
84265
 
$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
84266
 
 
84267
 
  fi
84268
 
fi
84269
 
 
84270
 
if test -z "$ODBC_TYPE"; then
84271
 
 
84272
 
php_with_ibm_db2=no
84273
 
 
84274
 
 
84275
 
 
84276
 
@%:@ Check whether --with-ibm-db2 was given.
84277
 
if test "${with_ibm_db2+set}" = set; then
84278
 
  withval=$with_ibm_db2; PHP_IBM_DB2=$withval
84279
 
else
84280
 
  
84281
 
  PHP_IBM_DB2=no
84282
 
  test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL
84283
 
 
84284
 
fi
84285
 
 
84286
 
 
84287
 
 
84288
 
ext_output="yes, shared"
84289
 
ext_shared=yes
84290
 
case $PHP_IBM_DB2 in
84291
 
shared,*)
84292
 
  PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'`
84293
 
  ;;
84294
 
shared)
84295
 
  PHP_IBM_DB2=yes
84296
 
  ;;
84297
 
no)
84298
 
  ext_output=no
84299
 
  ext_shared=no
84300
 
  ;;
84301
 
*)
84302
 
  ext_output=yes
84303
 
  ext_shared=no
84304
 
  ;;
84305
 
esac
84306
 
 
84307
 
 
84308
 
 
84309
 
 
84310
 
 
84311
 
 
84312
 
 
84313
 
 
84314
 
  if test "$PHP_IBM_DB2" != "no"; then
84315
 
    { $as_echo "$as_me:$LINENO: checking for IBM DB2 support" >&5
84316
 
$as_echo_n "checking for IBM DB2 support... " >&6; }
84317
 
    if test "$PHP_IBM_DB2" = "yes"; then
84318
 
      ODBC_INCDIR=/home/db2inst1/sqllib/include
84319
 
      ODBC_LIBDIR=/home/db2inst1/sqllib/lib
84320
 
    else
84321
 
      ODBC_INCDIR=$PHP_IBM_DB2/include
84322
 
      ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR
84323
 
    fi
84324
 
 
84325
 
    
84326
 
if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then
84327
 
  { { $as_echo "$as_me:$LINENO: error: ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" >&5
84328
 
$as_echo "$as_me: error: ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" >&2;}
84329
 
   { (exit 1); exit 1; }; }
84330
 
fi
84331
 
 
84332
 
 
84333
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
84334
 
    ODBC_LFLAGS=-L$ODBC_LIBDIR
84335
 
    ODBC_TYPE=ibm-db2
84336
 
    ODBC_LIBS=-ldb2
84337
 
 
84338
 
    
84339
 
  old_LIBS=$LIBS
84340
 
  LIBS="
84341
 
      $ODBC_LFLAGS $ODBC_LIBS
84342
 
     $LIBS"
84343
 
  if test "$cross_compiling" = yes; then
84344
 
  
84345
 
    LIBS=$old_LIBS
84346
 
  
84347
 
else
84348
 
  cat >conftest.$ac_ext <<_ACEOF
84349
 
/* confdefs.h.  */
84350
 
_ACEOF
84351
 
cat confdefs.h >>conftest.$ac_ext
84352
 
cat >>conftest.$ac_ext <<_ACEOF
84353
 
/* end confdefs.h.  */
84354
 
 
84355
 
    
84356
 
    char SQLExecute();
84357
 
    int main() {
84358
 
      SQLExecute();
84359
 
      return 0;
84360
 
    }
84361
 
  
84362
 
_ACEOF
84363
 
rm -f conftest$ac_exeext
84364
 
if { (ac_try="$ac_link"
84365
 
case "(($ac_try" in
84366
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84367
 
  *) ac_try_echo=$ac_try;;
84368
 
esac
84369
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
84370
 
$as_echo "$ac_try_echo") >&5
84371
 
  (eval "$ac_link") 2>&5
84372
 
  ac_status=$?
84373
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
84374
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
84375
 
  { (case "(($ac_try" in
84376
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84377
 
  *) ac_try_echo=$ac_try;;
84378
 
esac
84379
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
84380
 
$as_echo "$ac_try_echo") >&5
84381
 
  (eval "$ac_try") 2>&5
84382
 
  ac_status=$?
84383
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
84384
 
  (exit $ac_status); }; }; then
84385
 
  
84386
 
    LIBS=$old_LIBS
84387
 
    
84388
 
      
84389
 
cat >>confdefs.h <<\_ACEOF
84390
 
@%:@define HAVE_IBMDB2 1
84391
 
_ACEOF
84392
 
 
84393
 
      { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
84394
 
$as_echo "$ext_output" >&6; }
84395
 
    
84396
 
  
84397
 
else
84398
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
84399
 
$as_echo "$as_me: failed program was:" >&5
84400
 
sed 's/^/| /' conftest.$ac_ext >&5
84401
 
 
84402
 
( exit $ac_status )
84403
 
 
84404
 
    LIBS=$old_LIBS
84405
 
    
84406
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
84407
 
$as_echo "no" >&6; }
84408
 
      { { $as_echo "$as_me:$LINENO: error: 
84409
 
build test failed. Please check the config.log for details.
84410
 
You need to source your DB2 environment before running PHP configure:
84411
 
# . \$IBM_DB2/db2profile
84412
 
" >&5
84413
 
$as_echo "$as_me: error: 
84414
 
build test failed. Please check the config.log for details.
84415
 
You need to source your DB2 environment before running PHP configure:
84416
 
# . \$IBM_DB2/db2profile
84417
 
" >&2;}
84418
 
   { (exit 1); exit 1; }; }
84419
 
    
84420
 
  
84421
 
fi
84422
 
rm -rf conftest.dSYM
84423
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
84424
 
fi
84425
 
 
84426
 
 
84427
 
 
84428
 
  fi
84429
 
fi
84430
 
 
84431
 
if test -z "$ODBC_TYPE"; then
84432
 
 
84433
 
php_with_odbcrouter=no
84434
 
 
84435
 
 
84436
 
 
84437
 
@%:@ Check whether --with-ODBCRouter was given.
84438
 
if test "${with_ODBCRouter+set}" = set; then
84439
 
  withval=$with_ODBCRouter; PHP_ODBCROUTER=$withval
84440
 
else
84441
 
  
84442
 
  PHP_ODBCROUTER=no
84443
 
  test "$PHP_ENABLE_ALL" && PHP_ODBCROUTER=$PHP_ENABLE_ALL
84444
 
 
84445
 
fi
84446
 
 
84447
 
 
84448
 
 
84449
 
ext_output="yes, shared"
84450
 
ext_shared=yes
84451
 
case $PHP_ODBCROUTER in
84452
 
shared,*)
84453
 
  PHP_ODBCROUTER=`echo "$PHP_ODBCROUTER"|$SED 's/^shared,//'`
84454
 
  ;;
84455
 
shared)
84456
 
  PHP_ODBCROUTER=yes
84457
 
  ;;
84458
 
no)
84459
 
  ext_output=no
84460
 
  ext_shared=no
84461
 
  ;;
84462
 
*)
84463
 
  ext_output=yes
84464
 
  ext_shared=no
84465
 
  ;;
84466
 
esac
84467
 
 
84468
 
 
84469
 
 
84470
 
 
84471
 
 
84472
 
 
84473
 
 
84474
 
 
84475
 
  if test "$PHP_ODBCROUTER" != "no"; then
84476
 
    { $as_echo "$as_me:$LINENO: checking for ODBCRouter.com support" >&5
84477
 
$as_echo_n "checking for ODBCRouter.com support... " >&6; }
84478
 
    if test "$PHP_ODBCROUTER" = "yes"; then
84479
 
      PHP_ODBCROUTER=/usr
84480
 
    fi
84481
 
    ODBC_INCDIR=$PHP_ODBCROUTER/include
84482
 
    ODBC_LIBDIR=$PHP_ODBCROUTER/lib
84483
 
    ODBC_LFLAGS=-L$ODBC_LIBDIR
84484
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
84485
 
    ODBC_LIBS=-lodbcsdk
84486
 
    ODBC_TYPE=ODBCRouter
84487
 
    
84488
 
cat >>confdefs.h <<\_ACEOF
84489
 
@%:@define HAVE_ODBC_ROUTER 1
84490
 
_ACEOF
84491
 
 
84492
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
84493
 
$as_echo "$ext_output" >&6; }
84494
 
  fi
84495
 
fi
84496
 
 
84497
 
if test -z "$ODBC_TYPE"; then
84498
 
 
84499
 
php_with_empress=no
84500
 
 
84501
 
 
84502
 
 
84503
 
@%:@ Check whether --with-empress was given.
84504
 
if test "${with_empress+set}" = set; then
84505
 
  withval=$with_empress; PHP_EMPRESS=$withval
84506
 
else
84507
 
  
84508
 
  PHP_EMPRESS=no
84509
 
  test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL
84510
 
 
84511
 
fi
84512
 
 
84513
 
 
84514
 
 
84515
 
ext_output="yes, shared"
84516
 
ext_shared=yes
84517
 
case $PHP_EMPRESS in
84518
 
shared,*)
84519
 
  PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'`
84520
 
  ;;
84521
 
shared)
84522
 
  PHP_EMPRESS=yes
84523
 
  ;;
84524
 
no)
84525
 
  ext_output=no
84526
 
  ext_shared=no
84527
 
  ;;
84528
 
*)
84529
 
  ext_output=yes
84530
 
  ext_shared=no
84531
 
  ;;
84532
 
esac
84533
 
 
84534
 
 
84535
 
 
84536
 
 
84537
 
 
84538
 
 
84539
 
 
84540
 
 
84541
 
  if test "$PHP_EMPRESS" != "no"; then
84542
 
    { $as_echo "$as_me:$LINENO: checking for Empress support" >&5
84543
 
$as_echo_n "checking for Empress support... " >&6; }
84544
 
    if test "$PHP_EMPRESS" = "yes"; then
84545
 
      ODBC_INCDIR=$EMPRESSPATH/include/odbc
84546
 
      ODBC_LIBDIR=$EMPRESSPATH/shlib
84547
 
    else
84548
 
      ODBC_INCDIR=$PHP_EMPRESS/include/odbc
84549
 
      ODBC_LIBDIR=$PHP_EMPRESS/shlib
84550
 
    fi
84551
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
84552
 
    ODBC_LFLAGS=-L$ODBC_LIBDIR
84553
 
    ODBC_TYPE=empress
84554
 
    
84555
 
cat >>confdefs.h <<\_ACEOF
84556
 
@%:@define HAVE_EMPRESS 1
84557
 
_ACEOF
84558
 
 
84559
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
84560
 
$as_echo "$ext_output" >&6; }
84561
 
    
84562
 
  { $as_echo "$as_me:$LINENO: checking Empress library file" >&5
84563
 
$as_echo_n "checking Empress library file... " >&6; }
84564
 
  ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
84565
 
  if test ! -f $ODBC_LIBS; then
84566
 
    ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
84567
 
  fi
84568
 
  { $as_echo "$as_me:$LINENO: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
84569
 
$as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
84570
 
 
84571
 
  fi
84572
 
fi
84573
 
 
84574
 
if test -z "$ODBC_TYPE"; then
84575
 
 
84576
 
php_with_empress_bcs=no
84577
 
 
84578
 
 
84579
 
 
84580
 
@%:@ Check whether --with-empress-bcs was given.
84581
 
if test "${with_empress_bcs+set}" = set; then
84582
 
  withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval
84583
 
else
84584
 
  
84585
 
  PHP_EMPRESS_BCS=no
84586
 
  test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL
84587
 
 
84588
 
fi
84589
 
 
84590
 
 
84591
 
 
84592
 
ext_output="yes, shared"
84593
 
ext_shared=yes
84594
 
case $PHP_EMPRESS_BCS in
84595
 
shared,*)
84596
 
  PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'`
84597
 
  ;;
84598
 
shared)
84599
 
  PHP_EMPRESS_BCS=yes
84600
 
  ;;
84601
 
no)
84602
 
  ext_output=no
84603
 
  ext_shared=no
84604
 
  ;;
84605
 
*)
84606
 
  ext_output=yes
84607
 
  ext_shared=no
84608
 
  ;;
84609
 
esac
84610
 
 
84611
 
 
84612
 
 
84613
 
 
84614
 
 
84615
 
 
84616
 
 
84617
 
 
84618
 
  if test "$PHP_EMPRESS_BCS" != "no"; then
84619
 
    { $as_echo "$as_me:$LINENO: checking for Empress local access support" >&5
84620
 
$as_echo_n "checking for Empress local access support... " >&6; }
84621
 
    if test "$PHP_EMPRESS_BCS" = "yes"; then
84622
 
      ODBC_INCDIR=$EMPRESSPATH/include/odbc
84623
 
      ODBC_LIBDIR=$EMPRESSPATH/shlib
84624
 
    else
84625
 
      ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc
84626
 
      ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib
84627
 
    fi
84628
 
    CC="empocc -bcs";export CC;
84629
 
    LD="empocc -bcs";export LD;
84630
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
84631
 
    ODBC_LFLAGS=-L$ODBC_LIBDIR
84632
 
    LIST=`empocc -listlines -bcs -o a a.c`
84633
 
 
84634
 
    NEWLIST=
84635
 
    for I in $LIST
84636
 
    do
84637
 
      case $I in
84638
 
        $EMPRESSPATH/odbccl/lib/* | \
84639
 
        $EMPRESSPATH/rdbms/lib/* | \
84640
 
        $EMPRESSPATH/common/lib/*)
84641
 
              NEWLIST="$NEWLIST $I"
84642
 
              ;;
84643
 
      esac
84644
 
    done
84645
 
    ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt"
84646
 
    ODBC_TYPE=empress-bcs
84647
 
    
84648
 
cat >>confdefs.h <<\_ACEOF
84649
 
@%:@define HAVE_EMPRESS 1
84650
 
_ACEOF
84651
 
 
84652
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
84653
 
$as_echo "$ext_output" >&6; }
84654
 
    
84655
 
  { $as_echo "$as_me:$LINENO: checking Empress local access library file" >&5
84656
 
$as_echo_n "checking Empress local access library file... " >&6; }
84657
 
  ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
84658
 
  if test ! -f $ODBCBCS_LIBS; then
84659
 
    ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
84660
 
  fi
84661
 
  { $as_echo "$as_me:$LINENO: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5
84662
 
$as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; }
84663
 
 
84664
 
  fi
84665
 
fi
84666
 
 
84667
 
if test -z "$ODBC_TYPE"; then
84668
 
 
84669
 
php_with_birdstep=no
84670
 
 
84671
 
 
84672
 
 
84673
 
@%:@ Check whether --with-birdstep was given.
84674
 
if test "${with_birdstep+set}" = set; then
84675
 
  withval=$with_birdstep; PHP_BIRDSTEP=$withval
84676
 
else
84677
 
  
84678
 
  PHP_BIRDSTEP=no
84679
 
  test "$PHP_ENABLE_ALL" && PHP_BIRDSTEP=$PHP_ENABLE_ALL
84680
 
 
84681
 
fi
84682
 
 
84683
 
 
84684
 
 
84685
 
ext_output="yes, shared"
84686
 
ext_shared=yes
84687
 
case $PHP_BIRDSTEP in
84688
 
shared,*)
84689
 
  PHP_BIRDSTEP=`echo "$PHP_BIRDSTEP"|$SED 's/^shared,//'`
84690
 
  ;;
84691
 
shared)
84692
 
  PHP_BIRDSTEP=yes
84693
 
  ;;
84694
 
no)
84695
 
  ext_output=no
84696
 
  ext_shared=no
84697
 
  ;;
84698
 
*)
84699
 
  ext_output=yes
84700
 
  ext_shared=no
84701
 
  ;;
84702
 
esac
84703
 
 
84704
 
 
84705
 
 
84706
 
 
84707
 
 
84708
 
 
84709
 
 
84710
 
  
84711
 
  if test "$PHP_BIRDSTEP" != "no"; then
84712
 
    { $as_echo "$as_me:$LINENO: checking for Birdstep support" >&5
84713
 
$as_echo_n "checking for Birdstep support... " >&6; }
84714
 
    if test "$PHP_BIRDSTEP" = "yes"; then
84715
 
        ODBC_INCDIR=/usr/local/birdstep/include
84716
 
        ODBC_LIBDIR=/usr/local/birdstep/lib
84717
 
    else
84718
 
        ODBC_INCDIR=$PHP_BIRDSTEP/include
84719
 
        ODBC_LIBDIR=$PHP_BIRDSTEP/$PHP_LIBDIR
84720
 
    fi
84721
 
   
84722
 
    case $host_alias in
84723
 
      *aix*)
84724
 
        
84725
 
cat >>confdefs.h <<\_ACEOF
84726
 
@%:@define AIX 1
84727
 
_ACEOF
84728
 
;;
84729
 
      *hpux*)
84730
 
        
84731
 
cat >>confdefs.h <<\_ACEOF
84732
 
@%:@define HPUX 1
84733
 
_ACEOF
84734
 
;;
84735
 
      *linux*)
84736
 
        
84737
 
cat >>confdefs.h <<\_ACEOF
84738
 
@%:@define LINUX 1
84739
 
_ACEOF
84740
 
;;
84741
 
      *qnx*)
84742
 
        
84743
 
cat >>confdefs.h <<\_ACEOF
84744
 
@%:@define NEUTRINO 1
84745
 
_ACEOF
84746
 
;;
84747
 
      i?86-*-solaris*)
84748
 
        
84749
 
cat >>confdefs.h <<\_ACEOF
84750
 
@%:@define ISOLARIS 1
84751
 
_ACEOF
84752
 
;;
84753
 
      sparc-*-solaris*)
84754
 
        
84755
 
cat >>confdefs.h <<\_ACEOF
84756
 
@%:@define SOLARIS 1
84757
 
_ACEOF
84758
 
;;
84759
 
      *unixware*)
84760
 
        
84761
 
cat >>confdefs.h <<\_ACEOF
84762
 
@%:@define UNIXWARE 1
84763
 
_ACEOF
84764
 
;;
84765
 
    esac
84766
 
 
84767
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
84768
 
    ODBC_TYPE=birdstep
84769
 
    ODBC_LFLAGS=-L$ODBC_LIBDIR
84770
 
    ODBC_LIBS="-lCadm -lCdict -lCenc -lCrdm -lCrpc -lCrdbc -lCrm -lCuapi -lutil"
84771
 
 
84772
 
    if test -f "$ODBC_LIBDIR/libCrdbc32.$SHLIB_SUFFIX_NAME"; then
84773
 
      ODBC_LIBS="-lCrdbc32 -lCadm32 -lCncp32 -lCrm32 -lCsql32 -lCdict32 -lCrdm32 -lCrpc32 -lutil"
84774
 
    elif test -f "$ODBC_LIBDIR/libCrdbc.$SHLIB_SUFFIX_NAME"; then
84775
 
      ODBC_LIBS="-lCrdbc -lCadm -lCncp -lCrm -lCsql -lCdict -lCrdm -lCrpc -lutil"
84776
 
    fi
84777
 
 
84778
 
    
84779
 
cat >>confdefs.h <<\_ACEOF
84780
 
@%:@define HAVE_BIRDSTEP 1
84781
 
_ACEOF
84782
 
 
84783
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
84784
 
$as_echo "$ext_output" >&6; }
84785
 
  fi
84786
 
fi
84787
 
 
84788
 
if test -z "$ODBC_TYPE"; then
84789
 
 
84790
 
php_with_custom_odbc=no
84791
 
 
84792
 
 
84793
 
 
84794
 
@%:@ Check whether --with-custom-odbc was given.
84795
 
if test "${with_custom_odbc+set}" = set; then
84796
 
  withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval
84797
 
else
84798
 
  
84799
 
  PHP_CUSTOM_ODBC=no
84800
 
  test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL
84801
 
 
84802
 
fi
84803
 
 
84804
 
 
84805
 
 
84806
 
ext_output="yes, shared"
84807
 
ext_shared=yes
84808
 
case $PHP_CUSTOM_ODBC in
84809
 
shared,*)
84810
 
  PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'`
84811
 
  ;;
84812
 
shared)
84813
 
  PHP_CUSTOM_ODBC=yes
84814
 
  ;;
84815
 
no)
84816
 
  ext_output=no
84817
 
  ext_shared=no
84818
 
  ;;
84819
 
*)
84820
 
  ext_output=yes
84821
 
  ext_shared=no
84822
 
  ;;
84823
 
esac
84824
 
 
84825
 
 
84826
 
 
84827
 
 
84828
 
 
84829
 
 
84830
 
 
84831
 
 
84832
 
  if test "$PHP_CUSTOM_ODBC" != "no"; then
84833
 
    { $as_echo "$as_me:$LINENO: checking for a custom ODBC support" >&5
84834
 
$as_echo_n "checking for a custom ODBC support... " >&6; }
84835
 
    if test "$PHP_CUSTOM_ODBC" = "yes"; then
84836
 
      PHP_CUSTOM_ODBC=/usr/local
84837
 
    fi
84838
 
    ODBC_INCDIR=$PHP_CUSTOM_ODBC/include
84839
 
    ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR
84840
 
    ODBC_LFLAGS=-L$ODBC_LIBDIR
84841
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
84842
 
    ODBC_LIBS=$CUSTOM_ODBC_LIBS
84843
 
    ODBC_TYPE=custom-odbc
84844
 
    
84845
 
cat >>confdefs.h <<\_ACEOF
84846
 
@%:@define HAVE_CODBC 1
84847
 
_ACEOF
84848
 
 
84849
 
    { $as_echo "$as_me:$LINENO: result: $ext_ouput" >&5
84850
 
$as_echo "$ext_ouput" >&6; }
84851
 
  fi
84852
 
fi
84853
 
 
84854
 
if test -z "$ODBC_TYPE"; then
84855
 
 
84856
 
php_with_iodbc=no
84857
 
 
84858
 
 
84859
 
 
84860
 
@%:@ Check whether --with-iodbc was given.
84861
 
if test "${with_iodbc+set}" = set; then
84862
 
  withval=$with_iodbc; PHP_IODBC=$withval
84863
 
else
84864
 
  
84865
 
  PHP_IODBC=no
84866
 
  test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL
84867
 
 
84868
 
fi
84869
 
 
84870
 
 
84871
 
 
84872
 
ext_output="yes, shared"
84873
 
ext_shared=yes
84874
 
case $PHP_IODBC in
84875
 
shared,*)
84876
 
  PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'`
84877
 
  ;;
84878
 
shared)
84879
 
  PHP_IODBC=yes
84880
 
  ;;
84881
 
no)
84882
 
  ext_output=no
84883
 
  ext_shared=no
84884
 
  ;;
84885
 
*)
84886
 
  ext_output=yes
84887
 
  ext_shared=no
84888
 
  ;;
84889
 
esac
84890
 
 
84891
 
 
84892
 
 
84893
 
 
84894
 
 
84895
 
 
84896
 
 
84897
 
 
84898
 
  if test "$PHP_IODBC" != "no"; then
84899
 
    { $as_echo "$as_me:$LINENO: checking for iODBC support" >&5
84900
 
$as_echo_n "checking for iODBC support... " >&6; }
84901
 
    if test "$PHP_IODBC" = "yes"; then
84902
 
      PHP_IODBC=/usr/local
84903
 
    fi
84904
 
    
84905
 
 
84906
 
  if test -n "$PHP_IODBC/$PHP_LIBDIR"; then
84907
 
    
84908
 
  if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then
84909
 
    
84910
 
  if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
84911
 
    ai_p=$PHP_IODBC/$PHP_LIBDIR
84912
 
  else
84913
 
    
84914
 
    ep_dir="`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
84915
 
    
84916
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84917
 
    ai_p="$ep_realdir/`basename \"$PHP_IODBC/$PHP_LIBDIR\"`"
84918
 
  fi
84919
 
 
84920
 
    
84921
 
      
84922
 
  
84923
 
  
84924
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84925
 
  
84926
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84927
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
84928
 
    eval "LIBPATH$unique=set"
84929
 
    
84930
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84931
 
    LDFLAGS="$LDFLAGS -L$ai_p"
84932
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
84933
 
  
84934
 
  fi
84935
 
 
84936
 
 
84937
 
    
84938
 
  fi
84939
 
 
84940
 
  fi
84941
 
  
84942
 
  
84943
 
  case iodbc in
84944
 
  c|c_r|pthread*) ;;
84945
 
  *) 
84946
 
      LIBS="-liodbc $LIBS" 
84947
 
   ;;
84948
 
  esac
84949
 
 
84950
 
 
84951
 
 
84952
 
 
84953
 
    
84954
 
  if test "$PHP_IODBC/include" != "/usr/include"; then
84955
 
    
84956
 
  if test -z "$PHP_IODBC/include" || echo "$PHP_IODBC/include" | grep '^/' >/dev/null ; then
84957
 
    ai_p=$PHP_IODBC/include
84958
 
  else
84959
 
    
84960
 
    ep_dir="`echo $PHP_IODBC/include|$SED 's%/*[^/][^/]*/*$%%'`"
84961
 
    
84962
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84963
 
    ai_p="$ep_realdir/`basename \"$PHP_IODBC/include\"`"
84964
 
  fi
84965
 
 
84966
 
    
84967
 
  
84968
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84969
 
  
84970
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
84971
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
84972
 
    eval "INCLUDEPATH$unique=set"
84973
 
    
84974
 
      if test "1"; then
84975
 
        INCLUDES="-I$ai_p $INCLUDES"
84976
 
      else
84977
 
        INCLUDES="$INCLUDES -I$ai_p"
84978
 
      fi
84979
 
    
84980
 
  fi
84981
 
 
84982
 
  fi
84983
 
 
84984
 
    ODBC_TYPE=iodbc
84985
 
    ODBC_INCLUDE=-I$PHP_IODBC/include
84986
 
    ODBC_LFLAGS=-L$PHP_IODBC/$PHP_LIBDIR
84987
 
    ODBC_LIBS=-liodbc
84988
 
    
84989
 
cat >>confdefs.h <<\_ACEOF
84990
 
@%:@define HAVE_IODBC 1
84991
 
_ACEOF
84992
 
 
84993
 
    
84994
 
cat >>confdefs.h <<\_ACEOF
84995
 
@%:@define HAVE_ODBC2 1
84996
 
_ACEOF
84997
 
 
84998
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
84999
 
$as_echo "$ext_output" >&6; }
85000
 
  fi
85001
 
fi
85002
 
 
85003
 
if test -z "$ODBC_TYPE"; then
85004
 
 
85005
 
php_with_esoob=no
85006
 
 
85007
 
 
85008
 
 
85009
 
@%:@ Check whether --with-esoob was given.
85010
 
if test "${with_esoob+set}" = set; then
85011
 
  withval=$with_esoob; PHP_ESOOB=$withval
85012
 
else
85013
 
  
85014
 
  PHP_ESOOB=no
85015
 
  test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL
85016
 
 
85017
 
fi
85018
 
 
85019
 
 
85020
 
 
85021
 
ext_output="yes, shared"
85022
 
ext_shared=yes
85023
 
case $PHP_ESOOB in
85024
 
shared,*)
85025
 
  PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'`
85026
 
  ;;
85027
 
shared)
85028
 
  PHP_ESOOB=yes
85029
 
  ;;
85030
 
no)
85031
 
  ext_output=no
85032
 
  ext_shared=no
85033
 
  ;;
85034
 
*)
85035
 
  ext_output=yes
85036
 
  ext_shared=no
85037
 
  ;;
85038
 
esac
85039
 
 
85040
 
 
85041
 
 
85042
 
 
85043
 
 
85044
 
 
85045
 
 
85046
 
 
85047
 
  if test "$PHP_ESOOB" != "no"; then
85048
 
    { $as_echo "$as_me:$LINENO: checking for Easysoft ODBC-ODBC Bridge support" >&5
85049
 
$as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; }
85050
 
    if test "$PHP_ESOOB" = "yes"; then
85051
 
      PHP_ESOOB=/usr/local/easysoft/oob/client
85052
 
    fi
85053
 
    ODBC_INCDIR=$PHP_ESOOB/include
85054
 
    ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR
85055
 
    ODBC_LFLAGS=-L$ODBC_LIBDIR
85056
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
85057
 
    ODBC_LIBS=-lesoobclient
85058
 
    ODBC_TYPE=esoob
85059
 
    
85060
 
cat >>confdefs.h <<\_ACEOF
85061
 
@%:@define HAVE_ESOOB 1
85062
 
_ACEOF
85063
 
 
85064
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
85065
 
$as_echo "$ext_output" >&6; }
85066
 
  fi
85067
 
fi
85068
 
 
85069
 
if test -z "$ODBC_TYPE"; then
85070
 
 
85071
 
php_with_unixodbc=no
85072
 
 
85073
 
 
85074
 
 
85075
 
@%:@ Check whether --with-unixODBC was given.
85076
 
if test "${with_unixODBC+set}" = set; then
85077
 
  withval=$with_unixODBC; PHP_UNIXODBC=$withval
85078
 
else
85079
 
  
85080
 
  PHP_UNIXODBC=no
85081
 
  test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL
85082
 
 
85083
 
fi
85084
 
 
85085
 
 
85086
 
 
85087
 
ext_output="yes, shared"
85088
 
ext_shared=yes
85089
 
case $PHP_UNIXODBC in
85090
 
shared,*)
85091
 
  PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'`
85092
 
  ;;
85093
 
shared)
85094
 
  PHP_UNIXODBC=yes
85095
 
  ;;
85096
 
no)
85097
 
  ext_output=no
85098
 
  ext_shared=no
85099
 
  ;;
85100
 
*)
85101
 
  ext_output=yes
85102
 
  ext_shared=no
85103
 
  ;;
85104
 
esac
85105
 
 
85106
 
 
85107
 
 
85108
 
 
85109
 
 
85110
 
 
85111
 
 
85112
 
 
85113
 
  if test "$PHP_UNIXODBC" != "no"; then
85114
 
    { $as_echo "$as_me:$LINENO: checking for unixODBC support" >&5
85115
 
$as_echo_n "checking for unixODBC support... " >&6; }
85116
 
    if test "$PHP_UNIXODBC" = "yes"; then
85117
 
      PHP_UNIXODBC=/usr/local
85118
 
    fi
85119
 
    ODBC_INCDIR=$PHP_UNIXODBC/include
85120
 
    ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR
85121
 
    ODBC_LFLAGS=-L$ODBC_LIBDIR
85122
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
85123
 
    ODBC_LIBS=-lodbc
85124
 
    ODBC_TYPE=unixODBC
85125
 
    
85126
 
if ! test -f "$ODBC_INCDIR/sqlext.h"; then
85127
 
  { { $as_echo "$as_me:$LINENO: error: ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" >&5
85128
 
$as_echo "$as_me: error: ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" >&2;}
85129
 
   { (exit 1); exit 1; }; }
85130
 
fi
85131
 
 
85132
 
    
85133
 
cat >>confdefs.h <<\_ACEOF
85134
 
@%:@define HAVE_UNIXODBC 1
85135
 
_ACEOF
85136
 
 
85137
 
    { $as_echo "$as_me:$LINENO: result: $ext_output" >&5
85138
 
$as_echo "$ext_output" >&6; }
85139
 
  fi
85140
 
fi
85141
 
 
85142
 
if test -z "$ODBC_TYPE"; then
85143
 
 
85144
 
php_with_dbmaker=no
85145
 
 
85146
 
 
85147
 
 
85148
 
@%:@ Check whether --with-dbmaker was given.
85149
 
if test "${with_dbmaker+set}" = set; then
85150
 
  withval=$with_dbmaker; PHP_DBMAKER=$withval
85151
 
else
85152
 
  
85153
 
  PHP_DBMAKER=no
85154
 
  test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL
85155
 
 
85156
 
fi
85157
 
 
85158
 
 
85159
 
 
85160
 
ext_output="yes, shared"
85161
 
ext_shared=yes
85162
 
case $PHP_DBMAKER in
85163
 
shared,*)
85164
 
  PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'`
85165
 
  ;;
85166
 
shared)
85167
 
  PHP_DBMAKER=yes
85168
 
  ;;
85169
 
no)
85170
 
  ext_output=no
85171
 
  ext_shared=no
85172
 
  ;;
85173
 
*)
85174
 
  ext_output=yes
85175
 
  ext_shared=no
85176
 
  ;;
85177
 
esac
85178
 
 
85179
 
 
85180
 
 
85181
 
 
85182
 
 
85183
 
 
85184
 
 
85185
 
 
85186
 
  if test "$PHP_DBMAKER" != "no"; then
85187
 
    { $as_echo "$as_me:$LINENO: checking for DBMaker support" >&5
85188
 
$as_echo_n "checking for DBMaker support... " >&6; }
85189
 
    if test "$PHP_DBMAKER" = "yes"; then
85190
 
      # find dbmaker's home directory
85191
 
      DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'`
85192
 
 
85193
 
      # check DBMaker version (from 5.0 to 2.0)
85194
 
      DBMAKER_VERSION=5.0
85195
 
 
85196
 
      while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do
85197
 
        DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'`
85198
 
        MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }'  | $AWK -F. '{ print $1; }'`
85199
 
        MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'`
85200
 
        DBMAKER_VERSION=$MAJOR_V.$MINOR_V
85201
 
      done
85202
 
 
85203
 
      if test "$DBMAKER_VERSION" = "2.9"; then
85204
 
        PHP_DBMAKER=$DBMAKER_HOME
85205
 
      else
85206
 
        PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION
85207
 
      fi
85208
 
    fi
85209
 
 
85210
 
    ODBC_INCDIR=$PHP_DBMAKER/include
85211
 
    ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR
85212
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
85213
 
    ODBC_LFLAGS=-L$ODBC_LIBDIR
85214
 
    ODBC_INCLUDE=-I$ODBC_INCDIR
85215
 
    ODBC_LIBS="-ldmapic -lc"
85216
 
    ODBC_TYPE=dbmaker
85217
 
 
85218
 
    
85219
 
cat >>confdefs.h <<\_ACEOF
85220
 
@%:@define HAVE_DBMAKER 1
85221
 
_ACEOF
85222
 
 
85223
 
 
85224
 
    if test "$ext_shared" = "yes"; then
85225
 
      { $as_echo "$as_me:$LINENO: result: yes (shared)" >&5
85226
 
$as_echo "yes (shared)" >&6; }
85227
 
      ODBC_LIBS="-ldmapic -lc -lm"
85228
 
      ODBC_SHARED="odbc.la"
85229
 
    else
85230
 
      { $as_echo "$as_me:$LINENO: result: yes (static)" >&5
85231
 
$as_echo "yes (static)" >&6; }
85232
 
      
85233
 
 
85234
 
  if test -n "$ODBC_LIBDIR"; then
85235
 
    
85236
 
  if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then
85237
 
    
85238
 
  if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then
85239
 
    ai_p=$ODBC_LIBDIR
85240
 
  else
85241
 
    
85242
 
    ep_dir="`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
85243
 
    
85244
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85245
 
    ai_p="$ep_realdir/`basename \"$ODBC_LIBDIR\"`"
85246
 
  fi
85247
 
 
85248
 
    
85249
 
      
85250
 
  
85251
 
  
85252
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85253
 
  
85254
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85255
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
85256
 
    eval "LIBPATH$unique=set"
85257
 
    
85258
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85259
 
    LDFLAGS="$LDFLAGS -L$ai_p"
85260
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
85261
 
  
85262
 
  fi
85263
 
 
85264
 
 
85265
 
    
85266
 
  fi
85267
 
 
85268
 
  fi
85269
 
  
85270
 
  
85271
 
  case dmapic in
85272
 
  c|c_r|pthread*) ;;
85273
 
  *) 
85274
 
      LIBS="-ldmapic $LIBS" 
85275
 
   ;;
85276
 
  esac
85277
 
 
85278
 
 
85279
 
 
85280
 
 
85281
 
      
85282
 
  if test "$ODBC_INCDIR" != "/usr/include"; then
85283
 
    
85284
 
  if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then
85285
 
    ai_p=$ODBC_INCDIR
85286
 
  else
85287
 
    
85288
 
    ep_dir="`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
85289
 
    
85290
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85291
 
    ai_p="$ep_realdir/`basename \"$ODBC_INCDIR\"`"
85292
 
  fi
85293
 
 
85294
 
    
85295
 
  
85296
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85297
 
  
85298
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
85299
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
85300
 
    eval "INCLUDEPATH$unique=set"
85301
 
    
85302
 
      if test ""; then
85303
 
        INCLUDES="-I$ai_p $INCLUDES"
85304
 
      else
85305
 
        INCLUDES="$INCLUDES -I$ai_p"
85306
 
      fi
85307
 
    
85308
 
  fi
85309
 
 
85310
 
  fi
85311
 
 
85312
 
      ODBC_STATIC="libphpext_odbc.la"
85313
 
    fi
85314
 
  fi
85315
 
fi
85316
 
 
85317
 
if test -n "$ODBC_TYPE"; then
85318
 
  if test "$ODBC_TYPE" != "dbmaker"; then
85319
 
    
85320
 
  for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do
85321
 
    case $ac_i in
85322
 
    -pthread)
85323
 
      if test "$ext_shared" = "yes"; then
85324
 
        ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread"
85325
 
      else
85326
 
        
85327
 
  
85328
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
85329
 
  
85330
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
85331
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
85332
 
    eval "EXTRA_LDFLAGS$unique=set"
85333
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
85334
 
  fi
85335
 
 
85336
 
      fi
85337
 
    ;;
85338
 
    -l*)
85339
 
      ac_ii=`echo $ac_i|cut -c 3-`
85340
 
      
85341
 
  
85342
 
  case $ac_ii in
85343
 
  c|c_r|pthread*) ;;
85344
 
  *) 
85345
 
    if test "$ext_shared" = "yes"; then
85346
 
        ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii" 
85347
 
    else
85348
 
      
85349
 
  
85350
 
  case $ac_ii in
85351
 
  c|c_r|pthread*) ;;
85352
 
  *) 
85353
 
      LIBS="$LIBS -l$ac_ii" 
85354
 
   ;;
85355
 
  esac
85356
 
 
85357
 
 
85358
 
    fi
85359
 
   ;;
85360
 
  esac
85361
 
 
85362
 
 
85363
 
    ;;
85364
 
    -L*)
85365
 
      ac_ii=`echo $ac_i|cut -c 3-`
85366
 
      
85367
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
85368
 
    
85369
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
85370
 
    ai_p=$ac_ii
85371
 
  else
85372
 
    
85373
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
85374
 
    
85375
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85376
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
85377
 
  fi
85378
 
 
85379
 
    
85380
 
      if test "$ext_shared" = "yes"; then
85381
 
        ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD"
85382
 
        test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD"
85383
 
      else
85384
 
        
85385
 
  
85386
 
  
85387
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85388
 
  
85389
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85390
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
85391
 
    eval "LIBPATH$unique=set"
85392
 
    
85393
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85394
 
    LDFLAGS="$LDFLAGS -L$ai_p"
85395
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
85396
 
  
85397
 
  fi
85398
 
 
85399
 
 
85400
 
      fi
85401
 
    
85402
 
  fi
85403
 
 
85404
 
    ;;
85405
 
    esac
85406
 
  done
85407
 
 
85408
 
    if test "$ODBC_TYPE" != "birdstep" && test "$ODBC_TYPE" != "solid"; then
85409
 
      
85410
 
cat >>confdefs.h <<\_ACEOF
85411
 
@%:@define HAVE_SQLDATASOURCES 1
85412
 
_ACEOF
85413
 
 
85414
 
    fi
85415
 
  fi
85416
 
  
85417
 
  
85418
 
cat >>confdefs.h <<\_ACEOF
85419
 
@%:@define HAVE_UODBC 1
85420
 
_ACEOF
85421
 
 
85422
 
  
85423
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD"
85424
 
 
85425
 
  
85426
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR"
85427
 
 
85428
 
  
85429
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR"
85430
 
 
85431
 
  
85432
 
  
85433
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCLUDE"
85434
 
 
85435
 
  
85436
 
 
85437
 
  
85438
 
  
85439
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS"
85440
 
 
85441
 
  
85442
 
 
85443
 
  
85444
 
  
85445
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS"
85446
 
 
85447
 
  
85448
 
 
85449
 
  
85450
 
  
85451
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE"
85452
 
 
85453
 
  
85454
 
 
85455
 
 
85456
 
  
85457
 
  ext_builddir=ext/odbc
85458
 
  ext_srcdir=$abs_srcdir/ext/odbc
85459
 
 
85460
 
  ac_extra=`echo "$ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
85461
 
 
85462
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
85463
 
    PHP_ODBC_SHARED=no
85464
 
    
85465
 
  
85466
 
  case ext/odbc in
85467
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85468
 
  /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85469
 
  *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85470
 
  esac
85471
 
  
85472
 
  
85473
 
 
85474
 
  b_c_pre=$php_c_pre
85475
 
  b_cxx_pre=$php_cxx_pre
85476
 
  b_c_meta=$php_c_meta
85477
 
  b_cxx_meta=$php_cxx_meta
85478
 
  b_c_post=$php_c_post
85479
 
  b_cxx_post=$php_cxx_post
85480
 
  b_lo=$php_lo
85481
 
 
85482
 
 
85483
 
  old_IFS=$IFS
85484
 
  for ac_src in php_odbc.c; do
85485
 
  
85486
 
      IFS=.
85487
 
      set $ac_src
85488
 
      ac_obj=$1
85489
 
      IFS=$old_IFS
85490
 
      
85491
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
85492
 
 
85493
 
      case $ac_src in
85494
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85495
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85496
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85497
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85498
 
      esac
85499
 
 
85500
 
    cat >>Makefile.objects<<EOF
85501
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85502
 
        $ac_comp
85503
 
EOF
85504
 
  done
85505
 
 
85506
 
 
85507
 
    EXT_STATIC="$EXT_STATIC odbc"
85508
 
    if test "$ext_shared" != "nocli"; then
85509
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
85510
 
    fi
85511
 
  else
85512
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
85513
 
      PHP_ODBC_SHARED=yes
85514
 
      
85515
 
  case ext/odbc in
85516
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85517
 
  /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85518
 
  *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85519
 
  esac
85520
 
  
85521
 
  
85522
 
 
85523
 
  b_c_pre=$shared_c_pre
85524
 
  b_cxx_pre=$shared_cxx_pre
85525
 
  b_c_meta=$shared_c_meta
85526
 
  b_cxx_meta=$shared_cxx_meta
85527
 
  b_c_post=$shared_c_post
85528
 
  b_cxx_post=$shared_cxx_post
85529
 
  b_lo=$shared_lo
85530
 
 
85531
 
 
85532
 
  old_IFS=$IFS
85533
 
  for ac_src in php_odbc.c; do
85534
 
  
85535
 
      IFS=.
85536
 
      set $ac_src
85537
 
      ac_obj=$1
85538
 
      IFS=$old_IFS
85539
 
      
85540
 
      shared_objects_odbc="$shared_objects_odbc $ac_bdir$ac_obj.lo"
85541
 
 
85542
 
      case $ac_src in
85543
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85544
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85545
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85546
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85547
 
      esac
85548
 
 
85549
 
    cat >>Makefile.objects<<EOF
85550
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85551
 
        $ac_comp
85552
 
EOF
85553
 
  done
85554
 
 
85555
 
      case $host_alias in
85556
 
        *netware*)
85557
 
          
85558
 
  install_modules="install-modules"
85559
 
 
85560
 
  case $host_alias in
85561
 
    *aix*)
85562
 
      suffix=so
85563
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpodbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(PHPODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpodbc.so '$ext_builddir'/phpodbc.so'
85564
 
      ;;
85565
 
    *netware*)
85566
 
      suffix=nlm
85567
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) -L$(top_builddir)/netware -lphp5lib $(ODBC_SHARED_LIBADD)'
85568
 
      ;;
85569
 
    *)
85570
 
      suffix=la
85571
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(PHPODBC_SHARED_LIBADD)'
85572
 
      ;;
85573
 
  esac
85574
 
 
85575
 
  if test "x" = "xyes"; then
85576
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpodbc.$suffix"
85577
 
  else
85578
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpodbc.$suffix"
85579
 
  fi
85580
 
  
85581
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
85582
 
 
85583
 
  cat >>Makefile.objects<<EOF
85584
 
\$(phplibdir)/phpodbc.$suffix: $ext_builddir/phpodbc.$suffix
85585
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpodbc.$suffix \$(phplibdir)
85586
 
 
85587
 
$ext_builddir/phpodbc.$suffix: \$(shared_objects_odbc) \$(PHPODBC_SHARED_DEPENDENCIES)
85588
 
        $link_cmd
85589
 
 
85590
 
EOF
85591
 
 
85592
 
          ;;
85593
 
        *)
85594
 
          
85595
 
  install_modules="install-modules"
85596
 
 
85597
 
  case $host_alias in
85598
 
    *aix*)
85599
 
      suffix=so
85600
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(ODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/odbc.so '$ext_builddir'/odbc.so'
85601
 
      ;;
85602
 
    *netware*)
85603
 
      suffix=nlm
85604
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) -L$(top_builddir)/netware -lphp5lib $(C_SHARED_LIBADD)'
85605
 
      ;;
85606
 
    *)
85607
 
      suffix=la
85608
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_odbc) $(ODBC_SHARED_LIBADD)'
85609
 
      ;;
85610
 
  esac
85611
 
 
85612
 
  if test "x" = "xyes"; then
85613
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/odbc.$suffix"
85614
 
  else
85615
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/odbc.$suffix"
85616
 
  fi
85617
 
  
85618
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
85619
 
 
85620
 
  cat >>Makefile.objects<<EOF
85621
 
\$(phplibdir)/odbc.$suffix: $ext_builddir/odbc.$suffix
85622
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/odbc.$suffix \$(phplibdir)
85623
 
 
85624
 
$ext_builddir/odbc.$suffix: \$(shared_objects_odbc) \$(ODBC_SHARED_DEPENDENCIES)
85625
 
        $link_cmd
85626
 
 
85627
 
EOF
85628
 
 
85629
 
          ;;
85630
 
      esac
85631
 
      
85632
 
cat >>confdefs.h <<_ACEOF
85633
 
@%:@define COMPILE_DL_ODBC 1
85634
 
_ACEOF
85635
 
 
85636
 
    fi
85637
 
  fi
85638
 
 
85639
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
85640
 
    PHP_ODBC_SHARED=no
85641
 
    case "$PHP_SAPI" in
85642
 
      cgi|embed)
85643
 
        
85644
 
  
85645
 
  case ext/odbc in
85646
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85647
 
  /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85648
 
  *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85649
 
  esac
85650
 
  
85651
 
  
85652
 
 
85653
 
  b_c_pre=$php_c_pre
85654
 
  b_cxx_pre=$php_cxx_pre
85655
 
  b_c_meta=$php_c_meta
85656
 
  b_cxx_meta=$php_cxx_meta
85657
 
  b_c_post=$php_c_post
85658
 
  b_cxx_post=$php_cxx_post
85659
 
  b_lo=$php_lo
85660
 
 
85661
 
 
85662
 
  old_IFS=$IFS
85663
 
  for ac_src in php_odbc.c; do
85664
 
  
85665
 
      IFS=.
85666
 
      set $ac_src
85667
 
      ac_obj=$1
85668
 
      IFS=$old_IFS
85669
 
      
85670
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
85671
 
 
85672
 
      case $ac_src in
85673
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85674
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85675
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85676
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85677
 
      esac
85678
 
 
85679
 
    cat >>Makefile.objects<<EOF
85680
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85681
 
        $ac_comp
85682
 
EOF
85683
 
  done
85684
 
 
85685
 
 
85686
 
        EXT_STATIC="$EXT_STATIC odbc"
85687
 
        ;;
85688
 
      *)
85689
 
        
85690
 
  
85691
 
  case ext/odbc in
85692
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85693
 
  /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85694
 
  *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85695
 
  esac
85696
 
  
85697
 
  
85698
 
 
85699
 
  b_c_pre=$php_c_pre
85700
 
  b_cxx_pre=$php_cxx_pre
85701
 
  b_c_meta=$php_c_meta
85702
 
  b_cxx_meta=$php_cxx_meta
85703
 
  b_c_post=$php_c_post
85704
 
  b_cxx_post=$php_cxx_post
85705
 
  b_lo=$php_lo
85706
 
 
85707
 
 
85708
 
  old_IFS=$IFS
85709
 
  for ac_src in php_odbc.c; do
85710
 
  
85711
 
      IFS=.
85712
 
      set $ac_src
85713
 
      ac_obj=$1
85714
 
      IFS=$old_IFS
85715
 
      
85716
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
85717
 
 
85718
 
      case $ac_src in
85719
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85720
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85721
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85722
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85723
 
      esac
85724
 
 
85725
 
    cat >>Makefile.objects<<EOF
85726
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85727
 
        $ac_comp
85728
 
EOF
85729
 
  done
85730
 
 
85731
 
 
85732
 
        ;;
85733
 
    esac
85734
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
85735
 
  fi
85736
 
  
85737
 
  
85738
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
85739
 
  
85740
 
 
85741
 
 
85742
 
  if test "$ext_builddir" = "."; then
85743
 
    PHP_PECL_EXTENSION=odbc
85744
 
    
85745
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
85746
 
 
85747
 
  fi
85748
 
 
85749
 
fi
85750
 
 
85751
 
 
85752
 
 
85753
 
php_enable_pcntl=no
85754
 
 
85755
 
{ $as_echo "$as_me:$LINENO: checking whether to enable pcntl support" >&5
85756
 
$as_echo_n "checking whether to enable pcntl support... " >&6; }
85757
 
@%:@ Check whether --enable-pcntl was given.
85758
 
if test "${enable_pcntl+set}" = set; then
85759
 
  enableval=$enable_pcntl; PHP_PCNTL=$enableval
85760
 
else
85761
 
  
85762
 
  PHP_PCNTL=no
85763
 
  test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL
85764
 
 
85765
 
fi
85766
 
 
85767
 
 
85768
 
 
85769
 
ext_output="yes, shared"
85770
 
ext_shared=yes
85771
 
case $PHP_PCNTL in
85772
 
shared,*)
85773
 
  PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'`
85774
 
  ;;
85775
 
shared)
85776
 
  PHP_PCNTL=yes
85777
 
  ;;
85778
 
no)
85779
 
  ext_output=no
85780
 
  ext_shared=no
85781
 
  ;;
85782
 
*)
85783
 
  ext_output=yes
85784
 
  ext_shared=no
85785
 
  ;;
85786
 
esac
85787
 
 
85788
 
 
85789
 
 
85790
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
85791
 
$as_echo "$ext_output" >&6; }
85792
 
 
85793
 
 
85794
 
 
85795
 
 
85796
 
if test "$PHP_PCNTL" != "no"; then
85797
 
  
85798
 
for ac_func in fork
85799
 
do
85800
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
85801
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
85802
 
$as_echo_n "checking for $ac_func... " >&6; }
85803
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
85804
 
  $as_echo_n "(cached) " >&6
85805
 
else
85806
 
  cat >conftest.$ac_ext <<_ACEOF
85807
 
/* confdefs.h.  */
85808
 
_ACEOF
85809
 
cat confdefs.h >>conftest.$ac_ext
85810
 
cat >>conftest.$ac_ext <<_ACEOF
85811
 
/* end confdefs.h.  */
85812
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
85813
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
85814
 
#define $ac_func innocuous_$ac_func
85815
 
 
85816
 
/* System header to define __stub macros and hopefully few prototypes,
85817
 
    which can conflict with char $ac_func (); below.
85818
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
85819
 
    <limits.h> exists even on freestanding compilers.  */
85820
 
 
85821
 
#ifdef __STDC__
85822
 
# include <limits.h>
85823
 
#else
85824
 
# include <assert.h>
85825
 
#endif
85826
 
 
85827
 
#undef $ac_func
85828
 
 
85829
 
/* Override any GCC internal prototype to avoid an error.
85830
 
   Use char because int might match the return type of a GCC
85831
 
   builtin and then its argument prototype would still apply.  */
85832
 
#ifdef __cplusplus
85833
 
extern "C"
85834
 
#endif
85835
 
char $ac_func ();
85836
 
/* The GNU C library defines this for functions which it implements
85837
 
    to always fail with ENOSYS.  Some functions are actually named
85838
 
    something starting with __ and the normal name is an alias.  */
85839
 
#if defined __stub_$ac_func || defined __stub___$ac_func
85840
 
choke me
85841
 
#endif
85842
 
 
85843
 
int
85844
 
main ()
85845
 
{
85846
 
return $ac_func ();
85847
 
  ;
85848
 
  return 0;
85849
 
}
85850
 
_ACEOF
85851
 
rm -f conftest.$ac_objext conftest$ac_exeext
85852
 
if { (ac_try="$ac_link"
85853
 
case "(($ac_try" in
85854
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
85855
 
  *) ac_try_echo=$ac_try;;
85856
 
esac
85857
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
85858
 
$as_echo "$ac_try_echo") >&5
85859
 
  (eval "$ac_link") 2>conftest.er1
85860
 
  ac_status=$?
85861
 
  grep -v '^ *+' conftest.er1 >conftest.err
85862
 
  rm -f conftest.er1
85863
 
  cat conftest.err >&5
85864
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
85865
 
  (exit $ac_status); } && {
85866
 
         test -z "$ac_c_werror_flag" ||
85867
 
         test ! -s conftest.err
85868
 
       } && test -s conftest$ac_exeext && {
85869
 
         test "$cross_compiling" = yes ||
85870
 
         $as_test_x conftest$ac_exeext
85871
 
       }; then
85872
 
  eval "$as_ac_var=yes"
85873
 
else
85874
 
  $as_echo "$as_me: failed program was:" >&5
85875
 
sed 's/^/| /' conftest.$ac_ext >&5
85876
 
 
85877
 
        eval "$as_ac_var=no"
85878
 
fi
85879
 
 
85880
 
rm -rf conftest.dSYM
85881
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
85882
 
      conftest$ac_exeext conftest.$ac_ext
85883
 
fi
85884
 
ac_res=`eval 'as_val=${'$as_ac_var'}
85885
 
                 $as_echo "$as_val"'`
85886
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
85887
 
$as_echo "$ac_res" >&6; }
85888
 
as_val=`eval 'as_val=${'$as_ac_var'}
85889
 
                 $as_echo "$as_val"'`
85890
 
   if test "x$as_val" = x""yes; then
85891
 
  cat >>confdefs.h <<_ACEOF
85892
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
85893
 
_ACEOF
85894
 
  
85895
 
cat >>confdefs.h <<\_ACEOF
85896
 
@%:@define HAVE_FORK 1
85897
 
_ACEOF
85898
 
 
85899
 
else
85900
 
   { { $as_echo "$as_me:$LINENO: error: pcntl: fork() not supported by this platform" >&5
85901
 
$as_echo "$as_me: error: pcntl: fork() not supported by this platform" >&2;}
85902
 
   { (exit 1); exit 1; }; } 
85903
 
fi
85904
 
done
85905
 
 
85906
 
  
85907
 
for ac_func in waitpid
85908
 
do
85909
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
85910
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
85911
 
$as_echo_n "checking for $ac_func... " >&6; }
85912
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
85913
 
  $as_echo_n "(cached) " >&6
85914
 
else
85915
 
  cat >conftest.$ac_ext <<_ACEOF
85916
 
/* confdefs.h.  */
85917
 
_ACEOF
85918
 
cat confdefs.h >>conftest.$ac_ext
85919
 
cat >>conftest.$ac_ext <<_ACEOF
85920
 
/* end confdefs.h.  */
85921
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
85922
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
85923
 
#define $ac_func innocuous_$ac_func
85924
 
 
85925
 
/* System header to define __stub macros and hopefully few prototypes,
85926
 
    which can conflict with char $ac_func (); below.
85927
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
85928
 
    <limits.h> exists even on freestanding compilers.  */
85929
 
 
85930
 
#ifdef __STDC__
85931
 
# include <limits.h>
85932
 
#else
85933
 
# include <assert.h>
85934
 
#endif
85935
 
 
85936
 
#undef $ac_func
85937
 
 
85938
 
/* Override any GCC internal prototype to avoid an error.
85939
 
   Use char because int might match the return type of a GCC
85940
 
   builtin and then its argument prototype would still apply.  */
85941
 
#ifdef __cplusplus
85942
 
extern "C"
85943
 
#endif
85944
 
char $ac_func ();
85945
 
/* The GNU C library defines this for functions which it implements
85946
 
    to always fail with ENOSYS.  Some functions are actually named
85947
 
    something starting with __ and the normal name is an alias.  */
85948
 
#if defined __stub_$ac_func || defined __stub___$ac_func
85949
 
choke me
85950
 
#endif
85951
 
 
85952
 
int
85953
 
main ()
85954
 
{
85955
 
return $ac_func ();
85956
 
  ;
85957
 
  return 0;
85958
 
}
85959
 
_ACEOF
85960
 
rm -f conftest.$ac_objext conftest$ac_exeext
85961
 
if { (ac_try="$ac_link"
85962
 
case "(($ac_try" in
85963
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
85964
 
  *) ac_try_echo=$ac_try;;
85965
 
esac
85966
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
85967
 
$as_echo "$ac_try_echo") >&5
85968
 
  (eval "$ac_link") 2>conftest.er1
85969
 
  ac_status=$?
85970
 
  grep -v '^ *+' conftest.er1 >conftest.err
85971
 
  rm -f conftest.er1
85972
 
  cat conftest.err >&5
85973
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
85974
 
  (exit $ac_status); } && {
85975
 
         test -z "$ac_c_werror_flag" ||
85976
 
         test ! -s conftest.err
85977
 
       } && test -s conftest$ac_exeext && {
85978
 
         test "$cross_compiling" = yes ||
85979
 
         $as_test_x conftest$ac_exeext
85980
 
       }; then
85981
 
  eval "$as_ac_var=yes"
85982
 
else
85983
 
  $as_echo "$as_me: failed program was:" >&5
85984
 
sed 's/^/| /' conftest.$ac_ext >&5
85985
 
 
85986
 
        eval "$as_ac_var=no"
85987
 
fi
85988
 
 
85989
 
rm -rf conftest.dSYM
85990
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
85991
 
      conftest$ac_exeext conftest.$ac_ext
85992
 
fi
85993
 
ac_res=`eval 'as_val=${'$as_ac_var'}
85994
 
                 $as_echo "$as_val"'`
85995
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
85996
 
$as_echo "$ac_res" >&6; }
85997
 
as_val=`eval 'as_val=${'$as_ac_var'}
85998
 
                 $as_echo "$as_val"'`
85999
 
   if test "x$as_val" = x""yes; then
86000
 
  cat >>confdefs.h <<_ACEOF
86001
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
86002
 
_ACEOF
86003
 
  
86004
 
cat >>confdefs.h <<\_ACEOF
86005
 
@%:@define HAVE_WAITPID 1
86006
 
_ACEOF
86007
 
 
86008
 
else
86009
 
   { { $as_echo "$as_me:$LINENO: error: pcntl: waitpid() not supported by this platform" >&5
86010
 
$as_echo "$as_me: error: pcntl: waitpid() not supported by this platform" >&2;}
86011
 
   { (exit 1); exit 1; }; } 
86012
 
fi
86013
 
done
86014
 
 
86015
 
  
86016
 
for ac_func in sigaction
86017
 
do
86018
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
86019
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
86020
 
$as_echo_n "checking for $ac_func... " >&6; }
86021
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
86022
 
  $as_echo_n "(cached) " >&6
86023
 
else
86024
 
  cat >conftest.$ac_ext <<_ACEOF
86025
 
/* confdefs.h.  */
86026
 
_ACEOF
86027
 
cat confdefs.h >>conftest.$ac_ext
86028
 
cat >>conftest.$ac_ext <<_ACEOF
86029
 
/* end confdefs.h.  */
86030
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
86031
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
86032
 
#define $ac_func innocuous_$ac_func
86033
 
 
86034
 
/* System header to define __stub macros and hopefully few prototypes,
86035
 
    which can conflict with char $ac_func (); below.
86036
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
86037
 
    <limits.h> exists even on freestanding compilers.  */
86038
 
 
86039
 
#ifdef __STDC__
86040
 
# include <limits.h>
86041
 
#else
86042
 
# include <assert.h>
86043
 
#endif
86044
 
 
86045
 
#undef $ac_func
86046
 
 
86047
 
/* Override any GCC internal prototype to avoid an error.
86048
 
   Use char because int might match the return type of a GCC
86049
 
   builtin and then its argument prototype would still apply.  */
86050
 
#ifdef __cplusplus
86051
 
extern "C"
86052
 
#endif
86053
 
char $ac_func ();
86054
 
/* The GNU C library defines this for functions which it implements
86055
 
    to always fail with ENOSYS.  Some functions are actually named
86056
 
    something starting with __ and the normal name is an alias.  */
86057
 
#if defined __stub_$ac_func || defined __stub___$ac_func
86058
 
choke me
86059
 
#endif
86060
 
 
86061
 
int
86062
 
main ()
86063
 
{
86064
 
return $ac_func ();
86065
 
  ;
86066
 
  return 0;
86067
 
}
86068
 
_ACEOF
86069
 
rm -f conftest.$ac_objext conftest$ac_exeext
86070
 
if { (ac_try="$ac_link"
86071
 
case "(($ac_try" in
86072
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
86073
 
  *) ac_try_echo=$ac_try;;
86074
 
esac
86075
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
86076
 
$as_echo "$ac_try_echo") >&5
86077
 
  (eval "$ac_link") 2>conftest.er1
86078
 
  ac_status=$?
86079
 
  grep -v '^ *+' conftest.er1 >conftest.err
86080
 
  rm -f conftest.er1
86081
 
  cat conftest.err >&5
86082
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86083
 
  (exit $ac_status); } && {
86084
 
         test -z "$ac_c_werror_flag" ||
86085
 
         test ! -s conftest.err
86086
 
       } && test -s conftest$ac_exeext && {
86087
 
         test "$cross_compiling" = yes ||
86088
 
         $as_test_x conftest$ac_exeext
86089
 
       }; then
86090
 
  eval "$as_ac_var=yes"
86091
 
else
86092
 
  $as_echo "$as_me: failed program was:" >&5
86093
 
sed 's/^/| /' conftest.$ac_ext >&5
86094
 
 
86095
 
        eval "$as_ac_var=no"
86096
 
fi
86097
 
 
86098
 
rm -rf conftest.dSYM
86099
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
86100
 
      conftest$ac_exeext conftest.$ac_ext
86101
 
fi
86102
 
ac_res=`eval 'as_val=${'$as_ac_var'}
86103
 
                 $as_echo "$as_val"'`
86104
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
86105
 
$as_echo "$ac_res" >&6; }
86106
 
as_val=`eval 'as_val=${'$as_ac_var'}
86107
 
                 $as_echo "$as_val"'`
86108
 
   if test "x$as_val" = x""yes; then
86109
 
  cat >>confdefs.h <<_ACEOF
86110
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
86111
 
_ACEOF
86112
 
  
86113
 
cat >>confdefs.h <<\_ACEOF
86114
 
@%:@define HAVE_SIGACTION 1
86115
 
_ACEOF
86116
 
 
86117
 
else
86118
 
   { { $as_echo "$as_me:$LINENO: error: pcntl: sigaction() not supported by this platform" >&5
86119
 
$as_echo "$as_me: error: pcntl: sigaction() not supported by this platform" >&2;}
86120
 
   { (exit 1); exit 1; }; } 
86121
 
fi
86122
 
done
86123
 
 
86124
 
  
86125
 
 
86126
 
 
86127
 
 
86128
 
 
86129
 
 
86130
 
for ac_func in getpriority setpriority wait3 sigprocmask sigwaitinfo sigtimedwait
86131
 
do
86132
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
86133
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
86134
 
$as_echo_n "checking for $ac_func... " >&6; }
86135
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
86136
 
  $as_echo_n "(cached) " >&6
86137
 
else
86138
 
  cat >conftest.$ac_ext <<_ACEOF
86139
 
/* confdefs.h.  */
86140
 
_ACEOF
86141
 
cat confdefs.h >>conftest.$ac_ext
86142
 
cat >>conftest.$ac_ext <<_ACEOF
86143
 
/* end confdefs.h.  */
86144
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
86145
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
86146
 
#define $ac_func innocuous_$ac_func
86147
 
 
86148
 
/* System header to define __stub macros and hopefully few prototypes,
86149
 
    which can conflict with char $ac_func (); below.
86150
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
86151
 
    <limits.h> exists even on freestanding compilers.  */
86152
 
 
86153
 
#ifdef __STDC__
86154
 
# include <limits.h>
86155
 
#else
86156
 
# include <assert.h>
86157
 
#endif
86158
 
 
86159
 
#undef $ac_func
86160
 
 
86161
 
/* Override any GCC internal prototype to avoid an error.
86162
 
   Use char because int might match the return type of a GCC
86163
 
   builtin and then its argument prototype would still apply.  */
86164
 
#ifdef __cplusplus
86165
 
extern "C"
86166
 
#endif
86167
 
char $ac_func ();
86168
 
/* The GNU C library defines this for functions which it implements
86169
 
    to always fail with ENOSYS.  Some functions are actually named
86170
 
    something starting with __ and the normal name is an alias.  */
86171
 
#if defined __stub_$ac_func || defined __stub___$ac_func
86172
 
choke me
86173
 
#endif
86174
 
 
86175
 
int
86176
 
main ()
86177
 
{
86178
 
return $ac_func ();
86179
 
  ;
86180
 
  return 0;
86181
 
}
86182
 
_ACEOF
86183
 
rm -f conftest.$ac_objext conftest$ac_exeext
86184
 
if { (ac_try="$ac_link"
86185
 
case "(($ac_try" in
86186
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
86187
 
  *) ac_try_echo=$ac_try;;
86188
 
esac
86189
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
86190
 
$as_echo "$ac_try_echo") >&5
86191
 
  (eval "$ac_link") 2>conftest.er1
86192
 
  ac_status=$?
86193
 
  grep -v '^ *+' conftest.er1 >conftest.err
86194
 
  rm -f conftest.er1
86195
 
  cat conftest.err >&5
86196
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86197
 
  (exit $ac_status); } && {
86198
 
         test -z "$ac_c_werror_flag" ||
86199
 
         test ! -s conftest.err
86200
 
       } && test -s conftest$ac_exeext && {
86201
 
         test "$cross_compiling" = yes ||
86202
 
         $as_test_x conftest$ac_exeext
86203
 
       }; then
86204
 
  eval "$as_ac_var=yes"
86205
 
else
86206
 
  $as_echo "$as_me: failed program was:" >&5
86207
 
sed 's/^/| /' conftest.$ac_ext >&5
86208
 
 
86209
 
        eval "$as_ac_var=no"
86210
 
fi
86211
 
 
86212
 
rm -rf conftest.dSYM
86213
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
86214
 
      conftest$ac_exeext conftest.$ac_ext
86215
 
fi
86216
 
ac_res=`eval 'as_val=${'$as_ac_var'}
86217
 
                 $as_echo "$as_val"'`
86218
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
86219
 
$as_echo "$ac_res" >&6; }
86220
 
as_val=`eval 'as_val=${'$as_ac_var'}
86221
 
                 $as_echo "$as_val"'`
86222
 
   if test "x$as_val" = x""yes; then
86223
 
  cat >>confdefs.h <<_ACEOF
86224
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
86225
 
_ACEOF
86226
 
 
86227
 
fi
86228
 
done
86229
 
 
86230
 
  
86231
 
  ext_builddir=ext/pcntl
86232
 
  ext_srcdir=$abs_srcdir/ext/pcntl
86233
 
 
86234
 
  ac_extra=
86235
 
 
86236
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
86237
 
    PHP_PCNTL_SHARED=no
86238
 
    
86239
 
  
86240
 
  case ext/pcntl in
86241
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86242
 
  /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86243
 
  *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86244
 
  esac
86245
 
  
86246
 
  
86247
 
 
86248
 
  b_c_pre=$php_c_pre
86249
 
  b_cxx_pre=$php_cxx_pre
86250
 
  b_c_meta=$php_c_meta
86251
 
  b_cxx_meta=$php_cxx_meta
86252
 
  b_c_post=$php_c_post
86253
 
  b_cxx_post=$php_cxx_post
86254
 
  b_lo=$php_lo
86255
 
 
86256
 
 
86257
 
  old_IFS=$IFS
86258
 
  for ac_src in pcntl.c php_signal.c; do
86259
 
  
86260
 
      IFS=.
86261
 
      set $ac_src
86262
 
      ac_obj=$1
86263
 
      IFS=$old_IFS
86264
 
      
86265
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86266
 
 
86267
 
      case $ac_src in
86268
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86269
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86270
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86271
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86272
 
      esac
86273
 
 
86274
 
    cat >>Makefile.objects<<EOF
86275
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86276
 
        $ac_comp
86277
 
EOF
86278
 
  done
86279
 
 
86280
 
 
86281
 
    EXT_STATIC="$EXT_STATIC pcntl"
86282
 
    if test "$ext_shared" != "nocli"; then
86283
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
86284
 
    fi
86285
 
  else
86286
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
86287
 
      PHP_PCNTL_SHARED=yes
86288
 
      
86289
 
  case ext/pcntl in
86290
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86291
 
  /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86292
 
  *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86293
 
  esac
86294
 
  
86295
 
  
86296
 
 
86297
 
  b_c_pre=$shared_c_pre
86298
 
  b_cxx_pre=$shared_cxx_pre
86299
 
  b_c_meta=$shared_c_meta
86300
 
  b_cxx_meta=$shared_cxx_meta
86301
 
  b_c_post=$shared_c_post
86302
 
  b_cxx_post=$shared_cxx_post
86303
 
  b_lo=$shared_lo
86304
 
 
86305
 
 
86306
 
  old_IFS=$IFS
86307
 
  for ac_src in pcntl.c php_signal.c; do
86308
 
  
86309
 
      IFS=.
86310
 
      set $ac_src
86311
 
      ac_obj=$1
86312
 
      IFS=$old_IFS
86313
 
      
86314
 
      shared_objects_pcntl="$shared_objects_pcntl $ac_bdir$ac_obj.lo"
86315
 
 
86316
 
      case $ac_src in
86317
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86318
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86319
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86320
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86321
 
      esac
86322
 
 
86323
 
    cat >>Makefile.objects<<EOF
86324
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86325
 
        $ac_comp
86326
 
EOF
86327
 
  done
86328
 
 
86329
 
      case $host_alias in
86330
 
        *netware*)
86331
 
          
86332
 
  install_modules="install-modules"
86333
 
 
86334
 
  case $host_alias in
86335
 
    *aix*)
86336
 
      suffix=so
86337
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PHPPCNTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppcntl.so '$ext_builddir'/phppcntl.so'
86338
 
      ;;
86339
 
    *netware*)
86340
 
      suffix=nlm
86341
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) -L$(top_builddir)/netware -lphp5lib $(PCNTL_SHARED_LIBADD)'
86342
 
      ;;
86343
 
    *)
86344
 
      suffix=la
86345
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PHPPCNTL_SHARED_LIBADD)'
86346
 
      ;;
86347
 
  esac
86348
 
 
86349
 
  if test "x" = "xyes"; then
86350
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcntl.$suffix"
86351
 
  else
86352
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcntl.$suffix"
86353
 
  fi
86354
 
  
86355
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
86356
 
 
86357
 
  cat >>Makefile.objects<<EOF
86358
 
\$(phplibdir)/phppcntl.$suffix: $ext_builddir/phppcntl.$suffix
86359
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppcntl.$suffix \$(phplibdir)
86360
 
 
86361
 
$ext_builddir/phppcntl.$suffix: \$(shared_objects_pcntl) \$(PHPPCNTL_SHARED_DEPENDENCIES)
86362
 
        $link_cmd
86363
 
 
86364
 
EOF
86365
 
 
86366
 
          ;;
86367
 
        *)
86368
 
          
86369
 
  install_modules="install-modules"
86370
 
 
86371
 
  case $host_alias in
86372
 
    *aix*)
86373
 
      suffix=so
86374
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PCNTL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pcntl.so '$ext_builddir'/pcntl.so'
86375
 
      ;;
86376
 
    *netware*)
86377
 
      suffix=nlm
86378
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) -L$(top_builddir)/netware -lphp5lib $(TL_SHARED_LIBADD)'
86379
 
      ;;
86380
 
    *)
86381
 
      suffix=la
86382
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pcntl) $(PCNTL_SHARED_LIBADD)'
86383
 
      ;;
86384
 
  esac
86385
 
 
86386
 
  if test "x" = "xyes"; then
86387
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcntl.$suffix"
86388
 
  else
86389
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcntl.$suffix"
86390
 
  fi
86391
 
  
86392
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
86393
 
 
86394
 
  cat >>Makefile.objects<<EOF
86395
 
\$(phplibdir)/pcntl.$suffix: $ext_builddir/pcntl.$suffix
86396
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pcntl.$suffix \$(phplibdir)
86397
 
 
86398
 
$ext_builddir/pcntl.$suffix: \$(shared_objects_pcntl) \$(PCNTL_SHARED_DEPENDENCIES)
86399
 
        $link_cmd
86400
 
 
86401
 
EOF
86402
 
 
86403
 
          ;;
86404
 
      esac
86405
 
      
86406
 
cat >>confdefs.h <<_ACEOF
86407
 
@%:@define COMPILE_DL_PCNTL 1
86408
 
_ACEOF
86409
 
 
86410
 
    fi
86411
 
  fi
86412
 
 
86413
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
86414
 
    PHP_PCNTL_SHARED=no
86415
 
    case "$PHP_SAPI" in
86416
 
      cgi|embed)
86417
 
        
86418
 
  
86419
 
  case ext/pcntl in
86420
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86421
 
  /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86422
 
  *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86423
 
  esac
86424
 
  
86425
 
  
86426
 
 
86427
 
  b_c_pre=$php_c_pre
86428
 
  b_cxx_pre=$php_cxx_pre
86429
 
  b_c_meta=$php_c_meta
86430
 
  b_cxx_meta=$php_cxx_meta
86431
 
  b_c_post=$php_c_post
86432
 
  b_cxx_post=$php_cxx_post
86433
 
  b_lo=$php_lo
86434
 
 
86435
 
 
86436
 
  old_IFS=$IFS
86437
 
  for ac_src in pcntl.c php_signal.c; do
86438
 
  
86439
 
      IFS=.
86440
 
      set $ac_src
86441
 
      ac_obj=$1
86442
 
      IFS=$old_IFS
86443
 
      
86444
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86445
 
 
86446
 
      case $ac_src in
86447
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86448
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86449
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86450
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86451
 
      esac
86452
 
 
86453
 
    cat >>Makefile.objects<<EOF
86454
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86455
 
        $ac_comp
86456
 
EOF
86457
 
  done
86458
 
 
86459
 
 
86460
 
        EXT_STATIC="$EXT_STATIC pcntl"
86461
 
        ;;
86462
 
      *)
86463
 
        
86464
 
  
86465
 
  case ext/pcntl in
86466
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86467
 
  /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86468
 
  *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86469
 
  esac
86470
 
  
86471
 
  
86472
 
 
86473
 
  b_c_pre=$php_c_pre
86474
 
  b_cxx_pre=$php_cxx_pre
86475
 
  b_c_meta=$php_c_meta
86476
 
  b_cxx_meta=$php_cxx_meta
86477
 
  b_c_post=$php_c_post
86478
 
  b_cxx_post=$php_cxx_post
86479
 
  b_lo=$php_lo
86480
 
 
86481
 
 
86482
 
  old_IFS=$IFS
86483
 
  for ac_src in pcntl.c php_signal.c; do
86484
 
  
86485
 
      IFS=.
86486
 
      set $ac_src
86487
 
      ac_obj=$1
86488
 
      IFS=$old_IFS
86489
 
      
86490
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
86491
 
 
86492
 
      case $ac_src in
86493
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86494
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86495
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86496
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86497
 
      esac
86498
 
 
86499
 
    cat >>Makefile.objects<<EOF
86500
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86501
 
        $ac_comp
86502
 
EOF
86503
 
  done
86504
 
 
86505
 
 
86506
 
        ;;
86507
 
    esac
86508
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
86509
 
  fi
86510
 
  
86511
 
  
86512
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
86513
 
  
86514
 
 
86515
 
 
86516
 
  if test "$ext_builddir" = "."; then
86517
 
    PHP_PECL_EXTENSION=pcntl
86518
 
    
86519
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
86520
 
 
86521
 
  fi
86522
 
 
86523
 
fi
86524
 
 
86525
 
 
86526
 
 
86527
 
 
86528
 
 
86529
 
php_enable_pdo=yes
86530
 
 
86531
 
{ $as_echo "$as_me:$LINENO: checking whether to enable PDO support" >&5
86532
 
$as_echo_n "checking whether to enable PDO support... " >&6; }
86533
 
@%:@ Check whether --enable-pdo was given.
86534
 
if test "${enable_pdo+set}" = set; then
86535
 
  enableval=$enable_pdo; PHP_PDO=$enableval
86536
 
else
86537
 
  
86538
 
  PHP_PDO=yes
86539
 
  test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL
86540
 
 
86541
 
fi
86542
 
 
86543
 
 
86544
 
 
86545
 
ext_output="yes, shared"
86546
 
ext_shared=yes
86547
 
case $PHP_PDO in
86548
 
shared,*)
86549
 
  PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'`
86550
 
  ;;
86551
 
shared)
86552
 
  PHP_PDO=yes
86553
 
  ;;
86554
 
no)
86555
 
  ext_output=no
86556
 
  ext_shared=no
86557
 
  ;;
86558
 
*)
86559
 
  ext_output=yes
86560
 
  ext_shared=no
86561
 
  ;;
86562
 
esac
86563
 
 
86564
 
 
86565
 
 
86566
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
86567
 
$as_echo "$ext_output" >&6; }
86568
 
 
86569
 
 
86570
 
 
86571
 
 
86572
 
if test "$PHP_PDO" != "no"; then
86573
 
 
86574
 
    PHP_PDO=yes
86575
 
 
86576
 
  
86577
 
  pdo_running_under_pear=0
86578
 
  case `pwd` in
86579
 
    /var/tmp/pear-build-*)
86580
 
      pdo_running_under_pear=1
86581
 
      ;;
86582
 
  esac
86583
 
 
86584
 
  if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then
86585
 
    # we're running in an environment that smells like pear,
86586
 
    # and the PHP_PEAR_VERSION env var is not set.  That implies
86587
 
    # that we're running under a slightly broken pear installer
86588
 
    { { $as_echo "$as_me:$LINENO: error: 
86589
 
PDO requires that you upgrade your PEAR installer tools. Please
86590
 
do so now by running:
86591
 
 
86592
 
  % sudo pear upgrade pear
86593
 
 
86594
 
or by manually downloading and installing PEAR version 1.3.5 or higher.
86595
 
 
86596
 
Once you've upgraded, please re-try your PDO install.
86597
 
    " >&5
86598
 
$as_echo "$as_me: error: 
86599
 
PDO requires that you upgrade your PEAR installer tools. Please
86600
 
do so now by running:
86601
 
 
86602
 
  % sudo pear upgrade pear
86603
 
 
86604
 
or by manually downloading and installing PEAR version 1.3.5 or higher.
86605
 
 
86606
 
Once you've upgraded, please re-try your PDO install.
86607
 
    " >&2;}
86608
 
   { (exit 1); exit 1; }; }
86609
 
  fi
86610
 
 
86611
 
 
86612
 
  if test "$ext_shared" = "yes" ; then
86613
 
    case $host_alias in
86614
 
      *darwin*)
86615
 
          { { $as_echo "$as_me:$LINENO: error: 
86616
 
Due to the way that loadable modules work on OSX/Darwin, you need to
86617
 
compile the PDO package statically into the PHP core.
86618
 
 
86619
 
Please follow the instructions at: http://netevil.org/node.php?nid=202
86620
 
for more detail on this issue.
86621
 
          " >&5
86622
 
$as_echo "$as_me: error: 
86623
 
Due to the way that loadable modules work on OSX/Darwin, you need to
86624
 
compile the PDO package statically into the PHP core.
86625
 
 
86626
 
Please follow the instructions at: http://netevil.org/node.php?nid=202
86627
 
for more detail on this issue.
86628
 
          " >&2;}
86629
 
   { (exit 1); exit 1; }; }
86630
 
        ext_shared=no
86631
 
        ;;
86632
 
    esac
86633
 
  fi
86634
 
  
86635
 
  ext_builddir=ext/pdo
86636
 
  ext_srcdir=$abs_srcdir/ext/pdo
86637
 
 
86638
 
  ac_extra=
86639
 
 
86640
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
86641
 
    PHP_PDO_SHARED=no
86642
 
    
86643
 
  
86644
 
  case ext/pdo in
86645
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86646
 
  /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86647
 
  *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86648
 
  esac
86649
 
  
86650
 
  
86651
 
 
86652
 
  b_c_pre=$php_c_pre
86653
 
  b_cxx_pre=$php_cxx_pre
86654
 
  b_c_meta=$php_c_meta
86655
 
  b_cxx_meta=$php_cxx_meta
86656
 
  b_c_post=$php_c_post
86657
 
  b_cxx_post=$php_cxx_post
86658
 
  b_lo=$php_lo
86659
 
 
86660
 
 
86661
 
  old_IFS=$IFS
86662
 
  for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
86663
 
  
86664
 
      IFS=.
86665
 
      set $ac_src
86666
 
      ac_obj=$1
86667
 
      IFS=$old_IFS
86668
 
      
86669
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86670
 
 
86671
 
      case $ac_src in
86672
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86673
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86674
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86675
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86676
 
      esac
86677
 
 
86678
 
    cat >>Makefile.objects<<EOF
86679
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86680
 
        $ac_comp
86681
 
EOF
86682
 
  done
86683
 
 
86684
 
 
86685
 
    EXT_STATIC="$EXT_STATIC pdo"
86686
 
    if test "$ext_shared" != "nocli"; then
86687
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
86688
 
    fi
86689
 
  else
86690
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
86691
 
      PHP_PDO_SHARED=yes
86692
 
      
86693
 
  case ext/pdo in
86694
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86695
 
  /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86696
 
  *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86697
 
  esac
86698
 
  
86699
 
  
86700
 
 
86701
 
  b_c_pre=$shared_c_pre
86702
 
  b_cxx_pre=$shared_cxx_pre
86703
 
  b_c_meta=$shared_c_meta
86704
 
  b_cxx_meta=$shared_cxx_meta
86705
 
  b_c_post=$shared_c_post
86706
 
  b_cxx_post=$shared_cxx_post
86707
 
  b_lo=$shared_lo
86708
 
 
86709
 
 
86710
 
  old_IFS=$IFS
86711
 
  for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
86712
 
  
86713
 
      IFS=.
86714
 
      set $ac_src
86715
 
      ac_obj=$1
86716
 
      IFS=$old_IFS
86717
 
      
86718
 
      shared_objects_pdo="$shared_objects_pdo $ac_bdir$ac_obj.lo"
86719
 
 
86720
 
      case $ac_src in
86721
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86722
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86723
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86724
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86725
 
      esac
86726
 
 
86727
 
    cat >>Makefile.objects<<EOF
86728
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86729
 
        $ac_comp
86730
 
EOF
86731
 
  done
86732
 
 
86733
 
      case $host_alias in
86734
 
        *netware*)
86735
 
          
86736
 
  install_modules="install-modules"
86737
 
 
86738
 
  case $host_alias in
86739
 
    *aix*)
86740
 
      suffix=so
86741
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PHPPDO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo.so '$ext_builddir'/phppdo.so'
86742
 
      ;;
86743
 
    *netware*)
86744
 
      suffix=nlm
86745
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) -L$(top_builddir)/netware -lphp5lib $(PDO_SHARED_LIBADD)'
86746
 
      ;;
86747
 
    *)
86748
 
      suffix=la
86749
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PHPPDO_SHARED_LIBADD)'
86750
 
      ;;
86751
 
  esac
86752
 
 
86753
 
  if test "x" = "xyes"; then
86754
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo.$suffix"
86755
 
  else
86756
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo.$suffix"
86757
 
  fi
86758
 
  
86759
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
86760
 
 
86761
 
  cat >>Makefile.objects<<EOF
86762
 
\$(phplibdir)/phppdo.$suffix: $ext_builddir/phppdo.$suffix
86763
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo.$suffix \$(phplibdir)
86764
 
 
86765
 
$ext_builddir/phppdo.$suffix: \$(shared_objects_pdo) \$(PHPPDO_SHARED_DEPENDENCIES)
86766
 
        $link_cmd
86767
 
 
86768
 
EOF
86769
 
 
86770
 
          ;;
86771
 
        *)
86772
 
          
86773
 
  install_modules="install-modules"
86774
 
 
86775
 
  case $host_alias in
86776
 
    *aix*)
86777
 
      suffix=so
86778
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PDO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo.so '$ext_builddir'/pdo.so'
86779
 
      ;;
86780
 
    *netware*)
86781
 
      suffix=nlm
86782
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
86783
 
      ;;
86784
 
    *)
86785
 
      suffix=la
86786
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo) $(PDO_SHARED_LIBADD)'
86787
 
      ;;
86788
 
  esac
86789
 
 
86790
 
  if test "x" = "xyes"; then
86791
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo.$suffix"
86792
 
  else
86793
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo.$suffix"
86794
 
  fi
86795
 
  
86796
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
86797
 
 
86798
 
  cat >>Makefile.objects<<EOF
86799
 
\$(phplibdir)/pdo.$suffix: $ext_builddir/pdo.$suffix
86800
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo.$suffix \$(phplibdir)
86801
 
 
86802
 
$ext_builddir/pdo.$suffix: \$(shared_objects_pdo) \$(PDO_SHARED_DEPENDENCIES)
86803
 
        $link_cmd
86804
 
 
86805
 
EOF
86806
 
 
86807
 
          ;;
86808
 
      esac
86809
 
      
86810
 
cat >>confdefs.h <<_ACEOF
86811
 
@%:@define COMPILE_DL_PDO 1
86812
 
_ACEOF
86813
 
 
86814
 
    fi
86815
 
  fi
86816
 
 
86817
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
86818
 
    PHP_PDO_SHARED=no
86819
 
    case "$PHP_SAPI" in
86820
 
      cgi|embed)
86821
 
        
86822
 
  
86823
 
  case ext/pdo in
86824
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86825
 
  /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86826
 
  *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86827
 
  esac
86828
 
  
86829
 
  
86830
 
 
86831
 
  b_c_pre=$php_c_pre
86832
 
  b_cxx_pre=$php_cxx_pre
86833
 
  b_c_meta=$php_c_meta
86834
 
  b_cxx_meta=$php_cxx_meta
86835
 
  b_c_post=$php_c_post
86836
 
  b_cxx_post=$php_cxx_post
86837
 
  b_lo=$php_lo
86838
 
 
86839
 
 
86840
 
  old_IFS=$IFS
86841
 
  for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
86842
 
  
86843
 
      IFS=.
86844
 
      set $ac_src
86845
 
      ac_obj=$1
86846
 
      IFS=$old_IFS
86847
 
      
86848
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86849
 
 
86850
 
      case $ac_src in
86851
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86852
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86853
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86854
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86855
 
      esac
86856
 
 
86857
 
    cat >>Makefile.objects<<EOF
86858
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86859
 
        $ac_comp
86860
 
EOF
86861
 
  done
86862
 
 
86863
 
 
86864
 
        EXT_STATIC="$EXT_STATIC pdo"
86865
 
        ;;
86866
 
      *)
86867
 
        
86868
 
  
86869
 
  case ext/pdo in
86870
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86871
 
  /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86872
 
  *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86873
 
  esac
86874
 
  
86875
 
  
86876
 
 
86877
 
  b_c_pre=$php_c_pre
86878
 
  b_cxx_pre=$php_cxx_pre
86879
 
  b_c_meta=$php_c_meta
86880
 
  b_cxx_meta=$php_cxx_meta
86881
 
  b_c_post=$php_c_post
86882
 
  b_cxx_post=$php_cxx_post
86883
 
  b_lo=$php_lo
86884
 
 
86885
 
 
86886
 
  old_IFS=$IFS
86887
 
  for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
86888
 
  
86889
 
      IFS=.
86890
 
      set $ac_src
86891
 
      ac_obj=$1
86892
 
      IFS=$old_IFS
86893
 
      
86894
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
86895
 
 
86896
 
      case $ac_src in
86897
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86898
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86899
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86900
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86901
 
      esac
86902
 
 
86903
 
    cat >>Makefile.objects<<EOF
86904
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86905
 
        $ac_comp
86906
 
EOF
86907
 
  done
86908
 
 
86909
 
 
86910
 
        ;;
86911
 
    esac
86912
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
86913
 
  fi
86914
 
  
86915
 
  
86916
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
86917
 
  
86918
 
 
86919
 
 
86920
 
  if test "$ext_builddir" = "."; then
86921
 
    PHP_PECL_EXTENSION=pdo
86922
 
    
86923
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
86924
 
 
86925
 
  fi
86926
 
 
86927
 
  
86928
 
    
86929
 
  am_i_shared=$PHP_PDO_SHARED
86930
 
  is_it_shared=$PHP_SPL_SHARED
86931
 
  is_it_enabled=$PHP_SPL
86932
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
86933
 
    { { $as_echo "$as_me:$LINENO: error: 
86934
 
You've configured extension pdo to build statically, but it
86935
 
depends on extension spl, which you've configured to build shared.
86936
 
You either need to build pdo shared or build spl statically for the
86937
 
build to be successful.
86938
 
" >&5
86939
 
$as_echo "$as_me: error: 
86940
 
You've configured extension pdo to build statically, but it
86941
 
depends on extension spl, which you've configured to build shared.
86942
 
You either need to build pdo shared or build spl statically for the
86943
 
build to be successful.
86944
 
" >&2;}
86945
 
   { (exit 1); exit 1; }; }
86946
 
  fi
86947
 
  if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
86948
 
    { { $as_echo "$as_me:$LINENO: error: 
86949
 
You've configured extension pdo, which depends on extension spl,
86950
 
but you've either not enabled spl, or have disabled it.
86951
 
" >&5
86952
 
$as_echo "$as_me: error: 
86953
 
You've configured extension pdo, which depends on extension spl,
86954
 
but you've either not enabled spl, or have disabled it.
86955
 
" >&2;}
86956
 
   { (exit 1); exit 1; }; }
86957
 
  fi
86958
 
  
86959
 
  
86960
 
  
86961
 
  
86962
 
        
86963
 
  
86964
 
    header_path=ext/pdo
86965
 
    for header_file in php_pdo.h php_pdo_driver.h; do
86966
 
      hp_hf="$header_path/$header_file"
86967
 
      
86968
 
  
86969
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
86970
 
  
86971
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
86972
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
86973
 
    eval "INSTALLHEADERS$unique=set"
86974
 
    
86975
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
86976
 
      
86977
 
  fi
86978
 
 
86979
 
    done 
86980
 
  
86981
 
 
86982
 
  
86983
 
 
86984
 
    
86985
 
  src=$ext_srcdir/Makefile.frag
86986
 
  ac_srcdir=$ext_srcdir
86987
 
  ac_builddir=$ext_builddir
86988
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
86989
 
 
86990
 
fi
86991
 
 
86992
 
 
86993
 
 
86994
 
 
86995
 
php_with_pdo_dblib=no
86996
 
 
86997
 
{ $as_echo "$as_me:$LINENO: checking for PDO_DBLIB support via FreeTDS" >&5
86998
 
$as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; }
86999
 
 
87000
 
@%:@ Check whether --with-pdo-dblib was given.
87001
 
if test "${with_pdo_dblib+set}" = set; then
87002
 
  withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval
87003
 
else
87004
 
  
87005
 
  PHP_PDO_DBLIB=no
87006
 
  test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL
87007
 
 
87008
 
fi
87009
 
 
87010
 
 
87011
 
 
87012
 
ext_output="yes, shared"
87013
 
ext_shared=yes
87014
 
case $PHP_PDO_DBLIB in
87015
 
shared,*)
87016
 
  PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'`
87017
 
  ;;
87018
 
shared)
87019
 
  PHP_PDO_DBLIB=yes
87020
 
  ;;
87021
 
no)
87022
 
  ext_output=no
87023
 
  ext_shared=no
87024
 
  ;;
87025
 
*)
87026
 
  ext_output=yes
87027
 
  ext_shared=no
87028
 
  ;;
87029
 
esac
87030
 
 
87031
 
 
87032
 
 
87033
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
87034
 
$as_echo "$ext_output" >&6; }
87035
 
 
87036
 
 
87037
 
 
87038
 
 
87039
 
if test "$PHP_PDO_DBLIB" != "no"; then
87040
 
 
87041
 
  if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
87042
 
    { { $as_echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
87043
 
$as_echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
87044
 
   { (exit 1); exit 1; }; }
87045
 
  fi
87046
 
 
87047
 
  if test "$PHP_PDO_DBLIB" = "yes"; then
87048
 
 
87049
 
    for i in /usr/local /usr; do
87050
 
      if test -f $i/include/sybdb.h; then
87051
 
        PDO_FREETDS_INSTALLATION_DIR=$i
87052
 
        PDO_FREETDS_INCLUDE_DIR=$i/include
87053
 
        break
87054
 
      elif test -f $i/include/freetds/sybdb.h; then
87055
 
        PDO_FREETDS_INSTALLATION_DIR=$i
87056
 
        PDO_FREETDS_INCLUDE_DIR=$i/include/freetds
87057
 
        break;
87058
 
      fi
87059
 
    done
87060
 
 
87061
 
    if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then
87062
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find FreeTDS in known installation directories" >&5
87063
 
$as_echo "$as_me: error: Cannot find FreeTDS in known installation directories" >&2;}
87064
 
   { (exit 1); exit 1; }; }
87065
 
    fi
87066
 
 
87067
 
  elif test "$PHP_PDO_DBLIB" != "no"; then
87068
 
 
87069
 
    if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
87070
 
      PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
87071
 
      PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
87072
 
    elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then
87073
 
      PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
87074
 
      PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds
87075
 
    else
87076
 
      { { $as_echo "$as_me:$LINENO: error: Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" >&5
87077
 
$as_echo "$as_me: error: Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" >&2;}
87078
 
   { (exit 1); exit 1; }; }
87079
 
    fi
87080
 
  fi  
87081
 
 
87082
 
  if test "x$PHP_LIBDIR" = "x" ; then
87083
 
    PHP_LIBDIR=lib
87084
 
  fi
87085
 
 
87086
 
  if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
87087
 
     { { $as_echo "$as_me:$LINENO: error: Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" >&5
87088
 
$as_echo "$as_me: error: Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" >&2;}
87089
 
   { (exit 1); exit 1; }; }
87090
 
  fi
87091
 
 
87092
 
  
87093
 
  if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then
87094
 
    
87095
 
  if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
87096
 
    ai_p=$PDO_FREETDS_INCLUDE_DIR
87097
 
  else
87098
 
    
87099
 
    ep_dir="`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
87100
 
    
87101
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87102
 
    ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INCLUDE_DIR\"`"
87103
 
  fi
87104
 
 
87105
 
    
87106
 
  
87107
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87108
 
  
87109
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
87110
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
87111
 
    eval "INCLUDEPATH$unique=set"
87112
 
    
87113
 
      if test ""; then
87114
 
        INCLUDES="-I$ai_p $INCLUDES"
87115
 
      else
87116
 
        INCLUDES="$INCLUDES -I$ai_p"
87117
 
      fi
87118
 
    
87119
 
  fi
87120
 
 
87121
 
  fi
87122
 
 
87123
 
  
87124
 
 
87125
 
  if test "$ext_shared" = "yes"; then
87126
 
    PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD"
87127
 
    if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
87128
 
      
87129
 
  if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
87130
 
    
87131
 
  if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
87132
 
    ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
87133
 
  else
87134
 
    
87135
 
    ep_dir="`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
87136
 
    
87137
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87138
 
    ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
87139
 
  fi
87140
 
 
87141
 
    
87142
 
      if test "$ext_shared" = "yes"; then
87143
 
        PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
87144
 
        test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
87145
 
      else
87146
 
        
87147
 
  
87148
 
  
87149
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87150
 
  
87151
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87152
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
87153
 
    eval "LIBPATH$unique=set"
87154
 
    
87155
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87156
 
    LDFLAGS="$LDFLAGS -L$ai_p"
87157
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
87158
 
  
87159
 
  fi
87160
 
 
87161
 
 
87162
 
      fi
87163
 
    
87164
 
  fi
87165
 
 
87166
 
    fi
87167
 
  else
87168
 
    
87169
 
 
87170
 
  if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
87171
 
    
87172
 
  if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
87173
 
    
87174
 
  if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
87175
 
    ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
87176
 
  else
87177
 
    
87178
 
    ep_dir="`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
87179
 
    
87180
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87181
 
    ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
87182
 
  fi
87183
 
 
87184
 
    
87185
 
      
87186
 
  
87187
 
  
87188
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87189
 
  
87190
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87191
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
87192
 
    eval "LIBPATH$unique=set"
87193
 
    
87194
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87195
 
    LDFLAGS="$LDFLAGS -L$ai_p"
87196
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
87197
 
  
87198
 
  fi
87199
 
 
87200
 
 
87201
 
    
87202
 
  fi
87203
 
 
87204
 
  fi
87205
 
  
87206
 
  
87207
 
  case sybdb in
87208
 
  c|c_r|pthread*) ;;
87209
 
  *) 
87210
 
      LIBS="-lsybdb $LIBS" 
87211
 
   ;;
87212
 
  esac
87213
 
 
87214
 
 
87215
 
 
87216
 
 
87217
 
  fi
87218
 
 
87219
 
 
87220
 
 
87221
 
  
87222
 
    
87223
 
  { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
87224
 
$as_echo_n "checking for PDO includes... " >&6; }
87225
 
if test "${pdo_inc_path+set}" = set; then
87226
 
  $as_echo_n "(cached) " >&6
87227
 
else
87228
 
  
87229
 
    { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
87230
 
$as_echo_n "checking for PDO includes... " >&6; }
87231
 
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
87232
 
      pdo_inc_path=$abs_srcdir/ext
87233
 
    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
87234
 
      pdo_inc_path=$abs_srcdir/ext
87235
 
    elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
87236
 
      pdo_inc_path=$prefix/include/php/ext
87237
 
    fi
87238
 
  
87239
 
fi
87240
 
{ $as_echo "$as_me:$LINENO: result: $pdo_inc_path" >&5
87241
 
$as_echo "$pdo_inc_path" >&6; }
87242
 
  if test -n "$pdo_inc_path"; then
87243
 
:
87244
 
  else
87245
 
{ { $as_echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
87246
 
$as_echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
87247
 
   { (exit 1); exit 1; }; }
87248
 
  fi
87249
 
 
87250
 
  
87251
 
 
87252
 
  PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\""
87253
 
  
87254
 
  ext_builddir=ext/pdo_dblib
87255
 
  ext_srcdir=$abs_srcdir/ext/pdo_dblib
87256
 
 
87257
 
  ac_extra=`echo "-I$pdo_inc_path $PDO_DBLIB_DEFS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
87258
 
 
87259
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
87260
 
    PHP_PDO_DBLIB_SHARED=no
87261
 
    
87262
 
  
87263
 
  case ext/pdo_dblib in
87264
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87265
 
  /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87266
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87267
 
  esac
87268
 
  
87269
 
  
87270
 
 
87271
 
  b_c_pre=$php_c_pre
87272
 
  b_cxx_pre=$php_cxx_pre
87273
 
  b_c_meta=$php_c_meta
87274
 
  b_cxx_meta=$php_cxx_meta
87275
 
  b_c_post=$php_c_post
87276
 
  b_cxx_post=$php_cxx_post
87277
 
  b_lo=$php_lo
87278
 
 
87279
 
 
87280
 
  old_IFS=$IFS
87281
 
  for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
87282
 
  
87283
 
      IFS=.
87284
 
      set $ac_src
87285
 
      ac_obj=$1
87286
 
      IFS=$old_IFS
87287
 
      
87288
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
87289
 
 
87290
 
      case $ac_src in
87291
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87292
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87293
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87294
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87295
 
      esac
87296
 
 
87297
 
    cat >>Makefile.objects<<EOF
87298
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87299
 
        $ac_comp
87300
 
EOF
87301
 
  done
87302
 
 
87303
 
 
87304
 
    EXT_STATIC="$EXT_STATIC pdo_dblib"
87305
 
    if test "$ext_shared" != "nocli"; then
87306
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
87307
 
    fi
87308
 
  else
87309
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
87310
 
      PHP_PDO_DBLIB_SHARED=yes
87311
 
      
87312
 
  case ext/pdo_dblib in
87313
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87314
 
  /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87315
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87316
 
  esac
87317
 
  
87318
 
  
87319
 
 
87320
 
  b_c_pre=$shared_c_pre
87321
 
  b_cxx_pre=$shared_cxx_pre
87322
 
  b_c_meta=$shared_c_meta
87323
 
  b_cxx_meta=$shared_cxx_meta
87324
 
  b_c_post=$shared_c_post
87325
 
  b_cxx_post=$shared_cxx_post
87326
 
  b_lo=$shared_lo
87327
 
 
87328
 
 
87329
 
  old_IFS=$IFS
87330
 
  for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
87331
 
  
87332
 
      IFS=.
87333
 
      set $ac_src
87334
 
      ac_obj=$1
87335
 
      IFS=$old_IFS
87336
 
      
87337
 
      shared_objects_pdo_dblib="$shared_objects_pdo_dblib $ac_bdir$ac_obj.lo"
87338
 
 
87339
 
      case $ac_src in
87340
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87341
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87342
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87343
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87344
 
      esac
87345
 
 
87346
 
    cat >>Makefile.objects<<EOF
87347
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87348
 
        $ac_comp
87349
 
EOF
87350
 
  done
87351
 
 
87352
 
      case $host_alias in
87353
 
        *netware*)
87354
 
          
87355
 
  install_modules="install-modules"
87356
 
 
87357
 
  case $host_alias in
87358
 
    *aix*)
87359
 
      suffix=so
87360
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_dblib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PHPPDO_DBLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_dblib.so '$ext_builddir'/phppdo_dblib.so'
87361
 
      ;;
87362
 
    *netware*)
87363
 
      suffix=nlm
87364
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) -L$(top_builddir)/netware -lphp5lib $(PDO_DBLIB_SHARED_LIBADD)'
87365
 
      ;;
87366
 
    *)
87367
 
      suffix=la
87368
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PHPPDO_DBLIB_SHARED_LIBADD)'
87369
 
      ;;
87370
 
  esac
87371
 
 
87372
 
  if test "x" = "xyes"; then
87373
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_dblib.$suffix"
87374
 
  else
87375
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_dblib.$suffix"
87376
 
  fi
87377
 
  
87378
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
87379
 
 
87380
 
  cat >>Makefile.objects<<EOF
87381
 
\$(phplibdir)/phppdo_dblib.$suffix: $ext_builddir/phppdo_dblib.$suffix
87382
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_dblib.$suffix \$(phplibdir)
87383
 
 
87384
 
$ext_builddir/phppdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PHPPDO_DBLIB_SHARED_DEPENDENCIES)
87385
 
        $link_cmd
87386
 
 
87387
 
EOF
87388
 
 
87389
 
          ;;
87390
 
        *)
87391
 
          
87392
 
  install_modules="install-modules"
87393
 
 
87394
 
  case $host_alias in
87395
 
    *aix*)
87396
 
      suffix=so
87397
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_dblib.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PDO_DBLIB_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_dblib.so '$ext_builddir'/pdo_dblib.so'
87398
 
      ;;
87399
 
    *netware*)
87400
 
      suffix=nlm
87401
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) -L$(top_builddir)/netware -lphp5lib $(_DBLIB_SHARED_LIBADD)'
87402
 
      ;;
87403
 
    *)
87404
 
      suffix=la
87405
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_dblib) $(PDO_DBLIB_SHARED_LIBADD)'
87406
 
      ;;
87407
 
  esac
87408
 
 
87409
 
  if test "x" = "xyes"; then
87410
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_dblib.$suffix"
87411
 
  else
87412
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_dblib.$suffix"
87413
 
  fi
87414
 
  
87415
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
87416
 
 
87417
 
  cat >>Makefile.objects<<EOF
87418
 
\$(phplibdir)/pdo_dblib.$suffix: $ext_builddir/pdo_dblib.$suffix
87419
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_dblib.$suffix \$(phplibdir)
87420
 
 
87421
 
$ext_builddir/pdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PDO_DBLIB_SHARED_DEPENDENCIES)
87422
 
        $link_cmd
87423
 
 
87424
 
EOF
87425
 
 
87426
 
          ;;
87427
 
      esac
87428
 
      
87429
 
cat >>confdefs.h <<_ACEOF
87430
 
@%:@define COMPILE_DL_PDO_DBLIB 1
87431
 
_ACEOF
87432
 
 
87433
 
    fi
87434
 
  fi
87435
 
 
87436
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
87437
 
    PHP_PDO_DBLIB_SHARED=no
87438
 
    case "$PHP_SAPI" in
87439
 
      cgi|embed)
87440
 
        
87441
 
  
87442
 
  case ext/pdo_dblib in
87443
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87444
 
  /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87445
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87446
 
  esac
87447
 
  
87448
 
  
87449
 
 
87450
 
  b_c_pre=$php_c_pre
87451
 
  b_cxx_pre=$php_cxx_pre
87452
 
  b_c_meta=$php_c_meta
87453
 
  b_cxx_meta=$php_cxx_meta
87454
 
  b_c_post=$php_c_post
87455
 
  b_cxx_post=$php_cxx_post
87456
 
  b_lo=$php_lo
87457
 
 
87458
 
 
87459
 
  old_IFS=$IFS
87460
 
  for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
87461
 
  
87462
 
      IFS=.
87463
 
      set $ac_src
87464
 
      ac_obj=$1
87465
 
      IFS=$old_IFS
87466
 
      
87467
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
87468
 
 
87469
 
      case $ac_src in
87470
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87471
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87472
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87473
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87474
 
      esac
87475
 
 
87476
 
    cat >>Makefile.objects<<EOF
87477
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87478
 
        $ac_comp
87479
 
EOF
87480
 
  done
87481
 
 
87482
 
 
87483
 
        EXT_STATIC="$EXT_STATIC pdo_dblib"
87484
 
        ;;
87485
 
      *)
87486
 
        
87487
 
  
87488
 
  case ext/pdo_dblib in
87489
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87490
 
  /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87491
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87492
 
  esac
87493
 
  
87494
 
  
87495
 
 
87496
 
  b_c_pre=$php_c_pre
87497
 
  b_cxx_pre=$php_cxx_pre
87498
 
  b_c_meta=$php_c_meta
87499
 
  b_cxx_meta=$php_cxx_meta
87500
 
  b_c_post=$php_c_post
87501
 
  b_cxx_post=$php_cxx_post
87502
 
  b_lo=$php_lo
87503
 
 
87504
 
 
87505
 
  old_IFS=$IFS
87506
 
  for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
87507
 
  
87508
 
      IFS=.
87509
 
      set $ac_src
87510
 
      ac_obj=$1
87511
 
      IFS=$old_IFS
87512
 
      
87513
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
87514
 
 
87515
 
      case $ac_src in
87516
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87517
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87518
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87519
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87520
 
      esac
87521
 
 
87522
 
    cat >>Makefile.objects<<EOF
87523
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87524
 
        $ac_comp
87525
 
EOF
87526
 
  done
87527
 
 
87528
 
 
87529
 
        ;;
87530
 
    esac
87531
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
87532
 
  fi
87533
 
  
87534
 
  
87535
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
87536
 
  
87537
 
 
87538
 
 
87539
 
  if test "$ext_builddir" = "."; then
87540
 
    PHP_PECL_EXTENSION=pdo_dblib
87541
 
    
87542
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
87543
 
 
87544
 
  fi
87545
 
 
87546
 
  { $as_echo "$as_me:$LINENO: checking for dnet_addr in -ldnet_stub" >&5
87547
 
$as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; }
87548
 
if test "${ac_cv_lib_dnet_stub_dnet_addr+set}" = set; then
87549
 
  $as_echo_n "(cached) " >&6
87550
 
else
87551
 
  ac_check_lib_save_LIBS=$LIBS
87552
 
LIBS="-ldnet_stub  $LIBS"
87553
 
cat >conftest.$ac_ext <<_ACEOF
87554
 
/* confdefs.h.  */
87555
 
_ACEOF
87556
 
cat confdefs.h >>conftest.$ac_ext
87557
 
cat >>conftest.$ac_ext <<_ACEOF
87558
 
/* end confdefs.h.  */
87559
 
 
87560
 
/* Override any GCC internal prototype to avoid an error.
87561
 
   Use char because int might match the return type of a GCC
87562
 
   builtin and then its argument prototype would still apply.  */
87563
 
#ifdef __cplusplus
87564
 
extern "C"
87565
 
#endif
87566
 
char dnet_addr ();
87567
 
int
87568
 
main ()
87569
 
{
87570
 
return dnet_addr ();
87571
 
  ;
87572
 
  return 0;
87573
 
}
87574
 
_ACEOF
87575
 
rm -f conftest.$ac_objext conftest$ac_exeext
87576
 
if { (ac_try="$ac_link"
87577
 
case "(($ac_try" in
87578
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
87579
 
  *) ac_try_echo=$ac_try;;
87580
 
esac
87581
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
87582
 
$as_echo "$ac_try_echo") >&5
87583
 
  (eval "$ac_link") 2>conftest.er1
87584
 
  ac_status=$?
87585
 
  grep -v '^ *+' conftest.er1 >conftest.err
87586
 
  rm -f conftest.er1
87587
 
  cat conftest.err >&5
87588
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
87589
 
  (exit $ac_status); } && {
87590
 
         test -z "$ac_c_werror_flag" ||
87591
 
         test ! -s conftest.err
87592
 
       } && test -s conftest$ac_exeext && {
87593
 
         test "$cross_compiling" = yes ||
87594
 
         $as_test_x conftest$ac_exeext
87595
 
       }; then
87596
 
  ac_cv_lib_dnet_stub_dnet_addr=yes
87597
 
else
87598
 
  $as_echo "$as_me: failed program was:" >&5
87599
 
sed 's/^/| /' conftest.$ac_ext >&5
87600
 
 
87601
 
        ac_cv_lib_dnet_stub_dnet_addr=no
87602
 
fi
87603
 
 
87604
 
rm -rf conftest.dSYM
87605
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
87606
 
      conftest$ac_exeext conftest.$ac_ext
87607
 
LIBS=$ac_check_lib_save_LIBS
87608
 
fi
87609
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
87610
 
$as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
87611
 
if test "x$ac_cv_lib_dnet_stub_dnet_addr" = x""yes; then
87612
 
   
87613
 
 
87614
 
  if test "$ext_shared" = "yes"; then
87615
 
    PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD"
87616
 
    if test -n ""; then
87617
 
      
87618
 
  if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
87619
 
    
87620
 
  if test -z "" || echo "" | grep '^/' >/dev/null ; then
87621
 
    ai_p=
87622
 
  else
87623
 
    
87624
 
    ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
87625
 
    
87626
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87627
 
    ai_p="$ep_realdir/`basename \"\"`"
87628
 
  fi
87629
 
 
87630
 
    
87631
 
      if test "$ext_shared" = "yes"; then
87632
 
        PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
87633
 
        test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
87634
 
      else
87635
 
        
87636
 
  
87637
 
  
87638
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87639
 
  
87640
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87641
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
87642
 
    eval "LIBPATH$unique=set"
87643
 
    
87644
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87645
 
    LDFLAGS="$LDFLAGS -L$ai_p"
87646
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
87647
 
  
87648
 
  fi
87649
 
 
87650
 
 
87651
 
      fi
87652
 
    
87653
 
  fi
87654
 
 
87655
 
    fi
87656
 
  else
87657
 
    
87658
 
 
87659
 
  if test -n ""; then
87660
 
    
87661
 
  if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
87662
 
    
87663
 
  if test -z "" || echo "" | grep '^/' >/dev/null ; then
87664
 
    ai_p=
87665
 
  else
87666
 
    
87667
 
    ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
87668
 
    
87669
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87670
 
    ai_p="$ep_realdir/`basename \"\"`"
87671
 
  fi
87672
 
 
87673
 
    
87674
 
      
87675
 
  
87676
 
  
87677
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87678
 
  
87679
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87680
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
87681
 
    eval "LIBPATH$unique=set"
87682
 
    
87683
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87684
 
    LDFLAGS="$LDFLAGS -L$ai_p"
87685
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
87686
 
  
87687
 
  fi
87688
 
 
87689
 
 
87690
 
    
87691
 
  fi
87692
 
 
87693
 
  fi
87694
 
  
87695
 
  
87696
 
  case dnet_stub in
87697
 
  c|c_r|pthread*) ;;
87698
 
  *) 
87699
 
      LIBS="-ldnet_stub $LIBS" 
87700
 
   ;;
87701
 
  esac
87702
 
 
87703
 
 
87704
 
 
87705
 
 
87706
 
  fi
87707
 
 
87708
 
 
87709
 
        
87710
 
cat >>confdefs.h <<\_ACEOF
87711
 
@%:@define HAVE_LIBDNET_STUB 1
87712
 
_ACEOF
87713
 
 
87714
 
     
87715
 
fi
87716
 
 
87717
 
  
87718
 
cat >>confdefs.h <<\_ACEOF
87719
 
@%:@define HAVE_PDO_DBLIB 1
87720
 
_ACEOF
87721
 
 
87722
 
  
87723
 
cat >>confdefs.h <<\_ACEOF
87724
 
@%:@define HAVE_FREETDS 1
87725
 
_ACEOF
87726
 
 
87727
 
  
87728
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD"
87729
 
 
87730
 
 
87731
 
  
87732
 
    
87733
 
  am_i_shared=$PHP_PDO_DBLIB_SHARED
87734
 
  is_it_shared=$PHP_PDO_SHARED
87735
 
  is_it_enabled=$PHP_PDO
87736
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
87737
 
    { { $as_echo "$as_me:$LINENO: error: 
87738
 
You've configured extension pdo_dblib to build statically, but it
87739
 
depends on extension pdo, which you've configured to build shared.
87740
 
You either need to build pdo_dblib shared or build pdo statically for the
87741
 
build to be successful.
87742
 
" >&5
87743
 
$as_echo "$as_me: error: 
87744
 
You've configured extension pdo_dblib to build statically, but it
87745
 
depends on extension pdo, which you've configured to build shared.
87746
 
You either need to build pdo_dblib shared or build pdo statically for the
87747
 
build to be successful.
87748
 
" >&2;}
87749
 
   { (exit 1); exit 1; }; }
87750
 
  fi
87751
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
87752
 
    { { $as_echo "$as_me:$LINENO: error: 
87753
 
You've configured extension pdo_dblib, which depends on extension pdo,
87754
 
but you've either not enabled pdo, or have disabled it.
87755
 
" >&5
87756
 
$as_echo "$as_me: error: 
87757
 
You've configured extension pdo_dblib, which depends on extension pdo,
87758
 
but you've either not enabled pdo, or have disabled it.
87759
 
" >&2;}
87760
 
   { (exit 1); exit 1; }; }
87761
 
  fi
87762
 
  
87763
 
  
87764
 
fi
87765
 
 
87766
 
 
87767
 
 
87768
 
php_with_pdo_firebird=no
87769
 
 
87770
 
{ $as_echo "$as_me:$LINENO: checking for Firebird support for PDO" >&5
87771
 
$as_echo_n "checking for Firebird support for PDO... " >&6; }
87772
 
 
87773
 
@%:@ Check whether --with-pdo-firebird was given.
87774
 
if test "${with_pdo_firebird+set}" = set; then
87775
 
  withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval
87776
 
else
87777
 
  
87778
 
  PHP_PDO_FIREBIRD=no
87779
 
  test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL
87780
 
 
87781
 
fi
87782
 
 
87783
 
 
87784
 
 
87785
 
ext_output="yes, shared"
87786
 
ext_shared=yes
87787
 
case $PHP_PDO_FIREBIRD in
87788
 
shared,*)
87789
 
  PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'`
87790
 
  ;;
87791
 
shared)
87792
 
  PHP_PDO_FIREBIRD=yes
87793
 
  ;;
87794
 
no)
87795
 
  ext_output=no
87796
 
  ext_shared=no
87797
 
  ;;
87798
 
*)
87799
 
  ext_output=yes
87800
 
  ext_shared=no
87801
 
  ;;
87802
 
esac
87803
 
 
87804
 
 
87805
 
 
87806
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
87807
 
$as_echo "$ext_output" >&6; }
87808
 
 
87809
 
 
87810
 
 
87811
 
 
87812
 
if test "$PHP_PDO_FIREBIRD" != "no"; then
87813
 
 
87814
 
  if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
87815
 
    { { $as_echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
87816
 
$as_echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
87817
 
   { (exit 1); exit 1; }; }
87818
 
  fi
87819
 
 
87820
 
  if test "$PHP_PDO_FIREBIRD" = "yes"; then
87821
 
    FIREBIRD_INCDIR=
87822
 
    FIREBIRD_LIBDIR=
87823
 
    FIREBIRD_LIBDIR_FLAG=
87824
 
  else
87825
 
    FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include
87826
 
    FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR
87827
 
    FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR
87828
 
  fi
87829
 
 
87830
 
  
87831
 
  save_old_LDFLAGS=$LDFLAGS
87832
 
  ac_stuff="
87833
 
    $FIREBIRD_LIBDIR_FLAG
87834
 
  "
87835
 
  
87836
 
  save_ext_shared=$ext_shared
87837
 
  ext_shared=yes
87838
 
  
87839
 
  for ac_i in $ac_stuff; do
87840
 
    case $ac_i in
87841
 
    -pthread)
87842
 
      if test "$ext_shared" = "yes"; then
87843
 
        LDFLAGS="$LDFLAGS -pthread"
87844
 
      else
87845
 
        
87846
 
  
87847
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
87848
 
  
87849
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
87850
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
87851
 
    eval "EXTRA_LDFLAGS$unique=set"
87852
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
87853
 
  fi
87854
 
 
87855
 
      fi
87856
 
    ;;
87857
 
    -l*)
87858
 
      ac_ii=`echo $ac_i|cut -c 3-`
87859
 
      
87860
 
  
87861
 
  case $ac_ii in
87862
 
  c|c_r|pthread*) ;;
87863
 
  *) 
87864
 
    if test "$ext_shared" = "yes"; then
87865
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
87866
 
    else
87867
 
      
87868
 
  
87869
 
  case $ac_ii in
87870
 
  c|c_r|pthread*) ;;
87871
 
  *) 
87872
 
      LIBS="$LIBS -l$ac_ii" 
87873
 
   ;;
87874
 
  esac
87875
 
 
87876
 
 
87877
 
    fi
87878
 
   ;;
87879
 
  esac
87880
 
 
87881
 
 
87882
 
    ;;
87883
 
    -L*)
87884
 
      ac_ii=`echo $ac_i|cut -c 3-`
87885
 
      
87886
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
87887
 
    
87888
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
87889
 
    ai_p=$ac_ii
87890
 
  else
87891
 
    
87892
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
87893
 
    
87894
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87895
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
87896
 
  fi
87897
 
 
87898
 
    
87899
 
      if test "$ext_shared" = "yes"; then
87900
 
        LDFLAGS="-L$ai_p $LDFLAGS"
87901
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
87902
 
      else
87903
 
        
87904
 
  
87905
 
  
87906
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87907
 
  
87908
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87909
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
87910
 
    eval "LIBPATH$unique=set"
87911
 
    
87912
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87913
 
    LDFLAGS="$LDFLAGS -L$ai_p"
87914
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
87915
 
  
87916
 
  fi
87917
 
 
87918
 
 
87919
 
      fi
87920
 
    
87921
 
  fi
87922
 
 
87923
 
    ;;
87924
 
    esac
87925
 
  done
87926
 
 
87927
 
  { $as_echo "$as_me:$LINENO: checking for isc_detach_database in -lfbclient" >&5
87928
 
$as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
87929
 
if test "${ac_cv_lib_fbclient_isc_detach_database+set}" = set; then
87930
 
  $as_echo_n "(cached) " >&6
87931
 
else
87932
 
  ac_check_lib_save_LIBS=$LIBS
87933
 
LIBS="-lfbclient  $LIBS"
87934
 
cat >conftest.$ac_ext <<_ACEOF
87935
 
/* confdefs.h.  */
87936
 
_ACEOF
87937
 
cat confdefs.h >>conftest.$ac_ext
87938
 
cat >>conftest.$ac_ext <<_ACEOF
87939
 
/* end confdefs.h.  */
87940
 
 
87941
 
/* Override any GCC internal prototype to avoid an error.
87942
 
   Use char because int might match the return type of a GCC
87943
 
   builtin and then its argument prototype would still apply.  */
87944
 
#ifdef __cplusplus
87945
 
extern "C"
87946
 
#endif
87947
 
char isc_detach_database ();
87948
 
int
87949
 
main ()
87950
 
{
87951
 
return isc_detach_database ();
87952
 
  ;
87953
 
  return 0;
87954
 
}
87955
 
_ACEOF
87956
 
rm -f conftest.$ac_objext conftest$ac_exeext
87957
 
if { (ac_try="$ac_link"
87958
 
case "(($ac_try" in
87959
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
87960
 
  *) ac_try_echo=$ac_try;;
87961
 
esac
87962
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
87963
 
$as_echo "$ac_try_echo") >&5
87964
 
  (eval "$ac_link") 2>conftest.er1
87965
 
  ac_status=$?
87966
 
  grep -v '^ *+' conftest.er1 >conftest.err
87967
 
  rm -f conftest.er1
87968
 
  cat conftest.err >&5
87969
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
87970
 
  (exit $ac_status); } && {
87971
 
         test -z "$ac_c_werror_flag" ||
87972
 
         test ! -s conftest.err
87973
 
       } && test -s conftest$ac_exeext && {
87974
 
         test "$cross_compiling" = yes ||
87975
 
         $as_test_x conftest$ac_exeext
87976
 
       }; then
87977
 
  ac_cv_lib_fbclient_isc_detach_database=yes
87978
 
else
87979
 
  $as_echo "$as_me: failed program was:" >&5
87980
 
sed 's/^/| /' conftest.$ac_ext >&5
87981
 
 
87982
 
        ac_cv_lib_fbclient_isc_detach_database=no
87983
 
fi
87984
 
 
87985
 
rm -rf conftest.dSYM
87986
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
87987
 
      conftest$ac_exeext conftest.$ac_ext
87988
 
LIBS=$ac_check_lib_save_LIBS
87989
 
fi
87990
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
87991
 
$as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
87992
 
if test "x$ac_cv_lib_fbclient_isc_detach_database" = x""yes; then
87993
 
  
87994
 
    LDFLAGS=$save_old_LDFLAGS
87995
 
    ext_shared=$save_ext_shared
87996
 
    
87997
 
    FIREBIRD_LIBNAME=fbclient
87998
 
  
87999
 
  
88000
 
else
88001
 
  
88002
 
    LDFLAGS=$save_old_LDFLAGS
88003
 
    ext_shared=$save_ext_shared
88004
 
    unset ac_cv_lib_fbclient_isc_detach_database
88005
 
    
88006
 
    
88007
 
  save_old_LDFLAGS=$LDFLAGS
88008
 
  ac_stuff="
88009
 
      $FIREBIRD_LIBDIR_FLAG
88010
 
    "
88011
 
  
88012
 
  save_ext_shared=$ext_shared
88013
 
  ext_shared=yes
88014
 
  
88015
 
  for ac_i in $ac_stuff; do
88016
 
    case $ac_i in
88017
 
    -pthread)
88018
 
      if test "$ext_shared" = "yes"; then
88019
 
        LDFLAGS="$LDFLAGS -pthread"
88020
 
      else
88021
 
        
88022
 
  
88023
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
88024
 
  
88025
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
88026
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
88027
 
    eval "EXTRA_LDFLAGS$unique=set"
88028
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
88029
 
  fi
88030
 
 
88031
 
      fi
88032
 
    ;;
88033
 
    -l*)
88034
 
      ac_ii=`echo $ac_i|cut -c 3-`
88035
 
      
88036
 
  
88037
 
  case $ac_ii in
88038
 
  c|c_r|pthread*) ;;
88039
 
  *) 
88040
 
    if test "$ext_shared" = "yes"; then
88041
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
88042
 
    else
88043
 
      
88044
 
  
88045
 
  case $ac_ii in
88046
 
  c|c_r|pthread*) ;;
88047
 
  *) 
88048
 
      LIBS="$LIBS -l$ac_ii" 
88049
 
   ;;
88050
 
  esac
88051
 
 
88052
 
 
88053
 
    fi
88054
 
   ;;
88055
 
  esac
88056
 
 
88057
 
 
88058
 
    ;;
88059
 
    -L*)
88060
 
      ac_ii=`echo $ac_i|cut -c 3-`
88061
 
      
88062
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
88063
 
    
88064
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
88065
 
    ai_p=$ac_ii
88066
 
  else
88067
 
    
88068
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
88069
 
    
88070
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88071
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
88072
 
  fi
88073
 
 
88074
 
    
88075
 
      if test "$ext_shared" = "yes"; then
88076
 
        LDFLAGS="-L$ai_p $LDFLAGS"
88077
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
88078
 
      else
88079
 
        
88080
 
  
88081
 
  
88082
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88083
 
  
88084
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88085
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
88086
 
    eval "LIBPATH$unique=set"
88087
 
    
88088
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88089
 
    LDFLAGS="$LDFLAGS -L$ai_p"
88090
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
88091
 
  
88092
 
  fi
88093
 
 
88094
 
 
88095
 
      fi
88096
 
    
88097
 
  fi
88098
 
 
88099
 
    ;;
88100
 
    esac
88101
 
  done
88102
 
 
88103
 
  { $as_echo "$as_me:$LINENO: checking for isc_detach_database in -lgds" >&5
88104
 
$as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
88105
 
if test "${ac_cv_lib_gds_isc_detach_database+set}" = set; then
88106
 
  $as_echo_n "(cached) " >&6
88107
 
else
88108
 
  ac_check_lib_save_LIBS=$LIBS
88109
 
LIBS="-lgds  $LIBS"
88110
 
cat >conftest.$ac_ext <<_ACEOF
88111
 
/* confdefs.h.  */
88112
 
_ACEOF
88113
 
cat confdefs.h >>conftest.$ac_ext
88114
 
cat >>conftest.$ac_ext <<_ACEOF
88115
 
/* end confdefs.h.  */
88116
 
 
88117
 
/* Override any GCC internal prototype to avoid an error.
88118
 
   Use char because int might match the return type of a GCC
88119
 
   builtin and then its argument prototype would still apply.  */
88120
 
#ifdef __cplusplus
88121
 
extern "C"
88122
 
#endif
88123
 
char isc_detach_database ();
88124
 
int
88125
 
main ()
88126
 
{
88127
 
return isc_detach_database ();
88128
 
  ;
88129
 
  return 0;
88130
 
}
88131
 
_ACEOF
88132
 
rm -f conftest.$ac_objext conftest$ac_exeext
88133
 
if { (ac_try="$ac_link"
88134
 
case "(($ac_try" in
88135
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88136
 
  *) ac_try_echo=$ac_try;;
88137
 
esac
88138
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88139
 
$as_echo "$ac_try_echo") >&5
88140
 
  (eval "$ac_link") 2>conftest.er1
88141
 
  ac_status=$?
88142
 
  grep -v '^ *+' conftest.er1 >conftest.err
88143
 
  rm -f conftest.er1
88144
 
  cat conftest.err >&5
88145
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88146
 
  (exit $ac_status); } && {
88147
 
         test -z "$ac_c_werror_flag" ||
88148
 
         test ! -s conftest.err
88149
 
       } && test -s conftest$ac_exeext && {
88150
 
         test "$cross_compiling" = yes ||
88151
 
         $as_test_x conftest$ac_exeext
88152
 
       }; then
88153
 
  ac_cv_lib_gds_isc_detach_database=yes
88154
 
else
88155
 
  $as_echo "$as_me: failed program was:" >&5
88156
 
sed 's/^/| /' conftest.$ac_ext >&5
88157
 
 
88158
 
        ac_cv_lib_gds_isc_detach_database=no
88159
 
fi
88160
 
 
88161
 
rm -rf conftest.dSYM
88162
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88163
 
      conftest$ac_exeext conftest.$ac_ext
88164
 
LIBS=$ac_check_lib_save_LIBS
88165
 
fi
88166
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gds_isc_detach_database" >&5
88167
 
$as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
88168
 
if test "x$ac_cv_lib_gds_isc_detach_database" = x""yes; then
88169
 
  
88170
 
    LDFLAGS=$save_old_LDFLAGS
88171
 
    ext_shared=$save_ext_shared
88172
 
    
88173
 
      FIREBIRD_LIBNAME=gds
88174
 
    
88175
 
  
88176
 
else
88177
 
  
88178
 
    LDFLAGS=$save_old_LDFLAGS
88179
 
    ext_shared=$save_ext_shared
88180
 
    unset ac_cv_lib_gds_isc_detach_database
88181
 
    
88182
 
      
88183
 
  save_old_LDFLAGS=$LDFLAGS
88184
 
  ac_stuff="
88185
 
        $FIREBIRD_LIBDIR_FLAG
88186
 
      "
88187
 
  
88188
 
  save_ext_shared=$ext_shared
88189
 
  ext_shared=yes
88190
 
  
88191
 
  for ac_i in $ac_stuff; do
88192
 
    case $ac_i in
88193
 
    -pthread)
88194
 
      if test "$ext_shared" = "yes"; then
88195
 
        LDFLAGS="$LDFLAGS -pthread"
88196
 
      else
88197
 
        
88198
 
  
88199
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
88200
 
  
88201
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
88202
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
88203
 
    eval "EXTRA_LDFLAGS$unique=set"
88204
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
88205
 
  fi
88206
 
 
88207
 
      fi
88208
 
    ;;
88209
 
    -l*)
88210
 
      ac_ii=`echo $ac_i|cut -c 3-`
88211
 
      
88212
 
  
88213
 
  case $ac_ii in
88214
 
  c|c_r|pthread*) ;;
88215
 
  *) 
88216
 
    if test "$ext_shared" = "yes"; then
88217
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
88218
 
    else
88219
 
      
88220
 
  
88221
 
  case $ac_ii in
88222
 
  c|c_r|pthread*) ;;
88223
 
  *) 
88224
 
      LIBS="$LIBS -l$ac_ii" 
88225
 
   ;;
88226
 
  esac
88227
 
 
88228
 
 
88229
 
    fi
88230
 
   ;;
88231
 
  esac
88232
 
 
88233
 
 
88234
 
    ;;
88235
 
    -L*)
88236
 
      ac_ii=`echo $ac_i|cut -c 3-`
88237
 
      
88238
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
88239
 
    
88240
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
88241
 
    ai_p=$ac_ii
88242
 
  else
88243
 
    
88244
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
88245
 
    
88246
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88247
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
88248
 
  fi
88249
 
 
88250
 
    
88251
 
      if test "$ext_shared" = "yes"; then
88252
 
        LDFLAGS="-L$ai_p $LDFLAGS"
88253
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
88254
 
      else
88255
 
        
88256
 
  
88257
 
  
88258
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88259
 
  
88260
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88261
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
88262
 
    eval "LIBPATH$unique=set"
88263
 
    
88264
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88265
 
    LDFLAGS="$LDFLAGS -L$ai_p"
88266
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
88267
 
  
88268
 
  fi
88269
 
 
88270
 
 
88271
 
      fi
88272
 
    
88273
 
  fi
88274
 
 
88275
 
    ;;
88276
 
    esac
88277
 
  done
88278
 
 
88279
 
  { $as_echo "$as_me:$LINENO: checking for isc_detach_database in -lib_util" >&5
88280
 
$as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
88281
 
if test "${ac_cv_lib_ib_util_isc_detach_database+set}" = set; then
88282
 
  $as_echo_n "(cached) " >&6
88283
 
else
88284
 
  ac_check_lib_save_LIBS=$LIBS
88285
 
LIBS="-lib_util  $LIBS"
88286
 
cat >conftest.$ac_ext <<_ACEOF
88287
 
/* confdefs.h.  */
88288
 
_ACEOF
88289
 
cat confdefs.h >>conftest.$ac_ext
88290
 
cat >>conftest.$ac_ext <<_ACEOF
88291
 
/* end confdefs.h.  */
88292
 
 
88293
 
/* Override any GCC internal prototype to avoid an error.
88294
 
   Use char because int might match the return type of a GCC
88295
 
   builtin and then its argument prototype would still apply.  */
88296
 
#ifdef __cplusplus
88297
 
extern "C"
88298
 
#endif
88299
 
char isc_detach_database ();
88300
 
int
88301
 
main ()
88302
 
{
88303
 
return isc_detach_database ();
88304
 
  ;
88305
 
  return 0;
88306
 
}
88307
 
_ACEOF
88308
 
rm -f conftest.$ac_objext conftest$ac_exeext
88309
 
if { (ac_try="$ac_link"
88310
 
case "(($ac_try" in
88311
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88312
 
  *) ac_try_echo=$ac_try;;
88313
 
esac
88314
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88315
 
$as_echo "$ac_try_echo") >&5
88316
 
  (eval "$ac_link") 2>conftest.er1
88317
 
  ac_status=$?
88318
 
  grep -v '^ *+' conftest.er1 >conftest.err
88319
 
  rm -f conftest.er1
88320
 
  cat conftest.err >&5
88321
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88322
 
  (exit $ac_status); } && {
88323
 
         test -z "$ac_c_werror_flag" ||
88324
 
         test ! -s conftest.err
88325
 
       } && test -s conftest$ac_exeext && {
88326
 
         test "$cross_compiling" = yes ||
88327
 
         $as_test_x conftest$ac_exeext
88328
 
       }; then
88329
 
  ac_cv_lib_ib_util_isc_detach_database=yes
88330
 
else
88331
 
  $as_echo "$as_me: failed program was:" >&5
88332
 
sed 's/^/| /' conftest.$ac_ext >&5
88333
 
 
88334
 
        ac_cv_lib_ib_util_isc_detach_database=no
88335
 
fi
88336
 
 
88337
 
rm -rf conftest.dSYM
88338
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88339
 
      conftest$ac_exeext conftest.$ac_ext
88340
 
LIBS=$ac_check_lib_save_LIBS
88341
 
fi
88342
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
88343
 
$as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
88344
 
if test "x$ac_cv_lib_ib_util_isc_detach_database" = x""yes; then
88345
 
  
88346
 
    LDFLAGS=$save_old_LDFLAGS
88347
 
    ext_shared=$save_ext_shared
88348
 
    
88349
 
        FIREBIRD_LIBNAME=ib_util
88350
 
      
88351
 
  
88352
 
else
88353
 
  
88354
 
    LDFLAGS=$save_old_LDFLAGS
88355
 
    ext_shared=$save_ext_shared
88356
 
    unset ac_cv_lib_ib_util_isc_detach_database
88357
 
    
88358
 
        { { $as_echo "$as_me:$LINENO: error: libfbclient, libgds or libib_util not found! Check config.log for more information." >&5
88359
 
$as_echo "$as_me: error: libfbclient, libgds or libib_util not found! Check config.log for more information." >&2;}
88360
 
   { (exit 1); exit 1; }; }
88361
 
      
88362
 
  
88363
 
fi
88364
 
 
88365
 
    
88366
 
  
88367
 
fi
88368
 
 
88369
 
  
88370
 
  
88371
 
fi
88372
 
 
88373
 
 
88374
 
  
88375
 
  { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
88376
 
$as_echo_n "checking for PDO includes... " >&6; }
88377
 
if test "${pdo_inc_path+set}" = set; then
88378
 
  $as_echo_n "(cached) " >&6
88379
 
else
88380
 
  
88381
 
    { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
88382
 
$as_echo_n "checking for PDO includes... " >&6; }
88383
 
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
88384
 
      pdo_inc_path=$abs_srcdir/ext
88385
 
    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
88386
 
      pdo_inc_path=$abs_srcdir/ext
88387
 
    elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
88388
 
      pdo_inc_path=$prefix/include/php/ext
88389
 
    fi
88390
 
  
88391
 
fi
88392
 
{ $as_echo "$as_me:$LINENO: result: $pdo_inc_path" >&5
88393
 
$as_echo "$pdo_inc_path" >&6; }
88394
 
  if test -n "$pdo_inc_path"; then
88395
 
:
88396
 
  else
88397
 
{ { $as_echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
88398
 
$as_echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
88399
 
   { (exit 1); exit 1; }; }
88400
 
  fi
88401
 
 
88402
 
 
88403
 
  
88404
 
 
88405
 
  if test "$ext_shared" = "yes"; then
88406
 
    PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD"
88407
 
    if test -n "$FIREBIRD_LIBDIR"; then
88408
 
      
88409
 
  if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
88410
 
    
88411
 
  if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
88412
 
    ai_p=$FIREBIRD_LIBDIR
88413
 
  else
88414
 
    
88415
 
    ep_dir="`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
88416
 
    
88417
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88418
 
    ai_p="$ep_realdir/`basename \"$FIREBIRD_LIBDIR\"`"
88419
 
  fi
88420
 
 
88421
 
    
88422
 
      if test "$ext_shared" = "yes"; then
88423
 
        PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
88424
 
        test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
88425
 
      else
88426
 
        
88427
 
  
88428
 
  
88429
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88430
 
  
88431
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88432
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
88433
 
    eval "LIBPATH$unique=set"
88434
 
    
88435
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88436
 
    LDFLAGS="$LDFLAGS -L$ai_p"
88437
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
88438
 
  
88439
 
  fi
88440
 
 
88441
 
 
88442
 
      fi
88443
 
    
88444
 
  fi
88445
 
 
88446
 
    fi
88447
 
  else
88448
 
    
88449
 
 
88450
 
  if test -n "$FIREBIRD_LIBDIR"; then
88451
 
    
88452
 
  if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
88453
 
    
88454
 
  if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
88455
 
    ai_p=$FIREBIRD_LIBDIR
88456
 
  else
88457
 
    
88458
 
    ep_dir="`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
88459
 
    
88460
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88461
 
    ai_p="$ep_realdir/`basename \"$FIREBIRD_LIBDIR\"`"
88462
 
  fi
88463
 
 
88464
 
    
88465
 
      
88466
 
  
88467
 
  
88468
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88469
 
  
88470
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88471
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
88472
 
    eval "LIBPATH$unique=set"
88473
 
    
88474
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88475
 
    LDFLAGS="$LDFLAGS -L$ai_p"
88476
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
88477
 
  
88478
 
  fi
88479
 
 
88480
 
 
88481
 
    
88482
 
  fi
88483
 
 
88484
 
  fi
88485
 
  
88486
 
  
88487
 
  case $FIREBIRD_LIBNAME in
88488
 
  c|c_r|pthread*) ;;
88489
 
  *) 
88490
 
      LIBS="-l$FIREBIRD_LIBNAME $LIBS" 
88491
 
   ;;
88492
 
  esac
88493
 
 
88494
 
 
88495
 
 
88496
 
 
88497
 
  fi
88498
 
 
88499
 
 
88500
 
  
88501
 
  if test "$FIREBIRD_INCDIR" != "/usr/include"; then
88502
 
    
88503
 
  if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then
88504
 
    ai_p=$FIREBIRD_INCDIR
88505
 
  else
88506
 
    
88507
 
    ep_dir="`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
88508
 
    
88509
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88510
 
    ai_p="$ep_realdir/`basename \"$FIREBIRD_INCDIR\"`"
88511
 
  fi
88512
 
 
88513
 
    
88514
 
  
88515
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88516
 
  
88517
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
88518
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
88519
 
    eval "INCLUDEPATH$unique=set"
88520
 
    
88521
 
      if test ""; then
88522
 
        INCLUDES="-I$ai_p $INCLUDES"
88523
 
      else
88524
 
        INCLUDES="$INCLUDES -I$ai_p"
88525
 
      fi
88526
 
    
88527
 
  fi
88528
 
 
88529
 
  fi
88530
 
 
88531
 
  
88532
 
cat >>confdefs.h <<\_ACEOF
88533
 
@%:@define HAVE_PDO_FIREBIRD 1
88534
 
_ACEOF
88535
 
 
88536
 
  
88537
 
  ext_builddir=ext/pdo_firebird
88538
 
  ext_srcdir=$abs_srcdir/ext/pdo_firebird
88539
 
 
88540
 
  ac_extra=`echo "-I$pdo_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
88541
 
 
88542
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
88543
 
    PHP_PDO_FIREBIRD_SHARED=no
88544
 
    
88545
 
  
88546
 
  case ext/pdo_firebird in
88547
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88548
 
  /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88549
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88550
 
  esac
88551
 
  
88552
 
  
88553
 
 
88554
 
  b_c_pre=$php_c_pre
88555
 
  b_cxx_pre=$php_cxx_pre
88556
 
  b_c_meta=$php_c_meta
88557
 
  b_cxx_meta=$php_cxx_meta
88558
 
  b_c_post=$php_c_post
88559
 
  b_cxx_post=$php_cxx_post
88560
 
  b_lo=$php_lo
88561
 
 
88562
 
 
88563
 
  old_IFS=$IFS
88564
 
  for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
88565
 
  
88566
 
      IFS=.
88567
 
      set $ac_src
88568
 
      ac_obj=$1
88569
 
      IFS=$old_IFS
88570
 
      
88571
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
88572
 
 
88573
 
      case $ac_src in
88574
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88575
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88576
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88577
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88578
 
      esac
88579
 
 
88580
 
    cat >>Makefile.objects<<EOF
88581
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88582
 
        $ac_comp
88583
 
EOF
88584
 
  done
88585
 
 
88586
 
 
88587
 
    EXT_STATIC="$EXT_STATIC pdo_firebird"
88588
 
    if test "$ext_shared" != "nocli"; then
88589
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
88590
 
    fi
88591
 
  else
88592
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
88593
 
      PHP_PDO_FIREBIRD_SHARED=yes
88594
 
      
88595
 
  case ext/pdo_firebird in
88596
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88597
 
  /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88598
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88599
 
  esac
88600
 
  
88601
 
  
88602
 
 
88603
 
  b_c_pre=$shared_c_pre
88604
 
  b_cxx_pre=$shared_cxx_pre
88605
 
  b_c_meta=$shared_c_meta
88606
 
  b_cxx_meta=$shared_cxx_meta
88607
 
  b_c_post=$shared_c_post
88608
 
  b_cxx_post=$shared_cxx_post
88609
 
  b_lo=$shared_lo
88610
 
 
88611
 
 
88612
 
  old_IFS=$IFS
88613
 
  for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
88614
 
  
88615
 
      IFS=.
88616
 
      set $ac_src
88617
 
      ac_obj=$1
88618
 
      IFS=$old_IFS
88619
 
      
88620
 
      shared_objects_pdo_firebird="$shared_objects_pdo_firebird $ac_bdir$ac_obj.lo"
88621
 
 
88622
 
      case $ac_src in
88623
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88624
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88625
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88626
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88627
 
      esac
88628
 
 
88629
 
    cat >>Makefile.objects<<EOF
88630
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88631
 
        $ac_comp
88632
 
EOF
88633
 
  done
88634
 
 
88635
 
      case $host_alias in
88636
 
        *netware*)
88637
 
          
88638
 
  install_modules="install-modules"
88639
 
 
88640
 
  case $host_alias in
88641
 
    *aix*)
88642
 
      suffix=so
88643
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_firebird.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PHPPDO_FIREBIRD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_firebird.so '$ext_builddir'/phppdo_firebird.so'
88644
 
      ;;
88645
 
    *netware*)
88646
 
      suffix=nlm
88647
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) -L$(top_builddir)/netware -lphp5lib $(PDO_FIREBIRD_SHARED_LIBADD)'
88648
 
      ;;
88649
 
    *)
88650
 
      suffix=la
88651
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PHPPDO_FIREBIRD_SHARED_LIBADD)'
88652
 
      ;;
88653
 
  esac
88654
 
 
88655
 
  if test "x" = "xyes"; then
88656
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_firebird.$suffix"
88657
 
  else
88658
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_firebird.$suffix"
88659
 
  fi
88660
 
  
88661
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
88662
 
 
88663
 
  cat >>Makefile.objects<<EOF
88664
 
\$(phplibdir)/phppdo_firebird.$suffix: $ext_builddir/phppdo_firebird.$suffix
88665
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_firebird.$suffix \$(phplibdir)
88666
 
 
88667
 
$ext_builddir/phppdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PHPPDO_FIREBIRD_SHARED_DEPENDENCIES)
88668
 
        $link_cmd
88669
 
 
88670
 
EOF
88671
 
 
88672
 
          ;;
88673
 
        *)
88674
 
          
88675
 
  install_modules="install-modules"
88676
 
 
88677
 
  case $host_alias in
88678
 
    *aix*)
88679
 
      suffix=so
88680
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_firebird.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PDO_FIREBIRD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_firebird.so '$ext_builddir'/pdo_firebird.so'
88681
 
      ;;
88682
 
    *netware*)
88683
 
      suffix=nlm
88684
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) -L$(top_builddir)/netware -lphp5lib $(_FIREBIRD_SHARED_LIBADD)'
88685
 
      ;;
88686
 
    *)
88687
 
      suffix=la
88688
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_firebird) $(PDO_FIREBIRD_SHARED_LIBADD)'
88689
 
      ;;
88690
 
  esac
88691
 
 
88692
 
  if test "x" = "xyes"; then
88693
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_firebird.$suffix"
88694
 
  else
88695
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_firebird.$suffix"
88696
 
  fi
88697
 
  
88698
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
88699
 
 
88700
 
  cat >>Makefile.objects<<EOF
88701
 
\$(phplibdir)/pdo_firebird.$suffix: $ext_builddir/pdo_firebird.$suffix
88702
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_firebird.$suffix \$(phplibdir)
88703
 
 
88704
 
$ext_builddir/pdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PDO_FIREBIRD_SHARED_DEPENDENCIES)
88705
 
        $link_cmd
88706
 
 
88707
 
EOF
88708
 
 
88709
 
          ;;
88710
 
      esac
88711
 
      
88712
 
cat >>confdefs.h <<_ACEOF
88713
 
@%:@define COMPILE_DL_PDO_FIREBIRD 1
88714
 
_ACEOF
88715
 
 
88716
 
    fi
88717
 
  fi
88718
 
 
88719
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
88720
 
    PHP_PDO_FIREBIRD_SHARED=no
88721
 
    case "$PHP_SAPI" in
88722
 
      cgi|embed)
88723
 
        
88724
 
  
88725
 
  case ext/pdo_firebird in
88726
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88727
 
  /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88728
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88729
 
  esac
88730
 
  
88731
 
  
88732
 
 
88733
 
  b_c_pre=$php_c_pre
88734
 
  b_cxx_pre=$php_cxx_pre
88735
 
  b_c_meta=$php_c_meta
88736
 
  b_cxx_meta=$php_cxx_meta
88737
 
  b_c_post=$php_c_post
88738
 
  b_cxx_post=$php_cxx_post
88739
 
  b_lo=$php_lo
88740
 
 
88741
 
 
88742
 
  old_IFS=$IFS
88743
 
  for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
88744
 
  
88745
 
      IFS=.
88746
 
      set $ac_src
88747
 
      ac_obj=$1
88748
 
      IFS=$old_IFS
88749
 
      
88750
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
88751
 
 
88752
 
      case $ac_src in
88753
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88754
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88755
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88756
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88757
 
      esac
88758
 
 
88759
 
    cat >>Makefile.objects<<EOF
88760
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88761
 
        $ac_comp
88762
 
EOF
88763
 
  done
88764
 
 
88765
 
 
88766
 
        EXT_STATIC="$EXT_STATIC pdo_firebird"
88767
 
        ;;
88768
 
      *)
88769
 
        
88770
 
  
88771
 
  case ext/pdo_firebird in
88772
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88773
 
  /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88774
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88775
 
  esac
88776
 
  
88777
 
  
88778
 
 
88779
 
  b_c_pre=$php_c_pre
88780
 
  b_cxx_pre=$php_cxx_pre
88781
 
  b_c_meta=$php_c_meta
88782
 
  b_cxx_meta=$php_cxx_meta
88783
 
  b_c_post=$php_c_post
88784
 
  b_cxx_post=$php_cxx_post
88785
 
  b_lo=$php_lo
88786
 
 
88787
 
 
88788
 
  old_IFS=$IFS
88789
 
  for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
88790
 
  
88791
 
      IFS=.
88792
 
      set $ac_src
88793
 
      ac_obj=$1
88794
 
      IFS=$old_IFS
88795
 
      
88796
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
88797
 
 
88798
 
      case $ac_src in
88799
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88800
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88801
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88802
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88803
 
      esac
88804
 
 
88805
 
    cat >>Makefile.objects<<EOF
88806
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88807
 
        $ac_comp
88808
 
EOF
88809
 
  done
88810
 
 
88811
 
 
88812
 
        ;;
88813
 
    esac
88814
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
88815
 
  fi
88816
 
  
88817
 
  
88818
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
88819
 
  
88820
 
 
88821
 
 
88822
 
  if test "$ext_builddir" = "."; then
88823
 
    PHP_PECL_EXTENSION=pdo_firebird
88824
 
    
88825
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
88826
 
 
88827
 
  fi
88828
 
 
88829
 
  
88830
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_FIREBIRD_SHARED_LIBADD"
88831
 
 
88832
 
  
88833
 
  am_i_shared=$PHP_PDO_FIREBIRD_SHARED
88834
 
  is_it_shared=$PHP_PDO_SHARED
88835
 
  is_it_enabled=$PHP_PDO
88836
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
88837
 
    { { $as_echo "$as_me:$LINENO: error: 
88838
 
You've configured extension pdo_firebird to build statically, but it
88839
 
depends on extension pdo, which you've configured to build shared.
88840
 
You either need to build pdo_firebird shared or build pdo statically for the
88841
 
build to be successful.
88842
 
" >&5
88843
 
$as_echo "$as_me: error: 
88844
 
You've configured extension pdo_firebird to build statically, but it
88845
 
depends on extension pdo, which you've configured to build shared.
88846
 
You either need to build pdo_firebird shared or build pdo statically for the
88847
 
build to be successful.
88848
 
" >&2;}
88849
 
   { (exit 1); exit 1; }; }
88850
 
  fi
88851
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
88852
 
    { { $as_echo "$as_me:$LINENO: error: 
88853
 
You've configured extension pdo_firebird, which depends on extension pdo,
88854
 
but you've either not enabled pdo, or have disabled it.
88855
 
" >&5
88856
 
$as_echo "$as_me: error: 
88857
 
You've configured extension pdo_firebird, which depends on extension pdo,
88858
 
but you've either not enabled pdo, or have disabled it.
88859
 
" >&2;}
88860
 
   { (exit 1); exit 1; }; }
88861
 
  fi
88862
 
  
88863
 
fi
88864
 
 
88865
 
 
88866
 
 
88867
 
php_with_pdo_mysql=no
88868
 
 
88869
 
{ $as_echo "$as_me:$LINENO: checking for MySQL support for PDO" >&5
88870
 
$as_echo_n "checking for MySQL support for PDO... " >&6; }
88871
 
 
88872
 
@%:@ Check whether --with-pdo-mysql was given.
88873
 
if test "${with_pdo_mysql+set}" = set; then
88874
 
  withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval
88875
 
else
88876
 
  
88877
 
  PHP_PDO_MYSQL=no
88878
 
  test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL
88879
 
 
88880
 
fi
88881
 
 
88882
 
 
88883
 
 
88884
 
ext_output="yes, shared"
88885
 
ext_shared=yes
88886
 
case $PHP_PDO_MYSQL in
88887
 
shared,*)
88888
 
  PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'`
88889
 
  ;;
88890
 
shared)
88891
 
  PHP_PDO_MYSQL=yes
88892
 
  ;;
88893
 
no)
88894
 
  ext_output=no
88895
 
  ext_shared=no
88896
 
  ;;
88897
 
*)
88898
 
  ext_output=yes
88899
 
  ext_shared=no
88900
 
  ;;
88901
 
esac
88902
 
 
88903
 
 
88904
 
 
88905
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
88906
 
$as_echo "$ext_output" >&6; }
88907
 
 
88908
 
 
88909
 
 
88910
 
 
88911
 
if test -z "$PHP_ZLIB_DIR"; then
88912
 
  
88913
 
php_with_zlib_dir=no
88914
 
 
88915
 
{ $as_echo "$as_me:$LINENO: checking for the location of libz" >&5
88916
 
$as_echo_n "checking for the location of libz... " >&6; }
88917
 
 
88918
 
@%:@ Check whether --with-zlib-dir was given.
88919
 
if test "${with_zlib_dir+set}" = set; then
88920
 
  withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
88921
 
else
88922
 
  
88923
 
  PHP_ZLIB_DIR=no
88924
 
  
88925
 
 
88926
 
fi
88927
 
 
88928
 
 
88929
 
ext_output=$PHP_ZLIB_DIR
88930
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
88931
 
$as_echo "$ext_output" >&6; }
88932
 
 
88933
 
 
88934
 
 
88935
 
fi
88936
 
 
88937
 
if test "$PHP_PDO_MYSQL" != "no"; then
88938
 
 
88939
 
  if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
88940
 
    { { $as_echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
88941
 
$as_echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
88942
 
   { (exit 1); exit 1; }; }
88943
 
  fi
88944
 
 
88945
 
  
88946
 
 
88947
 
  if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then
88948
 
    PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL
88949
 
  elif test "$PHP_PDO_MYSQL" != "yes"; then
88950
 
    if test -d "$PHP_PDO_MYSQL" ; then
88951
 
      if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then
88952
 
        PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config"
88953
 
      else
88954
 
        PDO_MYSQL_DIR="$PHP_PDO_MYSQL"
88955
 
      fi
88956
 
    fi
88957
 
  else
88958
 
    for i in /usr/local /usr ; do
88959
 
      if test -x "$i/bin/mysql_config" ; then
88960
 
        PDO_MYSQL_CONFIG="$i/bin/mysql_config"
88961
 
        break;
88962
 
      fi
88963
 
      if test -r $i/include/mysql/mysql.h || test -r $i/include/mysql.h ; then
88964
 
        PDO_MYSQL_DIR="$i"
88965
 
        break;
88966
 
      fi
88967
 
    done
88968
 
  fi
88969
 
 
88970
 
  if test "$PHP_PDO_MYSQL" = "mysqlnd"; then
88971
 
        PHP_MYSQLND_ENABLED=yes
88972
 
    
88973
 
cat >>confdefs.h <<\_ACEOF
88974
 
@%:@define PDO_USE_MYSQLND 1
88975
 
_ACEOF
88976
 
 
88977
 
  else
88978
 
    
88979
 
cat >>confdefs.h <<\_ACEOF
88980
 
@%:@define HAVE_MYSQL 1
88981
 
_ACEOF
88982
 
 
88983
 
 
88984
 
    { $as_echo "$as_me:$LINENO: checking for mysql_config" >&5
88985
 
$as_echo_n "checking for mysql_config... " >&6; }
88986
 
    if test -n "$PDO_MYSQL_CONFIG"; then
88987
 
      { $as_echo "$as_me:$LINENO: result: $PDO_MYSQL_CONFIG" >&5
88988
 
$as_echo "$PDO_MYSQL_CONFIG" >&6; }
88989
 
      if test "x$SED" = "x"; then
88990
 
        # Extract the first word of "sed", so it can be a program name with args.
88991
 
set dummy sed; ac_word=$2
88992
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
88993
 
$as_echo_n "checking for $ac_word... " >&6; }
88994
 
if test "${ac_cv_path_SED+set}" = set; then
88995
 
  $as_echo_n "(cached) " >&6
88996
 
else
88997
 
  case $SED in
88998
 
  [\\/]* | ?:[\\/]*)
88999
 
  ac_cv_path_SED="$SED" # Let the user override the test with a path.
89000
 
  ;;
89001
 
  *)
89002
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89003
 
for as_dir in $PATH
89004
 
do
89005
 
  IFS=$as_save_IFS
89006
 
  test -z "$as_dir" && as_dir=.
89007
 
  for ac_exec_ext in '' $ac_executable_extensions; do
89008
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
89009
 
    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
89010
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
89011
 
    break 2
89012
 
  fi
89013
 
done
89014
 
done
89015
 
IFS=$as_save_IFS
89016
 
 
89017
 
  ;;
89018
 
esac
89019
 
fi
89020
 
SED=$ac_cv_path_SED
89021
 
if test -n "$SED"; then
89022
 
  { $as_echo "$as_me:$LINENO: result: $SED" >&5
89023
 
$as_echo "$SED" >&6; }
89024
 
else
89025
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
89026
 
$as_echo "no" >&6; }
89027
 
fi
89028
 
 
89029
 
 
89030
 
      fi
89031
 
      if test "$enable_maintainer_zts" = "yes"; then
89032
 
        PDO_MYSQL_LIBNAME=mysqlclient_r
89033
 
        PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"`
89034
 
      else
89035
 
        PDO_MYSQL_LIBNAME=mysqlclient
89036
 
        PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"`
89037
 
      fi
89038
 
      PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
89039
 
    elif test -n "$PDO_MYSQL_DIR"; then
89040
 
      { $as_echo "$as_me:$LINENO: result: not found" >&5
89041
 
$as_echo "not found" >&6; }
89042
 
      { $as_echo "$as_me:$LINENO: checking for mysql install under $PDO_MYSQL_DIR" >&5
89043
 
$as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; }
89044
 
      if test -r $PDO_MYSQL_DIR/include/mysql; then
89045
 
        PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql
89046
 
      else
89047
 
        PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include
89048
 
      fi
89049
 
      if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then
89050
 
        PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql
89051
 
      else
89052
 
        PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR
89053
 
      fi
89054
 
 
89055
 
      if test -r "$PDO_MYSQL_LIB_DIR"; then
89056
 
        { $as_echo "$as_me:$LINENO: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5
89057
 
$as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; }
89058
 
      else
89059
 
        { $as_echo "$as_me:$LINENO: result: can not find it" >&5
89060
 
$as_echo "can not find it" >&6; }
89061
 
        { { $as_echo "$as_me:$LINENO: error: Unable to find your mysql installation" >&5
89062
 
$as_echo "$as_me: error: Unable to find your mysql installation" >&2;}
89063
 
   { (exit 1); exit 1; }; }
89064
 
      fi
89065
 
 
89066
 
      
89067
 
  if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then
89068
 
    
89069
 
  if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
89070
 
    ai_p=$PDO_MYSQL_INC_DIR
89071
 
  else
89072
 
    
89073
 
    ep_dir="`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
89074
 
    
89075
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89076
 
    ai_p="$ep_realdir/`basename \"$PDO_MYSQL_INC_DIR\"`"
89077
 
  fi
89078
 
 
89079
 
    
89080
 
  
89081
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89082
 
  
89083
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
89084
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89085
 
    eval "INCLUDEPATH$unique=set"
89086
 
    
89087
 
      if test ""; then
89088
 
        INCLUDES="-I$ai_p $INCLUDES"
89089
 
      else
89090
 
        INCLUDES="$INCLUDES -I$ai_p"
89091
 
      fi
89092
 
    
89093
 
  fi
89094
 
 
89095
 
  fi
89096
 
 
89097
 
      PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR
89098
 
    else
89099
 
      { $as_echo "$as_me:$LINENO: result: not found" >&5
89100
 
$as_echo "not found" >&6; }
89101
 
      { { $as_echo "$as_me:$LINENO: error: Unable to find your mysql installation" >&5
89102
 
$as_echo "$as_me: error: Unable to find your mysql installation" >&2;}
89103
 
   { (exit 1); exit 1; }; }
89104
 
    fi
89105
 
 
89106
 
    
89107
 
  save_old_LDFLAGS=$LDFLAGS
89108
 
  ac_stuff="
89109
 
      $PDO_MYSQL_LIBS
89110
 
    "
89111
 
  
89112
 
  save_ext_shared=$ext_shared
89113
 
  ext_shared=yes
89114
 
  
89115
 
  for ac_i in $ac_stuff; do
89116
 
    case $ac_i in
89117
 
    -pthread)
89118
 
      if test "$ext_shared" = "yes"; then
89119
 
        LDFLAGS="$LDFLAGS -pthread"
89120
 
      else
89121
 
        
89122
 
  
89123
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
89124
 
  
89125
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
89126
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89127
 
    eval "EXTRA_LDFLAGS$unique=set"
89128
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
89129
 
  fi
89130
 
 
89131
 
      fi
89132
 
    ;;
89133
 
    -l*)
89134
 
      ac_ii=`echo $ac_i|cut -c 3-`
89135
 
      
89136
 
  
89137
 
  case $ac_ii in
89138
 
  c|c_r|pthread*) ;;
89139
 
  *) 
89140
 
    if test "$ext_shared" = "yes"; then
89141
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
89142
 
    else
89143
 
      
89144
 
  
89145
 
  case $ac_ii in
89146
 
  c|c_r|pthread*) ;;
89147
 
  *) 
89148
 
      LIBS="$LIBS -l$ac_ii" 
89149
 
   ;;
89150
 
  esac
89151
 
 
89152
 
 
89153
 
    fi
89154
 
   ;;
89155
 
  esac
89156
 
 
89157
 
 
89158
 
    ;;
89159
 
    -L*)
89160
 
      ac_ii=`echo $ac_i|cut -c 3-`
89161
 
      
89162
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
89163
 
    
89164
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89165
 
    ai_p=$ac_ii
89166
 
  else
89167
 
    
89168
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89169
 
    
89170
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89171
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89172
 
  fi
89173
 
 
89174
 
    
89175
 
      if test "$ext_shared" = "yes"; then
89176
 
        LDFLAGS="-L$ai_p $LDFLAGS"
89177
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
89178
 
      else
89179
 
        
89180
 
  
89181
 
  
89182
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89183
 
  
89184
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89185
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89186
 
    eval "LIBPATH$unique=set"
89187
 
    
89188
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89189
 
    LDFLAGS="$LDFLAGS -L$ai_p"
89190
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
89191
 
  
89192
 
  fi
89193
 
 
89194
 
 
89195
 
      fi
89196
 
    
89197
 
  fi
89198
 
 
89199
 
    ;;
89200
 
    esac
89201
 
  done
89202
 
 
89203
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
89204
 
{ $as_echo "$as_me:$LINENO: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
89205
 
$as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; }
89206
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
89207
 
  $as_echo_n "(cached) " >&6
89208
 
else
89209
 
  ac_check_lib_save_LIBS=$LIBS
89210
 
LIBS="-l$PDO_MYSQL_LIBNAME  $LIBS"
89211
 
cat >conftest.$ac_ext <<_ACEOF
89212
 
/* confdefs.h.  */
89213
 
_ACEOF
89214
 
cat confdefs.h >>conftest.$ac_ext
89215
 
cat >>conftest.$ac_ext <<_ACEOF
89216
 
/* end confdefs.h.  */
89217
 
 
89218
 
/* Override any GCC internal prototype to avoid an error.
89219
 
   Use char because int might match the return type of a GCC
89220
 
   builtin and then its argument prototype would still apply.  */
89221
 
#ifdef __cplusplus
89222
 
extern "C"
89223
 
#endif
89224
 
char mysql_query ();
89225
 
int
89226
 
main ()
89227
 
{
89228
 
return mysql_query ();
89229
 
  ;
89230
 
  return 0;
89231
 
}
89232
 
_ACEOF
89233
 
rm -f conftest.$ac_objext conftest$ac_exeext
89234
 
if { (ac_try="$ac_link"
89235
 
case "(($ac_try" in
89236
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89237
 
  *) ac_try_echo=$ac_try;;
89238
 
esac
89239
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89240
 
$as_echo "$ac_try_echo") >&5
89241
 
  (eval "$ac_link") 2>conftest.er1
89242
 
  ac_status=$?
89243
 
  grep -v '^ *+' conftest.er1 >conftest.err
89244
 
  rm -f conftest.er1
89245
 
  cat conftest.err >&5
89246
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89247
 
  (exit $ac_status); } && {
89248
 
         test -z "$ac_c_werror_flag" ||
89249
 
         test ! -s conftest.err
89250
 
       } && test -s conftest$ac_exeext && {
89251
 
         test "$cross_compiling" = yes ||
89252
 
         $as_test_x conftest$ac_exeext
89253
 
       }; then
89254
 
  eval "$as_ac_Lib=yes"
89255
 
else
89256
 
  $as_echo "$as_me: failed program was:" >&5
89257
 
sed 's/^/| /' conftest.$ac_ext >&5
89258
 
 
89259
 
        eval "$as_ac_Lib=no"
89260
 
fi
89261
 
 
89262
 
rm -rf conftest.dSYM
89263
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
89264
 
      conftest$ac_exeext conftest.$ac_ext
89265
 
LIBS=$ac_check_lib_save_LIBS
89266
 
fi
89267
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
89268
 
                 $as_echo "$as_val"'`
89269
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
89270
 
$as_echo "$ac_res" >&6; }
89271
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
89272
 
                 $as_echo "$as_val"'`
89273
 
   if test "x$as_val" = x""yes; then
89274
 
  
89275
 
    LDFLAGS=$save_old_LDFLAGS
89276
 
    ext_shared=$save_ext_shared
89277
 
    
89278
 
      
89279
 
  for ac_i in $PDO_MYSQL_INCLUDE; do
89280
 
    case $ac_i in
89281
 
    -I*)
89282
 
      ac_ii=`echo $ac_i|cut -c 3-`
89283
 
      
89284
 
  if test "$ac_ii" != "/usr/include"; then
89285
 
    
89286
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89287
 
    ai_p=$ac_ii
89288
 
  else
89289
 
    
89290
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89291
 
    
89292
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89293
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89294
 
  fi
89295
 
 
89296
 
    
89297
 
  
89298
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89299
 
  
89300
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
89301
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89302
 
    eval "INCLUDEPATH$unique=set"
89303
 
    
89304
 
      if test ""; then
89305
 
        INCLUDES="-I$ai_p $INCLUDES"
89306
 
      else
89307
 
        INCLUDES="$INCLUDES -I$ai_p"
89308
 
      fi
89309
 
    
89310
 
  fi
89311
 
 
89312
 
  fi
89313
 
 
89314
 
    ;;
89315
 
    esac
89316
 
  done
89317
 
 
89318
 
      
89319
 
  for ac_i in $PDO_MYSQL_LIBS; do
89320
 
    case $ac_i in
89321
 
    -pthread)
89322
 
      if test "$ext_shared" = "yes"; then
89323
 
        PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
89324
 
      else
89325
 
        
89326
 
  
89327
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
89328
 
  
89329
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
89330
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89331
 
    eval "EXTRA_LDFLAGS$unique=set"
89332
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
89333
 
  fi
89334
 
 
89335
 
      fi
89336
 
    ;;
89337
 
    -l*)
89338
 
      ac_ii=`echo $ac_i|cut -c 3-`
89339
 
      
89340
 
  
89341
 
  case $ac_ii in
89342
 
  c|c_r|pthread*) ;;
89343
 
  *) 
89344
 
    if test "$ext_shared" = "yes"; then
89345
 
        PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" 
89346
 
    else
89347
 
      
89348
 
  
89349
 
  case $ac_ii in
89350
 
  c|c_r|pthread*) ;;
89351
 
  *) 
89352
 
      LIBS="$LIBS -l$ac_ii" 
89353
 
   ;;
89354
 
  esac
89355
 
 
89356
 
 
89357
 
    fi
89358
 
   ;;
89359
 
  esac
89360
 
 
89361
 
 
89362
 
    ;;
89363
 
    -L*)
89364
 
      ac_ii=`echo $ac_i|cut -c 3-`
89365
 
      
89366
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
89367
 
    
89368
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89369
 
    ai_p=$ac_ii
89370
 
  else
89371
 
    
89372
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89373
 
    
89374
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89375
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89376
 
  fi
89377
 
 
89378
 
    
89379
 
      if test "$ext_shared" = "yes"; then
89380
 
        PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
89381
 
        test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
89382
 
      else
89383
 
        
89384
 
  
89385
 
  
89386
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89387
 
  
89388
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89389
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89390
 
    eval "LIBPATH$unique=set"
89391
 
    
89392
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89393
 
    LDFLAGS="$LDFLAGS -L$ai_p"
89394
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
89395
 
  
89396
 
  fi
89397
 
 
89398
 
 
89399
 
      fi
89400
 
    
89401
 
  fi
89402
 
 
89403
 
    ;;
89404
 
    esac
89405
 
  done
89406
 
 
89407
 
    
89408
 
  
89409
 
else
89410
 
  
89411
 
    LDFLAGS=$save_old_LDFLAGS
89412
 
    ext_shared=$save_ext_shared
89413
 
    unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
89414
 
    
89415
 
      if test "$PHP_ZLIB_DIR" != "no"; then
89416
 
        
89417
 
 
89418
 
  if test "$ext_shared" = "yes"; then
89419
 
    PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
89420
 
    if test -n "$PHP_ZLIB_DIR"; then
89421
 
      
89422
 
  if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
89423
 
    
89424
 
  if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
89425
 
    ai_p=$PHP_ZLIB_DIR
89426
 
  else
89427
 
    
89428
 
    ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
89429
 
    
89430
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89431
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
89432
 
  fi
89433
 
 
89434
 
    
89435
 
      if test "$ext_shared" = "yes"; then
89436
 
        PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
89437
 
        test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
89438
 
      else
89439
 
        
89440
 
  
89441
 
  
89442
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89443
 
  
89444
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89445
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89446
 
    eval "LIBPATH$unique=set"
89447
 
    
89448
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89449
 
    LDFLAGS="$LDFLAGS -L$ai_p"
89450
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
89451
 
  
89452
 
  fi
89453
 
 
89454
 
 
89455
 
      fi
89456
 
    
89457
 
  fi
89458
 
 
89459
 
    fi
89460
 
  else
89461
 
    
89462
 
 
89463
 
  if test -n "$PHP_ZLIB_DIR"; then
89464
 
    
89465
 
  if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
89466
 
    
89467
 
  if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
89468
 
    ai_p=$PHP_ZLIB_DIR
89469
 
  else
89470
 
    
89471
 
    ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
89472
 
    
89473
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89474
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
89475
 
  fi
89476
 
 
89477
 
    
89478
 
      
89479
 
  
89480
 
  
89481
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89482
 
  
89483
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89484
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89485
 
    eval "LIBPATH$unique=set"
89486
 
    
89487
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89488
 
    LDFLAGS="$LDFLAGS -L$ai_p"
89489
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
89490
 
  
89491
 
  fi
89492
 
 
89493
 
 
89494
 
    
89495
 
  fi
89496
 
 
89497
 
  fi
89498
 
  
89499
 
  
89500
 
  case z in
89501
 
  c|c_r|pthread*) ;;
89502
 
  *) 
89503
 
      LIBS="-lz $LIBS" 
89504
 
   ;;
89505
 
  esac
89506
 
 
89507
 
 
89508
 
 
89509
 
 
89510
 
  fi
89511
 
 
89512
 
 
89513
 
        
89514
 
  save_old_LDFLAGS=$LDFLAGS
89515
 
  ac_stuff="
89516
 
          -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR 
89517
 
        "
89518
 
  
89519
 
  save_ext_shared=$ext_shared
89520
 
  ext_shared=yes
89521
 
  
89522
 
  for ac_i in $ac_stuff; do
89523
 
    case $ac_i in
89524
 
    -pthread)
89525
 
      if test "$ext_shared" = "yes"; then
89526
 
        LDFLAGS="$LDFLAGS -pthread"
89527
 
      else
89528
 
        
89529
 
  
89530
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
89531
 
  
89532
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
89533
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89534
 
    eval "EXTRA_LDFLAGS$unique=set"
89535
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
89536
 
  fi
89537
 
 
89538
 
      fi
89539
 
    ;;
89540
 
    -l*)
89541
 
      ac_ii=`echo $ac_i|cut -c 3-`
89542
 
      
89543
 
  
89544
 
  case $ac_ii in
89545
 
  c|c_r|pthread*) ;;
89546
 
  *) 
89547
 
    if test "$ext_shared" = "yes"; then
89548
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
89549
 
    else
89550
 
      
89551
 
  
89552
 
  case $ac_ii in
89553
 
  c|c_r|pthread*) ;;
89554
 
  *) 
89555
 
      LIBS="$LIBS -l$ac_ii" 
89556
 
   ;;
89557
 
  esac
89558
 
 
89559
 
 
89560
 
    fi
89561
 
   ;;
89562
 
  esac
89563
 
 
89564
 
 
89565
 
    ;;
89566
 
    -L*)
89567
 
      ac_ii=`echo $ac_i|cut -c 3-`
89568
 
      
89569
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
89570
 
    
89571
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89572
 
    ai_p=$ac_ii
89573
 
  else
89574
 
    
89575
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89576
 
    
89577
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89578
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89579
 
  fi
89580
 
 
89581
 
    
89582
 
      if test "$ext_shared" = "yes"; then
89583
 
        LDFLAGS="-L$ai_p $LDFLAGS"
89584
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
89585
 
      else
89586
 
        
89587
 
  
89588
 
  
89589
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89590
 
  
89591
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89592
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89593
 
    eval "LIBPATH$unique=set"
89594
 
    
89595
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89596
 
    LDFLAGS="$LDFLAGS -L$ai_p"
89597
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
89598
 
  
89599
 
  fi
89600
 
 
89601
 
 
89602
 
      fi
89603
 
    
89604
 
  fi
89605
 
 
89606
 
    ;;
89607
 
    esac
89608
 
  done
89609
 
 
89610
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
89611
 
{ $as_echo "$as_me:$LINENO: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
89612
 
$as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; }
89613
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
89614
 
  $as_echo_n "(cached) " >&6
89615
 
else
89616
 
  ac_check_lib_save_LIBS=$LIBS
89617
 
LIBS="-l$PDO_MYSQL_LIBNAME  $LIBS"
89618
 
cat >conftest.$ac_ext <<_ACEOF
89619
 
/* confdefs.h.  */
89620
 
_ACEOF
89621
 
cat confdefs.h >>conftest.$ac_ext
89622
 
cat >>conftest.$ac_ext <<_ACEOF
89623
 
/* end confdefs.h.  */
89624
 
 
89625
 
/* Override any GCC internal prototype to avoid an error.
89626
 
   Use char because int might match the return type of a GCC
89627
 
   builtin and then its argument prototype would still apply.  */
89628
 
#ifdef __cplusplus
89629
 
extern "C"
89630
 
#endif
89631
 
char mysql_query ();
89632
 
int
89633
 
main ()
89634
 
{
89635
 
return mysql_query ();
89636
 
  ;
89637
 
  return 0;
89638
 
}
89639
 
_ACEOF
89640
 
rm -f conftest.$ac_objext conftest$ac_exeext
89641
 
if { (ac_try="$ac_link"
89642
 
case "(($ac_try" in
89643
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89644
 
  *) ac_try_echo=$ac_try;;
89645
 
esac
89646
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89647
 
$as_echo "$ac_try_echo") >&5
89648
 
  (eval "$ac_link") 2>conftest.er1
89649
 
  ac_status=$?
89650
 
  grep -v '^ *+' conftest.er1 >conftest.err
89651
 
  rm -f conftest.er1
89652
 
  cat conftest.err >&5
89653
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89654
 
  (exit $ac_status); } && {
89655
 
         test -z "$ac_c_werror_flag" ||
89656
 
         test ! -s conftest.err
89657
 
       } && test -s conftest$ac_exeext && {
89658
 
         test "$cross_compiling" = yes ||
89659
 
         $as_test_x conftest$ac_exeext
89660
 
       }; then
89661
 
  eval "$as_ac_Lib=yes"
89662
 
else
89663
 
  $as_echo "$as_me: failed program was:" >&5
89664
 
sed 's/^/| /' conftest.$ac_ext >&5
89665
 
 
89666
 
        eval "$as_ac_Lib=no"
89667
 
fi
89668
 
 
89669
 
rm -rf conftest.dSYM
89670
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
89671
 
      conftest$ac_exeext conftest.$ac_ext
89672
 
LIBS=$ac_check_lib_save_LIBS
89673
 
fi
89674
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
89675
 
                 $as_echo "$as_val"'`
89676
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
89677
 
$as_echo "$ac_res" >&6; }
89678
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
89679
 
                 $as_echo "$as_val"'`
89680
 
   if test "x$as_val" = x""yes; then
89681
 
  
89682
 
    LDFLAGS=$save_old_LDFLAGS
89683
 
    ext_shared=$save_ext_shared
89684
 
    
89685
 
  
89686
 
else
89687
 
  
89688
 
    LDFLAGS=$save_old_LDFLAGS
89689
 
    ext_shared=$save_ext_shared
89690
 
    unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
89691
 
    
89692
 
          { { $as_echo "$as_me:$LINENO: error: PDO_MYSQL configure failed. Please check config.log for more information." >&5
89693
 
$as_echo "$as_me: error: PDO_MYSQL configure failed. Please check config.log for more information." >&2;}
89694
 
   { (exit 1); exit 1; }; }
89695
 
        
89696
 
  
89697
 
fi
89698
 
  
89699
 
        PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
89700
 
      else
89701
 
        
89702
 
  
89703
 
  case z in
89704
 
  c|c_r|pthread*) ;;
89705
 
  *) 
89706
 
    if test "$ext_shared" = "yes"; then
89707
 
        PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD" 
89708
 
    else
89709
 
      
89710
 
  
89711
 
  case z in
89712
 
  c|c_r|pthread*) ;;
89713
 
  *) 
89714
 
      LIBS="-lz $LIBS" 
89715
 
   ;;
89716
 
  esac
89717
 
 
89718
 
 
89719
 
    fi
89720
 
   ;;
89721
 
  esac
89722
 
 
89723
 
 
89724
 
        
89725
 
  save_old_LDFLAGS=$LDFLAGS
89726
 
  ac_stuff="
89727
 
          -L$PDO_MYSQL_LIB_DIR
89728
 
        "
89729
 
  
89730
 
  save_ext_shared=$ext_shared
89731
 
  ext_shared=yes
89732
 
  
89733
 
  for ac_i in $ac_stuff; do
89734
 
    case $ac_i in
89735
 
    -pthread)
89736
 
      if test "$ext_shared" = "yes"; then
89737
 
        LDFLAGS="$LDFLAGS -pthread"
89738
 
      else
89739
 
        
89740
 
  
89741
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
89742
 
  
89743
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
89744
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89745
 
    eval "EXTRA_LDFLAGS$unique=set"
89746
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
89747
 
  fi
89748
 
 
89749
 
      fi
89750
 
    ;;
89751
 
    -l*)
89752
 
      ac_ii=`echo $ac_i|cut -c 3-`
89753
 
      
89754
 
  
89755
 
  case $ac_ii in
89756
 
  c|c_r|pthread*) ;;
89757
 
  *) 
89758
 
    if test "$ext_shared" = "yes"; then
89759
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
89760
 
    else
89761
 
      
89762
 
  
89763
 
  case $ac_ii in
89764
 
  c|c_r|pthread*) ;;
89765
 
  *) 
89766
 
      LIBS="$LIBS -l$ac_ii" 
89767
 
   ;;
89768
 
  esac
89769
 
 
89770
 
 
89771
 
    fi
89772
 
   ;;
89773
 
  esac
89774
 
 
89775
 
 
89776
 
    ;;
89777
 
    -L*)
89778
 
      ac_ii=`echo $ac_i|cut -c 3-`
89779
 
      
89780
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
89781
 
    
89782
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89783
 
    ai_p=$ac_ii
89784
 
  else
89785
 
    
89786
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89787
 
    
89788
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89789
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89790
 
  fi
89791
 
 
89792
 
    
89793
 
      if test "$ext_shared" = "yes"; then
89794
 
        LDFLAGS="-L$ai_p $LDFLAGS"
89795
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
89796
 
      else
89797
 
        
89798
 
  
89799
 
  
89800
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89801
 
  
89802
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
89803
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89804
 
    eval "LIBPATH$unique=set"
89805
 
    
89806
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
89807
 
    LDFLAGS="$LDFLAGS -L$ai_p"
89808
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
89809
 
  
89810
 
  fi
89811
 
 
89812
 
 
89813
 
      fi
89814
 
    
89815
 
  fi
89816
 
 
89817
 
    ;;
89818
 
    esac
89819
 
  done
89820
 
 
89821
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
89822
 
{ $as_echo "$as_me:$LINENO: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
89823
 
$as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; }
89824
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
89825
 
  $as_echo_n "(cached) " >&6
89826
 
else
89827
 
  ac_check_lib_save_LIBS=$LIBS
89828
 
LIBS="-l$PDO_MYSQL_LIBNAME  $LIBS"
89829
 
cat >conftest.$ac_ext <<_ACEOF
89830
 
/* confdefs.h.  */
89831
 
_ACEOF
89832
 
cat confdefs.h >>conftest.$ac_ext
89833
 
cat >>conftest.$ac_ext <<_ACEOF
89834
 
/* end confdefs.h.  */
89835
 
 
89836
 
/* Override any GCC internal prototype to avoid an error.
89837
 
   Use char because int might match the return type of a GCC
89838
 
   builtin and then its argument prototype would still apply.  */
89839
 
#ifdef __cplusplus
89840
 
extern "C"
89841
 
#endif
89842
 
char mysql_query ();
89843
 
int
89844
 
main ()
89845
 
{
89846
 
return mysql_query ();
89847
 
  ;
89848
 
  return 0;
89849
 
}
89850
 
_ACEOF
89851
 
rm -f conftest.$ac_objext conftest$ac_exeext
89852
 
if { (ac_try="$ac_link"
89853
 
case "(($ac_try" in
89854
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89855
 
  *) ac_try_echo=$ac_try;;
89856
 
esac
89857
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89858
 
$as_echo "$ac_try_echo") >&5
89859
 
  (eval "$ac_link") 2>conftest.er1
89860
 
  ac_status=$?
89861
 
  grep -v '^ *+' conftest.er1 >conftest.err
89862
 
  rm -f conftest.er1
89863
 
  cat conftest.err >&5
89864
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89865
 
  (exit $ac_status); } && {
89866
 
         test -z "$ac_c_werror_flag" ||
89867
 
         test ! -s conftest.err
89868
 
       } && test -s conftest$ac_exeext && {
89869
 
         test "$cross_compiling" = yes ||
89870
 
         $as_test_x conftest$ac_exeext
89871
 
       }; then
89872
 
  eval "$as_ac_Lib=yes"
89873
 
else
89874
 
  $as_echo "$as_me: failed program was:" >&5
89875
 
sed 's/^/| /' conftest.$ac_ext >&5
89876
 
 
89877
 
        eval "$as_ac_Lib=no"
89878
 
fi
89879
 
 
89880
 
rm -rf conftest.dSYM
89881
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
89882
 
      conftest$ac_exeext conftest.$ac_ext
89883
 
LIBS=$ac_check_lib_save_LIBS
89884
 
fi
89885
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
89886
 
                 $as_echo "$as_val"'`
89887
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
89888
 
$as_echo "$ac_res" >&6; }
89889
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
89890
 
                 $as_echo "$as_val"'`
89891
 
   if test "x$as_val" = x""yes; then
89892
 
  
89893
 
    LDFLAGS=$save_old_LDFLAGS
89894
 
    ext_shared=$save_ext_shared
89895
 
    
89896
 
  
89897
 
else
89898
 
  
89899
 
    LDFLAGS=$save_old_LDFLAGS
89900
 
    ext_shared=$save_ext_shared
89901
 
    unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
89902
 
    
89903
 
          { { $as_echo "$as_me:$LINENO: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." >&5
89904
 
$as_echo "$as_me: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." >&2;}
89905
 
   { (exit 1); exit 1; }; }
89906
 
        
89907
 
  
89908
 
fi
89909
 
   
89910
 
        PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz"
89911
 
      fi
89912
 
 
89913
 
      
89914
 
  for ac_i in $PDO_MYSQL_INCLUDE; do
89915
 
    case $ac_i in
89916
 
    -I*)
89917
 
      ac_ii=`echo $ac_i|cut -c 3-`
89918
 
      
89919
 
  if test "$ac_ii" != "/usr/include"; then
89920
 
    
89921
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89922
 
    ai_p=$ac_ii
89923
 
  else
89924
 
    
89925
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89926
 
    
89927
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89928
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89929
 
  fi
89930
 
 
89931
 
    
89932
 
  
89933
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89934
 
  
89935
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
89936
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89937
 
    eval "INCLUDEPATH$unique=set"
89938
 
    
89939
 
      if test ""; then
89940
 
        INCLUDES="-I$ai_p $INCLUDES"
89941
 
      else
89942
 
        INCLUDES="$INCLUDES -I$ai_p"
89943
 
      fi
89944
 
    
89945
 
  fi
89946
 
 
89947
 
  fi
89948
 
 
89949
 
    ;;
89950
 
    esac
89951
 
  done
89952
 
 
89953
 
      
89954
 
  for ac_i in $PDO_MYSQL_LIBS; do
89955
 
    case $ac_i in
89956
 
    -pthread)
89957
 
      if test "$ext_shared" = "yes"; then
89958
 
        PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
89959
 
      else
89960
 
        
89961
 
  
89962
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
89963
 
  
89964
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
89965
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
89966
 
    eval "EXTRA_LDFLAGS$unique=set"
89967
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
89968
 
  fi
89969
 
 
89970
 
      fi
89971
 
    ;;
89972
 
    -l*)
89973
 
      ac_ii=`echo $ac_i|cut -c 3-`
89974
 
      
89975
 
  
89976
 
  case $ac_ii in
89977
 
  c|c_r|pthread*) ;;
89978
 
  *) 
89979
 
    if test "$ext_shared" = "yes"; then
89980
 
        PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii" 
89981
 
    else
89982
 
      
89983
 
  
89984
 
  case $ac_ii in
89985
 
  c|c_r|pthread*) ;;
89986
 
  *) 
89987
 
      LIBS="$LIBS -l$ac_ii" 
89988
 
   ;;
89989
 
  esac
89990
 
 
89991
 
 
89992
 
    fi
89993
 
   ;;
89994
 
  esac
89995
 
 
89996
 
 
89997
 
    ;;
89998
 
    -L*)
89999
 
      ac_ii=`echo $ac_i|cut -c 3-`
90000
 
      
90001
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
90002
 
    
90003
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
90004
 
    ai_p=$ac_ii
90005
 
  else
90006
 
    
90007
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
90008
 
    
90009
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
90010
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
90011
 
  fi
90012
 
 
90013
 
    
90014
 
      if test "$ext_shared" = "yes"; then
90015
 
        PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
90016
 
        test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
90017
 
      else
90018
 
        
90019
 
  
90020
 
  
90021
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
90022
 
  
90023
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
90024
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
90025
 
    eval "LIBPATH$unique=set"
90026
 
    
90027
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
90028
 
    LDFLAGS="$LDFLAGS -L$ai_p"
90029
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
90030
 
  
90031
 
  fi
90032
 
 
90033
 
 
90034
 
      fi
90035
 
    
90036
 
  fi
90037
 
 
90038
 
    ;;
90039
 
    esac
90040
 
  done
90041
 
 
90042
 
    
90043
 
  
90044
 
fi
90045
 
 
90046
 
 
90047
 
    _SAVE_LIBS=$LIBS
90048
 
    LIBS="$LIBS $PDO_MYSQL_LIBS"
90049
 
    
90050
 
 
90051
 
 
90052
 
 
90053
 
for ac_func in mysql_commit mysql_stmt_prepare mysql_next_result mysql_sqlstate
90054
 
do
90055
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
90056
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
90057
 
$as_echo_n "checking for $ac_func... " >&6; }
90058
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
90059
 
  $as_echo_n "(cached) " >&6
90060
 
else
90061
 
  cat >conftest.$ac_ext <<_ACEOF
90062
 
/* confdefs.h.  */
90063
 
_ACEOF
90064
 
cat confdefs.h >>conftest.$ac_ext
90065
 
cat >>conftest.$ac_ext <<_ACEOF
90066
 
/* end confdefs.h.  */
90067
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
90068
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
90069
 
#define $ac_func innocuous_$ac_func
90070
 
 
90071
 
/* System header to define __stub macros and hopefully few prototypes,
90072
 
    which can conflict with char $ac_func (); below.
90073
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
90074
 
    <limits.h> exists even on freestanding compilers.  */
90075
 
 
90076
 
#ifdef __STDC__
90077
 
# include <limits.h>
90078
 
#else
90079
 
# include <assert.h>
90080
 
#endif
90081
 
 
90082
 
#undef $ac_func
90083
 
 
90084
 
/* Override any GCC internal prototype to avoid an error.
90085
 
   Use char because int might match the return type of a GCC
90086
 
   builtin and then its argument prototype would still apply.  */
90087
 
#ifdef __cplusplus
90088
 
extern "C"
90089
 
#endif
90090
 
char $ac_func ();
90091
 
/* The GNU C library defines this for functions which it implements
90092
 
    to always fail with ENOSYS.  Some functions are actually named
90093
 
    something starting with __ and the normal name is an alias.  */
90094
 
#if defined __stub_$ac_func || defined __stub___$ac_func
90095
 
choke me
90096
 
#endif
90097
 
 
90098
 
int
90099
 
main ()
90100
 
{
90101
 
return $ac_func ();
90102
 
  ;
90103
 
  return 0;
90104
 
}
90105
 
_ACEOF
90106
 
rm -f conftest.$ac_objext conftest$ac_exeext
90107
 
if { (ac_try="$ac_link"
90108
 
case "(($ac_try" in
90109
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90110
 
  *) ac_try_echo=$ac_try;;
90111
 
esac
90112
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90113
 
$as_echo "$ac_try_echo") >&5
90114
 
  (eval "$ac_link") 2>conftest.er1
90115
 
  ac_status=$?
90116
 
  grep -v '^ *+' conftest.er1 >conftest.err
90117
 
  rm -f conftest.er1
90118
 
  cat conftest.err >&5
90119
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90120
 
  (exit $ac_status); } && {
90121
 
         test -z "$ac_c_werror_flag" ||
90122
 
         test ! -s conftest.err
90123
 
       } && test -s conftest$ac_exeext && {
90124
 
         test "$cross_compiling" = yes ||
90125
 
         $as_test_x conftest$ac_exeext
90126
 
       }; then
90127
 
  eval "$as_ac_var=yes"
90128
 
else
90129
 
  $as_echo "$as_me: failed program was:" >&5
90130
 
sed 's/^/| /' conftest.$ac_ext >&5
90131
 
 
90132
 
        eval "$as_ac_var=no"
90133
 
fi
90134
 
 
90135
 
rm -rf conftest.dSYM
90136
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
90137
 
      conftest$ac_exeext conftest.$ac_ext
90138
 
fi
90139
 
ac_res=`eval 'as_val=${'$as_ac_var'}
90140
 
                 $as_echo "$as_val"'`
90141
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90142
 
$as_echo "$ac_res" >&6; }
90143
 
as_val=`eval 'as_val=${'$as_ac_var'}
90144
 
                 $as_echo "$as_val"'`
90145
 
   if test "x$as_val" = x""yes; then
90146
 
  cat >>confdefs.h <<_ACEOF
90147
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
90148
 
_ACEOF
90149
 
 
90150
 
fi
90151
 
done
90152
 
 
90153
 
    LIBS=$_SAVE_LIBS
90154
 
  fi
90155
 
 
90156
 
  
90157
 
    
90158
 
  { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
90159
 
$as_echo_n "checking for PDO includes... " >&6; }
90160
 
if test "${pdo_inc_path+set}" = set; then
90161
 
  $as_echo_n "(cached) " >&6
90162
 
else
90163
 
  
90164
 
    { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
90165
 
$as_echo_n "checking for PDO includes... " >&6; }
90166
 
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
90167
 
      pdo_inc_path=$abs_srcdir/ext
90168
 
    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
90169
 
      pdo_inc_path=$abs_srcdir/ext
90170
 
    elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
90171
 
      pdo_inc_path=$prefix/include/php/ext
90172
 
    fi
90173
 
  
90174
 
fi
90175
 
{ $as_echo "$as_me:$LINENO: result: $pdo_inc_path" >&5
90176
 
$as_echo "$pdo_inc_path" >&6; }
90177
 
  if test -n "$pdo_inc_path"; then
90178
 
:
90179
 
  else
90180
 
{ { $as_echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
90181
 
$as_echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
90182
 
   { (exit 1); exit 1; }; }
90183
 
  fi
90184
 
 
90185
 
  
90186
 
 
90187
 
  if test -n "$PDO_MYSQL_CONFIG"; then
90188
 
    PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket`
90189
 
    
90190
 
cat >>confdefs.h <<_ACEOF
90191
 
@%:@define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET"
90192
 
_ACEOF
90193
 
 
90194
 
  fi
90195
 
 
90196
 
    
90197
 
  ext_builddir=ext/pdo_mysql
90198
 
  ext_srcdir=$abs_srcdir/ext/pdo_mysql
90199
 
 
90200
 
  ac_extra=`echo "-I$pdo_inc_path -I"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
90201
 
 
90202
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
90203
 
    PHP_PDO_MYSQL_SHARED=no
90204
 
    
90205
 
  
90206
 
  case ext/pdo_mysql in
90207
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90208
 
  /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90209
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90210
 
  esac
90211
 
  
90212
 
  
90213
 
 
90214
 
  b_c_pre=$php_c_pre
90215
 
  b_cxx_pre=$php_cxx_pre
90216
 
  b_c_meta=$php_c_meta
90217
 
  b_cxx_meta=$php_cxx_meta
90218
 
  b_c_post=$php_c_post
90219
 
  b_cxx_post=$php_cxx_post
90220
 
  b_lo=$php_lo
90221
 
 
90222
 
 
90223
 
  old_IFS=$IFS
90224
 
  for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
90225
 
  
90226
 
      IFS=.
90227
 
      set $ac_src
90228
 
      ac_obj=$1
90229
 
      IFS=$old_IFS
90230
 
      
90231
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
90232
 
 
90233
 
      case $ac_src in
90234
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90235
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90236
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90237
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90238
 
      esac
90239
 
 
90240
 
    cat >>Makefile.objects<<EOF
90241
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90242
 
        $ac_comp
90243
 
EOF
90244
 
  done
90245
 
 
90246
 
 
90247
 
    EXT_STATIC="$EXT_STATIC pdo_mysql"
90248
 
    if test "$ext_shared" != "nocli"; then
90249
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
90250
 
    fi
90251
 
  else
90252
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
90253
 
      PHP_PDO_MYSQL_SHARED=yes
90254
 
      
90255
 
  case ext/pdo_mysql in
90256
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90257
 
  /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90258
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90259
 
  esac
90260
 
  
90261
 
  
90262
 
 
90263
 
  b_c_pre=$shared_c_pre
90264
 
  b_cxx_pre=$shared_cxx_pre
90265
 
  b_c_meta=$shared_c_meta
90266
 
  b_cxx_meta=$shared_cxx_meta
90267
 
  b_c_post=$shared_c_post
90268
 
  b_cxx_post=$shared_cxx_post
90269
 
  b_lo=$shared_lo
90270
 
 
90271
 
 
90272
 
  old_IFS=$IFS
90273
 
  for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
90274
 
  
90275
 
      IFS=.
90276
 
      set $ac_src
90277
 
      ac_obj=$1
90278
 
      IFS=$old_IFS
90279
 
      
90280
 
      shared_objects_pdo_mysql="$shared_objects_pdo_mysql $ac_bdir$ac_obj.lo"
90281
 
 
90282
 
      case $ac_src in
90283
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90284
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90285
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90286
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90287
 
      esac
90288
 
 
90289
 
    cat >>Makefile.objects<<EOF
90290
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90291
 
        $ac_comp
90292
 
EOF
90293
 
  done
90294
 
 
90295
 
      case $host_alias in
90296
 
        *netware*)
90297
 
          
90298
 
  install_modules="install-modules"
90299
 
 
90300
 
  case $host_alias in
90301
 
    *aix*)
90302
 
      suffix=so
90303
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PHPPDO_MYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_mysql.so '$ext_builddir'/phppdo_mysql.so'
90304
 
      ;;
90305
 
    *netware*)
90306
 
      suffix=nlm
90307
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) -L$(top_builddir)/netware -lphp5lib $(PDO_MYSQL_SHARED_LIBADD)'
90308
 
      ;;
90309
 
    *)
90310
 
      suffix=la
90311
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PHPPDO_MYSQL_SHARED_LIBADD)'
90312
 
      ;;
90313
 
  esac
90314
 
 
90315
 
  if test "x" = "xyes"; then
90316
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_mysql.$suffix"
90317
 
  else
90318
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_mysql.$suffix"
90319
 
  fi
90320
 
  
90321
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
90322
 
 
90323
 
  cat >>Makefile.objects<<EOF
90324
 
\$(phplibdir)/phppdo_mysql.$suffix: $ext_builddir/phppdo_mysql.$suffix
90325
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_mysql.$suffix \$(phplibdir)
90326
 
 
90327
 
$ext_builddir/phppdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PHPPDO_MYSQL_SHARED_DEPENDENCIES)
90328
 
        $link_cmd
90329
 
 
90330
 
EOF
90331
 
 
90332
 
          ;;
90333
 
        *)
90334
 
          
90335
 
  install_modules="install-modules"
90336
 
 
90337
 
  case $host_alias in
90338
 
    *aix*)
90339
 
      suffix=so
90340
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PDO_MYSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_mysql.so '$ext_builddir'/pdo_mysql.so'
90341
 
      ;;
90342
 
    *netware*)
90343
 
      suffix=nlm
90344
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) -L$(top_builddir)/netware -lphp5lib $(_MYSQL_SHARED_LIBADD)'
90345
 
      ;;
90346
 
    *)
90347
 
      suffix=la
90348
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_mysql) $(PDO_MYSQL_SHARED_LIBADD)'
90349
 
      ;;
90350
 
  esac
90351
 
 
90352
 
  if test "x" = "xyes"; then
90353
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_mysql.$suffix"
90354
 
  else
90355
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_mysql.$suffix"
90356
 
  fi
90357
 
  
90358
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
90359
 
 
90360
 
  cat >>Makefile.objects<<EOF
90361
 
\$(phplibdir)/pdo_mysql.$suffix: $ext_builddir/pdo_mysql.$suffix
90362
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_mysql.$suffix \$(phplibdir)
90363
 
 
90364
 
$ext_builddir/pdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PDO_MYSQL_SHARED_DEPENDENCIES)
90365
 
        $link_cmd
90366
 
 
90367
 
EOF
90368
 
 
90369
 
          ;;
90370
 
      esac
90371
 
      
90372
 
cat >>confdefs.h <<_ACEOF
90373
 
@%:@define COMPILE_DL_PDO_MYSQL 1
90374
 
_ACEOF
90375
 
 
90376
 
    fi
90377
 
  fi
90378
 
 
90379
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
90380
 
    PHP_PDO_MYSQL_SHARED=no
90381
 
    case "$PHP_SAPI" in
90382
 
      cgi|embed)
90383
 
        
90384
 
  
90385
 
  case ext/pdo_mysql in
90386
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90387
 
  /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90388
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90389
 
  esac
90390
 
  
90391
 
  
90392
 
 
90393
 
  b_c_pre=$php_c_pre
90394
 
  b_cxx_pre=$php_cxx_pre
90395
 
  b_c_meta=$php_c_meta
90396
 
  b_cxx_meta=$php_cxx_meta
90397
 
  b_c_post=$php_c_post
90398
 
  b_cxx_post=$php_cxx_post
90399
 
  b_lo=$php_lo
90400
 
 
90401
 
 
90402
 
  old_IFS=$IFS
90403
 
  for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
90404
 
  
90405
 
      IFS=.
90406
 
      set $ac_src
90407
 
      ac_obj=$1
90408
 
      IFS=$old_IFS
90409
 
      
90410
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
90411
 
 
90412
 
      case $ac_src in
90413
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90414
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90415
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90416
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90417
 
      esac
90418
 
 
90419
 
    cat >>Makefile.objects<<EOF
90420
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90421
 
        $ac_comp
90422
 
EOF
90423
 
  done
90424
 
 
90425
 
 
90426
 
        EXT_STATIC="$EXT_STATIC pdo_mysql"
90427
 
        ;;
90428
 
      *)
90429
 
        
90430
 
  
90431
 
  case ext/pdo_mysql in
90432
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90433
 
  /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90434
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90435
 
  esac
90436
 
  
90437
 
  
90438
 
 
90439
 
  b_c_pre=$php_c_pre
90440
 
  b_cxx_pre=$php_cxx_pre
90441
 
  b_c_meta=$php_c_meta
90442
 
  b_cxx_meta=$php_cxx_meta
90443
 
  b_c_post=$php_c_post
90444
 
  b_cxx_post=$php_cxx_post
90445
 
  b_lo=$php_lo
90446
 
 
90447
 
 
90448
 
  old_IFS=$IFS
90449
 
  for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
90450
 
  
90451
 
      IFS=.
90452
 
      set $ac_src
90453
 
      ac_obj=$1
90454
 
      IFS=$old_IFS
90455
 
      
90456
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
90457
 
 
90458
 
      case $ac_src in
90459
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90460
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90461
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90462
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90463
 
      esac
90464
 
 
90465
 
    cat >>Makefile.objects<<EOF
90466
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90467
 
        $ac_comp
90468
 
EOF
90469
 
  done
90470
 
 
90471
 
 
90472
 
        ;;
90473
 
    esac
90474
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
90475
 
  fi
90476
 
  
90477
 
  
90478
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
90479
 
  
90480
 
 
90481
 
 
90482
 
  if test "$ext_builddir" = "."; then
90483
 
    PHP_PECL_EXTENSION=pdo_mysql
90484
 
    
90485
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
90486
 
 
90487
 
  fi
90488
 
 
90489
 
  
90490
 
    
90491
 
  am_i_shared=$PHP_PDO_MYSQL_SHARED
90492
 
  is_it_shared=$PHP_PDO_SHARED
90493
 
  is_it_enabled=$PHP_PDO
90494
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
90495
 
    { { $as_echo "$as_me:$LINENO: error: 
90496
 
You've configured extension pdo_mysql to build statically, but it
90497
 
depends on extension pdo, which you've configured to build shared.
90498
 
You either need to build pdo_mysql shared or build pdo statically for the
90499
 
build to be successful.
90500
 
" >&5
90501
 
$as_echo "$as_me: error: 
90502
 
You've configured extension pdo_mysql to build statically, but it
90503
 
depends on extension pdo, which you've configured to build shared.
90504
 
You either need to build pdo_mysql shared or build pdo statically for the
90505
 
build to be successful.
90506
 
" >&2;}
90507
 
   { (exit 1); exit 1; }; }
90508
 
  fi
90509
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
90510
 
    { { $as_echo "$as_me:$LINENO: error: 
90511
 
You've configured extension pdo_mysql, which depends on extension pdo,
90512
 
but you've either not enabled pdo, or have disabled it.
90513
 
" >&5
90514
 
$as_echo "$as_me: error: 
90515
 
You've configured extension pdo_mysql, which depends on extension pdo,
90516
 
but you've either not enabled pdo, or have disabled it.
90517
 
" >&2;}
90518
 
   { (exit 1); exit 1; }; }
90519
 
  fi
90520
 
  
90521
 
    if test "$PHP_MYSQL" = "mysqlnd"; then
90522
 
      
90523
 
  am_i_shared=$PHP_PDO_MYSQL_SHARED
90524
 
  is_it_shared=$PHP_MYSQLND_SHARED
90525
 
  is_it_enabled=$PHP_MYSQLND
90526
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
90527
 
    { { $as_echo "$as_me:$LINENO: error: 
90528
 
You've configured extension pdo_mysql to build statically, but it
90529
 
depends on extension mysqlnd, which you've configured to build shared.
90530
 
You either need to build pdo_mysql shared or build mysqlnd statically for the
90531
 
build to be successful.
90532
 
" >&5
90533
 
$as_echo "$as_me: error: 
90534
 
You've configured extension pdo_mysql to build statically, but it
90535
 
depends on extension mysqlnd, which you've configured to build shared.
90536
 
You either need to build pdo_mysql shared or build mysqlnd statically for the
90537
 
build to be successful.
90538
 
" >&2;}
90539
 
   { (exit 1); exit 1; }; }
90540
 
  fi
90541
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
90542
 
    { { $as_echo "$as_me:$LINENO: error: 
90543
 
You've configured extension pdo_mysql, which depends on extension mysqlnd,
90544
 
but you've either not enabled mysqlnd, or have disabled it.
90545
 
" >&5
90546
 
$as_echo "$as_me: error: 
90547
 
You've configured extension pdo_mysql, which depends on extension mysqlnd,
90548
 
but you've either not enabled mysqlnd, or have disabled it.
90549
 
" >&2;}
90550
 
   { (exit 1); exit 1; }; }
90551
 
  fi
90552
 
  
90553
 
    fi
90554
 
  
90555
 
  PDO_MYSQL_MODULE_TYPE=external
90556
 
 
90557
 
  
90558
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_SHARED_LIBADD"
90559
 
 
90560
 
  
90561
 
  
90562
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_MODULE_TYPE"
90563
 
 
90564
 
  
90565
 
 
90566
 
fi
90567
 
 
90568
 
 
90569
 
SUPPORTED_LIB_VERS="9.0 10.1 11.1"  # This caters for all Oracle 9.x, 10.x and 11.1 installs
90570
 
                                                                                                                                                                
90571
 
 
90572
 
 
90573
 
 
90574
 
 
90575
 
php_with_pdo_oci=no
90576
 
 
90577
 
{ $as_echo "$as_me:$LINENO: checking Oracle OCI support for PDO" >&5
90578
 
$as_echo_n "checking Oracle OCI support for PDO... " >&6; }
90579
 
 
90580
 
@%:@ Check whether --with-pdo-oci was given.
90581
 
if test "${with_pdo_oci+set}" = set; then
90582
 
  withval=$with_pdo_oci; PHP_PDO_OCI=$withval
90583
 
else
90584
 
  
90585
 
  PHP_PDO_OCI=no
90586
 
  test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL
90587
 
 
90588
 
fi
90589
 
 
90590
 
 
90591
 
 
90592
 
ext_output="yes, shared"
90593
 
ext_shared=yes
90594
 
case $PHP_PDO_OCI in
90595
 
shared,*)
90596
 
  PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'`
90597
 
  ;;
90598
 
shared)
90599
 
  PHP_PDO_OCI=yes
90600
 
  ;;
90601
 
no)
90602
 
  ext_output=no
90603
 
  ext_shared=no
90604
 
  ;;
90605
 
*)
90606
 
  ext_output=yes
90607
 
  ext_shared=no
90608
 
  ;;
90609
 
esac
90610
 
 
90611
 
 
90612
 
 
90613
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
90614
 
$as_echo "$ext_output" >&6; }
90615
 
 
90616
 
 
90617
 
 
90618
 
 
90619
 
if test "$PHP_PDO_OCI" != "no"; then
90620
 
 
90621
 
  if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
90622
 
    { { $as_echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
90623
 
$as_echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
90624
 
   { (exit 1); exit 1; }; }
90625
 
  fi
90626
 
 
90627
 
  { $as_echo "$as_me:$LINENO: checking Oracle Install-Dir" >&5
90628
 
$as_echo_n "checking Oracle Install-Dir... " >&6; }
90629
 
  if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then
90630
 
    PDO_OCI_DIR=$ORACLE_HOME
90631
 
  else
90632
 
    PDO_OCI_DIR=$PHP_PDO_OCI
90633
 
  fi
90634
 
  { $as_echo "$as_me:$LINENO: result: $PHP_PDO_OCI" >&5
90635
 
$as_echo "$PHP_PDO_OCI" >&6; }
90636
 
 
90637
 
  { $as_echo "$as_me:$LINENO: checking if that is sane" >&5
90638
 
$as_echo_n "checking if that is sane... " >&6; }
90639
 
  if test -z "$PDO_OCI_DIR"; then
90640
 
    { { $as_echo "$as_me:$LINENO: error: 
90641
 
You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME.
90642
 
" >&5
90643
 
$as_echo "$as_me: error: 
90644
 
You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME.
90645
 
" >&2;}
90646
 
   { (exit 1); exit 1; }; }
90647
 
  else
90648
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
90649
 
$as_echo "yes" >&6; }
90650
 
  fi
90651
 
 
90652
 
  if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then
90653
 
    # The cast to long int works around a bug in the HP C Compiler
90654
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
90655
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
90656
 
# This bug is HP SR number 8606223364.
90657
 
{ $as_echo "$as_me:$LINENO: checking size of long int" >&5
90658
 
$as_echo_n "checking size of long int... " >&6; }
90659
 
if test "${ac_cv_sizeof_long_int+set}" = set; then
90660
 
  $as_echo_n "(cached) " >&6
90661
 
else
90662
 
  if test "$cross_compiling" = yes; then
90663
 
  # Depending upon the size, compute the lo and hi bounds.
90664
 
cat >conftest.$ac_ext <<_ACEOF
90665
 
/* confdefs.h.  */
90666
 
_ACEOF
90667
 
cat confdefs.h >>conftest.$ac_ext
90668
 
cat >>conftest.$ac_ext <<_ACEOF
90669
 
/* end confdefs.h.  */
90670
 
$ac_includes_default
90671
 
int
90672
 
main ()
90673
 
{
90674
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) >= 0)@:>@;
90675
 
test_array @<:@0@:>@ = 0
90676
 
 
90677
 
  ;
90678
 
  return 0;
90679
 
}
90680
 
_ACEOF
90681
 
rm -f conftest.$ac_objext
90682
 
if { (ac_try="$ac_compile"
90683
 
case "(($ac_try" in
90684
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90685
 
  *) ac_try_echo=$ac_try;;
90686
 
esac
90687
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90688
 
$as_echo "$ac_try_echo") >&5
90689
 
  (eval "$ac_compile") 2>conftest.er1
90690
 
  ac_status=$?
90691
 
  grep -v '^ *+' conftest.er1 >conftest.err
90692
 
  rm -f conftest.er1
90693
 
  cat conftest.err >&5
90694
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90695
 
  (exit $ac_status); } && {
90696
 
         test -z "$ac_c_werror_flag" ||
90697
 
         test ! -s conftest.err
90698
 
       } && test -s conftest.$ac_objext; then
90699
 
  ac_lo=0 ac_mid=0
90700
 
  while :; do
90701
 
    cat >conftest.$ac_ext <<_ACEOF
90702
 
/* confdefs.h.  */
90703
 
_ACEOF
90704
 
cat confdefs.h >>conftest.$ac_ext
90705
 
cat >>conftest.$ac_ext <<_ACEOF
90706
 
/* end confdefs.h.  */
90707
 
$ac_includes_default
90708
 
int
90709
 
main ()
90710
 
{
90711
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)@:>@;
90712
 
test_array @<:@0@:>@ = 0
90713
 
 
90714
 
  ;
90715
 
  return 0;
90716
 
}
90717
 
_ACEOF
90718
 
rm -f conftest.$ac_objext
90719
 
if { (ac_try="$ac_compile"
90720
 
case "(($ac_try" in
90721
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90722
 
  *) ac_try_echo=$ac_try;;
90723
 
esac
90724
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90725
 
$as_echo "$ac_try_echo") >&5
90726
 
  (eval "$ac_compile") 2>conftest.er1
90727
 
  ac_status=$?
90728
 
  grep -v '^ *+' conftest.er1 >conftest.err
90729
 
  rm -f conftest.er1
90730
 
  cat conftest.err >&5
90731
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90732
 
  (exit $ac_status); } && {
90733
 
         test -z "$ac_c_werror_flag" ||
90734
 
         test ! -s conftest.err
90735
 
       } && test -s conftest.$ac_objext; then
90736
 
  ac_hi=$ac_mid; break
90737
 
else
90738
 
  $as_echo "$as_me: failed program was:" >&5
90739
 
sed 's/^/| /' conftest.$ac_ext >&5
90740
 
 
90741
 
        ac_lo=`expr $ac_mid + 1`
90742
 
                        if test $ac_lo -le $ac_mid; then
90743
 
                          ac_lo= ac_hi=
90744
 
                          break
90745
 
                        fi
90746
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
90747
 
fi
90748
 
 
90749
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90750
 
  done
90751
 
else
90752
 
  $as_echo "$as_me: failed program was:" >&5
90753
 
sed 's/^/| /' conftest.$ac_ext >&5
90754
 
 
90755
 
        cat >conftest.$ac_ext <<_ACEOF
90756
 
/* confdefs.h.  */
90757
 
_ACEOF
90758
 
cat confdefs.h >>conftest.$ac_ext
90759
 
cat >>conftest.$ac_ext <<_ACEOF
90760
 
/* end confdefs.h.  */
90761
 
$ac_includes_default
90762
 
int
90763
 
main ()
90764
 
{
90765
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) < 0)@:>@;
90766
 
test_array @<:@0@:>@ = 0
90767
 
 
90768
 
  ;
90769
 
  return 0;
90770
 
}
90771
 
_ACEOF
90772
 
rm -f conftest.$ac_objext
90773
 
if { (ac_try="$ac_compile"
90774
 
case "(($ac_try" in
90775
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90776
 
  *) ac_try_echo=$ac_try;;
90777
 
esac
90778
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90779
 
$as_echo "$ac_try_echo") >&5
90780
 
  (eval "$ac_compile") 2>conftest.er1
90781
 
  ac_status=$?
90782
 
  grep -v '^ *+' conftest.er1 >conftest.err
90783
 
  rm -f conftest.er1
90784
 
  cat conftest.err >&5
90785
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90786
 
  (exit $ac_status); } && {
90787
 
         test -z "$ac_c_werror_flag" ||
90788
 
         test ! -s conftest.err
90789
 
       } && test -s conftest.$ac_objext; then
90790
 
  ac_hi=-1 ac_mid=-1
90791
 
  while :; do
90792
 
    cat >conftest.$ac_ext <<_ACEOF
90793
 
/* confdefs.h.  */
90794
 
_ACEOF
90795
 
cat confdefs.h >>conftest.$ac_ext
90796
 
cat >>conftest.$ac_ext <<_ACEOF
90797
 
/* end confdefs.h.  */
90798
 
$ac_includes_default
90799
 
int
90800
 
main ()
90801
 
{
90802
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)@:>@;
90803
 
test_array @<:@0@:>@ = 0
90804
 
 
90805
 
  ;
90806
 
  return 0;
90807
 
}
90808
 
_ACEOF
90809
 
rm -f conftest.$ac_objext
90810
 
if { (ac_try="$ac_compile"
90811
 
case "(($ac_try" in
90812
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90813
 
  *) ac_try_echo=$ac_try;;
90814
 
esac
90815
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90816
 
$as_echo "$ac_try_echo") >&5
90817
 
  (eval "$ac_compile") 2>conftest.er1
90818
 
  ac_status=$?
90819
 
  grep -v '^ *+' conftest.er1 >conftest.err
90820
 
  rm -f conftest.er1
90821
 
  cat conftest.err >&5
90822
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90823
 
  (exit $ac_status); } && {
90824
 
         test -z "$ac_c_werror_flag" ||
90825
 
         test ! -s conftest.err
90826
 
       } && test -s conftest.$ac_objext; then
90827
 
  ac_lo=$ac_mid; break
90828
 
else
90829
 
  $as_echo "$as_me: failed program was:" >&5
90830
 
sed 's/^/| /' conftest.$ac_ext >&5
90831
 
 
90832
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
90833
 
                        if test $ac_mid -le $ac_hi; then
90834
 
                          ac_lo= ac_hi=
90835
 
                          break
90836
 
                        fi
90837
 
                        ac_mid=`expr 2 '*' $ac_mid`
90838
 
fi
90839
 
 
90840
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90841
 
  done
90842
 
else
90843
 
  $as_echo "$as_me: failed program was:" >&5
90844
 
sed 's/^/| /' conftest.$ac_ext >&5
90845
 
 
90846
 
        ac_lo= ac_hi=
90847
 
fi
90848
 
 
90849
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90850
 
fi
90851
 
 
90852
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90853
 
# Binary search between lo and hi bounds.
90854
 
while test "x$ac_lo" != "x$ac_hi"; do
90855
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
90856
 
  cat >conftest.$ac_ext <<_ACEOF
90857
 
/* confdefs.h.  */
90858
 
_ACEOF
90859
 
cat confdefs.h >>conftest.$ac_ext
90860
 
cat >>conftest.$ac_ext <<_ACEOF
90861
 
/* end confdefs.h.  */
90862
 
$ac_includes_default
90863
 
int
90864
 
main ()
90865
 
{
90866
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)@:>@;
90867
 
test_array @<:@0@:>@ = 0
90868
 
 
90869
 
  ;
90870
 
  return 0;
90871
 
}
90872
 
_ACEOF
90873
 
rm -f conftest.$ac_objext
90874
 
if { (ac_try="$ac_compile"
90875
 
case "(($ac_try" in
90876
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90877
 
  *) ac_try_echo=$ac_try;;
90878
 
esac
90879
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90880
 
$as_echo "$ac_try_echo") >&5
90881
 
  (eval "$ac_compile") 2>conftest.er1
90882
 
  ac_status=$?
90883
 
  grep -v '^ *+' conftest.er1 >conftest.err
90884
 
  rm -f conftest.er1
90885
 
  cat conftest.err >&5
90886
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90887
 
  (exit $ac_status); } && {
90888
 
         test -z "$ac_c_werror_flag" ||
90889
 
         test ! -s conftest.err
90890
 
       } && test -s conftest.$ac_objext; then
90891
 
  ac_hi=$ac_mid
90892
 
else
90893
 
  $as_echo "$as_me: failed program was:" >&5
90894
 
sed 's/^/| /' conftest.$ac_ext >&5
90895
 
 
90896
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
90897
 
fi
90898
 
 
90899
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90900
 
done
90901
 
case $ac_lo in
90902
 
?*) ac_cv_sizeof_long_int=$ac_lo;;
90903
 
'') if test "$ac_cv_type_long_int" = yes; then
90904
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
90905
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
90906
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
90907
 
See \`config.log' for more details." >&5
90908
 
$as_echo "$as_me: error: cannot compute sizeof (long int)
90909
 
See \`config.log' for more details." >&2;}
90910
 
   { (exit 77); exit 77; }; }; }
90911
 
   else
90912
 
     ac_cv_sizeof_long_int=0
90913
 
   fi ;;
90914
 
esac
90915
 
else
90916
 
  cat >conftest.$ac_ext <<_ACEOF
90917
 
/* confdefs.h.  */
90918
 
_ACEOF
90919
 
cat confdefs.h >>conftest.$ac_ext
90920
 
cat >>conftest.$ac_ext <<_ACEOF
90921
 
/* end confdefs.h.  */
90922
 
$ac_includes_default
90923
 
static long int longval () { return (long int) (sizeof (long int)); }
90924
 
static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
90925
 
@%:@include <stdio.h>
90926
 
@%:@include <stdlib.h>
90927
 
int
90928
 
main ()
90929
 
{
90930
 
 
90931
 
  FILE *f = fopen ("conftest.val", "w");
90932
 
  if (! f)
90933
 
    return 1;
90934
 
  if (((long int) (sizeof (long int))) < 0)
90935
 
    {
90936
 
      long int i = longval ();
90937
 
      if (i != ((long int) (sizeof (long int))))
90938
 
        return 1;
90939
 
      fprintf (f, "%ld", i);
90940
 
    }
90941
 
  else
90942
 
    {
90943
 
      unsigned long int i = ulongval ();
90944
 
      if (i != ((long int) (sizeof (long int))))
90945
 
        return 1;
90946
 
      fprintf (f, "%lu", i);
90947
 
    }
90948
 
  /* Do not output a trailing newline, as this causes \r\n confusion
90949
 
     on some platforms.  */
90950
 
  return ferror (f) || fclose (f) != 0;
90951
 
 
90952
 
  ;
90953
 
  return 0;
90954
 
}
90955
 
_ACEOF
90956
 
rm -f conftest$ac_exeext
90957
 
if { (ac_try="$ac_link"
90958
 
case "(($ac_try" in
90959
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90960
 
  *) ac_try_echo=$ac_try;;
90961
 
esac
90962
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90963
 
$as_echo "$ac_try_echo") >&5
90964
 
  (eval "$ac_link") 2>&5
90965
 
  ac_status=$?
90966
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90967
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
90968
 
  { (case "(($ac_try" in
90969
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90970
 
  *) ac_try_echo=$ac_try;;
90971
 
esac
90972
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90973
 
$as_echo "$ac_try_echo") >&5
90974
 
  (eval "$ac_try") 2>&5
90975
 
  ac_status=$?
90976
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90977
 
  (exit $ac_status); }; }; then
90978
 
  ac_cv_sizeof_long_int=`cat conftest.val`
90979
 
else
90980
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
90981
 
$as_echo "$as_me: failed program was:" >&5
90982
 
sed 's/^/| /' conftest.$ac_ext >&5
90983
 
 
90984
 
( exit $ac_status )
90985
 
if test "$ac_cv_type_long_int" = yes; then
90986
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
90987
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
90988
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
90989
 
See \`config.log' for more details." >&5
90990
 
$as_echo "$as_me: error: cannot compute sizeof (long int)
90991
 
See \`config.log' for more details." >&2;}
90992
 
   { (exit 77); exit 77; }; }; }
90993
 
   else
90994
 
     ac_cv_sizeof_long_int=0
90995
 
   fi
90996
 
fi
90997
 
rm -rf conftest.dSYM
90998
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
90999
 
fi
91000
 
rm -f conftest.val
91001
 
fi
91002
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
91003
 
$as_echo "$ac_cv_sizeof_long_int" >&6; }
91004
 
 
91005
 
 
91006
 
 
91007
 
cat >>confdefs.h <<_ACEOF
91008
 
@%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
91009
 
_ACEOF
91010
 
 
91011
 
 
91012
 
    if test "$ac_cv_sizeof_long_int" = "4" ; then
91013
 
      PDO_OCI_CLIENT_DIR="client"
91014
 
    else
91015
 
      PDO_OCI_CLIENT_DIR="client64"
91016
 
    fi
91017
 
    PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`"
91018
 
    PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`"
91019
 
    if test -n "$PDO_OCI_IC_VERS"; then
91020
 
      PDO_OCI_IC_MAJ_VER="`echo $PDO_OCI_IC_VERS | cut -d. -f1`"
91021
 
      if test "$PDO_OCI_IC_MAJ_VER" -ge 11; then
91022
 
        # From 11.1.0.7 the RPM path only has an X.Y component
91023
 
        PDO_OCI_IC_VERS="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
91024
 
      fi
91025
 
    fi
91026
 
    { $as_echo "$as_me:$LINENO: checking for oci.h" >&5
91027
 
$as_echo_n "checking for oci.h... " >&6; }
91028
 
    if test -f $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/oci.h ; then
91029
 
      
91030
 
  if test "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" != "/usr/include"; then
91031
 
    
91032
 
  if test -z "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" || echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" | grep '^/' >/dev/null ; then
91033
 
    ai_p=$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR
91034
 
  else
91035
 
    
91036
 
    ep_dir="`echo $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
91037
 
    
91038
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91039
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR\"`"
91040
 
  fi
91041
 
 
91042
 
    
91043
 
  
91044
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91045
 
  
91046
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91047
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91048
 
    eval "INCLUDEPATH$unique=set"
91049
 
    
91050
 
      if test ""; then
91051
 
        INCLUDES="-I$ai_p $INCLUDES"
91052
 
      else
91053
 
        INCLUDES="$INCLUDES -I$ai_p"
91054
 
      fi
91055
 
    
91056
 
  fi
91057
 
 
91058
 
  fi
91059
 
 
91060
 
      { $as_echo "$as_me:$LINENO: result: $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&5
91061
 
$as_echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&6; }
91062
 
    elif test -f $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
91063
 
      
91064
 
  if test "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
91065
 
    
91066
 
  if test -z "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then
91067
 
    ai_p=$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include
91068
 
  else
91069
 
    
91070
 
    ep_dir="`echo $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
91071
 
    
91072
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91073
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include\"`"
91074
 
  fi
91075
 
 
91076
 
    
91077
 
  
91078
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91079
 
  
91080
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91081
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91082
 
    eval "INCLUDEPATH$unique=set"
91083
 
    
91084
 
      if test ""; then
91085
 
        INCLUDES="-I$ai_p $INCLUDES"
91086
 
      else
91087
 
        INCLUDES="$INCLUDES -I$ai_p"
91088
 
      fi
91089
 
    
91090
 
  fi
91091
 
 
91092
 
  fi
91093
 
 
91094
 
      { $as_echo "$as_me:$LINENO: result: $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&5
91095
 
$as_echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&6; }
91096
 
    elif test -f $PDO_OCI_IC_PREFIX/sdk/include/oci.h ; then
91097
 
      
91098
 
  if test "$PDO_OCI_IC_PREFIX/sdk/include" != "/usr/include"; then
91099
 
    
91100
 
  if test -z "$PDO_OCI_IC_PREFIX/sdk/include" || echo "$PDO_OCI_IC_PREFIX/sdk/include" | grep '^/' >/dev/null ; then
91101
 
    ai_p=$PDO_OCI_IC_PREFIX/sdk/include
91102
 
  else
91103
 
    
91104
 
    ep_dir="`echo $PDO_OCI_IC_PREFIX/sdk/include|$SED 's%/*[^/][^/]*/*$%%'`"
91105
 
    
91106
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91107
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/sdk/include\"`"
91108
 
  fi
91109
 
 
91110
 
    
91111
 
  
91112
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91113
 
  
91114
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91115
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91116
 
    eval "INCLUDEPATH$unique=set"
91117
 
    
91118
 
      if test ""; then
91119
 
        INCLUDES="-I$ai_p $INCLUDES"
91120
 
      else
91121
 
        INCLUDES="$INCLUDES -I$ai_p"
91122
 
      fi
91123
 
    
91124
 
  fi
91125
 
 
91126
 
  fi
91127
 
 
91128
 
      { $as_echo "$as_me:$LINENO: result: $PDO_OCI_IC_PREFIX/sdk/include" >&5
91129
 
$as_echo "$PDO_OCI_IC_PREFIX/sdk/include" >&6; }
91130
 
    elif test -f $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
91131
 
      
91132
 
  if test "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
91133
 
    
91134
 
  if test -z "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" || echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" | grep '^/' >/dev/null ; then
91135
 
    ai_p=$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include
91136
 
  else
91137
 
    
91138
 
    ep_dir="`echo $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
91139
 
    
91140
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91141
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include\"`"
91142
 
  fi
91143
 
 
91144
 
    
91145
 
  
91146
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91147
 
  
91148
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91149
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91150
 
    eval "INCLUDEPATH$unique=set"
91151
 
    
91152
 
      if test ""; then
91153
 
        INCLUDES="-I$ai_p $INCLUDES"
91154
 
      else
91155
 
        INCLUDES="$INCLUDES -I$ai_p"
91156
 
      fi
91157
 
    
91158
 
  fi
91159
 
 
91160
 
  fi
91161
 
 
91162
 
      { $as_echo "$as_me:$LINENO: result: $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&5
91163
 
$as_echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&6; }
91164
 
    else
91165
 
      { { $as_echo "$as_me:$LINENO: error: I'm too dumb to figure out where the include dir is in your Instant Client install" >&5
91166
 
$as_echo "$as_me: error: I'm too dumb to figure out where the include dir is in your Instant Client install" >&2;}
91167
 
   { (exit 1); exit 1; }; }
91168
 
    fi
91169
 
    if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
91170
 
    PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib"
91171
 
    elif test -f "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
91172
 
      PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib"
91173
 
    elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then
91174
 
      PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX"
91175
 
    else
91176
 
      { { $as_echo "$as_me:$LINENO: error: I'm too dumb to figure out where the libraries are in your Instant Client install" >&5
91177
 
$as_echo "$as_me: error: I'm too dumb to figure out where the libraries are in your Instant Client install" >&2;}
91178
 
   { (exit 1); exit 1; }; }
91179
 
    fi
91180
 
    PDO_OCI_VERSION="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
91181
 
  else
91182
 
    
91183
 
  # The cast to long int works around a bug in the HP C Compiler
91184
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
91185
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
91186
 
# This bug is HP SR number 8606223364.
91187
 
{ $as_echo "$as_me:$LINENO: checking size of long int" >&5
91188
 
$as_echo_n "checking size of long int... " >&6; }
91189
 
if test "${ac_cv_sizeof_long_int+set}" = set; then
91190
 
  $as_echo_n "(cached) " >&6
91191
 
else
91192
 
  if test "$cross_compiling" = yes; then
91193
 
  # Depending upon the size, compute the lo and hi bounds.
91194
 
cat >conftest.$ac_ext <<_ACEOF
91195
 
/* confdefs.h.  */
91196
 
_ACEOF
91197
 
cat confdefs.h >>conftest.$ac_ext
91198
 
cat >>conftest.$ac_ext <<_ACEOF
91199
 
/* end confdefs.h.  */
91200
 
$ac_includes_default
91201
 
int
91202
 
main ()
91203
 
{
91204
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) >= 0)@:>@;
91205
 
test_array @<:@0@:>@ = 0
91206
 
 
91207
 
  ;
91208
 
  return 0;
91209
 
}
91210
 
_ACEOF
91211
 
rm -f conftest.$ac_objext
91212
 
if { (ac_try="$ac_compile"
91213
 
case "(($ac_try" in
91214
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91215
 
  *) ac_try_echo=$ac_try;;
91216
 
esac
91217
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91218
 
$as_echo "$ac_try_echo") >&5
91219
 
  (eval "$ac_compile") 2>conftest.er1
91220
 
  ac_status=$?
91221
 
  grep -v '^ *+' conftest.er1 >conftest.err
91222
 
  rm -f conftest.er1
91223
 
  cat conftest.err >&5
91224
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91225
 
  (exit $ac_status); } && {
91226
 
         test -z "$ac_c_werror_flag" ||
91227
 
         test ! -s conftest.err
91228
 
       } && test -s conftest.$ac_objext; then
91229
 
  ac_lo=0 ac_mid=0
91230
 
  while :; do
91231
 
    cat >conftest.$ac_ext <<_ACEOF
91232
 
/* confdefs.h.  */
91233
 
_ACEOF
91234
 
cat confdefs.h >>conftest.$ac_ext
91235
 
cat >>conftest.$ac_ext <<_ACEOF
91236
 
/* end confdefs.h.  */
91237
 
$ac_includes_default
91238
 
int
91239
 
main ()
91240
 
{
91241
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)@:>@;
91242
 
test_array @<:@0@:>@ = 0
91243
 
 
91244
 
  ;
91245
 
  return 0;
91246
 
}
91247
 
_ACEOF
91248
 
rm -f conftest.$ac_objext
91249
 
if { (ac_try="$ac_compile"
91250
 
case "(($ac_try" in
91251
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91252
 
  *) ac_try_echo=$ac_try;;
91253
 
esac
91254
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91255
 
$as_echo "$ac_try_echo") >&5
91256
 
  (eval "$ac_compile") 2>conftest.er1
91257
 
  ac_status=$?
91258
 
  grep -v '^ *+' conftest.er1 >conftest.err
91259
 
  rm -f conftest.er1
91260
 
  cat conftest.err >&5
91261
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91262
 
  (exit $ac_status); } && {
91263
 
         test -z "$ac_c_werror_flag" ||
91264
 
         test ! -s conftest.err
91265
 
       } && test -s conftest.$ac_objext; then
91266
 
  ac_hi=$ac_mid; break
91267
 
else
91268
 
  $as_echo "$as_me: failed program was:" >&5
91269
 
sed 's/^/| /' conftest.$ac_ext >&5
91270
 
 
91271
 
        ac_lo=`expr $ac_mid + 1`
91272
 
                        if test $ac_lo -le $ac_mid; then
91273
 
                          ac_lo= ac_hi=
91274
 
                          break
91275
 
                        fi
91276
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
91277
 
fi
91278
 
 
91279
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91280
 
  done
91281
 
else
91282
 
  $as_echo "$as_me: failed program was:" >&5
91283
 
sed 's/^/| /' conftest.$ac_ext >&5
91284
 
 
91285
 
        cat >conftest.$ac_ext <<_ACEOF
91286
 
/* confdefs.h.  */
91287
 
_ACEOF
91288
 
cat confdefs.h >>conftest.$ac_ext
91289
 
cat >>conftest.$ac_ext <<_ACEOF
91290
 
/* end confdefs.h.  */
91291
 
$ac_includes_default
91292
 
int
91293
 
main ()
91294
 
{
91295
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) < 0)@:>@;
91296
 
test_array @<:@0@:>@ = 0
91297
 
 
91298
 
  ;
91299
 
  return 0;
91300
 
}
91301
 
_ACEOF
91302
 
rm -f conftest.$ac_objext
91303
 
if { (ac_try="$ac_compile"
91304
 
case "(($ac_try" in
91305
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91306
 
  *) ac_try_echo=$ac_try;;
91307
 
esac
91308
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91309
 
$as_echo "$ac_try_echo") >&5
91310
 
  (eval "$ac_compile") 2>conftest.er1
91311
 
  ac_status=$?
91312
 
  grep -v '^ *+' conftest.er1 >conftest.err
91313
 
  rm -f conftest.er1
91314
 
  cat conftest.err >&5
91315
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91316
 
  (exit $ac_status); } && {
91317
 
         test -z "$ac_c_werror_flag" ||
91318
 
         test ! -s conftest.err
91319
 
       } && test -s conftest.$ac_objext; then
91320
 
  ac_hi=-1 ac_mid=-1
91321
 
  while :; do
91322
 
    cat >conftest.$ac_ext <<_ACEOF
91323
 
/* confdefs.h.  */
91324
 
_ACEOF
91325
 
cat confdefs.h >>conftest.$ac_ext
91326
 
cat >>conftest.$ac_ext <<_ACEOF
91327
 
/* end confdefs.h.  */
91328
 
$ac_includes_default
91329
 
int
91330
 
main ()
91331
 
{
91332
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)@:>@;
91333
 
test_array @<:@0@:>@ = 0
91334
 
 
91335
 
  ;
91336
 
  return 0;
91337
 
}
91338
 
_ACEOF
91339
 
rm -f conftest.$ac_objext
91340
 
if { (ac_try="$ac_compile"
91341
 
case "(($ac_try" in
91342
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91343
 
  *) ac_try_echo=$ac_try;;
91344
 
esac
91345
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91346
 
$as_echo "$ac_try_echo") >&5
91347
 
  (eval "$ac_compile") 2>conftest.er1
91348
 
  ac_status=$?
91349
 
  grep -v '^ *+' conftest.er1 >conftest.err
91350
 
  rm -f conftest.er1
91351
 
  cat conftest.err >&5
91352
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91353
 
  (exit $ac_status); } && {
91354
 
         test -z "$ac_c_werror_flag" ||
91355
 
         test ! -s conftest.err
91356
 
       } && test -s conftest.$ac_objext; then
91357
 
  ac_lo=$ac_mid; break
91358
 
else
91359
 
  $as_echo "$as_me: failed program was:" >&5
91360
 
sed 's/^/| /' conftest.$ac_ext >&5
91361
 
 
91362
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
91363
 
                        if test $ac_mid -le $ac_hi; then
91364
 
                          ac_lo= ac_hi=
91365
 
                          break
91366
 
                        fi
91367
 
                        ac_mid=`expr 2 '*' $ac_mid`
91368
 
fi
91369
 
 
91370
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91371
 
  done
91372
 
else
91373
 
  $as_echo "$as_me: failed program was:" >&5
91374
 
sed 's/^/| /' conftest.$ac_ext >&5
91375
 
 
91376
 
        ac_lo= ac_hi=
91377
 
fi
91378
 
 
91379
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91380
 
fi
91381
 
 
91382
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91383
 
# Binary search between lo and hi bounds.
91384
 
while test "x$ac_lo" != "x$ac_hi"; do
91385
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
91386
 
  cat >conftest.$ac_ext <<_ACEOF
91387
 
/* confdefs.h.  */
91388
 
_ACEOF
91389
 
cat confdefs.h >>conftest.$ac_ext
91390
 
cat >>conftest.$ac_ext <<_ACEOF
91391
 
/* end confdefs.h.  */
91392
 
$ac_includes_default
91393
 
int
91394
 
main ()
91395
 
{
91396
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)@:>@;
91397
 
test_array @<:@0@:>@ = 0
91398
 
 
91399
 
  ;
91400
 
  return 0;
91401
 
}
91402
 
_ACEOF
91403
 
rm -f conftest.$ac_objext
91404
 
if { (ac_try="$ac_compile"
91405
 
case "(($ac_try" in
91406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91407
 
  *) ac_try_echo=$ac_try;;
91408
 
esac
91409
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91410
 
$as_echo "$ac_try_echo") >&5
91411
 
  (eval "$ac_compile") 2>conftest.er1
91412
 
  ac_status=$?
91413
 
  grep -v '^ *+' conftest.er1 >conftest.err
91414
 
  rm -f conftest.er1
91415
 
  cat conftest.err >&5
91416
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91417
 
  (exit $ac_status); } && {
91418
 
         test -z "$ac_c_werror_flag" ||
91419
 
         test ! -s conftest.err
91420
 
       } && test -s conftest.$ac_objext; then
91421
 
  ac_hi=$ac_mid
91422
 
else
91423
 
  $as_echo "$as_me: failed program was:" >&5
91424
 
sed 's/^/| /' conftest.$ac_ext >&5
91425
 
 
91426
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
91427
 
fi
91428
 
 
91429
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91430
 
done
91431
 
case $ac_lo in
91432
 
?*) ac_cv_sizeof_long_int=$ac_lo;;
91433
 
'') if test "$ac_cv_type_long_int" = yes; then
91434
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
91435
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91436
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
91437
 
See \`config.log' for more details." >&5
91438
 
$as_echo "$as_me: error: cannot compute sizeof (long int)
91439
 
See \`config.log' for more details." >&2;}
91440
 
   { (exit 77); exit 77; }; }; }
91441
 
   else
91442
 
     ac_cv_sizeof_long_int=0
91443
 
   fi ;;
91444
 
esac
91445
 
else
91446
 
  cat >conftest.$ac_ext <<_ACEOF
91447
 
/* confdefs.h.  */
91448
 
_ACEOF
91449
 
cat confdefs.h >>conftest.$ac_ext
91450
 
cat >>conftest.$ac_ext <<_ACEOF
91451
 
/* end confdefs.h.  */
91452
 
$ac_includes_default
91453
 
static long int longval () { return (long int) (sizeof (long int)); }
91454
 
static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
91455
 
@%:@include <stdio.h>
91456
 
@%:@include <stdlib.h>
91457
 
int
91458
 
main ()
91459
 
{
91460
 
 
91461
 
  FILE *f = fopen ("conftest.val", "w");
91462
 
  if (! f)
91463
 
    return 1;
91464
 
  if (((long int) (sizeof (long int))) < 0)
91465
 
    {
91466
 
      long int i = longval ();
91467
 
      if (i != ((long int) (sizeof (long int))))
91468
 
        return 1;
91469
 
      fprintf (f, "%ld", i);
91470
 
    }
91471
 
  else
91472
 
    {
91473
 
      unsigned long int i = ulongval ();
91474
 
      if (i != ((long int) (sizeof (long int))))
91475
 
        return 1;
91476
 
      fprintf (f, "%lu", i);
91477
 
    }
91478
 
  /* Do not output a trailing newline, as this causes \r\n confusion
91479
 
     on some platforms.  */
91480
 
  return ferror (f) || fclose (f) != 0;
91481
 
 
91482
 
  ;
91483
 
  return 0;
91484
 
}
91485
 
_ACEOF
91486
 
rm -f conftest$ac_exeext
91487
 
if { (ac_try="$ac_link"
91488
 
case "(($ac_try" in
91489
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91490
 
  *) ac_try_echo=$ac_try;;
91491
 
esac
91492
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91493
 
$as_echo "$ac_try_echo") >&5
91494
 
  (eval "$ac_link") 2>&5
91495
 
  ac_status=$?
91496
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91497
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
91498
 
  { (case "(($ac_try" in
91499
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91500
 
  *) ac_try_echo=$ac_try;;
91501
 
esac
91502
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91503
 
$as_echo "$ac_try_echo") >&5
91504
 
  (eval "$ac_try") 2>&5
91505
 
  ac_status=$?
91506
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91507
 
  (exit $ac_status); }; }; then
91508
 
  ac_cv_sizeof_long_int=`cat conftest.val`
91509
 
else
91510
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
91511
 
$as_echo "$as_me: failed program was:" >&5
91512
 
sed 's/^/| /' conftest.$ac_ext >&5
91513
 
 
91514
 
( exit $ac_status )
91515
 
if test "$ac_cv_type_long_int" = yes; then
91516
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
91517
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91518
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
91519
 
See \`config.log' for more details." >&5
91520
 
$as_echo "$as_me: error: cannot compute sizeof (long int)
91521
 
See \`config.log' for more details." >&2;}
91522
 
   { (exit 77); exit 77; }; }; }
91523
 
   else
91524
 
     ac_cv_sizeof_long_int=0
91525
 
   fi
91526
 
fi
91527
 
rm -rf conftest.dSYM
91528
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
91529
 
fi
91530
 
rm -f conftest.val
91531
 
fi
91532
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
91533
 
$as_echo "$ac_cv_sizeof_long_int" >&6; }
91534
 
 
91535
 
 
91536
 
 
91537
 
cat >>confdefs.h <<_ACEOF
91538
 
@%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
91539
 
_ACEOF
91540
 
 
91541
 
 
91542
 
  { $as_echo "$as_me:$LINENO: checking if we're on a 64-bit platform" >&5
91543
 
$as_echo_n "checking if we're on a 64-bit platform... " >&6; }
91544
 
  if test "$ac_cv_sizeof_long_int" = "4" ; then
91545
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
91546
 
$as_echo "no" >&6; }
91547
 
    TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
91548
 
  else
91549
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
91550
 
$as_echo "yes" >&6; }
91551
 
    TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
91552
 
  fi
91553
 
 
91554
 
  { $as_echo "$as_me:$LINENO: checking OCI8 libraries dir" >&5
91555
 
$as_echo_n "checking OCI8 libraries dir... " >&6; }
91556
 
  if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then
91557
 
    PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
91558
 
  elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
91559
 
    PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
91560
 
  elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
91561
 
    PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR
91562
 
  else
91563
 
    { { $as_echo "$as_me:$LINENO: error: Oracle required OCI8 libraries not found" >&5
91564
 
$as_echo "$as_me: error: Oracle required OCI8 libraries not found" >&2;}
91565
 
   { (exit 1); exit 1; }; }
91566
 
  fi
91567
 
  { $as_echo "$as_me:$LINENO: result: $PDO_OCI_LIB_DIR" >&5
91568
 
$as_echo "$PDO_OCI_LIB_DIR" >&6; }
91569
 
 
91570
 
 
91571
 
    if test -d "$PDO_OCI_DIR/rdbms/public"; then
91572
 
      
91573
 
  if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then
91574
 
    
91575
 
  if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then
91576
 
    ai_p=$PDO_OCI_DIR/rdbms/public
91577
 
  else
91578
 
    
91579
 
    ep_dir="`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`"
91580
 
    
91581
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91582
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/rdbms/public\"`"
91583
 
  fi
91584
 
 
91585
 
    
91586
 
  
91587
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91588
 
  
91589
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91590
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91591
 
    eval "INCLUDEPATH$unique=set"
91592
 
    
91593
 
      if test ""; then
91594
 
        INCLUDES="-I$ai_p $INCLUDES"
91595
 
      else
91596
 
        INCLUDES="$INCLUDES -I$ai_p"
91597
 
      fi
91598
 
    
91599
 
  fi
91600
 
 
91601
 
  fi
91602
 
 
91603
 
      PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public"
91604
 
    fi
91605
 
    if test -d "$PDO_OCI_DIR/rdbms/demo"; then
91606
 
      
91607
 
  if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then
91608
 
    
91609
 
  if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
91610
 
    ai_p=$PDO_OCI_DIR/rdbms/demo
91611
 
  else
91612
 
    
91613
 
    ep_dir="`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`"
91614
 
    
91615
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91616
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/rdbms/demo\"`"
91617
 
  fi
91618
 
 
91619
 
    
91620
 
  
91621
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91622
 
  
91623
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91624
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91625
 
    eval "INCLUDEPATH$unique=set"
91626
 
    
91627
 
      if test ""; then
91628
 
        INCLUDES="-I$ai_p $INCLUDES"
91629
 
      else
91630
 
        INCLUDES="$INCLUDES -I$ai_p"
91631
 
      fi
91632
 
    
91633
 
  fi
91634
 
 
91635
 
  fi
91636
 
 
91637
 
      PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo"
91638
 
    fi
91639
 
    if test -d "$PDO_OCI_DIR/network/public"; then
91640
 
      
91641
 
  if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then
91642
 
    
91643
 
  if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then
91644
 
    ai_p=$PDO_OCI_DIR/network/public
91645
 
  else
91646
 
    
91647
 
    ep_dir="`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`"
91648
 
    
91649
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91650
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/network/public\"`"
91651
 
  fi
91652
 
 
91653
 
    
91654
 
  
91655
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91656
 
  
91657
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91658
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91659
 
    eval "INCLUDEPATH$unique=set"
91660
 
    
91661
 
      if test ""; then
91662
 
        INCLUDES="-I$ai_p $INCLUDES"
91663
 
      else
91664
 
        INCLUDES="$INCLUDES -I$ai_p"
91665
 
      fi
91666
 
    
91667
 
  fi
91668
 
 
91669
 
  fi
91670
 
 
91671
 
      PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public"
91672
 
    fi
91673
 
    if test -d "$PDO_OCI_DIR/plsql/public"; then
91674
 
      
91675
 
  if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then
91676
 
    
91677
 
  if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then
91678
 
    ai_p=$PDO_OCI_DIR/plsql/public
91679
 
  else
91680
 
    
91681
 
    ep_dir="`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`"
91682
 
    
91683
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91684
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/plsql/public\"`"
91685
 
  fi
91686
 
 
91687
 
    
91688
 
  
91689
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91690
 
  
91691
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91692
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91693
 
    eval "INCLUDEPATH$unique=set"
91694
 
    
91695
 
      if test ""; then
91696
 
        INCLUDES="-I$ai_p $INCLUDES"
91697
 
      else
91698
 
        INCLUDES="$INCLUDES -I$ai_p"
91699
 
      fi
91700
 
    
91701
 
  fi
91702
 
 
91703
 
  fi
91704
 
 
91705
 
      PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public"
91706
 
    fi
91707
 
    if test -d "$PDO_OCI_DIR/include"; then
91708
 
      
91709
 
  if test "$PDO_OCI_DIR/include" != "/usr/include"; then
91710
 
    
91711
 
  if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then
91712
 
    ai_p=$PDO_OCI_DIR/include
91713
 
  else
91714
 
    
91715
 
    ep_dir="`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
91716
 
    
91717
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91718
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/include\"`"
91719
 
  fi
91720
 
 
91721
 
    
91722
 
  
91723
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91724
 
  
91725
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91726
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91727
 
    eval "INCLUDEPATH$unique=set"
91728
 
    
91729
 
      if test ""; then
91730
 
        INCLUDES="-I$ai_p $INCLUDES"
91731
 
      else
91732
 
        INCLUDES="$INCLUDES -I$ai_p"
91733
 
      fi
91734
 
    
91735
 
  fi
91736
 
 
91737
 
  fi
91738
 
 
91739
 
      PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include"
91740
 
    fi
91741
 
 
91742
 
    if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then
91743
 
      
91744
 
  for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do
91745
 
    case $ac_i in
91746
 
    -pthread)
91747
 
      if test "$ext_shared" = "yes"; then
91748
 
        PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
91749
 
      else
91750
 
        
91751
 
  
91752
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
91753
 
  
91754
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
91755
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91756
 
    eval "EXTRA_LDFLAGS$unique=set"
91757
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
91758
 
  fi
91759
 
 
91760
 
      fi
91761
 
    ;;
91762
 
    -l*)
91763
 
      ac_ii=`echo $ac_i|cut -c 3-`
91764
 
      
91765
 
  
91766
 
  case $ac_ii in
91767
 
  c|c_r|pthread*) ;;
91768
 
  *) 
91769
 
    if test "$ext_shared" = "yes"; then
91770
 
        PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" 
91771
 
    else
91772
 
      
91773
 
  
91774
 
  case $ac_ii in
91775
 
  c|c_r|pthread*) ;;
91776
 
  *) 
91777
 
      LIBS="$LIBS -l$ac_ii" 
91778
 
   ;;
91779
 
  esac
91780
 
 
91781
 
 
91782
 
    fi
91783
 
   ;;
91784
 
  esac
91785
 
 
91786
 
 
91787
 
    ;;
91788
 
    -L*)
91789
 
      ac_ii=`echo $ac_i|cut -c 3-`
91790
 
      
91791
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
91792
 
    
91793
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
91794
 
    ai_p=$ac_ii
91795
 
  else
91796
 
    
91797
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
91798
 
    
91799
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91800
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
91801
 
  fi
91802
 
 
91803
 
    
91804
 
      if test "$ext_shared" = "yes"; then
91805
 
        PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
91806
 
        test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
91807
 
      else
91808
 
        
91809
 
  
91810
 
  
91811
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91812
 
  
91813
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
91814
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91815
 
    eval "LIBPATH$unique=set"
91816
 
    
91817
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
91818
 
    LDFLAGS="$LDFLAGS -L$ai_p"
91819
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
91820
 
  
91821
 
  fi
91822
 
 
91823
 
 
91824
 
      fi
91825
 
    
91826
 
  fi
91827
 
 
91828
 
    ;;
91829
 
    esac
91830
 
  done
91831
 
 
91832
 
    elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then
91833
 
      
91834
 
  for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do
91835
 
    case $ac_i in
91836
 
    -pthread)
91837
 
      if test "$ext_shared" = "yes"; then
91838
 
        PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
91839
 
      else
91840
 
        
91841
 
  
91842
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
91843
 
  
91844
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
91845
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91846
 
    eval "EXTRA_LDFLAGS$unique=set"
91847
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
91848
 
  fi
91849
 
 
91850
 
      fi
91851
 
    ;;
91852
 
    -l*)
91853
 
      ac_ii=`echo $ac_i|cut -c 3-`
91854
 
      
91855
 
  
91856
 
  case $ac_ii in
91857
 
  c|c_r|pthread*) ;;
91858
 
  *) 
91859
 
    if test "$ext_shared" = "yes"; then
91860
 
        PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii" 
91861
 
    else
91862
 
      
91863
 
  
91864
 
  case $ac_ii in
91865
 
  c|c_r|pthread*) ;;
91866
 
  *) 
91867
 
      LIBS="$LIBS -l$ac_ii" 
91868
 
   ;;
91869
 
  esac
91870
 
 
91871
 
 
91872
 
    fi
91873
 
   ;;
91874
 
  esac
91875
 
 
91876
 
 
91877
 
    ;;
91878
 
    -L*)
91879
 
      ac_ii=`echo $ac_i|cut -c 3-`
91880
 
      
91881
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
91882
 
    
91883
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
91884
 
    ai_p=$ac_ii
91885
 
  else
91886
 
    
91887
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
91888
 
    
91889
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91890
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
91891
 
  fi
91892
 
 
91893
 
    
91894
 
      if test "$ext_shared" = "yes"; then
91895
 
        PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
91896
 
        test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
91897
 
      else
91898
 
        
91899
 
  
91900
 
  
91901
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91902
 
  
91903
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
91904
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
91905
 
    eval "LIBPATH$unique=set"
91906
 
    
91907
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
91908
 
    LDFLAGS="$LDFLAGS -L$ai_p"
91909
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
91910
 
  
91911
 
  fi
91912
 
 
91913
 
 
91914
 
      fi
91915
 
    
91916
 
  fi
91917
 
 
91918
 
    ;;
91919
 
    esac
91920
 
  done
91921
 
 
91922
 
    fi
91923
 
    
91924
 
  { $as_echo "$as_me:$LINENO: checking Oracle version" >&5
91925
 
$as_echo_n "checking Oracle version... " >&6; }
91926
 
  for OCI_VER in $SUPPORTED_LIB_VERS; do
91927
 
    if test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.$OCI_VER; then
91928
 
      PDO_OCI_VERSION="$OCI_VER"
91929
 
    fi
91930
 
  done
91931
 
  if test -z "$PDO_OCI_VERSION"; then
91932
 
    { { $as_echo "$as_me:$LINENO: error: Oracle required OCI8 libraries not found under $PDO_OCI_DIR" >&5
91933
 
$as_echo "$as_me: error: Oracle required OCI8 libraries not found under $PDO_OCI_DIR" >&2;}
91934
 
   { (exit 1); exit 1; }; }
91935
 
  fi
91936
 
  { $as_echo "$as_me:$LINENO: result: $PDO_OCI_VERSION" >&5
91937
 
$as_echo "$PDO_OCI_VERSION" >&6; }
91938
 
 
91939
 
  fi
91940
 
 
91941
 
  case $PDO_OCI_VERSION in
91942
 
    9.0|10.1|10.2|11.1|11.2)
91943
 
      
91944
 
  
91945
 
  case clntsh in
91946
 
  c|c_r|pthread*) ;;
91947
 
  *) 
91948
 
    if test "$ext_shared" = "yes"; then
91949
 
        PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh" 
91950
 
    else
91951
 
      
91952
 
  
91953
 
  case clntsh in
91954
 
  c|c_r|pthread*) ;;
91955
 
  *) 
91956
 
      LIBS="$LIBS -lclntsh" 
91957
 
   ;;
91958
 
  esac
91959
 
 
91960
 
 
91961
 
    fi
91962
 
   ;;
91963
 
  esac
91964
 
 
91965
 
 
91966
 
      ;;
91967
 
 
91968
 
    *)
91969
 
      { { $as_echo "$as_me:$LINENO: error: Unsupported Oracle version $PDO_OCI_VERSION" >&5
91970
 
$as_echo "$as_me: error: Unsupported Oracle version $PDO_OCI_VERSION" >&2;}
91971
 
   { (exit 1); exit 1; }; }
91972
 
      ;;
91973
 
  esac
91974
 
 
91975
 
  
91976
 
  if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then
91977
 
    
91978
 
  if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then
91979
 
    ai_p=$PDO_OCI_LIB_DIR
91980
 
  else
91981
 
    
91982
 
    ep_dir="`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
91983
 
    
91984
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
91985
 
    ai_p="$ep_realdir/`basename \"$PDO_OCI_LIB_DIR\"`"
91986
 
  fi
91987
 
 
91988
 
    
91989
 
      if test "$ext_shared" = "yes"; then
91990
 
        PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD"
91991
 
        test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD"
91992
 
      else
91993
 
        
91994
 
  
91995
 
  
91996
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91997
 
  
91998
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
91999
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92000
 
    eval "LIBPATH$unique=set"
92001
 
    
92002
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92003
 
    LDFLAGS="$LDFLAGS -L$ai_p"
92004
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
92005
 
  
92006
 
  fi
92007
 
 
92008
 
 
92009
 
      fi
92010
 
    
92011
 
  fi
92012
 
 
92013
 
 
92014
 
  
92015
 
  save_old_LDFLAGS=$LDFLAGS
92016
 
  ac_stuff="
92017
 
    -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92018
 
  "
92019
 
  
92020
 
  save_ext_shared=$ext_shared
92021
 
  ext_shared=yes
92022
 
  
92023
 
  for ac_i in $ac_stuff; do
92024
 
    case $ac_i in
92025
 
    -pthread)
92026
 
      if test "$ext_shared" = "yes"; then
92027
 
        LDFLAGS="$LDFLAGS -pthread"
92028
 
      else
92029
 
        
92030
 
  
92031
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92032
 
  
92033
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92034
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92035
 
    eval "EXTRA_LDFLAGS$unique=set"
92036
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92037
 
  fi
92038
 
 
92039
 
      fi
92040
 
    ;;
92041
 
    -l*)
92042
 
      ac_ii=`echo $ac_i|cut -c 3-`
92043
 
      
92044
 
  
92045
 
  case $ac_ii in
92046
 
  c|c_r|pthread*) ;;
92047
 
  *) 
92048
 
    if test "$ext_shared" = "yes"; then
92049
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
92050
 
    else
92051
 
      
92052
 
  
92053
 
  case $ac_ii in
92054
 
  c|c_r|pthread*) ;;
92055
 
  *) 
92056
 
      LIBS="$LIBS -l$ac_ii" 
92057
 
   ;;
92058
 
  esac
92059
 
 
92060
 
 
92061
 
    fi
92062
 
   ;;
92063
 
  esac
92064
 
 
92065
 
 
92066
 
    ;;
92067
 
    -L*)
92068
 
      ac_ii=`echo $ac_i|cut -c 3-`
92069
 
      
92070
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92071
 
    
92072
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92073
 
    ai_p=$ac_ii
92074
 
  else
92075
 
    
92076
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92077
 
    
92078
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92079
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92080
 
  fi
92081
 
 
92082
 
    
92083
 
      if test "$ext_shared" = "yes"; then
92084
 
        LDFLAGS="-L$ai_p $LDFLAGS"
92085
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92086
 
      else
92087
 
        
92088
 
  
92089
 
  
92090
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92091
 
  
92092
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92093
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92094
 
    eval "LIBPATH$unique=set"
92095
 
    
92096
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92097
 
    LDFLAGS="$LDFLAGS -L$ai_p"
92098
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
92099
 
  
92100
 
  fi
92101
 
 
92102
 
 
92103
 
      fi
92104
 
    
92105
 
  fi
92106
 
 
92107
 
    ;;
92108
 
    esac
92109
 
  done
92110
 
 
92111
 
  { $as_echo "$as_me:$LINENO: checking for OCIEnvCreate in -lclntsh" >&5
92112
 
$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
92113
 
if test "${ac_cv_lib_clntsh_OCIEnvCreate+set}" = set; then
92114
 
  $as_echo_n "(cached) " >&6
92115
 
else
92116
 
  ac_check_lib_save_LIBS=$LIBS
92117
 
LIBS="-lclntsh  $LIBS"
92118
 
cat >conftest.$ac_ext <<_ACEOF
92119
 
/* confdefs.h.  */
92120
 
_ACEOF
92121
 
cat confdefs.h >>conftest.$ac_ext
92122
 
cat >>conftest.$ac_ext <<_ACEOF
92123
 
/* end confdefs.h.  */
92124
 
 
92125
 
/* Override any GCC internal prototype to avoid an error.
92126
 
   Use char because int might match the return type of a GCC
92127
 
   builtin and then its argument prototype would still apply.  */
92128
 
#ifdef __cplusplus
92129
 
extern "C"
92130
 
#endif
92131
 
char OCIEnvCreate ();
92132
 
int
92133
 
main ()
92134
 
{
92135
 
return OCIEnvCreate ();
92136
 
  ;
92137
 
  return 0;
92138
 
}
92139
 
_ACEOF
92140
 
rm -f conftest.$ac_objext conftest$ac_exeext
92141
 
if { (ac_try="$ac_link"
92142
 
case "(($ac_try" in
92143
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92144
 
  *) ac_try_echo=$ac_try;;
92145
 
esac
92146
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92147
 
$as_echo "$ac_try_echo") >&5
92148
 
  (eval "$ac_link") 2>conftest.er1
92149
 
  ac_status=$?
92150
 
  grep -v '^ *+' conftest.er1 >conftest.err
92151
 
  rm -f conftest.er1
92152
 
  cat conftest.err >&5
92153
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92154
 
  (exit $ac_status); } && {
92155
 
         test -z "$ac_c_werror_flag" ||
92156
 
         test ! -s conftest.err
92157
 
       } && test -s conftest$ac_exeext && {
92158
 
         test "$cross_compiling" = yes ||
92159
 
         $as_test_x conftest$ac_exeext
92160
 
       }; then
92161
 
  ac_cv_lib_clntsh_OCIEnvCreate=yes
92162
 
else
92163
 
  $as_echo "$as_me: failed program was:" >&5
92164
 
sed 's/^/| /' conftest.$ac_ext >&5
92165
 
 
92166
 
        ac_cv_lib_clntsh_OCIEnvCreate=no
92167
 
fi
92168
 
 
92169
 
rm -rf conftest.dSYM
92170
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92171
 
      conftest$ac_exeext conftest.$ac_ext
92172
 
LIBS=$ac_check_lib_save_LIBS
92173
 
fi
92174
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
92175
 
$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
92176
 
if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = x""yes; then
92177
 
  
92178
 
    LDFLAGS=$save_old_LDFLAGS
92179
 
    ext_shared=$save_ext_shared
92180
 
    
92181
 
    
92182
 
cat >>confdefs.h <<\_ACEOF
92183
 
@%:@define HAVE_OCIENVCREATE 1
92184
 
_ACEOF
92185
 
 
92186
 
  
92187
 
  
92188
 
else
92189
 
  
92190
 
    LDFLAGS=$save_old_LDFLAGS
92191
 
    ext_shared=$save_ext_shared
92192
 
    unset ac_cv_lib_clntsh_OCIEnvCreate
92193
 
    
92194
 
  
92195
 
fi
92196
 
 
92197
 
 
92198
 
  
92199
 
  save_old_LDFLAGS=$LDFLAGS
92200
 
  ac_stuff="
92201
 
    -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92202
 
  "
92203
 
  
92204
 
  save_ext_shared=$ext_shared
92205
 
  ext_shared=yes
92206
 
  
92207
 
  for ac_i in $ac_stuff; do
92208
 
    case $ac_i in
92209
 
    -pthread)
92210
 
      if test "$ext_shared" = "yes"; then
92211
 
        LDFLAGS="$LDFLAGS -pthread"
92212
 
      else
92213
 
        
92214
 
  
92215
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92216
 
  
92217
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92218
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92219
 
    eval "EXTRA_LDFLAGS$unique=set"
92220
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92221
 
  fi
92222
 
 
92223
 
      fi
92224
 
    ;;
92225
 
    -l*)
92226
 
      ac_ii=`echo $ac_i|cut -c 3-`
92227
 
      
92228
 
  
92229
 
  case $ac_ii in
92230
 
  c|c_r|pthread*) ;;
92231
 
  *) 
92232
 
    if test "$ext_shared" = "yes"; then
92233
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
92234
 
    else
92235
 
      
92236
 
  
92237
 
  case $ac_ii in
92238
 
  c|c_r|pthread*) ;;
92239
 
  *) 
92240
 
      LIBS="$LIBS -l$ac_ii" 
92241
 
   ;;
92242
 
  esac
92243
 
 
92244
 
 
92245
 
    fi
92246
 
   ;;
92247
 
  esac
92248
 
 
92249
 
 
92250
 
    ;;
92251
 
    -L*)
92252
 
      ac_ii=`echo $ac_i|cut -c 3-`
92253
 
      
92254
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92255
 
    
92256
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92257
 
    ai_p=$ac_ii
92258
 
  else
92259
 
    
92260
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92261
 
    
92262
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92263
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92264
 
  fi
92265
 
 
92266
 
    
92267
 
      if test "$ext_shared" = "yes"; then
92268
 
        LDFLAGS="-L$ai_p $LDFLAGS"
92269
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92270
 
      else
92271
 
        
92272
 
  
92273
 
  
92274
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92275
 
  
92276
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92277
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92278
 
    eval "LIBPATH$unique=set"
92279
 
    
92280
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92281
 
    LDFLAGS="$LDFLAGS -L$ai_p"
92282
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
92283
 
  
92284
 
  fi
92285
 
 
92286
 
 
92287
 
      fi
92288
 
    
92289
 
  fi
92290
 
 
92291
 
    ;;
92292
 
    esac
92293
 
  done
92294
 
 
92295
 
  { $as_echo "$as_me:$LINENO: checking for OCIEnvNlsCreate in -lclntsh" >&5
92296
 
$as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; }
92297
 
if test "${ac_cv_lib_clntsh_OCIEnvNlsCreate+set}" = set; then
92298
 
  $as_echo_n "(cached) " >&6
92299
 
else
92300
 
  ac_check_lib_save_LIBS=$LIBS
92301
 
LIBS="-lclntsh  $LIBS"
92302
 
cat >conftest.$ac_ext <<_ACEOF
92303
 
/* confdefs.h.  */
92304
 
_ACEOF
92305
 
cat confdefs.h >>conftest.$ac_ext
92306
 
cat >>conftest.$ac_ext <<_ACEOF
92307
 
/* end confdefs.h.  */
92308
 
 
92309
 
/* Override any GCC internal prototype to avoid an error.
92310
 
   Use char because int might match the return type of a GCC
92311
 
   builtin and then its argument prototype would still apply.  */
92312
 
#ifdef __cplusplus
92313
 
extern "C"
92314
 
#endif
92315
 
char OCIEnvNlsCreate ();
92316
 
int
92317
 
main ()
92318
 
{
92319
 
return OCIEnvNlsCreate ();
92320
 
  ;
92321
 
  return 0;
92322
 
}
92323
 
_ACEOF
92324
 
rm -f conftest.$ac_objext conftest$ac_exeext
92325
 
if { (ac_try="$ac_link"
92326
 
case "(($ac_try" in
92327
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92328
 
  *) ac_try_echo=$ac_try;;
92329
 
esac
92330
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92331
 
$as_echo "$ac_try_echo") >&5
92332
 
  (eval "$ac_link") 2>conftest.er1
92333
 
  ac_status=$?
92334
 
  grep -v '^ *+' conftest.er1 >conftest.err
92335
 
  rm -f conftest.er1
92336
 
  cat conftest.err >&5
92337
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92338
 
  (exit $ac_status); } && {
92339
 
         test -z "$ac_c_werror_flag" ||
92340
 
         test ! -s conftest.err
92341
 
       } && test -s conftest$ac_exeext && {
92342
 
         test "$cross_compiling" = yes ||
92343
 
         $as_test_x conftest$ac_exeext
92344
 
       }; then
92345
 
  ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
92346
 
else
92347
 
  $as_echo "$as_me: failed program was:" >&5
92348
 
sed 's/^/| /' conftest.$ac_ext >&5
92349
 
 
92350
 
        ac_cv_lib_clntsh_OCIEnvNlsCreate=no
92351
 
fi
92352
 
 
92353
 
rm -rf conftest.dSYM
92354
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92355
 
      conftest$ac_exeext conftest.$ac_ext
92356
 
LIBS=$ac_check_lib_save_LIBS
92357
 
fi
92358
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
92359
 
$as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
92360
 
if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = x""yes; then
92361
 
  
92362
 
    LDFLAGS=$save_old_LDFLAGS
92363
 
    ext_shared=$save_ext_shared
92364
 
    
92365
 
    
92366
 
cat >>confdefs.h <<\_ACEOF
92367
 
@%:@define HAVE_OCIENVNLSCREATE 1
92368
 
_ACEOF
92369
 
 
92370
 
  
92371
 
  
92372
 
else
92373
 
  
92374
 
    LDFLAGS=$save_old_LDFLAGS
92375
 
    ext_shared=$save_ext_shared
92376
 
    unset ac_cv_lib_clntsh_OCIEnvNlsCreate
92377
 
    
92378
 
  
92379
 
fi
92380
 
 
92381
 
 
92382
 
        
92383
 
  save_old_LDFLAGS=$LDFLAGS
92384
 
  ac_stuff="
92385
 
    -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92386
 
  "
92387
 
  
92388
 
  save_ext_shared=$ext_shared
92389
 
  ext_shared=yes
92390
 
  
92391
 
  for ac_i in $ac_stuff; do
92392
 
    case $ac_i in
92393
 
    -pthread)
92394
 
      if test "$ext_shared" = "yes"; then
92395
 
        LDFLAGS="$LDFLAGS -pthread"
92396
 
      else
92397
 
        
92398
 
  
92399
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92400
 
  
92401
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92402
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92403
 
    eval "EXTRA_LDFLAGS$unique=set"
92404
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92405
 
  fi
92406
 
 
92407
 
      fi
92408
 
    ;;
92409
 
    -l*)
92410
 
      ac_ii=`echo $ac_i|cut -c 3-`
92411
 
      
92412
 
  
92413
 
  case $ac_ii in
92414
 
  c|c_r|pthread*) ;;
92415
 
  *) 
92416
 
    if test "$ext_shared" = "yes"; then
92417
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
92418
 
    else
92419
 
      
92420
 
  
92421
 
  case $ac_ii in
92422
 
  c|c_r|pthread*) ;;
92423
 
  *) 
92424
 
      LIBS="$LIBS -l$ac_ii" 
92425
 
   ;;
92426
 
  esac
92427
 
 
92428
 
 
92429
 
    fi
92430
 
   ;;
92431
 
  esac
92432
 
 
92433
 
 
92434
 
    ;;
92435
 
    -L*)
92436
 
      ac_ii=`echo $ac_i|cut -c 3-`
92437
 
      
92438
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92439
 
    
92440
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92441
 
    ai_p=$ac_ii
92442
 
  else
92443
 
    
92444
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92445
 
    
92446
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92447
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92448
 
  fi
92449
 
 
92450
 
    
92451
 
      if test "$ext_shared" = "yes"; then
92452
 
        LDFLAGS="-L$ai_p $LDFLAGS"
92453
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92454
 
      else
92455
 
        
92456
 
  
92457
 
  
92458
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92459
 
  
92460
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92461
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92462
 
    eval "LIBPATH$unique=set"
92463
 
    
92464
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92465
 
    LDFLAGS="$LDFLAGS -L$ai_p"
92466
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
92467
 
  
92468
 
  fi
92469
 
 
92470
 
 
92471
 
      fi
92472
 
    
92473
 
  fi
92474
 
 
92475
 
    ;;
92476
 
    esac
92477
 
  done
92478
 
 
92479
 
  { $as_echo "$as_me:$LINENO: checking for OCILobIsTemporary in -lclntsh" >&5
92480
 
$as_echo_n "checking for OCILobIsTemporary in -lclntsh... " >&6; }
92481
 
if test "${ac_cv_lib_clntsh_OCILobIsTemporary+set}" = set; then
92482
 
  $as_echo_n "(cached) " >&6
92483
 
else
92484
 
  ac_check_lib_save_LIBS=$LIBS
92485
 
LIBS="-lclntsh  $LIBS"
92486
 
cat >conftest.$ac_ext <<_ACEOF
92487
 
/* confdefs.h.  */
92488
 
_ACEOF
92489
 
cat confdefs.h >>conftest.$ac_ext
92490
 
cat >>conftest.$ac_ext <<_ACEOF
92491
 
/* end confdefs.h.  */
92492
 
 
92493
 
/* Override any GCC internal prototype to avoid an error.
92494
 
   Use char because int might match the return type of a GCC
92495
 
   builtin and then its argument prototype would still apply.  */
92496
 
#ifdef __cplusplus
92497
 
extern "C"
92498
 
#endif
92499
 
char OCILobIsTemporary ();
92500
 
int
92501
 
main ()
92502
 
{
92503
 
return OCILobIsTemporary ();
92504
 
  ;
92505
 
  return 0;
92506
 
}
92507
 
_ACEOF
92508
 
rm -f conftest.$ac_objext conftest$ac_exeext
92509
 
if { (ac_try="$ac_link"
92510
 
case "(($ac_try" in
92511
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92512
 
  *) ac_try_echo=$ac_try;;
92513
 
esac
92514
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92515
 
$as_echo "$ac_try_echo") >&5
92516
 
  (eval "$ac_link") 2>conftest.er1
92517
 
  ac_status=$?
92518
 
  grep -v '^ *+' conftest.er1 >conftest.err
92519
 
  rm -f conftest.er1
92520
 
  cat conftest.err >&5
92521
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92522
 
  (exit $ac_status); } && {
92523
 
         test -z "$ac_c_werror_flag" ||
92524
 
         test ! -s conftest.err
92525
 
       } && test -s conftest$ac_exeext && {
92526
 
         test "$cross_compiling" = yes ||
92527
 
         $as_test_x conftest$ac_exeext
92528
 
       }; then
92529
 
  ac_cv_lib_clntsh_OCILobIsTemporary=yes
92530
 
else
92531
 
  $as_echo "$as_me: failed program was:" >&5
92532
 
sed 's/^/| /' conftest.$ac_ext >&5
92533
 
 
92534
 
        ac_cv_lib_clntsh_OCILobIsTemporary=no
92535
 
fi
92536
 
 
92537
 
rm -rf conftest.dSYM
92538
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92539
 
      conftest$ac_exeext conftest.$ac_ext
92540
 
LIBS=$ac_check_lib_save_LIBS
92541
 
fi
92542
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCILobIsTemporary" >&5
92543
 
$as_echo "$ac_cv_lib_clntsh_OCILobIsTemporary" >&6; }
92544
 
if test "x$ac_cv_lib_clntsh_OCILobIsTemporary" = x""yes; then
92545
 
  
92546
 
    LDFLAGS=$save_old_LDFLAGS
92547
 
    ext_shared=$save_ext_shared
92548
 
    
92549
 
    
92550
 
cat >>confdefs.h <<\_ACEOF
92551
 
@%:@define HAVE_OCILOBISTEMPORARY 1
92552
 
_ACEOF
92553
 
 
92554
 
  
92555
 
  
92556
 
else
92557
 
  
92558
 
    LDFLAGS=$save_old_LDFLAGS
92559
 
    ext_shared=$save_ext_shared
92560
 
    unset ac_cv_lib_clntsh_OCILobIsTemporary
92561
 
    
92562
 
    
92563
 
  save_old_LDFLAGS=$LDFLAGS
92564
 
  ac_stuff="
92565
 
      -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92566
 
    "
92567
 
  
92568
 
  save_ext_shared=$ext_shared
92569
 
  ext_shared=yes
92570
 
  
92571
 
  for ac_i in $ac_stuff; do
92572
 
    case $ac_i in
92573
 
    -pthread)
92574
 
      if test "$ext_shared" = "yes"; then
92575
 
        LDFLAGS="$LDFLAGS -pthread"
92576
 
      else
92577
 
        
92578
 
  
92579
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92580
 
  
92581
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92582
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92583
 
    eval "EXTRA_LDFLAGS$unique=set"
92584
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92585
 
  fi
92586
 
 
92587
 
      fi
92588
 
    ;;
92589
 
    -l*)
92590
 
      ac_ii=`echo $ac_i|cut -c 3-`
92591
 
      
92592
 
  
92593
 
  case $ac_ii in
92594
 
  c|c_r|pthread*) ;;
92595
 
  *) 
92596
 
    if test "$ext_shared" = "yes"; then
92597
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
92598
 
    else
92599
 
      
92600
 
  
92601
 
  case $ac_ii in
92602
 
  c|c_r|pthread*) ;;
92603
 
  *) 
92604
 
      LIBS="$LIBS -l$ac_ii" 
92605
 
   ;;
92606
 
  esac
92607
 
 
92608
 
 
92609
 
    fi
92610
 
   ;;
92611
 
  esac
92612
 
 
92613
 
 
92614
 
    ;;
92615
 
    -L*)
92616
 
      ac_ii=`echo $ac_i|cut -c 3-`
92617
 
      
92618
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92619
 
    
92620
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92621
 
    ai_p=$ac_ii
92622
 
  else
92623
 
    
92624
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92625
 
    
92626
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92627
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92628
 
  fi
92629
 
 
92630
 
    
92631
 
      if test "$ext_shared" = "yes"; then
92632
 
        LDFLAGS="-L$ai_p $LDFLAGS"
92633
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92634
 
      else
92635
 
        
92636
 
  
92637
 
  
92638
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92639
 
  
92640
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92641
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92642
 
    eval "LIBPATH$unique=set"
92643
 
    
92644
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92645
 
    LDFLAGS="$LDFLAGS -L$ai_p"
92646
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
92647
 
  
92648
 
  fi
92649
 
 
92650
 
 
92651
 
      fi
92652
 
    
92653
 
  fi
92654
 
 
92655
 
    ;;
92656
 
    esac
92657
 
  done
92658
 
 
92659
 
  { $as_echo "$as_me:$LINENO: checking for OCILobIsTemporary in -locijdbc8" >&5
92660
 
$as_echo_n "checking for OCILobIsTemporary in -locijdbc8... " >&6; }
92661
 
if test "${ac_cv_lib_ocijdbc8_OCILobIsTemporary+set}" = set; then
92662
 
  $as_echo_n "(cached) " >&6
92663
 
else
92664
 
  ac_check_lib_save_LIBS=$LIBS
92665
 
LIBS="-locijdbc8  $LIBS"
92666
 
cat >conftest.$ac_ext <<_ACEOF
92667
 
/* confdefs.h.  */
92668
 
_ACEOF
92669
 
cat confdefs.h >>conftest.$ac_ext
92670
 
cat >>conftest.$ac_ext <<_ACEOF
92671
 
/* end confdefs.h.  */
92672
 
 
92673
 
/* Override any GCC internal prototype to avoid an error.
92674
 
   Use char because int might match the return type of a GCC
92675
 
   builtin and then its argument prototype would still apply.  */
92676
 
#ifdef __cplusplus
92677
 
extern "C"
92678
 
#endif
92679
 
char OCILobIsTemporary ();
92680
 
int
92681
 
main ()
92682
 
{
92683
 
return OCILobIsTemporary ();
92684
 
  ;
92685
 
  return 0;
92686
 
}
92687
 
_ACEOF
92688
 
rm -f conftest.$ac_objext conftest$ac_exeext
92689
 
if { (ac_try="$ac_link"
92690
 
case "(($ac_try" in
92691
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92692
 
  *) ac_try_echo=$ac_try;;
92693
 
esac
92694
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92695
 
$as_echo "$ac_try_echo") >&5
92696
 
  (eval "$ac_link") 2>conftest.er1
92697
 
  ac_status=$?
92698
 
  grep -v '^ *+' conftest.er1 >conftest.err
92699
 
  rm -f conftest.er1
92700
 
  cat conftest.err >&5
92701
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92702
 
  (exit $ac_status); } && {
92703
 
         test -z "$ac_c_werror_flag" ||
92704
 
         test ! -s conftest.err
92705
 
       } && test -s conftest$ac_exeext && {
92706
 
         test "$cross_compiling" = yes ||
92707
 
         $as_test_x conftest$ac_exeext
92708
 
       }; then
92709
 
  ac_cv_lib_ocijdbc8_OCILobIsTemporary=yes
92710
 
else
92711
 
  $as_echo "$as_me: failed program was:" >&5
92712
 
sed 's/^/| /' conftest.$ac_ext >&5
92713
 
 
92714
 
        ac_cv_lib_ocijdbc8_OCILobIsTemporary=no
92715
 
fi
92716
 
 
92717
 
rm -rf conftest.dSYM
92718
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92719
 
      conftest$ac_exeext conftest.$ac_ext
92720
 
LIBS=$ac_check_lib_save_LIBS
92721
 
fi
92722
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&5
92723
 
$as_echo "$ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&6; }
92724
 
if test "x$ac_cv_lib_ocijdbc8_OCILobIsTemporary" = x""yes; then
92725
 
  
92726
 
    LDFLAGS=$save_old_LDFLAGS
92727
 
    ext_shared=$save_ext_shared
92728
 
    
92729
 
      
92730
 
  
92731
 
  case ocijdbc8 in
92732
 
  c|c_r|pthread*) ;;
92733
 
  *) 
92734
 
    if test "$ext_shared" = "yes"; then
92735
 
        PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -locijdbc8" 
92736
 
    else
92737
 
      
92738
 
  
92739
 
  case ocijdbc8 in
92740
 
  c|c_r|pthread*) ;;
92741
 
  *) 
92742
 
      LIBS="$LIBS -locijdbc8" 
92743
 
   ;;
92744
 
  esac
92745
 
 
92746
 
 
92747
 
    fi
92748
 
   ;;
92749
 
  esac
92750
 
 
92751
 
 
92752
 
      
92753
 
cat >>confdefs.h <<\_ACEOF
92754
 
@%:@define HAVE_OCILOBISTEMPORARY 1
92755
 
_ACEOF
92756
 
 
92757
 
    
92758
 
  
92759
 
else
92760
 
  
92761
 
    LDFLAGS=$save_old_LDFLAGS
92762
 
    ext_shared=$save_ext_shared
92763
 
    unset ac_cv_lib_ocijdbc8_OCILobIsTemporary
92764
 
    
92765
 
  
92766
 
fi
92767
 
 
92768
 
  
92769
 
  
92770
 
fi
92771
 
 
92772
 
 
92773
 
        
92774
 
  save_old_LDFLAGS=$LDFLAGS
92775
 
  ac_stuff="
92776
 
    -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92777
 
  "
92778
 
  
92779
 
  save_ext_shared=$ext_shared
92780
 
  ext_shared=yes
92781
 
  
92782
 
  for ac_i in $ac_stuff; do
92783
 
    case $ac_i in
92784
 
    -pthread)
92785
 
      if test "$ext_shared" = "yes"; then
92786
 
        LDFLAGS="$LDFLAGS -pthread"
92787
 
      else
92788
 
        
92789
 
  
92790
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92791
 
  
92792
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92793
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92794
 
    eval "EXTRA_LDFLAGS$unique=set"
92795
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92796
 
  fi
92797
 
 
92798
 
      fi
92799
 
    ;;
92800
 
    -l*)
92801
 
      ac_ii=`echo $ac_i|cut -c 3-`
92802
 
      
92803
 
  
92804
 
  case $ac_ii in
92805
 
  c|c_r|pthread*) ;;
92806
 
  *) 
92807
 
    if test "$ext_shared" = "yes"; then
92808
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
92809
 
    else
92810
 
      
92811
 
  
92812
 
  case $ac_ii in
92813
 
  c|c_r|pthread*) ;;
92814
 
  *) 
92815
 
      LIBS="$LIBS -l$ac_ii" 
92816
 
   ;;
92817
 
  esac
92818
 
 
92819
 
 
92820
 
    fi
92821
 
   ;;
92822
 
  esac
92823
 
 
92824
 
 
92825
 
    ;;
92826
 
    -L*)
92827
 
      ac_ii=`echo $ac_i|cut -c 3-`
92828
 
      
92829
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92830
 
    
92831
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92832
 
    ai_p=$ac_ii
92833
 
  else
92834
 
    
92835
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
92836
 
    
92837
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
92838
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
92839
 
  fi
92840
 
 
92841
 
    
92842
 
      if test "$ext_shared" = "yes"; then
92843
 
        LDFLAGS="-L$ai_p $LDFLAGS"
92844
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92845
 
      else
92846
 
        
92847
 
  
92848
 
  
92849
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92850
 
  
92851
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92852
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92853
 
    eval "LIBPATH$unique=set"
92854
 
    
92855
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92856
 
    LDFLAGS="$LDFLAGS -L$ai_p"
92857
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
92858
 
  
92859
 
  fi
92860
 
 
92861
 
 
92862
 
      fi
92863
 
    
92864
 
  fi
92865
 
 
92866
 
    ;;
92867
 
    esac
92868
 
  done
92869
 
 
92870
 
  { $as_echo "$as_me:$LINENO: checking for OCICollAssign in -lclntsh" >&5
92871
 
$as_echo_n "checking for OCICollAssign in -lclntsh... " >&6; }
92872
 
if test "${ac_cv_lib_clntsh_OCICollAssign+set}" = set; then
92873
 
  $as_echo_n "(cached) " >&6
92874
 
else
92875
 
  ac_check_lib_save_LIBS=$LIBS
92876
 
LIBS="-lclntsh  $LIBS"
92877
 
cat >conftest.$ac_ext <<_ACEOF
92878
 
/* confdefs.h.  */
92879
 
_ACEOF
92880
 
cat confdefs.h >>conftest.$ac_ext
92881
 
cat >>conftest.$ac_ext <<_ACEOF
92882
 
/* end confdefs.h.  */
92883
 
 
92884
 
/* Override any GCC internal prototype to avoid an error.
92885
 
   Use char because int might match the return type of a GCC
92886
 
   builtin and then its argument prototype would still apply.  */
92887
 
#ifdef __cplusplus
92888
 
extern "C"
92889
 
#endif
92890
 
char OCICollAssign ();
92891
 
int
92892
 
main ()
92893
 
{
92894
 
return OCICollAssign ();
92895
 
  ;
92896
 
  return 0;
92897
 
}
92898
 
_ACEOF
92899
 
rm -f conftest.$ac_objext conftest$ac_exeext
92900
 
if { (ac_try="$ac_link"
92901
 
case "(($ac_try" in
92902
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92903
 
  *) ac_try_echo=$ac_try;;
92904
 
esac
92905
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92906
 
$as_echo "$ac_try_echo") >&5
92907
 
  (eval "$ac_link") 2>conftest.er1
92908
 
  ac_status=$?
92909
 
  grep -v '^ *+' conftest.er1 >conftest.err
92910
 
  rm -f conftest.er1
92911
 
  cat conftest.err >&5
92912
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92913
 
  (exit $ac_status); } && {
92914
 
         test -z "$ac_c_werror_flag" ||
92915
 
         test ! -s conftest.err
92916
 
       } && test -s conftest$ac_exeext && {
92917
 
         test "$cross_compiling" = yes ||
92918
 
         $as_test_x conftest$ac_exeext
92919
 
       }; then
92920
 
  ac_cv_lib_clntsh_OCICollAssign=yes
92921
 
else
92922
 
  $as_echo "$as_me: failed program was:" >&5
92923
 
sed 's/^/| /' conftest.$ac_ext >&5
92924
 
 
92925
 
        ac_cv_lib_clntsh_OCICollAssign=no
92926
 
fi
92927
 
 
92928
 
rm -rf conftest.dSYM
92929
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92930
 
      conftest$ac_exeext conftest.$ac_ext
92931
 
LIBS=$ac_check_lib_save_LIBS
92932
 
fi
92933
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCICollAssign" >&5
92934
 
$as_echo "$ac_cv_lib_clntsh_OCICollAssign" >&6; }
92935
 
if test "x$ac_cv_lib_clntsh_OCICollAssign" = x""yes; then
92936
 
  
92937
 
    LDFLAGS=$save_old_LDFLAGS
92938
 
    ext_shared=$save_ext_shared
92939
 
    
92940
 
    
92941
 
cat >>confdefs.h <<\_ACEOF
92942
 
@%:@define HAVE_OCICOLLASSIGN 1
92943
 
_ACEOF
92944
 
 
92945
 
  
92946
 
  
92947
 
else
92948
 
  
92949
 
    LDFLAGS=$save_old_LDFLAGS
92950
 
    ext_shared=$save_ext_shared
92951
 
    unset ac_cv_lib_clntsh_OCICollAssign
92952
 
    
92953
 
  
92954
 
fi
92955
 
 
92956
 
 
92957
 
    
92958
 
  save_old_LDFLAGS=$LDFLAGS
92959
 
  ac_stuff="
92960
 
    -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
92961
 
  "
92962
 
  
92963
 
  save_ext_shared=$ext_shared
92964
 
  ext_shared=yes
92965
 
  
92966
 
  for ac_i in $ac_stuff; do
92967
 
    case $ac_i in
92968
 
    -pthread)
92969
 
      if test "$ext_shared" = "yes"; then
92970
 
        LDFLAGS="$LDFLAGS -pthread"
92971
 
      else
92972
 
        
92973
 
  
92974
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92975
 
  
92976
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92977
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
92978
 
    eval "EXTRA_LDFLAGS$unique=set"
92979
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92980
 
  fi
92981
 
 
92982
 
      fi
92983
 
    ;;
92984
 
    -l*)
92985
 
      ac_ii=`echo $ac_i|cut -c 3-`
92986
 
      
92987
 
  
92988
 
  case $ac_ii in
92989
 
  c|c_r|pthread*) ;;
92990
 
  *) 
92991
 
    if test "$ext_shared" = "yes"; then
92992
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
92993
 
    else
92994
 
      
92995
 
  
92996
 
  case $ac_ii in
92997
 
  c|c_r|pthread*) ;;
92998
 
  *) 
92999
 
      LIBS="$LIBS -l$ac_ii" 
93000
 
   ;;
93001
 
  esac
93002
 
 
93003
 
 
93004
 
    fi
93005
 
   ;;
93006
 
  esac
93007
 
 
93008
 
 
93009
 
    ;;
93010
 
    -L*)
93011
 
      ac_ii=`echo $ac_i|cut -c 3-`
93012
 
      
93013
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
93014
 
    
93015
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
93016
 
    ai_p=$ac_ii
93017
 
  else
93018
 
    
93019
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
93020
 
    
93021
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
93022
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
93023
 
  fi
93024
 
 
93025
 
    
93026
 
      if test "$ext_shared" = "yes"; then
93027
 
        LDFLAGS="-L$ai_p $LDFLAGS"
93028
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
93029
 
      else
93030
 
        
93031
 
  
93032
 
  
93033
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
93034
 
  
93035
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
93036
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
93037
 
    eval "LIBPATH$unique=set"
93038
 
    
93039
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
93040
 
    LDFLAGS="$LDFLAGS -L$ai_p"
93041
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
93042
 
  
93043
 
  fi
93044
 
 
93045
 
 
93046
 
      fi
93047
 
    
93048
 
  fi
93049
 
 
93050
 
    ;;
93051
 
    esac
93052
 
  done
93053
 
 
93054
 
  { $as_echo "$as_me:$LINENO: checking for OCIStmtFetch2 in -lclntsh" >&5
93055
 
$as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; }
93056
 
if test "${ac_cv_lib_clntsh_OCIStmtFetch2+set}" = set; then
93057
 
  $as_echo_n "(cached) " >&6
93058
 
else
93059
 
  ac_check_lib_save_LIBS=$LIBS
93060
 
LIBS="-lclntsh  $LIBS"
93061
 
cat >conftest.$ac_ext <<_ACEOF
93062
 
/* confdefs.h.  */
93063
 
_ACEOF
93064
 
cat confdefs.h >>conftest.$ac_ext
93065
 
cat >>conftest.$ac_ext <<_ACEOF
93066
 
/* end confdefs.h.  */
93067
 
 
93068
 
/* Override any GCC internal prototype to avoid an error.
93069
 
   Use char because int might match the return type of a GCC
93070
 
   builtin and then its argument prototype would still apply.  */
93071
 
#ifdef __cplusplus
93072
 
extern "C"
93073
 
#endif
93074
 
char OCIStmtFetch2 ();
93075
 
int
93076
 
main ()
93077
 
{
93078
 
return OCIStmtFetch2 ();
93079
 
  ;
93080
 
  return 0;
93081
 
}
93082
 
_ACEOF
93083
 
rm -f conftest.$ac_objext conftest$ac_exeext
93084
 
if { (ac_try="$ac_link"
93085
 
case "(($ac_try" in
93086
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93087
 
  *) ac_try_echo=$ac_try;;
93088
 
esac
93089
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93090
 
$as_echo "$ac_try_echo") >&5
93091
 
  (eval "$ac_link") 2>conftest.er1
93092
 
  ac_status=$?
93093
 
  grep -v '^ *+' conftest.er1 >conftest.err
93094
 
  rm -f conftest.er1
93095
 
  cat conftest.err >&5
93096
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93097
 
  (exit $ac_status); } && {
93098
 
         test -z "$ac_c_werror_flag" ||
93099
 
         test ! -s conftest.err
93100
 
       } && test -s conftest$ac_exeext && {
93101
 
         test "$cross_compiling" = yes ||
93102
 
         $as_test_x conftest$ac_exeext
93103
 
       }; then
93104
 
  ac_cv_lib_clntsh_OCIStmtFetch2=yes
93105
 
else
93106
 
  $as_echo "$as_me: failed program was:" >&5
93107
 
sed 's/^/| /' conftest.$ac_ext >&5
93108
 
 
93109
 
        ac_cv_lib_clntsh_OCIStmtFetch2=no
93110
 
fi
93111
 
 
93112
 
rm -rf conftest.dSYM
93113
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93114
 
      conftest$ac_exeext conftest.$ac_ext
93115
 
LIBS=$ac_check_lib_save_LIBS
93116
 
fi
93117
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5
93118
 
$as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; }
93119
 
if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = x""yes; then
93120
 
  
93121
 
    LDFLAGS=$save_old_LDFLAGS
93122
 
    ext_shared=$save_ext_shared
93123
 
    
93124
 
     
93125
 
cat >>confdefs.h <<\_ACEOF
93126
 
@%:@define HAVE_OCISTMTFETCH2 1
93127
 
_ACEOF
93128
 
 
93129
 
  
93130
 
  
93131
 
else
93132
 
  
93133
 
    LDFLAGS=$save_old_LDFLAGS
93134
 
    ext_shared=$save_ext_shared
93135
 
    unset ac_cv_lib_clntsh_OCIStmtFetch2
93136
 
    
93137
 
  
93138
 
fi
93139
 
 
93140
 
 
93141
 
  
93142
 
    
93143
 
  { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
93144
 
$as_echo_n "checking for PDO includes... " >&6; }
93145
 
if test "${pdo_inc_path+set}" = set; then
93146
 
  $as_echo_n "(cached) " >&6
93147
 
else
93148
 
  
93149
 
    { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
93150
 
$as_echo_n "checking for PDO includes... " >&6; }
93151
 
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
93152
 
      pdo_inc_path=$abs_srcdir/ext
93153
 
    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
93154
 
      pdo_inc_path=$abs_srcdir/ext
93155
 
    elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
93156
 
      pdo_inc_path=$prefix/include/php/ext
93157
 
    fi
93158
 
  
93159
 
fi
93160
 
{ $as_echo "$as_me:$LINENO: result: $pdo_inc_path" >&5
93161
 
$as_echo "$pdo_inc_path" >&6; }
93162
 
  if test -n "$pdo_inc_path"; then
93163
 
:
93164
 
  else
93165
 
{ { $as_echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
93166
 
$as_echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
93167
 
   { (exit 1); exit 1; }; }
93168
 
  fi
93169
 
 
93170
 
  
93171
 
 
93172
 
  
93173
 
  ext_builddir=ext/pdo_oci
93174
 
  ext_srcdir=$abs_srcdir/ext/pdo_oci
93175
 
 
93176
 
  ac_extra=`echo "-I$pdo_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
93177
 
 
93178
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
93179
 
    PHP_PDO_OCI_SHARED=no
93180
 
    
93181
 
  
93182
 
  case ext/pdo_oci in
93183
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93184
 
  /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93185
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93186
 
  esac
93187
 
  
93188
 
  
93189
 
 
93190
 
  b_c_pre=$php_c_pre
93191
 
  b_cxx_pre=$php_cxx_pre
93192
 
  b_c_meta=$php_c_meta
93193
 
  b_cxx_meta=$php_cxx_meta
93194
 
  b_c_post=$php_c_post
93195
 
  b_cxx_post=$php_cxx_post
93196
 
  b_lo=$php_lo
93197
 
 
93198
 
 
93199
 
  old_IFS=$IFS
93200
 
  for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
93201
 
  
93202
 
      IFS=.
93203
 
      set $ac_src
93204
 
      ac_obj=$1
93205
 
      IFS=$old_IFS
93206
 
      
93207
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
93208
 
 
93209
 
      case $ac_src in
93210
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93211
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93212
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93213
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93214
 
      esac
93215
 
 
93216
 
    cat >>Makefile.objects<<EOF
93217
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93218
 
        $ac_comp
93219
 
EOF
93220
 
  done
93221
 
 
93222
 
 
93223
 
    EXT_STATIC="$EXT_STATIC pdo_oci"
93224
 
    if test "$ext_shared" != "nocli"; then
93225
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
93226
 
    fi
93227
 
  else
93228
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
93229
 
      PHP_PDO_OCI_SHARED=yes
93230
 
      
93231
 
  case ext/pdo_oci in
93232
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93233
 
  /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93234
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93235
 
  esac
93236
 
  
93237
 
  
93238
 
 
93239
 
  b_c_pre=$shared_c_pre
93240
 
  b_cxx_pre=$shared_cxx_pre
93241
 
  b_c_meta=$shared_c_meta
93242
 
  b_cxx_meta=$shared_cxx_meta
93243
 
  b_c_post=$shared_c_post
93244
 
  b_cxx_post=$shared_cxx_post
93245
 
  b_lo=$shared_lo
93246
 
 
93247
 
 
93248
 
  old_IFS=$IFS
93249
 
  for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
93250
 
  
93251
 
      IFS=.
93252
 
      set $ac_src
93253
 
      ac_obj=$1
93254
 
      IFS=$old_IFS
93255
 
      
93256
 
      shared_objects_pdo_oci="$shared_objects_pdo_oci $ac_bdir$ac_obj.lo"
93257
 
 
93258
 
      case $ac_src in
93259
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93260
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93261
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93262
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93263
 
      esac
93264
 
 
93265
 
    cat >>Makefile.objects<<EOF
93266
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93267
 
        $ac_comp
93268
 
EOF
93269
 
  done
93270
 
 
93271
 
      case $host_alias in
93272
 
        *netware*)
93273
 
          
93274
 
  install_modules="install-modules"
93275
 
 
93276
 
  case $host_alias in
93277
 
    *aix*)
93278
 
      suffix=so
93279
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_oci.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PHPPDO_OCI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_oci.so '$ext_builddir'/phppdo_oci.so'
93280
 
      ;;
93281
 
    *netware*)
93282
 
      suffix=nlm
93283
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) -L$(top_builddir)/netware -lphp5lib $(PDO_OCI_SHARED_LIBADD)'
93284
 
      ;;
93285
 
    *)
93286
 
      suffix=la
93287
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PHPPDO_OCI_SHARED_LIBADD)'
93288
 
      ;;
93289
 
  esac
93290
 
 
93291
 
  if test "x" = "xyes"; then
93292
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_oci.$suffix"
93293
 
  else
93294
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_oci.$suffix"
93295
 
  fi
93296
 
  
93297
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
93298
 
 
93299
 
  cat >>Makefile.objects<<EOF
93300
 
\$(phplibdir)/phppdo_oci.$suffix: $ext_builddir/phppdo_oci.$suffix
93301
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_oci.$suffix \$(phplibdir)
93302
 
 
93303
 
$ext_builddir/phppdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PHPPDO_OCI_SHARED_DEPENDENCIES)
93304
 
        $link_cmd
93305
 
 
93306
 
EOF
93307
 
 
93308
 
          ;;
93309
 
        *)
93310
 
          
93311
 
  install_modules="install-modules"
93312
 
 
93313
 
  case $host_alias in
93314
 
    *aix*)
93315
 
      suffix=so
93316
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_oci.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PDO_OCI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_oci.so '$ext_builddir'/pdo_oci.so'
93317
 
      ;;
93318
 
    *netware*)
93319
 
      suffix=nlm
93320
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) -L$(top_builddir)/netware -lphp5lib $(_OCI_SHARED_LIBADD)'
93321
 
      ;;
93322
 
    *)
93323
 
      suffix=la
93324
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_oci) $(PDO_OCI_SHARED_LIBADD)'
93325
 
      ;;
93326
 
  esac
93327
 
 
93328
 
  if test "x" = "xyes"; then
93329
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_oci.$suffix"
93330
 
  else
93331
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_oci.$suffix"
93332
 
  fi
93333
 
  
93334
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
93335
 
 
93336
 
  cat >>Makefile.objects<<EOF
93337
 
\$(phplibdir)/pdo_oci.$suffix: $ext_builddir/pdo_oci.$suffix
93338
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_oci.$suffix \$(phplibdir)
93339
 
 
93340
 
$ext_builddir/pdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PDO_OCI_SHARED_DEPENDENCIES)
93341
 
        $link_cmd
93342
 
 
93343
 
EOF
93344
 
 
93345
 
          ;;
93346
 
      esac
93347
 
      
93348
 
cat >>confdefs.h <<_ACEOF
93349
 
@%:@define COMPILE_DL_PDO_OCI 1
93350
 
_ACEOF
93351
 
 
93352
 
    fi
93353
 
  fi
93354
 
 
93355
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
93356
 
    PHP_PDO_OCI_SHARED=no
93357
 
    case "$PHP_SAPI" in
93358
 
      cgi|embed)
93359
 
        
93360
 
  
93361
 
  case ext/pdo_oci in
93362
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93363
 
  /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93364
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93365
 
  esac
93366
 
  
93367
 
  
93368
 
 
93369
 
  b_c_pre=$php_c_pre
93370
 
  b_cxx_pre=$php_cxx_pre
93371
 
  b_c_meta=$php_c_meta
93372
 
  b_cxx_meta=$php_cxx_meta
93373
 
  b_c_post=$php_c_post
93374
 
  b_cxx_post=$php_cxx_post
93375
 
  b_lo=$php_lo
93376
 
 
93377
 
 
93378
 
  old_IFS=$IFS
93379
 
  for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
93380
 
  
93381
 
      IFS=.
93382
 
      set $ac_src
93383
 
      ac_obj=$1
93384
 
      IFS=$old_IFS
93385
 
      
93386
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
93387
 
 
93388
 
      case $ac_src in
93389
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93390
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93391
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93392
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93393
 
      esac
93394
 
 
93395
 
    cat >>Makefile.objects<<EOF
93396
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93397
 
        $ac_comp
93398
 
EOF
93399
 
  done
93400
 
 
93401
 
 
93402
 
        EXT_STATIC="$EXT_STATIC pdo_oci"
93403
 
        ;;
93404
 
      *)
93405
 
        
93406
 
  
93407
 
  case ext/pdo_oci in
93408
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93409
 
  /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93410
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93411
 
  esac
93412
 
  
93413
 
  
93414
 
 
93415
 
  b_c_pre=$php_c_pre
93416
 
  b_cxx_pre=$php_cxx_pre
93417
 
  b_c_meta=$php_c_meta
93418
 
  b_cxx_meta=$php_cxx_meta
93419
 
  b_c_post=$php_c_post
93420
 
  b_cxx_post=$php_cxx_post
93421
 
  b_lo=$php_lo
93422
 
 
93423
 
 
93424
 
  old_IFS=$IFS
93425
 
  for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
93426
 
  
93427
 
      IFS=.
93428
 
      set $ac_src
93429
 
      ac_obj=$1
93430
 
      IFS=$old_IFS
93431
 
      
93432
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
93433
 
 
93434
 
      case $ac_src in
93435
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93436
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93437
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93438
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93439
 
      esac
93440
 
 
93441
 
    cat >>Makefile.objects<<EOF
93442
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93443
 
        $ac_comp
93444
 
EOF
93445
 
  done
93446
 
 
93447
 
 
93448
 
        ;;
93449
 
    esac
93450
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
93451
 
  fi
93452
 
  
93453
 
  
93454
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
93455
 
  
93456
 
 
93457
 
 
93458
 
  if test "$ext_builddir" = "."; then
93459
 
    PHP_PECL_EXTENSION=pdo_oci
93460
 
    
93461
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
93462
 
 
93463
 
  fi
93464
 
 
93465
 
 
93466
 
  
93467
 
  
93468
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_SHARED_LIBADD"
93469
 
 
93470
 
  
93471
 
 
93472
 
  
93473
 
  
93474
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_DIR"
93475
 
 
93476
 
  
93477
 
 
93478
 
  
93479
 
  
93480
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_VERSION"
93481
 
 
93482
 
  
93483
 
 
93484
 
 
93485
 
  
93486
 
    
93487
 
  am_i_shared=$PHP_PDO_OCI_SHARED
93488
 
  is_it_shared=$PHP_PDO_SHARED
93489
 
  is_it_enabled=$PHP_PDO
93490
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
93491
 
    { { $as_echo "$as_me:$LINENO: error: 
93492
 
You've configured extension pdo_oci to build statically, but it
93493
 
depends on extension pdo, which you've configured to build shared.
93494
 
You either need to build pdo_oci shared or build pdo statically for the
93495
 
build to be successful.
93496
 
" >&5
93497
 
$as_echo "$as_me: error: 
93498
 
You've configured extension pdo_oci to build statically, but it
93499
 
depends on extension pdo, which you've configured to build shared.
93500
 
You either need to build pdo_oci shared or build pdo statically for the
93501
 
build to be successful.
93502
 
" >&2;}
93503
 
   { (exit 1); exit 1; }; }
93504
 
  fi
93505
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
93506
 
    { { $as_echo "$as_me:$LINENO: error: 
93507
 
You've configured extension pdo_oci, which depends on extension pdo,
93508
 
but you've either not enabled pdo, or have disabled it.
93509
 
" >&5
93510
 
$as_echo "$as_me: error: 
93511
 
You've configured extension pdo_oci, which depends on extension pdo,
93512
 
but you've either not enabled pdo, or have disabled it.
93513
 
" >&2;}
93514
 
   { (exit 1); exit 1; }; }
93515
 
  fi
93516
 
  
93517
 
  
93518
 
 
93519
 
  
93520
 
cat >>confdefs.h <<_ACEOF
93521
 
@%:@define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION"
93522
 
_ACEOF
93523
 
 
93524
 
fi
93525
 
 
93526
 
 
93527
 
 
93528
 
 
93529
 
 
93530
 
 
93531
 
php_with_pdo_odbc=no
93532
 
 
93533
 
{ $as_echo "$as_me:$LINENO: checking for ODBC v3 support for PDO" >&5
93534
 
$as_echo_n "checking for ODBC v3 support for PDO... " >&6; }
93535
 
 
93536
 
@%:@ Check whether --with-pdo-odbc was given.
93537
 
if test "${with_pdo_odbc+set}" = set; then
93538
 
  withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval
93539
 
else
93540
 
  
93541
 
  PHP_PDO_ODBC=no
93542
 
  test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL
93543
 
 
93544
 
fi
93545
 
 
93546
 
 
93547
 
 
93548
 
ext_output="yes, shared"
93549
 
ext_shared=yes
93550
 
case $PHP_PDO_ODBC in
93551
 
shared,*)
93552
 
  PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'`
93553
 
  ;;
93554
 
shared)
93555
 
  PHP_PDO_ODBC=yes
93556
 
  ;;
93557
 
no)
93558
 
  ext_output=no
93559
 
  ext_shared=no
93560
 
  ;;
93561
 
*)
93562
 
  ext_output=yes
93563
 
  ext_shared=no
93564
 
  ;;
93565
 
esac
93566
 
 
93567
 
 
93568
 
 
93569
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
93570
 
$as_echo "$ext_output" >&6; }
93571
 
 
93572
 
 
93573
 
 
93574
 
 
93575
 
 
93576
 
 
93577
 
                                  
93578
 
if test "$PHP_PDO_ODBC" != "no"; then
93579
 
 
93580
 
  if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
93581
 
    { { $as_echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
93582
 
$as_echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
93583
 
   { (exit 1); exit 1; }; }
93584
 
  fi
93585
 
 
93586
 
  
93587
 
    
93588
 
  { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
93589
 
$as_echo_n "checking for PDO includes... " >&6; }
93590
 
if test "${pdo_inc_path+set}" = set; then
93591
 
  $as_echo_n "(cached) " >&6
93592
 
else
93593
 
  
93594
 
    { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
93595
 
$as_echo_n "checking for PDO includes... " >&6; }
93596
 
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
93597
 
      pdo_inc_path=$abs_srcdir/ext
93598
 
    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
93599
 
      pdo_inc_path=$abs_srcdir/ext
93600
 
    elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
93601
 
      pdo_inc_path=$prefix/include/php/ext
93602
 
    fi
93603
 
  
93604
 
fi
93605
 
{ $as_echo "$as_me:$LINENO: result: $pdo_inc_path" >&5
93606
 
$as_echo "$pdo_inc_path" >&6; }
93607
 
  if test -n "$pdo_inc_path"; then
93608
 
:
93609
 
  else
93610
 
{ { $as_echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
93611
 
$as_echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
93612
 
   { (exit 1); exit 1; }; }
93613
 
  fi
93614
 
 
93615
 
  
93616
 
 
93617
 
  { $as_echo "$as_me:$LINENO: checking for selected PDO ODBC flavour" >&5
93618
 
$as_echo_n "checking for selected PDO ODBC flavour... " >&6; }
93619
 
 
93620
 
  pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`"
93621
 
  pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`"
93622
 
 
93623
 
  if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then
93624
 
    pdo_odbc_dir=
93625
 
  fi
93626
 
 
93627
 
  case $pdo_odbc_flavour in
93628
 
    ibm-db2)
93629
 
        pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib
93630
 
        pdo_odbc_def_incdir=/home/db2inst1/sqllib/include
93631
 
        pdo_odbc_def_lib=db2
93632
 
        ;;
93633
 
 
93634
 
    iODBC|iodbc)
93635
 
        pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
93636
 
        pdo_odbc_def_incdir=/usr/local/include
93637
 
        pdo_odbc_def_lib=iodbc
93638
 
        ;;
93639
 
 
93640
 
    unixODBC|unixodbc)
93641
 
        pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
93642
 
        pdo_odbc_def_incdir=/usr/local/include
93643
 
        pdo_odbc_def_lib=odbc
93644
 
        ;;
93645
 
 
93646
 
    ODBCRouter|odbcrouter)
93647
 
        pdo_odbc_def_libdir=/usr/$PHP_LIBDIR
93648
 
        pdo_odbc_def_incdir=/usr/include
93649
 
        pdo_odbc_def_lib=odbcsdk
93650
 
        ;;
93651
 
 
93652
 
    generic)
93653
 
        pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`"
93654
 
        pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`"
93655
 
        pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`"
93656
 
        pdo_odbc_flavour="generic-$pdo_odbc_def_lib"
93657
 
        ;;
93658
 
 
93659
 
      *)
93660
 
        { { $as_echo "$as_me:$LINENO: error: Unknown ODBC flavour $pdo_odbc_flavour
93661
 
                            include and lib dirs are looked for under 'dir'.
93662
 
                            
93663
 
                            'flavour' can be one of:  ibm-db2, iODBC, unixODBC, generic
93664
 
                            If ',dir' part is omitted, default for the flavour 
93665
 
                            you have selected will used. e.g.:
93666
 
                            
93667
 
                              --with-pdo-odbc=unixODBC
93668
 
                              
93669
 
                            will check for unixODBC under /usr/local. You may attempt 
93670
 
                            to use an otherwise unsupported driver using the \"generic\" 
93671
 
                            flavour.  The syntax for generic ODBC support is:
93672
 
                            
93673
 
                              --with-pdo-odbc=generic,dir,libname,ldflags,cflags
93674
 
 
93675
 
                            When build as shared the extension filename is always pdo_odbc.so" >&5
93676
 
$as_echo "$as_me: error: Unknown ODBC flavour $pdo_odbc_flavour
93677
 
                            include and lib dirs are looked for under 'dir'.
93678
 
                            
93679
 
                            'flavour' can be one of:  ibm-db2, iODBC, unixODBC, generic
93680
 
                            If ',dir' part is omitted, default for the flavour 
93681
 
                            you have selected will used. e.g.:
93682
 
                            
93683
 
                              --with-pdo-odbc=unixODBC
93684
 
                              
93685
 
                            will check for unixODBC under /usr/local. You may attempt 
93686
 
                            to use an otherwise unsupported driver using the \"generic\" 
93687
 
                            flavour.  The syntax for generic ODBC support is:
93688
 
                            
93689
 
                              --with-pdo-odbc=generic,dir,libname,ldflags,cflags
93690
 
 
93691
 
                            When build as shared the extension filename is always pdo_odbc.so" >&2;}
93692
 
   { (exit 1); exit 1; }; }
93693
 
        ;;
93694
 
  esac
93695
 
 
93696
 
  if test -n "$pdo_odbc_dir"; then
93697
 
    PDO_ODBC_INCDIR="$pdo_odbc_dir/include"
93698
 
    PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR"
93699
 
  else
93700
 
    PDO_ODBC_INCDIR="$pdo_odbc_def_incdir"
93701
 
    PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir"
93702
 
  fi
93703
 
  
93704
 
  { $as_echo "$as_me:$LINENO: result: $pdo_odbc_flavour
93705
 
          libs       $PDO_ODBC_LIBDIR,
93706
 
          headers    $PDO_ODBC_INCDIR" >&5
93707
 
$as_echo "$pdo_odbc_flavour
93708
 
          libs       $PDO_ODBC_LIBDIR,
93709
 
          headers    $PDO_ODBC_INCDIR" >&6; }
93710
 
 
93711
 
  if test ! -d "$PDO_ODBC_LIBDIR" ; then
93712
 
    { $as_echo "$as_me:$LINENO: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5
93713
 
$as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;}
93714
 
  fi
93715
 
 
93716
 
  
93717
 
  { $as_echo "$as_me:$LINENO: checking for odbc.h in $PDO_ODBC_INCDIR" >&5
93718
 
$as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; }
93719
 
  if test -f "$PDO_ODBC_INCDIR/odbc.h"; then
93720
 
    php_pdo_have_header=yes
93721
 
    
93722
 
cat >>confdefs.h <<\_ACEOF
93723
 
@%:@define HAVE_ODBC_H 1
93724
 
_ACEOF
93725
 
 
93726
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93727
 
$as_echo "yes" >&6; }
93728
 
  else
93729
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93730
 
$as_echo "no" >&6; }
93731
 
  fi
93732
 
 
93733
 
  
93734
 
  { $as_echo "$as_me:$LINENO: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5
93735
 
$as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; }
93736
 
  if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then
93737
 
    php_pdo_have_header=yes
93738
 
    
93739
 
cat >>confdefs.h <<\_ACEOF
93740
 
@%:@define HAVE_ODBCSDK_H 1
93741
 
_ACEOF
93742
 
 
93743
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93744
 
$as_echo "yes" >&6; }
93745
 
  else
93746
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93747
 
$as_echo "no" >&6; }
93748
 
  fi
93749
 
 
93750
 
  
93751
 
  { $as_echo "$as_me:$LINENO: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5
93752
 
$as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; }
93753
 
  if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then
93754
 
    php_pdo_have_header=yes
93755
 
    
93756
 
cat >>confdefs.h <<\_ACEOF
93757
 
@%:@define HAVE_IODBC_H 1
93758
 
_ACEOF
93759
 
 
93760
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93761
 
$as_echo "yes" >&6; }
93762
 
  else
93763
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93764
 
$as_echo "no" >&6; }
93765
 
  fi
93766
 
 
93767
 
  
93768
 
  { $as_echo "$as_me:$LINENO: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5
93769
 
$as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; }
93770
 
  if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then
93771
 
    php_pdo_have_header=yes
93772
 
    
93773
 
cat >>confdefs.h <<\_ACEOF
93774
 
@%:@define HAVE_SQLUNIX_H 1
93775
 
_ACEOF
93776
 
 
93777
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93778
 
$as_echo "yes" >&6; }
93779
 
  else
93780
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93781
 
$as_echo "no" >&6; }
93782
 
  fi
93783
 
 
93784
 
  
93785
 
  { $as_echo "$as_me:$LINENO: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5
93786
 
$as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; }
93787
 
  if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then
93788
 
    php_pdo_have_header=yes
93789
 
    
93790
 
cat >>confdefs.h <<\_ACEOF
93791
 
@%:@define HAVE_SQLTYPES_H 1
93792
 
_ACEOF
93793
 
 
93794
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93795
 
$as_echo "yes" >&6; }
93796
 
  else
93797
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93798
 
$as_echo "no" >&6; }
93799
 
  fi
93800
 
 
93801
 
  
93802
 
  { $as_echo "$as_me:$LINENO: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5
93803
 
$as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; }
93804
 
  if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then
93805
 
    php_pdo_have_header=yes
93806
 
    
93807
 
cat >>confdefs.h <<\_ACEOF
93808
 
@%:@define HAVE_SQLUCODE_H 1
93809
 
_ACEOF
93810
 
 
93811
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93812
 
$as_echo "yes" >&6; }
93813
 
  else
93814
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93815
 
$as_echo "no" >&6; }
93816
 
  fi
93817
 
 
93818
 
  
93819
 
  { $as_echo "$as_me:$LINENO: checking for sql.h in $PDO_ODBC_INCDIR" >&5
93820
 
$as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; }
93821
 
  if test -f "$PDO_ODBC_INCDIR/sql.h"; then
93822
 
    php_pdo_have_header=yes
93823
 
    
93824
 
cat >>confdefs.h <<\_ACEOF
93825
 
@%:@define HAVE_SQL_H 1
93826
 
_ACEOF
93827
 
 
93828
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93829
 
$as_echo "yes" >&6; }
93830
 
  else
93831
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93832
 
$as_echo "no" >&6; }
93833
 
  fi
93834
 
 
93835
 
  
93836
 
  { $as_echo "$as_me:$LINENO: checking for isql.h in $PDO_ODBC_INCDIR" >&5
93837
 
$as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; }
93838
 
  if test -f "$PDO_ODBC_INCDIR/isql.h"; then
93839
 
    php_pdo_have_header=yes
93840
 
    
93841
 
cat >>confdefs.h <<\_ACEOF
93842
 
@%:@define HAVE_ISQL_H 1
93843
 
_ACEOF
93844
 
 
93845
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93846
 
$as_echo "yes" >&6; }
93847
 
  else
93848
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93849
 
$as_echo "no" >&6; }
93850
 
  fi
93851
 
 
93852
 
  
93853
 
  { $as_echo "$as_me:$LINENO: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5
93854
 
$as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; }
93855
 
  if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then
93856
 
    php_pdo_have_header=yes
93857
 
    
93858
 
cat >>confdefs.h <<\_ACEOF
93859
 
@%:@define HAVE_SQLEXT_H 1
93860
 
_ACEOF
93861
 
 
93862
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93863
 
$as_echo "yes" >&6; }
93864
 
  else
93865
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93866
 
$as_echo "no" >&6; }
93867
 
  fi
93868
 
 
93869
 
  
93870
 
  { $as_echo "$as_me:$LINENO: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5
93871
 
$as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; }
93872
 
  if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then
93873
 
    php_pdo_have_header=yes
93874
 
    
93875
 
cat >>confdefs.h <<\_ACEOF
93876
 
@%:@define HAVE_ISQLEXT_H 1
93877
 
_ACEOF
93878
 
 
93879
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93880
 
$as_echo "yes" >&6; }
93881
 
  else
93882
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93883
 
$as_echo "no" >&6; }
93884
 
  fi
93885
 
 
93886
 
  
93887
 
  { $as_echo "$as_me:$LINENO: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5
93888
 
$as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; }
93889
 
  if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then
93890
 
    php_pdo_have_header=yes
93891
 
    
93892
 
cat >>confdefs.h <<\_ACEOF
93893
 
@%:@define HAVE_UDBCEXT_H 1
93894
 
_ACEOF
93895
 
 
93896
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93897
 
$as_echo "yes" >&6; }
93898
 
  else
93899
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93900
 
$as_echo "no" >&6; }
93901
 
  fi
93902
 
 
93903
 
  
93904
 
  { $as_echo "$as_me:$LINENO: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5
93905
 
$as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; }
93906
 
  if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then
93907
 
    php_pdo_have_header=yes
93908
 
    
93909
 
cat >>confdefs.h <<\_ACEOF
93910
 
@%:@define HAVE_SQLCLI1_H 1
93911
 
_ACEOF
93912
 
 
93913
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93914
 
$as_echo "yes" >&6; }
93915
 
  else
93916
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93917
 
$as_echo "no" >&6; }
93918
 
  fi
93919
 
 
93920
 
  
93921
 
  { $as_echo "$as_me:$LINENO: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5
93922
 
$as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; }
93923
 
  if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then
93924
 
    php_pdo_have_header=yes
93925
 
    
93926
 
cat >>confdefs.h <<\_ACEOF
93927
 
@%:@define HAVE_LIBRARYMANAGER_H 1
93928
 
_ACEOF
93929
 
 
93930
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93931
 
$as_echo "yes" >&6; }
93932
 
  else
93933
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93934
 
$as_echo "no" >&6; }
93935
 
  fi
93936
 
 
93937
 
  
93938
 
  { $as_echo "$as_me:$LINENO: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5
93939
 
$as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; }
93940
 
  if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then
93941
 
    php_pdo_have_header=yes
93942
 
    
93943
 
cat >>confdefs.h <<\_ACEOF
93944
 
@%:@define HAVE_CLI0CORE_H 1
93945
 
_ACEOF
93946
 
 
93947
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93948
 
$as_echo "yes" >&6; }
93949
 
  else
93950
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93951
 
$as_echo "no" >&6; }
93952
 
  fi
93953
 
 
93954
 
  
93955
 
  { $as_echo "$as_me:$LINENO: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5
93956
 
$as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; }
93957
 
  if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then
93958
 
    php_pdo_have_header=yes
93959
 
    
93960
 
cat >>confdefs.h <<\_ACEOF
93961
 
@%:@define HAVE_CLI0EXT_H 1
93962
 
_ACEOF
93963
 
 
93964
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93965
 
$as_echo "yes" >&6; }
93966
 
  else
93967
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93968
 
$as_echo "no" >&6; }
93969
 
  fi
93970
 
 
93971
 
  
93972
 
  { $as_echo "$as_me:$LINENO: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5
93973
 
$as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; }
93974
 
  if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then
93975
 
    php_pdo_have_header=yes
93976
 
    
93977
 
cat >>confdefs.h <<\_ACEOF
93978
 
@%:@define HAVE_CLI0CLI_H 1
93979
 
_ACEOF
93980
 
 
93981
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93982
 
$as_echo "yes" >&6; }
93983
 
  else
93984
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
93985
 
$as_echo "no" >&6; }
93986
 
  fi
93987
 
 
93988
 
  
93989
 
  { $as_echo "$as_me:$LINENO: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5
93990
 
$as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; }
93991
 
  if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then
93992
 
    php_pdo_have_header=yes
93993
 
    
93994
 
cat >>confdefs.h <<\_ACEOF
93995
 
@%:@define HAVE_CLI0DEFS_H 1
93996
 
_ACEOF
93997
 
 
93998
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
93999
 
$as_echo "yes" >&6; }
94000
 
  else
94001
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
94002
 
$as_echo "no" >&6; }
94003
 
  fi
94004
 
 
94005
 
  
94006
 
  { $as_echo "$as_me:$LINENO: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5
94007
 
$as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; }
94008
 
  if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then
94009
 
    php_pdo_have_header=yes
94010
 
    
94011
 
cat >>confdefs.h <<\_ACEOF
94012
 
@%:@define HAVE_CLI0ENV_H 1
94013
 
_ACEOF
94014
 
 
94015
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
94016
 
$as_echo "yes" >&6; }
94017
 
  else
94018
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
94019
 
$as_echo "no" >&6; }
94020
 
  fi
94021
 
 
94022
 
 
94023
 
  if test "$php_pdo_have_header" != "yes"; then
94024
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find header file(s) for pdo_odbc" >&5
94025
 
$as_echo "$as_me: error: Cannot find header file(s) for pdo_odbc" >&2;}
94026
 
   { (exit 1); exit 1; }; }
94027
 
  fi
94028
 
 
94029
 
  PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\""
94030
 
  PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib"
94031
 
 
94032
 
  
94033
 
  for ac_i in $PDO_ODBC_LDFLAGS; do
94034
 
    case $ac_i in
94035
 
    -pthread)
94036
 
      if test "$ext_shared" = "yes"; then
94037
 
        PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread"
94038
 
      else
94039
 
        
94040
 
  
94041
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
94042
 
  
94043
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
94044
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
94045
 
    eval "EXTRA_LDFLAGS$unique=set"
94046
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
94047
 
  fi
94048
 
 
94049
 
      fi
94050
 
    ;;
94051
 
    -l*)
94052
 
      ac_ii=`echo $ac_i|cut -c 3-`
94053
 
      
94054
 
  
94055
 
  case $ac_ii in
94056
 
  c|c_r|pthread*) ;;
94057
 
  *) 
94058
 
    if test "$ext_shared" = "yes"; then
94059
 
        PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii" 
94060
 
    else
94061
 
      
94062
 
  
94063
 
  case $ac_ii in
94064
 
  c|c_r|pthread*) ;;
94065
 
  *) 
94066
 
      LIBS="$LIBS -l$ac_ii" 
94067
 
   ;;
94068
 
  esac
94069
 
 
94070
 
 
94071
 
    fi
94072
 
   ;;
94073
 
  esac
94074
 
 
94075
 
 
94076
 
    ;;
94077
 
    -L*)
94078
 
      ac_ii=`echo $ac_i|cut -c 3-`
94079
 
      
94080
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
94081
 
    
94082
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
94083
 
    ai_p=$ac_ii
94084
 
  else
94085
 
    
94086
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
94087
 
    
94088
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94089
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
94090
 
  fi
94091
 
 
94092
 
    
94093
 
      if test "$ext_shared" = "yes"; then
94094
 
        PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD"
94095
 
        test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD"
94096
 
      else
94097
 
        
94098
 
  
94099
 
  
94100
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94101
 
  
94102
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
94103
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
94104
 
    eval "LIBPATH$unique=set"
94105
 
    
94106
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
94107
 
    LDFLAGS="$LDFLAGS -L$ai_p"
94108
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
94109
 
  
94110
 
  fi
94111
 
 
94112
 
 
94113
 
      fi
94114
 
    
94115
 
  fi
94116
 
 
94117
 
    ;;
94118
 
    esac
94119
 
  done
94120
 
 
94121
 
 
94122
 
    
94123
 
  save_old_LDFLAGS=$LDFLAGS
94124
 
  ac_stuff="$PDO_ODBC_LDFLAGS"
94125
 
  
94126
 
  save_ext_shared=$ext_shared
94127
 
  ext_shared=yes
94128
 
  
94129
 
  for ac_i in $ac_stuff; do
94130
 
    case $ac_i in
94131
 
    -pthread)
94132
 
      if test "$ext_shared" = "yes"; then
94133
 
        LDFLAGS="$LDFLAGS -pthread"
94134
 
      else
94135
 
        
94136
 
  
94137
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
94138
 
  
94139
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
94140
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
94141
 
    eval "EXTRA_LDFLAGS$unique=set"
94142
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
94143
 
  fi
94144
 
 
94145
 
      fi
94146
 
    ;;
94147
 
    -l*)
94148
 
      ac_ii=`echo $ac_i|cut -c 3-`
94149
 
      
94150
 
  
94151
 
  case $ac_ii in
94152
 
  c|c_r|pthread*) ;;
94153
 
  *) 
94154
 
    if test "$ext_shared" = "yes"; then
94155
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
94156
 
    else
94157
 
      
94158
 
  
94159
 
  case $ac_ii in
94160
 
  c|c_r|pthread*) ;;
94161
 
  *) 
94162
 
      LIBS="$LIBS -l$ac_ii" 
94163
 
   ;;
94164
 
  esac
94165
 
 
94166
 
 
94167
 
    fi
94168
 
   ;;
94169
 
  esac
94170
 
 
94171
 
 
94172
 
    ;;
94173
 
    -L*)
94174
 
      ac_ii=`echo $ac_i|cut -c 3-`
94175
 
      
94176
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
94177
 
    
94178
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
94179
 
    ai_p=$ac_ii
94180
 
  else
94181
 
    
94182
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
94183
 
    
94184
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94185
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
94186
 
  fi
94187
 
 
94188
 
    
94189
 
      if test "$ext_shared" = "yes"; then
94190
 
        LDFLAGS="-L$ai_p $LDFLAGS"
94191
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
94192
 
      else
94193
 
        
94194
 
  
94195
 
  
94196
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94197
 
  
94198
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
94199
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
94200
 
    eval "LIBPATH$unique=set"
94201
 
    
94202
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
94203
 
    LDFLAGS="$LDFLAGS -L$ai_p"
94204
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
94205
 
  
94206
 
  fi
94207
 
 
94208
 
 
94209
 
      fi
94210
 
    
94211
 
  fi
94212
 
 
94213
 
    ;;
94214
 
    esac
94215
 
  done
94216
 
 
94217
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh`
94218
 
{ $as_echo "$as_me:$LINENO: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5
94219
 
$as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; }
94220
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
94221
 
  $as_echo_n "(cached) " >&6
94222
 
else
94223
 
  ac_check_lib_save_LIBS=$LIBS
94224
 
LIBS="-l$pdo_odbc_def_lib  $LIBS"
94225
 
cat >conftest.$ac_ext <<_ACEOF
94226
 
/* confdefs.h.  */
94227
 
_ACEOF
94228
 
cat confdefs.h >>conftest.$ac_ext
94229
 
cat >>conftest.$ac_ext <<_ACEOF
94230
 
/* end confdefs.h.  */
94231
 
 
94232
 
/* Override any GCC internal prototype to avoid an error.
94233
 
   Use char because int might match the return type of a GCC
94234
 
   builtin and then its argument prototype would still apply.  */
94235
 
#ifdef __cplusplus
94236
 
extern "C"
94237
 
#endif
94238
 
char SQLBindCol ();
94239
 
int
94240
 
main ()
94241
 
{
94242
 
return SQLBindCol ();
94243
 
  ;
94244
 
  return 0;
94245
 
}
94246
 
_ACEOF
94247
 
rm -f conftest.$ac_objext conftest$ac_exeext
94248
 
if { (ac_try="$ac_link"
94249
 
case "(($ac_try" in
94250
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94251
 
  *) ac_try_echo=$ac_try;;
94252
 
esac
94253
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94254
 
$as_echo "$ac_try_echo") >&5
94255
 
  (eval "$ac_link") 2>conftest.er1
94256
 
  ac_status=$?
94257
 
  grep -v '^ *+' conftest.er1 >conftest.err
94258
 
  rm -f conftest.er1
94259
 
  cat conftest.err >&5
94260
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94261
 
  (exit $ac_status); } && {
94262
 
         test -z "$ac_c_werror_flag" ||
94263
 
         test ! -s conftest.err
94264
 
       } && test -s conftest$ac_exeext && {
94265
 
         test "$cross_compiling" = yes ||
94266
 
         $as_test_x conftest$ac_exeext
94267
 
       }; then
94268
 
  eval "$as_ac_Lib=yes"
94269
 
else
94270
 
  $as_echo "$as_me: failed program was:" >&5
94271
 
sed 's/^/| /' conftest.$ac_ext >&5
94272
 
 
94273
 
        eval "$as_ac_Lib=no"
94274
 
fi
94275
 
 
94276
 
rm -rf conftest.dSYM
94277
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94278
 
      conftest$ac_exeext conftest.$ac_ext
94279
 
LIBS=$ac_check_lib_save_LIBS
94280
 
fi
94281
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
94282
 
                 $as_echo "$as_val"'`
94283
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
94284
 
$as_echo "$ac_res" >&6; }
94285
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
94286
 
                 $as_echo "$as_val"'`
94287
 
   if test "x$as_val" = x""yes; then
94288
 
  
94289
 
    LDFLAGS=$save_old_LDFLAGS
94290
 
    ext_shared=$save_ext_shared
94291
 
    
94292
 
            
94293
 
  save_old_LDFLAGS=$LDFLAGS
94294
 
  ac_stuff="$PDO_ODBC_LDFLAGS"
94295
 
  
94296
 
  save_ext_shared=$ext_shared
94297
 
  ext_shared=yes
94298
 
  
94299
 
  for ac_i in $ac_stuff; do
94300
 
    case $ac_i in
94301
 
    -pthread)
94302
 
      if test "$ext_shared" = "yes"; then
94303
 
        LDFLAGS="$LDFLAGS -pthread"
94304
 
      else
94305
 
        
94306
 
  
94307
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
94308
 
  
94309
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
94310
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
94311
 
    eval "EXTRA_LDFLAGS$unique=set"
94312
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
94313
 
  fi
94314
 
 
94315
 
      fi
94316
 
    ;;
94317
 
    -l*)
94318
 
      ac_ii=`echo $ac_i|cut -c 3-`
94319
 
      
94320
 
  
94321
 
  case $ac_ii in
94322
 
  c|c_r|pthread*) ;;
94323
 
  *) 
94324
 
    if test "$ext_shared" = "yes"; then
94325
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
94326
 
    else
94327
 
      
94328
 
  
94329
 
  case $ac_ii in
94330
 
  c|c_r|pthread*) ;;
94331
 
  *) 
94332
 
      LIBS="$LIBS -l$ac_ii" 
94333
 
   ;;
94334
 
  esac
94335
 
 
94336
 
 
94337
 
    fi
94338
 
   ;;
94339
 
  esac
94340
 
 
94341
 
 
94342
 
    ;;
94343
 
    -L*)
94344
 
      ac_ii=`echo $ac_i|cut -c 3-`
94345
 
      
94346
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
94347
 
    
94348
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
94349
 
    ai_p=$ac_ii
94350
 
  else
94351
 
    
94352
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
94353
 
    
94354
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94355
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
94356
 
  fi
94357
 
 
94358
 
    
94359
 
      if test "$ext_shared" = "yes"; then
94360
 
        LDFLAGS="-L$ai_p $LDFLAGS"
94361
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
94362
 
      else
94363
 
        
94364
 
  
94365
 
  
94366
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94367
 
  
94368
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
94369
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
94370
 
    eval "LIBPATH$unique=set"
94371
 
    
94372
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
94373
 
    LDFLAGS="$LDFLAGS -L$ai_p"
94374
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
94375
 
  
94376
 
  fi
94377
 
 
94378
 
 
94379
 
      fi
94380
 
    
94381
 
  fi
94382
 
 
94383
 
    ;;
94384
 
    esac
94385
 
  done
94386
 
 
94387
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh`
94388
 
{ $as_echo "$as_me:$LINENO: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5
94389
 
$as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; }
94390
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
94391
 
  $as_echo_n "(cached) " >&6
94392
 
else
94393
 
  ac_check_lib_save_LIBS=$LIBS
94394
 
LIBS="-l$pdo_odbc_def_lib  $LIBS"
94395
 
cat >conftest.$ac_ext <<_ACEOF
94396
 
/* confdefs.h.  */
94397
 
_ACEOF
94398
 
cat confdefs.h >>conftest.$ac_ext
94399
 
cat >>conftest.$ac_ext <<_ACEOF
94400
 
/* end confdefs.h.  */
94401
 
 
94402
 
/* Override any GCC internal prototype to avoid an error.
94403
 
   Use char because int might match the return type of a GCC
94404
 
   builtin and then its argument prototype would still apply.  */
94405
 
#ifdef __cplusplus
94406
 
extern "C"
94407
 
#endif
94408
 
char SQLAllocHandle ();
94409
 
int
94410
 
main ()
94411
 
{
94412
 
return SQLAllocHandle ();
94413
 
  ;
94414
 
  return 0;
94415
 
}
94416
 
_ACEOF
94417
 
rm -f conftest.$ac_objext conftest$ac_exeext
94418
 
if { (ac_try="$ac_link"
94419
 
case "(($ac_try" in
94420
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94421
 
  *) ac_try_echo=$ac_try;;
94422
 
esac
94423
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94424
 
$as_echo "$ac_try_echo") >&5
94425
 
  (eval "$ac_link") 2>conftest.er1
94426
 
  ac_status=$?
94427
 
  grep -v '^ *+' conftest.er1 >conftest.err
94428
 
  rm -f conftest.er1
94429
 
  cat conftest.err >&5
94430
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94431
 
  (exit $ac_status); } && {
94432
 
         test -z "$ac_c_werror_flag" ||
94433
 
         test ! -s conftest.err
94434
 
       } && test -s conftest$ac_exeext && {
94435
 
         test "$cross_compiling" = yes ||
94436
 
         $as_test_x conftest$ac_exeext
94437
 
       }; then
94438
 
  eval "$as_ac_Lib=yes"
94439
 
else
94440
 
  $as_echo "$as_me: failed program was:" >&5
94441
 
sed 's/^/| /' conftest.$ac_ext >&5
94442
 
 
94443
 
        eval "$as_ac_Lib=no"
94444
 
fi
94445
 
 
94446
 
rm -rf conftest.dSYM
94447
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94448
 
      conftest$ac_exeext conftest.$ac_ext
94449
 
LIBS=$ac_check_lib_save_LIBS
94450
 
fi
94451
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
94452
 
                 $as_echo "$as_val"'`
94453
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
94454
 
$as_echo "$ac_res" >&6; }
94455
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
94456
 
                 $as_echo "$as_val"'`
94457
 
   if test "x$as_val" = x""yes; then
94458
 
  
94459
 
    LDFLAGS=$save_old_LDFLAGS
94460
 
    ext_shared=$save_ext_shared
94461
 
    
94462
 
  
94463
 
else
94464
 
  
94465
 
    LDFLAGS=$save_old_LDFLAGS
94466
 
    ext_shared=$save_ext_shared
94467
 
    unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle
94468
 
    
94469
 
      { { $as_echo "$as_me:$LINENO: error: 
94470
 
Your ODBC library does not appear to be ODBC 3 compatible.
94471
 
You should consider using iODBC or unixODBC instead, and loading your
94472
 
libraries as a driver in that environment; it will emulate the
94473
 
functions required for PDO support.
94474
 
" >&5
94475
 
$as_echo "$as_me: error: 
94476
 
Your ODBC library does not appear to be ODBC 3 compatible.
94477
 
You should consider using iODBC or unixODBC instead, and loading your
94478
 
libraries as a driver in that environment; it will emulate the
94479
 
functions required for PDO support.
94480
 
" >&2;}
94481
 
   { (exit 1); exit 1; }; }
94482
 
  
94483
 
fi
94484
 
 
94485
 
  
94486
 
  
94487
 
else
94488
 
  
94489
 
    LDFLAGS=$save_old_LDFLAGS
94490
 
    ext_shared=$save_ext_shared
94491
 
    unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol
94492
 
    
94493
 
    { { $as_echo "$as_me:$LINENO: error: Your ODBC library does not exist or there was an error. Check config.log for more information" >&5
94494
 
$as_echo "$as_me: error: Your ODBC library does not exist or there was an error. Check config.log for more information" >&2;}
94495
 
   { (exit 1); exit 1; }; }
94496
 
  
94497
 
  
94498
 
fi
94499
 
 
94500
 
 
94501
 
  
94502
 
  ext_builddir=ext/pdo_odbc
94503
 
  ext_srcdir=$abs_srcdir/ext/pdo_odbc
94504
 
 
94505
 
  ac_extra=`echo "-I$pdo_inc_path $PDO_ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
94506
 
 
94507
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
94508
 
    PHP_PDO_ODBC_SHARED=no
94509
 
    
94510
 
  
94511
 
  case ext/pdo_odbc in
94512
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94513
 
  /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94514
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94515
 
  esac
94516
 
  
94517
 
  
94518
 
 
94519
 
  b_c_pre=$php_c_pre
94520
 
  b_cxx_pre=$php_cxx_pre
94521
 
  b_c_meta=$php_c_meta
94522
 
  b_cxx_meta=$php_cxx_meta
94523
 
  b_c_post=$php_c_post
94524
 
  b_cxx_post=$php_cxx_post
94525
 
  b_lo=$php_lo
94526
 
 
94527
 
 
94528
 
  old_IFS=$IFS
94529
 
  for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
94530
 
  
94531
 
      IFS=.
94532
 
      set $ac_src
94533
 
      ac_obj=$1
94534
 
      IFS=$old_IFS
94535
 
      
94536
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94537
 
 
94538
 
      case $ac_src in
94539
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94540
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94541
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94542
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94543
 
      esac
94544
 
 
94545
 
    cat >>Makefile.objects<<EOF
94546
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94547
 
        $ac_comp
94548
 
EOF
94549
 
  done
94550
 
 
94551
 
 
94552
 
    EXT_STATIC="$EXT_STATIC pdo_odbc"
94553
 
    if test "$ext_shared" != "nocli"; then
94554
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
94555
 
    fi
94556
 
  else
94557
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
94558
 
      PHP_PDO_ODBC_SHARED=yes
94559
 
      
94560
 
  case ext/pdo_odbc in
94561
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94562
 
  /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94563
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94564
 
  esac
94565
 
  
94566
 
  
94567
 
 
94568
 
  b_c_pre=$shared_c_pre
94569
 
  b_cxx_pre=$shared_cxx_pre
94570
 
  b_c_meta=$shared_c_meta
94571
 
  b_cxx_meta=$shared_cxx_meta
94572
 
  b_c_post=$shared_c_post
94573
 
  b_cxx_post=$shared_cxx_post
94574
 
  b_lo=$shared_lo
94575
 
 
94576
 
 
94577
 
  old_IFS=$IFS
94578
 
  for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
94579
 
  
94580
 
      IFS=.
94581
 
      set $ac_src
94582
 
      ac_obj=$1
94583
 
      IFS=$old_IFS
94584
 
      
94585
 
      shared_objects_pdo_odbc="$shared_objects_pdo_odbc $ac_bdir$ac_obj.lo"
94586
 
 
94587
 
      case $ac_src in
94588
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94589
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94590
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94591
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94592
 
      esac
94593
 
 
94594
 
    cat >>Makefile.objects<<EOF
94595
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94596
 
        $ac_comp
94597
 
EOF
94598
 
  done
94599
 
 
94600
 
      case $host_alias in
94601
 
        *netware*)
94602
 
          
94603
 
  install_modules="install-modules"
94604
 
 
94605
 
  case $host_alias in
94606
 
    *aix*)
94607
 
      suffix=so
94608
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PHPPDO_ODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_odbc.so '$ext_builddir'/phppdo_odbc.so'
94609
 
      ;;
94610
 
    *netware*)
94611
 
      suffix=nlm
94612
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) -L$(top_builddir)/netware -lphp5lib $(PDO_ODBC_SHARED_LIBADD)'
94613
 
      ;;
94614
 
    *)
94615
 
      suffix=la
94616
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PHPPDO_ODBC_SHARED_LIBADD)'
94617
 
      ;;
94618
 
  esac
94619
 
 
94620
 
  if test "x" = "xyes"; then
94621
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_odbc.$suffix"
94622
 
  else
94623
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_odbc.$suffix"
94624
 
  fi
94625
 
  
94626
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
94627
 
 
94628
 
  cat >>Makefile.objects<<EOF
94629
 
\$(phplibdir)/phppdo_odbc.$suffix: $ext_builddir/phppdo_odbc.$suffix
94630
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_odbc.$suffix \$(phplibdir)
94631
 
 
94632
 
$ext_builddir/phppdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PHPPDO_ODBC_SHARED_DEPENDENCIES)
94633
 
        $link_cmd
94634
 
 
94635
 
EOF
94636
 
 
94637
 
          ;;
94638
 
        *)
94639
 
          
94640
 
  install_modules="install-modules"
94641
 
 
94642
 
  case $host_alias in
94643
 
    *aix*)
94644
 
      suffix=so
94645
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_odbc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PDO_ODBC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_odbc.so '$ext_builddir'/pdo_odbc.so'
94646
 
      ;;
94647
 
    *netware*)
94648
 
      suffix=nlm
94649
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) -L$(top_builddir)/netware -lphp5lib $(_ODBC_SHARED_LIBADD)'
94650
 
      ;;
94651
 
    *)
94652
 
      suffix=la
94653
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_odbc) $(PDO_ODBC_SHARED_LIBADD)'
94654
 
      ;;
94655
 
  esac
94656
 
 
94657
 
  if test "x" = "xyes"; then
94658
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_odbc.$suffix"
94659
 
  else
94660
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_odbc.$suffix"
94661
 
  fi
94662
 
  
94663
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
94664
 
 
94665
 
  cat >>Makefile.objects<<EOF
94666
 
\$(phplibdir)/pdo_odbc.$suffix: $ext_builddir/pdo_odbc.$suffix
94667
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_odbc.$suffix \$(phplibdir)
94668
 
 
94669
 
$ext_builddir/pdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PDO_ODBC_SHARED_DEPENDENCIES)
94670
 
        $link_cmd
94671
 
 
94672
 
EOF
94673
 
 
94674
 
          ;;
94675
 
      esac
94676
 
      
94677
 
cat >>confdefs.h <<_ACEOF
94678
 
@%:@define COMPILE_DL_PDO_ODBC 1
94679
 
_ACEOF
94680
 
 
94681
 
    fi
94682
 
  fi
94683
 
 
94684
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
94685
 
    PHP_PDO_ODBC_SHARED=no
94686
 
    case "$PHP_SAPI" in
94687
 
      cgi|embed)
94688
 
        
94689
 
  
94690
 
  case ext/pdo_odbc in
94691
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94692
 
  /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94693
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94694
 
  esac
94695
 
  
94696
 
  
94697
 
 
94698
 
  b_c_pre=$php_c_pre
94699
 
  b_cxx_pre=$php_cxx_pre
94700
 
  b_c_meta=$php_c_meta
94701
 
  b_cxx_meta=$php_cxx_meta
94702
 
  b_c_post=$php_c_post
94703
 
  b_cxx_post=$php_cxx_post
94704
 
  b_lo=$php_lo
94705
 
 
94706
 
 
94707
 
  old_IFS=$IFS
94708
 
  for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
94709
 
  
94710
 
      IFS=.
94711
 
      set $ac_src
94712
 
      ac_obj=$1
94713
 
      IFS=$old_IFS
94714
 
      
94715
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94716
 
 
94717
 
      case $ac_src in
94718
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94719
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94720
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94721
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94722
 
      esac
94723
 
 
94724
 
    cat >>Makefile.objects<<EOF
94725
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94726
 
        $ac_comp
94727
 
EOF
94728
 
  done
94729
 
 
94730
 
 
94731
 
        EXT_STATIC="$EXT_STATIC pdo_odbc"
94732
 
        ;;
94733
 
      *)
94734
 
        
94735
 
  
94736
 
  case ext/pdo_odbc in
94737
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94738
 
  /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94739
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94740
 
  esac
94741
 
  
94742
 
  
94743
 
 
94744
 
  b_c_pre=$php_c_pre
94745
 
  b_cxx_pre=$php_cxx_pre
94746
 
  b_c_meta=$php_c_meta
94747
 
  b_cxx_meta=$php_cxx_meta
94748
 
  b_c_post=$php_c_post
94749
 
  b_cxx_post=$php_cxx_post
94750
 
  b_lo=$php_lo
94751
 
 
94752
 
 
94753
 
  old_IFS=$IFS
94754
 
  for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
94755
 
  
94756
 
      IFS=.
94757
 
      set $ac_src
94758
 
      ac_obj=$1
94759
 
      IFS=$old_IFS
94760
 
      
94761
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
94762
 
 
94763
 
      case $ac_src in
94764
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94765
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94766
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94767
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94768
 
      esac
94769
 
 
94770
 
    cat >>Makefile.objects<<EOF
94771
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94772
 
        $ac_comp
94773
 
EOF
94774
 
  done
94775
 
 
94776
 
 
94777
 
        ;;
94778
 
    esac
94779
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
94780
 
  fi
94781
 
  
94782
 
  
94783
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
94784
 
  
94785
 
 
94786
 
 
94787
 
  if test "$ext_builddir" = "."; then
94788
 
    PHP_PECL_EXTENSION=pdo_odbc
94789
 
    
94790
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
94791
 
 
94792
 
  fi
94793
 
 
94794
 
  
94795
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_ODBC_SHARED_LIBADD"
94796
 
 
94797
 
  
94798
 
    
94799
 
  am_i_shared=$PHP_PDO_ODBC_SHARED
94800
 
  is_it_shared=$PHP_PDO_SHARED
94801
 
  is_it_enabled=$PHP_PDO
94802
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
94803
 
    { { $as_echo "$as_me:$LINENO: error: 
94804
 
You've configured extension pdo_odbc to build statically, but it
94805
 
depends on extension pdo, which you've configured to build shared.
94806
 
You either need to build pdo_odbc shared or build pdo statically for the
94807
 
build to be successful.
94808
 
" >&5
94809
 
$as_echo "$as_me: error: 
94810
 
You've configured extension pdo_odbc to build statically, but it
94811
 
depends on extension pdo, which you've configured to build shared.
94812
 
You either need to build pdo_odbc shared or build pdo statically for the
94813
 
build to be successful.
94814
 
" >&2;}
94815
 
   { (exit 1); exit 1; }; }
94816
 
  fi
94817
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
94818
 
    { { $as_echo "$as_me:$LINENO: error: 
94819
 
You've configured extension pdo_odbc, which depends on extension pdo,
94820
 
but you've either not enabled pdo, or have disabled it.
94821
 
" >&5
94822
 
$as_echo "$as_me: error: 
94823
 
You've configured extension pdo_odbc, which depends on extension pdo,
94824
 
but you've either not enabled pdo, or have disabled it.
94825
 
" >&2;}
94826
 
   { (exit 1); exit 1; }; }
94827
 
  fi
94828
 
  
94829
 
  
94830
 
fi
94831
 
 
94832
 
 
94833
 
 
94834
 
php_with_pdo_pgsql=no
94835
 
 
94836
 
{ $as_echo "$as_me:$LINENO: checking for PostgreSQL support for PDO" >&5
94837
 
$as_echo_n "checking for PostgreSQL support for PDO... " >&6; }
94838
 
 
94839
 
@%:@ Check whether --with-pdo-pgsql was given.
94840
 
if test "${with_pdo_pgsql+set}" = set; then
94841
 
  withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval
94842
 
else
94843
 
  
94844
 
  PHP_PDO_PGSQL=no
94845
 
  test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL
94846
 
 
94847
 
fi
94848
 
 
94849
 
 
94850
 
 
94851
 
ext_output="yes, shared"
94852
 
ext_shared=yes
94853
 
case $PHP_PDO_PGSQL in
94854
 
shared,*)
94855
 
  PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'`
94856
 
  ;;
94857
 
shared)
94858
 
  PHP_PDO_PGSQL=yes
94859
 
  ;;
94860
 
no)
94861
 
  ext_output=no
94862
 
  ext_shared=no
94863
 
  ;;
94864
 
*)
94865
 
  ext_output=yes
94866
 
  ext_shared=no
94867
 
  ;;
94868
 
esac
94869
 
 
94870
 
 
94871
 
 
94872
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
94873
 
$as_echo "$ext_output" >&6; }
94874
 
 
94875
 
 
94876
 
 
94877
 
 
94878
 
if test "$PHP_PDO_PGSQL" != "no"; then
94879
 
 
94880
 
  if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
94881
 
    { { $as_echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
94882
 
$as_echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
94883
 
   { (exit 1); exit 1; }; }
94884
 
  fi
94885
 
 
94886
 
  
94887
 
  if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
94888
 
    PGSQL_INCLUDE=$PGSQL_INCLUDE
94889
 
  else
94890
 
    
94891
 
    ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
94892
 
    
94893
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94894
 
    PGSQL_INCLUDE="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
94895
 
  fi
94896
 
 
94897
 
 
94898
 
  { $as_echo "$as_me:$LINENO: checking for pg_config" >&5
94899
 
$as_echo_n "checking for pg_config... " >&6; }
94900
 
  for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
94901
 
    if test -x $i/pg_config; then
94902
 
      PG_CONFIG="$i/pg_config"
94903
 
      break;
94904
 
    fi
94905
 
  done
94906
 
 
94907
 
  if test -n "$PG_CONFIG"; then
94908
 
    { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
94909
 
$as_echo "$PG_CONFIG" >&6; }
94910
 
    PGSQL_INCLUDE=`$PG_CONFIG --includedir`
94911
 
    PGSQL_LIBDIR=`$PG_CONFIG --libdir`
94912
 
    
94913
 
cat >>confdefs.h <<\_ACEOF
94914
 
@%:@define HAVE_PG_CONFIG_H 1
94915
 
_ACEOF
94916
 
 
94917
 
  else
94918
 
    { $as_echo "$as_me:$LINENO: result: not found" >&5
94919
 
$as_echo "not found" >&6; }
94920
 
    if test "$PHP_PDO_PGSQL" = "yes"; then
94921
 
      PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
94922
 
    else
94923
 
      PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL
94924
 
    fi
94925
 
  
94926
 
    for i in $PGSQL_SEARCH_PATHS; do
94927
 
      for j in include include/pgsql include/postgres include/postgresql ""; do
94928
 
        if test -r "$i/$j/libpq-fe.h"; then
94929
 
          PGSQL_INC_BASE=$i
94930
 
          PGSQL_INCLUDE=$i/$j
94931
 
          if test -r "$i/$j/pg_config.h"; then
94932
 
            
94933
 
cat >>confdefs.h <<\_ACEOF
94934
 
@%:@define HAVE_PG_CONFIG_H 1
94935
 
_ACEOF
94936
 
 
94937
 
          fi
94938
 
        fi
94939
 
      done
94940
 
 
94941
 
      for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
94942
 
        if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then 
94943
 
          PGSQL_LIBDIR=$i/$j
94944
 
        fi
94945
 
      done
94946
 
    done
94947
 
  fi
94948
 
 
94949
 
  if test -z "$PGSQL_INCLUDE"; then
94950
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" >&5
94951
 
$as_echo "$as_me: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" >&2;}
94952
 
   { (exit 1); exit 1; }; }
94953
 
  fi
94954
 
 
94955
 
  if test -z "$PGSQL_LIBDIR"; then
94956
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path" >&5
94957
 
$as_echo "$as_me: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path" >&2;}
94958
 
   { (exit 1); exit 1; }; }
94959
 
  fi
94960
 
 
94961
 
  if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
94962
 
    { { $as_echo "$as_me:$LINENO: error: Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" >&5
94963
 
$as_echo "$as_me: error: Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" >&2;}
94964
 
   { (exit 1); exit 1; }; }
94965
 
  fi
94966
 
 
94967
 
  
94968
 
cat >>confdefs.h <<\_ACEOF
94969
 
@%:@define HAVE_PDO_PGSQL 1
94970
 
_ACEOF
94971
 
 
94972
 
 
94973
 
  { $as_echo "$as_me:$LINENO: checking for openssl dependencies" >&5
94974
 
$as_echo_n "checking for openssl dependencies... " >&6; }
94975
 
  grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1
94976
 
  if test $? -eq 0 ; then
94977
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
94978
 
$as_echo "yes" >&6; }
94979
 
        # Extract the first word of "pkg-config", so it can be a program name with args.
94980
 
set dummy pkg-config; ac_word=$2
94981
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
94982
 
$as_echo_n "checking for $ac_word... " >&6; }
94983
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
94984
 
  $as_echo_n "(cached) " >&6
94985
 
else
94986
 
  case $PKG_CONFIG in
94987
 
  [\\/]* | ?:[\\/]*)
94988
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
94989
 
  ;;
94990
 
  *)
94991
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94992
 
for as_dir in $PATH
94993
 
do
94994
 
  IFS=$as_save_IFS
94995
 
  test -z "$as_dir" && as_dir=.
94996
 
  for ac_exec_ext in '' $ac_executable_extensions; do
94997
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
94998
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
94999
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
95000
 
    break 2
95001
 
  fi
95002
 
done
95003
 
done
95004
 
IFS=$as_save_IFS
95005
 
 
95006
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
95007
 
  ;;
95008
 
esac
95009
 
fi
95010
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
95011
 
if test -n "$PKG_CONFIG"; then
95012
 
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
95013
 
$as_echo "$PKG_CONFIG" >&6; }
95014
 
else
95015
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
95016
 
$as_echo "no" >&6; }
95017
 
fi
95018
 
 
95019
 
 
95020
 
    if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
95021
 
      PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags`
95022
 
    fi
95023
 
  else
95024
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
95025
 
$as_echo "no" >&6; }
95026
 
  fi
95027
 
 
95028
 
  old_LIBS=$LIBS
95029
 
  old_LDFLAGS=$LDFLAGS
95030
 
  LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
95031
 
  { $as_echo "$as_me:$LINENO: checking for PQparameterStatus in -lpq" >&5
95032
 
$as_echo_n "checking for PQparameterStatus in -lpq... " >&6; }
95033
 
if test "${ac_cv_lib_pq_PQparameterStatus+set}" = set; then
95034
 
  $as_echo_n "(cached) " >&6
95035
 
else
95036
 
  ac_check_lib_save_LIBS=$LIBS
95037
 
LIBS="-lpq  $LIBS"
95038
 
cat >conftest.$ac_ext <<_ACEOF
95039
 
/* confdefs.h.  */
95040
 
_ACEOF
95041
 
cat confdefs.h >>conftest.$ac_ext
95042
 
cat >>conftest.$ac_ext <<_ACEOF
95043
 
/* end confdefs.h.  */
95044
 
 
95045
 
/* Override any GCC internal prototype to avoid an error.
95046
 
   Use char because int might match the return type of a GCC
95047
 
   builtin and then its argument prototype would still apply.  */
95048
 
#ifdef __cplusplus
95049
 
extern "C"
95050
 
#endif
95051
 
char PQparameterStatus ();
95052
 
int
95053
 
main ()
95054
 
{
95055
 
return PQparameterStatus ();
95056
 
  ;
95057
 
  return 0;
95058
 
}
95059
 
_ACEOF
95060
 
rm -f conftest.$ac_objext conftest$ac_exeext
95061
 
if { (ac_try="$ac_link"
95062
 
case "(($ac_try" in
95063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95064
 
  *) ac_try_echo=$ac_try;;
95065
 
esac
95066
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95067
 
$as_echo "$ac_try_echo") >&5
95068
 
  (eval "$ac_link") 2>conftest.er1
95069
 
  ac_status=$?
95070
 
  grep -v '^ *+' conftest.er1 >conftest.err
95071
 
  rm -f conftest.er1
95072
 
  cat conftest.err >&5
95073
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95074
 
  (exit $ac_status); } && {
95075
 
         test -z "$ac_c_werror_flag" ||
95076
 
         test ! -s conftest.err
95077
 
       } && test -s conftest$ac_exeext && {
95078
 
         test "$cross_compiling" = yes ||
95079
 
         $as_test_x conftest$ac_exeext
95080
 
       }; then
95081
 
  ac_cv_lib_pq_PQparameterStatus=yes
95082
 
else
95083
 
  $as_echo "$as_me: failed program was:" >&5
95084
 
sed 's/^/| /' conftest.$ac_ext >&5
95085
 
 
95086
 
        ac_cv_lib_pq_PQparameterStatus=no
95087
 
fi
95088
 
 
95089
 
rm -rf conftest.dSYM
95090
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95091
 
      conftest$ac_exeext conftest.$ac_ext
95092
 
LIBS=$ac_check_lib_save_LIBS
95093
 
fi
95094
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQparameterStatus" >&5
95095
 
$as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; }
95096
 
if test "x$ac_cv_lib_pq_PQparameterStatus" = x""yes; then
95097
 
  
95098
 
cat >>confdefs.h <<\_ACEOF
95099
 
@%:@define HAVE_PQPARAMETERSTATUS 1
95100
 
_ACEOF
95101
 
 
95102
 
else
95103
 
  
95104
 
    echo "Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required"
95105
 
    exit 1
95106
 
  
95107
 
fi
95108
 
 
95109
 
 
95110
 
  { $as_echo "$as_me:$LINENO: checking for PQprepare in -lpq" >&5
95111
 
$as_echo_n "checking for PQprepare in -lpq... " >&6; }
95112
 
if test "${ac_cv_lib_pq_PQprepare+set}" = set; then
95113
 
  $as_echo_n "(cached) " >&6
95114
 
else
95115
 
  ac_check_lib_save_LIBS=$LIBS
95116
 
LIBS="-lpq  $LIBS"
95117
 
cat >conftest.$ac_ext <<_ACEOF
95118
 
/* confdefs.h.  */
95119
 
_ACEOF
95120
 
cat confdefs.h >>conftest.$ac_ext
95121
 
cat >>conftest.$ac_ext <<_ACEOF
95122
 
/* end confdefs.h.  */
95123
 
 
95124
 
/* Override any GCC internal prototype to avoid an error.
95125
 
   Use char because int might match the return type of a GCC
95126
 
   builtin and then its argument prototype would still apply.  */
95127
 
#ifdef __cplusplus
95128
 
extern "C"
95129
 
#endif
95130
 
char PQprepare ();
95131
 
int
95132
 
main ()
95133
 
{
95134
 
return PQprepare ();
95135
 
  ;
95136
 
  return 0;
95137
 
}
95138
 
_ACEOF
95139
 
rm -f conftest.$ac_objext conftest$ac_exeext
95140
 
if { (ac_try="$ac_link"
95141
 
case "(($ac_try" in
95142
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95143
 
  *) ac_try_echo=$ac_try;;
95144
 
esac
95145
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95146
 
$as_echo "$ac_try_echo") >&5
95147
 
  (eval "$ac_link") 2>conftest.er1
95148
 
  ac_status=$?
95149
 
  grep -v '^ *+' conftest.er1 >conftest.err
95150
 
  rm -f conftest.er1
95151
 
  cat conftest.err >&5
95152
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95153
 
  (exit $ac_status); } && {
95154
 
         test -z "$ac_c_werror_flag" ||
95155
 
         test ! -s conftest.err
95156
 
       } && test -s conftest$ac_exeext && {
95157
 
         test "$cross_compiling" = yes ||
95158
 
         $as_test_x conftest$ac_exeext
95159
 
       }; then
95160
 
  ac_cv_lib_pq_PQprepare=yes
95161
 
else
95162
 
  $as_echo "$as_me: failed program was:" >&5
95163
 
sed 's/^/| /' conftest.$ac_ext >&5
95164
 
 
95165
 
        ac_cv_lib_pq_PQprepare=no
95166
 
fi
95167
 
 
95168
 
rm -rf conftest.dSYM
95169
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95170
 
      conftest$ac_exeext conftest.$ac_ext
95171
 
LIBS=$ac_check_lib_save_LIBS
95172
 
fi
95173
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQprepare" >&5
95174
 
$as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
95175
 
if test "x$ac_cv_lib_pq_PQprepare" = x""yes; then
95176
 
  
95177
 
cat >>confdefs.h <<\_ACEOF
95178
 
@%:@define HAVE_PQPREPARE 1
95179
 
_ACEOF
95180
 
 
95181
 
fi
95182
 
 
95183
 
  { $as_echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
95184
 
$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
95185
 
if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
95186
 
  $as_echo_n "(cached) " >&6
95187
 
else
95188
 
  ac_check_lib_save_LIBS=$LIBS
95189
 
LIBS="-lpq  $LIBS"
95190
 
cat >conftest.$ac_ext <<_ACEOF
95191
 
/* confdefs.h.  */
95192
 
_ACEOF
95193
 
cat confdefs.h >>conftest.$ac_ext
95194
 
cat >>conftest.$ac_ext <<_ACEOF
95195
 
/* end confdefs.h.  */
95196
 
 
95197
 
/* Override any GCC internal prototype to avoid an error.
95198
 
   Use char because int might match the return type of a GCC
95199
 
   builtin and then its argument prototype would still apply.  */
95200
 
#ifdef __cplusplus
95201
 
extern "C"
95202
 
#endif
95203
 
char PQescapeStringConn ();
95204
 
int
95205
 
main ()
95206
 
{
95207
 
return PQescapeStringConn ();
95208
 
  ;
95209
 
  return 0;
95210
 
}
95211
 
_ACEOF
95212
 
rm -f conftest.$ac_objext conftest$ac_exeext
95213
 
if { (ac_try="$ac_link"
95214
 
case "(($ac_try" in
95215
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95216
 
  *) ac_try_echo=$ac_try;;
95217
 
esac
95218
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95219
 
$as_echo "$ac_try_echo") >&5
95220
 
  (eval "$ac_link") 2>conftest.er1
95221
 
  ac_status=$?
95222
 
  grep -v '^ *+' conftest.er1 >conftest.err
95223
 
  rm -f conftest.er1
95224
 
  cat conftest.err >&5
95225
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95226
 
  (exit $ac_status); } && {
95227
 
         test -z "$ac_c_werror_flag" ||
95228
 
         test ! -s conftest.err
95229
 
       } && test -s conftest$ac_exeext && {
95230
 
         test "$cross_compiling" = yes ||
95231
 
         $as_test_x conftest$ac_exeext
95232
 
       }; then
95233
 
  ac_cv_lib_pq_PQescapeStringConn=yes
95234
 
else
95235
 
  $as_echo "$as_me: failed program was:" >&5
95236
 
sed 's/^/| /' conftest.$ac_ext >&5
95237
 
 
95238
 
        ac_cv_lib_pq_PQescapeStringConn=no
95239
 
fi
95240
 
 
95241
 
rm -rf conftest.dSYM
95242
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95243
 
      conftest$ac_exeext conftest.$ac_ext
95244
 
LIBS=$ac_check_lib_save_LIBS
95245
 
fi
95246
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
95247
 
$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
95248
 
if test "x$ac_cv_lib_pq_PQescapeStringConn" = x""yes; then
95249
 
  
95250
 
cat >>confdefs.h <<\_ACEOF
95251
 
@%:@define HAVE_PQESCAPE_CONN 1
95252
 
_ACEOF
95253
 
 
95254
 
fi
95255
 
 
95256
 
  { $as_echo "$as_me:$LINENO: checking for PQescapeByteaConn in -lpq" >&5
95257
 
$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
95258
 
if test "${ac_cv_lib_pq_PQescapeByteaConn+set}" = set; then
95259
 
  $as_echo_n "(cached) " >&6
95260
 
else
95261
 
  ac_check_lib_save_LIBS=$LIBS
95262
 
LIBS="-lpq  $LIBS"
95263
 
cat >conftest.$ac_ext <<_ACEOF
95264
 
/* confdefs.h.  */
95265
 
_ACEOF
95266
 
cat confdefs.h >>conftest.$ac_ext
95267
 
cat >>conftest.$ac_ext <<_ACEOF
95268
 
/* end confdefs.h.  */
95269
 
 
95270
 
/* Override any GCC internal prototype to avoid an error.
95271
 
   Use char because int might match the return type of a GCC
95272
 
   builtin and then its argument prototype would still apply.  */
95273
 
#ifdef __cplusplus
95274
 
extern "C"
95275
 
#endif
95276
 
char PQescapeByteaConn ();
95277
 
int
95278
 
main ()
95279
 
{
95280
 
return PQescapeByteaConn ();
95281
 
  ;
95282
 
  return 0;
95283
 
}
95284
 
_ACEOF
95285
 
rm -f conftest.$ac_objext conftest$ac_exeext
95286
 
if { (ac_try="$ac_link"
95287
 
case "(($ac_try" in
95288
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95289
 
  *) ac_try_echo=$ac_try;;
95290
 
esac
95291
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95292
 
$as_echo "$ac_try_echo") >&5
95293
 
  (eval "$ac_link") 2>conftest.er1
95294
 
  ac_status=$?
95295
 
  grep -v '^ *+' conftest.er1 >conftest.err
95296
 
  rm -f conftest.er1
95297
 
  cat conftest.err >&5
95298
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95299
 
  (exit $ac_status); } && {
95300
 
         test -z "$ac_c_werror_flag" ||
95301
 
         test ! -s conftest.err
95302
 
       } && test -s conftest$ac_exeext && {
95303
 
         test "$cross_compiling" = yes ||
95304
 
         $as_test_x conftest$ac_exeext
95305
 
       }; then
95306
 
  ac_cv_lib_pq_PQescapeByteaConn=yes
95307
 
else
95308
 
  $as_echo "$as_me: failed program was:" >&5
95309
 
sed 's/^/| /' conftest.$ac_ext >&5
95310
 
 
95311
 
        ac_cv_lib_pq_PQescapeByteaConn=no
95312
 
fi
95313
 
 
95314
 
rm -rf conftest.dSYM
95315
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95316
 
      conftest$ac_exeext conftest.$ac_ext
95317
 
LIBS=$ac_check_lib_save_LIBS
95318
 
fi
95319
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
95320
 
$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
95321
 
if test "x$ac_cv_lib_pq_PQescapeByteaConn" = x""yes; then
95322
 
  
95323
 
cat >>confdefs.h <<\_ACEOF
95324
 
@%:@define HAVE_PQESCAPE_BYTEA_CONN 1
95325
 
_ACEOF
95326
 
 
95327
 
fi
95328
 
 
95329
 
 
95330
 
  { $as_echo "$as_me:$LINENO: checking for pg_encoding_to_char in -lpq" >&5
95331
 
$as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; }
95332
 
if test "${ac_cv_lib_pq_pg_encoding_to_char+set}" = set; then
95333
 
  $as_echo_n "(cached) " >&6
95334
 
else
95335
 
  ac_check_lib_save_LIBS=$LIBS
95336
 
LIBS="-lpq  $LIBS"
95337
 
cat >conftest.$ac_ext <<_ACEOF
95338
 
/* confdefs.h.  */
95339
 
_ACEOF
95340
 
cat confdefs.h >>conftest.$ac_ext
95341
 
cat >>conftest.$ac_ext <<_ACEOF
95342
 
/* end confdefs.h.  */
95343
 
 
95344
 
/* Override any GCC internal prototype to avoid an error.
95345
 
   Use char because int might match the return type of a GCC
95346
 
   builtin and then its argument prototype would still apply.  */
95347
 
#ifdef __cplusplus
95348
 
extern "C"
95349
 
#endif
95350
 
char pg_encoding_to_char ();
95351
 
int
95352
 
main ()
95353
 
{
95354
 
return pg_encoding_to_char ();
95355
 
  ;
95356
 
  return 0;
95357
 
}
95358
 
_ACEOF
95359
 
rm -f conftest.$ac_objext conftest$ac_exeext
95360
 
if { (ac_try="$ac_link"
95361
 
case "(($ac_try" in
95362
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95363
 
  *) ac_try_echo=$ac_try;;
95364
 
esac
95365
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95366
 
$as_echo "$ac_try_echo") >&5
95367
 
  (eval "$ac_link") 2>conftest.er1
95368
 
  ac_status=$?
95369
 
  grep -v '^ *+' conftest.er1 >conftest.err
95370
 
  rm -f conftest.er1
95371
 
  cat conftest.err >&5
95372
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95373
 
  (exit $ac_status); } && {
95374
 
         test -z "$ac_c_werror_flag" ||
95375
 
         test ! -s conftest.err
95376
 
       } && test -s conftest$ac_exeext && {
95377
 
         test "$cross_compiling" = yes ||
95378
 
         $as_test_x conftest$ac_exeext
95379
 
       }; then
95380
 
  ac_cv_lib_pq_pg_encoding_to_char=yes
95381
 
else
95382
 
  $as_echo "$as_me: failed program was:" >&5
95383
 
sed 's/^/| /' conftest.$ac_ext >&5
95384
 
 
95385
 
        ac_cv_lib_pq_pg_encoding_to_char=no
95386
 
fi
95387
 
 
95388
 
rm -rf conftest.dSYM
95389
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95390
 
      conftest$ac_exeext conftest.$ac_ext
95391
 
LIBS=$ac_check_lib_save_LIBS
95392
 
fi
95393
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
95394
 
$as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
95395
 
if test "x$ac_cv_lib_pq_pg_encoding_to_char" = x""yes; then
95396
 
  
95397
 
cat >>confdefs.h <<\_ACEOF
95398
 
@%:@define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
95399
 
_ACEOF
95400
 
 
95401
 
fi
95402
 
 
95403
 
  
95404
 
 
95405
 
  LIBS=$old_LIBS
95406
 
  LDFLAGS=$old_LDFLAGS
95407
 
 
95408
 
  
95409
 
 
95410
 
  if test "$ext_shared" = "yes"; then
95411
 
    PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD"
95412
 
    if test -n "$PGSQL_LIBDIR"; then
95413
 
      
95414
 
  if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
95415
 
    
95416
 
  if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
95417
 
    ai_p=$PGSQL_LIBDIR
95418
 
  else
95419
 
    
95420
 
    ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
95421
 
    
95422
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95423
 
    ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
95424
 
  fi
95425
 
 
95426
 
    
95427
 
      if test "$ext_shared" = "yes"; then
95428
 
        PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD"
95429
 
        test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD"
95430
 
      else
95431
 
        
95432
 
  
95433
 
  
95434
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95435
 
  
95436
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95437
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
95438
 
    eval "LIBPATH$unique=set"
95439
 
    
95440
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95441
 
    LDFLAGS="$LDFLAGS -L$ai_p"
95442
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
95443
 
  
95444
 
  fi
95445
 
 
95446
 
 
95447
 
      fi
95448
 
    
95449
 
  fi
95450
 
 
95451
 
    fi
95452
 
  else
95453
 
    
95454
 
 
95455
 
  if test -n "$PGSQL_LIBDIR"; then
95456
 
    
95457
 
  if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
95458
 
    
95459
 
  if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
95460
 
    ai_p=$PGSQL_LIBDIR
95461
 
  else
95462
 
    
95463
 
    ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
95464
 
    
95465
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95466
 
    ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
95467
 
  fi
95468
 
 
95469
 
    
95470
 
      
95471
 
  
95472
 
  
95473
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95474
 
  
95475
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95476
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
95477
 
    eval "LIBPATH$unique=set"
95478
 
    
95479
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95480
 
    LDFLAGS="$LDFLAGS -L$ai_p"
95481
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
95482
 
  
95483
 
  fi
95484
 
 
95485
 
 
95486
 
    
95487
 
  fi
95488
 
 
95489
 
  fi
95490
 
  
95491
 
  
95492
 
  case pq in
95493
 
  c|c_r|pthread*) ;;
95494
 
  *) 
95495
 
      LIBS="-lpq $LIBS" 
95496
 
   ;;
95497
 
  esac
95498
 
 
95499
 
 
95500
 
 
95501
 
 
95502
 
  fi
95503
 
 
95504
 
 
95505
 
  
95506
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD"
95507
 
 
95508
 
 
95509
 
  
95510
 
  if test "$PGSQL_INCLUDE" != "/usr/include"; then
95511
 
    
95512
 
  if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
95513
 
    ai_p=$PGSQL_INCLUDE
95514
 
  else
95515
 
    
95516
 
    ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
95517
 
    
95518
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95519
 
    ai_p="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
95520
 
  fi
95521
 
 
95522
 
    
95523
 
  
95524
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95525
 
  
95526
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
95527
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
95528
 
    eval "INCLUDEPATH$unique=set"
95529
 
    
95530
 
      if test ""; then
95531
 
        INCLUDES="-I$ai_p $INCLUDES"
95532
 
      else
95533
 
        INCLUDES="$INCLUDES -I$ai_p"
95534
 
      fi
95535
 
    
95536
 
  fi
95537
 
 
95538
 
  fi
95539
 
 
95540
 
 
95541
 
  
95542
 
    
95543
 
  { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
95544
 
$as_echo_n "checking for PDO includes... " >&6; }
95545
 
if test "${pdo_inc_path+set}" = set; then
95546
 
  $as_echo_n "(cached) " >&6
95547
 
else
95548
 
  
95549
 
    { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
95550
 
$as_echo_n "checking for PDO includes... " >&6; }
95551
 
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
95552
 
      pdo_inc_path=$abs_srcdir/ext
95553
 
    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
95554
 
      pdo_inc_path=$abs_srcdir/ext
95555
 
    elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
95556
 
      pdo_inc_path=$prefix/include/php/ext
95557
 
    fi
95558
 
  
95559
 
fi
95560
 
{ $as_echo "$as_me:$LINENO: result: $pdo_inc_path" >&5
95561
 
$as_echo "$pdo_inc_path" >&6; }
95562
 
  if test -n "$pdo_inc_path"; then
95563
 
:
95564
 
  else
95565
 
{ { $as_echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
95566
 
$as_echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
95567
 
   { (exit 1); exit 1; }; }
95568
 
  fi
95569
 
 
95570
 
  
95571
 
 
95572
 
  
95573
 
  ext_builddir=ext/pdo_pgsql
95574
 
  ext_srcdir=$abs_srcdir/ext/pdo_pgsql
95575
 
 
95576
 
  ac_extra=`echo "-I$pdo_inc_path $PDO_PGSQL_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
95577
 
 
95578
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
95579
 
    PHP_PDO_PGSQL_SHARED=no
95580
 
    
95581
 
  
95582
 
  case ext/pdo_pgsql in
95583
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95584
 
  /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95585
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95586
 
  esac
95587
 
  
95588
 
  
95589
 
 
95590
 
  b_c_pre=$php_c_pre
95591
 
  b_cxx_pre=$php_cxx_pre
95592
 
  b_c_meta=$php_c_meta
95593
 
  b_cxx_meta=$php_cxx_meta
95594
 
  b_c_post=$php_c_post
95595
 
  b_cxx_post=$php_cxx_post
95596
 
  b_lo=$php_lo
95597
 
 
95598
 
 
95599
 
  old_IFS=$IFS
95600
 
  for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
95601
 
  
95602
 
      IFS=.
95603
 
      set $ac_src
95604
 
      ac_obj=$1
95605
 
      IFS=$old_IFS
95606
 
      
95607
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
95608
 
 
95609
 
      case $ac_src in
95610
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95611
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95612
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95613
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95614
 
      esac
95615
 
 
95616
 
    cat >>Makefile.objects<<EOF
95617
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95618
 
        $ac_comp
95619
 
EOF
95620
 
  done
95621
 
 
95622
 
 
95623
 
    EXT_STATIC="$EXT_STATIC pdo_pgsql"
95624
 
    if test "$ext_shared" != "nocli"; then
95625
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
95626
 
    fi
95627
 
  else
95628
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
95629
 
      PHP_PDO_PGSQL_SHARED=yes
95630
 
      
95631
 
  case ext/pdo_pgsql in
95632
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95633
 
  /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95634
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95635
 
  esac
95636
 
  
95637
 
  
95638
 
 
95639
 
  b_c_pre=$shared_c_pre
95640
 
  b_cxx_pre=$shared_cxx_pre
95641
 
  b_c_meta=$shared_c_meta
95642
 
  b_cxx_meta=$shared_cxx_meta
95643
 
  b_c_post=$shared_c_post
95644
 
  b_cxx_post=$shared_cxx_post
95645
 
  b_lo=$shared_lo
95646
 
 
95647
 
 
95648
 
  old_IFS=$IFS
95649
 
  for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
95650
 
  
95651
 
      IFS=.
95652
 
      set $ac_src
95653
 
      ac_obj=$1
95654
 
      IFS=$old_IFS
95655
 
      
95656
 
      shared_objects_pdo_pgsql="$shared_objects_pdo_pgsql $ac_bdir$ac_obj.lo"
95657
 
 
95658
 
      case $ac_src in
95659
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95660
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95661
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95662
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95663
 
      esac
95664
 
 
95665
 
    cat >>Makefile.objects<<EOF
95666
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95667
 
        $ac_comp
95668
 
EOF
95669
 
  done
95670
 
 
95671
 
      case $host_alias in
95672
 
        *netware*)
95673
 
          
95674
 
  install_modules="install-modules"
95675
 
 
95676
 
  case $host_alias in
95677
 
    *aix*)
95678
 
      suffix=so
95679
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PHPPDO_PGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_pgsql.so '$ext_builddir'/phppdo_pgsql.so'
95680
 
      ;;
95681
 
    *netware*)
95682
 
      suffix=nlm
95683
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) -L$(top_builddir)/netware -lphp5lib $(PDO_PGSQL_SHARED_LIBADD)'
95684
 
      ;;
95685
 
    *)
95686
 
      suffix=la
95687
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PHPPDO_PGSQL_SHARED_LIBADD)'
95688
 
      ;;
95689
 
  esac
95690
 
 
95691
 
  if test "x" = "xyes"; then
95692
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_pgsql.$suffix"
95693
 
  else
95694
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_pgsql.$suffix"
95695
 
  fi
95696
 
  
95697
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
95698
 
 
95699
 
  cat >>Makefile.objects<<EOF
95700
 
\$(phplibdir)/phppdo_pgsql.$suffix: $ext_builddir/phppdo_pgsql.$suffix
95701
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_pgsql.$suffix \$(phplibdir)
95702
 
 
95703
 
$ext_builddir/phppdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PHPPDO_PGSQL_SHARED_DEPENDENCIES)
95704
 
        $link_cmd
95705
 
 
95706
 
EOF
95707
 
 
95708
 
          ;;
95709
 
        *)
95710
 
          
95711
 
  install_modules="install-modules"
95712
 
 
95713
 
  case $host_alias in
95714
 
    *aix*)
95715
 
      suffix=so
95716
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PDO_PGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_pgsql.so '$ext_builddir'/pdo_pgsql.so'
95717
 
      ;;
95718
 
    *netware*)
95719
 
      suffix=nlm
95720
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) -L$(top_builddir)/netware -lphp5lib $(_PGSQL_SHARED_LIBADD)'
95721
 
      ;;
95722
 
    *)
95723
 
      suffix=la
95724
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_pgsql) $(PDO_PGSQL_SHARED_LIBADD)'
95725
 
      ;;
95726
 
  esac
95727
 
 
95728
 
  if test "x" = "xyes"; then
95729
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_pgsql.$suffix"
95730
 
  else
95731
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_pgsql.$suffix"
95732
 
  fi
95733
 
  
95734
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
95735
 
 
95736
 
  cat >>Makefile.objects<<EOF
95737
 
\$(phplibdir)/pdo_pgsql.$suffix: $ext_builddir/pdo_pgsql.$suffix
95738
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_pgsql.$suffix \$(phplibdir)
95739
 
 
95740
 
$ext_builddir/pdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PDO_PGSQL_SHARED_DEPENDENCIES)
95741
 
        $link_cmd
95742
 
 
95743
 
EOF
95744
 
 
95745
 
          ;;
95746
 
      esac
95747
 
      
95748
 
cat >>confdefs.h <<_ACEOF
95749
 
@%:@define COMPILE_DL_PDO_PGSQL 1
95750
 
_ACEOF
95751
 
 
95752
 
    fi
95753
 
  fi
95754
 
 
95755
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
95756
 
    PHP_PDO_PGSQL_SHARED=no
95757
 
    case "$PHP_SAPI" in
95758
 
      cgi|embed)
95759
 
        
95760
 
  
95761
 
  case ext/pdo_pgsql in
95762
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95763
 
  /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95764
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95765
 
  esac
95766
 
  
95767
 
  
95768
 
 
95769
 
  b_c_pre=$php_c_pre
95770
 
  b_cxx_pre=$php_cxx_pre
95771
 
  b_c_meta=$php_c_meta
95772
 
  b_cxx_meta=$php_cxx_meta
95773
 
  b_c_post=$php_c_post
95774
 
  b_cxx_post=$php_cxx_post
95775
 
  b_lo=$php_lo
95776
 
 
95777
 
 
95778
 
  old_IFS=$IFS
95779
 
  for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
95780
 
  
95781
 
      IFS=.
95782
 
      set $ac_src
95783
 
      ac_obj=$1
95784
 
      IFS=$old_IFS
95785
 
      
95786
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
95787
 
 
95788
 
      case $ac_src in
95789
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95790
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95791
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95792
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95793
 
      esac
95794
 
 
95795
 
    cat >>Makefile.objects<<EOF
95796
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95797
 
        $ac_comp
95798
 
EOF
95799
 
  done
95800
 
 
95801
 
 
95802
 
        EXT_STATIC="$EXT_STATIC pdo_pgsql"
95803
 
        ;;
95804
 
      *)
95805
 
        
95806
 
  
95807
 
  case ext/pdo_pgsql in
95808
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95809
 
  /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95810
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95811
 
  esac
95812
 
  
95813
 
  
95814
 
 
95815
 
  b_c_pre=$php_c_pre
95816
 
  b_cxx_pre=$php_cxx_pre
95817
 
  b_c_meta=$php_c_meta
95818
 
  b_cxx_meta=$php_cxx_meta
95819
 
  b_c_post=$php_c_post
95820
 
  b_cxx_post=$php_cxx_post
95821
 
  b_lo=$php_lo
95822
 
 
95823
 
 
95824
 
  old_IFS=$IFS
95825
 
  for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
95826
 
  
95827
 
      IFS=.
95828
 
      set $ac_src
95829
 
      ac_obj=$1
95830
 
      IFS=$old_IFS
95831
 
      
95832
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
95833
 
 
95834
 
      case $ac_src in
95835
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95836
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95837
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95838
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95839
 
      esac
95840
 
 
95841
 
    cat >>Makefile.objects<<EOF
95842
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95843
 
        $ac_comp
95844
 
EOF
95845
 
  done
95846
 
 
95847
 
 
95848
 
        ;;
95849
 
    esac
95850
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
95851
 
  fi
95852
 
  
95853
 
  
95854
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
95855
 
  
95856
 
 
95857
 
 
95858
 
  if test "$ext_builddir" = "."; then
95859
 
    PHP_PECL_EXTENSION=pdo_pgsql
95860
 
    
95861
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
95862
 
 
95863
 
  fi
95864
 
 
95865
 
  
95866
 
    
95867
 
  am_i_shared=$PHP_PDO_PGSQL_SHARED
95868
 
  is_it_shared=$PHP_PDO_SHARED
95869
 
  is_it_enabled=$PHP_PDO
95870
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
95871
 
    { { $as_echo "$as_me:$LINENO: error: 
95872
 
You've configured extension pdo_pgsql to build statically, but it
95873
 
depends on extension pdo, which you've configured to build shared.
95874
 
You either need to build pdo_pgsql shared or build pdo statically for the
95875
 
build to be successful.
95876
 
" >&5
95877
 
$as_echo "$as_me: error: 
95878
 
You've configured extension pdo_pgsql to build statically, but it
95879
 
depends on extension pdo, which you've configured to build shared.
95880
 
You either need to build pdo_pgsql shared or build pdo statically for the
95881
 
build to be successful.
95882
 
" >&2;}
95883
 
   { (exit 1); exit 1; }; }
95884
 
  fi
95885
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
95886
 
    { { $as_echo "$as_me:$LINENO: error: 
95887
 
You've configured extension pdo_pgsql, which depends on extension pdo,
95888
 
but you've either not enabled pdo, or have disabled it.
95889
 
" >&5
95890
 
$as_echo "$as_me: error: 
95891
 
You've configured extension pdo_pgsql, which depends on extension pdo,
95892
 
but you've either not enabled pdo, or have disabled it.
95893
 
" >&2;}
95894
 
   { (exit 1); exit 1; }; }
95895
 
  fi
95896
 
   
95897
 
  
95898
 
fi
95899
 
 
95900
 
 
95901
 
 
95902
 
php_with_pdo_sqlite=$PHP_PDO
95903
 
 
95904
 
{ $as_echo "$as_me:$LINENO: checking for sqlite 3 support for PDO" >&5
95905
 
$as_echo_n "checking for sqlite 3 support for PDO... " >&6; }
95906
 
 
95907
 
@%:@ Check whether --with-pdo-sqlite was given.
95908
 
if test "${with_pdo_sqlite+set}" = set; then
95909
 
  withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval
95910
 
else
95911
 
  
95912
 
  PHP_PDO_SQLITE=$PHP_PDO
95913
 
  test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL
95914
 
 
95915
 
fi
95916
 
 
95917
 
 
95918
 
 
95919
 
ext_output="yes, shared"
95920
 
ext_shared=yes
95921
 
case $PHP_PDO_SQLITE in
95922
 
shared,*)
95923
 
  PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'`
95924
 
  ;;
95925
 
shared)
95926
 
  PHP_PDO_SQLITE=yes
95927
 
  ;;
95928
 
no)
95929
 
  ext_output=no
95930
 
  ext_shared=no
95931
 
  ;;
95932
 
*)
95933
 
  ext_output=yes
95934
 
  ext_shared=no
95935
 
  ;;
95936
 
esac
95937
 
 
95938
 
 
95939
 
 
95940
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
95941
 
$as_echo "$ext_output" >&6; }
95942
 
 
95943
 
 
95944
 
 
95945
 
 
95946
 
if test "$PHP_PDO_SQLITE" != "no"; then
95947
 
 
95948
 
  if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
95949
 
    { { $as_echo "$as_me:$LINENO: error: PDO is not enabled! Add --enable-pdo to your configure line." >&5
95950
 
$as_echo "$as_me: error: PDO is not enabled! Add --enable-pdo to your configure line." >&2;}
95951
 
   { (exit 1); exit 1; }; }
95952
 
  fi
95953
 
 
95954
 
  
95955
 
    
95956
 
  { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
95957
 
$as_echo_n "checking for PDO includes... " >&6; }
95958
 
if test "${pdo_inc_path+set}" = set; then
95959
 
  $as_echo_n "(cached) " >&6
95960
 
else
95961
 
  
95962
 
    { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
95963
 
$as_echo_n "checking for PDO includes... " >&6; }
95964
 
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
95965
 
      pdo_inc_path=$abs_srcdir/ext
95966
 
    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
95967
 
      pdo_inc_path=$abs_srcdir/ext
95968
 
    elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
95969
 
      pdo_inc_path=$prefix/include/php/ext
95970
 
    fi
95971
 
  
95972
 
fi
95973
 
{ $as_echo "$as_me:$LINENO: result: $pdo_inc_path" >&5
95974
 
$as_echo "$pdo_inc_path" >&6; }
95975
 
  if test -n "$pdo_inc_path"; then
95976
 
:
95977
 
  else
95978
 
{ { $as_echo "$as_me:$LINENO: error: Cannot find php_pdo_driver.h." >&5
95979
 
$as_echo "$as_me: error: Cannot find php_pdo_driver.h." >&2;}
95980
 
   { (exit 1); exit 1; }; }
95981
 
  fi
95982
 
 
95983
 
  
95984
 
 
95985
 
  php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c"
95986
 
 
95987
 
  if test "$PHP_PDO_SQLITE" != "yes"; then
95988
 
    SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr"     # you might want to change this
95989
 
    SEARCH_FOR="/include/sqlite3.h"  # you most likely want to change this
95990
 
    if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter
95991
 
      PDO_SQLITE_DIR=$PHP_PDO_SQLITE
95992
 
    else # search default path list
95993
 
      { $as_echo "$as_me:$LINENO: checking for sqlite3 files in default path" >&5
95994
 
$as_echo_n "checking for sqlite3 files in default path... " >&6; }
95995
 
      for i in $SEARCH_PATH ; do
95996
 
        if test -r $i/$SEARCH_FOR; then
95997
 
          PDO_SQLITE_DIR=$i
95998
 
          { $as_echo "$as_me:$LINENO: result: found in $i" >&5
95999
 
$as_echo "found in $i" >&6; }
96000
 
        fi
96001
 
      done
96002
 
    fi
96003
 
    if test -z "$PDO_SQLITE_DIR"; then
96004
 
      { $as_echo "$as_me:$LINENO: result: not found" >&5
96005
 
$as_echo "not found" >&6; }
96006
 
      { { $as_echo "$as_me:$LINENO: error: Please reinstall the sqlite3 distribution" >&5
96007
 
$as_echo "$as_me: error: Please reinstall the sqlite3 distribution" >&2;}
96008
 
   { (exit 1); exit 1; }; }
96009
 
    fi
96010
 
 
96011
 
    
96012
 
  if test "$PDO_SQLITE_DIR/include" != "/usr/include"; then
96013
 
    
96014
 
  if test -z "$PDO_SQLITE_DIR/include" || echo "$PDO_SQLITE_DIR/include" | grep '^/' >/dev/null ; then
96015
 
    ai_p=$PDO_SQLITE_DIR/include
96016
 
  else
96017
 
    
96018
 
    ep_dir="`echo $PDO_SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
96019
 
    
96020
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96021
 
    ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/include\"`"
96022
 
  fi
96023
 
 
96024
 
    
96025
 
  
96026
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96027
 
  
96028
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
96029
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
96030
 
    eval "INCLUDEPATH$unique=set"
96031
 
    
96032
 
      if test ""; then
96033
 
        INCLUDES="-I$ai_p $INCLUDES"
96034
 
      else
96035
 
        INCLUDES="$INCLUDES -I$ai_p"
96036
 
      fi
96037
 
    
96038
 
  fi
96039
 
 
96040
 
  fi
96041
 
 
96042
 
 
96043
 
    LIBNAME=sqlite3
96044
 
    LIBSYMBOL=sqlite3_open
96045
 
 
96046
 
    
96047
 
  save_old_LDFLAGS=$LDFLAGS
96048
 
  ac_stuff="
96049
 
      -L$PDO_SQLITE_DIR/$PHP_LIBDIR -lm
96050
 
    "
96051
 
  
96052
 
  save_ext_shared=$ext_shared
96053
 
  ext_shared=yes
96054
 
  
96055
 
  for ac_i in $ac_stuff; do
96056
 
    case $ac_i in
96057
 
    -pthread)
96058
 
      if test "$ext_shared" = "yes"; then
96059
 
        LDFLAGS="$LDFLAGS -pthread"
96060
 
      else
96061
 
        
96062
 
  
96063
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
96064
 
  
96065
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
96066
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
96067
 
    eval "EXTRA_LDFLAGS$unique=set"
96068
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96069
 
  fi
96070
 
 
96071
 
      fi
96072
 
    ;;
96073
 
    -l*)
96074
 
      ac_ii=`echo $ac_i|cut -c 3-`
96075
 
      
96076
 
  
96077
 
  case $ac_ii in
96078
 
  c|c_r|pthread*) ;;
96079
 
  *) 
96080
 
    if test "$ext_shared" = "yes"; then
96081
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
96082
 
    else
96083
 
      
96084
 
  
96085
 
  case $ac_ii in
96086
 
  c|c_r|pthread*) ;;
96087
 
  *) 
96088
 
      LIBS="$LIBS -l$ac_ii" 
96089
 
   ;;
96090
 
  esac
96091
 
 
96092
 
 
96093
 
    fi
96094
 
   ;;
96095
 
  esac
96096
 
 
96097
 
 
96098
 
    ;;
96099
 
    -L*)
96100
 
      ac_ii=`echo $ac_i|cut -c 3-`
96101
 
      
96102
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96103
 
    
96104
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96105
 
    ai_p=$ac_ii
96106
 
  else
96107
 
    
96108
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
96109
 
    
96110
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96111
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
96112
 
  fi
96113
 
 
96114
 
    
96115
 
      if test "$ext_shared" = "yes"; then
96116
 
        LDFLAGS="-L$ai_p $LDFLAGS"
96117
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
96118
 
      else
96119
 
        
96120
 
  
96121
 
  
96122
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96123
 
  
96124
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96125
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
96126
 
    eval "LIBPATH$unique=set"
96127
 
    
96128
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96129
 
    LDFLAGS="$LDFLAGS -L$ai_p"
96130
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
96131
 
  
96132
 
  fi
96133
 
 
96134
 
 
96135
 
      fi
96136
 
    
96137
 
  fi
96138
 
 
96139
 
    ;;
96140
 
    esac
96141
 
  done
96142
 
 
96143
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh`
96144
 
{ $as_echo "$as_me:$LINENO: checking for $LIBSYMBOL in -l$LIBNAME" >&5
96145
 
$as_echo_n "checking for $LIBSYMBOL in -l$LIBNAME... " >&6; }
96146
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
96147
 
  $as_echo_n "(cached) " >&6
96148
 
else
96149
 
  ac_check_lib_save_LIBS=$LIBS
96150
 
LIBS="-l$LIBNAME  $LIBS"
96151
 
cat >conftest.$ac_ext <<_ACEOF
96152
 
/* confdefs.h.  */
96153
 
_ACEOF
96154
 
cat confdefs.h >>conftest.$ac_ext
96155
 
cat >>conftest.$ac_ext <<_ACEOF
96156
 
/* end confdefs.h.  */
96157
 
 
96158
 
/* Override any GCC internal prototype to avoid an error.
96159
 
   Use char because int might match the return type of a GCC
96160
 
   builtin and then its argument prototype would still apply.  */
96161
 
#ifdef __cplusplus
96162
 
extern "C"
96163
 
#endif
96164
 
char $LIBSYMBOL ();
96165
 
int
96166
 
main ()
96167
 
{
96168
 
return $LIBSYMBOL ();
96169
 
  ;
96170
 
  return 0;
96171
 
}
96172
 
_ACEOF
96173
 
rm -f conftest.$ac_objext conftest$ac_exeext
96174
 
if { (ac_try="$ac_link"
96175
 
case "(($ac_try" in
96176
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96177
 
  *) ac_try_echo=$ac_try;;
96178
 
esac
96179
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96180
 
$as_echo "$ac_try_echo") >&5
96181
 
  (eval "$ac_link") 2>conftest.er1
96182
 
  ac_status=$?
96183
 
  grep -v '^ *+' conftest.er1 >conftest.err
96184
 
  rm -f conftest.er1
96185
 
  cat conftest.err >&5
96186
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96187
 
  (exit $ac_status); } && {
96188
 
         test -z "$ac_c_werror_flag" ||
96189
 
         test ! -s conftest.err
96190
 
       } && test -s conftest$ac_exeext && {
96191
 
         test "$cross_compiling" = yes ||
96192
 
         $as_test_x conftest$ac_exeext
96193
 
       }; then
96194
 
  eval "$as_ac_Lib=yes"
96195
 
else
96196
 
  $as_echo "$as_me: failed program was:" >&5
96197
 
sed 's/^/| /' conftest.$ac_ext >&5
96198
 
 
96199
 
        eval "$as_ac_Lib=no"
96200
 
fi
96201
 
 
96202
 
rm -rf conftest.dSYM
96203
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96204
 
      conftest$ac_exeext conftest.$ac_ext
96205
 
LIBS=$ac_check_lib_save_LIBS
96206
 
fi
96207
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
96208
 
                 $as_echo "$as_val"'`
96209
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
96210
 
$as_echo "$ac_res" >&6; }
96211
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
96212
 
                 $as_echo "$as_val"'`
96213
 
   if test "x$as_val" = x""yes; then
96214
 
  
96215
 
    LDFLAGS=$save_old_LDFLAGS
96216
 
    ext_shared=$save_ext_shared
96217
 
    
96218
 
      
96219
 
 
96220
 
  if test "$ext_shared" = "yes"; then
96221
 
    PDO_SQLITE_SHARED_LIBADD="-l$LIBNAME $PDO_SQLITE_SHARED_LIBADD"
96222
 
    if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
96223
 
      
96224
 
  if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
96225
 
    
96226
 
  if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
96227
 
    ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
96228
 
  else
96229
 
    
96230
 
    ep_dir="`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
96231
 
    
96232
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96233
 
    ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/$PHP_LIBDIR\"`"
96234
 
  fi
96235
 
 
96236
 
    
96237
 
      if test "$ext_shared" = "yes"; then
96238
 
        PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD"
96239
 
        test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD"
96240
 
      else
96241
 
        
96242
 
  
96243
 
  
96244
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96245
 
  
96246
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96247
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
96248
 
    eval "LIBPATH$unique=set"
96249
 
    
96250
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96251
 
    LDFLAGS="$LDFLAGS -L$ai_p"
96252
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
96253
 
  
96254
 
  fi
96255
 
 
96256
 
 
96257
 
      fi
96258
 
    
96259
 
  fi
96260
 
 
96261
 
    fi
96262
 
  else
96263
 
    
96264
 
 
96265
 
  if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
96266
 
    
96267
 
  if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
96268
 
    
96269
 
  if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
96270
 
    ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
96271
 
  else
96272
 
    
96273
 
    ep_dir="`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
96274
 
    
96275
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96276
 
    ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/$PHP_LIBDIR\"`"
96277
 
  fi
96278
 
 
96279
 
    
96280
 
      
96281
 
  
96282
 
  
96283
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96284
 
  
96285
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96286
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
96287
 
    eval "LIBPATH$unique=set"
96288
 
    
96289
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96290
 
    LDFLAGS="$LDFLAGS -L$ai_p"
96291
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
96292
 
  
96293
 
  fi
96294
 
 
96295
 
 
96296
 
    
96297
 
  fi
96298
 
 
96299
 
  fi
96300
 
  
96301
 
  
96302
 
  case $LIBNAME in
96303
 
  c|c_r|pthread*) ;;
96304
 
  *) 
96305
 
      LIBS="-l$LIBNAME $LIBS" 
96306
 
   ;;
96307
 
  esac
96308
 
 
96309
 
 
96310
 
 
96311
 
 
96312
 
  fi
96313
 
 
96314
 
 
96315
 
      
96316
 
cat >>confdefs.h <<\_ACEOF
96317
 
@%:@define HAVE_PDO_SQLITELIB 1
96318
 
_ACEOF
96319
 
 
96320
 
    
96321
 
  
96322
 
else
96323
 
  
96324
 
    LDFLAGS=$save_old_LDFLAGS
96325
 
    ext_shared=$save_ext_shared
96326
 
    unset ac_cv_lib_$LIBNAME_$LIBSYMBOL
96327
 
    
96328
 
      { { $as_echo "$as_me:$LINENO: error: wrong sqlite lib version or lib not found" >&5
96329
 
$as_echo "$as_me: error: wrong sqlite lib version or lib not found" >&2;}
96330
 
   { (exit 1); exit 1; }; }
96331
 
    
96332
 
  
96333
 
fi
96334
 
 
96335
 
    
96336
 
  save_old_LDFLAGS=$LDFLAGS
96337
 
  ac_stuff=""
96338
 
  
96339
 
  save_ext_shared=$ext_shared
96340
 
  ext_shared=yes
96341
 
  
96342
 
  for ac_i in $ac_stuff; do
96343
 
    case $ac_i in
96344
 
    -pthread)
96345
 
      if test "$ext_shared" = "yes"; then
96346
 
        LDFLAGS="$LDFLAGS -pthread"
96347
 
      else
96348
 
        
96349
 
  
96350
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
96351
 
  
96352
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
96353
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
96354
 
    eval "EXTRA_LDFLAGS$unique=set"
96355
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96356
 
  fi
96357
 
 
96358
 
      fi
96359
 
    ;;
96360
 
    -l*)
96361
 
      ac_ii=`echo $ac_i|cut -c 3-`
96362
 
      
96363
 
  
96364
 
  case $ac_ii in
96365
 
  c|c_r|pthread*) ;;
96366
 
  *) 
96367
 
    if test "$ext_shared" = "yes"; then
96368
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
96369
 
    else
96370
 
      
96371
 
  
96372
 
  case $ac_ii in
96373
 
  c|c_r|pthread*) ;;
96374
 
  *) 
96375
 
      LIBS="$LIBS -l$ac_ii" 
96376
 
   ;;
96377
 
  esac
96378
 
 
96379
 
 
96380
 
    fi
96381
 
   ;;
96382
 
  esac
96383
 
 
96384
 
 
96385
 
    ;;
96386
 
    -L*)
96387
 
      ac_ii=`echo $ac_i|cut -c 3-`
96388
 
      
96389
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96390
 
    
96391
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96392
 
    ai_p=$ac_ii
96393
 
  else
96394
 
    
96395
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
96396
 
    
96397
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96398
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
96399
 
  fi
96400
 
 
96401
 
    
96402
 
      if test "$ext_shared" = "yes"; then
96403
 
        LDFLAGS="-L$ai_p $LDFLAGS"
96404
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
96405
 
      else
96406
 
        
96407
 
  
96408
 
  
96409
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96410
 
  
96411
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96412
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
96413
 
    eval "LIBPATH$unique=set"
96414
 
    
96415
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96416
 
    LDFLAGS="$LDFLAGS -L$ai_p"
96417
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
96418
 
  
96419
 
  fi
96420
 
 
96421
 
 
96422
 
      fi
96423
 
    
96424
 
  fi
96425
 
 
96426
 
    ;;
96427
 
    esac
96428
 
  done
96429
 
 
96430
 
  { $as_echo "$as_me:$LINENO: checking for sqlite3_key in -lsqlite3" >&5
96431
 
$as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
96432
 
if test "${ac_cv_lib_sqlite3_sqlite3_key+set}" = set; then
96433
 
  $as_echo_n "(cached) " >&6
96434
 
else
96435
 
  ac_check_lib_save_LIBS=$LIBS
96436
 
LIBS="-lsqlite3  $LIBS"
96437
 
cat >conftest.$ac_ext <<_ACEOF
96438
 
/* confdefs.h.  */
96439
 
_ACEOF
96440
 
cat confdefs.h >>conftest.$ac_ext
96441
 
cat >>conftest.$ac_ext <<_ACEOF
96442
 
/* end confdefs.h.  */
96443
 
 
96444
 
/* Override any GCC internal prototype to avoid an error.
96445
 
   Use char because int might match the return type of a GCC
96446
 
   builtin and then its argument prototype would still apply.  */
96447
 
#ifdef __cplusplus
96448
 
extern "C"
96449
 
#endif
96450
 
char sqlite3_key ();
96451
 
int
96452
 
main ()
96453
 
{
96454
 
return sqlite3_key ();
96455
 
  ;
96456
 
  return 0;
96457
 
}
96458
 
_ACEOF
96459
 
rm -f conftest.$ac_objext conftest$ac_exeext
96460
 
if { (ac_try="$ac_link"
96461
 
case "(($ac_try" in
96462
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96463
 
  *) ac_try_echo=$ac_try;;
96464
 
esac
96465
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96466
 
$as_echo "$ac_try_echo") >&5
96467
 
  (eval "$ac_link") 2>conftest.er1
96468
 
  ac_status=$?
96469
 
  grep -v '^ *+' conftest.er1 >conftest.err
96470
 
  rm -f conftest.er1
96471
 
  cat conftest.err >&5
96472
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96473
 
  (exit $ac_status); } && {
96474
 
         test -z "$ac_c_werror_flag" ||
96475
 
         test ! -s conftest.err
96476
 
       } && test -s conftest$ac_exeext && {
96477
 
         test "$cross_compiling" = yes ||
96478
 
         $as_test_x conftest$ac_exeext
96479
 
       }; then
96480
 
  ac_cv_lib_sqlite3_sqlite3_key=yes
96481
 
else
96482
 
  $as_echo "$as_me: failed program was:" >&5
96483
 
sed 's/^/| /' conftest.$ac_ext >&5
96484
 
 
96485
 
        ac_cv_lib_sqlite3_sqlite3_key=no
96486
 
fi
96487
 
 
96488
 
rm -rf conftest.dSYM
96489
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96490
 
      conftest$ac_exeext conftest.$ac_ext
96491
 
LIBS=$ac_check_lib_save_LIBS
96492
 
fi
96493
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
96494
 
$as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
96495
 
if test "x$ac_cv_lib_sqlite3_sqlite3_key" = x""yes; then
96496
 
  
96497
 
    LDFLAGS=$save_old_LDFLAGS
96498
 
    ext_shared=$save_ext_shared
96499
 
    
96500
 
      
96501
 
cat >>confdefs.h <<\_ACEOF
96502
 
@%:@define HAVE_SQLITE3_KEY 1
96503
 
_ACEOF
96504
 
 
96505
 
    
96506
 
  
96507
 
else
96508
 
  
96509
 
    LDFLAGS=$save_old_LDFLAGS
96510
 
    ext_shared=$save_ext_shared
96511
 
    unset ac_cv_lib_sqlite3_sqlite3_key
96512
 
    
96513
 
  
96514
 
fi
96515
 
 
96516
 
 
96517
 
    
96518
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
96519
 
 
96520
 
    
96521
 
  ext_builddir=ext/pdo_sqlite
96522
 
  ext_srcdir=$abs_srcdir/ext/pdo_sqlite
96523
 
 
96524
 
  ac_extra=`echo "-I$pdo_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
96525
 
 
96526
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
96527
 
    PHP_PDO_SQLITE_SHARED=no
96528
 
    
96529
 
  
96530
 
  case ext/pdo_sqlite in
96531
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96532
 
  /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96533
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96534
 
  esac
96535
 
  
96536
 
  
96537
 
 
96538
 
  b_c_pre=$php_c_pre
96539
 
  b_cxx_pre=$php_cxx_pre
96540
 
  b_c_meta=$php_c_meta
96541
 
  b_cxx_meta=$php_cxx_meta
96542
 
  b_c_post=$php_c_post
96543
 
  b_cxx_post=$php_cxx_post
96544
 
  b_lo=$php_lo
96545
 
 
96546
 
 
96547
 
  old_IFS=$IFS
96548
 
  for ac_src in $php_pdo_sqlite_sources_core; do
96549
 
  
96550
 
      IFS=.
96551
 
      set $ac_src
96552
 
      ac_obj=$1
96553
 
      IFS=$old_IFS
96554
 
      
96555
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96556
 
 
96557
 
      case $ac_src in
96558
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96559
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96560
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96561
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96562
 
      esac
96563
 
 
96564
 
    cat >>Makefile.objects<<EOF
96565
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96566
 
        $ac_comp
96567
 
EOF
96568
 
  done
96569
 
 
96570
 
 
96571
 
    EXT_STATIC="$EXT_STATIC pdo_sqlite"
96572
 
    if test "$ext_shared" != "nocli"; then
96573
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
96574
 
    fi
96575
 
  else
96576
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
96577
 
      PHP_PDO_SQLITE_SHARED=yes
96578
 
      
96579
 
  case ext/pdo_sqlite in
96580
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96581
 
  /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96582
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96583
 
  esac
96584
 
  
96585
 
  
96586
 
 
96587
 
  b_c_pre=$shared_c_pre
96588
 
  b_cxx_pre=$shared_cxx_pre
96589
 
  b_c_meta=$shared_c_meta
96590
 
  b_cxx_meta=$shared_cxx_meta
96591
 
  b_c_post=$shared_c_post
96592
 
  b_cxx_post=$shared_cxx_post
96593
 
  b_lo=$shared_lo
96594
 
 
96595
 
 
96596
 
  old_IFS=$IFS
96597
 
  for ac_src in $php_pdo_sqlite_sources_core; do
96598
 
  
96599
 
      IFS=.
96600
 
      set $ac_src
96601
 
      ac_obj=$1
96602
 
      IFS=$old_IFS
96603
 
      
96604
 
      shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
96605
 
 
96606
 
      case $ac_src in
96607
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96608
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96609
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96610
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96611
 
      esac
96612
 
 
96613
 
    cat >>Makefile.objects<<EOF
96614
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96615
 
        $ac_comp
96616
 
EOF
96617
 
  done
96618
 
 
96619
 
      case $host_alias in
96620
 
        *netware*)
96621
 
          
96622
 
  install_modules="install-modules"
96623
 
 
96624
 
  case $host_alias in
96625
 
    *aix*)
96626
 
      suffix=so
96627
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_sqlite.so '$ext_builddir'/phppdo_sqlite.so'
96628
 
      ;;
96629
 
    *netware*)
96630
 
      suffix=nlm
96631
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(PDO_SQLITE_SHARED_LIBADD)'
96632
 
      ;;
96633
 
    *)
96634
 
      suffix=la
96635
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD)'
96636
 
      ;;
96637
 
  esac
96638
 
 
96639
 
  if test "x" = "xyes"; then
96640
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
96641
 
  else
96642
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
96643
 
  fi
96644
 
  
96645
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
96646
 
 
96647
 
  cat >>Makefile.objects<<EOF
96648
 
\$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
96649
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
96650
 
 
96651
 
$ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
96652
 
        $link_cmd
96653
 
 
96654
 
EOF
96655
 
 
96656
 
          ;;
96657
 
        *)
96658
 
          
96659
 
  install_modules="install-modules"
96660
 
 
96661
 
  case $host_alias in
96662
 
    *aix*)
96663
 
      suffix=so
96664
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_sqlite.so '$ext_builddir'/pdo_sqlite.so'
96665
 
      ;;
96666
 
    *netware*)
96667
 
      suffix=nlm
96668
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(_SQLITE_SHARED_LIBADD)'
96669
 
      ;;
96670
 
    *)
96671
 
      suffix=la
96672
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD)'
96673
 
      ;;
96674
 
  esac
96675
 
 
96676
 
  if test "x" = "xyes"; then
96677
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
96678
 
  else
96679
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
96680
 
  fi
96681
 
  
96682
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
96683
 
 
96684
 
  cat >>Makefile.objects<<EOF
96685
 
\$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
96686
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
96687
 
 
96688
 
$ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
96689
 
        $link_cmd
96690
 
 
96691
 
EOF
96692
 
 
96693
 
          ;;
96694
 
      esac
96695
 
      
96696
 
cat >>confdefs.h <<_ACEOF
96697
 
@%:@define COMPILE_DL_PDO_SQLITE 1
96698
 
_ACEOF
96699
 
 
96700
 
    fi
96701
 
  fi
96702
 
 
96703
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
96704
 
    PHP_PDO_SQLITE_SHARED=no
96705
 
    case "$PHP_SAPI" in
96706
 
      cgi|embed)
96707
 
        
96708
 
  
96709
 
  case ext/pdo_sqlite in
96710
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96711
 
  /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96712
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96713
 
  esac
96714
 
  
96715
 
  
96716
 
 
96717
 
  b_c_pre=$php_c_pre
96718
 
  b_cxx_pre=$php_cxx_pre
96719
 
  b_c_meta=$php_c_meta
96720
 
  b_cxx_meta=$php_cxx_meta
96721
 
  b_c_post=$php_c_post
96722
 
  b_cxx_post=$php_cxx_post
96723
 
  b_lo=$php_lo
96724
 
 
96725
 
 
96726
 
  old_IFS=$IFS
96727
 
  for ac_src in $php_pdo_sqlite_sources_core; do
96728
 
  
96729
 
      IFS=.
96730
 
      set $ac_src
96731
 
      ac_obj=$1
96732
 
      IFS=$old_IFS
96733
 
      
96734
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96735
 
 
96736
 
      case $ac_src in
96737
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96738
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96739
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96740
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96741
 
      esac
96742
 
 
96743
 
    cat >>Makefile.objects<<EOF
96744
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96745
 
        $ac_comp
96746
 
EOF
96747
 
  done
96748
 
 
96749
 
 
96750
 
        EXT_STATIC="$EXT_STATIC pdo_sqlite"
96751
 
        ;;
96752
 
      *)
96753
 
        
96754
 
  
96755
 
  case ext/pdo_sqlite in
96756
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96757
 
  /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96758
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96759
 
  esac
96760
 
  
96761
 
  
96762
 
 
96763
 
  b_c_pre=$php_c_pre
96764
 
  b_cxx_pre=$php_cxx_pre
96765
 
  b_c_meta=$php_c_meta
96766
 
  b_cxx_meta=$php_cxx_meta
96767
 
  b_c_post=$php_c_post
96768
 
  b_cxx_post=$php_cxx_post
96769
 
  b_lo=$php_lo
96770
 
 
96771
 
 
96772
 
  old_IFS=$IFS
96773
 
  for ac_src in $php_pdo_sqlite_sources_core; do
96774
 
  
96775
 
      IFS=.
96776
 
      set $ac_src
96777
 
      ac_obj=$1
96778
 
      IFS=$old_IFS
96779
 
      
96780
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
96781
 
 
96782
 
      case $ac_src in
96783
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96784
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96785
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96786
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96787
 
      esac
96788
 
 
96789
 
    cat >>Makefile.objects<<EOF
96790
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96791
 
        $ac_comp
96792
 
EOF
96793
 
  done
96794
 
 
96795
 
 
96796
 
        ;;
96797
 
    esac
96798
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
96799
 
  fi
96800
 
  
96801
 
  
96802
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
96803
 
  
96804
 
 
96805
 
 
96806
 
  if test "$ext_builddir" = "."; then
96807
 
    PHP_PECL_EXTENSION=pdo_sqlite
96808
 
    
96809
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
96810
 
 
96811
 
  fi
96812
 
 
96813
 
  else
96814
 
      # use bundled libs
96815
 
      if test "$enable_maintainer_zts" = "yes"; then
96816
 
        threadsafe_flags="-DSQLITE_THREADSAFE=1"
96817
 
      else
96818
 
        threadsafe_flags="-DSQLITE_THREADSAFE=0"
96819
 
      fi
96820
 
 
96821
 
      other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
96822
 
 
96823
 
                if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
96824
 
        other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
96825
 
      fi
96826
 
 
96827
 
      if test "$PHP_SQLITE3" != "yes"; then
96828
 
        
96829
 
  
96830
 
  case ext/sqlite3 in
96831
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96832
 
  /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96833
 
  *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96834
 
  esac
96835
 
  
96836
 
  
96837
 
 
96838
 
  b_c_pre=$php_c_pre
96839
 
  b_cxx_pre=$php_cxx_pre
96840
 
  b_c_meta=$php_c_meta
96841
 
  b_cxx_meta=$php_cxx_meta
96842
 
  b_c_post=$php_c_post
96843
 
  b_cxx_post=$php_cxx_post
96844
 
  b_lo=$php_lo
96845
 
 
96846
 
 
96847
 
  old_IFS=$IFS
96848
 
  for ac_src in libsqlite/sqlite3.c; do
96849
 
  
96850
 
      IFS=.
96851
 
      set $ac_src
96852
 
      ac_obj=$1
96853
 
      IFS=$old_IFS
96854
 
      
96855
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96856
 
 
96857
 
      case $ac_src in
96858
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96859
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96860
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96861
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96862
 
      esac
96863
 
 
96864
 
    cat >>Makefile.objects<<EOF
96865
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96866
 
        $ac_comp
96867
 
EOF
96868
 
  done
96869
 
 
96870
 
 
96871
 
      fi
96872
 
 
96873
 
      
96874
 
  ext_builddir=ext/pdo_sqlite
96875
 
  ext_srcdir=$abs_srcdir/ext/pdo_sqlite
96876
 
 
96877
 
  ac_extra=`echo "-DPDO_SQLITE_BUNDLED=1 $other_flags $threadsafe_flags -I$pdo_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
96878
 
 
96879
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
96880
 
    PHP_PDO_SQLITE_SHARED=no
96881
 
    
96882
 
  
96883
 
  case ext/pdo_sqlite in
96884
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96885
 
  /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96886
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96887
 
  esac
96888
 
  
96889
 
  
96890
 
 
96891
 
  b_c_pre=$php_c_pre
96892
 
  b_cxx_pre=$php_cxx_pre
96893
 
  b_c_meta=$php_c_meta
96894
 
  b_cxx_meta=$php_cxx_meta
96895
 
  b_c_post=$php_c_post
96896
 
  b_cxx_post=$php_cxx_post
96897
 
  b_lo=$php_lo
96898
 
 
96899
 
 
96900
 
  old_IFS=$IFS
96901
 
  for ac_src in $php_pdo_sqlite_sources_core; do
96902
 
  
96903
 
      IFS=.
96904
 
      set $ac_src
96905
 
      ac_obj=$1
96906
 
      IFS=$old_IFS
96907
 
      
96908
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96909
 
 
96910
 
      case $ac_src in
96911
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96912
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96913
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96914
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96915
 
      esac
96916
 
 
96917
 
    cat >>Makefile.objects<<EOF
96918
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96919
 
        $ac_comp
96920
 
EOF
96921
 
  done
96922
 
 
96923
 
 
96924
 
    EXT_STATIC="$EXT_STATIC pdo_sqlite"
96925
 
    if test "$ext_shared" != "nocli"; then
96926
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
96927
 
    fi
96928
 
  else
96929
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
96930
 
      PHP_PDO_SQLITE_SHARED=yes
96931
 
      
96932
 
  case ext/pdo_sqlite in
96933
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96934
 
  /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96935
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96936
 
  esac
96937
 
  
96938
 
  
96939
 
 
96940
 
  b_c_pre=$shared_c_pre
96941
 
  b_cxx_pre=$shared_cxx_pre
96942
 
  b_c_meta=$shared_c_meta
96943
 
  b_cxx_meta=$shared_cxx_meta
96944
 
  b_c_post=$shared_c_post
96945
 
  b_cxx_post=$shared_cxx_post
96946
 
  b_lo=$shared_lo
96947
 
 
96948
 
 
96949
 
  old_IFS=$IFS
96950
 
  for ac_src in $php_pdo_sqlite_sources_core; do
96951
 
  
96952
 
      IFS=.
96953
 
      set $ac_src
96954
 
      ac_obj=$1
96955
 
      IFS=$old_IFS
96956
 
      
96957
 
      shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
96958
 
 
96959
 
      case $ac_src in
96960
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96961
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96962
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96963
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96964
 
      esac
96965
 
 
96966
 
    cat >>Makefile.objects<<EOF
96967
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96968
 
        $ac_comp
96969
 
EOF
96970
 
  done
96971
 
 
96972
 
      case $host_alias in
96973
 
        *netware*)
96974
 
          
96975
 
  install_modules="install-modules"
96976
 
 
96977
 
  case $host_alias in
96978
 
    *aix*)
96979
 
      suffix=so
96980
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppdo_sqlite.so '$ext_builddir'/phppdo_sqlite.so'
96981
 
      ;;
96982
 
    *netware*)
96983
 
      suffix=nlm
96984
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(PDO_SQLITE_SHARED_LIBADD)'
96985
 
      ;;
96986
 
    *)
96987
 
      suffix=la
96988
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PHPPDO_SQLITE_SHARED_LIBADD)'
96989
 
      ;;
96990
 
  esac
96991
 
 
96992
 
  if test "x" = "xyes"; then
96993
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
96994
 
  else
96995
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
96996
 
  fi
96997
 
  
96998
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
96999
 
 
97000
 
  cat >>Makefile.objects<<EOF
97001
 
\$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
97002
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
97003
 
 
97004
 
$ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
97005
 
        $link_cmd
97006
 
 
97007
 
EOF
97008
 
 
97009
 
          ;;
97010
 
        *)
97011
 
          
97012
 
  install_modules="install-modules"
97013
 
 
97014
 
  case $host_alias in
97015
 
    *aix*)
97016
 
      suffix=so
97017
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pdo_sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pdo_sqlite.so '$ext_builddir'/pdo_sqlite.so'
97018
 
      ;;
97019
 
    *netware*)
97020
 
      suffix=nlm
97021
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) -L$(top_builddir)/netware -lphp5lib $(_SQLITE_SHARED_LIBADD)'
97022
 
      ;;
97023
 
    *)
97024
 
      suffix=la
97025
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pdo_sqlite) $(PDO_SQLITE_SHARED_LIBADD)'
97026
 
      ;;
97027
 
  esac
97028
 
 
97029
 
  if test "x" = "xyes"; then
97030
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
97031
 
  else
97032
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
97033
 
  fi
97034
 
  
97035
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
97036
 
 
97037
 
  cat >>Makefile.objects<<EOF
97038
 
\$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
97039
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
97040
 
 
97041
 
$ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
97042
 
        $link_cmd
97043
 
 
97044
 
EOF
97045
 
 
97046
 
          ;;
97047
 
      esac
97048
 
      
97049
 
cat >>confdefs.h <<_ACEOF
97050
 
@%:@define COMPILE_DL_PDO_SQLITE 1
97051
 
_ACEOF
97052
 
 
97053
 
    fi
97054
 
  fi
97055
 
 
97056
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
97057
 
    PHP_PDO_SQLITE_SHARED=no
97058
 
    case "$PHP_SAPI" in
97059
 
      cgi|embed)
97060
 
        
97061
 
  
97062
 
  case ext/pdo_sqlite in
97063
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97064
 
  /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97065
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97066
 
  esac
97067
 
  
97068
 
  
97069
 
 
97070
 
  b_c_pre=$php_c_pre
97071
 
  b_cxx_pre=$php_cxx_pre
97072
 
  b_c_meta=$php_c_meta
97073
 
  b_cxx_meta=$php_cxx_meta
97074
 
  b_c_post=$php_c_post
97075
 
  b_cxx_post=$php_cxx_post
97076
 
  b_lo=$php_lo
97077
 
 
97078
 
 
97079
 
  old_IFS=$IFS
97080
 
  for ac_src in $php_pdo_sqlite_sources_core; do
97081
 
  
97082
 
      IFS=.
97083
 
      set $ac_src
97084
 
      ac_obj=$1
97085
 
      IFS=$old_IFS
97086
 
      
97087
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
97088
 
 
97089
 
      case $ac_src in
97090
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97091
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97092
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97093
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97094
 
      esac
97095
 
 
97096
 
    cat >>Makefile.objects<<EOF
97097
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97098
 
        $ac_comp
97099
 
EOF
97100
 
  done
97101
 
 
97102
 
 
97103
 
        EXT_STATIC="$EXT_STATIC pdo_sqlite"
97104
 
        ;;
97105
 
      *)
97106
 
        
97107
 
  
97108
 
  case ext/pdo_sqlite in
97109
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97110
 
  /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97111
 
  *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97112
 
  esac
97113
 
  
97114
 
  
97115
 
 
97116
 
  b_c_pre=$php_c_pre
97117
 
  b_cxx_pre=$php_cxx_pre
97118
 
  b_c_meta=$php_c_meta
97119
 
  b_cxx_meta=$php_cxx_meta
97120
 
  b_c_post=$php_c_post
97121
 
  b_cxx_post=$php_cxx_post
97122
 
  b_lo=$php_lo
97123
 
 
97124
 
 
97125
 
  old_IFS=$IFS
97126
 
  for ac_src in $php_pdo_sqlite_sources_core; do
97127
 
  
97128
 
      IFS=.
97129
 
      set $ac_src
97130
 
      ac_obj=$1
97131
 
      IFS=$old_IFS
97132
 
      
97133
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
97134
 
 
97135
 
      case $ac_src in
97136
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97137
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97138
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97139
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97140
 
      esac
97141
 
 
97142
 
    cat >>Makefile.objects<<EOF
97143
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97144
 
        $ac_comp
97145
 
EOF
97146
 
  done
97147
 
 
97148
 
 
97149
 
        ;;
97150
 
    esac
97151
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
97152
 
  fi
97153
 
  
97154
 
  
97155
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
97156
 
  
97157
 
 
97158
 
 
97159
 
  if test "$ext_builddir" = "."; then
97160
 
    PHP_PECL_EXTENSION=pdo_sqlite
97161
 
    
97162
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
97163
 
 
97164
 
  fi
97165
 
 
97166
 
 
97167
 
      
97168
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
97169
 
 
97170
 
      
97171
 
  am_i_shared=$PHP_PDO_SQLITE_SHARED
97172
 
  is_it_shared=$PHP_SQLITE3_SHARED
97173
 
  is_it_enabled=$PHP_SQLITE3
97174
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
97175
 
    { { $as_echo "$as_me:$LINENO: error: 
97176
 
You've configured extension pdo_sqlite to build statically, but it
97177
 
depends on extension sqlite3, which you've configured to build shared.
97178
 
You either need to build pdo_sqlite shared or build sqlite3 statically for the
97179
 
build to be successful.
97180
 
" >&5
97181
 
$as_echo "$as_me: error: 
97182
 
You've configured extension pdo_sqlite to build statically, but it
97183
 
depends on extension sqlite3, which you've configured to build shared.
97184
 
You either need to build pdo_sqlite shared or build sqlite3 statically for the
97185
 
build to be successful.
97186
 
" >&2;}
97187
 
   { (exit 1); exit 1; }; }
97188
 
  fi
97189
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
97190
 
    { { $as_echo "$as_me:$LINENO: error: 
97191
 
You've configured extension pdo_sqlite, which depends on extension sqlite3,
97192
 
but you've either not enabled sqlite3, or have disabled it.
97193
 
" >&5
97194
 
$as_echo "$as_me: error: 
97195
 
You've configured extension pdo_sqlite, which depends on extension sqlite3,
97196
 
but you've either not enabled sqlite3, or have disabled it.
97197
 
" >&2;}
97198
 
   { (exit 1); exit 1; }; }
97199
 
  fi
97200
 
  
97201
 
      
97202
 
  if test "$abs_srcdir/ext/sqlite3/libsqlite" != "/usr/include"; then
97203
 
    
97204
 
  if test -z "$abs_srcdir/ext/sqlite3/libsqlite" || echo "$abs_srcdir/ext/sqlite3/libsqlite" | grep '^/' >/dev/null ; then
97205
 
    ai_p=$abs_srcdir/ext/sqlite3/libsqlite
97206
 
  else
97207
 
    
97208
 
    ep_dir="`echo $abs_srcdir/ext/sqlite3/libsqlite|$SED 's%/*[^/][^/]*/*$%%'`"
97209
 
    
97210
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
97211
 
    ai_p="$ep_realdir/`basename \"$abs_srcdir/ext/sqlite3/libsqlite\"`"
97212
 
  fi
97213
 
 
97214
 
    
97215
 
  
97216
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
97217
 
  
97218
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
97219
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
97220
 
    eval "INCLUDEPATH$unique=set"
97221
 
    
97222
 
      if test ""; then
97223
 
        INCLUDES="-I$ai_p $INCLUDES"
97224
 
      else
97225
 
        INCLUDES="$INCLUDES -I$ai_p"
97226
 
      fi
97227
 
    
97228
 
  fi
97229
 
 
97230
 
  fi
97231
 
 
97232
 
 
97233
 
      
97234
 
 
97235
 
for ac_func in usleep nanosleep
97236
 
do
97237
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
97238
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
97239
 
$as_echo_n "checking for $ac_func... " >&6; }
97240
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
97241
 
  $as_echo_n "(cached) " >&6
97242
 
else
97243
 
  cat >conftest.$ac_ext <<_ACEOF
97244
 
/* confdefs.h.  */
97245
 
_ACEOF
97246
 
cat confdefs.h >>conftest.$ac_ext
97247
 
cat >>conftest.$ac_ext <<_ACEOF
97248
 
/* end confdefs.h.  */
97249
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
97250
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
97251
 
#define $ac_func innocuous_$ac_func
97252
 
 
97253
 
/* System header to define __stub macros and hopefully few prototypes,
97254
 
    which can conflict with char $ac_func (); below.
97255
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
97256
 
    <limits.h> exists even on freestanding compilers.  */
97257
 
 
97258
 
#ifdef __STDC__
97259
 
# include <limits.h>
97260
 
#else
97261
 
# include <assert.h>
97262
 
#endif
97263
 
 
97264
 
#undef $ac_func
97265
 
 
97266
 
/* Override any GCC internal prototype to avoid an error.
97267
 
   Use char because int might match the return type of a GCC
97268
 
   builtin and then its argument prototype would still apply.  */
97269
 
#ifdef __cplusplus
97270
 
extern "C"
97271
 
#endif
97272
 
char $ac_func ();
97273
 
/* The GNU C library defines this for functions which it implements
97274
 
    to always fail with ENOSYS.  Some functions are actually named
97275
 
    something starting with __ and the normal name is an alias.  */
97276
 
#if defined __stub_$ac_func || defined __stub___$ac_func
97277
 
choke me
97278
 
#endif
97279
 
 
97280
 
int
97281
 
main ()
97282
 
{
97283
 
return $ac_func ();
97284
 
  ;
97285
 
  return 0;
97286
 
}
97287
 
_ACEOF
97288
 
rm -f conftest.$ac_objext conftest$ac_exeext
97289
 
if { (ac_try="$ac_link"
97290
 
case "(($ac_try" in
97291
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97292
 
  *) ac_try_echo=$ac_try;;
97293
 
esac
97294
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97295
 
$as_echo "$ac_try_echo") >&5
97296
 
  (eval "$ac_link") 2>conftest.er1
97297
 
  ac_status=$?
97298
 
  grep -v '^ *+' conftest.er1 >conftest.err
97299
 
  rm -f conftest.er1
97300
 
  cat conftest.err >&5
97301
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97302
 
  (exit $ac_status); } && {
97303
 
         test -z "$ac_c_werror_flag" ||
97304
 
         test ! -s conftest.err
97305
 
       } && test -s conftest$ac_exeext && {
97306
 
         test "$cross_compiling" = yes ||
97307
 
         $as_test_x conftest$ac_exeext
97308
 
       }; then
97309
 
  eval "$as_ac_var=yes"
97310
 
else
97311
 
  $as_echo "$as_me: failed program was:" >&5
97312
 
sed 's/^/| /' conftest.$ac_ext >&5
97313
 
 
97314
 
        eval "$as_ac_var=no"
97315
 
fi
97316
 
 
97317
 
rm -rf conftest.dSYM
97318
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97319
 
      conftest$ac_exeext conftest.$ac_ext
97320
 
fi
97321
 
ac_res=`eval 'as_val=${'$as_ac_var'}
97322
 
                 $as_echo "$as_val"'`
97323
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
97324
 
$as_echo "$ac_res" >&6; }
97325
 
as_val=`eval 'as_val=${'$as_ac_var'}
97326
 
                 $as_echo "$as_val"'`
97327
 
   if test "x$as_val" = x""yes; then
97328
 
  cat >>confdefs.h <<_ACEOF
97329
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
97330
 
_ACEOF
97331
 
 
97332
 
fi
97333
 
done
97334
 
 
97335
 
      
97336
 
for ac_header in time.h
97337
 
do
97338
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
97339
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97340
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
97341
 
$as_echo_n "checking for $ac_header... " >&6; }
97342
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97343
 
  $as_echo_n "(cached) " >&6
97344
 
fi
97345
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
97346
 
                 $as_echo "$as_val"'`
97347
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
97348
 
$as_echo "$ac_res" >&6; }
97349
 
else
97350
 
  # Is the header compilable?
97351
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
97352
 
$as_echo_n "checking $ac_header usability... " >&6; }
97353
 
cat >conftest.$ac_ext <<_ACEOF
97354
 
/* confdefs.h.  */
97355
 
_ACEOF
97356
 
cat confdefs.h >>conftest.$ac_ext
97357
 
cat >>conftest.$ac_ext <<_ACEOF
97358
 
/* end confdefs.h.  */
97359
 
$ac_includes_default
97360
 
@%:@include <$ac_header>
97361
 
_ACEOF
97362
 
rm -f conftest.$ac_objext
97363
 
if { (ac_try="$ac_compile"
97364
 
case "(($ac_try" in
97365
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97366
 
  *) ac_try_echo=$ac_try;;
97367
 
esac
97368
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97369
 
$as_echo "$ac_try_echo") >&5
97370
 
  (eval "$ac_compile") 2>conftest.er1
97371
 
  ac_status=$?
97372
 
  grep -v '^ *+' conftest.er1 >conftest.err
97373
 
  rm -f conftest.er1
97374
 
  cat conftest.err >&5
97375
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97376
 
  (exit $ac_status); } && {
97377
 
         test -z "$ac_c_werror_flag" ||
97378
 
         test ! -s conftest.err
97379
 
       } && test -s conftest.$ac_objext; then
97380
 
  ac_header_compiler=yes
97381
 
else
97382
 
  $as_echo "$as_me: failed program was:" >&5
97383
 
sed 's/^/| /' conftest.$ac_ext >&5
97384
 
 
97385
 
        ac_header_compiler=no
97386
 
fi
97387
 
 
97388
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97389
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
97390
 
$as_echo "$ac_header_compiler" >&6; }
97391
 
 
97392
 
# Is the header present?
97393
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
97394
 
$as_echo_n "checking $ac_header presence... " >&6; }
97395
 
cat >conftest.$ac_ext <<_ACEOF
97396
 
/* confdefs.h.  */
97397
 
_ACEOF
97398
 
cat confdefs.h >>conftest.$ac_ext
97399
 
cat >>conftest.$ac_ext <<_ACEOF
97400
 
/* end confdefs.h.  */
97401
 
@%:@include <$ac_header>
97402
 
_ACEOF
97403
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
97404
 
case "(($ac_try" in
97405
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97406
 
  *) ac_try_echo=$ac_try;;
97407
 
esac
97408
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97409
 
$as_echo "$ac_try_echo") >&5
97410
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
97411
 
  ac_status=$?
97412
 
  grep -v '^ *+' conftest.er1 >conftest.err
97413
 
  rm -f conftest.er1
97414
 
  cat conftest.err >&5
97415
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97416
 
  (exit $ac_status); } >/dev/null && {
97417
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
97418
 
         test ! -s conftest.err
97419
 
       }; then
97420
 
  ac_header_preproc=yes
97421
 
else
97422
 
  $as_echo "$as_me: failed program was:" >&5
97423
 
sed 's/^/| /' conftest.$ac_ext >&5
97424
 
 
97425
 
  ac_header_preproc=no
97426
 
fi
97427
 
 
97428
 
rm -f conftest.err conftest.$ac_ext
97429
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
97430
 
$as_echo "$ac_header_preproc" >&6; }
97431
 
 
97432
 
# So?  What about this header?
97433
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
97434
 
  yes:no: )
97435
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
97436
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
97437
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
97438
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
97439
 
    ac_header_preproc=yes
97440
 
    ;;
97441
 
  no:yes:* )
97442
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
97443
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
97444
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
97445
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
97446
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
97447
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
97448
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
97449
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
97450
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
97451
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
97452
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
97453
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
97454
 
    
97455
 
    ;;
97456
 
esac
97457
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
97458
 
$as_echo_n "checking for $ac_header... " >&6; }
97459
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97460
 
  $as_echo_n "(cached) " >&6
97461
 
else
97462
 
  eval "$as_ac_Header=\$ac_header_preproc"
97463
 
fi
97464
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
97465
 
                 $as_echo "$as_val"'`
97466
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
97467
 
$as_echo "$ac_res" >&6; }
97468
 
 
97469
 
fi
97470
 
as_val=`eval 'as_val=${'$as_ac_Header'}
97471
 
                 $as_echo "$as_val"'`
97472
 
   if test "x$as_val" = x""yes; then
97473
 
  cat >>confdefs.h <<_ACEOF
97474
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
97475
 
_ACEOF
97476
 
 
97477
 
fi
97478
 
 
97479
 
done
97480
 
 
97481
 
  fi
97482
 
 
97483
 
    
97484
 
  save_old_LDFLAGS=$LDFLAGS
97485
 
  ac_stuff=""
97486
 
  
97487
 
  save_ext_shared=$ext_shared
97488
 
  ext_shared=yes
97489
 
  
97490
 
  for ac_i in $ac_stuff; do
97491
 
    case $ac_i in
97492
 
    -pthread)
97493
 
      if test "$ext_shared" = "yes"; then
97494
 
        LDFLAGS="$LDFLAGS -pthread"
97495
 
      else
97496
 
        
97497
 
  
97498
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
97499
 
  
97500
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
97501
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
97502
 
    eval "EXTRA_LDFLAGS$unique=set"
97503
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
97504
 
  fi
97505
 
 
97506
 
      fi
97507
 
    ;;
97508
 
    -l*)
97509
 
      ac_ii=`echo $ac_i|cut -c 3-`
97510
 
      
97511
 
  
97512
 
  case $ac_ii in
97513
 
  c|c_r|pthread*) ;;
97514
 
  *) 
97515
 
    if test "$ext_shared" = "yes"; then
97516
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
97517
 
    else
97518
 
      
97519
 
  
97520
 
  case $ac_ii in
97521
 
  c|c_r|pthread*) ;;
97522
 
  *) 
97523
 
      LIBS="$LIBS -l$ac_ii" 
97524
 
   ;;
97525
 
  esac
97526
 
 
97527
 
 
97528
 
    fi
97529
 
   ;;
97530
 
  esac
97531
 
 
97532
 
 
97533
 
    ;;
97534
 
    -L*)
97535
 
      ac_ii=`echo $ac_i|cut -c 3-`
97536
 
      
97537
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
97538
 
    
97539
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
97540
 
    ai_p=$ac_ii
97541
 
  else
97542
 
    
97543
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
97544
 
    
97545
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
97546
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
97547
 
  fi
97548
 
 
97549
 
    
97550
 
      if test "$ext_shared" = "yes"; then
97551
 
        LDFLAGS="-L$ai_p $LDFLAGS"
97552
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
97553
 
      else
97554
 
        
97555
 
  
97556
 
  
97557
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
97558
 
  
97559
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
97560
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
97561
 
    eval "LIBPATH$unique=set"
97562
 
    
97563
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
97564
 
    LDFLAGS="$LDFLAGS -L$ai_p"
97565
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
97566
 
  
97567
 
  fi
97568
 
 
97569
 
 
97570
 
      fi
97571
 
    
97572
 
  fi
97573
 
 
97574
 
    ;;
97575
 
    esac
97576
 
  done
97577
 
 
97578
 
  { $as_echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
97579
 
$as_echo_n "checking for fdatasync in -lrt... " >&6; }
97580
 
if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
97581
 
  $as_echo_n "(cached) " >&6
97582
 
else
97583
 
  ac_check_lib_save_LIBS=$LIBS
97584
 
LIBS="-lrt  $LIBS"
97585
 
cat >conftest.$ac_ext <<_ACEOF
97586
 
/* confdefs.h.  */
97587
 
_ACEOF
97588
 
cat confdefs.h >>conftest.$ac_ext
97589
 
cat >>conftest.$ac_ext <<_ACEOF
97590
 
/* end confdefs.h.  */
97591
 
 
97592
 
/* Override any GCC internal prototype to avoid an error.
97593
 
   Use char because int might match the return type of a GCC
97594
 
   builtin and then its argument prototype would still apply.  */
97595
 
#ifdef __cplusplus
97596
 
extern "C"
97597
 
#endif
97598
 
char fdatasync ();
97599
 
int
97600
 
main ()
97601
 
{
97602
 
return fdatasync ();
97603
 
  ;
97604
 
  return 0;
97605
 
}
97606
 
_ACEOF
97607
 
rm -f conftest.$ac_objext conftest$ac_exeext
97608
 
if { (ac_try="$ac_link"
97609
 
case "(($ac_try" in
97610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97611
 
  *) ac_try_echo=$ac_try;;
97612
 
esac
97613
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97614
 
$as_echo "$ac_try_echo") >&5
97615
 
  (eval "$ac_link") 2>conftest.er1
97616
 
  ac_status=$?
97617
 
  grep -v '^ *+' conftest.er1 >conftest.err
97618
 
  rm -f conftest.er1
97619
 
  cat conftest.err >&5
97620
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97621
 
  (exit $ac_status); } && {
97622
 
         test -z "$ac_c_werror_flag" ||
97623
 
         test ! -s conftest.err
97624
 
       } && test -s conftest$ac_exeext && {
97625
 
         test "$cross_compiling" = yes ||
97626
 
         $as_test_x conftest$ac_exeext
97627
 
       }; then
97628
 
  ac_cv_lib_rt_fdatasync=yes
97629
 
else
97630
 
  $as_echo "$as_me: failed program was:" >&5
97631
 
sed 's/^/| /' conftest.$ac_ext >&5
97632
 
 
97633
 
        ac_cv_lib_rt_fdatasync=no
97634
 
fi
97635
 
 
97636
 
rm -rf conftest.dSYM
97637
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97638
 
      conftest$ac_exeext conftest.$ac_ext
97639
 
LIBS=$ac_check_lib_save_LIBS
97640
 
fi
97641
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
97642
 
$as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
97643
 
if test "x$ac_cv_lib_rt_fdatasync" = x""yes; then
97644
 
  
97645
 
    LDFLAGS=$save_old_LDFLAGS
97646
 
    ext_shared=$save_ext_shared
97647
 
    
97648
 
  
97649
 
  case rt in
97650
 
  c|c_r|pthread*) ;;
97651
 
  *) 
97652
 
    if test "$ext_shared" = "yes"; then
97653
 
        PDO_SQLITE_SHARED_LIBADD="-lrt $PDO_SQLITE_SHARED_LIBADD" 
97654
 
    else
97655
 
      
97656
 
  
97657
 
  case rt in
97658
 
  c|c_r|pthread*) ;;
97659
 
  *) 
97660
 
      LIBS="-lrt $LIBS" 
97661
 
   ;;
97662
 
  esac
97663
 
 
97664
 
 
97665
 
    fi
97666
 
   ;;
97667
 
  esac
97668
 
 
97669
 
 
97670
 
  
97671
 
else
97672
 
  
97673
 
    LDFLAGS=$save_old_LDFLAGS
97674
 
    ext_shared=$save_ext_shared
97675
 
    unset ac_cv_lib_rt_fdatasync
97676
 
    
97677
 
  
97678
 
fi
97679
 
 
97680
 
 
97681
 
  
97682
 
    
97683
 
  am_i_shared=$PHP_PDO_SQLITE_SHARED
97684
 
  is_it_shared=$PHP_PDO_SHARED
97685
 
  is_it_enabled=$PHP_PDO
97686
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
97687
 
    { { $as_echo "$as_me:$LINENO: error: 
97688
 
You've configured extension pdo_sqlite to build statically, but it
97689
 
depends on extension pdo, which you've configured to build shared.
97690
 
You either need to build pdo_sqlite shared or build pdo statically for the
97691
 
build to be successful.
97692
 
" >&5
97693
 
$as_echo "$as_me: error: 
97694
 
You've configured extension pdo_sqlite to build statically, but it
97695
 
depends on extension pdo, which you've configured to build shared.
97696
 
You either need to build pdo_sqlite shared or build pdo statically for the
97697
 
build to be successful.
97698
 
" >&2;}
97699
 
   { (exit 1); exit 1; }; }
97700
 
  fi
97701
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
97702
 
    { { $as_echo "$as_me:$LINENO: error: 
97703
 
You've configured extension pdo_sqlite, which depends on extension pdo,
97704
 
but you've either not enabled pdo, or have disabled it.
97705
 
" >&5
97706
 
$as_echo "$as_me: error: 
97707
 
You've configured extension pdo_sqlite, which depends on extension pdo,
97708
 
but you've either not enabled pdo, or have disabled it.
97709
 
" >&2;}
97710
 
   { (exit 1); exit 1; }; }
97711
 
  fi
97712
 
  
97713
 
  
97714
 
fi
97715
 
 
97716
 
 
97717
 
 
97718
 
php_with_pgsql=no
97719
 
 
97720
 
{ $as_echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
97721
 
$as_echo_n "checking for PostgreSQL support... " >&6; }
97722
 
 
97723
 
@%:@ Check whether --with-pgsql was given.
97724
 
if test "${with_pgsql+set}" = set; then
97725
 
  withval=$with_pgsql; PHP_PGSQL=$withval
97726
 
else
97727
 
  
97728
 
  PHP_PGSQL=no
97729
 
  test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL
97730
 
 
97731
 
fi
97732
 
 
97733
 
 
97734
 
 
97735
 
ext_output="yes, shared"
97736
 
ext_shared=yes
97737
 
case $PHP_PGSQL in
97738
 
shared,*)
97739
 
  PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'`
97740
 
  ;;
97741
 
shared)
97742
 
  PHP_PGSQL=yes
97743
 
  ;;
97744
 
no)
97745
 
  ext_output=no
97746
 
  ext_shared=no
97747
 
  ;;
97748
 
*)
97749
 
  ext_output=yes
97750
 
  ext_shared=no
97751
 
  ;;
97752
 
esac
97753
 
 
97754
 
 
97755
 
 
97756
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
97757
 
$as_echo "$ext_output" >&6; }
97758
 
 
97759
 
 
97760
 
 
97761
 
 
97762
 
if test "$PHP_PGSQL" != "no"; then
97763
 
  
97764
 
  if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
97765
 
    PGSQL_INCLUDE=$PGSQL_INCLUDE
97766
 
  else
97767
 
    
97768
 
    ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
97769
 
    
97770
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
97771
 
    PGSQL_INCLUDE="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
97772
 
  fi
97773
 
 
97774
 
 
97775
 
  { $as_echo "$as_me:$LINENO: checking for pg_config" >&5
97776
 
$as_echo_n "checking for pg_config... " >&6; }
97777
 
  for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
97778
 
        if test -x $i/pg_config; then
97779
 
      PG_CONFIG="$i/pg_config"
97780
 
      break;
97781
 
    fi
97782
 
  done
97783
 
 
97784
 
  if test -n "$PG_CONFIG"; then
97785
 
    { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
97786
 
$as_echo "$PG_CONFIG" >&6; }
97787
 
    PGSQL_INCLUDE=`$PG_CONFIG --includedir`
97788
 
    PGSQL_LIBDIR=`$PG_CONFIG --libdir`
97789
 
    if test -r "$PGSQL_INCLUDE/pg_config.h"; then
97790
 
      
97791
 
cat >>confdefs.h <<\_ACEOF
97792
 
@%:@define HAVE_PG_CONFIG_H 1
97793
 
_ACEOF
97794
 
 
97795
 
    fi
97796
 
  else
97797
 
    { $as_echo "$as_me:$LINENO: result: not found" >&5
97798
 
$as_echo "not found" >&6; }
97799
 
    if test "$PHP_PGSQL" = "yes"; then
97800
 
      PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
97801
 
    else
97802
 
      PGSQL_SEARCH_PATHS=$PHP_PGSQL
97803
 
    fi
97804
 
  
97805
 
    for i in $PGSQL_SEARCH_PATHS; do
97806
 
      for j in include include/pgsql include/postgres include/postgresql ""; do
97807
 
        if test -r "$i/$j/libpq-fe.h"; then
97808
 
          PGSQL_INC_BASE=$i
97809
 
          PGSQL_INCLUDE=$i/$j
97810
 
          if test -r "$i/$j/pg_config.h"; then
97811
 
            
97812
 
cat >>confdefs.h <<\_ACEOF
97813
 
@%:@define HAVE_PG_CONFIG_H 1
97814
 
_ACEOF
97815
 
 
97816
 
          fi
97817
 
        fi
97818
 
      done
97819
 
 
97820
 
      for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
97821
 
        if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then 
97822
 
          PGSQL_LIBDIR=$i/$j
97823
 
        fi
97824
 
      done
97825
 
    done
97826
 
  fi
97827
 
 
97828
 
  if test -z "$PGSQL_INCLUDE"; then
97829
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" >&5
97830
 
$as_echo "$as_me: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" >&2;}
97831
 
   { (exit 1); exit 1; }; }
97832
 
  fi
97833
 
 
97834
 
  if test -z "$PGSQL_LIBDIR"; then
97835
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path" >&5
97836
 
$as_echo "$as_me: error: Cannot find libpq.so. Please specify correct PostgreSQL installation path" >&2;}
97837
 
   { (exit 1); exit 1; }; }
97838
 
  fi
97839
 
 
97840
 
  if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
97841
 
    { { $as_echo "$as_me:$LINENO: error: Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" >&5
97842
 
$as_echo "$as_me: error: Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" >&2;}
97843
 
   { (exit 1); exit 1; }; }
97844
 
  fi
97845
 
 
97846
 
  
97847
 
cat >>confdefs.h <<\_ACEOF
97848
 
@%:@define HAVE_PGSQL 1
97849
 
_ACEOF
97850
 
 
97851
 
  old_LIBS=$LIBS
97852
 
  old_LDFLAGS=$LDFLAGS
97853
 
  LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
97854
 
  { $as_echo "$as_me:$LINENO: checking for PQescapeString in -lpq" >&5
97855
 
$as_echo_n "checking for PQescapeString in -lpq... " >&6; }
97856
 
if test "${ac_cv_lib_pq_PQescapeString+set}" = set; then
97857
 
  $as_echo_n "(cached) " >&6
97858
 
else
97859
 
  ac_check_lib_save_LIBS=$LIBS
97860
 
LIBS="-lpq  $LIBS"
97861
 
cat >conftest.$ac_ext <<_ACEOF
97862
 
/* confdefs.h.  */
97863
 
_ACEOF
97864
 
cat confdefs.h >>conftest.$ac_ext
97865
 
cat >>conftest.$ac_ext <<_ACEOF
97866
 
/* end confdefs.h.  */
97867
 
 
97868
 
/* Override any GCC internal prototype to avoid an error.
97869
 
   Use char because int might match the return type of a GCC
97870
 
   builtin and then its argument prototype would still apply.  */
97871
 
#ifdef __cplusplus
97872
 
extern "C"
97873
 
#endif
97874
 
char PQescapeString ();
97875
 
int
97876
 
main ()
97877
 
{
97878
 
return PQescapeString ();
97879
 
  ;
97880
 
  return 0;
97881
 
}
97882
 
_ACEOF
97883
 
rm -f conftest.$ac_objext conftest$ac_exeext
97884
 
if { (ac_try="$ac_link"
97885
 
case "(($ac_try" in
97886
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97887
 
  *) ac_try_echo=$ac_try;;
97888
 
esac
97889
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97890
 
$as_echo "$ac_try_echo") >&5
97891
 
  (eval "$ac_link") 2>conftest.er1
97892
 
  ac_status=$?
97893
 
  grep -v '^ *+' conftest.er1 >conftest.err
97894
 
  rm -f conftest.er1
97895
 
  cat conftest.err >&5
97896
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97897
 
  (exit $ac_status); } && {
97898
 
         test -z "$ac_c_werror_flag" ||
97899
 
         test ! -s conftest.err
97900
 
       } && test -s conftest$ac_exeext && {
97901
 
         test "$cross_compiling" = yes ||
97902
 
         $as_test_x conftest$ac_exeext
97903
 
       }; then
97904
 
  ac_cv_lib_pq_PQescapeString=yes
97905
 
else
97906
 
  $as_echo "$as_me: failed program was:" >&5
97907
 
sed 's/^/| /' conftest.$ac_ext >&5
97908
 
 
97909
 
        ac_cv_lib_pq_PQescapeString=no
97910
 
fi
97911
 
 
97912
 
rm -rf conftest.dSYM
97913
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97914
 
      conftest$ac_exeext conftest.$ac_ext
97915
 
LIBS=$ac_check_lib_save_LIBS
97916
 
fi
97917
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeString" >&5
97918
 
$as_echo "$ac_cv_lib_pq_PQescapeString" >&6; }
97919
 
if test "x$ac_cv_lib_pq_PQescapeString" = x""yes; then
97920
 
  
97921
 
cat >>confdefs.h <<\_ACEOF
97922
 
@%:@define HAVE_PQESCAPE 1
97923
 
_ACEOF
97924
 
 
97925
 
fi
97926
 
 
97927
 
  { $as_echo "$as_me:$LINENO: checking for PQunescapeBytea in -lpq" >&5
97928
 
$as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; }
97929
 
if test "${ac_cv_lib_pq_PQunescapeBytea+set}" = set; then
97930
 
  $as_echo_n "(cached) " >&6
97931
 
else
97932
 
  ac_check_lib_save_LIBS=$LIBS
97933
 
LIBS="-lpq  $LIBS"
97934
 
cat >conftest.$ac_ext <<_ACEOF
97935
 
/* confdefs.h.  */
97936
 
_ACEOF
97937
 
cat confdefs.h >>conftest.$ac_ext
97938
 
cat >>conftest.$ac_ext <<_ACEOF
97939
 
/* end confdefs.h.  */
97940
 
 
97941
 
/* Override any GCC internal prototype to avoid an error.
97942
 
   Use char because int might match the return type of a GCC
97943
 
   builtin and then its argument prototype would still apply.  */
97944
 
#ifdef __cplusplus
97945
 
extern "C"
97946
 
#endif
97947
 
char PQunescapeBytea ();
97948
 
int
97949
 
main ()
97950
 
{
97951
 
return PQunescapeBytea ();
97952
 
  ;
97953
 
  return 0;
97954
 
}
97955
 
_ACEOF
97956
 
rm -f conftest.$ac_objext conftest$ac_exeext
97957
 
if { (ac_try="$ac_link"
97958
 
case "(($ac_try" in
97959
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97960
 
  *) ac_try_echo=$ac_try;;
97961
 
esac
97962
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97963
 
$as_echo "$ac_try_echo") >&5
97964
 
  (eval "$ac_link") 2>conftest.er1
97965
 
  ac_status=$?
97966
 
  grep -v '^ *+' conftest.er1 >conftest.err
97967
 
  rm -f conftest.er1
97968
 
  cat conftest.err >&5
97969
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97970
 
  (exit $ac_status); } && {
97971
 
         test -z "$ac_c_werror_flag" ||
97972
 
         test ! -s conftest.err
97973
 
       } && test -s conftest$ac_exeext && {
97974
 
         test "$cross_compiling" = yes ||
97975
 
         $as_test_x conftest$ac_exeext
97976
 
       }; then
97977
 
  ac_cv_lib_pq_PQunescapeBytea=yes
97978
 
else
97979
 
  $as_echo "$as_me: failed program was:" >&5
97980
 
sed 's/^/| /' conftest.$ac_ext >&5
97981
 
 
97982
 
        ac_cv_lib_pq_PQunescapeBytea=no
97983
 
fi
97984
 
 
97985
 
rm -rf conftest.dSYM
97986
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97987
 
      conftest$ac_exeext conftest.$ac_ext
97988
 
LIBS=$ac_check_lib_save_LIBS
97989
 
fi
97990
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQunescapeBytea" >&5
97991
 
$as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; }
97992
 
if test "x$ac_cv_lib_pq_PQunescapeBytea" = x""yes; then
97993
 
  
97994
 
cat >>confdefs.h <<\_ACEOF
97995
 
@%:@define HAVE_PQUNESCAPEBYTEA 1
97996
 
_ACEOF
97997
 
 
97998
 
fi
97999
 
 
98000
 
  { $as_echo "$as_me:$LINENO: checking for PQsetnonblocking in -lpq" >&5
98001
 
$as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; }
98002
 
if test "${ac_cv_lib_pq_PQsetnonblocking+set}" = set; then
98003
 
  $as_echo_n "(cached) " >&6
98004
 
else
98005
 
  ac_check_lib_save_LIBS=$LIBS
98006
 
LIBS="-lpq  $LIBS"
98007
 
cat >conftest.$ac_ext <<_ACEOF
98008
 
/* confdefs.h.  */
98009
 
_ACEOF
98010
 
cat confdefs.h >>conftest.$ac_ext
98011
 
cat >>conftest.$ac_ext <<_ACEOF
98012
 
/* end confdefs.h.  */
98013
 
 
98014
 
/* Override any GCC internal prototype to avoid an error.
98015
 
   Use char because int might match the return type of a GCC
98016
 
   builtin and then its argument prototype would still apply.  */
98017
 
#ifdef __cplusplus
98018
 
extern "C"
98019
 
#endif
98020
 
char PQsetnonblocking ();
98021
 
int
98022
 
main ()
98023
 
{
98024
 
return PQsetnonblocking ();
98025
 
  ;
98026
 
  return 0;
98027
 
}
98028
 
_ACEOF
98029
 
rm -f conftest.$ac_objext conftest$ac_exeext
98030
 
if { (ac_try="$ac_link"
98031
 
case "(($ac_try" in
98032
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98033
 
  *) ac_try_echo=$ac_try;;
98034
 
esac
98035
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98036
 
$as_echo "$ac_try_echo") >&5
98037
 
  (eval "$ac_link") 2>conftest.er1
98038
 
  ac_status=$?
98039
 
  grep -v '^ *+' conftest.er1 >conftest.err
98040
 
  rm -f conftest.er1
98041
 
  cat conftest.err >&5
98042
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98043
 
  (exit $ac_status); } && {
98044
 
         test -z "$ac_c_werror_flag" ||
98045
 
         test ! -s conftest.err
98046
 
       } && test -s conftest$ac_exeext && {
98047
 
         test "$cross_compiling" = yes ||
98048
 
         $as_test_x conftest$ac_exeext
98049
 
       }; then
98050
 
  ac_cv_lib_pq_PQsetnonblocking=yes
98051
 
else
98052
 
  $as_echo "$as_me: failed program was:" >&5
98053
 
sed 's/^/| /' conftest.$ac_ext >&5
98054
 
 
98055
 
        ac_cv_lib_pq_PQsetnonblocking=no
98056
 
fi
98057
 
 
98058
 
rm -rf conftest.dSYM
98059
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98060
 
      conftest$ac_exeext conftest.$ac_ext
98061
 
LIBS=$ac_check_lib_save_LIBS
98062
 
fi
98063
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetnonblocking" >&5
98064
 
$as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; }
98065
 
if test "x$ac_cv_lib_pq_PQsetnonblocking" = x""yes; then
98066
 
  
98067
 
cat >>confdefs.h <<\_ACEOF
98068
 
@%:@define HAVE_PQSETNONBLOCKING 1
98069
 
_ACEOF
98070
 
 
98071
 
fi
98072
 
 
98073
 
  { $as_echo "$as_me:$LINENO: checking for PQcmdTuples in -lpq" >&5
98074
 
$as_echo_n "checking for PQcmdTuples in -lpq... " >&6; }
98075
 
if test "${ac_cv_lib_pq_PQcmdTuples+set}" = set; then
98076
 
  $as_echo_n "(cached) " >&6
98077
 
else
98078
 
  ac_check_lib_save_LIBS=$LIBS
98079
 
LIBS="-lpq  $LIBS"
98080
 
cat >conftest.$ac_ext <<_ACEOF
98081
 
/* confdefs.h.  */
98082
 
_ACEOF
98083
 
cat confdefs.h >>conftest.$ac_ext
98084
 
cat >>conftest.$ac_ext <<_ACEOF
98085
 
/* end confdefs.h.  */
98086
 
 
98087
 
/* Override any GCC internal prototype to avoid an error.
98088
 
   Use char because int might match the return type of a GCC
98089
 
   builtin and then its argument prototype would still apply.  */
98090
 
#ifdef __cplusplus
98091
 
extern "C"
98092
 
#endif
98093
 
char PQcmdTuples ();
98094
 
int
98095
 
main ()
98096
 
{
98097
 
return PQcmdTuples ();
98098
 
  ;
98099
 
  return 0;
98100
 
}
98101
 
_ACEOF
98102
 
rm -f conftest.$ac_objext conftest$ac_exeext
98103
 
if { (ac_try="$ac_link"
98104
 
case "(($ac_try" in
98105
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98106
 
  *) ac_try_echo=$ac_try;;
98107
 
esac
98108
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98109
 
$as_echo "$ac_try_echo") >&5
98110
 
  (eval "$ac_link") 2>conftest.er1
98111
 
  ac_status=$?
98112
 
  grep -v '^ *+' conftest.er1 >conftest.err
98113
 
  rm -f conftest.er1
98114
 
  cat conftest.err >&5
98115
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98116
 
  (exit $ac_status); } && {
98117
 
         test -z "$ac_c_werror_flag" ||
98118
 
         test ! -s conftest.err
98119
 
       } && test -s conftest$ac_exeext && {
98120
 
         test "$cross_compiling" = yes ||
98121
 
         $as_test_x conftest$ac_exeext
98122
 
       }; then
98123
 
  ac_cv_lib_pq_PQcmdTuples=yes
98124
 
else
98125
 
  $as_echo "$as_me: failed program was:" >&5
98126
 
sed 's/^/| /' conftest.$ac_ext >&5
98127
 
 
98128
 
        ac_cv_lib_pq_PQcmdTuples=no
98129
 
fi
98130
 
 
98131
 
rm -rf conftest.dSYM
98132
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98133
 
      conftest$ac_exeext conftest.$ac_ext
98134
 
LIBS=$ac_check_lib_save_LIBS
98135
 
fi
98136
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQcmdTuples" >&5
98137
 
$as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; }
98138
 
if test "x$ac_cv_lib_pq_PQcmdTuples" = x""yes; then
98139
 
  
98140
 
cat >>confdefs.h <<\_ACEOF
98141
 
@%:@define HAVE_PQCMDTUPLES 1
98142
 
_ACEOF
98143
 
 
98144
 
fi
98145
 
 
98146
 
  { $as_echo "$as_me:$LINENO: checking for PQoidValue in -lpq" >&5
98147
 
$as_echo_n "checking for PQoidValue in -lpq... " >&6; }
98148
 
if test "${ac_cv_lib_pq_PQoidValue+set}" = set; then
98149
 
  $as_echo_n "(cached) " >&6
98150
 
else
98151
 
  ac_check_lib_save_LIBS=$LIBS
98152
 
LIBS="-lpq  $LIBS"
98153
 
cat >conftest.$ac_ext <<_ACEOF
98154
 
/* confdefs.h.  */
98155
 
_ACEOF
98156
 
cat confdefs.h >>conftest.$ac_ext
98157
 
cat >>conftest.$ac_ext <<_ACEOF
98158
 
/* end confdefs.h.  */
98159
 
 
98160
 
/* Override any GCC internal prototype to avoid an error.
98161
 
   Use char because int might match the return type of a GCC
98162
 
   builtin and then its argument prototype would still apply.  */
98163
 
#ifdef __cplusplus
98164
 
extern "C"
98165
 
#endif
98166
 
char PQoidValue ();
98167
 
int
98168
 
main ()
98169
 
{
98170
 
return PQoidValue ();
98171
 
  ;
98172
 
  return 0;
98173
 
}
98174
 
_ACEOF
98175
 
rm -f conftest.$ac_objext conftest$ac_exeext
98176
 
if { (ac_try="$ac_link"
98177
 
case "(($ac_try" in
98178
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98179
 
  *) ac_try_echo=$ac_try;;
98180
 
esac
98181
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98182
 
$as_echo "$ac_try_echo") >&5
98183
 
  (eval "$ac_link") 2>conftest.er1
98184
 
  ac_status=$?
98185
 
  grep -v '^ *+' conftest.er1 >conftest.err
98186
 
  rm -f conftest.er1
98187
 
  cat conftest.err >&5
98188
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98189
 
  (exit $ac_status); } && {
98190
 
         test -z "$ac_c_werror_flag" ||
98191
 
         test ! -s conftest.err
98192
 
       } && test -s conftest$ac_exeext && {
98193
 
         test "$cross_compiling" = yes ||
98194
 
         $as_test_x conftest$ac_exeext
98195
 
       }; then
98196
 
  ac_cv_lib_pq_PQoidValue=yes
98197
 
else
98198
 
  $as_echo "$as_me: failed program was:" >&5
98199
 
sed 's/^/| /' conftest.$ac_ext >&5
98200
 
 
98201
 
        ac_cv_lib_pq_PQoidValue=no
98202
 
fi
98203
 
 
98204
 
rm -rf conftest.dSYM
98205
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98206
 
      conftest$ac_exeext conftest.$ac_ext
98207
 
LIBS=$ac_check_lib_save_LIBS
98208
 
fi
98209
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQoidValue" >&5
98210
 
$as_echo "$ac_cv_lib_pq_PQoidValue" >&6; }
98211
 
if test "x$ac_cv_lib_pq_PQoidValue" = x""yes; then
98212
 
  
98213
 
cat >>confdefs.h <<\_ACEOF
98214
 
@%:@define HAVE_PQOIDVALUE 1
98215
 
_ACEOF
98216
 
 
98217
 
fi
98218
 
 
98219
 
  { $as_echo "$as_me:$LINENO: checking for PQclientEncoding in -lpq" >&5
98220
 
$as_echo_n "checking for PQclientEncoding in -lpq... " >&6; }
98221
 
if test "${ac_cv_lib_pq_PQclientEncoding+set}" = set; then
98222
 
  $as_echo_n "(cached) " >&6
98223
 
else
98224
 
  ac_check_lib_save_LIBS=$LIBS
98225
 
LIBS="-lpq  $LIBS"
98226
 
cat >conftest.$ac_ext <<_ACEOF
98227
 
/* confdefs.h.  */
98228
 
_ACEOF
98229
 
cat confdefs.h >>conftest.$ac_ext
98230
 
cat >>conftest.$ac_ext <<_ACEOF
98231
 
/* end confdefs.h.  */
98232
 
 
98233
 
/* Override any GCC internal prototype to avoid an error.
98234
 
   Use char because int might match the return type of a GCC
98235
 
   builtin and then its argument prototype would still apply.  */
98236
 
#ifdef __cplusplus
98237
 
extern "C"
98238
 
#endif
98239
 
char PQclientEncoding ();
98240
 
int
98241
 
main ()
98242
 
{
98243
 
return PQclientEncoding ();
98244
 
  ;
98245
 
  return 0;
98246
 
}
98247
 
_ACEOF
98248
 
rm -f conftest.$ac_objext conftest$ac_exeext
98249
 
if { (ac_try="$ac_link"
98250
 
case "(($ac_try" in
98251
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98252
 
  *) ac_try_echo=$ac_try;;
98253
 
esac
98254
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98255
 
$as_echo "$ac_try_echo") >&5
98256
 
  (eval "$ac_link") 2>conftest.er1
98257
 
  ac_status=$?
98258
 
  grep -v '^ *+' conftest.er1 >conftest.err
98259
 
  rm -f conftest.er1
98260
 
  cat conftest.err >&5
98261
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98262
 
  (exit $ac_status); } && {
98263
 
         test -z "$ac_c_werror_flag" ||
98264
 
         test ! -s conftest.err
98265
 
       } && test -s conftest$ac_exeext && {
98266
 
         test "$cross_compiling" = yes ||
98267
 
         $as_test_x conftest$ac_exeext
98268
 
       }; then
98269
 
  ac_cv_lib_pq_PQclientEncoding=yes
98270
 
else
98271
 
  $as_echo "$as_me: failed program was:" >&5
98272
 
sed 's/^/| /' conftest.$ac_ext >&5
98273
 
 
98274
 
        ac_cv_lib_pq_PQclientEncoding=no
98275
 
fi
98276
 
 
98277
 
rm -rf conftest.dSYM
98278
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98279
 
      conftest$ac_exeext conftest.$ac_ext
98280
 
LIBS=$ac_check_lib_save_LIBS
98281
 
fi
98282
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQclientEncoding" >&5
98283
 
$as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; }
98284
 
if test "x$ac_cv_lib_pq_PQclientEncoding" = x""yes; then
98285
 
  
98286
 
cat >>confdefs.h <<\_ACEOF
98287
 
@%:@define HAVE_PQCLIENTENCODING 1
98288
 
_ACEOF
98289
 
 
98290
 
fi
98291
 
 
98292
 
  { $as_echo "$as_me:$LINENO: checking for PQparameterStatus in -lpq" >&5
98293
 
$as_echo_n "checking for PQparameterStatus in -lpq... " >&6; }
98294
 
if test "${ac_cv_lib_pq_PQparameterStatus+set}" = set; then
98295
 
  $as_echo_n "(cached) " >&6
98296
 
else
98297
 
  ac_check_lib_save_LIBS=$LIBS
98298
 
LIBS="-lpq  $LIBS"
98299
 
cat >conftest.$ac_ext <<_ACEOF
98300
 
/* confdefs.h.  */
98301
 
_ACEOF
98302
 
cat confdefs.h >>conftest.$ac_ext
98303
 
cat >>conftest.$ac_ext <<_ACEOF
98304
 
/* end confdefs.h.  */
98305
 
 
98306
 
/* Override any GCC internal prototype to avoid an error.
98307
 
   Use char because int might match the return type of a GCC
98308
 
   builtin and then its argument prototype would still apply.  */
98309
 
#ifdef __cplusplus
98310
 
extern "C"
98311
 
#endif
98312
 
char PQparameterStatus ();
98313
 
int
98314
 
main ()
98315
 
{
98316
 
return PQparameterStatus ();
98317
 
  ;
98318
 
  return 0;
98319
 
}
98320
 
_ACEOF
98321
 
rm -f conftest.$ac_objext conftest$ac_exeext
98322
 
if { (ac_try="$ac_link"
98323
 
case "(($ac_try" in
98324
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98325
 
  *) ac_try_echo=$ac_try;;
98326
 
esac
98327
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98328
 
$as_echo "$ac_try_echo") >&5
98329
 
  (eval "$ac_link") 2>conftest.er1
98330
 
  ac_status=$?
98331
 
  grep -v '^ *+' conftest.er1 >conftest.err
98332
 
  rm -f conftest.er1
98333
 
  cat conftest.err >&5
98334
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98335
 
  (exit $ac_status); } && {
98336
 
         test -z "$ac_c_werror_flag" ||
98337
 
         test ! -s conftest.err
98338
 
       } && test -s conftest$ac_exeext && {
98339
 
         test "$cross_compiling" = yes ||
98340
 
         $as_test_x conftest$ac_exeext
98341
 
       }; then
98342
 
  ac_cv_lib_pq_PQparameterStatus=yes
98343
 
else
98344
 
  $as_echo "$as_me: failed program was:" >&5
98345
 
sed 's/^/| /' conftest.$ac_ext >&5
98346
 
 
98347
 
        ac_cv_lib_pq_PQparameterStatus=no
98348
 
fi
98349
 
 
98350
 
rm -rf conftest.dSYM
98351
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98352
 
      conftest$ac_exeext conftest.$ac_ext
98353
 
LIBS=$ac_check_lib_save_LIBS
98354
 
fi
98355
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQparameterStatus" >&5
98356
 
$as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; }
98357
 
if test "x$ac_cv_lib_pq_PQparameterStatus" = x""yes; then
98358
 
  
98359
 
cat >>confdefs.h <<\_ACEOF
98360
 
@%:@define HAVE_PQPARAMETERSTATUS 1
98361
 
_ACEOF
98362
 
 
98363
 
fi
98364
 
 
98365
 
  { $as_echo "$as_me:$LINENO: checking for PQprotocolVersion in -lpq" >&5
98366
 
$as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; }
98367
 
if test "${ac_cv_lib_pq_PQprotocolVersion+set}" = set; then
98368
 
  $as_echo_n "(cached) " >&6
98369
 
else
98370
 
  ac_check_lib_save_LIBS=$LIBS
98371
 
LIBS="-lpq  $LIBS"
98372
 
cat >conftest.$ac_ext <<_ACEOF
98373
 
/* confdefs.h.  */
98374
 
_ACEOF
98375
 
cat confdefs.h >>conftest.$ac_ext
98376
 
cat >>conftest.$ac_ext <<_ACEOF
98377
 
/* end confdefs.h.  */
98378
 
 
98379
 
/* Override any GCC internal prototype to avoid an error.
98380
 
   Use char because int might match the return type of a GCC
98381
 
   builtin and then its argument prototype would still apply.  */
98382
 
#ifdef __cplusplus
98383
 
extern "C"
98384
 
#endif
98385
 
char PQprotocolVersion ();
98386
 
int
98387
 
main ()
98388
 
{
98389
 
return PQprotocolVersion ();
98390
 
  ;
98391
 
  return 0;
98392
 
}
98393
 
_ACEOF
98394
 
rm -f conftest.$ac_objext conftest$ac_exeext
98395
 
if { (ac_try="$ac_link"
98396
 
case "(($ac_try" in
98397
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98398
 
  *) ac_try_echo=$ac_try;;
98399
 
esac
98400
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98401
 
$as_echo "$ac_try_echo") >&5
98402
 
  (eval "$ac_link") 2>conftest.er1
98403
 
  ac_status=$?
98404
 
  grep -v '^ *+' conftest.er1 >conftest.err
98405
 
  rm -f conftest.er1
98406
 
  cat conftest.err >&5
98407
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98408
 
  (exit $ac_status); } && {
98409
 
         test -z "$ac_c_werror_flag" ||
98410
 
         test ! -s conftest.err
98411
 
       } && test -s conftest$ac_exeext && {
98412
 
         test "$cross_compiling" = yes ||
98413
 
         $as_test_x conftest$ac_exeext
98414
 
       }; then
98415
 
  ac_cv_lib_pq_PQprotocolVersion=yes
98416
 
else
98417
 
  $as_echo "$as_me: failed program was:" >&5
98418
 
sed 's/^/| /' conftest.$ac_ext >&5
98419
 
 
98420
 
        ac_cv_lib_pq_PQprotocolVersion=no
98421
 
fi
98422
 
 
98423
 
rm -rf conftest.dSYM
98424
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98425
 
      conftest$ac_exeext conftest.$ac_ext
98426
 
LIBS=$ac_check_lib_save_LIBS
98427
 
fi
98428
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQprotocolVersion" >&5
98429
 
$as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; }
98430
 
if test "x$ac_cv_lib_pq_PQprotocolVersion" = x""yes; then
98431
 
  
98432
 
cat >>confdefs.h <<\_ACEOF
98433
 
@%:@define HAVE_PQPROTOCOLVERSION 1
98434
 
_ACEOF
98435
 
 
98436
 
fi
98437
 
 
98438
 
  { $as_echo "$as_me:$LINENO: checking for PQtransactionStatus in -lpq" >&5
98439
 
$as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; }
98440
 
if test "${ac_cv_lib_pq_PQtransactionStatus+set}" = set; then
98441
 
  $as_echo_n "(cached) " >&6
98442
 
else
98443
 
  ac_check_lib_save_LIBS=$LIBS
98444
 
LIBS="-lpq  $LIBS"
98445
 
cat >conftest.$ac_ext <<_ACEOF
98446
 
/* confdefs.h.  */
98447
 
_ACEOF
98448
 
cat confdefs.h >>conftest.$ac_ext
98449
 
cat >>conftest.$ac_ext <<_ACEOF
98450
 
/* end confdefs.h.  */
98451
 
 
98452
 
/* Override any GCC internal prototype to avoid an error.
98453
 
   Use char because int might match the return type of a GCC
98454
 
   builtin and then its argument prototype would still apply.  */
98455
 
#ifdef __cplusplus
98456
 
extern "C"
98457
 
#endif
98458
 
char PQtransactionStatus ();
98459
 
int
98460
 
main ()
98461
 
{
98462
 
return PQtransactionStatus ();
98463
 
  ;
98464
 
  return 0;
98465
 
}
98466
 
_ACEOF
98467
 
rm -f conftest.$ac_objext conftest$ac_exeext
98468
 
if { (ac_try="$ac_link"
98469
 
case "(($ac_try" in
98470
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98471
 
  *) ac_try_echo=$ac_try;;
98472
 
esac
98473
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98474
 
$as_echo "$ac_try_echo") >&5
98475
 
  (eval "$ac_link") 2>conftest.er1
98476
 
  ac_status=$?
98477
 
  grep -v '^ *+' conftest.er1 >conftest.err
98478
 
  rm -f conftest.er1
98479
 
  cat conftest.err >&5
98480
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98481
 
  (exit $ac_status); } && {
98482
 
         test -z "$ac_c_werror_flag" ||
98483
 
         test ! -s conftest.err
98484
 
       } && test -s conftest$ac_exeext && {
98485
 
         test "$cross_compiling" = yes ||
98486
 
         $as_test_x conftest$ac_exeext
98487
 
       }; then
98488
 
  ac_cv_lib_pq_PQtransactionStatus=yes
98489
 
else
98490
 
  $as_echo "$as_me: failed program was:" >&5
98491
 
sed 's/^/| /' conftest.$ac_ext >&5
98492
 
 
98493
 
        ac_cv_lib_pq_PQtransactionStatus=no
98494
 
fi
98495
 
 
98496
 
rm -rf conftest.dSYM
98497
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98498
 
      conftest$ac_exeext conftest.$ac_ext
98499
 
LIBS=$ac_check_lib_save_LIBS
98500
 
fi
98501
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQtransactionStatus" >&5
98502
 
$as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; }
98503
 
if test "x$ac_cv_lib_pq_PQtransactionStatus" = x""yes; then
98504
 
  
98505
 
cat >>confdefs.h <<\_ACEOF
98506
 
@%:@define HAVE_PGTRANSACTIONSTATUS 1
98507
 
_ACEOF
98508
 
 
98509
 
fi
98510
 
 
98511
 
  { $as_echo "$as_me:$LINENO: checking for PQexecParams in -lpq" >&5
98512
 
$as_echo_n "checking for PQexecParams in -lpq... " >&6; }
98513
 
if test "${ac_cv_lib_pq_PQexecParams+set}" = set; then
98514
 
  $as_echo_n "(cached) " >&6
98515
 
else
98516
 
  ac_check_lib_save_LIBS=$LIBS
98517
 
LIBS="-lpq  $LIBS"
98518
 
cat >conftest.$ac_ext <<_ACEOF
98519
 
/* confdefs.h.  */
98520
 
_ACEOF
98521
 
cat confdefs.h >>conftest.$ac_ext
98522
 
cat >>conftest.$ac_ext <<_ACEOF
98523
 
/* end confdefs.h.  */
98524
 
 
98525
 
/* Override any GCC internal prototype to avoid an error.
98526
 
   Use char because int might match the return type of a GCC
98527
 
   builtin and then its argument prototype would still apply.  */
98528
 
#ifdef __cplusplus
98529
 
extern "C"
98530
 
#endif
98531
 
char PQexecParams ();
98532
 
int
98533
 
main ()
98534
 
{
98535
 
return PQexecParams ();
98536
 
  ;
98537
 
  return 0;
98538
 
}
98539
 
_ACEOF
98540
 
rm -f conftest.$ac_objext conftest$ac_exeext
98541
 
if { (ac_try="$ac_link"
98542
 
case "(($ac_try" in
98543
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98544
 
  *) ac_try_echo=$ac_try;;
98545
 
esac
98546
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98547
 
$as_echo "$ac_try_echo") >&5
98548
 
  (eval "$ac_link") 2>conftest.er1
98549
 
  ac_status=$?
98550
 
  grep -v '^ *+' conftest.er1 >conftest.err
98551
 
  rm -f conftest.er1
98552
 
  cat conftest.err >&5
98553
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98554
 
  (exit $ac_status); } && {
98555
 
         test -z "$ac_c_werror_flag" ||
98556
 
         test ! -s conftest.err
98557
 
       } && test -s conftest$ac_exeext && {
98558
 
         test "$cross_compiling" = yes ||
98559
 
         $as_test_x conftest$ac_exeext
98560
 
       }; then
98561
 
  ac_cv_lib_pq_PQexecParams=yes
98562
 
else
98563
 
  $as_echo "$as_me: failed program was:" >&5
98564
 
sed 's/^/| /' conftest.$ac_ext >&5
98565
 
 
98566
 
        ac_cv_lib_pq_PQexecParams=no
98567
 
fi
98568
 
 
98569
 
rm -rf conftest.dSYM
98570
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98571
 
      conftest$ac_exeext conftest.$ac_ext
98572
 
LIBS=$ac_check_lib_save_LIBS
98573
 
fi
98574
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexecParams" >&5
98575
 
$as_echo "$ac_cv_lib_pq_PQexecParams" >&6; }
98576
 
if test "x$ac_cv_lib_pq_PQexecParams" = x""yes; then
98577
 
  
98578
 
cat >>confdefs.h <<\_ACEOF
98579
 
@%:@define HAVE_PQEXECPARAMS 1
98580
 
_ACEOF
98581
 
 
98582
 
fi
98583
 
 
98584
 
  { $as_echo "$as_me:$LINENO: checking for PQprepare in -lpq" >&5
98585
 
$as_echo_n "checking for PQprepare in -lpq... " >&6; }
98586
 
if test "${ac_cv_lib_pq_PQprepare+set}" = set; then
98587
 
  $as_echo_n "(cached) " >&6
98588
 
else
98589
 
  ac_check_lib_save_LIBS=$LIBS
98590
 
LIBS="-lpq  $LIBS"
98591
 
cat >conftest.$ac_ext <<_ACEOF
98592
 
/* confdefs.h.  */
98593
 
_ACEOF
98594
 
cat confdefs.h >>conftest.$ac_ext
98595
 
cat >>conftest.$ac_ext <<_ACEOF
98596
 
/* end confdefs.h.  */
98597
 
 
98598
 
/* Override any GCC internal prototype to avoid an error.
98599
 
   Use char because int might match the return type of a GCC
98600
 
   builtin and then its argument prototype would still apply.  */
98601
 
#ifdef __cplusplus
98602
 
extern "C"
98603
 
#endif
98604
 
char PQprepare ();
98605
 
int
98606
 
main ()
98607
 
{
98608
 
return PQprepare ();
98609
 
  ;
98610
 
  return 0;
98611
 
}
98612
 
_ACEOF
98613
 
rm -f conftest.$ac_objext conftest$ac_exeext
98614
 
if { (ac_try="$ac_link"
98615
 
case "(($ac_try" in
98616
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98617
 
  *) ac_try_echo=$ac_try;;
98618
 
esac
98619
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98620
 
$as_echo "$ac_try_echo") >&5
98621
 
  (eval "$ac_link") 2>conftest.er1
98622
 
  ac_status=$?
98623
 
  grep -v '^ *+' conftest.er1 >conftest.err
98624
 
  rm -f conftest.er1
98625
 
  cat conftest.err >&5
98626
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98627
 
  (exit $ac_status); } && {
98628
 
         test -z "$ac_c_werror_flag" ||
98629
 
         test ! -s conftest.err
98630
 
       } && test -s conftest$ac_exeext && {
98631
 
         test "$cross_compiling" = yes ||
98632
 
         $as_test_x conftest$ac_exeext
98633
 
       }; then
98634
 
  ac_cv_lib_pq_PQprepare=yes
98635
 
else
98636
 
  $as_echo "$as_me: failed program was:" >&5
98637
 
sed 's/^/| /' conftest.$ac_ext >&5
98638
 
 
98639
 
        ac_cv_lib_pq_PQprepare=no
98640
 
fi
98641
 
 
98642
 
rm -rf conftest.dSYM
98643
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98644
 
      conftest$ac_exeext conftest.$ac_ext
98645
 
LIBS=$ac_check_lib_save_LIBS
98646
 
fi
98647
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQprepare" >&5
98648
 
$as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
98649
 
if test "x$ac_cv_lib_pq_PQprepare" = x""yes; then
98650
 
  
98651
 
cat >>confdefs.h <<\_ACEOF
98652
 
@%:@define HAVE_PQPREPARE 1
98653
 
_ACEOF
98654
 
 
98655
 
fi
98656
 
 
98657
 
  { $as_echo "$as_me:$LINENO: checking for PQexecPrepared in -lpq" >&5
98658
 
$as_echo_n "checking for PQexecPrepared in -lpq... " >&6; }
98659
 
if test "${ac_cv_lib_pq_PQexecPrepared+set}" = set; then
98660
 
  $as_echo_n "(cached) " >&6
98661
 
else
98662
 
  ac_check_lib_save_LIBS=$LIBS
98663
 
LIBS="-lpq  $LIBS"
98664
 
cat >conftest.$ac_ext <<_ACEOF
98665
 
/* confdefs.h.  */
98666
 
_ACEOF
98667
 
cat confdefs.h >>conftest.$ac_ext
98668
 
cat >>conftest.$ac_ext <<_ACEOF
98669
 
/* end confdefs.h.  */
98670
 
 
98671
 
/* Override any GCC internal prototype to avoid an error.
98672
 
   Use char because int might match the return type of a GCC
98673
 
   builtin and then its argument prototype would still apply.  */
98674
 
#ifdef __cplusplus
98675
 
extern "C"
98676
 
#endif
98677
 
char PQexecPrepared ();
98678
 
int
98679
 
main ()
98680
 
{
98681
 
return PQexecPrepared ();
98682
 
  ;
98683
 
  return 0;
98684
 
}
98685
 
_ACEOF
98686
 
rm -f conftest.$ac_objext conftest$ac_exeext
98687
 
if { (ac_try="$ac_link"
98688
 
case "(($ac_try" in
98689
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98690
 
  *) ac_try_echo=$ac_try;;
98691
 
esac
98692
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98693
 
$as_echo "$ac_try_echo") >&5
98694
 
  (eval "$ac_link") 2>conftest.er1
98695
 
  ac_status=$?
98696
 
  grep -v '^ *+' conftest.er1 >conftest.err
98697
 
  rm -f conftest.er1
98698
 
  cat conftest.err >&5
98699
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98700
 
  (exit $ac_status); } && {
98701
 
         test -z "$ac_c_werror_flag" ||
98702
 
         test ! -s conftest.err
98703
 
       } && test -s conftest$ac_exeext && {
98704
 
         test "$cross_compiling" = yes ||
98705
 
         $as_test_x conftest$ac_exeext
98706
 
       }; then
98707
 
  ac_cv_lib_pq_PQexecPrepared=yes
98708
 
else
98709
 
  $as_echo "$as_me: failed program was:" >&5
98710
 
sed 's/^/| /' conftest.$ac_ext >&5
98711
 
 
98712
 
        ac_cv_lib_pq_PQexecPrepared=no
98713
 
fi
98714
 
 
98715
 
rm -rf conftest.dSYM
98716
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98717
 
      conftest$ac_exeext conftest.$ac_ext
98718
 
LIBS=$ac_check_lib_save_LIBS
98719
 
fi
98720
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexecPrepared" >&5
98721
 
$as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; }
98722
 
if test "x$ac_cv_lib_pq_PQexecPrepared" = x""yes; then
98723
 
  
98724
 
cat >>confdefs.h <<\_ACEOF
98725
 
@%:@define HAVE_PQEXECPREPARED 1
98726
 
_ACEOF
98727
 
 
98728
 
fi
98729
 
 
98730
 
  { $as_echo "$as_me:$LINENO: checking for PQresultErrorField in -lpq" >&5
98731
 
$as_echo_n "checking for PQresultErrorField in -lpq... " >&6; }
98732
 
if test "${ac_cv_lib_pq_PQresultErrorField+set}" = set; then
98733
 
  $as_echo_n "(cached) " >&6
98734
 
else
98735
 
  ac_check_lib_save_LIBS=$LIBS
98736
 
LIBS="-lpq  $LIBS"
98737
 
cat >conftest.$ac_ext <<_ACEOF
98738
 
/* confdefs.h.  */
98739
 
_ACEOF
98740
 
cat confdefs.h >>conftest.$ac_ext
98741
 
cat >>conftest.$ac_ext <<_ACEOF
98742
 
/* end confdefs.h.  */
98743
 
 
98744
 
/* Override any GCC internal prototype to avoid an error.
98745
 
   Use char because int might match the return type of a GCC
98746
 
   builtin and then its argument prototype would still apply.  */
98747
 
#ifdef __cplusplus
98748
 
extern "C"
98749
 
#endif
98750
 
char PQresultErrorField ();
98751
 
int
98752
 
main ()
98753
 
{
98754
 
return PQresultErrorField ();
98755
 
  ;
98756
 
  return 0;
98757
 
}
98758
 
_ACEOF
98759
 
rm -f conftest.$ac_objext conftest$ac_exeext
98760
 
if { (ac_try="$ac_link"
98761
 
case "(($ac_try" in
98762
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98763
 
  *) ac_try_echo=$ac_try;;
98764
 
esac
98765
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98766
 
$as_echo "$ac_try_echo") >&5
98767
 
  (eval "$ac_link") 2>conftest.er1
98768
 
  ac_status=$?
98769
 
  grep -v '^ *+' conftest.er1 >conftest.err
98770
 
  rm -f conftest.er1
98771
 
  cat conftest.err >&5
98772
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98773
 
  (exit $ac_status); } && {
98774
 
         test -z "$ac_c_werror_flag" ||
98775
 
         test ! -s conftest.err
98776
 
       } && test -s conftest$ac_exeext && {
98777
 
         test "$cross_compiling" = yes ||
98778
 
         $as_test_x conftest$ac_exeext
98779
 
       }; then
98780
 
  ac_cv_lib_pq_PQresultErrorField=yes
98781
 
else
98782
 
  $as_echo "$as_me: failed program was:" >&5
98783
 
sed 's/^/| /' conftest.$ac_ext >&5
98784
 
 
98785
 
        ac_cv_lib_pq_PQresultErrorField=no
98786
 
fi
98787
 
 
98788
 
rm -rf conftest.dSYM
98789
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98790
 
      conftest$ac_exeext conftest.$ac_ext
98791
 
LIBS=$ac_check_lib_save_LIBS
98792
 
fi
98793
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQresultErrorField" >&5
98794
 
$as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; }
98795
 
if test "x$ac_cv_lib_pq_PQresultErrorField" = x""yes; then
98796
 
  
98797
 
cat >>confdefs.h <<\_ACEOF
98798
 
@%:@define HAVE_PQRESULTERRORFIELD 1
98799
 
_ACEOF
98800
 
 
98801
 
fi
98802
 
 
98803
 
  { $as_echo "$as_me:$LINENO: checking for PQsendQueryParams in -lpq" >&5
98804
 
$as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; }
98805
 
if test "${ac_cv_lib_pq_PQsendQueryParams+set}" = set; then
98806
 
  $as_echo_n "(cached) " >&6
98807
 
else
98808
 
  ac_check_lib_save_LIBS=$LIBS
98809
 
LIBS="-lpq  $LIBS"
98810
 
cat >conftest.$ac_ext <<_ACEOF
98811
 
/* confdefs.h.  */
98812
 
_ACEOF
98813
 
cat confdefs.h >>conftest.$ac_ext
98814
 
cat >>conftest.$ac_ext <<_ACEOF
98815
 
/* end confdefs.h.  */
98816
 
 
98817
 
/* Override any GCC internal prototype to avoid an error.
98818
 
   Use char because int might match the return type of a GCC
98819
 
   builtin and then its argument prototype would still apply.  */
98820
 
#ifdef __cplusplus
98821
 
extern "C"
98822
 
#endif
98823
 
char PQsendQueryParams ();
98824
 
int
98825
 
main ()
98826
 
{
98827
 
return PQsendQueryParams ();
98828
 
  ;
98829
 
  return 0;
98830
 
}
98831
 
_ACEOF
98832
 
rm -f conftest.$ac_objext conftest$ac_exeext
98833
 
if { (ac_try="$ac_link"
98834
 
case "(($ac_try" in
98835
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98836
 
  *) ac_try_echo=$ac_try;;
98837
 
esac
98838
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98839
 
$as_echo "$ac_try_echo") >&5
98840
 
  (eval "$ac_link") 2>conftest.er1
98841
 
  ac_status=$?
98842
 
  grep -v '^ *+' conftest.er1 >conftest.err
98843
 
  rm -f conftest.er1
98844
 
  cat conftest.err >&5
98845
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98846
 
  (exit $ac_status); } && {
98847
 
         test -z "$ac_c_werror_flag" ||
98848
 
         test ! -s conftest.err
98849
 
       } && test -s conftest$ac_exeext && {
98850
 
         test "$cross_compiling" = yes ||
98851
 
         $as_test_x conftest$ac_exeext
98852
 
       }; then
98853
 
  ac_cv_lib_pq_PQsendQueryParams=yes
98854
 
else
98855
 
  $as_echo "$as_me: failed program was:" >&5
98856
 
sed 's/^/| /' conftest.$ac_ext >&5
98857
 
 
98858
 
        ac_cv_lib_pq_PQsendQueryParams=no
98859
 
fi
98860
 
 
98861
 
rm -rf conftest.dSYM
98862
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98863
 
      conftest$ac_exeext conftest.$ac_ext
98864
 
LIBS=$ac_check_lib_save_LIBS
98865
 
fi
98866
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendQueryParams" >&5
98867
 
$as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; }
98868
 
if test "x$ac_cv_lib_pq_PQsendQueryParams" = x""yes; then
98869
 
  
98870
 
cat >>confdefs.h <<\_ACEOF
98871
 
@%:@define HAVE_PQSENDQUERYPARAMS 1
98872
 
_ACEOF
98873
 
 
98874
 
fi
98875
 
 
98876
 
  { $as_echo "$as_me:$LINENO: checking for PQsendPrepare in -lpq" >&5
98877
 
$as_echo_n "checking for PQsendPrepare in -lpq... " >&6; }
98878
 
if test "${ac_cv_lib_pq_PQsendPrepare+set}" = set; then
98879
 
  $as_echo_n "(cached) " >&6
98880
 
else
98881
 
  ac_check_lib_save_LIBS=$LIBS
98882
 
LIBS="-lpq  $LIBS"
98883
 
cat >conftest.$ac_ext <<_ACEOF
98884
 
/* confdefs.h.  */
98885
 
_ACEOF
98886
 
cat confdefs.h >>conftest.$ac_ext
98887
 
cat >>conftest.$ac_ext <<_ACEOF
98888
 
/* end confdefs.h.  */
98889
 
 
98890
 
/* Override any GCC internal prototype to avoid an error.
98891
 
   Use char because int might match the return type of a GCC
98892
 
   builtin and then its argument prototype would still apply.  */
98893
 
#ifdef __cplusplus
98894
 
extern "C"
98895
 
#endif
98896
 
char PQsendPrepare ();
98897
 
int
98898
 
main ()
98899
 
{
98900
 
return PQsendPrepare ();
98901
 
  ;
98902
 
  return 0;
98903
 
}
98904
 
_ACEOF
98905
 
rm -f conftest.$ac_objext conftest$ac_exeext
98906
 
if { (ac_try="$ac_link"
98907
 
case "(($ac_try" in
98908
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98909
 
  *) ac_try_echo=$ac_try;;
98910
 
esac
98911
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98912
 
$as_echo "$ac_try_echo") >&5
98913
 
  (eval "$ac_link") 2>conftest.er1
98914
 
  ac_status=$?
98915
 
  grep -v '^ *+' conftest.er1 >conftest.err
98916
 
  rm -f conftest.er1
98917
 
  cat conftest.err >&5
98918
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98919
 
  (exit $ac_status); } && {
98920
 
         test -z "$ac_c_werror_flag" ||
98921
 
         test ! -s conftest.err
98922
 
       } && test -s conftest$ac_exeext && {
98923
 
         test "$cross_compiling" = yes ||
98924
 
         $as_test_x conftest$ac_exeext
98925
 
       }; then
98926
 
  ac_cv_lib_pq_PQsendPrepare=yes
98927
 
else
98928
 
  $as_echo "$as_me: failed program was:" >&5
98929
 
sed 's/^/| /' conftest.$ac_ext >&5
98930
 
 
98931
 
        ac_cv_lib_pq_PQsendPrepare=no
98932
 
fi
98933
 
 
98934
 
rm -rf conftest.dSYM
98935
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98936
 
      conftest$ac_exeext conftest.$ac_ext
98937
 
LIBS=$ac_check_lib_save_LIBS
98938
 
fi
98939
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendPrepare" >&5
98940
 
$as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; }
98941
 
if test "x$ac_cv_lib_pq_PQsendPrepare" = x""yes; then
98942
 
  
98943
 
cat >>confdefs.h <<\_ACEOF
98944
 
@%:@define HAVE_PQSENDPREPARE 1
98945
 
_ACEOF
98946
 
 
98947
 
fi
98948
 
 
98949
 
  { $as_echo "$as_me:$LINENO: checking for PQsendQueryPrepared in -lpq" >&5
98950
 
$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
98951
 
if test "${ac_cv_lib_pq_PQsendQueryPrepared+set}" = set; then
98952
 
  $as_echo_n "(cached) " >&6
98953
 
else
98954
 
  ac_check_lib_save_LIBS=$LIBS
98955
 
LIBS="-lpq  $LIBS"
98956
 
cat >conftest.$ac_ext <<_ACEOF
98957
 
/* confdefs.h.  */
98958
 
_ACEOF
98959
 
cat confdefs.h >>conftest.$ac_ext
98960
 
cat >>conftest.$ac_ext <<_ACEOF
98961
 
/* end confdefs.h.  */
98962
 
 
98963
 
/* Override any GCC internal prototype to avoid an error.
98964
 
   Use char because int might match the return type of a GCC
98965
 
   builtin and then its argument prototype would still apply.  */
98966
 
#ifdef __cplusplus
98967
 
extern "C"
98968
 
#endif
98969
 
char PQsendQueryPrepared ();
98970
 
int
98971
 
main ()
98972
 
{
98973
 
return PQsendQueryPrepared ();
98974
 
  ;
98975
 
  return 0;
98976
 
}
98977
 
_ACEOF
98978
 
rm -f conftest.$ac_objext conftest$ac_exeext
98979
 
if { (ac_try="$ac_link"
98980
 
case "(($ac_try" in
98981
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98982
 
  *) ac_try_echo=$ac_try;;
98983
 
esac
98984
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98985
 
$as_echo "$ac_try_echo") >&5
98986
 
  (eval "$ac_link") 2>conftest.er1
98987
 
  ac_status=$?
98988
 
  grep -v '^ *+' conftest.er1 >conftest.err
98989
 
  rm -f conftest.er1
98990
 
  cat conftest.err >&5
98991
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98992
 
  (exit $ac_status); } && {
98993
 
         test -z "$ac_c_werror_flag" ||
98994
 
         test ! -s conftest.err
98995
 
       } && test -s conftest$ac_exeext && {
98996
 
         test "$cross_compiling" = yes ||
98997
 
         $as_test_x conftest$ac_exeext
98998
 
       }; then
98999
 
  ac_cv_lib_pq_PQsendQueryPrepared=yes
99000
 
else
99001
 
  $as_echo "$as_me: failed program was:" >&5
99002
 
sed 's/^/| /' conftest.$ac_ext >&5
99003
 
 
99004
 
        ac_cv_lib_pq_PQsendQueryPrepared=no
99005
 
fi
99006
 
 
99007
 
rm -rf conftest.dSYM
99008
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99009
 
      conftest$ac_exeext conftest.$ac_ext
99010
 
LIBS=$ac_check_lib_save_LIBS
99011
 
fi
99012
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
99013
 
$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
99014
 
if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = x""yes; then
99015
 
  
99016
 
cat >>confdefs.h <<\_ACEOF
99017
 
@%:@define HAVE_PQSENDQUERYPREPARED 1
99018
 
_ACEOF
99019
 
 
99020
 
fi
99021
 
 
99022
 
  { $as_echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
99023
 
$as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
99024
 
if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
99025
 
  $as_echo_n "(cached) " >&6
99026
 
else
99027
 
  ac_check_lib_save_LIBS=$LIBS
99028
 
LIBS="-lpq  $LIBS"
99029
 
cat >conftest.$ac_ext <<_ACEOF
99030
 
/* confdefs.h.  */
99031
 
_ACEOF
99032
 
cat confdefs.h >>conftest.$ac_ext
99033
 
cat >>conftest.$ac_ext <<_ACEOF
99034
 
/* end confdefs.h.  */
99035
 
 
99036
 
/* Override any GCC internal prototype to avoid an error.
99037
 
   Use char because int might match the return type of a GCC
99038
 
   builtin and then its argument prototype would still apply.  */
99039
 
#ifdef __cplusplus
99040
 
extern "C"
99041
 
#endif
99042
 
char PQputCopyData ();
99043
 
int
99044
 
main ()
99045
 
{
99046
 
return PQputCopyData ();
99047
 
  ;
99048
 
  return 0;
99049
 
}
99050
 
_ACEOF
99051
 
rm -f conftest.$ac_objext conftest$ac_exeext
99052
 
if { (ac_try="$ac_link"
99053
 
case "(($ac_try" in
99054
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99055
 
  *) ac_try_echo=$ac_try;;
99056
 
esac
99057
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99058
 
$as_echo "$ac_try_echo") >&5
99059
 
  (eval "$ac_link") 2>conftest.er1
99060
 
  ac_status=$?
99061
 
  grep -v '^ *+' conftest.er1 >conftest.err
99062
 
  rm -f conftest.er1
99063
 
  cat conftest.err >&5
99064
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99065
 
  (exit $ac_status); } && {
99066
 
         test -z "$ac_c_werror_flag" ||
99067
 
         test ! -s conftest.err
99068
 
       } && test -s conftest$ac_exeext && {
99069
 
         test "$cross_compiling" = yes ||
99070
 
         $as_test_x conftest$ac_exeext
99071
 
       }; then
99072
 
  ac_cv_lib_pq_PQputCopyData=yes
99073
 
else
99074
 
  $as_echo "$as_me: failed program was:" >&5
99075
 
sed 's/^/| /' conftest.$ac_ext >&5
99076
 
 
99077
 
        ac_cv_lib_pq_PQputCopyData=no
99078
 
fi
99079
 
 
99080
 
rm -rf conftest.dSYM
99081
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99082
 
      conftest$ac_exeext conftest.$ac_ext
99083
 
LIBS=$ac_check_lib_save_LIBS
99084
 
fi
99085
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
99086
 
$as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
99087
 
if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then
99088
 
  
99089
 
cat >>confdefs.h <<\_ACEOF
99090
 
@%:@define HAVE_PQPUTCOPYDATA 1
99091
 
_ACEOF
99092
 
 
99093
 
fi
99094
 
 
99095
 
  { $as_echo "$as_me:$LINENO: checking for PQputCopyEnd in -lpq" >&5
99096
 
$as_echo_n "checking for PQputCopyEnd in -lpq... " >&6; }
99097
 
if test "${ac_cv_lib_pq_PQputCopyEnd+set}" = set; then
99098
 
  $as_echo_n "(cached) " >&6
99099
 
else
99100
 
  ac_check_lib_save_LIBS=$LIBS
99101
 
LIBS="-lpq  $LIBS"
99102
 
cat >conftest.$ac_ext <<_ACEOF
99103
 
/* confdefs.h.  */
99104
 
_ACEOF
99105
 
cat confdefs.h >>conftest.$ac_ext
99106
 
cat >>conftest.$ac_ext <<_ACEOF
99107
 
/* end confdefs.h.  */
99108
 
 
99109
 
/* Override any GCC internal prototype to avoid an error.
99110
 
   Use char because int might match the return type of a GCC
99111
 
   builtin and then its argument prototype would still apply.  */
99112
 
#ifdef __cplusplus
99113
 
extern "C"
99114
 
#endif
99115
 
char PQputCopyEnd ();
99116
 
int
99117
 
main ()
99118
 
{
99119
 
return PQputCopyEnd ();
99120
 
  ;
99121
 
  return 0;
99122
 
}
99123
 
_ACEOF
99124
 
rm -f conftest.$ac_objext conftest$ac_exeext
99125
 
if { (ac_try="$ac_link"
99126
 
case "(($ac_try" in
99127
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99128
 
  *) ac_try_echo=$ac_try;;
99129
 
esac
99130
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99131
 
$as_echo "$ac_try_echo") >&5
99132
 
  (eval "$ac_link") 2>conftest.er1
99133
 
  ac_status=$?
99134
 
  grep -v '^ *+' conftest.er1 >conftest.err
99135
 
  rm -f conftest.er1
99136
 
  cat conftest.err >&5
99137
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99138
 
  (exit $ac_status); } && {
99139
 
         test -z "$ac_c_werror_flag" ||
99140
 
         test ! -s conftest.err
99141
 
       } && test -s conftest$ac_exeext && {
99142
 
         test "$cross_compiling" = yes ||
99143
 
         $as_test_x conftest$ac_exeext
99144
 
       }; then
99145
 
  ac_cv_lib_pq_PQputCopyEnd=yes
99146
 
else
99147
 
  $as_echo "$as_me: failed program was:" >&5
99148
 
sed 's/^/| /' conftest.$ac_ext >&5
99149
 
 
99150
 
        ac_cv_lib_pq_PQputCopyEnd=no
99151
 
fi
99152
 
 
99153
 
rm -rf conftest.dSYM
99154
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99155
 
      conftest$ac_exeext conftest.$ac_ext
99156
 
LIBS=$ac_check_lib_save_LIBS
99157
 
fi
99158
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyEnd" >&5
99159
 
$as_echo "$ac_cv_lib_pq_PQputCopyEnd" >&6; }
99160
 
if test "x$ac_cv_lib_pq_PQputCopyEnd" = x""yes; then
99161
 
  
99162
 
cat >>confdefs.h <<\_ACEOF
99163
 
@%:@define HAVE_PQPUTCOPYEND 1
99164
 
_ACEOF
99165
 
 
99166
 
fi
99167
 
 
99168
 
  { $as_echo "$as_me:$LINENO: checking for PQgetCopyData in -lpq" >&5
99169
 
$as_echo_n "checking for PQgetCopyData in -lpq... " >&6; }
99170
 
if test "${ac_cv_lib_pq_PQgetCopyData+set}" = set; then
99171
 
  $as_echo_n "(cached) " >&6
99172
 
else
99173
 
  ac_check_lib_save_LIBS=$LIBS
99174
 
LIBS="-lpq  $LIBS"
99175
 
cat >conftest.$ac_ext <<_ACEOF
99176
 
/* confdefs.h.  */
99177
 
_ACEOF
99178
 
cat confdefs.h >>conftest.$ac_ext
99179
 
cat >>conftest.$ac_ext <<_ACEOF
99180
 
/* end confdefs.h.  */
99181
 
 
99182
 
/* Override any GCC internal prototype to avoid an error.
99183
 
   Use char because int might match the return type of a GCC
99184
 
   builtin and then its argument prototype would still apply.  */
99185
 
#ifdef __cplusplus
99186
 
extern "C"
99187
 
#endif
99188
 
char PQgetCopyData ();
99189
 
int
99190
 
main ()
99191
 
{
99192
 
return PQgetCopyData ();
99193
 
  ;
99194
 
  return 0;
99195
 
}
99196
 
_ACEOF
99197
 
rm -f conftest.$ac_objext conftest$ac_exeext
99198
 
if { (ac_try="$ac_link"
99199
 
case "(($ac_try" in
99200
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99201
 
  *) ac_try_echo=$ac_try;;
99202
 
esac
99203
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99204
 
$as_echo "$ac_try_echo") >&5
99205
 
  (eval "$ac_link") 2>conftest.er1
99206
 
  ac_status=$?
99207
 
  grep -v '^ *+' conftest.er1 >conftest.err
99208
 
  rm -f conftest.er1
99209
 
  cat conftest.err >&5
99210
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99211
 
  (exit $ac_status); } && {
99212
 
         test -z "$ac_c_werror_flag" ||
99213
 
         test ! -s conftest.err
99214
 
       } && test -s conftest$ac_exeext && {
99215
 
         test "$cross_compiling" = yes ||
99216
 
         $as_test_x conftest$ac_exeext
99217
 
       }; then
99218
 
  ac_cv_lib_pq_PQgetCopyData=yes
99219
 
else
99220
 
  $as_echo "$as_me: failed program was:" >&5
99221
 
sed 's/^/| /' conftest.$ac_ext >&5
99222
 
 
99223
 
        ac_cv_lib_pq_PQgetCopyData=no
99224
 
fi
99225
 
 
99226
 
rm -rf conftest.dSYM
99227
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99228
 
      conftest$ac_exeext conftest.$ac_ext
99229
 
LIBS=$ac_check_lib_save_LIBS
99230
 
fi
99231
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQgetCopyData" >&5
99232
 
$as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; }
99233
 
if test "x$ac_cv_lib_pq_PQgetCopyData" = x""yes; then
99234
 
  
99235
 
cat >>confdefs.h <<\_ACEOF
99236
 
@%:@define HAVE_PQGETCOPYDATA 1
99237
 
_ACEOF
99238
 
 
99239
 
fi
99240
 
 
99241
 
  { $as_echo "$as_me:$LINENO: checking for PQfreemem in -lpq" >&5
99242
 
$as_echo_n "checking for PQfreemem in -lpq... " >&6; }
99243
 
if test "${ac_cv_lib_pq_PQfreemem+set}" = set; then
99244
 
  $as_echo_n "(cached) " >&6
99245
 
else
99246
 
  ac_check_lib_save_LIBS=$LIBS
99247
 
LIBS="-lpq  $LIBS"
99248
 
cat >conftest.$ac_ext <<_ACEOF
99249
 
/* confdefs.h.  */
99250
 
_ACEOF
99251
 
cat confdefs.h >>conftest.$ac_ext
99252
 
cat >>conftest.$ac_ext <<_ACEOF
99253
 
/* end confdefs.h.  */
99254
 
 
99255
 
/* Override any GCC internal prototype to avoid an error.
99256
 
   Use char because int might match the return type of a GCC
99257
 
   builtin and then its argument prototype would still apply.  */
99258
 
#ifdef __cplusplus
99259
 
extern "C"
99260
 
#endif
99261
 
char PQfreemem ();
99262
 
int
99263
 
main ()
99264
 
{
99265
 
return PQfreemem ();
99266
 
  ;
99267
 
  return 0;
99268
 
}
99269
 
_ACEOF
99270
 
rm -f conftest.$ac_objext conftest$ac_exeext
99271
 
if { (ac_try="$ac_link"
99272
 
case "(($ac_try" in
99273
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99274
 
  *) ac_try_echo=$ac_try;;
99275
 
esac
99276
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99277
 
$as_echo "$ac_try_echo") >&5
99278
 
  (eval "$ac_link") 2>conftest.er1
99279
 
  ac_status=$?
99280
 
  grep -v '^ *+' conftest.er1 >conftest.err
99281
 
  rm -f conftest.er1
99282
 
  cat conftest.err >&5
99283
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99284
 
  (exit $ac_status); } && {
99285
 
         test -z "$ac_c_werror_flag" ||
99286
 
         test ! -s conftest.err
99287
 
       } && test -s conftest$ac_exeext && {
99288
 
         test "$cross_compiling" = yes ||
99289
 
         $as_test_x conftest$ac_exeext
99290
 
       }; then
99291
 
  ac_cv_lib_pq_PQfreemem=yes
99292
 
else
99293
 
  $as_echo "$as_me: failed program was:" >&5
99294
 
sed 's/^/| /' conftest.$ac_ext >&5
99295
 
 
99296
 
        ac_cv_lib_pq_PQfreemem=no
99297
 
fi
99298
 
 
99299
 
rm -rf conftest.dSYM
99300
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99301
 
      conftest$ac_exeext conftest.$ac_ext
99302
 
LIBS=$ac_check_lib_save_LIBS
99303
 
fi
99304
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQfreemem" >&5
99305
 
$as_echo "$ac_cv_lib_pq_PQfreemem" >&6; }
99306
 
if test "x$ac_cv_lib_pq_PQfreemem" = x""yes; then
99307
 
  
99308
 
cat >>confdefs.h <<\_ACEOF
99309
 
@%:@define HAVE_PQFREEMEM 1
99310
 
_ACEOF
99311
 
 
99312
 
fi
99313
 
 
99314
 
  { $as_echo "$as_me:$LINENO: checking for PQsetErrorVerbosity in -lpq" >&5
99315
 
$as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; }
99316
 
if test "${ac_cv_lib_pq_PQsetErrorVerbosity+set}" = set; then
99317
 
  $as_echo_n "(cached) " >&6
99318
 
else
99319
 
  ac_check_lib_save_LIBS=$LIBS
99320
 
LIBS="-lpq  $LIBS"
99321
 
cat >conftest.$ac_ext <<_ACEOF
99322
 
/* confdefs.h.  */
99323
 
_ACEOF
99324
 
cat confdefs.h >>conftest.$ac_ext
99325
 
cat >>conftest.$ac_ext <<_ACEOF
99326
 
/* end confdefs.h.  */
99327
 
 
99328
 
/* Override any GCC internal prototype to avoid an error.
99329
 
   Use char because int might match the return type of a GCC
99330
 
   builtin and then its argument prototype would still apply.  */
99331
 
#ifdef __cplusplus
99332
 
extern "C"
99333
 
#endif
99334
 
char PQsetErrorVerbosity ();
99335
 
int
99336
 
main ()
99337
 
{
99338
 
return PQsetErrorVerbosity ();
99339
 
  ;
99340
 
  return 0;
99341
 
}
99342
 
_ACEOF
99343
 
rm -f conftest.$ac_objext conftest$ac_exeext
99344
 
if { (ac_try="$ac_link"
99345
 
case "(($ac_try" in
99346
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99347
 
  *) ac_try_echo=$ac_try;;
99348
 
esac
99349
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99350
 
$as_echo "$ac_try_echo") >&5
99351
 
  (eval "$ac_link") 2>conftest.er1
99352
 
  ac_status=$?
99353
 
  grep -v '^ *+' conftest.er1 >conftest.err
99354
 
  rm -f conftest.er1
99355
 
  cat conftest.err >&5
99356
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99357
 
  (exit $ac_status); } && {
99358
 
         test -z "$ac_c_werror_flag" ||
99359
 
         test ! -s conftest.err
99360
 
       } && test -s conftest$ac_exeext && {
99361
 
         test "$cross_compiling" = yes ||
99362
 
         $as_test_x conftest$ac_exeext
99363
 
       }; then
99364
 
  ac_cv_lib_pq_PQsetErrorVerbosity=yes
99365
 
else
99366
 
  $as_echo "$as_me: failed program was:" >&5
99367
 
sed 's/^/| /' conftest.$ac_ext >&5
99368
 
 
99369
 
        ac_cv_lib_pq_PQsetErrorVerbosity=no
99370
 
fi
99371
 
 
99372
 
rm -rf conftest.dSYM
99373
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99374
 
      conftest$ac_exeext conftest.$ac_ext
99375
 
LIBS=$ac_check_lib_save_LIBS
99376
 
fi
99377
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5
99378
 
$as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; }
99379
 
if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = x""yes; then
99380
 
  
99381
 
cat >>confdefs.h <<\_ACEOF
99382
 
@%:@define HAVE_PQSETERRORVERBOSITY 1
99383
 
_ACEOF
99384
 
 
99385
 
fi
99386
 
 
99387
 
  { $as_echo "$as_me:$LINENO: checking for PQftable in -lpq" >&5
99388
 
$as_echo_n "checking for PQftable in -lpq... " >&6; }
99389
 
if test "${ac_cv_lib_pq_PQftable+set}" = set; then
99390
 
  $as_echo_n "(cached) " >&6
99391
 
else
99392
 
  ac_check_lib_save_LIBS=$LIBS
99393
 
LIBS="-lpq  $LIBS"
99394
 
cat >conftest.$ac_ext <<_ACEOF
99395
 
/* confdefs.h.  */
99396
 
_ACEOF
99397
 
cat confdefs.h >>conftest.$ac_ext
99398
 
cat >>conftest.$ac_ext <<_ACEOF
99399
 
/* end confdefs.h.  */
99400
 
 
99401
 
/* Override any GCC internal prototype to avoid an error.
99402
 
   Use char because int might match the return type of a GCC
99403
 
   builtin and then its argument prototype would still apply.  */
99404
 
#ifdef __cplusplus
99405
 
extern "C"
99406
 
#endif
99407
 
char PQftable ();
99408
 
int
99409
 
main ()
99410
 
{
99411
 
return PQftable ();
99412
 
  ;
99413
 
  return 0;
99414
 
}
99415
 
_ACEOF
99416
 
rm -f conftest.$ac_objext conftest$ac_exeext
99417
 
if { (ac_try="$ac_link"
99418
 
case "(($ac_try" in
99419
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99420
 
  *) ac_try_echo=$ac_try;;
99421
 
esac
99422
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99423
 
$as_echo "$ac_try_echo") >&5
99424
 
  (eval "$ac_link") 2>conftest.er1
99425
 
  ac_status=$?
99426
 
  grep -v '^ *+' conftest.er1 >conftest.err
99427
 
  rm -f conftest.er1
99428
 
  cat conftest.err >&5
99429
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99430
 
  (exit $ac_status); } && {
99431
 
         test -z "$ac_c_werror_flag" ||
99432
 
         test ! -s conftest.err
99433
 
       } && test -s conftest$ac_exeext && {
99434
 
         test "$cross_compiling" = yes ||
99435
 
         $as_test_x conftest$ac_exeext
99436
 
       }; then
99437
 
  ac_cv_lib_pq_PQftable=yes
99438
 
else
99439
 
  $as_echo "$as_me: failed program was:" >&5
99440
 
sed 's/^/| /' conftest.$ac_ext >&5
99441
 
 
99442
 
        ac_cv_lib_pq_PQftable=no
99443
 
fi
99444
 
 
99445
 
rm -rf conftest.dSYM
99446
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99447
 
      conftest$ac_exeext conftest.$ac_ext
99448
 
LIBS=$ac_check_lib_save_LIBS
99449
 
fi
99450
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQftable" >&5
99451
 
$as_echo "$ac_cv_lib_pq_PQftable" >&6; }
99452
 
if test "x$ac_cv_lib_pq_PQftable" = x""yes; then
99453
 
  
99454
 
cat >>confdefs.h <<\_ACEOF
99455
 
@%:@define HAVE_PQFTABLE 1
99456
 
_ACEOF
99457
 
 
99458
 
fi
99459
 
 
99460
 
  { $as_echo "$as_me:$LINENO: checking for PQescapeStringConn in -lpq" >&5
99461
 
$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
99462
 
if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then
99463
 
  $as_echo_n "(cached) " >&6
99464
 
else
99465
 
  ac_check_lib_save_LIBS=$LIBS
99466
 
LIBS="-lpq  $LIBS"
99467
 
cat >conftest.$ac_ext <<_ACEOF
99468
 
/* confdefs.h.  */
99469
 
_ACEOF
99470
 
cat confdefs.h >>conftest.$ac_ext
99471
 
cat >>conftest.$ac_ext <<_ACEOF
99472
 
/* end confdefs.h.  */
99473
 
 
99474
 
/* Override any GCC internal prototype to avoid an error.
99475
 
   Use char because int might match the return type of a GCC
99476
 
   builtin and then its argument prototype would still apply.  */
99477
 
#ifdef __cplusplus
99478
 
extern "C"
99479
 
#endif
99480
 
char PQescapeStringConn ();
99481
 
int
99482
 
main ()
99483
 
{
99484
 
return PQescapeStringConn ();
99485
 
  ;
99486
 
  return 0;
99487
 
}
99488
 
_ACEOF
99489
 
rm -f conftest.$ac_objext conftest$ac_exeext
99490
 
if { (ac_try="$ac_link"
99491
 
case "(($ac_try" in
99492
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99493
 
  *) ac_try_echo=$ac_try;;
99494
 
esac
99495
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99496
 
$as_echo "$ac_try_echo") >&5
99497
 
  (eval "$ac_link") 2>conftest.er1
99498
 
  ac_status=$?
99499
 
  grep -v '^ *+' conftest.er1 >conftest.err
99500
 
  rm -f conftest.er1
99501
 
  cat conftest.err >&5
99502
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99503
 
  (exit $ac_status); } && {
99504
 
         test -z "$ac_c_werror_flag" ||
99505
 
         test ! -s conftest.err
99506
 
       } && test -s conftest$ac_exeext && {
99507
 
         test "$cross_compiling" = yes ||
99508
 
         $as_test_x conftest$ac_exeext
99509
 
       }; then
99510
 
  ac_cv_lib_pq_PQescapeStringConn=yes
99511
 
else
99512
 
  $as_echo "$as_me: failed program was:" >&5
99513
 
sed 's/^/| /' conftest.$ac_ext >&5
99514
 
 
99515
 
        ac_cv_lib_pq_PQescapeStringConn=no
99516
 
fi
99517
 
 
99518
 
rm -rf conftest.dSYM
99519
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99520
 
      conftest$ac_exeext conftest.$ac_ext
99521
 
LIBS=$ac_check_lib_save_LIBS
99522
 
fi
99523
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
99524
 
$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
99525
 
if test "x$ac_cv_lib_pq_PQescapeStringConn" = x""yes; then
99526
 
  
99527
 
cat >>confdefs.h <<\_ACEOF
99528
 
@%:@define HAVE_PQESCAPE_CONN 1
99529
 
_ACEOF
99530
 
 
99531
 
fi
99532
 
 
99533
 
  { $as_echo "$as_me:$LINENO: checking for PQescapeByteaConn in -lpq" >&5
99534
 
$as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
99535
 
if test "${ac_cv_lib_pq_PQescapeByteaConn+set}" = set; then
99536
 
  $as_echo_n "(cached) " >&6
99537
 
else
99538
 
  ac_check_lib_save_LIBS=$LIBS
99539
 
LIBS="-lpq  $LIBS"
99540
 
cat >conftest.$ac_ext <<_ACEOF
99541
 
/* confdefs.h.  */
99542
 
_ACEOF
99543
 
cat confdefs.h >>conftest.$ac_ext
99544
 
cat >>conftest.$ac_ext <<_ACEOF
99545
 
/* end confdefs.h.  */
99546
 
 
99547
 
/* Override any GCC internal prototype to avoid an error.
99548
 
   Use char because int might match the return type of a GCC
99549
 
   builtin and then its argument prototype would still apply.  */
99550
 
#ifdef __cplusplus
99551
 
extern "C"
99552
 
#endif
99553
 
char PQescapeByteaConn ();
99554
 
int
99555
 
main ()
99556
 
{
99557
 
return PQescapeByteaConn ();
99558
 
  ;
99559
 
  return 0;
99560
 
}
99561
 
_ACEOF
99562
 
rm -f conftest.$ac_objext conftest$ac_exeext
99563
 
if { (ac_try="$ac_link"
99564
 
case "(($ac_try" in
99565
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99566
 
  *) ac_try_echo=$ac_try;;
99567
 
esac
99568
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99569
 
$as_echo "$ac_try_echo") >&5
99570
 
  (eval "$ac_link") 2>conftest.er1
99571
 
  ac_status=$?
99572
 
  grep -v '^ *+' conftest.er1 >conftest.err
99573
 
  rm -f conftest.er1
99574
 
  cat conftest.err >&5
99575
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99576
 
  (exit $ac_status); } && {
99577
 
         test -z "$ac_c_werror_flag" ||
99578
 
         test ! -s conftest.err
99579
 
       } && test -s conftest$ac_exeext && {
99580
 
         test "$cross_compiling" = yes ||
99581
 
         $as_test_x conftest$ac_exeext
99582
 
       }; then
99583
 
  ac_cv_lib_pq_PQescapeByteaConn=yes
99584
 
else
99585
 
  $as_echo "$as_me: failed program was:" >&5
99586
 
sed 's/^/| /' conftest.$ac_ext >&5
99587
 
 
99588
 
        ac_cv_lib_pq_PQescapeByteaConn=no
99589
 
fi
99590
 
 
99591
 
rm -rf conftest.dSYM
99592
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99593
 
      conftest$ac_exeext conftest.$ac_ext
99594
 
LIBS=$ac_check_lib_save_LIBS
99595
 
fi
99596
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
99597
 
$as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
99598
 
if test "x$ac_cv_lib_pq_PQescapeByteaConn" = x""yes; then
99599
 
  
99600
 
cat >>confdefs.h <<\_ACEOF
99601
 
@%:@define HAVE_PQESCAPE_BYTEA_CONN 1
99602
 
_ACEOF
99603
 
 
99604
 
fi
99605
 
 
99606
 
  { $as_echo "$as_me:$LINENO: checking for pg_encoding_to_char in -lpq" >&5
99607
 
$as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; }
99608
 
if test "${ac_cv_lib_pq_pg_encoding_to_char+set}" = set; then
99609
 
  $as_echo_n "(cached) " >&6
99610
 
else
99611
 
  ac_check_lib_save_LIBS=$LIBS
99612
 
LIBS="-lpq  $LIBS"
99613
 
cat >conftest.$ac_ext <<_ACEOF
99614
 
/* confdefs.h.  */
99615
 
_ACEOF
99616
 
cat confdefs.h >>conftest.$ac_ext
99617
 
cat >>conftest.$ac_ext <<_ACEOF
99618
 
/* end confdefs.h.  */
99619
 
 
99620
 
/* Override any GCC internal prototype to avoid an error.
99621
 
   Use char because int might match the return type of a GCC
99622
 
   builtin and then its argument prototype would still apply.  */
99623
 
#ifdef __cplusplus
99624
 
extern "C"
99625
 
#endif
99626
 
char pg_encoding_to_char ();
99627
 
int
99628
 
main ()
99629
 
{
99630
 
return pg_encoding_to_char ();
99631
 
  ;
99632
 
  return 0;
99633
 
}
99634
 
_ACEOF
99635
 
rm -f conftest.$ac_objext conftest$ac_exeext
99636
 
if { (ac_try="$ac_link"
99637
 
case "(($ac_try" in
99638
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99639
 
  *) ac_try_echo=$ac_try;;
99640
 
esac
99641
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99642
 
$as_echo "$ac_try_echo") >&5
99643
 
  (eval "$ac_link") 2>conftest.er1
99644
 
  ac_status=$?
99645
 
  grep -v '^ *+' conftest.er1 >conftest.err
99646
 
  rm -f conftest.er1
99647
 
  cat conftest.err >&5
99648
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99649
 
  (exit $ac_status); } && {
99650
 
         test -z "$ac_c_werror_flag" ||
99651
 
         test ! -s conftest.err
99652
 
       } && test -s conftest$ac_exeext && {
99653
 
         test "$cross_compiling" = yes ||
99654
 
         $as_test_x conftest$ac_exeext
99655
 
       }; then
99656
 
  ac_cv_lib_pq_pg_encoding_to_char=yes
99657
 
else
99658
 
  $as_echo "$as_me: failed program was:" >&5
99659
 
sed 's/^/| /' conftest.$ac_ext >&5
99660
 
 
99661
 
        ac_cv_lib_pq_pg_encoding_to_char=no
99662
 
fi
99663
 
 
99664
 
rm -rf conftest.dSYM
99665
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99666
 
      conftest$ac_exeext conftest.$ac_ext
99667
 
LIBS=$ac_check_lib_save_LIBS
99668
 
fi
99669
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
99670
 
$as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
99671
 
if test "x$ac_cv_lib_pq_pg_encoding_to_char" = x""yes; then
99672
 
  
99673
 
cat >>confdefs.h <<\_ACEOF
99674
 
@%:@define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
99675
 
_ACEOF
99676
 
 
99677
 
fi
99678
 
 
99679
 
  { $as_echo "$as_me:$LINENO: checking for lo_create in -lpq" >&5
99680
 
$as_echo_n "checking for lo_create in -lpq... " >&6; }
99681
 
if test "${ac_cv_lib_pq_lo_create+set}" = set; then
99682
 
  $as_echo_n "(cached) " >&6
99683
 
else
99684
 
  ac_check_lib_save_LIBS=$LIBS
99685
 
LIBS="-lpq  $LIBS"
99686
 
cat >conftest.$ac_ext <<_ACEOF
99687
 
/* confdefs.h.  */
99688
 
_ACEOF
99689
 
cat confdefs.h >>conftest.$ac_ext
99690
 
cat >>conftest.$ac_ext <<_ACEOF
99691
 
/* end confdefs.h.  */
99692
 
 
99693
 
/* Override any GCC internal prototype to avoid an error.
99694
 
   Use char because int might match the return type of a GCC
99695
 
   builtin and then its argument prototype would still apply.  */
99696
 
#ifdef __cplusplus
99697
 
extern "C"
99698
 
#endif
99699
 
char lo_create ();
99700
 
int
99701
 
main ()
99702
 
{
99703
 
return lo_create ();
99704
 
  ;
99705
 
  return 0;
99706
 
}
99707
 
_ACEOF
99708
 
rm -f conftest.$ac_objext conftest$ac_exeext
99709
 
if { (ac_try="$ac_link"
99710
 
case "(($ac_try" in
99711
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99712
 
  *) ac_try_echo=$ac_try;;
99713
 
esac
99714
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99715
 
$as_echo "$ac_try_echo") >&5
99716
 
  (eval "$ac_link") 2>conftest.er1
99717
 
  ac_status=$?
99718
 
  grep -v '^ *+' conftest.er1 >conftest.err
99719
 
  rm -f conftest.er1
99720
 
  cat conftest.err >&5
99721
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99722
 
  (exit $ac_status); } && {
99723
 
         test -z "$ac_c_werror_flag" ||
99724
 
         test ! -s conftest.err
99725
 
       } && test -s conftest$ac_exeext && {
99726
 
         test "$cross_compiling" = yes ||
99727
 
         $as_test_x conftest$ac_exeext
99728
 
       }; then
99729
 
  ac_cv_lib_pq_lo_create=yes
99730
 
else
99731
 
  $as_echo "$as_me: failed program was:" >&5
99732
 
sed 's/^/| /' conftest.$ac_ext >&5
99733
 
 
99734
 
        ac_cv_lib_pq_lo_create=no
99735
 
fi
99736
 
 
99737
 
rm -rf conftest.dSYM
99738
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99739
 
      conftest$ac_exeext conftest.$ac_ext
99740
 
LIBS=$ac_check_lib_save_LIBS
99741
 
fi
99742
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_lo_create" >&5
99743
 
$as_echo "$ac_cv_lib_pq_lo_create" >&6; }
99744
 
if test "x$ac_cv_lib_pq_lo_create" = x""yes; then
99745
 
  
99746
 
cat >>confdefs.h <<\_ACEOF
99747
 
@%:@define HAVE_PG_LO_CREATE 1
99748
 
_ACEOF
99749
 
 
99750
 
fi
99751
 
 
99752
 
  { $as_echo "$as_me:$LINENO: checking for lo_import_with_oid in -lpq" >&5
99753
 
$as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; }
99754
 
if test "${ac_cv_lib_pq_lo_import_with_oid+set}" = set; then
99755
 
  $as_echo_n "(cached) " >&6
99756
 
else
99757
 
  ac_check_lib_save_LIBS=$LIBS
99758
 
LIBS="-lpq  $LIBS"
99759
 
cat >conftest.$ac_ext <<_ACEOF
99760
 
/* confdefs.h.  */
99761
 
_ACEOF
99762
 
cat confdefs.h >>conftest.$ac_ext
99763
 
cat >>conftest.$ac_ext <<_ACEOF
99764
 
/* end confdefs.h.  */
99765
 
 
99766
 
/* Override any GCC internal prototype to avoid an error.
99767
 
   Use char because int might match the return type of a GCC
99768
 
   builtin and then its argument prototype would still apply.  */
99769
 
#ifdef __cplusplus
99770
 
extern "C"
99771
 
#endif
99772
 
char lo_import_with_oid ();
99773
 
int
99774
 
main ()
99775
 
{
99776
 
return lo_import_with_oid ();
99777
 
  ;
99778
 
  return 0;
99779
 
}
99780
 
_ACEOF
99781
 
rm -f conftest.$ac_objext conftest$ac_exeext
99782
 
if { (ac_try="$ac_link"
99783
 
case "(($ac_try" in
99784
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99785
 
  *) ac_try_echo=$ac_try;;
99786
 
esac
99787
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99788
 
$as_echo "$ac_try_echo") >&5
99789
 
  (eval "$ac_link") 2>conftest.er1
99790
 
  ac_status=$?
99791
 
  grep -v '^ *+' conftest.er1 >conftest.err
99792
 
  rm -f conftest.er1
99793
 
  cat conftest.err >&5
99794
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99795
 
  (exit $ac_status); } && {
99796
 
         test -z "$ac_c_werror_flag" ||
99797
 
         test ! -s conftest.err
99798
 
       } && test -s conftest$ac_exeext && {
99799
 
         test "$cross_compiling" = yes ||
99800
 
         $as_test_x conftest$ac_exeext
99801
 
       }; then
99802
 
  ac_cv_lib_pq_lo_import_with_oid=yes
99803
 
else
99804
 
  $as_echo "$as_me: failed program was:" >&5
99805
 
sed 's/^/| /' conftest.$ac_ext >&5
99806
 
 
99807
 
        ac_cv_lib_pq_lo_import_with_oid=no
99808
 
fi
99809
 
 
99810
 
rm -rf conftest.dSYM
99811
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99812
 
      conftest$ac_exeext conftest.$ac_ext
99813
 
LIBS=$ac_check_lib_save_LIBS
99814
 
fi
99815
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_lo_import_with_oid" >&5
99816
 
$as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; }
99817
 
if test "x$ac_cv_lib_pq_lo_import_with_oid" = x""yes; then
99818
 
  
99819
 
cat >>confdefs.h <<\_ACEOF
99820
 
@%:@define HAVE_PG_LO_IMPORT_WITH_OID 1
99821
 
_ACEOF
99822
 
 
99823
 
fi
99824
 
 
99825
 
  LIBS=$old_LIBS
99826
 
  LDFLAGS=$old_LDFLAGS
99827
 
 
99828
 
  
99829
 
 
99830
 
  if test "$ext_shared" = "yes"; then
99831
 
    PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD"
99832
 
    if test -n "$PGSQL_LIBDIR"; then
99833
 
      
99834
 
  if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
99835
 
    
99836
 
  if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
99837
 
    ai_p=$PGSQL_LIBDIR
99838
 
  else
99839
 
    
99840
 
    ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
99841
 
    
99842
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99843
 
    ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
99844
 
  fi
99845
 
 
99846
 
    
99847
 
      if test "$ext_shared" = "yes"; then
99848
 
        PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD"
99849
 
        test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD"
99850
 
      else
99851
 
        
99852
 
  
99853
 
  
99854
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99855
 
  
99856
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99857
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
99858
 
    eval "LIBPATH$unique=set"
99859
 
    
99860
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99861
 
    LDFLAGS="$LDFLAGS -L$ai_p"
99862
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
99863
 
  
99864
 
  fi
99865
 
 
99866
 
 
99867
 
      fi
99868
 
    
99869
 
  fi
99870
 
 
99871
 
    fi
99872
 
  else
99873
 
    
99874
 
 
99875
 
  if test -n "$PGSQL_LIBDIR"; then
99876
 
    
99877
 
  if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
99878
 
    
99879
 
  if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
99880
 
    ai_p=$PGSQL_LIBDIR
99881
 
  else
99882
 
    
99883
 
    ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
99884
 
    
99885
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99886
 
    ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
99887
 
  fi
99888
 
 
99889
 
    
99890
 
      
99891
 
  
99892
 
  
99893
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99894
 
  
99895
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99896
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
99897
 
    eval "LIBPATH$unique=set"
99898
 
    
99899
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99900
 
    LDFLAGS="$LDFLAGS -L$ai_p"
99901
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
99902
 
  
99903
 
  fi
99904
 
 
99905
 
 
99906
 
    
99907
 
  fi
99908
 
 
99909
 
  fi
99910
 
  
99911
 
  
99912
 
  case pq in
99913
 
  c|c_r|pthread*) ;;
99914
 
  *) 
99915
 
      LIBS="-lpq $LIBS" 
99916
 
   ;;
99917
 
  esac
99918
 
 
99919
 
 
99920
 
 
99921
 
 
99922
 
  fi
99923
 
 
99924
 
 
99925
 
  
99926
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD"
99927
 
 
99928
 
 
99929
 
  
99930
 
  if test "$PGSQL_INCLUDE" != "/usr/include"; then
99931
 
    
99932
 
  if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
99933
 
    ai_p=$PGSQL_INCLUDE
99934
 
  else
99935
 
    
99936
 
    ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
99937
 
    
99938
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99939
 
    ai_p="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
99940
 
  fi
99941
 
 
99942
 
    
99943
 
  
99944
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99945
 
  
99946
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
99947
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
99948
 
    eval "INCLUDEPATH$unique=set"
99949
 
    
99950
 
      if test ""; then
99951
 
        INCLUDES="-I$ai_p $INCLUDES"
99952
 
      else
99953
 
        INCLUDES="$INCLUDES -I$ai_p"
99954
 
      fi
99955
 
    
99956
 
  fi
99957
 
 
99958
 
  fi
99959
 
 
99960
 
 
99961
 
  
99962
 
  ext_builddir=ext/pgsql
99963
 
  ext_srcdir=$abs_srcdir/ext/pgsql
99964
 
 
99965
 
  ac_extra=
99966
 
 
99967
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
99968
 
    PHP_PGSQL_SHARED=no
99969
 
    
99970
 
  
99971
 
  case ext/pgsql in
99972
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99973
 
  /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99974
 
  *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99975
 
  esac
99976
 
  
99977
 
  
99978
 
 
99979
 
  b_c_pre=$php_c_pre
99980
 
  b_cxx_pre=$php_cxx_pre
99981
 
  b_c_meta=$php_c_meta
99982
 
  b_cxx_meta=$php_cxx_meta
99983
 
  b_c_post=$php_c_post
99984
 
  b_cxx_post=$php_cxx_post
99985
 
  b_lo=$php_lo
99986
 
 
99987
 
 
99988
 
  old_IFS=$IFS
99989
 
  for ac_src in pgsql.c; do
99990
 
  
99991
 
      IFS=.
99992
 
      set $ac_src
99993
 
      ac_obj=$1
99994
 
      IFS=$old_IFS
99995
 
      
99996
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
99997
 
 
99998
 
      case $ac_src in
99999
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100000
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100001
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100002
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100003
 
      esac
100004
 
 
100005
 
    cat >>Makefile.objects<<EOF
100006
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100007
 
        $ac_comp
100008
 
EOF
100009
 
  done
100010
 
 
100011
 
 
100012
 
    EXT_STATIC="$EXT_STATIC pgsql"
100013
 
    if test "$ext_shared" != "nocli"; then
100014
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
100015
 
    fi
100016
 
  else
100017
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
100018
 
      PHP_PGSQL_SHARED=yes
100019
 
      
100020
 
  case ext/pgsql in
100021
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100022
 
  /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100023
 
  *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100024
 
  esac
100025
 
  
100026
 
  
100027
 
 
100028
 
  b_c_pre=$shared_c_pre
100029
 
  b_cxx_pre=$shared_cxx_pre
100030
 
  b_c_meta=$shared_c_meta
100031
 
  b_cxx_meta=$shared_cxx_meta
100032
 
  b_c_post=$shared_c_post
100033
 
  b_cxx_post=$shared_cxx_post
100034
 
  b_lo=$shared_lo
100035
 
 
100036
 
 
100037
 
  old_IFS=$IFS
100038
 
  for ac_src in pgsql.c; do
100039
 
  
100040
 
      IFS=.
100041
 
      set $ac_src
100042
 
      ac_obj=$1
100043
 
      IFS=$old_IFS
100044
 
      
100045
 
      shared_objects_pgsql="$shared_objects_pgsql $ac_bdir$ac_obj.lo"
100046
 
 
100047
 
      case $ac_src in
100048
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100049
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100050
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100051
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100052
 
      esac
100053
 
 
100054
 
    cat >>Makefile.objects<<EOF
100055
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100056
 
        $ac_comp
100057
 
EOF
100058
 
  done
100059
 
 
100060
 
      case $host_alias in
100061
 
        *netware*)
100062
 
          
100063
 
  install_modules="install-modules"
100064
 
 
100065
 
  case $host_alias in
100066
 
    *aix*)
100067
 
      suffix=so
100068
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PHPPGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppgsql.so '$ext_builddir'/phppgsql.so'
100069
 
      ;;
100070
 
    *netware*)
100071
 
      suffix=nlm
100072
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) -L$(top_builddir)/netware -lphp5lib $(PGSQL_SHARED_LIBADD)'
100073
 
      ;;
100074
 
    *)
100075
 
      suffix=la
100076
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PHPPGSQL_SHARED_LIBADD)'
100077
 
      ;;
100078
 
  esac
100079
 
 
100080
 
  if test "x" = "xyes"; then
100081
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppgsql.$suffix"
100082
 
  else
100083
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppgsql.$suffix"
100084
 
  fi
100085
 
  
100086
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
100087
 
 
100088
 
  cat >>Makefile.objects<<EOF
100089
 
\$(phplibdir)/phppgsql.$suffix: $ext_builddir/phppgsql.$suffix
100090
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppgsql.$suffix \$(phplibdir)
100091
 
 
100092
 
$ext_builddir/phppgsql.$suffix: \$(shared_objects_pgsql) \$(PHPPGSQL_SHARED_DEPENDENCIES)
100093
 
        $link_cmd
100094
 
 
100095
 
EOF
100096
 
 
100097
 
          ;;
100098
 
        *)
100099
 
          
100100
 
  install_modules="install-modules"
100101
 
 
100102
 
  case $host_alias in
100103
 
    *aix*)
100104
 
      suffix=so
100105
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pgsql.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PGSQL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pgsql.so '$ext_builddir'/pgsql.so'
100106
 
      ;;
100107
 
    *netware*)
100108
 
      suffix=nlm
100109
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) -L$(top_builddir)/netware -lphp5lib $(QL_SHARED_LIBADD)'
100110
 
      ;;
100111
 
    *)
100112
 
      suffix=la
100113
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pgsql) $(PGSQL_SHARED_LIBADD)'
100114
 
      ;;
100115
 
  esac
100116
 
 
100117
 
  if test "x" = "xyes"; then
100118
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pgsql.$suffix"
100119
 
  else
100120
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pgsql.$suffix"
100121
 
  fi
100122
 
  
100123
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
100124
 
 
100125
 
  cat >>Makefile.objects<<EOF
100126
 
\$(phplibdir)/pgsql.$suffix: $ext_builddir/pgsql.$suffix
100127
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pgsql.$suffix \$(phplibdir)
100128
 
 
100129
 
$ext_builddir/pgsql.$suffix: \$(shared_objects_pgsql) \$(PGSQL_SHARED_DEPENDENCIES)
100130
 
        $link_cmd
100131
 
 
100132
 
EOF
100133
 
 
100134
 
          ;;
100135
 
      esac
100136
 
      
100137
 
cat >>confdefs.h <<_ACEOF
100138
 
@%:@define COMPILE_DL_PGSQL 1
100139
 
_ACEOF
100140
 
 
100141
 
    fi
100142
 
  fi
100143
 
 
100144
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
100145
 
    PHP_PGSQL_SHARED=no
100146
 
    case "$PHP_SAPI" in
100147
 
      cgi|embed)
100148
 
        
100149
 
  
100150
 
  case ext/pgsql in
100151
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100152
 
  /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100153
 
  *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100154
 
  esac
100155
 
  
100156
 
  
100157
 
 
100158
 
  b_c_pre=$php_c_pre
100159
 
  b_cxx_pre=$php_cxx_pre
100160
 
  b_c_meta=$php_c_meta
100161
 
  b_cxx_meta=$php_cxx_meta
100162
 
  b_c_post=$php_c_post
100163
 
  b_cxx_post=$php_cxx_post
100164
 
  b_lo=$php_lo
100165
 
 
100166
 
 
100167
 
  old_IFS=$IFS
100168
 
  for ac_src in pgsql.c; do
100169
 
  
100170
 
      IFS=.
100171
 
      set $ac_src
100172
 
      ac_obj=$1
100173
 
      IFS=$old_IFS
100174
 
      
100175
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100176
 
 
100177
 
      case $ac_src in
100178
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100179
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100180
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100181
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100182
 
      esac
100183
 
 
100184
 
    cat >>Makefile.objects<<EOF
100185
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100186
 
        $ac_comp
100187
 
EOF
100188
 
  done
100189
 
 
100190
 
 
100191
 
        EXT_STATIC="$EXT_STATIC pgsql"
100192
 
        ;;
100193
 
      *)
100194
 
        
100195
 
  
100196
 
  case ext/pgsql in
100197
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100198
 
  /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100199
 
  *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100200
 
  esac
100201
 
  
100202
 
  
100203
 
 
100204
 
  b_c_pre=$php_c_pre
100205
 
  b_cxx_pre=$php_cxx_pre
100206
 
  b_c_meta=$php_c_meta
100207
 
  b_cxx_meta=$php_cxx_meta
100208
 
  b_c_post=$php_c_post
100209
 
  b_cxx_post=$php_cxx_post
100210
 
  b_lo=$php_lo
100211
 
 
100212
 
 
100213
 
  old_IFS=$IFS
100214
 
  for ac_src in pgsql.c; do
100215
 
  
100216
 
      IFS=.
100217
 
      set $ac_src
100218
 
      ac_obj=$1
100219
 
      IFS=$old_IFS
100220
 
      
100221
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
100222
 
 
100223
 
      case $ac_src in
100224
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100225
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100226
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100227
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100228
 
      esac
100229
 
 
100230
 
    cat >>Makefile.objects<<EOF
100231
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100232
 
        $ac_comp
100233
 
EOF
100234
 
  done
100235
 
 
100236
 
 
100237
 
        ;;
100238
 
    esac
100239
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
100240
 
  fi
100241
 
  
100242
 
  
100243
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
100244
 
  
100245
 
 
100246
 
 
100247
 
  if test "$ext_builddir" = "."; then
100248
 
    PHP_PECL_EXTENSION=pgsql
100249
 
    
100250
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
100251
 
 
100252
 
  fi
100253
 
 
100254
 
fi
100255
 
 
100256
 
 
100257
 
 
100258
 
 
100259
 
 
100260
 
php_enable_phar=yes
100261
 
 
100262
 
{ $as_echo "$as_me:$LINENO: checking for phar archive support" >&5
100263
 
$as_echo_n "checking for phar archive support... " >&6; }
100264
 
@%:@ Check whether --enable-phar was given.
100265
 
if test "${enable_phar+set}" = set; then
100266
 
  enableval=$enable_phar; PHP_PHAR=$enableval
100267
 
else
100268
 
  
100269
 
  PHP_PHAR=yes
100270
 
  test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL
100271
 
 
100272
 
fi
100273
 
 
100274
 
 
100275
 
 
100276
 
ext_output="yes, shared"
100277
 
ext_shared=yes
100278
 
case $PHP_PHAR in
100279
 
shared,*)
100280
 
  PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'`
100281
 
  ;;
100282
 
shared)
100283
 
  PHP_PHAR=yes
100284
 
  ;;
100285
 
no)
100286
 
  ext_output=no
100287
 
  ext_shared=no
100288
 
  ;;
100289
 
*)
100290
 
  ext_output=yes
100291
 
  ext_shared=no
100292
 
  ;;
100293
 
esac
100294
 
 
100295
 
 
100296
 
 
100297
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
100298
 
$as_echo "$ext_output" >&6; }
100299
 
 
100300
 
 
100301
 
 
100302
 
 
100303
 
if test "$PHP_PHAR" != "no"; then
100304
 
  
100305
 
  ext_builddir=ext/phar
100306
 
  ext_srcdir=$abs_srcdir/ext/phar
100307
 
 
100308
 
  ac_extra=
100309
 
 
100310
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
100311
 
    PHP_PHAR_SHARED=no
100312
 
    
100313
 
  
100314
 
  case ext/phar in
100315
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100316
 
  /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100317
 
  *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100318
 
  esac
100319
 
  
100320
 
  
100321
 
 
100322
 
  b_c_pre=$php_c_pre
100323
 
  b_cxx_pre=$php_cxx_pre
100324
 
  b_c_meta=$php_c_meta
100325
 
  b_cxx_meta=$php_cxx_meta
100326
 
  b_c_post=$php_c_post
100327
 
  b_cxx_post=$php_cxx_post
100328
 
  b_lo=$php_lo
100329
 
 
100330
 
 
100331
 
  old_IFS=$IFS
100332
 
  for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
100333
 
  
100334
 
      IFS=.
100335
 
      set $ac_src
100336
 
      ac_obj=$1
100337
 
      IFS=$old_IFS
100338
 
      
100339
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100340
 
 
100341
 
      case $ac_src in
100342
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100343
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100344
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100345
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100346
 
      esac
100347
 
 
100348
 
    cat >>Makefile.objects<<EOF
100349
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100350
 
        $ac_comp
100351
 
EOF
100352
 
  done
100353
 
 
100354
 
 
100355
 
    EXT_STATIC="$EXT_STATIC phar"
100356
 
    if test "$ext_shared" != "nocli"; then
100357
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
100358
 
    fi
100359
 
  else
100360
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
100361
 
      PHP_PHAR_SHARED=yes
100362
 
      
100363
 
  case ext/phar in
100364
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100365
 
  /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100366
 
  *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100367
 
  esac
100368
 
  
100369
 
  
100370
 
 
100371
 
  b_c_pre=$shared_c_pre
100372
 
  b_cxx_pre=$shared_cxx_pre
100373
 
  b_c_meta=$shared_c_meta
100374
 
  b_cxx_meta=$shared_cxx_meta
100375
 
  b_c_post=$shared_c_post
100376
 
  b_cxx_post=$shared_cxx_post
100377
 
  b_lo=$shared_lo
100378
 
 
100379
 
 
100380
 
  old_IFS=$IFS
100381
 
  for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
100382
 
  
100383
 
      IFS=.
100384
 
      set $ac_src
100385
 
      ac_obj=$1
100386
 
      IFS=$old_IFS
100387
 
      
100388
 
      shared_objects_phar="$shared_objects_phar $ac_bdir$ac_obj.lo"
100389
 
 
100390
 
      case $ac_src in
100391
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100392
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100393
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100394
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100395
 
      esac
100396
 
 
100397
 
    cat >>Makefile.objects<<EOF
100398
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100399
 
        $ac_comp
100400
 
EOF
100401
 
  done
100402
 
 
100403
 
      case $host_alias in
100404
 
        *netware*)
100405
 
          
100406
 
  install_modules="install-modules"
100407
 
 
100408
 
  case $host_alias in
100409
 
    *aix*)
100410
 
      suffix=so
100411
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpphar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHPPHAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpphar.so '$ext_builddir'/phpphar.so'
100412
 
      ;;
100413
 
    *netware*)
100414
 
      suffix=nlm
100415
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) -L$(top_builddir)/netware -lphp5lib $(PHAR_SHARED_LIBADD)'
100416
 
      ;;
100417
 
    *)
100418
 
      suffix=la
100419
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHPPHAR_SHARED_LIBADD)'
100420
 
      ;;
100421
 
  esac
100422
 
 
100423
 
  if test "x" = "xyes"; then
100424
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpphar.$suffix"
100425
 
  else
100426
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpphar.$suffix"
100427
 
  fi
100428
 
  
100429
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
100430
 
 
100431
 
  cat >>Makefile.objects<<EOF
100432
 
\$(phplibdir)/phpphar.$suffix: $ext_builddir/phpphar.$suffix
100433
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpphar.$suffix \$(phplibdir)
100434
 
 
100435
 
$ext_builddir/phpphar.$suffix: \$(shared_objects_phar) \$(PHPPHAR_SHARED_DEPENDENCIES)
100436
 
        $link_cmd
100437
 
 
100438
 
EOF
100439
 
 
100440
 
          ;;
100441
 
        *)
100442
 
          
100443
 
  install_modules="install-modules"
100444
 
 
100445
 
  case $host_alias in
100446
 
    *aix*)
100447
 
      suffix=so
100448
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phar.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHAR_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phar.so '$ext_builddir'/phar.so'
100449
 
      ;;
100450
 
    *netware*)
100451
 
      suffix=nlm
100452
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) -L$(top_builddir)/netware -lphp5lib $(R_SHARED_LIBADD)'
100453
 
      ;;
100454
 
    *)
100455
 
      suffix=la
100456
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_phar) $(PHAR_SHARED_LIBADD)'
100457
 
      ;;
100458
 
  esac
100459
 
 
100460
 
  if test "x" = "xyes"; then
100461
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phar.$suffix"
100462
 
  else
100463
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phar.$suffix"
100464
 
  fi
100465
 
  
100466
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
100467
 
 
100468
 
  cat >>Makefile.objects<<EOF
100469
 
\$(phplibdir)/phar.$suffix: $ext_builddir/phar.$suffix
100470
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phar.$suffix \$(phplibdir)
100471
 
 
100472
 
$ext_builddir/phar.$suffix: \$(shared_objects_phar) \$(PHAR_SHARED_DEPENDENCIES)
100473
 
        $link_cmd
100474
 
 
100475
 
EOF
100476
 
 
100477
 
          ;;
100478
 
      esac
100479
 
      
100480
 
cat >>confdefs.h <<_ACEOF
100481
 
@%:@define COMPILE_DL_PHAR 1
100482
 
_ACEOF
100483
 
 
100484
 
    fi
100485
 
  fi
100486
 
 
100487
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
100488
 
    PHP_PHAR_SHARED=no
100489
 
    case "$PHP_SAPI" in
100490
 
      cgi|embed)
100491
 
        
100492
 
  
100493
 
  case ext/phar in
100494
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100495
 
  /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100496
 
  *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100497
 
  esac
100498
 
  
100499
 
  
100500
 
 
100501
 
  b_c_pre=$php_c_pre
100502
 
  b_cxx_pre=$php_cxx_pre
100503
 
  b_c_meta=$php_c_meta
100504
 
  b_cxx_meta=$php_cxx_meta
100505
 
  b_c_post=$php_c_post
100506
 
  b_cxx_post=$php_cxx_post
100507
 
  b_lo=$php_lo
100508
 
 
100509
 
 
100510
 
  old_IFS=$IFS
100511
 
  for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
100512
 
  
100513
 
      IFS=.
100514
 
      set $ac_src
100515
 
      ac_obj=$1
100516
 
      IFS=$old_IFS
100517
 
      
100518
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100519
 
 
100520
 
      case $ac_src in
100521
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100522
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100523
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100524
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100525
 
      esac
100526
 
 
100527
 
    cat >>Makefile.objects<<EOF
100528
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100529
 
        $ac_comp
100530
 
EOF
100531
 
  done
100532
 
 
100533
 
 
100534
 
        EXT_STATIC="$EXT_STATIC phar"
100535
 
        ;;
100536
 
      *)
100537
 
        
100538
 
  
100539
 
  case ext/phar in
100540
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100541
 
  /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100542
 
  *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100543
 
  esac
100544
 
  
100545
 
  
100546
 
 
100547
 
  b_c_pre=$php_c_pre
100548
 
  b_cxx_pre=$php_cxx_pre
100549
 
  b_c_meta=$php_c_meta
100550
 
  b_cxx_meta=$php_cxx_meta
100551
 
  b_c_post=$php_c_post
100552
 
  b_cxx_post=$php_cxx_post
100553
 
  b_lo=$php_lo
100554
 
 
100555
 
 
100556
 
  old_IFS=$IFS
100557
 
  for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
100558
 
  
100559
 
      IFS=.
100560
 
      set $ac_src
100561
 
      ac_obj=$1
100562
 
      IFS=$old_IFS
100563
 
      
100564
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
100565
 
 
100566
 
      case $ac_src in
100567
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100568
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100569
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100570
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100571
 
      esac
100572
 
 
100573
 
    cat >>Makefile.objects<<EOF
100574
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100575
 
        $ac_comp
100576
 
EOF
100577
 
  done
100578
 
 
100579
 
 
100580
 
        ;;
100581
 
    esac
100582
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
100583
 
  fi
100584
 
  
100585
 
  
100586
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
100587
 
  
100588
 
 
100589
 
 
100590
 
  if test "$ext_builddir" = "."; then
100591
 
    PHP_PECL_EXTENSION=phar
100592
 
    
100593
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
100594
 
 
100595
 
  fi
100596
 
 
100597
 
  { $as_echo "$as_me:$LINENO: checking for phar openssl support" >&5
100598
 
$as_echo_n "checking for phar openssl support... " >&6; }
100599
 
  if test "$PHP_HASH_SHARED" != "yes"; then
100600
 
    if test "$PHP_HASH" != "no"; then
100601
 
      
100602
 
cat >>confdefs.h <<\_ACEOF
100603
 
@%:@define PHAR_HASH_OK 1
100604
 
_ACEOF
100605
 
 
100606
 
    fi
100607
 
  else
100608
 
    { $as_echo "$as_me:$LINENO: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&5
100609
 
$as_echo "$as_me: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&2;}
100610
 
  fi
100611
 
  if test "$PHP_OPENSSL_SHARED" = "yes"; then
100612
 
    { $as_echo "$as_me:$LINENO: result: no (shared openssl)" >&5
100613
 
$as_echo "no (shared openssl)" >&6; }
100614
 
  else
100615
 
    if test "$PHP_OPENSSL" = "yes"; then
100616
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
100617
 
$as_echo "yes" >&6; }
100618
 
      
100619
 
cat >>confdefs.h <<\_ACEOF
100620
 
@%:@define PHAR_HAVE_OPENSSL 1
100621
 
_ACEOF
100622
 
 
100623
 
    else
100624
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
100625
 
$as_echo "no" >&6; }
100626
 
    fi
100627
 
  fi
100628
 
  
100629
 
  am_i_shared=$PHP_PHAR_SHARED
100630
 
  is_it_shared=$PHP_HASH_SHARED
100631
 
  is_it_enabled=$PHP_HASH
100632
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
100633
 
    { { $as_echo "$as_me:$LINENO: error: 
100634
 
You've configured extension phar to build statically, but it
100635
 
depends on extension hash, which you've configured to build shared.
100636
 
You either need to build phar shared or build hash statically for the
100637
 
build to be successful.
100638
 
" >&5
100639
 
$as_echo "$as_me: error: 
100640
 
You've configured extension phar to build statically, but it
100641
 
depends on extension hash, which you've configured to build shared.
100642
 
You either need to build phar shared or build hash statically for the
100643
 
build to be successful.
100644
 
" >&2;}
100645
 
   { (exit 1); exit 1; }; }
100646
 
  fi
100647
 
  if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
100648
 
    { { $as_echo "$as_me:$LINENO: error: 
100649
 
You've configured extension phar, which depends on extension hash,
100650
 
but you've either not enabled hash, or have disabled it.
100651
 
" >&5
100652
 
$as_echo "$as_me: error: 
100653
 
You've configured extension phar, which depends on extension hash,
100654
 
but you've either not enabled hash, or have disabled it.
100655
 
" >&2;}
100656
 
   { (exit 1); exit 1; }; }
100657
 
  fi
100658
 
  
100659
 
  
100660
 
  am_i_shared=$PHP_PHAR_SHARED
100661
 
  is_it_shared=$PHP_SPL_SHARED
100662
 
  is_it_enabled=$PHP_SPL
100663
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
100664
 
    { { $as_echo "$as_me:$LINENO: error: 
100665
 
You've configured extension phar to build statically, but it
100666
 
depends on extension spl, which you've configured to build shared.
100667
 
You either need to build phar shared or build spl statically for the
100668
 
build to be successful.
100669
 
" >&5
100670
 
$as_echo "$as_me: error: 
100671
 
You've configured extension phar to build statically, but it
100672
 
depends on extension spl, which you've configured to build shared.
100673
 
You either need to build phar shared or build spl statically for the
100674
 
build to be successful.
100675
 
" >&2;}
100676
 
   { (exit 1); exit 1; }; }
100677
 
  fi
100678
 
  if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
100679
 
    { { $as_echo "$as_me:$LINENO: error: 
100680
 
You've configured extension phar, which depends on extension spl,
100681
 
but you've either not enabled spl, or have disabled it.
100682
 
" >&5
100683
 
$as_echo "$as_me: error: 
100684
 
You've configured extension phar, which depends on extension spl,
100685
 
but you've either not enabled spl, or have disabled it.
100686
 
" >&2;}
100687
 
   { (exit 1); exit 1; }; }
100688
 
  fi
100689
 
  
100690
 
  
100691
 
  src=$ext_srcdir/Makefile.frag
100692
 
  ac_srcdir=$ext_srcdir
100693
 
  ac_builddir=$ext_builddir
100694
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
100695
 
 
100696
 
fi
100697
 
 
100698
 
 
100699
 
 
100700
 
php_enable_posix=yes
100701
 
 
100702
 
{ $as_echo "$as_me:$LINENO: checking whether to enable POSIX-like functions" >&5
100703
 
$as_echo_n "checking whether to enable POSIX-like functions... " >&6; }
100704
 
@%:@ Check whether --enable-posix was given.
100705
 
if test "${enable_posix+set}" = set; then
100706
 
  enableval=$enable_posix; PHP_POSIX=$enableval
100707
 
else
100708
 
  
100709
 
  PHP_POSIX=yes
100710
 
  test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL
100711
 
 
100712
 
fi
100713
 
 
100714
 
 
100715
 
 
100716
 
ext_output="yes, shared"
100717
 
ext_shared=yes
100718
 
case $PHP_POSIX in
100719
 
shared,*)
100720
 
  PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'`
100721
 
  ;;
100722
 
shared)
100723
 
  PHP_POSIX=yes
100724
 
  ;;
100725
 
no)
100726
 
  ext_output=no
100727
 
  ext_shared=no
100728
 
  ;;
100729
 
*)
100730
 
  ext_output=yes
100731
 
  ext_shared=no
100732
 
  ;;
100733
 
esac
100734
 
 
100735
 
 
100736
 
 
100737
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
100738
 
$as_echo "$ext_output" >&6; }
100739
 
 
100740
 
 
100741
 
 
100742
 
 
100743
 
if test "$PHP_POSIX" = "yes"; then
100744
 
  
100745
 
cat >>confdefs.h <<\_ACEOF
100746
 
@%:@define HAVE_POSIX 1
100747
 
_ACEOF
100748
 
 
100749
 
  
100750
 
  ext_builddir=ext/posix
100751
 
  ext_srcdir=$abs_srcdir/ext/posix
100752
 
 
100753
 
  ac_extra=
100754
 
 
100755
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
100756
 
    PHP_POSIX_SHARED=no
100757
 
    
100758
 
  
100759
 
  case ext/posix in
100760
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100761
 
  /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100762
 
  *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100763
 
  esac
100764
 
  
100765
 
  
100766
 
 
100767
 
  b_c_pre=$php_c_pre
100768
 
  b_cxx_pre=$php_cxx_pre
100769
 
  b_c_meta=$php_c_meta
100770
 
  b_cxx_meta=$php_cxx_meta
100771
 
  b_c_post=$php_c_post
100772
 
  b_cxx_post=$php_cxx_post
100773
 
  b_lo=$php_lo
100774
 
 
100775
 
 
100776
 
  old_IFS=$IFS
100777
 
  for ac_src in posix.c; do
100778
 
  
100779
 
      IFS=.
100780
 
      set $ac_src
100781
 
      ac_obj=$1
100782
 
      IFS=$old_IFS
100783
 
      
100784
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100785
 
 
100786
 
      case $ac_src in
100787
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100788
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100789
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100790
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100791
 
      esac
100792
 
 
100793
 
    cat >>Makefile.objects<<EOF
100794
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100795
 
        $ac_comp
100796
 
EOF
100797
 
  done
100798
 
 
100799
 
 
100800
 
    EXT_STATIC="$EXT_STATIC posix"
100801
 
    if test "$ext_shared" != "nocli"; then
100802
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
100803
 
    fi
100804
 
  else
100805
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
100806
 
      PHP_POSIX_SHARED=yes
100807
 
      
100808
 
  case ext/posix in
100809
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100810
 
  /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100811
 
  *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100812
 
  esac
100813
 
  
100814
 
  
100815
 
 
100816
 
  b_c_pre=$shared_c_pre
100817
 
  b_cxx_pre=$shared_cxx_pre
100818
 
  b_c_meta=$shared_c_meta
100819
 
  b_cxx_meta=$shared_cxx_meta
100820
 
  b_c_post=$shared_c_post
100821
 
  b_cxx_post=$shared_cxx_post
100822
 
  b_lo=$shared_lo
100823
 
 
100824
 
 
100825
 
  old_IFS=$IFS
100826
 
  for ac_src in posix.c; do
100827
 
  
100828
 
      IFS=.
100829
 
      set $ac_src
100830
 
      ac_obj=$1
100831
 
      IFS=$old_IFS
100832
 
      
100833
 
      shared_objects_posix="$shared_objects_posix $ac_bdir$ac_obj.lo"
100834
 
 
100835
 
      case $ac_src in
100836
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100837
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100838
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100839
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100840
 
      esac
100841
 
 
100842
 
    cat >>Makefile.objects<<EOF
100843
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100844
 
        $ac_comp
100845
 
EOF
100846
 
  done
100847
 
 
100848
 
      case $host_alias in
100849
 
        *netware*)
100850
 
          
100851
 
  install_modules="install-modules"
100852
 
 
100853
 
  case $host_alias in
100854
 
    *aix*)
100855
 
      suffix=so
100856
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpposix.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(PHPPOSIX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpposix.so '$ext_builddir'/phpposix.so'
100857
 
      ;;
100858
 
    *netware*)
100859
 
      suffix=nlm
100860
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) -L$(top_builddir)/netware -lphp5lib $(POSIX_SHARED_LIBADD)'
100861
 
      ;;
100862
 
    *)
100863
 
      suffix=la
100864
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(PHPPOSIX_SHARED_LIBADD)'
100865
 
      ;;
100866
 
  esac
100867
 
 
100868
 
  if test "x" = "xyes"; then
100869
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpposix.$suffix"
100870
 
  else
100871
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpposix.$suffix"
100872
 
  fi
100873
 
  
100874
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
100875
 
 
100876
 
  cat >>Makefile.objects<<EOF
100877
 
\$(phplibdir)/phpposix.$suffix: $ext_builddir/phpposix.$suffix
100878
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpposix.$suffix \$(phplibdir)
100879
 
 
100880
 
$ext_builddir/phpposix.$suffix: \$(shared_objects_posix) \$(PHPPOSIX_SHARED_DEPENDENCIES)
100881
 
        $link_cmd
100882
 
 
100883
 
EOF
100884
 
 
100885
 
          ;;
100886
 
        *)
100887
 
          
100888
 
  install_modules="install-modules"
100889
 
 
100890
 
  case $host_alias in
100891
 
    *aix*)
100892
 
      suffix=so
100893
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/posix.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(POSIX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/posix.so '$ext_builddir'/posix.so'
100894
 
      ;;
100895
 
    *netware*)
100896
 
      suffix=nlm
100897
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) -L$(top_builddir)/netware -lphp5lib $(IX_SHARED_LIBADD)'
100898
 
      ;;
100899
 
    *)
100900
 
      suffix=la
100901
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_posix) $(POSIX_SHARED_LIBADD)'
100902
 
      ;;
100903
 
  esac
100904
 
 
100905
 
  if test "x" = "xyes"; then
100906
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/posix.$suffix"
100907
 
  else
100908
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/posix.$suffix"
100909
 
  fi
100910
 
  
100911
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
100912
 
 
100913
 
  cat >>Makefile.objects<<EOF
100914
 
\$(phplibdir)/posix.$suffix: $ext_builddir/posix.$suffix
100915
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/posix.$suffix \$(phplibdir)
100916
 
 
100917
 
$ext_builddir/posix.$suffix: \$(shared_objects_posix) \$(POSIX_SHARED_DEPENDENCIES)
100918
 
        $link_cmd
100919
 
 
100920
 
EOF
100921
 
 
100922
 
          ;;
100923
 
      esac
100924
 
      
100925
 
cat >>confdefs.h <<_ACEOF
100926
 
@%:@define COMPILE_DL_POSIX 1
100927
 
_ACEOF
100928
 
 
100929
 
    fi
100930
 
  fi
100931
 
 
100932
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
100933
 
    PHP_POSIX_SHARED=no
100934
 
    case "$PHP_SAPI" in
100935
 
      cgi|embed)
100936
 
        
100937
 
  
100938
 
  case ext/posix in
100939
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100940
 
  /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100941
 
  *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100942
 
  esac
100943
 
  
100944
 
  
100945
 
 
100946
 
  b_c_pre=$php_c_pre
100947
 
  b_cxx_pre=$php_cxx_pre
100948
 
  b_c_meta=$php_c_meta
100949
 
  b_cxx_meta=$php_cxx_meta
100950
 
  b_c_post=$php_c_post
100951
 
  b_cxx_post=$php_cxx_post
100952
 
  b_lo=$php_lo
100953
 
 
100954
 
 
100955
 
  old_IFS=$IFS
100956
 
  for ac_src in posix.c; do
100957
 
  
100958
 
      IFS=.
100959
 
      set $ac_src
100960
 
      ac_obj=$1
100961
 
      IFS=$old_IFS
100962
 
      
100963
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100964
 
 
100965
 
      case $ac_src in
100966
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100967
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100968
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100969
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100970
 
      esac
100971
 
 
100972
 
    cat >>Makefile.objects<<EOF
100973
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100974
 
        $ac_comp
100975
 
EOF
100976
 
  done
100977
 
 
100978
 
 
100979
 
        EXT_STATIC="$EXT_STATIC posix"
100980
 
        ;;
100981
 
      *)
100982
 
        
100983
 
  
100984
 
  case ext/posix in
100985
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100986
 
  /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100987
 
  *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100988
 
  esac
100989
 
  
100990
 
  
100991
 
 
100992
 
  b_c_pre=$php_c_pre
100993
 
  b_cxx_pre=$php_cxx_pre
100994
 
  b_c_meta=$php_c_meta
100995
 
  b_cxx_meta=$php_cxx_meta
100996
 
  b_c_post=$php_c_post
100997
 
  b_cxx_post=$php_cxx_post
100998
 
  b_lo=$php_lo
100999
 
 
101000
 
 
101001
 
  old_IFS=$IFS
101002
 
  for ac_src in posix.c; do
101003
 
  
101004
 
      IFS=.
101005
 
      set $ac_src
101006
 
      ac_obj=$1
101007
 
      IFS=$old_IFS
101008
 
      
101009
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
101010
 
 
101011
 
      case $ac_src in
101012
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101013
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101014
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101015
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101016
 
      esac
101017
 
 
101018
 
    cat >>Makefile.objects<<EOF
101019
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101020
 
        $ac_comp
101021
 
EOF
101022
 
  done
101023
 
 
101024
 
 
101025
 
        ;;
101026
 
    esac
101027
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
101028
 
  fi
101029
 
  
101030
 
  
101031
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
101032
 
  
101033
 
 
101034
 
 
101035
 
  if test "$ext_builddir" = "."; then
101036
 
    PHP_PECL_EXTENSION=posix
101037
 
    
101038
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
101039
 
 
101040
 
  fi
101041
 
 
101042
 
 
101043
 
  
101044
 
for ac_header in sys/mkdev.h
101045
 
do
101046
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
101047
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
101048
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
101049
 
$as_echo_n "checking for $ac_header... " >&6; }
101050
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
101051
 
  $as_echo_n "(cached) " >&6
101052
 
fi
101053
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
101054
 
                 $as_echo "$as_val"'`
101055
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
101056
 
$as_echo "$ac_res" >&6; }
101057
 
else
101058
 
  # Is the header compilable?
101059
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
101060
 
$as_echo_n "checking $ac_header usability... " >&6; }
101061
 
cat >conftest.$ac_ext <<_ACEOF
101062
 
/* confdefs.h.  */
101063
 
_ACEOF
101064
 
cat confdefs.h >>conftest.$ac_ext
101065
 
cat >>conftest.$ac_ext <<_ACEOF
101066
 
/* end confdefs.h.  */
101067
 
$ac_includes_default
101068
 
@%:@include <$ac_header>
101069
 
_ACEOF
101070
 
rm -f conftest.$ac_objext
101071
 
if { (ac_try="$ac_compile"
101072
 
case "(($ac_try" in
101073
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101074
 
  *) ac_try_echo=$ac_try;;
101075
 
esac
101076
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101077
 
$as_echo "$ac_try_echo") >&5
101078
 
  (eval "$ac_compile") 2>conftest.er1
101079
 
  ac_status=$?
101080
 
  grep -v '^ *+' conftest.er1 >conftest.err
101081
 
  rm -f conftest.er1
101082
 
  cat conftest.err >&5
101083
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101084
 
  (exit $ac_status); } && {
101085
 
         test -z "$ac_c_werror_flag" ||
101086
 
         test ! -s conftest.err
101087
 
       } && test -s conftest.$ac_objext; then
101088
 
  ac_header_compiler=yes
101089
 
else
101090
 
  $as_echo "$as_me: failed program was:" >&5
101091
 
sed 's/^/| /' conftest.$ac_ext >&5
101092
 
 
101093
 
        ac_header_compiler=no
101094
 
fi
101095
 
 
101096
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101097
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
101098
 
$as_echo "$ac_header_compiler" >&6; }
101099
 
 
101100
 
# Is the header present?
101101
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
101102
 
$as_echo_n "checking $ac_header presence... " >&6; }
101103
 
cat >conftest.$ac_ext <<_ACEOF
101104
 
/* confdefs.h.  */
101105
 
_ACEOF
101106
 
cat confdefs.h >>conftest.$ac_ext
101107
 
cat >>conftest.$ac_ext <<_ACEOF
101108
 
/* end confdefs.h.  */
101109
 
@%:@include <$ac_header>
101110
 
_ACEOF
101111
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
101112
 
case "(($ac_try" in
101113
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101114
 
  *) ac_try_echo=$ac_try;;
101115
 
esac
101116
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101117
 
$as_echo "$ac_try_echo") >&5
101118
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
101119
 
  ac_status=$?
101120
 
  grep -v '^ *+' conftest.er1 >conftest.err
101121
 
  rm -f conftest.er1
101122
 
  cat conftest.err >&5
101123
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101124
 
  (exit $ac_status); } >/dev/null && {
101125
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
101126
 
         test ! -s conftest.err
101127
 
       }; then
101128
 
  ac_header_preproc=yes
101129
 
else
101130
 
  $as_echo "$as_me: failed program was:" >&5
101131
 
sed 's/^/| /' conftest.$ac_ext >&5
101132
 
 
101133
 
  ac_header_preproc=no
101134
 
fi
101135
 
 
101136
 
rm -f conftest.err conftest.$ac_ext
101137
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
101138
 
$as_echo "$ac_header_preproc" >&6; }
101139
 
 
101140
 
# So?  What about this header?
101141
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
101142
 
  yes:no: )
101143
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
101144
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
101145
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
101146
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
101147
 
    ac_header_preproc=yes
101148
 
    ;;
101149
 
  no:yes:* )
101150
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
101151
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
101152
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
101153
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
101154
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
101155
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
101156
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
101157
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
101158
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
101159
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
101160
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
101161
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
101162
 
    
101163
 
    ;;
101164
 
esac
101165
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
101166
 
$as_echo_n "checking for $ac_header... " >&6; }
101167
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
101168
 
  $as_echo_n "(cached) " >&6
101169
 
else
101170
 
  eval "$as_ac_Header=\$ac_header_preproc"
101171
 
fi
101172
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
101173
 
                 $as_echo "$as_val"'`
101174
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
101175
 
$as_echo "$ac_res" >&6; }
101176
 
 
101177
 
fi
101178
 
as_val=`eval 'as_val=${'$as_ac_Header'}
101179
 
                 $as_echo "$as_val"'`
101180
 
   if test "x$as_val" = x""yes; then
101181
 
  cat >>confdefs.h <<_ACEOF
101182
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
101183
 
_ACEOF
101184
 
 
101185
 
fi
101186
 
 
101187
 
done
101188
 
 
101189
 
 
101190
 
  
101191
 
 
101192
 
 
101193
 
 
101194
 
 
101195
 
 
101196
 
 
101197
 
 
101198
 
 
101199
 
 
101200
 
 
101201
 
 
101202
 
 
101203
 
 
101204
 
 
101205
 
 
101206
 
for ac_func in seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r
101207
 
do
101208
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
101209
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
101210
 
$as_echo_n "checking for $ac_func... " >&6; }
101211
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
101212
 
  $as_echo_n "(cached) " >&6
101213
 
else
101214
 
  cat >conftest.$ac_ext <<_ACEOF
101215
 
/* confdefs.h.  */
101216
 
_ACEOF
101217
 
cat confdefs.h >>conftest.$ac_ext
101218
 
cat >>conftest.$ac_ext <<_ACEOF
101219
 
/* end confdefs.h.  */
101220
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
101221
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
101222
 
#define $ac_func innocuous_$ac_func
101223
 
 
101224
 
/* System header to define __stub macros and hopefully few prototypes,
101225
 
    which can conflict with char $ac_func (); below.
101226
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
101227
 
    <limits.h> exists even on freestanding compilers.  */
101228
 
 
101229
 
#ifdef __STDC__
101230
 
# include <limits.h>
101231
 
#else
101232
 
# include <assert.h>
101233
 
#endif
101234
 
 
101235
 
#undef $ac_func
101236
 
 
101237
 
/* Override any GCC internal prototype to avoid an error.
101238
 
   Use char because int might match the return type of a GCC
101239
 
   builtin and then its argument prototype would still apply.  */
101240
 
#ifdef __cplusplus
101241
 
extern "C"
101242
 
#endif
101243
 
char $ac_func ();
101244
 
/* The GNU C library defines this for functions which it implements
101245
 
    to always fail with ENOSYS.  Some functions are actually named
101246
 
    something starting with __ and the normal name is an alias.  */
101247
 
#if defined __stub_$ac_func || defined __stub___$ac_func
101248
 
choke me
101249
 
#endif
101250
 
 
101251
 
int
101252
 
main ()
101253
 
{
101254
 
return $ac_func ();
101255
 
  ;
101256
 
  return 0;
101257
 
}
101258
 
_ACEOF
101259
 
rm -f conftest.$ac_objext conftest$ac_exeext
101260
 
if { (ac_try="$ac_link"
101261
 
case "(($ac_try" in
101262
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101263
 
  *) ac_try_echo=$ac_try;;
101264
 
esac
101265
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101266
 
$as_echo "$ac_try_echo") >&5
101267
 
  (eval "$ac_link") 2>conftest.er1
101268
 
  ac_status=$?
101269
 
  grep -v '^ *+' conftest.er1 >conftest.err
101270
 
  rm -f conftest.er1
101271
 
  cat conftest.err >&5
101272
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101273
 
  (exit $ac_status); } && {
101274
 
         test -z "$ac_c_werror_flag" ||
101275
 
         test ! -s conftest.err
101276
 
       } && test -s conftest$ac_exeext && {
101277
 
         test "$cross_compiling" = yes ||
101278
 
         $as_test_x conftest$ac_exeext
101279
 
       }; then
101280
 
  eval "$as_ac_var=yes"
101281
 
else
101282
 
  $as_echo "$as_me: failed program was:" >&5
101283
 
sed 's/^/| /' conftest.$ac_ext >&5
101284
 
 
101285
 
        eval "$as_ac_var=no"
101286
 
fi
101287
 
 
101288
 
rm -rf conftest.dSYM
101289
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
101290
 
      conftest$ac_exeext conftest.$ac_ext
101291
 
fi
101292
 
ac_res=`eval 'as_val=${'$as_ac_var'}
101293
 
                 $as_echo "$as_val"'`
101294
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
101295
 
$as_echo "$ac_res" >&6; }
101296
 
as_val=`eval 'as_val=${'$as_ac_var'}
101297
 
                 $as_echo "$as_val"'`
101298
 
   if test "x$as_val" = x""yes; then
101299
 
  cat >>confdefs.h <<_ACEOF
101300
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
101301
 
_ACEOF
101302
 
 
101303
 
fi
101304
 
done
101305
 
 
101306
 
 
101307
 
  { $as_echo "$as_me:$LINENO: checking for working ttyname_r() implementation" >&5
101308
 
$as_echo_n "checking for working ttyname_r() implementation... " >&6; }
101309
 
  if test "$cross_compiling" = yes; then
101310
 
  
101311
 
    { $as_echo "$as_me:$LINENO: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5
101312
 
$as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; }
101313
 
  
101314
 
else
101315
 
  cat >conftest.$ac_ext <<_ACEOF
101316
 
/* confdefs.h.  */
101317
 
_ACEOF
101318
 
cat confdefs.h >>conftest.$ac_ext
101319
 
cat >>conftest.$ac_ext <<_ACEOF
101320
 
/* end confdefs.h.  */
101321
 
 
101322
 
#include <unistd.h>
101323
 
 
101324
 
int main(int argc, char *argv[])
101325
 
{
101326
 
        char buf[64];
101327
 
 
101328
 
        return ttyname_r(0, buf, 64) ? 1 : 0;
101329
 
}
101330
 
  
101331
 
_ACEOF
101332
 
rm -f conftest$ac_exeext
101333
 
if { (ac_try="$ac_link"
101334
 
case "(($ac_try" in
101335
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101336
 
  *) ac_try_echo=$ac_try;;
101337
 
esac
101338
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101339
 
$as_echo "$ac_try_echo") >&5
101340
 
  (eval "$ac_link") 2>&5
101341
 
  ac_status=$?
101342
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101343
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
101344
 
  { (case "(($ac_try" in
101345
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101346
 
  *) ac_try_echo=$ac_try;;
101347
 
esac
101348
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101349
 
$as_echo "$ac_try_echo") >&5
101350
 
  (eval "$ac_try") 2>&5
101351
 
  ac_status=$?
101352
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101353
 
  (exit $ac_status); }; }; then
101354
 
  
101355
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
101356
 
$as_echo "yes" >&6; }
101357
 
    
101358
 
cat >>confdefs.h <<\_ACEOF
101359
 
@%:@define HAVE_TTYNAME_R 1
101360
 
_ACEOF
101361
 
 
101362
 
  
101363
 
else
101364
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
101365
 
$as_echo "$as_me: failed program was:" >&5
101366
 
sed 's/^/| /' conftest.$ac_ext >&5
101367
 
 
101368
 
( exit $ac_status )
101369
 
 
101370
 
    { $as_echo "$as_me:$LINENO: result: no, posix_ttyname() will be thread-unsafe" >&5
101371
 
$as_echo "no, posix_ttyname() will be thread-unsafe" >&6; }
101372
 
  
101373
 
fi
101374
 
rm -rf conftest.dSYM
101375
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
101376
 
fi
101377
 
 
101378
 
 
101379
 
 
101380
 
  { $as_echo "$as_me:$LINENO: checking for utsname.domainname" >&5
101381
 
$as_echo_n "checking for utsname.domainname... " >&6; }
101382
 
if test "${ac_cv_have_utsname_domainname+set}" = set; then
101383
 
  $as_echo_n "(cached) " >&6
101384
 
else
101385
 
  
101386
 
    cat >conftest.$ac_ext <<_ACEOF
101387
 
/* confdefs.h.  */
101388
 
_ACEOF
101389
 
cat confdefs.h >>conftest.$ac_ext
101390
 
cat >>conftest.$ac_ext <<_ACEOF
101391
 
/* end confdefs.h.  */
101392
 
 
101393
 
      #define _GNU_SOURCE
101394
 
      #include <sys/utsname.h>
101395
 
    
101396
 
int
101397
 
main ()
101398
 
{
101399
 
 
101400
 
      return sizeof(((struct utsname *)0)->domainname);
101401
 
    
101402
 
  ;
101403
 
  return 0;
101404
 
}
101405
 
_ACEOF
101406
 
rm -f conftest.$ac_objext
101407
 
if { (ac_try="$ac_compile"
101408
 
case "(($ac_try" in
101409
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101410
 
  *) ac_try_echo=$ac_try;;
101411
 
esac
101412
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101413
 
$as_echo "$ac_try_echo") >&5
101414
 
  (eval "$ac_compile") 2>conftest.er1
101415
 
  ac_status=$?
101416
 
  grep -v '^ *+' conftest.er1 >conftest.err
101417
 
  rm -f conftest.er1
101418
 
  cat conftest.err >&5
101419
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101420
 
  (exit $ac_status); } && {
101421
 
         test -z "$ac_c_werror_flag" ||
101422
 
         test ! -s conftest.err
101423
 
       } && test -s conftest.$ac_objext; then
101424
 
  
101425
 
      ac_cv_have_utsname_domainname=yes
101426
 
    
101427
 
else
101428
 
  $as_echo "$as_me: failed program was:" >&5
101429
 
sed 's/^/| /' conftest.$ac_ext >&5
101430
 
 
101431
 
        
101432
 
      ac_cv_have_utsname_domainname=no
101433
 
    
101434
 
fi
101435
 
 
101436
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101437
 
  
101438
 
fi
101439
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_utsname_domainname" >&5
101440
 
$as_echo "$ac_cv_have_utsname_domainname" >&6; }
101441
 
  if test "$ac_cv_have_utsname_domainname" = yes; then
101442
 
    
101443
 
cat >>confdefs.h <<\_ACEOF
101444
 
@%:@define HAVE_UTSNAME_DOMAINNAME 1
101445
 
_ACEOF
101446
 
 
101447
 
  fi
101448
 
fi
101449
 
 
101450
 
 
101451
 
 
101452
 
php_with_pspell=no
101453
 
 
101454
 
{ $as_echo "$as_me:$LINENO: checking for PSPELL support" >&5
101455
 
$as_echo_n "checking for PSPELL support... " >&6; }
101456
 
 
101457
 
@%:@ Check whether --with-pspell was given.
101458
 
if test "${with_pspell+set}" = set; then
101459
 
  withval=$with_pspell; PHP_PSPELL=$withval
101460
 
else
101461
 
  
101462
 
  PHP_PSPELL=no
101463
 
  test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL
101464
 
 
101465
 
fi
101466
 
 
101467
 
 
101468
 
 
101469
 
ext_output="yes, shared"
101470
 
ext_shared=yes
101471
 
case $PHP_PSPELL in
101472
 
shared,*)
101473
 
  PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'`
101474
 
  ;;
101475
 
shared)
101476
 
  PHP_PSPELL=yes
101477
 
  ;;
101478
 
no)
101479
 
  ext_output=no
101480
 
  ext_shared=no
101481
 
  ;;
101482
 
*)
101483
 
  ext_output=yes
101484
 
  ext_shared=no
101485
 
  ;;
101486
 
esac
101487
 
 
101488
 
 
101489
 
 
101490
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
101491
 
$as_echo "$ext_output" >&6; }
101492
 
 
101493
 
 
101494
 
 
101495
 
 
101496
 
if test "$PHP_PSPELL" != "no"; then
101497
 
        
101498
 
  ext_builddir=ext/pspell
101499
 
  ext_srcdir=$abs_srcdir/ext/pspell
101500
 
 
101501
 
  ac_extra=
101502
 
 
101503
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
101504
 
    PHP_PSPELL_SHARED=no
101505
 
    
101506
 
  
101507
 
  case ext/pspell in
101508
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101509
 
  /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101510
 
  *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101511
 
  esac
101512
 
  
101513
 
  
101514
 
 
101515
 
  b_c_pre=$php_c_pre
101516
 
  b_cxx_pre=$php_cxx_pre
101517
 
  b_c_meta=$php_c_meta
101518
 
  b_cxx_meta=$php_cxx_meta
101519
 
  b_c_post=$php_c_post
101520
 
  b_cxx_post=$php_cxx_post
101521
 
  b_lo=$php_lo
101522
 
 
101523
 
 
101524
 
  old_IFS=$IFS
101525
 
  for ac_src in pspell.c; do
101526
 
  
101527
 
      IFS=.
101528
 
      set $ac_src
101529
 
      ac_obj=$1
101530
 
      IFS=$old_IFS
101531
 
      
101532
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101533
 
 
101534
 
      case $ac_src in
101535
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101536
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101537
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101538
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101539
 
      esac
101540
 
 
101541
 
    cat >>Makefile.objects<<EOF
101542
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101543
 
        $ac_comp
101544
 
EOF
101545
 
  done
101546
 
 
101547
 
 
101548
 
    EXT_STATIC="$EXT_STATIC pspell"
101549
 
    if test "$ext_shared" != "nocli"; then
101550
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
101551
 
    fi
101552
 
  else
101553
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
101554
 
      PHP_PSPELL_SHARED=yes
101555
 
      
101556
 
  case ext/pspell in
101557
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101558
 
  /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101559
 
  *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101560
 
  esac
101561
 
  
101562
 
  
101563
 
 
101564
 
  b_c_pre=$shared_c_pre
101565
 
  b_cxx_pre=$shared_cxx_pre
101566
 
  b_c_meta=$shared_c_meta
101567
 
  b_cxx_meta=$shared_cxx_meta
101568
 
  b_c_post=$shared_c_post
101569
 
  b_cxx_post=$shared_cxx_post
101570
 
  b_lo=$shared_lo
101571
 
 
101572
 
 
101573
 
  old_IFS=$IFS
101574
 
  for ac_src in pspell.c; do
101575
 
  
101576
 
      IFS=.
101577
 
      set $ac_src
101578
 
      ac_obj=$1
101579
 
      IFS=$old_IFS
101580
 
      
101581
 
      shared_objects_pspell="$shared_objects_pspell $ac_bdir$ac_obj.lo"
101582
 
 
101583
 
      case $ac_src in
101584
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101585
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101586
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101587
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101588
 
      esac
101589
 
 
101590
 
    cat >>Makefile.objects<<EOF
101591
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101592
 
        $ac_comp
101593
 
EOF
101594
 
  done
101595
 
 
101596
 
      case $host_alias in
101597
 
        *netware*)
101598
 
          
101599
 
  install_modules="install-modules"
101600
 
 
101601
 
  case $host_alias in
101602
 
    *aix*)
101603
 
      suffix=so
101604
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppspell.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PHPPSPELL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppspell.so '$ext_builddir'/phppspell.so'
101605
 
      ;;
101606
 
    *netware*)
101607
 
      suffix=nlm
101608
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) -L$(top_builddir)/netware -lphp5lib $(PSPELL_SHARED_LIBADD)'
101609
 
      ;;
101610
 
    *)
101611
 
      suffix=la
101612
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PHPPSPELL_SHARED_LIBADD)'
101613
 
      ;;
101614
 
  esac
101615
 
 
101616
 
  if test "x" = "xyes"; then
101617
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppspell.$suffix"
101618
 
  else
101619
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppspell.$suffix"
101620
 
  fi
101621
 
  
101622
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
101623
 
 
101624
 
  cat >>Makefile.objects<<EOF
101625
 
\$(phplibdir)/phppspell.$suffix: $ext_builddir/phppspell.$suffix
101626
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phppspell.$suffix \$(phplibdir)
101627
 
 
101628
 
$ext_builddir/phppspell.$suffix: \$(shared_objects_pspell) \$(PHPPSPELL_SHARED_DEPENDENCIES)
101629
 
        $link_cmd
101630
 
 
101631
 
EOF
101632
 
 
101633
 
          ;;
101634
 
        *)
101635
 
          
101636
 
  install_modules="install-modules"
101637
 
 
101638
 
  case $host_alias in
101639
 
    *aix*)
101640
 
      suffix=so
101641
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pspell.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PSPELL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pspell.so '$ext_builddir'/pspell.so'
101642
 
      ;;
101643
 
    *netware*)
101644
 
      suffix=nlm
101645
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) -L$(top_builddir)/netware -lphp5lib $(ELL_SHARED_LIBADD)'
101646
 
      ;;
101647
 
    *)
101648
 
      suffix=la
101649
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pspell) $(PSPELL_SHARED_LIBADD)'
101650
 
      ;;
101651
 
  esac
101652
 
 
101653
 
  if test "x" = "xyes"; then
101654
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pspell.$suffix"
101655
 
  else
101656
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pspell.$suffix"
101657
 
  fi
101658
 
  
101659
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
101660
 
 
101661
 
  cat >>Makefile.objects<<EOF
101662
 
\$(phplibdir)/pspell.$suffix: $ext_builddir/pspell.$suffix
101663
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/pspell.$suffix \$(phplibdir)
101664
 
 
101665
 
$ext_builddir/pspell.$suffix: \$(shared_objects_pspell) \$(PSPELL_SHARED_DEPENDENCIES)
101666
 
        $link_cmd
101667
 
 
101668
 
EOF
101669
 
 
101670
 
          ;;
101671
 
      esac
101672
 
      
101673
 
cat >>confdefs.h <<_ACEOF
101674
 
@%:@define COMPILE_DL_PSPELL 1
101675
 
_ACEOF
101676
 
 
101677
 
    fi
101678
 
  fi
101679
 
 
101680
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
101681
 
    PHP_PSPELL_SHARED=no
101682
 
    case "$PHP_SAPI" in
101683
 
      cgi|embed)
101684
 
        
101685
 
  
101686
 
  case ext/pspell in
101687
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101688
 
  /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101689
 
  *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101690
 
  esac
101691
 
  
101692
 
  
101693
 
 
101694
 
  b_c_pre=$php_c_pre
101695
 
  b_cxx_pre=$php_cxx_pre
101696
 
  b_c_meta=$php_c_meta
101697
 
  b_cxx_meta=$php_cxx_meta
101698
 
  b_c_post=$php_c_post
101699
 
  b_cxx_post=$php_cxx_post
101700
 
  b_lo=$php_lo
101701
 
 
101702
 
 
101703
 
  old_IFS=$IFS
101704
 
  for ac_src in pspell.c; do
101705
 
  
101706
 
      IFS=.
101707
 
      set $ac_src
101708
 
      ac_obj=$1
101709
 
      IFS=$old_IFS
101710
 
      
101711
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101712
 
 
101713
 
      case $ac_src in
101714
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101715
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101716
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101717
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101718
 
      esac
101719
 
 
101720
 
    cat >>Makefile.objects<<EOF
101721
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101722
 
        $ac_comp
101723
 
EOF
101724
 
  done
101725
 
 
101726
 
 
101727
 
        EXT_STATIC="$EXT_STATIC pspell"
101728
 
        ;;
101729
 
      *)
101730
 
        
101731
 
  
101732
 
  case ext/pspell in
101733
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101734
 
  /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101735
 
  *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101736
 
  esac
101737
 
  
101738
 
  
101739
 
 
101740
 
  b_c_pre=$php_c_pre
101741
 
  b_cxx_pre=$php_cxx_pre
101742
 
  b_c_meta=$php_c_meta
101743
 
  b_cxx_meta=$php_cxx_meta
101744
 
  b_c_post=$php_c_post
101745
 
  b_cxx_post=$php_cxx_post
101746
 
  b_lo=$php_lo
101747
 
 
101748
 
 
101749
 
  old_IFS=$IFS
101750
 
  for ac_src in pspell.c; do
101751
 
  
101752
 
      IFS=.
101753
 
      set $ac_src
101754
 
      ac_obj=$1
101755
 
      IFS=$old_IFS
101756
 
      
101757
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
101758
 
 
101759
 
      case $ac_src in
101760
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101761
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101762
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101763
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101764
 
      esac
101765
 
 
101766
 
    cat >>Makefile.objects<<EOF
101767
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101768
 
        $ac_comp
101769
 
EOF
101770
 
  done
101771
 
 
101772
 
 
101773
 
        ;;
101774
 
    esac
101775
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
101776
 
  fi
101777
 
  
101778
 
  
101779
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
101780
 
  
101781
 
 
101782
 
 
101783
 
  if test "$ext_builddir" = "."; then
101784
 
    PHP_PECL_EXTENSION=pspell
101785
 
    
101786
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
101787
 
 
101788
 
  fi
101789
 
 
101790
 
        if test "$PHP_PSPELL" != "yes"; then
101791
 
            PSPELL_SEARCH_DIRS=$PHP_PSPELL
101792
 
        else
101793
 
            PSPELL_SEARCH_DIRS="/usr/local /usr"
101794
 
        fi
101795
 
        for i in $PSPELL_SEARCH_DIRS; do
101796
 
                if test -f $i/include/pspell/pspell.h; then
101797
 
                        PSPELL_DIR=$i
101798
 
                        PSPELL_INCDIR=$i/include/pspell
101799
 
                elif test -f $i/include/pspell.h; then
101800
 
                        PSPELL_DIR=$i
101801
 
                        PSPELL_INCDIR=$i/include
101802
 
                fi
101803
 
        done
101804
 
 
101805
 
        if test -z "$PSPELL_DIR"; then
101806
 
                { { $as_echo "$as_me:$LINENO: error: Cannot find pspell" >&5
101807
 
$as_echo "$as_me: error: Cannot find pspell" >&2;}
101808
 
   { (exit 1); exit 1; }; }
101809
 
        fi
101810
 
 
101811
 
        PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR
101812
 
 
101813
 
        
101814
 
 
101815
 
  if test "$ext_shared" = "yes"; then
101816
 
    PSPELL_SHARED_LIBADD="-lpspell $PSPELL_SHARED_LIBADD"
101817
 
    if test -n "$PSPELL_LIBDIR"; then
101818
 
      
101819
 
  if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
101820
 
    
101821
 
  if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
101822
 
    ai_p=$PSPELL_LIBDIR
101823
 
  else
101824
 
    
101825
 
    ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
101826
 
    
101827
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101828
 
    ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
101829
 
  fi
101830
 
 
101831
 
    
101832
 
      if test "$ext_shared" = "yes"; then
101833
 
        PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
101834
 
        test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
101835
 
      else
101836
 
        
101837
 
  
101838
 
  
101839
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101840
 
  
101841
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101842
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
101843
 
    eval "LIBPATH$unique=set"
101844
 
    
101845
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101846
 
    LDFLAGS="$LDFLAGS -L$ai_p"
101847
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
101848
 
  
101849
 
  fi
101850
 
 
101851
 
 
101852
 
      fi
101853
 
    
101854
 
  fi
101855
 
 
101856
 
    fi
101857
 
  else
101858
 
    
101859
 
 
101860
 
  if test -n "$PSPELL_LIBDIR"; then
101861
 
    
101862
 
  if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
101863
 
    
101864
 
  if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
101865
 
    ai_p=$PSPELL_LIBDIR
101866
 
  else
101867
 
    
101868
 
    ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
101869
 
    
101870
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101871
 
    ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
101872
 
  fi
101873
 
 
101874
 
    
101875
 
      
101876
 
  
101877
 
  
101878
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101879
 
  
101880
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101881
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
101882
 
    eval "LIBPATH$unique=set"
101883
 
    
101884
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101885
 
    LDFLAGS="$LDFLAGS -L$ai_p"
101886
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
101887
 
  
101888
 
  fi
101889
 
 
101890
 
 
101891
 
    
101892
 
  fi
101893
 
 
101894
 
  fi
101895
 
  
101896
 
  
101897
 
  case pspell in
101898
 
  c|c_r|pthread*) ;;
101899
 
  *) 
101900
 
      LIBS="-lpspell $LIBS" 
101901
 
   ;;
101902
 
  esac
101903
 
 
101904
 
 
101905
 
 
101906
 
 
101907
 
  fi
101908
 
 
101909
 
 
101910
 
 
101911
 
                
101912
 
  save_old_LDFLAGS=$LDFLAGS
101913
 
  ac_stuff="
101914
 
                -L$PSPELL_LIBDIR
101915
 
        "
101916
 
  
101917
 
  save_ext_shared=$ext_shared
101918
 
  ext_shared=yes
101919
 
  
101920
 
  for ac_i in $ac_stuff; do
101921
 
    case $ac_i in
101922
 
    -pthread)
101923
 
      if test "$ext_shared" = "yes"; then
101924
 
        LDFLAGS="$LDFLAGS -pthread"
101925
 
      else
101926
 
        
101927
 
  
101928
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
101929
 
  
101930
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
101931
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
101932
 
    eval "EXTRA_LDFLAGS$unique=set"
101933
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
101934
 
  fi
101935
 
 
101936
 
      fi
101937
 
    ;;
101938
 
    -l*)
101939
 
      ac_ii=`echo $ac_i|cut -c 3-`
101940
 
      
101941
 
  
101942
 
  case $ac_ii in
101943
 
  c|c_r|pthread*) ;;
101944
 
  *) 
101945
 
    if test "$ext_shared" = "yes"; then
101946
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
101947
 
    else
101948
 
      
101949
 
  
101950
 
  case $ac_ii in
101951
 
  c|c_r|pthread*) ;;
101952
 
  *) 
101953
 
      LIBS="$LIBS -l$ac_ii" 
101954
 
   ;;
101955
 
  esac
101956
 
 
101957
 
 
101958
 
    fi
101959
 
   ;;
101960
 
  esac
101961
 
 
101962
 
 
101963
 
    ;;
101964
 
    -L*)
101965
 
      ac_ii=`echo $ac_i|cut -c 3-`
101966
 
      
101967
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
101968
 
    
101969
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
101970
 
    ai_p=$ac_ii
101971
 
  else
101972
 
    
101973
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
101974
 
    
101975
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101976
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
101977
 
  fi
101978
 
 
101979
 
    
101980
 
      if test "$ext_shared" = "yes"; then
101981
 
        LDFLAGS="-L$ai_p $LDFLAGS"
101982
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
101983
 
      else
101984
 
        
101985
 
  
101986
 
  
101987
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101988
 
  
101989
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101990
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
101991
 
    eval "LIBPATH$unique=set"
101992
 
    
101993
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101994
 
    LDFLAGS="$LDFLAGS -L$ai_p"
101995
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
101996
 
  
101997
 
  fi
101998
 
 
101999
 
 
102000
 
      fi
102001
 
    
102002
 
  fi
102003
 
 
102004
 
    ;;
102005
 
    esac
102006
 
  done
102007
 
 
102008
 
  { $as_echo "$as_me:$LINENO: checking for new_aspell_config in -laspell" >&5
102009
 
$as_echo_n "checking for new_aspell_config in -laspell... " >&6; }
102010
 
if test "${ac_cv_lib_aspell_new_aspell_config+set}" = set; then
102011
 
  $as_echo_n "(cached) " >&6
102012
 
else
102013
 
  ac_check_lib_save_LIBS=$LIBS
102014
 
LIBS="-laspell  $LIBS"
102015
 
cat >conftest.$ac_ext <<_ACEOF
102016
 
/* confdefs.h.  */
102017
 
_ACEOF
102018
 
cat confdefs.h >>conftest.$ac_ext
102019
 
cat >>conftest.$ac_ext <<_ACEOF
102020
 
/* end confdefs.h.  */
102021
 
 
102022
 
/* Override any GCC internal prototype to avoid an error.
102023
 
   Use char because int might match the return type of a GCC
102024
 
   builtin and then its argument prototype would still apply.  */
102025
 
#ifdef __cplusplus
102026
 
extern "C"
102027
 
#endif
102028
 
char new_aspell_config ();
102029
 
int
102030
 
main ()
102031
 
{
102032
 
return new_aspell_config ();
102033
 
  ;
102034
 
  return 0;
102035
 
}
102036
 
_ACEOF
102037
 
rm -f conftest.$ac_objext conftest$ac_exeext
102038
 
if { (ac_try="$ac_link"
102039
 
case "(($ac_try" in
102040
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102041
 
  *) ac_try_echo=$ac_try;;
102042
 
esac
102043
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102044
 
$as_echo "$ac_try_echo") >&5
102045
 
  (eval "$ac_link") 2>conftest.er1
102046
 
  ac_status=$?
102047
 
  grep -v '^ *+' conftest.er1 >conftest.err
102048
 
  rm -f conftest.er1
102049
 
  cat conftest.err >&5
102050
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102051
 
  (exit $ac_status); } && {
102052
 
         test -z "$ac_c_werror_flag" ||
102053
 
         test ! -s conftest.err
102054
 
       } && test -s conftest$ac_exeext && {
102055
 
         test "$cross_compiling" = yes ||
102056
 
         $as_test_x conftest$ac_exeext
102057
 
       }; then
102058
 
  ac_cv_lib_aspell_new_aspell_config=yes
102059
 
else
102060
 
  $as_echo "$as_me: failed program was:" >&5
102061
 
sed 's/^/| /' conftest.$ac_ext >&5
102062
 
 
102063
 
        ac_cv_lib_aspell_new_aspell_config=no
102064
 
fi
102065
 
 
102066
 
rm -rf conftest.dSYM
102067
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102068
 
      conftest$ac_exeext conftest.$ac_ext
102069
 
LIBS=$ac_check_lib_save_LIBS
102070
 
fi
102071
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_aspell_new_aspell_config" >&5
102072
 
$as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; }
102073
 
if test "x$ac_cv_lib_aspell_new_aspell_config" = x""yes; then
102074
 
  
102075
 
    LDFLAGS=$save_old_LDFLAGS
102076
 
    ext_shared=$save_ext_shared
102077
 
    
102078
 
                
102079
 
 
102080
 
  if test "$ext_shared" = "yes"; then
102081
 
    PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD"
102082
 
    if test -n "$PSPELL_LIBDIR"; then
102083
 
      
102084
 
  if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
102085
 
    
102086
 
  if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
102087
 
    ai_p=$PSPELL_LIBDIR
102088
 
  else
102089
 
    
102090
 
    ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102091
 
    
102092
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102093
 
    ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
102094
 
  fi
102095
 
 
102096
 
    
102097
 
      if test "$ext_shared" = "yes"; then
102098
 
        PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
102099
 
        test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
102100
 
      else
102101
 
        
102102
 
  
102103
 
  
102104
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102105
 
  
102106
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102107
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102108
 
    eval "LIBPATH$unique=set"
102109
 
    
102110
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102111
 
    LDFLAGS="$LDFLAGS -L$ai_p"
102112
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
102113
 
  
102114
 
  fi
102115
 
 
102116
 
 
102117
 
      fi
102118
 
    
102119
 
  fi
102120
 
 
102121
 
    fi
102122
 
  else
102123
 
    
102124
 
 
102125
 
  if test -n "$PSPELL_LIBDIR"; then
102126
 
    
102127
 
  if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
102128
 
    
102129
 
  if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
102130
 
    ai_p=$PSPELL_LIBDIR
102131
 
  else
102132
 
    
102133
 
    ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102134
 
    
102135
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102136
 
    ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
102137
 
  fi
102138
 
 
102139
 
    
102140
 
      
102141
 
  
102142
 
  
102143
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102144
 
  
102145
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102146
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102147
 
    eval "LIBPATH$unique=set"
102148
 
    
102149
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102150
 
    LDFLAGS="$LDFLAGS -L$ai_p"
102151
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
102152
 
  
102153
 
  fi
102154
 
 
102155
 
 
102156
 
    
102157
 
  fi
102158
 
 
102159
 
  fi
102160
 
  
102161
 
  
102162
 
  case aspell in
102163
 
  c|c_r|pthread*) ;;
102164
 
  *) 
102165
 
      LIBS="-laspell $LIBS" 
102166
 
   ;;
102167
 
  esac
102168
 
 
102169
 
 
102170
 
 
102171
 
 
102172
 
  fi
102173
 
 
102174
 
 
102175
 
        
102176
 
  
102177
 
else
102178
 
  
102179
 
    LDFLAGS=$save_old_LDFLAGS
102180
 
    ext_shared=$save_ext_shared
102181
 
    unset ac_cv_lib_aspell_new_aspell_config
102182
 
    
102183
 
  
102184
 
fi
102185
 
 
102186
 
 
102187
 
        
102188
 
  if test "$PSPELL_INCDIR" != "/usr/include"; then
102189
 
    
102190
 
  if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then
102191
 
    ai_p=$PSPELL_INCDIR
102192
 
  else
102193
 
    
102194
 
    ep_dir="`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102195
 
    
102196
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102197
 
    ai_p="$ep_realdir/`basename \"$PSPELL_INCDIR\"`"
102198
 
  fi
102199
 
 
102200
 
    
102201
 
  
102202
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102203
 
  
102204
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
102205
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102206
 
    eval "INCLUDEPATH$unique=set"
102207
 
    
102208
 
      if test ""; then
102209
 
        INCLUDES="-I$ai_p $INCLUDES"
102210
 
      else
102211
 
        INCLUDES="$INCLUDES -I$ai_p"
102212
 
      fi
102213
 
    
102214
 
  fi
102215
 
 
102216
 
  fi
102217
 
 
102218
 
        
102219
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD"
102220
 
 
102221
 
        
102222
 
cat >>confdefs.h <<\_ACEOF
102223
 
@%:@define HAVE_PSPELL 1
102224
 
_ACEOF
102225
 
 
102226
 
fi
102227
 
 
102228
 
 
102229
 
 
102230
 
php_with_libedit=no
102231
 
 
102232
 
{ $as_echo "$as_me:$LINENO: checking for libedit readline replacement" >&5
102233
 
$as_echo_n "checking for libedit readline replacement... " >&6; }
102234
 
 
102235
 
@%:@ Check whether --with-libedit was given.
102236
 
if test "${with_libedit+set}" = set; then
102237
 
  withval=$with_libedit; PHP_LIBEDIT=$withval
102238
 
else
102239
 
  
102240
 
  PHP_LIBEDIT=no
102241
 
  test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL
102242
 
 
102243
 
fi
102244
 
 
102245
 
 
102246
 
 
102247
 
ext_output="yes, shared"
102248
 
ext_shared=yes
102249
 
case $PHP_LIBEDIT in
102250
 
shared,*)
102251
 
  PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'`
102252
 
  ;;
102253
 
shared)
102254
 
  PHP_LIBEDIT=yes
102255
 
  ;;
102256
 
no)
102257
 
  ext_output=no
102258
 
  ext_shared=no
102259
 
  ;;
102260
 
*)
102261
 
  ext_output=yes
102262
 
  ext_shared=no
102263
 
  ;;
102264
 
esac
102265
 
 
102266
 
 
102267
 
 
102268
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
102269
 
$as_echo "$ext_output" >&6; }
102270
 
 
102271
 
 
102272
 
 
102273
 
 
102274
 
if test "$PHP_LIBEDIT" = "no"; then
102275
 
  
102276
 
php_with_readline=no
102277
 
 
102278
 
{ $as_echo "$as_me:$LINENO: checking for readline support" >&5
102279
 
$as_echo_n "checking for readline support... " >&6; }
102280
 
 
102281
 
@%:@ Check whether --with-readline was given.
102282
 
if test "${with_readline+set}" = set; then
102283
 
  withval=$with_readline; PHP_READLINE=$withval
102284
 
else
102285
 
  
102286
 
  PHP_READLINE=no
102287
 
  test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL
102288
 
 
102289
 
fi
102290
 
 
102291
 
 
102292
 
 
102293
 
ext_output="yes, shared"
102294
 
ext_shared=yes
102295
 
case $PHP_READLINE in
102296
 
shared,*)
102297
 
  PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'`
102298
 
  ;;
102299
 
shared)
102300
 
  PHP_READLINE=yes
102301
 
  ;;
102302
 
no)
102303
 
  ext_output=no
102304
 
  ext_shared=no
102305
 
  ;;
102306
 
*)
102307
 
  ext_output=yes
102308
 
  ext_shared=no
102309
 
  ;;
102310
 
esac
102311
 
 
102312
 
 
102313
 
 
102314
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
102315
 
$as_echo "$ext_output" >&6; }
102316
 
 
102317
 
 
102318
 
 
102319
 
else
102320
 
    php_with_readline=no
102321
 
fi
102322
 
 
102323
 
if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
102324
 
  for i in $PHP_READLINE /usr/local /usr; do
102325
 
    test -f $i/include/readline/readline.h && READLINE_DIR=$i && break
102326
 
  done
102327
 
 
102328
 
  if test -z "$READLINE_DIR"; then
102329
 
    { { $as_echo "$as_me:$LINENO: error: Please reinstall readline - I cannot find readline.h" >&5
102330
 
$as_echo "$as_me: error: Please reinstall readline - I cannot find readline.h" >&2;}
102331
 
   { (exit 1); exit 1; }; }
102332
 
  fi
102333
 
 
102334
 
  
102335
 
  if test "$READLINE_DIR/include" != "/usr/include"; then
102336
 
    
102337
 
  if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then
102338
 
    ai_p=$READLINE_DIR/include
102339
 
  else
102340
 
    
102341
 
    ep_dir="`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
102342
 
    
102343
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102344
 
    ai_p="$ep_realdir/`basename \"$READLINE_DIR/include\"`"
102345
 
  fi
102346
 
 
102347
 
    
102348
 
  
102349
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102350
 
  
102351
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
102352
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102353
 
    eval "INCLUDEPATH$unique=set"
102354
 
    
102355
 
      if test ""; then
102356
 
        INCLUDES="-I$ai_p $INCLUDES"
102357
 
      else
102358
 
        INCLUDES="$INCLUDES -I$ai_p"
102359
 
      fi
102360
 
    
102361
 
  fi
102362
 
 
102363
 
  fi
102364
 
 
102365
 
 
102366
 
  PHP_READLINE_LIBS=""
102367
 
  { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
102368
 
$as_echo_n "checking for tgetent in -lncurses... " >&6; }
102369
 
if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
102370
 
  $as_echo_n "(cached) " >&6
102371
 
else
102372
 
  ac_check_lib_save_LIBS=$LIBS
102373
 
LIBS="-lncurses  $LIBS"
102374
 
cat >conftest.$ac_ext <<_ACEOF
102375
 
/* confdefs.h.  */
102376
 
_ACEOF
102377
 
cat confdefs.h >>conftest.$ac_ext
102378
 
cat >>conftest.$ac_ext <<_ACEOF
102379
 
/* end confdefs.h.  */
102380
 
 
102381
 
/* Override any GCC internal prototype to avoid an error.
102382
 
   Use char because int might match the return type of a GCC
102383
 
   builtin and then its argument prototype would still apply.  */
102384
 
#ifdef __cplusplus
102385
 
extern "C"
102386
 
#endif
102387
 
char tgetent ();
102388
 
int
102389
 
main ()
102390
 
{
102391
 
return tgetent ();
102392
 
  ;
102393
 
  return 0;
102394
 
}
102395
 
_ACEOF
102396
 
rm -f conftest.$ac_objext conftest$ac_exeext
102397
 
if { (ac_try="$ac_link"
102398
 
case "(($ac_try" in
102399
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102400
 
  *) ac_try_echo=$ac_try;;
102401
 
esac
102402
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102403
 
$as_echo "$ac_try_echo") >&5
102404
 
  (eval "$ac_link") 2>conftest.er1
102405
 
  ac_status=$?
102406
 
  grep -v '^ *+' conftest.er1 >conftest.err
102407
 
  rm -f conftest.er1
102408
 
  cat conftest.err >&5
102409
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102410
 
  (exit $ac_status); } && {
102411
 
         test -z "$ac_c_werror_flag" ||
102412
 
         test ! -s conftest.err
102413
 
       } && test -s conftest$ac_exeext && {
102414
 
         test "$cross_compiling" = yes ||
102415
 
         $as_test_x conftest$ac_exeext
102416
 
       }; then
102417
 
  ac_cv_lib_ncurses_tgetent=yes
102418
 
else
102419
 
  $as_echo "$as_me: failed program was:" >&5
102420
 
sed 's/^/| /' conftest.$ac_ext >&5
102421
 
 
102422
 
        ac_cv_lib_ncurses_tgetent=no
102423
 
fi
102424
 
 
102425
 
rm -rf conftest.dSYM
102426
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102427
 
      conftest$ac_exeext conftest.$ac_ext
102428
 
LIBS=$ac_check_lib_save_LIBS
102429
 
fi
102430
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
102431
 
$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
102432
 
if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
102433
 
  
102434
 
    
102435
 
  
102436
 
  case ncurses in
102437
 
  c|c_r|pthread*) ;;
102438
 
  *) 
102439
 
    if test "$ext_shared" = "yes"; then
102440
 
        READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" 
102441
 
    else
102442
 
      
102443
 
  
102444
 
  case ncurses in
102445
 
  c|c_r|pthread*) ;;
102446
 
  *) 
102447
 
      LIBS="-lncurses $LIBS" 
102448
 
   ;;
102449
 
  esac
102450
 
 
102451
 
 
102452
 
    fi
102453
 
   ;;
102454
 
  esac
102455
 
 
102456
 
 
102457
 
    PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses"
102458
 
  
102459
 
else
102460
 
  
102461
 
    { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
102462
 
$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
102463
 
if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
102464
 
  $as_echo_n "(cached) " >&6
102465
 
else
102466
 
  ac_check_lib_save_LIBS=$LIBS
102467
 
LIBS="-ltermcap  $LIBS"
102468
 
cat >conftest.$ac_ext <<_ACEOF
102469
 
/* confdefs.h.  */
102470
 
_ACEOF
102471
 
cat confdefs.h >>conftest.$ac_ext
102472
 
cat >>conftest.$ac_ext <<_ACEOF
102473
 
/* end confdefs.h.  */
102474
 
 
102475
 
/* Override any GCC internal prototype to avoid an error.
102476
 
   Use char because int might match the return type of a GCC
102477
 
   builtin and then its argument prototype would still apply.  */
102478
 
#ifdef __cplusplus
102479
 
extern "C"
102480
 
#endif
102481
 
char tgetent ();
102482
 
int
102483
 
main ()
102484
 
{
102485
 
return tgetent ();
102486
 
  ;
102487
 
  return 0;
102488
 
}
102489
 
_ACEOF
102490
 
rm -f conftest.$ac_objext conftest$ac_exeext
102491
 
if { (ac_try="$ac_link"
102492
 
case "(($ac_try" in
102493
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102494
 
  *) ac_try_echo=$ac_try;;
102495
 
esac
102496
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102497
 
$as_echo "$ac_try_echo") >&5
102498
 
  (eval "$ac_link") 2>conftest.er1
102499
 
  ac_status=$?
102500
 
  grep -v '^ *+' conftest.er1 >conftest.err
102501
 
  rm -f conftest.er1
102502
 
  cat conftest.err >&5
102503
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102504
 
  (exit $ac_status); } && {
102505
 
         test -z "$ac_c_werror_flag" ||
102506
 
         test ! -s conftest.err
102507
 
       } && test -s conftest$ac_exeext && {
102508
 
         test "$cross_compiling" = yes ||
102509
 
         $as_test_x conftest$ac_exeext
102510
 
       }; then
102511
 
  ac_cv_lib_termcap_tgetent=yes
102512
 
else
102513
 
  $as_echo "$as_me: failed program was:" >&5
102514
 
sed 's/^/| /' conftest.$ac_ext >&5
102515
 
 
102516
 
        ac_cv_lib_termcap_tgetent=no
102517
 
fi
102518
 
 
102519
 
rm -rf conftest.dSYM
102520
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102521
 
      conftest$ac_exeext conftest.$ac_ext
102522
 
LIBS=$ac_check_lib_save_LIBS
102523
 
fi
102524
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
102525
 
$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
102526
 
if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
102527
 
  
102528
 
      
102529
 
  
102530
 
  case termcap in
102531
 
  c|c_r|pthread*) ;;
102532
 
  *) 
102533
 
    if test "$ext_shared" = "yes"; then
102534
 
        READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" 
102535
 
    else
102536
 
      
102537
 
  
102538
 
  case termcap in
102539
 
  c|c_r|pthread*) ;;
102540
 
  *) 
102541
 
      LIBS="-ltermcap $LIBS" 
102542
 
   ;;
102543
 
  esac
102544
 
 
102545
 
 
102546
 
    fi
102547
 
   ;;
102548
 
  esac
102549
 
 
102550
 
 
102551
 
      PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap"
102552
 
    
102553
 
fi
102554
 
 
102555
 
  
102556
 
fi
102557
 
 
102558
 
 
102559
 
  
102560
 
  save_old_LDFLAGS=$LDFLAGS
102561
 
  ac_stuff="
102562
 
    -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
102563
 
  "
102564
 
  
102565
 
  save_ext_shared=$ext_shared
102566
 
  ext_shared=yes
102567
 
  
102568
 
  for ac_i in $ac_stuff; do
102569
 
    case $ac_i in
102570
 
    -pthread)
102571
 
      if test "$ext_shared" = "yes"; then
102572
 
        LDFLAGS="$LDFLAGS -pthread"
102573
 
      else
102574
 
        
102575
 
  
102576
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
102577
 
  
102578
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
102579
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102580
 
    eval "EXTRA_LDFLAGS$unique=set"
102581
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
102582
 
  fi
102583
 
 
102584
 
      fi
102585
 
    ;;
102586
 
    -l*)
102587
 
      ac_ii=`echo $ac_i|cut -c 3-`
102588
 
      
102589
 
  
102590
 
  case $ac_ii in
102591
 
  c|c_r|pthread*) ;;
102592
 
  *) 
102593
 
    if test "$ext_shared" = "yes"; then
102594
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
102595
 
    else
102596
 
      
102597
 
  
102598
 
  case $ac_ii in
102599
 
  c|c_r|pthread*) ;;
102600
 
  *) 
102601
 
      LIBS="$LIBS -l$ac_ii" 
102602
 
   ;;
102603
 
  esac
102604
 
 
102605
 
 
102606
 
    fi
102607
 
   ;;
102608
 
  esac
102609
 
 
102610
 
 
102611
 
    ;;
102612
 
    -L*)
102613
 
      ac_ii=`echo $ac_i|cut -c 3-`
102614
 
      
102615
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
102616
 
    
102617
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
102618
 
    ai_p=$ac_ii
102619
 
  else
102620
 
    
102621
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
102622
 
    
102623
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102624
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
102625
 
  fi
102626
 
 
102627
 
    
102628
 
      if test "$ext_shared" = "yes"; then
102629
 
        LDFLAGS="-L$ai_p $LDFLAGS"
102630
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
102631
 
      else
102632
 
        
102633
 
  
102634
 
  
102635
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102636
 
  
102637
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102638
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102639
 
    eval "LIBPATH$unique=set"
102640
 
    
102641
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102642
 
    LDFLAGS="$LDFLAGS -L$ai_p"
102643
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
102644
 
  
102645
 
  fi
102646
 
 
102647
 
 
102648
 
      fi
102649
 
    
102650
 
  fi
102651
 
 
102652
 
    ;;
102653
 
    esac
102654
 
  done
102655
 
 
102656
 
  { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
102657
 
$as_echo_n "checking for readline in -lreadline... " >&6; }
102658
 
if test "${ac_cv_lib_readline_readline+set}" = set; then
102659
 
  $as_echo_n "(cached) " >&6
102660
 
else
102661
 
  ac_check_lib_save_LIBS=$LIBS
102662
 
LIBS="-lreadline  $LIBS"
102663
 
cat >conftest.$ac_ext <<_ACEOF
102664
 
/* confdefs.h.  */
102665
 
_ACEOF
102666
 
cat confdefs.h >>conftest.$ac_ext
102667
 
cat >>conftest.$ac_ext <<_ACEOF
102668
 
/* end confdefs.h.  */
102669
 
 
102670
 
/* Override any GCC internal prototype to avoid an error.
102671
 
   Use char because int might match the return type of a GCC
102672
 
   builtin and then its argument prototype would still apply.  */
102673
 
#ifdef __cplusplus
102674
 
extern "C"
102675
 
#endif
102676
 
char readline ();
102677
 
int
102678
 
main ()
102679
 
{
102680
 
return readline ();
102681
 
  ;
102682
 
  return 0;
102683
 
}
102684
 
_ACEOF
102685
 
rm -f conftest.$ac_objext conftest$ac_exeext
102686
 
if { (ac_try="$ac_link"
102687
 
case "(($ac_try" in
102688
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102689
 
  *) ac_try_echo=$ac_try;;
102690
 
esac
102691
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102692
 
$as_echo "$ac_try_echo") >&5
102693
 
  (eval "$ac_link") 2>conftest.er1
102694
 
  ac_status=$?
102695
 
  grep -v '^ *+' conftest.er1 >conftest.err
102696
 
  rm -f conftest.er1
102697
 
  cat conftest.err >&5
102698
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102699
 
  (exit $ac_status); } && {
102700
 
         test -z "$ac_c_werror_flag" ||
102701
 
         test ! -s conftest.err
102702
 
       } && test -s conftest$ac_exeext && {
102703
 
         test "$cross_compiling" = yes ||
102704
 
         $as_test_x conftest$ac_exeext
102705
 
       }; then
102706
 
  ac_cv_lib_readline_readline=yes
102707
 
else
102708
 
  $as_echo "$as_me: failed program was:" >&5
102709
 
sed 's/^/| /' conftest.$ac_ext >&5
102710
 
 
102711
 
        ac_cv_lib_readline_readline=no
102712
 
fi
102713
 
 
102714
 
rm -rf conftest.dSYM
102715
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102716
 
      conftest$ac_exeext conftest.$ac_ext
102717
 
LIBS=$ac_check_lib_save_LIBS
102718
 
fi
102719
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
102720
 
$as_echo "$ac_cv_lib_readline_readline" >&6; }
102721
 
if test "x$ac_cv_lib_readline_readline" = x""yes; then
102722
 
  
102723
 
    LDFLAGS=$save_old_LDFLAGS
102724
 
    ext_shared=$save_ext_shared
102725
 
    
102726
 
    
102727
 
 
102728
 
  if test "$ext_shared" = "yes"; then
102729
 
    READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD"
102730
 
    if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
102731
 
      
102732
 
  if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
102733
 
    
102734
 
  if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
102735
 
    ai_p=$READLINE_DIR/$PHP_LIBDIR
102736
 
  else
102737
 
    
102738
 
    ep_dir="`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102739
 
    
102740
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102741
 
    ai_p="$ep_realdir/`basename \"$READLINE_DIR/$PHP_LIBDIR\"`"
102742
 
  fi
102743
 
 
102744
 
    
102745
 
      if test "$ext_shared" = "yes"; then
102746
 
        READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
102747
 
        test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
102748
 
      else
102749
 
        
102750
 
  
102751
 
  
102752
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102753
 
  
102754
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102755
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102756
 
    eval "LIBPATH$unique=set"
102757
 
    
102758
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102759
 
    LDFLAGS="$LDFLAGS -L$ai_p"
102760
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
102761
 
  
102762
 
  fi
102763
 
 
102764
 
 
102765
 
      fi
102766
 
    
102767
 
  fi
102768
 
 
102769
 
    fi
102770
 
  else
102771
 
    
102772
 
 
102773
 
  if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
102774
 
    
102775
 
  if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
102776
 
    
102777
 
  if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
102778
 
    ai_p=$READLINE_DIR/$PHP_LIBDIR
102779
 
  else
102780
 
    
102781
 
    ep_dir="`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102782
 
    
102783
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102784
 
    ai_p="$ep_realdir/`basename \"$READLINE_DIR/$PHP_LIBDIR\"`"
102785
 
  fi
102786
 
 
102787
 
    
102788
 
      
102789
 
  
102790
 
  
102791
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102792
 
  
102793
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102794
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102795
 
    eval "LIBPATH$unique=set"
102796
 
    
102797
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102798
 
    LDFLAGS="$LDFLAGS -L$ai_p"
102799
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
102800
 
  
102801
 
  fi
102802
 
 
102803
 
 
102804
 
    
102805
 
  fi
102806
 
 
102807
 
  fi
102808
 
  
102809
 
  
102810
 
  case readline in
102811
 
  c|c_r|pthread*) ;;
102812
 
  *) 
102813
 
      LIBS="-lreadline $LIBS" 
102814
 
   ;;
102815
 
  esac
102816
 
 
102817
 
 
102818
 
 
102819
 
 
102820
 
  fi
102821
 
 
102822
 
 
102823
 
  
102824
 
  
102825
 
else
102826
 
  
102827
 
    LDFLAGS=$save_old_LDFLAGS
102828
 
    ext_shared=$save_ext_shared
102829
 
    unset ac_cv_lib_readline_readline
102830
 
    
102831
 
    { { $as_echo "$as_me:$LINENO: error: readline library not found" >&5
102832
 
$as_echo "$as_me: error: readline library not found" >&2;}
102833
 
   { (exit 1); exit 1; }; }
102834
 
  
102835
 
  
102836
 
fi
102837
 
 
102838
 
 
102839
 
  
102840
 
  save_old_LDFLAGS=$LDFLAGS
102841
 
  ac_stuff="
102842
 
    -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
102843
 
  "
102844
 
  
102845
 
  save_ext_shared=$ext_shared
102846
 
  ext_shared=yes
102847
 
  
102848
 
  for ac_i in $ac_stuff; do
102849
 
    case $ac_i in
102850
 
    -pthread)
102851
 
      if test "$ext_shared" = "yes"; then
102852
 
        LDFLAGS="$LDFLAGS -pthread"
102853
 
      else
102854
 
        
102855
 
  
102856
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
102857
 
  
102858
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
102859
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102860
 
    eval "EXTRA_LDFLAGS$unique=set"
102861
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
102862
 
  fi
102863
 
 
102864
 
      fi
102865
 
    ;;
102866
 
    -l*)
102867
 
      ac_ii=`echo $ac_i|cut -c 3-`
102868
 
      
102869
 
  
102870
 
  case $ac_ii in
102871
 
  c|c_r|pthread*) ;;
102872
 
  *) 
102873
 
    if test "$ext_shared" = "yes"; then
102874
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
102875
 
    else
102876
 
      
102877
 
  
102878
 
  case $ac_ii in
102879
 
  c|c_r|pthread*) ;;
102880
 
  *) 
102881
 
      LIBS="$LIBS -l$ac_ii" 
102882
 
   ;;
102883
 
  esac
102884
 
 
102885
 
 
102886
 
    fi
102887
 
   ;;
102888
 
  esac
102889
 
 
102890
 
 
102891
 
    ;;
102892
 
    -L*)
102893
 
      ac_ii=`echo $ac_i|cut -c 3-`
102894
 
      
102895
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
102896
 
    
102897
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
102898
 
    ai_p=$ac_ii
102899
 
  else
102900
 
    
102901
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
102902
 
    
102903
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102904
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
102905
 
  fi
102906
 
 
102907
 
    
102908
 
      if test "$ext_shared" = "yes"; then
102909
 
        LDFLAGS="-L$ai_p $LDFLAGS"
102910
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
102911
 
      else
102912
 
        
102913
 
  
102914
 
  
102915
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102916
 
  
102917
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102918
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
102919
 
    eval "LIBPATH$unique=set"
102920
 
    
102921
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102922
 
    LDFLAGS="$LDFLAGS -L$ai_p"
102923
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
102924
 
  
102925
 
  fi
102926
 
 
102927
 
 
102928
 
      fi
102929
 
    
102930
 
  fi
102931
 
 
102932
 
    ;;
102933
 
    esac
102934
 
  done
102935
 
 
102936
 
  { $as_echo "$as_me:$LINENO: checking for rl_pending_input in -lreadline" >&5
102937
 
$as_echo_n "checking for rl_pending_input in -lreadline... " >&6; }
102938
 
if test "${ac_cv_lib_readline_rl_pending_input+set}" = set; then
102939
 
  $as_echo_n "(cached) " >&6
102940
 
else
102941
 
  ac_check_lib_save_LIBS=$LIBS
102942
 
LIBS="-lreadline  $LIBS"
102943
 
cat >conftest.$ac_ext <<_ACEOF
102944
 
/* confdefs.h.  */
102945
 
_ACEOF
102946
 
cat confdefs.h >>conftest.$ac_ext
102947
 
cat >>conftest.$ac_ext <<_ACEOF
102948
 
/* end confdefs.h.  */
102949
 
 
102950
 
/* Override any GCC internal prototype to avoid an error.
102951
 
   Use char because int might match the return type of a GCC
102952
 
   builtin and then its argument prototype would still apply.  */
102953
 
#ifdef __cplusplus
102954
 
extern "C"
102955
 
#endif
102956
 
char rl_pending_input ();
102957
 
int
102958
 
main ()
102959
 
{
102960
 
return rl_pending_input ();
102961
 
  ;
102962
 
  return 0;
102963
 
}
102964
 
_ACEOF
102965
 
rm -f conftest.$ac_objext conftest$ac_exeext
102966
 
if { (ac_try="$ac_link"
102967
 
case "(($ac_try" in
102968
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102969
 
  *) ac_try_echo=$ac_try;;
102970
 
esac
102971
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102972
 
$as_echo "$ac_try_echo") >&5
102973
 
  (eval "$ac_link") 2>conftest.er1
102974
 
  ac_status=$?
102975
 
  grep -v '^ *+' conftest.er1 >conftest.err
102976
 
  rm -f conftest.er1
102977
 
  cat conftest.err >&5
102978
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102979
 
  (exit $ac_status); } && {
102980
 
         test -z "$ac_c_werror_flag" ||
102981
 
         test ! -s conftest.err
102982
 
       } && test -s conftest$ac_exeext && {
102983
 
         test "$cross_compiling" = yes ||
102984
 
         $as_test_x conftest$ac_exeext
102985
 
       }; then
102986
 
  ac_cv_lib_readline_rl_pending_input=yes
102987
 
else
102988
 
  $as_echo "$as_me: failed program was:" >&5
102989
 
sed 's/^/| /' conftest.$ac_ext >&5
102990
 
 
102991
 
        ac_cv_lib_readline_rl_pending_input=no
102992
 
fi
102993
 
 
102994
 
rm -rf conftest.dSYM
102995
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102996
 
      conftest$ac_exeext conftest.$ac_ext
102997
 
LIBS=$ac_check_lib_save_LIBS
102998
 
fi
102999
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pending_input" >&5
103000
 
$as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; }
103001
 
if test "x$ac_cv_lib_readline_rl_pending_input" = x""yes; then
103002
 
  
103003
 
    LDFLAGS=$save_old_LDFLAGS
103004
 
    ext_shared=$save_ext_shared
103005
 
    
103006
 
  
103007
 
else
103008
 
  
103009
 
    LDFLAGS=$save_old_LDFLAGS
103010
 
    ext_shared=$save_ext_shared
103011
 
    unset ac_cv_lib_readline_rl_pending_input
103012
 
    
103013
 
    { { $as_echo "$as_me:$LINENO: error: invalid readline installation detected. Try --with-libedit instead." >&5
103014
 
$as_echo "$as_me: error: invalid readline installation detected. Try --with-libedit instead." >&2;}
103015
 
   { (exit 1); exit 1; }; }
103016
 
  
103017
 
  
103018
 
fi
103019
 
 
103020
 
 
103021
 
  
103022
 
  save_old_LDFLAGS=$LDFLAGS
103023
 
  ac_stuff="
103024
 
    -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
103025
 
  "
103026
 
  
103027
 
  save_ext_shared=$ext_shared
103028
 
  ext_shared=yes
103029
 
  
103030
 
  for ac_i in $ac_stuff; do
103031
 
    case $ac_i in
103032
 
    -pthread)
103033
 
      if test "$ext_shared" = "yes"; then
103034
 
        LDFLAGS="$LDFLAGS -pthread"
103035
 
      else
103036
 
        
103037
 
  
103038
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
103039
 
  
103040
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
103041
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
103042
 
    eval "EXTRA_LDFLAGS$unique=set"
103043
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
103044
 
  fi
103045
 
 
103046
 
      fi
103047
 
    ;;
103048
 
    -l*)
103049
 
      ac_ii=`echo $ac_i|cut -c 3-`
103050
 
      
103051
 
  
103052
 
  case $ac_ii in
103053
 
  c|c_r|pthread*) ;;
103054
 
  *) 
103055
 
    if test "$ext_shared" = "yes"; then
103056
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
103057
 
    else
103058
 
      
103059
 
  
103060
 
  case $ac_ii in
103061
 
  c|c_r|pthread*) ;;
103062
 
  *) 
103063
 
      LIBS="$LIBS -l$ac_ii" 
103064
 
   ;;
103065
 
  esac
103066
 
 
103067
 
 
103068
 
    fi
103069
 
   ;;
103070
 
  esac
103071
 
 
103072
 
 
103073
 
    ;;
103074
 
    -L*)
103075
 
      ac_ii=`echo $ac_i|cut -c 3-`
103076
 
      
103077
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
103078
 
    
103079
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
103080
 
    ai_p=$ac_ii
103081
 
  else
103082
 
    
103083
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
103084
 
    
103085
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103086
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
103087
 
  fi
103088
 
 
103089
 
    
103090
 
      if test "$ext_shared" = "yes"; then
103091
 
        LDFLAGS="-L$ai_p $LDFLAGS"
103092
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
103093
 
      else
103094
 
        
103095
 
  
103096
 
  
103097
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103098
 
  
103099
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103100
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
103101
 
    eval "LIBPATH$unique=set"
103102
 
    
103103
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103104
 
    LDFLAGS="$LDFLAGS -L$ai_p"
103105
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
103106
 
  
103107
 
  fi
103108
 
 
103109
 
 
103110
 
      fi
103111
 
    
103112
 
  fi
103113
 
 
103114
 
    ;;
103115
 
    esac
103116
 
  done
103117
 
 
103118
 
  { $as_echo "$as_me:$LINENO: checking for rl_callback_read_char in -lreadline" >&5
103119
 
$as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; }
103120
 
if test "${ac_cv_lib_readline_rl_callback_read_char+set}" = set; then
103121
 
  $as_echo_n "(cached) " >&6
103122
 
else
103123
 
  ac_check_lib_save_LIBS=$LIBS
103124
 
LIBS="-lreadline  $LIBS"
103125
 
cat >conftest.$ac_ext <<_ACEOF
103126
 
/* confdefs.h.  */
103127
 
_ACEOF
103128
 
cat confdefs.h >>conftest.$ac_ext
103129
 
cat >>conftest.$ac_ext <<_ACEOF
103130
 
/* end confdefs.h.  */
103131
 
 
103132
 
/* Override any GCC internal prototype to avoid an error.
103133
 
   Use char because int might match the return type of a GCC
103134
 
   builtin and then its argument prototype would still apply.  */
103135
 
#ifdef __cplusplus
103136
 
extern "C"
103137
 
#endif
103138
 
char rl_callback_read_char ();
103139
 
int
103140
 
main ()
103141
 
{
103142
 
return rl_callback_read_char ();
103143
 
  ;
103144
 
  return 0;
103145
 
}
103146
 
_ACEOF
103147
 
rm -f conftest.$ac_objext conftest$ac_exeext
103148
 
if { (ac_try="$ac_link"
103149
 
case "(($ac_try" in
103150
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103151
 
  *) ac_try_echo=$ac_try;;
103152
 
esac
103153
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103154
 
$as_echo "$ac_try_echo") >&5
103155
 
  (eval "$ac_link") 2>conftest.er1
103156
 
  ac_status=$?
103157
 
  grep -v '^ *+' conftest.er1 >conftest.err
103158
 
  rm -f conftest.er1
103159
 
  cat conftest.err >&5
103160
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103161
 
  (exit $ac_status); } && {
103162
 
         test -z "$ac_c_werror_flag" ||
103163
 
         test ! -s conftest.err
103164
 
       } && test -s conftest$ac_exeext && {
103165
 
         test "$cross_compiling" = yes ||
103166
 
         $as_test_x conftest$ac_exeext
103167
 
       }; then
103168
 
  ac_cv_lib_readline_rl_callback_read_char=yes
103169
 
else
103170
 
  $as_echo "$as_me: failed program was:" >&5
103171
 
sed 's/^/| /' conftest.$ac_ext >&5
103172
 
 
103173
 
        ac_cv_lib_readline_rl_callback_read_char=no
103174
 
fi
103175
 
 
103176
 
rm -rf conftest.dSYM
103177
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103178
 
      conftest$ac_exeext conftest.$ac_ext
103179
 
LIBS=$ac_check_lib_save_LIBS
103180
 
fi
103181
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_read_char" >&5
103182
 
$as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; }
103183
 
if test "x$ac_cv_lib_readline_rl_callback_read_char" = x""yes; then
103184
 
  
103185
 
    LDFLAGS=$save_old_LDFLAGS
103186
 
    ext_shared=$save_ext_shared
103187
 
    
103188
 
    
103189
 
cat >>confdefs.h <<\_ACEOF
103190
 
@%:@define HAVE_RL_CALLBACK_READ_CHAR 1
103191
 
_ACEOF
103192
 
 
103193
 
  
103194
 
  
103195
 
else
103196
 
  
103197
 
    LDFLAGS=$save_old_LDFLAGS
103198
 
    ext_shared=$save_ext_shared
103199
 
    unset ac_cv_lib_readline_rl_callback_read_char
103200
 
    
103201
 
  
103202
 
fi
103203
 
 
103204
 
 
103205
 
  
103206
 
cat >>confdefs.h <<\_ACEOF
103207
 
@%:@define HAVE_LIBREADLINE 1
103208
 
_ACEOF
103209
 
 
103210
 
 
103211
 
elif test "$PHP_LIBEDIT" != "no"; then
103212
 
 
103213
 
  for i in $PHP_LIBEDIT /usr/local /usr; do
103214
 
    test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
103215
 
  done
103216
 
 
103217
 
  if test -z "$LIBEDIT_DIR"; then
103218
 
    { { $as_echo "$as_me:$LINENO: error: Please reinstall libedit - I cannot find readline.h" >&5
103219
 
$as_echo "$as_me: error: Please reinstall libedit - I cannot find readline.h" >&2;}
103220
 
   { (exit 1); exit 1; }; }
103221
 
  fi
103222
 
 
103223
 
  
103224
 
  if test "$LIBEDIT_DIR/include" != "/usr/include"; then
103225
 
    
103226
 
  if test -z "$LIBEDIT_DIR/include" || echo "$LIBEDIT_DIR/include" | grep '^/' >/dev/null ; then
103227
 
    ai_p=$LIBEDIT_DIR/include
103228
 
  else
103229
 
    
103230
 
    ep_dir="`echo $LIBEDIT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
103231
 
    
103232
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103233
 
    ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/include\"`"
103234
 
  fi
103235
 
 
103236
 
    
103237
 
  
103238
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103239
 
  
103240
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
103241
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
103242
 
    eval "INCLUDEPATH$unique=set"
103243
 
    
103244
 
      if test ""; then
103245
 
        INCLUDES="-I$ai_p $INCLUDES"
103246
 
      else
103247
 
        INCLUDES="$INCLUDES -I$ai_p"
103248
 
      fi
103249
 
    
103250
 
  fi
103251
 
 
103252
 
  fi
103253
 
 
103254
 
 
103255
 
  { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
103256
 
$as_echo_n "checking for tgetent in -lncurses... " >&6; }
103257
 
if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
103258
 
  $as_echo_n "(cached) " >&6
103259
 
else
103260
 
  ac_check_lib_save_LIBS=$LIBS
103261
 
LIBS="-lncurses  $LIBS"
103262
 
cat >conftest.$ac_ext <<_ACEOF
103263
 
/* confdefs.h.  */
103264
 
_ACEOF
103265
 
cat confdefs.h >>conftest.$ac_ext
103266
 
cat >>conftest.$ac_ext <<_ACEOF
103267
 
/* end confdefs.h.  */
103268
 
 
103269
 
/* Override any GCC internal prototype to avoid an error.
103270
 
   Use char because int might match the return type of a GCC
103271
 
   builtin and then its argument prototype would still apply.  */
103272
 
#ifdef __cplusplus
103273
 
extern "C"
103274
 
#endif
103275
 
char tgetent ();
103276
 
int
103277
 
main ()
103278
 
{
103279
 
return tgetent ();
103280
 
  ;
103281
 
  return 0;
103282
 
}
103283
 
_ACEOF
103284
 
rm -f conftest.$ac_objext conftest$ac_exeext
103285
 
if { (ac_try="$ac_link"
103286
 
case "(($ac_try" in
103287
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103288
 
  *) ac_try_echo=$ac_try;;
103289
 
esac
103290
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103291
 
$as_echo "$ac_try_echo") >&5
103292
 
  (eval "$ac_link") 2>conftest.er1
103293
 
  ac_status=$?
103294
 
  grep -v '^ *+' conftest.er1 >conftest.err
103295
 
  rm -f conftest.er1
103296
 
  cat conftest.err >&5
103297
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103298
 
  (exit $ac_status); } && {
103299
 
         test -z "$ac_c_werror_flag" ||
103300
 
         test ! -s conftest.err
103301
 
       } && test -s conftest$ac_exeext && {
103302
 
         test "$cross_compiling" = yes ||
103303
 
         $as_test_x conftest$ac_exeext
103304
 
       }; then
103305
 
  ac_cv_lib_ncurses_tgetent=yes
103306
 
else
103307
 
  $as_echo "$as_me: failed program was:" >&5
103308
 
sed 's/^/| /' conftest.$ac_ext >&5
103309
 
 
103310
 
        ac_cv_lib_ncurses_tgetent=no
103311
 
fi
103312
 
 
103313
 
rm -rf conftest.dSYM
103314
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103315
 
      conftest$ac_exeext conftest.$ac_ext
103316
 
LIBS=$ac_check_lib_save_LIBS
103317
 
fi
103318
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
103319
 
$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
103320
 
if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
103321
 
  
103322
 
    
103323
 
  
103324
 
  case ncurses in
103325
 
  c|c_r|pthread*) ;;
103326
 
  *) 
103327
 
    if test "$ext_shared" = "yes"; then
103328
 
        READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD" 
103329
 
    else
103330
 
      
103331
 
  
103332
 
  case ncurses in
103333
 
  c|c_r|pthread*) ;;
103334
 
  *) 
103335
 
      LIBS="-lncurses $LIBS" 
103336
 
   ;;
103337
 
  esac
103338
 
 
103339
 
 
103340
 
    fi
103341
 
   ;;
103342
 
  esac
103343
 
 
103344
 
 
103345
 
  
103346
 
else
103347
 
  
103348
 
    { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
103349
 
$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
103350
 
if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
103351
 
  $as_echo_n "(cached) " >&6
103352
 
else
103353
 
  ac_check_lib_save_LIBS=$LIBS
103354
 
LIBS="-ltermcap  $LIBS"
103355
 
cat >conftest.$ac_ext <<_ACEOF
103356
 
/* confdefs.h.  */
103357
 
_ACEOF
103358
 
cat confdefs.h >>conftest.$ac_ext
103359
 
cat >>conftest.$ac_ext <<_ACEOF
103360
 
/* end confdefs.h.  */
103361
 
 
103362
 
/* Override any GCC internal prototype to avoid an error.
103363
 
   Use char because int might match the return type of a GCC
103364
 
   builtin and then its argument prototype would still apply.  */
103365
 
#ifdef __cplusplus
103366
 
extern "C"
103367
 
#endif
103368
 
char tgetent ();
103369
 
int
103370
 
main ()
103371
 
{
103372
 
return tgetent ();
103373
 
  ;
103374
 
  return 0;
103375
 
}
103376
 
_ACEOF
103377
 
rm -f conftest.$ac_objext conftest$ac_exeext
103378
 
if { (ac_try="$ac_link"
103379
 
case "(($ac_try" in
103380
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103381
 
  *) ac_try_echo=$ac_try;;
103382
 
esac
103383
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103384
 
$as_echo "$ac_try_echo") >&5
103385
 
  (eval "$ac_link") 2>conftest.er1
103386
 
  ac_status=$?
103387
 
  grep -v '^ *+' conftest.er1 >conftest.err
103388
 
  rm -f conftest.er1
103389
 
  cat conftest.err >&5
103390
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103391
 
  (exit $ac_status); } && {
103392
 
         test -z "$ac_c_werror_flag" ||
103393
 
         test ! -s conftest.err
103394
 
       } && test -s conftest$ac_exeext && {
103395
 
         test "$cross_compiling" = yes ||
103396
 
         $as_test_x conftest$ac_exeext
103397
 
       }; then
103398
 
  ac_cv_lib_termcap_tgetent=yes
103399
 
else
103400
 
  $as_echo "$as_me: failed program was:" >&5
103401
 
sed 's/^/| /' conftest.$ac_ext >&5
103402
 
 
103403
 
        ac_cv_lib_termcap_tgetent=no
103404
 
fi
103405
 
 
103406
 
rm -rf conftest.dSYM
103407
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103408
 
      conftest$ac_exeext conftest.$ac_ext
103409
 
LIBS=$ac_check_lib_save_LIBS
103410
 
fi
103411
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
103412
 
$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
103413
 
if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
103414
 
  
103415
 
      
103416
 
  
103417
 
  case termcap in
103418
 
  c|c_r|pthread*) ;;
103419
 
  *) 
103420
 
    if test "$ext_shared" = "yes"; then
103421
 
        READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD" 
103422
 
    else
103423
 
      
103424
 
  
103425
 
  case termcap in
103426
 
  c|c_r|pthread*) ;;
103427
 
  *) 
103428
 
      LIBS="-ltermcap $LIBS" 
103429
 
   ;;
103430
 
  esac
103431
 
 
103432
 
 
103433
 
    fi
103434
 
   ;;
103435
 
  esac
103436
 
 
103437
 
 
103438
 
    
103439
 
fi
103440
 
 
103441
 
  
103442
 
fi
103443
 
 
103444
 
 
103445
 
  
103446
 
  save_old_LDFLAGS=$LDFLAGS
103447
 
  ac_stuff="
103448
 
    -L$READLINE_DIR/$PHP_LIBDIR 
103449
 
  "
103450
 
  
103451
 
  save_ext_shared=$ext_shared
103452
 
  ext_shared=yes
103453
 
  
103454
 
  for ac_i in $ac_stuff; do
103455
 
    case $ac_i in
103456
 
    -pthread)
103457
 
      if test "$ext_shared" = "yes"; then
103458
 
        LDFLAGS="$LDFLAGS -pthread"
103459
 
      else
103460
 
        
103461
 
  
103462
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
103463
 
  
103464
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
103465
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
103466
 
    eval "EXTRA_LDFLAGS$unique=set"
103467
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
103468
 
  fi
103469
 
 
103470
 
      fi
103471
 
    ;;
103472
 
    -l*)
103473
 
      ac_ii=`echo $ac_i|cut -c 3-`
103474
 
      
103475
 
  
103476
 
  case $ac_ii in
103477
 
  c|c_r|pthread*) ;;
103478
 
  *) 
103479
 
    if test "$ext_shared" = "yes"; then
103480
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
103481
 
    else
103482
 
      
103483
 
  
103484
 
  case $ac_ii in
103485
 
  c|c_r|pthread*) ;;
103486
 
  *) 
103487
 
      LIBS="$LIBS -l$ac_ii" 
103488
 
   ;;
103489
 
  esac
103490
 
 
103491
 
 
103492
 
    fi
103493
 
   ;;
103494
 
  esac
103495
 
 
103496
 
 
103497
 
    ;;
103498
 
    -L*)
103499
 
      ac_ii=`echo $ac_i|cut -c 3-`
103500
 
      
103501
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
103502
 
    
103503
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
103504
 
    ai_p=$ac_ii
103505
 
  else
103506
 
    
103507
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
103508
 
    
103509
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103510
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
103511
 
  fi
103512
 
 
103513
 
    
103514
 
      if test "$ext_shared" = "yes"; then
103515
 
        LDFLAGS="-L$ai_p $LDFLAGS"
103516
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
103517
 
      else
103518
 
        
103519
 
  
103520
 
  
103521
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103522
 
  
103523
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103524
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
103525
 
    eval "LIBPATH$unique=set"
103526
 
    
103527
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103528
 
    LDFLAGS="$LDFLAGS -L$ai_p"
103529
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
103530
 
  
103531
 
  fi
103532
 
 
103533
 
 
103534
 
      fi
103535
 
    
103536
 
  fi
103537
 
 
103538
 
    ;;
103539
 
    esac
103540
 
  done
103541
 
 
103542
 
  { $as_echo "$as_me:$LINENO: checking for readline in -ledit" >&5
103543
 
$as_echo_n "checking for readline in -ledit... " >&6; }
103544
 
if test "${ac_cv_lib_edit_readline+set}" = set; then
103545
 
  $as_echo_n "(cached) " >&6
103546
 
else
103547
 
  ac_check_lib_save_LIBS=$LIBS
103548
 
LIBS="-ledit  $LIBS"
103549
 
cat >conftest.$ac_ext <<_ACEOF
103550
 
/* confdefs.h.  */
103551
 
_ACEOF
103552
 
cat confdefs.h >>conftest.$ac_ext
103553
 
cat >>conftest.$ac_ext <<_ACEOF
103554
 
/* end confdefs.h.  */
103555
 
 
103556
 
/* Override any GCC internal prototype to avoid an error.
103557
 
   Use char because int might match the return type of a GCC
103558
 
   builtin and then its argument prototype would still apply.  */
103559
 
#ifdef __cplusplus
103560
 
extern "C"
103561
 
#endif
103562
 
char readline ();
103563
 
int
103564
 
main ()
103565
 
{
103566
 
return readline ();
103567
 
  ;
103568
 
  return 0;
103569
 
}
103570
 
_ACEOF
103571
 
rm -f conftest.$ac_objext conftest$ac_exeext
103572
 
if { (ac_try="$ac_link"
103573
 
case "(($ac_try" in
103574
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103575
 
  *) ac_try_echo=$ac_try;;
103576
 
esac
103577
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103578
 
$as_echo "$ac_try_echo") >&5
103579
 
  (eval "$ac_link") 2>conftest.er1
103580
 
  ac_status=$?
103581
 
  grep -v '^ *+' conftest.er1 >conftest.err
103582
 
  rm -f conftest.er1
103583
 
  cat conftest.err >&5
103584
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103585
 
  (exit $ac_status); } && {
103586
 
         test -z "$ac_c_werror_flag" ||
103587
 
         test ! -s conftest.err
103588
 
       } && test -s conftest$ac_exeext && {
103589
 
         test "$cross_compiling" = yes ||
103590
 
         $as_test_x conftest$ac_exeext
103591
 
       }; then
103592
 
  ac_cv_lib_edit_readline=yes
103593
 
else
103594
 
  $as_echo "$as_me: failed program was:" >&5
103595
 
sed 's/^/| /' conftest.$ac_ext >&5
103596
 
 
103597
 
        ac_cv_lib_edit_readline=no
103598
 
fi
103599
 
 
103600
 
rm -rf conftest.dSYM
103601
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103602
 
      conftest$ac_exeext conftest.$ac_ext
103603
 
LIBS=$ac_check_lib_save_LIBS
103604
 
fi
103605
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5
103606
 
$as_echo "$ac_cv_lib_edit_readline" >&6; }
103607
 
if test "x$ac_cv_lib_edit_readline" = x""yes; then
103608
 
  
103609
 
    LDFLAGS=$save_old_LDFLAGS
103610
 
    ext_shared=$save_ext_shared
103611
 
    
103612
 
    
103613
 
 
103614
 
  if test "$ext_shared" = "yes"; then
103615
 
    READLINE_SHARED_LIBADD="-ledit $READLINE_SHARED_LIBADD"
103616
 
    if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
103617
 
      
103618
 
  if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
103619
 
    
103620
 
  if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
103621
 
    ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
103622
 
  else
103623
 
    
103624
 
    ep_dir="`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
103625
 
    
103626
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103627
 
    ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/$PHP_LIBDIR\"`"
103628
 
  fi
103629
 
 
103630
 
    
103631
 
      if test "$ext_shared" = "yes"; then
103632
 
        READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
103633
 
        test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
103634
 
      else
103635
 
        
103636
 
  
103637
 
  
103638
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103639
 
  
103640
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103641
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
103642
 
    eval "LIBPATH$unique=set"
103643
 
    
103644
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103645
 
    LDFLAGS="$LDFLAGS -L$ai_p"
103646
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
103647
 
  
103648
 
  fi
103649
 
 
103650
 
 
103651
 
      fi
103652
 
    
103653
 
  fi
103654
 
 
103655
 
    fi
103656
 
  else
103657
 
    
103658
 
 
103659
 
  if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
103660
 
    
103661
 
  if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
103662
 
    
103663
 
  if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
103664
 
    ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
103665
 
  else
103666
 
    
103667
 
    ep_dir="`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
103668
 
    
103669
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103670
 
    ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/$PHP_LIBDIR\"`"
103671
 
  fi
103672
 
 
103673
 
    
103674
 
      
103675
 
  
103676
 
  
103677
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103678
 
  
103679
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103680
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
103681
 
    eval "LIBPATH$unique=set"
103682
 
    
103683
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103684
 
    LDFLAGS="$LDFLAGS -L$ai_p"
103685
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
103686
 
  
103687
 
  fi
103688
 
 
103689
 
 
103690
 
    
103691
 
  fi
103692
 
 
103693
 
  fi
103694
 
  
103695
 
  
103696
 
  case edit in
103697
 
  c|c_r|pthread*) ;;
103698
 
  *) 
103699
 
      LIBS="-ledit $LIBS" 
103700
 
   ;;
103701
 
  esac
103702
 
 
103703
 
 
103704
 
 
103705
 
 
103706
 
  fi
103707
 
 
103708
 
  
103709
 
  
103710
 
  
103711
 
else
103712
 
  
103713
 
    LDFLAGS=$save_old_LDFLAGS
103714
 
    ext_shared=$save_ext_shared
103715
 
    unset ac_cv_lib_edit_readline
103716
 
    
103717
 
    { { $as_echo "$as_me:$LINENO: error: edit library required by readline not found" >&5
103718
 
$as_echo "$as_me: error: edit library required by readline not found" >&2;}
103719
 
   { (exit 1); exit 1; }; }
103720
 
  
103721
 
  
103722
 
fi
103723
 
 
103724
 
 
103725
 
  
103726
 
cat >>confdefs.h <<\_ACEOF
103727
 
@%:@define HAVE_LIBEDIT 1
103728
 
_ACEOF
103729
 
 
103730
 
fi
103731
 
 
103732
 
if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
103733
 
  
103734
 
for ac_func in rl_completion_matches
103735
 
do
103736
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
103737
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
103738
 
$as_echo_n "checking for $ac_func... " >&6; }
103739
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
103740
 
  $as_echo_n "(cached) " >&6
103741
 
else
103742
 
  cat >conftest.$ac_ext <<_ACEOF
103743
 
/* confdefs.h.  */
103744
 
_ACEOF
103745
 
cat confdefs.h >>conftest.$ac_ext
103746
 
cat >>conftest.$ac_ext <<_ACEOF
103747
 
/* end confdefs.h.  */
103748
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
103749
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
103750
 
#define $ac_func innocuous_$ac_func
103751
 
 
103752
 
/* System header to define __stub macros and hopefully few prototypes,
103753
 
    which can conflict with char $ac_func (); below.
103754
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
103755
 
    <limits.h> exists even on freestanding compilers.  */
103756
 
 
103757
 
#ifdef __STDC__
103758
 
# include <limits.h>
103759
 
#else
103760
 
# include <assert.h>
103761
 
#endif
103762
 
 
103763
 
#undef $ac_func
103764
 
 
103765
 
/* Override any GCC internal prototype to avoid an error.
103766
 
   Use char because int might match the return type of a GCC
103767
 
   builtin and then its argument prototype would still apply.  */
103768
 
#ifdef __cplusplus
103769
 
extern "C"
103770
 
#endif
103771
 
char $ac_func ();
103772
 
/* The GNU C library defines this for functions which it implements
103773
 
    to always fail with ENOSYS.  Some functions are actually named
103774
 
    something starting with __ and the normal name is an alias.  */
103775
 
#if defined __stub_$ac_func || defined __stub___$ac_func
103776
 
choke me
103777
 
#endif
103778
 
 
103779
 
int
103780
 
main ()
103781
 
{
103782
 
return $ac_func ();
103783
 
  ;
103784
 
  return 0;
103785
 
}
103786
 
_ACEOF
103787
 
rm -f conftest.$ac_objext conftest$ac_exeext
103788
 
if { (ac_try="$ac_link"
103789
 
case "(($ac_try" in
103790
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103791
 
  *) ac_try_echo=$ac_try;;
103792
 
esac
103793
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103794
 
$as_echo "$ac_try_echo") >&5
103795
 
  (eval "$ac_link") 2>conftest.er1
103796
 
  ac_status=$?
103797
 
  grep -v '^ *+' conftest.er1 >conftest.err
103798
 
  rm -f conftest.er1
103799
 
  cat conftest.err >&5
103800
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103801
 
  (exit $ac_status); } && {
103802
 
         test -z "$ac_c_werror_flag" ||
103803
 
         test ! -s conftest.err
103804
 
       } && test -s conftest$ac_exeext && {
103805
 
         test "$cross_compiling" = yes ||
103806
 
         $as_test_x conftest$ac_exeext
103807
 
       }; then
103808
 
  eval "$as_ac_var=yes"
103809
 
else
103810
 
  $as_echo "$as_me: failed program was:" >&5
103811
 
sed 's/^/| /' conftest.$ac_ext >&5
103812
 
 
103813
 
        eval "$as_ac_var=no"
103814
 
fi
103815
 
 
103816
 
rm -rf conftest.dSYM
103817
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103818
 
      conftest$ac_exeext conftest.$ac_ext
103819
 
fi
103820
 
ac_res=`eval 'as_val=${'$as_ac_var'}
103821
 
                 $as_echo "$as_val"'`
103822
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
103823
 
$as_echo "$ac_res" >&6; }
103824
 
as_val=`eval 'as_val=${'$as_ac_var'}
103825
 
                 $as_echo "$as_val"'`
103826
 
   if test "x$as_val" = x""yes; then
103827
 
  cat >>confdefs.h <<_ACEOF
103828
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
103829
 
_ACEOF
103830
 
 
103831
 
fi
103832
 
done
103833
 
 
103834
 
  
103835
 
  ext_builddir=ext/readline
103836
 
  ext_srcdir=$abs_srcdir/ext/readline
103837
 
 
103838
 
  ac_extra=
103839
 
 
103840
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
103841
 
    PHP_READLINE_SHARED=no
103842
 
    
103843
 
  
103844
 
  case ext/readline in
103845
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103846
 
  /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103847
 
  *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103848
 
  esac
103849
 
  
103850
 
  
103851
 
 
103852
 
  b_c_pre=$php_c_pre
103853
 
  b_cxx_pre=$php_cxx_pre
103854
 
  b_c_meta=$php_c_meta
103855
 
  b_cxx_meta=$php_cxx_meta
103856
 
  b_c_post=$php_c_post
103857
 
  b_cxx_post=$php_cxx_post
103858
 
  b_lo=$php_lo
103859
 
 
103860
 
 
103861
 
  old_IFS=$IFS
103862
 
  for ac_src in readline.c; do
103863
 
  
103864
 
      IFS=.
103865
 
      set $ac_src
103866
 
      ac_obj=$1
103867
 
      IFS=$old_IFS
103868
 
      
103869
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
103870
 
 
103871
 
      case $ac_src in
103872
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103873
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103874
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103875
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103876
 
      esac
103877
 
 
103878
 
    cat >>Makefile.objects<<EOF
103879
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103880
 
        $ac_comp
103881
 
EOF
103882
 
  done
103883
 
 
103884
 
 
103885
 
    EXT_STATIC="$EXT_STATIC readline"
103886
 
    if test "$ext_shared" != "nocli"; then
103887
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
103888
 
    fi
103889
 
  else
103890
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
103891
 
      PHP_READLINE_SHARED=yes
103892
 
      
103893
 
  case ext/readline in
103894
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103895
 
  /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103896
 
  *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103897
 
  esac
103898
 
  
103899
 
  
103900
 
 
103901
 
  b_c_pre=$shared_c_pre
103902
 
  b_cxx_pre=$shared_cxx_pre
103903
 
  b_c_meta=$shared_c_meta
103904
 
  b_cxx_meta=$shared_cxx_meta
103905
 
  b_c_post=$shared_c_post
103906
 
  b_cxx_post=$shared_cxx_post
103907
 
  b_lo=$shared_lo
103908
 
 
103909
 
 
103910
 
  old_IFS=$IFS
103911
 
  for ac_src in readline.c; do
103912
 
  
103913
 
      IFS=.
103914
 
      set $ac_src
103915
 
      ac_obj=$1
103916
 
      IFS=$old_IFS
103917
 
      
103918
 
      shared_objects_readline="$shared_objects_readline $ac_bdir$ac_obj.lo"
103919
 
 
103920
 
      case $ac_src in
103921
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103922
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103923
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103924
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103925
 
      esac
103926
 
 
103927
 
    cat >>Makefile.objects<<EOF
103928
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103929
 
        $ac_comp
103930
 
EOF
103931
 
  done
103932
 
 
103933
 
      case $host_alias in
103934
 
        *netware*)
103935
 
          
103936
 
  install_modules="install-modules"
103937
 
 
103938
 
  case $host_alias in
103939
 
    *aix*)
103940
 
      suffix=so
103941
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpreadline.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(PHPREADLINE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpreadline.so '$ext_builddir'/phpreadline.so'
103942
 
      ;;
103943
 
    *netware*)
103944
 
      suffix=nlm
103945
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) -L$(top_builddir)/netware -lphp5lib $(READLINE_SHARED_LIBADD)'
103946
 
      ;;
103947
 
    *)
103948
 
      suffix=la
103949
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(PHPREADLINE_SHARED_LIBADD)'
103950
 
      ;;
103951
 
  esac
103952
 
 
103953
 
  if test "x" = "xyes"; then
103954
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreadline.$suffix"
103955
 
  else
103956
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreadline.$suffix"
103957
 
  fi
103958
 
  
103959
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
103960
 
 
103961
 
  cat >>Makefile.objects<<EOF
103962
 
\$(phplibdir)/phpreadline.$suffix: $ext_builddir/phpreadline.$suffix
103963
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpreadline.$suffix \$(phplibdir)
103964
 
 
103965
 
$ext_builddir/phpreadline.$suffix: \$(shared_objects_readline) \$(PHPREADLINE_SHARED_DEPENDENCIES)
103966
 
        $link_cmd
103967
 
 
103968
 
EOF
103969
 
 
103970
 
          ;;
103971
 
        *)
103972
 
          
103973
 
  install_modules="install-modules"
103974
 
 
103975
 
  case $host_alias in
103976
 
    *aix*)
103977
 
      suffix=so
103978
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/readline.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(READLINE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/readline.so '$ext_builddir'/readline.so'
103979
 
      ;;
103980
 
    *netware*)
103981
 
      suffix=nlm
103982
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) -L$(top_builddir)/netware -lphp5lib $(DLINE_SHARED_LIBADD)'
103983
 
      ;;
103984
 
    *)
103985
 
      suffix=la
103986
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_readline) $(READLINE_SHARED_LIBADD)'
103987
 
      ;;
103988
 
  esac
103989
 
 
103990
 
  if test "x" = "xyes"; then
103991
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/readline.$suffix"
103992
 
  else
103993
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/readline.$suffix"
103994
 
  fi
103995
 
  
103996
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
103997
 
 
103998
 
  cat >>Makefile.objects<<EOF
103999
 
\$(phplibdir)/readline.$suffix: $ext_builddir/readline.$suffix
104000
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/readline.$suffix \$(phplibdir)
104001
 
 
104002
 
$ext_builddir/readline.$suffix: \$(shared_objects_readline) \$(READLINE_SHARED_DEPENDENCIES)
104003
 
        $link_cmd
104004
 
 
104005
 
EOF
104006
 
 
104007
 
          ;;
104008
 
      esac
104009
 
      
104010
 
cat >>confdefs.h <<_ACEOF
104011
 
@%:@define COMPILE_DL_READLINE 1
104012
 
_ACEOF
104013
 
 
104014
 
    fi
104015
 
  fi
104016
 
 
104017
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
104018
 
    PHP_READLINE_SHARED=no
104019
 
    case "$PHP_SAPI" in
104020
 
      cgi|embed)
104021
 
        
104022
 
  
104023
 
  case ext/readline in
104024
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104025
 
  /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104026
 
  *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104027
 
  esac
104028
 
  
104029
 
  
104030
 
 
104031
 
  b_c_pre=$php_c_pre
104032
 
  b_cxx_pre=$php_cxx_pre
104033
 
  b_c_meta=$php_c_meta
104034
 
  b_cxx_meta=$php_cxx_meta
104035
 
  b_c_post=$php_c_post
104036
 
  b_cxx_post=$php_cxx_post
104037
 
  b_lo=$php_lo
104038
 
 
104039
 
 
104040
 
  old_IFS=$IFS
104041
 
  for ac_src in readline.c; do
104042
 
  
104043
 
      IFS=.
104044
 
      set $ac_src
104045
 
      ac_obj=$1
104046
 
      IFS=$old_IFS
104047
 
      
104048
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
104049
 
 
104050
 
      case $ac_src in
104051
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104052
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104053
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104054
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104055
 
      esac
104056
 
 
104057
 
    cat >>Makefile.objects<<EOF
104058
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104059
 
        $ac_comp
104060
 
EOF
104061
 
  done
104062
 
 
104063
 
 
104064
 
        EXT_STATIC="$EXT_STATIC readline"
104065
 
        ;;
104066
 
      *)
104067
 
        
104068
 
  
104069
 
  case ext/readline in
104070
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104071
 
  /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104072
 
  *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104073
 
  esac
104074
 
  
104075
 
  
104076
 
 
104077
 
  b_c_pre=$php_c_pre
104078
 
  b_cxx_pre=$php_cxx_pre
104079
 
  b_c_meta=$php_c_meta
104080
 
  b_cxx_meta=$php_cxx_meta
104081
 
  b_c_post=$php_c_post
104082
 
  b_cxx_post=$php_cxx_post
104083
 
  b_lo=$php_lo
104084
 
 
104085
 
 
104086
 
  old_IFS=$IFS
104087
 
  for ac_src in readline.c; do
104088
 
  
104089
 
      IFS=.
104090
 
      set $ac_src
104091
 
      ac_obj=$1
104092
 
      IFS=$old_IFS
104093
 
      
104094
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
104095
 
 
104096
 
      case $ac_src in
104097
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104098
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104099
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104100
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104101
 
      esac
104102
 
 
104103
 
    cat >>Makefile.objects<<EOF
104104
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104105
 
        $ac_comp
104106
 
EOF
104107
 
  done
104108
 
 
104109
 
 
104110
 
        ;;
104111
 
    esac
104112
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
104113
 
  fi
104114
 
  
104115
 
  
104116
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
104117
 
  
104118
 
 
104119
 
 
104120
 
  if test "$ext_builddir" = "."; then
104121
 
    PHP_PECL_EXTENSION=readline
104122
 
    
104123
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
104124
 
 
104125
 
  fi
104126
 
 
104127
 
  
104128
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST READLINE_SHARED_LIBADD"
104129
 
 
104130
 
fi
104131
 
 
104132
 
 
104133
 
 
104134
 
php_with_recode=no
104135
 
 
104136
 
{ $as_echo "$as_me:$LINENO: checking for recode support" >&5
104137
 
$as_echo_n "checking for recode support... " >&6; }
104138
 
 
104139
 
@%:@ Check whether --with-recode was given.
104140
 
if test "${with_recode+set}" = set; then
104141
 
  withval=$with_recode; PHP_RECODE=$withval
104142
 
else
104143
 
  
104144
 
  PHP_RECODE=no
104145
 
  test "$PHP_ENABLE_ALL" && PHP_RECODE=$PHP_ENABLE_ALL
104146
 
 
104147
 
fi
104148
 
 
104149
 
 
104150
 
 
104151
 
ext_output="yes, shared"
104152
 
ext_shared=yes
104153
 
case $PHP_RECODE in
104154
 
shared,*)
104155
 
  PHP_RECODE=`echo "$PHP_RECODE"|$SED 's/^shared,//'`
104156
 
  ;;
104157
 
shared)
104158
 
  PHP_RECODE=yes
104159
 
  ;;
104160
 
no)
104161
 
  ext_output=no
104162
 
  ext_shared=no
104163
 
  ;;
104164
 
*)
104165
 
  ext_output=yes
104166
 
  ext_shared=no
104167
 
  ;;
104168
 
esac
104169
 
 
104170
 
 
104171
 
 
104172
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
104173
 
$as_echo "$ext_output" >&6; }
104174
 
 
104175
 
 
104176
 
 
104177
 
 
104178
 
if test "$PHP_RECODE" != "no"; then
104179
 
  RECODE_LIST="$PHP_RECODE /usr/local /usr /opt"
104180
 
 
104181
 
  for i in $RECODE_LIST; do
104182
 
    if test -f $i/include/recode.h; then
104183
 
      RECODE_DIR=$i
104184
 
      RECODE_INC=include
104185
 
      RECODE_LIB=$PHP_LIBDIR
104186
 
    fi
104187
 
    if test -f $i/include/recode/recode.h; then
104188
 
      RECODE_DIR=$i
104189
 
      RECODE_INC=include/recode
104190
 
      RECODE_LIB=$PHP_LIBDIR/recode
104191
 
    fi
104192
 
    if test -f $i/recode/include/recode.h; then
104193
 
      RECODE_DIR=$i/recode
104194
 
      RECODE_INC=include
104195
 
      RECODE_LIB=$PHP_LIBDIR
104196
 
    fi
104197
 
    test -n "$RECODE_DIR" && break
104198
 
  done
104199
 
 
104200
 
  if test -z "$RECODE_DIR"; then
104201
 
    { { $as_echo "$as_me:$LINENO: error: Can not find recode.h anywhere under $RECODE_LIST." >&5
104202
 
$as_echo "$as_me: error: Can not find recode.h anywhere under $RECODE_LIST." >&2;}
104203
 
   { (exit 1); exit 1; }; }
104204
 
  fi
104205
 
 
104206
 
  
104207
 
  save_old_LDFLAGS=$LDFLAGS
104208
 
  ac_stuff="
104209
 
    -L$RECODE_DIR/$RECODE_LIB
104210
 
  "
104211
 
  
104212
 
  save_ext_shared=$ext_shared
104213
 
  ext_shared=yes
104214
 
  
104215
 
  for ac_i in $ac_stuff; do
104216
 
    case $ac_i in
104217
 
    -pthread)
104218
 
      if test "$ext_shared" = "yes"; then
104219
 
        LDFLAGS="$LDFLAGS -pthread"
104220
 
      else
104221
 
        
104222
 
  
104223
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
104224
 
  
104225
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
104226
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
104227
 
    eval "EXTRA_LDFLAGS$unique=set"
104228
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
104229
 
  fi
104230
 
 
104231
 
      fi
104232
 
    ;;
104233
 
    -l*)
104234
 
      ac_ii=`echo $ac_i|cut -c 3-`
104235
 
      
104236
 
  
104237
 
  case $ac_ii in
104238
 
  c|c_r|pthread*) ;;
104239
 
  *) 
104240
 
    if test "$ext_shared" = "yes"; then
104241
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
104242
 
    else
104243
 
      
104244
 
  
104245
 
  case $ac_ii in
104246
 
  c|c_r|pthread*) ;;
104247
 
  *) 
104248
 
      LIBS="$LIBS -l$ac_ii" 
104249
 
   ;;
104250
 
  esac
104251
 
 
104252
 
 
104253
 
    fi
104254
 
   ;;
104255
 
  esac
104256
 
 
104257
 
 
104258
 
    ;;
104259
 
    -L*)
104260
 
      ac_ii=`echo $ac_i|cut -c 3-`
104261
 
      
104262
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
104263
 
    
104264
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
104265
 
    ai_p=$ac_ii
104266
 
  else
104267
 
    
104268
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
104269
 
    
104270
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104271
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
104272
 
  fi
104273
 
 
104274
 
    
104275
 
      if test "$ext_shared" = "yes"; then
104276
 
        LDFLAGS="-L$ai_p $LDFLAGS"
104277
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
104278
 
      else
104279
 
        
104280
 
  
104281
 
  
104282
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104283
 
  
104284
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104285
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
104286
 
    eval "LIBPATH$unique=set"
104287
 
    
104288
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104289
 
    LDFLAGS="$LDFLAGS -L$ai_p"
104290
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
104291
 
  
104292
 
  fi
104293
 
 
104294
 
 
104295
 
      fi
104296
 
    
104297
 
  fi
104298
 
 
104299
 
    ;;
104300
 
    esac
104301
 
  done
104302
 
 
104303
 
  { $as_echo "$as_me:$LINENO: checking for recode_format_table in -lrecode" >&5
104304
 
$as_echo_n "checking for recode_format_table in -lrecode... " >&6; }
104305
 
if test "${ac_cv_lib_recode_recode_format_table+set}" = set; then
104306
 
  $as_echo_n "(cached) " >&6
104307
 
else
104308
 
  ac_check_lib_save_LIBS=$LIBS
104309
 
LIBS="-lrecode  $LIBS"
104310
 
cat >conftest.$ac_ext <<_ACEOF
104311
 
/* confdefs.h.  */
104312
 
_ACEOF
104313
 
cat confdefs.h >>conftest.$ac_ext
104314
 
cat >>conftest.$ac_ext <<_ACEOF
104315
 
/* end confdefs.h.  */
104316
 
 
104317
 
/* Override any GCC internal prototype to avoid an error.
104318
 
   Use char because int might match the return type of a GCC
104319
 
   builtin and then its argument prototype would still apply.  */
104320
 
#ifdef __cplusplus
104321
 
extern "C"
104322
 
#endif
104323
 
char recode_format_table ();
104324
 
int
104325
 
main ()
104326
 
{
104327
 
return recode_format_table ();
104328
 
  ;
104329
 
  return 0;
104330
 
}
104331
 
_ACEOF
104332
 
rm -f conftest.$ac_objext conftest$ac_exeext
104333
 
if { (ac_try="$ac_link"
104334
 
case "(($ac_try" in
104335
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104336
 
  *) ac_try_echo=$ac_try;;
104337
 
esac
104338
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104339
 
$as_echo "$ac_try_echo") >&5
104340
 
  (eval "$ac_link") 2>conftest.er1
104341
 
  ac_status=$?
104342
 
  grep -v '^ *+' conftest.er1 >conftest.err
104343
 
  rm -f conftest.er1
104344
 
  cat conftest.err >&5
104345
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104346
 
  (exit $ac_status); } && {
104347
 
         test -z "$ac_c_werror_flag" ||
104348
 
         test ! -s conftest.err
104349
 
       } && test -s conftest$ac_exeext && {
104350
 
         test "$cross_compiling" = yes ||
104351
 
         $as_test_x conftest$ac_exeext
104352
 
       }; then
104353
 
  ac_cv_lib_recode_recode_format_table=yes
104354
 
else
104355
 
  $as_echo "$as_me: failed program was:" >&5
104356
 
sed 's/^/| /' conftest.$ac_ext >&5
104357
 
 
104358
 
        ac_cv_lib_recode_recode_format_table=no
104359
 
fi
104360
 
 
104361
 
rm -rf conftest.dSYM
104362
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
104363
 
      conftest$ac_exeext conftest.$ac_ext
104364
 
LIBS=$ac_check_lib_save_LIBS
104365
 
fi
104366
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_recode_recode_format_table" >&5
104367
 
$as_echo "$ac_cv_lib_recode_recode_format_table" >&6; }
104368
 
if test "x$ac_cv_lib_recode_recode_format_table" = x""yes; then
104369
 
  
104370
 
    LDFLAGS=$save_old_LDFLAGS
104371
 
    ext_shared=$save_ext_shared
104372
 
    
104373
 
    
104374
 
 
104375
 
  if test "$ext_shared" = "yes"; then
104376
 
    RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
104377
 
    if test -n "$RECODE_DIR/$RECODE_LIB"; then
104378
 
      
104379
 
  if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
104380
 
    
104381
 
  if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
104382
 
    ai_p=$RECODE_DIR/$RECODE_LIB
104383
 
  else
104384
 
    
104385
 
    ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
104386
 
    
104387
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104388
 
    ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
104389
 
  fi
104390
 
 
104391
 
    
104392
 
      if test "$ext_shared" = "yes"; then
104393
 
        RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
104394
 
        test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
104395
 
      else
104396
 
        
104397
 
  
104398
 
  
104399
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104400
 
  
104401
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104402
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
104403
 
    eval "LIBPATH$unique=set"
104404
 
    
104405
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104406
 
    LDFLAGS="$LDFLAGS -L$ai_p"
104407
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
104408
 
  
104409
 
  fi
104410
 
 
104411
 
 
104412
 
      fi
104413
 
    
104414
 
  fi
104415
 
 
104416
 
    fi
104417
 
  else
104418
 
    
104419
 
 
104420
 
  if test -n "$RECODE_DIR/$RECODE_LIB"; then
104421
 
    
104422
 
  if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
104423
 
    
104424
 
  if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
104425
 
    ai_p=$RECODE_DIR/$RECODE_LIB
104426
 
  else
104427
 
    
104428
 
    ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
104429
 
    
104430
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104431
 
    ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
104432
 
  fi
104433
 
 
104434
 
    
104435
 
      
104436
 
  
104437
 
  
104438
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104439
 
  
104440
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104441
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
104442
 
    eval "LIBPATH$unique=set"
104443
 
    
104444
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104445
 
    LDFLAGS="$LDFLAGS -L$ai_p"
104446
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
104447
 
  
104448
 
  fi
104449
 
 
104450
 
 
104451
 
    
104452
 
  fi
104453
 
 
104454
 
  fi
104455
 
  
104456
 
  
104457
 
  case recode in
104458
 
  c|c_r|pthread*) ;;
104459
 
  *) 
104460
 
      LIBS="-lrecode $LIBS" 
104461
 
   ;;
104462
 
  esac
104463
 
 
104464
 
 
104465
 
 
104466
 
 
104467
 
  fi
104468
 
 
104469
 
 
104470
 
  
104471
 
  
104472
 
else
104473
 
  
104474
 
    LDFLAGS=$save_old_LDFLAGS
104475
 
    ext_shared=$save_ext_shared
104476
 
    unset ac_cv_lib_recode_recode_format_table
104477
 
    
104478
 
    old_LDFLAGS=$LDFLAGS
104479
 
    old_LIBS=$LIBS
104480
 
    LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB"
104481
 
    LIBS="$LIBS -lrecode"
104482
 
    cat >conftest.$ac_ext <<_ACEOF
104483
 
/* confdefs.h.  */
104484
 
_ACEOF
104485
 
cat confdefs.h >>conftest.$ac_ext
104486
 
cat >>conftest.$ac_ext <<_ACEOF
104487
 
/* end confdefs.h.  */
104488
 
 
104489
 
char *program_name;
104490
 
    
104491
 
int
104492
 
main ()
104493
 
{
104494
 
 
104495
 
recode_format_table();
104496
 
    
104497
 
  ;
104498
 
  return 0;
104499
 
}
104500
 
_ACEOF
104501
 
rm -f conftest.$ac_objext conftest$ac_exeext
104502
 
if { (ac_try="$ac_link"
104503
 
case "(($ac_try" in
104504
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104505
 
  *) ac_try_echo=$ac_try;;
104506
 
esac
104507
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104508
 
$as_echo "$ac_try_echo") >&5
104509
 
  (eval "$ac_link") 2>conftest.er1
104510
 
  ac_status=$?
104511
 
  grep -v '^ *+' conftest.er1 >conftest.err
104512
 
  rm -f conftest.er1
104513
 
  cat conftest.err >&5
104514
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104515
 
  (exit $ac_status); } && {
104516
 
         test -z "$ac_c_werror_flag" ||
104517
 
         test ! -s conftest.err
104518
 
       } && test -s conftest$ac_exeext && {
104519
 
         test "$cross_compiling" = yes ||
104520
 
         $as_test_x conftest$ac_exeext
104521
 
       }; then
104522
 
  
104523
 
      
104524
 
 
104525
 
  if test "$ext_shared" = "yes"; then
104526
 
    RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
104527
 
    if test -n "$RECODE_DIR/$RECODE_LIB"; then
104528
 
      
104529
 
  if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
104530
 
    
104531
 
  if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
104532
 
    ai_p=$RECODE_DIR/$RECODE_LIB
104533
 
  else
104534
 
    
104535
 
    ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
104536
 
    
104537
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104538
 
    ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
104539
 
  fi
104540
 
 
104541
 
    
104542
 
      if test "$ext_shared" = "yes"; then
104543
 
        RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
104544
 
        test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
104545
 
      else
104546
 
        
104547
 
  
104548
 
  
104549
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104550
 
  
104551
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104552
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
104553
 
    eval "LIBPATH$unique=set"
104554
 
    
104555
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104556
 
    LDFLAGS="$LDFLAGS -L$ai_p"
104557
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
104558
 
  
104559
 
  fi
104560
 
 
104561
 
 
104562
 
      fi
104563
 
    
104564
 
  fi
104565
 
 
104566
 
    fi
104567
 
  else
104568
 
    
104569
 
 
104570
 
  if test -n "$RECODE_DIR/$RECODE_LIB"; then
104571
 
    
104572
 
  if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
104573
 
    
104574
 
  if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
104575
 
    ai_p=$RECODE_DIR/$RECODE_LIB
104576
 
  else
104577
 
    
104578
 
    ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
104579
 
    
104580
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104581
 
    ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
104582
 
  fi
104583
 
 
104584
 
    
104585
 
      
104586
 
  
104587
 
  
104588
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104589
 
  
104590
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104591
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
104592
 
    eval "LIBPATH$unique=set"
104593
 
    
104594
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104595
 
    LDFLAGS="$LDFLAGS -L$ai_p"
104596
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
104597
 
  
104598
 
  fi
104599
 
 
104600
 
 
104601
 
    
104602
 
  fi
104603
 
 
104604
 
  fi
104605
 
  
104606
 
  
104607
 
  case recode in
104608
 
  c|c_r|pthread*) ;;
104609
 
  *) 
104610
 
      DLIBS="-lrecode $DLIBS" 
104611
 
   ;;
104612
 
  esac
104613
 
 
104614
 
 
104615
 
 
104616
 
 
104617
 
  fi
104618
 
 
104619
 
 
104620
 
      
104621
 
cat >>confdefs.h <<\_ACEOF
104622
 
@%:@define HAVE_BROKEN_RECODE 1
104623
 
_ACEOF
104624
 
 
104625
 
    
104626
 
else
104627
 
  $as_echo "$as_me: failed program was:" >&5
104628
 
sed 's/^/| /' conftest.$ac_ext >&5
104629
 
 
104630
 
        
104631
 
      { { $as_echo "$as_me:$LINENO: error: I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" >&5
104632
 
$as_echo "$as_me: error: I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" >&2;}
104633
 
   { (exit 1); exit 1; }; }
104634
 
    
104635
 
fi
104636
 
 
104637
 
rm -rf conftest.dSYM
104638
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
104639
 
      conftest$ac_exeext conftest.$ac_ext
104640
 
    LIBS=$old_LIBS
104641
 
    LDFLAGS=$old_LDFLAGS
104642
 
  
104643
 
  
104644
 
fi
104645
 
 
104646
 
 
104647
 
  
104648
 
cat >>confdefs.h <<\_ACEOF
104649
 
@%:@define HAVE_LIBRECODE 1
104650
 
_ACEOF
104651
 
 
104652
 
  
104653
 
  if test "$RECODE_DIR/$RECODE_INC" != "/usr/include"; then
104654
 
    
104655
 
  if test -z "$RECODE_DIR/$RECODE_INC" || echo "$RECODE_DIR/$RECODE_INC" | grep '^/' >/dev/null ; then
104656
 
    ai_p=$RECODE_DIR/$RECODE_INC
104657
 
  else
104658
 
    
104659
 
    ep_dir="`echo $RECODE_DIR/$RECODE_INC|$SED 's%/*[^/][^/]*/*$%%'`"
104660
 
    
104661
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104662
 
    ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_INC\"`"
104663
 
  fi
104664
 
 
104665
 
    
104666
 
  
104667
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104668
 
  
104669
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
104670
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
104671
 
    eval "INCLUDEPATH$unique=set"
104672
 
    
104673
 
      if test ""; then
104674
 
        INCLUDES="-I$ai_p $INCLUDES"
104675
 
      else
104676
 
        INCLUDES="$INCLUDES -I$ai_p"
104677
 
      fi
104678
 
    
104679
 
  fi
104680
 
 
104681
 
  fi
104682
 
 
104683
 
  
104684
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST RECODE_SHARED_LIBADD"
104685
 
 
104686
 
  
104687
 
for ac_header in stdbool.h
104688
 
do
104689
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
104690
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104691
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
104692
 
$as_echo_n "checking for $ac_header... " >&6; }
104693
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104694
 
  $as_echo_n "(cached) " >&6
104695
 
fi
104696
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
104697
 
                 $as_echo "$as_val"'`
104698
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
104699
 
$as_echo "$ac_res" >&6; }
104700
 
else
104701
 
  # Is the header compilable?
104702
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
104703
 
$as_echo_n "checking $ac_header usability... " >&6; }
104704
 
cat >conftest.$ac_ext <<_ACEOF
104705
 
/* confdefs.h.  */
104706
 
_ACEOF
104707
 
cat confdefs.h >>conftest.$ac_ext
104708
 
cat >>conftest.$ac_ext <<_ACEOF
104709
 
/* end confdefs.h.  */
104710
 
$ac_includes_default
104711
 
@%:@include <$ac_header>
104712
 
_ACEOF
104713
 
rm -f conftest.$ac_objext
104714
 
if { (ac_try="$ac_compile"
104715
 
case "(($ac_try" in
104716
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104717
 
  *) ac_try_echo=$ac_try;;
104718
 
esac
104719
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104720
 
$as_echo "$ac_try_echo") >&5
104721
 
  (eval "$ac_compile") 2>conftest.er1
104722
 
  ac_status=$?
104723
 
  grep -v '^ *+' conftest.er1 >conftest.err
104724
 
  rm -f conftest.er1
104725
 
  cat conftest.err >&5
104726
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104727
 
  (exit $ac_status); } && {
104728
 
         test -z "$ac_c_werror_flag" ||
104729
 
         test ! -s conftest.err
104730
 
       } && test -s conftest.$ac_objext; then
104731
 
  ac_header_compiler=yes
104732
 
else
104733
 
  $as_echo "$as_me: failed program was:" >&5
104734
 
sed 's/^/| /' conftest.$ac_ext >&5
104735
 
 
104736
 
        ac_header_compiler=no
104737
 
fi
104738
 
 
104739
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
104740
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
104741
 
$as_echo "$ac_header_compiler" >&6; }
104742
 
 
104743
 
# Is the header present?
104744
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
104745
 
$as_echo_n "checking $ac_header presence... " >&6; }
104746
 
cat >conftest.$ac_ext <<_ACEOF
104747
 
/* confdefs.h.  */
104748
 
_ACEOF
104749
 
cat confdefs.h >>conftest.$ac_ext
104750
 
cat >>conftest.$ac_ext <<_ACEOF
104751
 
/* end confdefs.h.  */
104752
 
@%:@include <$ac_header>
104753
 
_ACEOF
104754
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
104755
 
case "(($ac_try" in
104756
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104757
 
  *) ac_try_echo=$ac_try;;
104758
 
esac
104759
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104760
 
$as_echo "$ac_try_echo") >&5
104761
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
104762
 
  ac_status=$?
104763
 
  grep -v '^ *+' conftest.er1 >conftest.err
104764
 
  rm -f conftest.er1
104765
 
  cat conftest.err >&5
104766
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104767
 
  (exit $ac_status); } >/dev/null && {
104768
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
104769
 
         test ! -s conftest.err
104770
 
       }; then
104771
 
  ac_header_preproc=yes
104772
 
else
104773
 
  $as_echo "$as_me: failed program was:" >&5
104774
 
sed 's/^/| /' conftest.$ac_ext >&5
104775
 
 
104776
 
  ac_header_preproc=no
104777
 
fi
104778
 
 
104779
 
rm -f conftest.err conftest.$ac_ext
104780
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
104781
 
$as_echo "$ac_header_preproc" >&6; }
104782
 
 
104783
 
# So?  What about this header?
104784
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
104785
 
  yes:no: )
104786
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
104787
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
104788
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
104789
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
104790
 
    ac_header_preproc=yes
104791
 
    ;;
104792
 
  no:yes:* )
104793
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
104794
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
104795
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
104796
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
104797
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
104798
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
104799
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
104800
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
104801
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
104802
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
104803
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
104804
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
104805
 
    
104806
 
    ;;
104807
 
esac
104808
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
104809
 
$as_echo_n "checking for $ac_header... " >&6; }
104810
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104811
 
  $as_echo_n "(cached) " >&6
104812
 
else
104813
 
  eval "$as_ac_Header=\$ac_header_preproc"
104814
 
fi
104815
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
104816
 
                 $as_echo "$as_val"'`
104817
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
104818
 
$as_echo "$ac_res" >&6; }
104819
 
 
104820
 
fi
104821
 
as_val=`eval 'as_val=${'$as_ac_Header'}
104822
 
                 $as_echo "$as_val"'`
104823
 
   if test "x$as_val" = x""yes; then
104824
 
  cat >>confdefs.h <<_ACEOF
104825
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
104826
 
_ACEOF
104827
 
 
104828
 
fi
104829
 
 
104830
 
done
104831
 
 
104832
 
  
104833
 
  ext_builddir=ext/recode
104834
 
  ext_srcdir=$abs_srcdir/ext/recode
104835
 
 
104836
 
  ac_extra=
104837
 
 
104838
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
104839
 
    PHP_RECODE_SHARED=no
104840
 
    
104841
 
  
104842
 
  case ext/recode in
104843
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104844
 
  /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104845
 
  *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104846
 
  esac
104847
 
  
104848
 
  
104849
 
 
104850
 
  b_c_pre=$php_c_pre
104851
 
  b_cxx_pre=$php_cxx_pre
104852
 
  b_c_meta=$php_c_meta
104853
 
  b_cxx_meta=$php_cxx_meta
104854
 
  b_c_post=$php_c_post
104855
 
  b_cxx_post=$php_cxx_post
104856
 
  b_lo=$php_lo
104857
 
 
104858
 
 
104859
 
  old_IFS=$IFS
104860
 
  for ac_src in recode.c; do
104861
 
  
104862
 
      IFS=.
104863
 
      set $ac_src
104864
 
      ac_obj=$1
104865
 
      IFS=$old_IFS
104866
 
      
104867
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
104868
 
 
104869
 
      case $ac_src in
104870
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104871
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104872
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104873
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104874
 
      esac
104875
 
 
104876
 
    cat >>Makefile.objects<<EOF
104877
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104878
 
        $ac_comp
104879
 
EOF
104880
 
  done
104881
 
 
104882
 
 
104883
 
    EXT_STATIC="$EXT_STATIC recode"
104884
 
    if test "$ext_shared" != "nocli"; then
104885
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
104886
 
    fi
104887
 
  else
104888
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
104889
 
      PHP_RECODE_SHARED=yes
104890
 
      
104891
 
  case ext/recode in
104892
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104893
 
  /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104894
 
  *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104895
 
  esac
104896
 
  
104897
 
  
104898
 
 
104899
 
  b_c_pre=$shared_c_pre
104900
 
  b_cxx_pre=$shared_cxx_pre
104901
 
  b_c_meta=$shared_c_meta
104902
 
  b_cxx_meta=$shared_cxx_meta
104903
 
  b_c_post=$shared_c_post
104904
 
  b_cxx_post=$shared_cxx_post
104905
 
  b_lo=$shared_lo
104906
 
 
104907
 
 
104908
 
  old_IFS=$IFS
104909
 
  for ac_src in recode.c; do
104910
 
  
104911
 
      IFS=.
104912
 
      set $ac_src
104913
 
      ac_obj=$1
104914
 
      IFS=$old_IFS
104915
 
      
104916
 
      shared_objects_recode="$shared_objects_recode $ac_bdir$ac_obj.lo"
104917
 
 
104918
 
      case $ac_src in
104919
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104920
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104921
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104922
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104923
 
      esac
104924
 
 
104925
 
    cat >>Makefile.objects<<EOF
104926
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104927
 
        $ac_comp
104928
 
EOF
104929
 
  done
104930
 
 
104931
 
      case $host_alias in
104932
 
        *netware*)
104933
 
          
104934
 
  install_modules="install-modules"
104935
 
 
104936
 
  case $host_alias in
104937
 
    *aix*)
104938
 
      suffix=so
104939
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phprecode.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(PHPRECODE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phprecode.so '$ext_builddir'/phprecode.so'
104940
 
      ;;
104941
 
    *netware*)
104942
 
      suffix=nlm
104943
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) -L$(top_builddir)/netware -lphp5lib $(RECODE_SHARED_LIBADD)'
104944
 
      ;;
104945
 
    *)
104946
 
      suffix=la
104947
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(PHPRECODE_SHARED_LIBADD)'
104948
 
      ;;
104949
 
  esac
104950
 
 
104951
 
  if test "x" = "xyes"; then
104952
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phprecode.$suffix"
104953
 
  else
104954
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phprecode.$suffix"
104955
 
  fi
104956
 
  
104957
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
104958
 
 
104959
 
  cat >>Makefile.objects<<EOF
104960
 
\$(phplibdir)/phprecode.$suffix: $ext_builddir/phprecode.$suffix
104961
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phprecode.$suffix \$(phplibdir)
104962
 
 
104963
 
$ext_builddir/phprecode.$suffix: \$(shared_objects_recode) \$(PHPRECODE_SHARED_DEPENDENCIES)
104964
 
        $link_cmd
104965
 
 
104966
 
EOF
104967
 
 
104968
 
          ;;
104969
 
        *)
104970
 
          
104971
 
  install_modules="install-modules"
104972
 
 
104973
 
  case $host_alias in
104974
 
    *aix*)
104975
 
      suffix=so
104976
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/recode.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(RECODE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/recode.so '$ext_builddir'/recode.so'
104977
 
      ;;
104978
 
    *netware*)
104979
 
      suffix=nlm
104980
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) -L$(top_builddir)/netware -lphp5lib $(ODE_SHARED_LIBADD)'
104981
 
      ;;
104982
 
    *)
104983
 
      suffix=la
104984
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_recode) $(RECODE_SHARED_LIBADD)'
104985
 
      ;;
104986
 
  esac
104987
 
 
104988
 
  if test "x" = "xyes"; then
104989
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/recode.$suffix"
104990
 
  else
104991
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/recode.$suffix"
104992
 
  fi
104993
 
  
104994
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
104995
 
 
104996
 
  cat >>Makefile.objects<<EOF
104997
 
\$(phplibdir)/recode.$suffix: $ext_builddir/recode.$suffix
104998
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/recode.$suffix \$(phplibdir)
104999
 
 
105000
 
$ext_builddir/recode.$suffix: \$(shared_objects_recode) \$(RECODE_SHARED_DEPENDENCIES)
105001
 
        $link_cmd
105002
 
 
105003
 
EOF
105004
 
 
105005
 
          ;;
105006
 
      esac
105007
 
      
105008
 
cat >>confdefs.h <<_ACEOF
105009
 
@%:@define COMPILE_DL_RECODE 1
105010
 
_ACEOF
105011
 
 
105012
 
    fi
105013
 
  fi
105014
 
 
105015
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
105016
 
    PHP_RECODE_SHARED=no
105017
 
    case "$PHP_SAPI" in
105018
 
      cgi|embed)
105019
 
        
105020
 
  
105021
 
  case ext/recode in
105022
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105023
 
  /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105024
 
  *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105025
 
  esac
105026
 
  
105027
 
  
105028
 
 
105029
 
  b_c_pre=$php_c_pre
105030
 
  b_cxx_pre=$php_cxx_pre
105031
 
  b_c_meta=$php_c_meta
105032
 
  b_cxx_meta=$php_cxx_meta
105033
 
  b_c_post=$php_c_post
105034
 
  b_cxx_post=$php_cxx_post
105035
 
  b_lo=$php_lo
105036
 
 
105037
 
 
105038
 
  old_IFS=$IFS
105039
 
  for ac_src in recode.c; do
105040
 
  
105041
 
      IFS=.
105042
 
      set $ac_src
105043
 
      ac_obj=$1
105044
 
      IFS=$old_IFS
105045
 
      
105046
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
105047
 
 
105048
 
      case $ac_src in
105049
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105050
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105051
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105052
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105053
 
      esac
105054
 
 
105055
 
    cat >>Makefile.objects<<EOF
105056
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105057
 
        $ac_comp
105058
 
EOF
105059
 
  done
105060
 
 
105061
 
 
105062
 
        EXT_STATIC="$EXT_STATIC recode"
105063
 
        ;;
105064
 
      *)
105065
 
        
105066
 
  
105067
 
  case ext/recode in
105068
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105069
 
  /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105070
 
  *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105071
 
  esac
105072
 
  
105073
 
  
105074
 
 
105075
 
  b_c_pre=$php_c_pre
105076
 
  b_cxx_pre=$php_cxx_pre
105077
 
  b_c_meta=$php_c_meta
105078
 
  b_cxx_meta=$php_cxx_meta
105079
 
  b_c_post=$php_c_post
105080
 
  b_cxx_post=$php_cxx_post
105081
 
  b_lo=$php_lo
105082
 
 
105083
 
 
105084
 
  old_IFS=$IFS
105085
 
  for ac_src in recode.c; do
105086
 
  
105087
 
      IFS=.
105088
 
      set $ac_src
105089
 
      ac_obj=$1
105090
 
      IFS=$old_IFS
105091
 
      
105092
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
105093
 
 
105094
 
      case $ac_src in
105095
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105096
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105097
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105098
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105099
 
      esac
105100
 
 
105101
 
    cat >>Makefile.objects<<EOF
105102
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105103
 
        $ac_comp
105104
 
EOF
105105
 
  done
105106
 
 
105107
 
 
105108
 
        ;;
105109
 
    esac
105110
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
105111
 
  fi
105112
 
  
105113
 
  
105114
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
105115
 
  
105116
 
 
105117
 
 
105118
 
  if test "$ext_builddir" = "."; then
105119
 
    PHP_PECL_EXTENSION=recode
105120
 
    
105121
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
105122
 
 
105123
 
  fi
105124
 
 
105125
 
fi
105126
 
 
105127
 
 
105128
 
 
105129
 
cat >>confdefs.h <<\_ACEOF
105130
 
@%:@define HAVE_REFLECTION 1
105131
 
_ACEOF
105132
 
 
105133
 
 
105134
 
  ext_builddir=ext/reflection
105135
 
  ext_srcdir=$abs_srcdir/ext/reflection
105136
 
 
105137
 
  ac_extra=
105138
 
 
105139
 
  if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
105140
 
    PHP_REFLECTION_SHARED=no
105141
 
    
105142
 
  
105143
 
  case ext/reflection in
105144
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105145
 
  /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105146
 
  *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105147
 
  esac
105148
 
  
105149
 
  
105150
 
 
105151
 
  b_c_pre=$php_c_pre
105152
 
  b_cxx_pre=$php_cxx_pre
105153
 
  b_c_meta=$php_c_meta
105154
 
  b_cxx_meta=$php_cxx_meta
105155
 
  b_c_post=$php_c_post
105156
 
  b_cxx_post=$php_cxx_post
105157
 
  b_lo=$php_lo
105158
 
 
105159
 
 
105160
 
  old_IFS=$IFS
105161
 
  for ac_src in php_reflection.c; do
105162
 
  
105163
 
      IFS=.
105164
 
      set $ac_src
105165
 
      ac_obj=$1
105166
 
      IFS=$old_IFS
105167
 
      
105168
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
105169
 
 
105170
 
      case $ac_src in
105171
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105172
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105173
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105174
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105175
 
      esac
105176
 
 
105177
 
    cat >>Makefile.objects<<EOF
105178
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105179
 
        $ac_comp
105180
 
EOF
105181
 
  done
105182
 
 
105183
 
 
105184
 
    EXT_STATIC="$EXT_STATIC reflection"
105185
 
    if test "no" != "nocli"; then
105186
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
105187
 
    fi
105188
 
  else
105189
 
    if test "no" = "shared" || test "no" = "yes"; then
105190
 
      PHP_REFLECTION_SHARED=yes
105191
 
      
105192
 
  case ext/reflection in
105193
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105194
 
  /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105195
 
  *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105196
 
  esac
105197
 
  
105198
 
  
105199
 
 
105200
 
  b_c_pre=$shared_c_pre
105201
 
  b_cxx_pre=$shared_cxx_pre
105202
 
  b_c_meta=$shared_c_meta
105203
 
  b_cxx_meta=$shared_cxx_meta
105204
 
  b_c_post=$shared_c_post
105205
 
  b_cxx_post=$shared_cxx_post
105206
 
  b_lo=$shared_lo
105207
 
 
105208
 
 
105209
 
  old_IFS=$IFS
105210
 
  for ac_src in php_reflection.c; do
105211
 
  
105212
 
      IFS=.
105213
 
      set $ac_src
105214
 
      ac_obj=$1
105215
 
      IFS=$old_IFS
105216
 
      
105217
 
      shared_objects_reflection="$shared_objects_reflection $ac_bdir$ac_obj.lo"
105218
 
 
105219
 
      case $ac_src in
105220
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105221
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105222
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105223
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105224
 
      esac
105225
 
 
105226
 
    cat >>Makefile.objects<<EOF
105227
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105228
 
        $ac_comp
105229
 
EOF
105230
 
  done
105231
 
 
105232
 
      case $host_alias in
105233
 
        *netware*)
105234
 
          
105235
 
  install_modules="install-modules"
105236
 
 
105237
 
  case $host_alias in
105238
 
    *aix*)
105239
 
      suffix=so
105240
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpreflection.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(PHPREFLECTION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpreflection.so '$ext_builddir'/phpreflection.so'
105241
 
      ;;
105242
 
    *netware*)
105243
 
      suffix=nlm
105244
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) -L$(top_builddir)/netware -lphp5lib $(REFLECTION_SHARED_LIBADD)'
105245
 
      ;;
105246
 
    *)
105247
 
      suffix=la
105248
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(PHPREFLECTION_SHARED_LIBADD)'
105249
 
      ;;
105250
 
  esac
105251
 
 
105252
 
  if test "x" = "xyes"; then
105253
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreflection.$suffix"
105254
 
  else
105255
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreflection.$suffix"
105256
 
  fi
105257
 
  
105258
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
105259
 
 
105260
 
  cat >>Makefile.objects<<EOF
105261
 
\$(phplibdir)/phpreflection.$suffix: $ext_builddir/phpreflection.$suffix
105262
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpreflection.$suffix \$(phplibdir)
105263
 
 
105264
 
$ext_builddir/phpreflection.$suffix: \$(shared_objects_reflection) \$(PHPREFLECTION_SHARED_DEPENDENCIES)
105265
 
        $link_cmd
105266
 
 
105267
 
EOF
105268
 
 
105269
 
          ;;
105270
 
        *)
105271
 
          
105272
 
  install_modules="install-modules"
105273
 
 
105274
 
  case $host_alias in
105275
 
    *aix*)
105276
 
      suffix=so
105277
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/reflection.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(REFLECTION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/reflection.so '$ext_builddir'/reflection.so'
105278
 
      ;;
105279
 
    *netware*)
105280
 
      suffix=nlm
105281
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) -L$(top_builddir)/netware -lphp5lib $(LECTION_SHARED_LIBADD)'
105282
 
      ;;
105283
 
    *)
105284
 
      suffix=la
105285
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_reflection) $(REFLECTION_SHARED_LIBADD)'
105286
 
      ;;
105287
 
  esac
105288
 
 
105289
 
  if test "x" = "xyes"; then
105290
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/reflection.$suffix"
105291
 
  else
105292
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/reflection.$suffix"
105293
 
  fi
105294
 
  
105295
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
105296
 
 
105297
 
  cat >>Makefile.objects<<EOF
105298
 
\$(phplibdir)/reflection.$suffix: $ext_builddir/reflection.$suffix
105299
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/reflection.$suffix \$(phplibdir)
105300
 
 
105301
 
$ext_builddir/reflection.$suffix: \$(shared_objects_reflection) \$(REFLECTION_SHARED_DEPENDENCIES)
105302
 
        $link_cmd
105303
 
 
105304
 
EOF
105305
 
 
105306
 
          ;;
105307
 
      esac
105308
 
      
105309
 
cat >>confdefs.h <<_ACEOF
105310
 
@%:@define COMPILE_DL_REFLECTION 1
105311
 
_ACEOF
105312
 
 
105313
 
    fi
105314
 
  fi
105315
 
 
105316
 
  if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
105317
 
    PHP_REFLECTION_SHARED=no
105318
 
    case "$PHP_SAPI" in
105319
 
      cgi|embed)
105320
 
        
105321
 
  
105322
 
  case ext/reflection in
105323
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105324
 
  /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105325
 
  *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105326
 
  esac
105327
 
  
105328
 
  
105329
 
 
105330
 
  b_c_pre=$php_c_pre
105331
 
  b_cxx_pre=$php_cxx_pre
105332
 
  b_c_meta=$php_c_meta
105333
 
  b_cxx_meta=$php_cxx_meta
105334
 
  b_c_post=$php_c_post
105335
 
  b_cxx_post=$php_cxx_post
105336
 
  b_lo=$php_lo
105337
 
 
105338
 
 
105339
 
  old_IFS=$IFS
105340
 
  for ac_src in php_reflection.c; do
105341
 
  
105342
 
      IFS=.
105343
 
      set $ac_src
105344
 
      ac_obj=$1
105345
 
      IFS=$old_IFS
105346
 
      
105347
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
105348
 
 
105349
 
      case $ac_src in
105350
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105351
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105352
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105353
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105354
 
      esac
105355
 
 
105356
 
    cat >>Makefile.objects<<EOF
105357
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105358
 
        $ac_comp
105359
 
EOF
105360
 
  done
105361
 
 
105362
 
 
105363
 
        EXT_STATIC="$EXT_STATIC reflection"
105364
 
        ;;
105365
 
      *)
105366
 
        
105367
 
  
105368
 
  case ext/reflection in
105369
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105370
 
  /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105371
 
  *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105372
 
  esac
105373
 
  
105374
 
  
105375
 
 
105376
 
  b_c_pre=$php_c_pre
105377
 
  b_cxx_pre=$php_cxx_pre
105378
 
  b_c_meta=$php_c_meta
105379
 
  b_cxx_meta=$php_cxx_meta
105380
 
  b_c_post=$php_c_post
105381
 
  b_cxx_post=$php_cxx_post
105382
 
  b_lo=$php_lo
105383
 
 
105384
 
 
105385
 
  old_IFS=$IFS
105386
 
  for ac_src in php_reflection.c; do
105387
 
  
105388
 
      IFS=.
105389
 
      set $ac_src
105390
 
      ac_obj=$1
105391
 
      IFS=$old_IFS
105392
 
      
105393
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
105394
 
 
105395
 
      case $ac_src in
105396
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105397
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105398
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105399
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105400
 
      esac
105401
 
 
105402
 
    cat >>Makefile.objects<<EOF
105403
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105404
 
        $ac_comp
105405
 
EOF
105406
 
  done
105407
 
 
105408
 
 
105409
 
        ;;
105410
 
    esac
105411
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
105412
 
  fi
105413
 
  
105414
 
  
105415
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
105416
 
  
105417
 
 
105418
 
 
105419
 
  if test "$ext_builddir" = "."; then
105420
 
    PHP_PECL_EXTENSION=reflection
105421
 
    
105422
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
105423
 
 
105424
 
  fi
105425
 
 
105426
 
 
105427
 
 
105428
 
 
105429
 
php_enable_session=yes
105430
 
 
105431
 
{ $as_echo "$as_me:$LINENO: checking whether to enable PHP sessions" >&5
105432
 
$as_echo_n "checking whether to enable PHP sessions... " >&6; }
105433
 
@%:@ Check whether --enable-session was given.
105434
 
if test "${enable_session+set}" = set; then
105435
 
  enableval=$enable_session; PHP_SESSION=$enableval
105436
 
else
105437
 
  
105438
 
  PHP_SESSION=yes
105439
 
  test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL
105440
 
 
105441
 
fi
105442
 
 
105443
 
 
105444
 
 
105445
 
ext_output="yes, shared"
105446
 
ext_shared=yes
105447
 
case $PHP_SESSION in
105448
 
shared,*)
105449
 
  PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'`
105450
 
  ;;
105451
 
shared)
105452
 
  PHP_SESSION=yes
105453
 
  ;;
105454
 
no)
105455
 
  ext_output=no
105456
 
  ext_shared=no
105457
 
  ;;
105458
 
*)
105459
 
  ext_output=yes
105460
 
  ext_shared=no
105461
 
  ;;
105462
 
esac
105463
 
 
105464
 
 
105465
 
 
105466
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
105467
 
$as_echo "$ext_output" >&6; }
105468
 
 
105469
 
 
105470
 
 
105471
 
 
105472
 
 
105473
 
php_with_mm=no
105474
 
 
105475
 
{ $as_echo "$as_me:$LINENO: checking for mm support" >&5
105476
 
$as_echo_n "checking for mm support... " >&6; }
105477
 
 
105478
 
@%:@ Check whether --with-mm was given.
105479
 
if test "${with_mm+set}" = set; then
105480
 
  withval=$with_mm; PHP_MM=$withval
105481
 
else
105482
 
  
105483
 
  PHP_MM=no
105484
 
  
105485
 
 
105486
 
fi
105487
 
 
105488
 
 
105489
 
ext_output=$PHP_MM
105490
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
105491
 
$as_echo "$ext_output" >&6; }
105492
 
 
105493
 
 
105494
 
 
105495
 
 
105496
 
if test "$PHP_SESSION" != "no"; then
105497
 
  
105498
 
  { $as_echo "$as_me:$LINENO: checking whether pwrite works" >&5
105499
 
$as_echo_n "checking whether pwrite works... " >&6; }
105500
 
if test "${ac_cv_pwrite+set}" = set; then
105501
 
  $as_echo_n "(cached) " >&6
105502
 
else
105503
 
  
105504
 
    
105505
 
  if test "$cross_compiling" = yes; then
105506
 
  
105507
 
    ac_cv_pwrite=no
105508
 
  
105509
 
else
105510
 
  cat >conftest.$ac_ext <<_ACEOF
105511
 
/* confdefs.h.  */
105512
 
_ACEOF
105513
 
cat confdefs.h >>conftest.$ac_ext
105514
 
cat >>conftest.$ac_ext <<_ACEOF
105515
 
/* end confdefs.h.  */
105516
 
 
105517
 
#include <sys/types.h>
105518
 
#include <sys/stat.h>
105519
 
#include <fcntl.h>
105520
 
#include <unistd.h>
105521
 
#include <errno.h>
105522
 
 
105523
 
    main() {
105524
 
    int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
105525
 
 
105526
 
    if (fd < 0) exit(1);
105527
 
    if (pwrite(fd, "text", 4, 0) != 4) exit(1);
105528
 
    /* Linux glibc breakage until 2.2.5 */
105529
 
    if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
105530
 
    exit(0);
105531
 
    }
105532
 
 
105533
 
  
105534
 
_ACEOF
105535
 
rm -f conftest$ac_exeext
105536
 
if { (ac_try="$ac_link"
105537
 
case "(($ac_try" in
105538
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105539
 
  *) ac_try_echo=$ac_try;;
105540
 
esac
105541
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105542
 
$as_echo "$ac_try_echo") >&5
105543
 
  (eval "$ac_link") 2>&5
105544
 
  ac_status=$?
105545
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105546
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
105547
 
  { (case "(($ac_try" in
105548
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105549
 
  *) ac_try_echo=$ac_try;;
105550
 
esac
105551
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105552
 
$as_echo "$ac_try_echo") >&5
105553
 
  (eval "$ac_try") 2>&5
105554
 
  ac_status=$?
105555
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105556
 
  (exit $ac_status); }; }; then
105557
 
  
105558
 
    ac_cv_pwrite=yes
105559
 
  
105560
 
else
105561
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
105562
 
$as_echo "$as_me: failed program was:" >&5
105563
 
sed 's/^/| /' conftest.$ac_ext >&5
105564
 
 
105565
 
( exit $ac_status )
105566
 
 
105567
 
    ac_cv_pwrite=no
105568
 
  
105569
 
fi
105570
 
rm -rf conftest.dSYM
105571
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
105572
 
fi
105573
 
 
105574
 
 
105575
 
 
105576
 
    if test "$ac_cv_pwrite" = "no"; then
105577
 
      
105578
 
  if test "$cross_compiling" = yes; then
105579
 
  
105580
 
    ac_cv_pwrite=no
105581
 
  
105582
 
else
105583
 
  cat >conftest.$ac_ext <<_ACEOF
105584
 
/* confdefs.h.  */
105585
 
_ACEOF
105586
 
cat confdefs.h >>conftest.$ac_ext
105587
 
cat >>conftest.$ac_ext <<_ACEOF
105588
 
/* end confdefs.h.  */
105589
 
 
105590
 
#include <sys/types.h>
105591
 
#include <sys/stat.h>
105592
 
#include <fcntl.h>
105593
 
#include <unistd.h>
105594
 
#include <errno.h>
105595
 
ssize_t pwrite(int, void *, size_t, off64_t);
105596
 
    main() {
105597
 
    int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
105598
 
 
105599
 
    if (fd < 0) exit(1);
105600
 
    if (pwrite(fd, "text", 4, 0) != 4) exit(1);
105601
 
    /* Linux glibc breakage until 2.2.5 */
105602
 
    if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
105603
 
    exit(0);
105604
 
    }
105605
 
 
105606
 
  
105607
 
_ACEOF
105608
 
rm -f conftest$ac_exeext
105609
 
if { (ac_try="$ac_link"
105610
 
case "(($ac_try" in
105611
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105612
 
  *) ac_try_echo=$ac_try;;
105613
 
esac
105614
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105615
 
$as_echo "$ac_try_echo") >&5
105616
 
  (eval "$ac_link") 2>&5
105617
 
  ac_status=$?
105618
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105619
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
105620
 
  { (case "(($ac_try" in
105621
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105622
 
  *) ac_try_echo=$ac_try;;
105623
 
esac
105624
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105625
 
$as_echo "$ac_try_echo") >&5
105626
 
  (eval "$ac_try") 2>&5
105627
 
  ac_status=$?
105628
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105629
 
  (exit $ac_status); }; }; then
105630
 
  
105631
 
    ac_cv_pwrite=yes
105632
 
  
105633
 
else
105634
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
105635
 
$as_echo "$as_me: failed program was:" >&5
105636
 
sed 's/^/| /' conftest.$ac_ext >&5
105637
 
 
105638
 
( exit $ac_status )
105639
 
 
105640
 
    ac_cv_pwrite=no
105641
 
  
105642
 
fi
105643
 
rm -rf conftest.dSYM
105644
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
105645
 
fi
105646
 
 
105647
 
 
105648
 
 
105649
 
      if test "$ac_cv_pwrite" = "yes"; then
105650
 
        ac_cv_pwrite=64
105651
 
      fi
105652
 
    fi
105653
 
  
105654
 
fi
105655
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pwrite" >&5
105656
 
$as_echo "$ac_cv_pwrite" >&6; }
105657
 
 
105658
 
  if test "$ac_cv_pwrite" != "no"; then
105659
 
    
105660
 
cat >>confdefs.h <<\_ACEOF
105661
 
@%:@define HAVE_PWRITE 1
105662
 
_ACEOF
105663
 
 
105664
 
    if test "$ac_cv_pwrite" = "64"; then
105665
 
      
105666
 
cat >>confdefs.h <<\_ACEOF
105667
 
@%:@define PHP_PWRITE_64 1
105668
 
_ACEOF
105669
 
 
105670
 
    fi
105671
 
  fi  
105672
 
 
105673
 
  
105674
 
  { $as_echo "$as_me:$LINENO: checking whether pread works" >&5
105675
 
$as_echo_n "checking whether pread works... " >&6; }
105676
 
if test "${ac_cv_pread+set}" = set; then
105677
 
  $as_echo_n "(cached) " >&6
105678
 
else
105679
 
  
105680
 
    
105681
 
  echo test > conftest_in
105682
 
  if test "$cross_compiling" = yes; then
105683
 
  
105684
 
    ac_cv_pread=no
105685
 
  
105686
 
else
105687
 
  cat >conftest.$ac_ext <<_ACEOF
105688
 
/* confdefs.h.  */
105689
 
_ACEOF
105690
 
cat confdefs.h >>conftest.$ac_ext
105691
 
cat >>conftest.$ac_ext <<_ACEOF
105692
 
/* end confdefs.h.  */
105693
 
 
105694
 
#include <sys/types.h>
105695
 
#include <sys/stat.h>
105696
 
#include <fcntl.h>
105697
 
#include <unistd.h>
105698
 
#include <errno.h>
105699
 
 
105700
 
    main() {
105701
 
    char buf[3]; 
105702
 
    int fd = open("conftest_in", O_RDONLY);
105703
 
    if (fd < 0) exit(1);
105704
 
    if (pread(fd, buf, 2, 0) != 2) exit(1);
105705
 
    /* Linux glibc breakage until 2.2.5 */
105706
 
    if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
105707
 
    exit(0);
105708
 
    }
105709
 
  
105710
 
_ACEOF
105711
 
rm -f conftest$ac_exeext
105712
 
if { (ac_try="$ac_link"
105713
 
case "(($ac_try" in
105714
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105715
 
  *) ac_try_echo=$ac_try;;
105716
 
esac
105717
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105718
 
$as_echo "$ac_try_echo") >&5
105719
 
  (eval "$ac_link") 2>&5
105720
 
  ac_status=$?
105721
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105722
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
105723
 
  { (case "(($ac_try" in
105724
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105725
 
  *) ac_try_echo=$ac_try;;
105726
 
esac
105727
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105728
 
$as_echo "$ac_try_echo") >&5
105729
 
  (eval "$ac_try") 2>&5
105730
 
  ac_status=$?
105731
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105732
 
  (exit $ac_status); }; }; then
105733
 
  
105734
 
    ac_cv_pread=yes
105735
 
  
105736
 
else
105737
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
105738
 
$as_echo "$as_me: failed program was:" >&5
105739
 
sed 's/^/| /' conftest.$ac_ext >&5
105740
 
 
105741
 
( exit $ac_status )
105742
 
 
105743
 
    ac_cv_pread=no
105744
 
  
105745
 
fi
105746
 
rm -rf conftest.dSYM
105747
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
105748
 
fi
105749
 
 
105750
 
 
105751
 
  rm -f conftest_in
105752
 
 
105753
 
    if test "$ac_cv_pread" = "no"; then
105754
 
      
105755
 
  echo test > conftest_in
105756
 
  if test "$cross_compiling" = yes; then
105757
 
  
105758
 
    ac_cv_pread=no
105759
 
  
105760
 
else
105761
 
  cat >conftest.$ac_ext <<_ACEOF
105762
 
/* confdefs.h.  */
105763
 
_ACEOF
105764
 
cat confdefs.h >>conftest.$ac_ext
105765
 
cat >>conftest.$ac_ext <<_ACEOF
105766
 
/* end confdefs.h.  */
105767
 
 
105768
 
#include <sys/types.h>
105769
 
#include <sys/stat.h>
105770
 
#include <fcntl.h>
105771
 
#include <unistd.h>
105772
 
#include <errno.h>
105773
 
ssize_t pread(int, void *, size_t, off64_t);
105774
 
    main() {
105775
 
    char buf[3]; 
105776
 
    int fd = open("conftest_in", O_RDONLY);
105777
 
    if (fd < 0) exit(1);
105778
 
    if (pread(fd, buf, 2, 0) != 2) exit(1);
105779
 
    /* Linux glibc breakage until 2.2.5 */
105780
 
    if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
105781
 
    exit(0);
105782
 
    }
105783
 
  
105784
 
_ACEOF
105785
 
rm -f conftest$ac_exeext
105786
 
if { (ac_try="$ac_link"
105787
 
case "(($ac_try" in
105788
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105789
 
  *) ac_try_echo=$ac_try;;
105790
 
esac
105791
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105792
 
$as_echo "$ac_try_echo") >&5
105793
 
  (eval "$ac_link") 2>&5
105794
 
  ac_status=$?
105795
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105796
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
105797
 
  { (case "(($ac_try" in
105798
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105799
 
  *) ac_try_echo=$ac_try;;
105800
 
esac
105801
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105802
 
$as_echo "$ac_try_echo") >&5
105803
 
  (eval "$ac_try") 2>&5
105804
 
  ac_status=$?
105805
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105806
 
  (exit $ac_status); }; }; then
105807
 
  
105808
 
    ac_cv_pread=yes
105809
 
  
105810
 
else
105811
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
105812
 
$as_echo "$as_me: failed program was:" >&5
105813
 
sed 's/^/| /' conftest.$ac_ext >&5
105814
 
 
105815
 
( exit $ac_status )
105816
 
 
105817
 
    ac_cv_pread=no
105818
 
  
105819
 
fi
105820
 
rm -rf conftest.dSYM
105821
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
105822
 
fi
105823
 
 
105824
 
 
105825
 
  rm -f conftest_in
105826
 
 
105827
 
      if test "$ac_cv_pread" = "yes"; then
105828
 
        ac_cv_pread=64
105829
 
      fi
105830
 
    fi
105831
 
  
105832
 
fi
105833
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pread" >&5
105834
 
$as_echo "$ac_cv_pread" >&6; }
105835
 
 
105836
 
  if test "$ac_cv_pread" != "no"; then
105837
 
    
105838
 
cat >>confdefs.h <<\_ACEOF
105839
 
@%:@define HAVE_PREAD 1
105840
 
_ACEOF
105841
 
 
105842
 
    if test "$ac_cv_pread" = "64"; then
105843
 
      
105844
 
cat >>confdefs.h <<\_ACEOF
105845
 
@%:@define PHP_PREAD_64 1
105846
 
_ACEOF
105847
 
 
105848
 
    fi
105849
 
  fi  
105850
 
 
105851
 
  
105852
 
  ext_builddir=ext/session
105853
 
  ext_srcdir=$abs_srcdir/ext/session
105854
 
 
105855
 
  ac_extra=
105856
 
 
105857
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
105858
 
    PHP_SESSION_SHARED=no
105859
 
    
105860
 
  
105861
 
  case ext/session in
105862
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105863
 
  /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105864
 
  *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105865
 
  esac
105866
 
  
105867
 
  
105868
 
 
105869
 
  b_c_pre=$php_c_pre
105870
 
  b_cxx_pre=$php_cxx_pre
105871
 
  b_c_meta=$php_c_meta
105872
 
  b_cxx_meta=$php_cxx_meta
105873
 
  b_c_post=$php_c_post
105874
 
  b_cxx_post=$php_cxx_post
105875
 
  b_lo=$php_lo
105876
 
 
105877
 
 
105878
 
  old_IFS=$IFS
105879
 
  for ac_src in session.c mod_files.c mod_mm.c mod_user.c; do
105880
 
  
105881
 
      IFS=.
105882
 
      set $ac_src
105883
 
      ac_obj=$1
105884
 
      IFS=$old_IFS
105885
 
      
105886
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
105887
 
 
105888
 
      case $ac_src in
105889
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105890
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105891
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105892
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105893
 
      esac
105894
 
 
105895
 
    cat >>Makefile.objects<<EOF
105896
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105897
 
        $ac_comp
105898
 
EOF
105899
 
  done
105900
 
 
105901
 
 
105902
 
    EXT_STATIC="$EXT_STATIC session"
105903
 
    if test "$ext_shared" != "nocli"; then
105904
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC session"
105905
 
    fi
105906
 
  else
105907
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
105908
 
      PHP_SESSION_SHARED=yes
105909
 
      
105910
 
  case ext/session in
105911
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105912
 
  /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105913
 
  *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105914
 
  esac
105915
 
  
105916
 
  
105917
 
 
105918
 
  b_c_pre=$shared_c_pre
105919
 
  b_cxx_pre=$shared_cxx_pre
105920
 
  b_c_meta=$shared_c_meta
105921
 
  b_cxx_meta=$shared_cxx_meta
105922
 
  b_c_post=$shared_c_post
105923
 
  b_cxx_post=$shared_cxx_post
105924
 
  b_lo=$shared_lo
105925
 
 
105926
 
 
105927
 
  old_IFS=$IFS
105928
 
  for ac_src in session.c mod_files.c mod_mm.c mod_user.c; do
105929
 
  
105930
 
      IFS=.
105931
 
      set $ac_src
105932
 
      ac_obj=$1
105933
 
      IFS=$old_IFS
105934
 
      
105935
 
      shared_objects_session="$shared_objects_session $ac_bdir$ac_obj.lo"
105936
 
 
105937
 
      case $ac_src in
105938
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105939
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105940
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105941
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105942
 
      esac
105943
 
 
105944
 
    cat >>Makefile.objects<<EOF
105945
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105946
 
        $ac_comp
105947
 
EOF
105948
 
  done
105949
 
 
105950
 
      case $host_alias in
105951
 
        *netware*)
105952
 
          
105953
 
  install_modules="install-modules"
105954
 
 
105955
 
  case $host_alias in
105956
 
    *aix*)
105957
 
      suffix=so
105958
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsession.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(PHPSESSION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsession.so '$ext_builddir'/phpsession.so'
105959
 
      ;;
105960
 
    *netware*)
105961
 
      suffix=nlm
105962
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) -L$(top_builddir)/netware -lphp5lib $(SESSION_SHARED_LIBADD)'
105963
 
      ;;
105964
 
    *)
105965
 
      suffix=la
105966
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(PHPSESSION_SHARED_LIBADD)'
105967
 
      ;;
105968
 
  esac
105969
 
 
105970
 
  if test "x" = "xyes"; then
105971
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsession.$suffix"
105972
 
  else
105973
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsession.$suffix"
105974
 
  fi
105975
 
  
105976
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
105977
 
 
105978
 
  cat >>Makefile.objects<<EOF
105979
 
\$(phplibdir)/phpsession.$suffix: $ext_builddir/phpsession.$suffix
105980
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsession.$suffix \$(phplibdir)
105981
 
 
105982
 
$ext_builddir/phpsession.$suffix: \$(shared_objects_session) \$(PHPSESSION_SHARED_DEPENDENCIES)
105983
 
        $link_cmd
105984
 
 
105985
 
EOF
105986
 
 
105987
 
          ;;
105988
 
        *)
105989
 
          
105990
 
  install_modules="install-modules"
105991
 
 
105992
 
  case $host_alias in
105993
 
    *aix*)
105994
 
      suffix=so
105995
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/session.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(SESSION_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/session.so '$ext_builddir'/session.so'
105996
 
      ;;
105997
 
    *netware*)
105998
 
      suffix=nlm
105999
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) -L$(top_builddir)/netware -lphp5lib $(SION_SHARED_LIBADD)'
106000
 
      ;;
106001
 
    *)
106002
 
      suffix=la
106003
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_session) $(SESSION_SHARED_LIBADD)'
106004
 
      ;;
106005
 
  esac
106006
 
 
106007
 
  if test "x" = "xyes"; then
106008
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/session.$suffix"
106009
 
  else
106010
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/session.$suffix"
106011
 
  fi
106012
 
  
106013
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
106014
 
 
106015
 
  cat >>Makefile.objects<<EOF
106016
 
\$(phplibdir)/session.$suffix: $ext_builddir/session.$suffix
106017
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/session.$suffix \$(phplibdir)
106018
 
 
106019
 
$ext_builddir/session.$suffix: \$(shared_objects_session) \$(SESSION_SHARED_DEPENDENCIES)
106020
 
        $link_cmd
106021
 
 
106022
 
EOF
106023
 
 
106024
 
          ;;
106025
 
      esac
106026
 
      
106027
 
cat >>confdefs.h <<_ACEOF
106028
 
@%:@define COMPILE_DL_SESSION 1
106029
 
_ACEOF
106030
 
 
106031
 
    fi
106032
 
  fi
106033
 
 
106034
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
106035
 
    PHP_SESSION_SHARED=no
106036
 
    case "$PHP_SAPI" in
106037
 
      cgi|embed)
106038
 
        
106039
 
  
106040
 
  case ext/session in
106041
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106042
 
  /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106043
 
  *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106044
 
  esac
106045
 
  
106046
 
  
106047
 
 
106048
 
  b_c_pre=$php_c_pre
106049
 
  b_cxx_pre=$php_cxx_pre
106050
 
  b_c_meta=$php_c_meta
106051
 
  b_cxx_meta=$php_cxx_meta
106052
 
  b_c_post=$php_c_post
106053
 
  b_cxx_post=$php_cxx_post
106054
 
  b_lo=$php_lo
106055
 
 
106056
 
 
106057
 
  old_IFS=$IFS
106058
 
  for ac_src in session.c mod_files.c mod_mm.c mod_user.c; do
106059
 
  
106060
 
      IFS=.
106061
 
      set $ac_src
106062
 
      ac_obj=$1
106063
 
      IFS=$old_IFS
106064
 
      
106065
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
106066
 
 
106067
 
      case $ac_src in
106068
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106069
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106070
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106071
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106072
 
      esac
106073
 
 
106074
 
    cat >>Makefile.objects<<EOF
106075
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106076
 
        $ac_comp
106077
 
EOF
106078
 
  done
106079
 
 
106080
 
 
106081
 
        EXT_STATIC="$EXT_STATIC session"
106082
 
        ;;
106083
 
      *)
106084
 
        
106085
 
  
106086
 
  case ext/session in
106087
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106088
 
  /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106089
 
  *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106090
 
  esac
106091
 
  
106092
 
  
106093
 
 
106094
 
  b_c_pre=$php_c_pre
106095
 
  b_cxx_pre=$php_cxx_pre
106096
 
  b_c_meta=$php_c_meta
106097
 
  b_cxx_meta=$php_cxx_meta
106098
 
  b_c_post=$php_c_post
106099
 
  b_cxx_post=$php_cxx_post
106100
 
  b_lo=$php_lo
106101
 
 
106102
 
 
106103
 
  old_IFS=$IFS
106104
 
  for ac_src in session.c mod_files.c mod_mm.c mod_user.c; do
106105
 
  
106106
 
      IFS=.
106107
 
      set $ac_src
106108
 
      ac_obj=$1
106109
 
      IFS=$old_IFS
106110
 
      
106111
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
106112
 
 
106113
 
      case $ac_src in
106114
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106115
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106116
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106117
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106118
 
      esac
106119
 
 
106120
 
    cat >>Makefile.objects<<EOF
106121
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106122
 
        $ac_comp
106123
 
EOF
106124
 
  done
106125
 
 
106126
 
 
106127
 
        ;;
106128
 
    esac
106129
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC session"
106130
 
  fi
106131
 
  
106132
 
  
106133
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
106134
 
  
106135
 
 
106136
 
 
106137
 
  if test "$ext_builddir" = "."; then
106138
 
    PHP_PECL_EXTENSION=session
106139
 
    
106140
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
106141
 
 
106142
 
  fi
106143
 
 
106144
 
  
106145
 
  am_i_shared=$PHP_SESSION_SHARED
106146
 
  is_it_shared=$PHP_HASH_SHARED
106147
 
  is_it_enabled=$PHP_HASH
106148
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
106149
 
    { { $as_echo "$as_me:$LINENO: error: 
106150
 
You've configured extension session to build statically, but it
106151
 
depends on extension hash, which you've configured to build shared.
106152
 
You either need to build session shared or build hash statically for the
106153
 
build to be successful.
106154
 
" >&5
106155
 
$as_echo "$as_me: error: 
106156
 
You've configured extension session to build statically, but it
106157
 
depends on extension hash, which you've configured to build shared.
106158
 
You either need to build session shared or build hash statically for the
106159
 
build to be successful.
106160
 
" >&2;}
106161
 
   { (exit 1); exit 1; }; }
106162
 
  fi
106163
 
  if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
106164
 
    { { $as_echo "$as_me:$LINENO: error: 
106165
 
You've configured extension session, which depends on extension hash,
106166
 
but you've either not enabled hash, or have disabled it.
106167
 
" >&5
106168
 
$as_echo "$as_me: error: 
106169
 
You've configured extension session, which depends on extension hash,
106170
 
but you've either not enabled hash, or have disabled it.
106171
 
" >&2;}
106172
 
   { (exit 1); exit 1; }; }
106173
 
  fi
106174
 
  
106175
 
  
106176
 
  am_i_shared=$PHP_SESSION_SHARED
106177
 
  is_it_shared=$PHP_SPL_SHARED
106178
 
  is_it_enabled=$PHP_SPL
106179
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
106180
 
    { { $as_echo "$as_me:$LINENO: error: 
106181
 
You've configured extension session to build statically, but it
106182
 
depends on extension spl, which you've configured to build shared.
106183
 
You either need to build session shared or build spl statically for the
106184
 
build to be successful.
106185
 
" >&5
106186
 
$as_echo "$as_me: error: 
106187
 
You've configured extension session to build statically, but it
106188
 
depends on extension spl, which you've configured to build shared.
106189
 
You either need to build session shared or build spl statically for the
106190
 
build to be successful.
106191
 
" >&2;}
106192
 
   { (exit 1); exit 1; }; }
106193
 
  fi
106194
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
106195
 
    { { $as_echo "$as_me:$LINENO: error: 
106196
 
You've configured extension session, which depends on extension spl,
106197
 
but you've either not enabled spl, or have disabled it.
106198
 
" >&5
106199
 
$as_echo "$as_me: error: 
106200
 
You've configured extension session, which depends on extension spl,
106201
 
but you've either not enabled spl, or have disabled it.
106202
 
" >&2;}
106203
 
   { (exit 1); exit 1; }; }
106204
 
  fi
106205
 
  
106206
 
  
106207
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SESSION_SHARED_LIBADD"
106208
 
 
106209
 
  
106210
 
  
106211
 
    header_path=ext/session
106212
 
    for header_file in php_session.h mod_files.h mod_user.h; do
106213
 
      hp_hf="$header_path/$header_file"
106214
 
      
106215
 
  
106216
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
106217
 
  
106218
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
106219
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
106220
 
    eval "INSTALLHEADERS$unique=set"
106221
 
    
106222
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
106223
 
      
106224
 
  fi
106225
 
 
106226
 
    done 
106227
 
  
106228
 
 
106229
 
  
106230
 
cat >>confdefs.h <<\_ACEOF
106231
 
@%:@define HAVE_PHP_SESSION 1
106232
 
_ACEOF
106233
 
 
106234
 
fi
106235
 
 
106236
 
if test "$PHP_MM" != "no"; then
106237
 
  for i in $PHP_MM /usr/local /usr; do
106238
 
    test -f "$i/include/mm.h" && MM_DIR=$i && break
106239
 
  done
106240
 
 
106241
 
  if test -z "$MM_DIR" ; then
106242
 
    { { $as_echo "$as_me:$LINENO: error: cannot find mm library" >&5
106243
 
$as_echo "$as_me: error: cannot find mm library" >&2;}
106244
 
   { (exit 1); exit 1; }; }
106245
 
  fi
106246
 
  
106247
 
  
106248
 
 
106249
 
  if test "$ext_shared" = "yes"; then
106250
 
    SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD"
106251
 
    if test -n "$MM_DIR/$PHP_LIBDIR"; then
106252
 
      
106253
 
  if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
106254
 
    
106255
 
  if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
106256
 
    ai_p=$MM_DIR/$PHP_LIBDIR
106257
 
  else
106258
 
    
106259
 
    ep_dir="`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
106260
 
    
106261
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
106262
 
    ai_p="$ep_realdir/`basename \"$MM_DIR/$PHP_LIBDIR\"`"
106263
 
  fi
106264
 
 
106265
 
    
106266
 
      if test "$ext_shared" = "yes"; then
106267
 
        SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD"
106268
 
        test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD"
106269
 
      else
106270
 
        
106271
 
  
106272
 
  
106273
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
106274
 
  
106275
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
106276
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
106277
 
    eval "LIBPATH$unique=set"
106278
 
    
106279
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
106280
 
    LDFLAGS="$LDFLAGS -L$ai_p"
106281
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
106282
 
  
106283
 
  fi
106284
 
 
106285
 
 
106286
 
      fi
106287
 
    
106288
 
  fi
106289
 
 
106290
 
    fi
106291
 
  else
106292
 
    
106293
 
 
106294
 
  if test -n "$MM_DIR/$PHP_LIBDIR"; then
106295
 
    
106296
 
  if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
106297
 
    
106298
 
  if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
106299
 
    ai_p=$MM_DIR/$PHP_LIBDIR
106300
 
  else
106301
 
    
106302
 
    ep_dir="`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
106303
 
    
106304
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
106305
 
    ai_p="$ep_realdir/`basename \"$MM_DIR/$PHP_LIBDIR\"`"
106306
 
  fi
106307
 
 
106308
 
    
106309
 
      
106310
 
  
106311
 
  
106312
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
106313
 
  
106314
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
106315
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
106316
 
    eval "LIBPATH$unique=set"
106317
 
    
106318
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
106319
 
    LDFLAGS="$LDFLAGS -L$ai_p"
106320
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
106321
 
  
106322
 
  fi
106323
 
 
106324
 
 
106325
 
    
106326
 
  fi
106327
 
 
106328
 
  fi
106329
 
  
106330
 
  
106331
 
  case mm in
106332
 
  c|c_r|pthread*) ;;
106333
 
  *) 
106334
 
      LIBS="-lmm $LIBS" 
106335
 
   ;;
106336
 
  esac
106337
 
 
106338
 
 
106339
 
 
106340
 
 
106341
 
  fi
106342
 
 
106343
 
 
106344
 
  
106345
 
  if test "$MM_DIR/include" != "/usr/include"; then
106346
 
    
106347
 
  if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then
106348
 
    ai_p=$MM_DIR/include
106349
 
  else
106350
 
    
106351
 
    ep_dir="`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
106352
 
    
106353
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
106354
 
    ai_p="$ep_realdir/`basename \"$MM_DIR/include\"`"
106355
 
  fi
106356
 
 
106357
 
    
106358
 
  
106359
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
106360
 
  
106361
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
106362
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
106363
 
    eval "INCLUDEPATH$unique=set"
106364
 
    
106365
 
      if test ""; then
106366
 
        INCLUDES="-I$ai_p $INCLUDES"
106367
 
      else
106368
 
        INCLUDES="$INCLUDES -I$ai_p"
106369
 
      fi
106370
 
    
106371
 
  fi
106372
 
 
106373
 
  fi
106374
 
 
106375
 
  
106376
 
  
106377
 
    for header_file in ext/session/mod_mm.h; do
106378
 
      
106379
 
  
106380
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
106381
 
  
106382
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
106383
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
106384
 
    eval "INSTALLHEADERS$unique=set"
106385
 
    
106386
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
106387
 
      
106388
 
  fi
106389
 
 
106390
 
    done 
106391
 
  
106392
 
 
106393
 
  
106394
 
cat >>confdefs.h <<\_ACEOF
106395
 
@%:@define HAVE_LIBMM 1
106396
 
_ACEOF
106397
 
 
106398
 
fi
106399
 
 
106400
 
 
106401
 
php_enable_shmop=no
106402
 
 
106403
 
{ $as_echo "$as_me:$LINENO: checking whether to enable shmop support" >&5
106404
 
$as_echo_n "checking whether to enable shmop support... " >&6; }
106405
 
@%:@ Check whether --enable-shmop was given.
106406
 
if test "${enable_shmop+set}" = set; then
106407
 
  enableval=$enable_shmop; PHP_SHMOP=$enableval
106408
 
else
106409
 
  
106410
 
  PHP_SHMOP=no
106411
 
  test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL
106412
 
 
106413
 
fi
106414
 
 
106415
 
 
106416
 
 
106417
 
ext_output="yes, shared"
106418
 
ext_shared=yes
106419
 
case $PHP_SHMOP in
106420
 
shared,*)
106421
 
  PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'`
106422
 
  ;;
106423
 
shared)
106424
 
  PHP_SHMOP=yes
106425
 
  ;;
106426
 
no)
106427
 
  ext_output=no
106428
 
  ext_shared=no
106429
 
  ;;
106430
 
*)
106431
 
  ext_output=yes
106432
 
  ext_shared=no
106433
 
  ;;
106434
 
esac
106435
 
 
106436
 
 
106437
 
 
106438
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
106439
 
$as_echo "$ext_output" >&6; }
106440
 
 
106441
 
 
106442
 
 
106443
 
 
106444
 
if test "$PHP_SHMOP" != "no"; then
106445
 
  
106446
 
cat >>confdefs.h <<\_ACEOF
106447
 
@%:@define HAVE_SHMOP 1
106448
 
_ACEOF
106449
 
 
106450
 
  
106451
 
  ext_builddir=ext/shmop
106452
 
  ext_srcdir=$abs_srcdir/ext/shmop
106453
 
 
106454
 
  ac_extra=
106455
 
 
106456
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
106457
 
    PHP_SHMOP_SHARED=no
106458
 
    
106459
 
  
106460
 
  case ext/shmop in
106461
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106462
 
  /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106463
 
  *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106464
 
  esac
106465
 
  
106466
 
  
106467
 
 
106468
 
  b_c_pre=$php_c_pre
106469
 
  b_cxx_pre=$php_cxx_pre
106470
 
  b_c_meta=$php_c_meta
106471
 
  b_cxx_meta=$php_cxx_meta
106472
 
  b_c_post=$php_c_post
106473
 
  b_cxx_post=$php_cxx_post
106474
 
  b_lo=$php_lo
106475
 
 
106476
 
 
106477
 
  old_IFS=$IFS
106478
 
  for ac_src in shmop.c; do
106479
 
  
106480
 
      IFS=.
106481
 
      set $ac_src
106482
 
      ac_obj=$1
106483
 
      IFS=$old_IFS
106484
 
      
106485
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
106486
 
 
106487
 
      case $ac_src in
106488
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106489
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106490
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106491
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106492
 
      esac
106493
 
 
106494
 
    cat >>Makefile.objects<<EOF
106495
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106496
 
        $ac_comp
106497
 
EOF
106498
 
  done
106499
 
 
106500
 
 
106501
 
    EXT_STATIC="$EXT_STATIC shmop"
106502
 
    if test "$ext_shared" != "nocli"; then
106503
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
106504
 
    fi
106505
 
  else
106506
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
106507
 
      PHP_SHMOP_SHARED=yes
106508
 
      
106509
 
  case ext/shmop in
106510
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106511
 
  /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106512
 
  *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106513
 
  esac
106514
 
  
106515
 
  
106516
 
 
106517
 
  b_c_pre=$shared_c_pre
106518
 
  b_cxx_pre=$shared_cxx_pre
106519
 
  b_c_meta=$shared_c_meta
106520
 
  b_cxx_meta=$shared_cxx_meta
106521
 
  b_c_post=$shared_c_post
106522
 
  b_cxx_post=$shared_cxx_post
106523
 
  b_lo=$shared_lo
106524
 
 
106525
 
 
106526
 
  old_IFS=$IFS
106527
 
  for ac_src in shmop.c; do
106528
 
  
106529
 
      IFS=.
106530
 
      set $ac_src
106531
 
      ac_obj=$1
106532
 
      IFS=$old_IFS
106533
 
      
106534
 
      shared_objects_shmop="$shared_objects_shmop $ac_bdir$ac_obj.lo"
106535
 
 
106536
 
      case $ac_src in
106537
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106538
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106539
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106540
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106541
 
      esac
106542
 
 
106543
 
    cat >>Makefile.objects<<EOF
106544
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106545
 
        $ac_comp
106546
 
EOF
106547
 
  done
106548
 
 
106549
 
      case $host_alias in
106550
 
        *netware*)
106551
 
          
106552
 
  install_modules="install-modules"
106553
 
 
106554
 
  case $host_alias in
106555
 
    *aix*)
106556
 
      suffix=so
106557
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpshmop.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(PHPSHMOP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpshmop.so '$ext_builddir'/phpshmop.so'
106558
 
      ;;
106559
 
    *netware*)
106560
 
      suffix=nlm
106561
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) -L$(top_builddir)/netware -lphp5lib $(SHMOP_SHARED_LIBADD)'
106562
 
      ;;
106563
 
    *)
106564
 
      suffix=la
106565
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(PHPSHMOP_SHARED_LIBADD)'
106566
 
      ;;
106567
 
  esac
106568
 
 
106569
 
  if test "x" = "xyes"; then
106570
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpshmop.$suffix"
106571
 
  else
106572
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpshmop.$suffix"
106573
 
  fi
106574
 
  
106575
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
106576
 
 
106577
 
  cat >>Makefile.objects<<EOF
106578
 
\$(phplibdir)/phpshmop.$suffix: $ext_builddir/phpshmop.$suffix
106579
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpshmop.$suffix \$(phplibdir)
106580
 
 
106581
 
$ext_builddir/phpshmop.$suffix: \$(shared_objects_shmop) \$(PHPSHMOP_SHARED_DEPENDENCIES)
106582
 
        $link_cmd
106583
 
 
106584
 
EOF
106585
 
 
106586
 
          ;;
106587
 
        *)
106588
 
          
106589
 
  install_modules="install-modules"
106590
 
 
106591
 
  case $host_alias in
106592
 
    *aix*)
106593
 
      suffix=so
106594
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/shmop.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(SHMOP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/shmop.so '$ext_builddir'/shmop.so'
106595
 
      ;;
106596
 
    *netware*)
106597
 
      suffix=nlm
106598
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) -L$(top_builddir)/netware -lphp5lib $(OP_SHARED_LIBADD)'
106599
 
      ;;
106600
 
    *)
106601
 
      suffix=la
106602
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_shmop) $(SHMOP_SHARED_LIBADD)'
106603
 
      ;;
106604
 
  esac
106605
 
 
106606
 
  if test "x" = "xyes"; then
106607
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/shmop.$suffix"
106608
 
  else
106609
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/shmop.$suffix"
106610
 
  fi
106611
 
  
106612
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
106613
 
 
106614
 
  cat >>Makefile.objects<<EOF
106615
 
\$(phplibdir)/shmop.$suffix: $ext_builddir/shmop.$suffix
106616
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/shmop.$suffix \$(phplibdir)
106617
 
 
106618
 
$ext_builddir/shmop.$suffix: \$(shared_objects_shmop) \$(SHMOP_SHARED_DEPENDENCIES)
106619
 
        $link_cmd
106620
 
 
106621
 
EOF
106622
 
 
106623
 
          ;;
106624
 
      esac
106625
 
      
106626
 
cat >>confdefs.h <<_ACEOF
106627
 
@%:@define COMPILE_DL_SHMOP 1
106628
 
_ACEOF
106629
 
 
106630
 
    fi
106631
 
  fi
106632
 
 
106633
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
106634
 
    PHP_SHMOP_SHARED=no
106635
 
    case "$PHP_SAPI" in
106636
 
      cgi|embed)
106637
 
        
106638
 
  
106639
 
  case ext/shmop in
106640
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106641
 
  /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106642
 
  *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106643
 
  esac
106644
 
  
106645
 
  
106646
 
 
106647
 
  b_c_pre=$php_c_pre
106648
 
  b_cxx_pre=$php_cxx_pre
106649
 
  b_c_meta=$php_c_meta
106650
 
  b_cxx_meta=$php_cxx_meta
106651
 
  b_c_post=$php_c_post
106652
 
  b_cxx_post=$php_cxx_post
106653
 
  b_lo=$php_lo
106654
 
 
106655
 
 
106656
 
  old_IFS=$IFS
106657
 
  for ac_src in shmop.c; do
106658
 
  
106659
 
      IFS=.
106660
 
      set $ac_src
106661
 
      ac_obj=$1
106662
 
      IFS=$old_IFS
106663
 
      
106664
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
106665
 
 
106666
 
      case $ac_src in
106667
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106668
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106669
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106670
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106671
 
      esac
106672
 
 
106673
 
    cat >>Makefile.objects<<EOF
106674
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106675
 
        $ac_comp
106676
 
EOF
106677
 
  done
106678
 
 
106679
 
 
106680
 
        EXT_STATIC="$EXT_STATIC shmop"
106681
 
        ;;
106682
 
      *)
106683
 
        
106684
 
  
106685
 
  case ext/shmop in
106686
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106687
 
  /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106688
 
  *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106689
 
  esac
106690
 
  
106691
 
  
106692
 
 
106693
 
  b_c_pre=$php_c_pre
106694
 
  b_cxx_pre=$php_cxx_pre
106695
 
  b_c_meta=$php_c_meta
106696
 
  b_cxx_meta=$php_cxx_meta
106697
 
  b_c_post=$php_c_post
106698
 
  b_cxx_post=$php_cxx_post
106699
 
  b_lo=$php_lo
106700
 
 
106701
 
 
106702
 
  old_IFS=$IFS
106703
 
  for ac_src in shmop.c; do
106704
 
  
106705
 
      IFS=.
106706
 
      set $ac_src
106707
 
      ac_obj=$1
106708
 
      IFS=$old_IFS
106709
 
      
106710
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
106711
 
 
106712
 
      case $ac_src in
106713
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106714
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106715
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106716
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106717
 
      esac
106718
 
 
106719
 
    cat >>Makefile.objects<<EOF
106720
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106721
 
        $ac_comp
106722
 
EOF
106723
 
  done
106724
 
 
106725
 
 
106726
 
        ;;
106727
 
    esac
106728
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
106729
 
  fi
106730
 
  
106731
 
  
106732
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
106733
 
  
106734
 
 
106735
 
 
106736
 
  if test "$ext_builddir" = "."; then
106737
 
    PHP_PECL_EXTENSION=shmop
106738
 
    
106739
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
106740
 
 
106741
 
  fi
106742
 
 
106743
 
fi
106744
 
 
106745
 
 
106746
 
 
106747
 
php_enable_simplexml=yes
106748
 
 
106749
 
{ $as_echo "$as_me:$LINENO: checking whether to enable SimpleXML support" >&5
106750
 
$as_echo_n "checking whether to enable SimpleXML support... " >&6; }
106751
 
@%:@ Check whether --enable-simplexml was given.
106752
 
if test "${enable_simplexml+set}" = set; then
106753
 
  enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval
106754
 
else
106755
 
  
106756
 
  PHP_SIMPLEXML=yes
106757
 
  test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL
106758
 
 
106759
 
fi
106760
 
 
106761
 
 
106762
 
 
106763
 
ext_output="yes, shared"
106764
 
ext_shared=yes
106765
 
case $PHP_SIMPLEXML in
106766
 
shared,*)
106767
 
  PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'`
106768
 
  ;;
106769
 
shared)
106770
 
  PHP_SIMPLEXML=yes
106771
 
  ;;
106772
 
no)
106773
 
  ext_output=no
106774
 
  ext_shared=no
106775
 
  ;;
106776
 
*)
106777
 
  ext_output=yes
106778
 
  ext_shared=no
106779
 
  ;;
106780
 
esac
106781
 
 
106782
 
 
106783
 
 
106784
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
106785
 
$as_echo "$ext_output" >&6; }
106786
 
 
106787
 
 
106788
 
 
106789
 
 
106790
 
if test -z "$PHP_LIBXML_DIR"; then
106791
 
  
106792
 
php_with_libxml_dir=no
106793
 
 
106794
 
{ $as_echo "$as_me:$LINENO: checking libxml2 install dir" >&5
106795
 
$as_echo_n "checking libxml2 install dir... " >&6; }
106796
 
 
106797
 
@%:@ Check whether --with-libxml-dir was given.
106798
 
if test "${with_libxml_dir+set}" = set; then
106799
 
  withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
106800
 
else
106801
 
  
106802
 
  PHP_LIBXML_DIR=no
106803
 
  
106804
 
 
106805
 
fi
106806
 
 
106807
 
 
106808
 
ext_output=$PHP_LIBXML_DIR
106809
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
106810
 
$as_echo "$ext_output" >&6; }
106811
 
 
106812
 
 
106813
 
 
106814
 
fi
106815
 
 
106816
 
if test "$PHP_SIMPLEXML" != "no"; then
106817
 
 
106818
 
  if test "$PHP_LIBXML" = "no"; then   
106819
 
    { { $as_echo "$as_me:$LINENO: error: SimpleXML extension requires LIBXML extension, add --enable-libxml" >&5
106820
 
$as_echo "$as_me: error: SimpleXML extension requires LIBXML extension, add --enable-libxml" >&2;}
106821
 
   { (exit 1); exit 1; }; }                
106822
 
  fi
106823
 
 
106824
 
  
106825
 
{ $as_echo "$as_me:$LINENO: checking for xml2-config path" >&5
106826
 
$as_echo_n "checking for xml2-config path... " >&6; }
106827
 
if test "${ac_cv_php_xml2_config_path+set}" = set; then
106828
 
  $as_echo_n "(cached) " >&6
106829
 
else
106830
 
  
106831
 
  for i in $PHP_LIBXML_DIR /usr/local /usr; do
106832
 
    if test -x "$i/bin/xml2-config"; then
106833
 
      ac_cv_php_xml2_config_path="$i/bin/xml2-config"
106834
 
      break
106835
 
    fi
106836
 
  done
106837
 
 
106838
 
fi
106839
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
106840
 
$as_echo "$ac_cv_php_xml2_config_path" >&6; }
106841
 
 
106842
 
  if test -x "$ac_cv_php_xml2_config_path"; then
106843
 
    XML2_CONFIG="$ac_cv_php_xml2_config_path"
106844
 
    libxml_full_version=`$XML2_CONFIG --version`
106845
 
    ac_IFS=$IFS
106846
 
    IFS="."
106847
 
    set $libxml_full_version
106848
 
    IFS=$ac_IFS
106849
 
    LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
106850
 
    if test "$LIBXML_VERSION" -ge "2006011"; then
106851
 
      LIBXML_LIBS=`$XML2_CONFIG --libs`
106852
 
      LIBXML_INCS=`$XML2_CONFIG --cflags`
106853
 
      
106854
 
  for ac_i in $LIBXML_LIBS; do
106855
 
    case $ac_i in
106856
 
    -pthread)
106857
 
      if test "$ext_shared" = "yes"; then
106858
 
        SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread"
106859
 
      else
106860
 
        
106861
 
  
106862
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
106863
 
  
106864
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
106865
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
106866
 
    eval "EXTRA_LDFLAGS$unique=set"
106867
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
106868
 
  fi
106869
 
 
106870
 
      fi
106871
 
    ;;
106872
 
    -l*)
106873
 
      ac_ii=`echo $ac_i|cut -c 3-`
106874
 
      
106875
 
  
106876
 
  case $ac_ii in
106877
 
  c|c_r|pthread*) ;;
106878
 
  *) 
106879
 
    if test "$ext_shared" = "yes"; then
106880
 
        SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii" 
106881
 
    else
106882
 
      
106883
 
  
106884
 
  case $ac_ii in
106885
 
  c|c_r|pthread*) ;;
106886
 
  *) 
106887
 
      LIBS="$LIBS -l$ac_ii" 
106888
 
   ;;
106889
 
  esac
106890
 
 
106891
 
 
106892
 
    fi
106893
 
   ;;
106894
 
  esac
106895
 
 
106896
 
 
106897
 
    ;;
106898
 
    -L*)
106899
 
      ac_ii=`echo $ac_i|cut -c 3-`
106900
 
      
106901
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
106902
 
    
106903
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
106904
 
    ai_p=$ac_ii
106905
 
  else
106906
 
    
106907
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
106908
 
    
106909
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
106910
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
106911
 
  fi
106912
 
 
106913
 
    
106914
 
      if test "$ext_shared" = "yes"; then
106915
 
        SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD"
106916
 
        test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD"
106917
 
      else
106918
 
        
106919
 
  
106920
 
  
106921
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
106922
 
  
106923
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
106924
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
106925
 
    eval "LIBPATH$unique=set"
106926
 
    
106927
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
106928
 
    LDFLAGS="$LDFLAGS -L$ai_p"
106929
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
106930
 
  
106931
 
  fi
106932
 
 
106933
 
 
106934
 
      fi
106935
 
    
106936
 
  fi
106937
 
 
106938
 
    ;;
106939
 
    esac
106940
 
  done
106941
 
 
106942
 
      
106943
 
  for ac_i in $LIBXML_INCS; do
106944
 
    case $ac_i in
106945
 
    -I*)
106946
 
      ac_ii=`echo $ac_i|cut -c 3-`
106947
 
      
106948
 
  if test "$ac_ii" != "/usr/include"; then
106949
 
    
106950
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
106951
 
    ai_p=$ac_ii
106952
 
  else
106953
 
    
106954
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
106955
 
    
106956
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
106957
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
106958
 
  fi
106959
 
 
106960
 
    
106961
 
  
106962
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
106963
 
  
106964
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
106965
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
106966
 
    eval "INCLUDEPATH$unique=set"
106967
 
    
106968
 
      if test ""; then
106969
 
        INCLUDES="-I$ai_p $INCLUDES"
106970
 
      else
106971
 
        INCLUDES="$INCLUDES -I$ai_p"
106972
 
      fi
106973
 
    
106974
 
  fi
106975
 
 
106976
 
  fi
106977
 
 
106978
 
    ;;
106979
 
    esac
106980
 
  done
106981
 
 
106982
 
 
106983
 
            { $as_echo "$as_me:$LINENO: checking whether libxml build works" >&5
106984
 
$as_echo_n "checking whether libxml build works... " >&6; }
106985
 
if test "${php_cv_libxml_build_works+set}" = set; then
106986
 
  $as_echo_n "(cached) " >&6
106987
 
else
106988
 
  
106989
 
        
106990
 
  old_LIBS=$LIBS
106991
 
  LIBS="
106992
 
          $SIMPLEXML_SHARED_LIBADD
106993
 
         $LIBS"
106994
 
  if test "$cross_compiling" = yes; then
106995
 
  
106996
 
    LIBS=$old_LIBS
106997
 
  
106998
 
else
106999
 
  cat >conftest.$ac_ext <<_ACEOF
107000
 
/* confdefs.h.  */
107001
 
_ACEOF
107002
 
cat confdefs.h >>conftest.$ac_ext
107003
 
cat >>conftest.$ac_ext <<_ACEOF
107004
 
/* end confdefs.h.  */
107005
 
 
107006
 
    
107007
 
    char xmlInitParser();
107008
 
    int main() {
107009
 
      xmlInitParser();
107010
 
      return 0;
107011
 
    }
107012
 
  
107013
 
_ACEOF
107014
 
rm -f conftest$ac_exeext
107015
 
if { (ac_try="$ac_link"
107016
 
case "(($ac_try" in
107017
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107018
 
  *) ac_try_echo=$ac_try;;
107019
 
esac
107020
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
107021
 
$as_echo "$ac_try_echo") >&5
107022
 
  (eval "$ac_link") 2>&5
107023
 
  ac_status=$?
107024
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
107025
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
107026
 
  { (case "(($ac_try" in
107027
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107028
 
  *) ac_try_echo=$ac_try;;
107029
 
esac
107030
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
107031
 
$as_echo "$ac_try_echo") >&5
107032
 
  (eval "$ac_try") 2>&5
107033
 
  ac_status=$?
107034
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
107035
 
  (exit $ac_status); }; }; then
107036
 
  
107037
 
    LIBS=$old_LIBS
107038
 
    
107039
 
          php_cv_libxml_build_works=yes
107040
 
        
107041
 
  
107042
 
else
107043
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
107044
 
$as_echo "$as_me: failed program was:" >&5
107045
 
sed 's/^/| /' conftest.$ac_ext >&5
107046
 
 
107047
 
( exit $ac_status )
107048
 
 
107049
 
    LIBS=$old_LIBS
107050
 
    
107051
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
107052
 
$as_echo "no" >&6; }
107053
 
          { { $as_echo "$as_me:$LINENO: error: build test failed.  Please check the config.log for details." >&5
107054
 
$as_echo "$as_me: error: build test failed.  Please check the config.log for details." >&2;}
107055
 
   { (exit 1); exit 1; }; }
107056
 
        
107057
 
  
107058
 
fi
107059
 
rm -rf conftest.dSYM
107060
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
107061
 
fi
107062
 
 
107063
 
 
107064
 
 
107065
 
      
107066
 
fi
107067
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
107068
 
$as_echo "$php_cv_libxml_build_works" >&6; }
107069
 
      if test "$php_cv_libxml_build_works" = "yes"; then
107070
 
        
107071
 
cat >>confdefs.h <<\_ACEOF
107072
 
@%:@define HAVE_LIBXML 1
107073
 
_ACEOF
107074
 
 
107075
 
      fi
107076
 
      
107077
 
    
107078
 
cat >>confdefs.h <<\_ACEOF
107079
 
@%:@define HAVE_SIMPLEXML 1
107080
 
_ACEOF
107081
 
 
107082
 
    
107083
 
  ext_builddir=ext/simplexml
107084
 
  ext_srcdir=$abs_srcdir/ext/simplexml
107085
 
 
107086
 
  ac_extra=
107087
 
 
107088
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
107089
 
    PHP_SIMPLEXML_SHARED=no
107090
 
    
107091
 
  
107092
 
  case ext/simplexml in
107093
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107094
 
  /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107095
 
  *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107096
 
  esac
107097
 
  
107098
 
  
107099
 
 
107100
 
  b_c_pre=$php_c_pre
107101
 
  b_cxx_pre=$php_cxx_pre
107102
 
  b_c_meta=$php_c_meta
107103
 
  b_cxx_meta=$php_cxx_meta
107104
 
  b_c_post=$php_c_post
107105
 
  b_cxx_post=$php_cxx_post
107106
 
  b_lo=$php_lo
107107
 
 
107108
 
 
107109
 
  old_IFS=$IFS
107110
 
  for ac_src in simplexml.c sxe.c; do
107111
 
  
107112
 
      IFS=.
107113
 
      set $ac_src
107114
 
      ac_obj=$1
107115
 
      IFS=$old_IFS
107116
 
      
107117
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
107118
 
 
107119
 
      case $ac_src in
107120
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107121
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107122
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107123
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107124
 
      esac
107125
 
 
107126
 
    cat >>Makefile.objects<<EOF
107127
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107128
 
        $ac_comp
107129
 
EOF
107130
 
  done
107131
 
 
107132
 
 
107133
 
    EXT_STATIC="$EXT_STATIC simplexml"
107134
 
    if test "$ext_shared" != "nocli"; then
107135
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
107136
 
    fi
107137
 
  else
107138
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
107139
 
      PHP_SIMPLEXML_SHARED=yes
107140
 
      
107141
 
  case ext/simplexml in
107142
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107143
 
  /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107144
 
  *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107145
 
  esac
107146
 
  
107147
 
  
107148
 
 
107149
 
  b_c_pre=$shared_c_pre
107150
 
  b_cxx_pre=$shared_cxx_pre
107151
 
  b_c_meta=$shared_c_meta
107152
 
  b_cxx_meta=$shared_cxx_meta
107153
 
  b_c_post=$shared_c_post
107154
 
  b_cxx_post=$shared_cxx_post
107155
 
  b_lo=$shared_lo
107156
 
 
107157
 
 
107158
 
  old_IFS=$IFS
107159
 
  for ac_src in simplexml.c sxe.c; do
107160
 
  
107161
 
      IFS=.
107162
 
      set $ac_src
107163
 
      ac_obj=$1
107164
 
      IFS=$old_IFS
107165
 
      
107166
 
      shared_objects_simplexml="$shared_objects_simplexml $ac_bdir$ac_obj.lo"
107167
 
 
107168
 
      case $ac_src in
107169
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107170
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107171
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107172
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107173
 
      esac
107174
 
 
107175
 
    cat >>Makefile.objects<<EOF
107176
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107177
 
        $ac_comp
107178
 
EOF
107179
 
  done
107180
 
 
107181
 
      case $host_alias in
107182
 
        *netware*)
107183
 
          
107184
 
  install_modules="install-modules"
107185
 
 
107186
 
  case $host_alias in
107187
 
    *aix*)
107188
 
      suffix=so
107189
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsimplexml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(PHPSIMPLEXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsimplexml.so '$ext_builddir'/phpsimplexml.so'
107190
 
      ;;
107191
 
    *netware*)
107192
 
      suffix=nlm
107193
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) -L$(top_builddir)/netware -lphp5lib $(SIMPLEXML_SHARED_LIBADD)'
107194
 
      ;;
107195
 
    *)
107196
 
      suffix=la
107197
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(PHPSIMPLEXML_SHARED_LIBADD)'
107198
 
      ;;
107199
 
  esac
107200
 
 
107201
 
  if test "x" = "xyes"; then
107202
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsimplexml.$suffix"
107203
 
  else
107204
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsimplexml.$suffix"
107205
 
  fi
107206
 
  
107207
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
107208
 
 
107209
 
  cat >>Makefile.objects<<EOF
107210
 
\$(phplibdir)/phpsimplexml.$suffix: $ext_builddir/phpsimplexml.$suffix
107211
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsimplexml.$suffix \$(phplibdir)
107212
 
 
107213
 
$ext_builddir/phpsimplexml.$suffix: \$(shared_objects_simplexml) \$(PHPSIMPLEXML_SHARED_DEPENDENCIES)
107214
 
        $link_cmd
107215
 
 
107216
 
EOF
107217
 
 
107218
 
          ;;
107219
 
        *)
107220
 
          
107221
 
  install_modules="install-modules"
107222
 
 
107223
 
  case $host_alias in
107224
 
    *aix*)
107225
 
      suffix=so
107226
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/simplexml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(SIMPLEXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/simplexml.so '$ext_builddir'/simplexml.so'
107227
 
      ;;
107228
 
    *netware*)
107229
 
      suffix=nlm
107230
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) -L$(top_builddir)/netware -lphp5lib $(PLEXML_SHARED_LIBADD)'
107231
 
      ;;
107232
 
    *)
107233
 
      suffix=la
107234
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_simplexml) $(SIMPLEXML_SHARED_LIBADD)'
107235
 
      ;;
107236
 
  esac
107237
 
 
107238
 
  if test "x" = "xyes"; then
107239
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/simplexml.$suffix"
107240
 
  else
107241
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/simplexml.$suffix"
107242
 
  fi
107243
 
  
107244
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
107245
 
 
107246
 
  cat >>Makefile.objects<<EOF
107247
 
\$(phplibdir)/simplexml.$suffix: $ext_builddir/simplexml.$suffix
107248
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/simplexml.$suffix \$(phplibdir)
107249
 
 
107250
 
$ext_builddir/simplexml.$suffix: \$(shared_objects_simplexml) \$(SIMPLEXML_SHARED_DEPENDENCIES)
107251
 
        $link_cmd
107252
 
 
107253
 
EOF
107254
 
 
107255
 
          ;;
107256
 
      esac
107257
 
      
107258
 
cat >>confdefs.h <<_ACEOF
107259
 
@%:@define COMPILE_DL_SIMPLEXML 1
107260
 
_ACEOF
107261
 
 
107262
 
    fi
107263
 
  fi
107264
 
 
107265
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
107266
 
    PHP_SIMPLEXML_SHARED=no
107267
 
    case "$PHP_SAPI" in
107268
 
      cgi|embed)
107269
 
        
107270
 
  
107271
 
  case ext/simplexml in
107272
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107273
 
  /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107274
 
  *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107275
 
  esac
107276
 
  
107277
 
  
107278
 
 
107279
 
  b_c_pre=$php_c_pre
107280
 
  b_cxx_pre=$php_cxx_pre
107281
 
  b_c_meta=$php_c_meta
107282
 
  b_cxx_meta=$php_cxx_meta
107283
 
  b_c_post=$php_c_post
107284
 
  b_cxx_post=$php_cxx_post
107285
 
  b_lo=$php_lo
107286
 
 
107287
 
 
107288
 
  old_IFS=$IFS
107289
 
  for ac_src in simplexml.c sxe.c; do
107290
 
  
107291
 
      IFS=.
107292
 
      set $ac_src
107293
 
      ac_obj=$1
107294
 
      IFS=$old_IFS
107295
 
      
107296
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
107297
 
 
107298
 
      case $ac_src in
107299
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107300
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107301
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107302
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107303
 
      esac
107304
 
 
107305
 
    cat >>Makefile.objects<<EOF
107306
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107307
 
        $ac_comp
107308
 
EOF
107309
 
  done
107310
 
 
107311
 
 
107312
 
        EXT_STATIC="$EXT_STATIC simplexml"
107313
 
        ;;
107314
 
      *)
107315
 
        
107316
 
  
107317
 
  case ext/simplexml in
107318
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
107319
 
  /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
107320
 
  *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
107321
 
  esac
107322
 
  
107323
 
  
107324
 
 
107325
 
  b_c_pre=$php_c_pre
107326
 
  b_cxx_pre=$php_cxx_pre
107327
 
  b_c_meta=$php_c_meta
107328
 
  b_cxx_meta=$php_cxx_meta
107329
 
  b_c_post=$php_c_post
107330
 
  b_cxx_post=$php_cxx_post
107331
 
  b_lo=$php_lo
107332
 
 
107333
 
 
107334
 
  old_IFS=$IFS
107335
 
  for ac_src in simplexml.c sxe.c; do
107336
 
  
107337
 
      IFS=.
107338
 
      set $ac_src
107339
 
      ac_obj=$1
107340
 
      IFS=$old_IFS
107341
 
      
107342
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
107343
 
 
107344
 
      case $ac_src in
107345
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107346
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107347
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
107348
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
107349
 
      esac
107350
 
 
107351
 
    cat >>Makefile.objects<<EOF
107352
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
107353
 
        $ac_comp
107354
 
EOF
107355
 
  done
107356
 
 
107357
 
 
107358
 
        ;;
107359
 
    esac
107360
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
107361
 
  fi
107362
 
  
107363
 
  
107364
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
107365
 
  
107366
 
 
107367
 
 
107368
 
  if test "$ext_builddir" = "."; then
107369
 
    PHP_PECL_EXTENSION=simplexml
107370
 
    
107371
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
107372
 
 
107373
 
  fi
107374
 
 
107375
 
    
107376
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SIMPLEXML_SHARED_LIBADD"
107377
 
 
107378
 
  
107379
 
    else
107380
 
      { { $as_echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
107381
 
$as_echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
107382
 
   { (exit 1); exit 1; }; }
107383
 
    fi
107384
 
else 
107385
 
    { { $as_echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
107386
 
$as_echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
107387
 
   { (exit 1); exit 1; }; }
107388
 
  
107389
 
  fi
107390
 
 
107391
 
  
107392
 
  am_i_shared=$PHP_SIMPLEXML_SHARED
107393
 
  is_it_shared=$PHP_LIBXML_SHARED
107394
 
  is_it_enabled=$PHP_LIBXML
107395
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
107396
 
    { { $as_echo "$as_me:$LINENO: error: 
107397
 
You've configured extension simplexml to build statically, but it
107398
 
depends on extension libxml, which you've configured to build shared.
107399
 
You either need to build simplexml shared or build libxml statically for the
107400
 
build to be successful.
107401
 
" >&5
107402
 
$as_echo "$as_me: error: 
107403
 
You've configured extension simplexml to build statically, but it
107404
 
depends on extension libxml, which you've configured to build shared.
107405
 
You either need to build simplexml shared or build libxml statically for the
107406
 
build to be successful.
107407
 
" >&2;}
107408
 
   { (exit 1); exit 1; }; }
107409
 
  fi
107410
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
107411
 
    { { $as_echo "$as_me:$LINENO: error: 
107412
 
You've configured extension simplexml, which depends on extension libxml,
107413
 
but you've either not enabled libxml, or have disabled it.
107414
 
" >&5
107415
 
$as_echo "$as_me: error: 
107416
 
You've configured extension simplexml, which depends on extension libxml,
107417
 
but you've either not enabled libxml, or have disabled it.
107418
 
" >&2;}
107419
 
   { (exit 1); exit 1; }; }
107420
 
  fi
107421
 
  
107422
 
  
107423
 
  am_i_shared=$PHP_SIMPLEXML_SHARED
107424
 
  is_it_shared=$PHP_SPL_SHARED
107425
 
  is_it_enabled=$PHP_SPL
107426
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
107427
 
    { { $as_echo "$as_me:$LINENO: error: 
107428
 
You've configured extension simplexml to build statically, but it
107429
 
depends on extension spl, which you've configured to build shared.
107430
 
You either need to build simplexml shared or build spl statically for the
107431
 
build to be successful.
107432
 
" >&5
107433
 
$as_echo "$as_me: error: 
107434
 
You've configured extension simplexml to build statically, but it
107435
 
depends on extension spl, which you've configured to build shared.
107436
 
You either need to build simplexml shared or build spl statically for the
107437
 
build to be successful.
107438
 
" >&2;}
107439
 
   { (exit 1); exit 1; }; }
107440
 
  fi
107441
 
  if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
107442
 
    { { $as_echo "$as_me:$LINENO: error: 
107443
 
You've configured extension simplexml, which depends on extension spl,
107444
 
but you've either not enabled spl, or have disabled it.
107445
 
" >&5
107446
 
$as_echo "$as_me: error: 
107447
 
You've configured extension simplexml, which depends on extension spl,
107448
 
but you've either not enabled spl, or have disabled it.
107449
 
" >&2;}
107450
 
   { (exit 1); exit 1; }; }
107451
 
  fi
107452
 
  
107453
 
fi
107454
 
 
107455
 
 
107456
 
 
107457
 
php_with_snmp=no
107458
 
 
107459
 
{ $as_echo "$as_me:$LINENO: checking for SNMP support" >&5
107460
 
$as_echo_n "checking for SNMP support... " >&6; }
107461
 
 
107462
 
@%:@ Check whether --with-snmp was given.
107463
 
if test "${with_snmp+set}" = set; then
107464
 
  withval=$with_snmp; PHP_SNMP=$withval
107465
 
else
107466
 
  
107467
 
  PHP_SNMP=no
107468
 
  test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL
107469
 
 
107470
 
fi
107471
 
 
107472
 
 
107473
 
 
107474
 
ext_output="yes, shared"
107475
 
ext_shared=yes
107476
 
case $PHP_SNMP in
107477
 
shared,*)
107478
 
  PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'`
107479
 
  ;;
107480
 
shared)
107481
 
  PHP_SNMP=yes
107482
 
  ;;
107483
 
no)
107484
 
  ext_output=no
107485
 
  ext_shared=no
107486
 
  ;;
107487
 
*)
107488
 
  ext_output=yes
107489
 
  ext_shared=no
107490
 
  ;;
107491
 
esac
107492
 
 
107493
 
 
107494
 
 
107495
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
107496
 
$as_echo "$ext_output" >&6; }
107497
 
 
107498
 
 
107499
 
 
107500
 
 
107501
 
 
107502
 
php_with_openssl_dir=no
107503
 
 
107504
 
{ $as_echo "$as_me:$LINENO: checking OpenSSL dir for SNMP" >&5
107505
 
$as_echo_n "checking OpenSSL dir for SNMP... " >&6; }
107506
 
 
107507
 
@%:@ Check whether --with-openssl-dir was given.
107508
 
if test "${with_openssl_dir+set}" = set; then
107509
 
  withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
107510
 
else
107511
 
  
107512
 
  PHP_OPENSSL_DIR=no
107513
 
  
107514
 
 
107515
 
fi
107516
 
 
107517
 
 
107518
 
ext_output=$PHP_OPENSSL_DIR
107519
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
107520
 
$as_echo "$ext_output" >&6; }
107521
 
 
107522
 
 
107523
 
 
107524
 
 
107525
 
 
107526
 
php_enable_ucd_snmp_hack=no
107527
 
 
107528
 
{ $as_echo "$as_me:$LINENO: checking whether to enable UCD SNMP hack" >&5
107529
 
$as_echo_n "checking whether to enable UCD SNMP hack... " >&6; }
107530
 
@%:@ Check whether --enable-ucd-snmp-hack was given.
107531
 
if test "${enable_ucd_snmp_hack+set}" = set; then
107532
 
  enableval=$enable_ucd_snmp_hack; PHP_UCD_SNMP_HACK=$enableval
107533
 
else
107534
 
  
107535
 
  PHP_UCD_SNMP_HACK=no
107536
 
  
107537
 
 
107538
 
fi
107539
 
 
107540
 
 
107541
 
ext_output=$PHP_UCD_SNMP_HACK
107542
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
107543
 
$as_echo "$ext_output" >&6; }
107544
 
 
107545
 
 
107546
 
 
107547
 
 
107548
 
if test "$PHP_SNMP" != "no"; then
107549
 
 
107550
 
        if test "$PHP_SNMP" = "yes"; then
107551
 
    # Extract the first word of "net-snmp-config", so it can be a program name with args.
107552
 
set dummy net-snmp-config; ac_word=$2
107553
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
107554
 
$as_echo_n "checking for $ac_word... " >&6; }
107555
 
if test "${ac_cv_path_SNMP_CONFIG+set}" = set; then
107556
 
  $as_echo_n "(cached) " >&6
107557
 
else
107558
 
  case $SNMP_CONFIG in
107559
 
  [\\/]* | ?:[\\/]*)
107560
 
  ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path.
107561
 
  ;;
107562
 
  *)
107563
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107564
 
as_dummy="/usr/local/bin:$PATH"
107565
 
for as_dir in $as_dummy
107566
 
do
107567
 
  IFS=$as_save_IFS
107568
 
  test -z "$as_dir" && as_dir=.
107569
 
  for ac_exec_ext in '' $ac_executable_extensions; do
107570
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
107571
 
    ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
107572
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
107573
 
    break 2
107574
 
  fi
107575
 
done
107576
 
done
107577
 
IFS=$as_save_IFS
107578
 
 
107579
 
  ;;
107580
 
esac
107581
 
fi
107582
 
SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG
107583
 
if test -n "$SNMP_CONFIG"; then
107584
 
  { $as_echo "$as_me:$LINENO: result: $SNMP_CONFIG" >&5
107585
 
$as_echo "$SNMP_CONFIG" >&6; }
107586
 
else
107587
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
107588
 
$as_echo "no" >&6; }
107589
 
fi
107590
 
 
107591
 
 
107592
 
  else
107593
 
    SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config"
107594
 
  fi
107595
 
 
107596
 
  if test -x "$SNMP_CONFIG"; then
107597
 
    SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs`
107598
 
    SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`"
107599
 
    SNMP_PREFIX=`$SNMP_CONFIG --prefix`
107600
 
 
107601
 
    if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
107602
 
      
107603
 
  if test "${SNMP_PREFIX}/include" != "/usr/include"; then
107604
 
    
107605
 
  if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then
107606
 
    ai_p=${SNMP_PREFIX}/include
107607
 
  else
107608
 
    
107609
 
    ep_dir="`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`"
107610
 
    
107611
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
107612
 
    ai_p="$ep_realdir/`basename \"${SNMP_PREFIX}/include\"`"
107613
 
  fi
107614
 
 
107615
 
    
107616
 
  
107617
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
107618
 
  
107619
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
107620
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
107621
 
    eval "INCLUDEPATH$unique=set"
107622
 
    
107623
 
      if test ""; then
107624
 
        INCLUDES="-I$ai_p $INCLUDES"
107625
 
      else
107626
 
        INCLUDES="$INCLUDES -I$ai_p"
107627
 
      fi
107628
 
    
107629
 
  fi
107630
 
 
107631
 
  fi
107632
 
 
107633
 
      
107634
 
  for ac_i in $SNMP_LIBS; do
107635
 
    case $ac_i in
107636
 
    -pthread)
107637
 
      if test "$ext_shared" = "yes"; then
107638
 
        SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread"
107639
 
      else
107640
 
        
107641
 
  
107642
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
107643
 
  
107644
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
107645
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
107646
 
    eval "EXTRA_LDFLAGS$unique=set"
107647
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
107648
 
  fi
107649
 
 
107650
 
      fi
107651
 
    ;;
107652
 
    -l*)
107653
 
      ac_ii=`echo $ac_i|cut -c 3-`
107654
 
      
107655
 
  
107656
 
  case $ac_ii in
107657
 
  c|c_r|pthread*) ;;
107658
 
  *) 
107659
 
    if test "$ext_shared" = "yes"; then
107660
 
        SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii" 
107661
 
    else
107662
 
      
107663
 
  
107664
 
  case $ac_ii in
107665
 
  c|c_r|pthread*) ;;
107666
 
  *) 
107667
 
      LIBS="$LIBS -l$ac_ii" 
107668
 
   ;;
107669
 
  esac
107670
 
 
107671
 
 
107672
 
    fi
107673
 
   ;;
107674
 
  esac
107675
 
 
107676
 
 
107677
 
    ;;
107678
 
    -L*)
107679
 
      ac_ii=`echo $ac_i|cut -c 3-`
107680
 
      
107681
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
107682
 
    
107683
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
107684
 
    ai_p=$ac_ii
107685
 
  else
107686
 
    
107687
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
107688
 
    
107689
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
107690
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
107691
 
  fi
107692
 
 
107693
 
    
107694
 
      if test "$ext_shared" = "yes"; then
107695
 
        SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
107696
 
        test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
107697
 
      else
107698
 
        
107699
 
  
107700
 
  
107701
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
107702
 
  
107703
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
107704
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
107705
 
    eval "LIBPATH$unique=set"
107706
 
    
107707
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
107708
 
    LDFLAGS="$LDFLAGS -L$ai_p"
107709
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
107710
 
  
107711
 
  fi
107712
 
 
107713
 
 
107714
 
      fi
107715
 
    
107716
 
  fi
107717
 
 
107718
 
    ;;
107719
 
    esac
107720
 
  done
107721
 
 
107722
 
      
107723
 
cat >>confdefs.h <<\_ACEOF
107724
 
@%:@define HAVE_NET_SNMP 1
107725
 
_ACEOF
107726
 
 
107727
 
      SNMP_LIBNAME=netsnmp
107728
 
    else
107729
 
      { { $as_echo "$as_me:$LINENO: error: Could not find the required paths. Please check your net-snmp installation." >&5
107730
 
$as_echo "$as_me: error: Could not find the required paths. Please check your net-snmp installation." >&2;}
107731
 
   { (exit 1); exit 1; }; }
107732
 
    fi
107733
 
  else 
107734
 
 
107735
 
            
107736
 
    if test "$PHP_SNMP" = "yes"; then
107737
 
      for i in /usr/include /usr/local/include; do
107738
 
        test -f $i/snmp.h                       && SNMP_INCDIR=$i
107739
 
        test -f $i/ucd-snmp/snmp.h              && SNMP_INCDIR=$i/ucd-snmp
107740
 
        test -f $i/snmp/snmp.h                  && SNMP_INCDIR=$i/snmp
107741
 
        test -f $i/snmp/include/ucd-snmp/snmp.h && SNMP_INCDIR=$i/snmp/include/ucd-snmp
107742
 
      done
107743
 
      for i in /usr/$PHP_LIBDIR /usr/snmp/lib /usr/local/$PHP_LIBDIR /usr/local/lib /usr/local/snmp/lib; do
107744
 
        test -f $i/libsnmp.a || test -f $i/libsnmp.$SHLIB_SUFFIX_NAME && SNMP_LIBDIR=$i
107745
 
      done
107746
 
    else
107747
 
      SNMP_INCDIR=$PHP_SNMP/include
107748
 
      test -d $PHP_SNMP/include/ucd-snmp && SNMP_INCDIR=$PHP_SNMP/include/ucd-snmp
107749
 
      SNMP_LIBDIR=$PHP_SNMP/lib
107750
 
    fi
107751
 
 
107752
 
    if test -z "$SNMP_INCDIR"; then
107753
 
      { { $as_echo "$as_me:$LINENO: error: snmp.h not found. Check your SNMP installation." >&5
107754
 
$as_echo "$as_me: error: snmp.h not found. Check your SNMP installation." >&2;}
107755
 
   { (exit 1); exit 1; }; }
107756
 
    elif test -z "$SNMP_LIBDIR"; then
107757
 
      { { $as_echo "$as_me:$LINENO: error: libsnmp not found. Check your SNMP installation." >&5
107758
 
$as_echo "$as_me: error: libsnmp not found. Check your SNMP installation." >&2;}
107759
 
   { (exit 1); exit 1; }; }
107760
 
    fi
107761
 
 
107762
 
    old_CPPFLAGS=$CPPFLAGS
107763
 
    CPPFLAGS=-I$SNMP_INCDIR
107764
 
    
107765
 
for ac_header in default_store.h
107766
 
do
107767
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
107768
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
107769
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
107770
 
$as_echo_n "checking for $ac_header... " >&6; }
107771
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
107772
 
  $as_echo_n "(cached) " >&6
107773
 
fi
107774
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
107775
 
                 $as_echo "$as_val"'`
107776
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
107777
 
$as_echo "$ac_res" >&6; }
107778
 
else
107779
 
  # Is the header compilable?
107780
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
107781
 
$as_echo_n "checking $ac_header usability... " >&6; }
107782
 
cat >conftest.$ac_ext <<_ACEOF
107783
 
/* confdefs.h.  */
107784
 
_ACEOF
107785
 
cat confdefs.h >>conftest.$ac_ext
107786
 
cat >>conftest.$ac_ext <<_ACEOF
107787
 
/* end confdefs.h.  */
107788
 
$ac_includes_default
107789
 
@%:@include <$ac_header>
107790
 
_ACEOF
107791
 
rm -f conftest.$ac_objext
107792
 
if { (ac_try="$ac_compile"
107793
 
case "(($ac_try" in
107794
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107795
 
  *) ac_try_echo=$ac_try;;
107796
 
esac
107797
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
107798
 
$as_echo "$ac_try_echo") >&5
107799
 
  (eval "$ac_compile") 2>conftest.er1
107800
 
  ac_status=$?
107801
 
  grep -v '^ *+' conftest.er1 >conftest.err
107802
 
  rm -f conftest.er1
107803
 
  cat conftest.err >&5
107804
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
107805
 
  (exit $ac_status); } && {
107806
 
         test -z "$ac_c_werror_flag" ||
107807
 
         test ! -s conftest.err
107808
 
       } && test -s conftest.$ac_objext; then
107809
 
  ac_header_compiler=yes
107810
 
else
107811
 
  $as_echo "$as_me: failed program was:" >&5
107812
 
sed 's/^/| /' conftest.$ac_ext >&5
107813
 
 
107814
 
        ac_header_compiler=no
107815
 
fi
107816
 
 
107817
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107818
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
107819
 
$as_echo "$ac_header_compiler" >&6; }
107820
 
 
107821
 
# Is the header present?
107822
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
107823
 
$as_echo_n "checking $ac_header presence... " >&6; }
107824
 
cat >conftest.$ac_ext <<_ACEOF
107825
 
/* confdefs.h.  */
107826
 
_ACEOF
107827
 
cat confdefs.h >>conftest.$ac_ext
107828
 
cat >>conftest.$ac_ext <<_ACEOF
107829
 
/* end confdefs.h.  */
107830
 
@%:@include <$ac_header>
107831
 
_ACEOF
107832
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
107833
 
case "(($ac_try" in
107834
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
107835
 
  *) ac_try_echo=$ac_try;;
107836
 
esac
107837
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
107838
 
$as_echo "$ac_try_echo") >&5
107839
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
107840
 
  ac_status=$?
107841
 
  grep -v '^ *+' conftest.er1 >conftest.err
107842
 
  rm -f conftest.er1
107843
 
  cat conftest.err >&5
107844
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
107845
 
  (exit $ac_status); } >/dev/null && {
107846
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
107847
 
         test ! -s conftest.err
107848
 
       }; then
107849
 
  ac_header_preproc=yes
107850
 
else
107851
 
  $as_echo "$as_me: failed program was:" >&5
107852
 
sed 's/^/| /' conftest.$ac_ext >&5
107853
 
 
107854
 
  ac_header_preproc=no
107855
 
fi
107856
 
 
107857
 
rm -f conftest.err conftest.$ac_ext
107858
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
107859
 
$as_echo "$ac_header_preproc" >&6; }
107860
 
 
107861
 
# So?  What about this header?
107862
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
107863
 
  yes:no: )
107864
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
107865
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
107866
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
107867
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
107868
 
    ac_header_preproc=yes
107869
 
    ;;
107870
 
  no:yes:* )
107871
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
107872
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
107873
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
107874
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
107875
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
107876
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
107877
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
107878
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
107879
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
107880
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
107881
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
107882
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
107883
 
    
107884
 
    ;;
107885
 
esac
107886
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
107887
 
$as_echo_n "checking for $ac_header... " >&6; }
107888
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
107889
 
  $as_echo_n "(cached) " >&6
107890
 
else
107891
 
  eval "$as_ac_Header=\$ac_header_preproc"
107892
 
fi
107893
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
107894
 
                 $as_echo "$as_val"'`
107895
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
107896
 
$as_echo "$ac_res" >&6; }
107897
 
 
107898
 
fi
107899
 
as_val=`eval 'as_val=${'$as_ac_Header'}
107900
 
                 $as_echo "$as_val"'`
107901
 
   if test "x$as_val" = x""yes; then
107902
 
  cat >>confdefs.h <<_ACEOF
107903
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
107904
 
_ACEOF
107905
 
 
107906
 
fi
107907
 
 
107908
 
done
107909
 
 
107910
 
    if test "$ac_cv_header_default_store_h" = "yes"; then
107911
 
      { $as_echo "$as_me:$LINENO: checking for OpenSSL support in SNMP libraries" >&5
107912
 
$as_echo_n "checking for OpenSSL support in SNMP libraries... " >&6; }
107913
 
      cat >conftest.$ac_ext <<_ACEOF
107914
 
/* confdefs.h.  */
107915
 
_ACEOF
107916
 
cat confdefs.h >>conftest.$ac_ext
107917
 
cat >>conftest.$ac_ext <<_ACEOF
107918
 
/* end confdefs.h.  */
107919
 
 
107920
 
#include <ucd-snmp-config.h>
107921
 
#if USE_OPENSSL
107922
 
        yes
107923
 
#endif
107924
 
      
107925
 
_ACEOF
107926
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
107927
 
  $EGREP "yes" >/dev/null 2>&1; then
107928
 
  
107929
 
        SNMP_SSL=yes
107930
 
      
107931
 
else
107932
 
  
107933
 
        SNMP_SSL=no
107934
 
      
107935
 
fi
107936
 
rm -f conftest*
107937
 
 
107938
 
    fi
107939
 
    CPPFLAGS=$old_CPPFLAGS
107940
 
    { $as_echo "$as_me:$LINENO: result: $SNMP_SSL" >&5
107941
 
$as_echo "$SNMP_SSL" >&6; }
107942
 
  
107943
 
    if test "$SNMP_SSL" = "yes"; then
107944
 
      if test "$PHP_OPENSSL_DIR" != "no"; then
107945
 
        PHP_OPENSSL=$PHP_OPENSSL_DIR
107946
 
      fi
107947
 
      
107948
 
      if test "$PHP_OPENSSL" = "no"; then
107949
 
        { { $as_echo "$as_me:$LINENO: error: The UCD-SNMP in this system is built with SSL support. 
107950
 
 
107951
 
        Add --with-openssl-dir=DIR to your configure line." >&5
107952
 
$as_echo "$as_me: error: The UCD-SNMP in this system is built with SSL support. 
107953
 
 
107954
 
        Add --with-openssl-dir=DIR to your configure line." >&2;}
107955
 
   { (exit 1); exit 1; }; }
107956
 
      else
107957
 
        
107958
 
  found_openssl=no
107959
 
  unset OPENSSL_INCDIR
107960
 
  unset OPENSSL_LIBDIR
107961
 
 
107962
 
    test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
107963
 
  test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
107964
 
 
107965
 
    if test "$PHP_OPENSSL" != "no"; then
107966
 
    PHP_OPENSSL_DIR=$PHP_OPENSSL
107967
 
  elif test "$PHP_IMAP_SSL" != "no"; then
107968
 
    PHP_OPENSSL_DIR=$PHP_IMAP_SSL
107969
 
  fi
107970
 
 
107971
 
    if test -z "$PKG_CONFIG"; then
107972
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
107973
 
set dummy pkg-config; ac_word=$2
107974
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
107975
 
$as_echo_n "checking for $ac_word... " >&6; }
107976
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
107977
 
  $as_echo_n "(cached) " >&6
107978
 
else
107979
 
  case $PKG_CONFIG in
107980
 
  [\\/]* | ?:[\\/]*)
107981
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
107982
 
  ;;
107983
 
  *)
107984
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107985
 
for as_dir in $PATH
107986
 
do
107987
 
  IFS=$as_save_IFS
107988
 
  test -z "$as_dir" && as_dir=.
107989
 
  for ac_exec_ext in '' $ac_executable_extensions; do
107990
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
107991
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
107992
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
107993
 
    break 2
107994
 
  fi
107995
 
done
107996
 
done
107997
 
IFS=$as_save_IFS
107998
 
 
107999
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
108000
 
  ;;
108001
 
esac
108002
 
fi
108003
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
108004
 
if test -n "$PKG_CONFIG"; then
108005
 
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
108006
 
$as_echo "$PKG_CONFIG" >&6; }
108007
 
else
108008
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
108009
 
$as_echo "no" >&6; }
108010
 
fi
108011
 
 
108012
 
 
108013
 
  fi
108014
 
 
108015
 
    if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
108016
 
    if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
108017
 
      found_openssl=yes
108018
 
      OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
108019
 
      OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
108020
 
      OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
108021
 
    else
108022
 
      { { $as_echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
108023
 
$as_echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
108024
 
   { (exit 1); exit 1; }; }
108025
 
    fi
108026
 
 
108027
 
    if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
108028
 
      
108029
 
  for ac_i in $OPENSSL_LIBS; do
108030
 
    case $ac_i in
108031
 
    -pthread)
108032
 
      if test "$ext_shared" = "yes"; then
108033
 
        SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread"
108034
 
      else
108035
 
        
108036
 
  
108037
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
108038
 
  
108039
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
108040
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108041
 
    eval "EXTRA_LDFLAGS$unique=set"
108042
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
108043
 
  fi
108044
 
 
108045
 
      fi
108046
 
    ;;
108047
 
    -l*)
108048
 
      ac_ii=`echo $ac_i|cut -c 3-`
108049
 
      
108050
 
  
108051
 
  case $ac_ii in
108052
 
  c|c_r|pthread*) ;;
108053
 
  *) 
108054
 
    if test "$ext_shared" = "yes"; then
108055
 
        SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii" 
108056
 
    else
108057
 
      
108058
 
  
108059
 
  case $ac_ii in
108060
 
  c|c_r|pthread*) ;;
108061
 
  *) 
108062
 
      LIBS="$LIBS -l$ac_ii" 
108063
 
   ;;
108064
 
  esac
108065
 
 
108066
 
 
108067
 
    fi
108068
 
   ;;
108069
 
  esac
108070
 
 
108071
 
 
108072
 
    ;;
108073
 
    -L*)
108074
 
      ac_ii=`echo $ac_i|cut -c 3-`
108075
 
      
108076
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
108077
 
    
108078
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
108079
 
    ai_p=$ac_ii
108080
 
  else
108081
 
    
108082
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
108083
 
    
108084
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108085
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
108086
 
  fi
108087
 
 
108088
 
    
108089
 
      if test "$ext_shared" = "yes"; then
108090
 
        SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
108091
 
        test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
108092
 
      else
108093
 
        
108094
 
  
108095
 
  
108096
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108097
 
  
108098
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
108099
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108100
 
    eval "LIBPATH$unique=set"
108101
 
    
108102
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
108103
 
    LDFLAGS="$LDFLAGS -L$ai_p"
108104
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
108105
 
  
108106
 
  fi
108107
 
 
108108
 
 
108109
 
      fi
108110
 
    
108111
 
  fi
108112
 
 
108113
 
    ;;
108114
 
    esac
108115
 
  done
108116
 
 
108117
 
      
108118
 
  for ac_i in $OPENSSL_INCS; do
108119
 
    case $ac_i in
108120
 
    -I*)
108121
 
      ac_ii=`echo $ac_i|cut -c 3-`
108122
 
      
108123
 
  if test "$ac_ii" != "/usr/include"; then
108124
 
    
108125
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
108126
 
    ai_p=$ac_ii
108127
 
  else
108128
 
    
108129
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
108130
 
    
108131
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108132
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
108133
 
  fi
108134
 
 
108135
 
    
108136
 
  
108137
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108138
 
  
108139
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
108140
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108141
 
    eval "INCLUDEPATH$unique=set"
108142
 
    
108143
 
      if test ""; then
108144
 
        INCLUDES="-I$ai_p $INCLUDES"
108145
 
      else
108146
 
        INCLUDES="$INCLUDES -I$ai_p"
108147
 
      fi
108148
 
    
108149
 
  fi
108150
 
 
108151
 
  fi
108152
 
 
108153
 
    ;;
108154
 
    esac
108155
 
  done
108156
 
 
108157
 
    fi
108158
 
  fi
108159
 
 
108160
 
    if test "$found_openssl" = "no"; then
108161
 
  
108162
 
    if test "$PHP_OPENSSL_DIR" = "yes"; then
108163
 
      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
108164
 
    fi
108165
 
 
108166
 
    for i in $PHP_OPENSSL_DIR; do
108167
 
      if test -r $i/include/openssl/evp.h; then
108168
 
        OPENSSL_INCDIR=$i/include
108169
 
      fi
108170
 
      if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
108171
 
        OPENSSL_LIBDIR=$i/$PHP_LIBDIR
108172
 
      fi
108173
 
      test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
108174
 
    done
108175
 
 
108176
 
    if test -z "$OPENSSL_INCDIR"; then
108177
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find OpenSSL's <evp.h>" >&5
108178
 
$as_echo "$as_me: error: Cannot find OpenSSL's <evp.h>" >&2;}
108179
 
   { (exit 1); exit 1; }; }
108180
 
    fi
108181
 
 
108182
 
    if test -z "$OPENSSL_LIBDIR"; then
108183
 
      { { $as_echo "$as_me:$LINENO: error: Cannot find OpenSSL's libraries" >&5
108184
 
$as_echo "$as_me: error: Cannot find OpenSSL's libraries" >&2;}
108185
 
   { (exit 1); exit 1; }; }
108186
 
    fi
108187
 
 
108188
 
    old_CPPFLAGS=$CPPFLAGS
108189
 
    CPPFLAGS=-I$OPENSSL_INCDIR
108190
 
    { $as_echo "$as_me:$LINENO: checking for OpenSSL version" >&5
108191
 
$as_echo_n "checking for OpenSSL version... " >&6; }
108192
 
    cat >conftest.$ac_ext <<_ACEOF
108193
 
/* confdefs.h.  */
108194
 
_ACEOF
108195
 
cat confdefs.h >>conftest.$ac_ext
108196
 
cat >>conftest.$ac_ext <<_ACEOF
108197
 
/* end confdefs.h.  */
108198
 
 
108199
 
#include <openssl/opensslv.h>
108200
 
#if OPENSSL_VERSION_NUMBER >= 0x0090600fL
108201
 
  yes
108202
 
#endif
108203
 
    
108204
 
_ACEOF
108205
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
108206
 
  $EGREP "yes" >/dev/null 2>&1; then
108207
 
  
108208
 
      { $as_echo "$as_me:$LINENO: result: >= 0.9.6" >&5
108209
 
$as_echo ">= 0.9.6" >&6; }
108210
 
    
108211
 
else
108212
 
  
108213
 
      { { $as_echo "$as_me:$LINENO: error: OpenSSL version 0.9.6 or greater required." >&5
108214
 
$as_echo "$as_me: error: OpenSSL version 0.9.6 or greater required." >&2;}
108215
 
   { (exit 1); exit 1; }; }
108216
 
    
108217
 
fi
108218
 
rm -f conftest*
108219
 
 
108220
 
    CPPFLAGS=$old_CPPFLAGS
108221
 
 
108222
 
    
108223
 
  if test "$OPENSSL_INCDIR" != "/usr/include"; then
108224
 
    
108225
 
  if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
108226
 
    ai_p=$OPENSSL_INCDIR
108227
 
  else
108228
 
    
108229
 
    ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
108230
 
    
108231
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108232
 
    ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
108233
 
  fi
108234
 
 
108235
 
    
108236
 
  
108237
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108238
 
  
108239
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
108240
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108241
 
    eval "INCLUDEPATH$unique=set"
108242
 
    
108243
 
      if test ""; then
108244
 
        INCLUDES="-I$ai_p $INCLUDES"
108245
 
      else
108246
 
        INCLUDES="$INCLUDES -I$ai_p"
108247
 
      fi
108248
 
    
108249
 
  fi
108250
 
 
108251
 
  fi
108252
 
 
108253
 
  
108254
 
    
108255
 
  save_old_LDFLAGS=$LDFLAGS
108256
 
  ac_stuff="
108257
 
      -L$OPENSSL_LIBDIR
108258
 
    "
108259
 
  
108260
 
  save_ext_shared=$ext_shared
108261
 
  ext_shared=yes
108262
 
  
108263
 
  for ac_i in $ac_stuff; do
108264
 
    case $ac_i in
108265
 
    -pthread)
108266
 
      if test "$ext_shared" = "yes"; then
108267
 
        LDFLAGS="$LDFLAGS -pthread"
108268
 
      else
108269
 
        
108270
 
  
108271
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
108272
 
  
108273
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
108274
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108275
 
    eval "EXTRA_LDFLAGS$unique=set"
108276
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
108277
 
  fi
108278
 
 
108279
 
      fi
108280
 
    ;;
108281
 
    -l*)
108282
 
      ac_ii=`echo $ac_i|cut -c 3-`
108283
 
      
108284
 
  
108285
 
  case $ac_ii in
108286
 
  c|c_r|pthread*) ;;
108287
 
  *) 
108288
 
    if test "$ext_shared" = "yes"; then
108289
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
108290
 
    else
108291
 
      
108292
 
  
108293
 
  case $ac_ii in
108294
 
  c|c_r|pthread*) ;;
108295
 
  *) 
108296
 
      LIBS="$LIBS -l$ac_ii" 
108297
 
   ;;
108298
 
  esac
108299
 
 
108300
 
 
108301
 
    fi
108302
 
   ;;
108303
 
  esac
108304
 
 
108305
 
 
108306
 
    ;;
108307
 
    -L*)
108308
 
      ac_ii=`echo $ac_i|cut -c 3-`
108309
 
      
108310
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
108311
 
    
108312
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
108313
 
    ai_p=$ac_ii
108314
 
  else
108315
 
    
108316
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
108317
 
    
108318
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108319
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
108320
 
  fi
108321
 
 
108322
 
    
108323
 
      if test "$ext_shared" = "yes"; then
108324
 
        LDFLAGS="-L$ai_p $LDFLAGS"
108325
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
108326
 
      else
108327
 
        
108328
 
  
108329
 
  
108330
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108331
 
  
108332
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
108333
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108334
 
    eval "LIBPATH$unique=set"
108335
 
    
108336
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
108337
 
    LDFLAGS="$LDFLAGS -L$ai_p"
108338
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
108339
 
  
108340
 
  fi
108341
 
 
108342
 
 
108343
 
      fi
108344
 
    
108345
 
  fi
108346
 
 
108347
 
    ;;
108348
 
    esac
108349
 
  done
108350
 
 
108351
 
  { $as_echo "$as_me:$LINENO: checking for CRYPTO_free in -lcrypto" >&5
108352
 
$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
108353
 
if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then
108354
 
  $as_echo_n "(cached) " >&6
108355
 
else
108356
 
  ac_check_lib_save_LIBS=$LIBS
108357
 
LIBS="-lcrypto  $LIBS"
108358
 
cat >conftest.$ac_ext <<_ACEOF
108359
 
/* confdefs.h.  */
108360
 
_ACEOF
108361
 
cat confdefs.h >>conftest.$ac_ext
108362
 
cat >>conftest.$ac_ext <<_ACEOF
108363
 
/* end confdefs.h.  */
108364
 
 
108365
 
/* Override any GCC internal prototype to avoid an error.
108366
 
   Use char because int might match the return type of a GCC
108367
 
   builtin and then its argument prototype would still apply.  */
108368
 
#ifdef __cplusplus
108369
 
extern "C"
108370
 
#endif
108371
 
char CRYPTO_free ();
108372
 
int
108373
 
main ()
108374
 
{
108375
 
return CRYPTO_free ();
108376
 
  ;
108377
 
  return 0;
108378
 
}
108379
 
_ACEOF
108380
 
rm -f conftest.$ac_objext conftest$ac_exeext
108381
 
if { (ac_try="$ac_link"
108382
 
case "(($ac_try" in
108383
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108384
 
  *) ac_try_echo=$ac_try;;
108385
 
esac
108386
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
108387
 
$as_echo "$ac_try_echo") >&5
108388
 
  (eval "$ac_link") 2>conftest.er1
108389
 
  ac_status=$?
108390
 
  grep -v '^ *+' conftest.er1 >conftest.err
108391
 
  rm -f conftest.er1
108392
 
  cat conftest.err >&5
108393
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
108394
 
  (exit $ac_status); } && {
108395
 
         test -z "$ac_c_werror_flag" ||
108396
 
         test ! -s conftest.err
108397
 
       } && test -s conftest$ac_exeext && {
108398
 
         test "$cross_compiling" = yes ||
108399
 
         $as_test_x conftest$ac_exeext
108400
 
       }; then
108401
 
  ac_cv_lib_crypto_CRYPTO_free=yes
108402
 
else
108403
 
  $as_echo "$as_me: failed program was:" >&5
108404
 
sed 's/^/| /' conftest.$ac_ext >&5
108405
 
 
108406
 
        ac_cv_lib_crypto_CRYPTO_free=no
108407
 
fi
108408
 
 
108409
 
rm -rf conftest.dSYM
108410
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108411
 
      conftest$ac_exeext conftest.$ac_ext
108412
 
LIBS=$ac_check_lib_save_LIBS
108413
 
fi
108414
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
108415
 
$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
108416
 
if test "x$ac_cv_lib_crypto_CRYPTO_free" = x""yes; then
108417
 
  
108418
 
    LDFLAGS=$save_old_LDFLAGS
108419
 
    ext_shared=$save_ext_shared
108420
 
    
108421
 
      
108422
 
  
108423
 
  case crypto in
108424
 
  c|c_r|pthread*) ;;
108425
 
  *) 
108426
 
    if test "$ext_shared" = "yes"; then
108427
 
        SNMP_SHARED_LIBADD="-lcrypto $SNMP_SHARED_LIBADD" 
108428
 
    else
108429
 
      
108430
 
  
108431
 
  case crypto in
108432
 
  c|c_r|pthread*) ;;
108433
 
  *) 
108434
 
      LIBS="-lcrypto $LIBS" 
108435
 
   ;;
108436
 
  esac
108437
 
 
108438
 
 
108439
 
    fi
108440
 
   ;;
108441
 
  esac
108442
 
 
108443
 
 
108444
 
    
108445
 
  
108446
 
else
108447
 
  
108448
 
    LDFLAGS=$save_old_LDFLAGS
108449
 
    ext_shared=$save_ext_shared
108450
 
    unset ac_cv_lib_crypto_CRYPTO_free
108451
 
    
108452
 
      { { $as_echo "$as_me:$LINENO: error: libcrypto not found!" >&5
108453
 
$as_echo "$as_me: error: libcrypto not found!" >&2;}
108454
 
   { (exit 1); exit 1; }; }
108455
 
    
108456
 
  
108457
 
fi
108458
 
 
108459
 
 
108460
 
    old_LIBS=$LIBS
108461
 
    LIBS="$LIBS -lcrypto"
108462
 
    
108463
 
  save_old_LDFLAGS=$LDFLAGS
108464
 
  ac_stuff="
108465
 
      -L$OPENSSL_LIBDIR
108466
 
    "
108467
 
  
108468
 
  save_ext_shared=$ext_shared
108469
 
  ext_shared=yes
108470
 
  
108471
 
  for ac_i in $ac_stuff; do
108472
 
    case $ac_i in
108473
 
    -pthread)
108474
 
      if test "$ext_shared" = "yes"; then
108475
 
        LDFLAGS="$LDFLAGS -pthread"
108476
 
      else
108477
 
        
108478
 
  
108479
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
108480
 
  
108481
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
108482
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108483
 
    eval "EXTRA_LDFLAGS$unique=set"
108484
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
108485
 
  fi
108486
 
 
108487
 
      fi
108488
 
    ;;
108489
 
    -l*)
108490
 
      ac_ii=`echo $ac_i|cut -c 3-`
108491
 
      
108492
 
  
108493
 
  case $ac_ii in
108494
 
  c|c_r|pthread*) ;;
108495
 
  *) 
108496
 
    if test "$ext_shared" = "yes"; then
108497
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
108498
 
    else
108499
 
      
108500
 
  
108501
 
  case $ac_ii in
108502
 
  c|c_r|pthread*) ;;
108503
 
  *) 
108504
 
      LIBS="$LIBS -l$ac_ii" 
108505
 
   ;;
108506
 
  esac
108507
 
 
108508
 
 
108509
 
    fi
108510
 
   ;;
108511
 
  esac
108512
 
 
108513
 
 
108514
 
    ;;
108515
 
    -L*)
108516
 
      ac_ii=`echo $ac_i|cut -c 3-`
108517
 
      
108518
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
108519
 
    
108520
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
108521
 
    ai_p=$ac_ii
108522
 
  else
108523
 
    
108524
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
108525
 
    
108526
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108527
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
108528
 
  fi
108529
 
 
108530
 
    
108531
 
      if test "$ext_shared" = "yes"; then
108532
 
        LDFLAGS="-L$ai_p $LDFLAGS"
108533
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
108534
 
      else
108535
 
        
108536
 
  
108537
 
  
108538
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108539
 
  
108540
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
108541
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108542
 
    eval "LIBPATH$unique=set"
108543
 
    
108544
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
108545
 
    LDFLAGS="$LDFLAGS -L$ai_p"
108546
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
108547
 
  
108548
 
  fi
108549
 
 
108550
 
 
108551
 
      fi
108552
 
    
108553
 
  fi
108554
 
 
108555
 
    ;;
108556
 
    esac
108557
 
  done
108558
 
 
108559
 
  { $as_echo "$as_me:$LINENO: checking for SSL_CTX_set_ssl_version in -lssl" >&5
108560
 
$as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
108561
 
if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then
108562
 
  $as_echo_n "(cached) " >&6
108563
 
else
108564
 
  ac_check_lib_save_LIBS=$LIBS
108565
 
LIBS="-lssl  $LIBS"
108566
 
cat >conftest.$ac_ext <<_ACEOF
108567
 
/* confdefs.h.  */
108568
 
_ACEOF
108569
 
cat confdefs.h >>conftest.$ac_ext
108570
 
cat >>conftest.$ac_ext <<_ACEOF
108571
 
/* end confdefs.h.  */
108572
 
 
108573
 
/* Override any GCC internal prototype to avoid an error.
108574
 
   Use char because int might match the return type of a GCC
108575
 
   builtin and then its argument prototype would still apply.  */
108576
 
#ifdef __cplusplus
108577
 
extern "C"
108578
 
#endif
108579
 
char SSL_CTX_set_ssl_version ();
108580
 
int
108581
 
main ()
108582
 
{
108583
 
return SSL_CTX_set_ssl_version ();
108584
 
  ;
108585
 
  return 0;
108586
 
}
108587
 
_ACEOF
108588
 
rm -f conftest.$ac_objext conftest$ac_exeext
108589
 
if { (ac_try="$ac_link"
108590
 
case "(($ac_try" in
108591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108592
 
  *) ac_try_echo=$ac_try;;
108593
 
esac
108594
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
108595
 
$as_echo "$ac_try_echo") >&5
108596
 
  (eval "$ac_link") 2>conftest.er1
108597
 
  ac_status=$?
108598
 
  grep -v '^ *+' conftest.er1 >conftest.err
108599
 
  rm -f conftest.er1
108600
 
  cat conftest.err >&5
108601
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
108602
 
  (exit $ac_status); } && {
108603
 
         test -z "$ac_c_werror_flag" ||
108604
 
         test ! -s conftest.err
108605
 
       } && test -s conftest$ac_exeext && {
108606
 
         test "$cross_compiling" = yes ||
108607
 
         $as_test_x conftest$ac_exeext
108608
 
       }; then
108609
 
  ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
108610
 
else
108611
 
  $as_echo "$as_me: failed program was:" >&5
108612
 
sed 's/^/| /' conftest.$ac_ext >&5
108613
 
 
108614
 
        ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
108615
 
fi
108616
 
 
108617
 
rm -rf conftest.dSYM
108618
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108619
 
      conftest$ac_exeext conftest.$ac_ext
108620
 
LIBS=$ac_check_lib_save_LIBS
108621
 
fi
108622
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
108623
 
$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
108624
 
if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = x""yes; then
108625
 
  
108626
 
    LDFLAGS=$save_old_LDFLAGS
108627
 
    ext_shared=$save_ext_shared
108628
 
    
108629
 
      found_openssl=yes
108630
 
    
108631
 
  
108632
 
else
108633
 
  
108634
 
    LDFLAGS=$save_old_LDFLAGS
108635
 
    ext_shared=$save_ext_shared
108636
 
    unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
108637
 
    
108638
 
      { { $as_echo "$as_me:$LINENO: error: libssl not found!" >&5
108639
 
$as_echo "$as_me: error: libssl not found!" >&2;}
108640
 
   { (exit 1); exit 1; }; }
108641
 
    
108642
 
  
108643
 
fi
108644
 
 
108645
 
    LIBS=$old_LIBS
108646
 
    
108647
 
  
108648
 
  case ssl in
108649
 
  c|c_r|pthread*) ;;
108650
 
  *) 
108651
 
    if test "$ext_shared" = "yes"; then
108652
 
        SNMP_SHARED_LIBADD="-lssl $SNMP_SHARED_LIBADD" 
108653
 
    else
108654
 
      
108655
 
  
108656
 
  case ssl in
108657
 
  c|c_r|pthread*) ;;
108658
 
  *) 
108659
 
      LIBS="-lssl $LIBS" 
108660
 
   ;;
108661
 
  esac
108662
 
 
108663
 
 
108664
 
    fi
108665
 
   ;;
108666
 
  esac
108667
 
 
108668
 
 
108669
 
    
108670
 
  
108671
 
  case crypto in
108672
 
  c|c_r|pthread*) ;;
108673
 
  *) 
108674
 
    if test "$ext_shared" = "yes"; then
108675
 
        SNMP_SHARED_LIBADD="-lcrypto $SNMP_SHARED_LIBADD" 
108676
 
    else
108677
 
      
108678
 
  
108679
 
  case crypto in
108680
 
  c|c_r|pthread*) ;;
108681
 
  *) 
108682
 
      LIBS="-lcrypto $LIBS" 
108683
 
   ;;
108684
 
  esac
108685
 
 
108686
 
 
108687
 
    fi
108688
 
   ;;
108689
 
  esac
108690
 
 
108691
 
 
108692
 
 
108693
 
    
108694
 
  if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
108695
 
    
108696
 
  if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
108697
 
    ai_p=$OPENSSL_LIBDIR
108698
 
  else
108699
 
    
108700
 
    ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
108701
 
    
108702
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108703
 
    ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
108704
 
  fi
108705
 
 
108706
 
    
108707
 
      if test "$ext_shared" = "yes"; then
108708
 
        SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
108709
 
        test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
108710
 
      else
108711
 
        
108712
 
  
108713
 
  
108714
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108715
 
  
108716
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
108717
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108718
 
    eval "LIBPATH$unique=set"
108719
 
    
108720
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
108721
 
    LDFLAGS="$LDFLAGS -L$ai_p"
108722
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
108723
 
  
108724
 
  fi
108725
 
 
108726
 
 
108727
 
      fi
108728
 
    
108729
 
  fi
108730
 
 
108731
 
  fi
108732
 
 
108733
 
  if test "$found_openssl" = "yes"; then
108734
 
    OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
108735
 
  
108736
 
 
108737
 
:
108738
 
else 
108739
 
          { { $as_echo "$as_me:$LINENO: error: SNMP: OpenSSL check failed. Please check config.log for more information." >&5
108740
 
$as_echo "$as_me: error: SNMP: OpenSSL check failed. Please check config.log for more information." >&2;}
108741
 
   { (exit 1); exit 1; }; }
108742
 
        
108743
 
  fi
108744
 
 
108745
 
      fi
108746
 
    fi
108747
 
 
108748
 
    { $as_echo "$as_me:$LINENO: checking for kstat_read in -lkstat" >&5
108749
 
$as_echo_n "checking for kstat_read in -lkstat... " >&6; }
108750
 
if test "${ac_cv_lib_kstat_kstat_read+set}" = set; then
108751
 
  $as_echo_n "(cached) " >&6
108752
 
else
108753
 
  ac_check_lib_save_LIBS=$LIBS
108754
 
LIBS="-lkstat  $LIBS"
108755
 
cat >conftest.$ac_ext <<_ACEOF
108756
 
/* confdefs.h.  */
108757
 
_ACEOF
108758
 
cat confdefs.h >>conftest.$ac_ext
108759
 
cat >>conftest.$ac_ext <<_ACEOF
108760
 
/* end confdefs.h.  */
108761
 
 
108762
 
/* Override any GCC internal prototype to avoid an error.
108763
 
   Use char because int might match the return type of a GCC
108764
 
   builtin and then its argument prototype would still apply.  */
108765
 
#ifdef __cplusplus
108766
 
extern "C"
108767
 
#endif
108768
 
char kstat_read ();
108769
 
int
108770
 
main ()
108771
 
{
108772
 
return kstat_read ();
108773
 
  ;
108774
 
  return 0;
108775
 
}
108776
 
_ACEOF
108777
 
rm -f conftest.$ac_objext conftest$ac_exeext
108778
 
if { (ac_try="$ac_link"
108779
 
case "(($ac_try" in
108780
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
108781
 
  *) ac_try_echo=$ac_try;;
108782
 
esac
108783
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
108784
 
$as_echo "$ac_try_echo") >&5
108785
 
  (eval "$ac_link") 2>conftest.er1
108786
 
  ac_status=$?
108787
 
  grep -v '^ *+' conftest.er1 >conftest.err
108788
 
  rm -f conftest.er1
108789
 
  cat conftest.err >&5
108790
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
108791
 
  (exit $ac_status); } && {
108792
 
         test -z "$ac_c_werror_flag" ||
108793
 
         test ! -s conftest.err
108794
 
       } && test -s conftest$ac_exeext && {
108795
 
         test "$cross_compiling" = yes ||
108796
 
         $as_test_x conftest$ac_exeext
108797
 
       }; then
108798
 
  ac_cv_lib_kstat_kstat_read=yes
108799
 
else
108800
 
  $as_echo "$as_me: failed program was:" >&5
108801
 
sed 's/^/| /' conftest.$ac_ext >&5
108802
 
 
108803
 
        ac_cv_lib_kstat_kstat_read=no
108804
 
fi
108805
 
 
108806
 
rm -rf conftest.dSYM
108807
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
108808
 
      conftest$ac_exeext conftest.$ac_ext
108809
 
LIBS=$ac_check_lib_save_LIBS
108810
 
fi
108811
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_read" >&5
108812
 
$as_echo "$ac_cv_lib_kstat_kstat_read" >&6; }
108813
 
if test "x$ac_cv_lib_kstat_kstat_read" = x""yes; then
108814
 
   
108815
 
  
108816
 
  case kstat in
108817
 
  c|c_r|pthread*) ;;
108818
 
  *) 
108819
 
    if test "$ext_shared" = "yes"; then
108820
 
        SNMP_SHARED_LIBADD="-lkstat $SNMP_SHARED_LIBADD" 
108821
 
    else
108822
 
      
108823
 
  
108824
 
  case kstat in
108825
 
  c|c_r|pthread*) ;;
108826
 
  *) 
108827
 
      LIBS="-lkstat $LIBS" 
108828
 
   ;;
108829
 
  esac
108830
 
 
108831
 
 
108832
 
    fi
108833
 
   ;;
108834
 
  esac
108835
 
 
108836
 
 
108837
 
fi
108838
 
 
108839
 
    
108840
 
  if test "$SNMP_INCDIR" != "/usr/include"; then
108841
 
    
108842
 
  if test -z "$SNMP_INCDIR" || echo "$SNMP_INCDIR" | grep '^/' >/dev/null ; then
108843
 
    ai_p=$SNMP_INCDIR
108844
 
  else
108845
 
    
108846
 
    ep_dir="`echo $SNMP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
108847
 
    
108848
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108849
 
    ai_p="$ep_realdir/`basename \"$SNMP_INCDIR\"`"
108850
 
  fi
108851
 
 
108852
 
    
108853
 
  
108854
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108855
 
  
108856
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
108857
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108858
 
    eval "INCLUDEPATH$unique=set"
108859
 
    
108860
 
      if test ""; then
108861
 
        INCLUDES="-I$ai_p $INCLUDES"
108862
 
      else
108863
 
        INCLUDES="$INCLUDES -I$ai_p"
108864
 
      fi
108865
 
    
108866
 
  fi
108867
 
 
108868
 
  fi
108869
 
 
108870
 
    
108871
 
 
108872
 
  if test "$ext_shared" = "yes"; then
108873
 
    SNMP_SHARED_LIBADD="-lsnmp $SNMP_SHARED_LIBADD"
108874
 
    if test -n "$SNMP_LIBDIR"; then
108875
 
      
108876
 
  if test "$SNMP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SNMP_LIBDIR" != "/usr/lib"; then
108877
 
    
108878
 
  if test -z "$SNMP_LIBDIR" || echo "$SNMP_LIBDIR" | grep '^/' >/dev/null ; then
108879
 
    ai_p=$SNMP_LIBDIR
108880
 
  else
108881
 
    
108882
 
    ep_dir="`echo $SNMP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
108883
 
    
108884
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108885
 
    ai_p="$ep_realdir/`basename \"$SNMP_LIBDIR\"`"
108886
 
  fi
108887
 
 
108888
 
    
108889
 
      if test "$ext_shared" = "yes"; then
108890
 
        SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
108891
 
        test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
108892
 
      else
108893
 
        
108894
 
  
108895
 
  
108896
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108897
 
  
108898
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
108899
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108900
 
    eval "LIBPATH$unique=set"
108901
 
    
108902
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
108903
 
    LDFLAGS="$LDFLAGS -L$ai_p"
108904
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
108905
 
  
108906
 
  fi
108907
 
 
108908
 
 
108909
 
      fi
108910
 
    
108911
 
  fi
108912
 
 
108913
 
    fi
108914
 
  else
108915
 
    
108916
 
 
108917
 
  if test -n "$SNMP_LIBDIR"; then
108918
 
    
108919
 
  if test "$SNMP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SNMP_LIBDIR" != "/usr/lib"; then
108920
 
    
108921
 
  if test -z "$SNMP_LIBDIR" || echo "$SNMP_LIBDIR" | grep '^/' >/dev/null ; then
108922
 
    ai_p=$SNMP_LIBDIR
108923
 
  else
108924
 
    
108925
 
    ep_dir="`echo $SNMP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
108926
 
    
108927
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
108928
 
    ai_p="$ep_realdir/`basename \"$SNMP_LIBDIR\"`"
108929
 
  fi
108930
 
 
108931
 
    
108932
 
      
108933
 
  
108934
 
  
108935
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
108936
 
  
108937
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
108938
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108939
 
    eval "LIBPATH$unique=set"
108940
 
    
108941
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
108942
 
    LDFLAGS="$LDFLAGS -L$ai_p"
108943
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
108944
 
  
108945
 
  fi
108946
 
 
108947
 
 
108948
 
    
108949
 
  fi
108950
 
 
108951
 
  fi
108952
 
  
108953
 
  
108954
 
  case snmp in
108955
 
  c|c_r|pthread*) ;;
108956
 
  *) 
108957
 
      LIBS="-lsnmp $LIBS" 
108958
 
   ;;
108959
 
  esac
108960
 
 
108961
 
 
108962
 
 
108963
 
 
108964
 
  fi
108965
 
 
108966
 
 
108967
 
    SNMP_LIBNAME=snmp
108968
 
  fi
108969
 
 
108970
 
    
108971
 
  save_old_LDFLAGS=$LDFLAGS
108972
 
  ac_stuff="
108973
 
    $SNMP_SHARED_LIBADD
108974
 
  "
108975
 
  
108976
 
  save_ext_shared=$ext_shared
108977
 
  ext_shared=yes
108978
 
  
108979
 
  for ac_i in $ac_stuff; do
108980
 
    case $ac_i in
108981
 
    -pthread)
108982
 
      if test "$ext_shared" = "yes"; then
108983
 
        LDFLAGS="$LDFLAGS -pthread"
108984
 
      else
108985
 
        
108986
 
  
108987
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
108988
 
  
108989
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
108990
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
108991
 
    eval "EXTRA_LDFLAGS$unique=set"
108992
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
108993
 
  fi
108994
 
 
108995
 
      fi
108996
 
    ;;
108997
 
    -l*)
108998
 
      ac_ii=`echo $ac_i|cut -c 3-`
108999
 
      
109000
 
  
109001
 
  case $ac_ii in
109002
 
  c|c_r|pthread*) ;;
109003
 
  *) 
109004
 
    if test "$ext_shared" = "yes"; then
109005
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
109006
 
    else
109007
 
      
109008
 
  
109009
 
  case $ac_ii in
109010
 
  c|c_r|pthread*) ;;
109011
 
  *) 
109012
 
      LIBS="$LIBS -l$ac_ii" 
109013
 
   ;;
109014
 
  esac
109015
 
 
109016
 
 
109017
 
    fi
109018
 
   ;;
109019
 
  esac
109020
 
 
109021
 
 
109022
 
    ;;
109023
 
    -L*)
109024
 
      ac_ii=`echo $ac_i|cut -c 3-`
109025
 
      
109026
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
109027
 
    
109028
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
109029
 
    ai_p=$ac_ii
109030
 
  else
109031
 
    
109032
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
109033
 
    
109034
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
109035
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
109036
 
  fi
109037
 
 
109038
 
    
109039
 
      if test "$ext_shared" = "yes"; then
109040
 
        LDFLAGS="-L$ai_p $LDFLAGS"
109041
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
109042
 
      else
109043
 
        
109044
 
  
109045
 
  
109046
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
109047
 
  
109048
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
109049
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
109050
 
    eval "LIBPATH$unique=set"
109051
 
    
109052
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
109053
 
    LDFLAGS="$LDFLAGS -L$ai_p"
109054
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
109055
 
  
109056
 
  fi
109057
 
 
109058
 
 
109059
 
      fi
109060
 
    
109061
 
  fi
109062
 
 
109063
 
    ;;
109064
 
    esac
109065
 
  done
109066
 
 
109067
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_snmp_parse_oid" | $as_tr_sh`
109068
 
{ $as_echo "$as_me:$LINENO: checking for snmp_parse_oid in -l$SNMP_LIBNAME" >&5
109069
 
$as_echo_n "checking for snmp_parse_oid in -l$SNMP_LIBNAME... " >&6; }
109070
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
109071
 
  $as_echo_n "(cached) " >&6
109072
 
else
109073
 
  ac_check_lib_save_LIBS=$LIBS
109074
 
LIBS="-l$SNMP_LIBNAME  $LIBS"
109075
 
cat >conftest.$ac_ext <<_ACEOF
109076
 
/* confdefs.h.  */
109077
 
_ACEOF
109078
 
cat confdefs.h >>conftest.$ac_ext
109079
 
cat >>conftest.$ac_ext <<_ACEOF
109080
 
/* end confdefs.h.  */
109081
 
 
109082
 
/* Override any GCC internal prototype to avoid an error.
109083
 
   Use char because int might match the return type of a GCC
109084
 
   builtin and then its argument prototype would still apply.  */
109085
 
#ifdef __cplusplus
109086
 
extern "C"
109087
 
#endif
109088
 
char snmp_parse_oid ();
109089
 
int
109090
 
main ()
109091
 
{
109092
 
return snmp_parse_oid ();
109093
 
  ;
109094
 
  return 0;
109095
 
}
109096
 
_ACEOF
109097
 
rm -f conftest.$ac_objext conftest$ac_exeext
109098
 
if { (ac_try="$ac_link"
109099
 
case "(($ac_try" in
109100
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109101
 
  *) ac_try_echo=$ac_try;;
109102
 
esac
109103
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
109104
 
$as_echo "$ac_try_echo") >&5
109105
 
  (eval "$ac_link") 2>conftest.er1
109106
 
  ac_status=$?
109107
 
  grep -v '^ *+' conftest.er1 >conftest.err
109108
 
  rm -f conftest.er1
109109
 
  cat conftest.err >&5
109110
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
109111
 
  (exit $ac_status); } && {
109112
 
         test -z "$ac_c_werror_flag" ||
109113
 
         test ! -s conftest.err
109114
 
       } && test -s conftest$ac_exeext && {
109115
 
         test "$cross_compiling" = yes ||
109116
 
         $as_test_x conftest$ac_exeext
109117
 
       }; then
109118
 
  eval "$as_ac_Lib=yes"
109119
 
else
109120
 
  $as_echo "$as_me: failed program was:" >&5
109121
 
sed 's/^/| /' conftest.$ac_ext >&5
109122
 
 
109123
 
        eval "$as_ac_Lib=no"
109124
 
fi
109125
 
 
109126
 
rm -rf conftest.dSYM
109127
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109128
 
      conftest$ac_exeext conftest.$ac_ext
109129
 
LIBS=$ac_check_lib_save_LIBS
109130
 
fi
109131
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
109132
 
                 $as_echo "$as_val"'`
109133
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
109134
 
$as_echo "$ac_res" >&6; }
109135
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
109136
 
                 $as_echo "$as_val"'`
109137
 
   if test "x$as_val" = x""yes; then
109138
 
  
109139
 
    LDFLAGS=$save_old_LDFLAGS
109140
 
    ext_shared=$save_ext_shared
109141
 
    
109142
 
    
109143
 
cat >>confdefs.h <<\_ACEOF
109144
 
@%:@define HAVE_SNMP_PARSE_OID 1
109145
 
_ACEOF
109146
 
 
109147
 
  
109148
 
  
109149
 
else
109150
 
  
109151
 
    LDFLAGS=$save_old_LDFLAGS
109152
 
    ext_shared=$save_ext_shared
109153
 
    unset ac_cv_lib_$SNMP_LIBNAME_snmp_parse_oid
109154
 
    
109155
 
  
109156
 
fi
109157
 
 
109158
 
 
109159
 
    
109160
 
  save_old_LDFLAGS=$LDFLAGS
109161
 
  ac_stuff="
109162
 
    $SNMP_SHARED_LIBADD
109163
 
  "
109164
 
  
109165
 
  save_ext_shared=$ext_shared
109166
 
  ext_shared=yes
109167
 
  
109168
 
  for ac_i in $ac_stuff; do
109169
 
    case $ac_i in
109170
 
    -pthread)
109171
 
      if test "$ext_shared" = "yes"; then
109172
 
        LDFLAGS="$LDFLAGS -pthread"
109173
 
      else
109174
 
        
109175
 
  
109176
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
109177
 
  
109178
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
109179
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
109180
 
    eval "EXTRA_LDFLAGS$unique=set"
109181
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
109182
 
  fi
109183
 
 
109184
 
      fi
109185
 
    ;;
109186
 
    -l*)
109187
 
      ac_ii=`echo $ac_i|cut -c 3-`
109188
 
      
109189
 
  
109190
 
  case $ac_ii in
109191
 
  c|c_r|pthread*) ;;
109192
 
  *) 
109193
 
    if test "$ext_shared" = "yes"; then
109194
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
109195
 
    else
109196
 
      
109197
 
  
109198
 
  case $ac_ii in
109199
 
  c|c_r|pthread*) ;;
109200
 
  *) 
109201
 
      LIBS="$LIBS -l$ac_ii" 
109202
 
   ;;
109203
 
  esac
109204
 
 
109205
 
 
109206
 
    fi
109207
 
   ;;
109208
 
  esac
109209
 
 
109210
 
 
109211
 
    ;;
109212
 
    -L*)
109213
 
      ac_ii=`echo $ac_i|cut -c 3-`
109214
 
      
109215
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
109216
 
    
109217
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
109218
 
    ai_p=$ac_ii
109219
 
  else
109220
 
    
109221
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
109222
 
    
109223
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
109224
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
109225
 
  fi
109226
 
 
109227
 
    
109228
 
      if test "$ext_shared" = "yes"; then
109229
 
        LDFLAGS="-L$ai_p $LDFLAGS"
109230
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
109231
 
      else
109232
 
        
109233
 
  
109234
 
  
109235
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
109236
 
  
109237
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
109238
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
109239
 
    eval "LIBPATH$unique=set"
109240
 
    
109241
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
109242
 
    LDFLAGS="$LDFLAGS -L$ai_p"
109243
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
109244
 
  
109245
 
  fi
109246
 
 
109247
 
 
109248
 
      fi
109249
 
    
109250
 
  fi
109251
 
 
109252
 
    ;;
109253
 
    esac
109254
 
  done
109255
 
 
109256
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh`
109257
 
{ $as_echo "$as_me:$LINENO: checking for init_snmp in -l$SNMP_LIBNAME" >&5
109258
 
$as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; }
109259
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
109260
 
  $as_echo_n "(cached) " >&6
109261
 
else
109262
 
  ac_check_lib_save_LIBS=$LIBS
109263
 
LIBS="-l$SNMP_LIBNAME  $LIBS"
109264
 
cat >conftest.$ac_ext <<_ACEOF
109265
 
/* confdefs.h.  */
109266
 
_ACEOF
109267
 
cat confdefs.h >>conftest.$ac_ext
109268
 
cat >>conftest.$ac_ext <<_ACEOF
109269
 
/* end confdefs.h.  */
109270
 
 
109271
 
/* Override any GCC internal prototype to avoid an error.
109272
 
   Use char because int might match the return type of a GCC
109273
 
   builtin and then its argument prototype would still apply.  */
109274
 
#ifdef __cplusplus
109275
 
extern "C"
109276
 
#endif
109277
 
char init_snmp ();
109278
 
int
109279
 
main ()
109280
 
{
109281
 
return init_snmp ();
109282
 
  ;
109283
 
  return 0;
109284
 
}
109285
 
_ACEOF
109286
 
rm -f conftest.$ac_objext conftest$ac_exeext
109287
 
if { (ac_try="$ac_link"
109288
 
case "(($ac_try" in
109289
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109290
 
  *) ac_try_echo=$ac_try;;
109291
 
esac
109292
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
109293
 
$as_echo "$ac_try_echo") >&5
109294
 
  (eval "$ac_link") 2>conftest.er1
109295
 
  ac_status=$?
109296
 
  grep -v '^ *+' conftest.er1 >conftest.err
109297
 
  rm -f conftest.er1
109298
 
  cat conftest.err >&5
109299
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
109300
 
  (exit $ac_status); } && {
109301
 
         test -z "$ac_c_werror_flag" ||
109302
 
         test ! -s conftest.err
109303
 
       } && test -s conftest$ac_exeext && {
109304
 
         test "$cross_compiling" = yes ||
109305
 
         $as_test_x conftest$ac_exeext
109306
 
       }; then
109307
 
  eval "$as_ac_Lib=yes"
109308
 
else
109309
 
  $as_echo "$as_me: failed program was:" >&5
109310
 
sed 's/^/| /' conftest.$ac_ext >&5
109311
 
 
109312
 
        eval "$as_ac_Lib=no"
109313
 
fi
109314
 
 
109315
 
rm -rf conftest.dSYM
109316
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
109317
 
      conftest$ac_exeext conftest.$ac_ext
109318
 
LIBS=$ac_check_lib_save_LIBS
109319
 
fi
109320
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
109321
 
                 $as_echo "$as_val"'`
109322
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
109323
 
$as_echo "$ac_res" >&6; }
109324
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
109325
 
                 $as_echo "$as_val"'`
109326
 
   if test "x$as_val" = x""yes; then
109327
 
  
109328
 
    LDFLAGS=$save_old_LDFLAGS
109329
 
    ext_shared=$save_ext_shared
109330
 
    
109331
 
    
109332
 
cat >>confdefs.h <<\_ACEOF
109333
 
@%:@define HAVE_SNMP 1
109334
 
_ACEOF
109335
 
 
109336
 
  
109337
 
  
109338
 
else
109339
 
  
109340
 
    LDFLAGS=$save_old_LDFLAGS
109341
 
    ext_shared=$save_ext_shared
109342
 
    unset ac_cv_lib_$SNMP_LIBNAME_init_snmp
109343
 
    
109344
 
    { { $as_echo "$as_me:$LINENO: error: SNMP sanity check failed. Please check config.log for more information." >&5
109345
 
$as_echo "$as_me: error: SNMP sanity check failed. Please check config.log for more information." >&2;}
109346
 
   { (exit 1); exit 1; }; }
109347
 
  
109348
 
  
109349
 
fi
109350
 
 
109351
 
 
109352
 
  if test "$PHP_UCD_SNMP_HACK" = "yes" ; then
109353
 
    
109354
 
cat >>confdefs.h <<\_ACEOF
109355
 
@%:@define UCD_SNMP_HACK 1
109356
 
_ACEOF
109357
 
 
109358
 
  fi
109359
 
  
109360
 
  
109361
 
  ext_builddir=ext/snmp
109362
 
  ext_srcdir=$abs_srcdir/ext/snmp
109363
 
 
109364
 
  ac_extra=
109365
 
 
109366
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
109367
 
    PHP_SNMP_SHARED=no
109368
 
    
109369
 
  
109370
 
  case ext/snmp in
109371
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
109372
 
  /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
109373
 
  *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
109374
 
  esac
109375
 
  
109376
 
  
109377
 
 
109378
 
  b_c_pre=$php_c_pre
109379
 
  b_cxx_pre=$php_cxx_pre
109380
 
  b_c_meta=$php_c_meta
109381
 
  b_cxx_meta=$php_cxx_meta
109382
 
  b_c_post=$php_c_post
109383
 
  b_cxx_post=$php_cxx_post
109384
 
  b_lo=$php_lo
109385
 
 
109386
 
 
109387
 
  old_IFS=$IFS
109388
 
  for ac_src in snmp.c; do
109389
 
  
109390
 
      IFS=.
109391
 
      set $ac_src
109392
 
      ac_obj=$1
109393
 
      IFS=$old_IFS
109394
 
      
109395
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
109396
 
 
109397
 
      case $ac_src in
109398
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109399
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109400
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109401
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
109402
 
      esac
109403
 
 
109404
 
    cat >>Makefile.objects<<EOF
109405
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
109406
 
        $ac_comp
109407
 
EOF
109408
 
  done
109409
 
 
109410
 
 
109411
 
    EXT_STATIC="$EXT_STATIC snmp"
109412
 
    if test "$ext_shared" != "nocli"; then
109413
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
109414
 
    fi
109415
 
  else
109416
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
109417
 
      PHP_SNMP_SHARED=yes
109418
 
      
109419
 
  case ext/snmp in
109420
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
109421
 
  /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
109422
 
  *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
109423
 
  esac
109424
 
  
109425
 
  
109426
 
 
109427
 
  b_c_pre=$shared_c_pre
109428
 
  b_cxx_pre=$shared_cxx_pre
109429
 
  b_c_meta=$shared_c_meta
109430
 
  b_cxx_meta=$shared_cxx_meta
109431
 
  b_c_post=$shared_c_post
109432
 
  b_cxx_post=$shared_cxx_post
109433
 
  b_lo=$shared_lo
109434
 
 
109435
 
 
109436
 
  old_IFS=$IFS
109437
 
  for ac_src in snmp.c; do
109438
 
  
109439
 
      IFS=.
109440
 
      set $ac_src
109441
 
      ac_obj=$1
109442
 
      IFS=$old_IFS
109443
 
      
109444
 
      shared_objects_snmp="$shared_objects_snmp $ac_bdir$ac_obj.lo"
109445
 
 
109446
 
      case $ac_src in
109447
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109448
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109449
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109450
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
109451
 
      esac
109452
 
 
109453
 
    cat >>Makefile.objects<<EOF
109454
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
109455
 
        $ac_comp
109456
 
EOF
109457
 
  done
109458
 
 
109459
 
      case $host_alias in
109460
 
        *netware*)
109461
 
          
109462
 
  install_modules="install-modules"
109463
 
 
109464
 
  case $host_alias in
109465
 
    *aix*)
109466
 
      suffix=so
109467
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsnmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(PHPSNMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsnmp.so '$ext_builddir'/phpsnmp.so'
109468
 
      ;;
109469
 
    *netware*)
109470
 
      suffix=nlm
109471
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) -L$(top_builddir)/netware -lphp5lib $(SNMP_SHARED_LIBADD)'
109472
 
      ;;
109473
 
    *)
109474
 
      suffix=la
109475
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(PHPSNMP_SHARED_LIBADD)'
109476
 
      ;;
109477
 
  esac
109478
 
 
109479
 
  if test "x" = "xyes"; then
109480
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsnmp.$suffix"
109481
 
  else
109482
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsnmp.$suffix"
109483
 
  fi
109484
 
  
109485
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
109486
 
 
109487
 
  cat >>Makefile.objects<<EOF
109488
 
\$(phplibdir)/phpsnmp.$suffix: $ext_builddir/phpsnmp.$suffix
109489
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsnmp.$suffix \$(phplibdir)
109490
 
 
109491
 
$ext_builddir/phpsnmp.$suffix: \$(shared_objects_snmp) \$(PHPSNMP_SHARED_DEPENDENCIES)
109492
 
        $link_cmd
109493
 
 
109494
 
EOF
109495
 
 
109496
 
          ;;
109497
 
        *)
109498
 
          
109499
 
  install_modules="install-modules"
109500
 
 
109501
 
  case $host_alias in
109502
 
    *aix*)
109503
 
      suffix=so
109504
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/snmp.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(SNMP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/snmp.so '$ext_builddir'/snmp.so'
109505
 
      ;;
109506
 
    *netware*)
109507
 
      suffix=nlm
109508
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
109509
 
      ;;
109510
 
    *)
109511
 
      suffix=la
109512
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_snmp) $(SNMP_SHARED_LIBADD)'
109513
 
      ;;
109514
 
  esac
109515
 
 
109516
 
  if test "x" = "xyes"; then
109517
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/snmp.$suffix"
109518
 
  else
109519
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/snmp.$suffix"
109520
 
  fi
109521
 
  
109522
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
109523
 
 
109524
 
  cat >>Makefile.objects<<EOF
109525
 
\$(phplibdir)/snmp.$suffix: $ext_builddir/snmp.$suffix
109526
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/snmp.$suffix \$(phplibdir)
109527
 
 
109528
 
$ext_builddir/snmp.$suffix: \$(shared_objects_snmp) \$(SNMP_SHARED_DEPENDENCIES)
109529
 
        $link_cmd
109530
 
 
109531
 
EOF
109532
 
 
109533
 
          ;;
109534
 
      esac
109535
 
      
109536
 
cat >>confdefs.h <<_ACEOF
109537
 
@%:@define COMPILE_DL_SNMP 1
109538
 
_ACEOF
109539
 
 
109540
 
    fi
109541
 
  fi
109542
 
 
109543
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
109544
 
    PHP_SNMP_SHARED=no
109545
 
    case "$PHP_SAPI" in
109546
 
      cgi|embed)
109547
 
        
109548
 
  
109549
 
  case ext/snmp in
109550
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
109551
 
  /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
109552
 
  *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
109553
 
  esac
109554
 
  
109555
 
  
109556
 
 
109557
 
  b_c_pre=$php_c_pre
109558
 
  b_cxx_pre=$php_cxx_pre
109559
 
  b_c_meta=$php_c_meta
109560
 
  b_cxx_meta=$php_cxx_meta
109561
 
  b_c_post=$php_c_post
109562
 
  b_cxx_post=$php_cxx_post
109563
 
  b_lo=$php_lo
109564
 
 
109565
 
 
109566
 
  old_IFS=$IFS
109567
 
  for ac_src in snmp.c; do
109568
 
  
109569
 
      IFS=.
109570
 
      set $ac_src
109571
 
      ac_obj=$1
109572
 
      IFS=$old_IFS
109573
 
      
109574
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
109575
 
 
109576
 
      case $ac_src in
109577
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109578
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109579
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109580
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
109581
 
      esac
109582
 
 
109583
 
    cat >>Makefile.objects<<EOF
109584
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
109585
 
        $ac_comp
109586
 
EOF
109587
 
  done
109588
 
 
109589
 
 
109590
 
        EXT_STATIC="$EXT_STATIC snmp"
109591
 
        ;;
109592
 
      *)
109593
 
        
109594
 
  
109595
 
  case ext/snmp in
109596
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
109597
 
  /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
109598
 
  *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
109599
 
  esac
109600
 
  
109601
 
  
109602
 
 
109603
 
  b_c_pre=$php_c_pre
109604
 
  b_cxx_pre=$php_cxx_pre
109605
 
  b_c_meta=$php_c_meta
109606
 
  b_cxx_meta=$php_cxx_meta
109607
 
  b_c_post=$php_c_post
109608
 
  b_cxx_post=$php_cxx_post
109609
 
  b_lo=$php_lo
109610
 
 
109611
 
 
109612
 
  old_IFS=$IFS
109613
 
  for ac_src in snmp.c; do
109614
 
  
109615
 
      IFS=.
109616
 
      set $ac_src
109617
 
      ac_obj=$1
109618
 
      IFS=$old_IFS
109619
 
      
109620
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
109621
 
 
109622
 
      case $ac_src in
109623
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109624
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109625
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
109626
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
109627
 
      esac
109628
 
 
109629
 
    cat >>Makefile.objects<<EOF
109630
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
109631
 
        $ac_comp
109632
 
EOF
109633
 
  done
109634
 
 
109635
 
 
109636
 
        ;;
109637
 
    esac
109638
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
109639
 
  fi
109640
 
  
109641
 
  
109642
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
109643
 
  
109644
 
 
109645
 
 
109646
 
  if test "$ext_builddir" = "."; then
109647
 
    PHP_PECL_EXTENSION=snmp
109648
 
    
109649
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
109650
 
 
109651
 
  fi
109652
 
 
109653
 
  
109654
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SNMP_SHARED_LIBADD"
109655
 
 
109656
 
fi
109657
 
 
109658
 
 
109659
 
 
109660
 
php_enable_soap=no
109661
 
 
109662
 
{ $as_echo "$as_me:$LINENO: checking whether to enable SOAP support" >&5
109663
 
$as_echo_n "checking whether to enable SOAP support... " >&6; }
109664
 
@%:@ Check whether --enable-soap was given.
109665
 
if test "${enable_soap+set}" = set; then
109666
 
  enableval=$enable_soap; PHP_SOAP=$enableval
109667
 
else
109668
 
  
109669
 
  PHP_SOAP=no
109670
 
  test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL
109671
 
 
109672
 
fi
109673
 
 
109674
 
 
109675
 
 
109676
 
ext_output="yes, shared"
109677
 
ext_shared=yes
109678
 
case $PHP_SOAP in
109679
 
shared,*)
109680
 
  PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'`
109681
 
  ;;
109682
 
shared)
109683
 
  PHP_SOAP=yes
109684
 
  ;;
109685
 
no)
109686
 
  ext_output=no
109687
 
  ext_shared=no
109688
 
  ;;
109689
 
*)
109690
 
  ext_output=yes
109691
 
  ext_shared=no
109692
 
  ;;
109693
 
esac
109694
 
 
109695
 
 
109696
 
 
109697
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
109698
 
$as_echo "$ext_output" >&6; }
109699
 
 
109700
 
 
109701
 
 
109702
 
 
109703
 
if test -z "$PHP_LIBXML_DIR"; then
109704
 
  
109705
 
php_with_libxml_dir=no
109706
 
 
109707
 
{ $as_echo "$as_me:$LINENO: checking libxml2 install dir" >&5
109708
 
$as_echo_n "checking libxml2 install dir... " >&6; }
109709
 
 
109710
 
@%:@ Check whether --with-libxml-dir was given.
109711
 
if test "${with_libxml_dir+set}" = set; then
109712
 
  withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
109713
 
else
109714
 
  
109715
 
  PHP_LIBXML_DIR=no
109716
 
  
109717
 
 
109718
 
fi
109719
 
 
109720
 
 
109721
 
ext_output=$PHP_LIBXML_DIR
109722
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
109723
 
$as_echo "$ext_output" >&6; }
109724
 
 
109725
 
 
109726
 
 
109727
 
fi
109728
 
 
109729
 
if test "$PHP_SOAP" != "no"; then
109730
 
 
109731
 
  if test "$PHP_LIBXML" = "no"; then   
109732
 
    { { $as_echo "$as_me:$LINENO: error: SOAP extension requires LIBXML extension, add --enable-libxml" >&5
109733
 
$as_echo "$as_me: error: SOAP extension requires LIBXML extension, add --enable-libxml" >&2;}
109734
 
   { (exit 1); exit 1; }; }                
109735
 
  fi
109736
 
 
109737
 
  
109738
 
{ $as_echo "$as_me:$LINENO: checking for xml2-config path" >&5
109739
 
$as_echo_n "checking for xml2-config path... " >&6; }
109740
 
if test "${ac_cv_php_xml2_config_path+set}" = set; then
109741
 
  $as_echo_n "(cached) " >&6
109742
 
else
109743
 
  
109744
 
  for i in $PHP_LIBXML_DIR /usr/local /usr; do
109745
 
    if test -x "$i/bin/xml2-config"; then
109746
 
      ac_cv_php_xml2_config_path="$i/bin/xml2-config"
109747
 
      break
109748
 
    fi
109749
 
  done
109750
 
 
109751
 
fi
109752
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
109753
 
$as_echo "$ac_cv_php_xml2_config_path" >&6; }
109754
 
 
109755
 
  if test -x "$ac_cv_php_xml2_config_path"; then
109756
 
    XML2_CONFIG="$ac_cv_php_xml2_config_path"
109757
 
    libxml_full_version=`$XML2_CONFIG --version`
109758
 
    ac_IFS=$IFS
109759
 
    IFS="."
109760
 
    set $libxml_full_version
109761
 
    IFS=$ac_IFS
109762
 
    LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
109763
 
    if test "$LIBXML_VERSION" -ge "2006011"; then
109764
 
      LIBXML_LIBS=`$XML2_CONFIG --libs`
109765
 
      LIBXML_INCS=`$XML2_CONFIG --cflags`
109766
 
      
109767
 
  for ac_i in $LIBXML_LIBS; do
109768
 
    case $ac_i in
109769
 
    -pthread)
109770
 
      if test "$ext_shared" = "yes"; then
109771
 
        SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread"
109772
 
      else
109773
 
        
109774
 
  
109775
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
109776
 
  
109777
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
109778
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
109779
 
    eval "EXTRA_LDFLAGS$unique=set"
109780
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
109781
 
  fi
109782
 
 
109783
 
      fi
109784
 
    ;;
109785
 
    -l*)
109786
 
      ac_ii=`echo $ac_i|cut -c 3-`
109787
 
      
109788
 
  
109789
 
  case $ac_ii in
109790
 
  c|c_r|pthread*) ;;
109791
 
  *) 
109792
 
    if test "$ext_shared" = "yes"; then
109793
 
        SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii" 
109794
 
    else
109795
 
      
109796
 
  
109797
 
  case $ac_ii in
109798
 
  c|c_r|pthread*) ;;
109799
 
  *) 
109800
 
      LIBS="$LIBS -l$ac_ii" 
109801
 
   ;;
109802
 
  esac
109803
 
 
109804
 
 
109805
 
    fi
109806
 
   ;;
109807
 
  esac
109808
 
 
109809
 
 
109810
 
    ;;
109811
 
    -L*)
109812
 
      ac_ii=`echo $ac_i|cut -c 3-`
109813
 
      
109814
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
109815
 
    
109816
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
109817
 
    ai_p=$ac_ii
109818
 
  else
109819
 
    
109820
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
109821
 
    
109822
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
109823
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
109824
 
  fi
109825
 
 
109826
 
    
109827
 
      if test "$ext_shared" = "yes"; then
109828
 
        SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD"
109829
 
        test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD"
109830
 
      else
109831
 
        
109832
 
  
109833
 
  
109834
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
109835
 
  
109836
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
109837
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
109838
 
    eval "LIBPATH$unique=set"
109839
 
    
109840
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
109841
 
    LDFLAGS="$LDFLAGS -L$ai_p"
109842
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
109843
 
  
109844
 
  fi
109845
 
 
109846
 
 
109847
 
      fi
109848
 
    
109849
 
  fi
109850
 
 
109851
 
    ;;
109852
 
    esac
109853
 
  done
109854
 
 
109855
 
      
109856
 
  for ac_i in $LIBXML_INCS; do
109857
 
    case $ac_i in
109858
 
    -I*)
109859
 
      ac_ii=`echo $ac_i|cut -c 3-`
109860
 
      
109861
 
  if test "$ac_ii" != "/usr/include"; then
109862
 
    
109863
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
109864
 
    ai_p=$ac_ii
109865
 
  else
109866
 
    
109867
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
109868
 
    
109869
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
109870
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
109871
 
  fi
109872
 
 
109873
 
    
109874
 
  
109875
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
109876
 
  
109877
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
109878
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
109879
 
    eval "INCLUDEPATH$unique=set"
109880
 
    
109881
 
      if test ""; then
109882
 
        INCLUDES="-I$ai_p $INCLUDES"
109883
 
      else
109884
 
        INCLUDES="$INCLUDES -I$ai_p"
109885
 
      fi
109886
 
    
109887
 
  fi
109888
 
 
109889
 
  fi
109890
 
 
109891
 
    ;;
109892
 
    esac
109893
 
  done
109894
 
 
109895
 
 
109896
 
            { $as_echo "$as_me:$LINENO: checking whether libxml build works" >&5
109897
 
$as_echo_n "checking whether libxml build works... " >&6; }
109898
 
if test "${php_cv_libxml_build_works+set}" = set; then
109899
 
  $as_echo_n "(cached) " >&6
109900
 
else
109901
 
  
109902
 
        
109903
 
  old_LIBS=$LIBS
109904
 
  LIBS="
109905
 
          $SOAP_SHARED_LIBADD
109906
 
         $LIBS"
109907
 
  if test "$cross_compiling" = yes; then
109908
 
  
109909
 
    LIBS=$old_LIBS
109910
 
  
109911
 
else
109912
 
  cat >conftest.$ac_ext <<_ACEOF
109913
 
/* confdefs.h.  */
109914
 
_ACEOF
109915
 
cat confdefs.h >>conftest.$ac_ext
109916
 
cat >>conftest.$ac_ext <<_ACEOF
109917
 
/* end confdefs.h.  */
109918
 
 
109919
 
    
109920
 
    char xmlInitParser();
109921
 
    int main() {
109922
 
      xmlInitParser();
109923
 
      return 0;
109924
 
    }
109925
 
  
109926
 
_ACEOF
109927
 
rm -f conftest$ac_exeext
109928
 
if { (ac_try="$ac_link"
109929
 
case "(($ac_try" in
109930
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109931
 
  *) ac_try_echo=$ac_try;;
109932
 
esac
109933
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
109934
 
$as_echo "$ac_try_echo") >&5
109935
 
  (eval "$ac_link") 2>&5
109936
 
  ac_status=$?
109937
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
109938
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
109939
 
  { (case "(($ac_try" in
109940
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
109941
 
  *) ac_try_echo=$ac_try;;
109942
 
esac
109943
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
109944
 
$as_echo "$ac_try_echo") >&5
109945
 
  (eval "$ac_try") 2>&5
109946
 
  ac_status=$?
109947
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
109948
 
  (exit $ac_status); }; }; then
109949
 
  
109950
 
    LIBS=$old_LIBS
109951
 
    
109952
 
          php_cv_libxml_build_works=yes
109953
 
        
109954
 
  
109955
 
else
109956
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
109957
 
$as_echo "$as_me: failed program was:" >&5
109958
 
sed 's/^/| /' conftest.$ac_ext >&5
109959
 
 
109960
 
( exit $ac_status )
109961
 
 
109962
 
    LIBS=$old_LIBS
109963
 
    
109964
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
109965
 
$as_echo "no" >&6; }
109966
 
          { { $as_echo "$as_me:$LINENO: error: build test failed.  Please check the config.log for details." >&5
109967
 
$as_echo "$as_me: error: build test failed.  Please check the config.log for details." >&2;}
109968
 
   { (exit 1); exit 1; }; }
109969
 
        
109970
 
  
109971
 
fi
109972
 
rm -rf conftest.dSYM
109973
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
109974
 
fi
109975
 
 
109976
 
 
109977
 
 
109978
 
      
109979
 
fi
109980
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
109981
 
$as_echo "$php_cv_libxml_build_works" >&6; }
109982
 
      if test "$php_cv_libxml_build_works" = "yes"; then
109983
 
        
109984
 
cat >>confdefs.h <<\_ACEOF
109985
 
@%:@define HAVE_LIBXML 1
109986
 
_ACEOF
109987
 
 
109988
 
      fi
109989
 
      
109990
 
    
109991
 
cat >>confdefs.h <<\_ACEOF
109992
 
@%:@define HAVE_SOAP 1
109993
 
_ACEOF
109994
 
 
109995
 
    
109996
 
  ext_builddir=ext/soap
109997
 
  ext_srcdir=$abs_srcdir/ext/soap
109998
 
 
109999
 
  ac_extra=
110000
 
 
110001
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
110002
 
    PHP_SOAP_SHARED=no
110003
 
    
110004
 
  
110005
 
  case ext/soap in
110006
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
110007
 
  /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110008
 
  *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
110009
 
  esac
110010
 
  
110011
 
  
110012
 
 
110013
 
  b_c_pre=$php_c_pre
110014
 
  b_cxx_pre=$php_cxx_pre
110015
 
  b_c_meta=$php_c_meta
110016
 
  b_cxx_meta=$php_cxx_meta
110017
 
  b_c_post=$php_c_post
110018
 
  b_cxx_post=$php_cxx_post
110019
 
  b_lo=$php_lo
110020
 
 
110021
 
 
110022
 
  old_IFS=$IFS
110023
 
  for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
110024
 
  
110025
 
      IFS=.
110026
 
      set $ac_src
110027
 
      ac_obj=$1
110028
 
      IFS=$old_IFS
110029
 
      
110030
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
110031
 
 
110032
 
      case $ac_src in
110033
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110034
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110035
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110036
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110037
 
      esac
110038
 
 
110039
 
    cat >>Makefile.objects<<EOF
110040
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110041
 
        $ac_comp
110042
 
EOF
110043
 
  done
110044
 
 
110045
 
 
110046
 
    EXT_STATIC="$EXT_STATIC soap"
110047
 
    if test "$ext_shared" != "nocli"; then
110048
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
110049
 
    fi
110050
 
  else
110051
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
110052
 
      PHP_SOAP_SHARED=yes
110053
 
      
110054
 
  case ext/soap in
110055
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
110056
 
  /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110057
 
  *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
110058
 
  esac
110059
 
  
110060
 
  
110061
 
 
110062
 
  b_c_pre=$shared_c_pre
110063
 
  b_cxx_pre=$shared_cxx_pre
110064
 
  b_c_meta=$shared_c_meta
110065
 
  b_cxx_meta=$shared_cxx_meta
110066
 
  b_c_post=$shared_c_post
110067
 
  b_cxx_post=$shared_cxx_post
110068
 
  b_lo=$shared_lo
110069
 
 
110070
 
 
110071
 
  old_IFS=$IFS
110072
 
  for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
110073
 
  
110074
 
      IFS=.
110075
 
      set $ac_src
110076
 
      ac_obj=$1
110077
 
      IFS=$old_IFS
110078
 
      
110079
 
      shared_objects_soap="$shared_objects_soap $ac_bdir$ac_obj.lo"
110080
 
 
110081
 
      case $ac_src in
110082
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110083
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110084
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110085
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110086
 
      esac
110087
 
 
110088
 
    cat >>Makefile.objects<<EOF
110089
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110090
 
        $ac_comp
110091
 
EOF
110092
 
  done
110093
 
 
110094
 
      case $host_alias in
110095
 
        *netware*)
110096
 
          
110097
 
  install_modules="install-modules"
110098
 
 
110099
 
  case $host_alias in
110100
 
    *aix*)
110101
 
      suffix=so
110102
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsoap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(PHPSOAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsoap.so '$ext_builddir'/phpsoap.so'
110103
 
      ;;
110104
 
    *netware*)
110105
 
      suffix=nlm
110106
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) -L$(top_builddir)/netware -lphp5lib $(SOAP_SHARED_LIBADD)'
110107
 
      ;;
110108
 
    *)
110109
 
      suffix=la
110110
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(PHPSOAP_SHARED_LIBADD)'
110111
 
      ;;
110112
 
  esac
110113
 
 
110114
 
  if test "x" = "xyes"; then
110115
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsoap.$suffix"
110116
 
  else
110117
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsoap.$suffix"
110118
 
  fi
110119
 
  
110120
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
110121
 
 
110122
 
  cat >>Makefile.objects<<EOF
110123
 
\$(phplibdir)/phpsoap.$suffix: $ext_builddir/phpsoap.$suffix
110124
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsoap.$suffix \$(phplibdir)
110125
 
 
110126
 
$ext_builddir/phpsoap.$suffix: \$(shared_objects_soap) \$(PHPSOAP_SHARED_DEPENDENCIES)
110127
 
        $link_cmd
110128
 
 
110129
 
EOF
110130
 
 
110131
 
          ;;
110132
 
        *)
110133
 
          
110134
 
  install_modules="install-modules"
110135
 
 
110136
 
  case $host_alias in
110137
 
    *aix*)
110138
 
      suffix=so
110139
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/soap.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(SOAP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/soap.so '$ext_builddir'/soap.so'
110140
 
      ;;
110141
 
    *netware*)
110142
 
      suffix=nlm
110143
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) -L$(top_builddir)/netware -lphp5lib $(P_SHARED_LIBADD)'
110144
 
      ;;
110145
 
    *)
110146
 
      suffix=la
110147
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_soap) $(SOAP_SHARED_LIBADD)'
110148
 
      ;;
110149
 
  esac
110150
 
 
110151
 
  if test "x" = "xyes"; then
110152
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/soap.$suffix"
110153
 
  else
110154
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/soap.$suffix"
110155
 
  fi
110156
 
  
110157
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
110158
 
 
110159
 
  cat >>Makefile.objects<<EOF
110160
 
\$(phplibdir)/soap.$suffix: $ext_builddir/soap.$suffix
110161
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/soap.$suffix \$(phplibdir)
110162
 
 
110163
 
$ext_builddir/soap.$suffix: \$(shared_objects_soap) \$(SOAP_SHARED_DEPENDENCIES)
110164
 
        $link_cmd
110165
 
 
110166
 
EOF
110167
 
 
110168
 
          ;;
110169
 
      esac
110170
 
      
110171
 
cat >>confdefs.h <<_ACEOF
110172
 
@%:@define COMPILE_DL_SOAP 1
110173
 
_ACEOF
110174
 
 
110175
 
    fi
110176
 
  fi
110177
 
 
110178
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
110179
 
    PHP_SOAP_SHARED=no
110180
 
    case "$PHP_SAPI" in
110181
 
      cgi|embed)
110182
 
        
110183
 
  
110184
 
  case ext/soap in
110185
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
110186
 
  /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110187
 
  *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
110188
 
  esac
110189
 
  
110190
 
  
110191
 
 
110192
 
  b_c_pre=$php_c_pre
110193
 
  b_cxx_pre=$php_cxx_pre
110194
 
  b_c_meta=$php_c_meta
110195
 
  b_cxx_meta=$php_cxx_meta
110196
 
  b_c_post=$php_c_post
110197
 
  b_cxx_post=$php_cxx_post
110198
 
  b_lo=$php_lo
110199
 
 
110200
 
 
110201
 
  old_IFS=$IFS
110202
 
  for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
110203
 
  
110204
 
      IFS=.
110205
 
      set $ac_src
110206
 
      ac_obj=$1
110207
 
      IFS=$old_IFS
110208
 
      
110209
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
110210
 
 
110211
 
      case $ac_src in
110212
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110213
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110214
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110215
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110216
 
      esac
110217
 
 
110218
 
    cat >>Makefile.objects<<EOF
110219
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110220
 
        $ac_comp
110221
 
EOF
110222
 
  done
110223
 
 
110224
 
 
110225
 
        EXT_STATIC="$EXT_STATIC soap"
110226
 
        ;;
110227
 
      *)
110228
 
        
110229
 
  
110230
 
  case ext/soap in
110231
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
110232
 
  /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110233
 
  *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
110234
 
  esac
110235
 
  
110236
 
  
110237
 
 
110238
 
  b_c_pre=$php_c_pre
110239
 
  b_cxx_pre=$php_cxx_pre
110240
 
  b_c_meta=$php_c_meta
110241
 
  b_cxx_meta=$php_cxx_meta
110242
 
  b_c_post=$php_c_post
110243
 
  b_cxx_post=$php_cxx_post
110244
 
  b_lo=$php_lo
110245
 
 
110246
 
 
110247
 
  old_IFS=$IFS
110248
 
  for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
110249
 
  
110250
 
      IFS=.
110251
 
      set $ac_src
110252
 
      ac_obj=$1
110253
 
      IFS=$old_IFS
110254
 
      
110255
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
110256
 
 
110257
 
      case $ac_src in
110258
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110259
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110260
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110261
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110262
 
      esac
110263
 
 
110264
 
    cat >>Makefile.objects<<EOF
110265
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110266
 
        $ac_comp
110267
 
EOF
110268
 
  done
110269
 
 
110270
 
 
110271
 
        ;;
110272
 
    esac
110273
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
110274
 
  fi
110275
 
  
110276
 
  
110277
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
110278
 
  
110279
 
 
110280
 
 
110281
 
  if test "$ext_builddir" = "."; then
110282
 
    PHP_PECL_EXTENSION=soap
110283
 
    
110284
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
110285
 
 
110286
 
  fi
110287
 
 
110288
 
    
110289
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SOAP_SHARED_LIBADD"
110290
 
 
110291
 
  
110292
 
    else
110293
 
      { { $as_echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
110294
 
$as_echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
110295
 
   { (exit 1); exit 1; }; }
110296
 
    fi
110297
 
else 
110298
 
    { { $as_echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
110299
 
$as_echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
110300
 
   { (exit 1); exit 1; }; }
110301
 
  
110302
 
  fi
110303
 
 
110304
 
fi
110305
 
 
110306
 
 
110307
 
 
110308
 
php_enable_sockets=no
110309
 
 
110310
 
{ $as_echo "$as_me:$LINENO: checking whether to enable sockets support" >&5
110311
 
$as_echo_n "checking whether to enable sockets support... " >&6; }
110312
 
@%:@ Check whether --enable-sockets was given.
110313
 
if test "${enable_sockets+set}" = set; then
110314
 
  enableval=$enable_sockets; PHP_SOCKETS=$enableval
110315
 
else
110316
 
  
110317
 
  PHP_SOCKETS=no
110318
 
  test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL
110319
 
 
110320
 
fi
110321
 
 
110322
 
 
110323
 
 
110324
 
ext_output="yes, shared"
110325
 
ext_shared=yes
110326
 
case $PHP_SOCKETS in
110327
 
shared,*)
110328
 
  PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'`
110329
 
  ;;
110330
 
shared)
110331
 
  PHP_SOCKETS=yes
110332
 
  ;;
110333
 
no)
110334
 
  ext_output=no
110335
 
  ext_shared=no
110336
 
  ;;
110337
 
*)
110338
 
  ext_output=yes
110339
 
  ext_shared=no
110340
 
  ;;
110341
 
esac
110342
 
 
110343
 
 
110344
 
 
110345
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
110346
 
$as_echo "$ext_output" >&6; }
110347
 
 
110348
 
 
110349
 
 
110350
 
 
110351
 
if test "$PHP_SOCKETS" != "no"; then
110352
 
    { $as_echo "$as_me:$LINENO: checking for struct cmsghdr" >&5
110353
 
$as_echo_n "checking for struct cmsghdr... " >&6; }
110354
 
if test "${ac_cv_cmsghdr+set}" = set; then
110355
 
  $as_echo_n "(cached) " >&6
110356
 
else
110357
 
  
110358
 
    cat >conftest.$ac_ext <<_ACEOF
110359
 
/* confdefs.h.  */
110360
 
_ACEOF
110361
 
cat confdefs.h >>conftest.$ac_ext
110362
 
cat >>conftest.$ac_ext <<_ACEOF
110363
 
/* end confdefs.h.  */
110364
 
 
110365
 
#include <sys/types.h>
110366
 
#include <sys/socket.h>
110367
 
int
110368
 
main ()
110369
 
{
110370
 
struct cmsghdr s; s
110371
 
  ;
110372
 
  return 0;
110373
 
}
110374
 
_ACEOF
110375
 
rm -f conftest.$ac_objext
110376
 
if { (ac_try="$ac_compile"
110377
 
case "(($ac_try" in
110378
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110379
 
  *) ac_try_echo=$ac_try;;
110380
 
esac
110381
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
110382
 
$as_echo "$ac_try_echo") >&5
110383
 
  (eval "$ac_compile") 2>conftest.er1
110384
 
  ac_status=$?
110385
 
  grep -v '^ *+' conftest.er1 >conftest.err
110386
 
  rm -f conftest.er1
110387
 
  cat conftest.err >&5
110388
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
110389
 
  (exit $ac_status); } && {
110390
 
         test -z "$ac_c_werror_flag" ||
110391
 
         test ! -s conftest.err
110392
 
       } && test -s conftest.$ac_objext; then
110393
 
  ac_cv_cmsghdr=yes
110394
 
else
110395
 
  $as_echo "$as_me: failed program was:" >&5
110396
 
sed 's/^/| /' conftest.$ac_ext >&5
110397
 
 
110398
 
        ac_cv_cmsghdr=no
110399
 
fi
110400
 
 
110401
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
110402
 
  
110403
 
fi
110404
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cmsghdr" >&5
110405
 
$as_echo "$ac_cv_cmsghdr" >&6; }
110406
 
 
110407
 
  if test "$ac_cv_cmsghdr" = yes; then
110408
 
    
110409
 
cat >>confdefs.h <<\_ACEOF
110410
 
@%:@define HAVE_CMSGHDR 1
110411
 
_ACEOF
110412
 
 
110413
 
  fi 
110414
 
 
110415
 
  
110416
 
 
110417
 
for ac_func in hstrerror socketpair
110418
 
do
110419
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
110420
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
110421
 
$as_echo_n "checking for $ac_func... " >&6; }
110422
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
110423
 
  $as_echo_n "(cached) " >&6
110424
 
else
110425
 
  cat >conftest.$ac_ext <<_ACEOF
110426
 
/* confdefs.h.  */
110427
 
_ACEOF
110428
 
cat confdefs.h >>conftest.$ac_ext
110429
 
cat >>conftest.$ac_ext <<_ACEOF
110430
 
/* end confdefs.h.  */
110431
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
110432
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
110433
 
#define $ac_func innocuous_$ac_func
110434
 
 
110435
 
/* System header to define __stub macros and hopefully few prototypes,
110436
 
    which can conflict with char $ac_func (); below.
110437
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
110438
 
    <limits.h> exists even on freestanding compilers.  */
110439
 
 
110440
 
#ifdef __STDC__
110441
 
# include <limits.h>
110442
 
#else
110443
 
# include <assert.h>
110444
 
#endif
110445
 
 
110446
 
#undef $ac_func
110447
 
 
110448
 
/* Override any GCC internal prototype to avoid an error.
110449
 
   Use char because int might match the return type of a GCC
110450
 
   builtin and then its argument prototype would still apply.  */
110451
 
#ifdef __cplusplus
110452
 
extern "C"
110453
 
#endif
110454
 
char $ac_func ();
110455
 
/* The GNU C library defines this for functions which it implements
110456
 
    to always fail with ENOSYS.  Some functions are actually named
110457
 
    something starting with __ and the normal name is an alias.  */
110458
 
#if defined __stub_$ac_func || defined __stub___$ac_func
110459
 
choke me
110460
 
#endif
110461
 
 
110462
 
int
110463
 
main ()
110464
 
{
110465
 
return $ac_func ();
110466
 
  ;
110467
 
  return 0;
110468
 
}
110469
 
_ACEOF
110470
 
rm -f conftest.$ac_objext conftest$ac_exeext
110471
 
if { (ac_try="$ac_link"
110472
 
case "(($ac_try" in
110473
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110474
 
  *) ac_try_echo=$ac_try;;
110475
 
esac
110476
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
110477
 
$as_echo "$ac_try_echo") >&5
110478
 
  (eval "$ac_link") 2>conftest.er1
110479
 
  ac_status=$?
110480
 
  grep -v '^ *+' conftest.er1 >conftest.err
110481
 
  rm -f conftest.er1
110482
 
  cat conftest.err >&5
110483
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
110484
 
  (exit $ac_status); } && {
110485
 
         test -z "$ac_c_werror_flag" ||
110486
 
         test ! -s conftest.err
110487
 
       } && test -s conftest$ac_exeext && {
110488
 
         test "$cross_compiling" = yes ||
110489
 
         $as_test_x conftest$ac_exeext
110490
 
       }; then
110491
 
  eval "$as_ac_var=yes"
110492
 
else
110493
 
  $as_echo "$as_me: failed program was:" >&5
110494
 
sed 's/^/| /' conftest.$ac_ext >&5
110495
 
 
110496
 
        eval "$as_ac_var=no"
110497
 
fi
110498
 
 
110499
 
rm -rf conftest.dSYM
110500
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
110501
 
      conftest$ac_exeext conftest.$ac_ext
110502
 
fi
110503
 
ac_res=`eval 'as_val=${'$as_ac_var'}
110504
 
                 $as_echo "$as_val"'`
110505
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
110506
 
$as_echo "$ac_res" >&6; }
110507
 
as_val=`eval 'as_val=${'$as_ac_var'}
110508
 
                 $as_echo "$as_val"'`
110509
 
   if test "x$as_val" = x""yes; then
110510
 
  cat >>confdefs.h <<_ACEOF
110511
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
110512
 
_ACEOF
110513
 
 
110514
 
fi
110515
 
done
110516
 
 
110517
 
  
110518
 
 
110519
 
 
110520
 
 
110521
 
for ac_header in netdb.h netinet/tcp.h sys/un.h errno.h
110522
 
do
110523
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
110524
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
110525
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
110526
 
$as_echo_n "checking for $ac_header... " >&6; }
110527
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
110528
 
  $as_echo_n "(cached) " >&6
110529
 
fi
110530
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
110531
 
                 $as_echo "$as_val"'`
110532
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
110533
 
$as_echo "$ac_res" >&6; }
110534
 
else
110535
 
  # Is the header compilable?
110536
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
110537
 
$as_echo_n "checking $ac_header usability... " >&6; }
110538
 
cat >conftest.$ac_ext <<_ACEOF
110539
 
/* confdefs.h.  */
110540
 
_ACEOF
110541
 
cat confdefs.h >>conftest.$ac_ext
110542
 
cat >>conftest.$ac_ext <<_ACEOF
110543
 
/* end confdefs.h.  */
110544
 
$ac_includes_default
110545
 
@%:@include <$ac_header>
110546
 
_ACEOF
110547
 
rm -f conftest.$ac_objext
110548
 
if { (ac_try="$ac_compile"
110549
 
case "(($ac_try" in
110550
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110551
 
  *) ac_try_echo=$ac_try;;
110552
 
esac
110553
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
110554
 
$as_echo "$ac_try_echo") >&5
110555
 
  (eval "$ac_compile") 2>conftest.er1
110556
 
  ac_status=$?
110557
 
  grep -v '^ *+' conftest.er1 >conftest.err
110558
 
  rm -f conftest.er1
110559
 
  cat conftest.err >&5
110560
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
110561
 
  (exit $ac_status); } && {
110562
 
         test -z "$ac_c_werror_flag" ||
110563
 
         test ! -s conftest.err
110564
 
       } && test -s conftest.$ac_objext; then
110565
 
  ac_header_compiler=yes
110566
 
else
110567
 
  $as_echo "$as_me: failed program was:" >&5
110568
 
sed 's/^/| /' conftest.$ac_ext >&5
110569
 
 
110570
 
        ac_header_compiler=no
110571
 
fi
110572
 
 
110573
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
110574
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
110575
 
$as_echo "$ac_header_compiler" >&6; }
110576
 
 
110577
 
# Is the header present?
110578
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
110579
 
$as_echo_n "checking $ac_header presence... " >&6; }
110580
 
cat >conftest.$ac_ext <<_ACEOF
110581
 
/* confdefs.h.  */
110582
 
_ACEOF
110583
 
cat confdefs.h >>conftest.$ac_ext
110584
 
cat >>conftest.$ac_ext <<_ACEOF
110585
 
/* end confdefs.h.  */
110586
 
@%:@include <$ac_header>
110587
 
_ACEOF
110588
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
110589
 
case "(($ac_try" in
110590
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110591
 
  *) ac_try_echo=$ac_try;;
110592
 
esac
110593
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
110594
 
$as_echo "$ac_try_echo") >&5
110595
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
110596
 
  ac_status=$?
110597
 
  grep -v '^ *+' conftest.er1 >conftest.err
110598
 
  rm -f conftest.er1
110599
 
  cat conftest.err >&5
110600
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
110601
 
  (exit $ac_status); } >/dev/null && {
110602
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
110603
 
         test ! -s conftest.err
110604
 
       }; then
110605
 
  ac_header_preproc=yes
110606
 
else
110607
 
  $as_echo "$as_me: failed program was:" >&5
110608
 
sed 's/^/| /' conftest.$ac_ext >&5
110609
 
 
110610
 
  ac_header_preproc=no
110611
 
fi
110612
 
 
110613
 
rm -f conftest.err conftest.$ac_ext
110614
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
110615
 
$as_echo "$ac_header_preproc" >&6; }
110616
 
 
110617
 
# So?  What about this header?
110618
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
110619
 
  yes:no: )
110620
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
110621
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
110622
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
110623
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
110624
 
    ac_header_preproc=yes
110625
 
    ;;
110626
 
  no:yes:* )
110627
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
110628
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
110629
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
110630
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
110631
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
110632
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
110633
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
110634
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
110635
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
110636
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
110637
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
110638
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
110639
 
    
110640
 
    ;;
110641
 
esac
110642
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
110643
 
$as_echo_n "checking for $ac_header... " >&6; }
110644
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
110645
 
  $as_echo_n "(cached) " >&6
110646
 
else
110647
 
  eval "$as_ac_Header=\$ac_header_preproc"
110648
 
fi
110649
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
110650
 
                 $as_echo "$as_val"'`
110651
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
110652
 
$as_echo "$ac_res" >&6; }
110653
 
 
110654
 
fi
110655
 
as_val=`eval 'as_val=${'$as_ac_Header'}
110656
 
                 $as_echo "$as_val"'`
110657
 
   if test "x$as_val" = x""yes; then
110658
 
  cat >>confdefs.h <<_ACEOF
110659
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
110660
 
_ACEOF
110661
 
 
110662
 
fi
110663
 
 
110664
 
done
110665
 
 
110666
 
  cat >conftest.$ac_ext <<_ACEOF
110667
 
/* confdefs.h.  */
110668
 
_ACEOF
110669
 
cat confdefs.h >>conftest.$ac_ext
110670
 
cat >>conftest.$ac_ext <<_ACEOF
110671
 
/* end confdefs.h.  */
110672
 
 
110673
 
#include <sys/types.h>
110674
 
#include <sys/socket.h>
110675
 
  
110676
 
int
110677
 
main ()
110678
 
{
110679
 
static struct msghdr tp; int n = (int) tp.msg_flags; return n
110680
 
  ;
110681
 
  return 0;
110682
 
}
110683
 
_ACEOF
110684
 
rm -f conftest.$ac_objext
110685
 
if { (ac_try="$ac_compile"
110686
 
case "(($ac_try" in
110687
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
110688
 
  *) ac_try_echo=$ac_try;;
110689
 
esac
110690
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
110691
 
$as_echo "$ac_try_echo") >&5
110692
 
  (eval "$ac_compile") 2>conftest.er1
110693
 
  ac_status=$?
110694
 
  grep -v '^ *+' conftest.er1 >conftest.err
110695
 
  rm -f conftest.er1
110696
 
  cat conftest.err >&5
110697
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
110698
 
  (exit $ac_status); } && {
110699
 
         test -z "$ac_c_werror_flag" ||
110700
 
         test ! -s conftest.err
110701
 
       } && test -s conftest.$ac_objext; then
110702
 
  :
110703
 
else
110704
 
  $as_echo "$as_me: failed program was:" >&5
110705
 
sed 's/^/| /' conftest.$ac_ext >&5
110706
 
 
110707
 
        
110708
 
cat >>confdefs.h <<\_ACEOF
110709
 
@%:@define MISSING_MSGHDR_MSGFLAGS 1
110710
 
_ACEOF
110711
 
 
110712
 
  
110713
 
fi
110714
 
 
110715
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
110716
 
  
110717
 
cat >>confdefs.h <<\_ACEOF
110718
 
@%:@define HAVE_SOCKETS 1
110719
 
_ACEOF
110720
 
 
110721
 
 
110722
 
  
110723
 
  ext_builddir=ext/sockets
110724
 
  ext_srcdir=$abs_srcdir/ext/sockets
110725
 
 
110726
 
  ac_extra=
110727
 
 
110728
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
110729
 
    PHP_SOCKETS_SHARED=no
110730
 
    
110731
 
  
110732
 
  case ext/sockets in
110733
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
110734
 
  /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110735
 
  *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
110736
 
  esac
110737
 
  
110738
 
  
110739
 
 
110740
 
  b_c_pre=$php_c_pre
110741
 
  b_cxx_pre=$php_cxx_pre
110742
 
  b_c_meta=$php_c_meta
110743
 
  b_cxx_meta=$php_cxx_meta
110744
 
  b_c_post=$php_c_post
110745
 
  b_cxx_post=$php_cxx_post
110746
 
  b_lo=$php_lo
110747
 
 
110748
 
 
110749
 
  old_IFS=$IFS
110750
 
  for ac_src in sockets.c; do
110751
 
  
110752
 
      IFS=.
110753
 
      set $ac_src
110754
 
      ac_obj=$1
110755
 
      IFS=$old_IFS
110756
 
      
110757
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
110758
 
 
110759
 
      case $ac_src in
110760
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110761
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110762
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110763
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110764
 
      esac
110765
 
 
110766
 
    cat >>Makefile.objects<<EOF
110767
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110768
 
        $ac_comp
110769
 
EOF
110770
 
  done
110771
 
 
110772
 
 
110773
 
    EXT_STATIC="$EXT_STATIC sockets"
110774
 
    if test "$ext_shared" != "nocli"; then
110775
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
110776
 
    fi
110777
 
  else
110778
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
110779
 
      PHP_SOCKETS_SHARED=yes
110780
 
      
110781
 
  case ext/sockets in
110782
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
110783
 
  /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110784
 
  *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
110785
 
  esac
110786
 
  
110787
 
  
110788
 
 
110789
 
  b_c_pre=$shared_c_pre
110790
 
  b_cxx_pre=$shared_cxx_pre
110791
 
  b_c_meta=$shared_c_meta
110792
 
  b_cxx_meta=$shared_cxx_meta
110793
 
  b_c_post=$shared_c_post
110794
 
  b_cxx_post=$shared_cxx_post
110795
 
  b_lo=$shared_lo
110796
 
 
110797
 
 
110798
 
  old_IFS=$IFS
110799
 
  for ac_src in sockets.c; do
110800
 
  
110801
 
      IFS=.
110802
 
      set $ac_src
110803
 
      ac_obj=$1
110804
 
      IFS=$old_IFS
110805
 
      
110806
 
      shared_objects_sockets="$shared_objects_sockets $ac_bdir$ac_obj.lo"
110807
 
 
110808
 
      case $ac_src in
110809
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110810
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110811
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110812
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110813
 
      esac
110814
 
 
110815
 
    cat >>Makefile.objects<<EOF
110816
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110817
 
        $ac_comp
110818
 
EOF
110819
 
  done
110820
 
 
110821
 
      case $host_alias in
110822
 
        *netware*)
110823
 
          
110824
 
  install_modules="install-modules"
110825
 
 
110826
 
  case $host_alias in
110827
 
    *aix*)
110828
 
      suffix=so
110829
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsockets.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(PHPSOCKETS_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsockets.so '$ext_builddir'/phpsockets.so'
110830
 
      ;;
110831
 
    *netware*)
110832
 
      suffix=nlm
110833
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) -L$(top_builddir)/netware -lphp5lib $(SOCKETS_SHARED_LIBADD)'
110834
 
      ;;
110835
 
    *)
110836
 
      suffix=la
110837
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(PHPSOCKETS_SHARED_LIBADD)'
110838
 
      ;;
110839
 
  esac
110840
 
 
110841
 
  if test "x" = "xyes"; then
110842
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsockets.$suffix"
110843
 
  else
110844
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsockets.$suffix"
110845
 
  fi
110846
 
  
110847
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
110848
 
 
110849
 
  cat >>Makefile.objects<<EOF
110850
 
\$(phplibdir)/phpsockets.$suffix: $ext_builddir/phpsockets.$suffix
110851
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsockets.$suffix \$(phplibdir)
110852
 
 
110853
 
$ext_builddir/phpsockets.$suffix: \$(shared_objects_sockets) \$(PHPSOCKETS_SHARED_DEPENDENCIES)
110854
 
        $link_cmd
110855
 
 
110856
 
EOF
110857
 
 
110858
 
          ;;
110859
 
        *)
110860
 
          
110861
 
  install_modules="install-modules"
110862
 
 
110863
 
  case $host_alias in
110864
 
    *aix*)
110865
 
      suffix=so
110866
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sockets.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(SOCKETS_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sockets.so '$ext_builddir'/sockets.so'
110867
 
      ;;
110868
 
    *netware*)
110869
 
      suffix=nlm
110870
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) -L$(top_builddir)/netware -lphp5lib $(KETS_SHARED_LIBADD)'
110871
 
      ;;
110872
 
    *)
110873
 
      suffix=la
110874
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sockets) $(SOCKETS_SHARED_LIBADD)'
110875
 
      ;;
110876
 
  esac
110877
 
 
110878
 
  if test "x" = "xyes"; then
110879
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sockets.$suffix"
110880
 
  else
110881
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/sockets.$suffix"
110882
 
  fi
110883
 
  
110884
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
110885
 
 
110886
 
  cat >>Makefile.objects<<EOF
110887
 
\$(phplibdir)/sockets.$suffix: $ext_builddir/sockets.$suffix
110888
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/sockets.$suffix \$(phplibdir)
110889
 
 
110890
 
$ext_builddir/sockets.$suffix: \$(shared_objects_sockets) \$(SOCKETS_SHARED_DEPENDENCIES)
110891
 
        $link_cmd
110892
 
 
110893
 
EOF
110894
 
 
110895
 
          ;;
110896
 
      esac
110897
 
      
110898
 
cat >>confdefs.h <<_ACEOF
110899
 
@%:@define COMPILE_DL_SOCKETS 1
110900
 
_ACEOF
110901
 
 
110902
 
    fi
110903
 
  fi
110904
 
 
110905
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
110906
 
    PHP_SOCKETS_SHARED=no
110907
 
    case "$PHP_SAPI" in
110908
 
      cgi|embed)
110909
 
        
110910
 
  
110911
 
  case ext/sockets in
110912
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
110913
 
  /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110914
 
  *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
110915
 
  esac
110916
 
  
110917
 
  
110918
 
 
110919
 
  b_c_pre=$php_c_pre
110920
 
  b_cxx_pre=$php_cxx_pre
110921
 
  b_c_meta=$php_c_meta
110922
 
  b_cxx_meta=$php_cxx_meta
110923
 
  b_c_post=$php_c_post
110924
 
  b_cxx_post=$php_cxx_post
110925
 
  b_lo=$php_lo
110926
 
 
110927
 
 
110928
 
  old_IFS=$IFS
110929
 
  for ac_src in sockets.c; do
110930
 
  
110931
 
      IFS=.
110932
 
      set $ac_src
110933
 
      ac_obj=$1
110934
 
      IFS=$old_IFS
110935
 
      
110936
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
110937
 
 
110938
 
      case $ac_src in
110939
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110940
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110941
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110942
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110943
 
      esac
110944
 
 
110945
 
    cat >>Makefile.objects<<EOF
110946
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110947
 
        $ac_comp
110948
 
EOF
110949
 
  done
110950
 
 
110951
 
 
110952
 
        EXT_STATIC="$EXT_STATIC sockets"
110953
 
        ;;
110954
 
      *)
110955
 
        
110956
 
  
110957
 
  case ext/sockets in
110958
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
110959
 
  /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
110960
 
  *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
110961
 
  esac
110962
 
  
110963
 
  
110964
 
 
110965
 
  b_c_pre=$php_c_pre
110966
 
  b_cxx_pre=$php_cxx_pre
110967
 
  b_c_meta=$php_c_meta
110968
 
  b_cxx_meta=$php_cxx_meta
110969
 
  b_c_post=$php_c_post
110970
 
  b_cxx_post=$php_cxx_post
110971
 
  b_lo=$php_lo
110972
 
 
110973
 
 
110974
 
  old_IFS=$IFS
110975
 
  for ac_src in sockets.c; do
110976
 
  
110977
 
      IFS=.
110978
 
      set $ac_src
110979
 
      ac_obj=$1
110980
 
      IFS=$old_IFS
110981
 
      
110982
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
110983
 
 
110984
 
      case $ac_src in
110985
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110986
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110987
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
110988
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
110989
 
      esac
110990
 
 
110991
 
    cat >>Makefile.objects<<EOF
110992
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
110993
 
        $ac_comp
110994
 
EOF
110995
 
  done
110996
 
 
110997
 
 
110998
 
        ;;
110999
 
    esac
111000
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
111001
 
  fi
111002
 
  
111003
 
  
111004
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
111005
 
  
111006
 
 
111007
 
 
111008
 
  if test "$ext_builddir" = "."; then
111009
 
    PHP_PECL_EXTENSION=sockets
111010
 
    
111011
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
111012
 
 
111013
 
  fi
111014
 
 
111015
 
  
111016
 
  
111017
 
    header_path=ext/sockets/
111018
 
    for header_file in php_sockets.h; do
111019
 
      hp_hf="$header_path/$header_file"
111020
 
      
111021
 
  
111022
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
111023
 
  
111024
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
111025
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
111026
 
    eval "INSTALLHEADERS$unique=set"
111027
 
    
111028
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
111029
 
      
111030
 
  fi
111031
 
 
111032
 
    done 
111033
 
  
111034
 
 
111035
 
fi
111036
 
 
111037
 
 
111038
 
  { $as_echo "$as_me:$LINENO: checking whether zend_object_value is packed" >&5
111039
 
$as_echo_n "checking whether zend_object_value is packed... " >&6; }
111040
 
  old_CPPFLAGS=$CPPFLAGS
111041
 
  CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS"
111042
 
  if test "$cross_compiling" = yes; then
111043
 
  
111044
 
    ac_result=0
111045
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
111046
 
$as_echo "no" >&6; }
111047
 
  
111048
 
else
111049
 
  cat >conftest.$ac_ext <<_ACEOF
111050
 
/* confdefs.h.  */
111051
 
_ACEOF
111052
 
cat confdefs.h >>conftest.$ac_ext
111053
 
cat >>conftest.$ac_ext <<_ACEOF
111054
 
/* end confdefs.h.  */
111055
 
 
111056
 
#include "Zend/zend_types.h"
111057
 
int main(int argc, char **argv) {
111058
 
        return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1;
111059
 
}
111060
 
  
111061
 
_ACEOF
111062
 
rm -f conftest$ac_exeext
111063
 
if { (ac_try="$ac_link"
111064
 
case "(($ac_try" in
111065
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111066
 
  *) ac_try_echo=$ac_try;;
111067
 
esac
111068
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
111069
 
$as_echo "$ac_try_echo") >&5
111070
 
  (eval "$ac_link") 2>&5
111071
 
  ac_status=$?
111072
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
111073
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
111074
 
  { (case "(($ac_try" in
111075
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111076
 
  *) ac_try_echo=$ac_try;;
111077
 
esac
111078
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
111079
 
$as_echo "$ac_try_echo") >&5
111080
 
  (eval "$ac_try") 2>&5
111081
 
  ac_status=$?
111082
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
111083
 
  (exit $ac_status); }; }; then
111084
 
  
111085
 
    ac_result=1
111086
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
111087
 
$as_echo "yes" >&6; }
111088
 
  
111089
 
else
111090
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
111091
 
$as_echo "$as_me: failed program was:" >&5
111092
 
sed 's/^/| /' conftest.$ac_ext >&5
111093
 
 
111094
 
( exit $ac_status )
111095
 
 
111096
 
    ac_result=0
111097
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
111098
 
$as_echo "no" >&6; }
111099
 
  
111100
 
fi
111101
 
rm -rf conftest.dSYM
111102
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
111103
 
fi
111104
 
 
111105
 
 
111106
 
  CPPFLAGS=$old_CPPFLAGS
111107
 
  
111108
 
cat >>confdefs.h <<_ACEOF
111109
 
@%:@define HAVE_PACKED_OBJECT_VALUE $ac_result
111110
 
_ACEOF
111111
 
 
111112
 
  
111113
 
cat >>confdefs.h <<\_ACEOF
111114
 
@%:@define HAVE_SPL 1
111115
 
_ACEOF
111116
 
 
111117
 
  
111118
 
  ext_builddir=ext/spl
111119
 
  ext_srcdir=$abs_srcdir/ext/spl
111120
 
 
111121
 
  ac_extra=
111122
 
 
111123
 
  if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
111124
 
    PHP_SPL_SHARED=no
111125
 
    
111126
 
  
111127
 
  case ext/spl in
111128
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
111129
 
  /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
111130
 
  *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
111131
 
  esac
111132
 
  
111133
 
  
111134
 
 
111135
 
  b_c_pre=$php_c_pre
111136
 
  b_cxx_pre=$php_cxx_pre
111137
 
  b_c_meta=$php_c_meta
111138
 
  b_cxx_meta=$php_cxx_meta
111139
 
  b_c_post=$php_c_post
111140
 
  b_cxx_post=$php_cxx_post
111141
 
  b_lo=$php_lo
111142
 
 
111143
 
 
111144
 
  old_IFS=$IFS
111145
 
  for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
111146
 
  
111147
 
      IFS=.
111148
 
      set $ac_src
111149
 
      ac_obj=$1
111150
 
      IFS=$old_IFS
111151
 
      
111152
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
111153
 
 
111154
 
      case $ac_src in
111155
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111156
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111157
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111158
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
111159
 
      esac
111160
 
 
111161
 
    cat >>Makefile.objects<<EOF
111162
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
111163
 
        $ac_comp
111164
 
EOF
111165
 
  done
111166
 
 
111167
 
 
111168
 
    EXT_STATIC="$EXT_STATIC spl"
111169
 
    if test "no" != "nocli"; then
111170
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
111171
 
    fi
111172
 
  else
111173
 
    if test "no" = "shared" || test "no" = "yes"; then
111174
 
      PHP_SPL_SHARED=yes
111175
 
      
111176
 
  case ext/spl in
111177
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
111178
 
  /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
111179
 
  *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
111180
 
  esac
111181
 
  
111182
 
  
111183
 
 
111184
 
  b_c_pre=$shared_c_pre
111185
 
  b_cxx_pre=$shared_cxx_pre
111186
 
  b_c_meta=$shared_c_meta
111187
 
  b_cxx_meta=$shared_cxx_meta
111188
 
  b_c_post=$shared_c_post
111189
 
  b_cxx_post=$shared_cxx_post
111190
 
  b_lo=$shared_lo
111191
 
 
111192
 
 
111193
 
  old_IFS=$IFS
111194
 
  for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
111195
 
  
111196
 
      IFS=.
111197
 
      set $ac_src
111198
 
      ac_obj=$1
111199
 
      IFS=$old_IFS
111200
 
      
111201
 
      shared_objects_spl="$shared_objects_spl $ac_bdir$ac_obj.lo"
111202
 
 
111203
 
      case $ac_src in
111204
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111205
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111206
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111207
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
111208
 
      esac
111209
 
 
111210
 
    cat >>Makefile.objects<<EOF
111211
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
111212
 
        $ac_comp
111213
 
EOF
111214
 
  done
111215
 
 
111216
 
      case $host_alias in
111217
 
        *netware*)
111218
 
          
111219
 
  install_modules="install-modules"
111220
 
 
111221
 
  case $host_alias in
111222
 
    *aix*)
111223
 
      suffix=so
111224
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpspl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(PHPSPL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpspl.so '$ext_builddir'/phpspl.so'
111225
 
      ;;
111226
 
    *netware*)
111227
 
      suffix=nlm
111228
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) -L$(top_builddir)/netware -lphp5lib $(SPL_SHARED_LIBADD)'
111229
 
      ;;
111230
 
    *)
111231
 
      suffix=la
111232
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(PHPSPL_SHARED_LIBADD)'
111233
 
      ;;
111234
 
  esac
111235
 
 
111236
 
  if test "x" = "xyes"; then
111237
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpspl.$suffix"
111238
 
  else
111239
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpspl.$suffix"
111240
 
  fi
111241
 
  
111242
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
111243
 
 
111244
 
  cat >>Makefile.objects<<EOF
111245
 
\$(phplibdir)/phpspl.$suffix: $ext_builddir/phpspl.$suffix
111246
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpspl.$suffix \$(phplibdir)
111247
 
 
111248
 
$ext_builddir/phpspl.$suffix: \$(shared_objects_spl) \$(PHPSPL_SHARED_DEPENDENCIES)
111249
 
        $link_cmd
111250
 
 
111251
 
EOF
111252
 
 
111253
 
          ;;
111254
 
        *)
111255
 
          
111256
 
  install_modules="install-modules"
111257
 
 
111258
 
  case $host_alias in
111259
 
    *aix*)
111260
 
      suffix=so
111261
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/spl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(SPL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/spl.so '$ext_builddir'/spl.so'
111262
 
      ;;
111263
 
    *netware*)
111264
 
      suffix=nlm
111265
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
111266
 
      ;;
111267
 
    *)
111268
 
      suffix=la
111269
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_spl) $(SPL_SHARED_LIBADD)'
111270
 
      ;;
111271
 
  esac
111272
 
 
111273
 
  if test "x" = "xyes"; then
111274
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/spl.$suffix"
111275
 
  else
111276
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/spl.$suffix"
111277
 
  fi
111278
 
  
111279
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
111280
 
 
111281
 
  cat >>Makefile.objects<<EOF
111282
 
\$(phplibdir)/spl.$suffix: $ext_builddir/spl.$suffix
111283
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/spl.$suffix \$(phplibdir)
111284
 
 
111285
 
$ext_builddir/spl.$suffix: \$(shared_objects_spl) \$(SPL_SHARED_DEPENDENCIES)
111286
 
        $link_cmd
111287
 
 
111288
 
EOF
111289
 
 
111290
 
          ;;
111291
 
      esac
111292
 
      
111293
 
cat >>confdefs.h <<_ACEOF
111294
 
@%:@define COMPILE_DL_SPL 1
111295
 
_ACEOF
111296
 
 
111297
 
    fi
111298
 
  fi
111299
 
 
111300
 
  if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
111301
 
    PHP_SPL_SHARED=no
111302
 
    case "$PHP_SAPI" in
111303
 
      cgi|embed)
111304
 
        
111305
 
  
111306
 
  case ext/spl in
111307
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
111308
 
  /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
111309
 
  *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
111310
 
  esac
111311
 
  
111312
 
  
111313
 
 
111314
 
  b_c_pre=$php_c_pre
111315
 
  b_cxx_pre=$php_cxx_pre
111316
 
  b_c_meta=$php_c_meta
111317
 
  b_cxx_meta=$php_cxx_meta
111318
 
  b_c_post=$php_c_post
111319
 
  b_cxx_post=$php_cxx_post
111320
 
  b_lo=$php_lo
111321
 
 
111322
 
 
111323
 
  old_IFS=$IFS
111324
 
  for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
111325
 
  
111326
 
      IFS=.
111327
 
      set $ac_src
111328
 
      ac_obj=$1
111329
 
      IFS=$old_IFS
111330
 
      
111331
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
111332
 
 
111333
 
      case $ac_src in
111334
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111335
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111336
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111337
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
111338
 
      esac
111339
 
 
111340
 
    cat >>Makefile.objects<<EOF
111341
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
111342
 
        $ac_comp
111343
 
EOF
111344
 
  done
111345
 
 
111346
 
 
111347
 
        EXT_STATIC="$EXT_STATIC spl"
111348
 
        ;;
111349
 
      *)
111350
 
        
111351
 
  
111352
 
  case ext/spl in
111353
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
111354
 
  /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
111355
 
  *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
111356
 
  esac
111357
 
  
111358
 
  
111359
 
 
111360
 
  b_c_pre=$php_c_pre
111361
 
  b_cxx_pre=$php_cxx_pre
111362
 
  b_c_meta=$php_c_meta
111363
 
  b_cxx_meta=$php_cxx_meta
111364
 
  b_c_post=$php_c_post
111365
 
  b_cxx_post=$php_cxx_post
111366
 
  b_lo=$php_lo
111367
 
 
111368
 
 
111369
 
  old_IFS=$IFS
111370
 
  for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
111371
 
  
111372
 
      IFS=.
111373
 
      set $ac_src
111374
 
      ac_obj=$1
111375
 
      IFS=$old_IFS
111376
 
      
111377
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
111378
 
 
111379
 
      case $ac_src in
111380
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111381
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111382
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
111383
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
111384
 
      esac
111385
 
 
111386
 
    cat >>Makefile.objects<<EOF
111387
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
111388
 
        $ac_comp
111389
 
EOF
111390
 
  done
111391
 
 
111392
 
 
111393
 
        ;;
111394
 
    esac
111395
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
111396
 
  fi
111397
 
  
111398
 
  
111399
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
111400
 
  
111401
 
 
111402
 
 
111403
 
  if test "$ext_builddir" = "."; then
111404
 
    PHP_PECL_EXTENSION=spl
111405
 
    
111406
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
111407
 
 
111408
 
  fi
111409
 
 
111410
 
  
111411
 
  
111412
 
    header_path=ext/spl
111413
 
    for header_file in php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_dllist.h spl_heap.h spl_fixedarray.h; do
111414
 
      hp_hf="$header_path/$header_file"
111415
 
      
111416
 
  
111417
 
  unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
111418
 
  
111419
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
111420
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
111421
 
    eval "INSTALLHEADERS$unique=set"
111422
 
    
111423
 
        INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
111424
 
      
111425
 
  fi
111426
 
 
111427
 
    done 
111428
 
  
111429
 
 
111430
 
  
111431
 
  am_i_shared=$PHP_SPL_SHARED
111432
 
  is_it_shared=$PHP_PCRE_SHARED
111433
 
  is_it_enabled=$PHP_PCRE
111434
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
111435
 
    { { $as_echo "$as_me:$LINENO: error: 
111436
 
You've configured extension spl to build statically, but it
111437
 
depends on extension pcre, which you've configured to build shared.
111438
 
You either need to build spl shared or build pcre statically for the
111439
 
build to be successful.
111440
 
" >&5
111441
 
$as_echo "$as_me: error: 
111442
 
You've configured extension spl to build statically, but it
111443
 
depends on extension pcre, which you've configured to build shared.
111444
 
You either need to build spl shared or build pcre statically for the
111445
 
build to be successful.
111446
 
" >&2;}
111447
 
   { (exit 1); exit 1; }; }
111448
 
  fi
111449
 
  if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
111450
 
    { { $as_echo "$as_me:$LINENO: error: 
111451
 
You've configured extension spl, which depends on extension pcre,
111452
 
but you've either not enabled pcre, or have disabled it.
111453
 
" >&5
111454
 
$as_echo "$as_me: error: 
111455
 
You've configured extension spl, which depends on extension pcre,
111456
 
but you've either not enabled pcre, or have disabled it.
111457
 
" >&2;}
111458
 
   { (exit 1); exit 1; }; }
111459
 
  fi
111460
 
  
111461
 
 
111462
 
 
111463
 
 
111464
 
php_with_sqlite=yes
111465
 
 
111466
 
{ $as_echo "$as_me:$LINENO: checking for sqlite support" >&5
111467
 
$as_echo_n "checking for sqlite support... " >&6; }
111468
 
 
111469
 
@%:@ Check whether --with-sqlite was given.
111470
 
if test "${with_sqlite+set}" = set; then
111471
 
  withval=$with_sqlite; PHP_SQLITE=$withval
111472
 
else
111473
 
  
111474
 
  PHP_SQLITE=yes
111475
 
  test "$PHP_ENABLE_ALL" && PHP_SQLITE=$PHP_ENABLE_ALL
111476
 
 
111477
 
fi
111478
 
 
111479
 
 
111480
 
 
111481
 
ext_output="yes, shared"
111482
 
ext_shared=yes
111483
 
case $PHP_SQLITE in
111484
 
shared,*)
111485
 
  PHP_SQLITE=`echo "$PHP_SQLITE"|$SED 's/^shared,//'`
111486
 
  ;;
111487
 
shared)
111488
 
  PHP_SQLITE=yes
111489
 
  ;;
111490
 
no)
111491
 
  ext_output=no
111492
 
  ext_shared=no
111493
 
  ;;
111494
 
*)
111495
 
  ext_output=yes
111496
 
  ext_shared=no
111497
 
  ;;
111498
 
esac
111499
 
 
111500
 
 
111501
 
 
111502
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
111503
 
$as_echo "$ext_output" >&6; }
111504
 
 
111505
 
 
111506
 
 
111507
 
 
111508
 
 
111509
 
php_enable_sqlite_utf8=no
111510
 
 
111511
 
{ $as_echo "$as_me:$LINENO: checking whether to enable UTF-8 support in sqlite (default: ISO-8859-1)" >&5
111512
 
$as_echo_n "checking whether to enable UTF-8 support in sqlite (default: ISO-8859-1)... " >&6; }
111513
 
@%:@ Check whether --enable-sqlite-utf8 was given.
111514
 
if test "${enable_sqlite_utf8+set}" = set; then
111515
 
  enableval=$enable_sqlite_utf8; PHP_SQLITE_UTF8=$enableval
111516
 
else
111517
 
  
111518
 
  PHP_SQLITE_UTF8=no
111519
 
  
111520
 
 
111521
 
fi
111522
 
 
111523
 
 
111524
 
ext_output=$PHP_SQLITE_UTF8
111525
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
111526
 
$as_echo "$ext_output" >&6; }
111527
 
 
111528
 
 
111529
 
 
111530
 
 
111531
 
 
111532
 
 
111533
 
 
111534
 
 
111535
 
 
111536
 
if test "$PHP_SQLITE" != "no"; then
111537
 
  if test "$PHP_PDO" != "no"; then
111538
 
    
111539
 
  { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
111540
 
$as_echo_n "checking for PDO includes... " >&6; }
111541
 
if test "${pdo_inc_path+set}" = set; then
111542
 
  $as_echo_n "(cached) " >&6
111543
 
else
111544
 
  
111545
 
    { $as_echo "$as_me:$LINENO: checking for PDO includes" >&5
111546
 
$as_echo_n "checking for PDO includes... " >&6; }
111547
 
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
111548
 
      pdo_inc_path=$abs_srcdir/ext
111549
 
    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
111550
 
      pdo_inc_path=$abs_srcdir/ext
111551
 
    elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
111552
 
      pdo_inc_path=$prefix/include/php/ext
111553
 
    fi
111554
 
  
111555
 
fi
111556
 
{ $as_echo "$as_me:$LINENO: result: $pdo_inc_path" >&5
111557
 
$as_echo "$pdo_inc_path" >&6; }
111558
 
  if test -n "$pdo_inc_path"; then
111559
 
:
111560
 
  else
111561
 
{ $as_echo "$as_me:$LINENO: WARNING: Cannot find php_pdo_driver.h." >&5
111562
 
$as_echo "$as_me: WARNING: Cannot find php_pdo_driver.h." >&2;}
111563
 
  fi
111564
 
 
111565
 
    if test -n "$pdo_inc_path"; then
111566
 
      
111567
 
cat >>confdefs.h <<\_ACEOF
111568
 
@%:@define PHP_SQLITE2_HAVE_PDO 1
111569
 
_ACEOF
111570
 
 
111571
 
      pdo_inc_path="-I$pdo_inc_path"
111572
 
    fi
111573
 
  fi  
111574
 
 
111575
 
  if test "$PHP_SQLITE" != "yes"; then
111576
 
    SEARCH_PATH="/usr/local /usr"
111577
 
    SEARCH_FOR="/include/sqlite.h"
111578
 
    if test -r $PHP_SQLITE/; then # path given as parameter
111579
 
      SQLITE_DIR=$PHP_SQLITE
111580
 
    else # search default path list
111581
 
      { $as_echo "$as_me:$LINENO: checking for sqlite files in default path" >&5
111582
 
$as_echo_n "checking for sqlite files in default path... " >&6; }
111583
 
      for i in $SEARCH_PATH ; do
111584
 
        if test -r $i/$SEARCH_FOR; then
111585
 
          SQLITE_DIR=$i
111586
 
          { $as_echo "$as_me:$LINENO: result: found in $i" >&5
111587
 
$as_echo "found in $i" >&6; }
111588
 
        fi
111589
 
      done
111590
 
    fi
111591
 
  
111592
 
    if test -z "$SQLITE_DIR"; then
111593
 
      { $as_echo "$as_me:$LINENO: result: not found" >&5
111594
 
$as_echo "not found" >&6; }
111595
 
      { { $as_echo "$as_me:$LINENO: error: Please reinstall the sqlite distribution from http://www.sqlite.org" >&5
111596
 
$as_echo "$as_me: error: Please reinstall the sqlite distribution from http://www.sqlite.org" >&2;}
111597
 
   { (exit 1); exit 1; }; }
111598
 
    fi
111599
 
 
111600
 
    
111601
 
  save_old_LDFLAGS=$LDFLAGS
111602
 
  ac_stuff="
111603
 
      -L$SQLITE_DIR/$PHP_LIBDIR -lm
111604
 
    "
111605
 
  
111606
 
  save_ext_shared=$ext_shared
111607
 
  ext_shared=yes
111608
 
  
111609
 
  for ac_i in $ac_stuff; do
111610
 
    case $ac_i in
111611
 
    -pthread)
111612
 
      if test "$ext_shared" = "yes"; then
111613
 
        LDFLAGS="$LDFLAGS -pthread"
111614
 
      else
111615
 
        
111616
 
  
111617
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
111618
 
  
111619
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
111620
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
111621
 
    eval "EXTRA_LDFLAGS$unique=set"
111622
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
111623
 
  fi
111624
 
 
111625
 
      fi
111626
 
    ;;
111627
 
    -l*)
111628
 
      ac_ii=`echo $ac_i|cut -c 3-`
111629
 
      
111630
 
  
111631
 
  case $ac_ii in
111632
 
  c|c_r|pthread*) ;;
111633
 
  *) 
111634
 
    if test "$ext_shared" = "yes"; then
111635
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
111636
 
    else
111637
 
      
111638
 
  
111639
 
  case $ac_ii in
111640
 
  c|c_r|pthread*) ;;
111641
 
  *) 
111642
 
      LIBS="$LIBS -l$ac_ii" 
111643
 
   ;;
111644
 
  esac
111645
 
 
111646
 
 
111647
 
    fi
111648
 
   ;;
111649
 
  esac
111650
 
 
111651
 
 
111652
 
    ;;
111653
 
    -L*)
111654
 
      ac_ii=`echo $ac_i|cut -c 3-`
111655
 
      
111656
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
111657
 
    
111658
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
111659
 
    ai_p=$ac_ii
111660
 
  else
111661
 
    
111662
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
111663
 
    
111664
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
111665
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
111666
 
  fi
111667
 
 
111668
 
    
111669
 
      if test "$ext_shared" = "yes"; then
111670
 
        LDFLAGS="-L$ai_p $LDFLAGS"
111671
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
111672
 
      else
111673
 
        
111674
 
  
111675
 
  
111676
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
111677
 
  
111678
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
111679
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
111680
 
    eval "LIBPATH$unique=set"
111681
 
    
111682
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
111683
 
    LDFLAGS="$LDFLAGS -L$ai_p"
111684
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
111685
 
  
111686
 
  fi
111687
 
 
111688
 
 
111689
 
      fi
111690
 
    
111691
 
  fi
111692
 
 
111693
 
    ;;
111694
 
    esac
111695
 
  done
111696
 
 
111697
 
  { $as_echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
111698
 
$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
111699
 
if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
111700
 
  $as_echo_n "(cached) " >&6
111701
 
else
111702
 
  ac_check_lib_save_LIBS=$LIBS
111703
 
LIBS="-lsqlite  $LIBS"
111704
 
cat >conftest.$ac_ext <<_ACEOF
111705
 
/* confdefs.h.  */
111706
 
_ACEOF
111707
 
cat confdefs.h >>conftest.$ac_ext
111708
 
cat >>conftest.$ac_ext <<_ACEOF
111709
 
/* end confdefs.h.  */
111710
 
 
111711
 
/* Override any GCC internal prototype to avoid an error.
111712
 
   Use char because int might match the return type of a GCC
111713
 
   builtin and then its argument prototype would still apply.  */
111714
 
#ifdef __cplusplus
111715
 
extern "C"
111716
 
#endif
111717
 
char sqlite_open ();
111718
 
int
111719
 
main ()
111720
 
{
111721
 
return sqlite_open ();
111722
 
  ;
111723
 
  return 0;
111724
 
}
111725
 
_ACEOF
111726
 
rm -f conftest.$ac_objext conftest$ac_exeext
111727
 
if { (ac_try="$ac_link"
111728
 
case "(($ac_try" in
111729
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
111730
 
  *) ac_try_echo=$ac_try;;
111731
 
esac
111732
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
111733
 
$as_echo "$ac_try_echo") >&5
111734
 
  (eval "$ac_link") 2>conftest.er1
111735
 
  ac_status=$?
111736
 
  grep -v '^ *+' conftest.er1 >conftest.err
111737
 
  rm -f conftest.er1
111738
 
  cat conftest.err >&5
111739
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
111740
 
  (exit $ac_status); } && {
111741
 
         test -z "$ac_c_werror_flag" ||
111742
 
         test ! -s conftest.err
111743
 
       } && test -s conftest$ac_exeext && {
111744
 
         test "$cross_compiling" = yes ||
111745
 
         $as_test_x conftest$ac_exeext
111746
 
       }; then
111747
 
  ac_cv_lib_sqlite_sqlite_open=yes
111748
 
else
111749
 
  $as_echo "$as_me: failed program was:" >&5
111750
 
sed 's/^/| /' conftest.$ac_ext >&5
111751
 
 
111752
 
        ac_cv_lib_sqlite_sqlite_open=no
111753
 
fi
111754
 
 
111755
 
rm -rf conftest.dSYM
111756
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
111757
 
      conftest$ac_exeext conftest.$ac_ext
111758
 
LIBS=$ac_check_lib_save_LIBS
111759
 
fi
111760
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
111761
 
$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
111762
 
if test "x$ac_cv_lib_sqlite_sqlite_open" = x""yes; then
111763
 
  
111764
 
    LDFLAGS=$save_old_LDFLAGS
111765
 
    ext_shared=$save_ext_shared
111766
 
    
111767
 
      
111768
 
 
111769
 
  if test "$ext_shared" = "yes"; then
111770
 
    SQLITE_SHARED_LIBADD="-lsqlite $SQLITE_SHARED_LIBADD"
111771
 
    if test -n "$SQLITE_DIR/$PHP_LIBDIR"; then
111772
 
      
111773
 
  if test "$SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
111774
 
    
111775
 
  if test -z "$SQLITE_DIR/$PHP_LIBDIR" || echo "$SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
111776
 
    ai_p=$SQLITE_DIR/$PHP_LIBDIR
111777
 
  else
111778
 
    
111779
 
    ep_dir="`echo $SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
111780
 
    
111781
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
111782
 
    ai_p="$ep_realdir/`basename \"$SQLITE_DIR/$PHP_LIBDIR\"`"
111783
 
  fi
111784
 
 
111785
 
    
111786
 
      if test "$ext_shared" = "yes"; then
111787
 
        SQLITE_SHARED_LIBADD="-L$ai_p $SQLITE_SHARED_LIBADD"
111788
 
        test -n "$ld_runpath_switch" && SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE_SHARED_LIBADD"
111789
 
      else
111790
 
        
111791
 
  
111792
 
  
111793
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
111794
 
  
111795
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
111796
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
111797
 
    eval "LIBPATH$unique=set"
111798
 
    
111799
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
111800
 
    LDFLAGS="$LDFLAGS -L$ai_p"
111801
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
111802
 
  
111803
 
  fi
111804
 
 
111805
 
 
111806
 
      fi
111807
 
    
111808
 
  fi
111809
 
 
111810
 
    fi
111811
 
  else
111812
 
    
111813
 
 
111814
 
  if test -n "$SQLITE_DIR/$PHP_LIBDIR"; then
111815
 
    
111816
 
  if test "$SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
111817
 
    
111818
 
  if test -z "$SQLITE_DIR/$PHP_LIBDIR" || echo "$SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
111819
 
    ai_p=$SQLITE_DIR/$PHP_LIBDIR
111820
 
  else
111821
 
    
111822
 
    ep_dir="`echo $SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
111823
 
    
111824
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
111825
 
    ai_p="$ep_realdir/`basename \"$SQLITE_DIR/$PHP_LIBDIR\"`"
111826
 
  fi
111827
 
 
111828
 
    
111829
 
      
111830
 
  
111831
 
  
111832
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
111833
 
  
111834
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
111835
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
111836
 
    eval "LIBPATH$unique=set"
111837
 
    
111838
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
111839
 
    LDFLAGS="$LDFLAGS -L$ai_p"
111840
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
111841
 
  
111842
 
  fi
111843
 
 
111844
 
 
111845
 
    
111846
 
  fi
111847
 
 
111848
 
  fi
111849
 
  
111850
 
  
111851
 
  case sqlite in
111852
 
  c|c_r|pthread*) ;;
111853
 
  *) 
111854
 
      LIBS="-lsqlite $LIBS" 
111855
 
   ;;
111856
 
  esac
111857
 
 
111858
 
 
111859
 
 
111860
 
 
111861
 
  fi
111862
 
 
111863
 
 
111864
 
      
111865
 
  if test "$SQLITE_DIR/include" != "/usr/include"; then
111866
 
    
111867
 
  if test -z "$SQLITE_DIR/include" || echo "$SQLITE_DIR/include" | grep '^/' >/dev/null ; then
111868
 
    ai_p=$SQLITE_DIR/include
111869
 
  else
111870
 
    
111871
 
    ep_dir="`echo $SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
111872
 
    
111873
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
111874
 
    ai_p="$ep_realdir/`basename \"$SQLITE_DIR/include\"`"
111875
 
  fi
111876
 
 
111877
 
    
111878
 
  
111879
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
111880
 
  
111881
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
111882
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
111883
 
    eval "INCLUDEPATH$unique=set"
111884
 
    
111885
 
      if test ""; then
111886
 
        INCLUDES="-I$ai_p $INCLUDES"
111887
 
      else
111888
 
        INCLUDES="$INCLUDES -I$ai_p"
111889
 
      fi
111890
 
    
111891
 
  fi
111892
 
 
111893
 
  fi
111894
 
 
111895
 
    
111896
 
  
111897
 
else
111898
 
  
111899
 
    LDFLAGS=$save_old_LDFLAGS
111900
 
    ext_shared=$save_ext_shared
111901
 
    unset ac_cv_lib_sqlite_sqlite_open
111902
 
    
111903
 
      { { $as_echo "$as_me:$LINENO: error: wrong sqlite lib version or lib not found" >&5
111904
 
$as_echo "$as_me: error: wrong sqlite lib version or lib not found" >&2;}
111905
 
   { (exit 1); exit 1; }; }
111906
 
    
111907
 
  
111908
 
fi
111909
 
 
111910
 
    SQLITE_MODULE_TYPE=external
111911
 
    PHP_SQLITE_CFLAGS=$pdo_inc_path
111912
 
    sqlite_extra_sources="libsqlite/src/encode.c"
111913
 
  else
111914
 
    # use bundled library
111915
 
    
111916
 
  # we only support certain lemon versions
111917
 
  lemon_version_list="1.0"
111918
 
 
111919
 
  # Extract the first word of "lemon", so it can be a program name with args.
111920
 
set dummy lemon; ac_word=$2
111921
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
111922
 
$as_echo_n "checking for $ac_word... " >&6; }
111923
 
if test "${ac_cv_prog_LEMON+set}" = set; then
111924
 
  $as_echo_n "(cached) " >&6
111925
 
else
111926
 
  if test -n "$LEMON"; then
111927
 
  ac_cv_prog_LEMON="$LEMON" # Let the user override the test.
111928
 
else
111929
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111930
 
for as_dir in $PATH
111931
 
do
111932
 
  IFS=$as_save_IFS
111933
 
  test -z "$as_dir" && as_dir=.
111934
 
  for ac_exec_ext in '' $ac_executable_extensions; do
111935
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
111936
 
    ac_cv_prog_LEMON="lemon"
111937
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
111938
 
    break 2
111939
 
  fi
111940
 
done
111941
 
done
111942
 
IFS=$as_save_IFS
111943
 
 
111944
 
fi
111945
 
fi
111946
 
LEMON=$ac_cv_prog_LEMON
111947
 
if test -n "$LEMON"; then
111948
 
  { $as_echo "$as_me:$LINENO: result: $LEMON" >&5
111949
 
$as_echo "$LEMON" >&6; }
111950
 
else
111951
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
111952
 
$as_echo "no" >&6; }
111953
 
fi
111954
 
 
111955
 
 
111956
 
  if test "$LEMON"; then
111957
 
    { $as_echo "$as_me:$LINENO: checking for lemon version" >&5
111958
 
$as_echo_n "checking for lemon version... " >&6; }
111959
 
if test "${php_cv_lemon_version+set}" = set; then
111960
 
  $as_echo_n "(cached) " >&6
111961
 
else
111962
 
  
111963
 
      lemon_version=`$LEMON -x 2>/dev/null | $SED -e 's/^.* //'`
111964
 
      php_cv_lemon_version=invalid
111965
 
      for lemon_check_version in $lemon_version_list; do
111966
 
        if test "$lemon_version" = "$lemon_check_version"; then
111967
 
          php_cv_lemon_version="$lemon_check_version (ok)"
111968
 
        fi
111969
 
      done
111970
 
    
111971
 
fi
111972
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_lemon_version" >&5
111973
 
$as_echo "$php_cv_lemon_version" >&6; }
111974
 
  else
111975
 
    lemon_version=none
111976
 
  fi
111977
 
  case $php_cv_lemon_version in
111978
 
    ""|invalid)
111979
 
      lemon_msg="lemon versions supported for regeneration of libsqlite parsers: $lemon_version_list (found: $lemon_version)."
111980
 
      { $as_echo "$as_me:$LINENO: WARNING: $lemon_msg" >&5
111981
 
$as_echo "$as_me: WARNING: $lemon_msg" >&2;}
111982
 
      LEMON="exit 0;"
111983
 
      ;;
111984
 
  esac
111985
 
  
111986
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST LEMON"
111987
 
 
111988
 
 
111989
 
    SQLITE_MODULE_TYPE=builtin
111990
 
    PHP_SQLITE_CFLAGS="-I@ext_srcdir@/libsqlite/src -I@ext_builddir@/libsqlite/src $pdo_inc_path"
111991
 
    sqlite_extra_sources="libsqlite/src/opcodes.c \
111992
 
        libsqlite/src/parse.c libsqlite/src/encode.c \
111993
 
        libsqlite/src/auth.c libsqlite/src/btree.c libsqlite/src/build.c \
111994
 
        libsqlite/src/delete.c libsqlite/src/expr.c libsqlite/src/func.c \
111995
 
        libsqlite/src/hash.c libsqlite/src/insert.c libsqlite/src/main.c \
111996
 
        libsqlite/src/os.c libsqlite/src/pager.c \
111997
 
        libsqlite/src/printf.c libsqlite/src/random.c \
111998
 
        libsqlite/src/select.c libsqlite/src/table.c libsqlite/src/tokenize.c \
111999
 
        libsqlite/src/update.c libsqlite/src/util.c libsqlite/src/vdbe.c \
112000
 
        libsqlite/src/attach.c libsqlite/src/btree_rb.c libsqlite/src/pragma.c \
112001
 
        libsqlite/src/vacuum.c libsqlite/src/copy.c \
112002
 
        libsqlite/src/vdbeaux.c libsqlite/src/date.c \
112003
 
        libsqlite/src/where.c libsqlite/src/trigger.c"
112004
 
  fi
112005
 
        sqlite_sources="sqlite.c sess_sqlite.c pdo_sqlite2.c $sqlite_extra_sources" 
112006
 
  
112007
 
  ext_builddir=ext/sqlite
112008
 
  ext_srcdir=$abs_srcdir/ext/sqlite
112009
 
 
112010
 
  ac_extra=`echo "$PHP_SQLITE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
112011
 
 
112012
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
112013
 
    PHP_SQLITE_SHARED=no
112014
 
    
112015
 
  
112016
 
  case ext/sqlite in
112017
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
112018
 
  /*) ac_srcdir=`echo "ext/sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
112019
 
  *) ac_srcdir="$abs_srcdir/ext/sqlite/"; ac_bdir="ext/sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
112020
 
  esac
112021
 
  
112022
 
  
112023
 
 
112024
 
  b_c_pre=$php_c_pre
112025
 
  b_cxx_pre=$php_cxx_pre
112026
 
  b_c_meta=$php_c_meta
112027
 
  b_cxx_meta=$php_cxx_meta
112028
 
  b_c_post=$php_c_post
112029
 
  b_cxx_post=$php_cxx_post
112030
 
  b_lo=$php_lo
112031
 
 
112032
 
 
112033
 
  old_IFS=$IFS
112034
 
  for ac_src in $sqlite_sources; do
112035
 
  
112036
 
      IFS=.
112037
 
      set $ac_src
112038
 
      ac_obj=$1
112039
 
      IFS=$old_IFS
112040
 
      
112041
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
112042
 
 
112043
 
      case $ac_src in
112044
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112045
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112046
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112047
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
112048
 
      esac
112049
 
 
112050
 
    cat >>Makefile.objects<<EOF
112051
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
112052
 
        $ac_comp
112053
 
EOF
112054
 
  done
112055
 
 
112056
 
 
112057
 
    EXT_STATIC="$EXT_STATIC sqlite"
112058
 
    if test "$ext_shared" != "nocli"; then
112059
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite"
112060
 
    fi
112061
 
  else
112062
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
112063
 
      PHP_SQLITE_SHARED=yes
112064
 
      
112065
 
  case ext/sqlite in
112066
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
112067
 
  /*) ac_srcdir=`echo "ext/sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
112068
 
  *) ac_srcdir="$abs_srcdir/ext/sqlite/"; ac_bdir="ext/sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
112069
 
  esac
112070
 
  
112071
 
  
112072
 
 
112073
 
  b_c_pre=$shared_c_pre
112074
 
  b_cxx_pre=$shared_cxx_pre
112075
 
  b_c_meta=$shared_c_meta
112076
 
  b_cxx_meta=$shared_cxx_meta
112077
 
  b_c_post=$shared_c_post
112078
 
  b_cxx_post=$shared_cxx_post
112079
 
  b_lo=$shared_lo
112080
 
 
112081
 
 
112082
 
  old_IFS=$IFS
112083
 
  for ac_src in $sqlite_sources; do
112084
 
  
112085
 
      IFS=.
112086
 
      set $ac_src
112087
 
      ac_obj=$1
112088
 
      IFS=$old_IFS
112089
 
      
112090
 
      shared_objects_sqlite="$shared_objects_sqlite $ac_bdir$ac_obj.lo"
112091
 
 
112092
 
      case $ac_src in
112093
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112094
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112095
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112096
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
112097
 
      esac
112098
 
 
112099
 
    cat >>Makefile.objects<<EOF
112100
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
112101
 
        $ac_comp
112102
 
EOF
112103
 
  done
112104
 
 
112105
 
      case $host_alias in
112106
 
        *netware*)
112107
 
          
112108
 
  install_modules="install-modules"
112109
 
 
112110
 
  case $host_alias in
112111
 
    *aix*)
112112
 
      suffix=so
112113
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) $(PHPSQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsqlite.so '$ext_builddir'/phpsqlite.so'
112114
 
      ;;
112115
 
    *netware*)
112116
 
      suffix=nlm
112117
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) -L$(top_builddir)/netware -lphp5lib $(SQLITE_SHARED_LIBADD)'
112118
 
      ;;
112119
 
    *)
112120
 
      suffix=la
112121
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) $(PHPSQLITE_SHARED_LIBADD)'
112122
 
      ;;
112123
 
  esac
112124
 
 
112125
 
  if test "x" = "xyes"; then
112126
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsqlite.$suffix"
112127
 
  else
112128
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsqlite.$suffix"
112129
 
  fi
112130
 
  
112131
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite"
112132
 
 
112133
 
  cat >>Makefile.objects<<EOF
112134
 
\$(phplibdir)/phpsqlite.$suffix: $ext_builddir/phpsqlite.$suffix
112135
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsqlite.$suffix \$(phplibdir)
112136
 
 
112137
 
$ext_builddir/phpsqlite.$suffix: \$(shared_objects_sqlite) \$(PHPSQLITE_SHARED_DEPENDENCIES)
112138
 
        $link_cmd
112139
 
 
112140
 
EOF
112141
 
 
112142
 
          ;;
112143
 
        *)
112144
 
          
112145
 
  install_modules="install-modules"
112146
 
 
112147
 
  case $host_alias in
112148
 
    *aix*)
112149
 
      suffix=so
112150
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) $(SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sqlite.so '$ext_builddir'/sqlite.so'
112151
 
      ;;
112152
 
    *netware*)
112153
 
      suffix=nlm
112154
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) -L$(top_builddir)/netware -lphp5lib $(ITE_SHARED_LIBADD)'
112155
 
      ;;
112156
 
    *)
112157
 
      suffix=la
112158
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) $(SQLITE_SHARED_LIBADD)'
112159
 
      ;;
112160
 
  esac
112161
 
 
112162
 
  if test "x" = "xyes"; then
112163
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sqlite.$suffix"
112164
 
  else
112165
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/sqlite.$suffix"
112166
 
  fi
112167
 
  
112168
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite"
112169
 
 
112170
 
  cat >>Makefile.objects<<EOF
112171
 
\$(phplibdir)/sqlite.$suffix: $ext_builddir/sqlite.$suffix
112172
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/sqlite.$suffix \$(phplibdir)
112173
 
 
112174
 
$ext_builddir/sqlite.$suffix: \$(shared_objects_sqlite) \$(SQLITE_SHARED_DEPENDENCIES)
112175
 
        $link_cmd
112176
 
 
112177
 
EOF
112178
 
 
112179
 
          ;;
112180
 
      esac
112181
 
      
112182
 
cat >>confdefs.h <<_ACEOF
112183
 
@%:@define COMPILE_DL_SQLITE 1
112184
 
_ACEOF
112185
 
 
112186
 
    fi
112187
 
  fi
112188
 
 
112189
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
112190
 
    PHP_SQLITE_SHARED=no
112191
 
    case "$PHP_SAPI" in
112192
 
      cgi|embed)
112193
 
        
112194
 
  
112195
 
  case ext/sqlite in
112196
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
112197
 
  /*) ac_srcdir=`echo "ext/sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
112198
 
  *) ac_srcdir="$abs_srcdir/ext/sqlite/"; ac_bdir="ext/sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
112199
 
  esac
112200
 
  
112201
 
  
112202
 
 
112203
 
  b_c_pre=$php_c_pre
112204
 
  b_cxx_pre=$php_cxx_pre
112205
 
  b_c_meta=$php_c_meta
112206
 
  b_cxx_meta=$php_cxx_meta
112207
 
  b_c_post=$php_c_post
112208
 
  b_cxx_post=$php_cxx_post
112209
 
  b_lo=$php_lo
112210
 
 
112211
 
 
112212
 
  old_IFS=$IFS
112213
 
  for ac_src in $sqlite_sources; do
112214
 
  
112215
 
      IFS=.
112216
 
      set $ac_src
112217
 
      ac_obj=$1
112218
 
      IFS=$old_IFS
112219
 
      
112220
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
112221
 
 
112222
 
      case $ac_src in
112223
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112224
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112225
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112226
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
112227
 
      esac
112228
 
 
112229
 
    cat >>Makefile.objects<<EOF
112230
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
112231
 
        $ac_comp
112232
 
EOF
112233
 
  done
112234
 
 
112235
 
 
112236
 
        EXT_STATIC="$EXT_STATIC sqlite"
112237
 
        ;;
112238
 
      *)
112239
 
        
112240
 
  
112241
 
  case ext/sqlite in
112242
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
112243
 
  /*) ac_srcdir=`echo "ext/sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
112244
 
  *) ac_srcdir="$abs_srcdir/ext/sqlite/"; ac_bdir="ext/sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
112245
 
  esac
112246
 
  
112247
 
  
112248
 
 
112249
 
  b_c_pre=$php_c_pre
112250
 
  b_cxx_pre=$php_cxx_pre
112251
 
  b_c_meta=$php_c_meta
112252
 
  b_cxx_meta=$php_cxx_meta
112253
 
  b_c_post=$php_c_post
112254
 
  b_cxx_post=$php_cxx_post
112255
 
  b_lo=$php_lo
112256
 
 
112257
 
 
112258
 
  old_IFS=$IFS
112259
 
  for ac_src in $sqlite_sources; do
112260
 
  
112261
 
      IFS=.
112262
 
      set $ac_src
112263
 
      ac_obj=$1
112264
 
      IFS=$old_IFS
112265
 
      
112266
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
112267
 
 
112268
 
      case $ac_src in
112269
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112270
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112271
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
112272
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
112273
 
      esac
112274
 
 
112275
 
    cat >>Makefile.objects<<EOF
112276
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
112277
 
        $ac_comp
112278
 
EOF
112279
 
  done
112280
 
 
112281
 
 
112282
 
        ;;
112283
 
    esac
112284
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite"
112285
 
  fi
112286
 
  
112287
 
  
112288
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
112289
 
  
112290
 
 
112291
 
 
112292
 
  if test "$ext_builddir" = "."; then
112293
 
    PHP_PECL_EXTENSION=sqlite
112294
 
    
112295
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
112296
 
 
112297
 
  fi
112298
 
 
112299
 
  
112300
 
  am_i_shared=$PHP_SQLITE_SHARED
112301
 
  is_it_shared=$PHP_SPL_SHARED
112302
 
  is_it_enabled=$PHP_SPL
112303
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
112304
 
    { { $as_echo "$as_me:$LINENO: error: 
112305
 
You've configured extension sqlite to build statically, but it
112306
 
depends on extension spl, which you've configured to build shared.
112307
 
You either need to build sqlite shared or build spl statically for the
112308
 
build to be successful.
112309
 
" >&5
112310
 
$as_echo "$as_me: error: 
112311
 
You've configured extension sqlite to build statically, but it
112312
 
depends on extension spl, which you've configured to build shared.
112313
 
You either need to build sqlite shared or build spl statically for the
112314
 
build to be successful.
112315
 
" >&2;}
112316
 
   { (exit 1); exit 1; }; }
112317
 
  fi
112318
 
  if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
112319
 
    { { $as_echo "$as_me:$LINENO: error: 
112320
 
You've configured extension sqlite, which depends on extension spl,
112321
 
but you've either not enabled spl, or have disabled it.
112322
 
" >&5
112323
 
$as_echo "$as_me: error: 
112324
 
You've configured extension sqlite, which depends on extension spl,
112325
 
but you've either not enabled spl, or have disabled it.
112326
 
" >&2;}
112327
 
   { (exit 1); exit 1; }; }
112328
 
  fi
112329
 
  
112330
 
  
112331
 
  am_i_shared=$PHP_SQLITE_SHARED
112332
 
  is_it_shared=$PHP_PDO_SHARED
112333
 
  is_it_enabled=$PHP_PDO
112334
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
112335
 
    { { $as_echo "$as_me:$LINENO: error: 
112336
 
You've configured extension sqlite to build statically, but it
112337
 
depends on extension pdo, which you've configured to build shared.
112338
 
You either need to build sqlite shared or build pdo statically for the
112339
 
build to be successful.
112340
 
" >&5
112341
 
$as_echo "$as_me: error: 
112342
 
You've configured extension sqlite to build statically, but it
112343
 
depends on extension pdo, which you've configured to build shared.
112344
 
You either need to build sqlite shared or build pdo statically for the
112345
 
build to be successful.
112346
 
" >&2;}
112347
 
   { (exit 1); exit 1; }; }
112348
 
  fi
112349
 
  if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
112350
 
    { { $as_echo "$as_me:$LINENO: error: 
112351
 
You've configured extension sqlite, which depends on extension pdo,
112352
 
but you've either not enabled pdo, or have disabled it.
112353
 
" >&5
112354
 
$as_echo "$as_me: error: 
112355
 
You've configured extension sqlite, which depends on extension pdo,
112356
 
but you've either not enabled pdo, or have disabled it.
112357
 
" >&2;}
112358
 
   { (exit 1); exit 1; }; }
112359
 
  fi
112360
 
  
112361
 
 
112362
 
  
112363
 
  src=$ext_srcdir/Makefile.frag
112364
 
  ac_srcdir=$ext_srcdir
112365
 
  ac_builddir=$ext_builddir
112366
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
112367
 
 
112368
 
  
112369
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE_SHARED_LIBADD"
112370
 
 
112371
 
  
112372
 
  
112373
 
    for header_file in $ext_builddir/libsqlite/src/sqlite.h; do
112374
 
      
112375
 
  
112376
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
112377
 
  
112378
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
112379
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
112380
 
    eval "INSTALLHEADERS$unique=set"
112381
 
    
112382
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
112383
 
      
112384
 
  fi
112385
 
 
112386
 
    done 
112387
 
  
112388
 
 
112389
 
  
112390
 
  if test "$SQLITE_MODULE_TYPE" = "builtin"; then
112391
 
    
112392
 
  
112393
 
    $php_shtool mkdir -p $ext_builddir/libsqlite/src
112394
 
  
112395
 
 
112396
 
    # The cast to long int works around a bug in the HP C Compiler
112397
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
112398
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
112399
 
# This bug is HP SR number 8606223364.
112400
 
{ $as_echo "$as_me:$LINENO: checking size of char *" >&5
112401
 
$as_echo_n "checking size of char *... " >&6; }
112402
 
if test "${ac_cv_sizeof_char_p+set}" = set; then
112403
 
  $as_echo_n "(cached) " >&6
112404
 
else
112405
 
  if test "$cross_compiling" = yes; then
112406
 
  # Depending upon the size, compute the lo and hi bounds.
112407
 
cat >conftest.$ac_ext <<_ACEOF
112408
 
/* confdefs.h.  */
112409
 
_ACEOF
112410
 
cat confdefs.h >>conftest.$ac_ext
112411
 
cat >>conftest.$ac_ext <<_ACEOF
112412
 
/* end confdefs.h.  */
112413
 
$ac_includes_default
112414
 
int
112415
 
main ()
112416
 
{
112417
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) >= 0)@:>@;
112418
 
test_array @<:@0@:>@ = 0
112419
 
 
112420
 
  ;
112421
 
  return 0;
112422
 
}
112423
 
_ACEOF
112424
 
rm -f conftest.$ac_objext
112425
 
if { (ac_try="$ac_compile"
112426
 
case "(($ac_try" in
112427
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112428
 
  *) ac_try_echo=$ac_try;;
112429
 
esac
112430
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112431
 
$as_echo "$ac_try_echo") >&5
112432
 
  (eval "$ac_compile") 2>conftest.er1
112433
 
  ac_status=$?
112434
 
  grep -v '^ *+' conftest.er1 >conftest.err
112435
 
  rm -f conftest.er1
112436
 
  cat conftest.err >&5
112437
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112438
 
  (exit $ac_status); } && {
112439
 
         test -z "$ac_c_werror_flag" ||
112440
 
         test ! -s conftest.err
112441
 
       } && test -s conftest.$ac_objext; then
112442
 
  ac_lo=0 ac_mid=0
112443
 
  while :; do
112444
 
    cat >conftest.$ac_ext <<_ACEOF
112445
 
/* confdefs.h.  */
112446
 
_ACEOF
112447
 
cat confdefs.h >>conftest.$ac_ext
112448
 
cat >>conftest.$ac_ext <<_ACEOF
112449
 
/* end confdefs.h.  */
112450
 
$ac_includes_default
112451
 
int
112452
 
main ()
112453
 
{
112454
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)@:>@;
112455
 
test_array @<:@0@:>@ = 0
112456
 
 
112457
 
  ;
112458
 
  return 0;
112459
 
}
112460
 
_ACEOF
112461
 
rm -f conftest.$ac_objext
112462
 
if { (ac_try="$ac_compile"
112463
 
case "(($ac_try" in
112464
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112465
 
  *) ac_try_echo=$ac_try;;
112466
 
esac
112467
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112468
 
$as_echo "$ac_try_echo") >&5
112469
 
  (eval "$ac_compile") 2>conftest.er1
112470
 
  ac_status=$?
112471
 
  grep -v '^ *+' conftest.er1 >conftest.err
112472
 
  rm -f conftest.er1
112473
 
  cat conftest.err >&5
112474
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112475
 
  (exit $ac_status); } && {
112476
 
         test -z "$ac_c_werror_flag" ||
112477
 
         test ! -s conftest.err
112478
 
       } && test -s conftest.$ac_objext; then
112479
 
  ac_hi=$ac_mid; break
112480
 
else
112481
 
  $as_echo "$as_me: failed program was:" >&5
112482
 
sed 's/^/| /' conftest.$ac_ext >&5
112483
 
 
112484
 
        ac_lo=`expr $ac_mid + 1`
112485
 
                        if test $ac_lo -le $ac_mid; then
112486
 
                          ac_lo= ac_hi=
112487
 
                          break
112488
 
                        fi
112489
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
112490
 
fi
112491
 
 
112492
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
112493
 
  done
112494
 
else
112495
 
  $as_echo "$as_me: failed program was:" >&5
112496
 
sed 's/^/| /' conftest.$ac_ext >&5
112497
 
 
112498
 
        cat >conftest.$ac_ext <<_ACEOF
112499
 
/* confdefs.h.  */
112500
 
_ACEOF
112501
 
cat confdefs.h >>conftest.$ac_ext
112502
 
cat >>conftest.$ac_ext <<_ACEOF
112503
 
/* end confdefs.h.  */
112504
 
$ac_includes_default
112505
 
int
112506
 
main ()
112507
 
{
112508
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) < 0)@:>@;
112509
 
test_array @<:@0@:>@ = 0
112510
 
 
112511
 
  ;
112512
 
  return 0;
112513
 
}
112514
 
_ACEOF
112515
 
rm -f conftest.$ac_objext
112516
 
if { (ac_try="$ac_compile"
112517
 
case "(($ac_try" in
112518
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112519
 
  *) ac_try_echo=$ac_try;;
112520
 
esac
112521
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112522
 
$as_echo "$ac_try_echo") >&5
112523
 
  (eval "$ac_compile") 2>conftest.er1
112524
 
  ac_status=$?
112525
 
  grep -v '^ *+' conftest.er1 >conftest.err
112526
 
  rm -f conftest.er1
112527
 
  cat conftest.err >&5
112528
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112529
 
  (exit $ac_status); } && {
112530
 
         test -z "$ac_c_werror_flag" ||
112531
 
         test ! -s conftest.err
112532
 
       } && test -s conftest.$ac_objext; then
112533
 
  ac_hi=-1 ac_mid=-1
112534
 
  while :; do
112535
 
    cat >conftest.$ac_ext <<_ACEOF
112536
 
/* confdefs.h.  */
112537
 
_ACEOF
112538
 
cat confdefs.h >>conftest.$ac_ext
112539
 
cat >>conftest.$ac_ext <<_ACEOF
112540
 
/* end confdefs.h.  */
112541
 
$ac_includes_default
112542
 
int
112543
 
main ()
112544
 
{
112545
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)@:>@;
112546
 
test_array @<:@0@:>@ = 0
112547
 
 
112548
 
  ;
112549
 
  return 0;
112550
 
}
112551
 
_ACEOF
112552
 
rm -f conftest.$ac_objext
112553
 
if { (ac_try="$ac_compile"
112554
 
case "(($ac_try" in
112555
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112556
 
  *) ac_try_echo=$ac_try;;
112557
 
esac
112558
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112559
 
$as_echo "$ac_try_echo") >&5
112560
 
  (eval "$ac_compile") 2>conftest.er1
112561
 
  ac_status=$?
112562
 
  grep -v '^ *+' conftest.er1 >conftest.err
112563
 
  rm -f conftest.er1
112564
 
  cat conftest.err >&5
112565
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112566
 
  (exit $ac_status); } && {
112567
 
         test -z "$ac_c_werror_flag" ||
112568
 
         test ! -s conftest.err
112569
 
       } && test -s conftest.$ac_objext; then
112570
 
  ac_lo=$ac_mid; break
112571
 
else
112572
 
  $as_echo "$as_me: failed program was:" >&5
112573
 
sed 's/^/| /' conftest.$ac_ext >&5
112574
 
 
112575
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
112576
 
                        if test $ac_mid -le $ac_hi; then
112577
 
                          ac_lo= ac_hi=
112578
 
                          break
112579
 
                        fi
112580
 
                        ac_mid=`expr 2 '*' $ac_mid`
112581
 
fi
112582
 
 
112583
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
112584
 
  done
112585
 
else
112586
 
  $as_echo "$as_me: failed program was:" >&5
112587
 
sed 's/^/| /' conftest.$ac_ext >&5
112588
 
 
112589
 
        ac_lo= ac_hi=
112590
 
fi
112591
 
 
112592
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
112593
 
fi
112594
 
 
112595
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
112596
 
# Binary search between lo and hi bounds.
112597
 
while test "x$ac_lo" != "x$ac_hi"; do
112598
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
112599
 
  cat >conftest.$ac_ext <<_ACEOF
112600
 
/* confdefs.h.  */
112601
 
_ACEOF
112602
 
cat confdefs.h >>conftest.$ac_ext
112603
 
cat >>conftest.$ac_ext <<_ACEOF
112604
 
/* end confdefs.h.  */
112605
 
$ac_includes_default
112606
 
int
112607
 
main ()
112608
 
{
112609
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)@:>@;
112610
 
test_array @<:@0@:>@ = 0
112611
 
 
112612
 
  ;
112613
 
  return 0;
112614
 
}
112615
 
_ACEOF
112616
 
rm -f conftest.$ac_objext
112617
 
if { (ac_try="$ac_compile"
112618
 
case "(($ac_try" in
112619
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112620
 
  *) ac_try_echo=$ac_try;;
112621
 
esac
112622
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112623
 
$as_echo "$ac_try_echo") >&5
112624
 
  (eval "$ac_compile") 2>conftest.er1
112625
 
  ac_status=$?
112626
 
  grep -v '^ *+' conftest.er1 >conftest.err
112627
 
  rm -f conftest.er1
112628
 
  cat conftest.err >&5
112629
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112630
 
  (exit $ac_status); } && {
112631
 
         test -z "$ac_c_werror_flag" ||
112632
 
         test ! -s conftest.err
112633
 
       } && test -s conftest.$ac_objext; then
112634
 
  ac_hi=$ac_mid
112635
 
else
112636
 
  $as_echo "$as_me: failed program was:" >&5
112637
 
sed 's/^/| /' conftest.$ac_ext >&5
112638
 
 
112639
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
112640
 
fi
112641
 
 
112642
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
112643
 
done
112644
 
case $ac_lo in
112645
 
?*) ac_cv_sizeof_char_p=$ac_lo;;
112646
 
'') if test "$ac_cv_type_char_p" = yes; then
112647
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
112648
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
112649
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
112650
 
See \`config.log' for more details." >&5
112651
 
$as_echo "$as_me: error: cannot compute sizeof (char *)
112652
 
See \`config.log' for more details." >&2;}
112653
 
   { (exit 77); exit 77; }; }; }
112654
 
   else
112655
 
     ac_cv_sizeof_char_p=0
112656
 
   fi ;;
112657
 
esac
112658
 
else
112659
 
  cat >conftest.$ac_ext <<_ACEOF
112660
 
/* confdefs.h.  */
112661
 
_ACEOF
112662
 
cat confdefs.h >>conftest.$ac_ext
112663
 
cat >>conftest.$ac_ext <<_ACEOF
112664
 
/* end confdefs.h.  */
112665
 
$ac_includes_default
112666
 
static long int longval () { return (long int) (sizeof (char *)); }
112667
 
static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
112668
 
@%:@include <stdio.h>
112669
 
@%:@include <stdlib.h>
112670
 
int
112671
 
main ()
112672
 
{
112673
 
 
112674
 
  FILE *f = fopen ("conftest.val", "w");
112675
 
  if (! f)
112676
 
    return 1;
112677
 
  if (((long int) (sizeof (char *))) < 0)
112678
 
    {
112679
 
      long int i = longval ();
112680
 
      if (i != ((long int) (sizeof (char *))))
112681
 
        return 1;
112682
 
      fprintf (f, "%ld", i);
112683
 
    }
112684
 
  else
112685
 
    {
112686
 
      unsigned long int i = ulongval ();
112687
 
      if (i != ((long int) (sizeof (char *))))
112688
 
        return 1;
112689
 
      fprintf (f, "%lu", i);
112690
 
    }
112691
 
  /* Do not output a trailing newline, as this causes \r\n confusion
112692
 
     on some platforms.  */
112693
 
  return ferror (f) || fclose (f) != 0;
112694
 
 
112695
 
  ;
112696
 
  return 0;
112697
 
}
112698
 
_ACEOF
112699
 
rm -f conftest$ac_exeext
112700
 
if { (ac_try="$ac_link"
112701
 
case "(($ac_try" in
112702
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112703
 
  *) ac_try_echo=$ac_try;;
112704
 
esac
112705
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112706
 
$as_echo "$ac_try_echo") >&5
112707
 
  (eval "$ac_link") 2>&5
112708
 
  ac_status=$?
112709
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112710
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
112711
 
  { (case "(($ac_try" in
112712
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112713
 
  *) ac_try_echo=$ac_try;;
112714
 
esac
112715
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112716
 
$as_echo "$ac_try_echo") >&5
112717
 
  (eval "$ac_try") 2>&5
112718
 
  ac_status=$?
112719
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112720
 
  (exit $ac_status); }; }; then
112721
 
  ac_cv_sizeof_char_p=`cat conftest.val`
112722
 
else
112723
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
112724
 
$as_echo "$as_me: failed program was:" >&5
112725
 
sed 's/^/| /' conftest.$ac_ext >&5
112726
 
 
112727
 
( exit $ac_status )
112728
 
if test "$ac_cv_type_char_p" = yes; then
112729
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
112730
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
112731
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
112732
 
See \`config.log' for more details." >&5
112733
 
$as_echo "$as_me: error: cannot compute sizeof (char *)
112734
 
See \`config.log' for more details." >&2;}
112735
 
   { (exit 77); exit 77; }; }; }
112736
 
   else
112737
 
     ac_cv_sizeof_char_p=0
112738
 
   fi
112739
 
fi
112740
 
rm -rf conftest.dSYM
112741
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
112742
 
fi
112743
 
rm -f conftest.val
112744
 
fi
112745
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
112746
 
$as_echo "$ac_cv_sizeof_char_p" >&6; }
112747
 
 
112748
 
 
112749
 
 
112750
 
cat >>confdefs.h <<_ACEOF
112751
 
@%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
112752
 
_ACEOF
112753
 
 
112754
 
 
112755
 
    
112756
 
cat >>confdefs.h <<\_ACEOF
112757
 
@%:@define SQLITE_PTR_SZ SIZEOF_CHAR_P
112758
 
_ACEOF
112759
 
 
112760
 
                if test "$PHP_SQLITE_UTF8" = "yes"; then
112761
 
      SQLITE_ENCODING="UTF8"
112762
 
      
112763
 
cat >>confdefs.h <<\_ACEOF
112764
 
@%:@define SQLITE_UTF8 1
112765
 
_ACEOF
112766
 
 
112767
 
    else
112768
 
      SQLITE_ENCODING="ISO8859"
112769
 
    fi
112770
 
    
112771
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE_ENCODING"
112772
 
 
112773
 
 
112774
 
    SQLITE_VERSION=`cat $ext_srcdir/libsqlite/VERSION`
112775
 
    
112776
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE_VERSION"
112777
 
 
112778
 
 
112779
 
    sed -e s/--VERS--/$SQLITE_VERSION/ -e s/--ENCODING--/$SQLITE_ENCODING/ $ext_srcdir/libsqlite/src/sqlite.h.in > $ext_builddir/libsqlite/src/sqlite.h
112780
 
 
112781
 
    if test "$ext_shared" = "no" || test "$ext_srcdir" != "$abs_srcdir"; then
112782
 
      echo '#include <php_config.h>' > $ext_builddir/libsqlite/src/config.h
112783
 
    else
112784
 
      echo "#include \"$abs_builddir/config.h\"" > $ext_builddir/libsqlite/src/config.h
112785
 
    fi
112786
 
    
112787
 
    cat >> $ext_builddir/libsqlite/src/config.h <<EOF
112788
 
#if ZTS
112789
 
# define THREADSAFE 1
112790
 
#endif
112791
 
#if !ZEND_DEBUG
112792
 
# define NDEBUG
112793
 
#endif
112794
 
EOF
112795
 
  fi
112796
 
  
112797
 
  
112798
 
 
112799
 
for ac_func in usleep nanosleep
112800
 
do
112801
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
112802
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
112803
 
$as_echo_n "checking for $ac_func... " >&6; }
112804
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
112805
 
  $as_echo_n "(cached) " >&6
112806
 
else
112807
 
  cat >conftest.$ac_ext <<_ACEOF
112808
 
/* confdefs.h.  */
112809
 
_ACEOF
112810
 
cat confdefs.h >>conftest.$ac_ext
112811
 
cat >>conftest.$ac_ext <<_ACEOF
112812
 
/* end confdefs.h.  */
112813
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
112814
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
112815
 
#define $ac_func innocuous_$ac_func
112816
 
 
112817
 
/* System header to define __stub macros and hopefully few prototypes,
112818
 
    which can conflict with char $ac_func (); below.
112819
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
112820
 
    <limits.h> exists even on freestanding compilers.  */
112821
 
 
112822
 
#ifdef __STDC__
112823
 
# include <limits.h>
112824
 
#else
112825
 
# include <assert.h>
112826
 
#endif
112827
 
 
112828
 
#undef $ac_func
112829
 
 
112830
 
/* Override any GCC internal prototype to avoid an error.
112831
 
   Use char because int might match the return type of a GCC
112832
 
   builtin and then its argument prototype would still apply.  */
112833
 
#ifdef __cplusplus
112834
 
extern "C"
112835
 
#endif
112836
 
char $ac_func ();
112837
 
/* The GNU C library defines this for functions which it implements
112838
 
    to always fail with ENOSYS.  Some functions are actually named
112839
 
    something starting with __ and the normal name is an alias.  */
112840
 
#if defined __stub_$ac_func || defined __stub___$ac_func
112841
 
choke me
112842
 
#endif
112843
 
 
112844
 
int
112845
 
main ()
112846
 
{
112847
 
return $ac_func ();
112848
 
  ;
112849
 
  return 0;
112850
 
}
112851
 
_ACEOF
112852
 
rm -f conftest.$ac_objext conftest$ac_exeext
112853
 
if { (ac_try="$ac_link"
112854
 
case "(($ac_try" in
112855
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112856
 
  *) ac_try_echo=$ac_try;;
112857
 
esac
112858
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112859
 
$as_echo "$ac_try_echo") >&5
112860
 
  (eval "$ac_link") 2>conftest.er1
112861
 
  ac_status=$?
112862
 
  grep -v '^ *+' conftest.er1 >conftest.err
112863
 
  rm -f conftest.er1
112864
 
  cat conftest.err >&5
112865
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112866
 
  (exit $ac_status); } && {
112867
 
         test -z "$ac_c_werror_flag" ||
112868
 
         test ! -s conftest.err
112869
 
       } && test -s conftest$ac_exeext && {
112870
 
         test "$cross_compiling" = yes ||
112871
 
         $as_test_x conftest$ac_exeext
112872
 
       }; then
112873
 
  eval "$as_ac_var=yes"
112874
 
else
112875
 
  $as_echo "$as_me: failed program was:" >&5
112876
 
sed 's/^/| /' conftest.$ac_ext >&5
112877
 
 
112878
 
        eval "$as_ac_var=no"
112879
 
fi
112880
 
 
112881
 
rm -rf conftest.dSYM
112882
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
112883
 
      conftest$ac_exeext conftest.$ac_ext
112884
 
fi
112885
 
ac_res=`eval 'as_val=${'$as_ac_var'}
112886
 
                 $as_echo "$as_val"'`
112887
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
112888
 
$as_echo "$ac_res" >&6; }
112889
 
as_val=`eval 'as_val=${'$as_ac_var'}
112890
 
                 $as_echo "$as_val"'`
112891
 
   if test "x$as_val" = x""yes; then
112892
 
  cat >>confdefs.h <<_ACEOF
112893
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
112894
 
_ACEOF
112895
 
 
112896
 
fi
112897
 
done
112898
 
 
112899
 
  
112900
 
for ac_header in time.h
112901
 
do
112902
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
112903
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
112904
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
112905
 
$as_echo_n "checking for $ac_header... " >&6; }
112906
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
112907
 
  $as_echo_n "(cached) " >&6
112908
 
fi
112909
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
112910
 
                 $as_echo "$as_val"'`
112911
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
112912
 
$as_echo "$ac_res" >&6; }
112913
 
else
112914
 
  # Is the header compilable?
112915
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
112916
 
$as_echo_n "checking $ac_header usability... " >&6; }
112917
 
cat >conftest.$ac_ext <<_ACEOF
112918
 
/* confdefs.h.  */
112919
 
_ACEOF
112920
 
cat confdefs.h >>conftest.$ac_ext
112921
 
cat >>conftest.$ac_ext <<_ACEOF
112922
 
/* end confdefs.h.  */
112923
 
$ac_includes_default
112924
 
@%:@include <$ac_header>
112925
 
_ACEOF
112926
 
rm -f conftest.$ac_objext
112927
 
if { (ac_try="$ac_compile"
112928
 
case "(($ac_try" in
112929
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112930
 
  *) ac_try_echo=$ac_try;;
112931
 
esac
112932
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112933
 
$as_echo "$ac_try_echo") >&5
112934
 
  (eval "$ac_compile") 2>conftest.er1
112935
 
  ac_status=$?
112936
 
  grep -v '^ *+' conftest.er1 >conftest.err
112937
 
  rm -f conftest.er1
112938
 
  cat conftest.err >&5
112939
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112940
 
  (exit $ac_status); } && {
112941
 
         test -z "$ac_c_werror_flag" ||
112942
 
         test ! -s conftest.err
112943
 
       } && test -s conftest.$ac_objext; then
112944
 
  ac_header_compiler=yes
112945
 
else
112946
 
  $as_echo "$as_me: failed program was:" >&5
112947
 
sed 's/^/| /' conftest.$ac_ext >&5
112948
 
 
112949
 
        ac_header_compiler=no
112950
 
fi
112951
 
 
112952
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
112953
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
112954
 
$as_echo "$ac_header_compiler" >&6; }
112955
 
 
112956
 
# Is the header present?
112957
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
112958
 
$as_echo_n "checking $ac_header presence... " >&6; }
112959
 
cat >conftest.$ac_ext <<_ACEOF
112960
 
/* confdefs.h.  */
112961
 
_ACEOF
112962
 
cat confdefs.h >>conftest.$ac_ext
112963
 
cat >>conftest.$ac_ext <<_ACEOF
112964
 
/* end confdefs.h.  */
112965
 
@%:@include <$ac_header>
112966
 
_ACEOF
112967
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
112968
 
case "(($ac_try" in
112969
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
112970
 
  *) ac_try_echo=$ac_try;;
112971
 
esac
112972
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
112973
 
$as_echo "$ac_try_echo") >&5
112974
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
112975
 
  ac_status=$?
112976
 
  grep -v '^ *+' conftest.er1 >conftest.err
112977
 
  rm -f conftest.er1
112978
 
  cat conftest.err >&5
112979
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
112980
 
  (exit $ac_status); } >/dev/null && {
112981
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
112982
 
         test ! -s conftest.err
112983
 
       }; then
112984
 
  ac_header_preproc=yes
112985
 
else
112986
 
  $as_echo "$as_me: failed program was:" >&5
112987
 
sed 's/^/| /' conftest.$ac_ext >&5
112988
 
 
112989
 
  ac_header_preproc=no
112990
 
fi
112991
 
 
112992
 
rm -f conftest.err conftest.$ac_ext
112993
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
112994
 
$as_echo "$ac_header_preproc" >&6; }
112995
 
 
112996
 
# So?  What about this header?
112997
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
112998
 
  yes:no: )
112999
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
113000
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
113001
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
113002
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
113003
 
    ac_header_preproc=yes
113004
 
    ;;
113005
 
  no:yes:* )
113006
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
113007
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
113008
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
113009
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
113010
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
113011
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
113012
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
113013
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
113014
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
113015
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
113016
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
113017
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
113018
 
    
113019
 
    ;;
113020
 
esac
113021
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
113022
 
$as_echo_n "checking for $ac_header... " >&6; }
113023
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
113024
 
  $as_echo_n "(cached) " >&6
113025
 
else
113026
 
  eval "$as_ac_Header=\$ac_header_preproc"
113027
 
fi
113028
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
113029
 
                 $as_echo "$as_val"'`
113030
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
113031
 
$as_echo "$ac_res" >&6; }
113032
 
 
113033
 
fi
113034
 
as_val=`eval 'as_val=${'$as_ac_Header'}
113035
 
                 $as_echo "$as_val"'`
113036
 
   if test "x$as_val" = x""yes; then
113037
 
  cat >>confdefs.h <<_ACEOF
113038
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
113039
 
_ACEOF
113040
 
 
113041
 
fi
113042
 
 
113043
 
done
113044
 
 
113045
 
fi
113046
 
 
113047
 
 
113048
 
{ $as_echo "$as_me:$LINENO: checking whether flush should be called explicitly after a buffered io" >&5
113049
 
$as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; }
113050
 
if test "${ac_cv_flush_io+set}" = set; then
113051
 
  $as_echo_n "(cached) " >&6
113052
 
else
113053
 
  
113054
 
if test "$cross_compiling" = yes; then
113055
 
  
113056
 
  ac_cv_flush_io=no
113057
 
 
113058
 
else
113059
 
  cat >conftest.$ac_ext <<_ACEOF
113060
 
/* confdefs.h.  */
113061
 
_ACEOF
113062
 
cat confdefs.h >>conftest.$ac_ext
113063
 
cat >>conftest.$ac_ext <<_ACEOF
113064
 
/* end confdefs.h.  */
113065
 
 
113066
 
#include <stdio.h>
113067
 
#include <stdlib.h>
113068
 
 
113069
 
int main(int argc, char **argv)
113070
 
{
113071
 
        char *filename = tmpnam(NULL);
113072
 
        char buffer[64];
113073
 
        int result = 0;
113074
 
        
113075
 
        FILE *fp = fopen(filename, "wb");
113076
 
        if (NULL == fp)
113077
 
                return 0;
113078
 
        fputs("line 1\n", fp);
113079
 
        fputs("line 2\n", fp);
113080
 
        fclose(fp);
113081
 
        
113082
 
        fp = fopen(filename, "rb+");
113083
 
        if (NULL == fp)
113084
 
                return 0;
113085
 
        fgets(buffer, sizeof(buffer), fp);
113086
 
        fputs("line 3\n", fp);
113087
 
        rewind(fp);
113088
 
        fgets(buffer, sizeof(buffer), fp);
113089
 
        if (0 != strcmp(buffer, "line 1\n"))
113090
 
                result = 1;
113091
 
        fgets(buffer, sizeof(buffer), fp);
113092
 
        if (0 != strcmp(buffer, "line 3\n"))
113093
 
                result = 1;
113094
 
        fclose(fp);
113095
 
        unlink(filename);
113096
 
 
113097
 
        exit(result);
113098
 
}
113099
 
 
113100
 
_ACEOF
113101
 
rm -f conftest$ac_exeext
113102
 
if { (ac_try="$ac_link"
113103
 
case "(($ac_try" in
113104
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113105
 
  *) ac_try_echo=$ac_try;;
113106
 
esac
113107
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113108
 
$as_echo "$ac_try_echo") >&5
113109
 
  (eval "$ac_link") 2>&5
113110
 
  ac_status=$?
113111
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113112
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
113113
 
  { (case "(($ac_try" in
113114
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113115
 
  *) ac_try_echo=$ac_try;;
113116
 
esac
113117
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113118
 
$as_echo "$ac_try_echo") >&5
113119
 
  (eval "$ac_try") 2>&5
113120
 
  ac_status=$?
113121
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113122
 
  (exit $ac_status); }; }; then
113123
 
  
113124
 
  ac_cv_flush_io=no
113125
 
 
113126
 
else
113127
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
113128
 
$as_echo "$as_me: failed program was:" >&5
113129
 
sed 's/^/| /' conftest.$ac_ext >&5
113130
 
 
113131
 
( exit $ac_status )
113132
 
 
113133
 
  ac_cv_flush_io=yes
113134
 
 
113135
 
fi
113136
 
rm -rf conftest.dSYM
113137
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
113138
 
fi
113139
 
 
113140
 
 
113141
 
fi
113142
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_flush_io" >&5
113143
 
$as_echo "$ac_cv_flush_io" >&6; }
113144
 
if test "$ac_cv_flush_io" = "yes"; then
113145
 
  
113146
 
cat >>confdefs.h <<\_ACEOF
113147
 
@%:@define HAVE_FLUSHIO 1
113148
 
_ACEOF
113149
 
 
113150
 
fi
113151
 
 
113152
 
if test "$ac_cv_func_crypt" = "no"; then
113153
 
  { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
113154
 
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
113155
 
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
113156
 
  $as_echo_n "(cached) " >&6
113157
 
else
113158
 
  ac_check_lib_save_LIBS=$LIBS
113159
 
LIBS="-lcrypt  $LIBS"
113160
 
cat >conftest.$ac_ext <<_ACEOF
113161
 
/* confdefs.h.  */
113162
 
_ACEOF
113163
 
cat confdefs.h >>conftest.$ac_ext
113164
 
cat >>conftest.$ac_ext <<_ACEOF
113165
 
/* end confdefs.h.  */
113166
 
 
113167
 
/* Override any GCC internal prototype to avoid an error.
113168
 
   Use char because int might match the return type of a GCC
113169
 
   builtin and then its argument prototype would still apply.  */
113170
 
#ifdef __cplusplus
113171
 
extern "C"
113172
 
#endif
113173
 
char crypt ();
113174
 
int
113175
 
main ()
113176
 
{
113177
 
return crypt ();
113178
 
  ;
113179
 
  return 0;
113180
 
}
113181
 
_ACEOF
113182
 
rm -f conftest.$ac_objext conftest$ac_exeext
113183
 
if { (ac_try="$ac_link"
113184
 
case "(($ac_try" in
113185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113186
 
  *) ac_try_echo=$ac_try;;
113187
 
esac
113188
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113189
 
$as_echo "$ac_try_echo") >&5
113190
 
  (eval "$ac_link") 2>conftest.er1
113191
 
  ac_status=$?
113192
 
  grep -v '^ *+' conftest.er1 >conftest.err
113193
 
  rm -f conftest.er1
113194
 
  cat conftest.err >&5
113195
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113196
 
  (exit $ac_status); } && {
113197
 
         test -z "$ac_c_werror_flag" ||
113198
 
         test ! -s conftest.err
113199
 
       } && test -s conftest$ac_exeext && {
113200
 
         test "$cross_compiling" = yes ||
113201
 
         $as_test_x conftest$ac_exeext
113202
 
       }; then
113203
 
  ac_cv_lib_crypt_crypt=yes
113204
 
else
113205
 
  $as_echo "$as_me: failed program was:" >&5
113206
 
sed 's/^/| /' conftest.$ac_ext >&5
113207
 
 
113208
 
        ac_cv_lib_crypt_crypt=no
113209
 
fi
113210
 
 
113211
 
rm -rf conftest.dSYM
113212
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
113213
 
      conftest$ac_exeext conftest.$ac_ext
113214
 
LIBS=$ac_check_lib_save_LIBS
113215
 
fi
113216
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
113217
 
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
113218
 
if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
113219
 
  
113220
 
    LIBS="-lcrypt $LIBS -lcrypt"
113221
 
    
113222
 
cat >>confdefs.h <<\_ACEOF
113223
 
@%:@define HAVE_CRYPT 1
113224
 
_ACEOF
113225
 
 
113226
 
  
113227
 
fi
113228
 
 
113229
 
fi
113230
 
  
113231
 
{ $as_echo "$as_me:$LINENO: checking for standard DES crypt" >&5
113232
 
$as_echo_n "checking for standard DES crypt... " >&6; }
113233
 
if test "${ac_cv_crypt_des+set}" = set; then
113234
 
  $as_echo_n "(cached) " >&6
113235
 
else
113236
 
  
113237
 
  if test "$cross_compiling" = yes; then
113238
 
  
113239
 
  ac_cv_crypt_des=yes
113240
 
 
113241
 
else
113242
 
  cat >conftest.$ac_ext <<_ACEOF
113243
 
/* confdefs.h.  */
113244
 
_ACEOF
113245
 
cat confdefs.h >>conftest.$ac_ext
113246
 
cat >>conftest.$ac_ext <<_ACEOF
113247
 
/* end confdefs.h.  */
113248
 
 
113249
 
#if HAVE_UNISTD_H
113250
 
#include <unistd.h>
113251
 
#endif
113252
 
 
113253
 
#if HAVE_CRYPT_H
113254
 
#include <crypt.h>
113255
 
#endif
113256
 
 
113257
 
main() {
113258
 
#if HAVE_CRYPT
113259
 
    exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M"));
113260
 
#else
113261
 
        exit(0);
113262
 
#endif
113263
 
}
113264
 
_ACEOF
113265
 
rm -f conftest$ac_exeext
113266
 
if { (ac_try="$ac_link"
113267
 
case "(($ac_try" in
113268
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113269
 
  *) ac_try_echo=$ac_try;;
113270
 
esac
113271
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113272
 
$as_echo "$ac_try_echo") >&5
113273
 
  (eval "$ac_link") 2>&5
113274
 
  ac_status=$?
113275
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113276
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
113277
 
  { (case "(($ac_try" in
113278
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113279
 
  *) ac_try_echo=$ac_try;;
113280
 
esac
113281
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113282
 
$as_echo "$ac_try_echo") >&5
113283
 
  (eval "$ac_try") 2>&5
113284
 
  ac_status=$?
113285
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113286
 
  (exit $ac_status); }; }; then
113287
 
  
113288
 
  ac_cv_crypt_des=yes
113289
 
 
113290
 
else
113291
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
113292
 
$as_echo "$as_me: failed program was:" >&5
113293
 
sed 's/^/| /' conftest.$ac_ext >&5
113294
 
 
113295
 
( exit $ac_status )
113296
 
 
113297
 
  ac_cv_crypt_des=no
113298
 
 
113299
 
fi
113300
 
rm -rf conftest.dSYM
113301
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
113302
 
fi
113303
 
 
113304
 
 
113305
 
fi
113306
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_crypt_des" >&5
113307
 
$as_echo "$ac_cv_crypt_des" >&6; }
113308
 
 
113309
 
{ $as_echo "$as_me:$LINENO: checking for extended DES crypt" >&5
113310
 
$as_echo_n "checking for extended DES crypt... " >&6; }
113311
 
if test "${ac_cv_crypt_ext_des+set}" = set; then
113312
 
  $as_echo_n "(cached) " >&6
113313
 
else
113314
 
  
113315
 
  if test "$cross_compiling" = yes; then
113316
 
  
113317
 
  ac_cv_crypt_ext_des=no
113318
 
 
113319
 
else
113320
 
  cat >conftest.$ac_ext <<_ACEOF
113321
 
/* confdefs.h.  */
113322
 
_ACEOF
113323
 
cat confdefs.h >>conftest.$ac_ext
113324
 
cat >>conftest.$ac_ext <<_ACEOF
113325
 
/* end confdefs.h.  */
113326
 
 
113327
 
#if HAVE_UNISTD_H
113328
 
#include <unistd.h>
113329
 
#endif
113330
 
 
113331
 
#if HAVE_CRYPT_H
113332
 
#include <crypt.h>
113333
 
#endif
113334
 
 
113335
 
main() {
113336
 
#if HAVE_CRYPT
113337
 
  exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc"));
113338
 
#else
113339
 
  exit(0);
113340
 
#endif
113341
 
}
113342
 
_ACEOF
113343
 
rm -f conftest$ac_exeext
113344
 
if { (ac_try="$ac_link"
113345
 
case "(($ac_try" in
113346
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113347
 
  *) ac_try_echo=$ac_try;;
113348
 
esac
113349
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113350
 
$as_echo "$ac_try_echo") >&5
113351
 
  (eval "$ac_link") 2>&5
113352
 
  ac_status=$?
113353
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113354
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
113355
 
  { (case "(($ac_try" in
113356
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113357
 
  *) ac_try_echo=$ac_try;;
113358
 
esac
113359
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113360
 
$as_echo "$ac_try_echo") >&5
113361
 
  (eval "$ac_try") 2>&5
113362
 
  ac_status=$?
113363
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113364
 
  (exit $ac_status); }; }; then
113365
 
  
113366
 
  ac_cv_crypt_ext_des=yes
113367
 
 
113368
 
else
113369
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
113370
 
$as_echo "$as_me: failed program was:" >&5
113371
 
sed 's/^/| /' conftest.$ac_ext >&5
113372
 
 
113373
 
( exit $ac_status )
113374
 
 
113375
 
  ac_cv_crypt_ext_des=no
113376
 
 
113377
 
fi
113378
 
rm -rf conftest.dSYM
113379
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
113380
 
fi
113381
 
 
113382
 
 
113383
 
fi
113384
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_crypt_ext_des" >&5
113385
 
$as_echo "$ac_cv_crypt_ext_des" >&6; }
113386
 
 
113387
 
{ $as_echo "$as_me:$LINENO: checking for MD5 crypt" >&5
113388
 
$as_echo_n "checking for MD5 crypt... " >&6; }
113389
 
if test "${ac_cv_crypt_md5+set}" = set; then
113390
 
  $as_echo_n "(cached) " >&6
113391
 
else
113392
 
  
113393
 
if test "$cross_compiling" = yes; then
113394
 
  
113395
 
  ac_cv_crypt_md5=no
113396
 
 
113397
 
else
113398
 
  cat >conftest.$ac_ext <<_ACEOF
113399
 
/* confdefs.h.  */
113400
 
_ACEOF
113401
 
cat confdefs.h >>conftest.$ac_ext
113402
 
cat >>conftest.$ac_ext <<_ACEOF
113403
 
/* end confdefs.h.  */
113404
 
 
113405
 
#if HAVE_UNISTD_H
113406
 
#include <unistd.h>
113407
 
#endif
113408
 
 
113409
 
#if HAVE_CRYPT_H
113410
 
#include <crypt.h>
113411
 
#endif
113412
 
 
113413
 
main() {
113414
 
#if HAVE_CRYPT
113415
 
    char salt[15], answer[40];
113416
 
 
113417
 
    salt[0]='$'; salt[1]='1'; salt[2]='$'; 
113418
 
    salt[3]='r'; salt[4]='a'; salt[5]='s';
113419
 
    salt[6]='m'; salt[7]='u'; salt[8]='s';
113420
 
    salt[9]='l'; salt[10]='e'; salt[11]='$';
113421
 
    salt[12]='\0';
113422
 
    strcpy(answer,salt);
113423
 
    strcat(answer,"rISCgZzpwk3UhDidwXvin0");
113424
 
    exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
113425
 
#else
113426
 
        exit(0);
113427
 
#endif
113428
 
}
113429
 
_ACEOF
113430
 
rm -f conftest$ac_exeext
113431
 
if { (ac_try="$ac_link"
113432
 
case "(($ac_try" in
113433
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113434
 
  *) ac_try_echo=$ac_try;;
113435
 
esac
113436
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113437
 
$as_echo "$ac_try_echo") >&5
113438
 
  (eval "$ac_link") 2>&5
113439
 
  ac_status=$?
113440
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113441
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
113442
 
  { (case "(($ac_try" in
113443
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113444
 
  *) ac_try_echo=$ac_try;;
113445
 
esac
113446
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113447
 
$as_echo "$ac_try_echo") >&5
113448
 
  (eval "$ac_try") 2>&5
113449
 
  ac_status=$?
113450
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113451
 
  (exit $ac_status); }; }; then
113452
 
  
113453
 
  ac_cv_crypt_md5=yes
113454
 
 
113455
 
else
113456
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
113457
 
$as_echo "$as_me: failed program was:" >&5
113458
 
sed 's/^/| /' conftest.$ac_ext >&5
113459
 
 
113460
 
( exit $ac_status )
113461
 
 
113462
 
  ac_cv_crypt_md5=no
113463
 
 
113464
 
fi
113465
 
rm -rf conftest.dSYM
113466
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
113467
 
fi
113468
 
 
113469
 
 
113470
 
fi
113471
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_crypt_md5" >&5
113472
 
$as_echo "$ac_cv_crypt_md5" >&6; }
113473
 
 
113474
 
{ $as_echo "$as_me:$LINENO: checking for Blowfish crypt" >&5
113475
 
$as_echo_n "checking for Blowfish crypt... " >&6; }
113476
 
if test "${ac_cv_crypt_blowfish+set}" = set; then
113477
 
  $as_echo_n "(cached) " >&6
113478
 
else
113479
 
  
113480
 
if test "$cross_compiling" = yes; then
113481
 
  
113482
 
  ac_cv_crypt_blowfish=no
113483
 
 
113484
 
else
113485
 
  cat >conftest.$ac_ext <<_ACEOF
113486
 
/* confdefs.h.  */
113487
 
_ACEOF
113488
 
cat confdefs.h >>conftest.$ac_ext
113489
 
cat >>conftest.$ac_ext <<_ACEOF
113490
 
/* end confdefs.h.  */
113491
 
 
113492
 
#if HAVE_UNISTD_H
113493
 
#include <unistd.h>
113494
 
#endif
113495
 
 
113496
 
#if HAVE_CRYPT_H
113497
 
#include <crypt.h>
113498
 
#endif
113499
 
 
113500
 
main() {
113501
 
#if HAVE_CRYPT
113502
 
    char salt[30], answer[70];
113503
 
    
113504
 
    salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0';
113505
 
    strcat(salt,"rasmuslerd............");
113506
 
    strcpy(answer,salt);
113507
 
    strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra");
113508
 
    exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
113509
 
#else
113510
 
        exit(0);
113511
 
#endif
113512
 
}
113513
 
_ACEOF
113514
 
rm -f conftest$ac_exeext
113515
 
if { (ac_try="$ac_link"
113516
 
case "(($ac_try" in
113517
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113518
 
  *) ac_try_echo=$ac_try;;
113519
 
esac
113520
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113521
 
$as_echo "$ac_try_echo") >&5
113522
 
  (eval "$ac_link") 2>&5
113523
 
  ac_status=$?
113524
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113525
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
113526
 
  { (case "(($ac_try" in
113527
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113528
 
  *) ac_try_echo=$ac_try;;
113529
 
esac
113530
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113531
 
$as_echo "$ac_try_echo") >&5
113532
 
  (eval "$ac_try") 2>&5
113533
 
  ac_status=$?
113534
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113535
 
  (exit $ac_status); }; }; then
113536
 
  
113537
 
  ac_cv_crypt_blowfish=yes
113538
 
 
113539
 
else
113540
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
113541
 
$as_echo "$as_me: failed program was:" >&5
113542
 
sed 's/^/| /' conftest.$ac_ext >&5
113543
 
 
113544
 
( exit $ac_status )
113545
 
 
113546
 
  ac_cv_crypt_blowfish=no
113547
 
 
113548
 
fi
113549
 
rm -rf conftest.dSYM
113550
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
113551
 
fi
113552
 
 
113553
 
 
113554
 
fi
113555
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_crypt_blowfish" >&5
113556
 
$as_echo "$ac_cv_crypt_blowfish" >&6; }
113557
 
 
113558
 
{ $as_echo "$as_me:$LINENO: checking for SHA512 crypt" >&5
113559
 
$as_echo_n "checking for SHA512 crypt... " >&6; }
113560
 
if test "${ac_cv_crypt_SHA512+set}" = set; then
113561
 
  $as_echo_n "(cached) " >&6
113562
 
else
113563
 
  
113564
 
if test "$cross_compiling" = yes; then
113565
 
  
113566
 
  ac_cv_crypt_SHA512=no
113567
 
 
113568
 
else
113569
 
  cat >conftest.$ac_ext <<_ACEOF
113570
 
/* confdefs.h.  */
113571
 
_ACEOF
113572
 
cat confdefs.h >>conftest.$ac_ext
113573
 
cat >>conftest.$ac_ext <<_ACEOF
113574
 
/* end confdefs.h.  */
113575
 
 
113576
 
#if HAVE_UNISTD_H
113577
 
#include <unistd.h>
113578
 
#endif
113579
 
 
113580
 
#if HAVE_CRYPT_H
113581
 
#include <crypt.h>
113582
 
#endif
113583
 
 
113584
 
main() {
113585
 
#if HAVE_CRYPT
113586
 
    char salt[30], answer[80];
113587
 
    
113588
 
    salt[0]='$'; salt[1]='6'; salt[2]='$'; salt[3]='$'; salt[4]='b'; salt[5]='a'; salt[6]='r'; salt[7]='\0';
113589
 
    strcpy(answer, salt);
113590
 
    strcpy(&answer[29],"$6$$QMXjqd7rHQZPQ1yHsXkQqC1FBzDiVfTHXL.LaeDAeVV.IzMaV9VU4MQ8kPuZa2SOP1A0RPm772EaFYjpEJtdu.");
113591
 
    exit (strcmp((char *)crypt("foo",salt),answer));
113592
 
#else
113593
 
        exit(0);
113594
 
#endif
113595
 
}
113596
 
_ACEOF
113597
 
rm -f conftest$ac_exeext
113598
 
if { (ac_try="$ac_link"
113599
 
case "(($ac_try" in
113600
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113601
 
  *) ac_try_echo=$ac_try;;
113602
 
esac
113603
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113604
 
$as_echo "$ac_try_echo") >&5
113605
 
  (eval "$ac_link") 2>&5
113606
 
  ac_status=$?
113607
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113608
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
113609
 
  { (case "(($ac_try" in
113610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113611
 
  *) ac_try_echo=$ac_try;;
113612
 
esac
113613
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113614
 
$as_echo "$ac_try_echo") >&5
113615
 
  (eval "$ac_try") 2>&5
113616
 
  ac_status=$?
113617
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113618
 
  (exit $ac_status); }; }; then
113619
 
  
113620
 
  ac_cv_crypt_SHA512=yes
113621
 
 
113622
 
else
113623
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
113624
 
$as_echo "$as_me: failed program was:" >&5
113625
 
sed 's/^/| /' conftest.$ac_ext >&5
113626
 
 
113627
 
( exit $ac_status )
113628
 
 
113629
 
  ac_cv_crypt_SHA512=no
113630
 
 
113631
 
fi
113632
 
rm -rf conftest.dSYM
113633
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
113634
 
fi
113635
 
 
113636
 
 
113637
 
fi
113638
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_crypt_SHA512" >&5
113639
 
$as_echo "$ac_cv_crypt_SHA512" >&6; }
113640
 
 
113641
 
{ $as_echo "$as_me:$LINENO: checking for SHA256 crypt" >&5
113642
 
$as_echo_n "checking for SHA256 crypt... " >&6; }
113643
 
if test "${ac_cv_crypt_SHA256+set}" = set; then
113644
 
  $as_echo_n "(cached) " >&6
113645
 
else
113646
 
  
113647
 
if test "$cross_compiling" = yes; then
113648
 
  
113649
 
  ac_cv_crypt_SHA256=no
113650
 
 
113651
 
else
113652
 
  cat >conftest.$ac_ext <<_ACEOF
113653
 
/* confdefs.h.  */
113654
 
_ACEOF
113655
 
cat confdefs.h >>conftest.$ac_ext
113656
 
cat >>conftest.$ac_ext <<_ACEOF
113657
 
/* end confdefs.h.  */
113658
 
 
113659
 
#if HAVE_UNISTD_H
113660
 
#include <unistd.h>
113661
 
#endif
113662
 
 
113663
 
#if HAVE_CRYPT_H
113664
 
#include <crypt.h>
113665
 
#endif
113666
 
 
113667
 
main() {
113668
 
#if HAVE_CRYPT
113669
 
    char salt[30], answer[80];
113670
 
    salt[0]='$'; salt[1]='5'; salt[2]='$'; salt[3]='$'; salt[4]='s'; salt[5]='a'; salt[6]='l'; salt[7]='t';  salt[8]='s'; salt[9]='t'; salt[10]='r'; salt[11]='i'; salt[12]='n'; salt[13]='g'; salt[14]='\0';    
113671
 
    strcat(salt,"");
113672
 
    strcpy(answer, salt);
113673
 
    strcpy(&answer[29], "$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5");
113674
 
    exit (strcmp((char *)crypt("foo",salt),answer));
113675
 
#else
113676
 
        exit(0);
113677
 
#endif
113678
 
}
113679
 
_ACEOF
113680
 
rm -f conftest$ac_exeext
113681
 
if { (ac_try="$ac_link"
113682
 
case "(($ac_try" in
113683
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113684
 
  *) ac_try_echo=$ac_try;;
113685
 
esac
113686
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113687
 
$as_echo "$ac_try_echo") >&5
113688
 
  (eval "$ac_link") 2>&5
113689
 
  ac_status=$?
113690
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113691
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
113692
 
  { (case "(($ac_try" in
113693
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113694
 
  *) ac_try_echo=$ac_try;;
113695
 
esac
113696
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113697
 
$as_echo "$ac_try_echo") >&5
113698
 
  (eval "$ac_try") 2>&5
113699
 
  ac_status=$?
113700
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113701
 
  (exit $ac_status); }; }; then
113702
 
  
113703
 
  ac_cv_crypt_SHA256=yes
113704
 
 
113705
 
else
113706
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
113707
 
$as_echo "$as_me: failed program was:" >&5
113708
 
sed 's/^/| /' conftest.$ac_ext >&5
113709
 
 
113710
 
( exit $ac_status )
113711
 
 
113712
 
  ac_cv_crypt_SHA256=no
113713
 
 
113714
 
fi
113715
 
rm -rf conftest.dSYM
113716
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
113717
 
fi
113718
 
 
113719
 
 
113720
 
fi
113721
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_crypt_SHA256" >&5
113722
 
$as_echo "$ac_cv_crypt_SHA256" >&6; }
113723
 
 
113724
 
 
113725
 
if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "x$php_crypt_r" = "x0"; then
113726
 
 
113727
 
        { $as_echo "$as_me:$LINENO: checking whether the compiler supports __alignof__" >&5
113728
 
$as_echo_n "checking whether the compiler supports __alignof__... " >&6; }
113729
 
if test "${ac_cv_alignof_exists+set}" = set; then
113730
 
  $as_echo_n "(cached) " >&6
113731
 
else
113732
 
  
113733
 
  cat >conftest.$ac_ext <<_ACEOF
113734
 
/* confdefs.h.  */
113735
 
_ACEOF
113736
 
cat confdefs.h >>conftest.$ac_ext
113737
 
cat >>conftest.$ac_ext <<_ACEOF
113738
 
/* end confdefs.h.  */
113739
 
 
113740
 
  
113741
 
int
113742
 
main ()
113743
 
{
113744
 
 
113745
 
    int align = __alignof__(int);
113746
 
  
113747
 
  ;
113748
 
  return 0;
113749
 
}
113750
 
_ACEOF
113751
 
rm -f conftest.$ac_objext
113752
 
if { (ac_try="$ac_compile"
113753
 
case "(($ac_try" in
113754
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113755
 
  *) ac_try_echo=$ac_try;;
113756
 
esac
113757
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113758
 
$as_echo "$ac_try_echo") >&5
113759
 
  (eval "$ac_compile") 2>conftest.er1
113760
 
  ac_status=$?
113761
 
  grep -v '^ *+' conftest.er1 >conftest.err
113762
 
  rm -f conftest.er1
113763
 
  cat conftest.err >&5
113764
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113765
 
  (exit $ac_status); } && {
113766
 
         test -z "$ac_c_werror_flag" ||
113767
 
         test ! -s conftest.err
113768
 
       } && test -s conftest.$ac_objext; then
113769
 
  
113770
 
    ac_cv_alignof_exists=yes
113771
 
  
113772
 
else
113773
 
  $as_echo "$as_me: failed program was:" >&5
113774
 
sed 's/^/| /' conftest.$ac_ext >&5
113775
 
 
113776
 
        
113777
 
    ac_cv_alignof_exists=no
113778
 
  
113779
 
fi
113780
 
 
113781
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
113782
 
fi
113783
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_exists" >&5
113784
 
$as_echo "$ac_cv_alignof_exists" >&6; }
113785
 
  if test "$ac_cv_alignof_exists" = "yes"; then
113786
 
    
113787
 
cat >>confdefs.h <<\_ACEOF
113788
 
@%:@define HAVE_ALIGNOF 1
113789
 
_ACEOF
113790
 
 
113791
 
  fi
113792
 
 
113793
 
        { $as_echo "$as_me:$LINENO: checking whether the compiler supports aligned attribute" >&5
113794
 
$as_echo_n "checking whether the compiler supports aligned attribute... " >&6; }
113795
 
if test "${ac_cv_attribute_aligned+set}" = set; then
113796
 
  $as_echo_n "(cached) " >&6
113797
 
else
113798
 
  
113799
 
  cat >conftest.$ac_ext <<_ACEOF
113800
 
/* confdefs.h.  */
113801
 
_ACEOF
113802
 
cat confdefs.h >>conftest.$ac_ext
113803
 
cat >>conftest.$ac_ext <<_ACEOF
113804
 
/* end confdefs.h.  */
113805
 
 
113806
 
  
113807
 
int
113808
 
main ()
113809
 
{
113810
 
 
113811
 
    unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int))));
113812
 
  
113813
 
  ;
113814
 
  return 0;
113815
 
}
113816
 
_ACEOF
113817
 
rm -f conftest.$ac_objext
113818
 
if { (ac_try="$ac_compile"
113819
 
case "(($ac_try" in
113820
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
113821
 
  *) ac_try_echo=$ac_try;;
113822
 
esac
113823
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
113824
 
$as_echo "$ac_try_echo") >&5
113825
 
  (eval "$ac_compile") 2>conftest.er1
113826
 
  ac_status=$?
113827
 
  grep -v '^ *+' conftest.er1 >conftest.err
113828
 
  rm -f conftest.er1
113829
 
  cat conftest.err >&5
113830
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
113831
 
  (exit $ac_status); } && {
113832
 
         test -z "$ac_c_werror_flag" ||
113833
 
         test ! -s conftest.err
113834
 
       } && test -s conftest.$ac_objext; then
113835
 
  
113836
 
    ac_cv_attribute_aligned=yes
113837
 
  
113838
 
else
113839
 
  $as_echo "$as_me: failed program was:" >&5
113840
 
sed 's/^/| /' conftest.$ac_ext >&5
113841
 
 
113842
 
        
113843
 
    ac_cv_attribute_aligned=no
113844
 
  
113845
 
fi
113846
 
 
113847
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
113848
 
fi
113849
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_attribute_aligned" >&5
113850
 
$as_echo "$ac_cv_attribute_aligned" >&6; }
113851
 
  if test "$ac_cv_attribute_aligned" = "yes"; then
113852
 
    
113853
 
cat >>confdefs.h <<\_ACEOF
113854
 
@%:@define HAVE_ATTRIBUTE_ALIGNED 1
113855
 
_ACEOF
113856
 
 
113857
 
  fi
113858
 
    
113859
 
 
113860
 
  
113861
 
cat >>confdefs.h <<_ACEOF
113862
 
@%:@define PHP_USE_PHP_CRYPT_R 1
113863
 
_ACEOF
113864
 
 
113865
 
  
113866
 
cat >>confdefs.h <<_ACEOF
113867
 
@%:@define PHP_STD_DES_CRYPT 1
113868
 
_ACEOF
113869
 
 
113870
 
  
113871
 
cat >>confdefs.h <<_ACEOF
113872
 
@%:@define PHP_BLOWFISH_CRYPT 1
113873
 
_ACEOF
113874
 
 
113875
 
  
113876
 
cat >>confdefs.h <<_ACEOF
113877
 
@%:@define PHP_EXT_DES_CRYPT 1
113878
 
_ACEOF
113879
 
 
113880
 
  
113881
 
cat >>confdefs.h <<_ACEOF
113882
 
@%:@define PHP_MD5_CRYPT 1
113883
 
_ACEOF
113884
 
 
113885
 
  
113886
 
cat >>confdefs.h <<_ACEOF
113887
 
@%:@define PHP_SHA512_CRYPT 1
113888
 
_ACEOF
113889
 
 
113890
 
  
113891
 
cat >>confdefs.h <<_ACEOF
113892
 
@%:@define PHP_SHA256_CRYPT 1
113893
 
_ACEOF
113894
 
 
113895
 
 
113896
 
  
113897
 
  
113898
 
  case ext/standard in
113899
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
113900
 
  /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
113901
 
  *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
113902
 
  esac
113903
 
  
113904
 
  
113905
 
 
113906
 
  b_c_pre=$php_c_pre
113907
 
  b_cxx_pre=$php_cxx_pre
113908
 
  b_c_meta=$php_c_meta
113909
 
  b_cxx_meta=$php_cxx_meta
113910
 
  b_c_post=$php_c_post
113911
 
  b_cxx_post=$php_cxx_post
113912
 
  b_lo=$php_lo
113913
 
 
113914
 
 
113915
 
  old_IFS=$IFS
113916
 
  for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do
113917
 
  
113918
 
      IFS=.
113919
 
      set $ac_src
113920
 
      ac_obj=$1
113921
 
      IFS=$old_IFS
113922
 
      
113923
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
113924
 
 
113925
 
      case $ac_src in
113926
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
113927
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
113928
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
113929
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
113930
 
      esac
113931
 
 
113932
 
    cat >>Makefile.objects<<EOF
113933
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
113934
 
        $ac_comp
113935
 
EOF
113936
 
  done
113937
 
 
113938
 
 
113939
 
else
113940
 
  if test "$ac_cv_crypt_des" = "yes"; then
113941
 
    ac_result=1
113942
 
    ac_crypt_des=1
113943
 
  else
113944
 
    ac_result=0
113945
 
    ac_crypt_des=0
113946
 
  fi
113947
 
  
113948
 
cat >>confdefs.h <<_ACEOF
113949
 
@%:@define PHP_STD_DES_CRYPT $ac_result
113950
 
_ACEOF
113951
 
 
113952
 
 
113953
 
  if test "$ac_cv_crypt_blowfish" = "yes"; then
113954
 
    ac_result=1
113955
 
    ac_crypt_blowfish=1
113956
 
  else
113957
 
    ac_result=0
113958
 
    ac_crypt_blowfish=0
113959
 
  fi
113960
 
  
113961
 
cat >>confdefs.h <<_ACEOF
113962
 
@%:@define PHP_BLOWFISH_CRYPT $ac_result
113963
 
_ACEOF
113964
 
 
113965
 
 
113966
 
  if test "$ac_cv_crypt_ext_des" = "yes"; then
113967
 
    ac_result=1
113968
 
    ac_crypt_edes=1
113969
 
  else
113970
 
    ac_result=0
113971
 
    ac_crypt_edes=0
113972
 
  fi
113973
 
  
113974
 
cat >>confdefs.h <<_ACEOF
113975
 
@%:@define PHP_EXT_DES_CRYPT $ac_result
113976
 
_ACEOF
113977
 
 
113978
 
 
113979
 
  if test "$ac_cv_crypt_md5" = "yes"; then
113980
 
    ac_result=1
113981
 
    ac_crypt_md5=1
113982
 
  else
113983
 
    ac_result=0
113984
 
    ac_crypt_md5=0
113985
 
  fi
113986
 
  
113987
 
cat >>confdefs.h <<_ACEOF
113988
 
@%:@define PHP_MD5_CRYPT $ac_result
113989
 
_ACEOF
113990
 
  
113991
 
  
113992
 
  if test "$ac_cv_crypt_sha512" = "yes"; then
113993
 
    ac_result=1
113994
 
    ac_crypt_sha512=1
113995
 
  else
113996
 
    ac_result=0
113997
 
    ac_crypt_sha512=0
113998
 
  fi
113999
 
  
114000
 
cat >>confdefs.h <<_ACEOF
114001
 
@%:@define PHP_SHA512_CRYPT $ac_result
114002
 
_ACEOF
114003
 
 
114004
 
 
114005
 
  if test "$ac_cv_crypt_sha256" = "yes"; then
114006
 
    ac_result=1
114007
 
    ac_crypt_sha256=1
114008
 
  else
114009
 
    ac_result=0
114010
 
    ac_crypt_sha256=0
114011
 
  fi
114012
 
  
114013
 
cat >>confdefs.h <<_ACEOF
114014
 
@%:@define PHP_SHA256_CRYPT $ac_result
114015
 
_ACEOF
114016
 
 
114017
 
 
114018
 
  
114019
 
cat >>confdefs.h <<_ACEOF
114020
 
@%:@define PHP_USE_PHP_CRYPT_R 0
114021
 
_ACEOF
114022
 
 
114023
 
fi
114024
 
 
114025
 
 
114026
 
 
114027
 
 
114028
 
 
114029
 
 
114030
 
 
114031
 
 
114032
 
 
114033
 
 
114034
 
 
114035
 
 
114036
 
 
114037
 
 
114038
 
 
114039
 
 
114040
 
for ac_func in getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan mempcpy strpncpy
114041
 
do
114042
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
114043
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
114044
 
$as_echo_n "checking for $ac_func... " >&6; }
114045
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
114046
 
  $as_echo_n "(cached) " >&6
114047
 
else
114048
 
  cat >conftest.$ac_ext <<_ACEOF
114049
 
/* confdefs.h.  */
114050
 
_ACEOF
114051
 
cat confdefs.h >>conftest.$ac_ext
114052
 
cat >>conftest.$ac_ext <<_ACEOF
114053
 
/* end confdefs.h.  */
114054
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
114055
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
114056
 
#define $ac_func innocuous_$ac_func
114057
 
 
114058
 
/* System header to define __stub macros and hopefully few prototypes,
114059
 
    which can conflict with char $ac_func (); below.
114060
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
114061
 
    <limits.h> exists even on freestanding compilers.  */
114062
 
 
114063
 
#ifdef __STDC__
114064
 
# include <limits.h>
114065
 
#else
114066
 
# include <assert.h>
114067
 
#endif
114068
 
 
114069
 
#undef $ac_func
114070
 
 
114071
 
/* Override any GCC internal prototype to avoid an error.
114072
 
   Use char because int might match the return type of a GCC
114073
 
   builtin and then its argument prototype would still apply.  */
114074
 
#ifdef __cplusplus
114075
 
extern "C"
114076
 
#endif
114077
 
char $ac_func ();
114078
 
/* The GNU C library defines this for functions which it implements
114079
 
    to always fail with ENOSYS.  Some functions are actually named
114080
 
    something starting with __ and the normal name is an alias.  */
114081
 
#if defined __stub_$ac_func || defined __stub___$ac_func
114082
 
choke me
114083
 
#endif
114084
 
 
114085
 
int
114086
 
main ()
114087
 
{
114088
 
return $ac_func ();
114089
 
  ;
114090
 
  return 0;
114091
 
}
114092
 
_ACEOF
114093
 
rm -f conftest.$ac_objext conftest$ac_exeext
114094
 
if { (ac_try="$ac_link"
114095
 
case "(($ac_try" in
114096
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114097
 
  *) ac_try_echo=$ac_try;;
114098
 
esac
114099
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114100
 
$as_echo "$ac_try_echo") >&5
114101
 
  (eval "$ac_link") 2>conftest.er1
114102
 
  ac_status=$?
114103
 
  grep -v '^ *+' conftest.er1 >conftest.err
114104
 
  rm -f conftest.er1
114105
 
  cat conftest.err >&5
114106
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114107
 
  (exit $ac_status); } && {
114108
 
         test -z "$ac_c_werror_flag" ||
114109
 
         test ! -s conftest.err
114110
 
       } && test -s conftest$ac_exeext && {
114111
 
         test "$cross_compiling" = yes ||
114112
 
         $as_test_x conftest$ac_exeext
114113
 
       }; then
114114
 
  eval "$as_ac_var=yes"
114115
 
else
114116
 
  $as_echo "$as_me: failed program was:" >&5
114117
 
sed 's/^/| /' conftest.$ac_ext >&5
114118
 
 
114119
 
        eval "$as_ac_var=no"
114120
 
fi
114121
 
 
114122
 
rm -rf conftest.dSYM
114123
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
114124
 
      conftest$ac_exeext conftest.$ac_ext
114125
 
fi
114126
 
ac_res=`eval 'as_val=${'$as_ac_var'}
114127
 
                 $as_echo "$as_val"'`
114128
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
114129
 
$as_echo "$ac_res" >&6; }
114130
 
as_val=`eval 'as_val=${'$as_ac_var'}
114131
 
                 $as_echo "$as_val"'`
114132
 
   if test "x$as_val" = x""yes; then
114133
 
  cat >>confdefs.h <<_ACEOF
114134
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
114135
 
_ACEOF
114136
 
 
114137
 
fi
114138
 
done
114139
 
 
114140
 
{ $as_echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
114141
 
$as_echo_n "checking for working POSIX fnmatch... " >&6; }
114142
 
if test "${ac_cv_func_fnmatch_works+set}" = set; then
114143
 
  $as_echo_n "(cached) " >&6
114144
 
else
114145
 
  # Some versions of Solaris, SCO, and the GNU C Library
114146
 
   # have a broken or incompatible fnmatch.
114147
 
   # So we run a test program.  If we are cross-compiling, take no chance.
114148
 
   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
114149
 
   if test "$cross_compiling" = yes; then
114150
 
  ac_cv_func_fnmatch_works=cross
114151
 
else
114152
 
  cat >conftest.$ac_ext <<_ACEOF
114153
 
/* confdefs.h.  */
114154
 
_ACEOF
114155
 
cat confdefs.h >>conftest.$ac_ext
114156
 
cat >>conftest.$ac_ext <<_ACEOF
114157
 
/* end confdefs.h.  */
114158
 
#include <fnmatch.h>
114159
 
#          define y(a, b, c) (fnmatch (a, b, c) == 0)
114160
 
#          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
114161
 
         
114162
 
int
114163
 
main ()
114164
 
{
114165
 
return
114166
 
           (!(y ("a*", "abc", 0)
114167
 
              && n ("d*/*1", "d/s/1", FNM_PATHNAME)
114168
 
              && y ("a\\\\bc", "abc", 0)
114169
 
              && n ("a\\\\bc", "abc", FNM_NOESCAPE)
114170
 
              && y ("*x", ".x", 0)
114171
 
              && n ("*x", ".x", FNM_PERIOD)
114172
 
              && 1));
114173
 
  ;
114174
 
  return 0;
114175
 
}
114176
 
_ACEOF
114177
 
rm -f conftest$ac_exeext
114178
 
if { (ac_try="$ac_link"
114179
 
case "(($ac_try" in
114180
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114181
 
  *) ac_try_echo=$ac_try;;
114182
 
esac
114183
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114184
 
$as_echo "$ac_try_echo") >&5
114185
 
  (eval "$ac_link") 2>&5
114186
 
  ac_status=$?
114187
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114188
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
114189
 
  { (case "(($ac_try" in
114190
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114191
 
  *) ac_try_echo=$ac_try;;
114192
 
esac
114193
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114194
 
$as_echo "$ac_try_echo") >&5
114195
 
  (eval "$ac_try") 2>&5
114196
 
  ac_status=$?
114197
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114198
 
  (exit $ac_status); }; }; then
114199
 
  ac_cv_func_fnmatch_works=yes
114200
 
else
114201
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
114202
 
$as_echo "$as_me: failed program was:" >&5
114203
 
sed 's/^/| /' conftest.$ac_ext >&5
114204
 
 
114205
 
( exit $ac_status )
114206
 
ac_cv_func_fnmatch_works=no
114207
 
fi
114208
 
rm -rf conftest.dSYM
114209
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
114210
 
fi
114211
 
 
114212
 
 
114213
 
fi
114214
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
114215
 
$as_echo "$ac_cv_func_fnmatch_works" >&6; }
114216
 
if test $ac_cv_func_fnmatch_works = yes; then
114217
 
  
114218
 
cat >>confdefs.h <<\_ACEOF
114219
 
@%:@define HAVE_FNMATCH 1
114220
 
_ACEOF
114221
 
 
114222
 
fi
114223
 
 
114224
 
 
114225
 
        
114226
 
 
114227
 
 
114228
 
 
114229
 
for ac_func in fork CreateProcess
114230
 
do
114231
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
114232
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
114233
 
$as_echo_n "checking for $ac_func... " >&6; }
114234
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
114235
 
  $as_echo_n "(cached) " >&6
114236
 
else
114237
 
  cat >conftest.$ac_ext <<_ACEOF
114238
 
/* confdefs.h.  */
114239
 
_ACEOF
114240
 
cat confdefs.h >>conftest.$ac_ext
114241
 
cat >>conftest.$ac_ext <<_ACEOF
114242
 
/* end confdefs.h.  */
114243
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
114244
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
114245
 
#define $ac_func innocuous_$ac_func
114246
 
 
114247
 
/* System header to define __stub macros and hopefully few prototypes,
114248
 
    which can conflict with char $ac_func (); below.
114249
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
114250
 
    <limits.h> exists even on freestanding compilers.  */
114251
 
 
114252
 
#ifdef __STDC__
114253
 
# include <limits.h>
114254
 
#else
114255
 
# include <assert.h>
114256
 
#endif
114257
 
 
114258
 
#undef $ac_func
114259
 
 
114260
 
/* Override any GCC internal prototype to avoid an error.
114261
 
   Use char because int might match the return type of a GCC
114262
 
   builtin and then its argument prototype would still apply.  */
114263
 
#ifdef __cplusplus
114264
 
extern "C"
114265
 
#endif
114266
 
char $ac_func ();
114267
 
/* The GNU C library defines this for functions which it implements
114268
 
    to always fail with ENOSYS.  Some functions are actually named
114269
 
    something starting with __ and the normal name is an alias.  */
114270
 
#if defined __stub_$ac_func || defined __stub___$ac_func
114271
 
choke me
114272
 
#endif
114273
 
 
114274
 
int
114275
 
main ()
114276
 
{
114277
 
return $ac_func ();
114278
 
  ;
114279
 
  return 0;
114280
 
}
114281
 
_ACEOF
114282
 
rm -f conftest.$ac_objext conftest$ac_exeext
114283
 
if { (ac_try="$ac_link"
114284
 
case "(($ac_try" in
114285
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114286
 
  *) ac_try_echo=$ac_try;;
114287
 
esac
114288
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114289
 
$as_echo "$ac_try_echo") >&5
114290
 
  (eval "$ac_link") 2>conftest.er1
114291
 
  ac_status=$?
114292
 
  grep -v '^ *+' conftest.er1 >conftest.err
114293
 
  rm -f conftest.er1
114294
 
  cat conftest.err >&5
114295
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114296
 
  (exit $ac_status); } && {
114297
 
         test -z "$ac_c_werror_flag" ||
114298
 
         test ! -s conftest.err
114299
 
       } && test -s conftest$ac_exeext && {
114300
 
         test "$cross_compiling" = yes ||
114301
 
         $as_test_x conftest$ac_exeext
114302
 
       }; then
114303
 
  eval "$as_ac_var=yes"
114304
 
else
114305
 
  $as_echo "$as_me: failed program was:" >&5
114306
 
sed 's/^/| /' conftest.$ac_ext >&5
114307
 
 
114308
 
        eval "$as_ac_var=no"
114309
 
fi
114310
 
 
114311
 
rm -rf conftest.dSYM
114312
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
114313
 
      conftest$ac_exeext conftest.$ac_ext
114314
 
fi
114315
 
ac_res=`eval 'as_val=${'$as_ac_var'}
114316
 
                 $as_echo "$as_val"'`
114317
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
114318
 
$as_echo "$ac_res" >&6; }
114319
 
as_val=`eval 'as_val=${'$as_ac_var'}
114320
 
                 $as_echo "$as_val"'`
114321
 
   if test "x$as_val" = x""yes; then
114322
 
  cat >>confdefs.h <<_ACEOF
114323
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
114324
 
_ACEOF
114325
 
 
114326
 
  php_can_support_proc_open=yes
114327
 
  break
114328
 
 
114329
 
else
114330
 
  
114331
 
  php_can_support_proc_open=no
114332
 
 
114333
 
fi
114334
 
done
114335
 
 
114336
 
{ $as_echo "$as_me:$LINENO: checking if your OS can spawn processes with inherited handles" >&5
114337
 
$as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; }
114338
 
if test "$php_can_support_proc_open" = "yes"; then
114339
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
114340
 
$as_echo "yes" >&6; }
114341
 
  
114342
 
cat >>confdefs.h <<\_ACEOF
114343
 
@%:@define PHP_CAN_SUPPORT_PROC_OPEN 1
114344
 
_ACEOF
114345
 
 
114346
 
else
114347
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
114348
 
$as_echo "no" >&6; }
114349
 
fi
114350
 
 
114351
 
if test "$PHP_SAPI" = "cgi" || test "$PHP_SAPI" = "cli" || test "$PHP_SAPI" = "embed"; then
114352
 
  
114353
 
cat >>confdefs.h <<\_ACEOF
114354
 
@%:@define ENABLE_CHROOT_FUNC 1
114355
 
_ACEOF
114356
 
 
114357
 
fi
114358
 
 
114359
 
 
114360
 
  unset ac_cv_func_res_nsearch
114361
 
  unset ac_cv_func___res_nsearch
114362
 
  unset found
114363
 
  
114364
 
  { $as_echo "$as_me:$LINENO: checking for res_nsearch" >&5
114365
 
$as_echo_n "checking for res_nsearch... " >&6; }
114366
 
if test "${ac_cv_func_res_nsearch+set}" = set; then
114367
 
  $as_echo_n "(cached) " >&6
114368
 
else
114369
 
  cat >conftest.$ac_ext <<_ACEOF
114370
 
/* confdefs.h.  */
114371
 
_ACEOF
114372
 
cat confdefs.h >>conftest.$ac_ext
114373
 
cat >>conftest.$ac_ext <<_ACEOF
114374
 
/* end confdefs.h.  */
114375
 
/* Define res_nsearch to an innocuous variant, in case <limits.h> declares res_nsearch.
114376
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
114377
 
#define res_nsearch innocuous_res_nsearch
114378
 
 
114379
 
/* System header to define __stub macros and hopefully few prototypes,
114380
 
    which can conflict with char res_nsearch (); below.
114381
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
114382
 
    <limits.h> exists even on freestanding compilers.  */
114383
 
 
114384
 
#ifdef __STDC__
114385
 
# include <limits.h>
114386
 
#else
114387
 
# include <assert.h>
114388
 
#endif
114389
 
 
114390
 
#undef res_nsearch
114391
 
 
114392
 
/* Override any GCC internal prototype to avoid an error.
114393
 
   Use char because int might match the return type of a GCC
114394
 
   builtin and then its argument prototype would still apply.  */
114395
 
#ifdef __cplusplus
114396
 
extern "C"
114397
 
#endif
114398
 
char res_nsearch ();
114399
 
/* The GNU C library defines this for functions which it implements
114400
 
    to always fail with ENOSYS.  Some functions are actually named
114401
 
    something starting with __ and the normal name is an alias.  */
114402
 
#if defined __stub_res_nsearch || defined __stub___res_nsearch
114403
 
choke me
114404
 
#endif
114405
 
 
114406
 
int
114407
 
main ()
114408
 
{
114409
 
return res_nsearch ();
114410
 
  ;
114411
 
  return 0;
114412
 
}
114413
 
_ACEOF
114414
 
rm -f conftest.$ac_objext conftest$ac_exeext
114415
 
if { (ac_try="$ac_link"
114416
 
case "(($ac_try" in
114417
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114418
 
  *) ac_try_echo=$ac_try;;
114419
 
esac
114420
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114421
 
$as_echo "$ac_try_echo") >&5
114422
 
  (eval "$ac_link") 2>conftest.er1
114423
 
  ac_status=$?
114424
 
  grep -v '^ *+' conftest.er1 >conftest.err
114425
 
  rm -f conftest.er1
114426
 
  cat conftest.err >&5
114427
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114428
 
  (exit $ac_status); } && {
114429
 
         test -z "$ac_c_werror_flag" ||
114430
 
         test ! -s conftest.err
114431
 
       } && test -s conftest$ac_exeext && {
114432
 
         test "$cross_compiling" = yes ||
114433
 
         $as_test_x conftest$ac_exeext
114434
 
       }; then
114435
 
  ac_cv_func_res_nsearch=yes
114436
 
else
114437
 
  $as_echo "$as_me: failed program was:" >&5
114438
 
sed 's/^/| /' conftest.$ac_ext >&5
114439
 
 
114440
 
        ac_cv_func_res_nsearch=no
114441
 
fi
114442
 
 
114443
 
rm -rf conftest.dSYM
114444
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
114445
 
      conftest$ac_exeext conftest.$ac_ext
114446
 
fi
114447
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_nsearch" >&5
114448
 
$as_echo "$ac_cv_func_res_nsearch" >&6; }
114449
 
if test "x$ac_cv_func_res_nsearch" = x""yes; then
114450
 
  found=yes
114451
 
else
114452
 
   { $as_echo "$as_me:$LINENO: checking for __res_nsearch" >&5
114453
 
$as_echo_n "checking for __res_nsearch... " >&6; }
114454
 
if test "${ac_cv_func___res_nsearch+set}" = set; then
114455
 
  $as_echo_n "(cached) " >&6
114456
 
else
114457
 
  cat >conftest.$ac_ext <<_ACEOF
114458
 
/* confdefs.h.  */
114459
 
_ACEOF
114460
 
cat confdefs.h >>conftest.$ac_ext
114461
 
cat >>conftest.$ac_ext <<_ACEOF
114462
 
/* end confdefs.h.  */
114463
 
/* Define __res_nsearch to an innocuous variant, in case <limits.h> declares __res_nsearch.
114464
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
114465
 
#define __res_nsearch innocuous___res_nsearch
114466
 
 
114467
 
/* System header to define __stub macros and hopefully few prototypes,
114468
 
    which can conflict with char __res_nsearch (); below.
114469
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
114470
 
    <limits.h> exists even on freestanding compilers.  */
114471
 
 
114472
 
#ifdef __STDC__
114473
 
# include <limits.h>
114474
 
#else
114475
 
# include <assert.h>
114476
 
#endif
114477
 
 
114478
 
#undef __res_nsearch
114479
 
 
114480
 
/* Override any GCC internal prototype to avoid an error.
114481
 
   Use char because int might match the return type of a GCC
114482
 
   builtin and then its argument prototype would still apply.  */
114483
 
#ifdef __cplusplus
114484
 
extern "C"
114485
 
#endif
114486
 
char __res_nsearch ();
114487
 
/* The GNU C library defines this for functions which it implements
114488
 
    to always fail with ENOSYS.  Some functions are actually named
114489
 
    something starting with __ and the normal name is an alias.  */
114490
 
#if defined __stub___res_nsearch || defined __stub_____res_nsearch
114491
 
choke me
114492
 
#endif
114493
 
 
114494
 
int
114495
 
main ()
114496
 
{
114497
 
return __res_nsearch ();
114498
 
  ;
114499
 
  return 0;
114500
 
}
114501
 
_ACEOF
114502
 
rm -f conftest.$ac_objext conftest$ac_exeext
114503
 
if { (ac_try="$ac_link"
114504
 
case "(($ac_try" in
114505
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114506
 
  *) ac_try_echo=$ac_try;;
114507
 
esac
114508
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114509
 
$as_echo "$ac_try_echo") >&5
114510
 
  (eval "$ac_link") 2>conftest.er1
114511
 
  ac_status=$?
114512
 
  grep -v '^ *+' conftest.er1 >conftest.err
114513
 
  rm -f conftest.er1
114514
 
  cat conftest.err >&5
114515
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114516
 
  (exit $ac_status); } && {
114517
 
         test -z "$ac_c_werror_flag" ||
114518
 
         test ! -s conftest.err
114519
 
       } && test -s conftest$ac_exeext && {
114520
 
         test "$cross_compiling" = yes ||
114521
 
         $as_test_x conftest$ac_exeext
114522
 
       }; then
114523
 
  ac_cv_func___res_nsearch=yes
114524
 
else
114525
 
  $as_echo "$as_me: failed program was:" >&5
114526
 
sed 's/^/| /' conftest.$ac_ext >&5
114527
 
 
114528
 
        ac_cv_func___res_nsearch=no
114529
 
fi
114530
 
 
114531
 
rm -rf conftest.dSYM
114532
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
114533
 
      conftest$ac_exeext conftest.$ac_ext
114534
 
fi
114535
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_nsearch" >&5
114536
 
$as_echo "$ac_cv_func___res_nsearch" >&6; }
114537
 
if test "x$ac_cv_func___res_nsearch" = x""yes; then
114538
 
  found=yes
114539
 
else
114540
 
  found=no
114541
 
fi
114542
 
 
114543
 
fi
114544
 
 
114545
 
 
114546
 
  case $found in
114547
 
  yes) 
114548
 
    
114549
 
cat >>confdefs.h <<\_ACEOF
114550
 
@%:@define HAVE_RES_NSEARCH 1
114551
 
_ACEOF
114552
 
 
114553
 
    ac_cv_func_res_nsearch=yes
114554
 
  ;;
114555
 
  
114556
 
    *) 
114557
 
  
114558
 
  unset ac_cv_lib_resolv_res_nsearch
114559
 
  unset ac_cv_lib_resolv___res_nsearch
114560
 
  unset found
114561
 
  { $as_echo "$as_me:$LINENO: checking for res_nsearch in -lresolv" >&5
114562
 
$as_echo_n "checking for res_nsearch in -lresolv... " >&6; }
114563
 
if test "${ac_cv_lib_resolv_res_nsearch+set}" = set; then
114564
 
  $as_echo_n "(cached) " >&6
114565
 
else
114566
 
  ac_check_lib_save_LIBS=$LIBS
114567
 
LIBS="-lresolv  $LIBS"
114568
 
cat >conftest.$ac_ext <<_ACEOF
114569
 
/* confdefs.h.  */
114570
 
_ACEOF
114571
 
cat confdefs.h >>conftest.$ac_ext
114572
 
cat >>conftest.$ac_ext <<_ACEOF
114573
 
/* end confdefs.h.  */
114574
 
 
114575
 
/* Override any GCC internal prototype to avoid an error.
114576
 
   Use char because int might match the return type of a GCC
114577
 
   builtin and then its argument prototype would still apply.  */
114578
 
#ifdef __cplusplus
114579
 
extern "C"
114580
 
#endif
114581
 
char res_nsearch ();
114582
 
int
114583
 
main ()
114584
 
{
114585
 
return res_nsearch ();
114586
 
  ;
114587
 
  return 0;
114588
 
}
114589
 
_ACEOF
114590
 
rm -f conftest.$ac_objext conftest$ac_exeext
114591
 
if { (ac_try="$ac_link"
114592
 
case "(($ac_try" in
114593
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114594
 
  *) ac_try_echo=$ac_try;;
114595
 
esac
114596
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114597
 
$as_echo "$ac_try_echo") >&5
114598
 
  (eval "$ac_link") 2>conftest.er1
114599
 
  ac_status=$?
114600
 
  grep -v '^ *+' conftest.er1 >conftest.err
114601
 
  rm -f conftest.er1
114602
 
  cat conftest.err >&5
114603
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114604
 
  (exit $ac_status); } && {
114605
 
         test -z "$ac_c_werror_flag" ||
114606
 
         test ! -s conftest.err
114607
 
       } && test -s conftest$ac_exeext && {
114608
 
         test "$cross_compiling" = yes ||
114609
 
         $as_test_x conftest$ac_exeext
114610
 
       }; then
114611
 
  ac_cv_lib_resolv_res_nsearch=yes
114612
 
else
114613
 
  $as_echo "$as_me: failed program was:" >&5
114614
 
sed 's/^/| /' conftest.$ac_ext >&5
114615
 
 
114616
 
        ac_cv_lib_resolv_res_nsearch=no
114617
 
fi
114618
 
 
114619
 
rm -rf conftest.dSYM
114620
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
114621
 
      conftest$ac_exeext conftest.$ac_ext
114622
 
LIBS=$ac_check_lib_save_LIBS
114623
 
fi
114624
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_nsearch" >&5
114625
 
$as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; }
114626
 
if test "x$ac_cv_lib_resolv_res_nsearch" = x""yes; then
114627
 
  found=yes
114628
 
else
114629
 
  
114630
 
    { $as_echo "$as_me:$LINENO: checking for __res_nsearch in -lresolv" >&5
114631
 
$as_echo_n "checking for __res_nsearch in -lresolv... " >&6; }
114632
 
if test "${ac_cv_lib_resolv___res_nsearch+set}" = set; then
114633
 
  $as_echo_n "(cached) " >&6
114634
 
else
114635
 
  ac_check_lib_save_LIBS=$LIBS
114636
 
LIBS="-lresolv  $LIBS"
114637
 
cat >conftest.$ac_ext <<_ACEOF
114638
 
/* confdefs.h.  */
114639
 
_ACEOF
114640
 
cat confdefs.h >>conftest.$ac_ext
114641
 
cat >>conftest.$ac_ext <<_ACEOF
114642
 
/* end confdefs.h.  */
114643
 
 
114644
 
/* Override any GCC internal prototype to avoid an error.
114645
 
   Use char because int might match the return type of a GCC
114646
 
   builtin and then its argument prototype would still apply.  */
114647
 
#ifdef __cplusplus
114648
 
extern "C"
114649
 
#endif
114650
 
char __res_nsearch ();
114651
 
int
114652
 
main ()
114653
 
{
114654
 
return __res_nsearch ();
114655
 
  ;
114656
 
  return 0;
114657
 
}
114658
 
_ACEOF
114659
 
rm -f conftest.$ac_objext conftest$ac_exeext
114660
 
if { (ac_try="$ac_link"
114661
 
case "(($ac_try" in
114662
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114663
 
  *) ac_try_echo=$ac_try;;
114664
 
esac
114665
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114666
 
$as_echo "$ac_try_echo") >&5
114667
 
  (eval "$ac_link") 2>conftest.er1
114668
 
  ac_status=$?
114669
 
  grep -v '^ *+' conftest.er1 >conftest.err
114670
 
  rm -f conftest.er1
114671
 
  cat conftest.err >&5
114672
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114673
 
  (exit $ac_status); } && {
114674
 
         test -z "$ac_c_werror_flag" ||
114675
 
         test ! -s conftest.err
114676
 
       } && test -s conftest$ac_exeext && {
114677
 
         test "$cross_compiling" = yes ||
114678
 
         $as_test_x conftest$ac_exeext
114679
 
       }; then
114680
 
  ac_cv_lib_resolv___res_nsearch=yes
114681
 
else
114682
 
  $as_echo "$as_me: failed program was:" >&5
114683
 
sed 's/^/| /' conftest.$ac_ext >&5
114684
 
 
114685
 
        ac_cv_lib_resolv___res_nsearch=no
114686
 
fi
114687
 
 
114688
 
rm -rf conftest.dSYM
114689
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
114690
 
      conftest$ac_exeext conftest.$ac_ext
114691
 
LIBS=$ac_check_lib_save_LIBS
114692
 
fi
114693
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_nsearch" >&5
114694
 
$as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; }
114695
 
if test "x$ac_cv_lib_resolv___res_nsearch" = x""yes; then
114696
 
  found=yes
114697
 
else
114698
 
  found=no
114699
 
fi
114700
 
 
114701
 
  
114702
 
fi
114703
 
 
114704
 
 
114705
 
  if test "$found" = "yes"; then
114706
 
    ac_libs=$LIBS
114707
 
    LIBS="$LIBS -lresolv"
114708
 
    if test "$cross_compiling" = yes; then
114709
 
  found=no
114710
 
else
114711
 
  cat >conftest.$ac_ext <<_ACEOF
114712
 
/* confdefs.h.  */
114713
 
_ACEOF
114714
 
cat confdefs.h >>conftest.$ac_ext
114715
 
cat >>conftest.$ac_ext <<_ACEOF
114716
 
/* end confdefs.h.  */
114717
 
main() { return (0); }
114718
 
_ACEOF
114719
 
rm -f conftest$ac_exeext
114720
 
if { (ac_try="$ac_link"
114721
 
case "(($ac_try" in
114722
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114723
 
  *) ac_try_echo=$ac_try;;
114724
 
esac
114725
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114726
 
$as_echo "$ac_try_echo") >&5
114727
 
  (eval "$ac_link") 2>&5
114728
 
  ac_status=$?
114729
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114730
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
114731
 
  { (case "(($ac_try" in
114732
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114733
 
  *) ac_try_echo=$ac_try;;
114734
 
esac
114735
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114736
 
$as_echo "$ac_try_echo") >&5
114737
 
  (eval "$ac_try") 2>&5
114738
 
  ac_status=$?
114739
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114740
 
  (exit $ac_status); }; }; then
114741
 
  found=yes
114742
 
else
114743
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
114744
 
$as_echo "$as_me: failed program was:" >&5
114745
 
sed 's/^/| /' conftest.$ac_ext >&5
114746
 
 
114747
 
( exit $ac_status )
114748
 
found=no
114749
 
fi
114750
 
rm -rf conftest.dSYM
114751
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
114752
 
fi
114753
 
 
114754
 
 
114755
 
    LIBS=$ac_libs
114756
 
  fi
114757
 
 
114758
 
  if test "$found" = "yes"; then
114759
 
    
114760
 
  
114761
 
  case resolv in
114762
 
  c|c_r|pthread*) ;;
114763
 
  *) 
114764
 
      LIBS="-lresolv $LIBS" 
114765
 
   ;;
114766
 
  esac
114767
 
 
114768
 
 
114769
 
    
114770
 
cat >>confdefs.h <<\_ACEOF
114771
 
@%:@define HAVE_RES_NSEARCH 1
114772
 
_ACEOF
114773
 
 
114774
 
    
114775
 
cat >>confdefs.h <<\_ACEOF
114776
 
@%:@define HAVE_LIBRESOLV 1
114777
 
_ACEOF
114778
 
 
114779
 
    ac_cv_func_res_nsearch=yes
114780
 
  else
114781
 
    
114782
 
  
114783
 
  unset ac_cv_lib_bind_res_nsearch
114784
 
  unset ac_cv_lib_bind___res_nsearch
114785
 
  unset found
114786
 
  { $as_echo "$as_me:$LINENO: checking for res_nsearch in -lbind" >&5
114787
 
$as_echo_n "checking for res_nsearch in -lbind... " >&6; }
114788
 
if test "${ac_cv_lib_bind_res_nsearch+set}" = set; then
114789
 
  $as_echo_n "(cached) " >&6
114790
 
else
114791
 
  ac_check_lib_save_LIBS=$LIBS
114792
 
LIBS="-lbind  $LIBS"
114793
 
cat >conftest.$ac_ext <<_ACEOF
114794
 
/* confdefs.h.  */
114795
 
_ACEOF
114796
 
cat confdefs.h >>conftest.$ac_ext
114797
 
cat >>conftest.$ac_ext <<_ACEOF
114798
 
/* end confdefs.h.  */
114799
 
 
114800
 
/* Override any GCC internal prototype to avoid an error.
114801
 
   Use char because int might match the return type of a GCC
114802
 
   builtin and then its argument prototype would still apply.  */
114803
 
#ifdef __cplusplus
114804
 
extern "C"
114805
 
#endif
114806
 
char res_nsearch ();
114807
 
int
114808
 
main ()
114809
 
{
114810
 
return res_nsearch ();
114811
 
  ;
114812
 
  return 0;
114813
 
}
114814
 
_ACEOF
114815
 
rm -f conftest.$ac_objext conftest$ac_exeext
114816
 
if { (ac_try="$ac_link"
114817
 
case "(($ac_try" in
114818
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114819
 
  *) ac_try_echo=$ac_try;;
114820
 
esac
114821
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114822
 
$as_echo "$ac_try_echo") >&5
114823
 
  (eval "$ac_link") 2>conftest.er1
114824
 
  ac_status=$?
114825
 
  grep -v '^ *+' conftest.er1 >conftest.err
114826
 
  rm -f conftest.er1
114827
 
  cat conftest.err >&5
114828
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114829
 
  (exit $ac_status); } && {
114830
 
         test -z "$ac_c_werror_flag" ||
114831
 
         test ! -s conftest.err
114832
 
       } && test -s conftest$ac_exeext && {
114833
 
         test "$cross_compiling" = yes ||
114834
 
         $as_test_x conftest$ac_exeext
114835
 
       }; then
114836
 
  ac_cv_lib_bind_res_nsearch=yes
114837
 
else
114838
 
  $as_echo "$as_me: failed program was:" >&5
114839
 
sed 's/^/| /' conftest.$ac_ext >&5
114840
 
 
114841
 
        ac_cv_lib_bind_res_nsearch=no
114842
 
fi
114843
 
 
114844
 
rm -rf conftest.dSYM
114845
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
114846
 
      conftest$ac_exeext conftest.$ac_ext
114847
 
LIBS=$ac_check_lib_save_LIBS
114848
 
fi
114849
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_nsearch" >&5
114850
 
$as_echo "$ac_cv_lib_bind_res_nsearch" >&6; }
114851
 
if test "x$ac_cv_lib_bind_res_nsearch" = x""yes; then
114852
 
  found=yes
114853
 
else
114854
 
  
114855
 
    { $as_echo "$as_me:$LINENO: checking for __res_nsearch in -lbind" >&5
114856
 
$as_echo_n "checking for __res_nsearch in -lbind... " >&6; }
114857
 
if test "${ac_cv_lib_bind___res_nsearch+set}" = set; then
114858
 
  $as_echo_n "(cached) " >&6
114859
 
else
114860
 
  ac_check_lib_save_LIBS=$LIBS
114861
 
LIBS="-lbind  $LIBS"
114862
 
cat >conftest.$ac_ext <<_ACEOF
114863
 
/* confdefs.h.  */
114864
 
_ACEOF
114865
 
cat confdefs.h >>conftest.$ac_ext
114866
 
cat >>conftest.$ac_ext <<_ACEOF
114867
 
/* end confdefs.h.  */
114868
 
 
114869
 
/* Override any GCC internal prototype to avoid an error.
114870
 
   Use char because int might match the return type of a GCC
114871
 
   builtin and then its argument prototype would still apply.  */
114872
 
#ifdef __cplusplus
114873
 
extern "C"
114874
 
#endif
114875
 
char __res_nsearch ();
114876
 
int
114877
 
main ()
114878
 
{
114879
 
return __res_nsearch ();
114880
 
  ;
114881
 
  return 0;
114882
 
}
114883
 
_ACEOF
114884
 
rm -f conftest.$ac_objext conftest$ac_exeext
114885
 
if { (ac_try="$ac_link"
114886
 
case "(($ac_try" in
114887
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114888
 
  *) ac_try_echo=$ac_try;;
114889
 
esac
114890
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114891
 
$as_echo "$ac_try_echo") >&5
114892
 
  (eval "$ac_link") 2>conftest.er1
114893
 
  ac_status=$?
114894
 
  grep -v '^ *+' conftest.er1 >conftest.err
114895
 
  rm -f conftest.er1
114896
 
  cat conftest.err >&5
114897
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114898
 
  (exit $ac_status); } && {
114899
 
         test -z "$ac_c_werror_flag" ||
114900
 
         test ! -s conftest.err
114901
 
       } && test -s conftest$ac_exeext && {
114902
 
         test "$cross_compiling" = yes ||
114903
 
         $as_test_x conftest$ac_exeext
114904
 
       }; then
114905
 
  ac_cv_lib_bind___res_nsearch=yes
114906
 
else
114907
 
  $as_echo "$as_me: failed program was:" >&5
114908
 
sed 's/^/| /' conftest.$ac_ext >&5
114909
 
 
114910
 
        ac_cv_lib_bind___res_nsearch=no
114911
 
fi
114912
 
 
114913
 
rm -rf conftest.dSYM
114914
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
114915
 
      conftest$ac_exeext conftest.$ac_ext
114916
 
LIBS=$ac_check_lib_save_LIBS
114917
 
fi
114918
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_nsearch" >&5
114919
 
$as_echo "$ac_cv_lib_bind___res_nsearch" >&6; }
114920
 
if test "x$ac_cv_lib_bind___res_nsearch" = x""yes; then
114921
 
  found=yes
114922
 
else
114923
 
  found=no
114924
 
fi
114925
 
 
114926
 
  
114927
 
fi
114928
 
 
114929
 
 
114930
 
  if test "$found" = "yes"; then
114931
 
    ac_libs=$LIBS
114932
 
    LIBS="$LIBS -lbind"
114933
 
    if test "$cross_compiling" = yes; then
114934
 
  found=no
114935
 
else
114936
 
  cat >conftest.$ac_ext <<_ACEOF
114937
 
/* confdefs.h.  */
114938
 
_ACEOF
114939
 
cat confdefs.h >>conftest.$ac_ext
114940
 
cat >>conftest.$ac_ext <<_ACEOF
114941
 
/* end confdefs.h.  */
114942
 
main() { return (0); }
114943
 
_ACEOF
114944
 
rm -f conftest$ac_exeext
114945
 
if { (ac_try="$ac_link"
114946
 
case "(($ac_try" in
114947
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114948
 
  *) ac_try_echo=$ac_try;;
114949
 
esac
114950
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114951
 
$as_echo "$ac_try_echo") >&5
114952
 
  (eval "$ac_link") 2>&5
114953
 
  ac_status=$?
114954
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114955
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
114956
 
  { (case "(($ac_try" in
114957
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
114958
 
  *) ac_try_echo=$ac_try;;
114959
 
esac
114960
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
114961
 
$as_echo "$ac_try_echo") >&5
114962
 
  (eval "$ac_try") 2>&5
114963
 
  ac_status=$?
114964
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
114965
 
  (exit $ac_status); }; }; then
114966
 
  found=yes
114967
 
else
114968
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
114969
 
$as_echo "$as_me: failed program was:" >&5
114970
 
sed 's/^/| /' conftest.$ac_ext >&5
114971
 
 
114972
 
( exit $ac_status )
114973
 
found=no
114974
 
fi
114975
 
rm -rf conftest.dSYM
114976
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
114977
 
fi
114978
 
 
114979
 
 
114980
 
    LIBS=$ac_libs
114981
 
  fi
114982
 
 
114983
 
  if test "$found" = "yes"; then
114984
 
    
114985
 
  
114986
 
  case bind in
114987
 
  c|c_r|pthread*) ;;
114988
 
  *) 
114989
 
      LIBS="-lbind $LIBS" 
114990
 
   ;;
114991
 
  esac
114992
 
 
114993
 
 
114994
 
    
114995
 
cat >>confdefs.h <<\_ACEOF
114996
 
@%:@define HAVE_RES_NSEARCH 1
114997
 
_ACEOF
114998
 
 
114999
 
    
115000
 
cat >>confdefs.h <<\_ACEOF
115001
 
@%:@define HAVE_LIBBIND 1
115002
 
_ACEOF
115003
 
 
115004
 
    ac_cv_func_res_nsearch=yes
115005
 
  else
115006
 
    
115007
 
  
115008
 
  unset ac_cv_lib_socket_res_nsearch
115009
 
  unset ac_cv_lib_socket___res_nsearch
115010
 
  unset found
115011
 
  { $as_echo "$as_me:$LINENO: checking for res_nsearch in -lsocket" >&5
115012
 
$as_echo_n "checking for res_nsearch in -lsocket... " >&6; }
115013
 
if test "${ac_cv_lib_socket_res_nsearch+set}" = set; then
115014
 
  $as_echo_n "(cached) " >&6
115015
 
else
115016
 
  ac_check_lib_save_LIBS=$LIBS
115017
 
LIBS="-lsocket  $LIBS"
115018
 
cat >conftest.$ac_ext <<_ACEOF
115019
 
/* confdefs.h.  */
115020
 
_ACEOF
115021
 
cat confdefs.h >>conftest.$ac_ext
115022
 
cat >>conftest.$ac_ext <<_ACEOF
115023
 
/* end confdefs.h.  */
115024
 
 
115025
 
/* Override any GCC internal prototype to avoid an error.
115026
 
   Use char because int might match the return type of a GCC
115027
 
   builtin and then its argument prototype would still apply.  */
115028
 
#ifdef __cplusplus
115029
 
extern "C"
115030
 
#endif
115031
 
char res_nsearch ();
115032
 
int
115033
 
main ()
115034
 
{
115035
 
return res_nsearch ();
115036
 
  ;
115037
 
  return 0;
115038
 
}
115039
 
_ACEOF
115040
 
rm -f conftest.$ac_objext conftest$ac_exeext
115041
 
if { (ac_try="$ac_link"
115042
 
case "(($ac_try" in
115043
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115044
 
  *) ac_try_echo=$ac_try;;
115045
 
esac
115046
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115047
 
$as_echo "$ac_try_echo") >&5
115048
 
  (eval "$ac_link") 2>conftest.er1
115049
 
  ac_status=$?
115050
 
  grep -v '^ *+' conftest.er1 >conftest.err
115051
 
  rm -f conftest.er1
115052
 
  cat conftest.err >&5
115053
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115054
 
  (exit $ac_status); } && {
115055
 
         test -z "$ac_c_werror_flag" ||
115056
 
         test ! -s conftest.err
115057
 
       } && test -s conftest$ac_exeext && {
115058
 
         test "$cross_compiling" = yes ||
115059
 
         $as_test_x conftest$ac_exeext
115060
 
       }; then
115061
 
  ac_cv_lib_socket_res_nsearch=yes
115062
 
else
115063
 
  $as_echo "$as_me: failed program was:" >&5
115064
 
sed 's/^/| /' conftest.$ac_ext >&5
115065
 
 
115066
 
        ac_cv_lib_socket_res_nsearch=no
115067
 
fi
115068
 
 
115069
 
rm -rf conftest.dSYM
115070
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
115071
 
      conftest$ac_exeext conftest.$ac_ext
115072
 
LIBS=$ac_check_lib_save_LIBS
115073
 
fi
115074
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_res_nsearch" >&5
115075
 
$as_echo "$ac_cv_lib_socket_res_nsearch" >&6; }
115076
 
if test "x$ac_cv_lib_socket_res_nsearch" = x""yes; then
115077
 
  found=yes
115078
 
else
115079
 
  
115080
 
    { $as_echo "$as_me:$LINENO: checking for __res_nsearch in -lsocket" >&5
115081
 
$as_echo_n "checking for __res_nsearch in -lsocket... " >&6; }
115082
 
if test "${ac_cv_lib_socket___res_nsearch+set}" = set; then
115083
 
  $as_echo_n "(cached) " >&6
115084
 
else
115085
 
  ac_check_lib_save_LIBS=$LIBS
115086
 
LIBS="-lsocket  $LIBS"
115087
 
cat >conftest.$ac_ext <<_ACEOF
115088
 
/* confdefs.h.  */
115089
 
_ACEOF
115090
 
cat confdefs.h >>conftest.$ac_ext
115091
 
cat >>conftest.$ac_ext <<_ACEOF
115092
 
/* end confdefs.h.  */
115093
 
 
115094
 
/* Override any GCC internal prototype to avoid an error.
115095
 
   Use char because int might match the return type of a GCC
115096
 
   builtin and then its argument prototype would still apply.  */
115097
 
#ifdef __cplusplus
115098
 
extern "C"
115099
 
#endif
115100
 
char __res_nsearch ();
115101
 
int
115102
 
main ()
115103
 
{
115104
 
return __res_nsearch ();
115105
 
  ;
115106
 
  return 0;
115107
 
}
115108
 
_ACEOF
115109
 
rm -f conftest.$ac_objext conftest$ac_exeext
115110
 
if { (ac_try="$ac_link"
115111
 
case "(($ac_try" in
115112
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115113
 
  *) ac_try_echo=$ac_try;;
115114
 
esac
115115
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115116
 
$as_echo "$ac_try_echo") >&5
115117
 
  (eval "$ac_link") 2>conftest.er1
115118
 
  ac_status=$?
115119
 
  grep -v '^ *+' conftest.er1 >conftest.err
115120
 
  rm -f conftest.er1
115121
 
  cat conftest.err >&5
115122
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115123
 
  (exit $ac_status); } && {
115124
 
         test -z "$ac_c_werror_flag" ||
115125
 
         test ! -s conftest.err
115126
 
       } && test -s conftest$ac_exeext && {
115127
 
         test "$cross_compiling" = yes ||
115128
 
         $as_test_x conftest$ac_exeext
115129
 
       }; then
115130
 
  ac_cv_lib_socket___res_nsearch=yes
115131
 
else
115132
 
  $as_echo "$as_me: failed program was:" >&5
115133
 
sed 's/^/| /' conftest.$ac_ext >&5
115134
 
 
115135
 
        ac_cv_lib_socket___res_nsearch=no
115136
 
fi
115137
 
 
115138
 
rm -rf conftest.dSYM
115139
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
115140
 
      conftest$ac_exeext conftest.$ac_ext
115141
 
LIBS=$ac_check_lib_save_LIBS
115142
 
fi
115143
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket___res_nsearch" >&5
115144
 
$as_echo "$ac_cv_lib_socket___res_nsearch" >&6; }
115145
 
if test "x$ac_cv_lib_socket___res_nsearch" = x""yes; then
115146
 
  found=yes
115147
 
else
115148
 
  found=no
115149
 
fi
115150
 
 
115151
 
  
115152
 
fi
115153
 
 
115154
 
 
115155
 
  if test "$found" = "yes"; then
115156
 
    ac_libs=$LIBS
115157
 
    LIBS="$LIBS -lsocket"
115158
 
    if test "$cross_compiling" = yes; then
115159
 
  found=no
115160
 
else
115161
 
  cat >conftest.$ac_ext <<_ACEOF
115162
 
/* confdefs.h.  */
115163
 
_ACEOF
115164
 
cat confdefs.h >>conftest.$ac_ext
115165
 
cat >>conftest.$ac_ext <<_ACEOF
115166
 
/* end confdefs.h.  */
115167
 
main() { return (0); }
115168
 
_ACEOF
115169
 
rm -f conftest$ac_exeext
115170
 
if { (ac_try="$ac_link"
115171
 
case "(($ac_try" in
115172
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115173
 
  *) ac_try_echo=$ac_try;;
115174
 
esac
115175
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115176
 
$as_echo "$ac_try_echo") >&5
115177
 
  (eval "$ac_link") 2>&5
115178
 
  ac_status=$?
115179
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115180
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
115181
 
  { (case "(($ac_try" in
115182
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115183
 
  *) ac_try_echo=$ac_try;;
115184
 
esac
115185
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115186
 
$as_echo "$ac_try_echo") >&5
115187
 
  (eval "$ac_try") 2>&5
115188
 
  ac_status=$?
115189
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115190
 
  (exit $ac_status); }; }; then
115191
 
  found=yes
115192
 
else
115193
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
115194
 
$as_echo "$as_me: failed program was:" >&5
115195
 
sed 's/^/| /' conftest.$ac_ext >&5
115196
 
 
115197
 
( exit $ac_status )
115198
 
found=no
115199
 
fi
115200
 
rm -rf conftest.dSYM
115201
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
115202
 
fi
115203
 
 
115204
 
 
115205
 
    LIBS=$ac_libs
115206
 
  fi
115207
 
 
115208
 
  if test "$found" = "yes"; then
115209
 
    
115210
 
  
115211
 
  case socket in
115212
 
  c|c_r|pthread*) ;;
115213
 
  *) 
115214
 
      LIBS="-lsocket $LIBS" 
115215
 
   ;;
115216
 
  esac
115217
 
 
115218
 
 
115219
 
    
115220
 
cat >>confdefs.h <<\_ACEOF
115221
 
@%:@define HAVE_RES_NSEARCH 1
115222
 
_ACEOF
115223
 
 
115224
 
    
115225
 
cat >>confdefs.h <<\_ACEOF
115226
 
@%:@define HAVE_LIBSOCKET 1
115227
 
_ACEOF
115228
 
 
115229
 
    ac_cv_func_res_nsearch=yes
115230
 
  else
115231
 
    
115232
 
  :
115233
 
 
115234
 
  fi
115235
 
  
115236
 
 
115237
 
  fi
115238
 
  
115239
 
 
115240
 
  fi
115241
 
  
115242
 
 ;;
115243
 
  
115244
 
  esac
115245
 
 
115246
 
 
115247
 
  unset ac_cv_func_dns_search
115248
 
  unset ac_cv_func___dns_search
115249
 
  unset found
115250
 
  
115251
 
  { $as_echo "$as_me:$LINENO: checking for dns_search" >&5
115252
 
$as_echo_n "checking for dns_search... " >&6; }
115253
 
if test "${ac_cv_func_dns_search+set}" = set; then
115254
 
  $as_echo_n "(cached) " >&6
115255
 
else
115256
 
  cat >conftest.$ac_ext <<_ACEOF
115257
 
/* confdefs.h.  */
115258
 
_ACEOF
115259
 
cat confdefs.h >>conftest.$ac_ext
115260
 
cat >>conftest.$ac_ext <<_ACEOF
115261
 
/* end confdefs.h.  */
115262
 
/* Define dns_search to an innocuous variant, in case <limits.h> declares dns_search.
115263
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
115264
 
#define dns_search innocuous_dns_search
115265
 
 
115266
 
/* System header to define __stub macros and hopefully few prototypes,
115267
 
    which can conflict with char dns_search (); below.
115268
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
115269
 
    <limits.h> exists even on freestanding compilers.  */
115270
 
 
115271
 
#ifdef __STDC__
115272
 
# include <limits.h>
115273
 
#else
115274
 
# include <assert.h>
115275
 
#endif
115276
 
 
115277
 
#undef dns_search
115278
 
 
115279
 
/* Override any GCC internal prototype to avoid an error.
115280
 
   Use char because int might match the return type of a GCC
115281
 
   builtin and then its argument prototype would still apply.  */
115282
 
#ifdef __cplusplus
115283
 
extern "C"
115284
 
#endif
115285
 
char dns_search ();
115286
 
/* The GNU C library defines this for functions which it implements
115287
 
    to always fail with ENOSYS.  Some functions are actually named
115288
 
    something starting with __ and the normal name is an alias.  */
115289
 
#if defined __stub_dns_search || defined __stub___dns_search
115290
 
choke me
115291
 
#endif
115292
 
 
115293
 
int
115294
 
main ()
115295
 
{
115296
 
return dns_search ();
115297
 
  ;
115298
 
  return 0;
115299
 
}
115300
 
_ACEOF
115301
 
rm -f conftest.$ac_objext conftest$ac_exeext
115302
 
if { (ac_try="$ac_link"
115303
 
case "(($ac_try" in
115304
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115305
 
  *) ac_try_echo=$ac_try;;
115306
 
esac
115307
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115308
 
$as_echo "$ac_try_echo") >&5
115309
 
  (eval "$ac_link") 2>conftest.er1
115310
 
  ac_status=$?
115311
 
  grep -v '^ *+' conftest.er1 >conftest.err
115312
 
  rm -f conftest.er1
115313
 
  cat conftest.err >&5
115314
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115315
 
  (exit $ac_status); } && {
115316
 
         test -z "$ac_c_werror_flag" ||
115317
 
         test ! -s conftest.err
115318
 
       } && test -s conftest$ac_exeext && {
115319
 
         test "$cross_compiling" = yes ||
115320
 
         $as_test_x conftest$ac_exeext
115321
 
       }; then
115322
 
  ac_cv_func_dns_search=yes
115323
 
else
115324
 
  $as_echo "$as_me: failed program was:" >&5
115325
 
sed 's/^/| /' conftest.$ac_ext >&5
115326
 
 
115327
 
        ac_cv_func_dns_search=no
115328
 
fi
115329
 
 
115330
 
rm -rf conftest.dSYM
115331
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
115332
 
      conftest$ac_exeext conftest.$ac_ext
115333
 
fi
115334
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dns_search" >&5
115335
 
$as_echo "$ac_cv_func_dns_search" >&6; }
115336
 
if test "x$ac_cv_func_dns_search" = x""yes; then
115337
 
  found=yes
115338
 
else
115339
 
   { $as_echo "$as_me:$LINENO: checking for __dns_search" >&5
115340
 
$as_echo_n "checking for __dns_search... " >&6; }
115341
 
if test "${ac_cv_func___dns_search+set}" = set; then
115342
 
  $as_echo_n "(cached) " >&6
115343
 
else
115344
 
  cat >conftest.$ac_ext <<_ACEOF
115345
 
/* confdefs.h.  */
115346
 
_ACEOF
115347
 
cat confdefs.h >>conftest.$ac_ext
115348
 
cat >>conftest.$ac_ext <<_ACEOF
115349
 
/* end confdefs.h.  */
115350
 
/* Define __dns_search to an innocuous variant, in case <limits.h> declares __dns_search.
115351
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
115352
 
#define __dns_search innocuous___dns_search
115353
 
 
115354
 
/* System header to define __stub macros and hopefully few prototypes,
115355
 
    which can conflict with char __dns_search (); below.
115356
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
115357
 
    <limits.h> exists even on freestanding compilers.  */
115358
 
 
115359
 
#ifdef __STDC__
115360
 
# include <limits.h>
115361
 
#else
115362
 
# include <assert.h>
115363
 
#endif
115364
 
 
115365
 
#undef __dns_search
115366
 
 
115367
 
/* Override any GCC internal prototype to avoid an error.
115368
 
   Use char because int might match the return type of a GCC
115369
 
   builtin and then its argument prototype would still apply.  */
115370
 
#ifdef __cplusplus
115371
 
extern "C"
115372
 
#endif
115373
 
char __dns_search ();
115374
 
/* The GNU C library defines this for functions which it implements
115375
 
    to always fail with ENOSYS.  Some functions are actually named
115376
 
    something starting with __ and the normal name is an alias.  */
115377
 
#if defined __stub___dns_search || defined __stub_____dns_search
115378
 
choke me
115379
 
#endif
115380
 
 
115381
 
int
115382
 
main ()
115383
 
{
115384
 
return __dns_search ();
115385
 
  ;
115386
 
  return 0;
115387
 
}
115388
 
_ACEOF
115389
 
rm -f conftest.$ac_objext conftest$ac_exeext
115390
 
if { (ac_try="$ac_link"
115391
 
case "(($ac_try" in
115392
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115393
 
  *) ac_try_echo=$ac_try;;
115394
 
esac
115395
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115396
 
$as_echo "$ac_try_echo") >&5
115397
 
  (eval "$ac_link") 2>conftest.er1
115398
 
  ac_status=$?
115399
 
  grep -v '^ *+' conftest.er1 >conftest.err
115400
 
  rm -f conftest.er1
115401
 
  cat conftest.err >&5
115402
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115403
 
  (exit $ac_status); } && {
115404
 
         test -z "$ac_c_werror_flag" ||
115405
 
         test ! -s conftest.err
115406
 
       } && test -s conftest$ac_exeext && {
115407
 
         test "$cross_compiling" = yes ||
115408
 
         $as_test_x conftest$ac_exeext
115409
 
       }; then
115410
 
  ac_cv_func___dns_search=yes
115411
 
else
115412
 
  $as_echo "$as_me: failed program was:" >&5
115413
 
sed 's/^/| /' conftest.$ac_ext >&5
115414
 
 
115415
 
        ac_cv_func___dns_search=no
115416
 
fi
115417
 
 
115418
 
rm -rf conftest.dSYM
115419
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
115420
 
      conftest$ac_exeext conftest.$ac_ext
115421
 
fi
115422
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___dns_search" >&5
115423
 
$as_echo "$ac_cv_func___dns_search" >&6; }
115424
 
if test "x$ac_cv_func___dns_search" = x""yes; then
115425
 
  found=yes
115426
 
else
115427
 
  found=no
115428
 
fi
115429
 
 
115430
 
fi
115431
 
 
115432
 
 
115433
 
  case $found in
115434
 
  yes) 
115435
 
    
115436
 
cat >>confdefs.h <<\_ACEOF
115437
 
@%:@define HAVE_DNS_SEARCH 1
115438
 
_ACEOF
115439
 
 
115440
 
    ac_cv_func_dns_search=yes
115441
 
  ;;
115442
 
  
115443
 
    *) 
115444
 
  
115445
 
  unset ac_cv_lib_resolv_dns_search
115446
 
  unset ac_cv_lib_resolv___dns_search
115447
 
  unset found
115448
 
  { $as_echo "$as_me:$LINENO: checking for dns_search in -lresolv" >&5
115449
 
$as_echo_n "checking for dns_search in -lresolv... " >&6; }
115450
 
if test "${ac_cv_lib_resolv_dns_search+set}" = set; then
115451
 
  $as_echo_n "(cached) " >&6
115452
 
else
115453
 
  ac_check_lib_save_LIBS=$LIBS
115454
 
LIBS="-lresolv  $LIBS"
115455
 
cat >conftest.$ac_ext <<_ACEOF
115456
 
/* confdefs.h.  */
115457
 
_ACEOF
115458
 
cat confdefs.h >>conftest.$ac_ext
115459
 
cat >>conftest.$ac_ext <<_ACEOF
115460
 
/* end confdefs.h.  */
115461
 
 
115462
 
/* Override any GCC internal prototype to avoid an error.
115463
 
   Use char because int might match the return type of a GCC
115464
 
   builtin and then its argument prototype would still apply.  */
115465
 
#ifdef __cplusplus
115466
 
extern "C"
115467
 
#endif
115468
 
char dns_search ();
115469
 
int
115470
 
main ()
115471
 
{
115472
 
return dns_search ();
115473
 
  ;
115474
 
  return 0;
115475
 
}
115476
 
_ACEOF
115477
 
rm -f conftest.$ac_objext conftest$ac_exeext
115478
 
if { (ac_try="$ac_link"
115479
 
case "(($ac_try" in
115480
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115481
 
  *) ac_try_echo=$ac_try;;
115482
 
esac
115483
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115484
 
$as_echo "$ac_try_echo") >&5
115485
 
  (eval "$ac_link") 2>conftest.er1
115486
 
  ac_status=$?
115487
 
  grep -v '^ *+' conftest.er1 >conftest.err
115488
 
  rm -f conftest.er1
115489
 
  cat conftest.err >&5
115490
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115491
 
  (exit $ac_status); } && {
115492
 
         test -z "$ac_c_werror_flag" ||
115493
 
         test ! -s conftest.err
115494
 
       } && test -s conftest$ac_exeext && {
115495
 
         test "$cross_compiling" = yes ||
115496
 
         $as_test_x conftest$ac_exeext
115497
 
       }; then
115498
 
  ac_cv_lib_resolv_dns_search=yes
115499
 
else
115500
 
  $as_echo "$as_me: failed program was:" >&5
115501
 
sed 's/^/| /' conftest.$ac_ext >&5
115502
 
 
115503
 
        ac_cv_lib_resolv_dns_search=no
115504
 
fi
115505
 
 
115506
 
rm -rf conftest.dSYM
115507
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
115508
 
      conftest$ac_exeext conftest.$ac_ext
115509
 
LIBS=$ac_check_lib_save_LIBS
115510
 
fi
115511
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dns_search" >&5
115512
 
$as_echo "$ac_cv_lib_resolv_dns_search" >&6; }
115513
 
if test "x$ac_cv_lib_resolv_dns_search" = x""yes; then
115514
 
  found=yes
115515
 
else
115516
 
  
115517
 
    { $as_echo "$as_me:$LINENO: checking for __dns_search in -lresolv" >&5
115518
 
$as_echo_n "checking for __dns_search in -lresolv... " >&6; }
115519
 
if test "${ac_cv_lib_resolv___dns_search+set}" = set; then
115520
 
  $as_echo_n "(cached) " >&6
115521
 
else
115522
 
  ac_check_lib_save_LIBS=$LIBS
115523
 
LIBS="-lresolv  $LIBS"
115524
 
cat >conftest.$ac_ext <<_ACEOF
115525
 
/* confdefs.h.  */
115526
 
_ACEOF
115527
 
cat confdefs.h >>conftest.$ac_ext
115528
 
cat >>conftest.$ac_ext <<_ACEOF
115529
 
/* end confdefs.h.  */
115530
 
 
115531
 
/* Override any GCC internal prototype to avoid an error.
115532
 
   Use char because int might match the return type of a GCC
115533
 
   builtin and then its argument prototype would still apply.  */
115534
 
#ifdef __cplusplus
115535
 
extern "C"
115536
 
#endif
115537
 
char __dns_search ();
115538
 
int
115539
 
main ()
115540
 
{
115541
 
return __dns_search ();
115542
 
  ;
115543
 
  return 0;
115544
 
}
115545
 
_ACEOF
115546
 
rm -f conftest.$ac_objext conftest$ac_exeext
115547
 
if { (ac_try="$ac_link"
115548
 
case "(($ac_try" in
115549
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115550
 
  *) ac_try_echo=$ac_try;;
115551
 
esac
115552
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115553
 
$as_echo "$ac_try_echo") >&5
115554
 
  (eval "$ac_link") 2>conftest.er1
115555
 
  ac_status=$?
115556
 
  grep -v '^ *+' conftest.er1 >conftest.err
115557
 
  rm -f conftest.er1
115558
 
  cat conftest.err >&5
115559
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115560
 
  (exit $ac_status); } && {
115561
 
         test -z "$ac_c_werror_flag" ||
115562
 
         test ! -s conftest.err
115563
 
       } && test -s conftest$ac_exeext && {
115564
 
         test "$cross_compiling" = yes ||
115565
 
         $as_test_x conftest$ac_exeext
115566
 
       }; then
115567
 
  ac_cv_lib_resolv___dns_search=yes
115568
 
else
115569
 
  $as_echo "$as_me: failed program was:" >&5
115570
 
sed 's/^/| /' conftest.$ac_ext >&5
115571
 
 
115572
 
        ac_cv_lib_resolv___dns_search=no
115573
 
fi
115574
 
 
115575
 
rm -rf conftest.dSYM
115576
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
115577
 
      conftest$ac_exeext conftest.$ac_ext
115578
 
LIBS=$ac_check_lib_save_LIBS
115579
 
fi
115580
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dns_search" >&5
115581
 
$as_echo "$ac_cv_lib_resolv___dns_search" >&6; }
115582
 
if test "x$ac_cv_lib_resolv___dns_search" = x""yes; then
115583
 
  found=yes
115584
 
else
115585
 
  found=no
115586
 
fi
115587
 
 
115588
 
  
115589
 
fi
115590
 
 
115591
 
 
115592
 
  if test "$found" = "yes"; then
115593
 
    ac_libs=$LIBS
115594
 
    LIBS="$LIBS -lresolv"
115595
 
    if test "$cross_compiling" = yes; then
115596
 
  found=no
115597
 
else
115598
 
  cat >conftest.$ac_ext <<_ACEOF
115599
 
/* confdefs.h.  */
115600
 
_ACEOF
115601
 
cat confdefs.h >>conftest.$ac_ext
115602
 
cat >>conftest.$ac_ext <<_ACEOF
115603
 
/* end confdefs.h.  */
115604
 
main() { return (0); }
115605
 
_ACEOF
115606
 
rm -f conftest$ac_exeext
115607
 
if { (ac_try="$ac_link"
115608
 
case "(($ac_try" in
115609
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115610
 
  *) ac_try_echo=$ac_try;;
115611
 
esac
115612
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115613
 
$as_echo "$ac_try_echo") >&5
115614
 
  (eval "$ac_link") 2>&5
115615
 
  ac_status=$?
115616
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115617
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
115618
 
  { (case "(($ac_try" in
115619
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115620
 
  *) ac_try_echo=$ac_try;;
115621
 
esac
115622
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115623
 
$as_echo "$ac_try_echo") >&5
115624
 
  (eval "$ac_try") 2>&5
115625
 
  ac_status=$?
115626
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115627
 
  (exit $ac_status); }; }; then
115628
 
  found=yes
115629
 
else
115630
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
115631
 
$as_echo "$as_me: failed program was:" >&5
115632
 
sed 's/^/| /' conftest.$ac_ext >&5
115633
 
 
115634
 
( exit $ac_status )
115635
 
found=no
115636
 
fi
115637
 
rm -rf conftest.dSYM
115638
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
115639
 
fi
115640
 
 
115641
 
 
115642
 
    LIBS=$ac_libs
115643
 
  fi
115644
 
 
115645
 
  if test "$found" = "yes"; then
115646
 
    
115647
 
  
115648
 
  case resolv in
115649
 
  c|c_r|pthread*) ;;
115650
 
  *) 
115651
 
      LIBS="-lresolv $LIBS" 
115652
 
   ;;
115653
 
  esac
115654
 
 
115655
 
 
115656
 
    
115657
 
cat >>confdefs.h <<\_ACEOF
115658
 
@%:@define HAVE_DNS_SEARCH 1
115659
 
_ACEOF
115660
 
 
115661
 
    
115662
 
cat >>confdefs.h <<\_ACEOF
115663
 
@%:@define HAVE_LIBRESOLV 1
115664
 
_ACEOF
115665
 
 
115666
 
    ac_cv_func_dns_search=yes
115667
 
  else
115668
 
    
115669
 
  
115670
 
  unset ac_cv_lib_bind_dns_search
115671
 
  unset ac_cv_lib_bind___dns_search
115672
 
  unset found
115673
 
  { $as_echo "$as_me:$LINENO: checking for dns_search in -lbind" >&5
115674
 
$as_echo_n "checking for dns_search in -lbind... " >&6; }
115675
 
if test "${ac_cv_lib_bind_dns_search+set}" = set; then
115676
 
  $as_echo_n "(cached) " >&6
115677
 
else
115678
 
  ac_check_lib_save_LIBS=$LIBS
115679
 
LIBS="-lbind  $LIBS"
115680
 
cat >conftest.$ac_ext <<_ACEOF
115681
 
/* confdefs.h.  */
115682
 
_ACEOF
115683
 
cat confdefs.h >>conftest.$ac_ext
115684
 
cat >>conftest.$ac_ext <<_ACEOF
115685
 
/* end confdefs.h.  */
115686
 
 
115687
 
/* Override any GCC internal prototype to avoid an error.
115688
 
   Use char because int might match the return type of a GCC
115689
 
   builtin and then its argument prototype would still apply.  */
115690
 
#ifdef __cplusplus
115691
 
extern "C"
115692
 
#endif
115693
 
char dns_search ();
115694
 
int
115695
 
main ()
115696
 
{
115697
 
return dns_search ();
115698
 
  ;
115699
 
  return 0;
115700
 
}
115701
 
_ACEOF
115702
 
rm -f conftest.$ac_objext conftest$ac_exeext
115703
 
if { (ac_try="$ac_link"
115704
 
case "(($ac_try" in
115705
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115706
 
  *) ac_try_echo=$ac_try;;
115707
 
esac
115708
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115709
 
$as_echo "$ac_try_echo") >&5
115710
 
  (eval "$ac_link") 2>conftest.er1
115711
 
  ac_status=$?
115712
 
  grep -v '^ *+' conftest.er1 >conftest.err
115713
 
  rm -f conftest.er1
115714
 
  cat conftest.err >&5
115715
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115716
 
  (exit $ac_status); } && {
115717
 
         test -z "$ac_c_werror_flag" ||
115718
 
         test ! -s conftest.err
115719
 
       } && test -s conftest$ac_exeext && {
115720
 
         test "$cross_compiling" = yes ||
115721
 
         $as_test_x conftest$ac_exeext
115722
 
       }; then
115723
 
  ac_cv_lib_bind_dns_search=yes
115724
 
else
115725
 
  $as_echo "$as_me: failed program was:" >&5
115726
 
sed 's/^/| /' conftest.$ac_ext >&5
115727
 
 
115728
 
        ac_cv_lib_bind_dns_search=no
115729
 
fi
115730
 
 
115731
 
rm -rf conftest.dSYM
115732
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
115733
 
      conftest$ac_exeext conftest.$ac_ext
115734
 
LIBS=$ac_check_lib_save_LIBS
115735
 
fi
115736
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_dns_search" >&5
115737
 
$as_echo "$ac_cv_lib_bind_dns_search" >&6; }
115738
 
if test "x$ac_cv_lib_bind_dns_search" = x""yes; then
115739
 
  found=yes
115740
 
else
115741
 
  
115742
 
    { $as_echo "$as_me:$LINENO: checking for __dns_search in -lbind" >&5
115743
 
$as_echo_n "checking for __dns_search in -lbind... " >&6; }
115744
 
if test "${ac_cv_lib_bind___dns_search+set}" = set; then
115745
 
  $as_echo_n "(cached) " >&6
115746
 
else
115747
 
  ac_check_lib_save_LIBS=$LIBS
115748
 
LIBS="-lbind  $LIBS"
115749
 
cat >conftest.$ac_ext <<_ACEOF
115750
 
/* confdefs.h.  */
115751
 
_ACEOF
115752
 
cat confdefs.h >>conftest.$ac_ext
115753
 
cat >>conftest.$ac_ext <<_ACEOF
115754
 
/* end confdefs.h.  */
115755
 
 
115756
 
/* Override any GCC internal prototype to avoid an error.
115757
 
   Use char because int might match the return type of a GCC
115758
 
   builtin and then its argument prototype would still apply.  */
115759
 
#ifdef __cplusplus
115760
 
extern "C"
115761
 
#endif
115762
 
char __dns_search ();
115763
 
int
115764
 
main ()
115765
 
{
115766
 
return __dns_search ();
115767
 
  ;
115768
 
  return 0;
115769
 
}
115770
 
_ACEOF
115771
 
rm -f conftest.$ac_objext conftest$ac_exeext
115772
 
if { (ac_try="$ac_link"
115773
 
case "(($ac_try" in
115774
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115775
 
  *) ac_try_echo=$ac_try;;
115776
 
esac
115777
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115778
 
$as_echo "$ac_try_echo") >&5
115779
 
  (eval "$ac_link") 2>conftest.er1
115780
 
  ac_status=$?
115781
 
  grep -v '^ *+' conftest.er1 >conftest.err
115782
 
  rm -f conftest.er1
115783
 
  cat conftest.err >&5
115784
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115785
 
  (exit $ac_status); } && {
115786
 
         test -z "$ac_c_werror_flag" ||
115787
 
         test ! -s conftest.err
115788
 
       } && test -s conftest$ac_exeext && {
115789
 
         test "$cross_compiling" = yes ||
115790
 
         $as_test_x conftest$ac_exeext
115791
 
       }; then
115792
 
  ac_cv_lib_bind___dns_search=yes
115793
 
else
115794
 
  $as_echo "$as_me: failed program was:" >&5
115795
 
sed 's/^/| /' conftest.$ac_ext >&5
115796
 
 
115797
 
        ac_cv_lib_bind___dns_search=no
115798
 
fi
115799
 
 
115800
 
rm -rf conftest.dSYM
115801
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
115802
 
      conftest$ac_exeext conftest.$ac_ext
115803
 
LIBS=$ac_check_lib_save_LIBS
115804
 
fi
115805
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind___dns_search" >&5
115806
 
$as_echo "$ac_cv_lib_bind___dns_search" >&6; }
115807
 
if test "x$ac_cv_lib_bind___dns_search" = x""yes; then
115808
 
  found=yes
115809
 
else
115810
 
  found=no
115811
 
fi
115812
 
 
115813
 
  
115814
 
fi
115815
 
 
115816
 
 
115817
 
  if test "$found" = "yes"; then
115818
 
    ac_libs=$LIBS
115819
 
    LIBS="$LIBS -lbind"
115820
 
    if test "$cross_compiling" = yes; then
115821
 
  found=no
115822
 
else
115823
 
  cat >conftest.$ac_ext <<_ACEOF
115824
 
/* confdefs.h.  */
115825
 
_ACEOF
115826
 
cat confdefs.h >>conftest.$ac_ext
115827
 
cat >>conftest.$ac_ext <<_ACEOF
115828
 
/* end confdefs.h.  */
115829
 
main() { return (0); }
115830
 
_ACEOF
115831
 
rm -f conftest$ac_exeext
115832
 
if { (ac_try="$ac_link"
115833
 
case "(($ac_try" in
115834
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115835
 
  *) ac_try_echo=$ac_try;;
115836
 
esac
115837
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115838
 
$as_echo "$ac_try_echo") >&5
115839
 
  (eval "$ac_link") 2>&5
115840
 
  ac_status=$?
115841
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115842
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
115843
 
  { (case "(($ac_try" in
115844
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115845
 
  *) ac_try_echo=$ac_try;;
115846
 
esac
115847
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115848
 
$as_echo "$ac_try_echo") >&5
115849
 
  (eval "$ac_try") 2>&5
115850
 
  ac_status=$?
115851
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115852
 
  (exit $ac_status); }; }; then
115853
 
  found=yes
115854
 
else
115855
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
115856
 
$as_echo "$as_me: failed program was:" >&5
115857
 
sed 's/^/| /' conftest.$ac_ext >&5
115858
 
 
115859
 
( exit $ac_status )
115860
 
found=no
115861
 
fi
115862
 
rm -rf conftest.dSYM
115863
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
115864
 
fi
115865
 
 
115866
 
 
115867
 
    LIBS=$ac_libs
115868
 
  fi
115869
 
 
115870
 
  if test "$found" = "yes"; then
115871
 
    
115872
 
  
115873
 
  case bind in
115874
 
  c|c_r|pthread*) ;;
115875
 
  *) 
115876
 
      LIBS="-lbind $LIBS" 
115877
 
   ;;
115878
 
  esac
115879
 
 
115880
 
 
115881
 
    
115882
 
cat >>confdefs.h <<\_ACEOF
115883
 
@%:@define HAVE_DNS_SEARCH 1
115884
 
_ACEOF
115885
 
 
115886
 
    
115887
 
cat >>confdefs.h <<\_ACEOF
115888
 
@%:@define HAVE_LIBBIND 1
115889
 
_ACEOF
115890
 
 
115891
 
    ac_cv_func_dns_search=yes
115892
 
  else
115893
 
    
115894
 
  
115895
 
  unset ac_cv_lib_socket_dns_search
115896
 
  unset ac_cv_lib_socket___dns_search
115897
 
  unset found
115898
 
  { $as_echo "$as_me:$LINENO: checking for dns_search in -lsocket" >&5
115899
 
$as_echo_n "checking for dns_search in -lsocket... " >&6; }
115900
 
if test "${ac_cv_lib_socket_dns_search+set}" = set; then
115901
 
  $as_echo_n "(cached) " >&6
115902
 
else
115903
 
  ac_check_lib_save_LIBS=$LIBS
115904
 
LIBS="-lsocket  $LIBS"
115905
 
cat >conftest.$ac_ext <<_ACEOF
115906
 
/* confdefs.h.  */
115907
 
_ACEOF
115908
 
cat confdefs.h >>conftest.$ac_ext
115909
 
cat >>conftest.$ac_ext <<_ACEOF
115910
 
/* end confdefs.h.  */
115911
 
 
115912
 
/* Override any GCC internal prototype to avoid an error.
115913
 
   Use char because int might match the return type of a GCC
115914
 
   builtin and then its argument prototype would still apply.  */
115915
 
#ifdef __cplusplus
115916
 
extern "C"
115917
 
#endif
115918
 
char dns_search ();
115919
 
int
115920
 
main ()
115921
 
{
115922
 
return dns_search ();
115923
 
  ;
115924
 
  return 0;
115925
 
}
115926
 
_ACEOF
115927
 
rm -f conftest.$ac_objext conftest$ac_exeext
115928
 
if { (ac_try="$ac_link"
115929
 
case "(($ac_try" in
115930
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
115931
 
  *) ac_try_echo=$ac_try;;
115932
 
esac
115933
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
115934
 
$as_echo "$ac_try_echo") >&5
115935
 
  (eval "$ac_link") 2>conftest.er1
115936
 
  ac_status=$?
115937
 
  grep -v '^ *+' conftest.er1 >conftest.err
115938
 
  rm -f conftest.er1
115939
 
  cat conftest.err >&5
115940
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
115941
 
  (exit $ac_status); } && {
115942
 
         test -z "$ac_c_werror_flag" ||
115943
 
         test ! -s conftest.err
115944
 
       } && test -s conftest$ac_exeext && {
115945
 
         test "$cross_compiling" = yes ||
115946
 
         $as_test_x conftest$ac_exeext
115947
 
       }; then
115948
 
  ac_cv_lib_socket_dns_search=yes
115949
 
else
115950
 
  $as_echo "$as_me: failed program was:" >&5
115951
 
sed 's/^/| /' conftest.$ac_ext >&5
115952
 
 
115953
 
        ac_cv_lib_socket_dns_search=no
115954
 
fi
115955
 
 
115956
 
rm -rf conftest.dSYM
115957
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
115958
 
      conftest$ac_exeext conftest.$ac_ext
115959
 
LIBS=$ac_check_lib_save_LIBS
115960
 
fi
115961
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_dns_search" >&5
115962
 
$as_echo "$ac_cv_lib_socket_dns_search" >&6; }
115963
 
if test "x$ac_cv_lib_socket_dns_search" = x""yes; then
115964
 
  found=yes
115965
 
else
115966
 
  
115967
 
    { $as_echo "$as_me:$LINENO: checking for __dns_search in -lsocket" >&5
115968
 
$as_echo_n "checking for __dns_search in -lsocket... " >&6; }
115969
 
if test "${ac_cv_lib_socket___dns_search+set}" = set; then
115970
 
  $as_echo_n "(cached) " >&6
115971
 
else
115972
 
  ac_check_lib_save_LIBS=$LIBS
115973
 
LIBS="-lsocket  $LIBS"
115974
 
cat >conftest.$ac_ext <<_ACEOF
115975
 
/* confdefs.h.  */
115976
 
_ACEOF
115977
 
cat confdefs.h >>conftest.$ac_ext
115978
 
cat >>conftest.$ac_ext <<_ACEOF
115979
 
/* end confdefs.h.  */
115980
 
 
115981
 
/* Override any GCC internal prototype to avoid an error.
115982
 
   Use char because int might match the return type of a GCC
115983
 
   builtin and then its argument prototype would still apply.  */
115984
 
#ifdef __cplusplus
115985
 
extern "C"
115986
 
#endif
115987
 
char __dns_search ();
115988
 
int
115989
 
main ()
115990
 
{
115991
 
return __dns_search ();
115992
 
  ;
115993
 
  return 0;
115994
 
}
115995
 
_ACEOF
115996
 
rm -f conftest.$ac_objext conftest$ac_exeext
115997
 
if { (ac_try="$ac_link"
115998
 
case "(($ac_try" in
115999
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116000
 
  *) ac_try_echo=$ac_try;;
116001
 
esac
116002
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116003
 
$as_echo "$ac_try_echo") >&5
116004
 
  (eval "$ac_link") 2>conftest.er1
116005
 
  ac_status=$?
116006
 
  grep -v '^ *+' conftest.er1 >conftest.err
116007
 
  rm -f conftest.er1
116008
 
  cat conftest.err >&5
116009
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116010
 
  (exit $ac_status); } && {
116011
 
         test -z "$ac_c_werror_flag" ||
116012
 
         test ! -s conftest.err
116013
 
       } && test -s conftest$ac_exeext && {
116014
 
         test "$cross_compiling" = yes ||
116015
 
         $as_test_x conftest$ac_exeext
116016
 
       }; then
116017
 
  ac_cv_lib_socket___dns_search=yes
116018
 
else
116019
 
  $as_echo "$as_me: failed program was:" >&5
116020
 
sed 's/^/| /' conftest.$ac_ext >&5
116021
 
 
116022
 
        ac_cv_lib_socket___dns_search=no
116023
 
fi
116024
 
 
116025
 
rm -rf conftest.dSYM
116026
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
116027
 
      conftest$ac_exeext conftest.$ac_ext
116028
 
LIBS=$ac_check_lib_save_LIBS
116029
 
fi
116030
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket___dns_search" >&5
116031
 
$as_echo "$ac_cv_lib_socket___dns_search" >&6; }
116032
 
if test "x$ac_cv_lib_socket___dns_search" = x""yes; then
116033
 
  found=yes
116034
 
else
116035
 
  found=no
116036
 
fi
116037
 
 
116038
 
  
116039
 
fi
116040
 
 
116041
 
 
116042
 
  if test "$found" = "yes"; then
116043
 
    ac_libs=$LIBS
116044
 
    LIBS="$LIBS -lsocket"
116045
 
    if test "$cross_compiling" = yes; then
116046
 
  found=no
116047
 
else
116048
 
  cat >conftest.$ac_ext <<_ACEOF
116049
 
/* confdefs.h.  */
116050
 
_ACEOF
116051
 
cat confdefs.h >>conftest.$ac_ext
116052
 
cat >>conftest.$ac_ext <<_ACEOF
116053
 
/* end confdefs.h.  */
116054
 
main() { return (0); }
116055
 
_ACEOF
116056
 
rm -f conftest$ac_exeext
116057
 
if { (ac_try="$ac_link"
116058
 
case "(($ac_try" in
116059
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116060
 
  *) ac_try_echo=$ac_try;;
116061
 
esac
116062
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116063
 
$as_echo "$ac_try_echo") >&5
116064
 
  (eval "$ac_link") 2>&5
116065
 
  ac_status=$?
116066
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116067
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
116068
 
  { (case "(($ac_try" in
116069
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116070
 
  *) ac_try_echo=$ac_try;;
116071
 
esac
116072
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116073
 
$as_echo "$ac_try_echo") >&5
116074
 
  (eval "$ac_try") 2>&5
116075
 
  ac_status=$?
116076
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116077
 
  (exit $ac_status); }; }; then
116078
 
  found=yes
116079
 
else
116080
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
116081
 
$as_echo "$as_me: failed program was:" >&5
116082
 
sed 's/^/| /' conftest.$ac_ext >&5
116083
 
 
116084
 
( exit $ac_status )
116085
 
found=no
116086
 
fi
116087
 
rm -rf conftest.dSYM
116088
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
116089
 
fi
116090
 
 
116091
 
 
116092
 
    LIBS=$ac_libs
116093
 
  fi
116094
 
 
116095
 
  if test "$found" = "yes"; then
116096
 
    
116097
 
  
116098
 
  case socket in
116099
 
  c|c_r|pthread*) ;;
116100
 
  *) 
116101
 
      LIBS="-lsocket $LIBS" 
116102
 
   ;;
116103
 
  esac
116104
 
 
116105
 
 
116106
 
    
116107
 
cat >>confdefs.h <<\_ACEOF
116108
 
@%:@define HAVE_DNS_SEARCH 1
116109
 
_ACEOF
116110
 
 
116111
 
    
116112
 
cat >>confdefs.h <<\_ACEOF
116113
 
@%:@define HAVE_LIBSOCKET 1
116114
 
_ACEOF
116115
 
 
116116
 
    ac_cv_func_dns_search=yes
116117
 
  else
116118
 
    
116119
 
  :
116120
 
 
116121
 
  fi
116122
 
  
116123
 
 
116124
 
  fi
116125
 
  
116126
 
 
116127
 
  fi
116128
 
  
116129
 
 ;;
116130
 
  
116131
 
  esac
116132
 
 
116133
 
 
116134
 
  unset ac_cv_func_dn_expand
116135
 
  unset ac_cv_func___dn_expand
116136
 
  unset found
116137
 
  
116138
 
  { $as_echo "$as_me:$LINENO: checking for dn_expand" >&5
116139
 
$as_echo_n "checking for dn_expand... " >&6; }
116140
 
if test "${ac_cv_func_dn_expand+set}" = set; then
116141
 
  $as_echo_n "(cached) " >&6
116142
 
else
116143
 
  cat >conftest.$ac_ext <<_ACEOF
116144
 
/* confdefs.h.  */
116145
 
_ACEOF
116146
 
cat confdefs.h >>conftest.$ac_ext
116147
 
cat >>conftest.$ac_ext <<_ACEOF
116148
 
/* end confdefs.h.  */
116149
 
/* Define dn_expand to an innocuous variant, in case <limits.h> declares dn_expand.
116150
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
116151
 
#define dn_expand innocuous_dn_expand
116152
 
 
116153
 
/* System header to define __stub macros and hopefully few prototypes,
116154
 
    which can conflict with char dn_expand (); below.
116155
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
116156
 
    <limits.h> exists even on freestanding compilers.  */
116157
 
 
116158
 
#ifdef __STDC__
116159
 
# include <limits.h>
116160
 
#else
116161
 
# include <assert.h>
116162
 
#endif
116163
 
 
116164
 
#undef dn_expand
116165
 
 
116166
 
/* Override any GCC internal prototype to avoid an error.
116167
 
   Use char because int might match the return type of a GCC
116168
 
   builtin and then its argument prototype would still apply.  */
116169
 
#ifdef __cplusplus
116170
 
extern "C"
116171
 
#endif
116172
 
char dn_expand ();
116173
 
/* The GNU C library defines this for functions which it implements
116174
 
    to always fail with ENOSYS.  Some functions are actually named
116175
 
    something starting with __ and the normal name is an alias.  */
116176
 
#if defined __stub_dn_expand || defined __stub___dn_expand
116177
 
choke me
116178
 
#endif
116179
 
 
116180
 
int
116181
 
main ()
116182
 
{
116183
 
return dn_expand ();
116184
 
  ;
116185
 
  return 0;
116186
 
}
116187
 
_ACEOF
116188
 
rm -f conftest.$ac_objext conftest$ac_exeext
116189
 
if { (ac_try="$ac_link"
116190
 
case "(($ac_try" in
116191
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116192
 
  *) ac_try_echo=$ac_try;;
116193
 
esac
116194
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116195
 
$as_echo "$ac_try_echo") >&5
116196
 
  (eval "$ac_link") 2>conftest.er1
116197
 
  ac_status=$?
116198
 
  grep -v '^ *+' conftest.er1 >conftest.err
116199
 
  rm -f conftest.er1
116200
 
  cat conftest.err >&5
116201
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116202
 
  (exit $ac_status); } && {
116203
 
         test -z "$ac_c_werror_flag" ||
116204
 
         test ! -s conftest.err
116205
 
       } && test -s conftest$ac_exeext && {
116206
 
         test "$cross_compiling" = yes ||
116207
 
         $as_test_x conftest$ac_exeext
116208
 
       }; then
116209
 
  ac_cv_func_dn_expand=yes
116210
 
else
116211
 
  $as_echo "$as_me: failed program was:" >&5
116212
 
sed 's/^/| /' conftest.$ac_ext >&5
116213
 
 
116214
 
        ac_cv_func_dn_expand=no
116215
 
fi
116216
 
 
116217
 
rm -rf conftest.dSYM
116218
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
116219
 
      conftest$ac_exeext conftest.$ac_ext
116220
 
fi
116221
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dn_expand" >&5
116222
 
$as_echo "$ac_cv_func_dn_expand" >&6; }
116223
 
if test "x$ac_cv_func_dn_expand" = x""yes; then
116224
 
  found=yes
116225
 
else
116226
 
   { $as_echo "$as_me:$LINENO: checking for __dn_expand" >&5
116227
 
$as_echo_n "checking for __dn_expand... " >&6; }
116228
 
if test "${ac_cv_func___dn_expand+set}" = set; then
116229
 
  $as_echo_n "(cached) " >&6
116230
 
else
116231
 
  cat >conftest.$ac_ext <<_ACEOF
116232
 
/* confdefs.h.  */
116233
 
_ACEOF
116234
 
cat confdefs.h >>conftest.$ac_ext
116235
 
cat >>conftest.$ac_ext <<_ACEOF
116236
 
/* end confdefs.h.  */
116237
 
/* Define __dn_expand to an innocuous variant, in case <limits.h> declares __dn_expand.
116238
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
116239
 
#define __dn_expand innocuous___dn_expand
116240
 
 
116241
 
/* System header to define __stub macros and hopefully few prototypes,
116242
 
    which can conflict with char __dn_expand (); below.
116243
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
116244
 
    <limits.h> exists even on freestanding compilers.  */
116245
 
 
116246
 
#ifdef __STDC__
116247
 
# include <limits.h>
116248
 
#else
116249
 
# include <assert.h>
116250
 
#endif
116251
 
 
116252
 
#undef __dn_expand
116253
 
 
116254
 
/* Override any GCC internal prototype to avoid an error.
116255
 
   Use char because int might match the return type of a GCC
116256
 
   builtin and then its argument prototype would still apply.  */
116257
 
#ifdef __cplusplus
116258
 
extern "C"
116259
 
#endif
116260
 
char __dn_expand ();
116261
 
/* The GNU C library defines this for functions which it implements
116262
 
    to always fail with ENOSYS.  Some functions are actually named
116263
 
    something starting with __ and the normal name is an alias.  */
116264
 
#if defined __stub___dn_expand || defined __stub_____dn_expand
116265
 
choke me
116266
 
#endif
116267
 
 
116268
 
int
116269
 
main ()
116270
 
{
116271
 
return __dn_expand ();
116272
 
  ;
116273
 
  return 0;
116274
 
}
116275
 
_ACEOF
116276
 
rm -f conftest.$ac_objext conftest$ac_exeext
116277
 
if { (ac_try="$ac_link"
116278
 
case "(($ac_try" in
116279
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116280
 
  *) ac_try_echo=$ac_try;;
116281
 
esac
116282
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116283
 
$as_echo "$ac_try_echo") >&5
116284
 
  (eval "$ac_link") 2>conftest.er1
116285
 
  ac_status=$?
116286
 
  grep -v '^ *+' conftest.er1 >conftest.err
116287
 
  rm -f conftest.er1
116288
 
  cat conftest.err >&5
116289
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116290
 
  (exit $ac_status); } && {
116291
 
         test -z "$ac_c_werror_flag" ||
116292
 
         test ! -s conftest.err
116293
 
       } && test -s conftest$ac_exeext && {
116294
 
         test "$cross_compiling" = yes ||
116295
 
         $as_test_x conftest$ac_exeext
116296
 
       }; then
116297
 
  ac_cv_func___dn_expand=yes
116298
 
else
116299
 
  $as_echo "$as_me: failed program was:" >&5
116300
 
sed 's/^/| /' conftest.$ac_ext >&5
116301
 
 
116302
 
        ac_cv_func___dn_expand=no
116303
 
fi
116304
 
 
116305
 
rm -rf conftest.dSYM
116306
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
116307
 
      conftest$ac_exeext conftest.$ac_ext
116308
 
fi
116309
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___dn_expand" >&5
116310
 
$as_echo "$ac_cv_func___dn_expand" >&6; }
116311
 
if test "x$ac_cv_func___dn_expand" = x""yes; then
116312
 
  found=yes
116313
 
else
116314
 
  found=no
116315
 
fi
116316
 
 
116317
 
fi
116318
 
 
116319
 
 
116320
 
  case $found in
116321
 
  yes) 
116322
 
    
116323
 
cat >>confdefs.h <<\_ACEOF
116324
 
@%:@define HAVE_DN_EXPAND 1
116325
 
_ACEOF
116326
 
 
116327
 
    ac_cv_func_dn_expand=yes
116328
 
  ;;
116329
 
  
116330
 
    *) 
116331
 
  
116332
 
  unset ac_cv_lib_resolv_dn_expand
116333
 
  unset ac_cv_lib_resolv___dn_expand
116334
 
  unset found
116335
 
  { $as_echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
116336
 
$as_echo_n "checking for dn_expand in -lresolv... " >&6; }
116337
 
if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
116338
 
  $as_echo_n "(cached) " >&6
116339
 
else
116340
 
  ac_check_lib_save_LIBS=$LIBS
116341
 
LIBS="-lresolv  $LIBS"
116342
 
cat >conftest.$ac_ext <<_ACEOF
116343
 
/* confdefs.h.  */
116344
 
_ACEOF
116345
 
cat confdefs.h >>conftest.$ac_ext
116346
 
cat >>conftest.$ac_ext <<_ACEOF
116347
 
/* end confdefs.h.  */
116348
 
 
116349
 
/* Override any GCC internal prototype to avoid an error.
116350
 
   Use char because int might match the return type of a GCC
116351
 
   builtin and then its argument prototype would still apply.  */
116352
 
#ifdef __cplusplus
116353
 
extern "C"
116354
 
#endif
116355
 
char dn_expand ();
116356
 
int
116357
 
main ()
116358
 
{
116359
 
return dn_expand ();
116360
 
  ;
116361
 
  return 0;
116362
 
}
116363
 
_ACEOF
116364
 
rm -f conftest.$ac_objext conftest$ac_exeext
116365
 
if { (ac_try="$ac_link"
116366
 
case "(($ac_try" in
116367
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116368
 
  *) ac_try_echo=$ac_try;;
116369
 
esac
116370
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116371
 
$as_echo "$ac_try_echo") >&5
116372
 
  (eval "$ac_link") 2>conftest.er1
116373
 
  ac_status=$?
116374
 
  grep -v '^ *+' conftest.er1 >conftest.err
116375
 
  rm -f conftest.er1
116376
 
  cat conftest.err >&5
116377
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116378
 
  (exit $ac_status); } && {
116379
 
         test -z "$ac_c_werror_flag" ||
116380
 
         test ! -s conftest.err
116381
 
       } && test -s conftest$ac_exeext && {
116382
 
         test "$cross_compiling" = yes ||
116383
 
         $as_test_x conftest$ac_exeext
116384
 
       }; then
116385
 
  ac_cv_lib_resolv_dn_expand=yes
116386
 
else
116387
 
  $as_echo "$as_me: failed program was:" >&5
116388
 
sed 's/^/| /' conftest.$ac_ext >&5
116389
 
 
116390
 
        ac_cv_lib_resolv_dn_expand=no
116391
 
fi
116392
 
 
116393
 
rm -rf conftest.dSYM
116394
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
116395
 
      conftest$ac_exeext conftest.$ac_ext
116396
 
LIBS=$ac_check_lib_save_LIBS
116397
 
fi
116398
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
116399
 
$as_echo "$ac_cv_lib_resolv_dn_expand" >&6; }
116400
 
if test "x$ac_cv_lib_resolv_dn_expand" = x""yes; then
116401
 
  found=yes
116402
 
else
116403
 
  
116404
 
    { $as_echo "$as_me:$LINENO: checking for __dn_expand in -lresolv" >&5
116405
 
$as_echo_n "checking for __dn_expand in -lresolv... " >&6; }
116406
 
if test "${ac_cv_lib_resolv___dn_expand+set}" = set; then
116407
 
  $as_echo_n "(cached) " >&6
116408
 
else
116409
 
  ac_check_lib_save_LIBS=$LIBS
116410
 
LIBS="-lresolv  $LIBS"
116411
 
cat >conftest.$ac_ext <<_ACEOF
116412
 
/* confdefs.h.  */
116413
 
_ACEOF
116414
 
cat confdefs.h >>conftest.$ac_ext
116415
 
cat >>conftest.$ac_ext <<_ACEOF
116416
 
/* end confdefs.h.  */
116417
 
 
116418
 
/* Override any GCC internal prototype to avoid an error.
116419
 
   Use char because int might match the return type of a GCC
116420
 
   builtin and then its argument prototype would still apply.  */
116421
 
#ifdef __cplusplus
116422
 
extern "C"
116423
 
#endif
116424
 
char __dn_expand ();
116425
 
int
116426
 
main ()
116427
 
{
116428
 
return __dn_expand ();
116429
 
  ;
116430
 
  return 0;
116431
 
}
116432
 
_ACEOF
116433
 
rm -f conftest.$ac_objext conftest$ac_exeext
116434
 
if { (ac_try="$ac_link"
116435
 
case "(($ac_try" in
116436
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116437
 
  *) ac_try_echo=$ac_try;;
116438
 
esac
116439
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116440
 
$as_echo "$ac_try_echo") >&5
116441
 
  (eval "$ac_link") 2>conftest.er1
116442
 
  ac_status=$?
116443
 
  grep -v '^ *+' conftest.er1 >conftest.err
116444
 
  rm -f conftest.er1
116445
 
  cat conftest.err >&5
116446
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116447
 
  (exit $ac_status); } && {
116448
 
         test -z "$ac_c_werror_flag" ||
116449
 
         test ! -s conftest.err
116450
 
       } && test -s conftest$ac_exeext && {
116451
 
         test "$cross_compiling" = yes ||
116452
 
         $as_test_x conftest$ac_exeext
116453
 
       }; then
116454
 
  ac_cv_lib_resolv___dn_expand=yes
116455
 
else
116456
 
  $as_echo "$as_me: failed program was:" >&5
116457
 
sed 's/^/| /' conftest.$ac_ext >&5
116458
 
 
116459
 
        ac_cv_lib_resolv___dn_expand=no
116460
 
fi
116461
 
 
116462
 
rm -rf conftest.dSYM
116463
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
116464
 
      conftest$ac_exeext conftest.$ac_ext
116465
 
LIBS=$ac_check_lib_save_LIBS
116466
 
fi
116467
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5
116468
 
$as_echo "$ac_cv_lib_resolv___dn_expand" >&6; }
116469
 
if test "x$ac_cv_lib_resolv___dn_expand" = x""yes; then
116470
 
  found=yes
116471
 
else
116472
 
  found=no
116473
 
fi
116474
 
 
116475
 
  
116476
 
fi
116477
 
 
116478
 
 
116479
 
  if test "$found" = "yes"; then
116480
 
    ac_libs=$LIBS
116481
 
    LIBS="$LIBS -lresolv"
116482
 
    if test "$cross_compiling" = yes; then
116483
 
  found=no
116484
 
else
116485
 
  cat >conftest.$ac_ext <<_ACEOF
116486
 
/* confdefs.h.  */
116487
 
_ACEOF
116488
 
cat confdefs.h >>conftest.$ac_ext
116489
 
cat >>conftest.$ac_ext <<_ACEOF
116490
 
/* end confdefs.h.  */
116491
 
main() { return (0); }
116492
 
_ACEOF
116493
 
rm -f conftest$ac_exeext
116494
 
if { (ac_try="$ac_link"
116495
 
case "(($ac_try" in
116496
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116497
 
  *) ac_try_echo=$ac_try;;
116498
 
esac
116499
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116500
 
$as_echo "$ac_try_echo") >&5
116501
 
  (eval "$ac_link") 2>&5
116502
 
  ac_status=$?
116503
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116504
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
116505
 
  { (case "(($ac_try" in
116506
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116507
 
  *) ac_try_echo=$ac_try;;
116508
 
esac
116509
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116510
 
$as_echo "$ac_try_echo") >&5
116511
 
  (eval "$ac_try") 2>&5
116512
 
  ac_status=$?
116513
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116514
 
  (exit $ac_status); }; }; then
116515
 
  found=yes
116516
 
else
116517
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
116518
 
$as_echo "$as_me: failed program was:" >&5
116519
 
sed 's/^/| /' conftest.$ac_ext >&5
116520
 
 
116521
 
( exit $ac_status )
116522
 
found=no
116523
 
fi
116524
 
rm -rf conftest.dSYM
116525
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
116526
 
fi
116527
 
 
116528
 
 
116529
 
    LIBS=$ac_libs
116530
 
  fi
116531
 
 
116532
 
  if test "$found" = "yes"; then
116533
 
    
116534
 
  
116535
 
  case resolv in
116536
 
  c|c_r|pthread*) ;;
116537
 
  *) 
116538
 
      LIBS="-lresolv $LIBS" 
116539
 
   ;;
116540
 
  esac
116541
 
 
116542
 
 
116543
 
    
116544
 
cat >>confdefs.h <<\_ACEOF
116545
 
@%:@define HAVE_DN_EXPAND 1
116546
 
_ACEOF
116547
 
 
116548
 
    
116549
 
cat >>confdefs.h <<\_ACEOF
116550
 
@%:@define HAVE_LIBRESOLV 1
116551
 
_ACEOF
116552
 
 
116553
 
    ac_cv_func_dn_expand=yes
116554
 
  else
116555
 
    
116556
 
  
116557
 
  unset ac_cv_lib_bind_dn_expand
116558
 
  unset ac_cv_lib_bind___dn_expand
116559
 
  unset found
116560
 
  { $as_echo "$as_me:$LINENO: checking for dn_expand in -lbind" >&5
116561
 
$as_echo_n "checking for dn_expand in -lbind... " >&6; }
116562
 
if test "${ac_cv_lib_bind_dn_expand+set}" = set; then
116563
 
  $as_echo_n "(cached) " >&6
116564
 
else
116565
 
  ac_check_lib_save_LIBS=$LIBS
116566
 
LIBS="-lbind  $LIBS"
116567
 
cat >conftest.$ac_ext <<_ACEOF
116568
 
/* confdefs.h.  */
116569
 
_ACEOF
116570
 
cat confdefs.h >>conftest.$ac_ext
116571
 
cat >>conftest.$ac_ext <<_ACEOF
116572
 
/* end confdefs.h.  */
116573
 
 
116574
 
/* Override any GCC internal prototype to avoid an error.
116575
 
   Use char because int might match the return type of a GCC
116576
 
   builtin and then its argument prototype would still apply.  */
116577
 
#ifdef __cplusplus
116578
 
extern "C"
116579
 
#endif
116580
 
char dn_expand ();
116581
 
int
116582
 
main ()
116583
 
{
116584
 
return dn_expand ();
116585
 
  ;
116586
 
  return 0;
116587
 
}
116588
 
_ACEOF
116589
 
rm -f conftest.$ac_objext conftest$ac_exeext
116590
 
if { (ac_try="$ac_link"
116591
 
case "(($ac_try" in
116592
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116593
 
  *) ac_try_echo=$ac_try;;
116594
 
esac
116595
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116596
 
$as_echo "$ac_try_echo") >&5
116597
 
  (eval "$ac_link") 2>conftest.er1
116598
 
  ac_status=$?
116599
 
  grep -v '^ *+' conftest.er1 >conftest.err
116600
 
  rm -f conftest.er1
116601
 
  cat conftest.err >&5
116602
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116603
 
  (exit $ac_status); } && {
116604
 
         test -z "$ac_c_werror_flag" ||
116605
 
         test ! -s conftest.err
116606
 
       } && test -s conftest$ac_exeext && {
116607
 
         test "$cross_compiling" = yes ||
116608
 
         $as_test_x conftest$ac_exeext
116609
 
       }; then
116610
 
  ac_cv_lib_bind_dn_expand=yes
116611
 
else
116612
 
  $as_echo "$as_me: failed program was:" >&5
116613
 
sed 's/^/| /' conftest.$ac_ext >&5
116614
 
 
116615
 
        ac_cv_lib_bind_dn_expand=no
116616
 
fi
116617
 
 
116618
 
rm -rf conftest.dSYM
116619
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
116620
 
      conftest$ac_exeext conftest.$ac_ext
116621
 
LIBS=$ac_check_lib_save_LIBS
116622
 
fi
116623
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_dn_expand" >&5
116624
 
$as_echo "$ac_cv_lib_bind_dn_expand" >&6; }
116625
 
if test "x$ac_cv_lib_bind_dn_expand" = x""yes; then
116626
 
  found=yes
116627
 
else
116628
 
  
116629
 
    { $as_echo "$as_me:$LINENO: checking for __dn_expand in -lbind" >&5
116630
 
$as_echo_n "checking for __dn_expand in -lbind... " >&6; }
116631
 
if test "${ac_cv_lib_bind___dn_expand+set}" = set; then
116632
 
  $as_echo_n "(cached) " >&6
116633
 
else
116634
 
  ac_check_lib_save_LIBS=$LIBS
116635
 
LIBS="-lbind  $LIBS"
116636
 
cat >conftest.$ac_ext <<_ACEOF
116637
 
/* confdefs.h.  */
116638
 
_ACEOF
116639
 
cat confdefs.h >>conftest.$ac_ext
116640
 
cat >>conftest.$ac_ext <<_ACEOF
116641
 
/* end confdefs.h.  */
116642
 
 
116643
 
/* Override any GCC internal prototype to avoid an error.
116644
 
   Use char because int might match the return type of a GCC
116645
 
   builtin and then its argument prototype would still apply.  */
116646
 
#ifdef __cplusplus
116647
 
extern "C"
116648
 
#endif
116649
 
char __dn_expand ();
116650
 
int
116651
 
main ()
116652
 
{
116653
 
return __dn_expand ();
116654
 
  ;
116655
 
  return 0;
116656
 
}
116657
 
_ACEOF
116658
 
rm -f conftest.$ac_objext conftest$ac_exeext
116659
 
if { (ac_try="$ac_link"
116660
 
case "(($ac_try" in
116661
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116662
 
  *) ac_try_echo=$ac_try;;
116663
 
esac
116664
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116665
 
$as_echo "$ac_try_echo") >&5
116666
 
  (eval "$ac_link") 2>conftest.er1
116667
 
  ac_status=$?
116668
 
  grep -v '^ *+' conftest.er1 >conftest.err
116669
 
  rm -f conftest.er1
116670
 
  cat conftest.err >&5
116671
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116672
 
  (exit $ac_status); } && {
116673
 
         test -z "$ac_c_werror_flag" ||
116674
 
         test ! -s conftest.err
116675
 
       } && test -s conftest$ac_exeext && {
116676
 
         test "$cross_compiling" = yes ||
116677
 
         $as_test_x conftest$ac_exeext
116678
 
       }; then
116679
 
  ac_cv_lib_bind___dn_expand=yes
116680
 
else
116681
 
  $as_echo "$as_me: failed program was:" >&5
116682
 
sed 's/^/| /' conftest.$ac_ext >&5
116683
 
 
116684
 
        ac_cv_lib_bind___dn_expand=no
116685
 
fi
116686
 
 
116687
 
rm -rf conftest.dSYM
116688
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
116689
 
      conftest$ac_exeext conftest.$ac_ext
116690
 
LIBS=$ac_check_lib_save_LIBS
116691
 
fi
116692
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind___dn_expand" >&5
116693
 
$as_echo "$ac_cv_lib_bind___dn_expand" >&6; }
116694
 
if test "x$ac_cv_lib_bind___dn_expand" = x""yes; then
116695
 
  found=yes
116696
 
else
116697
 
  found=no
116698
 
fi
116699
 
 
116700
 
  
116701
 
fi
116702
 
 
116703
 
 
116704
 
  if test "$found" = "yes"; then
116705
 
    ac_libs=$LIBS
116706
 
    LIBS="$LIBS -lbind"
116707
 
    if test "$cross_compiling" = yes; then
116708
 
  found=no
116709
 
else
116710
 
  cat >conftest.$ac_ext <<_ACEOF
116711
 
/* confdefs.h.  */
116712
 
_ACEOF
116713
 
cat confdefs.h >>conftest.$ac_ext
116714
 
cat >>conftest.$ac_ext <<_ACEOF
116715
 
/* end confdefs.h.  */
116716
 
main() { return (0); }
116717
 
_ACEOF
116718
 
rm -f conftest$ac_exeext
116719
 
if { (ac_try="$ac_link"
116720
 
case "(($ac_try" in
116721
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116722
 
  *) ac_try_echo=$ac_try;;
116723
 
esac
116724
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116725
 
$as_echo "$ac_try_echo") >&5
116726
 
  (eval "$ac_link") 2>&5
116727
 
  ac_status=$?
116728
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116729
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
116730
 
  { (case "(($ac_try" in
116731
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116732
 
  *) ac_try_echo=$ac_try;;
116733
 
esac
116734
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116735
 
$as_echo "$ac_try_echo") >&5
116736
 
  (eval "$ac_try") 2>&5
116737
 
  ac_status=$?
116738
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116739
 
  (exit $ac_status); }; }; then
116740
 
  found=yes
116741
 
else
116742
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
116743
 
$as_echo "$as_me: failed program was:" >&5
116744
 
sed 's/^/| /' conftest.$ac_ext >&5
116745
 
 
116746
 
( exit $ac_status )
116747
 
found=no
116748
 
fi
116749
 
rm -rf conftest.dSYM
116750
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
116751
 
fi
116752
 
 
116753
 
 
116754
 
    LIBS=$ac_libs
116755
 
  fi
116756
 
 
116757
 
  if test "$found" = "yes"; then
116758
 
    
116759
 
  
116760
 
  case bind in
116761
 
  c|c_r|pthread*) ;;
116762
 
  *) 
116763
 
      LIBS="-lbind $LIBS" 
116764
 
   ;;
116765
 
  esac
116766
 
 
116767
 
 
116768
 
    
116769
 
cat >>confdefs.h <<\_ACEOF
116770
 
@%:@define HAVE_DN_EXPAND 1
116771
 
_ACEOF
116772
 
 
116773
 
    
116774
 
cat >>confdefs.h <<\_ACEOF
116775
 
@%:@define HAVE_LIBBIND 1
116776
 
_ACEOF
116777
 
 
116778
 
    ac_cv_func_dn_expand=yes
116779
 
  else
116780
 
    
116781
 
  
116782
 
  unset ac_cv_lib_socket_dn_expand
116783
 
  unset ac_cv_lib_socket___dn_expand
116784
 
  unset found
116785
 
  { $as_echo "$as_me:$LINENO: checking for dn_expand in -lsocket" >&5
116786
 
$as_echo_n "checking for dn_expand in -lsocket... " >&6; }
116787
 
if test "${ac_cv_lib_socket_dn_expand+set}" = set; then
116788
 
  $as_echo_n "(cached) " >&6
116789
 
else
116790
 
  ac_check_lib_save_LIBS=$LIBS
116791
 
LIBS="-lsocket  $LIBS"
116792
 
cat >conftest.$ac_ext <<_ACEOF
116793
 
/* confdefs.h.  */
116794
 
_ACEOF
116795
 
cat confdefs.h >>conftest.$ac_ext
116796
 
cat >>conftest.$ac_ext <<_ACEOF
116797
 
/* end confdefs.h.  */
116798
 
 
116799
 
/* Override any GCC internal prototype to avoid an error.
116800
 
   Use char because int might match the return type of a GCC
116801
 
   builtin and then its argument prototype would still apply.  */
116802
 
#ifdef __cplusplus
116803
 
extern "C"
116804
 
#endif
116805
 
char dn_expand ();
116806
 
int
116807
 
main ()
116808
 
{
116809
 
return dn_expand ();
116810
 
  ;
116811
 
  return 0;
116812
 
}
116813
 
_ACEOF
116814
 
rm -f conftest.$ac_objext conftest$ac_exeext
116815
 
if { (ac_try="$ac_link"
116816
 
case "(($ac_try" in
116817
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116818
 
  *) ac_try_echo=$ac_try;;
116819
 
esac
116820
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116821
 
$as_echo "$ac_try_echo") >&5
116822
 
  (eval "$ac_link") 2>conftest.er1
116823
 
  ac_status=$?
116824
 
  grep -v '^ *+' conftest.er1 >conftest.err
116825
 
  rm -f conftest.er1
116826
 
  cat conftest.err >&5
116827
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116828
 
  (exit $ac_status); } && {
116829
 
         test -z "$ac_c_werror_flag" ||
116830
 
         test ! -s conftest.err
116831
 
       } && test -s conftest$ac_exeext && {
116832
 
         test "$cross_compiling" = yes ||
116833
 
         $as_test_x conftest$ac_exeext
116834
 
       }; then
116835
 
  ac_cv_lib_socket_dn_expand=yes
116836
 
else
116837
 
  $as_echo "$as_me: failed program was:" >&5
116838
 
sed 's/^/| /' conftest.$ac_ext >&5
116839
 
 
116840
 
        ac_cv_lib_socket_dn_expand=no
116841
 
fi
116842
 
 
116843
 
rm -rf conftest.dSYM
116844
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
116845
 
      conftest$ac_exeext conftest.$ac_ext
116846
 
LIBS=$ac_check_lib_save_LIBS
116847
 
fi
116848
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_dn_expand" >&5
116849
 
$as_echo "$ac_cv_lib_socket_dn_expand" >&6; }
116850
 
if test "x$ac_cv_lib_socket_dn_expand" = x""yes; then
116851
 
  found=yes
116852
 
else
116853
 
  
116854
 
    { $as_echo "$as_me:$LINENO: checking for __dn_expand in -lsocket" >&5
116855
 
$as_echo_n "checking for __dn_expand in -lsocket... " >&6; }
116856
 
if test "${ac_cv_lib_socket___dn_expand+set}" = set; then
116857
 
  $as_echo_n "(cached) " >&6
116858
 
else
116859
 
  ac_check_lib_save_LIBS=$LIBS
116860
 
LIBS="-lsocket  $LIBS"
116861
 
cat >conftest.$ac_ext <<_ACEOF
116862
 
/* confdefs.h.  */
116863
 
_ACEOF
116864
 
cat confdefs.h >>conftest.$ac_ext
116865
 
cat >>conftest.$ac_ext <<_ACEOF
116866
 
/* end confdefs.h.  */
116867
 
 
116868
 
/* Override any GCC internal prototype to avoid an error.
116869
 
   Use char because int might match the return type of a GCC
116870
 
   builtin and then its argument prototype would still apply.  */
116871
 
#ifdef __cplusplus
116872
 
extern "C"
116873
 
#endif
116874
 
char __dn_expand ();
116875
 
int
116876
 
main ()
116877
 
{
116878
 
return __dn_expand ();
116879
 
  ;
116880
 
  return 0;
116881
 
}
116882
 
_ACEOF
116883
 
rm -f conftest.$ac_objext conftest$ac_exeext
116884
 
if { (ac_try="$ac_link"
116885
 
case "(($ac_try" in
116886
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116887
 
  *) ac_try_echo=$ac_try;;
116888
 
esac
116889
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116890
 
$as_echo "$ac_try_echo") >&5
116891
 
  (eval "$ac_link") 2>conftest.er1
116892
 
  ac_status=$?
116893
 
  grep -v '^ *+' conftest.er1 >conftest.err
116894
 
  rm -f conftest.er1
116895
 
  cat conftest.err >&5
116896
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116897
 
  (exit $ac_status); } && {
116898
 
         test -z "$ac_c_werror_flag" ||
116899
 
         test ! -s conftest.err
116900
 
       } && test -s conftest$ac_exeext && {
116901
 
         test "$cross_compiling" = yes ||
116902
 
         $as_test_x conftest$ac_exeext
116903
 
       }; then
116904
 
  ac_cv_lib_socket___dn_expand=yes
116905
 
else
116906
 
  $as_echo "$as_me: failed program was:" >&5
116907
 
sed 's/^/| /' conftest.$ac_ext >&5
116908
 
 
116909
 
        ac_cv_lib_socket___dn_expand=no
116910
 
fi
116911
 
 
116912
 
rm -rf conftest.dSYM
116913
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
116914
 
      conftest$ac_exeext conftest.$ac_ext
116915
 
LIBS=$ac_check_lib_save_LIBS
116916
 
fi
116917
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket___dn_expand" >&5
116918
 
$as_echo "$ac_cv_lib_socket___dn_expand" >&6; }
116919
 
if test "x$ac_cv_lib_socket___dn_expand" = x""yes; then
116920
 
  found=yes
116921
 
else
116922
 
  found=no
116923
 
fi
116924
 
 
116925
 
  
116926
 
fi
116927
 
 
116928
 
 
116929
 
  if test "$found" = "yes"; then
116930
 
    ac_libs=$LIBS
116931
 
    LIBS="$LIBS -lsocket"
116932
 
    if test "$cross_compiling" = yes; then
116933
 
  found=no
116934
 
else
116935
 
  cat >conftest.$ac_ext <<_ACEOF
116936
 
/* confdefs.h.  */
116937
 
_ACEOF
116938
 
cat confdefs.h >>conftest.$ac_ext
116939
 
cat >>conftest.$ac_ext <<_ACEOF
116940
 
/* end confdefs.h.  */
116941
 
main() { return (0); }
116942
 
_ACEOF
116943
 
rm -f conftest$ac_exeext
116944
 
if { (ac_try="$ac_link"
116945
 
case "(($ac_try" in
116946
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116947
 
  *) ac_try_echo=$ac_try;;
116948
 
esac
116949
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116950
 
$as_echo "$ac_try_echo") >&5
116951
 
  (eval "$ac_link") 2>&5
116952
 
  ac_status=$?
116953
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116954
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
116955
 
  { (case "(($ac_try" in
116956
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
116957
 
  *) ac_try_echo=$ac_try;;
116958
 
esac
116959
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
116960
 
$as_echo "$ac_try_echo") >&5
116961
 
  (eval "$ac_try") 2>&5
116962
 
  ac_status=$?
116963
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
116964
 
  (exit $ac_status); }; }; then
116965
 
  found=yes
116966
 
else
116967
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
116968
 
$as_echo "$as_me: failed program was:" >&5
116969
 
sed 's/^/| /' conftest.$ac_ext >&5
116970
 
 
116971
 
( exit $ac_status )
116972
 
found=no
116973
 
fi
116974
 
rm -rf conftest.dSYM
116975
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
116976
 
fi
116977
 
 
116978
 
 
116979
 
    LIBS=$ac_libs
116980
 
  fi
116981
 
 
116982
 
  if test "$found" = "yes"; then
116983
 
    
116984
 
  
116985
 
  case socket in
116986
 
  c|c_r|pthread*) ;;
116987
 
  *) 
116988
 
      LIBS="-lsocket $LIBS" 
116989
 
   ;;
116990
 
  esac
116991
 
 
116992
 
 
116993
 
    
116994
 
cat >>confdefs.h <<\_ACEOF
116995
 
@%:@define HAVE_DN_EXPAND 1
116996
 
_ACEOF
116997
 
 
116998
 
    
116999
 
cat >>confdefs.h <<\_ACEOF
117000
 
@%:@define HAVE_LIBSOCKET 1
117001
 
_ACEOF
117002
 
 
117003
 
    ac_cv_func_dn_expand=yes
117004
 
  else
117005
 
    
117006
 
  :
117007
 
 
117008
 
  fi
117009
 
  
117010
 
 
117011
 
  fi
117012
 
  
117013
 
 
117014
 
  fi
117015
 
  
117016
 
 ;;
117017
 
  
117018
 
  esac
117019
 
 
117020
 
 
117021
 
  unset ac_cv_func_dn_skipname
117022
 
  unset ac_cv_func___dn_skipname
117023
 
  unset found
117024
 
  
117025
 
  { $as_echo "$as_me:$LINENO: checking for dn_skipname" >&5
117026
 
$as_echo_n "checking for dn_skipname... " >&6; }
117027
 
if test "${ac_cv_func_dn_skipname+set}" = set; then
117028
 
  $as_echo_n "(cached) " >&6
117029
 
else
117030
 
  cat >conftest.$ac_ext <<_ACEOF
117031
 
/* confdefs.h.  */
117032
 
_ACEOF
117033
 
cat confdefs.h >>conftest.$ac_ext
117034
 
cat >>conftest.$ac_ext <<_ACEOF
117035
 
/* end confdefs.h.  */
117036
 
/* Define dn_skipname to an innocuous variant, in case <limits.h> declares dn_skipname.
117037
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
117038
 
#define dn_skipname innocuous_dn_skipname
117039
 
 
117040
 
/* System header to define __stub macros and hopefully few prototypes,
117041
 
    which can conflict with char dn_skipname (); below.
117042
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
117043
 
    <limits.h> exists even on freestanding compilers.  */
117044
 
 
117045
 
#ifdef __STDC__
117046
 
# include <limits.h>
117047
 
#else
117048
 
# include <assert.h>
117049
 
#endif
117050
 
 
117051
 
#undef dn_skipname
117052
 
 
117053
 
/* Override any GCC internal prototype to avoid an error.
117054
 
   Use char because int might match the return type of a GCC
117055
 
   builtin and then its argument prototype would still apply.  */
117056
 
#ifdef __cplusplus
117057
 
extern "C"
117058
 
#endif
117059
 
char dn_skipname ();
117060
 
/* The GNU C library defines this for functions which it implements
117061
 
    to always fail with ENOSYS.  Some functions are actually named
117062
 
    something starting with __ and the normal name is an alias.  */
117063
 
#if defined __stub_dn_skipname || defined __stub___dn_skipname
117064
 
choke me
117065
 
#endif
117066
 
 
117067
 
int
117068
 
main ()
117069
 
{
117070
 
return dn_skipname ();
117071
 
  ;
117072
 
  return 0;
117073
 
}
117074
 
_ACEOF
117075
 
rm -f conftest.$ac_objext conftest$ac_exeext
117076
 
if { (ac_try="$ac_link"
117077
 
case "(($ac_try" in
117078
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117079
 
  *) ac_try_echo=$ac_try;;
117080
 
esac
117081
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117082
 
$as_echo "$ac_try_echo") >&5
117083
 
  (eval "$ac_link") 2>conftest.er1
117084
 
  ac_status=$?
117085
 
  grep -v '^ *+' conftest.er1 >conftest.err
117086
 
  rm -f conftest.er1
117087
 
  cat conftest.err >&5
117088
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117089
 
  (exit $ac_status); } && {
117090
 
         test -z "$ac_c_werror_flag" ||
117091
 
         test ! -s conftest.err
117092
 
       } && test -s conftest$ac_exeext && {
117093
 
         test "$cross_compiling" = yes ||
117094
 
         $as_test_x conftest$ac_exeext
117095
 
       }; then
117096
 
  ac_cv_func_dn_skipname=yes
117097
 
else
117098
 
  $as_echo "$as_me: failed program was:" >&5
117099
 
sed 's/^/| /' conftest.$ac_ext >&5
117100
 
 
117101
 
        ac_cv_func_dn_skipname=no
117102
 
fi
117103
 
 
117104
 
rm -rf conftest.dSYM
117105
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117106
 
      conftest$ac_exeext conftest.$ac_ext
117107
 
fi
117108
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dn_skipname" >&5
117109
 
$as_echo "$ac_cv_func_dn_skipname" >&6; }
117110
 
if test "x$ac_cv_func_dn_skipname" = x""yes; then
117111
 
  found=yes
117112
 
else
117113
 
   { $as_echo "$as_me:$LINENO: checking for __dn_skipname" >&5
117114
 
$as_echo_n "checking for __dn_skipname... " >&6; }
117115
 
if test "${ac_cv_func___dn_skipname+set}" = set; then
117116
 
  $as_echo_n "(cached) " >&6
117117
 
else
117118
 
  cat >conftest.$ac_ext <<_ACEOF
117119
 
/* confdefs.h.  */
117120
 
_ACEOF
117121
 
cat confdefs.h >>conftest.$ac_ext
117122
 
cat >>conftest.$ac_ext <<_ACEOF
117123
 
/* end confdefs.h.  */
117124
 
/* Define __dn_skipname to an innocuous variant, in case <limits.h> declares __dn_skipname.
117125
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
117126
 
#define __dn_skipname innocuous___dn_skipname
117127
 
 
117128
 
/* System header to define __stub macros and hopefully few prototypes,
117129
 
    which can conflict with char __dn_skipname (); below.
117130
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
117131
 
    <limits.h> exists even on freestanding compilers.  */
117132
 
 
117133
 
#ifdef __STDC__
117134
 
# include <limits.h>
117135
 
#else
117136
 
# include <assert.h>
117137
 
#endif
117138
 
 
117139
 
#undef __dn_skipname
117140
 
 
117141
 
/* Override any GCC internal prototype to avoid an error.
117142
 
   Use char because int might match the return type of a GCC
117143
 
   builtin and then its argument prototype would still apply.  */
117144
 
#ifdef __cplusplus
117145
 
extern "C"
117146
 
#endif
117147
 
char __dn_skipname ();
117148
 
/* The GNU C library defines this for functions which it implements
117149
 
    to always fail with ENOSYS.  Some functions are actually named
117150
 
    something starting with __ and the normal name is an alias.  */
117151
 
#if defined __stub___dn_skipname || defined __stub_____dn_skipname
117152
 
choke me
117153
 
#endif
117154
 
 
117155
 
int
117156
 
main ()
117157
 
{
117158
 
return __dn_skipname ();
117159
 
  ;
117160
 
  return 0;
117161
 
}
117162
 
_ACEOF
117163
 
rm -f conftest.$ac_objext conftest$ac_exeext
117164
 
if { (ac_try="$ac_link"
117165
 
case "(($ac_try" in
117166
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117167
 
  *) ac_try_echo=$ac_try;;
117168
 
esac
117169
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117170
 
$as_echo "$ac_try_echo") >&5
117171
 
  (eval "$ac_link") 2>conftest.er1
117172
 
  ac_status=$?
117173
 
  grep -v '^ *+' conftest.er1 >conftest.err
117174
 
  rm -f conftest.er1
117175
 
  cat conftest.err >&5
117176
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117177
 
  (exit $ac_status); } && {
117178
 
         test -z "$ac_c_werror_flag" ||
117179
 
         test ! -s conftest.err
117180
 
       } && test -s conftest$ac_exeext && {
117181
 
         test "$cross_compiling" = yes ||
117182
 
         $as_test_x conftest$ac_exeext
117183
 
       }; then
117184
 
  ac_cv_func___dn_skipname=yes
117185
 
else
117186
 
  $as_echo "$as_me: failed program was:" >&5
117187
 
sed 's/^/| /' conftest.$ac_ext >&5
117188
 
 
117189
 
        ac_cv_func___dn_skipname=no
117190
 
fi
117191
 
 
117192
 
rm -rf conftest.dSYM
117193
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117194
 
      conftest$ac_exeext conftest.$ac_ext
117195
 
fi
117196
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___dn_skipname" >&5
117197
 
$as_echo "$ac_cv_func___dn_skipname" >&6; }
117198
 
if test "x$ac_cv_func___dn_skipname" = x""yes; then
117199
 
  found=yes
117200
 
else
117201
 
  found=no
117202
 
fi
117203
 
 
117204
 
fi
117205
 
 
117206
 
 
117207
 
  case $found in
117208
 
  yes) 
117209
 
    
117210
 
cat >>confdefs.h <<\_ACEOF
117211
 
@%:@define HAVE_DN_SKIPNAME 1
117212
 
_ACEOF
117213
 
 
117214
 
    ac_cv_func_dn_skipname=yes
117215
 
  ;;
117216
 
  
117217
 
    *) 
117218
 
  
117219
 
  unset ac_cv_lib_resolv_dn_skipname
117220
 
  unset ac_cv_lib_resolv___dn_skipname
117221
 
  unset found
117222
 
  { $as_echo "$as_me:$LINENO: checking for dn_skipname in -lresolv" >&5
117223
 
$as_echo_n "checking for dn_skipname in -lresolv... " >&6; }
117224
 
if test "${ac_cv_lib_resolv_dn_skipname+set}" = set; then
117225
 
  $as_echo_n "(cached) " >&6
117226
 
else
117227
 
  ac_check_lib_save_LIBS=$LIBS
117228
 
LIBS="-lresolv  $LIBS"
117229
 
cat >conftest.$ac_ext <<_ACEOF
117230
 
/* confdefs.h.  */
117231
 
_ACEOF
117232
 
cat confdefs.h >>conftest.$ac_ext
117233
 
cat >>conftest.$ac_ext <<_ACEOF
117234
 
/* end confdefs.h.  */
117235
 
 
117236
 
/* Override any GCC internal prototype to avoid an error.
117237
 
   Use char because int might match the return type of a GCC
117238
 
   builtin and then its argument prototype would still apply.  */
117239
 
#ifdef __cplusplus
117240
 
extern "C"
117241
 
#endif
117242
 
char dn_skipname ();
117243
 
int
117244
 
main ()
117245
 
{
117246
 
return dn_skipname ();
117247
 
  ;
117248
 
  return 0;
117249
 
}
117250
 
_ACEOF
117251
 
rm -f conftest.$ac_objext conftest$ac_exeext
117252
 
if { (ac_try="$ac_link"
117253
 
case "(($ac_try" in
117254
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117255
 
  *) ac_try_echo=$ac_try;;
117256
 
esac
117257
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117258
 
$as_echo "$ac_try_echo") >&5
117259
 
  (eval "$ac_link") 2>conftest.er1
117260
 
  ac_status=$?
117261
 
  grep -v '^ *+' conftest.er1 >conftest.err
117262
 
  rm -f conftest.er1
117263
 
  cat conftest.err >&5
117264
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117265
 
  (exit $ac_status); } && {
117266
 
         test -z "$ac_c_werror_flag" ||
117267
 
         test ! -s conftest.err
117268
 
       } && test -s conftest$ac_exeext && {
117269
 
         test "$cross_compiling" = yes ||
117270
 
         $as_test_x conftest$ac_exeext
117271
 
       }; then
117272
 
  ac_cv_lib_resolv_dn_skipname=yes
117273
 
else
117274
 
  $as_echo "$as_me: failed program was:" >&5
117275
 
sed 's/^/| /' conftest.$ac_ext >&5
117276
 
 
117277
 
        ac_cv_lib_resolv_dn_skipname=no
117278
 
fi
117279
 
 
117280
 
rm -rf conftest.dSYM
117281
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117282
 
      conftest$ac_exeext conftest.$ac_ext
117283
 
LIBS=$ac_check_lib_save_LIBS
117284
 
fi
117285
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_skipname" >&5
117286
 
$as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; }
117287
 
if test "x$ac_cv_lib_resolv_dn_skipname" = x""yes; then
117288
 
  found=yes
117289
 
else
117290
 
  
117291
 
    { $as_echo "$as_me:$LINENO: checking for __dn_skipname in -lresolv" >&5
117292
 
$as_echo_n "checking for __dn_skipname in -lresolv... " >&6; }
117293
 
if test "${ac_cv_lib_resolv___dn_skipname+set}" = set; then
117294
 
  $as_echo_n "(cached) " >&6
117295
 
else
117296
 
  ac_check_lib_save_LIBS=$LIBS
117297
 
LIBS="-lresolv  $LIBS"
117298
 
cat >conftest.$ac_ext <<_ACEOF
117299
 
/* confdefs.h.  */
117300
 
_ACEOF
117301
 
cat confdefs.h >>conftest.$ac_ext
117302
 
cat >>conftest.$ac_ext <<_ACEOF
117303
 
/* end confdefs.h.  */
117304
 
 
117305
 
/* Override any GCC internal prototype to avoid an error.
117306
 
   Use char because int might match the return type of a GCC
117307
 
   builtin and then its argument prototype would still apply.  */
117308
 
#ifdef __cplusplus
117309
 
extern "C"
117310
 
#endif
117311
 
char __dn_skipname ();
117312
 
int
117313
 
main ()
117314
 
{
117315
 
return __dn_skipname ();
117316
 
  ;
117317
 
  return 0;
117318
 
}
117319
 
_ACEOF
117320
 
rm -f conftest.$ac_objext conftest$ac_exeext
117321
 
if { (ac_try="$ac_link"
117322
 
case "(($ac_try" in
117323
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117324
 
  *) ac_try_echo=$ac_try;;
117325
 
esac
117326
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117327
 
$as_echo "$ac_try_echo") >&5
117328
 
  (eval "$ac_link") 2>conftest.er1
117329
 
  ac_status=$?
117330
 
  grep -v '^ *+' conftest.er1 >conftest.err
117331
 
  rm -f conftest.er1
117332
 
  cat conftest.err >&5
117333
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117334
 
  (exit $ac_status); } && {
117335
 
         test -z "$ac_c_werror_flag" ||
117336
 
         test ! -s conftest.err
117337
 
       } && test -s conftest$ac_exeext && {
117338
 
         test "$cross_compiling" = yes ||
117339
 
         $as_test_x conftest$ac_exeext
117340
 
       }; then
117341
 
  ac_cv_lib_resolv___dn_skipname=yes
117342
 
else
117343
 
  $as_echo "$as_me: failed program was:" >&5
117344
 
sed 's/^/| /' conftest.$ac_ext >&5
117345
 
 
117346
 
        ac_cv_lib_resolv___dn_skipname=no
117347
 
fi
117348
 
 
117349
 
rm -rf conftest.dSYM
117350
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117351
 
      conftest$ac_exeext conftest.$ac_ext
117352
 
LIBS=$ac_check_lib_save_LIBS
117353
 
fi
117354
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_skipname" >&5
117355
 
$as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; }
117356
 
if test "x$ac_cv_lib_resolv___dn_skipname" = x""yes; then
117357
 
  found=yes
117358
 
else
117359
 
  found=no
117360
 
fi
117361
 
 
117362
 
  
117363
 
fi
117364
 
 
117365
 
 
117366
 
  if test "$found" = "yes"; then
117367
 
    ac_libs=$LIBS
117368
 
    LIBS="$LIBS -lresolv"
117369
 
    if test "$cross_compiling" = yes; then
117370
 
  found=no
117371
 
else
117372
 
  cat >conftest.$ac_ext <<_ACEOF
117373
 
/* confdefs.h.  */
117374
 
_ACEOF
117375
 
cat confdefs.h >>conftest.$ac_ext
117376
 
cat >>conftest.$ac_ext <<_ACEOF
117377
 
/* end confdefs.h.  */
117378
 
main() { return (0); }
117379
 
_ACEOF
117380
 
rm -f conftest$ac_exeext
117381
 
if { (ac_try="$ac_link"
117382
 
case "(($ac_try" in
117383
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117384
 
  *) ac_try_echo=$ac_try;;
117385
 
esac
117386
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117387
 
$as_echo "$ac_try_echo") >&5
117388
 
  (eval "$ac_link") 2>&5
117389
 
  ac_status=$?
117390
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117391
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
117392
 
  { (case "(($ac_try" in
117393
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117394
 
  *) ac_try_echo=$ac_try;;
117395
 
esac
117396
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117397
 
$as_echo "$ac_try_echo") >&5
117398
 
  (eval "$ac_try") 2>&5
117399
 
  ac_status=$?
117400
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117401
 
  (exit $ac_status); }; }; then
117402
 
  found=yes
117403
 
else
117404
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
117405
 
$as_echo "$as_me: failed program was:" >&5
117406
 
sed 's/^/| /' conftest.$ac_ext >&5
117407
 
 
117408
 
( exit $ac_status )
117409
 
found=no
117410
 
fi
117411
 
rm -rf conftest.dSYM
117412
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
117413
 
fi
117414
 
 
117415
 
 
117416
 
    LIBS=$ac_libs
117417
 
  fi
117418
 
 
117419
 
  if test "$found" = "yes"; then
117420
 
    
117421
 
  
117422
 
  case resolv in
117423
 
  c|c_r|pthread*) ;;
117424
 
  *) 
117425
 
      LIBS="-lresolv $LIBS" 
117426
 
   ;;
117427
 
  esac
117428
 
 
117429
 
 
117430
 
    
117431
 
cat >>confdefs.h <<\_ACEOF
117432
 
@%:@define HAVE_DN_SKIPNAME 1
117433
 
_ACEOF
117434
 
 
117435
 
    
117436
 
cat >>confdefs.h <<\_ACEOF
117437
 
@%:@define HAVE_LIBRESOLV 1
117438
 
_ACEOF
117439
 
 
117440
 
    ac_cv_func_dn_skipname=yes
117441
 
  else
117442
 
    
117443
 
  
117444
 
  unset ac_cv_lib_bind_dn_skipname
117445
 
  unset ac_cv_lib_bind___dn_skipname
117446
 
  unset found
117447
 
  { $as_echo "$as_me:$LINENO: checking for dn_skipname in -lbind" >&5
117448
 
$as_echo_n "checking for dn_skipname in -lbind... " >&6; }
117449
 
if test "${ac_cv_lib_bind_dn_skipname+set}" = set; then
117450
 
  $as_echo_n "(cached) " >&6
117451
 
else
117452
 
  ac_check_lib_save_LIBS=$LIBS
117453
 
LIBS="-lbind  $LIBS"
117454
 
cat >conftest.$ac_ext <<_ACEOF
117455
 
/* confdefs.h.  */
117456
 
_ACEOF
117457
 
cat confdefs.h >>conftest.$ac_ext
117458
 
cat >>conftest.$ac_ext <<_ACEOF
117459
 
/* end confdefs.h.  */
117460
 
 
117461
 
/* Override any GCC internal prototype to avoid an error.
117462
 
   Use char because int might match the return type of a GCC
117463
 
   builtin and then its argument prototype would still apply.  */
117464
 
#ifdef __cplusplus
117465
 
extern "C"
117466
 
#endif
117467
 
char dn_skipname ();
117468
 
int
117469
 
main ()
117470
 
{
117471
 
return dn_skipname ();
117472
 
  ;
117473
 
  return 0;
117474
 
}
117475
 
_ACEOF
117476
 
rm -f conftest.$ac_objext conftest$ac_exeext
117477
 
if { (ac_try="$ac_link"
117478
 
case "(($ac_try" in
117479
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117480
 
  *) ac_try_echo=$ac_try;;
117481
 
esac
117482
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117483
 
$as_echo "$ac_try_echo") >&5
117484
 
  (eval "$ac_link") 2>conftest.er1
117485
 
  ac_status=$?
117486
 
  grep -v '^ *+' conftest.er1 >conftest.err
117487
 
  rm -f conftest.er1
117488
 
  cat conftest.err >&5
117489
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117490
 
  (exit $ac_status); } && {
117491
 
         test -z "$ac_c_werror_flag" ||
117492
 
         test ! -s conftest.err
117493
 
       } && test -s conftest$ac_exeext && {
117494
 
         test "$cross_compiling" = yes ||
117495
 
         $as_test_x conftest$ac_exeext
117496
 
       }; then
117497
 
  ac_cv_lib_bind_dn_skipname=yes
117498
 
else
117499
 
  $as_echo "$as_me: failed program was:" >&5
117500
 
sed 's/^/| /' conftest.$ac_ext >&5
117501
 
 
117502
 
        ac_cv_lib_bind_dn_skipname=no
117503
 
fi
117504
 
 
117505
 
rm -rf conftest.dSYM
117506
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117507
 
      conftest$ac_exeext conftest.$ac_ext
117508
 
LIBS=$ac_check_lib_save_LIBS
117509
 
fi
117510
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_dn_skipname" >&5
117511
 
$as_echo "$ac_cv_lib_bind_dn_skipname" >&6; }
117512
 
if test "x$ac_cv_lib_bind_dn_skipname" = x""yes; then
117513
 
  found=yes
117514
 
else
117515
 
  
117516
 
    { $as_echo "$as_me:$LINENO: checking for __dn_skipname in -lbind" >&5
117517
 
$as_echo_n "checking for __dn_skipname in -lbind... " >&6; }
117518
 
if test "${ac_cv_lib_bind___dn_skipname+set}" = set; then
117519
 
  $as_echo_n "(cached) " >&6
117520
 
else
117521
 
  ac_check_lib_save_LIBS=$LIBS
117522
 
LIBS="-lbind  $LIBS"
117523
 
cat >conftest.$ac_ext <<_ACEOF
117524
 
/* confdefs.h.  */
117525
 
_ACEOF
117526
 
cat confdefs.h >>conftest.$ac_ext
117527
 
cat >>conftest.$ac_ext <<_ACEOF
117528
 
/* end confdefs.h.  */
117529
 
 
117530
 
/* Override any GCC internal prototype to avoid an error.
117531
 
   Use char because int might match the return type of a GCC
117532
 
   builtin and then its argument prototype would still apply.  */
117533
 
#ifdef __cplusplus
117534
 
extern "C"
117535
 
#endif
117536
 
char __dn_skipname ();
117537
 
int
117538
 
main ()
117539
 
{
117540
 
return __dn_skipname ();
117541
 
  ;
117542
 
  return 0;
117543
 
}
117544
 
_ACEOF
117545
 
rm -f conftest.$ac_objext conftest$ac_exeext
117546
 
if { (ac_try="$ac_link"
117547
 
case "(($ac_try" in
117548
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117549
 
  *) ac_try_echo=$ac_try;;
117550
 
esac
117551
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117552
 
$as_echo "$ac_try_echo") >&5
117553
 
  (eval "$ac_link") 2>conftest.er1
117554
 
  ac_status=$?
117555
 
  grep -v '^ *+' conftest.er1 >conftest.err
117556
 
  rm -f conftest.er1
117557
 
  cat conftest.err >&5
117558
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117559
 
  (exit $ac_status); } && {
117560
 
         test -z "$ac_c_werror_flag" ||
117561
 
         test ! -s conftest.err
117562
 
       } && test -s conftest$ac_exeext && {
117563
 
         test "$cross_compiling" = yes ||
117564
 
         $as_test_x conftest$ac_exeext
117565
 
       }; then
117566
 
  ac_cv_lib_bind___dn_skipname=yes
117567
 
else
117568
 
  $as_echo "$as_me: failed program was:" >&5
117569
 
sed 's/^/| /' conftest.$ac_ext >&5
117570
 
 
117571
 
        ac_cv_lib_bind___dn_skipname=no
117572
 
fi
117573
 
 
117574
 
rm -rf conftest.dSYM
117575
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117576
 
      conftest$ac_exeext conftest.$ac_ext
117577
 
LIBS=$ac_check_lib_save_LIBS
117578
 
fi
117579
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind___dn_skipname" >&5
117580
 
$as_echo "$ac_cv_lib_bind___dn_skipname" >&6; }
117581
 
if test "x$ac_cv_lib_bind___dn_skipname" = x""yes; then
117582
 
  found=yes
117583
 
else
117584
 
  found=no
117585
 
fi
117586
 
 
117587
 
  
117588
 
fi
117589
 
 
117590
 
 
117591
 
  if test "$found" = "yes"; then
117592
 
    ac_libs=$LIBS
117593
 
    LIBS="$LIBS -lbind"
117594
 
    if test "$cross_compiling" = yes; then
117595
 
  found=no
117596
 
else
117597
 
  cat >conftest.$ac_ext <<_ACEOF
117598
 
/* confdefs.h.  */
117599
 
_ACEOF
117600
 
cat confdefs.h >>conftest.$ac_ext
117601
 
cat >>conftest.$ac_ext <<_ACEOF
117602
 
/* end confdefs.h.  */
117603
 
main() { return (0); }
117604
 
_ACEOF
117605
 
rm -f conftest$ac_exeext
117606
 
if { (ac_try="$ac_link"
117607
 
case "(($ac_try" in
117608
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117609
 
  *) ac_try_echo=$ac_try;;
117610
 
esac
117611
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117612
 
$as_echo "$ac_try_echo") >&5
117613
 
  (eval "$ac_link") 2>&5
117614
 
  ac_status=$?
117615
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117616
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
117617
 
  { (case "(($ac_try" in
117618
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117619
 
  *) ac_try_echo=$ac_try;;
117620
 
esac
117621
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117622
 
$as_echo "$ac_try_echo") >&5
117623
 
  (eval "$ac_try") 2>&5
117624
 
  ac_status=$?
117625
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117626
 
  (exit $ac_status); }; }; then
117627
 
  found=yes
117628
 
else
117629
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
117630
 
$as_echo "$as_me: failed program was:" >&5
117631
 
sed 's/^/| /' conftest.$ac_ext >&5
117632
 
 
117633
 
( exit $ac_status )
117634
 
found=no
117635
 
fi
117636
 
rm -rf conftest.dSYM
117637
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
117638
 
fi
117639
 
 
117640
 
 
117641
 
    LIBS=$ac_libs
117642
 
  fi
117643
 
 
117644
 
  if test "$found" = "yes"; then
117645
 
    
117646
 
  
117647
 
  case bind in
117648
 
  c|c_r|pthread*) ;;
117649
 
  *) 
117650
 
      LIBS="-lbind $LIBS" 
117651
 
   ;;
117652
 
  esac
117653
 
 
117654
 
 
117655
 
    
117656
 
cat >>confdefs.h <<\_ACEOF
117657
 
@%:@define HAVE_DN_SKIPNAME 1
117658
 
_ACEOF
117659
 
 
117660
 
    
117661
 
cat >>confdefs.h <<\_ACEOF
117662
 
@%:@define HAVE_LIBBIND 1
117663
 
_ACEOF
117664
 
 
117665
 
    ac_cv_func_dn_skipname=yes
117666
 
  else
117667
 
    
117668
 
  
117669
 
  unset ac_cv_lib_socket_dn_skipname
117670
 
  unset ac_cv_lib_socket___dn_skipname
117671
 
  unset found
117672
 
  { $as_echo "$as_me:$LINENO: checking for dn_skipname in -lsocket" >&5
117673
 
$as_echo_n "checking for dn_skipname in -lsocket... " >&6; }
117674
 
if test "${ac_cv_lib_socket_dn_skipname+set}" = set; then
117675
 
  $as_echo_n "(cached) " >&6
117676
 
else
117677
 
  ac_check_lib_save_LIBS=$LIBS
117678
 
LIBS="-lsocket  $LIBS"
117679
 
cat >conftest.$ac_ext <<_ACEOF
117680
 
/* confdefs.h.  */
117681
 
_ACEOF
117682
 
cat confdefs.h >>conftest.$ac_ext
117683
 
cat >>conftest.$ac_ext <<_ACEOF
117684
 
/* end confdefs.h.  */
117685
 
 
117686
 
/* Override any GCC internal prototype to avoid an error.
117687
 
   Use char because int might match the return type of a GCC
117688
 
   builtin and then its argument prototype would still apply.  */
117689
 
#ifdef __cplusplus
117690
 
extern "C"
117691
 
#endif
117692
 
char dn_skipname ();
117693
 
int
117694
 
main ()
117695
 
{
117696
 
return dn_skipname ();
117697
 
  ;
117698
 
  return 0;
117699
 
}
117700
 
_ACEOF
117701
 
rm -f conftest.$ac_objext conftest$ac_exeext
117702
 
if { (ac_try="$ac_link"
117703
 
case "(($ac_try" in
117704
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117705
 
  *) ac_try_echo=$ac_try;;
117706
 
esac
117707
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117708
 
$as_echo "$ac_try_echo") >&5
117709
 
  (eval "$ac_link") 2>conftest.er1
117710
 
  ac_status=$?
117711
 
  grep -v '^ *+' conftest.er1 >conftest.err
117712
 
  rm -f conftest.er1
117713
 
  cat conftest.err >&5
117714
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117715
 
  (exit $ac_status); } && {
117716
 
         test -z "$ac_c_werror_flag" ||
117717
 
         test ! -s conftest.err
117718
 
       } && test -s conftest$ac_exeext && {
117719
 
         test "$cross_compiling" = yes ||
117720
 
         $as_test_x conftest$ac_exeext
117721
 
       }; then
117722
 
  ac_cv_lib_socket_dn_skipname=yes
117723
 
else
117724
 
  $as_echo "$as_me: failed program was:" >&5
117725
 
sed 's/^/| /' conftest.$ac_ext >&5
117726
 
 
117727
 
        ac_cv_lib_socket_dn_skipname=no
117728
 
fi
117729
 
 
117730
 
rm -rf conftest.dSYM
117731
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117732
 
      conftest$ac_exeext conftest.$ac_ext
117733
 
LIBS=$ac_check_lib_save_LIBS
117734
 
fi
117735
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_dn_skipname" >&5
117736
 
$as_echo "$ac_cv_lib_socket_dn_skipname" >&6; }
117737
 
if test "x$ac_cv_lib_socket_dn_skipname" = x""yes; then
117738
 
  found=yes
117739
 
else
117740
 
  
117741
 
    { $as_echo "$as_me:$LINENO: checking for __dn_skipname in -lsocket" >&5
117742
 
$as_echo_n "checking for __dn_skipname in -lsocket... " >&6; }
117743
 
if test "${ac_cv_lib_socket___dn_skipname+set}" = set; then
117744
 
  $as_echo_n "(cached) " >&6
117745
 
else
117746
 
  ac_check_lib_save_LIBS=$LIBS
117747
 
LIBS="-lsocket  $LIBS"
117748
 
cat >conftest.$ac_ext <<_ACEOF
117749
 
/* confdefs.h.  */
117750
 
_ACEOF
117751
 
cat confdefs.h >>conftest.$ac_ext
117752
 
cat >>conftest.$ac_ext <<_ACEOF
117753
 
/* end confdefs.h.  */
117754
 
 
117755
 
/* Override any GCC internal prototype to avoid an error.
117756
 
   Use char because int might match the return type of a GCC
117757
 
   builtin and then its argument prototype would still apply.  */
117758
 
#ifdef __cplusplus
117759
 
extern "C"
117760
 
#endif
117761
 
char __dn_skipname ();
117762
 
int
117763
 
main ()
117764
 
{
117765
 
return __dn_skipname ();
117766
 
  ;
117767
 
  return 0;
117768
 
}
117769
 
_ACEOF
117770
 
rm -f conftest.$ac_objext conftest$ac_exeext
117771
 
if { (ac_try="$ac_link"
117772
 
case "(($ac_try" in
117773
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117774
 
  *) ac_try_echo=$ac_try;;
117775
 
esac
117776
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117777
 
$as_echo "$ac_try_echo") >&5
117778
 
  (eval "$ac_link") 2>conftest.er1
117779
 
  ac_status=$?
117780
 
  grep -v '^ *+' conftest.er1 >conftest.err
117781
 
  rm -f conftest.er1
117782
 
  cat conftest.err >&5
117783
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117784
 
  (exit $ac_status); } && {
117785
 
         test -z "$ac_c_werror_flag" ||
117786
 
         test ! -s conftest.err
117787
 
       } && test -s conftest$ac_exeext && {
117788
 
         test "$cross_compiling" = yes ||
117789
 
         $as_test_x conftest$ac_exeext
117790
 
       }; then
117791
 
  ac_cv_lib_socket___dn_skipname=yes
117792
 
else
117793
 
  $as_echo "$as_me: failed program was:" >&5
117794
 
sed 's/^/| /' conftest.$ac_ext >&5
117795
 
 
117796
 
        ac_cv_lib_socket___dn_skipname=no
117797
 
fi
117798
 
 
117799
 
rm -rf conftest.dSYM
117800
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117801
 
      conftest$ac_exeext conftest.$ac_ext
117802
 
LIBS=$ac_check_lib_save_LIBS
117803
 
fi
117804
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket___dn_skipname" >&5
117805
 
$as_echo "$ac_cv_lib_socket___dn_skipname" >&6; }
117806
 
if test "x$ac_cv_lib_socket___dn_skipname" = x""yes; then
117807
 
  found=yes
117808
 
else
117809
 
  found=no
117810
 
fi
117811
 
 
117812
 
  
117813
 
fi
117814
 
 
117815
 
 
117816
 
  if test "$found" = "yes"; then
117817
 
    ac_libs=$LIBS
117818
 
    LIBS="$LIBS -lsocket"
117819
 
    if test "$cross_compiling" = yes; then
117820
 
  found=no
117821
 
else
117822
 
  cat >conftest.$ac_ext <<_ACEOF
117823
 
/* confdefs.h.  */
117824
 
_ACEOF
117825
 
cat confdefs.h >>conftest.$ac_ext
117826
 
cat >>conftest.$ac_ext <<_ACEOF
117827
 
/* end confdefs.h.  */
117828
 
main() { return (0); }
117829
 
_ACEOF
117830
 
rm -f conftest$ac_exeext
117831
 
if { (ac_try="$ac_link"
117832
 
case "(($ac_try" in
117833
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117834
 
  *) ac_try_echo=$ac_try;;
117835
 
esac
117836
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117837
 
$as_echo "$ac_try_echo") >&5
117838
 
  (eval "$ac_link") 2>&5
117839
 
  ac_status=$?
117840
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117841
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
117842
 
  { (case "(($ac_try" in
117843
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117844
 
  *) ac_try_echo=$ac_try;;
117845
 
esac
117846
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117847
 
$as_echo "$ac_try_echo") >&5
117848
 
  (eval "$ac_try") 2>&5
117849
 
  ac_status=$?
117850
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117851
 
  (exit $ac_status); }; }; then
117852
 
  found=yes
117853
 
else
117854
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
117855
 
$as_echo "$as_me: failed program was:" >&5
117856
 
sed 's/^/| /' conftest.$ac_ext >&5
117857
 
 
117858
 
( exit $ac_status )
117859
 
found=no
117860
 
fi
117861
 
rm -rf conftest.dSYM
117862
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
117863
 
fi
117864
 
 
117865
 
 
117866
 
    LIBS=$ac_libs
117867
 
  fi
117868
 
 
117869
 
  if test "$found" = "yes"; then
117870
 
    
117871
 
  
117872
 
  case socket in
117873
 
  c|c_r|pthread*) ;;
117874
 
  *) 
117875
 
      LIBS="-lsocket $LIBS" 
117876
 
   ;;
117877
 
  esac
117878
 
 
117879
 
 
117880
 
    
117881
 
cat >>confdefs.h <<\_ACEOF
117882
 
@%:@define HAVE_DN_SKIPNAME 1
117883
 
_ACEOF
117884
 
 
117885
 
    
117886
 
cat >>confdefs.h <<\_ACEOF
117887
 
@%:@define HAVE_LIBSOCKET 1
117888
 
_ACEOF
117889
 
 
117890
 
    ac_cv_func_dn_skipname=yes
117891
 
  else
117892
 
    
117893
 
  :
117894
 
 
117895
 
  fi
117896
 
  
117897
 
 
117898
 
  fi
117899
 
  
117900
 
 
117901
 
  fi
117902
 
  
117903
 
 ;;
117904
 
  
117905
 
  esac
117906
 
 
117907
 
 
117908
 
 
117909
 
 
117910
 
  unset ac_cv_func_res_search
117911
 
  unset ac_cv_func___res_search
117912
 
  unset found
117913
 
  
117914
 
  { $as_echo "$as_me:$LINENO: checking for res_search" >&5
117915
 
$as_echo_n "checking for res_search... " >&6; }
117916
 
if test "${ac_cv_func_res_search+set}" = set; then
117917
 
  $as_echo_n "(cached) " >&6
117918
 
else
117919
 
  cat >conftest.$ac_ext <<_ACEOF
117920
 
/* confdefs.h.  */
117921
 
_ACEOF
117922
 
cat confdefs.h >>conftest.$ac_ext
117923
 
cat >>conftest.$ac_ext <<_ACEOF
117924
 
/* end confdefs.h.  */
117925
 
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
117926
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
117927
 
#define res_search innocuous_res_search
117928
 
 
117929
 
/* System header to define __stub macros and hopefully few prototypes,
117930
 
    which can conflict with char res_search (); below.
117931
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
117932
 
    <limits.h> exists even on freestanding compilers.  */
117933
 
 
117934
 
#ifdef __STDC__
117935
 
# include <limits.h>
117936
 
#else
117937
 
# include <assert.h>
117938
 
#endif
117939
 
 
117940
 
#undef res_search
117941
 
 
117942
 
/* Override any GCC internal prototype to avoid an error.
117943
 
   Use char because int might match the return type of a GCC
117944
 
   builtin and then its argument prototype would still apply.  */
117945
 
#ifdef __cplusplus
117946
 
extern "C"
117947
 
#endif
117948
 
char res_search ();
117949
 
/* The GNU C library defines this for functions which it implements
117950
 
    to always fail with ENOSYS.  Some functions are actually named
117951
 
    something starting with __ and the normal name is an alias.  */
117952
 
#if defined __stub_res_search || defined __stub___res_search
117953
 
choke me
117954
 
#endif
117955
 
 
117956
 
int
117957
 
main ()
117958
 
{
117959
 
return res_search ();
117960
 
  ;
117961
 
  return 0;
117962
 
}
117963
 
_ACEOF
117964
 
rm -f conftest.$ac_objext conftest$ac_exeext
117965
 
if { (ac_try="$ac_link"
117966
 
case "(($ac_try" in
117967
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
117968
 
  *) ac_try_echo=$ac_try;;
117969
 
esac
117970
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
117971
 
$as_echo "$ac_try_echo") >&5
117972
 
  (eval "$ac_link") 2>conftest.er1
117973
 
  ac_status=$?
117974
 
  grep -v '^ *+' conftest.er1 >conftest.err
117975
 
  rm -f conftest.er1
117976
 
  cat conftest.err >&5
117977
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
117978
 
  (exit $ac_status); } && {
117979
 
         test -z "$ac_c_werror_flag" ||
117980
 
         test ! -s conftest.err
117981
 
       } && test -s conftest$ac_exeext && {
117982
 
         test "$cross_compiling" = yes ||
117983
 
         $as_test_x conftest$ac_exeext
117984
 
       }; then
117985
 
  ac_cv_func_res_search=yes
117986
 
else
117987
 
  $as_echo "$as_me: failed program was:" >&5
117988
 
sed 's/^/| /' conftest.$ac_ext >&5
117989
 
 
117990
 
        ac_cv_func_res_search=no
117991
 
fi
117992
 
 
117993
 
rm -rf conftest.dSYM
117994
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
117995
 
      conftest$ac_exeext conftest.$ac_ext
117996
 
fi
117997
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
117998
 
$as_echo "$ac_cv_func_res_search" >&6; }
117999
 
if test "x$ac_cv_func_res_search" = x""yes; then
118000
 
  found=yes
118001
 
else
118002
 
   { $as_echo "$as_me:$LINENO: checking for __res_search" >&5
118003
 
$as_echo_n "checking for __res_search... " >&6; }
118004
 
if test "${ac_cv_func___res_search+set}" = set; then
118005
 
  $as_echo_n "(cached) " >&6
118006
 
else
118007
 
  cat >conftest.$ac_ext <<_ACEOF
118008
 
/* confdefs.h.  */
118009
 
_ACEOF
118010
 
cat confdefs.h >>conftest.$ac_ext
118011
 
cat >>conftest.$ac_ext <<_ACEOF
118012
 
/* end confdefs.h.  */
118013
 
/* Define __res_search to an innocuous variant, in case <limits.h> declares __res_search.
118014
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
118015
 
#define __res_search innocuous___res_search
118016
 
 
118017
 
/* System header to define __stub macros and hopefully few prototypes,
118018
 
    which can conflict with char __res_search (); below.
118019
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
118020
 
    <limits.h> exists even on freestanding compilers.  */
118021
 
 
118022
 
#ifdef __STDC__
118023
 
# include <limits.h>
118024
 
#else
118025
 
# include <assert.h>
118026
 
#endif
118027
 
 
118028
 
#undef __res_search
118029
 
 
118030
 
/* Override any GCC internal prototype to avoid an error.
118031
 
   Use char because int might match the return type of a GCC
118032
 
   builtin and then its argument prototype would still apply.  */
118033
 
#ifdef __cplusplus
118034
 
extern "C"
118035
 
#endif
118036
 
char __res_search ();
118037
 
/* The GNU C library defines this for functions which it implements
118038
 
    to always fail with ENOSYS.  Some functions are actually named
118039
 
    something starting with __ and the normal name is an alias.  */
118040
 
#if defined __stub___res_search || defined __stub_____res_search
118041
 
choke me
118042
 
#endif
118043
 
 
118044
 
int
118045
 
main ()
118046
 
{
118047
 
return __res_search ();
118048
 
  ;
118049
 
  return 0;
118050
 
}
118051
 
_ACEOF
118052
 
rm -f conftest.$ac_objext conftest$ac_exeext
118053
 
if { (ac_try="$ac_link"
118054
 
case "(($ac_try" in
118055
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118056
 
  *) ac_try_echo=$ac_try;;
118057
 
esac
118058
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118059
 
$as_echo "$ac_try_echo") >&5
118060
 
  (eval "$ac_link") 2>conftest.er1
118061
 
  ac_status=$?
118062
 
  grep -v '^ *+' conftest.er1 >conftest.err
118063
 
  rm -f conftest.er1
118064
 
  cat conftest.err >&5
118065
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118066
 
  (exit $ac_status); } && {
118067
 
         test -z "$ac_c_werror_flag" ||
118068
 
         test ! -s conftest.err
118069
 
       } && test -s conftest$ac_exeext && {
118070
 
         test "$cross_compiling" = yes ||
118071
 
         $as_test_x conftest$ac_exeext
118072
 
       }; then
118073
 
  ac_cv_func___res_search=yes
118074
 
else
118075
 
  $as_echo "$as_me: failed program was:" >&5
118076
 
sed 's/^/| /' conftest.$ac_ext >&5
118077
 
 
118078
 
        ac_cv_func___res_search=no
118079
 
fi
118080
 
 
118081
 
rm -rf conftest.dSYM
118082
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
118083
 
      conftest$ac_exeext conftest.$ac_ext
118084
 
fi
118085
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_search" >&5
118086
 
$as_echo "$ac_cv_func___res_search" >&6; }
118087
 
if test "x$ac_cv_func___res_search" = x""yes; then
118088
 
  found=yes
118089
 
else
118090
 
  found=no
118091
 
fi
118092
 
 
118093
 
fi
118094
 
 
118095
 
 
118096
 
  case $found in
118097
 
  yes) 
118098
 
    
118099
 
cat >>confdefs.h <<\_ACEOF
118100
 
@%:@define HAVE_RES_SEARCH 1
118101
 
_ACEOF
118102
 
 
118103
 
    ac_cv_func_res_search=yes
118104
 
  ;;
118105
 
  
118106
 
    *) 
118107
 
  
118108
 
  unset ac_cv_lib_resolv_res_search
118109
 
  unset ac_cv_lib_resolv___res_search
118110
 
  unset found
118111
 
  { $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
118112
 
$as_echo_n "checking for res_search in -lresolv... " >&6; }
118113
 
if test "${ac_cv_lib_resolv_res_search+set}" = set; then
118114
 
  $as_echo_n "(cached) " >&6
118115
 
else
118116
 
  ac_check_lib_save_LIBS=$LIBS
118117
 
LIBS="-lresolv  $LIBS"
118118
 
cat >conftest.$ac_ext <<_ACEOF
118119
 
/* confdefs.h.  */
118120
 
_ACEOF
118121
 
cat confdefs.h >>conftest.$ac_ext
118122
 
cat >>conftest.$ac_ext <<_ACEOF
118123
 
/* end confdefs.h.  */
118124
 
 
118125
 
/* Override any GCC internal prototype to avoid an error.
118126
 
   Use char because int might match the return type of a GCC
118127
 
   builtin and then its argument prototype would still apply.  */
118128
 
#ifdef __cplusplus
118129
 
extern "C"
118130
 
#endif
118131
 
char res_search ();
118132
 
int
118133
 
main ()
118134
 
{
118135
 
return res_search ();
118136
 
  ;
118137
 
  return 0;
118138
 
}
118139
 
_ACEOF
118140
 
rm -f conftest.$ac_objext conftest$ac_exeext
118141
 
if { (ac_try="$ac_link"
118142
 
case "(($ac_try" in
118143
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118144
 
  *) ac_try_echo=$ac_try;;
118145
 
esac
118146
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118147
 
$as_echo "$ac_try_echo") >&5
118148
 
  (eval "$ac_link") 2>conftest.er1
118149
 
  ac_status=$?
118150
 
  grep -v '^ *+' conftest.er1 >conftest.err
118151
 
  rm -f conftest.er1
118152
 
  cat conftest.err >&5
118153
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118154
 
  (exit $ac_status); } && {
118155
 
         test -z "$ac_c_werror_flag" ||
118156
 
         test ! -s conftest.err
118157
 
       } && test -s conftest$ac_exeext && {
118158
 
         test "$cross_compiling" = yes ||
118159
 
         $as_test_x conftest$ac_exeext
118160
 
       }; then
118161
 
  ac_cv_lib_resolv_res_search=yes
118162
 
else
118163
 
  $as_echo "$as_me: failed program was:" >&5
118164
 
sed 's/^/| /' conftest.$ac_ext >&5
118165
 
 
118166
 
        ac_cv_lib_resolv_res_search=no
118167
 
fi
118168
 
 
118169
 
rm -rf conftest.dSYM
118170
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
118171
 
      conftest$ac_exeext conftest.$ac_ext
118172
 
LIBS=$ac_check_lib_save_LIBS
118173
 
fi
118174
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
118175
 
$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
118176
 
if test "x$ac_cv_lib_resolv_res_search" = x""yes; then
118177
 
  found=yes
118178
 
else
118179
 
  
118180
 
    { $as_echo "$as_me:$LINENO: checking for __res_search in -lresolv" >&5
118181
 
$as_echo_n "checking for __res_search in -lresolv... " >&6; }
118182
 
if test "${ac_cv_lib_resolv___res_search+set}" = set; then
118183
 
  $as_echo_n "(cached) " >&6
118184
 
else
118185
 
  ac_check_lib_save_LIBS=$LIBS
118186
 
LIBS="-lresolv  $LIBS"
118187
 
cat >conftest.$ac_ext <<_ACEOF
118188
 
/* confdefs.h.  */
118189
 
_ACEOF
118190
 
cat confdefs.h >>conftest.$ac_ext
118191
 
cat >>conftest.$ac_ext <<_ACEOF
118192
 
/* end confdefs.h.  */
118193
 
 
118194
 
/* Override any GCC internal prototype to avoid an error.
118195
 
   Use char because int might match the return type of a GCC
118196
 
   builtin and then its argument prototype would still apply.  */
118197
 
#ifdef __cplusplus
118198
 
extern "C"
118199
 
#endif
118200
 
char __res_search ();
118201
 
int
118202
 
main ()
118203
 
{
118204
 
return __res_search ();
118205
 
  ;
118206
 
  return 0;
118207
 
}
118208
 
_ACEOF
118209
 
rm -f conftest.$ac_objext conftest$ac_exeext
118210
 
if { (ac_try="$ac_link"
118211
 
case "(($ac_try" in
118212
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118213
 
  *) ac_try_echo=$ac_try;;
118214
 
esac
118215
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118216
 
$as_echo "$ac_try_echo") >&5
118217
 
  (eval "$ac_link") 2>conftest.er1
118218
 
  ac_status=$?
118219
 
  grep -v '^ *+' conftest.er1 >conftest.err
118220
 
  rm -f conftest.er1
118221
 
  cat conftest.err >&5
118222
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118223
 
  (exit $ac_status); } && {
118224
 
         test -z "$ac_c_werror_flag" ||
118225
 
         test ! -s conftest.err
118226
 
       } && test -s conftest$ac_exeext && {
118227
 
         test "$cross_compiling" = yes ||
118228
 
         $as_test_x conftest$ac_exeext
118229
 
       }; then
118230
 
  ac_cv_lib_resolv___res_search=yes
118231
 
else
118232
 
  $as_echo "$as_me: failed program was:" >&5
118233
 
sed 's/^/| /' conftest.$ac_ext >&5
118234
 
 
118235
 
        ac_cv_lib_resolv___res_search=no
118236
 
fi
118237
 
 
118238
 
rm -rf conftest.dSYM
118239
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
118240
 
      conftest$ac_exeext conftest.$ac_ext
118241
 
LIBS=$ac_check_lib_save_LIBS
118242
 
fi
118243
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_search" >&5
118244
 
$as_echo "$ac_cv_lib_resolv___res_search" >&6; }
118245
 
if test "x$ac_cv_lib_resolv___res_search" = x""yes; then
118246
 
  found=yes
118247
 
else
118248
 
  found=no
118249
 
fi
118250
 
 
118251
 
  
118252
 
fi
118253
 
 
118254
 
 
118255
 
  if test "$found" = "yes"; then
118256
 
    ac_libs=$LIBS
118257
 
    LIBS="$LIBS -lresolv"
118258
 
    if test "$cross_compiling" = yes; then
118259
 
  found=no
118260
 
else
118261
 
  cat >conftest.$ac_ext <<_ACEOF
118262
 
/* confdefs.h.  */
118263
 
_ACEOF
118264
 
cat confdefs.h >>conftest.$ac_ext
118265
 
cat >>conftest.$ac_ext <<_ACEOF
118266
 
/* end confdefs.h.  */
118267
 
main() { return (0); }
118268
 
_ACEOF
118269
 
rm -f conftest$ac_exeext
118270
 
if { (ac_try="$ac_link"
118271
 
case "(($ac_try" in
118272
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118273
 
  *) ac_try_echo=$ac_try;;
118274
 
esac
118275
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118276
 
$as_echo "$ac_try_echo") >&5
118277
 
  (eval "$ac_link") 2>&5
118278
 
  ac_status=$?
118279
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118280
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
118281
 
  { (case "(($ac_try" in
118282
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118283
 
  *) ac_try_echo=$ac_try;;
118284
 
esac
118285
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118286
 
$as_echo "$ac_try_echo") >&5
118287
 
  (eval "$ac_try") 2>&5
118288
 
  ac_status=$?
118289
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118290
 
  (exit $ac_status); }; }; then
118291
 
  found=yes
118292
 
else
118293
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
118294
 
$as_echo "$as_me: failed program was:" >&5
118295
 
sed 's/^/| /' conftest.$ac_ext >&5
118296
 
 
118297
 
( exit $ac_status )
118298
 
found=no
118299
 
fi
118300
 
rm -rf conftest.dSYM
118301
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118302
 
fi
118303
 
 
118304
 
 
118305
 
    LIBS=$ac_libs
118306
 
  fi
118307
 
 
118308
 
  if test "$found" = "yes"; then
118309
 
    
118310
 
  
118311
 
  case resolv in
118312
 
  c|c_r|pthread*) ;;
118313
 
  *) 
118314
 
      LIBS="-lresolv $LIBS" 
118315
 
   ;;
118316
 
  esac
118317
 
 
118318
 
 
118319
 
    
118320
 
cat >>confdefs.h <<\_ACEOF
118321
 
@%:@define HAVE_RES_SEARCH 1
118322
 
_ACEOF
118323
 
 
118324
 
    
118325
 
cat >>confdefs.h <<\_ACEOF
118326
 
@%:@define HAVE_LIBRESOLV 1
118327
 
_ACEOF
118328
 
 
118329
 
    ac_cv_func_res_search=yes
118330
 
  else
118331
 
    
118332
 
  
118333
 
  unset ac_cv_lib_bind_res_search
118334
 
  unset ac_cv_lib_bind___res_search
118335
 
  unset found
118336
 
  { $as_echo "$as_me:$LINENO: checking for res_search in -lbind" >&5
118337
 
$as_echo_n "checking for res_search in -lbind... " >&6; }
118338
 
if test "${ac_cv_lib_bind_res_search+set}" = set; then
118339
 
  $as_echo_n "(cached) " >&6
118340
 
else
118341
 
  ac_check_lib_save_LIBS=$LIBS
118342
 
LIBS="-lbind  $LIBS"
118343
 
cat >conftest.$ac_ext <<_ACEOF
118344
 
/* confdefs.h.  */
118345
 
_ACEOF
118346
 
cat confdefs.h >>conftest.$ac_ext
118347
 
cat >>conftest.$ac_ext <<_ACEOF
118348
 
/* end confdefs.h.  */
118349
 
 
118350
 
/* Override any GCC internal prototype to avoid an error.
118351
 
   Use char because int might match the return type of a GCC
118352
 
   builtin and then its argument prototype would still apply.  */
118353
 
#ifdef __cplusplus
118354
 
extern "C"
118355
 
#endif
118356
 
char res_search ();
118357
 
int
118358
 
main ()
118359
 
{
118360
 
return res_search ();
118361
 
  ;
118362
 
  return 0;
118363
 
}
118364
 
_ACEOF
118365
 
rm -f conftest.$ac_objext conftest$ac_exeext
118366
 
if { (ac_try="$ac_link"
118367
 
case "(($ac_try" in
118368
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118369
 
  *) ac_try_echo=$ac_try;;
118370
 
esac
118371
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118372
 
$as_echo "$ac_try_echo") >&5
118373
 
  (eval "$ac_link") 2>conftest.er1
118374
 
  ac_status=$?
118375
 
  grep -v '^ *+' conftest.er1 >conftest.err
118376
 
  rm -f conftest.er1
118377
 
  cat conftest.err >&5
118378
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118379
 
  (exit $ac_status); } && {
118380
 
         test -z "$ac_c_werror_flag" ||
118381
 
         test ! -s conftest.err
118382
 
       } && test -s conftest$ac_exeext && {
118383
 
         test "$cross_compiling" = yes ||
118384
 
         $as_test_x conftest$ac_exeext
118385
 
       }; then
118386
 
  ac_cv_lib_bind_res_search=yes
118387
 
else
118388
 
  $as_echo "$as_me: failed program was:" >&5
118389
 
sed 's/^/| /' conftest.$ac_ext >&5
118390
 
 
118391
 
        ac_cv_lib_bind_res_search=no
118392
 
fi
118393
 
 
118394
 
rm -rf conftest.dSYM
118395
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
118396
 
      conftest$ac_exeext conftest.$ac_ext
118397
 
LIBS=$ac_check_lib_save_LIBS
118398
 
fi
118399
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_search" >&5
118400
 
$as_echo "$ac_cv_lib_bind_res_search" >&6; }
118401
 
if test "x$ac_cv_lib_bind_res_search" = x""yes; then
118402
 
  found=yes
118403
 
else
118404
 
  
118405
 
    { $as_echo "$as_me:$LINENO: checking for __res_search in -lbind" >&5
118406
 
$as_echo_n "checking for __res_search in -lbind... " >&6; }
118407
 
if test "${ac_cv_lib_bind___res_search+set}" = set; then
118408
 
  $as_echo_n "(cached) " >&6
118409
 
else
118410
 
  ac_check_lib_save_LIBS=$LIBS
118411
 
LIBS="-lbind  $LIBS"
118412
 
cat >conftest.$ac_ext <<_ACEOF
118413
 
/* confdefs.h.  */
118414
 
_ACEOF
118415
 
cat confdefs.h >>conftest.$ac_ext
118416
 
cat >>conftest.$ac_ext <<_ACEOF
118417
 
/* end confdefs.h.  */
118418
 
 
118419
 
/* Override any GCC internal prototype to avoid an error.
118420
 
   Use char because int might match the return type of a GCC
118421
 
   builtin and then its argument prototype would still apply.  */
118422
 
#ifdef __cplusplus
118423
 
extern "C"
118424
 
#endif
118425
 
char __res_search ();
118426
 
int
118427
 
main ()
118428
 
{
118429
 
return __res_search ();
118430
 
  ;
118431
 
  return 0;
118432
 
}
118433
 
_ACEOF
118434
 
rm -f conftest.$ac_objext conftest$ac_exeext
118435
 
if { (ac_try="$ac_link"
118436
 
case "(($ac_try" in
118437
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118438
 
  *) ac_try_echo=$ac_try;;
118439
 
esac
118440
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118441
 
$as_echo "$ac_try_echo") >&5
118442
 
  (eval "$ac_link") 2>conftest.er1
118443
 
  ac_status=$?
118444
 
  grep -v '^ *+' conftest.er1 >conftest.err
118445
 
  rm -f conftest.er1
118446
 
  cat conftest.err >&5
118447
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118448
 
  (exit $ac_status); } && {
118449
 
         test -z "$ac_c_werror_flag" ||
118450
 
         test ! -s conftest.err
118451
 
       } && test -s conftest$ac_exeext && {
118452
 
         test "$cross_compiling" = yes ||
118453
 
         $as_test_x conftest$ac_exeext
118454
 
       }; then
118455
 
  ac_cv_lib_bind___res_search=yes
118456
 
else
118457
 
  $as_echo "$as_me: failed program was:" >&5
118458
 
sed 's/^/| /' conftest.$ac_ext >&5
118459
 
 
118460
 
        ac_cv_lib_bind___res_search=no
118461
 
fi
118462
 
 
118463
 
rm -rf conftest.dSYM
118464
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
118465
 
      conftest$ac_exeext conftest.$ac_ext
118466
 
LIBS=$ac_check_lib_save_LIBS
118467
 
fi
118468
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_search" >&5
118469
 
$as_echo "$ac_cv_lib_bind___res_search" >&6; }
118470
 
if test "x$ac_cv_lib_bind___res_search" = x""yes; then
118471
 
  found=yes
118472
 
else
118473
 
  found=no
118474
 
fi
118475
 
 
118476
 
  
118477
 
fi
118478
 
 
118479
 
 
118480
 
  if test "$found" = "yes"; then
118481
 
    ac_libs=$LIBS
118482
 
    LIBS="$LIBS -lbind"
118483
 
    if test "$cross_compiling" = yes; then
118484
 
  found=no
118485
 
else
118486
 
  cat >conftest.$ac_ext <<_ACEOF
118487
 
/* confdefs.h.  */
118488
 
_ACEOF
118489
 
cat confdefs.h >>conftest.$ac_ext
118490
 
cat >>conftest.$ac_ext <<_ACEOF
118491
 
/* end confdefs.h.  */
118492
 
main() { return (0); }
118493
 
_ACEOF
118494
 
rm -f conftest$ac_exeext
118495
 
if { (ac_try="$ac_link"
118496
 
case "(($ac_try" in
118497
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118498
 
  *) ac_try_echo=$ac_try;;
118499
 
esac
118500
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118501
 
$as_echo "$ac_try_echo") >&5
118502
 
  (eval "$ac_link") 2>&5
118503
 
  ac_status=$?
118504
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118505
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
118506
 
  { (case "(($ac_try" in
118507
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118508
 
  *) ac_try_echo=$ac_try;;
118509
 
esac
118510
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118511
 
$as_echo "$ac_try_echo") >&5
118512
 
  (eval "$ac_try") 2>&5
118513
 
  ac_status=$?
118514
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118515
 
  (exit $ac_status); }; }; then
118516
 
  found=yes
118517
 
else
118518
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
118519
 
$as_echo "$as_me: failed program was:" >&5
118520
 
sed 's/^/| /' conftest.$ac_ext >&5
118521
 
 
118522
 
( exit $ac_status )
118523
 
found=no
118524
 
fi
118525
 
rm -rf conftest.dSYM
118526
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118527
 
fi
118528
 
 
118529
 
 
118530
 
    LIBS=$ac_libs
118531
 
  fi
118532
 
 
118533
 
  if test "$found" = "yes"; then
118534
 
    
118535
 
  
118536
 
  case bind in
118537
 
  c|c_r|pthread*) ;;
118538
 
  *) 
118539
 
      LIBS="-lbind $LIBS" 
118540
 
   ;;
118541
 
  esac
118542
 
 
118543
 
 
118544
 
    
118545
 
cat >>confdefs.h <<\_ACEOF
118546
 
@%:@define HAVE_RES_SEARCH 1
118547
 
_ACEOF
118548
 
 
118549
 
    
118550
 
cat >>confdefs.h <<\_ACEOF
118551
 
@%:@define HAVE_LIBBIND 1
118552
 
_ACEOF
118553
 
 
118554
 
    ac_cv_func_res_search=yes
118555
 
  else
118556
 
    
118557
 
  
118558
 
  unset ac_cv_lib_socket_res_search
118559
 
  unset ac_cv_lib_socket___res_search
118560
 
  unset found
118561
 
  { $as_echo "$as_me:$LINENO: checking for res_search in -lsocket" >&5
118562
 
$as_echo_n "checking for res_search in -lsocket... " >&6; }
118563
 
if test "${ac_cv_lib_socket_res_search+set}" = set; then
118564
 
  $as_echo_n "(cached) " >&6
118565
 
else
118566
 
  ac_check_lib_save_LIBS=$LIBS
118567
 
LIBS="-lsocket  $LIBS"
118568
 
cat >conftest.$ac_ext <<_ACEOF
118569
 
/* confdefs.h.  */
118570
 
_ACEOF
118571
 
cat confdefs.h >>conftest.$ac_ext
118572
 
cat >>conftest.$ac_ext <<_ACEOF
118573
 
/* end confdefs.h.  */
118574
 
 
118575
 
/* Override any GCC internal prototype to avoid an error.
118576
 
   Use char because int might match the return type of a GCC
118577
 
   builtin and then its argument prototype would still apply.  */
118578
 
#ifdef __cplusplus
118579
 
extern "C"
118580
 
#endif
118581
 
char res_search ();
118582
 
int
118583
 
main ()
118584
 
{
118585
 
return res_search ();
118586
 
  ;
118587
 
  return 0;
118588
 
}
118589
 
_ACEOF
118590
 
rm -f conftest.$ac_objext conftest$ac_exeext
118591
 
if { (ac_try="$ac_link"
118592
 
case "(($ac_try" in
118593
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118594
 
  *) ac_try_echo=$ac_try;;
118595
 
esac
118596
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118597
 
$as_echo "$ac_try_echo") >&5
118598
 
  (eval "$ac_link") 2>conftest.er1
118599
 
  ac_status=$?
118600
 
  grep -v '^ *+' conftest.er1 >conftest.err
118601
 
  rm -f conftest.er1
118602
 
  cat conftest.err >&5
118603
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118604
 
  (exit $ac_status); } && {
118605
 
         test -z "$ac_c_werror_flag" ||
118606
 
         test ! -s conftest.err
118607
 
       } && test -s conftest$ac_exeext && {
118608
 
         test "$cross_compiling" = yes ||
118609
 
         $as_test_x conftest$ac_exeext
118610
 
       }; then
118611
 
  ac_cv_lib_socket_res_search=yes
118612
 
else
118613
 
  $as_echo "$as_me: failed program was:" >&5
118614
 
sed 's/^/| /' conftest.$ac_ext >&5
118615
 
 
118616
 
        ac_cv_lib_socket_res_search=no
118617
 
fi
118618
 
 
118619
 
rm -rf conftest.dSYM
118620
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
118621
 
      conftest$ac_exeext conftest.$ac_ext
118622
 
LIBS=$ac_check_lib_save_LIBS
118623
 
fi
118624
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_res_search" >&5
118625
 
$as_echo "$ac_cv_lib_socket_res_search" >&6; }
118626
 
if test "x$ac_cv_lib_socket_res_search" = x""yes; then
118627
 
  found=yes
118628
 
else
118629
 
  
118630
 
    { $as_echo "$as_me:$LINENO: checking for __res_search in -lsocket" >&5
118631
 
$as_echo_n "checking for __res_search in -lsocket... " >&6; }
118632
 
if test "${ac_cv_lib_socket___res_search+set}" = set; then
118633
 
  $as_echo_n "(cached) " >&6
118634
 
else
118635
 
  ac_check_lib_save_LIBS=$LIBS
118636
 
LIBS="-lsocket  $LIBS"
118637
 
cat >conftest.$ac_ext <<_ACEOF
118638
 
/* confdefs.h.  */
118639
 
_ACEOF
118640
 
cat confdefs.h >>conftest.$ac_ext
118641
 
cat >>conftest.$ac_ext <<_ACEOF
118642
 
/* end confdefs.h.  */
118643
 
 
118644
 
/* Override any GCC internal prototype to avoid an error.
118645
 
   Use char because int might match the return type of a GCC
118646
 
   builtin and then its argument prototype would still apply.  */
118647
 
#ifdef __cplusplus
118648
 
extern "C"
118649
 
#endif
118650
 
char __res_search ();
118651
 
int
118652
 
main ()
118653
 
{
118654
 
return __res_search ();
118655
 
  ;
118656
 
  return 0;
118657
 
}
118658
 
_ACEOF
118659
 
rm -f conftest.$ac_objext conftest$ac_exeext
118660
 
if { (ac_try="$ac_link"
118661
 
case "(($ac_try" in
118662
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118663
 
  *) ac_try_echo=$ac_try;;
118664
 
esac
118665
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118666
 
$as_echo "$ac_try_echo") >&5
118667
 
  (eval "$ac_link") 2>conftest.er1
118668
 
  ac_status=$?
118669
 
  grep -v '^ *+' conftest.er1 >conftest.err
118670
 
  rm -f conftest.er1
118671
 
  cat conftest.err >&5
118672
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118673
 
  (exit $ac_status); } && {
118674
 
         test -z "$ac_c_werror_flag" ||
118675
 
         test ! -s conftest.err
118676
 
       } && test -s conftest$ac_exeext && {
118677
 
         test "$cross_compiling" = yes ||
118678
 
         $as_test_x conftest$ac_exeext
118679
 
       }; then
118680
 
  ac_cv_lib_socket___res_search=yes
118681
 
else
118682
 
  $as_echo "$as_me: failed program was:" >&5
118683
 
sed 's/^/| /' conftest.$ac_ext >&5
118684
 
 
118685
 
        ac_cv_lib_socket___res_search=no
118686
 
fi
118687
 
 
118688
 
rm -rf conftest.dSYM
118689
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
118690
 
      conftest$ac_exeext conftest.$ac_ext
118691
 
LIBS=$ac_check_lib_save_LIBS
118692
 
fi
118693
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket___res_search" >&5
118694
 
$as_echo "$ac_cv_lib_socket___res_search" >&6; }
118695
 
if test "x$ac_cv_lib_socket___res_search" = x""yes; then
118696
 
  found=yes
118697
 
else
118698
 
  found=no
118699
 
fi
118700
 
 
118701
 
  
118702
 
fi
118703
 
 
118704
 
 
118705
 
  if test "$found" = "yes"; then
118706
 
    ac_libs=$LIBS
118707
 
    LIBS="$LIBS -lsocket"
118708
 
    if test "$cross_compiling" = yes; then
118709
 
  found=no
118710
 
else
118711
 
  cat >conftest.$ac_ext <<_ACEOF
118712
 
/* confdefs.h.  */
118713
 
_ACEOF
118714
 
cat confdefs.h >>conftest.$ac_ext
118715
 
cat >>conftest.$ac_ext <<_ACEOF
118716
 
/* end confdefs.h.  */
118717
 
main() { return (0); }
118718
 
_ACEOF
118719
 
rm -f conftest$ac_exeext
118720
 
if { (ac_try="$ac_link"
118721
 
case "(($ac_try" in
118722
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118723
 
  *) ac_try_echo=$ac_try;;
118724
 
esac
118725
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118726
 
$as_echo "$ac_try_echo") >&5
118727
 
  (eval "$ac_link") 2>&5
118728
 
  ac_status=$?
118729
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118730
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
118731
 
  { (case "(($ac_try" in
118732
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118733
 
  *) ac_try_echo=$ac_try;;
118734
 
esac
118735
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118736
 
$as_echo "$ac_try_echo") >&5
118737
 
  (eval "$ac_try") 2>&5
118738
 
  ac_status=$?
118739
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118740
 
  (exit $ac_status); }; }; then
118741
 
  found=yes
118742
 
else
118743
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
118744
 
$as_echo "$as_me: failed program was:" >&5
118745
 
sed 's/^/| /' conftest.$ac_ext >&5
118746
 
 
118747
 
( exit $ac_status )
118748
 
found=no
118749
 
fi
118750
 
rm -rf conftest.dSYM
118751
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118752
 
fi
118753
 
 
118754
 
 
118755
 
    LIBS=$ac_libs
118756
 
  fi
118757
 
 
118758
 
  if test "$found" = "yes"; then
118759
 
    
118760
 
  
118761
 
  case socket in
118762
 
  c|c_r|pthread*) ;;
118763
 
  *) 
118764
 
      LIBS="-lsocket $LIBS" 
118765
 
   ;;
118766
 
  esac
118767
 
 
118768
 
 
118769
 
    
118770
 
cat >>confdefs.h <<\_ACEOF
118771
 
@%:@define HAVE_RES_SEARCH 1
118772
 
_ACEOF
118773
 
 
118774
 
    
118775
 
cat >>confdefs.h <<\_ACEOF
118776
 
@%:@define HAVE_LIBSOCKET 1
118777
 
_ACEOF
118778
 
 
118779
 
    ac_cv_func_res_search=yes
118780
 
  else
118781
 
    
118782
 
  :
118783
 
 
118784
 
  fi
118785
 
  
118786
 
 
118787
 
  fi
118788
 
  
118789
 
 
118790
 
  fi
118791
 
  
118792
 
 ;;
118793
 
  
118794
 
  esac
118795
 
 
118796
 
 
118797
 
{ $as_echo "$as_me:$LINENO: checking whether atof() accepts NAN" >&5
118798
 
$as_echo_n "checking whether atof() accepts NAN... " >&6; }
118799
 
if test "${ac_cv_atof_accept_nan+set}" = set; then
118800
 
  $as_echo_n "(cached) " >&6
118801
 
else
118802
 
  
118803
 
if test "$cross_compiling" = yes; then
118804
 
  
118805
 
  ac_cv_atof_accept_nan=no
118806
 
 
118807
 
else
118808
 
  cat >conftest.$ac_ext <<_ACEOF
118809
 
/* confdefs.h.  */
118810
 
_ACEOF
118811
 
cat confdefs.h >>conftest.$ac_ext
118812
 
cat >>conftest.$ac_ext <<_ACEOF
118813
 
/* end confdefs.h.  */
118814
 
 
118815
 
#include <math.h>
118816
 
#include <stdlib.h>
118817
 
 
118818
 
#ifdef HAVE_ISNAN
118819
 
#define zend_isnan(a) isnan(a)
118820
 
#elif defined(HAVE_FPCLASS)
118821
 
#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
118822
 
#else
118823
 
#define zend_isnan(a) 0
118824
 
#endif
118825
 
 
118826
 
int main(int argc, char** argv)
118827
 
{
118828
 
        return zend_isnan(atof("NAN")) ? 0 : 1;
118829
 
}
118830
 
 
118831
 
_ACEOF
118832
 
rm -f conftest$ac_exeext
118833
 
if { (ac_try="$ac_link"
118834
 
case "(($ac_try" in
118835
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118836
 
  *) ac_try_echo=$ac_try;;
118837
 
esac
118838
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118839
 
$as_echo "$ac_try_echo") >&5
118840
 
  (eval "$ac_link") 2>&5
118841
 
  ac_status=$?
118842
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118843
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
118844
 
  { (case "(($ac_try" in
118845
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118846
 
  *) ac_try_echo=$ac_try;;
118847
 
esac
118848
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118849
 
$as_echo "$ac_try_echo") >&5
118850
 
  (eval "$ac_try") 2>&5
118851
 
  ac_status=$?
118852
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118853
 
  (exit $ac_status); }; }; then
118854
 
  
118855
 
  ac_cv_atof_accept_nan=yes
118856
 
 
118857
 
else
118858
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
118859
 
$as_echo "$as_me: failed program was:" >&5
118860
 
sed 's/^/| /' conftest.$ac_ext >&5
118861
 
 
118862
 
( exit $ac_status )
118863
 
 
118864
 
  ac_cv_atof_accept_nan=no
118865
 
 
118866
 
fi
118867
 
rm -rf conftest.dSYM
118868
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118869
 
fi
118870
 
 
118871
 
 
118872
 
fi
118873
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_atof_accept_nan" >&5
118874
 
$as_echo "$ac_cv_atof_accept_nan" >&6; }
118875
 
if test "$ac_cv_atof_accept_nan" = "yes"; then
118876
 
  
118877
 
cat >>confdefs.h <<\_ACEOF
118878
 
@%:@define HAVE_ATOF_ACCEPTS_NAN 1
118879
 
_ACEOF
118880
 
 
118881
 
fi
118882
 
 
118883
 
{ $as_echo "$as_me:$LINENO: checking whether atof() accepts INF" >&5
118884
 
$as_echo_n "checking whether atof() accepts INF... " >&6; }
118885
 
if test "${ac_cv_atof_accept_inf+set}" = set; then
118886
 
  $as_echo_n "(cached) " >&6
118887
 
else
118888
 
  
118889
 
if test "$cross_compiling" = yes; then
118890
 
  
118891
 
  ac_cv_atof_accept_inf=no
118892
 
 
118893
 
else
118894
 
  cat >conftest.$ac_ext <<_ACEOF
118895
 
/* confdefs.h.  */
118896
 
_ACEOF
118897
 
cat confdefs.h >>conftest.$ac_ext
118898
 
cat >>conftest.$ac_ext <<_ACEOF
118899
 
/* end confdefs.h.  */
118900
 
 
118901
 
#include <math.h>
118902
 
#include <stdlib.h>
118903
 
 
118904
 
#ifdef HAVE_ISINF
118905
 
#define zend_isinf(a) isinf(a)
118906
 
#elif defined(INFINITY)
118907
 
/* Might not work, but is required by ISO C99 */
118908
 
#define zend_isinf(a) (((a)==INFINITY)?1:0)
118909
 
#elif defined(HAVE_FPCLASS)
118910
 
#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
118911
 
#else
118912
 
#define zend_isinf(a) 0
118913
 
#endif
118914
 
 
118915
 
int main(int argc, char** argv)
118916
 
{
118917
 
        return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1;
118918
 
}
118919
 
 
118920
 
_ACEOF
118921
 
rm -f conftest$ac_exeext
118922
 
if { (ac_try="$ac_link"
118923
 
case "(($ac_try" in
118924
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118925
 
  *) ac_try_echo=$ac_try;;
118926
 
esac
118927
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118928
 
$as_echo "$ac_try_echo") >&5
118929
 
  (eval "$ac_link") 2>&5
118930
 
  ac_status=$?
118931
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118932
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
118933
 
  { (case "(($ac_try" in
118934
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
118935
 
  *) ac_try_echo=$ac_try;;
118936
 
esac
118937
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
118938
 
$as_echo "$ac_try_echo") >&5
118939
 
  (eval "$ac_try") 2>&5
118940
 
  ac_status=$?
118941
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
118942
 
  (exit $ac_status); }; }; then
118943
 
  
118944
 
  ac_cv_atof_accept_inf=yes
118945
 
 
118946
 
else
118947
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
118948
 
$as_echo "$as_me: failed program was:" >&5
118949
 
sed 's/^/| /' conftest.$ac_ext >&5
118950
 
 
118951
 
( exit $ac_status )
118952
 
 
118953
 
  ac_cv_atof_accept_inf=no
118954
 
 
118955
 
fi
118956
 
rm -rf conftest.dSYM
118957
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
118958
 
fi
118959
 
 
118960
 
 
118961
 
fi
118962
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_atof_accept_inf" >&5
118963
 
$as_echo "$ac_cv_atof_accept_inf" >&6; }
118964
 
if test "$ac_cv_atof_accept_inf" = "yes"; then
118965
 
  
118966
 
cat >>confdefs.h <<\_ACEOF
118967
 
@%:@define HAVE_ATOF_ACCEPTS_INF 1
118968
 
_ACEOF
118969
 
 
118970
 
fi
118971
 
 
118972
 
{ $as_echo "$as_me:$LINENO: checking whether HUGE_VAL == INF" >&5
118973
 
$as_echo_n "checking whether HUGE_VAL == INF... " >&6; }
118974
 
if test "${ac_cv_huge_val_inf+set}" = set; then
118975
 
  $as_echo_n "(cached) " >&6
118976
 
else
118977
 
  
118978
 
if test "$cross_compiling" = yes; then
118979
 
  
118980
 
  ac_cv_huge_val_inf=yes
118981
 
 
118982
 
else
118983
 
  cat >conftest.$ac_ext <<_ACEOF
118984
 
/* confdefs.h.  */
118985
 
_ACEOF
118986
 
cat confdefs.h >>conftest.$ac_ext
118987
 
cat >>conftest.$ac_ext <<_ACEOF
118988
 
/* end confdefs.h.  */
118989
 
 
118990
 
#include <math.h>
118991
 
#include <stdlib.h>
118992
 
 
118993
 
#ifdef HAVE_ISINF
118994
 
#define zend_isinf(a) isinf(a)
118995
 
#elif defined(INFINITY)
118996
 
/* Might not work, but is required by ISO C99 */
118997
 
#define zend_isinf(a) (((a)==INFINITY)?1:0)
118998
 
#elif defined(HAVE_FPCLASS)
118999
 
#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
119000
 
#else
119001
 
#define zend_isinf(a) 0
119002
 
#endif
119003
 
 
119004
 
int main(int argc, char** argv)
119005
 
{
119006
 
        return zend_isinf(HUGE_VAL) ? 0 : 1;
119007
 
}
119008
 
 
119009
 
_ACEOF
119010
 
rm -f conftest$ac_exeext
119011
 
if { (ac_try="$ac_link"
119012
 
case "(($ac_try" in
119013
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119014
 
  *) ac_try_echo=$ac_try;;
119015
 
esac
119016
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119017
 
$as_echo "$ac_try_echo") >&5
119018
 
  (eval "$ac_link") 2>&5
119019
 
  ac_status=$?
119020
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119021
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
119022
 
  { (case "(($ac_try" in
119023
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119024
 
  *) ac_try_echo=$ac_try;;
119025
 
esac
119026
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119027
 
$as_echo "$ac_try_echo") >&5
119028
 
  (eval "$ac_try") 2>&5
119029
 
  ac_status=$?
119030
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119031
 
  (exit $ac_status); }; }; then
119032
 
  
119033
 
  ac_cv_huge_val_inf=yes
119034
 
 
119035
 
else
119036
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
119037
 
$as_echo "$as_me: failed program was:" >&5
119038
 
sed 's/^/| /' conftest.$ac_ext >&5
119039
 
 
119040
 
( exit $ac_status )
119041
 
 
119042
 
  ac_cv_huge_val_inf=no
119043
 
 
119044
 
fi
119045
 
rm -rf conftest.dSYM
119046
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
119047
 
fi
119048
 
 
119049
 
 
119050
 
fi
119051
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_huge_val_inf" >&5
119052
 
$as_echo "$ac_cv_huge_val_inf" >&6; }
119053
 
if test "$ac_cv_huge_val_inf" = "yes"; then
119054
 
  
119055
 
cat >>confdefs.h <<\_ACEOF
119056
 
@%:@define HAVE_HUGE_VAL_INF 1
119057
 
_ACEOF
119058
 
 
119059
 
fi
119060
 
 
119061
 
{ $as_echo "$as_me:$LINENO: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5
119062
 
$as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; }
119063
 
if test "${ac_cv_huge_val_nan+set}" = set; then
119064
 
  $as_echo_n "(cached) " >&6
119065
 
else
119066
 
  
119067
 
if test "$cross_compiling" = yes; then
119068
 
  
119069
 
  ac_cv_huge_val_nan=yes
119070
 
 
119071
 
else
119072
 
  cat >conftest.$ac_ext <<_ACEOF
119073
 
/* confdefs.h.  */
119074
 
_ACEOF
119075
 
cat confdefs.h >>conftest.$ac_ext
119076
 
cat >>conftest.$ac_ext <<_ACEOF
119077
 
/* end confdefs.h.  */
119078
 
 
119079
 
#include <math.h>
119080
 
#include <stdlib.h>
119081
 
 
119082
 
#ifdef HAVE_ISNAN
119083
 
#define zend_isnan(a) isnan(a)
119084
 
#elif defined(HAVE_FPCLASS)
119085
 
#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
119086
 
#else
119087
 
#define zend_isnan(a) 0
119088
 
#endif
119089
 
 
119090
 
int main(int argc, char** argv)
119091
 
{
119092
 
#if defined(__sparc__) && !(__GNUC__ >= 3)
119093
 
        /* prevent bug #27830 */
119094
 
        return 1;
119095
 
#else
119096
 
        return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1;
119097
 
#endif
119098
 
}
119099
 
 
119100
 
_ACEOF
119101
 
rm -f conftest$ac_exeext
119102
 
if { (ac_try="$ac_link"
119103
 
case "(($ac_try" in
119104
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119105
 
  *) ac_try_echo=$ac_try;;
119106
 
esac
119107
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119108
 
$as_echo "$ac_try_echo") >&5
119109
 
  (eval "$ac_link") 2>&5
119110
 
  ac_status=$?
119111
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119112
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
119113
 
  { (case "(($ac_try" in
119114
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119115
 
  *) ac_try_echo=$ac_try;;
119116
 
esac
119117
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119118
 
$as_echo "$ac_try_echo") >&5
119119
 
  (eval "$ac_try") 2>&5
119120
 
  ac_status=$?
119121
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119122
 
  (exit $ac_status); }; }; then
119123
 
  
119124
 
  ac_cv_huge_val_nan=yes
119125
 
 
119126
 
else
119127
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
119128
 
$as_echo "$as_me: failed program was:" >&5
119129
 
sed 's/^/| /' conftest.$ac_ext >&5
119130
 
 
119131
 
( exit $ac_status )
119132
 
 
119133
 
  ac_cv_huge_val_nan=no
119134
 
 
119135
 
fi
119136
 
rm -rf conftest.dSYM
119137
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
119138
 
fi
119139
 
 
119140
 
 
119141
 
fi
119142
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_huge_val_nan" >&5
119143
 
$as_echo "$ac_cv_huge_val_nan" >&6; }
119144
 
if test "$ac_cv_huge_val_nan" = "yes"; then
119145
 
  
119146
 
cat >>confdefs.h <<\_ACEOF
119147
 
@%:@define HAVE_HUGE_VAL_NAN 1
119148
 
_ACEOF
119149
 
 
119150
 
fi
119151
 
 
119152
 
{ $as_echo "$as_me:$LINENO: checking whether strptime() declaration fails" >&5
119153
 
$as_echo_n "checking whether strptime() declaration fails... " >&6; }
119154
 
if test "${ac_cv_strptime_decl_fails+set}" = set; then
119155
 
  $as_echo_n "(cached) " >&6
119156
 
else
119157
 
  
119158
 
cat >conftest.$ac_ext <<_ACEOF
119159
 
/* confdefs.h.  */
119160
 
_ACEOF
119161
 
cat confdefs.h >>conftest.$ac_ext
119162
 
cat >>conftest.$ac_ext <<_ACEOF
119163
 
/* end confdefs.h.  */
119164
 
 
119165
 
#include <time.h>
119166
 
 
119167
 
int
119168
 
main ()
119169
 
{
119170
 
 
119171
 
#ifndef HAVE_STRPTIME
119172
 
#error no strptime() on this platform
119173
 
#else
119174
 
/* use invalid strptime() declaration to see if it fails to compile */
119175
 
int strptime(const char *s, const char *format, struct tm *tm);
119176
 
#endif
119177
 
 
119178
 
  ;
119179
 
  return 0;
119180
 
}
119181
 
_ACEOF
119182
 
rm -f conftest.$ac_objext
119183
 
if { (ac_try="$ac_compile"
119184
 
case "(($ac_try" in
119185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119186
 
  *) ac_try_echo=$ac_try;;
119187
 
esac
119188
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119189
 
$as_echo "$ac_try_echo") >&5
119190
 
  (eval "$ac_compile") 2>conftest.er1
119191
 
  ac_status=$?
119192
 
  grep -v '^ *+' conftest.er1 >conftest.err
119193
 
  rm -f conftest.er1
119194
 
  cat conftest.err >&5
119195
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119196
 
  (exit $ac_status); } && {
119197
 
         test -z "$ac_c_werror_flag" ||
119198
 
         test ! -s conftest.err
119199
 
       } && test -s conftest.$ac_objext; then
119200
 
  
119201
 
  ac_cv_strptime_decl_fails=no
119202
 
 
119203
 
else
119204
 
  $as_echo "$as_me: failed program was:" >&5
119205
 
sed 's/^/| /' conftest.$ac_ext >&5
119206
 
 
119207
 
        
119208
 
  ac_cv_strptime_decl_fails=yes
119209
 
 
119210
 
fi
119211
 
 
119212
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
119213
 
fi
119214
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_strptime_decl_fails" >&5
119215
 
$as_echo "$ac_cv_strptime_decl_fails" >&6; }
119216
 
if test "$ac_cv_strptime_decl_fails" = "yes"; then
119217
 
  
119218
 
cat >>confdefs.h <<\_ACEOF
119219
 
@%:@define HAVE_STRPTIME_DECL_FAILS 1
119220
 
_ACEOF
119221
 
 
119222
 
fi
119223
 
 
119224
 
 
119225
 
for ac_header in wchar.h
119226
 
do
119227
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
119228
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
119229
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
119230
 
$as_echo_n "checking for $ac_header... " >&6; }
119231
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
119232
 
  $as_echo_n "(cached) " >&6
119233
 
fi
119234
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
119235
 
                 $as_echo "$as_val"'`
119236
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
119237
 
$as_echo "$ac_res" >&6; }
119238
 
else
119239
 
  # Is the header compilable?
119240
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
119241
 
$as_echo_n "checking $ac_header usability... " >&6; }
119242
 
cat >conftest.$ac_ext <<_ACEOF
119243
 
/* confdefs.h.  */
119244
 
_ACEOF
119245
 
cat confdefs.h >>conftest.$ac_ext
119246
 
cat >>conftest.$ac_ext <<_ACEOF
119247
 
/* end confdefs.h.  */
119248
 
$ac_includes_default
119249
 
@%:@include <$ac_header>
119250
 
_ACEOF
119251
 
rm -f conftest.$ac_objext
119252
 
if { (ac_try="$ac_compile"
119253
 
case "(($ac_try" in
119254
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119255
 
  *) ac_try_echo=$ac_try;;
119256
 
esac
119257
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119258
 
$as_echo "$ac_try_echo") >&5
119259
 
  (eval "$ac_compile") 2>conftest.er1
119260
 
  ac_status=$?
119261
 
  grep -v '^ *+' conftest.er1 >conftest.err
119262
 
  rm -f conftest.er1
119263
 
  cat conftest.err >&5
119264
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119265
 
  (exit $ac_status); } && {
119266
 
         test -z "$ac_c_werror_flag" ||
119267
 
         test ! -s conftest.err
119268
 
       } && test -s conftest.$ac_objext; then
119269
 
  ac_header_compiler=yes
119270
 
else
119271
 
  $as_echo "$as_me: failed program was:" >&5
119272
 
sed 's/^/| /' conftest.$ac_ext >&5
119273
 
 
119274
 
        ac_header_compiler=no
119275
 
fi
119276
 
 
119277
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
119278
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
119279
 
$as_echo "$ac_header_compiler" >&6; }
119280
 
 
119281
 
# Is the header present?
119282
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
119283
 
$as_echo_n "checking $ac_header presence... " >&6; }
119284
 
cat >conftest.$ac_ext <<_ACEOF
119285
 
/* confdefs.h.  */
119286
 
_ACEOF
119287
 
cat confdefs.h >>conftest.$ac_ext
119288
 
cat >>conftest.$ac_ext <<_ACEOF
119289
 
/* end confdefs.h.  */
119290
 
@%:@include <$ac_header>
119291
 
_ACEOF
119292
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
119293
 
case "(($ac_try" in
119294
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119295
 
  *) ac_try_echo=$ac_try;;
119296
 
esac
119297
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119298
 
$as_echo "$ac_try_echo") >&5
119299
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
119300
 
  ac_status=$?
119301
 
  grep -v '^ *+' conftest.er1 >conftest.err
119302
 
  rm -f conftest.er1
119303
 
  cat conftest.err >&5
119304
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119305
 
  (exit $ac_status); } >/dev/null && {
119306
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
119307
 
         test ! -s conftest.err
119308
 
       }; then
119309
 
  ac_header_preproc=yes
119310
 
else
119311
 
  $as_echo "$as_me: failed program was:" >&5
119312
 
sed 's/^/| /' conftest.$ac_ext >&5
119313
 
 
119314
 
  ac_header_preproc=no
119315
 
fi
119316
 
 
119317
 
rm -f conftest.err conftest.$ac_ext
119318
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
119319
 
$as_echo "$ac_header_preproc" >&6; }
119320
 
 
119321
 
# So?  What about this header?
119322
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
119323
 
  yes:no: )
119324
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
119325
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
119326
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
119327
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
119328
 
    ac_header_preproc=yes
119329
 
    ;;
119330
 
  no:yes:* )
119331
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
119332
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
119333
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
119334
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
119335
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
119336
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
119337
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
119338
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
119339
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
119340
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
119341
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
119342
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
119343
 
    
119344
 
    ;;
119345
 
esac
119346
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
119347
 
$as_echo_n "checking for $ac_header... " >&6; }
119348
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
119349
 
  $as_echo_n "(cached) " >&6
119350
 
else
119351
 
  eval "$as_ac_Header=\$ac_header_preproc"
119352
 
fi
119353
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
119354
 
                 $as_echo "$as_val"'`
119355
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
119356
 
$as_echo "$ac_res" >&6; }
119357
 
 
119358
 
fi
119359
 
as_val=`eval 'as_val=${'$as_ac_Header'}
119360
 
                 $as_echo "$as_val"'`
119361
 
   if test "x$as_val" = x""yes; then
119362
 
  cat >>confdefs.h <<_ACEOF
119363
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
119364
 
_ACEOF
119365
 
 
119366
 
fi
119367
 
 
119368
 
done
119369
 
 
119370
 
 
119371
 
for ac_func in mblen
119372
 
do
119373
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
119374
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
119375
 
$as_echo_n "checking for $ac_func... " >&6; }
119376
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
119377
 
  $as_echo_n "(cached) " >&6
119378
 
else
119379
 
  cat >conftest.$ac_ext <<_ACEOF
119380
 
/* confdefs.h.  */
119381
 
_ACEOF
119382
 
cat confdefs.h >>conftest.$ac_ext
119383
 
cat >>conftest.$ac_ext <<_ACEOF
119384
 
/* end confdefs.h.  */
119385
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
119386
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
119387
 
#define $ac_func innocuous_$ac_func
119388
 
 
119389
 
/* System header to define __stub macros and hopefully few prototypes,
119390
 
    which can conflict with char $ac_func (); below.
119391
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
119392
 
    <limits.h> exists even on freestanding compilers.  */
119393
 
 
119394
 
#ifdef __STDC__
119395
 
# include <limits.h>
119396
 
#else
119397
 
# include <assert.h>
119398
 
#endif
119399
 
 
119400
 
#undef $ac_func
119401
 
 
119402
 
/* Override any GCC internal prototype to avoid an error.
119403
 
   Use char because int might match the return type of a GCC
119404
 
   builtin and then its argument prototype would still apply.  */
119405
 
#ifdef __cplusplus
119406
 
extern "C"
119407
 
#endif
119408
 
char $ac_func ();
119409
 
/* The GNU C library defines this for functions which it implements
119410
 
    to always fail with ENOSYS.  Some functions are actually named
119411
 
    something starting with __ and the normal name is an alias.  */
119412
 
#if defined __stub_$ac_func || defined __stub___$ac_func
119413
 
choke me
119414
 
#endif
119415
 
 
119416
 
int
119417
 
main ()
119418
 
{
119419
 
return $ac_func ();
119420
 
  ;
119421
 
  return 0;
119422
 
}
119423
 
_ACEOF
119424
 
rm -f conftest.$ac_objext conftest$ac_exeext
119425
 
if { (ac_try="$ac_link"
119426
 
case "(($ac_try" in
119427
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119428
 
  *) ac_try_echo=$ac_try;;
119429
 
esac
119430
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119431
 
$as_echo "$ac_try_echo") >&5
119432
 
  (eval "$ac_link") 2>conftest.er1
119433
 
  ac_status=$?
119434
 
  grep -v '^ *+' conftest.er1 >conftest.err
119435
 
  rm -f conftest.er1
119436
 
  cat conftest.err >&5
119437
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119438
 
  (exit $ac_status); } && {
119439
 
         test -z "$ac_c_werror_flag" ||
119440
 
         test ! -s conftest.err
119441
 
       } && test -s conftest$ac_exeext && {
119442
 
         test "$cross_compiling" = yes ||
119443
 
         $as_test_x conftest$ac_exeext
119444
 
       }; then
119445
 
  eval "$as_ac_var=yes"
119446
 
else
119447
 
  $as_echo "$as_me: failed program was:" >&5
119448
 
sed 's/^/| /' conftest.$ac_ext >&5
119449
 
 
119450
 
        eval "$as_ac_var=no"
119451
 
fi
119452
 
 
119453
 
rm -rf conftest.dSYM
119454
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
119455
 
      conftest$ac_exeext conftest.$ac_ext
119456
 
fi
119457
 
ac_res=`eval 'as_val=${'$as_ac_var'}
119458
 
                 $as_echo "$as_val"'`
119459
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
119460
 
$as_echo "$ac_res" >&6; }
119461
 
as_val=`eval 'as_val=${'$as_ac_var'}
119462
 
                 $as_echo "$as_val"'`
119463
 
   if test "x$as_val" = x""yes; then
119464
 
  cat >>confdefs.h <<_ACEOF
119465
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
119466
 
_ACEOF
119467
 
 
119468
 
fi
119469
 
done
119470
 
 
119471
 
 
119472
 
 
119473
 
for ac_func in mbrlen mbsinit
119474
 
do
119475
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
119476
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
119477
 
$as_echo_n "checking for $ac_func... " >&6; }
119478
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
119479
 
  $as_echo_n "(cached) " >&6
119480
 
else
119481
 
  cat >conftest.$ac_ext <<_ACEOF
119482
 
/* confdefs.h.  */
119483
 
_ACEOF
119484
 
cat confdefs.h >>conftest.$ac_ext
119485
 
cat >>conftest.$ac_ext <<_ACEOF
119486
 
/* end confdefs.h.  */
119487
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
119488
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
119489
 
#define $ac_func innocuous_$ac_func
119490
 
 
119491
 
/* System header to define __stub macros and hopefully few prototypes,
119492
 
    which can conflict with char $ac_func (); below.
119493
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
119494
 
    <limits.h> exists even on freestanding compilers.  */
119495
 
 
119496
 
#ifdef __STDC__
119497
 
# include <limits.h>
119498
 
#else
119499
 
# include <assert.h>
119500
 
#endif
119501
 
 
119502
 
#undef $ac_func
119503
 
 
119504
 
/* Override any GCC internal prototype to avoid an error.
119505
 
   Use char because int might match the return type of a GCC
119506
 
   builtin and then its argument prototype would still apply.  */
119507
 
#ifdef __cplusplus
119508
 
extern "C"
119509
 
#endif
119510
 
char $ac_func ();
119511
 
/* The GNU C library defines this for functions which it implements
119512
 
    to always fail with ENOSYS.  Some functions are actually named
119513
 
    something starting with __ and the normal name is an alias.  */
119514
 
#if defined __stub_$ac_func || defined __stub___$ac_func
119515
 
choke me
119516
 
#endif
119517
 
 
119518
 
int
119519
 
main ()
119520
 
{
119521
 
return $ac_func ();
119522
 
  ;
119523
 
  return 0;
119524
 
}
119525
 
_ACEOF
119526
 
rm -f conftest.$ac_objext conftest$ac_exeext
119527
 
if { (ac_try="$ac_link"
119528
 
case "(($ac_try" in
119529
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119530
 
  *) ac_try_echo=$ac_try;;
119531
 
esac
119532
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119533
 
$as_echo "$ac_try_echo") >&5
119534
 
  (eval "$ac_link") 2>conftest.er1
119535
 
  ac_status=$?
119536
 
  grep -v '^ *+' conftest.er1 >conftest.err
119537
 
  rm -f conftest.er1
119538
 
  cat conftest.err >&5
119539
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119540
 
  (exit $ac_status); } && {
119541
 
         test -z "$ac_c_werror_flag" ||
119542
 
         test ! -s conftest.err
119543
 
       } && test -s conftest$ac_exeext && {
119544
 
         test "$cross_compiling" = yes ||
119545
 
         $as_test_x conftest$ac_exeext
119546
 
       }; then
119547
 
  eval "$as_ac_var=yes"
119548
 
else
119549
 
  $as_echo "$as_me: failed program was:" >&5
119550
 
sed 's/^/| /' conftest.$ac_ext >&5
119551
 
 
119552
 
        eval "$as_ac_var=no"
119553
 
fi
119554
 
 
119555
 
rm -rf conftest.dSYM
119556
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
119557
 
      conftest$ac_exeext conftest.$ac_ext
119558
 
fi
119559
 
ac_res=`eval 'as_val=${'$as_ac_var'}
119560
 
                 $as_echo "$as_val"'`
119561
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
119562
 
$as_echo "$ac_res" >&6; }
119563
 
as_val=`eval 'as_val=${'$as_ac_var'}
119564
 
                 $as_echo "$as_val"'`
119565
 
   if test "x$as_val" = x""yes; then
119566
 
  cat >>confdefs.h <<_ACEOF
119567
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
119568
 
_ACEOF
119569
 
 
119570
 
fi
119571
 
done
119572
 
 
119573
 
{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
119574
 
$as_echo_n "checking for mbstate_t... " >&6; }
119575
 
if test "${ac_cv_type_mbstate_t+set}" = set; then
119576
 
  $as_echo_n "(cached) " >&6
119577
 
else
119578
 
  
119579
 
cat >conftest.$ac_ext <<_ACEOF
119580
 
/* confdefs.h.  */
119581
 
_ACEOF
119582
 
cat confdefs.h >>conftest.$ac_ext
119583
 
cat >>conftest.$ac_ext <<_ACEOF
119584
 
/* end confdefs.h.  */
119585
 
 
119586
 
#ifdef HAVE_WCHAR_H
119587
 
# include <wchar.h>
119588
 
#endif
119589
 
 
119590
 
int
119591
 
main ()
119592
 
{
119593
 
 
119594
 
int __tmp__() { mbstate_t a; }
119595
 
 
119596
 
  ;
119597
 
  return 0;
119598
 
}
119599
 
_ACEOF
119600
 
rm -f conftest.$ac_objext
119601
 
if { (ac_try="$ac_compile"
119602
 
case "(($ac_try" in
119603
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119604
 
  *) ac_try_echo=$ac_try;;
119605
 
esac
119606
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119607
 
$as_echo "$ac_try_echo") >&5
119608
 
  (eval "$ac_compile") 2>conftest.er1
119609
 
  ac_status=$?
119610
 
  grep -v '^ *+' conftest.er1 >conftest.err
119611
 
  rm -f conftest.er1
119612
 
  cat conftest.err >&5
119613
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119614
 
  (exit $ac_status); } && {
119615
 
         test -z "$ac_c_werror_flag" ||
119616
 
         test ! -s conftest.err
119617
 
       } && test -s conftest.$ac_objext; then
119618
 
  
119619
 
  ac_cv_type_mbstate_t=yes
119620
 
 
119621
 
else
119622
 
  $as_echo "$as_me: failed program was:" >&5
119623
 
sed 's/^/| /' conftest.$ac_ext >&5
119624
 
 
119625
 
        
119626
 
  ac_cv_type_mbstate_t=no
119627
 
 
119628
 
fi
119629
 
 
119630
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
119631
 
fi
119632
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
119633
 
$as_echo "$ac_cv_type_mbstate_t" >&6; }
119634
 
if test "$ac_cv_type_mbstate_t" = "yes"; then
119635
 
  
119636
 
cat >>confdefs.h <<\_ACEOF
119637
 
@%:@define HAVE_MBSTATE_T 1
119638
 
_ACEOF
119639
 
 
119640
 
fi
119641
 
 
119642
 
 
119643
 
for ac_header in atomic.h
119644
 
do
119645
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
119646
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
119647
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
119648
 
$as_echo_n "checking for $ac_header... " >&6; }
119649
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
119650
 
  $as_echo_n "(cached) " >&6
119651
 
fi
119652
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
119653
 
                 $as_echo "$as_val"'`
119654
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
119655
 
$as_echo "$ac_res" >&6; }
119656
 
else
119657
 
  # Is the header compilable?
119658
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
119659
 
$as_echo_n "checking $ac_header usability... " >&6; }
119660
 
cat >conftest.$ac_ext <<_ACEOF
119661
 
/* confdefs.h.  */
119662
 
_ACEOF
119663
 
cat confdefs.h >>conftest.$ac_ext
119664
 
cat >>conftest.$ac_ext <<_ACEOF
119665
 
/* end confdefs.h.  */
119666
 
$ac_includes_default
119667
 
@%:@include <$ac_header>
119668
 
_ACEOF
119669
 
rm -f conftest.$ac_objext
119670
 
if { (ac_try="$ac_compile"
119671
 
case "(($ac_try" in
119672
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119673
 
  *) ac_try_echo=$ac_try;;
119674
 
esac
119675
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119676
 
$as_echo "$ac_try_echo") >&5
119677
 
  (eval "$ac_compile") 2>conftest.er1
119678
 
  ac_status=$?
119679
 
  grep -v '^ *+' conftest.er1 >conftest.err
119680
 
  rm -f conftest.er1
119681
 
  cat conftest.err >&5
119682
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119683
 
  (exit $ac_status); } && {
119684
 
         test -z "$ac_c_werror_flag" ||
119685
 
         test ! -s conftest.err
119686
 
       } && test -s conftest.$ac_objext; then
119687
 
  ac_header_compiler=yes
119688
 
else
119689
 
  $as_echo "$as_me: failed program was:" >&5
119690
 
sed 's/^/| /' conftest.$ac_ext >&5
119691
 
 
119692
 
        ac_header_compiler=no
119693
 
fi
119694
 
 
119695
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
119696
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
119697
 
$as_echo "$ac_header_compiler" >&6; }
119698
 
 
119699
 
# Is the header present?
119700
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
119701
 
$as_echo_n "checking $ac_header presence... " >&6; }
119702
 
cat >conftest.$ac_ext <<_ACEOF
119703
 
/* confdefs.h.  */
119704
 
_ACEOF
119705
 
cat confdefs.h >>conftest.$ac_ext
119706
 
cat >>conftest.$ac_ext <<_ACEOF
119707
 
/* end confdefs.h.  */
119708
 
@%:@include <$ac_header>
119709
 
_ACEOF
119710
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
119711
 
case "(($ac_try" in
119712
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
119713
 
  *) ac_try_echo=$ac_try;;
119714
 
esac
119715
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
119716
 
$as_echo "$ac_try_echo") >&5
119717
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
119718
 
  ac_status=$?
119719
 
  grep -v '^ *+' conftest.er1 >conftest.err
119720
 
  rm -f conftest.er1
119721
 
  cat conftest.err >&5
119722
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
119723
 
  (exit $ac_status); } >/dev/null && {
119724
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
119725
 
         test ! -s conftest.err
119726
 
       }; then
119727
 
  ac_header_preproc=yes
119728
 
else
119729
 
  $as_echo "$as_me: failed program was:" >&5
119730
 
sed 's/^/| /' conftest.$ac_ext >&5
119731
 
 
119732
 
  ac_header_preproc=no
119733
 
fi
119734
 
 
119735
 
rm -f conftest.err conftest.$ac_ext
119736
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
119737
 
$as_echo "$ac_header_preproc" >&6; }
119738
 
 
119739
 
# So?  What about this header?
119740
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
119741
 
  yes:no: )
119742
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
119743
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
119744
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
119745
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
119746
 
    ac_header_preproc=yes
119747
 
    ;;
119748
 
  no:yes:* )
119749
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
119750
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
119751
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
119752
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
119753
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
119754
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
119755
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
119756
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
119757
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
119758
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
119759
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
119760
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
119761
 
    
119762
 
    ;;
119763
 
esac
119764
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
119765
 
$as_echo_n "checking for $ac_header... " >&6; }
119766
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
119767
 
  $as_echo_n "(cached) " >&6
119768
 
else
119769
 
  eval "$as_ac_Header=\$ac_header_preproc"
119770
 
fi
119771
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
119772
 
                 $as_echo "$as_val"'`
119773
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
119774
 
$as_echo "$ac_res" >&6; }
119775
 
 
119776
 
fi
119777
 
as_val=`eval 'as_val=${'$as_ac_Header'}
119778
 
                 $as_echo "$as_val"'`
119779
 
   if test "x$as_val" = x""yes; then
119780
 
  cat >>confdefs.h <<_ACEOF
119781
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
119782
 
_ACEOF
119783
 
 
119784
 
fi
119785
 
 
119786
 
done
119787
 
 
119788
 
 
119789
 
 
119790
 
  ext_builddir=ext/standard
119791
 
  ext_srcdir=$abs_srcdir/ext/standard
119792
 
 
119793
 
  ac_extra=
119794
 
 
119795
 
  if test "" != "shared" && test "" != "yes" && test "" != "cli"; then
119796
 
    PHP_STANDARD_SHARED=no
119797
 
    
119798
 
  
119799
 
  case ext/standard in
119800
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
119801
 
  /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
119802
 
  *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
119803
 
  esac
119804
 
  
119805
 
  
119806
 
 
119807
 
  b_c_pre=$php_c_pre
119808
 
  b_cxx_pre=$php_cxx_pre
119809
 
  b_c_meta=$php_c_meta
119810
 
  b_cxx_meta=$php_cxx_meta
119811
 
  b_c_post=$php_c_post
119812
 
  b_cxx_post=$php_cxx_post
119813
 
  b_lo=$php_lo
119814
 
 
119815
 
 
119816
 
  old_IFS=$IFS
119817
 
  for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
119818
 
                            cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
119819
 
                            flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
119820
 
                            info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
119821
 
                            microtime.c pack.c pageinfo.c quot_print.c rand.c \
119822
 
                            soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
119823
 
                            var.c versioning.c assert.c strnatcmp.c levenshtein.c \
119824
 
                            incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
119825
 
                            http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
119826
 
                            var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
119827
 
                            filters.c proc_open.c streamsfuncs.c http.c; do
119828
 
  
119829
 
      IFS=.
119830
 
      set $ac_src
119831
 
      ac_obj=$1
119832
 
      IFS=$old_IFS
119833
 
      
119834
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
119835
 
 
119836
 
      case $ac_src in
119837
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
119838
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
119839
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
119840
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
119841
 
      esac
119842
 
 
119843
 
    cat >>Makefile.objects<<EOF
119844
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
119845
 
        $ac_comp
119846
 
EOF
119847
 
  done
119848
 
 
119849
 
 
119850
 
    EXT_STATIC="$EXT_STATIC standard"
119851
 
    if test "" != "nocli"; then
119852
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
119853
 
    fi
119854
 
  else
119855
 
    if test "" = "shared" || test "" = "yes"; then
119856
 
      PHP_STANDARD_SHARED=yes
119857
 
      
119858
 
  case ext/standard in
119859
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
119860
 
  /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
119861
 
  *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
119862
 
  esac
119863
 
  
119864
 
  
119865
 
 
119866
 
  b_c_pre=$shared_c_pre
119867
 
  b_cxx_pre=$shared_cxx_pre
119868
 
  b_c_meta=$shared_c_meta
119869
 
  b_cxx_meta=$shared_cxx_meta
119870
 
  b_c_post=$shared_c_post
119871
 
  b_cxx_post=$shared_cxx_post
119872
 
  b_lo=$shared_lo
119873
 
 
119874
 
 
119875
 
  old_IFS=$IFS
119876
 
  for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
119877
 
                            cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
119878
 
                            flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
119879
 
                            info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
119880
 
                            microtime.c pack.c pageinfo.c quot_print.c rand.c \
119881
 
                            soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
119882
 
                            var.c versioning.c assert.c strnatcmp.c levenshtein.c \
119883
 
                            incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
119884
 
                            http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
119885
 
                            var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
119886
 
                            filters.c proc_open.c streamsfuncs.c http.c; do
119887
 
  
119888
 
      IFS=.
119889
 
      set $ac_src
119890
 
      ac_obj=$1
119891
 
      IFS=$old_IFS
119892
 
      
119893
 
      shared_objects_standard="$shared_objects_standard $ac_bdir$ac_obj.lo"
119894
 
 
119895
 
      case $ac_src in
119896
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
119897
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
119898
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
119899
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
119900
 
      esac
119901
 
 
119902
 
    cat >>Makefile.objects<<EOF
119903
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
119904
 
        $ac_comp
119905
 
EOF
119906
 
  done
119907
 
 
119908
 
      case $host_alias in
119909
 
        *netware*)
119910
 
          
119911
 
  install_modules="install-modules"
119912
 
 
119913
 
  case $host_alias in
119914
 
    *aix*)
119915
 
      suffix=so
119916
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpstandard.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(PHPSTANDARD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpstandard.so '$ext_builddir'/phpstandard.so'
119917
 
      ;;
119918
 
    *netware*)
119919
 
      suffix=nlm
119920
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) -L$(top_builddir)/netware -lphp5lib $(STANDARD_SHARED_LIBADD)'
119921
 
      ;;
119922
 
    *)
119923
 
      suffix=la
119924
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(PHPSTANDARD_SHARED_LIBADD)'
119925
 
      ;;
119926
 
  esac
119927
 
 
119928
 
  if test "x" = "xyes"; then
119929
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpstandard.$suffix"
119930
 
  else
119931
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpstandard.$suffix"
119932
 
  fi
119933
 
  
119934
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
119935
 
 
119936
 
  cat >>Makefile.objects<<EOF
119937
 
\$(phplibdir)/phpstandard.$suffix: $ext_builddir/phpstandard.$suffix
119938
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpstandard.$suffix \$(phplibdir)
119939
 
 
119940
 
$ext_builddir/phpstandard.$suffix: \$(shared_objects_standard) \$(PHPSTANDARD_SHARED_DEPENDENCIES)
119941
 
        $link_cmd
119942
 
 
119943
 
EOF
119944
 
 
119945
 
          ;;
119946
 
        *)
119947
 
          
119948
 
  install_modules="install-modules"
119949
 
 
119950
 
  case $host_alias in
119951
 
    *aix*)
119952
 
      suffix=so
119953
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/standard.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(STANDARD_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/standard.so '$ext_builddir'/standard.so'
119954
 
      ;;
119955
 
    *netware*)
119956
 
      suffix=nlm
119957
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) -L$(top_builddir)/netware -lphp5lib $(NDARD_SHARED_LIBADD)'
119958
 
      ;;
119959
 
    *)
119960
 
      suffix=la
119961
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_standard) $(STANDARD_SHARED_LIBADD)'
119962
 
      ;;
119963
 
  esac
119964
 
 
119965
 
  if test "x" = "xyes"; then
119966
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/standard.$suffix"
119967
 
  else
119968
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/standard.$suffix"
119969
 
  fi
119970
 
  
119971
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
119972
 
 
119973
 
  cat >>Makefile.objects<<EOF
119974
 
\$(phplibdir)/standard.$suffix: $ext_builddir/standard.$suffix
119975
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/standard.$suffix \$(phplibdir)
119976
 
 
119977
 
$ext_builddir/standard.$suffix: \$(shared_objects_standard) \$(STANDARD_SHARED_DEPENDENCIES)
119978
 
        $link_cmd
119979
 
 
119980
 
EOF
119981
 
 
119982
 
          ;;
119983
 
      esac
119984
 
      
119985
 
cat >>confdefs.h <<_ACEOF
119986
 
@%:@define COMPILE_DL_STANDARD 1
119987
 
_ACEOF
119988
 
 
119989
 
    fi
119990
 
  fi
119991
 
 
119992
 
  if test "" != "shared" && test "" != "yes" && test "" = "cli"; then
119993
 
    PHP_STANDARD_SHARED=no
119994
 
    case "$PHP_SAPI" in
119995
 
      cgi|embed)
119996
 
        
119997
 
  
119998
 
  case ext/standard in
119999
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120000
 
  /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120001
 
  *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120002
 
  esac
120003
 
  
120004
 
  
120005
 
 
120006
 
  b_c_pre=$php_c_pre
120007
 
  b_cxx_pre=$php_cxx_pre
120008
 
  b_c_meta=$php_c_meta
120009
 
  b_cxx_meta=$php_cxx_meta
120010
 
  b_c_post=$php_c_post
120011
 
  b_cxx_post=$php_cxx_post
120012
 
  b_lo=$php_lo
120013
 
 
120014
 
 
120015
 
  old_IFS=$IFS
120016
 
  for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
120017
 
                            cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
120018
 
                            flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
120019
 
                            info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
120020
 
                            microtime.c pack.c pageinfo.c quot_print.c rand.c \
120021
 
                            soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
120022
 
                            var.c versioning.c assert.c strnatcmp.c levenshtein.c \
120023
 
                            incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
120024
 
                            http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
120025
 
                            var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
120026
 
                            filters.c proc_open.c streamsfuncs.c http.c; do
120027
 
  
120028
 
      IFS=.
120029
 
      set $ac_src
120030
 
      ac_obj=$1
120031
 
      IFS=$old_IFS
120032
 
      
120033
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
120034
 
 
120035
 
      case $ac_src in
120036
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120037
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120038
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120039
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120040
 
      esac
120041
 
 
120042
 
    cat >>Makefile.objects<<EOF
120043
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120044
 
        $ac_comp
120045
 
EOF
120046
 
  done
120047
 
 
120048
 
 
120049
 
        EXT_STATIC="$EXT_STATIC standard"
120050
 
        ;;
120051
 
      *)
120052
 
        
120053
 
  
120054
 
  case ext/standard in
120055
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120056
 
  /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120057
 
  *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120058
 
  esac
120059
 
  
120060
 
  
120061
 
 
120062
 
  b_c_pre=$php_c_pre
120063
 
  b_cxx_pre=$php_cxx_pre
120064
 
  b_c_meta=$php_c_meta
120065
 
  b_cxx_meta=$php_cxx_meta
120066
 
  b_c_post=$php_c_post
120067
 
  b_cxx_post=$php_cxx_post
120068
 
  b_lo=$php_lo
120069
 
 
120070
 
 
120071
 
  old_IFS=$IFS
120072
 
  for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
120073
 
                            cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
120074
 
                            flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
120075
 
                            info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
120076
 
                            microtime.c pack.c pageinfo.c quot_print.c rand.c \
120077
 
                            soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
120078
 
                            var.c versioning.c assert.c strnatcmp.c levenshtein.c \
120079
 
                            incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
120080
 
                            http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
120081
 
                            var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
120082
 
                            filters.c proc_open.c streamsfuncs.c http.c; do
120083
 
  
120084
 
      IFS=.
120085
 
      set $ac_src
120086
 
      ac_obj=$1
120087
 
      IFS=$old_IFS
120088
 
      
120089
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
120090
 
 
120091
 
      case $ac_src in
120092
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120093
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120094
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120095
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120096
 
      esac
120097
 
 
120098
 
    cat >>Makefile.objects<<EOF
120099
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120100
 
        $ac_comp
120101
 
EOF
120102
 
  done
120103
 
 
120104
 
 
120105
 
        ;;
120106
 
    esac
120107
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
120108
 
  fi
120109
 
  
120110
 
  
120111
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
120112
 
  
120113
 
 
120114
 
 
120115
 
  if test "$ext_builddir" = "."; then
120116
 
    PHP_PECL_EXTENSION=standard
120117
 
    
120118
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
120119
 
 
120120
 
  fi
120121
 
 
120122
 
 
120123
 
 
120124
 
  src=$ext_srcdir/Makefile.frag
120125
 
  ac_srcdir=$ext_srcdir
120126
 
  ac_builddir=$ext_builddir
120127
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
120128
 
 
120129
 
 
120130
 
  
120131
 
    for header_file in ext/standard/; do
120132
 
      
120133
 
  
120134
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
120135
 
  
120136
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
120137
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
120138
 
    eval "INSTALLHEADERS$unique=set"
120139
 
    
120140
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
120141
 
      
120142
 
  fi
120143
 
 
120144
 
    done 
120145
 
  
120146
 
 
120147
 
 
120148
 
 
120149
 
 
120150
 
php_with_sybase_ct=no
120151
 
 
120152
 
{ $as_echo "$as_me:$LINENO: checking for Sybase-CT support" >&5
120153
 
$as_echo_n "checking for Sybase-CT support... " >&6; }
120154
 
 
120155
 
@%:@ Check whether --with-sybase-ct was given.
120156
 
if test "${with_sybase_ct+set}" = set; then
120157
 
  withval=$with_sybase_ct; PHP_SYBASE_CT=$withval
120158
 
else
120159
 
  
120160
 
  PHP_SYBASE_CT=no
120161
 
  test "$PHP_ENABLE_ALL" && PHP_SYBASE_CT=$PHP_ENABLE_ALL
120162
 
 
120163
 
fi
120164
 
 
120165
 
 
120166
 
 
120167
 
ext_output="yes, shared"
120168
 
ext_shared=yes
120169
 
case $PHP_SYBASE_CT in
120170
 
shared,*)
120171
 
  PHP_SYBASE_CT=`echo "$PHP_SYBASE_CT"|$SED 's/^shared,//'`
120172
 
  ;;
120173
 
shared)
120174
 
  PHP_SYBASE_CT=yes
120175
 
  ;;
120176
 
no)
120177
 
  ext_output=no
120178
 
  ext_shared=no
120179
 
  ;;
120180
 
*)
120181
 
  ext_output=yes
120182
 
  ext_shared=no
120183
 
  ;;
120184
 
esac
120185
 
 
120186
 
 
120187
 
 
120188
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
120189
 
$as_echo "$ext_output" >&6; }
120190
 
 
120191
 
 
120192
 
 
120193
 
 
120194
 
if test "$PHP_SYBASE_CT" != "no"; then
120195
 
 
120196
 
  if test "$PHP_SYBASE" && test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then
120197
 
    { { $as_echo "$as_me:$LINENO: error: You can not use both --with-sybase and --with-sybase-ct in same build!" >&5
120198
 
$as_echo "$as_me: error: You can not use both --with-sybase and --with-sybase-ct in same build!" >&2;}
120199
 
   { (exit 1); exit 1; }; }
120200
 
  fi
120201
 
 
120202
 
  
120203
 
cat >>confdefs.h <<\_ACEOF
120204
 
@%:@define HAVE_SYBASE_CT 1
120205
 
_ACEOF
120206
 
 
120207
 
  
120208
 
  ext_builddir=ext/sybase_ct
120209
 
  ext_srcdir=$abs_srcdir/ext/sybase_ct
120210
 
 
120211
 
  ac_extra=
120212
 
 
120213
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
120214
 
    PHP_SYBASE_CT_SHARED=no
120215
 
    
120216
 
  
120217
 
  case ext/sybase_ct in
120218
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120219
 
  /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120220
 
  *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120221
 
  esac
120222
 
  
120223
 
  
120224
 
 
120225
 
  b_c_pre=$php_c_pre
120226
 
  b_cxx_pre=$php_cxx_pre
120227
 
  b_c_meta=$php_c_meta
120228
 
  b_cxx_meta=$php_cxx_meta
120229
 
  b_c_post=$php_c_post
120230
 
  b_cxx_post=$php_cxx_post
120231
 
  b_lo=$php_lo
120232
 
 
120233
 
 
120234
 
  old_IFS=$IFS
120235
 
  for ac_src in php_sybase_ct.c; do
120236
 
  
120237
 
      IFS=.
120238
 
      set $ac_src
120239
 
      ac_obj=$1
120240
 
      IFS=$old_IFS
120241
 
      
120242
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
120243
 
 
120244
 
      case $ac_src in
120245
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120246
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120247
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120248
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120249
 
      esac
120250
 
 
120251
 
    cat >>Makefile.objects<<EOF
120252
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120253
 
        $ac_comp
120254
 
EOF
120255
 
  done
120256
 
 
120257
 
 
120258
 
    EXT_STATIC="$EXT_STATIC sybase_ct"
120259
 
    if test "$ext_shared" != "nocli"; then
120260
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
120261
 
    fi
120262
 
  else
120263
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
120264
 
      PHP_SYBASE_CT_SHARED=yes
120265
 
      
120266
 
  case ext/sybase_ct in
120267
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120268
 
  /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120269
 
  *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120270
 
  esac
120271
 
  
120272
 
  
120273
 
 
120274
 
  b_c_pre=$shared_c_pre
120275
 
  b_cxx_pre=$shared_cxx_pre
120276
 
  b_c_meta=$shared_c_meta
120277
 
  b_cxx_meta=$shared_cxx_meta
120278
 
  b_c_post=$shared_c_post
120279
 
  b_cxx_post=$shared_cxx_post
120280
 
  b_lo=$shared_lo
120281
 
 
120282
 
 
120283
 
  old_IFS=$IFS
120284
 
  for ac_src in php_sybase_ct.c; do
120285
 
  
120286
 
      IFS=.
120287
 
      set $ac_src
120288
 
      ac_obj=$1
120289
 
      IFS=$old_IFS
120290
 
      
120291
 
      shared_objects_sybase_ct="$shared_objects_sybase_ct $ac_bdir$ac_obj.lo"
120292
 
 
120293
 
      case $ac_src in
120294
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120295
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120296
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120297
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120298
 
      esac
120299
 
 
120300
 
    cat >>Makefile.objects<<EOF
120301
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120302
 
        $ac_comp
120303
 
EOF
120304
 
  done
120305
 
 
120306
 
      case $host_alias in
120307
 
        *netware*)
120308
 
          
120309
 
  install_modules="install-modules"
120310
 
 
120311
 
  case $host_alias in
120312
 
    *aix*)
120313
 
      suffix=so
120314
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsybase_ct.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(PHPSYBASE_CT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsybase_ct.so '$ext_builddir'/phpsybase_ct.so'
120315
 
      ;;
120316
 
    *netware*)
120317
 
      suffix=nlm
120318
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) -L$(top_builddir)/netware -lphp5lib $(SYBASE_CT_SHARED_LIBADD)'
120319
 
      ;;
120320
 
    *)
120321
 
      suffix=la
120322
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(PHPSYBASE_CT_SHARED_LIBADD)'
120323
 
      ;;
120324
 
  esac
120325
 
 
120326
 
  if test "x" = "xyes"; then
120327
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsybase_ct.$suffix"
120328
 
  else
120329
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsybase_ct.$suffix"
120330
 
  fi
120331
 
  
120332
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
120333
 
 
120334
 
  cat >>Makefile.objects<<EOF
120335
 
\$(phplibdir)/phpsybase_ct.$suffix: $ext_builddir/phpsybase_ct.$suffix
120336
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsybase_ct.$suffix \$(phplibdir)
120337
 
 
120338
 
$ext_builddir/phpsybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(PHPSYBASE_CT_SHARED_DEPENDENCIES)
120339
 
        $link_cmd
120340
 
 
120341
 
EOF
120342
 
 
120343
 
          ;;
120344
 
        *)
120345
 
          
120346
 
  install_modules="install-modules"
120347
 
 
120348
 
  case $host_alias in
120349
 
    *aix*)
120350
 
      suffix=so
120351
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sybase_ct.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(SYBASE_CT_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sybase_ct.so '$ext_builddir'/sybase_ct.so'
120352
 
      ;;
120353
 
    *netware*)
120354
 
      suffix=nlm
120355
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) -L$(top_builddir)/netware -lphp5lib $(ASE_CT_SHARED_LIBADD)'
120356
 
      ;;
120357
 
    *)
120358
 
      suffix=la
120359
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sybase_ct) $(SYBASE_CT_SHARED_LIBADD)'
120360
 
      ;;
120361
 
  esac
120362
 
 
120363
 
  if test "x" = "xyes"; then
120364
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sybase_ct.$suffix"
120365
 
  else
120366
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/sybase_ct.$suffix"
120367
 
  fi
120368
 
  
120369
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
120370
 
 
120371
 
  cat >>Makefile.objects<<EOF
120372
 
\$(phplibdir)/sybase_ct.$suffix: $ext_builddir/sybase_ct.$suffix
120373
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/sybase_ct.$suffix \$(phplibdir)
120374
 
 
120375
 
$ext_builddir/sybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(SYBASE_CT_SHARED_DEPENDENCIES)
120376
 
        $link_cmd
120377
 
 
120378
 
EOF
120379
 
 
120380
 
          ;;
120381
 
      esac
120382
 
      
120383
 
cat >>confdefs.h <<_ACEOF
120384
 
@%:@define COMPILE_DL_SYBASE_CT 1
120385
 
_ACEOF
120386
 
 
120387
 
    fi
120388
 
  fi
120389
 
 
120390
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
120391
 
    PHP_SYBASE_CT_SHARED=no
120392
 
    case "$PHP_SAPI" in
120393
 
      cgi|embed)
120394
 
        
120395
 
  
120396
 
  case ext/sybase_ct in
120397
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120398
 
  /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120399
 
  *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120400
 
  esac
120401
 
  
120402
 
  
120403
 
 
120404
 
  b_c_pre=$php_c_pre
120405
 
  b_cxx_pre=$php_cxx_pre
120406
 
  b_c_meta=$php_c_meta
120407
 
  b_cxx_meta=$php_cxx_meta
120408
 
  b_c_post=$php_c_post
120409
 
  b_cxx_post=$php_cxx_post
120410
 
  b_lo=$php_lo
120411
 
 
120412
 
 
120413
 
  old_IFS=$IFS
120414
 
  for ac_src in php_sybase_ct.c; do
120415
 
  
120416
 
      IFS=.
120417
 
      set $ac_src
120418
 
      ac_obj=$1
120419
 
      IFS=$old_IFS
120420
 
      
120421
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
120422
 
 
120423
 
      case $ac_src in
120424
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120425
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120426
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120427
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120428
 
      esac
120429
 
 
120430
 
    cat >>Makefile.objects<<EOF
120431
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120432
 
        $ac_comp
120433
 
EOF
120434
 
  done
120435
 
 
120436
 
 
120437
 
        EXT_STATIC="$EXT_STATIC sybase_ct"
120438
 
        ;;
120439
 
      *)
120440
 
        
120441
 
  
120442
 
  case ext/sybase_ct in
120443
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
120444
 
  /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
120445
 
  *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
120446
 
  esac
120447
 
  
120448
 
  
120449
 
 
120450
 
  b_c_pre=$php_c_pre
120451
 
  b_cxx_pre=$php_cxx_pre
120452
 
  b_c_meta=$php_c_meta
120453
 
  b_cxx_meta=$php_cxx_meta
120454
 
  b_c_post=$php_c_post
120455
 
  b_cxx_post=$php_cxx_post
120456
 
  b_lo=$php_lo
120457
 
 
120458
 
 
120459
 
  old_IFS=$IFS
120460
 
  for ac_src in php_sybase_ct.c; do
120461
 
  
120462
 
      IFS=.
120463
 
      set $ac_src
120464
 
      ac_obj=$1
120465
 
      IFS=$old_IFS
120466
 
      
120467
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
120468
 
 
120469
 
      case $ac_src in
120470
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120471
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120472
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
120473
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
120474
 
      esac
120475
 
 
120476
 
    cat >>Makefile.objects<<EOF
120477
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
120478
 
        $ac_comp
120479
 
EOF
120480
 
  done
120481
 
 
120482
 
 
120483
 
        ;;
120484
 
    esac
120485
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
120486
 
  fi
120487
 
  
120488
 
  
120489
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
120490
 
  
120491
 
 
120492
 
 
120493
 
  if test "$ext_builddir" = "."; then
120494
 
    PHP_PECL_EXTENSION=sybase_ct
120495
 
    
120496
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
120497
 
 
120498
 
  fi
120499
 
 
120500
 
  
120501
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SYBASE_CT_SHARED_LIBADD"
120502
 
 
120503
 
 
120504
 
  if test "$PHP_SYBASE_CT" = "yes"; then
120505
 
    SYBASE_CT_INCDIR=/home/sybase/include
120506
 
    SYBASE_CT_LIBDIR=/home/sybase/lib
120507
 
  else
120508
 
    SYBASE_CT_INCDIR=$PHP_SYBASE_CT/include
120509
 
    SYBASE_CT_LIBDIR=$PHP_SYBASE_CT/lib
120510
 
  fi
120511
 
 
120512
 
    # The cast to long int works around a bug in the HP C Compiler
120513
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
120514
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
120515
 
# This bug is HP SR number 8606223364.
120516
 
{ $as_echo "$as_me:$LINENO: checking size of long int" >&5
120517
 
$as_echo_n "checking size of long int... " >&6; }
120518
 
if test "${ac_cv_sizeof_long_int+set}" = set; then
120519
 
  $as_echo_n "(cached) " >&6
120520
 
else
120521
 
  if test "$cross_compiling" = yes; then
120522
 
  # Depending upon the size, compute the lo and hi bounds.
120523
 
cat >conftest.$ac_ext <<_ACEOF
120524
 
/* confdefs.h.  */
120525
 
_ACEOF
120526
 
cat confdefs.h >>conftest.$ac_ext
120527
 
cat >>conftest.$ac_ext <<_ACEOF
120528
 
/* end confdefs.h.  */
120529
 
$ac_includes_default
120530
 
int
120531
 
main ()
120532
 
{
120533
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) >= 0)@:>@;
120534
 
test_array @<:@0@:>@ = 0
120535
 
 
120536
 
  ;
120537
 
  return 0;
120538
 
}
120539
 
_ACEOF
120540
 
rm -f conftest.$ac_objext
120541
 
if { (ac_try="$ac_compile"
120542
 
case "(($ac_try" in
120543
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120544
 
  *) ac_try_echo=$ac_try;;
120545
 
esac
120546
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
120547
 
$as_echo "$ac_try_echo") >&5
120548
 
  (eval "$ac_compile") 2>conftest.er1
120549
 
  ac_status=$?
120550
 
  grep -v '^ *+' conftest.er1 >conftest.err
120551
 
  rm -f conftest.er1
120552
 
  cat conftest.err >&5
120553
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
120554
 
  (exit $ac_status); } && {
120555
 
         test -z "$ac_c_werror_flag" ||
120556
 
         test ! -s conftest.err
120557
 
       } && test -s conftest.$ac_objext; then
120558
 
  ac_lo=0 ac_mid=0
120559
 
  while :; do
120560
 
    cat >conftest.$ac_ext <<_ACEOF
120561
 
/* confdefs.h.  */
120562
 
_ACEOF
120563
 
cat confdefs.h >>conftest.$ac_ext
120564
 
cat >>conftest.$ac_ext <<_ACEOF
120565
 
/* end confdefs.h.  */
120566
 
$ac_includes_default
120567
 
int
120568
 
main ()
120569
 
{
120570
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)@:>@;
120571
 
test_array @<:@0@:>@ = 0
120572
 
 
120573
 
  ;
120574
 
  return 0;
120575
 
}
120576
 
_ACEOF
120577
 
rm -f conftest.$ac_objext
120578
 
if { (ac_try="$ac_compile"
120579
 
case "(($ac_try" in
120580
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120581
 
  *) ac_try_echo=$ac_try;;
120582
 
esac
120583
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
120584
 
$as_echo "$ac_try_echo") >&5
120585
 
  (eval "$ac_compile") 2>conftest.er1
120586
 
  ac_status=$?
120587
 
  grep -v '^ *+' conftest.er1 >conftest.err
120588
 
  rm -f conftest.er1
120589
 
  cat conftest.err >&5
120590
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
120591
 
  (exit $ac_status); } && {
120592
 
         test -z "$ac_c_werror_flag" ||
120593
 
         test ! -s conftest.err
120594
 
       } && test -s conftest.$ac_objext; then
120595
 
  ac_hi=$ac_mid; break
120596
 
else
120597
 
  $as_echo "$as_me: failed program was:" >&5
120598
 
sed 's/^/| /' conftest.$ac_ext >&5
120599
 
 
120600
 
        ac_lo=`expr $ac_mid + 1`
120601
 
                        if test $ac_lo -le $ac_mid; then
120602
 
                          ac_lo= ac_hi=
120603
 
                          break
120604
 
                        fi
120605
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
120606
 
fi
120607
 
 
120608
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
120609
 
  done
120610
 
else
120611
 
  $as_echo "$as_me: failed program was:" >&5
120612
 
sed 's/^/| /' conftest.$ac_ext >&5
120613
 
 
120614
 
        cat >conftest.$ac_ext <<_ACEOF
120615
 
/* confdefs.h.  */
120616
 
_ACEOF
120617
 
cat confdefs.h >>conftest.$ac_ext
120618
 
cat >>conftest.$ac_ext <<_ACEOF
120619
 
/* end confdefs.h.  */
120620
 
$ac_includes_default
120621
 
int
120622
 
main ()
120623
 
{
120624
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) < 0)@:>@;
120625
 
test_array @<:@0@:>@ = 0
120626
 
 
120627
 
  ;
120628
 
  return 0;
120629
 
}
120630
 
_ACEOF
120631
 
rm -f conftest.$ac_objext
120632
 
if { (ac_try="$ac_compile"
120633
 
case "(($ac_try" in
120634
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120635
 
  *) ac_try_echo=$ac_try;;
120636
 
esac
120637
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
120638
 
$as_echo "$ac_try_echo") >&5
120639
 
  (eval "$ac_compile") 2>conftest.er1
120640
 
  ac_status=$?
120641
 
  grep -v '^ *+' conftest.er1 >conftest.err
120642
 
  rm -f conftest.er1
120643
 
  cat conftest.err >&5
120644
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
120645
 
  (exit $ac_status); } && {
120646
 
         test -z "$ac_c_werror_flag" ||
120647
 
         test ! -s conftest.err
120648
 
       } && test -s conftest.$ac_objext; then
120649
 
  ac_hi=-1 ac_mid=-1
120650
 
  while :; do
120651
 
    cat >conftest.$ac_ext <<_ACEOF
120652
 
/* confdefs.h.  */
120653
 
_ACEOF
120654
 
cat confdefs.h >>conftest.$ac_ext
120655
 
cat >>conftest.$ac_ext <<_ACEOF
120656
 
/* end confdefs.h.  */
120657
 
$ac_includes_default
120658
 
int
120659
 
main ()
120660
 
{
120661
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)@:>@;
120662
 
test_array @<:@0@:>@ = 0
120663
 
 
120664
 
  ;
120665
 
  return 0;
120666
 
}
120667
 
_ACEOF
120668
 
rm -f conftest.$ac_objext
120669
 
if { (ac_try="$ac_compile"
120670
 
case "(($ac_try" in
120671
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120672
 
  *) ac_try_echo=$ac_try;;
120673
 
esac
120674
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
120675
 
$as_echo "$ac_try_echo") >&5
120676
 
  (eval "$ac_compile") 2>conftest.er1
120677
 
  ac_status=$?
120678
 
  grep -v '^ *+' conftest.er1 >conftest.err
120679
 
  rm -f conftest.er1
120680
 
  cat conftest.err >&5
120681
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
120682
 
  (exit $ac_status); } && {
120683
 
         test -z "$ac_c_werror_flag" ||
120684
 
         test ! -s conftest.err
120685
 
       } && test -s conftest.$ac_objext; then
120686
 
  ac_lo=$ac_mid; break
120687
 
else
120688
 
  $as_echo "$as_me: failed program was:" >&5
120689
 
sed 's/^/| /' conftest.$ac_ext >&5
120690
 
 
120691
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
120692
 
                        if test $ac_mid -le $ac_hi; then
120693
 
                          ac_lo= ac_hi=
120694
 
                          break
120695
 
                        fi
120696
 
                        ac_mid=`expr 2 '*' $ac_mid`
120697
 
fi
120698
 
 
120699
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
120700
 
  done
120701
 
else
120702
 
  $as_echo "$as_me: failed program was:" >&5
120703
 
sed 's/^/| /' conftest.$ac_ext >&5
120704
 
 
120705
 
        ac_lo= ac_hi=
120706
 
fi
120707
 
 
120708
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
120709
 
fi
120710
 
 
120711
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
120712
 
# Binary search between lo and hi bounds.
120713
 
while test "x$ac_lo" != "x$ac_hi"; do
120714
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
120715
 
  cat >conftest.$ac_ext <<_ACEOF
120716
 
/* confdefs.h.  */
120717
 
_ACEOF
120718
 
cat confdefs.h >>conftest.$ac_ext
120719
 
cat >>conftest.$ac_ext <<_ACEOF
120720
 
/* end confdefs.h.  */
120721
 
$ac_includes_default
120722
 
int
120723
 
main ()
120724
 
{
120725
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)@:>@;
120726
 
test_array @<:@0@:>@ = 0
120727
 
 
120728
 
  ;
120729
 
  return 0;
120730
 
}
120731
 
_ACEOF
120732
 
rm -f conftest.$ac_objext
120733
 
if { (ac_try="$ac_compile"
120734
 
case "(($ac_try" in
120735
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120736
 
  *) ac_try_echo=$ac_try;;
120737
 
esac
120738
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
120739
 
$as_echo "$ac_try_echo") >&5
120740
 
  (eval "$ac_compile") 2>conftest.er1
120741
 
  ac_status=$?
120742
 
  grep -v '^ *+' conftest.er1 >conftest.err
120743
 
  rm -f conftest.er1
120744
 
  cat conftest.err >&5
120745
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
120746
 
  (exit $ac_status); } && {
120747
 
         test -z "$ac_c_werror_flag" ||
120748
 
         test ! -s conftest.err
120749
 
       } && test -s conftest.$ac_objext; then
120750
 
  ac_hi=$ac_mid
120751
 
else
120752
 
  $as_echo "$as_me: failed program was:" >&5
120753
 
sed 's/^/| /' conftest.$ac_ext >&5
120754
 
 
120755
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
120756
 
fi
120757
 
 
120758
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
120759
 
done
120760
 
case $ac_lo in
120761
 
?*) ac_cv_sizeof_long_int=$ac_lo;;
120762
 
'') if test "$ac_cv_type_long_int" = yes; then
120763
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
120764
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
120765
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
120766
 
See \`config.log' for more details." >&5
120767
 
$as_echo "$as_me: error: cannot compute sizeof (long int)
120768
 
See \`config.log' for more details." >&2;}
120769
 
   { (exit 77); exit 77; }; }; }
120770
 
   else
120771
 
     ac_cv_sizeof_long_int=0
120772
 
   fi ;;
120773
 
esac
120774
 
else
120775
 
  cat >conftest.$ac_ext <<_ACEOF
120776
 
/* confdefs.h.  */
120777
 
_ACEOF
120778
 
cat confdefs.h >>conftest.$ac_ext
120779
 
cat >>conftest.$ac_ext <<_ACEOF
120780
 
/* end confdefs.h.  */
120781
 
$ac_includes_default
120782
 
static long int longval () { return (long int) (sizeof (long int)); }
120783
 
static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
120784
 
@%:@include <stdio.h>
120785
 
@%:@include <stdlib.h>
120786
 
int
120787
 
main ()
120788
 
{
120789
 
 
120790
 
  FILE *f = fopen ("conftest.val", "w");
120791
 
  if (! f)
120792
 
    return 1;
120793
 
  if (((long int) (sizeof (long int))) < 0)
120794
 
    {
120795
 
      long int i = longval ();
120796
 
      if (i != ((long int) (sizeof (long int))))
120797
 
        return 1;
120798
 
      fprintf (f, "%ld", i);
120799
 
    }
120800
 
  else
120801
 
    {
120802
 
      unsigned long int i = ulongval ();
120803
 
      if (i != ((long int) (sizeof (long int))))
120804
 
        return 1;
120805
 
      fprintf (f, "%lu", i);
120806
 
    }
120807
 
  /* Do not output a trailing newline, as this causes \r\n confusion
120808
 
     on some platforms.  */
120809
 
  return ferror (f) || fclose (f) != 0;
120810
 
 
120811
 
  ;
120812
 
  return 0;
120813
 
}
120814
 
_ACEOF
120815
 
rm -f conftest$ac_exeext
120816
 
if { (ac_try="$ac_link"
120817
 
case "(($ac_try" in
120818
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120819
 
  *) ac_try_echo=$ac_try;;
120820
 
esac
120821
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
120822
 
$as_echo "$ac_try_echo") >&5
120823
 
  (eval "$ac_link") 2>&5
120824
 
  ac_status=$?
120825
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
120826
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
120827
 
  { (case "(($ac_try" in
120828
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120829
 
  *) ac_try_echo=$ac_try;;
120830
 
esac
120831
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
120832
 
$as_echo "$ac_try_echo") >&5
120833
 
  (eval "$ac_try") 2>&5
120834
 
  ac_status=$?
120835
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
120836
 
  (exit $ac_status); }; }; then
120837
 
  ac_cv_sizeof_long_int=`cat conftest.val`
120838
 
else
120839
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
120840
 
$as_echo "$as_me: failed program was:" >&5
120841
 
sed 's/^/| /' conftest.$ac_ext >&5
120842
 
 
120843
 
( exit $ac_status )
120844
 
if test "$ac_cv_type_long_int" = yes; then
120845
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
120846
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
120847
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
120848
 
See \`config.log' for more details." >&5
120849
 
$as_echo "$as_me: error: cannot compute sizeof (long int)
120850
 
See \`config.log' for more details." >&2;}
120851
 
   { (exit 77); exit 77; }; }; }
120852
 
   else
120853
 
     ac_cv_sizeof_long_int=0
120854
 
   fi
120855
 
fi
120856
 
rm -rf conftest.dSYM
120857
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
120858
 
fi
120859
 
rm -f conftest.val
120860
 
fi
120861
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
120862
 
$as_echo "$ac_cv_sizeof_long_int" >&6; }
120863
 
 
120864
 
 
120865
 
 
120866
 
cat >>confdefs.h <<_ACEOF
120867
 
@%:@define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
120868
 
_ACEOF
120869
 
 
120870
 
 
120871
 
  { $as_echo "$as_me:$LINENO: checking checking if we're on a 64-bit platform" >&5
120872
 
$as_echo_n "checking checking if we're on a 64-bit platform... " >&6; }
120873
 
  if test "$ac_cv_sizeof_long_int" = "4"; then
120874
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
120875
 
$as_echo "no" >&6; }
120876
 
    PHP_SYBASE_64=no
120877
 
  else
120878
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
120879
 
$as_echo "yes" >&6; }
120880
 
    PHP_SYBASE_64=yes
120881
 
  fi
120882
 
 
120883
 
 
120884
 
  { $as_echo "$as_me:$LINENO: checking Checking for ctpublic.h" >&5
120885
 
$as_echo_n "checking Checking for ctpublic.h... " >&6; }
120886
 
  if test -f $SYBASE_CT_INCDIR/ctpublic.h; then
120887
 
    { $as_echo "$as_me:$LINENO: result: found in $SYBASE_CT_INCDIR" >&5
120888
 
$as_echo "found in $SYBASE_CT_INCDIR" >&6; }
120889
 
    
120890
 
  if test "$SYBASE_CT_INCDIR" != "/usr/include"; then
120891
 
    
120892
 
  if test -z "$SYBASE_CT_INCDIR" || echo "$SYBASE_CT_INCDIR" | grep '^/' >/dev/null ; then
120893
 
    ai_p=$SYBASE_CT_INCDIR
120894
 
  else
120895
 
    
120896
 
    ep_dir="`echo $SYBASE_CT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
120897
 
    
120898
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
120899
 
    ai_p="$ep_realdir/`basename \"$SYBASE_CT_INCDIR\"`"
120900
 
  fi
120901
 
 
120902
 
    
120903
 
  
120904
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
120905
 
  
120906
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
120907
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
120908
 
    eval "INCLUDEPATH$unique=set"
120909
 
    
120910
 
      if test ""; then
120911
 
        INCLUDES="-I$ai_p $INCLUDES"
120912
 
      else
120913
 
        INCLUDES="$INCLUDES -I$ai_p"
120914
 
      fi
120915
 
    
120916
 
  fi
120917
 
 
120918
 
  fi
120919
 
 
120920
 
  else
120921
 
    { { $as_echo "$as_me:$LINENO: error: ctpublic.h missing!" >&5
120922
 
$as_echo "$as_me: error: ctpublic.h missing!" >&2;}
120923
 
   { (exit 1); exit 1; }; }
120924
 
  fi
120925
 
 
120926
 
  { $as_echo "$as_me:$LINENO: checking Checking Sybase libdir" >&5
120927
 
$as_echo_n "checking Checking Sybase libdir... " >&6; }
120928
 
  { $as_echo "$as_me:$LINENO: result: Have $SYBASE_CT_LIBDIR" >&5
120929
 
$as_echo "Have $SYBASE_CT_LIBDIR" >&6; }
120930
 
 
120931
 
  { $as_echo "$as_me:$LINENO: checking Checking for Sybase platform libraries" >&5
120932
 
$as_echo_n "checking Checking for Sybase platform libraries... " >&6; }
120933
 
 
120934
 
  
120935
 
  if test "$SYBASE_CT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SYBASE_CT_LIBDIR" != "/usr/lib"; then
120936
 
    
120937
 
  if test -z "$SYBASE_CT_LIBDIR" || echo "$SYBASE_CT_LIBDIR" | grep '^/' >/dev/null ; then
120938
 
    ai_p=$SYBASE_CT_LIBDIR
120939
 
  else
120940
 
    
120941
 
    ep_dir="`echo $SYBASE_CT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
120942
 
    
120943
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
120944
 
    ai_p="$ep_realdir/`basename \"$SYBASE_CT_LIBDIR\"`"
120945
 
  fi
120946
 
 
120947
 
    
120948
 
      if test "$ext_shared" = "yes"; then
120949
 
        SYBASE_CT_SHARED_LIBADD="-L$ai_p $SYBASE_CT_SHARED_LIBADD"
120950
 
        test -n "$ld_runpath_switch" && SYBASE_CT_SHARED_LIBADD="$ld_runpath_switch$ai_p $SYBASE_CT_SHARED_LIBADD"
120951
 
      else
120952
 
        
120953
 
  
120954
 
  
120955
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
120956
 
  
120957
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
120958
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
120959
 
    eval "LIBPATH$unique=set"
120960
 
    
120961
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
120962
 
    LDFLAGS="$LDFLAGS -L$ai_p"
120963
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
120964
 
  
120965
 
  fi
120966
 
 
120967
 
 
120968
 
      fi
120969
 
    
120970
 
  fi
120971
 
 
120972
 
  if test -f $SYBASE_CT_INCDIR/tds.h || test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then
120973
 
    
120974
 
  
120975
 
  case ct in
120976
 
  c|c_r|pthread*) ;;
120977
 
  *) 
120978
 
    if test "$ext_shared" = "yes"; then
120979
 
        SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD" 
120980
 
    else
120981
 
      
120982
 
  
120983
 
  case ct in
120984
 
  c|c_r|pthread*) ;;
120985
 
  *) 
120986
 
      LIBS="-lct $LIBS" 
120987
 
   ;;
120988
 
  esac
120989
 
 
120990
 
 
120991
 
    fi
120992
 
   ;;
120993
 
  esac
120994
 
 
120995
 
 
120996
 
    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
120997
 
    { $as_echo "$as_me:$LINENO: result: FreeTDS: $SYBASE_CT_LIBS" >&5
120998
 
$as_echo "FreeTDS: $SYBASE_CT_LIBS" >&6; }
120999
 
  elif test -f $SYBASE_CT_LIBDIR/libsybct64.so && test $PHP_SYBASE_64 = "yes"; then
121000
 
    
121001
 
  
121002
 
  case sybcs64 in
121003
 
  c|c_r|pthread*) ;;
121004
 
  *) 
121005
 
    if test "$ext_shared" = "yes"; then
121006
 
        SYBASE_CT_SHARED_LIBADD="-lsybcs64 $SYBASE_CT_SHARED_LIBADD" 
121007
 
    else
121008
 
      
121009
 
  
121010
 
  case sybcs64 in
121011
 
  c|c_r|pthread*) ;;
121012
 
  *) 
121013
 
      LIBS="-lsybcs64 $LIBS" 
121014
 
   ;;
121015
 
  esac
121016
 
 
121017
 
 
121018
 
    fi
121019
 
   ;;
121020
 
  esac
121021
 
 
121022
 
 
121023
 
    
121024
 
  
121025
 
  case sybct64 in
121026
 
  c|c_r|pthread*) ;;
121027
 
  *) 
121028
 
    if test "$ext_shared" = "yes"; then
121029
 
        SYBASE_CT_SHARED_LIBADD="-lsybct64 $SYBASE_CT_SHARED_LIBADD" 
121030
 
    else
121031
 
      
121032
 
  
121033
 
  case sybct64 in
121034
 
  c|c_r|pthread*) ;;
121035
 
  *) 
121036
 
      LIBS="-lsybct64 $LIBS" 
121037
 
   ;;
121038
 
  esac
121039
 
 
121040
 
 
121041
 
    fi
121042
 
   ;;
121043
 
  esac
121044
 
 
121045
 
 
121046
 
    
121047
 
  
121048
 
  case sybcomn64 in
121049
 
  c|c_r|pthread*) ;;
121050
 
  *) 
121051
 
    if test "$ext_shared" = "yes"; then
121052
 
        SYBASE_CT_SHARED_LIBADD="-lsybcomn64 $SYBASE_CT_SHARED_LIBADD" 
121053
 
    else
121054
 
      
121055
 
  
121056
 
  case sybcomn64 in
121057
 
  c|c_r|pthread*) ;;
121058
 
  *) 
121059
 
      LIBS="-lsybcomn64 $LIBS" 
121060
 
   ;;
121061
 
  esac
121062
 
 
121063
 
 
121064
 
    fi
121065
 
   ;;
121066
 
  esac
121067
 
 
121068
 
 
121069
 
    
121070
 
  
121071
 
  case sybintl64 in
121072
 
  c|c_r|pthread*) ;;
121073
 
  *) 
121074
 
    if test "$ext_shared" = "yes"; then
121075
 
        SYBASE_CT_SHARED_LIBADD="-lsybintl64 $SYBASE_CT_SHARED_LIBADD" 
121076
 
    else
121077
 
      
121078
 
  
121079
 
  case sybintl64 in
121080
 
  c|c_r|pthread*) ;;
121081
 
  *) 
121082
 
      LIBS="-lsybintl64 $LIBS" 
121083
 
   ;;
121084
 
  esac
121085
 
 
121086
 
 
121087
 
    fi
121088
 
   ;;
121089
 
  esac
121090
 
 
121091
 
 
121092
 
 
121093
 
    ac_solid_uname_s=`uname -s 2>/dev/null`
121094
 
    case $ac_solid_uname_s in
121095
 
      *OSF*)                            ;; # Tru64/DEC OSF does NOT use the SYB_LP64 define
121096
 
      *) CFLAGS="${CFLAGS} -DSYB_LP64"  ;; # 
121097
 
    esac
121098
 
    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs64 -lsybct64 -lsybcomn64 -lsybintl64"
121099
 
    { $as_echo "$as_me:$LINENO: result: Sybase64: $SYBASE_CT_LIBS" >&5
121100
 
$as_echo "Sybase64: $SYBASE_CT_LIBS" >&6; }
121101
 
  
121102
 
    
121103
 
  save_old_LDFLAGS=$LDFLAGS
121104
 
  ac_stuff=" 
121105
 
      $SYBASE_CT_LIBS 
121106
 
    "
121107
 
  
121108
 
  save_ext_shared=$ext_shared
121109
 
  ext_shared=yes
121110
 
  
121111
 
  for ac_i in $ac_stuff; do
121112
 
    case $ac_i in
121113
 
    -pthread)
121114
 
      if test "$ext_shared" = "yes"; then
121115
 
        LDFLAGS="$LDFLAGS -pthread"
121116
 
      else
121117
 
        
121118
 
  
121119
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
121120
 
  
121121
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
121122
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
121123
 
    eval "EXTRA_LDFLAGS$unique=set"
121124
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
121125
 
  fi
121126
 
 
121127
 
      fi
121128
 
    ;;
121129
 
    -l*)
121130
 
      ac_ii=`echo $ac_i|cut -c 3-`
121131
 
      
121132
 
  
121133
 
  case $ac_ii in
121134
 
  c|c_r|pthread*) ;;
121135
 
  *) 
121136
 
    if test "$ext_shared" = "yes"; then
121137
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
121138
 
    else
121139
 
      
121140
 
  
121141
 
  case $ac_ii in
121142
 
  c|c_r|pthread*) ;;
121143
 
  *) 
121144
 
      LIBS="$LIBS -l$ac_ii" 
121145
 
   ;;
121146
 
  esac
121147
 
 
121148
 
 
121149
 
    fi
121150
 
   ;;
121151
 
  esac
121152
 
 
121153
 
 
121154
 
    ;;
121155
 
    -L*)
121156
 
      ac_ii=`echo $ac_i|cut -c 3-`
121157
 
      
121158
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
121159
 
    
121160
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
121161
 
    ai_p=$ac_ii
121162
 
  else
121163
 
    
121164
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
121165
 
    
121166
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
121167
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
121168
 
  fi
121169
 
 
121170
 
    
121171
 
      if test "$ext_shared" = "yes"; then
121172
 
        LDFLAGS="-L$ai_p $LDFLAGS"
121173
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
121174
 
      else
121175
 
        
121176
 
  
121177
 
  
121178
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
121179
 
  
121180
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
121181
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
121182
 
    eval "LIBPATH$unique=set"
121183
 
    
121184
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
121185
 
    LDFLAGS="$LDFLAGS -L$ai_p"
121186
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
121187
 
  
121188
 
  fi
121189
 
 
121190
 
 
121191
 
      fi
121192
 
    
121193
 
  fi
121194
 
 
121195
 
    ;;
121196
 
    esac
121197
 
  done
121198
 
 
121199
 
  { $as_echo "$as_me:$LINENO: checking for netg_errstr in -lsybtcl64" >&5
121200
 
$as_echo_n "checking for netg_errstr in -lsybtcl64... " >&6; }
121201
 
if test "${ac_cv_lib_sybtcl64_netg_errstr+set}" = set; then
121202
 
  $as_echo_n "(cached) " >&6
121203
 
else
121204
 
  ac_check_lib_save_LIBS=$LIBS
121205
 
LIBS="-lsybtcl64  $LIBS"
121206
 
cat >conftest.$ac_ext <<_ACEOF
121207
 
/* confdefs.h.  */
121208
 
_ACEOF
121209
 
cat confdefs.h >>conftest.$ac_ext
121210
 
cat >>conftest.$ac_ext <<_ACEOF
121211
 
/* end confdefs.h.  */
121212
 
 
121213
 
/* Override any GCC internal prototype to avoid an error.
121214
 
   Use char because int might match the return type of a GCC
121215
 
   builtin and then its argument prototype would still apply.  */
121216
 
#ifdef __cplusplus
121217
 
extern "C"
121218
 
#endif
121219
 
char netg_errstr ();
121220
 
int
121221
 
main ()
121222
 
{
121223
 
return netg_errstr ();
121224
 
  ;
121225
 
  return 0;
121226
 
}
121227
 
_ACEOF
121228
 
rm -f conftest.$ac_objext conftest$ac_exeext
121229
 
if { (ac_try="$ac_link"
121230
 
case "(($ac_try" in
121231
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
121232
 
  *) ac_try_echo=$ac_try;;
121233
 
esac
121234
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
121235
 
$as_echo "$ac_try_echo") >&5
121236
 
  (eval "$ac_link") 2>conftest.er1
121237
 
  ac_status=$?
121238
 
  grep -v '^ *+' conftest.er1 >conftest.err
121239
 
  rm -f conftest.er1
121240
 
  cat conftest.err >&5
121241
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
121242
 
  (exit $ac_status); } && {
121243
 
         test -z "$ac_c_werror_flag" ||
121244
 
         test ! -s conftest.err
121245
 
       } && test -s conftest$ac_exeext && {
121246
 
         test "$cross_compiling" = yes ||
121247
 
         $as_test_x conftest$ac_exeext
121248
 
       }; then
121249
 
  ac_cv_lib_sybtcl64_netg_errstr=yes
121250
 
else
121251
 
  $as_echo "$as_me: failed program was:" >&5
121252
 
sed 's/^/| /' conftest.$ac_ext >&5
121253
 
 
121254
 
        ac_cv_lib_sybtcl64_netg_errstr=no
121255
 
fi
121256
 
 
121257
 
rm -rf conftest.dSYM
121258
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
121259
 
      conftest$ac_exeext conftest.$ac_ext
121260
 
LIBS=$ac_check_lib_save_LIBS
121261
 
fi
121262
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sybtcl64_netg_errstr" >&5
121263
 
$as_echo "$ac_cv_lib_sybtcl64_netg_errstr" >&6; }
121264
 
if test "x$ac_cv_lib_sybtcl64_netg_errstr" = x""yes; then
121265
 
  
121266
 
    LDFLAGS=$save_old_LDFLAGS
121267
 
    ext_shared=$save_ext_shared
121268
 
    
121269
 
      
121270
 
  
121271
 
  case sybtcl64 in
121272
 
  c|c_r|pthread*) ;;
121273
 
  *) 
121274
 
    if test "$ext_shared" = "yes"; then
121275
 
        SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD" 
121276
 
    else
121277
 
      
121278
 
  
121279
 
  case sybtcl64 in
121280
 
  c|c_r|pthread*) ;;
121281
 
  *) 
121282
 
      LIBS="-lsybtcl64 $LIBS" 
121283
 
   ;;
121284
 
  esac
121285
 
 
121286
 
 
121287
 
    fi
121288
 
   ;;
121289
 
  esac
121290
 
 
121291
 
 
121292
 
    
121293
 
  
121294
 
else
121295
 
  
121296
 
    LDFLAGS=$save_old_LDFLAGS
121297
 
    ext_shared=$save_ext_shared
121298
 
    unset ac_cv_lib_sybtcl64_netg_errstr
121299
 
     
121300
 
      
121301
 
  
121302
 
  case sybtcl64 in
121303
 
  c|c_r|pthread*) ;;
121304
 
  *) 
121305
 
    if test "$ext_shared" = "yes"; then
121306
 
        SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD" 
121307
 
    else
121308
 
      
121309
 
  
121310
 
  case sybtcl64 in
121311
 
  c|c_r|pthread*) ;;
121312
 
  *) 
121313
 
      LIBS="-lsybtcl64 $LIBS" 
121314
 
   ;;
121315
 
  esac
121316
 
 
121317
 
 
121318
 
    fi
121319
 
   ;;
121320
 
  esac
121321
 
 
121322
 
 
121323
 
    
121324
 
  
121325
 
fi
121326
 
 
121327
 
  
121328
 
    
121329
 
  save_old_LDFLAGS=$LDFLAGS
121330
 
  ac_stuff="-L$SYBASE_CT_LIBDIR"
121331
 
  
121332
 
  save_ext_shared=$ext_shared
121333
 
  ext_shared=yes
121334
 
  
121335
 
  for ac_i in $ac_stuff; do
121336
 
    case $ac_i in
121337
 
    -pthread)
121338
 
      if test "$ext_shared" = "yes"; then
121339
 
        LDFLAGS="$LDFLAGS -pthread"
121340
 
      else
121341
 
        
121342
 
  
121343
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
121344
 
  
121345
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
121346
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
121347
 
    eval "EXTRA_LDFLAGS$unique=set"
121348
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
121349
 
  fi
121350
 
 
121351
 
      fi
121352
 
    ;;
121353
 
    -l*)
121354
 
      ac_ii=`echo $ac_i|cut -c 3-`
121355
 
      
121356
 
  
121357
 
  case $ac_ii in
121358
 
  c|c_r|pthread*) ;;
121359
 
  *) 
121360
 
    if test "$ext_shared" = "yes"; then
121361
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
121362
 
    else
121363
 
      
121364
 
  
121365
 
  case $ac_ii in
121366
 
  c|c_r|pthread*) ;;
121367
 
  *) 
121368
 
      LIBS="$LIBS -l$ac_ii" 
121369
 
   ;;
121370
 
  esac
121371
 
 
121372
 
 
121373
 
    fi
121374
 
   ;;
121375
 
  esac
121376
 
 
121377
 
 
121378
 
    ;;
121379
 
    -L*)
121380
 
      ac_ii=`echo $ac_i|cut -c 3-`
121381
 
      
121382
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
121383
 
    
121384
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
121385
 
    ai_p=$ac_ii
121386
 
  else
121387
 
    
121388
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
121389
 
    
121390
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
121391
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
121392
 
  fi
121393
 
 
121394
 
    
121395
 
      if test "$ext_shared" = "yes"; then
121396
 
        LDFLAGS="-L$ai_p $LDFLAGS"
121397
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
121398
 
      else
121399
 
        
121400
 
  
121401
 
  
121402
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
121403
 
  
121404
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
121405
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
121406
 
    eval "LIBPATH$unique=set"
121407
 
    
121408
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
121409
 
    LDFLAGS="$LDFLAGS -L$ai_p"
121410
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
121411
 
  
121412
 
  fi
121413
 
 
121414
 
 
121415
 
      fi
121416
 
    
121417
 
  fi
121418
 
 
121419
 
    ;;
121420
 
    esac
121421
 
  done
121422
 
 
121423
 
  { $as_echo "$as_me:$LINENO: checking for insck__getVdate in -linsck64" >&5
121424
 
$as_echo_n "checking for insck__getVdate in -linsck64... " >&6; }
121425
 
if test "${ac_cv_lib_insck64_insck__getVdate+set}" = set; then
121426
 
  $as_echo_n "(cached) " >&6
121427
 
else
121428
 
  ac_check_lib_save_LIBS=$LIBS
121429
 
LIBS="-linsck64  $LIBS"
121430
 
cat >conftest.$ac_ext <<_ACEOF
121431
 
/* confdefs.h.  */
121432
 
_ACEOF
121433
 
cat confdefs.h >>conftest.$ac_ext
121434
 
cat >>conftest.$ac_ext <<_ACEOF
121435
 
/* end confdefs.h.  */
121436
 
 
121437
 
/* Override any GCC internal prototype to avoid an error.
121438
 
   Use char because int might match the return type of a GCC
121439
 
   builtin and then its argument prototype would still apply.  */
121440
 
#ifdef __cplusplus
121441
 
extern "C"
121442
 
#endif
121443
 
char insck__getVdate ();
121444
 
int
121445
 
main ()
121446
 
{
121447
 
return insck__getVdate ();
121448
 
  ;
121449
 
  return 0;
121450
 
}
121451
 
_ACEOF
121452
 
rm -f conftest.$ac_objext conftest$ac_exeext
121453
 
if { (ac_try="$ac_link"
121454
 
case "(($ac_try" in
121455
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
121456
 
  *) ac_try_echo=$ac_try;;
121457
 
esac
121458
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
121459
 
$as_echo "$ac_try_echo") >&5
121460
 
  (eval "$ac_link") 2>conftest.er1
121461
 
  ac_status=$?
121462
 
  grep -v '^ *+' conftest.er1 >conftest.err
121463
 
  rm -f conftest.er1
121464
 
  cat conftest.err >&5
121465
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
121466
 
  (exit $ac_status); } && {
121467
 
         test -z "$ac_c_werror_flag" ||
121468
 
         test ! -s conftest.err
121469
 
       } && test -s conftest$ac_exeext && {
121470
 
         test "$cross_compiling" = yes ||
121471
 
         $as_test_x conftest$ac_exeext
121472
 
       }; then
121473
 
  ac_cv_lib_insck64_insck__getVdate=yes
121474
 
else
121475
 
  $as_echo "$as_me: failed program was:" >&5
121476
 
sed 's/^/| /' conftest.$ac_ext >&5
121477
 
 
121478
 
        ac_cv_lib_insck64_insck__getVdate=no
121479
 
fi
121480
 
 
121481
 
rm -rf conftest.dSYM
121482
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
121483
 
      conftest$ac_exeext conftest.$ac_ext
121484
 
LIBS=$ac_check_lib_save_LIBS
121485
 
fi
121486
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_insck64_insck__getVdate" >&5
121487
 
$as_echo "$ac_cv_lib_insck64_insck__getVdate" >&6; }
121488
 
if test "x$ac_cv_lib_insck64_insck__getVdate" = x""yes; then
121489
 
  
121490
 
    LDFLAGS=$save_old_LDFLAGS
121491
 
    ext_shared=$save_ext_shared
121492
 
    
121493
 
  
121494
 
  case insck64 in
121495
 
  c|c_r|pthread*) ;;
121496
 
  *) 
121497
 
    if test "$ext_shared" = "yes"; then
121498
 
        SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD" 
121499
 
    else
121500
 
      
121501
 
  
121502
 
  case insck64 in
121503
 
  c|c_r|pthread*) ;;
121504
 
  *) 
121505
 
      LIBS="-linsck64 $LIBS" 
121506
 
   ;;
121507
 
  esac
121508
 
 
121509
 
 
121510
 
    fi
121511
 
   ;;
121512
 
  esac
121513
 
 
121514
 
 
121515
 
  
121516
 
else
121517
 
  
121518
 
    LDFLAGS=$save_old_LDFLAGS
121519
 
    ext_shared=$save_ext_shared
121520
 
    unset ac_cv_lib_insck64_insck__getVdate
121521
 
    
121522
 
  
121523
 
fi
121524
 
 
121525
 
    
121526
 
  save_old_LDFLAGS=$LDFLAGS
121527
 
  ac_stuff="-L$SYBASE_CT_LIBDIR"
121528
 
  
121529
 
  save_ext_shared=$ext_shared
121530
 
  ext_shared=yes
121531
 
  
121532
 
  for ac_i in $ac_stuff; do
121533
 
    case $ac_i in
121534
 
    -pthread)
121535
 
      if test "$ext_shared" = "yes"; then
121536
 
        LDFLAGS="$LDFLAGS -pthread"
121537
 
      else
121538
 
        
121539
 
  
121540
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
121541
 
  
121542
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
121543
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
121544
 
    eval "EXTRA_LDFLAGS$unique=set"
121545
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
121546
 
  fi
121547
 
 
121548
 
      fi
121549
 
    ;;
121550
 
    -l*)
121551
 
      ac_ii=`echo $ac_i|cut -c 3-`
121552
 
      
121553
 
  
121554
 
  case $ac_ii in
121555
 
  c|c_r|pthread*) ;;
121556
 
  *) 
121557
 
    if test "$ext_shared" = "yes"; then
121558
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
121559
 
    else
121560
 
      
121561
 
  
121562
 
  case $ac_ii in
121563
 
  c|c_r|pthread*) ;;
121564
 
  *) 
121565
 
      LIBS="$LIBS -l$ac_ii" 
121566
 
   ;;
121567
 
  esac
121568
 
 
121569
 
 
121570
 
    fi
121571
 
   ;;
121572
 
  esac
121573
 
 
121574
 
 
121575
 
    ;;
121576
 
    -L*)
121577
 
      ac_ii=`echo $ac_i|cut -c 3-`
121578
 
      
121579
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
121580
 
    
121581
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
121582
 
    ai_p=$ac_ii
121583
 
  else
121584
 
    
121585
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
121586
 
    
121587
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
121588
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
121589
 
  fi
121590
 
 
121591
 
    
121592
 
      if test "$ext_shared" = "yes"; then
121593
 
        LDFLAGS="-L$ai_p $LDFLAGS"
121594
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
121595
 
      else
121596
 
        
121597
 
  
121598
 
  
121599
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
121600
 
  
121601
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
121602
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
121603
 
    eval "LIBPATH$unique=set"
121604
 
    
121605
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
121606
 
    LDFLAGS="$LDFLAGS -L$ai_p"
121607
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
121608
 
  
121609
 
  fi
121610
 
 
121611
 
 
121612
 
      fi
121613
 
    
121614
 
  fi
121615
 
 
121616
 
    ;;
121617
 
    esac
121618
 
  done
121619
 
 
121620
 
  { $as_echo "$as_me:$LINENO: checking for bsd_tcp in -linsck64" >&5
121621
 
$as_echo_n "checking for bsd_tcp in -linsck64... " >&6; }
121622
 
if test "${ac_cv_lib_insck64_bsd_tcp+set}" = set; then
121623
 
  $as_echo_n "(cached) " >&6
121624
 
else
121625
 
  ac_check_lib_save_LIBS=$LIBS
121626
 
LIBS="-linsck64  $LIBS"
121627
 
cat >conftest.$ac_ext <<_ACEOF
121628
 
/* confdefs.h.  */
121629
 
_ACEOF
121630
 
cat confdefs.h >>conftest.$ac_ext
121631
 
cat >>conftest.$ac_ext <<_ACEOF
121632
 
/* end confdefs.h.  */
121633
 
 
121634
 
/* Override any GCC internal prototype to avoid an error.
121635
 
   Use char because int might match the return type of a GCC
121636
 
   builtin and then its argument prototype would still apply.  */
121637
 
#ifdef __cplusplus
121638
 
extern "C"
121639
 
#endif
121640
 
char bsd_tcp ();
121641
 
int
121642
 
main ()
121643
 
{
121644
 
return bsd_tcp ();
121645
 
  ;
121646
 
  return 0;
121647
 
}
121648
 
_ACEOF
121649
 
rm -f conftest.$ac_objext conftest$ac_exeext
121650
 
if { (ac_try="$ac_link"
121651
 
case "(($ac_try" in
121652
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
121653
 
  *) ac_try_echo=$ac_try;;
121654
 
esac
121655
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
121656
 
$as_echo "$ac_try_echo") >&5
121657
 
  (eval "$ac_link") 2>conftest.er1
121658
 
  ac_status=$?
121659
 
  grep -v '^ *+' conftest.er1 >conftest.err
121660
 
  rm -f conftest.er1
121661
 
  cat conftest.err >&5
121662
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
121663
 
  (exit $ac_status); } && {
121664
 
         test -z "$ac_c_werror_flag" ||
121665
 
         test ! -s conftest.err
121666
 
       } && test -s conftest$ac_exeext && {
121667
 
         test "$cross_compiling" = yes ||
121668
 
         $as_test_x conftest$ac_exeext
121669
 
       }; then
121670
 
  ac_cv_lib_insck64_bsd_tcp=yes
121671
 
else
121672
 
  $as_echo "$as_me: failed program was:" >&5
121673
 
sed 's/^/| /' conftest.$ac_ext >&5
121674
 
 
121675
 
        ac_cv_lib_insck64_bsd_tcp=no
121676
 
fi
121677
 
 
121678
 
rm -rf conftest.dSYM
121679
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
121680
 
      conftest$ac_exeext conftest.$ac_ext
121681
 
LIBS=$ac_check_lib_save_LIBS
121682
 
fi
121683
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_insck64_bsd_tcp" >&5
121684
 
$as_echo "$ac_cv_lib_insck64_bsd_tcp" >&6; }
121685
 
if test "x$ac_cv_lib_insck64_bsd_tcp" = x""yes; then
121686
 
  
121687
 
    LDFLAGS=$save_old_LDFLAGS
121688
 
    ext_shared=$save_ext_shared
121689
 
    
121690
 
  
121691
 
  case insck64 in
121692
 
  c|c_r|pthread*) ;;
121693
 
  *) 
121694
 
    if test "$ext_shared" = "yes"; then
121695
 
        SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD" 
121696
 
    else
121697
 
      
121698
 
  
121699
 
  case insck64 in
121700
 
  c|c_r|pthread*) ;;
121701
 
  *) 
121702
 
      LIBS="-linsck64 $LIBS" 
121703
 
   ;;
121704
 
  esac
121705
 
 
121706
 
 
121707
 
    fi
121708
 
   ;;
121709
 
  esac
121710
 
 
121711
 
 
121712
 
  
121713
 
else
121714
 
  
121715
 
    LDFLAGS=$save_old_LDFLAGS
121716
 
    ext_shared=$save_ext_shared
121717
 
    unset ac_cv_lib_insck64_bsd_tcp
121718
 
    
121719
 
  
121720
 
fi
121721
 
 
121722
 
  elif test -f $SYBASE_CT_LIBDIR/libsybct.so; then
121723
 
    
121724
 
  
121725
 
  case sybcs in
121726
 
  c|c_r|pthread*) ;;
121727
 
  *) 
121728
 
    if test "$ext_shared" = "yes"; then
121729
 
        SYBASE_CT_SHARED_LIBADD="-lsybcs $SYBASE_CT_SHARED_LIBADD" 
121730
 
    else
121731
 
      
121732
 
  
121733
 
  case sybcs in
121734
 
  c|c_r|pthread*) ;;
121735
 
  *) 
121736
 
      LIBS="-lsybcs $LIBS" 
121737
 
   ;;
121738
 
  esac
121739
 
 
121740
 
 
121741
 
    fi
121742
 
   ;;
121743
 
  esac
121744
 
 
121745
 
 
121746
 
    
121747
 
  
121748
 
  case sybct in
121749
 
  c|c_r|pthread*) ;;
121750
 
  *) 
121751
 
    if test "$ext_shared" = "yes"; then
121752
 
        SYBASE_CT_SHARED_LIBADD="-lsybct $SYBASE_CT_SHARED_LIBADD" 
121753
 
    else
121754
 
      
121755
 
  
121756
 
  case sybct in
121757
 
  c|c_r|pthread*) ;;
121758
 
  *) 
121759
 
      LIBS="-lsybct $LIBS" 
121760
 
   ;;
121761
 
  esac
121762
 
 
121763
 
 
121764
 
    fi
121765
 
   ;;
121766
 
  esac
121767
 
 
121768
 
 
121769
 
    
121770
 
  
121771
 
  case sybcomn in
121772
 
  c|c_r|pthread*) ;;
121773
 
  *) 
121774
 
    if test "$ext_shared" = "yes"; then
121775
 
        SYBASE_CT_SHARED_LIBADD="-lsybcomn $SYBASE_CT_SHARED_LIBADD" 
121776
 
    else
121777
 
      
121778
 
  
121779
 
  case sybcomn in
121780
 
  c|c_r|pthread*) ;;
121781
 
  *) 
121782
 
      LIBS="-lsybcomn $LIBS" 
121783
 
   ;;
121784
 
  esac
121785
 
 
121786
 
 
121787
 
    fi
121788
 
   ;;
121789
 
  esac
121790
 
 
121791
 
 
121792
 
    
121793
 
  
121794
 
  case sybintl in
121795
 
  c|c_r|pthread*) ;;
121796
 
  *) 
121797
 
    if test "$ext_shared" = "yes"; then
121798
 
        SYBASE_CT_SHARED_LIBADD="-lsybintl $SYBASE_CT_SHARED_LIBADD" 
121799
 
    else
121800
 
      
121801
 
  
121802
 
  case sybintl in
121803
 
  c|c_r|pthread*) ;;
121804
 
  *) 
121805
 
      LIBS="-lsybintl $LIBS" 
121806
 
   ;;
121807
 
  esac
121808
 
 
121809
 
 
121810
 
    fi
121811
 
   ;;
121812
 
  esac
121813
 
 
121814
 
 
121815
 
  
121816
 
    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl"
121817
 
    { $as_echo "$as_me:$LINENO: result: Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&5
121818
 
$as_echo "Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&6; }
121819
 
  
121820
 
    
121821
 
  save_old_LDFLAGS=$LDFLAGS
121822
 
  ac_stuff=" 
121823
 
      $SYBASE_CT_LIBS 
121824
 
    "
121825
 
  
121826
 
  save_ext_shared=$ext_shared
121827
 
  ext_shared=yes
121828
 
  
121829
 
  for ac_i in $ac_stuff; do
121830
 
    case $ac_i in
121831
 
    -pthread)
121832
 
      if test "$ext_shared" = "yes"; then
121833
 
        LDFLAGS="$LDFLAGS -pthread"
121834
 
      else
121835
 
        
121836
 
  
121837
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
121838
 
  
121839
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
121840
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
121841
 
    eval "EXTRA_LDFLAGS$unique=set"
121842
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
121843
 
  fi
121844
 
 
121845
 
      fi
121846
 
    ;;
121847
 
    -l*)
121848
 
      ac_ii=`echo $ac_i|cut -c 3-`
121849
 
      
121850
 
  
121851
 
  case $ac_ii in
121852
 
  c|c_r|pthread*) ;;
121853
 
  *) 
121854
 
    if test "$ext_shared" = "yes"; then
121855
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
121856
 
    else
121857
 
      
121858
 
  
121859
 
  case $ac_ii in
121860
 
  c|c_r|pthread*) ;;
121861
 
  *) 
121862
 
      LIBS="$LIBS -l$ac_ii" 
121863
 
   ;;
121864
 
  esac
121865
 
 
121866
 
 
121867
 
    fi
121868
 
   ;;
121869
 
  esac
121870
 
 
121871
 
 
121872
 
    ;;
121873
 
    -L*)
121874
 
      ac_ii=`echo $ac_i|cut -c 3-`
121875
 
      
121876
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
121877
 
    
121878
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
121879
 
    ai_p=$ac_ii
121880
 
  else
121881
 
    
121882
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
121883
 
    
121884
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
121885
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
121886
 
  fi
121887
 
 
121888
 
    
121889
 
      if test "$ext_shared" = "yes"; then
121890
 
        LDFLAGS="-L$ai_p $LDFLAGS"
121891
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
121892
 
      else
121893
 
        
121894
 
  
121895
 
  
121896
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
121897
 
  
121898
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
121899
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
121900
 
    eval "LIBPATH$unique=set"
121901
 
    
121902
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
121903
 
    LDFLAGS="$LDFLAGS -L$ai_p"
121904
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
121905
 
  
121906
 
  fi
121907
 
 
121908
 
 
121909
 
      fi
121910
 
    
121911
 
  fi
121912
 
 
121913
 
    ;;
121914
 
    esac
121915
 
  done
121916
 
 
121917
 
  { $as_echo "$as_me:$LINENO: checking for netg_errstr in -lsybtcl" >&5
121918
 
$as_echo_n "checking for netg_errstr in -lsybtcl... " >&6; }
121919
 
if test "${ac_cv_lib_sybtcl_netg_errstr+set}" = set; then
121920
 
  $as_echo_n "(cached) " >&6
121921
 
else
121922
 
  ac_check_lib_save_LIBS=$LIBS
121923
 
LIBS="-lsybtcl  $LIBS"
121924
 
cat >conftest.$ac_ext <<_ACEOF
121925
 
/* confdefs.h.  */
121926
 
_ACEOF
121927
 
cat confdefs.h >>conftest.$ac_ext
121928
 
cat >>conftest.$ac_ext <<_ACEOF
121929
 
/* end confdefs.h.  */
121930
 
 
121931
 
/* Override any GCC internal prototype to avoid an error.
121932
 
   Use char because int might match the return type of a GCC
121933
 
   builtin and then its argument prototype would still apply.  */
121934
 
#ifdef __cplusplus
121935
 
extern "C"
121936
 
#endif
121937
 
char netg_errstr ();
121938
 
int
121939
 
main ()
121940
 
{
121941
 
return netg_errstr ();
121942
 
  ;
121943
 
  return 0;
121944
 
}
121945
 
_ACEOF
121946
 
rm -f conftest.$ac_objext conftest$ac_exeext
121947
 
if { (ac_try="$ac_link"
121948
 
case "(($ac_try" in
121949
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
121950
 
  *) ac_try_echo=$ac_try;;
121951
 
esac
121952
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
121953
 
$as_echo "$ac_try_echo") >&5
121954
 
  (eval "$ac_link") 2>conftest.er1
121955
 
  ac_status=$?
121956
 
  grep -v '^ *+' conftest.er1 >conftest.err
121957
 
  rm -f conftest.er1
121958
 
  cat conftest.err >&5
121959
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
121960
 
  (exit $ac_status); } && {
121961
 
         test -z "$ac_c_werror_flag" ||
121962
 
         test ! -s conftest.err
121963
 
       } && test -s conftest$ac_exeext && {
121964
 
         test "$cross_compiling" = yes ||
121965
 
         $as_test_x conftest$ac_exeext
121966
 
       }; then
121967
 
  ac_cv_lib_sybtcl_netg_errstr=yes
121968
 
else
121969
 
  $as_echo "$as_me: failed program was:" >&5
121970
 
sed 's/^/| /' conftest.$ac_ext >&5
121971
 
 
121972
 
        ac_cv_lib_sybtcl_netg_errstr=no
121973
 
fi
121974
 
 
121975
 
rm -rf conftest.dSYM
121976
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
121977
 
      conftest$ac_exeext conftest.$ac_ext
121978
 
LIBS=$ac_check_lib_save_LIBS
121979
 
fi
121980
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sybtcl_netg_errstr" >&5
121981
 
$as_echo "$ac_cv_lib_sybtcl_netg_errstr" >&6; }
121982
 
if test "x$ac_cv_lib_sybtcl_netg_errstr" = x""yes; then
121983
 
  
121984
 
    LDFLAGS=$save_old_LDFLAGS
121985
 
    ext_shared=$save_ext_shared
121986
 
    
121987
 
      
121988
 
  
121989
 
  case sybtcl in
121990
 
  c|c_r|pthread*) ;;
121991
 
  *) 
121992
 
    if test "$ext_shared" = "yes"; then
121993
 
        SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD" 
121994
 
    else
121995
 
      
121996
 
  
121997
 
  case sybtcl in
121998
 
  c|c_r|pthread*) ;;
121999
 
  *) 
122000
 
      LIBS="-lsybtcl $LIBS" 
122001
 
   ;;
122002
 
  esac
122003
 
 
122004
 
 
122005
 
    fi
122006
 
   ;;
122007
 
  esac
122008
 
 
122009
 
 
122010
 
    
122011
 
  
122012
 
else
122013
 
  
122014
 
    LDFLAGS=$save_old_LDFLAGS
122015
 
    ext_shared=$save_ext_shared
122016
 
    unset ac_cv_lib_sybtcl_netg_errstr
122017
 
     
122018
 
      
122019
 
  
122020
 
  case sybtcl in
122021
 
  c|c_r|pthread*) ;;
122022
 
  *) 
122023
 
    if test "$ext_shared" = "yes"; then
122024
 
        SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD" 
122025
 
    else
122026
 
      
122027
 
  
122028
 
  case sybtcl in
122029
 
  c|c_r|pthread*) ;;
122030
 
  *) 
122031
 
      LIBS="-lsybtcl $LIBS" 
122032
 
   ;;
122033
 
  esac
122034
 
 
122035
 
 
122036
 
    fi
122037
 
   ;;
122038
 
  esac
122039
 
 
122040
 
 
122041
 
    
122042
 
  
122043
 
fi
122044
 
 
122045
 
  
122046
 
    
122047
 
  save_old_LDFLAGS=$LDFLAGS
122048
 
  ac_stuff="-L$SYBASE_CT_LIBDIR"
122049
 
  
122050
 
  save_ext_shared=$ext_shared
122051
 
  ext_shared=yes
122052
 
  
122053
 
  for ac_i in $ac_stuff; do
122054
 
    case $ac_i in
122055
 
    -pthread)
122056
 
      if test "$ext_shared" = "yes"; then
122057
 
        LDFLAGS="$LDFLAGS -pthread"
122058
 
      else
122059
 
        
122060
 
  
122061
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
122062
 
  
122063
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
122064
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
122065
 
    eval "EXTRA_LDFLAGS$unique=set"
122066
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
122067
 
  fi
122068
 
 
122069
 
      fi
122070
 
    ;;
122071
 
    -l*)
122072
 
      ac_ii=`echo $ac_i|cut -c 3-`
122073
 
      
122074
 
  
122075
 
  case $ac_ii in
122076
 
  c|c_r|pthread*) ;;
122077
 
  *) 
122078
 
    if test "$ext_shared" = "yes"; then
122079
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
122080
 
    else
122081
 
      
122082
 
  
122083
 
  case $ac_ii in
122084
 
  c|c_r|pthread*) ;;
122085
 
  *) 
122086
 
      LIBS="$LIBS -l$ac_ii" 
122087
 
   ;;
122088
 
  esac
122089
 
 
122090
 
 
122091
 
    fi
122092
 
   ;;
122093
 
  esac
122094
 
 
122095
 
 
122096
 
    ;;
122097
 
    -L*)
122098
 
      ac_ii=`echo $ac_i|cut -c 3-`
122099
 
      
122100
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
122101
 
    
122102
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
122103
 
    ai_p=$ac_ii
122104
 
  else
122105
 
    
122106
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
122107
 
    
122108
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
122109
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
122110
 
  fi
122111
 
 
122112
 
    
122113
 
      if test "$ext_shared" = "yes"; then
122114
 
        LDFLAGS="-L$ai_p $LDFLAGS"
122115
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
122116
 
      else
122117
 
        
122118
 
  
122119
 
  
122120
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
122121
 
  
122122
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
122123
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
122124
 
    eval "LIBPATH$unique=set"
122125
 
    
122126
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
122127
 
    LDFLAGS="$LDFLAGS -L$ai_p"
122128
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
122129
 
  
122130
 
  fi
122131
 
 
122132
 
 
122133
 
      fi
122134
 
    
122135
 
  fi
122136
 
 
122137
 
    ;;
122138
 
    esac
122139
 
  done
122140
 
 
122141
 
  { $as_echo "$as_me:$LINENO: checking for insck__getVdate in -linsck" >&5
122142
 
$as_echo_n "checking for insck__getVdate in -linsck... " >&6; }
122143
 
if test "${ac_cv_lib_insck_insck__getVdate+set}" = set; then
122144
 
  $as_echo_n "(cached) " >&6
122145
 
else
122146
 
  ac_check_lib_save_LIBS=$LIBS
122147
 
LIBS="-linsck  $LIBS"
122148
 
cat >conftest.$ac_ext <<_ACEOF
122149
 
/* confdefs.h.  */
122150
 
_ACEOF
122151
 
cat confdefs.h >>conftest.$ac_ext
122152
 
cat >>conftest.$ac_ext <<_ACEOF
122153
 
/* end confdefs.h.  */
122154
 
 
122155
 
/* Override any GCC internal prototype to avoid an error.
122156
 
   Use char because int might match the return type of a GCC
122157
 
   builtin and then its argument prototype would still apply.  */
122158
 
#ifdef __cplusplus
122159
 
extern "C"
122160
 
#endif
122161
 
char insck__getVdate ();
122162
 
int
122163
 
main ()
122164
 
{
122165
 
return insck__getVdate ();
122166
 
  ;
122167
 
  return 0;
122168
 
}
122169
 
_ACEOF
122170
 
rm -f conftest.$ac_objext conftest$ac_exeext
122171
 
if { (ac_try="$ac_link"
122172
 
case "(($ac_try" in
122173
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
122174
 
  *) ac_try_echo=$ac_try;;
122175
 
esac
122176
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
122177
 
$as_echo "$ac_try_echo") >&5
122178
 
  (eval "$ac_link") 2>conftest.er1
122179
 
  ac_status=$?
122180
 
  grep -v '^ *+' conftest.er1 >conftest.err
122181
 
  rm -f conftest.er1
122182
 
  cat conftest.err >&5
122183
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
122184
 
  (exit $ac_status); } && {
122185
 
         test -z "$ac_c_werror_flag" ||
122186
 
         test ! -s conftest.err
122187
 
       } && test -s conftest$ac_exeext && {
122188
 
         test "$cross_compiling" = yes ||
122189
 
         $as_test_x conftest$ac_exeext
122190
 
       }; then
122191
 
  ac_cv_lib_insck_insck__getVdate=yes
122192
 
else
122193
 
  $as_echo "$as_me: failed program was:" >&5
122194
 
sed 's/^/| /' conftest.$ac_ext >&5
122195
 
 
122196
 
        ac_cv_lib_insck_insck__getVdate=no
122197
 
fi
122198
 
 
122199
 
rm -rf conftest.dSYM
122200
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
122201
 
      conftest$ac_exeext conftest.$ac_ext
122202
 
LIBS=$ac_check_lib_save_LIBS
122203
 
fi
122204
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_insck_insck__getVdate" >&5
122205
 
$as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; }
122206
 
if test "x$ac_cv_lib_insck_insck__getVdate" = x""yes; then
122207
 
  
122208
 
    LDFLAGS=$save_old_LDFLAGS
122209
 
    ext_shared=$save_ext_shared
122210
 
    
122211
 
  
122212
 
  case insck in
122213
 
  c|c_r|pthread*) ;;
122214
 
  *) 
122215
 
    if test "$ext_shared" = "yes"; then
122216
 
        SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" 
122217
 
    else
122218
 
      
122219
 
  
122220
 
  case insck in
122221
 
  c|c_r|pthread*) ;;
122222
 
  *) 
122223
 
      LIBS="-linsck $LIBS" 
122224
 
   ;;
122225
 
  esac
122226
 
 
122227
 
 
122228
 
    fi
122229
 
   ;;
122230
 
  esac
122231
 
 
122232
 
 
122233
 
  
122234
 
else
122235
 
  
122236
 
    LDFLAGS=$save_old_LDFLAGS
122237
 
    ext_shared=$save_ext_shared
122238
 
    unset ac_cv_lib_insck_insck__getVdate
122239
 
    
122240
 
  
122241
 
fi
122242
 
 
122243
 
    
122244
 
  save_old_LDFLAGS=$LDFLAGS
122245
 
  ac_stuff="-L$SYBASE_CT_LIBDIR"
122246
 
  
122247
 
  save_ext_shared=$ext_shared
122248
 
  ext_shared=yes
122249
 
  
122250
 
  for ac_i in $ac_stuff; do
122251
 
    case $ac_i in
122252
 
    -pthread)
122253
 
      if test "$ext_shared" = "yes"; then
122254
 
        LDFLAGS="$LDFLAGS -pthread"
122255
 
      else
122256
 
        
122257
 
  
122258
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
122259
 
  
122260
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
122261
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
122262
 
    eval "EXTRA_LDFLAGS$unique=set"
122263
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
122264
 
  fi
122265
 
 
122266
 
      fi
122267
 
    ;;
122268
 
    -l*)
122269
 
      ac_ii=`echo $ac_i|cut -c 3-`
122270
 
      
122271
 
  
122272
 
  case $ac_ii in
122273
 
  c|c_r|pthread*) ;;
122274
 
  *) 
122275
 
    if test "$ext_shared" = "yes"; then
122276
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
122277
 
    else
122278
 
      
122279
 
  
122280
 
  case $ac_ii in
122281
 
  c|c_r|pthread*) ;;
122282
 
  *) 
122283
 
      LIBS="$LIBS -l$ac_ii" 
122284
 
   ;;
122285
 
  esac
122286
 
 
122287
 
 
122288
 
    fi
122289
 
   ;;
122290
 
  esac
122291
 
 
122292
 
 
122293
 
    ;;
122294
 
    -L*)
122295
 
      ac_ii=`echo $ac_i|cut -c 3-`
122296
 
      
122297
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
122298
 
    
122299
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
122300
 
    ai_p=$ac_ii
122301
 
  else
122302
 
    
122303
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
122304
 
    
122305
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
122306
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
122307
 
  fi
122308
 
 
122309
 
    
122310
 
      if test "$ext_shared" = "yes"; then
122311
 
        LDFLAGS="-L$ai_p $LDFLAGS"
122312
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
122313
 
      else
122314
 
        
122315
 
  
122316
 
  
122317
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
122318
 
  
122319
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
122320
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
122321
 
    eval "LIBPATH$unique=set"
122322
 
    
122323
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
122324
 
    LDFLAGS="$LDFLAGS -L$ai_p"
122325
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
122326
 
  
122327
 
  fi
122328
 
 
122329
 
 
122330
 
      fi
122331
 
    
122332
 
  fi
122333
 
 
122334
 
    ;;
122335
 
    esac
122336
 
  done
122337
 
 
122338
 
  { $as_echo "$as_me:$LINENO: checking for bsd_tcp in -linsck" >&5
122339
 
$as_echo_n "checking for bsd_tcp in -linsck... " >&6; }
122340
 
if test "${ac_cv_lib_insck_bsd_tcp+set}" = set; then
122341
 
  $as_echo_n "(cached) " >&6
122342
 
else
122343
 
  ac_check_lib_save_LIBS=$LIBS
122344
 
LIBS="-linsck  $LIBS"
122345
 
cat >conftest.$ac_ext <<_ACEOF
122346
 
/* confdefs.h.  */
122347
 
_ACEOF
122348
 
cat confdefs.h >>conftest.$ac_ext
122349
 
cat >>conftest.$ac_ext <<_ACEOF
122350
 
/* end confdefs.h.  */
122351
 
 
122352
 
/* Override any GCC internal prototype to avoid an error.
122353
 
   Use char because int might match the return type of a GCC
122354
 
   builtin and then its argument prototype would still apply.  */
122355
 
#ifdef __cplusplus
122356
 
extern "C"
122357
 
#endif
122358
 
char bsd_tcp ();
122359
 
int
122360
 
main ()
122361
 
{
122362
 
return bsd_tcp ();
122363
 
  ;
122364
 
  return 0;
122365
 
}
122366
 
_ACEOF
122367
 
rm -f conftest.$ac_objext conftest$ac_exeext
122368
 
if { (ac_try="$ac_link"
122369
 
case "(($ac_try" in
122370
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
122371
 
  *) ac_try_echo=$ac_try;;
122372
 
esac
122373
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
122374
 
$as_echo "$ac_try_echo") >&5
122375
 
  (eval "$ac_link") 2>conftest.er1
122376
 
  ac_status=$?
122377
 
  grep -v '^ *+' conftest.er1 >conftest.err
122378
 
  rm -f conftest.er1
122379
 
  cat conftest.err >&5
122380
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
122381
 
  (exit $ac_status); } && {
122382
 
         test -z "$ac_c_werror_flag" ||
122383
 
         test ! -s conftest.err
122384
 
       } && test -s conftest$ac_exeext && {
122385
 
         test "$cross_compiling" = yes ||
122386
 
         $as_test_x conftest$ac_exeext
122387
 
       }; then
122388
 
  ac_cv_lib_insck_bsd_tcp=yes
122389
 
else
122390
 
  $as_echo "$as_me: failed program was:" >&5
122391
 
sed 's/^/| /' conftest.$ac_ext >&5
122392
 
 
122393
 
        ac_cv_lib_insck_bsd_tcp=no
122394
 
fi
122395
 
 
122396
 
rm -rf conftest.dSYM
122397
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
122398
 
      conftest$ac_exeext conftest.$ac_ext
122399
 
LIBS=$ac_check_lib_save_LIBS
122400
 
fi
122401
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_insck_bsd_tcp" >&5
122402
 
$as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; }
122403
 
if test "x$ac_cv_lib_insck_bsd_tcp" = x""yes; then
122404
 
  
122405
 
    LDFLAGS=$save_old_LDFLAGS
122406
 
    ext_shared=$save_ext_shared
122407
 
    
122408
 
  
122409
 
  case insck in
122410
 
  c|c_r|pthread*) ;;
122411
 
  *) 
122412
 
    if test "$ext_shared" = "yes"; then
122413
 
        SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" 
122414
 
    else
122415
 
      
122416
 
  
122417
 
  case insck in
122418
 
  c|c_r|pthread*) ;;
122419
 
  *) 
122420
 
      LIBS="-linsck $LIBS" 
122421
 
   ;;
122422
 
  esac
122423
 
 
122424
 
 
122425
 
    fi
122426
 
   ;;
122427
 
  esac
122428
 
 
122429
 
 
122430
 
  
122431
 
else
122432
 
  
122433
 
    LDFLAGS=$save_old_LDFLAGS
122434
 
    ext_shared=$save_ext_shared
122435
 
    unset ac_cv_lib_insck_bsd_tcp
122436
 
    
122437
 
  
122438
 
fi
122439
 
 
122440
 
  else
122441
 
    
122442
 
  
122443
 
  case cs in
122444
 
  c|c_r|pthread*) ;;
122445
 
  *) 
122446
 
    if test "$ext_shared" = "yes"; then
122447
 
        SYBASE_CT_SHARED_LIBADD="-lcs $SYBASE_CT_SHARED_LIBADD" 
122448
 
    else
122449
 
      
122450
 
  
122451
 
  case cs in
122452
 
  c|c_r|pthread*) ;;
122453
 
  *) 
122454
 
      LIBS="-lcs $LIBS" 
122455
 
   ;;
122456
 
  esac
122457
 
 
122458
 
 
122459
 
    fi
122460
 
   ;;
122461
 
  esac
122462
 
 
122463
 
 
122464
 
    
122465
 
  
122466
 
  case ct in
122467
 
  c|c_r|pthread*) ;;
122468
 
  *) 
122469
 
    if test "$ext_shared" = "yes"; then
122470
 
        SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD" 
122471
 
    else
122472
 
      
122473
 
  
122474
 
  case ct in
122475
 
  c|c_r|pthread*) ;;
122476
 
  *) 
122477
 
      LIBS="-lct $LIBS" 
122478
 
   ;;
122479
 
  esac
122480
 
 
122481
 
 
122482
 
    fi
122483
 
   ;;
122484
 
  esac
122485
 
 
122486
 
 
122487
 
    
122488
 
  
122489
 
  case comn in
122490
 
  c|c_r|pthread*) ;;
122491
 
  *) 
122492
 
    if test "$ext_shared" = "yes"; then
122493
 
        SYBASE_CT_SHARED_LIBADD="-lcomn $SYBASE_CT_SHARED_LIBADD" 
122494
 
    else
122495
 
      
122496
 
  
122497
 
  case comn in
122498
 
  c|c_r|pthread*) ;;
122499
 
  *) 
122500
 
      LIBS="-lcomn $LIBS" 
122501
 
   ;;
122502
 
  esac
122503
 
 
122504
 
 
122505
 
    fi
122506
 
   ;;
122507
 
  esac
122508
 
 
122509
 
 
122510
 
    
122511
 
  
122512
 
  case intl in
122513
 
  c|c_r|pthread*) ;;
122514
 
  *) 
122515
 
    if test "$ext_shared" = "yes"; then
122516
 
        SYBASE_CT_SHARED_LIBADD="-lintl $SYBASE_CT_SHARED_LIBADD" 
122517
 
    else
122518
 
      
122519
 
  
122520
 
  case intl in
122521
 
  c|c_r|pthread*) ;;
122522
 
  *) 
122523
 
      LIBS="-lintl $LIBS" 
122524
 
   ;;
122525
 
  esac
122526
 
 
122527
 
 
122528
 
    fi
122529
 
   ;;
122530
 
  esac
122531
 
 
122532
 
 
122533
 
  
122534
 
    SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
122535
 
    { $as_echo "$as_me:$LINENO: result: Sybase32 default: $SYBASE_CT_LIBS" >&5
122536
 
$as_echo "Sybase32 default: $SYBASE_CT_LIBS" >&6; }
122537
 
  
122538
 
    
122539
 
  save_old_LDFLAGS=$LDFLAGS
122540
 
  ac_stuff=" 
122541
 
      $SYBASE_CT_LIBS 
122542
 
    "
122543
 
  
122544
 
  save_ext_shared=$ext_shared
122545
 
  ext_shared=yes
122546
 
  
122547
 
  for ac_i in $ac_stuff; do
122548
 
    case $ac_i in
122549
 
    -pthread)
122550
 
      if test "$ext_shared" = "yes"; then
122551
 
        LDFLAGS="$LDFLAGS -pthread"
122552
 
      else
122553
 
        
122554
 
  
122555
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
122556
 
  
122557
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
122558
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
122559
 
    eval "EXTRA_LDFLAGS$unique=set"
122560
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
122561
 
  fi
122562
 
 
122563
 
      fi
122564
 
    ;;
122565
 
    -l*)
122566
 
      ac_ii=`echo $ac_i|cut -c 3-`
122567
 
      
122568
 
  
122569
 
  case $ac_ii in
122570
 
  c|c_r|pthread*) ;;
122571
 
  *) 
122572
 
    if test "$ext_shared" = "yes"; then
122573
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
122574
 
    else
122575
 
      
122576
 
  
122577
 
  case $ac_ii in
122578
 
  c|c_r|pthread*) ;;
122579
 
  *) 
122580
 
      LIBS="$LIBS -l$ac_ii" 
122581
 
   ;;
122582
 
  esac
122583
 
 
122584
 
 
122585
 
    fi
122586
 
   ;;
122587
 
  esac
122588
 
 
122589
 
 
122590
 
    ;;
122591
 
    -L*)
122592
 
      ac_ii=`echo $ac_i|cut -c 3-`
122593
 
      
122594
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
122595
 
    
122596
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
122597
 
    ai_p=$ac_ii
122598
 
  else
122599
 
    
122600
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
122601
 
    
122602
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
122603
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
122604
 
  fi
122605
 
 
122606
 
    
122607
 
      if test "$ext_shared" = "yes"; then
122608
 
        LDFLAGS="-L$ai_p $LDFLAGS"
122609
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
122610
 
      else
122611
 
        
122612
 
  
122613
 
  
122614
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
122615
 
  
122616
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
122617
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
122618
 
    eval "LIBPATH$unique=set"
122619
 
    
122620
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
122621
 
    LDFLAGS="$LDFLAGS -L$ai_p"
122622
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
122623
 
  
122624
 
  fi
122625
 
 
122626
 
 
122627
 
      fi
122628
 
    
122629
 
  fi
122630
 
 
122631
 
    ;;
122632
 
    esac
122633
 
  done
122634
 
 
122635
 
  { $as_echo "$as_me:$LINENO: checking for netg_errstr in -ltcl" >&5
122636
 
$as_echo_n "checking for netg_errstr in -ltcl... " >&6; }
122637
 
if test "${ac_cv_lib_tcl_netg_errstr+set}" = set; then
122638
 
  $as_echo_n "(cached) " >&6
122639
 
else
122640
 
  ac_check_lib_save_LIBS=$LIBS
122641
 
LIBS="-ltcl  $LIBS"
122642
 
cat >conftest.$ac_ext <<_ACEOF
122643
 
/* confdefs.h.  */
122644
 
_ACEOF
122645
 
cat confdefs.h >>conftest.$ac_ext
122646
 
cat >>conftest.$ac_ext <<_ACEOF
122647
 
/* end confdefs.h.  */
122648
 
 
122649
 
/* Override any GCC internal prototype to avoid an error.
122650
 
   Use char because int might match the return type of a GCC
122651
 
   builtin and then its argument prototype would still apply.  */
122652
 
#ifdef __cplusplus
122653
 
extern "C"
122654
 
#endif
122655
 
char netg_errstr ();
122656
 
int
122657
 
main ()
122658
 
{
122659
 
return netg_errstr ();
122660
 
  ;
122661
 
  return 0;
122662
 
}
122663
 
_ACEOF
122664
 
rm -f conftest.$ac_objext conftest$ac_exeext
122665
 
if { (ac_try="$ac_link"
122666
 
case "(($ac_try" in
122667
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
122668
 
  *) ac_try_echo=$ac_try;;
122669
 
esac
122670
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
122671
 
$as_echo "$ac_try_echo") >&5
122672
 
  (eval "$ac_link") 2>conftest.er1
122673
 
  ac_status=$?
122674
 
  grep -v '^ *+' conftest.er1 >conftest.err
122675
 
  rm -f conftest.er1
122676
 
  cat conftest.err >&5
122677
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
122678
 
  (exit $ac_status); } && {
122679
 
         test -z "$ac_c_werror_flag" ||
122680
 
         test ! -s conftest.err
122681
 
       } && test -s conftest$ac_exeext && {
122682
 
         test "$cross_compiling" = yes ||
122683
 
         $as_test_x conftest$ac_exeext
122684
 
       }; then
122685
 
  ac_cv_lib_tcl_netg_errstr=yes
122686
 
else
122687
 
  $as_echo "$as_me: failed program was:" >&5
122688
 
sed 's/^/| /' conftest.$ac_ext >&5
122689
 
 
122690
 
        ac_cv_lib_tcl_netg_errstr=no
122691
 
fi
122692
 
 
122693
 
rm -rf conftest.dSYM
122694
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
122695
 
      conftest$ac_exeext conftest.$ac_ext
122696
 
LIBS=$ac_check_lib_save_LIBS
122697
 
fi
122698
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_netg_errstr" >&5
122699
 
$as_echo "$ac_cv_lib_tcl_netg_errstr" >&6; }
122700
 
if test "x$ac_cv_lib_tcl_netg_errstr" = x""yes; then
122701
 
  
122702
 
    LDFLAGS=$save_old_LDFLAGS
122703
 
    ext_shared=$save_ext_shared
122704
 
    
122705
 
      
122706
 
  
122707
 
  case tcl in
122708
 
  c|c_r|pthread*) ;;
122709
 
  *) 
122710
 
    if test "$ext_shared" = "yes"; then
122711
 
        SYBASE_CT_SHARED_LIBADD="-ltcl $SYBASE_CT_SHARED_LIBADD" 
122712
 
    else
122713
 
      
122714
 
  
122715
 
  case tcl in
122716
 
  c|c_r|pthread*) ;;
122717
 
  *) 
122718
 
      LIBS="-ltcl $LIBS" 
122719
 
   ;;
122720
 
  esac
122721
 
 
122722
 
 
122723
 
    fi
122724
 
   ;;
122725
 
  esac
122726
 
 
122727
 
 
122728
 
    
122729
 
  
122730
 
else
122731
 
  
122732
 
    LDFLAGS=$save_old_LDFLAGS
122733
 
    ext_shared=$save_ext_shared
122734
 
    unset ac_cv_lib_tcl_netg_errstr
122735
 
     
122736
 
      
122737
 
  
122738
 
  case sybtcl in
122739
 
  c|c_r|pthread*) ;;
122740
 
  *) 
122741
 
    if test "$ext_shared" = "yes"; then
122742
 
        SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD" 
122743
 
    else
122744
 
      
122745
 
  
122746
 
  case sybtcl in
122747
 
  c|c_r|pthread*) ;;
122748
 
  *) 
122749
 
      LIBS="-lsybtcl $LIBS" 
122750
 
   ;;
122751
 
  esac
122752
 
 
122753
 
 
122754
 
    fi
122755
 
   ;;
122756
 
  esac
122757
 
 
122758
 
 
122759
 
    
122760
 
  
122761
 
fi
122762
 
 
122763
 
  
122764
 
    
122765
 
  save_old_LDFLAGS=$LDFLAGS
122766
 
  ac_stuff="-L$SYBASE_CT_LIBDIR"
122767
 
  
122768
 
  save_ext_shared=$ext_shared
122769
 
  ext_shared=yes
122770
 
  
122771
 
  for ac_i in $ac_stuff; do
122772
 
    case $ac_i in
122773
 
    -pthread)
122774
 
      if test "$ext_shared" = "yes"; then
122775
 
        LDFLAGS="$LDFLAGS -pthread"
122776
 
      else
122777
 
        
122778
 
  
122779
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
122780
 
  
122781
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
122782
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
122783
 
    eval "EXTRA_LDFLAGS$unique=set"
122784
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
122785
 
  fi
122786
 
 
122787
 
      fi
122788
 
    ;;
122789
 
    -l*)
122790
 
      ac_ii=`echo $ac_i|cut -c 3-`
122791
 
      
122792
 
  
122793
 
  case $ac_ii in
122794
 
  c|c_r|pthread*) ;;
122795
 
  *) 
122796
 
    if test "$ext_shared" = "yes"; then
122797
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
122798
 
    else
122799
 
      
122800
 
  
122801
 
  case $ac_ii in
122802
 
  c|c_r|pthread*) ;;
122803
 
  *) 
122804
 
      LIBS="$LIBS -l$ac_ii" 
122805
 
   ;;
122806
 
  esac
122807
 
 
122808
 
 
122809
 
    fi
122810
 
   ;;
122811
 
  esac
122812
 
 
122813
 
 
122814
 
    ;;
122815
 
    -L*)
122816
 
      ac_ii=`echo $ac_i|cut -c 3-`
122817
 
      
122818
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
122819
 
    
122820
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
122821
 
    ai_p=$ac_ii
122822
 
  else
122823
 
    
122824
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
122825
 
    
122826
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
122827
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
122828
 
  fi
122829
 
 
122830
 
    
122831
 
      if test "$ext_shared" = "yes"; then
122832
 
        LDFLAGS="-L$ai_p $LDFLAGS"
122833
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
122834
 
      else
122835
 
        
122836
 
  
122837
 
  
122838
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
122839
 
  
122840
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
122841
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
122842
 
    eval "LIBPATH$unique=set"
122843
 
    
122844
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
122845
 
    LDFLAGS="$LDFLAGS -L$ai_p"
122846
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
122847
 
  
122848
 
  fi
122849
 
 
122850
 
 
122851
 
      fi
122852
 
    
122853
 
  fi
122854
 
 
122855
 
    ;;
122856
 
    esac
122857
 
  done
122858
 
 
122859
 
  { $as_echo "$as_me:$LINENO: checking for insck__getVdate in -linsck" >&5
122860
 
$as_echo_n "checking for insck__getVdate in -linsck... " >&6; }
122861
 
if test "${ac_cv_lib_insck_insck__getVdate+set}" = set; then
122862
 
  $as_echo_n "(cached) " >&6
122863
 
else
122864
 
  ac_check_lib_save_LIBS=$LIBS
122865
 
LIBS="-linsck  $LIBS"
122866
 
cat >conftest.$ac_ext <<_ACEOF
122867
 
/* confdefs.h.  */
122868
 
_ACEOF
122869
 
cat confdefs.h >>conftest.$ac_ext
122870
 
cat >>conftest.$ac_ext <<_ACEOF
122871
 
/* end confdefs.h.  */
122872
 
 
122873
 
/* Override any GCC internal prototype to avoid an error.
122874
 
   Use char because int might match the return type of a GCC
122875
 
   builtin and then its argument prototype would still apply.  */
122876
 
#ifdef __cplusplus
122877
 
extern "C"
122878
 
#endif
122879
 
char insck__getVdate ();
122880
 
int
122881
 
main ()
122882
 
{
122883
 
return insck__getVdate ();
122884
 
  ;
122885
 
  return 0;
122886
 
}
122887
 
_ACEOF
122888
 
rm -f conftest.$ac_objext conftest$ac_exeext
122889
 
if { (ac_try="$ac_link"
122890
 
case "(($ac_try" in
122891
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
122892
 
  *) ac_try_echo=$ac_try;;
122893
 
esac
122894
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
122895
 
$as_echo "$ac_try_echo") >&5
122896
 
  (eval "$ac_link") 2>conftest.er1
122897
 
  ac_status=$?
122898
 
  grep -v '^ *+' conftest.er1 >conftest.err
122899
 
  rm -f conftest.er1
122900
 
  cat conftest.err >&5
122901
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
122902
 
  (exit $ac_status); } && {
122903
 
         test -z "$ac_c_werror_flag" ||
122904
 
         test ! -s conftest.err
122905
 
       } && test -s conftest$ac_exeext && {
122906
 
         test "$cross_compiling" = yes ||
122907
 
         $as_test_x conftest$ac_exeext
122908
 
       }; then
122909
 
  ac_cv_lib_insck_insck__getVdate=yes
122910
 
else
122911
 
  $as_echo "$as_me: failed program was:" >&5
122912
 
sed 's/^/| /' conftest.$ac_ext >&5
122913
 
 
122914
 
        ac_cv_lib_insck_insck__getVdate=no
122915
 
fi
122916
 
 
122917
 
rm -rf conftest.dSYM
122918
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
122919
 
      conftest$ac_exeext conftest.$ac_ext
122920
 
LIBS=$ac_check_lib_save_LIBS
122921
 
fi
122922
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_insck_insck__getVdate" >&5
122923
 
$as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; }
122924
 
if test "x$ac_cv_lib_insck_insck__getVdate" = x""yes; then
122925
 
  
122926
 
    LDFLAGS=$save_old_LDFLAGS
122927
 
    ext_shared=$save_ext_shared
122928
 
    
122929
 
  
122930
 
  case insck in
122931
 
  c|c_r|pthread*) ;;
122932
 
  *) 
122933
 
    if test "$ext_shared" = "yes"; then
122934
 
        SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" 
122935
 
    else
122936
 
      
122937
 
  
122938
 
  case insck in
122939
 
  c|c_r|pthread*) ;;
122940
 
  *) 
122941
 
      LIBS="-linsck $LIBS" 
122942
 
   ;;
122943
 
  esac
122944
 
 
122945
 
 
122946
 
    fi
122947
 
   ;;
122948
 
  esac
122949
 
 
122950
 
 
122951
 
  
122952
 
else
122953
 
  
122954
 
    LDFLAGS=$save_old_LDFLAGS
122955
 
    ext_shared=$save_ext_shared
122956
 
    unset ac_cv_lib_insck_insck__getVdate
122957
 
    
122958
 
  
122959
 
fi
122960
 
 
122961
 
    
122962
 
  save_old_LDFLAGS=$LDFLAGS
122963
 
  ac_stuff="-L$SYBASE_CT_LIBDIR"
122964
 
  
122965
 
  save_ext_shared=$ext_shared
122966
 
  ext_shared=yes
122967
 
  
122968
 
  for ac_i in $ac_stuff; do
122969
 
    case $ac_i in
122970
 
    -pthread)
122971
 
      if test "$ext_shared" = "yes"; then
122972
 
        LDFLAGS="$LDFLAGS -pthread"
122973
 
      else
122974
 
        
122975
 
  
122976
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
122977
 
  
122978
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
122979
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
122980
 
    eval "EXTRA_LDFLAGS$unique=set"
122981
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
122982
 
  fi
122983
 
 
122984
 
      fi
122985
 
    ;;
122986
 
    -l*)
122987
 
      ac_ii=`echo $ac_i|cut -c 3-`
122988
 
      
122989
 
  
122990
 
  case $ac_ii in
122991
 
  c|c_r|pthread*) ;;
122992
 
  *) 
122993
 
    if test "$ext_shared" = "yes"; then
122994
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
122995
 
    else
122996
 
      
122997
 
  
122998
 
  case $ac_ii in
122999
 
  c|c_r|pthread*) ;;
123000
 
  *) 
123001
 
      LIBS="$LIBS -l$ac_ii" 
123002
 
   ;;
123003
 
  esac
123004
 
 
123005
 
 
123006
 
    fi
123007
 
   ;;
123008
 
  esac
123009
 
 
123010
 
 
123011
 
    ;;
123012
 
    -L*)
123013
 
      ac_ii=`echo $ac_i|cut -c 3-`
123014
 
      
123015
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
123016
 
    
123017
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
123018
 
    ai_p=$ac_ii
123019
 
  else
123020
 
    
123021
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
123022
 
    
123023
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
123024
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
123025
 
  fi
123026
 
 
123027
 
    
123028
 
      if test "$ext_shared" = "yes"; then
123029
 
        LDFLAGS="-L$ai_p $LDFLAGS"
123030
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
123031
 
      else
123032
 
        
123033
 
  
123034
 
  
123035
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
123036
 
  
123037
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
123038
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
123039
 
    eval "LIBPATH$unique=set"
123040
 
    
123041
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
123042
 
    LDFLAGS="$LDFLAGS -L$ai_p"
123043
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
123044
 
  
123045
 
  fi
123046
 
 
123047
 
 
123048
 
      fi
123049
 
    
123050
 
  fi
123051
 
 
123052
 
    ;;
123053
 
    esac
123054
 
  done
123055
 
 
123056
 
  { $as_echo "$as_me:$LINENO: checking for bsd_tcp in -linsck" >&5
123057
 
$as_echo_n "checking for bsd_tcp in -linsck... " >&6; }
123058
 
if test "${ac_cv_lib_insck_bsd_tcp+set}" = set; then
123059
 
  $as_echo_n "(cached) " >&6
123060
 
else
123061
 
  ac_check_lib_save_LIBS=$LIBS
123062
 
LIBS="-linsck  $LIBS"
123063
 
cat >conftest.$ac_ext <<_ACEOF
123064
 
/* confdefs.h.  */
123065
 
_ACEOF
123066
 
cat confdefs.h >>conftest.$ac_ext
123067
 
cat >>conftest.$ac_ext <<_ACEOF
123068
 
/* end confdefs.h.  */
123069
 
 
123070
 
/* Override any GCC internal prototype to avoid an error.
123071
 
   Use char because int might match the return type of a GCC
123072
 
   builtin and then its argument prototype would still apply.  */
123073
 
#ifdef __cplusplus
123074
 
extern "C"
123075
 
#endif
123076
 
char bsd_tcp ();
123077
 
int
123078
 
main ()
123079
 
{
123080
 
return bsd_tcp ();
123081
 
  ;
123082
 
  return 0;
123083
 
}
123084
 
_ACEOF
123085
 
rm -f conftest.$ac_objext conftest$ac_exeext
123086
 
if { (ac_try="$ac_link"
123087
 
case "(($ac_try" in
123088
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
123089
 
  *) ac_try_echo=$ac_try;;
123090
 
esac
123091
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
123092
 
$as_echo "$ac_try_echo") >&5
123093
 
  (eval "$ac_link") 2>conftest.er1
123094
 
  ac_status=$?
123095
 
  grep -v '^ *+' conftest.er1 >conftest.err
123096
 
  rm -f conftest.er1
123097
 
  cat conftest.err >&5
123098
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
123099
 
  (exit $ac_status); } && {
123100
 
         test -z "$ac_c_werror_flag" ||
123101
 
         test ! -s conftest.err
123102
 
       } && test -s conftest$ac_exeext && {
123103
 
         test "$cross_compiling" = yes ||
123104
 
         $as_test_x conftest$ac_exeext
123105
 
       }; then
123106
 
  ac_cv_lib_insck_bsd_tcp=yes
123107
 
else
123108
 
  $as_echo "$as_me: failed program was:" >&5
123109
 
sed 's/^/| /' conftest.$ac_ext >&5
123110
 
 
123111
 
        ac_cv_lib_insck_bsd_tcp=no
123112
 
fi
123113
 
 
123114
 
rm -rf conftest.dSYM
123115
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
123116
 
      conftest$ac_exeext conftest.$ac_ext
123117
 
LIBS=$ac_check_lib_save_LIBS
123118
 
fi
123119
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_insck_bsd_tcp" >&5
123120
 
$as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; }
123121
 
if test "x$ac_cv_lib_insck_bsd_tcp" = x""yes; then
123122
 
  
123123
 
    LDFLAGS=$save_old_LDFLAGS
123124
 
    ext_shared=$save_ext_shared
123125
 
    
123126
 
  
123127
 
  case insck in
123128
 
  c|c_r|pthread*) ;;
123129
 
  *) 
123130
 
    if test "$ext_shared" = "yes"; then
123131
 
        SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD" 
123132
 
    else
123133
 
      
123134
 
  
123135
 
  case insck in
123136
 
  c|c_r|pthread*) ;;
123137
 
  *) 
123138
 
      LIBS="-linsck $LIBS" 
123139
 
   ;;
123140
 
  esac
123141
 
 
123142
 
 
123143
 
    fi
123144
 
   ;;
123145
 
  esac
123146
 
 
123147
 
 
123148
 
  
123149
 
else
123150
 
  
123151
 
    LDFLAGS=$save_old_LDFLAGS
123152
 
    ext_shared=$save_ext_shared
123153
 
    unset ac_cv_lib_insck_bsd_tcp
123154
 
    
123155
 
  
123156
 
fi
123157
 
 
123158
 
  fi
123159
 
fi
123160
 
 
123161
 
 
123162
 
 
123163
 
php_enable_sysvmsg=no
123164
 
 
123165
 
{ $as_echo "$as_me:$LINENO: checking whether to enable System V IPC support" >&5
123166
 
$as_echo_n "checking whether to enable System V IPC support... " >&6; }
123167
 
@%:@ Check whether --enable-sysvmsg was given.
123168
 
if test "${enable_sysvmsg+set}" = set; then
123169
 
  enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval
123170
 
else
123171
 
  
123172
 
  PHP_SYSVMSG=no
123173
 
  test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL
123174
 
 
123175
 
fi
123176
 
 
123177
 
 
123178
 
 
123179
 
ext_output="yes, shared"
123180
 
ext_shared=yes
123181
 
case $PHP_SYSVMSG in
123182
 
shared,*)
123183
 
  PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'`
123184
 
  ;;
123185
 
shared)
123186
 
  PHP_SYSVMSG=yes
123187
 
  ;;
123188
 
no)
123189
 
  ext_output=no
123190
 
  ext_shared=no
123191
 
  ;;
123192
 
*)
123193
 
  ext_output=yes
123194
 
  ext_shared=no
123195
 
  ;;
123196
 
esac
123197
 
 
123198
 
 
123199
 
 
123200
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
123201
 
$as_echo "$ext_output" >&6; }
123202
 
 
123203
 
 
123204
 
 
123205
 
 
123206
 
if test "$PHP_SYSVMSG" != "no"; then
123207
 
  if test "${ac_cv_header_sys_msg_h+set}" = set; then
123208
 
  { $as_echo "$as_me:$LINENO: checking for sys/msg.h" >&5
123209
 
$as_echo_n "checking for sys/msg.h... " >&6; }
123210
 
if test "${ac_cv_header_sys_msg_h+set}" = set; then
123211
 
  $as_echo_n "(cached) " >&6
123212
 
fi
123213
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_msg_h" >&5
123214
 
$as_echo "$ac_cv_header_sys_msg_h" >&6; }
123215
 
else
123216
 
  # Is the header compilable?
123217
 
{ $as_echo "$as_me:$LINENO: checking sys/msg.h usability" >&5
123218
 
$as_echo_n "checking sys/msg.h usability... " >&6; }
123219
 
cat >conftest.$ac_ext <<_ACEOF
123220
 
/* confdefs.h.  */
123221
 
_ACEOF
123222
 
cat confdefs.h >>conftest.$ac_ext
123223
 
cat >>conftest.$ac_ext <<_ACEOF
123224
 
/* end confdefs.h.  */
123225
 
$ac_includes_default
123226
 
@%:@include <sys/msg.h>
123227
 
_ACEOF
123228
 
rm -f conftest.$ac_objext
123229
 
if { (ac_try="$ac_compile"
123230
 
case "(($ac_try" in
123231
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
123232
 
  *) ac_try_echo=$ac_try;;
123233
 
esac
123234
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
123235
 
$as_echo "$ac_try_echo") >&5
123236
 
  (eval "$ac_compile") 2>conftest.er1
123237
 
  ac_status=$?
123238
 
  grep -v '^ *+' conftest.er1 >conftest.err
123239
 
  rm -f conftest.er1
123240
 
  cat conftest.err >&5
123241
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
123242
 
  (exit $ac_status); } && {
123243
 
         test -z "$ac_c_werror_flag" ||
123244
 
         test ! -s conftest.err
123245
 
       } && test -s conftest.$ac_objext; then
123246
 
  ac_header_compiler=yes
123247
 
else
123248
 
  $as_echo "$as_me: failed program was:" >&5
123249
 
sed 's/^/| /' conftest.$ac_ext >&5
123250
 
 
123251
 
        ac_header_compiler=no
123252
 
fi
123253
 
 
123254
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
123255
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
123256
 
$as_echo "$ac_header_compiler" >&6; }
123257
 
 
123258
 
# Is the header present?
123259
 
{ $as_echo "$as_me:$LINENO: checking sys/msg.h presence" >&5
123260
 
$as_echo_n "checking sys/msg.h presence... " >&6; }
123261
 
cat >conftest.$ac_ext <<_ACEOF
123262
 
/* confdefs.h.  */
123263
 
_ACEOF
123264
 
cat confdefs.h >>conftest.$ac_ext
123265
 
cat >>conftest.$ac_ext <<_ACEOF
123266
 
/* end confdefs.h.  */
123267
 
@%:@include <sys/msg.h>
123268
 
_ACEOF
123269
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
123270
 
case "(($ac_try" in
123271
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
123272
 
  *) ac_try_echo=$ac_try;;
123273
 
esac
123274
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
123275
 
$as_echo "$ac_try_echo") >&5
123276
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
123277
 
  ac_status=$?
123278
 
  grep -v '^ *+' conftest.er1 >conftest.err
123279
 
  rm -f conftest.er1
123280
 
  cat conftest.err >&5
123281
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
123282
 
  (exit $ac_status); } >/dev/null && {
123283
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
123284
 
         test ! -s conftest.err
123285
 
       }; then
123286
 
  ac_header_preproc=yes
123287
 
else
123288
 
  $as_echo "$as_me: failed program was:" >&5
123289
 
sed 's/^/| /' conftest.$ac_ext >&5
123290
 
 
123291
 
  ac_header_preproc=no
123292
 
fi
123293
 
 
123294
 
rm -f conftest.err conftest.$ac_ext
123295
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
123296
 
$as_echo "$ac_header_preproc" >&6; }
123297
 
 
123298
 
# So?  What about this header?
123299
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
123300
 
  yes:no: )
123301
 
    { $as_echo "$as_me:$LINENO: WARNING: sys/msg.h: accepted by the compiler, rejected by the preprocessor!" >&5
123302
 
$as_echo "$as_me: WARNING: sys/msg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
123303
 
    { $as_echo "$as_me:$LINENO: WARNING: sys/msg.h: proceeding with the compiler's result" >&5
123304
 
$as_echo "$as_me: WARNING: sys/msg.h: proceeding with the compiler's result" >&2;}
123305
 
    ac_header_preproc=yes
123306
 
    ;;
123307
 
  no:yes:* )
123308
 
    { $as_echo "$as_me:$LINENO: WARNING: sys/msg.h: present but cannot be compiled" >&5
123309
 
$as_echo "$as_me: WARNING: sys/msg.h: present but cannot be compiled" >&2;}
123310
 
    { $as_echo "$as_me:$LINENO: WARNING: sys/msg.h:     check for missing prerequisite headers?" >&5
123311
 
$as_echo "$as_me: WARNING: sys/msg.h:     check for missing prerequisite headers?" >&2;}
123312
 
    { $as_echo "$as_me:$LINENO: WARNING: sys/msg.h: see the Autoconf documentation" >&5
123313
 
$as_echo "$as_me: WARNING: sys/msg.h: see the Autoconf documentation" >&2;}
123314
 
    { $as_echo "$as_me:$LINENO: WARNING: sys/msg.h:     section \"Present But Cannot Be Compiled\"" >&5
123315
 
$as_echo "$as_me: WARNING: sys/msg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
123316
 
    { $as_echo "$as_me:$LINENO: WARNING: sys/msg.h: proceeding with the preprocessor's result" >&5
123317
 
$as_echo "$as_me: WARNING: sys/msg.h: proceeding with the preprocessor's result" >&2;}
123318
 
    { $as_echo "$as_me:$LINENO: WARNING: sys/msg.h: in the future, the compiler will take precedence" >&5
123319
 
$as_echo "$as_me: WARNING: sys/msg.h: in the future, the compiler will take precedence" >&2;}
123320
 
    
123321
 
    ;;
123322
 
esac
123323
 
{ $as_echo "$as_me:$LINENO: checking for sys/msg.h" >&5
123324
 
$as_echo_n "checking for sys/msg.h... " >&6; }
123325
 
if test "${ac_cv_header_sys_msg_h+set}" = set; then
123326
 
  $as_echo_n "(cached) " >&6
123327
 
else
123328
 
  ac_cv_header_sys_msg_h=$ac_header_preproc
123329
 
fi
123330
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_msg_h" >&5
123331
 
$as_echo "$ac_cv_header_sys_msg_h" >&6; }
123332
 
 
123333
 
fi
123334
 
if test "x$ac_cv_header_sys_msg_h" = x""yes; then
123335
 
  :
123336
 
else
123337
 
  { { $as_echo "$as_me:$LINENO: error: Cannot enable System V IPC support, sys/msg.h is missing" >&5
123338
 
$as_echo "$as_me: error: Cannot enable System V IPC support, sys/msg.h is missing" >&2;}
123339
 
   { (exit 1); exit 1; }; }
123340
 
  
123341
 
fi
123342
 
 
123343
 
 
123344
 
 
123345
 
  
123346
 
cat >>confdefs.h <<\_ACEOF
123347
 
@%:@define HAVE_SYSVMSG 1
123348
 
_ACEOF
123349
 
 
123350
 
  
123351
 
  ext_builddir=ext/sysvmsg
123352
 
  ext_srcdir=$abs_srcdir/ext/sysvmsg
123353
 
 
123354
 
  ac_extra=
123355
 
 
123356
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
123357
 
    PHP_SYSVMSG_SHARED=no
123358
 
    
123359
 
  
123360
 
  case ext/sysvmsg in
123361
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123362
 
  /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123363
 
  *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123364
 
  esac
123365
 
  
123366
 
  
123367
 
 
123368
 
  b_c_pre=$php_c_pre
123369
 
  b_cxx_pre=$php_cxx_pre
123370
 
  b_c_meta=$php_c_meta
123371
 
  b_cxx_meta=$php_cxx_meta
123372
 
  b_c_post=$php_c_post
123373
 
  b_cxx_post=$php_cxx_post
123374
 
  b_lo=$php_lo
123375
 
 
123376
 
 
123377
 
  old_IFS=$IFS
123378
 
  for ac_src in sysvmsg.c; do
123379
 
  
123380
 
      IFS=.
123381
 
      set $ac_src
123382
 
      ac_obj=$1
123383
 
      IFS=$old_IFS
123384
 
      
123385
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
123386
 
 
123387
 
      case $ac_src in
123388
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123389
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123390
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123391
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123392
 
      esac
123393
 
 
123394
 
    cat >>Makefile.objects<<EOF
123395
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123396
 
        $ac_comp
123397
 
EOF
123398
 
  done
123399
 
 
123400
 
 
123401
 
    EXT_STATIC="$EXT_STATIC sysvmsg"
123402
 
    if test "$ext_shared" != "nocli"; then
123403
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
123404
 
    fi
123405
 
  else
123406
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
123407
 
      PHP_SYSVMSG_SHARED=yes
123408
 
      
123409
 
  case ext/sysvmsg in
123410
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123411
 
  /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123412
 
  *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123413
 
  esac
123414
 
  
123415
 
  
123416
 
 
123417
 
  b_c_pre=$shared_c_pre
123418
 
  b_cxx_pre=$shared_cxx_pre
123419
 
  b_c_meta=$shared_c_meta
123420
 
  b_cxx_meta=$shared_cxx_meta
123421
 
  b_c_post=$shared_c_post
123422
 
  b_cxx_post=$shared_cxx_post
123423
 
  b_lo=$shared_lo
123424
 
 
123425
 
 
123426
 
  old_IFS=$IFS
123427
 
  for ac_src in sysvmsg.c; do
123428
 
  
123429
 
      IFS=.
123430
 
      set $ac_src
123431
 
      ac_obj=$1
123432
 
      IFS=$old_IFS
123433
 
      
123434
 
      shared_objects_sysvmsg="$shared_objects_sysvmsg $ac_bdir$ac_obj.lo"
123435
 
 
123436
 
      case $ac_src in
123437
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123438
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123439
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123440
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123441
 
      esac
123442
 
 
123443
 
    cat >>Makefile.objects<<EOF
123444
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123445
 
        $ac_comp
123446
 
EOF
123447
 
  done
123448
 
 
123449
 
      case $host_alias in
123450
 
        *netware*)
123451
 
          
123452
 
  install_modules="install-modules"
123453
 
 
123454
 
  case $host_alias in
123455
 
    *aix*)
123456
 
      suffix=so
123457
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsysvmsg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(PHPSYSVMSG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsysvmsg.so '$ext_builddir'/phpsysvmsg.so'
123458
 
      ;;
123459
 
    *netware*)
123460
 
      suffix=nlm
123461
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) -L$(top_builddir)/netware -lphp5lib $(SYSVMSG_SHARED_LIBADD)'
123462
 
      ;;
123463
 
    *)
123464
 
      suffix=la
123465
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(PHPSYSVMSG_SHARED_LIBADD)'
123466
 
      ;;
123467
 
  esac
123468
 
 
123469
 
  if test "x" = "xyes"; then
123470
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvmsg.$suffix"
123471
 
  else
123472
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvmsg.$suffix"
123473
 
  fi
123474
 
  
123475
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
123476
 
 
123477
 
  cat >>Makefile.objects<<EOF
123478
 
\$(phplibdir)/phpsysvmsg.$suffix: $ext_builddir/phpsysvmsg.$suffix
123479
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvmsg.$suffix \$(phplibdir)
123480
 
 
123481
 
$ext_builddir/phpsysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(PHPSYSVMSG_SHARED_DEPENDENCIES)
123482
 
        $link_cmd
123483
 
 
123484
 
EOF
123485
 
 
123486
 
          ;;
123487
 
        *)
123488
 
          
123489
 
  install_modules="install-modules"
123490
 
 
123491
 
  case $host_alias in
123492
 
    *aix*)
123493
 
      suffix=so
123494
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sysvmsg.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(SYSVMSG_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sysvmsg.so '$ext_builddir'/sysvmsg.so'
123495
 
      ;;
123496
 
    *netware*)
123497
 
      suffix=nlm
123498
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) -L$(top_builddir)/netware -lphp5lib $(VMSG_SHARED_LIBADD)'
123499
 
      ;;
123500
 
    *)
123501
 
      suffix=la
123502
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvmsg) $(SYSVMSG_SHARED_LIBADD)'
123503
 
      ;;
123504
 
  esac
123505
 
 
123506
 
  if test "x" = "xyes"; then
123507
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvmsg.$suffix"
123508
 
  else
123509
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvmsg.$suffix"
123510
 
  fi
123511
 
  
123512
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
123513
 
 
123514
 
  cat >>Makefile.objects<<EOF
123515
 
\$(phplibdir)/sysvmsg.$suffix: $ext_builddir/sysvmsg.$suffix
123516
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/sysvmsg.$suffix \$(phplibdir)
123517
 
 
123518
 
$ext_builddir/sysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(SYSVMSG_SHARED_DEPENDENCIES)
123519
 
        $link_cmd
123520
 
 
123521
 
EOF
123522
 
 
123523
 
          ;;
123524
 
      esac
123525
 
      
123526
 
cat >>confdefs.h <<_ACEOF
123527
 
@%:@define COMPILE_DL_SYSVMSG 1
123528
 
_ACEOF
123529
 
 
123530
 
    fi
123531
 
  fi
123532
 
 
123533
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
123534
 
    PHP_SYSVMSG_SHARED=no
123535
 
    case "$PHP_SAPI" in
123536
 
      cgi|embed)
123537
 
        
123538
 
  
123539
 
  case ext/sysvmsg in
123540
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123541
 
  /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123542
 
  *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123543
 
  esac
123544
 
  
123545
 
  
123546
 
 
123547
 
  b_c_pre=$php_c_pre
123548
 
  b_cxx_pre=$php_cxx_pre
123549
 
  b_c_meta=$php_c_meta
123550
 
  b_cxx_meta=$php_cxx_meta
123551
 
  b_c_post=$php_c_post
123552
 
  b_cxx_post=$php_cxx_post
123553
 
  b_lo=$php_lo
123554
 
 
123555
 
 
123556
 
  old_IFS=$IFS
123557
 
  for ac_src in sysvmsg.c; do
123558
 
  
123559
 
      IFS=.
123560
 
      set $ac_src
123561
 
      ac_obj=$1
123562
 
      IFS=$old_IFS
123563
 
      
123564
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
123565
 
 
123566
 
      case $ac_src in
123567
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123568
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123569
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123570
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123571
 
      esac
123572
 
 
123573
 
    cat >>Makefile.objects<<EOF
123574
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123575
 
        $ac_comp
123576
 
EOF
123577
 
  done
123578
 
 
123579
 
 
123580
 
        EXT_STATIC="$EXT_STATIC sysvmsg"
123581
 
        ;;
123582
 
      *)
123583
 
        
123584
 
  
123585
 
  case ext/sysvmsg in
123586
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123587
 
  /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123588
 
  *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123589
 
  esac
123590
 
  
123591
 
  
123592
 
 
123593
 
  b_c_pre=$php_c_pre
123594
 
  b_cxx_pre=$php_cxx_pre
123595
 
  b_c_meta=$php_c_meta
123596
 
  b_cxx_meta=$php_cxx_meta
123597
 
  b_c_post=$php_c_post
123598
 
  b_cxx_post=$php_cxx_post
123599
 
  b_lo=$php_lo
123600
 
 
123601
 
 
123602
 
  old_IFS=$IFS
123603
 
  for ac_src in sysvmsg.c; do
123604
 
  
123605
 
      IFS=.
123606
 
      set $ac_src
123607
 
      ac_obj=$1
123608
 
      IFS=$old_IFS
123609
 
      
123610
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
123611
 
 
123612
 
      case $ac_src in
123613
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123614
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123615
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123616
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123617
 
      esac
123618
 
 
123619
 
    cat >>Makefile.objects<<EOF
123620
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123621
 
        $ac_comp
123622
 
EOF
123623
 
  done
123624
 
 
123625
 
 
123626
 
        ;;
123627
 
    esac
123628
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
123629
 
  fi
123630
 
  
123631
 
  
123632
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
123633
 
  
123634
 
 
123635
 
 
123636
 
  if test "$ext_builddir" = "."; then
123637
 
    PHP_PECL_EXTENSION=sysvmsg
123638
 
    
123639
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
123640
 
 
123641
 
  fi
123642
 
 
123643
 
fi
123644
 
 
123645
 
 
123646
 
 
123647
 
php_enable_sysvsem=no
123648
 
 
123649
 
{ $as_echo "$as_me:$LINENO: checking whether to enable System V semaphore support" >&5
123650
 
$as_echo_n "checking whether to enable System V semaphore support... " >&6; }
123651
 
@%:@ Check whether --enable-sysvsem was given.
123652
 
if test "${enable_sysvsem+set}" = set; then
123653
 
  enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval
123654
 
else
123655
 
  
123656
 
  PHP_SYSVSEM=no
123657
 
  test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL
123658
 
 
123659
 
fi
123660
 
 
123661
 
 
123662
 
 
123663
 
ext_output="yes, shared"
123664
 
ext_shared=yes
123665
 
case $PHP_SYSVSEM in
123666
 
shared,*)
123667
 
  PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'`
123668
 
  ;;
123669
 
shared)
123670
 
  PHP_SYSVSEM=yes
123671
 
  ;;
123672
 
no)
123673
 
  ext_output=no
123674
 
  ext_shared=no
123675
 
  ;;
123676
 
*)
123677
 
  ext_output=yes
123678
 
  ext_shared=no
123679
 
  ;;
123680
 
esac
123681
 
 
123682
 
 
123683
 
 
123684
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
123685
 
$as_echo "$ext_output" >&6; }
123686
 
 
123687
 
 
123688
 
 
123689
 
 
123690
 
if test "$PHP_SYSVSEM" != "no"; then
123691
 
 
123692
 
  ext_builddir=ext/sysvsem
123693
 
  ext_srcdir=$abs_srcdir/ext/sysvsem
123694
 
 
123695
 
  ac_extra=
123696
 
 
123697
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
123698
 
    PHP_SYSVSEM_SHARED=no
123699
 
    
123700
 
  
123701
 
  case ext/sysvsem in
123702
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123703
 
  /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123704
 
  *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123705
 
  esac
123706
 
  
123707
 
  
123708
 
 
123709
 
  b_c_pre=$php_c_pre
123710
 
  b_cxx_pre=$php_cxx_pre
123711
 
  b_c_meta=$php_c_meta
123712
 
  b_cxx_meta=$php_cxx_meta
123713
 
  b_c_post=$php_c_post
123714
 
  b_cxx_post=$php_cxx_post
123715
 
  b_lo=$php_lo
123716
 
 
123717
 
 
123718
 
  old_IFS=$IFS
123719
 
  for ac_src in sysvsem.c; do
123720
 
  
123721
 
      IFS=.
123722
 
      set $ac_src
123723
 
      ac_obj=$1
123724
 
      IFS=$old_IFS
123725
 
      
123726
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
123727
 
 
123728
 
      case $ac_src in
123729
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123730
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123731
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123732
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123733
 
      esac
123734
 
 
123735
 
    cat >>Makefile.objects<<EOF
123736
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123737
 
        $ac_comp
123738
 
EOF
123739
 
  done
123740
 
 
123741
 
 
123742
 
    EXT_STATIC="$EXT_STATIC sysvsem"
123743
 
    if test "$ext_shared" != "nocli"; then
123744
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
123745
 
    fi
123746
 
  else
123747
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
123748
 
      PHP_SYSVSEM_SHARED=yes
123749
 
      
123750
 
  case ext/sysvsem in
123751
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123752
 
  /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123753
 
  *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123754
 
  esac
123755
 
  
123756
 
  
123757
 
 
123758
 
  b_c_pre=$shared_c_pre
123759
 
  b_cxx_pre=$shared_cxx_pre
123760
 
  b_c_meta=$shared_c_meta
123761
 
  b_cxx_meta=$shared_cxx_meta
123762
 
  b_c_post=$shared_c_post
123763
 
  b_cxx_post=$shared_cxx_post
123764
 
  b_lo=$shared_lo
123765
 
 
123766
 
 
123767
 
  old_IFS=$IFS
123768
 
  for ac_src in sysvsem.c; do
123769
 
  
123770
 
      IFS=.
123771
 
      set $ac_src
123772
 
      ac_obj=$1
123773
 
      IFS=$old_IFS
123774
 
      
123775
 
      shared_objects_sysvsem="$shared_objects_sysvsem $ac_bdir$ac_obj.lo"
123776
 
 
123777
 
      case $ac_src in
123778
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123779
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123780
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123781
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123782
 
      esac
123783
 
 
123784
 
    cat >>Makefile.objects<<EOF
123785
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123786
 
        $ac_comp
123787
 
EOF
123788
 
  done
123789
 
 
123790
 
      case $host_alias in
123791
 
        *netware*)
123792
 
          
123793
 
  install_modules="install-modules"
123794
 
 
123795
 
  case $host_alias in
123796
 
    *aix*)
123797
 
      suffix=so
123798
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsysvsem.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(PHPSYSVSEM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsysvsem.so '$ext_builddir'/phpsysvsem.so'
123799
 
      ;;
123800
 
    *netware*)
123801
 
      suffix=nlm
123802
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) -L$(top_builddir)/netware -lphp5lib $(SYSVSEM_SHARED_LIBADD)'
123803
 
      ;;
123804
 
    *)
123805
 
      suffix=la
123806
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(PHPSYSVSEM_SHARED_LIBADD)'
123807
 
      ;;
123808
 
  esac
123809
 
 
123810
 
  if test "x" = "xyes"; then
123811
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvsem.$suffix"
123812
 
  else
123813
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvsem.$suffix"
123814
 
  fi
123815
 
  
123816
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
123817
 
 
123818
 
  cat >>Makefile.objects<<EOF
123819
 
\$(phplibdir)/phpsysvsem.$suffix: $ext_builddir/phpsysvsem.$suffix
123820
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvsem.$suffix \$(phplibdir)
123821
 
 
123822
 
$ext_builddir/phpsysvsem.$suffix: \$(shared_objects_sysvsem) \$(PHPSYSVSEM_SHARED_DEPENDENCIES)
123823
 
        $link_cmd
123824
 
 
123825
 
EOF
123826
 
 
123827
 
          ;;
123828
 
        *)
123829
 
          
123830
 
  install_modules="install-modules"
123831
 
 
123832
 
  case $host_alias in
123833
 
    *aix*)
123834
 
      suffix=so
123835
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sysvsem.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(SYSVSEM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sysvsem.so '$ext_builddir'/sysvsem.so'
123836
 
      ;;
123837
 
    *netware*)
123838
 
      suffix=nlm
123839
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) -L$(top_builddir)/netware -lphp5lib $(VSEM_SHARED_LIBADD)'
123840
 
      ;;
123841
 
    *)
123842
 
      suffix=la
123843
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvsem) $(SYSVSEM_SHARED_LIBADD)'
123844
 
      ;;
123845
 
  esac
123846
 
 
123847
 
  if test "x" = "xyes"; then
123848
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvsem.$suffix"
123849
 
  else
123850
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvsem.$suffix"
123851
 
  fi
123852
 
  
123853
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
123854
 
 
123855
 
  cat >>Makefile.objects<<EOF
123856
 
\$(phplibdir)/sysvsem.$suffix: $ext_builddir/sysvsem.$suffix
123857
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/sysvsem.$suffix \$(phplibdir)
123858
 
 
123859
 
$ext_builddir/sysvsem.$suffix: \$(shared_objects_sysvsem) \$(SYSVSEM_SHARED_DEPENDENCIES)
123860
 
        $link_cmd
123861
 
 
123862
 
EOF
123863
 
 
123864
 
          ;;
123865
 
      esac
123866
 
      
123867
 
cat >>confdefs.h <<_ACEOF
123868
 
@%:@define COMPILE_DL_SYSVSEM 1
123869
 
_ACEOF
123870
 
 
123871
 
    fi
123872
 
  fi
123873
 
 
123874
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
123875
 
    PHP_SYSVSEM_SHARED=no
123876
 
    case "$PHP_SAPI" in
123877
 
      cgi|embed)
123878
 
        
123879
 
  
123880
 
  case ext/sysvsem in
123881
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123882
 
  /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123883
 
  *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123884
 
  esac
123885
 
  
123886
 
  
123887
 
 
123888
 
  b_c_pre=$php_c_pre
123889
 
  b_cxx_pre=$php_cxx_pre
123890
 
  b_c_meta=$php_c_meta
123891
 
  b_cxx_meta=$php_cxx_meta
123892
 
  b_c_post=$php_c_post
123893
 
  b_cxx_post=$php_cxx_post
123894
 
  b_lo=$php_lo
123895
 
 
123896
 
 
123897
 
  old_IFS=$IFS
123898
 
  for ac_src in sysvsem.c; do
123899
 
  
123900
 
      IFS=.
123901
 
      set $ac_src
123902
 
      ac_obj=$1
123903
 
      IFS=$old_IFS
123904
 
      
123905
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
123906
 
 
123907
 
      case $ac_src in
123908
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123909
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123910
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123911
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123912
 
      esac
123913
 
 
123914
 
    cat >>Makefile.objects<<EOF
123915
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123916
 
        $ac_comp
123917
 
EOF
123918
 
  done
123919
 
 
123920
 
 
123921
 
        EXT_STATIC="$EXT_STATIC sysvsem"
123922
 
        ;;
123923
 
      *)
123924
 
        
123925
 
  
123926
 
  case ext/sysvsem in
123927
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
123928
 
  /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
123929
 
  *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
123930
 
  esac
123931
 
  
123932
 
  
123933
 
 
123934
 
  b_c_pre=$php_c_pre
123935
 
  b_cxx_pre=$php_cxx_pre
123936
 
  b_c_meta=$php_c_meta
123937
 
  b_cxx_meta=$php_cxx_meta
123938
 
  b_c_post=$php_c_post
123939
 
  b_cxx_post=$php_cxx_post
123940
 
  b_lo=$php_lo
123941
 
 
123942
 
 
123943
 
  old_IFS=$IFS
123944
 
  for ac_src in sysvsem.c; do
123945
 
  
123946
 
      IFS=.
123947
 
      set $ac_src
123948
 
      ac_obj=$1
123949
 
      IFS=$old_IFS
123950
 
      
123951
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
123952
 
 
123953
 
      case $ac_src in
123954
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123955
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123956
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
123957
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
123958
 
      esac
123959
 
 
123960
 
    cat >>Makefile.objects<<EOF
123961
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
123962
 
        $ac_comp
123963
 
EOF
123964
 
  done
123965
 
 
123966
 
 
123967
 
        ;;
123968
 
    esac
123969
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
123970
 
  fi
123971
 
  
123972
 
  
123973
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
123974
 
  
123975
 
 
123976
 
 
123977
 
  if test "$ext_builddir" = "."; then
123978
 
    PHP_PECL_EXTENSION=sysvsem
123979
 
    
123980
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
123981
 
 
123982
 
  fi
123983
 
 
123984
 
 
123985
 
cat >>confdefs.h <<\_ACEOF
123986
 
@%:@define HAVE_SYSVSEM 1
123987
 
_ACEOF
123988
 
 
123989
 
 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
123990
 
$as_echo_n "checking for union semun... " >&6; }
123991
 
if test "${php_cv_semun+set}" = set; then
123992
 
  $as_echo_n "(cached) " >&6
123993
 
else
123994
 
  cat >conftest.$ac_ext <<_ACEOF
123995
 
/* confdefs.h.  */
123996
 
_ACEOF
123997
 
cat confdefs.h >>conftest.$ac_ext
123998
 
cat >>conftest.$ac_ext <<_ACEOF
123999
 
/* end confdefs.h.  */
124000
 
 
124001
 
#include <sys/types.h>
124002
 
#include <sys/ipc.h>
124003
 
#include <sys/sem.h>
124004
 
   
124005
 
int
124006
 
main ()
124007
 
{
124008
 
union semun x;
124009
 
  ;
124010
 
  return 0;
124011
 
}
124012
 
_ACEOF
124013
 
rm -f conftest.$ac_objext
124014
 
if { (ac_try="$ac_compile"
124015
 
case "(($ac_try" in
124016
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
124017
 
  *) ac_try_echo=$ac_try;;
124018
 
esac
124019
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
124020
 
$as_echo "$ac_try_echo") >&5
124021
 
  (eval "$ac_compile") 2>conftest.er1
124022
 
  ac_status=$?
124023
 
  grep -v '^ *+' conftest.er1 >conftest.err
124024
 
  rm -f conftest.er1
124025
 
  cat conftest.err >&5
124026
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
124027
 
  (exit $ac_status); } && {
124028
 
         test -z "$ac_c_werror_flag" ||
124029
 
         test ! -s conftest.err
124030
 
       } && test -s conftest.$ac_objext; then
124031
 
  
124032
 
     php_cv_semun=yes
124033
 
   
124034
 
else
124035
 
  $as_echo "$as_me: failed program was:" >&5
124036
 
sed 's/^/| /' conftest.$ac_ext >&5
124037
 
 
124038
 
        
124039
 
     php_cv_semun=no
124040
 
   
124041
 
fi
124042
 
 
124043
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
124044
 
 
124045
 
fi
124046
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_semun" >&5
124047
 
$as_echo "$php_cv_semun" >&6; }
124048
 
 if test "$php_cv_semun" = "yes"; then
124049
 
   
124050
 
cat >>confdefs.h <<\_ACEOF
124051
 
@%:@define HAVE_SEMUN 1
124052
 
_ACEOF
124053
 
 
124054
 
 else
124055
 
   
124056
 
cat >>confdefs.h <<\_ACEOF
124057
 
@%:@define HAVE_SEMUN 0
124058
 
_ACEOF
124059
 
 
124060
 
 fi
124061
 
fi
124062
 
 
124063
 
 
124064
 
 
124065
 
php_enable_sysvshm=no
124066
 
 
124067
 
{ $as_echo "$as_me:$LINENO: checking whether to enable System V shared memory support" >&5
124068
 
$as_echo_n "checking whether to enable System V shared memory support... " >&6; }
124069
 
@%:@ Check whether --enable-sysvshm was given.
124070
 
if test "${enable_sysvshm+set}" = set; then
124071
 
  enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval
124072
 
else
124073
 
  
124074
 
  PHP_SYSVSHM=no
124075
 
  test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL
124076
 
 
124077
 
fi
124078
 
 
124079
 
 
124080
 
 
124081
 
ext_output="yes, shared"
124082
 
ext_shared=yes
124083
 
case $PHP_SYSVSHM in
124084
 
shared,*)
124085
 
  PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'`
124086
 
  ;;
124087
 
shared)
124088
 
  PHP_SYSVSHM=yes
124089
 
  ;;
124090
 
no)
124091
 
  ext_output=no
124092
 
  ext_shared=no
124093
 
  ;;
124094
 
*)
124095
 
  ext_output=yes
124096
 
  ext_shared=no
124097
 
  ;;
124098
 
esac
124099
 
 
124100
 
 
124101
 
 
124102
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
124103
 
$as_echo "$ext_output" >&6; }
124104
 
 
124105
 
 
124106
 
 
124107
 
 
124108
 
if test "$PHP_SYSVSHM" != "no"; then
124109
 
  
124110
 
cat >>confdefs.h <<\_ACEOF
124111
 
@%:@define HAVE_SYSVSHM 1
124112
 
_ACEOF
124113
 
 
124114
 
  
124115
 
  ext_builddir=ext/sysvshm
124116
 
  ext_srcdir=$abs_srcdir/ext/sysvshm
124117
 
 
124118
 
  ac_extra=
124119
 
 
124120
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
124121
 
    PHP_SYSVSHM_SHARED=no
124122
 
    
124123
 
  
124124
 
  case ext/sysvshm in
124125
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124126
 
  /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124127
 
  *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124128
 
  esac
124129
 
  
124130
 
  
124131
 
 
124132
 
  b_c_pre=$php_c_pre
124133
 
  b_cxx_pre=$php_cxx_pre
124134
 
  b_c_meta=$php_c_meta
124135
 
  b_cxx_meta=$php_cxx_meta
124136
 
  b_c_post=$php_c_post
124137
 
  b_cxx_post=$php_cxx_post
124138
 
  b_lo=$php_lo
124139
 
 
124140
 
 
124141
 
  old_IFS=$IFS
124142
 
  for ac_src in sysvshm.c; do
124143
 
  
124144
 
      IFS=.
124145
 
      set $ac_src
124146
 
      ac_obj=$1
124147
 
      IFS=$old_IFS
124148
 
      
124149
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
124150
 
 
124151
 
      case $ac_src in
124152
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124153
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124154
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124155
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124156
 
      esac
124157
 
 
124158
 
    cat >>Makefile.objects<<EOF
124159
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124160
 
        $ac_comp
124161
 
EOF
124162
 
  done
124163
 
 
124164
 
 
124165
 
    EXT_STATIC="$EXT_STATIC sysvshm"
124166
 
    if test "$ext_shared" != "nocli"; then
124167
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
124168
 
    fi
124169
 
  else
124170
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
124171
 
      PHP_SYSVSHM_SHARED=yes
124172
 
      
124173
 
  case ext/sysvshm in
124174
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124175
 
  /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124176
 
  *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124177
 
  esac
124178
 
  
124179
 
  
124180
 
 
124181
 
  b_c_pre=$shared_c_pre
124182
 
  b_cxx_pre=$shared_cxx_pre
124183
 
  b_c_meta=$shared_c_meta
124184
 
  b_cxx_meta=$shared_cxx_meta
124185
 
  b_c_post=$shared_c_post
124186
 
  b_cxx_post=$shared_cxx_post
124187
 
  b_lo=$shared_lo
124188
 
 
124189
 
 
124190
 
  old_IFS=$IFS
124191
 
  for ac_src in sysvshm.c; do
124192
 
  
124193
 
      IFS=.
124194
 
      set $ac_src
124195
 
      ac_obj=$1
124196
 
      IFS=$old_IFS
124197
 
      
124198
 
      shared_objects_sysvshm="$shared_objects_sysvshm $ac_bdir$ac_obj.lo"
124199
 
 
124200
 
      case $ac_src in
124201
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124202
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124203
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124204
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124205
 
      esac
124206
 
 
124207
 
    cat >>Makefile.objects<<EOF
124208
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124209
 
        $ac_comp
124210
 
EOF
124211
 
  done
124212
 
 
124213
 
      case $host_alias in
124214
 
        *netware*)
124215
 
          
124216
 
  install_modules="install-modules"
124217
 
 
124218
 
  case $host_alias in
124219
 
    *aix*)
124220
 
      suffix=so
124221
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsysvshm.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(PHPSYSVSHM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsysvshm.so '$ext_builddir'/phpsysvshm.so'
124222
 
      ;;
124223
 
    *netware*)
124224
 
      suffix=nlm
124225
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) -L$(top_builddir)/netware -lphp5lib $(SYSVSHM_SHARED_LIBADD)'
124226
 
      ;;
124227
 
    *)
124228
 
      suffix=la
124229
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(PHPSYSVSHM_SHARED_LIBADD)'
124230
 
      ;;
124231
 
  esac
124232
 
 
124233
 
  if test "x" = "xyes"; then
124234
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvshm.$suffix"
124235
 
  else
124236
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvshm.$suffix"
124237
 
  fi
124238
 
  
124239
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
124240
 
 
124241
 
  cat >>Makefile.objects<<EOF
124242
 
\$(phplibdir)/phpsysvshm.$suffix: $ext_builddir/phpsysvshm.$suffix
124243
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvshm.$suffix \$(phplibdir)
124244
 
 
124245
 
$ext_builddir/phpsysvshm.$suffix: \$(shared_objects_sysvshm) \$(PHPSYSVSHM_SHARED_DEPENDENCIES)
124246
 
        $link_cmd
124247
 
 
124248
 
EOF
124249
 
 
124250
 
          ;;
124251
 
        *)
124252
 
          
124253
 
  install_modules="install-modules"
124254
 
 
124255
 
  case $host_alias in
124256
 
    *aix*)
124257
 
      suffix=so
124258
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sysvshm.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(SYSVSHM_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sysvshm.so '$ext_builddir'/sysvshm.so'
124259
 
      ;;
124260
 
    *netware*)
124261
 
      suffix=nlm
124262
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) -L$(top_builddir)/netware -lphp5lib $(VSHM_SHARED_LIBADD)'
124263
 
      ;;
124264
 
    *)
124265
 
      suffix=la
124266
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sysvshm) $(SYSVSHM_SHARED_LIBADD)'
124267
 
      ;;
124268
 
  esac
124269
 
 
124270
 
  if test "x" = "xyes"; then
124271
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvshm.$suffix"
124272
 
  else
124273
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvshm.$suffix"
124274
 
  fi
124275
 
  
124276
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
124277
 
 
124278
 
  cat >>Makefile.objects<<EOF
124279
 
\$(phplibdir)/sysvshm.$suffix: $ext_builddir/sysvshm.$suffix
124280
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/sysvshm.$suffix \$(phplibdir)
124281
 
 
124282
 
$ext_builddir/sysvshm.$suffix: \$(shared_objects_sysvshm) \$(SYSVSHM_SHARED_DEPENDENCIES)
124283
 
        $link_cmd
124284
 
 
124285
 
EOF
124286
 
 
124287
 
          ;;
124288
 
      esac
124289
 
      
124290
 
cat >>confdefs.h <<_ACEOF
124291
 
@%:@define COMPILE_DL_SYSVSHM 1
124292
 
_ACEOF
124293
 
 
124294
 
    fi
124295
 
  fi
124296
 
 
124297
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
124298
 
    PHP_SYSVSHM_SHARED=no
124299
 
    case "$PHP_SAPI" in
124300
 
      cgi|embed)
124301
 
        
124302
 
  
124303
 
  case ext/sysvshm in
124304
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124305
 
  /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124306
 
  *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124307
 
  esac
124308
 
  
124309
 
  
124310
 
 
124311
 
  b_c_pre=$php_c_pre
124312
 
  b_cxx_pre=$php_cxx_pre
124313
 
  b_c_meta=$php_c_meta
124314
 
  b_cxx_meta=$php_cxx_meta
124315
 
  b_c_post=$php_c_post
124316
 
  b_cxx_post=$php_cxx_post
124317
 
  b_lo=$php_lo
124318
 
 
124319
 
 
124320
 
  old_IFS=$IFS
124321
 
  for ac_src in sysvshm.c; do
124322
 
  
124323
 
      IFS=.
124324
 
      set $ac_src
124325
 
      ac_obj=$1
124326
 
      IFS=$old_IFS
124327
 
      
124328
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
124329
 
 
124330
 
      case $ac_src in
124331
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124332
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124333
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124334
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124335
 
      esac
124336
 
 
124337
 
    cat >>Makefile.objects<<EOF
124338
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124339
 
        $ac_comp
124340
 
EOF
124341
 
  done
124342
 
 
124343
 
 
124344
 
        EXT_STATIC="$EXT_STATIC sysvshm"
124345
 
        ;;
124346
 
      *)
124347
 
        
124348
 
  
124349
 
  case ext/sysvshm in
124350
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124351
 
  /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124352
 
  *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124353
 
  esac
124354
 
  
124355
 
  
124356
 
 
124357
 
  b_c_pre=$php_c_pre
124358
 
  b_cxx_pre=$php_cxx_pre
124359
 
  b_c_meta=$php_c_meta
124360
 
  b_cxx_meta=$php_cxx_meta
124361
 
  b_c_post=$php_c_post
124362
 
  b_cxx_post=$php_cxx_post
124363
 
  b_lo=$php_lo
124364
 
 
124365
 
 
124366
 
  old_IFS=$IFS
124367
 
  for ac_src in sysvshm.c; do
124368
 
  
124369
 
      IFS=.
124370
 
      set $ac_src
124371
 
      ac_obj=$1
124372
 
      IFS=$old_IFS
124373
 
      
124374
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
124375
 
 
124376
 
      case $ac_src in
124377
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124378
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124379
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124380
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124381
 
      esac
124382
 
 
124383
 
    cat >>Makefile.objects<<EOF
124384
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124385
 
        $ac_comp
124386
 
EOF
124387
 
  done
124388
 
 
124389
 
 
124390
 
        ;;
124391
 
    esac
124392
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
124393
 
  fi
124394
 
  
124395
 
  
124396
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
124397
 
  
124398
 
 
124399
 
 
124400
 
  if test "$ext_builddir" = "."; then
124401
 
    PHP_PECL_EXTENSION=sysvshm
124402
 
    
124403
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
124404
 
 
124405
 
  fi
124406
 
 
124407
 
fi
124408
 
 
124409
 
 
124410
 
 
124411
 
php_with_tidy=no
124412
 
 
124413
 
{ $as_echo "$as_me:$LINENO: checking for TIDY support" >&5
124414
 
$as_echo_n "checking for TIDY support... " >&6; }
124415
 
 
124416
 
@%:@ Check whether --with-tidy was given.
124417
 
if test "${with_tidy+set}" = set; then
124418
 
  withval=$with_tidy; PHP_TIDY=$withval
124419
 
else
124420
 
  
124421
 
  PHP_TIDY=no
124422
 
  test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL
124423
 
 
124424
 
fi
124425
 
 
124426
 
 
124427
 
 
124428
 
ext_output="yes, shared"
124429
 
ext_shared=yes
124430
 
case $PHP_TIDY in
124431
 
shared,*)
124432
 
  PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'`
124433
 
  ;;
124434
 
shared)
124435
 
  PHP_TIDY=yes
124436
 
  ;;
124437
 
no)
124438
 
  ext_output=no
124439
 
  ext_shared=no
124440
 
  ;;
124441
 
*)
124442
 
  ext_output=yes
124443
 
  ext_shared=no
124444
 
  ;;
124445
 
esac
124446
 
 
124447
 
 
124448
 
 
124449
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
124450
 
$as_echo "$ext_output" >&6; }
124451
 
 
124452
 
 
124453
 
 
124454
 
 
124455
 
if test "$PHP_TIDY" != "no"; then
124456
 
 
124457
 
  if test "$PHP_TIDY" != "yes"; then
124458
 
    TIDY_SEARCH_DIRS=$PHP_TIDY
124459
 
  else
124460
 
    TIDY_SEARCH_DIRS="/usr/local /usr"
124461
 
  fi
124462
 
 
124463
 
  for i in $TIDY_SEARCH_DIRS; do
124464
 
    if test -f $i/include/tidy/tidy.h; then
124465
 
      TIDY_DIR=$i
124466
 
      TIDY_INCDIR=$i/include/tidy
124467
 
    elif test -f $i/include/tidy.h; then
124468
 
      TIDY_DIR=$i
124469
 
      TIDY_INCDIR=$i/include
124470
 
    fi
124471
 
  done
124472
 
 
124473
 
  if test -z "$TIDY_DIR"; then
124474
 
    { { $as_echo "$as_me:$LINENO: error: Cannot find libtidy" >&5
124475
 
$as_echo "$as_me: error: Cannot find libtidy" >&2;}
124476
 
   { (exit 1); exit 1; }; }
124477
 
  fi
124478
 
 
124479
 
  TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR
124480
 
 
124481
 
  
124482
 
 
124483
 
  if test "$ext_shared" = "yes"; then
124484
 
    TIDY_SHARED_LIBADD="-ltidy $TIDY_SHARED_LIBADD"
124485
 
    if test -n "$TIDY_LIBDIR"; then
124486
 
      
124487
 
  if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
124488
 
    
124489
 
  if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
124490
 
    ai_p=$TIDY_LIBDIR
124491
 
  else
124492
 
    
124493
 
    ep_dir="`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
124494
 
    
124495
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
124496
 
    ai_p="$ep_realdir/`basename \"$TIDY_LIBDIR\"`"
124497
 
  fi
124498
 
 
124499
 
    
124500
 
      if test "$ext_shared" = "yes"; then
124501
 
        TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD"
124502
 
        test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD"
124503
 
      else
124504
 
        
124505
 
  
124506
 
  
124507
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
124508
 
  
124509
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
124510
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
124511
 
    eval "LIBPATH$unique=set"
124512
 
    
124513
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
124514
 
    LDFLAGS="$LDFLAGS -L$ai_p"
124515
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
124516
 
  
124517
 
  fi
124518
 
 
124519
 
 
124520
 
      fi
124521
 
    
124522
 
  fi
124523
 
 
124524
 
    fi
124525
 
  else
124526
 
    
124527
 
 
124528
 
  if test -n "$TIDY_LIBDIR"; then
124529
 
    
124530
 
  if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
124531
 
    
124532
 
  if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
124533
 
    ai_p=$TIDY_LIBDIR
124534
 
  else
124535
 
    
124536
 
    ep_dir="`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
124537
 
    
124538
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
124539
 
    ai_p="$ep_realdir/`basename \"$TIDY_LIBDIR\"`"
124540
 
  fi
124541
 
 
124542
 
    
124543
 
      
124544
 
  
124545
 
  
124546
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
124547
 
  
124548
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
124549
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
124550
 
    eval "LIBPATH$unique=set"
124551
 
    
124552
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
124553
 
    LDFLAGS="$LDFLAGS -L$ai_p"
124554
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
124555
 
  
124556
 
  fi
124557
 
 
124558
 
 
124559
 
    
124560
 
  fi
124561
 
 
124562
 
  fi
124563
 
  
124564
 
  
124565
 
  case tidy in
124566
 
  c|c_r|pthread*) ;;
124567
 
  *) 
124568
 
      LIBS="-ltidy $LIBS" 
124569
 
   ;;
124570
 
  esac
124571
 
 
124572
 
 
124573
 
 
124574
 
 
124575
 
  fi
124576
 
 
124577
 
 
124578
 
  
124579
 
  if test "$TIDY_INCDIR" != "/usr/include"; then
124580
 
    
124581
 
  if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then
124582
 
    ai_p=$TIDY_INCDIR
124583
 
  else
124584
 
    
124585
 
    ep_dir="`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
124586
 
    
124587
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
124588
 
    ai_p="$ep_realdir/`basename \"$TIDY_INCDIR\"`"
124589
 
  fi
124590
 
 
124591
 
    
124592
 
  
124593
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
124594
 
  
124595
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
124596
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
124597
 
    eval "INCLUDEPATH$unique=set"
124598
 
    
124599
 
      if test ""; then
124600
 
        INCLUDES="-I$ai_p $INCLUDES"
124601
 
      else
124602
 
        INCLUDES="$INCLUDES -I$ai_p"
124603
 
      fi
124604
 
    
124605
 
  fi
124606
 
 
124607
 
  fi
124608
 
 
124609
 
 
124610
 
  
124611
 
  save_old_LDFLAGS=$LDFLAGS
124612
 
  ac_stuff=""
124613
 
  
124614
 
  save_ext_shared=$ext_shared
124615
 
  ext_shared=yes
124616
 
  
124617
 
  for ac_i in $ac_stuff; do
124618
 
    case $ac_i in
124619
 
    -pthread)
124620
 
      if test "$ext_shared" = "yes"; then
124621
 
        LDFLAGS="$LDFLAGS -pthread"
124622
 
      else
124623
 
        
124624
 
  
124625
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
124626
 
  
124627
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
124628
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
124629
 
    eval "EXTRA_LDFLAGS$unique=set"
124630
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
124631
 
  fi
124632
 
 
124633
 
      fi
124634
 
    ;;
124635
 
    -l*)
124636
 
      ac_ii=`echo $ac_i|cut -c 3-`
124637
 
      
124638
 
  
124639
 
  case $ac_ii in
124640
 
  c|c_r|pthread*) ;;
124641
 
  *) 
124642
 
    if test "$ext_shared" = "yes"; then
124643
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
124644
 
    else
124645
 
      
124646
 
  
124647
 
  case $ac_ii in
124648
 
  c|c_r|pthread*) ;;
124649
 
  *) 
124650
 
      LIBS="$LIBS -l$ac_ii" 
124651
 
   ;;
124652
 
  esac
124653
 
 
124654
 
 
124655
 
    fi
124656
 
   ;;
124657
 
  esac
124658
 
 
124659
 
 
124660
 
    ;;
124661
 
    -L*)
124662
 
      ac_ii=`echo $ac_i|cut -c 3-`
124663
 
      
124664
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
124665
 
    
124666
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
124667
 
    ai_p=$ac_ii
124668
 
  else
124669
 
    
124670
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
124671
 
    
124672
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
124673
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
124674
 
  fi
124675
 
 
124676
 
    
124677
 
      if test "$ext_shared" = "yes"; then
124678
 
        LDFLAGS="-L$ai_p $LDFLAGS"
124679
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
124680
 
      else
124681
 
        
124682
 
  
124683
 
  
124684
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
124685
 
  
124686
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
124687
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
124688
 
    eval "LIBPATH$unique=set"
124689
 
    
124690
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
124691
 
    LDFLAGS="$LDFLAGS -L$ai_p"
124692
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
124693
 
  
124694
 
  fi
124695
 
 
124696
 
 
124697
 
      fi
124698
 
    
124699
 
  fi
124700
 
 
124701
 
    ;;
124702
 
    esac
124703
 
  done
124704
 
 
124705
 
  { $as_echo "$as_me:$LINENO: checking for tidyOptGetDoc in -ltidy" >&5
124706
 
$as_echo_n "checking for tidyOptGetDoc in -ltidy... " >&6; }
124707
 
if test "${ac_cv_lib_tidy_tidyOptGetDoc+set}" = set; then
124708
 
  $as_echo_n "(cached) " >&6
124709
 
else
124710
 
  ac_check_lib_save_LIBS=$LIBS
124711
 
LIBS="-ltidy  $LIBS"
124712
 
cat >conftest.$ac_ext <<_ACEOF
124713
 
/* confdefs.h.  */
124714
 
_ACEOF
124715
 
cat confdefs.h >>conftest.$ac_ext
124716
 
cat >>conftest.$ac_ext <<_ACEOF
124717
 
/* end confdefs.h.  */
124718
 
 
124719
 
/* Override any GCC internal prototype to avoid an error.
124720
 
   Use char because int might match the return type of a GCC
124721
 
   builtin and then its argument prototype would still apply.  */
124722
 
#ifdef __cplusplus
124723
 
extern "C"
124724
 
#endif
124725
 
char tidyOptGetDoc ();
124726
 
int
124727
 
main ()
124728
 
{
124729
 
return tidyOptGetDoc ();
124730
 
  ;
124731
 
  return 0;
124732
 
}
124733
 
_ACEOF
124734
 
rm -f conftest.$ac_objext conftest$ac_exeext
124735
 
if { (ac_try="$ac_link"
124736
 
case "(($ac_try" in
124737
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
124738
 
  *) ac_try_echo=$ac_try;;
124739
 
esac
124740
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
124741
 
$as_echo "$ac_try_echo") >&5
124742
 
  (eval "$ac_link") 2>conftest.er1
124743
 
  ac_status=$?
124744
 
  grep -v '^ *+' conftest.er1 >conftest.err
124745
 
  rm -f conftest.er1
124746
 
  cat conftest.err >&5
124747
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
124748
 
  (exit $ac_status); } && {
124749
 
         test -z "$ac_c_werror_flag" ||
124750
 
         test ! -s conftest.err
124751
 
       } && test -s conftest$ac_exeext && {
124752
 
         test "$cross_compiling" = yes ||
124753
 
         $as_test_x conftest$ac_exeext
124754
 
       }; then
124755
 
  ac_cv_lib_tidy_tidyOptGetDoc=yes
124756
 
else
124757
 
  $as_echo "$as_me: failed program was:" >&5
124758
 
sed 's/^/| /' conftest.$ac_ext >&5
124759
 
 
124760
 
        ac_cv_lib_tidy_tidyOptGetDoc=no
124761
 
fi
124762
 
 
124763
 
rm -rf conftest.dSYM
124764
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
124765
 
      conftest$ac_exeext conftest.$ac_ext
124766
 
LIBS=$ac_check_lib_save_LIBS
124767
 
fi
124768
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tidy_tidyOptGetDoc" >&5
124769
 
$as_echo "$ac_cv_lib_tidy_tidyOptGetDoc" >&6; }
124770
 
if test "x$ac_cv_lib_tidy_tidyOptGetDoc" = x""yes; then
124771
 
  
124772
 
    LDFLAGS=$save_old_LDFLAGS
124773
 
    ext_shared=$save_ext_shared
124774
 
    
124775
 
  
124776
 
cat >>confdefs.h <<\_ACEOF
124777
 
@%:@define HAVE_TIDYOPTGETDOC 1
124778
 
_ACEOF
124779
 
 
124780
 
  
124781
 
  
124782
 
else
124783
 
  
124784
 
    LDFLAGS=$save_old_LDFLAGS
124785
 
    ext_shared=$save_ext_shared
124786
 
    unset ac_cv_lib_tidy_tidyOptGetDoc
124787
 
    
124788
 
  
124789
 
fi
124790
 
 
124791
 
 
124792
 
 
124793
 
  
124794
 
  ext_builddir=ext/tidy
124795
 
  ext_srcdir=$abs_srcdir/ext/tidy
124796
 
 
124797
 
  ac_extra=
124798
 
 
124799
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
124800
 
    PHP_TIDY_SHARED=no
124801
 
    
124802
 
  
124803
 
  case ext/tidy in
124804
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124805
 
  /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124806
 
  *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124807
 
  esac
124808
 
  
124809
 
  
124810
 
 
124811
 
  b_c_pre=$php_c_pre
124812
 
  b_cxx_pre=$php_cxx_pre
124813
 
  b_c_meta=$php_c_meta
124814
 
  b_cxx_meta=$php_cxx_meta
124815
 
  b_c_post=$php_c_post
124816
 
  b_cxx_post=$php_cxx_post
124817
 
  b_lo=$php_lo
124818
 
 
124819
 
 
124820
 
  old_IFS=$IFS
124821
 
  for ac_src in tidy.c; do
124822
 
  
124823
 
      IFS=.
124824
 
      set $ac_src
124825
 
      ac_obj=$1
124826
 
      IFS=$old_IFS
124827
 
      
124828
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
124829
 
 
124830
 
      case $ac_src in
124831
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124832
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124833
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124834
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124835
 
      esac
124836
 
 
124837
 
    cat >>Makefile.objects<<EOF
124838
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124839
 
        $ac_comp
124840
 
EOF
124841
 
  done
124842
 
 
124843
 
 
124844
 
    EXT_STATIC="$EXT_STATIC tidy"
124845
 
    if test "$ext_shared" != "nocli"; then
124846
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
124847
 
    fi
124848
 
  else
124849
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
124850
 
      PHP_TIDY_SHARED=yes
124851
 
      
124852
 
  case ext/tidy in
124853
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124854
 
  /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124855
 
  *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124856
 
  esac
124857
 
  
124858
 
  
124859
 
 
124860
 
  b_c_pre=$shared_c_pre
124861
 
  b_cxx_pre=$shared_cxx_pre
124862
 
  b_c_meta=$shared_c_meta
124863
 
  b_cxx_meta=$shared_cxx_meta
124864
 
  b_c_post=$shared_c_post
124865
 
  b_cxx_post=$shared_cxx_post
124866
 
  b_lo=$shared_lo
124867
 
 
124868
 
 
124869
 
  old_IFS=$IFS
124870
 
  for ac_src in tidy.c; do
124871
 
  
124872
 
      IFS=.
124873
 
      set $ac_src
124874
 
      ac_obj=$1
124875
 
      IFS=$old_IFS
124876
 
      
124877
 
      shared_objects_tidy="$shared_objects_tidy $ac_bdir$ac_obj.lo"
124878
 
 
124879
 
      case $ac_src in
124880
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124881
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124882
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
124883
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
124884
 
      esac
124885
 
 
124886
 
    cat >>Makefile.objects<<EOF
124887
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
124888
 
        $ac_comp
124889
 
EOF
124890
 
  done
124891
 
 
124892
 
      case $host_alias in
124893
 
        *netware*)
124894
 
          
124895
 
  install_modules="install-modules"
124896
 
 
124897
 
  case $host_alias in
124898
 
    *aix*)
124899
 
      suffix=so
124900
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phptidy.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(PHPTIDY_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phptidy.so '$ext_builddir'/phptidy.so'
124901
 
      ;;
124902
 
    *netware*)
124903
 
      suffix=nlm
124904
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) -L$(top_builddir)/netware -lphp5lib $(TIDY_SHARED_LIBADD)'
124905
 
      ;;
124906
 
    *)
124907
 
      suffix=la
124908
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(PHPTIDY_SHARED_LIBADD)'
124909
 
      ;;
124910
 
  esac
124911
 
 
124912
 
  if test "x" = "xyes"; then
124913
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptidy.$suffix"
124914
 
  else
124915
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptidy.$suffix"
124916
 
  fi
124917
 
  
124918
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
124919
 
 
124920
 
  cat >>Makefile.objects<<EOF
124921
 
\$(phplibdir)/phptidy.$suffix: $ext_builddir/phptidy.$suffix
124922
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phptidy.$suffix \$(phplibdir)
124923
 
 
124924
 
$ext_builddir/phptidy.$suffix: \$(shared_objects_tidy) \$(PHPTIDY_SHARED_DEPENDENCIES)
124925
 
        $link_cmd
124926
 
 
124927
 
EOF
124928
 
 
124929
 
          ;;
124930
 
        *)
124931
 
          
124932
 
  install_modules="install-modules"
124933
 
 
124934
 
  case $host_alias in
124935
 
    *aix*)
124936
 
      suffix=so
124937
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/tidy.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(TIDY_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/tidy.so '$ext_builddir'/tidy.so'
124938
 
      ;;
124939
 
    *netware*)
124940
 
      suffix=nlm
124941
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) -L$(top_builddir)/netware -lphp5lib $(Y_SHARED_LIBADD)'
124942
 
      ;;
124943
 
    *)
124944
 
      suffix=la
124945
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tidy) $(TIDY_SHARED_LIBADD)'
124946
 
      ;;
124947
 
  esac
124948
 
 
124949
 
  if test "x" = "xyes"; then
124950
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tidy.$suffix"
124951
 
  else
124952
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/tidy.$suffix"
124953
 
  fi
124954
 
  
124955
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
124956
 
 
124957
 
  cat >>Makefile.objects<<EOF
124958
 
\$(phplibdir)/tidy.$suffix: $ext_builddir/tidy.$suffix
124959
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/tidy.$suffix \$(phplibdir)
124960
 
 
124961
 
$ext_builddir/tidy.$suffix: \$(shared_objects_tidy) \$(TIDY_SHARED_DEPENDENCIES)
124962
 
        $link_cmd
124963
 
 
124964
 
EOF
124965
 
 
124966
 
          ;;
124967
 
      esac
124968
 
      
124969
 
cat >>confdefs.h <<_ACEOF
124970
 
@%:@define COMPILE_DL_TIDY 1
124971
 
_ACEOF
124972
 
 
124973
 
    fi
124974
 
  fi
124975
 
 
124976
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
124977
 
    PHP_TIDY_SHARED=no
124978
 
    case "$PHP_SAPI" in
124979
 
      cgi|embed)
124980
 
        
124981
 
  
124982
 
  case ext/tidy in
124983
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
124984
 
  /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
124985
 
  *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
124986
 
  esac
124987
 
  
124988
 
  
124989
 
 
124990
 
  b_c_pre=$php_c_pre
124991
 
  b_cxx_pre=$php_cxx_pre
124992
 
  b_c_meta=$php_c_meta
124993
 
  b_cxx_meta=$php_cxx_meta
124994
 
  b_c_post=$php_c_post
124995
 
  b_cxx_post=$php_cxx_post
124996
 
  b_lo=$php_lo
124997
 
 
124998
 
 
124999
 
  old_IFS=$IFS
125000
 
  for ac_src in tidy.c; do
125001
 
  
125002
 
      IFS=.
125003
 
      set $ac_src
125004
 
      ac_obj=$1
125005
 
      IFS=$old_IFS
125006
 
      
125007
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
125008
 
 
125009
 
      case $ac_src in
125010
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125011
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125012
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125013
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125014
 
      esac
125015
 
 
125016
 
    cat >>Makefile.objects<<EOF
125017
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125018
 
        $ac_comp
125019
 
EOF
125020
 
  done
125021
 
 
125022
 
 
125023
 
        EXT_STATIC="$EXT_STATIC tidy"
125024
 
        ;;
125025
 
      *)
125026
 
        
125027
 
  
125028
 
  case ext/tidy in
125029
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
125030
 
  /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
125031
 
  *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
125032
 
  esac
125033
 
  
125034
 
  
125035
 
 
125036
 
  b_c_pre=$php_c_pre
125037
 
  b_cxx_pre=$php_cxx_pre
125038
 
  b_c_meta=$php_c_meta
125039
 
  b_cxx_meta=$php_cxx_meta
125040
 
  b_c_post=$php_c_post
125041
 
  b_cxx_post=$php_cxx_post
125042
 
  b_lo=$php_lo
125043
 
 
125044
 
 
125045
 
  old_IFS=$IFS
125046
 
  for ac_src in tidy.c; do
125047
 
  
125048
 
      IFS=.
125049
 
      set $ac_src
125050
 
      ac_obj=$1
125051
 
      IFS=$old_IFS
125052
 
      
125053
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
125054
 
 
125055
 
      case $ac_src in
125056
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125057
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125058
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125059
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125060
 
      esac
125061
 
 
125062
 
    cat >>Makefile.objects<<EOF
125063
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125064
 
        $ac_comp
125065
 
EOF
125066
 
  done
125067
 
 
125068
 
 
125069
 
        ;;
125070
 
    esac
125071
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
125072
 
  fi
125073
 
  
125074
 
  
125075
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
125076
 
  
125077
 
 
125078
 
 
125079
 
  if test "$ext_builddir" = "."; then
125080
 
    PHP_PECL_EXTENSION=tidy
125081
 
    
125082
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
125083
 
 
125084
 
  fi
125085
 
 
125086
 
  
125087
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST TIDY_SHARED_LIBADD"
125088
 
 
125089
 
  
125090
 
cat >>confdefs.h <<\_ACEOF
125091
 
@%:@define HAVE_TIDY 1
125092
 
_ACEOF
125093
 
 
125094
 
fi
125095
 
 
125096
 
 
125097
 
 
125098
 
 
125099
 
php_enable_tokenizer=yes
125100
 
 
125101
 
{ $as_echo "$as_me:$LINENO: checking whether to enable tokenizer support" >&5
125102
 
$as_echo_n "checking whether to enable tokenizer support... " >&6; }
125103
 
@%:@ Check whether --enable-tokenizer was given.
125104
 
if test "${enable_tokenizer+set}" = set; then
125105
 
  enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval
125106
 
else
125107
 
  
125108
 
  PHP_TOKENIZER=yes
125109
 
  test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL
125110
 
 
125111
 
fi
125112
 
 
125113
 
 
125114
 
 
125115
 
ext_output="yes, shared"
125116
 
ext_shared=yes
125117
 
case $PHP_TOKENIZER in
125118
 
shared,*)
125119
 
  PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'`
125120
 
  ;;
125121
 
shared)
125122
 
  PHP_TOKENIZER=yes
125123
 
  ;;
125124
 
no)
125125
 
  ext_output=no
125126
 
  ext_shared=no
125127
 
  ;;
125128
 
*)
125129
 
  ext_output=yes
125130
 
  ext_shared=no
125131
 
  ;;
125132
 
esac
125133
 
 
125134
 
 
125135
 
 
125136
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
125137
 
$as_echo "$ext_output" >&6; }
125138
 
 
125139
 
 
125140
 
 
125141
 
 
125142
 
if test "$PHP_TOKENIZER" != "no"; then
125143
 
  
125144
 
  ext_builddir=ext/tokenizer
125145
 
  ext_srcdir=$abs_srcdir/ext/tokenizer
125146
 
 
125147
 
  ac_extra=
125148
 
 
125149
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
125150
 
    PHP_TOKENIZER_SHARED=no
125151
 
    
125152
 
  
125153
 
  case ext/tokenizer in
125154
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
125155
 
  /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
125156
 
  *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
125157
 
  esac
125158
 
  
125159
 
  
125160
 
 
125161
 
  b_c_pre=$php_c_pre
125162
 
  b_cxx_pre=$php_cxx_pre
125163
 
  b_c_meta=$php_c_meta
125164
 
  b_cxx_meta=$php_cxx_meta
125165
 
  b_c_post=$php_c_post
125166
 
  b_cxx_post=$php_cxx_post
125167
 
  b_lo=$php_lo
125168
 
 
125169
 
 
125170
 
  old_IFS=$IFS
125171
 
  for ac_src in tokenizer.c tokenizer_data.c; do
125172
 
  
125173
 
      IFS=.
125174
 
      set $ac_src
125175
 
      ac_obj=$1
125176
 
      IFS=$old_IFS
125177
 
      
125178
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
125179
 
 
125180
 
      case $ac_src in
125181
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125182
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125183
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125184
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125185
 
      esac
125186
 
 
125187
 
    cat >>Makefile.objects<<EOF
125188
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125189
 
        $ac_comp
125190
 
EOF
125191
 
  done
125192
 
 
125193
 
 
125194
 
    EXT_STATIC="$EXT_STATIC tokenizer"
125195
 
    if test "$ext_shared" != "nocli"; then
125196
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
125197
 
    fi
125198
 
  else
125199
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
125200
 
      PHP_TOKENIZER_SHARED=yes
125201
 
      
125202
 
  case ext/tokenizer in
125203
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
125204
 
  /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
125205
 
  *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
125206
 
  esac
125207
 
  
125208
 
  
125209
 
 
125210
 
  b_c_pre=$shared_c_pre
125211
 
  b_cxx_pre=$shared_cxx_pre
125212
 
  b_c_meta=$shared_c_meta
125213
 
  b_cxx_meta=$shared_cxx_meta
125214
 
  b_c_post=$shared_c_post
125215
 
  b_cxx_post=$shared_cxx_post
125216
 
  b_lo=$shared_lo
125217
 
 
125218
 
 
125219
 
  old_IFS=$IFS
125220
 
  for ac_src in tokenizer.c tokenizer_data.c; do
125221
 
  
125222
 
      IFS=.
125223
 
      set $ac_src
125224
 
      ac_obj=$1
125225
 
      IFS=$old_IFS
125226
 
      
125227
 
      shared_objects_tokenizer="$shared_objects_tokenizer $ac_bdir$ac_obj.lo"
125228
 
 
125229
 
      case $ac_src in
125230
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125231
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125232
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125233
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125234
 
      esac
125235
 
 
125236
 
    cat >>Makefile.objects<<EOF
125237
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125238
 
        $ac_comp
125239
 
EOF
125240
 
  done
125241
 
 
125242
 
      case $host_alias in
125243
 
        *netware*)
125244
 
          
125245
 
  install_modules="install-modules"
125246
 
 
125247
 
  case $host_alias in
125248
 
    *aix*)
125249
 
      suffix=so
125250
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phptokenizer.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(PHPTOKENIZER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phptokenizer.so '$ext_builddir'/phptokenizer.so'
125251
 
      ;;
125252
 
    *netware*)
125253
 
      suffix=nlm
125254
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) -L$(top_builddir)/netware -lphp5lib $(TOKENIZER_SHARED_LIBADD)'
125255
 
      ;;
125256
 
    *)
125257
 
      suffix=la
125258
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(PHPTOKENIZER_SHARED_LIBADD)'
125259
 
      ;;
125260
 
  esac
125261
 
 
125262
 
  if test "x" = "xyes"; then
125263
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptokenizer.$suffix"
125264
 
  else
125265
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptokenizer.$suffix"
125266
 
  fi
125267
 
  
125268
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
125269
 
 
125270
 
  cat >>Makefile.objects<<EOF
125271
 
\$(phplibdir)/phptokenizer.$suffix: $ext_builddir/phptokenizer.$suffix
125272
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phptokenizer.$suffix \$(phplibdir)
125273
 
 
125274
 
$ext_builddir/phptokenizer.$suffix: \$(shared_objects_tokenizer) \$(PHPTOKENIZER_SHARED_DEPENDENCIES)
125275
 
        $link_cmd
125276
 
 
125277
 
EOF
125278
 
 
125279
 
          ;;
125280
 
        *)
125281
 
          
125282
 
  install_modules="install-modules"
125283
 
 
125284
 
  case $host_alias in
125285
 
    *aix*)
125286
 
      suffix=so
125287
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/tokenizer.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(TOKENIZER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/tokenizer.so '$ext_builddir'/tokenizer.so'
125288
 
      ;;
125289
 
    *netware*)
125290
 
      suffix=nlm
125291
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) -L$(top_builddir)/netware -lphp5lib $(ENIZER_SHARED_LIBADD)'
125292
 
      ;;
125293
 
    *)
125294
 
      suffix=la
125295
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_tokenizer) $(TOKENIZER_SHARED_LIBADD)'
125296
 
      ;;
125297
 
  esac
125298
 
 
125299
 
  if test "x" = "xyes"; then
125300
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tokenizer.$suffix"
125301
 
  else
125302
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/tokenizer.$suffix"
125303
 
  fi
125304
 
  
125305
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
125306
 
 
125307
 
  cat >>Makefile.objects<<EOF
125308
 
\$(phplibdir)/tokenizer.$suffix: $ext_builddir/tokenizer.$suffix
125309
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/tokenizer.$suffix \$(phplibdir)
125310
 
 
125311
 
$ext_builddir/tokenizer.$suffix: \$(shared_objects_tokenizer) \$(TOKENIZER_SHARED_DEPENDENCIES)
125312
 
        $link_cmd
125313
 
 
125314
 
EOF
125315
 
 
125316
 
          ;;
125317
 
      esac
125318
 
      
125319
 
cat >>confdefs.h <<_ACEOF
125320
 
@%:@define COMPILE_DL_TOKENIZER 1
125321
 
_ACEOF
125322
 
 
125323
 
    fi
125324
 
  fi
125325
 
 
125326
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
125327
 
    PHP_TOKENIZER_SHARED=no
125328
 
    case "$PHP_SAPI" in
125329
 
      cgi|embed)
125330
 
        
125331
 
  
125332
 
  case ext/tokenizer in
125333
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
125334
 
  /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
125335
 
  *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
125336
 
  esac
125337
 
  
125338
 
  
125339
 
 
125340
 
  b_c_pre=$php_c_pre
125341
 
  b_cxx_pre=$php_cxx_pre
125342
 
  b_c_meta=$php_c_meta
125343
 
  b_cxx_meta=$php_cxx_meta
125344
 
  b_c_post=$php_c_post
125345
 
  b_cxx_post=$php_cxx_post
125346
 
  b_lo=$php_lo
125347
 
 
125348
 
 
125349
 
  old_IFS=$IFS
125350
 
  for ac_src in tokenizer.c tokenizer_data.c; do
125351
 
  
125352
 
      IFS=.
125353
 
      set $ac_src
125354
 
      ac_obj=$1
125355
 
      IFS=$old_IFS
125356
 
      
125357
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
125358
 
 
125359
 
      case $ac_src in
125360
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125361
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125362
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125363
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125364
 
      esac
125365
 
 
125366
 
    cat >>Makefile.objects<<EOF
125367
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125368
 
        $ac_comp
125369
 
EOF
125370
 
  done
125371
 
 
125372
 
 
125373
 
        EXT_STATIC="$EXT_STATIC tokenizer"
125374
 
        ;;
125375
 
      *)
125376
 
        
125377
 
  
125378
 
  case ext/tokenizer in
125379
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
125380
 
  /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
125381
 
  *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
125382
 
  esac
125383
 
  
125384
 
  
125385
 
 
125386
 
  b_c_pre=$php_c_pre
125387
 
  b_cxx_pre=$php_cxx_pre
125388
 
  b_c_meta=$php_c_meta
125389
 
  b_cxx_meta=$php_cxx_meta
125390
 
  b_c_post=$php_c_post
125391
 
  b_cxx_post=$php_cxx_post
125392
 
  b_lo=$php_lo
125393
 
 
125394
 
 
125395
 
  old_IFS=$IFS
125396
 
  for ac_src in tokenizer.c tokenizer_data.c; do
125397
 
  
125398
 
      IFS=.
125399
 
      set $ac_src
125400
 
      ac_obj=$1
125401
 
      IFS=$old_IFS
125402
 
      
125403
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
125404
 
 
125405
 
      case $ac_src in
125406
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125407
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125408
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125409
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125410
 
      esac
125411
 
 
125412
 
    cat >>Makefile.objects<<EOF
125413
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125414
 
        $ac_comp
125415
 
EOF
125416
 
  done
125417
 
 
125418
 
 
125419
 
        ;;
125420
 
    esac
125421
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
125422
 
  fi
125423
 
  
125424
 
  
125425
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
125426
 
  
125427
 
 
125428
 
 
125429
 
  if test "$ext_builddir" = "."; then
125430
 
    PHP_PECL_EXTENSION=tokenizer
125431
 
    
125432
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
125433
 
 
125434
 
  fi
125435
 
 
125436
 
  
125437
 
  src=$ext_srcdir/Makefile.frag
125438
 
  ac_srcdir=$ext_srcdir
125439
 
  ac_builddir=$ext_builddir
125440
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
125441
 
 
125442
 
fi
125443
 
 
125444
 
 
125445
 
 
125446
 
php_enable_wddx=no
125447
 
 
125448
 
{ $as_echo "$as_me:$LINENO: checking whether to enable WDDX support" >&5
125449
 
$as_echo_n "checking whether to enable WDDX support... " >&6; }
125450
 
@%:@ Check whether --enable-wddx was given.
125451
 
if test "${enable_wddx+set}" = set; then
125452
 
  enableval=$enable_wddx; PHP_WDDX=$enableval
125453
 
else
125454
 
  
125455
 
  PHP_WDDX=no
125456
 
  test "$PHP_ENABLE_ALL" && PHP_WDDX=$PHP_ENABLE_ALL
125457
 
 
125458
 
fi
125459
 
 
125460
 
 
125461
 
 
125462
 
ext_output="yes, shared"
125463
 
ext_shared=yes
125464
 
case $PHP_WDDX in
125465
 
shared,*)
125466
 
  PHP_WDDX=`echo "$PHP_WDDX"|$SED 's/^shared,//'`
125467
 
  ;;
125468
 
shared)
125469
 
  PHP_WDDX=yes
125470
 
  ;;
125471
 
no)
125472
 
  ext_output=no
125473
 
  ext_shared=no
125474
 
  ;;
125475
 
*)
125476
 
  ext_output=yes
125477
 
  ext_shared=no
125478
 
  ;;
125479
 
esac
125480
 
 
125481
 
 
125482
 
 
125483
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
125484
 
$as_echo "$ext_output" >&6; }
125485
 
 
125486
 
 
125487
 
 
125488
 
 
125489
 
if test -z "$PHP_LIBXML_DIR"; then
125490
 
  
125491
 
php_with_libxml_dir=no
125492
 
 
125493
 
{ $as_echo "$as_me:$LINENO: checking libxml2 install dir" >&5
125494
 
$as_echo_n "checking libxml2 install dir... " >&6; }
125495
 
 
125496
 
@%:@ Check whether --with-libxml-dir was given.
125497
 
if test "${with_libxml_dir+set}" = set; then
125498
 
  withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
125499
 
else
125500
 
  
125501
 
  PHP_LIBXML_DIR=no
125502
 
  
125503
 
 
125504
 
fi
125505
 
 
125506
 
 
125507
 
ext_output=$PHP_LIBXML_DIR
125508
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
125509
 
$as_echo "$ext_output" >&6; }
125510
 
 
125511
 
 
125512
 
 
125513
 
fi
125514
 
 
125515
 
 
125516
 
php_with_libexpat_dir=no
125517
 
 
125518
 
{ $as_echo "$as_me:$LINENO: checking libexpat dir for WDDX" >&5
125519
 
$as_echo_n "checking libexpat dir for WDDX... " >&6; }
125520
 
 
125521
 
@%:@ Check whether --with-libexpat-dir was given.
125522
 
if test "${with_libexpat_dir+set}" = set; then
125523
 
  withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
125524
 
else
125525
 
  
125526
 
  PHP_LIBEXPAT_DIR=no
125527
 
  
125528
 
 
125529
 
fi
125530
 
 
125531
 
 
125532
 
ext_output=$PHP_LIBEXPAT_DIR
125533
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
125534
 
$as_echo "$ext_output" >&6; }
125535
 
 
125536
 
 
125537
 
 
125538
 
 
125539
 
if test "$PHP_WDDX" != "no"; then
125540
 
 
125541
 
        if test "$PHP_LIBEXPAT_DIR" = "no"; then
125542
 
    if test "$PHP_LIBXML" = "no"; then
125543
 
      { { $as_echo "$as_me:$LINENO: error: WDDX extension requires LIBXML extension, add --enable-libxml" >&5
125544
 
$as_echo "$as_me: error: WDDX extension requires LIBXML extension, add --enable-libxml" >&2;}
125545
 
   { (exit 1); exit 1; }; }
125546
 
    fi
125547
 
 
125548
 
    
125549
 
{ $as_echo "$as_me:$LINENO: checking for xml2-config path" >&5
125550
 
$as_echo_n "checking for xml2-config path... " >&6; }
125551
 
if test "${ac_cv_php_xml2_config_path+set}" = set; then
125552
 
  $as_echo_n "(cached) " >&6
125553
 
else
125554
 
  
125555
 
  for i in $PHP_LIBXML_DIR /usr/local /usr; do
125556
 
    if test -x "$i/bin/xml2-config"; then
125557
 
      ac_cv_php_xml2_config_path="$i/bin/xml2-config"
125558
 
      break
125559
 
    fi
125560
 
  done
125561
 
 
125562
 
fi
125563
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
125564
 
$as_echo "$ac_cv_php_xml2_config_path" >&6; }
125565
 
 
125566
 
  if test -x "$ac_cv_php_xml2_config_path"; then
125567
 
    XML2_CONFIG="$ac_cv_php_xml2_config_path"
125568
 
    libxml_full_version=`$XML2_CONFIG --version`
125569
 
    ac_IFS=$IFS
125570
 
    IFS="."
125571
 
    set $libxml_full_version
125572
 
    IFS=$ac_IFS
125573
 
    LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
125574
 
    if test "$LIBXML_VERSION" -ge "2006011"; then
125575
 
      LIBXML_LIBS=`$XML2_CONFIG --libs`
125576
 
      LIBXML_INCS=`$XML2_CONFIG --cflags`
125577
 
      
125578
 
  for ac_i in $LIBXML_LIBS; do
125579
 
    case $ac_i in
125580
 
    -pthread)
125581
 
      if test "$ext_shared" = "yes"; then
125582
 
        WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -pthread"
125583
 
      else
125584
 
        
125585
 
  
125586
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
125587
 
  
125588
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
125589
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
125590
 
    eval "EXTRA_LDFLAGS$unique=set"
125591
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
125592
 
  fi
125593
 
 
125594
 
      fi
125595
 
    ;;
125596
 
    -l*)
125597
 
      ac_ii=`echo $ac_i|cut -c 3-`
125598
 
      
125599
 
  
125600
 
  case $ac_ii in
125601
 
  c|c_r|pthread*) ;;
125602
 
  *) 
125603
 
    if test "$ext_shared" = "yes"; then
125604
 
        WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -l$ac_ii" 
125605
 
    else
125606
 
      
125607
 
  
125608
 
  case $ac_ii in
125609
 
  c|c_r|pthread*) ;;
125610
 
  *) 
125611
 
      LIBS="$LIBS -l$ac_ii" 
125612
 
   ;;
125613
 
  esac
125614
 
 
125615
 
 
125616
 
    fi
125617
 
   ;;
125618
 
  esac
125619
 
 
125620
 
 
125621
 
    ;;
125622
 
    -L*)
125623
 
      ac_ii=`echo $ac_i|cut -c 3-`
125624
 
      
125625
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
125626
 
    
125627
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
125628
 
    ai_p=$ac_ii
125629
 
  else
125630
 
    
125631
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
125632
 
    
125633
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125634
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
125635
 
  fi
125636
 
 
125637
 
    
125638
 
      if test "$ext_shared" = "yes"; then
125639
 
        WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
125640
 
        test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
125641
 
      else
125642
 
        
125643
 
  
125644
 
  
125645
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125646
 
  
125647
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
125648
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
125649
 
    eval "LIBPATH$unique=set"
125650
 
    
125651
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
125652
 
    LDFLAGS="$LDFLAGS -L$ai_p"
125653
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
125654
 
  
125655
 
  fi
125656
 
 
125657
 
 
125658
 
      fi
125659
 
    
125660
 
  fi
125661
 
 
125662
 
    ;;
125663
 
    esac
125664
 
  done
125665
 
 
125666
 
      
125667
 
  for ac_i in $LIBXML_INCS; do
125668
 
    case $ac_i in
125669
 
    -I*)
125670
 
      ac_ii=`echo $ac_i|cut -c 3-`
125671
 
      
125672
 
  if test "$ac_ii" != "/usr/include"; then
125673
 
    
125674
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
125675
 
    ai_p=$ac_ii
125676
 
  else
125677
 
    
125678
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
125679
 
    
125680
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125681
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
125682
 
  fi
125683
 
 
125684
 
    
125685
 
  
125686
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125687
 
  
125688
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
125689
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
125690
 
    eval "INCLUDEPATH$unique=set"
125691
 
    
125692
 
      if test ""; then
125693
 
        INCLUDES="-I$ai_p $INCLUDES"
125694
 
      else
125695
 
        INCLUDES="$INCLUDES -I$ai_p"
125696
 
      fi
125697
 
    
125698
 
  fi
125699
 
 
125700
 
  fi
125701
 
 
125702
 
    ;;
125703
 
    esac
125704
 
  done
125705
 
 
125706
 
 
125707
 
            { $as_echo "$as_me:$LINENO: checking whether libxml build works" >&5
125708
 
$as_echo_n "checking whether libxml build works... " >&6; }
125709
 
if test "${php_cv_libxml_build_works+set}" = set; then
125710
 
  $as_echo_n "(cached) " >&6
125711
 
else
125712
 
  
125713
 
        
125714
 
  old_LIBS=$LIBS
125715
 
  LIBS="
125716
 
          $WDDX_SHARED_LIBADD
125717
 
         $LIBS"
125718
 
  if test "$cross_compiling" = yes; then
125719
 
  
125720
 
    LIBS=$old_LIBS
125721
 
  
125722
 
else
125723
 
  cat >conftest.$ac_ext <<_ACEOF
125724
 
/* confdefs.h.  */
125725
 
_ACEOF
125726
 
cat confdefs.h >>conftest.$ac_ext
125727
 
cat >>conftest.$ac_ext <<_ACEOF
125728
 
/* end confdefs.h.  */
125729
 
 
125730
 
    
125731
 
    char xmlInitParser();
125732
 
    int main() {
125733
 
      xmlInitParser();
125734
 
      return 0;
125735
 
    }
125736
 
  
125737
 
_ACEOF
125738
 
rm -f conftest$ac_exeext
125739
 
if { (ac_try="$ac_link"
125740
 
case "(($ac_try" in
125741
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
125742
 
  *) ac_try_echo=$ac_try;;
125743
 
esac
125744
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
125745
 
$as_echo "$ac_try_echo") >&5
125746
 
  (eval "$ac_link") 2>&5
125747
 
  ac_status=$?
125748
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
125749
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
125750
 
  { (case "(($ac_try" in
125751
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
125752
 
  *) ac_try_echo=$ac_try;;
125753
 
esac
125754
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
125755
 
$as_echo "$ac_try_echo") >&5
125756
 
  (eval "$ac_try") 2>&5
125757
 
  ac_status=$?
125758
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
125759
 
  (exit $ac_status); }; }; then
125760
 
  
125761
 
    LIBS=$old_LIBS
125762
 
    
125763
 
          php_cv_libxml_build_works=yes
125764
 
        
125765
 
  
125766
 
else
125767
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
125768
 
$as_echo "$as_me: failed program was:" >&5
125769
 
sed 's/^/| /' conftest.$ac_ext >&5
125770
 
 
125771
 
( exit $ac_status )
125772
 
 
125773
 
    LIBS=$old_LIBS
125774
 
    
125775
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
125776
 
$as_echo "no" >&6; }
125777
 
          { { $as_echo "$as_me:$LINENO: error: build test failed.  Please check the config.log for details." >&5
125778
 
$as_echo "$as_me: error: build test failed.  Please check the config.log for details." >&2;}
125779
 
   { (exit 1); exit 1; }; }
125780
 
        
125781
 
  
125782
 
fi
125783
 
rm -rf conftest.dSYM
125784
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
125785
 
fi
125786
 
 
125787
 
 
125788
 
 
125789
 
      
125790
 
fi
125791
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
125792
 
$as_echo "$php_cv_libxml_build_works" >&6; }
125793
 
      if test "$php_cv_libxml_build_works" = "yes"; then
125794
 
        
125795
 
cat >>confdefs.h <<\_ACEOF
125796
 
@%:@define HAVE_LIBXML 1
125797
 
_ACEOF
125798
 
 
125799
 
      fi
125800
 
      
125801
 
      if test "$PHP_XML" = "no"; then
125802
 
        
125803
 
  
125804
 
  case ext/xml in
125805
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
125806
 
  /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
125807
 
  *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
125808
 
  esac
125809
 
  
125810
 
  
125811
 
 
125812
 
  b_c_pre=$php_c_pre
125813
 
  b_cxx_pre=$php_cxx_pre
125814
 
  b_c_meta=$php_c_meta
125815
 
  b_cxx_meta=$php_cxx_meta
125816
 
  b_c_post=$php_c_post
125817
 
  b_cxx_post=$php_cxx_post
125818
 
  b_lo=$php_lo
125819
 
 
125820
 
 
125821
 
  old_IFS=$IFS
125822
 
  for ac_src in compat.c; do
125823
 
  
125824
 
      IFS=.
125825
 
      set $ac_src
125826
 
      ac_obj=$1
125827
 
      IFS=$old_IFS
125828
 
      
125829
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
125830
 
 
125831
 
      case $ac_src in
125832
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125833
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125834
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
125835
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
125836
 
      esac
125837
 
 
125838
 
    cat >>Makefile.objects<<EOF
125839
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
125840
 
        $ac_comp
125841
 
EOF
125842
 
  done
125843
 
 
125844
 
 
125845
 
        
125846
 
  
125847
 
    BUILD_DIR="$BUILD_DIR ext/xml"
125848
 
  
125849
 
 
125850
 
      fi
125851
 
    
125852
 
    else
125853
 
      { { $as_echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
125854
 
$as_echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
125855
 
   { (exit 1); exit 1; }; }
125856
 
    fi
125857
 
else 
125858
 
      { { $as_echo "$as_me:$LINENO: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&5
125859
 
$as_echo "$as_me: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&2;}
125860
 
   { (exit 1); exit 1; }; }
125861
 
    
125862
 
  fi
125863
 
 
125864
 
  fi
125865
 
 
125866
 
        if test "$PHP_LIBEXPAT_DIR" != "no"; then
125867
 
    for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
125868
 
      if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
125869
 
        EXPAT_DIR=$i
125870
 
        break
125871
 
      fi
125872
 
    done
125873
 
 
125874
 
    if test -z "$EXPAT_DIR"; then
125875
 
      { { $as_echo "$as_me:$LINENO: error: not found. Please reinstall the expat distribution." >&5
125876
 
$as_echo "$as_me: error: not found. Please reinstall the expat distribution." >&2;}
125877
 
   { (exit 1); exit 1; }; }
125878
 
    fi
125879
 
 
125880
 
    
125881
 
  if test "$EXPAT_DIR/include" != "/usr/include"; then
125882
 
    
125883
 
  if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
125884
 
    ai_p=$EXPAT_DIR/include
125885
 
  else
125886
 
    
125887
 
    ep_dir="`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
125888
 
    
125889
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125890
 
    ai_p="$ep_realdir/`basename \"$EXPAT_DIR/include\"`"
125891
 
  fi
125892
 
 
125893
 
    
125894
 
  
125895
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125896
 
  
125897
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
125898
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
125899
 
    eval "INCLUDEPATH$unique=set"
125900
 
    
125901
 
      if test ""; then
125902
 
        INCLUDES="-I$ai_p $INCLUDES"
125903
 
      else
125904
 
        INCLUDES="$INCLUDES -I$ai_p"
125905
 
      fi
125906
 
    
125907
 
  fi
125908
 
 
125909
 
  fi
125910
 
 
125911
 
    
125912
 
 
125913
 
  if test "$ext_shared" = "yes"; then
125914
 
    WDDX_SHARED_LIBADD="-lexpat $WDDX_SHARED_LIBADD"
125915
 
    if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
125916
 
      
125917
 
  if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
125918
 
    
125919
 
  if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
125920
 
    ai_p=$EXPAT_DIR/$PHP_LIBDIR
125921
 
  else
125922
 
    
125923
 
    ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
125924
 
    
125925
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125926
 
    ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
125927
 
  fi
125928
 
 
125929
 
    
125930
 
      if test "$ext_shared" = "yes"; then
125931
 
        WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
125932
 
        test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
125933
 
      else
125934
 
        
125935
 
  
125936
 
  
125937
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125938
 
  
125939
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
125940
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
125941
 
    eval "LIBPATH$unique=set"
125942
 
    
125943
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
125944
 
    LDFLAGS="$LDFLAGS -L$ai_p"
125945
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
125946
 
  
125947
 
  fi
125948
 
 
125949
 
 
125950
 
      fi
125951
 
    
125952
 
  fi
125953
 
 
125954
 
    fi
125955
 
  else
125956
 
    
125957
 
 
125958
 
  if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
125959
 
    
125960
 
  if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
125961
 
    
125962
 
  if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
125963
 
    ai_p=$EXPAT_DIR/$PHP_LIBDIR
125964
 
  else
125965
 
    
125966
 
    ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
125967
 
    
125968
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
125969
 
    ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
125970
 
  fi
125971
 
 
125972
 
    
125973
 
      
125974
 
  
125975
 
  
125976
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
125977
 
  
125978
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
125979
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
125980
 
    eval "LIBPATH$unique=set"
125981
 
    
125982
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
125983
 
    LDFLAGS="$LDFLAGS -L$ai_p"
125984
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
125985
 
  
125986
 
  fi
125987
 
 
125988
 
 
125989
 
    
125990
 
  fi
125991
 
 
125992
 
  fi
125993
 
  
125994
 
  
125995
 
  case expat in
125996
 
  c|c_r|pthread*) ;;
125997
 
  *) 
125998
 
      LIBS="-lexpat $LIBS" 
125999
 
   ;;
126000
 
  esac
126001
 
 
126002
 
 
126003
 
 
126004
 
 
126005
 
  fi
126006
 
 
126007
 
 
126008
 
    
126009
 
cat >>confdefs.h <<\_ACEOF
126010
 
@%:@define HAVE_LIBEXPAT 1
126011
 
_ACEOF
126012
 
 
126013
 
  fi
126014
 
 
126015
 
  
126016
 
cat >>confdefs.h <<\_ACEOF
126017
 
@%:@define HAVE_WDDX 1
126018
 
_ACEOF
126019
 
 
126020
 
  
126021
 
  ext_builddir=ext/wddx
126022
 
  ext_srcdir=$abs_srcdir/ext/wddx
126023
 
 
126024
 
  ac_extra=
126025
 
 
126026
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
126027
 
    PHP_WDDX_SHARED=no
126028
 
    
126029
 
  
126030
 
  case ext/wddx in
126031
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
126032
 
  /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
126033
 
  *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
126034
 
  esac
126035
 
  
126036
 
  
126037
 
 
126038
 
  b_c_pre=$php_c_pre
126039
 
  b_cxx_pre=$php_cxx_pre
126040
 
  b_c_meta=$php_c_meta
126041
 
  b_cxx_meta=$php_cxx_meta
126042
 
  b_c_post=$php_c_post
126043
 
  b_cxx_post=$php_cxx_post
126044
 
  b_lo=$php_lo
126045
 
 
126046
 
 
126047
 
  old_IFS=$IFS
126048
 
  for ac_src in wddx.c; do
126049
 
  
126050
 
      IFS=.
126051
 
      set $ac_src
126052
 
      ac_obj=$1
126053
 
      IFS=$old_IFS
126054
 
      
126055
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
126056
 
 
126057
 
      case $ac_src in
126058
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126059
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126060
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126061
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
126062
 
      esac
126063
 
 
126064
 
    cat >>Makefile.objects<<EOF
126065
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
126066
 
        $ac_comp
126067
 
EOF
126068
 
  done
126069
 
 
126070
 
 
126071
 
    EXT_STATIC="$EXT_STATIC wddx"
126072
 
    if test "$ext_shared" != "nocli"; then
126073
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
126074
 
    fi
126075
 
  else
126076
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
126077
 
      PHP_WDDX_SHARED=yes
126078
 
      
126079
 
  case ext/wddx in
126080
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
126081
 
  /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
126082
 
  *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
126083
 
  esac
126084
 
  
126085
 
  
126086
 
 
126087
 
  b_c_pre=$shared_c_pre
126088
 
  b_cxx_pre=$shared_cxx_pre
126089
 
  b_c_meta=$shared_c_meta
126090
 
  b_cxx_meta=$shared_cxx_meta
126091
 
  b_c_post=$shared_c_post
126092
 
  b_cxx_post=$shared_cxx_post
126093
 
  b_lo=$shared_lo
126094
 
 
126095
 
 
126096
 
  old_IFS=$IFS
126097
 
  for ac_src in wddx.c; do
126098
 
  
126099
 
      IFS=.
126100
 
      set $ac_src
126101
 
      ac_obj=$1
126102
 
      IFS=$old_IFS
126103
 
      
126104
 
      shared_objects_wddx="$shared_objects_wddx $ac_bdir$ac_obj.lo"
126105
 
 
126106
 
      case $ac_src in
126107
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126108
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126109
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126110
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
126111
 
      esac
126112
 
 
126113
 
    cat >>Makefile.objects<<EOF
126114
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
126115
 
        $ac_comp
126116
 
EOF
126117
 
  done
126118
 
 
126119
 
      case $host_alias in
126120
 
        *netware*)
126121
 
          
126122
 
  install_modules="install-modules"
126123
 
 
126124
 
  case $host_alias in
126125
 
    *aix*)
126126
 
      suffix=so
126127
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpwddx.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(PHPWDDX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpwddx.so '$ext_builddir'/phpwddx.so'
126128
 
      ;;
126129
 
    *netware*)
126130
 
      suffix=nlm
126131
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) -L$(top_builddir)/netware -lphp5lib $(WDDX_SHARED_LIBADD)'
126132
 
      ;;
126133
 
    *)
126134
 
      suffix=la
126135
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(PHPWDDX_SHARED_LIBADD)'
126136
 
      ;;
126137
 
  esac
126138
 
 
126139
 
  if test "x" = "xyes"; then
126140
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpwddx.$suffix"
126141
 
  else
126142
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpwddx.$suffix"
126143
 
  fi
126144
 
  
126145
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
126146
 
 
126147
 
  cat >>Makefile.objects<<EOF
126148
 
\$(phplibdir)/phpwddx.$suffix: $ext_builddir/phpwddx.$suffix
126149
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpwddx.$suffix \$(phplibdir)
126150
 
 
126151
 
$ext_builddir/phpwddx.$suffix: \$(shared_objects_wddx) \$(PHPWDDX_SHARED_DEPENDENCIES)
126152
 
        $link_cmd
126153
 
 
126154
 
EOF
126155
 
 
126156
 
          ;;
126157
 
        *)
126158
 
          
126159
 
  install_modules="install-modules"
126160
 
 
126161
 
  case $host_alias in
126162
 
    *aix*)
126163
 
      suffix=so
126164
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/wddx.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(WDDX_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/wddx.so '$ext_builddir'/wddx.so'
126165
 
      ;;
126166
 
    *netware*)
126167
 
      suffix=nlm
126168
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) -L$(top_builddir)/netware -lphp5lib $(X_SHARED_LIBADD)'
126169
 
      ;;
126170
 
    *)
126171
 
      suffix=la
126172
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_wddx) $(WDDX_SHARED_LIBADD)'
126173
 
      ;;
126174
 
  esac
126175
 
 
126176
 
  if test "x" = "xyes"; then
126177
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/wddx.$suffix"
126178
 
  else
126179
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/wddx.$suffix"
126180
 
  fi
126181
 
  
126182
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
126183
 
 
126184
 
  cat >>Makefile.objects<<EOF
126185
 
\$(phplibdir)/wddx.$suffix: $ext_builddir/wddx.$suffix
126186
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/wddx.$suffix \$(phplibdir)
126187
 
 
126188
 
$ext_builddir/wddx.$suffix: \$(shared_objects_wddx) \$(WDDX_SHARED_DEPENDENCIES)
126189
 
        $link_cmd
126190
 
 
126191
 
EOF
126192
 
 
126193
 
          ;;
126194
 
      esac
126195
 
      
126196
 
cat >>confdefs.h <<_ACEOF
126197
 
@%:@define COMPILE_DL_WDDX 1
126198
 
_ACEOF
126199
 
 
126200
 
    fi
126201
 
  fi
126202
 
 
126203
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
126204
 
    PHP_WDDX_SHARED=no
126205
 
    case "$PHP_SAPI" in
126206
 
      cgi|embed)
126207
 
        
126208
 
  
126209
 
  case ext/wddx in
126210
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
126211
 
  /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
126212
 
  *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
126213
 
  esac
126214
 
  
126215
 
  
126216
 
 
126217
 
  b_c_pre=$php_c_pre
126218
 
  b_cxx_pre=$php_cxx_pre
126219
 
  b_c_meta=$php_c_meta
126220
 
  b_cxx_meta=$php_cxx_meta
126221
 
  b_c_post=$php_c_post
126222
 
  b_cxx_post=$php_cxx_post
126223
 
  b_lo=$php_lo
126224
 
 
126225
 
 
126226
 
  old_IFS=$IFS
126227
 
  for ac_src in wddx.c; do
126228
 
  
126229
 
      IFS=.
126230
 
      set $ac_src
126231
 
      ac_obj=$1
126232
 
      IFS=$old_IFS
126233
 
      
126234
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
126235
 
 
126236
 
      case $ac_src in
126237
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126238
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126239
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126240
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
126241
 
      esac
126242
 
 
126243
 
    cat >>Makefile.objects<<EOF
126244
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
126245
 
        $ac_comp
126246
 
EOF
126247
 
  done
126248
 
 
126249
 
 
126250
 
        EXT_STATIC="$EXT_STATIC wddx"
126251
 
        ;;
126252
 
      *)
126253
 
        
126254
 
  
126255
 
  case ext/wddx in
126256
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
126257
 
  /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
126258
 
  *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
126259
 
  esac
126260
 
  
126261
 
  
126262
 
 
126263
 
  b_c_pre=$php_c_pre
126264
 
  b_cxx_pre=$php_cxx_pre
126265
 
  b_c_meta=$php_c_meta
126266
 
  b_cxx_meta=$php_cxx_meta
126267
 
  b_c_post=$php_c_post
126268
 
  b_cxx_post=$php_cxx_post
126269
 
  b_lo=$php_lo
126270
 
 
126271
 
 
126272
 
  old_IFS=$IFS
126273
 
  for ac_src in wddx.c; do
126274
 
  
126275
 
      IFS=.
126276
 
      set $ac_src
126277
 
      ac_obj=$1
126278
 
      IFS=$old_IFS
126279
 
      
126280
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
126281
 
 
126282
 
      case $ac_src in
126283
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126284
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126285
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126286
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
126287
 
      esac
126288
 
 
126289
 
    cat >>Makefile.objects<<EOF
126290
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
126291
 
        $ac_comp
126292
 
EOF
126293
 
  done
126294
 
 
126295
 
 
126296
 
        ;;
126297
 
    esac
126298
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
126299
 
  fi
126300
 
  
126301
 
  
126302
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
126303
 
  
126304
 
 
126305
 
 
126306
 
  if test "$ext_builddir" = "."; then
126307
 
    PHP_PECL_EXTENSION=wddx
126308
 
    
126309
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
126310
 
 
126311
 
  fi
126312
 
 
126313
 
  
126314
 
  am_i_shared=$PHP_WDDX_SHARED
126315
 
  is_it_shared=$PHP_LIBXML_SHARED
126316
 
  is_it_enabled=$PHP_LIBXML
126317
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
126318
 
    { { $as_echo "$as_me:$LINENO: error: 
126319
 
You've configured extension wddx to build statically, but it
126320
 
depends on extension libxml, which you've configured to build shared.
126321
 
You either need to build wddx shared or build libxml statically for the
126322
 
build to be successful.
126323
 
" >&5
126324
 
$as_echo "$as_me: error: 
126325
 
You've configured extension wddx to build statically, but it
126326
 
depends on extension libxml, which you've configured to build shared.
126327
 
You either need to build wddx shared or build libxml statically for the
126328
 
build to be successful.
126329
 
" >&2;}
126330
 
   { (exit 1); exit 1; }; }
126331
 
  fi
126332
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
126333
 
    { { $as_echo "$as_me:$LINENO: error: 
126334
 
You've configured extension wddx, which depends on extension libxml,
126335
 
but you've either not enabled libxml, or have disabled it.
126336
 
" >&5
126337
 
$as_echo "$as_me: error: 
126338
 
You've configured extension wddx, which depends on extension libxml,
126339
 
but you've either not enabled libxml, or have disabled it.
126340
 
" >&2;}
126341
 
   { (exit 1); exit 1; }; }
126342
 
  fi
126343
 
  
126344
 
  
126345
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
126346
 
 
126347
 
fi
126348
 
 
126349
 
 
126350
 
 
126351
 
php_enable_xml=yes
126352
 
 
126353
 
{ $as_echo "$as_me:$LINENO: checking whether to enable XML support" >&5
126354
 
$as_echo_n "checking whether to enable XML support... " >&6; }
126355
 
@%:@ Check whether --enable-xml was given.
126356
 
if test "${enable_xml+set}" = set; then
126357
 
  enableval=$enable_xml; PHP_XML=$enableval
126358
 
else
126359
 
  
126360
 
  PHP_XML=yes
126361
 
  test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL
126362
 
 
126363
 
fi
126364
 
 
126365
 
 
126366
 
 
126367
 
ext_output="yes, shared"
126368
 
ext_shared=yes
126369
 
case $PHP_XML in
126370
 
shared,*)
126371
 
  PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'`
126372
 
  ;;
126373
 
shared)
126374
 
  PHP_XML=yes
126375
 
  ;;
126376
 
no)
126377
 
  ext_output=no
126378
 
  ext_shared=no
126379
 
  ;;
126380
 
*)
126381
 
  ext_output=yes
126382
 
  ext_shared=no
126383
 
  ;;
126384
 
esac
126385
 
 
126386
 
 
126387
 
 
126388
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
126389
 
$as_echo "$ext_output" >&6; }
126390
 
 
126391
 
 
126392
 
 
126393
 
 
126394
 
if test -z "$PHP_LIBXML_DIR"; then
126395
 
  
126396
 
php_with_libxml_dir=no
126397
 
 
126398
 
{ $as_echo "$as_me:$LINENO: checking libxml2 install dir" >&5
126399
 
$as_echo_n "checking libxml2 install dir... " >&6; }
126400
 
 
126401
 
@%:@ Check whether --with-libxml-dir was given.
126402
 
if test "${with_libxml_dir+set}" = set; then
126403
 
  withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
126404
 
else
126405
 
  
126406
 
  PHP_LIBXML_DIR=no
126407
 
  
126408
 
 
126409
 
fi
126410
 
 
126411
 
 
126412
 
ext_output=$PHP_LIBXML_DIR
126413
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
126414
 
$as_echo "$ext_output" >&6; }
126415
 
 
126416
 
 
126417
 
 
126418
 
fi
126419
 
 
126420
 
 
126421
 
php_with_libexpat_dir=no
126422
 
 
126423
 
{ $as_echo "$as_me:$LINENO: checking libexpat install dir" >&5
126424
 
$as_echo_n "checking libexpat install dir... " >&6; }
126425
 
 
126426
 
@%:@ Check whether --with-libexpat-dir was given.
126427
 
if test "${with_libexpat_dir+set}" = set; then
126428
 
  withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
126429
 
else
126430
 
  
126431
 
  PHP_LIBEXPAT_DIR=no
126432
 
  
126433
 
 
126434
 
fi
126435
 
 
126436
 
 
126437
 
ext_output=$PHP_LIBEXPAT_DIR
126438
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
126439
 
$as_echo "$ext_output" >&6; }
126440
 
 
126441
 
 
126442
 
 
126443
 
 
126444
 
if test "$PHP_XML" != "no"; then
126445
 
 
126446
 
        if test "$PHP_LIBEXPAT_DIR" = "no"; then
126447
 
 
126448
 
    if test "$PHP_LIBXML" = "no"; then
126449
 
      { { $as_echo "$as_me:$LINENO: error: XML extension requires LIBXML extension, add --enable-libxml" >&5
126450
 
$as_echo "$as_me: error: XML extension requires LIBXML extension, add --enable-libxml" >&2;}
126451
 
   { (exit 1); exit 1; }; }
126452
 
    fi
126453
 
 
126454
 
    
126455
 
{ $as_echo "$as_me:$LINENO: checking for xml2-config path" >&5
126456
 
$as_echo_n "checking for xml2-config path... " >&6; }
126457
 
if test "${ac_cv_php_xml2_config_path+set}" = set; then
126458
 
  $as_echo_n "(cached) " >&6
126459
 
else
126460
 
  
126461
 
  for i in $PHP_LIBXML_DIR /usr/local /usr; do
126462
 
    if test -x "$i/bin/xml2-config"; then
126463
 
      ac_cv_php_xml2_config_path="$i/bin/xml2-config"
126464
 
      break
126465
 
    fi
126466
 
  done
126467
 
 
126468
 
fi
126469
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
126470
 
$as_echo "$ac_cv_php_xml2_config_path" >&6; }
126471
 
 
126472
 
  if test -x "$ac_cv_php_xml2_config_path"; then
126473
 
    XML2_CONFIG="$ac_cv_php_xml2_config_path"
126474
 
    libxml_full_version=`$XML2_CONFIG --version`
126475
 
    ac_IFS=$IFS
126476
 
    IFS="."
126477
 
    set $libxml_full_version
126478
 
    IFS=$ac_IFS
126479
 
    LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
126480
 
    if test "$LIBXML_VERSION" -ge "2006011"; then
126481
 
      LIBXML_LIBS=`$XML2_CONFIG --libs`
126482
 
      LIBXML_INCS=`$XML2_CONFIG --cflags`
126483
 
      
126484
 
  for ac_i in $LIBXML_LIBS; do
126485
 
    case $ac_i in
126486
 
    -pthread)
126487
 
      if test "$ext_shared" = "yes"; then
126488
 
        XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread"
126489
 
      else
126490
 
        
126491
 
  
126492
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
126493
 
  
126494
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
126495
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
126496
 
    eval "EXTRA_LDFLAGS$unique=set"
126497
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
126498
 
  fi
126499
 
 
126500
 
      fi
126501
 
    ;;
126502
 
    -l*)
126503
 
      ac_ii=`echo $ac_i|cut -c 3-`
126504
 
      
126505
 
  
126506
 
  case $ac_ii in
126507
 
  c|c_r|pthread*) ;;
126508
 
  *) 
126509
 
    if test "$ext_shared" = "yes"; then
126510
 
        XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii" 
126511
 
    else
126512
 
      
126513
 
  
126514
 
  case $ac_ii in
126515
 
  c|c_r|pthread*) ;;
126516
 
  *) 
126517
 
      LIBS="$LIBS -l$ac_ii" 
126518
 
   ;;
126519
 
  esac
126520
 
 
126521
 
 
126522
 
    fi
126523
 
   ;;
126524
 
  esac
126525
 
 
126526
 
 
126527
 
    ;;
126528
 
    -L*)
126529
 
      ac_ii=`echo $ac_i|cut -c 3-`
126530
 
      
126531
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
126532
 
    
126533
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
126534
 
    ai_p=$ac_ii
126535
 
  else
126536
 
    
126537
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
126538
 
    
126539
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
126540
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
126541
 
  fi
126542
 
 
126543
 
    
126544
 
      if test "$ext_shared" = "yes"; then
126545
 
        XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
126546
 
        test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
126547
 
      else
126548
 
        
126549
 
  
126550
 
  
126551
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
126552
 
  
126553
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
126554
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
126555
 
    eval "LIBPATH$unique=set"
126556
 
    
126557
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
126558
 
    LDFLAGS="$LDFLAGS -L$ai_p"
126559
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
126560
 
  
126561
 
  fi
126562
 
 
126563
 
 
126564
 
      fi
126565
 
    
126566
 
  fi
126567
 
 
126568
 
    ;;
126569
 
    esac
126570
 
  done
126571
 
 
126572
 
      
126573
 
  for ac_i in $LIBXML_INCS; do
126574
 
    case $ac_i in
126575
 
    -I*)
126576
 
      ac_ii=`echo $ac_i|cut -c 3-`
126577
 
      
126578
 
  if test "$ac_ii" != "/usr/include"; then
126579
 
    
126580
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
126581
 
    ai_p=$ac_ii
126582
 
  else
126583
 
    
126584
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
126585
 
    
126586
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
126587
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
126588
 
  fi
126589
 
 
126590
 
    
126591
 
  
126592
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
126593
 
  
126594
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
126595
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
126596
 
    eval "INCLUDEPATH$unique=set"
126597
 
    
126598
 
      if test ""; then
126599
 
        INCLUDES="-I$ai_p $INCLUDES"
126600
 
      else
126601
 
        INCLUDES="$INCLUDES -I$ai_p"
126602
 
      fi
126603
 
    
126604
 
  fi
126605
 
 
126606
 
  fi
126607
 
 
126608
 
    ;;
126609
 
    esac
126610
 
  done
126611
 
 
126612
 
 
126613
 
            { $as_echo "$as_me:$LINENO: checking whether libxml build works" >&5
126614
 
$as_echo_n "checking whether libxml build works... " >&6; }
126615
 
if test "${php_cv_libxml_build_works+set}" = set; then
126616
 
  $as_echo_n "(cached) " >&6
126617
 
else
126618
 
  
126619
 
        
126620
 
  old_LIBS=$LIBS
126621
 
  LIBS="
126622
 
          $XML_SHARED_LIBADD
126623
 
         $LIBS"
126624
 
  if test "$cross_compiling" = yes; then
126625
 
  
126626
 
    LIBS=$old_LIBS
126627
 
  
126628
 
else
126629
 
  cat >conftest.$ac_ext <<_ACEOF
126630
 
/* confdefs.h.  */
126631
 
_ACEOF
126632
 
cat confdefs.h >>conftest.$ac_ext
126633
 
cat >>conftest.$ac_ext <<_ACEOF
126634
 
/* end confdefs.h.  */
126635
 
 
126636
 
    
126637
 
    char xmlInitParser();
126638
 
    int main() {
126639
 
      xmlInitParser();
126640
 
      return 0;
126641
 
    }
126642
 
  
126643
 
_ACEOF
126644
 
rm -f conftest$ac_exeext
126645
 
if { (ac_try="$ac_link"
126646
 
case "(($ac_try" in
126647
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
126648
 
  *) ac_try_echo=$ac_try;;
126649
 
esac
126650
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
126651
 
$as_echo "$ac_try_echo") >&5
126652
 
  (eval "$ac_link") 2>&5
126653
 
  ac_status=$?
126654
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
126655
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
126656
 
  { (case "(($ac_try" in
126657
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
126658
 
  *) ac_try_echo=$ac_try;;
126659
 
esac
126660
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
126661
 
$as_echo "$ac_try_echo") >&5
126662
 
  (eval "$ac_try") 2>&5
126663
 
  ac_status=$?
126664
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
126665
 
  (exit $ac_status); }; }; then
126666
 
  
126667
 
    LIBS=$old_LIBS
126668
 
    
126669
 
          php_cv_libxml_build_works=yes
126670
 
        
126671
 
  
126672
 
else
126673
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
126674
 
$as_echo "$as_me: failed program was:" >&5
126675
 
sed 's/^/| /' conftest.$ac_ext >&5
126676
 
 
126677
 
( exit $ac_status )
126678
 
 
126679
 
    LIBS=$old_LIBS
126680
 
    
126681
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
126682
 
$as_echo "no" >&6; }
126683
 
          { { $as_echo "$as_me:$LINENO: error: build test failed.  Please check the config.log for details." >&5
126684
 
$as_echo "$as_me: error: build test failed.  Please check the config.log for details." >&2;}
126685
 
   { (exit 1); exit 1; }; }
126686
 
        
126687
 
  
126688
 
fi
126689
 
rm -rf conftest.dSYM
126690
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
126691
 
fi
126692
 
 
126693
 
 
126694
 
 
126695
 
      
126696
 
fi
126697
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
126698
 
$as_echo "$php_cv_libxml_build_works" >&6; }
126699
 
      if test "$php_cv_libxml_build_works" = "yes"; then
126700
 
        
126701
 
cat >>confdefs.h <<\_ACEOF
126702
 
@%:@define HAVE_LIBXML 1
126703
 
_ACEOF
126704
 
 
126705
 
      fi
126706
 
      
126707
 
      xml_extra_sources="compat.c"
126708
 
      
126709
 
  am_i_shared=$PHP_XML_SHARED
126710
 
  is_it_shared=$PHP_LIBXML_SHARED
126711
 
  is_it_enabled=$PHP_LIBXML
126712
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
126713
 
    { { $as_echo "$as_me:$LINENO: error: 
126714
 
You've configured extension xml to build statically, but it
126715
 
depends on extension libxml, which you've configured to build shared.
126716
 
You either need to build xml shared or build libxml statically for the
126717
 
build to be successful.
126718
 
" >&5
126719
 
$as_echo "$as_me: error: 
126720
 
You've configured extension xml to build statically, but it
126721
 
depends on extension libxml, which you've configured to build shared.
126722
 
You either need to build xml shared or build libxml statically for the
126723
 
build to be successful.
126724
 
" >&2;}
126725
 
   { (exit 1); exit 1; }; }
126726
 
  fi
126727
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
126728
 
    { { $as_echo "$as_me:$LINENO: error: 
126729
 
You've configured extension xml, which depends on extension libxml,
126730
 
but you've either not enabled libxml, or have disabled it.
126731
 
" >&5
126732
 
$as_echo "$as_me: error: 
126733
 
You've configured extension xml, which depends on extension libxml,
126734
 
but you've either not enabled libxml, or have disabled it.
126735
 
" >&2;}
126736
 
   { (exit 1); exit 1; }; }
126737
 
  fi
126738
 
  
126739
 
    
126740
 
    else
126741
 
      { { $as_echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
126742
 
$as_echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
126743
 
   { (exit 1); exit 1; }; }
126744
 
    fi
126745
 
else 
126746
 
      { { $as_echo "$as_me:$LINENO: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&5
126747
 
$as_echo "$as_me: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&2;}
126748
 
   { (exit 1); exit 1; }; }
126749
 
    
126750
 
  fi
126751
 
 
126752
 
  fi
126753
 
  
126754
 
        if test "$PHP_LIBEXPAT_DIR" != "no"; then
126755
 
    for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
126756
 
      if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
126757
 
        EXPAT_DIR=$i
126758
 
        break
126759
 
      fi
126760
 
    done
126761
 
 
126762
 
    if test -z "$EXPAT_DIR"; then
126763
 
      { { $as_echo "$as_me:$LINENO: error: not found. Please reinstall the expat distribution." >&5
126764
 
$as_echo "$as_me: error: not found. Please reinstall the expat distribution." >&2;}
126765
 
   { (exit 1); exit 1; }; }
126766
 
    fi
126767
 
 
126768
 
    
126769
 
  if test "$EXPAT_DIR/include" != "/usr/include"; then
126770
 
    
126771
 
  if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
126772
 
    ai_p=$EXPAT_DIR/include
126773
 
  else
126774
 
    
126775
 
    ep_dir="`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
126776
 
    
126777
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
126778
 
    ai_p="$ep_realdir/`basename \"$EXPAT_DIR/include\"`"
126779
 
  fi
126780
 
 
126781
 
    
126782
 
  
126783
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
126784
 
  
126785
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
126786
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
126787
 
    eval "INCLUDEPATH$unique=set"
126788
 
    
126789
 
      if test ""; then
126790
 
        INCLUDES="-I$ai_p $INCLUDES"
126791
 
      else
126792
 
        INCLUDES="$INCLUDES -I$ai_p"
126793
 
      fi
126794
 
    
126795
 
  fi
126796
 
 
126797
 
  fi
126798
 
 
126799
 
    
126800
 
 
126801
 
  if test "$ext_shared" = "yes"; then
126802
 
    XML_SHARED_LIBADD="-lexpat $XML_SHARED_LIBADD"
126803
 
    if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
126804
 
      
126805
 
  if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
126806
 
    
126807
 
  if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
126808
 
    ai_p=$EXPAT_DIR/$PHP_LIBDIR
126809
 
  else
126810
 
    
126811
 
    ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
126812
 
    
126813
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
126814
 
    ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
126815
 
  fi
126816
 
 
126817
 
    
126818
 
      if test "$ext_shared" = "yes"; then
126819
 
        XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
126820
 
        test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
126821
 
      else
126822
 
        
126823
 
  
126824
 
  
126825
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
126826
 
  
126827
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
126828
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
126829
 
    eval "LIBPATH$unique=set"
126830
 
    
126831
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
126832
 
    LDFLAGS="$LDFLAGS -L$ai_p"
126833
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
126834
 
  
126835
 
  fi
126836
 
 
126837
 
 
126838
 
      fi
126839
 
    
126840
 
  fi
126841
 
 
126842
 
    fi
126843
 
  else
126844
 
    
126845
 
 
126846
 
  if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
126847
 
    
126848
 
  if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
126849
 
    
126850
 
  if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
126851
 
    ai_p=$EXPAT_DIR/$PHP_LIBDIR
126852
 
  else
126853
 
    
126854
 
    ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
126855
 
    
126856
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
126857
 
    ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
126858
 
  fi
126859
 
 
126860
 
    
126861
 
      
126862
 
  
126863
 
  
126864
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
126865
 
  
126866
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
126867
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
126868
 
    eval "LIBPATH$unique=set"
126869
 
    
126870
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
126871
 
    LDFLAGS="$LDFLAGS -L$ai_p"
126872
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
126873
 
  
126874
 
  fi
126875
 
 
126876
 
 
126877
 
    
126878
 
  fi
126879
 
 
126880
 
  fi
126881
 
  
126882
 
  
126883
 
  case expat in
126884
 
  c|c_r|pthread*) ;;
126885
 
  *) 
126886
 
      LIBS="-lexpat $LIBS" 
126887
 
   ;;
126888
 
  esac
126889
 
 
126890
 
 
126891
 
 
126892
 
 
126893
 
  fi
126894
 
 
126895
 
 
126896
 
    
126897
 
cat >>confdefs.h <<\_ACEOF
126898
 
@%:@define HAVE_LIBEXPAT 1
126899
 
_ACEOF
126900
 
 
126901
 
  fi
126902
 
 
126903
 
  
126904
 
  ext_builddir=ext/xml
126905
 
  ext_srcdir=$abs_srcdir/ext/xml
126906
 
 
126907
 
  ac_extra=
126908
 
 
126909
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
126910
 
    PHP_XML_SHARED=no
126911
 
    
126912
 
  
126913
 
  case ext/xml in
126914
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
126915
 
  /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
126916
 
  *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
126917
 
  esac
126918
 
  
126919
 
  
126920
 
 
126921
 
  b_c_pre=$php_c_pre
126922
 
  b_cxx_pre=$php_cxx_pre
126923
 
  b_c_meta=$php_c_meta
126924
 
  b_cxx_meta=$php_cxx_meta
126925
 
  b_c_post=$php_c_post
126926
 
  b_cxx_post=$php_cxx_post
126927
 
  b_lo=$php_lo
126928
 
 
126929
 
 
126930
 
  old_IFS=$IFS
126931
 
  for ac_src in xml.c $xml_extra_sources; do
126932
 
  
126933
 
      IFS=.
126934
 
      set $ac_src
126935
 
      ac_obj=$1
126936
 
      IFS=$old_IFS
126937
 
      
126938
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
126939
 
 
126940
 
      case $ac_src in
126941
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126942
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126943
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126944
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
126945
 
      esac
126946
 
 
126947
 
    cat >>Makefile.objects<<EOF
126948
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
126949
 
        $ac_comp
126950
 
EOF
126951
 
  done
126952
 
 
126953
 
 
126954
 
    EXT_STATIC="$EXT_STATIC xml"
126955
 
    if test "$ext_shared" != "nocli"; then
126956
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
126957
 
    fi
126958
 
  else
126959
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
126960
 
      PHP_XML_SHARED=yes
126961
 
      
126962
 
  case ext/xml in
126963
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
126964
 
  /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
126965
 
  *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
126966
 
  esac
126967
 
  
126968
 
  
126969
 
 
126970
 
  b_c_pre=$shared_c_pre
126971
 
  b_cxx_pre=$shared_cxx_pre
126972
 
  b_c_meta=$shared_c_meta
126973
 
  b_cxx_meta=$shared_cxx_meta
126974
 
  b_c_post=$shared_c_post
126975
 
  b_cxx_post=$shared_cxx_post
126976
 
  b_lo=$shared_lo
126977
 
 
126978
 
 
126979
 
  old_IFS=$IFS
126980
 
  for ac_src in xml.c $xml_extra_sources; do
126981
 
  
126982
 
      IFS=.
126983
 
      set $ac_src
126984
 
      ac_obj=$1
126985
 
      IFS=$old_IFS
126986
 
      
126987
 
      shared_objects_xml="$shared_objects_xml $ac_bdir$ac_obj.lo"
126988
 
 
126989
 
      case $ac_src in
126990
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126991
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126992
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
126993
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
126994
 
      esac
126995
 
 
126996
 
    cat >>Makefile.objects<<EOF
126997
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
126998
 
        $ac_comp
126999
 
EOF
127000
 
  done
127001
 
 
127002
 
      case $host_alias in
127003
 
        *netware*)
127004
 
          
127005
 
  install_modules="install-modules"
127006
 
 
127007
 
  case $host_alias in
127008
 
    *aix*)
127009
 
      suffix=so
127010
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(PHPXML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxml.so '$ext_builddir'/phpxml.so'
127011
 
      ;;
127012
 
    *netware*)
127013
 
      suffix=nlm
127014
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) -L$(top_builddir)/netware -lphp5lib $(XML_SHARED_LIBADD)'
127015
 
      ;;
127016
 
    *)
127017
 
      suffix=la
127018
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(PHPXML_SHARED_LIBADD)'
127019
 
      ;;
127020
 
  esac
127021
 
 
127022
 
  if test "x" = "xyes"; then
127023
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxml.$suffix"
127024
 
  else
127025
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxml.$suffix"
127026
 
  fi
127027
 
  
127028
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
127029
 
 
127030
 
  cat >>Makefile.objects<<EOF
127031
 
\$(phplibdir)/phpxml.$suffix: $ext_builddir/phpxml.$suffix
127032
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxml.$suffix \$(phplibdir)
127033
 
 
127034
 
$ext_builddir/phpxml.$suffix: \$(shared_objects_xml) \$(PHPXML_SHARED_DEPENDENCIES)
127035
 
        $link_cmd
127036
 
 
127037
 
EOF
127038
 
 
127039
 
          ;;
127040
 
        *)
127041
 
          
127042
 
  install_modules="install-modules"
127043
 
 
127044
 
  case $host_alias in
127045
 
    *aix*)
127046
 
      suffix=so
127047
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xml.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(XML_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xml.so '$ext_builddir'/xml.so'
127048
 
      ;;
127049
 
    *netware*)
127050
 
      suffix=nlm
127051
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
127052
 
      ;;
127053
 
    *)
127054
 
      suffix=la
127055
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xml) $(XML_SHARED_LIBADD)'
127056
 
      ;;
127057
 
  esac
127058
 
 
127059
 
  if test "x" = "xyes"; then
127060
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xml.$suffix"
127061
 
  else
127062
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/xml.$suffix"
127063
 
  fi
127064
 
  
127065
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
127066
 
 
127067
 
  cat >>Makefile.objects<<EOF
127068
 
\$(phplibdir)/xml.$suffix: $ext_builddir/xml.$suffix
127069
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/xml.$suffix \$(phplibdir)
127070
 
 
127071
 
$ext_builddir/xml.$suffix: \$(shared_objects_xml) \$(XML_SHARED_DEPENDENCIES)
127072
 
        $link_cmd
127073
 
 
127074
 
EOF
127075
 
 
127076
 
          ;;
127077
 
      esac
127078
 
      
127079
 
cat >>confdefs.h <<_ACEOF
127080
 
@%:@define COMPILE_DL_XML 1
127081
 
_ACEOF
127082
 
 
127083
 
    fi
127084
 
  fi
127085
 
 
127086
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
127087
 
    PHP_XML_SHARED=no
127088
 
    case "$PHP_SAPI" in
127089
 
      cgi|embed)
127090
 
        
127091
 
  
127092
 
  case ext/xml in
127093
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
127094
 
  /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
127095
 
  *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
127096
 
  esac
127097
 
  
127098
 
  
127099
 
 
127100
 
  b_c_pre=$php_c_pre
127101
 
  b_cxx_pre=$php_cxx_pre
127102
 
  b_c_meta=$php_c_meta
127103
 
  b_cxx_meta=$php_cxx_meta
127104
 
  b_c_post=$php_c_post
127105
 
  b_cxx_post=$php_cxx_post
127106
 
  b_lo=$php_lo
127107
 
 
127108
 
 
127109
 
  old_IFS=$IFS
127110
 
  for ac_src in xml.c $xml_extra_sources; do
127111
 
  
127112
 
      IFS=.
127113
 
      set $ac_src
127114
 
      ac_obj=$1
127115
 
      IFS=$old_IFS
127116
 
      
127117
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
127118
 
 
127119
 
      case $ac_src in
127120
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127121
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127122
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127123
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
127124
 
      esac
127125
 
 
127126
 
    cat >>Makefile.objects<<EOF
127127
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
127128
 
        $ac_comp
127129
 
EOF
127130
 
  done
127131
 
 
127132
 
 
127133
 
        EXT_STATIC="$EXT_STATIC xml"
127134
 
        ;;
127135
 
      *)
127136
 
        
127137
 
  
127138
 
  case ext/xml in
127139
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
127140
 
  /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
127141
 
  *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
127142
 
  esac
127143
 
  
127144
 
  
127145
 
 
127146
 
  b_c_pre=$php_c_pre
127147
 
  b_cxx_pre=$php_cxx_pre
127148
 
  b_c_meta=$php_c_meta
127149
 
  b_cxx_meta=$php_cxx_meta
127150
 
  b_c_post=$php_c_post
127151
 
  b_cxx_post=$php_cxx_post
127152
 
  b_lo=$php_lo
127153
 
 
127154
 
 
127155
 
  old_IFS=$IFS
127156
 
  for ac_src in xml.c $xml_extra_sources; do
127157
 
  
127158
 
      IFS=.
127159
 
      set $ac_src
127160
 
      ac_obj=$1
127161
 
      IFS=$old_IFS
127162
 
      
127163
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
127164
 
 
127165
 
      case $ac_src in
127166
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127167
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127168
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127169
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
127170
 
      esac
127171
 
 
127172
 
    cat >>Makefile.objects<<EOF
127173
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
127174
 
        $ac_comp
127175
 
EOF
127176
 
  done
127177
 
 
127178
 
 
127179
 
        ;;
127180
 
    esac
127181
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
127182
 
  fi
127183
 
  
127184
 
  
127185
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
127186
 
  
127187
 
 
127188
 
 
127189
 
  if test "$ext_builddir" = "."; then
127190
 
    PHP_PECL_EXTENSION=xml
127191
 
    
127192
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
127193
 
 
127194
 
  fi
127195
 
 
127196
 
  
127197
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST XML_SHARED_LIBADD"
127198
 
 
127199
 
  
127200
 
  
127201
 
    for header_file in ext/xml/; do
127202
 
      
127203
 
  
127204
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
127205
 
  
127206
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
127207
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
127208
 
    eval "INSTALLHEADERS$unique=set"
127209
 
    
127210
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
127211
 
      
127212
 
  fi
127213
 
 
127214
 
    done 
127215
 
  
127216
 
 
127217
 
  
127218
 
cat >>confdefs.h <<\_ACEOF
127219
 
@%:@define HAVE_XML 1
127220
 
_ACEOF
127221
 
 
127222
 
fi
127223
 
 
127224
 
 
127225
 
 
127226
 
php_enable_xmlreader=yes
127227
 
 
127228
 
{ $as_echo "$as_me:$LINENO: checking whether to enable XMLReader support" >&5
127229
 
$as_echo_n "checking whether to enable XMLReader support... " >&6; }
127230
 
@%:@ Check whether --enable-xmlreader was given.
127231
 
if test "${enable_xmlreader+set}" = set; then
127232
 
  enableval=$enable_xmlreader; PHP_XMLREADER=$enableval
127233
 
else
127234
 
  
127235
 
  PHP_XMLREADER=yes
127236
 
  test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL
127237
 
 
127238
 
fi
127239
 
 
127240
 
 
127241
 
 
127242
 
ext_output="yes, shared"
127243
 
ext_shared=yes
127244
 
case $PHP_XMLREADER in
127245
 
shared,*)
127246
 
  PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'`
127247
 
  ;;
127248
 
shared)
127249
 
  PHP_XMLREADER=yes
127250
 
  ;;
127251
 
no)
127252
 
  ext_output=no
127253
 
  ext_shared=no
127254
 
  ;;
127255
 
*)
127256
 
  ext_output=yes
127257
 
  ext_shared=no
127258
 
  ;;
127259
 
esac
127260
 
 
127261
 
 
127262
 
 
127263
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
127264
 
$as_echo "$ext_output" >&6; }
127265
 
 
127266
 
 
127267
 
 
127268
 
 
127269
 
if test -z "$PHP_LIBXML_DIR"; then
127270
 
  
127271
 
php_with_libxml_dir=no
127272
 
 
127273
 
{ $as_echo "$as_me:$LINENO: checking libxml2 install dir" >&5
127274
 
$as_echo_n "checking libxml2 install dir... " >&6; }
127275
 
 
127276
 
@%:@ Check whether --with-libxml-dir was given.
127277
 
if test "${with_libxml_dir+set}" = set; then
127278
 
  withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
127279
 
else
127280
 
  
127281
 
  PHP_LIBXML_DIR=no
127282
 
  
127283
 
 
127284
 
fi
127285
 
 
127286
 
 
127287
 
ext_output=$PHP_LIBXML_DIR
127288
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
127289
 
$as_echo "$ext_output" >&6; }
127290
 
 
127291
 
 
127292
 
 
127293
 
fi
127294
 
 
127295
 
if test "$PHP_XMLREADER" != "no"; then
127296
 
 
127297
 
  if test "$PHP_LIBXML" = "no"; then
127298
 
    { { $as_echo "$as_me:$LINENO: error: XMLReader extension requires LIBXML extension, add --enable-libxml" >&5
127299
 
$as_echo "$as_me: error: XMLReader extension requires LIBXML extension, add --enable-libxml" >&2;}
127300
 
   { (exit 1); exit 1; }; }
127301
 
  fi
127302
 
 
127303
 
  
127304
 
{ $as_echo "$as_me:$LINENO: checking for xml2-config path" >&5
127305
 
$as_echo_n "checking for xml2-config path... " >&6; }
127306
 
if test "${ac_cv_php_xml2_config_path+set}" = set; then
127307
 
  $as_echo_n "(cached) " >&6
127308
 
else
127309
 
  
127310
 
  for i in $PHP_LIBXML_DIR /usr/local /usr; do
127311
 
    if test -x "$i/bin/xml2-config"; then
127312
 
      ac_cv_php_xml2_config_path="$i/bin/xml2-config"
127313
 
      break
127314
 
    fi
127315
 
  done
127316
 
 
127317
 
fi
127318
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
127319
 
$as_echo "$ac_cv_php_xml2_config_path" >&6; }
127320
 
 
127321
 
  if test -x "$ac_cv_php_xml2_config_path"; then
127322
 
    XML2_CONFIG="$ac_cv_php_xml2_config_path"
127323
 
    libxml_full_version=`$XML2_CONFIG --version`
127324
 
    ac_IFS=$IFS
127325
 
    IFS="."
127326
 
    set $libxml_full_version
127327
 
    IFS=$ac_IFS
127328
 
    LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
127329
 
    if test "$LIBXML_VERSION" -ge "2006011"; then
127330
 
      LIBXML_LIBS=`$XML2_CONFIG --libs`
127331
 
      LIBXML_INCS=`$XML2_CONFIG --cflags`
127332
 
      
127333
 
  for ac_i in $LIBXML_LIBS; do
127334
 
    case $ac_i in
127335
 
    -pthread)
127336
 
      if test "$ext_shared" = "yes"; then
127337
 
        XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread"
127338
 
      else
127339
 
        
127340
 
  
127341
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
127342
 
  
127343
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
127344
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
127345
 
    eval "EXTRA_LDFLAGS$unique=set"
127346
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
127347
 
  fi
127348
 
 
127349
 
      fi
127350
 
    ;;
127351
 
    -l*)
127352
 
      ac_ii=`echo $ac_i|cut -c 3-`
127353
 
      
127354
 
  
127355
 
  case $ac_ii in
127356
 
  c|c_r|pthread*) ;;
127357
 
  *) 
127358
 
    if test "$ext_shared" = "yes"; then
127359
 
        XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii" 
127360
 
    else
127361
 
      
127362
 
  
127363
 
  case $ac_ii in
127364
 
  c|c_r|pthread*) ;;
127365
 
  *) 
127366
 
      LIBS="$LIBS -l$ac_ii" 
127367
 
   ;;
127368
 
  esac
127369
 
 
127370
 
 
127371
 
    fi
127372
 
   ;;
127373
 
  esac
127374
 
 
127375
 
 
127376
 
    ;;
127377
 
    -L*)
127378
 
      ac_ii=`echo $ac_i|cut -c 3-`
127379
 
      
127380
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
127381
 
    
127382
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
127383
 
    ai_p=$ac_ii
127384
 
  else
127385
 
    
127386
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
127387
 
    
127388
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
127389
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
127390
 
  fi
127391
 
 
127392
 
    
127393
 
      if test "$ext_shared" = "yes"; then
127394
 
        XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD"
127395
 
        test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD"
127396
 
      else
127397
 
        
127398
 
  
127399
 
  
127400
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
127401
 
  
127402
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
127403
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
127404
 
    eval "LIBPATH$unique=set"
127405
 
    
127406
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
127407
 
    LDFLAGS="$LDFLAGS -L$ai_p"
127408
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
127409
 
  
127410
 
  fi
127411
 
 
127412
 
 
127413
 
      fi
127414
 
    
127415
 
  fi
127416
 
 
127417
 
    ;;
127418
 
    esac
127419
 
  done
127420
 
 
127421
 
      
127422
 
  for ac_i in $LIBXML_INCS; do
127423
 
    case $ac_i in
127424
 
    -I*)
127425
 
      ac_ii=`echo $ac_i|cut -c 3-`
127426
 
      
127427
 
  if test "$ac_ii" != "/usr/include"; then
127428
 
    
127429
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
127430
 
    ai_p=$ac_ii
127431
 
  else
127432
 
    
127433
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
127434
 
    
127435
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
127436
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
127437
 
  fi
127438
 
 
127439
 
    
127440
 
  
127441
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
127442
 
  
127443
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
127444
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
127445
 
    eval "INCLUDEPATH$unique=set"
127446
 
    
127447
 
      if test ""; then
127448
 
        INCLUDES="-I$ai_p $INCLUDES"
127449
 
      else
127450
 
        INCLUDES="$INCLUDES -I$ai_p"
127451
 
      fi
127452
 
    
127453
 
  fi
127454
 
 
127455
 
  fi
127456
 
 
127457
 
    ;;
127458
 
    esac
127459
 
  done
127460
 
 
127461
 
 
127462
 
            { $as_echo "$as_me:$LINENO: checking whether libxml build works" >&5
127463
 
$as_echo_n "checking whether libxml build works... " >&6; }
127464
 
if test "${php_cv_libxml_build_works+set}" = set; then
127465
 
  $as_echo_n "(cached) " >&6
127466
 
else
127467
 
  
127468
 
        
127469
 
  old_LIBS=$LIBS
127470
 
  LIBS="
127471
 
          $XMLREADER_SHARED_LIBADD
127472
 
         $LIBS"
127473
 
  if test "$cross_compiling" = yes; then
127474
 
  
127475
 
    LIBS=$old_LIBS
127476
 
  
127477
 
else
127478
 
  cat >conftest.$ac_ext <<_ACEOF
127479
 
/* confdefs.h.  */
127480
 
_ACEOF
127481
 
cat confdefs.h >>conftest.$ac_ext
127482
 
cat >>conftest.$ac_ext <<_ACEOF
127483
 
/* end confdefs.h.  */
127484
 
 
127485
 
    
127486
 
    char xmlInitParser();
127487
 
    int main() {
127488
 
      xmlInitParser();
127489
 
      return 0;
127490
 
    }
127491
 
  
127492
 
_ACEOF
127493
 
rm -f conftest$ac_exeext
127494
 
if { (ac_try="$ac_link"
127495
 
case "(($ac_try" in
127496
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
127497
 
  *) ac_try_echo=$ac_try;;
127498
 
esac
127499
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
127500
 
$as_echo "$ac_try_echo") >&5
127501
 
  (eval "$ac_link") 2>&5
127502
 
  ac_status=$?
127503
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
127504
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
127505
 
  { (case "(($ac_try" in
127506
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
127507
 
  *) ac_try_echo=$ac_try;;
127508
 
esac
127509
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
127510
 
$as_echo "$ac_try_echo") >&5
127511
 
  (eval "$ac_try") 2>&5
127512
 
  ac_status=$?
127513
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
127514
 
  (exit $ac_status); }; }; then
127515
 
  
127516
 
    LIBS=$old_LIBS
127517
 
    
127518
 
          php_cv_libxml_build_works=yes
127519
 
        
127520
 
  
127521
 
else
127522
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
127523
 
$as_echo "$as_me: failed program was:" >&5
127524
 
sed 's/^/| /' conftest.$ac_ext >&5
127525
 
 
127526
 
( exit $ac_status )
127527
 
 
127528
 
    LIBS=$old_LIBS
127529
 
    
127530
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
127531
 
$as_echo "no" >&6; }
127532
 
          { { $as_echo "$as_me:$LINENO: error: build test failed.  Please check the config.log for details." >&5
127533
 
$as_echo "$as_me: error: build test failed.  Please check the config.log for details." >&2;}
127534
 
   { (exit 1); exit 1; }; }
127535
 
        
127536
 
  
127537
 
fi
127538
 
rm -rf conftest.dSYM
127539
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
127540
 
fi
127541
 
 
127542
 
 
127543
 
 
127544
 
      
127545
 
fi
127546
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
127547
 
$as_echo "$php_cv_libxml_build_works" >&6; }
127548
 
      if test "$php_cv_libxml_build_works" = "yes"; then
127549
 
        
127550
 
cat >>confdefs.h <<\_ACEOF
127551
 
@%:@define HAVE_LIBXML 1
127552
 
_ACEOF
127553
 
 
127554
 
      fi
127555
 
      
127556
 
    
127557
 
cat >>confdefs.h <<\_ACEOF
127558
 
@%:@define HAVE_XMLREADER 1
127559
 
_ACEOF
127560
 
 
127561
 
    
127562
 
  ext_builddir=ext/xmlreader
127563
 
  ext_srcdir=$abs_srcdir/ext/xmlreader
127564
 
 
127565
 
  ac_extra=
127566
 
 
127567
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
127568
 
    PHP_XMLREADER_SHARED=no
127569
 
    
127570
 
  
127571
 
  case ext/xmlreader in
127572
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
127573
 
  /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
127574
 
  *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
127575
 
  esac
127576
 
  
127577
 
  
127578
 
 
127579
 
  b_c_pre=$php_c_pre
127580
 
  b_cxx_pre=$php_cxx_pre
127581
 
  b_c_meta=$php_c_meta
127582
 
  b_cxx_meta=$php_cxx_meta
127583
 
  b_c_post=$php_c_post
127584
 
  b_cxx_post=$php_cxx_post
127585
 
  b_lo=$php_lo
127586
 
 
127587
 
 
127588
 
  old_IFS=$IFS
127589
 
  for ac_src in php_xmlreader.c; do
127590
 
  
127591
 
      IFS=.
127592
 
      set $ac_src
127593
 
      ac_obj=$1
127594
 
      IFS=$old_IFS
127595
 
      
127596
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
127597
 
 
127598
 
      case $ac_src in
127599
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127600
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127601
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127602
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
127603
 
      esac
127604
 
 
127605
 
    cat >>Makefile.objects<<EOF
127606
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
127607
 
        $ac_comp
127608
 
EOF
127609
 
  done
127610
 
 
127611
 
 
127612
 
    EXT_STATIC="$EXT_STATIC xmlreader"
127613
 
    if test "$ext_shared" != "nocli"; then
127614
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
127615
 
    fi
127616
 
  else
127617
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
127618
 
      PHP_XMLREADER_SHARED=yes
127619
 
      
127620
 
  case ext/xmlreader in
127621
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
127622
 
  /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
127623
 
  *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
127624
 
  esac
127625
 
  
127626
 
  
127627
 
 
127628
 
  b_c_pre=$shared_c_pre
127629
 
  b_cxx_pre=$shared_cxx_pre
127630
 
  b_c_meta=$shared_c_meta
127631
 
  b_cxx_meta=$shared_cxx_meta
127632
 
  b_c_post=$shared_c_post
127633
 
  b_cxx_post=$shared_cxx_post
127634
 
  b_lo=$shared_lo
127635
 
 
127636
 
 
127637
 
  old_IFS=$IFS
127638
 
  for ac_src in php_xmlreader.c; do
127639
 
  
127640
 
      IFS=.
127641
 
      set $ac_src
127642
 
      ac_obj=$1
127643
 
      IFS=$old_IFS
127644
 
      
127645
 
      shared_objects_xmlreader="$shared_objects_xmlreader $ac_bdir$ac_obj.lo"
127646
 
 
127647
 
      case $ac_src in
127648
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127649
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127650
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127651
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
127652
 
      esac
127653
 
 
127654
 
    cat >>Makefile.objects<<EOF
127655
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
127656
 
        $ac_comp
127657
 
EOF
127658
 
  done
127659
 
 
127660
 
      case $host_alias in
127661
 
        *netware*)
127662
 
          
127663
 
  install_modules="install-modules"
127664
 
 
127665
 
  case $host_alias in
127666
 
    *aix*)
127667
 
      suffix=so
127668
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlreader.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(PHPXMLREADER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlreader.so '$ext_builddir'/phpxmlreader.so'
127669
 
      ;;
127670
 
    *netware*)
127671
 
      suffix=nlm
127672
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) -L$(top_builddir)/netware -lphp5lib $(XMLREADER_SHARED_LIBADD)'
127673
 
      ;;
127674
 
    *)
127675
 
      suffix=la
127676
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(PHPXMLREADER_SHARED_LIBADD)'
127677
 
      ;;
127678
 
  esac
127679
 
 
127680
 
  if test "x" = "xyes"; then
127681
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlreader.$suffix"
127682
 
  else
127683
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlreader.$suffix"
127684
 
  fi
127685
 
  
127686
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
127687
 
 
127688
 
  cat >>Makefile.objects<<EOF
127689
 
\$(phplibdir)/phpxmlreader.$suffix: $ext_builddir/phpxmlreader.$suffix
127690
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlreader.$suffix \$(phplibdir)
127691
 
 
127692
 
$ext_builddir/phpxmlreader.$suffix: \$(shared_objects_xmlreader) \$(PHPXMLREADER_SHARED_DEPENDENCIES)
127693
 
        $link_cmd
127694
 
 
127695
 
EOF
127696
 
 
127697
 
          ;;
127698
 
        *)
127699
 
          
127700
 
  install_modules="install-modules"
127701
 
 
127702
 
  case $host_alias in
127703
 
    *aix*)
127704
 
      suffix=so
127705
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlreader.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(XMLREADER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlreader.so '$ext_builddir'/xmlreader.so'
127706
 
      ;;
127707
 
    *netware*)
127708
 
      suffix=nlm
127709
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) -L$(top_builddir)/netware -lphp5lib $(READER_SHARED_LIBADD)'
127710
 
      ;;
127711
 
    *)
127712
 
      suffix=la
127713
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlreader) $(XMLREADER_SHARED_LIBADD)'
127714
 
      ;;
127715
 
  esac
127716
 
 
127717
 
  if test "x" = "xyes"; then
127718
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlreader.$suffix"
127719
 
  else
127720
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlreader.$suffix"
127721
 
  fi
127722
 
  
127723
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
127724
 
 
127725
 
  cat >>Makefile.objects<<EOF
127726
 
\$(phplibdir)/xmlreader.$suffix: $ext_builddir/xmlreader.$suffix
127727
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/xmlreader.$suffix \$(phplibdir)
127728
 
 
127729
 
$ext_builddir/xmlreader.$suffix: \$(shared_objects_xmlreader) \$(XMLREADER_SHARED_DEPENDENCIES)
127730
 
        $link_cmd
127731
 
 
127732
 
EOF
127733
 
 
127734
 
          ;;
127735
 
      esac
127736
 
      
127737
 
cat >>confdefs.h <<_ACEOF
127738
 
@%:@define COMPILE_DL_XMLREADER 1
127739
 
_ACEOF
127740
 
 
127741
 
    fi
127742
 
  fi
127743
 
 
127744
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
127745
 
    PHP_XMLREADER_SHARED=no
127746
 
    case "$PHP_SAPI" in
127747
 
      cgi|embed)
127748
 
        
127749
 
  
127750
 
  case ext/xmlreader in
127751
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
127752
 
  /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
127753
 
  *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
127754
 
  esac
127755
 
  
127756
 
  
127757
 
 
127758
 
  b_c_pre=$php_c_pre
127759
 
  b_cxx_pre=$php_cxx_pre
127760
 
  b_c_meta=$php_c_meta
127761
 
  b_cxx_meta=$php_cxx_meta
127762
 
  b_c_post=$php_c_post
127763
 
  b_cxx_post=$php_cxx_post
127764
 
  b_lo=$php_lo
127765
 
 
127766
 
 
127767
 
  old_IFS=$IFS
127768
 
  for ac_src in php_xmlreader.c; do
127769
 
  
127770
 
      IFS=.
127771
 
      set $ac_src
127772
 
      ac_obj=$1
127773
 
      IFS=$old_IFS
127774
 
      
127775
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
127776
 
 
127777
 
      case $ac_src in
127778
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127779
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127780
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127781
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
127782
 
      esac
127783
 
 
127784
 
    cat >>Makefile.objects<<EOF
127785
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
127786
 
        $ac_comp
127787
 
EOF
127788
 
  done
127789
 
 
127790
 
 
127791
 
        EXT_STATIC="$EXT_STATIC xmlreader"
127792
 
        ;;
127793
 
      *)
127794
 
        
127795
 
  
127796
 
  case ext/xmlreader in
127797
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
127798
 
  /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
127799
 
  *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
127800
 
  esac
127801
 
  
127802
 
  
127803
 
 
127804
 
  b_c_pre=$php_c_pre
127805
 
  b_cxx_pre=$php_cxx_pre
127806
 
  b_c_meta=$php_c_meta
127807
 
  b_cxx_meta=$php_cxx_meta
127808
 
  b_c_post=$php_c_post
127809
 
  b_cxx_post=$php_cxx_post
127810
 
  b_lo=$php_lo
127811
 
 
127812
 
 
127813
 
  old_IFS=$IFS
127814
 
  for ac_src in php_xmlreader.c; do
127815
 
  
127816
 
      IFS=.
127817
 
      set $ac_src
127818
 
      ac_obj=$1
127819
 
      IFS=$old_IFS
127820
 
      
127821
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
127822
 
 
127823
 
      case $ac_src in
127824
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127825
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127826
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
127827
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
127828
 
      esac
127829
 
 
127830
 
    cat >>Makefile.objects<<EOF
127831
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
127832
 
        $ac_comp
127833
 
EOF
127834
 
  done
127835
 
 
127836
 
 
127837
 
        ;;
127838
 
    esac
127839
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
127840
 
  fi
127841
 
  
127842
 
  
127843
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
127844
 
  
127845
 
 
127846
 
 
127847
 
  if test "$ext_builddir" = "."; then
127848
 
    PHP_PECL_EXTENSION=xmlreader
127849
 
    
127850
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
127851
 
 
127852
 
  fi
127853
 
 
127854
 
    
127855
 
  am_i_shared=$PHP_XMLREADER_SHARED
127856
 
  is_it_shared=$PHP_DOM_SHARED
127857
 
  is_it_enabled=$PHP_DOM
127858
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
127859
 
    { { $as_echo "$as_me:$LINENO: error: 
127860
 
You've configured extension xmlreader to build statically, but it
127861
 
depends on extension dom, which you've configured to build shared.
127862
 
You either need to build xmlreader shared or build dom statically for the
127863
 
build to be successful.
127864
 
" >&5
127865
 
$as_echo "$as_me: error: 
127866
 
You've configured extension xmlreader to build statically, but it
127867
 
depends on extension dom, which you've configured to build shared.
127868
 
You either need to build xmlreader shared or build dom statically for the
127869
 
build to be successful.
127870
 
" >&2;}
127871
 
   { (exit 1); exit 1; }; }
127872
 
  fi
127873
 
  if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
127874
 
    { { $as_echo "$as_me:$LINENO: error: 
127875
 
You've configured extension xmlreader, which depends on extension dom,
127876
 
but you've either not enabled dom, or have disabled it.
127877
 
" >&5
127878
 
$as_echo "$as_me: error: 
127879
 
You've configured extension xmlreader, which depends on extension dom,
127880
 
but you've either not enabled dom, or have disabled it.
127881
 
" >&2;}
127882
 
   { (exit 1); exit 1; }; }
127883
 
  fi
127884
 
  
127885
 
    
127886
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST XMLREADER_SHARED_LIBADD"
127887
 
 
127888
 
  
127889
 
    else
127890
 
      { { $as_echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
127891
 
$as_echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
127892
 
   { (exit 1); exit 1; }; }
127893
 
    fi
127894
 
else 
127895
 
    { { $as_echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
127896
 
$as_echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
127897
 
   { (exit 1); exit 1; }; }
127898
 
  
127899
 
  fi
127900
 
 
127901
 
fi
127902
 
 
127903
 
 
127904
 
# Local macros for automake & autoconf
127905
 
 
127906
 
 
127907
 
 
127908
 
 
127909
 
 
127910
 
 
127911
 
 
127912
 
 
127913
 
 
127914
 
 
127915
 
 
127916
 
 
127917
 
 
127918
 
php_with_xmlrpc=no
127919
 
 
127920
 
{ $as_echo "$as_me:$LINENO: checking for XMLRPC-EPI support" >&5
127921
 
$as_echo_n "checking for XMLRPC-EPI support... " >&6; }
127922
 
 
127923
 
@%:@ Check whether --with-xmlrpc was given.
127924
 
if test "${with_xmlrpc+set}" = set; then
127925
 
  withval=$with_xmlrpc; PHP_XMLRPC=$withval
127926
 
else
127927
 
  
127928
 
  PHP_XMLRPC=no
127929
 
  test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL
127930
 
 
127931
 
fi
127932
 
 
127933
 
 
127934
 
 
127935
 
ext_output="yes, shared"
127936
 
ext_shared=yes
127937
 
case $PHP_XMLRPC in
127938
 
shared,*)
127939
 
  PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'`
127940
 
  ;;
127941
 
shared)
127942
 
  PHP_XMLRPC=yes
127943
 
  ;;
127944
 
no)
127945
 
  ext_output=no
127946
 
  ext_shared=no
127947
 
  ;;
127948
 
*)
127949
 
  ext_output=yes
127950
 
  ext_shared=no
127951
 
  ;;
127952
 
esac
127953
 
 
127954
 
 
127955
 
 
127956
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
127957
 
$as_echo "$ext_output" >&6; }
127958
 
 
127959
 
 
127960
 
 
127961
 
 
127962
 
if test -z "$PHP_LIBXML_DIR"; then
127963
 
  
127964
 
php_with_libxml_dir=no
127965
 
 
127966
 
{ $as_echo "$as_me:$LINENO: checking libxml2 install dir" >&5
127967
 
$as_echo_n "checking libxml2 install dir... " >&6; }
127968
 
 
127969
 
@%:@ Check whether --with-libxml-dir was given.
127970
 
if test "${with_libxml_dir+set}" = set; then
127971
 
  withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
127972
 
else
127973
 
  
127974
 
  PHP_LIBXML_DIR=no
127975
 
  
127976
 
 
127977
 
fi
127978
 
 
127979
 
 
127980
 
ext_output=$PHP_LIBXML_DIR
127981
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
127982
 
$as_echo "$ext_output" >&6; }
127983
 
 
127984
 
 
127985
 
 
127986
 
fi
127987
 
 
127988
 
 
127989
 
php_with_libexpat_dir=no
127990
 
 
127991
 
{ $as_echo "$as_me:$LINENO: checking libexpat dir for XMLRPC-EPI" >&5
127992
 
$as_echo_n "checking libexpat dir for XMLRPC-EPI... " >&6; }
127993
 
 
127994
 
@%:@ Check whether --with-libexpat-dir was given.
127995
 
if test "${with_libexpat_dir+set}" = set; then
127996
 
  withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
127997
 
else
127998
 
  
127999
 
  PHP_LIBEXPAT_DIR=no
128000
 
  
128001
 
 
128002
 
fi
128003
 
 
128004
 
 
128005
 
ext_output=$PHP_LIBEXPAT_DIR
128006
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
128007
 
$as_echo "$ext_output" >&6; }
128008
 
 
128009
 
 
128010
 
 
128011
 
 
128012
 
 
128013
 
php_with_iconv_dir=no
128014
 
 
128015
 
{ $as_echo "$as_me:$LINENO: checking iconv dir for XMLRPC-EPI" >&5
128016
 
$as_echo_n "checking iconv dir for XMLRPC-EPI... " >&6; }
128017
 
 
128018
 
@%:@ Check whether --with-iconv-dir was given.
128019
 
if test "${with_iconv_dir+set}" = set; then
128020
 
  withval=$with_iconv_dir; PHP_ICONV_DIR=$withval
128021
 
else
128022
 
  
128023
 
  PHP_ICONV_DIR=no
128024
 
  
128025
 
 
128026
 
fi
128027
 
 
128028
 
 
128029
 
ext_output=$PHP_ICONV_DIR
128030
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
128031
 
$as_echo "$ext_output" >&6; }
128032
 
 
128033
 
 
128034
 
 
128035
 
 
128036
 
if test "$PHP_XMLRPC" != "no"; then
128037
 
 
128038
 
  
128039
 
  am_i_shared=$PHP_XMLRPC_SHARED
128040
 
  is_it_shared=$PHP_LIBXML_SHARED
128041
 
  is_it_enabled=$PHP_LIBXML
128042
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
128043
 
    { { $as_echo "$as_me:$LINENO: error: 
128044
 
You've configured extension xmlrpc to build statically, but it
128045
 
depends on extension libxml, which you've configured to build shared.
128046
 
You either need to build xmlrpc shared or build libxml statically for the
128047
 
build to be successful.
128048
 
" >&5
128049
 
$as_echo "$as_me: error: 
128050
 
You've configured extension xmlrpc to build statically, but it
128051
 
depends on extension libxml, which you've configured to build shared.
128052
 
You either need to build xmlrpc shared or build libxml statically for the
128053
 
build to be successful.
128054
 
" >&2;}
128055
 
   { (exit 1); exit 1; }; }
128056
 
  fi
128057
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
128058
 
    { { $as_echo "$as_me:$LINENO: error: 
128059
 
You've configured extension xmlrpc, which depends on extension libxml,
128060
 
but you've either not enabled libxml, or have disabled it.
128061
 
" >&5
128062
 
$as_echo "$as_me: error: 
128063
 
You've configured extension xmlrpc, which depends on extension libxml,
128064
 
but you've either not enabled libxml, or have disabled it.
128065
 
" >&2;}
128066
 
   { (exit 1); exit 1; }; }
128067
 
  fi
128068
 
  
128069
 
  
128070
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
128071
 
 
128072
 
  
128073
 
cat >>confdefs.h <<\_ACEOF
128074
 
@%:@define HAVE_XMLRPC 1
128075
 
_ACEOF
128076
 
 
128077
 
 
128078
 
        if test "$PHP_LIBEXPAT_DIR" = "no"; then
128079
 
 
128080
 
    if test "$PHP_LIBXML" = "no"; then
128081
 
      { { $as_echo "$as_me:$LINENO: error: XML-RPC extension requires LIBXML extension, add --enable-libxml" >&5
128082
 
$as_echo "$as_me: error: XML-RPC extension requires LIBXML extension, add --enable-libxml" >&2;}
128083
 
   { (exit 1); exit 1; }; }
128084
 
    fi
128085
 
 
128086
 
    
128087
 
{ $as_echo "$as_me:$LINENO: checking for xml2-config path" >&5
128088
 
$as_echo_n "checking for xml2-config path... " >&6; }
128089
 
if test "${ac_cv_php_xml2_config_path+set}" = set; then
128090
 
  $as_echo_n "(cached) " >&6
128091
 
else
128092
 
  
128093
 
  for i in $PHP_LIBXML_DIR /usr/local /usr; do
128094
 
    if test -x "$i/bin/xml2-config"; then
128095
 
      ac_cv_php_xml2_config_path="$i/bin/xml2-config"
128096
 
      break
128097
 
    fi
128098
 
  done
128099
 
 
128100
 
fi
128101
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
128102
 
$as_echo "$ac_cv_php_xml2_config_path" >&6; }
128103
 
 
128104
 
  if test -x "$ac_cv_php_xml2_config_path"; then
128105
 
    XML2_CONFIG="$ac_cv_php_xml2_config_path"
128106
 
    libxml_full_version=`$XML2_CONFIG --version`
128107
 
    ac_IFS=$IFS
128108
 
    IFS="."
128109
 
    set $libxml_full_version
128110
 
    IFS=$ac_IFS
128111
 
    LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
128112
 
    if test "$LIBXML_VERSION" -ge "2006011"; then
128113
 
      LIBXML_LIBS=`$XML2_CONFIG --libs`
128114
 
      LIBXML_INCS=`$XML2_CONFIG --cflags`
128115
 
      
128116
 
  for ac_i in $LIBXML_LIBS; do
128117
 
    case $ac_i in
128118
 
    -pthread)
128119
 
      if test "$ext_shared" = "yes"; then
128120
 
        XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread"
128121
 
      else
128122
 
        
128123
 
  
128124
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
128125
 
  
128126
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
128127
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
128128
 
    eval "EXTRA_LDFLAGS$unique=set"
128129
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
128130
 
  fi
128131
 
 
128132
 
      fi
128133
 
    ;;
128134
 
    -l*)
128135
 
      ac_ii=`echo $ac_i|cut -c 3-`
128136
 
      
128137
 
  
128138
 
  case $ac_ii in
128139
 
  c|c_r|pthread*) ;;
128140
 
  *) 
128141
 
    if test "$ext_shared" = "yes"; then
128142
 
        XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii" 
128143
 
    else
128144
 
      
128145
 
  
128146
 
  case $ac_ii in
128147
 
  c|c_r|pthread*) ;;
128148
 
  *) 
128149
 
      LIBS="$LIBS -l$ac_ii" 
128150
 
   ;;
128151
 
  esac
128152
 
 
128153
 
 
128154
 
    fi
128155
 
   ;;
128156
 
  esac
128157
 
 
128158
 
 
128159
 
    ;;
128160
 
    -L*)
128161
 
      ac_ii=`echo $ac_i|cut -c 3-`
128162
 
      
128163
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
128164
 
    
128165
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
128166
 
    ai_p=$ac_ii
128167
 
  else
128168
 
    
128169
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
128170
 
    
128171
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
128172
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
128173
 
  fi
128174
 
 
128175
 
    
128176
 
      if test "$ext_shared" = "yes"; then
128177
 
        XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
128178
 
        test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
128179
 
      else
128180
 
        
128181
 
  
128182
 
  
128183
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
128184
 
  
128185
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
128186
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
128187
 
    eval "LIBPATH$unique=set"
128188
 
    
128189
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
128190
 
    LDFLAGS="$LDFLAGS -L$ai_p"
128191
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
128192
 
  
128193
 
  fi
128194
 
 
128195
 
 
128196
 
      fi
128197
 
    
128198
 
  fi
128199
 
 
128200
 
    ;;
128201
 
    esac
128202
 
  done
128203
 
 
128204
 
      
128205
 
  for ac_i in $LIBXML_INCS; do
128206
 
    case $ac_i in
128207
 
    -I*)
128208
 
      ac_ii=`echo $ac_i|cut -c 3-`
128209
 
      
128210
 
  if test "$ac_ii" != "/usr/include"; then
128211
 
    
128212
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
128213
 
    ai_p=$ac_ii
128214
 
  else
128215
 
    
128216
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
128217
 
    
128218
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
128219
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
128220
 
  fi
128221
 
 
128222
 
    
128223
 
  
128224
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
128225
 
  
128226
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
128227
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
128228
 
    eval "INCLUDEPATH$unique=set"
128229
 
    
128230
 
      if test ""; then
128231
 
        INCLUDES="-I$ai_p $INCLUDES"
128232
 
      else
128233
 
        INCLUDES="$INCLUDES -I$ai_p"
128234
 
      fi
128235
 
    
128236
 
  fi
128237
 
 
128238
 
  fi
128239
 
 
128240
 
    ;;
128241
 
    esac
128242
 
  done
128243
 
 
128244
 
 
128245
 
            { $as_echo "$as_me:$LINENO: checking whether libxml build works" >&5
128246
 
$as_echo_n "checking whether libxml build works... " >&6; }
128247
 
if test "${php_cv_libxml_build_works+set}" = set; then
128248
 
  $as_echo_n "(cached) " >&6
128249
 
else
128250
 
  
128251
 
        
128252
 
  old_LIBS=$LIBS
128253
 
  LIBS="
128254
 
          $XMLRPC_SHARED_LIBADD
128255
 
         $LIBS"
128256
 
  if test "$cross_compiling" = yes; then
128257
 
  
128258
 
    LIBS=$old_LIBS
128259
 
  
128260
 
else
128261
 
  cat >conftest.$ac_ext <<_ACEOF
128262
 
/* confdefs.h.  */
128263
 
_ACEOF
128264
 
cat confdefs.h >>conftest.$ac_ext
128265
 
cat >>conftest.$ac_ext <<_ACEOF
128266
 
/* end confdefs.h.  */
128267
 
 
128268
 
    
128269
 
    char xmlInitParser();
128270
 
    int main() {
128271
 
      xmlInitParser();
128272
 
      return 0;
128273
 
    }
128274
 
  
128275
 
_ACEOF
128276
 
rm -f conftest$ac_exeext
128277
 
if { (ac_try="$ac_link"
128278
 
case "(($ac_try" in
128279
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
128280
 
  *) ac_try_echo=$ac_try;;
128281
 
esac
128282
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
128283
 
$as_echo "$ac_try_echo") >&5
128284
 
  (eval "$ac_link") 2>&5
128285
 
  ac_status=$?
128286
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
128287
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
128288
 
  { (case "(($ac_try" in
128289
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
128290
 
  *) ac_try_echo=$ac_try;;
128291
 
esac
128292
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
128293
 
$as_echo "$ac_try_echo") >&5
128294
 
  (eval "$ac_try") 2>&5
128295
 
  ac_status=$?
128296
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
128297
 
  (exit $ac_status); }; }; then
128298
 
  
128299
 
    LIBS=$old_LIBS
128300
 
    
128301
 
          php_cv_libxml_build_works=yes
128302
 
        
128303
 
  
128304
 
else
128305
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
128306
 
$as_echo "$as_me: failed program was:" >&5
128307
 
sed 's/^/| /' conftest.$ac_ext >&5
128308
 
 
128309
 
( exit $ac_status )
128310
 
 
128311
 
    LIBS=$old_LIBS
128312
 
    
128313
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
128314
 
$as_echo "no" >&6; }
128315
 
          { { $as_echo "$as_me:$LINENO: error: build test failed.  Please check the config.log for details." >&5
128316
 
$as_echo "$as_me: error: build test failed.  Please check the config.log for details." >&2;}
128317
 
   { (exit 1); exit 1; }; }
128318
 
        
128319
 
  
128320
 
fi
128321
 
rm -rf conftest.dSYM
128322
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
128323
 
fi
128324
 
 
128325
 
 
128326
 
 
128327
 
      
128328
 
fi
128329
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
128330
 
$as_echo "$php_cv_libxml_build_works" >&6; }
128331
 
      if test "$php_cv_libxml_build_works" = "yes"; then
128332
 
        
128333
 
cat >>confdefs.h <<\_ACEOF
128334
 
@%:@define HAVE_LIBXML 1
128335
 
_ACEOF
128336
 
 
128337
 
      fi
128338
 
      
128339
 
      if test "$PHP_XML" = "no"; then
128340
 
        
128341
 
  
128342
 
  case ext/xml in
128343
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
128344
 
  /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
128345
 
  *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
128346
 
  esac
128347
 
  
128348
 
  
128349
 
 
128350
 
  b_c_pre=$php_c_pre
128351
 
  b_cxx_pre=$php_cxx_pre
128352
 
  b_c_meta=$php_c_meta
128353
 
  b_cxx_meta=$php_cxx_meta
128354
 
  b_c_post=$php_c_post
128355
 
  b_cxx_post=$php_cxx_post
128356
 
  b_lo=$php_lo
128357
 
 
128358
 
 
128359
 
  old_IFS=$IFS
128360
 
  for ac_src in compat.c; do
128361
 
  
128362
 
      IFS=.
128363
 
      set $ac_src
128364
 
      ac_obj=$1
128365
 
      IFS=$old_IFS
128366
 
      
128367
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
128368
 
 
128369
 
      case $ac_src in
128370
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
128371
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
128372
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
128373
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
128374
 
      esac
128375
 
 
128376
 
    cat >>Makefile.objects<<EOF
128377
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
128378
 
        $ac_comp
128379
 
EOF
128380
 
  done
128381
 
 
128382
 
 
128383
 
        
128384
 
  
128385
 
    BUILD_DIR="$BUILD_DIR ext/xml"
128386
 
  
128387
 
 
128388
 
      fi
128389
 
    
128390
 
    else
128391
 
      { { $as_echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
128392
 
$as_echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
128393
 
   { (exit 1); exit 1; }; }
128394
 
    fi
128395
 
else 
128396
 
      { { $as_echo "$as_me:$LINENO: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&5
128397
 
$as_echo "$as_me: error: xml2-config not found. Use --with-libxml-dir=<DIR>" >&2;}
128398
 
   { (exit 1); exit 1; }; }
128399
 
    
128400
 
  fi
128401
 
 
128402
 
  else
128403
 
    testval=no
128404
 
    for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do
128405
 
      if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then
128406
 
        
128407
 
cat >>confdefs.h <<\_ACEOF
128408
 
@%:@define HAVE_LIBEXPAT 1
128409
 
_ACEOF
128410
 
 
128411
 
        
128412
 
 
128413
 
  if test "$ext_shared" = "yes"; then
128414
 
    XMLRPC_SHARED_LIBADD="-lexpat $XMLRPC_SHARED_LIBADD"
128415
 
    if test -n "$i/$PHP_LIBDIR"; then
128416
 
      
128417
 
  if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
128418
 
    
128419
 
  if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
128420
 
    ai_p=$i/$PHP_LIBDIR
128421
 
  else
128422
 
    
128423
 
    ep_dir="`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
128424
 
    
128425
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
128426
 
    ai_p="$ep_realdir/`basename \"$i/$PHP_LIBDIR\"`"
128427
 
  fi
128428
 
 
128429
 
    
128430
 
      if test "$ext_shared" = "yes"; then
128431
 
        XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
128432
 
        test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
128433
 
      else
128434
 
        
128435
 
  
128436
 
  
128437
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
128438
 
  
128439
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
128440
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
128441
 
    eval "LIBPATH$unique=set"
128442
 
    
128443
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
128444
 
    LDFLAGS="$LDFLAGS -L$ai_p"
128445
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
128446
 
  
128447
 
  fi
128448
 
 
128449
 
 
128450
 
      fi
128451
 
    
128452
 
  fi
128453
 
 
128454
 
    fi
128455
 
  else
128456
 
    
128457
 
 
128458
 
  if test -n "$i/$PHP_LIBDIR"; then
128459
 
    
128460
 
  if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
128461
 
    
128462
 
  if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
128463
 
    ai_p=$i/$PHP_LIBDIR
128464
 
  else
128465
 
    
128466
 
    ep_dir="`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
128467
 
    
128468
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
128469
 
    ai_p="$ep_realdir/`basename \"$i/$PHP_LIBDIR\"`"
128470
 
  fi
128471
 
 
128472
 
    
128473
 
      
128474
 
  
128475
 
  
128476
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
128477
 
  
128478
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
128479
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
128480
 
    eval "LIBPATH$unique=set"
128481
 
    
128482
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
128483
 
    LDFLAGS="$LDFLAGS -L$ai_p"
128484
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
128485
 
  
128486
 
  fi
128487
 
 
128488
 
 
128489
 
    
128490
 
  fi
128491
 
 
128492
 
  fi
128493
 
  
128494
 
  
128495
 
  case expat in
128496
 
  c|c_r|pthread*) ;;
128497
 
  *) 
128498
 
      LIBS="-lexpat $LIBS" 
128499
 
   ;;
128500
 
  esac
128501
 
 
128502
 
 
128503
 
 
128504
 
 
128505
 
  fi
128506
 
 
128507
 
 
128508
 
        
128509
 
  if test "$i/include" != "/usr/include"; then
128510
 
    
128511
 
  if test -z "$i/include" || echo "$i/include" | grep '^/' >/dev/null ; then
128512
 
    ai_p=$i/include
128513
 
  else
128514
 
    
128515
 
    ep_dir="`echo $i/include|$SED 's%/*[^/][^/]*/*$%%'`"
128516
 
    
128517
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
128518
 
    ai_p="$ep_realdir/`basename \"$i/include\"`"
128519
 
  fi
128520
 
 
128521
 
    
128522
 
  
128523
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
128524
 
  
128525
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
128526
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
128527
 
    eval "INCLUDEPATH$unique=set"
128528
 
    
128529
 
      if test ""; then
128530
 
        INCLUDES="-I$ai_p $INCLUDES"
128531
 
      else
128532
 
        INCLUDES="$INCLUDES -I$ai_p"
128533
 
      fi
128534
 
    
128535
 
  fi
128536
 
 
128537
 
  fi
128538
 
 
128539
 
        testval=yes
128540
 
        break
128541
 
      fi
128542
 
    done
128543
 
 
128544
 
    if test "$testval" = "no"; then
128545
 
      { { $as_echo "$as_me:$LINENO: error: XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)" >&5
128546
 
$as_echo "$as_me: error: XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)" >&2;}
128547
 
   { (exit 1); exit 1; }; }
128548
 
    fi
128549
 
  fi
128550
 
 
128551
 
    if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then
128552
 
 
128553
 
    if test "$PHP_ICONV_DIR" != "no"; then
128554
 
      PHP_ICONV=$PHP_ICONV_DIR
128555
 
    fi
128556
 
  
128557
 
    if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then
128558
 
      PHP_ICONV=yes
128559
 
    fi
128560
 
  
128561
 
    
128562
 
  found_iconv=no
128563
 
  unset ICONV_DIR
128564
 
 
128565
 
  # Create the directories for a VPATH build:
128566
 
  $php_shtool mkdir -p ext/iconv
128567
 
 
128568
 
  echo > ext/iconv/php_have_bsd_iconv.h
128569
 
  echo > ext/iconv/php_have_ibm_iconv.h
128570
 
  echo > ext/iconv/php_have_glibc_iconv.h
128571
 
  echo > ext/iconv/php_have_libiconv.h
128572
 
  echo > ext/iconv/php_have_iconv.h
128573
 
  echo > ext/iconv/php_php_iconv_impl.h
128574
 
  echo > ext/iconv/php_iconv_aliased_libiconv.h
128575
 
  echo > ext/iconv/php_php_iconv_h_path.h
128576
 
  echo > ext/iconv/php_iconv_supports_errno.h
128577
 
 
128578
 
        if test "$PHP_ICONV" = "yes"; then
128579
 
    { $as_echo "$as_me:$LINENO: checking for iconv" >&5
128580
 
$as_echo_n "checking for iconv... " >&6; }
128581
 
if test "${ac_cv_func_iconv+set}" = set; then
128582
 
  $as_echo_n "(cached) " >&6
128583
 
else
128584
 
  cat >conftest.$ac_ext <<_ACEOF
128585
 
/* confdefs.h.  */
128586
 
_ACEOF
128587
 
cat confdefs.h >>conftest.$ac_ext
128588
 
cat >>conftest.$ac_ext <<_ACEOF
128589
 
/* end confdefs.h.  */
128590
 
/* Define iconv to an innocuous variant, in case <limits.h> declares iconv.
128591
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
128592
 
#define iconv innocuous_iconv
128593
 
 
128594
 
/* System header to define __stub macros and hopefully few prototypes,
128595
 
    which can conflict with char iconv (); below.
128596
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
128597
 
    <limits.h> exists even on freestanding compilers.  */
128598
 
 
128599
 
#ifdef __STDC__
128600
 
# include <limits.h>
128601
 
#else
128602
 
# include <assert.h>
128603
 
#endif
128604
 
 
128605
 
#undef iconv
128606
 
 
128607
 
/* Override any GCC internal prototype to avoid an error.
128608
 
   Use char because int might match the return type of a GCC
128609
 
   builtin and then its argument prototype would still apply.  */
128610
 
#ifdef __cplusplus
128611
 
extern "C"
128612
 
#endif
128613
 
char iconv ();
128614
 
/* The GNU C library defines this for functions which it implements
128615
 
    to always fail with ENOSYS.  Some functions are actually named
128616
 
    something starting with __ and the normal name is an alias.  */
128617
 
#if defined __stub_iconv || defined __stub___iconv
128618
 
choke me
128619
 
#endif
128620
 
 
128621
 
int
128622
 
main ()
128623
 
{
128624
 
return iconv ();
128625
 
  ;
128626
 
  return 0;
128627
 
}
128628
 
_ACEOF
128629
 
rm -f conftest.$ac_objext conftest$ac_exeext
128630
 
if { (ac_try="$ac_link"
128631
 
case "(($ac_try" in
128632
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
128633
 
  *) ac_try_echo=$ac_try;;
128634
 
esac
128635
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
128636
 
$as_echo "$ac_try_echo") >&5
128637
 
  (eval "$ac_link") 2>conftest.er1
128638
 
  ac_status=$?
128639
 
  grep -v '^ *+' conftest.er1 >conftest.err
128640
 
  rm -f conftest.er1
128641
 
  cat conftest.err >&5
128642
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
128643
 
  (exit $ac_status); } && {
128644
 
         test -z "$ac_c_werror_flag" ||
128645
 
         test ! -s conftest.err
128646
 
       } && test -s conftest$ac_exeext && {
128647
 
         test "$cross_compiling" = yes ||
128648
 
         $as_test_x conftest$ac_exeext
128649
 
       }; then
128650
 
  ac_cv_func_iconv=yes
128651
 
else
128652
 
  $as_echo "$as_me: failed program was:" >&5
128653
 
sed 's/^/| /' conftest.$ac_ext >&5
128654
 
 
128655
 
        ac_cv_func_iconv=no
128656
 
fi
128657
 
 
128658
 
rm -rf conftest.dSYM
128659
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
128660
 
      conftest$ac_exeext conftest.$ac_ext
128661
 
fi
128662
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_iconv" >&5
128663
 
$as_echo "$ac_cv_func_iconv" >&6; }
128664
 
if test "x$ac_cv_func_iconv" = x""yes; then
128665
 
  
128666
 
      found_iconv=yes
128667
 
    
128668
 
else
128669
 
  
128670
 
      { $as_echo "$as_me:$LINENO: checking for libiconv" >&5
128671
 
$as_echo_n "checking for libiconv... " >&6; }
128672
 
if test "${ac_cv_func_libiconv+set}" = set; then
128673
 
  $as_echo_n "(cached) " >&6
128674
 
else
128675
 
  cat >conftest.$ac_ext <<_ACEOF
128676
 
/* confdefs.h.  */
128677
 
_ACEOF
128678
 
cat confdefs.h >>conftest.$ac_ext
128679
 
cat >>conftest.$ac_ext <<_ACEOF
128680
 
/* end confdefs.h.  */
128681
 
/* Define libiconv to an innocuous variant, in case <limits.h> declares libiconv.
128682
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
128683
 
#define libiconv innocuous_libiconv
128684
 
 
128685
 
/* System header to define __stub macros and hopefully few prototypes,
128686
 
    which can conflict with char libiconv (); below.
128687
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
128688
 
    <limits.h> exists even on freestanding compilers.  */
128689
 
 
128690
 
#ifdef __STDC__
128691
 
# include <limits.h>
128692
 
#else
128693
 
# include <assert.h>
128694
 
#endif
128695
 
 
128696
 
#undef libiconv
128697
 
 
128698
 
/* Override any GCC internal prototype to avoid an error.
128699
 
   Use char because int might match the return type of a GCC
128700
 
   builtin and then its argument prototype would still apply.  */
128701
 
#ifdef __cplusplus
128702
 
extern "C"
128703
 
#endif
128704
 
char libiconv ();
128705
 
/* The GNU C library defines this for functions which it implements
128706
 
    to always fail with ENOSYS.  Some functions are actually named
128707
 
    something starting with __ and the normal name is an alias.  */
128708
 
#if defined __stub_libiconv || defined __stub___libiconv
128709
 
choke me
128710
 
#endif
128711
 
 
128712
 
int
128713
 
main ()
128714
 
{
128715
 
return libiconv ();
128716
 
  ;
128717
 
  return 0;
128718
 
}
128719
 
_ACEOF
128720
 
rm -f conftest.$ac_objext conftest$ac_exeext
128721
 
if { (ac_try="$ac_link"
128722
 
case "(($ac_try" in
128723
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
128724
 
  *) ac_try_echo=$ac_try;;
128725
 
esac
128726
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
128727
 
$as_echo "$ac_try_echo") >&5
128728
 
  (eval "$ac_link") 2>conftest.er1
128729
 
  ac_status=$?
128730
 
  grep -v '^ *+' conftest.er1 >conftest.err
128731
 
  rm -f conftest.er1
128732
 
  cat conftest.err >&5
128733
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
128734
 
  (exit $ac_status); } && {
128735
 
         test -z "$ac_c_werror_flag" ||
128736
 
         test ! -s conftest.err
128737
 
       } && test -s conftest$ac_exeext && {
128738
 
         test "$cross_compiling" = yes ||
128739
 
         $as_test_x conftest$ac_exeext
128740
 
       }; then
128741
 
  ac_cv_func_libiconv=yes
128742
 
else
128743
 
  $as_echo "$as_me: failed program was:" >&5
128744
 
sed 's/^/| /' conftest.$ac_ext >&5
128745
 
 
128746
 
        ac_cv_func_libiconv=no
128747
 
fi
128748
 
 
128749
 
rm -rf conftest.dSYM
128750
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
128751
 
      conftest$ac_exeext conftest.$ac_ext
128752
 
fi
128753
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_libiconv" >&5
128754
 
$as_echo "$ac_cv_func_libiconv" >&6; }
128755
 
if test "x$ac_cv_func_libiconv" = x""yes; then
128756
 
  
128757
 
        
128758
 
  echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
128759
 
 
128760
 
        
128761
 
cat >>confdefs.h <<\_ACEOF
128762
 
@%:@define HAVE_LIBICONV 1
128763
 
_ACEOF
128764
 
 
128765
 
        found_iconv=yes
128766
 
      
128767
 
fi
128768
 
 
128769
 
    
128770
 
fi
128771
 
 
128772
 
  fi
128773
 
 
128774
 
        if test "$found_iconv" = "no"; then
128775
 
 
128776
 
    for i in $PHP_ICONV /usr/local /usr; do
128777
 
      if test -r $i/include/giconv.h; then
128778
 
        
128779
 
cat >>confdefs.h <<\_ACEOF
128780
 
@%:@define HAVE_GICONV_H 1
128781
 
_ACEOF
128782
 
 
128783
 
        ICONV_DIR=$i
128784
 
        iconv_lib_name=giconv
128785
 
        break
128786
 
      elif test -r $i/include/iconv.h; then
128787
 
        ICONV_DIR=$i
128788
 
        iconv_lib_name=iconv
128789
 
        break
128790
 
      fi
128791
 
    done
128792
 
 
128793
 
    if test -z "$ICONV_DIR"; then
128794
 
      { { $as_echo "$as_me:$LINENO: error: Please specify the install prefix of iconv with --with-iconv=<DIR>" >&5
128795
 
$as_echo "$as_me: error: Please specify the install prefix of iconv with --with-iconv=<DIR>" >&2;}
128796
 
   { (exit 1); exit 1; }; }
128797
 
    fi
128798
 
  
128799
 
    if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
128800
 
       test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
128801
 
    then
128802
 
      
128803
 
  save_old_LDFLAGS=$LDFLAGS
128804
 
  ac_stuff="
128805
 
        -L$ICONV_DIR/$PHP_LIBDIR
128806
 
      "
128807
 
  
128808
 
  save_ext_shared=$ext_shared
128809
 
  ext_shared=yes
128810
 
  
128811
 
  for ac_i in $ac_stuff; do
128812
 
    case $ac_i in
128813
 
    -pthread)
128814
 
      if test "$ext_shared" = "yes"; then
128815
 
        LDFLAGS="$LDFLAGS -pthread"
128816
 
      else
128817
 
        
128818
 
  
128819
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
128820
 
  
128821
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
128822
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
128823
 
    eval "EXTRA_LDFLAGS$unique=set"
128824
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
128825
 
  fi
128826
 
 
128827
 
      fi
128828
 
    ;;
128829
 
    -l*)
128830
 
      ac_ii=`echo $ac_i|cut -c 3-`
128831
 
      
128832
 
  
128833
 
  case $ac_ii in
128834
 
  c|c_r|pthread*) ;;
128835
 
  *) 
128836
 
    if test "$ext_shared" = "yes"; then
128837
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
128838
 
    else
128839
 
      
128840
 
  
128841
 
  case $ac_ii in
128842
 
  c|c_r|pthread*) ;;
128843
 
  *) 
128844
 
      LIBS="$LIBS -l$ac_ii" 
128845
 
   ;;
128846
 
  esac
128847
 
 
128848
 
 
128849
 
    fi
128850
 
   ;;
128851
 
  esac
128852
 
 
128853
 
 
128854
 
    ;;
128855
 
    -L*)
128856
 
      ac_ii=`echo $ac_i|cut -c 3-`
128857
 
      
128858
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
128859
 
    
128860
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
128861
 
    ai_p=$ac_ii
128862
 
  else
128863
 
    
128864
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
128865
 
    
128866
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
128867
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
128868
 
  fi
128869
 
 
128870
 
    
128871
 
      if test "$ext_shared" = "yes"; then
128872
 
        LDFLAGS="-L$ai_p $LDFLAGS"
128873
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
128874
 
      else
128875
 
        
128876
 
  
128877
 
  
128878
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
128879
 
  
128880
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
128881
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
128882
 
    eval "LIBPATH$unique=set"
128883
 
    
128884
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
128885
 
    LDFLAGS="$LDFLAGS -L$ai_p"
128886
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
128887
 
  
128888
 
  fi
128889
 
 
128890
 
 
128891
 
      fi
128892
 
    
128893
 
  fi
128894
 
 
128895
 
    ;;
128896
 
    esac
128897
 
  done
128898
 
 
128899
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
128900
 
{ $as_echo "$as_me:$LINENO: checking for libiconv in -l$iconv_lib_name" >&5
128901
 
$as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
128902
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
128903
 
  $as_echo_n "(cached) " >&6
128904
 
else
128905
 
  ac_check_lib_save_LIBS=$LIBS
128906
 
LIBS="-l$iconv_lib_name  $LIBS"
128907
 
cat >conftest.$ac_ext <<_ACEOF
128908
 
/* confdefs.h.  */
128909
 
_ACEOF
128910
 
cat confdefs.h >>conftest.$ac_ext
128911
 
cat >>conftest.$ac_ext <<_ACEOF
128912
 
/* end confdefs.h.  */
128913
 
 
128914
 
/* Override any GCC internal prototype to avoid an error.
128915
 
   Use char because int might match the return type of a GCC
128916
 
   builtin and then its argument prototype would still apply.  */
128917
 
#ifdef __cplusplus
128918
 
extern "C"
128919
 
#endif
128920
 
char libiconv ();
128921
 
int
128922
 
main ()
128923
 
{
128924
 
return libiconv ();
128925
 
  ;
128926
 
  return 0;
128927
 
}
128928
 
_ACEOF
128929
 
rm -f conftest.$ac_objext conftest$ac_exeext
128930
 
if { (ac_try="$ac_link"
128931
 
case "(($ac_try" in
128932
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
128933
 
  *) ac_try_echo=$ac_try;;
128934
 
esac
128935
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
128936
 
$as_echo "$ac_try_echo") >&5
128937
 
  (eval "$ac_link") 2>conftest.er1
128938
 
  ac_status=$?
128939
 
  grep -v '^ *+' conftest.er1 >conftest.err
128940
 
  rm -f conftest.er1
128941
 
  cat conftest.err >&5
128942
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
128943
 
  (exit $ac_status); } && {
128944
 
         test -z "$ac_c_werror_flag" ||
128945
 
         test ! -s conftest.err
128946
 
       } && test -s conftest$ac_exeext && {
128947
 
         test "$cross_compiling" = yes ||
128948
 
         $as_test_x conftest$ac_exeext
128949
 
       }; then
128950
 
  eval "$as_ac_Lib=yes"
128951
 
else
128952
 
  $as_echo "$as_me: failed program was:" >&5
128953
 
sed 's/^/| /' conftest.$ac_ext >&5
128954
 
 
128955
 
        eval "$as_ac_Lib=no"
128956
 
fi
128957
 
 
128958
 
rm -rf conftest.dSYM
128959
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
128960
 
      conftest$ac_exeext conftest.$ac_ext
128961
 
LIBS=$ac_check_lib_save_LIBS
128962
 
fi
128963
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
128964
 
                 $as_echo "$as_val"'`
128965
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
128966
 
$as_echo "$ac_res" >&6; }
128967
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
128968
 
                 $as_echo "$as_val"'`
128969
 
   if test "x$as_val" = x""yes; then
128970
 
  
128971
 
    LDFLAGS=$save_old_LDFLAGS
128972
 
    ext_shared=$save_ext_shared
128973
 
    
128974
 
        found_iconv=yes
128975
 
        
128976
 
  echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
128977
 
 
128978
 
        
128979
 
cat >>confdefs.h <<\_ACEOF
128980
 
@%:@define HAVE_LIBICONV 1
128981
 
_ACEOF
128982
 
 
128983
 
        
128984
 
  echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
128985
 
 
128986
 
        
128987
 
cat >>confdefs.h <<\_ACEOF
128988
 
@%:@define ICONV_ALIASED_LIBICONV 1
128989
 
_ACEOF
128990
 
 
128991
 
      
128992
 
  
128993
 
else
128994
 
  
128995
 
    LDFLAGS=$save_old_LDFLAGS
128996
 
    ext_shared=$save_ext_shared
128997
 
    unset ac_cv_lib_$iconv_lib_name_libiconv
128998
 
    
128999
 
        
129000
 
  save_old_LDFLAGS=$LDFLAGS
129001
 
  ac_stuff="
129002
 
          -L$ICONV_DIR/$PHP_LIBDIR
129003
 
        "
129004
 
  
129005
 
  save_ext_shared=$ext_shared
129006
 
  ext_shared=yes
129007
 
  
129008
 
  for ac_i in $ac_stuff; do
129009
 
    case $ac_i in
129010
 
    -pthread)
129011
 
      if test "$ext_shared" = "yes"; then
129012
 
        LDFLAGS="$LDFLAGS -pthread"
129013
 
      else
129014
 
        
129015
 
  
129016
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
129017
 
  
129018
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
129019
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
129020
 
    eval "EXTRA_LDFLAGS$unique=set"
129021
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
129022
 
  fi
129023
 
 
129024
 
      fi
129025
 
    ;;
129026
 
    -l*)
129027
 
      ac_ii=`echo $ac_i|cut -c 3-`
129028
 
      
129029
 
  
129030
 
  case $ac_ii in
129031
 
  c|c_r|pthread*) ;;
129032
 
  *) 
129033
 
    if test "$ext_shared" = "yes"; then
129034
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
129035
 
    else
129036
 
      
129037
 
  
129038
 
  case $ac_ii in
129039
 
  c|c_r|pthread*) ;;
129040
 
  *) 
129041
 
      LIBS="$LIBS -l$ac_ii" 
129042
 
   ;;
129043
 
  esac
129044
 
 
129045
 
 
129046
 
    fi
129047
 
   ;;
129048
 
  esac
129049
 
 
129050
 
 
129051
 
    ;;
129052
 
    -L*)
129053
 
      ac_ii=`echo $ac_i|cut -c 3-`
129054
 
      
129055
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
129056
 
    
129057
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
129058
 
    ai_p=$ac_ii
129059
 
  else
129060
 
    
129061
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
129062
 
    
129063
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
129064
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
129065
 
  fi
129066
 
 
129067
 
    
129068
 
      if test "$ext_shared" = "yes"; then
129069
 
        LDFLAGS="-L$ai_p $LDFLAGS"
129070
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
129071
 
      else
129072
 
        
129073
 
  
129074
 
  
129075
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
129076
 
  
129077
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
129078
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
129079
 
    eval "LIBPATH$unique=set"
129080
 
    
129081
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
129082
 
    LDFLAGS="$LDFLAGS -L$ai_p"
129083
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
129084
 
  
129085
 
  fi
129086
 
 
129087
 
 
129088
 
      fi
129089
 
    
129090
 
  fi
129091
 
 
129092
 
    ;;
129093
 
    esac
129094
 
  done
129095
 
 
129096
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
129097
 
{ $as_echo "$as_me:$LINENO: checking for iconv in -l$iconv_lib_name" >&5
129098
 
$as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
129099
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
129100
 
  $as_echo_n "(cached) " >&6
129101
 
else
129102
 
  ac_check_lib_save_LIBS=$LIBS
129103
 
LIBS="-l$iconv_lib_name  $LIBS"
129104
 
cat >conftest.$ac_ext <<_ACEOF
129105
 
/* confdefs.h.  */
129106
 
_ACEOF
129107
 
cat confdefs.h >>conftest.$ac_ext
129108
 
cat >>conftest.$ac_ext <<_ACEOF
129109
 
/* end confdefs.h.  */
129110
 
 
129111
 
/* Override any GCC internal prototype to avoid an error.
129112
 
   Use char because int might match the return type of a GCC
129113
 
   builtin and then its argument prototype would still apply.  */
129114
 
#ifdef __cplusplus
129115
 
extern "C"
129116
 
#endif
129117
 
char iconv ();
129118
 
int
129119
 
main ()
129120
 
{
129121
 
return iconv ();
129122
 
  ;
129123
 
  return 0;
129124
 
}
129125
 
_ACEOF
129126
 
rm -f conftest.$ac_objext conftest$ac_exeext
129127
 
if { (ac_try="$ac_link"
129128
 
case "(($ac_try" in
129129
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129130
 
  *) ac_try_echo=$ac_try;;
129131
 
esac
129132
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129133
 
$as_echo "$ac_try_echo") >&5
129134
 
  (eval "$ac_link") 2>conftest.er1
129135
 
  ac_status=$?
129136
 
  grep -v '^ *+' conftest.er1 >conftest.err
129137
 
  rm -f conftest.er1
129138
 
  cat conftest.err >&5
129139
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129140
 
  (exit $ac_status); } && {
129141
 
         test -z "$ac_c_werror_flag" ||
129142
 
         test ! -s conftest.err
129143
 
       } && test -s conftest$ac_exeext && {
129144
 
         test "$cross_compiling" = yes ||
129145
 
         $as_test_x conftest$ac_exeext
129146
 
       }; then
129147
 
  eval "$as_ac_Lib=yes"
129148
 
else
129149
 
  $as_echo "$as_me: failed program was:" >&5
129150
 
sed 's/^/| /' conftest.$ac_ext >&5
129151
 
 
129152
 
        eval "$as_ac_Lib=no"
129153
 
fi
129154
 
 
129155
 
rm -rf conftest.dSYM
129156
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
129157
 
      conftest$ac_exeext conftest.$ac_ext
129158
 
LIBS=$ac_check_lib_save_LIBS
129159
 
fi
129160
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
129161
 
                 $as_echo "$as_val"'`
129162
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
129163
 
$as_echo "$ac_res" >&6; }
129164
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
129165
 
                 $as_echo "$as_val"'`
129166
 
   if test "x$as_val" = x""yes; then
129167
 
  
129168
 
    LDFLAGS=$save_old_LDFLAGS
129169
 
    ext_shared=$save_ext_shared
129170
 
    
129171
 
          found_iconv=yes
129172
 
        
129173
 
  
129174
 
else
129175
 
  
129176
 
    LDFLAGS=$save_old_LDFLAGS
129177
 
    ext_shared=$save_ext_shared
129178
 
    unset ac_cv_lib_$iconv_lib_name_iconv
129179
 
    
129180
 
  
129181
 
fi
129182
 
 
129183
 
      
129184
 
  
129185
 
fi
129186
 
 
129187
 
    fi
129188
 
  fi
129189
 
 
129190
 
  if test "$found_iconv" = "yes"; then
129191
 
    
129192
 
  echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
129193
 
 
129194
 
    
129195
 
cat >>confdefs.h <<\_ACEOF
129196
 
@%:@define HAVE_ICONV 1
129197
 
_ACEOF
129198
 
 
129199
 
    if test -n "$ICONV_DIR"; then
129200
 
      
129201
 
 
129202
 
  if test "$ext_shared" = "yes"; then
129203
 
    XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD"
129204
 
    if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
129205
 
      
129206
 
  if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
129207
 
    
129208
 
  if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
129209
 
    ai_p=$ICONV_DIR/$PHP_LIBDIR
129210
 
  else
129211
 
    
129212
 
    ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
129213
 
    
129214
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
129215
 
    ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
129216
 
  fi
129217
 
 
129218
 
    
129219
 
      if test "$ext_shared" = "yes"; then
129220
 
        XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
129221
 
        test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
129222
 
      else
129223
 
        
129224
 
  
129225
 
  
129226
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
129227
 
  
129228
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
129229
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
129230
 
    eval "LIBPATH$unique=set"
129231
 
    
129232
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
129233
 
    LDFLAGS="$LDFLAGS -L$ai_p"
129234
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
129235
 
  
129236
 
  fi
129237
 
 
129238
 
 
129239
 
      fi
129240
 
    
129241
 
  fi
129242
 
 
129243
 
    fi
129244
 
  else
129245
 
    
129246
 
 
129247
 
  if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
129248
 
    
129249
 
  if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
129250
 
    
129251
 
  if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
129252
 
    ai_p=$ICONV_DIR/$PHP_LIBDIR
129253
 
  else
129254
 
    
129255
 
    ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
129256
 
    
129257
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
129258
 
    ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
129259
 
  fi
129260
 
 
129261
 
    
129262
 
      
129263
 
  
129264
 
  
129265
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
129266
 
  
129267
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
129268
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
129269
 
    eval "LIBPATH$unique=set"
129270
 
    
129271
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
129272
 
    LDFLAGS="$LDFLAGS -L$ai_p"
129273
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
129274
 
  
129275
 
  fi
129276
 
 
129277
 
 
129278
 
    
129279
 
  fi
129280
 
 
129281
 
  fi
129282
 
  
129283
 
  
129284
 
  case $iconv_lib_name in
129285
 
  c|c_r|pthread*) ;;
129286
 
  *) 
129287
 
      LIBS="-l$iconv_lib_name $LIBS" 
129288
 
   ;;
129289
 
  esac
129290
 
 
129291
 
 
129292
 
 
129293
 
 
129294
 
  fi
129295
 
 
129296
 
 
129297
 
      
129298
 
  if test "$ICONV_DIR/include" != "/usr/include"; then
129299
 
    
129300
 
  if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
129301
 
    ai_p=$ICONV_DIR/include
129302
 
  else
129303
 
    
129304
 
    ep_dir="`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
129305
 
    
129306
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
129307
 
    ai_p="$ep_realdir/`basename \"$ICONV_DIR/include\"`"
129308
 
  fi
129309
 
 
129310
 
    
129311
 
  
129312
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
129313
 
  
129314
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
129315
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
129316
 
    eval "INCLUDEPATH$unique=set"
129317
 
    
129318
 
      if test ""; then
129319
 
        INCLUDES="-I$ai_p $INCLUDES"
129320
 
      else
129321
 
        INCLUDES="$INCLUDES -I$ai_p"
129322
 
      fi
129323
 
    
129324
 
  fi
129325
 
 
129326
 
  fi
129327
 
 
129328
 
    fi
129329
 
    
129330
 
else 
129331
 
      { { $as_echo "$as_me:$LINENO: error: iconv not found, in order to build xmlrpc you need the iconv library" >&5
129332
 
$as_echo "$as_me: error: iconv not found, in order to build xmlrpc you need the iconv library" >&2;}
129333
 
   { (exit 1); exit 1; }; }
129334
 
    
129335
 
  fi
129336
 
 
129337
 
  fi
129338
 
fi
129339
 
 
129340
 
if test "$PHP_XMLRPC" = "yes"; then
129341
 
  if test -n "$ac_tool_prefix"; then
129342
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
129343
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
129344
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
129345
 
$as_echo_n "checking for $ac_word... " >&6; }
129346
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
129347
 
  $as_echo_n "(cached) " >&6
129348
 
else
129349
 
  if test -n "$RANLIB"; then
129350
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
129351
 
else
129352
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129353
 
for as_dir in $PATH
129354
 
do
129355
 
  IFS=$as_save_IFS
129356
 
  test -z "$as_dir" && as_dir=.
129357
 
  for ac_exec_ext in '' $ac_executable_extensions; do
129358
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
129359
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
129360
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
129361
 
    break 2
129362
 
  fi
129363
 
done
129364
 
done
129365
 
IFS=$as_save_IFS
129366
 
 
129367
 
fi
129368
 
fi
129369
 
RANLIB=$ac_cv_prog_RANLIB
129370
 
if test -n "$RANLIB"; then
129371
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
129372
 
$as_echo "$RANLIB" >&6; }
129373
 
else
129374
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
129375
 
$as_echo "no" >&6; }
129376
 
fi
129377
 
 
129378
 
 
129379
 
fi
129380
 
if test -z "$ac_cv_prog_RANLIB"; then
129381
 
  ac_ct_RANLIB=$RANLIB
129382
 
  # Extract the first word of "ranlib", so it can be a program name with args.
129383
 
set dummy ranlib; ac_word=$2
129384
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
129385
 
$as_echo_n "checking for $ac_word... " >&6; }
129386
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
129387
 
  $as_echo_n "(cached) " >&6
129388
 
else
129389
 
  if test -n "$ac_ct_RANLIB"; then
129390
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
129391
 
else
129392
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129393
 
for as_dir in $PATH
129394
 
do
129395
 
  IFS=$as_save_IFS
129396
 
  test -z "$as_dir" && as_dir=.
129397
 
  for ac_exec_ext in '' $ac_executable_extensions; do
129398
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
129399
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
129400
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
129401
 
    break 2
129402
 
  fi
129403
 
done
129404
 
done
129405
 
IFS=$as_save_IFS
129406
 
 
129407
 
fi
129408
 
fi
129409
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
129410
 
if test -n "$ac_ct_RANLIB"; then
129411
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
129412
 
$as_echo "$ac_ct_RANLIB" >&6; }
129413
 
else
129414
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
129415
 
$as_echo "no" >&6; }
129416
 
fi
129417
 
 
129418
 
  if test "x$ac_ct_RANLIB" = x; then
129419
 
    RANLIB=":"
129420
 
  else
129421
 
    case $cross_compiling:$ac_tool_warned in
129422
 
yes:)
129423
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
129424
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
129425
 
ac_tool_warned=yes ;;
129426
 
esac
129427
 
    RANLIB=$ac_ct_RANLIB
129428
 
  fi
129429
 
else
129430
 
  RANLIB="$ac_cv_prog_RANLIB"
129431
 
fi
129432
 
 
129433
 
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
129434
 
$as_echo_n "checking for inline... " >&6; }
129435
 
if test "${ac_cv_c_inline+set}" = set; then
129436
 
  $as_echo_n "(cached) " >&6
129437
 
else
129438
 
  ac_cv_c_inline=no
129439
 
for ac_kw in inline __inline__ __inline; do
129440
 
  cat >conftest.$ac_ext <<_ACEOF
129441
 
/* confdefs.h.  */
129442
 
_ACEOF
129443
 
cat confdefs.h >>conftest.$ac_ext
129444
 
cat >>conftest.$ac_ext <<_ACEOF
129445
 
/* end confdefs.h.  */
129446
 
#ifndef __cplusplus
129447
 
typedef int foo_t;
129448
 
static $ac_kw foo_t static_foo () {return 0; }
129449
 
$ac_kw foo_t foo () {return 0; }
129450
 
#endif
129451
 
 
129452
 
_ACEOF
129453
 
rm -f conftest.$ac_objext
129454
 
if { (ac_try="$ac_compile"
129455
 
case "(($ac_try" in
129456
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129457
 
  *) ac_try_echo=$ac_try;;
129458
 
esac
129459
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129460
 
$as_echo "$ac_try_echo") >&5
129461
 
  (eval "$ac_compile") 2>conftest.er1
129462
 
  ac_status=$?
129463
 
  grep -v '^ *+' conftest.er1 >conftest.err
129464
 
  rm -f conftest.er1
129465
 
  cat conftest.err >&5
129466
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129467
 
  (exit $ac_status); } && {
129468
 
         test -z "$ac_c_werror_flag" ||
129469
 
         test ! -s conftest.err
129470
 
       } && test -s conftest.$ac_objext; then
129471
 
  ac_cv_c_inline=$ac_kw
129472
 
else
129473
 
  $as_echo "$as_me: failed program was:" >&5
129474
 
sed 's/^/| /' conftest.$ac_ext >&5
129475
 
 
129476
 
        
129477
 
fi
129478
 
 
129479
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
129480
 
  test "$ac_cv_c_inline" != no && break
129481
 
done
129482
 
 
129483
 
fi
129484
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
129485
 
$as_echo "$ac_cv_c_inline" >&6; }
129486
 
 
129487
 
 
129488
 
case $ac_cv_c_inline in
129489
 
  inline | yes) ;;
129490
 
  *)
129491
 
    case $ac_cv_c_inline in
129492
 
      no) ac_val=;;
129493
 
      *) ac_val=$ac_cv_c_inline;;
129494
 
    esac
129495
 
    cat >>confdefs.h <<_ACEOF
129496
 
#ifndef __cplusplus
129497
 
#define inline $ac_val
129498
 
#endif
129499
 
_ACEOF
129500
 
    ;;
129501
 
esac
129502
 
 
129503
 
        
129504
 
 
129505
 
 
129506
 
 
129507
 
 
129508
 
 
129509
 
 
129510
 
cat >>confdefs.h <<\_ACEOF
129511
 
@%:@define UNDEF_THREADS_HACK /**/
129512
 
_ACEOF
129513
 
 
129514
 
 
129515
 
 
129516
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
129517
 
$as_echo_n "checking for ANSI C header files... " >&6; }
129518
 
if test "${ac_cv_header_stdc+set}" = set; then
129519
 
  $as_echo_n "(cached) " >&6
129520
 
else
129521
 
  cat >conftest.$ac_ext <<_ACEOF
129522
 
/* confdefs.h.  */
129523
 
_ACEOF
129524
 
cat confdefs.h >>conftest.$ac_ext
129525
 
cat >>conftest.$ac_ext <<_ACEOF
129526
 
/* end confdefs.h.  */
129527
 
#include <stdlib.h>
129528
 
#include <stdarg.h>
129529
 
#include <string.h>
129530
 
#include <float.h>
129531
 
 
129532
 
int
129533
 
main ()
129534
 
{
129535
 
 
129536
 
  ;
129537
 
  return 0;
129538
 
}
129539
 
_ACEOF
129540
 
rm -f conftest.$ac_objext
129541
 
if { (ac_try="$ac_compile"
129542
 
case "(($ac_try" in
129543
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129544
 
  *) ac_try_echo=$ac_try;;
129545
 
esac
129546
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129547
 
$as_echo "$ac_try_echo") >&5
129548
 
  (eval "$ac_compile") 2>conftest.er1
129549
 
  ac_status=$?
129550
 
  grep -v '^ *+' conftest.er1 >conftest.err
129551
 
  rm -f conftest.er1
129552
 
  cat conftest.err >&5
129553
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129554
 
  (exit $ac_status); } && {
129555
 
         test -z "$ac_c_werror_flag" ||
129556
 
         test ! -s conftest.err
129557
 
       } && test -s conftest.$ac_objext; then
129558
 
  ac_cv_header_stdc=yes
129559
 
else
129560
 
  $as_echo "$as_me: failed program was:" >&5
129561
 
sed 's/^/| /' conftest.$ac_ext >&5
129562
 
 
129563
 
        ac_cv_header_stdc=no
129564
 
fi
129565
 
 
129566
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
129567
 
 
129568
 
if test $ac_cv_header_stdc = yes; then
129569
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
129570
 
  cat >conftest.$ac_ext <<_ACEOF
129571
 
/* confdefs.h.  */
129572
 
_ACEOF
129573
 
cat confdefs.h >>conftest.$ac_ext
129574
 
cat >>conftest.$ac_ext <<_ACEOF
129575
 
/* end confdefs.h.  */
129576
 
#include <string.h>
129577
 
 
129578
 
_ACEOF
129579
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
129580
 
  $EGREP "memchr" >/dev/null 2>&1; then
129581
 
  :
129582
 
else
129583
 
  ac_cv_header_stdc=no
129584
 
fi
129585
 
rm -f conftest*
129586
 
 
129587
 
fi
129588
 
 
129589
 
if test $ac_cv_header_stdc = yes; then
129590
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
129591
 
  cat >conftest.$ac_ext <<_ACEOF
129592
 
/* confdefs.h.  */
129593
 
_ACEOF
129594
 
cat confdefs.h >>conftest.$ac_ext
129595
 
cat >>conftest.$ac_ext <<_ACEOF
129596
 
/* end confdefs.h.  */
129597
 
#include <stdlib.h>
129598
 
 
129599
 
_ACEOF
129600
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
129601
 
  $EGREP "free" >/dev/null 2>&1; then
129602
 
  :
129603
 
else
129604
 
  ac_cv_header_stdc=no
129605
 
fi
129606
 
rm -f conftest*
129607
 
 
129608
 
fi
129609
 
 
129610
 
if test $ac_cv_header_stdc = yes; then
129611
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
129612
 
  if test "$cross_compiling" = yes; then
129613
 
  :
129614
 
else
129615
 
  cat >conftest.$ac_ext <<_ACEOF
129616
 
/* confdefs.h.  */
129617
 
_ACEOF
129618
 
cat confdefs.h >>conftest.$ac_ext
129619
 
cat >>conftest.$ac_ext <<_ACEOF
129620
 
/* end confdefs.h.  */
129621
 
#include <ctype.h>
129622
 
#include <stdlib.h>
129623
 
#if ((' ' & 0x0FF) == 0x020)
129624
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
129625
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
129626
 
#else
129627
 
# define ISLOWER(c) \
129628
 
                   (('a' <= (c) && (c) <= 'i') \
129629
 
                     || ('j' <= (c) && (c) <= 'r') \
129630
 
                     || ('s' <= (c) && (c) <= 'z'))
129631
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
129632
 
#endif
129633
 
 
129634
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
129635
 
int
129636
 
main ()
129637
 
{
129638
 
  int i;
129639
 
  for (i = 0; i < 256; i++)
129640
 
    if (XOR (islower (i), ISLOWER (i))
129641
 
        || toupper (i) != TOUPPER (i))
129642
 
      return 2;
129643
 
  return 0;
129644
 
}
129645
 
_ACEOF
129646
 
rm -f conftest$ac_exeext
129647
 
if { (ac_try="$ac_link"
129648
 
case "(($ac_try" in
129649
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129650
 
  *) ac_try_echo=$ac_try;;
129651
 
esac
129652
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129653
 
$as_echo "$ac_try_echo") >&5
129654
 
  (eval "$ac_link") 2>&5
129655
 
  ac_status=$?
129656
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129657
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
129658
 
  { (case "(($ac_try" in
129659
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129660
 
  *) ac_try_echo=$ac_try;;
129661
 
esac
129662
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129663
 
$as_echo "$ac_try_echo") >&5
129664
 
  (eval "$ac_try") 2>&5
129665
 
  ac_status=$?
129666
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129667
 
  (exit $ac_status); }; }; then
129668
 
  :
129669
 
else
129670
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
129671
 
$as_echo "$as_me: failed program was:" >&5
129672
 
sed 's/^/| /' conftest.$ac_ext >&5
129673
 
 
129674
 
( exit $ac_status )
129675
 
ac_cv_header_stdc=no
129676
 
fi
129677
 
rm -rf conftest.dSYM
129678
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
129679
 
fi
129680
 
 
129681
 
 
129682
 
fi
129683
 
fi
129684
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
129685
 
$as_echo "$ac_cv_header_stdc" >&6; }
129686
 
if test $ac_cv_header_stdc = yes; then
129687
 
  
129688
 
cat >>confdefs.h <<\_ACEOF
129689
 
@%:@define STDC_HEADERS 1
129690
 
_ACEOF
129691
 
 
129692
 
fi
129693
 
 
129694
 
 
129695
 
 
129696
 
 
129697
 
 
129698
 
 
129699
 
for ac_header in xmlparse.h xmltok.h stdlib.h strings.h string.h
129700
 
do
129701
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
129702
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
129703
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
129704
 
$as_echo_n "checking for $ac_header... " >&6; }
129705
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
129706
 
  $as_echo_n "(cached) " >&6
129707
 
fi
129708
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
129709
 
                 $as_echo "$as_val"'`
129710
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
129711
 
$as_echo "$ac_res" >&6; }
129712
 
else
129713
 
  # Is the header compilable?
129714
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
129715
 
$as_echo_n "checking $ac_header usability... " >&6; }
129716
 
cat >conftest.$ac_ext <<_ACEOF
129717
 
/* confdefs.h.  */
129718
 
_ACEOF
129719
 
cat confdefs.h >>conftest.$ac_ext
129720
 
cat >>conftest.$ac_ext <<_ACEOF
129721
 
/* end confdefs.h.  */
129722
 
$ac_includes_default
129723
 
@%:@include <$ac_header>
129724
 
_ACEOF
129725
 
rm -f conftest.$ac_objext
129726
 
if { (ac_try="$ac_compile"
129727
 
case "(($ac_try" in
129728
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129729
 
  *) ac_try_echo=$ac_try;;
129730
 
esac
129731
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129732
 
$as_echo "$ac_try_echo") >&5
129733
 
  (eval "$ac_compile") 2>conftest.er1
129734
 
  ac_status=$?
129735
 
  grep -v '^ *+' conftest.er1 >conftest.err
129736
 
  rm -f conftest.er1
129737
 
  cat conftest.err >&5
129738
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129739
 
  (exit $ac_status); } && {
129740
 
         test -z "$ac_c_werror_flag" ||
129741
 
         test ! -s conftest.err
129742
 
       } && test -s conftest.$ac_objext; then
129743
 
  ac_header_compiler=yes
129744
 
else
129745
 
  $as_echo "$as_me: failed program was:" >&5
129746
 
sed 's/^/| /' conftest.$ac_ext >&5
129747
 
 
129748
 
        ac_header_compiler=no
129749
 
fi
129750
 
 
129751
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
129752
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
129753
 
$as_echo "$ac_header_compiler" >&6; }
129754
 
 
129755
 
# Is the header present?
129756
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
129757
 
$as_echo_n "checking $ac_header presence... " >&6; }
129758
 
cat >conftest.$ac_ext <<_ACEOF
129759
 
/* confdefs.h.  */
129760
 
_ACEOF
129761
 
cat confdefs.h >>conftest.$ac_ext
129762
 
cat >>conftest.$ac_ext <<_ACEOF
129763
 
/* end confdefs.h.  */
129764
 
@%:@include <$ac_header>
129765
 
_ACEOF
129766
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
129767
 
case "(($ac_try" in
129768
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129769
 
  *) ac_try_echo=$ac_try;;
129770
 
esac
129771
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129772
 
$as_echo "$ac_try_echo") >&5
129773
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
129774
 
  ac_status=$?
129775
 
  grep -v '^ *+' conftest.er1 >conftest.err
129776
 
  rm -f conftest.er1
129777
 
  cat conftest.err >&5
129778
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129779
 
  (exit $ac_status); } >/dev/null && {
129780
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
129781
 
         test ! -s conftest.err
129782
 
       }; then
129783
 
  ac_header_preproc=yes
129784
 
else
129785
 
  $as_echo "$as_me: failed program was:" >&5
129786
 
sed 's/^/| /' conftest.$ac_ext >&5
129787
 
 
129788
 
  ac_header_preproc=no
129789
 
fi
129790
 
 
129791
 
rm -f conftest.err conftest.$ac_ext
129792
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
129793
 
$as_echo "$ac_header_preproc" >&6; }
129794
 
 
129795
 
# So?  What about this header?
129796
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
129797
 
  yes:no: )
129798
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
129799
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
129800
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
129801
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
129802
 
    ac_header_preproc=yes
129803
 
    ;;
129804
 
  no:yes:* )
129805
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
129806
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
129807
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
129808
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
129809
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
129810
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
129811
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
129812
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
129813
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
129814
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
129815
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
129816
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
129817
 
    
129818
 
    ;;
129819
 
esac
129820
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
129821
 
$as_echo_n "checking for $ac_header... " >&6; }
129822
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
129823
 
  $as_echo_n "(cached) " >&6
129824
 
else
129825
 
  eval "$as_ac_Header=\$ac_header_preproc"
129826
 
fi
129827
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
129828
 
                 $as_echo "$as_val"'`
129829
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
129830
 
$as_echo "$ac_res" >&6; }
129831
 
 
129832
 
fi
129833
 
as_val=`eval 'as_val=${'$as_ac_Header'}
129834
 
                 $as_echo "$as_val"'`
129835
 
   if test "x$as_val" = x""yes; then
129836
 
  cat >>confdefs.h <<_ACEOF
129837
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
129838
 
_ACEOF
129839
 
 
129840
 
fi
129841
 
 
129842
 
done
129843
 
 
129844
 
 
129845
 
 
129846
 
 
129847
 
 
129848
 
 
129849
 
# The cast to long int works around a bug in the HP C Compiler
129850
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
129851
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
129852
 
# This bug is HP SR number 8606223364.
129853
 
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
129854
 
$as_echo_n "checking size of char... " >&6; }
129855
 
if test "${ac_cv_sizeof_char+set}" = set; then
129856
 
  $as_echo_n "(cached) " >&6
129857
 
else
129858
 
  if test "$cross_compiling" = yes; then
129859
 
  # Depending upon the size, compute the lo and hi bounds.
129860
 
cat >conftest.$ac_ext <<_ACEOF
129861
 
/* confdefs.h.  */
129862
 
_ACEOF
129863
 
cat confdefs.h >>conftest.$ac_ext
129864
 
cat >>conftest.$ac_ext <<_ACEOF
129865
 
/* end confdefs.h.  */
129866
 
$ac_includes_default
129867
 
int
129868
 
main ()
129869
 
{
129870
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) >= 0)@:>@;
129871
 
test_array @<:@0@:>@ = 0
129872
 
 
129873
 
  ;
129874
 
  return 0;
129875
 
}
129876
 
_ACEOF
129877
 
rm -f conftest.$ac_objext
129878
 
if { (ac_try="$ac_compile"
129879
 
case "(($ac_try" in
129880
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129881
 
  *) ac_try_echo=$ac_try;;
129882
 
esac
129883
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129884
 
$as_echo "$ac_try_echo") >&5
129885
 
  (eval "$ac_compile") 2>conftest.er1
129886
 
  ac_status=$?
129887
 
  grep -v '^ *+' conftest.er1 >conftest.err
129888
 
  rm -f conftest.er1
129889
 
  cat conftest.err >&5
129890
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129891
 
  (exit $ac_status); } && {
129892
 
         test -z "$ac_c_werror_flag" ||
129893
 
         test ! -s conftest.err
129894
 
       } && test -s conftest.$ac_objext; then
129895
 
  ac_lo=0 ac_mid=0
129896
 
  while :; do
129897
 
    cat >conftest.$ac_ext <<_ACEOF
129898
 
/* confdefs.h.  */
129899
 
_ACEOF
129900
 
cat confdefs.h >>conftest.$ac_ext
129901
 
cat >>conftest.$ac_ext <<_ACEOF
129902
 
/* end confdefs.h.  */
129903
 
$ac_includes_default
129904
 
int
129905
 
main ()
129906
 
{
129907
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)@:>@;
129908
 
test_array @<:@0@:>@ = 0
129909
 
 
129910
 
  ;
129911
 
  return 0;
129912
 
}
129913
 
_ACEOF
129914
 
rm -f conftest.$ac_objext
129915
 
if { (ac_try="$ac_compile"
129916
 
case "(($ac_try" in
129917
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129918
 
  *) ac_try_echo=$ac_try;;
129919
 
esac
129920
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129921
 
$as_echo "$ac_try_echo") >&5
129922
 
  (eval "$ac_compile") 2>conftest.er1
129923
 
  ac_status=$?
129924
 
  grep -v '^ *+' conftest.er1 >conftest.err
129925
 
  rm -f conftest.er1
129926
 
  cat conftest.err >&5
129927
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129928
 
  (exit $ac_status); } && {
129929
 
         test -z "$ac_c_werror_flag" ||
129930
 
         test ! -s conftest.err
129931
 
       } && test -s conftest.$ac_objext; then
129932
 
  ac_hi=$ac_mid; break
129933
 
else
129934
 
  $as_echo "$as_me: failed program was:" >&5
129935
 
sed 's/^/| /' conftest.$ac_ext >&5
129936
 
 
129937
 
        ac_lo=`expr $ac_mid + 1`
129938
 
                        if test $ac_lo -le $ac_mid; then
129939
 
                          ac_lo= ac_hi=
129940
 
                          break
129941
 
                        fi
129942
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
129943
 
fi
129944
 
 
129945
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
129946
 
  done
129947
 
else
129948
 
  $as_echo "$as_me: failed program was:" >&5
129949
 
sed 's/^/| /' conftest.$ac_ext >&5
129950
 
 
129951
 
        cat >conftest.$ac_ext <<_ACEOF
129952
 
/* confdefs.h.  */
129953
 
_ACEOF
129954
 
cat confdefs.h >>conftest.$ac_ext
129955
 
cat >>conftest.$ac_ext <<_ACEOF
129956
 
/* end confdefs.h.  */
129957
 
$ac_includes_default
129958
 
int
129959
 
main ()
129960
 
{
129961
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) < 0)@:>@;
129962
 
test_array @<:@0@:>@ = 0
129963
 
 
129964
 
  ;
129965
 
  return 0;
129966
 
}
129967
 
_ACEOF
129968
 
rm -f conftest.$ac_objext
129969
 
if { (ac_try="$ac_compile"
129970
 
case "(($ac_try" in
129971
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
129972
 
  *) ac_try_echo=$ac_try;;
129973
 
esac
129974
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
129975
 
$as_echo "$ac_try_echo") >&5
129976
 
  (eval "$ac_compile") 2>conftest.er1
129977
 
  ac_status=$?
129978
 
  grep -v '^ *+' conftest.er1 >conftest.err
129979
 
  rm -f conftest.er1
129980
 
  cat conftest.err >&5
129981
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
129982
 
  (exit $ac_status); } && {
129983
 
         test -z "$ac_c_werror_flag" ||
129984
 
         test ! -s conftest.err
129985
 
       } && test -s conftest.$ac_objext; then
129986
 
  ac_hi=-1 ac_mid=-1
129987
 
  while :; do
129988
 
    cat >conftest.$ac_ext <<_ACEOF
129989
 
/* confdefs.h.  */
129990
 
_ACEOF
129991
 
cat confdefs.h >>conftest.$ac_ext
129992
 
cat >>conftest.$ac_ext <<_ACEOF
129993
 
/* end confdefs.h.  */
129994
 
$ac_includes_default
129995
 
int
129996
 
main ()
129997
 
{
129998
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)@:>@;
129999
 
test_array @<:@0@:>@ = 0
130000
 
 
130001
 
  ;
130002
 
  return 0;
130003
 
}
130004
 
_ACEOF
130005
 
rm -f conftest.$ac_objext
130006
 
if { (ac_try="$ac_compile"
130007
 
case "(($ac_try" in
130008
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130009
 
  *) ac_try_echo=$ac_try;;
130010
 
esac
130011
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130012
 
$as_echo "$ac_try_echo") >&5
130013
 
  (eval "$ac_compile") 2>conftest.er1
130014
 
  ac_status=$?
130015
 
  grep -v '^ *+' conftest.er1 >conftest.err
130016
 
  rm -f conftest.er1
130017
 
  cat conftest.err >&5
130018
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130019
 
  (exit $ac_status); } && {
130020
 
         test -z "$ac_c_werror_flag" ||
130021
 
         test ! -s conftest.err
130022
 
       } && test -s conftest.$ac_objext; then
130023
 
  ac_lo=$ac_mid; break
130024
 
else
130025
 
  $as_echo "$as_me: failed program was:" >&5
130026
 
sed 's/^/| /' conftest.$ac_ext >&5
130027
 
 
130028
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
130029
 
                        if test $ac_mid -le $ac_hi; then
130030
 
                          ac_lo= ac_hi=
130031
 
                          break
130032
 
                        fi
130033
 
                        ac_mid=`expr 2 '*' $ac_mid`
130034
 
fi
130035
 
 
130036
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130037
 
  done
130038
 
else
130039
 
  $as_echo "$as_me: failed program was:" >&5
130040
 
sed 's/^/| /' conftest.$ac_ext >&5
130041
 
 
130042
 
        ac_lo= ac_hi=
130043
 
fi
130044
 
 
130045
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130046
 
fi
130047
 
 
130048
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130049
 
# Binary search between lo and hi bounds.
130050
 
while test "x$ac_lo" != "x$ac_hi"; do
130051
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
130052
 
  cat >conftest.$ac_ext <<_ACEOF
130053
 
/* confdefs.h.  */
130054
 
_ACEOF
130055
 
cat confdefs.h >>conftest.$ac_ext
130056
 
cat >>conftest.$ac_ext <<_ACEOF
130057
 
/* end confdefs.h.  */
130058
 
$ac_includes_default
130059
 
int
130060
 
main ()
130061
 
{
130062
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)@:>@;
130063
 
test_array @<:@0@:>@ = 0
130064
 
 
130065
 
  ;
130066
 
  return 0;
130067
 
}
130068
 
_ACEOF
130069
 
rm -f conftest.$ac_objext
130070
 
if { (ac_try="$ac_compile"
130071
 
case "(($ac_try" in
130072
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130073
 
  *) ac_try_echo=$ac_try;;
130074
 
esac
130075
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130076
 
$as_echo "$ac_try_echo") >&5
130077
 
  (eval "$ac_compile") 2>conftest.er1
130078
 
  ac_status=$?
130079
 
  grep -v '^ *+' conftest.er1 >conftest.err
130080
 
  rm -f conftest.er1
130081
 
  cat conftest.err >&5
130082
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130083
 
  (exit $ac_status); } && {
130084
 
         test -z "$ac_c_werror_flag" ||
130085
 
         test ! -s conftest.err
130086
 
       } && test -s conftest.$ac_objext; then
130087
 
  ac_hi=$ac_mid
130088
 
else
130089
 
  $as_echo "$as_me: failed program was:" >&5
130090
 
sed 's/^/| /' conftest.$ac_ext >&5
130091
 
 
130092
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
130093
 
fi
130094
 
 
130095
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130096
 
done
130097
 
case $ac_lo in
130098
 
?*) ac_cv_sizeof_char=$ac_lo;;
130099
 
'') if test "$ac_cv_type_char" = yes; then
130100
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
130101
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
130102
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
130103
 
See \`config.log' for more details." >&5
130104
 
$as_echo "$as_me: error: cannot compute sizeof (char)
130105
 
See \`config.log' for more details." >&2;}
130106
 
   { (exit 77); exit 77; }; }; }
130107
 
   else
130108
 
     ac_cv_sizeof_char=0
130109
 
   fi ;;
130110
 
esac
130111
 
else
130112
 
  cat >conftest.$ac_ext <<_ACEOF
130113
 
/* confdefs.h.  */
130114
 
_ACEOF
130115
 
cat confdefs.h >>conftest.$ac_ext
130116
 
cat >>conftest.$ac_ext <<_ACEOF
130117
 
/* end confdefs.h.  */
130118
 
$ac_includes_default
130119
 
static long int longval () { return (long int) (sizeof (char)); }
130120
 
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
130121
 
@%:@include <stdio.h>
130122
 
@%:@include <stdlib.h>
130123
 
int
130124
 
main ()
130125
 
{
130126
 
 
130127
 
  FILE *f = fopen ("conftest.val", "w");
130128
 
  if (! f)
130129
 
    return 1;
130130
 
  if (((long int) (sizeof (char))) < 0)
130131
 
    {
130132
 
      long int i = longval ();
130133
 
      if (i != ((long int) (sizeof (char))))
130134
 
        return 1;
130135
 
      fprintf (f, "%ld", i);
130136
 
    }
130137
 
  else
130138
 
    {
130139
 
      unsigned long int i = ulongval ();
130140
 
      if (i != ((long int) (sizeof (char))))
130141
 
        return 1;
130142
 
      fprintf (f, "%lu", i);
130143
 
    }
130144
 
  /* Do not output a trailing newline, as this causes \r\n confusion
130145
 
     on some platforms.  */
130146
 
  return ferror (f) || fclose (f) != 0;
130147
 
 
130148
 
  ;
130149
 
  return 0;
130150
 
}
130151
 
_ACEOF
130152
 
rm -f conftest$ac_exeext
130153
 
if { (ac_try="$ac_link"
130154
 
case "(($ac_try" in
130155
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130156
 
  *) ac_try_echo=$ac_try;;
130157
 
esac
130158
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130159
 
$as_echo "$ac_try_echo") >&5
130160
 
  (eval "$ac_link") 2>&5
130161
 
  ac_status=$?
130162
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130163
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
130164
 
  { (case "(($ac_try" in
130165
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130166
 
  *) ac_try_echo=$ac_try;;
130167
 
esac
130168
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130169
 
$as_echo "$ac_try_echo") >&5
130170
 
  (eval "$ac_try") 2>&5
130171
 
  ac_status=$?
130172
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130173
 
  (exit $ac_status); }; }; then
130174
 
  ac_cv_sizeof_char=`cat conftest.val`
130175
 
else
130176
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
130177
 
$as_echo "$as_me: failed program was:" >&5
130178
 
sed 's/^/| /' conftest.$ac_ext >&5
130179
 
 
130180
 
( exit $ac_status )
130181
 
if test "$ac_cv_type_char" = yes; then
130182
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
130183
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
130184
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
130185
 
See \`config.log' for more details." >&5
130186
 
$as_echo "$as_me: error: cannot compute sizeof (char)
130187
 
See \`config.log' for more details." >&2;}
130188
 
   { (exit 77); exit 77; }; }; }
130189
 
   else
130190
 
     ac_cv_sizeof_char=0
130191
 
   fi
130192
 
fi
130193
 
rm -rf conftest.dSYM
130194
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
130195
 
fi
130196
 
rm -f conftest.val
130197
 
fi
130198
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
130199
 
$as_echo "$ac_cv_sizeof_char" >&6; }
130200
 
 
130201
 
 
130202
 
 
130203
 
cat >>confdefs.h <<_ACEOF
130204
 
@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
130205
 
_ACEOF
130206
 
 
130207
 
 
130208
 
 
130209
 
# The cast to long int works around a bug in the HP C Compiler
130210
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
130211
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
130212
 
# This bug is HP SR number 8606223364.
130213
 
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
130214
 
$as_echo_n "checking size of int... " >&6; }
130215
 
if test "${ac_cv_sizeof_int+set}" = set; then
130216
 
  $as_echo_n "(cached) " >&6
130217
 
else
130218
 
  if test "$cross_compiling" = yes; then
130219
 
  # Depending upon the size, compute the lo and hi bounds.
130220
 
cat >conftest.$ac_ext <<_ACEOF
130221
 
/* confdefs.h.  */
130222
 
_ACEOF
130223
 
cat confdefs.h >>conftest.$ac_ext
130224
 
cat >>conftest.$ac_ext <<_ACEOF
130225
 
/* end confdefs.h.  */
130226
 
$ac_includes_default
130227
 
int
130228
 
main ()
130229
 
{
130230
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= 0)@:>@;
130231
 
test_array @<:@0@:>@ = 0
130232
 
 
130233
 
  ;
130234
 
  return 0;
130235
 
}
130236
 
_ACEOF
130237
 
rm -f conftest.$ac_objext
130238
 
if { (ac_try="$ac_compile"
130239
 
case "(($ac_try" in
130240
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130241
 
  *) ac_try_echo=$ac_try;;
130242
 
esac
130243
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130244
 
$as_echo "$ac_try_echo") >&5
130245
 
  (eval "$ac_compile") 2>conftest.er1
130246
 
  ac_status=$?
130247
 
  grep -v '^ *+' conftest.er1 >conftest.err
130248
 
  rm -f conftest.er1
130249
 
  cat conftest.err >&5
130250
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130251
 
  (exit $ac_status); } && {
130252
 
         test -z "$ac_c_werror_flag" ||
130253
 
         test ! -s conftest.err
130254
 
       } && test -s conftest.$ac_objext; then
130255
 
  ac_lo=0 ac_mid=0
130256
 
  while :; do
130257
 
    cat >conftest.$ac_ext <<_ACEOF
130258
 
/* confdefs.h.  */
130259
 
_ACEOF
130260
 
cat confdefs.h >>conftest.$ac_ext
130261
 
cat >>conftest.$ac_ext <<_ACEOF
130262
 
/* end confdefs.h.  */
130263
 
$ac_includes_default
130264
 
int
130265
 
main ()
130266
 
{
130267
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
130268
 
test_array @<:@0@:>@ = 0
130269
 
 
130270
 
  ;
130271
 
  return 0;
130272
 
}
130273
 
_ACEOF
130274
 
rm -f conftest.$ac_objext
130275
 
if { (ac_try="$ac_compile"
130276
 
case "(($ac_try" in
130277
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130278
 
  *) ac_try_echo=$ac_try;;
130279
 
esac
130280
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130281
 
$as_echo "$ac_try_echo") >&5
130282
 
  (eval "$ac_compile") 2>conftest.er1
130283
 
  ac_status=$?
130284
 
  grep -v '^ *+' conftest.er1 >conftest.err
130285
 
  rm -f conftest.er1
130286
 
  cat conftest.err >&5
130287
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130288
 
  (exit $ac_status); } && {
130289
 
         test -z "$ac_c_werror_flag" ||
130290
 
         test ! -s conftest.err
130291
 
       } && test -s conftest.$ac_objext; then
130292
 
  ac_hi=$ac_mid; break
130293
 
else
130294
 
  $as_echo "$as_me: failed program was:" >&5
130295
 
sed 's/^/| /' conftest.$ac_ext >&5
130296
 
 
130297
 
        ac_lo=`expr $ac_mid + 1`
130298
 
                        if test $ac_lo -le $ac_mid; then
130299
 
                          ac_lo= ac_hi=
130300
 
                          break
130301
 
                        fi
130302
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
130303
 
fi
130304
 
 
130305
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130306
 
  done
130307
 
else
130308
 
  $as_echo "$as_me: failed program was:" >&5
130309
 
sed 's/^/| /' conftest.$ac_ext >&5
130310
 
 
130311
 
        cat >conftest.$ac_ext <<_ACEOF
130312
 
/* confdefs.h.  */
130313
 
_ACEOF
130314
 
cat confdefs.h >>conftest.$ac_ext
130315
 
cat >>conftest.$ac_ext <<_ACEOF
130316
 
/* end confdefs.h.  */
130317
 
$ac_includes_default
130318
 
int
130319
 
main ()
130320
 
{
130321
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) < 0)@:>@;
130322
 
test_array @<:@0@:>@ = 0
130323
 
 
130324
 
  ;
130325
 
  return 0;
130326
 
}
130327
 
_ACEOF
130328
 
rm -f conftest.$ac_objext
130329
 
if { (ac_try="$ac_compile"
130330
 
case "(($ac_try" in
130331
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130332
 
  *) ac_try_echo=$ac_try;;
130333
 
esac
130334
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130335
 
$as_echo "$ac_try_echo") >&5
130336
 
  (eval "$ac_compile") 2>conftest.er1
130337
 
  ac_status=$?
130338
 
  grep -v '^ *+' conftest.er1 >conftest.err
130339
 
  rm -f conftest.er1
130340
 
  cat conftest.err >&5
130341
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130342
 
  (exit $ac_status); } && {
130343
 
         test -z "$ac_c_werror_flag" ||
130344
 
         test ! -s conftest.err
130345
 
       } && test -s conftest.$ac_objext; then
130346
 
  ac_hi=-1 ac_mid=-1
130347
 
  while :; do
130348
 
    cat >conftest.$ac_ext <<_ACEOF
130349
 
/* confdefs.h.  */
130350
 
_ACEOF
130351
 
cat confdefs.h >>conftest.$ac_ext
130352
 
cat >>conftest.$ac_ext <<_ACEOF
130353
 
/* end confdefs.h.  */
130354
 
$ac_includes_default
130355
 
int
130356
 
main ()
130357
 
{
130358
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)@:>@;
130359
 
test_array @<:@0@:>@ = 0
130360
 
 
130361
 
  ;
130362
 
  return 0;
130363
 
}
130364
 
_ACEOF
130365
 
rm -f conftest.$ac_objext
130366
 
if { (ac_try="$ac_compile"
130367
 
case "(($ac_try" in
130368
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130369
 
  *) ac_try_echo=$ac_try;;
130370
 
esac
130371
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130372
 
$as_echo "$ac_try_echo") >&5
130373
 
  (eval "$ac_compile") 2>conftest.er1
130374
 
  ac_status=$?
130375
 
  grep -v '^ *+' conftest.er1 >conftest.err
130376
 
  rm -f conftest.er1
130377
 
  cat conftest.err >&5
130378
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130379
 
  (exit $ac_status); } && {
130380
 
         test -z "$ac_c_werror_flag" ||
130381
 
         test ! -s conftest.err
130382
 
       } && test -s conftest.$ac_objext; then
130383
 
  ac_lo=$ac_mid; break
130384
 
else
130385
 
  $as_echo "$as_me: failed program was:" >&5
130386
 
sed 's/^/| /' conftest.$ac_ext >&5
130387
 
 
130388
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
130389
 
                        if test $ac_mid -le $ac_hi; then
130390
 
                          ac_lo= ac_hi=
130391
 
                          break
130392
 
                        fi
130393
 
                        ac_mid=`expr 2 '*' $ac_mid`
130394
 
fi
130395
 
 
130396
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130397
 
  done
130398
 
else
130399
 
  $as_echo "$as_me: failed program was:" >&5
130400
 
sed 's/^/| /' conftest.$ac_ext >&5
130401
 
 
130402
 
        ac_lo= ac_hi=
130403
 
fi
130404
 
 
130405
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130406
 
fi
130407
 
 
130408
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130409
 
# Binary search between lo and hi bounds.
130410
 
while test "x$ac_lo" != "x$ac_hi"; do
130411
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
130412
 
  cat >conftest.$ac_ext <<_ACEOF
130413
 
/* confdefs.h.  */
130414
 
_ACEOF
130415
 
cat confdefs.h >>conftest.$ac_ext
130416
 
cat >>conftest.$ac_ext <<_ACEOF
130417
 
/* end confdefs.h.  */
130418
 
$ac_includes_default
130419
 
int
130420
 
main ()
130421
 
{
130422
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)@:>@;
130423
 
test_array @<:@0@:>@ = 0
130424
 
 
130425
 
  ;
130426
 
  return 0;
130427
 
}
130428
 
_ACEOF
130429
 
rm -f conftest.$ac_objext
130430
 
if { (ac_try="$ac_compile"
130431
 
case "(($ac_try" in
130432
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130433
 
  *) ac_try_echo=$ac_try;;
130434
 
esac
130435
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130436
 
$as_echo "$ac_try_echo") >&5
130437
 
  (eval "$ac_compile") 2>conftest.er1
130438
 
  ac_status=$?
130439
 
  grep -v '^ *+' conftest.er1 >conftest.err
130440
 
  rm -f conftest.er1
130441
 
  cat conftest.err >&5
130442
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130443
 
  (exit $ac_status); } && {
130444
 
         test -z "$ac_c_werror_flag" ||
130445
 
         test ! -s conftest.err
130446
 
       } && test -s conftest.$ac_objext; then
130447
 
  ac_hi=$ac_mid
130448
 
else
130449
 
  $as_echo "$as_me: failed program was:" >&5
130450
 
sed 's/^/| /' conftest.$ac_ext >&5
130451
 
 
130452
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
130453
 
fi
130454
 
 
130455
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130456
 
done
130457
 
case $ac_lo in
130458
 
?*) ac_cv_sizeof_int=$ac_lo;;
130459
 
'') if test "$ac_cv_type_int" = yes; then
130460
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
130461
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
130462
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
130463
 
See \`config.log' for more details." >&5
130464
 
$as_echo "$as_me: error: cannot compute sizeof (int)
130465
 
See \`config.log' for more details." >&2;}
130466
 
   { (exit 77); exit 77; }; }; }
130467
 
   else
130468
 
     ac_cv_sizeof_int=0
130469
 
   fi ;;
130470
 
esac
130471
 
else
130472
 
  cat >conftest.$ac_ext <<_ACEOF
130473
 
/* confdefs.h.  */
130474
 
_ACEOF
130475
 
cat confdefs.h >>conftest.$ac_ext
130476
 
cat >>conftest.$ac_ext <<_ACEOF
130477
 
/* end confdefs.h.  */
130478
 
$ac_includes_default
130479
 
static long int longval () { return (long int) (sizeof (int)); }
130480
 
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
130481
 
@%:@include <stdio.h>
130482
 
@%:@include <stdlib.h>
130483
 
int
130484
 
main ()
130485
 
{
130486
 
 
130487
 
  FILE *f = fopen ("conftest.val", "w");
130488
 
  if (! f)
130489
 
    return 1;
130490
 
  if (((long int) (sizeof (int))) < 0)
130491
 
    {
130492
 
      long int i = longval ();
130493
 
      if (i != ((long int) (sizeof (int))))
130494
 
        return 1;
130495
 
      fprintf (f, "%ld", i);
130496
 
    }
130497
 
  else
130498
 
    {
130499
 
      unsigned long int i = ulongval ();
130500
 
      if (i != ((long int) (sizeof (int))))
130501
 
        return 1;
130502
 
      fprintf (f, "%lu", i);
130503
 
    }
130504
 
  /* Do not output a trailing newline, as this causes \r\n confusion
130505
 
     on some platforms.  */
130506
 
  return ferror (f) || fclose (f) != 0;
130507
 
 
130508
 
  ;
130509
 
  return 0;
130510
 
}
130511
 
_ACEOF
130512
 
rm -f conftest$ac_exeext
130513
 
if { (ac_try="$ac_link"
130514
 
case "(($ac_try" in
130515
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130516
 
  *) ac_try_echo=$ac_try;;
130517
 
esac
130518
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130519
 
$as_echo "$ac_try_echo") >&5
130520
 
  (eval "$ac_link") 2>&5
130521
 
  ac_status=$?
130522
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130523
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
130524
 
  { (case "(($ac_try" in
130525
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130526
 
  *) ac_try_echo=$ac_try;;
130527
 
esac
130528
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130529
 
$as_echo "$ac_try_echo") >&5
130530
 
  (eval "$ac_try") 2>&5
130531
 
  ac_status=$?
130532
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130533
 
  (exit $ac_status); }; }; then
130534
 
  ac_cv_sizeof_int=`cat conftest.val`
130535
 
else
130536
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
130537
 
$as_echo "$as_me: failed program was:" >&5
130538
 
sed 's/^/| /' conftest.$ac_ext >&5
130539
 
 
130540
 
( exit $ac_status )
130541
 
if test "$ac_cv_type_int" = yes; then
130542
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
130543
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
130544
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
130545
 
See \`config.log' for more details." >&5
130546
 
$as_echo "$as_me: error: cannot compute sizeof (int)
130547
 
See \`config.log' for more details." >&2;}
130548
 
   { (exit 77); exit 77; }; }; }
130549
 
   else
130550
 
     ac_cv_sizeof_int=0
130551
 
   fi
130552
 
fi
130553
 
rm -rf conftest.dSYM
130554
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
130555
 
fi
130556
 
rm -f conftest.val
130557
 
fi
130558
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
130559
 
$as_echo "$ac_cv_sizeof_int" >&6; }
130560
 
 
130561
 
 
130562
 
 
130563
 
cat >>confdefs.h <<_ACEOF
130564
 
@%:@define SIZEOF_INT $ac_cv_sizeof_int
130565
 
_ACEOF
130566
 
 
130567
 
 
130568
 
# The cast to long int works around a bug in the HP C Compiler
130569
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
130570
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
130571
 
# This bug is HP SR number 8606223364.
130572
 
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
130573
 
$as_echo_n "checking size of long... " >&6; }
130574
 
if test "${ac_cv_sizeof_long+set}" = set; then
130575
 
  $as_echo_n "(cached) " >&6
130576
 
else
130577
 
  if test "$cross_compiling" = yes; then
130578
 
  # Depending upon the size, compute the lo and hi bounds.
130579
 
cat >conftest.$ac_ext <<_ACEOF
130580
 
/* confdefs.h.  */
130581
 
_ACEOF
130582
 
cat confdefs.h >>conftest.$ac_ext
130583
 
cat >>conftest.$ac_ext <<_ACEOF
130584
 
/* end confdefs.h.  */
130585
 
$ac_includes_default
130586
 
int
130587
 
main ()
130588
 
{
130589
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@;
130590
 
test_array @<:@0@:>@ = 0
130591
 
 
130592
 
  ;
130593
 
  return 0;
130594
 
}
130595
 
_ACEOF
130596
 
rm -f conftest.$ac_objext
130597
 
if { (ac_try="$ac_compile"
130598
 
case "(($ac_try" in
130599
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130600
 
  *) ac_try_echo=$ac_try;;
130601
 
esac
130602
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130603
 
$as_echo "$ac_try_echo") >&5
130604
 
  (eval "$ac_compile") 2>conftest.er1
130605
 
  ac_status=$?
130606
 
  grep -v '^ *+' conftest.er1 >conftest.err
130607
 
  rm -f conftest.er1
130608
 
  cat conftest.err >&5
130609
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130610
 
  (exit $ac_status); } && {
130611
 
         test -z "$ac_c_werror_flag" ||
130612
 
         test ! -s conftest.err
130613
 
       } && test -s conftest.$ac_objext; then
130614
 
  ac_lo=0 ac_mid=0
130615
 
  while :; do
130616
 
    cat >conftest.$ac_ext <<_ACEOF
130617
 
/* confdefs.h.  */
130618
 
_ACEOF
130619
 
cat confdefs.h >>conftest.$ac_ext
130620
 
cat >>conftest.$ac_ext <<_ACEOF
130621
 
/* end confdefs.h.  */
130622
 
$ac_includes_default
130623
 
int
130624
 
main ()
130625
 
{
130626
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
130627
 
test_array @<:@0@:>@ = 0
130628
 
 
130629
 
  ;
130630
 
  return 0;
130631
 
}
130632
 
_ACEOF
130633
 
rm -f conftest.$ac_objext
130634
 
if { (ac_try="$ac_compile"
130635
 
case "(($ac_try" in
130636
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130637
 
  *) ac_try_echo=$ac_try;;
130638
 
esac
130639
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130640
 
$as_echo "$ac_try_echo") >&5
130641
 
  (eval "$ac_compile") 2>conftest.er1
130642
 
  ac_status=$?
130643
 
  grep -v '^ *+' conftest.er1 >conftest.err
130644
 
  rm -f conftest.er1
130645
 
  cat conftest.err >&5
130646
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130647
 
  (exit $ac_status); } && {
130648
 
         test -z "$ac_c_werror_flag" ||
130649
 
         test ! -s conftest.err
130650
 
       } && test -s conftest.$ac_objext; then
130651
 
  ac_hi=$ac_mid; break
130652
 
else
130653
 
  $as_echo "$as_me: failed program was:" >&5
130654
 
sed 's/^/| /' conftest.$ac_ext >&5
130655
 
 
130656
 
        ac_lo=`expr $ac_mid + 1`
130657
 
                        if test $ac_lo -le $ac_mid; then
130658
 
                          ac_lo= ac_hi=
130659
 
                          break
130660
 
                        fi
130661
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
130662
 
fi
130663
 
 
130664
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130665
 
  done
130666
 
else
130667
 
  $as_echo "$as_me: failed program was:" >&5
130668
 
sed 's/^/| /' conftest.$ac_ext >&5
130669
 
 
130670
 
        cat >conftest.$ac_ext <<_ACEOF
130671
 
/* confdefs.h.  */
130672
 
_ACEOF
130673
 
cat confdefs.h >>conftest.$ac_ext
130674
 
cat >>conftest.$ac_ext <<_ACEOF
130675
 
/* end confdefs.h.  */
130676
 
$ac_includes_default
130677
 
int
130678
 
main ()
130679
 
{
130680
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@;
130681
 
test_array @<:@0@:>@ = 0
130682
 
 
130683
 
  ;
130684
 
  return 0;
130685
 
}
130686
 
_ACEOF
130687
 
rm -f conftest.$ac_objext
130688
 
if { (ac_try="$ac_compile"
130689
 
case "(($ac_try" in
130690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130691
 
  *) ac_try_echo=$ac_try;;
130692
 
esac
130693
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130694
 
$as_echo "$ac_try_echo") >&5
130695
 
  (eval "$ac_compile") 2>conftest.er1
130696
 
  ac_status=$?
130697
 
  grep -v '^ *+' conftest.er1 >conftest.err
130698
 
  rm -f conftest.er1
130699
 
  cat conftest.err >&5
130700
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130701
 
  (exit $ac_status); } && {
130702
 
         test -z "$ac_c_werror_flag" ||
130703
 
         test ! -s conftest.err
130704
 
       } && test -s conftest.$ac_objext; then
130705
 
  ac_hi=-1 ac_mid=-1
130706
 
  while :; do
130707
 
    cat >conftest.$ac_ext <<_ACEOF
130708
 
/* confdefs.h.  */
130709
 
_ACEOF
130710
 
cat confdefs.h >>conftest.$ac_ext
130711
 
cat >>conftest.$ac_ext <<_ACEOF
130712
 
/* end confdefs.h.  */
130713
 
$ac_includes_default
130714
 
int
130715
 
main ()
130716
 
{
130717
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@;
130718
 
test_array @<:@0@:>@ = 0
130719
 
 
130720
 
  ;
130721
 
  return 0;
130722
 
}
130723
 
_ACEOF
130724
 
rm -f conftest.$ac_objext
130725
 
if { (ac_try="$ac_compile"
130726
 
case "(($ac_try" in
130727
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130728
 
  *) ac_try_echo=$ac_try;;
130729
 
esac
130730
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130731
 
$as_echo "$ac_try_echo") >&5
130732
 
  (eval "$ac_compile") 2>conftest.er1
130733
 
  ac_status=$?
130734
 
  grep -v '^ *+' conftest.er1 >conftest.err
130735
 
  rm -f conftest.er1
130736
 
  cat conftest.err >&5
130737
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130738
 
  (exit $ac_status); } && {
130739
 
         test -z "$ac_c_werror_flag" ||
130740
 
         test ! -s conftest.err
130741
 
       } && test -s conftest.$ac_objext; then
130742
 
  ac_lo=$ac_mid; break
130743
 
else
130744
 
  $as_echo "$as_me: failed program was:" >&5
130745
 
sed 's/^/| /' conftest.$ac_ext >&5
130746
 
 
130747
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
130748
 
                        if test $ac_mid -le $ac_hi; then
130749
 
                          ac_lo= ac_hi=
130750
 
                          break
130751
 
                        fi
130752
 
                        ac_mid=`expr 2 '*' $ac_mid`
130753
 
fi
130754
 
 
130755
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130756
 
  done
130757
 
else
130758
 
  $as_echo "$as_me: failed program was:" >&5
130759
 
sed 's/^/| /' conftest.$ac_ext >&5
130760
 
 
130761
 
        ac_lo= ac_hi=
130762
 
fi
130763
 
 
130764
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130765
 
fi
130766
 
 
130767
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130768
 
# Binary search between lo and hi bounds.
130769
 
while test "x$ac_lo" != "x$ac_hi"; do
130770
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
130771
 
  cat >conftest.$ac_ext <<_ACEOF
130772
 
/* confdefs.h.  */
130773
 
_ACEOF
130774
 
cat confdefs.h >>conftest.$ac_ext
130775
 
cat >>conftest.$ac_ext <<_ACEOF
130776
 
/* end confdefs.h.  */
130777
 
$ac_includes_default
130778
 
int
130779
 
main ()
130780
 
{
130781
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
130782
 
test_array @<:@0@:>@ = 0
130783
 
 
130784
 
  ;
130785
 
  return 0;
130786
 
}
130787
 
_ACEOF
130788
 
rm -f conftest.$ac_objext
130789
 
if { (ac_try="$ac_compile"
130790
 
case "(($ac_try" in
130791
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130792
 
  *) ac_try_echo=$ac_try;;
130793
 
esac
130794
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130795
 
$as_echo "$ac_try_echo") >&5
130796
 
  (eval "$ac_compile") 2>conftest.er1
130797
 
  ac_status=$?
130798
 
  grep -v '^ *+' conftest.er1 >conftest.err
130799
 
  rm -f conftest.er1
130800
 
  cat conftest.err >&5
130801
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130802
 
  (exit $ac_status); } && {
130803
 
         test -z "$ac_c_werror_flag" ||
130804
 
         test ! -s conftest.err
130805
 
       } && test -s conftest.$ac_objext; then
130806
 
  ac_hi=$ac_mid
130807
 
else
130808
 
  $as_echo "$as_me: failed program was:" >&5
130809
 
sed 's/^/| /' conftest.$ac_ext >&5
130810
 
 
130811
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
130812
 
fi
130813
 
 
130814
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
130815
 
done
130816
 
case $ac_lo in
130817
 
?*) ac_cv_sizeof_long=$ac_lo;;
130818
 
'') if test "$ac_cv_type_long" = yes; then
130819
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
130820
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
130821
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
130822
 
See \`config.log' for more details." >&5
130823
 
$as_echo "$as_me: error: cannot compute sizeof (long)
130824
 
See \`config.log' for more details." >&2;}
130825
 
   { (exit 77); exit 77; }; }; }
130826
 
   else
130827
 
     ac_cv_sizeof_long=0
130828
 
   fi ;;
130829
 
esac
130830
 
else
130831
 
  cat >conftest.$ac_ext <<_ACEOF
130832
 
/* confdefs.h.  */
130833
 
_ACEOF
130834
 
cat confdefs.h >>conftest.$ac_ext
130835
 
cat >>conftest.$ac_ext <<_ACEOF
130836
 
/* end confdefs.h.  */
130837
 
$ac_includes_default
130838
 
static long int longval () { return (long int) (sizeof (long)); }
130839
 
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
130840
 
@%:@include <stdio.h>
130841
 
@%:@include <stdlib.h>
130842
 
int
130843
 
main ()
130844
 
{
130845
 
 
130846
 
  FILE *f = fopen ("conftest.val", "w");
130847
 
  if (! f)
130848
 
    return 1;
130849
 
  if (((long int) (sizeof (long))) < 0)
130850
 
    {
130851
 
      long int i = longval ();
130852
 
      if (i != ((long int) (sizeof (long))))
130853
 
        return 1;
130854
 
      fprintf (f, "%ld", i);
130855
 
    }
130856
 
  else
130857
 
    {
130858
 
      unsigned long int i = ulongval ();
130859
 
      if (i != ((long int) (sizeof (long))))
130860
 
        return 1;
130861
 
      fprintf (f, "%lu", i);
130862
 
    }
130863
 
  /* Do not output a trailing newline, as this causes \r\n confusion
130864
 
     on some platforms.  */
130865
 
  return ferror (f) || fclose (f) != 0;
130866
 
 
130867
 
  ;
130868
 
  return 0;
130869
 
}
130870
 
_ACEOF
130871
 
rm -f conftest$ac_exeext
130872
 
if { (ac_try="$ac_link"
130873
 
case "(($ac_try" in
130874
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130875
 
  *) ac_try_echo=$ac_try;;
130876
 
esac
130877
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130878
 
$as_echo "$ac_try_echo") >&5
130879
 
  (eval "$ac_link") 2>&5
130880
 
  ac_status=$?
130881
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130882
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
130883
 
  { (case "(($ac_try" in
130884
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130885
 
  *) ac_try_echo=$ac_try;;
130886
 
esac
130887
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130888
 
$as_echo "$ac_try_echo") >&5
130889
 
  (eval "$ac_try") 2>&5
130890
 
  ac_status=$?
130891
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130892
 
  (exit $ac_status); }; }; then
130893
 
  ac_cv_sizeof_long=`cat conftest.val`
130894
 
else
130895
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
130896
 
$as_echo "$as_me: failed program was:" >&5
130897
 
sed 's/^/| /' conftest.$ac_ext >&5
130898
 
 
130899
 
( exit $ac_status )
130900
 
if test "$ac_cv_type_long" = yes; then
130901
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
130902
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
130903
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
130904
 
See \`config.log' for more details." >&5
130905
 
$as_echo "$as_me: error: cannot compute sizeof (long)
130906
 
See \`config.log' for more details." >&2;}
130907
 
   { (exit 77); exit 77; }; }; }
130908
 
   else
130909
 
     ac_cv_sizeof_long=0
130910
 
   fi
130911
 
fi
130912
 
rm -rf conftest.dSYM
130913
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
130914
 
fi
130915
 
rm -f conftest.val
130916
 
fi
130917
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
130918
 
$as_echo "$ac_cv_sizeof_long" >&6; }
130919
 
 
130920
 
 
130921
 
 
130922
 
cat >>confdefs.h <<_ACEOF
130923
 
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
130924
 
_ACEOF
130925
 
 
130926
 
 
130927
 
# The cast to long int works around a bug in the HP C Compiler
130928
 
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
130929
 
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
130930
 
# This bug is HP SR number 8606223364.
130931
 
{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
130932
 
$as_echo_n "checking size of long long... " >&6; }
130933
 
if test "${ac_cv_sizeof_long_long+set}" = set; then
130934
 
  $as_echo_n "(cached) " >&6
130935
 
else
130936
 
  if test "$cross_compiling" = yes; then
130937
 
  # Depending upon the size, compute the lo and hi bounds.
130938
 
cat >conftest.$ac_ext <<_ACEOF
130939
 
/* confdefs.h.  */
130940
 
_ACEOF
130941
 
cat confdefs.h >>conftest.$ac_ext
130942
 
cat >>conftest.$ac_ext <<_ACEOF
130943
 
/* end confdefs.h.  */
130944
 
$ac_includes_default
130945
 
int
130946
 
main ()
130947
 
{
130948
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= 0)@:>@;
130949
 
test_array @<:@0@:>@ = 0
130950
 
 
130951
 
  ;
130952
 
  return 0;
130953
 
}
130954
 
_ACEOF
130955
 
rm -f conftest.$ac_objext
130956
 
if { (ac_try="$ac_compile"
130957
 
case "(($ac_try" in
130958
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130959
 
  *) ac_try_echo=$ac_try;;
130960
 
esac
130961
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130962
 
$as_echo "$ac_try_echo") >&5
130963
 
  (eval "$ac_compile") 2>conftest.er1
130964
 
  ac_status=$?
130965
 
  grep -v '^ *+' conftest.er1 >conftest.err
130966
 
  rm -f conftest.er1
130967
 
  cat conftest.err >&5
130968
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130969
 
  (exit $ac_status); } && {
130970
 
         test -z "$ac_c_werror_flag" ||
130971
 
         test ! -s conftest.err
130972
 
       } && test -s conftest.$ac_objext; then
130973
 
  ac_lo=0 ac_mid=0
130974
 
  while :; do
130975
 
    cat >conftest.$ac_ext <<_ACEOF
130976
 
/* confdefs.h.  */
130977
 
_ACEOF
130978
 
cat confdefs.h >>conftest.$ac_ext
130979
 
cat >>conftest.$ac_ext <<_ACEOF
130980
 
/* end confdefs.h.  */
130981
 
$ac_includes_default
130982
 
int
130983
 
main ()
130984
 
{
130985
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
130986
 
test_array @<:@0@:>@ = 0
130987
 
 
130988
 
  ;
130989
 
  return 0;
130990
 
}
130991
 
_ACEOF
130992
 
rm -f conftest.$ac_objext
130993
 
if { (ac_try="$ac_compile"
130994
 
case "(($ac_try" in
130995
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
130996
 
  *) ac_try_echo=$ac_try;;
130997
 
esac
130998
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
130999
 
$as_echo "$ac_try_echo") >&5
131000
 
  (eval "$ac_compile") 2>conftest.er1
131001
 
  ac_status=$?
131002
 
  grep -v '^ *+' conftest.er1 >conftest.err
131003
 
  rm -f conftest.er1
131004
 
  cat conftest.err >&5
131005
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131006
 
  (exit $ac_status); } && {
131007
 
         test -z "$ac_c_werror_flag" ||
131008
 
         test ! -s conftest.err
131009
 
       } && test -s conftest.$ac_objext; then
131010
 
  ac_hi=$ac_mid; break
131011
 
else
131012
 
  $as_echo "$as_me: failed program was:" >&5
131013
 
sed 's/^/| /' conftest.$ac_ext >&5
131014
 
 
131015
 
        ac_lo=`expr $ac_mid + 1`
131016
 
                        if test $ac_lo -le $ac_mid; then
131017
 
                          ac_lo= ac_hi=
131018
 
                          break
131019
 
                        fi
131020
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
131021
 
fi
131022
 
 
131023
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
131024
 
  done
131025
 
else
131026
 
  $as_echo "$as_me: failed program was:" >&5
131027
 
sed 's/^/| /' conftest.$ac_ext >&5
131028
 
 
131029
 
        cat >conftest.$ac_ext <<_ACEOF
131030
 
/* confdefs.h.  */
131031
 
_ACEOF
131032
 
cat confdefs.h >>conftest.$ac_ext
131033
 
cat >>conftest.$ac_ext <<_ACEOF
131034
 
/* end confdefs.h.  */
131035
 
$ac_includes_default
131036
 
int
131037
 
main ()
131038
 
{
131039
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) < 0)@:>@;
131040
 
test_array @<:@0@:>@ = 0
131041
 
 
131042
 
  ;
131043
 
  return 0;
131044
 
}
131045
 
_ACEOF
131046
 
rm -f conftest.$ac_objext
131047
 
if { (ac_try="$ac_compile"
131048
 
case "(($ac_try" in
131049
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
131050
 
  *) ac_try_echo=$ac_try;;
131051
 
esac
131052
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
131053
 
$as_echo "$ac_try_echo") >&5
131054
 
  (eval "$ac_compile") 2>conftest.er1
131055
 
  ac_status=$?
131056
 
  grep -v '^ *+' conftest.er1 >conftest.err
131057
 
  rm -f conftest.er1
131058
 
  cat conftest.err >&5
131059
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131060
 
  (exit $ac_status); } && {
131061
 
         test -z "$ac_c_werror_flag" ||
131062
 
         test ! -s conftest.err
131063
 
       } && test -s conftest.$ac_objext; then
131064
 
  ac_hi=-1 ac_mid=-1
131065
 
  while :; do
131066
 
    cat >conftest.$ac_ext <<_ACEOF
131067
 
/* confdefs.h.  */
131068
 
_ACEOF
131069
 
cat confdefs.h >>conftest.$ac_ext
131070
 
cat >>conftest.$ac_ext <<_ACEOF
131071
 
/* end confdefs.h.  */
131072
 
$ac_includes_default
131073
 
int
131074
 
main ()
131075
 
{
131076
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)@:>@;
131077
 
test_array @<:@0@:>@ = 0
131078
 
 
131079
 
  ;
131080
 
  return 0;
131081
 
}
131082
 
_ACEOF
131083
 
rm -f conftest.$ac_objext
131084
 
if { (ac_try="$ac_compile"
131085
 
case "(($ac_try" in
131086
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
131087
 
  *) ac_try_echo=$ac_try;;
131088
 
esac
131089
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
131090
 
$as_echo "$ac_try_echo") >&5
131091
 
  (eval "$ac_compile") 2>conftest.er1
131092
 
  ac_status=$?
131093
 
  grep -v '^ *+' conftest.er1 >conftest.err
131094
 
  rm -f conftest.er1
131095
 
  cat conftest.err >&5
131096
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131097
 
  (exit $ac_status); } && {
131098
 
         test -z "$ac_c_werror_flag" ||
131099
 
         test ! -s conftest.err
131100
 
       } && test -s conftest.$ac_objext; then
131101
 
  ac_lo=$ac_mid; break
131102
 
else
131103
 
  $as_echo "$as_me: failed program was:" >&5
131104
 
sed 's/^/| /' conftest.$ac_ext >&5
131105
 
 
131106
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
131107
 
                        if test $ac_mid -le $ac_hi; then
131108
 
                          ac_lo= ac_hi=
131109
 
                          break
131110
 
                        fi
131111
 
                        ac_mid=`expr 2 '*' $ac_mid`
131112
 
fi
131113
 
 
131114
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
131115
 
  done
131116
 
else
131117
 
  $as_echo "$as_me: failed program was:" >&5
131118
 
sed 's/^/| /' conftest.$ac_ext >&5
131119
 
 
131120
 
        ac_lo= ac_hi=
131121
 
fi
131122
 
 
131123
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
131124
 
fi
131125
 
 
131126
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
131127
 
# Binary search between lo and hi bounds.
131128
 
while test "x$ac_lo" != "x$ac_hi"; do
131129
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
131130
 
  cat >conftest.$ac_ext <<_ACEOF
131131
 
/* confdefs.h.  */
131132
 
_ACEOF
131133
 
cat confdefs.h >>conftest.$ac_ext
131134
 
cat >>conftest.$ac_ext <<_ACEOF
131135
 
/* end confdefs.h.  */
131136
 
$ac_includes_default
131137
 
int
131138
 
main ()
131139
 
{
131140
 
static int test_array @<:@1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)@:>@;
131141
 
test_array @<:@0@:>@ = 0
131142
 
 
131143
 
  ;
131144
 
  return 0;
131145
 
}
131146
 
_ACEOF
131147
 
rm -f conftest.$ac_objext
131148
 
if { (ac_try="$ac_compile"
131149
 
case "(($ac_try" in
131150
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
131151
 
  *) ac_try_echo=$ac_try;;
131152
 
esac
131153
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
131154
 
$as_echo "$ac_try_echo") >&5
131155
 
  (eval "$ac_compile") 2>conftest.er1
131156
 
  ac_status=$?
131157
 
  grep -v '^ *+' conftest.er1 >conftest.err
131158
 
  rm -f conftest.er1
131159
 
  cat conftest.err >&5
131160
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131161
 
  (exit $ac_status); } && {
131162
 
         test -z "$ac_c_werror_flag" ||
131163
 
         test ! -s conftest.err
131164
 
       } && test -s conftest.$ac_objext; then
131165
 
  ac_hi=$ac_mid
131166
 
else
131167
 
  $as_echo "$as_me: failed program was:" >&5
131168
 
sed 's/^/| /' conftest.$ac_ext >&5
131169
 
 
131170
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
131171
 
fi
131172
 
 
131173
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
131174
 
done
131175
 
case $ac_lo in
131176
 
?*) ac_cv_sizeof_long_long=$ac_lo;;
131177
 
'') if test "$ac_cv_type_long_long" = yes; then
131178
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
131179
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
131180
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
131181
 
See \`config.log' for more details." >&5
131182
 
$as_echo "$as_me: error: cannot compute sizeof (long long)
131183
 
See \`config.log' for more details." >&2;}
131184
 
   { (exit 77); exit 77; }; }; }
131185
 
   else
131186
 
     ac_cv_sizeof_long_long=0
131187
 
   fi ;;
131188
 
esac
131189
 
else
131190
 
  cat >conftest.$ac_ext <<_ACEOF
131191
 
/* confdefs.h.  */
131192
 
_ACEOF
131193
 
cat confdefs.h >>conftest.$ac_ext
131194
 
cat >>conftest.$ac_ext <<_ACEOF
131195
 
/* end confdefs.h.  */
131196
 
$ac_includes_default
131197
 
static long int longval () { return (long int) (sizeof (long long)); }
131198
 
static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
131199
 
@%:@include <stdio.h>
131200
 
@%:@include <stdlib.h>
131201
 
int
131202
 
main ()
131203
 
{
131204
 
 
131205
 
  FILE *f = fopen ("conftest.val", "w");
131206
 
  if (! f)
131207
 
    return 1;
131208
 
  if (((long int) (sizeof (long long))) < 0)
131209
 
    {
131210
 
      long int i = longval ();
131211
 
      if (i != ((long int) (sizeof (long long))))
131212
 
        return 1;
131213
 
      fprintf (f, "%ld", i);
131214
 
    }
131215
 
  else
131216
 
    {
131217
 
      unsigned long int i = ulongval ();
131218
 
      if (i != ((long int) (sizeof (long long))))
131219
 
        return 1;
131220
 
      fprintf (f, "%lu", i);
131221
 
    }
131222
 
  /* Do not output a trailing newline, as this causes \r\n confusion
131223
 
     on some platforms.  */
131224
 
  return ferror (f) || fclose (f) != 0;
131225
 
 
131226
 
  ;
131227
 
  return 0;
131228
 
}
131229
 
_ACEOF
131230
 
rm -f conftest$ac_exeext
131231
 
if { (ac_try="$ac_link"
131232
 
case "(($ac_try" in
131233
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
131234
 
  *) ac_try_echo=$ac_try;;
131235
 
esac
131236
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
131237
 
$as_echo "$ac_try_echo") >&5
131238
 
  (eval "$ac_link") 2>&5
131239
 
  ac_status=$?
131240
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131241
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
131242
 
  { (case "(($ac_try" in
131243
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
131244
 
  *) ac_try_echo=$ac_try;;
131245
 
esac
131246
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
131247
 
$as_echo "$ac_try_echo") >&5
131248
 
  (eval "$ac_try") 2>&5
131249
 
  ac_status=$?
131250
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131251
 
  (exit $ac_status); }; }; then
131252
 
  ac_cv_sizeof_long_long=`cat conftest.val`
131253
 
else
131254
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
131255
 
$as_echo "$as_me: failed program was:" >&5
131256
 
sed 's/^/| /' conftest.$ac_ext >&5
131257
 
 
131258
 
( exit $ac_status )
131259
 
if test "$ac_cv_type_long_long" = yes; then
131260
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
131261
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
131262
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
131263
 
See \`config.log' for more details." >&5
131264
 
$as_echo "$as_me: error: cannot compute sizeof (long long)
131265
 
See \`config.log' for more details." >&2;}
131266
 
   { (exit 77); exit 77; }; }; }
131267
 
   else
131268
 
     ac_cv_sizeof_long_long=0
131269
 
   fi
131270
 
fi
131271
 
rm -rf conftest.dSYM
131272
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
131273
 
fi
131274
 
rm -f conftest.val
131275
 
fi
131276
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
131277
 
$as_echo "$ac_cv_sizeof_long_long" >&6; }
131278
 
 
131279
 
 
131280
 
 
131281
 
cat >>confdefs.h <<_ACEOF
131282
 
@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
131283
 
_ACEOF
131284
 
 
131285
 
 
131286
 
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
131287
 
$as_echo_n "checking for size_t... " >&6; }
131288
 
if test "${ac_cv_type_size_t+set}" = set; then
131289
 
  $as_echo_n "(cached) " >&6
131290
 
else
131291
 
  ac_cv_type_size_t=no
131292
 
cat >conftest.$ac_ext <<_ACEOF
131293
 
/* confdefs.h.  */
131294
 
_ACEOF
131295
 
cat confdefs.h >>conftest.$ac_ext
131296
 
cat >>conftest.$ac_ext <<_ACEOF
131297
 
/* end confdefs.h.  */
131298
 
$ac_includes_default
131299
 
int
131300
 
main ()
131301
 
{
131302
 
if (sizeof (size_t))
131303
 
       return 0;
131304
 
  ;
131305
 
  return 0;
131306
 
}
131307
 
_ACEOF
131308
 
rm -f conftest.$ac_objext
131309
 
if { (ac_try="$ac_compile"
131310
 
case "(($ac_try" in
131311
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
131312
 
  *) ac_try_echo=$ac_try;;
131313
 
esac
131314
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
131315
 
$as_echo "$ac_try_echo") >&5
131316
 
  (eval "$ac_compile") 2>conftest.er1
131317
 
  ac_status=$?
131318
 
  grep -v '^ *+' conftest.er1 >conftest.err
131319
 
  rm -f conftest.er1
131320
 
  cat conftest.err >&5
131321
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131322
 
  (exit $ac_status); } && {
131323
 
         test -z "$ac_c_werror_flag" ||
131324
 
         test ! -s conftest.err
131325
 
       } && test -s conftest.$ac_objext; then
131326
 
  cat >conftest.$ac_ext <<_ACEOF
131327
 
/* confdefs.h.  */
131328
 
_ACEOF
131329
 
cat confdefs.h >>conftest.$ac_ext
131330
 
cat >>conftest.$ac_ext <<_ACEOF
131331
 
/* end confdefs.h.  */
131332
 
$ac_includes_default
131333
 
int
131334
 
main ()
131335
 
{
131336
 
if (sizeof ((size_t)))
131337
 
          return 0;
131338
 
  ;
131339
 
  return 0;
131340
 
}
131341
 
_ACEOF
131342
 
rm -f conftest.$ac_objext
131343
 
if { (ac_try="$ac_compile"
131344
 
case "(($ac_try" in
131345
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
131346
 
  *) ac_try_echo=$ac_try;;
131347
 
esac
131348
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
131349
 
$as_echo "$ac_try_echo") >&5
131350
 
  (eval "$ac_compile") 2>conftest.er1
131351
 
  ac_status=$?
131352
 
  grep -v '^ *+' conftest.er1 >conftest.err
131353
 
  rm -f conftest.er1
131354
 
  cat conftest.err >&5
131355
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131356
 
  (exit $ac_status); } && {
131357
 
         test -z "$ac_c_werror_flag" ||
131358
 
         test ! -s conftest.err
131359
 
       } && test -s conftest.$ac_objext; then
131360
 
  :
131361
 
else
131362
 
  $as_echo "$as_me: failed program was:" >&5
131363
 
sed 's/^/| /' conftest.$ac_ext >&5
131364
 
 
131365
 
        ac_cv_type_size_t=yes
131366
 
fi
131367
 
 
131368
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
131369
 
else
131370
 
  $as_echo "$as_me: failed program was:" >&5
131371
 
sed 's/^/| /' conftest.$ac_ext >&5
131372
 
 
131373
 
        
131374
 
fi
131375
 
 
131376
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
131377
 
fi
131378
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
131379
 
$as_echo "$ac_cv_type_size_t" >&6; }
131380
 
if test "x$ac_cv_type_size_t" = x""yes; then
131381
 
  :
131382
 
else
131383
 
  
131384
 
cat >>confdefs.h <<_ACEOF
131385
 
@%:@define size_t unsigned int
131386
 
_ACEOF
131387
 
 
131388
 
fi
131389
 
 
131390
 
{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
131391
 
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
131392
 
if test "${ac_cv_header_time+set}" = set; then
131393
 
  $as_echo_n "(cached) " >&6
131394
 
else
131395
 
  cat >conftest.$ac_ext <<_ACEOF
131396
 
/* confdefs.h.  */
131397
 
_ACEOF
131398
 
cat confdefs.h >>conftest.$ac_ext
131399
 
cat >>conftest.$ac_ext <<_ACEOF
131400
 
/* end confdefs.h.  */
131401
 
#include <sys/types.h>
131402
 
#include <sys/time.h>
131403
 
#include <time.h>
131404
 
 
131405
 
int
131406
 
main ()
131407
 
{
131408
 
if ((struct tm *) 0)
131409
 
return 0;
131410
 
  ;
131411
 
  return 0;
131412
 
}
131413
 
_ACEOF
131414
 
rm -f conftest.$ac_objext
131415
 
if { (ac_try="$ac_compile"
131416
 
case "(($ac_try" in
131417
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
131418
 
  *) ac_try_echo=$ac_try;;
131419
 
esac
131420
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
131421
 
$as_echo "$ac_try_echo") >&5
131422
 
  (eval "$ac_compile") 2>conftest.er1
131423
 
  ac_status=$?
131424
 
  grep -v '^ *+' conftest.er1 >conftest.err
131425
 
  rm -f conftest.er1
131426
 
  cat conftest.err >&5
131427
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131428
 
  (exit $ac_status); } && {
131429
 
         test -z "$ac_c_werror_flag" ||
131430
 
         test ! -s conftest.err
131431
 
       } && test -s conftest.$ac_objext; then
131432
 
  ac_cv_header_time=yes
131433
 
else
131434
 
  $as_echo "$as_me: failed program was:" >&5
131435
 
sed 's/^/| /' conftest.$ac_ext >&5
131436
 
 
131437
 
        ac_cv_header_time=no
131438
 
fi
131439
 
 
131440
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
131441
 
fi
131442
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
131443
 
$as_echo "$ac_cv_header_time" >&6; }
131444
 
if test $ac_cv_header_time = yes; then
131445
 
  
131446
 
cat >>confdefs.h <<\_ACEOF
131447
 
@%:@define TIME_WITH_SYS_TIME 1
131448
 
_ACEOF
131449
 
 
131450
 
fi
131451
 
 
131452
 
{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
131453
 
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
131454
 
if test "${ac_cv_type_uid_t+set}" = set; then
131455
 
  $as_echo_n "(cached) " >&6
131456
 
else
131457
 
  cat >conftest.$ac_ext <<_ACEOF
131458
 
/* confdefs.h.  */
131459
 
_ACEOF
131460
 
cat confdefs.h >>conftest.$ac_ext
131461
 
cat >>conftest.$ac_ext <<_ACEOF
131462
 
/* end confdefs.h.  */
131463
 
#include <sys/types.h>
131464
 
 
131465
 
_ACEOF
131466
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
131467
 
  $EGREP "uid_t" >/dev/null 2>&1; then
131468
 
  ac_cv_type_uid_t=yes
131469
 
else
131470
 
  ac_cv_type_uid_t=no
131471
 
fi
131472
 
rm -f conftest*
131473
 
 
131474
 
fi
131475
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
131476
 
$as_echo "$ac_cv_type_uid_t" >&6; }
131477
 
if test $ac_cv_type_uid_t = no; then
131478
 
  
131479
 
cat >>confdefs.h <<\_ACEOF
131480
 
@%:@define uid_t int
131481
 
_ACEOF
131482
 
 
131483
 
  
131484
 
cat >>confdefs.h <<\_ACEOF
131485
 
@%:@define gid_t int
131486
 
_ACEOF
131487
 
 
131488
 
fi
131489
 
 
131490
 
 
131491
 
 
131492
 
 
131493
 
 
131494
 
 
131495
 
# Standard XMLRPC list
131496
 
 
131497
 
 
131498
 
 
131499
 
 
131500
 
 
131501
 
 
131502
 
 
131503
 
 
131504
 
for ac_func in \
131505
 
 strtoul strtoull snprintf \
131506
 
 strstr strpbrk strerror\
131507
 
 memcpy memmove
131508
 
do
131509
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
131510
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
131511
 
$as_echo_n "checking for $ac_func... " >&6; }
131512
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
131513
 
  $as_echo_n "(cached) " >&6
131514
 
else
131515
 
  cat >conftest.$ac_ext <<_ACEOF
131516
 
/* confdefs.h.  */
131517
 
_ACEOF
131518
 
cat confdefs.h >>conftest.$ac_ext
131519
 
cat >>conftest.$ac_ext <<_ACEOF
131520
 
/* end confdefs.h.  */
131521
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
131522
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
131523
 
#define $ac_func innocuous_$ac_func
131524
 
 
131525
 
/* System header to define __stub macros and hopefully few prototypes,
131526
 
    which can conflict with char $ac_func (); below.
131527
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
131528
 
    <limits.h> exists even on freestanding compilers.  */
131529
 
 
131530
 
#ifdef __STDC__
131531
 
# include <limits.h>
131532
 
#else
131533
 
# include <assert.h>
131534
 
#endif
131535
 
 
131536
 
#undef $ac_func
131537
 
 
131538
 
/* Override any GCC internal prototype to avoid an error.
131539
 
   Use char because int might match the return type of a GCC
131540
 
   builtin and then its argument prototype would still apply.  */
131541
 
#ifdef __cplusplus
131542
 
extern "C"
131543
 
#endif
131544
 
char $ac_func ();
131545
 
/* The GNU C library defines this for functions which it implements
131546
 
    to always fail with ENOSYS.  Some functions are actually named
131547
 
    something starting with __ and the normal name is an alias.  */
131548
 
#if defined __stub_$ac_func || defined __stub___$ac_func
131549
 
choke me
131550
 
#endif
131551
 
 
131552
 
int
131553
 
main ()
131554
 
{
131555
 
return $ac_func ();
131556
 
  ;
131557
 
  return 0;
131558
 
}
131559
 
_ACEOF
131560
 
rm -f conftest.$ac_objext conftest$ac_exeext
131561
 
if { (ac_try="$ac_link"
131562
 
case "(($ac_try" in
131563
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
131564
 
  *) ac_try_echo=$ac_try;;
131565
 
esac
131566
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
131567
 
$as_echo "$ac_try_echo") >&5
131568
 
  (eval "$ac_link") 2>conftest.er1
131569
 
  ac_status=$?
131570
 
  grep -v '^ *+' conftest.er1 >conftest.err
131571
 
  rm -f conftest.er1
131572
 
  cat conftest.err >&5
131573
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
131574
 
  (exit $ac_status); } && {
131575
 
         test -z "$ac_c_werror_flag" ||
131576
 
         test ! -s conftest.err
131577
 
       } && test -s conftest$ac_exeext && {
131578
 
         test "$cross_compiling" = yes ||
131579
 
         $as_test_x conftest$ac_exeext
131580
 
       }; then
131581
 
  eval "$as_ac_var=yes"
131582
 
else
131583
 
  $as_echo "$as_me: failed program was:" >&5
131584
 
sed 's/^/| /' conftest.$ac_ext >&5
131585
 
 
131586
 
        eval "$as_ac_var=no"
131587
 
fi
131588
 
 
131589
 
rm -rf conftest.dSYM
131590
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
131591
 
      conftest$ac_exeext conftest.$ac_ext
131592
 
fi
131593
 
ac_res=`eval 'as_val=${'$as_ac_var'}
131594
 
                 $as_echo "$as_val"'`
131595
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
131596
 
$as_echo "$ac_res" >&6; }
131597
 
as_val=`eval 'as_val=${'$as_ac_var'}
131598
 
                 $as_echo "$as_val"'`
131599
 
   if test "x$as_val" = x""yes; then
131600
 
  cat >>confdefs.h <<_ACEOF
131601
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
131602
 
_ACEOF
131603
 
 
131604
 
fi
131605
 
done
131606
 
 
131607
 
 
131608
 
 
131609
 
 
131610
 
  
131611
 
  ext_builddir=ext/xmlrpc
131612
 
  ext_srcdir=$abs_srcdir/ext/xmlrpc
131613
 
 
131614
 
  ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
131615
 
 
131616
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
131617
 
    PHP_XMLRPC_SHARED=no
131618
 
    
131619
 
  
131620
 
  case ext/xmlrpc in
131621
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131622
 
  /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131623
 
  *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131624
 
  esac
131625
 
  
131626
 
  
131627
 
 
131628
 
  b_c_pre=$php_c_pre
131629
 
  b_cxx_pre=$php_cxx_pre
131630
 
  b_c_meta=$php_c_meta
131631
 
  b_cxx_meta=$php_cxx_meta
131632
 
  b_c_post=$php_c_post
131633
 
  b_cxx_post=$php_cxx_post
131634
 
  b_lo=$php_lo
131635
 
 
131636
 
 
131637
 
  old_IFS=$IFS
131638
 
  for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
131639
 
          libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
131640
 
          libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
131641
 
          libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
131642
 
          libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
131643
 
          libxmlrpc/xml_to_soap.c; do
131644
 
  
131645
 
      IFS=.
131646
 
      set $ac_src
131647
 
      ac_obj=$1
131648
 
      IFS=$old_IFS
131649
 
      
131650
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
131651
 
 
131652
 
      case $ac_src in
131653
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131654
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131655
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131656
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131657
 
      esac
131658
 
 
131659
 
    cat >>Makefile.objects<<EOF
131660
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131661
 
        $ac_comp
131662
 
EOF
131663
 
  done
131664
 
 
131665
 
 
131666
 
    EXT_STATIC="$EXT_STATIC xmlrpc"
131667
 
    if test "$ext_shared" != "nocli"; then
131668
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
131669
 
    fi
131670
 
  else
131671
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
131672
 
      PHP_XMLRPC_SHARED=yes
131673
 
      
131674
 
  case ext/xmlrpc in
131675
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131676
 
  /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131677
 
  *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131678
 
  esac
131679
 
  
131680
 
  
131681
 
 
131682
 
  b_c_pre=$shared_c_pre
131683
 
  b_cxx_pre=$shared_cxx_pre
131684
 
  b_c_meta=$shared_c_meta
131685
 
  b_cxx_meta=$shared_cxx_meta
131686
 
  b_c_post=$shared_c_post
131687
 
  b_cxx_post=$shared_cxx_post
131688
 
  b_lo=$shared_lo
131689
 
 
131690
 
 
131691
 
  old_IFS=$IFS
131692
 
  for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
131693
 
          libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
131694
 
          libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
131695
 
          libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
131696
 
          libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
131697
 
          libxmlrpc/xml_to_soap.c; do
131698
 
  
131699
 
      IFS=.
131700
 
      set $ac_src
131701
 
      ac_obj=$1
131702
 
      IFS=$old_IFS
131703
 
      
131704
 
      shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
131705
 
 
131706
 
      case $ac_src in
131707
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131708
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131709
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131710
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131711
 
      esac
131712
 
 
131713
 
    cat >>Makefile.objects<<EOF
131714
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131715
 
        $ac_comp
131716
 
EOF
131717
 
  done
131718
 
 
131719
 
      case $host_alias in
131720
 
        *netware*)
131721
 
          
131722
 
  install_modules="install-modules"
131723
 
 
131724
 
  case $host_alias in
131725
 
    *aix*)
131726
 
      suffix=so
131727
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlrpc.so '$ext_builddir'/phpxmlrpc.so'
131728
 
      ;;
131729
 
    *netware*)
131730
 
      suffix=nlm
131731
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(XMLRPC_SHARED_LIBADD)'
131732
 
      ;;
131733
 
    *)
131734
 
      suffix=la
131735
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD)'
131736
 
      ;;
131737
 
  esac
131738
 
 
131739
 
  if test "x" = "xyes"; then
131740
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
131741
 
  else
131742
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
131743
 
  fi
131744
 
  
131745
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
131746
 
 
131747
 
  cat >>Makefile.objects<<EOF
131748
 
\$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
131749
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
131750
 
 
131751
 
$ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
131752
 
        $link_cmd
131753
 
 
131754
 
EOF
131755
 
 
131756
 
          ;;
131757
 
        *)
131758
 
          
131759
 
  install_modules="install-modules"
131760
 
 
131761
 
  case $host_alias in
131762
 
    *aix*)
131763
 
      suffix=so
131764
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlrpc.so '$ext_builddir'/xmlrpc.so'
131765
 
      ;;
131766
 
    *netware*)
131767
 
      suffix=nlm
131768
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(RPC_SHARED_LIBADD)'
131769
 
      ;;
131770
 
    *)
131771
 
      suffix=la
131772
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD)'
131773
 
      ;;
131774
 
  esac
131775
 
 
131776
 
  if test "x" = "xyes"; then
131777
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
131778
 
  else
131779
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
131780
 
  fi
131781
 
  
131782
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
131783
 
 
131784
 
  cat >>Makefile.objects<<EOF
131785
 
\$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
131786
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
131787
 
 
131788
 
$ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
131789
 
        $link_cmd
131790
 
 
131791
 
EOF
131792
 
 
131793
 
          ;;
131794
 
      esac
131795
 
      
131796
 
cat >>confdefs.h <<_ACEOF
131797
 
@%:@define COMPILE_DL_XMLRPC 1
131798
 
_ACEOF
131799
 
 
131800
 
    fi
131801
 
  fi
131802
 
 
131803
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
131804
 
    PHP_XMLRPC_SHARED=no
131805
 
    case "$PHP_SAPI" in
131806
 
      cgi|embed)
131807
 
        
131808
 
  
131809
 
  case ext/xmlrpc in
131810
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131811
 
  /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131812
 
  *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131813
 
  esac
131814
 
  
131815
 
  
131816
 
 
131817
 
  b_c_pre=$php_c_pre
131818
 
  b_cxx_pre=$php_cxx_pre
131819
 
  b_c_meta=$php_c_meta
131820
 
  b_cxx_meta=$php_cxx_meta
131821
 
  b_c_post=$php_c_post
131822
 
  b_cxx_post=$php_cxx_post
131823
 
  b_lo=$php_lo
131824
 
 
131825
 
 
131826
 
  old_IFS=$IFS
131827
 
  for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
131828
 
          libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
131829
 
          libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
131830
 
          libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
131831
 
          libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
131832
 
          libxmlrpc/xml_to_soap.c; do
131833
 
  
131834
 
      IFS=.
131835
 
      set $ac_src
131836
 
      ac_obj=$1
131837
 
      IFS=$old_IFS
131838
 
      
131839
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
131840
 
 
131841
 
      case $ac_src in
131842
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131843
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131844
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131845
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131846
 
      esac
131847
 
 
131848
 
    cat >>Makefile.objects<<EOF
131849
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131850
 
        $ac_comp
131851
 
EOF
131852
 
  done
131853
 
 
131854
 
 
131855
 
        EXT_STATIC="$EXT_STATIC xmlrpc"
131856
 
        ;;
131857
 
      *)
131858
 
        
131859
 
  
131860
 
  case ext/xmlrpc in
131861
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
131862
 
  /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
131863
 
  *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
131864
 
  esac
131865
 
  
131866
 
  
131867
 
 
131868
 
  b_c_pre=$php_c_pre
131869
 
  b_cxx_pre=$php_cxx_pre
131870
 
  b_c_meta=$php_c_meta
131871
 
  b_cxx_meta=$php_cxx_meta
131872
 
  b_c_post=$php_c_post
131873
 
  b_cxx_post=$php_cxx_post
131874
 
  b_lo=$php_lo
131875
 
 
131876
 
 
131877
 
  old_IFS=$IFS
131878
 
  for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
131879
 
          libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
131880
 
          libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
131881
 
          libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
131882
 
          libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
131883
 
          libxmlrpc/xml_to_soap.c; do
131884
 
  
131885
 
      IFS=.
131886
 
      set $ac_src
131887
 
      ac_obj=$1
131888
 
      IFS=$old_IFS
131889
 
      
131890
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
131891
 
 
131892
 
      case $ac_src in
131893
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131894
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131895
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
131896
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
131897
 
      esac
131898
 
 
131899
 
    cat >>Makefile.objects<<EOF
131900
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
131901
 
        $ac_comp
131902
 
EOF
131903
 
  done
131904
 
 
131905
 
 
131906
 
        ;;
131907
 
    esac
131908
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
131909
 
  fi
131910
 
  
131911
 
  
131912
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
131913
 
  
131914
 
 
131915
 
 
131916
 
  if test "$ext_builddir" = "."; then
131917
 
    PHP_PECL_EXTENSION=xmlrpc
131918
 
    
131919
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
131920
 
 
131921
 
  fi
131922
 
 
131923
 
  
131924
 
  
131925
 
    BUILD_DIR="$BUILD_DIR $ext_builddir/libxmlrpc"
131926
 
  
131927
 
 
131928
 
  XMLRPC_MODULE_TYPE=builtin
131929
 
 
131930
 
elif test "$PHP_XMLRPC" != "no"; then
131931
 
 
131932
 
  if test -r $PHP_XMLRPC/include/xmlrpc.h; then
131933
 
    XMLRPC_DIR=$PHP_XMLRPC/include
131934
 
  elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then
131935
 
    XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi
131936
 
  else
131937
 
    { $as_echo "$as_me:$LINENO: checking for XMLRPC-EPI in default path" >&5
131938
 
$as_echo_n "checking for XMLRPC-EPI in default path... " >&6; }
131939
 
    for i in /usr/local /usr; do
131940
 
      if test -r $i/include/xmlrpc.h; then
131941
 
        XMLRPC_DIR=$i/include
131942
 
        { $as_echo "$as_me:$LINENO: result: found in $i" >&5
131943
 
$as_echo "found in $i" >&6; }
131944
 
        break
131945
 
      fi
131946
 
    done
131947
 
  fi
131948
 
 
131949
 
  if test -z "$XMLRPC_DIR"; then
131950
 
    { $as_echo "$as_me:$LINENO: result: not found" >&5
131951
 
$as_echo "not found" >&6; }
131952
 
    { { $as_echo "$as_me:$LINENO: error: Please reinstall the XMLRPC-EPI distribution" >&5
131953
 
$as_echo "$as_me: error: Please reinstall the XMLRPC-EPI distribution" >&2;}
131954
 
   { (exit 1); exit 1; }; }
131955
 
  fi
131956
 
 
131957
 
  
131958
 
  if test "$XMLRPC_DIR" != "/usr/include"; then
131959
 
    
131960
 
  if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then
131961
 
    ai_p=$XMLRPC_DIR
131962
 
  else
131963
 
    
131964
 
    ep_dir="`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
131965
 
    
131966
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
131967
 
    ai_p="$ep_realdir/`basename \"$XMLRPC_DIR\"`"
131968
 
  fi
131969
 
 
131970
 
    
131971
 
  
131972
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
131973
 
  
131974
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
131975
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
131976
 
    eval "INCLUDEPATH$unique=set"
131977
 
    
131978
 
      if test ""; then
131979
 
        INCLUDES="-I$ai_p $INCLUDES"
131980
 
      else
131981
 
        INCLUDES="$INCLUDES -I$ai_p"
131982
 
      fi
131983
 
    
131984
 
  fi
131985
 
 
131986
 
  fi
131987
 
 
131988
 
  
131989
 
 
131990
 
  if test "$ext_shared" = "yes"; then
131991
 
    XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD"
131992
 
    if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
131993
 
      
131994
 
  if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
131995
 
    
131996
 
  if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
131997
 
    ai_p=$XMLRPC_DIR/$PHP_LIBDIR
131998
 
  else
131999
 
    
132000
 
    ep_dir="`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
132001
 
    
132002
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
132003
 
    ai_p="$ep_realdir/`basename \"$XMLRPC_DIR/$PHP_LIBDIR\"`"
132004
 
  fi
132005
 
 
132006
 
    
132007
 
      if test "$ext_shared" = "yes"; then
132008
 
        XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
132009
 
        test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
132010
 
      else
132011
 
        
132012
 
  
132013
 
  
132014
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
132015
 
  
132016
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
132017
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
132018
 
    eval "LIBPATH$unique=set"
132019
 
    
132020
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
132021
 
    LDFLAGS="$LDFLAGS -L$ai_p"
132022
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
132023
 
  
132024
 
  fi
132025
 
 
132026
 
 
132027
 
      fi
132028
 
    
132029
 
  fi
132030
 
 
132031
 
    fi
132032
 
  else
132033
 
    
132034
 
 
132035
 
  if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
132036
 
    
132037
 
  if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
132038
 
    
132039
 
  if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
132040
 
    ai_p=$XMLRPC_DIR/$PHP_LIBDIR
132041
 
  else
132042
 
    
132043
 
    ep_dir="`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
132044
 
    
132045
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
132046
 
    ai_p="$ep_realdir/`basename \"$XMLRPC_DIR/$PHP_LIBDIR\"`"
132047
 
  fi
132048
 
 
132049
 
    
132050
 
      
132051
 
  
132052
 
  
132053
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
132054
 
  
132055
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
132056
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
132057
 
    eval "LIBPATH$unique=set"
132058
 
    
132059
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
132060
 
    LDFLAGS="$LDFLAGS -L$ai_p"
132061
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
132062
 
  
132063
 
  fi
132064
 
 
132065
 
 
132066
 
    
132067
 
  fi
132068
 
 
132069
 
  fi
132070
 
  
132071
 
  
132072
 
  case xmlrpc in
132073
 
  c|c_r|pthread*) ;;
132074
 
  *) 
132075
 
      LIBS="-lxmlrpc $LIBS" 
132076
 
   ;;
132077
 
  esac
132078
 
 
132079
 
 
132080
 
 
132081
 
 
132082
 
  fi
132083
 
 
132084
 
 
132085
 
  
132086
 
  ext_builddir=ext/xmlrpc
132087
 
  ext_srcdir=$abs_srcdir/ext/xmlrpc
132088
 
 
132089
 
  ac_extra=
132090
 
 
132091
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
132092
 
    PHP_XMLRPC_SHARED=no
132093
 
    
132094
 
  
132095
 
  case ext/xmlrpc in
132096
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132097
 
  /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132098
 
  *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132099
 
  esac
132100
 
  
132101
 
  
132102
 
 
132103
 
  b_c_pre=$php_c_pre
132104
 
  b_cxx_pre=$php_cxx_pre
132105
 
  b_c_meta=$php_c_meta
132106
 
  b_cxx_meta=$php_cxx_meta
132107
 
  b_c_post=$php_c_post
132108
 
  b_cxx_post=$php_cxx_post
132109
 
  b_lo=$php_lo
132110
 
 
132111
 
 
132112
 
  old_IFS=$IFS
132113
 
  for ac_src in xmlrpc-epi-php.c; do
132114
 
  
132115
 
      IFS=.
132116
 
      set $ac_src
132117
 
      ac_obj=$1
132118
 
      IFS=$old_IFS
132119
 
      
132120
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
132121
 
 
132122
 
      case $ac_src in
132123
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132124
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132125
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132126
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132127
 
      esac
132128
 
 
132129
 
    cat >>Makefile.objects<<EOF
132130
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132131
 
        $ac_comp
132132
 
EOF
132133
 
  done
132134
 
 
132135
 
 
132136
 
    EXT_STATIC="$EXT_STATIC xmlrpc"
132137
 
    if test "$ext_shared" != "nocli"; then
132138
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
132139
 
    fi
132140
 
  else
132141
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
132142
 
      PHP_XMLRPC_SHARED=yes
132143
 
      
132144
 
  case ext/xmlrpc in
132145
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132146
 
  /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132147
 
  *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132148
 
  esac
132149
 
  
132150
 
  
132151
 
 
132152
 
  b_c_pre=$shared_c_pre
132153
 
  b_cxx_pre=$shared_cxx_pre
132154
 
  b_c_meta=$shared_c_meta
132155
 
  b_cxx_meta=$shared_cxx_meta
132156
 
  b_c_post=$shared_c_post
132157
 
  b_cxx_post=$shared_cxx_post
132158
 
  b_lo=$shared_lo
132159
 
 
132160
 
 
132161
 
  old_IFS=$IFS
132162
 
  for ac_src in xmlrpc-epi-php.c; do
132163
 
  
132164
 
      IFS=.
132165
 
      set $ac_src
132166
 
      ac_obj=$1
132167
 
      IFS=$old_IFS
132168
 
      
132169
 
      shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
132170
 
 
132171
 
      case $ac_src in
132172
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132173
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132174
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132175
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132176
 
      esac
132177
 
 
132178
 
    cat >>Makefile.objects<<EOF
132179
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132180
 
        $ac_comp
132181
 
EOF
132182
 
  done
132183
 
 
132184
 
      case $host_alias in
132185
 
        *netware*)
132186
 
          
132187
 
  install_modules="install-modules"
132188
 
 
132189
 
  case $host_alias in
132190
 
    *aix*)
132191
 
      suffix=so
132192
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlrpc.so '$ext_builddir'/phpxmlrpc.so'
132193
 
      ;;
132194
 
    *netware*)
132195
 
      suffix=nlm
132196
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(XMLRPC_SHARED_LIBADD)'
132197
 
      ;;
132198
 
    *)
132199
 
      suffix=la
132200
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(PHPXMLRPC_SHARED_LIBADD)'
132201
 
      ;;
132202
 
  esac
132203
 
 
132204
 
  if test "x" = "xyes"; then
132205
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
132206
 
  else
132207
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
132208
 
  fi
132209
 
  
132210
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
132211
 
 
132212
 
  cat >>Makefile.objects<<EOF
132213
 
\$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
132214
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
132215
 
 
132216
 
$ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
132217
 
        $link_cmd
132218
 
 
132219
 
EOF
132220
 
 
132221
 
          ;;
132222
 
        *)
132223
 
          
132224
 
  install_modules="install-modules"
132225
 
 
132226
 
  case $host_alias in
132227
 
    *aix*)
132228
 
      suffix=so
132229
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlrpc.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlrpc.so '$ext_builddir'/xmlrpc.so'
132230
 
      ;;
132231
 
    *netware*)
132232
 
      suffix=nlm
132233
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) -L$(top_builddir)/netware -lphp5lib $(RPC_SHARED_LIBADD)'
132234
 
      ;;
132235
 
    *)
132236
 
      suffix=la
132237
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlrpc) $(XMLRPC_SHARED_LIBADD)'
132238
 
      ;;
132239
 
  esac
132240
 
 
132241
 
  if test "x" = "xyes"; then
132242
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
132243
 
  else
132244
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
132245
 
  fi
132246
 
  
132247
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
132248
 
 
132249
 
  cat >>Makefile.objects<<EOF
132250
 
\$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
132251
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
132252
 
 
132253
 
$ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
132254
 
        $link_cmd
132255
 
 
132256
 
EOF
132257
 
 
132258
 
          ;;
132259
 
      esac
132260
 
      
132261
 
cat >>confdefs.h <<_ACEOF
132262
 
@%:@define COMPILE_DL_XMLRPC 1
132263
 
_ACEOF
132264
 
 
132265
 
    fi
132266
 
  fi
132267
 
 
132268
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
132269
 
    PHP_XMLRPC_SHARED=no
132270
 
    case "$PHP_SAPI" in
132271
 
      cgi|embed)
132272
 
        
132273
 
  
132274
 
  case ext/xmlrpc in
132275
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132276
 
  /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132277
 
  *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132278
 
  esac
132279
 
  
132280
 
  
132281
 
 
132282
 
  b_c_pre=$php_c_pre
132283
 
  b_cxx_pre=$php_cxx_pre
132284
 
  b_c_meta=$php_c_meta
132285
 
  b_cxx_meta=$php_cxx_meta
132286
 
  b_c_post=$php_c_post
132287
 
  b_cxx_post=$php_cxx_post
132288
 
  b_lo=$php_lo
132289
 
 
132290
 
 
132291
 
  old_IFS=$IFS
132292
 
  for ac_src in xmlrpc-epi-php.c; do
132293
 
  
132294
 
      IFS=.
132295
 
      set $ac_src
132296
 
      ac_obj=$1
132297
 
      IFS=$old_IFS
132298
 
      
132299
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
132300
 
 
132301
 
      case $ac_src in
132302
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132303
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132304
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132305
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132306
 
      esac
132307
 
 
132308
 
    cat >>Makefile.objects<<EOF
132309
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132310
 
        $ac_comp
132311
 
EOF
132312
 
  done
132313
 
 
132314
 
 
132315
 
        EXT_STATIC="$EXT_STATIC xmlrpc"
132316
 
        ;;
132317
 
      *)
132318
 
        
132319
 
  
132320
 
  case ext/xmlrpc in
132321
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132322
 
  /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132323
 
  *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132324
 
  esac
132325
 
  
132326
 
  
132327
 
 
132328
 
  b_c_pre=$php_c_pre
132329
 
  b_cxx_pre=$php_cxx_pre
132330
 
  b_c_meta=$php_c_meta
132331
 
  b_cxx_meta=$php_cxx_meta
132332
 
  b_c_post=$php_c_post
132333
 
  b_cxx_post=$php_cxx_post
132334
 
  b_lo=$php_lo
132335
 
 
132336
 
 
132337
 
  old_IFS=$IFS
132338
 
  for ac_src in xmlrpc-epi-php.c; do
132339
 
  
132340
 
      IFS=.
132341
 
      set $ac_src
132342
 
      ac_obj=$1
132343
 
      IFS=$old_IFS
132344
 
      
132345
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
132346
 
 
132347
 
      case $ac_src in
132348
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132349
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132350
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132351
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132352
 
      esac
132353
 
 
132354
 
    cat >>Makefile.objects<<EOF
132355
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132356
 
        $ac_comp
132357
 
EOF
132358
 
  done
132359
 
 
132360
 
 
132361
 
        ;;
132362
 
    esac
132363
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
132364
 
  fi
132365
 
  
132366
 
  
132367
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
132368
 
  
132369
 
 
132370
 
 
132371
 
  if test "$ext_builddir" = "."; then
132372
 
    PHP_PECL_EXTENSION=xmlrpc
132373
 
    
132374
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
132375
 
 
132376
 
  fi
132377
 
 
132378
 
  XMLRPC_MODULE_TYPE=external
132379
 
fi
132380
 
 
132381
 
 
132382
 
 
132383
 
php_enable_xmlwriter=yes
132384
 
 
132385
 
{ $as_echo "$as_me:$LINENO: checking whether to enable XMLWriter support" >&5
132386
 
$as_echo_n "checking whether to enable XMLWriter support... " >&6; }
132387
 
@%:@ Check whether --enable-xmlwriter was given.
132388
 
if test "${enable_xmlwriter+set}" = set; then
132389
 
  enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval
132390
 
else
132391
 
  
132392
 
  PHP_XMLWRITER=yes
132393
 
  test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL
132394
 
 
132395
 
fi
132396
 
 
132397
 
 
132398
 
 
132399
 
ext_output="yes, shared"
132400
 
ext_shared=yes
132401
 
case $PHP_XMLWRITER in
132402
 
shared,*)
132403
 
  PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'`
132404
 
  ;;
132405
 
shared)
132406
 
  PHP_XMLWRITER=yes
132407
 
  ;;
132408
 
no)
132409
 
  ext_output=no
132410
 
  ext_shared=no
132411
 
  ;;
132412
 
*)
132413
 
  ext_output=yes
132414
 
  ext_shared=no
132415
 
  ;;
132416
 
esac
132417
 
 
132418
 
 
132419
 
 
132420
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
132421
 
$as_echo "$ext_output" >&6; }
132422
 
 
132423
 
 
132424
 
 
132425
 
 
132426
 
if test -z "$PHP_LIBXML_DIR"; then
132427
 
  
132428
 
php_with_libxml_dir=no
132429
 
 
132430
 
{ $as_echo "$as_me:$LINENO: checking libxml2 install dir" >&5
132431
 
$as_echo_n "checking libxml2 install dir... " >&6; }
132432
 
 
132433
 
@%:@ Check whether --with-libxml-dir was given.
132434
 
if test "${with_libxml_dir+set}" = set; then
132435
 
  withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
132436
 
else
132437
 
  
132438
 
  PHP_LIBXML_DIR=no
132439
 
  
132440
 
 
132441
 
fi
132442
 
 
132443
 
 
132444
 
ext_output=$PHP_LIBXML_DIR
132445
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
132446
 
$as_echo "$ext_output" >&6; }
132447
 
 
132448
 
 
132449
 
 
132450
 
fi
132451
 
 
132452
 
if test "$PHP_XMLWRITER" != "no"; then
132453
 
 
132454
 
  if test "$PHP_LIBXML" = "no"; then
132455
 
    { { $as_echo "$as_me:$LINENO: error: XMLWriter extension requires LIBXML extension, add --enable-libxml" >&5
132456
 
$as_echo "$as_me: error: XMLWriter extension requires LIBXML extension, add --enable-libxml" >&2;}
132457
 
   { (exit 1); exit 1; }; }
132458
 
  fi
132459
 
 
132460
 
  
132461
 
{ $as_echo "$as_me:$LINENO: checking for xml2-config path" >&5
132462
 
$as_echo_n "checking for xml2-config path... " >&6; }
132463
 
if test "${ac_cv_php_xml2_config_path+set}" = set; then
132464
 
  $as_echo_n "(cached) " >&6
132465
 
else
132466
 
  
132467
 
  for i in $PHP_LIBXML_DIR /usr/local /usr; do
132468
 
    if test -x "$i/bin/xml2-config"; then
132469
 
      ac_cv_php_xml2_config_path="$i/bin/xml2-config"
132470
 
      break
132471
 
    fi
132472
 
  done
132473
 
 
132474
 
fi
132475
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_php_xml2_config_path" >&5
132476
 
$as_echo "$ac_cv_php_xml2_config_path" >&6; }
132477
 
 
132478
 
  if test -x "$ac_cv_php_xml2_config_path"; then
132479
 
    XML2_CONFIG="$ac_cv_php_xml2_config_path"
132480
 
    libxml_full_version=`$XML2_CONFIG --version`
132481
 
    ac_IFS=$IFS
132482
 
    IFS="."
132483
 
    set $libxml_full_version
132484
 
    IFS=$ac_IFS
132485
 
    LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
132486
 
    if test "$LIBXML_VERSION" -ge "2006011"; then
132487
 
      LIBXML_LIBS=`$XML2_CONFIG --libs`
132488
 
      LIBXML_INCS=`$XML2_CONFIG --cflags`
132489
 
      
132490
 
  for ac_i in $LIBXML_LIBS; do
132491
 
    case $ac_i in
132492
 
    -pthread)
132493
 
      if test "$ext_shared" = "yes"; then
132494
 
        XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread"
132495
 
      else
132496
 
        
132497
 
  
132498
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
132499
 
  
132500
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
132501
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
132502
 
    eval "EXTRA_LDFLAGS$unique=set"
132503
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
132504
 
  fi
132505
 
 
132506
 
      fi
132507
 
    ;;
132508
 
    -l*)
132509
 
      ac_ii=`echo $ac_i|cut -c 3-`
132510
 
      
132511
 
  
132512
 
  case $ac_ii in
132513
 
  c|c_r|pthread*) ;;
132514
 
  *) 
132515
 
    if test "$ext_shared" = "yes"; then
132516
 
        XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii" 
132517
 
    else
132518
 
      
132519
 
  
132520
 
  case $ac_ii in
132521
 
  c|c_r|pthread*) ;;
132522
 
  *) 
132523
 
      LIBS="$LIBS -l$ac_ii" 
132524
 
   ;;
132525
 
  esac
132526
 
 
132527
 
 
132528
 
    fi
132529
 
   ;;
132530
 
  esac
132531
 
 
132532
 
 
132533
 
    ;;
132534
 
    -L*)
132535
 
      ac_ii=`echo $ac_i|cut -c 3-`
132536
 
      
132537
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
132538
 
    
132539
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
132540
 
    ai_p=$ac_ii
132541
 
  else
132542
 
    
132543
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
132544
 
    
132545
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
132546
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
132547
 
  fi
132548
 
 
132549
 
    
132550
 
      if test "$ext_shared" = "yes"; then
132551
 
        XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD"
132552
 
        test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD"
132553
 
      else
132554
 
        
132555
 
  
132556
 
  
132557
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
132558
 
  
132559
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
132560
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
132561
 
    eval "LIBPATH$unique=set"
132562
 
    
132563
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
132564
 
    LDFLAGS="$LDFLAGS -L$ai_p"
132565
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
132566
 
  
132567
 
  fi
132568
 
 
132569
 
 
132570
 
      fi
132571
 
    
132572
 
  fi
132573
 
 
132574
 
    ;;
132575
 
    esac
132576
 
  done
132577
 
 
132578
 
      
132579
 
  for ac_i in $LIBXML_INCS; do
132580
 
    case $ac_i in
132581
 
    -I*)
132582
 
      ac_ii=`echo $ac_i|cut -c 3-`
132583
 
      
132584
 
  if test "$ac_ii" != "/usr/include"; then
132585
 
    
132586
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
132587
 
    ai_p=$ac_ii
132588
 
  else
132589
 
    
132590
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
132591
 
    
132592
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
132593
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
132594
 
  fi
132595
 
 
132596
 
    
132597
 
  
132598
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
132599
 
  
132600
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
132601
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
132602
 
    eval "INCLUDEPATH$unique=set"
132603
 
    
132604
 
      if test ""; then
132605
 
        INCLUDES="-I$ai_p $INCLUDES"
132606
 
      else
132607
 
        INCLUDES="$INCLUDES -I$ai_p"
132608
 
      fi
132609
 
    
132610
 
  fi
132611
 
 
132612
 
  fi
132613
 
 
132614
 
    ;;
132615
 
    esac
132616
 
  done
132617
 
 
132618
 
 
132619
 
            { $as_echo "$as_me:$LINENO: checking whether libxml build works" >&5
132620
 
$as_echo_n "checking whether libxml build works... " >&6; }
132621
 
if test "${php_cv_libxml_build_works+set}" = set; then
132622
 
  $as_echo_n "(cached) " >&6
132623
 
else
132624
 
  
132625
 
        
132626
 
  old_LIBS=$LIBS
132627
 
  LIBS="
132628
 
          $XMLWRITER_SHARED_LIBADD
132629
 
         $LIBS"
132630
 
  if test "$cross_compiling" = yes; then
132631
 
  
132632
 
    LIBS=$old_LIBS
132633
 
  
132634
 
else
132635
 
  cat >conftest.$ac_ext <<_ACEOF
132636
 
/* confdefs.h.  */
132637
 
_ACEOF
132638
 
cat confdefs.h >>conftest.$ac_ext
132639
 
cat >>conftest.$ac_ext <<_ACEOF
132640
 
/* end confdefs.h.  */
132641
 
 
132642
 
    
132643
 
    char xmlInitParser();
132644
 
    int main() {
132645
 
      xmlInitParser();
132646
 
      return 0;
132647
 
    }
132648
 
  
132649
 
_ACEOF
132650
 
rm -f conftest$ac_exeext
132651
 
if { (ac_try="$ac_link"
132652
 
case "(($ac_try" in
132653
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
132654
 
  *) ac_try_echo=$ac_try;;
132655
 
esac
132656
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
132657
 
$as_echo "$ac_try_echo") >&5
132658
 
  (eval "$ac_link") 2>&5
132659
 
  ac_status=$?
132660
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
132661
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
132662
 
  { (case "(($ac_try" in
132663
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
132664
 
  *) ac_try_echo=$ac_try;;
132665
 
esac
132666
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
132667
 
$as_echo "$ac_try_echo") >&5
132668
 
  (eval "$ac_try") 2>&5
132669
 
  ac_status=$?
132670
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
132671
 
  (exit $ac_status); }; }; then
132672
 
  
132673
 
    LIBS=$old_LIBS
132674
 
    
132675
 
          php_cv_libxml_build_works=yes
132676
 
        
132677
 
  
132678
 
else
132679
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
132680
 
$as_echo "$as_me: failed program was:" >&5
132681
 
sed 's/^/| /' conftest.$ac_ext >&5
132682
 
 
132683
 
( exit $ac_status )
132684
 
 
132685
 
    LIBS=$old_LIBS
132686
 
    
132687
 
          { $as_echo "$as_me:$LINENO: result: no" >&5
132688
 
$as_echo "no" >&6; }
132689
 
          { { $as_echo "$as_me:$LINENO: error: build test failed.  Please check the config.log for details." >&5
132690
 
$as_echo "$as_me: error: build test failed.  Please check the config.log for details." >&2;}
132691
 
   { (exit 1); exit 1; }; }
132692
 
        
132693
 
  
132694
 
fi
132695
 
rm -rf conftest.dSYM
132696
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
132697
 
fi
132698
 
 
132699
 
 
132700
 
 
132701
 
      
132702
 
fi
132703
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_libxml_build_works" >&5
132704
 
$as_echo "$php_cv_libxml_build_works" >&6; }
132705
 
      if test "$php_cv_libxml_build_works" = "yes"; then
132706
 
        
132707
 
cat >>confdefs.h <<\_ACEOF
132708
 
@%:@define HAVE_LIBXML 1
132709
 
_ACEOF
132710
 
 
132711
 
      fi
132712
 
      
132713
 
    
132714
 
cat >>confdefs.h <<\_ACEOF
132715
 
@%:@define HAVE_XMLWRITER 1
132716
 
_ACEOF
132717
 
 
132718
 
    
132719
 
  ext_builddir=ext/xmlwriter
132720
 
  ext_srcdir=$abs_srcdir/ext/xmlwriter
132721
 
 
132722
 
  ac_extra=
132723
 
 
132724
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
132725
 
    PHP_XMLWRITER_SHARED=no
132726
 
    
132727
 
  
132728
 
  case ext/xmlwriter in
132729
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132730
 
  /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132731
 
  *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132732
 
  esac
132733
 
  
132734
 
  
132735
 
 
132736
 
  b_c_pre=$php_c_pre
132737
 
  b_cxx_pre=$php_cxx_pre
132738
 
  b_c_meta=$php_c_meta
132739
 
  b_cxx_meta=$php_cxx_meta
132740
 
  b_c_post=$php_c_post
132741
 
  b_cxx_post=$php_cxx_post
132742
 
  b_lo=$php_lo
132743
 
 
132744
 
 
132745
 
  old_IFS=$IFS
132746
 
  for ac_src in php_xmlwriter.c; do
132747
 
  
132748
 
      IFS=.
132749
 
      set $ac_src
132750
 
      ac_obj=$1
132751
 
      IFS=$old_IFS
132752
 
      
132753
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
132754
 
 
132755
 
      case $ac_src in
132756
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132757
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132758
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132759
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132760
 
      esac
132761
 
 
132762
 
    cat >>Makefile.objects<<EOF
132763
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132764
 
        $ac_comp
132765
 
EOF
132766
 
  done
132767
 
 
132768
 
 
132769
 
    EXT_STATIC="$EXT_STATIC xmlwriter"
132770
 
    if test "$ext_shared" != "nocli"; then
132771
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
132772
 
    fi
132773
 
  else
132774
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
132775
 
      PHP_XMLWRITER_SHARED=yes
132776
 
      
132777
 
  case ext/xmlwriter in
132778
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132779
 
  /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132780
 
  *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132781
 
  esac
132782
 
  
132783
 
  
132784
 
 
132785
 
  b_c_pre=$shared_c_pre
132786
 
  b_cxx_pre=$shared_cxx_pre
132787
 
  b_c_meta=$shared_c_meta
132788
 
  b_cxx_meta=$shared_cxx_meta
132789
 
  b_c_post=$shared_c_post
132790
 
  b_cxx_post=$shared_cxx_post
132791
 
  b_lo=$shared_lo
132792
 
 
132793
 
 
132794
 
  old_IFS=$IFS
132795
 
  for ac_src in php_xmlwriter.c; do
132796
 
  
132797
 
      IFS=.
132798
 
      set $ac_src
132799
 
      ac_obj=$1
132800
 
      IFS=$old_IFS
132801
 
      
132802
 
      shared_objects_xmlwriter="$shared_objects_xmlwriter $ac_bdir$ac_obj.lo"
132803
 
 
132804
 
      case $ac_src in
132805
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132806
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132807
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132808
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132809
 
      esac
132810
 
 
132811
 
    cat >>Makefile.objects<<EOF
132812
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132813
 
        $ac_comp
132814
 
EOF
132815
 
  done
132816
 
 
132817
 
      case $host_alias in
132818
 
        *netware*)
132819
 
          
132820
 
  install_modules="install-modules"
132821
 
 
132822
 
  case $host_alias in
132823
 
    *aix*)
132824
 
      suffix=so
132825
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxmlwriter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(PHPXMLWRITER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxmlwriter.so '$ext_builddir'/phpxmlwriter.so'
132826
 
      ;;
132827
 
    *netware*)
132828
 
      suffix=nlm
132829
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) -L$(top_builddir)/netware -lphp5lib $(XMLWRITER_SHARED_LIBADD)'
132830
 
      ;;
132831
 
    *)
132832
 
      suffix=la
132833
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(PHPXMLWRITER_SHARED_LIBADD)'
132834
 
      ;;
132835
 
  esac
132836
 
 
132837
 
  if test "x" = "xyes"; then
132838
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlwriter.$suffix"
132839
 
  else
132840
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlwriter.$suffix"
132841
 
  fi
132842
 
  
132843
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
132844
 
 
132845
 
  cat >>Makefile.objects<<EOF
132846
 
\$(phplibdir)/phpxmlwriter.$suffix: $ext_builddir/phpxmlwriter.$suffix
132847
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlwriter.$suffix \$(phplibdir)
132848
 
 
132849
 
$ext_builddir/phpxmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(PHPXMLWRITER_SHARED_DEPENDENCIES)
132850
 
        $link_cmd
132851
 
 
132852
 
EOF
132853
 
 
132854
 
          ;;
132855
 
        *)
132856
 
          
132857
 
  install_modules="install-modules"
132858
 
 
132859
 
  case $host_alias in
132860
 
    *aix*)
132861
 
      suffix=so
132862
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xmlwriter.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(XMLWRITER_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xmlwriter.so '$ext_builddir'/xmlwriter.so'
132863
 
      ;;
132864
 
    *netware*)
132865
 
      suffix=nlm
132866
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) -L$(top_builddir)/netware -lphp5lib $(WRITER_SHARED_LIBADD)'
132867
 
      ;;
132868
 
    *)
132869
 
      suffix=la
132870
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xmlwriter) $(XMLWRITER_SHARED_LIBADD)'
132871
 
      ;;
132872
 
  esac
132873
 
 
132874
 
  if test "x" = "xyes"; then
132875
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlwriter.$suffix"
132876
 
  else
132877
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlwriter.$suffix"
132878
 
  fi
132879
 
  
132880
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
132881
 
 
132882
 
  cat >>Makefile.objects<<EOF
132883
 
\$(phplibdir)/xmlwriter.$suffix: $ext_builddir/xmlwriter.$suffix
132884
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/xmlwriter.$suffix \$(phplibdir)
132885
 
 
132886
 
$ext_builddir/xmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(XMLWRITER_SHARED_DEPENDENCIES)
132887
 
        $link_cmd
132888
 
 
132889
 
EOF
132890
 
 
132891
 
          ;;
132892
 
      esac
132893
 
      
132894
 
cat >>confdefs.h <<_ACEOF
132895
 
@%:@define COMPILE_DL_XMLWRITER 1
132896
 
_ACEOF
132897
 
 
132898
 
    fi
132899
 
  fi
132900
 
 
132901
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
132902
 
    PHP_XMLWRITER_SHARED=no
132903
 
    case "$PHP_SAPI" in
132904
 
      cgi|embed)
132905
 
        
132906
 
  
132907
 
  case ext/xmlwriter in
132908
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132909
 
  /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132910
 
  *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132911
 
  esac
132912
 
  
132913
 
  
132914
 
 
132915
 
  b_c_pre=$php_c_pre
132916
 
  b_cxx_pre=$php_cxx_pre
132917
 
  b_c_meta=$php_c_meta
132918
 
  b_cxx_meta=$php_cxx_meta
132919
 
  b_c_post=$php_c_post
132920
 
  b_cxx_post=$php_cxx_post
132921
 
  b_lo=$php_lo
132922
 
 
132923
 
 
132924
 
  old_IFS=$IFS
132925
 
  for ac_src in php_xmlwriter.c; do
132926
 
  
132927
 
      IFS=.
132928
 
      set $ac_src
132929
 
      ac_obj=$1
132930
 
      IFS=$old_IFS
132931
 
      
132932
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
132933
 
 
132934
 
      case $ac_src in
132935
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132936
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132937
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132938
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132939
 
      esac
132940
 
 
132941
 
    cat >>Makefile.objects<<EOF
132942
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132943
 
        $ac_comp
132944
 
EOF
132945
 
  done
132946
 
 
132947
 
 
132948
 
        EXT_STATIC="$EXT_STATIC xmlwriter"
132949
 
        ;;
132950
 
      *)
132951
 
        
132952
 
  
132953
 
  case ext/xmlwriter in
132954
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
132955
 
  /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
132956
 
  *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
132957
 
  esac
132958
 
  
132959
 
  
132960
 
 
132961
 
  b_c_pre=$php_c_pre
132962
 
  b_cxx_pre=$php_cxx_pre
132963
 
  b_c_meta=$php_c_meta
132964
 
  b_cxx_meta=$php_cxx_meta
132965
 
  b_c_post=$php_c_post
132966
 
  b_cxx_post=$php_cxx_post
132967
 
  b_lo=$php_lo
132968
 
 
132969
 
 
132970
 
  old_IFS=$IFS
132971
 
  for ac_src in php_xmlwriter.c; do
132972
 
  
132973
 
      IFS=.
132974
 
      set $ac_src
132975
 
      ac_obj=$1
132976
 
      IFS=$old_IFS
132977
 
      
132978
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
132979
 
 
132980
 
      case $ac_src in
132981
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132982
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132983
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
132984
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
132985
 
      esac
132986
 
 
132987
 
    cat >>Makefile.objects<<EOF
132988
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
132989
 
        $ac_comp
132990
 
EOF
132991
 
  done
132992
 
 
132993
 
 
132994
 
        ;;
132995
 
    esac
132996
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
132997
 
  fi
132998
 
  
132999
 
  
133000
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
133001
 
  
133002
 
 
133003
 
 
133004
 
  if test "$ext_builddir" = "."; then
133005
 
    PHP_PECL_EXTENSION=xmlwriter
133006
 
    
133007
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
133008
 
 
133009
 
  fi
133010
 
 
133011
 
    
133012
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST XMLWRITER_SHARED_LIBADD"
133013
 
 
133014
 
  
133015
 
    else
133016
 
      { { $as_echo "$as_me:$LINENO: error: libxml2 version 2.6.11 or greater required." >&5
133017
 
$as_echo "$as_me: error: libxml2 version 2.6.11 or greater required." >&2;}
133018
 
   { (exit 1); exit 1; }; }
133019
 
    fi
133020
 
else 
133021
 
    { { $as_echo "$as_me:$LINENO: error: xml2-config not found. Please check your libxml2 installation." >&5
133022
 
$as_echo "$as_me: error: xml2-config not found. Please check your libxml2 installation." >&2;}
133023
 
   { (exit 1); exit 1; }; }
133024
 
  
133025
 
  fi
133026
 
 
133027
 
fi
133028
 
 
133029
 
 
133030
 
 
133031
 
php_with_xsl=no
133032
 
 
133033
 
{ $as_echo "$as_me:$LINENO: checking for XSL support" >&5
133034
 
$as_echo_n "checking for XSL support... " >&6; }
133035
 
 
133036
 
@%:@ Check whether --with-xsl was given.
133037
 
if test "${with_xsl+set}" = set; then
133038
 
  withval=$with_xsl; PHP_XSL=$withval
133039
 
else
133040
 
  
133041
 
  PHP_XSL=no
133042
 
  test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL
133043
 
 
133044
 
fi
133045
 
 
133046
 
 
133047
 
 
133048
 
ext_output="yes, shared"
133049
 
ext_shared=yes
133050
 
case $PHP_XSL in
133051
 
shared,*)
133052
 
  PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'`
133053
 
  ;;
133054
 
shared)
133055
 
  PHP_XSL=yes
133056
 
  ;;
133057
 
no)
133058
 
  ext_output=no
133059
 
  ext_shared=no
133060
 
  ;;
133061
 
*)
133062
 
  ext_output=yes
133063
 
  ext_shared=no
133064
 
  ;;
133065
 
esac
133066
 
 
133067
 
 
133068
 
 
133069
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
133070
 
$as_echo "$ext_output" >&6; }
133071
 
 
133072
 
 
133073
 
 
133074
 
 
133075
 
if test "$PHP_XSL" != "no"; then
133076
 
 
133077
 
  if test "$PHP_LIBXML" = "no"; then
133078
 
    { { $as_echo "$as_me:$LINENO: error: XSL extension requires LIBXML extension, add --enable-libxml" >&5
133079
 
$as_echo "$as_me: error: XSL extension requires LIBXML extension, add --enable-libxml" >&2;}
133080
 
   { (exit 1); exit 1; }; }
133081
 
  fi
133082
 
  
133083
 
  if test "$PHP_DOM" = "no"; then
133084
 
    { { $as_echo "$as_me:$LINENO: error: XSL extension requires DOM extension, add --enable-dom" >&5
133085
 
$as_echo "$as_me: error: XSL extension requires DOM extension, add --enable-dom" >&2;}
133086
 
   { (exit 1); exit 1; }; }
133087
 
  fi
133088
 
 
133089
 
  for i in $PHP_XSL /usr/local /usr; do
133090
 
    if test -x "$i/bin/xslt-config"; then
133091
 
      XSLT_CONFIG=$i/bin/xslt-config
133092
 
      break
133093
 
    fi
133094
 
  done
133095
 
 
133096
 
  if test -z "$XSLT_CONFIG"; then
133097
 
    { { $as_echo "$as_me:$LINENO: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" >&5
133098
 
$as_echo "$as_me: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" >&2;}
133099
 
   { (exit 1); exit 1; }; }
133100
 
  else
133101
 
    libxslt_full_version=`$XSLT_CONFIG --version`
133102
 
    ac_IFS=$IFS
133103
 
    IFS="."
133104
 
    set $libxslt_full_version
133105
 
    IFS=$ac_IFS
133106
 
    LIBXSLT_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
133107
 
    if test "$LIBXSLT_VERSION" -ge "1001000"; then
133108
 
      XSL_LIBS=`$XSLT_CONFIG --libs`
133109
 
      XSL_INCS=`$XSLT_CONFIG --cflags`
133110
 
      
133111
 
  for ac_i in $XSL_LIBS; do
133112
 
    case $ac_i in
133113
 
    -pthread)
133114
 
      if test "$ext_shared" = "yes"; then
133115
 
        XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread"
133116
 
      else
133117
 
        
133118
 
  
133119
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
133120
 
  
133121
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
133122
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
133123
 
    eval "EXTRA_LDFLAGS$unique=set"
133124
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
133125
 
  fi
133126
 
 
133127
 
      fi
133128
 
    ;;
133129
 
    -l*)
133130
 
      ac_ii=`echo $ac_i|cut -c 3-`
133131
 
      
133132
 
  
133133
 
  case $ac_ii in
133134
 
  c|c_r|pthread*) ;;
133135
 
  *) 
133136
 
    if test "$ext_shared" = "yes"; then
133137
 
        XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii" 
133138
 
    else
133139
 
      
133140
 
  
133141
 
  case $ac_ii in
133142
 
  c|c_r|pthread*) ;;
133143
 
  *) 
133144
 
      LIBS="$LIBS -l$ac_ii" 
133145
 
   ;;
133146
 
  esac
133147
 
 
133148
 
 
133149
 
    fi
133150
 
   ;;
133151
 
  esac
133152
 
 
133153
 
 
133154
 
    ;;
133155
 
    -L*)
133156
 
      ac_ii=`echo $ac_i|cut -c 3-`
133157
 
      
133158
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
133159
 
    
133160
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
133161
 
    ai_p=$ac_ii
133162
 
  else
133163
 
    
133164
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
133165
 
    
133166
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
133167
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
133168
 
  fi
133169
 
 
133170
 
    
133171
 
      if test "$ext_shared" = "yes"; then
133172
 
        XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
133173
 
        test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
133174
 
      else
133175
 
        
133176
 
  
133177
 
  
133178
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
133179
 
  
133180
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
133181
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
133182
 
    eval "LIBPATH$unique=set"
133183
 
    
133184
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
133185
 
    LDFLAGS="$LDFLAGS -L$ai_p"
133186
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
133187
 
  
133188
 
  fi
133189
 
 
133190
 
 
133191
 
      fi
133192
 
    
133193
 
  fi
133194
 
 
133195
 
    ;;
133196
 
    esac
133197
 
  done
133198
 
 
133199
 
      
133200
 
  for ac_i in $XSL_INCS; do
133201
 
    case $ac_i in
133202
 
    -I*)
133203
 
      ac_ii=`echo $ac_i|cut -c 3-`
133204
 
      
133205
 
  if test "$ac_ii" != "/usr/include"; then
133206
 
    
133207
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
133208
 
    ai_p=$ac_ii
133209
 
  else
133210
 
    
133211
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
133212
 
    
133213
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
133214
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
133215
 
  fi
133216
 
 
133217
 
    
133218
 
  
133219
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
133220
 
  
133221
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
133222
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
133223
 
    eval "INCLUDEPATH$unique=set"
133224
 
    
133225
 
      if test ""; then
133226
 
        INCLUDES="-I$ai_p $INCLUDES"
133227
 
      else
133228
 
        INCLUDES="$INCLUDES -I$ai_p"
133229
 
      fi
133230
 
    
133231
 
  fi
133232
 
 
133233
 
  fi
133234
 
 
133235
 
    ;;
133236
 
    esac
133237
 
  done
133238
 
 
133239
 
      
133240
 
      { $as_echo "$as_me:$LINENO: checking for EXSLT support" >&5
133241
 
$as_echo_n "checking for EXSLT support... " >&6; }
133242
 
      for i in $PHP_XSL /usr/local /usr; do
133243
 
        if test -r "$i/include/libexslt/exslt.h"; then
133244
 
          PHP_XSL_EXSL_DIR=$i
133245
 
          break
133246
 
        fi
133247
 
      done
133248
 
      if test -z "$PHP_XSL_EXSL_DIR"; then
133249
 
        { $as_echo "$as_me:$LINENO: result: not found" >&5
133250
 
$as_echo "not found" >&6; }
133251
 
      else 
133252
 
        { $as_echo "$as_me:$LINENO: result: found" >&5
133253
 
$as_echo "found" >&6; }
133254
 
        
133255
 
 
133256
 
  if test "$ext_shared" = "yes"; then
133257
 
    XSL_SHARED_LIBADD="-lexslt $XSL_SHARED_LIBADD"
133258
 
    if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
133259
 
      
133260
 
  if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
133261
 
    
133262
 
  if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
133263
 
    ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
133264
 
  else
133265
 
    
133266
 
    ep_dir="`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
133267
 
    
133268
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
133269
 
    ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/$PHP_LIBDIR\"`"
133270
 
  fi
133271
 
 
133272
 
    
133273
 
      if test "$ext_shared" = "yes"; then
133274
 
        XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
133275
 
        test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
133276
 
      else
133277
 
        
133278
 
  
133279
 
  
133280
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
133281
 
  
133282
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
133283
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
133284
 
    eval "LIBPATH$unique=set"
133285
 
    
133286
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
133287
 
    LDFLAGS="$LDFLAGS -L$ai_p"
133288
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
133289
 
  
133290
 
  fi
133291
 
 
133292
 
 
133293
 
      fi
133294
 
    
133295
 
  fi
133296
 
 
133297
 
    fi
133298
 
  else
133299
 
    
133300
 
 
133301
 
  if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
133302
 
    
133303
 
  if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
133304
 
    
133305
 
  if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
133306
 
    ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
133307
 
  else
133308
 
    
133309
 
    ep_dir="`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
133310
 
    
133311
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
133312
 
    ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/$PHP_LIBDIR\"`"
133313
 
  fi
133314
 
 
133315
 
    
133316
 
      
133317
 
  
133318
 
  
133319
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
133320
 
  
133321
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
133322
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
133323
 
    eval "LIBPATH$unique=set"
133324
 
    
133325
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
133326
 
    LDFLAGS="$LDFLAGS -L$ai_p"
133327
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
133328
 
  
133329
 
  fi
133330
 
 
133331
 
 
133332
 
    
133333
 
  fi
133334
 
 
133335
 
  fi
133336
 
  
133337
 
  
133338
 
  case exslt in
133339
 
  c|c_r|pthread*) ;;
133340
 
  *) 
133341
 
      LIBS="-lexslt $LIBS" 
133342
 
   ;;
133343
 
  esac
133344
 
 
133345
 
 
133346
 
 
133347
 
 
133348
 
  fi
133349
 
 
133350
 
 
133351
 
        
133352
 
  if test "$PHP_XSL_EXSL_DIR/include" != "/usr/include"; then
133353
 
    
133354
 
  if test -z "$PHP_XSL_EXSL_DIR/include" || echo "$PHP_XSL_EXSL_DIR/include" | grep '^/' >/dev/null ; then
133355
 
    ai_p=$PHP_XSL_EXSL_DIR/include
133356
 
  else
133357
 
    
133358
 
    ep_dir="`echo $PHP_XSL_EXSL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
133359
 
    
133360
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
133361
 
    ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/include\"`"
133362
 
  fi
133363
 
 
133364
 
    
133365
 
  
133366
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
133367
 
  
133368
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
133369
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
133370
 
    eval "INCLUDEPATH$unique=set"
133371
 
    
133372
 
      if test ""; then
133373
 
        INCLUDES="-I$ai_p $INCLUDES"
133374
 
      else
133375
 
        INCLUDES="$INCLUDES -I$ai_p"
133376
 
      fi
133377
 
    
133378
 
  fi
133379
 
 
133380
 
  fi
133381
 
 
133382
 
        
133383
 
cat >>confdefs.h <<\_ACEOF
133384
 
@%:@define HAVE_XSL_EXSLT 1
133385
 
_ACEOF
133386
 
 
133387
 
      fi
133388
 
    else
133389
 
      { { $as_echo "$as_me:$LINENO: error: libxslt version 1.1.0 or greater required." >&5
133390
 
$as_echo "$as_me: error: libxslt version 1.1.0 or greater required." >&2;}
133391
 
   { (exit 1); exit 1; }; }
133392
 
    fi
133393
 
    
133394
 
  
133395
 
  fi
133396
 
  
133397
 
  
133398
 
cat >>confdefs.h <<\_ACEOF
133399
 
@%:@define HAVE_XSL 1
133400
 
_ACEOF
133401
 
 
133402
 
  
133403
 
  ext_builddir=ext/xsl
133404
 
  ext_srcdir=$abs_srcdir/ext/xsl
133405
 
 
133406
 
  ac_extra=
133407
 
 
133408
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
133409
 
    PHP_XSL_SHARED=no
133410
 
    
133411
 
  
133412
 
  case ext/xsl in
133413
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
133414
 
  /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
133415
 
  *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
133416
 
  esac
133417
 
  
133418
 
  
133419
 
 
133420
 
  b_c_pre=$php_c_pre
133421
 
  b_cxx_pre=$php_cxx_pre
133422
 
  b_c_meta=$php_c_meta
133423
 
  b_cxx_meta=$php_cxx_meta
133424
 
  b_c_post=$php_c_post
133425
 
  b_cxx_post=$php_cxx_post
133426
 
  b_lo=$php_lo
133427
 
 
133428
 
 
133429
 
  old_IFS=$IFS
133430
 
  for ac_src in php_xsl.c xsltprocessor.c; do
133431
 
  
133432
 
      IFS=.
133433
 
      set $ac_src
133434
 
      ac_obj=$1
133435
 
      IFS=$old_IFS
133436
 
      
133437
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
133438
 
 
133439
 
      case $ac_src in
133440
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133441
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133442
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133443
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
133444
 
      esac
133445
 
 
133446
 
    cat >>Makefile.objects<<EOF
133447
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
133448
 
        $ac_comp
133449
 
EOF
133450
 
  done
133451
 
 
133452
 
 
133453
 
    EXT_STATIC="$EXT_STATIC xsl"
133454
 
    if test "$ext_shared" != "nocli"; then
133455
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
133456
 
    fi
133457
 
  else
133458
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
133459
 
      PHP_XSL_SHARED=yes
133460
 
      
133461
 
  case ext/xsl in
133462
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
133463
 
  /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
133464
 
  *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
133465
 
  esac
133466
 
  
133467
 
  
133468
 
 
133469
 
  b_c_pre=$shared_c_pre
133470
 
  b_cxx_pre=$shared_cxx_pre
133471
 
  b_c_meta=$shared_c_meta
133472
 
  b_cxx_meta=$shared_cxx_meta
133473
 
  b_c_post=$shared_c_post
133474
 
  b_cxx_post=$shared_cxx_post
133475
 
  b_lo=$shared_lo
133476
 
 
133477
 
 
133478
 
  old_IFS=$IFS
133479
 
  for ac_src in php_xsl.c xsltprocessor.c; do
133480
 
  
133481
 
      IFS=.
133482
 
      set $ac_src
133483
 
      ac_obj=$1
133484
 
      IFS=$old_IFS
133485
 
      
133486
 
      shared_objects_xsl="$shared_objects_xsl $ac_bdir$ac_obj.lo"
133487
 
 
133488
 
      case $ac_src in
133489
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133490
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133491
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133492
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
133493
 
      esac
133494
 
 
133495
 
    cat >>Makefile.objects<<EOF
133496
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
133497
 
        $ac_comp
133498
 
EOF
133499
 
  done
133500
 
 
133501
 
      case $host_alias in
133502
 
        *netware*)
133503
 
          
133504
 
  install_modules="install-modules"
133505
 
 
133506
 
  case $host_alias in
133507
 
    *aix*)
133508
 
      suffix=so
133509
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpxsl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(PHPXSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpxsl.so '$ext_builddir'/phpxsl.so'
133510
 
      ;;
133511
 
    *netware*)
133512
 
      suffix=nlm
133513
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) -L$(top_builddir)/netware -lphp5lib $(XSL_SHARED_LIBADD)'
133514
 
      ;;
133515
 
    *)
133516
 
      suffix=la
133517
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(PHPXSL_SHARED_LIBADD)'
133518
 
      ;;
133519
 
  esac
133520
 
 
133521
 
  if test "x" = "xyes"; then
133522
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxsl.$suffix"
133523
 
  else
133524
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxsl.$suffix"
133525
 
  fi
133526
 
  
133527
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
133528
 
 
133529
 
  cat >>Makefile.objects<<EOF
133530
 
\$(phplibdir)/phpxsl.$suffix: $ext_builddir/phpxsl.$suffix
133531
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpxsl.$suffix \$(phplibdir)
133532
 
 
133533
 
$ext_builddir/phpxsl.$suffix: \$(shared_objects_xsl) \$(PHPXSL_SHARED_DEPENDENCIES)
133534
 
        $link_cmd
133535
 
 
133536
 
EOF
133537
 
 
133538
 
          ;;
133539
 
        *)
133540
 
          
133541
 
  install_modules="install-modules"
133542
 
 
133543
 
  case $host_alias in
133544
 
    *aix*)
133545
 
      suffix=so
133546
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/xsl.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(XSL_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/xsl.so '$ext_builddir'/xsl.so'
133547
 
      ;;
133548
 
    *netware*)
133549
 
      suffix=nlm
133550
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
133551
 
      ;;
133552
 
    *)
133553
 
      suffix=la
133554
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_xsl) $(XSL_SHARED_LIBADD)'
133555
 
      ;;
133556
 
  esac
133557
 
 
133558
 
  if test "x" = "xyes"; then
133559
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xsl.$suffix"
133560
 
  else
133561
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/xsl.$suffix"
133562
 
  fi
133563
 
  
133564
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
133565
 
 
133566
 
  cat >>Makefile.objects<<EOF
133567
 
\$(phplibdir)/xsl.$suffix: $ext_builddir/xsl.$suffix
133568
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/xsl.$suffix \$(phplibdir)
133569
 
 
133570
 
$ext_builddir/xsl.$suffix: \$(shared_objects_xsl) \$(XSL_SHARED_DEPENDENCIES)
133571
 
        $link_cmd
133572
 
 
133573
 
EOF
133574
 
 
133575
 
          ;;
133576
 
      esac
133577
 
      
133578
 
cat >>confdefs.h <<_ACEOF
133579
 
@%:@define COMPILE_DL_XSL 1
133580
 
_ACEOF
133581
 
 
133582
 
    fi
133583
 
  fi
133584
 
 
133585
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
133586
 
    PHP_XSL_SHARED=no
133587
 
    case "$PHP_SAPI" in
133588
 
      cgi|embed)
133589
 
        
133590
 
  
133591
 
  case ext/xsl in
133592
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
133593
 
  /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
133594
 
  *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
133595
 
  esac
133596
 
  
133597
 
  
133598
 
 
133599
 
  b_c_pre=$php_c_pre
133600
 
  b_cxx_pre=$php_cxx_pre
133601
 
  b_c_meta=$php_c_meta
133602
 
  b_cxx_meta=$php_cxx_meta
133603
 
  b_c_post=$php_c_post
133604
 
  b_cxx_post=$php_cxx_post
133605
 
  b_lo=$php_lo
133606
 
 
133607
 
 
133608
 
  old_IFS=$IFS
133609
 
  for ac_src in php_xsl.c xsltprocessor.c; do
133610
 
  
133611
 
      IFS=.
133612
 
      set $ac_src
133613
 
      ac_obj=$1
133614
 
      IFS=$old_IFS
133615
 
      
133616
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
133617
 
 
133618
 
      case $ac_src in
133619
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133620
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133621
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133622
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
133623
 
      esac
133624
 
 
133625
 
    cat >>Makefile.objects<<EOF
133626
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
133627
 
        $ac_comp
133628
 
EOF
133629
 
  done
133630
 
 
133631
 
 
133632
 
        EXT_STATIC="$EXT_STATIC xsl"
133633
 
        ;;
133634
 
      *)
133635
 
        
133636
 
  
133637
 
  case ext/xsl in
133638
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
133639
 
  /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
133640
 
  *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
133641
 
  esac
133642
 
  
133643
 
  
133644
 
 
133645
 
  b_c_pre=$php_c_pre
133646
 
  b_cxx_pre=$php_cxx_pre
133647
 
  b_c_meta=$php_c_meta
133648
 
  b_cxx_meta=$php_cxx_meta
133649
 
  b_c_post=$php_c_post
133650
 
  b_cxx_post=$php_cxx_post
133651
 
  b_lo=$php_lo
133652
 
 
133653
 
 
133654
 
  old_IFS=$IFS
133655
 
  for ac_src in php_xsl.c xsltprocessor.c; do
133656
 
  
133657
 
      IFS=.
133658
 
      set $ac_src
133659
 
      ac_obj=$1
133660
 
      IFS=$old_IFS
133661
 
      
133662
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
133663
 
 
133664
 
      case $ac_src in
133665
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133666
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133667
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
133668
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
133669
 
      esac
133670
 
 
133671
 
    cat >>Makefile.objects<<EOF
133672
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
133673
 
        $ac_comp
133674
 
EOF
133675
 
  done
133676
 
 
133677
 
 
133678
 
        ;;
133679
 
    esac
133680
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
133681
 
  fi
133682
 
  
133683
 
  
133684
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
133685
 
  
133686
 
 
133687
 
 
133688
 
  if test "$ext_builddir" = "."; then
133689
 
    PHP_PECL_EXTENSION=xsl
133690
 
    
133691
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
133692
 
 
133693
 
  fi
133694
 
 
133695
 
  
133696
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST XSL_SHARED_LIBADD"
133697
 
 
133698
 
  
133699
 
  am_i_shared=$PHP_XSL_SHARED
133700
 
  is_it_shared=$PHP_LIBXML_SHARED
133701
 
  is_it_enabled=$PHP_LIBXML
133702
 
  if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
133703
 
    { { $as_echo "$as_me:$LINENO: error: 
133704
 
You've configured extension xsl to build statically, but it
133705
 
depends on extension libxml, which you've configured to build shared.
133706
 
You either need to build xsl shared or build libxml statically for the
133707
 
build to be successful.
133708
 
" >&5
133709
 
$as_echo "$as_me: error: 
133710
 
You've configured extension xsl to build statically, but it
133711
 
depends on extension libxml, which you've configured to build shared.
133712
 
You either need to build xsl shared or build libxml statically for the
133713
 
build to be successful.
133714
 
" >&2;}
133715
 
   { (exit 1); exit 1; }; }
133716
 
  fi
133717
 
  if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
133718
 
    { { $as_echo "$as_me:$LINENO: error: 
133719
 
You've configured extension xsl, which depends on extension libxml,
133720
 
but you've either not enabled libxml, or have disabled it.
133721
 
" >&5
133722
 
$as_echo "$as_me: error: 
133723
 
You've configured extension xsl, which depends on extension libxml,
133724
 
but you've either not enabled libxml, or have disabled it.
133725
 
" >&2;}
133726
 
   { (exit 1); exit 1; }; }
133727
 
  fi
133728
 
  
133729
 
fi
133730
 
 
133731
 
 
133732
 
 
133733
 
php_enable_zip=no
133734
 
 
133735
 
{ $as_echo "$as_me:$LINENO: checking for zip archive read/writesupport" >&5
133736
 
$as_echo_n "checking for zip archive read/writesupport... " >&6; }
133737
 
@%:@ Check whether --enable-zip was given.
133738
 
if test "${enable_zip+set}" = set; then
133739
 
  enableval=$enable_zip; PHP_ZIP=$enableval
133740
 
else
133741
 
  
133742
 
  PHP_ZIP=no
133743
 
  test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL
133744
 
 
133745
 
fi
133746
 
 
133747
 
 
133748
 
 
133749
 
ext_output="yes, shared"
133750
 
ext_shared=yes
133751
 
case $PHP_ZIP in
133752
 
shared,*)
133753
 
  PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'`
133754
 
  ;;
133755
 
shared)
133756
 
  PHP_ZIP=yes
133757
 
  ;;
133758
 
no)
133759
 
  ext_output=no
133760
 
  ext_shared=no
133761
 
  ;;
133762
 
*)
133763
 
  ext_output=yes
133764
 
  ext_shared=no
133765
 
  ;;
133766
 
esac
133767
 
 
133768
 
 
133769
 
 
133770
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
133771
 
$as_echo "$ext_output" >&6; }
133772
 
 
133773
 
 
133774
 
 
133775
 
 
133776
 
if test -z "$PHP_ZLIB_DIR"; then
133777
 
  
133778
 
php_with_zlib_dir=no
133779
 
 
133780
 
{ $as_echo "$as_me:$LINENO: checking for the location of libz" >&5
133781
 
$as_echo_n "checking for the location of libz... " >&6; }
133782
 
 
133783
 
@%:@ Check whether --with-zlib-dir was given.
133784
 
if test "${with_zlib_dir+set}" = set; then
133785
 
  withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
133786
 
else
133787
 
  
133788
 
  PHP_ZLIB_DIR=no
133789
 
  
133790
 
 
133791
 
fi
133792
 
 
133793
 
 
133794
 
ext_output=$PHP_ZLIB_DIR
133795
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
133796
 
$as_echo "$ext_output" >&6; }
133797
 
 
133798
 
 
133799
 
 
133800
 
fi
133801
 
 
133802
 
 
133803
 
php_with_pcre_dir=no
133804
 
 
133805
 
{ $as_echo "$as_me:$LINENO: checking pcre install prefix" >&5
133806
 
$as_echo_n "checking pcre install prefix... " >&6; }
133807
 
 
133808
 
@%:@ Check whether --with-pcre-dir was given.
133809
 
if test "${with_pcre_dir+set}" = set; then
133810
 
  withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
133811
 
else
133812
 
  
133813
 
  PHP_PCRE_DIR=no
133814
 
  
133815
 
 
133816
 
fi
133817
 
 
133818
 
 
133819
 
ext_output=$PHP_PCRE_DIR
133820
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
133821
 
$as_echo "$ext_output" >&6; }
133822
 
 
133823
 
 
133824
 
 
133825
 
 
133826
 
if test "$PHP_ZIP" != "no"; then
133827
 
 
133828
 
  if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
133829
 
    if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
133830
 
      PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
133831
 
      PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
133832
 
    elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
133833
 
      PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
133834
 
      PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
133835
 
    else
133836
 
      { { $as_echo "$as_me:$LINENO: error: Can not find zlib headers under \"$PHP_ZLIB_DIR\"" >&5
133837
 
$as_echo "$as_me: error: Can not find zlib headers under \"$PHP_ZLIB_DIR\"" >&2;}
133838
 
   { (exit 1); exit 1; }; }
133839
 
    fi
133840
 
  else
133841
 
    for i in /usr/local /usr; do
133842
 
      if test -f "$i/include/zlib/zlib.h"; then
133843
 
        PHP_ZLIB_DIR="$i"
133844
 
        PHP_ZLIB_INCDIR="$i/include/zlib"
133845
 
      elif test -f "$i/include/zlib.h"; then
133846
 
        PHP_ZLIB_DIR="$i"
133847
 
        PHP_ZLIB_INCDIR="$i/include"
133848
 
      fi
133849
 
    done
133850
 
  fi
133851
 
 
133852
 
    { $as_echo "$as_me:$LINENO: checking for the location of zlib" >&5
133853
 
$as_echo_n "checking for the location of zlib... " >&6; }
133854
 
  if test "$PHP_ZLIB_DIR" = "no"; then
133855
 
    { { $as_echo "$as_me:$LINENO: error: zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located" >&5
133856
 
$as_echo "$as_me: error: zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located" >&2;}
133857
 
   { (exit 1); exit 1; }; }
133858
 
  else
133859
 
    { $as_echo "$as_me:$LINENO: result: $PHP_ZLIB_DIR" >&5
133860
 
$as_echo "$PHP_ZLIB_DIR" >&6; }
133861
 
    
133862
 
 
133863
 
  if test "$ext_shared" = "yes"; then
133864
 
    ZIP_SHARED_LIBADD="-lz $ZIP_SHARED_LIBADD"
133865
 
    if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
133866
 
      
133867
 
  if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
133868
 
    
133869
 
  if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
133870
 
    ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
133871
 
  else
133872
 
    
133873
 
    ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
133874
 
    
133875
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
133876
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
133877
 
  fi
133878
 
 
133879
 
    
133880
 
      if test "$ext_shared" = "yes"; then
133881
 
        ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD"
133882
 
        test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD"
133883
 
      else
133884
 
        
133885
 
  
133886
 
  
133887
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
133888
 
  
133889
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
133890
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
133891
 
    eval "LIBPATH$unique=set"
133892
 
    
133893
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
133894
 
    LDFLAGS="$LDFLAGS -L$ai_p"
133895
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
133896
 
  
133897
 
  fi
133898
 
 
133899
 
 
133900
 
      fi
133901
 
    
133902
 
  fi
133903
 
 
133904
 
    fi
133905
 
  else
133906
 
    
133907
 
 
133908
 
  if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
133909
 
    
133910
 
  if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
133911
 
    
133912
 
  if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
133913
 
    ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
133914
 
  else
133915
 
    
133916
 
    ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
133917
 
    
133918
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
133919
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
133920
 
  fi
133921
 
 
133922
 
    
133923
 
      
133924
 
  
133925
 
  
133926
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
133927
 
  
133928
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
133929
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
133930
 
    eval "LIBPATH$unique=set"
133931
 
    
133932
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
133933
 
    LDFLAGS="$LDFLAGS -L$ai_p"
133934
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
133935
 
  
133936
 
  fi
133937
 
 
133938
 
 
133939
 
    
133940
 
  fi
133941
 
 
133942
 
  fi
133943
 
  
133944
 
  
133945
 
  case z in
133946
 
  c|c_r|pthread*) ;;
133947
 
  *) 
133948
 
      LIBS="-lz $LIBS" 
133949
 
   ;;
133950
 
  esac
133951
 
 
133952
 
 
133953
 
 
133954
 
 
133955
 
  fi
133956
 
 
133957
 
 
133958
 
    
133959
 
  if test "$PHP_ZLIB_INCDIR" != "/usr/include"; then
133960
 
    
133961
 
  if test -z "$PHP_ZLIB_INCDIR" || echo "$PHP_ZLIB_INCDIR" | grep '^/' >/dev/null ; then
133962
 
    ai_p=$PHP_ZLIB_INCDIR
133963
 
  else
133964
 
    
133965
 
    ep_dir="`echo $PHP_ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
133966
 
    
133967
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
133968
 
    ai_p="$ep_realdir/`basename \"$PHP_ZLIB_INCDIR\"`"
133969
 
  fi
133970
 
 
133971
 
    
133972
 
  
133973
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
133974
 
  
133975
 
  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
133976
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
133977
 
    eval "INCLUDEPATH$unique=set"
133978
 
    
133979
 
      if test ""; then
133980
 
        INCLUDES="-I$ai_p $INCLUDES"
133981
 
      else
133982
 
        INCLUDES="$INCLUDES -I$ai_p"
133983
 
      fi
133984
 
    
133985
 
  fi
133986
 
 
133987
 
  fi
133988
 
 
133989
 
  fi
133990
 
 
133991
 
    old_CPPFLAGS=$CPPFLAGS
133992
 
  CPPFLAGS=$INCLUDES
133993
 
  cat >conftest.$ac_ext <<_ACEOF
133994
 
/* confdefs.h.  */
133995
 
_ACEOF
133996
 
cat confdefs.h >>conftest.$ac_ext
133997
 
cat >>conftest.$ac_ext <<_ACEOF
133998
 
/* end confdefs.h.  */
133999
 
 
134000
 
#include <main/php_config.h>
134001
 
#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
134002
 
yes
134003
 
#endif
134004
 
  
134005
 
_ACEOF
134006
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
134007
 
  $EGREP "yes" >/dev/null 2>&1; then
134008
 
  
134009
 
    PHP_PCRE_REGEX=yes
134010
 
  
134011
 
else
134012
 
  
134013
 
    cat >conftest.$ac_ext <<_ACEOF
134014
 
/* confdefs.h.  */
134015
 
_ACEOF
134016
 
cat confdefs.h >>conftest.$ac_ext
134017
 
cat >>conftest.$ac_ext <<_ACEOF
134018
 
/* end confdefs.h.  */
134019
 
 
134020
 
#include <main/php_config.h>
134021
 
#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
134022
 
yes
134023
 
#endif
134024
 
    
134025
 
_ACEOF
134026
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
134027
 
  $EGREP "yes" >/dev/null 2>&1; then
134028
 
  
134029
 
      PHP_PCRE_REGEX=pecl
134030
 
    
134031
 
else
134032
 
  
134033
 
      PHP_PCRE_REGEX=no
134034
 
    
134035
 
fi
134036
 
rm -f conftest*
134037
 
 
134038
 
  
134039
 
fi
134040
 
rm -f conftest*
134041
 
 
134042
 
  CPPFLAGS=$old_CPPFLAGS
134043
 
 
134044
 
  PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \
134045
 
                         lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c  \
134046
 
                         lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \
134047
 
                         lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \
134048
 
                         lib/zip_source_free.c lib/zip_unchange_all.c lib/zip_delete.c \
134049
 
                         lib/zip_error_get_sys_type.c lib/zip_file_get_offset.c \
134050
 
                         lib/zip_get_name.c lib/zip_replace.c lib/zip_source_function.c \
134051
 
                         lib/zip_unchange.c lib/zip_dirent.c lib/zip_error_strerror.c \
134052
 
                         lib/zip_filerange_crc.c lib/zip_file_strerror.c lib/zip_get_num_files.c \
134053
 
                         lib/zip_get_archive_flag.c lib/zip_set_archive_flag.c \
134054
 
                         lib/zip_set_name.c lib/zip_source_zip.c lib/zip_unchange_data.c \
134055
 
                         lib/zip_entry_free.c lib/zip_error_to_str.c lib/zip_fopen.c \
134056
 
                         lib/zip_name_locate.c lib/zip_source_buffer.c lib/zip_stat.c \
134057
 
                         lib/zip_entry_new.c lib/zip_err_str.c lib/zip_fopen_index.c \
134058
 
                         lib/zip_get_archive_comment.c lib/zip_get_file_comment.c \
134059
 
                         lib/zip_new.c lib/zip_source_file.c lib/zip_stat_index.c \
134060
 
                         lib/zip_set_archive_comment.c lib/zip_set_file_comment.c \
134061
 
                         lib/zip_unchange_archive.c lib/zip_memdup.c lib/zip_stat_init.c lib/zip_add_dir.c \
134062
 
                         lib/zip_error_clear.c lib/zip_file_error_clear.c"
134063
 
 
134064
 
  
134065
 
cat >>confdefs.h <<\_ACEOF
134066
 
@%:@define HAVE_ZIP 1
134067
 
_ACEOF
134068
 
 
134069
 
  
134070
 
  ext_builddir=ext/zip
134071
 
  ext_srcdir=$abs_srcdir/ext/zip
134072
 
 
134073
 
  ac_extra=
134074
 
 
134075
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
134076
 
    PHP_ZIP_SHARED=no
134077
 
    
134078
 
  
134079
 
  case ext/zip in
134080
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
134081
 
  /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
134082
 
  *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
134083
 
  esac
134084
 
  
134085
 
  
134086
 
 
134087
 
  b_c_pre=$php_c_pre
134088
 
  b_cxx_pre=$php_cxx_pre
134089
 
  b_c_meta=$php_c_meta
134090
 
  b_cxx_meta=$php_cxx_meta
134091
 
  b_c_post=$php_c_post
134092
 
  b_cxx_post=$php_cxx_post
134093
 
  b_lo=$php_lo
134094
 
 
134095
 
 
134096
 
  old_IFS=$IFS
134097
 
  for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
134098
 
  
134099
 
      IFS=.
134100
 
      set $ac_src
134101
 
      ac_obj=$1
134102
 
      IFS=$old_IFS
134103
 
      
134104
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
134105
 
 
134106
 
      case $ac_src in
134107
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134108
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134109
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134110
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
134111
 
      esac
134112
 
 
134113
 
    cat >>Makefile.objects<<EOF
134114
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
134115
 
        $ac_comp
134116
 
EOF
134117
 
  done
134118
 
 
134119
 
 
134120
 
    EXT_STATIC="$EXT_STATIC zip"
134121
 
    if test "$ext_shared" != "nocli"; then
134122
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
134123
 
    fi
134124
 
  else
134125
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
134126
 
      PHP_ZIP_SHARED=yes
134127
 
      
134128
 
  case ext/zip in
134129
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
134130
 
  /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
134131
 
  *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
134132
 
  esac
134133
 
  
134134
 
  
134135
 
 
134136
 
  b_c_pre=$shared_c_pre
134137
 
  b_cxx_pre=$shared_cxx_pre
134138
 
  b_c_meta=$shared_c_meta
134139
 
  b_cxx_meta=$shared_cxx_meta
134140
 
  b_c_post=$shared_c_post
134141
 
  b_cxx_post=$shared_cxx_post
134142
 
  b_lo=$shared_lo
134143
 
 
134144
 
 
134145
 
  old_IFS=$IFS
134146
 
  for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
134147
 
  
134148
 
      IFS=.
134149
 
      set $ac_src
134150
 
      ac_obj=$1
134151
 
      IFS=$old_IFS
134152
 
      
134153
 
      shared_objects_zip="$shared_objects_zip $ac_bdir$ac_obj.lo"
134154
 
 
134155
 
      case $ac_src in
134156
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134157
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134158
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134159
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
134160
 
      esac
134161
 
 
134162
 
    cat >>Makefile.objects<<EOF
134163
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
134164
 
        $ac_comp
134165
 
EOF
134166
 
  done
134167
 
 
134168
 
      case $host_alias in
134169
 
        *netware*)
134170
 
          
134171
 
  install_modules="install-modules"
134172
 
 
134173
 
  case $host_alias in
134174
 
    *aix*)
134175
 
      suffix=so
134176
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpzip.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(PHPZIP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpzip.so '$ext_builddir'/phpzip.so'
134177
 
      ;;
134178
 
    *netware*)
134179
 
      suffix=nlm
134180
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) -L$(top_builddir)/netware -lphp5lib $(ZIP_SHARED_LIBADD)'
134181
 
      ;;
134182
 
    *)
134183
 
      suffix=la
134184
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(PHPZIP_SHARED_LIBADD)'
134185
 
      ;;
134186
 
  esac
134187
 
 
134188
 
  if test "x" = "xyes"; then
134189
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzip.$suffix"
134190
 
  else
134191
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzip.$suffix"
134192
 
  fi
134193
 
  
134194
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
134195
 
 
134196
 
  cat >>Makefile.objects<<EOF
134197
 
\$(phplibdir)/phpzip.$suffix: $ext_builddir/phpzip.$suffix
134198
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpzip.$suffix \$(phplibdir)
134199
 
 
134200
 
$ext_builddir/phpzip.$suffix: \$(shared_objects_zip) \$(PHPZIP_SHARED_DEPENDENCIES)
134201
 
        $link_cmd
134202
 
 
134203
 
EOF
134204
 
 
134205
 
          ;;
134206
 
        *)
134207
 
          
134208
 
  install_modules="install-modules"
134209
 
 
134210
 
  case $host_alias in
134211
 
    *aix*)
134212
 
      suffix=so
134213
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/zip.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(ZIP_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/zip.so '$ext_builddir'/zip.so'
134214
 
      ;;
134215
 
    *netware*)
134216
 
      suffix=nlm
134217
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) -L$(top_builddir)/netware -lphp5lib $(_SHARED_LIBADD)'
134218
 
      ;;
134219
 
    *)
134220
 
      suffix=la
134221
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_zip) $(ZIP_SHARED_LIBADD)'
134222
 
      ;;
134223
 
  esac
134224
 
 
134225
 
  if test "x" = "xyes"; then
134226
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zip.$suffix"
134227
 
  else
134228
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/zip.$suffix"
134229
 
  fi
134230
 
  
134231
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
134232
 
 
134233
 
  cat >>Makefile.objects<<EOF
134234
 
\$(phplibdir)/zip.$suffix: $ext_builddir/zip.$suffix
134235
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/zip.$suffix \$(phplibdir)
134236
 
 
134237
 
$ext_builddir/zip.$suffix: \$(shared_objects_zip) \$(ZIP_SHARED_DEPENDENCIES)
134238
 
        $link_cmd
134239
 
 
134240
 
EOF
134241
 
 
134242
 
          ;;
134243
 
      esac
134244
 
      
134245
 
cat >>confdefs.h <<_ACEOF
134246
 
@%:@define COMPILE_DL_ZIP 1
134247
 
_ACEOF
134248
 
 
134249
 
    fi
134250
 
  fi
134251
 
 
134252
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
134253
 
    PHP_ZIP_SHARED=no
134254
 
    case "$PHP_SAPI" in
134255
 
      cgi|embed)
134256
 
        
134257
 
  
134258
 
  case ext/zip in
134259
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
134260
 
  /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
134261
 
  *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
134262
 
  esac
134263
 
  
134264
 
  
134265
 
 
134266
 
  b_c_pre=$php_c_pre
134267
 
  b_cxx_pre=$php_cxx_pre
134268
 
  b_c_meta=$php_c_meta
134269
 
  b_cxx_meta=$php_cxx_meta
134270
 
  b_c_post=$php_c_post
134271
 
  b_cxx_post=$php_cxx_post
134272
 
  b_lo=$php_lo
134273
 
 
134274
 
 
134275
 
  old_IFS=$IFS
134276
 
  for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
134277
 
  
134278
 
      IFS=.
134279
 
      set $ac_src
134280
 
      ac_obj=$1
134281
 
      IFS=$old_IFS
134282
 
      
134283
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
134284
 
 
134285
 
      case $ac_src in
134286
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134287
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134288
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134289
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
134290
 
      esac
134291
 
 
134292
 
    cat >>Makefile.objects<<EOF
134293
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
134294
 
        $ac_comp
134295
 
EOF
134296
 
  done
134297
 
 
134298
 
 
134299
 
        EXT_STATIC="$EXT_STATIC zip"
134300
 
        ;;
134301
 
      *)
134302
 
        
134303
 
  
134304
 
  case ext/zip in
134305
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
134306
 
  /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
134307
 
  *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
134308
 
  esac
134309
 
  
134310
 
  
134311
 
 
134312
 
  b_c_pre=$php_c_pre
134313
 
  b_cxx_pre=$php_cxx_pre
134314
 
  b_c_meta=$php_c_meta
134315
 
  b_cxx_meta=$php_cxx_meta
134316
 
  b_c_post=$php_c_post
134317
 
  b_cxx_post=$php_cxx_post
134318
 
  b_lo=$php_lo
134319
 
 
134320
 
 
134321
 
  old_IFS=$IFS
134322
 
  for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
134323
 
  
134324
 
      IFS=.
134325
 
      set $ac_src
134326
 
      ac_obj=$1
134327
 
      IFS=$old_IFS
134328
 
      
134329
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
134330
 
 
134331
 
      case $ac_src in
134332
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134333
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134334
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134335
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
134336
 
      esac
134337
 
 
134338
 
    cat >>Makefile.objects<<EOF
134339
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
134340
 
        $ac_comp
134341
 
EOF
134342
 
  done
134343
 
 
134344
 
 
134345
 
        ;;
134346
 
    esac
134347
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
134348
 
  fi
134349
 
  
134350
 
  
134351
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
134352
 
  
134353
 
 
134354
 
 
134355
 
  if test "$ext_builddir" = "."; then
134356
 
    PHP_PECL_EXTENSION=zip
134357
 
    
134358
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
134359
 
 
134360
 
  fi
134361
 
 
134362
 
  
134363
 
  
134364
 
    $php_shtool mkdir -p $ext_builddir/lib
134365
 
  
134366
 
 
134367
 
  
134368
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ZIP_SHARED_LIBADD"
134369
 
 
134370
 
 
134371
 
    
134372
 
  src=$ext_srcdir/Makefile.frag
134373
 
  ac_srcdir=$ext_srcdir
134374
 
  ac_builddir=$ext_builddir
134375
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
134376
 
 
134377
 
fi
134378
 
 
134379
 
 
134380
 
 
134381
 
php_enable_mysqlnd=no
134382
 
 
134383
 
{ $as_echo "$as_me:$LINENO: checking whether to enable mysqlnd" >&5
134384
 
$as_echo_n "checking whether to enable mysqlnd... " >&6; }
134385
 
@%:@ Check whether --enable-mysqlnd was given.
134386
 
if test "${enable_mysqlnd+set}" = set; then
134387
 
  enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval
134388
 
else
134389
 
  
134390
 
  PHP_MYSQLND=no
134391
 
  test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL
134392
 
 
134393
 
fi
134394
 
 
134395
 
 
134396
 
 
134397
 
ext_output="yes, shared"
134398
 
ext_shared=yes
134399
 
case $PHP_MYSQLND in
134400
 
shared,*)
134401
 
  PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'`
134402
 
  ;;
134403
 
shared)
134404
 
  PHP_MYSQLND=yes
134405
 
  ;;
134406
 
no)
134407
 
  ext_output=no
134408
 
  ext_shared=no
134409
 
  ;;
134410
 
*)
134411
 
  ext_output=yes
134412
 
  ext_shared=no
134413
 
  ;;
134414
 
esac
134415
 
 
134416
 
 
134417
 
 
134418
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
134419
 
$as_echo "$ext_output" >&6; }
134420
 
 
134421
 
 
134422
 
 
134423
 
 
134424
 
 
134425
 
php_enable_mysqlnd_compression_support=yes
134426
 
 
134427
 
{ $as_echo "$as_me:$LINENO: checking whether to disable compressed protocol support in mysqlnd" >&5
134428
 
$as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; }
134429
 
@%:@ Check whether --enable-mysqlnd_compression_support was given.
134430
 
if test "${enable_mysqlnd_compression_support+set}" = set; then
134431
 
  enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval
134432
 
else
134433
 
  
134434
 
  PHP_MYSQLND_COMPRESSION_SUPPORT=yes
134435
 
  
134436
 
 
134437
 
fi
134438
 
 
134439
 
 
134440
 
ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT
134441
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
134442
 
$as_echo "$ext_output" >&6; }
134443
 
 
134444
 
 
134445
 
 
134446
 
 
134447
 
if test -z "$PHP_ZLIB_DIR"; then
134448
 
  
134449
 
php_with_zlib_dir=no
134450
 
 
134451
 
{ $as_echo "$as_me:$LINENO: checking for the location of libz" >&5
134452
 
$as_echo_n "checking for the location of libz... " >&6; }
134453
 
 
134454
 
@%:@ Check whether --with-zlib-dir was given.
134455
 
if test "${with_zlib_dir+set}" = set; then
134456
 
  withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
134457
 
else
134458
 
  
134459
 
  PHP_ZLIB_DIR=no
134460
 
  
134461
 
 
134462
 
fi
134463
 
 
134464
 
 
134465
 
ext_output=$PHP_ZLIB_DIR
134466
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
134467
 
$as_echo "$ext_output" >&6; }
134468
 
 
134469
 
 
134470
 
 
134471
 
fi
134472
 
 
134473
 
if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
134474
 
  mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c"
134475
 
  mysqlnd_base_sources="mysqlnd.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
134476
 
                   mysqlnd_loaddata.c mysqlnd_net.c mysqlnd_statistics.c \
134477
 
                                   mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c\
134478
 
                                   mysqlnd_block_alloc.c php_mysqlnd.c"
134479
 
 
134480
 
 
134481
 
  if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then
134482
 
    
134483
 
cat >>confdefs.h <<\_ACEOF
134484
 
@%:@define MYSQLND_COMPRESSION_WANTED 1
134485
 
_ACEOF
134486
 
 
134487
 
  fi
134488
 
  
134489
 
cat >>confdefs.h <<\_ACEOF
134490
 
@%:@define MYSQLND_SSL_SUPPORTED 1
134491
 
_ACEOF
134492
 
 
134493
 
 
134494
 
  mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources"
134495
 
  
134496
 
  ext_builddir=ext/mysqlnd
134497
 
  ext_srcdir=$abs_srcdir/ext/mysqlnd
134498
 
 
134499
 
  ac_extra=
134500
 
 
134501
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
134502
 
    PHP_MYSQLND_SHARED=no
134503
 
    
134504
 
  
134505
 
  case ext/mysqlnd in
134506
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
134507
 
  /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
134508
 
  *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
134509
 
  esac
134510
 
  
134511
 
  
134512
 
 
134513
 
  b_c_pre=$php_c_pre
134514
 
  b_cxx_pre=$php_cxx_pre
134515
 
  b_c_meta=$php_c_meta
134516
 
  b_cxx_meta=$php_cxx_meta
134517
 
  b_c_post=$php_c_post
134518
 
  b_cxx_post=$php_cxx_post
134519
 
  b_lo=$php_lo
134520
 
 
134521
 
 
134522
 
  old_IFS=$IFS
134523
 
  for ac_src in $mysqlnd_sources; do
134524
 
  
134525
 
      IFS=.
134526
 
      set $ac_src
134527
 
      ac_obj=$1
134528
 
      IFS=$old_IFS
134529
 
      
134530
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
134531
 
 
134532
 
      case $ac_src in
134533
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134534
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134535
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134536
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
134537
 
      esac
134538
 
 
134539
 
    cat >>Makefile.objects<<EOF
134540
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
134541
 
        $ac_comp
134542
 
EOF
134543
 
  done
134544
 
 
134545
 
 
134546
 
    EXT_STATIC="$EXT_STATIC mysqlnd"
134547
 
    if test "$ext_shared" != "nocli"; then
134548
 
      EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
134549
 
    fi
134550
 
  else
134551
 
    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
134552
 
      PHP_MYSQLND_SHARED=yes
134553
 
      
134554
 
  case ext/mysqlnd in
134555
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
134556
 
  /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
134557
 
  *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
134558
 
  esac
134559
 
  
134560
 
  
134561
 
 
134562
 
  b_c_pre=$shared_c_pre
134563
 
  b_cxx_pre=$shared_cxx_pre
134564
 
  b_c_meta=$shared_c_meta
134565
 
  b_cxx_meta=$shared_cxx_meta
134566
 
  b_c_post=$shared_c_post
134567
 
  b_cxx_post=$shared_cxx_post
134568
 
  b_lo=$shared_lo
134569
 
 
134570
 
 
134571
 
  old_IFS=$IFS
134572
 
  for ac_src in $mysqlnd_sources; do
134573
 
  
134574
 
      IFS=.
134575
 
      set $ac_src
134576
 
      ac_obj=$1
134577
 
      IFS=$old_IFS
134578
 
      
134579
 
      shared_objects_mysqlnd="$shared_objects_mysqlnd $ac_bdir$ac_obj.lo"
134580
 
 
134581
 
      case $ac_src in
134582
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134583
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134584
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134585
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
134586
 
      esac
134587
 
 
134588
 
    cat >>Makefile.objects<<EOF
134589
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
134590
 
        $ac_comp
134591
 
EOF
134592
 
  done
134593
 
 
134594
 
      case $host_alias in
134595
 
        *netware*)
134596
 
          
134597
 
  install_modules="install-modules"
134598
 
 
134599
 
  case $host_alias in
134600
 
    *aix*)
134601
 
      suffix=so
134602
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpmysqlnd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(PHPMYSQLND_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpmysqlnd.so '$ext_builddir'/phpmysqlnd.so'
134603
 
      ;;
134604
 
    *netware*)
134605
 
      suffix=nlm
134606
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) -L$(top_builddir)/netware -lphp5lib $(MYSQLND_SHARED_LIBADD)'
134607
 
      ;;
134608
 
    *)
134609
 
      suffix=la
134610
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(PHPMYSQLND_SHARED_LIBADD)'
134611
 
      ;;
134612
 
  esac
134613
 
 
134614
 
  if test "x" = "xyes"; then
134615
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqlnd.$suffix"
134616
 
  else
134617
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqlnd.$suffix"
134618
 
  fi
134619
 
  
134620
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
134621
 
 
134622
 
  cat >>Makefile.objects<<EOF
134623
 
\$(phplibdir)/phpmysqlnd.$suffix: $ext_builddir/phpmysqlnd.$suffix
134624
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqlnd.$suffix \$(phplibdir)
134625
 
 
134626
 
$ext_builddir/phpmysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(PHPMYSQLND_SHARED_DEPENDENCIES)
134627
 
        $link_cmd
134628
 
 
134629
 
EOF
134630
 
 
134631
 
          ;;
134632
 
        *)
134633
 
          
134634
 
  install_modules="install-modules"
134635
 
 
134636
 
  case $host_alias in
134637
 
    *aix*)
134638
 
      suffix=so
134639
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/mysqlnd.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(MYSQLND_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/mysqlnd.so '$ext_builddir'/mysqlnd.so'
134640
 
      ;;
134641
 
    *netware*)
134642
 
      suffix=nlm
134643
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) -L$(top_builddir)/netware -lphp5lib $(QLND_SHARED_LIBADD)'
134644
 
      ;;
134645
 
    *)
134646
 
      suffix=la
134647
 
      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_mysqlnd) $(MYSQLND_SHARED_LIBADD)'
134648
 
      ;;
134649
 
  esac
134650
 
 
134651
 
  if test "x" = "xyes"; then
134652
 
    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqlnd.$suffix"
134653
 
  else
134654
 
    PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqlnd.$suffix"
134655
 
  fi
134656
 
  
134657
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
134658
 
 
134659
 
  cat >>Makefile.objects<<EOF
134660
 
\$(phplibdir)/mysqlnd.$suffix: $ext_builddir/mysqlnd.$suffix
134661
 
        \$(LIBTOOL) --mode=install cp $ext_builddir/mysqlnd.$suffix \$(phplibdir)
134662
 
 
134663
 
$ext_builddir/mysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(MYSQLND_SHARED_DEPENDENCIES)
134664
 
        $link_cmd
134665
 
 
134666
 
EOF
134667
 
 
134668
 
          ;;
134669
 
      esac
134670
 
      
134671
 
cat >>confdefs.h <<_ACEOF
134672
 
@%:@define COMPILE_DL_MYSQLND 1
134673
 
_ACEOF
134674
 
 
134675
 
    fi
134676
 
  fi
134677
 
 
134678
 
  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
134679
 
    PHP_MYSQLND_SHARED=no
134680
 
    case "$PHP_SAPI" in
134681
 
      cgi|embed)
134682
 
        
134683
 
  
134684
 
  case ext/mysqlnd in
134685
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
134686
 
  /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
134687
 
  *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
134688
 
  esac
134689
 
  
134690
 
  
134691
 
 
134692
 
  b_c_pre=$php_c_pre
134693
 
  b_cxx_pre=$php_cxx_pre
134694
 
  b_c_meta=$php_c_meta
134695
 
  b_cxx_meta=$php_cxx_meta
134696
 
  b_c_post=$php_c_post
134697
 
  b_cxx_post=$php_cxx_post
134698
 
  b_lo=$php_lo
134699
 
 
134700
 
 
134701
 
  old_IFS=$IFS
134702
 
  for ac_src in $mysqlnd_sources; do
134703
 
  
134704
 
      IFS=.
134705
 
      set $ac_src
134706
 
      ac_obj=$1
134707
 
      IFS=$old_IFS
134708
 
      
134709
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
134710
 
 
134711
 
      case $ac_src in
134712
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134713
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134714
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134715
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
134716
 
      esac
134717
 
 
134718
 
    cat >>Makefile.objects<<EOF
134719
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
134720
 
        $ac_comp
134721
 
EOF
134722
 
  done
134723
 
 
134724
 
 
134725
 
        EXT_STATIC="$EXT_STATIC mysqlnd"
134726
 
        ;;
134727
 
      *)
134728
 
        
134729
 
  
134730
 
  case ext/mysqlnd in
134731
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
134732
 
  /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
134733
 
  *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
134734
 
  esac
134735
 
  
134736
 
  
134737
 
 
134738
 
  b_c_pre=$php_c_pre
134739
 
  b_cxx_pre=$php_cxx_pre
134740
 
  b_c_meta=$php_c_meta
134741
 
  b_cxx_meta=$php_cxx_meta
134742
 
  b_c_post=$php_c_post
134743
 
  b_cxx_post=$php_cxx_post
134744
 
  b_lo=$php_lo
134745
 
 
134746
 
 
134747
 
  old_IFS=$IFS
134748
 
  for ac_src in $mysqlnd_sources; do
134749
 
  
134750
 
      IFS=.
134751
 
      set $ac_src
134752
 
      ac_obj=$1
134753
 
      IFS=$old_IFS
134754
 
      
134755
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
134756
 
 
134757
 
      case $ac_src in
134758
 
        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134759
 
        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134760
 
        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
134761
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
134762
 
      esac
134763
 
 
134764
 
    cat >>Makefile.objects<<EOF
134765
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
134766
 
        $ac_comp
134767
 
EOF
134768
 
  done
134769
 
 
134770
 
 
134771
 
        ;;
134772
 
    esac
134773
 
    EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
134774
 
  fi
134775
 
  
134776
 
  
134777
 
    BUILD_DIR="$BUILD_DIR $ext_builddir"
134778
 
  
134779
 
 
134780
 
 
134781
 
  if test "$ext_builddir" = "."; then
134782
 
    PHP_PECL_EXTENSION=mysqlnd
134783
 
    
134784
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
134785
 
 
134786
 
  fi
134787
 
 
134788
 
  
134789
 
  
134790
 
    $php_shtool mkdir -p ext/mysqlnd
134791
 
  
134792
 
 
134793
 
  
134794
 
  
134795
 
    for header_file in ext/mysqlnd/; do
134796
 
      
134797
 
  
134798
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
134799
 
  
134800
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
134801
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
134802
 
    eval "INSTALLHEADERS$unique=set"
134803
 
    
134804
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
134805
 
      
134806
 
  fi
134807
 
 
134808
 
    done 
134809
 
  
134810
 
 
134811
 
fi
134812
 
 
134813
 
if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then
134814
 
  
134815
 
  
134816
 
    $php_shtool mkdir -p ext/mysqlnd
134817
 
  
134818
 
 
134819
 
 
134820
 
    
134821
 
  for php_typename in int8 uint8 int16 uint16 int32 uint32 uchar ulong int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t; do
134822
 
    { $as_echo "$as_me:$LINENO: checking whether $php_typename exists" >&5
134823
 
$as_echo_n "checking whether $php_typename exists... " >&6; }
134824
 
    
134825
 
  php_cache_value=php_cv_sizeof_$php_typename
134826
 
  if { as_var=php_cv_sizeof_$php_typename; eval "test \"\${$as_var+set}\" = set"; }; then
134827
 
  $as_echo_n "(cached) " >&6
134828
 
else
134829
 
  
134830
 
    old_LIBS=$LIBS
134831
 
    LIBS=
134832
 
    old_LDFLAGS=$LDFLAGS
134833
 
    LDFLAGS=
134834
 
    if test "$cross_compiling" = yes; then
134835
 
  
134836
 
    eval $php_cache_value=0
134837
 
 
134838
 
else
134839
 
  cat >conftest.$ac_ext <<_ACEOF
134840
 
/* confdefs.h.  */
134841
 
_ACEOF
134842
 
cat confdefs.h >>conftest.$ac_ext
134843
 
cat >>conftest.$ac_ext <<_ACEOF
134844
 
/* end confdefs.h.  */
134845
 
#include <stdio.h>
134846
 
#if STDC_HEADERS
134847
 
#include <stdlib.h>
134848
 
#include <stddef.h>
134849
 
#endif
134850
 
#ifdef HAVE_INTTYPES_H
134851
 
#include <inttypes.h>
134852
 
#endif
134853
 
#ifdef HAVE_UNISTD_H
134854
 
#include <unistd.h>
134855
 
#endif
134856
 
#ifdef HAVE_SYS_TYPES_H
134857
 
#include <sys/types.h>
134858
 
#endif
134859
 
#ifdef HAVE_STDINT_H
134860
 
#include <stdint.h>
134861
 
#endif
134862
 
  
134863
 
 
134864
 
int main()
134865
 
{
134866
 
        FILE *fp = fopen("conftestval", "w");
134867
 
        if (!fp) return(1);
134868
 
        fprintf(fp, "%d\n", sizeof($php_typename));
134869
 
        return(0);
134870
 
}
134871
 
  
134872
 
_ACEOF
134873
 
rm -f conftest$ac_exeext
134874
 
if { (ac_try="$ac_link"
134875
 
case "(($ac_try" in
134876
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
134877
 
  *) ac_try_echo=$ac_try;;
134878
 
esac
134879
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
134880
 
$as_echo "$ac_try_echo") >&5
134881
 
  (eval "$ac_link") 2>&5
134882
 
  ac_status=$?
134883
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
134884
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
134885
 
  { (case "(($ac_try" in
134886
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
134887
 
  *) ac_try_echo=$ac_try;;
134888
 
esac
134889
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
134890
 
$as_echo "$ac_try_echo") >&5
134891
 
  (eval "$ac_try") 2>&5
134892
 
  ac_status=$?
134893
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
134894
 
  (exit $ac_status); }; }; then
134895
 
  
134896
 
    eval $php_cache_value=`cat conftestval`
134897
 
  
134898
 
else
134899
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
134900
 
$as_echo "$as_me: failed program was:" >&5
134901
 
sed 's/^/| /' conftest.$ac_ext >&5
134902
 
 
134903
 
( exit $ac_status )
134904
 
 
134905
 
    eval $php_cache_value=0
134906
 
  
134907
 
fi
134908
 
rm -rf conftest.dSYM
134909
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
134910
 
fi
134911
 
 
134912
 
 
134913
 
  LDFLAGS=$old_LDFLAGS
134914
 
  LIBS=$old_LIBS
134915
 
 
134916
 
fi
134917
 
 
134918
 
  if eval test "\$$php_cache_value" != "0"; then
134919
 
 
134920
 
      
134921
 
  php_def_have_what=HAVE_`echo $php_typename | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_' `
134922
 
  echo "#define $php_def_have_what 1" >> ext/mysqlnd/php_mysqlnd_config.h
134923
 
  
134924
 
 
134925
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
134926
 
$as_echo "yes" >&6; }
134927
 
    
134928
 
else 
134929
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
134930
 
$as_echo "no" >&6; }
134931
 
    
134932
 
  fi
134933
 
 
134934
 
  done
134935
 
 
134936
 
fi
134937
 
 
134938
 
 
134939
 
if test "$PHP_RECODE" != "no"; then
134940
 
  test "$PHP_IMAP"  != "no" && recode_conflict="$recode_conflict imap"
134941
 
 
134942
 
  if test -n "$MYSQL_LIBNAME"; then
134943
 
    
134944
 
  save_old_LDFLAGS=$LDFLAGS
134945
 
  ac_stuff=""
134946
 
  
134947
 
  save_ext_shared=$ext_shared
134948
 
  ext_shared=yes
134949
 
  
134950
 
  for ac_i in $ac_stuff; do
134951
 
    case $ac_i in
134952
 
    -pthread)
134953
 
      if test "$ext_shared" = "yes"; then
134954
 
        LDFLAGS="$LDFLAGS -pthread"
134955
 
      else
134956
 
        
134957
 
  
134958
 
  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
134959
 
  
134960
 
  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
134961
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
134962
 
    eval "EXTRA_LDFLAGS$unique=set"
134963
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
134964
 
  fi
134965
 
 
134966
 
      fi
134967
 
    ;;
134968
 
    -l*)
134969
 
      ac_ii=`echo $ac_i|cut -c 3-`
134970
 
      
134971
 
  
134972
 
  case $ac_ii in
134973
 
  c|c_r|pthread*) ;;
134974
 
  *) 
134975
 
    if test "$ext_shared" = "yes"; then
134976
 
        LDFLAGS="$LDFLAGS -l$ac_ii" 
134977
 
    else
134978
 
      
134979
 
  
134980
 
  case $ac_ii in
134981
 
  c|c_r|pthread*) ;;
134982
 
  *) 
134983
 
      LIBS="$LIBS -l$ac_ii" 
134984
 
   ;;
134985
 
  esac
134986
 
 
134987
 
 
134988
 
    fi
134989
 
   ;;
134990
 
  esac
134991
 
 
134992
 
 
134993
 
    ;;
134994
 
    -L*)
134995
 
      ac_ii=`echo $ac_i|cut -c 3-`
134996
 
      
134997
 
  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
134998
 
    
134999
 
  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
135000
 
    ai_p=$ac_ii
135001
 
  else
135002
 
    
135003
 
    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
135004
 
    
135005
 
    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
135006
 
    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
135007
 
  fi
135008
 
 
135009
 
    
135010
 
      if test "$ext_shared" = "yes"; then
135011
 
        LDFLAGS="-L$ai_p $LDFLAGS"
135012
 
        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
135013
 
      else
135014
 
        
135015
 
  
135016
 
  
135017
 
  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
135018
 
  
135019
 
  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
135020
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
135021
 
    eval "LIBPATH$unique=set"
135022
 
    
135023
 
    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
135024
 
    LDFLAGS="$LDFLAGS -L$ai_p"
135025
 
    PHP_RPATHS="$PHP_RPATHS $ai_p"
135026
 
  
135027
 
  fi
135028
 
 
135029
 
 
135030
 
      fi
135031
 
    
135032
 
  fi
135033
 
 
135034
 
    ;;
135035
 
    esac
135036
 
  done
135037
 
 
135038
 
  as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_hash_insert" | $as_tr_sh`
135039
 
{ $as_echo "$as_me:$LINENO: checking for hash_insert in -l$MYSQL_LIBNAME" >&5
135040
 
$as_echo_n "checking for hash_insert in -l$MYSQL_LIBNAME... " >&6; }
135041
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
135042
 
  $as_echo_n "(cached) " >&6
135043
 
else
135044
 
  ac_check_lib_save_LIBS=$LIBS
135045
 
LIBS="-l$MYSQL_LIBNAME  $LIBS"
135046
 
cat >conftest.$ac_ext <<_ACEOF
135047
 
/* confdefs.h.  */
135048
 
_ACEOF
135049
 
cat confdefs.h >>conftest.$ac_ext
135050
 
cat >>conftest.$ac_ext <<_ACEOF
135051
 
/* end confdefs.h.  */
135052
 
 
135053
 
/* Override any GCC internal prototype to avoid an error.
135054
 
   Use char because int might match the return type of a GCC
135055
 
   builtin and then its argument prototype would still apply.  */
135056
 
#ifdef __cplusplus
135057
 
extern "C"
135058
 
#endif
135059
 
char hash_insert ();
135060
 
int
135061
 
main ()
135062
 
{
135063
 
return hash_insert ();
135064
 
  ;
135065
 
  return 0;
135066
 
}
135067
 
_ACEOF
135068
 
rm -f conftest.$ac_objext conftest$ac_exeext
135069
 
if { (ac_try="$ac_link"
135070
 
case "(($ac_try" in
135071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135072
 
  *) ac_try_echo=$ac_try;;
135073
 
esac
135074
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135075
 
$as_echo "$ac_try_echo") >&5
135076
 
  (eval "$ac_link") 2>conftest.er1
135077
 
  ac_status=$?
135078
 
  grep -v '^ *+' conftest.er1 >conftest.err
135079
 
  rm -f conftest.er1
135080
 
  cat conftest.err >&5
135081
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135082
 
  (exit $ac_status); } && {
135083
 
         test -z "$ac_c_werror_flag" ||
135084
 
         test ! -s conftest.err
135085
 
       } && test -s conftest$ac_exeext && {
135086
 
         test "$cross_compiling" = yes ||
135087
 
         $as_test_x conftest$ac_exeext
135088
 
       }; then
135089
 
  eval "$as_ac_Lib=yes"
135090
 
else
135091
 
  $as_echo "$as_me: failed program was:" >&5
135092
 
sed 's/^/| /' conftest.$ac_ext >&5
135093
 
 
135094
 
        eval "$as_ac_Lib=no"
135095
 
fi
135096
 
 
135097
 
rm -rf conftest.dSYM
135098
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
135099
 
      conftest$ac_exeext conftest.$ac_ext
135100
 
LIBS=$ac_check_lib_save_LIBS
135101
 
fi
135102
 
ac_res=`eval 'as_val=${'$as_ac_Lib'}
135103
 
                 $as_echo "$as_val"'`
135104
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
135105
 
$as_echo "$ac_res" >&6; }
135106
 
as_val=`eval 'as_val=${'$as_ac_Lib'}
135107
 
                 $as_echo "$as_val"'`
135108
 
   if test "x$as_val" = x""yes; then
135109
 
  
135110
 
    LDFLAGS=$save_old_LDFLAGS
135111
 
    ext_shared=$save_ext_shared
135112
 
    
135113
 
      recode_conflict="$recode_conflict mysql"
135114
 
    
135115
 
  
135116
 
else
135117
 
  
135118
 
    LDFLAGS=$save_old_LDFLAGS
135119
 
    ext_shared=$save_ext_shared
135120
 
    unset ac_cv_lib_$MYSQL_LIBNAME_hash_insert
135121
 
    
135122
 
  
135123
 
fi
135124
 
 
135125
 
  fi
135126
 
 
135127
 
  if test -n "$recode_conflict"; then
135128
 
    { { $as_echo "$as_me:$LINENO: error: recode extension can not be configured together with:$recode_conflict" >&5
135129
 
$as_echo "$as_me: error: recode extension can not be configured together with:$recode_conflict" >&2;}
135130
 
   { (exit 1); exit 1; }; }
135131
 
  fi
135132
 
fi
135133
 
 
135134
 
 
135135
 
 
135136
 
 
135137
 
enable_shared=yes
135138
 
enable_static=yes
135139
 
 
135140
 
case $php_build_target in
135141
 
  program|static)
135142
 
    standard_libtool_flag='-prefer-non-pic -static'
135143
 
    if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then
135144
 
        enable_shared=no
135145
 
    fi
135146
 
    ;;
135147
 
  shared)
135148
 
    enable_static=no
135149
 
    case $with_pic in
135150
 
      yes)
135151
 
        standard_libtool_flag='-prefer-pic'
135152
 
        ;;
135153
 
      no)
135154
 
        standard_libtool_flag='-prefer-non-pic'
135155
 
        ;;
135156
 
    esac
135157
 
    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module"
135158
 
    ;;
135159
 
esac
135160
 
 
135161
 
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
135162
 
 
135163
 
if test "$ac_cv_lib_crypt_crypt" = "yes"; then
135164
 
  EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt"
135165
 
fi
135166
 
 
135167
 
unset LIBS LDFLAGS
135168
 
 
135169
 
 
135170
 
 
135171
 
@%:@ Check whether --enable- was given.
135172
 
if test "${enable_+set}" = set; then
135173
 
  enableval=$enable_; 
135174
 
fi
135175
 
 
135176
 
 
135177
 
 
135178
 
  { $as_echo "$as_me:$LINENO: result: " >&5
135179
 
$as_echo "" >&6; }
135180
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Configuring PEAR${T_ME}" >&5
135181
 
$as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; }
135182
 
 
135183
 
 
135184
 
# compatibility
135185
 
if test -z "$with_pear" && test "$enable_pear" = "no"; then
135186
 
  with_pear=no
135187
 
fi
135188
 
 
135189
 
# If CLI is disabled -> disable PEAR
135190
 
if test "$PHP_CLI" = "no"; then
135191
 
  with_pear=no
135192
 
fi
135193
 
 
135194
 
 
135195
 
php_with_pear=DEFAULT
135196
 
 
135197
 
{ $as_echo "$as_me:$LINENO: checking whether to install PEAR" >&5
135198
 
$as_echo_n "checking whether to install PEAR... " >&6; }
135199
 
 
135200
 
@%:@ Check whether --with-pear was given.
135201
 
if test "${with_pear+set}" = set; then
135202
 
  withval=$with_pear; PHP_PEAR=$withval
135203
 
else
135204
 
  
135205
 
  PHP_PEAR=DEFAULT
135206
 
  test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL
135207
 
 
135208
 
fi
135209
 
 
135210
 
 
135211
 
 
135212
 
ext_output="yes, shared"
135213
 
ext_shared=yes
135214
 
case $PHP_PEAR in
135215
 
shared,*)
135216
 
  PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'`
135217
 
  ;;
135218
 
shared)
135219
 
  PHP_PEAR=yes
135220
 
  ;;
135221
 
no)
135222
 
  ext_output=no
135223
 
  ext_shared=no
135224
 
  ;;
135225
 
*)
135226
 
  ext_output=yes
135227
 
  ext_shared=no
135228
 
  ;;
135229
 
esac
135230
 
 
135231
 
 
135232
 
 
135233
 
{ $as_echo "$as_me:$LINENO: result: $ext_output" >&5
135234
 
$as_echo "$ext_output" >&6; }
135235
 
 
135236
 
 
135237
 
 
135238
 
 
135239
 
if test "$PHP_PEAR" != "no"; then
135240
 
 
135241
 
        if test "$PHP_XML" = "no"; then
135242
 
    pear_error_msg="$pear_error_msg 
135243
 
                    PEAR requires XML to be enabled.     Add --enable-xml to the configure line. (or --without-pear)"
135244
 
  fi
135245
 
 
135246
 
 
135247
 
  if test "$pear_error_msg"; then
135248
 
    { { $as_echo "$as_me:$LINENO: error: $pear_error_msg" >&5
135249
 
$as_echo "$as_me: error: $pear_error_msg" >&2;}
135250
 
   { (exit 1); exit 1; }; }
135251
 
  fi
135252
 
 
135253
 
  install_pear="install-pear"
135254
 
  PEAR_INSTALLDIR=$PHP_PEAR
135255
 
 
135256
 
  if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then
135257
 
    case $PHP_LAYOUT in
135258
 
      GNU) PEAR_INSTALLDIR=$datadir/pear;;
135259
 
      *)   PEAR_INSTALLDIR=$libdir/php;;
135260
 
    esac
135261
 
  fi
135262
 
 
135263
 
  
135264
 
  src=$abs_srcdir/pear/Makefile.frag
135265
 
  ac_srcdir=$abs_srcdir/pear
135266
 
  ac_builddir=pear
135267
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
135268
 
 
135269
 
fi
135270
 
 
135271
 
 
135272
 
 
135273
 
 
135274
 
@%:@ Check whether --enable- was given.
135275
 
if test "${enable_+set}" = set; then
135276
 
  enableval=$enable_; 
135277
 
fi
135278
 
 
135279
 
 
135280
 
 
135281
 
  { $as_echo "$as_me:$LINENO: result: " >&5
135282
 
$as_echo "" >&6; }
135283
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Configuring Zend${T_ME}" >&5
135284
 
$as_echo "${T_MD}Configuring Zend${T_ME}" >&6; }
135285
 
 
135286
 
 
135287
 
 
135288
 
 
135289
 
 
135290
 
 
135291
 
 
135292
 
 
135293
 
 
135294
 
 
135295
 
  # we only support certain bison versions
135296
 
  bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5"
135297
 
 
135298
 
  # for standalone build of Zend Engine
135299
 
  test -z "$SED" && SED=sed
135300
 
 
135301
 
  bison_version=none
135302
 
  if test "$YACC"; then
135303
 
    { $as_echo "$as_me:$LINENO: checking for bison version" >&5
135304
 
$as_echo_n "checking for bison version... " >&6; }
135305
 
if test "${php_cv_bison_version+set}" = set; then
135306
 
  $as_echo_n "(cached) " >&6
135307
 
else
135308
 
  
135309
 
      bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
135310
 
      php_cv_bison_version=invalid
135311
 
      if test -n "$bison_version_vars"; then
135312
 
        set $bison_version_vars
135313
 
        bison_version="${1}.${2}"
135314
 
        for bison_check_version in $bison_version_list; do
135315
 
          if test "$bison_version" = "$bison_check_version"; then
135316
 
            php_cv_bison_version="$bison_check_version (ok)"
135317
 
            break
135318
 
          fi
135319
 
        done
135320
 
      fi
135321
 
    
135322
 
fi
135323
 
{ $as_echo "$as_me:$LINENO: result: $php_cv_bison_version" >&5
135324
 
$as_echo "$php_cv_bison_version" >&6; }
135325
 
  fi
135326
 
  case $php_cv_bison_version in
135327
 
    ""|invalid)
135328
 
      bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
135329
 
      { $as_echo "$as_me:$LINENO: WARNING: $bison_msg" >&5
135330
 
$as_echo "$as_me: WARNING: $bison_msg" >&2;}
135331
 
      YACC="exit 0;"
135332
 
      ;;
135333
 
  esac
135334
 
 
135335
 
 
135336
 
if test "$CC" = "gcc" -a "$ac_cv_prog_cc_g" = "yes" -a \
135337
 
   "`uname -sv`" = "AIX 4"; then
135338
 
        CFLAGS=`echo $CFLAGS | sed -e 's/-g//'`
135339
 
fi
135340
 
 
135341
 
if test "$ac_cv_c_compiler_gnu" = "yes" -a "`uname -s`" = "Rhapsody"; then
135342
 
        CPPFLAGS="$CPPFLAGS -traditional-cpp"
135343
 
fi
135344
 
 
135345
 
 
135346
 
 
135347
 
 
135348
 
 
135349
 
 
135350
 
 
135351
 
 
135352
 
 
135353
 
 
135354
 
 
135355
 
 
135356
 
 
135357
 
 
135358
 
for ac_header in inttypes.h \
135359
 
stdint.h \
135360
 
limits.h \
135361
 
malloc.h \
135362
 
string.h \
135363
 
unistd.h \
135364
 
stdarg.h \
135365
 
sys/types.h \
135366
 
sys/time.h \
135367
 
signal.h \
135368
 
unix.h \
135369
 
stdlib.h \
135370
 
dlfcn.h
135371
 
do
135372
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
135373
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
135374
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
135375
 
$as_echo_n "checking for $ac_header... " >&6; }
135376
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
135377
 
  $as_echo_n "(cached) " >&6
135378
 
fi
135379
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
135380
 
                 $as_echo "$as_val"'`
135381
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
135382
 
$as_echo "$ac_res" >&6; }
135383
 
else
135384
 
  # Is the header compilable?
135385
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
135386
 
$as_echo_n "checking $ac_header usability... " >&6; }
135387
 
cat >conftest.$ac_ext <<_ACEOF
135388
 
/* confdefs.h.  */
135389
 
_ACEOF
135390
 
cat confdefs.h >>conftest.$ac_ext
135391
 
cat >>conftest.$ac_ext <<_ACEOF
135392
 
/* end confdefs.h.  */
135393
 
$ac_includes_default
135394
 
@%:@include <$ac_header>
135395
 
_ACEOF
135396
 
rm -f conftest.$ac_objext
135397
 
if { (ac_try="$ac_compile"
135398
 
case "(($ac_try" in
135399
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135400
 
  *) ac_try_echo=$ac_try;;
135401
 
esac
135402
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135403
 
$as_echo "$ac_try_echo") >&5
135404
 
  (eval "$ac_compile") 2>conftest.er1
135405
 
  ac_status=$?
135406
 
  grep -v '^ *+' conftest.er1 >conftest.err
135407
 
  rm -f conftest.er1
135408
 
  cat conftest.err >&5
135409
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135410
 
  (exit $ac_status); } && {
135411
 
         test -z "$ac_c_werror_flag" ||
135412
 
         test ! -s conftest.err
135413
 
       } && test -s conftest.$ac_objext; then
135414
 
  ac_header_compiler=yes
135415
 
else
135416
 
  $as_echo "$as_me: failed program was:" >&5
135417
 
sed 's/^/| /' conftest.$ac_ext >&5
135418
 
 
135419
 
        ac_header_compiler=no
135420
 
fi
135421
 
 
135422
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135423
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
135424
 
$as_echo "$ac_header_compiler" >&6; }
135425
 
 
135426
 
# Is the header present?
135427
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
135428
 
$as_echo_n "checking $ac_header presence... " >&6; }
135429
 
cat >conftest.$ac_ext <<_ACEOF
135430
 
/* confdefs.h.  */
135431
 
_ACEOF
135432
 
cat confdefs.h >>conftest.$ac_ext
135433
 
cat >>conftest.$ac_ext <<_ACEOF
135434
 
/* end confdefs.h.  */
135435
 
@%:@include <$ac_header>
135436
 
_ACEOF
135437
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
135438
 
case "(($ac_try" in
135439
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135440
 
  *) ac_try_echo=$ac_try;;
135441
 
esac
135442
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135443
 
$as_echo "$ac_try_echo") >&5
135444
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
135445
 
  ac_status=$?
135446
 
  grep -v '^ *+' conftest.er1 >conftest.err
135447
 
  rm -f conftest.er1
135448
 
  cat conftest.err >&5
135449
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135450
 
  (exit $ac_status); } >/dev/null && {
135451
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
135452
 
         test ! -s conftest.err
135453
 
       }; then
135454
 
  ac_header_preproc=yes
135455
 
else
135456
 
  $as_echo "$as_me: failed program was:" >&5
135457
 
sed 's/^/| /' conftest.$ac_ext >&5
135458
 
 
135459
 
  ac_header_preproc=no
135460
 
fi
135461
 
 
135462
 
rm -f conftest.err conftest.$ac_ext
135463
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
135464
 
$as_echo "$ac_header_preproc" >&6; }
135465
 
 
135466
 
# So?  What about this header?
135467
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
135468
 
  yes:no: )
135469
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
135470
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
135471
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
135472
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
135473
 
    ac_header_preproc=yes
135474
 
    ;;
135475
 
  no:yes:* )
135476
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
135477
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
135478
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
135479
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
135480
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
135481
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
135482
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
135483
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
135484
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
135485
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
135486
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
135487
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
135488
 
    
135489
 
    ;;
135490
 
esac
135491
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
135492
 
$as_echo_n "checking for $ac_header... " >&6; }
135493
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
135494
 
  $as_echo_n "(cached) " >&6
135495
 
else
135496
 
  eval "$as_ac_Header=\$ac_header_preproc"
135497
 
fi
135498
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
135499
 
                 $as_echo "$as_val"'`
135500
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
135501
 
$as_echo "$ac_res" >&6; }
135502
 
 
135503
 
fi
135504
 
as_val=`eval 'as_val=${'$as_ac_Header'}
135505
 
                 $as_echo "$as_val"'`
135506
 
   if test "x$as_val" = x""yes; then
135507
 
  cat >>confdefs.h <<_ACEOF
135508
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
135509
 
_ACEOF
135510
 
 
135511
 
fi
135512
 
 
135513
 
done
135514
 
 
135515
 
 
135516
 
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
135517
 
$as_echo_n "checking for size_t... " >&6; }
135518
 
if test "${ac_cv_type_size_t+set}" = set; then
135519
 
  $as_echo_n "(cached) " >&6
135520
 
else
135521
 
  ac_cv_type_size_t=no
135522
 
cat >conftest.$ac_ext <<_ACEOF
135523
 
/* confdefs.h.  */
135524
 
_ACEOF
135525
 
cat confdefs.h >>conftest.$ac_ext
135526
 
cat >>conftest.$ac_ext <<_ACEOF
135527
 
/* end confdefs.h.  */
135528
 
$ac_includes_default
135529
 
int
135530
 
main ()
135531
 
{
135532
 
if (sizeof (size_t))
135533
 
       return 0;
135534
 
  ;
135535
 
  return 0;
135536
 
}
135537
 
_ACEOF
135538
 
rm -f conftest.$ac_objext
135539
 
if { (ac_try="$ac_compile"
135540
 
case "(($ac_try" in
135541
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135542
 
  *) ac_try_echo=$ac_try;;
135543
 
esac
135544
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135545
 
$as_echo "$ac_try_echo") >&5
135546
 
  (eval "$ac_compile") 2>conftest.er1
135547
 
  ac_status=$?
135548
 
  grep -v '^ *+' conftest.er1 >conftest.err
135549
 
  rm -f conftest.er1
135550
 
  cat conftest.err >&5
135551
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135552
 
  (exit $ac_status); } && {
135553
 
         test -z "$ac_c_werror_flag" ||
135554
 
         test ! -s conftest.err
135555
 
       } && test -s conftest.$ac_objext; then
135556
 
  cat >conftest.$ac_ext <<_ACEOF
135557
 
/* confdefs.h.  */
135558
 
_ACEOF
135559
 
cat confdefs.h >>conftest.$ac_ext
135560
 
cat >>conftest.$ac_ext <<_ACEOF
135561
 
/* end confdefs.h.  */
135562
 
$ac_includes_default
135563
 
int
135564
 
main ()
135565
 
{
135566
 
if (sizeof ((size_t)))
135567
 
          return 0;
135568
 
  ;
135569
 
  return 0;
135570
 
}
135571
 
_ACEOF
135572
 
rm -f conftest.$ac_objext
135573
 
if { (ac_try="$ac_compile"
135574
 
case "(($ac_try" in
135575
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135576
 
  *) ac_try_echo=$ac_try;;
135577
 
esac
135578
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135579
 
$as_echo "$ac_try_echo") >&5
135580
 
  (eval "$ac_compile") 2>conftest.er1
135581
 
  ac_status=$?
135582
 
  grep -v '^ *+' conftest.er1 >conftest.err
135583
 
  rm -f conftest.er1
135584
 
  cat conftest.err >&5
135585
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135586
 
  (exit $ac_status); } && {
135587
 
         test -z "$ac_c_werror_flag" ||
135588
 
         test ! -s conftest.err
135589
 
       } && test -s conftest.$ac_objext; then
135590
 
  :
135591
 
else
135592
 
  $as_echo "$as_me: failed program was:" >&5
135593
 
sed 's/^/| /' conftest.$ac_ext >&5
135594
 
 
135595
 
        ac_cv_type_size_t=yes
135596
 
fi
135597
 
 
135598
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135599
 
else
135600
 
  $as_echo "$as_me: failed program was:" >&5
135601
 
sed 's/^/| /' conftest.$ac_ext >&5
135602
 
 
135603
 
        
135604
 
fi
135605
 
 
135606
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135607
 
fi
135608
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
135609
 
$as_echo "$ac_cv_type_size_t" >&6; }
135610
 
if test "x$ac_cv_type_size_t" = x""yes; then
135611
 
  :
135612
 
else
135613
 
  
135614
 
cat >>confdefs.h <<_ACEOF
135615
 
@%:@define size_t unsigned int
135616
 
_ACEOF
135617
 
 
135618
 
fi
135619
 
 
135620
 
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
135621
 
$as_echo_n "checking return type of signal handlers... " >&6; }
135622
 
if test "${ac_cv_type_signal+set}" = set; then
135623
 
  $as_echo_n "(cached) " >&6
135624
 
else
135625
 
  cat >conftest.$ac_ext <<_ACEOF
135626
 
/* confdefs.h.  */
135627
 
_ACEOF
135628
 
cat confdefs.h >>conftest.$ac_ext
135629
 
cat >>conftest.$ac_ext <<_ACEOF
135630
 
/* end confdefs.h.  */
135631
 
#include <sys/types.h>
135632
 
#include <signal.h>
135633
 
 
135634
 
int
135635
 
main ()
135636
 
{
135637
 
return *(signal (0, 0)) (0) == 1;
135638
 
  ;
135639
 
  return 0;
135640
 
}
135641
 
_ACEOF
135642
 
rm -f conftest.$ac_objext
135643
 
if { (ac_try="$ac_compile"
135644
 
case "(($ac_try" in
135645
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135646
 
  *) ac_try_echo=$ac_try;;
135647
 
esac
135648
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135649
 
$as_echo "$ac_try_echo") >&5
135650
 
  (eval "$ac_compile") 2>conftest.er1
135651
 
  ac_status=$?
135652
 
  grep -v '^ *+' conftest.er1 >conftest.err
135653
 
  rm -f conftest.er1
135654
 
  cat conftest.err >&5
135655
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135656
 
  (exit $ac_status); } && {
135657
 
         test -z "$ac_c_werror_flag" ||
135658
 
         test ! -s conftest.err
135659
 
       } && test -s conftest.$ac_objext; then
135660
 
  ac_cv_type_signal=int
135661
 
else
135662
 
  $as_echo "$as_me: failed program was:" >&5
135663
 
sed 's/^/| /' conftest.$ac_ext >&5
135664
 
 
135665
 
        ac_cv_type_signal=void
135666
 
fi
135667
 
 
135668
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135669
 
fi
135670
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
135671
 
$as_echo "$ac_cv_type_signal" >&6; }
135672
 
 
135673
 
cat >>confdefs.h <<_ACEOF
135674
 
@%:@define RETSIGTYPE $ac_cv_type_signal
135675
 
_ACEOF
135676
 
 
135677
 
 
135678
 
 
135679
 
 
135680
 
 
135681
 
 
135682
 
 
135683
 
{ $as_echo "$as_me:$LINENO: checking for uint" >&5
135684
 
$as_echo_n "checking for uint... " >&6; }
135685
 
if test "${ac_cv_type_uint+set}" = set; then
135686
 
  $as_echo_n "(cached) " >&6
135687
 
else
135688
 
  ac_cv_type_uint=no
135689
 
cat >conftest.$ac_ext <<_ACEOF
135690
 
/* confdefs.h.  */
135691
 
_ACEOF
135692
 
cat confdefs.h >>conftest.$ac_ext
135693
 
cat >>conftest.$ac_ext <<_ACEOF
135694
 
/* end confdefs.h.  */
135695
 
$ac_includes_default
135696
 
int
135697
 
main ()
135698
 
{
135699
 
if (sizeof (uint))
135700
 
       return 0;
135701
 
  ;
135702
 
  return 0;
135703
 
}
135704
 
_ACEOF
135705
 
rm -f conftest.$ac_objext
135706
 
if { (ac_try="$ac_compile"
135707
 
case "(($ac_try" in
135708
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135709
 
  *) ac_try_echo=$ac_try;;
135710
 
esac
135711
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135712
 
$as_echo "$ac_try_echo") >&5
135713
 
  (eval "$ac_compile") 2>conftest.er1
135714
 
  ac_status=$?
135715
 
  grep -v '^ *+' conftest.er1 >conftest.err
135716
 
  rm -f conftest.er1
135717
 
  cat conftest.err >&5
135718
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135719
 
  (exit $ac_status); } && {
135720
 
         test -z "$ac_c_werror_flag" ||
135721
 
         test ! -s conftest.err
135722
 
       } && test -s conftest.$ac_objext; then
135723
 
  cat >conftest.$ac_ext <<_ACEOF
135724
 
/* confdefs.h.  */
135725
 
_ACEOF
135726
 
cat confdefs.h >>conftest.$ac_ext
135727
 
cat >>conftest.$ac_ext <<_ACEOF
135728
 
/* end confdefs.h.  */
135729
 
$ac_includes_default
135730
 
int
135731
 
main ()
135732
 
{
135733
 
if (sizeof ((uint)))
135734
 
          return 0;
135735
 
  ;
135736
 
  return 0;
135737
 
}
135738
 
_ACEOF
135739
 
rm -f conftest.$ac_objext
135740
 
if { (ac_try="$ac_compile"
135741
 
case "(($ac_try" in
135742
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135743
 
  *) ac_try_echo=$ac_try;;
135744
 
esac
135745
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135746
 
$as_echo "$ac_try_echo") >&5
135747
 
  (eval "$ac_compile") 2>conftest.er1
135748
 
  ac_status=$?
135749
 
  grep -v '^ *+' conftest.er1 >conftest.err
135750
 
  rm -f conftest.er1
135751
 
  cat conftest.err >&5
135752
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135753
 
  (exit $ac_status); } && {
135754
 
         test -z "$ac_c_werror_flag" ||
135755
 
         test ! -s conftest.err
135756
 
       } && test -s conftest.$ac_objext; then
135757
 
  :
135758
 
else
135759
 
  $as_echo "$as_me: failed program was:" >&5
135760
 
sed 's/^/| /' conftest.$ac_ext >&5
135761
 
 
135762
 
        ac_cv_type_uint=yes
135763
 
fi
135764
 
 
135765
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135766
 
else
135767
 
  $as_echo "$as_me: failed program was:" >&5
135768
 
sed 's/^/| /' conftest.$ac_ext >&5
135769
 
 
135770
 
        
135771
 
fi
135772
 
 
135773
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135774
 
fi
135775
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5
135776
 
$as_echo "$ac_cv_type_uint" >&6; }
135777
 
if test "x$ac_cv_type_uint" = x""yes; then
135778
 
  :
135779
 
else
135780
 
  
135781
 
cat >>confdefs.h <<_ACEOF
135782
 
@%:@define uint unsigned int 
135783
 
_ACEOF
135784
 
 
135785
 
fi
135786
 
 
135787
 
{ $as_echo "$as_me:$LINENO: checking for ulong" >&5
135788
 
$as_echo_n "checking for ulong... " >&6; }
135789
 
if test "${ac_cv_type_ulong+set}" = set; then
135790
 
  $as_echo_n "(cached) " >&6
135791
 
else
135792
 
  ac_cv_type_ulong=no
135793
 
cat >conftest.$ac_ext <<_ACEOF
135794
 
/* confdefs.h.  */
135795
 
_ACEOF
135796
 
cat confdefs.h >>conftest.$ac_ext
135797
 
cat >>conftest.$ac_ext <<_ACEOF
135798
 
/* end confdefs.h.  */
135799
 
$ac_includes_default
135800
 
int
135801
 
main ()
135802
 
{
135803
 
if (sizeof (ulong))
135804
 
       return 0;
135805
 
  ;
135806
 
  return 0;
135807
 
}
135808
 
_ACEOF
135809
 
rm -f conftest.$ac_objext
135810
 
if { (ac_try="$ac_compile"
135811
 
case "(($ac_try" in
135812
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135813
 
  *) ac_try_echo=$ac_try;;
135814
 
esac
135815
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135816
 
$as_echo "$ac_try_echo") >&5
135817
 
  (eval "$ac_compile") 2>conftest.er1
135818
 
  ac_status=$?
135819
 
  grep -v '^ *+' conftest.er1 >conftest.err
135820
 
  rm -f conftest.er1
135821
 
  cat conftest.err >&5
135822
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135823
 
  (exit $ac_status); } && {
135824
 
         test -z "$ac_c_werror_flag" ||
135825
 
         test ! -s conftest.err
135826
 
       } && test -s conftest.$ac_objext; then
135827
 
  cat >conftest.$ac_ext <<_ACEOF
135828
 
/* confdefs.h.  */
135829
 
_ACEOF
135830
 
cat confdefs.h >>conftest.$ac_ext
135831
 
cat >>conftest.$ac_ext <<_ACEOF
135832
 
/* end confdefs.h.  */
135833
 
$ac_includes_default
135834
 
int
135835
 
main ()
135836
 
{
135837
 
if (sizeof ((ulong)))
135838
 
          return 0;
135839
 
  ;
135840
 
  return 0;
135841
 
}
135842
 
_ACEOF
135843
 
rm -f conftest.$ac_objext
135844
 
if { (ac_try="$ac_compile"
135845
 
case "(($ac_try" in
135846
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135847
 
  *) ac_try_echo=$ac_try;;
135848
 
esac
135849
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135850
 
$as_echo "$ac_try_echo") >&5
135851
 
  (eval "$ac_compile") 2>conftest.er1
135852
 
  ac_status=$?
135853
 
  grep -v '^ *+' conftest.er1 >conftest.err
135854
 
  rm -f conftest.er1
135855
 
  cat conftest.err >&5
135856
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135857
 
  (exit $ac_status); } && {
135858
 
         test -z "$ac_c_werror_flag" ||
135859
 
         test ! -s conftest.err
135860
 
       } && test -s conftest.$ac_objext; then
135861
 
  :
135862
 
else
135863
 
  $as_echo "$as_me: failed program was:" >&5
135864
 
sed 's/^/| /' conftest.$ac_ext >&5
135865
 
 
135866
 
        ac_cv_type_ulong=yes
135867
 
fi
135868
 
 
135869
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135870
 
else
135871
 
  $as_echo "$as_me: failed program was:" >&5
135872
 
sed 's/^/| /' conftest.$ac_ext >&5
135873
 
 
135874
 
        
135875
 
fi
135876
 
 
135877
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135878
 
fi
135879
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ulong" >&5
135880
 
$as_echo "$ac_cv_type_ulong" >&6; }
135881
 
if test "x$ac_cv_type_ulong" = x""yes; then
135882
 
  :
135883
 
else
135884
 
  
135885
 
cat >>confdefs.h <<_ACEOF
135886
 
@%:@define ulong unsigned long 
135887
 
_ACEOF
135888
 
 
135889
 
fi
135890
 
 
135891
 
 
135892
 
 
135893
 
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
135894
 
$as_echo_n "checking for int32_t... " >&6; }
135895
 
cat >conftest.$ac_ext <<_ACEOF
135896
 
/* confdefs.h.  */
135897
 
_ACEOF
135898
 
cat confdefs.h >>conftest.$ac_ext
135899
 
cat >>conftest.$ac_ext <<_ACEOF
135900
 
/* end confdefs.h.  */
135901
 
 
135902
 
#if HAVE_SYS_TYPES_H  
135903
 
#include <sys/types.h>
135904
 
#endif
135905
 
#if HAVE_INTTYPES_H  
135906
 
#include <inttypes.h>
135907
 
#elif HAVE_STDINT_H
135908
 
#include <stdint.h>
135909
 
#endif
135910
 
int
135911
 
main ()
135912
 
{
135913
 
if ((int32_t *) 0)
135914
 
  return 0;
135915
 
if (sizeof (int32_t))
135916
 
  return 0;
135917
 
 
135918
 
  ;
135919
 
  return 0;
135920
 
}
135921
 
_ACEOF
135922
 
rm -f conftest.$ac_objext
135923
 
if { (ac_try="$ac_compile"
135924
 
case "(($ac_try" in
135925
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135926
 
  *) ac_try_echo=$ac_try;;
135927
 
esac
135928
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135929
 
$as_echo "$ac_try_echo") >&5
135930
 
  (eval "$ac_compile") 2>conftest.er1
135931
 
  ac_status=$?
135932
 
  grep -v '^ *+' conftest.er1 >conftest.err
135933
 
  rm -f conftest.er1
135934
 
  cat conftest.err >&5
135935
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
135936
 
  (exit $ac_status); } && {
135937
 
         test -z "$ac_c_werror_flag" ||
135938
 
         test ! -s conftest.err
135939
 
       } && test -s conftest.$ac_objext; then
135940
 
  
135941
 
  
135942
 
cat >>confdefs.h <<_ACEOF
135943
 
@%:@define HAVE_INT32_T 1
135944
 
_ACEOF
135945
 
 
135946
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
135947
 
$as_echo "yes" >&6; }
135948
 
 
135949
 
else
135950
 
  $as_echo "$as_me: failed program was:" >&5
135951
 
sed 's/^/| /' conftest.$ac_ext >&5
135952
 
 
135953
 
        { $as_echo "$as_me:$LINENO: result: no" >&5
135954
 
$as_echo "no" >&6; }
135955
 
 
135956
 
fi
135957
 
 
135958
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
135959
 
 
135960
 
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
135961
 
$as_echo_n "checking for uint32_t... " >&6; }
135962
 
cat >conftest.$ac_ext <<_ACEOF
135963
 
/* confdefs.h.  */
135964
 
_ACEOF
135965
 
cat confdefs.h >>conftest.$ac_ext
135966
 
cat >>conftest.$ac_ext <<_ACEOF
135967
 
/* end confdefs.h.  */
135968
 
 
135969
 
#if HAVE_SYS_TYPES_H  
135970
 
#include <sys/types.h>
135971
 
#endif
135972
 
#if HAVE_INTTYPES_H  
135973
 
#include <inttypes.h>
135974
 
#elif HAVE_STDINT_H
135975
 
#include <stdint.h>
135976
 
#endif
135977
 
int
135978
 
main ()
135979
 
{
135980
 
if ((uint32_t *) 0)
135981
 
  return 0;
135982
 
if (sizeof (uint32_t))
135983
 
  return 0;
135984
 
 
135985
 
  ;
135986
 
  return 0;
135987
 
}
135988
 
_ACEOF
135989
 
rm -f conftest.$ac_objext
135990
 
if { (ac_try="$ac_compile"
135991
 
case "(($ac_try" in
135992
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
135993
 
  *) ac_try_echo=$ac_try;;
135994
 
esac
135995
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
135996
 
$as_echo "$ac_try_echo") >&5
135997
 
  (eval "$ac_compile") 2>conftest.er1
135998
 
  ac_status=$?
135999
 
  grep -v '^ *+' conftest.er1 >conftest.err
136000
 
  rm -f conftest.er1
136001
 
  cat conftest.err >&5
136002
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136003
 
  (exit $ac_status); } && {
136004
 
         test -z "$ac_c_werror_flag" ||
136005
 
         test ! -s conftest.err
136006
 
       } && test -s conftest.$ac_objext; then
136007
 
  
136008
 
  
136009
 
cat >>confdefs.h <<_ACEOF
136010
 
@%:@define HAVE_UINT32_T 1
136011
 
_ACEOF
136012
 
 
136013
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
136014
 
$as_echo "yes" >&6; }
136015
 
 
136016
 
else
136017
 
  $as_echo "$as_me: failed program was:" >&5
136018
 
sed 's/^/| /' conftest.$ac_ext >&5
136019
 
 
136020
 
        { $as_echo "$as_me:$LINENO: result: no" >&5
136021
 
$as_echo "no" >&6; }
136022
 
 
136023
 
fi
136024
 
 
136025
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
136026
 
 
136027
 
 
136028
 
for ac_func in vprintf
136029
 
do
136030
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
136031
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
136032
 
$as_echo_n "checking for $ac_func... " >&6; }
136033
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
136034
 
  $as_echo_n "(cached) " >&6
136035
 
else
136036
 
  cat >conftest.$ac_ext <<_ACEOF
136037
 
/* confdefs.h.  */
136038
 
_ACEOF
136039
 
cat confdefs.h >>conftest.$ac_ext
136040
 
cat >>conftest.$ac_ext <<_ACEOF
136041
 
/* end confdefs.h.  */
136042
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
136043
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
136044
 
#define $ac_func innocuous_$ac_func
136045
 
 
136046
 
/* System header to define __stub macros and hopefully few prototypes,
136047
 
    which can conflict with char $ac_func (); below.
136048
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
136049
 
    <limits.h> exists even on freestanding compilers.  */
136050
 
 
136051
 
#ifdef __STDC__
136052
 
# include <limits.h>
136053
 
#else
136054
 
# include <assert.h>
136055
 
#endif
136056
 
 
136057
 
#undef $ac_func
136058
 
 
136059
 
/* Override any GCC internal prototype to avoid an error.
136060
 
   Use char because int might match the return type of a GCC
136061
 
   builtin and then its argument prototype would still apply.  */
136062
 
#ifdef __cplusplus
136063
 
extern "C"
136064
 
#endif
136065
 
char $ac_func ();
136066
 
/* The GNU C library defines this for functions which it implements
136067
 
    to always fail with ENOSYS.  Some functions are actually named
136068
 
    something starting with __ and the normal name is an alias.  */
136069
 
#if defined __stub_$ac_func || defined __stub___$ac_func
136070
 
choke me
136071
 
#endif
136072
 
 
136073
 
int
136074
 
main ()
136075
 
{
136076
 
return $ac_func ();
136077
 
  ;
136078
 
  return 0;
136079
 
}
136080
 
_ACEOF
136081
 
rm -f conftest.$ac_objext conftest$ac_exeext
136082
 
if { (ac_try="$ac_link"
136083
 
case "(($ac_try" in
136084
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136085
 
  *) ac_try_echo=$ac_try;;
136086
 
esac
136087
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136088
 
$as_echo "$ac_try_echo") >&5
136089
 
  (eval "$ac_link") 2>conftest.er1
136090
 
  ac_status=$?
136091
 
  grep -v '^ *+' conftest.er1 >conftest.err
136092
 
  rm -f conftest.er1
136093
 
  cat conftest.err >&5
136094
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136095
 
  (exit $ac_status); } && {
136096
 
         test -z "$ac_c_werror_flag" ||
136097
 
         test ! -s conftest.err
136098
 
       } && test -s conftest$ac_exeext && {
136099
 
         test "$cross_compiling" = yes ||
136100
 
         $as_test_x conftest$ac_exeext
136101
 
       }; then
136102
 
  eval "$as_ac_var=yes"
136103
 
else
136104
 
  $as_echo "$as_me: failed program was:" >&5
136105
 
sed 's/^/| /' conftest.$ac_ext >&5
136106
 
 
136107
 
        eval "$as_ac_var=no"
136108
 
fi
136109
 
 
136110
 
rm -rf conftest.dSYM
136111
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
136112
 
      conftest$ac_exeext conftest.$ac_ext
136113
 
fi
136114
 
ac_res=`eval 'as_val=${'$as_ac_var'}
136115
 
                 $as_echo "$as_val"'`
136116
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
136117
 
$as_echo "$ac_res" >&6; }
136118
 
as_val=`eval 'as_val=${'$as_ac_var'}
136119
 
                 $as_echo "$as_val"'`
136120
 
   if test "x$as_val" = x""yes; then
136121
 
  cat >>confdefs.h <<_ACEOF
136122
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
136123
 
_ACEOF
136124
 
 
136125
 
{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
136126
 
$as_echo_n "checking for _doprnt... " >&6; }
136127
 
if test "${ac_cv_func__doprnt+set}" = set; then
136128
 
  $as_echo_n "(cached) " >&6
136129
 
else
136130
 
  cat >conftest.$ac_ext <<_ACEOF
136131
 
/* confdefs.h.  */
136132
 
_ACEOF
136133
 
cat confdefs.h >>conftest.$ac_ext
136134
 
cat >>conftest.$ac_ext <<_ACEOF
136135
 
/* end confdefs.h.  */
136136
 
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
136137
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
136138
 
#define _doprnt innocuous__doprnt
136139
 
 
136140
 
/* System header to define __stub macros and hopefully few prototypes,
136141
 
    which can conflict with char _doprnt (); below.
136142
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
136143
 
    <limits.h> exists even on freestanding compilers.  */
136144
 
 
136145
 
#ifdef __STDC__
136146
 
# include <limits.h>
136147
 
#else
136148
 
# include <assert.h>
136149
 
#endif
136150
 
 
136151
 
#undef _doprnt
136152
 
 
136153
 
/* Override any GCC internal prototype to avoid an error.
136154
 
   Use char because int might match the return type of a GCC
136155
 
   builtin and then its argument prototype would still apply.  */
136156
 
#ifdef __cplusplus
136157
 
extern "C"
136158
 
#endif
136159
 
char _doprnt ();
136160
 
/* The GNU C library defines this for functions which it implements
136161
 
    to always fail with ENOSYS.  Some functions are actually named
136162
 
    something starting with __ and the normal name is an alias.  */
136163
 
#if defined __stub__doprnt || defined __stub____doprnt
136164
 
choke me
136165
 
#endif
136166
 
 
136167
 
int
136168
 
main ()
136169
 
{
136170
 
return _doprnt ();
136171
 
  ;
136172
 
  return 0;
136173
 
}
136174
 
_ACEOF
136175
 
rm -f conftest.$ac_objext conftest$ac_exeext
136176
 
if { (ac_try="$ac_link"
136177
 
case "(($ac_try" in
136178
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136179
 
  *) ac_try_echo=$ac_try;;
136180
 
esac
136181
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136182
 
$as_echo "$ac_try_echo") >&5
136183
 
  (eval "$ac_link") 2>conftest.er1
136184
 
  ac_status=$?
136185
 
  grep -v '^ *+' conftest.er1 >conftest.err
136186
 
  rm -f conftest.er1
136187
 
  cat conftest.err >&5
136188
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136189
 
  (exit $ac_status); } && {
136190
 
         test -z "$ac_c_werror_flag" ||
136191
 
         test ! -s conftest.err
136192
 
       } && test -s conftest$ac_exeext && {
136193
 
         test "$cross_compiling" = yes ||
136194
 
         $as_test_x conftest$ac_exeext
136195
 
       }; then
136196
 
  ac_cv_func__doprnt=yes
136197
 
else
136198
 
  $as_echo "$as_me: failed program was:" >&5
136199
 
sed 's/^/| /' conftest.$ac_ext >&5
136200
 
 
136201
 
        ac_cv_func__doprnt=no
136202
 
fi
136203
 
 
136204
 
rm -rf conftest.dSYM
136205
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
136206
 
      conftest$ac_exeext conftest.$ac_ext
136207
 
fi
136208
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
136209
 
$as_echo "$ac_cv_func__doprnt" >&6; }
136210
 
if test "x$ac_cv_func__doprnt" = x""yes; then
136211
 
  
136212
 
cat >>confdefs.h <<\_ACEOF
136213
 
@%:@define HAVE_DOPRNT 1
136214
 
_ACEOF
136215
 
 
136216
 
fi
136217
 
 
136218
 
fi
136219
 
done
136220
 
 
136221
 
 
136222
 
{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
136223
 
$as_echo_n "checking for working memcmp... " >&6; }
136224
 
if test "${ac_cv_func_memcmp_working+set}" = set; then
136225
 
  $as_echo_n "(cached) " >&6
136226
 
else
136227
 
  if test "$cross_compiling" = yes; then
136228
 
  ac_cv_func_memcmp_working=no
136229
 
else
136230
 
  cat >conftest.$ac_ext <<_ACEOF
136231
 
/* confdefs.h.  */
136232
 
_ACEOF
136233
 
cat confdefs.h >>conftest.$ac_ext
136234
 
cat >>conftest.$ac_ext <<_ACEOF
136235
 
/* end confdefs.h.  */
136236
 
$ac_includes_default
136237
 
int
136238
 
main ()
136239
 
{
136240
 
 
136241
 
  /* Some versions of memcmp are not 8-bit clean.  */
136242
 
  char c0 = '\100', c1 = '\200', c2 = '\201';
136243
 
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
136244
 
    return 1;
136245
 
 
136246
 
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
136247
 
     or more and with at least one buffer not starting on a 4-byte boundary.
136248
 
     William Lewis provided this test program.   */
136249
 
  {
136250
 
    char foo[21];
136251
 
    char bar[21];
136252
 
    int i;
136253
 
    for (i = 0; i < 4; i++)
136254
 
      {
136255
 
        char *a = foo + i;
136256
 
        char *b = bar + i;
136257
 
        strcpy (a, "--------01111111");
136258
 
        strcpy (b, "--------10000000");
136259
 
        if (memcmp (a, b, 16) >= 0)
136260
 
          return 1;
136261
 
      }
136262
 
    return 0;
136263
 
  }
136264
 
 
136265
 
  ;
136266
 
  return 0;
136267
 
}
136268
 
_ACEOF
136269
 
rm -f conftest$ac_exeext
136270
 
if { (ac_try="$ac_link"
136271
 
case "(($ac_try" in
136272
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136273
 
  *) ac_try_echo=$ac_try;;
136274
 
esac
136275
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136276
 
$as_echo "$ac_try_echo") >&5
136277
 
  (eval "$ac_link") 2>&5
136278
 
  ac_status=$?
136279
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136280
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
136281
 
  { (case "(($ac_try" in
136282
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136283
 
  *) ac_try_echo=$ac_try;;
136284
 
esac
136285
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136286
 
$as_echo "$ac_try_echo") >&5
136287
 
  (eval "$ac_try") 2>&5
136288
 
  ac_status=$?
136289
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136290
 
  (exit $ac_status); }; }; then
136291
 
  ac_cv_func_memcmp_working=yes
136292
 
else
136293
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
136294
 
$as_echo "$as_me: failed program was:" >&5
136295
 
sed 's/^/| /' conftest.$ac_ext >&5
136296
 
 
136297
 
( exit $ac_status )
136298
 
ac_cv_func_memcmp_working=no
136299
 
fi
136300
 
rm -rf conftest.dSYM
136301
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
136302
 
fi
136303
 
 
136304
 
 
136305
 
fi
136306
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
136307
 
$as_echo "$ac_cv_func_memcmp_working" >&6; }
136308
 
test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
136309
 
  *" memcmp.$ac_objext "* ) ;;
136310
 
  *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
136311
 
 ;;
136312
 
esac
136313
 
 
136314
 
 
136315
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
136316
 
# for constant arguments.  Useless!
136317
 
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
136318
 
$as_echo_n "checking for working alloca.h... " >&6; }
136319
 
if test "${ac_cv_working_alloca_h+set}" = set; then
136320
 
  $as_echo_n "(cached) " >&6
136321
 
else
136322
 
  cat >conftest.$ac_ext <<_ACEOF
136323
 
/* confdefs.h.  */
136324
 
_ACEOF
136325
 
cat confdefs.h >>conftest.$ac_ext
136326
 
cat >>conftest.$ac_ext <<_ACEOF
136327
 
/* end confdefs.h.  */
136328
 
@%:@include <alloca.h>
136329
 
int
136330
 
main ()
136331
 
{
136332
 
char *p = (char *) alloca (2 * sizeof (int));
136333
 
                          if (p) return 0;
136334
 
  ;
136335
 
  return 0;
136336
 
}
136337
 
_ACEOF
136338
 
rm -f conftest.$ac_objext conftest$ac_exeext
136339
 
if { (ac_try="$ac_link"
136340
 
case "(($ac_try" in
136341
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136342
 
  *) ac_try_echo=$ac_try;;
136343
 
esac
136344
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136345
 
$as_echo "$ac_try_echo") >&5
136346
 
  (eval "$ac_link") 2>conftest.er1
136347
 
  ac_status=$?
136348
 
  grep -v '^ *+' conftest.er1 >conftest.err
136349
 
  rm -f conftest.er1
136350
 
  cat conftest.err >&5
136351
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136352
 
  (exit $ac_status); } && {
136353
 
         test -z "$ac_c_werror_flag" ||
136354
 
         test ! -s conftest.err
136355
 
       } && test -s conftest$ac_exeext && {
136356
 
         test "$cross_compiling" = yes ||
136357
 
         $as_test_x conftest$ac_exeext
136358
 
       }; then
136359
 
  ac_cv_working_alloca_h=yes
136360
 
else
136361
 
  $as_echo "$as_me: failed program was:" >&5
136362
 
sed 's/^/| /' conftest.$ac_ext >&5
136363
 
 
136364
 
        ac_cv_working_alloca_h=no
136365
 
fi
136366
 
 
136367
 
rm -rf conftest.dSYM
136368
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
136369
 
      conftest$ac_exeext conftest.$ac_ext
136370
 
fi
136371
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
136372
 
$as_echo "$ac_cv_working_alloca_h" >&6; }
136373
 
if test $ac_cv_working_alloca_h = yes; then
136374
 
  
136375
 
cat >>confdefs.h <<\_ACEOF
136376
 
@%:@define HAVE_ALLOCA_H 1
136377
 
_ACEOF
136378
 
 
136379
 
fi
136380
 
 
136381
 
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
136382
 
$as_echo_n "checking for alloca... " >&6; }
136383
 
if test "${ac_cv_func_alloca_works+set}" = set; then
136384
 
  $as_echo_n "(cached) " >&6
136385
 
else
136386
 
  cat >conftest.$ac_ext <<_ACEOF
136387
 
/* confdefs.h.  */
136388
 
_ACEOF
136389
 
cat confdefs.h >>conftest.$ac_ext
136390
 
cat >>conftest.$ac_ext <<_ACEOF
136391
 
/* end confdefs.h.  */
136392
 
#ifdef __GNUC__
136393
 
# define alloca __builtin_alloca
136394
 
#else
136395
 
# ifdef _MSC_VER
136396
 
#  include <malloc.h>
136397
 
#  define alloca _alloca
136398
 
# else
136399
 
#  ifdef HAVE_ALLOCA_H
136400
 
#   include <alloca.h>
136401
 
#  else
136402
 
#   ifdef _AIX
136403
 
 #pragma alloca
136404
 
#   else
136405
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
136406
 
char *alloca ();
136407
 
#    endif
136408
 
#   endif
136409
 
#  endif
136410
 
# endif
136411
 
#endif
136412
 
 
136413
 
int
136414
 
main ()
136415
 
{
136416
 
char *p = (char *) alloca (1);
136417
 
                                    if (p) return 0;
136418
 
  ;
136419
 
  return 0;
136420
 
}
136421
 
_ACEOF
136422
 
rm -f conftest.$ac_objext conftest$ac_exeext
136423
 
if { (ac_try="$ac_link"
136424
 
case "(($ac_try" in
136425
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136426
 
  *) ac_try_echo=$ac_try;;
136427
 
esac
136428
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136429
 
$as_echo "$ac_try_echo") >&5
136430
 
  (eval "$ac_link") 2>conftest.er1
136431
 
  ac_status=$?
136432
 
  grep -v '^ *+' conftest.er1 >conftest.err
136433
 
  rm -f conftest.er1
136434
 
  cat conftest.err >&5
136435
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136436
 
  (exit $ac_status); } && {
136437
 
         test -z "$ac_c_werror_flag" ||
136438
 
         test ! -s conftest.err
136439
 
       } && test -s conftest$ac_exeext && {
136440
 
         test "$cross_compiling" = yes ||
136441
 
         $as_test_x conftest$ac_exeext
136442
 
       }; then
136443
 
  ac_cv_func_alloca_works=yes
136444
 
else
136445
 
  $as_echo "$as_me: failed program was:" >&5
136446
 
sed 's/^/| /' conftest.$ac_ext >&5
136447
 
 
136448
 
        ac_cv_func_alloca_works=no
136449
 
fi
136450
 
 
136451
 
rm -rf conftest.dSYM
136452
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
136453
 
      conftest$ac_exeext conftest.$ac_ext
136454
 
fi
136455
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
136456
 
$as_echo "$ac_cv_func_alloca_works" >&6; }
136457
 
 
136458
 
if test $ac_cv_func_alloca_works = yes; then
136459
 
  
136460
 
cat >>confdefs.h <<\_ACEOF
136461
 
@%:@define HAVE_ALLOCA 1
136462
 
_ACEOF
136463
 
 
136464
 
else
136465
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
136466
 
# that cause trouble.  Some versions do not even contain alloca or
136467
 
# contain a buggy version.  If you still want to use their alloca,
136468
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
136469
 
 
136470
 
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
136471
 
 
136472
 
cat >>confdefs.h <<\_ACEOF
136473
 
@%:@define C_ALLOCA 1
136474
 
_ACEOF
136475
 
 
136476
 
 
136477
 
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
136478
 
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
136479
 
if test "${ac_cv_os_cray+set}" = set; then
136480
 
  $as_echo_n "(cached) " >&6
136481
 
else
136482
 
  cat >conftest.$ac_ext <<_ACEOF
136483
 
/* confdefs.h.  */
136484
 
_ACEOF
136485
 
cat confdefs.h >>conftest.$ac_ext
136486
 
cat >>conftest.$ac_ext <<_ACEOF
136487
 
/* end confdefs.h.  */
136488
 
#if defined CRAY && ! defined CRAY2
136489
 
webecray
136490
 
#else
136491
 
wenotbecray
136492
 
#endif
136493
 
 
136494
 
_ACEOF
136495
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
136496
 
  $EGREP "webecray" >/dev/null 2>&1; then
136497
 
  ac_cv_os_cray=yes
136498
 
else
136499
 
  ac_cv_os_cray=no
136500
 
fi
136501
 
rm -f conftest*
136502
 
 
136503
 
fi
136504
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
136505
 
$as_echo "$ac_cv_os_cray" >&6; }
136506
 
if test $ac_cv_os_cray = yes; then
136507
 
  for ac_func in _getb67 GETB67 getb67; do
136508
 
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
136509
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
136510
 
$as_echo_n "checking for $ac_func... " >&6; }
136511
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
136512
 
  $as_echo_n "(cached) " >&6
136513
 
else
136514
 
  cat >conftest.$ac_ext <<_ACEOF
136515
 
/* confdefs.h.  */
136516
 
_ACEOF
136517
 
cat confdefs.h >>conftest.$ac_ext
136518
 
cat >>conftest.$ac_ext <<_ACEOF
136519
 
/* end confdefs.h.  */
136520
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
136521
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
136522
 
#define $ac_func innocuous_$ac_func
136523
 
 
136524
 
/* System header to define __stub macros and hopefully few prototypes,
136525
 
    which can conflict with char $ac_func (); below.
136526
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
136527
 
    <limits.h> exists even on freestanding compilers.  */
136528
 
 
136529
 
#ifdef __STDC__
136530
 
# include <limits.h>
136531
 
#else
136532
 
# include <assert.h>
136533
 
#endif
136534
 
 
136535
 
#undef $ac_func
136536
 
 
136537
 
/* Override any GCC internal prototype to avoid an error.
136538
 
   Use char because int might match the return type of a GCC
136539
 
   builtin and then its argument prototype would still apply.  */
136540
 
#ifdef __cplusplus
136541
 
extern "C"
136542
 
#endif
136543
 
char $ac_func ();
136544
 
/* The GNU C library defines this for functions which it implements
136545
 
    to always fail with ENOSYS.  Some functions are actually named
136546
 
    something starting with __ and the normal name is an alias.  */
136547
 
#if defined __stub_$ac_func || defined __stub___$ac_func
136548
 
choke me
136549
 
#endif
136550
 
 
136551
 
int
136552
 
main ()
136553
 
{
136554
 
return $ac_func ();
136555
 
  ;
136556
 
  return 0;
136557
 
}
136558
 
_ACEOF
136559
 
rm -f conftest.$ac_objext conftest$ac_exeext
136560
 
if { (ac_try="$ac_link"
136561
 
case "(($ac_try" in
136562
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136563
 
  *) ac_try_echo=$ac_try;;
136564
 
esac
136565
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136566
 
$as_echo "$ac_try_echo") >&5
136567
 
  (eval "$ac_link") 2>conftest.er1
136568
 
  ac_status=$?
136569
 
  grep -v '^ *+' conftest.er1 >conftest.err
136570
 
  rm -f conftest.er1
136571
 
  cat conftest.err >&5
136572
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136573
 
  (exit $ac_status); } && {
136574
 
         test -z "$ac_c_werror_flag" ||
136575
 
         test ! -s conftest.err
136576
 
       } && test -s conftest$ac_exeext && {
136577
 
         test "$cross_compiling" = yes ||
136578
 
         $as_test_x conftest$ac_exeext
136579
 
       }; then
136580
 
  eval "$as_ac_var=yes"
136581
 
else
136582
 
  $as_echo "$as_me: failed program was:" >&5
136583
 
sed 's/^/| /' conftest.$ac_ext >&5
136584
 
 
136585
 
        eval "$as_ac_var=no"
136586
 
fi
136587
 
 
136588
 
rm -rf conftest.dSYM
136589
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
136590
 
      conftest$ac_exeext conftest.$ac_ext
136591
 
fi
136592
 
ac_res=`eval 'as_val=${'$as_ac_var'}
136593
 
                 $as_echo "$as_val"'`
136594
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
136595
 
$as_echo "$ac_res" >&6; }
136596
 
as_val=`eval 'as_val=${'$as_ac_var'}
136597
 
                 $as_echo "$as_val"'`
136598
 
   if test "x$as_val" = x""yes; then
136599
 
  
136600
 
cat >>confdefs.h <<_ACEOF
136601
 
@%:@define CRAY_STACKSEG_END $ac_func
136602
 
_ACEOF
136603
 
 
136604
 
    break
136605
 
fi
136606
 
 
136607
 
  done
136608
 
fi
136609
 
 
136610
 
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
136611
 
$as_echo_n "checking stack direction for C alloca... " >&6; }
136612
 
if test "${ac_cv_c_stack_direction+set}" = set; then
136613
 
  $as_echo_n "(cached) " >&6
136614
 
else
136615
 
  if test "$cross_compiling" = yes; then
136616
 
  ac_cv_c_stack_direction=0
136617
 
else
136618
 
  cat >conftest.$ac_ext <<_ACEOF
136619
 
/* confdefs.h.  */
136620
 
_ACEOF
136621
 
cat confdefs.h >>conftest.$ac_ext
136622
 
cat >>conftest.$ac_ext <<_ACEOF
136623
 
/* end confdefs.h.  */
136624
 
$ac_includes_default
136625
 
int
136626
 
find_stack_direction ()
136627
 
{
136628
 
  static char *addr = 0;
136629
 
  auto char dummy;
136630
 
  if (addr == 0)
136631
 
    {
136632
 
      addr = &dummy;
136633
 
      return find_stack_direction ();
136634
 
    }
136635
 
  else
136636
 
    return (&dummy > addr) ? 1 : -1;
136637
 
}
136638
 
 
136639
 
int
136640
 
main ()
136641
 
{
136642
 
  return find_stack_direction () < 0;
136643
 
}
136644
 
_ACEOF
136645
 
rm -f conftest$ac_exeext
136646
 
if { (ac_try="$ac_link"
136647
 
case "(($ac_try" in
136648
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136649
 
  *) ac_try_echo=$ac_try;;
136650
 
esac
136651
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136652
 
$as_echo "$ac_try_echo") >&5
136653
 
  (eval "$ac_link") 2>&5
136654
 
  ac_status=$?
136655
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136656
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
136657
 
  { (case "(($ac_try" in
136658
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136659
 
  *) ac_try_echo=$ac_try;;
136660
 
esac
136661
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136662
 
$as_echo "$ac_try_echo") >&5
136663
 
  (eval "$ac_try") 2>&5
136664
 
  ac_status=$?
136665
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136666
 
  (exit $ac_status); }; }; then
136667
 
  ac_cv_c_stack_direction=1
136668
 
else
136669
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
136670
 
$as_echo "$as_me: failed program was:" >&5
136671
 
sed 's/^/| /' conftest.$ac_ext >&5
136672
 
 
136673
 
( exit $ac_status )
136674
 
ac_cv_c_stack_direction=-1
136675
 
fi
136676
 
rm -rf conftest.dSYM
136677
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
136678
 
fi
136679
 
 
136680
 
 
136681
 
fi
136682
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
136683
 
$as_echo "$ac_cv_c_stack_direction" >&6; }
136684
 
 
136685
 
cat >>confdefs.h <<_ACEOF
136686
 
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
136687
 
_ACEOF
136688
 
 
136689
 
 
136690
 
fi
136691
 
 
136692
 
 
136693
 
 
136694
 
 
136695
 
 
136696
 
 
136697
 
 
136698
 
 
136699
 
 
136700
 
 
136701
 
for ac_func in memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp
136702
 
do
136703
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
136704
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
136705
 
$as_echo_n "checking for $ac_func... " >&6; }
136706
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
136707
 
  $as_echo_n "(cached) " >&6
136708
 
else
136709
 
  cat >conftest.$ac_ext <<_ACEOF
136710
 
/* confdefs.h.  */
136711
 
_ACEOF
136712
 
cat confdefs.h >>conftest.$ac_ext
136713
 
cat >>conftest.$ac_ext <<_ACEOF
136714
 
/* end confdefs.h.  */
136715
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
136716
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
136717
 
#define $ac_func innocuous_$ac_func
136718
 
 
136719
 
/* System header to define __stub macros and hopefully few prototypes,
136720
 
    which can conflict with char $ac_func (); below.
136721
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
136722
 
    <limits.h> exists even on freestanding compilers.  */
136723
 
 
136724
 
#ifdef __STDC__
136725
 
# include <limits.h>
136726
 
#else
136727
 
# include <assert.h>
136728
 
#endif
136729
 
 
136730
 
#undef $ac_func
136731
 
 
136732
 
/* Override any GCC internal prototype to avoid an error.
136733
 
   Use char because int might match the return type of a GCC
136734
 
   builtin and then its argument prototype would still apply.  */
136735
 
#ifdef __cplusplus
136736
 
extern "C"
136737
 
#endif
136738
 
char $ac_func ();
136739
 
/* The GNU C library defines this for functions which it implements
136740
 
    to always fail with ENOSYS.  Some functions are actually named
136741
 
    something starting with __ and the normal name is an alias.  */
136742
 
#if defined __stub_$ac_func || defined __stub___$ac_func
136743
 
choke me
136744
 
#endif
136745
 
 
136746
 
int
136747
 
main ()
136748
 
{
136749
 
return $ac_func ();
136750
 
  ;
136751
 
  return 0;
136752
 
}
136753
 
_ACEOF
136754
 
rm -f conftest.$ac_objext conftest$ac_exeext
136755
 
if { (ac_try="$ac_link"
136756
 
case "(($ac_try" in
136757
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136758
 
  *) ac_try_echo=$ac_try;;
136759
 
esac
136760
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136761
 
$as_echo "$ac_try_echo") >&5
136762
 
  (eval "$ac_link") 2>conftest.er1
136763
 
  ac_status=$?
136764
 
  grep -v '^ *+' conftest.er1 >conftest.err
136765
 
  rm -f conftest.er1
136766
 
  cat conftest.err >&5
136767
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136768
 
  (exit $ac_status); } && {
136769
 
         test -z "$ac_c_werror_flag" ||
136770
 
         test ! -s conftest.err
136771
 
       } && test -s conftest$ac_exeext && {
136772
 
         test "$cross_compiling" = yes ||
136773
 
         $as_test_x conftest$ac_exeext
136774
 
       }; then
136775
 
  eval "$as_ac_var=yes"
136776
 
else
136777
 
  $as_echo "$as_me: failed program was:" >&5
136778
 
sed 's/^/| /' conftest.$ac_ext >&5
136779
 
 
136780
 
        eval "$as_ac_var=no"
136781
 
fi
136782
 
 
136783
 
rm -rf conftest.dSYM
136784
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
136785
 
      conftest$ac_exeext conftest.$ac_ext
136786
 
fi
136787
 
ac_res=`eval 'as_val=${'$as_ac_var'}
136788
 
                 $as_echo "$as_val"'`
136789
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
136790
 
$as_echo "$ac_res" >&6; }
136791
 
as_val=`eval 'as_val=${'$as_ac_var'}
136792
 
                 $as_echo "$as_val"'`
136793
 
   if test "x$as_val" = x""yes; then
136794
 
  cat >>confdefs.h <<_ACEOF
136795
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
136796
 
_ACEOF
136797
 
 
136798
 
fi
136799
 
done
136800
 
 
136801
 
 
136802
 
  { $as_echo "$as_me:$LINENO: checking whether sprintf is broken" >&5
136803
 
$as_echo_n "checking whether sprintf is broken... " >&6; }
136804
 
if test "${ac_cv_broken_sprintf+set}" = set; then
136805
 
  $as_echo_n "(cached) " >&6
136806
 
else
136807
 
  
136808
 
    if test "$cross_compiling" = yes; then
136809
 
  
136810
 
      ac_cv_broken_sprintf=no
136811
 
    
136812
 
else
136813
 
  cat >conftest.$ac_ext <<_ACEOF
136814
 
/* confdefs.h.  */
136815
 
_ACEOF
136816
 
cat confdefs.h >>conftest.$ac_ext
136817
 
cat >>conftest.$ac_ext <<_ACEOF
136818
 
/* end confdefs.h.  */
136819
 
main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); }
136820
 
_ACEOF
136821
 
rm -f conftest$ac_exeext
136822
 
if { (ac_try="$ac_link"
136823
 
case "(($ac_try" in
136824
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136825
 
  *) ac_try_echo=$ac_try;;
136826
 
esac
136827
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136828
 
$as_echo "$ac_try_echo") >&5
136829
 
  (eval "$ac_link") 2>&5
136830
 
  ac_status=$?
136831
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136832
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
136833
 
  { (case "(($ac_try" in
136834
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136835
 
  *) ac_try_echo=$ac_try;;
136836
 
esac
136837
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136838
 
$as_echo "$ac_try_echo") >&5
136839
 
  (eval "$ac_try") 2>&5
136840
 
  ac_status=$?
136841
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136842
 
  (exit $ac_status); }; }; then
136843
 
  
136844
 
      ac_cv_broken_sprintf=no
136845
 
    
136846
 
else
136847
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
136848
 
$as_echo "$as_me: failed program was:" >&5
136849
 
sed 's/^/| /' conftest.$ac_ext >&5
136850
 
 
136851
 
( exit $ac_status )
136852
 
 
136853
 
      ac_cv_broken_sprintf=yes
136854
 
    
136855
 
fi
136856
 
rm -rf conftest.dSYM
136857
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
136858
 
fi
136859
 
 
136860
 
 
136861
 
  
136862
 
fi
136863
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_broken_sprintf" >&5
136864
 
$as_echo "$ac_cv_broken_sprintf" >&6; }
136865
 
  if test "$ac_cv_broken_sprintf" = "yes"; then
136866
 
    ac_result=1
136867
 
  else
136868
 
    ac_result=0
136869
 
  fi
136870
 
  
136871
 
cat >>confdefs.h <<_ACEOF
136872
 
@%:@define ZEND_BROKEN_SPRINTF $ac_result
136873
 
_ACEOF
136874
 
 
136875
 
 
136876
 
 
136877
 
 
136878
 
 
136879
 
 
136880
 
 
136881
 
for ac_func in finite isfinite isinf isnan
136882
 
do
136883
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
136884
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
136885
 
$as_echo_n "checking for $ac_func... " >&6; }
136886
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
136887
 
  $as_echo_n "(cached) " >&6
136888
 
else
136889
 
  cat >conftest.$ac_ext <<_ACEOF
136890
 
/* confdefs.h.  */
136891
 
_ACEOF
136892
 
cat confdefs.h >>conftest.$ac_ext
136893
 
cat >>conftest.$ac_ext <<_ACEOF
136894
 
/* end confdefs.h.  */
136895
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
136896
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
136897
 
#define $ac_func innocuous_$ac_func
136898
 
 
136899
 
/* System header to define __stub macros and hopefully few prototypes,
136900
 
    which can conflict with char $ac_func (); below.
136901
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
136902
 
    <limits.h> exists even on freestanding compilers.  */
136903
 
 
136904
 
#ifdef __STDC__
136905
 
# include <limits.h>
136906
 
#else
136907
 
# include <assert.h>
136908
 
#endif
136909
 
 
136910
 
#undef $ac_func
136911
 
 
136912
 
/* Override any GCC internal prototype to avoid an error.
136913
 
   Use char because int might match the return type of a GCC
136914
 
   builtin and then its argument prototype would still apply.  */
136915
 
#ifdef __cplusplus
136916
 
extern "C"
136917
 
#endif
136918
 
char $ac_func ();
136919
 
/* The GNU C library defines this for functions which it implements
136920
 
    to always fail with ENOSYS.  Some functions are actually named
136921
 
    something starting with __ and the normal name is an alias.  */
136922
 
#if defined __stub_$ac_func || defined __stub___$ac_func
136923
 
choke me
136924
 
#endif
136925
 
 
136926
 
int
136927
 
main ()
136928
 
{
136929
 
return $ac_func ();
136930
 
  ;
136931
 
  return 0;
136932
 
}
136933
 
_ACEOF
136934
 
rm -f conftest.$ac_objext conftest$ac_exeext
136935
 
if { (ac_try="$ac_link"
136936
 
case "(($ac_try" in
136937
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
136938
 
  *) ac_try_echo=$ac_try;;
136939
 
esac
136940
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
136941
 
$as_echo "$ac_try_echo") >&5
136942
 
  (eval "$ac_link") 2>conftest.er1
136943
 
  ac_status=$?
136944
 
  grep -v '^ *+' conftest.er1 >conftest.err
136945
 
  rm -f conftest.er1
136946
 
  cat conftest.err >&5
136947
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
136948
 
  (exit $ac_status); } && {
136949
 
         test -z "$ac_c_werror_flag" ||
136950
 
         test ! -s conftest.err
136951
 
       } && test -s conftest$ac_exeext && {
136952
 
         test "$cross_compiling" = yes ||
136953
 
         $as_test_x conftest$ac_exeext
136954
 
       }; then
136955
 
  eval "$as_ac_var=yes"
136956
 
else
136957
 
  $as_echo "$as_me: failed program was:" >&5
136958
 
sed 's/^/| /' conftest.$ac_ext >&5
136959
 
 
136960
 
        eval "$as_ac_var=no"
136961
 
fi
136962
 
 
136963
 
rm -rf conftest.dSYM
136964
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
136965
 
      conftest$ac_exeext conftest.$ac_ext
136966
 
fi
136967
 
ac_res=`eval 'as_val=${'$as_ac_var'}
136968
 
                 $as_echo "$as_val"'`
136969
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
136970
 
$as_echo "$ac_res" >&6; }
136971
 
as_val=`eval 'as_val=${'$as_ac_var'}
136972
 
                 $as_echo "$as_val"'`
136973
 
   if test "x$as_val" = x""yes; then
136974
 
  cat >>confdefs.h <<_ACEOF
136975
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
136976
 
_ACEOF
136977
 
 
136978
 
fi
136979
 
done
136980
 
 
136981
 
 
136982
 
 
136983
 
  { $as_echo "$as_me:$LINENO: checking whether fp_except is defined" >&5
136984
 
$as_echo_n "checking whether fp_except is defined... " >&6; }
136985
 
if test "${ac_cv_type_fp_except+set}" = set; then
136986
 
  $as_echo_n "(cached) " >&6
136987
 
else
136988
 
  
136989
 
    cat >conftest.$ac_ext <<_ACEOF
136990
 
/* confdefs.h.  */
136991
 
_ACEOF
136992
 
cat confdefs.h >>conftest.$ac_ext
136993
 
cat >>conftest.$ac_ext <<_ACEOF
136994
 
/* end confdefs.h.  */
136995
 
 
136996
 
#include <floatingpoint.h>
136997
 
 
136998
 
int
136999
 
main ()
137000
 
{
137001
 
 
137002
 
fp_except x = (fp_except) 0;
137003
 
 
137004
 
  ;
137005
 
  return 0;
137006
 
}
137007
 
_ACEOF
137008
 
rm -f conftest.$ac_objext
137009
 
if { (ac_try="$ac_compile"
137010
 
case "(($ac_try" in
137011
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137012
 
  *) ac_try_echo=$ac_try;;
137013
 
esac
137014
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137015
 
$as_echo "$ac_try_echo") >&5
137016
 
  (eval "$ac_compile") 2>conftest.er1
137017
 
  ac_status=$?
137018
 
  grep -v '^ *+' conftest.er1 >conftest.err
137019
 
  rm -f conftest.er1
137020
 
  cat conftest.err >&5
137021
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137022
 
  (exit $ac_status); } && {
137023
 
         test -z "$ac_c_werror_flag" ||
137024
 
         test ! -s conftest.err
137025
 
       } && test -s conftest.$ac_objext; then
137026
 
  
137027
 
     ac_cv_type_fp_except=yes
137028
 
 
137029
 
else
137030
 
  $as_echo "$as_me: failed program was:" >&5
137031
 
sed 's/^/| /' conftest.$ac_ext >&5
137032
 
 
137033
 
        
137034
 
     ac_cv_type_fp_except=no
137035
 
 
137036
 
fi
137037
 
 
137038
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
137039
 
fi
137040
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_fp_except" >&5
137041
 
$as_echo "$ac_cv_type_fp_except" >&6; }
137042
 
  if test "$ac_cv_type_fp_except" = "yes"; then
137043
 
    
137044
 
cat >>confdefs.h <<\_ACEOF
137045
 
@%:@define HAVE_FP_EXCEPT 1
137046
 
_ACEOF
137047
 
 
137048
 
  fi
137049
 
 
137050
 
 
137051
 
 
137052
 
  { $as_echo "$as_me:$LINENO: checking for usable _FPU_SETCW" >&5
137053
 
$as_echo_n "checking for usable _FPU_SETCW... " >&6; }
137054
 
  cat >conftest.$ac_ext <<_ACEOF
137055
 
/* confdefs.h.  */
137056
 
_ACEOF
137057
 
cat confdefs.h >>conftest.$ac_ext
137058
 
cat >>conftest.$ac_ext <<_ACEOF
137059
 
/* end confdefs.h.  */
137060
 
 
137061
 
    #include <fpu_control.h>
137062
 
  
137063
 
int
137064
 
main ()
137065
 
{
137066
 
 
137067
 
    fpu_control_t fpu_oldcw, fpu_cw;
137068
 
    volatile double result;
137069
 
    double a = 2877.0;
137070
 
    volatile double b = 1000000.0;
137071
 
 
137072
 
    _FPU_GETCW(fpu_oldcw);
137073
 
    fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE;
137074
 
    _FPU_SETCW(fpu_cw);
137075
 
    result = a / b;
137076
 
    _FPU_SETCW(fpu_oldcw);
137077
 
  
137078
 
  ;
137079
 
  return 0;
137080
 
}
137081
 
_ACEOF
137082
 
rm -f conftest.$ac_objext conftest$ac_exeext
137083
 
if { (ac_try="$ac_link"
137084
 
case "(($ac_try" in
137085
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137086
 
  *) ac_try_echo=$ac_try;;
137087
 
esac
137088
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137089
 
$as_echo "$ac_try_echo") >&5
137090
 
  (eval "$ac_link") 2>conftest.er1
137091
 
  ac_status=$?
137092
 
  grep -v '^ *+' conftest.er1 >conftest.err
137093
 
  rm -f conftest.er1
137094
 
  cat conftest.err >&5
137095
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137096
 
  (exit $ac_status); } && {
137097
 
         test -z "$ac_c_werror_flag" ||
137098
 
         test ! -s conftest.err
137099
 
       } && test -s conftest$ac_exeext && {
137100
 
         test "$cross_compiling" = yes ||
137101
 
         $as_test_x conftest$ac_exeext
137102
 
       }; then
137103
 
  ac_cfp_have__fpu_setcw=yes
137104
 
else
137105
 
  $as_echo "$as_me: failed program was:" >&5
137106
 
sed 's/^/| /' conftest.$ac_ext >&5
137107
 
 
137108
 
        ac_cfp_have__fpu_setcw=no
137109
 
fi
137110
 
 
137111
 
rm -rf conftest.dSYM
137112
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
137113
 
      conftest$ac_exeext conftest.$ac_ext
137114
 
  if test "$ac_cfp_have__fpu_setcw" = "yes" ; then
137115
 
    
137116
 
cat >>confdefs.h <<\_ACEOF
137117
 
@%:@define HAVE__FPU_SETCW 1
137118
 
_ACEOF
137119
 
 
137120
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
137121
 
$as_echo "yes" >&6; }
137122
 
  else
137123
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
137124
 
$as_echo "no" >&6; }
137125
 
  fi
137126
 
  
137127
 
  { $as_echo "$as_me:$LINENO: checking for usable fpsetprec" >&5
137128
 
$as_echo_n "checking for usable fpsetprec... " >&6; }
137129
 
  cat >conftest.$ac_ext <<_ACEOF
137130
 
/* confdefs.h.  */
137131
 
_ACEOF
137132
 
cat confdefs.h >>conftest.$ac_ext
137133
 
cat >>conftest.$ac_ext <<_ACEOF
137134
 
/* end confdefs.h.  */
137135
 
 
137136
 
    #include <machine/ieeefp.h>
137137
 
  
137138
 
int
137139
 
main ()
137140
 
{
137141
 
 
137142
 
    fp_prec_t fpu_oldprec;
137143
 
    volatile double result;
137144
 
    double a = 2877.0;
137145
 
    volatile double b = 1000000.0;
137146
 
 
137147
 
    fpu_oldprec = fpgetprec();
137148
 
    fpsetprec(FP_PD);
137149
 
    result = a / b;
137150
 
    fpsetprec(fpu_oldprec);
137151
 
  
137152
 
  ;
137153
 
  return 0;
137154
 
}
137155
 
_ACEOF
137156
 
rm -f conftest.$ac_objext conftest$ac_exeext
137157
 
if { (ac_try="$ac_link"
137158
 
case "(($ac_try" in
137159
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137160
 
  *) ac_try_echo=$ac_try;;
137161
 
esac
137162
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137163
 
$as_echo "$ac_try_echo") >&5
137164
 
  (eval "$ac_link") 2>conftest.er1
137165
 
  ac_status=$?
137166
 
  grep -v '^ *+' conftest.er1 >conftest.err
137167
 
  rm -f conftest.er1
137168
 
  cat conftest.err >&5
137169
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137170
 
  (exit $ac_status); } && {
137171
 
         test -z "$ac_c_werror_flag" ||
137172
 
         test ! -s conftest.err
137173
 
       } && test -s conftest$ac_exeext && {
137174
 
         test "$cross_compiling" = yes ||
137175
 
         $as_test_x conftest$ac_exeext
137176
 
       }; then
137177
 
  ac_cfp_have_fpsetprec=yes
137178
 
else
137179
 
  $as_echo "$as_me: failed program was:" >&5
137180
 
sed 's/^/| /' conftest.$ac_ext >&5
137181
 
 
137182
 
        ac_cfp_have_fpsetprec=no
137183
 
fi
137184
 
 
137185
 
rm -rf conftest.dSYM
137186
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
137187
 
      conftest$ac_exeext conftest.$ac_ext
137188
 
  if test "$ac_cfp_have_fpsetprec" = "yes" ; then
137189
 
    
137190
 
cat >>confdefs.h <<\_ACEOF
137191
 
@%:@define HAVE_FPSETPREC 1
137192
 
_ACEOF
137193
 
 
137194
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
137195
 
$as_echo "yes" >&6; }
137196
 
  else
137197
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
137198
 
$as_echo "no" >&6; }
137199
 
  fi
137200
 
 
137201
 
  { $as_echo "$as_me:$LINENO: checking for usable _controlfp" >&5
137202
 
$as_echo_n "checking for usable _controlfp... " >&6; }
137203
 
  cat >conftest.$ac_ext <<_ACEOF
137204
 
/* confdefs.h.  */
137205
 
_ACEOF
137206
 
cat confdefs.h >>conftest.$ac_ext
137207
 
cat >>conftest.$ac_ext <<_ACEOF
137208
 
/* end confdefs.h.  */
137209
 
 
137210
 
    #include <float.h>
137211
 
  
137212
 
int
137213
 
main ()
137214
 
{
137215
 
 
137216
 
    unsigned int fpu_oldcw;
137217
 
    volatile double result;
137218
 
    double a = 2877.0;
137219
 
    volatile double b = 1000000.0;
137220
 
 
137221
 
    fpu_oldcw = _controlfp(0, 0);
137222
 
    _controlfp(_PC_53, _MCW_PC);
137223
 
    result = a / b;
137224
 
    _controlfp(fpu_oldcw, _MCW_PC);
137225
 
  
137226
 
  ;
137227
 
  return 0;
137228
 
}
137229
 
_ACEOF
137230
 
rm -f conftest.$ac_objext conftest$ac_exeext
137231
 
if { (ac_try="$ac_link"
137232
 
case "(($ac_try" in
137233
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137234
 
  *) ac_try_echo=$ac_try;;
137235
 
esac
137236
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137237
 
$as_echo "$ac_try_echo") >&5
137238
 
  (eval "$ac_link") 2>conftest.er1
137239
 
  ac_status=$?
137240
 
  grep -v '^ *+' conftest.er1 >conftest.err
137241
 
  rm -f conftest.er1
137242
 
  cat conftest.err >&5
137243
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137244
 
  (exit $ac_status); } && {
137245
 
         test -z "$ac_c_werror_flag" ||
137246
 
         test ! -s conftest.err
137247
 
       } && test -s conftest$ac_exeext && {
137248
 
         test "$cross_compiling" = yes ||
137249
 
         $as_test_x conftest$ac_exeext
137250
 
       }; then
137251
 
  ac_cfp_have__controlfp=yes
137252
 
else
137253
 
  $as_echo "$as_me: failed program was:" >&5
137254
 
sed 's/^/| /' conftest.$ac_ext >&5
137255
 
 
137256
 
        ac_cfp_have__controlfp=no
137257
 
fi
137258
 
 
137259
 
rm -rf conftest.dSYM
137260
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
137261
 
      conftest$ac_exeext conftest.$ac_ext
137262
 
  if test "$ac_cfp_have__controlfp" = "yes" ; then
137263
 
    
137264
 
cat >>confdefs.h <<\_ACEOF
137265
 
@%:@define HAVE__CONTROLFP 1
137266
 
_ACEOF
137267
 
 
137268
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
137269
 
$as_echo "yes" >&6; }
137270
 
  else
137271
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
137272
 
$as_echo "no" >&6; }
137273
 
  fi
137274
 
 
137275
 
  { $as_echo "$as_me:$LINENO: checking for usable _controlfp_s" >&5
137276
 
$as_echo_n "checking for usable _controlfp_s... " >&6; }
137277
 
  cat >conftest.$ac_ext <<_ACEOF
137278
 
/* confdefs.h.  */
137279
 
_ACEOF
137280
 
cat confdefs.h >>conftest.$ac_ext
137281
 
cat >>conftest.$ac_ext <<_ACEOF
137282
 
/* end confdefs.h.  */
137283
 
 
137284
 
   #include <float.h>
137285
 
  
137286
 
int
137287
 
main ()
137288
 
{
137289
 
 
137290
 
    unsigned int fpu_oldcw, fpu_cw;
137291
 
    volatile double result;
137292
 
    double a = 2877.0;
137293
 
    volatile double b = 1000000.0;
137294
 
 
137295
 
    _controlfp_s(&fpu_cw, 0, 0);
137296
 
    fpu_oldcw = fpu_cw;
137297
 
    _controlfp_s(&fpu_cw, _PC_53, _MCW_PC);
137298
 
    result = a / b;
137299
 
    _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC);
137300
 
  
137301
 
  ;
137302
 
  return 0;
137303
 
}
137304
 
_ACEOF
137305
 
rm -f conftest.$ac_objext conftest$ac_exeext
137306
 
if { (ac_try="$ac_link"
137307
 
case "(($ac_try" in
137308
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137309
 
  *) ac_try_echo=$ac_try;;
137310
 
esac
137311
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137312
 
$as_echo "$ac_try_echo") >&5
137313
 
  (eval "$ac_link") 2>conftest.er1
137314
 
  ac_status=$?
137315
 
  grep -v '^ *+' conftest.er1 >conftest.err
137316
 
  rm -f conftest.er1
137317
 
  cat conftest.err >&5
137318
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137319
 
  (exit $ac_status); } && {
137320
 
         test -z "$ac_c_werror_flag" ||
137321
 
         test ! -s conftest.err
137322
 
       } && test -s conftest$ac_exeext && {
137323
 
         test "$cross_compiling" = yes ||
137324
 
         $as_test_x conftest$ac_exeext
137325
 
       }; then
137326
 
  ac_cfp_have__controlfp_s=yes
137327
 
else
137328
 
  $as_echo "$as_me: failed program was:" >&5
137329
 
sed 's/^/| /' conftest.$ac_ext >&5
137330
 
 
137331
 
        ac_cfp_have__controlfp_s=no
137332
 
fi
137333
 
 
137334
 
rm -rf conftest.dSYM
137335
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
137336
 
      conftest$ac_exeext conftest.$ac_ext
137337
 
  if test "$ac_cfp_have__controlfp_s" = "yes" ; then
137338
 
    
137339
 
cat >>confdefs.h <<\_ACEOF
137340
 
@%:@define HAVE__CONTROLFP_S 1
137341
 
_ACEOF
137342
 
 
137343
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
137344
 
$as_echo "yes" >&6; }
137345
 
  else
137346
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
137347
 
$as_echo "no" >&6; }
137348
 
  fi
137349
 
 
137350
 
  { $as_echo "$as_me:$LINENO: checking whether FPU control word can be manipulated by inline assembler" >&5
137351
 
$as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; }
137352
 
  cat >conftest.$ac_ext <<_ACEOF
137353
 
/* confdefs.h.  */
137354
 
_ACEOF
137355
 
cat confdefs.h >>conftest.$ac_ext
137356
 
cat >>conftest.$ac_ext <<_ACEOF
137357
 
/* end confdefs.h.  */
137358
 
 
137359
 
    /* nothing */
137360
 
  
137361
 
int
137362
 
main ()
137363
 
{
137364
 
 
137365
 
    unsigned int oldcw, cw;
137366
 
    volatile double result;
137367
 
    double a = 2877.0;
137368
 
    volatile double b = 1000000.0;
137369
 
 
137370
 
    __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw));
137371
 
    cw = (oldcw & ~0x0 & ~0x300) | 0x200;
137372
 
    __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw));
137373
 
 
137374
 
    result = a / b;
137375
 
 
137376
 
    __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw));
137377
 
  
137378
 
  ;
137379
 
  return 0;
137380
 
}
137381
 
_ACEOF
137382
 
rm -f conftest.$ac_objext conftest$ac_exeext
137383
 
if { (ac_try="$ac_link"
137384
 
case "(($ac_try" in
137385
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137386
 
  *) ac_try_echo=$ac_try;;
137387
 
esac
137388
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137389
 
$as_echo "$ac_try_echo") >&5
137390
 
  (eval "$ac_link") 2>conftest.er1
137391
 
  ac_status=$?
137392
 
  grep -v '^ *+' conftest.er1 >conftest.err
137393
 
  rm -f conftest.er1
137394
 
  cat conftest.err >&5
137395
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137396
 
  (exit $ac_status); } && {
137397
 
         test -z "$ac_c_werror_flag" ||
137398
 
         test ! -s conftest.err
137399
 
       } && test -s conftest$ac_exeext && {
137400
 
         test "$cross_compiling" = yes ||
137401
 
         $as_test_x conftest$ac_exeext
137402
 
       }; then
137403
 
  ac_cfp_have_fpu_inline_asm_x86=yes
137404
 
else
137405
 
  $as_echo "$as_me: failed program was:" >&5
137406
 
sed 's/^/| /' conftest.$ac_ext >&5
137407
 
 
137408
 
        ac_cfp_have_fpu_inline_asm_x86=no
137409
 
fi
137410
 
 
137411
 
rm -rf conftest.dSYM
137412
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
137413
 
      conftest$ac_exeext conftest.$ac_ext
137414
 
  if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then
137415
 
    
137416
 
cat >>confdefs.h <<\_ACEOF
137417
 
@%:@define HAVE_FPU_INLINE_ASM_X86 1
137418
 
_ACEOF
137419
 
 
137420
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
137421
 
$as_echo "yes" >&6; }
137422
 
  else
137423
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
137424
 
$as_echo "no" >&6; }
137425
 
  fi
137426
 
 
137427
 
 
137428
 
{ $as_echo "$as_me:$LINENO: checking whether double cast to long preserves least significant bits" >&5
137429
 
$as_echo_n "checking whether double cast to long preserves least significant bits... " >&6; }
137430
 
 
137431
 
if test "$cross_compiling" = yes; then
137432
 
  
137433
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
137434
 
$as_echo "no" >&6; }
137435
 
 
137436
 
else
137437
 
  cat >conftest.$ac_ext <<_ACEOF
137438
 
/* confdefs.h.  */
137439
 
_ACEOF
137440
 
cat confdefs.h >>conftest.$ac_ext
137441
 
cat >>conftest.$ac_ext <<_ACEOF
137442
 
/* end confdefs.h.  */
137443
 
 
137444
 
#include <limits.h>
137445
 
 
137446
 
int main()
137447
 
{
137448
 
        if (sizeof(long) == 4) {
137449
 
                double d = (double) LONG_MIN * LONG_MIN + 2e9;
137450
 
 
137451
 
                if ((long) d == 2e9 && (long) -d == -2e9) {
137452
 
                        exit(0);
137453
 
                }
137454
 
        } else if (sizeof(long) == 8) {
137455
 
                double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */
137456
 
 
137457
 
                if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */
137458
 
                        exit(0);
137459
 
                }
137460
 
        }
137461
 
        exit(1);
137462
 
}
137463
 
 
137464
 
_ACEOF
137465
 
rm -f conftest$ac_exeext
137466
 
if { (ac_try="$ac_link"
137467
 
case "(($ac_try" in
137468
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137469
 
  *) ac_try_echo=$ac_try;;
137470
 
esac
137471
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137472
 
$as_echo "$ac_try_echo") >&5
137473
 
  (eval "$ac_link") 2>&5
137474
 
  ac_status=$?
137475
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137476
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
137477
 
  { (case "(($ac_try" in
137478
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137479
 
  *) ac_try_echo=$ac_try;;
137480
 
esac
137481
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137482
 
$as_echo "$ac_try_echo") >&5
137483
 
  (eval "$ac_try") 2>&5
137484
 
  ac_status=$?
137485
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137486
 
  (exit $ac_status); }; }; then
137487
 
  
137488
 
  
137489
 
cat >>confdefs.h <<\_ACEOF
137490
 
@%:@define ZEND_DVAL_TO_LVAL_CAST_OK 1
137491
 
_ACEOF
137492
 
 
137493
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
137494
 
$as_echo "yes" >&6; }
137495
 
 
137496
 
else
137497
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
137498
 
$as_echo "$as_me: failed program was:" >&5
137499
 
sed 's/^/| /' conftest.$ac_ext >&5
137500
 
 
137501
 
( exit $ac_status )
137502
 
 
137503
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
137504
 
$as_echo "no" >&6; }
137505
 
 
137506
 
fi
137507
 
rm -rf conftest.dSYM
137508
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
137509
 
fi
137510
 
 
137511
 
 
137512
 
        
137513
 
 
137514
 
 
137515
 
for ac_header in dlfcn.h
137516
 
do
137517
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
137518
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
137519
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
137520
 
$as_echo_n "checking for $ac_header... " >&6; }
137521
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
137522
 
  $as_echo_n "(cached) " >&6
137523
 
fi
137524
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
137525
 
                 $as_echo "$as_val"'`
137526
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
137527
 
$as_echo "$ac_res" >&6; }
137528
 
else
137529
 
  # Is the header compilable?
137530
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
137531
 
$as_echo_n "checking $ac_header usability... " >&6; }
137532
 
cat >conftest.$ac_ext <<_ACEOF
137533
 
/* confdefs.h.  */
137534
 
_ACEOF
137535
 
cat confdefs.h >>conftest.$ac_ext
137536
 
cat >>conftest.$ac_ext <<_ACEOF
137537
 
/* end confdefs.h.  */
137538
 
$ac_includes_default
137539
 
@%:@include <$ac_header>
137540
 
_ACEOF
137541
 
rm -f conftest.$ac_objext
137542
 
if { (ac_try="$ac_compile"
137543
 
case "(($ac_try" in
137544
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137545
 
  *) ac_try_echo=$ac_try;;
137546
 
esac
137547
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137548
 
$as_echo "$ac_try_echo") >&5
137549
 
  (eval "$ac_compile") 2>conftest.er1
137550
 
  ac_status=$?
137551
 
  grep -v '^ *+' conftest.er1 >conftest.err
137552
 
  rm -f conftest.er1
137553
 
  cat conftest.err >&5
137554
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137555
 
  (exit $ac_status); } && {
137556
 
         test -z "$ac_c_werror_flag" ||
137557
 
         test ! -s conftest.err
137558
 
       } && test -s conftest.$ac_objext; then
137559
 
  ac_header_compiler=yes
137560
 
else
137561
 
  $as_echo "$as_me: failed program was:" >&5
137562
 
sed 's/^/| /' conftest.$ac_ext >&5
137563
 
 
137564
 
        ac_header_compiler=no
137565
 
fi
137566
 
 
137567
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
137568
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
137569
 
$as_echo "$ac_header_compiler" >&6; }
137570
 
 
137571
 
# Is the header present?
137572
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
137573
 
$as_echo_n "checking $ac_header presence... " >&6; }
137574
 
cat >conftest.$ac_ext <<_ACEOF
137575
 
/* confdefs.h.  */
137576
 
_ACEOF
137577
 
cat confdefs.h >>conftest.$ac_ext
137578
 
cat >>conftest.$ac_ext <<_ACEOF
137579
 
/* end confdefs.h.  */
137580
 
@%:@include <$ac_header>
137581
 
_ACEOF
137582
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
137583
 
case "(($ac_try" in
137584
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137585
 
  *) ac_try_echo=$ac_try;;
137586
 
esac
137587
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137588
 
$as_echo "$ac_try_echo") >&5
137589
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
137590
 
  ac_status=$?
137591
 
  grep -v '^ *+' conftest.er1 >conftest.err
137592
 
  rm -f conftest.er1
137593
 
  cat conftest.err >&5
137594
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137595
 
  (exit $ac_status); } >/dev/null && {
137596
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
137597
 
         test ! -s conftest.err
137598
 
       }; then
137599
 
  ac_header_preproc=yes
137600
 
else
137601
 
  $as_echo "$as_me: failed program was:" >&5
137602
 
sed 's/^/| /' conftest.$ac_ext >&5
137603
 
 
137604
 
  ac_header_preproc=no
137605
 
fi
137606
 
 
137607
 
rm -f conftest.err conftest.$ac_ext
137608
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
137609
 
$as_echo "$ac_header_preproc" >&6; }
137610
 
 
137611
 
# So?  What about this header?
137612
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
137613
 
  yes:no: )
137614
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
137615
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
137616
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
137617
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
137618
 
    ac_header_preproc=yes
137619
 
    ;;
137620
 
  no:yes:* )
137621
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
137622
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
137623
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
137624
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
137625
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
137626
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
137627
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
137628
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
137629
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
137630
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
137631
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
137632
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
137633
 
    
137634
 
    ;;
137635
 
esac
137636
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
137637
 
$as_echo_n "checking for $ac_header... " >&6; }
137638
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
137639
 
  $as_echo_n "(cached) " >&6
137640
 
else
137641
 
  eval "$as_ac_Header=\$ac_header_preproc"
137642
 
fi
137643
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
137644
 
                 $as_echo "$as_val"'`
137645
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
137646
 
$as_echo "$ac_res" >&6; }
137647
 
 
137648
 
fi
137649
 
as_val=`eval 'as_val=${'$as_ac_Header'}
137650
 
                 $as_echo "$as_val"'`
137651
 
   if test "x$as_val" = x""yes; then
137652
 
  cat >>confdefs.h <<_ACEOF
137653
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
137654
 
_ACEOF
137655
 
 
137656
 
fi
137657
 
 
137658
 
done
137659
 
 
137660
 
 
137661
 
{ $as_echo "$as_me:$LINENO: checking whether dlsym() requires a leading underscore in symbol names" >&5
137662
 
$as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; }
137663
 
if test "$cross_compiling" = yes; then :
137664
 
  
137665
 
else
137666
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
137667
 
  lt_status=$lt_dlunknown
137668
 
  cat > conftest.$ac_ext <<EOF
137669
 
#line __oline__ "configure"
137670
 
#include "confdefs.h"
137671
 
 
137672
 
#if HAVE_DLFCN_H
137673
 
#include <dlfcn.h>
137674
 
#endif
137675
 
 
137676
 
#include <stdio.h>
137677
 
 
137678
 
#ifdef RTLD_GLOBAL
137679
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
137680
 
#else
137681
 
#  ifdef DL_GLOBAL
137682
 
#    define LT_DLGLOBAL         DL_GLOBAL
137683
 
#  else
137684
 
#    define LT_DLGLOBAL         0
137685
 
#  endif
137686
 
#endif
137687
 
 
137688
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
137689
 
   find out it does not work in some platform. */
137690
 
#ifndef LT_DLLAZY_OR_NOW
137691
 
#  ifdef RTLD_LAZY
137692
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
137693
 
#  else
137694
 
#    ifdef DL_LAZY
137695
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
137696
 
#    else
137697
 
#      ifdef RTLD_NOW
137698
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
137699
 
#      else
137700
 
#        ifdef DL_NOW
137701
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
137702
 
#        else
137703
 
#          define LT_DLLAZY_OR_NOW      0
137704
 
#        endif
137705
 
#      endif
137706
 
#    endif
137707
 
#  endif
137708
 
#endif
137709
 
 
137710
 
#ifdef __cplusplus
137711
 
extern "C" void exit (int);
137712
 
#endif
137713
 
 
137714
 
void fnord() { int i=42;}
137715
 
int main ()
137716
 
{
137717
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
137718
 
  int status = $lt_dlunknown;
137719
 
 
137720
 
  if (self)
137721
 
    {
137722
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
137723
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
137724
 
      /* dlclose (self); */
137725
 
    }
137726
 
  else
137727
 
    puts (dlerror ());
137728
 
 
137729
 
    exit (status);
137730
 
}
137731
 
EOF
137732
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
137733
 
  (eval $ac_link) 2>&5
137734
 
  ac_status=$?
137735
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137736
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
137737
 
    (./conftest; exit; ) >&5 2>/dev/null
137738
 
    lt_status=$?
137739
 
    case x$lt_status in
137740
 
      x$lt_dlno_uscore) 
137741
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
137742
 
$as_echo "no" >&6; }
137743
 
 ;;
137744
 
      x$lt_dlneed_uscore) 
137745
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
137746
 
$as_echo "yes" >&6; }
137747
 
  
137748
 
cat >>confdefs.h <<\_ACEOF
137749
 
@%:@define DLSYM_NEEDS_UNDERSCORE 1
137750
 
_ACEOF
137751
 
 
137752
 
 ;;
137753
 
      x$lt_dlunknown|x*) 
137754
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
137755
 
$as_echo "no" >&6; }
137756
 
 ;;
137757
 
    esac
137758
 
  else :
137759
 
    # compilation failed
137760
 
    
137761
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
137762
 
$as_echo "no" >&6; }
137763
 
 
137764
 
  fi
137765
 
fi
137766
 
rm -fr conftest*
137767
 
 
137768
 
 
137769
 
 
137770
 
 
137771
 
 
137772
 
@%:@ Check whether --with-zend-vm was given.
137773
 
if test "${with_zend_vm+set}" = set; then
137774
 
  withval=$with_zend_vm; 
137775
 
  PHP_ZEND_VM=$withval
137776
 
 
137777
 
else
137778
 
  
137779
 
  PHP_ZEND_VM=CALL
137780
 
 
137781
 
fi
137782
 
 
137783
 
 
137784
 
@%:@ Check whether --enable-maintainer-zts was given.
137785
 
if test "${enable_maintainer_zts+set}" = set; then
137786
 
  enableval=$enable_maintainer_zts; 
137787
 
  ZEND_MAINTAINER_ZTS=$enableval
137788
 
 
137789
 
else
137790
 
  
137791
 
  ZEND_MAINTAINER_ZTS=no
137792
 
 
137793
 
fi
137794
 
  
137795
 
 
137796
 
@%:@ Check whether --enable-inline-optimization was given.
137797
 
if test "${enable_inline_optimization+set}" = set; then
137798
 
  enableval=$enable_inline_optimization; 
137799
 
  ZEND_INLINE_OPTIMIZATION=$enableval
137800
 
 
137801
 
else
137802
 
  
137803
 
  ZEND_INLINE_OPTIMIZATION=yes
137804
 
 
137805
 
fi
137806
 
 
137807
 
 
137808
 
@%:@ Check whether --enable-zend-multibyte was given.
137809
 
if test "${enable_zend_multibyte+set}" = set; then
137810
 
  enableval=$enable_zend_multibyte; 
137811
 
  ZEND_MULTIBYTE=$enableval
137812
 
 
137813
 
else
137814
 
  
137815
 
  ZEND_MULTIBYTE=no
137816
 
 
137817
 
fi
137818
 
 
137819
 
 
137820
 
{ $as_echo "$as_me:$LINENO: checking virtual machine dispatch method" >&5
137821
 
$as_echo_n "checking virtual machine dispatch method... " >&6; }
137822
 
{ $as_echo "$as_me:$LINENO: result: $PHP_ZEND_VM" >&5
137823
 
$as_echo "$PHP_ZEND_VM" >&6; }
137824
 
 
137825
 
{ $as_echo "$as_me:$LINENO: checking whether to enable thread-safety" >&5
137826
 
$as_echo_n "checking whether to enable thread-safety... " >&6; }
137827
 
{ $as_echo "$as_me:$LINENO: result: $ZEND_MAINTAINER_ZTS" >&5
137828
 
$as_echo "$ZEND_MAINTAINER_ZTS" >&6; }
137829
 
 
137830
 
{ $as_echo "$as_me:$LINENO: checking whether to enable inline optimization for GCC" >&5
137831
 
$as_echo_n "checking whether to enable inline optimization for GCC... " >&6; }
137832
 
{ $as_echo "$as_me:$LINENO: result: $ZEND_INLINE_OPTIMIZATION" >&5
137833
 
$as_echo "$ZEND_INLINE_OPTIMIZATION" >&6; }
137834
 
 
137835
 
{ $as_echo "$as_me:$LINENO: checking whether to enable Zend debugging" >&5
137836
 
$as_echo_n "checking whether to enable Zend debugging... " >&6; }
137837
 
{ $as_echo "$as_me:$LINENO: result: $ZEND_DEBUG" >&5
137838
 
$as_echo "$ZEND_DEBUG" >&6; }
137839
 
 
137840
 
{ $as_echo "$as_me:$LINENO: checking whether to enable Zend multibyte" >&5
137841
 
$as_echo_n "checking whether to enable Zend multibyte... " >&6; }
137842
 
{ $as_echo "$as_me:$LINENO: result: $ZEND_MULTIBYTE" >&5
137843
 
$as_echo "$ZEND_MULTIBYTE" >&6; }
137844
 
 
137845
 
case $PHP_ZEND_VM in
137846
 
  SWITCH)
137847
 
    
137848
 
cat >>confdefs.h <<\_ACEOF
137849
 
@%:@define ZEND_VM_KIND ZEND_VM_KIND_SWITCH
137850
 
_ACEOF
137851
 
 
137852
 
    ;;
137853
 
  GOTO)
137854
 
    
137855
 
cat >>confdefs.h <<\_ACEOF
137856
 
@%:@define ZEND_VM_KIND ZEND_VM_KIND_GOTO
137857
 
_ACEOF
137858
 
 
137859
 
    ;;
137860
 
  *)
137861
 
    PHP_ZEND_VM=CALL
137862
 
    
137863
 
cat >>confdefs.h <<\_ACEOF
137864
 
@%:@define ZEND_VM_KIND ZEND_VM_KIND_CALL
137865
 
_ACEOF
137866
 
 
137867
 
    ;;
137868
 
esac
137869
 
 
137870
 
if test "$ZEND_DEBUG" = "yes"; then
137871
 
  
137872
 
cat >>confdefs.h <<\_ACEOF
137873
 
@%:@define ZEND_DEBUG 1
137874
 
_ACEOF
137875
 
 
137876
 
  echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
137877
 
  if test "$CFLAGS" = "-g -O2"; then
137878
 
        CFLAGS=-g
137879
 
  fi
137880
 
  test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall"
137881
 
  test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \
137882
 
    DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
137883
 
else
137884
 
  
137885
 
cat >>confdefs.h <<\_ACEOF
137886
 
@%:@define ZEND_DEBUG 0
137887
 
_ACEOF
137888
 
 
137889
 
fi
137890
 
 
137891
 
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
137892
 
 
137893
 
if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
137894
 
  
137895
 
cat >>confdefs.h <<\_ACEOF
137896
 
@%:@define ZTS 1
137897
 
_ACEOF
137898
 
 
137899
 
  CFLAGS="$CFLAGS -DZTS"
137900
 
  
137901
 
 
137902
 
 
137903
 
fi  
137904
 
 
137905
 
if test "$ZEND_MULTIBYTE" = "yes"; then
137906
 
  
137907
 
cat >>confdefs.h <<\_ACEOF
137908
 
@%:@define ZEND_MULTIBYTE 1
137909
 
_ACEOF
137910
 
 
137911
 
fi
137912
 
 
137913
 
 
137914
 
if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
137915
 
  INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//`
137916
 
else
137917
 
  INLINE_CFLAGS="$CFLAGS"
137918
 
fi
137919
 
 
137920
 
 
137921
 
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
137922
 
$as_echo_n "checking for inline... " >&6; }
137923
 
if test "${ac_cv_c_inline+set}" = set; then
137924
 
  $as_echo_n "(cached) " >&6
137925
 
else
137926
 
  ac_cv_c_inline=no
137927
 
for ac_kw in inline __inline__ __inline; do
137928
 
  cat >conftest.$ac_ext <<_ACEOF
137929
 
/* confdefs.h.  */
137930
 
_ACEOF
137931
 
cat confdefs.h >>conftest.$ac_ext
137932
 
cat >>conftest.$ac_ext <<_ACEOF
137933
 
/* end confdefs.h.  */
137934
 
#ifndef __cplusplus
137935
 
typedef int foo_t;
137936
 
static $ac_kw foo_t static_foo () {return 0; }
137937
 
$ac_kw foo_t foo () {return 0; }
137938
 
#endif
137939
 
 
137940
 
_ACEOF
137941
 
rm -f conftest.$ac_objext
137942
 
if { (ac_try="$ac_compile"
137943
 
case "(($ac_try" in
137944
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
137945
 
  *) ac_try_echo=$ac_try;;
137946
 
esac
137947
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
137948
 
$as_echo "$ac_try_echo") >&5
137949
 
  (eval "$ac_compile") 2>conftest.er1
137950
 
  ac_status=$?
137951
 
  grep -v '^ *+' conftest.er1 >conftest.err
137952
 
  rm -f conftest.er1
137953
 
  cat conftest.err >&5
137954
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
137955
 
  (exit $ac_status); } && {
137956
 
         test -z "$ac_c_werror_flag" ||
137957
 
         test ! -s conftest.err
137958
 
       } && test -s conftest.$ac_objext; then
137959
 
  ac_cv_c_inline=$ac_kw
137960
 
else
137961
 
  $as_echo "$as_me: failed program was:" >&5
137962
 
sed 's/^/| /' conftest.$ac_ext >&5
137963
 
 
137964
 
        
137965
 
fi
137966
 
 
137967
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
137968
 
  test "$ac_cv_c_inline" != no && break
137969
 
done
137970
 
 
137971
 
fi
137972
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
137973
 
$as_echo "$ac_cv_c_inline" >&6; }
137974
 
 
137975
 
 
137976
 
case $ac_cv_c_inline in
137977
 
  inline | yes) ;;
137978
 
  *)
137979
 
    case $ac_cv_c_inline in
137980
 
      no) ac_val=;;
137981
 
      *) ac_val=$ac_cv_c_inline;;
137982
 
    esac
137983
 
    cat >>confdefs.h <<_ACEOF
137984
 
#ifndef __cplusplus
137985
 
#define inline $ac_val
137986
 
#endif
137987
 
_ACEOF
137988
 
    ;;
137989
 
esac
137990
 
 
137991
 
 
137992
 
 
137993
 
 
137994
 
{ $as_echo "$as_me:$LINENO: checking target system is Darwin" >&5
137995
 
$as_echo_n "checking target system is Darwin... " >&6; }
137996
 
if echo "$target" | grep "darwin" > /dev/null; then
137997
 
  
137998
 
cat >>confdefs.h <<\_ACEOF
137999
 
@%:@define DARWIN 1
138000
 
_ACEOF
138001
 
 
138002
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
138003
 
$as_echo "yes" >&6; }
138004
 
else
138005
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
138006
 
$as_echo "no" >&6; }
138007
 
fi
138008
 
 
138009
 
{ $as_echo "$as_me:$LINENO: checking for MM alignment and log values" >&5
138010
 
$as_echo_n "checking for MM alignment and log values... " >&6; }
138011
 
 
138012
 
if test "$cross_compiling" = yes; then
138013
 
  
138014
 
    LIBZEND_MM_ALIGN=8
138015
 
 
138016
 
else
138017
 
  cat >conftest.$ac_ext <<_ACEOF
138018
 
/* confdefs.h.  */
138019
 
_ACEOF
138020
 
cat confdefs.h >>conftest.$ac_ext
138021
 
cat >>conftest.$ac_ext <<_ACEOF
138022
 
/* end confdefs.h.  */
138023
 
 
138024
 
#include <stdio.h>
138025
 
 
138026
 
typedef union _mm_align_test {
138027
 
  void *ptr;
138028
 
  double dbl;
138029
 
  long lng;
138030
 
} mm_align_test;
138031
 
 
138032
 
#if (defined (__GNUC__) && __GNUC__ >= 2)
138033
 
#define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test))
138034
 
#else
138035
 
#define ZEND_MM_ALIGNMENT (sizeof(mm_align_test))
138036
 
#endif
138037
 
 
138038
 
int main()
138039
 
{
138040
 
  int i = ZEND_MM_ALIGNMENT;
138041
 
  int zeros = 0;
138042
 
  FILE *fp;
138043
 
 
138044
 
  while (i & ~0x1) {
138045
 
    zeros++;
138046
 
    i = i >> 1;
138047
 
  }
138048
 
 
138049
 
  fp = fopen("conftest.zend", "w");
138050
 
  fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros);  
138051
 
  fclose(fp);
138052
 
 
138053
 
  exit(0);
138054
 
}
138055
 
 
138056
 
_ACEOF
138057
 
rm -f conftest$ac_exeext
138058
 
if { (ac_try="$ac_link"
138059
 
case "(($ac_try" in
138060
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138061
 
  *) ac_try_echo=$ac_try;;
138062
 
esac
138063
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138064
 
$as_echo "$ac_try_echo") >&5
138065
 
  (eval "$ac_link") 2>&5
138066
 
  ac_status=$?
138067
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138068
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
138069
 
  { (case "(($ac_try" in
138070
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138071
 
  *) ac_try_echo=$ac_try;;
138072
 
esac
138073
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138074
 
$as_echo "$ac_try_echo") >&5
138075
 
  (eval "$ac_try") 2>&5
138076
 
  ac_status=$?
138077
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138078
 
  (exit $ac_status); }; }; then
138079
 
  
138080
 
  LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1`
138081
 
  LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2`
138082
 
  
138083
 
cat >>confdefs.h <<_ACEOF
138084
 
@%:@define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN
138085
 
_ACEOF
138086
 
 
138087
 
  
138088
 
cat >>confdefs.h <<_ACEOF
138089
 
@%:@define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2
138090
 
_ACEOF
138091
 
 
138092
 
 
138093
 
else
138094
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
138095
 
$as_echo "$as_me: failed program was:" >&5
138096
 
sed 's/^/| /' conftest.$ac_ext >&5
138097
 
 
138098
 
fi
138099
 
rm -rf conftest.dSYM
138100
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
138101
 
fi
138102
 
 
138103
 
 
138104
 
 
138105
 
{ $as_echo "$as_me:$LINENO: result: done" >&5
138106
 
$as_echo "done" >&6; }
138107
 
 
138108
 
{ $as_echo "$as_me:$LINENO: checking for memory allocation using mmap(MAP_ANON)" >&5
138109
 
$as_echo_n "checking for memory allocation using mmap(MAP_ANON)... " >&6; }
138110
 
 
138111
 
if test "$cross_compiling" = yes; then
138112
 
  
138113
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
138114
 
$as_echo "no" >&6; }
138115
 
 
138116
 
else
138117
 
  cat >conftest.$ac_ext <<_ACEOF
138118
 
/* confdefs.h.  */
138119
 
_ACEOF
138120
 
cat confdefs.h >>conftest.$ac_ext
138121
 
cat >>conftest.$ac_ext <<_ACEOF
138122
 
/* end confdefs.h.  */
138123
 
 
138124
 
#include <sys/types.h>
138125
 
#include <sys/stat.h>
138126
 
#include <fcntl.h>
138127
 
#include <sys/mman.h>
138128
 
#include <stdlib.h>
138129
 
#include <stdio.h>
138130
 
#ifndef MAP_ANON
138131
 
# ifdef MAP_ANONYMOUS
138132
 
#  define MAP_ANON MAP_ANONYMOUS
138133
 
# endif
138134
 
#endif
138135
 
#ifndef MREMAP_MAYMOVE
138136
 
# define MREMAP_MAYMOVE 0
138137
 
#endif
138138
 
#ifndef MAP_FAILED
138139
 
# define MAP_FAILED ((void*)-1)
138140
 
#endif
138141
 
 
138142
 
#define SEG_SIZE (256*1024)
138143
 
 
138144
 
int main()
138145
 
{
138146
 
        void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
138147
 
        if (seg == MAP_FAILED) {
138148
 
                return 1;
138149
 
        }
138150
 
        if (munmap(seg, SEG_SIZE) != 0) {
138151
 
                return 2;
138152
 
        }
138153
 
        return 0;
138154
 
}
138155
 
 
138156
 
_ACEOF
138157
 
rm -f conftest$ac_exeext
138158
 
if { (ac_try="$ac_link"
138159
 
case "(($ac_try" in
138160
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138161
 
  *) ac_try_echo=$ac_try;;
138162
 
esac
138163
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138164
 
$as_echo "$ac_try_echo") >&5
138165
 
  (eval "$ac_link") 2>&5
138166
 
  ac_status=$?
138167
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138168
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
138169
 
  { (case "(($ac_try" in
138170
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138171
 
  *) ac_try_echo=$ac_try;;
138172
 
esac
138173
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138174
 
$as_echo "$ac_try_echo") >&5
138175
 
  (eval "$ac_try") 2>&5
138176
 
  ac_status=$?
138177
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138178
 
  (exit $ac_status); }; }; then
138179
 
  
138180
 
  
138181
 
cat >>confdefs.h <<\_ACEOF
138182
 
@%:@define HAVE_MEM_MMAP_ANON 1
138183
 
_ACEOF
138184
 
 
138185
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
138186
 
$as_echo "yes" >&6; }
138187
 
 
138188
 
else
138189
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
138190
 
$as_echo "$as_me: failed program was:" >&5
138191
 
sed 's/^/| /' conftest.$ac_ext >&5
138192
 
 
138193
 
( exit $ac_status )
138194
 
 
138195
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
138196
 
$as_echo "no" >&6; }
138197
 
 
138198
 
fi
138199
 
rm -rf conftest.dSYM
138200
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
138201
 
fi
138202
 
 
138203
 
 
138204
 
 
138205
 
{ $as_echo "$as_me:$LINENO: checking for memory allocation using mmap(\"/dev/zero\")" >&5
138206
 
$as_echo_n "checking for memory allocation using mmap(\"/dev/zero\")... " >&6; }
138207
 
 
138208
 
if test "$cross_compiling" = yes; then
138209
 
  
138210
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
138211
 
$as_echo "no" >&6; }
138212
 
 
138213
 
else
138214
 
  cat >conftest.$ac_ext <<_ACEOF
138215
 
/* confdefs.h.  */
138216
 
_ACEOF
138217
 
cat confdefs.h >>conftest.$ac_ext
138218
 
cat >>conftest.$ac_ext <<_ACEOF
138219
 
/* end confdefs.h.  */
138220
 
 
138221
 
#include <sys/types.h>
138222
 
#include <sys/stat.h>
138223
 
#include <fcntl.h>
138224
 
#include <sys/mman.h>
138225
 
#include <stdlib.h>
138226
 
#include <stdio.h>
138227
 
#ifndef MAP_ANON
138228
 
# ifdef MAP_ANONYMOUS
138229
 
#  define MAP_ANON MAP_ANONYMOUS
138230
 
# endif
138231
 
#endif
138232
 
#ifndef MREMAP_MAYMOVE
138233
 
# define MREMAP_MAYMOVE 0
138234
 
#endif
138235
 
#ifndef MAP_FAILED
138236
 
# define MAP_FAILED ((void*)-1)
138237
 
#endif
138238
 
 
138239
 
#define SEG_SIZE (256*1024)
138240
 
 
138241
 
int main()
138242
 
{
138243
 
        int fd;
138244
 
        void *seg;
138245
 
 
138246
 
        fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
138247
 
        if (fd < 0) {
138248
 
                return 1;
138249
 
        }
138250
 
        seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
138251
 
        if (seg == MAP_FAILED) {
138252
 
                return 2;
138253
 
        }
138254
 
        if (munmap(seg, SEG_SIZE) != 0) {
138255
 
                return 3;
138256
 
        }
138257
 
        if (close(fd) != 0) {
138258
 
                return 4;
138259
 
        }
138260
 
        return 0;
138261
 
}
138262
 
 
138263
 
_ACEOF
138264
 
rm -f conftest$ac_exeext
138265
 
if { (ac_try="$ac_link"
138266
 
case "(($ac_try" in
138267
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138268
 
  *) ac_try_echo=$ac_try;;
138269
 
esac
138270
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138271
 
$as_echo "$ac_try_echo") >&5
138272
 
  (eval "$ac_link") 2>&5
138273
 
  ac_status=$?
138274
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138275
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
138276
 
  { (case "(($ac_try" in
138277
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138278
 
  *) ac_try_echo=$ac_try;;
138279
 
esac
138280
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138281
 
$as_echo "$ac_try_echo") >&5
138282
 
  (eval "$ac_try") 2>&5
138283
 
  ac_status=$?
138284
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138285
 
  (exit $ac_status); }; }; then
138286
 
  
138287
 
  
138288
 
cat >>confdefs.h <<\_ACEOF
138289
 
@%:@define HAVE_MEM_MMAP_ZERO 1
138290
 
_ACEOF
138291
 
 
138292
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
138293
 
$as_echo "yes" >&6; }
138294
 
 
138295
 
else
138296
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
138297
 
$as_echo "$as_me: failed program was:" >&5
138298
 
sed 's/^/| /' conftest.$ac_ext >&5
138299
 
 
138300
 
( exit $ac_status )
138301
 
 
138302
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
138303
 
$as_echo "no" >&6; }
138304
 
 
138305
 
fi
138306
 
rm -rf conftest.dSYM
138307
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
138308
 
fi
138309
 
 
138310
 
 
138311
 
 
138312
 
 
138313
 
for ac_func in mremap
138314
 
do
138315
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
138316
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
138317
 
$as_echo_n "checking for $ac_func... " >&6; }
138318
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
138319
 
  $as_echo_n "(cached) " >&6
138320
 
else
138321
 
  cat >conftest.$ac_ext <<_ACEOF
138322
 
/* confdefs.h.  */
138323
 
_ACEOF
138324
 
cat confdefs.h >>conftest.$ac_ext
138325
 
cat >>conftest.$ac_ext <<_ACEOF
138326
 
/* end confdefs.h.  */
138327
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
138328
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
138329
 
#define $ac_func innocuous_$ac_func
138330
 
 
138331
 
/* System header to define __stub macros and hopefully few prototypes,
138332
 
    which can conflict with char $ac_func (); below.
138333
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
138334
 
    <limits.h> exists even on freestanding compilers.  */
138335
 
 
138336
 
#ifdef __STDC__
138337
 
# include <limits.h>
138338
 
#else
138339
 
# include <assert.h>
138340
 
#endif
138341
 
 
138342
 
#undef $ac_func
138343
 
 
138344
 
/* Override any GCC internal prototype to avoid an error.
138345
 
   Use char because int might match the return type of a GCC
138346
 
   builtin and then its argument prototype would still apply.  */
138347
 
#ifdef __cplusplus
138348
 
extern "C"
138349
 
#endif
138350
 
char $ac_func ();
138351
 
/* The GNU C library defines this for functions which it implements
138352
 
    to always fail with ENOSYS.  Some functions are actually named
138353
 
    something starting with __ and the normal name is an alias.  */
138354
 
#if defined __stub_$ac_func || defined __stub___$ac_func
138355
 
choke me
138356
 
#endif
138357
 
 
138358
 
int
138359
 
main ()
138360
 
{
138361
 
return $ac_func ();
138362
 
  ;
138363
 
  return 0;
138364
 
}
138365
 
_ACEOF
138366
 
rm -f conftest.$ac_objext conftest$ac_exeext
138367
 
if { (ac_try="$ac_link"
138368
 
case "(($ac_try" in
138369
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138370
 
  *) ac_try_echo=$ac_try;;
138371
 
esac
138372
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138373
 
$as_echo "$ac_try_echo") >&5
138374
 
  (eval "$ac_link") 2>conftest.er1
138375
 
  ac_status=$?
138376
 
  grep -v '^ *+' conftest.er1 >conftest.err
138377
 
  rm -f conftest.er1
138378
 
  cat conftest.err >&5
138379
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138380
 
  (exit $ac_status); } && {
138381
 
         test -z "$ac_c_werror_flag" ||
138382
 
         test ! -s conftest.err
138383
 
       } && test -s conftest$ac_exeext && {
138384
 
         test "$cross_compiling" = yes ||
138385
 
         $as_test_x conftest$ac_exeext
138386
 
       }; then
138387
 
  eval "$as_ac_var=yes"
138388
 
else
138389
 
  $as_echo "$as_me: failed program was:" >&5
138390
 
sed 's/^/| /' conftest.$ac_ext >&5
138391
 
 
138392
 
        eval "$as_ac_var=no"
138393
 
fi
138394
 
 
138395
 
rm -rf conftest.dSYM
138396
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
138397
 
      conftest$ac_exeext conftest.$ac_ext
138398
 
fi
138399
 
ac_res=`eval 'as_val=${'$as_ac_var'}
138400
 
                 $as_echo "$as_val"'`
138401
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
138402
 
$as_echo "$ac_res" >&6; }
138403
 
as_val=`eval 'as_val=${'$as_ac_var'}
138404
 
                 $as_echo "$as_val"'`
138405
 
   if test "x$as_val" = x""yes; then
138406
 
  cat >>confdefs.h <<_ACEOF
138407
 
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
138408
 
_ACEOF
138409
 
 
138410
 
fi
138411
 
done
138412
 
 
138413
 
 
138414
 
 
138415
 
 
138416
 
if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
138417
 
  
138418
 
cat >>confdefs.h <<\_ACEOF
138419
 
@%:@define ZTS 1
138420
 
_ACEOF
138421
 
 
138422
 
  PHP_THREAD_SAFETY=yes
138423
 
else
138424
 
  PHP_THREAD_SAFETY=no
138425
 
fi
138426
 
 
138427
 
INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
138428
 
INCLUDES="$INCLUDES -I\$(top_builddir)/Zend"
138429
 
 
138430
 
if test "$abs_srcdir" != "$abs_builddir"; then
138431
 
  INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend"
138432
 
  INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/"
138433
 
fi
138434
 
 
138435
 
ZEND_EXTRA_LIBS="$LIBS"
138436
 
unset LIBS LDFLAGS
138437
 
 
138438
 
 
138439
 
@%:@ Check whether --enable- was given.
138440
 
if test "${enable_+set}" = set; then
138441
 
  enableval=$enable_; 
138442
 
fi
138443
 
 
138444
 
 
138445
 
 
138446
 
  { $as_echo "$as_me:$LINENO: result: " >&5
138447
 
$as_echo "" >&6; }
138448
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Configuring TSRM${T_ME}" >&5
138449
 
$as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; }
138450
 
 
138451
 
 
138452
 
 
138453
 
 
138454
 
 
138455
 
for ac_header in stdarg.h
138456
 
do
138457
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
138458
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
138459
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
138460
 
$as_echo_n "checking for $ac_header... " >&6; }
138461
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
138462
 
  $as_echo_n "(cached) " >&6
138463
 
fi
138464
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
138465
 
                 $as_echo "$as_val"'`
138466
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
138467
 
$as_echo "$ac_res" >&6; }
138468
 
else
138469
 
  # Is the header compilable?
138470
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
138471
 
$as_echo_n "checking $ac_header usability... " >&6; }
138472
 
cat >conftest.$ac_ext <<_ACEOF
138473
 
/* confdefs.h.  */
138474
 
_ACEOF
138475
 
cat confdefs.h >>conftest.$ac_ext
138476
 
cat >>conftest.$ac_ext <<_ACEOF
138477
 
/* end confdefs.h.  */
138478
 
$ac_includes_default
138479
 
@%:@include <$ac_header>
138480
 
_ACEOF
138481
 
rm -f conftest.$ac_objext
138482
 
if { (ac_try="$ac_compile"
138483
 
case "(($ac_try" in
138484
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138485
 
  *) ac_try_echo=$ac_try;;
138486
 
esac
138487
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138488
 
$as_echo "$ac_try_echo") >&5
138489
 
  (eval "$ac_compile") 2>conftest.er1
138490
 
  ac_status=$?
138491
 
  grep -v '^ *+' conftest.er1 >conftest.err
138492
 
  rm -f conftest.er1
138493
 
  cat conftest.err >&5
138494
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138495
 
  (exit $ac_status); } && {
138496
 
         test -z "$ac_c_werror_flag" ||
138497
 
         test ! -s conftest.err
138498
 
       } && test -s conftest.$ac_objext; then
138499
 
  ac_header_compiler=yes
138500
 
else
138501
 
  $as_echo "$as_me: failed program was:" >&5
138502
 
sed 's/^/| /' conftest.$ac_ext >&5
138503
 
 
138504
 
        ac_header_compiler=no
138505
 
fi
138506
 
 
138507
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
138508
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
138509
 
$as_echo "$ac_header_compiler" >&6; }
138510
 
 
138511
 
# Is the header present?
138512
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
138513
 
$as_echo_n "checking $ac_header presence... " >&6; }
138514
 
cat >conftest.$ac_ext <<_ACEOF
138515
 
/* confdefs.h.  */
138516
 
_ACEOF
138517
 
cat confdefs.h >>conftest.$ac_ext
138518
 
cat >>conftest.$ac_ext <<_ACEOF
138519
 
/* end confdefs.h.  */
138520
 
@%:@include <$ac_header>
138521
 
_ACEOF
138522
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
138523
 
case "(($ac_try" in
138524
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138525
 
  *) ac_try_echo=$ac_try;;
138526
 
esac
138527
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138528
 
$as_echo "$ac_try_echo") >&5
138529
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
138530
 
  ac_status=$?
138531
 
  grep -v '^ *+' conftest.er1 >conftest.err
138532
 
  rm -f conftest.er1
138533
 
  cat conftest.err >&5
138534
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138535
 
  (exit $ac_status); } >/dev/null && {
138536
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
138537
 
         test ! -s conftest.err
138538
 
       }; then
138539
 
  ac_header_preproc=yes
138540
 
else
138541
 
  $as_echo "$as_me: failed program was:" >&5
138542
 
sed 's/^/| /' conftest.$ac_ext >&5
138543
 
 
138544
 
  ac_header_preproc=no
138545
 
fi
138546
 
 
138547
 
rm -f conftest.err conftest.$ac_ext
138548
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
138549
 
$as_echo "$ac_header_preproc" >&6; }
138550
 
 
138551
 
# So?  What about this header?
138552
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
138553
 
  yes:no: )
138554
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
138555
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
138556
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
138557
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
138558
 
    ac_header_preproc=yes
138559
 
    ;;
138560
 
  no:yes:* )
138561
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
138562
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
138563
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
138564
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
138565
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
138566
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
138567
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
138568
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
138569
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
138570
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
138571
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
138572
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
138573
 
    
138574
 
    ;;
138575
 
esac
138576
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
138577
 
$as_echo_n "checking for $ac_header... " >&6; }
138578
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
138579
 
  $as_echo_n "(cached) " >&6
138580
 
else
138581
 
  eval "$as_ac_Header=\$ac_header_preproc"
138582
 
fi
138583
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
138584
 
                 $as_echo "$as_val"'`
138585
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
138586
 
$as_echo "$ac_res" >&6; }
138587
 
 
138588
 
fi
138589
 
as_val=`eval 'as_val=${'$as_ac_Header'}
138590
 
                 $as_echo "$as_val"'`
138591
 
   if test "x$as_val" = x""yes; then
138592
 
  cat >>confdefs.h <<_ACEOF
138593
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
138594
 
_ACEOF
138595
 
 
138596
 
fi
138597
 
 
138598
 
done
138599
 
 
138600
 
 
138601
 
 
138602
 
if test "$PHP_THREAD_SAFETY" = "yes"; then
138603
 
  
138604
 
 
138605
 
 
138606
 
 
138607
 
@%:@ Check whether --with-tsrm-pth was given.
138608
 
if test "${with_tsrm_pth+set}" = set; then
138609
 
  withval=$with_tsrm_pth; 
138610
 
  TSRM_PTH=$withval
138611
 
 
138612
 
else
138613
 
  
138614
 
  TSRM_PTH=no
138615
 
 
138616
 
fi
138617
 
 
138618
 
 
138619
 
 
138620
 
@%:@ Check whether --with-tsrm-st was given.
138621
 
if test "${with_tsrm_st+set}" = set; then
138622
 
  withval=$with_tsrm_st; 
138623
 
  TSRM_ST=$withval
138624
 
 
138625
 
else
138626
 
  
138627
 
  TSRM_ST=no
138628
 
 
138629
 
fi
138630
 
 
138631
 
 
138632
 
 
138633
 
@%:@ Check whether --with-tsrm-pthreads was given.
138634
 
if test "${with_tsrm_pthreads+set}" = set; then
138635
 
  withval=$with_tsrm_pthreads; 
138636
 
  TSRM_PTHREADS=$withval
138637
 
 
138638
 
else
138639
 
  
138640
 
  TSRM_PTHREADS=yes
138641
 
 
138642
 
fi
138643
 
 
138644
 
 
138645
 
test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config
138646
 
 
138647
 
if test "$TSRM_PTH" != "no"; then
138648
 
  
138649
 
 
138650
 
{ $as_echo "$as_me:$LINENO: checking for GNU Pth" >&5
138651
 
$as_echo_n "checking for GNU Pth... " >&6; }
138652
 
PTH_PREFIX="`$TSRM_PTH --prefix`"
138653
 
if test -z "$PTH_PREFIX"; then
138654
 
  { $as_echo "$as_me:$LINENO: result: Please check your Pth installation" >&5
138655
 
$as_echo "Please check your Pth installation" >&6; }
138656
 
fi
138657
 
 
138658
 
CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`"
138659
 
LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`"
138660
 
LIBS="$LIBS `$TSRM_PTH --libs`"
138661
 
 
138662
 
 
138663
 
cat >>confdefs.h <<\_ACEOF
138664
 
@%:@define GNUPTH 1
138665
 
_ACEOF
138666
 
 
138667
 
{ $as_echo "$as_me:$LINENO: result: yes - installed in $PTH_PREFIX" >&5
138668
 
$as_echo "yes - installed in $PTH_PREFIX" >&6; }
138669
 
 
138670
 
 
138671
 
elif test "$TSRM_ST" != "no"; then
138672
 
  
138673
 
  if test -r "$TSRM_ST/include/st.h"; then
138674
 
    CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include"
138675
 
    LDFLAGS="$LDFLAGS -L$TSRM_ST/lib"
138676
 
  elif test -r "$TSRM_ST/st.h"; then
138677
 
    CPPFLAGS="$CPPFLAGS -I$TSRM_ST"
138678
 
    LDFLAGS="$LDFLAGS -L$TSRM_ST"
138679
 
  fi
138680
 
  
138681
 
for ac_header in st.h
138682
 
do
138683
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
138684
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
138685
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
138686
 
$as_echo_n "checking for $ac_header... " >&6; }
138687
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
138688
 
  $as_echo_n "(cached) " >&6
138689
 
fi
138690
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
138691
 
                 $as_echo "$as_val"'`
138692
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
138693
 
$as_echo "$ac_res" >&6; }
138694
 
else
138695
 
  # Is the header compilable?
138696
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
138697
 
$as_echo_n "checking $ac_header usability... " >&6; }
138698
 
cat >conftest.$ac_ext <<_ACEOF
138699
 
/* confdefs.h.  */
138700
 
_ACEOF
138701
 
cat confdefs.h >>conftest.$ac_ext
138702
 
cat >>conftest.$ac_ext <<_ACEOF
138703
 
/* end confdefs.h.  */
138704
 
$ac_includes_default
138705
 
@%:@include <$ac_header>
138706
 
_ACEOF
138707
 
rm -f conftest.$ac_objext
138708
 
if { (ac_try="$ac_compile"
138709
 
case "(($ac_try" in
138710
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138711
 
  *) ac_try_echo=$ac_try;;
138712
 
esac
138713
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138714
 
$as_echo "$ac_try_echo") >&5
138715
 
  (eval "$ac_compile") 2>conftest.er1
138716
 
  ac_status=$?
138717
 
  grep -v '^ *+' conftest.er1 >conftest.err
138718
 
  rm -f conftest.er1
138719
 
  cat conftest.err >&5
138720
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138721
 
  (exit $ac_status); } && {
138722
 
         test -z "$ac_c_werror_flag" ||
138723
 
         test ! -s conftest.err
138724
 
       } && test -s conftest.$ac_objext; then
138725
 
  ac_header_compiler=yes
138726
 
else
138727
 
  $as_echo "$as_me: failed program was:" >&5
138728
 
sed 's/^/| /' conftest.$ac_ext >&5
138729
 
 
138730
 
        ac_header_compiler=no
138731
 
fi
138732
 
 
138733
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
138734
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
138735
 
$as_echo "$ac_header_compiler" >&6; }
138736
 
 
138737
 
# Is the header present?
138738
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
138739
 
$as_echo_n "checking $ac_header presence... " >&6; }
138740
 
cat >conftest.$ac_ext <<_ACEOF
138741
 
/* confdefs.h.  */
138742
 
_ACEOF
138743
 
cat confdefs.h >>conftest.$ac_ext
138744
 
cat >>conftest.$ac_ext <<_ACEOF
138745
 
/* end confdefs.h.  */
138746
 
@%:@include <$ac_header>
138747
 
_ACEOF
138748
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
138749
 
case "(($ac_try" in
138750
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138751
 
  *) ac_try_echo=$ac_try;;
138752
 
esac
138753
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138754
 
$as_echo "$ac_try_echo") >&5
138755
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
138756
 
  ac_status=$?
138757
 
  grep -v '^ *+' conftest.er1 >conftest.err
138758
 
  rm -f conftest.er1
138759
 
  cat conftest.err >&5
138760
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138761
 
  (exit $ac_status); } >/dev/null && {
138762
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
138763
 
         test ! -s conftest.err
138764
 
       }; then
138765
 
  ac_header_preproc=yes
138766
 
else
138767
 
  $as_echo "$as_me: failed program was:" >&5
138768
 
sed 's/^/| /' conftest.$ac_ext >&5
138769
 
 
138770
 
  ac_header_preproc=no
138771
 
fi
138772
 
 
138773
 
rm -f conftest.err conftest.$ac_ext
138774
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
138775
 
$as_echo "$ac_header_preproc" >&6; }
138776
 
 
138777
 
# So?  What about this header?
138778
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
138779
 
  yes:no: )
138780
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
138781
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
138782
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
138783
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
138784
 
    ac_header_preproc=yes
138785
 
    ;;
138786
 
  no:yes:* )
138787
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
138788
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
138789
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
138790
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
138791
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
138792
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
138793
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
138794
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
138795
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
138796
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
138797
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
138798
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
138799
 
    
138800
 
    ;;
138801
 
esac
138802
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
138803
 
$as_echo_n "checking for $ac_header... " >&6; }
138804
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
138805
 
  $as_echo_n "(cached) " >&6
138806
 
else
138807
 
  eval "$as_ac_Header=\$ac_header_preproc"
138808
 
fi
138809
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
138810
 
                 $as_echo "$as_val"'`
138811
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
138812
 
$as_echo "$ac_res" >&6; }
138813
 
 
138814
 
fi
138815
 
as_val=`eval 'as_val=${'$as_ac_Header'}
138816
 
                 $as_echo "$as_val"'`
138817
 
   if test "x$as_val" = x""yes; then
138818
 
  cat >>confdefs.h <<_ACEOF
138819
 
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
138820
 
_ACEOF
138821
 
 
138822
 
else
138823
 
  
138824
 
    { { $as_echo "$as_me:$LINENO: error: Sorry, I was unable to locate the State Threads header file.  Please specify the prefix using --with-tsrm-st=/prefix" >&5
138825
 
$as_echo "$as_me: error: Sorry, I was unable to locate the State Threads header file.  Please specify the prefix using --with-tsrm-st=/prefix" >&2;}
138826
 
   { (exit 1); exit 1; }; }
138827
 
  
138828
 
fi
138829
 
 
138830
 
done
138831
 
 
138832
 
  LIBS="$LIBS -lst"
138833
 
  { $as_echo "$as_me:$LINENO: checking for SGI's State Threads" >&5
138834
 
$as_echo_n "checking for SGI's State Threads... " >&6; }
138835
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
138836
 
$as_echo "yes" >&6; }
138837
 
  
138838
 
cat >>confdefs.h <<\_ACEOF
138839
 
@%:@define TSRM_ST 1
138840
 
_ACEOF
138841
 
 
138842
 
 
138843
 
elif test "$TSRM_PTHREADS" != "no"; then
138844
 
  
138845
 
                
138846
 
 
138847
 
 
138848
 
if test "$beos_threads" = "1"; then
138849
 
  pthreads_working="yes"
138850
 
  ac_cv_pthreads_cflags=""
138851
 
else
138852
 
  save_CFLAGS=$CFLAGS
138853
 
  save_LIBS=$LIBS
138854
 
  
138855
 
if test -n "$ac_cv_pthreads_lib"; then
138856
 
  LIBS="$LIBS -l$ac_cv_pthreads_lib"
138857
 
fi
138858
 
 
138859
 
if test -n "$ac_cv_pthreads_cflags"; then
138860
 
  CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
138861
 
fi
138862
 
 
138863
 
  
138864
 
if test "$cross_compiling" = yes; then
138865
 
  
138866
 
    pthreads_working=no
138867
 
  case $host_alias in
138868
 
  *netware*)
138869
 
    pthreads_working=yes
138870
 
  esac
138871
 
 
138872
 
 
138873
 
else
138874
 
  cat >conftest.$ac_ext <<_ACEOF
138875
 
/* confdefs.h.  */
138876
 
_ACEOF
138877
 
cat confdefs.h >>conftest.$ac_ext
138878
 
cat >>conftest.$ac_ext <<_ACEOF
138879
 
/* end confdefs.h.  */
138880
 
 
138881
 
#include <pthread.h>
138882
 
#include <stddef.h>
138883
 
 
138884
 
void *thread_routine(void *data) {
138885
 
    return data;
138886
 
}
138887
 
 
138888
 
int main() {
138889
 
    pthread_t thd;
138890
 
    pthread_mutexattr_t mattr;
138891
 
    int data = 1;
138892
 
    pthread_mutexattr_init(&mattr);
138893
 
    return pthread_create(&thd, NULL, thread_routine, &data);
138894
 
138895
 
_ACEOF
138896
 
rm -f conftest$ac_exeext
138897
 
if { (ac_try="$ac_link"
138898
 
case "(($ac_try" in
138899
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138900
 
  *) ac_try_echo=$ac_try;;
138901
 
esac
138902
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138903
 
$as_echo "$ac_try_echo") >&5
138904
 
  (eval "$ac_link") 2>&5
138905
 
  ac_status=$?
138906
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138907
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
138908
 
  { (case "(($ac_try" in
138909
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138910
 
  *) ac_try_echo=$ac_try;;
138911
 
esac
138912
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138913
 
$as_echo "$ac_try_echo") >&5
138914
 
  (eval "$ac_try") 2>&5
138915
 
  ac_status=$?
138916
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138917
 
  (exit $ac_status); }; }; then
138918
 
  
138919
 
  pthreads_working=yes
138920
 
  
138921
 
else
138922
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
138923
 
$as_echo "$as_me: failed program was:" >&5
138924
 
sed 's/^/| /' conftest.$ac_ext >&5
138925
 
 
138926
 
( exit $ac_status )
138927
 
 
138928
 
  pthreads_working=no
138929
 
  
138930
 
fi
138931
 
rm -rf conftest.dSYM
138932
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
138933
 
fi
138934
 
 
138935
 
  
138936
 
  LIBS=$save_LIBS
138937
 
  CFLAGS=$save_CFLAGS
138938
 
 
138939
 
  { $as_echo "$as_me:$LINENO: checking for pthreads_cflags" >&5
138940
 
$as_echo_n "checking for pthreads_cflags... " >&6; }
138941
 
if test "${ac_cv_pthreads_cflags+set}" = set; then
138942
 
  $as_echo_n "(cached) " >&6
138943
 
else
138944
 
  
138945
 
  ac_cv_pthreads_cflags=
138946
 
  if test "$pthreads_working" != "yes"; then
138947
 
    for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do 
138948
 
      ac_save=$CFLAGS
138949
 
      CFLAGS="$CFLAGS $flag"
138950
 
      
138951
 
if test "$cross_compiling" = yes; then
138952
 
  
138953
 
    pthreads_working=no
138954
 
  case $host_alias in
138955
 
  *netware*)
138956
 
    pthreads_working=yes
138957
 
  esac
138958
 
 
138959
 
 
138960
 
else
138961
 
  cat >conftest.$ac_ext <<_ACEOF
138962
 
/* confdefs.h.  */
138963
 
_ACEOF
138964
 
cat confdefs.h >>conftest.$ac_ext
138965
 
cat >>conftest.$ac_ext <<_ACEOF
138966
 
/* end confdefs.h.  */
138967
 
 
138968
 
#include <pthread.h>
138969
 
#include <stddef.h>
138970
 
 
138971
 
void *thread_routine(void *data) {
138972
 
    return data;
138973
 
}
138974
 
 
138975
 
int main() {
138976
 
    pthread_t thd;
138977
 
    pthread_mutexattr_t mattr;
138978
 
    int data = 1;
138979
 
    pthread_mutexattr_init(&mattr);
138980
 
    return pthread_create(&thd, NULL, thread_routine, &data);
138981
 
138982
 
_ACEOF
138983
 
rm -f conftest$ac_exeext
138984
 
if { (ac_try="$ac_link"
138985
 
case "(($ac_try" in
138986
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138987
 
  *) ac_try_echo=$ac_try;;
138988
 
esac
138989
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
138990
 
$as_echo "$ac_try_echo") >&5
138991
 
  (eval "$ac_link") 2>&5
138992
 
  ac_status=$?
138993
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
138994
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
138995
 
  { (case "(($ac_try" in
138996
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
138997
 
  *) ac_try_echo=$ac_try;;
138998
 
esac
138999
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
139000
 
$as_echo "$ac_try_echo") >&5
139001
 
  (eval "$ac_try") 2>&5
139002
 
  ac_status=$?
139003
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
139004
 
  (exit $ac_status); }; }; then
139005
 
  
139006
 
  pthreads_working=yes
139007
 
  
139008
 
else
139009
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
139010
 
$as_echo "$as_me: failed program was:" >&5
139011
 
sed 's/^/| /' conftest.$ac_ext >&5
139012
 
 
139013
 
( exit $ac_status )
139014
 
 
139015
 
  pthreads_working=no
139016
 
  
139017
 
fi
139018
 
rm -rf conftest.dSYM
139019
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
139020
 
fi
139021
 
 
139022
 
  
139023
 
      CFLAGS=$ac_save
139024
 
      if test "$pthreads_working" = "yes"; then
139025
 
        ac_cv_pthreads_cflags=$flag
139026
 
        break
139027
 
      fi
139028
 
    done
139029
 
  fi
139030
 
fi
139031
 
 
139032
 
fi
139033
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthreads_cflags" >&5
139034
 
$as_echo "$ac_cv_pthreads_cflags" >&6; }
139035
 
 
139036
 
{ $as_echo "$as_me:$LINENO: checking for pthreads_lib" >&5
139037
 
$as_echo_n "checking for pthreads_lib... " >&6; }
139038
 
if test "${ac_cv_pthreads_lib+set}" = set; then
139039
 
  $as_echo_n "(cached) " >&6
139040
 
else
139041
 
  
139042
 
ac_cv_pthreads_lib=
139043
 
if test "$pthreads_working" != "yes"; then
139044
 
  for lib in pthread pthreads c_r; do
139045
 
    ac_save=$LIBS
139046
 
    LIBS="$LIBS -l$lib"
139047
 
    
139048
 
if test "$cross_compiling" = yes; then
139049
 
  
139050
 
    pthreads_working=no
139051
 
  case $host_alias in
139052
 
  *netware*)
139053
 
    pthreads_working=yes
139054
 
  esac
139055
 
 
139056
 
 
139057
 
else
139058
 
  cat >conftest.$ac_ext <<_ACEOF
139059
 
/* confdefs.h.  */
139060
 
_ACEOF
139061
 
cat confdefs.h >>conftest.$ac_ext
139062
 
cat >>conftest.$ac_ext <<_ACEOF
139063
 
/* end confdefs.h.  */
139064
 
 
139065
 
#include <pthread.h>
139066
 
#include <stddef.h>
139067
 
 
139068
 
void *thread_routine(void *data) {
139069
 
    return data;
139070
 
}
139071
 
 
139072
 
int main() {
139073
 
    pthread_t thd;
139074
 
    pthread_mutexattr_t mattr;
139075
 
    int data = 1;
139076
 
    pthread_mutexattr_init(&mattr);
139077
 
    return pthread_create(&thd, NULL, thread_routine, &data);
139078
 
139079
 
_ACEOF
139080
 
rm -f conftest$ac_exeext
139081
 
if { (ac_try="$ac_link"
139082
 
case "(($ac_try" in
139083
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
139084
 
  *) ac_try_echo=$ac_try;;
139085
 
esac
139086
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
139087
 
$as_echo "$ac_try_echo") >&5
139088
 
  (eval "$ac_link") 2>&5
139089
 
  ac_status=$?
139090
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
139091
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
139092
 
  { (case "(($ac_try" in
139093
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
139094
 
  *) ac_try_echo=$ac_try;;
139095
 
esac
139096
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
139097
 
$as_echo "$ac_try_echo") >&5
139098
 
  (eval "$ac_try") 2>&5
139099
 
  ac_status=$?
139100
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
139101
 
  (exit $ac_status); }; }; then
139102
 
  
139103
 
  pthreads_working=yes
139104
 
  
139105
 
else
139106
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
139107
 
$as_echo "$as_me: failed program was:" >&5
139108
 
sed 's/^/| /' conftest.$ac_ext >&5
139109
 
 
139110
 
( exit $ac_status )
139111
 
 
139112
 
  pthreads_working=no
139113
 
  
139114
 
fi
139115
 
rm -rf conftest.dSYM
139116
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
139117
 
fi
139118
 
 
139119
 
  
139120
 
    LIBS=$ac_save
139121
 
    if test "$pthreads_working" = "yes"; then
139122
 
      ac_cv_pthreads_lib=$lib
139123
 
      break
139124
 
    fi
139125
 
  done
139126
 
fi
139127
 
 
139128
 
fi
139129
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthreads_lib" >&5
139130
 
$as_echo "$ac_cv_pthreads_lib" >&6; }
139131
 
 
139132
 
if test "$pthreads_working" = "yes"; then
139133
 
  threads_result="POSIX-Threads found"
139134
 
else
139135
 
  threads_result="POSIX-Threads not found"
139136
 
fi
139137
 
 
139138
 
 
139139
 
if test "$beos_threads" = "1"; then 
139140
 
  
139141
 
cat >>confdefs.h <<\_ACEOF
139142
 
@%:@define BETHREADS 1
139143
 
_ACEOF
139144
 
 
139145
 
else            
139146
 
  if test "$pthreads_working" != "yes"; then
139147
 
    { { $as_echo "$as_me:$LINENO: error: Your system seems to lack POSIX threads." >&5
139148
 
$as_echo "$as_me: error: Your system seems to lack POSIX threads." >&2;}
139149
 
   { (exit 1); exit 1; }; }
139150
 
  fi
139151
 
 
139152
 
  
139153
 
cat >>confdefs.h <<\_ACEOF
139154
 
@%:@define PTHREADS 1
139155
 
_ACEOF
139156
 
 
139157
 
 
139158
 
  { $as_echo "$as_me:$LINENO: checking for POSIX threads" >&5
139159
 
$as_echo_n "checking for POSIX threads... " >&6; }
139160
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
139161
 
$as_echo "yes" >&6; }
139162
 
fi
139163
 
 
139164
 
fi
139165
 
 
139166
 
 
139167
 
fi
139168
 
 
139169
 
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS"
139170
 
EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS"
139171
 
EXTRA_LIBS="$EXTRA_LIBS $LIBS"
139172
 
unset LIBS LDFLAGS
139173
 
 
139174
 
test "$prefix" = "NONE" && prefix=/usr/local
139175
 
test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
139176
 
test "$program_prefix" = "NONE" && program_prefix=
139177
 
test "$program_suffix" = "NONE" && program_suffix=
139178
 
 
139179
 
case $libdir in
139180
 
  '${exec_prefix}/lib')
139181
 
    libdir=$libdir/php
139182
 
    ;;
139183
 
esac
139184
 
case $datadir in
139185
 
  '${prefix}/share')
139186
 
    datadir=$datadir/php
139187
 
    ;;
139188
 
esac
139189
 
 
139190
 
phplibdir=`pwd`/modules
139191
 
$php_shtool mkdir -p $phplibdir
139192
 
phptempdir=`pwd`/libs
139193
 
 
139194
 
old_exec_prefix=$exec_prefix
139195
 
old_libdir=$libdir
139196
 
old_datadir=$datadir
139197
 
exec_prefix=`eval echo $exec_prefix`
139198
 
libdir=`eval echo $libdir`
139199
 
datadir=`eval echo $datadir`
139200
 
 
139201
 
 
139202
 
ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO //'`
139203
 
 
139204
 
if test -z "$EXTENSION_DIR"; then
139205
 
  extbasedir=$ZEND_MODULE_API_NO
139206
 
  if test "$oldstyleextdir" = "yes"; then
139207
 
    if test "$PHP_DEBUG" = "1"; then
139208
 
      part1=debug
139209
 
    else
139210
 
      part1=no-debug
139211
 
    fi
139212
 
    if test "$enable_maintainer_zts" = "yes"; then
139213
 
      part2=zts
139214
 
    else
139215
 
      part2=non-zts
139216
 
    fi
139217
 
    extbasedir=$part1-$part2-$extbasedir
139218
 
    EXTENSION_DIR=$libdir/extensions/$extbasedir
139219
 
  else
139220
 
    if test "$enable_maintainer_zts" = "yes"; then
139221
 
      extbasedir=$extbasedir-zts
139222
 
    fi
139223
 
    
139224
 
    if test "$PHP_DEBUG" = "1"; then
139225
 
      extbasedir=$extbasedir-debug
139226
 
    fi
139227
 
    EXTENSION_DIR=$libdir/$extbasedir
139228
 
  fi
139229
 
fi
139230
 
 
139231
 
case $PHP_LAYOUT in
139232
 
  GNU)
139233
 
    datarootdir=$prefix/share
139234
 
    ;;
139235
 
  *)
139236
 
    datarootdir=$prefix/php
139237
 
    ;;
139238
 
esac
139239
 
 
139240
 
EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR`
139241
 
EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR`
139242
 
EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir`
139243
 
EXPANDED_BINDIR=`eval echo $bindir`
139244
 
EXPANDED_SBINDIR=`eval echo $sbindir`
139245
 
EXPANDED_MANDIR=`eval echo $mandir`
139246
 
EXPANDED_LIBDIR=$libdir
139247
 
EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
139248
 
EXPANDED_DATADIR=$datadir
139249
 
EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
139250
 
EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
139251
 
INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
139252
 
 
139253
 
exec_prefix=$old_exec_prefix
139254
 
libdir=$old_libdir
139255
 
datadir=$old_datadir
139256
 
 
139257
 
 
139258
 
 
139259
 
 
139260
 
 
139261
 
 
139262
 
 
139263
 
 
139264
 
 
139265
 
 
139266
 
 
139267
 
 
139268
 
 
139269
 
 
139270
 
if test -n "$php_ldflags_add_usr_lib"; then
139271
 
  PHP_RPATHS="$PHP_RPATHS /usr/lib"
139272
 
fi
139273
 
 
139274
 
 
139275
 
  OLD_RPATHS=$PHP_RPATHS
139276
 
  unset PHP_RPATHS
139277
 
 
139278
 
  for i in $OLD_RPATHS; do
139279
 
    PHP_LDFLAGS="$PHP_LDFLAGS -L$i"
139280
 
    PHP_RPATHS="$PHP_RPATHS -R $i"
139281
 
    NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i"
139282
 
  done
139283
 
 
139284
 
  if test "$PHP_RPATH" = "no"; then
139285
 
    unset PHP_RPATHS
139286
 
    unset NATIVE_RPATHS
139287
 
  fi
139288
 
 
139289
 
 
139290
 
if test -z "$php_ldflags_add_usr_lib"; then
139291
 
  
139292
 
  unset ac_new_flags
139293
 
  for i in $PHP_LDFLAGS; do
139294
 
    case $i in
139295
 
    -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
139296
 
    *) ac_new_flags="$ac_new_flags $i" ;;
139297
 
    esac
139298
 
  done
139299
 
  PHP_LDFLAGS=$ac_new_flags
139300
 
 
139301
 
  
139302
 
  unset ac_new_flags
139303
 
  for i in $LDFLAGS; do
139304
 
    case $i in
139305
 
    -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
139306
 
    *) ac_new_flags="$ac_new_flags $i" ;;
139307
 
    esac
139308
 
  done
139309
 
  LDFLAGS=$ac_new_flags
139310
 
 
139311
 
fi
139312
 
 
139313
 
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
139314
 
EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
139315
 
 
139316
 
PHP_BUILD_DATE=`date '+%Y-%m-%d'`
139317
 
 
139318
 
cat >>confdefs.h <<_ACEOF
139319
 
@%:@define PHP_BUILD_DATE "$PHP_BUILD_DATE"
139320
 
_ACEOF
139321
 
 
139322
 
 
139323
 
case $host_alias in
139324
 
*netware*)
139325
 
  PHP_OS="NetWare"
139326
 
  PHP_UNAME="NetWare"
139327
 
  
139328
 
cat >>confdefs.h <<_ACEOF
139329
 
@%:@define PHP_OS "$PHP_OS"
139330
 
_ACEOF
139331
 
 
139332
 
  
139333
 
cat >>confdefs.h <<_ACEOF
139334
 
@%:@define PHP_UNAME "$PHP_UNAME"
139335
 
_ACEOF
139336
 
 
139337
 
  ;;
139338
 
*)
139339
 
  PHP_UNAME=`uname -a | xargs`
139340
 
  
139341
 
cat >>confdefs.h <<_ACEOF
139342
 
@%:@define PHP_UNAME "$PHP_UNAME"
139343
 
_ACEOF
139344
 
 
139345
 
  PHP_OS=`uname | xargs`
139346
 
  
139347
 
cat >>confdefs.h <<_ACEOF
139348
 
@%:@define PHP_OS "$PHP_OS"
139349
 
_ACEOF
139350
 
 
139351
 
  ;;
139352
 
esac
139353
 
 
139354
 
if test "$PHP_CLI" != "no"; then
139355
 
  PHP_CLI_TARGET="\$(SAPI_CLI_PATH)"
139356
 
  PHP_INSTALL_CLI_TARGET="install-cli"
139357
 
  
139358
 
  
139359
 
  case sapi/cli in
139360
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
139361
 
  /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
139362
 
  *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
139363
 
  esac
139364
 
  
139365
 
  
139366
 
 
139367
 
  b_c_pre=$php_c_pre
139368
 
  b_cxx_pre=$php_cxx_pre
139369
 
  b_c_meta=$php_c_meta
139370
 
  b_cxx_meta=$php_cxx_meta
139371
 
  b_c_post=$php_c_post
139372
 
  b_cxx_post=$php_cxx_post
139373
 
  b_lo=$php_lo
139374
 
 
139375
 
 
139376
 
  old_IFS=$IFS
139377
 
  for ac_src in php_cli.c php_cli_readline.c; do
139378
 
  
139379
 
      IFS=.
139380
 
      set $ac_src
139381
 
      ac_obj=$1
139382
 
      IFS=$old_IFS
139383
 
      
139384
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
139385
 
 
139386
 
      case $ac_src in
139387
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
139388
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
139389
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
139390
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
139391
 
      esac
139392
 
 
139393
 
    cat >>Makefile.objects<<EOF
139394
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
139395
 
        $ac_comp
139396
 
EOF
139397
 
  done
139398
 
 
139399
 
 
139400
 
  PHP_INSTALLED_SAPIS="cli $PHP_SAPI"
139401
 
  PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)"
139402
 
else
139403
 
  PHP_INSTALLED_SAPIS="$PHP_SAPI"
139404
 
fi
139405
 
 
139406
 
 
139407
 
  
139408
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS"
139409
 
 
139410
 
  
139411
 
 
139412
 
 
139413
 
 
139414
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
139415
 
 
139416
 
 
139417
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_TARGET"
139418
 
 
139419
 
 
139420
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS"
139421
 
 
139422
 
 
139423
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS"
139424
 
 
139425
 
 
139426
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
139427
 
 
139428
 
 
139429
 
 
139430
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
139431
 
 
139432
 
 
139433
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX"
139434
 
 
139435
 
 
139436
 
 
139437
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS"
139438
 
 
139439
 
 
139440
 
 
139441
 
  
139442
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir"
139443
 
 
139444
 
  
139445
 
 
139446
 
 
139447
 
  
139448
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir"
139449
 
 
139450
 
  
139451
 
 
139452
 
 
139453
 
  
139454
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_builddir"
139455
 
 
139456
 
  
139457
 
 
139458
 
 
139459
 
  
139460
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_srcdir"
139461
 
 
139462
 
  
139463
 
 
139464
 
 
139465
 
 
139466
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST bindir"
139467
 
 
139468
 
 
139469
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir"
139470
 
 
139471
 
 
139472
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
139473
 
 
139474
 
 
139475
 
  
139476
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix"
139477
 
 
139478
 
  
139479
 
 
139480
 
 
139481
 
  
139482
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix"
139483
 
 
139484
 
  
139485
 
 
139486
 
 
139487
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST includedir"
139488
 
 
139489
 
 
139490
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
139491
 
 
139492
 
 
139493
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST mandir"
139494
 
 
139495
 
 
139496
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
139497
 
 
139498
 
 
139499
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir"
139500
 
 
139501
 
 
139502
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
139503
 
 
139504
 
 
139505
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir"
139506
 
 
139507
 
 
139508
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST datadir"
139509
 
 
139510
 
 
139511
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir"
139512
 
 
139513
 
 
139514
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir"
139515
 
 
139516
 
 
139517
 
 
139518
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT"
139519
 
 
139520
 
 
139521
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
139522
 
 
139523
 
 
139524
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
139525
 
 
139526
 
 
139527
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
139528
 
 
139529
 
 
139530
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
139531
 
 
139532
 
 
139533
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
139534
 
 
139535
 
 
139536
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
139537
 
 
139538
 
 
139539
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
139540
 
 
139541
 
 
139542
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
139543
 
 
139544
 
 
139545
 
  
139546
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS"
139547
 
 
139548
 
  
139549
 
 
139550
 
 
139551
 
  
139552
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
139553
 
 
139554
 
  
139555
 
 
139556
 
 
139557
 
  
139558
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
139559
 
 
139560
 
  
139561
 
 
139562
 
 
139563
 
  
139564
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM"
139565
 
 
139566
 
  
139567
 
 
139568
 
 
139569
 
  
139570
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
139571
 
 
139572
 
  
139573
 
 
139574
 
 
139575
 
  
139576
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS"
139577
 
 
139578
 
  
139579
 
 
139580
 
 
139581
 
  
139582
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
139583
 
 
139584
 
  
139585
 
 
139586
 
 
139587
 
  
139588
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES"
139589
 
 
139590
 
  
139591
 
 
139592
 
 
139593
 
  
139594
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH"
139595
 
 
139596
 
  
139597
 
 
139598
 
 
139599
 
  
139600
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT"
139601
 
 
139602
 
  
139603
 
 
139604
 
 
139605
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
139606
 
 
139607
 
 
139608
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
139609
 
 
139610
 
 
139611
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S"
139612
 
 
139613
 
 
139614
 
  
139615
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS"
139616
 
 
139617
 
  
139618
 
 
139619
 
 
139620
 
  
139621
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR"
139622
 
 
139623
 
  
139624
 
 
139625
 
 
139626
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE"
139627
 
 
139628
 
 
139629
 
  
139630
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS"
139631
 
 
139632
 
  
139633
 
 
139634
 
 
139635
 
  
139636
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS"
139637
 
 
139638
 
  
139639
 
 
139640
 
 
139641
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET"
139642
 
 
139643
 
 
139644
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS"
139645
 
 
139646
 
 
139647
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI"
139648
 
 
139649
 
 
139650
 
  
139651
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION"
139652
 
 
139653
 
  
139654
 
 
139655
 
 
139656
 
  
139657
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID"
139658
 
 
139659
 
  
139660
 
 
139661
 
 
139662
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
139663
 
 
139664
 
 
139665
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
139666
 
 
139667
 
 
139668
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST WARNING_LEVEL"
139669
 
 
139670
 
 
139671
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS"
139672
 
 
139673
 
 
139674
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH"
139675
 
 
139676
 
 
139677
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
139678
 
 
139679
 
 
139680
 
old_CC=$CC
139681
 
 
139682
 
if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
139683
 
  CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
139684
 
  INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
139685
 
  cat >meta_ccld<<EOF
139686
 
#! /bin/sh
139687
 
exec $CC $ac_cv_pthreads_cflags \$@
139688
 
EOF
139689
 
  CC="$abs_builddir/meta_ccld"
139690
 
  chmod +x meta_ccld
139691
 
fi
139692
 
 
139693
 
if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then
139694
 
  CPPFLAGS="$CPPFLAGS -DTHREAD=1"
139695
 
fi
139696
 
 
139697
 
ZEND_EXT_TYPE="zend_extension"
139698
 
 
139699
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXT_TYPE"
139700
 
 
139701
 
 
139702
 
 
139703
 
 
139704
 
@%:@ Check whether --enable- was given.
139705
 
if test "${enable_+set}" = set; then
139706
 
  enableval=$enable_; 
139707
 
fi
139708
 
 
139709
 
 
139710
 
 
139711
 
  { $as_echo "$as_me:$LINENO: result: " >&5
139712
 
$as_echo "" >&6; }
139713
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Configuring libtool${T_ME}" >&5
139714
 
$as_echo "${T_MD}Configuring libtool${T_ME}" >&6; }
139715
 
 
139716
 
 
139717
 
LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
139718
 
 
139719
 
case $host_alias in
139720
 
*darwin9*|*darwin10*)
139721
 
  ac_cv_exeext=
139722
 
  ;;
139723
 
esac
139724
 
 
139725
 
 
139726
 
@%:@ Check whether --enable-shared was given.
139727
 
if test "${enable_shared+set}" = set; then
139728
 
  enableval=$enable_shared;     p=${PACKAGE-default}
139729
 
    case $enableval in
139730
 
    yes) enable_shared=yes ;;
139731
 
    no) enable_shared=no ;;
139732
 
    *)
139733
 
      enable_shared=no
139734
 
      # Look at the argument we got.  We use all the common list separators.
139735
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
139736
 
      for pkg in $enableval; do
139737
 
        IFS="$lt_save_ifs"
139738
 
        if test "X$pkg" = "X$p"; then
139739
 
          enable_shared=yes
139740
 
        fi
139741
 
      done
139742
 
      IFS="$lt_save_ifs"
139743
 
      ;;
139744
 
    esac
139745
 
else
139746
 
  enable_shared=yes
139747
 
fi
139748
 
 
139749
 
 
139750
 
@%:@ Check whether --enable-static was given.
139751
 
if test "${enable_static+set}" = set; then
139752
 
  enableval=$enable_static;     p=${PACKAGE-default}
139753
 
    case $enableval in
139754
 
    yes) enable_static=yes ;;
139755
 
    no) enable_static=no ;;
139756
 
    *)
139757
 
     enable_static=no
139758
 
      # Look at the argument we got.  We use all the common list separators.
139759
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
139760
 
      for pkg in $enableval; do
139761
 
        IFS="$lt_save_ifs"
139762
 
        if test "X$pkg" = "X$p"; then
139763
 
          enable_static=yes
139764
 
        fi
139765
 
      done
139766
 
      IFS="$lt_save_ifs"
139767
 
      ;;
139768
 
    esac
139769
 
else
139770
 
  enable_static=yes
139771
 
fi
139772
 
 
139773
 
 
139774
 
@%:@ Check whether --enable-fast-install was given.
139775
 
if test "${enable_fast_install+set}" = set; then
139776
 
  enableval=$enable_fast_install;     p=${PACKAGE-default}
139777
 
    case $enableval in
139778
 
    yes) enable_fast_install=yes ;;
139779
 
    no) enable_fast_install=no ;;
139780
 
    *)
139781
 
      enable_fast_install=no
139782
 
      # Look at the argument we got.  We use all the common list separators.
139783
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
139784
 
      for pkg in $enableval; do
139785
 
        IFS="$lt_save_ifs"
139786
 
        if test "X$pkg" = "X$p"; then
139787
 
          enable_fast_install=yes
139788
 
        fi
139789
 
      done
139790
 
      IFS="$lt_save_ifs"
139791
 
      ;;
139792
 
    esac
139793
 
else
139794
 
  enable_fast_install=yes
139795
 
fi
139796
 
 
139797
 
 
139798
 
 
139799
 
@%:@ Check whether --with-gnu-ld was given.
139800
 
if test "${with_gnu_ld+set}" = set; then
139801
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
139802
 
else
139803
 
  with_gnu_ld=no
139804
 
fi
139805
 
 
139806
 
ac_prog=ld
139807
 
if test "$GCC" = yes; then
139808
 
  # Check if gcc -print-prog-name=ld gives a path.
139809
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
139810
 
$as_echo_n "checking for ld used by $CC... " >&6; }
139811
 
  case $host in
139812
 
  *-*-mingw*)
139813
 
    # gcc leaves a trailing carriage return which upsets mingw
139814
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
139815
 
  *)
139816
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
139817
 
  esac
139818
 
  case $ac_prog in
139819
 
    # Accept absolute paths.
139820
 
    [\\/]* | ?:[\\/]*)
139821
 
      re_direlt='/[^/][^/]*/\.\./'
139822
 
      # Canonicalize the pathname of ld
139823
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
139824
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
139825
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
139826
 
      done
139827
 
      test -z "$LD" && LD="$ac_prog"
139828
 
      ;;
139829
 
  "")
139830
 
    # If it fails, then pretend we aren't using GCC.
139831
 
    ac_prog=ld
139832
 
    ;;
139833
 
  *)
139834
 
    # If it is relative, then search for the first ld in PATH.
139835
 
    with_gnu_ld=unknown
139836
 
    ;;
139837
 
  esac
139838
 
elif test "$with_gnu_ld" = yes; then
139839
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
139840
 
$as_echo_n "checking for GNU ld... " >&6; }
139841
 
else
139842
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
139843
 
$as_echo_n "checking for non-GNU ld... " >&6; }
139844
 
fi
139845
 
if test "${lt_cv_path_LD+set}" = set; then
139846
 
  $as_echo_n "(cached) " >&6
139847
 
else
139848
 
  if test -z "$LD"; then
139849
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
139850
 
  for ac_dir in $PATH; do
139851
 
    IFS="$lt_save_ifs"
139852
 
    test -z "$ac_dir" && ac_dir=.
139853
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
139854
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
139855
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
139856
 
      # but apparently some variants of GNU ld only accept -v.
139857
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
139858
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
139859
 
      *GNU* | *'with BFD'*)
139860
 
        test "$with_gnu_ld" != no && break
139861
 
        ;;
139862
 
      *)
139863
 
        test "$with_gnu_ld" != yes && break
139864
 
        ;;
139865
 
      esac
139866
 
    fi
139867
 
  done
139868
 
  IFS="$lt_save_ifs"
139869
 
else
139870
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
139871
 
fi
139872
 
fi
139873
 
 
139874
 
LD="$lt_cv_path_LD"
139875
 
if test -n "$LD"; then
139876
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
139877
 
$as_echo "$LD" >&6; }
139878
 
else
139879
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
139880
 
$as_echo "no" >&6; }
139881
 
fi
139882
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
139883
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
139884
 
   { (exit 1); exit 1; }; }
139885
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
139886
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
139887
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
139888
 
  $as_echo_n "(cached) " >&6
139889
 
else
139890
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
139891
 
case `$LD -v 2>&1 </dev/null` in
139892
 
*GNU* | *'with BFD'*)
139893
 
  lt_cv_prog_gnu_ld=yes
139894
 
  ;;
139895
 
*)
139896
 
  lt_cv_prog_gnu_ld=no
139897
 
  ;;
139898
 
esac
139899
 
fi
139900
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
139901
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
139902
 
with_gnu_ld=$lt_cv_prog_gnu_ld
139903
 
 
139904
 
 
139905
 
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
139906
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
139907
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
139908
 
  $as_echo_n "(cached) " >&6
139909
 
else
139910
 
  lt_cv_ld_reload_flag='-r'
139911
 
fi
139912
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
139913
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
139914
 
reload_flag=$lt_cv_ld_reload_flag
139915
 
case $reload_flag in
139916
 
"" | " "*) ;;
139917
 
*) reload_flag=" $reload_flag" ;;
139918
 
esac
139919
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
139920
 
case $host_os in
139921
 
  darwin*)
139922
 
    if test "$GCC" = yes; then
139923
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
139924
 
    else
139925
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
139926
 
    fi
139927
 
    ;;
139928
 
esac
139929
 
 
139930
 
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
139931
 
$as_echo_n "checking for BSD-compatible nm... " >&6; }
139932
 
if test "${lt_cv_path_NM+set}" = set; then
139933
 
  $as_echo_n "(cached) " >&6
139934
 
else
139935
 
  if test -n "$NM"; then
139936
 
  # Let the user override the test.
139937
 
  lt_cv_path_NM="$NM"
139938
 
else
139939
 
  lt_nm_to_check="${ac_tool_prefix}nm"
139940
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
139941
 
    lt_nm_to_check="$lt_nm_to_check nm"
139942
 
  fi
139943
 
  for lt_tmp_nm in $lt_nm_to_check; do
139944
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
139945
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
139946
 
      IFS="$lt_save_ifs"
139947
 
      test -z "$ac_dir" && ac_dir=.
139948
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
139949
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
139950
 
        # Check to see if the nm accepts a BSD-compat flag.
139951
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
139952
 
        #   nm: unknown option "B" ignored
139953
 
        # Tru64's nm complains that /dev/null is an invalid object file
139954
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
139955
 
        */dev/null* | *'Invalid file or object type'*)
139956
 
          lt_cv_path_NM="$tmp_nm -B"
139957
 
          break
139958
 
          ;;
139959
 
        *)
139960
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
139961
 
          */dev/null*)
139962
 
            lt_cv_path_NM="$tmp_nm -p"
139963
 
            break
139964
 
            ;;
139965
 
          *)
139966
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
139967
 
            continue # so that we can try to find one that supports BSD flags
139968
 
            ;;
139969
 
          esac
139970
 
          ;;
139971
 
        esac
139972
 
      fi
139973
 
    done
139974
 
    IFS="$lt_save_ifs"
139975
 
  done
139976
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
139977
 
fi
139978
 
fi
139979
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
139980
 
$as_echo "$lt_cv_path_NM" >&6; }
139981
 
NM="$lt_cv_path_NM"
139982
 
 
139983
 
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
139984
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
139985
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
139986
 
  $as_echo_n "(cached) " >&6
139987
 
else
139988
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
139989
 
lt_cv_file_magic_test_file=
139990
 
lt_cv_deplibs_check_method='unknown'
139991
 
# Need to set the preceding variable on all platforms that support
139992
 
# interlibrary dependencies.
139993
 
# 'none' -- dependencies not supported.
139994
 
# `unknown' -- same as none, but documents that we really don't know.
139995
 
# 'pass_all' -- all dependencies passed with no checks.
139996
 
# 'test_compile' -- check by making test program.
139997
 
# 'file_magic [[regex]]' -- check by looking for files in library path
139998
 
# which responds to the $file_magic_cmd with a given extended regex.
139999
 
# If you have `file' or equivalent on your system and you're not sure
140000
 
# whether `pass_all' will *always* work, you probably want this one.
140001
 
 
140002
 
case $host_os in
140003
 
aix[4-9]*)
140004
 
  lt_cv_deplibs_check_method=pass_all
140005
 
  ;;
140006
 
 
140007
 
beos*)
140008
 
  lt_cv_deplibs_check_method=pass_all
140009
 
  ;;
140010
 
 
140011
 
bsdi[45]*)
140012
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
140013
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
140014
 
  lt_cv_file_magic_test_file=/shlib/libc.so
140015
 
  ;;
140016
 
 
140017
 
cygwin*)
140018
 
  # func_win32_libid is a shell function defined in ltmain.sh
140019
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
140020
 
  lt_cv_file_magic_cmd='func_win32_libid'
140021
 
  ;;
140022
 
 
140023
 
mingw* | pw32*)
140024
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
140025
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
140026
 
  # unless we find 'file', for example because we are cross-compiling.
140027
 
  if ( file / ) >/dev/null 2>&1; then
140028
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
140029
 
    lt_cv_file_magic_cmd='func_win32_libid'
140030
 
  else
140031
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
140032
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
140033
 
  fi
140034
 
  ;;
140035
 
 
140036
 
darwin* | rhapsody*)
140037
 
  lt_cv_deplibs_check_method=pass_all
140038
 
  ;;
140039
 
 
140040
 
freebsd* | dragonfly*)
140041
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
140042
 
    case $host_cpu in
140043
 
    i*86 )
140044
 
      # Not sure whether the presence of OpenBSD here was a mistake.
140045
 
      # Let's accept both of them until this is cleared up.
140046
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
140047
 
      lt_cv_file_magic_cmd=/usr/bin/file
140048
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
140049
 
      ;;
140050
 
    esac
140051
 
  else
140052
 
    lt_cv_deplibs_check_method=pass_all
140053
 
  fi
140054
 
  ;;
140055
 
 
140056
 
gnu*)
140057
 
  lt_cv_deplibs_check_method=pass_all
140058
 
  ;;
140059
 
 
140060
 
hpux10.20* | hpux11*)
140061
 
  lt_cv_file_magic_cmd=/usr/bin/file
140062
 
  case $host_cpu in
140063
 
  ia64*)
140064
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
140065
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
140066
 
    ;;
140067
 
  hppa*64*)
140068
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
140069
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
140070
 
    ;;
140071
 
  *)
140072
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
140073
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
140074
 
    ;;
140075
 
  esac
140076
 
  ;;
140077
 
 
140078
 
interix[3-9]*)
140079
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
140080
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
140081
 
  ;;
140082
 
 
140083
 
irix5* | irix6* | nonstopux*)
140084
 
  case $LD in
140085
 
  *-32|*"-32 ") libmagic=32-bit;;
140086
 
  *-n32|*"-n32 ") libmagic=N32;;
140087
 
  *-64|*"-64 ") libmagic=64-bit;;
140088
 
  *) libmagic=never-match;;
140089
 
  esac
140090
 
  lt_cv_deplibs_check_method=pass_all
140091
 
  ;;
140092
 
 
140093
 
# This must be Linux ELF.
140094
 
linux* | k*bsd*-gnu)
140095
 
  lt_cv_deplibs_check_method=pass_all
140096
 
  ;;
140097
 
 
140098
 
netbsd*)
140099
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
140100
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
140101
 
  else
140102
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
140103
 
  fi
140104
 
  ;;
140105
 
 
140106
 
newos6*)
140107
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
140108
 
  lt_cv_file_magic_cmd=/usr/bin/file
140109
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
140110
 
  ;;
140111
 
 
140112
 
nto-qnx*)
140113
 
  lt_cv_deplibs_check_method=unknown
140114
 
  ;;
140115
 
 
140116
 
openbsd*)
140117
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
140118
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
140119
 
  else
140120
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
140121
 
  fi
140122
 
  ;;
140123
 
 
140124
 
osf3* | osf4* | osf5*)
140125
 
  lt_cv_deplibs_check_method=pass_all
140126
 
  ;;
140127
 
 
140128
 
rdos*)
140129
 
  lt_cv_deplibs_check_method=pass_all
140130
 
  ;;
140131
 
 
140132
 
solaris*)
140133
 
  lt_cv_deplibs_check_method=pass_all
140134
 
  ;;
140135
 
 
140136
 
sysv4 | sysv4.3*)
140137
 
  case $host_vendor in
140138
 
  motorola)
140139
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
140140
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
140141
 
    ;;
140142
 
  ncr)
140143
 
    lt_cv_deplibs_check_method=pass_all
140144
 
    ;;
140145
 
  sequent)
140146
 
    lt_cv_file_magic_cmd='/bin/file'
140147
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
140148
 
    ;;
140149
 
  sni)
140150
 
    lt_cv_file_magic_cmd='/bin/file'
140151
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
140152
 
    lt_cv_file_magic_test_file=/lib/libc.so
140153
 
    ;;
140154
 
  siemens)
140155
 
    lt_cv_deplibs_check_method=pass_all
140156
 
    ;;
140157
 
  pc)
140158
 
    lt_cv_deplibs_check_method=pass_all
140159
 
    ;;
140160
 
  esac
140161
 
  ;;
140162
 
 
140163
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
140164
 
  lt_cv_deplibs_check_method=pass_all
140165
 
  ;;
140166
 
esac
140167
 
 
140168
 
fi
140169
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
140170
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
140171
 
file_magic_cmd=$lt_cv_file_magic_cmd
140172
 
deplibs_check_method=$lt_cv_deplibs_check_method
140173
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
140174
 
 
140175
 
 
140176
 
 
140177
 
 
140178
 
# If no C compiler was specified, use CC.
140179
 
LTCC=${LTCC-"$CC"}
140180
 
 
140181
 
# If no C compiler flags were specified, use CFLAGS.
140182
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
140183
 
 
140184
 
# Allow CC to be a program name with arguments.
140185
 
compiler=$CC
140186
 
 
140187
 
#AC_ARG_ENABLE([libtool-lock],
140188
 
#[  --disable-libtool-lock  avoid locking (might break parallel builds)])
140189
 
#test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
140190
 
 
140191
 
# Some flags need to be propagated to the compiler or linker for good
140192
 
# libtool support.
140193
 
case $host in
140194
 
ia64-*-hpux*)
140195
 
  # Find out which ABI we are using.
140196
 
  echo 'int i;' > conftest.$ac_ext
140197
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
140198
 
  (eval $ac_compile) 2>&5
140199
 
  ac_status=$?
140200
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140201
 
  (exit $ac_status); }; then
140202
 
    case `/usr/bin/file conftest.$ac_objext` in
140203
 
    *ELF-32*)
140204
 
      HPUX_IA64_MODE="32"
140205
 
      ;;
140206
 
    *ELF-64*)
140207
 
      HPUX_IA64_MODE="64"
140208
 
      ;;
140209
 
    esac
140210
 
  fi
140211
 
  rm -rf conftest*
140212
 
  ;;
140213
 
*-*-irix6*)
140214
 
  # Find out which ABI we are using.
140215
 
  echo '#line __oline__ "configure"' > conftest.$ac_ext
140216
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
140217
 
  (eval $ac_compile) 2>&5
140218
 
  ac_status=$?
140219
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140220
 
  (exit $ac_status); }; then
140221
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
140222
 
    case `/usr/bin/file conftest.$ac_objext` in
140223
 
    *32-bit*)
140224
 
      LD="${LD-ld} -melf32bsmip"
140225
 
      ;;
140226
 
    *N32*)
140227
 
      LD="${LD-ld} -melf32bmipn32"
140228
 
      ;;
140229
 
    *64-bit*)
140230
 
      LD="${LD-ld} -melf64bmip"
140231
 
      ;;
140232
 
    esac
140233
 
   else
140234
 
    case `/usr/bin/file conftest.$ac_objext` in
140235
 
    *32-bit*)
140236
 
      LD="${LD-ld} -32"
140237
 
      ;;
140238
 
    *N32*)
140239
 
      LD="${LD-ld} -n32"
140240
 
      ;;
140241
 
    *64-bit*)
140242
 
      LD="${LD-ld} -64"
140243
 
      ;;
140244
 
    esac
140245
 
   fi
140246
 
  fi
140247
 
  rm -rf conftest*
140248
 
  ;;
140249
 
 
140250
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
140251
 
s390*-*linux*|sparc*-*linux*)
140252
 
  # Find out which ABI we are using.
140253
 
  echo 'int i;' > conftest.$ac_ext
140254
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
140255
 
  (eval $ac_compile) 2>&5
140256
 
  ac_status=$?
140257
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140258
 
  (exit $ac_status); }; then
140259
 
    case `/usr/bin/file conftest.o` in
140260
 
    *32-bit*)
140261
 
      case $host in
140262
 
        x86_64-*kfreebsd*-gnu)
140263
 
          LD="${LD-ld} -m elf_i386_fbsd"
140264
 
          ;;
140265
 
        x86_64-*linux*)
140266
 
          LD="${LD-ld} -m elf_i386"
140267
 
          ;;
140268
 
        ppc64-*linux*|powerpc64-*linux*)
140269
 
          LD="${LD-ld} -m elf32ppclinux"
140270
 
          ;;
140271
 
        s390x-*linux*)
140272
 
          LD="${LD-ld} -m elf_s390"
140273
 
          ;;
140274
 
        sparc64-*linux*)
140275
 
          LD="${LD-ld} -m elf32_sparc"
140276
 
          ;;
140277
 
      esac
140278
 
      ;;
140279
 
    *64-bit*)
140280
 
      case $host in
140281
 
        x86_64-*kfreebsd*-gnu)
140282
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
140283
 
          ;;
140284
 
        x86_64-*linux*)
140285
 
          LD="${LD-ld} -m elf_x86_64"
140286
 
          ;;
140287
 
        ppc*-*linux*|powerpc*-*linux*)
140288
 
          LD="${LD-ld} -m elf64ppc"
140289
 
          ;;
140290
 
        s390*-*linux*)
140291
 
          LD="${LD-ld} -m elf64_s390"
140292
 
          ;;
140293
 
        sparc*-*linux*)
140294
 
          LD="${LD-ld} -m elf64_sparc"
140295
 
          ;;
140296
 
      esac
140297
 
      ;;
140298
 
    esac
140299
 
  fi
140300
 
  rm -rf conftest*
140301
 
  ;;
140302
 
 
140303
 
*-*-sco3.2v5*)
140304
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
140305
 
  SAVE_CFLAGS="$CFLAGS"
140306
 
  CFLAGS="$CFLAGS -belf"
140307
 
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
140308
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
140309
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
140310
 
  $as_echo_n "(cached) " >&6
140311
 
else
140312
 
  
140313
 
     ac_ext=c
140314
 
ac_cpp='$CPP $CPPFLAGS'
140315
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
140316
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
140317
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
140318
 
 
140319
 
     cat >conftest.$ac_ext <<_ACEOF
140320
 
/* confdefs.h.  */
140321
 
_ACEOF
140322
 
cat confdefs.h >>conftest.$ac_ext
140323
 
cat >>conftest.$ac_ext <<_ACEOF
140324
 
/* end confdefs.h.  */
140325
 
 
140326
 
int
140327
 
main ()
140328
 
{
140329
 
 
140330
 
  ;
140331
 
  return 0;
140332
 
}
140333
 
_ACEOF
140334
 
rm -f conftest.$ac_objext conftest$ac_exeext
140335
 
if { (ac_try="$ac_link"
140336
 
case "(($ac_try" in
140337
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
140338
 
  *) ac_try_echo=$ac_try;;
140339
 
esac
140340
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
140341
 
$as_echo "$ac_try_echo") >&5
140342
 
  (eval "$ac_link") 2>conftest.er1
140343
 
  ac_status=$?
140344
 
  grep -v '^ *+' conftest.er1 >conftest.err
140345
 
  rm -f conftest.er1
140346
 
  cat conftest.err >&5
140347
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140348
 
  (exit $ac_status); } && {
140349
 
         test -z "$ac_c_werror_flag" ||
140350
 
         test ! -s conftest.err
140351
 
       } && test -s conftest$ac_exeext && {
140352
 
         test "$cross_compiling" = yes ||
140353
 
         $as_test_x conftest$ac_exeext
140354
 
       }; then
140355
 
  lt_cv_cc_needs_belf=yes
140356
 
else
140357
 
  $as_echo "$as_me: failed program was:" >&5
140358
 
sed 's/^/| /' conftest.$ac_ext >&5
140359
 
 
140360
 
        lt_cv_cc_needs_belf=no
140361
 
fi
140362
 
 
140363
 
rm -rf conftest.dSYM
140364
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
140365
 
      conftest$ac_exeext conftest.$ac_ext
140366
 
     ac_ext=c
140367
 
ac_cpp='$CPP $CPPFLAGS'
140368
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
140369
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
140370
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
140371
 
 
140372
 
fi
140373
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
140374
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
140375
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
140376
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
140377
 
    CFLAGS="$SAVE_CFLAGS"
140378
 
  fi
140379
 
  ;;
140380
 
sparc*-*solaris*)
140381
 
  # Find out which ABI we are using.
140382
 
  echo 'int i;' > conftest.$ac_ext
140383
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
140384
 
  (eval $ac_compile) 2>&5
140385
 
  ac_status=$?
140386
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140387
 
  (exit $ac_status); }; then
140388
 
    case `/usr/bin/file conftest.o` in
140389
 
    *64-bit*)
140390
 
      case $lt_cv_prog_gnu_ld in
140391
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
140392
 
      *)
140393
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
140394
 
          LD="${LD-ld} -64"
140395
 
        fi
140396
 
        ;;
140397
 
      esac
140398
 
      ;;
140399
 
    esac
140400
 
  fi
140401
 
  rm -rf conftest*
140402
 
  ;;
140403
 
 
140404
 
 
140405
 
esac
140406
 
 
140407
 
need_locks="$enable_libtool_lock"
140408
 
 
140409
 
 
140410
 
 
140411
 
 
140412
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
140413
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
140414
 
    (test "X$CXX" != "Xg++"))) ; then
140415
 
  ac_ext=cpp
140416
 
ac_cpp='$CXXCPP $CPPFLAGS'
140417
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
140418
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
140419
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
140420
 
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
140421
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
140422
 
if test -z "$CXXCPP"; then
140423
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
140424
 
  $as_echo_n "(cached) " >&6
140425
 
else
140426
 
      # Double quotes because CXXCPP needs to be expanded
140427
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
140428
 
    do
140429
 
      ac_preproc_ok=false
140430
 
for ac_cxx_preproc_warn_flag in '' yes
140431
 
do
140432
 
  # Use a header file that comes with gcc, so configuring glibc
140433
 
  # with a fresh cross-compiler works.
140434
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
140435
 
  # <limits.h> exists even on freestanding compilers.
140436
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
140437
 
  # not just through cpp. "Syntax error" is here to catch this case.
140438
 
  cat >conftest.$ac_ext <<_ACEOF
140439
 
/* confdefs.h.  */
140440
 
_ACEOF
140441
 
cat confdefs.h >>conftest.$ac_ext
140442
 
cat >>conftest.$ac_ext <<_ACEOF
140443
 
/* end confdefs.h.  */
140444
 
@%:@ifdef __STDC__
140445
 
@%:@ include <limits.h>
140446
 
@%:@else
140447
 
@%:@ include <assert.h>
140448
 
@%:@endif
140449
 
                     Syntax error
140450
 
_ACEOF
140451
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
140452
 
case "(($ac_try" in
140453
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
140454
 
  *) ac_try_echo=$ac_try;;
140455
 
esac
140456
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
140457
 
$as_echo "$ac_try_echo") >&5
140458
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
140459
 
  ac_status=$?
140460
 
  grep -v '^ *+' conftest.er1 >conftest.err
140461
 
  rm -f conftest.er1
140462
 
  cat conftest.err >&5
140463
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140464
 
  (exit $ac_status); } >/dev/null && {
140465
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
140466
 
         test ! -s conftest.err
140467
 
       }; then
140468
 
  :
140469
 
else
140470
 
  $as_echo "$as_me: failed program was:" >&5
140471
 
sed 's/^/| /' conftest.$ac_ext >&5
140472
 
 
140473
 
  # Broken: fails on valid input.
140474
 
continue
140475
 
fi
140476
 
 
140477
 
rm -f conftest.err conftest.$ac_ext
140478
 
 
140479
 
  # OK, works on sane cases.  Now check whether nonexistent headers
140480
 
  # can be detected and how.
140481
 
  cat >conftest.$ac_ext <<_ACEOF
140482
 
/* confdefs.h.  */
140483
 
_ACEOF
140484
 
cat confdefs.h >>conftest.$ac_ext
140485
 
cat >>conftest.$ac_ext <<_ACEOF
140486
 
/* end confdefs.h.  */
140487
 
@%:@include <ac_nonexistent.h>
140488
 
_ACEOF
140489
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
140490
 
case "(($ac_try" in
140491
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
140492
 
  *) ac_try_echo=$ac_try;;
140493
 
esac
140494
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
140495
 
$as_echo "$ac_try_echo") >&5
140496
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
140497
 
  ac_status=$?
140498
 
  grep -v '^ *+' conftest.er1 >conftest.err
140499
 
  rm -f conftest.er1
140500
 
  cat conftest.err >&5
140501
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140502
 
  (exit $ac_status); } >/dev/null && {
140503
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
140504
 
         test ! -s conftest.err
140505
 
       }; then
140506
 
  # Broken: success on invalid input.
140507
 
continue
140508
 
else
140509
 
  $as_echo "$as_me: failed program was:" >&5
140510
 
sed 's/^/| /' conftest.$ac_ext >&5
140511
 
 
140512
 
  # Passes both tests.
140513
 
ac_preproc_ok=:
140514
 
break
140515
 
fi
140516
 
 
140517
 
rm -f conftest.err conftest.$ac_ext
140518
 
 
140519
 
done
140520
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
140521
 
rm -f conftest.err conftest.$ac_ext
140522
 
if $ac_preproc_ok; then
140523
 
  break
140524
 
fi
140525
 
 
140526
 
    done
140527
 
    ac_cv_prog_CXXCPP=$CXXCPP
140528
 
  
140529
 
fi
140530
 
  CXXCPP=$ac_cv_prog_CXXCPP
140531
 
else
140532
 
  ac_cv_prog_CXXCPP=$CXXCPP
140533
 
fi
140534
 
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
140535
 
$as_echo "$CXXCPP" >&6; }
140536
 
ac_preproc_ok=false
140537
 
for ac_cxx_preproc_warn_flag in '' yes
140538
 
do
140539
 
  # Use a header file that comes with gcc, so configuring glibc
140540
 
  # with a fresh cross-compiler works.
140541
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
140542
 
  # <limits.h> exists even on freestanding compilers.
140543
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
140544
 
  # not just through cpp. "Syntax error" is here to catch this case.
140545
 
  cat >conftest.$ac_ext <<_ACEOF
140546
 
/* confdefs.h.  */
140547
 
_ACEOF
140548
 
cat confdefs.h >>conftest.$ac_ext
140549
 
cat >>conftest.$ac_ext <<_ACEOF
140550
 
/* end confdefs.h.  */
140551
 
@%:@ifdef __STDC__
140552
 
@%:@ include <limits.h>
140553
 
@%:@else
140554
 
@%:@ include <assert.h>
140555
 
@%:@endif
140556
 
                     Syntax error
140557
 
_ACEOF
140558
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
140559
 
case "(($ac_try" in
140560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
140561
 
  *) ac_try_echo=$ac_try;;
140562
 
esac
140563
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
140564
 
$as_echo "$ac_try_echo") >&5
140565
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
140566
 
  ac_status=$?
140567
 
  grep -v '^ *+' conftest.er1 >conftest.err
140568
 
  rm -f conftest.er1
140569
 
  cat conftest.err >&5
140570
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140571
 
  (exit $ac_status); } >/dev/null && {
140572
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
140573
 
         test ! -s conftest.err
140574
 
       }; then
140575
 
  :
140576
 
else
140577
 
  $as_echo "$as_me: failed program was:" >&5
140578
 
sed 's/^/| /' conftest.$ac_ext >&5
140579
 
 
140580
 
  # Broken: fails on valid input.
140581
 
continue
140582
 
fi
140583
 
 
140584
 
rm -f conftest.err conftest.$ac_ext
140585
 
 
140586
 
  # OK, works on sane cases.  Now check whether nonexistent headers
140587
 
  # can be detected and how.
140588
 
  cat >conftest.$ac_ext <<_ACEOF
140589
 
/* confdefs.h.  */
140590
 
_ACEOF
140591
 
cat confdefs.h >>conftest.$ac_ext
140592
 
cat >>conftest.$ac_ext <<_ACEOF
140593
 
/* end confdefs.h.  */
140594
 
@%:@include <ac_nonexistent.h>
140595
 
_ACEOF
140596
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
140597
 
case "(($ac_try" in
140598
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
140599
 
  *) ac_try_echo=$ac_try;;
140600
 
esac
140601
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
140602
 
$as_echo "$ac_try_echo") >&5
140603
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
140604
 
  ac_status=$?
140605
 
  grep -v '^ *+' conftest.er1 >conftest.err
140606
 
  rm -f conftest.er1
140607
 
  cat conftest.err >&5
140608
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140609
 
  (exit $ac_status); } >/dev/null && {
140610
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
140611
 
         test ! -s conftest.err
140612
 
       }; then
140613
 
  # Broken: success on invalid input.
140614
 
continue
140615
 
else
140616
 
  $as_echo "$as_me: failed program was:" >&5
140617
 
sed 's/^/| /' conftest.$ac_ext >&5
140618
 
 
140619
 
  # Passes both tests.
140620
 
ac_preproc_ok=:
140621
 
break
140622
 
fi
140623
 
 
140624
 
rm -f conftest.err conftest.$ac_ext
140625
 
 
140626
 
done
140627
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
140628
 
rm -f conftest.err conftest.$ac_ext
140629
 
if $ac_preproc_ok; then
140630
 
  :
140631
 
else
140632
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
140633
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
140634
 
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
140635
 
See \`config.log' for more details." >&5
140636
 
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
140637
 
See \`config.log' for more details." >&2;}
140638
 
   { (exit 1); exit 1; }; }; }
140639
 
fi
140640
 
 
140641
 
ac_ext=cpp
140642
 
ac_cpp='$CXXCPP $CPPFLAGS'
140643
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
140644
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
140645
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
140646
 
 
140647
 
fi
140648
 
 
140649
 
 
140650
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
140651
 
# find the maximum length of command line arguments
140652
 
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
140653
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
140654
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
140655
 
  $as_echo_n "(cached) " >&6
140656
 
else
140657
 
    i=0
140658
 
  teststring="ABCD"
140659
 
 
140660
 
  case $build_os in
140661
 
  msdosdjgpp*)
140662
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
140663
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
140664
 
    # during glob expansion).  Even if it were fixed, the result of this
140665
 
    # check would be larger than it should be.
140666
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
140667
 
    ;;
140668
 
 
140669
 
  gnu*)
140670
 
    # Under GNU Hurd, this test is not required because there is
140671
 
    # no limit to the length of command line arguments.
140672
 
    # Libtool will interpret -1 as no limit whatsoever
140673
 
    lt_cv_sys_max_cmd_len=-1;
140674
 
    ;;
140675
 
 
140676
 
  cygwin* | mingw*)
140677
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
140678
 
    # about 5 minutes as the teststring grows exponentially.
140679
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
140680
 
    # you end up with a "frozen" computer, even though with patience
140681
 
    # the test eventually succeeds (with a max line length of 256k).
140682
 
    # Instead, let's just punt: use the minimum linelength reported by
140683
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
140684
 
    lt_cv_sys_max_cmd_len=8192;
140685
 
    ;;
140686
 
 
140687
 
  amigaos*)
140688
 
    # On AmigaOS with pdksh, this test takes hours, literally.
140689
 
    # So we just punt and use a minimum line length of 8192.
140690
 
    lt_cv_sys_max_cmd_len=8192;
140691
 
    ;;
140692
 
 
140693
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
140694
 
    # This has been around since 386BSD, at least.  Likely further.
140695
 
    if test -x /sbin/sysctl; then
140696
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
140697
 
    elif test -x /usr/sbin/sysctl; then
140698
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
140699
 
    else
140700
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
140701
 
    fi
140702
 
    # And add a safety zone
140703
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
140704
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
140705
 
    ;;
140706
 
 
140707
 
  interix*)
140708
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
140709
 
    lt_cv_sys_max_cmd_len=196608
140710
 
    ;;
140711
 
 
140712
 
  osf*)
140713
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
140714
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
140715
 
    # nice to cause kernel panics so lets avoid the loop below.
140716
 
    # First set a reasonable default.
140717
 
    lt_cv_sys_max_cmd_len=16384
140718
 
    #
140719
 
    if test -x /sbin/sysconfig; then
140720
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
140721
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
140722
 
      esac
140723
 
    fi
140724
 
    ;;
140725
 
  sco3.2v5*)
140726
 
    lt_cv_sys_max_cmd_len=102400
140727
 
    ;;
140728
 
  sysv5* | sco5v6* | sysv4.2uw2*)
140729
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
140730
 
    if test -n "$kargmax"; then
140731
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
140732
 
    else
140733
 
      lt_cv_sys_max_cmd_len=32768
140734
 
    fi
140735
 
    ;;
140736
 
  *)
140737
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
140738
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
140739
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
140740
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
140741
 
    else
140742
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
140743
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
140744
 
               = "XX$teststring") >/dev/null 2>&1 &&
140745
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
140746
 
              lt_cv_sys_max_cmd_len=$new_result &&
140747
 
              test $i != 17 # 1/2 MB should be enough
140748
 
      do
140749
 
        i=`expr $i + 1`
140750
 
        teststring=$teststring$teststring
140751
 
      done
140752
 
      teststring=
140753
 
      # Add a significant safety factor because C++ compilers can tack on massive
140754
 
      # amounts of additional arguments before passing them to the linker.
140755
 
      # It appears as though 1/2 is a usable value.
140756
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
140757
 
    fi
140758
 
    ;;
140759
 
  esac
140760
 
 
140761
 
fi
140762
 
 
140763
 
if test -n $lt_cv_sys_max_cmd_len ; then
140764
 
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
140765
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
140766
 
else
140767
 
  { $as_echo "$as_me:$LINENO: result: none" >&5
140768
 
$as_echo "none" >&6; }
140769
 
fi
140770
 
 
140771
 
 
140772
 
 
140773
 
 
140774
 
 
140775
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
140776
 
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
140777
 
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
140778
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
140779
 
  $as_echo_n "(cached) " >&6
140780
 
else
140781
 
  
140782
 
# These are sane defaults that work on at least a few old systems.
140783
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
140784
 
 
140785
 
# Character class describing NM global symbol codes.
140786
 
symcode='[BCDEGRST]'
140787
 
 
140788
 
# Regexp to match symbols that can be accessed directly from C.
140789
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
140790
 
 
140791
 
# Transform an extracted symbol line into a proper C declaration
140792
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
140793
 
 
140794
 
# Transform an extracted symbol line into symbol name and symbol address
140795
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
140796
 
 
140797
 
# Define system-specific variables.
140798
 
case $host_os in
140799
 
aix*)
140800
 
  symcode='[BCDT]'
140801
 
  ;;
140802
 
cygwin* | mingw* | pw32*)
140803
 
  symcode='[ABCDGISTW]'
140804
 
  ;;
140805
 
hpux*) # Its linker distinguishes data from code symbols
140806
 
  if test "$host_cpu" = ia64; then
140807
 
    symcode='[ABCDEGRST]'
140808
 
  fi
140809
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
140810
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
140811
 
  ;;
140812
 
linux* | k*bsd*-gnu)
140813
 
  if test "$host_cpu" = ia64; then
140814
 
    symcode='[ABCDGIRSTW]'
140815
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
140816
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
140817
 
  fi
140818
 
  ;;
140819
 
irix* | nonstopux*)
140820
 
  symcode='[BCDEGRST]'
140821
 
  ;;
140822
 
osf*)
140823
 
  symcode='[BCDEGQRST]'
140824
 
  ;;
140825
 
solaris*)
140826
 
  symcode='[BDRT]'
140827
 
  ;;
140828
 
sco3.2v5*)
140829
 
  symcode='[DT]'
140830
 
  ;;
140831
 
sysv4.2uw2*)
140832
 
  symcode='[DT]'
140833
 
  ;;
140834
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
140835
 
  symcode='[ABDT]'
140836
 
  ;;
140837
 
sysv4)
140838
 
  symcode='[DFNSTU]'
140839
 
  ;;
140840
 
esac
140841
 
 
140842
 
# Handle CRLF in mingw tool chain
140843
 
opt_cr=
140844
 
case $build_os in
140845
 
mingw*)
140846
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
140847
 
  ;;
140848
 
esac
140849
 
 
140850
 
# If we're using GNU nm, then use its standard symbol codes.
140851
 
case `$NM -V 2>&1` in
140852
 
*GNU* | *'with BFD'*)
140853
 
  symcode='[ABCDGIRSTW]' ;;
140854
 
esac
140855
 
 
140856
 
# Try without a prefix undercore, then with it.
140857
 
for ac_symprfx in "" "_"; do
140858
 
 
140859
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
140860
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
140861
 
 
140862
 
  # Write the raw and C identifiers.
140863
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
140864
 
 
140865
 
  # Check to see that the pipe works correctly.
140866
 
  pipe_works=no
140867
 
 
140868
 
  rm -f conftest*
140869
 
  cat > conftest.$ac_ext <<EOF
140870
 
#ifdef __cplusplus
140871
 
extern "C" {
140872
 
#endif
140873
 
char nm_test_var;
140874
 
void nm_test_func(){}
140875
 
#ifdef __cplusplus
140876
 
}
140877
 
#endif
140878
 
int main(){nm_test_var='a';nm_test_func();return(0);}
140879
 
EOF
140880
 
 
140881
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
140882
 
  (eval $ac_compile) 2>&5
140883
 
  ac_status=$?
140884
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140885
 
  (exit $ac_status); }; then
140886
 
    # Now try to grab the symbols.
140887
 
    nlist=conftest.nm
140888
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
140889
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
140890
 
  ac_status=$?
140891
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140892
 
  (exit $ac_status); } && test -s "$nlist"; then
140893
 
      # Try sorting and uniquifying the output.
140894
 
      if sort "$nlist" | uniq > "$nlist"T; then
140895
 
        mv -f "$nlist"T "$nlist"
140896
 
      else
140897
 
        rm -f "$nlist"T
140898
 
      fi
140899
 
 
140900
 
      # Make sure that we snagged all the symbols we need.
140901
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
140902
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
140903
 
          cat <<EOF > conftest.$ac_ext
140904
 
#ifdef __cplusplus
140905
 
extern "C" {
140906
 
#endif
140907
 
 
140908
 
EOF
140909
 
          # Now generate the symbol file.
140910
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
140911
 
 
140912
 
          cat <<EOF >> conftest.$ac_ext
140913
 
#if defined (__STDC__) && __STDC__
140914
 
# define lt_ptr_t void *
140915
 
#else
140916
 
# define lt_ptr_t char *
140917
 
# define const
140918
 
#endif
140919
 
 
140920
 
/* The mapping between symbol names and symbols. */
140921
 
const struct {
140922
 
  const char *name;
140923
 
  lt_ptr_t address;
140924
 
}
140925
 
lt_preloaded_symbols[] =
140926
 
{
140927
 
EOF
140928
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
140929
 
          cat <<\EOF >> conftest.$ac_ext
140930
 
  {0, (lt_ptr_t) 0}
140931
 
};
140932
 
 
140933
 
#ifdef __cplusplus
140934
 
}
140935
 
#endif
140936
 
EOF
140937
 
          # Now try linking the two files.
140938
 
          mv conftest.$ac_objext conftstm.$ac_objext
140939
 
          lt_save_LIBS="$LIBS"
140940
 
          lt_save_CFLAGS="$CFLAGS"
140941
 
          LIBS="conftstm.$ac_objext"
140942
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
140943
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
140944
 
  (eval $ac_link) 2>&5
140945
 
  ac_status=$?
140946
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
140947
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
140948
 
            pipe_works=yes
140949
 
          fi
140950
 
          LIBS="$lt_save_LIBS"
140951
 
          CFLAGS="$lt_save_CFLAGS"
140952
 
        else
140953
 
          echo "cannot find nm_test_func in $nlist" >&5
140954
 
        fi
140955
 
      else
140956
 
        echo "cannot find nm_test_var in $nlist" >&5
140957
 
      fi
140958
 
    else
140959
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
140960
 
    fi
140961
 
  else
140962
 
    echo "$progname: failed program was:" >&5
140963
 
    cat conftest.$ac_ext >&5
140964
 
  fi
140965
 
  rm -rf conftest* conftst*
140966
 
 
140967
 
  # Do not use the global_symbol_pipe unless it works.
140968
 
  if test "$pipe_works" = yes; then
140969
 
    break
140970
 
  else
140971
 
    lt_cv_sys_global_symbol_pipe=
140972
 
  fi
140973
 
done
140974
 
 
140975
 
fi
140976
 
 
140977
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
140978
 
  lt_cv_sys_global_symbol_to_cdecl=
140979
 
fi
140980
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
140981
 
  { $as_echo "$as_me:$LINENO: result: failed" >&5
140982
 
$as_echo "failed" >&6; }
140983
 
else
140984
 
  { $as_echo "$as_me:$LINENO: result: ok" >&5
140985
 
$as_echo "ok" >&6; }
140986
 
fi
140987
 
 
140988
 
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
140989
 
$as_echo_n "checking for objdir... " >&6; }
140990
 
if test "${lt_cv_objdir+set}" = set; then
140991
 
  $as_echo_n "(cached) " >&6
140992
 
else
140993
 
  rm -f .libs 2>/dev/null
140994
 
mkdir .libs 2>/dev/null
140995
 
if test -d .libs; then
140996
 
  lt_cv_objdir=.libs
140997
 
else
140998
 
  # MS-DOS does not allow filenames that begin with a dot.
140999
 
  lt_cv_objdir=_libs
141000
 
fi
141001
 
rmdir .libs 2>/dev/null
141002
 
fi
141003
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
141004
 
$as_echo "$lt_cv_objdir" >&6; }
141005
 
objdir=$lt_cv_objdir
141006
 
 
141007
 
 
141008
 
 
141009
 
 
141010
 
 
141011
 
case $host_os in
141012
 
aix3*)
141013
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
141014
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
141015
 
  # vanish in a puff of smoke.
141016
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
141017
 
    COLLECT_NAMES=
141018
 
    export COLLECT_NAMES
141019
 
  fi
141020
 
  ;;
141021
 
esac
141022
 
 
141023
 
# Sed substitution that helps us do robust quoting.  It backslashifies
141024
 
# metacharacters that are still active within double-quoted strings.
141025
 
Xsed='sed -e 1s/^X//'
141026
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
141027
 
 
141028
 
# Same as above, but do not quote variable references.
141029
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
141030
 
 
141031
 
# Sed substitution to delay expansion of an escaped shell variable in a
141032
 
# double_quote_subst'ed string.
141033
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
141034
 
 
141035
 
# Sed substitution to avoid accidental globbing in evaled expressions
141036
 
no_glob_subst='s/\*/\\\*/g'
141037
 
 
141038
 
# Constants:
141039
 
rm="rm -f"
141040
 
 
141041
 
# Global variables:
141042
 
default_ofile=libtool
141043
 
can_build_shared=yes
141044
 
 
141045
 
# All known linkers require a `.a' archive for static linking (except MSVC,
141046
 
# which needs '.lib').
141047
 
libext=a
141048
 
ltmain="$ac_aux_dir/ltmain.sh"
141049
 
ofile="$default_ofile"
141050
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
141051
 
 
141052
 
if test -n "$ac_tool_prefix"; then
141053
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
141054
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
141055
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141056
 
$as_echo_n "checking for $ac_word... " >&6; }
141057
 
if test "${ac_cv_prog_AR+set}" = set; then
141058
 
  $as_echo_n "(cached) " >&6
141059
 
else
141060
 
  if test -n "$AR"; then
141061
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
141062
 
else
141063
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141064
 
for as_dir in $PATH
141065
 
do
141066
 
  IFS=$as_save_IFS
141067
 
  test -z "$as_dir" && as_dir=.
141068
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141069
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141070
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
141071
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141072
 
    break 2
141073
 
  fi
141074
 
done
141075
 
done
141076
 
IFS=$as_save_IFS
141077
 
 
141078
 
fi
141079
 
fi
141080
 
AR=$ac_cv_prog_AR
141081
 
if test -n "$AR"; then
141082
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
141083
 
$as_echo "$AR" >&6; }
141084
 
else
141085
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141086
 
$as_echo "no" >&6; }
141087
 
fi
141088
 
 
141089
 
 
141090
 
fi
141091
 
if test -z "$ac_cv_prog_AR"; then
141092
 
  ac_ct_AR=$AR
141093
 
  # Extract the first word of "ar", so it can be a program name with args.
141094
 
set dummy ar; ac_word=$2
141095
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141096
 
$as_echo_n "checking for $ac_word... " >&6; }
141097
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
141098
 
  $as_echo_n "(cached) " >&6
141099
 
else
141100
 
  if test -n "$ac_ct_AR"; then
141101
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
141102
 
else
141103
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141104
 
for as_dir in $PATH
141105
 
do
141106
 
  IFS=$as_save_IFS
141107
 
  test -z "$as_dir" && as_dir=.
141108
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141109
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141110
 
    ac_cv_prog_ac_ct_AR="ar"
141111
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141112
 
    break 2
141113
 
  fi
141114
 
done
141115
 
done
141116
 
IFS=$as_save_IFS
141117
 
 
141118
 
fi
141119
 
fi
141120
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
141121
 
if test -n "$ac_ct_AR"; then
141122
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
141123
 
$as_echo "$ac_ct_AR" >&6; }
141124
 
else
141125
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141126
 
$as_echo "no" >&6; }
141127
 
fi
141128
 
 
141129
 
  if test "x$ac_ct_AR" = x; then
141130
 
    AR="false"
141131
 
  else
141132
 
    case $cross_compiling:$ac_tool_warned in
141133
 
yes:)
141134
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
141135
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
141136
 
ac_tool_warned=yes ;;
141137
 
esac
141138
 
    AR=$ac_ct_AR
141139
 
  fi
141140
 
else
141141
 
  AR="$ac_cv_prog_AR"
141142
 
fi
141143
 
 
141144
 
if test -n "$ac_tool_prefix"; then
141145
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
141146
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
141147
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141148
 
$as_echo_n "checking for $ac_word... " >&6; }
141149
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
141150
 
  $as_echo_n "(cached) " >&6
141151
 
else
141152
 
  if test -n "$RANLIB"; then
141153
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
141154
 
else
141155
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141156
 
for as_dir in $PATH
141157
 
do
141158
 
  IFS=$as_save_IFS
141159
 
  test -z "$as_dir" && as_dir=.
141160
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141161
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141162
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
141163
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141164
 
    break 2
141165
 
  fi
141166
 
done
141167
 
done
141168
 
IFS=$as_save_IFS
141169
 
 
141170
 
fi
141171
 
fi
141172
 
RANLIB=$ac_cv_prog_RANLIB
141173
 
if test -n "$RANLIB"; then
141174
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
141175
 
$as_echo "$RANLIB" >&6; }
141176
 
else
141177
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141178
 
$as_echo "no" >&6; }
141179
 
fi
141180
 
 
141181
 
 
141182
 
fi
141183
 
if test -z "$ac_cv_prog_RANLIB"; then
141184
 
  ac_ct_RANLIB=$RANLIB
141185
 
  # Extract the first word of "ranlib", so it can be a program name with args.
141186
 
set dummy ranlib; ac_word=$2
141187
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141188
 
$as_echo_n "checking for $ac_word... " >&6; }
141189
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
141190
 
  $as_echo_n "(cached) " >&6
141191
 
else
141192
 
  if test -n "$ac_ct_RANLIB"; then
141193
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
141194
 
else
141195
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141196
 
for as_dir in $PATH
141197
 
do
141198
 
  IFS=$as_save_IFS
141199
 
  test -z "$as_dir" && as_dir=.
141200
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141201
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141202
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
141203
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141204
 
    break 2
141205
 
  fi
141206
 
done
141207
 
done
141208
 
IFS=$as_save_IFS
141209
 
 
141210
 
fi
141211
 
fi
141212
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
141213
 
if test -n "$ac_ct_RANLIB"; then
141214
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
141215
 
$as_echo "$ac_ct_RANLIB" >&6; }
141216
 
else
141217
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141218
 
$as_echo "no" >&6; }
141219
 
fi
141220
 
 
141221
 
  if test "x$ac_ct_RANLIB" = x; then
141222
 
    RANLIB=":"
141223
 
  else
141224
 
    case $cross_compiling:$ac_tool_warned in
141225
 
yes:)
141226
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
141227
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
141228
 
ac_tool_warned=yes ;;
141229
 
esac
141230
 
    RANLIB=$ac_ct_RANLIB
141231
 
  fi
141232
 
else
141233
 
  RANLIB="$ac_cv_prog_RANLIB"
141234
 
fi
141235
 
 
141236
 
if test -n "$ac_tool_prefix"; then
141237
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
141238
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
141239
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141240
 
$as_echo_n "checking for $ac_word... " >&6; }
141241
 
if test "${ac_cv_prog_STRIP+set}" = set; then
141242
 
  $as_echo_n "(cached) " >&6
141243
 
else
141244
 
  if test -n "$STRIP"; then
141245
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
141246
 
else
141247
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141248
 
for as_dir in $PATH
141249
 
do
141250
 
  IFS=$as_save_IFS
141251
 
  test -z "$as_dir" && as_dir=.
141252
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141253
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141254
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
141255
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141256
 
    break 2
141257
 
  fi
141258
 
done
141259
 
done
141260
 
IFS=$as_save_IFS
141261
 
 
141262
 
fi
141263
 
fi
141264
 
STRIP=$ac_cv_prog_STRIP
141265
 
if test -n "$STRIP"; then
141266
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
141267
 
$as_echo "$STRIP" >&6; }
141268
 
else
141269
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141270
 
$as_echo "no" >&6; }
141271
 
fi
141272
 
 
141273
 
 
141274
 
fi
141275
 
if test -z "$ac_cv_prog_STRIP"; then
141276
 
  ac_ct_STRIP=$STRIP
141277
 
  # Extract the first word of "strip", so it can be a program name with args.
141278
 
set dummy strip; ac_word=$2
141279
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141280
 
$as_echo_n "checking for $ac_word... " >&6; }
141281
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
141282
 
  $as_echo_n "(cached) " >&6
141283
 
else
141284
 
  if test -n "$ac_ct_STRIP"; then
141285
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
141286
 
else
141287
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141288
 
for as_dir in $PATH
141289
 
do
141290
 
  IFS=$as_save_IFS
141291
 
  test -z "$as_dir" && as_dir=.
141292
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141293
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141294
 
    ac_cv_prog_ac_ct_STRIP="strip"
141295
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141296
 
    break 2
141297
 
  fi
141298
 
done
141299
 
done
141300
 
IFS=$as_save_IFS
141301
 
 
141302
 
fi
141303
 
fi
141304
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
141305
 
if test -n "$ac_ct_STRIP"; then
141306
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
141307
 
$as_echo "$ac_ct_STRIP" >&6; }
141308
 
else
141309
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141310
 
$as_echo "no" >&6; }
141311
 
fi
141312
 
 
141313
 
  if test "x$ac_ct_STRIP" = x; then
141314
 
    STRIP=":"
141315
 
  else
141316
 
    case $cross_compiling:$ac_tool_warned in
141317
 
yes:)
141318
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
141319
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
141320
 
ac_tool_warned=yes ;;
141321
 
esac
141322
 
    STRIP=$ac_ct_STRIP
141323
 
  fi
141324
 
else
141325
 
  STRIP="$ac_cv_prog_STRIP"
141326
 
fi
141327
 
 
141328
 
 
141329
 
old_CC="$CC"
141330
 
old_CFLAGS="$CFLAGS"
141331
 
 
141332
 
# Set sane defaults for various variables
141333
 
test -z "$AR" && AR=ar
141334
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
141335
 
test -z "$AS" && AS=as
141336
 
test -z "$CC" && CC=cc
141337
 
test -z "$LTCC" && LTCC=$CC
141338
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
141339
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
141340
 
test -z "$LD" && LD=ld
141341
 
test -z "$LN_S" && LN_S="ln -s"
141342
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
141343
 
test -z "$NM" && NM=nm
141344
 
test -z "$SED" && SED=sed
141345
 
test -z "$OBJDUMP" && OBJDUMP=objdump
141346
 
test -z "$RANLIB" && RANLIB=:
141347
 
test -z "$STRIP" && STRIP=:
141348
 
test -z "$ac_objext" && ac_objext=o
141349
 
 
141350
 
# Determine commands to create old-style static archives.
141351
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
141352
 
old_postinstall_cmds='chmod 644 $oldlib'
141353
 
old_postuninstall_cmds=
141354
 
 
141355
 
if test -n "$RANLIB"; then
141356
 
  case $host_os in
141357
 
  openbsd*)
141358
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
141359
 
    ;;
141360
 
  *)
141361
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
141362
 
    ;;
141363
 
  esac
141364
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
141365
 
fi
141366
 
 
141367
 
for cc_temp in $compiler""; do
141368
 
  case $cc_temp in
141369
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
141370
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
141371
 
    \-*) ;;
141372
 
    *) break;;
141373
 
  esac
141374
 
done
141375
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
141376
 
 
141377
 
 
141378
 
# Only perform the check for file, if the check method requires it
141379
 
case $deplibs_check_method in
141380
 
file_magic*)
141381
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
141382
 
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
141383
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
141384
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
141385
 
  $as_echo_n "(cached) " >&6
141386
 
else
141387
 
  case $MAGIC_CMD in
141388
 
[\\/*] |  ?:[\\/]*)
141389
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
141390
 
  ;;
141391
 
*)
141392
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
141393
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
141394
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
141395
 
  for ac_dir in $ac_dummy; do
141396
 
    IFS="$lt_save_ifs"
141397
 
    test -z "$ac_dir" && ac_dir=.
141398
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
141399
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
141400
 
      if test -n "$file_magic_test_file"; then
141401
 
        case $deplibs_check_method in
141402
 
        "file_magic "*)
141403
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
141404
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
141405
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
141406
 
            $EGREP "$file_magic_regex" > /dev/null; then
141407
 
            :
141408
 
          else
141409
 
            cat <<EOF 1>&2
141410
 
 
141411
 
*** Warning: the command libtool uses to detect shared libraries,
141412
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
141413
 
*** The result is that libtool may fail to recognize shared libraries
141414
 
*** as such.  This will affect the creation of libtool libraries that
141415
 
*** depend on shared libraries, but programs linked with such libtool
141416
 
*** libraries will work regardless of this problem.  Nevertheless, you
141417
 
*** may want to report the problem to your system manager and/or to
141418
 
*** bug-libtool@gnu.org
141419
 
 
141420
 
EOF
141421
 
          fi ;;
141422
 
        esac
141423
 
      fi
141424
 
      break
141425
 
    fi
141426
 
  done
141427
 
  IFS="$lt_save_ifs"
141428
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
141429
 
  ;;
141430
 
esac
141431
 
fi
141432
 
 
141433
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
141434
 
if test -n "$MAGIC_CMD"; then
141435
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
141436
 
$as_echo "$MAGIC_CMD" >&6; }
141437
 
else
141438
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141439
 
$as_echo "no" >&6; }
141440
 
fi
141441
 
 
141442
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
141443
 
  if test -n "$ac_tool_prefix"; then
141444
 
    { $as_echo "$as_me:$LINENO: checking for file" >&5
141445
 
$as_echo_n "checking for file... " >&6; }
141446
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
141447
 
  $as_echo_n "(cached) " >&6
141448
 
else
141449
 
  case $MAGIC_CMD in
141450
 
[\\/*] |  ?:[\\/]*)
141451
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
141452
 
  ;;
141453
 
*)
141454
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
141455
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
141456
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
141457
 
  for ac_dir in $ac_dummy; do
141458
 
    IFS="$lt_save_ifs"
141459
 
    test -z "$ac_dir" && ac_dir=.
141460
 
    if test -f $ac_dir/file; then
141461
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
141462
 
      if test -n "$file_magic_test_file"; then
141463
 
        case $deplibs_check_method in
141464
 
        "file_magic "*)
141465
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
141466
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
141467
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
141468
 
            $EGREP "$file_magic_regex" > /dev/null; then
141469
 
            :
141470
 
          else
141471
 
            cat <<EOF 1>&2
141472
 
 
141473
 
*** Warning: the command libtool uses to detect shared libraries,
141474
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
141475
 
*** The result is that libtool may fail to recognize shared libraries
141476
 
*** as such.  This will affect the creation of libtool libraries that
141477
 
*** depend on shared libraries, but programs linked with such libtool
141478
 
*** libraries will work regardless of this problem.  Nevertheless, you
141479
 
*** may want to report the problem to your system manager and/or to
141480
 
*** bug-libtool@gnu.org
141481
 
 
141482
 
EOF
141483
 
          fi ;;
141484
 
        esac
141485
 
      fi
141486
 
      break
141487
 
    fi
141488
 
  done
141489
 
  IFS="$lt_save_ifs"
141490
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
141491
 
  ;;
141492
 
esac
141493
 
fi
141494
 
 
141495
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
141496
 
if test -n "$MAGIC_CMD"; then
141497
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
141498
 
$as_echo "$MAGIC_CMD" >&6; }
141499
 
else
141500
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141501
 
$as_echo "no" >&6; }
141502
 
fi
141503
 
 
141504
 
  else
141505
 
    MAGIC_CMD=:
141506
 
  fi
141507
 
fi
141508
 
 
141509
 
  fi
141510
 
  ;;
141511
 
esac
141512
 
 
141513
 
 
141514
 
  case $host_os in
141515
 
    rhapsody* | darwin*)
141516
 
    if test -n "$ac_tool_prefix"; then
141517
 
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
141518
 
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
141519
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141520
 
$as_echo_n "checking for $ac_word... " >&6; }
141521
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
141522
 
  $as_echo_n "(cached) " >&6
141523
 
else
141524
 
  if test -n "$DSYMUTIL"; then
141525
 
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
141526
 
else
141527
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141528
 
for as_dir in $PATH
141529
 
do
141530
 
  IFS=$as_save_IFS
141531
 
  test -z "$as_dir" && as_dir=.
141532
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141533
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141534
 
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
141535
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141536
 
    break 2
141537
 
  fi
141538
 
done
141539
 
done
141540
 
IFS=$as_save_IFS
141541
 
 
141542
 
fi
141543
 
fi
141544
 
DSYMUTIL=$ac_cv_prog_DSYMUTIL
141545
 
if test -n "$DSYMUTIL"; then
141546
 
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
141547
 
$as_echo "$DSYMUTIL" >&6; }
141548
 
else
141549
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141550
 
$as_echo "no" >&6; }
141551
 
fi
141552
 
 
141553
 
 
141554
 
fi
141555
 
if test -z "$ac_cv_prog_DSYMUTIL"; then
141556
 
  ac_ct_DSYMUTIL=$DSYMUTIL
141557
 
  # Extract the first word of "dsymutil", so it can be a program name with args.
141558
 
set dummy dsymutil; ac_word=$2
141559
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141560
 
$as_echo_n "checking for $ac_word... " >&6; }
141561
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
141562
 
  $as_echo_n "(cached) " >&6
141563
 
else
141564
 
  if test -n "$ac_ct_DSYMUTIL"; then
141565
 
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
141566
 
else
141567
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141568
 
for as_dir in $PATH
141569
 
do
141570
 
  IFS=$as_save_IFS
141571
 
  test -z "$as_dir" && as_dir=.
141572
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141573
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141574
 
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
141575
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141576
 
    break 2
141577
 
  fi
141578
 
done
141579
 
done
141580
 
IFS=$as_save_IFS
141581
 
 
141582
 
fi
141583
 
fi
141584
 
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
141585
 
if test -n "$ac_ct_DSYMUTIL"; then
141586
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
141587
 
$as_echo "$ac_ct_DSYMUTIL" >&6; }
141588
 
else
141589
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141590
 
$as_echo "no" >&6; }
141591
 
fi
141592
 
 
141593
 
  if test "x$ac_ct_DSYMUTIL" = x; then
141594
 
    DSYMUTIL=":"
141595
 
  else
141596
 
    case $cross_compiling:$ac_tool_warned in
141597
 
yes:)
141598
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
141599
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
141600
 
ac_tool_warned=yes ;;
141601
 
esac
141602
 
    DSYMUTIL=$ac_ct_DSYMUTIL
141603
 
  fi
141604
 
else
141605
 
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
141606
 
fi
141607
 
 
141608
 
    if test -n "$ac_tool_prefix"; then
141609
 
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
141610
 
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
141611
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141612
 
$as_echo_n "checking for $ac_word... " >&6; }
141613
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then
141614
 
  $as_echo_n "(cached) " >&6
141615
 
else
141616
 
  if test -n "$NMEDIT"; then
141617
 
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
141618
 
else
141619
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141620
 
for as_dir in $PATH
141621
 
do
141622
 
  IFS=$as_save_IFS
141623
 
  test -z "$as_dir" && as_dir=.
141624
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141625
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141626
 
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
141627
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141628
 
    break 2
141629
 
  fi
141630
 
done
141631
 
done
141632
 
IFS=$as_save_IFS
141633
 
 
141634
 
fi
141635
 
fi
141636
 
NMEDIT=$ac_cv_prog_NMEDIT
141637
 
if test -n "$NMEDIT"; then
141638
 
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
141639
 
$as_echo "$NMEDIT" >&6; }
141640
 
else
141641
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141642
 
$as_echo "no" >&6; }
141643
 
fi
141644
 
 
141645
 
 
141646
 
fi
141647
 
if test -z "$ac_cv_prog_NMEDIT"; then
141648
 
  ac_ct_NMEDIT=$NMEDIT
141649
 
  # Extract the first word of "nmedit", so it can be a program name with args.
141650
 
set dummy nmedit; ac_word=$2
141651
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
141652
 
$as_echo_n "checking for $ac_word... " >&6; }
141653
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
141654
 
  $as_echo_n "(cached) " >&6
141655
 
else
141656
 
  if test -n "$ac_ct_NMEDIT"; then
141657
 
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
141658
 
else
141659
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
141660
 
for as_dir in $PATH
141661
 
do
141662
 
  IFS=$as_save_IFS
141663
 
  test -z "$as_dir" && as_dir=.
141664
 
  for ac_exec_ext in '' $ac_executable_extensions; do
141665
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
141666
 
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
141667
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
141668
 
    break 2
141669
 
  fi
141670
 
done
141671
 
done
141672
 
IFS=$as_save_IFS
141673
 
 
141674
 
fi
141675
 
fi
141676
 
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
141677
 
if test -n "$ac_ct_NMEDIT"; then
141678
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
141679
 
$as_echo "$ac_ct_NMEDIT" >&6; }
141680
 
else
141681
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
141682
 
$as_echo "no" >&6; }
141683
 
fi
141684
 
 
141685
 
  if test "x$ac_ct_NMEDIT" = x; then
141686
 
    NMEDIT=":"
141687
 
  else
141688
 
    case $cross_compiling:$ac_tool_warned in
141689
 
yes:)
141690
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
141691
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
141692
 
ac_tool_warned=yes ;;
141693
 
esac
141694
 
    NMEDIT=$ac_ct_NMEDIT
141695
 
  fi
141696
 
else
141697
 
  NMEDIT="$ac_cv_prog_NMEDIT"
141698
 
fi
141699
 
 
141700
 
 
141701
 
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
141702
 
$as_echo_n "checking for -single_module linker flag... " >&6; }
141703
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
141704
 
  $as_echo_n "(cached) " >&6
141705
 
else
141706
 
  lt_cv_apple_cc_single_mod=no
141707
 
      if test -z "${LT_MULTI_MODULE}"; then
141708
 
   # By default we will add the -single_module flag. You can override
141709
 
   # by either setting the environment variable LT_MULTI_MODULE
141710
 
   # non-empty at configure time, or by adding -multi_module to the
141711
 
   # link flags.
141712
 
   echo "int foo(void){return 1;}" > conftest.c
141713
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
141714
 
     -dynamiclib ${wl}-single_module conftest.c
141715
 
   if test -f libconftest.dylib; then
141716
 
     lt_cv_apple_cc_single_mod=yes
141717
 
     rm -rf libconftest.dylib*
141718
 
   fi
141719
 
   rm conftest.c
141720
 
      fi
141721
 
fi
141722
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
141723
 
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
141724
 
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
141725
 
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
141726
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
141727
 
  $as_echo_n "(cached) " >&6
141728
 
else
141729
 
  lt_cv_ld_exported_symbols_list=no
141730
 
      save_LDFLAGS=$LDFLAGS
141731
 
      echo "_main" > conftest.sym
141732
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
141733
 
      
141734
 
cat > conftest.$ac_ext <<EOF
141735
 
#line __oline__ "configure"
141736
 
#include "confdefs.h"
141737
 
int main() {
141738
 
; return 0; }
141739
 
EOF
141740
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
141741
 
  (eval $ac_link) 2>&5
141742
 
  ac_status=$?
141743
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
141744
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
141745
 
 lt_cv_ld_exported_symbols_list=yes
141746
 
  rm -rf conftest*
141747
 
else
141748
 
  echo "configure: failed program was:" >&5
141749
 
  cat conftest.$ac_ext >&6
141750
 
lt_cv_ld_exported_symbols_list=no
141751
 
  rm -rf conftest*
141752
 
fi
141753
 
rm -f conftest*
141754
 
   LDFLAGS="$save_LDFLAGS"
141755
 
    
141756
 
fi
141757
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
141758
 
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
141759
 
    case $host_os in
141760
 
    rhapsody* | darwin1.[0123])
141761
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
141762
 
    darwin1.*)
141763
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
141764
 
    darwin*)
141765
 
      # if running on 10.5 or later, the deployment target defaults
141766
 
      # to the OS version, if on x86, and 10.4, the deployment
141767
 
      # target defaults to 10.4. Don't you love it?
141768
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
141769
 
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
141770
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
141771
 
   10.[012]*)
141772
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
141773
 
   10.*)
141774
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
141775
 
      esac
141776
 
    ;;
141777
 
  esac
141778
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
141779
 
      _lt_dar_single_mod='$single_module'
141780
 
    fi
141781
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
141782
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
141783
 
    else
141784
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
141785
 
    fi
141786
 
    if test "$DSYMUTIL" != ":"; then
141787
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
141788
 
    else
141789
 
      _lt_dsymutil=
141790
 
    fi
141791
 
    ;;
141792
 
  esac
141793
 
 
141794
 
 
141795
 
enable_dlopen=no
141796
 
enable_win32_dll=no
141797
 
 
141798
 
@%:@ Check whether --enable-libtool-lock was given.
141799
 
if test "${enable_libtool_lock+set}" = set; then
141800
 
  enableval=$enable_libtool_lock; 
141801
 
fi
141802
 
 
141803
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
141804
 
 
141805
 
 
141806
 
@%:@ Check whether --with-pic was given.
141807
 
if test "${with_pic+set}" = set; then
141808
 
  withval=$with_pic; pic_mode="$withval"
141809
 
else
141810
 
  pic_mode=default
141811
 
fi
141812
 
 
141813
 
test -z "$pic_mode" && pic_mode=default
141814
 
 
141815
 
# Use C for the default configuration in the libtool script
141816
 
tagname=
141817
 
lt_save_CC="$CC"
141818
 
 
141819
 
ac_ext=c
141820
 
ac_cpp='$CPP $CPPFLAGS'
141821
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
141822
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
141823
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
141824
 
 
141825
 
 
141826
 
# Source file extension for C test sources.
141827
 
ac_ext=c
141828
 
 
141829
 
# Object file extension for compiled C test sources.
141830
 
objext=o
141831
 
objext=$objext
141832
 
 
141833
 
# Code to be used in simple compile tests
141834
 
lt_simple_compile_test_code="int some_variable = 0;"
141835
 
 
141836
 
# Code to be used in simple link tests
141837
 
lt_simple_link_test_code='int main(){return(0);}'
141838
 
 
141839
 
 
141840
 
# If no C compiler was specified, use CC.
141841
 
LTCC=${LTCC-"$CC"}
141842
 
 
141843
 
# If no C compiler flags were specified, use CFLAGS.
141844
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
141845
 
 
141846
 
# Allow CC to be a program name with arguments.
141847
 
compiler=$CC
141848
 
 
141849
 
 
141850
 
# save warnings/boilerplate of simple test code
141851
 
ac_outfile=conftest.$ac_objext
141852
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
141853
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
141854
 
_lt_compiler_boilerplate=`cat conftest.err`
141855
 
$rm conftest*
141856
 
 
141857
 
ac_outfile=conftest.$ac_objext
141858
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
141859
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
141860
 
_lt_linker_boilerplate=`cat conftest.err`
141861
 
$rm -r conftest*
141862
 
 
141863
 
 
141864
 
## CAVEAT EMPTOR:
141865
 
## There is no encapsulation within the following macros, do not change
141866
 
## the running order or otherwise move them around unless you know exactly
141867
 
## what you are doing...
141868
 
 
141869
 
lt_prog_compiler_no_builtin_flag=
141870
 
 
141871
 
if test "$GCC" = yes; then
141872
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
141873
 
 
141874
 
  
141875
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
141876
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
141877
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
141878
 
  $as_echo_n "(cached) " >&6
141879
 
else
141880
 
  lt_cv_prog_compiler_rtti_exceptions=no
141881
 
  ac_outfile=conftest.$ac_objext
141882
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
141883
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
141884
 
   # Insert the option either (1) after the last *FLAGS variable, or
141885
 
   # (2) before a word containing "conftest.", or (3) at the end.
141886
 
   # Note that $ac_compile itself does not contain backslashes and begins
141887
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
141888
 
   # The option is referenced via a variable to avoid confusing sed.
141889
 
   lt_compile=`echo "$ac_compile" | $SED \
141890
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
141891
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
141892
 
   -e 's:$: $lt_compiler_flag:'`
141893
 
   (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
141894
 
   (eval "$lt_compile" 2>conftest.err)
141895
 
   ac_status=$?
141896
 
   cat conftest.err >&5
141897
 
   echo "configure:__oline__: \$? = $ac_status" >&5
141898
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
141899
 
     # The compiler can only warn and ignore the option if not recognized
141900
 
     # So say no if there are warnings other than the usual output.
141901
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
141902
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
141903
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
141904
 
       lt_cv_prog_compiler_rtti_exceptions=yes
141905
 
     fi
141906
 
   fi
141907
 
   $rm conftest*
141908
 
 
141909
 
fi
141910
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
141911
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
141912
 
 
141913
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
141914
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
141915
 
else
141916
 
    :
141917
 
fi
141918
 
 
141919
 
fi
141920
 
 
141921
 
lt_prog_compiler_wl=
141922
 
lt_prog_compiler_pic=
141923
 
lt_prog_compiler_static=
141924
 
 
141925
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
141926
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
141927
 
 
141928
 
  if test "$GCC" = yes; then
141929
 
    lt_prog_compiler_wl='-Wl,'
141930
 
    lt_prog_compiler_static='-static'
141931
 
 
141932
 
    case $host_os in
141933
 
      aix*)
141934
 
      # All AIX code is PIC.
141935
 
      if test "$host_cpu" = ia64; then
141936
 
        # AIX 5 now supports IA64 processor
141937
 
        lt_prog_compiler_static='-Bstatic'
141938
 
      fi
141939
 
      ;;
141940
 
 
141941
 
    amigaos*)
141942
 
      # FIXME: we need at least 68020 code to build shared libraries, but
141943
 
      # adding the `-m68020' flag to GCC prevents building anything better,
141944
 
      # like `-m68040'.
141945
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
141946
 
      ;;
141947
 
 
141948
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
141949
 
      # PIC is the default for these OSes.
141950
 
      ;;
141951
 
 
141952
 
    mingw* | cygwin* | pw32* | os2*)
141953
 
      # This hack is so that the source file can tell whether it is being
141954
 
      # built for inclusion in a dll (and should export symbols for example).
141955
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
141956
 
      # (--disable-auto-import) libraries
141957
 
          lt_prog_compiler_pic='-DDLL_EXPORT'
141958
 
      ;;
141959
 
 
141960
 
    darwin* | rhapsody*)
141961
 
      # PIC is the default on this platform
141962
 
      # Common symbols not allowed in MH_DYLIB files
141963
 
      lt_prog_compiler_pic='-fno-common'
141964
 
      ;;
141965
 
 
141966
 
    interix[3-9]*)
141967
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
141968
 
      # Instead, we relocate shared libraries at runtime.
141969
 
      ;;
141970
 
 
141971
 
    msdosdjgpp*)
141972
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
141973
 
      # on systems that don't support them.
141974
 
      lt_prog_compiler_can_build_shared=no
141975
 
      enable_shared=no
141976
 
      ;;
141977
 
 
141978
 
    sysv4*MP*)
141979
 
      if test -d /usr/nec; then
141980
 
        lt_prog_compiler_pic=-Kconform_pic
141981
 
      fi
141982
 
      ;;
141983
 
 
141984
 
    hpux*)
141985
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
141986
 
      # not for PA HP-UX.
141987
 
      case $host_cpu in
141988
 
      hppa*64*|ia64*)
141989
 
        # +Z the default
141990
 
        ;;
141991
 
      *)
141992
 
        lt_prog_compiler_pic='-fPIC'
141993
 
        ;;
141994
 
      esac
141995
 
      ;;
141996
 
 
141997
 
    *)
141998
 
      lt_prog_compiler_pic='-fPIC'
141999
 
      ;;
142000
 
    esac
142001
 
  else
142002
 
    # PORTME Check for flag to pass linker flags through the system compiler.
142003
 
    case $host_os in
142004
 
    aix*)
142005
 
      lt_prog_compiler_wl='-Wl,'
142006
 
      if test "$host_cpu" = ia64; then
142007
 
        # AIX 5 now supports IA64 processor
142008
 
        lt_prog_compiler_static='-Bstatic'
142009
 
      else
142010
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
142011
 
      fi
142012
 
      ;;
142013
 
      darwin*)
142014
 
        # PIC is the default on this platform
142015
 
        # Common symbols not allowed in MH_DYLIB files
142016
 
       case $cc_basename in
142017
 
         xlc*)
142018
 
         lt_prog_compiler_pic='-qnocommon'
142019
 
         lt_prog_compiler_wl='-Wl,'
142020
 
         ;;
142021
 
       esac
142022
 
       ;;
142023
 
 
142024
 
    mingw* | cygwin* | pw32* | os2*)
142025
 
      # This hack is so that the source file can tell whether it is being
142026
 
      # built for inclusion in a dll (and should export symbols for example).
142027
 
          lt_prog_compiler_pic='-DDLL_EXPORT'
142028
 
      ;;
142029
 
 
142030
 
    hpux9* | hpux10* | hpux11*)
142031
 
      lt_prog_compiler_wl='-Wl,'
142032
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
142033
 
      # not for PA HP-UX.
142034
 
      case $host_cpu in
142035
 
      hppa*64*|ia64*)
142036
 
        # +Z the default
142037
 
        ;;
142038
 
      *)
142039
 
        lt_prog_compiler_pic='+Z'
142040
 
        ;;
142041
 
      esac
142042
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
142043
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
142044
 
      ;;
142045
 
 
142046
 
    irix5* | irix6* | nonstopux*)
142047
 
      lt_prog_compiler_wl='-Wl,'
142048
 
      # PIC (with -KPIC) is the default.
142049
 
      lt_prog_compiler_static='-non_shared'
142050
 
      ;;
142051
 
 
142052
 
    newsos6)
142053
 
      lt_prog_compiler_pic='-KPIC'
142054
 
      lt_prog_compiler_static='-Bstatic'
142055
 
      ;;
142056
 
 
142057
 
    linux* | k*bsd*-gnu)
142058
 
      case $cc_basename in
142059
 
      # old Intel for x86_64 which still supported -KPIC.
142060
 
      ecc*)
142061
 
        lt_prog_compiler_wl='-Wl,'
142062
 
        lt_prog_compiler_pic='-KPIC'
142063
 
        lt_prog_compiler_static='-static'
142064
 
        ;;
142065
 
      # icc used to be incompatible with GCC.
142066
 
      # ICC 10 doesn't accept -KPIC any more.
142067
 
      icc*)
142068
 
        lt_prog_compiler_wl='-Wl,'
142069
 
        lt_prog_compiler_pic='-fPIC'
142070
 
        lt_prog_compiler_static='-static'
142071
 
        ;;
142072
 
      pgcc* | pgf77* | pgf90* | pgf95*)
142073
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
142074
 
        # which looks to be a dead project)
142075
 
        lt_prog_compiler_wl='-Wl,'
142076
 
        lt_prog_compiler_pic='-fpic'
142077
 
        lt_prog_compiler_static='-Bstatic'
142078
 
        ;;
142079
 
      ccc*)
142080
 
        lt_prog_compiler_wl='-Wl,'
142081
 
        # All Alpha code is PIC.
142082
 
        lt_prog_compiler_static='-non_shared'
142083
 
        ;;
142084
 
      *)
142085
 
        case `$CC -V 2>&1 | sed 5q` in
142086
 
        *Sun\ C*)
142087
 
          # Sun C 5.9
142088
 
          lt_prog_compiler_pic='-KPIC'
142089
 
          lt_prog_compiler_static='-Bstatic'
142090
 
          lt_prog_compiler_wl='-Wl,'
142091
 
          ;;
142092
 
        *Sun\ F*)
142093
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
142094
 
          lt_prog_compiler_pic='-KPIC'
142095
 
          lt_prog_compiler_static='-Bstatic'
142096
 
          lt_prog_compiler_wl=''
142097
 
          ;;
142098
 
        esac
142099
 
        ;;
142100
 
      esac
142101
 
      ;;
142102
 
 
142103
 
    osf3* | osf4* | osf5*)
142104
 
      lt_prog_compiler_wl='-Wl,'
142105
 
      # All OSF/1 code is PIC.
142106
 
      lt_prog_compiler_static='-non_shared'
142107
 
      ;;
142108
 
 
142109
 
    rdos*)
142110
 
      lt_prog_compiler_static='-non_shared'
142111
 
      ;;
142112
 
 
142113
 
    solaris*)
142114
 
      lt_prog_compiler_pic='-KPIC'
142115
 
      lt_prog_compiler_static='-Bstatic'
142116
 
      case $cc_basename in
142117
 
      f77* | f90* | f95*)
142118
 
        lt_prog_compiler_wl='-Qoption ld ';;
142119
 
      *)
142120
 
        lt_prog_compiler_wl='-Wl,';;
142121
 
      esac
142122
 
      ;;
142123
 
 
142124
 
    sunos4*)
142125
 
      lt_prog_compiler_wl='-Qoption ld '
142126
 
      lt_prog_compiler_pic='-PIC'
142127
 
      lt_prog_compiler_static='-Bstatic'
142128
 
      ;;
142129
 
 
142130
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
142131
 
      lt_prog_compiler_wl='-Wl,'
142132
 
      lt_prog_compiler_pic='-KPIC'
142133
 
      lt_prog_compiler_static='-Bstatic'
142134
 
      ;;
142135
 
 
142136
 
    sysv4*MP*)
142137
 
      if test -d /usr/nec ;then
142138
 
        lt_prog_compiler_pic='-Kconform_pic'
142139
 
        lt_prog_compiler_static='-Bstatic'
142140
 
      fi
142141
 
      ;;
142142
 
 
142143
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
142144
 
      lt_prog_compiler_wl='-Wl,'
142145
 
      lt_prog_compiler_pic='-KPIC'
142146
 
      lt_prog_compiler_static='-Bstatic'
142147
 
      ;;
142148
 
 
142149
 
    unicos*)
142150
 
      lt_prog_compiler_wl='-Wl,'
142151
 
      lt_prog_compiler_can_build_shared=no
142152
 
      ;;
142153
 
 
142154
 
    uts4*)
142155
 
      lt_prog_compiler_pic='-pic'
142156
 
      lt_prog_compiler_static='-Bstatic'
142157
 
      ;;
142158
 
 
142159
 
    *)
142160
 
      lt_prog_compiler_can_build_shared=no
142161
 
      ;;
142162
 
    esac
142163
 
  fi
142164
 
 
142165
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
142166
 
$as_echo "$lt_prog_compiler_pic" >&6; }
142167
 
 
142168
 
#
142169
 
# Check to make sure the PIC flag actually works.
142170
 
#
142171
 
if test -n "$lt_prog_compiler_pic"; then
142172
 
  
142173
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
142174
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
142175
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
142176
 
  $as_echo_n "(cached) " >&6
142177
 
else
142178
 
  lt_cv_prog_compiler_pic_works=no
142179
 
  ac_outfile=conftest.$ac_objext
142180
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
142181
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
142182
 
   # Insert the option either (1) after the last *FLAGS variable, or
142183
 
   # (2) before a word containing "conftest.", or (3) at the end.
142184
 
   # Note that $ac_compile itself does not contain backslashes and begins
142185
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
142186
 
   # The option is referenced via a variable to avoid confusing sed.
142187
 
   lt_compile=`echo "$ac_compile" | $SED \
142188
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
142189
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
142190
 
   -e 's:$: $lt_compiler_flag:'`
142191
 
   (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
142192
 
   (eval "$lt_compile" 2>conftest.err)
142193
 
   ac_status=$?
142194
 
   cat conftest.err >&5
142195
 
   echo "configure:__oline__: \$? = $ac_status" >&5
142196
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
142197
 
     # The compiler can only warn and ignore the option if not recognized
142198
 
     # So say no if there are warnings other than the usual output.
142199
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
142200
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
142201
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
142202
 
       lt_cv_prog_compiler_pic_works=yes
142203
 
     fi
142204
 
   fi
142205
 
   $rm conftest*
142206
 
 
142207
 
fi
142208
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
142209
 
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
142210
 
 
142211
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
142212
 
    case $lt_prog_compiler_pic in
142213
 
     "" | " "*) ;;
142214
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
142215
 
     esac
142216
 
else
142217
 
    lt_prog_compiler_pic=
142218
 
     lt_prog_compiler_can_build_shared=no
142219
 
fi
142220
 
 
142221
 
fi
142222
 
case $host_os in
142223
 
  # For platforms which do not support PIC, -DPIC is meaningless:
142224
 
  *djgpp*)
142225
 
    lt_prog_compiler_pic=
142226
 
    ;;
142227
 
  *)
142228
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
142229
 
    ;;
142230
 
esac
142231
 
 
142232
 
#
142233
 
# Check to make sure the static flag actually works.
142234
 
#
142235
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
142236
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
142237
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
142238
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
142239
 
  $as_echo_n "(cached) " >&6
142240
 
else
142241
 
  lt_cv_prog_compiler_static_works=no
142242
 
   save_LDFLAGS="$LDFLAGS"
142243
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
142244
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
142245
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
142246
 
     # The linker can only warn and ignore the option if not recognized
142247
 
     # So say no if there are warnings
142248
 
     if test -s conftest.err; then
142249
 
       # Append any errors to the config.log.
142250
 
       cat conftest.err 1>&5
142251
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
142252
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
142253
 
       if diff conftest.exp conftest.er2 >/dev/null; then
142254
 
         lt_cv_prog_compiler_static_works=yes
142255
 
       fi
142256
 
     else
142257
 
       lt_cv_prog_compiler_static_works=yes
142258
 
     fi
142259
 
   fi
142260
 
   $rm -r conftest*
142261
 
   LDFLAGS="$save_LDFLAGS"
142262
 
 
142263
 
fi
142264
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
142265
 
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
142266
 
 
142267
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
142268
 
    :
142269
 
else
142270
 
    lt_prog_compiler_static=
142271
 
fi
142272
 
 
142273
 
 
142274
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
142275
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
142276
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
142277
 
  $as_echo_n "(cached) " >&6
142278
 
else
142279
 
  lt_cv_prog_compiler_c_o=no
142280
 
   $rm -r conftest 2>/dev/null
142281
 
   mkdir conftest
142282
 
   cd conftest
142283
 
   mkdir out
142284
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
142285
 
 
142286
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
142287
 
   # Insert the option either (1) after the last *FLAGS variable, or
142288
 
   # (2) before a word containing "conftest.", or (3) at the end.
142289
 
   # Note that $ac_compile itself does not contain backslashes and begins
142290
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
142291
 
   lt_compile=`echo "$ac_compile" | $SED \
142292
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
142293
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
142294
 
   -e 's:$: $lt_compiler_flag:'`
142295
 
   (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
142296
 
   (eval "$lt_compile" 2>out/conftest.err)
142297
 
   ac_status=$?
142298
 
   cat out/conftest.err >&5
142299
 
   echo "configure:__oline__: \$? = $ac_status" >&5
142300
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
142301
 
   then
142302
 
     # The compiler can only warn and ignore the option if not recognized
142303
 
     # So say no if there are warnings
142304
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
142305
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
142306
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
142307
 
       lt_cv_prog_compiler_c_o=yes
142308
 
     fi
142309
 
   fi
142310
 
   chmod u+w . 2>&5
142311
 
   $rm conftest*
142312
 
   # SGI C++ compiler will create directory out/ii_files/ for
142313
 
   # template instantiation
142314
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
142315
 
   $rm out/* && rmdir out
142316
 
   cd ..
142317
 
   rmdir conftest
142318
 
   $rm conftest*
142319
 
 
142320
 
fi
142321
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
142322
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
142323
 
 
142324
 
 
142325
 
hard_links="nottested"
142326
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
142327
 
  # do not overwrite the value of need_locks provided by the user
142328
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
142329
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
142330
 
  hard_links=yes
142331
 
  $rm conftest*
142332
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
142333
 
  touch conftest.a
142334
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
142335
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
142336
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
142337
 
$as_echo "$hard_links" >&6; }
142338
 
  if test "$hard_links" = no; then
142339
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
142340
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
142341
 
    need_locks=warn
142342
 
  fi
142343
 
else
142344
 
  need_locks=no
142345
 
fi
142346
 
 
142347
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
142348
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
142349
 
 
142350
 
  runpath_var=
142351
 
  allow_undefined_flag=
142352
 
  enable_shared_with_static_runtimes=no
142353
 
  archive_cmds=
142354
 
  archive_expsym_cmds=
142355
 
  old_archive_From_new_cmds=
142356
 
  old_archive_from_expsyms_cmds=
142357
 
  export_dynamic_flag_spec=
142358
 
  whole_archive_flag_spec=
142359
 
  thread_safe_flag_spec=
142360
 
  hardcode_libdir_flag_spec=
142361
 
  hardcode_libdir_flag_spec_ld=
142362
 
  hardcode_libdir_separator=
142363
 
  hardcode_direct=no
142364
 
  hardcode_minus_L=no
142365
 
  hardcode_shlibpath_var=unsupported
142366
 
  link_all_deplibs=unknown
142367
 
  hardcode_automatic=no
142368
 
  module_cmds=
142369
 
  module_expsym_cmds=
142370
 
  always_export_symbols=no
142371
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
142372
 
  # include_expsyms should be a list of space-separated symbols to be *always*
142373
 
  # included in the symbol list
142374
 
  include_expsyms=
142375
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
142376
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
142377
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
142378
 
  # as well as any symbol that contains `d'.
142379
 
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
142380
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
142381
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
142382
 
  # the symbol is explicitly referenced.  Since portable code cannot
142383
 
  # rely on this symbol name, it's probably fine to never include it in
142384
 
  # preloaded symbol tables.
142385
 
  # Exclude shared library initialization/finalization symbols.
142386
 
  extract_expsyms_cmds=
142387
 
  # Just being paranoid about ensuring that cc_basename is set.
142388
 
  for cc_temp in $compiler""; do
142389
 
  case $cc_temp in
142390
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
142391
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
142392
 
    \-*) ;;
142393
 
    *) break;;
142394
 
  esac
142395
 
done
142396
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
142397
 
 
142398
 
  case $host_os in
142399
 
  cygwin* | mingw* | pw32*)
142400
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
142401
 
    # When not using gcc, we currently assume that we are using
142402
 
    # Microsoft Visual C++.
142403
 
    if test "$GCC" != yes; then
142404
 
      with_gnu_ld=no
142405
 
    fi
142406
 
    ;;
142407
 
  interix*)
142408
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
142409
 
    with_gnu_ld=yes
142410
 
    ;;
142411
 
  openbsd*)
142412
 
    with_gnu_ld=no
142413
 
    ;;
142414
 
  esac
142415
 
 
142416
 
  ld_shlibs=yes
142417
 
  if test "$with_gnu_ld" = yes; then
142418
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
142419
 
    wlarc='${wl}'
142420
 
 
142421
 
    # Set some defaults for GNU ld with shared library support. These
142422
 
    # are reset later if shared libraries are not supported. Putting them
142423
 
    # here allows them to be overridden if necessary.
142424
 
    runpath_var=LD_RUN_PATH
142425
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
142426
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
142427
 
    # ancient GNU ld didn't support --whole-archive et. al.
142428
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
142429
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
142430
 
      else
142431
 
        whole_archive_flag_spec=
142432
 
    fi
142433
 
    supports_anon_versioning=no
142434
 
    case `$LD -v 2>/dev/null` in
142435
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
142436
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
142437
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
142438
 
      *\ 2.11.*) ;; # other 2.11 versions
142439
 
      *) supports_anon_versioning=yes ;;
142440
 
    esac
142441
 
 
142442
 
    # See if GNU ld supports shared libraries.
142443
 
    case $host_os in
142444
 
    aix[3-9]*)
142445
 
      # On AIX/PPC, the GNU linker is very broken
142446
 
      if test "$host_cpu" != ia64; then
142447
 
        ld_shlibs=no
142448
 
        cat <<EOF 1>&2
142449
 
 
142450
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
142451
 
*** to be unable to reliably create shared libraries on AIX.
142452
 
*** Therefore, libtool is disabling shared libraries support.  If you
142453
 
*** really care for shared libraries, you may want to modify your PATH
142454
 
*** so that a non-GNU linker is found, and then restart.
142455
 
 
142456
 
EOF
142457
 
      fi
142458
 
      ;;
142459
 
 
142460
 
    amigaos*)
142461
 
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
142462
 
      hardcode_libdir_flag_spec='-L$libdir'
142463
 
      hardcode_minus_L=yes
142464
 
 
142465
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
142466
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
142467
 
      # to version 4, is to share data among multiple programs linked
142468
 
      # with the same dynamic library.  Since this doesn't match the
142469
 
      # behavior of shared libraries on other platforms, we can't use
142470
 
      # them.
142471
 
      ld_shlibs=no
142472
 
      ;;
142473
 
 
142474
 
    beos*)
142475
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
142476
 
        allow_undefined_flag=unsupported
142477
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
142478
 
        # support --undefined.  This deserves some investigation.  FIXME
142479
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
142480
 
      else
142481
 
        ld_shlibs=no
142482
 
      fi
142483
 
      ;;
142484
 
 
142485
 
    cygwin* | mingw* | pw32*)
142486
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
142487
 
      # as there is no search path for DLLs.
142488
 
      hardcode_libdir_flag_spec='-L$libdir'
142489
 
      allow_undefined_flag=unsupported
142490
 
      always_export_symbols=no
142491
 
      enable_shared_with_static_runtimes=yes
142492
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
142493
 
 
142494
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
142495
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
142496
 
        # If the export-symbols file already is a .def file (1st line
142497
 
        # is EXPORTS), use it as is; otherwise, prepend...
142498
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
142499
 
          cp $export_symbols $output_objdir/$soname.def;
142500
 
        else
142501
 
          echo EXPORTS > $output_objdir/$soname.def;
142502
 
          cat $export_symbols >> $output_objdir/$soname.def;
142503
 
        fi~
142504
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
142505
 
      else
142506
 
        ld_shlibs=no
142507
 
      fi
142508
 
      ;;
142509
 
 
142510
 
    interix[3-9]*)
142511
 
      hardcode_direct=no
142512
 
      hardcode_shlibpath_var=no
142513
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
142514
 
      export_dynamic_flag_spec='${wl}-E'
142515
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
142516
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
142517
 
      # default) and relocated if they conflict, which is a slow very memory
142518
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
142519
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
142520
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
142521
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
142522
 
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
142523
 
      ;;
142524
 
 
142525
 
    gnu* | linux* | k*bsd*-gnu)
142526
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
142527
 
        tmp_addflag=
142528
 
        case $cc_basename,$host_cpu in
142529
 
        pgcc*)                          # Portland Group C compiler
142530
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
142531
 
          tmp_addflag=' $pic_flag'
142532
 
          ;;
142533
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
142534
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
142535
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
142536
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
142537
 
          tmp_addflag=' -i_dynamic' ;;
142538
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
142539
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
142540
 
        ifc* | ifort*)                  # Intel Fortran compiler
142541
 
          tmp_addflag=' -nofor_main' ;;
142542
 
        esac
142543
 
        case `$CC -V 2>&1 | sed 5q` in
142544
 
        *Sun\ C*)                       # Sun C 5.9
142545
 
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
142546
 
          tmp_sharedflag='-G' ;;
142547
 
        *Sun\ F*)                       # Sun Fortran 8.3
142548
 
          tmp_sharedflag='-G' ;;
142549
 
        *)
142550
 
          tmp_sharedflag='-shared' ;;
142551
 
        esac
142552
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
142553
 
 
142554
 
        if test $supports_anon_versioning = yes; then
142555
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
142556
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
142557
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
142558
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
142559
 
        fi
142560
 
      else
142561
 
        ld_shlibs=no
142562
 
      fi
142563
 
      ;;
142564
 
 
142565
 
    netbsd*)
142566
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
142567
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
142568
 
        wlarc=
142569
 
      else
142570
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
142571
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
142572
 
      fi
142573
 
      ;;
142574
 
 
142575
 
    solaris*)
142576
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
142577
 
        ld_shlibs=no
142578
 
        cat <<EOF 1>&2
142579
 
 
142580
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
142581
 
*** create shared libraries on Solaris systems.  Therefore, libtool
142582
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
142583
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
142584
 
*** your PATH or compiler configuration so that the native linker is
142585
 
*** used, and then restart.
142586
 
 
142587
 
EOF
142588
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
142589
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
142590
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
142591
 
      else
142592
 
        ld_shlibs=no
142593
 
      fi
142594
 
      ;;
142595
 
 
142596
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
142597
 
      case `$LD -v 2>&1` in
142598
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
142599
 
        ld_shlibs=no
142600
 
        cat <<_LT_EOF 1>&2
142601
 
 
142602
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
142603
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
142604
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
142605
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
142606
 
*** your PATH or compiler configuration so that the native linker is
142607
 
*** used, and then restart.
142608
 
 
142609
 
_LT_EOF
142610
 
        ;;
142611
 
        *)
142612
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
142613
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
142614
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
142615
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
142616
 
          else
142617
 
            ld_shlibs=no
142618
 
          fi
142619
 
        ;;
142620
 
      esac
142621
 
      ;;
142622
 
 
142623
 
    sunos4*)
142624
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
142625
 
      wlarc=
142626
 
      hardcode_direct=yes
142627
 
      hardcode_shlibpath_var=no
142628
 
      ;;
142629
 
 
142630
 
    *)
142631
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
142632
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
142633
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
142634
 
      else
142635
 
        ld_shlibs=no
142636
 
      fi
142637
 
      ;;
142638
 
    esac
142639
 
 
142640
 
    if test "$ld_shlibs" = no; then
142641
 
      runpath_var=
142642
 
      hardcode_libdir_flag_spec=
142643
 
      export_dynamic_flag_spec=
142644
 
      whole_archive_flag_spec=
142645
 
    fi
142646
 
  else
142647
 
    # PORTME fill in a description of your system's linker (not GNU ld)
142648
 
    case $host_os in
142649
 
    aix3*)
142650
 
      allow_undefined_flag=unsupported
142651
 
      always_export_symbols=yes
142652
 
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
142653
 
      # Note: this linker hardcodes the directories in LIBPATH if there
142654
 
      # are no directories specified by -L.
142655
 
      hardcode_minus_L=yes
142656
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
142657
 
        # Neither direct hardcoding nor static linking is supported with a
142658
 
        # broken collect2.
142659
 
        hardcode_direct=unsupported
142660
 
      fi
142661
 
      ;;
142662
 
 
142663
 
    aix[4-9]*)
142664
 
      if test "$host_cpu" = ia64; then
142665
 
        # On IA64, the linker does run time linking by default, so we don't
142666
 
        # have to do anything special.
142667
 
        aix_use_runtimelinking=no
142668
 
        exp_sym_flag='-Bexport'
142669
 
        no_entry_flag=""
142670
 
      else
142671
 
        # If we're using GNU nm, then we don't want the "-C" option.
142672
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
142673
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
142674
 
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
142675
 
        else
142676
 
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
142677
 
        fi
142678
 
        aix_use_runtimelinking=no
142679
 
 
142680
 
        # Test if we are trying to use run time linking or normal
142681
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
142682
 
        # need to do runtime linking.
142683
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
142684
 
          for ld_flag in $LDFLAGS; do
142685
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
142686
 
            aix_use_runtimelinking=yes
142687
 
            break
142688
 
          fi
142689
 
          done
142690
 
          ;;
142691
 
        esac
142692
 
 
142693
 
        exp_sym_flag='-bexport'
142694
 
        no_entry_flag='-bnoentry'
142695
 
      fi
142696
 
 
142697
 
      # When large executables or shared objects are built, AIX ld can
142698
 
      # have problems creating the table of contents.  If linking a library
142699
 
      # or program results in "error TOC overflow" add -mminimal-toc to
142700
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
142701
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
142702
 
 
142703
 
      archive_cmds=''
142704
 
      hardcode_direct=yes
142705
 
      hardcode_libdir_separator=':'
142706
 
      link_all_deplibs=yes
142707
 
 
142708
 
      if test "$GCC" = yes; then
142709
 
        case $host_os in aix4.[012]|aix4.[012].*)
142710
 
        # We only want to do this on AIX 4.2 and lower, the check
142711
 
        # below for broken collect2 doesn't work under 4.3+
142712
 
          collect2name=`${CC} -print-prog-name=collect2`
142713
 
          if test -f "$collect2name" && \
142714
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
142715
 
          then
142716
 
          # We have reworked collect2
142717
 
          :
142718
 
          else
142719
 
          # We have old collect2
142720
 
          hardcode_direct=unsupported
142721
 
          # It fails to find uninstalled libraries when the uninstalled
142722
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
142723
 
          # to unsupported forces relinking
142724
 
          hardcode_minus_L=yes
142725
 
          hardcode_libdir_flag_spec='-L$libdir'
142726
 
          hardcode_libdir_separator=
142727
 
          fi
142728
 
          ;;
142729
 
        esac
142730
 
        shared_flag='-shared'
142731
 
        if test "$aix_use_runtimelinking" = yes; then
142732
 
          shared_flag="$shared_flag "'${wl}-G'
142733
 
        fi
142734
 
      else
142735
 
        # not using gcc
142736
 
        if test "$host_cpu" = ia64; then
142737
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
142738
 
        # chokes on -Wl,-G. The following line is correct:
142739
 
          shared_flag='-G'
142740
 
        else
142741
 
          if test "$aix_use_runtimelinking" = yes; then
142742
 
            shared_flag='${wl}-G'
142743
 
          else
142744
 
            shared_flag='${wl}-bM:SRE'
142745
 
          fi
142746
 
        fi
142747
 
      fi
142748
 
 
142749
 
      # It seems that -bexpall does not export symbols beginning with
142750
 
      # underscore (_), so it is better to generate a list of symbols to export.
142751
 
      always_export_symbols=yes
142752
 
      if test "$aix_use_runtimelinking" = yes; then
142753
 
        # Warning - without using the other runtime loading flags (-brtl),
142754
 
        # -berok will link without error, but may produce a broken library.
142755
 
        allow_undefined_flag='-berok'
142756
 
       # Determine the default libpath from the value encoded in an empty executable.
142757
 
       
142758
 
cat > conftest.$ac_ext <<EOF
142759
 
#line __oline__ "configure"
142760
 
#include "confdefs.h"
142761
 
int main() {
142762
 
; return 0; }
142763
 
EOF
142764
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
142765
 
  (eval $ac_link) 2>&5
142766
 
  ac_status=$?
142767
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
142768
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
142769
 
 
142770
 
lt_aix_libpath_sed='
142771
 
    /Import File Strings/,/^$/ {
142772
 
        /^0/ {
142773
 
            s/^0  *\(.*\)$/\1/
142774
 
            p
142775
 
        }
142776
 
    }'
142777
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
142778
 
# Check for a 64-bit object if we didn't find anything.
142779
 
if test -z "$aix_libpath"; then
142780
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
142781
 
fi
142782
 
  rm -rf conftest*
142783
 
else
142784
 
  echo "configure: failed program was:" >&5
142785
 
  cat conftest.$ac_ext >&6
142786
 
fi
142787
 
rm -f conftest*
142788
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
142789
 
 
142790
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
142791
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
142792
 
       else
142793
 
        if test "$host_cpu" = ia64; then
142794
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
142795
 
          allow_undefined_flag="-z nodefs"
142796
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
142797
 
        else
142798
 
         # Determine the default libpath from the value encoded in an empty executable.
142799
 
         
142800
 
cat > conftest.$ac_ext <<EOF
142801
 
#line __oline__ "configure"
142802
 
#include "confdefs.h"
142803
 
int main() {
142804
 
; return 0; }
142805
 
EOF
142806
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
142807
 
  (eval $ac_link) 2>&5
142808
 
  ac_status=$?
142809
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
142810
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
142811
 
 
142812
 
lt_aix_libpath_sed='
142813
 
    /Import File Strings/,/^$/ {
142814
 
        /^0/ {
142815
 
            s/^0  *\(.*\)$/\1/
142816
 
            p
142817
 
        }
142818
 
    }'
142819
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
142820
 
# Check for a 64-bit object if we didn't find anything.
142821
 
if test -z "$aix_libpath"; then
142822
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
142823
 
fi
142824
 
  rm -rf conftest*
142825
 
else
142826
 
  echo "configure: failed program was:" >&5
142827
 
  cat conftest.$ac_ext >&6
142828
 
fi
142829
 
rm -f conftest*
142830
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
142831
 
 
142832
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
142833
 
          # Warning - without using the other run time loading flags,
142834
 
          # -berok will link without error, but may produce a broken library.
142835
 
          no_undefined_flag=' ${wl}-bernotok'
142836
 
          allow_undefined_flag=' ${wl}-berok'
142837
 
          # Exported symbols can be pulled into shared objects from archives
142838
 
          whole_archive_flag_spec='$convenience'
142839
 
          archive_cmds_need_lc=yes
142840
 
          # This is similar to how AIX traditionally builds its shared libraries.
142841
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
142842
 
        fi
142843
 
      fi
142844
 
      ;;
142845
 
 
142846
 
    amigaos*)
142847
 
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
142848
 
      hardcode_libdir_flag_spec='-L$libdir'
142849
 
      hardcode_minus_L=yes
142850
 
      # see comment about different semantics on the GNU ld section
142851
 
      ld_shlibs=no
142852
 
      ;;
142853
 
 
142854
 
    bsdi[45]*)
142855
 
      export_dynamic_flag_spec=-rdynamic
142856
 
      ;;
142857
 
 
142858
 
    cygwin* | mingw* | pw32*)
142859
 
      # When not using gcc, we currently assume that we are using
142860
 
      # Microsoft Visual C++.
142861
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
142862
 
      # no search path for DLLs.
142863
 
      hardcode_libdir_flag_spec=' '
142864
 
      allow_undefined_flag=unsupported
142865
 
      # Tell ltmain to make .lib files, not .a files.
142866
 
      libext=lib
142867
 
      # Tell ltmain to make .dll files, not .so files.
142868
 
      shrext_cmds=".dll"
142869
 
      # FIXME: Setting linknames here is a bad hack.
142870
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
142871
 
      # The linker will automatically build a .lib file if we build a DLL.
142872
 
      old_archive_From_new_cmds='true'
142873
 
      # FIXME: Should let the user specify the lib program.
142874
 
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
142875
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
142876
 
      enable_shared_with_static_runtimes=yes
142877
 
      ;;
142878
 
 
142879
 
    darwin* | rhapsody*)
142880
 
      case $host_os in
142881
 
        rhapsody* | darwin1.[012])
142882
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
142883
 
         ;;
142884
 
       *) # Darwin 1.3 on
142885
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
142886
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
142887
 
         else
142888
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
142889
 
             10.[012])
142890
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
142891
 
               ;;
142892
 
             10.*)
142893
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
142894
 
               ;;
142895
 
           esac
142896
 
         fi
142897
 
         ;;
142898
 
      esac
142899
 
      archive_cmds_need_lc=no
142900
 
      hardcode_direct=no
142901
 
      hardcode_automatic=yes
142902
 
      hardcode_shlibpath_var=unsupported
142903
 
      whole_archive_flag_spec=''
142904
 
      link_all_deplibs=yes
142905
 
    if test "$GCC" = yes ; then
142906
 
        output_verbose_link_cmd='echo'
142907
 
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
142908
 
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
142909
 
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
142910
 
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
142911
 
    else
142912
 
      case $cc_basename in
142913
 
        xlc*)
142914
 
         output_verbose_link_cmd='echo'
142915
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
142916
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
142917
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
142918
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
142919
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
142920
 
          ;;
142921
 
       *)
142922
 
         ld_shlibs=no
142923
 
          ;;
142924
 
      esac
142925
 
    fi
142926
 
      ;;
142927
 
 
142928
 
    dgux*)
142929
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
142930
 
      hardcode_libdir_flag_spec='-L$libdir'
142931
 
      hardcode_shlibpath_var=no
142932
 
      ;;
142933
 
 
142934
 
    freebsd1*)
142935
 
      ld_shlibs=no
142936
 
      ;;
142937
 
 
142938
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
142939
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
142940
 
    # does not break anything, and helps significantly (at the cost of a little
142941
 
    # extra space).
142942
 
    freebsd2.2*)
142943
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
142944
 
      hardcode_libdir_flag_spec='-R$libdir'
142945
 
      hardcode_direct=yes
142946
 
      hardcode_shlibpath_var=no
142947
 
      ;;
142948
 
 
142949
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
142950
 
    freebsd2*)
142951
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
142952
 
      hardcode_direct=yes
142953
 
      hardcode_minus_L=yes
142954
 
      hardcode_shlibpath_var=no
142955
 
      ;;
142956
 
 
142957
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
142958
 
    freebsd* | dragonfly*)
142959
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
142960
 
      hardcode_libdir_flag_spec='-R$libdir'
142961
 
      hardcode_direct=yes
142962
 
      hardcode_shlibpath_var=no
142963
 
      ;;
142964
 
 
142965
 
    hpux9*)
142966
 
      if test "$GCC" = yes; then
142967
 
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
142968
 
      else
142969
 
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
142970
 
      fi
142971
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
142972
 
      hardcode_libdir_separator=:
142973
 
      hardcode_direct=yes
142974
 
 
142975
 
      # hardcode_minus_L: Not really in the search PATH,
142976
 
      # but as the default location of the library.
142977
 
      hardcode_minus_L=yes
142978
 
      export_dynamic_flag_spec='${wl}-E'
142979
 
      ;;
142980
 
 
142981
 
    hpux10*)
142982
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
142983
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
142984
 
      else
142985
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
142986
 
      fi
142987
 
      if test "$with_gnu_ld" = no; then
142988
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
142989
 
        hardcode_libdir_separator=:
142990
 
 
142991
 
        hardcode_direct=yes
142992
 
        export_dynamic_flag_spec='${wl}-E'
142993
 
 
142994
 
        # hardcode_minus_L: Not really in the search PATH,
142995
 
        # but as the default location of the library.
142996
 
        hardcode_minus_L=yes
142997
 
      fi
142998
 
      ;;
142999
 
 
143000
 
    hpux11*)
143001
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
143002
 
        case $host_cpu in
143003
 
        hppa*64*)
143004
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
143005
 
          ;;
143006
 
        ia64*)
143007
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
143008
 
          ;;
143009
 
        *)
143010
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
143011
 
          ;;
143012
 
        esac
143013
 
      else
143014
 
        case $host_cpu in
143015
 
        hppa*64*)
143016
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
143017
 
          ;;
143018
 
        ia64*)
143019
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
143020
 
          ;;
143021
 
        *)
143022
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
143023
 
          ;;
143024
 
        esac
143025
 
      fi
143026
 
      if test "$with_gnu_ld" = no; then
143027
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
143028
 
        hardcode_libdir_separator=:
143029
 
 
143030
 
        case $host_cpu in
143031
 
        hppa*64*|ia64*)
143032
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
143033
 
          hardcode_direct=no
143034
 
          hardcode_shlibpath_var=no
143035
 
          ;;
143036
 
        *)
143037
 
          hardcode_direct=yes
143038
 
          export_dynamic_flag_spec='${wl}-E'
143039
 
 
143040
 
          # hardcode_minus_L: Not really in the search PATH,
143041
 
          # but as the default location of the library.
143042
 
          hardcode_minus_L=yes
143043
 
          ;;
143044
 
        esac
143045
 
      fi
143046
 
      ;;
143047
 
 
143048
 
    irix5* | irix6* | nonstopux*)
143049
 
      if test "$GCC" = yes; then
143050
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
143051
 
      else
143052
 
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
143053
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
143054
 
      fi
143055
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
143056
 
      hardcode_libdir_separator=:
143057
 
      link_all_deplibs=yes
143058
 
      ;;
143059
 
 
143060
 
    netbsd*)
143061
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
143062
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
143063
 
      else
143064
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
143065
 
      fi
143066
 
      hardcode_libdir_flag_spec='-R$libdir'
143067
 
      hardcode_direct=yes
143068
 
      hardcode_shlibpath_var=no
143069
 
      ;;
143070
 
 
143071
 
    newsos6)
143072
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
143073
 
      hardcode_direct=yes
143074
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
143075
 
      hardcode_libdir_separator=:
143076
 
      hardcode_shlibpath_var=no
143077
 
      ;;
143078
 
 
143079
 
    openbsd*)
143080
 
      if test -f /usr/libexec/ld.so; then
143081
 
        hardcode_direct=yes
143082
 
        hardcode_shlibpath_var=no
143083
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
143084
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
143085
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
143086
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
143087
 
          export_dynamic_flag_spec='${wl}-E'
143088
 
        else
143089
 
          case $host_os in
143090
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
143091
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
143092
 
             hardcode_libdir_flag_spec='-R$libdir'
143093
 
             ;;
143094
 
           *)
143095
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
143096
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
143097
 
             ;;
143098
 
          esac
143099
 
        fi
143100
 
      else
143101
 
        ld_shlibs=no
143102
 
      fi
143103
 
      ;;
143104
 
 
143105
 
    os2*)
143106
 
      hardcode_libdir_flag_spec='-L$libdir'
143107
 
      hardcode_minus_L=yes
143108
 
      allow_undefined_flag=unsupported
143109
 
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
143110
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
143111
 
      ;;
143112
 
 
143113
 
    osf3*)
143114
 
      if test "$GCC" = yes; then
143115
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
143116
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
143117
 
      else
143118
 
        allow_undefined_flag=' -expect_unresolved \*'
143119
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
143120
 
      fi
143121
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
143122
 
      hardcode_libdir_separator=:
143123
 
      ;;
143124
 
 
143125
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
143126
 
      if test "$GCC" = yes; then
143127
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
143128
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
143129
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
143130
 
      else
143131
 
        allow_undefined_flag=' -expect_unresolved \*'
143132
 
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
143133
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
143134
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
143135
 
 
143136
 
        # Both c and cxx compiler support -rpath directly
143137
 
        hardcode_libdir_flag_spec='-rpath $libdir'
143138
 
      fi
143139
 
      hardcode_libdir_separator=:
143140
 
      ;;
143141
 
 
143142
 
    solaris*)
143143
 
      no_undefined_flag=' -z text'
143144
 
      if test "$GCC" = yes; then
143145
 
        wlarc='${wl}'
143146
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
143147
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
143148
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
143149
 
      else
143150
 
        wlarc=''
143151
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
143152
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
143153
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
143154
 
      fi
143155
 
      hardcode_libdir_flag_spec='-R$libdir'
143156
 
      hardcode_shlibpath_var=no
143157
 
      case $host_os in
143158
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
143159
 
      *)
143160
 
        # The compiler driver will combine and reorder linker options,
143161
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
143162
 
        # but is careful enough not to reorder.
143163
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
143164
 
        if test "$GCC" = yes; then
143165
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
143166
 
        else
143167
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
143168
 
        fi
143169
 
        ;;
143170
 
      esac
143171
 
      link_all_deplibs=yes
143172
 
      ;;
143173
 
 
143174
 
    sunos4*)
143175
 
      if test "x$host_vendor" = xsequent; then
143176
 
        # Use $CC to link under sequent, because it throws in some extra .o
143177
 
        # files that make .init and .fini sections work.
143178
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
143179
 
      else
143180
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
143181
 
      fi
143182
 
      hardcode_libdir_flag_spec='-L$libdir'
143183
 
      hardcode_direct=yes
143184
 
      hardcode_minus_L=yes
143185
 
      hardcode_shlibpath_var=no
143186
 
      ;;
143187
 
 
143188
 
    sysv4)
143189
 
      case $host_vendor in
143190
 
        sni)
143191
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
143192
 
          hardcode_direct=yes # is this really true???
143193
 
        ;;
143194
 
        siemens)
143195
 
          ## LD is ld it makes a PLAMLIB
143196
 
          ## CC just makes a GrossModule.
143197
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
143198
 
          reload_cmds='$CC -r -o $output$reload_objs'
143199
 
          hardcode_direct=no
143200
 
        ;;
143201
 
        motorola)
143202
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
143203
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
143204
 
        ;;
143205
 
      esac
143206
 
      runpath_var='LD_RUN_PATH'
143207
 
      hardcode_shlibpath_var=no
143208
 
      ;;
143209
 
 
143210
 
    sysv4.3*)
143211
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
143212
 
      hardcode_shlibpath_var=no
143213
 
      export_dynamic_flag_spec='-Bexport'
143214
 
      ;;
143215
 
 
143216
 
    sysv4*MP*)
143217
 
      if test -d /usr/nec; then
143218
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
143219
 
        hardcode_shlibpath_var=no
143220
 
        runpath_var=LD_RUN_PATH
143221
 
        hardcode_runpath_var=yes
143222
 
        ld_shlibs=yes
143223
 
      fi
143224
 
      ;;
143225
 
 
143226
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
143227
 
      no_undefined_flag='${wl}-z,text'
143228
 
      archive_cmds_need_lc=no
143229
 
      hardcode_shlibpath_var=no
143230
 
      runpath_var='LD_RUN_PATH'
143231
 
 
143232
 
      if test "$GCC" = yes; then
143233
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
143234
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
143235
 
      else
143236
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
143237
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
143238
 
      fi
143239
 
      ;;
143240
 
 
143241
 
    sysv5* | sco3.2v5* | sco5v6*)
143242
 
      # Note: We can NOT use -z defs as we might desire, because we do not
143243
 
      # link with -lc, and that would cause any symbols used from libc to
143244
 
      # always be unresolved, which means just about no library would
143245
 
      # ever link correctly.  If we're not using GNU ld we use -z text
143246
 
      # though, which does catch some bad symbols but isn't as heavy-handed
143247
 
      # as -z defs.
143248
 
      no_undefined_flag='${wl}-z,text'
143249
 
      allow_undefined_flag='${wl}-z,nodefs'
143250
 
      archive_cmds_need_lc=no
143251
 
      hardcode_shlibpath_var=no
143252
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
143253
 
      hardcode_libdir_separator=':'
143254
 
      link_all_deplibs=yes
143255
 
      export_dynamic_flag_spec='${wl}-Bexport'
143256
 
      runpath_var='LD_RUN_PATH'
143257
 
 
143258
 
      if test "$GCC" = yes; then
143259
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
143260
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
143261
 
      else
143262
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
143263
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
143264
 
      fi
143265
 
      ;;
143266
 
 
143267
 
    uts4*)
143268
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
143269
 
      hardcode_libdir_flag_spec='-L$libdir'
143270
 
      hardcode_shlibpath_var=no
143271
 
      ;;
143272
 
 
143273
 
    *)
143274
 
      ld_shlibs=no
143275
 
      ;;
143276
 
    esac
143277
 
  fi
143278
 
 
143279
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
143280
 
$as_echo "$ld_shlibs" >&6; }
143281
 
test "$ld_shlibs" = no && can_build_shared=no
143282
 
 
143283
 
#
143284
 
# Do we need to explicitly link libc?
143285
 
#
143286
 
case "x$archive_cmds_need_lc" in
143287
 
x|xyes)
143288
 
  # Assume -lc should be added
143289
 
  archive_cmds_need_lc=yes
143290
 
 
143291
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
143292
 
    case $archive_cmds in
143293
 
    *'~'*)
143294
 
      # FIXME: we may have to deal with multi-command sequences.
143295
 
      ;;
143296
 
    '$CC '*)
143297
 
      # Test whether the compiler implicitly links with -lc since on some
143298
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
143299
 
      # to ld, don't add -lc before -lgcc.
143300
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
143301
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
143302
 
      $rm conftest*
143303
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
143304
 
 
143305
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
143306
 
  (eval $ac_compile) 2>&5
143307
 
  ac_status=$?
143308
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
143309
 
  (exit $ac_status); } 2>conftest.err; then
143310
 
        soname=conftest
143311
 
        lib=conftest
143312
 
        libobjs=conftest.$ac_objext
143313
 
        deplibs=
143314
 
        wl=$lt_prog_compiler_wl
143315
 
        pic_flag=$lt_prog_compiler_pic
143316
 
        compiler_flags=-v
143317
 
        linker_flags=-v
143318
 
        verstring=
143319
 
        output_objdir=.
143320
 
        libname=conftest
143321
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
143322
 
        allow_undefined_flag=
143323
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
143324
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
143325
 
  ac_status=$?
143326
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
143327
 
  (exit $ac_status); }
143328
 
        then
143329
 
          archive_cmds_need_lc=no
143330
 
        else
143331
 
          archive_cmds_need_lc=yes
143332
 
        fi
143333
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
143334
 
      else
143335
 
        cat conftest.err 1>&5
143336
 
      fi
143337
 
      $rm conftest*
143338
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
143339
 
$as_echo "$archive_cmds_need_lc" >&6; }
143340
 
      ;;
143341
 
    esac
143342
 
  fi
143343
 
  ;;
143344
 
esac
143345
 
 
143346
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
143347
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
143348
 
library_names_spec=
143349
 
libname_spec='lib$name'
143350
 
soname_spec=
143351
 
shrext_cmds=".so"
143352
 
postinstall_cmds=
143353
 
postuninstall_cmds=
143354
 
finish_cmds=
143355
 
finish_eval=
143356
 
shlibpath_var=
143357
 
shlibpath_overrides_runpath=unknown
143358
 
version_type=none
143359
 
dynamic_linker="$host_os ld.so"
143360
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
143361
 
 
143362
 
if test "$GCC" = yes; then
143363
 
  case $host_os in
143364
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
143365
 
    *) lt_awk_arg="/^libraries:/" ;;
143366
 
  esac
143367
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
143368
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
143369
 
    # if the path contains ";" then we assume it to be the separator
143370
 
    # otherwise default to the standard path separator (i.e. ":") - it is
143371
 
    # assumed that no part of a normal pathname contains ";" but that should
143372
 
    # okay in the real world where ";" in dirpaths is itself problematic.
143373
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
143374
 
  else
143375
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
143376
 
  fi
143377
 
  # Ok, now we have the path, separated by spaces, we can step through it
143378
 
  # and add multilib dir if necessary.
143379
 
  lt_tmp_lt_search_path_spec=
143380
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
143381
 
  for lt_sys_path in $lt_search_path_spec; do
143382
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
143383
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
143384
 
    else
143385
 
      test -d "$lt_sys_path" && \
143386
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
143387
 
    fi
143388
 
  done
143389
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
143390
 
BEGIN {RS=" "; FS="/|\n";} {
143391
 
  lt_foo="";
143392
 
  lt_count=0;
143393
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
143394
 
    if ($lt_i != "" && $lt_i != ".") {
143395
 
      if ($lt_i == "..") {
143396
 
        lt_count++;
143397
 
      } else {
143398
 
        if (lt_count == 0) {
143399
 
          lt_foo="/" $lt_i lt_foo;
143400
 
        } else {
143401
 
          lt_count--;
143402
 
        }
143403
 
      }
143404
 
    }
143405
 
  }
143406
 
  if (lt_foo != "") { lt_freq[lt_foo]++; }
143407
 
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
143408
 
}'`
143409
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
143410
 
else
143411
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
143412
 
fi
143413
 
need_lib_prefix=unknown
143414
 
hardcode_into_libs=no
143415
 
 
143416
 
# when you set need_version to no, make sure it does not cause -set_version
143417
 
# flags to be left without arguments
143418
 
need_version=unknown
143419
 
 
143420
 
case $host_os in
143421
 
aix3*)
143422
 
  version_type=linux
143423
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
143424
 
  shlibpath_var=LIBPATH
143425
 
 
143426
 
  # AIX 3 has no versioning support, so we append a major version to the name.
143427
 
  soname_spec='${libname}${release}${shared_ext}$major'
143428
 
  ;;
143429
 
 
143430
 
aix[4-9]*)
143431
 
  version_type=linux
143432
 
  need_lib_prefix=no
143433
 
  need_version=no
143434
 
  hardcode_into_libs=yes
143435
 
  if test "$host_cpu" = ia64; then
143436
 
    # AIX 5 supports IA64
143437
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
143438
 
    shlibpath_var=LD_LIBRARY_PATH
143439
 
  else
143440
 
    # With GCC up to 2.95.x, collect2 would create an import file
143441
 
    # for dependence libraries.  The import file would start with
143442
 
    # the line `#! .'.  This would cause the generated library to
143443
 
    # depend on `.', always an invalid library.  This was fixed in
143444
 
    # development snapshots of GCC prior to 3.0.
143445
 
    case $host_os in
143446
 
      aix4 | aix4.[01] | aix4.[01].*)
143447
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
143448
 
           echo ' yes '
143449
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
143450
 
        :
143451
 
      else
143452
 
        can_build_shared=no
143453
 
      fi
143454
 
      ;;
143455
 
    esac
143456
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
143457
 
    # soname into executable. Probably we can add versioning support to
143458
 
    # collect2, so additional links can be useful in future.
143459
 
    if test "$aix_use_runtimelinking" = yes; then
143460
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
143461
 
      # instead of lib<name>.a to let people know that these are not
143462
 
      # typical AIX shared libraries.
143463
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143464
 
    else
143465
 
      # We preserve .a as extension for shared libraries through AIX4.2
143466
 
      # and later when we are not doing run time linking.
143467
 
      library_names_spec='${libname}${release}.a $libname.a'
143468
 
      soname_spec='${libname}${release}${shared_ext}$major'
143469
 
    fi
143470
 
    shlibpath_var=LIBPATH
143471
 
  fi
143472
 
  ;;
143473
 
 
143474
 
amigaos*)
143475
 
  library_names_spec='$libname.ixlibrary $libname.a'
143476
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
143477
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
143478
 
  ;;
143479
 
 
143480
 
beos*)
143481
 
  library_names_spec='${libname}${shared_ext}'
143482
 
  dynamic_linker="$host_os ld.so"
143483
 
  shlibpath_var=LIBRARY_PATH
143484
 
  ;;
143485
 
 
143486
 
bsdi[45]*)
143487
 
  version_type=linux
143488
 
  need_version=no
143489
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143490
 
  soname_spec='${libname}${release}${shared_ext}$major'
143491
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
143492
 
  shlibpath_var=LD_LIBRARY_PATH
143493
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
143494
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
143495
 
  # the default ld.so.conf also contains /usr/contrib/lib and
143496
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
143497
 
  # libtool to hard-code these into programs
143498
 
  ;;
143499
 
 
143500
 
cygwin* | mingw* | pw32*)
143501
 
  version_type=windows
143502
 
  shrext_cmds=".dll"
143503
 
  need_version=no
143504
 
  need_lib_prefix=no
143505
 
 
143506
 
  case $GCC,$host_os in
143507
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
143508
 
    library_names_spec='$libname.dll.a'
143509
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
143510
 
    postinstall_cmds='base_file=`basename \${file}`~
143511
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
143512
 
      dldir=$destdir/`dirname \$dlpath`~
143513
 
      test -d \$dldir || mkdir -p \$dldir~
143514
 
      $install_prog $dir/$dlname \$dldir/$dlname~
143515
 
      chmod a+x \$dldir/$dlname'
143516
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
143517
 
      dlpath=$dir/\$dldll~
143518
 
       $rm \$dlpath'
143519
 
    shlibpath_overrides_runpath=yes
143520
 
 
143521
 
    case $host_os in
143522
 
    cygwin*)
143523
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
143524
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
143525
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
143526
 
      ;;
143527
 
    mingw*)
143528
 
      # MinGW DLLs use traditional 'lib' prefix
143529
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
143530
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
143531
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
143532
 
        # It is most probably a Windows format PATH printed by
143533
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
143534
 
        # path with ; separators, and with drive letters. We can handle the
143535
 
        # drive letters (cygwin fileutils understands them), so leave them,
143536
 
        # especially as we might pass files found there to a mingw objdump,
143537
 
        # which wouldn't understand a cygwinified path. Ahh.
143538
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
143539
 
      else
143540
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
143541
 
      fi
143542
 
      ;;
143543
 
    pw32*)
143544
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
143545
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
143546
 
      ;;
143547
 
    esac
143548
 
    ;;
143549
 
 
143550
 
  *)
143551
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
143552
 
    ;;
143553
 
  esac
143554
 
  dynamic_linker='Win32 ld.exe'
143555
 
  # FIXME: first we should search . and the directory the executable is in
143556
 
  shlibpath_var=PATH
143557
 
  ;;
143558
 
 
143559
 
darwin* | rhapsody*)
143560
 
  dynamic_linker="$host_os dyld"
143561
 
  version_type=darwin
143562
 
  need_lib_prefix=no
143563
 
  need_version=no
143564
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
143565
 
  soname_spec='${libname}${release}${major}$shared_ext'
143566
 
  shlibpath_overrides_runpath=yes
143567
 
  shlibpath_var=DYLD_LIBRARY_PATH
143568
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
143569
 
  
143570
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
143571
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
143572
 
  ;;
143573
 
 
143574
 
dgux*)
143575
 
  version_type=linux
143576
 
  need_lib_prefix=no
143577
 
  need_version=no
143578
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
143579
 
  soname_spec='${libname}${release}${shared_ext}$major'
143580
 
  shlibpath_var=LD_LIBRARY_PATH
143581
 
  ;;
143582
 
 
143583
 
freebsd1*)
143584
 
  dynamic_linker=no
143585
 
  ;;
143586
 
 
143587
 
freebsd* | dragonfly*)
143588
 
  # DragonFly does not have aout.  When/if they implement a new
143589
 
  # versioning mechanism, adjust this.
143590
 
  if test -x /usr/bin/objformat; then
143591
 
    objformat=`/usr/bin/objformat`
143592
 
  else
143593
 
    case $host_os in
143594
 
    freebsd[123]*) objformat=aout ;;
143595
 
    *) objformat=elf ;;
143596
 
    esac
143597
 
  fi
143598
 
  version_type=freebsd-$objformat
143599
 
  case $version_type in
143600
 
    freebsd-elf*)
143601
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
143602
 
      need_version=no
143603
 
      need_lib_prefix=no
143604
 
      ;;
143605
 
    freebsd-*)
143606
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
143607
 
      need_version=yes
143608
 
      ;;
143609
 
  esac
143610
 
  shlibpath_var=LD_LIBRARY_PATH
143611
 
  case $host_os in
143612
 
  freebsd2*)
143613
 
    shlibpath_overrides_runpath=yes
143614
 
    ;;
143615
 
  freebsd3.[01]* | freebsdelf3.[01]*)
143616
 
    shlibpath_overrides_runpath=yes
143617
 
    hardcode_into_libs=yes
143618
 
    ;;
143619
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
143620
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
143621
 
    shlibpath_overrides_runpath=no
143622
 
    hardcode_into_libs=yes
143623
 
    ;;
143624
 
  *) # from 4.6 on, and DragonFly
143625
 
    shlibpath_overrides_runpath=yes
143626
 
    hardcode_into_libs=yes
143627
 
    ;;
143628
 
  esac
143629
 
  ;;
143630
 
 
143631
 
gnu*)
143632
 
  version_type=linux
143633
 
  need_lib_prefix=no
143634
 
  need_version=no
143635
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
143636
 
  soname_spec='${libname}${release}${shared_ext}$major'
143637
 
  shlibpath_var=LD_LIBRARY_PATH
143638
 
  hardcode_into_libs=yes
143639
 
  ;;
143640
 
 
143641
 
hpux9* | hpux10* | hpux11*)
143642
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
143643
 
  # link against other versions.
143644
 
  version_type=sunos
143645
 
  need_lib_prefix=no
143646
 
  need_version=no
143647
 
  case $host_cpu in
143648
 
  ia64*)
143649
 
    shrext_cmds='.so'
143650
 
    hardcode_into_libs=yes
143651
 
    dynamic_linker="$host_os dld.so"
143652
 
    shlibpath_var=LD_LIBRARY_PATH
143653
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
143654
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143655
 
    soname_spec='${libname}${release}${shared_ext}$major'
143656
 
    if test "X$HPUX_IA64_MODE" = X32; then
143657
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
143658
 
    else
143659
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
143660
 
    fi
143661
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
143662
 
    ;;
143663
 
   hppa*64*)
143664
 
     shrext_cmds='.sl'
143665
 
     hardcode_into_libs=yes
143666
 
     dynamic_linker="$host_os dld.sl"
143667
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
143668
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
143669
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143670
 
     soname_spec='${libname}${release}${shared_ext}$major'
143671
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
143672
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
143673
 
     ;;
143674
 
   *)
143675
 
    shrext_cmds='.sl'
143676
 
    dynamic_linker="$host_os dld.sl"
143677
 
    shlibpath_var=SHLIB_PATH
143678
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
143679
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143680
 
    soname_spec='${libname}${release}${shared_ext}$major'
143681
 
    ;;
143682
 
  esac
143683
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
143684
 
  postinstall_cmds='chmod 555 $lib'
143685
 
  ;;
143686
 
 
143687
 
interix[3-9]*)
143688
 
  version_type=linux
143689
 
  need_lib_prefix=no
143690
 
  need_version=no
143691
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
143692
 
  soname_spec='${libname}${release}${shared_ext}$major'
143693
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
143694
 
  shlibpath_var=LD_LIBRARY_PATH
143695
 
  shlibpath_overrides_runpath=no
143696
 
  hardcode_into_libs=yes
143697
 
  ;;
143698
 
 
143699
 
irix5* | irix6* | nonstopux*)
143700
 
  case $host_os in
143701
 
    nonstopux*) version_type=nonstopux ;;
143702
 
    *)
143703
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
143704
 
                version_type=linux
143705
 
        else
143706
 
                version_type=irix
143707
 
        fi ;;
143708
 
  esac
143709
 
  need_lib_prefix=no
143710
 
  need_version=no
143711
 
  soname_spec='${libname}${release}${shared_ext}$major'
143712
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
143713
 
  case $host_os in
143714
 
  irix5* | nonstopux*)
143715
 
    libsuff= shlibsuff=
143716
 
    ;;
143717
 
  *)
143718
 
    case $LD in # libtool.m4 will add one of these switches to LD
143719
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
143720
 
      libsuff= shlibsuff= libmagic=32-bit;;
143721
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
143722
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
143723
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
143724
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
143725
 
    *) libsuff= shlibsuff= libmagic=never-match;;
143726
 
    esac
143727
 
    ;;
143728
 
  esac
143729
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
143730
 
  shlibpath_overrides_runpath=no
143731
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
143732
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
143733
 
  hardcode_into_libs=yes
143734
 
  ;;
143735
 
 
143736
 
# No shared lib support for Linux oldld, aout, or coff.
143737
 
linux*oldld* | linux*aout* | linux*coff*)
143738
 
  dynamic_linker=no
143739
 
  ;;
143740
 
 
143741
 
# This must be Linux ELF.
143742
 
linux* | k*bsd*-gnu)
143743
 
  version_type=linux
143744
 
  need_lib_prefix=no
143745
 
  need_version=no
143746
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143747
 
  soname_spec='${libname}${release}${shared_ext}$major'
143748
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
143749
 
  shlibpath_var=LD_LIBRARY_PATH
143750
 
  shlibpath_overrides_runpath=no
143751
 
  # This implies no fast_install, which is unacceptable.
143752
 
  # Some rework will be needed to allow for fast_install
143753
 
  # before this can be enabled.
143754
 
  hardcode_into_libs=yes
143755
 
 
143756
 
  # Append ld.so.conf contents to the search path
143757
 
  if test -f /etc/ld.so.conf; then
143758
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
143759
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
143760
 
  fi
143761
 
 
143762
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
143763
 
  # powerpc, because MkLinux only supported shared libraries with the
143764
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
143765
 
  # most powerpc-linux boxes support dynamic linking these days and
143766
 
  # people can always --disable-shared, the test was removed, and we
143767
 
  # assume the GNU/Linux dynamic linker is in use.
143768
 
  dynamic_linker='GNU/Linux ld.so'
143769
 
  ;;
143770
 
 
143771
 
netbsd*)
143772
 
  version_type=sunos
143773
 
  need_lib_prefix=no
143774
 
  need_version=no
143775
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
143776
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
143777
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
143778
 
    dynamic_linker='NetBSD (a.out) ld.so'
143779
 
  else
143780
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
143781
 
    soname_spec='${libname}${release}${shared_ext}$major'
143782
 
    dynamic_linker='NetBSD ld.elf_so'
143783
 
  fi
143784
 
  shlibpath_var=LD_LIBRARY_PATH
143785
 
  shlibpath_overrides_runpath=yes
143786
 
  hardcode_into_libs=yes
143787
 
  ;;
143788
 
 
143789
 
newsos6)
143790
 
  version_type=linux
143791
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143792
 
  shlibpath_var=LD_LIBRARY_PATH
143793
 
  shlibpath_overrides_runpath=yes
143794
 
  ;;
143795
 
 
143796
 
nto-qnx*)
143797
 
  version_type=linux
143798
 
  need_lib_prefix=no
143799
 
  need_version=no
143800
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143801
 
  soname_spec='${libname}${release}${shared_ext}$major'
143802
 
  shlibpath_var=LD_LIBRARY_PATH
143803
 
  shlibpath_overrides_runpath=yes
143804
 
  ;;
143805
 
 
143806
 
openbsd*)
143807
 
  version_type=sunos
143808
 
  sys_lib_dlsearch_path_spec="/usr/lib"
143809
 
  need_lib_prefix=no
143810
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
143811
 
  case $host_os in
143812
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
143813
 
    *)                         need_version=no  ;;
143814
 
  esac
143815
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
143816
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
143817
 
  shlibpath_var=LD_LIBRARY_PATH
143818
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
143819
 
    case $host_os in
143820
 
      openbsd2.[89] | openbsd2.[89].*)
143821
 
        shlibpath_overrides_runpath=no
143822
 
        ;;
143823
 
      *)
143824
 
        shlibpath_overrides_runpath=yes
143825
 
        ;;
143826
 
      esac
143827
 
  else
143828
 
    shlibpath_overrides_runpath=yes
143829
 
  fi
143830
 
  ;;
143831
 
 
143832
 
os2*)
143833
 
  libname_spec='$name'
143834
 
  shrext_cmds=".dll"
143835
 
  need_lib_prefix=no
143836
 
  library_names_spec='$libname${shared_ext} $libname.a'
143837
 
  dynamic_linker='OS/2 ld.exe'
143838
 
  shlibpath_var=LIBPATH
143839
 
  ;;
143840
 
 
143841
 
osf3* | osf4* | osf5*)
143842
 
  version_type=osf
143843
 
  need_lib_prefix=no
143844
 
  need_version=no
143845
 
  soname_spec='${libname}${release}${shared_ext}$major'
143846
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143847
 
  shlibpath_var=LD_LIBRARY_PATH
143848
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
143849
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
143850
 
  ;;
143851
 
 
143852
 
rdos*)
143853
 
  dynamic_linker=no
143854
 
  ;;
143855
 
 
143856
 
solaris*)
143857
 
  version_type=linux
143858
 
  need_lib_prefix=no
143859
 
  need_version=no
143860
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143861
 
  soname_spec='${libname}${release}${shared_ext}$major'
143862
 
  shlibpath_var=LD_LIBRARY_PATH
143863
 
  shlibpath_overrides_runpath=yes
143864
 
  hardcode_into_libs=yes
143865
 
  # ldd complains unless libraries are executable
143866
 
  postinstall_cmds='chmod +x $lib'
143867
 
  ;;
143868
 
 
143869
 
sunos4*)
143870
 
  version_type=sunos
143871
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
143872
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
143873
 
  shlibpath_var=LD_LIBRARY_PATH
143874
 
  shlibpath_overrides_runpath=yes
143875
 
  if test "$with_gnu_ld" = yes; then
143876
 
    need_lib_prefix=no
143877
 
  fi
143878
 
  need_version=yes
143879
 
  ;;
143880
 
 
143881
 
sysv4 | sysv4.3*)
143882
 
  version_type=linux
143883
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143884
 
  soname_spec='${libname}${release}${shared_ext}$major'
143885
 
  shlibpath_var=LD_LIBRARY_PATH
143886
 
  case $host_vendor in
143887
 
    sni)
143888
 
      shlibpath_overrides_runpath=no
143889
 
      need_lib_prefix=no
143890
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
143891
 
      runpath_var=LD_RUN_PATH
143892
 
      ;;
143893
 
    siemens)
143894
 
      need_lib_prefix=no
143895
 
      ;;
143896
 
    motorola)
143897
 
      need_lib_prefix=no
143898
 
      need_version=no
143899
 
      shlibpath_overrides_runpath=no
143900
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
143901
 
      ;;
143902
 
  esac
143903
 
  ;;
143904
 
 
143905
 
sysv4*MP*)
143906
 
  if test -d /usr/nec ;then
143907
 
    version_type=linux
143908
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
143909
 
    soname_spec='$libname${shared_ext}.$major'
143910
 
    shlibpath_var=LD_LIBRARY_PATH
143911
 
  fi
143912
 
  ;;
143913
 
 
143914
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
143915
 
  version_type=freebsd-elf
143916
 
  need_lib_prefix=no
143917
 
  need_version=no
143918
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
143919
 
  soname_spec='${libname}${release}${shared_ext}$major'
143920
 
  shlibpath_var=LD_LIBRARY_PATH
143921
 
  hardcode_into_libs=yes
143922
 
  if test "$with_gnu_ld" = yes; then
143923
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
143924
 
    shlibpath_overrides_runpath=no
143925
 
  else
143926
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
143927
 
    shlibpath_overrides_runpath=yes
143928
 
    case $host_os in
143929
 
      sco3.2v5*)
143930
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
143931
 
        ;;
143932
 
    esac
143933
 
  fi
143934
 
  sys_lib_dlsearch_path_spec='/usr/lib'
143935
 
  ;;
143936
 
 
143937
 
uts4*)
143938
 
  version_type=linux
143939
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
143940
 
  soname_spec='${libname}${release}${shared_ext}$major'
143941
 
  shlibpath_var=LD_LIBRARY_PATH
143942
 
  ;;
143943
 
 
143944
 
*)
143945
 
  dynamic_linker=no
143946
 
  ;;
143947
 
esac
143948
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
143949
 
$as_echo "$dynamic_linker" >&6; }
143950
 
test "$dynamic_linker" = no && can_build_shared=no
143951
 
 
143952
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
143953
 
  $as_echo_n "(cached) " >&6
143954
 
else
143955
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
143956
 
fi
143957
 
 
143958
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
143959
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
143960
 
  $as_echo_n "(cached) " >&6
143961
 
else
143962
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
143963
 
fi
143964
 
 
143965
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
143966
 
 
143967
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
143968
 
if test "$GCC" = yes; then
143969
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
143970
 
fi
143971
 
 
143972
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
143973
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
143974
 
hardcode_action=
143975
 
if test -n "$hardcode_libdir_flag_spec" || \
143976
 
   test -n "$runpath_var" || \
143977
 
   test "X$hardcode_automatic" = "Xyes" ; then
143978
 
 
143979
 
  # We can hardcode non-existant directories.
143980
 
  if test "$hardcode_direct" != no &&
143981
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
143982
 
     # have to relink, otherwise we might link with an installed library
143983
 
     # when we should be linking with a yet-to-be-installed one
143984
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
143985
 
     test "$hardcode_minus_L" != no; then
143986
 
    # Linking always hardcodes the temporary library directory.
143987
 
    hardcode_action=relink
143988
 
  else
143989
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
143990
 
    hardcode_action=immediate
143991
 
  fi
143992
 
else
143993
 
  # We cannot hardcode anything, or else we can only hardcode existing
143994
 
  # directories.
143995
 
  hardcode_action=unsupported
143996
 
fi
143997
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
143998
 
$as_echo "$hardcode_action" >&6; }
143999
 
 
144000
 
if test "$hardcode_action" = relink; then
144001
 
  # Fast installation is not supported
144002
 
  enable_fast_install=no
144003
 
elif test "$shlibpath_overrides_runpath" = yes ||
144004
 
     test "$enable_shared" = no; then
144005
 
  # Fast installation is not necessary
144006
 
  enable_fast_install=needless
144007
 
fi
144008
 
 
144009
 
striplib=
144010
 
old_striplib=
144011
 
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
144012
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
144013
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
144014
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
144015
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
144016
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
144017
 
$as_echo "yes" >&6; }
144018
 
else
144019
 
# FIXME - insert some real tests, host_os isn't really good enough
144020
 
  case $host_os in
144021
 
   darwin*)
144022
 
       if test -n "$STRIP" ; then
144023
 
         striplib="$STRIP -x"
144024
 
         old_striplib="$STRIP -S"
144025
 
         { $as_echo "$as_me:$LINENO: result: yes" >&5
144026
 
$as_echo "yes" >&6; }
144027
 
       else
144028
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
144029
 
$as_echo "no" >&6; }
144030
 
fi
144031
 
       ;;
144032
 
   *)
144033
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
144034
 
$as_echo "no" >&6; }
144035
 
    ;;
144036
 
  esac
144037
 
fi
144038
 
 
144039
 
if test "x$enable_dlopen" != xyes; then
144040
 
  enable_dlopen=unknown
144041
 
  enable_dlopen_self=unknown
144042
 
  enable_dlopen_self_static=unknown
144043
 
else
144044
 
  lt_cv_dlopen=no
144045
 
  lt_cv_dlopen_libs=
144046
 
 
144047
 
  case $host_os in
144048
 
  beos*)
144049
 
    lt_cv_dlopen="load_add_on"
144050
 
    lt_cv_dlopen_libs=
144051
 
    lt_cv_dlopen_self=yes
144052
 
    ;;
144053
 
 
144054
 
  mingw* | pw32*)
144055
 
    lt_cv_dlopen="LoadLibrary"
144056
 
    lt_cv_dlopen_libs=
144057
 
   ;;
144058
 
 
144059
 
  cygwin*)
144060
 
    lt_cv_dlopen="dlopen"
144061
 
    lt_cv_dlopen_libs=
144062
 
   ;;
144063
 
 
144064
 
  darwin*)
144065
 
  # if libdl is installed we need to link against it
144066
 
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
144067
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
144068
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
144069
 
  $as_echo_n "(cached) " >&6
144070
 
else
144071
 
  ac_check_lib_save_LIBS=$LIBS
144072
 
LIBS="-ldl  $LIBS"
144073
 
cat >conftest.$ac_ext <<_ACEOF
144074
 
/* confdefs.h.  */
144075
 
_ACEOF
144076
 
cat confdefs.h >>conftest.$ac_ext
144077
 
cat >>conftest.$ac_ext <<_ACEOF
144078
 
/* end confdefs.h.  */
144079
 
 
144080
 
/* Override any GCC internal prototype to avoid an error.
144081
 
   Use char because int might match the return type of a GCC
144082
 
   builtin and then its argument prototype would still apply.  */
144083
 
#ifdef __cplusplus
144084
 
extern "C"
144085
 
#endif
144086
 
char dlopen ();
144087
 
int
144088
 
main ()
144089
 
{
144090
 
return dlopen ();
144091
 
  ;
144092
 
  return 0;
144093
 
}
144094
 
_ACEOF
144095
 
rm -f conftest.$ac_objext conftest$ac_exeext
144096
 
if { (ac_try="$ac_link"
144097
 
case "(($ac_try" in
144098
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
144099
 
  *) ac_try_echo=$ac_try;;
144100
 
esac
144101
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
144102
 
$as_echo "$ac_try_echo") >&5
144103
 
  (eval "$ac_link") 2>conftest.er1
144104
 
  ac_status=$?
144105
 
  grep -v '^ *+' conftest.er1 >conftest.err
144106
 
  rm -f conftest.er1
144107
 
  cat conftest.err >&5
144108
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
144109
 
  (exit $ac_status); } && {
144110
 
         test -z "$ac_c_werror_flag" ||
144111
 
         test ! -s conftest.err
144112
 
       } && test -s conftest$ac_exeext && {
144113
 
         test "$cross_compiling" = yes ||
144114
 
         $as_test_x conftest$ac_exeext
144115
 
       }; then
144116
 
  ac_cv_lib_dl_dlopen=yes
144117
 
else
144118
 
  $as_echo "$as_me: failed program was:" >&5
144119
 
sed 's/^/| /' conftest.$ac_ext >&5
144120
 
 
144121
 
        ac_cv_lib_dl_dlopen=no
144122
 
fi
144123
 
 
144124
 
rm -rf conftest.dSYM
144125
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
144126
 
      conftest$ac_exeext conftest.$ac_ext
144127
 
LIBS=$ac_check_lib_save_LIBS
144128
 
fi
144129
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
144130
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
144131
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
144132
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
144133
 
else
144134
 
  
144135
 
    lt_cv_dlopen="dyld"
144136
 
    lt_cv_dlopen_libs=
144137
 
    lt_cv_dlopen_self=yes
144138
 
    
144139
 
fi
144140
 
 
144141
 
   ;;
144142
 
 
144143
 
  *)
144144
 
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
144145
 
$as_echo_n "checking for shl_load... " >&6; }
144146
 
if test "${ac_cv_func_shl_load+set}" = set; then
144147
 
  $as_echo_n "(cached) " >&6
144148
 
else
144149
 
  cat >conftest.$ac_ext <<_ACEOF
144150
 
/* confdefs.h.  */
144151
 
_ACEOF
144152
 
cat confdefs.h >>conftest.$ac_ext
144153
 
cat >>conftest.$ac_ext <<_ACEOF
144154
 
/* end confdefs.h.  */
144155
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
144156
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
144157
 
#define shl_load innocuous_shl_load
144158
 
 
144159
 
/* System header to define __stub macros and hopefully few prototypes,
144160
 
    which can conflict with char shl_load (); below.
144161
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
144162
 
    <limits.h> exists even on freestanding compilers.  */
144163
 
 
144164
 
#ifdef __STDC__
144165
 
# include <limits.h>
144166
 
#else
144167
 
# include <assert.h>
144168
 
#endif
144169
 
 
144170
 
#undef shl_load
144171
 
 
144172
 
/* Override any GCC internal prototype to avoid an error.
144173
 
   Use char because int might match the return type of a GCC
144174
 
   builtin and then its argument prototype would still apply.  */
144175
 
#ifdef __cplusplus
144176
 
extern "C"
144177
 
#endif
144178
 
char shl_load ();
144179
 
/* The GNU C library defines this for functions which it implements
144180
 
    to always fail with ENOSYS.  Some functions are actually named
144181
 
    something starting with __ and the normal name is an alias.  */
144182
 
#if defined __stub_shl_load || defined __stub___shl_load
144183
 
choke me
144184
 
#endif
144185
 
 
144186
 
int
144187
 
main ()
144188
 
{
144189
 
return shl_load ();
144190
 
  ;
144191
 
  return 0;
144192
 
}
144193
 
_ACEOF
144194
 
rm -f conftest.$ac_objext conftest$ac_exeext
144195
 
if { (ac_try="$ac_link"
144196
 
case "(($ac_try" in
144197
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
144198
 
  *) ac_try_echo=$ac_try;;
144199
 
esac
144200
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
144201
 
$as_echo "$ac_try_echo") >&5
144202
 
  (eval "$ac_link") 2>conftest.er1
144203
 
  ac_status=$?
144204
 
  grep -v '^ *+' conftest.er1 >conftest.err
144205
 
  rm -f conftest.er1
144206
 
  cat conftest.err >&5
144207
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
144208
 
  (exit $ac_status); } && {
144209
 
         test -z "$ac_c_werror_flag" ||
144210
 
         test ! -s conftest.err
144211
 
       } && test -s conftest$ac_exeext && {
144212
 
         test "$cross_compiling" = yes ||
144213
 
         $as_test_x conftest$ac_exeext
144214
 
       }; then
144215
 
  ac_cv_func_shl_load=yes
144216
 
else
144217
 
  $as_echo "$as_me: failed program was:" >&5
144218
 
sed 's/^/| /' conftest.$ac_ext >&5
144219
 
 
144220
 
        ac_cv_func_shl_load=no
144221
 
fi
144222
 
 
144223
 
rm -rf conftest.dSYM
144224
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
144225
 
      conftest$ac_exeext conftest.$ac_ext
144226
 
fi
144227
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
144228
 
$as_echo "$ac_cv_func_shl_load" >&6; }
144229
 
if test "x$ac_cv_func_shl_load" = x""yes; then
144230
 
  lt_cv_dlopen="shl_load"
144231
 
else
144232
 
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
144233
 
$as_echo_n "checking for shl_load in -ldld... " >&6; }
144234
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
144235
 
  $as_echo_n "(cached) " >&6
144236
 
else
144237
 
  ac_check_lib_save_LIBS=$LIBS
144238
 
LIBS="-ldld  $LIBS"
144239
 
cat >conftest.$ac_ext <<_ACEOF
144240
 
/* confdefs.h.  */
144241
 
_ACEOF
144242
 
cat confdefs.h >>conftest.$ac_ext
144243
 
cat >>conftest.$ac_ext <<_ACEOF
144244
 
/* end confdefs.h.  */
144245
 
 
144246
 
/* Override any GCC internal prototype to avoid an error.
144247
 
   Use char because int might match the return type of a GCC
144248
 
   builtin and then its argument prototype would still apply.  */
144249
 
#ifdef __cplusplus
144250
 
extern "C"
144251
 
#endif
144252
 
char shl_load ();
144253
 
int
144254
 
main ()
144255
 
{
144256
 
return shl_load ();
144257
 
  ;
144258
 
  return 0;
144259
 
}
144260
 
_ACEOF
144261
 
rm -f conftest.$ac_objext conftest$ac_exeext
144262
 
if { (ac_try="$ac_link"
144263
 
case "(($ac_try" in
144264
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
144265
 
  *) ac_try_echo=$ac_try;;
144266
 
esac
144267
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
144268
 
$as_echo "$ac_try_echo") >&5
144269
 
  (eval "$ac_link") 2>conftest.er1
144270
 
  ac_status=$?
144271
 
  grep -v '^ *+' conftest.er1 >conftest.err
144272
 
  rm -f conftest.er1
144273
 
  cat conftest.err >&5
144274
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
144275
 
  (exit $ac_status); } && {
144276
 
         test -z "$ac_c_werror_flag" ||
144277
 
         test ! -s conftest.err
144278
 
       } && test -s conftest$ac_exeext && {
144279
 
         test "$cross_compiling" = yes ||
144280
 
         $as_test_x conftest$ac_exeext
144281
 
       }; then
144282
 
  ac_cv_lib_dld_shl_load=yes
144283
 
else
144284
 
  $as_echo "$as_me: failed program was:" >&5
144285
 
sed 's/^/| /' conftest.$ac_ext >&5
144286
 
 
144287
 
        ac_cv_lib_dld_shl_load=no
144288
 
fi
144289
 
 
144290
 
rm -rf conftest.dSYM
144291
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
144292
 
      conftest$ac_exeext conftest.$ac_ext
144293
 
LIBS=$ac_check_lib_save_LIBS
144294
 
fi
144295
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
144296
 
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
144297
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
144298
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
144299
 
else
144300
 
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
144301
 
$as_echo_n "checking for dlopen... " >&6; }
144302
 
if test "${ac_cv_func_dlopen+set}" = set; then
144303
 
  $as_echo_n "(cached) " >&6
144304
 
else
144305
 
  cat >conftest.$ac_ext <<_ACEOF
144306
 
/* confdefs.h.  */
144307
 
_ACEOF
144308
 
cat confdefs.h >>conftest.$ac_ext
144309
 
cat >>conftest.$ac_ext <<_ACEOF
144310
 
/* end confdefs.h.  */
144311
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
144312
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
144313
 
#define dlopen innocuous_dlopen
144314
 
 
144315
 
/* System header to define __stub macros and hopefully few prototypes,
144316
 
    which can conflict with char dlopen (); below.
144317
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
144318
 
    <limits.h> exists even on freestanding compilers.  */
144319
 
 
144320
 
#ifdef __STDC__
144321
 
# include <limits.h>
144322
 
#else
144323
 
# include <assert.h>
144324
 
#endif
144325
 
 
144326
 
#undef dlopen
144327
 
 
144328
 
/* Override any GCC internal prototype to avoid an error.
144329
 
   Use char because int might match the return type of a GCC
144330
 
   builtin and then its argument prototype would still apply.  */
144331
 
#ifdef __cplusplus
144332
 
extern "C"
144333
 
#endif
144334
 
char dlopen ();
144335
 
/* The GNU C library defines this for functions which it implements
144336
 
    to always fail with ENOSYS.  Some functions are actually named
144337
 
    something starting with __ and the normal name is an alias.  */
144338
 
#if defined __stub_dlopen || defined __stub___dlopen
144339
 
choke me
144340
 
#endif
144341
 
 
144342
 
int
144343
 
main ()
144344
 
{
144345
 
return dlopen ();
144346
 
  ;
144347
 
  return 0;
144348
 
}
144349
 
_ACEOF
144350
 
rm -f conftest.$ac_objext conftest$ac_exeext
144351
 
if { (ac_try="$ac_link"
144352
 
case "(($ac_try" in
144353
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
144354
 
  *) ac_try_echo=$ac_try;;
144355
 
esac
144356
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
144357
 
$as_echo "$ac_try_echo") >&5
144358
 
  (eval "$ac_link") 2>conftest.er1
144359
 
  ac_status=$?
144360
 
  grep -v '^ *+' conftest.er1 >conftest.err
144361
 
  rm -f conftest.er1
144362
 
  cat conftest.err >&5
144363
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
144364
 
  (exit $ac_status); } && {
144365
 
         test -z "$ac_c_werror_flag" ||
144366
 
         test ! -s conftest.err
144367
 
       } && test -s conftest$ac_exeext && {
144368
 
         test "$cross_compiling" = yes ||
144369
 
         $as_test_x conftest$ac_exeext
144370
 
       }; then
144371
 
  ac_cv_func_dlopen=yes
144372
 
else
144373
 
  $as_echo "$as_me: failed program was:" >&5
144374
 
sed 's/^/| /' conftest.$ac_ext >&5
144375
 
 
144376
 
        ac_cv_func_dlopen=no
144377
 
fi
144378
 
 
144379
 
rm -rf conftest.dSYM
144380
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
144381
 
      conftest$ac_exeext conftest.$ac_ext
144382
 
fi
144383
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
144384
 
$as_echo "$ac_cv_func_dlopen" >&6; }
144385
 
if test "x$ac_cv_func_dlopen" = x""yes; then
144386
 
  lt_cv_dlopen="dlopen"
144387
 
else
144388
 
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
144389
 
$as_echo_n "checking for dlopen in -ldl... " >&6; }
144390
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
144391
 
  $as_echo_n "(cached) " >&6
144392
 
else
144393
 
  ac_check_lib_save_LIBS=$LIBS
144394
 
LIBS="-ldl  $LIBS"
144395
 
cat >conftest.$ac_ext <<_ACEOF
144396
 
/* confdefs.h.  */
144397
 
_ACEOF
144398
 
cat confdefs.h >>conftest.$ac_ext
144399
 
cat >>conftest.$ac_ext <<_ACEOF
144400
 
/* end confdefs.h.  */
144401
 
 
144402
 
/* Override any GCC internal prototype to avoid an error.
144403
 
   Use char because int might match the return type of a GCC
144404
 
   builtin and then its argument prototype would still apply.  */
144405
 
#ifdef __cplusplus
144406
 
extern "C"
144407
 
#endif
144408
 
char dlopen ();
144409
 
int
144410
 
main ()
144411
 
{
144412
 
return dlopen ();
144413
 
  ;
144414
 
  return 0;
144415
 
}
144416
 
_ACEOF
144417
 
rm -f conftest.$ac_objext conftest$ac_exeext
144418
 
if { (ac_try="$ac_link"
144419
 
case "(($ac_try" in
144420
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
144421
 
  *) ac_try_echo=$ac_try;;
144422
 
esac
144423
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
144424
 
$as_echo "$ac_try_echo") >&5
144425
 
  (eval "$ac_link") 2>conftest.er1
144426
 
  ac_status=$?
144427
 
  grep -v '^ *+' conftest.er1 >conftest.err
144428
 
  rm -f conftest.er1
144429
 
  cat conftest.err >&5
144430
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
144431
 
  (exit $ac_status); } && {
144432
 
         test -z "$ac_c_werror_flag" ||
144433
 
         test ! -s conftest.err
144434
 
       } && test -s conftest$ac_exeext && {
144435
 
         test "$cross_compiling" = yes ||
144436
 
         $as_test_x conftest$ac_exeext
144437
 
       }; then
144438
 
  ac_cv_lib_dl_dlopen=yes
144439
 
else
144440
 
  $as_echo "$as_me: failed program was:" >&5
144441
 
sed 's/^/| /' conftest.$ac_ext >&5
144442
 
 
144443
 
        ac_cv_lib_dl_dlopen=no
144444
 
fi
144445
 
 
144446
 
rm -rf conftest.dSYM
144447
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
144448
 
      conftest$ac_exeext conftest.$ac_ext
144449
 
LIBS=$ac_check_lib_save_LIBS
144450
 
fi
144451
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
144452
 
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
144453
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
144454
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
144455
 
else
144456
 
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
144457
 
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
144458
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
144459
 
  $as_echo_n "(cached) " >&6
144460
 
else
144461
 
  ac_check_lib_save_LIBS=$LIBS
144462
 
LIBS="-lsvld  $LIBS"
144463
 
cat >conftest.$ac_ext <<_ACEOF
144464
 
/* confdefs.h.  */
144465
 
_ACEOF
144466
 
cat confdefs.h >>conftest.$ac_ext
144467
 
cat >>conftest.$ac_ext <<_ACEOF
144468
 
/* end confdefs.h.  */
144469
 
 
144470
 
/* Override any GCC internal prototype to avoid an error.
144471
 
   Use char because int might match the return type of a GCC
144472
 
   builtin and then its argument prototype would still apply.  */
144473
 
#ifdef __cplusplus
144474
 
extern "C"
144475
 
#endif
144476
 
char dlopen ();
144477
 
int
144478
 
main ()
144479
 
{
144480
 
return dlopen ();
144481
 
  ;
144482
 
  return 0;
144483
 
}
144484
 
_ACEOF
144485
 
rm -f conftest.$ac_objext conftest$ac_exeext
144486
 
if { (ac_try="$ac_link"
144487
 
case "(($ac_try" in
144488
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
144489
 
  *) ac_try_echo=$ac_try;;
144490
 
esac
144491
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
144492
 
$as_echo "$ac_try_echo") >&5
144493
 
  (eval "$ac_link") 2>conftest.er1
144494
 
  ac_status=$?
144495
 
  grep -v '^ *+' conftest.er1 >conftest.err
144496
 
  rm -f conftest.er1
144497
 
  cat conftest.err >&5
144498
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
144499
 
  (exit $ac_status); } && {
144500
 
         test -z "$ac_c_werror_flag" ||
144501
 
         test ! -s conftest.err
144502
 
       } && test -s conftest$ac_exeext && {
144503
 
         test "$cross_compiling" = yes ||
144504
 
         $as_test_x conftest$ac_exeext
144505
 
       }; then
144506
 
  ac_cv_lib_svld_dlopen=yes
144507
 
else
144508
 
  $as_echo "$as_me: failed program was:" >&5
144509
 
sed 's/^/| /' conftest.$ac_ext >&5
144510
 
 
144511
 
        ac_cv_lib_svld_dlopen=no
144512
 
fi
144513
 
 
144514
 
rm -rf conftest.dSYM
144515
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
144516
 
      conftest$ac_exeext conftest.$ac_ext
144517
 
LIBS=$ac_check_lib_save_LIBS
144518
 
fi
144519
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
144520
 
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
144521
 
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
144522
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
144523
 
else
144524
 
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
144525
 
$as_echo_n "checking for dld_link in -ldld... " >&6; }
144526
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
144527
 
  $as_echo_n "(cached) " >&6
144528
 
else
144529
 
  ac_check_lib_save_LIBS=$LIBS
144530
 
LIBS="-ldld  $LIBS"
144531
 
cat >conftest.$ac_ext <<_ACEOF
144532
 
/* confdefs.h.  */
144533
 
_ACEOF
144534
 
cat confdefs.h >>conftest.$ac_ext
144535
 
cat >>conftest.$ac_ext <<_ACEOF
144536
 
/* end confdefs.h.  */
144537
 
 
144538
 
/* Override any GCC internal prototype to avoid an error.
144539
 
   Use char because int might match the return type of a GCC
144540
 
   builtin and then its argument prototype would still apply.  */
144541
 
#ifdef __cplusplus
144542
 
extern "C"
144543
 
#endif
144544
 
char dld_link ();
144545
 
int
144546
 
main ()
144547
 
{
144548
 
return dld_link ();
144549
 
  ;
144550
 
  return 0;
144551
 
}
144552
 
_ACEOF
144553
 
rm -f conftest.$ac_objext conftest$ac_exeext
144554
 
if { (ac_try="$ac_link"
144555
 
case "(($ac_try" in
144556
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
144557
 
  *) ac_try_echo=$ac_try;;
144558
 
esac
144559
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
144560
 
$as_echo "$ac_try_echo") >&5
144561
 
  (eval "$ac_link") 2>conftest.er1
144562
 
  ac_status=$?
144563
 
  grep -v '^ *+' conftest.er1 >conftest.err
144564
 
  rm -f conftest.er1
144565
 
  cat conftest.err >&5
144566
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
144567
 
  (exit $ac_status); } && {
144568
 
         test -z "$ac_c_werror_flag" ||
144569
 
         test ! -s conftest.err
144570
 
       } && test -s conftest$ac_exeext && {
144571
 
         test "$cross_compiling" = yes ||
144572
 
         $as_test_x conftest$ac_exeext
144573
 
       }; then
144574
 
  ac_cv_lib_dld_dld_link=yes
144575
 
else
144576
 
  $as_echo "$as_me: failed program was:" >&5
144577
 
sed 's/^/| /' conftest.$ac_ext >&5
144578
 
 
144579
 
        ac_cv_lib_dld_dld_link=no
144580
 
fi
144581
 
 
144582
 
rm -rf conftest.dSYM
144583
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
144584
 
      conftest$ac_exeext conftest.$ac_ext
144585
 
LIBS=$ac_check_lib_save_LIBS
144586
 
fi
144587
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
144588
 
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
144589
 
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
144590
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
144591
 
fi
144592
 
 
144593
 
              
144594
 
fi
144595
 
 
144596
 
            
144597
 
fi
144598
 
 
144599
 
          
144600
 
fi
144601
 
 
144602
 
        
144603
 
fi
144604
 
 
144605
 
      
144606
 
fi
144607
 
 
144608
 
    ;;
144609
 
  esac
144610
 
 
144611
 
  if test "x$lt_cv_dlopen" != xno; then
144612
 
    enable_dlopen=yes
144613
 
  else
144614
 
    enable_dlopen=no
144615
 
  fi
144616
 
 
144617
 
  case $lt_cv_dlopen in
144618
 
  dlopen)
144619
 
    save_CPPFLAGS="$CPPFLAGS"
144620
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
144621
 
 
144622
 
    save_LDFLAGS="$LDFLAGS"
144623
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
144624
 
 
144625
 
    save_LIBS="$LIBS"
144626
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
144627
 
 
144628
 
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
144629
 
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
144630
 
if test "${lt_cv_dlopen_self+set}" = set; then
144631
 
  $as_echo_n "(cached) " >&6
144632
 
else
144633
 
          if test "$cross_compiling" = yes; then :
144634
 
  lt_cv_dlopen_self=cross
144635
 
else
144636
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
144637
 
  lt_status=$lt_dlunknown
144638
 
  cat > conftest.$ac_ext <<EOF
144639
 
#line __oline__ "configure"
144640
 
#include "confdefs.h"
144641
 
 
144642
 
#if HAVE_DLFCN_H
144643
 
#include <dlfcn.h>
144644
 
#endif
144645
 
 
144646
 
#include <stdio.h>
144647
 
 
144648
 
#ifdef RTLD_GLOBAL
144649
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
144650
 
#else
144651
 
#  ifdef DL_GLOBAL
144652
 
#    define LT_DLGLOBAL         DL_GLOBAL
144653
 
#  else
144654
 
#    define LT_DLGLOBAL         0
144655
 
#  endif
144656
 
#endif
144657
 
 
144658
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
144659
 
   find out it does not work in some platform. */
144660
 
#ifndef LT_DLLAZY_OR_NOW
144661
 
#  ifdef RTLD_LAZY
144662
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
144663
 
#  else
144664
 
#    ifdef DL_LAZY
144665
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
144666
 
#    else
144667
 
#      ifdef RTLD_NOW
144668
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
144669
 
#      else
144670
 
#        ifdef DL_NOW
144671
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
144672
 
#        else
144673
 
#          define LT_DLLAZY_OR_NOW      0
144674
 
#        endif
144675
 
#      endif
144676
 
#    endif
144677
 
#  endif
144678
 
#endif
144679
 
 
144680
 
#ifdef __cplusplus
144681
 
extern "C" void exit (int);
144682
 
#endif
144683
 
 
144684
 
void fnord() { int i=42;}
144685
 
int main ()
144686
 
{
144687
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
144688
 
  int status = $lt_dlunknown;
144689
 
 
144690
 
  if (self)
144691
 
    {
144692
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
144693
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
144694
 
      /* dlclose (self); */
144695
 
    }
144696
 
  else
144697
 
    puts (dlerror ());
144698
 
 
144699
 
    exit (status);
144700
 
}
144701
 
EOF
144702
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
144703
 
  (eval $ac_link) 2>&5
144704
 
  ac_status=$?
144705
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
144706
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
144707
 
    (./conftest; exit; ) >&5 2>/dev/null
144708
 
    lt_status=$?
144709
 
    case x$lt_status in
144710
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
144711
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
144712
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
144713
 
    esac
144714
 
  else :
144715
 
    # compilation failed
144716
 
    lt_cv_dlopen_self=no
144717
 
  fi
144718
 
fi
144719
 
rm -fr conftest*
144720
 
 
144721
 
    
144722
 
fi
144723
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
144724
 
$as_echo "$lt_cv_dlopen_self" >&6; }
144725
 
 
144726
 
    if test "x$lt_cv_dlopen_self" = xyes; then
144727
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
144728
 
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
144729
 
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
144730
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
144731
 
  $as_echo_n "(cached) " >&6
144732
 
else
144733
 
          if test "$cross_compiling" = yes; then :
144734
 
  lt_cv_dlopen_self_static=cross
144735
 
else
144736
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
144737
 
  lt_status=$lt_dlunknown
144738
 
  cat > conftest.$ac_ext <<EOF
144739
 
#line __oline__ "configure"
144740
 
#include "confdefs.h"
144741
 
 
144742
 
#if HAVE_DLFCN_H
144743
 
#include <dlfcn.h>
144744
 
#endif
144745
 
 
144746
 
#include <stdio.h>
144747
 
 
144748
 
#ifdef RTLD_GLOBAL
144749
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
144750
 
#else
144751
 
#  ifdef DL_GLOBAL
144752
 
#    define LT_DLGLOBAL         DL_GLOBAL
144753
 
#  else
144754
 
#    define LT_DLGLOBAL         0
144755
 
#  endif
144756
 
#endif
144757
 
 
144758
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
144759
 
   find out it does not work in some platform. */
144760
 
#ifndef LT_DLLAZY_OR_NOW
144761
 
#  ifdef RTLD_LAZY
144762
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
144763
 
#  else
144764
 
#    ifdef DL_LAZY
144765
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
144766
 
#    else
144767
 
#      ifdef RTLD_NOW
144768
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
144769
 
#      else
144770
 
#        ifdef DL_NOW
144771
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
144772
 
#        else
144773
 
#          define LT_DLLAZY_OR_NOW      0
144774
 
#        endif
144775
 
#      endif
144776
 
#    endif
144777
 
#  endif
144778
 
#endif
144779
 
 
144780
 
#ifdef __cplusplus
144781
 
extern "C" void exit (int);
144782
 
#endif
144783
 
 
144784
 
void fnord() { int i=42;}
144785
 
int main ()
144786
 
{
144787
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
144788
 
  int status = $lt_dlunknown;
144789
 
 
144790
 
  if (self)
144791
 
    {
144792
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
144793
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
144794
 
      /* dlclose (self); */
144795
 
    }
144796
 
  else
144797
 
    puts (dlerror ());
144798
 
 
144799
 
    exit (status);
144800
 
}
144801
 
EOF
144802
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
144803
 
  (eval $ac_link) 2>&5
144804
 
  ac_status=$?
144805
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
144806
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
144807
 
    (./conftest; exit; ) >&5 2>/dev/null
144808
 
    lt_status=$?
144809
 
    case x$lt_status in
144810
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
144811
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
144812
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
144813
 
    esac
144814
 
  else :
144815
 
    # compilation failed
144816
 
    lt_cv_dlopen_self_static=no
144817
 
  fi
144818
 
fi
144819
 
rm -fr conftest*
144820
 
 
144821
 
      
144822
 
fi
144823
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
144824
 
$as_echo "$lt_cv_dlopen_self_static" >&6; }
144825
 
    fi
144826
 
 
144827
 
    CPPFLAGS="$save_CPPFLAGS"
144828
 
    LDFLAGS="$save_LDFLAGS"
144829
 
    LIBS="$save_LIBS"
144830
 
    ;;
144831
 
  esac
144832
 
 
144833
 
  case $lt_cv_dlopen_self in
144834
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
144835
 
  *) enable_dlopen_self=unknown ;;
144836
 
  esac
144837
 
 
144838
 
  case $lt_cv_dlopen_self_static in
144839
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
144840
 
  *) enable_dlopen_self_static=unknown ;;
144841
 
  esac
144842
 
fi
144843
 
 
144844
 
 
144845
 
# Report which library types will actually be built
144846
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
144847
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
144848
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
144849
 
$as_echo "$can_build_shared" >&6; }
144850
 
 
144851
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
144852
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
144853
 
test "$can_build_shared" = "no" && enable_shared=no
144854
 
 
144855
 
# On AIX, shared libraries and static libraries use the same namespace, and
144856
 
# are all built from PIC.
144857
 
case $host_os in
144858
 
aix3*)
144859
 
  test "$enable_shared" = yes && enable_static=no
144860
 
  if test -n "$RANLIB"; then
144861
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
144862
 
    postinstall_cmds='$RANLIB $lib'
144863
 
  fi
144864
 
  ;;
144865
 
 
144866
 
aix[4-9]*)
144867
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
144868
 
    test "$enable_shared" = yes && enable_static=no
144869
 
  fi
144870
 
    ;;
144871
 
esac
144872
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
144873
 
$as_echo "$enable_shared" >&6; }
144874
 
 
144875
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
144876
 
$as_echo_n "checking whether to build static libraries... " >&6; }
144877
 
# Make sure either enable_shared or enable_static is yes.
144878
 
test "$enable_shared" = yes || enable_static=yes
144879
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
144880
 
$as_echo "$enable_static" >&6; }
144881
 
 
144882
 
# The else clause should only fire when bootstrapping the
144883
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
144884
 
# with your package, and you will get complaints that there are
144885
 
# no rules to generate ltmain.sh.
144886
 
if test -f "$ltmain"; then
144887
 
  # See if we are running on zsh, and set the options which allow our commands through
144888
 
  # without removal of \ escapes.
144889
 
  if test -n "${ZSH_VERSION+set}" ; then
144890
 
    setopt NO_GLOB_SUBST
144891
 
  fi
144892
 
  # Now quote all the things that may contain metacharacters while being
144893
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
144894
 
  # variables and quote the copies for generation of the libtool script.
144895
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
144896
 
    SED SHELL STRIP \
144897
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
144898
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
144899
 
    deplibs_check_method reload_flag reload_cmds need_locks \
144900
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
144901
 
    lt_cv_sys_global_symbol_to_c_name_address \
144902
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
144903
 
    old_postinstall_cmds old_postuninstall_cmds \
144904
 
    compiler \
144905
 
    CC \
144906
 
    LD \
144907
 
    lt_prog_compiler_wl \
144908
 
    lt_prog_compiler_pic \
144909
 
    lt_prog_compiler_static \
144910
 
    lt_prog_compiler_no_builtin_flag \
144911
 
    export_dynamic_flag_spec \
144912
 
    thread_safe_flag_spec \
144913
 
    whole_archive_flag_spec \
144914
 
    enable_shared_with_static_runtimes \
144915
 
    old_archive_cmds \
144916
 
    old_archive_from_new_cmds \
144917
 
    predep_objects \
144918
 
    postdep_objects \
144919
 
    predeps \
144920
 
    postdeps \
144921
 
    compiler_lib_search_path \
144922
 
    compiler_lib_search_dirs \
144923
 
    archive_cmds \
144924
 
    archive_expsym_cmds \
144925
 
    postinstall_cmds \
144926
 
    postuninstall_cmds \
144927
 
    old_archive_from_expsyms_cmds \
144928
 
    allow_undefined_flag \
144929
 
    no_undefined_flag \
144930
 
    export_symbols_cmds \
144931
 
    hardcode_libdir_flag_spec \
144932
 
    hardcode_libdir_flag_spec_ld \
144933
 
    hardcode_libdir_separator \
144934
 
    hardcode_automatic \
144935
 
    module_cmds \
144936
 
    module_expsym_cmds \
144937
 
    lt_cv_prog_compiler_c_o \
144938
 
    fix_srcfile_path \
144939
 
    exclude_expsyms \
144940
 
    include_expsyms; do
144941
 
 
144942
 
    case $var in
144943
 
    old_archive_cmds | \
144944
 
    old_archive_from_new_cmds | \
144945
 
    archive_cmds | \
144946
 
    archive_expsym_cmds | \
144947
 
    module_cmds | \
144948
 
    module_expsym_cmds | \
144949
 
    old_archive_from_expsyms_cmds | \
144950
 
    export_symbols_cmds | \
144951
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
144952
 
    postinstall_cmds | postuninstall_cmds | \
144953
 
    old_postinstall_cmds | old_postuninstall_cmds | \
144954
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
144955
 
      # Double-quote double-evaled strings.
144956
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
144957
 
      ;;
144958
 
    *)
144959
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
144960
 
      ;;
144961
 
    esac
144962
 
  done
144963
 
 
144964
 
  case $lt_echo in
144965
 
  *'\$0 --fallback-echo"')
144966
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
144967
 
    ;;
144968
 
  esac
144969
 
 
144970
 
cfgfile="${ofile}T"
144971
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
144972
 
  $rm -f "$cfgfile"
144973
 
  { $as_echo "$as_me:$LINENO: result: 
144974
 
creating $ofile" >&5
144975
 
$as_echo "
144976
 
creating $ofile" >&6; }
144977
 
 
144978
 
  cat <<__EOF__ >> "$cfgfile"
144979
 
#! $SHELL
144980
 
 
144981
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
144982
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
144983
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
144984
 
#
144985
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
144986
 
# Free Software Foundation, Inc.
144987
 
#
144988
 
# This file is part of GNU Libtool:
144989
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
144990
 
#
144991
 
# This program is free software; you can redistribute it and/or modify
144992
 
# it under the terms of the GNU General Public License as published by
144993
 
# the Free Software Foundation; either version 2 of the License, or
144994
 
# (at your option) any later version.
144995
 
#
144996
 
# This program is distributed in the hope that it will be useful, but
144997
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
144998
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
144999
 
# General Public License for more details.
145000
 
#
145001
 
# You should have received a copy of the GNU General Public License
145002
 
# along with this program; if not, write to the Free Software
145003
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
145004
 
#
145005
 
# As a special exception to the GNU General Public License, if you
145006
 
# distribute this file as part of a program that contains a
145007
 
# configuration script generated by Autoconf, you may include it under
145008
 
# the same distribution terms that you use for the rest of that program.
145009
 
 
145010
 
# A sed program that does not truncate output.
145011
 
SED=$lt_SED
145012
 
 
145013
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
145014
 
Xsed="$SED -e 1s/^X//"
145015
 
 
145016
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
145017
 
# if CDPATH is set.
145018
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
145019
 
 
145020
 
# The names of the tagged configurations supported by this script.
145021
 
available_tags=
145022
 
 
145023
 
# ### BEGIN LIBTOOL CONFIG
145024
 
 
145025
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
145026
 
 
145027
 
# Shell to use when invoking shell scripts.
145028
 
SHELL=$lt_SHELL
145029
 
 
145030
 
# Whether or not to build shared libraries.
145031
 
build_libtool_libs=$enable_shared
145032
 
 
145033
 
# Whether or not to build static libraries.
145034
 
build_old_libs=$enable_static
145035
 
 
145036
 
# Whether or not to add -lc for building shared libraries.
145037
 
build_libtool_need_lc=$archive_cmds_need_lc
145038
 
 
145039
 
# Whether or not to disallow shared libs when runtime libs are static
145040
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
145041
 
 
145042
 
# Whether or not to optimize for fast installation.
145043
 
fast_install=$enable_fast_install
145044
 
 
145045
 
# The host system.
145046
 
host_alias=$host_alias
145047
 
host=$host
145048
 
host_os=$host_os
145049
 
 
145050
 
# The build system.
145051
 
build_alias=$build_alias
145052
 
build=$build
145053
 
build_os=$build_os
145054
 
 
145055
 
# An echo program that does not interpret backslashes.
145056
 
echo=$lt_echo
145057
 
 
145058
 
# The archiver.
145059
 
AR=$lt_AR
145060
 
AR_FLAGS=$lt_AR_FLAGS
145061
 
 
145062
 
# A C compiler.
145063
 
LTCC=$lt_LTCC
145064
 
 
145065
 
# LTCC compiler flags.
145066
 
LTCFLAGS=$lt_LTCFLAGS
145067
 
 
145068
 
# A language-specific compiler.
145069
 
CC=$lt_compiler
145070
 
 
145071
 
# Is the compiler the GNU C compiler?
145072
 
with_gcc=$GCC
145073
 
 
145074
 
# An ERE matcher.
145075
 
EGREP=$lt_EGREP
145076
 
 
145077
 
# The linker used to build libraries.
145078
 
LD=$lt_LD
145079
 
 
145080
 
# Whether we need hard or soft links.
145081
 
LN_S=$lt_LN_S
145082
 
 
145083
 
# A BSD-compatible nm program.
145084
 
NM=$lt_NM
145085
 
 
145086
 
# A symbol stripping program
145087
 
STRIP=$lt_STRIP
145088
 
 
145089
 
# Used to examine libraries when file_magic_cmd begins "file"
145090
 
MAGIC_CMD=$MAGIC_CMD
145091
 
 
145092
 
# Used on cygwin: DLL creation program.
145093
 
DLLTOOL="$DLLTOOL"
145094
 
 
145095
 
# Used on cygwin: object dumper.
145096
 
OBJDUMP="$OBJDUMP"
145097
 
 
145098
 
# Used on cygwin: assembler.
145099
 
AS="$AS"
145100
 
 
145101
 
# The name of the directory that contains temporary libtool files.
145102
 
objdir=$objdir
145103
 
 
145104
 
# How to create reloadable object files.
145105
 
reload_flag=$lt_reload_flag
145106
 
reload_cmds=$lt_reload_cmds
145107
 
 
145108
 
# How to pass a linker flag through the compiler.
145109
 
wl=$lt_lt_prog_compiler_wl
145110
 
 
145111
 
# Object file suffix (normally "o").
145112
 
objext="$ac_objext"
145113
 
 
145114
 
# Old archive suffix (normally "a").
145115
 
libext="$libext"
145116
 
 
145117
 
# Shared library suffix (normally ".so").
145118
 
shrext_cmds='$shrext_cmds'
145119
 
 
145120
 
# Executable file suffix (normally "").
145121
 
exeext="$exeext"
145122
 
 
145123
 
# Additional compiler flags for building library objects.
145124
 
pic_flag=$lt_lt_prog_compiler_pic
145125
 
pic_mode=$pic_mode
145126
 
 
145127
 
# What is the maximum length of a command?
145128
 
max_cmd_len=$lt_cv_sys_max_cmd_len
145129
 
 
145130
 
# Does compiler simultaneously support -c and -o options?
145131
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
145132
 
 
145133
 
# Must we lock files when doing compilation?
145134
 
need_locks=$lt_need_locks
145135
 
 
145136
 
# Do we need the lib prefix for modules?
145137
 
need_lib_prefix=$need_lib_prefix
145138
 
 
145139
 
# Do we need a version for libraries?
145140
 
need_version=$need_version
145141
 
 
145142
 
# Whether dlopen is supported.
145143
 
dlopen_support=$enable_dlopen
145144
 
 
145145
 
# Whether dlopen of programs is supported.
145146
 
dlopen_self=$enable_dlopen_self
145147
 
 
145148
 
# Whether dlopen of statically linked programs is supported.
145149
 
dlopen_self_static=$enable_dlopen_self_static
145150
 
 
145151
 
# Compiler flag to prevent dynamic linking.
145152
 
link_static_flag=$lt_lt_prog_compiler_static
145153
 
 
145154
 
# Compiler flag to turn off builtin functions.
145155
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
145156
 
 
145157
 
# Compiler flag to allow reflexive dlopens.
145158
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
145159
 
 
145160
 
# Compiler flag to generate shared objects directly from archives.
145161
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
145162
 
 
145163
 
# Compiler flag to generate thread-safe objects.
145164
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
145165
 
 
145166
 
# Library versioning type.
145167
 
version_type=$version_type
145168
 
 
145169
 
# Format of library name prefix.
145170
 
libname_spec=$lt_libname_spec
145171
 
 
145172
 
# List of archive names.  First name is the real one, the rest are links.
145173
 
# The last name is the one that the linker finds with -lNAME.
145174
 
library_names_spec=$lt_library_names_spec
145175
 
 
145176
 
# The coded name of the library, if different from the real name.
145177
 
soname_spec=$lt_soname_spec
145178
 
 
145179
 
# Commands used to build and install an old-style archive.
145180
 
RANLIB=$lt_RANLIB
145181
 
old_archive_cmds=$lt_old_archive_cmds
145182
 
old_postinstall_cmds=$lt_old_postinstall_cmds
145183
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
145184
 
 
145185
 
# Create an old-style archive from a shared archive.
145186
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
145187
 
 
145188
 
# Create a temporary old-style archive to link instead of a shared archive.
145189
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
145190
 
 
145191
 
# Commands used to build and install a shared archive.
145192
 
archive_cmds=$lt_archive_cmds
145193
 
archive_expsym_cmds=$lt_archive_expsym_cmds
145194
 
postinstall_cmds=$lt_postinstall_cmds
145195
 
postuninstall_cmds=$lt_postuninstall_cmds
145196
 
 
145197
 
# Commands used to build a loadable module (assumed same as above if empty)
145198
 
module_cmds=$lt_module_cmds
145199
 
module_expsym_cmds=$lt_module_expsym_cmds
145200
 
 
145201
 
# Commands to strip libraries.
145202
 
old_striplib=$lt_old_striplib
145203
 
striplib=$lt_striplib
145204
 
 
145205
 
# Dependencies to place before the objects being linked to create a
145206
 
# shared library.
145207
 
predep_objects=$lt_predep_objects
145208
 
 
145209
 
# Dependencies to place after the objects being linked to create a
145210
 
# shared library.
145211
 
postdep_objects=$lt_postdep_objects
145212
 
 
145213
 
# Dependencies to place before the objects being linked to create a
145214
 
# shared library.
145215
 
predeps=$lt_predeps
145216
 
 
145217
 
# Dependencies to place after the objects being linked to create a
145218
 
# shared library.
145219
 
postdeps=$lt_postdeps
145220
 
 
145221
 
# The directories searched by this compiler when creating a shared
145222
 
# library
145223
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
145224
 
 
145225
 
# The library search path used internally by the compiler when linking
145226
 
# a shared library.
145227
 
compiler_lib_search_path=$lt_compiler_lib_search_path
145228
 
 
145229
 
# Method to check whether dependent libraries are shared objects.
145230
 
deplibs_check_method=$lt_deplibs_check_method
145231
 
 
145232
 
# Command to use when deplibs_check_method == file_magic.
145233
 
file_magic_cmd=$lt_file_magic_cmd
145234
 
 
145235
 
# Flag that allows shared libraries with undefined symbols to be built.
145236
 
allow_undefined_flag=$lt_allow_undefined_flag
145237
 
 
145238
 
# Flag that forces no undefined symbols.
145239
 
no_undefined_flag=$lt_no_undefined_flag
145240
 
 
145241
 
# Commands used to finish a libtool library installation in a directory.
145242
 
finish_cmds=$lt_finish_cmds
145243
 
 
145244
 
# Same as above, but a single script fragment to be evaled but not shown.
145245
 
finish_eval=$lt_finish_eval
145246
 
 
145247
 
# Take the output of nm and produce a listing of raw symbols and C names.
145248
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
145249
 
 
145250
 
# Transform the output of nm in a proper C declaration
145251
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
145252
 
 
145253
 
# Transform the output of nm in a C name address pair
145254
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
145255
 
 
145256
 
# This is the shared library runtime path variable.
145257
 
runpath_var=$runpath_var
145258
 
 
145259
 
# This is the shared library path variable.
145260
 
shlibpath_var=$shlibpath_var
145261
 
 
145262
 
# Is shlibpath searched before the hard-coded library search path?
145263
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
145264
 
 
145265
 
# How to hardcode a shared library path into an executable.
145266
 
hardcode_action=$hardcode_action
145267
 
 
145268
 
# Whether we should hardcode library paths into libraries.
145269
 
hardcode_into_libs=$hardcode_into_libs
145270
 
 
145271
 
# Flag to hardcode \$libdir into a binary during linking.
145272
 
# This must work even if \$libdir does not exist.
145273
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
145274
 
 
145275
 
# If ld is used when linking, flag to hardcode \$libdir into
145276
 
# a binary during linking. This must work even if \$libdir does
145277
 
# not exist.
145278
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
145279
 
 
145280
 
# Whether we need a single -rpath flag with a separated argument.
145281
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
145282
 
 
145283
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
145284
 
# resulting binary.
145285
 
hardcode_direct=$hardcode_direct
145286
 
 
145287
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
145288
 
# resulting binary.
145289
 
hardcode_minus_L=$hardcode_minus_L
145290
 
 
145291
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
145292
 
# the resulting binary.
145293
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
145294
 
 
145295
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
145296
 
# and all subsequent libraries and executables linked against it.
145297
 
hardcode_automatic=$hardcode_automatic
145298
 
 
145299
 
# Variables whose values should be saved in libtool wrapper scripts and
145300
 
# restored at relink time.
145301
 
variables_saved_for_relink="$variables_saved_for_relink"
145302
 
 
145303
 
# Whether libtool must link a program against all its dependency libraries.
145304
 
link_all_deplibs=$link_all_deplibs
145305
 
 
145306
 
# Compile-time system search path for libraries
145307
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
145308
 
 
145309
 
# Run-time system search path for libraries
145310
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
145311
 
 
145312
 
# Fix the shell variable \$srcfile for the compiler.
145313
 
fix_srcfile_path=$lt_fix_srcfile_path
145314
 
 
145315
 
# Set to yes if exported symbols are required.
145316
 
always_export_symbols=$always_export_symbols
145317
 
 
145318
 
# The commands to list exported symbols.
145319
 
export_symbols_cmds=$lt_export_symbols_cmds
145320
 
 
145321
 
# The commands to extract the exported symbol list from a shared archive.
145322
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
145323
 
 
145324
 
# Symbols that should not be listed in the preloaded symbols.
145325
 
exclude_expsyms=$lt_exclude_expsyms
145326
 
 
145327
 
# Symbols that must always be exported.
145328
 
include_expsyms=$lt_include_expsyms
145329
 
 
145330
 
# ### END LIBTOOL CONFIG
145331
 
 
145332
 
__EOF__
145333
 
 
145334
 
 
145335
 
  case $host_os in
145336
 
  aix3*)
145337
 
    cat <<\EOF >> "$cfgfile"
145338
 
 
145339
 
# AIX sometimes has problems with the GCC collect2 program.  For some
145340
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
145341
 
# vanish in a puff of smoke.
145342
 
if test "X${COLLECT_NAMES+set}" != Xset; then
145343
 
  COLLECT_NAMES=
145344
 
  export COLLECT_NAMES
145345
 
fi
145346
 
EOF
145347
 
    ;;
145348
 
  esac
145349
 
 
145350
 
  # We use sed instead of cat because bash on DJGPP gets confused if
145351
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
145352
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
145353
 
  # is reportedly fixed, but why not run on old versions too?
145354
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
145355
 
 
145356
 
  mv -f "$cfgfile" "$ofile" || \
145357
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
145358
 
  chmod +x "$ofile"
145359
 
 
145360
 
else
145361
 
  # If there is no Makefile yet, we rely on a make rule to execute
145362
 
  # `config.status --recheck' to rerun these tests and create the
145363
 
  # libtool script then.
145364
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
145365
 
  if test -f "$ltmain_in"; then
145366
 
    test -f Makefile && make "$ltmain"
145367
 
  fi
145368
 
fi
145369
 
 
145370
 
 
145371
 
ac_ext=c
145372
 
ac_cpp='$CPP $CPPFLAGS'
145373
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
145374
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
145375
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
145376
 
 
145377
 
CC="$lt_save_CC"
145378
 
 
145379
 
 
145380
 
@%:@ Check whether --with-tags was given.
145381
 
if test "${with_tags+set}" = set; then
145382
 
  withval=$with_tags; tagnames="$withval"
145383
 
fi
145384
 
 
145385
 
 
145386
 
if test -f "$ltmain" && test -n "$tagnames"; then
145387
 
  if test ! -f "${ofile}"; then
145388
 
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
145389
 
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
145390
 
  fi
145391
 
 
145392
 
  if test -z "$LTCC"; then
145393
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
145394
 
    if test -z "$LTCC"; then
145395
 
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
145396
 
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
145397
 
    else
145398
 
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
145399
 
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
145400
 
    fi
145401
 
  fi
145402
 
  if test -z "$LTCFLAGS"; then
145403
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
145404
 
  fi
145405
 
 
145406
 
  # Extract list of available tagged configurations in $ofile.
145407
 
  # Note that this assumes the entire list is on one line.
145408
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
145409
 
 
145410
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
145411
 
  for tagname in $tagnames; do
145412
 
    IFS="$lt_save_ifs"
145413
 
    # Check whether tagname contains only valid characters
145414
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
145415
 
    "") ;;
145416
 
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
145417
 
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
145418
 
   { (exit 1); exit 1; }; }
145419
 
        ;;
145420
 
    esac
145421
 
 
145422
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
145423
 
    then
145424
 
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
145425
 
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
145426
 
   { (exit 1); exit 1; }; }
145427
 
    fi
145428
 
 
145429
 
    # Update the list of available tags.
145430
 
    if test -n "$tagname"; then
145431
 
      echo appending configuration tag \"$tagname\" to $ofile
145432
 
 
145433
 
      case $tagname in
145434
 
      CXX)
145435
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
145436
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
145437
 
            (test "X$CXX" != "Xg++"))) ; then
145438
 
          
145439
 
ac_ext=cpp
145440
 
ac_cpp='$CXXCPP $CPPFLAGS'
145441
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
145442
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
145443
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
145444
 
 
145445
 
 
145446
 
 
145447
 
 
145448
 
archive_cmds_need_lc_CXX=no
145449
 
allow_undefined_flag_CXX=
145450
 
always_export_symbols_CXX=no
145451
 
archive_expsym_cmds_CXX=
145452
 
export_dynamic_flag_spec_CXX=
145453
 
hardcode_direct_CXX=no
145454
 
hardcode_libdir_flag_spec_CXX=
145455
 
hardcode_libdir_flag_spec_ld_CXX=
145456
 
hardcode_libdir_separator_CXX=
145457
 
hardcode_minus_L_CXX=no
145458
 
hardcode_shlibpath_var_CXX=unsupported
145459
 
hardcode_automatic_CXX=no
145460
 
module_cmds_CXX=
145461
 
module_expsym_cmds_CXX=
145462
 
link_all_deplibs_CXX=unknown
145463
 
old_archive_cmds_CXX=$old_archive_cmds
145464
 
no_undefined_flag_CXX=
145465
 
whole_archive_flag_spec_CXX=
145466
 
enable_shared_with_static_runtimes_CXX=no
145467
 
 
145468
 
# Dependencies to place before and after the object being linked:
145469
 
predep_objects_CXX=
145470
 
postdep_objects_CXX=
145471
 
predeps_CXX=
145472
 
postdeps_CXX=
145473
 
compiler_lib_search_path_CXX=
145474
 
compiler_lib_search_dirs_CXX=
145475
 
 
145476
 
# Source file extension for C++ test sources.
145477
 
ac_ext=cpp
145478
 
 
145479
 
# Object file extension for compiled C++ test sources.
145480
 
objext=o
145481
 
objext_CXX=$objext
145482
 
 
145483
 
# Code to be used in simple compile tests
145484
 
lt_simple_compile_test_code="int some_variable = 0;"
145485
 
 
145486
 
# Code to be used in simple link tests
145487
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
145488
 
 
145489
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
145490
 
 
145491
 
# If no C compiler was specified, use CC.
145492
 
LTCC=${LTCC-"$CC"}
145493
 
 
145494
 
# If no C compiler flags were specified, use CFLAGS.
145495
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
145496
 
 
145497
 
# Allow CC to be a program name with arguments.
145498
 
compiler=$CC
145499
 
 
145500
 
 
145501
 
# save warnings/boilerplate of simple test code
145502
 
ac_outfile=conftest.$ac_objext
145503
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
145504
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
145505
 
_lt_compiler_boilerplate=`cat conftest.err`
145506
 
$rm conftest*
145507
 
 
145508
 
ac_outfile=conftest.$ac_objext
145509
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
145510
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
145511
 
_lt_linker_boilerplate=`cat conftest.err`
145512
 
$rm -r conftest*
145513
 
 
145514
 
 
145515
 
# Allow CC to be a program name with arguments.
145516
 
lt_save_CC=$CC
145517
 
lt_save_LD=$LD
145518
 
lt_save_GCC=$GCC
145519
 
GCC=$GXX
145520
 
lt_save_with_gnu_ld=$with_gnu_ld
145521
 
lt_save_path_LD=$lt_cv_path_LD
145522
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
145523
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
145524
 
else
145525
 
  unset lt_cv_prog_gnu_ld
145526
 
fi
145527
 
if test -n "${lt_cv_path_LDCXX+set}"; then
145528
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
145529
 
else
145530
 
  unset lt_cv_path_LD
145531
 
fi
145532
 
test -z "${LDCXX+set}" || LD=$LDCXX
145533
 
CC=${CXX-"c++"}
145534
 
compiler=$CC
145535
 
compiler_CXX=$CC
145536
 
for cc_temp in $compiler""; do
145537
 
  case $cc_temp in
145538
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
145539
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
145540
 
    \-*) ;;
145541
 
    *) break;;
145542
 
  esac
145543
 
done
145544
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
145545
 
 
145546
 
 
145547
 
# We don't want -fno-exception wen compiling C++ code, so set the
145548
 
# no_builtin_flag separately
145549
 
if test "$GXX" = yes; then
145550
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
145551
 
else
145552
 
  lt_prog_compiler_no_builtin_flag_CXX=
145553
 
fi
145554
 
 
145555
 
if test "$GXX" = yes; then
145556
 
  # Set up default GNU C++ configuration
145557
 
 
145558
 
  
145559
 
@%:@ Check whether --with-gnu-ld was given.
145560
 
if test "${with_gnu_ld+set}" = set; then
145561
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
145562
 
else
145563
 
  with_gnu_ld=no
145564
 
fi
145565
 
 
145566
 
ac_prog=ld
145567
 
if test "$GCC" = yes; then
145568
 
  # Check if gcc -print-prog-name=ld gives a path.
145569
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
145570
 
$as_echo_n "checking for ld used by $CC... " >&6; }
145571
 
  case $host in
145572
 
  *-*-mingw*)
145573
 
    # gcc leaves a trailing carriage return which upsets mingw
145574
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
145575
 
  *)
145576
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
145577
 
  esac
145578
 
  case $ac_prog in
145579
 
    # Accept absolute paths.
145580
 
    [\\/]* | ?:[\\/]*)
145581
 
      re_direlt='/[^/][^/]*/\.\./'
145582
 
      # Canonicalize the pathname of ld
145583
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
145584
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
145585
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
145586
 
      done
145587
 
      test -z "$LD" && LD="$ac_prog"
145588
 
      ;;
145589
 
  "")
145590
 
    # If it fails, then pretend we aren't using GCC.
145591
 
    ac_prog=ld
145592
 
    ;;
145593
 
  *)
145594
 
    # If it is relative, then search for the first ld in PATH.
145595
 
    with_gnu_ld=unknown
145596
 
    ;;
145597
 
  esac
145598
 
elif test "$with_gnu_ld" = yes; then
145599
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
145600
 
$as_echo_n "checking for GNU ld... " >&6; }
145601
 
else
145602
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
145603
 
$as_echo_n "checking for non-GNU ld... " >&6; }
145604
 
fi
145605
 
if test "${lt_cv_path_LD+set}" = set; then
145606
 
  $as_echo_n "(cached) " >&6
145607
 
else
145608
 
  if test -z "$LD"; then
145609
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
145610
 
  for ac_dir in $PATH; do
145611
 
    IFS="$lt_save_ifs"
145612
 
    test -z "$ac_dir" && ac_dir=.
145613
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
145614
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
145615
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
145616
 
      # but apparently some variants of GNU ld only accept -v.
145617
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
145618
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
145619
 
      *GNU* | *'with BFD'*)
145620
 
        test "$with_gnu_ld" != no && break
145621
 
        ;;
145622
 
      *)
145623
 
        test "$with_gnu_ld" != yes && break
145624
 
        ;;
145625
 
      esac
145626
 
    fi
145627
 
  done
145628
 
  IFS="$lt_save_ifs"
145629
 
else
145630
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
145631
 
fi
145632
 
fi
145633
 
 
145634
 
LD="$lt_cv_path_LD"
145635
 
if test -n "$LD"; then
145636
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
145637
 
$as_echo "$LD" >&6; }
145638
 
else
145639
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
145640
 
$as_echo "no" >&6; }
145641
 
fi
145642
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
145643
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
145644
 
   { (exit 1); exit 1; }; }
145645
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
145646
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
145647
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
145648
 
  $as_echo_n "(cached) " >&6
145649
 
else
145650
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
145651
 
case `$LD -v 2>&1 </dev/null` in
145652
 
*GNU* | *'with BFD'*)
145653
 
  lt_cv_prog_gnu_ld=yes
145654
 
  ;;
145655
 
*)
145656
 
  lt_cv_prog_gnu_ld=no
145657
 
  ;;
145658
 
esac
145659
 
fi
145660
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
145661
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
145662
 
with_gnu_ld=$lt_cv_prog_gnu_ld
145663
 
 
145664
 
 
145665
 
 
145666
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
145667
 
  # archiving commands below assume that GNU ld is being used.
145668
 
  if test "$with_gnu_ld" = yes; then
145669
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
145670
 
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
145671
 
 
145672
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
145673
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
145674
 
 
145675
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
145676
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
145677
 
    #     investigate it a little bit more. (MM)
145678
 
    wlarc='${wl}'
145679
 
 
145680
 
    # ancient GNU ld didn't support --whole-archive et. al.
145681
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
145682
 
        grep 'no-whole-archive' > /dev/null; then
145683
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
145684
 
    else
145685
 
      whole_archive_flag_spec_CXX=
145686
 
    fi
145687
 
  else
145688
 
    with_gnu_ld=no
145689
 
    wlarc=
145690
 
 
145691
 
    # A generic and very simple default shared library creation
145692
 
    # command for GNU C++ for the case where it uses the native
145693
 
    # linker, instead of GNU ld.  If possible, this setting should
145694
 
    # overridden to take advantage of the native linker features on
145695
 
    # the platform it is being used on.
145696
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
145697
 
  fi
145698
 
 
145699
 
  # Commands to make compiler produce verbose output that lists
145700
 
  # what "hidden" libraries, object files and flags are used when
145701
 
  # linking a shared library.
145702
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
145703
 
 
145704
 
else
145705
 
  GXX=no
145706
 
  with_gnu_ld=no
145707
 
  wlarc=
145708
 
fi
145709
 
 
145710
 
# PORTME: fill in a description of your system's C++ link characteristics
145711
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
145712
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
145713
 
ld_shlibs_CXX=yes
145714
 
case $host_os in
145715
 
  aix3*)
145716
 
    # FIXME: insert proper C++ library support
145717
 
    ld_shlibs_CXX=no
145718
 
    ;;
145719
 
  aix[4-9]*)
145720
 
    if test "$host_cpu" = ia64; then
145721
 
      # On IA64, the linker does run time linking by default, so we don't
145722
 
      # have to do anything special.
145723
 
      aix_use_runtimelinking=no
145724
 
      exp_sym_flag='-Bexport'
145725
 
      no_entry_flag=""
145726
 
    else
145727
 
      aix_use_runtimelinking=no
145728
 
 
145729
 
      # Test if we are trying to use run time linking or normal
145730
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
145731
 
      # need to do runtime linking.
145732
 
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
145733
 
        for ld_flag in $LDFLAGS; do
145734
 
          case $ld_flag in
145735
 
          *-brtl*)
145736
 
            aix_use_runtimelinking=yes
145737
 
            break
145738
 
            ;;
145739
 
          esac
145740
 
        done
145741
 
        ;;
145742
 
      esac
145743
 
 
145744
 
      exp_sym_flag='-bexport'
145745
 
      no_entry_flag='-bnoentry'
145746
 
    fi
145747
 
 
145748
 
    # When large executables or shared objects are built, AIX ld can
145749
 
    # have problems creating the table of contents.  If linking a library
145750
 
    # or program results in "error TOC overflow" add -mminimal-toc to
145751
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
145752
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
145753
 
 
145754
 
    archive_cmds_CXX=''
145755
 
    hardcode_direct_CXX=yes
145756
 
    hardcode_libdir_separator_CXX=':'
145757
 
    link_all_deplibs_CXX=yes
145758
 
 
145759
 
    if test "$GXX" = yes; then
145760
 
      case $host_os in aix4.[012]|aix4.[012].*)
145761
 
      # We only want to do this on AIX 4.2 and lower, the check
145762
 
      # below for broken collect2 doesn't work under 4.3+
145763
 
        collect2name=`${CC} -print-prog-name=collect2`
145764
 
        if test -f "$collect2name" && \
145765
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
145766
 
        then
145767
 
          # We have reworked collect2
145768
 
          :
145769
 
        else
145770
 
          # We have old collect2
145771
 
          hardcode_direct_CXX=unsupported
145772
 
          # It fails to find uninstalled libraries when the uninstalled
145773
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
145774
 
          # to unsupported forces relinking
145775
 
          hardcode_minus_L_CXX=yes
145776
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
145777
 
          hardcode_libdir_separator_CXX=
145778
 
        fi
145779
 
        ;;
145780
 
      esac
145781
 
      shared_flag='-shared'
145782
 
      if test "$aix_use_runtimelinking" = yes; then
145783
 
        shared_flag="$shared_flag "'${wl}-G'
145784
 
      fi
145785
 
    else
145786
 
      # not using gcc
145787
 
      if test "$host_cpu" = ia64; then
145788
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
145789
 
        # chokes on -Wl,-G. The following line is correct:
145790
 
        shared_flag='-G'
145791
 
      else
145792
 
        if test "$aix_use_runtimelinking" = yes; then
145793
 
          shared_flag='${wl}-G'
145794
 
        else
145795
 
          shared_flag='${wl}-bM:SRE'
145796
 
        fi
145797
 
      fi
145798
 
    fi
145799
 
 
145800
 
    # It seems that -bexpall does not export symbols beginning with
145801
 
    # underscore (_), so it is better to generate a list of symbols to export.
145802
 
    always_export_symbols_CXX=yes
145803
 
    if test "$aix_use_runtimelinking" = yes; then
145804
 
      # Warning - without using the other runtime loading flags (-brtl),
145805
 
      # -berok will link without error, but may produce a broken library.
145806
 
      allow_undefined_flag_CXX='-berok'
145807
 
      # Determine the default libpath from the value encoded in an empty executable.
145808
 
      
145809
 
cat > conftest.$ac_ext <<EOF
145810
 
#line __oline__ "configure"
145811
 
#include "confdefs.h"
145812
 
int main() {
145813
 
; return 0; }
145814
 
EOF
145815
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
145816
 
  (eval $ac_link) 2>&5
145817
 
  ac_status=$?
145818
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
145819
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
145820
 
 
145821
 
lt_aix_libpath_sed='
145822
 
    /Import File Strings/,/^$/ {
145823
 
        /^0/ {
145824
 
            s/^0  *\(.*\)$/\1/
145825
 
            p
145826
 
        }
145827
 
    }'
145828
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
145829
 
# Check for a 64-bit object if we didn't find anything.
145830
 
if test -z "$aix_libpath"; then
145831
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
145832
 
fi
145833
 
  rm -rf conftest*
145834
 
else
145835
 
  echo "configure: failed program was:" >&5
145836
 
  cat conftest.$ac_ext >&6
145837
 
fi
145838
 
rm -f conftest*
145839
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
145840
 
 
145841
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
145842
 
 
145843
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
145844
 
     else
145845
 
      if test "$host_cpu" = ia64; then
145846
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
145847
 
        allow_undefined_flag_CXX="-z nodefs"
145848
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
145849
 
      else
145850
 
        # Determine the default libpath from the value encoded in an empty executable.
145851
 
        
145852
 
cat > conftest.$ac_ext <<EOF
145853
 
#line __oline__ "configure"
145854
 
#include "confdefs.h"
145855
 
int main() {
145856
 
; return 0; }
145857
 
EOF
145858
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
145859
 
  (eval $ac_link) 2>&5
145860
 
  ac_status=$?
145861
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
145862
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
145863
 
 
145864
 
lt_aix_libpath_sed='
145865
 
    /Import File Strings/,/^$/ {
145866
 
        /^0/ {
145867
 
            s/^0  *\(.*\)$/\1/
145868
 
            p
145869
 
        }
145870
 
    }'
145871
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
145872
 
# Check for a 64-bit object if we didn't find anything.
145873
 
if test -z "$aix_libpath"; then
145874
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
145875
 
fi
145876
 
  rm -rf conftest*
145877
 
else
145878
 
  echo "configure: failed program was:" >&5
145879
 
  cat conftest.$ac_ext >&6
145880
 
fi
145881
 
rm -f conftest*
145882
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
145883
 
 
145884
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
145885
 
        # Warning - without using the other run time loading flags,
145886
 
        # -berok will link without error, but may produce a broken library.
145887
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
145888
 
        allow_undefined_flag_CXX=' ${wl}-berok'
145889
 
        # Exported symbols can be pulled into shared objects from archives
145890
 
        whole_archive_flag_spec_CXX='$convenience'
145891
 
        archive_cmds_need_lc_CXX=yes
145892
 
        # This is similar to how AIX traditionally builds its shared libraries.
145893
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
145894
 
      fi
145895
 
    fi
145896
 
    ;;
145897
 
 
145898
 
  beos*)
145899
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
145900
 
      allow_undefined_flag_CXX=unsupported
145901
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
145902
 
      # support --undefined.  This deserves some investigation.  FIXME
145903
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
145904
 
    else
145905
 
      ld_shlibs_CXX=no
145906
 
    fi
145907
 
    ;;
145908
 
 
145909
 
  chorus*)
145910
 
    case $cc_basename in
145911
 
      *)
145912
 
        # FIXME: insert proper C++ library support
145913
 
        ld_shlibs_CXX=no
145914
 
        ;;
145915
 
    esac
145916
 
    ;;
145917
 
 
145918
 
  cygwin* | mingw* | pw32*)
145919
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
145920
 
    # as there is no search path for DLLs.
145921
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
145922
 
    allow_undefined_flag_CXX=unsupported
145923
 
    always_export_symbols_CXX=no
145924
 
    enable_shared_with_static_runtimes_CXX=yes
145925
 
 
145926
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
145927
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
145928
 
      # If the export-symbols file already is a .def file (1st line
145929
 
      # is EXPORTS), use it as is; otherwise, prepend...
145930
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
145931
 
        cp $export_symbols $output_objdir/$soname.def;
145932
 
      else
145933
 
        echo EXPORTS > $output_objdir/$soname.def;
145934
 
        cat $export_symbols >> $output_objdir/$soname.def;
145935
 
      fi~
145936
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
145937
 
    else
145938
 
      ld_shlibs_CXX=no
145939
 
    fi
145940
 
  ;;
145941
 
      darwin* | rhapsody*)
145942
 
      archive_cmds_need_lc_CXX=no
145943
 
      hardcode_direct_CXX=no
145944
 
      hardcode_automatic_CXX=yes
145945
 
      hardcode_shlibpath_var_CXX=unsupported
145946
 
      whole_archive_flag_spec_CXX=''
145947
 
      link_all_deplibs_CXX=yes
145948
 
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
145949
 
      if test "$GXX" = yes ; then
145950
 
      output_verbose_link_cmd='echo'
145951
 
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
145952
 
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
145953
 
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
145954
 
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
145955
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
145956
 
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
145957
 
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
145958
 
      fi
145959
 
      else
145960
 
      case $cc_basename in
145961
 
        xlc*)
145962
 
         output_verbose_link_cmd='echo'
145963
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
145964
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
145965
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
145966
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
145967
 
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
145968
 
          ;;
145969
 
       *)
145970
 
         ld_shlibs_CXX=no
145971
 
          ;;
145972
 
      esac
145973
 
      fi
145974
 
        ;;
145975
 
 
145976
 
  dgux*)
145977
 
    case $cc_basename in
145978
 
      ec++*)
145979
 
        # FIXME: insert proper C++ library support
145980
 
        ld_shlibs_CXX=no
145981
 
        ;;
145982
 
      ghcx*)
145983
 
        # Green Hills C++ Compiler
145984
 
        # FIXME: insert proper C++ library support
145985
 
        ld_shlibs_CXX=no
145986
 
        ;;
145987
 
      *)
145988
 
        # FIXME: insert proper C++ library support
145989
 
        ld_shlibs_CXX=no
145990
 
        ;;
145991
 
    esac
145992
 
    ;;
145993
 
  freebsd[12]*)
145994
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
145995
 
    ld_shlibs_CXX=no
145996
 
    ;;
145997
 
  freebsd-elf*)
145998
 
    archive_cmds_need_lc_CXX=no
145999
 
    ;;
146000
 
  freebsd* | dragonfly*)
146001
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
146002
 
    # conventions
146003
 
    ld_shlibs_CXX=yes
146004
 
    ;;
146005
 
  gnu*)
146006
 
    ;;
146007
 
  hpux9*)
146008
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
146009
 
    hardcode_libdir_separator_CXX=:
146010
 
    export_dynamic_flag_spec_CXX='${wl}-E'
146011
 
    hardcode_direct_CXX=yes
146012
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
146013
 
                                # but as the default
146014
 
                                # location of the library.
146015
 
 
146016
 
    case $cc_basename in
146017
 
    CC*)
146018
 
      # FIXME: insert proper C++ library support
146019
 
      ld_shlibs_CXX=no
146020
 
      ;;
146021
 
    aCC*)
146022
 
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
146023
 
      # Commands to make compiler produce verbose output that lists
146024
 
      # what "hidden" libraries, object files and flags are used when
146025
 
      # linking a shared library.
146026
 
      #
146027
 
      # There doesn't appear to be a way to prevent this compiler from
146028
 
      # explicitly linking system object files so we need to strip them
146029
 
      # from the output so that they don't get included in the library
146030
 
      # dependencies.
146031
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
146032
 
      ;;
146033
 
    *)
146034
 
      if test "$GXX" = yes; then
146035
 
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
146036
 
      else
146037
 
        # FIXME: insert proper C++ library support
146038
 
        ld_shlibs_CXX=no
146039
 
      fi
146040
 
      ;;
146041
 
    esac
146042
 
    ;;
146043
 
  hpux10*|hpux11*)
146044
 
    if test $with_gnu_ld = no; then
146045
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
146046
 
      hardcode_libdir_separator_CXX=:
146047
 
 
146048
 
      case $host_cpu in
146049
 
      hppa*64*|ia64*) ;;
146050
 
      *)
146051
 
        export_dynamic_flag_spec_CXX='${wl}-E'
146052
 
        ;;
146053
 
      esac
146054
 
    fi
146055
 
    case $host_cpu in
146056
 
    hppa*64*|ia64*)
146057
 
      hardcode_direct_CXX=no
146058
 
      hardcode_shlibpath_var_CXX=no
146059
 
      ;;
146060
 
    *)
146061
 
      hardcode_direct_CXX=yes
146062
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
146063
 
                                              # but as the default
146064
 
                                              # location of the library.
146065
 
      ;;
146066
 
    esac
146067
 
 
146068
 
    case $cc_basename in
146069
 
      CC*)
146070
 
        # FIXME: insert proper C++ library support
146071
 
        ld_shlibs_CXX=no
146072
 
        ;;
146073
 
      aCC*)
146074
 
        case $host_cpu in
146075
 
        hppa*64*)
146076
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
146077
 
          ;;
146078
 
        ia64*)
146079
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
146080
 
          ;;
146081
 
        *)
146082
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
146083
 
          ;;
146084
 
        esac
146085
 
        # Commands to make compiler produce verbose output that lists
146086
 
        # what "hidden" libraries, object files and flags are used when
146087
 
        # linking a shared library.
146088
 
        #
146089
 
        # There doesn't appear to be a way to prevent this compiler from
146090
 
        # explicitly linking system object files so we need to strip them
146091
 
        # from the output so that they don't get included in the library
146092
 
        # dependencies.
146093
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
146094
 
        ;;
146095
 
      *)
146096
 
        if test "$GXX" = yes; then
146097
 
          if test $with_gnu_ld = no; then
146098
 
            case $host_cpu in
146099
 
            hppa*64*)
146100
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
146101
 
              ;;
146102
 
            ia64*)
146103
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
146104
 
              ;;
146105
 
            *)
146106
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
146107
 
              ;;
146108
 
            esac
146109
 
          fi
146110
 
        else
146111
 
          # FIXME: insert proper C++ library support
146112
 
          ld_shlibs_CXX=no
146113
 
        fi
146114
 
        ;;
146115
 
    esac
146116
 
    ;;
146117
 
  interix[3-9]*)
146118
 
    hardcode_direct_CXX=no
146119
 
    hardcode_shlibpath_var_CXX=no
146120
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
146121
 
    export_dynamic_flag_spec_CXX='${wl}-E'
146122
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
146123
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
146124
 
    # default) and relocated if they conflict, which is a slow very memory
146125
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
146126
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
146127
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
146128
 
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
146129
 
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
146130
 
    ;;
146131
 
  irix5* | irix6*)
146132
 
    case $cc_basename in
146133
 
      CC*)
146134
 
        # SGI C++
146135
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
146136
 
 
146137
 
        # Archives containing C++ object files must be created using
146138
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
146139
 
        # necessary to make sure instantiated templates are included
146140
 
        # in the archive.
146141
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
146142
 
        ;;
146143
 
      *)
146144
 
        if test "$GXX" = yes; then
146145
 
          if test "$with_gnu_ld" = no; then
146146
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
146147
 
          else
146148
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
146149
 
          fi
146150
 
        fi
146151
 
        link_all_deplibs_CXX=yes
146152
 
        ;;
146153
 
    esac
146154
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
146155
 
    hardcode_libdir_separator_CXX=:
146156
 
    ;;
146157
 
  linux* | k*bsd*-gnu)
146158
 
    case $cc_basename in
146159
 
      KCC*)
146160
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
146161
 
 
146162
 
        # KCC will only create a shared library if the output file
146163
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
146164
 
        # to its proper name (with version) after linking.
146165
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
146166
 
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
146167
 
        # Commands to make compiler produce verbose output that lists
146168
 
        # what "hidden" libraries, object files and flags are used when
146169
 
        # linking a shared library.
146170
 
        #
146171
 
        # There doesn't appear to be a way to prevent this compiler from
146172
 
        # explicitly linking system object files so we need to strip them
146173
 
        # from the output so that they don't get included in the library
146174
 
        # dependencies.
146175
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
146176
 
 
146177
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
146178
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
146179
 
 
146180
 
        # Archives containing C++ object files must be created using
146181
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
146182
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
146183
 
        ;;
146184
 
      icpc*)
146185
 
        # Intel C++
146186
 
        with_gnu_ld=yes
146187
 
        # version 8.0 and above of icpc choke on multiply defined symbols
146188
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
146189
 
        # earlier do not add the objects themselves.
146190
 
        case `$CC -V 2>&1` in
146191
 
        *"Version 7."*)
146192
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
146193
 
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
146194
 
          ;;
146195
 
        *)  # Version 8.0 or newer
146196
 
          tmp_idyn=
146197
 
          case $host_cpu in
146198
 
            ia64*) tmp_idyn=' -i_dynamic';;
146199
 
          esac
146200
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
146201
 
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
146202
 
          ;;
146203
 
        esac
146204
 
        archive_cmds_need_lc_CXX=no
146205
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
146206
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
146207
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
146208
 
        ;;
146209
 
      pgCC* | pgcpp*)
146210
 
        # Portland Group C++ compiler
146211
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
146212
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
146213
 
 
146214
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
146215
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
146216
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
146217
 
        ;;
146218
 
      cxx*)
146219
 
        # Compaq C++
146220
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
146221
 
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
146222
 
 
146223
 
        runpath_var=LD_RUN_PATH
146224
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
146225
 
        hardcode_libdir_separator_CXX=:
146226
 
 
146227
 
        # Commands to make compiler produce verbose output that lists
146228
 
        # what "hidden" libraries, object files and flags are used when
146229
 
        # linking a shared library.
146230
 
        #
146231
 
        # There doesn't appear to be a way to prevent this compiler from
146232
 
        # explicitly linking system object files so we need to strip them
146233
 
        # from the output so that they don't get included in the library
146234
 
        # dependencies.
146235
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
146236
 
        ;;
146237
 
      *)
146238
 
        case `$CC -V 2>&1 | sed 5q` in
146239
 
        *Sun\ C*)
146240
 
          # Sun C++ 5.9
146241
 
          no_undefined_flag_CXX=' -zdefs'
146242
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
146243
 
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
146244
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
146245
 
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
146246
 
 
146247
 
          # Not sure whether something based on
146248
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
146249
 
          # would be better.
146250
 
          output_verbose_link_cmd='echo'
146251
 
 
146252
 
          # Archives containing C++ object files must be created using
146253
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
146254
 
          # necessary to make sure instantiated templates are included
146255
 
          # in the archive.
146256
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
146257
 
          ;;
146258
 
        esac
146259
 
        ;;
146260
 
    esac
146261
 
    ;;
146262
 
  lynxos*)
146263
 
    # FIXME: insert proper C++ library support
146264
 
    ld_shlibs_CXX=no
146265
 
    ;;
146266
 
  m88k*)
146267
 
    # FIXME: insert proper C++ library support
146268
 
    ld_shlibs_CXX=no
146269
 
    ;;
146270
 
  mvs*)
146271
 
    case $cc_basename in
146272
 
      cxx*)
146273
 
        # FIXME: insert proper C++ library support
146274
 
        ld_shlibs_CXX=no
146275
 
        ;;
146276
 
      *)
146277
 
        # FIXME: insert proper C++ library support
146278
 
        ld_shlibs_CXX=no
146279
 
        ;;
146280
 
    esac
146281
 
    ;;
146282
 
  netbsd*)
146283
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
146284
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
146285
 
      wlarc=
146286
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
146287
 
      hardcode_direct_CXX=yes
146288
 
      hardcode_shlibpath_var_CXX=no
146289
 
    fi
146290
 
    # Workaround some broken pre-1.5 toolchains
146291
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
146292
 
    ;;
146293
 
  openbsd2*)
146294
 
    # C++ shared libraries are fairly broken
146295
 
    ld_shlibs_CXX=no
146296
 
    ;;
146297
 
  openbsd*)
146298
 
    if test -f /usr/libexec/ld.so; then
146299
 
      hardcode_direct_CXX=yes
146300
 
      hardcode_shlibpath_var_CXX=no
146301
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
146302
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
146303
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
146304
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
146305
 
        export_dynamic_flag_spec_CXX='${wl}-E'
146306
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
146307
 
      fi
146308
 
      output_verbose_link_cmd='echo'
146309
 
    else
146310
 
      ld_shlibs_CXX=no
146311
 
    fi
146312
 
    ;;
146313
 
  osf3*)
146314
 
    case $cc_basename in
146315
 
      KCC*)
146316
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
146317
 
 
146318
 
        # KCC will only create a shared library if the output file
146319
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
146320
 
        # to its proper name (with version) after linking.
146321
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
146322
 
 
146323
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
146324
 
        hardcode_libdir_separator_CXX=:
146325
 
 
146326
 
        # Archives containing C++ object files must be created using
146327
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
146328
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
146329
 
 
146330
 
        ;;
146331
 
      RCC*)
146332
 
        # Rational C++ 2.4.1
146333
 
        # FIXME: insert proper C++ library support
146334
 
        ld_shlibs_CXX=no
146335
 
        ;;
146336
 
      cxx*)
146337
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
146338
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
146339
 
 
146340
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
146341
 
        hardcode_libdir_separator_CXX=:
146342
 
 
146343
 
        # Commands to make compiler produce verbose output that lists
146344
 
        # what "hidden" libraries, object files and flags are used when
146345
 
        # linking a shared library.
146346
 
        #
146347
 
        # There doesn't appear to be a way to prevent this compiler from
146348
 
        # explicitly linking system object files so we need to strip them
146349
 
        # from the output so that they don't get included in the library
146350
 
        # dependencies.
146351
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
146352
 
        ;;
146353
 
      *)
146354
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
146355
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
146356
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
146357
 
 
146358
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
146359
 
          hardcode_libdir_separator_CXX=:
146360
 
 
146361
 
          # Commands to make compiler produce verbose output that lists
146362
 
          # what "hidden" libraries, object files and flags are used when
146363
 
          # linking a shared library.
146364
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
146365
 
 
146366
 
        else
146367
 
          # FIXME: insert proper C++ library support
146368
 
          ld_shlibs_CXX=no
146369
 
        fi
146370
 
        ;;
146371
 
    esac
146372
 
    ;;
146373
 
  osf4* | osf5*)
146374
 
    case $cc_basename in
146375
 
      KCC*)
146376
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
146377
 
 
146378
 
        # KCC will only create a shared library if the output file
146379
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
146380
 
        # to its proper name (with version) after linking.
146381
 
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
146382
 
 
146383
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
146384
 
        hardcode_libdir_separator_CXX=:
146385
 
 
146386
 
        # Archives containing C++ object files must be created using
146387
 
        # the KAI C++ compiler.
146388
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
146389
 
        ;;
146390
 
      RCC*)
146391
 
        # Rational C++ 2.4.1
146392
 
        # FIXME: insert proper C++ library support
146393
 
        ld_shlibs_CXX=no
146394
 
        ;;
146395
 
      cxx*)
146396
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
146397
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
146398
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
146399
 
          echo "-hidden">> $lib.exp~
146400
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
146401
 
          $rm $lib.exp'
146402
 
 
146403
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
146404
 
        hardcode_libdir_separator_CXX=:
146405
 
 
146406
 
        # Commands to make compiler produce verbose output that lists
146407
 
        # what "hidden" libraries, object files and flags are used when
146408
 
        # linking a shared library.
146409
 
        #
146410
 
        # There doesn't appear to be a way to prevent this compiler from
146411
 
        # explicitly linking system object files so we need to strip them
146412
 
        # from the output so that they don't get included in the library
146413
 
        # dependencies.
146414
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
146415
 
        ;;
146416
 
      *)
146417
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
146418
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
146419
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
146420
 
 
146421
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
146422
 
          hardcode_libdir_separator_CXX=:
146423
 
 
146424
 
          # Commands to make compiler produce verbose output that lists
146425
 
          # what "hidden" libraries, object files and flags are used when
146426
 
          # linking a shared library.
146427
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
146428
 
 
146429
 
        else
146430
 
          # FIXME: insert proper C++ library support
146431
 
          ld_shlibs_CXX=no
146432
 
        fi
146433
 
        ;;
146434
 
    esac
146435
 
    ;;
146436
 
  psos*)
146437
 
    # FIXME: insert proper C++ library support
146438
 
    ld_shlibs_CXX=no
146439
 
    ;;
146440
 
  sunos4*)
146441
 
    case $cc_basename in
146442
 
      CC*)
146443
 
        # Sun C++ 4.x
146444
 
        # FIXME: insert proper C++ library support
146445
 
        ld_shlibs_CXX=no
146446
 
        ;;
146447
 
      lcc*)
146448
 
        # Lucid
146449
 
        # FIXME: insert proper C++ library support
146450
 
        ld_shlibs_CXX=no
146451
 
        ;;
146452
 
      *)
146453
 
        # FIXME: insert proper C++ library support
146454
 
        ld_shlibs_CXX=no
146455
 
        ;;
146456
 
    esac
146457
 
    ;;
146458
 
  solaris*)
146459
 
    case $cc_basename in
146460
 
      CC*)
146461
 
        # Sun C++ 4.2, 5.x and Centerline C++
146462
 
        archive_cmds_need_lc_CXX=yes
146463
 
        no_undefined_flag_CXX=' -zdefs'
146464
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
146465
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
146466
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
146467
 
 
146468
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
146469
 
        hardcode_shlibpath_var_CXX=no
146470
 
        case $host_os in
146471
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
146472
 
          *)
146473
 
            # The compiler driver will combine and reorder linker options,
146474
 
            # but understands `-z linker_flag'.
146475
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
146476
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
146477
 
            ;;
146478
 
        esac
146479
 
        link_all_deplibs_CXX=yes
146480
 
 
146481
 
        output_verbose_link_cmd='echo'
146482
 
 
146483
 
        # Archives containing C++ object files must be created using
146484
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
146485
 
        # necessary to make sure instantiated templates are included
146486
 
        # in the archive.
146487
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
146488
 
        ;;
146489
 
      gcx*)
146490
 
        # Green Hills C++ Compiler
146491
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
146492
 
 
146493
 
        # The C++ compiler must be used to create the archive.
146494
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
146495
 
        ;;
146496
 
      *)
146497
 
        # GNU C++ compiler with Solaris linker
146498
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
146499
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
146500
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
146501
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
146502
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
146503
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
146504
 
 
146505
 
            # Commands to make compiler produce verbose output that lists
146506
 
            # what "hidden" libraries, object files and flags are used when
146507
 
            # linking a shared library.
146508
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
146509
 
          else
146510
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
146511
 
            # platform.
146512
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
146513
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
146514
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
146515
 
 
146516
 
            # Commands to make compiler produce verbose output that lists
146517
 
            # what "hidden" libraries, object files and flags are used when
146518
 
            # linking a shared library.
146519
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
146520
 
          fi
146521
 
 
146522
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
146523
 
          case $host_os in
146524
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
146525
 
          *)
146526
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
146527
 
            ;;
146528
 
          esac
146529
 
        fi
146530
 
        ;;
146531
 
    esac
146532
 
    ;;
146533
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
146534
 
    no_undefined_flag_CXX='${wl}-z,text'
146535
 
    archive_cmds_need_lc_CXX=no
146536
 
    hardcode_shlibpath_var_CXX=no
146537
 
    runpath_var='LD_RUN_PATH'
146538
 
 
146539
 
    case $cc_basename in
146540
 
      CC*)
146541
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
146542
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
146543
 
        ;;
146544
 
      *)
146545
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
146546
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
146547
 
        ;;
146548
 
    esac
146549
 
    ;;
146550
 
  sysv5* | sco3.2v5* | sco5v6*)
146551
 
    # Note: We can NOT use -z defs as we might desire, because we do not
146552
 
    # link with -lc, and that would cause any symbols used from libc to
146553
 
    # always be unresolved, which means just about no library would
146554
 
    # ever link correctly.  If we're not using GNU ld we use -z text
146555
 
    # though, which does catch some bad symbols but isn't as heavy-handed
146556
 
    # as -z defs.
146557
 
    # For security reasons, it is highly recommended that you always
146558
 
    # use absolute paths for naming shared libraries, and exclude the
146559
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
146560
 
    # requires that you compile everything twice, which is a pain.
146561
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
146562
 
    # non-empty value in the environment.  Most likely only useful for
146563
 
    # creating official distributions of packages.
146564
 
    # This is a hack until libtool officially supports absolute path
146565
 
    # names for shared libraries.
146566
 
    no_undefined_flag_CXX='${wl}-z,text'
146567
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
146568
 
    archive_cmds_need_lc_CXX=no
146569
 
    hardcode_shlibpath_var_CXX=no
146570
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
146571
 
    hardcode_libdir_separator_CXX=':'
146572
 
    link_all_deplibs_CXX=yes
146573
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
146574
 
    runpath_var='LD_RUN_PATH'
146575
 
 
146576
 
    case $cc_basename in
146577
 
      CC*)
146578
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
146579
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
146580
 
        ;;
146581
 
      *)
146582
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
146583
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
146584
 
        ;;
146585
 
    esac
146586
 
    ;;
146587
 
  tandem*)
146588
 
    case $cc_basename in
146589
 
      NCC*)
146590
 
        # NonStop-UX NCC 3.20
146591
 
        # FIXME: insert proper C++ library support
146592
 
        ld_shlibs_CXX=no
146593
 
        ;;
146594
 
      *)
146595
 
        # FIXME: insert proper C++ library support
146596
 
        ld_shlibs_CXX=no
146597
 
        ;;
146598
 
    esac
146599
 
    ;;
146600
 
  vxworks*)
146601
 
    # FIXME: insert proper C++ library support
146602
 
    ld_shlibs_CXX=no
146603
 
    ;;
146604
 
  *)
146605
 
    # FIXME: insert proper C++ library support
146606
 
    ld_shlibs_CXX=no
146607
 
    ;;
146608
 
esac
146609
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
146610
 
$as_echo "$ld_shlibs_CXX" >&6; }
146611
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
146612
 
 
146613
 
GCC_CXX="$GXX"
146614
 
LD_CXX="$LD"
146615
 
 
146616
 
## CAVEAT EMPTOR:
146617
 
## There is no encapsulation within the following macros, do not change
146618
 
## the running order or otherwise move them around unless you know exactly
146619
 
## what you are doing...
146620
 
cat > conftest.$ac_ext <<EOF
146621
 
class Foo
146622
 
{
146623
 
public:
146624
 
  Foo (void) { a = 0; }
146625
 
private:
146626
 
  int a;
146627
 
};
146628
 
EOF
146629
 
 
146630
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
146631
 
  (eval $ac_compile) 2>&5
146632
 
  ac_status=$?
146633
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
146634
 
  (exit $ac_status); }; then
146635
 
  # Parse the compiler output and extract the necessary
146636
 
  # objects, libraries and library flags.
146637
 
 
146638
 
  # Sentinel used to keep track of whether or not we are before
146639
 
  # the conftest object file.
146640
 
  pre_test_object_deps_done=no
146641
 
 
146642
 
  # The `*' in the case matches for architectures that use `case' in
146643
 
  # $output_verbose_cmd can trigger glob expansion during the loop
146644
 
  # eval without this substitution.
146645
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
146646
 
 
146647
 
  for p in `eval $output_verbose_link_cmd`; do
146648
 
    case $p in
146649
 
 
146650
 
    -L* | -R* | -l*)
146651
 
       # Some compilers place space between "-{L,R}" and the path.
146652
 
       # Remove the space.
146653
 
       if test $p = "-L" \
146654
 
          || test $p = "-R"; then
146655
 
         prev=$p
146656
 
         continue
146657
 
       else
146658
 
         prev=
146659
 
       fi
146660
 
 
146661
 
       if test "$pre_test_object_deps_done" = no; then
146662
 
         case $p in
146663
 
         -L* | -R*)
146664
 
           # Internal compiler library paths should come after those
146665
 
           # provided the user.  The postdeps already come after the
146666
 
           # user supplied libs so there is no need to process them.
146667
 
           if test -z "$compiler_lib_search_path_CXX"; then
146668
 
             compiler_lib_search_path_CXX="${prev}${p}"
146669
 
           else
146670
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
146671
 
           fi
146672
 
           ;;
146673
 
         # The "-l" case would never come before the object being
146674
 
         # linked, so don't bother handling this case.
146675
 
         esac
146676
 
       else
146677
 
         if test -z "$postdeps_CXX"; then
146678
 
           postdeps_CXX="${prev}${p}"
146679
 
         else
146680
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
146681
 
         fi
146682
 
       fi
146683
 
       ;;
146684
 
 
146685
 
    *.$objext)
146686
 
       # This assumes that the test object file only shows up
146687
 
       # once in the compiler output.
146688
 
       if test "$p" = "conftest.$objext"; then
146689
 
         pre_test_object_deps_done=yes
146690
 
         continue
146691
 
       fi
146692
 
 
146693
 
       if test "$pre_test_object_deps_done" = no; then
146694
 
         if test -z "$predep_objects_CXX"; then
146695
 
           predep_objects_CXX="$p"
146696
 
         else
146697
 
           predep_objects_CXX="$predep_objects_CXX $p"
146698
 
         fi
146699
 
       else
146700
 
         if test -z "$postdep_objects_CXX"; then
146701
 
           postdep_objects_CXX="$p"
146702
 
         else
146703
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
146704
 
         fi
146705
 
       fi
146706
 
       ;;
146707
 
 
146708
 
    *) ;; # Ignore the rest.
146709
 
 
146710
 
    esac
146711
 
  done
146712
 
 
146713
 
  # Clean up.
146714
 
  rm -f a.out a.exe
146715
 
else
146716
 
  echo "libtool.m4: error: problem compiling CXX test program"
146717
 
fi
146718
 
 
146719
 
$rm -f confest.$objext
146720
 
 
146721
 
compiler_lib_search_dirs_CXX=
146722
 
if test -n "$compiler_lib_search_path_CXX"; then
146723
 
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
146724
 
fi
146725
 
 
146726
 
# PORTME: override above test on systems where it is broken
146727
 
case $host_os in
146728
 
interix[3-9]*)
146729
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
146730
 
  # hack all around it, let's just trust "g++" to DTRT.
146731
 
  predep_objects_CXX=
146732
 
  postdep_objects_CXX=
146733
 
  postdeps_CXX=
146734
 
  ;;
146735
 
 
146736
 
linux*)
146737
 
  case `$CC -V 2>&1 | sed 5q` in
146738
 
  *Sun\ C*)
146739
 
    # Sun C++ 5.9
146740
 
    #
146741
 
    # The more standards-conforming stlport4 library is
146742
 
    # incompatible with the Cstd library. Avoid specifying
146743
 
    # it if it's in CXXFLAGS. Ignore libCrun as
146744
 
    # -library=stlport4 depends on it.
146745
 
    case " $CXX $CXXFLAGS " in
146746
 
    *" -library=stlport4 "*)
146747
 
      solaris_use_stlport4=yes
146748
 
      ;;
146749
 
    esac
146750
 
    if test "$solaris_use_stlport4" != yes; then
146751
 
      postdeps_CXX='-library=Cstd -library=Crun'
146752
 
    fi
146753
 
    ;;
146754
 
  esac
146755
 
  ;;
146756
 
 
146757
 
solaris*)
146758
 
  case $cc_basename in
146759
 
  CC*)
146760
 
    # The more standards-conforming stlport4 library is
146761
 
    # incompatible with the Cstd library. Avoid specifying
146762
 
    # it if it's in CXXFLAGS. Ignore libCrun as
146763
 
    # -library=stlport4 depends on it.
146764
 
    case " $CXX $CXXFLAGS " in
146765
 
    *" -library=stlport4 "*)
146766
 
      solaris_use_stlport4=yes
146767
 
      ;;
146768
 
    esac
146769
 
 
146770
 
    # Adding this requires a known-good setup of shared libraries for
146771
 
    # Sun compiler versions before 5.6, else PIC objects from an old
146772
 
    # archive will be linked into the output, leading to subtle bugs.
146773
 
    if test "$solaris_use_stlport4" != yes; then
146774
 
      postdeps_CXX='-library=Cstd -library=Crun'
146775
 
    fi
146776
 
    ;;
146777
 
  esac
146778
 
  ;;
146779
 
esac
146780
 
 
146781
 
case " $postdeps_CXX " in
146782
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
146783
 
esac
146784
 
 
146785
 
lt_prog_compiler_wl_CXX=
146786
 
lt_prog_compiler_pic_CXX=
146787
 
lt_prog_compiler_static_CXX=
146788
 
 
146789
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
146790
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
146791
 
 
146792
 
  # C++ specific cases for pic, static, wl, etc.
146793
 
  if test "$GXX" = yes; then
146794
 
    lt_prog_compiler_wl_CXX='-Wl,'
146795
 
    lt_prog_compiler_static_CXX='-static'
146796
 
 
146797
 
    case $host_os in
146798
 
    aix*)
146799
 
      # All AIX code is PIC.
146800
 
      if test "$host_cpu" = ia64; then
146801
 
        # AIX 5 now supports IA64 processor
146802
 
        lt_prog_compiler_static_CXX='-Bstatic'
146803
 
      fi
146804
 
      ;;
146805
 
    amigaos*)
146806
 
      # FIXME: we need at least 68020 code to build shared libraries, but
146807
 
      # adding the `-m68020' flag to GCC prevents building anything better,
146808
 
      # like `-m68040'.
146809
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
146810
 
      ;;
146811
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
146812
 
      # PIC is the default for these OSes.
146813
 
      ;;
146814
 
    mingw* | cygwin* | os2* | pw32*)
146815
 
      # This hack is so that the source file can tell whether it is being
146816
 
      # built for inclusion in a dll (and should export symbols for example).
146817
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
146818
 
      # (--disable-auto-import) libraries
146819
 
          lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
146820
 
      ;;
146821
 
    darwin* | rhapsody*)
146822
 
      # PIC is the default on this platform
146823
 
      # Common symbols not allowed in MH_DYLIB files
146824
 
      lt_prog_compiler_pic_CXX='-fno-common'
146825
 
      ;;
146826
 
    *djgpp*)
146827
 
      # DJGPP does not support shared libraries at all
146828
 
      lt_prog_compiler_pic_CXX=
146829
 
      ;;
146830
 
    interix[3-9]*)
146831
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
146832
 
      # Instead, we relocate shared libraries at runtime.
146833
 
      ;;
146834
 
    sysv4*MP*)
146835
 
      if test -d /usr/nec; then
146836
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
146837
 
      fi
146838
 
      ;;
146839
 
    hpux*)
146840
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
146841
 
      # not for PA HP-UX.
146842
 
      case $host_cpu in
146843
 
      hppa*64*|ia64*)
146844
 
        ;;
146845
 
      *)
146846
 
        lt_prog_compiler_pic_CXX='-fPIC'
146847
 
        ;;
146848
 
      esac
146849
 
      ;;
146850
 
    *)
146851
 
      lt_prog_compiler_pic_CXX='-fPIC'
146852
 
      ;;
146853
 
    esac
146854
 
  else
146855
 
    case $host_os in
146856
 
      aix[4-9]*)
146857
 
        # All AIX code is PIC.
146858
 
        if test "$host_cpu" = ia64; then
146859
 
          # AIX 5 now supports IA64 processor
146860
 
          lt_prog_compiler_static_CXX='-Bstatic'
146861
 
        else
146862
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
146863
 
        fi
146864
 
        ;;
146865
 
      chorus*)
146866
 
        case $cc_basename in
146867
 
        cxch68*)
146868
 
          # Green Hills C++ Compiler
146869
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
146870
 
          ;;
146871
 
        esac
146872
 
        ;;
146873
 
       darwin*)
146874
 
         # PIC is the default on this platform
146875
 
         # Common symbols not allowed in MH_DYLIB files
146876
 
         case $cc_basename in
146877
 
           xlc*)
146878
 
           lt_prog_compiler_pic_CXX='-qnocommon'
146879
 
           lt_prog_compiler_wl_CXX='-Wl,'
146880
 
           ;;
146881
 
         esac
146882
 
       ;;
146883
 
      dgux*)
146884
 
        case $cc_basename in
146885
 
          ec++*)
146886
 
            lt_prog_compiler_pic_CXX='-KPIC'
146887
 
            ;;
146888
 
          ghcx*)
146889
 
            # Green Hills C++ Compiler
146890
 
            lt_prog_compiler_pic_CXX='-pic'
146891
 
            ;;
146892
 
          *)
146893
 
            ;;
146894
 
        esac
146895
 
        ;;
146896
 
      freebsd* | dragonfly*)
146897
 
        # FreeBSD uses GNU C++
146898
 
        ;;
146899
 
      hpux9* | hpux10* | hpux11*)
146900
 
        case $cc_basename in
146901
 
          CC*)
146902
 
            lt_prog_compiler_wl_CXX='-Wl,'
146903
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
146904
 
            if test "$host_cpu" != ia64; then
146905
 
              lt_prog_compiler_pic_CXX='+Z'
146906
 
            fi
146907
 
            ;;
146908
 
          aCC*)
146909
 
            lt_prog_compiler_wl_CXX='-Wl,'
146910
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
146911
 
            case $host_cpu in
146912
 
            hppa*64*|ia64*)
146913
 
              # +Z the default
146914
 
              ;;
146915
 
            *)
146916
 
              lt_prog_compiler_pic_CXX='+Z'
146917
 
              ;;
146918
 
            esac
146919
 
            ;;
146920
 
          *)
146921
 
            ;;
146922
 
        esac
146923
 
        ;;
146924
 
      interix*)
146925
 
        # This is c89, which is MS Visual C++ (no shared libs)
146926
 
        # Anyone wants to do a port?
146927
 
        ;;
146928
 
      irix5* | irix6* | nonstopux*)
146929
 
        case $cc_basename in
146930
 
          CC*)
146931
 
            lt_prog_compiler_wl_CXX='-Wl,'
146932
 
            lt_prog_compiler_static_CXX='-non_shared'
146933
 
            # CC pic flag -KPIC is the default.
146934
 
            ;;
146935
 
          *)
146936
 
            ;;
146937
 
        esac
146938
 
        ;;
146939
 
      linux* | k*bsd*-gnu)
146940
 
        case $cc_basename in
146941
 
          KCC*)
146942
 
            # KAI C++ Compiler
146943
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
146944
 
            lt_prog_compiler_pic_CXX='-fPIC'
146945
 
            ;;
146946
 
      ecpc*)
146947
 
        # old Intel C++ for x86_64 which still supported -KPIC.
146948
 
        lt_prog_compiler_wl_CXX='-Wl,'
146949
 
        lt_prog_compiler_pic_CXX='-KPIC'
146950
 
        lt_prog_compiler_static_CXX='-static'
146951
 
        ;;
146952
 
      icpc*)
146953
 
        # Intel C++, used to be incompatible with GCC.
146954
 
        lt_prog_compiler_wl_CXX='-Wl,'
146955
 
        lt_prog_compiler_pic_CXX='-fPIC'
146956
 
        lt_prog_compiler_static_CXX='-static'
146957
 
        ;;
146958
 
          pgCC* | pgcpp*)
146959
 
            # Portland Group C++ compiler.
146960
 
            lt_prog_compiler_wl_CXX='-Wl,'
146961
 
            lt_prog_compiler_pic_CXX='-fpic'
146962
 
            lt_prog_compiler_static_CXX='-Bstatic'
146963
 
            ;;
146964
 
          cxx*)
146965
 
            # Compaq C++
146966
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
146967
 
            # Linux and Compaq Tru64 Unix objects are PIC.
146968
 
            lt_prog_compiler_pic_CXX=
146969
 
            lt_prog_compiler_static_CXX='-non_shared'
146970
 
            ;;
146971
 
          *)
146972
 
            case `$CC -V 2>&1 | sed 5q` in
146973
 
            *Sun\ C*)
146974
 
              # Sun C++ 5.9
146975
 
              lt_prog_compiler_pic_CXX='-KPIC'
146976
 
              lt_prog_compiler_static_CXX='-Bstatic'
146977
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
146978
 
              ;;
146979
 
            esac
146980
 
            ;;
146981
 
        esac
146982
 
        ;;
146983
 
      lynxos*)
146984
 
        ;;
146985
 
      m88k*)
146986
 
        ;;
146987
 
      mvs*)
146988
 
        case $cc_basename in
146989
 
          cxx*)
146990
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
146991
 
            ;;
146992
 
          *)
146993
 
            ;;
146994
 
        esac
146995
 
        ;;
146996
 
      netbsd*)
146997
 
        ;;
146998
 
      osf3* | osf4* | osf5*)
146999
 
        case $cc_basename in
147000
 
          KCC*)
147001
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
147002
 
            ;;
147003
 
          RCC*)
147004
 
            # Rational C++ 2.4.1
147005
 
            lt_prog_compiler_pic_CXX='-pic'
147006
 
            ;;
147007
 
          cxx*)
147008
 
            # Digital/Compaq C++
147009
 
            lt_prog_compiler_wl_CXX='-Wl,'
147010
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
147011
 
            # Linux and Compaq Tru64 Unix objects are PIC.
147012
 
            lt_prog_compiler_pic_CXX=
147013
 
            lt_prog_compiler_static_CXX='-non_shared'
147014
 
            ;;
147015
 
          *)
147016
 
            ;;
147017
 
        esac
147018
 
        ;;
147019
 
      psos*)
147020
 
        ;;
147021
 
      solaris*)
147022
 
        case $cc_basename in
147023
 
          CC*)
147024
 
            # Sun C++ 4.2, 5.x and Centerline C++
147025
 
            lt_prog_compiler_pic_CXX='-KPIC'
147026
 
            lt_prog_compiler_static_CXX='-Bstatic'
147027
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
147028
 
            ;;
147029
 
          gcx*)
147030
 
            # Green Hills C++ Compiler
147031
 
            lt_prog_compiler_pic_CXX='-PIC'
147032
 
            ;;
147033
 
          *)
147034
 
            ;;
147035
 
        esac
147036
 
        ;;
147037
 
      sunos4*)
147038
 
        case $cc_basename in
147039
 
          CC*)
147040
 
            # Sun C++ 4.x
147041
 
            lt_prog_compiler_pic_CXX='-pic'
147042
 
            lt_prog_compiler_static_CXX='-Bstatic'
147043
 
            ;;
147044
 
          lcc*)
147045
 
            # Lucid
147046
 
            lt_prog_compiler_pic_CXX='-pic'
147047
 
            ;;
147048
 
          *)
147049
 
            ;;
147050
 
        esac
147051
 
        ;;
147052
 
      tandem*)
147053
 
        case $cc_basename in
147054
 
          NCC*)
147055
 
            # NonStop-UX NCC 3.20
147056
 
            lt_prog_compiler_pic_CXX='-KPIC'
147057
 
            ;;
147058
 
          *)
147059
 
            ;;
147060
 
        esac
147061
 
        ;;
147062
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
147063
 
        case $cc_basename in
147064
 
          CC*)
147065
 
            lt_prog_compiler_wl_CXX='-Wl,'
147066
 
            lt_prog_compiler_pic_CXX='-KPIC'
147067
 
            lt_prog_compiler_static_CXX='-Bstatic'
147068
 
            ;;
147069
 
        esac
147070
 
        ;;
147071
 
      vxworks*)
147072
 
        ;;
147073
 
      *)
147074
 
        lt_prog_compiler_can_build_shared_CXX=no
147075
 
        ;;
147076
 
    esac
147077
 
  fi
147078
 
 
147079
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
147080
 
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
147081
 
 
147082
 
#
147083
 
# Check to make sure the PIC flag actually works.
147084
 
#
147085
 
if test -n "$lt_prog_compiler_pic_CXX"; then
147086
 
  
147087
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
147088
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
147089
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
147090
 
  $as_echo_n "(cached) " >&6
147091
 
else
147092
 
  lt_cv_prog_compiler_pic_works_CXX=no
147093
 
  ac_outfile=conftest.$ac_objext
147094
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
147095
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
147096
 
   # Insert the option either (1) after the last *FLAGS variable, or
147097
 
   # (2) before a word containing "conftest.", or (3) at the end.
147098
 
   # Note that $ac_compile itself does not contain backslashes and begins
147099
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
147100
 
   # The option is referenced via a variable to avoid confusing sed.
147101
 
   lt_compile=`echo "$ac_compile" | $SED \
147102
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
147103
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
147104
 
   -e 's:$: $lt_compiler_flag:'`
147105
 
   (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
147106
 
   (eval "$lt_compile" 2>conftest.err)
147107
 
   ac_status=$?
147108
 
   cat conftest.err >&5
147109
 
   echo "configure:__oline__: \$? = $ac_status" >&5
147110
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
147111
 
     # The compiler can only warn and ignore the option if not recognized
147112
 
     # So say no if there are warnings other than the usual output.
147113
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
147114
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
147115
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
147116
 
       lt_cv_prog_compiler_pic_works_CXX=yes
147117
 
     fi
147118
 
   fi
147119
 
   $rm conftest*
147120
 
 
147121
 
fi
147122
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
147123
 
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
147124
 
 
147125
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
147126
 
    case $lt_prog_compiler_pic_CXX in
147127
 
     "" | " "*) ;;
147128
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
147129
 
     esac
147130
 
else
147131
 
    lt_prog_compiler_pic_CXX=
147132
 
     lt_prog_compiler_can_build_shared_CXX=no
147133
 
fi
147134
 
 
147135
 
fi
147136
 
case $host_os in
147137
 
  # For platforms which do not support PIC, -DPIC is meaningless:
147138
 
  *djgpp*)
147139
 
    lt_prog_compiler_pic_CXX=
147140
 
    ;;
147141
 
  *)
147142
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
147143
 
    ;;
147144
 
esac
147145
 
 
147146
 
#
147147
 
# Check to make sure the static flag actually works.
147148
 
#
147149
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
147150
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
147151
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
147152
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
147153
 
  $as_echo_n "(cached) " >&6
147154
 
else
147155
 
  lt_cv_prog_compiler_static_works_CXX=no
147156
 
   save_LDFLAGS="$LDFLAGS"
147157
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
147158
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
147159
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
147160
 
     # The linker can only warn and ignore the option if not recognized
147161
 
     # So say no if there are warnings
147162
 
     if test -s conftest.err; then
147163
 
       # Append any errors to the config.log.
147164
 
       cat conftest.err 1>&5
147165
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
147166
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
147167
 
       if diff conftest.exp conftest.er2 >/dev/null; then
147168
 
         lt_cv_prog_compiler_static_works_CXX=yes
147169
 
       fi
147170
 
     else
147171
 
       lt_cv_prog_compiler_static_works_CXX=yes
147172
 
     fi
147173
 
   fi
147174
 
   $rm -r conftest*
147175
 
   LDFLAGS="$save_LDFLAGS"
147176
 
 
147177
 
fi
147178
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
147179
 
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
147180
 
 
147181
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
147182
 
    :
147183
 
else
147184
 
    lt_prog_compiler_static_CXX=
147185
 
fi
147186
 
 
147187
 
 
147188
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
147189
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
147190
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
147191
 
  $as_echo_n "(cached) " >&6
147192
 
else
147193
 
  lt_cv_prog_compiler_c_o_CXX=no
147194
 
   $rm -r conftest 2>/dev/null
147195
 
   mkdir conftest
147196
 
   cd conftest
147197
 
   mkdir out
147198
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
147199
 
 
147200
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
147201
 
   # Insert the option either (1) after the last *FLAGS variable, or
147202
 
   # (2) before a word containing "conftest.", or (3) at the end.
147203
 
   # Note that $ac_compile itself does not contain backslashes and begins
147204
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
147205
 
   lt_compile=`echo "$ac_compile" | $SED \
147206
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
147207
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
147208
 
   -e 's:$: $lt_compiler_flag:'`
147209
 
   (eval echo "\"configure:__oline__: $lt_compile\"" >&5)
147210
 
   (eval "$lt_compile" 2>out/conftest.err)
147211
 
   ac_status=$?
147212
 
   cat out/conftest.err >&5
147213
 
   echo "configure:__oline__: \$? = $ac_status" >&5
147214
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
147215
 
   then
147216
 
     # The compiler can only warn and ignore the option if not recognized
147217
 
     # So say no if there are warnings
147218
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
147219
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
147220
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
147221
 
       lt_cv_prog_compiler_c_o_CXX=yes
147222
 
     fi
147223
 
   fi
147224
 
   chmod u+w . 2>&5
147225
 
   $rm conftest*
147226
 
   # SGI C++ compiler will create directory out/ii_files/ for
147227
 
   # template instantiation
147228
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
147229
 
   $rm out/* && rmdir out
147230
 
   cd ..
147231
 
   rmdir conftest
147232
 
   $rm conftest*
147233
 
 
147234
 
fi
147235
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
147236
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
147237
 
 
147238
 
 
147239
 
hard_links="nottested"
147240
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
147241
 
  # do not overwrite the value of need_locks provided by the user
147242
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
147243
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
147244
 
  hard_links=yes
147245
 
  $rm conftest*
147246
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
147247
 
  touch conftest.a
147248
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
147249
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
147250
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
147251
 
$as_echo "$hard_links" >&6; }
147252
 
  if test "$hard_links" = no; then
147253
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
147254
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
147255
 
    need_locks=warn
147256
 
  fi
147257
 
else
147258
 
  need_locks=no
147259
 
fi
147260
 
 
147261
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
147262
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
147263
 
 
147264
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
147265
 
  case $host_os in
147266
 
  aix[4-9]*)
147267
 
    # If we're using GNU nm, then we don't want the "-C" option.
147268
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
147269
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
147270
 
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
147271
 
    else
147272
 
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
147273
 
    fi
147274
 
    ;;
147275
 
  pw32*)
147276
 
    export_symbols_cmds_CXX="$ltdll_cmds"
147277
 
  ;;
147278
 
  cygwin* | mingw*)
147279
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
147280
 
  ;;
147281
 
  *)
147282
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
147283
 
  ;;
147284
 
  esac
147285
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
147286
 
 
147287
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
147288
 
$as_echo "$ld_shlibs_CXX" >&6; }
147289
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
147290
 
 
147291
 
#
147292
 
# Do we need to explicitly link libc?
147293
 
#
147294
 
case "x$archive_cmds_need_lc_CXX" in
147295
 
x|xyes)
147296
 
  # Assume -lc should be added
147297
 
  archive_cmds_need_lc_CXX=yes
147298
 
 
147299
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
147300
 
    case $archive_cmds_CXX in
147301
 
    *'~'*)
147302
 
      # FIXME: we may have to deal with multi-command sequences.
147303
 
      ;;
147304
 
    '$CC '*)
147305
 
      # Test whether the compiler implicitly links with -lc since on some
147306
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
147307
 
      # to ld, don't add -lc before -lgcc.
147308
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
147309
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
147310
 
      $rm conftest*
147311
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
147312
 
 
147313
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
147314
 
  (eval $ac_compile) 2>&5
147315
 
  ac_status=$?
147316
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
147317
 
  (exit $ac_status); } 2>conftest.err; then
147318
 
        soname=conftest
147319
 
        lib=conftest
147320
 
        libobjs=conftest.$ac_objext
147321
 
        deplibs=
147322
 
        wl=$lt_prog_compiler_wl_CXX
147323
 
        pic_flag=$lt_prog_compiler_pic_CXX
147324
 
        compiler_flags=-v
147325
 
        linker_flags=-v
147326
 
        verstring=
147327
 
        output_objdir=.
147328
 
        libname=conftest
147329
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
147330
 
        allow_undefined_flag_CXX=
147331
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
147332
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
147333
 
  ac_status=$?
147334
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
147335
 
  (exit $ac_status); }
147336
 
        then
147337
 
          archive_cmds_need_lc_CXX=no
147338
 
        else
147339
 
          archive_cmds_need_lc_CXX=yes
147340
 
        fi
147341
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
147342
 
      else
147343
 
        cat conftest.err 1>&5
147344
 
      fi
147345
 
      $rm conftest*
147346
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
147347
 
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
147348
 
      ;;
147349
 
    esac
147350
 
  fi
147351
 
  ;;
147352
 
esac
147353
 
 
147354
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
147355
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
147356
 
library_names_spec=
147357
 
libname_spec='lib$name'
147358
 
soname_spec=
147359
 
shrext_cmds=".so"
147360
 
postinstall_cmds=
147361
 
postuninstall_cmds=
147362
 
finish_cmds=
147363
 
finish_eval=
147364
 
shlibpath_var=
147365
 
shlibpath_overrides_runpath=unknown
147366
 
version_type=none
147367
 
dynamic_linker="$host_os ld.so"
147368
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
147369
 
 
147370
 
need_lib_prefix=unknown
147371
 
hardcode_into_libs=no
147372
 
 
147373
 
# when you set need_version to no, make sure it does not cause -set_version
147374
 
# flags to be left without arguments
147375
 
need_version=unknown
147376
 
 
147377
 
case $host_os in
147378
 
aix3*)
147379
 
  version_type=linux
147380
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
147381
 
  shlibpath_var=LIBPATH
147382
 
 
147383
 
  # AIX 3 has no versioning support, so we append a major version to the name.
147384
 
  soname_spec='${libname}${release}${shared_ext}$major'
147385
 
  ;;
147386
 
 
147387
 
aix[4-9]*)
147388
 
  version_type=linux
147389
 
  need_lib_prefix=no
147390
 
  need_version=no
147391
 
  hardcode_into_libs=yes
147392
 
  if test "$host_cpu" = ia64; then
147393
 
    # AIX 5 supports IA64
147394
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
147395
 
    shlibpath_var=LD_LIBRARY_PATH
147396
 
  else
147397
 
    # With GCC up to 2.95.x, collect2 would create an import file
147398
 
    # for dependence libraries.  The import file would start with
147399
 
    # the line `#! .'.  This would cause the generated library to
147400
 
    # depend on `.', always an invalid library.  This was fixed in
147401
 
    # development snapshots of GCC prior to 3.0.
147402
 
    case $host_os in
147403
 
      aix4 | aix4.[01] | aix4.[01].*)
147404
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
147405
 
           echo ' yes '
147406
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
147407
 
        :
147408
 
      else
147409
 
        can_build_shared=no
147410
 
      fi
147411
 
      ;;
147412
 
    esac
147413
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
147414
 
    # soname into executable. Probably we can add versioning support to
147415
 
    # collect2, so additional links can be useful in future.
147416
 
    if test "$aix_use_runtimelinking" = yes; then
147417
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
147418
 
      # instead of lib<name>.a to let people know that these are not
147419
 
      # typical AIX shared libraries.
147420
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147421
 
    else
147422
 
      # We preserve .a as extension for shared libraries through AIX4.2
147423
 
      # and later when we are not doing run time linking.
147424
 
      library_names_spec='${libname}${release}.a $libname.a'
147425
 
      soname_spec='${libname}${release}${shared_ext}$major'
147426
 
    fi
147427
 
    shlibpath_var=LIBPATH
147428
 
  fi
147429
 
  ;;
147430
 
 
147431
 
amigaos*)
147432
 
  library_names_spec='$libname.ixlibrary $libname.a'
147433
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
147434
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
147435
 
  ;;
147436
 
 
147437
 
beos*)
147438
 
  library_names_spec='${libname}${shared_ext}'
147439
 
  dynamic_linker="$host_os ld.so"
147440
 
  shlibpath_var=LIBRARY_PATH
147441
 
  ;;
147442
 
 
147443
 
bsdi[45]*)
147444
 
  version_type=linux
147445
 
  need_version=no
147446
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147447
 
  soname_spec='${libname}${release}${shared_ext}$major'
147448
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
147449
 
  shlibpath_var=LD_LIBRARY_PATH
147450
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
147451
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
147452
 
  # the default ld.so.conf also contains /usr/contrib/lib and
147453
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
147454
 
  # libtool to hard-code these into programs
147455
 
  ;;
147456
 
 
147457
 
cygwin* | mingw* | pw32*)
147458
 
  version_type=windows
147459
 
  shrext_cmds=".dll"
147460
 
  need_version=no
147461
 
  need_lib_prefix=no
147462
 
 
147463
 
  case $GCC,$host_os in
147464
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
147465
 
    library_names_spec='$libname.dll.a'
147466
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
147467
 
    postinstall_cmds='base_file=`basename \${file}`~
147468
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
147469
 
      dldir=$destdir/`dirname \$dlpath`~
147470
 
      test -d \$dldir || mkdir -p \$dldir~
147471
 
      $install_prog $dir/$dlname \$dldir/$dlname~
147472
 
      chmod a+x \$dldir/$dlname'
147473
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
147474
 
      dlpath=$dir/\$dldll~
147475
 
       $rm \$dlpath'
147476
 
    shlibpath_overrides_runpath=yes
147477
 
 
147478
 
    case $host_os in
147479
 
    cygwin*)
147480
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
147481
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
147482
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
147483
 
      ;;
147484
 
    mingw*)
147485
 
      # MinGW DLLs use traditional 'lib' prefix
147486
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
147487
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
147488
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
147489
 
        # It is most probably a Windows format PATH printed by
147490
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
147491
 
        # path with ; separators, and with drive letters. We can handle the
147492
 
        # drive letters (cygwin fileutils understands them), so leave them,
147493
 
        # especially as we might pass files found there to a mingw objdump,
147494
 
        # which wouldn't understand a cygwinified path. Ahh.
147495
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
147496
 
      else
147497
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
147498
 
      fi
147499
 
      ;;
147500
 
    pw32*)
147501
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
147502
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
147503
 
      ;;
147504
 
    esac
147505
 
    ;;
147506
 
 
147507
 
  *)
147508
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
147509
 
    ;;
147510
 
  esac
147511
 
  dynamic_linker='Win32 ld.exe'
147512
 
  # FIXME: first we should search . and the directory the executable is in
147513
 
  shlibpath_var=PATH
147514
 
  ;;
147515
 
 
147516
 
darwin* | rhapsody*)
147517
 
  dynamic_linker="$host_os dyld"
147518
 
  version_type=darwin
147519
 
  need_lib_prefix=no
147520
 
  need_version=no
147521
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
147522
 
  soname_spec='${libname}${release}${major}$shared_ext'
147523
 
  shlibpath_overrides_runpath=yes
147524
 
  shlibpath_var=DYLD_LIBRARY_PATH
147525
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
147526
 
   
147527
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
147528
 
  ;;
147529
 
 
147530
 
dgux*)
147531
 
  version_type=linux
147532
 
  need_lib_prefix=no
147533
 
  need_version=no
147534
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
147535
 
  soname_spec='${libname}${release}${shared_ext}$major'
147536
 
  shlibpath_var=LD_LIBRARY_PATH
147537
 
  ;;
147538
 
 
147539
 
freebsd1*)
147540
 
  dynamic_linker=no
147541
 
  ;;
147542
 
 
147543
 
freebsd* | dragonfly*)
147544
 
  # DragonFly does not have aout.  When/if they implement a new
147545
 
  # versioning mechanism, adjust this.
147546
 
  if test -x /usr/bin/objformat; then
147547
 
    objformat=`/usr/bin/objformat`
147548
 
  else
147549
 
    case $host_os in
147550
 
    freebsd[123]*) objformat=aout ;;
147551
 
    *) objformat=elf ;;
147552
 
    esac
147553
 
  fi
147554
 
  version_type=freebsd-$objformat
147555
 
  case $version_type in
147556
 
    freebsd-elf*)
147557
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
147558
 
      need_version=no
147559
 
      need_lib_prefix=no
147560
 
      ;;
147561
 
    freebsd-*)
147562
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
147563
 
      need_version=yes
147564
 
      ;;
147565
 
  esac
147566
 
  shlibpath_var=LD_LIBRARY_PATH
147567
 
  case $host_os in
147568
 
  freebsd2*)
147569
 
    shlibpath_overrides_runpath=yes
147570
 
    ;;
147571
 
  freebsd3.[01]* | freebsdelf3.[01]*)
147572
 
    shlibpath_overrides_runpath=yes
147573
 
    hardcode_into_libs=yes
147574
 
    ;;
147575
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
147576
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
147577
 
    shlibpath_overrides_runpath=no
147578
 
    hardcode_into_libs=yes
147579
 
    ;;
147580
 
  *) # from 4.6 on, and DragonFly
147581
 
    shlibpath_overrides_runpath=yes
147582
 
    hardcode_into_libs=yes
147583
 
    ;;
147584
 
  esac
147585
 
  ;;
147586
 
 
147587
 
gnu*)
147588
 
  version_type=linux
147589
 
  need_lib_prefix=no
147590
 
  need_version=no
147591
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
147592
 
  soname_spec='${libname}${release}${shared_ext}$major'
147593
 
  shlibpath_var=LD_LIBRARY_PATH
147594
 
  hardcode_into_libs=yes
147595
 
  ;;
147596
 
 
147597
 
hpux9* | hpux10* | hpux11*)
147598
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
147599
 
  # link against other versions.
147600
 
  version_type=sunos
147601
 
  need_lib_prefix=no
147602
 
  need_version=no
147603
 
  case $host_cpu in
147604
 
  ia64*)
147605
 
    shrext_cmds='.so'
147606
 
    hardcode_into_libs=yes
147607
 
    dynamic_linker="$host_os dld.so"
147608
 
    shlibpath_var=LD_LIBRARY_PATH
147609
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
147610
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147611
 
    soname_spec='${libname}${release}${shared_ext}$major'
147612
 
    if test "X$HPUX_IA64_MODE" = X32; then
147613
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
147614
 
    else
147615
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
147616
 
    fi
147617
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
147618
 
    ;;
147619
 
   hppa*64*)
147620
 
     shrext_cmds='.sl'
147621
 
     hardcode_into_libs=yes
147622
 
     dynamic_linker="$host_os dld.sl"
147623
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
147624
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
147625
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147626
 
     soname_spec='${libname}${release}${shared_ext}$major'
147627
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
147628
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
147629
 
     ;;
147630
 
   *)
147631
 
    shrext_cmds='.sl'
147632
 
    dynamic_linker="$host_os dld.sl"
147633
 
    shlibpath_var=SHLIB_PATH
147634
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
147635
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147636
 
    soname_spec='${libname}${release}${shared_ext}$major'
147637
 
    ;;
147638
 
  esac
147639
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
147640
 
  postinstall_cmds='chmod 555 $lib'
147641
 
  ;;
147642
 
 
147643
 
interix[3-9]*)
147644
 
  version_type=linux
147645
 
  need_lib_prefix=no
147646
 
  need_version=no
147647
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
147648
 
  soname_spec='${libname}${release}${shared_ext}$major'
147649
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
147650
 
  shlibpath_var=LD_LIBRARY_PATH
147651
 
  shlibpath_overrides_runpath=no
147652
 
  hardcode_into_libs=yes
147653
 
  ;;
147654
 
 
147655
 
irix5* | irix6* | nonstopux*)
147656
 
  case $host_os in
147657
 
    nonstopux*) version_type=nonstopux ;;
147658
 
    *)
147659
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
147660
 
                version_type=linux
147661
 
        else
147662
 
                version_type=irix
147663
 
        fi ;;
147664
 
  esac
147665
 
  need_lib_prefix=no
147666
 
  need_version=no
147667
 
  soname_spec='${libname}${release}${shared_ext}$major'
147668
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
147669
 
  case $host_os in
147670
 
  irix5* | nonstopux*)
147671
 
    libsuff= shlibsuff=
147672
 
    ;;
147673
 
  *)
147674
 
    case $LD in # libtool.m4 will add one of these switches to LD
147675
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
147676
 
      libsuff= shlibsuff= libmagic=32-bit;;
147677
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
147678
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
147679
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
147680
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
147681
 
    *) libsuff= shlibsuff= libmagic=never-match;;
147682
 
    esac
147683
 
    ;;
147684
 
  esac
147685
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
147686
 
  shlibpath_overrides_runpath=no
147687
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
147688
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
147689
 
  hardcode_into_libs=yes
147690
 
  ;;
147691
 
 
147692
 
# No shared lib support for Linux oldld, aout, or coff.
147693
 
linux*oldld* | linux*aout* | linux*coff*)
147694
 
  dynamic_linker=no
147695
 
  ;;
147696
 
 
147697
 
# This must be Linux ELF.
147698
 
linux* | k*bsd*-gnu)
147699
 
  version_type=linux
147700
 
  need_lib_prefix=no
147701
 
  need_version=no
147702
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147703
 
  soname_spec='${libname}${release}${shared_ext}$major'
147704
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
147705
 
  shlibpath_var=LD_LIBRARY_PATH
147706
 
  shlibpath_overrides_runpath=no
147707
 
  # This implies no fast_install, which is unacceptable.
147708
 
  # Some rework will be needed to allow for fast_install
147709
 
  # before this can be enabled.
147710
 
  hardcode_into_libs=yes
147711
 
 
147712
 
  # Append ld.so.conf contents to the search path
147713
 
  if test -f /etc/ld.so.conf; then
147714
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
147715
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
147716
 
  fi
147717
 
 
147718
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
147719
 
  # powerpc, because MkLinux only supported shared libraries with the
147720
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
147721
 
  # most powerpc-linux boxes support dynamic linking these days and
147722
 
  # people can always --disable-shared, the test was removed, and we
147723
 
  # assume the GNU/Linux dynamic linker is in use.
147724
 
  dynamic_linker='GNU/Linux ld.so'
147725
 
  ;;
147726
 
 
147727
 
netbsd*)
147728
 
  version_type=sunos
147729
 
  need_lib_prefix=no
147730
 
  need_version=no
147731
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
147732
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
147733
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
147734
 
    dynamic_linker='NetBSD (a.out) ld.so'
147735
 
  else
147736
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
147737
 
    soname_spec='${libname}${release}${shared_ext}$major'
147738
 
    dynamic_linker='NetBSD ld.elf_so'
147739
 
  fi
147740
 
  shlibpath_var=LD_LIBRARY_PATH
147741
 
  shlibpath_overrides_runpath=yes
147742
 
  hardcode_into_libs=yes
147743
 
  ;;
147744
 
 
147745
 
newsos6)
147746
 
  version_type=linux
147747
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147748
 
  shlibpath_var=LD_LIBRARY_PATH
147749
 
  shlibpath_overrides_runpath=yes
147750
 
  ;;
147751
 
 
147752
 
nto-qnx*)
147753
 
  version_type=linux
147754
 
  need_lib_prefix=no
147755
 
  need_version=no
147756
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147757
 
  soname_spec='${libname}${release}${shared_ext}$major'
147758
 
  shlibpath_var=LD_LIBRARY_PATH
147759
 
  shlibpath_overrides_runpath=yes
147760
 
  ;;
147761
 
 
147762
 
openbsd*)
147763
 
  version_type=sunos
147764
 
  sys_lib_dlsearch_path_spec="/usr/lib"
147765
 
  need_lib_prefix=no
147766
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
147767
 
  case $host_os in
147768
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
147769
 
    *)                         need_version=no  ;;
147770
 
  esac
147771
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
147772
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
147773
 
  shlibpath_var=LD_LIBRARY_PATH
147774
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
147775
 
    case $host_os in
147776
 
      openbsd2.[89] | openbsd2.[89].*)
147777
 
        shlibpath_overrides_runpath=no
147778
 
        ;;
147779
 
      *)
147780
 
        shlibpath_overrides_runpath=yes
147781
 
        ;;
147782
 
      esac
147783
 
  else
147784
 
    shlibpath_overrides_runpath=yes
147785
 
  fi
147786
 
  ;;
147787
 
 
147788
 
os2*)
147789
 
  libname_spec='$name'
147790
 
  shrext_cmds=".dll"
147791
 
  need_lib_prefix=no
147792
 
  library_names_spec='$libname${shared_ext} $libname.a'
147793
 
  dynamic_linker='OS/2 ld.exe'
147794
 
  shlibpath_var=LIBPATH
147795
 
  ;;
147796
 
 
147797
 
osf3* | osf4* | osf5*)
147798
 
  version_type=osf
147799
 
  need_lib_prefix=no
147800
 
  need_version=no
147801
 
  soname_spec='${libname}${release}${shared_ext}$major'
147802
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147803
 
  shlibpath_var=LD_LIBRARY_PATH
147804
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
147805
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
147806
 
  ;;
147807
 
 
147808
 
rdos*)
147809
 
  dynamic_linker=no
147810
 
  ;;
147811
 
 
147812
 
solaris*)
147813
 
  version_type=linux
147814
 
  need_lib_prefix=no
147815
 
  need_version=no
147816
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147817
 
  soname_spec='${libname}${release}${shared_ext}$major'
147818
 
  shlibpath_var=LD_LIBRARY_PATH
147819
 
  shlibpath_overrides_runpath=yes
147820
 
  hardcode_into_libs=yes
147821
 
  # ldd complains unless libraries are executable
147822
 
  postinstall_cmds='chmod +x $lib'
147823
 
  ;;
147824
 
 
147825
 
sunos4*)
147826
 
  version_type=sunos
147827
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
147828
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
147829
 
  shlibpath_var=LD_LIBRARY_PATH
147830
 
  shlibpath_overrides_runpath=yes
147831
 
  if test "$with_gnu_ld" = yes; then
147832
 
    need_lib_prefix=no
147833
 
  fi
147834
 
  need_version=yes
147835
 
  ;;
147836
 
 
147837
 
sysv4 | sysv4.3*)
147838
 
  version_type=linux
147839
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147840
 
  soname_spec='${libname}${release}${shared_ext}$major'
147841
 
  shlibpath_var=LD_LIBRARY_PATH
147842
 
  case $host_vendor in
147843
 
    sni)
147844
 
      shlibpath_overrides_runpath=no
147845
 
      need_lib_prefix=no
147846
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
147847
 
      runpath_var=LD_RUN_PATH
147848
 
      ;;
147849
 
    siemens)
147850
 
      need_lib_prefix=no
147851
 
      ;;
147852
 
    motorola)
147853
 
      need_lib_prefix=no
147854
 
      need_version=no
147855
 
      shlibpath_overrides_runpath=no
147856
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
147857
 
      ;;
147858
 
  esac
147859
 
  ;;
147860
 
 
147861
 
sysv4*MP*)
147862
 
  if test -d /usr/nec ;then
147863
 
    version_type=linux
147864
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
147865
 
    soname_spec='$libname${shared_ext}.$major'
147866
 
    shlibpath_var=LD_LIBRARY_PATH
147867
 
  fi
147868
 
  ;;
147869
 
 
147870
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
147871
 
  version_type=freebsd-elf
147872
 
  need_lib_prefix=no
147873
 
  need_version=no
147874
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
147875
 
  soname_spec='${libname}${release}${shared_ext}$major'
147876
 
  shlibpath_var=LD_LIBRARY_PATH
147877
 
  hardcode_into_libs=yes
147878
 
  if test "$with_gnu_ld" = yes; then
147879
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
147880
 
    shlibpath_overrides_runpath=no
147881
 
  else
147882
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
147883
 
    shlibpath_overrides_runpath=yes
147884
 
    case $host_os in
147885
 
      sco3.2v5*)
147886
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
147887
 
        ;;
147888
 
    esac
147889
 
  fi
147890
 
  sys_lib_dlsearch_path_spec='/usr/lib'
147891
 
  ;;
147892
 
 
147893
 
uts4*)
147894
 
  version_type=linux
147895
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147896
 
  soname_spec='${libname}${release}${shared_ext}$major'
147897
 
  shlibpath_var=LD_LIBRARY_PATH
147898
 
  ;;
147899
 
 
147900
 
*)
147901
 
  dynamic_linker=no
147902
 
  ;;
147903
 
esac
147904
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
147905
 
$as_echo "$dynamic_linker" >&6; }
147906
 
test "$dynamic_linker" = no && can_build_shared=no
147907
 
 
147908
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
147909
 
  $as_echo_n "(cached) " >&6
147910
 
else
147911
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
147912
 
fi
147913
 
 
147914
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
147915
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
147916
 
  $as_echo_n "(cached) " >&6
147917
 
else
147918
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
147919
 
fi
147920
 
 
147921
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
147922
 
 
147923
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
147924
 
if test "$GCC" = yes; then
147925
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
147926
 
fi
147927
 
 
147928
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
147929
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
147930
 
hardcode_action_CXX=
147931
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
147932
 
   test -n "$runpath_var_CXX" || \
147933
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
147934
 
 
147935
 
  # We can hardcode non-existant directories.
147936
 
  if test "$hardcode_direct_CXX" != no &&
147937
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
147938
 
     # have to relink, otherwise we might link with an installed library
147939
 
     # when we should be linking with a yet-to-be-installed one
147940
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
147941
 
     test "$hardcode_minus_L_CXX" != no; then
147942
 
    # Linking always hardcodes the temporary library directory.
147943
 
    hardcode_action_CXX=relink
147944
 
  else
147945
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
147946
 
    hardcode_action_CXX=immediate
147947
 
  fi
147948
 
else
147949
 
  # We cannot hardcode anything, or else we can only hardcode existing
147950
 
  # directories.
147951
 
  hardcode_action_CXX=unsupported
147952
 
fi
147953
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
147954
 
$as_echo "$hardcode_action_CXX" >&6; }
147955
 
 
147956
 
if test "$hardcode_action_CXX" = relink; then
147957
 
  # Fast installation is not supported
147958
 
  enable_fast_install=no
147959
 
elif test "$shlibpath_overrides_runpath" = yes ||
147960
 
     test "$enable_shared" = no; then
147961
 
  # Fast installation is not necessary
147962
 
  enable_fast_install=needless
147963
 
fi
147964
 
 
147965
 
 
147966
 
# The else clause should only fire when bootstrapping the
147967
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
147968
 
# with your package, and you will get complaints that there are
147969
 
# no rules to generate ltmain.sh.
147970
 
if test -f "$ltmain"; then
147971
 
  # See if we are running on zsh, and set the options which allow our commands through
147972
 
  # without removal of \ escapes.
147973
 
  if test -n "${ZSH_VERSION+set}" ; then
147974
 
    setopt NO_GLOB_SUBST
147975
 
  fi
147976
 
  # Now quote all the things that may contain metacharacters while being
147977
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
147978
 
  # variables and quote the copies for generation of the libtool script.
147979
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
147980
 
    SED SHELL STRIP \
147981
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
147982
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
147983
 
    deplibs_check_method reload_flag reload_cmds need_locks \
147984
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
147985
 
    lt_cv_sys_global_symbol_to_c_name_address \
147986
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
147987
 
    old_postinstall_cmds old_postuninstall_cmds \
147988
 
    compiler_CXX \
147989
 
    CC_CXX \
147990
 
    LD_CXX \
147991
 
    lt_prog_compiler_wl_CXX \
147992
 
    lt_prog_compiler_pic_CXX \
147993
 
    lt_prog_compiler_static_CXX \
147994
 
    lt_prog_compiler_no_builtin_flag_CXX \
147995
 
    export_dynamic_flag_spec_CXX \
147996
 
    thread_safe_flag_spec_CXX \
147997
 
    whole_archive_flag_spec_CXX \
147998
 
    enable_shared_with_static_runtimes_CXX \
147999
 
    old_archive_cmds_CXX \
148000
 
    old_archive_from_new_cmds_CXX \
148001
 
    predep_objects_CXX \
148002
 
    postdep_objects_CXX \
148003
 
    predeps_CXX \
148004
 
    postdeps_CXX \
148005
 
    compiler_lib_search_path_CXX \
148006
 
    compiler_lib_search_dirs_CXX \
148007
 
    archive_cmds_CXX \
148008
 
    archive_expsym_cmds_CXX \
148009
 
    postinstall_cmds_CXX \
148010
 
    postuninstall_cmds_CXX \
148011
 
    old_archive_from_expsyms_cmds_CXX \
148012
 
    allow_undefined_flag_CXX \
148013
 
    no_undefined_flag_CXX \
148014
 
    export_symbols_cmds_CXX \
148015
 
    hardcode_libdir_flag_spec_CXX \
148016
 
    hardcode_libdir_flag_spec_ld_CXX \
148017
 
    hardcode_libdir_separator_CXX \
148018
 
    hardcode_automatic_CXX \
148019
 
    module_cmds_CXX \
148020
 
    module_expsym_cmds_CXX \
148021
 
    lt_cv_prog_compiler_c_o_CXX \
148022
 
    fix_srcfile_path_CXX \
148023
 
    exclude_expsyms_CXX \
148024
 
    include_expsyms_CXX; do
148025
 
 
148026
 
    case $var in
148027
 
    old_archive_cmds_CXX | \
148028
 
    old_archive_from_new_cmds_CXX | \
148029
 
    archive_cmds_CXX | \
148030
 
    archive_expsym_cmds_CXX | \
148031
 
    module_cmds_CXX | \
148032
 
    module_expsym_cmds_CXX | \
148033
 
    old_archive_from_expsyms_cmds_CXX | \
148034
 
    export_symbols_cmds_CXX | \
148035
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
148036
 
    postinstall_cmds | postuninstall_cmds | \
148037
 
    old_postinstall_cmds | old_postuninstall_cmds | \
148038
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
148039
 
      # Double-quote double-evaled strings.
148040
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
148041
 
      ;;
148042
 
    *)
148043
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
148044
 
      ;;
148045
 
    esac
148046
 
  done
148047
 
 
148048
 
  case $lt_echo in
148049
 
  *'\$0 --fallback-echo"')
148050
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
148051
 
    ;;
148052
 
  esac
148053
 
 
148054
 
cfgfile="$ofile"
148055
 
 
148056
 
  cat <<__EOF__ >> "$cfgfile"
148057
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
148058
 
 
148059
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
148060
 
 
148061
 
# Shell to use when invoking shell scripts.
148062
 
SHELL=$lt_SHELL
148063
 
 
148064
 
# Whether or not to build shared libraries.
148065
 
build_libtool_libs=$enable_shared
148066
 
 
148067
 
# Whether or not to build static libraries.
148068
 
build_old_libs=$enable_static
148069
 
 
148070
 
# Whether or not to add -lc for building shared libraries.
148071
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
148072
 
 
148073
 
# Whether or not to disallow shared libs when runtime libs are static
148074
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
148075
 
 
148076
 
# Whether or not to optimize for fast installation.
148077
 
fast_install=$enable_fast_install
148078
 
 
148079
 
# The host system.
148080
 
host_alias=$host_alias
148081
 
host=$host
148082
 
host_os=$host_os
148083
 
 
148084
 
# The build system.
148085
 
build_alias=$build_alias
148086
 
build=$build
148087
 
build_os=$build_os
148088
 
 
148089
 
# An echo program that does not interpret backslashes.
148090
 
echo=$lt_echo
148091
 
 
148092
 
# The archiver.
148093
 
AR=$lt_AR
148094
 
AR_FLAGS=$lt_AR_FLAGS
148095
 
 
148096
 
# A C compiler.
148097
 
LTCC=$lt_LTCC
148098
 
 
148099
 
# LTCC compiler flags.
148100
 
LTCFLAGS=$lt_LTCFLAGS
148101
 
 
148102
 
# A language-specific compiler.
148103
 
CC=$lt_compiler_CXX
148104
 
 
148105
 
# Is the compiler the GNU C compiler?
148106
 
with_gcc=$GCC_CXX
148107
 
 
148108
 
# An ERE matcher.
148109
 
EGREP=$lt_EGREP
148110
 
 
148111
 
# The linker used to build libraries.
148112
 
LD=$lt_LD_CXX
148113
 
 
148114
 
# Whether we need hard or soft links.
148115
 
LN_S=$lt_LN_S
148116
 
 
148117
 
# A BSD-compatible nm program.
148118
 
NM=$lt_NM
148119
 
 
148120
 
# A symbol stripping program
148121
 
STRIP=$lt_STRIP
148122
 
 
148123
 
# Used to examine libraries when file_magic_cmd begins "file"
148124
 
MAGIC_CMD=$MAGIC_CMD
148125
 
 
148126
 
# Used on cygwin: DLL creation program.
148127
 
DLLTOOL="$DLLTOOL"
148128
 
 
148129
 
# Used on cygwin: object dumper.
148130
 
OBJDUMP="$OBJDUMP"
148131
 
 
148132
 
# Used on cygwin: assembler.
148133
 
AS="$AS"
148134
 
 
148135
 
# The name of the directory that contains temporary libtool files.
148136
 
objdir=$objdir
148137
 
 
148138
 
# How to create reloadable object files.
148139
 
reload_flag=$lt_reload_flag
148140
 
reload_cmds=$lt_reload_cmds
148141
 
 
148142
 
# How to pass a linker flag through the compiler.
148143
 
wl=$lt_lt_prog_compiler_wl_CXX
148144
 
 
148145
 
# Object file suffix (normally "o").
148146
 
objext="$ac_objext"
148147
 
 
148148
 
# Old archive suffix (normally "a").
148149
 
libext="$libext"
148150
 
 
148151
 
# Shared library suffix (normally ".so").
148152
 
shrext_cmds='$shrext_cmds'
148153
 
 
148154
 
# Executable file suffix (normally "").
148155
 
exeext="$exeext"
148156
 
 
148157
 
# Additional compiler flags for building library objects.
148158
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
148159
 
pic_mode=$pic_mode
148160
 
 
148161
 
# What is the maximum length of a command?
148162
 
max_cmd_len=$lt_cv_sys_max_cmd_len
148163
 
 
148164
 
# Does compiler simultaneously support -c and -o options?
148165
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
148166
 
 
148167
 
# Must we lock files when doing compilation?
148168
 
need_locks=$lt_need_locks
148169
 
 
148170
 
# Do we need the lib prefix for modules?
148171
 
need_lib_prefix=$need_lib_prefix
148172
 
 
148173
 
# Do we need a version for libraries?
148174
 
need_version=$need_version
148175
 
 
148176
 
# Whether dlopen is supported.
148177
 
dlopen_support=$enable_dlopen
148178
 
 
148179
 
# Whether dlopen of programs is supported.
148180
 
dlopen_self=$enable_dlopen_self
148181
 
 
148182
 
# Whether dlopen of statically linked programs is supported.
148183
 
dlopen_self_static=$enable_dlopen_self_static
148184
 
 
148185
 
# Compiler flag to prevent dynamic linking.
148186
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
148187
 
 
148188
 
# Compiler flag to turn off builtin functions.
148189
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
148190
 
 
148191
 
# Compiler flag to allow reflexive dlopens.
148192
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
148193
 
 
148194
 
# Compiler flag to generate shared objects directly from archives.
148195
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
148196
 
 
148197
 
# Compiler flag to generate thread-safe objects.
148198
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
148199
 
 
148200
 
# Library versioning type.
148201
 
version_type=$version_type
148202
 
 
148203
 
# Format of library name prefix.
148204
 
libname_spec=$lt_libname_spec
148205
 
 
148206
 
# List of archive names.  First name is the real one, the rest are links.
148207
 
# The last name is the one that the linker finds with -lNAME.
148208
 
library_names_spec=$lt_library_names_spec
148209
 
 
148210
 
# The coded name of the library, if different from the real name.
148211
 
soname_spec=$lt_soname_spec
148212
 
 
148213
 
# Commands used to build and install an old-style archive.
148214
 
RANLIB=$lt_RANLIB
148215
 
old_archive_cmds=$lt_old_archive_cmds_CXX
148216
 
old_postinstall_cmds=$lt_old_postinstall_cmds
148217
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
148218
 
 
148219
 
# Create an old-style archive from a shared archive.
148220
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
148221
 
 
148222
 
# Create a temporary old-style archive to link instead of a shared archive.
148223
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
148224
 
 
148225
 
# Commands used to build and install a shared archive.
148226
 
archive_cmds=$lt_archive_cmds_CXX
148227
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
148228
 
postinstall_cmds=$lt_postinstall_cmds
148229
 
postuninstall_cmds=$lt_postuninstall_cmds
148230
 
 
148231
 
# Commands used to build a loadable module (assumed same as above if empty)
148232
 
module_cmds=$lt_module_cmds_CXX
148233
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
148234
 
 
148235
 
# Commands to strip libraries.
148236
 
old_striplib=$lt_old_striplib
148237
 
striplib=$lt_striplib
148238
 
 
148239
 
# Dependencies to place before the objects being linked to create a
148240
 
# shared library.
148241
 
predep_objects=$lt_predep_objects_CXX
148242
 
 
148243
 
# Dependencies to place after the objects being linked to create a
148244
 
# shared library.
148245
 
postdep_objects=$lt_postdep_objects_CXX
148246
 
 
148247
 
# Dependencies to place before the objects being linked to create a
148248
 
# shared library.
148249
 
predeps=$lt_predeps_CXX
148250
 
 
148251
 
# Dependencies to place after the objects being linked to create a
148252
 
# shared library.
148253
 
postdeps=$lt_postdeps_CXX
148254
 
 
148255
 
# The directories searched by this compiler when creating a shared
148256
 
# library
148257
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
148258
 
 
148259
 
# The library search path used internally by the compiler when linking
148260
 
# a shared library.
148261
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
148262
 
 
148263
 
# Method to check whether dependent libraries are shared objects.
148264
 
deplibs_check_method=$lt_deplibs_check_method
148265
 
 
148266
 
# Command to use when deplibs_check_method == file_magic.
148267
 
file_magic_cmd=$lt_file_magic_cmd
148268
 
 
148269
 
# Flag that allows shared libraries with undefined symbols to be built.
148270
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
148271
 
 
148272
 
# Flag that forces no undefined symbols.
148273
 
no_undefined_flag=$lt_no_undefined_flag_CXX
148274
 
 
148275
 
# Commands used to finish a libtool library installation in a directory.
148276
 
finish_cmds=$lt_finish_cmds
148277
 
 
148278
 
# Same as above, but a single script fragment to be evaled but not shown.
148279
 
finish_eval=$lt_finish_eval
148280
 
 
148281
 
# Take the output of nm and produce a listing of raw symbols and C names.
148282
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
148283
 
 
148284
 
# Transform the output of nm in a proper C declaration
148285
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
148286
 
 
148287
 
# Transform the output of nm in a C name address pair
148288
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
148289
 
 
148290
 
# This is the shared library runtime path variable.
148291
 
runpath_var=$runpath_var
148292
 
 
148293
 
# This is the shared library path variable.
148294
 
shlibpath_var=$shlibpath_var
148295
 
 
148296
 
# Is shlibpath searched before the hard-coded library search path?
148297
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
148298
 
 
148299
 
# How to hardcode a shared library path into an executable.
148300
 
hardcode_action=$hardcode_action_CXX
148301
 
 
148302
 
# Whether we should hardcode library paths into libraries.
148303
 
hardcode_into_libs=$hardcode_into_libs
148304
 
 
148305
 
# Flag to hardcode \$libdir into a binary during linking.
148306
 
# This must work even if \$libdir does not exist.
148307
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
148308
 
 
148309
 
# If ld is used when linking, flag to hardcode \$libdir into
148310
 
# a binary during linking. This must work even if \$libdir does
148311
 
# not exist.
148312
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
148313
 
 
148314
 
# Whether we need a single -rpath flag with a separated argument.
148315
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
148316
 
 
148317
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
148318
 
# resulting binary.
148319
 
hardcode_direct=$hardcode_direct_CXX
148320
 
 
148321
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
148322
 
# resulting binary.
148323
 
hardcode_minus_L=$hardcode_minus_L_CXX
148324
 
 
148325
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
148326
 
# the resulting binary.
148327
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
148328
 
 
148329
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
148330
 
# and all subsequent libraries and executables linked against it.
148331
 
hardcode_automatic=$hardcode_automatic_CXX
148332
 
 
148333
 
# Variables whose values should be saved in libtool wrapper scripts and
148334
 
# restored at relink time.
148335
 
variables_saved_for_relink="$variables_saved_for_relink"
148336
 
 
148337
 
# Whether libtool must link a program against all its dependency libraries.
148338
 
link_all_deplibs=$link_all_deplibs_CXX
148339
 
 
148340
 
# Compile-time system search path for libraries
148341
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
148342
 
 
148343
 
# Run-time system search path for libraries
148344
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
148345
 
 
148346
 
# Fix the shell variable \$srcfile for the compiler.
148347
 
fix_srcfile_path=$lt_fix_srcfile_path
148348
 
 
148349
 
# Set to yes if exported symbols are required.
148350
 
always_export_symbols=$always_export_symbols_CXX
148351
 
 
148352
 
# The commands to list exported symbols.
148353
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
148354
 
 
148355
 
# The commands to extract the exported symbol list from a shared archive.
148356
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
148357
 
 
148358
 
# Symbols that should not be listed in the preloaded symbols.
148359
 
exclude_expsyms=$lt_exclude_expsyms_CXX
148360
 
 
148361
 
# Symbols that must always be exported.
148362
 
include_expsyms=$lt_include_expsyms_CXX
148363
 
 
148364
 
# ### END LIBTOOL TAG CONFIG: $tagname
148365
 
 
148366
 
__EOF__
148367
 
 
148368
 
 
148369
 
else
148370
 
  # If there is no Makefile yet, we rely on a make rule to execute
148371
 
  # `config.status --recheck' to rerun these tests and create the
148372
 
  # libtool script then.
148373
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
148374
 
  if test -f "$ltmain_in"; then
148375
 
    test -f Makefile && make "$ltmain"
148376
 
  fi
148377
 
fi
148378
 
 
148379
 
 
148380
 
ac_ext=c
148381
 
ac_cpp='$CPP $CPPFLAGS'
148382
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
148383
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
148384
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
148385
 
 
148386
 
CC=$lt_save_CC
148387
 
LDCXX=$LD
148388
 
LD=$lt_save_LD
148389
 
GCC=$lt_save_GCC
148390
 
with_gnu_ldcxx=$with_gnu_ld
148391
 
with_gnu_ld=$lt_save_with_gnu_ld
148392
 
lt_cv_path_LDCXX=$lt_cv_path_LD
148393
 
lt_cv_path_LD=$lt_save_path_LD
148394
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
148395
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
148396
 
 
148397
 
        else
148398
 
          tagname=""
148399
 
        fi
148400
 
        ;;
148401
 
 
148402
 
      *)
148403
 
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
148404
 
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
148405
 
   { (exit 1); exit 1; }; }
148406
 
        ;;
148407
 
      esac
148408
 
 
148409
 
      # Append the new tag name to the list of available tags.
148410
 
      if test -n "$tagname" ; then
148411
 
      available_tags="$available_tags $tagname"
148412
 
    fi
148413
 
    fi
148414
 
  done
148415
 
  IFS="$lt_save_ifs"
148416
 
 
148417
 
  # Now substitute the updated list of available tags.
148418
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
148419
 
    mv "${ofile}T" "$ofile"
148420
 
    chmod +x "$ofile"
148421
 
  else
148422
 
    rm -f "${ofile}T"
148423
 
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
148424
 
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
148425
 
   { (exit 1); exit 1; }; }
148426
 
  fi
148427
 
fi
148428
 
 
148429
 
 
148430
 
 
148431
 
# This can be used to rebuild libtool when needed
148432
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
148433
 
 
148434
 
# Always use our own libtool.
148435
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
148436
 
 
148437
 
# Prevent multiple expansion
148438
 
 
148439
 
 
148440
 
 
148441
 
 
148442
 
 
148443
 
 
148444
 
 
148445
 
  
148446
 
 
148447
 
 
148448
 
 
148449
 
if test "$enable_debug" != "yes"; then
148450
 
  
148451
 
  if test -z "$LIBTOOL"; then
148452
 
    LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
148453
 
  else
148454
 
    LIBTOOL="$LIBTOOL --silent"
148455
 
  fi
148456
 
 
148457
 
fi
148458
 
 
148459
 
 
148460
 
  if test -z "$LIBTOOL"; then
148461
 
    LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps'
148462
 
  else
148463
 
    LIBTOOL="$LIBTOOL --preserve-dup-deps"
148464
 
  fi
148465
 
 
148466
 
 
148467
 
test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<'
148468
 
test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<'
148469
 
SHARED_LIBTOOL='$(LIBTOOL)'
148470
 
 
148471
 
CC=$old_CC
148472
 
 
148473
 
 
148474
 
  { $as_echo "$as_me:$LINENO: result: " >&5
148475
 
$as_echo "" >&6; }
148476
 
  { $as_echo "$as_me:$LINENO: result: ${T_MD}Generating files${T_ME}" >&5
148477
 
$as_echo "${T_MD}Generating files${T_ME}" >&6; }
148478
 
 
148479
 
 
148480
 
CXXFLAGS_CLEAN=$CXXFLAGS
148481
 
CFLAGS_CLEAN=$CFLAGS
148482
 
CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
148483
 
INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
148484
 
CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
148485
 
 
148486
 
if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
148487
 
  pharcmd=pharcmd
148488
 
  pharcmd_install=install-pharcmd
148489
 
else
148490
 
  pharcmd=
148491
 
  pharcmd_install=
148492
 
fi;
148493
 
 
148494
 
all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_CLI_TARGET) $pharcmd"
148495
 
install_targets="$install_modules install-build install-headers install-programs $install_pear $pharcmd_install"
148496
 
 
148497
 
case $PHP_SAPI in
148498
 
  cli)
148499
 
    install_targets="$PHP_INSTALL_CLI_TARGET $install_targets"
148500
 
    ;;
148501
 
  *)
148502
 
    install_targets="install-sapi $PHP_INSTALL_CLI_TARGET $install_targets"
148503
 
    ;;
148504
 
esac
148505
 
 
148506
 
 
148507
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
148508
 
 
148509
 
 
148510
 
  PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
148511
 
 
148512
 
 
148513
 
 
148514
 
  
148515
 
    for header_file in Zend/ TSRM/ include/ main/ main/streams/; do
148516
 
      
148517
 
  
148518
 
  unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
148519
 
  
148520
 
  cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
148521
 
  if test -n "$unique" && test "`eval $cmd`" = "" ; then
148522
 
    eval "INSTALLHEADERS$unique=set"
148523
 
    
148524
 
        INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
148525
 
      
148526
 
  fi
148527
 
 
148528
 
    done 
148529
 
  
148530
 
 
148531
 
 
148532
 
 
148533
 
  
148534
 
  case TSRM in
148535
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
148536
 
  /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
148537
 
  *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
148538
 
  esac
148539
 
  
148540
 
  
148541
 
 
148542
 
  b_c_pre=$php_c_pre
148543
 
  b_cxx_pre=$php_cxx_pre
148544
 
  b_c_meta=$php_c_meta
148545
 
  b_cxx_meta=$php_cxx_meta
148546
 
  b_c_post=$php_c_post
148547
 
  b_cxx_post=$php_cxx_post
148548
 
  b_lo=$php_lo
148549
 
 
148550
 
 
148551
 
  old_IFS=$IFS
148552
 
  for ac_src in TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c; do
148553
 
  
148554
 
      IFS=.
148555
 
      set $ac_src
148556
 
      ac_obj=$1
148557
 
      IFS=$old_IFS
148558
 
      
148559
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
148560
 
 
148561
 
      case $ac_src in
148562
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148563
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148564
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148565
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
148566
 
      esac
148567
 
 
148568
 
    cat >>Makefile.objects<<EOF
148569
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
148570
 
        $ac_comp
148571
 
EOF
148572
 
  done
148573
 
 
148574
 
 
148575
 
 
148576
 
 
148577
 
  
148578
 
  case main in
148579
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
148580
 
  /*) ac_srcdir=`echo "main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
148581
 
  *) ac_srcdir="$abs_srcdir/main/"; ac_bdir="main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
148582
 
  esac
148583
 
  
148584
 
  
148585
 
 
148586
 
  b_c_pre=$php_c_pre
148587
 
  b_cxx_pre=$php_cxx_pre
148588
 
  b_c_meta=$php_c_meta
148589
 
  b_cxx_meta=$php_cxx_meta
148590
 
  b_c_post=$php_c_post
148591
 
  b_cxx_post=$php_cxx_post
148592
 
  b_lo=$php_lo
148593
 
 
148594
 
 
148595
 
  old_IFS=$IFS
148596
 
  for ac_src in main.c snprintf.c spprintf.c php_sprintf.c \
148597
 
       safe_mode.c fopen_wrappers.c alloca.c  php_scandir.c \
148598
 
       php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
148599
 
       strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c \
148600
 
       network.c php_open_temporary_file.c php_logos.c \
148601
 
       output.c getopt.c; do
148602
 
  
148603
 
      IFS=.
148604
 
      set $ac_src
148605
 
      ac_obj=$1
148606
 
      IFS=$old_IFS
148607
 
      
148608
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
148609
 
 
148610
 
      case $ac_src in
148611
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148612
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148613
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148614
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
148615
 
      esac
148616
 
 
148617
 
    cat >>Makefile.objects<<EOF
148618
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
148619
 
        $ac_comp
148620
 
EOF
148621
 
  done
148622
 
 
148623
 
 
148624
 
 
148625
 
 
148626
 
  
148627
 
  case main/streams in
148628
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
148629
 
  /*) ac_srcdir=`echo "main/streams"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
148630
 
  *) ac_srcdir="$abs_srcdir/main/streams/"; ac_bdir="main/streams/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
148631
 
  esac
148632
 
  
148633
 
  
148634
 
 
148635
 
  b_c_pre=$php_c_pre
148636
 
  b_cxx_pre=$php_cxx_pre
148637
 
  b_c_meta=$php_c_meta
148638
 
  b_cxx_meta=$php_cxx_meta
148639
 
  b_c_post=$php_c_post
148640
 
  b_cxx_post=$php_cxx_post
148641
 
  b_lo=$php_lo
148642
 
 
148643
 
 
148644
 
  old_IFS=$IFS
148645
 
  for ac_src in streams.c cast.c memory.c filter.c \
148646
 
       plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
148647
 
       glob_wrapper.c; do
148648
 
  
148649
 
      IFS=.
148650
 
      set $ac_src
148651
 
      ac_obj=$1
148652
 
      IFS=$old_IFS
148653
 
      
148654
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
148655
 
 
148656
 
      case $ac_src in
148657
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148658
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148659
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148660
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
148661
 
      esac
148662
 
 
148663
 
    cat >>Makefile.objects<<EOF
148664
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
148665
 
        $ac_comp
148666
 
EOF
148667
 
  done
148668
 
 
148669
 
 
148670
 
 
148671
 
 
148672
 
  
148673
 
  case /main in
148674
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
148675
 
  /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
148676
 
  *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
148677
 
  esac
148678
 
  
148679
 
  
148680
 
 
148681
 
  b_c_pre=$php_c_pre
148682
 
  b_cxx_pre=$php_cxx_pre
148683
 
  b_c_meta=$php_c_meta
148684
 
  b_cxx_meta=$php_cxx_meta
148685
 
  b_c_post=$php_c_post
148686
 
  b_cxx_post=$php_cxx_post
148687
 
  b_lo=$php_lo
148688
 
 
148689
 
 
148690
 
  old_IFS=$IFS
148691
 
  for ac_src in internal_functions.c; do
148692
 
  
148693
 
      IFS=.
148694
 
      set $ac_src
148695
 
      ac_obj=$1
148696
 
      IFS=$old_IFS
148697
 
      
148698
 
      PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
148699
 
 
148700
 
      case $ac_src in
148701
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148702
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148703
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148704
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
148705
 
      esac
148706
 
 
148707
 
    cat >>Makefile.objects<<EOF
148708
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
148709
 
        $ac_comp
148710
 
EOF
148711
 
  done
148712
 
 
148713
 
 
148714
 
 
148715
 
case $host_alias in
148716
 
  *netware*)
148717
 
    
148718
 
  
148719
 
    BUILD_DIR="$BUILD_DIR win32"
148720
 
  
148721
 
 
148722
 
    
148723
 
  
148724
 
    BUILD_DIR="$BUILD_DIR netware"
148725
 
  
148726
 
 
148727
 
    ;;
148728
 
  *)
148729
 
    
148730
 
  
148731
 
  case /main in
148732
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
148733
 
  /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
148734
 
  *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
148735
 
  esac
148736
 
  
148737
 
  
148738
 
 
148739
 
  b_c_pre=$php_c_pre
148740
 
  b_cxx_pre=$php_cxx_pre
148741
 
  b_c_meta=$php_c_meta
148742
 
  b_cxx_meta=$php_cxx_meta
148743
 
  b_c_post=$php_c_post
148744
 
  b_cxx_post=$php_cxx_post
148745
 
  b_lo=$php_lo
148746
 
 
148747
 
 
148748
 
  old_IFS=$IFS
148749
 
  for ac_src in internal_functions_cli.c; do
148750
 
  
148751
 
      IFS=.
148752
 
      set $ac_src
148753
 
      ac_obj=$1
148754
 
      IFS=$old_IFS
148755
 
      
148756
 
      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
148757
 
 
148758
 
      case $ac_src in
148759
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148760
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148761
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148762
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
148763
 
      esac
148764
 
 
148765
 
    cat >>Makefile.objects<<EOF
148766
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
148767
 
        $ac_comp
148768
 
EOF
148769
 
  done
148770
 
 
148771
 
 
148772
 
    ;;
148773
 
esac
148774
 
 
148775
 
 
148776
 
  
148777
 
  case Zend in
148778
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
148779
 
  /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
148780
 
  *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
148781
 
  esac
148782
 
  
148783
 
  
148784
 
 
148785
 
  b_c_pre=$php_c_pre
148786
 
  b_cxx_pre=$php_cxx_pre
148787
 
  b_c_meta=$php_c_meta
148788
 
  b_cxx_meta=$php_cxx_meta
148789
 
  b_c_post=$php_c_post
148790
 
  b_cxx_post=$php_cxx_post
148791
 
  b_lo=$php_lo
148792
 
 
148793
 
 
148794
 
  old_IFS=$IFS
148795
 
  for ac_src in \
148796
 
    zend_language_parser.c zend_language_scanner.c \
148797
 
    zend_ini_parser.c zend_ini_scanner.c \
148798
 
    zend_alloc.c zend_compile.c zend_constants.c zend_dynamic_array.c \
148799
 
    zend_execute_API.c zend_highlight.c zend_llist.c \
148800
 
    zend_opcode.c zend_operators.c zend_ptr_stack.c zend_stack.c \
148801
 
    zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \
148802
 
    zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
148803
 
    zend_ini.c zend_qsort.c zend_multibyte.c zend_ts_hash.c zend_stream.c \
148804
 
    zend_iterators.c zend_interfaces.c zend_exceptions.c zend_strtod.c zend_gc.c \
148805
 
    zend_closures.c zend_float.c; do
148806
 
  
148807
 
      IFS=.
148808
 
      set $ac_src
148809
 
      ac_obj=$1
148810
 
      IFS=$old_IFS
148811
 
      
148812
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
148813
 
 
148814
 
      case $ac_src in
148815
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148816
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148817
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148818
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
148819
 
      esac
148820
 
 
148821
 
    cat >>Makefile.objects<<EOF
148822
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
148823
 
        $ac_comp
148824
 
EOF
148825
 
  done
148826
 
 
148827
 
 
148828
 
 
148829
 
if test -r "$abs_srcdir/Zend/zend_objects.c"; then
148830
 
  
148831
 
  
148832
 
  case Zend in
148833
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
148834
 
  /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
148835
 
  *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
148836
 
  esac
148837
 
  
148838
 
  
148839
 
 
148840
 
  b_c_pre=$php_c_pre
148841
 
  b_cxx_pre=$php_cxx_pre
148842
 
  b_c_meta=$php_c_meta
148843
 
  b_cxx_meta=$php_cxx_meta
148844
 
  b_c_post=$php_c_post
148845
 
  b_cxx_post=$php_cxx_post
148846
 
  b_lo=$php_lo
148847
 
 
148848
 
 
148849
 
  old_IFS=$IFS
148850
 
  for ac_src in zend_objects.c zend_object_handlers.c zend_objects_API.c zend_default_classes.c; do
148851
 
  
148852
 
      IFS=.
148853
 
      set $ac_src
148854
 
      ac_obj=$1
148855
 
      IFS=$old_IFS
148856
 
      
148857
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
148858
 
 
148859
 
      case $ac_src in
148860
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148861
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148862
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
148863
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
148864
 
      esac
148865
 
 
148866
 
    cat >>Makefile.objects<<EOF
148867
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
148868
 
        $ac_comp
148869
 
EOF
148870
 
  done
148871
 
 
148872
 
 
148873
 
fi
148874
 
 
148875
 
if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
148876
 
  flag=-O0
148877
 
else
148878
 
  flag=
148879
 
fi
148880
 
 
148881
 
 
148882
 
  case Zend in
148883
 
  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
148884
 
  /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
148885
 
  *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
148886
 
  esac
148887
 
  
148888
 
  
148889
 
 
148890
 
  b_c_pre=$php_c_pre
148891
 
  b_cxx_pre=$php_cxx_pre
148892
 
  b_c_meta=$php_c_meta
148893
 
  b_cxx_meta=$php_cxx_meta
148894
 
  b_c_post=$php_c_post
148895
 
  b_cxx_post=$php_cxx_post
148896
 
  b_lo=$php_lo
148897
 
 
148898
 
 
148899
 
  old_IFS=$IFS
148900
 
  for ac_src in zend_execute.c; do
148901
 
  
148902
 
      IFS=.
148903
 
      set $ac_src
148904
 
      ac_obj=$1
148905
 
      IFS=$old_IFS
148906
 
      
148907
 
      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
148908
 
 
148909
 
      case $ac_src in
148910
 
        *.c) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
148911
 
        *.s) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
148912
 
        *.S) ac_comp="$b_c_pre  $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
148913
 
        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre  $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_cxx_post" ;;
148914
 
      esac
148915
 
 
148916
 
    cat >>Makefile.objects<<EOF
148917
 
$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
148918
 
        $ac_comp
148919
 
EOF
148920
 
  done
148921
 
 
148922
 
 
148923
 
 
148924
 
  
148925
 
    BUILD_DIR="$BUILD_DIR main main/streams"
148926
 
  
148927
 
 
148928
 
 
148929
 
  
148930
 
    BUILD_DIR="$BUILD_DIR sapi/$PHP_SAPI sapi/cli"
148931
 
  
148932
 
 
148933
 
 
148934
 
  
148935
 
    BUILD_DIR="$BUILD_DIR TSRM"
148936
 
  
148937
 
 
148938
 
 
148939
 
  
148940
 
    BUILD_DIR="$BUILD_DIR Zend"
148941
 
  
148942
 
 
148943
 
 
148944
 
 
148945
 
  src=$abs_srcdir/scripts/Makefile.frag
148946
 
  ac_srcdir=$abs_srcdir/scripts
148947
 
  ac_builddir=scripts
148948
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
148949
 
 
148950
 
 
148951
 
  src=$abs_srcdir/Makefile.frag
148952
 
  ac_srcdir=$abs_srcdir/Zend
148953
 
  ac_builddir=Zend
148954
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
148955
 
 
148956
 
 
148957
 
  src=$abs_srcdir/Zend/Makefile.frag
148958
 
  ac_srcdir=$abs_srcdir/Zend
148959
 
  ac_builddir=Zend
148960
 
  test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
148961
 
 
148962
 
 
148963
 
 
148964
 
  $php_shtool mkdir -p $BUILD_DIR
148965
 
 
148966
 
 
148967
 
  cat >Makefile <<EOF
148968
 
srcdir = $abs_srcdir
148969
 
builddir = $abs_builddir
148970
 
top_srcdir = $abs_srcdir
148971
 
top_builddir = $abs_builddir
148972
 
EOF
148973
 
  for i in $PHP_VAR_SUBST; do
148974
 
    eval echo "$i = \$$i" >> Makefile
148975
 
  done
148976
 
 
148977
 
  cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
148978
 
 
148979
 
 
148980
 
 
148981
 
cat >>confdefs.h <<\_ACEOF
148982
 
@%:@define HAVE_BUILD_DEFS_H 1
148983
 
_ACEOF
148984
 
 
148985
 
 
148986
 
$php_shtool mkdir -p pear/scripts
148987
 
$php_shtool mkdir -p scripts
148988
 
$php_shtool mkdir -p scripts/man1
148989
 
 
148990
 
ALL_OUTPUT_FILES="php5.spec main/build-defs.h \
148991
 
scripts/phpize scripts/man1/phpize.1 \
148992
 
scripts/php-config scripts/man1/php-config.1 \
148993
 
$PHP_OUTPUT_FILES"
148994
 
 
148995
 
 
148996
 
  for arg in $ac_configure_args; do
148997
 
    case $arg in
148998
 
      --with-*)
148999
 
        arg_name="`echo $arg | $SED -e 's/--with-/with-/g' -e 's/=.*//g'`"
149000
 
        ;;
149001
 
      --without-*)
149002
 
        arg_name="`echo $arg | $SED -e 's/--without-/with-/g' -e 's/=.*//g'`"
149003
 
        ;;
149004
 
      --enable-*)
149005
 
        arg_name="`echo $arg | $SED -e 's/--enable-/enable-/g' -e 's/=.*//g'`"
149006
 
        ;;
149007
 
      --disable-*)
149008
 
        arg_name="`echo $arg | $SED -e 's/--disable-/enable-/g' -e 's/=.*//g'`"
149009
 
        ;;
149010
 
      *)
149011
 
        continue
149012
 
        ;;
149013
 
    esac
149014
 
    case $arg_name in
149015
 
      # Allow --disable-all / --enable-all
149016
 
      enable-all);;
149017
 
 
149018
 
      # Allow certain libtool options
149019
 
      enable-libtool-lock | with-pic | with-tags | enable-shared | enable-static | enable-fast-install | with-gnu-ld);;
149020
 
 
149021
 
      # Allow certain TSRM options
149022
 
      with-tsrm-pth | with-tsrm-st | with-tsrm-pthreads);;
149023
 
 
149024
 
      # Allow certain Zend options
149025
 
      with-zend-vm | enable-maintainer-zts | enable-inline-optimization);;
149026
 
 
149027
 
      # All the rest must be set using the PHP_ARG_* macros
149028
 
      # PHP_ARG_* macros set php_enable_<arg_name> or php_with_<arg_name>
149029
 
      *)
149030
 
        # Options that exist before PHP 6
149031
 
        if test "$PHP_MAJOR_VERSION" -lt "6"; then
149032
 
          case $arg_name in
149033
 
            enable-zend-multibyte) continue;;
149034
 
          esac 
149035
 
        fi
149036
 
 
149037
 
        is_arg_set=php_`echo $arg_name | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-' 'abcdefghijklmnopqrstuvwxyz_'`
149038
 
        if eval test "x\$$is_arg_set" = "x"; then
149039
 
          PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS
149040
 
$arg"
149041
 
        fi
149042
 
        ;;
149043
 
    esac
149044
 
  done
149045
 
 
149046
 
 
149047
 
ac_config_files="$ac_config_files $ALL_OUTPUT_FILES"
149048
 
 
149049
 
ac_config_commands="$ac_config_commands default"
149050
 
 
149051
 
cat >confcache <<\_ACEOF
149052
 
# This file is a shell script that caches the results of configure
149053
 
# tests run on this system so they can be shared between configure
149054
 
# scripts and configure runs, see configure's option --config-cache.
149055
 
# It is not useful on other systems.  If it contains results you don't
149056
 
# want to keep, you may remove or edit it.
149057
 
#
149058
 
# config.status only pays attention to the cache file if you give it
149059
 
# the --recheck option to rerun configure.
149060
 
#
149061
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
149062
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
149063
 
# following values.
149064
 
 
149065
 
_ACEOF
149066
 
 
149067
 
# The following way of writing the cache mishandles newlines in values,
149068
 
# but we know of no workaround that is simple, portable, and efficient.
149069
 
# So, we kill variables containing newlines.
149070
 
# Ultrix sh set writes to stderr and can't be redirected directly,
149071
 
# and sets the high bit in the cache file unless we assign to the vars.
149072
 
(
149073
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
149074
 
    eval ac_val=\$$ac_var
149075
 
    case $ac_val in #(
149076
 
    *${as_nl}*)
149077
 
      case $ac_var in #(
149078
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
149079
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
149080
 
      esac
149081
 
      case $ac_var in #(
149082
 
      _ | IFS | as_nl) ;; #(
149083
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
149084
 
      *) $as_unset $ac_var ;;
149085
 
      esac ;;
149086
 
    esac
149087
 
  done
149088
 
 
149089
 
  (set) 2>&1 |
149090
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
149091
 
    *${as_nl}ac_space=\ *)
149092
 
      # `set' does not quote correctly, so add quotes (double-quote
149093
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
149094
 
      sed -n \
149095
 
        "s/'/'\\\\''/g;
149096
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
149097
 
      ;; #(
149098
 
    *)
149099
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
149100
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
149101
 
      ;;
149102
 
    esac |
149103
 
    sort
149104
 
) |
149105
 
  sed '
149106
 
     /^ac_cv_env_/b end
149107
 
     t clear
149108
 
     :clear
149109
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
149110
 
     t end
149111
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
149112
 
     :end' >>confcache
149113
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
149114
 
  if test -w "$cache_file"; then
149115
 
    test "x$cache_file" != "x/dev/null" &&
149116
 
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
149117
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
149118
 
    cat confcache >$cache_file
149119
 
  else
149120
 
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
149121
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
149122
 
  fi
149123
 
fi
149124
 
rm -f confcache
149125
 
 
149126
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
149127
 
# Let make expand exec_prefix.
149128
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
149129
 
 
149130
 
DEFS=-DHAVE_CONFIG_H
149131
 
 
149132
 
ac_libobjs=
149133
 
ac_ltlibobjs=
149134
 
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
149135
 
  # 1. Remove the extension, and $U if already installed.
149136
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
149137
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
149138
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
149139
 
  #    will be set to the directory where LIBOBJS objects are built.
149140
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
149141
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
149142
 
done
149143
 
LIB@&t@OBJS=$ac_libobjs
149144
 
 
149145
 
LTLIBOBJS=$ac_ltlibobjs
149146
 
 
149147
 
 
149148
 
 
149149
 
: ${CONFIG_STATUS=./config.status}
149150
 
ac_write_fail=0
149151
 
ac_clean_files_save=$ac_clean_files
149152
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
149153
 
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
149154
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
149155
 
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
149156
 
#! $SHELL
149157
 
# Generated by $as_me.
149158
 
# Run this file to recreate the current configuration.
149159
 
# Compiler output produced by configure, useful for debugging
149160
 
# configure, is in config.log if it exists.
149161
 
 
149162
 
debug=false
149163
 
ac_cs_recheck=false
149164
 
ac_cs_silent=false
149165
 
SHELL=\${CONFIG_SHELL-$SHELL}
149166
 
_ACEOF
149167
 
 
149168
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
149169
 
## --------------------- ##
149170
 
## M4sh Initialization.  ##
149171
 
## --------------------- ##
149172
 
 
149173
 
# Be more Bourne compatible
149174
 
DUALCASE=1; export DUALCASE # for MKS sh
149175
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
149176
 
  emulate sh
149177
 
  NULLCMD=:
149178
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
149179
 
  # is contrary to our usage.  Disable this feature.
149180
 
  alias -g '${1+"$@"}'='"$@"'
149181
 
  setopt NO_GLOB_SUBST
149182
 
else
149183
 
  case `(set -o) 2>/dev/null` in
149184
 
  *posix*) set -o posix ;;
149185
 
esac
149186
 
 
149187
 
fi
149188
 
 
149189
 
 
149190
 
 
149191
 
 
149192
 
# PATH needs CR
149193
 
# Avoid depending upon Character Ranges.
149194
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
149195
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
149196
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
149197
 
as_cr_digits='0123456789'
149198
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
149199
 
 
149200
 
as_nl='
149201
 
'
149202
 
export as_nl
149203
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
149204
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
149205
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
149206
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
149207
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
149208
 
  as_echo='printf %s\n'
149209
 
  as_echo_n='printf %s'
149210
 
else
149211
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
149212
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
149213
 
    as_echo_n='/usr/ucb/echo -n'
149214
 
  else
149215
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
149216
 
    as_echo_n_body='eval
149217
 
      arg=$1;
149218
 
      case $arg in
149219
 
      *"$as_nl"*)
149220
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
149221
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
149222
 
      esac;
149223
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
149224
 
    '
149225
 
    export as_echo_n_body
149226
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
149227
 
  fi
149228
 
  export as_echo_body
149229
 
  as_echo='sh -c $as_echo_body as_echo'
149230
 
fi
149231
 
 
149232
 
# The user is always right.
149233
 
if test "${PATH_SEPARATOR+set}" != set; then
149234
 
  PATH_SEPARATOR=:
149235
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
149236
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
149237
 
      PATH_SEPARATOR=';'
149238
 
  }
149239
 
fi
149240
 
 
149241
 
# Support unset when possible.
149242
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
149243
 
  as_unset=unset
149244
 
else
149245
 
  as_unset=false
149246
 
fi
149247
 
 
149248
 
 
149249
 
# IFS
149250
 
# We need space, tab and new line, in precisely that order.  Quoting is
149251
 
# there to prevent editors from complaining about space-tab.
149252
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
149253
 
# splitting by setting IFS to empty value.)
149254
 
IFS=" ""        $as_nl"
149255
 
 
149256
 
# Find who we are.  Look in the path if we contain no directory separator.
149257
 
case $0 in
149258
 
  *[\\/]* ) as_myself=$0 ;;
149259
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
149260
 
for as_dir in $PATH
149261
 
do
149262
 
  IFS=$as_save_IFS
149263
 
  test -z "$as_dir" && as_dir=.
149264
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
149265
 
done
149266
 
IFS=$as_save_IFS
149267
 
 
149268
 
     ;;
149269
 
esac
149270
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
149271
 
# in which case we are not to be found in the path.
149272
 
if test "x$as_myself" = x; then
149273
 
  as_myself=$0
149274
 
fi
149275
 
if test ! -f "$as_myself"; then
149276
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
149277
 
  { (exit 1); exit 1; }
149278
 
fi
149279
 
 
149280
 
# Work around bugs in pre-3.0 UWIN ksh.
149281
 
for as_var in ENV MAIL MAILPATH
149282
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
149283
 
done
149284
 
PS1='$ '
149285
 
PS2='> '
149286
 
PS4='+ '
149287
 
 
149288
 
# NLS nuisances.
149289
 
LC_ALL=C
149290
 
export LC_ALL
149291
 
LANGUAGE=C
149292
 
export LANGUAGE
149293
 
 
149294
 
# Required to use basename.
149295
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
149296
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
149297
 
  as_expr=expr
149298
 
else
149299
 
  as_expr=false
149300
 
fi
149301
 
 
149302
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149303
 
  as_basename=basename
149304
 
else
149305
 
  as_basename=false
149306
 
fi
149307
 
 
149308
 
 
149309
 
# Name of the executable.
149310
 
as_me=`$as_basename -- "$0" ||
149311
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
149312
 
         X"$0" : 'X\(//\)$' \| \
149313
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
149314
 
$as_echo X/"$0" |
149315
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
149316
 
            s//\1/
149317
 
            q
149318
 
          }
149319
 
          /^X\/\(\/\/\)$/{
149320
 
            s//\1/
149321
 
            q
149322
 
          }
149323
 
          /^X\/\(\/\).*/{
149324
 
            s//\1/
149325
 
            q
149326
 
          }
149327
 
          s/.*/./; q'`
149328
 
 
149329
 
# CDPATH.
149330
 
$as_unset CDPATH
149331
 
 
149332
 
 
149333
 
 
149334
 
  as_lineno_1=$LINENO
149335
 
  as_lineno_2=$LINENO
149336
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
149337
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
149338
 
 
149339
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
149340
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
149341
 
  # line-number line after each line using $LINENO; the second 'sed'
149342
 
  # does the real work.  The second script uses 'N' to pair each
149343
 
  # line-number line with the line containing $LINENO, and appends
149344
 
  # trailing '-' during substitution so that $LINENO is not a special
149345
 
  # case at line end.
149346
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
149347
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
149348
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
149349
 
  sed -n '
149350
 
    p
149351
 
    /[$]LINENO/=
149352
 
  ' <$as_myself |
149353
 
    sed '
149354
 
      s/[$]LINENO.*/&-/
149355
 
      t lineno
149356
 
      b
149357
 
      :lineno
149358
 
      N
149359
 
      :loop
149360
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
149361
 
      t loop
149362
 
      s/-\n.*//
149363
 
    ' >$as_me.lineno &&
149364
 
  chmod +x "$as_me.lineno" ||
149365
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
149366
 
   { (exit 1); exit 1; }; }
149367
 
 
149368
 
  # Don't try to exec as it changes $[0], causing all sort of problems
149369
 
  # (the dirname of $[0] is not the place where we might find the
149370
 
  # original and so on.  Autoconf is especially sensitive to this).
149371
 
  . "./$as_me.lineno"
149372
 
  # Exit status is that of the last command.
149373
 
  exit
149374
 
}
149375
 
 
149376
 
 
149377
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
149378
 
  as_dirname=dirname
149379
 
else
149380
 
  as_dirname=false
149381
 
fi
149382
 
 
149383
 
ECHO_C= ECHO_N= ECHO_T=
149384
 
case `echo -n x` in
149385
 
-n*)
149386
 
  case `echo 'x\c'` in
149387
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
149388
 
  *)   ECHO_C='\c';;
149389
 
  esac;;
149390
 
*)
149391
 
  ECHO_N='-n';;
149392
 
esac
149393
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
149394
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
149395
 
  as_expr=expr
149396
 
else
149397
 
  as_expr=false
149398
 
fi
149399
 
 
149400
 
rm -f conf$$ conf$$.exe conf$$.file
149401
 
if test -d conf$$.dir; then
149402
 
  rm -f conf$$.dir/conf$$.file
149403
 
else
149404
 
  rm -f conf$$.dir
149405
 
  mkdir conf$$.dir 2>/dev/null
149406
 
fi
149407
 
if (echo >conf$$.file) 2>/dev/null; then
149408
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
149409
 
    as_ln_s='ln -s'
149410
 
    # ... but there are two gotchas:
149411
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
149412
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
149413
 
    # In both cases, we have to default to `cp -p'.
149414
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
149415
 
      as_ln_s='cp -p'
149416
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
149417
 
    as_ln_s=ln
149418
 
  else
149419
 
    as_ln_s='cp -p'
149420
 
  fi
149421
 
else
149422
 
  as_ln_s='cp -p'
149423
 
fi
149424
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
149425
 
rmdir conf$$.dir 2>/dev/null
149426
 
 
149427
 
if mkdir -p . 2>/dev/null; then
149428
 
  as_mkdir_p=:
149429
 
else
149430
 
  test -d ./-p && rmdir ./-p
149431
 
  as_mkdir_p=false
149432
 
fi
149433
 
 
149434
 
if test -x / >/dev/null 2>&1; then
149435
 
  as_test_x='test -x'
149436
 
else
149437
 
  if ls -dL / >/dev/null 2>&1; then
149438
 
    as_ls_L_option=L
149439
 
  else
149440
 
    as_ls_L_option=
149441
 
  fi
149442
 
  as_test_x='
149443
 
    eval sh -c '\''
149444
 
      if test -d "$1"; then
149445
 
        test -d "$1/.";
149446
 
      else
149447
 
        case $1 in
149448
 
        -*)set "./$1";;
149449
 
        esac;
149450
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
149451
 
        ???[sx]*):;;*)false;;esac;fi
149452
 
    '\'' sh
149453
 
  '
149454
 
fi
149455
 
as_executable_p=$as_test_x
149456
 
 
149457
 
# Sed expression to map a string onto a valid CPP name.
149458
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
149459
 
 
149460
 
# Sed expression to map a string onto a valid variable name.
149461
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
149462
 
 
149463
 
 
149464
 
exec 6>&1
149465
 
 
149466
 
# Save the log message, to keep $[0] and so on meaningful, and to
149467
 
# report actual input values of CONFIG_FILES etc. instead of their
149468
 
# values after options handling.
149469
 
ac_log="
149470
 
This file was extended by $as_me, which was
149471
 
generated by GNU Autoconf 2.63.  Invocation command line was
149472
 
 
149473
 
  CONFIG_FILES    = $CONFIG_FILES
149474
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
149475
 
  CONFIG_LINKS    = $CONFIG_LINKS
149476
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
149477
 
  $ $0 $@
149478
 
 
149479
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
149480
 
"
149481
 
 
149482
 
_ACEOF
149483
 
 
149484
 
case $ac_config_files in *"
149485
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
149486
 
esac
149487
 
 
149488
 
case $ac_config_headers in *"
149489
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
149490
 
esac
149491
 
 
149492
 
 
149493
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
149494
 
# Files that config.status was made for.
149495
 
config_files="$ac_config_files"
149496
 
config_headers="$ac_config_headers"
149497
 
config_commands="$ac_config_commands"
149498
 
 
149499
 
_ACEOF
149500
 
 
149501
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
149502
 
ac_cs_usage="\
149503
 
\`$as_me' instantiates files from templates according to the
149504
 
current configuration.
149505
 
 
149506
 
Usage: $0 [OPTION]... [FILE]...
149507
 
 
149508
 
  -h, --help       print this help, then exit
149509
 
  -V, --version    print version number and configuration settings, then exit
149510
 
  -q, --quiet, --silent
149511
 
                   do not print progress messages
149512
 
  -d, --debug      don't remove temporary files
149513
 
      --recheck    update $as_me by reconfiguring in the same conditions
149514
 
      --file=FILE[:TEMPLATE] 
149515
 
                   instantiate the configuration file FILE
149516
 
      --header=FILE[:TEMPLATE] 
149517
 
                   instantiate the configuration header FILE
149518
 
 
149519
 
Configuration files:
149520
 
$config_files
149521
 
 
149522
 
Configuration headers:
149523
 
$config_headers
149524
 
 
149525
 
Configuration commands:
149526
 
$config_commands
149527
 
 
149528
 
Report bugs to <bug-autoconf@gnu.org>."
149529
 
 
149530
 
_ACEOF
149531
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
149532
 
ac_cs_version="\\
149533
 
config.status
149534
 
configured by $0, generated by GNU Autoconf 2.63,
149535
 
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
149536
 
 
149537
 
Copyright (C) 2008 Free Software Foundation, Inc.
149538
 
This config.status script is free software; the Free Software Foundation
149539
 
gives unlimited permission to copy, distribute and modify it."
149540
 
 
149541
 
ac_pwd='$ac_pwd'
149542
 
srcdir='$srcdir'
149543
 
test -n "\$AWK" || AWK=awk
149544
 
_ACEOF
149545
 
 
149546
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
149547
 
# The default lists apply if the user does not specify any file.
149548
 
ac_need_defaults=:
149549
 
while test $# != 0
149550
 
do
149551
 
  case $1 in
149552
 
  --*=*)
149553
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
149554
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
149555
 
    ac_shift=:
149556
 
    ;;
149557
 
  *)
149558
 
    ac_option=$1
149559
 
    ac_optarg=$2
149560
 
    ac_shift=shift
149561
 
    ;;
149562
 
  esac
149563
 
 
149564
 
  case $ac_option in
149565
 
  # Handling of the options.
149566
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
149567
 
    ac_cs_recheck=: ;;
149568
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
149569
 
    $as_echo "$ac_cs_version"; exit ;;
149570
 
  --debug | --debu | --deb | --de | --d | -d )
149571
 
    debug=: ;;
149572
 
  --file | --fil | --fi | --f )
149573
 
    $ac_shift
149574
 
    case $ac_optarg in
149575
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
149576
 
    esac
149577
 
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
149578
 
    ac_need_defaults=false;;
149579
 
  --header | --heade | --head | --hea )
149580
 
    $ac_shift
149581
 
    case $ac_optarg in
149582
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
149583
 
    esac
149584
 
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
149585
 
    ac_need_defaults=false;;
149586
 
  --he | --h)
149587
 
    # Conflict between --help and --header
149588
 
    { $as_echo "$as_me: error: ambiguous option: $1
149589
 
Try \`$0 --help' for more information." >&2
149590
 
   { (exit 1); exit 1; }; };;
149591
 
  --help | --hel | -h )
149592
 
    $as_echo "$ac_cs_usage"; exit ;;
149593
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
149594
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
149595
 
    ac_cs_silent=: ;;
149596
 
 
149597
 
  # This is an error.
149598
 
  -*) { $as_echo "$as_me: error: unrecognized option: $1
149599
 
Try \`$0 --help' for more information." >&2
149600
 
   { (exit 1); exit 1; }; } ;;
149601
 
 
149602
 
  *) ac_config_targets="$ac_config_targets $1"
149603
 
     ac_need_defaults=false ;;
149604
 
 
149605
 
  esac
149606
 
  shift
149607
 
done
149608
 
 
149609
 
ac_configure_extra_args=
149610
 
 
149611
 
if $ac_cs_silent; then
149612
 
  exec 6>/dev/null
149613
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
149614
 
fi
149615
 
 
149616
 
_ACEOF
149617
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
149618
 
if \$ac_cs_recheck; then
149619
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
149620
 
  shift
149621
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
149622
 
  CONFIG_SHELL='$SHELL'
149623
 
  export CONFIG_SHELL
149624
 
  exec "\$@"
149625
 
fi
149626
 
 
149627
 
_ACEOF
149628
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
149629
 
exec 5>>config.log
149630
 
{
149631
 
  echo
149632
 
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
149633
 
@%:@@%:@ Running $as_me. @%:@@%:@
149634
 
_ASBOX
149635
 
  $as_echo "$ac_log"
149636
 
} >&5
149637
 
 
149638
 
_ACEOF
149639
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
149640
 
#
149641
 
# INIT-COMMANDS
149642
 
#
149643
 
 
149644
 
 
149645
 
if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then
149646
 
  REDO_ALL=yes
149647
 
fi
149648
 
 
149649
 
################################################################
149650
 
# Create configuration headers
149651
 
#
149652
 
 
149653
 
test -d TSRM || $php_shtool mkdir TSRM
149654
 
echo '#include <../main/php_config.h>' > TSRM/tsrm_config.h
149655
 
 
149656
 
test -d Zend || $php_shtool mkdir Zend
149657
 
 
149658
 
cat >Zend/zend_config.h <<FEO
149659
 
#include <../main/php_config.h>
149660
 
#if defined(APACHE) && defined(PHP_API_VERSION)
149661
 
#undef HAVE_DLFCN_H
149662
 
#endif
149663
 
FEO
149664
 
 
149665
 
# run this only when generating all the files?
149666
 
if test -n "\$REDO_ALL"; then
149667
 
  # Hacking while airborne considered harmful.
149668
 
  #
149669
 
  echo "creating main/internal_functions.c"
149670
 
  extensions="$EXT_STATIC"
149671
 
  sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$extensions > main/internal_functions.c
149672
 
 
149673
 
  echo "creating main/internal_functions_cli.c"
149674
 
  cli_extensions="$EXT_CLI_STATIC"
149675
 
  sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c
149676
 
 
149677
 
  if test "$UNAME" = "FreeBSD" && test "$PHP_SAPI" = "apache2filter" && test "$TSRM_PTH" != "pth-config" ; then
149678
 
    echo "+--------------------------------------------------------------------+"
149679
 
    echo "|                        *** WARNING ***                             |"
149680
 
    echo "|                                                                    |"
149681
 
    echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to  |"
149682
 
    echo "| add  --with-tsrm-pth to your ./configure line. Therefore you need  |"
149683
 
    echo "| to install gnu-pth from /usr/ports/devel/pth.                      |"
149684
 
  fi
149685
 
 
149686
 
  if test -n "$PHP_APXS_BROKEN"; then
149687
 
    echo "+--------------------------------------------------------------------+"
149688
 
    echo "| WARNING: Your $APXS script is most likely broken."
149689
 
    echo "|                                                                    |"
149690
 
    echo "| Please go read http://www.php.net/faq.build#faq.build.apxs         |"
149691
 
    echo "| and make the changes described there and try again.                |"
149692
 
  fi
149693
 
 
149694
 
  if test -n "$DEBUG_LOG"; then
149695
 
    rm -f config.cache
149696
 
cat <<X
149697
 
+--------------------------------------------------------------------+
149698
 
|                       *** ATTENTION ***                            |
149699
 
|                                                                    |
149700
 
| Something is likely to be messed up here, because the configure    |
149701
 
| script was not able to detect a simple feature on your platform.   |
149702
 
| This is often caused by incorrect configuration parameters. Please |
149703
 
| see the file debug.log for error messages.                         |
149704
 
|                                                                    |
149705
 
| If you are unable to fix this, send the file debug.log to the      |
149706
 
| php-install@lists.php.net mailing list and include appropiate      |
149707
 
| information about your setup.                                      |
149708
 
X
149709
 
  fi
149710
 
 
149711
 
  # Warn about linking Apache with libpthread if oci8 extension is enabled on linux.
149712
 
  if test "$PHP_OCI8" != "no"; then
149713
 
    if test "$PHP_SAPI" = "apache"; then
149714
 
      if test `uname` = "Linux"; then
149715
 
cat <<X
149716
 
+--------------------------------------------------------------------+
149717
 
|                        *** WARNING ***                             |
149718
 
|                                                                    |
149719
 
| Please check that your Apache (httpd) is linked with libpthread.   |
149720
 
| If not, you have to recompile Apache with pthread. For more        |
149721
 
| details, see this page: http://www.php.net/manual/ref.oci8.php     |
149722
 
X
149723
 
      fi
149724
 
    fi
149725
 
 
149726
 
    if test "$PHP_SIGCHILD" != "yes"; then
149727
 
      if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
149728
 
cat <<X
149729
 
+--------------------------------------------------------------------+
149730
 
| Notice:                                                            |
149731
 
| If you encounter <defunc> processes when using a local Oracle      |
149732
 
| database, set the value BEQUEATH_DETACH=YES in Oracle Net's        |
149733
 
| sqlnet.ora file on the PHP host, or set the environment variable   |
149734
 
| BEQUEATH_DETACH to YES before starting Apache.  If the problem     |
149735
 
| still occurs, then recompile PHP and specify --enable-sigchild     |
149736
 
| when configuring.                                                  |
149737
 
X
149738
 
      fi
149739
 
    fi
149740
 
  fi
149741
 
 
149742
 
cat <<X
149743
 
+--------------------------------------------------------------------+
149744
 
| License:                                                           |
149745
 
| This software is subject to the PHP License, available in this     |
149746
 
| distribution in the file LICENSE.  By continuing this installation |
149747
 
| process, you are bound by the terms of this license agreement.     |
149748
 
| If you do not agree with the terms of this license, you must abort |
149749
 
| the installation process at this point.                            |
149750
 
+--------------------------------------------------------------------+
149751
 
 
149752
 
Thank you for using PHP.
149753
 
 
149754
 
X
149755
 
 
149756
 
  # Output unknown configure options
149757
 
  if test "$PHP_UNKNOWN_CONFIGURE_OPTIONS"; then
149758
 
    echo "Notice: Following unknown configure options were used:
149759
 
$PHP_UNKNOWN_CONFIGURE_OPTIONS
149760
 
 
149761
 
Check '$0 --help' for available options
149762
 
"
149763
 
  fi
149764
 
 
149765
 
fi
149766
 
 
149767
 
 
149768
 
_ACEOF
149769
 
 
149770
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
149771
 
 
149772
 
# Handling of arguments.
149773
 
for ac_config_target in $ac_config_targets
149774
 
do
149775
 
  case $ac_config_target in
149776
 
    "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;;
149777
 
    "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;;
149778
 
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
149779
 
 
149780
 
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
149781
 
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
149782
 
   { (exit 1); exit 1; }; };;
149783
 
  esac
149784
 
done
149785
 
 
149786
 
 
149787
 
# If the user did not use the arguments to specify the items to instantiate,
149788
 
# then the envvar interface is used.  Set only those that are not.
149789
 
# We use the long form for the default assignment because of an extremely
149790
 
# bizarre bug on SunOS 4.1.3.
149791
 
if $ac_need_defaults; then
149792
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
149793
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
149794
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
149795
 
fi
149796
 
 
149797
 
# Have a temporary directory for convenience.  Make it in the build tree
149798
 
# simply because there is no reason against having it here, and in addition,
149799
 
# creating and moving files from /tmp can sometimes cause problems.
149800
 
# Hook for its removal unless debugging.
149801
 
# Note that there is a small window in which the directory will not be cleaned:
149802
 
# after its creation but before its name has been assigned to `$tmp'.
149803
 
$debug ||
149804
 
{
149805
 
  tmp=
149806
 
  trap 'exit_status=$?
149807
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
149808
 
' 0
149809
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
149810
 
}
149811
 
# Create a (secure) tmp directory for tmp files.
149812
 
 
149813
 
{
149814
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
149815
 
  test -n "$tmp" && test -d "$tmp"
149816
 
}  ||
149817
 
{
149818
 
  tmp=./conf$$-$RANDOM
149819
 
  (umask 077 && mkdir "$tmp")
149820
 
} ||
149821
 
{
149822
 
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
149823
 
   { (exit 1); exit 1; }
149824
 
}
149825
 
 
149826
 
# Set up the scripts for CONFIG_FILES section.
149827
 
# No need to generate them if there are no CONFIG_FILES.
149828
 
# This happens for instance with `./config.status config.h'.
149829
 
if test -n "$CONFIG_FILES"; then
149830
 
 
149831
 
 
149832
 
ac_cr='
 
 
b"'"
149833
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
149834
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
149835
 
  ac_cs_awk_cr='\\r'
149836
 
else
149837
 
  ac_cs_awk_cr=$ac_cr
149838
 
fi
149839
 
 
149840
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
149841
 
_ACEOF
149842
 
 
149843
 
 
149844
 
{
149845
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
149846
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
149847
 
  echo "_ACEOF"
149848
 
} >conf$$subs.sh ||
149849
 
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
149850
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
149851
 
   { (exit 1); exit 1; }; }
149852
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
149853
 
ac_delim='%!_!# '
149854
 
for ac_last_try in false false false false false :; do
149855
 
  . ./conf$$subs.sh ||
149856
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
149857
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
149858
 
   { (exit 1); exit 1; }; }
149859
 
 
149860
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
149861
 
  if test $ac_delim_n = $ac_delim_num; then
149862
 
    break
149863
 
  elif $ac_last_try; then
149864
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
149865
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
149866
 
   { (exit 1); exit 1; }; }
149867
 
  else
149868
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
149869
 
  fi
149870
 
done
149871
 
rm -f conf$$subs.sh
149872
 
 
149873
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
149874
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
149875
 
_ACEOF
149876
 
sed -n '
149877
 
h
149878
 
s/^/S["/; s/!.*/"]=/
149879
 
p
149880
 
g
149881
 
s/^[^!]*!//
149882
 
:repl
149883
 
t repl
149884
 
s/'"$ac_delim"'$//
149885
 
t delim
149886
 
:nl
149887
 
h
149888
 
s/\(.\{148\}\).*/\1/
149889
 
t more1
149890
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
149891
 
p
149892
 
n
149893
 
b repl
149894
 
:more1
149895
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
149896
 
p
149897
 
g
149898
 
s/.\{148\}//
149899
 
t nl
149900
 
:delim
149901
 
h
149902
 
s/\(.\{148\}\).*/\1/
149903
 
t more2
149904
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
149905
 
p
149906
 
b
149907
 
:more2
149908
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
149909
 
p
149910
 
g
149911
 
s/.\{148\}//
149912
 
t delim
149913
 
' <conf$$subs.awk | sed '
149914
 
/^[^""]/{
149915
 
  N
149916
 
  s/\n//
149917
 
}
149918
 
' >>$CONFIG_STATUS || ac_write_fail=1
149919
 
rm -f conf$$subs.awk
149920
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
149921
 
_ACAWK
149922
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
149923
 
  for (key in S) S_is_set[key] = 1
149924
 
  FS = ""
149925
 
 
149926
 
}
149927
 
{
149928
 
  line = $ 0
149929
 
  nfields = split(line, field, "@")
149930
 
  substed = 0
149931
 
  len = length(field[1])
149932
 
  for (i = 2; i < nfields; i++) {
149933
 
    key = field[i]
149934
 
    keylen = length(key)
149935
 
    if (S_is_set[key]) {
149936
 
      value = S[key]
149937
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
149938
 
      len += length(value) + length(field[++i])
149939
 
      substed = 1
149940
 
    } else
149941
 
      len += 1 + keylen
149942
 
  }
149943
 
 
149944
 
  print line
149945
 
}
149946
 
 
149947
 
_ACAWK
149948
 
_ACEOF
149949
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
149950
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
149951
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
149952
 
else
149953
 
  cat
149954
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
149955
 
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
149956
 
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
149957
 
   { (exit 1); exit 1; }; }
149958
 
_ACEOF
149959
 
 
149960
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
149961
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
149962
 
# trailing colons and then remove the whole line if VPATH becomes empty
149963
 
# (actually we leave an empty line to preserve line numbers).
149964
 
if test "x$srcdir" = x.; then
149965
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
149966
 
s/:*\$(srcdir):*/:/
149967
 
s/:*\${srcdir}:*/:/
149968
 
s/:*@srcdir@:*/:/
149969
 
s/^\([^=]*=[     ]*\):*/\1/
149970
 
s/:*$//
149971
 
s/^[^=]*=[       ]*$//
149972
 
}'
149973
 
fi
149974
 
 
149975
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
149976
 
fi # test -n "$CONFIG_FILES"
149977
 
 
149978
 
# Set up the scripts for CONFIG_HEADERS section.
149979
 
# No need to generate them if there are no CONFIG_HEADERS.
149980
 
# This happens for instance with `./config.status Makefile'.
149981
 
if test -n "$CONFIG_HEADERS"; then
149982
 
cat >"$tmp/defines.awk" <<\_ACAWK ||
149983
 
BEGIN {
149984
 
_ACEOF
149985
 
 
149986
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
149987
 
# here-document in config.status, that substitutes the proper values into
149988
 
# config.h.in to produce config.h.
149989
 
 
149990
 
# Create a delimiter string that does not exist in confdefs.h, to ease
149991
 
# handling of long lines.
149992
 
ac_delim='%!_!# '
149993
 
for ac_last_try in false false :; do
149994
 
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
149995
 
  if test -z "$ac_t"; then
149996
 
    break
149997
 
  elif $ac_last_try; then
149998
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
149999
 
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
150000
 
   { (exit 1); exit 1; }; }
150001
 
  else
150002
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
150003
 
  fi
150004
 
done
150005
 
 
150006
 
# For the awk script, D is an array of macro values keyed by name,
150007
 
# likewise P contains macro parameters if any.  Preserve backslash
150008
 
# newline sequences.
150009
 
 
150010
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
150011
 
sed -n '
150012
 
s/.\{148\}/&'"$ac_delim"'/g
150013
 
t rset
150014
 
:rset
150015
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
150016
 
t def
150017
 
d
150018
 
:def
150019
 
s/\\$//
150020
 
t bsnl
150021
 
s/["\\]/\\&/g
150022
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
150023
 
D["\1"]=" \3"/p
150024
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
150025
 
d
150026
 
:bsnl
150027
 
s/["\\]/\\&/g
150028
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
150029
 
D["\1"]=" \3\\\\\\n"\\/p
150030
 
t cont
150031
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
150032
 
t cont
150033
 
d
150034
 
:cont
150035
 
n
150036
 
s/.\{148\}/&'"$ac_delim"'/g
150037
 
t clear
150038
 
:clear
150039
 
s/\\$//
150040
 
t bsnlc
150041
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
150042
 
d
150043
 
:bsnlc
150044
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
150045
 
b cont
150046
 
' <confdefs.h | sed '
150047
 
s/'"$ac_delim"'/"\\\
150048
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
150049
 
 
150050
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
150051
 
  for (key in D) D_is_set[key] = 1
150052
 
  FS = ""
150053
 
}
150054
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
150055
 
  line = \$ 0
150056
 
  split(line, arg, " ")
150057
 
  if (arg[1] == "#") {
150058
 
    defundef = arg[2]
150059
 
    mac1 = arg[3]
150060
 
  } else {
150061
 
    defundef = substr(arg[1], 2)
150062
 
    mac1 = arg[2]
150063
 
  }
150064
 
  split(mac1, mac2, "(") #)
150065
 
  macro = mac2[1]
150066
 
  prefix = substr(line, 1, index(line, defundef) - 1)
150067
 
  if (D_is_set[macro]) {
150068
 
    # Preserve the white space surrounding the "#".
150069
 
    print prefix "define", macro P[macro] D[macro]
150070
 
    next
150071
 
  } else {
150072
 
    # Replace #undef with comments.  This is necessary, for example,
150073
 
    # in the case of _POSIX_SOURCE, which is predefined and required
150074
 
    # on some systems where configure will not decide to define it.
150075
 
    if (defundef == "undef") {
150076
 
      print "/*", prefix defundef, macro, "*/"
150077
 
      next
150078
 
    }
150079
 
  }
150080
 
}
150081
 
{ print }
150082
 
_ACAWK
150083
 
_ACEOF
150084
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
150085
 
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
150086
 
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
150087
 
   { (exit 1); exit 1; }; }
150088
 
fi # test -n "$CONFIG_HEADERS"
150089
 
 
150090
 
 
150091
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
150092
 
shift
150093
 
for ac_tag
150094
 
do
150095
 
  case $ac_tag in
150096
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
150097
 
  esac
150098
 
  case $ac_mode$ac_tag in
150099
 
  :[FHL]*:*);;
150100
 
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
150101
 
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
150102
 
   { (exit 1); exit 1; }; };;
150103
 
  :[FH]-) ac_tag=-:-;;
150104
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
150105
 
  esac
150106
 
  ac_save_IFS=$IFS
150107
 
  IFS=:
150108
 
  set x $ac_tag
150109
 
  IFS=$ac_save_IFS
150110
 
  shift
150111
 
  ac_file=$1
150112
 
  shift
150113
 
 
150114
 
  case $ac_mode in
150115
 
  :L) ac_source=$1;;
150116
 
  :[FH])
150117
 
    ac_file_inputs=
150118
 
    for ac_f
150119
 
    do
150120
 
      case $ac_f in
150121
 
      -) ac_f="$tmp/stdin";;
150122
 
      *) # Look for the file first in the build tree, then in the source tree
150123
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
150124
 
         # because $ac_f cannot contain `:'.
150125
 
         test -f "$ac_f" ||
150126
 
           case $ac_f in
150127
 
           [\\/$]*) false;;
150128
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
150129
 
           esac ||
150130
 
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
150131
 
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
150132
 
   { (exit 1); exit 1; }; };;
150133
 
      esac
150134
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
150135
 
      ac_file_inputs="$ac_file_inputs '$ac_f'"
150136
 
    done
150137
 
 
150138
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
150139
 
    # use $as_me), people would be surprised to read:
150140
 
    #    /* config.h.  Generated by config.status.  */
150141
 
    configure_input='Generated from '`
150142
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
150143
 
        `' by configure.'
150144
 
    if test x"$ac_file" != x-; then
150145
 
      configure_input="$ac_file.  $configure_input"
150146
 
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
150147
 
$as_echo "$as_me: creating $ac_file" >&6;}
150148
 
    fi
150149
 
    # Neutralize special characters interpreted by sed in replacement strings.
150150
 
    case $configure_input in #(
150151
 
    *\&* | *\|* | *\\* )
150152
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
150153
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
150154
 
    *) ac_sed_conf_input=$configure_input;;
150155
 
    esac
150156
 
 
150157
 
    case $ac_tag in
150158
 
    *:-:* | *:-) cat >"$tmp/stdin" \
150159
 
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
150160
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
150161
 
   { (exit 1); exit 1; }; } ;;
150162
 
    esac
150163
 
    ;;
150164
 
  esac
150165
 
 
150166
 
  ac_dir=`$as_dirname -- "$ac_file" ||
150167
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
150168
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
150169
 
         X"$ac_file" : 'X\(//\)$' \| \
150170
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
150171
 
$as_echo X"$ac_file" |
150172
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
150173
 
            s//\1/
150174
 
            q
150175
 
          }
150176
 
          /^X\(\/\/\)[^/].*/{
150177
 
            s//\1/
150178
 
            q
150179
 
          }
150180
 
          /^X\(\/\/\)$/{
150181
 
            s//\1/
150182
 
            q
150183
 
          }
150184
 
          /^X\(\/\).*/{
150185
 
            s//\1/
150186
 
            q
150187
 
          }
150188
 
          s/.*/./; q'`
150189
 
  { as_dir="$ac_dir"
150190
 
  case $as_dir in #(
150191
 
  -*) as_dir=./$as_dir;;
150192
 
  esac
150193
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
150194
 
    as_dirs=
150195
 
    while :; do
150196
 
      case $as_dir in #(
150197
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
150198
 
      *) as_qdir=$as_dir;;
150199
 
      esac
150200
 
      as_dirs="'$as_qdir' $as_dirs"
150201
 
      as_dir=`$as_dirname -- "$as_dir" ||
150202
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
150203
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
150204
 
         X"$as_dir" : 'X\(//\)$' \| \
150205
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
150206
 
$as_echo X"$as_dir" |
150207
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
150208
 
            s//\1/
150209
 
            q
150210
 
          }
150211
 
          /^X\(\/\/\)[^/].*/{
150212
 
            s//\1/
150213
 
            q
150214
 
          }
150215
 
          /^X\(\/\/\)$/{
150216
 
            s//\1/
150217
 
            q
150218
 
          }
150219
 
          /^X\(\/\).*/{
150220
 
            s//\1/
150221
 
            q
150222
 
          }
150223
 
          s/.*/./; q'`
150224
 
      test -d "$as_dir" && break
150225
 
    done
150226
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
150227
 
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
150228
 
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
150229
 
   { (exit 1); exit 1; }; }; }
150230
 
  ac_builddir=.
150231
 
 
150232
 
case "$ac_dir" in
150233
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
150234
 
*)
150235
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
150236
 
  # A ".." for each directory in $ac_dir_suffix.
150237
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
150238
 
  case $ac_top_builddir_sub in
150239
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
150240
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
150241
 
  esac ;;
150242
 
esac
150243
 
ac_abs_top_builddir=$ac_pwd
150244
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
150245
 
# for backward compatibility:
150246
 
ac_top_builddir=$ac_top_build_prefix
150247
 
 
150248
 
case $srcdir in
150249
 
  .)  # We are building in place.
150250
 
    ac_srcdir=.
150251
 
    ac_top_srcdir=$ac_top_builddir_sub
150252
 
    ac_abs_top_srcdir=$ac_pwd ;;
150253
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
150254
 
    ac_srcdir=$srcdir$ac_dir_suffix;
150255
 
    ac_top_srcdir=$srcdir
150256
 
    ac_abs_top_srcdir=$srcdir ;;
150257
 
  *) # Relative name.
150258
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
150259
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
150260
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
150261
 
esac
150262
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
150263
 
 
150264
 
 
150265
 
  case $ac_mode in
150266
 
  :F)
150267
 
  #
150268
 
  # CONFIG_FILE
150269
 
  #
150270
 
 
150271
 
_ACEOF
150272
 
 
150273
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
150274
 
# If the template does not know about datarootdir, expand it.
150275
 
# FIXME: This hack should be removed a few years after 2.60.
150276
 
ac_datarootdir_hack=; ac_datarootdir_seen=
150277
 
 
150278
 
ac_sed_dataroot='
150279
 
/datarootdir/ {
150280
 
  p
150281
 
  q
150282
 
}
150283
 
/@datadir@/p
150284
 
/@docdir@/p
150285
 
/@infodir@/p
150286
 
/@localedir@/p
150287
 
/@mandir@/p
150288
 
'
150289
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
150290
 
*datarootdir*) ac_datarootdir_seen=yes;;
150291
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
150292
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
150293
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
150294
 
_ACEOF
150295
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
150296
 
  ac_datarootdir_hack='
150297
 
  s&@datadir@&$datadir&g
150298
 
  s&@docdir@&$docdir&g
150299
 
  s&@infodir@&$infodir&g
150300
 
  s&@localedir@&$localedir&g
150301
 
  s&@mandir@&$mandir&g
150302
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
150303
 
esac
150304
 
_ACEOF
150305
 
 
150306
 
# Neutralize VPATH when `$srcdir' = `.'.
150307
 
# Shell code in configure.ac might set extrasub.
150308
 
# FIXME: do we really want to maintain this feature?
150309
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
150310
 
ac_sed_extra="$ac_vpsub
150311
 
$extrasub
150312
 
_ACEOF
150313
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
150314
 
:t
150315
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
150316
 
s|@configure_input@|$ac_sed_conf_input|;t t
150317
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
150318
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
150319
 
s&@srcdir@&$ac_srcdir&;t t
150320
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
150321
 
s&@top_srcdir@&$ac_top_srcdir&;t t
150322
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
150323
 
s&@builddir@&$ac_builddir&;t t
150324
 
s&@abs_builddir@&$ac_abs_builddir&;t t
150325
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
150326
 
$ac_datarootdir_hack
150327
 
"
150328
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
150329
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
150330
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
150331
 
   { (exit 1); exit 1; }; }
150332
 
 
150333
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
150334
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
150335
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
150336
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
150337
 
which seems to be undefined.  Please make sure it is defined." >&5
150338
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
150339
 
which seems to be undefined.  Please make sure it is defined." >&2;}
150340
 
 
150341
 
  rm -f "$tmp/stdin"
150342
 
  case $ac_file in
150343
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
150344
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
150345
 
  esac \
150346
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
150347
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
150348
 
   { (exit 1); exit 1; }; }
150349
 
 ;;
150350
 
  :H)
150351
 
  #
150352
 
  # CONFIG_HEADER
150353
 
  #
150354
 
  if test x"$ac_file" != x-; then
150355
 
    {
150356
 
      $as_echo "/* $configure_input  */" \
150357
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
150358
 
    } >"$tmp/config.h" \
150359
 
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
150360
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
150361
 
   { (exit 1); exit 1; }; }
150362
 
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
150363
 
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
150364
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
150365
 
    else
150366
 
      rm -f "$ac_file"
150367
 
      mv "$tmp/config.h" "$ac_file" \
150368
 
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
150369
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
150370
 
   { (exit 1); exit 1; }; }
150371
 
    fi
150372
 
  else
150373
 
    $as_echo "/* $configure_input  */" \
150374
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
150375
 
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
150376
 
$as_echo "$as_me: error: could not create -" >&2;}
150377
 
   { (exit 1); exit 1; }; }
150378
 
  fi
150379
 
 ;;
150380
 
  
150381
 
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
150382
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
150383
 
 ;;
150384
 
  esac
150385
 
 
150386
 
done # for ac_tag
150387
 
 
150388
 
 
150389
 
{ (exit 0); exit 0; }
150390
 
_ACEOF
150391
 
chmod +x $CONFIG_STATUS
150392
 
ac_clean_files=$ac_clean_files_save
150393
 
 
150394
 
test $ac_write_fail = 0 ||
150395
 
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
150396
 
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
150397
 
   { (exit 1); exit 1; }; }
150398
 
 
150399
 
 
150400
 
# configure is writing to config.log, and then calls config.status.
150401
 
# config.status does its own redirection, appending to config.log.
150402
 
# Unfortunately, on DOS this fails, as config.log is still kept open
150403
 
# by configure, so config.status won't be able to write to it; its
150404
 
# output is simply discarded.  So we exec the FD to /dev/null,
150405
 
# effectively closing config.log, so it can be properly (re)opened and
150406
 
# appended to by config.status.  When coming back to configure, we
150407
 
# need to make the FD available again.
150408
 
if test "$no_create" != yes; then
150409
 
  ac_cs_success=:
150410
 
  ac_config_status_args=
150411
 
  test "$silent" = yes &&
150412
 
    ac_config_status_args="$ac_config_status_args --quiet"
150413
 
  exec 5>/dev/null
150414
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
150415
 
  exec 5>>config.log
150416
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
150417
 
  # would make configure fail if this is the last instruction.
150418
 
  $ac_cs_success || { (exit 1); exit 1; }
150419
 
fi
150420
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
150421
 
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
150422
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
150423
 
fi
150424
 
 
150425