~ubuntu-branches/ubuntu/natty/apache2/natty

« back to all changes in this revision

Viewing changes to srclib/apr/configure

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-06 00:29:03 UTC
  • mfrom: (14.3.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091106002903-a7zl7sh2z1z3uxqb
Tags: 2.2.14-1ubuntu1
* Merge from debian testing, remaining changes:
  - debian/{control, rules}: Enable PIE hardening.
  - debian/{control, rules, pache2.2-common.ufw.profile}: Add ufw profiles.
  - debian/conrol: Add bzr tag and point it to our tree.
  - Dropped debian/patches/203_fix_legacy_ap_rputs_segfaults.dpatch: 
    Already applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.63.
 
3
# Generated by GNU Autoconf 2.64.
4
4
#
5
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
 
7
# Foundation, Inc.
 
8
#
7
9
# This configure script is free software; the Free Software Foundation
8
10
# gives unlimited permission to copy, distribute and modify it.
9
 
## --------------------- ##
10
 
## M4sh Initialization.  ##
11
 
## --------------------- ##
 
11
## -------------------- ##
 
12
## M4sh Initialization. ##
 
13
## -------------------- ##
12
14
 
13
15
# Be more Bourne compatible
14
16
DUALCASE=1; export DUALCASE # for MKS sh
15
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16
18
  emulate sh
17
19
  NULLCMD=:
18
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20
22
  alias -g '${1+"$@"}'='"$@"'
21
23
  setopt NO_GLOB_SUBST
22
24
else
23
 
  case `(set -o) 2>/dev/null` in
24
 
  *posix*) set -o posix ;;
 
25
  case `(set -o) 2>/dev/null` in #(
 
26
  *posix*) :
 
27
    set -o posix ;; #(
 
28
  *) :
 
29
     ;;
25
30
esac
26
 
 
27
31
fi
28
32
 
29
33
 
30
 
 
31
 
 
32
 
# PATH needs CR
33
 
# Avoid depending upon Character Ranges.
34
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
 
as_cr_digits='0123456789'
38
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
 
40
34
as_nl='
41
35
'
42
36
export as_nl
44
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
42
# but without wasting forks for bash or zsh.
 
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
45
  as_echo='print -r --'
 
46
  as_echo_n='print -rn --'
 
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
48
  as_echo='printf %s\n'
49
49
  as_echo_n='printf %s'
50
50
else
55
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
56
    as_echo_n_body='eval
57
57
      arg=$1;
58
 
      case $arg in
 
58
      case $arg in #(
59
59
      *"$as_nl"*)
60
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
78
78
  }
79
79
fi
80
80
 
81
 
# Support unset when possible.
82
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
 
  as_unset=unset
84
 
else
85
 
  as_unset=false
86
 
fi
87
 
 
88
81
 
89
82
# IFS
90
83
# We need space, tab and new line, in precisely that order.  Quoting is
94
87
IFS=" ""        $as_nl"
95
88
 
96
89
# Find who we are.  Look in the path if we contain no directory separator.
97
 
case $0 in
 
90
case $0 in #((
98
91
  *[\\/]* ) as_myself=$0 ;;
99
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
93
for as_dir in $PATH
101
94
do
102
95
  IFS=$as_save_IFS
103
96
  test -z "$as_dir" && as_dir=.
104
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
 
done
 
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
98
  done
106
99
IFS=$as_save_IFS
107
100
 
108
101
     ;;
114
107
fi
115
108
if test ! -f "$as_myself"; then
116
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
 
  { (exit 1); exit 1; }
 
110
  exit 1
118
111
fi
119
112
 
120
 
# Work around bugs in pre-3.0 UWIN ksh.
121
 
for as_var in ENV MAIL MAILPATH
122
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
 
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
115
# suppresses any "Segmentation fault" message there.  '((' could
 
116
# trigger a bug in pdksh 5.2.14.
 
117
for as_var in BASH_ENV ENV MAIL MAILPATH
 
118
do eval test x\${$as_var+set} = xset \
 
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
120
done
124
121
PS1='$ '
125
122
PS2='> '
131
128
LANGUAGE=C
132
129
export LANGUAGE
133
130
 
134
 
# Required to use basename.
135
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
 
  as_expr=expr
138
 
else
139
 
  as_expr=false
140
 
fi
141
 
 
142
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
 
  as_basename=basename
144
 
else
145
 
  as_basename=false
146
 
fi
147
 
 
148
 
 
149
 
# Name of the executable.
150
 
as_me=`$as_basename -- "$0" ||
151
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
 
         X"$0" : 'X\(//\)$' \| \
153
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
 
$as_echo X/"$0" |
155
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
 
            s//\1/
157
 
            q
158
 
          }
159
 
          /^X\/\(\/\/\)$/{
160
 
            s//\1/
161
 
            q
162
 
          }
163
 
          /^X\/\(\/\).*/{
164
 
            s//\1/
165
 
            q
166
 
          }
167
 
          s/.*/./; q'`
168
 
 
169
131
# CDPATH.
170
 
$as_unset CDPATH
171
 
 
 
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
172
133
 
173
134
if test "x$CONFIG_SHELL" = x; then
174
 
  if (eval ":") 2>/dev/null; then
 
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
136
  emulate sh
 
137
  NULLCMD=:
 
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
139
  # is contrary to our usage.  Disable this feature.
 
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
141
  setopt NO_GLOB_SUBST
 
142
else
 
143
  case \`(set -o) 2>/dev/null\` in #(
 
144
  *posix*) :
 
145
    set -o posix ;; #(
 
146
  *) :
 
147
     ;;
 
148
esac
 
149
fi
 
150
"
 
151
  as_required="as_fn_return () { (exit \$1); }
 
152
as_fn_success () { as_fn_return 0; }
 
153
as_fn_failure () { as_fn_return 1; }
 
154
as_fn_ret_success () { return 0; }
 
155
as_fn_ret_failure () { return 1; }
 
156
 
 
157
exitcode=0
 
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
163
 
 
164
else
 
165
  exitcode=1; echo positional parameters were not saved.
 
166
fi
 
167
test x\$exitcode = x0 || exit 1"
 
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
172
test \$(( 1 + 1 )) = 2 || exit 1"
 
173
  if (eval "$as_required") 2>/dev/null; then :
175
174
  as_have_required=yes
176
175
else
177
176
  as_have_required=no
178
177
fi
179
 
 
180
 
  if test $as_have_required = yes &&     (eval ":
181
 
(as_func_return () {
182
 
  (exit \$1)
183
 
}
184
 
as_func_success () {
185
 
  as_func_return 0
186
 
}
187
 
as_func_failure () {
188
 
  as_func_return 1
189
 
}
190
 
as_func_ret_success () {
191
 
  return 0
192
 
}
193
 
as_func_ret_failure () {
194
 
  return 1
195
 
}
196
 
 
197
 
exitcode=0
198
 
if as_func_success; then
199
 
  :
200
 
else
201
 
  exitcode=1
202
 
  echo as_func_success failed.
203
 
fi
204
 
 
205
 
if as_func_failure; then
206
 
  exitcode=1
207
 
  echo as_func_failure succeeded.
208
 
fi
209
 
 
210
 
if as_func_ret_success; then
211
 
  :
212
 
else
213
 
  exitcode=1
214
 
  echo as_func_ret_success failed.
215
 
fi
216
 
 
217
 
if as_func_ret_failure; then
218
 
  exitcode=1
219
 
  echo as_func_ret_failure succeeded.
220
 
fi
221
 
 
222
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
 
  :
224
 
else
225
 
  exitcode=1
226
 
  echo positional parameters were not saved.
227
 
fi
228
 
 
229
 
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
 
231
 
(
232
 
  as_lineno_1=\$LINENO
233
 
  as_lineno_2=\$LINENO
234
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
 
") 2> /dev/null; then
237
 
  :
238
 
else
239
 
  as_candidate_shells=
240
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
178
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
179
 
 
180
else
 
181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
182
as_found=false
241
183
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
184
do
243
185
  IFS=$as_save_IFS
244
186
  test -z "$as_dir" && as_dir=.
245
 
  case $as_dir in
 
187
  as_found=:
 
188
  case $as_dir in #(
246
189
         /*)
247
190
           for as_base in sh bash ksh sh5; do
248
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
191
             # Try only shells that exist, to save several forks.
 
192
             as_shell=$as_dir/$as_base
 
193
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
194
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
195
  CONFIG_SHELL=$as_shell as_have_required=yes
 
196
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  break 2
 
198
fi
 
199
fi
249
200
           done;;
250
201
       esac
 
202
  as_found=false
251
203
done
 
204
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
205
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
206
  CONFIG_SHELL=$SHELL as_have_required=yes
 
207
fi; }
252
208
IFS=$as_save_IFS
253
209
 
254
210
 
255
 
      for as_shell in $as_candidate_shells $SHELL; do
256
 
         # Try only shells that exist, to save several forks.
257
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
259
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
 
  emulate sh
261
 
  NULLCMD=:
262
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
 
  # is contrary to our usage.  Disable this feature.
264
 
  alias -g '${1+"$@"}'='"$@"'
265
 
  setopt NO_GLOB_SUBST
266
 
else
267
 
  case `(set -o) 2>/dev/null` in
268
 
  *posix*) set -o posix ;;
269
 
esac
270
 
 
271
 
fi
272
 
 
273
 
 
274
 
:
275
 
_ASEOF
276
 
}; then
277
 
  CONFIG_SHELL=$as_shell
278
 
               as_have_required=yes
279
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
280
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
 
  emulate sh
282
 
  NULLCMD=:
283
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
 
  # is contrary to our usage.  Disable this feature.
285
 
  alias -g '${1+"$@"}'='"$@"'
286
 
  setopt NO_GLOB_SUBST
287
 
else
288
 
  case `(set -o) 2>/dev/null` in
289
 
  *posix*) set -o posix ;;
290
 
esac
291
 
 
292
 
fi
293
 
 
294
 
 
295
 
:
296
 
(as_func_return () {
297
 
  (exit $1)
298
 
}
299
 
as_func_success () {
300
 
  as_func_return 0
301
 
}
302
 
as_func_failure () {
303
 
  as_func_return 1
304
 
}
305
 
as_func_ret_success () {
306
 
  return 0
307
 
}
308
 
as_func_ret_failure () {
309
 
  return 1
310
 
}
311
 
 
312
 
exitcode=0
313
 
if as_func_success; then
314
 
  :
315
 
else
316
 
  exitcode=1
317
 
  echo as_func_success failed.
318
 
fi
319
 
 
320
 
if as_func_failure; then
321
 
  exitcode=1
322
 
  echo as_func_failure succeeded.
323
 
fi
324
 
 
325
 
if as_func_ret_success; then
326
 
  :
327
 
else
328
 
  exitcode=1
329
 
  echo as_func_ret_success failed.
330
 
fi
331
 
 
332
 
if as_func_ret_failure; then
333
 
  exitcode=1
334
 
  echo as_func_ret_failure succeeded.
335
 
fi
336
 
 
337
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
 
  :
339
 
else
340
 
  exitcode=1
341
 
  echo positional parameters were not saved.
342
 
fi
343
 
 
344
 
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
 
346
 
(
347
 
  as_lineno_1=$LINENO
348
 
  as_lineno_2=$LINENO
349
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
 
352
 
_ASEOF
353
 
}; then
354
 
  break
355
 
fi
356
 
 
357
 
fi
358
 
 
359
 
      done
360
 
 
361
 
      if test "x$CONFIG_SHELL" != x; then
362
 
  for as_var in BASH_ENV ENV
363
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
 
        done
 
211
      if test "x$CONFIG_SHELL" != x; then :
 
212
  # We cannot yet assume a decent shell, so we have to provide a
 
213
        # neutralization value for shells without unset; and this also
 
214
        # works around shells that cannot unset nonexistent variables.
 
215
        BASH_ENV=/dev/null
 
216
        ENV=/dev/null
 
217
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
365
218
        export CONFIG_SHELL
366
219
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
220
fi
368
221
 
369
 
 
370
 
    if test $as_have_required = no; then
371
 
  echo This script requires a shell more modern than all the
372
 
      echo shells that I found on your system.  Please install a
373
 
      echo modern shell, or manually run the script under such a
374
 
      echo shell if you do have one.
375
 
      { (exit 1); exit 1; }
376
 
fi
377
 
 
378
 
 
379
 
fi
380
 
 
381
 
fi
382
 
 
383
 
 
384
 
 
385
 
(eval "as_func_return () {
386
 
  (exit \$1)
387
 
}
388
 
as_func_success () {
389
 
  as_func_return 0
390
 
}
391
 
as_func_failure () {
392
 
  as_func_return 1
393
 
}
394
 
as_func_ret_success () {
395
 
  return 0
396
 
}
397
 
as_func_ret_failure () {
398
 
  return 1
399
 
}
400
 
 
401
 
exitcode=0
402
 
if as_func_success; then
403
 
  :
404
 
else
405
 
  exitcode=1
406
 
  echo as_func_success failed.
407
 
fi
408
 
 
409
 
if as_func_failure; then
410
 
  exitcode=1
411
 
  echo as_func_failure succeeded.
412
 
fi
413
 
 
414
 
if as_func_ret_success; then
415
 
  :
416
 
else
417
 
  exitcode=1
418
 
  echo as_func_ret_success failed.
419
 
fi
420
 
 
421
 
if as_func_ret_failure; then
422
 
  exitcode=1
423
 
  echo as_func_ret_failure succeeded.
424
 
fi
425
 
 
426
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
 
  :
428
 
else
429
 
  exitcode=1
430
 
  echo positional parameters were not saved.
431
 
fi
432
 
 
433
 
test \$exitcode = 0") || {
434
 
  echo No shell found that supports shell functions.
435
 
  echo Please tell bug-autoconf@gnu.org about your system,
436
 
  echo including any error possibly output before this message.
437
 
  echo This can help us improve future autoconf versions.
438
 
  echo Configuration will now proceed without shell functions.
439
 
}
440
 
 
441
 
 
442
 
 
443
 
  as_lineno_1=$LINENO
444
 
  as_lineno_2=$LINENO
445
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
 
448
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
 
  # line-number line after each line using $LINENO; the second 'sed'
451
 
  # does the real work.  The second script uses 'N' to pair each
452
 
  # line-number line with the line containing $LINENO, and appends
453
 
  # trailing '-' during substitution so that $LINENO is not a special
454
 
  # case at line end.
455
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
222
    if test x$as_have_required = xno; then :
 
223
  $as_echo "$0: This script requires a shell more modern than all"
 
224
  $as_echo "$0: the shells that I found on your system."
 
225
  if test x${ZSH_VERSION+set} = xset ; then
 
226
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
227
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
228
  else
 
229
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
230
$0: including any error possibly output before this
 
231
$0: message. Then install a modern shell, or manually run
 
232
$0: the script under such a shell if you do have one."
 
233
  fi
 
234
  exit 1
 
235
fi
 
236
fi
 
237
fi
 
238
SHELL=${CONFIG_SHELL-/bin/sh}
 
239
export SHELL
 
240
# Unset more variables known to interfere with behavior of common tools.
 
241
CLICOLOR_FORCE= GREP_OPTIONS=
 
242
unset CLICOLOR_FORCE GREP_OPTIONS
 
243
 
 
244
## --------------------- ##
 
245
## M4sh Shell Functions. ##
 
246
## --------------------- ##
 
247
# as_fn_unset VAR
 
248
# ---------------
 
249
# Portably unset VAR.
 
250
as_fn_unset ()
 
251
{
 
252
  { eval $1=; unset $1;}
 
253
}
 
254
as_unset=as_fn_unset
 
255
 
 
256
# as_fn_set_status STATUS
 
257
# -----------------------
 
258
# Set $? to STATUS, without forking.
 
259
as_fn_set_status ()
 
260
{
 
261
  return $1
 
262
} # as_fn_set_status
 
263
 
 
264
# as_fn_exit STATUS
 
265
# -----------------
 
266
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
267
as_fn_exit ()
 
268
{
 
269
  set +e
 
270
  as_fn_set_status $1
 
271
  exit $1
 
272
} # as_fn_exit
 
273
 
 
274
# as_fn_mkdir_p
 
275
# -------------
 
276
# Create "$as_dir" as a directory, including parents if necessary.
 
277
as_fn_mkdir_p ()
 
278
{
 
279
 
 
280
  case $as_dir in #(
 
281
  -*) as_dir=./$as_dir;;
 
282
  esac
 
283
  test -d "$as_dir" || eval $as_mkdir_p || {
 
284
    as_dirs=
 
285
    while :; do
 
286
      case $as_dir in #(
 
287
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
288
      *) as_qdir=$as_dir;;
 
289
      esac
 
290
      as_dirs="'$as_qdir' $as_dirs"
 
291
      as_dir=`$as_dirname -- "$as_dir" ||
 
292
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
293
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
294
         X"$as_dir" : 'X\(//\)$' \| \
 
295
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
296
$as_echo X"$as_dir" |
 
297
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
298
            s//\1/
 
299
            q
 
300
          }
 
301
          /^X\(\/\/\)[^/].*/{
 
302
            s//\1/
 
303
            q
 
304
          }
 
305
          /^X\(\/\/\)$/{
 
306
            s//\1/
 
307
            q
 
308
          }
 
309
          /^X\(\/\).*/{
 
310
            s//\1/
 
311
            q
 
312
          }
 
313
          s/.*/./; q'`
 
314
      test -d "$as_dir" && break
 
315
    done
 
316
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
317
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
318
 
 
319
 
 
320
} # as_fn_mkdir_p
 
321
# as_fn_append VAR VALUE
 
322
# ----------------------
 
323
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
324
# advantage of any shell optimizations that allow amortized linear growth over
 
325
# repeated appends, instead of the typical quadratic growth present in naive
 
326
# implementations.
 
327
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
328
  eval 'as_fn_append ()
 
329
  {
 
330
    eval $1+=\$2
 
331
  }'
 
332
else
 
333
  as_fn_append ()
 
334
  {
 
335
    eval $1=\$$1\$2
 
336
  }
 
337
fi # as_fn_append
 
338
 
 
339
# as_fn_arith ARG...
 
340
# ------------------
 
341
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
342
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
343
# must be portable across $(()) and expr.
 
344
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
345
  eval 'as_fn_arith ()
 
346
  {
 
347
    as_val=$(( $* ))
 
348
  }'
 
349
else
 
350
  as_fn_arith ()
 
351
  {
 
352
    as_val=`expr "$@" || test $? -eq 1`
 
353
  }
 
354
fi # as_fn_arith
 
355
 
 
356
 
 
357
# as_fn_error ERROR [LINENO LOG_FD]
 
358
# ---------------------------------
 
359
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
360
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
361
# script with status $?, using 1 if that was 0.
 
362
as_fn_error ()
 
363
{
 
364
  as_status=$?; test $as_status -eq 0 && as_status=1
 
365
  if test "$3"; then
 
366
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
367
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
368
  fi
 
369
  $as_echo "$as_me: error: $1" >&2
 
370
  as_fn_exit $as_status
 
371
} # as_fn_error
 
372
 
 
373
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
374
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
375
  as_expr=expr
 
376
else
 
377
  as_expr=false
 
378
fi
 
379
 
 
380
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
381
  as_basename=basename
 
382
else
 
383
  as_basename=false
 
384
fi
 
385
 
 
386
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
387
  as_dirname=dirname
 
388
else
 
389
  as_dirname=false
 
390
fi
 
391
 
 
392
as_me=`$as_basename -- "$0" ||
 
393
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
394
         X"$0" : 'X\(//\)$' \| \
 
395
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
396
$as_echo X/"$0" |
 
397
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
398
            s//\1/
 
399
            q
 
400
          }
 
401
          /^X\/\(\/\/\)$/{
 
402
            s//\1/
 
403
            q
 
404
          }
 
405
          /^X\/\(\/\).*/{
 
406
            s//\1/
 
407
            q
 
408
          }
 
409
          s/.*/./; q'`
 
410
 
 
411
# Avoid depending upon Character Ranges.
 
412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
415
as_cr_digits='0123456789'
 
416
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
417
 
 
418
 
 
419
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
420
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
421
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
422
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
423
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
458
424
  sed -n '
459
425
    p
460
426
    /[$]LINENO/=
471
437
      s/-\n.*//
472
438
    ' >$as_me.lineno &&
473
439
  chmod +x "$as_me.lineno" ||
474
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
 
   { (exit 1); exit 1; }; }
 
440
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
476
441
 
477
442
  # Don't try to exec as it changes $[0], causing all sort of problems
478
443
  # (the dirname of $[0] is not the place where we might find the
482
447
  exit
483
448
}
484
449
 
485
 
 
486
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
 
  as_dirname=dirname
488
 
else
489
 
  as_dirname=false
490
 
fi
491
 
 
492
450
ECHO_C= ECHO_N= ECHO_T=
493
 
case `echo -n x` in
 
451
case `echo -n x` in #(((((
494
452
-n*)
495
 
  case `echo 'x\c'` in
 
453
  case `echo 'xy\c'` in
496
454
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497
 
  *)   ECHO_C='\c';;
 
455
  xy)  ECHO_C='\c';;
 
456
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
457
       ECHO_T=' ';;
498
458
  esac;;
499
459
*)
500
460
  ECHO_N='-n';;
501
461
esac
502
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
 
  as_expr=expr
505
 
else
506
 
  as_expr=false
507
 
fi
508
462
 
509
463
rm -f conf$$ conf$$.exe conf$$.file
510
464
if test -d conf$$.dir; then
534
488
rmdir conf$$.dir 2>/dev/null
535
489
 
536
490
if mkdir -p . 2>/dev/null; then
537
 
  as_mkdir_p=:
 
491
  as_mkdir_p='mkdir -p "$as_dir"'
538
492
else
539
493
  test -d ./-p && rmdir ./-p
540
494
  as_mkdir_p=false
553
507
      if test -d "$1"; then
554
508
        test -d "$1/.";
555
509
      else
556
 
        case $1 in
 
510
        case $1 in #(
557
511
        -*)set "./$1";;
558
512
        esac;
559
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
513
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
560
514
        ???[sx]*):;;*)false;;esac;fi
561
515
    '\'' sh
562
516
  '
571
525
 
572
526
 
573
527
 
574
 
 
575
528
# Check that we are running under the correct shell.
576
529
SHELL=${CONFIG_SHELL-/bin/sh}
577
530
 
743
696
subdirs=
744
697
MFLAGS=
745
698
MAKEFLAGS=
746
 
SHELL=${CONFIG_SHELL-/bin/sh}
747
699
 
748
700
# Identity of this package.
749
701
PACKAGE_NAME=
751
703
PACKAGE_VERSION=
752
704
PACKAGE_STRING=
753
705
PACKAGE_BUGREPORT=
 
706
PACKAGE_URL=
754
707
 
755
708
ac_unique_file="build/apr_common.m4"
756
709
# Factoring default headers for most tests.
1039
992
program_transform_name
1040
993
prefix
1041
994
exec_prefix
 
995
PACKAGE_URL
1042
996
PACKAGE_BUGREPORT
1043
997
PACKAGE_STRING
1044
998
PACKAGE_VERSION
1199
1153
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1200
1154
    # Reject names that are not valid shell variable names.
1201
1155
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1203
 
   { (exit 1); exit 1; }; }
 
1156
      as_fn_error "invalid feature name: $ac_useropt"
1204
1157
    ac_useropt_orig=$ac_useropt
1205
1158
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206
1159
    case $ac_user_opts in
1226
1179
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1227
1180
    # Reject names that are not valid shell variable names.
1228
1181
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229
 
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1230
 
   { (exit 1); exit 1; }; }
 
1182
      as_fn_error "invalid feature name: $ac_useropt"
1231
1183
    ac_useropt_orig=$ac_useropt
1232
1184
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233
1185
    case $ac_user_opts in
1431
1383
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1432
1384
    # Reject names that are not valid shell variable names.
1433
1385
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1434
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1435
 
   { (exit 1); exit 1; }; }
 
1386
      as_fn_error "invalid package name: $ac_useropt"
1436
1387
    ac_useropt_orig=$ac_useropt
1437
1388
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438
1389
    case $ac_user_opts in
1448
1399
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1449
1400
    # Reject names that are not valid shell variable names.
1450
1401
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1451
 
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1452
 
   { (exit 1); exit 1; }; }
 
1402
      as_fn_error "invalid package name: $ac_useropt"
1453
1403
    ac_useropt_orig=$ac_useropt
1454
1404
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1455
1405
    case $ac_user_opts in
1479
1429
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1480
1430
    x_libraries=$ac_optarg ;;
1481
1431
 
1482
 
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1483
 
Try \`$0 --help' for more information." >&2
1484
 
   { (exit 1); exit 1; }; }
 
1432
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1433
Try \`$0 --help' for more information."
1485
1434
    ;;
1486
1435
 
1487
1436
  *=*)
1488
1437
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1489
1438
    # Reject names that are not valid shell variable names.
1490
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1491
 
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1492
 
   { (exit 1); exit 1; }; }
 
1439
    case $ac_envvar in #(
 
1440
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1441
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1442
    esac
1493
1443
    eval $ac_envvar=\$ac_optarg
1494
1444
    export $ac_envvar ;;
1495
1445
 
1506
1456
 
1507
1457
if test -n "$ac_prev"; then
1508
1458
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1509
 
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1510
 
   { (exit 1); exit 1; }; }
 
1459
  as_fn_error "missing argument to $ac_option"
1511
1460
fi
1512
1461
 
1513
1462
if test -n "$ac_unrecognized_opts"; then
1514
1463
  case $enable_option_checking in
1515
1464
    no) ;;
1516
 
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1517
 
   { (exit 1); exit 1; }; } ;;
 
1465
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1518
1466
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1519
1467
  esac
1520
1468
fi
1537
1485
    [\\/$]* | ?:[\\/]* )  continue;;
1538
1486
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1539
1487
  esac
1540
 
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1541
 
   { (exit 1); exit 1; }; }
 
1488
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1542
1489
done
1543
1490
 
1544
1491
# There might be people who depend on the old broken behavior: `$host'
1568
1515
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1569
1516
ac_ls_di=`ls -di .` &&
1570
1517
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1571
 
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1572
 
   { (exit 1); exit 1; }; }
 
1518
  as_fn_error "working directory cannot be determined"
1573
1519
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1574
 
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1575
 
   { (exit 1); exit 1; }; }
 
1520
  as_fn_error "pwd does not report name of working directory"
1576
1521
 
1577
1522
 
1578
1523
# Find the source files, if location was not specified.
1611
1556
fi
1612
1557
if test ! -r "$srcdir/$ac_unique_file"; then
1613
1558
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1614
 
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1615
 
   { (exit 1); exit 1; }; }
 
1559
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1616
1560
fi
1617
1561
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1618
1562
ac_abs_confdir=`(
1619
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1620
 
   { (exit 1); exit 1; }; }
 
1563
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1621
1564
        pwd)`
1622
1565
# When building in place, set srcdir=.
1623
1566
if test "$ac_abs_confdir" = "$ac_pwd"; then
1766
1709
Use these variables to override the choices made by `configure' or to help
1767
1710
it to find libraries and programs with nonstandard names/locations.
1768
1711
 
 
1712
Report bugs to the package provider.
1769
1713
_ACEOF
1770
1714
ac_status=$?
1771
1715
fi
1829
1773
if $ac_init_version; then
1830
1774
  cat <<\_ACEOF
1831
1775
configure
1832
 
generated by GNU Autoconf 2.63
 
1776
generated by GNU Autoconf 2.64
1833
1777
 
1834
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1835
 
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1778
Copyright (C) 2009 Free Software Foundation, Inc.
1836
1779
This configure script is free software; the Free Software Foundation
1837
1780
gives unlimited permission to copy, distribute and modify it.
1838
1781
_ACEOF
1839
1782
  exit
1840
1783
fi
 
1784
 
 
1785
## ------------------------ ##
 
1786
## Autoconf initialization. ##
 
1787
## ------------------------ ##
 
1788
 
 
1789
# ac_fn_c_try_compile LINENO
 
1790
# --------------------------
 
1791
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1792
ac_fn_c_try_compile ()
 
1793
{
 
1794
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1795
  rm -f conftest.$ac_objext
 
1796
  if { { ac_try="$ac_compile"
 
1797
case "(($ac_try" in
 
1798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1799
  *) ac_try_echo=$ac_try;;
 
1800
esac
 
1801
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1802
$as_echo "$ac_try_echo"; } >&5
 
1803
  (eval "$ac_compile") 2>conftest.err
 
1804
  ac_status=$?
 
1805
  if test -s conftest.err; then
 
1806
    grep -v '^ *+' conftest.err >conftest.er1
 
1807
    cat conftest.er1 >&5
 
1808
    mv -f conftest.er1 conftest.err
 
1809
  fi
 
1810
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1811
  test $ac_status = 0; } && {
 
1812
         test -z "$ac_c_werror_flag" ||
 
1813
         test ! -s conftest.err
 
1814
       } && test -s conftest.$ac_objext; then :
 
1815
  ac_retval=0
 
1816
else
 
1817
  $as_echo "$as_me: failed program was:" >&5
 
1818
sed 's/^/| /' conftest.$ac_ext >&5
 
1819
 
 
1820
        ac_retval=1
 
1821
fi
 
1822
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1823
  return $ac_retval
 
1824
 
 
1825
} # ac_fn_c_try_compile
 
1826
 
 
1827
# ac_fn_c_try_cpp LINENO
 
1828
# ----------------------
 
1829
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1830
ac_fn_c_try_cpp ()
 
1831
{
 
1832
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1833
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1834
case "(($ac_try" in
 
1835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1836
  *) ac_try_echo=$ac_try;;
 
1837
esac
 
1838
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1839
$as_echo "$ac_try_echo"; } >&5
 
1840
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1841
  ac_status=$?
 
1842
  if test -s conftest.err; then
 
1843
    grep -v '^ *+' conftest.err >conftest.er1
 
1844
    cat conftest.er1 >&5
 
1845
    mv -f conftest.er1 conftest.err
 
1846
  fi
 
1847
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1848
  test $ac_status = 0; } >/dev/null && {
 
1849
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1850
         test ! -s conftest.err
 
1851
       }; then :
 
1852
  ac_retval=0
 
1853
else
 
1854
  $as_echo "$as_me: failed program was:" >&5
 
1855
sed 's/^/| /' conftest.$ac_ext >&5
 
1856
 
 
1857
    ac_retval=1
 
1858
fi
 
1859
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1860
  return $ac_retval
 
1861
 
 
1862
} # ac_fn_c_try_cpp
 
1863
 
 
1864
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1865
# -------------------------------------------------------
 
1866
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1867
# the include files in INCLUDES and setting the cache variable VAR
 
1868
# accordingly.
 
1869
ac_fn_c_check_header_mongrel ()
 
1870
{
 
1871
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1872
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1873
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1874
$as_echo_n "checking for $2... " >&6; }
 
1875
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1876
  $as_echo_n "(cached) " >&6
 
1877
fi
 
1878
eval ac_res=\$$3
 
1879
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1880
$as_echo "$ac_res" >&6; }
 
1881
else
 
1882
  # Is the header compilable?
 
1883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1884
$as_echo_n "checking $2 usability... " >&6; }
 
1885
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1886
/* end confdefs.h.  */
 
1887
$4
 
1888
#include <$2>
 
1889
_ACEOF
 
1890
if ac_fn_c_try_compile "$LINENO"; then :
 
1891
  ac_header_compiler=yes
 
1892
else
 
1893
  ac_header_compiler=no
 
1894
fi
 
1895
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1897
$as_echo "$ac_header_compiler" >&6; }
 
1898
 
 
1899
# Is the header present?
 
1900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1901
$as_echo_n "checking $2 presence... " >&6; }
 
1902
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1903
/* end confdefs.h.  */
 
1904
#include <$2>
 
1905
_ACEOF
 
1906
if ac_fn_c_try_cpp "$LINENO"; then :
 
1907
  ac_header_preproc=yes
 
1908
else
 
1909
  ac_header_preproc=no
 
1910
fi
 
1911
rm -f conftest.err conftest.$ac_ext
 
1912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1913
$as_echo "$ac_header_preproc" >&6; }
 
1914
 
 
1915
# So?  What about this header?
 
1916
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1917
  yes:no: )
 
1918
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1919
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1920
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1921
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1922
    ;;
 
1923
  no:yes:* )
 
1924
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1925
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1926
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1927
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1928
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1929
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1930
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1931
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1932
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1933
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1934
    ;;
 
1935
esac
 
1936
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1937
$as_echo_n "checking for $2... " >&6; }
 
1938
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1939
  $as_echo_n "(cached) " >&6
 
1940
else
 
1941
  eval "$3=\$ac_header_compiler"
 
1942
fi
 
1943
eval ac_res=\$$3
 
1944
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1945
$as_echo "$ac_res" >&6; }
 
1946
fi
 
1947
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1948
 
 
1949
} # ac_fn_c_check_header_mongrel
 
1950
 
 
1951
# ac_fn_c_try_run LINENO
 
1952
# ----------------------
 
1953
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1954
# that executables *can* be run.
 
1955
ac_fn_c_try_run ()
 
1956
{
 
1957
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1958
  if { { ac_try="$ac_link"
 
1959
case "(($ac_try" in
 
1960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1961
  *) ac_try_echo=$ac_try;;
 
1962
esac
 
1963
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1964
$as_echo "$ac_try_echo"; } >&5
 
1965
  (eval "$ac_link") 2>&5
 
1966
  ac_status=$?
 
1967
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1968
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1969
  { { case "(($ac_try" in
 
1970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1971
  *) ac_try_echo=$ac_try;;
 
1972
esac
 
1973
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1974
$as_echo "$ac_try_echo"; } >&5
 
1975
  (eval "$ac_try") 2>&5
 
1976
  ac_status=$?
 
1977
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1978
  test $ac_status = 0; }; }; then :
 
1979
  ac_retval=0
 
1980
else
 
1981
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1982
       $as_echo "$as_me: failed program was:" >&5
 
1983
sed 's/^/| /' conftest.$ac_ext >&5
 
1984
 
 
1985
       ac_retval=$ac_status
 
1986
fi
 
1987
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1988
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1989
  return $ac_retval
 
1990
 
 
1991
} # ac_fn_c_try_run
 
1992
 
 
1993
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1994
# -------------------------------------------------------
 
1995
# Tests whether HEADER exists and can be compiled using the include files in
 
1996
# INCLUDES, setting the cache variable VAR accordingly.
 
1997
ac_fn_c_check_header_compile ()
 
1998
{
 
1999
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2000
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2001
$as_echo_n "checking for $2... " >&6; }
 
2002
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2003
  $as_echo_n "(cached) " >&6
 
2004
else
 
2005
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2006
/* end confdefs.h.  */
 
2007
$4
 
2008
#include <$2>
 
2009
_ACEOF
 
2010
if ac_fn_c_try_compile "$LINENO"; then :
 
2011
  eval "$3=yes"
 
2012
else
 
2013
  eval "$3=no"
 
2014
fi
 
2015
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2016
fi
 
2017
eval ac_res=\$$3
 
2018
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2019
$as_echo "$ac_res" >&6; }
 
2020
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2021
 
 
2022
} # ac_fn_c_check_header_compile
 
2023
 
 
2024
# ac_fn_c_try_link LINENO
 
2025
# -----------------------
 
2026
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2027
ac_fn_c_try_link ()
 
2028
{
 
2029
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2030
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2031
  if { { ac_try="$ac_link"
 
2032
case "(($ac_try" in
 
2033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2034
  *) ac_try_echo=$ac_try;;
 
2035
esac
 
2036
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2037
$as_echo "$ac_try_echo"; } >&5
 
2038
  (eval "$ac_link") 2>conftest.err
 
2039
  ac_status=$?
 
2040
  if test -s conftest.err; then
 
2041
    grep -v '^ *+' conftest.err >conftest.er1
 
2042
    cat conftest.er1 >&5
 
2043
    mv -f conftest.er1 conftest.err
 
2044
  fi
 
2045
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2046
  test $ac_status = 0; } && {
 
2047
         test -z "$ac_c_werror_flag" ||
 
2048
         test ! -s conftest.err
 
2049
       } && test -s conftest$ac_exeext && {
 
2050
         test "$cross_compiling" = yes ||
 
2051
         $as_test_x conftest$ac_exeext
 
2052
       }; then :
 
2053
  ac_retval=0
 
2054
else
 
2055
  $as_echo "$as_me: failed program was:" >&5
 
2056
sed 's/^/| /' conftest.$ac_ext >&5
 
2057
 
 
2058
        ac_retval=1
 
2059
fi
 
2060
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2061
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2062
  # interfere with the next link command; also delete a directory that is
 
2063
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2064
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2065
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2066
  return $ac_retval
 
2067
 
 
2068
} # ac_fn_c_try_link
 
2069
 
 
2070
# ac_fn_c_check_func LINENO FUNC VAR
 
2071
# ----------------------------------
 
2072
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2073
ac_fn_c_check_func ()
 
2074
{
 
2075
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2076
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2077
$as_echo_n "checking for $2... " >&6; }
 
2078
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2079
  $as_echo_n "(cached) " >&6
 
2080
else
 
2081
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2082
/* end confdefs.h.  */
 
2083
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2084
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2085
#define $2 innocuous_$2
 
2086
 
 
2087
/* System header to define __stub macros and hopefully few prototypes,
 
2088
    which can conflict with char $2 (); below.
 
2089
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2090
    <limits.h> exists even on freestanding compilers.  */
 
2091
 
 
2092
#ifdef __STDC__
 
2093
# include <limits.h>
 
2094
#else
 
2095
# include <assert.h>
 
2096
#endif
 
2097
 
 
2098
#undef $2
 
2099
 
 
2100
/* Override any GCC internal prototype to avoid an error.
 
2101
   Use char because int might match the return type of a GCC
 
2102
   builtin and then its argument prototype would still apply.  */
 
2103
#ifdef __cplusplus
 
2104
extern "C"
 
2105
#endif
 
2106
char $2 ();
 
2107
/* The GNU C library defines this for functions which it implements
 
2108
    to always fail with ENOSYS.  Some functions are actually named
 
2109
    something starting with __ and the normal name is an alias.  */
 
2110
#if defined __stub_$2 || defined __stub___$2
 
2111
choke me
 
2112
#endif
 
2113
 
 
2114
int
 
2115
main ()
 
2116
{
 
2117
return $2 ();
 
2118
  ;
 
2119
  return 0;
 
2120
}
 
2121
_ACEOF
 
2122
if ac_fn_c_try_link "$LINENO"; then :
 
2123
  eval "$3=yes"
 
2124
else
 
2125
  eval "$3=no"
 
2126
fi
 
2127
rm -f core conftest.err conftest.$ac_objext \
 
2128
    conftest$ac_exeext conftest.$ac_ext
 
2129
fi
 
2130
eval ac_res=\$$3
 
2131
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2132
$as_echo "$ac_res" >&6; }
 
2133
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2134
 
 
2135
} # ac_fn_c_check_func
 
2136
 
 
2137
# ac_fn_cxx_try_compile LINENO
 
2138
# ----------------------------
 
2139
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
2140
ac_fn_cxx_try_compile ()
 
2141
{
 
2142
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2143
  rm -f conftest.$ac_objext
 
2144
  if { { ac_try="$ac_compile"
 
2145
case "(($ac_try" in
 
2146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2147
  *) ac_try_echo=$ac_try;;
 
2148
esac
 
2149
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2150
$as_echo "$ac_try_echo"; } >&5
 
2151
  (eval "$ac_compile") 2>conftest.err
 
2152
  ac_status=$?
 
2153
  if test -s conftest.err; then
 
2154
    grep -v '^ *+' conftest.err >conftest.er1
 
2155
    cat conftest.er1 >&5
 
2156
    mv -f conftest.er1 conftest.err
 
2157
  fi
 
2158
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2159
  test $ac_status = 0; } && {
 
2160
         test -z "$ac_cxx_werror_flag" ||
 
2161
         test ! -s conftest.err
 
2162
       } && test -s conftest.$ac_objext; then :
 
2163
  ac_retval=0
 
2164
else
 
2165
  $as_echo "$as_me: failed program was:" >&5
 
2166
sed 's/^/| /' conftest.$ac_ext >&5
 
2167
 
 
2168
        ac_retval=1
 
2169
fi
 
2170
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2171
  return $ac_retval
 
2172
 
 
2173
} # ac_fn_cxx_try_compile
 
2174
 
 
2175
# ac_fn_cxx_try_cpp LINENO
 
2176
# ------------------------
 
2177
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
2178
ac_fn_cxx_try_cpp ()
 
2179
{
 
2180
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2181
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
2182
case "(($ac_try" in
 
2183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2184
  *) ac_try_echo=$ac_try;;
 
2185
esac
 
2186
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2187
$as_echo "$ac_try_echo"; } >&5
 
2188
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
2189
  ac_status=$?
 
2190
  if test -s conftest.err; then
 
2191
    grep -v '^ *+' conftest.err >conftest.er1
 
2192
    cat conftest.er1 >&5
 
2193
    mv -f conftest.er1 conftest.err
 
2194
  fi
 
2195
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2196
  test $ac_status = 0; } >/dev/null && {
 
2197
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
2198
         test ! -s conftest.err
 
2199
       }; then :
 
2200
  ac_retval=0
 
2201
else
 
2202
  $as_echo "$as_me: failed program was:" >&5
 
2203
sed 's/^/| /' conftest.$ac_ext >&5
 
2204
 
 
2205
    ac_retval=1
 
2206
fi
 
2207
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2208
  return $ac_retval
 
2209
 
 
2210
} # ac_fn_cxx_try_cpp
 
2211
 
 
2212
# ac_fn_cxx_try_link LINENO
 
2213
# -------------------------
 
2214
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2215
ac_fn_cxx_try_link ()
 
2216
{
 
2217
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2218
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2219
  if { { ac_try="$ac_link"
 
2220
case "(($ac_try" in
 
2221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2222
  *) ac_try_echo=$ac_try;;
 
2223
esac
 
2224
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2225
$as_echo "$ac_try_echo"; } >&5
 
2226
  (eval "$ac_link") 2>conftest.err
 
2227
  ac_status=$?
 
2228
  if test -s conftest.err; then
 
2229
    grep -v '^ *+' conftest.err >conftest.er1
 
2230
    cat conftest.er1 >&5
 
2231
    mv -f conftest.er1 conftest.err
 
2232
  fi
 
2233
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2234
  test $ac_status = 0; } && {
 
2235
         test -z "$ac_cxx_werror_flag" ||
 
2236
         test ! -s conftest.err
 
2237
       } && test -s conftest$ac_exeext && {
 
2238
         test "$cross_compiling" = yes ||
 
2239
         $as_test_x conftest$ac_exeext
 
2240
       }; then :
 
2241
  ac_retval=0
 
2242
else
 
2243
  $as_echo "$as_me: failed program was:" >&5
 
2244
sed 's/^/| /' conftest.$ac_ext >&5
 
2245
 
 
2246
        ac_retval=1
 
2247
fi
 
2248
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2249
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2250
  # interfere with the next link command; also delete a directory that is
 
2251
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2252
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2253
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2254
  return $ac_retval
 
2255
 
 
2256
} # ac_fn_cxx_try_link
 
2257
 
 
2258
# ac_fn_f77_try_compile LINENO
 
2259
# ----------------------------
 
2260
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
2261
ac_fn_f77_try_compile ()
 
2262
{
 
2263
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2264
  rm -f conftest.$ac_objext
 
2265
  if { { ac_try="$ac_compile"
 
2266
case "(($ac_try" in
 
2267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2268
  *) ac_try_echo=$ac_try;;
 
2269
esac
 
2270
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2271
$as_echo "$ac_try_echo"; } >&5
 
2272
  (eval "$ac_compile") 2>conftest.err
 
2273
  ac_status=$?
 
2274
  if test -s conftest.err; then
 
2275
    grep -v '^ *+' conftest.err >conftest.er1
 
2276
    cat conftest.er1 >&5
 
2277
    mv -f conftest.er1 conftest.err
 
2278
  fi
 
2279
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2280
  test $ac_status = 0; } && {
 
2281
         test -z "$ac_f77_werror_flag" ||
 
2282
         test ! -s conftest.err
 
2283
       } && test -s conftest.$ac_objext; then :
 
2284
  ac_retval=0
 
2285
else
 
2286
  $as_echo "$as_me: failed program was:" >&5
 
2287
sed 's/^/| /' conftest.$ac_ext >&5
 
2288
 
 
2289
        ac_retval=1
 
2290
fi
 
2291
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2292
  return $ac_retval
 
2293
 
 
2294
} # ac_fn_f77_try_compile
 
2295
 
 
2296
# ac_fn_f77_try_link LINENO
 
2297
# -------------------------
 
2298
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
2299
ac_fn_f77_try_link ()
 
2300
{
 
2301
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2302
  rm -f conftest.$ac_objext conftest$ac_exeext
 
2303
  if { { ac_try="$ac_link"
 
2304
case "(($ac_try" in
 
2305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2306
  *) ac_try_echo=$ac_try;;
 
2307
esac
 
2308
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2309
$as_echo "$ac_try_echo"; } >&5
 
2310
  (eval "$ac_link") 2>conftest.err
 
2311
  ac_status=$?
 
2312
  if test -s conftest.err; then
 
2313
    grep -v '^ *+' conftest.err >conftest.er1
 
2314
    cat conftest.er1 >&5
 
2315
    mv -f conftest.er1 conftest.err
 
2316
  fi
 
2317
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2318
  test $ac_status = 0; } && {
 
2319
         test -z "$ac_f77_werror_flag" ||
 
2320
         test ! -s conftest.err
 
2321
       } && test -s conftest$ac_exeext && {
 
2322
         test "$cross_compiling" = yes ||
 
2323
         $as_test_x conftest$ac_exeext
 
2324
       }; then :
 
2325
  ac_retval=0
 
2326
else
 
2327
  $as_echo "$as_me: failed program was:" >&5
 
2328
sed 's/^/| /' conftest.$ac_ext >&5
 
2329
 
 
2330
        ac_retval=1
 
2331
fi
 
2332
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2333
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2334
  # interfere with the next link command; also delete a directory that is
 
2335
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2336
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2337
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2338
  return $ac_retval
 
2339
 
 
2340
} # ac_fn_f77_try_link
 
2341
 
 
2342
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
2343
# --------------------------------------------
 
2344
# Tries to find the compile-time value of EXPR in a program that includes
 
2345
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
2346
# computed
 
2347
ac_fn_c_compute_int ()
 
2348
{
 
2349
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2350
  if test "$cross_compiling" = yes; then
 
2351
    # Depending upon the size, compute the lo and hi bounds.
 
2352
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2353
/* end confdefs.h.  */
 
2354
$4
 
2355
int
 
2356
main ()
 
2357
{
 
2358
static int test_array [1 - 2 * !(($2) >= 0)];
 
2359
test_array [0] = 0
 
2360
 
 
2361
  ;
 
2362
  return 0;
 
2363
}
 
2364
_ACEOF
 
2365
if ac_fn_c_try_compile "$LINENO"; then :
 
2366
  ac_lo=0 ac_mid=0
 
2367
  while :; do
 
2368
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2369
/* end confdefs.h.  */
 
2370
$4
 
2371
int
 
2372
main ()
 
2373
{
 
2374
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2375
test_array [0] = 0
 
2376
 
 
2377
  ;
 
2378
  return 0;
 
2379
}
 
2380
_ACEOF
 
2381
if ac_fn_c_try_compile "$LINENO"; then :
 
2382
  ac_hi=$ac_mid; break
 
2383
else
 
2384
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2385
                        if test $ac_lo -le $ac_mid; then
 
2386
                          ac_lo= ac_hi=
 
2387
                          break
 
2388
                        fi
 
2389
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2390
fi
 
2391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2392
  done
 
2393
else
 
2394
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2395
/* end confdefs.h.  */
 
2396
$4
 
2397
int
 
2398
main ()
 
2399
{
 
2400
static int test_array [1 - 2 * !(($2) < 0)];
 
2401
test_array [0] = 0
 
2402
 
 
2403
  ;
 
2404
  return 0;
 
2405
}
 
2406
_ACEOF
 
2407
if ac_fn_c_try_compile "$LINENO"; then :
 
2408
  ac_hi=-1 ac_mid=-1
 
2409
  while :; do
 
2410
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2411
/* end confdefs.h.  */
 
2412
$4
 
2413
int
 
2414
main ()
 
2415
{
 
2416
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
2417
test_array [0] = 0
 
2418
 
 
2419
  ;
 
2420
  return 0;
 
2421
}
 
2422
_ACEOF
 
2423
if ac_fn_c_try_compile "$LINENO"; then :
 
2424
  ac_lo=$ac_mid; break
 
2425
else
 
2426
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2427
                        if test $ac_mid -le $ac_hi; then
 
2428
                          ac_lo= ac_hi=
 
2429
                          break
 
2430
                        fi
 
2431
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2432
fi
 
2433
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2434
  done
 
2435
else
 
2436
  ac_lo= ac_hi=
 
2437
fi
 
2438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2439
fi
 
2440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2441
# Binary search between lo and hi bounds.
 
2442
while test "x$ac_lo" != "x$ac_hi"; do
 
2443
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
2444
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2445
/* end confdefs.h.  */
 
2446
$4
 
2447
int
 
2448
main ()
 
2449
{
 
2450
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2451
test_array [0] = 0
 
2452
 
 
2453
  ;
 
2454
  return 0;
 
2455
}
 
2456
_ACEOF
 
2457
if ac_fn_c_try_compile "$LINENO"; then :
 
2458
  ac_hi=$ac_mid
 
2459
else
 
2460
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2461
fi
 
2462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2463
done
 
2464
case $ac_lo in #((
 
2465
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2466
'') ac_retval=1 ;;
 
2467
esac
 
2468
  else
 
2469
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2470
/* end confdefs.h.  */
 
2471
$4
 
2472
static long int longval () { return $2; }
 
2473
static unsigned long int ulongval () { return $2; }
 
2474
#include <stdio.h>
 
2475
#include <stdlib.h>
 
2476
int
 
2477
main ()
 
2478
{
 
2479
 
 
2480
  FILE *f = fopen ("conftest.val", "w");
 
2481
  if (! f)
 
2482
    return 1;
 
2483
  if (($2) < 0)
 
2484
    {
 
2485
      long int i = longval ();
 
2486
      if (i != ($2))
 
2487
        return 1;
 
2488
      fprintf (f, "%ld", i);
 
2489
    }
 
2490
  else
 
2491
    {
 
2492
      unsigned long int i = ulongval ();
 
2493
      if (i != ($2))
 
2494
        return 1;
 
2495
      fprintf (f, "%lu", i);
 
2496
    }
 
2497
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2498
     on some platforms.  */
 
2499
  return ferror (f) || fclose (f) != 0;
 
2500
 
 
2501
  ;
 
2502
  return 0;
 
2503
}
 
2504
_ACEOF
 
2505
if ac_fn_c_try_run "$LINENO"; then :
 
2506
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2507
else
 
2508
  ac_retval=1
 
2509
fi
 
2510
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2511
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2512
rm -f conftest.val
 
2513
 
 
2514
  fi
 
2515
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2516
  return $ac_retval
 
2517
 
 
2518
} # ac_fn_c_compute_int
 
2519
 
 
2520
# ac_fn_c_check_decl LINENO SYMBOL VAR
 
2521
# ------------------------------------
 
2522
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
 
2523
ac_fn_c_check_decl ()
 
2524
{
 
2525
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2526
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
 
2527
$as_echo_n "checking whether $2 is declared... " >&6; }
 
2528
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2529
  $as_echo_n "(cached) " >&6
 
2530
else
 
2531
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2532
/* end confdefs.h.  */
 
2533
$4
 
2534
int
 
2535
main ()
 
2536
{
 
2537
#ifndef $2
 
2538
  (void) $2;
 
2539
#endif
 
2540
 
 
2541
  ;
 
2542
  return 0;
 
2543
}
 
2544
_ACEOF
 
2545
if ac_fn_c_try_compile "$LINENO"; then :
 
2546
  eval "$3=yes"
 
2547
else
 
2548
  eval "$3=no"
 
2549
fi
 
2550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2551
fi
 
2552
eval ac_res=\$$3
 
2553
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2554
$as_echo "$ac_res" >&6; }
 
2555
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2556
 
 
2557
} # ac_fn_c_check_decl
 
2558
 
 
2559
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2560
# -------------------------------------------
 
2561
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2562
# variable VAR accordingly.
 
2563
ac_fn_c_check_type ()
 
2564
{
 
2565
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2566
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2567
$as_echo_n "checking for $2... " >&6; }
 
2568
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2569
  $as_echo_n "(cached) " >&6
 
2570
else
 
2571
  eval "$3=no"
 
2572
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2573
/* end confdefs.h.  */
 
2574
$4
 
2575
int
 
2576
main ()
 
2577
{
 
2578
if (sizeof ($2))
 
2579
         return 0;
 
2580
  ;
 
2581
  return 0;
 
2582
}
 
2583
_ACEOF
 
2584
if ac_fn_c_try_compile "$LINENO"; then :
 
2585
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2586
/* end confdefs.h.  */
 
2587
$4
 
2588
int
 
2589
main ()
 
2590
{
 
2591
if (sizeof (($2)))
 
2592
            return 0;
 
2593
  ;
 
2594
  return 0;
 
2595
}
 
2596
_ACEOF
 
2597
if ac_fn_c_try_compile "$LINENO"; then :
 
2598
 
 
2599
else
 
2600
  eval "$3=yes"
 
2601
fi
 
2602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2603
fi
 
2604
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2605
fi
 
2606
eval ac_res=\$$3
 
2607
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2608
$as_echo "$ac_res" >&6; }
 
2609
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2610
 
 
2611
} # ac_fn_c_check_type
 
2612
 
 
2613
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
2614
# ----------------------------------------------------
 
2615
# Tries to find if the field MEMBER exists in type AGGR, after including
 
2616
# INCLUDES, setting cache variable VAR accordingly.
 
2617
ac_fn_c_check_member ()
 
2618
{
 
2619
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2620
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
2621
$as_echo_n "checking for $2.$3... " >&6; }
 
2622
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2623
  $as_echo_n "(cached) " >&6
 
2624
else
 
2625
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2626
/* end confdefs.h.  */
 
2627
$5
 
2628
int
 
2629
main ()
 
2630
{
 
2631
static $2 ac_aggr;
 
2632
if (ac_aggr.$3)
 
2633
return 0;
 
2634
  ;
 
2635
  return 0;
 
2636
}
 
2637
_ACEOF
 
2638
if ac_fn_c_try_compile "$LINENO"; then :
 
2639
  eval "$4=yes"
 
2640
else
 
2641
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2642
/* end confdefs.h.  */
 
2643
$5
 
2644
int
 
2645
main ()
 
2646
{
 
2647
static $2 ac_aggr;
 
2648
if (sizeof ac_aggr.$3)
 
2649
return 0;
 
2650
  ;
 
2651
  return 0;
 
2652
}
 
2653
_ACEOF
 
2654
if ac_fn_c_try_compile "$LINENO"; then :
 
2655
  eval "$4=yes"
 
2656
else
 
2657
  eval "$4=no"
 
2658
fi
 
2659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2660
fi
 
2661
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2662
fi
 
2663
eval ac_res=\$$4
 
2664
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2665
$as_echo "$ac_res" >&6; }
 
2666
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2667
 
 
2668
} # ac_fn_c_check_member
1841
2669
cat >config.log <<_ACEOF
1842
2670
This file contains any messages produced by compilers while
1843
2671
running configure, to aid debugging if configure makes a mistake.
1844
2672
 
1845
2673
It was created by $as_me, which was
1846
 
generated by GNU Autoconf 2.63.  Invocation command line was
 
2674
generated by GNU Autoconf 2.64.  Invocation command line was
1847
2675
 
1848
2676
  $ $0 $@
1849
2677
 
1879
2707
do
1880
2708
  IFS=$as_save_IFS
1881
2709
  test -z "$as_dir" && as_dir=.
1882
 
  $as_echo "PATH: $as_dir"
1883
 
done
 
2710
    $as_echo "PATH: $as_dir"
 
2711
  done
1884
2712
IFS=$as_save_IFS
1885
2713
 
1886
2714
} >&5
1917
2745
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1918
2746
    esac
1919
2747
    case $ac_pass in
1920
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2748
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1921
2749
    2)
1922
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2750
      as_fn_append ac_configure_args1 " '$ac_arg'"
1923
2751
      if test $ac_must_keep_next = true; then
1924
2752
        ac_must_keep_next=false # Got value, back to normal.
1925
2753
      else
1935
2763
          -* ) ac_must_keep_next=true ;;
1936
2764
        esac
1937
2765
      fi
1938
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2766
      as_fn_append ac_configure_args " '$ac_arg'"
1939
2767
      ;;
1940
2768
    esac
1941
2769
  done
1942
2770
done
1943
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1944
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2771
{ ac_configure_args0=; unset ac_configure_args0;}
 
2772
{ ac_configure_args1=; unset ac_configure_args1;}
1945
2773
 
1946
2774
# When interrupted or exit'd, cleanup temporary files, and complete
1947
2775
# config.log.  We remove comments because anyway the quotes in there
1966
2794
    case $ac_val in #(
1967
2795
    *${as_nl}*)
1968
2796
      case $ac_var in #(
1969
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
2797
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1970
2798
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1971
2799
      esac
1972
2800
      case $ac_var in #(
1973
2801
      _ | IFS | as_nl) ;; #(
1974
2802
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1975
 
      *) $as_unset $ac_var ;;
 
2803
      *) { eval $ac_var=; unset $ac_var;} ;;
1976
2804
      esac ;;
1977
2805
    esac
1978
2806
  done
2044
2872
    exit $exit_status
2045
2873
' 0
2046
2874
for ac_signal in 1 2 13 15; do
2047
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2875
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2048
2876
done
2049
2877
ac_signal=0
2050
2878
 
2051
2879
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2052
2880
rm -f -r conftest* confdefs.h
2053
2881
 
 
2882
$as_echo "/* confdefs.h */" > confdefs.h
 
2883
 
2054
2884
# Predefined preprocessor variables.
2055
2885
 
2056
2886
cat >>confdefs.h <<_ACEOF
2057
2887
#define PACKAGE_NAME "$PACKAGE_NAME"
2058
2888
_ACEOF
2059
2889
 
2060
 
 
2061
2890
cat >>confdefs.h <<_ACEOF
2062
2891
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2063
2892
_ACEOF
2064
2893
 
2065
 
 
2066
2894
cat >>confdefs.h <<_ACEOF
2067
2895
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2068
2896
_ACEOF
2069
2897
 
2070
 
 
2071
2898
cat >>confdefs.h <<_ACEOF
2072
2899
#define PACKAGE_STRING "$PACKAGE_STRING"
2073
2900
_ACEOF
2074
2901
 
2075
 
 
2076
2902
cat >>confdefs.h <<_ACEOF
2077
2903
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2078
2904
_ACEOF
2079
2905
 
 
2906
cat >>confdefs.h <<_ACEOF
 
2907
#define PACKAGE_URL "$PACKAGE_URL"
 
2908
_ACEOF
 
2909
 
2080
2910
 
2081
2911
# Let the site file select an alternate cache file if it wants to.
2082
2912
# Prefer an explicitly selected file to automatically selected ones.
2095
2925
do
2096
2926
  test "x$ac_site_file" = xNONE && continue
2097
2927
  if test -r "$ac_site_file"; then
2098
 
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
2928
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2099
2929
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2100
2930
    sed 's/^/| /' "$ac_site_file" >&5
2101
2931
    . "$ac_site_file"
2106
2936
  # Some versions of bash will fail to source /dev/null (special
2107
2937
  # files actually), so we avoid doing that.
2108
2938
  if test -f "$cache_file"; then
2109
 
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2939
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110
2940
$as_echo "$as_me: loading cache $cache_file" >&6;}
2111
2941
    case $cache_file in
2112
2942
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114
2944
    esac
2115
2945
  fi
2116
2946
else
2117
 
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2947
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118
2948
$as_echo "$as_me: creating cache $cache_file" >&6;}
2119
2949
  >$cache_file
2120
2950
fi
2129
2959
  eval ac_new_val=\$ac_env_${ac_var}_value
2130
2960
  case $ac_old_set,$ac_new_set in
2131
2961
    set,)
2132
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2962
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133
2963
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134
2964
      ac_cache_corrupted=: ;;
2135
2965
    ,set)
2136
 
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2966
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137
2967
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138
2968
      ac_cache_corrupted=: ;;
2139
2969
    ,);;
2143
2973
        ac_old_val_w=`echo x $ac_old_val`
2144
2974
        ac_new_val_w=`echo x $ac_new_val`
2145
2975
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146
 
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2976
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147
2977
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148
2978
          ac_cache_corrupted=:
2149
2979
        else
2150
 
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2980
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151
2981
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152
2982
          eval $ac_var=\$ac_old_val
2153
2983
        fi
2154
 
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2984
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2155
2985
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2156
 
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2986
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2157
2987
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2158
2988
      fi;;
2159
2989
  esac
2165
2995
    esac
2166
2996
    case " $ac_configure_args " in
2167
2997
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2168
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2998
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2169
2999
    esac
2170
3000
  fi
2171
3001
done
2172
3002
if $ac_cache_corrupted; then
2173
 
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3003
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174
3004
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175
 
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
3005
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176
3006
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177
 
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2178
 
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2179
 
   { (exit 1); exit 1; }; }
 
3007
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2180
3008
fi
2181
 
 
2182
 
 
2183
 
 
2184
 
 
2185
 
 
2186
 
 
2187
 
 
2188
 
 
2189
 
 
2190
 
 
2191
 
 
2192
 
 
2193
 
 
2194
 
 
2195
 
 
2196
 
 
 
3009
## -------------------- ##
 
3010
## Main body of script. ##
 
3011
## -------------------- ##
2197
3012
 
2198
3013
ac_ext=c
2199
3014
ac_cpp='$CPP $CPPFLAGS'
2206
3021
 
2207
3022
ac_aux_dir=
2208
3023
for ac_dir in build "$srcdir"/build; do
2209
 
  if test -f "$ac_dir/install-sh"; then
2210
 
    ac_aux_dir=$ac_dir
2211
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2212
 
    break
2213
 
  elif test -f "$ac_dir/install.sh"; then
2214
 
    ac_aux_dir=$ac_dir
2215
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2216
 
    break
2217
 
  elif test -f "$ac_dir/shtool"; then
2218
 
    ac_aux_dir=$ac_dir
2219
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2220
 
    break
2221
 
  fi
 
3024
  for ac_t in install-sh install.sh shtool; do
 
3025
    if test -f "$ac_dir/$ac_t"; then
 
3026
      ac_aux_dir=$ac_dir
 
3027
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
3028
      break 2
 
3029
    fi
 
3030
  done
2222
3031
done
2223
3032
if test -z "$ac_aux_dir"; then
2224
 
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2225
 
$as_echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2226
 
   { (exit 1); exit 1; }; }
 
3033
  as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2227
3034
fi
2228
3035
 
2229
3036
# These three variables are undocumented and unsupported,
2881
3688
 
2882
3689
 
2883
3690
 
2884
 
 
2885
3691
  apr_ste_save_CPPFLAGS="$CPPFLAGS"
2886
3692
 
2887
3693
 
2963
3769
 
2964
3770
# Make sure we can run config.sub.
2965
3771
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2966
 
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2967
 
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2968
 
   { (exit 1); exit 1; }; }
 
3772
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2969
3773
 
2970
 
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
3774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2971
3775
$as_echo_n "checking build system type... " >&6; }
2972
 
if test "${ac_cv_build+set}" = set; then
 
3776
if test "${ac_cv_build+set}" = set; then :
2973
3777
  $as_echo_n "(cached) " >&6
2974
3778
else
2975
3779
  ac_build_alias=$build_alias
2976
3780
test "x$ac_build_alias" = x &&
2977
3781
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2978
3782
test "x$ac_build_alias" = x &&
2979
 
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2980
 
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2981
 
   { (exit 1); exit 1; }; }
 
3783
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2982
3784
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2983
 
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2984
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2985
 
   { (exit 1); exit 1; }; }
 
3785
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2986
3786
 
2987
3787
fi
2988
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2989
3789
$as_echo "$ac_cv_build" >&6; }
2990
3790
case $ac_cv_build in
2991
3791
*-*-*) ;;
2992
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2993
 
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2994
 
   { (exit 1); exit 1; }; };;
 
3792
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2995
3793
esac
2996
3794
build=$ac_cv_build
2997
3795
ac_save_IFS=$IFS; IFS='-'
3007
3805
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3008
3806
 
3009
3807
 
3010
 
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
3808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3011
3809
$as_echo_n "checking host system type... " >&6; }
3012
 
if test "${ac_cv_host+set}" = set; then
 
3810
if test "${ac_cv_host+set}" = set; then :
3013
3811
  $as_echo_n "(cached) " >&6
3014
3812
else
3015
3813
  if test "x$host_alias" = x; then
3016
3814
  ac_cv_host=$ac_cv_build
3017
3815
else
3018
3816
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3019
 
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3020
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3021
 
   { (exit 1); exit 1; }; }
 
3817
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3022
3818
fi
3023
3819
 
3024
3820
fi
3025
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3026
3822
$as_echo "$ac_cv_host" >&6; }
3027
3823
case $ac_cv_host in
3028
3824
*-*-*) ;;
3029
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3030
 
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3031
 
   { (exit 1); exit 1; }; };;
 
3825
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3032
3826
esac
3033
3827
host=$ac_cv_host
3034
3828
ac_save_IFS=$IFS; IFS='-'
3044
3838
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3045
3839
 
3046
3840
 
3047
 
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
 
3841
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3048
3842
$as_echo_n "checking target system type... " >&6; }
3049
 
if test "${ac_cv_target+set}" = set; then
 
3843
if test "${ac_cv_target+set}" = set; then :
3050
3844
  $as_echo_n "(cached) " >&6
3051
3845
else
3052
3846
  if test "x$target_alias" = x; then
3053
3847
  ac_cv_target=$ac_cv_host
3054
3848
else
3055
3849
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3056
 
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3057
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3058
 
   { (exit 1); exit 1; }; }
 
3850
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3059
3851
fi
3060
3852
 
3061
3853
fi
3062
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
3854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3063
3855
$as_echo "$ac_cv_target" >&6; }
3064
3856
case $ac_cv_target in
3065
3857
*-*-*) ;;
3066
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3067
 
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
3068
 
   { (exit 1); exit 1; }; };;
 
3858
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3069
3859
esac
3070
3860
target=$ac_cv_target
3071
3861
ac_save_IFS=$IFS; IFS='-'
3087
3877
  test "$program_prefix$program_suffix$program_transform_name" = \
3088
3878
    NONENONEs,x,x, &&
3089
3879
  program_prefix=${target_alias}-
 
3880
 
3090
3881
echo "Configuring APR library"
3091
3882
echo "Platform: $host"
3092
3883
 
3123
3914
MKDIR=$apr_builders/mkdir.sh
3124
3915
 
3125
3916
 
3126
 
  { $as_echo "$as_me:$LINENO: checking for working mkdir -p" >&5
 
3917
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
3127
3918
$as_echo_n "checking for working mkdir -p... " >&6; }
3128
 
if test "${ac_cv_mkdir_p+set}" = set; then
 
3919
if test "${ac_cv_mkdir_p+set}" = set; then :
3129
3920
  $as_echo_n "(cached) " >&6
3130
3921
else
3131
3922
 
3139
3930
    rm -rf conftestdir
3140
3931
 
3141
3932
fi
3142
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_mkdir_p" >&5
 
3933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
3143
3934
$as_echo "$ac_cv_mkdir_p" >&6; }
3144
3935
  if test "$ac_cv_mkdir_p" = "yes"; then
3145
3936
      mkdir_p="mkdir -p"
3161
3952
 
3162
3953
 
3163
3954
# Check whether --enable-layout was given.
3164
 
if test "${enable_layout+set}" = set; then
 
3955
if test "${enable_layout+set}" = set; then :
3165
3956
  enableval=$enable_layout;
3166
3957
  LAYOUT=$enableval
3167
3958
 
3231
4022
 
3232
4023
 
3233
4024
 
3234
 
{ $as_echo "$as_me:$LINENO: checking for chosen layout" >&5
 
4025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
3235
4026
$as_echo_n "checking for chosen layout... " >&6; }
3236
 
{ $as_echo "$as_me:$LINENO: result: $layout_name" >&5
 
4027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
3237
4028
$as_echo "$layout_name" >&6; }
3238
4029
 
3239
4030
 
3351
4142
  eval ac_val=$`echo $ac_var`
3352
4143
  case $ac_val in
3353
4144
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
3354
 
    *)  { { $as_echo "$as_me:$LINENO: error: expected an absolute path for --$ac_var: $ac_val" >&5
3355
 
$as_echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
3356
 
   { (exit 1); exit 1; }; };;
 
4145
    *)  as_fn_error "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
3357
4146
  esac
3358
4147
done
3359
4148
 
3460
4249
if test -n "$ac_tool_prefix"; then
3461
4250
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3462
4251
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3463
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464
4253
$as_echo_n "checking for $ac_word... " >&6; }
3465
 
if test "${ac_cv_prog_CC+set}" = set; then
 
4254
if test "${ac_cv_prog_CC+set}" = set; then :
3466
4255
  $as_echo_n "(cached) " >&6
3467
4256
else
3468
4257
  if test -n "$CC"; then
3473
4262
do
3474
4263
  IFS=$as_save_IFS
3475
4264
  test -z "$as_dir" && as_dir=.
3476
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4265
    for ac_exec_ext in '' $ac_executable_extensions; do
3477
4266
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478
4267
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3479
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4268
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480
4269
    break 2
3481
4270
  fi
3482
4271
done
3483
 
done
 
4272
  done
3484
4273
IFS=$as_save_IFS
3485
4274
 
3486
4275
fi
3487
4276
fi
3488
4277
CC=$ac_cv_prog_CC
3489
4278
if test -n "$CC"; then
3490
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
4279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491
4280
$as_echo "$CC" >&6; }
3492
4281
else
3493
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4282
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494
4283
$as_echo "no" >&6; }
3495
4284
fi
3496
4285
 
3500
4289
  ac_ct_CC=$CC
3501
4290
  # Extract the first word of "gcc", so it can be a program name with args.
3502
4291
set dummy gcc; ac_word=$2
3503
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504
4293
$as_echo_n "checking for $ac_word... " >&6; }
3505
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
4294
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3506
4295
  $as_echo_n "(cached) " >&6
3507
4296
else
3508
4297
  if test -n "$ac_ct_CC"; then
3513
4302
do
3514
4303
  IFS=$as_save_IFS
3515
4304
  test -z "$as_dir" && as_dir=.
3516
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4305
    for ac_exec_ext in '' $ac_executable_extensions; do
3517
4306
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518
4307
    ac_cv_prog_ac_ct_CC="gcc"
3519
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4308
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520
4309
    break 2
3521
4310
  fi
3522
4311
done
3523
 
done
 
4312
  done
3524
4313
IFS=$as_save_IFS
3525
4314
 
3526
4315
fi
3527
4316
fi
3528
4317
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3529
4318
if test -n "$ac_ct_CC"; then
3530
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
4319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3531
4320
$as_echo "$ac_ct_CC" >&6; }
3532
4321
else
3533
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534
4323
$as_echo "no" >&6; }
3535
4324
fi
3536
4325
 
3539
4328
  else
3540
4329
    case $cross_compiling:$ac_tool_warned in
3541
4330
yes:)
3542
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4331
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3543
4332
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3544
4333
ac_tool_warned=yes ;;
3545
4334
esac
3553
4342
          if test -n "$ac_tool_prefix"; then
3554
4343
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555
4344
set dummy ${ac_tool_prefix}cc; ac_word=$2
3556
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557
4346
$as_echo_n "checking for $ac_word... " >&6; }
3558
 
if test "${ac_cv_prog_CC+set}" = set; then
 
4347
if test "${ac_cv_prog_CC+set}" = set; then :
3559
4348
  $as_echo_n "(cached) " >&6
3560
4349
else
3561
4350
  if test -n "$CC"; then
3566
4355
do
3567
4356
  IFS=$as_save_IFS
3568
4357
  test -z "$as_dir" && as_dir=.
3569
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4358
    for ac_exec_ext in '' $ac_executable_extensions; do
3570
4359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571
4360
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3572
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4361
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573
4362
    break 2
3574
4363
  fi
3575
4364
done
3576
 
done
 
4365
  done
3577
4366
IFS=$as_save_IFS
3578
4367
 
3579
4368
fi
3580
4369
fi
3581
4370
CC=$ac_cv_prog_CC
3582
4371
if test -n "$CC"; then
3583
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
4372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584
4373
$as_echo "$CC" >&6; }
3585
4374
else
3586
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587
4376
$as_echo "no" >&6; }
3588
4377
fi
3589
4378
 
3593
4382
if test -z "$CC"; then
3594
4383
  # Extract the first word of "cc", so it can be a program name with args.
3595
4384
set dummy cc; ac_word=$2
3596
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597
4386
$as_echo_n "checking for $ac_word... " >&6; }
3598
 
if test "${ac_cv_prog_CC+set}" = set; then
 
4387
if test "${ac_cv_prog_CC+set}" = set; then :
3599
4388
  $as_echo_n "(cached) " >&6
3600
4389
else
3601
4390
  if test -n "$CC"; then
3607
4396
do
3608
4397
  IFS=$as_save_IFS
3609
4398
  test -z "$as_dir" && as_dir=.
3610
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4399
    for ac_exec_ext in '' $ac_executable_extensions; do
3611
4400
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612
4401
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3613
4402
       ac_prog_rejected=yes
3614
4403
       continue
3615
4404
     fi
3616
4405
    ac_cv_prog_CC="cc"
3617
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4406
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618
4407
    break 2
3619
4408
  fi
3620
4409
done
3621
 
done
 
4410
  done
3622
4411
IFS=$as_save_IFS
3623
4412
 
3624
4413
if test $ac_prog_rejected = yes; then
3637
4426
fi
3638
4427
CC=$ac_cv_prog_CC
3639
4428
if test -n "$CC"; then
3640
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
4429
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641
4430
$as_echo "$CC" >&6; }
3642
4431
else
3643
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4432
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644
4433
$as_echo "no" >&6; }
3645
4434
fi
3646
4435
 
3652
4441
  do
3653
4442
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3654
4443
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3655
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656
4445
$as_echo_n "checking for $ac_word... " >&6; }
3657
 
if test "${ac_cv_prog_CC+set}" = set; then
 
4446
if test "${ac_cv_prog_CC+set}" = set; then :
3658
4447
  $as_echo_n "(cached) " >&6
3659
4448
else
3660
4449
  if test -n "$CC"; then
3665
4454
do
3666
4455
  IFS=$as_save_IFS
3667
4456
  test -z "$as_dir" && as_dir=.
3668
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4457
    for ac_exec_ext in '' $ac_executable_extensions; do
3669
4458
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670
4459
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3671
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4460
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672
4461
    break 2
3673
4462
  fi
3674
4463
done
3675
 
done
 
4464
  done
3676
4465
IFS=$as_save_IFS
3677
4466
 
3678
4467
fi
3679
4468
fi
3680
4469
CC=$ac_cv_prog_CC
3681
4470
if test -n "$CC"; then
3682
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
4471
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683
4472
$as_echo "$CC" >&6; }
3684
4473
else
3685
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4474
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686
4475
$as_echo "no" >&6; }
3687
4476
fi
3688
4477
 
3696
4485
do
3697
4486
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3698
4487
set dummy $ac_prog; ac_word=$2
3699
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4488
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700
4489
$as_echo_n "checking for $ac_word... " >&6; }
3701
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
4490
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3702
4491
  $as_echo_n "(cached) " >&6
3703
4492
else
3704
4493
  if test -n "$ac_ct_CC"; then
3709
4498
do
3710
4499
  IFS=$as_save_IFS
3711
4500
  test -z "$as_dir" && as_dir=.
3712
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4501
    for ac_exec_ext in '' $ac_executable_extensions; do
3713
4502
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714
4503
    ac_cv_prog_ac_ct_CC="$ac_prog"
3715
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4504
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716
4505
    break 2
3717
4506
  fi
3718
4507
done
3719
 
done
 
4508
  done
3720
4509
IFS=$as_save_IFS
3721
4510
 
3722
4511
fi
3723
4512
fi
3724
4513
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3725
4514
if test -n "$ac_ct_CC"; then
3726
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
4515
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3727
4516
$as_echo "$ac_ct_CC" >&6; }
3728
4517
else
3729
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4518
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730
4519
$as_echo "no" >&6; }
3731
4520
fi
3732
4521
 
3739
4528
  else
3740
4529
    case $cross_compiling:$ac_tool_warned in
3741
4530
yes:)
3742
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4531
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743
4532
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744
4533
ac_tool_warned=yes ;;
3745
4534
esac
3750
4539
fi
3751
4540
 
3752
4541
 
3753
 
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4542
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754
4543
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755
 
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3756
 
See \`config.log' for more details." >&5
3757
 
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3758
 
See \`config.log' for more details." >&2;}
3759
 
   { (exit 1); exit 1; }; }; }
 
4544
as_fn_error "no acceptable C compiler found in \$PATH
 
4545
See \`config.log' for more details." "$LINENO" 5; }
3760
4546
 
3761
4547
# Provide some information about the compiler.
3762
 
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
4548
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3763
4549
set X $ac_compile
3764
4550
ac_compiler=$2
3765
 
{ (ac_try="$ac_compiler --version >&5"
3766
 
case "(($ac_try" in
3767
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768
 
  *) ac_try_echo=$ac_try;;
3769
 
esac
3770
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771
 
$as_echo "$ac_try_echo") >&5
3772
 
  (eval "$ac_compiler --version >&5") 2>&5
3773
 
  ac_status=$?
3774
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775
 
  (exit $ac_status); }
3776
 
{ (ac_try="$ac_compiler -v >&5"
3777
 
case "(($ac_try" in
3778
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779
 
  *) ac_try_echo=$ac_try;;
3780
 
esac
3781
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3782
 
$as_echo "$ac_try_echo") >&5
3783
 
  (eval "$ac_compiler -v >&5") 2>&5
3784
 
  ac_status=$?
3785
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786
 
  (exit $ac_status); }
3787
 
{ (ac_try="$ac_compiler -V >&5"
3788
 
case "(($ac_try" in
3789
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790
 
  *) ac_try_echo=$ac_try;;
3791
 
esac
3792
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3793
 
$as_echo "$ac_try_echo") >&5
3794
 
  (eval "$ac_compiler -V >&5") 2>&5
3795
 
  ac_status=$?
3796
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797
 
  (exit $ac_status); }
 
4551
for ac_option in --version -v -V -qversion; do
 
4552
  { { ac_try="$ac_compiler $ac_option >&5"
 
4553
case "(($ac_try" in
 
4554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4555
  *) ac_try_echo=$ac_try;;
 
4556
esac
 
4557
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4558
$as_echo "$ac_try_echo"; } >&5
 
4559
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4560
  ac_status=$?
 
4561
  if test -s conftest.err; then
 
4562
    sed '10a\
 
4563
... rest of stderr output deleted ...
 
4564
         10q' conftest.err >conftest.er1
 
4565
    cat conftest.er1 >&5
 
4566
    rm -f conftest.er1 conftest.err
 
4567
  fi
 
4568
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4569
  test $ac_status = 0; }
 
4570
done
3798
4571
 
3799
 
cat >conftest.$ac_ext <<_ACEOF
3800
 
/* confdefs.h.  */
3801
 
_ACEOF
3802
 
cat confdefs.h >>conftest.$ac_ext
3803
 
cat >>conftest.$ac_ext <<_ACEOF
 
4572
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804
4573
/* end confdefs.h.  */
3805
 
 
 
4574
#include <stdio.h>
3806
4575
int
3807
4576
main ()
3808
4577
{
 
4578
FILE *f = fopen ("conftest.out", "w");
 
4579
 return ferror (f) || fclose (f) != 0;
3809
4580
 
3810
4581
  ;
3811
4582
  return 0;
3812
4583
}
3813
4584
_ACEOF
3814
4585
ac_clean_files_save=$ac_clean_files
3815
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
4586
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3816
4587
# Try to create an executable without -o first, disregard a.out.
3817
4588
# It will help us diagnose broken compilers, and finding out an intuition
3818
4589
# of exeext.
3819
 
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
4590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3820
4591
$as_echo_n "checking for C compiler default output file name... " >&6; }
3821
4592
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3822
4593
 
3833
4604
done
3834
4605
rm -f $ac_rmfiles
3835
4606
 
3836
 
if { (ac_try="$ac_link_default"
 
4607
if { { ac_try="$ac_link_default"
3837
4608
case "(($ac_try" in
3838
4609
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839
4610
  *) ac_try_echo=$ac_try;;
3840
4611
esac
3841
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3842
 
$as_echo "$ac_try_echo") >&5
 
4612
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4613
$as_echo "$ac_try_echo"; } >&5
3843
4614
  (eval "$ac_link_default") 2>&5
3844
4615
  ac_status=$?
3845
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846
 
  (exit $ac_status); }; then
 
4616
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4617
  test $ac_status = 0; }; then :
3847
4618
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3848
4619
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3849
4620
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3860
4631
        # certainly right.
3861
4632
        break;;
3862
4633
    *.* )
3863
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
4634
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3864
4635
        then :; else
3865
4636
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3866
4637
        fi
3879
4650
else
3880
4651
  ac_file=''
3881
4652
fi
3882
 
 
3883
 
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
4653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3884
4654
$as_echo "$ac_file" >&6; }
3885
 
if test -z "$ac_file"; then
 
4655
if test -z "$ac_file"; then :
3886
4656
  $as_echo "$as_me: failed program was:" >&5
3887
4657
sed 's/^/| /' conftest.$ac_ext >&5
3888
4658
 
3889
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4659
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890
4660
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891
 
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3892
 
See \`config.log' for more details." >&5
3893
 
$as_echo "$as_me: error: C compiler cannot create executables
3894
 
See \`config.log' for more details." >&2;}
3895
 
   { (exit 77); exit 77; }; }; }
 
4661
{ as_fn_set_status 77
 
4662
as_fn_error "C compiler cannot create executables
 
4663
See \`config.log' for more details." "$LINENO" 5; }; }
3896
4664
fi
3897
 
 
3898
4665
ac_exeext=$ac_cv_exeext
3899
4666
 
3900
4667
# Check that the compiler produces executables we can run.  If not, either
3901
4668
# the compiler is broken, or we cross compile.
3902
 
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
4669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3903
4670
$as_echo_n "checking whether the C compiler works... " >&6; }
3904
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3905
4671
# If not cross compiling, check that we can run a simple program.
3906
4672
if test "$cross_compiling" != yes; then
3907
4673
  if { ac_try='./$ac_file'
3908
 
  { (case "(($ac_try" in
 
4674
  { { case "(($ac_try" in
3909
4675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910
4676
  *) ac_try_echo=$ac_try;;
3911
4677
esac
3912
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3913
 
$as_echo "$ac_try_echo") >&5
 
4678
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4679
$as_echo "$ac_try_echo"; } >&5
3914
4680
  (eval "$ac_try") 2>&5
3915
4681
  ac_status=$?
3916
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917
 
  (exit $ac_status); }; }; then
 
4682
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4683
  test $ac_status = 0; }; }; then
3918
4684
    cross_compiling=no
3919
4685
  else
3920
4686
    if test "$cross_compiling" = maybe; then
3921
4687
        cross_compiling=yes
3922
4688
    else
3923
 
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4689
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924
4690
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925
 
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3926
 
If you meant to cross compile, use \`--host'.
3927
 
See \`config.log' for more details." >&5
3928
 
$as_echo "$as_me: error: cannot run C compiled programs.
3929
 
If you meant to cross compile, use \`--host'.
3930
 
See \`config.log' for more details." >&2;}
3931
 
   { (exit 1); exit 1; }; }; }
 
4691
as_fn_error "cannot run C compiled programs.
 
4692
If you meant to cross compile, use \`--host'.
 
4693
See \`config.log' for more details." "$LINENO" 5; }
3932
4694
    fi
3933
4695
  fi
3934
4696
fi
3935
 
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
4697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3936
4698
$as_echo "yes" >&6; }
3937
4699
 
3938
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
4700
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3939
4701
ac_clean_files=$ac_clean_files_save
3940
4702
# Check that the compiler produces executables we can run.  If not, either
3941
4703
# the compiler is broken, or we cross compile.
3942
 
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
4704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3943
4705
$as_echo_n "checking whether we are cross compiling... " >&6; }
3944
 
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
4706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3945
4707
$as_echo "$cross_compiling" >&6; }
3946
4708
 
3947
 
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
4709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3948
4710
$as_echo_n "checking for suffix of executables... " >&6; }
3949
 
if { (ac_try="$ac_link"
 
4711
if { { ac_try="$ac_link"
3950
4712
case "(($ac_try" in
3951
4713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952
4714
  *) ac_try_echo=$ac_try;;
3953
4715
esac
3954
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3955
 
$as_echo "$ac_try_echo") >&5
 
4716
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4717
$as_echo "$ac_try_echo"; } >&5
3956
4718
  (eval "$ac_link") 2>&5
3957
4719
  ac_status=$?
3958
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959
 
  (exit $ac_status); }; then
 
4720
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4721
  test $ac_status = 0; }; then :
3960
4722
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3961
4723
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3962
4724
# work properly (i.e., refer to `conftest.exe'), while it won't with
3971
4733
  esac
3972
4734
done
3973
4735
else
3974
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4736
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975
4737
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3977
 
See \`config.log' for more details." >&5
3978
 
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3979
 
See \`config.log' for more details." >&2;}
3980
 
   { (exit 1); exit 1; }; }; }
 
4738
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
4739
See \`config.log' for more details." "$LINENO" 5; }
3981
4740
fi
3982
 
 
3983
4741
rm -f conftest$ac_cv_exeext
3984
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
4742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985
4743
$as_echo "$ac_cv_exeext" >&6; }
3986
4744
 
3987
4745
rm -f conftest.$ac_ext
3988
4746
EXEEXT=$ac_cv_exeext
3989
4747
ac_exeext=$EXEEXT
3990
 
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
4748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991
4749
$as_echo_n "checking for suffix of object files... " >&6; }
3992
 
if test "${ac_cv_objext+set}" = set; then
 
4750
if test "${ac_cv_objext+set}" = set; then :
3993
4751
  $as_echo_n "(cached) " >&6
3994
4752
else
3995
 
  cat >conftest.$ac_ext <<_ACEOF
3996
 
/* confdefs.h.  */
3997
 
_ACEOF
3998
 
cat confdefs.h >>conftest.$ac_ext
3999
 
cat >>conftest.$ac_ext <<_ACEOF
 
4753
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000
4754
/* end confdefs.h.  */
4001
4755
 
4002
4756
int
4008
4762
}
4009
4763
_ACEOF
4010
4764
rm -f conftest.o conftest.obj
4011
 
if { (ac_try="$ac_compile"
 
4765
if { { ac_try="$ac_compile"
4012
4766
case "(($ac_try" in
4013
4767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014
4768
  *) ac_try_echo=$ac_try;;
4015
4769
esac
4016
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017
 
$as_echo "$ac_try_echo") >&5
 
4770
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4771
$as_echo "$ac_try_echo"; } >&5
4018
4772
  (eval "$ac_compile") 2>&5
4019
4773
  ac_status=$?
4020
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021
 
  (exit $ac_status); }; then
 
4774
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4775
  test $ac_status = 0; }; then :
4022
4776
  for ac_file in conftest.o conftest.obj conftest.*; do
4023
4777
  test -f "$ac_file" || continue;
4024
4778
  case $ac_file in
4031
4785
  $as_echo "$as_me: failed program was:" >&5
4032
4786
sed 's/^/| /' conftest.$ac_ext >&5
4033
4787
 
4034
 
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4788
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035
4789
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4037
 
See \`config.log' for more details." >&5
4038
 
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4039
 
See \`config.log' for more details." >&2;}
4040
 
   { (exit 1); exit 1; }; }; }
 
4790
as_fn_error "cannot compute suffix of object files: cannot compile
 
4791
See \`config.log' for more details." "$LINENO" 5; }
4041
4792
fi
4042
 
 
4043
4793
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4044
4794
fi
4045
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
4795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4046
4796
$as_echo "$ac_cv_objext" >&6; }
4047
4797
OBJEXT=$ac_cv_objext
4048
4798
ac_objext=$OBJEXT
4049
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
4799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4050
4800
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4051
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
4801
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4052
4802
  $as_echo_n "(cached) " >&6
4053
4803
else
4054
 
  cat >conftest.$ac_ext <<_ACEOF
4055
 
/* confdefs.h.  */
4056
 
_ACEOF
4057
 
cat confdefs.h >>conftest.$ac_ext
4058
 
cat >>conftest.$ac_ext <<_ACEOF
 
4804
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059
4805
/* end confdefs.h.  */
4060
4806
 
4061
4807
int
4069
4815
  return 0;
4070
4816
}
4071
4817
_ACEOF
4072
 
rm -f conftest.$ac_objext
4073
 
if { (ac_try="$ac_compile"
4074
 
case "(($ac_try" in
4075
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076
 
  *) ac_try_echo=$ac_try;;
4077
 
esac
4078
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079
 
$as_echo "$ac_try_echo") >&5
4080
 
  (eval "$ac_compile") 2>conftest.er1
4081
 
  ac_status=$?
4082
 
  grep -v '^ *+' conftest.er1 >conftest.err
4083
 
  rm -f conftest.er1
4084
 
  cat conftest.err >&5
4085
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086
 
  (exit $ac_status); } && {
4087
 
         test -z "$ac_c_werror_flag" ||
4088
 
         test ! -s conftest.err
4089
 
       } && test -s conftest.$ac_objext; then
 
4818
if ac_fn_c_try_compile "$LINENO"; then :
4090
4819
  ac_compiler_gnu=yes
4091
4820
else
4092
 
  $as_echo "$as_me: failed program was:" >&5
4093
 
sed 's/^/| /' conftest.$ac_ext >&5
4094
 
 
4095
 
        ac_compiler_gnu=no
 
4821
  ac_compiler_gnu=no
4096
4822
fi
4097
 
 
4098
4823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099
4824
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4100
4825
 
4101
4826
fi
4102
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
4827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4103
4828
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4104
4829
if test $ac_compiler_gnu = yes; then
4105
4830
  GCC=yes
4108
4833
fi
4109
4834
ac_test_CFLAGS=${CFLAGS+set}
4110
4835
ac_save_CFLAGS=$CFLAGS
4111
 
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
4836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4112
4837
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4113
 
if test "${ac_cv_prog_cc_g+set}" = set; then
 
4838
if test "${ac_cv_prog_cc_g+set}" = set; then :
4114
4839
  $as_echo_n "(cached) " >&6
4115
4840
else
4116
4841
  ac_save_c_werror_flag=$ac_c_werror_flag
4117
4842
   ac_c_werror_flag=yes
4118
4843
   ac_cv_prog_cc_g=no
4119
4844
   CFLAGS="-g"
4120
 
   cat >conftest.$ac_ext <<_ACEOF
4121
 
/* confdefs.h.  */
4122
 
_ACEOF
4123
 
cat confdefs.h >>conftest.$ac_ext
4124
 
cat >>conftest.$ac_ext <<_ACEOF
 
4845
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125
4846
/* end confdefs.h.  */
4126
4847
 
4127
4848
int
4132
4853
  return 0;
4133
4854
}
4134
4855
_ACEOF
4135
 
rm -f conftest.$ac_objext
4136
 
if { (ac_try="$ac_compile"
4137
 
case "(($ac_try" in
4138
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139
 
  *) ac_try_echo=$ac_try;;
4140
 
esac
4141
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142
 
$as_echo "$ac_try_echo") >&5
4143
 
  (eval "$ac_compile") 2>conftest.er1
4144
 
  ac_status=$?
4145
 
  grep -v '^ *+' conftest.er1 >conftest.err
4146
 
  rm -f conftest.er1
4147
 
  cat conftest.err >&5
4148
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149
 
  (exit $ac_status); } && {
4150
 
         test -z "$ac_c_werror_flag" ||
4151
 
         test ! -s conftest.err
4152
 
       } && test -s conftest.$ac_objext; then
 
4856
if ac_fn_c_try_compile "$LINENO"; then :
4153
4857
  ac_cv_prog_cc_g=yes
4154
4858
else
4155
 
  $as_echo "$as_me: failed program was:" >&5
4156
 
sed 's/^/| /' conftest.$ac_ext >&5
4157
 
 
4158
 
        CFLAGS=""
4159
 
      cat >conftest.$ac_ext <<_ACEOF
4160
 
/* confdefs.h.  */
4161
 
_ACEOF
4162
 
cat confdefs.h >>conftest.$ac_ext
4163
 
cat >>conftest.$ac_ext <<_ACEOF
 
4859
  CFLAGS=""
 
4860
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164
4861
/* end confdefs.h.  */
4165
4862
 
4166
4863
int
4171
4868
  return 0;
4172
4869
}
4173
4870
_ACEOF
4174
 
rm -f conftest.$ac_objext
4175
 
if { (ac_try="$ac_compile"
4176
 
case "(($ac_try" in
4177
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178
 
  *) ac_try_echo=$ac_try;;
4179
 
esac
4180
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4181
 
$as_echo "$ac_try_echo") >&5
4182
 
  (eval "$ac_compile") 2>conftest.er1
4183
 
  ac_status=$?
4184
 
  grep -v '^ *+' conftest.er1 >conftest.err
4185
 
  rm -f conftest.er1
4186
 
  cat conftest.err >&5
4187
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188
 
  (exit $ac_status); } && {
4189
 
         test -z "$ac_c_werror_flag" ||
4190
 
         test ! -s conftest.err
4191
 
       } && test -s conftest.$ac_objext; then
4192
 
  :
 
4871
if ac_fn_c_try_compile "$LINENO"; then :
 
4872
 
4193
4873
else
4194
 
  $as_echo "$as_me: failed program was:" >&5
4195
 
sed 's/^/| /' conftest.$ac_ext >&5
4196
 
 
4197
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
4874
  ac_c_werror_flag=$ac_save_c_werror_flag
4198
4875
         CFLAGS="-g"
4199
 
         cat >conftest.$ac_ext <<_ACEOF
4200
 
/* confdefs.h.  */
4201
 
_ACEOF
4202
 
cat confdefs.h >>conftest.$ac_ext
4203
 
cat >>conftest.$ac_ext <<_ACEOF
 
4876
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204
4877
/* end confdefs.h.  */
4205
4878
 
4206
4879
int
4211
4884
  return 0;
4212
4885
}
4213
4886
_ACEOF
4214
 
rm -f conftest.$ac_objext
4215
 
if { (ac_try="$ac_compile"
4216
 
case "(($ac_try" in
4217
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218
 
  *) ac_try_echo=$ac_try;;
4219
 
esac
4220
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4221
 
$as_echo "$ac_try_echo") >&5
4222
 
  (eval "$ac_compile") 2>conftest.er1
4223
 
  ac_status=$?
4224
 
  grep -v '^ *+' conftest.er1 >conftest.err
4225
 
  rm -f conftest.er1
4226
 
  cat conftest.err >&5
4227
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228
 
  (exit $ac_status); } && {
4229
 
         test -z "$ac_c_werror_flag" ||
4230
 
         test ! -s conftest.err
4231
 
       } && test -s conftest.$ac_objext; then
 
4887
if ac_fn_c_try_compile "$LINENO"; then :
4232
4888
  ac_cv_prog_cc_g=yes
4233
 
else
4234
 
  $as_echo "$as_me: failed program was:" >&5
4235
 
sed 's/^/| /' conftest.$ac_ext >&5
4236
 
 
4237
 
 
4238
 
fi
4239
 
 
4240
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241
 
fi
4242
 
 
4243
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244
 
fi
4245
 
 
 
4889
fi
 
4890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4891
fi
 
4892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4893
fi
4246
4894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247
4895
   ac_c_werror_flag=$ac_save_c_werror_flag
4248
4896
fi
4249
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
4897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4250
4898
$as_echo "$ac_cv_prog_cc_g" >&6; }
4251
4899
if test "$ac_test_CFLAGS" = set; then
4252
4900
  CFLAGS=$ac_save_CFLAGS
4263
4911
    CFLAGS=
4264
4912
  fi
4265
4913
fi
4266
 
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
4914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4267
4915
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4268
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
4916
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4269
4917
  $as_echo_n "(cached) " >&6
4270
4918
else
4271
4919
  ac_cv_prog_cc_c89=no
4272
4920
ac_save_CC=$CC
4273
 
cat >conftest.$ac_ext <<_ACEOF
4274
 
/* confdefs.h.  */
4275
 
_ACEOF
4276
 
cat confdefs.h >>conftest.$ac_ext
4277
 
cat >>conftest.$ac_ext <<_ACEOF
 
4921
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278
4922
/* end confdefs.h.  */
4279
4923
#include <stdarg.h>
4280
4924
#include <stdio.h>
4331
4975
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4332
4976
do
4333
4977
  CC="$ac_save_CC $ac_arg"
4334
 
  rm -f conftest.$ac_objext
4335
 
if { (ac_try="$ac_compile"
4336
 
case "(($ac_try" in
4337
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338
 
  *) ac_try_echo=$ac_try;;
4339
 
esac
4340
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4341
 
$as_echo "$ac_try_echo") >&5
4342
 
  (eval "$ac_compile") 2>conftest.er1
4343
 
  ac_status=$?
4344
 
  grep -v '^ *+' conftest.er1 >conftest.err
4345
 
  rm -f conftest.er1
4346
 
  cat conftest.err >&5
4347
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348
 
  (exit $ac_status); } && {
4349
 
         test -z "$ac_c_werror_flag" ||
4350
 
         test ! -s conftest.err
4351
 
       } && test -s conftest.$ac_objext; then
 
4978
  if ac_fn_c_try_compile "$LINENO"; then :
4352
4979
  ac_cv_prog_cc_c89=$ac_arg
4353
 
else
4354
 
  $as_echo "$as_me: failed program was:" >&5
4355
 
sed 's/^/| /' conftest.$ac_ext >&5
4356
 
 
4357
 
 
4358
4980
fi
4359
 
 
4360
4981
rm -f core conftest.err conftest.$ac_objext
4361
4982
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4362
4983
done
4367
4988
# AC_CACHE_VAL
4368
4989
case "x$ac_cv_prog_cc_c89" in
4369
4990
  x)
4370
 
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
4991
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4371
4992
$as_echo "none needed" >&6; } ;;
4372
4993
  xno)
4373
 
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
4994
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4374
4995
$as_echo "unsupported" >&6; } ;;
4375
4996
  *)
4376
4997
    CC="$CC $ac_cv_prog_cc_c89"
4377
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4998
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4378
4999
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4379
5000
esac
 
5001
if test "x$ac_cv_prog_cc_c89" != xno; then :
4380
5002
 
 
5003
fi
4381
5004
 
4382
5005
ac_ext=c
4383
5006
ac_cpp='$CPP $CPPFLAGS'
7484
8107
  fi
7485
8108
 
7486
8109
 
7487
 
cat >>confdefs.h <<\_ACEOF
7488
 
#define HAVE_ZOS_PTHREADS 1
7489
 
_ACEOF
 
8110
$as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
7490
8111
 
7491
8112
 
7492
8113
  if test "x$CPPFLAGS" = "x"; then
7671
8292
 
7672
8293
apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
7673
8294
 
7674
 
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
8295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7675
8296
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7676
8297
set x ${MAKE-make}
7677
8298
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7678
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
8299
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7679
8300
  $as_echo_n "(cached) " >&6
7680
8301
else
7681
8302
  cat >conftest.make <<\_ACEOF
7693
8314
rm -f conftest.make
7694
8315
fi
7695
8316
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7696
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
8317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7697
8318
$as_echo "yes" >&6; }
7698
8319
  SET_MAKE=
7699
8320
else
7700
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8321
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701
8322
$as_echo "no" >&6; }
7702
8323
  SET_MAKE="MAKE=${MAKE-make}"
7703
8324
fi
7707
8328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708
8329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709
8330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
8331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7711
8332
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7712
8333
# On Suns, sometimes $CPP names a directory.
7713
8334
if test -n "$CPP" && test -d "$CPP"; then
7714
8335
  CPP=
7715
8336
fi
7716
8337
if test -z "$CPP"; then
7717
 
  if test "${ac_cv_prog_CPP+set}" = set; then
 
8338
  if test "${ac_cv_prog_CPP+set}" = set; then :
7718
8339
  $as_echo_n "(cached) " >&6
7719
8340
else
7720
8341
      # Double quotes because CPP needs to be expanded
7729
8350
  # <limits.h> exists even on freestanding compilers.
7730
8351
  # On the NeXT, cc -E runs the code through the compiler's parser,
7731
8352
  # not just through cpp. "Syntax error" is here to catch this case.
7732
 
  cat >conftest.$ac_ext <<_ACEOF
7733
 
/* confdefs.h.  */
7734
 
_ACEOF
7735
 
cat confdefs.h >>conftest.$ac_ext
7736
 
cat >>conftest.$ac_ext <<_ACEOF
 
8353
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737
8354
/* end confdefs.h.  */
7738
8355
#ifdef __STDC__
7739
8356
# include <limits.h>
7742
8359
#endif
7743
8360
                     Syntax error
7744
8361
_ACEOF
7745
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7746
 
case "(($ac_try" in
7747
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748
 
  *) ac_try_echo=$ac_try;;
7749
 
esac
7750
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7751
 
$as_echo "$ac_try_echo") >&5
7752
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7753
 
  ac_status=$?
7754
 
  grep -v '^ *+' conftest.er1 >conftest.err
7755
 
  rm -f conftest.er1
7756
 
  cat conftest.err >&5
7757
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758
 
  (exit $ac_status); } >/dev/null && {
7759
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7760
 
         test ! -s conftest.err
7761
 
       }; then
7762
 
  :
 
8362
if ac_fn_c_try_cpp "$LINENO"; then :
 
8363
 
7763
8364
else
7764
 
  $as_echo "$as_me: failed program was:" >&5
7765
 
sed 's/^/| /' conftest.$ac_ext >&5
7766
 
 
7767
8365
  # Broken: fails on valid input.
7768
8366
continue
7769
8367
fi
7770
 
 
7771
8368
rm -f conftest.err conftest.$ac_ext
7772
8369
 
7773
8370
  # OK, works on sane cases.  Now check whether nonexistent headers
7774
8371
  # can be detected and how.
7775
 
  cat >conftest.$ac_ext <<_ACEOF
7776
 
/* confdefs.h.  */
7777
 
_ACEOF
7778
 
cat confdefs.h >>conftest.$ac_ext
7779
 
cat >>conftest.$ac_ext <<_ACEOF
 
8372
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780
8373
/* end confdefs.h.  */
7781
8374
#include <ac_nonexistent.h>
7782
8375
_ACEOF
7783
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7784
 
case "(($ac_try" in
7785
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786
 
  *) ac_try_echo=$ac_try;;
7787
 
esac
7788
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7789
 
$as_echo "$ac_try_echo") >&5
7790
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7791
 
  ac_status=$?
7792
 
  grep -v '^ *+' conftest.er1 >conftest.err
7793
 
  rm -f conftest.er1
7794
 
  cat conftest.err >&5
7795
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796
 
  (exit $ac_status); } >/dev/null && {
7797
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7798
 
         test ! -s conftest.err
7799
 
       }; then
 
8376
if ac_fn_c_try_cpp "$LINENO"; then :
7800
8377
  # Broken: success on invalid input.
7801
8378
continue
7802
8379
else
7803
 
  $as_echo "$as_me: failed program was:" >&5
7804
 
sed 's/^/| /' conftest.$ac_ext >&5
7805
 
 
7806
8380
  # Passes both tests.
7807
8381
ac_preproc_ok=:
7808
8382
break
7809
8383
fi
7810
 
 
7811
8384
rm -f conftest.err conftest.$ac_ext
7812
8385
 
7813
8386
done
7814
8387
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7815
8388
rm -f conftest.err conftest.$ac_ext
7816
 
if $ac_preproc_ok; then
 
8389
if $ac_preproc_ok; then :
7817
8390
  break
7818
8391
fi
7819
8392
 
7825
8398
else
7826
8399
  ac_cv_prog_CPP=$CPP
7827
8400
fi
7828
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
8401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7829
8402
$as_echo "$CPP" >&6; }
7830
8403
ac_preproc_ok=false
7831
8404
for ac_c_preproc_warn_flag in '' yes
7836
8409
  # <limits.h> exists even on freestanding compilers.
7837
8410
  # On the NeXT, cc -E runs the code through the compiler's parser,
7838
8411
  # not just through cpp. "Syntax error" is here to catch this case.
7839
 
  cat >conftest.$ac_ext <<_ACEOF
7840
 
/* confdefs.h.  */
7841
 
_ACEOF
7842
 
cat confdefs.h >>conftest.$ac_ext
7843
 
cat >>conftest.$ac_ext <<_ACEOF
 
8412
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844
8413
/* end confdefs.h.  */
7845
8414
#ifdef __STDC__
7846
8415
# include <limits.h>
7849
8418
#endif
7850
8419
                     Syntax error
7851
8420
_ACEOF
7852
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7853
 
case "(($ac_try" in
7854
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855
 
  *) ac_try_echo=$ac_try;;
7856
 
esac
7857
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7858
 
$as_echo "$ac_try_echo") >&5
7859
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7860
 
  ac_status=$?
7861
 
  grep -v '^ *+' conftest.er1 >conftest.err
7862
 
  rm -f conftest.er1
7863
 
  cat conftest.err >&5
7864
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865
 
  (exit $ac_status); } >/dev/null && {
7866
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7867
 
         test ! -s conftest.err
7868
 
       }; then
7869
 
  :
 
8421
if ac_fn_c_try_cpp "$LINENO"; then :
 
8422
 
7870
8423
else
7871
 
  $as_echo "$as_me: failed program was:" >&5
7872
 
sed 's/^/| /' conftest.$ac_ext >&5
7873
 
 
7874
8424
  # Broken: fails on valid input.
7875
8425
continue
7876
8426
fi
7877
 
 
7878
8427
rm -f conftest.err conftest.$ac_ext
7879
8428
 
7880
8429
  # OK, works on sane cases.  Now check whether nonexistent headers
7881
8430
  # can be detected and how.
7882
 
  cat >conftest.$ac_ext <<_ACEOF
7883
 
/* confdefs.h.  */
7884
 
_ACEOF
7885
 
cat confdefs.h >>conftest.$ac_ext
7886
 
cat >>conftest.$ac_ext <<_ACEOF
 
8431
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887
8432
/* end confdefs.h.  */
7888
8433
#include <ac_nonexistent.h>
7889
8434
_ACEOF
7890
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
7891
 
case "(($ac_try" in
7892
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893
 
  *) ac_try_echo=$ac_try;;
7894
 
esac
7895
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7896
 
$as_echo "$ac_try_echo") >&5
7897
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7898
 
  ac_status=$?
7899
 
  grep -v '^ *+' conftest.er1 >conftest.err
7900
 
  rm -f conftest.er1
7901
 
  cat conftest.err >&5
7902
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903
 
  (exit $ac_status); } >/dev/null && {
7904
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7905
 
         test ! -s conftest.err
7906
 
       }; then
 
8435
if ac_fn_c_try_cpp "$LINENO"; then :
7907
8436
  # Broken: success on invalid input.
7908
8437
continue
7909
8438
else
7910
 
  $as_echo "$as_me: failed program was:" >&5
7911
 
sed 's/^/| /' conftest.$ac_ext >&5
7912
 
 
7913
8439
  # Passes both tests.
7914
8440
ac_preproc_ok=:
7915
8441
break
7916
8442
fi
7917
 
 
7918
8443
rm -f conftest.err conftest.$ac_ext
7919
8444
 
7920
8445
done
7921
8446
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7922
8447
rm -f conftest.err conftest.$ac_ext
7923
 
if $ac_preproc_ok; then
7924
 
  :
 
8448
if $ac_preproc_ok; then :
 
8449
 
7925
8450
else
7926
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
8451
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7927
8452
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7928
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7929
 
See \`config.log' for more details." >&5
7930
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7931
 
See \`config.log' for more details." >&2;}
7932
 
   { (exit 1); exit 1; }; }; }
 
8453
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
8454
See \`config.log' for more details." "$LINENO" 5; }
7933
8455
fi
7934
8456
 
7935
8457
ac_ext=c
7942
8464
do
7943
8465
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7944
8466
set dummy $ac_prog; ac_word=$2
7945
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946
8468
$as_echo_n "checking for $ac_word... " >&6; }
7947
 
if test "${ac_cv_prog_AWK+set}" = set; then
 
8469
if test "${ac_cv_prog_AWK+set}" = set; then :
7948
8470
  $as_echo_n "(cached) " >&6
7949
8471
else
7950
8472
  if test -n "$AWK"; then
7955
8477
do
7956
8478
  IFS=$as_save_IFS
7957
8479
  test -z "$as_dir" && as_dir=.
7958
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8480
    for ac_exec_ext in '' $ac_executable_extensions; do
7959
8481
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960
8482
    ac_cv_prog_AWK="$ac_prog"
7961
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8483
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962
8484
    break 2
7963
8485
  fi
7964
8486
done
7965
 
done
 
8487
  done
7966
8488
IFS=$as_save_IFS
7967
8489
 
7968
8490
fi
7969
8491
fi
7970
8492
AWK=$ac_cv_prog_AWK
7971
8493
if test -n "$AWK"; then
7972
 
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
8494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7973
8495
$as_echo "$AWK" >&6; }
7974
8496
else
7975
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8497
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976
8498
$as_echo "no" >&6; }
7977
8499
fi
7978
8500
 
7980
8502
  test -n "$AWK" && break
7981
8503
done
7982
8504
 
7983
 
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
8505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7984
8506
$as_echo_n "checking whether ln -s works... " >&6; }
7985
8507
LN_S=$as_ln_s
7986
8508
if test "$LN_S" = "ln -s"; then
7987
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
8509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7988
8510
$as_echo "yes" >&6; }
7989
8511
else
7990
 
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
8512
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7991
8513
$as_echo "no, using $LN_S" >&6; }
7992
8514
fi
7993
8515
 
7994
8516
if test -n "$ac_tool_prefix"; then
7995
8517
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7996
8518
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7997
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998
8520
$as_echo_n "checking for $ac_word... " >&6; }
7999
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
8521
if test "${ac_cv_prog_RANLIB+set}" = set; then :
8000
8522
  $as_echo_n "(cached) " >&6
8001
8523
else
8002
8524
  if test -n "$RANLIB"; then
8007
8529
do
8008
8530
  IFS=$as_save_IFS
8009
8531
  test -z "$as_dir" && as_dir=.
8010
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8532
    for ac_exec_ext in '' $ac_executable_extensions; do
8011
8533
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012
8534
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8013
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8535
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014
8536
    break 2
8015
8537
  fi
8016
8538
done
8017
 
done
 
8539
  done
8018
8540
IFS=$as_save_IFS
8019
8541
 
8020
8542
fi
8021
8543
fi
8022
8544
RANLIB=$ac_cv_prog_RANLIB
8023
8545
if test -n "$RANLIB"; then
8024
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
8546
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8025
8547
$as_echo "$RANLIB" >&6; }
8026
8548
else
8027
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8549
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028
8550
$as_echo "no" >&6; }
8029
8551
fi
8030
8552
 
8034
8556
  ac_ct_RANLIB=$RANLIB
8035
8557
  # Extract the first word of "ranlib", so it can be a program name with args.
8036
8558
set dummy ranlib; ac_word=$2
8037
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038
8560
$as_echo_n "checking for $ac_word... " >&6; }
8039
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
8561
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8040
8562
  $as_echo_n "(cached) " >&6
8041
8563
else
8042
8564
  if test -n "$ac_ct_RANLIB"; then
8047
8569
do
8048
8570
  IFS=$as_save_IFS
8049
8571
  test -z "$as_dir" && as_dir=.
8050
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8572
    for ac_exec_ext in '' $ac_executable_extensions; do
8051
8573
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8052
8574
    ac_cv_prog_ac_ct_RANLIB="ranlib"
8053
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8575
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054
8576
    break 2
8055
8577
  fi
8056
8578
done
8057
 
done
 
8579
  done
8058
8580
IFS=$as_save_IFS
8059
8581
 
8060
8582
fi
8061
8583
fi
8062
8584
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8063
8585
if test -n "$ac_ct_RANLIB"; then
8064
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
8586
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8065
8587
$as_echo "$ac_ct_RANLIB" >&6; }
8066
8588
else
8067
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8589
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068
8590
$as_echo "no" >&6; }
8069
8591
fi
8070
8592
 
8073
8595
  else
8074
8596
    case $cross_compiling:$ac_tool_warned in
8075
8597
yes:)
8076
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
8598
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8077
8599
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8078
8600
ac_tool_warned=yes ;;
8079
8601
esac
8097
8619
# OS/2's system install, which has a completely different semantic
8098
8620
# ./install, which can be erroneously created by make from ./install.sh.
8099
8621
# Reject install programs that cannot install multiple files.
8100
 
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
8622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8101
8623
$as_echo_n "checking for a BSD-compatible install... " >&6; }
8102
8624
if test -z "$INSTALL"; then
8103
 
if test "${ac_cv_path_install+set}" = set; then
 
8625
if test "${ac_cv_path_install+set}" = set; then :
8104
8626
  $as_echo_n "(cached) " >&6
8105
8627
else
8106
8628
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108
8630
do
8109
8631
  IFS=$as_save_IFS
8110
8632
  test -z "$as_dir" && as_dir=.
8111
 
  # Account for people who put trailing slashes in PATH elements.
8112
 
case $as_dir/ in
8113
 
  ./ | .// | /cC/* | \
 
8633
    # Account for people who put trailing slashes in PATH elements.
 
8634
case $as_dir/ in #((
 
8635
  ./ | .// | /[cC]/* | \
8114
8636
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8115
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
8637
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8116
8638
  /usr/ucb/* ) ;;
8117
8639
  *)
8118
8640
    # OSF1 and SCO ODT 3.0 have their own names for install.
8149
8671
    ;;
8150
8672
esac
8151
8673
 
8152
 
done
 
8674
  done
8153
8675
IFS=$as_save_IFS
8154
8676
 
8155
8677
rm -rf conftest.one conftest.two conftest.dir
8165
8687
    INSTALL=$ac_install_sh
8166
8688
  fi
8167
8689
fi
8168
 
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
8690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8169
8691
$as_echo "$INSTALL" >&6; }
8170
8692
 
8171
8693
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8178
8700
 
8179
8701
# Extract the first word of "rm", so it can be a program name with args.
8180
8702
set dummy rm; ac_word=$2
8181
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182
8704
$as_echo_n "checking for $ac_word... " >&6; }
8183
 
if test "${ac_cv_prog_RM+set}" = set; then
 
8705
if test "${ac_cv_prog_RM+set}" = set; then :
8184
8706
  $as_echo_n "(cached) " >&6
8185
8707
else
8186
8708
  if test -n "$RM"; then
8191
8713
do
8192
8714
  IFS=$as_save_IFS
8193
8715
  test -z "$as_dir" && as_dir=.
8194
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8716
    for ac_exec_ext in '' $ac_executable_extensions; do
8195
8717
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196
8718
    ac_cv_prog_RM="rm"
8197
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8719
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198
8720
    break 2
8199
8721
  fi
8200
8722
done
8201
 
done
 
8723
  done
8202
8724
IFS=$as_save_IFS
8203
8725
 
8204
8726
fi
8205
8727
fi
8206
8728
RM=$ac_cv_prog_RM
8207
8729
if test -n "$RM"; then
8208
 
  { $as_echo "$as_me:$LINENO: result: $RM" >&5
 
8730
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8209
8731
$as_echo "$RM" >&6; }
8210
8732
else
8211
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8733
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212
8734
$as_echo "no" >&6; }
8213
8735
fi
8214
8736
 
8215
8737
 
8216
8738
# Extract the first word of "as", so it can be a program name with args.
8217
8739
set dummy as; ac_word=$2
8218
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219
8741
$as_echo_n "checking for $ac_word... " >&6; }
8220
 
if test "${ac_cv_prog_AS+set}" = set; then
 
8742
if test "${ac_cv_prog_AS+set}" = set; then :
8221
8743
  $as_echo_n "(cached) " >&6
8222
8744
else
8223
8745
  if test -n "$AS"; then
8228
8750
do
8229
8751
  IFS=$as_save_IFS
8230
8752
  test -z "$as_dir" && as_dir=.
8231
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8753
    for ac_exec_ext in '' $ac_executable_extensions; do
8232
8754
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233
8755
    ac_cv_prog_AS="as"
8234
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8756
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235
8757
    break 2
8236
8758
  fi
8237
8759
done
8238
 
done
 
8760
  done
8239
8761
IFS=$as_save_IFS
8240
8762
 
8241
8763
fi
8242
8764
fi
8243
8765
AS=$ac_cv_prog_AS
8244
8766
if test -n "$AS"; then
8245
 
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
 
8767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8246
8768
$as_echo "$AS" >&6; }
8247
8769
else
8248
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249
8771
$as_echo "no" >&6; }
8250
8772
fi
8251
8773
 
8252
8774
 
8253
8775
# Extract the first word of "cpp", so it can be a program name with args.
8254
8776
set dummy cpp; ac_word=$2
8255
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256
8778
$as_echo_n "checking for $ac_word... " >&6; }
8257
 
if test "${ac_cv_prog_ASCPP+set}" = set; then
 
8779
if test "${ac_cv_prog_ASCPP+set}" = set; then :
8258
8780
  $as_echo_n "(cached) " >&6
8259
8781
else
8260
8782
  if test -n "$ASCPP"; then
8265
8787
do
8266
8788
  IFS=$as_save_IFS
8267
8789
  test -z "$as_dir" && as_dir=.
8268
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8790
    for ac_exec_ext in '' $ac_executable_extensions; do
8269
8791
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8270
8792
    ac_cv_prog_ASCPP="cpp"
8271
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8793
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272
8794
    break 2
8273
8795
  fi
8274
8796
done
8275
 
done
 
8797
  done
8276
8798
IFS=$as_save_IFS
8277
8799
 
8278
8800
fi
8279
8801
fi
8280
8802
ASCPP=$ac_cv_prog_ASCPP
8281
8803
if test -n "$ASCPP"; then
8282
 
  { $as_echo "$as_me:$LINENO: result: $ASCPP" >&5
 
8804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
8283
8805
$as_echo "$ASCPP" >&6; }
8284
8806
else
8285
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286
8808
$as_echo "no" >&6; }
8287
8809
fi
8288
8810
 
8290
8812
if test -n "$ac_tool_prefix"; then
8291
8813
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8292
8814
set dummy ${ac_tool_prefix}ar; ac_word=$2
8293
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294
8816
$as_echo_n "checking for $ac_word... " >&6; }
8295
 
if test "${ac_cv_prog_AR+set}" = set; then
 
8817
if test "${ac_cv_prog_AR+set}" = set; then :
8296
8818
  $as_echo_n "(cached) " >&6
8297
8819
else
8298
8820
  if test -n "$AR"; then
8303
8825
do
8304
8826
  IFS=$as_save_IFS
8305
8827
  test -z "$as_dir" && as_dir=.
8306
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8828
    for ac_exec_ext in '' $ac_executable_extensions; do
8307
8829
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308
8830
    ac_cv_prog_AR="${ac_tool_prefix}ar"
8309
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8831
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310
8832
    break 2
8311
8833
  fi
8312
8834
done
8313
 
done
 
8835
  done
8314
8836
IFS=$as_save_IFS
8315
8837
 
8316
8838
fi
8317
8839
fi
8318
8840
AR=$ac_cv_prog_AR
8319
8841
if test -n "$AR"; then
8320
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
8842
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8321
8843
$as_echo "$AR" >&6; }
8322
8844
else
8323
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8845
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324
8846
$as_echo "no" >&6; }
8325
8847
fi
8326
8848
 
8330
8852
  ac_ct_AR=$AR
8331
8853
  # Extract the first word of "ar", so it can be a program name with args.
8332
8854
set dummy ar; ac_word=$2
8333
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334
8856
$as_echo_n "checking for $ac_word... " >&6; }
8335
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
8857
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8336
8858
  $as_echo_n "(cached) " >&6
8337
8859
else
8338
8860
  if test -n "$ac_ct_AR"; then
8343
8865
do
8344
8866
  IFS=$as_save_IFS
8345
8867
  test -z "$as_dir" && as_dir=.
8346
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8868
    for ac_exec_ext in '' $ac_executable_extensions; do
8347
8869
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348
8870
    ac_cv_prog_ac_ct_AR="ar"
8349
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8871
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350
8872
    break 2
8351
8873
  fi
8352
8874
done
8353
 
done
 
8875
  done
8354
8876
IFS=$as_save_IFS
8355
8877
 
8356
8878
fi
8357
8879
fi
8358
8880
ac_ct_AR=$ac_cv_prog_ac_ct_AR
8359
8881
if test -n "$ac_ct_AR"; then
8360
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
8882
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8361
8883
$as_echo "$ac_ct_AR" >&6; }
8362
8884
else
8363
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8885
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364
8886
$as_echo "no" >&6; }
8365
8887
fi
8366
8888
 
8369
8891
  else
8370
8892
    case $cross_compiling:$ac_tool_warned in
8371
8893
yes:)
8372
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
8894
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8373
8895
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8374
8896
ac_tool_warned=yes ;;
8375
8897
esac
8383
8905
 
8384
8906
 
8385
8907
 
8386
 
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
8908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8387
8909
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8388
 
if test "${ac_cv_path_GREP+set}" = set; then
 
8910
if test "${ac_cv_path_GREP+set}" = set; then :
8389
8911
  $as_echo_n "(cached) " >&6
8390
8912
else
8391
8913
  if test -z "$GREP"; then
8396
8918
do
8397
8919
  IFS=$as_save_IFS
8398
8920
  test -z "$as_dir" && as_dir=.
8399
 
  for ac_prog in grep ggrep; do
 
8921
    for ac_prog in grep ggrep; do
8400
8922
    for ac_exec_ext in '' $ac_executable_extensions; do
8401
8923
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8402
8924
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
8416
8938
    $as_echo 'GREP' >> "conftest.nl"
8417
8939
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8418
8940
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8419
 
    ac_count=`expr $ac_count + 1`
 
8941
    as_fn_arith $ac_count + 1 && ac_count=$as_val
8420
8942
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
8421
8943
      # Best one so far, save it but keep looking for a better one
8422
8944
      ac_cv_path_GREP="$ac_path_GREP"
8431
8953
      $ac_path_GREP_found && break 3
8432
8954
    done
8433
8955
  done
8434
 
done
 
8956
  done
8435
8957
IFS=$as_save_IFS
8436
8958
  if test -z "$ac_cv_path_GREP"; then
8437
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8438
 
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8439
 
   { (exit 1); exit 1; }; }
 
8959
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8440
8960
  fi
8441
8961
else
8442
8962
  ac_cv_path_GREP=$GREP
8443
8963
fi
8444
8964
 
8445
8965
fi
8446
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
8966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8447
8967
$as_echo "$ac_cv_path_GREP" >&6; }
8448
8968
 GREP="$ac_cv_path_GREP"
8449
8969
 
8450
8970
 
8451
 
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
8971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8452
8972
$as_echo_n "checking for egrep... " >&6; }
8453
 
if test "${ac_cv_path_EGREP+set}" = set; then
 
8973
if test "${ac_cv_path_EGREP+set}" = set; then :
8454
8974
  $as_echo_n "(cached) " >&6
8455
8975
else
8456
8976
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8464
8984
do
8465
8985
  IFS=$as_save_IFS
8466
8986
  test -z "$as_dir" && as_dir=.
8467
 
  for ac_prog in egrep; do
 
8987
    for ac_prog in egrep; do
8468
8988
    for ac_exec_ext in '' $ac_executable_extensions; do
8469
8989
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8470
8990
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8484
9004
    $as_echo 'EGREP' >> "conftest.nl"
8485
9005
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8486
9006
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8487
 
    ac_count=`expr $ac_count + 1`
 
9007
    as_fn_arith $ac_count + 1 && ac_count=$as_val
8488
9008
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8489
9009
      # Best one so far, save it but keep looking for a better one
8490
9010
      ac_cv_path_EGREP="$ac_path_EGREP"
8499
9019
      $ac_path_EGREP_found && break 3
8500
9020
    done
8501
9021
  done
8502
 
done
 
9022
  done
8503
9023
IFS=$as_save_IFS
8504
9024
  if test -z "$ac_cv_path_EGREP"; then
8505
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8506
 
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8507
 
   { (exit 1); exit 1; }; }
 
9025
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8508
9026
  fi
8509
9027
else
8510
9028
  ac_cv_path_EGREP=$EGREP
8512
9030
 
8513
9031
   fi
8514
9032
fi
8515
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
9033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8516
9034
$as_echo "$ac_cv_path_EGREP" >&6; }
8517
9035
 EGREP="$ac_cv_path_EGREP"
8518
9036
 
8519
9037
 
8520
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
9038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8521
9039
$as_echo_n "checking for ANSI C header files... " >&6; }
8522
 
if test "${ac_cv_header_stdc+set}" = set; then
 
9040
if test "${ac_cv_header_stdc+set}" = set; then :
8523
9041
  $as_echo_n "(cached) " >&6
8524
9042
else
8525
 
  cat >conftest.$ac_ext <<_ACEOF
8526
 
/* confdefs.h.  */
8527
 
_ACEOF
8528
 
cat confdefs.h >>conftest.$ac_ext
8529
 
cat >>conftest.$ac_ext <<_ACEOF
 
9043
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530
9044
/* end confdefs.h.  */
8531
9045
#include <stdlib.h>
8532
9046
#include <stdarg.h>
8541
9055
  return 0;
8542
9056
}
8543
9057
_ACEOF
8544
 
rm -f conftest.$ac_objext
8545
 
if { (ac_try="$ac_compile"
8546
 
case "(($ac_try" in
8547
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548
 
  *) ac_try_echo=$ac_try;;
8549
 
esac
8550
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551
 
$as_echo "$ac_try_echo") >&5
8552
 
  (eval "$ac_compile") 2>conftest.er1
8553
 
  ac_status=$?
8554
 
  grep -v '^ *+' conftest.er1 >conftest.err
8555
 
  rm -f conftest.er1
8556
 
  cat conftest.err >&5
8557
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558
 
  (exit $ac_status); } && {
8559
 
         test -z "$ac_c_werror_flag" ||
8560
 
         test ! -s conftest.err
8561
 
       } && test -s conftest.$ac_objext; then
 
9058
if ac_fn_c_try_compile "$LINENO"; then :
8562
9059
  ac_cv_header_stdc=yes
8563
9060
else
8564
 
  $as_echo "$as_me: failed program was:" >&5
8565
 
sed 's/^/| /' conftest.$ac_ext >&5
8566
 
 
8567
 
        ac_cv_header_stdc=no
 
9061
  ac_cv_header_stdc=no
8568
9062
fi
8569
 
 
8570
9063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571
9064
 
8572
9065
if test $ac_cv_header_stdc = yes; then
8573
9066
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8574
 
  cat >conftest.$ac_ext <<_ACEOF
8575
 
/* confdefs.h.  */
8576
 
_ACEOF
8577
 
cat confdefs.h >>conftest.$ac_ext
8578
 
cat >>conftest.$ac_ext <<_ACEOF
 
9067
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579
9068
/* end confdefs.h.  */
8580
9069
#include <string.h>
8581
9070
 
8582
9071
_ACEOF
8583
9072
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8584
 
  $EGREP "memchr" >/dev/null 2>&1; then
8585
 
  :
 
9073
  $EGREP "memchr" >/dev/null 2>&1; then :
 
9074
 
8586
9075
else
8587
9076
  ac_cv_header_stdc=no
8588
9077
fi
8592
9081
 
8593
9082
if test $ac_cv_header_stdc = yes; then
8594
9083
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8595
 
  cat >conftest.$ac_ext <<_ACEOF
8596
 
/* confdefs.h.  */
8597
 
_ACEOF
8598
 
cat confdefs.h >>conftest.$ac_ext
8599
 
cat >>conftest.$ac_ext <<_ACEOF
 
9084
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600
9085
/* end confdefs.h.  */
8601
9086
#include <stdlib.h>
8602
9087
 
8603
9088
_ACEOF
8604
9089
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8605
 
  $EGREP "free" >/dev/null 2>&1; then
8606
 
  :
 
9090
  $EGREP "free" >/dev/null 2>&1; then :
 
9091
 
8607
9092
else
8608
9093
  ac_cv_header_stdc=no
8609
9094
fi
8613
9098
 
8614
9099
if test $ac_cv_header_stdc = yes; then
8615
9100
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8616
 
  if test "$cross_compiling" = yes; then
 
9101
  if test "$cross_compiling" = yes; then :
8617
9102
  :
8618
9103
else
8619
 
  cat >conftest.$ac_ext <<_ACEOF
8620
 
/* confdefs.h.  */
8621
 
_ACEOF
8622
 
cat confdefs.h >>conftest.$ac_ext
8623
 
cat >>conftest.$ac_ext <<_ACEOF
 
9104
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624
9105
/* end confdefs.h.  */
8625
9106
#include <ctype.h>
8626
9107
#include <stdlib.h>
8647
9128
  return 0;
8648
9129
}
8649
9130
_ACEOF
8650
 
rm -f conftest$ac_exeext
8651
 
if { (ac_try="$ac_link"
8652
 
case "(($ac_try" in
8653
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654
 
  *) ac_try_echo=$ac_try;;
8655
 
esac
8656
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8657
 
$as_echo "$ac_try_echo") >&5
8658
 
  (eval "$ac_link") 2>&5
8659
 
  ac_status=$?
8660
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8662
 
  { (case "(($ac_try" in
8663
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664
 
  *) ac_try_echo=$ac_try;;
8665
 
esac
8666
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667
 
$as_echo "$ac_try_echo") >&5
8668
 
  (eval "$ac_try") 2>&5
8669
 
  ac_status=$?
8670
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671
 
  (exit $ac_status); }; }; then
8672
 
  :
 
9131
if ac_fn_c_try_run "$LINENO"; then :
 
9132
 
8673
9133
else
8674
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
8675
 
$as_echo "$as_me: failed program was:" >&5
8676
 
sed 's/^/| /' conftest.$ac_ext >&5
8677
 
 
8678
 
( exit $ac_status )
8679
 
ac_cv_header_stdc=no
8680
 
fi
8681
 
rm -rf conftest.dSYM
8682
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8683
 
fi
8684
 
 
8685
 
 
8686
 
fi
8687
 
fi
8688
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
9134
  ac_cv_header_stdc=no
 
9135
fi
 
9136
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
9137
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
9138
fi
 
9139
 
 
9140
fi
 
9141
fi
 
9142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8689
9143
$as_echo "$ac_cv_header_stdc" >&6; }
8690
9144
if test $ac_cv_header_stdc = yes; then
8691
9145
 
8692
 
cat >>confdefs.h <<\_ACEOF
8693
 
#define STDC_HEADERS 1
8694
 
_ACEOF
 
9146
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8695
9147
 
8696
9148
fi
8697
9149
 
8698
9150
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8699
 
 
8700
 
 
8701
 
 
8702
 
 
8703
 
 
8704
 
 
8705
 
 
8706
 
 
8707
 
 
8708
9151
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8709
9152
                  inttypes.h stdint.h unistd.h
8710
 
do
8711
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8712
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8713
 
$as_echo_n "checking for $ac_header... " >&6; }
8714
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8715
 
  $as_echo_n "(cached) " >&6
8716
 
else
8717
 
  cat >conftest.$ac_ext <<_ACEOF
8718
 
/* confdefs.h.  */
8719
 
_ACEOF
8720
 
cat confdefs.h >>conftest.$ac_ext
8721
 
cat >>conftest.$ac_ext <<_ACEOF
8722
 
/* end confdefs.h.  */
8723
 
$ac_includes_default
8724
 
 
8725
 
#include <$ac_header>
8726
 
_ACEOF
8727
 
rm -f conftest.$ac_objext
8728
 
if { (ac_try="$ac_compile"
8729
 
case "(($ac_try" in
8730
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731
 
  *) ac_try_echo=$ac_try;;
8732
 
esac
8733
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734
 
$as_echo "$ac_try_echo") >&5
8735
 
  (eval "$ac_compile") 2>conftest.er1
8736
 
  ac_status=$?
8737
 
  grep -v '^ *+' conftest.er1 >conftest.err
8738
 
  rm -f conftest.er1
8739
 
  cat conftest.err >&5
8740
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741
 
  (exit $ac_status); } && {
8742
 
         test -z "$ac_c_werror_flag" ||
8743
 
         test ! -s conftest.err
8744
 
       } && test -s conftest.$ac_objext; then
8745
 
  eval "$as_ac_Header=yes"
8746
 
else
8747
 
  $as_echo "$as_me: failed program was:" >&5
8748
 
sed 's/^/| /' conftest.$ac_ext >&5
8749
 
 
8750
 
        eval "$as_ac_Header=no"
8751
 
fi
8752
 
 
8753
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754
 
fi
8755
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
8756
 
                 $as_echo "$as_val"'`
8757
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8758
 
$as_echo "$ac_res" >&6; }
8759
 
as_val=`eval 'as_val=${'$as_ac_Header'}
8760
 
                 $as_echo "$as_val"'`
8761
 
   if test "x$as_val" = x""yes; then
 
9153
do :
 
9154
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9155
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
9156
"
 
9157
eval as_val=\$$as_ac_Header
 
9158
   if test "x$as_val" = x""yes; then :
8762
9159
  cat >>confdefs.h <<_ACEOF
8763
9160
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8764
9161
_ACEOF
8769
9166
 
8770
9167
 
8771
9168
 
8772
 
  if test "${ac_cv_header_minix_config_h+set}" = set; then
8773
 
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
8774
 
$as_echo_n "checking for minix/config.h... " >&6; }
8775
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
8776
 
  $as_echo_n "(cached) " >&6
8777
 
fi
8778
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
8779
 
$as_echo "$ac_cv_header_minix_config_h" >&6; }
8780
 
else
8781
 
  # Is the header compilable?
8782
 
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
8783
 
$as_echo_n "checking minix/config.h usability... " >&6; }
8784
 
cat >conftest.$ac_ext <<_ACEOF
8785
 
/* confdefs.h.  */
8786
 
_ACEOF
8787
 
cat confdefs.h >>conftest.$ac_ext
8788
 
cat >>conftest.$ac_ext <<_ACEOF
8789
 
/* end confdefs.h.  */
8790
 
$ac_includes_default
8791
 
#include <minix/config.h>
8792
 
_ACEOF
8793
 
rm -f conftest.$ac_objext
8794
 
if { (ac_try="$ac_compile"
8795
 
case "(($ac_try" in
8796
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797
 
  *) ac_try_echo=$ac_try;;
8798
 
esac
8799
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800
 
$as_echo "$ac_try_echo") >&5
8801
 
  (eval "$ac_compile") 2>conftest.er1
8802
 
  ac_status=$?
8803
 
  grep -v '^ *+' conftest.er1 >conftest.err
8804
 
  rm -f conftest.er1
8805
 
  cat conftest.err >&5
8806
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807
 
  (exit $ac_status); } && {
8808
 
         test -z "$ac_c_werror_flag" ||
8809
 
         test ! -s conftest.err
8810
 
       } && test -s conftest.$ac_objext; then
8811
 
  ac_header_compiler=yes
8812
 
else
8813
 
  $as_echo "$as_me: failed program was:" >&5
8814
 
sed 's/^/| /' conftest.$ac_ext >&5
8815
 
 
8816
 
        ac_header_compiler=no
8817
 
fi
8818
 
 
8819
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8821
 
$as_echo "$ac_header_compiler" >&6; }
8822
 
 
8823
 
# Is the header present?
8824
 
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
8825
 
$as_echo_n "checking minix/config.h presence... " >&6; }
8826
 
cat >conftest.$ac_ext <<_ACEOF
8827
 
/* confdefs.h.  */
8828
 
_ACEOF
8829
 
cat confdefs.h >>conftest.$ac_ext
8830
 
cat >>conftest.$ac_ext <<_ACEOF
8831
 
/* end confdefs.h.  */
8832
 
#include <minix/config.h>
8833
 
_ACEOF
8834
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
8835
 
case "(($ac_try" in
8836
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837
 
  *) ac_try_echo=$ac_try;;
8838
 
esac
8839
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8840
 
$as_echo "$ac_try_echo") >&5
8841
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8842
 
  ac_status=$?
8843
 
  grep -v '^ *+' conftest.er1 >conftest.err
8844
 
  rm -f conftest.er1
8845
 
  cat conftest.err >&5
8846
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847
 
  (exit $ac_status); } >/dev/null && {
8848
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8849
 
         test ! -s conftest.err
8850
 
       }; then
8851
 
  ac_header_preproc=yes
8852
 
else
8853
 
  $as_echo "$as_me: failed program was:" >&5
8854
 
sed 's/^/| /' conftest.$ac_ext >&5
8855
 
 
8856
 
  ac_header_preproc=no
8857
 
fi
8858
 
 
8859
 
rm -f conftest.err conftest.$ac_ext
8860
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8861
 
$as_echo "$ac_header_preproc" >&6; }
8862
 
 
8863
 
# So?  What about this header?
8864
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8865
 
  yes:no: )
8866
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
8867
 
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8868
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
8869
 
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
8870
 
    ac_header_preproc=yes
8871
 
    ;;
8872
 
  no:yes:* )
8873
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
8874
 
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
8875
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
8876
 
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
8877
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
8878
 
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
8879
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
8880
 
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8881
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
8882
 
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
8883
 
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
8884
 
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
8885
 
 
8886
 
    ;;
8887
 
esac
8888
 
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
8889
 
$as_echo_n "checking for minix/config.h... " >&6; }
8890
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
8891
 
  $as_echo_n "(cached) " >&6
8892
 
else
8893
 
  ac_cv_header_minix_config_h=$ac_header_preproc
8894
 
fi
8895
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
8896
 
$as_echo "$ac_cv_header_minix_config_h" >&6; }
8897
 
 
8898
 
fi
8899
 
if test "x$ac_cv_header_minix_config_h" = x""yes; then
 
9169
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
9170
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
8900
9171
  MINIX=yes
8901
9172
else
8902
9173
  MINIX=
8905
9176
 
8906
9177
  if test "$MINIX" = yes; then
8907
9178
 
8908
 
cat >>confdefs.h <<\_ACEOF
8909
 
#define _POSIX_SOURCE 1
8910
 
_ACEOF
8911
 
 
8912
 
 
8913
 
cat >>confdefs.h <<\_ACEOF
8914
 
#define _POSIX_1_SOURCE 2
8915
 
_ACEOF
8916
 
 
8917
 
 
8918
 
cat >>confdefs.h <<\_ACEOF
8919
 
#define _MINIX 1
8920
 
_ACEOF
 
9179
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
9180
 
 
9181
 
 
9182
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
9183
 
 
9184
 
 
9185
$as_echo "#define _MINIX 1" >>confdefs.h
8921
9186
 
8922
9187
  fi
8923
9188
 
8924
9189
 
8925
 
 
8926
 
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
9190
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
8927
9191
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
8928
 
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
9192
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
8929
9193
  $as_echo_n "(cached) " >&6
8930
9194
else
8931
 
  cat >conftest.$ac_ext <<_ACEOF
8932
 
/* confdefs.h.  */
8933
 
_ACEOF
8934
 
cat confdefs.h >>conftest.$ac_ext
8935
 
cat >>conftest.$ac_ext <<_ACEOF
 
9195
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936
9196
/* end confdefs.h.  */
8937
9197
 
8938
9198
#         define __EXTENSIONS__ 1
8945
9205
  return 0;
8946
9206
}
8947
9207
_ACEOF
8948
 
rm -f conftest.$ac_objext
8949
 
if { (ac_try="$ac_compile"
8950
 
case "(($ac_try" in
8951
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952
 
  *) ac_try_echo=$ac_try;;
8953
 
esac
8954
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8955
 
$as_echo "$ac_try_echo") >&5
8956
 
  (eval "$ac_compile") 2>conftest.er1
8957
 
  ac_status=$?
8958
 
  grep -v '^ *+' conftest.er1 >conftest.err
8959
 
  rm -f conftest.er1
8960
 
  cat conftest.err >&5
8961
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962
 
  (exit $ac_status); } && {
8963
 
         test -z "$ac_c_werror_flag" ||
8964
 
         test ! -s conftest.err
8965
 
       } && test -s conftest.$ac_objext; then
 
9208
if ac_fn_c_try_compile "$LINENO"; then :
8966
9209
  ac_cv_safe_to_define___extensions__=yes
8967
9210
else
8968
 
  $as_echo "$as_me: failed program was:" >&5
8969
 
sed 's/^/| /' conftest.$ac_ext >&5
8970
 
 
8971
 
        ac_cv_safe_to_define___extensions__=no
 
9211
  ac_cv_safe_to_define___extensions__=no
8972
9212
fi
8973
 
 
8974
9213
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975
9214
fi
8976
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
9215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
8977
9216
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
8978
9217
  test $ac_cv_safe_to_define___extensions__ = yes &&
8979
 
    cat >>confdefs.h <<\_ACEOF
8980
 
#define __EXTENSIONS__ 1
8981
 
_ACEOF
8982
 
 
8983
 
  cat >>confdefs.h <<\_ACEOF
8984
 
#define _ALL_SOURCE 1
8985
 
_ACEOF
8986
 
 
8987
 
  cat >>confdefs.h <<\_ACEOF
8988
 
#define _GNU_SOURCE 1
8989
 
_ACEOF
8990
 
 
8991
 
  cat >>confdefs.h <<\_ACEOF
8992
 
#define _POSIX_PTHREAD_SEMANTICS 1
8993
 
_ACEOF
8994
 
 
8995
 
  cat >>confdefs.h <<\_ACEOF
8996
 
#define _TANDEM_SOURCE 1
8997
 
_ACEOF
8998
 
 
8999
 
 
9000
 
 
9001
 
 
9002
 
{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
9218
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
9219
 
 
9220
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
9221
 
 
9222
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
9223
 
 
9224
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
9225
 
 
9226
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
9227
 
 
9228
 
 
9229
 
 
9230
 
 
9231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
9003
9232
$as_echo_n "checking for library containing strerror... " >&6; }
9004
 
if test "${ac_cv_search_strerror+set}" = set; then
 
9233
if test "${ac_cv_search_strerror+set}" = set; then :
9005
9234
  $as_echo_n "(cached) " >&6
9006
9235
else
9007
9236
  ac_func_search_save_LIBS=$LIBS
9008
 
cat >conftest.$ac_ext <<_ACEOF
9009
 
/* confdefs.h.  */
9010
 
_ACEOF
9011
 
cat confdefs.h >>conftest.$ac_ext
9012
 
cat >>conftest.$ac_ext <<_ACEOF
 
9237
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013
9238
/* end confdefs.h.  */
9014
9239
 
9015
9240
/* Override any GCC internal prototype to avoid an error.
9034
9259
    ac_res=-l$ac_lib
9035
9260
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9036
9261
  fi
9037
 
  rm -f conftest.$ac_objext conftest$ac_exeext
9038
 
if { (ac_try="$ac_link"
9039
 
case "(($ac_try" in
9040
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041
 
  *) ac_try_echo=$ac_try;;
9042
 
esac
9043
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9044
 
$as_echo "$ac_try_echo") >&5
9045
 
  (eval "$ac_link") 2>conftest.er1
9046
 
  ac_status=$?
9047
 
  grep -v '^ *+' conftest.er1 >conftest.err
9048
 
  rm -f conftest.er1
9049
 
  cat conftest.err >&5
9050
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051
 
  (exit $ac_status); } && {
9052
 
         test -z "$ac_c_werror_flag" ||
9053
 
         test ! -s conftest.err
9054
 
       } && test -s conftest$ac_exeext && {
9055
 
         test "$cross_compiling" = yes ||
9056
 
         $as_test_x conftest$ac_exeext
9057
 
       }; then
 
9262
  if ac_fn_c_try_link "$LINENO"; then :
9058
9263
  ac_cv_search_strerror=$ac_res
9059
 
else
9060
 
  $as_echo "$as_me: failed program was:" >&5
9061
 
sed 's/^/| /' conftest.$ac_ext >&5
9062
 
 
9063
 
 
9064
9264
fi
9065
 
 
9066
 
rm -rf conftest.dSYM
9067
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9068
 
      conftest$ac_exeext
9069
 
  if test "${ac_cv_search_strerror+set}" = set; then
 
9265
rm -f core conftest.err conftest.$ac_objext \
 
9266
    conftest$ac_exeext
 
9267
  if test "${ac_cv_search_strerror+set}" = set; then :
9070
9268
  break
9071
9269
fi
9072
9270
done
9073
 
if test "${ac_cv_search_strerror+set}" = set; then
9074
 
  :
 
9271
if test "${ac_cv_search_strerror+set}" = set; then :
 
9272
 
9075
9273
else
9076
9274
  ac_cv_search_strerror=no
9077
9275
fi
9078
9276
rm conftest.$ac_ext
9079
9277
LIBS=$ac_func_search_save_LIBS
9080
9278
fi
9081
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
9279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
9082
9280
$as_echo "$ac_cv_search_strerror" >&6; }
9083
9281
ac_res=$ac_cv_search_strerror
9084
 
if test "$ac_res" != no; then
 
9282
if test "$ac_res" != no; then :
9085
9283
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9086
9284
 
9087
9285
fi
9088
9286
 
9089
9287
 
9090
 
  { $as_echo "$as_me:$LINENO: checking whether system uses EBCDIC" >&5
 
9288
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
9091
9289
$as_echo_n "checking whether system uses EBCDIC... " >&6; }
9092
 
if test "${ac_cv_ebcdic+set}" = set; then
 
9290
if test "${ac_cv_ebcdic+set}" = set; then :
9093
9291
  $as_echo_n "(cached) " >&6
9094
9292
else
9095
9293
 
9096
 
  if test "$cross_compiling" = yes; then
 
9294
  if test "$cross_compiling" = yes; then :
9097
9295
 
9098
9296
  ac_cv_ebcdic="no"
9099
9297
 
9100
9298
else
9101
 
  cat >conftest.$ac_ext <<_ACEOF
9102
 
/* confdefs.h.  */
9103
 
_ACEOF
9104
 
cat confdefs.h >>conftest.$ac_ext
9105
 
cat >>conftest.$ac_ext <<_ACEOF
 
9299
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106
9300
/* end confdefs.h.  */
9107
9301
 
9108
9302
int main(void) {
9110
9304
}
9111
9305
 
9112
9306
_ACEOF
9113
 
rm -f conftest$ac_exeext
9114
 
if { (ac_try="$ac_link"
9115
 
case "(($ac_try" in
9116
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117
 
  *) ac_try_echo=$ac_try;;
9118
 
esac
9119
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9120
 
$as_echo "$ac_try_echo") >&5
9121
 
  (eval "$ac_link") 2>&5
9122
 
  ac_status=$?
9123
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9125
 
  { (case "(($ac_try" in
9126
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127
 
  *) ac_try_echo=$ac_try;;
9128
 
esac
9129
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9130
 
$as_echo "$ac_try_echo") >&5
9131
 
  (eval "$ac_try") 2>&5
9132
 
  ac_status=$?
9133
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134
 
  (exit $ac_status); }; }; then
 
9307
if ac_fn_c_try_run "$LINENO"; then :
9135
9308
 
9136
9309
  ac_cv_ebcdic="yes"
9137
9310
 
9138
9311
else
9139
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
9140
 
$as_echo "$as_me: failed program was:" >&5
9141
 
sed 's/^/| /' conftest.$ac_ext >&5
9142
 
 
9143
 
( exit $ac_status )
9144
9312
 
9145
9313
  ac_cv_ebcdic="no"
9146
9314
 
9147
9315
fi
9148
 
rm -rf conftest.dSYM
9149
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9150
 
fi
9151
 
 
9152
 
 
9153
 
fi
9154
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_ebcdic" >&5
 
9316
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
9317
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
9318
fi
 
9319
 
 
9320
fi
 
9321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
9155
9322
$as_echo "$ac_cv_ebcdic" >&6; }
9156
9323
  if test "$ac_cv_ebcdic" = "yes"; then
9157
9324
    apr_charset_ebcdic=1
9167
9334
echo "performing libtool configuration..."
9168
9335
 
9169
9336
# Check whether --enable-experimental-libtool was given.
9170
 
if test "${enable_experimental_libtool+set}" = set; then
 
9337
if test "${enable_experimental_libtool+set}" = set; then :
9171
9338
  enableval=$enable_experimental_libtool; experimental_libtool=$enableval
9172
9339
else
9173
9340
  experimental_libtool=no
9197
9364
        fi
9198
9365
    else
9199
9366
    # Check whether --enable-shared was given.
9200
 
if test "${enable_shared+set}" = set; then
 
9367
if test "${enable_shared+set}" = set; then :
9201
9368
  enableval=$enable_shared; p=${PACKAGE-default}
9202
9369
    case $enableval in
9203
9370
    yes) enable_shared=yes ;;
9221
9388
 
9222
9389
 
9223
9390
# Check whether --enable-static was given.
9224
 
if test "${enable_static+set}" = set; then
 
9391
if test "${enable_static+set}" = set; then :
9225
9392
  enableval=$enable_static; p=${PACKAGE-default}
9226
9393
    case $enableval in
9227
9394
    yes) enable_static=yes ;;
9245
9412
 
9246
9413
 
9247
9414
# Check whether --enable-fast-install was given.
9248
 
if test "${enable_fast_install+set}" = set; then
 
9415
if test "${enable_fast_install+set}" = set; then :
9249
9416
  enableval=$enable_fast_install; p=${PACKAGE-default}
9250
9417
    case $enableval in
9251
9418
    yes) enable_fast_install=yes ;;
9268
9435
fi
9269
9436
 
9270
9437
 
9271
 
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
9438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9272
9439
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
9273
 
if test "${lt_cv_path_SED+set}" = set; then
 
9440
if test "${lt_cv_path_SED+set}" = set; then :
9274
9441
  $as_echo_n "(cached) " >&6
9275
9442
else
9276
9443
  # Loop through the user's path and test for sed and gsed.
9324
9491
 
9325
9492
SED=$lt_cv_path_SED
9326
9493
 
9327
 
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
9494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9328
9495
$as_echo "$SED" >&6; }
9329
9496
 
9330
9497
 
9331
9498
# Check whether --with-gnu-ld was given.
9332
 
if test "${with_gnu_ld+set}" = set; then
 
9499
if test "${with_gnu_ld+set}" = set; then :
9333
9500
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9334
9501
else
9335
9502
  with_gnu_ld=no
9338
9505
ac_prog=ld
9339
9506
if test "$GCC" = yes; then
9340
9507
  # Check if gcc -print-prog-name=ld gives a path.
9341
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9508
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9342
9509
$as_echo_n "checking for ld used by $CC... " >&6; }
9343
9510
  case $host in
9344
9511
  *-*-mingw*)
9368
9535
    ;;
9369
9536
  esac
9370
9537
elif test "$with_gnu_ld" = yes; then
9371
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9538
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9372
9539
$as_echo_n "checking for GNU ld... " >&6; }
9373
9540
else
9374
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9541
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9375
9542
$as_echo_n "checking for non-GNU ld... " >&6; }
9376
9543
fi
9377
 
if test "${lt_cv_path_LD+set}" = set; then
 
9544
if test "${lt_cv_path_LD+set}" = set; then :
9378
9545
  $as_echo_n "(cached) " >&6
9379
9546
else
9380
9547
  if test -z "$LD"; then
9405
9572
 
9406
9573
LD="$lt_cv_path_LD"
9407
9574
if test -n "$LD"; then
9408
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
9575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9409
9576
$as_echo "$LD" >&6; }
9410
9577
else
9411
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412
9579
$as_echo "no" >&6; }
9413
9580
fi
9414
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9415
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9416
 
   { (exit 1); exit 1; }; }
9417
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9581
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
9582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9418
9583
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9419
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9584
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
9420
9585
  $as_echo_n "(cached) " >&6
9421
9586
else
9422
9587
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9429
9594
  ;;
9430
9595
esac
9431
9596
fi
9432
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9433
9598
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
9434
9599
with_gnu_ld=$lt_cv_prog_gnu_ld
9435
9600
 
9436
9601
 
9437
 
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
9602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9438
9603
$as_echo_n "checking for $LD option to reload object files... " >&6; }
9439
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
9604
if test "${lt_cv_ld_reload_flag+set}" = set; then :
9440
9605
  $as_echo_n "(cached) " >&6
9441
9606
else
9442
9607
  lt_cv_ld_reload_flag='-r'
9443
9608
fi
9444
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
9609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9445
9610
$as_echo "$lt_cv_ld_reload_flag" >&6; }
9446
9611
reload_flag=$lt_cv_ld_reload_flag
9447
9612
case $reload_flag in
9459
9624
    ;;
9460
9625
esac
9461
9626
 
9462
 
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
9627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
9463
9628
$as_echo_n "checking for BSD-compatible nm... " >&6; }
9464
 
if test "${lt_cv_path_NM+set}" = set; then
 
9629
if test "${lt_cv_path_NM+set}" = set; then :
9465
9630
  $as_echo_n "(cached) " >&6
9466
9631
else
9467
9632
  if test -n "$NM"; then
9508
9673
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9509
9674
fi
9510
9675
fi
9511
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
9676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9512
9677
$as_echo "$lt_cv_path_NM" >&6; }
9513
9678
NM="$lt_cv_path_NM"
9514
9679
 
9515
 
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
9680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9516
9681
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9517
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
9682
if test "${lt_cv_deplibs_check_method+set}" = set; then :
9518
9683
  $as_echo_n "(cached) " >&6
9519
9684
else
9520
9685
  lt_cv_file_magic_cmd='$MAGIC_CMD'
9698
9863
esac
9699
9864
 
9700
9865
fi
9701
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
9866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9702
9867
$as_echo "$lt_cv_deplibs_check_method" >&6; }
9703
9868
file_magic_cmd=$lt_cv_file_magic_cmd
9704
9869
deplibs_check_method=$lt_cv_deplibs_check_method
9717
9882
compiler=$CC
9718
9883
 
9719
9884
# Check whether --enable-libtool-lock was given.
9720
 
if test "${enable_libtool_lock+set}" = set; then
 
9885
if test "${enable_libtool_lock+set}" = set; then :
9721
9886
  enableval=$enable_libtool_lock;
9722
9887
fi
9723
9888
 
9729
9894
ia64-*-hpux*)
9730
9895
  # Find out which ABI we are using.
9731
9896
  echo 'int i;' > conftest.$ac_ext
9732
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9897
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9733
9898
  (eval $ac_compile) 2>&5
9734
9899
  ac_status=$?
9735
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736
 
  (exit $ac_status); }; then
 
9900
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9901
  test $ac_status = 0; }; then
9737
9902
    case `/usr/bin/file conftest.$ac_objext` in
9738
9903
    *ELF-32*)
9739
9904
      HPUX_IA64_MODE="32"
9747
9912
  ;;
9748
9913
*-*-irix6*)
9749
9914
  # Find out which ABI we are using.
9750
 
  echo '#line 9750 "configure"' > conftest.$ac_ext
9751
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9915
  echo '#line 9915 "configure"' > conftest.$ac_ext
 
9916
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9752
9917
  (eval $ac_compile) 2>&5
9753
9918
  ac_status=$?
9754
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755
 
  (exit $ac_status); }; then
 
9919
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9920
  test $ac_status = 0; }; then
9756
9921
   if test "$lt_cv_prog_gnu_ld" = yes; then
9757
9922
    case `/usr/bin/file conftest.$ac_objext` in
9758
9923
    *32-bit*)
9786
9951
s390*-*linux*|sparc*-*linux*)
9787
9952
  # Find out which ABI we are using.
9788
9953
  echo 'int i;' > conftest.$ac_ext
9789
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9954
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9790
9955
  (eval $ac_compile) 2>&5
9791
9956
  ac_status=$?
9792
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793
 
  (exit $ac_status); }; then
 
9957
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9958
  test $ac_status = 0; }; then
9794
9959
    case `/usr/bin/file conftest.o` in
9795
9960
    *32-bit*)
9796
9961
      case $host in
9839
10004
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9840
10005
  SAVE_CFLAGS="$CFLAGS"
9841
10006
  CFLAGS="$CFLAGS -belf"
9842
 
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
10007
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9843
10008
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9844
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
10009
if test "${lt_cv_cc_needs_belf+set}" = set; then :
9845
10010
  $as_echo_n "(cached) " >&6
9846
10011
else
9847
10012
  ac_ext=c
9850
10015
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9851
10016
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9852
10017
 
9853
 
     cat >conftest.$ac_ext <<_ACEOF
9854
 
/* confdefs.h.  */
9855
 
_ACEOF
9856
 
cat confdefs.h >>conftest.$ac_ext
9857
 
cat >>conftest.$ac_ext <<_ACEOF
 
10018
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858
10019
/* end confdefs.h.  */
9859
10020
 
9860
10021
int
9865
10026
  return 0;
9866
10027
}
9867
10028
_ACEOF
9868
 
rm -f conftest.$ac_objext conftest$ac_exeext
9869
 
if { (ac_try="$ac_link"
9870
 
case "(($ac_try" in
9871
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872
 
  *) ac_try_echo=$ac_try;;
9873
 
esac
9874
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9875
 
$as_echo "$ac_try_echo") >&5
9876
 
  (eval "$ac_link") 2>conftest.er1
9877
 
  ac_status=$?
9878
 
  grep -v '^ *+' conftest.er1 >conftest.err
9879
 
  rm -f conftest.er1
9880
 
  cat conftest.err >&5
9881
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882
 
  (exit $ac_status); } && {
9883
 
         test -z "$ac_c_werror_flag" ||
9884
 
         test ! -s conftest.err
9885
 
       } && test -s conftest$ac_exeext && {
9886
 
         test "$cross_compiling" = yes ||
9887
 
         $as_test_x conftest$ac_exeext
9888
 
       }; then
 
10029
if ac_fn_c_try_link "$LINENO"; then :
9889
10030
  lt_cv_cc_needs_belf=yes
9890
10031
else
9891
 
  $as_echo "$as_me: failed program was:" >&5
9892
 
sed 's/^/| /' conftest.$ac_ext >&5
9893
 
 
9894
 
        lt_cv_cc_needs_belf=no
 
10032
  lt_cv_cc_needs_belf=no
9895
10033
fi
9896
 
 
9897
 
rm -rf conftest.dSYM
9898
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9899
 
      conftest$ac_exeext conftest.$ac_ext
 
10034
rm -f core conftest.err conftest.$ac_objext \
 
10035
    conftest$ac_exeext conftest.$ac_ext
9900
10036
     ac_ext=c
9901
10037
ac_cpp='$CPP $CPPFLAGS'
9902
10038
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9904
10040
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9905
10041
 
9906
10042
fi
9907
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
10043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9908
10044
$as_echo "$lt_cv_cc_needs_belf" >&6; }
9909
10045
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9910
10046
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9914
10050
sparc*-*solaris*)
9915
10051
  # Find out which ABI we are using.
9916
10052
  echo 'int i;' > conftest.$ac_ext
9917
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10053
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9918
10054
  (eval $ac_compile) 2>&5
9919
10055
  ac_status=$?
9920
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921
 
  (exit $ac_status); }; then
 
10056
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10057
  test $ac_status = 0; }; then
9922
10058
    case `/usr/bin/file conftest.o` in
9923
10059
    *64-bit*)
9924
10060
      case $lt_cv_prog_gnu_ld in
9941
10077
need_locks="$enable_libtool_lock"
9942
10078
 
9943
10079
 
9944
 
 
9945
10080
for ac_header in dlfcn.h
9946
 
do
9947
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9949
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9950
 
$as_echo_n "checking for $ac_header... " >&6; }
9951
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9952
 
  $as_echo_n "(cached) " >&6
9953
 
fi
9954
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
9955
 
                 $as_echo "$as_val"'`
9956
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9957
 
$as_echo "$ac_res" >&6; }
9958
 
else
9959
 
  # Is the header compilable?
9960
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9961
 
$as_echo_n "checking $ac_header usability... " >&6; }
9962
 
cat >conftest.$ac_ext <<_ACEOF
9963
 
/* confdefs.h.  */
9964
 
_ACEOF
9965
 
cat confdefs.h >>conftest.$ac_ext
9966
 
cat >>conftest.$ac_ext <<_ACEOF
9967
 
/* end confdefs.h.  */
9968
 
$ac_includes_default
9969
 
#include <$ac_header>
9970
 
_ACEOF
9971
 
rm -f conftest.$ac_objext
9972
 
if { (ac_try="$ac_compile"
9973
 
case "(($ac_try" in
9974
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975
 
  *) ac_try_echo=$ac_try;;
9976
 
esac
9977
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9978
 
$as_echo "$ac_try_echo") >&5
9979
 
  (eval "$ac_compile") 2>conftest.er1
9980
 
  ac_status=$?
9981
 
  grep -v '^ *+' conftest.er1 >conftest.err
9982
 
  rm -f conftest.er1
9983
 
  cat conftest.err >&5
9984
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985
 
  (exit $ac_status); } && {
9986
 
         test -z "$ac_c_werror_flag" ||
9987
 
         test ! -s conftest.err
9988
 
       } && test -s conftest.$ac_objext; then
9989
 
  ac_header_compiler=yes
9990
 
else
9991
 
  $as_echo "$as_me: failed program was:" >&5
9992
 
sed 's/^/| /' conftest.$ac_ext >&5
9993
 
 
9994
 
        ac_header_compiler=no
9995
 
fi
9996
 
 
9997
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9999
 
$as_echo "$ac_header_compiler" >&6; }
10000
 
 
10001
 
# Is the header present?
10002
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10003
 
$as_echo_n "checking $ac_header presence... " >&6; }
10004
 
cat >conftest.$ac_ext <<_ACEOF
10005
 
/* confdefs.h.  */
10006
 
_ACEOF
10007
 
cat confdefs.h >>conftest.$ac_ext
10008
 
cat >>conftest.$ac_ext <<_ACEOF
10009
 
/* end confdefs.h.  */
10010
 
#include <$ac_header>
10011
 
_ACEOF
10012
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10013
 
case "(($ac_try" in
10014
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015
 
  *) ac_try_echo=$ac_try;;
10016
 
esac
10017
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10018
 
$as_echo "$ac_try_echo") >&5
10019
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10020
 
  ac_status=$?
10021
 
  grep -v '^ *+' conftest.er1 >conftest.err
10022
 
  rm -f conftest.er1
10023
 
  cat conftest.err >&5
10024
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025
 
  (exit $ac_status); } >/dev/null && {
10026
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10027
 
         test ! -s conftest.err
10028
 
       }; then
10029
 
  ac_header_preproc=yes
10030
 
else
10031
 
  $as_echo "$as_me: failed program was:" >&5
10032
 
sed 's/^/| /' conftest.$ac_ext >&5
10033
 
 
10034
 
  ac_header_preproc=no
10035
 
fi
10036
 
 
10037
 
rm -f conftest.err conftest.$ac_ext
10038
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10039
 
$as_echo "$ac_header_preproc" >&6; }
10040
 
 
10041
 
# So?  What about this header?
10042
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10043
 
  yes:no: )
10044
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10045
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10046
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10047
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10048
 
    ac_header_preproc=yes
10049
 
    ;;
10050
 
  no:yes:* )
10051
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10052
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10053
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10054
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10055
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10056
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10057
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10058
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10059
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10060
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10061
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10062
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10063
 
 
10064
 
    ;;
10065
 
esac
10066
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10067
 
$as_echo_n "checking for $ac_header... " >&6; }
10068
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10069
 
  $as_echo_n "(cached) " >&6
10070
 
else
10071
 
  eval "$as_ac_Header=\$ac_header_preproc"
10072
 
fi
10073
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
10074
 
                 $as_echo "$as_val"'`
10075
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10076
 
$as_echo "$ac_res" >&6; }
10077
 
 
10078
 
fi
10079
 
as_val=`eval 'as_val=${'$as_ac_Header'}
10080
 
                 $as_echo "$as_val"'`
10081
 
   if test "x$as_val" = x""yes; then
 
10081
do :
 
10082
  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
 
10083
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10082
10084
  cat >>confdefs.h <<_ACEOF
10083
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
10085
#define HAVE_DLFCN_H 1
10084
10086
_ACEOF
10085
10087
 
10086
10088
fi
10101
10103
  do
10102
10104
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10103
10105
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10104
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105
10107
$as_echo_n "checking for $ac_word... " >&6; }
10106
 
if test "${ac_cv_prog_CXX+set}" = set; then
 
10108
if test "${ac_cv_prog_CXX+set}" = set; then :
10107
10109
  $as_echo_n "(cached) " >&6
10108
10110
else
10109
10111
  if test -n "$CXX"; then
10114
10116
do
10115
10117
  IFS=$as_save_IFS
10116
10118
  test -z "$as_dir" && as_dir=.
10117
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10119
    for ac_exec_ext in '' $ac_executable_extensions; do
10118
10120
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119
10121
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10120
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10122
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121
10123
    break 2
10122
10124
  fi
10123
10125
done
10124
 
done
 
10126
  done
10125
10127
IFS=$as_save_IFS
10126
10128
 
10127
10129
fi
10128
10130
fi
10129
10131
CXX=$ac_cv_prog_CXX
10130
10132
if test -n "$CXX"; then
10131
 
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
10133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10132
10134
$as_echo "$CXX" >&6; }
10133
10135
else
10134
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135
10137
$as_echo "no" >&6; }
10136
10138
fi
10137
10139
 
10145
10147
do
10146
10148
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10147
10149
set dummy $ac_prog; ac_word=$2
10148
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149
10151
$as_echo_n "checking for $ac_word... " >&6; }
10150
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
10152
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10151
10153
  $as_echo_n "(cached) " >&6
10152
10154
else
10153
10155
  if test -n "$ac_ct_CXX"; then
10158
10160
do
10159
10161
  IFS=$as_save_IFS
10160
10162
  test -z "$as_dir" && as_dir=.
10161
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10163
    for ac_exec_ext in '' $ac_executable_extensions; do
10162
10164
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10163
10165
    ac_cv_prog_ac_ct_CXX="$ac_prog"
10164
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10166
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165
10167
    break 2
10166
10168
  fi
10167
10169
done
10168
 
done
 
10170
  done
10169
10171
IFS=$as_save_IFS
10170
10172
 
10171
10173
fi
10172
10174
fi
10173
10175
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10174
10176
if test -n "$ac_ct_CXX"; then
10175
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
10177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10176
10178
$as_echo "$ac_ct_CXX" >&6; }
10177
10179
else
10178
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179
10181
$as_echo "no" >&6; }
10180
10182
fi
10181
10183
 
10188
10190
  else
10189
10191
    case $cross_compiling:$ac_tool_warned in
10190
10192
yes:)
10191
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
10193
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10192
10194
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10193
10195
ac_tool_warned=yes ;;
10194
10196
esac
10199
10201
  fi
10200
10202
fi
10201
10203
# Provide some information about the compiler.
10202
 
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
10204
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10203
10205
set X $ac_compile
10204
10206
ac_compiler=$2
10205
 
{ (ac_try="$ac_compiler --version >&5"
10206
 
case "(($ac_try" in
10207
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208
 
  *) ac_try_echo=$ac_try;;
10209
 
esac
10210
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10211
 
$as_echo "$ac_try_echo") >&5
10212
 
  (eval "$ac_compiler --version >&5") 2>&5
10213
 
  ac_status=$?
10214
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215
 
  (exit $ac_status); }
10216
 
{ (ac_try="$ac_compiler -v >&5"
10217
 
case "(($ac_try" in
10218
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219
 
  *) ac_try_echo=$ac_try;;
10220
 
esac
10221
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10222
 
$as_echo "$ac_try_echo") >&5
10223
 
  (eval "$ac_compiler -v >&5") 2>&5
10224
 
  ac_status=$?
10225
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226
 
  (exit $ac_status); }
10227
 
{ (ac_try="$ac_compiler -V >&5"
10228
 
case "(($ac_try" in
10229
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230
 
  *) ac_try_echo=$ac_try;;
10231
 
esac
10232
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10233
 
$as_echo "$ac_try_echo") >&5
10234
 
  (eval "$ac_compiler -V >&5") 2>&5
10235
 
  ac_status=$?
10236
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237
 
  (exit $ac_status); }
 
10207
for ac_option in --version -v -V -qversion; do
 
10208
  { { ac_try="$ac_compiler $ac_option >&5"
 
10209
case "(($ac_try" in
 
10210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10211
  *) ac_try_echo=$ac_try;;
 
10212
esac
 
10213
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
10214
$as_echo "$ac_try_echo"; } >&5
 
10215
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
10216
  ac_status=$?
 
10217
  if test -s conftest.err; then
 
10218
    sed '10a\
 
10219
... rest of stderr output deleted ...
 
10220
         10q' conftest.err >conftest.er1
 
10221
    cat conftest.er1 >&5
 
10222
    rm -f conftest.er1 conftest.err
 
10223
  fi
 
10224
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10225
  test $ac_status = 0; }
 
10226
done
10238
10227
 
10239
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
10228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10240
10229
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10241
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
10230
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10242
10231
  $as_echo_n "(cached) " >&6
10243
10232
else
10244
 
  cat >conftest.$ac_ext <<_ACEOF
10245
 
/* confdefs.h.  */
10246
 
_ACEOF
10247
 
cat confdefs.h >>conftest.$ac_ext
10248
 
cat >>conftest.$ac_ext <<_ACEOF
 
10233
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249
10234
/* end confdefs.h.  */
10250
10235
 
10251
10236
int
10259
10244
  return 0;
10260
10245
}
10261
10246
_ACEOF
10262
 
rm -f conftest.$ac_objext
10263
 
if { (ac_try="$ac_compile"
10264
 
case "(($ac_try" in
10265
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266
 
  *) ac_try_echo=$ac_try;;
10267
 
esac
10268
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10269
 
$as_echo "$ac_try_echo") >&5
10270
 
  (eval "$ac_compile") 2>conftest.er1
10271
 
  ac_status=$?
10272
 
  grep -v '^ *+' conftest.er1 >conftest.err
10273
 
  rm -f conftest.er1
10274
 
  cat conftest.err >&5
10275
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276
 
  (exit $ac_status); } && {
10277
 
         test -z "$ac_cxx_werror_flag" ||
10278
 
         test ! -s conftest.err
10279
 
       } && test -s conftest.$ac_objext; then
 
10247
if ac_fn_cxx_try_compile "$LINENO"; then :
10280
10248
  ac_compiler_gnu=yes
10281
10249
else
10282
 
  $as_echo "$as_me: failed program was:" >&5
10283
 
sed 's/^/| /' conftest.$ac_ext >&5
10284
 
 
10285
 
        ac_compiler_gnu=no
 
10250
  ac_compiler_gnu=no
10286
10251
fi
10287
 
 
10288
10252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289
10253
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10290
10254
 
10291
10255
fi
10292
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
10256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10293
10257
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10294
10258
if test $ac_compiler_gnu = yes; then
10295
10259
  GXX=yes
10298
10262
fi
10299
10263
ac_test_CXXFLAGS=${CXXFLAGS+set}
10300
10264
ac_save_CXXFLAGS=$CXXFLAGS
10301
 
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
10265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10302
10266
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10303
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
10267
if test "${ac_cv_prog_cxx_g+set}" = set; then :
10304
10268
  $as_echo_n "(cached) " >&6
10305
10269
else
10306
10270
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10307
10271
   ac_cxx_werror_flag=yes
10308
10272
   ac_cv_prog_cxx_g=no
10309
10273
   CXXFLAGS="-g"
10310
 
   cat >conftest.$ac_ext <<_ACEOF
10311
 
/* confdefs.h.  */
10312
 
_ACEOF
10313
 
cat confdefs.h >>conftest.$ac_ext
10314
 
cat >>conftest.$ac_ext <<_ACEOF
 
10274
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315
10275
/* end confdefs.h.  */
10316
10276
 
10317
10277
int
10322
10282
  return 0;
10323
10283
}
10324
10284
_ACEOF
10325
 
rm -f conftest.$ac_objext
10326
 
if { (ac_try="$ac_compile"
10327
 
case "(($ac_try" in
10328
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329
 
  *) ac_try_echo=$ac_try;;
10330
 
esac
10331
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10332
 
$as_echo "$ac_try_echo") >&5
10333
 
  (eval "$ac_compile") 2>conftest.er1
10334
 
  ac_status=$?
10335
 
  grep -v '^ *+' conftest.er1 >conftest.err
10336
 
  rm -f conftest.er1
10337
 
  cat conftest.err >&5
10338
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339
 
  (exit $ac_status); } && {
10340
 
         test -z "$ac_cxx_werror_flag" ||
10341
 
         test ! -s conftest.err
10342
 
       } && test -s conftest.$ac_objext; then
 
10285
if ac_fn_cxx_try_compile "$LINENO"; then :
10343
10286
  ac_cv_prog_cxx_g=yes
10344
10287
else
10345
 
  $as_echo "$as_me: failed program was:" >&5
10346
 
sed 's/^/| /' conftest.$ac_ext >&5
10347
 
 
10348
 
        CXXFLAGS=""
10349
 
      cat >conftest.$ac_ext <<_ACEOF
10350
 
/* confdefs.h.  */
10351
 
_ACEOF
10352
 
cat confdefs.h >>conftest.$ac_ext
10353
 
cat >>conftest.$ac_ext <<_ACEOF
 
10288
  CXXFLAGS=""
 
10289
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354
10290
/* end confdefs.h.  */
10355
10291
 
10356
10292
int
10361
10297
  return 0;
10362
10298
}
10363
10299
_ACEOF
10364
 
rm -f conftest.$ac_objext
10365
 
if { (ac_try="$ac_compile"
10366
 
case "(($ac_try" in
10367
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368
 
  *) ac_try_echo=$ac_try;;
10369
 
esac
10370
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10371
 
$as_echo "$ac_try_echo") >&5
10372
 
  (eval "$ac_compile") 2>conftest.er1
10373
 
  ac_status=$?
10374
 
  grep -v '^ *+' conftest.er1 >conftest.err
10375
 
  rm -f conftest.er1
10376
 
  cat conftest.err >&5
10377
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378
 
  (exit $ac_status); } && {
10379
 
         test -z "$ac_cxx_werror_flag" ||
10380
 
         test ! -s conftest.err
10381
 
       } && test -s conftest.$ac_objext; then
10382
 
  :
 
10300
if ac_fn_cxx_try_compile "$LINENO"; then :
 
10301
 
10383
10302
else
10384
 
  $as_echo "$as_me: failed program was:" >&5
10385
 
sed 's/^/| /' conftest.$ac_ext >&5
10386
 
 
10387
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
10303
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10388
10304
         CXXFLAGS="-g"
10389
 
         cat >conftest.$ac_ext <<_ACEOF
10390
 
/* confdefs.h.  */
10391
 
_ACEOF
10392
 
cat confdefs.h >>conftest.$ac_ext
10393
 
cat >>conftest.$ac_ext <<_ACEOF
 
10305
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394
10306
/* end confdefs.h.  */
10395
10307
 
10396
10308
int
10401
10313
  return 0;
10402
10314
}
10403
10315
_ACEOF
10404
 
rm -f conftest.$ac_objext
10405
 
if { (ac_try="$ac_compile"
10406
 
case "(($ac_try" in
10407
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408
 
  *) ac_try_echo=$ac_try;;
10409
 
esac
10410
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10411
 
$as_echo "$ac_try_echo") >&5
10412
 
  (eval "$ac_compile") 2>conftest.er1
10413
 
  ac_status=$?
10414
 
  grep -v '^ *+' conftest.er1 >conftest.err
10415
 
  rm -f conftest.er1
10416
 
  cat conftest.err >&5
10417
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418
 
  (exit $ac_status); } && {
10419
 
         test -z "$ac_cxx_werror_flag" ||
10420
 
         test ! -s conftest.err
10421
 
       } && test -s conftest.$ac_objext; then
 
10316
if ac_fn_cxx_try_compile "$LINENO"; then :
10422
10317
  ac_cv_prog_cxx_g=yes
10423
 
else
10424
 
  $as_echo "$as_me: failed program was:" >&5
10425
 
sed 's/^/| /' conftest.$ac_ext >&5
10426
 
 
10427
 
 
10428
 
fi
10429
 
 
10430
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431
 
fi
10432
 
 
10433
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434
 
fi
10435
 
 
 
10318
fi
 
10319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10320
fi
 
10321
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10322
fi
10436
10323
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437
10324
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10438
10325
fi
10439
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
10326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10440
10327
$as_echo "$ac_cv_prog_cxx_g" >&6; }
10441
10328
if test "$ac_test_CXXFLAGS" = set; then
10442
10329
  CXXFLAGS=$ac_save_CXXFLAGS
10469
10356
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10470
10357
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10471
10358
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10472
 
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
10359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10473
10360
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10474
10361
if test -z "$CXXCPP"; then
10475
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
10362
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10476
10363
  $as_echo_n "(cached) " >&6
10477
10364
else
10478
10365
      # Double quotes because CXXCPP needs to be expanded
10487
10374
  # <limits.h> exists even on freestanding compilers.
10488
10375
  # On the NeXT, cc -E runs the code through the compiler's parser,
10489
10376
  # not just through cpp. "Syntax error" is here to catch this case.
10490
 
  cat >conftest.$ac_ext <<_ACEOF
10491
 
/* confdefs.h.  */
10492
 
_ACEOF
10493
 
cat confdefs.h >>conftest.$ac_ext
10494
 
cat >>conftest.$ac_ext <<_ACEOF
 
10377
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495
10378
/* end confdefs.h.  */
10496
10379
#ifdef __STDC__
10497
10380
# include <limits.h>
10500
10383
#endif
10501
10384
                     Syntax error
10502
10385
_ACEOF
10503
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10504
 
case "(($ac_try" in
10505
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506
 
  *) ac_try_echo=$ac_try;;
10507
 
esac
10508
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10509
 
$as_echo "$ac_try_echo") >&5
10510
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10511
 
  ac_status=$?
10512
 
  grep -v '^ *+' conftest.er1 >conftest.err
10513
 
  rm -f conftest.er1
10514
 
  cat conftest.err >&5
10515
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516
 
  (exit $ac_status); } >/dev/null && {
10517
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10518
 
         test ! -s conftest.err
10519
 
       }; then
10520
 
  :
 
10386
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
10387
 
10521
10388
else
10522
 
  $as_echo "$as_me: failed program was:" >&5
10523
 
sed 's/^/| /' conftest.$ac_ext >&5
10524
 
 
10525
10389
  # Broken: fails on valid input.
10526
10390
continue
10527
10391
fi
10528
 
 
10529
10392
rm -f conftest.err conftest.$ac_ext
10530
10393
 
10531
10394
  # OK, works on sane cases.  Now check whether nonexistent headers
10532
10395
  # can be detected and how.
10533
 
  cat >conftest.$ac_ext <<_ACEOF
10534
 
/* confdefs.h.  */
10535
 
_ACEOF
10536
 
cat confdefs.h >>conftest.$ac_ext
10537
 
cat >>conftest.$ac_ext <<_ACEOF
 
10396
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538
10397
/* end confdefs.h.  */
10539
10398
#include <ac_nonexistent.h>
10540
10399
_ACEOF
10541
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10542
 
case "(($ac_try" in
10543
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544
 
  *) ac_try_echo=$ac_try;;
10545
 
esac
10546
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10547
 
$as_echo "$ac_try_echo") >&5
10548
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10549
 
  ac_status=$?
10550
 
  grep -v '^ *+' conftest.er1 >conftest.err
10551
 
  rm -f conftest.er1
10552
 
  cat conftest.err >&5
10553
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554
 
  (exit $ac_status); } >/dev/null && {
10555
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10556
 
         test ! -s conftest.err
10557
 
       }; then
 
10400
if ac_fn_cxx_try_cpp "$LINENO"; then :
10558
10401
  # Broken: success on invalid input.
10559
10402
continue
10560
10403
else
10561
 
  $as_echo "$as_me: failed program was:" >&5
10562
 
sed 's/^/| /' conftest.$ac_ext >&5
10563
 
 
10564
10404
  # Passes both tests.
10565
10405
ac_preproc_ok=:
10566
10406
break
10567
10407
fi
10568
 
 
10569
10408
rm -f conftest.err conftest.$ac_ext
10570
10409
 
10571
10410
done
10572
10411
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10573
10412
rm -f conftest.err conftest.$ac_ext
10574
 
if $ac_preproc_ok; then
 
10413
if $ac_preproc_ok; then :
10575
10414
  break
10576
10415
fi
10577
10416
 
10583
10422
else
10584
10423
  ac_cv_prog_CXXCPP=$CXXCPP
10585
10424
fi
10586
 
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
10425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10587
10426
$as_echo "$CXXCPP" >&6; }
10588
10427
ac_preproc_ok=false
10589
10428
for ac_cxx_preproc_warn_flag in '' yes
10594
10433
  # <limits.h> exists even on freestanding compilers.
10595
10434
  # On the NeXT, cc -E runs the code through the compiler's parser,
10596
10435
  # not just through cpp. "Syntax error" is here to catch this case.
10597
 
  cat >conftest.$ac_ext <<_ACEOF
10598
 
/* confdefs.h.  */
10599
 
_ACEOF
10600
 
cat confdefs.h >>conftest.$ac_ext
10601
 
cat >>conftest.$ac_ext <<_ACEOF
 
10436
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602
10437
/* end confdefs.h.  */
10603
10438
#ifdef __STDC__
10604
10439
# include <limits.h>
10607
10442
#endif
10608
10443
                     Syntax error
10609
10444
_ACEOF
10610
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10611
 
case "(($ac_try" in
10612
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613
 
  *) ac_try_echo=$ac_try;;
10614
 
esac
10615
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616
 
$as_echo "$ac_try_echo") >&5
10617
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10618
 
  ac_status=$?
10619
 
  grep -v '^ *+' conftest.er1 >conftest.err
10620
 
  rm -f conftest.er1
10621
 
  cat conftest.err >&5
10622
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623
 
  (exit $ac_status); } >/dev/null && {
10624
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10625
 
         test ! -s conftest.err
10626
 
       }; then
10627
 
  :
 
10445
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
10446
 
10628
10447
else
10629
 
  $as_echo "$as_me: failed program was:" >&5
10630
 
sed 's/^/| /' conftest.$ac_ext >&5
10631
 
 
10632
10448
  # Broken: fails on valid input.
10633
10449
continue
10634
10450
fi
10635
 
 
10636
10451
rm -f conftest.err conftest.$ac_ext
10637
10452
 
10638
10453
  # OK, works on sane cases.  Now check whether nonexistent headers
10639
10454
  # can be detected and how.
10640
 
  cat >conftest.$ac_ext <<_ACEOF
10641
 
/* confdefs.h.  */
10642
 
_ACEOF
10643
 
cat confdefs.h >>conftest.$ac_ext
10644
 
cat >>conftest.$ac_ext <<_ACEOF
 
10455
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645
10456
/* end confdefs.h.  */
10646
10457
#include <ac_nonexistent.h>
10647
10458
_ACEOF
10648
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10649
 
case "(($ac_try" in
10650
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651
 
  *) ac_try_echo=$ac_try;;
10652
 
esac
10653
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654
 
$as_echo "$ac_try_echo") >&5
10655
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10656
 
  ac_status=$?
10657
 
  grep -v '^ *+' conftest.er1 >conftest.err
10658
 
  rm -f conftest.er1
10659
 
  cat conftest.err >&5
10660
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661
 
  (exit $ac_status); } >/dev/null && {
10662
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10663
 
         test ! -s conftest.err
10664
 
       }; then
 
10459
if ac_fn_cxx_try_cpp "$LINENO"; then :
10665
10460
  # Broken: success on invalid input.
10666
10461
continue
10667
10462
else
10668
 
  $as_echo "$as_me: failed program was:" >&5
10669
 
sed 's/^/| /' conftest.$ac_ext >&5
10670
 
 
10671
10463
  # Passes both tests.
10672
10464
ac_preproc_ok=:
10673
10465
break
10674
10466
fi
10675
 
 
10676
10467
rm -f conftest.err conftest.$ac_ext
10677
10468
 
10678
10469
done
10679
10470
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10680
10471
rm -f conftest.err conftest.$ac_ext
10681
 
if $ac_preproc_ok; then
10682
 
  :
 
10472
if $ac_preproc_ok; then :
 
10473
 
10683
10474
else
10684
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
10475
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10685
10476
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10686
 
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10687
 
See \`config.log' for more details." >&5
10688
 
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10689
 
See \`config.log' for more details." >&2;}
10690
 
   { (exit 1); exit 1; }; }; }
 
10477
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
 
10478
See \`config.log' for more details." "$LINENO" 5; }
10691
10479
fi
10692
10480
 
10693
10481
ac_ext=cpp
10708
10496
  do
10709
10497
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10710
10498
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10711
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712
10500
$as_echo_n "checking for $ac_word... " >&6; }
10713
 
if test "${ac_cv_prog_F77+set}" = set; then
 
10501
if test "${ac_cv_prog_F77+set}" = set; then :
10714
10502
  $as_echo_n "(cached) " >&6
10715
10503
else
10716
10504
  if test -n "$F77"; then
10721
10509
do
10722
10510
  IFS=$as_save_IFS
10723
10511
  test -z "$as_dir" && as_dir=.
10724
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10512
    for ac_exec_ext in '' $ac_executable_extensions; do
10725
10513
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10726
10514
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10727
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10515
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728
10516
    break 2
10729
10517
  fi
10730
10518
done
10731
 
done
 
10519
  done
10732
10520
IFS=$as_save_IFS
10733
10521
 
10734
10522
fi
10735
10523
fi
10736
10524
F77=$ac_cv_prog_F77
10737
10525
if test -n "$F77"; then
10738
 
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
10526
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
10739
10527
$as_echo "$F77" >&6; }
10740
10528
else
10741
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10529
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742
10530
$as_echo "no" >&6; }
10743
10531
fi
10744
10532
 
10752
10540
do
10753
10541
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10754
10542
set dummy $ac_prog; ac_word=$2
10755
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756
10544
$as_echo_n "checking for $ac_word... " >&6; }
10757
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
10545
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
10758
10546
  $as_echo_n "(cached) " >&6
10759
10547
else
10760
10548
  if test -n "$ac_ct_F77"; then
10765
10553
do
10766
10554
  IFS=$as_save_IFS
10767
10555
  test -z "$as_dir" && as_dir=.
10768
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10556
    for ac_exec_ext in '' $ac_executable_extensions; do
10769
10557
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770
10558
    ac_cv_prog_ac_ct_F77="$ac_prog"
10771
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10559
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772
10560
    break 2
10773
10561
  fi
10774
10562
done
10775
 
done
 
10563
  done
10776
10564
IFS=$as_save_IFS
10777
10565
 
10778
10566
fi
10779
10567
fi
10780
10568
ac_ct_F77=$ac_cv_prog_ac_ct_F77
10781
10569
if test -n "$ac_ct_F77"; then
10782
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
10570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
10783
10571
$as_echo "$ac_ct_F77" >&6; }
10784
10572
else
10785
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786
10574
$as_echo "no" >&6; }
10787
10575
fi
10788
10576
 
10795
10583
  else
10796
10584
    case $cross_compiling:$ac_tool_warned in
10797
10585
yes:)
10798
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
10586
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10799
10587
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10800
10588
ac_tool_warned=yes ;;
10801
10589
esac
10805
10593
 
10806
10594
 
10807
10595
# Provide some information about the compiler.
10808
 
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
10596
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
10809
10597
set X $ac_compile
10810
10598
ac_compiler=$2
10811
 
{ (ac_try="$ac_compiler --version >&5"
10812
 
case "(($ac_try" in
10813
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814
 
  *) ac_try_echo=$ac_try;;
10815
 
esac
10816
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10817
 
$as_echo "$ac_try_echo") >&5
10818
 
  (eval "$ac_compiler --version >&5") 2>&5
10819
 
  ac_status=$?
10820
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821
 
  (exit $ac_status); }
10822
 
{ (ac_try="$ac_compiler -v >&5"
10823
 
case "(($ac_try" in
10824
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825
 
  *) ac_try_echo=$ac_try;;
10826
 
esac
10827
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10828
 
$as_echo "$ac_try_echo") >&5
10829
 
  (eval "$ac_compiler -v >&5") 2>&5
10830
 
  ac_status=$?
10831
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832
 
  (exit $ac_status); }
10833
 
{ (ac_try="$ac_compiler -V >&5"
10834
 
case "(($ac_try" in
10835
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836
 
  *) ac_try_echo=$ac_try;;
10837
 
esac
10838
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10839
 
$as_echo "$ac_try_echo") >&5
10840
 
  (eval "$ac_compiler -V >&5") 2>&5
10841
 
  ac_status=$?
10842
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843
 
  (exit $ac_status); }
 
10599
for ac_option in --version -v -V -qversion; do
 
10600
  { { ac_try="$ac_compiler $ac_option >&5"
 
10601
case "(($ac_try" in
 
10602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10603
  *) ac_try_echo=$ac_try;;
 
10604
esac
 
10605
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
10606
$as_echo "$ac_try_echo"; } >&5
 
10607
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
10608
  ac_status=$?
 
10609
  if test -s conftest.err; then
 
10610
    sed '10a\
 
10611
... rest of stderr output deleted ...
 
10612
         10q' conftest.err >conftest.er1
 
10613
    cat conftest.er1 >&5
 
10614
    rm -f conftest.er1 conftest.err
 
10615
  fi
 
10616
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10617
  test $ac_status = 0; }
 
10618
done
10844
10619
rm -f a.out
10845
10620
 
10846
10621
# If we don't use `.F' as extension, the preprocessor is not run on the
10847
10622
# input file.  (Note that this only needs to work for GNU compilers.)
10848
10623
ac_save_ext=$ac_ext
10849
10624
ac_ext=F
10850
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
10625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
10851
10626
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
10852
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
10627
if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
10853
10628
  $as_echo_n "(cached) " >&6
10854
10629
else
10855
 
  cat >conftest.$ac_ext <<_ACEOF
 
10630
  cat > conftest.$ac_ext <<_ACEOF
10856
10631
      program main
10857
10632
#ifndef __GNUC__
10858
10633
       choke me
10860
10635
 
10861
10636
      end
10862
10637
_ACEOF
10863
 
rm -f conftest.$ac_objext
10864
 
if { (ac_try="$ac_compile"
10865
 
case "(($ac_try" in
10866
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867
 
  *) ac_try_echo=$ac_try;;
10868
 
esac
10869
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10870
 
$as_echo "$ac_try_echo") >&5
10871
 
  (eval "$ac_compile") 2>conftest.er1
10872
 
  ac_status=$?
10873
 
  grep -v '^ *+' conftest.er1 >conftest.err
10874
 
  rm -f conftest.er1
10875
 
  cat conftest.err >&5
10876
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877
 
  (exit $ac_status); } && {
10878
 
         test -z "$ac_f77_werror_flag" ||
10879
 
         test ! -s conftest.err
10880
 
       } && test -s conftest.$ac_objext; then
 
10638
if ac_fn_f77_try_compile "$LINENO"; then :
10881
10639
  ac_compiler_gnu=yes
10882
10640
else
10883
 
  $as_echo "$as_me: failed program was:" >&5
10884
 
sed 's/^/| /' conftest.$ac_ext >&5
10885
 
 
10886
 
        ac_compiler_gnu=no
 
10641
  ac_compiler_gnu=no
10887
10642
fi
10888
 
 
10889
10643
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890
10644
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10891
10645
 
10892
10646
fi
10893
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
10647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
10894
10648
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
10895
10649
ac_ext=$ac_save_ext
10896
10650
ac_test_FFLAGS=${FFLAGS+set}
10897
10651
ac_save_FFLAGS=$FFLAGS
10898
10652
FFLAGS=
10899
 
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
10653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
10900
10654
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
10901
 
if test "${ac_cv_prog_f77_g+set}" = set; then
 
10655
if test "${ac_cv_prog_f77_g+set}" = set; then :
10902
10656
  $as_echo_n "(cached) " >&6
10903
10657
else
10904
10658
  FFLAGS=-g
10905
 
cat >conftest.$ac_ext <<_ACEOF
 
10659
cat > conftest.$ac_ext <<_ACEOF
10906
10660
      program main
10907
10661
 
10908
10662
      end
10909
10663
_ACEOF
10910
 
rm -f conftest.$ac_objext
10911
 
if { (ac_try="$ac_compile"
10912
 
case "(($ac_try" in
10913
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914
 
  *) ac_try_echo=$ac_try;;
10915
 
esac
10916
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10917
 
$as_echo "$ac_try_echo") >&5
10918
 
  (eval "$ac_compile") 2>conftest.er1
10919
 
  ac_status=$?
10920
 
  grep -v '^ *+' conftest.er1 >conftest.err
10921
 
  rm -f conftest.er1
10922
 
  cat conftest.err >&5
10923
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924
 
  (exit $ac_status); } && {
10925
 
         test -z "$ac_f77_werror_flag" ||
10926
 
         test ! -s conftest.err
10927
 
       } && test -s conftest.$ac_objext; then
 
10664
if ac_fn_f77_try_compile "$LINENO"; then :
10928
10665
  ac_cv_prog_f77_g=yes
10929
10666
else
10930
 
  $as_echo "$as_me: failed program was:" >&5
10931
 
sed 's/^/| /' conftest.$ac_ext >&5
10932
 
 
10933
 
        ac_cv_prog_f77_g=no
 
10667
  ac_cv_prog_f77_g=no
10934
10668
fi
10935
 
 
10936
10669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937
10670
 
10938
10671
fi
10939
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
10672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
10940
10673
$as_echo "$ac_cv_prog_f77_g" >&6; }
10941
10674
if test "$ac_test_FFLAGS" = set; then
10942
10675
  FFLAGS=$ac_save_FFLAGS
10969
10702
 
10970
10703
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10971
10704
# find the maximum length of command line arguments
10972
 
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
10705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10973
10706
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
10974
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
10707
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
10975
10708
  $as_echo_n "(cached) " >&6
10976
10709
else
10977
10710
    i=0
11081
10814
fi
11082
10815
 
11083
10816
if test -n $lt_cv_sys_max_cmd_len ; then
11084
 
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
10817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11085
10818
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11086
10819
else
11087
 
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
10820
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11088
10821
$as_echo "none" >&6; }
11089
10822
fi
11090
10823
 
11093
10826
 
11094
10827
 
11095
10828
# Check for command to grab the raw symbol name followed by C symbol from nm.
11096
 
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
10829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11097
10830
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11098
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
10831
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
11099
10832
  $as_echo_n "(cached) " >&6
11100
10833
else
11101
10834
 
11198
10931
int main(){nm_test_var='a';nm_test_func();return(0);}
11199
10932
EOF
11200
10933
 
11201
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10934
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11202
10935
  (eval $ac_compile) 2>&5
11203
10936
  ac_status=$?
11204
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205
 
  (exit $ac_status); }; then
 
10937
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10938
  test $ac_status = 0; }; then
11206
10939
    # Now try to grab the symbols.
11207
10940
    nlist=conftest.nm
11208
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
10941
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
11209
10942
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11210
10943
  ac_status=$?
11211
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212
 
  (exit $ac_status); } && test -s "$nlist"; then
 
10944
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10945
  test $ac_status = 0; } && test -s "$nlist"; then
11213
10946
      # Try sorting and uniquifying the output.
11214
10947
      if sort "$nlist" | uniq > "$nlist"T; then
11215
10948
        mv -f "$nlist"T "$nlist"
11260
10993
          lt_save_CFLAGS="$CFLAGS"
11261
10994
          LIBS="conftstm.$ac_objext"
11262
10995
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11263
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10996
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11264
10997
  (eval $ac_link) 2>&5
11265
10998
  ac_status=$?
11266
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
10999
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11000
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11268
11001
            pipe_works=yes
11269
11002
          fi
11270
11003
          LIBS="$lt_save_LIBS"
11298
11031
  lt_cv_sys_global_symbol_to_cdecl=
11299
11032
fi
11300
11033
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11301
 
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
11034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11302
11035
$as_echo "failed" >&6; }
11303
11036
else
11304
 
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
11037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11305
11038
$as_echo "ok" >&6; }
11306
11039
fi
11307
11040
 
11308
 
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
11041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11309
11042
$as_echo_n "checking for objdir... " >&6; }
11310
 
if test "${lt_cv_objdir+set}" = set; then
 
11043
if test "${lt_cv_objdir+set}" = set; then :
11311
11044
  $as_echo_n "(cached) " >&6
11312
11045
else
11313
11046
  rm -f .libs 2>/dev/null
11320
11053
fi
11321
11054
rmdir .libs 2>/dev/null
11322
11055
fi
11323
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
11056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11324
11057
$as_echo "$lt_cv_objdir" >&6; }
11325
11058
objdir=$lt_cv_objdir
11326
11059
 
11372
11105
if test -n "$ac_tool_prefix"; then
11373
11106
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11374
11107
set dummy ${ac_tool_prefix}ar; ac_word=$2
11375
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376
11109
$as_echo_n "checking for $ac_word... " >&6; }
11377
 
if test "${ac_cv_prog_AR+set}" = set; then
 
11110
if test "${ac_cv_prog_AR+set}" = set; then :
11378
11111
  $as_echo_n "(cached) " >&6
11379
11112
else
11380
11113
  if test -n "$AR"; then
11385
11118
do
11386
11119
  IFS=$as_save_IFS
11387
11120
  test -z "$as_dir" && as_dir=.
11388
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11121
    for ac_exec_ext in '' $ac_executable_extensions; do
11389
11122
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11390
11123
    ac_cv_prog_AR="${ac_tool_prefix}ar"
11391
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11124
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392
11125
    break 2
11393
11126
  fi
11394
11127
done
11395
 
done
 
11128
  done
11396
11129
IFS=$as_save_IFS
11397
11130
 
11398
11131
fi
11399
11132
fi
11400
11133
AR=$ac_cv_prog_AR
11401
11134
if test -n "$AR"; then
11402
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
11135
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11403
11136
$as_echo "$AR" >&6; }
11404
11137
else
11405
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11138
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406
11139
$as_echo "no" >&6; }
11407
11140
fi
11408
11141
 
11412
11145
  ac_ct_AR=$AR
11413
11146
  # Extract the first word of "ar", so it can be a program name with args.
11414
11147
set dummy ar; ac_word=$2
11415
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416
11149
$as_echo_n "checking for $ac_word... " >&6; }
11417
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
11150
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11418
11151
  $as_echo_n "(cached) " >&6
11419
11152
else
11420
11153
  if test -n "$ac_ct_AR"; then
11425
11158
do
11426
11159
  IFS=$as_save_IFS
11427
11160
  test -z "$as_dir" && as_dir=.
11428
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11161
    for ac_exec_ext in '' $ac_executable_extensions; do
11429
11162
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11430
11163
    ac_cv_prog_ac_ct_AR="ar"
11431
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11164
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432
11165
    break 2
11433
11166
  fi
11434
11167
done
11435
 
done
 
11168
  done
11436
11169
IFS=$as_save_IFS
11437
11170
 
11438
11171
fi
11439
11172
fi
11440
11173
ac_ct_AR=$ac_cv_prog_ac_ct_AR
11441
11174
if test -n "$ac_ct_AR"; then
11442
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
11175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11443
11176
$as_echo "$ac_ct_AR" >&6; }
11444
11177
else
11445
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446
11179
$as_echo "no" >&6; }
11447
11180
fi
11448
11181
 
11451
11184
  else
11452
11185
    case $cross_compiling:$ac_tool_warned in
11453
11186
yes:)
11454
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11187
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11455
11188
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11456
11189
ac_tool_warned=yes ;;
11457
11190
esac
11464
11197
if test -n "$ac_tool_prefix"; then
11465
11198
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11466
11199
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11467
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468
11201
$as_echo_n "checking for $ac_word... " >&6; }
11469
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
11202
if test "${ac_cv_prog_RANLIB+set}" = set; then :
11470
11203
  $as_echo_n "(cached) " >&6
11471
11204
else
11472
11205
  if test -n "$RANLIB"; then
11477
11210
do
11478
11211
  IFS=$as_save_IFS
11479
11212
  test -z "$as_dir" && as_dir=.
11480
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11213
    for ac_exec_ext in '' $ac_executable_extensions; do
11481
11214
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11482
11215
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11483
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11216
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484
11217
    break 2
11485
11218
  fi
11486
11219
done
11487
 
done
 
11220
  done
11488
11221
IFS=$as_save_IFS
11489
11222
 
11490
11223
fi
11491
11224
fi
11492
11225
RANLIB=$ac_cv_prog_RANLIB
11493
11226
if test -n "$RANLIB"; then
11494
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
11227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11495
11228
$as_echo "$RANLIB" >&6; }
11496
11229
else
11497
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11230
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498
11231
$as_echo "no" >&6; }
11499
11232
fi
11500
11233
 
11504
11237
  ac_ct_RANLIB=$RANLIB
11505
11238
  # Extract the first word of "ranlib", so it can be a program name with args.
11506
11239
set dummy ranlib; ac_word=$2
11507
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508
11241
$as_echo_n "checking for $ac_word... " >&6; }
11509
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
11242
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11510
11243
  $as_echo_n "(cached) " >&6
11511
11244
else
11512
11245
  if test -n "$ac_ct_RANLIB"; then
11517
11250
do
11518
11251
  IFS=$as_save_IFS
11519
11252
  test -z "$as_dir" && as_dir=.
11520
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11253
    for ac_exec_ext in '' $ac_executable_extensions; do
11521
11254
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522
11255
    ac_cv_prog_ac_ct_RANLIB="ranlib"
11523
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11256
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524
11257
    break 2
11525
11258
  fi
11526
11259
done
11527
 
done
 
11260
  done
11528
11261
IFS=$as_save_IFS
11529
11262
 
11530
11263
fi
11531
11264
fi
11532
11265
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11533
11266
if test -n "$ac_ct_RANLIB"; then
11534
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
11267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11535
11268
$as_echo "$ac_ct_RANLIB" >&6; }
11536
11269
else
11537
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538
11271
$as_echo "no" >&6; }
11539
11272
fi
11540
11273
 
11543
11276
  else
11544
11277
    case $cross_compiling:$ac_tool_warned in
11545
11278
yes:)
11546
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11279
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11547
11280
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11548
11281
ac_tool_warned=yes ;;
11549
11282
esac
11556
11289
if test -n "$ac_tool_prefix"; then
11557
11290
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11558
11291
set dummy ${ac_tool_prefix}strip; ac_word=$2
11559
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560
11293
$as_echo_n "checking for $ac_word... " >&6; }
11561
 
if test "${ac_cv_prog_STRIP+set}" = set; then
 
11294
if test "${ac_cv_prog_STRIP+set}" = set; then :
11562
11295
  $as_echo_n "(cached) " >&6
11563
11296
else
11564
11297
  if test -n "$STRIP"; then
11569
11302
do
11570
11303
  IFS=$as_save_IFS
11571
11304
  test -z "$as_dir" && as_dir=.
11572
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11305
    for ac_exec_ext in '' $ac_executable_extensions; do
11573
11306
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11574
11307
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11575
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11308
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576
11309
    break 2
11577
11310
  fi
11578
11311
done
11579
 
done
 
11312
  done
11580
11313
IFS=$as_save_IFS
11581
11314
 
11582
11315
fi
11583
11316
fi
11584
11317
STRIP=$ac_cv_prog_STRIP
11585
11318
if test -n "$STRIP"; then
11586
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
11319
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11587
11320
$as_echo "$STRIP" >&6; }
11588
11321
else
11589
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590
11323
$as_echo "no" >&6; }
11591
11324
fi
11592
11325
 
11596
11329
  ac_ct_STRIP=$STRIP
11597
11330
  # Extract the first word of "strip", so it can be a program name with args.
11598
11331
set dummy strip; ac_word=$2
11599
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600
11333
$as_echo_n "checking for $ac_word... " >&6; }
11601
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
11334
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11602
11335
  $as_echo_n "(cached) " >&6
11603
11336
else
11604
11337
  if test -n "$ac_ct_STRIP"; then
11609
11342
do
11610
11343
  IFS=$as_save_IFS
11611
11344
  test -z "$as_dir" && as_dir=.
11612
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11345
    for ac_exec_ext in '' $ac_executable_extensions; do
11613
11346
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11614
11347
    ac_cv_prog_ac_ct_STRIP="strip"
11615
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11348
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616
11349
    break 2
11617
11350
  fi
11618
11351
done
11619
 
done
 
11352
  done
11620
11353
IFS=$as_save_IFS
11621
11354
 
11622
11355
fi
11623
11356
fi
11624
11357
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11625
11358
if test -n "$ac_ct_STRIP"; then
11626
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
11359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11627
11360
$as_echo "$ac_ct_STRIP" >&6; }
11628
11361
else
11629
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630
11363
$as_echo "no" >&6; }
11631
11364
fi
11632
11365
 
11635
11368
  else
11636
11369
    case $cross_compiling:$ac_tool_warned in
11637
11370
yes:)
11638
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11371
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11639
11372
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11640
11373
ac_tool_warned=yes ;;
11641
11374
esac
11699
11432
case $deplibs_check_method in
11700
11433
file_magic*)
11701
11434
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11702
 
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
11435
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11703
11436
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11704
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
11437
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11705
11438
  $as_echo_n "(cached) " >&6
11706
11439
else
11707
11440
  case $MAGIC_CMD in
11752
11485
 
11753
11486
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11754
11487
if test -n "$MAGIC_CMD"; then
11755
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
11488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11756
11489
$as_echo "$MAGIC_CMD" >&6; }
11757
11490
else
11758
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759
11492
$as_echo "no" >&6; }
11760
11493
fi
11761
11494
 
11762
11495
if test -z "$lt_cv_path_MAGIC_CMD"; then
11763
11496
  if test -n "$ac_tool_prefix"; then
11764
 
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
11497
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11765
11498
$as_echo_n "checking for file... " >&6; }
11766
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
11499
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11767
11500
  $as_echo_n "(cached) " >&6
11768
11501
else
11769
11502
  case $MAGIC_CMD in
11814
11547
 
11815
11548
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11816
11549
if test -n "$MAGIC_CMD"; then
11817
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
11550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11818
11551
$as_echo "$MAGIC_CMD" >&6; }
11819
11552
else
11820
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11553
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821
11554
$as_echo "no" >&6; }
11822
11555
fi
11823
11556
 
11836
11569
    if test -n "$ac_tool_prefix"; then
11837
11570
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11838
11571
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11839
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840
11573
$as_echo_n "checking for $ac_word... " >&6; }
11841
 
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
11574
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11842
11575
  $as_echo_n "(cached) " >&6
11843
11576
else
11844
11577
  if test -n "$DSYMUTIL"; then
11849
11582
do
11850
11583
  IFS=$as_save_IFS
11851
11584
  test -z "$as_dir" && as_dir=.
11852
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11585
    for ac_exec_ext in '' $ac_executable_extensions; do
11853
11586
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854
11587
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11855
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11588
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856
11589
    break 2
11857
11590
  fi
11858
11591
done
11859
 
done
 
11592
  done
11860
11593
IFS=$as_save_IFS
11861
11594
 
11862
11595
fi
11863
11596
fi
11864
11597
DSYMUTIL=$ac_cv_prog_DSYMUTIL
11865
11598
if test -n "$DSYMUTIL"; then
11866
 
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
11599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11867
11600
$as_echo "$DSYMUTIL" >&6; }
11868
11601
else
11869
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870
11603
$as_echo "no" >&6; }
11871
11604
fi
11872
11605
 
11876
11609
  ac_ct_DSYMUTIL=$DSYMUTIL
11877
11610
  # Extract the first word of "dsymutil", so it can be a program name with args.
11878
11611
set dummy dsymutil; ac_word=$2
11879
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880
11613
$as_echo_n "checking for $ac_word... " >&6; }
11881
 
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
11614
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11882
11615
  $as_echo_n "(cached) " >&6
11883
11616
else
11884
11617
  if test -n "$ac_ct_DSYMUTIL"; then
11889
11622
do
11890
11623
  IFS=$as_save_IFS
11891
11624
  test -z "$as_dir" && as_dir=.
11892
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11625
    for ac_exec_ext in '' $ac_executable_extensions; do
11893
11626
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11894
11627
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11895
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11628
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896
11629
    break 2
11897
11630
  fi
11898
11631
done
11899
 
done
 
11632
  done
11900
11633
IFS=$as_save_IFS
11901
11634
 
11902
11635
fi
11903
11636
fi
11904
11637
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11905
11638
if test -n "$ac_ct_DSYMUTIL"; then
11906
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
11639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11907
11640
$as_echo "$ac_ct_DSYMUTIL" >&6; }
11908
11641
else
11909
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11642
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910
11643
$as_echo "no" >&6; }
11911
11644
fi
11912
11645
 
11915
11648
  else
11916
11649
    case $cross_compiling:$ac_tool_warned in
11917
11650
yes:)
11918
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11651
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11919
11652
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11920
11653
ac_tool_warned=yes ;;
11921
11654
esac
11928
11661
    if test -n "$ac_tool_prefix"; then
11929
11662
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11930
11663
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11931
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932
11665
$as_echo_n "checking for $ac_word... " >&6; }
11933
 
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
11666
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11934
11667
  $as_echo_n "(cached) " >&6
11935
11668
else
11936
11669
  if test -n "$NMEDIT"; then
11941
11674
do
11942
11675
  IFS=$as_save_IFS
11943
11676
  test -z "$as_dir" && as_dir=.
11944
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11677
    for ac_exec_ext in '' $ac_executable_extensions; do
11945
11678
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11946
11679
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11947
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11680
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948
11681
    break 2
11949
11682
  fi
11950
11683
done
11951
 
done
 
11684
  done
11952
11685
IFS=$as_save_IFS
11953
11686
 
11954
11687
fi
11955
11688
fi
11956
11689
NMEDIT=$ac_cv_prog_NMEDIT
11957
11690
if test -n "$NMEDIT"; then
11958
 
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
11691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11959
11692
$as_echo "$NMEDIT" >&6; }
11960
11693
else
11961
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11694
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962
11695
$as_echo "no" >&6; }
11963
11696
fi
11964
11697
 
11968
11701
  ac_ct_NMEDIT=$NMEDIT
11969
11702
  # Extract the first word of "nmedit", so it can be a program name with args.
11970
11703
set dummy nmedit; ac_word=$2
11971
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
11704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972
11705
$as_echo_n "checking for $ac_word... " >&6; }
11973
 
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
11706
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11974
11707
  $as_echo_n "(cached) " >&6
11975
11708
else
11976
11709
  if test -n "$ac_ct_NMEDIT"; then
11981
11714
do
11982
11715
  IFS=$as_save_IFS
11983
11716
  test -z "$as_dir" && as_dir=.
11984
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
11717
    for ac_exec_ext in '' $ac_executable_extensions; do
11985
11718
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11986
11719
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11987
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11720
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988
11721
    break 2
11989
11722
  fi
11990
11723
done
11991
 
done
 
11724
  done
11992
11725
IFS=$as_save_IFS
11993
11726
 
11994
11727
fi
11995
11728
fi
11996
11729
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11997
11730
if test -n "$ac_ct_NMEDIT"; then
11998
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
11731
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11999
11732
$as_echo "$ac_ct_NMEDIT" >&6; }
12000
11733
else
12001
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11734
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002
11735
$as_echo "no" >&6; }
12003
11736
fi
12004
11737
 
12007
11740
  else
12008
11741
    case $cross_compiling:$ac_tool_warned in
12009
11742
yes:)
12010
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
11743
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12011
11744
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12012
11745
ac_tool_warned=yes ;;
12013
11746
esac
12018
11751
fi
12019
11752
 
12020
11753
 
12021
 
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
11754
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12022
11755
$as_echo_n "checking for -single_module linker flag... " >&6; }
12023
 
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
11756
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
12024
11757
  $as_echo_n "(cached) " >&6
12025
11758
else
12026
11759
  lt_cv_apple_cc_single_mod=no
12039
11772
   rm conftest.c
12040
11773
      fi
12041
11774
fi
12042
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
11775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12043
11776
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12044
 
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
11777
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12045
11778
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12046
 
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
11779
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
12047
11780
  $as_echo_n "(cached) " >&6
12048
11781
else
12049
11782
  lt_cv_ld_exported_symbols_list=no
12050
11783
      save_LDFLAGS=$LDFLAGS
12051
11784
      echo "_main" > conftest.sym
12052
11785
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12053
 
      cat >conftest.$ac_ext <<_ACEOF
12054
 
/* confdefs.h.  */
12055
 
_ACEOF
12056
 
cat confdefs.h >>conftest.$ac_ext
12057
 
cat >>conftest.$ac_ext <<_ACEOF
 
11786
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058
11787
/* end confdefs.h.  */
12059
11788
 
12060
11789
int
12065
11794
  return 0;
12066
11795
}
12067
11796
_ACEOF
12068
 
rm -f conftest.$ac_objext conftest$ac_exeext
12069
 
if { (ac_try="$ac_link"
12070
 
case "(($ac_try" in
12071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072
 
  *) ac_try_echo=$ac_try;;
12073
 
esac
12074
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12075
 
$as_echo "$ac_try_echo") >&5
12076
 
  (eval "$ac_link") 2>conftest.er1
12077
 
  ac_status=$?
12078
 
  grep -v '^ *+' conftest.er1 >conftest.err
12079
 
  rm -f conftest.er1
12080
 
  cat conftest.err >&5
12081
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082
 
  (exit $ac_status); } && {
12083
 
         test -z "$ac_c_werror_flag" ||
12084
 
         test ! -s conftest.err
12085
 
       } && test -s conftest$ac_exeext && {
12086
 
         test "$cross_compiling" = yes ||
12087
 
         $as_test_x conftest$ac_exeext
12088
 
       }; then
 
11797
if ac_fn_c_try_link "$LINENO"; then :
12089
11798
  lt_cv_ld_exported_symbols_list=yes
12090
11799
else
12091
 
  $as_echo "$as_me: failed program was:" >&5
12092
 
sed 's/^/| /' conftest.$ac_ext >&5
12093
 
 
12094
 
        lt_cv_ld_exported_symbols_list=no
 
11800
  lt_cv_ld_exported_symbols_list=no
12095
11801
fi
12096
 
 
12097
 
rm -rf conftest.dSYM
12098
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12099
 
      conftest$ac_exeext conftest.$ac_ext
 
11802
rm -f core conftest.err conftest.$ac_objext \
 
11803
    conftest$ac_exeext conftest.$ac_ext
12100
11804
   LDFLAGS="$save_LDFLAGS"
12101
11805
 
12102
11806
fi
12103
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
11807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12104
11808
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12105
11809
    case $host_os in
12106
11810
    rhapsody* | darwin1.[0123])
12142
11846
enable_win32_dll=no
12143
11847
 
12144
11848
# Check whether --enable-libtool-lock was given.
12145
 
if test "${enable_libtool_lock+set}" = set; then
 
11849
if test "${enable_libtool_lock+set}" = set; then :
12146
11850
  enableval=$enable_libtool_lock;
12147
11851
fi
12148
11852
 
12150
11854
 
12151
11855
 
12152
11856
# Check whether --with-pic was given.
12153
 
if test "${with_pic+set}" = set; then
 
11857
if test "${with_pic+set}" = set; then :
12154
11858
  withval=$with_pic; pic_mode="$withval"
12155
11859
else
12156
11860
  pic_mode=default
12217
11921
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12218
11922
 
12219
11923
 
12220
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
11924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12221
11925
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12222
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
11926
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12223
11927
  $as_echo_n "(cached) " >&6
12224
11928
else
12225
11929
  lt_cv_prog_compiler_rtti_exceptions=no
12235
11939
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12236
11940
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12237
11941
   -e 's:$: $lt_compiler_flag:'`
12238
 
   (eval echo "\"\$as_me:12238: $lt_compile\"" >&5)
 
11942
   (eval echo "\"\$as_me:11942: $lt_compile\"" >&5)
12239
11943
   (eval "$lt_compile" 2>conftest.err)
12240
11944
   ac_status=$?
12241
11945
   cat conftest.err >&5
12242
 
   echo "$as_me:12242: \$? = $ac_status" >&5
 
11946
   echo "$as_me:11946: \$? = $ac_status" >&5
12243
11947
   if (exit $ac_status) && test -s "$ac_outfile"; then
12244
11948
     # The compiler can only warn and ignore the option if not recognized
12245
11949
     # So say no if there are warnings other than the usual output.
12252
11956
   $rm conftest*
12253
11957
 
12254
11958
fi
12255
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
11959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12256
11960
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12257
11961
 
12258
11962
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12267
11971
lt_prog_compiler_pic=
12268
11972
lt_prog_compiler_static=
12269
11973
 
12270
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12271
11975
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12272
11976
 
12273
11977
  if test "$GCC" = yes; then
12499
12203
    esac
12500
12204
  fi
12501
12205
 
12502
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
12206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12503
12207
$as_echo "$lt_prog_compiler_pic" >&6; }
12504
12208
 
12505
12209
#
12507
12211
#
12508
12212
if test -n "$lt_prog_compiler_pic"; then
12509
12213
 
12510
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
12214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12511
12215
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12512
 
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
12216
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12513
12217
  $as_echo_n "(cached) " >&6
12514
12218
else
12515
12219
  lt_cv_prog_compiler_pic_works=no
12525
12229
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12526
12230
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12527
12231
   -e 's:$: $lt_compiler_flag:'`
12528
 
   (eval echo "\"\$as_me:12528: $lt_compile\"" >&5)
 
12232
   (eval echo "\"\$as_me:12232: $lt_compile\"" >&5)
12529
12233
   (eval "$lt_compile" 2>conftest.err)
12530
12234
   ac_status=$?
12531
12235
   cat conftest.err >&5
12532
 
   echo "$as_me:12532: \$? = $ac_status" >&5
 
12236
   echo "$as_me:12236: \$? = $ac_status" >&5
12533
12237
   if (exit $ac_status) && test -s "$ac_outfile"; then
12534
12238
     # The compiler can only warn and ignore the option if not recognized
12535
12239
     # So say no if there are warnings other than the usual output.
12542
12246
   $rm conftest*
12543
12247
 
12544
12248
fi
12545
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
12249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12546
12250
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12547
12251
 
12548
12252
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12570
12274
# Check to make sure the static flag actually works.
12571
12275
#
12572
12276
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12573
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12277
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12574
12278
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12575
 
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
12279
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12576
12280
  $as_echo_n "(cached) " >&6
12577
12281
else
12578
12282
  lt_cv_prog_compiler_static_works=no
12598
12302
   LDFLAGS="$save_LDFLAGS"
12599
12303
 
12600
12304
fi
12601
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
12305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12602
12306
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12603
12307
 
12604
12308
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12608
12312
fi
12609
12313
 
12610
12314
 
12611
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12315
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12612
12316
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12613
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
12317
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12614
12318
  $as_echo_n "(cached) " >&6
12615
12319
else
12616
12320
  lt_cv_prog_compiler_c_o=no
12629
12333
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12630
12334
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12631
12335
   -e 's:$: $lt_compiler_flag:'`
12632
 
   (eval echo "\"\$as_me:12632: $lt_compile\"" >&5)
 
12336
   (eval echo "\"\$as_me:12336: $lt_compile\"" >&5)
12633
12337
   (eval "$lt_compile" 2>out/conftest.err)
12634
12338
   ac_status=$?
12635
12339
   cat out/conftest.err >&5
12636
 
   echo "$as_me:12636: \$? = $ac_status" >&5
 
12340
   echo "$as_me:12340: \$? = $ac_status" >&5
12637
12341
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12638
12342
   then
12639
12343
     # The compiler can only warn and ignore the option if not recognized
12655
12359
   $rm conftest*
12656
12360
 
12657
12361
fi
12658
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
12362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12659
12363
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12660
12364
 
12661
12365
 
12662
12366
hard_links="nottested"
12663
12367
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12664
12368
  # do not overwrite the value of need_locks provided by the user
12665
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12369
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12666
12370
$as_echo_n "checking if we can lock with hard links... " >&6; }
12667
12371
  hard_links=yes
12668
12372
  $rm conftest*
12670
12374
  touch conftest.a
12671
12375
  ln conftest.a conftest.b 2>&5 || hard_links=no
12672
12376
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12673
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
12377
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12674
12378
$as_echo "$hard_links" >&6; }
12675
12379
  if test "$hard_links" = no; then
12676
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12380
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12677
12381
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12678
12382
    need_locks=warn
12679
12383
  fi
12681
12385
  need_locks=no
12682
12386
fi
12683
12387
 
12684
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12685
12389
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12686
12390
 
12687
12391
  runpath_var=
13091
12795
        # -berok will link without error, but may produce a broken library.
13092
12796
        allow_undefined_flag='-berok'
13093
12797
       # Determine the default libpath from the value encoded in an empty executable.
13094
 
       cat >conftest.$ac_ext <<_ACEOF
13095
 
/* confdefs.h.  */
13096
 
_ACEOF
13097
 
cat confdefs.h >>conftest.$ac_ext
13098
 
cat >>conftest.$ac_ext <<_ACEOF
 
12798
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099
12799
/* end confdefs.h.  */
13100
12800
 
13101
12801
int
13106
12806
  return 0;
13107
12807
}
13108
12808
_ACEOF
13109
 
rm -f conftest.$ac_objext conftest$ac_exeext
13110
 
if { (ac_try="$ac_link"
13111
 
case "(($ac_try" in
13112
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113
 
  *) ac_try_echo=$ac_try;;
13114
 
esac
13115
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13116
 
$as_echo "$ac_try_echo") >&5
13117
 
  (eval "$ac_link") 2>conftest.er1
13118
 
  ac_status=$?
13119
 
  grep -v '^ *+' conftest.er1 >conftest.err
13120
 
  rm -f conftest.er1
13121
 
  cat conftest.err >&5
13122
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123
 
  (exit $ac_status); } && {
13124
 
         test -z "$ac_c_werror_flag" ||
13125
 
         test ! -s conftest.err
13126
 
       } && test -s conftest$ac_exeext && {
13127
 
         test "$cross_compiling" = yes ||
13128
 
         $as_test_x conftest$ac_exeext
13129
 
       }; then
 
12809
if ac_fn_c_try_link "$LINENO"; then :
13130
12810
 
13131
12811
lt_aix_libpath_sed='
13132
12812
    /Import File Strings/,/^$/ {
13140
12820
if test -z "$aix_libpath"; then
13141
12821
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13142
12822
fi
13143
 
else
13144
 
  $as_echo "$as_me: failed program was:" >&5
13145
 
sed 's/^/| /' conftest.$ac_ext >&5
13146
 
 
13147
 
 
13148
12823
fi
13149
 
 
13150
 
rm -rf conftest.dSYM
13151
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13152
 
      conftest$ac_exeext conftest.$ac_ext
 
12824
rm -f core conftest.err conftest.$ac_objext \
 
12825
    conftest$ac_exeext conftest.$ac_ext
13153
12826
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13154
12827
 
13155
12828
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13161
12834
          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"
13162
12835
        else
13163
12836
         # Determine the default libpath from the value encoded in an empty executable.
13164
 
         cat >conftest.$ac_ext <<_ACEOF
13165
 
/* confdefs.h.  */
13166
 
_ACEOF
13167
 
cat confdefs.h >>conftest.$ac_ext
13168
 
cat >>conftest.$ac_ext <<_ACEOF
 
12837
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169
12838
/* end confdefs.h.  */
13170
12839
 
13171
12840
int
13176
12845
  return 0;
13177
12846
}
13178
12847
_ACEOF
13179
 
rm -f conftest.$ac_objext conftest$ac_exeext
13180
 
if { (ac_try="$ac_link"
13181
 
case "(($ac_try" in
13182
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183
 
  *) ac_try_echo=$ac_try;;
13184
 
esac
13185
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186
 
$as_echo "$ac_try_echo") >&5
13187
 
  (eval "$ac_link") 2>conftest.er1
13188
 
  ac_status=$?
13189
 
  grep -v '^ *+' conftest.er1 >conftest.err
13190
 
  rm -f conftest.er1
13191
 
  cat conftest.err >&5
13192
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193
 
  (exit $ac_status); } && {
13194
 
         test -z "$ac_c_werror_flag" ||
13195
 
         test ! -s conftest.err
13196
 
       } && test -s conftest$ac_exeext && {
13197
 
         test "$cross_compiling" = yes ||
13198
 
         $as_test_x conftest$ac_exeext
13199
 
       }; then
 
12848
if ac_fn_c_try_link "$LINENO"; then :
13200
12849
 
13201
12850
lt_aix_libpath_sed='
13202
12851
    /Import File Strings/,/^$/ {
13210
12859
if test -z "$aix_libpath"; then
13211
12860
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212
12861
fi
13213
 
else
13214
 
  $as_echo "$as_me: failed program was:" >&5
13215
 
sed 's/^/| /' conftest.$ac_ext >&5
13216
 
 
13217
 
 
13218
12862
fi
13219
 
 
13220
 
rm -rf conftest.dSYM
13221
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13222
 
      conftest$ac_exeext conftest.$ac_ext
 
12863
rm -f core conftest.err conftest.$ac_objext \
 
12864
    conftest$ac_exeext conftest.$ac_ext
13223
12865
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13224
12866
 
13225
12867
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13651
13293
    esac
13652
13294
  fi
13653
13295
 
13654
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
13296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13655
13297
$as_echo "$ld_shlibs" >&6; }
13656
13298
test "$ld_shlibs" = no && can_build_shared=no
13657
13299
 
13672
13314
      # Test whether the compiler implicitly links with -lc since on some
13673
13315
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13674
13316
      # to ld, don't add -lc before -lgcc.
13675
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13317
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13676
13318
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13677
13319
      $rm conftest*
13678
13320
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13679
13321
 
13680
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13322
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13681
13323
  (eval $ac_compile) 2>&5
13682
13324
  ac_status=$?
13683
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684
 
  (exit $ac_status); } 2>conftest.err; then
 
13325
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13326
  test $ac_status = 0; } 2>conftest.err; then
13685
13327
        soname=conftest
13686
13328
        lib=conftest
13687
13329
        libobjs=conftest.$ac_objext
13695
13337
        libname=conftest
13696
13338
        lt_save_allow_undefined_flag=$allow_undefined_flag
13697
13339
        allow_undefined_flag=
13698
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13340
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13699
13341
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13700
13342
  ac_status=$?
13701
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702
 
  (exit $ac_status); }
 
13343
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13344
  test $ac_status = 0; }
13703
13345
        then
13704
13346
          archive_cmds_need_lc=no
13705
13347
        else
13710
13352
        cat conftest.err 1>&5
13711
13353
      fi
13712
13354
      $rm conftest*
13713
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
13355
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13714
13356
$as_echo "$archive_cmds_need_lc" >&6; }
13715
13357
      ;;
13716
13358
    esac
13718
13360
  ;;
13719
13361
esac
13720
13362
 
13721
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13722
13364
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13723
13365
library_names_spec=
13724
13366
libname_spec='lib$name'
14320
13962
  dynamic_linker=no
14321
13963
  ;;
14322
13964
esac
14323
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14324
13966
$as_echo "$dynamic_linker" >&6; }
14325
13967
test "$dynamic_linker" = no && can_build_shared=no
14326
13968
 
14327
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13969
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
14328
13970
  $as_echo_n "(cached) " >&6
14329
13971
else
14330
13972
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14331
13973
fi
14332
13974
 
14333
13975
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14334
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13976
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
14335
13977
  $as_echo_n "(cached) " >&6
14336
13978
else
14337
13979
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14344
13986
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14345
13987
fi
14346
13988
 
14347
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14348
13990
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14349
13991
hardcode_action=
14350
13992
if test -n "$hardcode_libdir_flag_spec" || \
14369
14011
  # directories.
14370
14012
  hardcode_action=unsupported
14371
14013
fi
14372
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
14014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14373
14015
$as_echo "$hardcode_action" >&6; }
14374
14016
 
14375
14017
if test "$hardcode_action" = relink; then
14383
14025
 
14384
14026
striplib=
14385
14027
old_striplib=
14386
 
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14387
14029
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14388
14030
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14389
14031
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14390
14032
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14391
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
14033
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14392
14034
$as_echo "yes" >&6; }
14393
14035
else
14394
14036
# FIXME - insert some real tests, host_os isn't really good enough
14397
14039
       if test -n "$STRIP" ; then
14398
14040
         striplib="$STRIP -x"
14399
14041
         old_striplib="$STRIP -S"
14400
 
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
14042
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14401
14043
$as_echo "yes" >&6; }
14402
14044
       else
14403
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
14045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404
14046
$as_echo "no" >&6; }
14405
14047
fi
14406
14048
       ;;
14407
14049
   *)
14408
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
14050
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409
14051
$as_echo "no" >&6; }
14410
14052
    ;;
14411
14053
  esac
14438
14080
 
14439
14081
  darwin*)
14440
14082
  # if libdl is installed we need to link against it
14441
 
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14083
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14442
14084
$as_echo_n "checking for dlopen in -ldl... " >&6; }
14443
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14085
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14444
14086
  $as_echo_n "(cached) " >&6
14445
14087
else
14446
14088
  ac_check_lib_save_LIBS=$LIBS
14447
14089
LIBS="-ldl  $LIBS"
14448
 
cat >conftest.$ac_ext <<_ACEOF
14449
 
/* confdefs.h.  */
14450
 
_ACEOF
14451
 
cat confdefs.h >>conftest.$ac_ext
14452
 
cat >>conftest.$ac_ext <<_ACEOF
 
14090
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453
14091
/* end confdefs.h.  */
14454
14092
 
14455
14093
/* Override any GCC internal prototype to avoid an error.
14467
14105
  return 0;
14468
14106
}
14469
14107
_ACEOF
14470
 
rm -f conftest.$ac_objext conftest$ac_exeext
14471
 
if { (ac_try="$ac_link"
14472
 
case "(($ac_try" in
14473
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474
 
  *) ac_try_echo=$ac_try;;
14475
 
esac
14476
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14477
 
$as_echo "$ac_try_echo") >&5
14478
 
  (eval "$ac_link") 2>conftest.er1
14479
 
  ac_status=$?
14480
 
  grep -v '^ *+' conftest.er1 >conftest.err
14481
 
  rm -f conftest.er1
14482
 
  cat conftest.err >&5
14483
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484
 
  (exit $ac_status); } && {
14485
 
         test -z "$ac_c_werror_flag" ||
14486
 
         test ! -s conftest.err
14487
 
       } && test -s conftest$ac_exeext && {
14488
 
         test "$cross_compiling" = yes ||
14489
 
         $as_test_x conftest$ac_exeext
14490
 
       }; then
 
14108
if ac_fn_c_try_link "$LINENO"; then :
14491
14109
  ac_cv_lib_dl_dlopen=yes
14492
14110
else
14493
 
  $as_echo "$as_me: failed program was:" >&5
14494
 
sed 's/^/| /' conftest.$ac_ext >&5
14495
 
 
14496
 
        ac_cv_lib_dl_dlopen=no
 
14111
  ac_cv_lib_dl_dlopen=no
14497
14112
fi
14498
 
 
14499
 
rm -rf conftest.dSYM
14500
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14501
 
      conftest$ac_exeext conftest.$ac_ext
 
14113
rm -f core conftest.err conftest.$ac_objext \
 
14114
    conftest$ac_exeext conftest.$ac_ext
14502
14115
LIBS=$ac_check_lib_save_LIBS
14503
14116
fi
14504
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14505
14118
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14506
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
14119
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14507
14120
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14508
14121
else
14509
14122
 
14516
14129
   ;;
14517
14130
 
14518
14131
  *)
14519
 
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
14520
 
$as_echo_n "checking for shl_load... " >&6; }
14521
 
if test "${ac_cv_func_shl_load+set}" = set; then
14522
 
  $as_echo_n "(cached) " >&6
14523
 
else
14524
 
  cat >conftest.$ac_ext <<_ACEOF
14525
 
/* confdefs.h.  */
14526
 
_ACEOF
14527
 
cat confdefs.h >>conftest.$ac_ext
14528
 
cat >>conftest.$ac_ext <<_ACEOF
14529
 
/* end confdefs.h.  */
14530
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14531
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14532
 
#define shl_load innocuous_shl_load
14533
 
 
14534
 
/* System header to define __stub macros and hopefully few prototypes,
14535
 
    which can conflict with char shl_load (); below.
14536
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14537
 
    <limits.h> exists even on freestanding compilers.  */
14538
 
 
14539
 
#ifdef __STDC__
14540
 
# include <limits.h>
14541
 
#else
14542
 
# include <assert.h>
14543
 
#endif
14544
 
 
14545
 
#undef shl_load
14546
 
 
14547
 
/* Override any GCC internal prototype to avoid an error.
14548
 
   Use char because int might match the return type of a GCC
14549
 
   builtin and then its argument prototype would still apply.  */
14550
 
#ifdef __cplusplus
14551
 
extern "C"
14552
 
#endif
14553
 
char shl_load ();
14554
 
/* The GNU C library defines this for functions which it implements
14555
 
    to always fail with ENOSYS.  Some functions are actually named
14556
 
    something starting with __ and the normal name is an alias.  */
14557
 
#if defined __stub_shl_load || defined __stub___shl_load
14558
 
choke me
14559
 
#endif
14560
 
 
14561
 
int
14562
 
main ()
14563
 
{
14564
 
return shl_load ();
14565
 
  ;
14566
 
  return 0;
14567
 
}
14568
 
_ACEOF
14569
 
rm -f conftest.$ac_objext conftest$ac_exeext
14570
 
if { (ac_try="$ac_link"
14571
 
case "(($ac_try" in
14572
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573
 
  *) ac_try_echo=$ac_try;;
14574
 
esac
14575
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14576
 
$as_echo "$ac_try_echo") >&5
14577
 
  (eval "$ac_link") 2>conftest.er1
14578
 
  ac_status=$?
14579
 
  grep -v '^ *+' conftest.er1 >conftest.err
14580
 
  rm -f conftest.er1
14581
 
  cat conftest.err >&5
14582
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583
 
  (exit $ac_status); } && {
14584
 
         test -z "$ac_c_werror_flag" ||
14585
 
         test ! -s conftest.err
14586
 
       } && test -s conftest$ac_exeext && {
14587
 
         test "$cross_compiling" = yes ||
14588
 
         $as_test_x conftest$ac_exeext
14589
 
       }; then
14590
 
  ac_cv_func_shl_load=yes
14591
 
else
14592
 
  $as_echo "$as_me: failed program was:" >&5
14593
 
sed 's/^/| /' conftest.$ac_ext >&5
14594
 
 
14595
 
        ac_cv_func_shl_load=no
14596
 
fi
14597
 
 
14598
 
rm -rf conftest.dSYM
14599
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600
 
      conftest$ac_exeext conftest.$ac_ext
14601
 
fi
14602
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14603
 
$as_echo "$ac_cv_func_shl_load" >&6; }
14604
 
if test "x$ac_cv_func_shl_load" = x""yes; then
 
14132
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
14133
if test "x$ac_cv_func_shl_load" = x""yes; then :
14605
14134
  lt_cv_dlopen="shl_load"
14606
14135
else
14607
 
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
14136
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14608
14137
$as_echo_n "checking for shl_load in -ldld... " >&6; }
14609
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
14138
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14610
14139
  $as_echo_n "(cached) " >&6
14611
14140
else
14612
14141
  ac_check_lib_save_LIBS=$LIBS
14613
14142
LIBS="-ldld  $LIBS"
14614
 
cat >conftest.$ac_ext <<_ACEOF
14615
 
/* confdefs.h.  */
14616
 
_ACEOF
14617
 
cat confdefs.h >>conftest.$ac_ext
14618
 
cat >>conftest.$ac_ext <<_ACEOF
 
14143
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619
14144
/* end confdefs.h.  */
14620
14145
 
14621
14146
/* Override any GCC internal prototype to avoid an error.
14633
14158
  return 0;
14634
14159
}
14635
14160
_ACEOF
14636
 
rm -f conftest.$ac_objext conftest$ac_exeext
14637
 
if { (ac_try="$ac_link"
14638
 
case "(($ac_try" in
14639
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640
 
  *) ac_try_echo=$ac_try;;
14641
 
esac
14642
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14643
 
$as_echo "$ac_try_echo") >&5
14644
 
  (eval "$ac_link") 2>conftest.er1
14645
 
  ac_status=$?
14646
 
  grep -v '^ *+' conftest.er1 >conftest.err
14647
 
  rm -f conftest.er1
14648
 
  cat conftest.err >&5
14649
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650
 
  (exit $ac_status); } && {
14651
 
         test -z "$ac_c_werror_flag" ||
14652
 
         test ! -s conftest.err
14653
 
       } && test -s conftest$ac_exeext && {
14654
 
         test "$cross_compiling" = yes ||
14655
 
         $as_test_x conftest$ac_exeext
14656
 
       }; then
 
14161
if ac_fn_c_try_link "$LINENO"; then :
14657
14162
  ac_cv_lib_dld_shl_load=yes
14658
14163
else
14659
 
  $as_echo "$as_me: failed program was:" >&5
14660
 
sed 's/^/| /' conftest.$ac_ext >&5
14661
 
 
14662
 
        ac_cv_lib_dld_shl_load=no
 
14164
  ac_cv_lib_dld_shl_load=no
14663
14165
fi
14664
 
 
14665
 
rm -rf conftest.dSYM
14666
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14667
 
      conftest$ac_exeext conftest.$ac_ext
 
14166
rm -f core conftest.err conftest.$ac_objext \
 
14167
    conftest$ac_exeext conftest.$ac_ext
14668
14168
LIBS=$ac_check_lib_save_LIBS
14669
14169
fi
14670
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
14170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14671
14171
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14672
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
14172
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14673
14173
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14674
14174
else
14675
 
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
14676
 
$as_echo_n "checking for dlopen... " >&6; }
14677
 
if test "${ac_cv_func_dlopen+set}" = set; then
14678
 
  $as_echo_n "(cached) " >&6
14679
 
else
14680
 
  cat >conftest.$ac_ext <<_ACEOF
14681
 
/* confdefs.h.  */
14682
 
_ACEOF
14683
 
cat confdefs.h >>conftest.$ac_ext
14684
 
cat >>conftest.$ac_ext <<_ACEOF
14685
 
/* end confdefs.h.  */
14686
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14687
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14688
 
#define dlopen innocuous_dlopen
14689
 
 
14690
 
/* System header to define __stub macros and hopefully few prototypes,
14691
 
    which can conflict with char dlopen (); below.
14692
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14693
 
    <limits.h> exists even on freestanding compilers.  */
14694
 
 
14695
 
#ifdef __STDC__
14696
 
# include <limits.h>
14697
 
#else
14698
 
# include <assert.h>
14699
 
#endif
14700
 
 
14701
 
#undef dlopen
14702
 
 
14703
 
/* Override any GCC internal prototype to avoid an error.
14704
 
   Use char because int might match the return type of a GCC
14705
 
   builtin and then its argument prototype would still apply.  */
14706
 
#ifdef __cplusplus
14707
 
extern "C"
14708
 
#endif
14709
 
char dlopen ();
14710
 
/* The GNU C library defines this for functions which it implements
14711
 
    to always fail with ENOSYS.  Some functions are actually named
14712
 
    something starting with __ and the normal name is an alias.  */
14713
 
#if defined __stub_dlopen || defined __stub___dlopen
14714
 
choke me
14715
 
#endif
14716
 
 
14717
 
int
14718
 
main ()
14719
 
{
14720
 
return dlopen ();
14721
 
  ;
14722
 
  return 0;
14723
 
}
14724
 
_ACEOF
14725
 
rm -f conftest.$ac_objext conftest$ac_exeext
14726
 
if { (ac_try="$ac_link"
14727
 
case "(($ac_try" in
14728
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729
 
  *) ac_try_echo=$ac_try;;
14730
 
esac
14731
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14732
 
$as_echo "$ac_try_echo") >&5
14733
 
  (eval "$ac_link") 2>conftest.er1
14734
 
  ac_status=$?
14735
 
  grep -v '^ *+' conftest.er1 >conftest.err
14736
 
  rm -f conftest.er1
14737
 
  cat conftest.err >&5
14738
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739
 
  (exit $ac_status); } && {
14740
 
         test -z "$ac_c_werror_flag" ||
14741
 
         test ! -s conftest.err
14742
 
       } && test -s conftest$ac_exeext && {
14743
 
         test "$cross_compiling" = yes ||
14744
 
         $as_test_x conftest$ac_exeext
14745
 
       }; then
14746
 
  ac_cv_func_dlopen=yes
14747
 
else
14748
 
  $as_echo "$as_me: failed program was:" >&5
14749
 
sed 's/^/| /' conftest.$ac_ext >&5
14750
 
 
14751
 
        ac_cv_func_dlopen=no
14752
 
fi
14753
 
 
14754
 
rm -rf conftest.dSYM
14755
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14756
 
      conftest$ac_exeext conftest.$ac_ext
14757
 
fi
14758
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14759
 
$as_echo "$ac_cv_func_dlopen" >&6; }
14760
 
if test "x$ac_cv_func_dlopen" = x""yes; then
 
14175
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
14176
if test "x$ac_cv_func_dlopen" = x""yes; then :
14761
14177
  lt_cv_dlopen="dlopen"
14762
14178
else
14763
 
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14179
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14764
14180
$as_echo_n "checking for dlopen in -ldl... " >&6; }
14765
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14181
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14766
14182
  $as_echo_n "(cached) " >&6
14767
14183
else
14768
14184
  ac_check_lib_save_LIBS=$LIBS
14769
14185
LIBS="-ldl  $LIBS"
14770
 
cat >conftest.$ac_ext <<_ACEOF
14771
 
/* confdefs.h.  */
14772
 
_ACEOF
14773
 
cat confdefs.h >>conftest.$ac_ext
14774
 
cat >>conftest.$ac_ext <<_ACEOF
 
14186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775
14187
/* end confdefs.h.  */
14776
14188
 
14777
14189
/* Override any GCC internal prototype to avoid an error.
14789
14201
  return 0;
14790
14202
}
14791
14203
_ACEOF
14792
 
rm -f conftest.$ac_objext conftest$ac_exeext
14793
 
if { (ac_try="$ac_link"
14794
 
case "(($ac_try" in
14795
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796
 
  *) ac_try_echo=$ac_try;;
14797
 
esac
14798
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14799
 
$as_echo "$ac_try_echo") >&5
14800
 
  (eval "$ac_link") 2>conftest.er1
14801
 
  ac_status=$?
14802
 
  grep -v '^ *+' conftest.er1 >conftest.err
14803
 
  rm -f conftest.er1
14804
 
  cat conftest.err >&5
14805
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806
 
  (exit $ac_status); } && {
14807
 
         test -z "$ac_c_werror_flag" ||
14808
 
         test ! -s conftest.err
14809
 
       } && test -s conftest$ac_exeext && {
14810
 
         test "$cross_compiling" = yes ||
14811
 
         $as_test_x conftest$ac_exeext
14812
 
       }; then
 
14204
if ac_fn_c_try_link "$LINENO"; then :
14813
14205
  ac_cv_lib_dl_dlopen=yes
14814
14206
else
14815
 
  $as_echo "$as_me: failed program was:" >&5
14816
 
sed 's/^/| /' conftest.$ac_ext >&5
14817
 
 
14818
 
        ac_cv_lib_dl_dlopen=no
 
14207
  ac_cv_lib_dl_dlopen=no
14819
14208
fi
14820
 
 
14821
 
rm -rf conftest.dSYM
14822
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14823
 
      conftest$ac_exeext conftest.$ac_ext
 
14209
rm -f core conftest.err conftest.$ac_objext \
 
14210
    conftest$ac_exeext conftest.$ac_ext
14824
14211
LIBS=$ac_check_lib_save_LIBS
14825
14212
fi
14826
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14827
14214
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14828
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
14215
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14829
14216
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14830
14217
else
14831
 
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
14218
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14832
14219
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14833
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
14220
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14834
14221
  $as_echo_n "(cached) " >&6
14835
14222
else
14836
14223
  ac_check_lib_save_LIBS=$LIBS
14837
14224
LIBS="-lsvld  $LIBS"
14838
 
cat >conftest.$ac_ext <<_ACEOF
14839
 
/* confdefs.h.  */
14840
 
_ACEOF
14841
 
cat confdefs.h >>conftest.$ac_ext
14842
 
cat >>conftest.$ac_ext <<_ACEOF
 
14225
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843
14226
/* end confdefs.h.  */
14844
14227
 
14845
14228
/* Override any GCC internal prototype to avoid an error.
14857
14240
  return 0;
14858
14241
}
14859
14242
_ACEOF
14860
 
rm -f conftest.$ac_objext conftest$ac_exeext
14861
 
if { (ac_try="$ac_link"
14862
 
case "(($ac_try" in
14863
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864
 
  *) ac_try_echo=$ac_try;;
14865
 
esac
14866
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14867
 
$as_echo "$ac_try_echo") >&5
14868
 
  (eval "$ac_link") 2>conftest.er1
14869
 
  ac_status=$?
14870
 
  grep -v '^ *+' conftest.er1 >conftest.err
14871
 
  rm -f conftest.er1
14872
 
  cat conftest.err >&5
14873
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874
 
  (exit $ac_status); } && {
14875
 
         test -z "$ac_c_werror_flag" ||
14876
 
         test ! -s conftest.err
14877
 
       } && test -s conftest$ac_exeext && {
14878
 
         test "$cross_compiling" = yes ||
14879
 
         $as_test_x conftest$ac_exeext
14880
 
       }; then
 
14243
if ac_fn_c_try_link "$LINENO"; then :
14881
14244
  ac_cv_lib_svld_dlopen=yes
14882
14245
else
14883
 
  $as_echo "$as_me: failed program was:" >&5
14884
 
sed 's/^/| /' conftest.$ac_ext >&5
14885
 
 
14886
 
        ac_cv_lib_svld_dlopen=no
 
14246
  ac_cv_lib_svld_dlopen=no
14887
14247
fi
14888
 
 
14889
 
rm -rf conftest.dSYM
14890
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14891
 
      conftest$ac_exeext conftest.$ac_ext
 
14248
rm -f core conftest.err conftest.$ac_objext \
 
14249
    conftest$ac_exeext conftest.$ac_ext
14892
14250
LIBS=$ac_check_lib_save_LIBS
14893
14251
fi
14894
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
14252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14895
14253
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14896
 
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
14254
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14897
14255
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14898
14256
else
14899
 
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
14257
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14900
14258
$as_echo_n "checking for dld_link in -ldld... " >&6; }
14901
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
14259
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14902
14260
  $as_echo_n "(cached) " >&6
14903
14261
else
14904
14262
  ac_check_lib_save_LIBS=$LIBS
14905
14263
LIBS="-ldld  $LIBS"
14906
 
cat >conftest.$ac_ext <<_ACEOF
14907
 
/* confdefs.h.  */
14908
 
_ACEOF
14909
 
cat confdefs.h >>conftest.$ac_ext
14910
 
cat >>conftest.$ac_ext <<_ACEOF
 
14264
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911
14265
/* end confdefs.h.  */
14912
14266
 
14913
14267
/* Override any GCC internal prototype to avoid an error.
14925
14279
  return 0;
14926
14280
}
14927
14281
_ACEOF
14928
 
rm -f conftest.$ac_objext conftest$ac_exeext
14929
 
if { (ac_try="$ac_link"
14930
 
case "(($ac_try" in
14931
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932
 
  *) ac_try_echo=$ac_try;;
14933
 
esac
14934
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14935
 
$as_echo "$ac_try_echo") >&5
14936
 
  (eval "$ac_link") 2>conftest.er1
14937
 
  ac_status=$?
14938
 
  grep -v '^ *+' conftest.er1 >conftest.err
14939
 
  rm -f conftest.er1
14940
 
  cat conftest.err >&5
14941
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942
 
  (exit $ac_status); } && {
14943
 
         test -z "$ac_c_werror_flag" ||
14944
 
         test ! -s conftest.err
14945
 
       } && test -s conftest$ac_exeext && {
14946
 
         test "$cross_compiling" = yes ||
14947
 
         $as_test_x conftest$ac_exeext
14948
 
       }; then
 
14282
if ac_fn_c_try_link "$LINENO"; then :
14949
14283
  ac_cv_lib_dld_dld_link=yes
14950
14284
else
14951
 
  $as_echo "$as_me: failed program was:" >&5
14952
 
sed 's/^/| /' conftest.$ac_ext >&5
14953
 
 
14954
 
        ac_cv_lib_dld_dld_link=no
 
14285
  ac_cv_lib_dld_dld_link=no
14955
14286
fi
14956
 
 
14957
 
rm -rf conftest.dSYM
14958
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14959
 
      conftest$ac_exeext conftest.$ac_ext
 
14287
rm -f core conftest.err conftest.$ac_objext \
 
14288
    conftest$ac_exeext conftest.$ac_ext
14960
14289
LIBS=$ac_check_lib_save_LIBS
14961
14290
fi
14962
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
14291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14963
14292
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14964
 
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
14293
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14965
14294
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14966
14295
fi
14967
14296
 
15000
14329
    save_LIBS="$LIBS"
15001
14330
    LIBS="$lt_cv_dlopen_libs $LIBS"
15002
14331
 
15003
 
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
14332
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15004
14333
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15005
 
if test "${lt_cv_dlopen_self+set}" = set; then
 
14334
if test "${lt_cv_dlopen_self+set}" = set; then :
15006
14335
  $as_echo_n "(cached) " >&6
15007
14336
else
15008
14337
          if test "$cross_compiling" = yes; then :
15011
14340
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15012
14341
  lt_status=$lt_dlunknown
15013
14342
  cat > conftest.$ac_ext <<EOF
15014
 
#line 15014 "configure"
 
14343
#line 14343 "configure"
15015
14344
#include "confdefs.h"
15016
14345
 
15017
14346
#if HAVE_DLFCN_H
15074
14403
    exit (status);
15075
14404
}
15076
14405
EOF
15077
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14406
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15078
14407
  (eval $ac_link) 2>&5
15079
14408
  ac_status=$?
15080
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14409
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14410
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15082
14411
    (./conftest; exit; ) >&5 2>/dev/null
15083
14412
    lt_status=$?
15084
14413
    case x$lt_status in
15095
14424
 
15096
14425
 
15097
14426
fi
15098
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
14427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15099
14428
$as_echo "$lt_cv_dlopen_self" >&6; }
15100
14429
 
15101
14430
    if test "x$lt_cv_dlopen_self" = xyes; then
15102
14431
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15103
 
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
14432
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15104
14433
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15105
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
14434
if test "${lt_cv_dlopen_self_static+set}" = set; then :
15106
14435
  $as_echo_n "(cached) " >&6
15107
14436
else
15108
14437
          if test "$cross_compiling" = yes; then :
15111
14440
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15112
14441
  lt_status=$lt_dlunknown
15113
14442
  cat > conftest.$ac_ext <<EOF
15114
 
#line 15114 "configure"
 
14443
#line 14443 "configure"
15115
14444
#include "confdefs.h"
15116
14445
 
15117
14446
#if HAVE_DLFCN_H
15174
14503
    exit (status);
15175
14504
}
15176
14505
EOF
15177
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14506
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15178
14507
  (eval $ac_link) 2>&5
15179
14508
  ac_status=$?
15180
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14509
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14510
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15182
14511
    (./conftest; exit; ) >&5 2>/dev/null
15183
14512
    lt_status=$?
15184
14513
    case x$lt_status in
15195
14524
 
15196
14525
 
15197
14526
fi
15198
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
14527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15199
14528
$as_echo "$lt_cv_dlopen_self_static" >&6; }
15200
14529
    fi
15201
14530
 
15218
14547
 
15219
14548
 
15220
14549
# Report which library types will actually be built
15221
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15222
14551
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15223
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15224
14553
$as_echo "$can_build_shared" >&6; }
15225
14554
 
15226
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15227
14556
$as_echo_n "checking whether to build shared libraries... " >&6; }
15228
14557
test "$can_build_shared" = "no" && enable_shared=no
15229
14558
 
15244
14573
  fi
15245
14574
    ;;
15246
14575
esac
15247
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15248
14577
$as_echo "$enable_shared" >&6; }
15249
14578
 
15250
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15251
14580
$as_echo_n "checking whether to build static libraries... " >&6; }
15252
14581
# Make sure either enable_shared or enable_static is yes.
15253
14582
test "$enable_shared" = yes || enable_static=yes
15254
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
14583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15255
14584
$as_echo "$enable_static" >&6; }
15256
14585
 
15257
14586
# The else clause should only fire when bootstrapping the
15345
14674
cfgfile="${ofile}T"
15346
14675
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15347
14676
  $rm -f "$cfgfile"
15348
 
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
14677
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15349
14678
$as_echo "$as_me: creating $ofile" >&6;}
15350
14679
 
15351
14680
  cat <<__EOF__ >> "$cfgfile"
15751
15080
 
15752
15081
 
15753
15082
# Check whether --with-tags was given.
15754
 
if test "${with_tags+set}" = set; then
 
15083
if test "${with_tags+set}" = set; then :
15755
15084
  withval=$with_tags; tagnames="$withval"
15756
15085
fi
15757
15086
 
15758
15087
 
15759
15088
if test -f "$ltmain" && test -n "$tagnames"; then
15760
15089
  if test ! -f "${ofile}"; then
15761
 
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
15090
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
15762
15091
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15763
15092
  fi
15764
15093
 
15765
15094
  if test -z "$LTCC"; then
15766
15095
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15767
15096
    if test -z "$LTCC"; then
15768
 
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
15097
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15769
15098
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15770
15099
    else
15771
 
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
15100
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15772
15101
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15773
15102
    fi
15774
15103
  fi
15786
15115
    # Check whether tagname contains only valid characters
15787
15116
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15788
15117
    "") ;;
15789
 
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15790
 
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
15791
 
   { (exit 1); exit 1; }; }
 
15118
    *)  as_fn_error "invalid tag name: $tagname" "$LINENO" 5
15792
15119
        ;;
15793
15120
    esac
15794
15121
 
15795
15122
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15796
15123
    then
15797
 
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15798
 
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15799
 
   { (exit 1); exit 1; }; }
 
15124
      as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
15800
15125
    fi
15801
15126
 
15802
15127
    # Update the list of available tags.
15929
15254
 
15930
15255
 
15931
15256
# Check whether --with-gnu-ld was given.
15932
 
if test "${with_gnu_ld+set}" = set; then
 
15257
if test "${with_gnu_ld+set}" = set; then :
15933
15258
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15934
15259
else
15935
15260
  with_gnu_ld=no
15938
15263
ac_prog=ld
15939
15264
if test "$GCC" = yes; then
15940
15265
  # Check if gcc -print-prog-name=ld gives a path.
15941
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
15266
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15942
15267
$as_echo_n "checking for ld used by $CC... " >&6; }
15943
15268
  case $host in
15944
15269
  *-*-mingw*)
15968
15293
    ;;
15969
15294
  esac
15970
15295
elif test "$with_gnu_ld" = yes; then
15971
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
15296
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15972
15297
$as_echo_n "checking for GNU ld... " >&6; }
15973
15298
else
15974
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
15299
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15975
15300
$as_echo_n "checking for non-GNU ld... " >&6; }
15976
15301
fi
15977
 
if test "${lt_cv_path_LD+set}" = set; then
 
15302
if test "${lt_cv_path_LD+set}" = set; then :
15978
15303
  $as_echo_n "(cached) " >&6
15979
15304
else
15980
15305
  if test -z "$LD"; then
16005
15330
 
16006
15331
LD="$lt_cv_path_LD"
16007
15332
if test -n "$LD"; then
16008
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
15333
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16009
15334
$as_echo "$LD" >&6; }
16010
15335
else
16011
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
15336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16012
15337
$as_echo "no" >&6; }
16013
15338
fi
16014
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16015
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16016
 
   { (exit 1); exit 1; }; }
16017
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
15339
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
15340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16018
15341
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16019
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
15342
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16020
15343
  $as_echo_n "(cached) " >&6
16021
15344
else
16022
15345
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16029
15352
  ;;
16030
15353
esac
16031
15354
fi
16032
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
15355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16033
15356
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16034
15357
with_gnu_ld=$lt_cv_prog_gnu_ld
16035
15358
 
16080
15403
fi
16081
15404
 
16082
15405
# PORTME: fill in a description of your system's C++ link characteristics
16083
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16084
15407
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16085
15408
ld_shlibs_CXX=yes
16086
15409
case $host_os in
16177
15500
      # -berok will link without error, but may produce a broken library.
16178
15501
      allow_undefined_flag_CXX='-berok'
16179
15502
      # Determine the default libpath from the value encoded in an empty executable.
16180
 
      cat >conftest.$ac_ext <<_ACEOF
16181
 
/* confdefs.h.  */
16182
 
_ACEOF
16183
 
cat confdefs.h >>conftest.$ac_ext
16184
 
cat >>conftest.$ac_ext <<_ACEOF
 
15503
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185
15504
/* end confdefs.h.  */
16186
15505
 
16187
15506
int
16192
15511
  return 0;
16193
15512
}
16194
15513
_ACEOF
16195
 
rm -f conftest.$ac_objext conftest$ac_exeext
16196
 
if { (ac_try="$ac_link"
16197
 
case "(($ac_try" in
16198
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199
 
  *) ac_try_echo=$ac_try;;
16200
 
esac
16201
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16202
 
$as_echo "$ac_try_echo") >&5
16203
 
  (eval "$ac_link") 2>conftest.er1
16204
 
  ac_status=$?
16205
 
  grep -v '^ *+' conftest.er1 >conftest.err
16206
 
  rm -f conftest.er1
16207
 
  cat conftest.err >&5
16208
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209
 
  (exit $ac_status); } && {
16210
 
         test -z "$ac_cxx_werror_flag" ||
16211
 
         test ! -s conftest.err
16212
 
       } && test -s conftest$ac_exeext && {
16213
 
         test "$cross_compiling" = yes ||
16214
 
         $as_test_x conftest$ac_exeext
16215
 
       }; then
 
15514
if ac_fn_cxx_try_link "$LINENO"; then :
16216
15515
 
16217
15516
lt_aix_libpath_sed='
16218
15517
    /Import File Strings/,/^$/ {
16226
15525
if test -z "$aix_libpath"; then
16227
15526
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16228
15527
fi
16229
 
else
16230
 
  $as_echo "$as_me: failed program was:" >&5
16231
 
sed 's/^/| /' conftest.$ac_ext >&5
16232
 
 
16233
 
 
16234
15528
fi
16235
 
 
16236
 
rm -rf conftest.dSYM
16237
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16238
 
      conftest$ac_exeext conftest.$ac_ext
 
15529
rm -f core conftest.err conftest.$ac_objext \
 
15530
    conftest$ac_exeext conftest.$ac_ext
16239
15531
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16240
15532
 
16241
15533
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16248
15540
        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"
16249
15541
      else
16250
15542
        # Determine the default libpath from the value encoded in an empty executable.
16251
 
        cat >conftest.$ac_ext <<_ACEOF
16252
 
/* confdefs.h.  */
16253
 
_ACEOF
16254
 
cat confdefs.h >>conftest.$ac_ext
16255
 
cat >>conftest.$ac_ext <<_ACEOF
 
15543
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256
15544
/* end confdefs.h.  */
16257
15545
 
16258
15546
int
16263
15551
  return 0;
16264
15552
}
16265
15553
_ACEOF
16266
 
rm -f conftest.$ac_objext conftest$ac_exeext
16267
 
if { (ac_try="$ac_link"
16268
 
case "(($ac_try" in
16269
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270
 
  *) ac_try_echo=$ac_try;;
16271
 
esac
16272
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16273
 
$as_echo "$ac_try_echo") >&5
16274
 
  (eval "$ac_link") 2>conftest.er1
16275
 
  ac_status=$?
16276
 
  grep -v '^ *+' conftest.er1 >conftest.err
16277
 
  rm -f conftest.er1
16278
 
  cat conftest.err >&5
16279
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280
 
  (exit $ac_status); } && {
16281
 
         test -z "$ac_cxx_werror_flag" ||
16282
 
         test ! -s conftest.err
16283
 
       } && test -s conftest$ac_exeext && {
16284
 
         test "$cross_compiling" = yes ||
16285
 
         $as_test_x conftest$ac_exeext
16286
 
       }; then
 
15554
if ac_fn_cxx_try_link "$LINENO"; then :
16287
15555
 
16288
15556
lt_aix_libpath_sed='
16289
15557
    /Import File Strings/,/^$/ {
16297
15565
if test -z "$aix_libpath"; then
16298
15566
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16299
15567
fi
16300
 
else
16301
 
  $as_echo "$as_me: failed program was:" >&5
16302
 
sed 's/^/| /' conftest.$ac_ext >&5
16303
 
 
16304
 
 
16305
15568
fi
16306
 
 
16307
 
rm -rf conftest.dSYM
16308
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16309
 
      conftest$ac_exeext conftest.$ac_ext
 
15569
rm -f core conftest.err conftest.$ac_objext \
 
15570
    conftest$ac_exeext conftest.$ac_ext
16310
15571
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16311
15572
 
16312
15573
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17034
16295
    ld_shlibs_CXX=no
17035
16296
    ;;
17036
16297
esac
17037
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
16298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17038
16299
$as_echo "$ld_shlibs_CXX" >&6; }
17039
16300
test "$ld_shlibs_CXX" = no && can_build_shared=no
17040
16301
 
17055
16316
};
17056
16317
EOF
17057
16318
 
17058
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16319
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17059
16320
  (eval $ac_compile) 2>&5
17060
16321
  ac_status=$?
17061
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062
 
  (exit $ac_status); }; then
 
16322
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
16323
  test $ac_status = 0; }; then
17063
16324
  # Parse the compiler output and extract the necessary
17064
16325
  # objects, libraries and library flags.
17065
16326
 
17214
16475
lt_prog_compiler_pic_CXX=
17215
16476
lt_prog_compiler_static_CXX=
17216
16477
 
17217
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17218
16479
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17219
16480
 
17220
16481
  # C++ specific cases for pic, static, wl, etc.
17498
16759
    esac
17499
16760
  fi
17500
16761
 
17501
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
16762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17502
16763
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17503
16764
 
17504
16765
#
17506
16767
#
17507
16768
if test -n "$lt_prog_compiler_pic_CXX"; then
17508
16769
 
17509
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
16770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17510
16771
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17511
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
16772
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17512
16773
  $as_echo_n "(cached) " >&6
17513
16774
else
17514
16775
  lt_cv_prog_compiler_pic_works_CXX=no
17524
16785
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17525
16786
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17526
16787
   -e 's:$: $lt_compiler_flag:'`
17527
 
   (eval echo "\"\$as_me:17527: $lt_compile\"" >&5)
 
16788
   (eval echo "\"\$as_me:16788: $lt_compile\"" >&5)
17528
16789
   (eval "$lt_compile" 2>conftest.err)
17529
16790
   ac_status=$?
17530
16791
   cat conftest.err >&5
17531
 
   echo "$as_me:17531: \$? = $ac_status" >&5
 
16792
   echo "$as_me:16792: \$? = $ac_status" >&5
17532
16793
   if (exit $ac_status) && test -s "$ac_outfile"; then
17533
16794
     # The compiler can only warn and ignore the option if not recognized
17534
16795
     # So say no if there are warnings other than the usual output.
17541
16802
   $rm conftest*
17542
16803
 
17543
16804
fi
17544
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
16805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17545
16806
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17546
16807
 
17547
16808
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17569
16830
# Check to make sure the static flag actually works.
17570
16831
#
17571
16832
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17572
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17573
16834
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17574
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
16835
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17575
16836
  $as_echo_n "(cached) " >&6
17576
16837
else
17577
16838
  lt_cv_prog_compiler_static_works_CXX=no
17597
16858
   LDFLAGS="$save_LDFLAGS"
17598
16859
 
17599
16860
fi
17600
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
16861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17601
16862
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17602
16863
 
17603
16864
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17607
16868
fi
17608
16869
 
17609
16870
 
17610
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17611
16872
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17612
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
16873
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17613
16874
  $as_echo_n "(cached) " >&6
17614
16875
else
17615
16876
  lt_cv_prog_compiler_c_o_CXX=no
17628
16889
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17629
16890
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17630
16891
   -e 's:$: $lt_compiler_flag:'`
17631
 
   (eval echo "\"\$as_me:17631: $lt_compile\"" >&5)
 
16892
   (eval echo "\"\$as_me:16892: $lt_compile\"" >&5)
17632
16893
   (eval "$lt_compile" 2>out/conftest.err)
17633
16894
   ac_status=$?
17634
16895
   cat out/conftest.err >&5
17635
 
   echo "$as_me:17635: \$? = $ac_status" >&5
 
16896
   echo "$as_me:16896: \$? = $ac_status" >&5
17636
16897
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17637
16898
   then
17638
16899
     # The compiler can only warn and ignore the option if not recognized
17654
16915
   $rm conftest*
17655
16916
 
17656
16917
fi
17657
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
16918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17658
16919
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17659
16920
 
17660
16921
 
17661
16922
hard_links="nottested"
17662
16923
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17663
16924
  # do not overwrite the value of need_locks provided by the user
17664
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16925
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17665
16926
$as_echo_n "checking if we can lock with hard links... " >&6; }
17666
16927
  hard_links=yes
17667
16928
  $rm conftest*
17669
16930
  touch conftest.a
17670
16931
  ln conftest.a conftest.b 2>&5 || hard_links=no
17671
16932
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17672
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
16933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17673
16934
$as_echo "$hard_links" >&6; }
17674
16935
  if test "$hard_links" = no; then
17675
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16936
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17676
16937
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17677
16938
    need_locks=warn
17678
16939
  fi
17680
16941
  need_locks=no
17681
16942
fi
17682
16943
 
17683
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17684
16945
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17685
16946
 
17686
16947
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17706
16967
  esac
17707
16968
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17708
16969
 
17709
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
16970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17710
16971
$as_echo "$ld_shlibs_CXX" >&6; }
17711
16972
test "$ld_shlibs_CXX" = no && can_build_shared=no
17712
16973
 
17727
16988
      # Test whether the compiler implicitly links with -lc since on some
17728
16989
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17729
16990
      # to ld, don't add -lc before -lgcc.
17730
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16991
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17731
16992
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17732
16993
      $rm conftest*
17733
16994
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17734
16995
 
17735
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16996
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17736
16997
  (eval $ac_compile) 2>&5
17737
16998
  ac_status=$?
17738
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739
 
  (exit $ac_status); } 2>conftest.err; then
 
16999
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17000
  test $ac_status = 0; } 2>conftest.err; then
17740
17001
        soname=conftest
17741
17002
        lib=conftest
17742
17003
        libobjs=conftest.$ac_objext
17750
17011
        libname=conftest
17751
17012
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17752
17013
        allow_undefined_flag_CXX=
17753
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17014
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17754
17015
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17755
17016
  ac_status=$?
17756
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757
 
  (exit $ac_status); }
 
17017
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17018
  test $ac_status = 0; }
17758
17019
        then
17759
17020
          archive_cmds_need_lc_CXX=no
17760
17021
        else
17765
17026
        cat conftest.err 1>&5
17766
17027
      fi
17767
17028
      $rm conftest*
17768
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
17029
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17769
17030
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
17770
17031
      ;;
17771
17032
    esac
17773
17034
  ;;
17774
17035
esac
17775
17036
 
17776
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17777
17038
$as_echo_n "checking dynamic linker characteristics... " >&6; }
17778
17039
library_names_spec=
17779
17040
libname_spec='lib$name'
18323
17584
  dynamic_linker=no
18324
17585
  ;;
18325
17586
esac
18326
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18327
17588
$as_echo "$dynamic_linker" >&6; }
18328
17589
test "$dynamic_linker" = no && can_build_shared=no
18329
17590
 
18330
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
17591
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18331
17592
  $as_echo_n "(cached) " >&6
18332
17593
else
18333
17594
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18334
17595
fi
18335
17596
 
18336
17597
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18337
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
17598
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18338
17599
  $as_echo_n "(cached) " >&6
18339
17600
else
18340
17601
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18347
17608
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18348
17609
fi
18349
17610
 
18350
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18351
17612
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18352
17613
hardcode_action_CXX=
18353
17614
if test -n "$hardcode_libdir_flag_spec_CXX" || \
18372
17633
  # directories.
18373
17634
  hardcode_action_CXX=unsupported
18374
17635
fi
18375
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
17636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18376
17637
$as_echo "$hardcode_action_CXX" >&6; }
18377
17638
 
18378
17639
if test "$hardcode_action_CXX" = relink; then
18911
18172
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18912
18173
 
18913
18174
 
18914
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
18175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18915
18176
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18916
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
18177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18917
18178
$as_echo "$can_build_shared" >&6; }
18918
18179
 
18919
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
18180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18920
18181
$as_echo_n "checking whether to build shared libraries... " >&6; }
18921
18182
test "$can_build_shared" = "no" && enable_shared=no
18922
18183
 
18936
18197
  fi
18937
18198
  ;;
18938
18199
esac
18939
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
18200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18940
18201
$as_echo "$enable_shared" >&6; }
18941
18202
 
18942
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
18203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18943
18204
$as_echo_n "checking whether to build static libraries... " >&6; }
18944
18205
# Make sure either enable_shared or enable_static is yes.
18945
18206
test "$enable_shared" = yes || enable_static=yes
18946
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
18207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18947
18208
$as_echo "$enable_static" >&6; }
18948
18209
 
18949
18210
GCC_F77="$G77"
18953
18214
lt_prog_compiler_pic_F77=
18954
18215
lt_prog_compiler_static_F77=
18955
18216
 
18956
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
18217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18957
18218
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18958
18219
 
18959
18220
  if test "$GCC" = yes; then
19185
18446
    esac
19186
18447
  fi
19187
18448
 
19188
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
18449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
19189
18450
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
19190
18451
 
19191
18452
#
19193
18454
#
19194
18455
if test -n "$lt_prog_compiler_pic_F77"; then
19195
18456
 
19196
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
18457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19197
18458
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
19198
 
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
18459
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
19199
18460
  $as_echo_n "(cached) " >&6
19200
18461
else
19201
18462
  lt_cv_prog_compiler_pic_works_F77=no
19211
18472
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19212
18473
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19213
18474
   -e 's:$: $lt_compiler_flag:'`
19214
 
   (eval echo "\"\$as_me:19214: $lt_compile\"" >&5)
 
18475
   (eval echo "\"\$as_me:18475: $lt_compile\"" >&5)
19215
18476
   (eval "$lt_compile" 2>conftest.err)
19216
18477
   ac_status=$?
19217
18478
   cat conftest.err >&5
19218
 
   echo "$as_me:19218: \$? = $ac_status" >&5
 
18479
   echo "$as_me:18479: \$? = $ac_status" >&5
19219
18480
   if (exit $ac_status) && test -s "$ac_outfile"; then
19220
18481
     # The compiler can only warn and ignore the option if not recognized
19221
18482
     # So say no if there are warnings other than the usual output.
19228
18489
   $rm conftest*
19229
18490
 
19230
18491
fi
19231
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
18492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
19232
18493
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
19233
18494
 
19234
18495
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
19256
18517
# Check to make sure the static flag actually works.
19257
18518
#
19258
18519
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
19259
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
18520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19260
18521
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19261
 
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
18522
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
19262
18523
  $as_echo_n "(cached) " >&6
19263
18524
else
19264
18525
  lt_cv_prog_compiler_static_works_F77=no
19284
18545
   LDFLAGS="$save_LDFLAGS"
19285
18546
 
19286
18547
fi
19287
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
18548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
19288
18549
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
19289
18550
 
19290
18551
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
19294
18555
fi
19295
18556
 
19296
18557
 
19297
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
18558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19298
18559
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19299
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
18560
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
19300
18561
  $as_echo_n "(cached) " >&6
19301
18562
else
19302
18563
  lt_cv_prog_compiler_c_o_F77=no
19315
18576
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19316
18577
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19317
18578
   -e 's:$: $lt_compiler_flag:'`
19318
 
   (eval echo "\"\$as_me:19318: $lt_compile\"" >&5)
 
18579
   (eval echo "\"\$as_me:18579: $lt_compile\"" >&5)
19319
18580
   (eval "$lt_compile" 2>out/conftest.err)
19320
18581
   ac_status=$?
19321
18582
   cat out/conftest.err >&5
19322
 
   echo "$as_me:19322: \$? = $ac_status" >&5
 
18583
   echo "$as_me:18583: \$? = $ac_status" >&5
19323
18584
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19324
18585
   then
19325
18586
     # The compiler can only warn and ignore the option if not recognized
19341
18602
   $rm conftest*
19342
18603
 
19343
18604
fi
19344
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
18605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
19345
18606
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
19346
18607
 
19347
18608
 
19348
18609
hard_links="nottested"
19349
18610
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19350
18611
  # do not overwrite the value of need_locks provided by the user
19351
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
18612
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19352
18613
$as_echo_n "checking if we can lock with hard links... " >&6; }
19353
18614
  hard_links=yes
19354
18615
  $rm conftest*
19356
18617
  touch conftest.a
19357
18618
  ln conftest.a conftest.b 2>&5 || hard_links=no
19358
18619
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19359
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
18620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19360
18621
$as_echo "$hard_links" >&6; }
19361
18622
  if test "$hard_links" = no; then
19362
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
18623
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19363
18624
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19364
18625
    need_locks=warn
19365
18626
  fi
19367
18628
  need_locks=no
19368
18629
fi
19369
18630
 
19370
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
18631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19371
18632
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19372
18633
 
19373
18634
  runpath_var=
19777
19038
        # -berok will link without error, but may produce a broken library.
19778
19039
        allow_undefined_flag_F77='-berok'
19779
19040
       # Determine the default libpath from the value encoded in an empty executable.
19780
 
       cat >conftest.$ac_ext <<_ACEOF
 
19041
       cat > conftest.$ac_ext <<_ACEOF
19781
19042
      program main
19782
19043
 
19783
19044
      end
19784
19045
_ACEOF
19785
 
rm -f conftest.$ac_objext conftest$ac_exeext
19786
 
if { (ac_try="$ac_link"
19787
 
case "(($ac_try" in
19788
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789
 
  *) ac_try_echo=$ac_try;;
19790
 
esac
19791
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19792
 
$as_echo "$ac_try_echo") >&5
19793
 
  (eval "$ac_link") 2>conftest.er1
19794
 
  ac_status=$?
19795
 
  grep -v '^ *+' conftest.er1 >conftest.err
19796
 
  rm -f conftest.er1
19797
 
  cat conftest.err >&5
19798
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799
 
  (exit $ac_status); } && {
19800
 
         test -z "$ac_f77_werror_flag" ||
19801
 
         test ! -s conftest.err
19802
 
       } && test -s conftest$ac_exeext && {
19803
 
         test "$cross_compiling" = yes ||
19804
 
         $as_test_x conftest$ac_exeext
19805
 
       }; then
 
19046
if ac_fn_f77_try_link "$LINENO"; then :
19806
19047
 
19807
19048
lt_aix_libpath_sed='
19808
19049
    /Import File Strings/,/^$/ {
19816
19057
if test -z "$aix_libpath"; then
19817
19058
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19818
19059
fi
19819
 
else
19820
 
  $as_echo "$as_me: failed program was:" >&5
19821
 
sed 's/^/| /' conftest.$ac_ext >&5
19822
 
 
19823
 
 
19824
19060
fi
19825
 
 
19826
 
rm -rf conftest.dSYM
19827
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19828
 
      conftest$ac_exeext conftest.$ac_ext
 
19061
rm -f core conftest.err conftest.$ac_objext \
 
19062
    conftest$ac_exeext conftest.$ac_ext
19829
19063
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19830
19064
 
19831
19065
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19837
19071
          archive_expsym_cmds_F77="\$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"
19838
19072
        else
19839
19073
         # Determine the default libpath from the value encoded in an empty executable.
19840
 
         cat >conftest.$ac_ext <<_ACEOF
 
19074
         cat > conftest.$ac_ext <<_ACEOF
19841
19075
      program main
19842
19076
 
19843
19077
      end
19844
19078
_ACEOF
19845
 
rm -f conftest.$ac_objext conftest$ac_exeext
19846
 
if { (ac_try="$ac_link"
19847
 
case "(($ac_try" in
19848
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849
 
  *) ac_try_echo=$ac_try;;
19850
 
esac
19851
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19852
 
$as_echo "$ac_try_echo") >&5
19853
 
  (eval "$ac_link") 2>conftest.er1
19854
 
  ac_status=$?
19855
 
  grep -v '^ *+' conftest.er1 >conftest.err
19856
 
  rm -f conftest.er1
19857
 
  cat conftest.err >&5
19858
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859
 
  (exit $ac_status); } && {
19860
 
         test -z "$ac_f77_werror_flag" ||
19861
 
         test ! -s conftest.err
19862
 
       } && test -s conftest$ac_exeext && {
19863
 
         test "$cross_compiling" = yes ||
19864
 
         $as_test_x conftest$ac_exeext
19865
 
       }; then
 
19079
if ac_fn_f77_try_link "$LINENO"; then :
19866
19080
 
19867
19081
lt_aix_libpath_sed='
19868
19082
    /Import File Strings/,/^$/ {
19876
19090
if test -z "$aix_libpath"; then
19877
19091
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19878
19092
fi
19879
 
else
19880
 
  $as_echo "$as_me: failed program was:" >&5
19881
 
sed 's/^/| /' conftest.$ac_ext >&5
19882
 
 
19883
 
 
19884
19093
fi
19885
 
 
19886
 
rm -rf conftest.dSYM
19887
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888
 
      conftest$ac_exeext conftest.$ac_ext
 
19094
rm -f core conftest.err conftest.$ac_objext \
 
19095
    conftest$ac_exeext conftest.$ac_ext
19889
19096
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19890
19097
 
19891
19098
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20317
19524
    esac
20318
19525
  fi
20319
19526
 
20320
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
19527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
20321
19528
$as_echo "$ld_shlibs_F77" >&6; }
20322
19529
test "$ld_shlibs_F77" = no && can_build_shared=no
20323
19530
 
20338
19545
      # Test whether the compiler implicitly links with -lc since on some
20339
19546
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20340
19547
      # to ld, don't add -lc before -lgcc.
20341
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
19548
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20342
19549
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20343
19550
      $rm conftest*
20344
19551
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20345
19552
 
20346
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19553
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20347
19554
  (eval $ac_compile) 2>&5
20348
19555
  ac_status=$?
20349
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350
 
  (exit $ac_status); } 2>conftest.err; then
 
19556
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19557
  test $ac_status = 0; } 2>conftest.err; then
20351
19558
        soname=conftest
20352
19559
        lib=conftest
20353
19560
        libobjs=conftest.$ac_objext
20361
19568
        libname=conftest
20362
19569
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20363
19570
        allow_undefined_flag_F77=
20364
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
19571
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20365
19572
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20366
19573
  ac_status=$?
20367
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368
 
  (exit $ac_status); }
 
19574
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
19575
  test $ac_status = 0; }
20369
19576
        then
20370
19577
          archive_cmds_need_lc_F77=no
20371
19578
        else
20376
19583
        cat conftest.err 1>&5
20377
19584
      fi
20378
19585
      $rm conftest*
20379
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
19586
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
20380
19587
$as_echo "$archive_cmds_need_lc_F77" >&6; }
20381
19588
      ;;
20382
19589
    esac
20384
19591
  ;;
20385
19592
esac
20386
19593
 
20387
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
19594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20388
19595
$as_echo_n "checking dynamic linker characteristics... " >&6; }
20389
19596
library_names_spec=
20390
19597
libname_spec='lib$name'
20934
20141
  dynamic_linker=no
20935
20142
  ;;
20936
20143
esac
20937
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
20144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20938
20145
$as_echo "$dynamic_linker" >&6; }
20939
20146
test "$dynamic_linker" = no && can_build_shared=no
20940
20147
 
20941
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
20148
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
20942
20149
  $as_echo_n "(cached) " >&6
20943
20150
else
20944
20151
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20945
20152
fi
20946
20153
 
20947
20154
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20948
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
20155
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
20949
20156
  $as_echo_n "(cached) " >&6
20950
20157
else
20951
20158
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20958
20165
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20959
20166
fi
20960
20167
 
20961
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
20168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20962
20169
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20963
20170
hardcode_action_F77=
20964
20171
if test -n "$hardcode_libdir_flag_spec_F77" || \
20983
20190
  # directories.
20984
20191
  hardcode_action_F77=unsupported
20985
20192
fi
20986
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
20193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
20987
20194
$as_echo "$hardcode_action_F77" >&6; }
20988
20195
 
20989
20196
if test "$hardcode_action_F77" = relink; then
21498
20705
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21499
20706
 
21500
20707
 
21501
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
20708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21502
20709
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
21503
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
20710
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
21504
20711
  $as_echo_n "(cached) " >&6
21505
20712
else
21506
20713
  lt_cv_prog_compiler_rtti_exceptions=no
21516
20723
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21517
20724
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21518
20725
   -e 's:$: $lt_compiler_flag:'`
21519
 
   (eval echo "\"\$as_me:21519: $lt_compile\"" >&5)
 
20726
   (eval echo "\"\$as_me:20726: $lt_compile\"" >&5)
21520
20727
   (eval "$lt_compile" 2>conftest.err)
21521
20728
   ac_status=$?
21522
20729
   cat conftest.err >&5
21523
 
   echo "$as_me:21523: \$? = $ac_status" >&5
 
20730
   echo "$as_me:20730: \$? = $ac_status" >&5
21524
20731
   if (exit $ac_status) && test -s "$ac_outfile"; then
21525
20732
     # The compiler can only warn and ignore the option if not recognized
21526
20733
     # So say no if there are warnings other than the usual output.
21533
20740
   $rm conftest*
21534
20741
 
21535
20742
fi
21536
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
20743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21537
20744
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
21538
20745
 
21539
20746
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21548
20755
lt_prog_compiler_pic_GCJ=
21549
20756
lt_prog_compiler_static_GCJ=
21550
20757
 
21551
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
20758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21552
20759
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21553
20760
 
21554
20761
  if test "$GCC" = yes; then
21780
20987
    esac
21781
20988
  fi
21782
20989
 
21783
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
20990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
21784
20991
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
21785
20992
 
21786
20993
#
21788
20995
#
21789
20996
if test -n "$lt_prog_compiler_pic_GCJ"; then
21790
20997
 
21791
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
20998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21792
20999
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
21793
 
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
21000
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
21794
21001
  $as_echo_n "(cached) " >&6
21795
21002
else
21796
21003
  lt_cv_prog_compiler_pic_works_GCJ=no
21806
21013
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21807
21014
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21808
21015
   -e 's:$: $lt_compiler_flag:'`
21809
 
   (eval echo "\"\$as_me:21809: $lt_compile\"" >&5)
 
21016
   (eval echo "\"\$as_me:21016: $lt_compile\"" >&5)
21810
21017
   (eval "$lt_compile" 2>conftest.err)
21811
21018
   ac_status=$?
21812
21019
   cat conftest.err >&5
21813
 
   echo "$as_me:21813: \$? = $ac_status" >&5
 
21020
   echo "$as_me:21020: \$? = $ac_status" >&5
21814
21021
   if (exit $ac_status) && test -s "$ac_outfile"; then
21815
21022
     # The compiler can only warn and ignore the option if not recognized
21816
21023
     # So say no if there are warnings other than the usual output.
21823
21030
   $rm conftest*
21824
21031
 
21825
21032
fi
21826
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
21033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
21827
21034
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
21828
21035
 
21829
21036
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
21851
21058
# Check to make sure the static flag actually works.
21852
21059
#
21853
21060
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
21854
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
21061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21855
21062
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21856
 
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
21063
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
21857
21064
  $as_echo_n "(cached) " >&6
21858
21065
else
21859
21066
  lt_cv_prog_compiler_static_works_GCJ=no
21879
21086
   LDFLAGS="$save_LDFLAGS"
21880
21087
 
21881
21088
fi
21882
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
21089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
21883
21090
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
21884
21091
 
21885
21092
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
21889
21096
fi
21890
21097
 
21891
21098
 
21892
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
21099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21893
21100
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21894
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
21101
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
21895
21102
  $as_echo_n "(cached) " >&6
21896
21103
else
21897
21104
  lt_cv_prog_compiler_c_o_GCJ=no
21910
21117
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21911
21118
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21912
21119
   -e 's:$: $lt_compiler_flag:'`
21913
 
   (eval echo "\"\$as_me:21913: $lt_compile\"" >&5)
 
21120
   (eval echo "\"\$as_me:21120: $lt_compile\"" >&5)
21914
21121
   (eval "$lt_compile" 2>out/conftest.err)
21915
21122
   ac_status=$?
21916
21123
   cat out/conftest.err >&5
21917
 
   echo "$as_me:21917: \$? = $ac_status" >&5
 
21124
   echo "$as_me:21124: \$? = $ac_status" >&5
21918
21125
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21919
21126
   then
21920
21127
     # The compiler can only warn and ignore the option if not recognized
21936
21143
   $rm conftest*
21937
21144
 
21938
21145
fi
21939
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
21146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21940
21147
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
21941
21148
 
21942
21149
 
21943
21150
hard_links="nottested"
21944
21151
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21945
21152
  # do not overwrite the value of need_locks provided by the user
21946
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
21153
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21947
21154
$as_echo_n "checking if we can lock with hard links... " >&6; }
21948
21155
  hard_links=yes
21949
21156
  $rm conftest*
21951
21158
  touch conftest.a
21952
21159
  ln conftest.a conftest.b 2>&5 || hard_links=no
21953
21160
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21954
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
21161
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21955
21162
$as_echo "$hard_links" >&6; }
21956
21163
  if test "$hard_links" = no; then
21957
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
21164
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21958
21165
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21959
21166
    need_locks=warn
21960
21167
  fi
21962
21169
  need_locks=no
21963
21170
fi
21964
21171
 
21965
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
21172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21966
21173
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21967
21174
 
21968
21175
  runpath_var=
22372
21579
        # -berok will link without error, but may produce a broken library.
22373
21580
        allow_undefined_flag_GCJ='-berok'
22374
21581
       # Determine the default libpath from the value encoded in an empty executable.
22375
 
       cat >conftest.$ac_ext <<_ACEOF
22376
 
/* confdefs.h.  */
22377
 
_ACEOF
22378
 
cat confdefs.h >>conftest.$ac_ext
22379
 
cat >>conftest.$ac_ext <<_ACEOF
 
21582
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380
21583
/* end confdefs.h.  */
22381
21584
 
22382
21585
int
22387
21590
  return 0;
22388
21591
}
22389
21592
_ACEOF
22390
 
rm -f conftest.$ac_objext conftest$ac_exeext
22391
 
if { (ac_try="$ac_link"
22392
 
case "(($ac_try" in
22393
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394
 
  *) ac_try_echo=$ac_try;;
22395
 
esac
22396
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22397
 
$as_echo "$ac_try_echo") >&5
22398
 
  (eval "$ac_link") 2>conftest.er1
22399
 
  ac_status=$?
22400
 
  grep -v '^ *+' conftest.er1 >conftest.err
22401
 
  rm -f conftest.er1
22402
 
  cat conftest.err >&5
22403
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404
 
  (exit $ac_status); } && {
22405
 
         test -z "$ac_c_werror_flag" ||
22406
 
         test ! -s conftest.err
22407
 
       } && test -s conftest$ac_exeext && {
22408
 
         test "$cross_compiling" = yes ||
22409
 
         $as_test_x conftest$ac_exeext
22410
 
       }; then
 
21593
if ac_fn_c_try_link "$LINENO"; then :
22411
21594
 
22412
21595
lt_aix_libpath_sed='
22413
21596
    /Import File Strings/,/^$/ {
22421
21604
if test -z "$aix_libpath"; then
22422
21605
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22423
21606
fi
22424
 
else
22425
 
  $as_echo "$as_me: failed program was:" >&5
22426
 
sed 's/^/| /' conftest.$ac_ext >&5
22427
 
 
22428
 
 
22429
21607
fi
22430
 
 
22431
 
rm -rf conftest.dSYM
22432
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22433
 
      conftest$ac_exeext conftest.$ac_ext
 
21608
rm -f core conftest.err conftest.$ac_objext \
 
21609
    conftest$ac_exeext conftest.$ac_ext
22434
21610
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22435
21611
 
22436
21612
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22442
21618
          archive_expsym_cmds_GCJ="\$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"
22443
21619
        else
22444
21620
         # Determine the default libpath from the value encoded in an empty executable.
22445
 
         cat >conftest.$ac_ext <<_ACEOF
22446
 
/* confdefs.h.  */
22447
 
_ACEOF
22448
 
cat confdefs.h >>conftest.$ac_ext
22449
 
cat >>conftest.$ac_ext <<_ACEOF
 
21621
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22450
21622
/* end confdefs.h.  */
22451
21623
 
22452
21624
int
22457
21629
  return 0;
22458
21630
}
22459
21631
_ACEOF
22460
 
rm -f conftest.$ac_objext conftest$ac_exeext
22461
 
if { (ac_try="$ac_link"
22462
 
case "(($ac_try" in
22463
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464
 
  *) ac_try_echo=$ac_try;;
22465
 
esac
22466
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22467
 
$as_echo "$ac_try_echo") >&5
22468
 
  (eval "$ac_link") 2>conftest.er1
22469
 
  ac_status=$?
22470
 
  grep -v '^ *+' conftest.er1 >conftest.err
22471
 
  rm -f conftest.er1
22472
 
  cat conftest.err >&5
22473
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474
 
  (exit $ac_status); } && {
22475
 
         test -z "$ac_c_werror_flag" ||
22476
 
         test ! -s conftest.err
22477
 
       } && test -s conftest$ac_exeext && {
22478
 
         test "$cross_compiling" = yes ||
22479
 
         $as_test_x conftest$ac_exeext
22480
 
       }; then
 
21632
if ac_fn_c_try_link "$LINENO"; then :
22481
21633
 
22482
21634
lt_aix_libpath_sed='
22483
21635
    /Import File Strings/,/^$/ {
22491
21643
if test -z "$aix_libpath"; then
22492
21644
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22493
21645
fi
22494
 
else
22495
 
  $as_echo "$as_me: failed program was:" >&5
22496
 
sed 's/^/| /' conftest.$ac_ext >&5
22497
 
 
22498
 
 
22499
21646
fi
22500
 
 
22501
 
rm -rf conftest.dSYM
22502
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22503
 
      conftest$ac_exeext conftest.$ac_ext
 
21647
rm -f core conftest.err conftest.$ac_objext \
 
21648
    conftest$ac_exeext conftest.$ac_ext
22504
21649
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22505
21650
 
22506
21651
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22932
22077
    esac
22933
22078
  fi
22934
22079
 
22935
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
22080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
22936
22081
$as_echo "$ld_shlibs_GCJ" >&6; }
22937
22082
test "$ld_shlibs_GCJ" = no && can_build_shared=no
22938
22083
 
22953
22098
      # Test whether the compiler implicitly links with -lc since on some
22954
22099
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22955
22100
      # to ld, don't add -lc before -lgcc.
22956
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
22101
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22957
22102
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22958
22103
      $rm conftest*
22959
22104
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22960
22105
 
22961
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22106
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22962
22107
  (eval $ac_compile) 2>&5
22963
22108
  ac_status=$?
22964
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965
 
  (exit $ac_status); } 2>conftest.err; then
 
22109
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
22110
  test $ac_status = 0; } 2>conftest.err; then
22966
22111
        soname=conftest
22967
22112
        lib=conftest
22968
22113
        libobjs=conftest.$ac_objext
22976
22121
        libname=conftest
22977
22122
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22978
22123
        allow_undefined_flag_GCJ=
22979
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
22124
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22980
22125
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22981
22126
  ac_status=$?
22982
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983
 
  (exit $ac_status); }
 
22127
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
22128
  test $ac_status = 0; }
22984
22129
        then
22985
22130
          archive_cmds_need_lc_GCJ=no
22986
22131
        else
22991
22136
        cat conftest.err 1>&5
22992
22137
      fi
22993
22138
      $rm conftest*
22994
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
22139
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
22995
22140
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
22996
22141
      ;;
22997
22142
    esac
22999
22144
  ;;
23000
22145
esac
23001
22146
 
23002
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
22147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
23003
22148
$as_echo_n "checking dynamic linker characteristics... " >&6; }
23004
22149
library_names_spec=
23005
22150
libname_spec='lib$name'
23549
22694
  dynamic_linker=no
23550
22695
  ;;
23551
22696
esac
23552
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
22697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23553
22698
$as_echo "$dynamic_linker" >&6; }
23554
22699
test "$dynamic_linker" = no && can_build_shared=no
23555
22700
 
23556
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
22701
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
23557
22702
  $as_echo_n "(cached) " >&6
23558
22703
else
23559
22704
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
23560
22705
fi
23561
22706
 
23562
22707
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23563
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
22708
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
23564
22709
  $as_echo_n "(cached) " >&6
23565
22710
else
23566
22711
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
23573
22718
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23574
22719
fi
23575
22720
 
23576
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
22721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23577
22722
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23578
22723
hardcode_action_GCJ=
23579
22724
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23598
22743
  # directories.
23599
22744
  hardcode_action_GCJ=unsupported
23600
22745
fi
23601
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
22746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
23602
22747
$as_echo "$hardcode_action_GCJ" >&6; }
23603
22748
 
23604
22749
if test "$hardcode_action_GCJ" = relink; then
24522
23667
        ;;
24523
23668
 
24524
23669
      *)
24525
 
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24526
 
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24527
 
   { (exit 1); exit 1; }; }
 
23670
        as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
24528
23671
        ;;
24529
23672
      esac
24530
23673
 
24542
23685
    chmod +x "$ofile"
24543
23686
  else
24544
23687
    rm -f "${ofile}T"
24545
 
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24546
 
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24547
 
   { (exit 1); exit 1; }; }
 
23688
    as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
24548
23689
  fi
24549
23690
fi
24550
23691
 
24588
23729
 
24589
23730
 
24590
23731
# Check whether --with-installbuilddir was given.
24591
 
if test "${with_installbuilddir+set}" = set; then
 
23732
if test "${with_installbuilddir+set}" = set; then :
24592
23733
  withval=$with_installbuilddir;  installbuilddir=$withval
24593
23734
else
24594
23735
   installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
24598
23739
 
24599
23740
 
24600
23741
# Check whether --with-libtool was given.
24601
 
if test "${with_libtool+set}" = set; then
 
23742
if test "${with_libtool+set}" = set; then :
24602
23743
  withval=$with_libtool;  use_libtool=$withval
24603
23744
else
24604
23745
   use_libtool="yes"
24671
23812
esac
24672
23813
 
24673
23814
# Check whether --enable-debug was given.
24674
 
if test "${enable_debug+set}" = set; then
 
23815
if test "${enable_debug+set}" = set; then :
24675
23816
  enableval=$enable_debug;
24676
23817
  if test "x$CFLAGS" = "x"; then
24677
23818
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
24742
23883
fi
24743
23884
 
24744
23885
# Check whether --enable-maintainer-mode was given.
24745
 
if test "${enable_maintainer_mode+set}" = set; then
 
23886
if test "${enable_maintainer_mode+set}" = set; then :
24746
23887
  enableval=$enable_maintainer_mode;
24747
23888
  if test "x$CFLAGS" = "x"; then
24748
23889
    test "x$silent" != "xyes" && echo "  setting CFLAGS to \"-g\""
24813
23954
fi
24814
23955
 
24815
23956
# Check whether --enable-profile was given.
24816
 
if test "${enable_profile+set}" = set; then
 
23957
if test "${enable_profile+set}" = set; then :
24817
23958
  enableval=$enable_profile; if test "$GCC" = "yes"; then
24818
23959
 
24819
23960
  if test "x$CFLAGS" = "x"; then
24925
24066
fi
24926
24067
 
24927
24068
# Check whether --enable-pool-debug was given.
24928
 
if test "${enable_pool_debug+set}" = set; then
 
24069
if test "${enable_pool_debug+set}" = set; then :
24929
24070
  enableval=$enable_pool_debug;  if test -z "$enableval"; then
24930
24071
 
24931
24072
  if test "x$CPPFLAGS" = "x"; then
25012
24153
 
25013
24154
if test "$host" = "i586-pc-beos"; then
25014
24155
  # Check whether --enable-malloc-debug was given.
25015
 
if test "${enable_malloc_debug+set}" = set; then
 
24156
if test "${enable_malloc_debug+set}" = set; then :
25016
24157
  enableval=$enable_malloc_debug;
25017
24158
  if test "x$CFLAGS" = "x-O2"; then
25018
24159
    test "x$silent" != "xyes" && echo "  nulling CFLAGS"
25130
24271
        ;;
25131
24272
esac
25132
24273
 
25133
 
{ $as_echo "$as_me:$LINENO: checking whether the compiler provides atomic builtins" >&5
 
24274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
25134
24275
$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
25135
 
if test "${ap_cv_atomic_builtins+set}" = set; then
 
24276
if test "${ap_cv_atomic_builtins+set}" = set; then :
25136
24277
  $as_echo_n "(cached) " >&6
25137
24278
else
25138
 
  if test "$cross_compiling" = yes; then
 
24279
  if test "$cross_compiling" = yes; then :
25139
24280
  ap_cv_atomic_builtins=no
25140
24281
else
25141
 
  cat >conftest.$ac_ext <<_ACEOF
25142
 
/* confdefs.h.  */
25143
 
_ACEOF
25144
 
cat confdefs.h >>conftest.$ac_ext
25145
 
cat >>conftest.$ac_ext <<_ACEOF
 
24282
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25146
24283
/* end confdefs.h.  */
25147
24284
 
25148
24285
int main()
25181
24318
    return 0;
25182
24319
}
25183
24320
_ACEOF
25184
 
rm -f conftest$ac_exeext
25185
 
if { (ac_try="$ac_link"
25186
 
case "(($ac_try" in
25187
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188
 
  *) ac_try_echo=$ac_try;;
25189
 
esac
25190
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25191
 
$as_echo "$ac_try_echo") >&5
25192
 
  (eval "$ac_link") 2>&5
25193
 
  ac_status=$?
25194
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25196
 
  { (case "(($ac_try" in
25197
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198
 
  *) ac_try_echo=$ac_try;;
25199
 
esac
25200
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25201
 
$as_echo "$ac_try_echo") >&5
25202
 
  (eval "$ac_try") 2>&5
25203
 
  ac_status=$?
25204
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205
 
  (exit $ac_status); }; }; then
 
24321
if ac_fn_c_try_run "$LINENO"; then :
25206
24322
  ap_cv_atomic_builtins=yes
25207
24323
else
25208
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
25209
 
$as_echo "$as_me: failed program was:" >&5
25210
 
sed 's/^/| /' conftest.$ac_ext >&5
25211
 
 
25212
 
( exit $ac_status )
25213
 
ap_cv_atomic_builtins=no
25214
 
fi
25215
 
rm -rf conftest.dSYM
25216
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25217
 
fi
25218
 
 
25219
 
 
25220
 
fi
25221
 
{ $as_echo "$as_me:$LINENO: result: $ap_cv_atomic_builtins" >&5
 
24324
  ap_cv_atomic_builtins=no
 
24325
fi
 
24326
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
24327
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
24328
fi
 
24329
 
 
24330
fi
 
24331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
25222
24332
$as_echo "$ap_cv_atomic_builtins" >&6; }
25223
24333
 
25224
24334
if test "$ap_cv_atomic_builtins" = "yes"; then
25225
24335
 
25226
 
cat >>confdefs.h <<\_ACEOF
25227
 
#define HAVE_ATOMIC_BUILTINS 1
25228
 
_ACEOF
 
24336
$as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
25229
24337
 
25230
24338
fi
25231
24339
 
25233
24341
    powerpc-405-*)
25234
24342
        # The IBM ppc405cr processor has a bugged stwcx instruction.
25235
24343
 
25236
 
cat >>confdefs.h <<\_ACEOF
25237
 
#define PPC405_ERRATA 1
25238
 
_ACEOF
 
24344
$as_echo "#define PPC405_ERRATA 1" >>confdefs.h
25239
24345
 
25240
24346
        ;;
25241
24347
    *)
25253
24359
EOF
25254
24360
  MKDEP="true"
25255
24361
  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
25256
 
    { $as_echo "$as_me:$LINENO: checking if $i can create proper make dependencies" >&5
 
24362
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
25257
24363
$as_echo_n "checking if $i can create proper make dependencies... " >&6; }
25258
24364
    if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
25259
24365
      MKDEP=$i
25260
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
 
24366
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25261
24367
$as_echo "yes" >&6; }
25262
24368
      break;
25263
24369
    fi
25264
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
24370
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25265
24371
$as_echo "no" >&6; }
25266
24372
  done
25267
24373
  rm -f conftest.c
25346
24452
    done
25347
24453
  fi
25348
24454
 
25349
 
 
25350
 
{ $as_echo "$as_me:$LINENO: checking for random in -lbsd" >&5
 
24455
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
25351
24456
$as_echo_n "checking for random in -lbsd... " >&6; }
25352
 
if test "${ac_cv_lib_bsd_random+set}" = set; then
 
24457
if test "${ac_cv_lib_bsd_random+set}" = set; then :
25353
24458
  $as_echo_n "(cached) " >&6
25354
24459
else
25355
24460
  ac_check_lib_save_LIBS=$LIBS
25356
24461
LIBS="-lbsd  $LIBS"
25357
 
cat >conftest.$ac_ext <<_ACEOF
25358
 
/* confdefs.h.  */
25359
 
_ACEOF
25360
 
cat confdefs.h >>conftest.$ac_ext
25361
 
cat >>conftest.$ac_ext <<_ACEOF
 
24462
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25362
24463
/* end confdefs.h.  */
25363
24464
 
25364
24465
/* Override any GCC internal prototype to avoid an error.
25376
24477
  return 0;
25377
24478
}
25378
24479
_ACEOF
25379
 
rm -f conftest.$ac_objext conftest$ac_exeext
25380
 
if { (ac_try="$ac_link"
25381
 
case "(($ac_try" in
25382
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383
 
  *) ac_try_echo=$ac_try;;
25384
 
esac
25385
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25386
 
$as_echo "$ac_try_echo") >&5
25387
 
  (eval "$ac_link") 2>conftest.er1
25388
 
  ac_status=$?
25389
 
  grep -v '^ *+' conftest.er1 >conftest.err
25390
 
  rm -f conftest.er1
25391
 
  cat conftest.err >&5
25392
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393
 
  (exit $ac_status); } && {
25394
 
         test -z "$ac_c_werror_flag" ||
25395
 
         test ! -s conftest.err
25396
 
       } && test -s conftest$ac_exeext && {
25397
 
         test "$cross_compiling" = yes ||
25398
 
         $as_test_x conftest$ac_exeext
25399
 
       }; then
 
24480
if ac_fn_c_try_link "$LINENO"; then :
25400
24481
  ac_cv_lib_bsd_random=yes
25401
24482
else
25402
 
  $as_echo "$as_me: failed program was:" >&5
25403
 
sed 's/^/| /' conftest.$ac_ext >&5
25404
 
 
25405
 
        ac_cv_lib_bsd_random=no
 
24483
  ac_cv_lib_bsd_random=no
25406
24484
fi
25407
 
 
25408
 
rm -rf conftest.dSYM
25409
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25410
 
      conftest$ac_exeext conftest.$ac_ext
 
24485
rm -f core conftest.err conftest.$ac_objext \
 
24486
    conftest$ac_exeext conftest.$ac_ext
25411
24487
LIBS=$ac_check_lib_save_LIBS
25412
24488
fi
25413
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_random" >&5
 
24489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
25414
24490
$as_echo "$ac_cv_lib_bsd_random" >&6; }
25415
 
if test "x$ac_cv_lib_bsd_random" = x""yes; then
 
24491
if test "x$ac_cv_lib_bsd_random" = x""yes; then :
25416
24492
  cat >>confdefs.h <<_ACEOF
25417
24493
#define HAVE_LIBBSD 1
25418
24494
_ACEOF
25454
24530
       enable_threads="system_threads"
25455
24531
       native_mmap_emul="1"
25456
24532
 
25457
 
  { $as_echo "$as_me:$LINENO: checking for BONE_VERSION in sys/socket.h" >&5
 
24533
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
25458
24534
$as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
25459
 
if test "${ac_cv_define_BONE_VERSION+set}" = set; then
 
24535
if test "${ac_cv_define_BONE_VERSION+set}" = set; then :
25460
24536
  $as_echo_n "(cached) " >&6
25461
24537
else
25462
24538
 
25463
 
    cat >conftest.$ac_ext <<_ACEOF
25464
 
/* confdefs.h.  */
25465
 
_ACEOF
25466
 
cat confdefs.h >>conftest.$ac_ext
25467
 
cat >>conftest.$ac_ext <<_ACEOF
 
24539
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25468
24540
/* end confdefs.h.  */
25469
24541
 
25470
24542
#include <sys/socket.h>
25474
24546
 
25475
24547
_ACEOF
25476
24548
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25477
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
24549
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25478
24550
  ac_cv_define_BONE_VERSION=yes
25479
24551
else
25480
24552
  ac_cv_define_BONE_VERSION=no
25483
24555
 
25484
24556
 
25485
24557
fi
25486
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_BONE_VERSION" >&5
 
24558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
25487
24559
$as_echo "$ac_cv_define_BONE_VERSION" >&6; }
25488
24560
  if test "$ac_cv_define_BONE_VERSION" = "yes"; then
25489
24561
 
25490
 
cat >>confdefs.h <<\_ACEOF
25491
 
#define HAVE_BONE_VERSION 1
25492
 
_ACEOF
 
24562
$as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
25493
24563
 
25494
24564
  fi
25495
24565
 
25566
24636
 
25567
24637
# Check whether LFS has explicitly been disabled
25568
24638
# Check whether --enable-lfs was given.
25569
 
if test "${enable_lfs+set}" = set; then
 
24639
if test "${enable_lfs+set}" = set; then :
25570
24640
  enableval=$enable_lfs; apr_lfs_choice=$enableval
25571
24641
else
25572
24642
  apr_lfs_choice=yes
25575
24645
 
25576
24646
if test "$apr_lfs_choice" = "yes"; then
25577
24647
   # Check whether the transitional LFS API is sufficient
25578
 
   { $as_echo "$as_me:$LINENO: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
 
24648
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
25579
24649
$as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
25580
 
if test "${apr_cv_use_lfs64+set}" = set; then
 
24650
if test "${apr_cv_use_lfs64+set}" = set; then :
25581
24651
  $as_echo_n "(cached) " >&6
25582
24652
else
25583
24653
 
25584
24654
   apr_save_CPPFLAGS=$CPPFLAGS
25585
24655
   CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
25586
 
   if test "$cross_compiling" = yes; then
 
24656
   if test "$cross_compiling" = yes; then :
25587
24657
  apr_cv_use_lfs64=no
25588
24658
else
25589
 
  cat >conftest.$ac_ext <<_ACEOF
25590
 
/* confdefs.h.  */
25591
 
_ACEOF
25592
 
cat confdefs.h >>conftest.$ac_ext
25593
 
cat >>conftest.$ac_ext <<_ACEOF
 
24659
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25594
24660
/* end confdefs.h.  */
25595
24661
 
25596
24662
#include <sys/types.h>
25627
24693
    exit(ret);
25628
24694
}
25629
24695
_ACEOF
25630
 
rm -f conftest$ac_exeext
25631
 
if { (ac_try="$ac_link"
25632
 
case "(($ac_try" in
25633
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634
 
  *) ac_try_echo=$ac_try;;
25635
 
esac
25636
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25637
 
$as_echo "$ac_try_echo") >&5
25638
 
  (eval "$ac_link") 2>&5
25639
 
  ac_status=$?
25640
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25642
 
  { (case "(($ac_try" in
25643
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644
 
  *) ac_try_echo=$ac_try;;
25645
 
esac
25646
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25647
 
$as_echo "$ac_try_echo") >&5
25648
 
  (eval "$ac_try") 2>&5
25649
 
  ac_status=$?
25650
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651
 
  (exit $ac_status); }; }; then
 
24696
if ac_fn_c_try_run "$LINENO"; then :
25652
24697
  apr_cv_use_lfs64=yes
25653
24698
else
25654
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
25655
 
$as_echo "$as_me: failed program was:" >&5
25656
 
sed 's/^/| /' conftest.$ac_ext >&5
25657
 
 
25658
 
( exit $ac_status )
25659
 
apr_cv_use_lfs64=no
25660
 
fi
25661
 
rm -rf conftest.dSYM
25662
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25663
 
fi
25664
 
 
 
24699
  apr_cv_use_lfs64=no
 
24700
fi
 
24701
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
24702
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
24703
fi
25665
24704
 
25666
24705
   CPPFLAGS=$apr_save_CPPFLAGS
25667
24706
fi
25668
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_use_lfs64" >&5
 
24707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
25669
24708
$as_echo "$apr_cv_use_lfs64" >&6; }
25670
24709
   if test "$apr_cv_use_lfs64" = "yes"; then
25671
24710
 
25693
24732
fi
25694
24733
 
25695
24734
# Check whether --enable-nonportable-atomics was given.
25696
 
if test "${enable_nonportable_atomics+set}" = set; then
 
24735
if test "${enable_nonportable_atomics+set}" = set; then :
25697
24736
  enableval=$enable_nonportable_atomics; if test $enableval = yes; then
25698
24737
   force_generic_atomics=no
25699
24738
 else
25711
24750
 
25712
24751
if test $force_generic_atomics = yes; then
25713
24752
 
25714
 
cat >>confdefs.h <<\_ACEOF
25715
 
#define USE_ATOMICS_GENERIC 1
25716
 
_ACEOF
 
24753
$as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
25717
24754
 
25718
24755
fi
25719
24756
 
25747
24784
case $host in
25748
24785
   *mingw*)
25749
24786
 
25750
 
 
25751
 
{ $as_echo "$as_me:$LINENO: checking for getpid in -lmsvcrt" >&5
 
24787
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lmsvcrt" >&5
25752
24788
$as_echo_n "checking for getpid in -lmsvcrt... " >&6; }
25753
 
if test "${ac_cv_lib_msvcrt_getpid+set}" = set; then
 
24789
if test "${ac_cv_lib_msvcrt_getpid+set}" = set; then :
25754
24790
  $as_echo_n "(cached) " >&6
25755
24791
else
25756
24792
  ac_check_lib_save_LIBS=$LIBS
25757
24793
LIBS="-lmsvcrt  $LIBS"
25758
 
cat >conftest.$ac_ext <<_ACEOF
25759
 
/* confdefs.h.  */
25760
 
_ACEOF
25761
 
cat confdefs.h >>conftest.$ac_ext
25762
 
cat >>conftest.$ac_ext <<_ACEOF
 
24794
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763
24795
/* end confdefs.h.  */
25764
24796
 
25765
24797
/* Override any GCC internal prototype to avoid an error.
25777
24809
  return 0;
25778
24810
}
25779
24811
_ACEOF
25780
 
rm -f conftest.$ac_objext conftest$ac_exeext
25781
 
if { (ac_try="$ac_link"
25782
 
case "(($ac_try" in
25783
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784
 
  *) ac_try_echo=$ac_try;;
25785
 
esac
25786
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25787
 
$as_echo "$ac_try_echo") >&5
25788
 
  (eval "$ac_link") 2>conftest.er1
25789
 
  ac_status=$?
25790
 
  grep -v '^ *+' conftest.er1 >conftest.err
25791
 
  rm -f conftest.er1
25792
 
  cat conftest.err >&5
25793
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794
 
  (exit $ac_status); } && {
25795
 
         test -z "$ac_c_werror_flag" ||
25796
 
         test ! -s conftest.err
25797
 
       } && test -s conftest$ac_exeext && {
25798
 
         test "$cross_compiling" = yes ||
25799
 
         $as_test_x conftest$ac_exeext
25800
 
       }; then
 
24812
if ac_fn_c_try_link "$LINENO"; then :
25801
24813
  ac_cv_lib_msvcrt_getpid=yes
25802
24814
else
25803
 
  $as_echo "$as_me: failed program was:" >&5
25804
 
sed 's/^/| /' conftest.$ac_ext >&5
25805
 
 
25806
 
        ac_cv_lib_msvcrt_getpid=no
 
24815
  ac_cv_lib_msvcrt_getpid=no
25807
24816
fi
25808
 
 
25809
 
rm -rf conftest.dSYM
25810
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25811
 
      conftest$ac_exeext conftest.$ac_ext
 
24817
rm -f core conftest.err conftest.$ac_objext \
 
24818
    conftest$ac_exeext conftest.$ac_ext
25812
24819
LIBS=$ac_check_lib_save_LIBS
25813
24820
fi
25814
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_getpid" >&5
 
24821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcrt_getpid" >&5
25815
24822
$as_echo "$ac_cv_lib_msvcrt_getpid" >&6; }
25816
 
if test "x$ac_cv_lib_msvcrt_getpid" = x""yes; then
 
24823
if test "x$ac_cv_lib_msvcrt_getpid" = x""yes; then :
25817
24824
  cat >>confdefs.h <<_ACEOF
25818
24825
#define HAVE_LIBMSVCRT 1
25819
24826
_ACEOF
25827
24834
 
25828
24835
 
25829
24836
 
25830
 
{ $as_echo "$as_me:$LINENO: checking for SetErrorMode@4 in kernel32" >&5
 
24837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SetErrorMode@4 in kernel32" >&5
25831
24838
$as_echo_n "checking for SetErrorMode@4 in kernel32... " >&6; }
25832
 
if test "${ac_cv_lib_kernel32_SetErrorMode+set}" = set; then
 
24839
if test "${ac_cv_lib_kernel32_SetErrorMode+set}" = set; then :
25833
24840
  $as_echo_n "(cached) " >&6
25834
24841
else
25835
24842
 
25837
24844
ac_func_search_save_LIBS=$LIBS
25838
24845
LIBS="$LIBS -lkernel32"
25839
24846
 
25840
 
cat >conftest.$ac_ext <<_ACEOF
25841
 
/* confdefs.h.  */
25842
 
_ACEOF
25843
 
cat confdefs.h >>conftest.$ac_ext
25844
 
cat >>conftest.$ac_ext <<_ACEOF
 
24847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25845
24848
/* end confdefs.h.  */
25846
24849
 
25847
24850
#pragma pack(1)
25862
24865
  return 0;
25863
24866
}
25864
24867
_ACEOF
25865
 
rm -f conftest.$ac_objext conftest$ac_exeext
25866
 
if { (ac_try="$ac_link"
25867
 
case "(($ac_try" in
25868
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869
 
  *) ac_try_echo=$ac_try;;
25870
 
esac
25871
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25872
 
$as_echo "$ac_try_echo") >&5
25873
 
  (eval "$ac_link") 2>conftest.er1
25874
 
  ac_status=$?
25875
 
  grep -v '^ *+' conftest.er1 >conftest.err
25876
 
  rm -f conftest.er1
25877
 
  cat conftest.err >&5
25878
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879
 
  (exit $ac_status); } && {
25880
 
         test -z "$ac_c_werror_flag" ||
25881
 
         test ! -s conftest.err
25882
 
       } && test -s conftest$ac_exeext && {
25883
 
         test "$cross_compiling" = yes ||
25884
 
         $as_test_x conftest$ac_exeext
25885
 
       }; then
 
24868
if ac_fn_c_try_link "$LINENO"; then :
25886
24869
  ac_cv_lib_kernel32_SetErrorMode=yes
25887
24870
else
25888
 
  $as_echo "$as_me: failed program was:" >&5
25889
 
sed 's/^/| /' conftest.$ac_ext >&5
25890
 
 
25891
 
        ac_cv_lib_kernel32_SetErrorMode=no
 
24871
  ac_cv_lib_kernel32_SetErrorMode=no
25892
24872
fi
25893
 
 
25894
 
rm -rf conftest.dSYM
25895
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25896
 
      conftest$ac_exeext conftest.$ac_ext
 
24873
rm -f core conftest.err conftest.$ac_objext \
 
24874
    conftest$ac_exeext conftest.$ac_ext
25897
24875
LIBS=$ac_func_search_save_LIBS
25898
24876
 
25899
24877
fi
25900
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kernel32_SetErrorMode" >&5
 
24878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_SetErrorMode" >&5
25901
24879
$as_echo "$ac_cv_lib_kernel32_SetErrorMode" >&6; }
25902
 
if test $ac_cv_lib_kernel32_SetErrorMode = yes; then
 
24880
if test $ac_cv_lib_kernel32_SetErrorMode = yes; then :
25903
24881
 
25904
24882
cat >>confdefs.h <<_ACEOF
25905
24883
#define HAVE_LIBKERNEL32 /**/
25913
24891
 
25914
24892
 
25915
24893
 
25916
 
 
25917
 
{ $as_echo "$as_me:$LINENO: checking for GetSecurityInfo@32 in advapi32" >&5
 
24894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GetSecurityInfo@32 in advapi32" >&5
25918
24895
$as_echo_n "checking for GetSecurityInfo@32 in advapi32... " >&6; }
25919
 
if test "${ac_cv_lib_advapi32_GetSecurityInfo+set}" = set; then
 
24896
if test "${ac_cv_lib_advapi32_GetSecurityInfo+set}" = set; then :
25920
24897
  $as_echo_n "(cached) " >&6
25921
24898
else
25922
24899
 
25924
24901
ac_func_search_save_LIBS=$LIBS
25925
24902
LIBS="$LIBS -ladvapi32"
25926
24903
 
25927
 
cat >conftest.$ac_ext <<_ACEOF
25928
 
/* confdefs.h.  */
25929
 
_ACEOF
25930
 
cat confdefs.h >>conftest.$ac_ext
25931
 
cat >>conftest.$ac_ext <<_ACEOF
 
24904
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25932
24905
/* end confdefs.h.  */
25933
24906
 
25934
24907
#pragma pack(1)
25977
24950
  return 0;
25978
24951
}
25979
24952
_ACEOF
25980
 
rm -f conftest.$ac_objext conftest$ac_exeext
25981
 
if { (ac_try="$ac_link"
25982
 
case "(($ac_try" in
25983
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25984
 
  *) ac_try_echo=$ac_try;;
25985
 
esac
25986
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25987
 
$as_echo "$ac_try_echo") >&5
25988
 
  (eval "$ac_link") 2>conftest.er1
25989
 
  ac_status=$?
25990
 
  grep -v '^ *+' conftest.er1 >conftest.err
25991
 
  rm -f conftest.er1
25992
 
  cat conftest.err >&5
25993
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994
 
  (exit $ac_status); } && {
25995
 
         test -z "$ac_c_werror_flag" ||
25996
 
         test ! -s conftest.err
25997
 
       } && test -s conftest$ac_exeext && {
25998
 
         test "$cross_compiling" = yes ||
25999
 
         $as_test_x conftest$ac_exeext
26000
 
       }; then
 
24953
if ac_fn_c_try_link "$LINENO"; then :
26001
24954
  ac_cv_lib_advapi32_GetSecurityInfo=yes
26002
24955
else
26003
 
  $as_echo "$as_me: failed program was:" >&5
26004
 
sed 's/^/| /' conftest.$ac_ext >&5
26005
 
 
26006
 
        ac_cv_lib_advapi32_GetSecurityInfo=no
 
24956
  ac_cv_lib_advapi32_GetSecurityInfo=no
26007
24957
fi
26008
 
 
26009
 
rm -rf conftest.dSYM
26010
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26011
 
      conftest$ac_exeext conftest.$ac_ext
 
24958
rm -f core conftest.err conftest.$ac_objext \
 
24959
    conftest$ac_exeext conftest.$ac_ext
26012
24960
LIBS=$ac_func_search_save_LIBS
26013
24961
 
26014
24962
fi
26015
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_GetSecurityInfo" >&5
 
24963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_GetSecurityInfo" >&5
26016
24964
$as_echo "$ac_cv_lib_advapi32_GetSecurityInfo" >&6; }
26017
 
if test $ac_cv_lib_advapi32_GetSecurityInfo = yes; then
 
24965
if test $ac_cv_lib_advapi32_GetSecurityInfo = yes; then :
26018
24966
 
26019
24967
cat >>confdefs.h <<_ACEOF
26020
24968
#define HAVE_LIBADVAPI32 /**/
26028
24976
 
26029
24977
 
26030
24978
 
26031
 
 
26032
 
{ $as_echo "$as_me:$LINENO: checking for gethostbyname@4 in ws2_32" >&5
 
24979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname@4 in ws2_32" >&5
26033
24980
$as_echo_n "checking for gethostbyname@4 in ws2_32... " >&6; }
26034
 
if test "${ac_cv_lib_ws2_32_gethostbyname+set}" = set; then
 
24981
if test "${ac_cv_lib_ws2_32_gethostbyname+set}" = set; then :
26035
24982
  $as_echo_n "(cached) " >&6
26036
24983
else
26037
24984
 
26039
24986
ac_func_search_save_LIBS=$LIBS
26040
24987
LIBS="$LIBS -lws2_32"
26041
24988
 
26042
 
cat >conftest.$ac_ext <<_ACEOF
26043
 
/* confdefs.h.  */
26044
 
_ACEOF
26045
 
cat confdefs.h >>conftest.$ac_ext
26046
 
cat >>conftest.$ac_ext <<_ACEOF
 
24989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26047
24990
/* end confdefs.h.  */
26048
24991
 
26049
24992
#pragma pack(1)
26064
25007
  return 0;
26065
25008
}
26066
25009
_ACEOF
26067
 
rm -f conftest.$ac_objext conftest$ac_exeext
26068
 
if { (ac_try="$ac_link"
26069
 
case "(($ac_try" in
26070
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071
 
  *) ac_try_echo=$ac_try;;
26072
 
esac
26073
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26074
 
$as_echo "$ac_try_echo") >&5
26075
 
  (eval "$ac_link") 2>conftest.er1
26076
 
  ac_status=$?
26077
 
  grep -v '^ *+' conftest.er1 >conftest.err
26078
 
  rm -f conftest.er1
26079
 
  cat conftest.err >&5
26080
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081
 
  (exit $ac_status); } && {
26082
 
         test -z "$ac_c_werror_flag" ||
26083
 
         test ! -s conftest.err
26084
 
       } && test -s conftest$ac_exeext && {
26085
 
         test "$cross_compiling" = yes ||
26086
 
         $as_test_x conftest$ac_exeext
26087
 
       }; then
 
25010
if ac_fn_c_try_link "$LINENO"; then :
26088
25011
  ac_cv_lib_ws2_32_gethostbyname=yes
26089
25012
else
26090
 
  $as_echo "$as_me: failed program was:" >&5
26091
 
sed 's/^/| /' conftest.$ac_ext >&5
26092
 
 
26093
 
        ac_cv_lib_ws2_32_gethostbyname=no
 
25013
  ac_cv_lib_ws2_32_gethostbyname=no
26094
25014
fi
26095
 
 
26096
 
rm -rf conftest.dSYM
26097
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26098
 
      conftest$ac_exeext conftest.$ac_ext
 
25015
rm -f core conftest.err conftest.$ac_objext \
 
25016
    conftest$ac_exeext conftest.$ac_ext
26099
25017
LIBS=$ac_func_search_save_LIBS
26100
25018
 
26101
25019
fi
26102
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_gethostbyname" >&5
 
25020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_gethostbyname" >&5
26103
25021
$as_echo "$ac_cv_lib_ws2_32_gethostbyname" >&6; }
26104
 
if test $ac_cv_lib_ws2_32_gethostbyname = yes; then
 
25022
if test $ac_cv_lib_ws2_32_gethostbyname = yes; then :
26105
25023
 
26106
25024
cat >>confdefs.h <<_ACEOF
26107
25025
#define HAVE_LIBWS2_32 /**/
26115
25033
 
26116
25034
 
26117
25035
 
26118
 
 
26119
 
{ $as_echo "$as_me:$LINENO: checking for CommandLineToArgvW@8 in shell32" >&5
 
25036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CommandLineToArgvW@8 in shell32" >&5
26120
25037
$as_echo_n "checking for CommandLineToArgvW@8 in shell32... " >&6; }
26121
 
if test "${ac_cv_lib_shell32_CommandLineToArgvW+set}" = set; then
 
25038
if test "${ac_cv_lib_shell32_CommandLineToArgvW+set}" = set; then :
26122
25039
  $as_echo_n "(cached) " >&6
26123
25040
else
26124
25041
 
26126
25043
ac_func_search_save_LIBS=$LIBS
26127
25044
LIBS="$LIBS -lshell32"
26128
25045
 
26129
 
cat >conftest.$ac_ext <<_ACEOF
26130
 
/* confdefs.h.  */
26131
 
_ACEOF
26132
 
cat confdefs.h >>conftest.$ac_ext
26133
 
cat >>conftest.$ac_ext <<_ACEOF
 
25046
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26134
25047
/* end confdefs.h.  */
26135
25048
 
26136
25049
#pragma pack(1)
26155
25068
  return 0;
26156
25069
}
26157
25070
_ACEOF
26158
 
rm -f conftest.$ac_objext conftest$ac_exeext
26159
 
if { (ac_try="$ac_link"
26160
 
case "(($ac_try" in
26161
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162
 
  *) ac_try_echo=$ac_try;;
26163
 
esac
26164
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26165
 
$as_echo "$ac_try_echo") >&5
26166
 
  (eval "$ac_link") 2>conftest.er1
26167
 
  ac_status=$?
26168
 
  grep -v '^ *+' conftest.er1 >conftest.err
26169
 
  rm -f conftest.er1
26170
 
  cat conftest.err >&5
26171
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172
 
  (exit $ac_status); } && {
26173
 
         test -z "$ac_c_werror_flag" ||
26174
 
         test ! -s conftest.err
26175
 
       } && test -s conftest$ac_exeext && {
26176
 
         test "$cross_compiling" = yes ||
26177
 
         $as_test_x conftest$ac_exeext
26178
 
       }; then
 
25071
if ac_fn_c_try_link "$LINENO"; then :
26179
25072
  ac_cv_lib_shell32_CommandLineToArgvW=yes
26180
25073
else
26181
 
  $as_echo "$as_me: failed program was:" >&5
26182
 
sed 's/^/| /' conftest.$ac_ext >&5
26183
 
 
26184
 
        ac_cv_lib_shell32_CommandLineToArgvW=no
 
25074
  ac_cv_lib_shell32_CommandLineToArgvW=no
26185
25075
fi
26186
 
 
26187
 
rm -rf conftest.dSYM
26188
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26189
 
      conftest$ac_exeext conftest.$ac_ext
 
25076
rm -f core conftest.err conftest.$ac_objext \
 
25077
    conftest$ac_exeext conftest.$ac_ext
26190
25078
LIBS=$ac_func_search_save_LIBS
26191
25079
 
26192
25080
fi
26193
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_CommandLineToArgvW" >&5
 
25081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shell32_CommandLineToArgvW" >&5
26194
25082
$as_echo "$ac_cv_lib_shell32_CommandLineToArgvW" >&6; }
26195
 
if test $ac_cv_lib_shell32_CommandLineToArgvW = yes; then
 
25083
if test $ac_cv_lib_shell32_CommandLineToArgvW = yes; then :
26196
25084
 
26197
25085
cat >>confdefs.h <<_ACEOF
26198
25086
#define HAVE_LIBSHELL32 /**/
26206
25094
 
26207
25095
 
26208
25096
 
26209
 
 
26210
 
{ $as_echo "$as_me:$LINENO: checking for CreateFileMappingA@24 in kernel32" >&5
 
25097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateFileMappingA@24 in kernel32" >&5
26211
25098
$as_echo_n "checking for CreateFileMappingA@24 in kernel32... " >&6; }
26212
 
if test "${ac_cv_lib_kernel32_CreateFileMappingA+set}" = set; then
 
25099
if test "${ac_cv_lib_kernel32_CreateFileMappingA+set}" = set; then :
26213
25100
  $as_echo_n "(cached) " >&6
26214
25101
else
26215
25102
 
26217
25104
ac_func_search_save_LIBS=$LIBS
26218
25105
LIBS="$LIBS -lkernel32"
26219
25106
 
26220
 
cat >conftest.$ac_ext <<_ACEOF
26221
 
/* confdefs.h.  */
26222
 
_ACEOF
26223
 
cat confdefs.h >>conftest.$ac_ext
26224
 
cat >>conftest.$ac_ext <<_ACEOF
 
25107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26225
25108
/* end confdefs.h.  */
26226
25109
 
26227
25110
#pragma pack(1)
26262
25145
  return 0;
26263
25146
}
26264
25147
_ACEOF
26265
 
rm -f conftest.$ac_objext conftest$ac_exeext
26266
 
if { (ac_try="$ac_link"
26267
 
case "(($ac_try" in
26268
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26269
 
  *) ac_try_echo=$ac_try;;
26270
 
esac
26271
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26272
 
$as_echo "$ac_try_echo") >&5
26273
 
  (eval "$ac_link") 2>conftest.er1
26274
 
  ac_status=$?
26275
 
  grep -v '^ *+' conftest.er1 >conftest.err
26276
 
  rm -f conftest.er1
26277
 
  cat conftest.err >&5
26278
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279
 
  (exit $ac_status); } && {
26280
 
         test -z "$ac_c_werror_flag" ||
26281
 
         test ! -s conftest.err
26282
 
       } && test -s conftest$ac_exeext && {
26283
 
         test "$cross_compiling" = yes ||
26284
 
         $as_test_x conftest$ac_exeext
26285
 
       }; then
 
25148
if ac_fn_c_try_link "$LINENO"; then :
26286
25149
  ac_cv_lib_kernel32_CreateFileMappingA=yes
26287
25150
else
26288
 
  $as_echo "$as_me: failed program was:" >&5
26289
 
sed 's/^/| /' conftest.$ac_ext >&5
26290
 
 
26291
 
        ac_cv_lib_kernel32_CreateFileMappingA=no
 
25151
  ac_cv_lib_kernel32_CreateFileMappingA=no
26292
25152
fi
26293
 
 
26294
 
rm -rf conftest.dSYM
26295
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26296
 
      conftest$ac_exeext conftest.$ac_ext
 
25153
rm -f core conftest.err conftest.$ac_objext \
 
25154
    conftest$ac_exeext conftest.$ac_ext
26297
25155
LIBS=$ac_func_search_save_LIBS
26298
25156
 
26299
25157
fi
26300
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kernel32_CreateFileMappingA" >&5
 
25158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_CreateFileMappingA" >&5
26301
25159
$as_echo "$ac_cv_lib_kernel32_CreateFileMappingA" >&6; }
26302
 
if test $ac_cv_lib_kernel32_CreateFileMappingA = yes; then
 
25160
if test $ac_cv_lib_kernel32_CreateFileMappingA = yes; then :
26303
25161
  ac_cv_func_CreateFileMapping=$ac_cv_lib_kernel32_CreateFileMappingA
26304
25162
fi
26305
25163
 
26307
25165
 
26308
25166
 
26309
25167
 
26310
 
 
26311
 
{ $as_echo "$as_me:$LINENO: checking for UuidCreate@4 in rpcrt4" >&5
 
25168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UuidCreate@4 in rpcrt4" >&5
26312
25169
$as_echo_n "checking for UuidCreate@4 in rpcrt4... " >&6; }
26313
 
if test "${ac_cv_lib_rpcrt4_UuidCreate+set}" = set; then
 
25170
if test "${ac_cv_lib_rpcrt4_UuidCreate+set}" = set; then :
26314
25171
  $as_echo_n "(cached) " >&6
26315
25172
else
26316
25173
 
26318
25175
ac_func_search_save_LIBS=$LIBS
26319
25176
LIBS="$LIBS -lrpcrt4"
26320
25177
 
26321
 
cat >conftest.$ac_ext <<_ACEOF
26322
 
/* confdefs.h.  */
26323
 
_ACEOF
26324
 
cat confdefs.h >>conftest.$ac_ext
26325
 
cat >>conftest.$ac_ext <<_ACEOF
 
25178
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26326
25179
/* end confdefs.h.  */
26327
25180
 
26328
25181
#pragma pack(1)
26343
25196
  return 0;
26344
25197
}
26345
25198
_ACEOF
26346
 
rm -f conftest.$ac_objext conftest$ac_exeext
26347
 
if { (ac_try="$ac_link"
26348
 
case "(($ac_try" in
26349
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26350
 
  *) ac_try_echo=$ac_try;;
26351
 
esac
26352
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26353
 
$as_echo "$ac_try_echo") >&5
26354
 
  (eval "$ac_link") 2>conftest.er1
26355
 
  ac_status=$?
26356
 
  grep -v '^ *+' conftest.er1 >conftest.err
26357
 
  rm -f conftest.er1
26358
 
  cat conftest.err >&5
26359
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360
 
  (exit $ac_status); } && {
26361
 
         test -z "$ac_c_werror_flag" ||
26362
 
         test ! -s conftest.err
26363
 
       } && test -s conftest$ac_exeext && {
26364
 
         test "$cross_compiling" = yes ||
26365
 
         $as_test_x conftest$ac_exeext
26366
 
       }; then
 
25199
if ac_fn_c_try_link "$LINENO"; then :
26367
25200
  ac_cv_lib_rpcrt4_UuidCreate=yes
26368
25201
else
26369
 
  $as_echo "$as_me: failed program was:" >&5
26370
 
sed 's/^/| /' conftest.$ac_ext >&5
26371
 
 
26372
 
        ac_cv_lib_rpcrt4_UuidCreate=no
 
25202
  ac_cv_lib_rpcrt4_UuidCreate=no
26373
25203
fi
26374
 
 
26375
 
rm -rf conftest.dSYM
26376
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26377
 
      conftest$ac_exeext conftest.$ac_ext
 
25204
rm -f core conftest.err conftest.$ac_objext \
 
25205
    conftest$ac_exeext conftest.$ac_ext
26378
25206
LIBS=$ac_func_search_save_LIBS
26379
25207
 
26380
25208
fi
26381
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rpcrt4_UuidCreate" >&5
 
25209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcrt4_UuidCreate" >&5
26382
25210
$as_echo "$ac_cv_lib_rpcrt4_UuidCreate" >&6; }
26383
 
if test $ac_cv_lib_rpcrt4_UuidCreate = yes; then
 
25211
if test $ac_cv_lib_rpcrt4_UuidCreate = yes; then :
26384
25212
 
26385
25213
cat >>confdefs.h <<_ACEOF
26386
25214
#define HAVE_LIBRPCRT4 /**/
26389
25217
  LIBS="-lrpcrt4 $LIBS"
26390
25218
 
26391
25219
fi
26392
 
 
26393
25220
      ;;
26394
25221
   *)
26395
 
      { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
25222
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26396
25223
$as_echo_n "checking for library containing gethostbyname... " >&6; }
26397
 
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
25224
if test "${ac_cv_search_gethostbyname+set}" = set; then :
26398
25225
  $as_echo_n "(cached) " >&6
26399
25226
else
26400
25227
  ac_func_search_save_LIBS=$LIBS
26401
 
cat >conftest.$ac_ext <<_ACEOF
26402
 
/* confdefs.h.  */
26403
 
_ACEOF
26404
 
cat confdefs.h >>conftest.$ac_ext
26405
 
cat >>conftest.$ac_ext <<_ACEOF
 
25228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26406
25229
/* end confdefs.h.  */
26407
25230
 
26408
25231
/* Override any GCC internal prototype to avoid an error.
26427
25250
    ac_res=-l$ac_lib
26428
25251
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26429
25252
  fi
26430
 
  rm -f conftest.$ac_objext conftest$ac_exeext
26431
 
if { (ac_try="$ac_link"
26432
 
case "(($ac_try" in
26433
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26434
 
  *) ac_try_echo=$ac_try;;
26435
 
esac
26436
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26437
 
$as_echo "$ac_try_echo") >&5
26438
 
  (eval "$ac_link") 2>conftest.er1
26439
 
  ac_status=$?
26440
 
  grep -v '^ *+' conftest.er1 >conftest.err
26441
 
  rm -f conftest.er1
26442
 
  cat conftest.err >&5
26443
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444
 
  (exit $ac_status); } && {
26445
 
         test -z "$ac_c_werror_flag" ||
26446
 
         test ! -s conftest.err
26447
 
       } && test -s conftest$ac_exeext && {
26448
 
         test "$cross_compiling" = yes ||
26449
 
         $as_test_x conftest$ac_exeext
26450
 
       }; then
 
25253
  if ac_fn_c_try_link "$LINENO"; then :
26451
25254
  ac_cv_search_gethostbyname=$ac_res
26452
 
else
26453
 
  $as_echo "$as_me: failed program was:" >&5
26454
 
sed 's/^/| /' conftest.$ac_ext >&5
26455
 
 
26456
 
 
26457
25255
fi
26458
 
 
26459
 
rm -rf conftest.dSYM
26460
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26461
 
      conftest$ac_exeext
26462
 
  if test "${ac_cv_search_gethostbyname+set}" = set; then
 
25256
rm -f core conftest.err conftest.$ac_objext \
 
25257
    conftest$ac_exeext
 
25258
  if test "${ac_cv_search_gethostbyname+set}" = set; then :
26463
25259
  break
26464
25260
fi
26465
25261
done
26466
 
if test "${ac_cv_search_gethostbyname+set}" = set; then
26467
 
  :
 
25262
if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
25263
 
26468
25264
else
26469
25265
  ac_cv_search_gethostbyname=no
26470
25266
fi
26471
25267
rm conftest.$ac_ext
26472
25268
LIBS=$ac_func_search_save_LIBS
26473
25269
fi
26474
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 
25270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26475
25271
$as_echo "$ac_cv_search_gethostbyname" >&6; }
26476
25272
ac_res=$ac_cv_search_gethostbyname
26477
 
if test "$ac_res" != no; then
 
25273
if test "$ac_res" != no; then :
26478
25274
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26479
25275
 
26480
25276
fi
26481
25277
 
26482
 
      { $as_echo "$as_me:$LINENO: checking for library containing gethostname" >&5
 
25278
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
26483
25279
$as_echo_n "checking for library containing gethostname... " >&6; }
26484
 
if test "${ac_cv_search_gethostname+set}" = set; then
 
25280
if test "${ac_cv_search_gethostname+set}" = set; then :
26485
25281
  $as_echo_n "(cached) " >&6
26486
25282
else
26487
25283
  ac_func_search_save_LIBS=$LIBS
26488
 
cat >conftest.$ac_ext <<_ACEOF
26489
 
/* confdefs.h.  */
26490
 
_ACEOF
26491
 
cat confdefs.h >>conftest.$ac_ext
26492
 
cat >>conftest.$ac_ext <<_ACEOF
 
25284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26493
25285
/* end confdefs.h.  */
26494
25286
 
26495
25287
/* Override any GCC internal prototype to avoid an error.
26514
25306
    ac_res=-l$ac_lib
26515
25307
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26516
25308
  fi
26517
 
  rm -f conftest.$ac_objext conftest$ac_exeext
26518
 
if { (ac_try="$ac_link"
26519
 
case "(($ac_try" in
26520
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26521
 
  *) ac_try_echo=$ac_try;;
26522
 
esac
26523
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26524
 
$as_echo "$ac_try_echo") >&5
26525
 
  (eval "$ac_link") 2>conftest.er1
26526
 
  ac_status=$?
26527
 
  grep -v '^ *+' conftest.er1 >conftest.err
26528
 
  rm -f conftest.er1
26529
 
  cat conftest.err >&5
26530
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531
 
  (exit $ac_status); } && {
26532
 
         test -z "$ac_c_werror_flag" ||
26533
 
         test ! -s conftest.err
26534
 
       } && test -s conftest$ac_exeext && {
26535
 
         test "$cross_compiling" = yes ||
26536
 
         $as_test_x conftest$ac_exeext
26537
 
       }; then
 
25309
  if ac_fn_c_try_link "$LINENO"; then :
26538
25310
  ac_cv_search_gethostname=$ac_res
26539
 
else
26540
 
  $as_echo "$as_me: failed program was:" >&5
26541
 
sed 's/^/| /' conftest.$ac_ext >&5
26542
 
 
26543
 
 
26544
25311
fi
26545
 
 
26546
 
rm -rf conftest.dSYM
26547
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26548
 
      conftest$ac_exeext
26549
 
  if test "${ac_cv_search_gethostname+set}" = set; then
 
25312
rm -f core conftest.err conftest.$ac_objext \
 
25313
    conftest$ac_exeext
 
25314
  if test "${ac_cv_search_gethostname+set}" = set; then :
26550
25315
  break
26551
25316
fi
26552
25317
done
26553
 
if test "${ac_cv_search_gethostname+set}" = set; then
26554
 
  :
 
25318
if test "${ac_cv_search_gethostname+set}" = set; then :
 
25319
 
26555
25320
else
26556
25321
  ac_cv_search_gethostname=no
26557
25322
fi
26558
25323
rm conftest.$ac_ext
26559
25324
LIBS=$ac_func_search_save_LIBS
26560
25325
fi
26561
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostname" >&5
 
25326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
26562
25327
$as_echo "$ac_cv_search_gethostname" >&6; }
26563
25328
ac_res=$ac_cv_search_gethostname
26564
 
if test "$ac_res" != no; then
 
25329
if test "$ac_res" != no; then :
26565
25330
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26566
25331
 
26567
25332
fi
26568
25333
 
26569
 
      { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
 
25334
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
26570
25335
$as_echo_n "checking for library containing socket... " >&6; }
26571
 
if test "${ac_cv_search_socket+set}" = set; then
 
25336
if test "${ac_cv_search_socket+set}" = set; then :
26572
25337
  $as_echo_n "(cached) " >&6
26573
25338
else
26574
25339
  ac_func_search_save_LIBS=$LIBS
26575
 
cat >conftest.$ac_ext <<_ACEOF
26576
 
/* confdefs.h.  */
26577
 
_ACEOF
26578
 
cat confdefs.h >>conftest.$ac_ext
26579
 
cat >>conftest.$ac_ext <<_ACEOF
 
25340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26580
25341
/* end confdefs.h.  */
26581
25342
 
26582
25343
/* Override any GCC internal prototype to avoid an error.
26601
25362
    ac_res=-l$ac_lib
26602
25363
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26603
25364
  fi
26604
 
  rm -f conftest.$ac_objext conftest$ac_exeext
26605
 
if { (ac_try="$ac_link"
26606
 
case "(($ac_try" in
26607
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26608
 
  *) ac_try_echo=$ac_try;;
26609
 
esac
26610
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26611
 
$as_echo "$ac_try_echo") >&5
26612
 
  (eval "$ac_link") 2>conftest.er1
26613
 
  ac_status=$?
26614
 
  grep -v '^ *+' conftest.er1 >conftest.err
26615
 
  rm -f conftest.er1
26616
 
  cat conftest.err >&5
26617
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618
 
  (exit $ac_status); } && {
26619
 
         test -z "$ac_c_werror_flag" ||
26620
 
         test ! -s conftest.err
26621
 
       } && test -s conftest$ac_exeext && {
26622
 
         test "$cross_compiling" = yes ||
26623
 
         $as_test_x conftest$ac_exeext
26624
 
       }; then
 
25365
  if ac_fn_c_try_link "$LINENO"; then :
26625
25366
  ac_cv_search_socket=$ac_res
26626
 
else
26627
 
  $as_echo "$as_me: failed program was:" >&5
26628
 
sed 's/^/| /' conftest.$ac_ext >&5
26629
 
 
26630
 
 
26631
25367
fi
26632
 
 
26633
 
rm -rf conftest.dSYM
26634
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26635
 
      conftest$ac_exeext
26636
 
  if test "${ac_cv_search_socket+set}" = set; then
 
25368
rm -f core conftest.err conftest.$ac_objext \
 
25369
    conftest$ac_exeext
 
25370
  if test "${ac_cv_search_socket+set}" = set; then :
26637
25371
  break
26638
25372
fi
26639
25373
done
26640
 
if test "${ac_cv_search_socket+set}" = set; then
26641
 
  :
 
25374
if test "${ac_cv_search_socket+set}" = set; then :
 
25375
 
26642
25376
else
26643
25377
  ac_cv_search_socket=no
26644
25378
fi
26645
25379
rm conftest.$ac_ext
26646
25380
LIBS=$ac_func_search_save_LIBS
26647
25381
fi
26648
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
 
25382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
26649
25383
$as_echo "$ac_cv_search_socket" >&6; }
26650
25384
ac_res=$ac_cv_search_socket
26651
 
if test "$ac_res" != no; then
 
25385
if test "$ac_res" != no; then :
26652
25386
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26653
25387
 
26654
25388
fi
26655
25389
 
26656
 
      { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
 
25390
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
26657
25391
$as_echo_n "checking for library containing crypt... " >&6; }
26658
 
if test "${ac_cv_search_crypt+set}" = set; then
 
25392
if test "${ac_cv_search_crypt+set}" = set; then :
26659
25393
  $as_echo_n "(cached) " >&6
26660
25394
else
26661
25395
  ac_func_search_save_LIBS=$LIBS
26662
 
cat >conftest.$ac_ext <<_ACEOF
26663
 
/* confdefs.h.  */
26664
 
_ACEOF
26665
 
cat confdefs.h >>conftest.$ac_ext
26666
 
cat >>conftest.$ac_ext <<_ACEOF
 
25396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26667
25397
/* end confdefs.h.  */
26668
25398
 
26669
25399
/* Override any GCC internal prototype to avoid an error.
26688
25418
    ac_res=-l$ac_lib
26689
25419
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26690
25420
  fi
26691
 
  rm -f conftest.$ac_objext conftest$ac_exeext
26692
 
if { (ac_try="$ac_link"
26693
 
case "(($ac_try" in
26694
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26695
 
  *) ac_try_echo=$ac_try;;
26696
 
esac
26697
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26698
 
$as_echo "$ac_try_echo") >&5
26699
 
  (eval "$ac_link") 2>conftest.er1
26700
 
  ac_status=$?
26701
 
  grep -v '^ *+' conftest.er1 >conftest.err
26702
 
  rm -f conftest.er1
26703
 
  cat conftest.err >&5
26704
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705
 
  (exit $ac_status); } && {
26706
 
         test -z "$ac_c_werror_flag" ||
26707
 
         test ! -s conftest.err
26708
 
       } && test -s conftest$ac_exeext && {
26709
 
         test "$cross_compiling" = yes ||
26710
 
         $as_test_x conftest$ac_exeext
26711
 
       }; then
 
25421
  if ac_fn_c_try_link "$LINENO"; then :
26712
25422
  ac_cv_search_crypt=$ac_res
26713
 
else
26714
 
  $as_echo "$as_me: failed program was:" >&5
26715
 
sed 's/^/| /' conftest.$ac_ext >&5
26716
 
 
26717
 
 
26718
25423
fi
26719
 
 
26720
 
rm -rf conftest.dSYM
26721
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26722
 
      conftest$ac_exeext
26723
 
  if test "${ac_cv_search_crypt+set}" = set; then
 
25424
rm -f core conftest.err conftest.$ac_objext \
 
25425
    conftest$ac_exeext
 
25426
  if test "${ac_cv_search_crypt+set}" = set; then :
26724
25427
  break
26725
25428
fi
26726
25429
done
26727
 
if test "${ac_cv_search_crypt+set}" = set; then
26728
 
  :
 
25430
if test "${ac_cv_search_crypt+set}" = set; then :
 
25431
 
26729
25432
else
26730
25433
  ac_cv_search_crypt=no
26731
25434
fi
26732
25435
rm conftest.$ac_ext
26733
25436
LIBS=$ac_func_search_save_LIBS
26734
25437
fi
26735
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
 
25438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
26736
25439
$as_echo "$ac_cv_search_crypt" >&6; }
26737
25440
ac_res=$ac_cv_search_crypt
26738
 
if test "$ac_res" != no; then
 
25441
if test "$ac_res" != no; then :
26739
25442
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26740
25443
 
26741
25444
fi
26742
25445
 
26743
 
 
26744
 
{ $as_echo "$as_me:$LINENO: checking for main in -ltruerand" >&5
 
25446
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
26745
25447
$as_echo_n "checking for main in -ltruerand... " >&6; }
26746
 
if test "${ac_cv_lib_truerand_main+set}" = set; then
 
25448
if test "${ac_cv_lib_truerand_main+set}" = set; then :
26747
25449
  $as_echo_n "(cached) " >&6
26748
25450
else
26749
25451
  ac_check_lib_save_LIBS=$LIBS
26750
25452
LIBS="-ltruerand  $LIBS"
26751
 
cat >conftest.$ac_ext <<_ACEOF
26752
 
/* confdefs.h.  */
26753
 
_ACEOF
26754
 
cat confdefs.h >>conftest.$ac_ext
26755
 
cat >>conftest.$ac_ext <<_ACEOF
 
25453
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26756
25454
/* end confdefs.h.  */
26757
25455
 
26758
25456
 
26764
25462
  return 0;
26765
25463
}
26766
25464
_ACEOF
26767
 
rm -f conftest.$ac_objext conftest$ac_exeext
26768
 
if { (ac_try="$ac_link"
26769
 
case "(($ac_try" in
26770
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26771
 
  *) ac_try_echo=$ac_try;;
26772
 
esac
26773
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26774
 
$as_echo "$ac_try_echo") >&5
26775
 
  (eval "$ac_link") 2>conftest.er1
26776
 
  ac_status=$?
26777
 
  grep -v '^ *+' conftest.er1 >conftest.err
26778
 
  rm -f conftest.er1
26779
 
  cat conftest.err >&5
26780
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781
 
  (exit $ac_status); } && {
26782
 
         test -z "$ac_c_werror_flag" ||
26783
 
         test ! -s conftest.err
26784
 
       } && test -s conftest$ac_exeext && {
26785
 
         test "$cross_compiling" = yes ||
26786
 
         $as_test_x conftest$ac_exeext
26787
 
       }; then
 
25465
if ac_fn_c_try_link "$LINENO"; then :
26788
25466
  ac_cv_lib_truerand_main=yes
26789
25467
else
26790
 
  $as_echo "$as_me: failed program was:" >&5
26791
 
sed 's/^/| /' conftest.$ac_ext >&5
26792
 
 
26793
 
        ac_cv_lib_truerand_main=no
 
25468
  ac_cv_lib_truerand_main=no
26794
25469
fi
26795
 
 
26796
 
rm -rf conftest.dSYM
26797
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26798
 
      conftest$ac_exeext conftest.$ac_ext
 
25470
rm -f core conftest.err conftest.$ac_objext \
 
25471
    conftest$ac_exeext conftest.$ac_ext
26799
25472
LIBS=$ac_check_lib_save_LIBS
26800
25473
fi
26801
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_truerand_main" >&5
 
25474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
26802
25475
$as_echo "$ac_cv_lib_truerand_main" >&6; }
26803
 
if test "x$ac_cv_lib_truerand_main" = x""yes; then
 
25476
if test "x$ac_cv_lib_truerand_main" = x""yes; then :
26804
25477
  cat >>confdefs.h <<_ACEOF
26805
25478
#define HAVE_LIBTRUERAND 1
26806
25479
_ACEOF
26809
25482
 
26810
25483
fi
26811
25484
 
26812
 
      { $as_echo "$as_me:$LINENO: checking for library containing modf" >&5
 
25485
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
26813
25486
$as_echo_n "checking for library containing modf... " >&6; }
26814
 
if test "${ac_cv_search_modf+set}" = set; then
 
25487
if test "${ac_cv_search_modf+set}" = set; then :
26815
25488
  $as_echo_n "(cached) " >&6
26816
25489
else
26817
25490
  ac_func_search_save_LIBS=$LIBS
26818
 
cat >conftest.$ac_ext <<_ACEOF
26819
 
/* confdefs.h.  */
26820
 
_ACEOF
26821
 
cat confdefs.h >>conftest.$ac_ext
26822
 
cat >>conftest.$ac_ext <<_ACEOF
 
25491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26823
25492
/* end confdefs.h.  */
26824
25493
 
26825
25494
/* Override any GCC internal prototype to avoid an error.
26844
25513
    ac_res=-l$ac_lib
26845
25514
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26846
25515
  fi
26847
 
  rm -f conftest.$ac_objext conftest$ac_exeext
26848
 
if { (ac_try="$ac_link"
26849
 
case "(($ac_try" in
26850
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26851
 
  *) ac_try_echo=$ac_try;;
26852
 
esac
26853
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26854
 
$as_echo "$ac_try_echo") >&5
26855
 
  (eval "$ac_link") 2>conftest.er1
26856
 
  ac_status=$?
26857
 
  grep -v '^ *+' conftest.er1 >conftest.err
26858
 
  rm -f conftest.er1
26859
 
  cat conftest.err >&5
26860
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861
 
  (exit $ac_status); } && {
26862
 
         test -z "$ac_c_werror_flag" ||
26863
 
         test ! -s conftest.err
26864
 
       } && test -s conftest$ac_exeext && {
26865
 
         test "$cross_compiling" = yes ||
26866
 
         $as_test_x conftest$ac_exeext
26867
 
       }; then
 
25516
  if ac_fn_c_try_link "$LINENO"; then :
26868
25517
  ac_cv_search_modf=$ac_res
26869
 
else
26870
 
  $as_echo "$as_me: failed program was:" >&5
26871
 
sed 's/^/| /' conftest.$ac_ext >&5
26872
 
 
26873
 
 
26874
25518
fi
26875
 
 
26876
 
rm -rf conftest.dSYM
26877
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26878
 
      conftest$ac_exeext
26879
 
  if test "${ac_cv_search_modf+set}" = set; then
 
25519
rm -f core conftest.err conftest.$ac_objext \
 
25520
    conftest$ac_exeext
 
25521
  if test "${ac_cv_search_modf+set}" = set; then :
26880
25522
  break
26881
25523
fi
26882
25524
done
26883
 
if test "${ac_cv_search_modf+set}" = set; then
26884
 
  :
 
25525
if test "${ac_cv_search_modf+set}" = set; then :
 
25526
 
26885
25527
else
26886
25528
  ac_cv_search_modf=no
26887
25529
fi
26888
25530
rm conftest.$ac_ext
26889
25531
LIBS=$ac_func_search_save_LIBS
26890
25532
fi
26891
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_modf" >&5
 
25533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
26892
25534
$as_echo "$ac_cv_search_modf" >&6; }
26893
25535
ac_res=$ac_cv_search_modf
26894
 
if test "$ac_res" != no; then
 
25536
if test "$ac_res" != no; then :
26895
25537
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26896
25538
 
26897
25539
fi
26903
25545
 
26904
25546
if test -z "$enable_threads"; then
26905
25547
        # Check whether --enable-threads was given.
26906
 
if test "${enable_threads+set}" = set; then
 
25548
if test "${enable_threads+set}" = set; then :
26907
25549
  enableval=$enable_threads;  enable_threads=$enableval
26908
25550
else
26909
25551
 
26910
25552
  if test "$GCC" = "yes"; then
26911
25553
    SAVE_FL="$CPPFLAGS"
26912
25554
    CPPFLAGS="$CPPFLAGS -w"
26913
 
 
26914
 
for ac_header in pthread.h
26915
 
do
26916
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26917
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26918
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26919
 
$as_echo_n "checking for $ac_header... " >&6; }
26920
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26921
 
  $as_echo_n "(cached) " >&6
26922
 
fi
26923
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
26924
 
                 $as_echo "$as_val"'`
26925
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26926
 
$as_echo "$ac_res" >&6; }
26927
 
else
26928
 
  # Is the header compilable?
26929
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26930
 
$as_echo_n "checking $ac_header usability... " >&6; }
26931
 
cat >conftest.$ac_ext <<_ACEOF
26932
 
/* confdefs.h.  */
26933
 
_ACEOF
26934
 
cat confdefs.h >>conftest.$ac_ext
26935
 
cat >>conftest.$ac_ext <<_ACEOF
26936
 
/* end confdefs.h.  */
26937
 
$ac_includes_default
26938
 
#include <$ac_header>
26939
 
_ACEOF
26940
 
rm -f conftest.$ac_objext
26941
 
if { (ac_try="$ac_compile"
26942
 
case "(($ac_try" in
26943
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944
 
  *) ac_try_echo=$ac_try;;
26945
 
esac
26946
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26947
 
$as_echo "$ac_try_echo") >&5
26948
 
  (eval "$ac_compile") 2>conftest.er1
26949
 
  ac_status=$?
26950
 
  grep -v '^ *+' conftest.er1 >conftest.err
26951
 
  rm -f conftest.er1
26952
 
  cat conftest.err >&5
26953
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954
 
  (exit $ac_status); } && {
26955
 
         test -z "$ac_c_werror_flag" ||
26956
 
         test ! -s conftest.err
26957
 
       } && test -s conftest.$ac_objext; then
26958
 
  ac_header_compiler=yes
26959
 
else
26960
 
  $as_echo "$as_me: failed program was:" >&5
26961
 
sed 's/^/| /' conftest.$ac_ext >&5
26962
 
 
26963
 
        ac_header_compiler=no
26964
 
fi
26965
 
 
26966
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26967
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26968
 
$as_echo "$ac_header_compiler" >&6; }
26969
 
 
26970
 
# Is the header present?
26971
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26972
 
$as_echo_n "checking $ac_header presence... " >&6; }
26973
 
cat >conftest.$ac_ext <<_ACEOF
26974
 
/* confdefs.h.  */
26975
 
_ACEOF
26976
 
cat confdefs.h >>conftest.$ac_ext
26977
 
cat >>conftest.$ac_ext <<_ACEOF
26978
 
/* end confdefs.h.  */
26979
 
#include <$ac_header>
26980
 
_ACEOF
26981
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
26982
 
case "(($ac_try" in
26983
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984
 
  *) ac_try_echo=$ac_try;;
26985
 
esac
26986
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26987
 
$as_echo "$ac_try_echo") >&5
26988
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26989
 
  ac_status=$?
26990
 
  grep -v '^ *+' conftest.er1 >conftest.err
26991
 
  rm -f conftest.er1
26992
 
  cat conftest.err >&5
26993
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994
 
  (exit $ac_status); } >/dev/null && {
26995
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26996
 
         test ! -s conftest.err
26997
 
       }; then
26998
 
  ac_header_preproc=yes
26999
 
else
27000
 
  $as_echo "$as_me: failed program was:" >&5
27001
 
sed 's/^/| /' conftest.$ac_ext >&5
27002
 
 
27003
 
  ac_header_preproc=no
27004
 
fi
27005
 
 
27006
 
rm -f conftest.err conftest.$ac_ext
27007
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27008
 
$as_echo "$ac_header_preproc" >&6; }
27009
 
 
27010
 
# So?  What about this header?
27011
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27012
 
  yes:no: )
27013
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27014
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27015
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27016
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27017
 
    ac_header_preproc=yes
27018
 
    ;;
27019
 
  no:yes:* )
27020
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27021
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27022
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27023
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27024
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27025
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27026
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27027
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27028
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27029
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27030
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27031
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27032
 
 
27033
 
    ;;
27034
 
esac
27035
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27036
 
$as_echo_n "checking for $ac_header... " >&6; }
27037
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27038
 
  $as_echo_n "(cached) " >&6
27039
 
else
27040
 
  eval "$as_ac_Header=\$ac_header_preproc"
27041
 
fi
27042
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
27043
 
                 $as_echo "$as_val"'`
27044
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27045
 
$as_echo "$ac_res" >&6; }
27046
 
 
27047
 
fi
27048
 
as_val=`eval 'as_val=${'$as_ac_Header'}
27049
 
                 $as_echo "$as_val"'`
27050
 
   if test "x$as_val" = x""yes; then
 
25555
    for ac_header in pthread.h
 
25556
do :
 
25557
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
25558
if test "x$ac_cv_header_pthread_h" = x""yes; then :
27051
25559
  cat >>confdefs.h <<_ACEOF
27052
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25560
#define HAVE_PTHREAD_H 1
27053
25561
_ACEOF
27054
25562
   enable_threads="pthread"
27055
25563
else
27060
25568
 
27061
25569
    CPPFLAGS="$SAVE_FL"
27062
25570
  else
27063
 
 
27064
 
for ac_header in pthread.h
27065
 
do
27066
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27067
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27068
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27069
 
$as_echo_n "checking for $ac_header... " >&6; }
27070
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27071
 
  $as_echo_n "(cached) " >&6
27072
 
fi
27073
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
27074
 
                 $as_echo "$as_val"'`
27075
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27076
 
$as_echo "$ac_res" >&6; }
27077
 
else
27078
 
  # Is the header compilable?
27079
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27080
 
$as_echo_n "checking $ac_header usability... " >&6; }
27081
 
cat >conftest.$ac_ext <<_ACEOF
27082
 
/* confdefs.h.  */
27083
 
_ACEOF
27084
 
cat confdefs.h >>conftest.$ac_ext
27085
 
cat >>conftest.$ac_ext <<_ACEOF
27086
 
/* end confdefs.h.  */
27087
 
$ac_includes_default
27088
 
#include <$ac_header>
27089
 
_ACEOF
27090
 
rm -f conftest.$ac_objext
27091
 
if { (ac_try="$ac_compile"
27092
 
case "(($ac_try" in
27093
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094
 
  *) ac_try_echo=$ac_try;;
27095
 
esac
27096
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27097
 
$as_echo "$ac_try_echo") >&5
27098
 
  (eval "$ac_compile") 2>conftest.er1
27099
 
  ac_status=$?
27100
 
  grep -v '^ *+' conftest.er1 >conftest.err
27101
 
  rm -f conftest.er1
27102
 
  cat conftest.err >&5
27103
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104
 
  (exit $ac_status); } && {
27105
 
         test -z "$ac_c_werror_flag" ||
27106
 
         test ! -s conftest.err
27107
 
       } && test -s conftest.$ac_objext; then
27108
 
  ac_header_compiler=yes
27109
 
else
27110
 
  $as_echo "$as_me: failed program was:" >&5
27111
 
sed 's/^/| /' conftest.$ac_ext >&5
27112
 
 
27113
 
        ac_header_compiler=no
27114
 
fi
27115
 
 
27116
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27117
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27118
 
$as_echo "$ac_header_compiler" >&6; }
27119
 
 
27120
 
# Is the header present?
27121
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27122
 
$as_echo_n "checking $ac_header presence... " >&6; }
27123
 
cat >conftest.$ac_ext <<_ACEOF
27124
 
/* confdefs.h.  */
27125
 
_ACEOF
27126
 
cat confdefs.h >>conftest.$ac_ext
27127
 
cat >>conftest.$ac_ext <<_ACEOF
27128
 
/* end confdefs.h.  */
27129
 
#include <$ac_header>
27130
 
_ACEOF
27131
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
27132
 
case "(($ac_try" in
27133
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134
 
  *) ac_try_echo=$ac_try;;
27135
 
esac
27136
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27137
 
$as_echo "$ac_try_echo") >&5
27138
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27139
 
  ac_status=$?
27140
 
  grep -v '^ *+' conftest.er1 >conftest.err
27141
 
  rm -f conftest.er1
27142
 
  cat conftest.err >&5
27143
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144
 
  (exit $ac_status); } >/dev/null && {
27145
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27146
 
         test ! -s conftest.err
27147
 
       }; then
27148
 
  ac_header_preproc=yes
27149
 
else
27150
 
  $as_echo "$as_me: failed program was:" >&5
27151
 
sed 's/^/| /' conftest.$ac_ext >&5
27152
 
 
27153
 
  ac_header_preproc=no
27154
 
fi
27155
 
 
27156
 
rm -f conftest.err conftest.$ac_ext
27157
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27158
 
$as_echo "$ac_header_preproc" >&6; }
27159
 
 
27160
 
# So?  What about this header?
27161
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27162
 
  yes:no: )
27163
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27164
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27165
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27166
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27167
 
    ac_header_preproc=yes
27168
 
    ;;
27169
 
  no:yes:* )
27170
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27171
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27172
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27173
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27174
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27175
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27176
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27177
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27178
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27179
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27180
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27181
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27182
 
 
27183
 
    ;;
27184
 
esac
27185
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27186
 
$as_echo_n "checking for $ac_header... " >&6; }
27187
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27188
 
  $as_echo_n "(cached) " >&6
27189
 
else
27190
 
  eval "$as_ac_Header=\$ac_header_preproc"
27191
 
fi
27192
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
27193
 
                 $as_echo "$as_val"'`
27194
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27195
 
$as_echo "$ac_res" >&6; }
27196
 
 
27197
 
fi
27198
 
as_val=`eval 'as_val=${'$as_ac_Header'}
27199
 
                 $as_echo "$as_val"'`
27200
 
   if test "x$as_val" = x""yes; then
 
25571
    for ac_header in pthread.h
 
25572
do :
 
25573
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
25574
if test "x$ac_cv_header_pthread_h" = x""yes; then :
27201
25575
  cat >>confdefs.h <<_ACEOF
27202
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25576
#define HAVE_PTHREAD_H 1
27203
25577
_ACEOF
27204
25578
   enable_threads="pthread"
27205
25579
else
27228
25602
 
27229
25603
 
27230
25604
 
27231
 
{ $as_echo "$as_me:$LINENO: checking for CFLAGS needed for pthreads" >&5
 
25605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
27232
25606
$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
27233
 
if test "${apr_cv_pthreads_cflags+set}" = set; then
 
25607
if test "${apr_cv_pthreads_cflags+set}" = set; then :
27234
25608
  $as_echo_n "(cached) " >&6
27235
25609
else
27236
25610
  apr_ptc_cflags=$CFLAGS
27238
25612
    CFLAGS=$apr_ptc_cflags
27239
25613
    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
27240
25614
 
27241
 
if test "$cross_compiling" = yes; then
 
25615
if test "$cross_compiling" = yes; then :
27242
25616
  apr_p_t_r=no
27243
25617
else
27244
 
  cat >conftest.$ac_ext <<_ACEOF
27245
 
/* confdefs.h.  */
27246
 
_ACEOF
27247
 
cat confdefs.h >>conftest.$ac_ext
27248
 
cat >>conftest.$ac_ext <<_ACEOF
 
25618
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27249
25619
/* end confdefs.h.  */
27250
25620
 
27251
25621
#include <pthread.h>
27264
25634
    return pthread_create(&thd, NULL, thread_routine, &data);
27265
25635
}
27266
25636
_ACEOF
27267
 
rm -f conftest$ac_exeext
27268
 
if { (ac_try="$ac_link"
27269
 
case "(($ac_try" in
27270
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271
 
  *) ac_try_echo=$ac_try;;
27272
 
esac
27273
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27274
 
$as_echo "$ac_try_echo") >&5
27275
 
  (eval "$ac_link") 2>&5
27276
 
  ac_status=$?
27277
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27279
 
  { (case "(($ac_try" in
27280
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281
 
  *) ac_try_echo=$ac_try;;
27282
 
esac
27283
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27284
 
$as_echo "$ac_try_echo") >&5
27285
 
  (eval "$ac_try") 2>&5
27286
 
  ac_status=$?
27287
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288
 
  (exit $ac_status); }; }; then
 
25637
if ac_fn_c_try_run "$LINENO"; then :
27289
25638
  apr_p_t_r=yes
27290
25639
else
27291
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
27292
 
$as_echo "$as_me: failed program was:" >&5
27293
 
sed 's/^/| /' conftest.$ac_ext >&5
27294
 
 
27295
 
( exit $ac_status )
27296
 
apr_p_t_r=no
27297
 
fi
27298
 
rm -rf conftest.dSYM
27299
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27300
 
fi
27301
 
 
 
25640
  apr_p_t_r=no
 
25641
fi
 
25642
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
25643
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
25644
fi
27302
25645
 
27303
25646
 
27304
25647
if test $apr_p_t_r = yes; then
27313
25656
 CFLAGS=$apr_ptc_cflags
27314
25657
 
27315
25658
fi
27316
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_pthreads_cflags" >&5
 
25659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
27317
25660
$as_echo "$apr_cv_pthreads_cflags" >&6; }
27318
25661
 
27319
25662
if test -n "$apr_cv_pthreads_cflags"; then
27349
25692
# gcc ignore -pthread when linking a shared object.  So always
27350
25693
# try and add the relevant library to LIBS too.
27351
25694
 
27352
 
{ $as_echo "$as_me:$LINENO: checking for LIBS needed for pthreads" >&5
 
25695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
27353
25696
$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
27354
 
if test "${apr_cv_pthreads_lib+set}" = set; then
 
25697
if test "${apr_cv_pthreads_lib+set}" = set; then :
27355
25698
  $as_echo_n "(cached) " >&6
27356
25699
else
27357
25700
 
27359
25702
  for lib in -lpthread -lpthreads -lc_r; do
27360
25703
    LIBS="$apr_ptc_libs $lib"
27361
25704
 
27362
 
if test "$cross_compiling" = yes; then
 
25705
if test "$cross_compiling" = yes; then :
27363
25706
  apr_p_t_r=no
27364
25707
else
27365
 
  cat >conftest.$ac_ext <<_ACEOF
27366
 
/* confdefs.h.  */
27367
 
_ACEOF
27368
 
cat confdefs.h >>conftest.$ac_ext
27369
 
cat >>conftest.$ac_ext <<_ACEOF
 
25708
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27370
25709
/* end confdefs.h.  */
27371
25710
 
27372
25711
#include <pthread.h>
27385
25724
    return pthread_create(&thd, NULL, thread_routine, &data);
27386
25725
}
27387
25726
_ACEOF
27388
 
rm -f conftest$ac_exeext
27389
 
if { (ac_try="$ac_link"
27390
 
case "(($ac_try" in
27391
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392
 
  *) ac_try_echo=$ac_try;;
27393
 
esac
27394
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27395
 
$as_echo "$ac_try_echo") >&5
27396
 
  (eval "$ac_link") 2>&5
27397
 
  ac_status=$?
27398
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27400
 
  { (case "(($ac_try" in
27401
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402
 
  *) ac_try_echo=$ac_try;;
27403
 
esac
27404
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27405
 
$as_echo "$ac_try_echo") >&5
27406
 
  (eval "$ac_try") 2>&5
27407
 
  ac_status=$?
27408
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409
 
  (exit $ac_status); }; }; then
 
25727
if ac_fn_c_try_run "$LINENO"; then :
27410
25728
  apr_p_t_r=yes
27411
25729
else
27412
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
27413
 
$as_echo "$as_me: failed program was:" >&5
27414
 
sed 's/^/| /' conftest.$ac_ext >&5
27415
 
 
27416
 
( exit $ac_status )
27417
 
apr_p_t_r=no
27418
 
fi
27419
 
rm -rf conftest.dSYM
27420
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27421
 
fi
27422
 
 
 
25730
  apr_p_t_r=no
 
25731
fi
 
25732
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
25733
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
25734
fi
27423
25735
 
27424
25736
 
27425
25737
if test $apr_p_t_r = yes; then
27434
25746
  LIBS=$apr_ptc_libs
27435
25747
 
27436
25748
fi
27437
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_pthreads_lib" >&5
 
25749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
27438
25750
$as_echo "$apr_cv_pthreads_lib" >&6; }
27439
25751
 
27440
25752
if test -n "$apr_cv_pthreads_lib"; then
27472
25784
  if test "$GCC" = "yes"; then
27473
25785
    SAVE_FL="$CPPFLAGS"
27474
25786
    CPPFLAGS="$CPPFLAGS -w"
27475
 
 
27476
 
for ac_header in pthread.h
27477
 
do
27478
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27479
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27480
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27481
 
$as_echo_n "checking for $ac_header... " >&6; }
27482
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27483
 
  $as_echo_n "(cached) " >&6
27484
 
fi
27485
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
27486
 
                 $as_echo "$as_val"'`
27487
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27488
 
$as_echo "$ac_res" >&6; }
27489
 
else
27490
 
  # Is the header compilable?
27491
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27492
 
$as_echo_n "checking $ac_header usability... " >&6; }
27493
 
cat >conftest.$ac_ext <<_ACEOF
27494
 
/* confdefs.h.  */
27495
 
_ACEOF
27496
 
cat confdefs.h >>conftest.$ac_ext
27497
 
cat >>conftest.$ac_ext <<_ACEOF
27498
 
/* end confdefs.h.  */
27499
 
$ac_includes_default
27500
 
#include <$ac_header>
27501
 
_ACEOF
27502
 
rm -f conftest.$ac_objext
27503
 
if { (ac_try="$ac_compile"
27504
 
case "(($ac_try" in
27505
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506
 
  *) ac_try_echo=$ac_try;;
27507
 
esac
27508
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27509
 
$as_echo "$ac_try_echo") >&5
27510
 
  (eval "$ac_compile") 2>conftest.er1
27511
 
  ac_status=$?
27512
 
  grep -v '^ *+' conftest.er1 >conftest.err
27513
 
  rm -f conftest.er1
27514
 
  cat conftest.err >&5
27515
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516
 
  (exit $ac_status); } && {
27517
 
         test -z "$ac_c_werror_flag" ||
27518
 
         test ! -s conftest.err
27519
 
       } && test -s conftest.$ac_objext; then
27520
 
  ac_header_compiler=yes
27521
 
else
27522
 
  $as_echo "$as_me: failed program was:" >&5
27523
 
sed 's/^/| /' conftest.$ac_ext >&5
27524
 
 
27525
 
        ac_header_compiler=no
27526
 
fi
27527
 
 
27528
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27529
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27530
 
$as_echo "$ac_header_compiler" >&6; }
27531
 
 
27532
 
# Is the header present?
27533
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27534
 
$as_echo_n "checking $ac_header presence... " >&6; }
27535
 
cat >conftest.$ac_ext <<_ACEOF
27536
 
/* confdefs.h.  */
27537
 
_ACEOF
27538
 
cat confdefs.h >>conftest.$ac_ext
27539
 
cat >>conftest.$ac_ext <<_ACEOF
27540
 
/* end confdefs.h.  */
27541
 
#include <$ac_header>
27542
 
_ACEOF
27543
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
27544
 
case "(($ac_try" in
27545
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27546
 
  *) ac_try_echo=$ac_try;;
27547
 
esac
27548
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27549
 
$as_echo "$ac_try_echo") >&5
27550
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27551
 
  ac_status=$?
27552
 
  grep -v '^ *+' conftest.er1 >conftest.err
27553
 
  rm -f conftest.er1
27554
 
  cat conftest.err >&5
27555
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556
 
  (exit $ac_status); } >/dev/null && {
27557
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27558
 
         test ! -s conftest.err
27559
 
       }; then
27560
 
  ac_header_preproc=yes
27561
 
else
27562
 
  $as_echo "$as_me: failed program was:" >&5
27563
 
sed 's/^/| /' conftest.$ac_ext >&5
27564
 
 
27565
 
  ac_header_preproc=no
27566
 
fi
27567
 
 
27568
 
rm -f conftest.err conftest.$ac_ext
27569
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27570
 
$as_echo "$ac_header_preproc" >&6; }
27571
 
 
27572
 
# So?  What about this header?
27573
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27574
 
  yes:no: )
27575
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27576
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27577
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27578
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27579
 
    ac_header_preproc=yes
27580
 
    ;;
27581
 
  no:yes:* )
27582
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27583
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27584
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27585
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27586
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27587
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27588
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27589
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27590
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27591
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27592
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27593
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27594
 
 
27595
 
    ;;
27596
 
esac
27597
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27598
 
$as_echo_n "checking for $ac_header... " >&6; }
27599
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27600
 
  $as_echo_n "(cached) " >&6
27601
 
else
27602
 
  eval "$as_ac_Header=\$ac_header_preproc"
27603
 
fi
27604
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
27605
 
                 $as_echo "$as_val"'`
27606
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27607
 
$as_echo "$ac_res" >&6; }
27608
 
 
27609
 
fi
27610
 
as_val=`eval 'as_val=${'$as_ac_Header'}
27611
 
                 $as_echo "$as_val"'`
27612
 
   if test "x$as_val" = x""yes; then
 
25787
    for ac_header in pthread.h
 
25788
do :
 
25789
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
25790
if test "x$ac_cv_header_pthread_h" = x""yes; then :
27613
25791
  cat >>confdefs.h <<_ACEOF
27614
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25792
#define HAVE_PTHREAD_H 1
27615
25793
_ACEOF
27616
25794
 
27617
25795
          threads="1"
27632
25810
 
27633
25811
    CPPFLAGS="$SAVE_FL"
27634
25812
  else
27635
 
 
27636
 
for ac_header in pthread.h
27637
 
do
27638
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27639
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27640
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27641
 
$as_echo_n "checking for $ac_header... " >&6; }
27642
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27643
 
  $as_echo_n "(cached) " >&6
27644
 
fi
27645
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
27646
 
                 $as_echo "$as_val"'`
27647
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27648
 
$as_echo "$ac_res" >&6; }
27649
 
else
27650
 
  # Is the header compilable?
27651
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27652
 
$as_echo_n "checking $ac_header usability... " >&6; }
27653
 
cat >conftest.$ac_ext <<_ACEOF
27654
 
/* confdefs.h.  */
27655
 
_ACEOF
27656
 
cat confdefs.h >>conftest.$ac_ext
27657
 
cat >>conftest.$ac_ext <<_ACEOF
27658
 
/* end confdefs.h.  */
27659
 
$ac_includes_default
27660
 
#include <$ac_header>
27661
 
_ACEOF
27662
 
rm -f conftest.$ac_objext
27663
 
if { (ac_try="$ac_compile"
27664
 
case "(($ac_try" in
27665
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666
 
  *) ac_try_echo=$ac_try;;
27667
 
esac
27668
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27669
 
$as_echo "$ac_try_echo") >&5
27670
 
  (eval "$ac_compile") 2>conftest.er1
27671
 
  ac_status=$?
27672
 
  grep -v '^ *+' conftest.er1 >conftest.err
27673
 
  rm -f conftest.er1
27674
 
  cat conftest.err >&5
27675
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676
 
  (exit $ac_status); } && {
27677
 
         test -z "$ac_c_werror_flag" ||
27678
 
         test ! -s conftest.err
27679
 
       } && test -s conftest.$ac_objext; then
27680
 
  ac_header_compiler=yes
27681
 
else
27682
 
  $as_echo "$as_me: failed program was:" >&5
27683
 
sed 's/^/| /' conftest.$ac_ext >&5
27684
 
 
27685
 
        ac_header_compiler=no
27686
 
fi
27687
 
 
27688
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27689
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27690
 
$as_echo "$ac_header_compiler" >&6; }
27691
 
 
27692
 
# Is the header present?
27693
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27694
 
$as_echo_n "checking $ac_header presence... " >&6; }
27695
 
cat >conftest.$ac_ext <<_ACEOF
27696
 
/* confdefs.h.  */
27697
 
_ACEOF
27698
 
cat confdefs.h >>conftest.$ac_ext
27699
 
cat >>conftest.$ac_ext <<_ACEOF
27700
 
/* end confdefs.h.  */
27701
 
#include <$ac_header>
27702
 
_ACEOF
27703
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
27704
 
case "(($ac_try" in
27705
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706
 
  *) ac_try_echo=$ac_try;;
27707
 
esac
27708
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27709
 
$as_echo "$ac_try_echo") >&5
27710
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27711
 
  ac_status=$?
27712
 
  grep -v '^ *+' conftest.er1 >conftest.err
27713
 
  rm -f conftest.er1
27714
 
  cat conftest.err >&5
27715
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716
 
  (exit $ac_status); } >/dev/null && {
27717
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27718
 
         test ! -s conftest.err
27719
 
       }; then
27720
 
  ac_header_preproc=yes
27721
 
else
27722
 
  $as_echo "$as_me: failed program was:" >&5
27723
 
sed 's/^/| /' conftest.$ac_ext >&5
27724
 
 
27725
 
  ac_header_preproc=no
27726
 
fi
27727
 
 
27728
 
rm -f conftest.err conftest.$ac_ext
27729
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27730
 
$as_echo "$ac_header_preproc" >&6; }
27731
 
 
27732
 
# So?  What about this header?
27733
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27734
 
  yes:no: )
27735
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27736
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27737
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27738
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27739
 
    ac_header_preproc=yes
27740
 
    ;;
27741
 
  no:yes:* )
27742
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27743
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27744
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27745
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27746
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27747
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27748
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27749
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27750
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27751
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27752
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27753
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27754
 
 
27755
 
    ;;
27756
 
esac
27757
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27758
 
$as_echo_n "checking for $ac_header... " >&6; }
27759
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27760
 
  $as_echo_n "(cached) " >&6
27761
 
else
27762
 
  eval "$as_ac_Header=\$ac_header_preproc"
27763
 
fi
27764
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
27765
 
                 $as_echo "$as_val"'`
27766
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27767
 
$as_echo "$ac_res" >&6; }
27768
 
 
27769
 
fi
27770
 
as_val=`eval 'as_val=${'$as_ac_Header'}
27771
 
                 $as_echo "$as_val"'`
27772
 
   if test "x$as_val" = x""yes; then
 
25813
    for ac_header in pthread.h
 
25814
do :
 
25815
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
25816
if test "x$ac_cv_header_pthread_h" = x""yes; then :
27773
25817
  cat >>confdefs.h <<_ACEOF
27774
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
25818
#define HAVE_PTHREAD_H 1
27775
25819
_ACEOF
27776
25820
 
27777
25821
          threads="1"
27806
25850
 
27807
25851
 
27808
25852
 
27809
 
{ $as_echo "$as_me:$LINENO: checking for CFLAGS needed for pthreads" >&5
 
25853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
27810
25854
$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
27811
 
if test "${apr_cv_pthreads_cflags+set}" = set; then
 
25855
if test "${apr_cv_pthreads_cflags+set}" = set; then :
27812
25856
  $as_echo_n "(cached) " >&6
27813
25857
else
27814
25858
  apr_ptc_cflags=$CFLAGS
27816
25860
    CFLAGS=$apr_ptc_cflags
27817
25861
    test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
27818
25862
 
27819
 
if test "$cross_compiling" = yes; then
 
25863
if test "$cross_compiling" = yes; then :
27820
25864
  apr_p_t_r=no
27821
25865
else
27822
 
  cat >conftest.$ac_ext <<_ACEOF
27823
 
/* confdefs.h.  */
27824
 
_ACEOF
27825
 
cat confdefs.h >>conftest.$ac_ext
27826
 
cat >>conftest.$ac_ext <<_ACEOF
 
25866
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27827
25867
/* end confdefs.h.  */
27828
25868
 
27829
25869
#include <pthread.h>
27842
25882
    return pthread_create(&thd, NULL, thread_routine, &data);
27843
25883
}
27844
25884
_ACEOF
27845
 
rm -f conftest$ac_exeext
27846
 
if { (ac_try="$ac_link"
27847
 
case "(($ac_try" in
27848
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849
 
  *) ac_try_echo=$ac_try;;
27850
 
esac
27851
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27852
 
$as_echo "$ac_try_echo") >&5
27853
 
  (eval "$ac_link") 2>&5
27854
 
  ac_status=$?
27855
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27857
 
  { (case "(($ac_try" in
27858
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27859
 
  *) ac_try_echo=$ac_try;;
27860
 
esac
27861
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27862
 
$as_echo "$ac_try_echo") >&5
27863
 
  (eval "$ac_try") 2>&5
27864
 
  ac_status=$?
27865
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866
 
  (exit $ac_status); }; }; then
 
25885
if ac_fn_c_try_run "$LINENO"; then :
27867
25886
  apr_p_t_r=yes
27868
25887
else
27869
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
27870
 
$as_echo "$as_me: failed program was:" >&5
27871
 
sed 's/^/| /' conftest.$ac_ext >&5
27872
 
 
27873
 
( exit $ac_status )
27874
 
apr_p_t_r=no
27875
 
fi
27876
 
rm -rf conftest.dSYM
27877
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27878
 
fi
27879
 
 
 
25888
  apr_p_t_r=no
 
25889
fi
 
25890
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
25891
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
25892
fi
27880
25893
 
27881
25894
 
27882
25895
if test $apr_p_t_r = yes; then
27891
25904
 CFLAGS=$apr_ptc_cflags
27892
25905
 
27893
25906
fi
27894
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_pthreads_cflags" >&5
 
25907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
27895
25908
$as_echo "$apr_cv_pthreads_cflags" >&6; }
27896
25909
 
27897
25910
if test -n "$apr_cv_pthreads_cflags"; then
27927
25940
# gcc ignore -pthread when linking a shared object.  So always
27928
25941
# try and add the relevant library to LIBS too.
27929
25942
 
27930
 
{ $as_echo "$as_me:$LINENO: checking for LIBS needed for pthreads" >&5
 
25943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
27931
25944
$as_echo_n "checking for LIBS needed for pthreads... " >&6; }
27932
 
if test "${apr_cv_pthreads_lib+set}" = set; then
 
25945
if test "${apr_cv_pthreads_lib+set}" = set; then :
27933
25946
  $as_echo_n "(cached) " >&6
27934
25947
else
27935
25948
 
27937
25950
  for lib in -lpthread -lpthreads -lc_r; do
27938
25951
    LIBS="$apr_ptc_libs $lib"
27939
25952
 
27940
 
if test "$cross_compiling" = yes; then
 
25953
if test "$cross_compiling" = yes; then :
27941
25954
  apr_p_t_r=no
27942
25955
else
27943
 
  cat >conftest.$ac_ext <<_ACEOF
27944
 
/* confdefs.h.  */
27945
 
_ACEOF
27946
 
cat confdefs.h >>conftest.$ac_ext
27947
 
cat >>conftest.$ac_ext <<_ACEOF
 
25956
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27948
25957
/* end confdefs.h.  */
27949
25958
 
27950
25959
#include <pthread.h>
27963
25972
    return pthread_create(&thd, NULL, thread_routine, &data);
27964
25973
}
27965
25974
_ACEOF
27966
 
rm -f conftest$ac_exeext
27967
 
if { (ac_try="$ac_link"
27968
 
case "(($ac_try" in
27969
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970
 
  *) ac_try_echo=$ac_try;;
27971
 
esac
27972
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27973
 
$as_echo "$ac_try_echo") >&5
27974
 
  (eval "$ac_link") 2>&5
27975
 
  ac_status=$?
27976
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27978
 
  { (case "(($ac_try" in
27979
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980
 
  *) ac_try_echo=$ac_try;;
27981
 
esac
27982
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27983
 
$as_echo "$ac_try_echo") >&5
27984
 
  (eval "$ac_try") 2>&5
27985
 
  ac_status=$?
27986
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987
 
  (exit $ac_status); }; }; then
 
25975
if ac_fn_c_try_run "$LINENO"; then :
27988
25976
  apr_p_t_r=yes
27989
25977
else
27990
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
27991
 
$as_echo "$as_me: failed program was:" >&5
27992
 
sed 's/^/| /' conftest.$ac_ext >&5
27993
 
 
27994
 
( exit $ac_status )
27995
 
apr_p_t_r=no
27996
 
fi
27997
 
rm -rf conftest.dSYM
27998
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27999
 
fi
28000
 
 
 
25978
  apr_p_t_r=no
 
25979
fi
 
25980
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
25981
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
25982
fi
28001
25983
 
28002
25984
 
28003
25985
if test $apr_p_t_r = yes; then
28012
25994
  LIBS=$apr_ptc_libs
28013
25995
 
28014
25996
fi
28015
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_pthreads_lib" >&5
 
25997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
28016
25998
$as_echo "$apr_cv_pthreads_lib" >&6; }
28017
25999
 
28018
26000
if test -n "$apr_cv_pthreads_lib"; then
28050
26032
  if test "$GCC" = "yes"; then
28051
26033
    SAVE_FL="$CPPFLAGS"
28052
26034
    CPPFLAGS="$CPPFLAGS -w"
28053
 
 
28054
 
for ac_header in pthread.h
28055
 
do
28056
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28057
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28058
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28059
 
$as_echo_n "checking for $ac_header... " >&6; }
28060
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28061
 
  $as_echo_n "(cached) " >&6
28062
 
fi
28063
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
28064
 
                 $as_echo "$as_val"'`
28065
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28066
 
$as_echo "$ac_res" >&6; }
28067
 
else
28068
 
  # Is the header compilable?
28069
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28070
 
$as_echo_n "checking $ac_header usability... " >&6; }
28071
 
cat >conftest.$ac_ext <<_ACEOF
28072
 
/* confdefs.h.  */
28073
 
_ACEOF
28074
 
cat confdefs.h >>conftest.$ac_ext
28075
 
cat >>conftest.$ac_ext <<_ACEOF
28076
 
/* end confdefs.h.  */
28077
 
$ac_includes_default
28078
 
#include <$ac_header>
28079
 
_ACEOF
28080
 
rm -f conftest.$ac_objext
28081
 
if { (ac_try="$ac_compile"
28082
 
case "(($ac_try" in
28083
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28084
 
  *) ac_try_echo=$ac_try;;
28085
 
esac
28086
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28087
 
$as_echo "$ac_try_echo") >&5
28088
 
  (eval "$ac_compile") 2>conftest.er1
28089
 
  ac_status=$?
28090
 
  grep -v '^ *+' conftest.er1 >conftest.err
28091
 
  rm -f conftest.er1
28092
 
  cat conftest.err >&5
28093
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094
 
  (exit $ac_status); } && {
28095
 
         test -z "$ac_c_werror_flag" ||
28096
 
         test ! -s conftest.err
28097
 
       } && test -s conftest.$ac_objext; then
28098
 
  ac_header_compiler=yes
28099
 
else
28100
 
  $as_echo "$as_me: failed program was:" >&5
28101
 
sed 's/^/| /' conftest.$ac_ext >&5
28102
 
 
28103
 
        ac_header_compiler=no
28104
 
fi
28105
 
 
28106
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28107
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28108
 
$as_echo "$ac_header_compiler" >&6; }
28109
 
 
28110
 
# Is the header present?
28111
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28112
 
$as_echo_n "checking $ac_header presence... " >&6; }
28113
 
cat >conftest.$ac_ext <<_ACEOF
28114
 
/* confdefs.h.  */
28115
 
_ACEOF
28116
 
cat confdefs.h >>conftest.$ac_ext
28117
 
cat >>conftest.$ac_ext <<_ACEOF
28118
 
/* end confdefs.h.  */
28119
 
#include <$ac_header>
28120
 
_ACEOF
28121
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
28122
 
case "(($ac_try" in
28123
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28124
 
  *) ac_try_echo=$ac_try;;
28125
 
esac
28126
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28127
 
$as_echo "$ac_try_echo") >&5
28128
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28129
 
  ac_status=$?
28130
 
  grep -v '^ *+' conftest.er1 >conftest.err
28131
 
  rm -f conftest.er1
28132
 
  cat conftest.err >&5
28133
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134
 
  (exit $ac_status); } >/dev/null && {
28135
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28136
 
         test ! -s conftest.err
28137
 
       }; then
28138
 
  ac_header_preproc=yes
28139
 
else
28140
 
  $as_echo "$as_me: failed program was:" >&5
28141
 
sed 's/^/| /' conftest.$ac_ext >&5
28142
 
 
28143
 
  ac_header_preproc=no
28144
 
fi
28145
 
 
28146
 
rm -f conftest.err conftest.$ac_ext
28147
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28148
 
$as_echo "$ac_header_preproc" >&6; }
28149
 
 
28150
 
# So?  What about this header?
28151
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28152
 
  yes:no: )
28153
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28154
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28155
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28156
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28157
 
    ac_header_preproc=yes
28158
 
    ;;
28159
 
  no:yes:* )
28160
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28161
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28162
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28163
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28164
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28165
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28166
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28167
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28168
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28169
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28170
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28171
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28172
 
 
28173
 
    ;;
28174
 
esac
28175
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28176
 
$as_echo_n "checking for $ac_header... " >&6; }
28177
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28178
 
  $as_echo_n "(cached) " >&6
28179
 
else
28180
 
  eval "$as_ac_Header=\$ac_header_preproc"
28181
 
fi
28182
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
28183
 
                 $as_echo "$as_val"'`
28184
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28185
 
$as_echo "$ac_res" >&6; }
28186
 
 
28187
 
fi
28188
 
as_val=`eval 'as_val=${'$as_ac_Header'}
28189
 
                 $as_echo "$as_val"'`
28190
 
   if test "x$as_val" = x""yes; then
 
26035
    for ac_header in pthread.h
 
26036
do :
 
26037
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
26038
if test "x$ac_cv_header_pthread_h" = x""yes; then :
28191
26039
  cat >>confdefs.h <<_ACEOF
28192
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26040
#define HAVE_PTHREAD_H 1
28193
26041
_ACEOF
28194
26042
 
28195
26043
          threads="1"
28210
26058
 
28211
26059
    CPPFLAGS="$SAVE_FL"
28212
26060
  else
28213
 
 
28214
 
for ac_header in pthread.h
28215
 
do
28216
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28217
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28218
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28219
 
$as_echo_n "checking for $ac_header... " >&6; }
28220
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28221
 
  $as_echo_n "(cached) " >&6
28222
 
fi
28223
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
28224
 
                 $as_echo "$as_val"'`
28225
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28226
 
$as_echo "$ac_res" >&6; }
28227
 
else
28228
 
  # Is the header compilable?
28229
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28230
 
$as_echo_n "checking $ac_header usability... " >&6; }
28231
 
cat >conftest.$ac_ext <<_ACEOF
28232
 
/* confdefs.h.  */
28233
 
_ACEOF
28234
 
cat confdefs.h >>conftest.$ac_ext
28235
 
cat >>conftest.$ac_ext <<_ACEOF
28236
 
/* end confdefs.h.  */
28237
 
$ac_includes_default
28238
 
#include <$ac_header>
28239
 
_ACEOF
28240
 
rm -f conftest.$ac_objext
28241
 
if { (ac_try="$ac_compile"
28242
 
case "(($ac_try" in
28243
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244
 
  *) ac_try_echo=$ac_try;;
28245
 
esac
28246
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28247
 
$as_echo "$ac_try_echo") >&5
28248
 
  (eval "$ac_compile") 2>conftest.er1
28249
 
  ac_status=$?
28250
 
  grep -v '^ *+' conftest.er1 >conftest.err
28251
 
  rm -f conftest.er1
28252
 
  cat conftest.err >&5
28253
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254
 
  (exit $ac_status); } && {
28255
 
         test -z "$ac_c_werror_flag" ||
28256
 
         test ! -s conftest.err
28257
 
       } && test -s conftest.$ac_objext; then
28258
 
  ac_header_compiler=yes
28259
 
else
28260
 
  $as_echo "$as_me: failed program was:" >&5
28261
 
sed 's/^/| /' conftest.$ac_ext >&5
28262
 
 
28263
 
        ac_header_compiler=no
28264
 
fi
28265
 
 
28266
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28267
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28268
 
$as_echo "$ac_header_compiler" >&6; }
28269
 
 
28270
 
# Is the header present?
28271
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28272
 
$as_echo_n "checking $ac_header presence... " >&6; }
28273
 
cat >conftest.$ac_ext <<_ACEOF
28274
 
/* confdefs.h.  */
28275
 
_ACEOF
28276
 
cat confdefs.h >>conftest.$ac_ext
28277
 
cat >>conftest.$ac_ext <<_ACEOF
28278
 
/* end confdefs.h.  */
28279
 
#include <$ac_header>
28280
 
_ACEOF
28281
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
28282
 
case "(($ac_try" in
28283
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284
 
  *) ac_try_echo=$ac_try;;
28285
 
esac
28286
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28287
 
$as_echo "$ac_try_echo") >&5
28288
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28289
 
  ac_status=$?
28290
 
  grep -v '^ *+' conftest.er1 >conftest.err
28291
 
  rm -f conftest.er1
28292
 
  cat conftest.err >&5
28293
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294
 
  (exit $ac_status); } >/dev/null && {
28295
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28296
 
         test ! -s conftest.err
28297
 
       }; then
28298
 
  ac_header_preproc=yes
28299
 
else
28300
 
  $as_echo "$as_me: failed program was:" >&5
28301
 
sed 's/^/| /' conftest.$ac_ext >&5
28302
 
 
28303
 
  ac_header_preproc=no
28304
 
fi
28305
 
 
28306
 
rm -f conftest.err conftest.$ac_ext
28307
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28308
 
$as_echo "$ac_header_preproc" >&6; }
28309
 
 
28310
 
# So?  What about this header?
28311
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28312
 
  yes:no: )
28313
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28314
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28315
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28316
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28317
 
    ac_header_preproc=yes
28318
 
    ;;
28319
 
  no:yes:* )
28320
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28321
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28322
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28323
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28324
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28325
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28326
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28327
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28328
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28329
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28330
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28331
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28332
 
 
28333
 
    ;;
28334
 
esac
28335
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28336
 
$as_echo_n "checking for $ac_header... " >&6; }
28337
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28338
 
  $as_echo_n "(cached) " >&6
28339
 
else
28340
 
  eval "$as_ac_Header=\$ac_header_preproc"
28341
 
fi
28342
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
28343
 
                 $as_echo "$as_val"'`
28344
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28345
 
$as_echo "$ac_res" >&6; }
28346
 
 
28347
 
fi
28348
 
as_val=`eval 'as_val=${'$as_ac_Header'}
28349
 
                 $as_echo "$as_val"'`
28350
 
   if test "x$as_val" = x""yes; then
 
26061
    for ac_header in pthread.h
 
26062
do :
 
26063
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
26064
if test "x$ac_cv_header_pthread_h" = x""yes; then :
28351
26065
  cat >>confdefs.h <<_ACEOF
28352
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26066
#define HAVE_PTHREAD_H 1
28353
26067
_ACEOF
28354
26068
 
28355
26069
          threads="1"
28373
26087
    fi
28374
26088
    if test "$pthreadh" = "1"; then
28375
26089
 
28376
 
{ $as_echo "$as_me:$LINENO: checking whether pthread_getspecific takes two arguments" >&5
 
26090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
28377
26091
$as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
28378
 
if test "${ac_cv_pthread_getspecific_two_args+set}" = set; then
 
26092
if test "${ac_cv_pthread_getspecific_two_args+set}" = set; then :
28379
26093
  $as_echo_n "(cached) " >&6
28380
26094
else
28381
26095
 
28382
 
cat >conftest.$ac_ext <<_ACEOF
28383
 
/* confdefs.h.  */
28384
 
_ACEOF
28385
 
cat confdefs.h >>conftest.$ac_ext
28386
 
cat >>conftest.$ac_ext <<_ACEOF
 
26096
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28387
26097
/* end confdefs.h.  */
28388
26098
 
28389
26099
#include <pthread.h>
28400
26110
  return 0;
28401
26111
}
28402
26112
_ACEOF
28403
 
rm -f conftest.$ac_objext
28404
 
if { (ac_try="$ac_compile"
28405
 
case "(($ac_try" in
28406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407
 
  *) ac_try_echo=$ac_try;;
28408
 
esac
28409
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28410
 
$as_echo "$ac_try_echo") >&5
28411
 
  (eval "$ac_compile") 2>conftest.er1
28412
 
  ac_status=$?
28413
 
  grep -v '^ *+' conftest.er1 >conftest.err
28414
 
  rm -f conftest.er1
28415
 
  cat conftest.err >&5
28416
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417
 
  (exit $ac_status); } && {
28418
 
         test -z "$ac_c_werror_flag" ||
28419
 
         test ! -s conftest.err
28420
 
       } && test -s conftest.$ac_objext; then
 
26113
if ac_fn_c_try_compile "$LINENO"; then :
28421
26114
 
28422
26115
    ac_cv_pthread_getspecific_two_args=yes
28423
26116
 
28424
26117
else
28425
 
  $as_echo "$as_me: failed program was:" >&5
28426
 
sed 's/^/| /' conftest.$ac_ext >&5
28427
 
 
28428
26118
 
28429
26119
    ac_cv_pthread_getspecific_two_args=no
28430
26120
 
28431
26121
fi
28432
 
 
28433
26122
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28434
26123
 
28435
26124
fi
28436
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_getspecific_two_args" >&5
 
26125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
28437
26126
$as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
28438
26127
 
28439
26128
if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
28440
26129
 
28441
 
cat >>confdefs.h <<\_ACEOF
28442
 
#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1
28443
 
_ACEOF
 
26130
$as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
28444
26131
 
28445
26132
fi
28446
26133
 
28447
26134
 
28448
 
{ $as_echo "$as_me:$LINENO: checking whether pthread_attr_getdetachstate takes one argument" >&5
 
26135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
28449
26136
$as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
28450
 
if test "${ac_cv_pthread_attr_getdetachstate_one_arg+set}" = set; then
 
26137
if test "${ac_cv_pthread_attr_getdetachstate_one_arg+set}" = set; then :
28451
26138
  $as_echo_n "(cached) " >&6
28452
26139
else
28453
26140
 
28454
 
cat >conftest.$ac_ext <<_ACEOF
28455
 
/* confdefs.h.  */
28456
 
_ACEOF
28457
 
cat confdefs.h >>conftest.$ac_ext
28458
 
cat >>conftest.$ac_ext <<_ACEOF
 
26141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28459
26142
/* end confdefs.h.  */
28460
26143
 
28461
26144
#include <pthread.h>
28471
26154
  return 0;
28472
26155
}
28473
26156
_ACEOF
28474
 
rm -f conftest.$ac_objext
28475
 
if { (ac_try="$ac_compile"
28476
 
case "(($ac_try" in
28477
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478
 
  *) ac_try_echo=$ac_try;;
28479
 
esac
28480
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28481
 
$as_echo "$ac_try_echo") >&5
28482
 
  (eval "$ac_compile") 2>conftest.er1
28483
 
  ac_status=$?
28484
 
  grep -v '^ *+' conftest.er1 >conftest.err
28485
 
  rm -f conftest.er1
28486
 
  cat conftest.err >&5
28487
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488
 
  (exit $ac_status); } && {
28489
 
         test -z "$ac_c_werror_flag" ||
28490
 
         test ! -s conftest.err
28491
 
       } && test -s conftest.$ac_objext; then
 
26157
if ac_fn_c_try_compile "$LINENO"; then :
28492
26158
 
28493
26159
    ac_cv_pthread_attr_getdetachstate_one_arg=yes
28494
26160
 
28495
26161
else
28496
 
  $as_echo "$as_me: failed program was:" >&5
28497
 
sed 's/^/| /' conftest.$ac_ext >&5
28498
 
 
28499
26162
 
28500
26163
    ac_cv_pthread_attr_getdetachstate_one_arg=no
28501
26164
 
28502
26165
fi
28503
 
 
28504
26166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28505
26167
 
28506
26168
fi
28507
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
 
26169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
28508
26170
$as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
28509
26171
 
28510
26172
if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
28511
26173
 
28512
 
cat >>confdefs.h <<\_ACEOF
28513
 
#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1
28514
 
_ACEOF
 
26174
$as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
28515
26175
 
28516
26176
fi
28517
26177
 
28518
26178
 
28519
 
  { $as_echo "$as_me:$LINENO: checking for recursive mutex support" >&5
 
26179
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
28520
26180
$as_echo_n "checking for recursive mutex support... " >&6; }
28521
 
if test "${apr_cv_mutex_recursive+set}" = set; then
 
26181
if test "${apr_cv_mutex_recursive+set}" = set; then :
28522
26182
  $as_echo_n "(cached) " >&6
28523
26183
else
28524
 
  if test "$cross_compiling" = yes; then
 
26184
  if test "$cross_compiling" = yes; then :
28525
26185
  apr_cv_mutex_recursive=no
28526
26186
else
28527
 
  cat >conftest.$ac_ext <<_ACEOF
28528
 
/* confdefs.h.  */
28529
 
_ACEOF
28530
 
cat confdefs.h >>conftest.$ac_ext
28531
 
cat >>conftest.$ac_ext <<_ACEOF
 
26187
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28532
26188
/* end confdefs.h.  */
28533
26189
#include <sys/types.h>
28534
26190
#include <pthread.h>
28543
26199
          || pthread_mutex_init(&m, &attr));
28544
26200
}
28545
26201
_ACEOF
28546
 
rm -f conftest$ac_exeext
28547
 
if { (ac_try="$ac_link"
28548
 
case "(($ac_try" in
28549
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550
 
  *) ac_try_echo=$ac_try;;
28551
 
esac
28552
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28553
 
$as_echo "$ac_try_echo") >&5
28554
 
  (eval "$ac_link") 2>&5
28555
 
  ac_status=$?
28556
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28558
 
  { (case "(($ac_try" in
28559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560
 
  *) ac_try_echo=$ac_try;;
28561
 
esac
28562
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28563
 
$as_echo "$ac_try_echo") >&5
28564
 
  (eval "$ac_try") 2>&5
28565
 
  ac_status=$?
28566
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567
 
  (exit $ac_status); }; }; then
 
26202
if ac_fn_c_try_run "$LINENO"; then :
28568
26203
  apr_cv_mutex_recursive=yes
28569
26204
else
28570
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
28571
 
$as_echo "$as_me: failed program was:" >&5
28572
 
sed 's/^/| /' conftest.$ac_ext >&5
28573
 
 
28574
 
( exit $ac_status )
28575
 
apr_cv_mutex_recursive=no
28576
 
fi
28577
 
rm -rf conftest.dSYM
28578
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28579
 
fi
28580
 
 
28581
 
 
28582
 
fi
28583
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_mutex_recursive" >&5
 
26205
  apr_cv_mutex_recursive=no
 
26206
fi
 
26207
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
26208
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
26209
fi
 
26210
 
 
26211
fi
 
26212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
28584
26213
$as_echo "$apr_cv_mutex_recursive" >&6; }
28585
26214
 
28586
26215
if test "$apr_cv_mutex_recursive" = "yes"; then
28587
26216
 
28588
 
cat >>confdefs.h <<\_ACEOF
28589
 
#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
28590
 
_ACEOF
 
26217
$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
28591
26218
 
28592
26219
fi
28593
26220
 
28594
 
 
28595
 
 
28596
 
 
28597
 
 
28598
 
for ac_func in pthread_key_delete pthread_rwlock_init \
 
26221
        for ac_func in pthread_key_delete pthread_rwlock_init \
28599
26222
                        pthread_attr_setguardsize pthread_yield
28600
 
do
28601
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28602
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28603
 
$as_echo_n "checking for $ac_func... " >&6; }
28604
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28605
 
  $as_echo_n "(cached) " >&6
28606
 
else
28607
 
  cat >conftest.$ac_ext <<_ACEOF
28608
 
/* confdefs.h.  */
28609
 
_ACEOF
28610
 
cat confdefs.h >>conftest.$ac_ext
28611
 
cat >>conftest.$ac_ext <<_ACEOF
28612
 
/* end confdefs.h.  */
28613
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28614
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28615
 
#define $ac_func innocuous_$ac_func
28616
 
 
28617
 
/* System header to define __stub macros and hopefully few prototypes,
28618
 
    which can conflict with char $ac_func (); below.
28619
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28620
 
    <limits.h> exists even on freestanding compilers.  */
28621
 
 
28622
 
#ifdef __STDC__
28623
 
# include <limits.h>
28624
 
#else
28625
 
# include <assert.h>
28626
 
#endif
28627
 
 
28628
 
#undef $ac_func
28629
 
 
28630
 
/* Override any GCC internal prototype to avoid an error.
28631
 
   Use char because int might match the return type of a GCC
28632
 
   builtin and then its argument prototype would still apply.  */
28633
 
#ifdef __cplusplus
28634
 
extern "C"
28635
 
#endif
28636
 
char $ac_func ();
28637
 
/* The GNU C library defines this for functions which it implements
28638
 
    to always fail with ENOSYS.  Some functions are actually named
28639
 
    something starting with __ and the normal name is an alias.  */
28640
 
#if defined __stub_$ac_func || defined __stub___$ac_func
28641
 
choke me
28642
 
#endif
28643
 
 
28644
 
int
28645
 
main ()
28646
 
{
28647
 
return $ac_func ();
28648
 
  ;
28649
 
  return 0;
28650
 
}
28651
 
_ACEOF
28652
 
rm -f conftest.$ac_objext conftest$ac_exeext
28653
 
if { (ac_try="$ac_link"
28654
 
case "(($ac_try" in
28655
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656
 
  *) ac_try_echo=$ac_try;;
28657
 
esac
28658
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28659
 
$as_echo "$ac_try_echo") >&5
28660
 
  (eval "$ac_link") 2>conftest.er1
28661
 
  ac_status=$?
28662
 
  grep -v '^ *+' conftest.er1 >conftest.err
28663
 
  rm -f conftest.er1
28664
 
  cat conftest.err >&5
28665
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666
 
  (exit $ac_status); } && {
28667
 
         test -z "$ac_c_werror_flag" ||
28668
 
         test ! -s conftest.err
28669
 
       } && test -s conftest$ac_exeext && {
28670
 
         test "$cross_compiling" = yes ||
28671
 
         $as_test_x conftest$ac_exeext
28672
 
       }; then
28673
 
  eval "$as_ac_var=yes"
28674
 
else
28675
 
  $as_echo "$as_me: failed program was:" >&5
28676
 
sed 's/^/| /' conftest.$ac_ext >&5
28677
 
 
28678
 
        eval "$as_ac_var=no"
28679
 
fi
28680
 
 
28681
 
rm -rf conftest.dSYM
28682
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28683
 
      conftest$ac_exeext conftest.$ac_ext
28684
 
fi
28685
 
ac_res=`eval 'as_val=${'$as_ac_var'}
28686
 
                 $as_echo "$as_val"'`
28687
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28688
 
$as_echo "$ac_res" >&6; }
28689
 
as_val=`eval 'as_val=${'$as_ac_var'}
28690
 
                 $as_echo "$as_val"'`
28691
 
   if test "x$as_val" = x""yes; then
 
26223
do :
 
26224
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26225
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
26226
eval as_val=\$$as_ac_var
 
26227
   if test "x$as_val" = x""yes; then :
28692
26228
  cat >>confdefs.h <<_ACEOF
28693
26229
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28694
26230
_ACEOF
28698
26234
 
28699
26235
 
28700
26236
        if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
28701
 
                        { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
 
26237
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
28702
26238
$as_echo_n "checking for pthread_rwlock_t... " >&6; }
28703
 
if test "${apr_cv_type_rwlock_t+set}" = set; then
 
26239
if test "${apr_cv_type_rwlock_t+set}" = set; then :
28704
26240
  $as_echo_n "(cached) " >&6
28705
26241
else
28706
 
  cat >conftest.$ac_ext <<_ACEOF
28707
 
/* confdefs.h.  */
28708
 
_ACEOF
28709
 
cat confdefs.h >>conftest.$ac_ext
28710
 
cat >>conftest.$ac_ext <<_ACEOF
 
26242
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28711
26243
/* end confdefs.h.  */
28712
26244
#include <sys/types.h>
28713
26245
#include <pthread.h>
28719
26251
  return 0;
28720
26252
}
28721
26253
_ACEOF
28722
 
rm -f conftest.$ac_objext
28723
 
if { (ac_try="$ac_compile"
28724
 
case "(($ac_try" in
28725
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726
 
  *) ac_try_echo=$ac_try;;
28727
 
esac
28728
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28729
 
$as_echo "$ac_try_echo") >&5
28730
 
  (eval "$ac_compile") 2>conftest.er1
28731
 
  ac_status=$?
28732
 
  grep -v '^ *+' conftest.er1 >conftest.err
28733
 
  rm -f conftest.er1
28734
 
  cat conftest.err >&5
28735
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736
 
  (exit $ac_status); } && {
28737
 
         test -z "$ac_c_werror_flag" ||
28738
 
         test ! -s conftest.err
28739
 
       } && test -s conftest.$ac_objext; then
 
26254
if ac_fn_c_try_compile "$LINENO"; then :
28740
26255
  apr_cv_type_rwlock_t=yes
28741
26256
else
28742
 
  $as_echo "$as_me: failed program was:" >&5
28743
 
sed 's/^/| /' conftest.$ac_ext >&5
28744
 
 
28745
 
        apr_cv_type_rwlock_t=no
 
26257
  apr_cv_type_rwlock_t=no
28746
26258
fi
28747
 
 
28748
26259
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28749
26260
fi
28750
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_type_rwlock_t" >&5
 
26261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
28751
26262
$as_echo "$apr_cv_type_rwlock_t" >&6; }
28752
26263
            if test "$apr_cv_type_rwlock_t" = "yes"; then
28753
26264
 
28754
 
cat >>confdefs.h <<\_ACEOF
28755
 
#define HAVE_PTHREAD_RWLOCKS 1
28756
 
_ACEOF
 
26265
$as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
28757
26266
 
28758
26267
            fi
28759
26268
        fi
28760
26269
 
28761
26270
        if test "$ac_cv_func_pthread_yield" = "no"; then
28762
 
 
28763
 
for ac_header in sched.h
28764
 
do
28765
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28766
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28767
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28768
 
$as_echo_n "checking for $ac_header... " >&6; }
28769
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28770
 
  $as_echo_n "(cached) " >&6
28771
 
fi
28772
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
28773
 
                 $as_echo "$as_val"'`
28774
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28775
 
$as_echo "$ac_res" >&6; }
28776
 
else
28777
 
  # Is the header compilable?
28778
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28779
 
$as_echo_n "checking $ac_header usability... " >&6; }
28780
 
cat >conftest.$ac_ext <<_ACEOF
28781
 
/* confdefs.h.  */
28782
 
_ACEOF
28783
 
cat confdefs.h >>conftest.$ac_ext
28784
 
cat >>conftest.$ac_ext <<_ACEOF
28785
 
/* end confdefs.h.  */
28786
 
$ac_includes_default
28787
 
#include <$ac_header>
28788
 
_ACEOF
28789
 
rm -f conftest.$ac_objext
28790
 
if { (ac_try="$ac_compile"
28791
 
case "(($ac_try" in
28792
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28793
 
  *) ac_try_echo=$ac_try;;
28794
 
esac
28795
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28796
 
$as_echo "$ac_try_echo") >&5
28797
 
  (eval "$ac_compile") 2>conftest.er1
28798
 
  ac_status=$?
28799
 
  grep -v '^ *+' conftest.er1 >conftest.err
28800
 
  rm -f conftest.er1
28801
 
  cat conftest.err >&5
28802
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803
 
  (exit $ac_status); } && {
28804
 
         test -z "$ac_c_werror_flag" ||
28805
 
         test ! -s conftest.err
28806
 
       } && test -s conftest.$ac_objext; then
28807
 
  ac_header_compiler=yes
28808
 
else
28809
 
  $as_echo "$as_me: failed program was:" >&5
28810
 
sed 's/^/| /' conftest.$ac_ext >&5
28811
 
 
28812
 
        ac_header_compiler=no
28813
 
fi
28814
 
 
28815
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28816
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28817
 
$as_echo "$ac_header_compiler" >&6; }
28818
 
 
28819
 
# Is the header present?
28820
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28821
 
$as_echo_n "checking $ac_header presence... " >&6; }
28822
 
cat >conftest.$ac_ext <<_ACEOF
28823
 
/* confdefs.h.  */
28824
 
_ACEOF
28825
 
cat confdefs.h >>conftest.$ac_ext
28826
 
cat >>conftest.$ac_ext <<_ACEOF
28827
 
/* end confdefs.h.  */
28828
 
#include <$ac_header>
28829
 
_ACEOF
28830
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
28831
 
case "(($ac_try" in
28832
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833
 
  *) ac_try_echo=$ac_try;;
28834
 
esac
28835
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28836
 
$as_echo "$ac_try_echo") >&5
28837
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28838
 
  ac_status=$?
28839
 
  grep -v '^ *+' conftest.er1 >conftest.err
28840
 
  rm -f conftest.er1
28841
 
  cat conftest.err >&5
28842
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843
 
  (exit $ac_status); } >/dev/null && {
28844
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28845
 
         test ! -s conftest.err
28846
 
       }; then
28847
 
  ac_header_preproc=yes
28848
 
else
28849
 
  $as_echo "$as_me: failed program was:" >&5
28850
 
sed 's/^/| /' conftest.$ac_ext >&5
28851
 
 
28852
 
  ac_header_preproc=no
28853
 
fi
28854
 
 
28855
 
rm -f conftest.err conftest.$ac_ext
28856
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28857
 
$as_echo "$ac_header_preproc" >&6; }
28858
 
 
28859
 
# So?  What about this header?
28860
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28861
 
  yes:no: )
28862
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28863
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28864
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28865
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28866
 
    ac_header_preproc=yes
28867
 
    ;;
28868
 
  no:yes:* )
28869
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28870
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28871
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28872
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28873
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28874
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28875
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28876
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28877
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28878
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28879
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28880
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28881
 
 
28882
 
    ;;
28883
 
esac
28884
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28885
 
$as_echo_n "checking for $ac_header... " >&6; }
28886
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28887
 
  $as_echo_n "(cached) " >&6
28888
 
else
28889
 
  eval "$as_ac_Header=\$ac_header_preproc"
28890
 
fi
28891
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
28892
 
                 $as_echo "$as_val"'`
28893
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28894
 
$as_echo "$ac_res" >&6; }
28895
 
 
28896
 
fi
28897
 
as_val=`eval 'as_val=${'$as_ac_Header'}
28898
 
                 $as_echo "$as_val"'`
28899
 
   if test "x$as_val" = x""yes; then
 
26271
                        for ac_header in sched.h
 
26272
do :
 
26273
  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
 
26274
if test "x$ac_cv_header_sched_h" = x""yes; then :
28900
26275
  cat >>confdefs.h <<_ACEOF
28901
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
26276
#define HAVE_SCHED_H 1
28902
26277
_ACEOF
28903
26278
 
28904
26279
fi
28905
26280
 
28906
26281
done
28907
26282
 
28908
 
 
28909
 
for ac_func in sched_yield
28910
 
do
28911
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28912
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28913
 
$as_echo_n "checking for $ac_func... " >&6; }
28914
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28915
 
  $as_echo_n "(cached) " >&6
28916
 
else
28917
 
  cat >conftest.$ac_ext <<_ACEOF
28918
 
/* confdefs.h.  */
28919
 
_ACEOF
28920
 
cat confdefs.h >>conftest.$ac_ext
28921
 
cat >>conftest.$ac_ext <<_ACEOF
28922
 
/* end confdefs.h.  */
28923
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28924
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28925
 
#define $ac_func innocuous_$ac_func
28926
 
 
28927
 
/* System header to define __stub macros and hopefully few prototypes,
28928
 
    which can conflict with char $ac_func (); below.
28929
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28930
 
    <limits.h> exists even on freestanding compilers.  */
28931
 
 
28932
 
#ifdef __STDC__
28933
 
# include <limits.h>
28934
 
#else
28935
 
# include <assert.h>
28936
 
#endif
28937
 
 
28938
 
#undef $ac_func
28939
 
 
28940
 
/* Override any GCC internal prototype to avoid an error.
28941
 
   Use char because int might match the return type of a GCC
28942
 
   builtin and then its argument prototype would still apply.  */
28943
 
#ifdef __cplusplus
28944
 
extern "C"
28945
 
#endif
28946
 
char $ac_func ();
28947
 
/* The GNU C library defines this for functions which it implements
28948
 
    to always fail with ENOSYS.  Some functions are actually named
28949
 
    something starting with __ and the normal name is an alias.  */
28950
 
#if defined __stub_$ac_func || defined __stub___$ac_func
28951
 
choke me
28952
 
#endif
28953
 
 
28954
 
int
28955
 
main ()
28956
 
{
28957
 
return $ac_func ();
28958
 
  ;
28959
 
  return 0;
28960
 
}
28961
 
_ACEOF
28962
 
rm -f conftest.$ac_objext conftest$ac_exeext
28963
 
if { (ac_try="$ac_link"
28964
 
case "(($ac_try" in
28965
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28966
 
  *) ac_try_echo=$ac_try;;
28967
 
esac
28968
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28969
 
$as_echo "$ac_try_echo") >&5
28970
 
  (eval "$ac_link") 2>conftest.er1
28971
 
  ac_status=$?
28972
 
  grep -v '^ *+' conftest.er1 >conftest.err
28973
 
  rm -f conftest.er1
28974
 
  cat conftest.err >&5
28975
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976
 
  (exit $ac_status); } && {
28977
 
         test -z "$ac_c_werror_flag" ||
28978
 
         test ! -s conftest.err
28979
 
       } && test -s conftest$ac_exeext && {
28980
 
         test "$cross_compiling" = yes ||
28981
 
         $as_test_x conftest$ac_exeext
28982
 
       }; then
28983
 
  eval "$as_ac_var=yes"
28984
 
else
28985
 
  $as_echo "$as_me: failed program was:" >&5
28986
 
sed 's/^/| /' conftest.$ac_ext >&5
28987
 
 
28988
 
        eval "$as_ac_var=no"
28989
 
fi
28990
 
 
28991
 
rm -rf conftest.dSYM
28992
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28993
 
      conftest$ac_exeext conftest.$ac_ext
28994
 
fi
28995
 
ac_res=`eval 'as_val=${'$as_ac_var'}
28996
 
                 $as_echo "$as_val"'`
28997
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28998
 
$as_echo "$ac_res" >&6; }
28999
 
as_val=`eval 'as_val=${'$as_ac_var'}
29000
 
                 $as_echo "$as_val"'`
29001
 
   if test "x$as_val" = x""yes; then
 
26283
            for ac_func in sched_yield
 
26284
do :
 
26285
  ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
 
26286
if test "x$ac_cv_func_sched_yield" = x""yes; then :
29002
26287
  cat >>confdefs.h <<_ACEOF
29003
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
26288
#define HAVE_SCHED_YIELD 1
29004
26289
_ACEOF
29005
26290
 
29006
26291
fi
29016
26301
ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
29017
26302
if test "$threads" = "1"; then
29018
26303
    echo "APR will use threads"
29019
 
    { $as_echo "$as_me:$LINENO: checking for readdir in -lc_r" >&5
 
26304
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
29020
26305
$as_echo_n "checking for readdir in -lc_r... " >&6; }
29021
 
if test "${ac_cv_lib_c_r_readdir+set}" = set; then
 
26306
if test "${ac_cv_lib_c_r_readdir+set}" = set; then :
29022
26307
  $as_echo_n "(cached) " >&6
29023
26308
else
29024
26309
  ac_check_lib_save_LIBS=$LIBS
29025
26310
LIBS="-lc_r  $LIBS"
29026
 
cat >conftest.$ac_ext <<_ACEOF
29027
 
/* confdefs.h.  */
29028
 
_ACEOF
29029
 
cat confdefs.h >>conftest.$ac_ext
29030
 
cat >>conftest.$ac_ext <<_ACEOF
 
26311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29031
26312
/* end confdefs.h.  */
29032
26313
 
29033
26314
/* Override any GCC internal prototype to avoid an error.
29045
26326
  return 0;
29046
26327
}
29047
26328
_ACEOF
29048
 
rm -f conftest.$ac_objext conftest$ac_exeext
29049
 
if { (ac_try="$ac_link"
29050
 
case "(($ac_try" in
29051
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052
 
  *) ac_try_echo=$ac_try;;
29053
 
esac
29054
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29055
 
$as_echo "$ac_try_echo") >&5
29056
 
  (eval "$ac_link") 2>conftest.er1
29057
 
  ac_status=$?
29058
 
  grep -v '^ *+' conftest.er1 >conftest.err
29059
 
  rm -f conftest.er1
29060
 
  cat conftest.err >&5
29061
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062
 
  (exit $ac_status); } && {
29063
 
         test -z "$ac_c_werror_flag" ||
29064
 
         test ! -s conftest.err
29065
 
       } && test -s conftest$ac_exeext && {
29066
 
         test "$cross_compiling" = yes ||
29067
 
         $as_test_x conftest$ac_exeext
29068
 
       }; then
 
26329
if ac_fn_c_try_link "$LINENO"; then :
29069
26330
  ac_cv_lib_c_r_readdir=yes
29070
26331
else
29071
 
  $as_echo "$as_me: failed program was:" >&5
29072
 
sed 's/^/| /' conftest.$ac_ext >&5
29073
 
 
29074
 
        ac_cv_lib_c_r_readdir=no
 
26332
  ac_cv_lib_c_r_readdir=no
29075
26333
fi
29076
 
 
29077
 
rm -rf conftest.dSYM
29078
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29079
 
      conftest$ac_exeext conftest.$ac_ext
 
26334
rm -f core conftest.err conftest.$ac_objext \
 
26335
    conftest$ac_exeext conftest.$ac_ext
29080
26336
LIBS=$ac_check_lib_save_LIBS
29081
26337
fi
29082
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_readdir" >&5
 
26338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
29083
26339
$as_echo "$ac_cv_lib_c_r_readdir" >&6; }
29084
 
if test "x$ac_cv_lib_c_r_readdir" = x""yes; then
 
26340
if test "x$ac_cv_lib_c_r_readdir" = x""yes; then :
29085
26341
 
29086
 
cat >>confdefs.h <<\_ACEOF
29087
 
#define READDIR_IS_THREAD_SAFE 1
29088
 
_ACEOF
 
26342
$as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
29089
26343
 
29090
26344
fi
29091
26345
 
29092
26346
    if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
29093
 
        { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lc_r" >&5
 
26347
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
29094
26348
$as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
29095
 
if test "${ac_cv_lib_c_r_gethostbyname+set}" = set; then
 
26349
if test "${ac_cv_lib_c_r_gethostbyname+set}" = set; then :
29096
26350
  $as_echo_n "(cached) " >&6
29097
26351
else
29098
26352
  ac_check_lib_save_LIBS=$LIBS
29099
26353
LIBS="-lc_r  $LIBS"
29100
 
cat >conftest.$ac_ext <<_ACEOF
29101
 
/* confdefs.h.  */
29102
 
_ACEOF
29103
 
cat confdefs.h >>conftest.$ac_ext
29104
 
cat >>conftest.$ac_ext <<_ACEOF
 
26354
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29105
26355
/* end confdefs.h.  */
29106
26356
 
29107
26357
/* Override any GCC internal prototype to avoid an error.
29119
26369
  return 0;
29120
26370
}
29121
26371
_ACEOF
29122
 
rm -f conftest.$ac_objext conftest$ac_exeext
29123
 
if { (ac_try="$ac_link"
29124
 
case "(($ac_try" in
29125
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126
 
  *) ac_try_echo=$ac_try;;
29127
 
esac
29128
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29129
 
$as_echo "$ac_try_echo") >&5
29130
 
  (eval "$ac_link") 2>conftest.er1
29131
 
  ac_status=$?
29132
 
  grep -v '^ *+' conftest.er1 >conftest.err
29133
 
  rm -f conftest.er1
29134
 
  cat conftest.err >&5
29135
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136
 
  (exit $ac_status); } && {
29137
 
         test -z "$ac_c_werror_flag" ||
29138
 
         test ! -s conftest.err
29139
 
       } && test -s conftest$ac_exeext && {
29140
 
         test "$cross_compiling" = yes ||
29141
 
         $as_test_x conftest$ac_exeext
29142
 
       }; then
 
26372
if ac_fn_c_try_link "$LINENO"; then :
29143
26373
  ac_cv_lib_c_r_gethostbyname=yes
29144
26374
else
29145
 
  $as_echo "$as_me: failed program was:" >&5
29146
 
sed 's/^/| /' conftest.$ac_ext >&5
29147
 
 
29148
 
        ac_cv_lib_c_r_gethostbyname=no
 
26375
  ac_cv_lib_c_r_gethostbyname=no
29149
26376
fi
29150
 
 
29151
 
rm -rf conftest.dSYM
29152
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29153
 
      conftest$ac_exeext conftest.$ac_ext
 
26377
rm -f core conftest.err conftest.$ac_objext \
 
26378
    conftest$ac_exeext conftest.$ac_ext
29154
26379
LIBS=$ac_check_lib_save_LIBS
29155
26380
fi
29156
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyname" >&5
 
26381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
29157
26382
$as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
29158
 
if test "x$ac_cv_lib_c_r_gethostbyname" = x""yes; then
 
26383
if test "x$ac_cv_lib_c_r_gethostbyname" = x""yes; then :
29159
26384
  apr_gethostbyname_is_thread_safe=yes
29160
26385
fi
29161
26386
 
29162
26387
    fi
29163
26388
    if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
29164
26389
 
29165
 
cat >>confdefs.h <<\_ACEOF
29166
 
#define GETHOSTBYNAME_IS_THREAD_SAFE 1
29167
 
_ACEOF
 
26390
$as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
29168
26391
 
29169
26392
    fi
29170
26393
    if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
29171
 
        { $as_echo "$as_me:$LINENO: checking for gethostbyaddr in -lc_r" >&5
 
26394
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
29172
26395
$as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
29173
 
if test "${ac_cv_lib_c_r_gethostbyaddr+set}" = set; then
 
26396
if test "${ac_cv_lib_c_r_gethostbyaddr+set}" = set; then :
29174
26397
  $as_echo_n "(cached) " >&6
29175
26398
else
29176
26399
  ac_check_lib_save_LIBS=$LIBS
29177
26400
LIBS="-lc_r  $LIBS"
29178
 
cat >conftest.$ac_ext <<_ACEOF
29179
 
/* confdefs.h.  */
29180
 
_ACEOF
29181
 
cat confdefs.h >>conftest.$ac_ext
29182
 
cat >>conftest.$ac_ext <<_ACEOF
 
26401
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29183
26402
/* end confdefs.h.  */
29184
26403
 
29185
26404
/* Override any GCC internal prototype to avoid an error.
29197
26416
  return 0;
29198
26417
}
29199
26418
_ACEOF
29200
 
rm -f conftest.$ac_objext conftest$ac_exeext
29201
 
if { (ac_try="$ac_link"
29202
 
case "(($ac_try" in
29203
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204
 
  *) ac_try_echo=$ac_try;;
29205
 
esac
29206
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29207
 
$as_echo "$ac_try_echo") >&5
29208
 
  (eval "$ac_link") 2>conftest.er1
29209
 
  ac_status=$?
29210
 
  grep -v '^ *+' conftest.er1 >conftest.err
29211
 
  rm -f conftest.er1
29212
 
  cat conftest.err >&5
29213
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214
 
  (exit $ac_status); } && {
29215
 
         test -z "$ac_c_werror_flag" ||
29216
 
         test ! -s conftest.err
29217
 
       } && test -s conftest$ac_exeext && {
29218
 
         test "$cross_compiling" = yes ||
29219
 
         $as_test_x conftest$ac_exeext
29220
 
       }; then
 
26419
if ac_fn_c_try_link "$LINENO"; then :
29221
26420
  ac_cv_lib_c_r_gethostbyaddr=yes
29222
26421
else
29223
 
  $as_echo "$as_me: failed program was:" >&5
29224
 
sed 's/^/| /' conftest.$ac_ext >&5
29225
 
 
29226
 
        ac_cv_lib_c_r_gethostbyaddr=no
 
26422
  ac_cv_lib_c_r_gethostbyaddr=no
29227
26423
fi
29228
 
 
29229
 
rm -rf conftest.dSYM
29230
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29231
 
      conftest$ac_exeext conftest.$ac_ext
 
26424
rm -f core conftest.err conftest.$ac_objext \
 
26425
    conftest$ac_exeext conftest.$ac_ext
29232
26426
LIBS=$ac_check_lib_save_LIBS
29233
26427
fi
29234
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
 
26428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
29235
26429
$as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
29236
 
if test "x$ac_cv_lib_c_r_gethostbyaddr" = x""yes; then
 
26430
if test "x$ac_cv_lib_c_r_gethostbyaddr" = x""yes; then :
29237
26431
  apr_gethostbyaddr_is_thread_safe=yes
29238
26432
fi
29239
26433
 
29240
26434
    fi
29241
26435
    if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
29242
26436
 
29243
 
cat >>confdefs.h <<\_ACEOF
29244
 
#define GETHOSTBYADDR_IS_THREAD_SAFE 1
29245
 
_ACEOF
 
26437
$as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
29246
26438
 
29247
26439
    fi
29248
26440
    if test "x$apr_getservbyname_is_thread_safe" = "x"; then
29249
 
        { $as_echo "$as_me:$LINENO: checking for getservbyname in -lc_r" >&5
 
26441
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
29250
26442
$as_echo_n "checking for getservbyname in -lc_r... " >&6; }
29251
 
if test "${ac_cv_lib_c_r_getservbyname+set}" = set; then
 
26443
if test "${ac_cv_lib_c_r_getservbyname+set}" = set; then :
29252
26444
  $as_echo_n "(cached) " >&6
29253
26445
else
29254
26446
  ac_check_lib_save_LIBS=$LIBS
29255
26447
LIBS="-lc_r  $LIBS"
29256
 
cat >conftest.$ac_ext <<_ACEOF
29257
 
/* confdefs.h.  */
29258
 
_ACEOF
29259
 
cat confdefs.h >>conftest.$ac_ext
29260
 
cat >>conftest.$ac_ext <<_ACEOF
 
26448
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29261
26449
/* end confdefs.h.  */
29262
26450
 
29263
26451
/* Override any GCC internal prototype to avoid an error.
29275
26463
  return 0;
29276
26464
}
29277
26465
_ACEOF
29278
 
rm -f conftest.$ac_objext conftest$ac_exeext
29279
 
if { (ac_try="$ac_link"
29280
 
case "(($ac_try" in
29281
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282
 
  *) ac_try_echo=$ac_try;;
29283
 
esac
29284
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29285
 
$as_echo "$ac_try_echo") >&5
29286
 
  (eval "$ac_link") 2>conftest.er1
29287
 
  ac_status=$?
29288
 
  grep -v '^ *+' conftest.er1 >conftest.err
29289
 
  rm -f conftest.er1
29290
 
  cat conftest.err >&5
29291
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292
 
  (exit $ac_status); } && {
29293
 
         test -z "$ac_c_werror_flag" ||
29294
 
         test ! -s conftest.err
29295
 
       } && test -s conftest$ac_exeext && {
29296
 
         test "$cross_compiling" = yes ||
29297
 
         $as_test_x conftest$ac_exeext
29298
 
       }; then
 
26466
if ac_fn_c_try_link "$LINENO"; then :
29299
26467
  ac_cv_lib_c_r_getservbyname=yes
29300
26468
else
29301
 
  $as_echo "$as_me: failed program was:" >&5
29302
 
sed 's/^/| /' conftest.$ac_ext >&5
29303
 
 
29304
 
        ac_cv_lib_c_r_getservbyname=no
 
26469
  ac_cv_lib_c_r_getservbyname=no
29305
26470
fi
29306
 
 
29307
 
rm -rf conftest.dSYM
29308
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29309
 
      conftest$ac_exeext conftest.$ac_ext
 
26471
rm -f core conftest.err conftest.$ac_objext \
 
26472
    conftest$ac_exeext conftest.$ac_ext
29310
26473
LIBS=$ac_check_lib_save_LIBS
29311
26474
fi
29312
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_getservbyname" >&5
 
26475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
29313
26476
$as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
29314
 
if test "x$ac_cv_lib_c_r_getservbyname" = x""yes; then
 
26477
if test "x$ac_cv_lib_c_r_getservbyname" = x""yes; then :
29315
26478
  apr_getservbyname_is_thread_safe=yes
29316
26479
fi
29317
26480
 
29318
26481
    fi
29319
26482
    if test "$apr_getservbyname_is_thread_safe" = "yes"; then
29320
26483
 
29321
 
cat >>confdefs.h <<\_ACEOF
29322
 
#define GETSERVBYNAME_IS_THREAD_SAFE 1
29323
 
_ACEOF
 
26484
$as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
29324
26485
 
29325
26486
    fi
29326
 
 
29327
 
 
29328
 
 
29329
 
for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
29330
 
do
29331
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29332
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29333
 
$as_echo_n "checking for $ac_func... " >&6; }
29334
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29335
 
  $as_echo_n "(cached) " >&6
29336
 
else
29337
 
  cat >conftest.$ac_ext <<_ACEOF
29338
 
/* confdefs.h.  */
29339
 
_ACEOF
29340
 
cat confdefs.h >>conftest.$ac_ext
29341
 
cat >>conftest.$ac_ext <<_ACEOF
29342
 
/* end confdefs.h.  */
29343
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29344
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29345
 
#define $ac_func innocuous_$ac_func
29346
 
 
29347
 
/* System header to define __stub macros and hopefully few prototypes,
29348
 
    which can conflict with char $ac_func (); below.
29349
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29350
 
    <limits.h> exists even on freestanding compilers.  */
29351
 
 
29352
 
#ifdef __STDC__
29353
 
# include <limits.h>
29354
 
#else
29355
 
# include <assert.h>
29356
 
#endif
29357
 
 
29358
 
#undef $ac_func
29359
 
 
29360
 
/* Override any GCC internal prototype to avoid an error.
29361
 
   Use char because int might match the return type of a GCC
29362
 
   builtin and then its argument prototype would still apply.  */
29363
 
#ifdef __cplusplus
29364
 
extern "C"
29365
 
#endif
29366
 
char $ac_func ();
29367
 
/* The GNU C library defines this for functions which it implements
29368
 
    to always fail with ENOSYS.  Some functions are actually named
29369
 
    something starting with __ and the normal name is an alias.  */
29370
 
#if defined __stub_$ac_func || defined __stub___$ac_func
29371
 
choke me
29372
 
#endif
29373
 
 
29374
 
int
29375
 
main ()
29376
 
{
29377
 
return $ac_func ();
29378
 
  ;
29379
 
  return 0;
29380
 
}
29381
 
_ACEOF
29382
 
rm -f conftest.$ac_objext conftest$ac_exeext
29383
 
if { (ac_try="$ac_link"
29384
 
case "(($ac_try" in
29385
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386
 
  *) ac_try_echo=$ac_try;;
29387
 
esac
29388
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29389
 
$as_echo "$ac_try_echo") >&5
29390
 
  (eval "$ac_link") 2>conftest.er1
29391
 
  ac_status=$?
29392
 
  grep -v '^ *+' conftest.er1 >conftest.err
29393
 
  rm -f conftest.er1
29394
 
  cat conftest.err >&5
29395
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396
 
  (exit $ac_status); } && {
29397
 
         test -z "$ac_c_werror_flag" ||
29398
 
         test ! -s conftest.err
29399
 
       } && test -s conftest$ac_exeext && {
29400
 
         test "$cross_compiling" = yes ||
29401
 
         $as_test_x conftest$ac_exeext
29402
 
       }; then
29403
 
  eval "$as_ac_var=yes"
29404
 
else
29405
 
  $as_echo "$as_me: failed program was:" >&5
29406
 
sed 's/^/| /' conftest.$ac_ext >&5
29407
 
 
29408
 
        eval "$as_ac_var=no"
29409
 
fi
29410
 
 
29411
 
rm -rf conftest.dSYM
29412
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29413
 
      conftest$ac_exeext conftest.$ac_ext
29414
 
fi
29415
 
ac_res=`eval 'as_val=${'$as_ac_var'}
29416
 
                 $as_echo "$as_val"'`
29417
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29418
 
$as_echo "$ac_res" >&6; }
29419
 
as_val=`eval 'as_val=${'$as_ac_var'}
29420
 
                 $as_echo "$as_val"'`
29421
 
   if test "x$as_val" = x""yes; then
 
26487
    for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
 
26488
do :
 
26489
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26490
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
26491
eval as_val=\$$as_ac_var
 
26492
   if test "x$as_val" = x""yes; then :
29422
26493
  cat >>confdefs.h <<_ACEOF
29423
26494
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29424
26495
_ACEOF
29432
26503
 
29433
26504
 
29434
26505
# Check whether --with-efence was given.
29435
 
if test "${with_efence+set}" = set; then
 
26506
if test "${with_efence+set}" = set; then :
29436
26507
  withval=$with_efence;  apr_efence_dir="$withval"
29437
26508
    if test "$apr_efence_dir" != "yes"; then
29438
26509
 
29480
26551
 
29481
26552
      fi
29482
26553
    fi
29483
 
    { $as_echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
 
26554
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
29484
26555
$as_echo_n "checking for malloc in -lefence... " >&6; }
29485
 
if test "${ac_cv_lib_efence_malloc+set}" = set; then
 
26556
if test "${ac_cv_lib_efence_malloc+set}" = set; then :
29486
26557
  $as_echo_n "(cached) " >&6
29487
26558
else
29488
26559
  ac_check_lib_save_LIBS=$LIBS
29489
26560
LIBS="-lefence  $LIBS"
29490
 
cat >conftest.$ac_ext <<_ACEOF
29491
 
/* confdefs.h.  */
29492
 
_ACEOF
29493
 
cat confdefs.h >>conftest.$ac_ext
29494
 
cat >>conftest.$ac_ext <<_ACEOF
 
26561
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29495
26562
/* end confdefs.h.  */
29496
26563
 
29497
26564
/* Override any GCC internal prototype to avoid an error.
29509
26576
  return 0;
29510
26577
}
29511
26578
_ACEOF
29512
 
rm -f conftest.$ac_objext conftest$ac_exeext
29513
 
if { (ac_try="$ac_link"
29514
 
case "(($ac_try" in
29515
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516
 
  *) ac_try_echo=$ac_try;;
29517
 
esac
29518
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29519
 
$as_echo "$ac_try_echo") >&5
29520
 
  (eval "$ac_link") 2>conftest.er1
29521
 
  ac_status=$?
29522
 
  grep -v '^ *+' conftest.er1 >conftest.err
29523
 
  rm -f conftest.er1
29524
 
  cat conftest.err >&5
29525
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526
 
  (exit $ac_status); } && {
29527
 
         test -z "$ac_c_werror_flag" ||
29528
 
         test ! -s conftest.err
29529
 
       } && test -s conftest$ac_exeext && {
29530
 
         test "$cross_compiling" = yes ||
29531
 
         $as_test_x conftest$ac_exeext
29532
 
       }; then
 
26579
if ac_fn_c_try_link "$LINENO"; then :
29533
26580
  ac_cv_lib_efence_malloc=yes
29534
26581
else
29535
 
  $as_echo "$as_me: failed program was:" >&5
29536
 
sed 's/^/| /' conftest.$ac_ext >&5
29537
 
 
29538
 
        ac_cv_lib_efence_malloc=no
 
26582
  ac_cv_lib_efence_malloc=no
29539
26583
fi
29540
 
 
29541
 
rm -rf conftest.dSYM
29542
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29543
 
      conftest$ac_exeext conftest.$ac_ext
 
26584
rm -f core conftest.err conftest.$ac_objext \
 
26585
    conftest$ac_exeext conftest.$ac_ext
29544
26586
LIBS=$ac_check_lib_save_LIBS
29545
26587
fi
29546
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
 
26588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
29547
26589
$as_echo "$ac_cv_lib_efence_malloc" >&6; }
29548
 
if test "x$ac_cv_lib_efence_malloc" = x""yes; then
 
26590
if test "x$ac_cv_lib_efence_malloc" = x""yes; then :
29549
26591
 
29550
26592
  if test "x$LIBS" = "x"; then
29551
26593
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-lefence\""
29568
26610
  fi
29569
26611
 
29570
26612
else
29571
 
   { { $as_echo "$as_me:$LINENO: error: Electric Fence requested but not detected" >&5
29572
 
$as_echo "$as_me: error: Electric Fence requested but not detected" >&2;}
29573
 
   { (exit 1); exit 1; }; }
29574
 
fi
29575
 
 
29576
 
 
29577
 
fi
29578
 
 
 
26613
   as_fn_error "Electric Fence requested but not detected" "$LINENO" 5
 
26614
fi
 
26615
 
 
26616
 
 
26617
fi
29579
26618
 
29580
26619
 
29581
26620
for ac_func in sigsuspend
29582
 
do
29583
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29584
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29585
 
$as_echo_n "checking for $ac_func... " >&6; }
29586
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29587
 
  $as_echo_n "(cached) " >&6
29588
 
else
29589
 
  cat >conftest.$ac_ext <<_ACEOF
29590
 
/* confdefs.h.  */
29591
 
_ACEOF
29592
 
cat confdefs.h >>conftest.$ac_ext
29593
 
cat >>conftest.$ac_ext <<_ACEOF
29594
 
/* end confdefs.h.  */
29595
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29596
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29597
 
#define $ac_func innocuous_$ac_func
29598
 
 
29599
 
/* System header to define __stub macros and hopefully few prototypes,
29600
 
    which can conflict with char $ac_func (); below.
29601
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29602
 
    <limits.h> exists even on freestanding compilers.  */
29603
 
 
29604
 
#ifdef __STDC__
29605
 
# include <limits.h>
29606
 
#else
29607
 
# include <assert.h>
29608
 
#endif
29609
 
 
29610
 
#undef $ac_func
29611
 
 
29612
 
/* Override any GCC internal prototype to avoid an error.
29613
 
   Use char because int might match the return type of a GCC
29614
 
   builtin and then its argument prototype would still apply.  */
29615
 
#ifdef __cplusplus
29616
 
extern "C"
29617
 
#endif
29618
 
char $ac_func ();
29619
 
/* The GNU C library defines this for functions which it implements
29620
 
    to always fail with ENOSYS.  Some functions are actually named
29621
 
    something starting with __ and the normal name is an alias.  */
29622
 
#if defined __stub_$ac_func || defined __stub___$ac_func
29623
 
choke me
29624
 
#endif
29625
 
 
29626
 
int
29627
 
main ()
29628
 
{
29629
 
return $ac_func ();
29630
 
  ;
29631
 
  return 0;
29632
 
}
29633
 
_ACEOF
29634
 
rm -f conftest.$ac_objext conftest$ac_exeext
29635
 
if { (ac_try="$ac_link"
29636
 
case "(($ac_try" in
29637
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638
 
  *) ac_try_echo=$ac_try;;
29639
 
esac
29640
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29641
 
$as_echo "$ac_try_echo") >&5
29642
 
  (eval "$ac_link") 2>conftest.er1
29643
 
  ac_status=$?
29644
 
  grep -v '^ *+' conftest.er1 >conftest.err
29645
 
  rm -f conftest.er1
29646
 
  cat conftest.err >&5
29647
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648
 
  (exit $ac_status); } && {
29649
 
         test -z "$ac_c_werror_flag" ||
29650
 
         test ! -s conftest.err
29651
 
       } && test -s conftest$ac_exeext && {
29652
 
         test "$cross_compiling" = yes ||
29653
 
         $as_test_x conftest$ac_exeext
29654
 
       }; then
29655
 
  eval "$as_ac_var=yes"
29656
 
else
29657
 
  $as_echo "$as_me: failed program was:" >&5
29658
 
sed 's/^/| /' conftest.$ac_ext >&5
29659
 
 
29660
 
        eval "$as_ac_var=no"
29661
 
fi
29662
 
 
29663
 
rm -rf conftest.dSYM
29664
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29665
 
      conftest$ac_exeext conftest.$ac_ext
29666
 
fi
29667
 
ac_res=`eval 'as_val=${'$as_ac_var'}
29668
 
                 $as_echo "$as_val"'`
29669
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29670
 
$as_echo "$ac_res" >&6; }
29671
 
as_val=`eval 'as_val=${'$as_ac_var'}
29672
 
                 $as_echo "$as_val"'`
29673
 
   if test "x$as_val" = x""yes; then
 
26621
do :
 
26622
  ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
 
26623
if test "x$ac_cv_func_sigsuspend" = x""yes; then :
29674
26624
  cat >>confdefs.h <<_ACEOF
29675
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
26625
#define HAVE_SIGSUSPEND 1
29676
26626
_ACEOF
29677
26627
  have_sigsuspend="1"
29678
26628
else
29680
26630
fi
29681
26631
done
29682
26632
 
29683
 
 
29684
26633
for ac_func in sigwait
29685
 
do
29686
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29687
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29688
 
$as_echo_n "checking for $ac_func... " >&6; }
29689
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29690
 
  $as_echo_n "(cached) " >&6
29691
 
else
29692
 
  cat >conftest.$ac_ext <<_ACEOF
29693
 
/* confdefs.h.  */
29694
 
_ACEOF
29695
 
cat confdefs.h >>conftest.$ac_ext
29696
 
cat >>conftest.$ac_ext <<_ACEOF
29697
 
/* end confdefs.h.  */
29698
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29699
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29700
 
#define $ac_func innocuous_$ac_func
29701
 
 
29702
 
/* System header to define __stub macros and hopefully few prototypes,
29703
 
    which can conflict with char $ac_func (); below.
29704
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29705
 
    <limits.h> exists even on freestanding compilers.  */
29706
 
 
29707
 
#ifdef __STDC__
29708
 
# include <limits.h>
29709
 
#else
29710
 
# include <assert.h>
29711
 
#endif
29712
 
 
29713
 
#undef $ac_func
29714
 
 
29715
 
/* Override any GCC internal prototype to avoid an error.
29716
 
   Use char because int might match the return type of a GCC
29717
 
   builtin and then its argument prototype would still apply.  */
29718
 
#ifdef __cplusplus
29719
 
extern "C"
29720
 
#endif
29721
 
char $ac_func ();
29722
 
/* The GNU C library defines this for functions which it implements
29723
 
    to always fail with ENOSYS.  Some functions are actually named
29724
 
    something starting with __ and the normal name is an alias.  */
29725
 
#if defined __stub_$ac_func || defined __stub___$ac_func
29726
 
choke me
29727
 
#endif
29728
 
 
29729
 
int
29730
 
main ()
29731
 
{
29732
 
return $ac_func ();
29733
 
  ;
29734
 
  return 0;
29735
 
}
29736
 
_ACEOF
29737
 
rm -f conftest.$ac_objext conftest$ac_exeext
29738
 
if { (ac_try="$ac_link"
29739
 
case "(($ac_try" in
29740
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741
 
  *) ac_try_echo=$ac_try;;
29742
 
esac
29743
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29744
 
$as_echo "$ac_try_echo") >&5
29745
 
  (eval "$ac_link") 2>conftest.er1
29746
 
  ac_status=$?
29747
 
  grep -v '^ *+' conftest.er1 >conftest.err
29748
 
  rm -f conftest.er1
29749
 
  cat conftest.err >&5
29750
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751
 
  (exit $ac_status); } && {
29752
 
         test -z "$ac_c_werror_flag" ||
29753
 
         test ! -s conftest.err
29754
 
       } && test -s conftest$ac_exeext && {
29755
 
         test "$cross_compiling" = yes ||
29756
 
         $as_test_x conftest$ac_exeext
29757
 
       }; then
29758
 
  eval "$as_ac_var=yes"
29759
 
else
29760
 
  $as_echo "$as_me: failed program was:" >&5
29761
 
sed 's/^/| /' conftest.$ac_ext >&5
29762
 
 
29763
 
        eval "$as_ac_var=no"
29764
 
fi
29765
 
 
29766
 
rm -rf conftest.dSYM
29767
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29768
 
      conftest$ac_exeext conftest.$ac_ext
29769
 
fi
29770
 
ac_res=`eval 'as_val=${'$as_ac_var'}
29771
 
                 $as_echo "$as_val"'`
29772
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29773
 
$as_echo "$ac_res" >&6; }
29774
 
as_val=`eval 'as_val=${'$as_ac_var'}
29775
 
                 $as_echo "$as_val"'`
29776
 
   if test "x$as_val" = x""yes; then
 
26634
do :
 
26635
  ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
 
26636
if test "x$ac_cv_func_sigwait" = x""yes; then :
29777
26637
  cat >>confdefs.h <<_ACEOF
29778
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
26638
#define HAVE_SIGWAIT 1
29779
26639
_ACEOF
29780
26640
  have_sigwait="1"
29781
26641
else
29793
26653
 
29794
26654
 
29795
26655
 
29796
 
 
29797
 
 
29798
 
 
29799
26656
for ac_func in poll kqueue port_create
29800
 
do
29801
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29802
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29803
 
$as_echo_n "checking for $ac_func... " >&6; }
29804
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29805
 
  $as_echo_n "(cached) " >&6
29806
 
else
29807
 
  cat >conftest.$ac_ext <<_ACEOF
29808
 
/* confdefs.h.  */
29809
 
_ACEOF
29810
 
cat confdefs.h >>conftest.$ac_ext
29811
 
cat >>conftest.$ac_ext <<_ACEOF
29812
 
/* end confdefs.h.  */
29813
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29814
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29815
 
#define $ac_func innocuous_$ac_func
29816
 
 
29817
 
/* System header to define __stub macros and hopefully few prototypes,
29818
 
    which can conflict with char $ac_func (); below.
29819
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29820
 
    <limits.h> exists even on freestanding compilers.  */
29821
 
 
29822
 
#ifdef __STDC__
29823
 
# include <limits.h>
29824
 
#else
29825
 
# include <assert.h>
29826
 
#endif
29827
 
 
29828
 
#undef $ac_func
29829
 
 
29830
 
/* Override any GCC internal prototype to avoid an error.
29831
 
   Use char because int might match the return type of a GCC
29832
 
   builtin and then its argument prototype would still apply.  */
29833
 
#ifdef __cplusplus
29834
 
extern "C"
29835
 
#endif
29836
 
char $ac_func ();
29837
 
/* The GNU C library defines this for functions which it implements
29838
 
    to always fail with ENOSYS.  Some functions are actually named
29839
 
    something starting with __ and the normal name is an alias.  */
29840
 
#if defined __stub_$ac_func || defined __stub___$ac_func
29841
 
choke me
29842
 
#endif
29843
 
 
29844
 
int
29845
 
main ()
29846
 
{
29847
 
return $ac_func ();
29848
 
  ;
29849
 
  return 0;
29850
 
}
29851
 
_ACEOF
29852
 
rm -f conftest.$ac_objext conftest$ac_exeext
29853
 
if { (ac_try="$ac_link"
29854
 
case "(($ac_try" in
29855
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856
 
  *) ac_try_echo=$ac_try;;
29857
 
esac
29858
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29859
 
$as_echo "$ac_try_echo") >&5
29860
 
  (eval "$ac_link") 2>conftest.er1
29861
 
  ac_status=$?
29862
 
  grep -v '^ *+' conftest.er1 >conftest.err
29863
 
  rm -f conftest.er1
29864
 
  cat conftest.err >&5
29865
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866
 
  (exit $ac_status); } && {
29867
 
         test -z "$ac_c_werror_flag" ||
29868
 
         test ! -s conftest.err
29869
 
       } && test -s conftest$ac_exeext && {
29870
 
         test "$cross_compiling" = yes ||
29871
 
         $as_test_x conftest$ac_exeext
29872
 
       }; then
29873
 
  eval "$as_ac_var=yes"
29874
 
else
29875
 
  $as_echo "$as_me: failed program was:" >&5
29876
 
sed 's/^/| /' conftest.$ac_ext >&5
29877
 
 
29878
 
        eval "$as_ac_var=no"
29879
 
fi
29880
 
 
29881
 
rm -rf conftest.dSYM
29882
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29883
 
      conftest$ac_exeext conftest.$ac_ext
29884
 
fi
29885
 
ac_res=`eval 'as_val=${'$as_ac_var'}
29886
 
                 $as_echo "$as_val"'`
29887
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29888
 
$as_echo "$ac_res" >&6; }
29889
 
as_val=`eval 'as_val=${'$as_ac_var'}
29890
 
                 $as_echo "$as_val"'`
29891
 
   if test "x$as_val" = x""yes; then
 
26657
do :
 
26658
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26659
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
26660
eval as_val=\$$as_ac_var
 
26661
   if test "x$as_val" = x""yes; then :
29892
26662
  cat >>confdefs.h <<_ACEOF
29893
26663
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29894
26664
_ACEOF
29899
26669
 
29900
26670
# Check for the Linux epoll interface; epoll* may be available in libc
29901
26671
# but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
29902
 
{ $as_echo "$as_me:$LINENO: checking for epoll support" >&5
 
26672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
29903
26673
$as_echo_n "checking for epoll support... " >&6; }
29904
 
if test "${apr_cv_epoll+set}" = set; then
 
26674
if test "${apr_cv_epoll+set}" = set; then :
29905
26675
  $as_echo_n "(cached) " >&6
29906
26676
else
29907
 
  if test "$cross_compiling" = yes; then
 
26677
  if test "$cross_compiling" = yes; then :
29908
26678
  apr_cv_epoll=no
29909
26679
else
29910
 
  cat >conftest.$ac_ext <<_ACEOF
29911
 
/* confdefs.h.  */
29912
 
_ACEOF
29913
 
cat confdefs.h >>conftest.$ac_ext
29914
 
cat >>conftest.$ac_ext <<_ACEOF
 
26680
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29915
26681
/* end confdefs.h.  */
29916
26682
 
29917
26683
#include <sys/epoll.h>
29922
26688
    return epoll_create(5) == -1;
29923
26689
}
29924
26690
_ACEOF
29925
 
rm -f conftest$ac_exeext
29926
 
if { (ac_try="$ac_link"
29927
 
case "(($ac_try" in
29928
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929
 
  *) ac_try_echo=$ac_try;;
29930
 
esac
29931
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29932
 
$as_echo "$ac_try_echo") >&5
29933
 
  (eval "$ac_link") 2>&5
29934
 
  ac_status=$?
29935
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29937
 
  { (case "(($ac_try" in
29938
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29939
 
  *) ac_try_echo=$ac_try;;
29940
 
esac
29941
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29942
 
$as_echo "$ac_try_echo") >&5
29943
 
  (eval "$ac_try") 2>&5
29944
 
  ac_status=$?
29945
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946
 
  (exit $ac_status); }; }; then
 
26691
if ac_fn_c_try_run "$LINENO"; then :
29947
26692
  apr_cv_epoll=yes
29948
26693
else
29949
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
29950
 
$as_echo "$as_me: failed program was:" >&5
29951
 
sed 's/^/| /' conftest.$ac_ext >&5
29952
 
 
29953
 
( exit $ac_status )
29954
 
apr_cv_epoll=no
29955
 
fi
29956
 
rm -rf conftest.dSYM
29957
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29958
 
fi
29959
 
 
29960
 
 
29961
 
fi
29962
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_epoll" >&5
 
26694
  apr_cv_epoll=no
 
26695
fi
 
26696
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
26697
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
26698
fi
 
26699
 
 
26700
fi
 
26701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
29963
26702
$as_echo "$apr_cv_epoll" >&6; }
29964
26703
 
29965
26704
if test "$apr_cv_epoll" = "yes"; then
29966
26705
 
29967
 
cat >>confdefs.h <<\_ACEOF
29968
 
#define HAVE_EPOLL 1
29969
 
_ACEOF
 
26706
$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
29970
26707
 
29971
26708
fi
29972
26709
 
29973
26710
# test for epoll_create1
29974
 
{ $as_echo "$as_me:$LINENO: checking for epoll_create1 support" >&5
 
26711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
29975
26712
$as_echo_n "checking for epoll_create1 support... " >&6; }
29976
 
if test "${apr_cv_epoll_create1+set}" = set; then
 
26713
if test "${apr_cv_epoll_create1+set}" = set; then :
29977
26714
  $as_echo_n "(cached) " >&6
29978
26715
else
29979
 
  if test "$cross_compiling" = yes; then
 
26716
  if test "$cross_compiling" = yes; then :
29980
26717
  apr_cv_epoll_create1=no
29981
26718
else
29982
 
  cat >conftest.$ac_ext <<_ACEOF
29983
 
/* confdefs.h.  */
29984
 
_ACEOF
29985
 
cat confdefs.h >>conftest.$ac_ext
29986
 
cat >>conftest.$ac_ext <<_ACEOF
 
26719
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29987
26720
/* end confdefs.h.  */
29988
26721
 
29989
26722
#include <sys/epoll.h>
29994
26727
    return epoll_create1(0) == -1;
29995
26728
}
29996
26729
_ACEOF
29997
 
rm -f conftest$ac_exeext
29998
 
if { (ac_try="$ac_link"
29999
 
case "(($ac_try" in
30000
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001
 
  *) ac_try_echo=$ac_try;;
30002
 
esac
30003
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30004
 
$as_echo "$ac_try_echo") >&5
30005
 
  (eval "$ac_link") 2>&5
30006
 
  ac_status=$?
30007
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30009
 
  { (case "(($ac_try" in
30010
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30011
 
  *) ac_try_echo=$ac_try;;
30012
 
esac
30013
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30014
 
$as_echo "$ac_try_echo") >&5
30015
 
  (eval "$ac_try") 2>&5
30016
 
  ac_status=$?
30017
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018
 
  (exit $ac_status); }; }; then
 
26730
if ac_fn_c_try_run "$LINENO"; then :
30019
26731
  apr_cv_epoll_create1=yes
30020
26732
else
30021
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
30022
 
$as_echo "$as_me: failed program was:" >&5
30023
 
sed 's/^/| /' conftest.$ac_ext >&5
30024
 
 
30025
 
( exit $ac_status )
30026
 
apr_cv_epoll_create1=no
30027
 
fi
30028
 
rm -rf conftest.dSYM
30029
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30030
 
fi
30031
 
 
30032
 
 
30033
 
fi
30034
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_epoll_create1" >&5
 
26733
  apr_cv_epoll_create1=no
 
26734
fi
 
26735
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
26736
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
26737
fi
 
26738
 
 
26739
fi
 
26740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
30035
26741
$as_echo "$apr_cv_epoll_create1" >&6; }
30036
26742
 
30037
26743
if test "$apr_cv_epoll_create1" = "yes"; then
30038
26744
 
30039
 
cat >>confdefs.h <<\_ACEOF
30040
 
#define HAVE_EPOLL_CREATE1 1
30041
 
_ACEOF
 
26745
$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
30042
26746
 
30043
26747
fi
30044
26748
 
30045
26749
# test for dup3
30046
 
{ $as_echo "$as_me:$LINENO: checking for dup3 support" >&5
 
26750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
30047
26751
$as_echo_n "checking for dup3 support... " >&6; }
30048
 
if test "${apr_cv_dup3+set}" = set; then
 
26752
if test "${apr_cv_dup3+set}" = set; then :
30049
26753
  $as_echo_n "(cached) " >&6
30050
26754
else
30051
 
  if test "$cross_compiling" = yes; then
 
26755
  if test "$cross_compiling" = yes; then :
30052
26756
  apr_cv_dup3=no
30053
26757
else
30054
 
  cat >conftest.$ac_ext <<_ACEOF
30055
 
/* confdefs.h.  */
30056
 
_ACEOF
30057
 
cat confdefs.h >>conftest.$ac_ext
30058
 
cat >>conftest.$ac_ext <<_ACEOF
 
26758
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30059
26759
/* end confdefs.h.  */
30060
26760
 
30061
26761
#include <unistd.h>
30065
26765
    return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
30066
26766
}
30067
26767
_ACEOF
30068
 
rm -f conftest$ac_exeext
30069
 
if { (ac_try="$ac_link"
30070
 
case "(($ac_try" in
30071
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072
 
  *) ac_try_echo=$ac_try;;
30073
 
esac
30074
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30075
 
$as_echo "$ac_try_echo") >&5
30076
 
  (eval "$ac_link") 2>&5
30077
 
  ac_status=$?
30078
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30080
 
  { (case "(($ac_try" in
30081
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30082
 
  *) ac_try_echo=$ac_try;;
30083
 
esac
30084
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30085
 
$as_echo "$ac_try_echo") >&5
30086
 
  (eval "$ac_try") 2>&5
30087
 
  ac_status=$?
30088
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089
 
  (exit $ac_status); }; }; then
 
26768
if ac_fn_c_try_run "$LINENO"; then :
30090
26769
  apr_cv_dup3=yes
30091
26770
else
30092
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
30093
 
$as_echo "$as_me: failed program was:" >&5
30094
 
sed 's/^/| /' conftest.$ac_ext >&5
30095
 
 
30096
 
( exit $ac_status )
30097
 
apr_cv_dup3=no
30098
 
fi
30099
 
rm -rf conftest.dSYM
30100
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30101
 
fi
30102
 
 
30103
 
 
30104
 
fi
30105
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_dup3" >&5
 
26771
  apr_cv_dup3=no
 
26772
fi
 
26773
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
26774
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
26775
fi
 
26776
 
 
26777
fi
 
26778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
30106
26779
$as_echo "$apr_cv_dup3" >&6; }
30107
26780
 
30108
26781
if test "$apr_cv_dup3" = "yes"; then
30109
26782
 
30110
 
cat >>confdefs.h <<\_ACEOF
30111
 
#define HAVE_DUP3 1
30112
 
_ACEOF
 
26783
$as_echo "#define HAVE_DUP3 1" >>confdefs.h
30113
26784
 
30114
26785
fi
30115
26786
 
30116
26787
# test for accept4
30117
 
{ $as_echo "$as_me:$LINENO: checking for accept4 support" >&5
 
26788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
30118
26789
$as_echo_n "checking for accept4 support... " >&6; }
30119
 
if test "${apr_cv_accept4+set}" = set; then
 
26790
if test "${apr_cv_accept4+set}" = set; then :
30120
26791
  $as_echo_n "(cached) " >&6
30121
26792
else
30122
 
  if test "$cross_compiling" = yes; then
 
26793
  if test "$cross_compiling" = yes; then :
30123
26794
  apr_cv_accept4=no
30124
26795
else
30125
 
  cat >conftest.$ac_ext <<_ACEOF
30126
 
/* confdefs.h.  */
30127
 
_ACEOF
30128
 
cat confdefs.h >>conftest.$ac_ext
30129
 
cat >>conftest.$ac_ext <<_ACEOF
 
26796
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30130
26797
/* end confdefs.h.  */
30131
26798
 
30132
26799
#include <unistd.h>
30200
26867
    }
30201
26868
}
30202
26869
_ACEOF
30203
 
rm -f conftest$ac_exeext
30204
 
if { (ac_try="$ac_link"
30205
 
case "(($ac_try" in
30206
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207
 
  *) ac_try_echo=$ac_try;;
30208
 
esac
30209
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30210
 
$as_echo "$ac_try_echo") >&5
30211
 
  (eval "$ac_link") 2>&5
30212
 
  ac_status=$?
30213
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30215
 
  { (case "(($ac_try" in
30216
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30217
 
  *) ac_try_echo=$ac_try;;
30218
 
esac
30219
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30220
 
$as_echo "$ac_try_echo") >&5
30221
 
  (eval "$ac_try") 2>&5
30222
 
  ac_status=$?
30223
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224
 
  (exit $ac_status); }; }; then
 
26870
if ac_fn_c_try_run "$LINENO"; then :
30225
26871
  apr_cv_accept4=yes
30226
26872
else
30227
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
30228
 
$as_echo "$as_me: failed program was:" >&5
30229
 
sed 's/^/| /' conftest.$ac_ext >&5
30230
 
 
30231
 
( exit $ac_status )
30232
 
apr_cv_accept4=no
30233
 
fi
30234
 
rm -rf conftest.dSYM
30235
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30236
 
fi
30237
 
 
30238
 
 
30239
 
fi
30240
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_accept4" >&5
 
26873
  apr_cv_accept4=no
 
26874
fi
 
26875
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
26876
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
26877
fi
 
26878
 
 
26879
fi
 
26880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
30241
26881
$as_echo "$apr_cv_accept4" >&6; }
30242
26882
 
30243
26883
if test "$apr_cv_accept4" = "yes"; then
30244
26884
 
30245
 
cat >>confdefs.h <<\_ACEOF
30246
 
#define HAVE_ACCEPT4 1
30247
 
_ACEOF
 
26885
$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
30248
26886
 
30249
26887
fi
30250
26888
 
30251
 
{ $as_echo "$as_me:$LINENO: checking for SOCK_CLOEXEC support" >&5
 
26889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
30252
26890
$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
30253
 
if test "${apr_cv_sock_cloexec+set}" = set; then
 
26891
if test "${apr_cv_sock_cloexec+set}" = set; then :
30254
26892
  $as_echo_n "(cached) " >&6
30255
26893
else
30256
 
  if test "$cross_compiling" = yes; then
 
26894
  if test "$cross_compiling" = yes; then :
30257
26895
  apr_cv_sock_cloexec=no
30258
26896
else
30259
 
  cat >conftest.$ac_ext <<_ACEOF
30260
 
/* confdefs.h.  */
30261
 
_ACEOF
30262
 
cat confdefs.h >>conftest.$ac_ext
30263
 
cat >>conftest.$ac_ext <<_ACEOF
 
26897
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30264
26898
/* end confdefs.h.  */
30265
26899
 
30266
26900
#include <sys/types.h>
30271
26905
    return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
30272
26906
}
30273
26907
_ACEOF
30274
 
rm -f conftest$ac_exeext
30275
 
if { (ac_try="$ac_link"
30276
 
case "(($ac_try" in
30277
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278
 
  *) ac_try_echo=$ac_try;;
30279
 
esac
30280
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30281
 
$as_echo "$ac_try_echo") >&5
30282
 
  (eval "$ac_link") 2>&5
30283
 
  ac_status=$?
30284
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30286
 
  { (case "(($ac_try" in
30287
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288
 
  *) ac_try_echo=$ac_try;;
30289
 
esac
30290
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30291
 
$as_echo "$ac_try_echo") >&5
30292
 
  (eval "$ac_try") 2>&5
30293
 
  ac_status=$?
30294
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295
 
  (exit $ac_status); }; }; then
 
26908
if ac_fn_c_try_run "$LINENO"; then :
30296
26909
  apr_cv_sock_cloexec=yes
30297
26910
else
30298
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
30299
 
$as_echo "$as_me: failed program was:" >&5
30300
 
sed 's/^/| /' conftest.$ac_ext >&5
30301
 
 
30302
 
( exit $ac_status )
30303
 
apr_cv_sock_cloexec=no
30304
 
fi
30305
 
rm -rf conftest.dSYM
30306
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30307
 
fi
30308
 
 
30309
 
 
30310
 
fi
30311
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_sock_cloexec" >&5
 
26911
  apr_cv_sock_cloexec=no
 
26912
fi
 
26913
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
26914
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
26915
fi
 
26916
 
 
26917
fi
 
26918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
30312
26919
$as_echo "$apr_cv_sock_cloexec" >&6; }
30313
26920
 
30314
26921
if test "$apr_cv_sock_cloexec" = "yes"; then
30315
26922
 
30316
 
cat >>confdefs.h <<\_ACEOF
30317
 
#define HAVE_SOCK_CLOEXEC 1
30318
 
_ACEOF
 
26923
$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
30319
26924
 
30320
26925
fi
30321
26926
 
30322
 
 
30323
 
 
30324
 
 
30325
 
 
30326
26927
for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
30327
 
do
30328
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30329
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30330
 
$as_echo_n "checking for $ac_func... " >&6; }
30331
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30332
 
  $as_echo_n "(cached) " >&6
30333
 
else
30334
 
  cat >conftest.$ac_ext <<_ACEOF
30335
 
/* confdefs.h.  */
30336
 
_ACEOF
30337
 
cat confdefs.h >>conftest.$ac_ext
30338
 
cat >>conftest.$ac_ext <<_ACEOF
30339
 
/* end confdefs.h.  */
30340
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30341
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30342
 
#define $ac_func innocuous_$ac_func
30343
 
 
30344
 
/* System header to define __stub macros and hopefully few prototypes,
30345
 
    which can conflict with char $ac_func (); below.
30346
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30347
 
    <limits.h> exists even on freestanding compilers.  */
30348
 
 
30349
 
#ifdef __STDC__
30350
 
# include <limits.h>
30351
 
#else
30352
 
# include <assert.h>
30353
 
#endif
30354
 
 
30355
 
#undef $ac_func
30356
 
 
30357
 
/* Override any GCC internal prototype to avoid an error.
30358
 
   Use char because int might match the return type of a GCC
30359
 
   builtin and then its argument prototype would still apply.  */
30360
 
#ifdef __cplusplus
30361
 
extern "C"
30362
 
#endif
30363
 
char $ac_func ();
30364
 
/* The GNU C library defines this for functions which it implements
30365
 
    to always fail with ENOSYS.  Some functions are actually named
30366
 
    something starting with __ and the normal name is an alias.  */
30367
 
#if defined __stub_$ac_func || defined __stub___$ac_func
30368
 
choke me
30369
 
#endif
30370
 
 
30371
 
int
30372
 
main ()
30373
 
{
30374
 
return $ac_func ();
30375
 
  ;
30376
 
  return 0;
30377
 
}
30378
 
_ACEOF
30379
 
rm -f conftest.$ac_objext conftest$ac_exeext
30380
 
if { (ac_try="$ac_link"
30381
 
case "(($ac_try" in
30382
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30383
 
  *) ac_try_echo=$ac_try;;
30384
 
esac
30385
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30386
 
$as_echo "$ac_try_echo") >&5
30387
 
  (eval "$ac_link") 2>conftest.er1
30388
 
  ac_status=$?
30389
 
  grep -v '^ *+' conftest.er1 >conftest.err
30390
 
  rm -f conftest.er1
30391
 
  cat conftest.err >&5
30392
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393
 
  (exit $ac_status); } && {
30394
 
         test -z "$ac_c_werror_flag" ||
30395
 
         test ! -s conftest.err
30396
 
       } && test -s conftest$ac_exeext && {
30397
 
         test "$cross_compiling" = yes ||
30398
 
         $as_test_x conftest$ac_exeext
30399
 
       }; then
30400
 
  eval "$as_ac_var=yes"
30401
 
else
30402
 
  $as_echo "$as_me: failed program was:" >&5
30403
 
sed 's/^/| /' conftest.$ac_ext >&5
30404
 
 
30405
 
        eval "$as_ac_var=no"
30406
 
fi
30407
 
 
30408
 
rm -rf conftest.dSYM
30409
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30410
 
      conftest$ac_exeext conftest.$ac_ext
30411
 
fi
30412
 
ac_res=`eval 'as_val=${'$as_ac_var'}
30413
 
                 $as_echo "$as_val"'`
30414
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30415
 
$as_echo "$ac_res" >&6; }
30416
 
as_val=`eval 'as_val=${'$as_ac_var'}
30417
 
                 $as_echo "$as_val"'`
30418
 
   if test "x$as_val" = x""yes; then
 
26928
do :
 
26929
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26930
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
26931
eval as_val=\$$as_ac_var
 
26932
   if test "x$as_val" = x""yes; then :
30419
26933
  cat >>confdefs.h <<_ACEOF
30420
26934
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30421
26935
_ACEOF
30428
26942
 
30429
26943
# The real-time POSIX extensions (e.g. shm_*, sem_*) may only
30430
26944
# be available if linking against librt.
30431
 
{ $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
 
26945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
30432
26946
$as_echo_n "checking for library containing shm_open... " >&6; }
30433
 
if test "${ac_cv_search_shm_open+set}" = set; then
 
26947
if test "${ac_cv_search_shm_open+set}" = set; then :
30434
26948
  $as_echo_n "(cached) " >&6
30435
26949
else
30436
26950
  ac_func_search_save_LIBS=$LIBS
30437
 
cat >conftest.$ac_ext <<_ACEOF
30438
 
/* confdefs.h.  */
30439
 
_ACEOF
30440
 
cat confdefs.h >>conftest.$ac_ext
30441
 
cat >>conftest.$ac_ext <<_ACEOF
 
26951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30442
26952
/* end confdefs.h.  */
30443
26953
 
30444
26954
/* Override any GCC internal prototype to avoid an error.
30463
26973
    ac_res=-l$ac_lib
30464
26974
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30465
26975
  fi
30466
 
  rm -f conftest.$ac_objext conftest$ac_exeext
30467
 
if { (ac_try="$ac_link"
30468
 
case "(($ac_try" in
30469
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470
 
  *) ac_try_echo=$ac_try;;
30471
 
esac
30472
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30473
 
$as_echo "$ac_try_echo") >&5
30474
 
  (eval "$ac_link") 2>conftest.er1
30475
 
  ac_status=$?
30476
 
  grep -v '^ *+' conftest.er1 >conftest.err
30477
 
  rm -f conftest.er1
30478
 
  cat conftest.err >&5
30479
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480
 
  (exit $ac_status); } && {
30481
 
         test -z "$ac_c_werror_flag" ||
30482
 
         test ! -s conftest.err
30483
 
       } && test -s conftest$ac_exeext && {
30484
 
         test "$cross_compiling" = yes ||
30485
 
         $as_test_x conftest$ac_exeext
30486
 
       }; then
 
26976
  if ac_fn_c_try_link "$LINENO"; then :
30487
26977
  ac_cv_search_shm_open=$ac_res
30488
 
else
30489
 
  $as_echo "$as_me: failed program was:" >&5
30490
 
sed 's/^/| /' conftest.$ac_ext >&5
30491
 
 
30492
 
 
30493
26978
fi
30494
 
 
30495
 
rm -rf conftest.dSYM
30496
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30497
 
      conftest$ac_exeext
30498
 
  if test "${ac_cv_search_shm_open+set}" = set; then
 
26979
rm -f core conftest.err conftest.$ac_objext \
 
26980
    conftest$ac_exeext
 
26981
  if test "${ac_cv_search_shm_open+set}" = set; then :
30499
26982
  break
30500
26983
fi
30501
26984
done
30502
 
if test "${ac_cv_search_shm_open+set}" = set; then
30503
 
  :
 
26985
if test "${ac_cv_search_shm_open+set}" = set; then :
 
26986
 
30504
26987
else
30505
26988
  ac_cv_search_shm_open=no
30506
26989
fi
30507
26990
rm conftest.$ac_ext
30508
26991
LIBS=$ac_func_search_save_LIBS
30509
26992
fi
30510
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
 
26993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
30511
26994
$as_echo "$ac_cv_search_shm_open" >&6; }
30512
26995
ac_res=$ac_cv_search_shm_open
30513
 
if test "$ac_res" != no; then
 
26996
if test "$ac_res" != no; then :
30514
26997
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30515
26998
 
30516
26999
fi
30524
27007
#endif";;
30525
27008
esac
30526
27009
 
30527
 
 
30528
 
 
30529
 
 
30530
 
 
30531
 
 
30532
 
 
30533
 
 
30534
 
 
30535
 
 
30536
27010
for ac_header in sys/types.h sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h windows.h
30537
 
do
30538
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30539
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30540
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30541
 
$as_echo_n "checking for $ac_header... " >&6; }
30542
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30543
 
  $as_echo_n "(cached) " >&6
30544
 
fi
30545
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
30546
 
                 $as_echo "$as_val"'`
30547
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30548
 
$as_echo "$ac_res" >&6; }
30549
 
else
30550
 
  # Is the header compilable?
30551
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30552
 
$as_echo_n "checking $ac_header usability... " >&6; }
30553
 
cat >conftest.$ac_ext <<_ACEOF
30554
 
/* confdefs.h.  */
30555
 
_ACEOF
30556
 
cat confdefs.h >>conftest.$ac_ext
30557
 
cat >>conftest.$ac_ext <<_ACEOF
30558
 
/* end confdefs.h.  */
30559
 
$ac_includes_default
30560
 
#include <$ac_header>
30561
 
_ACEOF
30562
 
rm -f conftest.$ac_objext
30563
 
if { (ac_try="$ac_compile"
30564
 
case "(($ac_try" in
30565
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30566
 
  *) ac_try_echo=$ac_try;;
30567
 
esac
30568
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30569
 
$as_echo "$ac_try_echo") >&5
30570
 
  (eval "$ac_compile") 2>conftest.er1
30571
 
  ac_status=$?
30572
 
  grep -v '^ *+' conftest.er1 >conftest.err
30573
 
  rm -f conftest.er1
30574
 
  cat conftest.err >&5
30575
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576
 
  (exit $ac_status); } && {
30577
 
         test -z "$ac_c_werror_flag" ||
30578
 
         test ! -s conftest.err
30579
 
       } && test -s conftest.$ac_objext; then
30580
 
  ac_header_compiler=yes
30581
 
else
30582
 
  $as_echo "$as_me: failed program was:" >&5
30583
 
sed 's/^/| /' conftest.$ac_ext >&5
30584
 
 
30585
 
        ac_header_compiler=no
30586
 
fi
30587
 
 
30588
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30589
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30590
 
$as_echo "$ac_header_compiler" >&6; }
30591
 
 
30592
 
# Is the header present?
30593
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30594
 
$as_echo_n "checking $ac_header presence... " >&6; }
30595
 
cat >conftest.$ac_ext <<_ACEOF
30596
 
/* confdefs.h.  */
30597
 
_ACEOF
30598
 
cat confdefs.h >>conftest.$ac_ext
30599
 
cat >>conftest.$ac_ext <<_ACEOF
30600
 
/* end confdefs.h.  */
30601
 
#include <$ac_header>
30602
 
_ACEOF
30603
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
30604
 
case "(($ac_try" in
30605
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606
 
  *) ac_try_echo=$ac_try;;
30607
 
esac
30608
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30609
 
$as_echo "$ac_try_echo") >&5
30610
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30611
 
  ac_status=$?
30612
 
  grep -v '^ *+' conftest.er1 >conftest.err
30613
 
  rm -f conftest.er1
30614
 
  cat conftest.err >&5
30615
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616
 
  (exit $ac_status); } >/dev/null && {
30617
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30618
 
         test ! -s conftest.err
30619
 
       }; then
30620
 
  ac_header_preproc=yes
30621
 
else
30622
 
  $as_echo "$as_me: failed program was:" >&5
30623
 
sed 's/^/| /' conftest.$ac_ext >&5
30624
 
 
30625
 
  ac_header_preproc=no
30626
 
fi
30627
 
 
30628
 
rm -f conftest.err conftest.$ac_ext
30629
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30630
 
$as_echo "$ac_header_preproc" >&6; }
30631
 
 
30632
 
# So?  What about this header?
30633
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30634
 
  yes:no: )
30635
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30636
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30637
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30638
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30639
 
    ac_header_preproc=yes
30640
 
    ;;
30641
 
  no:yes:* )
30642
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30643
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30644
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30645
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30646
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30647
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30648
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30649
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30650
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30651
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30652
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30653
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30654
 
 
30655
 
    ;;
30656
 
esac
30657
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30658
 
$as_echo_n "checking for $ac_header... " >&6; }
30659
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30660
 
  $as_echo_n "(cached) " >&6
30661
 
else
30662
 
  eval "$as_ac_Header=\$ac_header_preproc"
30663
 
fi
30664
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
30665
 
                 $as_echo "$as_val"'`
30666
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30667
 
$as_echo "$ac_res" >&6; }
30668
 
 
30669
 
fi
30670
 
as_val=`eval 'as_val=${'$as_ac_Header'}
30671
 
                 $as_echo "$as_val"'`
30672
 
   if test "x$as_val" = x""yes; then
 
27011
do :
 
27012
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
27013
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
27014
eval as_val=\$$as_ac_Header
 
27015
   if test "x$as_val" = x""yes; then :
30673
27016
  cat >>confdefs.h <<_ACEOF
30674
27017
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30675
27018
_ACEOF
30678
27021
 
30679
27022
done
30680
27023
 
30681
 
 
30682
 
 
30683
 
 
30684
 
 
30685
 
 
30686
 
 
30687
 
 
30688
 
 
30689
 
 
30690
27024
for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
30691
27025
                create_area
30692
 
do
30693
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30694
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30695
 
$as_echo_n "checking for $ac_func... " >&6; }
30696
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30697
 
  $as_echo_n "(cached) " >&6
30698
 
else
30699
 
  cat >conftest.$ac_ext <<_ACEOF
30700
 
/* confdefs.h.  */
30701
 
_ACEOF
30702
 
cat confdefs.h >>conftest.$ac_ext
30703
 
cat >>conftest.$ac_ext <<_ACEOF
30704
 
/* end confdefs.h.  */
30705
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30706
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30707
 
#define $ac_func innocuous_$ac_func
30708
 
 
30709
 
/* System header to define __stub macros and hopefully few prototypes,
30710
 
    which can conflict with char $ac_func (); below.
30711
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30712
 
    <limits.h> exists even on freestanding compilers.  */
30713
 
 
30714
 
#ifdef __STDC__
30715
 
# include <limits.h>
30716
 
#else
30717
 
# include <assert.h>
30718
 
#endif
30719
 
 
30720
 
#undef $ac_func
30721
 
 
30722
 
/* Override any GCC internal prototype to avoid an error.
30723
 
   Use char because int might match the return type of a GCC
30724
 
   builtin and then its argument prototype would still apply.  */
30725
 
#ifdef __cplusplus
30726
 
extern "C"
30727
 
#endif
30728
 
char $ac_func ();
30729
 
/* The GNU C library defines this for functions which it implements
30730
 
    to always fail with ENOSYS.  Some functions are actually named
30731
 
    something starting with __ and the normal name is an alias.  */
30732
 
#if defined __stub_$ac_func || defined __stub___$ac_func
30733
 
choke me
30734
 
#endif
30735
 
 
30736
 
int
30737
 
main ()
30738
 
{
30739
 
return $ac_func ();
30740
 
  ;
30741
 
  return 0;
30742
 
}
30743
 
_ACEOF
30744
 
rm -f conftest.$ac_objext conftest$ac_exeext
30745
 
if { (ac_try="$ac_link"
30746
 
case "(($ac_try" in
30747
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30748
 
  *) ac_try_echo=$ac_try;;
30749
 
esac
30750
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30751
 
$as_echo "$ac_try_echo") >&5
30752
 
  (eval "$ac_link") 2>conftest.er1
30753
 
  ac_status=$?
30754
 
  grep -v '^ *+' conftest.er1 >conftest.err
30755
 
  rm -f conftest.er1
30756
 
  cat conftest.err >&5
30757
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758
 
  (exit $ac_status); } && {
30759
 
         test -z "$ac_c_werror_flag" ||
30760
 
         test ! -s conftest.err
30761
 
       } && test -s conftest$ac_exeext && {
30762
 
         test "$cross_compiling" = yes ||
30763
 
         $as_test_x conftest$ac_exeext
30764
 
       }; then
30765
 
  eval "$as_ac_var=yes"
30766
 
else
30767
 
  $as_echo "$as_me: failed program was:" >&5
30768
 
sed 's/^/| /' conftest.$ac_ext >&5
30769
 
 
30770
 
        eval "$as_ac_var=no"
30771
 
fi
30772
 
 
30773
 
rm -rf conftest.dSYM
30774
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30775
 
      conftest$ac_exeext conftest.$ac_ext
30776
 
fi
30777
 
ac_res=`eval 'as_val=${'$as_ac_var'}
30778
 
                 $as_echo "$as_val"'`
30779
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30780
 
$as_echo "$ac_res" >&6; }
30781
 
as_val=`eval 'as_val=${'$as_ac_var'}
30782
 
                 $as_echo "$as_val"'`
30783
 
   if test "x$as_val" = x""yes; then
 
27026
do :
 
27027
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27028
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
27029
eval as_val=\$$as_ac_var
 
27030
   if test "x$as_val" = x""yes; then :
30784
27031
  cat >>confdefs.h <<_ACEOF
30785
27032
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30786
27033
_ACEOF
30790
27037
 
30791
27038
 
30792
27039
 
30793
 
  { $as_echo "$as_me:$LINENO: checking for MAP_ANON in sys/mman.h" >&5
 
27040
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
30794
27041
$as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
30795
 
if test "${ac_cv_define_MAP_ANON+set}" = set; then
 
27042
if test "${ac_cv_define_MAP_ANON+set}" = set; then :
30796
27043
  $as_echo_n "(cached) " >&6
30797
27044
else
30798
27045
 
30799
 
    cat >conftest.$ac_ext <<_ACEOF
30800
 
/* confdefs.h.  */
30801
 
_ACEOF
30802
 
cat confdefs.h >>conftest.$ac_ext
30803
 
cat >>conftest.$ac_ext <<_ACEOF
 
27046
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30804
27047
/* end confdefs.h.  */
30805
27048
 
30806
27049
#include <sys/mman.h>
30810
27053
 
30811
27054
_ACEOF
30812
27055
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30813
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
27056
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
30814
27057
  ac_cv_define_MAP_ANON=yes
30815
27058
else
30816
27059
  ac_cv_define_MAP_ANON=no
30819
27062
 
30820
27063
 
30821
27064
fi
30822
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_MAP_ANON" >&5
 
27065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
30823
27066
$as_echo "$ac_cv_define_MAP_ANON" >&6; }
30824
27067
  if test "$ac_cv_define_MAP_ANON" = "yes"; then
30825
27068
 
30826
 
cat >>confdefs.h <<\_ACEOF
30827
 
#define HAVE_MAP_ANON 1
30828
 
_ACEOF
 
27069
$as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
30829
27070
 
30830
27071
  fi
30831
27072
 
30832
 
{ $as_echo "$as_me:$LINENO: checking for /dev/zero" >&5
 
27073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
30833
27074
$as_echo_n "checking for /dev/zero... " >&6; }
30834
 
if test "${ac_cv_file__dev_zero+set}" = set; then
 
27075
if test "${ac_cv_file__dev_zero+set}" = set; then :
30835
27076
  $as_echo_n "(cached) " >&6
30836
27077
else
30837
27078
  test "$cross_compiling" = yes &&
30838
 
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30839
 
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30840
 
   { (exit 1); exit 1; }; }
 
27079
  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
30841
27080
if test -r "/dev/zero"; then
30842
27081
  ac_cv_file__dev_zero=yes
30843
27082
else
30844
27083
  ac_cv_file__dev_zero=no
30845
27084
fi
30846
27085
fi
30847
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__dev_zero" >&5
 
27086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
30848
27087
$as_echo "$ac_cv_file__dev_zero" >&6; }
 
27088
if test "x$ac_cv_file__dev_zero" = x""yes; then :
 
27089
 
 
27090
fi
30849
27091
 
30850
27092
 
30851
27093
# Not all systems can mmap /dev/zero (such as HP-UX).  Check for that.
30852
27094
if test "$ac_cv_func_mmap" = "yes" &&
30853
27095
   test "$ac_cv_file__dev_zero" = "yes"; then
30854
 
    { $as_echo "$as_me:$LINENO: checking for mmap that can map /dev/zero" >&5
 
27096
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
30855
27097
$as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
30856
 
    if test "$cross_compiling" = yes; then
 
27098
    if test "$cross_compiling" = yes; then :
30857
27099
  ac_cv_file__dev_zero=no
30858
27100
else
30859
 
  cat >conftest.$ac_ext <<_ACEOF
30860
 
/* confdefs.h.  */
30861
 
_ACEOF
30862
 
cat confdefs.h >>conftest.$ac_ext
30863
 
cat >>conftest.$ac_ext <<_ACEOF
 
27101
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30864
27102
/* end confdefs.h.  */
30865
27103
 
30866
27104
#include <sys/types.h>
30887
27125
        return 0;
30888
27126
    }
30889
27127
_ACEOF
30890
 
rm -f conftest$ac_exeext
30891
 
if { (ac_try="$ac_link"
30892
 
case "(($ac_try" in
30893
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894
 
  *) ac_try_echo=$ac_try;;
30895
 
esac
30896
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30897
 
$as_echo "$ac_try_echo") >&5
30898
 
  (eval "$ac_link") 2>&5
30899
 
  ac_status=$?
30900
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30902
 
  { (case "(($ac_try" in
30903
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904
 
  *) ac_try_echo=$ac_try;;
30905
 
esac
30906
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30907
 
$as_echo "$ac_try_echo") >&5
30908
 
  (eval "$ac_try") 2>&5
30909
 
  ac_status=$?
30910
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911
 
  (exit $ac_status); }; }; then
30912
 
  :
 
27128
if ac_fn_c_try_run "$LINENO"; then :
 
27129
 
30913
27130
else
30914
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
30915
 
$as_echo "$as_me: failed program was:" >&5
30916
 
sed 's/^/| /' conftest.$ac_ext >&5
30917
 
 
30918
 
( exit $ac_status )
30919
 
ac_cv_file__dev_zero=no
30920
 
fi
30921
 
rm -rf conftest.dSYM
30922
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30923
 
fi
30924
 
 
30925
 
 
30926
 
 
30927
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_file__dev_zero" >&5
 
27131
  ac_cv_file__dev_zero=no
 
27132
fi
 
27133
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
27134
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
27135
fi
 
27136
 
 
27137
 
 
27138
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
30928
27139
$as_echo "$ac_cv_file__dev_zero" >&6; }
30929
27140
fi
30930
27141
 
30964
27175
    :
30965
27176
    haveshmgetanon="1"
30966
27177
 
30967
 
 
30968
27178
ac_decision='USE_SHMEM_SHMGET_ANON'
30969
27179
ac_decision_msg='SysV IPC shmget()'
30970
27180
ac_decision_USE_SHMEM_SHMGET_ANON=yes
31003
27213
    :
31004
27214
    havemmapzero="1"
31005
27215
 
31006
 
 
31007
27216
ac_decision='USE_SHMEM_MMAP_ZERO'
31008
27217
ac_decision_msg='SVR4-style mmap() on /dev/zero'
31009
27218
ac_decision_USE_SHMEM_MMAP_ZERO=yes
31042
27251
    :
31043
27252
    havemmapanon="1"
31044
27253
 
31045
 
 
31046
27254
ac_decision='USE_SHMEM_MMAP_ANON'
31047
27255
ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
31048
27256
ac_decision_USE_SHMEM_MMAP_ANON=yes
31081
27289
    :
31082
27290
    haveos2shm="1"
31083
27291
 
31084
 
 
31085
27292
ac_decision='USE_SHMEM_OS2_ANON'
31086
27293
ac_decision_msg='OS/2 DosAllocSharedMem()'
31087
27294
ac_decision_USE_SHMEM_OS2_ANON=yes
31120
27327
    :
31121
27328
    havebeosshm="1"
31122
27329
 
31123
 
 
31124
27330
ac_decision='USE_SHMEM_BEOS_ANON'
31125
27331
ac_decision_msg='BeOS areas'
31126
27332
ac_decision_USE_SHMEM_BEOS_ANON=yes
31159
27365
    :
31160
27366
    havewin32shm="1"
31161
27367
 
31162
 
 
31163
27368
ac_decision='USE_SHMEM_WIN32_ANON'
31164
27369
ac_decision_msg='Windows CreateFileMapping()'
31165
27370
ac_decision_USE_SHMEM_WIN32_ANON=yes
31211
27416
#define ${ac_decision_item} 1
31212
27417
_ACEOF
31213
27418
 
31214
 
    { $as_echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5
 
27419
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
31215
27420
$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
31216
27421
fi
31217
27422
 
31282
27487
    :
31283
27488
    havemmaptmp="1"
31284
27489
 
31285
 
 
31286
27490
ac_decision='USE_SHMEM_MMAP_TMP'
31287
27491
ac_decision_msg='Classical mmap() on temporary file'
31288
27492
ac_decision_USE_SHMEM_MMAP_TMP=yes
31321
27525
    :
31322
27526
    havemmapshm="1"
31323
27527
 
31324
 
 
31325
27528
ac_decision='USE_SHMEM_MMAP_SHM'
31326
27529
ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
31327
27530
ac_decision_USE_SHMEM_MMAP_SHM=yes
31360
27563
    :
31361
27564
    haveshmget="1"
31362
27565
 
31363
 
 
31364
27566
ac_decision='USE_SHMEM_SHMGET'
31365
27567
ac_decision_msg='SysV IPC shmget()'
31366
27568
ac_decision_USE_SHMEM_SHMGET=yes
31399
27601
    :
31400
27602
    havebeosshm="1"
31401
27603
 
31402
 
 
31403
27604
ac_decision='USE_SHMEM_BEOS'
31404
27605
ac_decision_msg='BeOS areas'
31405
27606
ac_decision_USE_SHMEM_BEOS=yes
31438
27639
    :
31439
27640
    haveos2shm="1"
31440
27641
 
31441
 
 
31442
27642
ac_decision='USE_SHMEM_OS2'
31443
27643
ac_decision_msg='OS/2 DosAllocSharedMem()'
31444
27644
ac_decision_USE_SHMEM_OS2=yes
31477
27677
    :
31478
27678
    havewin32shm="1"
31479
27679
 
31480
 
 
31481
27680
ac_decision='USE_SHMEM_WIN32'
31482
27681
ac_decision_msg='Windows shared memory'
31483
27682
ac_decision_USE_SHMEM_WIN32=yes
31518
27717
#define ${ac_decision_item} 1
31519
27718
_ACEOF
31520
27719
 
31521
 
    { $as_echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5
 
27720
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
31522
27721
$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
31523
27722
fi
31524
27723
 
31579
27778
 
31580
27779
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31581
27780
# for constant arguments.  Useless!
31582
 
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
27781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
31583
27782
$as_echo_n "checking for working alloca.h... " >&6; }
31584
 
if test "${ac_cv_working_alloca_h+set}" = set; then
 
27783
if test "${ac_cv_working_alloca_h+set}" = set; then :
31585
27784
  $as_echo_n "(cached) " >&6
31586
27785
else
31587
 
  cat >conftest.$ac_ext <<_ACEOF
31588
 
/* confdefs.h.  */
31589
 
_ACEOF
31590
 
cat confdefs.h >>conftest.$ac_ext
31591
 
cat >>conftest.$ac_ext <<_ACEOF
 
27786
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31592
27787
/* end confdefs.h.  */
31593
27788
#include <alloca.h>
31594
27789
int
31600
27795
  return 0;
31601
27796
}
31602
27797
_ACEOF
31603
 
rm -f conftest.$ac_objext conftest$ac_exeext
31604
 
if { (ac_try="$ac_link"
31605
 
case "(($ac_try" in
31606
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607
 
  *) ac_try_echo=$ac_try;;
31608
 
esac
31609
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31610
 
$as_echo "$ac_try_echo") >&5
31611
 
  (eval "$ac_link") 2>conftest.er1
31612
 
  ac_status=$?
31613
 
  grep -v '^ *+' conftest.er1 >conftest.err
31614
 
  rm -f conftest.er1
31615
 
  cat conftest.err >&5
31616
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617
 
  (exit $ac_status); } && {
31618
 
         test -z "$ac_c_werror_flag" ||
31619
 
         test ! -s conftest.err
31620
 
       } && test -s conftest$ac_exeext && {
31621
 
         test "$cross_compiling" = yes ||
31622
 
         $as_test_x conftest$ac_exeext
31623
 
       }; then
 
27798
if ac_fn_c_try_link "$LINENO"; then :
31624
27799
  ac_cv_working_alloca_h=yes
31625
27800
else
31626
 
  $as_echo "$as_me: failed program was:" >&5
31627
 
sed 's/^/| /' conftest.$ac_ext >&5
31628
 
 
31629
 
        ac_cv_working_alloca_h=no
31630
 
fi
31631
 
 
31632
 
rm -rf conftest.dSYM
31633
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31634
 
      conftest$ac_exeext conftest.$ac_ext
31635
 
fi
31636
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
27801
  ac_cv_working_alloca_h=no
 
27802
fi
 
27803
rm -f core conftest.err conftest.$ac_objext \
 
27804
    conftest$ac_exeext conftest.$ac_ext
 
27805
fi
 
27806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
31637
27807
$as_echo "$ac_cv_working_alloca_h" >&6; }
31638
27808
if test $ac_cv_working_alloca_h = yes; then
31639
27809
 
31640
 
cat >>confdefs.h <<\_ACEOF
31641
 
#define HAVE_ALLOCA_H 1
31642
 
_ACEOF
 
27810
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
31643
27811
 
31644
27812
fi
31645
27813
 
31646
 
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
 
27814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
31647
27815
$as_echo_n "checking for alloca... " >&6; }
31648
 
if test "${ac_cv_func_alloca_works+set}" = set; then
 
27816
if test "${ac_cv_func_alloca_works+set}" = set; then :
31649
27817
  $as_echo_n "(cached) " >&6
31650
27818
else
31651
 
  cat >conftest.$ac_ext <<_ACEOF
31652
 
/* confdefs.h.  */
31653
 
_ACEOF
31654
 
cat confdefs.h >>conftest.$ac_ext
31655
 
cat >>conftest.$ac_ext <<_ACEOF
 
27819
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31656
27820
/* end confdefs.h.  */
31657
27821
#ifdef __GNUC__
31658
27822
# define alloca __builtin_alloca
31684
27848
  return 0;
31685
27849
}
31686
27850
_ACEOF
31687
 
rm -f conftest.$ac_objext conftest$ac_exeext
31688
 
if { (ac_try="$ac_link"
31689
 
case "(($ac_try" in
31690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31691
 
  *) ac_try_echo=$ac_try;;
31692
 
esac
31693
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31694
 
$as_echo "$ac_try_echo") >&5
31695
 
  (eval "$ac_link") 2>conftest.er1
31696
 
  ac_status=$?
31697
 
  grep -v '^ *+' conftest.er1 >conftest.err
31698
 
  rm -f conftest.er1
31699
 
  cat conftest.err >&5
31700
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701
 
  (exit $ac_status); } && {
31702
 
         test -z "$ac_c_werror_flag" ||
31703
 
         test ! -s conftest.err
31704
 
       } && test -s conftest$ac_exeext && {
31705
 
         test "$cross_compiling" = yes ||
31706
 
         $as_test_x conftest$ac_exeext
31707
 
       }; then
 
27851
if ac_fn_c_try_link "$LINENO"; then :
31708
27852
  ac_cv_func_alloca_works=yes
31709
27853
else
31710
 
  $as_echo "$as_me: failed program was:" >&5
31711
 
sed 's/^/| /' conftest.$ac_ext >&5
31712
 
 
31713
 
        ac_cv_func_alloca_works=no
31714
 
fi
31715
 
 
31716
 
rm -rf conftest.dSYM
31717
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31718
 
      conftest$ac_exeext conftest.$ac_ext
31719
 
fi
31720
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
27854
  ac_cv_func_alloca_works=no
 
27855
fi
 
27856
rm -f core conftest.err conftest.$ac_objext \
 
27857
    conftest$ac_exeext conftest.$ac_ext
 
27858
fi
 
27859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
31721
27860
$as_echo "$ac_cv_func_alloca_works" >&6; }
31722
27861
 
31723
27862
if test $ac_cv_func_alloca_works = yes; then
31724
27863
 
31725
 
cat >>confdefs.h <<\_ACEOF
31726
 
#define HAVE_ALLOCA 1
31727
 
_ACEOF
 
27864
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
31728
27865
 
31729
27866
else
31730
27867
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31734
27871
 
31735
27872
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31736
27873
 
31737
 
cat >>confdefs.h <<\_ACEOF
31738
 
#define C_ALLOCA 1
31739
 
_ACEOF
31740
 
 
31741
 
 
31742
 
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
27874
$as_echo "#define C_ALLOCA 1" >>confdefs.h
 
27875
 
 
27876
 
 
27877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
31743
27878
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
31744
 
if test "${ac_cv_os_cray+set}" = set; then
 
27879
if test "${ac_cv_os_cray+set}" = set; then :
31745
27880
  $as_echo_n "(cached) " >&6
31746
27881
else
31747
 
  cat >conftest.$ac_ext <<_ACEOF
31748
 
/* confdefs.h.  */
31749
 
_ACEOF
31750
 
cat confdefs.h >>conftest.$ac_ext
31751
 
cat >>conftest.$ac_ext <<_ACEOF
 
27882
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31752
27883
/* end confdefs.h.  */
31753
27884
#if defined CRAY && ! defined CRAY2
31754
27885
webecray
31758
27889
 
31759
27890
_ACEOF
31760
27891
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31761
 
  $EGREP "webecray" >/dev/null 2>&1; then
 
27892
  $EGREP "webecray" >/dev/null 2>&1; then :
31762
27893
  ac_cv_os_cray=yes
31763
27894
else
31764
27895
  ac_cv_os_cray=no
31766
27897
rm -f conftest*
31767
27898
 
31768
27899
fi
31769
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
27900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
31770
27901
$as_echo "$ac_cv_os_cray" >&6; }
31771
27902
if test $ac_cv_os_cray = yes; then
31772
27903
  for ac_func in _getb67 GETB67 getb67; do
31773
27904
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31774
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31775
 
$as_echo_n "checking for $ac_func... " >&6; }
31776
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31777
 
  $as_echo_n "(cached) " >&6
31778
 
else
31779
 
  cat >conftest.$ac_ext <<_ACEOF
31780
 
/* confdefs.h.  */
31781
 
_ACEOF
31782
 
cat confdefs.h >>conftest.$ac_ext
31783
 
cat >>conftest.$ac_ext <<_ACEOF
31784
 
/* end confdefs.h.  */
31785
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31786
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31787
 
#define $ac_func innocuous_$ac_func
31788
 
 
31789
 
/* System header to define __stub macros and hopefully few prototypes,
31790
 
    which can conflict with char $ac_func (); below.
31791
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31792
 
    <limits.h> exists even on freestanding compilers.  */
31793
 
 
31794
 
#ifdef __STDC__
31795
 
# include <limits.h>
31796
 
#else
31797
 
# include <assert.h>
31798
 
#endif
31799
 
 
31800
 
#undef $ac_func
31801
 
 
31802
 
/* Override any GCC internal prototype to avoid an error.
31803
 
   Use char because int might match the return type of a GCC
31804
 
   builtin and then its argument prototype would still apply.  */
31805
 
#ifdef __cplusplus
31806
 
extern "C"
31807
 
#endif
31808
 
char $ac_func ();
31809
 
/* The GNU C library defines this for functions which it implements
31810
 
    to always fail with ENOSYS.  Some functions are actually named
31811
 
    something starting with __ and the normal name is an alias.  */
31812
 
#if defined __stub_$ac_func || defined __stub___$ac_func
31813
 
choke me
31814
 
#endif
31815
 
 
31816
 
int
31817
 
main ()
31818
 
{
31819
 
return $ac_func ();
31820
 
  ;
31821
 
  return 0;
31822
 
}
31823
 
_ACEOF
31824
 
rm -f conftest.$ac_objext conftest$ac_exeext
31825
 
if { (ac_try="$ac_link"
31826
 
case "(($ac_try" in
31827
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828
 
  *) ac_try_echo=$ac_try;;
31829
 
esac
31830
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31831
 
$as_echo "$ac_try_echo") >&5
31832
 
  (eval "$ac_link") 2>conftest.er1
31833
 
  ac_status=$?
31834
 
  grep -v '^ *+' conftest.er1 >conftest.err
31835
 
  rm -f conftest.er1
31836
 
  cat conftest.err >&5
31837
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838
 
  (exit $ac_status); } && {
31839
 
         test -z "$ac_c_werror_flag" ||
31840
 
         test ! -s conftest.err
31841
 
       } && test -s conftest$ac_exeext && {
31842
 
         test "$cross_compiling" = yes ||
31843
 
         $as_test_x conftest$ac_exeext
31844
 
       }; then
31845
 
  eval "$as_ac_var=yes"
31846
 
else
31847
 
  $as_echo "$as_me: failed program was:" >&5
31848
 
sed 's/^/| /' conftest.$ac_ext >&5
31849
 
 
31850
 
        eval "$as_ac_var=no"
31851
 
fi
31852
 
 
31853
 
rm -rf conftest.dSYM
31854
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31855
 
      conftest$ac_exeext conftest.$ac_ext
31856
 
fi
31857
 
ac_res=`eval 'as_val=${'$as_ac_var'}
31858
 
                 $as_echo "$as_val"'`
31859
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31860
 
$as_echo "$ac_res" >&6; }
31861
 
as_val=`eval 'as_val=${'$as_ac_var'}
31862
 
                 $as_echo "$as_val"'`
31863
 
   if test "x$as_val" = x""yes; then
 
27905
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
27906
eval as_val=\$$as_ac_var
 
27907
   if test "x$as_val" = x""yes; then :
31864
27908
 
31865
27909
cat >>confdefs.h <<_ACEOF
31866
27910
#define CRAY_STACKSEG_END $ac_func
31872
27916
  done
31873
27917
fi
31874
27918
 
31875
 
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
27919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
31876
27920
$as_echo_n "checking stack direction for C alloca... " >&6; }
31877
 
if test "${ac_cv_c_stack_direction+set}" = set; then
 
27921
if test "${ac_cv_c_stack_direction+set}" = set; then :
31878
27922
  $as_echo_n "(cached) " >&6
31879
27923
else
31880
 
  if test "$cross_compiling" = yes; then
 
27924
  if test "$cross_compiling" = yes; then :
31881
27925
  ac_cv_c_stack_direction=0
31882
27926
else
31883
 
  cat >conftest.$ac_ext <<_ACEOF
31884
 
/* confdefs.h.  */
31885
 
_ACEOF
31886
 
cat confdefs.h >>conftest.$ac_ext
31887
 
cat >>conftest.$ac_ext <<_ACEOF
 
27927
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31888
27928
/* end confdefs.h.  */
31889
27929
$ac_includes_default
31890
27930
int
31907
27947
  return find_stack_direction () < 0;
31908
27948
}
31909
27949
_ACEOF
31910
 
rm -f conftest$ac_exeext
31911
 
if { (ac_try="$ac_link"
31912
 
case "(($ac_try" in
31913
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914
 
  *) ac_try_echo=$ac_try;;
31915
 
esac
31916
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31917
 
$as_echo "$ac_try_echo") >&5
31918
 
  (eval "$ac_link") 2>&5
31919
 
  ac_status=$?
31920
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31922
 
  { (case "(($ac_try" in
31923
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924
 
  *) ac_try_echo=$ac_try;;
31925
 
esac
31926
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31927
 
$as_echo "$ac_try_echo") >&5
31928
 
  (eval "$ac_try") 2>&5
31929
 
  ac_status=$?
31930
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931
 
  (exit $ac_status); }; }; then
 
27950
if ac_fn_c_try_run "$LINENO"; then :
31932
27951
  ac_cv_c_stack_direction=1
31933
27952
else
31934
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
31935
 
$as_echo "$as_me: failed program was:" >&5
31936
 
sed 's/^/| /' conftest.$ac_ext >&5
31937
 
 
31938
 
( exit $ac_status )
31939
 
ac_cv_c_stack_direction=-1
31940
 
fi
31941
 
rm -rf conftest.dSYM
31942
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31943
 
fi
31944
 
 
31945
 
 
31946
 
fi
31947
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
27953
  ac_cv_c_stack_direction=-1
 
27954
fi
 
27955
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
27956
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
27957
fi
 
27958
 
 
27959
fi
 
27960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
31948
27961
$as_echo "$ac_cv_c_stack_direction" >&6; }
31949
 
 
31950
27962
cat >>confdefs.h <<_ACEOF
31951
27963
#define STACK_DIRECTION $ac_cv_c_stack_direction
31952
27964
_ACEOF
31955
27967
fi
31956
27968
 
31957
27969
 
31958
 
 
31959
 
 
31960
 
 
31961
 
 
31962
 
 
31963
 
 
31964
 
 
31965
 
 
31966
 
 
31967
 
 
31968
 
 
31969
 
 
31970
27970
for ac_func in calloc setsid isinf isnan \
31971
27971
                getenv putenv setenv unsetenv \
31972
27972
                writev getifaddrs utime utimes
31973
 
do
31974
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31975
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31976
 
$as_echo_n "checking for $ac_func... " >&6; }
31977
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31978
 
  $as_echo_n "(cached) " >&6
31979
 
else
31980
 
  cat >conftest.$ac_ext <<_ACEOF
31981
 
/* confdefs.h.  */
31982
 
_ACEOF
31983
 
cat confdefs.h >>conftest.$ac_ext
31984
 
cat >>conftest.$ac_ext <<_ACEOF
31985
 
/* end confdefs.h.  */
31986
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31987
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31988
 
#define $ac_func innocuous_$ac_func
31989
 
 
31990
 
/* System header to define __stub macros and hopefully few prototypes,
31991
 
    which can conflict with char $ac_func (); below.
31992
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31993
 
    <limits.h> exists even on freestanding compilers.  */
31994
 
 
31995
 
#ifdef __STDC__
31996
 
# include <limits.h>
31997
 
#else
31998
 
# include <assert.h>
31999
 
#endif
32000
 
 
32001
 
#undef $ac_func
32002
 
 
32003
 
/* Override any GCC internal prototype to avoid an error.
32004
 
   Use char because int might match the return type of a GCC
32005
 
   builtin and then its argument prototype would still apply.  */
32006
 
#ifdef __cplusplus
32007
 
extern "C"
32008
 
#endif
32009
 
char $ac_func ();
32010
 
/* The GNU C library defines this for functions which it implements
32011
 
    to always fail with ENOSYS.  Some functions are actually named
32012
 
    something starting with __ and the normal name is an alias.  */
32013
 
#if defined __stub_$ac_func || defined __stub___$ac_func
32014
 
choke me
32015
 
#endif
32016
 
 
32017
 
int
32018
 
main ()
32019
 
{
32020
 
return $ac_func ();
32021
 
  ;
32022
 
  return 0;
32023
 
}
32024
 
_ACEOF
32025
 
rm -f conftest.$ac_objext conftest$ac_exeext
32026
 
if { (ac_try="$ac_link"
32027
 
case "(($ac_try" in
32028
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029
 
  *) ac_try_echo=$ac_try;;
32030
 
esac
32031
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32032
 
$as_echo "$ac_try_echo") >&5
32033
 
  (eval "$ac_link") 2>conftest.er1
32034
 
  ac_status=$?
32035
 
  grep -v '^ *+' conftest.er1 >conftest.err
32036
 
  rm -f conftest.er1
32037
 
  cat conftest.err >&5
32038
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039
 
  (exit $ac_status); } && {
32040
 
         test -z "$ac_c_werror_flag" ||
32041
 
         test ! -s conftest.err
32042
 
       } && test -s conftest$ac_exeext && {
32043
 
         test "$cross_compiling" = yes ||
32044
 
         $as_test_x conftest$ac_exeext
32045
 
       }; then
32046
 
  eval "$as_ac_var=yes"
32047
 
else
32048
 
  $as_echo "$as_me: failed program was:" >&5
32049
 
sed 's/^/| /' conftest.$ac_ext >&5
32050
 
 
32051
 
        eval "$as_ac_var=no"
32052
 
fi
32053
 
 
32054
 
rm -rf conftest.dSYM
32055
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32056
 
      conftest$ac_exeext conftest.$ac_ext
32057
 
fi
32058
 
ac_res=`eval 'as_val=${'$as_ac_var'}
32059
 
                 $as_echo "$as_val"'`
32060
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32061
 
$as_echo "$ac_res" >&6; }
32062
 
as_val=`eval 'as_val=${'$as_ac_var'}
32063
 
                 $as_echo "$as_val"'`
32064
 
   if test "x$as_val" = x""yes; then
 
27973
do :
 
27974
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27975
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
27976
eval as_val=\$$as_ac_var
 
27977
   if test "x$as_val" = x""yes; then :
32065
27978
  cat >>confdefs.h <<_ACEOF
32066
27979
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32067
27980
_ACEOF
32069
27982
fi
32070
27983
done
32071
27984
 
32072
 
 
32073
27985
for ac_func in setrlimit
32074
 
do
32075
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32076
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32077
 
$as_echo_n "checking for $ac_func... " >&6; }
32078
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32079
 
  $as_echo_n "(cached) " >&6
32080
 
else
32081
 
  cat >conftest.$ac_ext <<_ACEOF
32082
 
/* confdefs.h.  */
32083
 
_ACEOF
32084
 
cat confdefs.h >>conftest.$ac_ext
32085
 
cat >>conftest.$ac_ext <<_ACEOF
32086
 
/* end confdefs.h.  */
32087
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32088
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32089
 
#define $ac_func innocuous_$ac_func
32090
 
 
32091
 
/* System header to define __stub macros and hopefully few prototypes,
32092
 
    which can conflict with char $ac_func (); below.
32093
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32094
 
    <limits.h> exists even on freestanding compilers.  */
32095
 
 
32096
 
#ifdef __STDC__
32097
 
# include <limits.h>
32098
 
#else
32099
 
# include <assert.h>
32100
 
#endif
32101
 
 
32102
 
#undef $ac_func
32103
 
 
32104
 
/* Override any GCC internal prototype to avoid an error.
32105
 
   Use char because int might match the return type of a GCC
32106
 
   builtin and then its argument prototype would still apply.  */
32107
 
#ifdef __cplusplus
32108
 
extern "C"
32109
 
#endif
32110
 
char $ac_func ();
32111
 
/* The GNU C library defines this for functions which it implements
32112
 
    to always fail with ENOSYS.  Some functions are actually named
32113
 
    something starting with __ and the normal name is an alias.  */
32114
 
#if defined __stub_$ac_func || defined __stub___$ac_func
32115
 
choke me
32116
 
#endif
32117
 
 
32118
 
int
32119
 
main ()
32120
 
{
32121
 
return $ac_func ();
32122
 
  ;
32123
 
  return 0;
32124
 
}
32125
 
_ACEOF
32126
 
rm -f conftest.$ac_objext conftest$ac_exeext
32127
 
if { (ac_try="$ac_link"
32128
 
case "(($ac_try" in
32129
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32130
 
  *) ac_try_echo=$ac_try;;
32131
 
esac
32132
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32133
 
$as_echo "$ac_try_echo") >&5
32134
 
  (eval "$ac_link") 2>conftest.er1
32135
 
  ac_status=$?
32136
 
  grep -v '^ *+' conftest.er1 >conftest.err
32137
 
  rm -f conftest.er1
32138
 
  cat conftest.err >&5
32139
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140
 
  (exit $ac_status); } && {
32141
 
         test -z "$ac_c_werror_flag" ||
32142
 
         test ! -s conftest.err
32143
 
       } && test -s conftest$ac_exeext && {
32144
 
         test "$cross_compiling" = yes ||
32145
 
         $as_test_x conftest$ac_exeext
32146
 
       }; then
32147
 
  eval "$as_ac_var=yes"
32148
 
else
32149
 
  $as_echo "$as_me: failed program was:" >&5
32150
 
sed 's/^/| /' conftest.$ac_ext >&5
32151
 
 
32152
 
        eval "$as_ac_var=no"
32153
 
fi
32154
 
 
32155
 
rm -rf conftest.dSYM
32156
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32157
 
      conftest$ac_exeext conftest.$ac_ext
32158
 
fi
32159
 
ac_res=`eval 'as_val=${'$as_ac_var'}
32160
 
                 $as_echo "$as_val"'`
32161
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32162
 
$as_echo "$ac_res" >&6; }
32163
 
as_val=`eval 'as_val=${'$as_ac_var'}
32164
 
                 $as_echo "$as_val"'`
32165
 
   if test "x$as_val" = x""yes; then
 
27986
do :
 
27987
  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
 
27988
if test "x$ac_cv_func_setrlimit" = x""yes; then :
32166
27989
  cat >>confdefs.h <<_ACEOF
32167
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27990
#define HAVE_SETRLIMIT 1
32168
27991
_ACEOF
32169
27992
  have_setrlimit="1"
32170
27993
else
32172
27995
fi
32173
27996
done
32174
27997
 
32175
 
 
32176
27998
for ac_func in getrlimit
32177
 
do
32178
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32179
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32180
 
$as_echo_n "checking for $ac_func... " >&6; }
32181
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32182
 
  $as_echo_n "(cached) " >&6
32183
 
else
32184
 
  cat >conftest.$ac_ext <<_ACEOF
32185
 
/* confdefs.h.  */
32186
 
_ACEOF
32187
 
cat confdefs.h >>conftest.$ac_ext
32188
 
cat >>conftest.$ac_ext <<_ACEOF
32189
 
/* end confdefs.h.  */
32190
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32191
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32192
 
#define $ac_func innocuous_$ac_func
32193
 
 
32194
 
/* System header to define __stub macros and hopefully few prototypes,
32195
 
    which can conflict with char $ac_func (); below.
32196
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32197
 
    <limits.h> exists even on freestanding compilers.  */
32198
 
 
32199
 
#ifdef __STDC__
32200
 
# include <limits.h>
32201
 
#else
32202
 
# include <assert.h>
32203
 
#endif
32204
 
 
32205
 
#undef $ac_func
32206
 
 
32207
 
/* Override any GCC internal prototype to avoid an error.
32208
 
   Use char because int might match the return type of a GCC
32209
 
   builtin and then its argument prototype would still apply.  */
32210
 
#ifdef __cplusplus
32211
 
extern "C"
32212
 
#endif
32213
 
char $ac_func ();
32214
 
/* The GNU C library defines this for functions which it implements
32215
 
    to always fail with ENOSYS.  Some functions are actually named
32216
 
    something starting with __ and the normal name is an alias.  */
32217
 
#if defined __stub_$ac_func || defined __stub___$ac_func
32218
 
choke me
32219
 
#endif
32220
 
 
32221
 
int
32222
 
main ()
32223
 
{
32224
 
return $ac_func ();
32225
 
  ;
32226
 
  return 0;
32227
 
}
32228
 
_ACEOF
32229
 
rm -f conftest.$ac_objext conftest$ac_exeext
32230
 
if { (ac_try="$ac_link"
32231
 
case "(($ac_try" in
32232
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32233
 
  *) ac_try_echo=$ac_try;;
32234
 
esac
32235
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32236
 
$as_echo "$ac_try_echo") >&5
32237
 
  (eval "$ac_link") 2>conftest.er1
32238
 
  ac_status=$?
32239
 
  grep -v '^ *+' conftest.er1 >conftest.err
32240
 
  rm -f conftest.er1
32241
 
  cat conftest.err >&5
32242
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243
 
  (exit $ac_status); } && {
32244
 
         test -z "$ac_c_werror_flag" ||
32245
 
         test ! -s conftest.err
32246
 
       } && test -s conftest$ac_exeext && {
32247
 
         test "$cross_compiling" = yes ||
32248
 
         $as_test_x conftest$ac_exeext
32249
 
       }; then
32250
 
  eval "$as_ac_var=yes"
32251
 
else
32252
 
  $as_echo "$as_me: failed program was:" >&5
32253
 
sed 's/^/| /' conftest.$ac_ext >&5
32254
 
 
32255
 
        eval "$as_ac_var=no"
32256
 
fi
32257
 
 
32258
 
rm -rf conftest.dSYM
32259
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32260
 
      conftest$ac_exeext conftest.$ac_ext
32261
 
fi
32262
 
ac_res=`eval 'as_val=${'$as_ac_var'}
32263
 
                 $as_echo "$as_val"'`
32264
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32265
 
$as_echo "$ac_res" >&6; }
32266
 
as_val=`eval 'as_val=${'$as_ac_var'}
32267
 
                 $as_echo "$as_val"'`
32268
 
   if test "x$as_val" = x""yes; then
 
27999
do :
 
28000
  ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
 
28001
if test "x$ac_cv_func_getrlimit" = x""yes; then :
32269
28002
  cat >>confdefs.h <<_ACEOF
32270
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28003
#define HAVE_GETRLIMIT 1
32271
28004
_ACEOF
32272
28005
  have_getrlimit="1"
32273
28006
else
32276
28009
done
32277
28010
 
32278
28011
sendfile="0"
32279
 
 
32280
 
{ $as_echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
 
28012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
32281
28013
$as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
32282
 
if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
 
28014
if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then :
32283
28015
  $as_echo_n "(cached) " >&6
32284
28016
else
32285
28017
  ac_check_lib_save_LIBS=$LIBS
32286
28018
LIBS="-lsendfile  $LIBS"
32287
 
cat >conftest.$ac_ext <<_ACEOF
32288
 
/* confdefs.h.  */
32289
 
_ACEOF
32290
 
cat confdefs.h >>conftest.$ac_ext
32291
 
cat >>conftest.$ac_ext <<_ACEOF
 
28019
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32292
28020
/* end confdefs.h.  */
32293
28021
 
32294
28022
/* Override any GCC internal prototype to avoid an error.
32306
28034
  return 0;
32307
28035
}
32308
28036
_ACEOF
32309
 
rm -f conftest.$ac_objext conftest$ac_exeext
32310
 
if { (ac_try="$ac_link"
32311
 
case "(($ac_try" in
32312
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32313
 
  *) ac_try_echo=$ac_try;;
32314
 
esac
32315
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32316
 
$as_echo "$ac_try_echo") >&5
32317
 
  (eval "$ac_link") 2>conftest.er1
32318
 
  ac_status=$?
32319
 
  grep -v '^ *+' conftest.er1 >conftest.err
32320
 
  rm -f conftest.er1
32321
 
  cat conftest.err >&5
32322
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323
 
  (exit $ac_status); } && {
32324
 
         test -z "$ac_c_werror_flag" ||
32325
 
         test ! -s conftest.err
32326
 
       } && test -s conftest$ac_exeext && {
32327
 
         test "$cross_compiling" = yes ||
32328
 
         $as_test_x conftest$ac_exeext
32329
 
       }; then
 
28037
if ac_fn_c_try_link "$LINENO"; then :
32330
28038
  ac_cv_lib_sendfile_sendfilev=yes
32331
28039
else
32332
 
  $as_echo "$as_me: failed program was:" >&5
32333
 
sed 's/^/| /' conftest.$ac_ext >&5
32334
 
 
32335
 
        ac_cv_lib_sendfile_sendfilev=no
 
28040
  ac_cv_lib_sendfile_sendfilev=no
32336
28041
fi
32337
 
 
32338
 
rm -rf conftest.dSYM
32339
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32340
 
      conftest$ac_exeext conftest.$ac_ext
 
28042
rm -f core conftest.err conftest.$ac_objext \
 
28043
    conftest$ac_exeext conftest.$ac_ext
32341
28044
LIBS=$ac_check_lib_save_LIBS
32342
28045
fi
32343
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
 
28046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
32344
28047
$as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
32345
 
if test "x$ac_cv_lib_sendfile_sendfilev" = x""yes; then
 
28048
if test "x$ac_cv_lib_sendfile_sendfilev" = x""yes; then :
32346
28049
  cat >>confdefs.h <<_ACEOF
32347
28050
#define HAVE_LIBSENDFILE 1
32348
28051
_ACEOF
32351
28054
 
32352
28055
fi
32353
28056
 
32354
 
 
32355
 
 
32356
 
 
32357
28057
for ac_func in sendfile send_file sendfilev
32358
 
do
32359
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32360
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32361
 
$as_echo_n "checking for $ac_func... " >&6; }
32362
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32363
 
  $as_echo_n "(cached) " >&6
32364
 
else
32365
 
  cat >conftest.$ac_ext <<_ACEOF
32366
 
/* confdefs.h.  */
32367
 
_ACEOF
32368
 
cat confdefs.h >>conftest.$ac_ext
32369
 
cat >>conftest.$ac_ext <<_ACEOF
32370
 
/* end confdefs.h.  */
32371
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32372
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32373
 
#define $ac_func innocuous_$ac_func
32374
 
 
32375
 
/* System header to define __stub macros and hopefully few prototypes,
32376
 
    which can conflict with char $ac_func (); below.
32377
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32378
 
    <limits.h> exists even on freestanding compilers.  */
32379
 
 
32380
 
#ifdef __STDC__
32381
 
# include <limits.h>
32382
 
#else
32383
 
# include <assert.h>
32384
 
#endif
32385
 
 
32386
 
#undef $ac_func
32387
 
 
32388
 
/* Override any GCC internal prototype to avoid an error.
32389
 
   Use char because int might match the return type of a GCC
32390
 
   builtin and then its argument prototype would still apply.  */
32391
 
#ifdef __cplusplus
32392
 
extern "C"
32393
 
#endif
32394
 
char $ac_func ();
32395
 
/* The GNU C library defines this for functions which it implements
32396
 
    to always fail with ENOSYS.  Some functions are actually named
32397
 
    something starting with __ and the normal name is an alias.  */
32398
 
#if defined __stub_$ac_func || defined __stub___$ac_func
32399
 
choke me
32400
 
#endif
32401
 
 
32402
 
int
32403
 
main ()
32404
 
{
32405
 
return $ac_func ();
32406
 
  ;
32407
 
  return 0;
32408
 
}
32409
 
_ACEOF
32410
 
rm -f conftest.$ac_objext conftest$ac_exeext
32411
 
if { (ac_try="$ac_link"
32412
 
case "(($ac_try" in
32413
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414
 
  *) ac_try_echo=$ac_try;;
32415
 
esac
32416
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32417
 
$as_echo "$ac_try_echo") >&5
32418
 
  (eval "$ac_link") 2>conftest.er1
32419
 
  ac_status=$?
32420
 
  grep -v '^ *+' conftest.er1 >conftest.err
32421
 
  rm -f conftest.er1
32422
 
  cat conftest.err >&5
32423
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424
 
  (exit $ac_status); } && {
32425
 
         test -z "$ac_c_werror_flag" ||
32426
 
         test ! -s conftest.err
32427
 
       } && test -s conftest$ac_exeext && {
32428
 
         test "$cross_compiling" = yes ||
32429
 
         $as_test_x conftest$ac_exeext
32430
 
       }; then
32431
 
  eval "$as_ac_var=yes"
32432
 
else
32433
 
  $as_echo "$as_me: failed program was:" >&5
32434
 
sed 's/^/| /' conftest.$ac_ext >&5
32435
 
 
32436
 
        eval "$as_ac_var=no"
32437
 
fi
32438
 
 
32439
 
rm -rf conftest.dSYM
32440
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32441
 
      conftest$ac_exeext conftest.$ac_ext
32442
 
fi
32443
 
ac_res=`eval 'as_val=${'$as_ac_var'}
32444
 
                 $as_echo "$as_val"'`
32445
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32446
 
$as_echo "$ac_res" >&6; }
32447
 
as_val=`eval 'as_val=${'$as_ac_var'}
32448
 
                 $as_echo "$as_val"'`
32449
 
   if test "x$as_val" = x""yes; then
 
28058
do :
 
28059
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
28060
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
28061
eval as_val=\$$as_ac_var
 
28062
   if test "x$as_val" = x""yes; then :
32450
28063
  cat >>confdefs.h <<_ACEOF
32451
28064
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32452
28065
_ACEOF
32458
28071
 
32459
28072
 
32460
28073
# Check whether --with-sendfile was given.
32461
 
if test "${with_sendfile+set}" = set; then
 
28074
if test "${with_sendfile+set}" = set; then :
32462
28075
  withval=$with_sendfile;  if test "$withval" = "yes"; then
32463
28076
        sendfile="1"
32464
28077
    else
32491
28104
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32492
28105
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32493
28106
# This bug is HP SR number 8606223364.
32494
 
{ $as_echo "$as_me:$LINENO: checking size of void*" >&5
 
28107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
32495
28108
$as_echo_n "checking size of void*... " >&6; }
32496
 
if test "${ac_cv_sizeof_voidp+set}" = set; then
 
28109
if test "${ac_cv_sizeof_voidp+set}" = set; then :
32497
28110
  $as_echo_n "(cached) " >&6
32498
28111
else
32499
 
  if test "$cross_compiling" = yes; then
32500
 
  # Depending upon the size, compute the lo and hi bounds.
32501
 
cat >conftest.$ac_ext <<_ACEOF
32502
 
/* confdefs.h.  */
32503
 
_ACEOF
32504
 
cat confdefs.h >>conftest.$ac_ext
32505
 
cat >>conftest.$ac_ext <<_ACEOF
32506
 
/* end confdefs.h.  */
32507
 
$ac_includes_default
32508
 
int
32509
 
main ()
32510
 
{
32511
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
32512
 
test_array [0] = 0
32513
 
 
32514
 
  ;
32515
 
  return 0;
32516
 
}
32517
 
_ACEOF
32518
 
rm -f conftest.$ac_objext
32519
 
if { (ac_try="$ac_compile"
32520
 
case "(($ac_try" in
32521
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522
 
  *) ac_try_echo=$ac_try;;
32523
 
esac
32524
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32525
 
$as_echo "$ac_try_echo") >&5
32526
 
  (eval "$ac_compile") 2>conftest.er1
32527
 
  ac_status=$?
32528
 
  grep -v '^ *+' conftest.er1 >conftest.err
32529
 
  rm -f conftest.er1
32530
 
  cat conftest.err >&5
32531
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532
 
  (exit $ac_status); } && {
32533
 
         test -z "$ac_c_werror_flag" ||
32534
 
         test ! -s conftest.err
32535
 
       } && test -s conftest.$ac_objext; then
32536
 
  ac_lo=0 ac_mid=0
32537
 
  while :; do
32538
 
    cat >conftest.$ac_ext <<_ACEOF
32539
 
/* confdefs.h.  */
32540
 
_ACEOF
32541
 
cat confdefs.h >>conftest.$ac_ext
32542
 
cat >>conftest.$ac_ext <<_ACEOF
32543
 
/* end confdefs.h.  */
32544
 
$ac_includes_default
32545
 
int
32546
 
main ()
32547
 
{
32548
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
32549
 
test_array [0] = 0
32550
 
 
32551
 
  ;
32552
 
  return 0;
32553
 
}
32554
 
_ACEOF
32555
 
rm -f conftest.$ac_objext
32556
 
if { (ac_try="$ac_compile"
32557
 
case "(($ac_try" in
32558
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559
 
  *) ac_try_echo=$ac_try;;
32560
 
esac
32561
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32562
 
$as_echo "$ac_try_echo") >&5
32563
 
  (eval "$ac_compile") 2>conftest.er1
32564
 
  ac_status=$?
32565
 
  grep -v '^ *+' conftest.er1 >conftest.err
32566
 
  rm -f conftest.er1
32567
 
  cat conftest.err >&5
32568
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569
 
  (exit $ac_status); } && {
32570
 
         test -z "$ac_c_werror_flag" ||
32571
 
         test ! -s conftest.err
32572
 
       } && test -s conftest.$ac_objext; then
32573
 
  ac_hi=$ac_mid; break
32574
 
else
32575
 
  $as_echo "$as_me: failed program was:" >&5
32576
 
sed 's/^/| /' conftest.$ac_ext >&5
32577
 
 
32578
 
        ac_lo=`expr $ac_mid + 1`
32579
 
                        if test $ac_lo -le $ac_mid; then
32580
 
                          ac_lo= ac_hi=
32581
 
                          break
32582
 
                        fi
32583
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
32584
 
fi
32585
 
 
32586
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32587
 
  done
32588
 
else
32589
 
  $as_echo "$as_me: failed program was:" >&5
32590
 
sed 's/^/| /' conftest.$ac_ext >&5
32591
 
 
32592
 
        cat >conftest.$ac_ext <<_ACEOF
32593
 
/* confdefs.h.  */
32594
 
_ACEOF
32595
 
cat confdefs.h >>conftest.$ac_ext
32596
 
cat >>conftest.$ac_ext <<_ACEOF
32597
 
/* end confdefs.h.  */
32598
 
$ac_includes_default
32599
 
int
32600
 
main ()
32601
 
{
32602
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
32603
 
test_array [0] = 0
32604
 
 
32605
 
  ;
32606
 
  return 0;
32607
 
}
32608
 
_ACEOF
32609
 
rm -f conftest.$ac_objext
32610
 
if { (ac_try="$ac_compile"
32611
 
case "(($ac_try" in
32612
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613
 
  *) ac_try_echo=$ac_try;;
32614
 
esac
32615
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32616
 
$as_echo "$ac_try_echo") >&5
32617
 
  (eval "$ac_compile") 2>conftest.er1
32618
 
  ac_status=$?
32619
 
  grep -v '^ *+' conftest.er1 >conftest.err
32620
 
  rm -f conftest.er1
32621
 
  cat conftest.err >&5
32622
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623
 
  (exit $ac_status); } && {
32624
 
         test -z "$ac_c_werror_flag" ||
32625
 
         test ! -s conftest.err
32626
 
       } && test -s conftest.$ac_objext; then
32627
 
  ac_hi=-1 ac_mid=-1
32628
 
  while :; do
32629
 
    cat >conftest.$ac_ext <<_ACEOF
32630
 
/* confdefs.h.  */
32631
 
_ACEOF
32632
 
cat confdefs.h >>conftest.$ac_ext
32633
 
cat >>conftest.$ac_ext <<_ACEOF
32634
 
/* end confdefs.h.  */
32635
 
$ac_includes_default
32636
 
int
32637
 
main ()
32638
 
{
32639
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
32640
 
test_array [0] = 0
32641
 
 
32642
 
  ;
32643
 
  return 0;
32644
 
}
32645
 
_ACEOF
32646
 
rm -f conftest.$ac_objext
32647
 
if { (ac_try="$ac_compile"
32648
 
case "(($ac_try" in
32649
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650
 
  *) ac_try_echo=$ac_try;;
32651
 
esac
32652
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32653
 
$as_echo "$ac_try_echo") >&5
32654
 
  (eval "$ac_compile") 2>conftest.er1
32655
 
  ac_status=$?
32656
 
  grep -v '^ *+' conftest.er1 >conftest.err
32657
 
  rm -f conftest.er1
32658
 
  cat conftest.err >&5
32659
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660
 
  (exit $ac_status); } && {
32661
 
         test -z "$ac_c_werror_flag" ||
32662
 
         test ! -s conftest.err
32663
 
       } && test -s conftest.$ac_objext; then
32664
 
  ac_lo=$ac_mid; break
32665
 
else
32666
 
  $as_echo "$as_me: failed program was:" >&5
32667
 
sed 's/^/| /' conftest.$ac_ext >&5
32668
 
 
32669
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
32670
 
                        if test $ac_mid -le $ac_hi; then
32671
 
                          ac_lo= ac_hi=
32672
 
                          break
32673
 
                        fi
32674
 
                        ac_mid=`expr 2 '*' $ac_mid`
32675
 
fi
32676
 
 
32677
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32678
 
  done
32679
 
else
32680
 
  $as_echo "$as_me: failed program was:" >&5
32681
 
sed 's/^/| /' conftest.$ac_ext >&5
32682
 
 
32683
 
        ac_lo= ac_hi=
32684
 
fi
32685
 
 
32686
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32687
 
fi
32688
 
 
32689
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32690
 
# Binary search between lo and hi bounds.
32691
 
while test "x$ac_lo" != "x$ac_hi"; do
32692
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32693
 
  cat >conftest.$ac_ext <<_ACEOF
32694
 
/* confdefs.h.  */
32695
 
_ACEOF
32696
 
cat confdefs.h >>conftest.$ac_ext
32697
 
cat >>conftest.$ac_ext <<_ACEOF
32698
 
/* end confdefs.h.  */
32699
 
$ac_includes_default
32700
 
int
32701
 
main ()
32702
 
{
32703
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
32704
 
test_array [0] = 0
32705
 
 
32706
 
  ;
32707
 
  return 0;
32708
 
}
32709
 
_ACEOF
32710
 
rm -f conftest.$ac_objext
32711
 
if { (ac_try="$ac_compile"
32712
 
case "(($ac_try" in
32713
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714
 
  *) ac_try_echo=$ac_try;;
32715
 
esac
32716
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32717
 
$as_echo "$ac_try_echo") >&5
32718
 
  (eval "$ac_compile") 2>conftest.er1
32719
 
  ac_status=$?
32720
 
  grep -v '^ *+' conftest.er1 >conftest.err
32721
 
  rm -f conftest.er1
32722
 
  cat conftest.err >&5
32723
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724
 
  (exit $ac_status); } && {
32725
 
         test -z "$ac_c_werror_flag" ||
32726
 
         test ! -s conftest.err
32727
 
       } && test -s conftest.$ac_objext; then
32728
 
  ac_hi=$ac_mid
32729
 
else
32730
 
  $as_echo "$as_me: failed program was:" >&5
32731
 
sed 's/^/| /' conftest.$ac_ext >&5
32732
 
 
32733
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
32734
 
fi
32735
 
 
32736
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32737
 
done
32738
 
case $ac_lo in
32739
 
?*) ac_cv_sizeof_voidp=$ac_lo;;
32740
 
'') if test "$ac_cv_type_voidp" = yes; then
32741
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32742
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32743
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
32744
 
See \`config.log' for more details." >&5
32745
 
$as_echo "$as_me: error: cannot compute sizeof (void*)
32746
 
See \`config.log' for more details." >&2;}
32747
 
   { (exit 77); exit 77; }; }; }
32748
 
   else
32749
 
     ac_cv_sizeof_voidp=0
32750
 
   fi ;;
32751
 
esac
32752
 
else
32753
 
  cat >conftest.$ac_ext <<_ACEOF
32754
 
/* confdefs.h.  */
32755
 
_ACEOF
32756
 
cat confdefs.h >>conftest.$ac_ext
32757
 
cat >>conftest.$ac_ext <<_ACEOF
32758
 
/* end confdefs.h.  */
32759
 
$ac_includes_default
32760
 
static long int longval () { return (long int) (sizeof (void*)); }
32761
 
static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
32762
 
#include <stdio.h>
32763
 
#include <stdlib.h>
32764
 
int
32765
 
main ()
32766
 
{
32767
 
 
32768
 
  FILE *f = fopen ("conftest.val", "w");
32769
 
  if (! f)
32770
 
    return 1;
32771
 
  if (((long int) (sizeof (void*))) < 0)
32772
 
    {
32773
 
      long int i = longval ();
32774
 
      if (i != ((long int) (sizeof (void*))))
32775
 
        return 1;
32776
 
      fprintf (f, "%ld", i);
32777
 
    }
32778
 
  else
32779
 
    {
32780
 
      unsigned long int i = ulongval ();
32781
 
      if (i != ((long int) (sizeof (void*))))
32782
 
        return 1;
32783
 
      fprintf (f, "%lu", i);
32784
 
    }
32785
 
  /* Do not output a trailing newline, as this causes \r\n confusion
32786
 
     on some platforms.  */
32787
 
  return ferror (f) || fclose (f) != 0;
32788
 
 
32789
 
  ;
32790
 
  return 0;
32791
 
}
32792
 
_ACEOF
32793
 
rm -f conftest$ac_exeext
32794
 
if { (ac_try="$ac_link"
32795
 
case "(($ac_try" in
32796
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32797
 
  *) ac_try_echo=$ac_try;;
32798
 
esac
32799
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32800
 
$as_echo "$ac_try_echo") >&5
32801
 
  (eval "$ac_link") 2>&5
32802
 
  ac_status=$?
32803
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32805
 
  { (case "(($ac_try" in
32806
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32807
 
  *) ac_try_echo=$ac_try;;
32808
 
esac
32809
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32810
 
$as_echo "$ac_try_echo") >&5
32811
 
  (eval "$ac_try") 2>&5
32812
 
  ac_status=$?
32813
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814
 
  (exit $ac_status); }; }; then
32815
 
  ac_cv_sizeof_voidp=`cat conftest.val`
32816
 
else
32817
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
32818
 
$as_echo "$as_me: failed program was:" >&5
32819
 
sed 's/^/| /' conftest.$ac_ext >&5
32820
 
 
32821
 
( exit $ac_status )
32822
 
if test "$ac_cv_type_voidp" = yes; then
32823
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32824
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32825
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
32826
 
See \`config.log' for more details." >&5
32827
 
$as_echo "$as_me: error: cannot compute sizeof (void*)
32828
 
See \`config.log' for more details." >&2;}
32829
 
   { (exit 77); exit 77; }; }; }
 
28112
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
 
28113
 
 
28114
else
 
28115
  if test "$ac_cv_type_voidp" = yes; then
 
28116
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
28117
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
28118
{ as_fn_set_status 77
 
28119
as_fn_error "cannot compute sizeof (void*)
 
28120
See \`config.log' for more details." "$LINENO" 5; }; }
32830
28121
   else
32831
28122
     ac_cv_sizeof_voidp=0
32832
28123
   fi
32833
28124
fi
32834
 
rm -rf conftest.dSYM
32835
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32836
 
fi
32837
 
rm -f conftest.val
32838
 
fi
32839
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
 
28125
 
 
28126
fi
 
28127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
32840
28128
$as_echo "$ac_cv_sizeof_voidp" >&6; }
32841
28129
 
32842
28130
 
32859
28147
 
32860
28148
 
32861
28149
 
32862
 
 
32863
28150
for ac_func in sigaction
32864
 
do
32865
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32866
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32867
 
$as_echo_n "checking for $ac_func... " >&6; }
32868
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32869
 
  $as_echo_n "(cached) " >&6
32870
 
else
32871
 
  cat >conftest.$ac_ext <<_ACEOF
32872
 
/* confdefs.h.  */
32873
 
_ACEOF
32874
 
cat confdefs.h >>conftest.$ac_ext
32875
 
cat >>conftest.$ac_ext <<_ACEOF
32876
 
/* end confdefs.h.  */
32877
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32878
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32879
 
#define $ac_func innocuous_$ac_func
32880
 
 
32881
 
/* System header to define __stub macros and hopefully few prototypes,
32882
 
    which can conflict with char $ac_func (); below.
32883
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32884
 
    <limits.h> exists even on freestanding compilers.  */
32885
 
 
32886
 
#ifdef __STDC__
32887
 
# include <limits.h>
32888
 
#else
32889
 
# include <assert.h>
32890
 
#endif
32891
 
 
32892
 
#undef $ac_func
32893
 
 
32894
 
/* Override any GCC internal prototype to avoid an error.
32895
 
   Use char because int might match the return type of a GCC
32896
 
   builtin and then its argument prototype would still apply.  */
32897
 
#ifdef __cplusplus
32898
 
extern "C"
32899
 
#endif
32900
 
char $ac_func ();
32901
 
/* The GNU C library defines this for functions which it implements
32902
 
    to always fail with ENOSYS.  Some functions are actually named
32903
 
    something starting with __ and the normal name is an alias.  */
32904
 
#if defined __stub_$ac_func || defined __stub___$ac_func
32905
 
choke me
32906
 
#endif
32907
 
 
32908
 
int
32909
 
main ()
32910
 
{
32911
 
return $ac_func ();
32912
 
  ;
32913
 
  return 0;
32914
 
}
32915
 
_ACEOF
32916
 
rm -f conftest.$ac_objext conftest$ac_exeext
32917
 
if { (ac_try="$ac_link"
32918
 
case "(($ac_try" in
32919
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32920
 
  *) ac_try_echo=$ac_try;;
32921
 
esac
32922
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32923
 
$as_echo "$ac_try_echo") >&5
32924
 
  (eval "$ac_link") 2>conftest.er1
32925
 
  ac_status=$?
32926
 
  grep -v '^ *+' conftest.er1 >conftest.err
32927
 
  rm -f conftest.er1
32928
 
  cat conftest.err >&5
32929
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930
 
  (exit $ac_status); } && {
32931
 
         test -z "$ac_c_werror_flag" ||
32932
 
         test ! -s conftest.err
32933
 
       } && test -s conftest$ac_exeext && {
32934
 
         test "$cross_compiling" = yes ||
32935
 
         $as_test_x conftest$ac_exeext
32936
 
       }; then
32937
 
  eval "$as_ac_var=yes"
32938
 
else
32939
 
  $as_echo "$as_me: failed program was:" >&5
32940
 
sed 's/^/| /' conftest.$ac_ext >&5
32941
 
 
32942
 
        eval "$as_ac_var=no"
32943
 
fi
32944
 
 
32945
 
rm -rf conftest.dSYM
32946
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32947
 
      conftest$ac_exeext conftest.$ac_ext
32948
 
fi
32949
 
ac_res=`eval 'as_val=${'$as_ac_var'}
32950
 
                 $as_echo "$as_val"'`
32951
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32952
 
$as_echo "$ac_res" >&6; }
32953
 
as_val=`eval 'as_val=${'$as_ac_var'}
32954
 
                 $as_echo "$as_val"'`
32955
 
   if test "x$as_val" = x""yes; then
 
28151
do :
 
28152
  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
 
28153
if test "x$ac_cv_func_sigaction" = x""yes; then :
32956
28154
  cat >>confdefs.h <<_ACEOF
32957
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28155
#define HAVE_SIGACTION 1
32958
28156
_ACEOF
32959
28157
  have_sigaction="1"
32960
28158
else
32962
28160
fi
32963
28161
done
32964
28162
 
32965
 
{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
32966
 
$as_echo_n "checking whether sys_siglist is declared... " >&6; }
32967
 
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
32968
 
  $as_echo_n "(cached) " >&6
32969
 
else
32970
 
  cat >conftest.$ac_ext <<_ACEOF
32971
 
/* confdefs.h.  */
32972
 
_ACEOF
32973
 
cat confdefs.h >>conftest.$ac_ext
32974
 
cat >>conftest.$ac_ext <<_ACEOF
32975
 
/* end confdefs.h.  */
32976
 
#include <signal.h>
 
28163
ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
32977
28164
/* NetBSD declares sys_siglist in unistd.h.  */
32978
28165
#ifdef HAVE_UNISTD_H
32979
28166
# include <unistd.h>
32980
28167
#endif
32981
28168
 
32982
 
 
32983
 
int
32984
 
main ()
32985
 
{
32986
 
#ifndef sys_siglist
32987
 
  (void) sys_siglist;
32988
 
#endif
32989
 
 
32990
 
  ;
32991
 
  return 0;
32992
 
}
32993
 
_ACEOF
32994
 
rm -f conftest.$ac_objext
32995
 
if { (ac_try="$ac_compile"
32996
 
case "(($ac_try" in
32997
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32998
 
  *) ac_try_echo=$ac_try;;
32999
 
esac
33000
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33001
 
$as_echo "$ac_try_echo") >&5
33002
 
  (eval "$ac_compile") 2>conftest.er1
33003
 
  ac_status=$?
33004
 
  grep -v '^ *+' conftest.er1 >conftest.err
33005
 
  rm -f conftest.er1
33006
 
  cat conftest.err >&5
33007
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33008
 
  (exit $ac_status); } && {
33009
 
         test -z "$ac_c_werror_flag" ||
33010
 
         test ! -s conftest.err
33011
 
       } && test -s conftest.$ac_objext; then
33012
 
  ac_cv_have_decl_sys_siglist=yes
 
28169
"
 
28170
if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
 
28171
  ac_have_decl=1
33013
28172
else
33014
 
  $as_echo "$as_me: failed program was:" >&5
33015
 
sed 's/^/| /' conftest.$ac_ext >&5
33016
 
 
33017
 
        ac_cv_have_decl_sys_siglist=no
33018
 
fi
33019
 
 
33020
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33021
 
fi
33022
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
33023
 
$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
33024
 
if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
 
28173
  ac_have_decl=0
 
28174
fi
33025
28175
 
33026
28176
cat >>confdefs.h <<_ACEOF
33027
 
#define HAVE_DECL_SYS_SIGLIST 1
33028
 
_ACEOF
33029
 
 
33030
 
 
33031
 
else
33032
 
  cat >>confdefs.h <<_ACEOF
33033
 
#define HAVE_DECL_SYS_SIGLIST 0
33034
 
_ACEOF
33035
 
 
33036
 
 
33037
 
fi
33038
 
 
33039
 
 
 
28177
#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
 
28178
_ACEOF
33040
28179
 
33041
28180
 
33042
28181
 
33043
28182
for ac_func in fork
33044
 
do
33045
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33046
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33047
 
$as_echo_n "checking for $ac_func... " >&6; }
33048
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33049
 
  $as_echo_n "(cached) " >&6
33050
 
else
33051
 
  cat >conftest.$ac_ext <<_ACEOF
33052
 
/* confdefs.h.  */
33053
 
_ACEOF
33054
 
cat confdefs.h >>conftest.$ac_ext
33055
 
cat >>conftest.$ac_ext <<_ACEOF
33056
 
/* end confdefs.h.  */
33057
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33058
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33059
 
#define $ac_func innocuous_$ac_func
33060
 
 
33061
 
/* System header to define __stub macros and hopefully few prototypes,
33062
 
    which can conflict with char $ac_func (); below.
33063
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33064
 
    <limits.h> exists even on freestanding compilers.  */
33065
 
 
33066
 
#ifdef __STDC__
33067
 
# include <limits.h>
33068
 
#else
33069
 
# include <assert.h>
33070
 
#endif
33071
 
 
33072
 
#undef $ac_func
33073
 
 
33074
 
/* Override any GCC internal prototype to avoid an error.
33075
 
   Use char because int might match the return type of a GCC
33076
 
   builtin and then its argument prototype would still apply.  */
33077
 
#ifdef __cplusplus
33078
 
extern "C"
33079
 
#endif
33080
 
char $ac_func ();
33081
 
/* The GNU C library defines this for functions which it implements
33082
 
    to always fail with ENOSYS.  Some functions are actually named
33083
 
    something starting with __ and the normal name is an alias.  */
33084
 
#if defined __stub_$ac_func || defined __stub___$ac_func
33085
 
choke me
33086
 
#endif
33087
 
 
33088
 
int
33089
 
main ()
33090
 
{
33091
 
return $ac_func ();
33092
 
  ;
33093
 
  return 0;
33094
 
}
33095
 
_ACEOF
33096
 
rm -f conftest.$ac_objext conftest$ac_exeext
33097
 
if { (ac_try="$ac_link"
33098
 
case "(($ac_try" in
33099
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100
 
  *) ac_try_echo=$ac_try;;
33101
 
esac
33102
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33103
 
$as_echo "$ac_try_echo") >&5
33104
 
  (eval "$ac_link") 2>conftest.er1
33105
 
  ac_status=$?
33106
 
  grep -v '^ *+' conftest.er1 >conftest.err
33107
 
  rm -f conftest.er1
33108
 
  cat conftest.err >&5
33109
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110
 
  (exit $ac_status); } && {
33111
 
         test -z "$ac_c_werror_flag" ||
33112
 
         test ! -s conftest.err
33113
 
       } && test -s conftest$ac_exeext && {
33114
 
         test "$cross_compiling" = yes ||
33115
 
         $as_test_x conftest$ac_exeext
33116
 
       }; then
33117
 
  eval "$as_ac_var=yes"
33118
 
else
33119
 
  $as_echo "$as_me: failed program was:" >&5
33120
 
sed 's/^/| /' conftest.$ac_ext >&5
33121
 
 
33122
 
        eval "$as_ac_var=no"
33123
 
fi
33124
 
 
33125
 
rm -rf conftest.dSYM
33126
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33127
 
      conftest$ac_exeext conftest.$ac_ext
33128
 
fi
33129
 
ac_res=`eval 'as_val=${'$as_ac_var'}
33130
 
                 $as_echo "$as_val"'`
33131
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33132
 
$as_echo "$ac_res" >&6; }
33133
 
as_val=`eval 'as_val=${'$as_ac_var'}
33134
 
                 $as_echo "$as_val"'`
33135
 
   if test "x$as_val" = x""yes; then
 
28183
do :
 
28184
  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
 
28185
if test "x$ac_cv_func_fork" = x""yes; then :
33136
28186
  cat >>confdefs.h <<_ACEOF
33137
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28187
#define HAVE_FORK 1
33138
28188
_ACEOF
33139
28189
  fork="1"
33140
28190
else
33143
28193
done
33144
28194
 
33145
28195
 
33146
 
{ $as_echo "$as_me:$LINENO: checking for inet_addr" >&5
 
28196
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
33147
28197
$as_echo_n "checking for inet_addr... " >&6; }
33148
 
if test "${ac_cv_func_inet_addr+set}" = set; then
 
28198
if test "${ac_cv_func_inet_addr+set}" = set; then :
33149
28199
  $as_echo_n "(cached) " >&6
33150
28200
else
33151
28201
 
33152
 
cat >conftest.$ac_ext <<_ACEOF
33153
 
/* confdefs.h.  */
33154
 
_ACEOF
33155
 
cat confdefs.h >>conftest.$ac_ext
33156
 
cat >>conftest.$ac_ext <<_ACEOF
 
28202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33157
28203
/* end confdefs.h.  */
33158
28204
 
33159
28205
#ifdef HAVE_SYS_TYPES_H
33173
28219
  return 0;
33174
28220
}
33175
28221
_ACEOF
33176
 
rm -f conftest.$ac_objext
33177
 
if { (ac_try="$ac_compile"
33178
 
case "(($ac_try" in
33179
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180
 
  *) ac_try_echo=$ac_try;;
33181
 
esac
33182
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33183
 
$as_echo "$ac_try_echo") >&5
33184
 
  (eval "$ac_compile") 2>conftest.er1
33185
 
  ac_status=$?
33186
 
  grep -v '^ *+' conftest.er1 >conftest.err
33187
 
  rm -f conftest.er1
33188
 
  cat conftest.err >&5
33189
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190
 
  (exit $ac_status); } && {
33191
 
         test -z "$ac_c_werror_flag" ||
33192
 
         test ! -s conftest.err
33193
 
       } && test -s conftest.$ac_objext; then
 
28222
if ac_fn_c_try_compile "$LINENO"; then :
33194
28223
 
33195
28224
    ac_cv_func_inet_addr=yes
33196
28225
 
33197
28226
else
33198
 
  $as_echo "$as_me: failed program was:" >&5
33199
 
sed 's/^/| /' conftest.$ac_ext >&5
33200
 
 
33201
28227
 
33202
28228
    ac_cv_func_inet_addr=no
33203
28229
 
33204
28230
fi
33205
 
 
33206
28231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33207
28232
 
33208
28233
fi
33209
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
 
28234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
33210
28235
$as_echo "$ac_cv_func_inet_addr" >&6; }
33211
28236
 
33212
28237
if test "$ac_cv_func_inet_addr" = "yes"; then
33216
28241
fi
33217
28242
 
33218
28243
 
33219
 
{ $as_echo "$as_me:$LINENO: checking for inet_network" >&5
 
28244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
33220
28245
$as_echo_n "checking for inet_network... " >&6; }
33221
 
if test "${ac_cv_func_inet_network+set}" = set; then
 
28246
if test "${ac_cv_func_inet_network+set}" = set; then :
33222
28247
  $as_echo_n "(cached) " >&6
33223
28248
else
33224
28249
 
33225
 
cat >conftest.$ac_ext <<_ACEOF
33226
 
/* confdefs.h.  */
33227
 
_ACEOF
33228
 
cat confdefs.h >>conftest.$ac_ext
33229
 
cat >>conftest.$ac_ext <<_ACEOF
 
28250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33230
28251
/* end confdefs.h.  */
33231
28252
 
33232
28253
#ifdef HAVE_SYS_TYPES_H
33246
28267
  return 0;
33247
28268
}
33248
28269
_ACEOF
33249
 
rm -f conftest.$ac_objext
33250
 
if { (ac_try="$ac_compile"
33251
 
case "(($ac_try" in
33252
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33253
 
  *) ac_try_echo=$ac_try;;
33254
 
esac
33255
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33256
 
$as_echo "$ac_try_echo") >&5
33257
 
  (eval "$ac_compile") 2>conftest.er1
33258
 
  ac_status=$?
33259
 
  grep -v '^ *+' conftest.er1 >conftest.err
33260
 
  rm -f conftest.er1
33261
 
  cat conftest.err >&5
33262
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263
 
  (exit $ac_status); } && {
33264
 
         test -z "$ac_c_werror_flag" ||
33265
 
         test ! -s conftest.err
33266
 
       } && test -s conftest.$ac_objext; then
 
28270
if ac_fn_c_try_compile "$LINENO"; then :
33267
28271
 
33268
28272
    ac_cv_func_inet_network=yes
33269
28273
 
33270
28274
else
33271
 
  $as_echo "$as_me: failed program was:" >&5
33272
 
sed 's/^/| /' conftest.$ac_ext >&5
33273
 
 
33274
28275
 
33275
28276
    ac_cv_func_inet_network=no
33276
28277
 
33277
28278
fi
33278
 
 
33279
28279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33280
28280
 
33281
28281
fi
33282
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_network" >&5
 
28282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
33283
28283
$as_echo "$ac_cv_func_inet_network" >&6; }
33284
28284
 
33285
28285
if test "$ac_cv_func_inet_network" = "yes"; then
33289
28289
fi
33290
28290
 
33291
28291
 
33292
 
{ $as_echo "$as_me:$LINENO: checking for _getch" >&5
33293
 
$as_echo_n "checking for _getch... " >&6; }
33294
 
if test "${ac_cv_func__getch+set}" = set; then
33295
 
  $as_echo_n "(cached) " >&6
33296
 
else
33297
 
  cat >conftest.$ac_ext <<_ACEOF
33298
 
/* confdefs.h.  */
33299
 
_ACEOF
33300
 
cat confdefs.h >>conftest.$ac_ext
33301
 
cat >>conftest.$ac_ext <<_ACEOF
33302
 
/* end confdefs.h.  */
33303
 
/* Define _getch to an innocuous variant, in case <limits.h> declares _getch.
33304
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33305
 
#define _getch innocuous__getch
33306
 
 
33307
 
/* System header to define __stub macros and hopefully few prototypes,
33308
 
    which can conflict with char _getch (); below.
33309
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33310
 
    <limits.h> exists even on freestanding compilers.  */
33311
 
 
33312
 
#ifdef __STDC__
33313
 
# include <limits.h>
33314
 
#else
33315
 
# include <assert.h>
33316
 
#endif
33317
 
 
33318
 
#undef _getch
33319
 
 
33320
 
/* Override any GCC internal prototype to avoid an error.
33321
 
   Use char because int might match the return type of a GCC
33322
 
   builtin and then its argument prototype would still apply.  */
33323
 
#ifdef __cplusplus
33324
 
extern "C"
33325
 
#endif
33326
 
char _getch ();
33327
 
/* The GNU C library defines this for functions which it implements
33328
 
    to always fail with ENOSYS.  Some functions are actually named
33329
 
    something starting with __ and the normal name is an alias.  */
33330
 
#if defined __stub__getch || defined __stub____getch
33331
 
choke me
33332
 
#endif
33333
 
 
33334
 
int
33335
 
main ()
33336
 
{
33337
 
return _getch ();
33338
 
  ;
33339
 
  return 0;
33340
 
}
33341
 
_ACEOF
33342
 
rm -f conftest.$ac_objext conftest$ac_exeext
33343
 
if { (ac_try="$ac_link"
33344
 
case "(($ac_try" in
33345
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33346
 
  *) ac_try_echo=$ac_try;;
33347
 
esac
33348
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33349
 
$as_echo "$ac_try_echo") >&5
33350
 
  (eval "$ac_link") 2>conftest.er1
33351
 
  ac_status=$?
33352
 
  grep -v '^ *+' conftest.er1 >conftest.err
33353
 
  rm -f conftest.er1
33354
 
  cat conftest.err >&5
33355
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356
 
  (exit $ac_status); } && {
33357
 
         test -z "$ac_c_werror_flag" ||
33358
 
         test ! -s conftest.err
33359
 
       } && test -s conftest$ac_exeext && {
33360
 
         test "$cross_compiling" = yes ||
33361
 
         $as_test_x conftest$ac_exeext
33362
 
       }; then
33363
 
  ac_cv_func__getch=yes
33364
 
else
33365
 
  $as_echo "$as_me: failed program was:" >&5
33366
 
sed 's/^/| /' conftest.$ac_ext >&5
33367
 
 
33368
 
        ac_cv_func__getch=no
33369
 
fi
33370
 
 
33371
 
rm -rf conftest.dSYM
33372
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33373
 
      conftest$ac_exeext conftest.$ac_ext
33374
 
fi
33375
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__getch" >&5
33376
 
$as_echo "$ac_cv_func__getch" >&6; }
33377
 
 
 
28292
ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
 
28293
if test "x$ac_cv_func__getch" = x""yes; then :
 
28294
 
 
28295
fi
33378
28296
 
33379
28297
for ac_func in strerror_r
33380
 
do
33381
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33382
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33383
 
$as_echo_n "checking for $ac_func... " >&6; }
33384
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33385
 
  $as_echo_n "(cached) " >&6
33386
 
else
33387
 
  cat >conftest.$ac_ext <<_ACEOF
33388
 
/* confdefs.h.  */
33389
 
_ACEOF
33390
 
cat confdefs.h >>conftest.$ac_ext
33391
 
cat >>conftest.$ac_ext <<_ACEOF
33392
 
/* end confdefs.h.  */
33393
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33394
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33395
 
#define $ac_func innocuous_$ac_func
33396
 
 
33397
 
/* System header to define __stub macros and hopefully few prototypes,
33398
 
    which can conflict with char $ac_func (); below.
33399
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33400
 
    <limits.h> exists even on freestanding compilers.  */
33401
 
 
33402
 
#ifdef __STDC__
33403
 
# include <limits.h>
33404
 
#else
33405
 
# include <assert.h>
33406
 
#endif
33407
 
 
33408
 
#undef $ac_func
33409
 
 
33410
 
/* Override any GCC internal prototype to avoid an error.
33411
 
   Use char because int might match the return type of a GCC
33412
 
   builtin and then its argument prototype would still apply.  */
33413
 
#ifdef __cplusplus
33414
 
extern "C"
33415
 
#endif
33416
 
char $ac_func ();
33417
 
/* The GNU C library defines this for functions which it implements
33418
 
    to always fail with ENOSYS.  Some functions are actually named
33419
 
    something starting with __ and the normal name is an alias.  */
33420
 
#if defined __stub_$ac_func || defined __stub___$ac_func
33421
 
choke me
33422
 
#endif
33423
 
 
33424
 
int
33425
 
main ()
33426
 
{
33427
 
return $ac_func ();
33428
 
  ;
33429
 
  return 0;
33430
 
}
33431
 
_ACEOF
33432
 
rm -f conftest.$ac_objext conftest$ac_exeext
33433
 
if { (ac_try="$ac_link"
33434
 
case "(($ac_try" in
33435
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436
 
  *) ac_try_echo=$ac_try;;
33437
 
esac
33438
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33439
 
$as_echo "$ac_try_echo") >&5
33440
 
  (eval "$ac_link") 2>conftest.er1
33441
 
  ac_status=$?
33442
 
  grep -v '^ *+' conftest.er1 >conftest.err
33443
 
  rm -f conftest.er1
33444
 
  cat conftest.err >&5
33445
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446
 
  (exit $ac_status); } && {
33447
 
         test -z "$ac_c_werror_flag" ||
33448
 
         test ! -s conftest.err
33449
 
       } && test -s conftest$ac_exeext && {
33450
 
         test "$cross_compiling" = yes ||
33451
 
         $as_test_x conftest$ac_exeext
33452
 
       }; then
33453
 
  eval "$as_ac_var=yes"
33454
 
else
33455
 
  $as_echo "$as_me: failed program was:" >&5
33456
 
sed 's/^/| /' conftest.$ac_ext >&5
33457
 
 
33458
 
        eval "$as_ac_var=no"
33459
 
fi
33460
 
 
33461
 
rm -rf conftest.dSYM
33462
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33463
 
      conftest$ac_exeext conftest.$ac_ext
33464
 
fi
33465
 
ac_res=`eval 'as_val=${'$as_ac_var'}
33466
 
                 $as_echo "$as_val"'`
33467
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33468
 
$as_echo "$ac_res" >&6; }
33469
 
as_val=`eval 'as_val=${'$as_ac_var'}
33470
 
                 $as_echo "$as_val"'`
33471
 
   if test "x$as_val" = x""yes; then
 
28298
do :
 
28299
  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
 
28300
if test "x$ac_cv_func_strerror_r" = x""yes; then :
33472
28301
  cat >>confdefs.h <<_ACEOF
33473
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28302
#define HAVE_STRERROR_R 1
33474
28303
_ACEOF
33475
28304
  strerror_r="1"
33476
28305
else
33480
28309
 
33481
28310
if test "$strerror_r" = "1"; then
33482
28311
 
33483
 
{ $as_echo "$as_me:$LINENO: checking for type of return code from strerror_r" >&5
 
28312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
33484
28313
$as_echo_n "checking for type of return code from strerror_r... " >&6; }
33485
 
if test "$cross_compiling" = yes; then
 
28314
if test "$cross_compiling" = yes; then :
33486
28315
 
33487
28316
    ac_cv_strerror_r_rc_int=no
33488
28317
else
33489
 
  cat >conftest.$ac_ext <<_ACEOF
33490
 
/* confdefs.h.  */
33491
 
_ACEOF
33492
 
cat confdefs.h >>conftest.$ac_ext
33493
 
cat >>conftest.$ac_ext <<_ACEOF
 
28318
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33494
28319
/* end confdefs.h.  */
33495
28320
 
33496
28321
#include <errno.h>
33507
28332
  }
33508
28333
}
33509
28334
_ACEOF
33510
 
rm -f conftest$ac_exeext
33511
 
if { (ac_try="$ac_link"
33512
 
case "(($ac_try" in
33513
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33514
 
  *) ac_try_echo=$ac_try;;
33515
 
esac
33516
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33517
 
$as_echo "$ac_try_echo") >&5
33518
 
  (eval "$ac_link") 2>&5
33519
 
  ac_status=$?
33520
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33522
 
  { (case "(($ac_try" in
33523
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524
 
  *) ac_try_echo=$ac_try;;
33525
 
esac
33526
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33527
 
$as_echo "$ac_try_echo") >&5
33528
 
  (eval "$ac_try") 2>&5
33529
 
  ac_status=$?
33530
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531
 
  (exit $ac_status); }; }; then
 
28335
if ac_fn_c_try_run "$LINENO"; then :
33532
28336
 
33533
28337
    ac_cv_strerror_r_rc_int=yes
33534
28338
else
33535
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
33536
 
$as_echo "$as_me: failed program was:" >&5
33537
 
sed 's/^/| /' conftest.$ac_ext >&5
33538
 
 
33539
 
( exit $ac_status )
33540
28339
 
33541
28340
    ac_cv_strerror_r_rc_int=no
33542
28341
fi
33543
 
rm -rf conftest.dSYM
33544
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28342
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
28343
  conftest.$ac_objext conftest.beam conftest.$ac_ext
33545
28344
fi
33546
28345
 
33547
 
 
33548
28346
if test "x$ac_cv_strerror_r_rc_int" = xyes; then
33549
28347
 
33550
 
cat >>confdefs.h <<\_ACEOF
33551
 
#define STRERROR_R_RC_INT 1
33552
 
_ACEOF
 
28348
$as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
33553
28349
 
33554
28350
  msg="int"
33555
28351
else
33556
28352
  msg="pointer"
33557
28353
fi
33558
 
{ $as_echo "$as_me:$LINENO: result: $msg" >&5
 
28354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
33559
28355
$as_echo "$msg" >&6; }
33560
28356
 
33561
28357
fi
33562
 
 
33563
28358
for ac_func in mmap
33564
 
do
33565
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33566
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33567
 
$as_echo_n "checking for $ac_func... " >&6; }
33568
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33569
 
  $as_echo_n "(cached) " >&6
33570
 
else
33571
 
  cat >conftest.$ac_ext <<_ACEOF
33572
 
/* confdefs.h.  */
33573
 
_ACEOF
33574
 
cat confdefs.h >>conftest.$ac_ext
33575
 
cat >>conftest.$ac_ext <<_ACEOF
33576
 
/* end confdefs.h.  */
33577
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33578
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33579
 
#define $ac_func innocuous_$ac_func
33580
 
 
33581
 
/* System header to define __stub macros and hopefully few prototypes,
33582
 
    which can conflict with char $ac_func (); below.
33583
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33584
 
    <limits.h> exists even on freestanding compilers.  */
33585
 
 
33586
 
#ifdef __STDC__
33587
 
# include <limits.h>
33588
 
#else
33589
 
# include <assert.h>
33590
 
#endif
33591
 
 
33592
 
#undef $ac_func
33593
 
 
33594
 
/* Override any GCC internal prototype to avoid an error.
33595
 
   Use char because int might match the return type of a GCC
33596
 
   builtin and then its argument prototype would still apply.  */
33597
 
#ifdef __cplusplus
33598
 
extern "C"
33599
 
#endif
33600
 
char $ac_func ();
33601
 
/* The GNU C library defines this for functions which it implements
33602
 
    to always fail with ENOSYS.  Some functions are actually named
33603
 
    something starting with __ and the normal name is an alias.  */
33604
 
#if defined __stub_$ac_func || defined __stub___$ac_func
33605
 
choke me
33606
 
#endif
33607
 
 
33608
 
int
33609
 
main ()
33610
 
{
33611
 
return $ac_func ();
33612
 
  ;
33613
 
  return 0;
33614
 
}
33615
 
_ACEOF
33616
 
rm -f conftest.$ac_objext conftest$ac_exeext
33617
 
if { (ac_try="$ac_link"
33618
 
case "(($ac_try" in
33619
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620
 
  *) ac_try_echo=$ac_try;;
33621
 
esac
33622
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33623
 
$as_echo "$ac_try_echo") >&5
33624
 
  (eval "$ac_link") 2>conftest.er1
33625
 
  ac_status=$?
33626
 
  grep -v '^ *+' conftest.er1 >conftest.err
33627
 
  rm -f conftest.er1
33628
 
  cat conftest.err >&5
33629
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630
 
  (exit $ac_status); } && {
33631
 
         test -z "$ac_c_werror_flag" ||
33632
 
         test ! -s conftest.err
33633
 
       } && test -s conftest$ac_exeext && {
33634
 
         test "$cross_compiling" = yes ||
33635
 
         $as_test_x conftest$ac_exeext
33636
 
       }; then
33637
 
  eval "$as_ac_var=yes"
33638
 
else
33639
 
  $as_echo "$as_me: failed program was:" >&5
33640
 
sed 's/^/| /' conftest.$ac_ext >&5
33641
 
 
33642
 
        eval "$as_ac_var=no"
33643
 
fi
33644
 
 
33645
 
rm -rf conftest.dSYM
33646
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33647
 
      conftest$ac_exeext conftest.$ac_ext
33648
 
fi
33649
 
ac_res=`eval 'as_val=${'$as_ac_var'}
33650
 
                 $as_echo "$as_val"'`
33651
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33652
 
$as_echo "$ac_res" >&6; }
33653
 
as_val=`eval 'as_val=${'$as_ac_var'}
33654
 
                 $as_echo "$as_val"'`
33655
 
   if test "x$as_val" = x""yes; then
 
28359
do :
 
28360
  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
 
28361
if test "x$ac_cv_func_mmap" = x""yes; then :
33656
28362
  cat >>confdefs.h <<_ACEOF
33657
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28363
#define HAVE_MMAP 1
33658
28364
_ACEOF
33659
28365
  mmap="1"
33660
28366
else
33665
28371
if test "$native_mmap_emul" = "1"; then
33666
28372
    mmap="1"
33667
28373
fi
33668
 
 
33669
28374
for ac_func in memmove
33670
 
do
33671
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33672
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33673
 
$as_echo_n "checking for $ac_func... " >&6; }
33674
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33675
 
  $as_echo_n "(cached) " >&6
33676
 
else
33677
 
  cat >conftest.$ac_ext <<_ACEOF
33678
 
/* confdefs.h.  */
33679
 
_ACEOF
33680
 
cat confdefs.h >>conftest.$ac_ext
33681
 
cat >>conftest.$ac_ext <<_ACEOF
33682
 
/* end confdefs.h.  */
33683
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33684
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33685
 
#define $ac_func innocuous_$ac_func
33686
 
 
33687
 
/* System header to define __stub macros and hopefully few prototypes,
33688
 
    which can conflict with char $ac_func (); below.
33689
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33690
 
    <limits.h> exists even on freestanding compilers.  */
33691
 
 
33692
 
#ifdef __STDC__
33693
 
# include <limits.h>
33694
 
#else
33695
 
# include <assert.h>
33696
 
#endif
33697
 
 
33698
 
#undef $ac_func
33699
 
 
33700
 
/* Override any GCC internal prototype to avoid an error.
33701
 
   Use char because int might match the return type of a GCC
33702
 
   builtin and then its argument prototype would still apply.  */
33703
 
#ifdef __cplusplus
33704
 
extern "C"
33705
 
#endif
33706
 
char $ac_func ();
33707
 
/* The GNU C library defines this for functions which it implements
33708
 
    to always fail with ENOSYS.  Some functions are actually named
33709
 
    something starting with __ and the normal name is an alias.  */
33710
 
#if defined __stub_$ac_func || defined __stub___$ac_func
33711
 
choke me
33712
 
#endif
33713
 
 
33714
 
int
33715
 
main ()
33716
 
{
33717
 
return $ac_func ();
33718
 
  ;
33719
 
  return 0;
33720
 
}
33721
 
_ACEOF
33722
 
rm -f conftest.$ac_objext conftest$ac_exeext
33723
 
if { (ac_try="$ac_link"
33724
 
case "(($ac_try" in
33725
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33726
 
  *) ac_try_echo=$ac_try;;
33727
 
esac
33728
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33729
 
$as_echo "$ac_try_echo") >&5
33730
 
  (eval "$ac_link") 2>conftest.er1
33731
 
  ac_status=$?
33732
 
  grep -v '^ *+' conftest.er1 >conftest.err
33733
 
  rm -f conftest.er1
33734
 
  cat conftest.err >&5
33735
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736
 
  (exit $ac_status); } && {
33737
 
         test -z "$ac_c_werror_flag" ||
33738
 
         test ! -s conftest.err
33739
 
       } && test -s conftest$ac_exeext && {
33740
 
         test "$cross_compiling" = yes ||
33741
 
         $as_test_x conftest$ac_exeext
33742
 
       }; then
33743
 
  eval "$as_ac_var=yes"
33744
 
else
33745
 
  $as_echo "$as_me: failed program was:" >&5
33746
 
sed 's/^/| /' conftest.$ac_ext >&5
33747
 
 
33748
 
        eval "$as_ac_var=no"
33749
 
fi
33750
 
 
33751
 
rm -rf conftest.dSYM
33752
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33753
 
      conftest$ac_exeext conftest.$ac_ext
33754
 
fi
33755
 
ac_res=`eval 'as_val=${'$as_ac_var'}
33756
 
                 $as_echo "$as_val"'`
33757
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33758
 
$as_echo "$ac_res" >&6; }
33759
 
as_val=`eval 'as_val=${'$as_ac_var'}
33760
 
                 $as_echo "$as_val"'`
33761
 
   if test "x$as_val" = x""yes; then
 
28375
do :
 
28376
  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
 
28377
if test "x$ac_cv_func_memmove" = x""yes; then :
33762
28378
  cat >>confdefs.h <<_ACEOF
33763
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
28379
#define HAVE_MEMMOVE 1
33764
28380
_ACEOF
33765
28381
  have_memmove="1"
33766
28382
else
33768
28384
fi
33769
28385
done
33770
28386
 
33771
 
 
33772
 
 
33773
 
 
33774
 
 
33775
 
 
33776
28387
for ac_func in getpass getpassphrase gmtime_r localtime_r mkstemp
33777
 
do
33778
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33779
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33780
 
$as_echo_n "checking for $ac_func... " >&6; }
33781
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33782
 
  $as_echo_n "(cached) " >&6
33783
 
else
33784
 
  cat >conftest.$ac_ext <<_ACEOF
33785
 
/* confdefs.h.  */
33786
 
_ACEOF
33787
 
cat confdefs.h >>conftest.$ac_ext
33788
 
cat >>conftest.$ac_ext <<_ACEOF
33789
 
/* end confdefs.h.  */
33790
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33791
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33792
 
#define $ac_func innocuous_$ac_func
33793
 
 
33794
 
/* System header to define __stub macros and hopefully few prototypes,
33795
 
    which can conflict with char $ac_func (); below.
33796
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33797
 
    <limits.h> exists even on freestanding compilers.  */
33798
 
 
33799
 
#ifdef __STDC__
33800
 
# include <limits.h>
33801
 
#else
33802
 
# include <assert.h>
33803
 
#endif
33804
 
 
33805
 
#undef $ac_func
33806
 
 
33807
 
/* Override any GCC internal prototype to avoid an error.
33808
 
   Use char because int might match the return type of a GCC
33809
 
   builtin and then its argument prototype would still apply.  */
33810
 
#ifdef __cplusplus
33811
 
extern "C"
33812
 
#endif
33813
 
char $ac_func ();
33814
 
/* The GNU C library defines this for functions which it implements
33815
 
    to always fail with ENOSYS.  Some functions are actually named
33816
 
    something starting with __ and the normal name is an alias.  */
33817
 
#if defined __stub_$ac_func || defined __stub___$ac_func
33818
 
choke me
33819
 
#endif
33820
 
 
33821
 
int
33822
 
main ()
33823
 
{
33824
 
return $ac_func ();
33825
 
  ;
33826
 
  return 0;
33827
 
}
33828
 
_ACEOF
33829
 
rm -f conftest.$ac_objext conftest$ac_exeext
33830
 
if { (ac_try="$ac_link"
33831
 
case "(($ac_try" in
33832
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33833
 
  *) ac_try_echo=$ac_try;;
33834
 
esac
33835
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33836
 
$as_echo "$ac_try_echo") >&5
33837
 
  (eval "$ac_link") 2>conftest.er1
33838
 
  ac_status=$?
33839
 
  grep -v '^ *+' conftest.er1 >conftest.err
33840
 
  rm -f conftest.er1
33841
 
  cat conftest.err >&5
33842
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843
 
  (exit $ac_status); } && {
33844
 
         test -z "$ac_c_werror_flag" ||
33845
 
         test ! -s conftest.err
33846
 
       } && test -s conftest$ac_exeext && {
33847
 
         test "$cross_compiling" = yes ||
33848
 
         $as_test_x conftest$ac_exeext
33849
 
       }; then
33850
 
  eval "$as_ac_var=yes"
33851
 
else
33852
 
  $as_echo "$as_me: failed program was:" >&5
33853
 
sed 's/^/| /' conftest.$ac_ext >&5
33854
 
 
33855
 
        eval "$as_ac_var=no"
33856
 
fi
33857
 
 
33858
 
rm -rf conftest.dSYM
33859
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33860
 
      conftest$ac_exeext conftest.$ac_ext
33861
 
fi
33862
 
ac_res=`eval 'as_val=${'$as_ac_var'}
33863
 
                 $as_echo "$as_val"'`
33864
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33865
 
$as_echo "$ac_res" >&6; }
33866
 
as_val=`eval 'as_val=${'$as_ac_var'}
33867
 
                 $as_echo "$as_val"'`
33868
 
   if test "x$as_val" = x""yes; then
 
28388
do :
 
28389
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
28390
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
28391
eval as_val=\$$as_ac_var
 
28392
   if test "x$as_val" = x""yes; then :
33869
28393
  cat >>confdefs.h <<_ACEOF
33870
28394
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33871
28395
_ACEOF
33886
28410
 
33887
28411
 
33888
28412
 
33889
 
  { $as_echo "$as_me:$LINENO: checking whether sigwait takes one argument" >&5
 
28413
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
33890
28414
$as_echo_n "checking whether sigwait takes one argument... " >&6; }
33891
 
if test "${ac_cv_sigwait_one_arg+set}" = set; then
 
28415
if test "${ac_cv_sigwait_one_arg+set}" = set; then :
33892
28416
  $as_echo_n "(cached) " >&6
33893
28417
else
33894
28418
 
33895
 
  cat >conftest.$ac_ext <<_ACEOF
33896
 
/* confdefs.h.  */
33897
 
_ACEOF
33898
 
cat confdefs.h >>conftest.$ac_ext
33899
 
cat >>conftest.$ac_ext <<_ACEOF
 
28419
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33900
28420
/* end confdefs.h.  */
33901
28421
 
33902
28422
#if defined(__NETBSD__) || defined(DARWIN)
33921
28441
  return 0;
33922
28442
}
33923
28443
_ACEOF
33924
 
rm -f conftest.$ac_objext
33925
 
if { (ac_try="$ac_compile"
33926
 
case "(($ac_try" in
33927
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33928
 
  *) ac_try_echo=$ac_try;;
33929
 
esac
33930
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33931
 
$as_echo "$ac_try_echo") >&5
33932
 
  (eval "$ac_compile") 2>conftest.er1
33933
 
  ac_status=$?
33934
 
  grep -v '^ *+' conftest.er1 >conftest.err
33935
 
  rm -f conftest.er1
33936
 
  cat conftest.err >&5
33937
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938
 
  (exit $ac_status); } && {
33939
 
         test -z "$ac_c_werror_flag" ||
33940
 
         test ! -s conftest.err
33941
 
       } && test -s conftest.$ac_objext; then
 
28444
if ac_fn_c_try_compile "$LINENO"; then :
33942
28445
 
33943
28446
  ac_cv_sigwait_one_arg=yes
33944
28447
 
33945
28448
else
33946
 
  $as_echo "$as_me: failed program was:" >&5
33947
 
sed 's/^/| /' conftest.$ac_ext >&5
33948
 
 
33949
28449
 
33950
28450
  ac_cv_sigwait_one_arg=no
33951
28451
 
33952
28452
fi
33953
 
 
33954
28453
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33955
28454
fi
33956
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sigwait_one_arg" >&5
 
28455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
33957
28456
$as_echo "$ac_cv_sigwait_one_arg" >&6; }
33958
28457
  if test "$ac_cv_sigwait_one_arg" = "yes"; then
33959
28458
 
33960
 
cat >>confdefs.h <<\_ACEOF
33961
 
#define SIGWAIT_TAKES_ONE_ARG 1
33962
 
_ACEOF
 
28459
$as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
33963
28460
 
33964
28461
  fi
33965
28462
 
33966
28463
 
33967
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
28464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
33968
28465
$as_echo_n "checking for ANSI C header files... " >&6; }
33969
 
if test "${ac_cv_header_stdc+set}" = set; then
 
28466
if test "${ac_cv_header_stdc+set}" = set; then :
33970
28467
  $as_echo_n "(cached) " >&6
33971
28468
else
33972
 
  cat >conftest.$ac_ext <<_ACEOF
33973
 
/* confdefs.h.  */
33974
 
_ACEOF
33975
 
cat confdefs.h >>conftest.$ac_ext
33976
 
cat >>conftest.$ac_ext <<_ACEOF
 
28469
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33977
28470
/* end confdefs.h.  */
33978
28471
#include <stdlib.h>
33979
28472
#include <stdarg.h>
33988
28481
  return 0;
33989
28482
}
33990
28483
_ACEOF
33991
 
rm -f conftest.$ac_objext
33992
 
if { (ac_try="$ac_compile"
33993
 
case "(($ac_try" in
33994
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33995
 
  *) ac_try_echo=$ac_try;;
33996
 
esac
33997
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33998
 
$as_echo "$ac_try_echo") >&5
33999
 
  (eval "$ac_compile") 2>conftest.er1
34000
 
  ac_status=$?
34001
 
  grep -v '^ *+' conftest.er1 >conftest.err
34002
 
  rm -f conftest.er1
34003
 
  cat conftest.err >&5
34004
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005
 
  (exit $ac_status); } && {
34006
 
         test -z "$ac_c_werror_flag" ||
34007
 
         test ! -s conftest.err
34008
 
       } && test -s conftest.$ac_objext; then
 
28484
if ac_fn_c_try_compile "$LINENO"; then :
34009
28485
  ac_cv_header_stdc=yes
34010
28486
else
34011
 
  $as_echo "$as_me: failed program was:" >&5
34012
 
sed 's/^/| /' conftest.$ac_ext >&5
34013
 
 
34014
 
        ac_cv_header_stdc=no
 
28487
  ac_cv_header_stdc=no
34015
28488
fi
34016
 
 
34017
28489
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34018
28490
 
34019
28491
if test $ac_cv_header_stdc = yes; then
34020
28492
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
34021
 
  cat >conftest.$ac_ext <<_ACEOF
34022
 
/* confdefs.h.  */
34023
 
_ACEOF
34024
 
cat confdefs.h >>conftest.$ac_ext
34025
 
cat >>conftest.$ac_ext <<_ACEOF
 
28493
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34026
28494
/* end confdefs.h.  */
34027
28495
#include <string.h>
34028
28496
 
34029
28497
_ACEOF
34030
28498
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34031
 
  $EGREP "memchr" >/dev/null 2>&1; then
34032
 
  :
 
28499
  $EGREP "memchr" >/dev/null 2>&1; then :
 
28500
 
34033
28501
else
34034
28502
  ac_cv_header_stdc=no
34035
28503
fi
34039
28507
 
34040
28508
if test $ac_cv_header_stdc = yes; then
34041
28509
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
34042
 
  cat >conftest.$ac_ext <<_ACEOF
34043
 
/* confdefs.h.  */
34044
 
_ACEOF
34045
 
cat confdefs.h >>conftest.$ac_ext
34046
 
cat >>conftest.$ac_ext <<_ACEOF
 
28510
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34047
28511
/* end confdefs.h.  */
34048
28512
#include <stdlib.h>
34049
28513
 
34050
28514
_ACEOF
34051
28515
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34052
 
  $EGREP "free" >/dev/null 2>&1; then
34053
 
  :
 
28516
  $EGREP "free" >/dev/null 2>&1; then :
 
28517
 
34054
28518
else
34055
28519
  ac_cv_header_stdc=no
34056
28520
fi
34060
28524
 
34061
28525
if test $ac_cv_header_stdc = yes; then
34062
28526
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
34063
 
  if test "$cross_compiling" = yes; then
 
28527
  if test "$cross_compiling" = yes; then :
34064
28528
  :
34065
28529
else
34066
 
  cat >conftest.$ac_ext <<_ACEOF
34067
 
/* confdefs.h.  */
34068
 
_ACEOF
34069
 
cat confdefs.h >>conftest.$ac_ext
34070
 
cat >>conftest.$ac_ext <<_ACEOF
 
28530
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34071
28531
/* end confdefs.h.  */
34072
28532
#include <ctype.h>
34073
28533
#include <stdlib.h>
34094
28554
  return 0;
34095
28555
}
34096
28556
_ACEOF
34097
 
rm -f conftest$ac_exeext
34098
 
if { (ac_try="$ac_link"
34099
 
case "(($ac_try" in
34100
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34101
 
  *) ac_try_echo=$ac_try;;
34102
 
esac
34103
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34104
 
$as_echo "$ac_try_echo") >&5
34105
 
  (eval "$ac_link") 2>&5
34106
 
  ac_status=$?
34107
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34109
 
  { (case "(($ac_try" in
34110
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34111
 
  *) ac_try_echo=$ac_try;;
34112
 
esac
34113
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34114
 
$as_echo "$ac_try_echo") >&5
34115
 
  (eval "$ac_try") 2>&5
34116
 
  ac_status=$?
34117
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118
 
  (exit $ac_status); }; }; then
34119
 
  :
 
28557
if ac_fn_c_try_run "$LINENO"; then :
 
28558
 
34120
28559
else
34121
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
34122
 
$as_echo "$as_me: failed program was:" >&5
34123
 
sed 's/^/| /' conftest.$ac_ext >&5
34124
 
 
34125
 
( exit $ac_status )
34126
 
ac_cv_header_stdc=no
34127
 
fi
34128
 
rm -rf conftest.dSYM
34129
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34130
 
fi
34131
 
 
34132
 
 
34133
 
fi
34134
 
fi
34135
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
28560
  ac_cv_header_stdc=no
 
28561
fi
 
28562
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
28563
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
28564
fi
 
28565
 
 
28566
fi
 
28567
fi
 
28568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
34136
28569
$as_echo "$ac_cv_header_stdc" >&6; }
34137
28570
if test $ac_cv_header_stdc = yes; then
34138
28571
 
34139
 
cat >>confdefs.h <<\_ACEOF
34140
 
#define STDC_HEADERS 1
34141
 
_ACEOF
 
28572
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
34142
28573
 
34143
28574
fi
34144
28575
 
34145
28576
 
34146
28577
 
34147
 
 
34148
 
 
34149
 
 
34150
 
 
34151
 
 
34152
 
 
34153
 
 
34154
 
 
34155
 
 
34156
 
 
34157
 
 
34158
 
 
34159
 
 
34160
 
 
34161
 
 
34162
 
 
34163
 
 
34164
 
 
34165
 
 
34166
 
 
34167
 
 
34168
 
 
34169
 
 
34170
 
 
34171
 
 
34172
 
 
34173
 
 
34174
 
 
34175
 
 
34176
 
 
34177
 
 
34178
 
 
34179
 
 
34180
 
 
34181
 
 
34182
 
 
34183
 
 
34184
 
 
34185
 
 
34186
 
 
34187
 
 
34188
 
 
34189
 
 
34190
 
 
34191
 
 
34192
 
 
34193
 
 
34194
 
 
34195
 
 
34196
 
 
34197
 
 
34198
 
 
34199
 
 
34200
 
 
34201
 
 
34202
 
 
34203
 
 
34204
 
 
34205
 
 
34206
 
 
34207
 
 
34208
 
 
34209
 
 
34210
 
 
34211
 
 
34212
28578
for ac_header in ByteOrder.h            \
34213
28579
    conio.h             \
34214
28580
    crypt.h             \
34274
28640
    sys/uio.h           \
34275
28641
    sys/un.h            \
34276
28642
    sys/wait.h
34277
 
do
34278
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34279
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34280
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34281
 
$as_echo_n "checking for $ac_header... " >&6; }
34282
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34283
 
  $as_echo_n "(cached) " >&6
34284
 
fi
34285
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
34286
 
                 $as_echo "$as_val"'`
34287
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34288
 
$as_echo "$ac_res" >&6; }
34289
 
else
34290
 
  # Is the header compilable?
34291
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34292
 
$as_echo_n "checking $ac_header usability... " >&6; }
34293
 
cat >conftest.$ac_ext <<_ACEOF
34294
 
/* confdefs.h.  */
34295
 
_ACEOF
34296
 
cat confdefs.h >>conftest.$ac_ext
34297
 
cat >>conftest.$ac_ext <<_ACEOF
34298
 
/* end confdefs.h.  */
34299
 
$ac_includes_default
34300
 
#include <$ac_header>
34301
 
_ACEOF
34302
 
rm -f conftest.$ac_objext
34303
 
if { (ac_try="$ac_compile"
34304
 
case "(($ac_try" in
34305
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34306
 
  *) ac_try_echo=$ac_try;;
34307
 
esac
34308
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34309
 
$as_echo "$ac_try_echo") >&5
34310
 
  (eval "$ac_compile") 2>conftest.er1
34311
 
  ac_status=$?
34312
 
  grep -v '^ *+' conftest.er1 >conftest.err
34313
 
  rm -f conftest.er1
34314
 
  cat conftest.err >&5
34315
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316
 
  (exit $ac_status); } && {
34317
 
         test -z "$ac_c_werror_flag" ||
34318
 
         test ! -s conftest.err
34319
 
       } && test -s conftest.$ac_objext; then
34320
 
  ac_header_compiler=yes
34321
 
else
34322
 
  $as_echo "$as_me: failed program was:" >&5
34323
 
sed 's/^/| /' conftest.$ac_ext >&5
34324
 
 
34325
 
        ac_header_compiler=no
34326
 
fi
34327
 
 
34328
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34329
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34330
 
$as_echo "$ac_header_compiler" >&6; }
34331
 
 
34332
 
# Is the header present?
34333
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34334
 
$as_echo_n "checking $ac_header presence... " >&6; }
34335
 
cat >conftest.$ac_ext <<_ACEOF
34336
 
/* confdefs.h.  */
34337
 
_ACEOF
34338
 
cat confdefs.h >>conftest.$ac_ext
34339
 
cat >>conftest.$ac_ext <<_ACEOF
34340
 
/* end confdefs.h.  */
34341
 
#include <$ac_header>
34342
 
_ACEOF
34343
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
34344
 
case "(($ac_try" in
34345
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34346
 
  *) ac_try_echo=$ac_try;;
34347
 
esac
34348
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34349
 
$as_echo "$ac_try_echo") >&5
34350
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34351
 
  ac_status=$?
34352
 
  grep -v '^ *+' conftest.er1 >conftest.err
34353
 
  rm -f conftest.er1
34354
 
  cat conftest.err >&5
34355
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356
 
  (exit $ac_status); } >/dev/null && {
34357
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34358
 
         test ! -s conftest.err
34359
 
       }; then
34360
 
  ac_header_preproc=yes
34361
 
else
34362
 
  $as_echo "$as_me: failed program was:" >&5
34363
 
sed 's/^/| /' conftest.$ac_ext >&5
34364
 
 
34365
 
  ac_header_preproc=no
34366
 
fi
34367
 
 
34368
 
rm -f conftest.err conftest.$ac_ext
34369
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34370
 
$as_echo "$ac_header_preproc" >&6; }
34371
 
 
34372
 
# So?  What about this header?
34373
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34374
 
  yes:no: )
34375
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34376
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34377
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34378
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34379
 
    ac_header_preproc=yes
34380
 
    ;;
34381
 
  no:yes:* )
34382
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34383
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34384
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34385
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34386
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34387
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34388
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34389
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34390
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34391
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34392
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34393
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34394
 
 
34395
 
    ;;
34396
 
esac
34397
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34398
 
$as_echo_n "checking for $ac_header... " >&6; }
34399
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34400
 
  $as_echo_n "(cached) " >&6
34401
 
else
34402
 
  eval "$as_ac_Header=\$ac_header_preproc"
34403
 
fi
34404
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
34405
 
                 $as_echo "$as_val"'`
34406
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34407
 
$as_echo "$ac_res" >&6; }
34408
 
 
34409
 
fi
34410
 
as_val=`eval 'as_val=${'$as_ac_Header'}
34411
 
                 $as_echo "$as_val"'`
34412
 
   if test "x$as_val" = x""yes; then
 
28643
do :
 
28644
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
28645
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
28646
eval as_val=\$$as_ac_Header
 
28647
   if test "x$as_val" = x""yes; then :
34413
28648
  cat >>confdefs.h <<_ACEOF
34414
28649
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34415
28650
_ACEOF
34497
28732
# IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
34498
28733
# being included by itself.  Check for <netinet/tcp.h> manually,
34499
28734
# including another header file first.
34500
 
{ $as_echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
 
28735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
34501
28736
$as_echo_n "checking for netinet/tcp.h... " >&6; }
34502
 
if test "${apr_cv_hdr_netinet_tcp_h+set}" = set; then
 
28737
if test "${apr_cv_hdr_netinet_tcp_h+set}" = set; then :
34503
28738
  $as_echo_n "(cached) " >&6
34504
28739
else
34505
 
  cat >conftest.$ac_ext <<_ACEOF
34506
 
/* confdefs.h.  */
34507
 
_ACEOF
34508
 
cat confdefs.h >>conftest.$ac_ext
34509
 
cat >>conftest.$ac_ext <<_ACEOF
 
28740
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34510
28741
/* end confdefs.h.  */
34511
28742
#ifdef HAVE_NETINET_IN_H
34512
28743
#include <netinet/in.h>
34514
28745
#include <netinet/tcp.h>
34515
28746
 
34516
28747
_ACEOF
34517
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
34518
 
case "(($ac_try" in
34519
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34520
 
  *) ac_try_echo=$ac_try;;
34521
 
esac
34522
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34523
 
$as_echo "$ac_try_echo") >&5
34524
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34525
 
  ac_status=$?
34526
 
  grep -v '^ *+' conftest.er1 >conftest.err
34527
 
  rm -f conftest.er1
34528
 
  cat conftest.err >&5
34529
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530
 
  (exit $ac_status); } >/dev/null && {
34531
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34532
 
         test ! -s conftest.err
34533
 
       }; then
 
28748
if ac_fn_c_try_cpp "$LINENO"; then :
34534
28749
  apr_cv_hdr_netinet_tcp_h=yes
34535
28750
else
34536
 
  $as_echo "$as_me: failed program was:" >&5
34537
 
sed 's/^/| /' conftest.$ac_ext >&5
34538
 
 
34539
28751
  apr_cv_hdr_netinet_tcp_h=no
34540
28752
fi
34541
 
 
34542
28753
rm -f conftest.err conftest.$ac_ext
34543
28754
fi
34544
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_hdr_netinet_tcp_h" >&5
 
28755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
34545
28756
$as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
34546
28757
if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
34547
28758
   netinet_tcph=1
34548
28759
 
34549
 
cat >>confdefs.h <<\_ACEOF
34550
 
#define HAVE_NETINET_TCP_H 1
34551
 
_ACEOF
 
28760
$as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
34552
28761
 
34553
28762
else
34554
28763
   netinet_tcph=0
34595
28804
# Checking for h_errno in <netdb.h>
34596
28805
if test "$netdbh" = "1"; then
34597
28806
 
34598
 
  { $as_echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5
 
28807
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
34599
28808
$as_echo_n "checking for h_errno in netdb.h... " >&6; }
34600
 
  if test "${ac_cv_h_errno_cppflags+set}" = set; then
 
28809
  if test "${ac_cv_h_errno_cppflags+set}" = set; then :
34601
28810
  $as_echo_n "(cached) " >&6
34602
28811
else
34603
28812
 
34605
28814
  if test x != x; then
34606
28815
    CPPFLAGS="-D $CPPFLAGS"
34607
28816
  fi
34608
 
  cat >conftest.$ac_ext <<_ACEOF
34609
 
/* confdefs.h.  */
34610
 
_ACEOF
34611
 
cat confdefs.h >>conftest.$ac_ext
34612
 
cat >>conftest.$ac_ext <<_ACEOF
 
28817
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34613
28818
/* end confdefs.h.  */
34614
28819
 
34615
28820
#ifdef HAVE_SYS_TYPES_H
34629
28834
  return 0;
34630
28835
}
34631
28836
_ACEOF
34632
 
rm -f conftest.$ac_objext
34633
 
if { (ac_try="$ac_compile"
34634
 
case "(($ac_try" in
34635
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34636
 
  *) ac_try_echo=$ac_try;;
34637
 
esac
34638
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34639
 
$as_echo "$ac_try_echo") >&5
34640
 
  (eval "$ac_compile") 2>conftest.er1
34641
 
  ac_status=$?
34642
 
  grep -v '^ *+' conftest.er1 >conftest.err
34643
 
  rm -f conftest.er1
34644
 
  cat conftest.err >&5
34645
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646
 
  (exit $ac_status); } && {
34647
 
         test -z "$ac_c_werror_flag" ||
34648
 
         test ! -s conftest.err
34649
 
       } && test -s conftest.$ac_objext; then
 
28837
if ac_fn_c_try_compile "$LINENO"; then :
34650
28838
 
34651
28839
  if test x != x; then
34652
28840
    ac_cv_h_errno_cppflags=""
34655
28843
  fi
34656
28844
 
34657
28845
else
34658
 
  $as_echo "$as_me: failed program was:" >&5
34659
 
sed 's/^/| /' conftest.$ac_ext >&5
34660
 
 
34661
28846
 
34662
28847
  ac_cv_h_errno_cppflags=no
34663
28848
 
34664
28849
fi
34665
 
 
34666
28850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34667
28851
    if test "$ac_cv_h_errno_cppflags" = "no"; then
34668
28852
      ac_save="$CPPFLAGS"
34671
28855
  if test x$flag != x; then
34672
28856
    CPPFLAGS="-D$flag $CPPFLAGS"
34673
28857
  fi
34674
 
  cat >conftest.$ac_ext <<_ACEOF
34675
 
/* confdefs.h.  */
34676
 
_ACEOF
34677
 
cat confdefs.h >>conftest.$ac_ext
34678
 
cat >>conftest.$ac_ext <<_ACEOF
 
28858
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34679
28859
/* end confdefs.h.  */
34680
28860
 
34681
28861
#ifdef HAVE_SYS_TYPES_H
34695
28875
  return 0;
34696
28876
}
34697
28877
_ACEOF
34698
 
rm -f conftest.$ac_objext
34699
 
if { (ac_try="$ac_compile"
34700
 
case "(($ac_try" in
34701
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34702
 
  *) ac_try_echo=$ac_try;;
34703
 
esac
34704
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34705
 
$as_echo "$ac_try_echo") >&5
34706
 
  (eval "$ac_compile") 2>conftest.er1
34707
 
  ac_status=$?
34708
 
  grep -v '^ *+' conftest.er1 >conftest.err
34709
 
  rm -f conftest.er1
34710
 
  cat conftest.err >&5
34711
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712
 
  (exit $ac_status); } && {
34713
 
         test -z "$ac_c_werror_flag" ||
34714
 
         test ! -s conftest.err
34715
 
       } && test -s conftest.$ac_objext; then
 
28878
if ac_fn_c_try_compile "$LINENO"; then :
34716
28879
 
34717
28880
  if test x$flag != x; then
34718
28881
    ac_cv_h_errno_cppflags="$flag"
34721
28884
  fi
34722
28885
 
34723
28886
else
34724
 
  $as_echo "$as_me: failed program was:" >&5
34725
 
sed 's/^/| /' conftest.$ac_ext >&5
34726
 
 
34727
28887
 
34728
28888
  ac_cv_h_errno_cppflags=no
34729
28889
 
34730
28890
fi
34731
 
 
34732
28891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34733
28892
        if test "$ac_cv_h_errno_cppflags" != "no"; then
34734
28893
          break
34742
28901
  if test "$ac_cv_h_errno_cppflags" != "no"; then
34743
28902
    if test "$ac_cv_h_errno_cppflags" != "yes"; then
34744
28903
      CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
34745
 
      { $as_echo "$as_me:$LINENO: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
 
28904
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
34746
28905
$as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
34747
28906
    else
34748
 
      { $as_echo "$as_me:$LINENO: result: $ac_cv_h_errno_cppflags" >&5
 
28907
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
34749
28908
$as_echo "$ac_cv_h_errno_cppflags" >&6; }
34750
28909
    fi
34751
28910
  else
34752
 
    { $as_echo "$as_me:$LINENO: result: $ac_cv_h_errno_cppflags" >&5
 
28911
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
34753
28912
$as_echo "$ac_cv_h_errno_cppflags" >&6; }
34754
28913
  fi
34755
28914
 
34756
28915
  if test "$ac_cv_h_errno_cflags" = "no"; then
34757
 
    { { $as_echo "$as_me:$LINENO: error: can not find h_errno in netdb.h" >&5
34758
 
$as_echo "$as_me: error: can not find h_errno in netdb.h" >&2;}
34759
 
   { (exit 1); exit 1; }; }
 
28916
    as_fn_error "can not find h_errno in netdb.h" "$LINENO" 5
34760
28917
  fi
34761
28918
fi
34762
28919
 
34763
 
{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
34764
 
$as_echo_n "checking for off_t... " >&6; }
34765
 
if test "${ac_cv_type_off_t+set}" = set; then
34766
 
  $as_echo_n "(cached) " >&6
34767
 
else
34768
 
  ac_cv_type_off_t=no
34769
 
cat >conftest.$ac_ext <<_ACEOF
34770
 
/* confdefs.h.  */
34771
 
_ACEOF
34772
 
cat confdefs.h >>conftest.$ac_ext
34773
 
cat >>conftest.$ac_ext <<_ACEOF
34774
 
/* end confdefs.h.  */
34775
 
$ac_includes_default
34776
 
int
34777
 
main ()
34778
 
{
34779
 
if (sizeof (off_t))
34780
 
       return 0;
34781
 
  ;
34782
 
  return 0;
34783
 
}
34784
 
_ACEOF
34785
 
rm -f conftest.$ac_objext
34786
 
if { (ac_try="$ac_compile"
34787
 
case "(($ac_try" in
34788
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34789
 
  *) ac_try_echo=$ac_try;;
34790
 
esac
34791
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34792
 
$as_echo "$ac_try_echo") >&5
34793
 
  (eval "$ac_compile") 2>conftest.er1
34794
 
  ac_status=$?
34795
 
  grep -v '^ *+' conftest.er1 >conftest.err
34796
 
  rm -f conftest.er1
34797
 
  cat conftest.err >&5
34798
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799
 
  (exit $ac_status); } && {
34800
 
         test -z "$ac_c_werror_flag" ||
34801
 
         test ! -s conftest.err
34802
 
       } && test -s conftest.$ac_objext; then
34803
 
  cat >conftest.$ac_ext <<_ACEOF
34804
 
/* confdefs.h.  */
34805
 
_ACEOF
34806
 
cat confdefs.h >>conftest.$ac_ext
34807
 
cat >>conftest.$ac_ext <<_ACEOF
34808
 
/* end confdefs.h.  */
34809
 
$ac_includes_default
34810
 
int
34811
 
main ()
34812
 
{
34813
 
if (sizeof ((off_t)))
34814
 
          return 0;
34815
 
  ;
34816
 
  return 0;
34817
 
}
34818
 
_ACEOF
34819
 
rm -f conftest.$ac_objext
34820
 
if { (ac_try="$ac_compile"
34821
 
case "(($ac_try" in
34822
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34823
 
  *) ac_try_echo=$ac_try;;
34824
 
esac
34825
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34826
 
$as_echo "$ac_try_echo") >&5
34827
 
  (eval "$ac_compile") 2>conftest.er1
34828
 
  ac_status=$?
34829
 
  grep -v '^ *+' conftest.er1 >conftest.err
34830
 
  rm -f conftest.er1
34831
 
  cat conftest.err >&5
34832
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833
 
  (exit $ac_status); } && {
34834
 
         test -z "$ac_c_werror_flag" ||
34835
 
         test ! -s conftest.err
34836
 
       } && test -s conftest.$ac_objext; then
34837
 
  :
34838
 
else
34839
 
  $as_echo "$as_me: failed program was:" >&5
34840
 
sed 's/^/| /' conftest.$ac_ext >&5
34841
 
 
34842
 
        ac_cv_type_off_t=yes
34843
 
fi
34844
 
 
34845
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34846
 
else
34847
 
  $as_echo "$as_me: failed program was:" >&5
34848
 
sed 's/^/| /' conftest.$ac_ext >&5
34849
 
 
34850
 
 
34851
 
fi
34852
 
 
34853
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34854
 
fi
34855
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34856
 
$as_echo "$ac_cv_type_off_t" >&6; }
34857
 
if test "x$ac_cv_type_off_t" = x""yes; then
34858
 
  :
 
28920
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
28921
if test "x$ac_cv_type_off_t" = x""yes; then :
 
28922
 
34859
28923
else
34860
28924
 
34861
28925
cat >>confdefs.h <<_ACEOF
34864
28928
 
34865
28929
fi
34866
28930
 
34867
 
{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
34868
 
$as_echo_n "checking for pid_t... " >&6; }
34869
 
if test "${ac_cv_type_pid_t+set}" = set; then
34870
 
  $as_echo_n "(cached) " >&6
34871
 
else
34872
 
  ac_cv_type_pid_t=no
34873
 
cat >conftest.$ac_ext <<_ACEOF
34874
 
/* confdefs.h.  */
34875
 
_ACEOF
34876
 
cat confdefs.h >>conftest.$ac_ext
34877
 
cat >>conftest.$ac_ext <<_ACEOF
34878
 
/* end confdefs.h.  */
34879
 
$ac_includes_default
34880
 
int
34881
 
main ()
34882
 
{
34883
 
if (sizeof (pid_t))
34884
 
       return 0;
34885
 
  ;
34886
 
  return 0;
34887
 
}
34888
 
_ACEOF
34889
 
rm -f conftest.$ac_objext
34890
 
if { (ac_try="$ac_compile"
34891
 
case "(($ac_try" in
34892
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34893
 
  *) ac_try_echo=$ac_try;;
34894
 
esac
34895
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34896
 
$as_echo "$ac_try_echo") >&5
34897
 
  (eval "$ac_compile") 2>conftest.er1
34898
 
  ac_status=$?
34899
 
  grep -v '^ *+' conftest.er1 >conftest.err
34900
 
  rm -f conftest.er1
34901
 
  cat conftest.err >&5
34902
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903
 
  (exit $ac_status); } && {
34904
 
         test -z "$ac_c_werror_flag" ||
34905
 
         test ! -s conftest.err
34906
 
       } && test -s conftest.$ac_objext; then
34907
 
  cat >conftest.$ac_ext <<_ACEOF
34908
 
/* confdefs.h.  */
34909
 
_ACEOF
34910
 
cat confdefs.h >>conftest.$ac_ext
34911
 
cat >>conftest.$ac_ext <<_ACEOF
34912
 
/* end confdefs.h.  */
34913
 
$ac_includes_default
34914
 
int
34915
 
main ()
34916
 
{
34917
 
if (sizeof ((pid_t)))
34918
 
          return 0;
34919
 
  ;
34920
 
  return 0;
34921
 
}
34922
 
_ACEOF
34923
 
rm -f conftest.$ac_objext
34924
 
if { (ac_try="$ac_compile"
34925
 
case "(($ac_try" in
34926
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34927
 
  *) ac_try_echo=$ac_try;;
34928
 
esac
34929
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34930
 
$as_echo "$ac_try_echo") >&5
34931
 
  (eval "$ac_compile") 2>conftest.er1
34932
 
  ac_status=$?
34933
 
  grep -v '^ *+' conftest.er1 >conftest.err
34934
 
  rm -f conftest.er1
34935
 
  cat conftest.err >&5
34936
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937
 
  (exit $ac_status); } && {
34938
 
         test -z "$ac_c_werror_flag" ||
34939
 
         test ! -s conftest.err
34940
 
       } && test -s conftest.$ac_objext; then
34941
 
  :
34942
 
else
34943
 
  $as_echo "$as_me: failed program was:" >&5
34944
 
sed 's/^/| /' conftest.$ac_ext >&5
34945
 
 
34946
 
        ac_cv_type_pid_t=yes
34947
 
fi
34948
 
 
34949
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34950
 
else
34951
 
  $as_echo "$as_me: failed program was:" >&5
34952
 
sed 's/^/| /' conftest.$ac_ext >&5
34953
 
 
34954
 
 
34955
 
fi
34956
 
 
34957
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34958
 
fi
34959
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34960
 
$as_echo "$ac_cv_type_pid_t" >&6; }
34961
 
if test "x$ac_cv_type_pid_t" = x""yes; then
34962
 
  :
 
28931
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
28932
if test "x$ac_cv_type_pid_t" = x""yes; then :
 
28933
 
34963
28934
else
34964
28935
 
34965
28936
cat >>confdefs.h <<_ACEOF
34968
28939
 
34969
28940
fi
34970
28941
 
34971
 
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
34972
 
$as_echo_n "checking for size_t... " >&6; }
34973
 
if test "${ac_cv_type_size_t+set}" = set; then
34974
 
  $as_echo_n "(cached) " >&6
34975
 
else
34976
 
  ac_cv_type_size_t=no
34977
 
cat >conftest.$ac_ext <<_ACEOF
34978
 
/* confdefs.h.  */
34979
 
_ACEOF
34980
 
cat confdefs.h >>conftest.$ac_ext
34981
 
cat >>conftest.$ac_ext <<_ACEOF
34982
 
/* end confdefs.h.  */
34983
 
$ac_includes_default
34984
 
int
34985
 
main ()
34986
 
{
34987
 
if (sizeof (size_t))
34988
 
       return 0;
34989
 
  ;
34990
 
  return 0;
34991
 
}
34992
 
_ACEOF
34993
 
rm -f conftest.$ac_objext
34994
 
if { (ac_try="$ac_compile"
34995
 
case "(($ac_try" in
34996
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34997
 
  *) ac_try_echo=$ac_try;;
34998
 
esac
34999
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35000
 
$as_echo "$ac_try_echo") >&5
35001
 
  (eval "$ac_compile") 2>conftest.er1
35002
 
  ac_status=$?
35003
 
  grep -v '^ *+' conftest.er1 >conftest.err
35004
 
  rm -f conftest.er1
35005
 
  cat conftest.err >&5
35006
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007
 
  (exit $ac_status); } && {
35008
 
         test -z "$ac_c_werror_flag" ||
35009
 
         test ! -s conftest.err
35010
 
       } && test -s conftest.$ac_objext; then
35011
 
  cat >conftest.$ac_ext <<_ACEOF
35012
 
/* confdefs.h.  */
35013
 
_ACEOF
35014
 
cat confdefs.h >>conftest.$ac_ext
35015
 
cat >>conftest.$ac_ext <<_ACEOF
35016
 
/* end confdefs.h.  */
35017
 
$ac_includes_default
35018
 
int
35019
 
main ()
35020
 
{
35021
 
if (sizeof ((size_t)))
35022
 
          return 0;
35023
 
  ;
35024
 
  return 0;
35025
 
}
35026
 
_ACEOF
35027
 
rm -f conftest.$ac_objext
35028
 
if { (ac_try="$ac_compile"
35029
 
case "(($ac_try" in
35030
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35031
 
  *) ac_try_echo=$ac_try;;
35032
 
esac
35033
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35034
 
$as_echo "$ac_try_echo") >&5
35035
 
  (eval "$ac_compile") 2>conftest.er1
35036
 
  ac_status=$?
35037
 
  grep -v '^ *+' conftest.er1 >conftest.err
35038
 
  rm -f conftest.er1
35039
 
  cat conftest.err >&5
35040
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041
 
  (exit $ac_status); } && {
35042
 
         test -z "$ac_c_werror_flag" ||
35043
 
         test ! -s conftest.err
35044
 
       } && test -s conftest.$ac_objext; then
35045
 
  :
35046
 
else
35047
 
  $as_echo "$as_me: failed program was:" >&5
35048
 
sed 's/^/| /' conftest.$ac_ext >&5
35049
 
 
35050
 
        ac_cv_type_size_t=yes
35051
 
fi
35052
 
 
35053
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35054
 
else
35055
 
  $as_echo "$as_me: failed program was:" >&5
35056
 
sed 's/^/| /' conftest.$ac_ext >&5
35057
 
 
35058
 
 
35059
 
fi
35060
 
 
35061
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35062
 
fi
35063
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35064
 
$as_echo "$ac_cv_type_size_t" >&6; }
35065
 
if test "x$ac_cv_type_size_t" = x""yes; then
35066
 
  :
 
28942
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
28943
if test "x$ac_cv_type_size_t" = x""yes; then :
 
28944
 
35067
28945
else
35068
28946
 
35069
28947
cat >>confdefs.h <<_ACEOF
35072
28950
 
35073
28951
fi
35074
28952
 
35075
 
{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
28953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
35076
28954
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
35077
 
if test "${ac_cv_type_uid_t+set}" = set; then
 
28955
if test "${ac_cv_type_uid_t+set}" = set; then :
35078
28956
  $as_echo_n "(cached) " >&6
35079
28957
else
35080
 
  cat >conftest.$ac_ext <<_ACEOF
35081
 
/* confdefs.h.  */
35082
 
_ACEOF
35083
 
cat confdefs.h >>conftest.$ac_ext
35084
 
cat >>conftest.$ac_ext <<_ACEOF
 
28958
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35085
28959
/* end confdefs.h.  */
35086
28960
#include <sys/types.h>
35087
28961
 
35088
28962
_ACEOF
35089
28963
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35090
 
  $EGREP "uid_t" >/dev/null 2>&1; then
 
28964
  $EGREP "uid_t" >/dev/null 2>&1; then :
35091
28965
  ac_cv_type_uid_t=yes
35092
28966
else
35093
28967
  ac_cv_type_uid_t=no
35095
28969
rm -f conftest*
35096
28970
 
35097
28971
fi
35098
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
28972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
35099
28973
$as_echo "$ac_cv_type_uid_t" >&6; }
35100
28974
if test $ac_cv_type_uid_t = no; then
35101
28975
 
35102
 
cat >>confdefs.h <<\_ACEOF
35103
 
#define uid_t int
35104
 
_ACEOF
35105
 
 
35106
 
 
35107
 
cat >>confdefs.h <<\_ACEOF
35108
 
#define gid_t int
35109
 
_ACEOF
35110
 
 
35111
 
fi
35112
 
 
35113
 
{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
35114
 
$as_echo_n "checking for ssize_t... " >&6; }
35115
 
if test "${ac_cv_type_ssize_t+set}" = set; then
35116
 
  $as_echo_n "(cached) " >&6
35117
 
else
35118
 
  ac_cv_type_ssize_t=no
35119
 
cat >conftest.$ac_ext <<_ACEOF
35120
 
/* confdefs.h.  */
35121
 
_ACEOF
35122
 
cat confdefs.h >>conftest.$ac_ext
35123
 
cat >>conftest.$ac_ext <<_ACEOF
35124
 
/* end confdefs.h.  */
35125
 
$ac_includes_default
35126
 
int
35127
 
main ()
35128
 
{
35129
 
if (sizeof (ssize_t))
35130
 
       return 0;
35131
 
  ;
35132
 
  return 0;
35133
 
}
35134
 
_ACEOF
35135
 
rm -f conftest.$ac_objext
35136
 
if { (ac_try="$ac_compile"
35137
 
case "(($ac_try" in
35138
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35139
 
  *) ac_try_echo=$ac_try;;
35140
 
esac
35141
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35142
 
$as_echo "$ac_try_echo") >&5
35143
 
  (eval "$ac_compile") 2>conftest.er1
35144
 
  ac_status=$?
35145
 
  grep -v '^ *+' conftest.er1 >conftest.err
35146
 
  rm -f conftest.er1
35147
 
  cat conftest.err >&5
35148
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149
 
  (exit $ac_status); } && {
35150
 
         test -z "$ac_c_werror_flag" ||
35151
 
         test ! -s conftest.err
35152
 
       } && test -s conftest.$ac_objext; then
35153
 
  cat >conftest.$ac_ext <<_ACEOF
35154
 
/* confdefs.h.  */
35155
 
_ACEOF
35156
 
cat confdefs.h >>conftest.$ac_ext
35157
 
cat >>conftest.$ac_ext <<_ACEOF
35158
 
/* end confdefs.h.  */
35159
 
$ac_includes_default
35160
 
int
35161
 
main ()
35162
 
{
35163
 
if (sizeof ((ssize_t)))
35164
 
          return 0;
35165
 
  ;
35166
 
  return 0;
35167
 
}
35168
 
_ACEOF
35169
 
rm -f conftest.$ac_objext
35170
 
if { (ac_try="$ac_compile"
35171
 
case "(($ac_try" in
35172
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35173
 
  *) ac_try_echo=$ac_try;;
35174
 
esac
35175
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35176
 
$as_echo "$ac_try_echo") >&5
35177
 
  (eval "$ac_compile") 2>conftest.er1
35178
 
  ac_status=$?
35179
 
  grep -v '^ *+' conftest.er1 >conftest.err
35180
 
  rm -f conftest.er1
35181
 
  cat conftest.err >&5
35182
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183
 
  (exit $ac_status); } && {
35184
 
         test -z "$ac_c_werror_flag" ||
35185
 
         test ! -s conftest.err
35186
 
       } && test -s conftest.$ac_objext; then
35187
 
  :
35188
 
else
35189
 
  $as_echo "$as_me: failed program was:" >&5
35190
 
sed 's/^/| /' conftest.$ac_ext >&5
35191
 
 
35192
 
        ac_cv_type_ssize_t=yes
35193
 
fi
35194
 
 
35195
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35196
 
else
35197
 
  $as_echo "$as_me: failed program was:" >&5
35198
 
sed 's/^/| /' conftest.$ac_ext >&5
35199
 
 
35200
 
 
35201
 
fi
35202
 
 
35203
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35204
 
fi
35205
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
35206
 
$as_echo "$ac_cv_type_ssize_t" >&6; }
35207
 
if test "x$ac_cv_type_ssize_t" = x""yes; then
35208
 
  :
 
28976
$as_echo "#define uid_t int" >>confdefs.h
 
28977
 
 
28978
 
 
28979
$as_echo "#define gid_t int" >>confdefs.h
 
28980
 
 
28981
fi
 
28982
 
 
28983
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
 
28984
if test "x$ac_cv_type_ssize_t" = x""yes; then :
 
28985
 
35209
28986
else
35210
28987
 
35211
28988
cat >>confdefs.h <<_ACEOF
35214
28991
 
35215
28992
fi
35216
28993
 
35217
 
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
 
28994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
35218
28995
$as_echo_n "checking for inline... " >&6; }
35219
 
if test "${ac_cv_c_inline+set}" = set; then
 
28996
if test "${ac_cv_c_inline+set}" = set; then :
35220
28997
  $as_echo_n "(cached) " >&6
35221
28998
else
35222
28999
  ac_cv_c_inline=no
35223
29000
for ac_kw in inline __inline__ __inline; do
35224
 
  cat >conftest.$ac_ext <<_ACEOF
35225
 
/* confdefs.h.  */
35226
 
_ACEOF
35227
 
cat confdefs.h >>conftest.$ac_ext
35228
 
cat >>conftest.$ac_ext <<_ACEOF
 
29001
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35229
29002
/* end confdefs.h.  */
35230
29003
#ifndef __cplusplus
35231
29004
typedef int foo_t;
35234
29007
#endif
35235
29008
 
35236
29009
_ACEOF
35237
 
rm -f conftest.$ac_objext
35238
 
if { (ac_try="$ac_compile"
35239
 
case "(($ac_try" in
35240
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35241
 
  *) ac_try_echo=$ac_try;;
35242
 
esac
35243
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35244
 
$as_echo "$ac_try_echo") >&5
35245
 
  (eval "$ac_compile") 2>conftest.er1
35246
 
  ac_status=$?
35247
 
  grep -v '^ *+' conftest.er1 >conftest.err
35248
 
  rm -f conftest.er1
35249
 
  cat conftest.err >&5
35250
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251
 
  (exit $ac_status); } && {
35252
 
         test -z "$ac_c_werror_flag" ||
35253
 
         test ! -s conftest.err
35254
 
       } && test -s conftest.$ac_objext; then
 
29010
if ac_fn_c_try_compile "$LINENO"; then :
35255
29011
  ac_cv_c_inline=$ac_kw
35256
 
else
35257
 
  $as_echo "$as_me: failed program was:" >&5
35258
 
sed 's/^/| /' conftest.$ac_ext >&5
35259
 
 
35260
 
 
35261
29012
fi
35262
 
 
35263
29013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35264
29014
  test "$ac_cv_c_inline" != no && break
35265
29015
done
35266
29016
 
35267
29017
fi
35268
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
29018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
35269
29019
$as_echo "$ac_cv_c_inline" >&6; }
35270
29020
 
35271
 
 
35272
29021
case $ac_cv_c_inline in
35273
29022
  inline | yes) ;;
35274
29023
  *)
35284
29033
    ;;
35285
29034
esac
35286
29035
 
35287
 
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
29036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
35288
29037
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
35289
 
if test "${ac_cv_c_const+set}" = set; then
 
29038
if test "${ac_cv_c_const+set}" = set; then :
35290
29039
  $as_echo_n "(cached) " >&6
35291
29040
else
35292
 
  cat >conftest.$ac_ext <<_ACEOF
35293
 
/* confdefs.h.  */
35294
 
_ACEOF
35295
 
cat confdefs.h >>conftest.$ac_ext
35296
 
cat >>conftest.$ac_ext <<_ACEOF
 
29041
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35297
29042
/* end confdefs.h.  */
35298
29043
 
35299
29044
int
35353
29098
  return 0;
35354
29099
}
35355
29100
_ACEOF
35356
 
rm -f conftest.$ac_objext
35357
 
if { (ac_try="$ac_compile"
35358
 
case "(($ac_try" in
35359
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35360
 
  *) ac_try_echo=$ac_try;;
35361
 
esac
35362
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35363
 
$as_echo "$ac_try_echo") >&5
35364
 
  (eval "$ac_compile") 2>conftest.er1
35365
 
  ac_status=$?
35366
 
  grep -v '^ *+' conftest.er1 >conftest.err
35367
 
  rm -f conftest.er1
35368
 
  cat conftest.err >&5
35369
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370
 
  (exit $ac_status); } && {
35371
 
         test -z "$ac_c_werror_flag" ||
35372
 
         test ! -s conftest.err
35373
 
       } && test -s conftest.$ac_objext; then
 
29101
if ac_fn_c_try_compile "$LINENO"; then :
35374
29102
  ac_cv_c_const=yes
35375
29103
else
35376
 
  $as_echo "$as_me: failed program was:" >&5
35377
 
sed 's/^/| /' conftest.$ac_ext >&5
35378
 
 
35379
 
        ac_cv_c_const=no
 
29104
  ac_cv_c_const=no
35380
29105
fi
35381
 
 
35382
29106
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35383
29107
fi
35384
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
29108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
35385
29109
$as_echo "$ac_cv_c_const" >&6; }
35386
29110
if test $ac_cv_c_const = no; then
35387
29111
 
35388
 
cat >>confdefs.h <<\_ACEOF
35389
 
#define const /**/
35390
 
_ACEOF
 
29112
$as_echo "#define const /**/" >>confdefs.h
35391
29113
 
35392
29114
fi
35393
29115
 
35394
 
{ $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
 
29116
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
35395
29117
$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
35396
 
if test "${ac_cv_func_setpgrp_void+set}" = set; then
 
29118
if test "${ac_cv_func_setpgrp_void+set}" = set; then :
35397
29119
  $as_echo_n "(cached) " >&6
35398
29120
else
35399
 
  if test "$cross_compiling" = yes; then
35400
 
  { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
35401
 
$as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
35402
 
   { (exit 1); exit 1; }; }
 
29121
  if test "$cross_compiling" = yes; then :
 
29122
  as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
35403
29123
else
35404
 
  cat >conftest.$ac_ext <<_ACEOF
35405
 
/* confdefs.h.  */
35406
 
_ACEOF
35407
 
cat confdefs.h >>conftest.$ac_ext
35408
 
cat >>conftest.$ac_ext <<_ACEOF
 
29124
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35409
29125
/* end confdefs.h.  */
35410
29126
$ac_includes_default
35411
29127
int
35419
29135
  return 0;
35420
29136
}
35421
29137
_ACEOF
35422
 
rm -f conftest$ac_exeext
35423
 
if { (ac_try="$ac_link"
35424
 
case "(($ac_try" in
35425
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35426
 
  *) ac_try_echo=$ac_try;;
35427
 
esac
35428
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35429
 
$as_echo "$ac_try_echo") >&5
35430
 
  (eval "$ac_link") 2>&5
35431
 
  ac_status=$?
35432
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35433
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35434
 
  { (case "(($ac_try" in
35435
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35436
 
  *) ac_try_echo=$ac_try;;
35437
 
esac
35438
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35439
 
$as_echo "$ac_try_echo") >&5
35440
 
  (eval "$ac_try") 2>&5
35441
 
  ac_status=$?
35442
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443
 
  (exit $ac_status); }; }; then
 
29138
if ac_fn_c_try_run "$LINENO"; then :
35444
29139
  ac_cv_func_setpgrp_void=no
35445
29140
else
35446
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
35447
 
$as_echo "$as_me: failed program was:" >&5
35448
 
sed 's/^/| /' conftest.$ac_ext >&5
35449
 
 
35450
 
( exit $ac_status )
35451
 
ac_cv_func_setpgrp_void=yes
35452
 
fi
35453
 
rm -rf conftest.dSYM
35454
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35455
 
fi
35456
 
 
35457
 
 
35458
 
fi
35459
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
 
29141
  ac_cv_func_setpgrp_void=yes
 
29142
fi
 
29143
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
29144
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
29145
fi
 
29146
 
 
29147
fi
 
29148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
35460
29149
$as_echo "$ac_cv_func_setpgrp_void" >&6; }
35461
29150
if test $ac_cv_func_setpgrp_void = yes; then
35462
29151
 
35463
 
cat >>confdefs.h <<\_ACEOF
35464
 
#define SETPGRP_VOID 1
35465
 
_ACEOF
 
29152
$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
35466
29153
 
35467
29154
fi
35468
29155
 
35469
29156
 
35470
29157
 
35471
 
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
 
29158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
35472
29159
$as_echo_n "checking for socklen_t... " >&6; }
35473
 
if test "${ac_cv_socklen_t+set}" = set; then
 
29160
if test "${ac_cv_socklen_t+set}" = set; then :
35474
29161
  $as_echo_n "(cached) " >&6
35475
29162
else
35476
29163
 
35477
 
cat >conftest.$ac_ext <<_ACEOF
35478
 
/* confdefs.h.  */
35479
 
_ACEOF
35480
 
cat confdefs.h >>conftest.$ac_ext
35481
 
cat >>conftest.$ac_ext <<_ACEOF
 
29164
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35482
29165
/* end confdefs.h.  */
35483
29166
 
35484
29167
#ifdef HAVE_SYS_TYPES_H
35498
29181
  return 0;
35499
29182
}
35500
29183
_ACEOF
35501
 
rm -f conftest.$ac_objext
35502
 
if { (ac_try="$ac_compile"
35503
 
case "(($ac_try" in
35504
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35505
 
  *) ac_try_echo=$ac_try;;
35506
 
esac
35507
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35508
 
$as_echo "$ac_try_echo") >&5
35509
 
  (eval "$ac_compile") 2>conftest.er1
35510
 
  ac_status=$?
35511
 
  grep -v '^ *+' conftest.er1 >conftest.err
35512
 
  rm -f conftest.er1
35513
 
  cat conftest.err >&5
35514
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515
 
  (exit $ac_status); } && {
35516
 
         test -z "$ac_c_werror_flag" ||
35517
 
         test ! -s conftest.err
35518
 
       } && test -s conftest.$ac_objext; then
 
29184
if ac_fn_c_try_compile "$LINENO"; then :
35519
29185
 
35520
29186
    ac_cv_socklen_t=yes
35521
29187
 
35522
29188
else
35523
 
  $as_echo "$as_me: failed program was:" >&5
35524
 
sed 's/^/| /' conftest.$ac_ext >&5
35525
 
 
35526
29189
 
35527
29190
    ac_cv_socklen_t=no
35528
29191
 
35529
29192
fi
35530
 
 
35531
29193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35532
29194
 
35533
29195
fi
35534
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
 
29196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
35535
29197
$as_echo "$ac_cv_socklen_t" >&6; }
35536
29198
 
35537
29199
if test "$ac_cv_socklen_t" = "yes"; then
35538
29200
 
35539
 
cat >>confdefs.h <<\_ACEOF
35540
 
#define HAVE_SOCKLEN_T 1
35541
 
_ACEOF
 
29201
$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
35542
29202
 
35543
29203
fi
35544
29204
 
35547
29207
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35548
29208
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35549
29209
# This bug is HP SR number 8606223364.
35550
 
{ $as_echo "$as_me:$LINENO: checking size of void*" >&5
 
29210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
35551
29211
$as_echo_n "checking size of void*... " >&6; }
35552
 
if test "${ac_cv_sizeof_voidp+set}" = set; then
 
29212
if test "${ac_cv_sizeof_voidp+set}" = set; then :
35553
29213
  $as_echo_n "(cached) " >&6
35554
29214
else
35555
 
  if test "$cross_compiling" = yes; then
35556
 
  # Depending upon the size, compute the lo and hi bounds.
35557
 
cat >conftest.$ac_ext <<_ACEOF
35558
 
/* confdefs.h.  */
35559
 
_ACEOF
35560
 
cat confdefs.h >>conftest.$ac_ext
35561
 
cat >>conftest.$ac_ext <<_ACEOF
35562
 
/* end confdefs.h.  */
35563
 
$ac_includes_default
35564
 
int
35565
 
main ()
35566
 
{
35567
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
35568
 
test_array [0] = 0
35569
 
 
35570
 
  ;
35571
 
  return 0;
35572
 
}
35573
 
_ACEOF
35574
 
rm -f conftest.$ac_objext
35575
 
if { (ac_try="$ac_compile"
35576
 
case "(($ac_try" in
35577
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35578
 
  *) ac_try_echo=$ac_try;;
35579
 
esac
35580
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35581
 
$as_echo "$ac_try_echo") >&5
35582
 
  (eval "$ac_compile") 2>conftest.er1
35583
 
  ac_status=$?
35584
 
  grep -v '^ *+' conftest.er1 >conftest.err
35585
 
  rm -f conftest.er1
35586
 
  cat conftest.err >&5
35587
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588
 
  (exit $ac_status); } && {
35589
 
         test -z "$ac_c_werror_flag" ||
35590
 
         test ! -s conftest.err
35591
 
       } && test -s conftest.$ac_objext; then
35592
 
  ac_lo=0 ac_mid=0
35593
 
  while :; do
35594
 
    cat >conftest.$ac_ext <<_ACEOF
35595
 
/* confdefs.h.  */
35596
 
_ACEOF
35597
 
cat confdefs.h >>conftest.$ac_ext
35598
 
cat >>conftest.$ac_ext <<_ACEOF
35599
 
/* end confdefs.h.  */
35600
 
$ac_includes_default
35601
 
int
35602
 
main ()
35603
 
{
35604
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
35605
 
test_array [0] = 0
35606
 
 
35607
 
  ;
35608
 
  return 0;
35609
 
}
35610
 
_ACEOF
35611
 
rm -f conftest.$ac_objext
35612
 
if { (ac_try="$ac_compile"
35613
 
case "(($ac_try" in
35614
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35615
 
  *) ac_try_echo=$ac_try;;
35616
 
esac
35617
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35618
 
$as_echo "$ac_try_echo") >&5
35619
 
  (eval "$ac_compile") 2>conftest.er1
35620
 
  ac_status=$?
35621
 
  grep -v '^ *+' conftest.er1 >conftest.err
35622
 
  rm -f conftest.er1
35623
 
  cat conftest.err >&5
35624
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625
 
  (exit $ac_status); } && {
35626
 
         test -z "$ac_c_werror_flag" ||
35627
 
         test ! -s conftest.err
35628
 
       } && test -s conftest.$ac_objext; then
35629
 
  ac_hi=$ac_mid; break
35630
 
else
35631
 
  $as_echo "$as_me: failed program was:" >&5
35632
 
sed 's/^/| /' conftest.$ac_ext >&5
35633
 
 
35634
 
        ac_lo=`expr $ac_mid + 1`
35635
 
                        if test $ac_lo -le $ac_mid; then
35636
 
                          ac_lo= ac_hi=
35637
 
                          break
35638
 
                        fi
35639
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
35640
 
fi
35641
 
 
35642
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35643
 
  done
35644
 
else
35645
 
  $as_echo "$as_me: failed program was:" >&5
35646
 
sed 's/^/| /' conftest.$ac_ext >&5
35647
 
 
35648
 
        cat >conftest.$ac_ext <<_ACEOF
35649
 
/* confdefs.h.  */
35650
 
_ACEOF
35651
 
cat confdefs.h >>conftest.$ac_ext
35652
 
cat >>conftest.$ac_ext <<_ACEOF
35653
 
/* end confdefs.h.  */
35654
 
$ac_includes_default
35655
 
int
35656
 
main ()
35657
 
{
35658
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
35659
 
test_array [0] = 0
35660
 
 
35661
 
  ;
35662
 
  return 0;
35663
 
}
35664
 
_ACEOF
35665
 
rm -f conftest.$ac_objext
35666
 
if { (ac_try="$ac_compile"
35667
 
case "(($ac_try" in
35668
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35669
 
  *) ac_try_echo=$ac_try;;
35670
 
esac
35671
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35672
 
$as_echo "$ac_try_echo") >&5
35673
 
  (eval "$ac_compile") 2>conftest.er1
35674
 
  ac_status=$?
35675
 
  grep -v '^ *+' conftest.er1 >conftest.err
35676
 
  rm -f conftest.er1
35677
 
  cat conftest.err >&5
35678
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679
 
  (exit $ac_status); } && {
35680
 
         test -z "$ac_c_werror_flag" ||
35681
 
         test ! -s conftest.err
35682
 
       } && test -s conftest.$ac_objext; then
35683
 
  ac_hi=-1 ac_mid=-1
35684
 
  while :; do
35685
 
    cat >conftest.$ac_ext <<_ACEOF
35686
 
/* confdefs.h.  */
35687
 
_ACEOF
35688
 
cat confdefs.h >>conftest.$ac_ext
35689
 
cat >>conftest.$ac_ext <<_ACEOF
35690
 
/* end confdefs.h.  */
35691
 
$ac_includes_default
35692
 
int
35693
 
main ()
35694
 
{
35695
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
35696
 
test_array [0] = 0
35697
 
 
35698
 
  ;
35699
 
  return 0;
35700
 
}
35701
 
_ACEOF
35702
 
rm -f conftest.$ac_objext
35703
 
if { (ac_try="$ac_compile"
35704
 
case "(($ac_try" in
35705
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35706
 
  *) ac_try_echo=$ac_try;;
35707
 
esac
35708
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35709
 
$as_echo "$ac_try_echo") >&5
35710
 
  (eval "$ac_compile") 2>conftest.er1
35711
 
  ac_status=$?
35712
 
  grep -v '^ *+' conftest.er1 >conftest.err
35713
 
  rm -f conftest.er1
35714
 
  cat conftest.err >&5
35715
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35716
 
  (exit $ac_status); } && {
35717
 
         test -z "$ac_c_werror_flag" ||
35718
 
         test ! -s conftest.err
35719
 
       } && test -s conftest.$ac_objext; then
35720
 
  ac_lo=$ac_mid; break
35721
 
else
35722
 
  $as_echo "$as_me: failed program was:" >&5
35723
 
sed 's/^/| /' conftest.$ac_ext >&5
35724
 
 
35725
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
35726
 
                        if test $ac_mid -le $ac_hi; then
35727
 
                          ac_lo= ac_hi=
35728
 
                          break
35729
 
                        fi
35730
 
                        ac_mid=`expr 2 '*' $ac_mid`
35731
 
fi
35732
 
 
35733
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35734
 
  done
35735
 
else
35736
 
  $as_echo "$as_me: failed program was:" >&5
35737
 
sed 's/^/| /' conftest.$ac_ext >&5
35738
 
 
35739
 
        ac_lo= ac_hi=
35740
 
fi
35741
 
 
35742
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35743
 
fi
35744
 
 
35745
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35746
 
# Binary search between lo and hi bounds.
35747
 
while test "x$ac_lo" != "x$ac_hi"; do
35748
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35749
 
  cat >conftest.$ac_ext <<_ACEOF
35750
 
/* confdefs.h.  */
35751
 
_ACEOF
35752
 
cat confdefs.h >>conftest.$ac_ext
35753
 
cat >>conftest.$ac_ext <<_ACEOF
35754
 
/* end confdefs.h.  */
35755
 
$ac_includes_default
35756
 
int
35757
 
main ()
35758
 
{
35759
 
static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
35760
 
test_array [0] = 0
35761
 
 
35762
 
  ;
35763
 
  return 0;
35764
 
}
35765
 
_ACEOF
35766
 
rm -f conftest.$ac_objext
35767
 
if { (ac_try="$ac_compile"
35768
 
case "(($ac_try" in
35769
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35770
 
  *) ac_try_echo=$ac_try;;
35771
 
esac
35772
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35773
 
$as_echo "$ac_try_echo") >&5
35774
 
  (eval "$ac_compile") 2>conftest.er1
35775
 
  ac_status=$?
35776
 
  grep -v '^ *+' conftest.er1 >conftest.err
35777
 
  rm -f conftest.er1
35778
 
  cat conftest.err >&5
35779
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35780
 
  (exit $ac_status); } && {
35781
 
         test -z "$ac_c_werror_flag" ||
35782
 
         test ! -s conftest.err
35783
 
       } && test -s conftest.$ac_objext; then
35784
 
  ac_hi=$ac_mid
35785
 
else
35786
 
  $as_echo "$as_me: failed program was:" >&5
35787
 
sed 's/^/| /' conftest.$ac_ext >&5
35788
 
 
35789
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
35790
 
fi
35791
 
 
35792
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35793
 
done
35794
 
case $ac_lo in
35795
 
?*) ac_cv_sizeof_voidp=$ac_lo;;
35796
 
'') if test "$ac_cv_type_voidp" = yes; then
35797
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35798
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35799
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
35800
 
See \`config.log' for more details." >&5
35801
 
$as_echo "$as_me: error: cannot compute sizeof (void*)
35802
 
See \`config.log' for more details." >&2;}
35803
 
   { (exit 77); exit 77; }; }; }
35804
 
   else
35805
 
     ac_cv_sizeof_voidp=0
35806
 
   fi ;;
35807
 
esac
35808
 
else
35809
 
  cat >conftest.$ac_ext <<_ACEOF
35810
 
/* confdefs.h.  */
35811
 
_ACEOF
35812
 
cat confdefs.h >>conftest.$ac_ext
35813
 
cat >>conftest.$ac_ext <<_ACEOF
35814
 
/* end confdefs.h.  */
35815
 
$ac_includes_default
35816
 
static long int longval () { return (long int) (sizeof (void*)); }
35817
 
static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
35818
 
#include <stdio.h>
35819
 
#include <stdlib.h>
35820
 
int
35821
 
main ()
35822
 
{
35823
 
 
35824
 
  FILE *f = fopen ("conftest.val", "w");
35825
 
  if (! f)
35826
 
    return 1;
35827
 
  if (((long int) (sizeof (void*))) < 0)
35828
 
    {
35829
 
      long int i = longval ();
35830
 
      if (i != ((long int) (sizeof (void*))))
35831
 
        return 1;
35832
 
      fprintf (f, "%ld", i);
35833
 
    }
35834
 
  else
35835
 
    {
35836
 
      unsigned long int i = ulongval ();
35837
 
      if (i != ((long int) (sizeof (void*))))
35838
 
        return 1;
35839
 
      fprintf (f, "%lu", i);
35840
 
    }
35841
 
  /* Do not output a trailing newline, as this causes \r\n confusion
35842
 
     on some platforms.  */
35843
 
  return ferror (f) || fclose (f) != 0;
35844
 
 
35845
 
  ;
35846
 
  return 0;
35847
 
}
35848
 
_ACEOF
35849
 
rm -f conftest$ac_exeext
35850
 
if { (ac_try="$ac_link"
35851
 
case "(($ac_try" in
35852
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35853
 
  *) ac_try_echo=$ac_try;;
35854
 
esac
35855
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35856
 
$as_echo "$ac_try_echo") >&5
35857
 
  (eval "$ac_link") 2>&5
35858
 
  ac_status=$?
35859
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35861
 
  { (case "(($ac_try" in
35862
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35863
 
  *) ac_try_echo=$ac_try;;
35864
 
esac
35865
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35866
 
$as_echo "$ac_try_echo") >&5
35867
 
  (eval "$ac_try") 2>&5
35868
 
  ac_status=$?
35869
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870
 
  (exit $ac_status); }; }; then
35871
 
  ac_cv_sizeof_voidp=`cat conftest.val`
35872
 
else
35873
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
35874
 
$as_echo "$as_me: failed program was:" >&5
35875
 
sed 's/^/| /' conftest.$ac_ext >&5
35876
 
 
35877
 
( exit $ac_status )
35878
 
if test "$ac_cv_type_voidp" = yes; then
35879
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35880
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35881
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
35882
 
See \`config.log' for more details." >&5
35883
 
$as_echo "$as_me: error: cannot compute sizeof (void*)
35884
 
See \`config.log' for more details." >&2;}
35885
 
   { (exit 77); exit 77; }; }; }
 
29215
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
 
29216
 
 
29217
else
 
29218
  if test "$ac_cv_type_voidp" = yes; then
 
29219
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
29220
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
29221
{ as_fn_set_status 77
 
29222
as_fn_error "cannot compute sizeof (void*)
 
29223
See \`config.log' for more details." "$LINENO" 5; }; }
35886
29224
   else
35887
29225
     ac_cv_sizeof_voidp=0
35888
29226
   fi
35889
29227
fi
35890
 
rm -rf conftest.dSYM
35891
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35892
 
fi
35893
 
rm -f conftest.val
35894
 
fi
35895
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
 
29228
 
 
29229
fi
 
29230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
35896
29231
$as_echo "$ac_cv_sizeof_voidp" >&6; }
35897
29232
 
35898
29233
 
35906
29241
if test "x$ac_cv_sizeof_voidp" != "x"; then
35907
29242
    voidp_size=$ac_cv_sizeof_voidp
35908
29243
else
35909
 
    { { $as_echo "$as_me:$LINENO: error: Cannot determine size of void*" >&5
35910
 
$as_echo "$as_me: error: Cannot determine size of void*" >&2;}
35911
 
   { (exit 1); exit 1; }; }
 
29244
    as_fn_error "Cannot determine size of void*" "$LINENO" 5
35912
29245
fi
35913
29246
 
35914
29247
# The cast to long int works around a bug in the HP C Compiler
35915
29248
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35916
29249
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35917
29250
# This bug is HP SR number 8606223364.
35918
 
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
 
29251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
35919
29252
$as_echo_n "checking size of char... " >&6; }
35920
 
if test "${ac_cv_sizeof_char+set}" = set; then
 
29253
if test "${ac_cv_sizeof_char+set}" = set; then :
35921
29254
  $as_echo_n "(cached) " >&6
35922
29255
else
35923
 
  if test "$cross_compiling" = yes; then
35924
 
  # Depending upon the size, compute the lo and hi bounds.
35925
 
cat >conftest.$ac_ext <<_ACEOF
35926
 
/* confdefs.h.  */
35927
 
_ACEOF
35928
 
cat confdefs.h >>conftest.$ac_ext
35929
 
cat >>conftest.$ac_ext <<_ACEOF
35930
 
/* end confdefs.h.  */
35931
 
$ac_includes_default
35932
 
int
35933
 
main ()
35934
 
{
35935
 
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
35936
 
test_array [0] = 0
35937
 
 
35938
 
  ;
35939
 
  return 0;
35940
 
}
35941
 
_ACEOF
35942
 
rm -f conftest.$ac_objext
35943
 
if { (ac_try="$ac_compile"
35944
 
case "(($ac_try" in
35945
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35946
 
  *) ac_try_echo=$ac_try;;
35947
 
esac
35948
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35949
 
$as_echo "$ac_try_echo") >&5
35950
 
  (eval "$ac_compile") 2>conftest.er1
35951
 
  ac_status=$?
35952
 
  grep -v '^ *+' conftest.er1 >conftest.err
35953
 
  rm -f conftest.er1
35954
 
  cat conftest.err >&5
35955
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956
 
  (exit $ac_status); } && {
35957
 
         test -z "$ac_c_werror_flag" ||
35958
 
         test ! -s conftest.err
35959
 
       } && test -s conftest.$ac_objext; then
35960
 
  ac_lo=0 ac_mid=0
35961
 
  while :; do
35962
 
    cat >conftest.$ac_ext <<_ACEOF
35963
 
/* confdefs.h.  */
35964
 
_ACEOF
35965
 
cat confdefs.h >>conftest.$ac_ext
35966
 
cat >>conftest.$ac_ext <<_ACEOF
35967
 
/* end confdefs.h.  */
35968
 
$ac_includes_default
35969
 
int
35970
 
main ()
35971
 
{
35972
 
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
35973
 
test_array [0] = 0
35974
 
 
35975
 
  ;
35976
 
  return 0;
35977
 
}
35978
 
_ACEOF
35979
 
rm -f conftest.$ac_objext
35980
 
if { (ac_try="$ac_compile"
35981
 
case "(($ac_try" in
35982
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35983
 
  *) ac_try_echo=$ac_try;;
35984
 
esac
35985
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35986
 
$as_echo "$ac_try_echo") >&5
35987
 
  (eval "$ac_compile") 2>conftest.er1
35988
 
  ac_status=$?
35989
 
  grep -v '^ *+' conftest.er1 >conftest.err
35990
 
  rm -f conftest.er1
35991
 
  cat conftest.err >&5
35992
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993
 
  (exit $ac_status); } && {
35994
 
         test -z "$ac_c_werror_flag" ||
35995
 
         test ! -s conftest.err
35996
 
       } && test -s conftest.$ac_objext; then
35997
 
  ac_hi=$ac_mid; break
35998
 
else
35999
 
  $as_echo "$as_me: failed program was:" >&5
36000
 
sed 's/^/| /' conftest.$ac_ext >&5
36001
 
 
36002
 
        ac_lo=`expr $ac_mid + 1`
36003
 
                        if test $ac_lo -le $ac_mid; then
36004
 
                          ac_lo= ac_hi=
36005
 
                          break
36006
 
                        fi
36007
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
36008
 
fi
36009
 
 
36010
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36011
 
  done
36012
 
else
36013
 
  $as_echo "$as_me: failed program was:" >&5
36014
 
sed 's/^/| /' conftest.$ac_ext >&5
36015
 
 
36016
 
        cat >conftest.$ac_ext <<_ACEOF
36017
 
/* confdefs.h.  */
36018
 
_ACEOF
36019
 
cat confdefs.h >>conftest.$ac_ext
36020
 
cat >>conftest.$ac_ext <<_ACEOF
36021
 
/* end confdefs.h.  */
36022
 
$ac_includes_default
36023
 
int
36024
 
main ()
36025
 
{
36026
 
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
36027
 
test_array [0] = 0
36028
 
 
36029
 
  ;
36030
 
  return 0;
36031
 
}
36032
 
_ACEOF
36033
 
rm -f conftest.$ac_objext
36034
 
if { (ac_try="$ac_compile"
36035
 
case "(($ac_try" in
36036
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36037
 
  *) ac_try_echo=$ac_try;;
36038
 
esac
36039
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36040
 
$as_echo "$ac_try_echo") >&5
36041
 
  (eval "$ac_compile") 2>conftest.er1
36042
 
  ac_status=$?
36043
 
  grep -v '^ *+' conftest.er1 >conftest.err
36044
 
  rm -f conftest.er1
36045
 
  cat conftest.err >&5
36046
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047
 
  (exit $ac_status); } && {
36048
 
         test -z "$ac_c_werror_flag" ||
36049
 
         test ! -s conftest.err
36050
 
       } && test -s conftest.$ac_objext; then
36051
 
  ac_hi=-1 ac_mid=-1
36052
 
  while :; do
36053
 
    cat >conftest.$ac_ext <<_ACEOF
36054
 
/* confdefs.h.  */
36055
 
_ACEOF
36056
 
cat confdefs.h >>conftest.$ac_ext
36057
 
cat >>conftest.$ac_ext <<_ACEOF
36058
 
/* end confdefs.h.  */
36059
 
$ac_includes_default
36060
 
int
36061
 
main ()
36062
 
{
36063
 
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
36064
 
test_array [0] = 0
36065
 
 
36066
 
  ;
36067
 
  return 0;
36068
 
}
36069
 
_ACEOF
36070
 
rm -f conftest.$ac_objext
36071
 
if { (ac_try="$ac_compile"
36072
 
case "(($ac_try" in
36073
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36074
 
  *) ac_try_echo=$ac_try;;
36075
 
esac
36076
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36077
 
$as_echo "$ac_try_echo") >&5
36078
 
  (eval "$ac_compile") 2>conftest.er1
36079
 
  ac_status=$?
36080
 
  grep -v '^ *+' conftest.er1 >conftest.err
36081
 
  rm -f conftest.er1
36082
 
  cat conftest.err >&5
36083
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084
 
  (exit $ac_status); } && {
36085
 
         test -z "$ac_c_werror_flag" ||
36086
 
         test ! -s conftest.err
36087
 
       } && test -s conftest.$ac_objext; then
36088
 
  ac_lo=$ac_mid; break
36089
 
else
36090
 
  $as_echo "$as_me: failed program was:" >&5
36091
 
sed 's/^/| /' conftest.$ac_ext >&5
36092
 
 
36093
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
36094
 
                        if test $ac_mid -le $ac_hi; then
36095
 
                          ac_lo= ac_hi=
36096
 
                          break
36097
 
                        fi
36098
 
                        ac_mid=`expr 2 '*' $ac_mid`
36099
 
fi
36100
 
 
36101
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36102
 
  done
36103
 
else
36104
 
  $as_echo "$as_me: failed program was:" >&5
36105
 
sed 's/^/| /' conftest.$ac_ext >&5
36106
 
 
36107
 
        ac_lo= ac_hi=
36108
 
fi
36109
 
 
36110
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36111
 
fi
36112
 
 
36113
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36114
 
# Binary search between lo and hi bounds.
36115
 
while test "x$ac_lo" != "x$ac_hi"; do
36116
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36117
 
  cat >conftest.$ac_ext <<_ACEOF
36118
 
/* confdefs.h.  */
36119
 
_ACEOF
36120
 
cat confdefs.h >>conftest.$ac_ext
36121
 
cat >>conftest.$ac_ext <<_ACEOF
36122
 
/* end confdefs.h.  */
36123
 
$ac_includes_default
36124
 
int
36125
 
main ()
36126
 
{
36127
 
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
36128
 
test_array [0] = 0
36129
 
 
36130
 
  ;
36131
 
  return 0;
36132
 
}
36133
 
_ACEOF
36134
 
rm -f conftest.$ac_objext
36135
 
if { (ac_try="$ac_compile"
36136
 
case "(($ac_try" in
36137
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36138
 
  *) ac_try_echo=$ac_try;;
36139
 
esac
36140
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36141
 
$as_echo "$ac_try_echo") >&5
36142
 
  (eval "$ac_compile") 2>conftest.er1
36143
 
  ac_status=$?
36144
 
  grep -v '^ *+' conftest.er1 >conftest.err
36145
 
  rm -f conftest.er1
36146
 
  cat conftest.err >&5
36147
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148
 
  (exit $ac_status); } && {
36149
 
         test -z "$ac_c_werror_flag" ||
36150
 
         test ! -s conftest.err
36151
 
       } && test -s conftest.$ac_objext; then
36152
 
  ac_hi=$ac_mid
36153
 
else
36154
 
  $as_echo "$as_me: failed program was:" >&5
36155
 
sed 's/^/| /' conftest.$ac_ext >&5
36156
 
 
36157
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
36158
 
fi
36159
 
 
36160
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36161
 
done
36162
 
case $ac_lo in
36163
 
?*) ac_cv_sizeof_char=$ac_lo;;
36164
 
'') if test "$ac_cv_type_char" = yes; then
36165
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36166
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36167
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36168
 
See \`config.log' for more details." >&5
36169
 
$as_echo "$as_me: error: cannot compute sizeof (char)
36170
 
See \`config.log' for more details." >&2;}
36171
 
   { (exit 77); exit 77; }; }; }
36172
 
   else
36173
 
     ac_cv_sizeof_char=0
36174
 
   fi ;;
36175
 
esac
36176
 
else
36177
 
  cat >conftest.$ac_ext <<_ACEOF
36178
 
/* confdefs.h.  */
36179
 
_ACEOF
36180
 
cat confdefs.h >>conftest.$ac_ext
36181
 
cat >>conftest.$ac_ext <<_ACEOF
36182
 
/* end confdefs.h.  */
36183
 
$ac_includes_default
36184
 
static long int longval () { return (long int) (sizeof (char)); }
36185
 
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
36186
 
#include <stdio.h>
36187
 
#include <stdlib.h>
36188
 
int
36189
 
main ()
36190
 
{
36191
 
 
36192
 
  FILE *f = fopen ("conftest.val", "w");
36193
 
  if (! f)
36194
 
    return 1;
36195
 
  if (((long int) (sizeof (char))) < 0)
36196
 
    {
36197
 
      long int i = longval ();
36198
 
      if (i != ((long int) (sizeof (char))))
36199
 
        return 1;
36200
 
      fprintf (f, "%ld", i);
36201
 
    }
36202
 
  else
36203
 
    {
36204
 
      unsigned long int i = ulongval ();
36205
 
      if (i != ((long int) (sizeof (char))))
36206
 
        return 1;
36207
 
      fprintf (f, "%lu", i);
36208
 
    }
36209
 
  /* Do not output a trailing newline, as this causes \r\n confusion
36210
 
     on some platforms.  */
36211
 
  return ferror (f) || fclose (f) != 0;
36212
 
 
36213
 
  ;
36214
 
  return 0;
36215
 
}
36216
 
_ACEOF
36217
 
rm -f conftest$ac_exeext
36218
 
if { (ac_try="$ac_link"
36219
 
case "(($ac_try" in
36220
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36221
 
  *) ac_try_echo=$ac_try;;
36222
 
esac
36223
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36224
 
$as_echo "$ac_try_echo") >&5
36225
 
  (eval "$ac_link") 2>&5
36226
 
  ac_status=$?
36227
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36229
 
  { (case "(($ac_try" in
36230
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36231
 
  *) ac_try_echo=$ac_try;;
36232
 
esac
36233
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36234
 
$as_echo "$ac_try_echo") >&5
36235
 
  (eval "$ac_try") 2>&5
36236
 
  ac_status=$?
36237
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238
 
  (exit $ac_status); }; }; then
36239
 
  ac_cv_sizeof_char=`cat conftest.val`
36240
 
else
36241
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
36242
 
$as_echo "$as_me: failed program was:" >&5
36243
 
sed 's/^/| /' conftest.$ac_ext >&5
36244
 
 
36245
 
( exit $ac_status )
36246
 
if test "$ac_cv_type_char" = yes; then
36247
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36248
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36249
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
36250
 
See \`config.log' for more details." >&5
36251
 
$as_echo "$as_me: error: cannot compute sizeof (char)
36252
 
See \`config.log' for more details." >&2;}
36253
 
   { (exit 77); exit 77; }; }; }
 
29256
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
 
29257
 
 
29258
else
 
29259
  if test "$ac_cv_type_char" = yes; then
 
29260
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
29261
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
29262
{ as_fn_set_status 77
 
29263
as_fn_error "cannot compute sizeof (char)
 
29264
See \`config.log' for more details." "$LINENO" 5; }; }
36254
29265
   else
36255
29266
     ac_cv_sizeof_char=0
36256
29267
   fi
36257
29268
fi
36258
 
rm -rf conftest.dSYM
36259
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36260
 
fi
36261
 
rm -f conftest.val
36262
 
fi
36263
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
 
29269
 
 
29270
fi
 
29271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
36264
29272
$as_echo "$ac_cv_sizeof_char" >&6; }
36265
29273
 
36266
29274
 
36274
29282
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36275
29283
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36276
29284
# This bug is HP SR number 8606223364.
36277
 
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
 
29285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
36278
29286
$as_echo_n "checking size of int... " >&6; }
36279
 
if test "${ac_cv_sizeof_int+set}" = set; then
 
29287
if test "${ac_cv_sizeof_int+set}" = set; then :
36280
29288
  $as_echo_n "(cached) " >&6
36281
29289
else
36282
 
  if test "$cross_compiling" = yes; then
36283
 
  # Depending upon the size, compute the lo and hi bounds.
36284
 
cat >conftest.$ac_ext <<_ACEOF
36285
 
/* confdefs.h.  */
36286
 
_ACEOF
36287
 
cat confdefs.h >>conftest.$ac_ext
36288
 
cat >>conftest.$ac_ext <<_ACEOF
36289
 
/* end confdefs.h.  */
36290
 
$ac_includes_default
36291
 
int
36292
 
main ()
36293
 
{
36294
 
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
36295
 
test_array [0] = 0
36296
 
 
36297
 
  ;
36298
 
  return 0;
36299
 
}
36300
 
_ACEOF
36301
 
rm -f conftest.$ac_objext
36302
 
if { (ac_try="$ac_compile"
36303
 
case "(($ac_try" in
36304
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36305
 
  *) ac_try_echo=$ac_try;;
36306
 
esac
36307
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36308
 
$as_echo "$ac_try_echo") >&5
36309
 
  (eval "$ac_compile") 2>conftest.er1
36310
 
  ac_status=$?
36311
 
  grep -v '^ *+' conftest.er1 >conftest.err
36312
 
  rm -f conftest.er1
36313
 
  cat conftest.err >&5
36314
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315
 
  (exit $ac_status); } && {
36316
 
         test -z "$ac_c_werror_flag" ||
36317
 
         test ! -s conftest.err
36318
 
       } && test -s conftest.$ac_objext; then
36319
 
  ac_lo=0 ac_mid=0
36320
 
  while :; do
36321
 
    cat >conftest.$ac_ext <<_ACEOF
36322
 
/* confdefs.h.  */
36323
 
_ACEOF
36324
 
cat confdefs.h >>conftest.$ac_ext
36325
 
cat >>conftest.$ac_ext <<_ACEOF
36326
 
/* end confdefs.h.  */
36327
 
$ac_includes_default
36328
 
int
36329
 
main ()
36330
 
{
36331
 
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
36332
 
test_array [0] = 0
36333
 
 
36334
 
  ;
36335
 
  return 0;
36336
 
}
36337
 
_ACEOF
36338
 
rm -f conftest.$ac_objext
36339
 
if { (ac_try="$ac_compile"
36340
 
case "(($ac_try" in
36341
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36342
 
  *) ac_try_echo=$ac_try;;
36343
 
esac
36344
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36345
 
$as_echo "$ac_try_echo") >&5
36346
 
  (eval "$ac_compile") 2>conftest.er1
36347
 
  ac_status=$?
36348
 
  grep -v '^ *+' conftest.er1 >conftest.err
36349
 
  rm -f conftest.er1
36350
 
  cat conftest.err >&5
36351
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352
 
  (exit $ac_status); } && {
36353
 
         test -z "$ac_c_werror_flag" ||
36354
 
         test ! -s conftest.err
36355
 
       } && test -s conftest.$ac_objext; then
36356
 
  ac_hi=$ac_mid; break
36357
 
else
36358
 
  $as_echo "$as_me: failed program was:" >&5
36359
 
sed 's/^/| /' conftest.$ac_ext >&5
36360
 
 
36361
 
        ac_lo=`expr $ac_mid + 1`
36362
 
                        if test $ac_lo -le $ac_mid; then
36363
 
                          ac_lo= ac_hi=
36364
 
                          break
36365
 
                        fi
36366
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
36367
 
fi
36368
 
 
36369
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36370
 
  done
36371
 
else
36372
 
  $as_echo "$as_me: failed program was:" >&5
36373
 
sed 's/^/| /' conftest.$ac_ext >&5
36374
 
 
36375
 
        cat >conftest.$ac_ext <<_ACEOF
36376
 
/* confdefs.h.  */
36377
 
_ACEOF
36378
 
cat confdefs.h >>conftest.$ac_ext
36379
 
cat >>conftest.$ac_ext <<_ACEOF
36380
 
/* end confdefs.h.  */
36381
 
$ac_includes_default
36382
 
int
36383
 
main ()
36384
 
{
36385
 
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
36386
 
test_array [0] = 0
36387
 
 
36388
 
  ;
36389
 
  return 0;
36390
 
}
36391
 
_ACEOF
36392
 
rm -f conftest.$ac_objext
36393
 
if { (ac_try="$ac_compile"
36394
 
case "(($ac_try" in
36395
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36396
 
  *) ac_try_echo=$ac_try;;
36397
 
esac
36398
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36399
 
$as_echo "$ac_try_echo") >&5
36400
 
  (eval "$ac_compile") 2>conftest.er1
36401
 
  ac_status=$?
36402
 
  grep -v '^ *+' conftest.er1 >conftest.err
36403
 
  rm -f conftest.er1
36404
 
  cat conftest.err >&5
36405
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406
 
  (exit $ac_status); } && {
36407
 
         test -z "$ac_c_werror_flag" ||
36408
 
         test ! -s conftest.err
36409
 
       } && test -s conftest.$ac_objext; then
36410
 
  ac_hi=-1 ac_mid=-1
36411
 
  while :; do
36412
 
    cat >conftest.$ac_ext <<_ACEOF
36413
 
/* confdefs.h.  */
36414
 
_ACEOF
36415
 
cat confdefs.h >>conftest.$ac_ext
36416
 
cat >>conftest.$ac_ext <<_ACEOF
36417
 
/* end confdefs.h.  */
36418
 
$ac_includes_default
36419
 
int
36420
 
main ()
36421
 
{
36422
 
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
36423
 
test_array [0] = 0
36424
 
 
36425
 
  ;
36426
 
  return 0;
36427
 
}
36428
 
_ACEOF
36429
 
rm -f conftest.$ac_objext
36430
 
if { (ac_try="$ac_compile"
36431
 
case "(($ac_try" in
36432
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36433
 
  *) ac_try_echo=$ac_try;;
36434
 
esac
36435
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36436
 
$as_echo "$ac_try_echo") >&5
36437
 
  (eval "$ac_compile") 2>conftest.er1
36438
 
  ac_status=$?
36439
 
  grep -v '^ *+' conftest.er1 >conftest.err
36440
 
  rm -f conftest.er1
36441
 
  cat conftest.err >&5
36442
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36443
 
  (exit $ac_status); } && {
36444
 
         test -z "$ac_c_werror_flag" ||
36445
 
         test ! -s conftest.err
36446
 
       } && test -s conftest.$ac_objext; then
36447
 
  ac_lo=$ac_mid; break
36448
 
else
36449
 
  $as_echo "$as_me: failed program was:" >&5
36450
 
sed 's/^/| /' conftest.$ac_ext >&5
36451
 
 
36452
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
36453
 
                        if test $ac_mid -le $ac_hi; then
36454
 
                          ac_lo= ac_hi=
36455
 
                          break
36456
 
                        fi
36457
 
                        ac_mid=`expr 2 '*' $ac_mid`
36458
 
fi
36459
 
 
36460
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36461
 
  done
36462
 
else
36463
 
  $as_echo "$as_me: failed program was:" >&5
36464
 
sed 's/^/| /' conftest.$ac_ext >&5
36465
 
 
36466
 
        ac_lo= ac_hi=
36467
 
fi
36468
 
 
36469
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36470
 
fi
36471
 
 
36472
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36473
 
# Binary search between lo and hi bounds.
36474
 
while test "x$ac_lo" != "x$ac_hi"; do
36475
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36476
 
  cat >conftest.$ac_ext <<_ACEOF
36477
 
/* confdefs.h.  */
36478
 
_ACEOF
36479
 
cat confdefs.h >>conftest.$ac_ext
36480
 
cat >>conftest.$ac_ext <<_ACEOF
36481
 
/* end confdefs.h.  */
36482
 
$ac_includes_default
36483
 
int
36484
 
main ()
36485
 
{
36486
 
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
36487
 
test_array [0] = 0
36488
 
 
36489
 
  ;
36490
 
  return 0;
36491
 
}
36492
 
_ACEOF
36493
 
rm -f conftest.$ac_objext
36494
 
if { (ac_try="$ac_compile"
36495
 
case "(($ac_try" in
36496
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36497
 
  *) ac_try_echo=$ac_try;;
36498
 
esac
36499
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36500
 
$as_echo "$ac_try_echo") >&5
36501
 
  (eval "$ac_compile") 2>conftest.er1
36502
 
  ac_status=$?
36503
 
  grep -v '^ *+' conftest.er1 >conftest.err
36504
 
  rm -f conftest.er1
36505
 
  cat conftest.err >&5
36506
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507
 
  (exit $ac_status); } && {
36508
 
         test -z "$ac_c_werror_flag" ||
36509
 
         test ! -s conftest.err
36510
 
       } && test -s conftest.$ac_objext; then
36511
 
  ac_hi=$ac_mid
36512
 
else
36513
 
  $as_echo "$as_me: failed program was:" >&5
36514
 
sed 's/^/| /' conftest.$ac_ext >&5
36515
 
 
36516
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
36517
 
fi
36518
 
 
36519
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36520
 
done
36521
 
case $ac_lo in
36522
 
?*) ac_cv_sizeof_int=$ac_lo;;
36523
 
'') if test "$ac_cv_type_int" = yes; then
36524
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36525
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36526
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36527
 
See \`config.log' for more details." >&5
36528
 
$as_echo "$as_me: error: cannot compute sizeof (int)
36529
 
See \`config.log' for more details." >&2;}
36530
 
   { (exit 77); exit 77; }; }; }
36531
 
   else
36532
 
     ac_cv_sizeof_int=0
36533
 
   fi ;;
36534
 
esac
36535
 
else
36536
 
  cat >conftest.$ac_ext <<_ACEOF
36537
 
/* confdefs.h.  */
36538
 
_ACEOF
36539
 
cat confdefs.h >>conftest.$ac_ext
36540
 
cat >>conftest.$ac_ext <<_ACEOF
36541
 
/* end confdefs.h.  */
36542
 
$ac_includes_default
36543
 
static long int longval () { return (long int) (sizeof (int)); }
36544
 
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
36545
 
#include <stdio.h>
36546
 
#include <stdlib.h>
36547
 
int
36548
 
main ()
36549
 
{
36550
 
 
36551
 
  FILE *f = fopen ("conftest.val", "w");
36552
 
  if (! f)
36553
 
    return 1;
36554
 
  if (((long int) (sizeof (int))) < 0)
36555
 
    {
36556
 
      long int i = longval ();
36557
 
      if (i != ((long int) (sizeof (int))))
36558
 
        return 1;
36559
 
      fprintf (f, "%ld", i);
36560
 
    }
36561
 
  else
36562
 
    {
36563
 
      unsigned long int i = ulongval ();
36564
 
      if (i != ((long int) (sizeof (int))))
36565
 
        return 1;
36566
 
      fprintf (f, "%lu", i);
36567
 
    }
36568
 
  /* Do not output a trailing newline, as this causes \r\n confusion
36569
 
     on some platforms.  */
36570
 
  return ferror (f) || fclose (f) != 0;
36571
 
 
36572
 
  ;
36573
 
  return 0;
36574
 
}
36575
 
_ACEOF
36576
 
rm -f conftest$ac_exeext
36577
 
if { (ac_try="$ac_link"
36578
 
case "(($ac_try" in
36579
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36580
 
  *) ac_try_echo=$ac_try;;
36581
 
esac
36582
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36583
 
$as_echo "$ac_try_echo") >&5
36584
 
  (eval "$ac_link") 2>&5
36585
 
  ac_status=$?
36586
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36588
 
  { (case "(($ac_try" in
36589
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36590
 
  *) ac_try_echo=$ac_try;;
36591
 
esac
36592
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36593
 
$as_echo "$ac_try_echo") >&5
36594
 
  (eval "$ac_try") 2>&5
36595
 
  ac_status=$?
36596
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597
 
  (exit $ac_status); }; }; then
36598
 
  ac_cv_sizeof_int=`cat conftest.val`
36599
 
else
36600
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
36601
 
$as_echo "$as_me: failed program was:" >&5
36602
 
sed 's/^/| /' conftest.$ac_ext >&5
36603
 
 
36604
 
( exit $ac_status )
36605
 
if test "$ac_cv_type_int" = yes; then
36606
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36607
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36608
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36609
 
See \`config.log' for more details." >&5
36610
 
$as_echo "$as_me: error: cannot compute sizeof (int)
36611
 
See \`config.log' for more details." >&2;}
36612
 
   { (exit 77); exit 77; }; }; }
 
29290
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
 
29291
 
 
29292
else
 
29293
  if test "$ac_cv_type_int" = yes; then
 
29294
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
29295
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
29296
{ as_fn_set_status 77
 
29297
as_fn_error "cannot compute sizeof (int)
 
29298
See \`config.log' for more details." "$LINENO" 5; }; }
36613
29299
   else
36614
29300
     ac_cv_sizeof_int=0
36615
29301
   fi
36616
29302
fi
36617
 
rm -rf conftest.dSYM
36618
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36619
 
fi
36620
 
rm -f conftest.val
36621
 
fi
36622
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
29303
 
 
29304
fi
 
29305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
36623
29306
$as_echo "$ac_cv_sizeof_int" >&6; }
36624
29307
 
36625
29308
 
36633
29316
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36634
29317
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36635
29318
# This bug is HP SR number 8606223364.
36636
 
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
 
29319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
36637
29320
$as_echo_n "checking size of long... " >&6; }
36638
 
if test "${ac_cv_sizeof_long+set}" = set; then
 
29321
if test "${ac_cv_sizeof_long+set}" = set; then :
36639
29322
  $as_echo_n "(cached) " >&6
36640
29323
else
36641
 
  if test "$cross_compiling" = yes; then
36642
 
  # Depending upon the size, compute the lo and hi bounds.
36643
 
cat >conftest.$ac_ext <<_ACEOF
36644
 
/* confdefs.h.  */
36645
 
_ACEOF
36646
 
cat confdefs.h >>conftest.$ac_ext
36647
 
cat >>conftest.$ac_ext <<_ACEOF
36648
 
/* end confdefs.h.  */
36649
 
$ac_includes_default
36650
 
int
36651
 
main ()
36652
 
{
36653
 
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
36654
 
test_array [0] = 0
36655
 
 
36656
 
  ;
36657
 
  return 0;
36658
 
}
36659
 
_ACEOF
36660
 
rm -f conftest.$ac_objext
36661
 
if { (ac_try="$ac_compile"
36662
 
case "(($ac_try" in
36663
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36664
 
  *) ac_try_echo=$ac_try;;
36665
 
esac
36666
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36667
 
$as_echo "$ac_try_echo") >&5
36668
 
  (eval "$ac_compile") 2>conftest.er1
36669
 
  ac_status=$?
36670
 
  grep -v '^ *+' conftest.er1 >conftest.err
36671
 
  rm -f conftest.er1
36672
 
  cat conftest.err >&5
36673
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674
 
  (exit $ac_status); } && {
36675
 
         test -z "$ac_c_werror_flag" ||
36676
 
         test ! -s conftest.err
36677
 
       } && test -s conftest.$ac_objext; then
36678
 
  ac_lo=0 ac_mid=0
36679
 
  while :; do
36680
 
    cat >conftest.$ac_ext <<_ACEOF
36681
 
/* confdefs.h.  */
36682
 
_ACEOF
36683
 
cat confdefs.h >>conftest.$ac_ext
36684
 
cat >>conftest.$ac_ext <<_ACEOF
36685
 
/* end confdefs.h.  */
36686
 
$ac_includes_default
36687
 
int
36688
 
main ()
36689
 
{
36690
 
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
36691
 
test_array [0] = 0
36692
 
 
36693
 
  ;
36694
 
  return 0;
36695
 
}
36696
 
_ACEOF
36697
 
rm -f conftest.$ac_objext
36698
 
if { (ac_try="$ac_compile"
36699
 
case "(($ac_try" in
36700
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36701
 
  *) ac_try_echo=$ac_try;;
36702
 
esac
36703
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36704
 
$as_echo "$ac_try_echo") >&5
36705
 
  (eval "$ac_compile") 2>conftest.er1
36706
 
  ac_status=$?
36707
 
  grep -v '^ *+' conftest.er1 >conftest.err
36708
 
  rm -f conftest.er1
36709
 
  cat conftest.err >&5
36710
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711
 
  (exit $ac_status); } && {
36712
 
         test -z "$ac_c_werror_flag" ||
36713
 
         test ! -s conftest.err
36714
 
       } && test -s conftest.$ac_objext; then
36715
 
  ac_hi=$ac_mid; break
36716
 
else
36717
 
  $as_echo "$as_me: failed program was:" >&5
36718
 
sed 's/^/| /' conftest.$ac_ext >&5
36719
 
 
36720
 
        ac_lo=`expr $ac_mid + 1`
36721
 
                        if test $ac_lo -le $ac_mid; then
36722
 
                          ac_lo= ac_hi=
36723
 
                          break
36724
 
                        fi
36725
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
36726
 
fi
36727
 
 
36728
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36729
 
  done
36730
 
else
36731
 
  $as_echo "$as_me: failed program was:" >&5
36732
 
sed 's/^/| /' conftest.$ac_ext >&5
36733
 
 
36734
 
        cat >conftest.$ac_ext <<_ACEOF
36735
 
/* confdefs.h.  */
36736
 
_ACEOF
36737
 
cat confdefs.h >>conftest.$ac_ext
36738
 
cat >>conftest.$ac_ext <<_ACEOF
36739
 
/* end confdefs.h.  */
36740
 
$ac_includes_default
36741
 
int
36742
 
main ()
36743
 
{
36744
 
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
36745
 
test_array [0] = 0
36746
 
 
36747
 
  ;
36748
 
  return 0;
36749
 
}
36750
 
_ACEOF
36751
 
rm -f conftest.$ac_objext
36752
 
if { (ac_try="$ac_compile"
36753
 
case "(($ac_try" in
36754
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36755
 
  *) ac_try_echo=$ac_try;;
36756
 
esac
36757
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36758
 
$as_echo "$ac_try_echo") >&5
36759
 
  (eval "$ac_compile") 2>conftest.er1
36760
 
  ac_status=$?
36761
 
  grep -v '^ *+' conftest.er1 >conftest.err
36762
 
  rm -f conftest.er1
36763
 
  cat conftest.err >&5
36764
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765
 
  (exit $ac_status); } && {
36766
 
         test -z "$ac_c_werror_flag" ||
36767
 
         test ! -s conftest.err
36768
 
       } && test -s conftest.$ac_objext; then
36769
 
  ac_hi=-1 ac_mid=-1
36770
 
  while :; do
36771
 
    cat >conftest.$ac_ext <<_ACEOF
36772
 
/* confdefs.h.  */
36773
 
_ACEOF
36774
 
cat confdefs.h >>conftest.$ac_ext
36775
 
cat >>conftest.$ac_ext <<_ACEOF
36776
 
/* end confdefs.h.  */
36777
 
$ac_includes_default
36778
 
int
36779
 
main ()
36780
 
{
36781
 
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
36782
 
test_array [0] = 0
36783
 
 
36784
 
  ;
36785
 
  return 0;
36786
 
}
36787
 
_ACEOF
36788
 
rm -f conftest.$ac_objext
36789
 
if { (ac_try="$ac_compile"
36790
 
case "(($ac_try" in
36791
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36792
 
  *) ac_try_echo=$ac_try;;
36793
 
esac
36794
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36795
 
$as_echo "$ac_try_echo") >&5
36796
 
  (eval "$ac_compile") 2>conftest.er1
36797
 
  ac_status=$?
36798
 
  grep -v '^ *+' conftest.er1 >conftest.err
36799
 
  rm -f conftest.er1
36800
 
  cat conftest.err >&5
36801
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802
 
  (exit $ac_status); } && {
36803
 
         test -z "$ac_c_werror_flag" ||
36804
 
         test ! -s conftest.err
36805
 
       } && test -s conftest.$ac_objext; then
36806
 
  ac_lo=$ac_mid; break
36807
 
else
36808
 
  $as_echo "$as_me: failed program was:" >&5
36809
 
sed 's/^/| /' conftest.$ac_ext >&5
36810
 
 
36811
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
36812
 
                        if test $ac_mid -le $ac_hi; then
36813
 
                          ac_lo= ac_hi=
36814
 
                          break
36815
 
                        fi
36816
 
                        ac_mid=`expr 2 '*' $ac_mid`
36817
 
fi
36818
 
 
36819
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36820
 
  done
36821
 
else
36822
 
  $as_echo "$as_me: failed program was:" >&5
36823
 
sed 's/^/| /' conftest.$ac_ext >&5
36824
 
 
36825
 
        ac_lo= ac_hi=
36826
 
fi
36827
 
 
36828
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36829
 
fi
36830
 
 
36831
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36832
 
# Binary search between lo and hi bounds.
36833
 
while test "x$ac_lo" != "x$ac_hi"; do
36834
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36835
 
  cat >conftest.$ac_ext <<_ACEOF
36836
 
/* confdefs.h.  */
36837
 
_ACEOF
36838
 
cat confdefs.h >>conftest.$ac_ext
36839
 
cat >>conftest.$ac_ext <<_ACEOF
36840
 
/* end confdefs.h.  */
36841
 
$ac_includes_default
36842
 
int
36843
 
main ()
36844
 
{
36845
 
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
36846
 
test_array [0] = 0
36847
 
 
36848
 
  ;
36849
 
  return 0;
36850
 
}
36851
 
_ACEOF
36852
 
rm -f conftest.$ac_objext
36853
 
if { (ac_try="$ac_compile"
36854
 
case "(($ac_try" in
36855
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36856
 
  *) ac_try_echo=$ac_try;;
36857
 
esac
36858
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36859
 
$as_echo "$ac_try_echo") >&5
36860
 
  (eval "$ac_compile") 2>conftest.er1
36861
 
  ac_status=$?
36862
 
  grep -v '^ *+' conftest.er1 >conftest.err
36863
 
  rm -f conftest.er1
36864
 
  cat conftest.err >&5
36865
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866
 
  (exit $ac_status); } && {
36867
 
         test -z "$ac_c_werror_flag" ||
36868
 
         test ! -s conftest.err
36869
 
       } && test -s conftest.$ac_objext; then
36870
 
  ac_hi=$ac_mid
36871
 
else
36872
 
  $as_echo "$as_me: failed program was:" >&5
36873
 
sed 's/^/| /' conftest.$ac_ext >&5
36874
 
 
36875
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
36876
 
fi
36877
 
 
36878
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36879
 
done
36880
 
case $ac_lo in
36881
 
?*) ac_cv_sizeof_long=$ac_lo;;
36882
 
'') if test "$ac_cv_type_long" = yes; then
36883
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36884
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36885
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
36886
 
See \`config.log' for more details." >&5
36887
 
$as_echo "$as_me: error: cannot compute sizeof (long)
36888
 
See \`config.log' for more details." >&2;}
36889
 
   { (exit 77); exit 77; }; }; }
36890
 
   else
36891
 
     ac_cv_sizeof_long=0
36892
 
   fi ;;
36893
 
esac
36894
 
else
36895
 
  cat >conftest.$ac_ext <<_ACEOF
36896
 
/* confdefs.h.  */
36897
 
_ACEOF
36898
 
cat confdefs.h >>conftest.$ac_ext
36899
 
cat >>conftest.$ac_ext <<_ACEOF
36900
 
/* end confdefs.h.  */
36901
 
$ac_includes_default
36902
 
static long int longval () { return (long int) (sizeof (long)); }
36903
 
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
36904
 
#include <stdio.h>
36905
 
#include <stdlib.h>
36906
 
int
36907
 
main ()
36908
 
{
36909
 
 
36910
 
  FILE *f = fopen ("conftest.val", "w");
36911
 
  if (! f)
36912
 
    return 1;
36913
 
  if (((long int) (sizeof (long))) < 0)
36914
 
    {
36915
 
      long int i = longval ();
36916
 
      if (i != ((long int) (sizeof (long))))
36917
 
        return 1;
36918
 
      fprintf (f, "%ld", i);
36919
 
    }
36920
 
  else
36921
 
    {
36922
 
      unsigned long int i = ulongval ();
36923
 
      if (i != ((long int) (sizeof (long))))
36924
 
        return 1;
36925
 
      fprintf (f, "%lu", i);
36926
 
    }
36927
 
  /* Do not output a trailing newline, as this causes \r\n confusion
36928
 
     on some platforms.  */
36929
 
  return ferror (f) || fclose (f) != 0;
36930
 
 
36931
 
  ;
36932
 
  return 0;
36933
 
}
36934
 
_ACEOF
36935
 
rm -f conftest$ac_exeext
36936
 
if { (ac_try="$ac_link"
36937
 
case "(($ac_try" in
36938
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36939
 
  *) ac_try_echo=$ac_try;;
36940
 
esac
36941
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36942
 
$as_echo "$ac_try_echo") >&5
36943
 
  (eval "$ac_link") 2>&5
36944
 
  ac_status=$?
36945
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36947
 
  { (case "(($ac_try" in
36948
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36949
 
  *) ac_try_echo=$ac_try;;
36950
 
esac
36951
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36952
 
$as_echo "$ac_try_echo") >&5
36953
 
  (eval "$ac_try") 2>&5
36954
 
  ac_status=$?
36955
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36956
 
  (exit $ac_status); }; }; then
36957
 
  ac_cv_sizeof_long=`cat conftest.val`
36958
 
else
36959
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
36960
 
$as_echo "$as_me: failed program was:" >&5
36961
 
sed 's/^/| /' conftest.$ac_ext >&5
36962
 
 
36963
 
( exit $ac_status )
36964
 
if test "$ac_cv_type_long" = yes; then
36965
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36966
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36967
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
36968
 
See \`config.log' for more details." >&5
36969
 
$as_echo "$as_me: error: cannot compute sizeof (long)
36970
 
See \`config.log' for more details." >&2;}
36971
 
   { (exit 77); exit 77; }; }; }
 
29324
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
29325
 
 
29326
else
 
29327
  if test "$ac_cv_type_long" = yes; then
 
29328
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
29329
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
29330
{ as_fn_set_status 77
 
29331
as_fn_error "cannot compute sizeof (long)
 
29332
See \`config.log' for more details." "$LINENO" 5; }; }
36972
29333
   else
36973
29334
     ac_cv_sizeof_long=0
36974
29335
   fi
36975
29336
fi
36976
 
rm -rf conftest.dSYM
36977
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36978
 
fi
36979
 
rm -f conftest.val
36980
 
fi
36981
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
29337
 
 
29338
fi
 
29339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
36982
29340
$as_echo "$ac_cv_sizeof_long" >&6; }
36983
29341
 
36984
29342
 
36992
29350
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36993
29351
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36994
29352
# This bug is HP SR number 8606223364.
36995
 
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
 
29353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
36996
29354
$as_echo_n "checking size of short... " >&6; }
36997
 
if test "${ac_cv_sizeof_short+set}" = set; then
 
29355
if test "${ac_cv_sizeof_short+set}" = set; then :
36998
29356
  $as_echo_n "(cached) " >&6
36999
29357
else
37000
 
  if test "$cross_compiling" = yes; then
37001
 
  # Depending upon the size, compute the lo and hi bounds.
37002
 
cat >conftest.$ac_ext <<_ACEOF
37003
 
/* confdefs.h.  */
37004
 
_ACEOF
37005
 
cat confdefs.h >>conftest.$ac_ext
37006
 
cat >>conftest.$ac_ext <<_ACEOF
37007
 
/* end confdefs.h.  */
37008
 
$ac_includes_default
37009
 
int
37010
 
main ()
37011
 
{
37012
 
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
37013
 
test_array [0] = 0
37014
 
 
37015
 
  ;
37016
 
  return 0;
37017
 
}
37018
 
_ACEOF
37019
 
rm -f conftest.$ac_objext
37020
 
if { (ac_try="$ac_compile"
37021
 
case "(($ac_try" in
37022
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37023
 
  *) ac_try_echo=$ac_try;;
37024
 
esac
37025
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37026
 
$as_echo "$ac_try_echo") >&5
37027
 
  (eval "$ac_compile") 2>conftest.er1
37028
 
  ac_status=$?
37029
 
  grep -v '^ *+' conftest.er1 >conftest.err
37030
 
  rm -f conftest.er1
37031
 
  cat conftest.err >&5
37032
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033
 
  (exit $ac_status); } && {
37034
 
         test -z "$ac_c_werror_flag" ||
37035
 
         test ! -s conftest.err
37036
 
       } && test -s conftest.$ac_objext; then
37037
 
  ac_lo=0 ac_mid=0
37038
 
  while :; do
37039
 
    cat >conftest.$ac_ext <<_ACEOF
37040
 
/* confdefs.h.  */
37041
 
_ACEOF
37042
 
cat confdefs.h >>conftest.$ac_ext
37043
 
cat >>conftest.$ac_ext <<_ACEOF
37044
 
/* end confdefs.h.  */
37045
 
$ac_includes_default
37046
 
int
37047
 
main ()
37048
 
{
37049
 
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
37050
 
test_array [0] = 0
37051
 
 
37052
 
  ;
37053
 
  return 0;
37054
 
}
37055
 
_ACEOF
37056
 
rm -f conftest.$ac_objext
37057
 
if { (ac_try="$ac_compile"
37058
 
case "(($ac_try" in
37059
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37060
 
  *) ac_try_echo=$ac_try;;
37061
 
esac
37062
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37063
 
$as_echo "$ac_try_echo") >&5
37064
 
  (eval "$ac_compile") 2>conftest.er1
37065
 
  ac_status=$?
37066
 
  grep -v '^ *+' conftest.er1 >conftest.err
37067
 
  rm -f conftest.er1
37068
 
  cat conftest.err >&5
37069
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070
 
  (exit $ac_status); } && {
37071
 
         test -z "$ac_c_werror_flag" ||
37072
 
         test ! -s conftest.err
37073
 
       } && test -s conftest.$ac_objext; then
37074
 
  ac_hi=$ac_mid; break
37075
 
else
37076
 
  $as_echo "$as_me: failed program was:" >&5
37077
 
sed 's/^/| /' conftest.$ac_ext >&5
37078
 
 
37079
 
        ac_lo=`expr $ac_mid + 1`
37080
 
                        if test $ac_lo -le $ac_mid; then
37081
 
                          ac_lo= ac_hi=
37082
 
                          break
37083
 
                        fi
37084
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
37085
 
fi
37086
 
 
37087
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37088
 
  done
37089
 
else
37090
 
  $as_echo "$as_me: failed program was:" >&5
37091
 
sed 's/^/| /' conftest.$ac_ext >&5
37092
 
 
37093
 
        cat >conftest.$ac_ext <<_ACEOF
37094
 
/* confdefs.h.  */
37095
 
_ACEOF
37096
 
cat confdefs.h >>conftest.$ac_ext
37097
 
cat >>conftest.$ac_ext <<_ACEOF
37098
 
/* end confdefs.h.  */
37099
 
$ac_includes_default
37100
 
int
37101
 
main ()
37102
 
{
37103
 
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
37104
 
test_array [0] = 0
37105
 
 
37106
 
  ;
37107
 
  return 0;
37108
 
}
37109
 
_ACEOF
37110
 
rm -f conftest.$ac_objext
37111
 
if { (ac_try="$ac_compile"
37112
 
case "(($ac_try" in
37113
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37114
 
  *) ac_try_echo=$ac_try;;
37115
 
esac
37116
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37117
 
$as_echo "$ac_try_echo") >&5
37118
 
  (eval "$ac_compile") 2>conftest.er1
37119
 
  ac_status=$?
37120
 
  grep -v '^ *+' conftest.er1 >conftest.err
37121
 
  rm -f conftest.er1
37122
 
  cat conftest.err >&5
37123
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124
 
  (exit $ac_status); } && {
37125
 
         test -z "$ac_c_werror_flag" ||
37126
 
         test ! -s conftest.err
37127
 
       } && test -s conftest.$ac_objext; then
37128
 
  ac_hi=-1 ac_mid=-1
37129
 
  while :; do
37130
 
    cat >conftest.$ac_ext <<_ACEOF
37131
 
/* confdefs.h.  */
37132
 
_ACEOF
37133
 
cat confdefs.h >>conftest.$ac_ext
37134
 
cat >>conftest.$ac_ext <<_ACEOF
37135
 
/* end confdefs.h.  */
37136
 
$ac_includes_default
37137
 
int
37138
 
main ()
37139
 
{
37140
 
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
37141
 
test_array [0] = 0
37142
 
 
37143
 
  ;
37144
 
  return 0;
37145
 
}
37146
 
_ACEOF
37147
 
rm -f conftest.$ac_objext
37148
 
if { (ac_try="$ac_compile"
37149
 
case "(($ac_try" in
37150
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37151
 
  *) ac_try_echo=$ac_try;;
37152
 
esac
37153
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37154
 
$as_echo "$ac_try_echo") >&5
37155
 
  (eval "$ac_compile") 2>conftest.er1
37156
 
  ac_status=$?
37157
 
  grep -v '^ *+' conftest.er1 >conftest.err
37158
 
  rm -f conftest.er1
37159
 
  cat conftest.err >&5
37160
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161
 
  (exit $ac_status); } && {
37162
 
         test -z "$ac_c_werror_flag" ||
37163
 
         test ! -s conftest.err
37164
 
       } && test -s conftest.$ac_objext; then
37165
 
  ac_lo=$ac_mid; break
37166
 
else
37167
 
  $as_echo "$as_me: failed program was:" >&5
37168
 
sed 's/^/| /' conftest.$ac_ext >&5
37169
 
 
37170
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
37171
 
                        if test $ac_mid -le $ac_hi; then
37172
 
                          ac_lo= ac_hi=
37173
 
                          break
37174
 
                        fi
37175
 
                        ac_mid=`expr 2 '*' $ac_mid`
37176
 
fi
37177
 
 
37178
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37179
 
  done
37180
 
else
37181
 
  $as_echo "$as_me: failed program was:" >&5
37182
 
sed 's/^/| /' conftest.$ac_ext >&5
37183
 
 
37184
 
        ac_lo= ac_hi=
37185
 
fi
37186
 
 
37187
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37188
 
fi
37189
 
 
37190
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37191
 
# Binary search between lo and hi bounds.
37192
 
while test "x$ac_lo" != "x$ac_hi"; do
37193
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37194
 
  cat >conftest.$ac_ext <<_ACEOF
37195
 
/* confdefs.h.  */
37196
 
_ACEOF
37197
 
cat confdefs.h >>conftest.$ac_ext
37198
 
cat >>conftest.$ac_ext <<_ACEOF
37199
 
/* end confdefs.h.  */
37200
 
$ac_includes_default
37201
 
int
37202
 
main ()
37203
 
{
37204
 
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
37205
 
test_array [0] = 0
37206
 
 
37207
 
  ;
37208
 
  return 0;
37209
 
}
37210
 
_ACEOF
37211
 
rm -f conftest.$ac_objext
37212
 
if { (ac_try="$ac_compile"
37213
 
case "(($ac_try" in
37214
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37215
 
  *) ac_try_echo=$ac_try;;
37216
 
esac
37217
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37218
 
$as_echo "$ac_try_echo") >&5
37219
 
  (eval "$ac_compile") 2>conftest.er1
37220
 
  ac_status=$?
37221
 
  grep -v '^ *+' conftest.er1 >conftest.err
37222
 
  rm -f conftest.er1
37223
 
  cat conftest.err >&5
37224
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225
 
  (exit $ac_status); } && {
37226
 
         test -z "$ac_c_werror_flag" ||
37227
 
         test ! -s conftest.err
37228
 
       } && test -s conftest.$ac_objext; then
37229
 
  ac_hi=$ac_mid
37230
 
else
37231
 
  $as_echo "$as_me: failed program was:" >&5
37232
 
sed 's/^/| /' conftest.$ac_ext >&5
37233
 
 
37234
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
37235
 
fi
37236
 
 
37237
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37238
 
done
37239
 
case $ac_lo in
37240
 
?*) ac_cv_sizeof_short=$ac_lo;;
37241
 
'') if test "$ac_cv_type_short" = yes; then
37242
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37243
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37244
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
37245
 
See \`config.log' for more details." >&5
37246
 
$as_echo "$as_me: error: cannot compute sizeof (short)
37247
 
See \`config.log' for more details." >&2;}
37248
 
   { (exit 77); exit 77; }; }; }
37249
 
   else
37250
 
     ac_cv_sizeof_short=0
37251
 
   fi ;;
37252
 
esac
37253
 
else
37254
 
  cat >conftest.$ac_ext <<_ACEOF
37255
 
/* confdefs.h.  */
37256
 
_ACEOF
37257
 
cat confdefs.h >>conftest.$ac_ext
37258
 
cat >>conftest.$ac_ext <<_ACEOF
37259
 
/* end confdefs.h.  */
37260
 
$ac_includes_default
37261
 
static long int longval () { return (long int) (sizeof (short)); }
37262
 
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
37263
 
#include <stdio.h>
37264
 
#include <stdlib.h>
37265
 
int
37266
 
main ()
37267
 
{
37268
 
 
37269
 
  FILE *f = fopen ("conftest.val", "w");
37270
 
  if (! f)
37271
 
    return 1;
37272
 
  if (((long int) (sizeof (short))) < 0)
37273
 
    {
37274
 
      long int i = longval ();
37275
 
      if (i != ((long int) (sizeof (short))))
37276
 
        return 1;
37277
 
      fprintf (f, "%ld", i);
37278
 
    }
37279
 
  else
37280
 
    {
37281
 
      unsigned long int i = ulongval ();
37282
 
      if (i != ((long int) (sizeof (short))))
37283
 
        return 1;
37284
 
      fprintf (f, "%lu", i);
37285
 
    }
37286
 
  /* Do not output a trailing newline, as this causes \r\n confusion
37287
 
     on some platforms.  */
37288
 
  return ferror (f) || fclose (f) != 0;
37289
 
 
37290
 
  ;
37291
 
  return 0;
37292
 
}
37293
 
_ACEOF
37294
 
rm -f conftest$ac_exeext
37295
 
if { (ac_try="$ac_link"
37296
 
case "(($ac_try" in
37297
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37298
 
  *) ac_try_echo=$ac_try;;
37299
 
esac
37300
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37301
 
$as_echo "$ac_try_echo") >&5
37302
 
  (eval "$ac_link") 2>&5
37303
 
  ac_status=$?
37304
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37306
 
  { (case "(($ac_try" in
37307
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37308
 
  *) ac_try_echo=$ac_try;;
37309
 
esac
37310
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37311
 
$as_echo "$ac_try_echo") >&5
37312
 
  (eval "$ac_try") 2>&5
37313
 
  ac_status=$?
37314
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315
 
  (exit $ac_status); }; }; then
37316
 
  ac_cv_sizeof_short=`cat conftest.val`
37317
 
else
37318
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
37319
 
$as_echo "$as_me: failed program was:" >&5
37320
 
sed 's/^/| /' conftest.$ac_ext >&5
37321
 
 
37322
 
( exit $ac_status )
37323
 
if test "$ac_cv_type_short" = yes; then
37324
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37325
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37326
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
37327
 
See \`config.log' for more details." >&5
37328
 
$as_echo "$as_me: error: cannot compute sizeof (short)
37329
 
See \`config.log' for more details." >&2;}
37330
 
   { (exit 77); exit 77; }; }; }
 
29358
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
 
29359
 
 
29360
else
 
29361
  if test "$ac_cv_type_short" = yes; then
 
29362
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
29363
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
29364
{ as_fn_set_status 77
 
29365
as_fn_error "cannot compute sizeof (short)
 
29366
See \`config.log' for more details." "$LINENO" 5; }; }
37331
29367
   else
37332
29368
     ac_cv_sizeof_short=0
37333
29369
   fi
37334
29370
fi
37335
 
rm -rf conftest.dSYM
37336
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37337
 
fi
37338
 
rm -f conftest.val
37339
 
fi
37340
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
29371
 
 
29372
fi
 
29373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
37341
29374
$as_echo "$ac_cv_sizeof_short" >&6; }
37342
29375
 
37343
29376
 
37351
29384
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37352
29385
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37353
29386
# This bug is HP SR number 8606223364.
37354
 
{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
 
29387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
37355
29388
$as_echo_n "checking size of long long... " >&6; }
37356
 
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
29389
if test "${ac_cv_sizeof_long_long+set}" = set; then :
37357
29390
  $as_echo_n "(cached) " >&6
37358
29391
else
37359
 
  if test "$cross_compiling" = yes; then
37360
 
  # Depending upon the size, compute the lo and hi bounds.
37361
 
cat >conftest.$ac_ext <<_ACEOF
37362
 
/* confdefs.h.  */
37363
 
_ACEOF
37364
 
cat confdefs.h >>conftest.$ac_ext
37365
 
cat >>conftest.$ac_ext <<_ACEOF
37366
 
/* end confdefs.h.  */
37367
 
$ac_includes_default
37368
 
int
37369
 
main ()
37370
 
{
37371
 
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
37372
 
test_array [0] = 0
37373
 
 
37374
 
  ;
37375
 
  return 0;
37376
 
}
37377
 
_ACEOF
37378
 
rm -f conftest.$ac_objext
37379
 
if { (ac_try="$ac_compile"
37380
 
case "(($ac_try" in
37381
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37382
 
  *) ac_try_echo=$ac_try;;
37383
 
esac
37384
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37385
 
$as_echo "$ac_try_echo") >&5
37386
 
  (eval "$ac_compile") 2>conftest.er1
37387
 
  ac_status=$?
37388
 
  grep -v '^ *+' conftest.er1 >conftest.err
37389
 
  rm -f conftest.er1
37390
 
  cat conftest.err >&5
37391
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392
 
  (exit $ac_status); } && {
37393
 
         test -z "$ac_c_werror_flag" ||
37394
 
         test ! -s conftest.err
37395
 
       } && test -s conftest.$ac_objext; then
37396
 
  ac_lo=0 ac_mid=0
37397
 
  while :; do
37398
 
    cat >conftest.$ac_ext <<_ACEOF
37399
 
/* confdefs.h.  */
37400
 
_ACEOF
37401
 
cat confdefs.h >>conftest.$ac_ext
37402
 
cat >>conftest.$ac_ext <<_ACEOF
37403
 
/* end confdefs.h.  */
37404
 
$ac_includes_default
37405
 
int
37406
 
main ()
37407
 
{
37408
 
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
37409
 
test_array [0] = 0
37410
 
 
37411
 
  ;
37412
 
  return 0;
37413
 
}
37414
 
_ACEOF
37415
 
rm -f conftest.$ac_objext
37416
 
if { (ac_try="$ac_compile"
37417
 
case "(($ac_try" in
37418
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37419
 
  *) ac_try_echo=$ac_try;;
37420
 
esac
37421
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37422
 
$as_echo "$ac_try_echo") >&5
37423
 
  (eval "$ac_compile") 2>conftest.er1
37424
 
  ac_status=$?
37425
 
  grep -v '^ *+' conftest.er1 >conftest.err
37426
 
  rm -f conftest.er1
37427
 
  cat conftest.err >&5
37428
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429
 
  (exit $ac_status); } && {
37430
 
         test -z "$ac_c_werror_flag" ||
37431
 
         test ! -s conftest.err
37432
 
       } && test -s conftest.$ac_objext; then
37433
 
  ac_hi=$ac_mid; break
37434
 
else
37435
 
  $as_echo "$as_me: failed program was:" >&5
37436
 
sed 's/^/| /' conftest.$ac_ext >&5
37437
 
 
37438
 
        ac_lo=`expr $ac_mid + 1`
37439
 
                        if test $ac_lo -le $ac_mid; then
37440
 
                          ac_lo= ac_hi=
37441
 
                          break
37442
 
                        fi
37443
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
37444
 
fi
37445
 
 
37446
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37447
 
  done
37448
 
else
37449
 
  $as_echo "$as_me: failed program was:" >&5
37450
 
sed 's/^/| /' conftest.$ac_ext >&5
37451
 
 
37452
 
        cat >conftest.$ac_ext <<_ACEOF
37453
 
/* confdefs.h.  */
37454
 
_ACEOF
37455
 
cat confdefs.h >>conftest.$ac_ext
37456
 
cat >>conftest.$ac_ext <<_ACEOF
37457
 
/* end confdefs.h.  */
37458
 
$ac_includes_default
37459
 
int
37460
 
main ()
37461
 
{
37462
 
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
37463
 
test_array [0] = 0
37464
 
 
37465
 
  ;
37466
 
  return 0;
37467
 
}
37468
 
_ACEOF
37469
 
rm -f conftest.$ac_objext
37470
 
if { (ac_try="$ac_compile"
37471
 
case "(($ac_try" in
37472
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37473
 
  *) ac_try_echo=$ac_try;;
37474
 
esac
37475
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37476
 
$as_echo "$ac_try_echo") >&5
37477
 
  (eval "$ac_compile") 2>conftest.er1
37478
 
  ac_status=$?
37479
 
  grep -v '^ *+' conftest.er1 >conftest.err
37480
 
  rm -f conftest.er1
37481
 
  cat conftest.err >&5
37482
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37483
 
  (exit $ac_status); } && {
37484
 
         test -z "$ac_c_werror_flag" ||
37485
 
         test ! -s conftest.err
37486
 
       } && test -s conftest.$ac_objext; then
37487
 
  ac_hi=-1 ac_mid=-1
37488
 
  while :; do
37489
 
    cat >conftest.$ac_ext <<_ACEOF
37490
 
/* confdefs.h.  */
37491
 
_ACEOF
37492
 
cat confdefs.h >>conftest.$ac_ext
37493
 
cat >>conftest.$ac_ext <<_ACEOF
37494
 
/* end confdefs.h.  */
37495
 
$ac_includes_default
37496
 
int
37497
 
main ()
37498
 
{
37499
 
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
37500
 
test_array [0] = 0
37501
 
 
37502
 
  ;
37503
 
  return 0;
37504
 
}
37505
 
_ACEOF
37506
 
rm -f conftest.$ac_objext
37507
 
if { (ac_try="$ac_compile"
37508
 
case "(($ac_try" in
37509
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37510
 
  *) ac_try_echo=$ac_try;;
37511
 
esac
37512
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37513
 
$as_echo "$ac_try_echo") >&5
37514
 
  (eval "$ac_compile") 2>conftest.er1
37515
 
  ac_status=$?
37516
 
  grep -v '^ *+' conftest.er1 >conftest.err
37517
 
  rm -f conftest.er1
37518
 
  cat conftest.err >&5
37519
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37520
 
  (exit $ac_status); } && {
37521
 
         test -z "$ac_c_werror_flag" ||
37522
 
         test ! -s conftest.err
37523
 
       } && test -s conftest.$ac_objext; then
37524
 
  ac_lo=$ac_mid; break
37525
 
else
37526
 
  $as_echo "$as_me: failed program was:" >&5
37527
 
sed 's/^/| /' conftest.$ac_ext >&5
37528
 
 
37529
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
37530
 
                        if test $ac_mid -le $ac_hi; then
37531
 
                          ac_lo= ac_hi=
37532
 
                          break
37533
 
                        fi
37534
 
                        ac_mid=`expr 2 '*' $ac_mid`
37535
 
fi
37536
 
 
37537
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37538
 
  done
37539
 
else
37540
 
  $as_echo "$as_me: failed program was:" >&5
37541
 
sed 's/^/| /' conftest.$ac_ext >&5
37542
 
 
37543
 
        ac_lo= ac_hi=
37544
 
fi
37545
 
 
37546
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37547
 
fi
37548
 
 
37549
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37550
 
# Binary search between lo and hi bounds.
37551
 
while test "x$ac_lo" != "x$ac_hi"; do
37552
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37553
 
  cat >conftest.$ac_ext <<_ACEOF
37554
 
/* confdefs.h.  */
37555
 
_ACEOF
37556
 
cat confdefs.h >>conftest.$ac_ext
37557
 
cat >>conftest.$ac_ext <<_ACEOF
37558
 
/* end confdefs.h.  */
37559
 
$ac_includes_default
37560
 
int
37561
 
main ()
37562
 
{
37563
 
static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
37564
 
test_array [0] = 0
37565
 
 
37566
 
  ;
37567
 
  return 0;
37568
 
}
37569
 
_ACEOF
37570
 
rm -f conftest.$ac_objext
37571
 
if { (ac_try="$ac_compile"
37572
 
case "(($ac_try" in
37573
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37574
 
  *) ac_try_echo=$ac_try;;
37575
 
esac
37576
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37577
 
$as_echo "$ac_try_echo") >&5
37578
 
  (eval "$ac_compile") 2>conftest.er1
37579
 
  ac_status=$?
37580
 
  grep -v '^ *+' conftest.er1 >conftest.err
37581
 
  rm -f conftest.er1
37582
 
  cat conftest.err >&5
37583
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584
 
  (exit $ac_status); } && {
37585
 
         test -z "$ac_c_werror_flag" ||
37586
 
         test ! -s conftest.err
37587
 
       } && test -s conftest.$ac_objext; then
37588
 
  ac_hi=$ac_mid
37589
 
else
37590
 
  $as_echo "$as_me: failed program was:" >&5
37591
 
sed 's/^/| /' conftest.$ac_ext >&5
37592
 
 
37593
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
37594
 
fi
37595
 
 
37596
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37597
 
done
37598
 
case $ac_lo in
37599
 
?*) ac_cv_sizeof_long_long=$ac_lo;;
37600
 
'') if test "$ac_cv_type_long_long" = yes; then
37601
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37602
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37603
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
37604
 
See \`config.log' for more details." >&5
37605
 
$as_echo "$as_me: error: cannot compute sizeof (long long)
37606
 
See \`config.log' for more details." >&2;}
37607
 
   { (exit 77); exit 77; }; }; }
37608
 
   else
37609
 
     ac_cv_sizeof_long_long=0
37610
 
   fi ;;
37611
 
esac
37612
 
else
37613
 
  cat >conftest.$ac_ext <<_ACEOF
37614
 
/* confdefs.h.  */
37615
 
_ACEOF
37616
 
cat confdefs.h >>conftest.$ac_ext
37617
 
cat >>conftest.$ac_ext <<_ACEOF
37618
 
/* end confdefs.h.  */
37619
 
$ac_includes_default
37620
 
static long int longval () { return (long int) (sizeof (long long)); }
37621
 
static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
37622
 
#include <stdio.h>
37623
 
#include <stdlib.h>
37624
 
int
37625
 
main ()
37626
 
{
37627
 
 
37628
 
  FILE *f = fopen ("conftest.val", "w");
37629
 
  if (! f)
37630
 
    return 1;
37631
 
  if (((long int) (sizeof (long long))) < 0)
37632
 
    {
37633
 
      long int i = longval ();
37634
 
      if (i != ((long int) (sizeof (long long))))
37635
 
        return 1;
37636
 
      fprintf (f, "%ld", i);
37637
 
    }
37638
 
  else
37639
 
    {
37640
 
      unsigned long int i = ulongval ();
37641
 
      if (i != ((long int) (sizeof (long long))))
37642
 
        return 1;
37643
 
      fprintf (f, "%lu", i);
37644
 
    }
37645
 
  /* Do not output a trailing newline, as this causes \r\n confusion
37646
 
     on some platforms.  */
37647
 
  return ferror (f) || fclose (f) != 0;
37648
 
 
37649
 
  ;
37650
 
  return 0;
37651
 
}
37652
 
_ACEOF
37653
 
rm -f conftest$ac_exeext
37654
 
if { (ac_try="$ac_link"
37655
 
case "(($ac_try" in
37656
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37657
 
  *) ac_try_echo=$ac_try;;
37658
 
esac
37659
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37660
 
$as_echo "$ac_try_echo") >&5
37661
 
  (eval "$ac_link") 2>&5
37662
 
  ac_status=$?
37663
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37664
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37665
 
  { (case "(($ac_try" in
37666
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37667
 
  *) ac_try_echo=$ac_try;;
37668
 
esac
37669
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37670
 
$as_echo "$ac_try_echo") >&5
37671
 
  (eval "$ac_try") 2>&5
37672
 
  ac_status=$?
37673
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674
 
  (exit $ac_status); }; }; then
37675
 
  ac_cv_sizeof_long_long=`cat conftest.val`
37676
 
else
37677
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
37678
 
$as_echo "$as_me: failed program was:" >&5
37679
 
sed 's/^/| /' conftest.$ac_ext >&5
37680
 
 
37681
 
( exit $ac_status )
37682
 
if test "$ac_cv_type_long_long" = yes; then
37683
 
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
37684
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37685
 
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
37686
 
See \`config.log' for more details." >&5
37687
 
$as_echo "$as_me: error: cannot compute sizeof (long long)
37688
 
See \`config.log' for more details." >&2;}
37689
 
   { (exit 77); exit 77; }; }; }
 
29392
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
 
29393
 
 
29394
else
 
29395
  if test "$ac_cv_type_long_long" = yes; then
 
29396
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
29397
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
29398
{ as_fn_set_status 77
 
29399
as_fn_error "cannot compute sizeof (long long)
 
29400
See \`config.log' for more details." "$LINENO" 5; }; }
37690
29401
   else
37691
29402
     ac_cv_sizeof_long_long=0
37692
29403
   fi
37693
29404
fi
37694
 
rm -rf conftest.dSYM
37695
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37696
 
fi
37697
 
rm -f conftest.val
37698
 
fi
37699
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
29405
 
 
29406
fi
 
29407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
37700
29408
$as_echo "$ac_cv_sizeof_long_long" >&6; }
37701
29409
 
37702
29410
 
37758
29466
else
37759
29467
    # int64_literal may be overriden if your compiler thinks you have
37760
29468
    # a 64-bit value but APR does not agree.
37761
 
    { { $as_echo "$as_me:$LINENO: error: could not detect a 64-bit integer type" >&5
37762
 
$as_echo "$as_me: error: could not detect a 64-bit integer type" >&2;}
37763
 
   { (exit 1); exit 1; }; }
 
29469
    as_fn_error "could not detect a 64-bit integer type" "$LINENO" 5
37764
29470
fi
37765
29471
 
37766
29472
# If present, allow the C99 macro INT64_C to override our conversion.
37767
29473
#
37768
29474
# HP-UX's ANSI C compiler provides this without any includes, so we
37769
29475
# will first look for INT64_C without adding stdint.h
37770
 
{ $as_echo "$as_me:$LINENO: checking for INT64_C" >&5
 
29476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
37771
29477
$as_echo_n "checking for INT64_C... " >&6; }
37772
 
if test "${apr_cv_define_INT64_C+set}" = set; then
 
29478
if test "${apr_cv_define_INT64_C+set}" = set; then :
37773
29479
  $as_echo_n "(cached) " >&6
37774
29480
else
37775
29481
 
37776
 
cat >conftest.$ac_ext <<_ACEOF
37777
 
/* confdefs.h.  */
37778
 
_ACEOF
37779
 
cat confdefs.h >>conftest.$ac_ext
37780
 
cat >>conftest.$ac_ext <<_ACEOF
 
29482
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37781
29483
/* end confdefs.h.  */
37782
29484
#ifdef INT64_C
37783
29485
YES_IS_DEFINED
37784
29486
#endif
37785
29487
_ACEOF
37786
29488
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37787
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
29489
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
37788
29490
  apr_cv_define_INT64_C=yes
37789
29491
else
37790
29492
 
37791
29493
    # Now check for INT64_C in stdint.h
37792
 
    cat >conftest.$ac_ext <<_ACEOF
37793
 
/* confdefs.h.  */
37794
 
_ACEOF
37795
 
cat confdefs.h >>conftest.$ac_ext
37796
 
cat >>conftest.$ac_ext <<_ACEOF
 
29494
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37797
29495
/* end confdefs.h.  */
37798
29496
#include <stdint.h>
37799
29497
#ifdef INT64_C
37801
29499
#endif
37802
29500
_ACEOF
37803
29501
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37804
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
29502
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
37805
29503
  apr_cv_define_INT64_C=yes
37806
29504
else
37807
29505
  apr_cv_define_INT64_C=no
37812
29510
rm -f conftest*
37813
29511
 
37814
29512
fi
37815
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_define_INT64_C" >&5
 
29513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
37816
29514
$as_echo "$apr_cv_define_INT64_C" >&6; }
37817
29515
 
37818
29516
if test "$apr_cv_define_INT64_C" = "yes"; then
37851
29549
    socklen_t_value="int"
37852
29550
fi
37853
29551
 
37854
 
{ $as_echo "$as_me:$LINENO: checking size of pid_t" >&5
 
29552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
37855
29553
$as_echo_n "checking size of pid_t... " >&6; }
37856
 
if test "${ac_cv_sizeof_pid_t+set}" = set; then
 
29554
if test "${ac_cv_sizeof_pid_t+set}" = set; then :
37857
29555
  $as_echo_n "(cached) " >&6
37858
29556
else
37859
 
  if test "$cross_compiling" = yes; then
 
29557
  if test "$cross_compiling" = yes; then :
37860
29558
  ac_cv_sizeof_pid_t=8
37861
29559
else
37862
 
  cat >conftest.$ac_ext <<_ACEOF
37863
 
/* confdefs.h.  */
37864
 
_ACEOF
37865
 
cat confdefs.h >>conftest.$ac_ext
37866
 
cat >>conftest.$ac_ext <<_ACEOF
 
29560
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37867
29561
/* end confdefs.h.  */
37868
29562
#include <stdio.h>
37869
29563
#include <sys/types.h>
37875
29569
  exit(0);
37876
29570
}
37877
29571
_ACEOF
37878
 
rm -f conftest$ac_exeext
37879
 
if { (ac_try="$ac_link"
37880
 
case "(($ac_try" in
37881
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37882
 
  *) ac_try_echo=$ac_try;;
37883
 
esac
37884
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37885
 
$as_echo "$ac_try_echo") >&5
37886
 
  (eval "$ac_link") 2>&5
37887
 
  ac_status=$?
37888
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37890
 
  { (case "(($ac_try" in
37891
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37892
 
  *) ac_try_echo=$ac_try;;
37893
 
esac
37894
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37895
 
$as_echo "$ac_try_echo") >&5
37896
 
  (eval "$ac_try") 2>&5
37897
 
  ac_status=$?
37898
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899
 
  (exit $ac_status); }; }; then
 
29572
if ac_fn_c_try_run "$LINENO"; then :
37900
29573
  ac_cv_sizeof_pid_t=`cat conftestval`
37901
29574
else
37902
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
37903
 
$as_echo "$as_me: failed program was:" >&5
37904
 
sed 's/^/| /' conftest.$ac_ext >&5
37905
 
 
37906
 
( exit $ac_status )
37907
 
ac_cv_sizeof_pid_t=0
37908
 
fi
37909
 
rm -rf conftest.dSYM
37910
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37911
 
fi
37912
 
 
37913
 
 
37914
 
fi
37915
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
 
29575
  ac_cv_sizeof_pid_t=0
 
29576
fi
 
29577
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
29578
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
29579
fi
 
29580
 
 
29581
fi
 
29582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
37916
29583
$as_echo "$ac_cv_sizeof_pid_t" >&6; }
37917
29584
 
37918
29585
cat >>confdefs.h <<_ACEOF
37977
29644
 
37978
29645
 
37979
29646
 
37980
 
{ $as_echo "$as_me:$LINENO: checking whether ssize_t and int are the same" >&5
 
29647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
37981
29648
$as_echo_n "checking whether ssize_t and int are the same... " >&6; }
37982
 
if test "${apr_cv_typematch_ssize_t_int+set}" = set; then
 
29649
if test "${apr_cv_typematch_ssize_t_int+set}" = set; then :
37983
29650
  $as_echo_n "(cached) " >&6
37984
29651
else
37985
29652
 
37986
 
cat >conftest.$ac_ext <<_ACEOF
37987
 
/* confdefs.h.  */
37988
 
_ACEOF
37989
 
cat confdefs.h >>conftest.$ac_ext
37990
 
cat >>conftest.$ac_ext <<_ACEOF
 
29653
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37991
29654
/* end confdefs.h.  */
37992
29655
$ac_includes_default
37993
29656
int
38000
29663
  return 0;
38001
29664
}
38002
29665
_ACEOF
38003
 
rm -f conftest.$ac_objext
38004
 
if { (ac_try="$ac_compile"
38005
 
case "(($ac_try" in
38006
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38007
 
  *) ac_try_echo=$ac_try;;
38008
 
esac
38009
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38010
 
$as_echo "$ac_try_echo") >&5
38011
 
  (eval "$ac_compile") 2>conftest.er1
38012
 
  ac_status=$?
38013
 
  grep -v '^ *+' conftest.er1 >conftest.err
38014
 
  rm -f conftest.er1
38015
 
  cat conftest.err >&5
38016
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017
 
  (exit $ac_status); } && {
38018
 
         test -z "$ac_c_werror_flag" ||
38019
 
         test ! -s conftest.err
38020
 
       } && test -s conftest.$ac_objext; then
 
29666
if ac_fn_c_try_compile "$LINENO"; then :
38021
29667
  apr_cv_typematch_ssize_t_int=yes
38022
29668
ssize_t_fmt="d"
38023
29669
else
38024
 
  $as_echo "$as_me: failed program was:" >&5
38025
 
sed 's/^/| /' conftest.$ac_ext >&5
38026
 
 
38027
 
        apr_cv_typematch_ssize_t_int=no
 
29670
  apr_cv_typematch_ssize_t_int=no
38028
29671
fi
38029
 
 
38030
29672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38031
29673
fi
38032
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_typematch_ssize_t_int" >&5
 
29674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
38033
29675
$as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
38034
29676
 
38035
29677
 
38036
29678
 
38037
 
{ $as_echo "$as_me:$LINENO: checking whether ssize_t and long are the same" >&5
 
29679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
38038
29680
$as_echo_n "checking whether ssize_t and long are the same... " >&6; }
38039
 
if test "${apr_cv_typematch_ssize_t_long+set}" = set; then
 
29681
if test "${apr_cv_typematch_ssize_t_long+set}" = set; then :
38040
29682
  $as_echo_n "(cached) " >&6
38041
29683
else
38042
29684
 
38043
 
cat >conftest.$ac_ext <<_ACEOF
38044
 
/* confdefs.h.  */
38045
 
_ACEOF
38046
 
cat confdefs.h >>conftest.$ac_ext
38047
 
cat >>conftest.$ac_ext <<_ACEOF
 
29685
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38048
29686
/* end confdefs.h.  */
38049
29687
$ac_includes_default
38050
29688
int
38057
29695
  return 0;
38058
29696
}
38059
29697
_ACEOF
38060
 
rm -f conftest.$ac_objext
38061
 
if { (ac_try="$ac_compile"
38062
 
case "(($ac_try" in
38063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38064
 
  *) ac_try_echo=$ac_try;;
38065
 
esac
38066
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38067
 
$as_echo "$ac_try_echo") >&5
38068
 
  (eval "$ac_compile") 2>conftest.er1
38069
 
  ac_status=$?
38070
 
  grep -v '^ *+' conftest.er1 >conftest.err
38071
 
  rm -f conftest.er1
38072
 
  cat conftest.err >&5
38073
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074
 
  (exit $ac_status); } && {
38075
 
         test -z "$ac_c_werror_flag" ||
38076
 
         test ! -s conftest.err
38077
 
       } && test -s conftest.$ac_objext; then
 
29698
if ac_fn_c_try_compile "$LINENO"; then :
38078
29699
  apr_cv_typematch_ssize_t_long=yes
38079
29700
ssize_t_fmt="ld"
38080
29701
else
38081
 
  $as_echo "$as_me: failed program was:" >&5
38082
 
sed 's/^/| /' conftest.$ac_ext >&5
38083
 
 
38084
 
        apr_cv_typematch_ssize_t_long=no
 
29702
  apr_cv_typematch_ssize_t_long=no
38085
29703
fi
38086
 
 
38087
29704
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38088
29705
fi
38089
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_typematch_ssize_t_long" >&5
 
29706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
38090
29707
$as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
38091
29708
 
38092
29709
 
38093
29710
 
38094
 
{ $as_echo "$as_me:$LINENO: checking whether size_t and unsigned int are the same" >&5
 
29711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
38095
29712
$as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
38096
 
if test "${apr_cv_typematch_size_t_unsigned_int+set}" = set; then
 
29713
if test "${apr_cv_typematch_size_t_unsigned_int+set}" = set; then :
38097
29714
  $as_echo_n "(cached) " >&6
38098
29715
else
38099
29716
 
38100
 
cat >conftest.$ac_ext <<_ACEOF
38101
 
/* confdefs.h.  */
38102
 
_ACEOF
38103
 
cat confdefs.h >>conftest.$ac_ext
38104
 
cat >>conftest.$ac_ext <<_ACEOF
 
29717
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38105
29718
/* end confdefs.h.  */
38106
29719
$ac_includes_default
38107
29720
int
38114
29727
  return 0;
38115
29728
}
38116
29729
_ACEOF
38117
 
rm -f conftest.$ac_objext
38118
 
if { (ac_try="$ac_compile"
38119
 
case "(($ac_try" in
38120
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38121
 
  *) ac_try_echo=$ac_try;;
38122
 
esac
38123
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38124
 
$as_echo "$ac_try_echo") >&5
38125
 
  (eval "$ac_compile") 2>conftest.er1
38126
 
  ac_status=$?
38127
 
  grep -v '^ *+' conftest.er1 >conftest.err
38128
 
  rm -f conftest.er1
38129
 
  cat conftest.err >&5
38130
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131
 
  (exit $ac_status); } && {
38132
 
         test -z "$ac_c_werror_flag" ||
38133
 
         test ! -s conftest.err
38134
 
       } && test -s conftest.$ac_objext; then
 
29730
if ac_fn_c_try_compile "$LINENO"; then :
38135
29731
  apr_cv_typematch_size_t_unsigned_int=yes
38136
29732
size_t_fmt="u"
38137
29733
else
38138
 
  $as_echo "$as_me: failed program was:" >&5
38139
 
sed 's/^/| /' conftest.$ac_ext >&5
38140
 
 
38141
 
        apr_cv_typematch_size_t_unsigned_int=no
 
29734
  apr_cv_typematch_size_t_unsigned_int=no
38142
29735
fi
38143
 
 
38144
29736
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38145
29737
fi
38146
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_typematch_size_t_unsigned_int" >&5
 
29738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
38147
29739
$as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
38148
29740
 
38149
29741
 
38150
29742
 
38151
 
{ $as_echo "$as_me:$LINENO: checking whether size_t and unsigned long are the same" >&5
 
29743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
38152
29744
$as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
38153
 
if test "${apr_cv_typematch_size_t_unsigned_long+set}" = set; then
 
29745
if test "${apr_cv_typematch_size_t_unsigned_long+set}" = set; then :
38154
29746
  $as_echo_n "(cached) " >&6
38155
29747
else
38156
29748
 
38157
 
cat >conftest.$ac_ext <<_ACEOF
38158
 
/* confdefs.h.  */
38159
 
_ACEOF
38160
 
cat confdefs.h >>conftest.$ac_ext
38161
 
cat >>conftest.$ac_ext <<_ACEOF
 
29749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38162
29750
/* end confdefs.h.  */
38163
29751
$ac_includes_default
38164
29752
int
38171
29759
  return 0;
38172
29760
}
38173
29761
_ACEOF
38174
 
rm -f conftest.$ac_objext
38175
 
if { (ac_try="$ac_compile"
38176
 
case "(($ac_try" in
38177
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38178
 
  *) ac_try_echo=$ac_try;;
38179
 
esac
38180
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38181
 
$as_echo "$ac_try_echo") >&5
38182
 
  (eval "$ac_compile") 2>conftest.er1
38183
 
  ac_status=$?
38184
 
  grep -v '^ *+' conftest.er1 >conftest.err
38185
 
  rm -f conftest.er1
38186
 
  cat conftest.err >&5
38187
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188
 
  (exit $ac_status); } && {
38189
 
         test -z "$ac_c_werror_flag" ||
38190
 
         test ! -s conftest.err
38191
 
       } && test -s conftest.$ac_objext; then
 
29762
if ac_fn_c_try_compile "$LINENO"; then :
38192
29763
  apr_cv_typematch_size_t_unsigned_long=yes
38193
29764
size_t_fmt="lu"
38194
29765
else
38195
 
  $as_echo "$as_me: failed program was:" >&5
38196
 
sed 's/^/| /' conftest.$ac_ext >&5
38197
 
 
38198
 
        apr_cv_typematch_size_t_unsigned_long=no
 
29766
  apr_cv_typematch_size_t_unsigned_long=no
38199
29767
fi
38200
 
 
38201
29768
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38202
29769
fi
38203
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_typematch_size_t_unsigned_long" >&5
 
29770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
38204
29771
$as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
38205
29772
 
38206
29773
 
38207
 
{ $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
 
29774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
38208
29775
$as_echo_n "checking size of ssize_t... " >&6; }
38209
 
if test "${ac_cv_sizeof_ssize_t+set}" = set; then
 
29776
if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
38210
29777
  $as_echo_n "(cached) " >&6
38211
29778
else
38212
 
  if test "$cross_compiling" = yes; then
 
29779
  if test "$cross_compiling" = yes; then :
38213
29780
  ac_cv_sizeof_ssize_t=8
38214
29781
else
38215
 
  cat >conftest.$ac_ext <<_ACEOF
38216
 
/* confdefs.h.  */
38217
 
_ACEOF
38218
 
cat confdefs.h >>conftest.$ac_ext
38219
 
cat >>conftest.$ac_ext <<_ACEOF
 
29782
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38220
29783
/* end confdefs.h.  */
38221
29784
#include <stdio.h>
38222
29785
#include <sys/types.h>
38228
29791
  exit(0);
38229
29792
}
38230
29793
_ACEOF
38231
 
rm -f conftest$ac_exeext
38232
 
if { (ac_try="$ac_link"
38233
 
case "(($ac_try" in
38234
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235
 
  *) ac_try_echo=$ac_try;;
38236
 
esac
38237
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38238
 
$as_echo "$ac_try_echo") >&5
38239
 
  (eval "$ac_link") 2>&5
38240
 
  ac_status=$?
38241
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38243
 
  { (case "(($ac_try" in
38244
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38245
 
  *) ac_try_echo=$ac_try;;
38246
 
esac
38247
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38248
 
$as_echo "$ac_try_echo") >&5
38249
 
  (eval "$ac_try") 2>&5
38250
 
  ac_status=$?
38251
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252
 
  (exit $ac_status); }; }; then
 
29794
if ac_fn_c_try_run "$LINENO"; then :
38253
29795
  ac_cv_sizeof_ssize_t=`cat conftestval`
38254
29796
else
38255
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
38256
 
$as_echo "$as_me: failed program was:" >&5
38257
 
sed 's/^/| /' conftest.$ac_ext >&5
38258
 
 
38259
 
( exit $ac_status )
38260
 
ac_cv_sizeof_ssize_t=0
38261
 
fi
38262
 
rm -rf conftest.dSYM
38263
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38264
 
fi
38265
 
 
38266
 
 
38267
 
fi
38268
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
 
29797
  ac_cv_sizeof_ssize_t=0
 
29798
fi
 
29799
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
29800
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
29801
fi
 
29802
 
 
29803
fi
 
29804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
38269
29805
$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
38270
29806
 
38271
29807
cat >>confdefs.h <<_ACEOF
38274
29810
 
38275
29811
 
38276
29812
 
38277
 
{ $as_echo "$as_me:$LINENO: checking which format to use for apr_ssize_t" >&5
 
29813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
38278
29814
$as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
38279
29815
if test -n "$ssize_t_fmt"; then
38280
 
    { $as_echo "$as_me:$LINENO: result: %$ssize_t_fmt" >&5
 
29816
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
38281
29817
$as_echo "%$ssize_t_fmt" >&6; }
38282
29818
elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
38283
29819
    ssize_t_fmt="d"
38284
 
    { $as_echo "$as_me:$LINENO: result: %d" >&5
 
29820
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
38285
29821
$as_echo "%d" >&6; }
38286
29822
elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
38287
29823
    ssize_t_fmt="ld"
38288
 
    { $as_echo "$as_me:$LINENO: result: %ld" >&5
 
29824
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
38289
29825
$as_echo "%ld" >&6; }
38290
29826
else
38291
 
    { { $as_echo "$as_me:$LINENO: error: could not determine the proper format for apr_ssize_t" >&5
38292
 
$as_echo "$as_me: error: could not determine the proper format for apr_ssize_t" >&2;}
38293
 
   { (exit 1); exit 1; }; }
 
29827
    as_fn_error "could not determine the proper format for apr_ssize_t" "$LINENO" 5
38294
29828
fi
38295
29829
 
38296
29830
ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
38297
29831
 
38298
 
{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
 
29832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
38299
29833
$as_echo_n "checking size of size_t... " >&6; }
38300
 
if test "${ac_cv_sizeof_size_t+set}" = set; then
 
29834
if test "${ac_cv_sizeof_size_t+set}" = set; then :
38301
29835
  $as_echo_n "(cached) " >&6
38302
29836
else
38303
 
  if test "$cross_compiling" = yes; then
 
29837
  if test "$cross_compiling" = yes; then :
38304
29838
  ac_cv_sizeof_size_t=8
38305
29839
else
38306
 
  cat >conftest.$ac_ext <<_ACEOF
38307
 
/* confdefs.h.  */
38308
 
_ACEOF
38309
 
cat confdefs.h >>conftest.$ac_ext
38310
 
cat >>conftest.$ac_ext <<_ACEOF
 
29840
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38311
29841
/* end confdefs.h.  */
38312
29842
#include <stdio.h>
38313
29843
#include <stddef.h>
38319
29849
  exit(0);
38320
29850
}
38321
29851
_ACEOF
38322
 
rm -f conftest$ac_exeext
38323
 
if { (ac_try="$ac_link"
38324
 
case "(($ac_try" in
38325
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38326
 
  *) ac_try_echo=$ac_try;;
38327
 
esac
38328
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38329
 
$as_echo "$ac_try_echo") >&5
38330
 
  (eval "$ac_link") 2>&5
38331
 
  ac_status=$?
38332
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38334
 
  { (case "(($ac_try" in
38335
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38336
 
  *) ac_try_echo=$ac_try;;
38337
 
esac
38338
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38339
 
$as_echo "$ac_try_echo") >&5
38340
 
  (eval "$ac_try") 2>&5
38341
 
  ac_status=$?
38342
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343
 
  (exit $ac_status); }; }; then
 
29852
if ac_fn_c_try_run "$LINENO"; then :
38344
29853
  ac_cv_sizeof_size_t=`cat conftestval`
38345
29854
else
38346
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
38347
 
$as_echo "$as_me: failed program was:" >&5
38348
 
sed 's/^/| /' conftest.$ac_ext >&5
38349
 
 
38350
 
( exit $ac_status )
38351
 
ac_cv_sizeof_size_t=0
38352
 
fi
38353
 
rm -rf conftest.dSYM
38354
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38355
 
fi
38356
 
 
38357
 
 
38358
 
fi
38359
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
 
29855
  ac_cv_sizeof_size_t=0
 
29856
fi
 
29857
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
29858
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
29859
fi
 
29860
 
 
29861
fi
 
29862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
38360
29863
$as_echo "$ac_cv_sizeof_size_t" >&6; }
38361
29864
 
38362
29865
cat >>confdefs.h <<_ACEOF
38365
29868
 
38366
29869
 
38367
29870
 
38368
 
{ $as_echo "$as_me:$LINENO: checking which format to use for apr_size_t" >&5
 
29871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
38369
29872
$as_echo_n "checking which format to use for apr_size_t... " >&6; }
38370
29873
if test -n "$size_t_fmt"; then
38371
 
    { $as_echo "$as_me:$LINENO: result: %$size_t_fmt" >&5
 
29874
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
38372
29875
$as_echo "%$size_t_fmt" >&6; }
38373
29876
elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
38374
29877
    size_t_fmt="d"
38375
 
    { $as_echo "$as_me:$LINENO: result: %d" >&5
 
29878
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
38376
29879
$as_echo "%d" >&6; }
38377
29880
elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
38378
29881
    size_t_fmt="ld"
38379
 
    { $as_echo "$as_me:$LINENO: result: %ld" >&5
 
29882
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
38380
29883
$as_echo "%ld" >&6; }
38381
29884
else
38382
 
    { { $as_echo "$as_me:$LINENO: error: could not determine the proper format for apr_size_t" >&5
38383
 
$as_echo "$as_me: error: could not determine the proper format for apr_size_t" >&2;}
38384
 
   { (exit 1); exit 1; }; }
 
29885
    as_fn_error "could not determine the proper format for apr_size_t" "$LINENO" 5
38385
29886
fi
38386
29887
 
38387
29888
size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
38388
29889
 
38389
 
{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
 
29890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
38390
29891
$as_echo_n "checking size of off_t... " >&6; }
38391
 
if test "${ac_cv_sizeof_off_t+set}" = set; then
 
29892
if test "${ac_cv_sizeof_off_t+set}" = set; then :
38392
29893
  $as_echo_n "(cached) " >&6
38393
29894
else
38394
 
  if test "$cross_compiling" = yes; then
 
29895
  if test "$cross_compiling" = yes; then :
38395
29896
  ac_cv_sizeof_off_t=8
38396
29897
else
38397
 
  cat >conftest.$ac_ext <<_ACEOF
38398
 
/* confdefs.h.  */
38399
 
_ACEOF
38400
 
cat confdefs.h >>conftest.$ac_ext
38401
 
cat >>conftest.$ac_ext <<_ACEOF
 
29898
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38402
29899
/* end confdefs.h.  */
38403
29900
#include <stdio.h>
38404
29901
#include <sys/types.h>
38410
29907
  exit(0);
38411
29908
}
38412
29909
_ACEOF
38413
 
rm -f conftest$ac_exeext
38414
 
if { (ac_try="$ac_link"
38415
 
case "(($ac_try" in
38416
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38417
 
  *) ac_try_echo=$ac_try;;
38418
 
esac
38419
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38420
 
$as_echo "$ac_try_echo") >&5
38421
 
  (eval "$ac_link") 2>&5
38422
 
  ac_status=$?
38423
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38425
 
  { (case "(($ac_try" in
38426
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38427
 
  *) ac_try_echo=$ac_try;;
38428
 
esac
38429
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38430
 
$as_echo "$ac_try_echo") >&5
38431
 
  (eval "$ac_try") 2>&5
38432
 
  ac_status=$?
38433
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434
 
  (exit $ac_status); }; }; then
 
29910
if ac_fn_c_try_run "$LINENO"; then :
38435
29911
  ac_cv_sizeof_off_t=`cat conftestval`
38436
29912
else
38437
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
38438
 
$as_echo "$as_me: failed program was:" >&5
38439
 
sed 's/^/| /' conftest.$ac_ext >&5
38440
 
 
38441
 
( exit $ac_status )
38442
 
ac_cv_sizeof_off_t=0
38443
 
fi
38444
 
rm -rf conftest.dSYM
38445
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38446
 
fi
38447
 
 
38448
 
 
38449
 
fi
38450
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
 
29913
  ac_cv_sizeof_off_t=0
 
29914
fi
 
29915
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
29916
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
29917
fi
 
29918
 
 
29919
fi
 
29920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
38451
29921
$as_echo "$ac_cv_sizeof_off_t" >&6; }
38452
29922
 
38453
29923
cat >>confdefs.h <<_ACEOF
38459
29929
if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
38460
29930
    # Enable LFS
38461
29931
    aprlfs=1
38462
 
 
38463
 
 
38464
 
 
38465
 
 
38466
 
 
38467
 
for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64 readdir64_r
38468
 
do
38469
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38470
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38471
 
$as_echo_n "checking for $ac_func... " >&6; }
38472
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38473
 
  $as_echo_n "(cached) " >&6
38474
 
else
38475
 
  cat >conftest.$ac_ext <<_ACEOF
38476
 
/* confdefs.h.  */
38477
 
_ACEOF
38478
 
cat confdefs.h >>conftest.$ac_ext
38479
 
cat >>conftest.$ac_ext <<_ACEOF
38480
 
/* end confdefs.h.  */
38481
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38482
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38483
 
#define $ac_func innocuous_$ac_func
38484
 
 
38485
 
/* System header to define __stub macros and hopefully few prototypes,
38486
 
    which can conflict with char $ac_func (); below.
38487
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38488
 
    <limits.h> exists even on freestanding compilers.  */
38489
 
 
38490
 
#ifdef __STDC__
38491
 
# include <limits.h>
38492
 
#else
38493
 
# include <assert.h>
38494
 
#endif
38495
 
 
38496
 
#undef $ac_func
38497
 
 
38498
 
/* Override any GCC internal prototype to avoid an error.
38499
 
   Use char because int might match the return type of a GCC
38500
 
   builtin and then its argument prototype would still apply.  */
38501
 
#ifdef __cplusplus
38502
 
extern "C"
38503
 
#endif
38504
 
char $ac_func ();
38505
 
/* The GNU C library defines this for functions which it implements
38506
 
    to always fail with ENOSYS.  Some functions are actually named
38507
 
    something starting with __ and the normal name is an alias.  */
38508
 
#if defined __stub_$ac_func || defined __stub___$ac_func
38509
 
choke me
38510
 
#endif
38511
 
 
38512
 
int
38513
 
main ()
38514
 
{
38515
 
return $ac_func ();
38516
 
  ;
38517
 
  return 0;
38518
 
}
38519
 
_ACEOF
38520
 
rm -f conftest.$ac_objext conftest$ac_exeext
38521
 
if { (ac_try="$ac_link"
38522
 
case "(($ac_try" in
38523
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38524
 
  *) ac_try_echo=$ac_try;;
38525
 
esac
38526
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38527
 
$as_echo "$ac_try_echo") >&5
38528
 
  (eval "$ac_link") 2>conftest.er1
38529
 
  ac_status=$?
38530
 
  grep -v '^ *+' conftest.er1 >conftest.err
38531
 
  rm -f conftest.er1
38532
 
  cat conftest.err >&5
38533
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38534
 
  (exit $ac_status); } && {
38535
 
         test -z "$ac_c_werror_flag" ||
38536
 
         test ! -s conftest.err
38537
 
       } && test -s conftest$ac_exeext && {
38538
 
         test "$cross_compiling" = yes ||
38539
 
         $as_test_x conftest$ac_exeext
38540
 
       }; then
38541
 
  eval "$as_ac_var=yes"
38542
 
else
38543
 
  $as_echo "$as_me: failed program was:" >&5
38544
 
sed 's/^/| /' conftest.$ac_ext >&5
38545
 
 
38546
 
        eval "$as_ac_var=no"
38547
 
fi
38548
 
 
38549
 
rm -rf conftest.dSYM
38550
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38551
 
      conftest$ac_exeext conftest.$ac_ext
38552
 
fi
38553
 
ac_res=`eval 'as_val=${'$as_ac_var'}
38554
 
                 $as_echo "$as_val"'`
38555
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38556
 
$as_echo "$ac_res" >&6; }
38557
 
as_val=`eval 'as_val=${'$as_ac_var'}
38558
 
                 $as_echo "$as_val"'`
38559
 
   if test "x$as_val" = x""yes; then
 
29932
    for ac_func in mmap64 sendfile64 sendfilev64 mkstemp64 readdir64_r
 
29933
do :
 
29934
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
29935
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
29936
eval as_val=\$$as_ac_var
 
29937
   if test "x$as_val" = x""yes; then :
38560
29938
  cat >>confdefs.h <<_ACEOF
38561
29939
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38562
29940
_ACEOF
38572
29950
    aprlfs=0
38573
29951
fi
38574
29952
 
38575
 
{ $as_echo "$as_me:$LINENO: checking which type to use for apr_off_t" >&5
 
29953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
38576
29954
$as_echo_n "checking which type to use for apr_off_t... " >&6; }
38577
29955
if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
38578
29956
    # LFS is go!
38601
29979
        off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
38602
29980
        off_t_strfn='apr_strtoi64'
38603
29981
    else
38604
 
        { { $as_echo "$as_me:$LINENO: error: could not determine the size of off_t" >&5
38605
 
$as_echo "$as_me: error: could not determine the size of off_t" >&2;}
38606
 
   { (exit 1); exit 1; }; }
 
29982
        as_fn_error "could not determine the size of off_t" "$LINENO" 5
38607
29983
    fi
 
29984
    # Per OS tuning...
 
29985
    case $host in
 
29986
    *apple-darwin10.*)
 
29987
        # off_t is a long long, but long == long long
 
29988
        if test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_long_long"; then
 
29989
            off_t_fmt='#define APR_OFF_T_FMT "lld"'
 
29990
        fi
 
29991
        ;;
 
29992
    esac
38608
29993
else
38609
29994
   # Fallback on int
38610
29995
   off_t_value=apr_int32_t
38611
29996
   off_t_fmt=d
38612
29997
   off_t_strfn='strtoi'
38613
29998
fi
38614
 
{ $as_echo "$as_me:$LINENO: result: $off_t_value" >&5
 
29999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
38615
30000
$as_echo "$off_t_value" >&6; }
38616
30001
 
38617
30002
# Regardless of whether _LARGEFILE64_SOURCE is used, on 32-bit
38629
30014
if test "$ac_cv_sizeof_long" = "4"; then
38630
30015
 
38631
30016
 
38632
 
{ $as_echo "$as_me:$LINENO: checking whether ino_t and unsigned long are the same" >&5
 
30017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ino_t and unsigned long are the same" >&5
38633
30018
$as_echo_n "checking whether ino_t and unsigned long are the same... " >&6; }
38634
 
if test "${apr_cv_typematch_ino_t_unsigned_long+set}" = set; then
 
30019
if test "${apr_cv_typematch_ino_t_unsigned_long+set}" = set; then :
38635
30020
  $as_echo_n "(cached) " >&6
38636
30021
else
38637
30022
 
38638
 
cat >conftest.$ac_ext <<_ACEOF
38639
 
/* confdefs.h.  */
38640
 
_ACEOF
38641
 
cat confdefs.h >>conftest.$ac_ext
38642
 
cat >>conftest.$ac_ext <<_ACEOF
 
30023
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38643
30024
/* end confdefs.h.  */
38644
30025
$ac_includes_default
38645
30026
int
38652
30033
  return 0;
38653
30034
}
38654
30035
_ACEOF
38655
 
rm -f conftest.$ac_objext
38656
 
if { (ac_try="$ac_compile"
38657
 
case "(($ac_try" in
38658
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38659
 
  *) ac_try_echo=$ac_try;;
38660
 
esac
38661
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38662
 
$as_echo "$ac_try_echo") >&5
38663
 
  (eval "$ac_compile") 2>conftest.er1
38664
 
  ac_status=$?
38665
 
  grep -v '^ *+' conftest.er1 >conftest.err
38666
 
  rm -f conftest.er1
38667
 
  cat conftest.err >&5
38668
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669
 
  (exit $ac_status); } && {
38670
 
         test -z "$ac_c_werror_flag" ||
38671
 
         test ! -s conftest.err
38672
 
       } && test -s conftest.$ac_objext; then
 
30036
if ac_fn_c_try_compile "$LINENO"; then :
38673
30037
  apr_cv_typematch_ino_t_unsigned_long=yes
38674
30038
ino_t_value="unsigned long"
38675
30039
else
38676
 
  $as_echo "$as_me: failed program was:" >&5
38677
 
sed 's/^/| /' conftest.$ac_ext >&5
38678
 
 
38679
 
        apr_cv_typematch_ino_t_unsigned_long=no
 
30040
  apr_cv_typematch_ino_t_unsigned_long=no
38680
30041
fi
38681
 
 
38682
30042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38683
30043
fi
38684
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_typematch_ino_t_unsigned_long" >&5
 
30044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ino_t_unsigned_long" >&5
38685
30045
$as_echo "$apr_cv_typematch_ino_t_unsigned_long" >&6; }
38686
30046
 
38687
30047
fi
38688
 
{ $as_echo "$as_me:$LINENO: using $ino_t_value for ino_t" >&5
 
30048
{ $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
38689
30049
$as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
38690
30050
 
38691
30051
# Checks for endianness
38692
 
 
38693
 
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
30052
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
38694
30053
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
38695
 
if test "${ac_cv_c_bigendian+set}" = set; then
 
30054
if test "${ac_cv_c_bigendian+set}" = set; then :
38696
30055
  $as_echo_n "(cached) " >&6
38697
30056
else
38698
30057
  ac_cv_c_bigendian=unknown
38699
30058
    # See if we're dealing with a universal compiler.
38700
 
    cat >conftest.$ac_ext <<_ACEOF
38701
 
/* confdefs.h.  */
38702
 
_ACEOF
38703
 
cat confdefs.h >>conftest.$ac_ext
38704
 
cat >>conftest.$ac_ext <<_ACEOF
 
30059
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38705
30060
/* end confdefs.h.  */
38706
30061
#ifndef __APPLE_CC__
38707
30062
               not a universal capable compiler
38709
30064
             typedef int dummy;
38710
30065
 
38711
30066
_ACEOF
38712
 
rm -f conftest.$ac_objext
38713
 
if { (ac_try="$ac_compile"
38714
 
case "(($ac_try" in
38715
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38716
 
  *) ac_try_echo=$ac_try;;
38717
 
esac
38718
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38719
 
$as_echo "$ac_try_echo") >&5
38720
 
  (eval "$ac_compile") 2>conftest.er1
38721
 
  ac_status=$?
38722
 
  grep -v '^ *+' conftest.er1 >conftest.err
38723
 
  rm -f conftest.er1
38724
 
  cat conftest.err >&5
38725
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726
 
  (exit $ac_status); } && {
38727
 
         test -z "$ac_c_werror_flag" ||
38728
 
         test ! -s conftest.err
38729
 
       } && test -s conftest.$ac_objext; then
 
30067
if ac_fn_c_try_compile "$LINENO"; then :
38730
30068
 
38731
30069
        # Check for potential -arch flags.  It is not universal unless
38732
 
        # there are some -arch flags.  Note that *ppc* also matches
38733
 
        # ppc64.  This check is also rather less than ideal.
38734
 
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
38735
 
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
38736
 
        esac
38737
 
else
38738
 
  $as_echo "$as_me: failed program was:" >&5
38739
 
sed 's/^/| /' conftest.$ac_ext >&5
38740
 
 
38741
 
 
 
30070
        # there are at least two -arch flags with different values.
 
30071
        ac_arch=
 
30072
        ac_prev=
 
30073
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
30074
         if test -n "$ac_prev"; then
 
30075
           case $ac_word in
 
30076
             i?86 | x86_64 | ppc | ppc64)
 
30077
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
30078
                 ac_arch=$ac_word
 
30079
               else
 
30080
                 ac_cv_c_bigendian=universal
 
30081
                 break
 
30082
               fi
 
30083
               ;;
 
30084
           esac
 
30085
           ac_prev=
 
30086
         elif test "x$ac_word" = "x-arch"; then
 
30087
           ac_prev=arch
 
30088
         fi
 
30089
       done
38742
30090
fi
38743
 
 
38744
30091
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38745
30092
    if test $ac_cv_c_bigendian = unknown; then
38746
30093
      # See if sys/param.h defines the BYTE_ORDER macro.
38747
 
      cat >conftest.$ac_ext <<_ACEOF
38748
 
/* confdefs.h.  */
38749
 
_ACEOF
38750
 
cat confdefs.h >>conftest.$ac_ext
38751
 
cat >>conftest.$ac_ext <<_ACEOF
 
30094
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38752
30095
/* end confdefs.h.  */
38753
30096
#include <sys/types.h>
38754
30097
             #include <sys/param.h>
38766
30109
  return 0;
38767
30110
}
38768
30111
_ACEOF
38769
 
rm -f conftest.$ac_objext
38770
 
if { (ac_try="$ac_compile"
38771
 
case "(($ac_try" in
38772
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773
 
  *) ac_try_echo=$ac_try;;
38774
 
esac
38775
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38776
 
$as_echo "$ac_try_echo") >&5
38777
 
  (eval "$ac_compile") 2>conftest.er1
38778
 
  ac_status=$?
38779
 
  grep -v '^ *+' conftest.er1 >conftest.err
38780
 
  rm -f conftest.er1
38781
 
  cat conftest.err >&5
38782
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783
 
  (exit $ac_status); } && {
38784
 
         test -z "$ac_c_werror_flag" ||
38785
 
         test ! -s conftest.err
38786
 
       } && test -s conftest.$ac_objext; then
 
30112
if ac_fn_c_try_compile "$LINENO"; then :
38787
30113
  # It does; now see whether it defined to BIG_ENDIAN or not.
38788
 
         cat >conftest.$ac_ext <<_ACEOF
38789
 
/* confdefs.h.  */
38790
 
_ACEOF
38791
 
cat confdefs.h >>conftest.$ac_ext
38792
 
cat >>conftest.$ac_ext <<_ACEOF
 
30114
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38793
30115
/* end confdefs.h.  */
38794
30116
#include <sys/types.h>
38795
30117
                #include <sys/param.h>
38805
30127
  return 0;
38806
30128
}
38807
30129
_ACEOF
38808
 
rm -f conftest.$ac_objext
38809
 
if { (ac_try="$ac_compile"
38810
 
case "(($ac_try" in
38811
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38812
 
  *) ac_try_echo=$ac_try;;
38813
 
esac
38814
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38815
 
$as_echo "$ac_try_echo") >&5
38816
 
  (eval "$ac_compile") 2>conftest.er1
38817
 
  ac_status=$?
38818
 
  grep -v '^ *+' conftest.er1 >conftest.err
38819
 
  rm -f conftest.er1
38820
 
  cat conftest.err >&5
38821
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822
 
  (exit $ac_status); } && {
38823
 
         test -z "$ac_c_werror_flag" ||
38824
 
         test ! -s conftest.err
38825
 
       } && test -s conftest.$ac_objext; then
 
30130
if ac_fn_c_try_compile "$LINENO"; then :
38826
30131
  ac_cv_c_bigendian=yes
38827
30132
else
38828
 
  $as_echo "$as_me: failed program was:" >&5
38829
 
sed 's/^/| /' conftest.$ac_ext >&5
38830
 
 
38831
 
        ac_cv_c_bigendian=no
 
30133
  ac_cv_c_bigendian=no
38832
30134
fi
38833
 
 
38834
30135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38835
 
else
38836
 
  $as_echo "$as_me: failed program was:" >&5
38837
 
sed 's/^/| /' conftest.$ac_ext >&5
38838
 
 
38839
 
 
38840
30136
fi
38841
 
 
38842
30137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38843
30138
    fi
38844
30139
    if test $ac_cv_c_bigendian = unknown; then
38845
30140
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
38846
 
      cat >conftest.$ac_ext <<_ACEOF
38847
 
/* confdefs.h.  */
38848
 
_ACEOF
38849
 
cat confdefs.h >>conftest.$ac_ext
38850
 
cat >>conftest.$ac_ext <<_ACEOF
 
30141
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38851
30142
/* end confdefs.h.  */
38852
30143
#include <limits.h>
38853
30144
 
38862
30153
  return 0;
38863
30154
}
38864
30155
_ACEOF
38865
 
rm -f conftest.$ac_objext
38866
 
if { (ac_try="$ac_compile"
38867
 
case "(($ac_try" in
38868
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38869
 
  *) ac_try_echo=$ac_try;;
38870
 
esac
38871
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38872
 
$as_echo "$ac_try_echo") >&5
38873
 
  (eval "$ac_compile") 2>conftest.er1
38874
 
  ac_status=$?
38875
 
  grep -v '^ *+' conftest.er1 >conftest.err
38876
 
  rm -f conftest.er1
38877
 
  cat conftest.err >&5
38878
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879
 
  (exit $ac_status); } && {
38880
 
         test -z "$ac_c_werror_flag" ||
38881
 
         test ! -s conftest.err
38882
 
       } && test -s conftest.$ac_objext; then
 
30156
if ac_fn_c_try_compile "$LINENO"; then :
38883
30157
  # It does; now see whether it defined to _BIG_ENDIAN or not.
38884
 
         cat >conftest.$ac_ext <<_ACEOF
38885
 
/* confdefs.h.  */
38886
 
_ACEOF
38887
 
cat confdefs.h >>conftest.$ac_ext
38888
 
cat >>conftest.$ac_ext <<_ACEOF
 
30158
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38889
30159
/* end confdefs.h.  */
38890
30160
#include <limits.h>
38891
30161
 
38900
30170
  return 0;
38901
30171
}
38902
30172
_ACEOF
38903
 
rm -f conftest.$ac_objext
38904
 
if { (ac_try="$ac_compile"
38905
 
case "(($ac_try" in
38906
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38907
 
  *) ac_try_echo=$ac_try;;
38908
 
esac
38909
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38910
 
$as_echo "$ac_try_echo") >&5
38911
 
  (eval "$ac_compile") 2>conftest.er1
38912
 
  ac_status=$?
38913
 
  grep -v '^ *+' conftest.er1 >conftest.err
38914
 
  rm -f conftest.er1
38915
 
  cat conftest.err >&5
38916
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917
 
  (exit $ac_status); } && {
38918
 
         test -z "$ac_c_werror_flag" ||
38919
 
         test ! -s conftest.err
38920
 
       } && test -s conftest.$ac_objext; then
 
30173
if ac_fn_c_try_compile "$LINENO"; then :
38921
30174
  ac_cv_c_bigendian=yes
38922
30175
else
38923
 
  $as_echo "$as_me: failed program was:" >&5
38924
 
sed 's/^/| /' conftest.$ac_ext >&5
38925
 
 
38926
 
        ac_cv_c_bigendian=no
 
30176
  ac_cv_c_bigendian=no
38927
30177
fi
38928
 
 
38929
30178
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38930
 
else
38931
 
  $as_echo "$as_me: failed program was:" >&5
38932
 
sed 's/^/| /' conftest.$ac_ext >&5
38933
 
 
38934
 
 
38935
30179
fi
38936
 
 
38937
30180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38938
30181
    fi
38939
30182
    if test $ac_cv_c_bigendian = unknown; then
38940
30183
      # Compile a test program.
38941
 
      if test "$cross_compiling" = yes; then
 
30184
      if test "$cross_compiling" = yes; then :
38942
30185
  # Try to guess by grepping values from an object file.
38943
 
         cat >conftest.$ac_ext <<_ACEOF
38944
 
/* confdefs.h.  */
38945
 
_ACEOF
38946
 
cat confdefs.h >>conftest.$ac_ext
38947
 
cat >>conftest.$ac_ext <<_ACEOF
 
30186
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38948
30187
/* end confdefs.h.  */
38949
30188
short int ascii_mm[] =
38950
30189
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38970
30209
  return 0;
38971
30210
}
38972
30211
_ACEOF
38973
 
rm -f conftest.$ac_objext
38974
 
if { (ac_try="$ac_compile"
38975
 
case "(($ac_try" in
38976
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38977
 
  *) ac_try_echo=$ac_try;;
38978
 
esac
38979
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38980
 
$as_echo "$ac_try_echo") >&5
38981
 
  (eval "$ac_compile") 2>conftest.er1
38982
 
  ac_status=$?
38983
 
  grep -v '^ *+' conftest.er1 >conftest.err
38984
 
  rm -f conftest.er1
38985
 
  cat conftest.err >&5
38986
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38987
 
  (exit $ac_status); } && {
38988
 
         test -z "$ac_c_werror_flag" ||
38989
 
         test ! -s conftest.err
38990
 
       } && test -s conftest.$ac_objext; then
 
30212
if ac_fn_c_try_compile "$LINENO"; then :
38991
30213
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
38992
30214
              ac_cv_c_bigendian=yes
38993
30215
            fi
38999
30221
                ac_cv_c_bigendian=unknown
39000
30222
              fi
39001
30223
            fi
39002
 
else
39003
 
  $as_echo "$as_me: failed program was:" >&5
39004
 
sed 's/^/| /' conftest.$ac_ext >&5
39005
 
 
39006
 
 
39007
30224
fi
39008
 
 
39009
30225
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39010
30226
else
39011
 
  cat >conftest.$ac_ext <<_ACEOF
39012
 
/* confdefs.h.  */
39013
 
_ACEOF
39014
 
cat confdefs.h >>conftest.$ac_ext
39015
 
cat >>conftest.$ac_ext <<_ACEOF
 
30227
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39016
30228
/* end confdefs.h.  */
39017
30229
$ac_includes_default
39018
30230
int
39032
30244
  return 0;
39033
30245
}
39034
30246
_ACEOF
39035
 
rm -f conftest$ac_exeext
39036
 
if { (ac_try="$ac_link"
39037
 
case "(($ac_try" in
39038
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39039
 
  *) ac_try_echo=$ac_try;;
39040
 
esac
39041
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39042
 
$as_echo "$ac_try_echo") >&5
39043
 
  (eval "$ac_link") 2>&5
39044
 
  ac_status=$?
39045
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39047
 
  { (case "(($ac_try" in
39048
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39049
 
  *) ac_try_echo=$ac_try;;
39050
 
esac
39051
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39052
 
$as_echo "$ac_try_echo") >&5
39053
 
  (eval "$ac_try") 2>&5
39054
 
  ac_status=$?
39055
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056
 
  (exit $ac_status); }; }; then
 
30247
if ac_fn_c_try_run "$LINENO"; then :
39057
30248
  ac_cv_c_bigendian=no
39058
30249
else
39059
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
39060
 
$as_echo "$as_me: failed program was:" >&5
39061
 
sed 's/^/| /' conftest.$ac_ext >&5
39062
 
 
39063
 
( exit $ac_status )
39064
 
ac_cv_c_bigendian=yes
39065
 
fi
39066
 
rm -rf conftest.dSYM
39067
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39068
 
fi
39069
 
 
 
30250
  ac_cv_c_bigendian=yes
 
30251
fi
 
30252
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
30253
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
30254
fi
39070
30255
 
39071
30256
    fi
39072
30257
fi
39073
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
30258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39074
30259
$as_echo "$ac_cv_c_bigendian" >&6; }
39075
30260
 case $ac_cv_c_bigendian in #(
39076
30261
   yes)
39077
 
     cat >>confdefs.h <<\_ACEOF
39078
 
#define WORDS_BIGENDIAN 1
39079
 
_ACEOF
 
30262
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
39080
30263
;; #(
39081
30264
   no)
39082
30265
      ;; #(
39083
30266
   universal)
39084
30267
 
39085
 
cat >>confdefs.h <<\_ACEOF
39086
 
#define AC_APPLE_UNIVERSAL_BUILD 1
39087
 
_ACEOF
 
30268
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39088
30269
 
39089
30270
     ;; #(
39090
30271
   *)
39091
 
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
39092
 
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
39093
 
$as_echo "$as_me: error: unknown endianness
39094
 
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
39095
 
   { (exit 1); exit 1; }; } ;;
 
30272
     as_fn_error "unknown endianness
 
30273
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39096
30274
 esac
39097
30275
 
39098
30276
if test $ac_cv_c_bigendian = yes; then
39101
30279
    bigendian=0
39102
30280
fi
39103
30281
 
39104
 
{ $as_echo "$as_me:$LINENO: checking size of struct iovec" >&5
 
30282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
39105
30283
$as_echo_n "checking size of struct iovec... " >&6; }
39106
 
if test "${ac_cv_sizeof_struct_iovec+set}" = set; then
 
30284
if test "${ac_cv_sizeof_struct_iovec+set}" = set; then :
39107
30285
  $as_echo_n "(cached) " >&6
39108
30286
else
39109
 
  if test "$cross_compiling" = yes; then
 
30287
  if test "$cross_compiling" = yes; then :
39110
30288
  ac_cv_sizeof_struct_iovec=0
39111
30289
else
39112
 
  cat >conftest.$ac_ext <<_ACEOF
39113
 
/* confdefs.h.  */
39114
 
_ACEOF
39115
 
cat confdefs.h >>conftest.$ac_ext
39116
 
cat >>conftest.$ac_ext <<_ACEOF
 
30290
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39117
30291
/* end confdefs.h.  */
39118
30292
#include <stdio.h>
39119
30293
#include <sys/types.h>
39126
30300
  exit(0);
39127
30301
}
39128
30302
_ACEOF
39129
 
rm -f conftest$ac_exeext
39130
 
if { (ac_try="$ac_link"
39131
 
case "(($ac_try" in
39132
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39133
 
  *) ac_try_echo=$ac_try;;
39134
 
esac
39135
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39136
 
$as_echo "$ac_try_echo") >&5
39137
 
  (eval "$ac_link") 2>&5
39138
 
  ac_status=$?
39139
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39141
 
  { (case "(($ac_try" in
39142
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39143
 
  *) ac_try_echo=$ac_try;;
39144
 
esac
39145
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39146
 
$as_echo "$ac_try_echo") >&5
39147
 
  (eval "$ac_try") 2>&5
39148
 
  ac_status=$?
39149
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150
 
  (exit $ac_status); }; }; then
 
30303
if ac_fn_c_try_run "$LINENO"; then :
39151
30304
  ac_cv_sizeof_struct_iovec=`cat conftestval`
39152
30305
else
39153
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
39154
 
$as_echo "$as_me: failed program was:" >&5
39155
 
sed 's/^/| /' conftest.$ac_ext >&5
39156
 
 
39157
 
( exit $ac_status )
39158
 
ac_cv_sizeof_struct_iovec=0
39159
 
fi
39160
 
rm -rf conftest.dSYM
39161
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39162
 
fi
39163
 
 
39164
 
 
39165
 
fi
39166
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_struct_iovec" >&5
 
30306
  ac_cv_sizeof_struct_iovec=0
 
30307
fi
 
30308
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
30309
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
30310
fi
 
30311
 
 
30312
fi
 
30313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
39167
30314
$as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
39168
30315
 
39169
30316
cat >>confdefs.h <<_ACEOF
39201
30348
 
39202
30349
 
39203
30350
 
39204
 
 
39205
30351
for ac_func in strnicmp
39206
 
do
39207
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39208
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39209
 
$as_echo_n "checking for $ac_func... " >&6; }
39210
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39211
 
  $as_echo_n "(cached) " >&6
39212
 
else
39213
 
  cat >conftest.$ac_ext <<_ACEOF
39214
 
/* confdefs.h.  */
39215
 
_ACEOF
39216
 
cat confdefs.h >>conftest.$ac_ext
39217
 
cat >>conftest.$ac_ext <<_ACEOF
39218
 
/* end confdefs.h.  */
39219
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39220
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39221
 
#define $ac_func innocuous_$ac_func
39222
 
 
39223
 
/* System header to define __stub macros and hopefully few prototypes,
39224
 
    which can conflict with char $ac_func (); below.
39225
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39226
 
    <limits.h> exists even on freestanding compilers.  */
39227
 
 
39228
 
#ifdef __STDC__
39229
 
# include <limits.h>
39230
 
#else
39231
 
# include <assert.h>
39232
 
#endif
39233
 
 
39234
 
#undef $ac_func
39235
 
 
39236
 
/* Override any GCC internal prototype to avoid an error.
39237
 
   Use char because int might match the return type of a GCC
39238
 
   builtin and then its argument prototype would still apply.  */
39239
 
#ifdef __cplusplus
39240
 
extern "C"
39241
 
#endif
39242
 
char $ac_func ();
39243
 
/* The GNU C library defines this for functions which it implements
39244
 
    to always fail with ENOSYS.  Some functions are actually named
39245
 
    something starting with __ and the normal name is an alias.  */
39246
 
#if defined __stub_$ac_func || defined __stub___$ac_func
39247
 
choke me
39248
 
#endif
39249
 
 
39250
 
int
39251
 
main ()
39252
 
{
39253
 
return $ac_func ();
39254
 
  ;
39255
 
  return 0;
39256
 
}
39257
 
_ACEOF
39258
 
rm -f conftest.$ac_objext conftest$ac_exeext
39259
 
if { (ac_try="$ac_link"
39260
 
case "(($ac_try" in
39261
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39262
 
  *) ac_try_echo=$ac_try;;
39263
 
esac
39264
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39265
 
$as_echo "$ac_try_echo") >&5
39266
 
  (eval "$ac_link") 2>conftest.er1
39267
 
  ac_status=$?
39268
 
  grep -v '^ *+' conftest.er1 >conftest.err
39269
 
  rm -f conftest.er1
39270
 
  cat conftest.err >&5
39271
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272
 
  (exit $ac_status); } && {
39273
 
         test -z "$ac_c_werror_flag" ||
39274
 
         test ! -s conftest.err
39275
 
       } && test -s conftest$ac_exeext && {
39276
 
         test "$cross_compiling" = yes ||
39277
 
         $as_test_x conftest$ac_exeext
39278
 
       }; then
39279
 
  eval "$as_ac_var=yes"
39280
 
else
39281
 
  $as_echo "$as_me: failed program was:" >&5
39282
 
sed 's/^/| /' conftest.$ac_ext >&5
39283
 
 
39284
 
        eval "$as_ac_var=no"
39285
 
fi
39286
 
 
39287
 
rm -rf conftest.dSYM
39288
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39289
 
      conftest$ac_exeext conftest.$ac_ext
39290
 
fi
39291
 
ac_res=`eval 'as_val=${'$as_ac_var'}
39292
 
                 $as_echo "$as_val"'`
39293
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39294
 
$as_echo "$ac_res" >&6; }
39295
 
as_val=`eval 'as_val=${'$as_ac_var'}
39296
 
                 $as_echo "$as_val"'`
39297
 
   if test "x$as_val" = x""yes; then
 
30352
do :
 
30353
  ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
 
30354
if test "x$ac_cv_func_strnicmp" = x""yes; then :
39298
30355
  cat >>confdefs.h <<_ACEOF
39299
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30356
#define HAVE_STRNICMP 1
39300
30357
_ACEOF
39301
30358
 have_strnicmp="1"
39302
30359
else
39304
30361
fi
39305
30362
done
39306
30363
 
39307
 
 
39308
30364
for ac_func in strncasecmp
39309
 
do
39310
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39311
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39312
 
$as_echo_n "checking for $ac_func... " >&6; }
39313
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39314
 
  $as_echo_n "(cached) " >&6
39315
 
else
39316
 
  cat >conftest.$ac_ext <<_ACEOF
39317
 
/* confdefs.h.  */
39318
 
_ACEOF
39319
 
cat confdefs.h >>conftest.$ac_ext
39320
 
cat >>conftest.$ac_ext <<_ACEOF
39321
 
/* end confdefs.h.  */
39322
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39323
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39324
 
#define $ac_func innocuous_$ac_func
39325
 
 
39326
 
/* System header to define __stub macros and hopefully few prototypes,
39327
 
    which can conflict with char $ac_func (); below.
39328
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39329
 
    <limits.h> exists even on freestanding compilers.  */
39330
 
 
39331
 
#ifdef __STDC__
39332
 
# include <limits.h>
39333
 
#else
39334
 
# include <assert.h>
39335
 
#endif
39336
 
 
39337
 
#undef $ac_func
39338
 
 
39339
 
/* Override any GCC internal prototype to avoid an error.
39340
 
   Use char because int might match the return type of a GCC
39341
 
   builtin and then its argument prototype would still apply.  */
39342
 
#ifdef __cplusplus
39343
 
extern "C"
39344
 
#endif
39345
 
char $ac_func ();
39346
 
/* The GNU C library defines this for functions which it implements
39347
 
    to always fail with ENOSYS.  Some functions are actually named
39348
 
    something starting with __ and the normal name is an alias.  */
39349
 
#if defined __stub_$ac_func || defined __stub___$ac_func
39350
 
choke me
39351
 
#endif
39352
 
 
39353
 
int
39354
 
main ()
39355
 
{
39356
 
return $ac_func ();
39357
 
  ;
39358
 
  return 0;
39359
 
}
39360
 
_ACEOF
39361
 
rm -f conftest.$ac_objext conftest$ac_exeext
39362
 
if { (ac_try="$ac_link"
39363
 
case "(($ac_try" in
39364
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39365
 
  *) ac_try_echo=$ac_try;;
39366
 
esac
39367
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39368
 
$as_echo "$ac_try_echo") >&5
39369
 
  (eval "$ac_link") 2>conftest.er1
39370
 
  ac_status=$?
39371
 
  grep -v '^ *+' conftest.er1 >conftest.err
39372
 
  rm -f conftest.er1
39373
 
  cat conftest.err >&5
39374
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375
 
  (exit $ac_status); } && {
39376
 
         test -z "$ac_c_werror_flag" ||
39377
 
         test ! -s conftest.err
39378
 
       } && test -s conftest$ac_exeext && {
39379
 
         test "$cross_compiling" = yes ||
39380
 
         $as_test_x conftest$ac_exeext
39381
 
       }; then
39382
 
  eval "$as_ac_var=yes"
39383
 
else
39384
 
  $as_echo "$as_me: failed program was:" >&5
39385
 
sed 's/^/| /' conftest.$ac_ext >&5
39386
 
 
39387
 
        eval "$as_ac_var=no"
39388
 
fi
39389
 
 
39390
 
rm -rf conftest.dSYM
39391
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39392
 
      conftest$ac_exeext conftest.$ac_ext
39393
 
fi
39394
 
ac_res=`eval 'as_val=${'$as_ac_var'}
39395
 
                 $as_echo "$as_val"'`
39396
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39397
 
$as_echo "$ac_res" >&6; }
39398
 
as_val=`eval 'as_val=${'$as_ac_var'}
39399
 
                 $as_echo "$as_val"'`
39400
 
   if test "x$as_val" = x""yes; then
 
30365
do :
 
30366
  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
 
30367
if test "x$ac_cv_func_strncasecmp" = x""yes; then :
39401
30368
  cat >>confdefs.h <<_ACEOF
39402
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30369
#define HAVE_STRNCASECMP 1
39403
30370
_ACEOF
39404
30371
 have_strncasecmp="1"
39405
30372
else
39407
30374
fi
39408
30375
done
39409
30376
 
39410
 
 
39411
30377
for ac_func in stricmp
39412
 
do
39413
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39414
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39415
 
$as_echo_n "checking for $ac_func... " >&6; }
39416
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39417
 
  $as_echo_n "(cached) " >&6
39418
 
else
39419
 
  cat >conftest.$ac_ext <<_ACEOF
39420
 
/* confdefs.h.  */
39421
 
_ACEOF
39422
 
cat confdefs.h >>conftest.$ac_ext
39423
 
cat >>conftest.$ac_ext <<_ACEOF
39424
 
/* end confdefs.h.  */
39425
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39426
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39427
 
#define $ac_func innocuous_$ac_func
39428
 
 
39429
 
/* System header to define __stub macros and hopefully few prototypes,
39430
 
    which can conflict with char $ac_func (); below.
39431
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39432
 
    <limits.h> exists even on freestanding compilers.  */
39433
 
 
39434
 
#ifdef __STDC__
39435
 
# include <limits.h>
39436
 
#else
39437
 
# include <assert.h>
39438
 
#endif
39439
 
 
39440
 
#undef $ac_func
39441
 
 
39442
 
/* Override any GCC internal prototype to avoid an error.
39443
 
   Use char because int might match the return type of a GCC
39444
 
   builtin and then its argument prototype would still apply.  */
39445
 
#ifdef __cplusplus
39446
 
extern "C"
39447
 
#endif
39448
 
char $ac_func ();
39449
 
/* The GNU C library defines this for functions which it implements
39450
 
    to always fail with ENOSYS.  Some functions are actually named
39451
 
    something starting with __ and the normal name is an alias.  */
39452
 
#if defined __stub_$ac_func || defined __stub___$ac_func
39453
 
choke me
39454
 
#endif
39455
 
 
39456
 
int
39457
 
main ()
39458
 
{
39459
 
return $ac_func ();
39460
 
  ;
39461
 
  return 0;
39462
 
}
39463
 
_ACEOF
39464
 
rm -f conftest.$ac_objext conftest$ac_exeext
39465
 
if { (ac_try="$ac_link"
39466
 
case "(($ac_try" in
39467
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39468
 
  *) ac_try_echo=$ac_try;;
39469
 
esac
39470
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39471
 
$as_echo "$ac_try_echo") >&5
39472
 
  (eval "$ac_link") 2>conftest.er1
39473
 
  ac_status=$?
39474
 
  grep -v '^ *+' conftest.er1 >conftest.err
39475
 
  rm -f conftest.er1
39476
 
  cat conftest.err >&5
39477
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478
 
  (exit $ac_status); } && {
39479
 
         test -z "$ac_c_werror_flag" ||
39480
 
         test ! -s conftest.err
39481
 
       } && test -s conftest$ac_exeext && {
39482
 
         test "$cross_compiling" = yes ||
39483
 
         $as_test_x conftest$ac_exeext
39484
 
       }; then
39485
 
  eval "$as_ac_var=yes"
39486
 
else
39487
 
  $as_echo "$as_me: failed program was:" >&5
39488
 
sed 's/^/| /' conftest.$ac_ext >&5
39489
 
 
39490
 
        eval "$as_ac_var=no"
39491
 
fi
39492
 
 
39493
 
rm -rf conftest.dSYM
39494
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39495
 
      conftest$ac_exeext conftest.$ac_ext
39496
 
fi
39497
 
ac_res=`eval 'as_val=${'$as_ac_var'}
39498
 
                 $as_echo "$as_val"'`
39499
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39500
 
$as_echo "$ac_res" >&6; }
39501
 
as_val=`eval 'as_val=${'$as_ac_var'}
39502
 
                 $as_echo "$as_val"'`
39503
 
   if test "x$as_val" = x""yes; then
 
30378
do :
 
30379
  ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
 
30380
if test "x$ac_cv_func_stricmp" = x""yes; then :
39504
30381
  cat >>confdefs.h <<_ACEOF
39505
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30382
#define HAVE_STRICMP 1
39506
30383
_ACEOF
39507
30384
 have_stricmp="1"
39508
30385
else
39510
30387
fi
39511
30388
done
39512
30389
 
39513
 
 
39514
30390
for ac_func in strcasecmp
39515
 
do
39516
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39517
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39518
 
$as_echo_n "checking for $ac_func... " >&6; }
39519
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39520
 
  $as_echo_n "(cached) " >&6
39521
 
else
39522
 
  cat >conftest.$ac_ext <<_ACEOF
39523
 
/* confdefs.h.  */
39524
 
_ACEOF
39525
 
cat confdefs.h >>conftest.$ac_ext
39526
 
cat >>conftest.$ac_ext <<_ACEOF
39527
 
/* end confdefs.h.  */
39528
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39529
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39530
 
#define $ac_func innocuous_$ac_func
39531
 
 
39532
 
/* System header to define __stub macros and hopefully few prototypes,
39533
 
    which can conflict with char $ac_func (); below.
39534
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39535
 
    <limits.h> exists even on freestanding compilers.  */
39536
 
 
39537
 
#ifdef __STDC__
39538
 
# include <limits.h>
39539
 
#else
39540
 
# include <assert.h>
39541
 
#endif
39542
 
 
39543
 
#undef $ac_func
39544
 
 
39545
 
/* Override any GCC internal prototype to avoid an error.
39546
 
   Use char because int might match the return type of a GCC
39547
 
   builtin and then its argument prototype would still apply.  */
39548
 
#ifdef __cplusplus
39549
 
extern "C"
39550
 
#endif
39551
 
char $ac_func ();
39552
 
/* The GNU C library defines this for functions which it implements
39553
 
    to always fail with ENOSYS.  Some functions are actually named
39554
 
    something starting with __ and the normal name is an alias.  */
39555
 
#if defined __stub_$ac_func || defined __stub___$ac_func
39556
 
choke me
39557
 
#endif
39558
 
 
39559
 
int
39560
 
main ()
39561
 
{
39562
 
return $ac_func ();
39563
 
  ;
39564
 
  return 0;
39565
 
}
39566
 
_ACEOF
39567
 
rm -f conftest.$ac_objext conftest$ac_exeext
39568
 
if { (ac_try="$ac_link"
39569
 
case "(($ac_try" in
39570
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39571
 
  *) ac_try_echo=$ac_try;;
39572
 
esac
39573
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39574
 
$as_echo "$ac_try_echo") >&5
39575
 
  (eval "$ac_link") 2>conftest.er1
39576
 
  ac_status=$?
39577
 
  grep -v '^ *+' conftest.er1 >conftest.err
39578
 
  rm -f conftest.er1
39579
 
  cat conftest.err >&5
39580
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39581
 
  (exit $ac_status); } && {
39582
 
         test -z "$ac_c_werror_flag" ||
39583
 
         test ! -s conftest.err
39584
 
       } && test -s conftest$ac_exeext && {
39585
 
         test "$cross_compiling" = yes ||
39586
 
         $as_test_x conftest$ac_exeext
39587
 
       }; then
39588
 
  eval "$as_ac_var=yes"
39589
 
else
39590
 
  $as_echo "$as_me: failed program was:" >&5
39591
 
sed 's/^/| /' conftest.$ac_ext >&5
39592
 
 
39593
 
        eval "$as_ac_var=no"
39594
 
fi
39595
 
 
39596
 
rm -rf conftest.dSYM
39597
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39598
 
      conftest$ac_exeext conftest.$ac_ext
39599
 
fi
39600
 
ac_res=`eval 'as_val=${'$as_ac_var'}
39601
 
                 $as_echo "$as_val"'`
39602
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39603
 
$as_echo "$ac_res" >&6; }
39604
 
as_val=`eval 'as_val=${'$as_ac_var'}
39605
 
                 $as_echo "$as_val"'`
39606
 
   if test "x$as_val" = x""yes; then
 
30391
do :
 
30392
  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
 
30393
if test "x$ac_cv_func_strcasecmp" = x""yes; then :
39607
30394
  cat >>confdefs.h <<_ACEOF
39608
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30395
#define HAVE_STRCASECMP 1
39609
30396
_ACEOF
39610
30397
 have_strcasecmp="1"
39611
30398
else
39613
30400
fi
39614
30401
done
39615
30402
 
39616
 
 
39617
30403
for ac_func in strdup
39618
 
do
39619
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39620
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39621
 
$as_echo_n "checking for $ac_func... " >&6; }
39622
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39623
 
  $as_echo_n "(cached) " >&6
39624
 
else
39625
 
  cat >conftest.$ac_ext <<_ACEOF
39626
 
/* confdefs.h.  */
39627
 
_ACEOF
39628
 
cat confdefs.h >>conftest.$ac_ext
39629
 
cat >>conftest.$ac_ext <<_ACEOF
39630
 
/* end confdefs.h.  */
39631
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39632
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39633
 
#define $ac_func innocuous_$ac_func
39634
 
 
39635
 
/* System header to define __stub macros and hopefully few prototypes,
39636
 
    which can conflict with char $ac_func (); below.
39637
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39638
 
    <limits.h> exists even on freestanding compilers.  */
39639
 
 
39640
 
#ifdef __STDC__
39641
 
# include <limits.h>
39642
 
#else
39643
 
# include <assert.h>
39644
 
#endif
39645
 
 
39646
 
#undef $ac_func
39647
 
 
39648
 
/* Override any GCC internal prototype to avoid an error.
39649
 
   Use char because int might match the return type of a GCC
39650
 
   builtin and then its argument prototype would still apply.  */
39651
 
#ifdef __cplusplus
39652
 
extern "C"
39653
 
#endif
39654
 
char $ac_func ();
39655
 
/* The GNU C library defines this for functions which it implements
39656
 
    to always fail with ENOSYS.  Some functions are actually named
39657
 
    something starting with __ and the normal name is an alias.  */
39658
 
#if defined __stub_$ac_func || defined __stub___$ac_func
39659
 
choke me
39660
 
#endif
39661
 
 
39662
 
int
39663
 
main ()
39664
 
{
39665
 
return $ac_func ();
39666
 
  ;
39667
 
  return 0;
39668
 
}
39669
 
_ACEOF
39670
 
rm -f conftest.$ac_objext conftest$ac_exeext
39671
 
if { (ac_try="$ac_link"
39672
 
case "(($ac_try" in
39673
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39674
 
  *) ac_try_echo=$ac_try;;
39675
 
esac
39676
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39677
 
$as_echo "$ac_try_echo") >&5
39678
 
  (eval "$ac_link") 2>conftest.er1
39679
 
  ac_status=$?
39680
 
  grep -v '^ *+' conftest.er1 >conftest.err
39681
 
  rm -f conftest.er1
39682
 
  cat conftest.err >&5
39683
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39684
 
  (exit $ac_status); } && {
39685
 
         test -z "$ac_c_werror_flag" ||
39686
 
         test ! -s conftest.err
39687
 
       } && test -s conftest$ac_exeext && {
39688
 
         test "$cross_compiling" = yes ||
39689
 
         $as_test_x conftest$ac_exeext
39690
 
       }; then
39691
 
  eval "$as_ac_var=yes"
39692
 
else
39693
 
  $as_echo "$as_me: failed program was:" >&5
39694
 
sed 's/^/| /' conftest.$ac_ext >&5
39695
 
 
39696
 
        eval "$as_ac_var=no"
39697
 
fi
39698
 
 
39699
 
rm -rf conftest.dSYM
39700
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39701
 
      conftest$ac_exeext conftest.$ac_ext
39702
 
fi
39703
 
ac_res=`eval 'as_val=${'$as_ac_var'}
39704
 
                 $as_echo "$as_val"'`
39705
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39706
 
$as_echo "$ac_res" >&6; }
39707
 
as_val=`eval 'as_val=${'$as_ac_var'}
39708
 
                 $as_echo "$as_val"'`
39709
 
   if test "x$as_val" = x""yes; then
 
30404
do :
 
30405
  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
 
30406
if test "x$ac_cv_func_strdup" = x""yes; then :
39710
30407
  cat >>confdefs.h <<_ACEOF
39711
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30408
#define HAVE_STRDUP 1
39712
30409
_ACEOF
39713
30410
 have_strdup="1"
39714
30411
else
39716
30413
fi
39717
30414
done
39718
30415
 
39719
 
 
39720
30416
for ac_func in strstr
39721
 
do
39722
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39723
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39724
 
$as_echo_n "checking for $ac_func... " >&6; }
39725
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39726
 
  $as_echo_n "(cached) " >&6
39727
 
else
39728
 
  cat >conftest.$ac_ext <<_ACEOF
39729
 
/* confdefs.h.  */
39730
 
_ACEOF
39731
 
cat confdefs.h >>conftest.$ac_ext
39732
 
cat >>conftest.$ac_ext <<_ACEOF
39733
 
/* end confdefs.h.  */
39734
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39735
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39736
 
#define $ac_func innocuous_$ac_func
39737
 
 
39738
 
/* System header to define __stub macros and hopefully few prototypes,
39739
 
    which can conflict with char $ac_func (); below.
39740
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39741
 
    <limits.h> exists even on freestanding compilers.  */
39742
 
 
39743
 
#ifdef __STDC__
39744
 
# include <limits.h>
39745
 
#else
39746
 
# include <assert.h>
39747
 
#endif
39748
 
 
39749
 
#undef $ac_func
39750
 
 
39751
 
/* Override any GCC internal prototype to avoid an error.
39752
 
   Use char because int might match the return type of a GCC
39753
 
   builtin and then its argument prototype would still apply.  */
39754
 
#ifdef __cplusplus
39755
 
extern "C"
39756
 
#endif
39757
 
char $ac_func ();
39758
 
/* The GNU C library defines this for functions which it implements
39759
 
    to always fail with ENOSYS.  Some functions are actually named
39760
 
    something starting with __ and the normal name is an alias.  */
39761
 
#if defined __stub_$ac_func || defined __stub___$ac_func
39762
 
choke me
39763
 
#endif
39764
 
 
39765
 
int
39766
 
main ()
39767
 
{
39768
 
return $ac_func ();
39769
 
  ;
39770
 
  return 0;
39771
 
}
39772
 
_ACEOF
39773
 
rm -f conftest.$ac_objext conftest$ac_exeext
39774
 
if { (ac_try="$ac_link"
39775
 
case "(($ac_try" in
39776
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39777
 
  *) ac_try_echo=$ac_try;;
39778
 
esac
39779
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39780
 
$as_echo "$ac_try_echo") >&5
39781
 
  (eval "$ac_link") 2>conftest.er1
39782
 
  ac_status=$?
39783
 
  grep -v '^ *+' conftest.er1 >conftest.err
39784
 
  rm -f conftest.er1
39785
 
  cat conftest.err >&5
39786
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787
 
  (exit $ac_status); } && {
39788
 
         test -z "$ac_c_werror_flag" ||
39789
 
         test ! -s conftest.err
39790
 
       } && test -s conftest$ac_exeext && {
39791
 
         test "$cross_compiling" = yes ||
39792
 
         $as_test_x conftest$ac_exeext
39793
 
       }; then
39794
 
  eval "$as_ac_var=yes"
39795
 
else
39796
 
  $as_echo "$as_me: failed program was:" >&5
39797
 
sed 's/^/| /' conftest.$ac_ext >&5
39798
 
 
39799
 
        eval "$as_ac_var=no"
39800
 
fi
39801
 
 
39802
 
rm -rf conftest.dSYM
39803
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39804
 
      conftest$ac_exeext conftest.$ac_ext
39805
 
fi
39806
 
ac_res=`eval 'as_val=${'$as_ac_var'}
39807
 
                 $as_echo "$as_val"'`
39808
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39809
 
$as_echo "$ac_res" >&6; }
39810
 
as_val=`eval 'as_val=${'$as_ac_var'}
39811
 
                 $as_echo "$as_val"'`
39812
 
   if test "x$as_val" = x""yes; then
 
30417
do :
 
30418
  ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
 
30419
if test "x$ac_cv_func_strstr" = x""yes; then :
39813
30420
  cat >>confdefs.h <<_ACEOF
39814
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30421
#define HAVE_STRSTR 1
39815
30422
_ACEOF
39816
30423
 have_strstr="1"
39817
30424
else
39819
30426
fi
39820
30427
done
39821
30428
 
39822
 
 
39823
30429
for ac_func in memchr
39824
 
do
39825
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39826
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39827
 
$as_echo_n "checking for $ac_func... " >&6; }
39828
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39829
 
  $as_echo_n "(cached) " >&6
39830
 
else
39831
 
  cat >conftest.$ac_ext <<_ACEOF
39832
 
/* confdefs.h.  */
39833
 
_ACEOF
39834
 
cat confdefs.h >>conftest.$ac_ext
39835
 
cat >>conftest.$ac_ext <<_ACEOF
39836
 
/* end confdefs.h.  */
39837
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39838
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39839
 
#define $ac_func innocuous_$ac_func
39840
 
 
39841
 
/* System header to define __stub macros and hopefully few prototypes,
39842
 
    which can conflict with char $ac_func (); below.
39843
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39844
 
    <limits.h> exists even on freestanding compilers.  */
39845
 
 
39846
 
#ifdef __STDC__
39847
 
# include <limits.h>
39848
 
#else
39849
 
# include <assert.h>
39850
 
#endif
39851
 
 
39852
 
#undef $ac_func
39853
 
 
39854
 
/* Override any GCC internal prototype to avoid an error.
39855
 
   Use char because int might match the return type of a GCC
39856
 
   builtin and then its argument prototype would still apply.  */
39857
 
#ifdef __cplusplus
39858
 
extern "C"
39859
 
#endif
39860
 
char $ac_func ();
39861
 
/* The GNU C library defines this for functions which it implements
39862
 
    to always fail with ENOSYS.  Some functions are actually named
39863
 
    something starting with __ and the normal name is an alias.  */
39864
 
#if defined __stub_$ac_func || defined __stub___$ac_func
39865
 
choke me
39866
 
#endif
39867
 
 
39868
 
int
39869
 
main ()
39870
 
{
39871
 
return $ac_func ();
39872
 
  ;
39873
 
  return 0;
39874
 
}
39875
 
_ACEOF
39876
 
rm -f conftest.$ac_objext conftest$ac_exeext
39877
 
if { (ac_try="$ac_link"
39878
 
case "(($ac_try" in
39879
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39880
 
  *) ac_try_echo=$ac_try;;
39881
 
esac
39882
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39883
 
$as_echo "$ac_try_echo") >&5
39884
 
  (eval "$ac_link") 2>conftest.er1
39885
 
  ac_status=$?
39886
 
  grep -v '^ *+' conftest.er1 >conftest.err
39887
 
  rm -f conftest.er1
39888
 
  cat conftest.err >&5
39889
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39890
 
  (exit $ac_status); } && {
39891
 
         test -z "$ac_c_werror_flag" ||
39892
 
         test ! -s conftest.err
39893
 
       } && test -s conftest$ac_exeext && {
39894
 
         test "$cross_compiling" = yes ||
39895
 
         $as_test_x conftest$ac_exeext
39896
 
       }; then
39897
 
  eval "$as_ac_var=yes"
39898
 
else
39899
 
  $as_echo "$as_me: failed program was:" >&5
39900
 
sed 's/^/| /' conftest.$ac_ext >&5
39901
 
 
39902
 
        eval "$as_ac_var=no"
39903
 
fi
39904
 
 
39905
 
rm -rf conftest.dSYM
39906
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39907
 
      conftest$ac_exeext conftest.$ac_ext
39908
 
fi
39909
 
ac_res=`eval 'as_val=${'$as_ac_var'}
39910
 
                 $as_echo "$as_val"'`
39911
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39912
 
$as_echo "$ac_res" >&6; }
39913
 
as_val=`eval 'as_val=${'$as_ac_var'}
39914
 
                 $as_echo "$as_val"'`
39915
 
   if test "x$as_val" = x""yes; then
 
30430
do :
 
30431
  ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
 
30432
if test "x$ac_cv_func_memchr" = x""yes; then :
39916
30433
  cat >>confdefs.h <<_ACEOF
39917
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30434
#define HAVE_MEMCHR 1
39918
30435
_ACEOF
39919
30436
 have_memchr="1"
39920
30437
else
39923
30440
done
39924
30441
 
39925
30442
as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
39926
 
{ $as_echo "$as_me:$LINENO: checking for $int64_strfn" >&5
39927
 
$as_echo_n "checking for $int64_strfn... " >&6; }
39928
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39929
 
  $as_echo_n "(cached) " >&6
39930
 
else
39931
 
  cat >conftest.$ac_ext <<_ACEOF
39932
 
/* confdefs.h.  */
39933
 
_ACEOF
39934
 
cat confdefs.h >>conftest.$ac_ext
39935
 
cat >>conftest.$ac_ext <<_ACEOF
39936
 
/* end confdefs.h.  */
39937
 
/* Define $int64_strfn to an innocuous variant, in case <limits.h> declares $int64_strfn.
39938
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39939
 
#define $int64_strfn innocuous_$int64_strfn
39940
 
 
39941
 
/* System header to define __stub macros and hopefully few prototypes,
39942
 
    which can conflict with char $int64_strfn (); below.
39943
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39944
 
    <limits.h> exists even on freestanding compilers.  */
39945
 
 
39946
 
#ifdef __STDC__
39947
 
# include <limits.h>
39948
 
#else
39949
 
# include <assert.h>
39950
 
#endif
39951
 
 
39952
 
#undef $int64_strfn
39953
 
 
39954
 
/* Override any GCC internal prototype to avoid an error.
39955
 
   Use char because int might match the return type of a GCC
39956
 
   builtin and then its argument prototype would still apply.  */
39957
 
#ifdef __cplusplus
39958
 
extern "C"
39959
 
#endif
39960
 
char $int64_strfn ();
39961
 
/* The GNU C library defines this for functions which it implements
39962
 
    to always fail with ENOSYS.  Some functions are actually named
39963
 
    something starting with __ and the normal name is an alias.  */
39964
 
#if defined __stub_$int64_strfn || defined __stub___$int64_strfn
39965
 
choke me
39966
 
#endif
39967
 
 
39968
 
int
39969
 
main ()
39970
 
{
39971
 
return $int64_strfn ();
39972
 
  ;
39973
 
  return 0;
39974
 
}
39975
 
_ACEOF
39976
 
rm -f conftest.$ac_objext conftest$ac_exeext
39977
 
if { (ac_try="$ac_link"
39978
 
case "(($ac_try" in
39979
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39980
 
  *) ac_try_echo=$ac_try;;
39981
 
esac
39982
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39983
 
$as_echo "$ac_try_echo") >&5
39984
 
  (eval "$ac_link") 2>conftest.er1
39985
 
  ac_status=$?
39986
 
  grep -v '^ *+' conftest.er1 >conftest.err
39987
 
  rm -f conftest.er1
39988
 
  cat conftest.err >&5
39989
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39990
 
  (exit $ac_status); } && {
39991
 
         test -z "$ac_c_werror_flag" ||
39992
 
         test ! -s conftest.err
39993
 
       } && test -s conftest$ac_exeext && {
39994
 
         test "$cross_compiling" = yes ||
39995
 
         $as_test_x conftest$ac_exeext
39996
 
       }; then
39997
 
  eval "$as_ac_var=yes"
39998
 
else
39999
 
  $as_echo "$as_me: failed program was:" >&5
40000
 
sed 's/^/| /' conftest.$ac_ext >&5
40001
 
 
40002
 
        eval "$as_ac_var=no"
40003
 
fi
40004
 
 
40005
 
rm -rf conftest.dSYM
40006
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40007
 
      conftest$ac_exeext conftest.$ac_ext
40008
 
fi
40009
 
ac_res=`eval 'as_val=${'$as_ac_var'}
40010
 
                 $as_echo "$as_val"'`
40011
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40012
 
$as_echo "$ac_res" >&6; }
40013
 
as_val=`eval 'as_val=${'$as_ac_var'}
40014
 
                 $as_echo "$as_val"'`
40015
 
   if test "x$as_val" = x""yes; then
 
30443
ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
 
30444
eval as_val=\$$as_ac_var
 
30445
   if test "x$as_val" = x""yes; then :
40016
30446
  have_int64_strfn="1"
40017
30447
else
40018
30448
  have_int64_strfn="0"
40021
30451
 
40022
30452
if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
40023
30453
    int64_strfn="strtoq"
40024
 
    { $as_echo "$as_me:$LINENO: checking for strtoq" >&5
40025
 
$as_echo_n "checking for strtoq... " >&6; }
40026
 
if test "${ac_cv_func_strtoq+set}" = set; then
40027
 
  $as_echo_n "(cached) " >&6
40028
 
else
40029
 
  cat >conftest.$ac_ext <<_ACEOF
40030
 
/* confdefs.h.  */
40031
 
_ACEOF
40032
 
cat confdefs.h >>conftest.$ac_ext
40033
 
cat >>conftest.$ac_ext <<_ACEOF
40034
 
/* end confdefs.h.  */
40035
 
/* Define strtoq to an innocuous variant, in case <limits.h> declares strtoq.
40036
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40037
 
#define strtoq innocuous_strtoq
40038
 
 
40039
 
/* System header to define __stub macros and hopefully few prototypes,
40040
 
    which can conflict with char strtoq (); below.
40041
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40042
 
    <limits.h> exists even on freestanding compilers.  */
40043
 
 
40044
 
#ifdef __STDC__
40045
 
# include <limits.h>
40046
 
#else
40047
 
# include <assert.h>
40048
 
#endif
40049
 
 
40050
 
#undef strtoq
40051
 
 
40052
 
/* Override any GCC internal prototype to avoid an error.
40053
 
   Use char because int might match the return type of a GCC
40054
 
   builtin and then its argument prototype would still apply.  */
40055
 
#ifdef __cplusplus
40056
 
extern "C"
40057
 
#endif
40058
 
char strtoq ();
40059
 
/* The GNU C library defines this for functions which it implements
40060
 
    to always fail with ENOSYS.  Some functions are actually named
40061
 
    something starting with __ and the normal name is an alias.  */
40062
 
#if defined __stub_strtoq || defined __stub___strtoq
40063
 
choke me
40064
 
#endif
40065
 
 
40066
 
int
40067
 
main ()
40068
 
{
40069
 
return strtoq ();
40070
 
  ;
40071
 
  return 0;
40072
 
}
40073
 
_ACEOF
40074
 
rm -f conftest.$ac_objext conftest$ac_exeext
40075
 
if { (ac_try="$ac_link"
40076
 
case "(($ac_try" in
40077
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40078
 
  *) ac_try_echo=$ac_try;;
40079
 
esac
40080
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40081
 
$as_echo "$ac_try_echo") >&5
40082
 
  (eval "$ac_link") 2>conftest.er1
40083
 
  ac_status=$?
40084
 
  grep -v '^ *+' conftest.er1 >conftest.err
40085
 
  rm -f conftest.er1
40086
 
  cat conftest.err >&5
40087
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088
 
  (exit $ac_status); } && {
40089
 
         test -z "$ac_c_werror_flag" ||
40090
 
         test ! -s conftest.err
40091
 
       } && test -s conftest$ac_exeext && {
40092
 
         test "$cross_compiling" = yes ||
40093
 
         $as_test_x conftest$ac_exeext
40094
 
       }; then
40095
 
  ac_cv_func_strtoq=yes
40096
 
else
40097
 
  $as_echo "$as_me: failed program was:" >&5
40098
 
sed 's/^/| /' conftest.$ac_ext >&5
40099
 
 
40100
 
        ac_cv_func_strtoq=no
40101
 
fi
40102
 
 
40103
 
rm -rf conftest.dSYM
40104
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40105
 
      conftest$ac_exeext conftest.$ac_ext
40106
 
fi
40107
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtoq" >&5
40108
 
$as_echo "$ac_cv_func_strtoq" >&6; }
40109
 
if test "x$ac_cv_func_strtoq" = x""yes; then
 
30454
    ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
 
30455
if test "x$ac_cv_func_strtoq" = x""yes; then :
40110
30456
  have_int64_strfn=1
40111
30457
else
40112
30458
  have_int64_strfn=0
40141
30487
 
40142
30488
echo "${nl}Checking for DSO..."
40143
30489
# Check whether --enable-dso was given.
40144
 
if test "${enable_dso+set}" = set; then
 
30490
if test "${enable_dso+set}" = set; then :
40145
30491
  enableval=$enable_dso; if test "x$enableval" = "xyes"; then
40146
30492
      dsotype=any
40147
30493
   else
40158
30504
      case $host in
40159
30505
        *darwin[0-8]\.*)
40160
30506
          # Original Darwin, not for 9.0!:
40161
 
          { $as_echo "$as_me:$LINENO: checking for NSLinkModule" >&5
40162
 
$as_echo_n "checking for NSLinkModule... " >&6; }
40163
 
if test "${ac_cv_func_NSLinkModule+set}" = set; then
40164
 
  $as_echo_n "(cached) " >&6
40165
 
else
40166
 
  cat >conftest.$ac_ext <<_ACEOF
40167
 
/* confdefs.h.  */
40168
 
_ACEOF
40169
 
cat confdefs.h >>conftest.$ac_ext
40170
 
cat >>conftest.$ac_ext <<_ACEOF
40171
 
/* end confdefs.h.  */
40172
 
/* Define NSLinkModule to an innocuous variant, in case <limits.h> declares NSLinkModule.
40173
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40174
 
#define NSLinkModule innocuous_NSLinkModule
40175
 
 
40176
 
/* System header to define __stub macros and hopefully few prototypes,
40177
 
    which can conflict with char NSLinkModule (); below.
40178
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40179
 
    <limits.h> exists even on freestanding compilers.  */
40180
 
 
40181
 
#ifdef __STDC__
40182
 
# include <limits.h>
40183
 
#else
40184
 
# include <assert.h>
40185
 
#endif
40186
 
 
40187
 
#undef NSLinkModule
40188
 
 
40189
 
/* Override any GCC internal prototype to avoid an error.
40190
 
   Use char because int might match the return type of a GCC
40191
 
   builtin and then its argument prototype would still apply.  */
40192
 
#ifdef __cplusplus
40193
 
extern "C"
40194
 
#endif
40195
 
char NSLinkModule ();
40196
 
/* The GNU C library defines this for functions which it implements
40197
 
    to always fail with ENOSYS.  Some functions are actually named
40198
 
    something starting with __ and the normal name is an alias.  */
40199
 
#if defined __stub_NSLinkModule || defined __stub___NSLinkModule
40200
 
choke me
40201
 
#endif
40202
 
 
40203
 
int
40204
 
main ()
40205
 
{
40206
 
return NSLinkModule ();
40207
 
  ;
40208
 
  return 0;
40209
 
}
40210
 
_ACEOF
40211
 
rm -f conftest.$ac_objext conftest$ac_exeext
40212
 
if { (ac_try="$ac_link"
40213
 
case "(($ac_try" in
40214
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40215
 
  *) ac_try_echo=$ac_try;;
40216
 
esac
40217
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40218
 
$as_echo "$ac_try_echo") >&5
40219
 
  (eval "$ac_link") 2>conftest.er1
40220
 
  ac_status=$?
40221
 
  grep -v '^ *+' conftest.er1 >conftest.err
40222
 
  rm -f conftest.er1
40223
 
  cat conftest.err >&5
40224
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40225
 
  (exit $ac_status); } && {
40226
 
         test -z "$ac_c_werror_flag" ||
40227
 
         test ! -s conftest.err
40228
 
       } && test -s conftest$ac_exeext && {
40229
 
         test "$cross_compiling" = yes ||
40230
 
         $as_test_x conftest$ac_exeext
40231
 
       }; then
40232
 
  ac_cv_func_NSLinkModule=yes
40233
 
else
40234
 
  $as_echo "$as_me: failed program was:" >&5
40235
 
sed 's/^/| /' conftest.$ac_ext >&5
40236
 
 
40237
 
        ac_cv_func_NSLinkModule=no
40238
 
fi
40239
 
 
40240
 
rm -rf conftest.dSYM
40241
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40242
 
      conftest$ac_exeext conftest.$ac_ext
40243
 
fi
40244
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSLinkModule" >&5
40245
 
$as_echo "$ac_cv_func_NSLinkModule" >&6; }
40246
 
if test "x$ac_cv_func_NSLinkModule" = x""yes; then
 
30507
          ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
 
30508
if test "x$ac_cv_func_NSLinkModule" = x""yes; then :
40247
30509
  dsotype=dyld
40248
30510
fi
40249
30511
;;
40250
30512
        *-hpux[1-9]\.*|*-hpux1[01]*)
40251
30513
          # shl is specific to hpux(?), and is suboptimal for 64 bit builds,
40252
30514
          # and most unlikely to be the choice of 12.x developers.
40253
 
          { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
30515
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
40254
30516
$as_echo_n "checking for shl_load in -ldld... " >&6; }
40255
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
30517
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
40256
30518
  $as_echo_n "(cached) " >&6
40257
30519
else
40258
30520
  ac_check_lib_save_LIBS=$LIBS
40259
30521
LIBS="-ldld  $LIBS"
40260
 
cat >conftest.$ac_ext <<_ACEOF
40261
 
/* confdefs.h.  */
40262
 
_ACEOF
40263
 
cat confdefs.h >>conftest.$ac_ext
40264
 
cat >>conftest.$ac_ext <<_ACEOF
 
30522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40265
30523
/* end confdefs.h.  */
40266
30524
 
40267
30525
/* Override any GCC internal prototype to avoid an error.
40279
30537
  return 0;
40280
30538
}
40281
30539
_ACEOF
40282
 
rm -f conftest.$ac_objext conftest$ac_exeext
40283
 
if { (ac_try="$ac_link"
40284
 
case "(($ac_try" in
40285
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40286
 
  *) ac_try_echo=$ac_try;;
40287
 
esac
40288
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40289
 
$as_echo "$ac_try_echo") >&5
40290
 
  (eval "$ac_link") 2>conftest.er1
40291
 
  ac_status=$?
40292
 
  grep -v '^ *+' conftest.er1 >conftest.err
40293
 
  rm -f conftest.er1
40294
 
  cat conftest.err >&5
40295
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296
 
  (exit $ac_status); } && {
40297
 
         test -z "$ac_c_werror_flag" ||
40298
 
         test ! -s conftest.err
40299
 
       } && test -s conftest$ac_exeext && {
40300
 
         test "$cross_compiling" = yes ||
40301
 
         $as_test_x conftest$ac_exeext
40302
 
       }; then
 
30540
if ac_fn_c_try_link "$LINENO"; then :
40303
30541
  ac_cv_lib_dld_shl_load=yes
40304
30542
else
40305
 
  $as_echo "$as_me: failed program was:" >&5
40306
 
sed 's/^/| /' conftest.$ac_ext >&5
40307
 
 
40308
 
        ac_cv_lib_dld_shl_load=no
 
30543
  ac_cv_lib_dld_shl_load=no
40309
30544
fi
40310
 
 
40311
 
rm -rf conftest.dSYM
40312
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40313
 
      conftest$ac_exeext conftest.$ac_ext
 
30545
rm -f core conftest.err conftest.$ac_objext \
 
30546
    conftest$ac_exeext conftest.$ac_ext
40314
30547
LIBS=$ac_check_lib_save_LIBS
40315
30548
fi
40316
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
30549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
40317
30550
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
40318
 
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
30551
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
40319
30552
  have_shl=1
40320
30553
fi
40321
30554
 
40353
30586
    fi
40354
30587
    # Normal POSIX:
40355
30588
    if test "$dsotype" = "any"; then
40356
 
      { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
40357
 
$as_echo_n "checking for dlopen... " >&6; }
40358
 
if test "${ac_cv_func_dlopen+set}" = set; then
40359
 
  $as_echo_n "(cached) " >&6
40360
 
else
40361
 
  cat >conftest.$ac_ext <<_ACEOF
40362
 
/* confdefs.h.  */
40363
 
_ACEOF
40364
 
cat confdefs.h >>conftest.$ac_ext
40365
 
cat >>conftest.$ac_ext <<_ACEOF
40366
 
/* end confdefs.h.  */
40367
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
40368
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40369
 
#define dlopen innocuous_dlopen
40370
 
 
40371
 
/* System header to define __stub macros and hopefully few prototypes,
40372
 
    which can conflict with char dlopen (); below.
40373
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40374
 
    <limits.h> exists even on freestanding compilers.  */
40375
 
 
40376
 
#ifdef __STDC__
40377
 
# include <limits.h>
40378
 
#else
40379
 
# include <assert.h>
40380
 
#endif
40381
 
 
40382
 
#undef dlopen
40383
 
 
40384
 
/* Override any GCC internal prototype to avoid an error.
40385
 
   Use char because int might match the return type of a GCC
40386
 
   builtin and then its argument prototype would still apply.  */
40387
 
#ifdef __cplusplus
40388
 
extern "C"
40389
 
#endif
40390
 
char dlopen ();
40391
 
/* The GNU C library defines this for functions which it implements
40392
 
    to always fail with ENOSYS.  Some functions are actually named
40393
 
    something starting with __ and the normal name is an alias.  */
40394
 
#if defined __stub_dlopen || defined __stub___dlopen
40395
 
choke me
40396
 
#endif
40397
 
 
40398
 
int
40399
 
main ()
40400
 
{
40401
 
return dlopen ();
40402
 
  ;
40403
 
  return 0;
40404
 
}
40405
 
_ACEOF
40406
 
rm -f conftest.$ac_objext conftest$ac_exeext
40407
 
if { (ac_try="$ac_link"
40408
 
case "(($ac_try" in
40409
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40410
 
  *) ac_try_echo=$ac_try;;
40411
 
esac
40412
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40413
 
$as_echo "$ac_try_echo") >&5
40414
 
  (eval "$ac_link") 2>conftest.er1
40415
 
  ac_status=$?
40416
 
  grep -v '^ *+' conftest.er1 >conftest.err
40417
 
  rm -f conftest.er1
40418
 
  cat conftest.err >&5
40419
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420
 
  (exit $ac_status); } && {
40421
 
         test -z "$ac_c_werror_flag" ||
40422
 
         test ! -s conftest.err
40423
 
       } && test -s conftest$ac_exeext && {
40424
 
         test "$cross_compiling" = yes ||
40425
 
         $as_test_x conftest$ac_exeext
40426
 
       }; then
40427
 
  ac_cv_func_dlopen=yes
40428
 
else
40429
 
  $as_echo "$as_me: failed program was:" >&5
40430
 
sed 's/^/| /' conftest.$ac_ext >&5
40431
 
 
40432
 
        ac_cv_func_dlopen=no
40433
 
fi
40434
 
 
40435
 
rm -rf conftest.dSYM
40436
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40437
 
      conftest$ac_exeext conftest.$ac_ext
40438
 
fi
40439
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
40440
 
$as_echo "$ac_cv_func_dlopen" >&6; }
40441
 
if test "x$ac_cv_func_dlopen" = x""yes; then
 
30589
      ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
30590
if test "x$ac_cv_func_dlopen" = x""yes; then :
40442
30591
  dsotype=dlfcn
40443
30592
fi
40444
30593
 
40445
30594
    fi
40446
30595
    if test "$dsotype" = "any"; then
40447
 
      { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
30596
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
40448
30597
$as_echo_n "checking for dlopen in -ldl... " >&6; }
40449
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
30598
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
40450
30599
  $as_echo_n "(cached) " >&6
40451
30600
else
40452
30601
  ac_check_lib_save_LIBS=$LIBS
40453
30602
LIBS="-ldl  $LIBS"
40454
 
cat >conftest.$ac_ext <<_ACEOF
40455
 
/* confdefs.h.  */
40456
 
_ACEOF
40457
 
cat confdefs.h >>conftest.$ac_ext
40458
 
cat >>conftest.$ac_ext <<_ACEOF
 
30603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40459
30604
/* end confdefs.h.  */
40460
30605
 
40461
30606
/* Override any GCC internal prototype to avoid an error.
40473
30618
  return 0;
40474
30619
}
40475
30620
_ACEOF
40476
 
rm -f conftest.$ac_objext conftest$ac_exeext
40477
 
if { (ac_try="$ac_link"
40478
 
case "(($ac_try" in
40479
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40480
 
  *) ac_try_echo=$ac_try;;
40481
 
esac
40482
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40483
 
$as_echo "$ac_try_echo") >&5
40484
 
  (eval "$ac_link") 2>conftest.er1
40485
 
  ac_status=$?
40486
 
  grep -v '^ *+' conftest.er1 >conftest.err
40487
 
  rm -f conftest.er1
40488
 
  cat conftest.err >&5
40489
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40490
 
  (exit $ac_status); } && {
40491
 
         test -z "$ac_c_werror_flag" ||
40492
 
         test ! -s conftest.err
40493
 
       } && test -s conftest$ac_exeext && {
40494
 
         test "$cross_compiling" = yes ||
40495
 
         $as_test_x conftest$ac_exeext
40496
 
       }; then
 
30621
if ac_fn_c_try_link "$LINENO"; then :
40497
30622
  ac_cv_lib_dl_dlopen=yes
40498
30623
else
40499
 
  $as_echo "$as_me: failed program was:" >&5
40500
 
sed 's/^/| /' conftest.$ac_ext >&5
40501
 
 
40502
 
        ac_cv_lib_dl_dlopen=no
 
30624
  ac_cv_lib_dl_dlopen=no
40503
30625
fi
40504
 
 
40505
 
rm -rf conftest.dSYM
40506
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40507
 
      conftest$ac_exeext conftest.$ac_ext
 
30626
rm -f core conftest.err conftest.$ac_objext \
 
30627
    conftest$ac_exeext conftest.$ac_ext
40508
30628
LIBS=$ac_check_lib_save_LIBS
40509
30629
fi
40510
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
30630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
40511
30631
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
40512
 
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
30632
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
40513
30633
  dsotype=dlfcn;
40514
30634
  if test "x$LIBS" = "x"; then
40515
30635
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
40536
30656
    fi
40537
30657
    if test "$dsotype" = "dlfcn"; then
40538
30658
        # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
40539
 
        { $as_echo "$as_me:$LINENO: checking for dlsym" >&5
40540
 
$as_echo_n "checking for dlsym... " >&6; }
40541
 
if test "${ac_cv_func_dlsym+set}" = set; then
40542
 
  $as_echo_n "(cached) " >&6
40543
 
else
40544
 
  cat >conftest.$ac_ext <<_ACEOF
40545
 
/* confdefs.h.  */
40546
 
_ACEOF
40547
 
cat confdefs.h >>conftest.$ac_ext
40548
 
cat >>conftest.$ac_ext <<_ACEOF
40549
 
/* end confdefs.h.  */
40550
 
/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
40551
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40552
 
#define dlsym innocuous_dlsym
40553
 
 
40554
 
/* System header to define __stub macros and hopefully few prototypes,
40555
 
    which can conflict with char dlsym (); below.
40556
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40557
 
    <limits.h> exists even on freestanding compilers.  */
40558
 
 
40559
 
#ifdef __STDC__
40560
 
# include <limits.h>
40561
 
#else
40562
 
# include <assert.h>
40563
 
#endif
40564
 
 
40565
 
#undef dlsym
40566
 
 
40567
 
/* Override any GCC internal prototype to avoid an error.
40568
 
   Use char because int might match the return type of a GCC
40569
 
   builtin and then its argument prototype would still apply.  */
40570
 
#ifdef __cplusplus
40571
 
extern "C"
40572
 
#endif
40573
 
char dlsym ();
40574
 
/* The GNU C library defines this for functions which it implements
40575
 
    to always fail with ENOSYS.  Some functions are actually named
40576
 
    something starting with __ and the normal name is an alias.  */
40577
 
#if defined __stub_dlsym || defined __stub___dlsym
40578
 
choke me
40579
 
#endif
40580
 
 
40581
 
int
40582
 
main ()
40583
 
{
40584
 
return dlsym ();
40585
 
  ;
40586
 
  return 0;
40587
 
}
40588
 
_ACEOF
40589
 
rm -f conftest.$ac_objext conftest$ac_exeext
40590
 
if { (ac_try="$ac_link"
40591
 
case "(($ac_try" in
40592
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40593
 
  *) ac_try_echo=$ac_try;;
40594
 
esac
40595
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40596
 
$as_echo "$ac_try_echo") >&5
40597
 
  (eval "$ac_link") 2>conftest.er1
40598
 
  ac_status=$?
40599
 
  grep -v '^ *+' conftest.er1 >conftest.err
40600
 
  rm -f conftest.er1
40601
 
  cat conftest.err >&5
40602
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40603
 
  (exit $ac_status); } && {
40604
 
         test -z "$ac_c_werror_flag" ||
40605
 
         test ! -s conftest.err
40606
 
       } && test -s conftest$ac_exeext && {
40607
 
         test "$cross_compiling" = yes ||
40608
 
         $as_test_x conftest$ac_exeext
40609
 
       }; then
40610
 
  ac_cv_func_dlsym=yes
40611
 
else
40612
 
  $as_echo "$as_me: failed program was:" >&5
40613
 
sed 's/^/| /' conftest.$ac_ext >&5
40614
 
 
40615
 
        ac_cv_func_dlsym=no
40616
 
fi
40617
 
 
40618
 
rm -rf conftest.dSYM
40619
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40620
 
      conftest$ac_exeext conftest.$ac_ext
40621
 
fi
40622
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
40623
 
$as_echo "$ac_cv_func_dlsym" >&6; }
40624
 
if test "x$ac_cv_func_dlsym" = x""yes; then
40625
 
  :
40626
 
else
40627
 
  { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
 
30659
        ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
 
30660
if test "x$ac_cv_func_dlsym" = x""yes; then :
 
30661
 
 
30662
else
 
30663
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
40628
30664
$as_echo_n "checking for dlsym in -ldl... " >&6; }
40629
 
if test "${ac_cv_lib_dl_dlsym+set}" = set; then
 
30665
if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
40630
30666
  $as_echo_n "(cached) " >&6
40631
30667
else
40632
30668
  ac_check_lib_save_LIBS=$LIBS
40633
30669
LIBS="-ldl  $LIBS"
40634
 
cat >conftest.$ac_ext <<_ACEOF
40635
 
/* confdefs.h.  */
40636
 
_ACEOF
40637
 
cat confdefs.h >>conftest.$ac_ext
40638
 
cat >>conftest.$ac_ext <<_ACEOF
 
30670
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40639
30671
/* end confdefs.h.  */
40640
30672
 
40641
30673
/* Override any GCC internal prototype to avoid an error.
40653
30685
  return 0;
40654
30686
}
40655
30687
_ACEOF
40656
 
rm -f conftest.$ac_objext conftest$ac_exeext
40657
 
if { (ac_try="$ac_link"
40658
 
case "(($ac_try" in
40659
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40660
 
  *) ac_try_echo=$ac_try;;
40661
 
esac
40662
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40663
 
$as_echo "$ac_try_echo") >&5
40664
 
  (eval "$ac_link") 2>conftest.er1
40665
 
  ac_status=$?
40666
 
  grep -v '^ *+' conftest.er1 >conftest.err
40667
 
  rm -f conftest.er1
40668
 
  cat conftest.err >&5
40669
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670
 
  (exit $ac_status); } && {
40671
 
         test -z "$ac_c_werror_flag" ||
40672
 
         test ! -s conftest.err
40673
 
       } && test -s conftest$ac_exeext && {
40674
 
         test "$cross_compiling" = yes ||
40675
 
         $as_test_x conftest$ac_exeext
40676
 
       }; then
 
30688
if ac_fn_c_try_link "$LINENO"; then :
40677
30689
  ac_cv_lib_dl_dlsym=yes
40678
30690
else
40679
 
  $as_echo "$as_me: failed program was:" >&5
40680
 
sed 's/^/| /' conftest.$ac_ext >&5
40681
 
 
40682
 
        ac_cv_lib_dl_dlsym=no
 
30691
  ac_cv_lib_dl_dlsym=no
40683
30692
fi
40684
 
 
40685
 
rm -rf conftest.dSYM
40686
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40687
 
      conftest$ac_exeext conftest.$ac_ext
 
30693
rm -f core conftest.err conftest.$ac_objext \
 
30694
    conftest$ac_exeext conftest.$ac_ext
40688
30695
LIBS=$ac_check_lib_save_LIBS
40689
30696
fi
40690
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
 
30697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
40691
30698
$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
40692
 
if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
 
30699
if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
40693
30700
 
40694
30701
  if test "x$LIBS" = "x"; then
40695
30702
    test "x$silent" != "xyes" && echo "  setting LIBS to \"-ldl\""
40721
30728
    fi
40722
30729
    if test "$dsotype" = "any"; then
40723
30730
      # BeOS:
40724
 
      { $as_echo "$as_me:$LINENO: checking for load_image in -lroot" >&5
 
30731
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
40725
30732
$as_echo_n "checking for load_image in -lroot... " >&6; }
40726
 
if test "${ac_cv_lib_root_load_image+set}" = set; then
 
30733
if test "${ac_cv_lib_root_load_image+set}" = set; then :
40727
30734
  $as_echo_n "(cached) " >&6
40728
30735
else
40729
30736
  ac_check_lib_save_LIBS=$LIBS
40730
30737
LIBS="-lroot  $LIBS"
40731
 
cat >conftest.$ac_ext <<_ACEOF
40732
 
/* confdefs.h.  */
40733
 
_ACEOF
40734
 
cat confdefs.h >>conftest.$ac_ext
40735
 
cat >>conftest.$ac_ext <<_ACEOF
 
30738
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40736
30739
/* end confdefs.h.  */
40737
30740
 
40738
30741
/* Override any GCC internal prototype to avoid an error.
40750
30753
  return 0;
40751
30754
}
40752
30755
_ACEOF
40753
 
rm -f conftest.$ac_objext conftest$ac_exeext
40754
 
if { (ac_try="$ac_link"
40755
 
case "(($ac_try" in
40756
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40757
 
  *) ac_try_echo=$ac_try;;
40758
 
esac
40759
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40760
 
$as_echo "$ac_try_echo") >&5
40761
 
  (eval "$ac_link") 2>conftest.er1
40762
 
  ac_status=$?
40763
 
  grep -v '^ *+' conftest.er1 >conftest.err
40764
 
  rm -f conftest.er1
40765
 
  cat conftest.err >&5
40766
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40767
 
  (exit $ac_status); } && {
40768
 
         test -z "$ac_c_werror_flag" ||
40769
 
         test ! -s conftest.err
40770
 
       } && test -s conftest$ac_exeext && {
40771
 
         test "$cross_compiling" = yes ||
40772
 
         $as_test_x conftest$ac_exeext
40773
 
       }; then
 
30756
if ac_fn_c_try_link "$LINENO"; then :
40774
30757
  ac_cv_lib_root_load_image=yes
40775
30758
else
40776
 
  $as_echo "$as_me: failed program was:" >&5
40777
 
sed 's/^/| /' conftest.$ac_ext >&5
40778
 
 
40779
 
        ac_cv_lib_root_load_image=no
 
30759
  ac_cv_lib_root_load_image=no
40780
30760
fi
40781
 
 
40782
 
rm -rf conftest.dSYM
40783
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40784
 
      conftest$ac_exeext conftest.$ac_ext
 
30761
rm -f core conftest.err conftest.$ac_objext \
 
30762
    conftest$ac_exeext conftest.$ac_ext
40785
30763
LIBS=$ac_check_lib_save_LIBS
40786
30764
fi
40787
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_root_load_image" >&5
 
30765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
40788
30766
$as_echo "$ac_cv_lib_root_load_image" >&6; }
40789
 
if test "x$ac_cv_lib_root_load_image" = x""yes; then
 
30767
if test "x$ac_cv_lib_root_load_image" = x""yes; then :
40790
30768
  dsotype=other
40791
30769
fi
40792
30770
 
40826
30804
fi
40827
30805
 
40828
30806
if test "$dsotype" = "any"; then
40829
 
    { { $as_echo "$as_me:$LINENO: error: Could not detect suitable DSO implementation" >&5
40830
 
$as_echo "$as_me: error: Could not detect suitable DSO implementation" >&2;}
40831
 
   { (exit 1); exit 1; }; }
 
30807
    as_fn_error "Could not detect suitable DSO implementation" "$LINENO" 5
40832
30808
elif test "$dsotype" = "no"; then
40833
30809
    aprdso="0"
40834
30810
else
40835
30811
    case "$dsotype" in
40836
30812
    dlfcn)
40837
 
cat >>confdefs.h <<\_ACEOF
40838
 
#define DSO_USE_DLFCN 1
40839
 
_ACEOF
 
30813
$as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
40840
30814
;;
40841
30815
    shl)
40842
 
cat >>confdefs.h <<\_ACEOF
40843
 
#define DSO_USE_SHL 1
40844
 
_ACEOF
 
30816
$as_echo "#define DSO_USE_SHL 1" >>confdefs.h
40845
30817
;;
40846
30818
    dyld)
40847
 
cat >>confdefs.h <<\_ACEOF
40848
 
#define DSO_USE_DYLD 1
40849
 
_ACEOF
 
30819
$as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
40850
30820
;;
40851
30821
    other) ;; # Use whatever is in dso/OSDIR
40852
 
    *) { { $as_echo "$as_me:$LINENO: error: Unknown DSO implementation \"$dsotype\"" >&5
40853
 
$as_echo "$as_me: error: Unknown DSO implementation \"$dsotype\"" >&2;}
40854
 
   { (exit 1); exit 1; }; };;
 
30822
    *) as_fn_error "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
40855
30823
    esac
40856
30824
    aprdso="1"
40857
30825
    apr_modules="$apr_modules dso"
40861
30829
 
40862
30830
echo "${nl}Checking for Processes..."
40863
30831
 
40864
 
 
40865
30832
for ac_func in waitpid
40866
 
do
40867
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40868
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40869
 
$as_echo_n "checking for $ac_func... " >&6; }
40870
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40871
 
  $as_echo_n "(cached) " >&6
40872
 
else
40873
 
  cat >conftest.$ac_ext <<_ACEOF
40874
 
/* confdefs.h.  */
40875
 
_ACEOF
40876
 
cat confdefs.h >>conftest.$ac_ext
40877
 
cat >>conftest.$ac_ext <<_ACEOF
40878
 
/* end confdefs.h.  */
40879
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40880
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40881
 
#define $ac_func innocuous_$ac_func
40882
 
 
40883
 
/* System header to define __stub macros and hopefully few prototypes,
40884
 
    which can conflict with char $ac_func (); below.
40885
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40886
 
    <limits.h> exists even on freestanding compilers.  */
40887
 
 
40888
 
#ifdef __STDC__
40889
 
# include <limits.h>
40890
 
#else
40891
 
# include <assert.h>
40892
 
#endif
40893
 
 
40894
 
#undef $ac_func
40895
 
 
40896
 
/* Override any GCC internal prototype to avoid an error.
40897
 
   Use char because int might match the return type of a GCC
40898
 
   builtin and then its argument prototype would still apply.  */
40899
 
#ifdef __cplusplus
40900
 
extern "C"
40901
 
#endif
40902
 
char $ac_func ();
40903
 
/* The GNU C library defines this for functions which it implements
40904
 
    to always fail with ENOSYS.  Some functions are actually named
40905
 
    something starting with __ and the normal name is an alias.  */
40906
 
#if defined __stub_$ac_func || defined __stub___$ac_func
40907
 
choke me
40908
 
#endif
40909
 
 
40910
 
int
40911
 
main ()
40912
 
{
40913
 
return $ac_func ();
40914
 
  ;
40915
 
  return 0;
40916
 
}
40917
 
_ACEOF
40918
 
rm -f conftest.$ac_objext conftest$ac_exeext
40919
 
if { (ac_try="$ac_link"
40920
 
case "(($ac_try" in
40921
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40922
 
  *) ac_try_echo=$ac_try;;
40923
 
esac
40924
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40925
 
$as_echo "$ac_try_echo") >&5
40926
 
  (eval "$ac_link") 2>conftest.er1
40927
 
  ac_status=$?
40928
 
  grep -v '^ *+' conftest.er1 >conftest.err
40929
 
  rm -f conftest.er1
40930
 
  cat conftest.err >&5
40931
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932
 
  (exit $ac_status); } && {
40933
 
         test -z "$ac_c_werror_flag" ||
40934
 
         test ! -s conftest.err
40935
 
       } && test -s conftest$ac_exeext && {
40936
 
         test "$cross_compiling" = yes ||
40937
 
         $as_test_x conftest$ac_exeext
40938
 
       }; then
40939
 
  eval "$as_ac_var=yes"
40940
 
else
40941
 
  $as_echo "$as_me: failed program was:" >&5
40942
 
sed 's/^/| /' conftest.$ac_ext >&5
40943
 
 
40944
 
        eval "$as_ac_var=no"
40945
 
fi
40946
 
 
40947
 
rm -rf conftest.dSYM
40948
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40949
 
      conftest$ac_exeext conftest.$ac_ext
40950
 
fi
40951
 
ac_res=`eval 'as_val=${'$as_ac_var'}
40952
 
                 $as_echo "$as_val"'`
40953
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40954
 
$as_echo "$ac_res" >&6; }
40955
 
as_val=`eval 'as_val=${'$as_ac_var'}
40956
 
                 $as_echo "$as_val"'`
40957
 
   if test "x$as_val" = x""yes; then
 
30833
do :
 
30834
  ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
 
30835
if test "x$ac_cv_func_waitpid" = x""yes; then :
40958
30836
  cat >>confdefs.h <<_ACEOF
40959
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
30837
#define HAVE_WAITPID 1
40960
30838
_ACEOF
40961
30839
 
40962
30840
fi
40964
30842
 
40965
30843
 
40966
30844
# Check whether --enable-other-child was given.
40967
 
if test "${enable_other_child+set}" = set; then
 
30845
if test "${enable_other_child+set}" = set; then :
40968
30846
  enableval=$enable_other_child;  if test "$enableval" = "yes"; then
40969
30847
        oc="1"
40970
30848
    else
40983
30861
 
40984
30862
 
40985
30863
 
40986
 
{ $as_echo "$as_me:$LINENO: checking for Variable Length Arrays" >&5
 
30864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
40987
30865
$as_echo_n "checking for Variable Length Arrays... " >&6; }
40988
30866
apr_save_CFLAGS=$CFLAGS
40989
30867
 CFLAGS="$CFLAGS $CFLAGS_WARN"
40990
30868
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
40991
30869
   CFLAGS="$CFLAGS -Werror"
40992
30870
 fi
40993
 
 cat >conftest.$ac_ext <<_ACEOF
 
30871
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
30872
/* end confdefs.h.  */
40994
30873
#include "confdefs.h"
40995
30874
 
40996
30875
 
41001
30880
 
41002
30881
     return 0; }
41003
30882
_ACEOF
41004
 
rm -f conftest.$ac_objext
41005
 
if { (ac_try="$ac_compile"
41006
 
case "(($ac_try" in
41007
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41008
 
  *) ac_try_echo=$ac_try;;
41009
 
esac
41010
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41011
 
$as_echo "$ac_try_echo") >&5
41012
 
  (eval "$ac_compile") 2>conftest.er1
41013
 
  ac_status=$?
41014
 
  grep -v '^ *+' conftest.er1 >conftest.err
41015
 
  rm -f conftest.er1
41016
 
  cat conftest.err >&5
41017
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41018
 
  (exit $ac_status); } && {
41019
 
         test -z "$ac_c_werror_flag" ||
41020
 
         test ! -s conftest.err
41021
 
       } && test -s conftest.$ac_objext; then
 
30883
if ac_fn_c_try_compile "$LINENO"; then :
41022
30884
  vla_msg=yes
41023
30885
else
41024
 
  $as_echo "$as_me: failed program was:" >&5
41025
 
sed 's/^/| /' conftest.$ac_ext >&5
41026
 
 
41027
 
        vla_msg=no
 
30886
  vla_msg=no
41028
30887
fi
41029
 
 
41030
30888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41031
30889
 CFLAGS=$apr_save_CFLAGS
41032
30890
 
41033
 
{ $as_echo "$as_me:$LINENO: result: $vla_msg" >&5
 
30891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
41034
30892
$as_echo "$vla_msg" >&6; }
41035
30893
if test "$vla_msg" = "yes"; then
41036
30894
 
41037
 
cat >>confdefs.h <<\_ACEOF
41038
 
#define HAVE_VLA 1
41039
 
_ACEOF
 
30895
$as_echo "#define HAVE_VLA 1" >>confdefs.h
41040
30896
 
41041
30897
fi
41042
30898
 
41043
 
{ $as_echo "$as_me:$LINENO: checking struct rlimit" >&5
 
30899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
41044
30900
$as_echo_n "checking struct rlimit... " >&6; }
41045
 
if test "${ac_cv_struct_rlimit+set}" = set; then
 
30901
if test "${ac_cv_struct_rlimit+set}" = set; then :
41046
30902
  $as_echo_n "(cached) " >&6
41047
30903
else
41048
30904
 
41049
 
if test "$cross_compiling" = yes; then
 
30905
if test "$cross_compiling" = yes; then :
41050
30906
 
41051
30907
    ac_cv_struct_rlimit=no
41052
30908
else
41053
 
  cat >conftest.$ac_ext <<_ACEOF
41054
 
/* confdefs.h.  */
41055
 
_ACEOF
41056
 
cat confdefs.h >>conftest.$ac_ext
41057
 
cat >>conftest.$ac_ext <<_ACEOF
 
30909
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41058
30910
/* end confdefs.h.  */
41059
30911
 
41060
30912
#include <sys/types.h>
41068
30920
    exit(0);
41069
30921
}
41070
30922
_ACEOF
41071
 
rm -f conftest$ac_exeext
41072
 
if { (ac_try="$ac_link"
41073
 
case "(($ac_try" in
41074
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41075
 
  *) ac_try_echo=$ac_try;;
41076
 
esac
41077
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41078
 
$as_echo "$ac_try_echo") >&5
41079
 
  (eval "$ac_link") 2>&5
41080
 
  ac_status=$?
41081
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41082
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41083
 
  { (case "(($ac_try" in
41084
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41085
 
  *) ac_try_echo=$ac_try;;
41086
 
esac
41087
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41088
 
$as_echo "$ac_try_echo") >&5
41089
 
  (eval "$ac_try") 2>&5
41090
 
  ac_status=$?
41091
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41092
 
  (exit $ac_status); }; }; then
 
30923
if ac_fn_c_try_run "$LINENO"; then :
41093
30924
 
41094
30925
    ac_cv_struct_rlimit=yes
41095
30926
else
41096
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
41097
 
$as_echo "$as_me: failed program was:" >&5
41098
 
sed 's/^/| /' conftest.$ac_ext >&5
41099
 
 
41100
 
( exit $ac_status )
41101
30927
 
41102
30928
    ac_cv_struct_rlimit=no
41103
30929
fi
41104
 
rm -rf conftest.dSYM
41105
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41106
 
fi
41107
 
 
41108
 
 
41109
 
fi
41110
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_rlimit" >&5
 
30930
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
30931
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
30932
fi
 
30933
 
 
30934
fi
 
30935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
41111
30936
$as_echo "$ac_cv_struct_rlimit" >&6; }
41112
30937
struct_rlimit=0
41113
30938
test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
41115
30940
 
41116
30941
echo "${nl}Checking for Locking..."
41117
30942
 
41118
 
 
41119
 
 
41120
 
 
41121
30943
for ac_func in semget semctl flock
41122
 
do
41123
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41124
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41125
 
$as_echo_n "checking for $ac_func... " >&6; }
41126
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41127
 
  $as_echo_n "(cached) " >&6
41128
 
else
41129
 
  cat >conftest.$ac_ext <<_ACEOF
41130
 
/* confdefs.h.  */
41131
 
_ACEOF
41132
 
cat confdefs.h >>conftest.$ac_ext
41133
 
cat >>conftest.$ac_ext <<_ACEOF
41134
 
/* end confdefs.h.  */
41135
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41136
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41137
 
#define $ac_func innocuous_$ac_func
41138
 
 
41139
 
/* System header to define __stub macros and hopefully few prototypes,
41140
 
    which can conflict with char $ac_func (); below.
41141
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41142
 
    <limits.h> exists even on freestanding compilers.  */
41143
 
 
41144
 
#ifdef __STDC__
41145
 
# include <limits.h>
41146
 
#else
41147
 
# include <assert.h>
41148
 
#endif
41149
 
 
41150
 
#undef $ac_func
41151
 
 
41152
 
/* Override any GCC internal prototype to avoid an error.
41153
 
   Use char because int might match the return type of a GCC
41154
 
   builtin and then its argument prototype would still apply.  */
41155
 
#ifdef __cplusplus
41156
 
extern "C"
41157
 
#endif
41158
 
char $ac_func ();
41159
 
/* The GNU C library defines this for functions which it implements
41160
 
    to always fail with ENOSYS.  Some functions are actually named
41161
 
    something starting with __ and the normal name is an alias.  */
41162
 
#if defined __stub_$ac_func || defined __stub___$ac_func
41163
 
choke me
41164
 
#endif
41165
 
 
41166
 
int
41167
 
main ()
41168
 
{
41169
 
return $ac_func ();
41170
 
  ;
41171
 
  return 0;
41172
 
}
41173
 
_ACEOF
41174
 
rm -f conftest.$ac_objext conftest$ac_exeext
41175
 
if { (ac_try="$ac_link"
41176
 
case "(($ac_try" in
41177
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41178
 
  *) ac_try_echo=$ac_try;;
41179
 
esac
41180
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41181
 
$as_echo "$ac_try_echo") >&5
41182
 
  (eval "$ac_link") 2>conftest.er1
41183
 
  ac_status=$?
41184
 
  grep -v '^ *+' conftest.er1 >conftest.err
41185
 
  rm -f conftest.er1
41186
 
  cat conftest.err >&5
41187
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41188
 
  (exit $ac_status); } && {
41189
 
         test -z "$ac_c_werror_flag" ||
41190
 
         test ! -s conftest.err
41191
 
       } && test -s conftest$ac_exeext && {
41192
 
         test "$cross_compiling" = yes ||
41193
 
         $as_test_x conftest$ac_exeext
41194
 
       }; then
41195
 
  eval "$as_ac_var=yes"
41196
 
else
41197
 
  $as_echo "$as_me: failed program was:" >&5
41198
 
sed 's/^/| /' conftest.$ac_ext >&5
41199
 
 
41200
 
        eval "$as_ac_var=no"
41201
 
fi
41202
 
 
41203
 
rm -rf conftest.dSYM
41204
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41205
 
      conftest$ac_exeext conftest.$ac_ext
41206
 
fi
41207
 
ac_res=`eval 'as_val=${'$as_ac_var'}
41208
 
                 $as_echo "$as_val"'`
41209
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41210
 
$as_echo "$ac_res" >&6; }
41211
 
as_val=`eval 'as_val=${'$as_ac_var'}
41212
 
                 $as_echo "$as_val"'`
41213
 
   if test "x$as_val" = x""yes; then
 
30944
do :
 
30945
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
30946
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
30947
eval as_val=\$$as_ac_var
 
30948
   if test "x$as_val" = x""yes; then :
41214
30949
  cat >>confdefs.h <<_ACEOF
41215
30950
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41216
30951
_ACEOF
41218
30953
fi
41219
30954
done
41220
30955
 
41221
 
 
41222
 
 
41223
30956
for ac_header in semaphore.h OS.h
41224
 
do
41225
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41226
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41227
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41228
 
$as_echo_n "checking for $ac_header... " >&6; }
41229
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41230
 
  $as_echo_n "(cached) " >&6
41231
 
fi
41232
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
41233
 
                 $as_echo "$as_val"'`
41234
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41235
 
$as_echo "$ac_res" >&6; }
41236
 
else
41237
 
  # Is the header compilable?
41238
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41239
 
$as_echo_n "checking $ac_header usability... " >&6; }
41240
 
cat >conftest.$ac_ext <<_ACEOF
41241
 
/* confdefs.h.  */
41242
 
_ACEOF
41243
 
cat confdefs.h >>conftest.$ac_ext
41244
 
cat >>conftest.$ac_ext <<_ACEOF
41245
 
/* end confdefs.h.  */
41246
 
$ac_includes_default
41247
 
#include <$ac_header>
41248
 
_ACEOF
41249
 
rm -f conftest.$ac_objext
41250
 
if { (ac_try="$ac_compile"
41251
 
case "(($ac_try" in
41252
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41253
 
  *) ac_try_echo=$ac_try;;
41254
 
esac
41255
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41256
 
$as_echo "$ac_try_echo") >&5
41257
 
  (eval "$ac_compile") 2>conftest.er1
41258
 
  ac_status=$?
41259
 
  grep -v '^ *+' conftest.er1 >conftest.err
41260
 
  rm -f conftest.er1
41261
 
  cat conftest.err >&5
41262
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41263
 
  (exit $ac_status); } && {
41264
 
         test -z "$ac_c_werror_flag" ||
41265
 
         test ! -s conftest.err
41266
 
       } && test -s conftest.$ac_objext; then
41267
 
  ac_header_compiler=yes
41268
 
else
41269
 
  $as_echo "$as_me: failed program was:" >&5
41270
 
sed 's/^/| /' conftest.$ac_ext >&5
41271
 
 
41272
 
        ac_header_compiler=no
41273
 
fi
41274
 
 
41275
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41276
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41277
 
$as_echo "$ac_header_compiler" >&6; }
41278
 
 
41279
 
# Is the header present?
41280
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41281
 
$as_echo_n "checking $ac_header presence... " >&6; }
41282
 
cat >conftest.$ac_ext <<_ACEOF
41283
 
/* confdefs.h.  */
41284
 
_ACEOF
41285
 
cat confdefs.h >>conftest.$ac_ext
41286
 
cat >>conftest.$ac_ext <<_ACEOF
41287
 
/* end confdefs.h.  */
41288
 
#include <$ac_header>
41289
 
_ACEOF
41290
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
41291
 
case "(($ac_try" in
41292
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41293
 
  *) ac_try_echo=$ac_try;;
41294
 
esac
41295
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41296
 
$as_echo "$ac_try_echo") >&5
41297
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41298
 
  ac_status=$?
41299
 
  grep -v '^ *+' conftest.er1 >conftest.err
41300
 
  rm -f conftest.er1
41301
 
  cat conftest.err >&5
41302
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41303
 
  (exit $ac_status); } >/dev/null && {
41304
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41305
 
         test ! -s conftest.err
41306
 
       }; then
41307
 
  ac_header_preproc=yes
41308
 
else
41309
 
  $as_echo "$as_me: failed program was:" >&5
41310
 
sed 's/^/| /' conftest.$ac_ext >&5
41311
 
 
41312
 
  ac_header_preproc=no
41313
 
fi
41314
 
 
41315
 
rm -f conftest.err conftest.$ac_ext
41316
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41317
 
$as_echo "$ac_header_preproc" >&6; }
41318
 
 
41319
 
# So?  What about this header?
41320
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41321
 
  yes:no: )
41322
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41323
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41324
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41325
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41326
 
    ac_header_preproc=yes
41327
 
    ;;
41328
 
  no:yes:* )
41329
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41330
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41331
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41332
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41333
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41334
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41335
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41336
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41337
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41338
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41339
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41340
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41341
 
 
41342
 
    ;;
41343
 
esac
41344
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41345
 
$as_echo_n "checking for $ac_header... " >&6; }
41346
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41347
 
  $as_echo_n "(cached) " >&6
41348
 
else
41349
 
  eval "$as_ac_Header=\$ac_header_preproc"
41350
 
fi
41351
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
41352
 
                 $as_echo "$as_val"'`
41353
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41354
 
$as_echo "$ac_res" >&6; }
41355
 
 
41356
 
fi
41357
 
as_val=`eval 'as_val=${'$as_ac_Header'}
41358
 
                 $as_echo "$as_val"'`
41359
 
   if test "x$as_val" = x""yes; then
 
30957
do :
 
30958
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
30959
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
30960
eval as_val=\$$as_ac_Header
 
30961
   if test "x$as_val" = x""yes; then :
41360
30962
  cat >>confdefs.h <<_ACEOF
41361
30963
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41362
30964
_ACEOF
41365
30967
 
41366
30968
done
41367
30969
 
41368
 
{ $as_echo "$as_me:$LINENO: checking for library containing sem_open" >&5
 
30970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
41369
30971
$as_echo_n "checking for library containing sem_open... " >&6; }
41370
 
if test "${ac_cv_search_sem_open+set}" = set; then
 
30972
if test "${ac_cv_search_sem_open+set}" = set; then :
41371
30973
  $as_echo_n "(cached) " >&6
41372
30974
else
41373
30975
  ac_func_search_save_LIBS=$LIBS
41374
 
cat >conftest.$ac_ext <<_ACEOF
41375
 
/* confdefs.h.  */
41376
 
_ACEOF
41377
 
cat confdefs.h >>conftest.$ac_ext
41378
 
cat >>conftest.$ac_ext <<_ACEOF
 
30976
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41379
30977
/* end confdefs.h.  */
41380
30978
 
41381
30979
/* Override any GCC internal prototype to avoid an error.
41400
30998
    ac_res=-l$ac_lib
41401
30999
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
41402
31000
  fi
41403
 
  rm -f conftest.$ac_objext conftest$ac_exeext
41404
 
if { (ac_try="$ac_link"
41405
 
case "(($ac_try" in
41406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41407
 
  *) ac_try_echo=$ac_try;;
41408
 
esac
41409
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41410
 
$as_echo "$ac_try_echo") >&5
41411
 
  (eval "$ac_link") 2>conftest.er1
41412
 
  ac_status=$?
41413
 
  grep -v '^ *+' conftest.er1 >conftest.err
41414
 
  rm -f conftest.er1
41415
 
  cat conftest.err >&5
41416
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41417
 
  (exit $ac_status); } && {
41418
 
         test -z "$ac_c_werror_flag" ||
41419
 
         test ! -s conftest.err
41420
 
       } && test -s conftest$ac_exeext && {
41421
 
         test "$cross_compiling" = yes ||
41422
 
         $as_test_x conftest$ac_exeext
41423
 
       }; then
 
31001
  if ac_fn_c_try_link "$LINENO"; then :
41424
31002
  ac_cv_search_sem_open=$ac_res
41425
 
else
41426
 
  $as_echo "$as_me: failed program was:" >&5
41427
 
sed 's/^/| /' conftest.$ac_ext >&5
41428
 
 
41429
 
 
41430
31003
fi
41431
 
 
41432
 
rm -rf conftest.dSYM
41433
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41434
 
      conftest$ac_exeext
41435
 
  if test "${ac_cv_search_sem_open+set}" = set; then
 
31004
rm -f core conftest.err conftest.$ac_objext \
 
31005
    conftest$ac_exeext
 
31006
  if test "${ac_cv_search_sem_open+set}" = set; then :
41436
31007
  break
41437
31008
fi
41438
31009
done
41439
 
if test "${ac_cv_search_sem_open+set}" = set; then
41440
 
  :
 
31010
if test "${ac_cv_search_sem_open+set}" = set; then :
 
31011
 
41441
31012
else
41442
31013
  ac_cv_search_sem_open=no
41443
31014
fi
41444
31015
rm conftest.$ac_ext
41445
31016
LIBS=$ac_func_search_save_LIBS
41446
31017
fi
41447
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_sem_open" >&5
 
31018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
41448
31019
$as_echo "$ac_cv_search_sem_open" >&6; }
41449
31020
ac_res=$ac_cv_search_sem_open
41450
 
if test "$ac_res" != no; then
 
31021
if test "$ac_res" != no; then :
41451
31022
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41452
31023
 
41453
31024
fi
41454
31025
 
41455
 
 
41456
 
 
41457
 
 
41458
 
 
41459
 
 
41460
31026
for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
41461
 
do
41462
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41463
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41464
 
$as_echo_n "checking for $ac_func... " >&6; }
41465
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41466
 
  $as_echo_n "(cached) " >&6
41467
 
else
41468
 
  cat >conftest.$ac_ext <<_ACEOF
41469
 
/* confdefs.h.  */
41470
 
_ACEOF
41471
 
cat confdefs.h >>conftest.$ac_ext
41472
 
cat >>conftest.$ac_ext <<_ACEOF
41473
 
/* end confdefs.h.  */
41474
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41475
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41476
 
#define $ac_func innocuous_$ac_func
41477
 
 
41478
 
/* System header to define __stub macros and hopefully few prototypes,
41479
 
    which can conflict with char $ac_func (); below.
41480
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41481
 
    <limits.h> exists even on freestanding compilers.  */
41482
 
 
41483
 
#ifdef __STDC__
41484
 
# include <limits.h>
41485
 
#else
41486
 
# include <assert.h>
41487
 
#endif
41488
 
 
41489
 
#undef $ac_func
41490
 
 
41491
 
/* Override any GCC internal prototype to avoid an error.
41492
 
   Use char because int might match the return type of a GCC
41493
 
   builtin and then its argument prototype would still apply.  */
41494
 
#ifdef __cplusplus
41495
 
extern "C"
41496
 
#endif
41497
 
char $ac_func ();
41498
 
/* The GNU C library defines this for functions which it implements
41499
 
    to always fail with ENOSYS.  Some functions are actually named
41500
 
    something starting with __ and the normal name is an alias.  */
41501
 
#if defined __stub_$ac_func || defined __stub___$ac_func
41502
 
choke me
41503
 
#endif
41504
 
 
41505
 
int
41506
 
main ()
41507
 
{
41508
 
return $ac_func ();
41509
 
  ;
41510
 
  return 0;
41511
 
}
41512
 
_ACEOF
41513
 
rm -f conftest.$ac_objext conftest$ac_exeext
41514
 
if { (ac_try="$ac_link"
41515
 
case "(($ac_try" in
41516
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41517
 
  *) ac_try_echo=$ac_try;;
41518
 
esac
41519
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41520
 
$as_echo "$ac_try_echo") >&5
41521
 
  (eval "$ac_link") 2>conftest.er1
41522
 
  ac_status=$?
41523
 
  grep -v '^ *+' conftest.er1 >conftest.err
41524
 
  rm -f conftest.er1
41525
 
  cat conftest.err >&5
41526
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41527
 
  (exit $ac_status); } && {
41528
 
         test -z "$ac_c_werror_flag" ||
41529
 
         test ! -s conftest.err
41530
 
       } && test -s conftest$ac_exeext && {
41531
 
         test "$cross_compiling" = yes ||
41532
 
         $as_test_x conftest$ac_exeext
41533
 
       }; then
41534
 
  eval "$as_ac_var=yes"
41535
 
else
41536
 
  $as_echo "$as_me: failed program was:" >&5
41537
 
sed 's/^/| /' conftest.$ac_ext >&5
41538
 
 
41539
 
        eval "$as_ac_var=no"
41540
 
fi
41541
 
 
41542
 
rm -rf conftest.dSYM
41543
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41544
 
      conftest$ac_exeext conftest.$ac_ext
41545
 
fi
41546
 
ac_res=`eval 'as_val=${'$as_ac_var'}
41547
 
                 $as_echo "$as_val"'`
41548
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41549
 
$as_echo "$ac_res" >&6; }
41550
 
as_val=`eval 'as_val=${'$as_ac_var'}
41551
 
                 $as_echo "$as_val"'`
41552
 
   if test "x$as_val" = x""yes; then
 
31027
do :
 
31028
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
31029
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
31030
eval as_val=\$$as_ac_var
 
31031
   if test "x$as_val" = x""yes; then :
41553
31032
  cat >>confdefs.h <<_ACEOF
41554
31033
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41555
31034
_ACEOF
41559
31038
 
41560
31039
 
41561
31040
# Some systems return ENOSYS from sem_open.
41562
 
{ $as_echo "$as_me:$LINENO: checking for working sem_open" >&5
 
31041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
41563
31042
$as_echo_n "checking for working sem_open... " >&6; }
41564
 
if test "${ac_cv_func_sem_open+set}" = set; then
 
31043
if test "${ac_cv_func_sem_open+set}" = set; then :
41565
31044
  $as_echo_n "(cached) " >&6
41566
31045
else
41567
31046
 
41568
 
if test "$cross_compiling" = yes; then
 
31047
if test "$cross_compiling" = yes; then :
41569
31048
  ac_cv_func_sem_open=no
41570
31049
else
41571
 
  cat >conftest.$ac_ext <<_ACEOF
41572
 
/* confdefs.h.  */
41573
 
_ACEOF
41574
 
cat confdefs.h >>conftest.$ac_ext
41575
 
cat >>conftest.$ac_ext <<_ACEOF
 
31050
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41576
31051
/* end confdefs.h.  */
41577
31052
 
41578
31053
#include <errno.h>
41601
31076
    exit(0);
41602
31077
}
41603
31078
_ACEOF
41604
 
rm -f conftest$ac_exeext
41605
 
if { (ac_try="$ac_link"
41606
 
case "(($ac_try" in
41607
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41608
 
  *) ac_try_echo=$ac_try;;
41609
 
esac
41610
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41611
 
$as_echo "$ac_try_echo") >&5
41612
 
  (eval "$ac_link") 2>&5
41613
 
  ac_status=$?
41614
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41615
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41616
 
  { (case "(($ac_try" in
41617
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41618
 
  *) ac_try_echo=$ac_try;;
41619
 
esac
41620
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41621
 
$as_echo "$ac_try_echo") >&5
41622
 
  (eval "$ac_try") 2>&5
41623
 
  ac_status=$?
41624
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625
 
  (exit $ac_status); }; }; then
 
31079
if ac_fn_c_try_run "$LINENO"; then :
41626
31080
  ac_cv_func_sem_open=yes
41627
31081
else
41628
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
41629
 
$as_echo "$as_me: failed program was:" >&5
41630
 
sed 's/^/| /' conftest.$ac_ext >&5
41631
 
 
41632
 
( exit $ac_status )
41633
 
ac_cv_func_sem_open=no
41634
 
fi
41635
 
rm -rf conftest.dSYM
41636
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41637
 
fi
41638
 
 
41639
 
 
41640
 
fi
41641
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_open" >&5
 
31082
  ac_cv_func_sem_open=no
 
31083
fi
 
31084
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
31085
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
31086
fi
 
31087
 
 
31088
fi
 
31089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
41642
31090
$as_echo "$ac_cv_func_sem_open" >&6; }
41643
31091
 
41644
31092
# It's stupid, but not all platforms have union semun, even those that need it.
41645
 
{ $as_echo "$as_me:$LINENO: checking for union semun in sys/sem.h" >&5
 
31093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
41646
31094
$as_echo_n "checking for union semun in sys/sem.h... " >&6; }
41647
 
cat >conftest.$ac_ext <<_ACEOF
41648
 
/* confdefs.h.  */
41649
 
_ACEOF
41650
 
cat confdefs.h >>conftest.$ac_ext
41651
 
cat >>conftest.$ac_ext <<_ACEOF
 
31095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41652
31096
/* end confdefs.h.  */
41653
31097
 
41654
31098
#include <sys/types.h>
41666
31110
  return 0;
41667
31111
}
41668
31112
_ACEOF
41669
 
rm -f conftest.$ac_objext
41670
 
if { (ac_try="$ac_compile"
41671
 
case "(($ac_try" in
41672
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41673
 
  *) ac_try_echo=$ac_try;;
41674
 
esac
41675
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41676
 
$as_echo "$ac_try_echo") >&5
41677
 
  (eval "$ac_compile") 2>conftest.er1
41678
 
  ac_status=$?
41679
 
  grep -v '^ *+' conftest.er1 >conftest.err
41680
 
  rm -f conftest.er1
41681
 
  cat conftest.err >&5
41682
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683
 
  (exit $ac_status); } && {
41684
 
         test -z "$ac_c_werror_flag" ||
41685
 
         test ! -s conftest.err
41686
 
       } && test -s conftest.$ac_objext; then
 
31113
if ac_fn_c_try_compile "$LINENO"; then :
41687
31114
  have_union_semun="1" union_semun=yes
41688
31115
msg=yes
41689
31116
else
41690
 
  $as_echo "$as_me: failed program was:" >&5
41691
 
sed 's/^/| /' conftest.$ac_ext >&5
41692
 
 
41693
31117
 
41694
31118
have_union_semun="0"
41695
31119
msg=no
41696
31120
fi
41697
 
 
41698
31121
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41699
 
{ $as_echo "$as_me:$LINENO: result: $msg" >&5
 
31122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
41700
31123
$as_echo "$msg" >&6; }
41701
31124
 
41702
31125
 
41703
31126
 
41704
 
  { $as_echo "$as_me:$LINENO: checking for LOCK_EX in sys/file.h" >&5
 
31127
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
41705
31128
$as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
41706
 
if test "${ac_cv_define_LOCK_EX+set}" = set; then
 
31129
if test "${ac_cv_define_LOCK_EX+set}" = set; then :
41707
31130
  $as_echo_n "(cached) " >&6
41708
31131
else
41709
31132
 
41710
 
    cat >conftest.$ac_ext <<_ACEOF
41711
 
/* confdefs.h.  */
41712
 
_ACEOF
41713
 
cat confdefs.h >>conftest.$ac_ext
41714
 
cat >>conftest.$ac_ext <<_ACEOF
 
31133
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41715
31134
/* end confdefs.h.  */
41716
31135
 
41717
31136
#include <sys/file.h>
41721
31140
 
41722
31141
_ACEOF
41723
31142
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41724
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
31143
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
41725
31144
  ac_cv_define_LOCK_EX=yes
41726
31145
else
41727
31146
  ac_cv_define_LOCK_EX=no
41730
31149
 
41731
31150
 
41732
31151
fi
41733
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_LOCK_EX" >&5
 
31152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
41734
31153
$as_echo "$ac_cv_define_LOCK_EX" >&6; }
41735
31154
  if test "$ac_cv_define_LOCK_EX" = "yes"; then
41736
31155
 
41737
 
cat >>confdefs.h <<\_ACEOF
41738
 
#define HAVE_LOCK_EX 1
41739
 
_ACEOF
 
31156
$as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
41740
31157
 
41741
31158
  fi
41742
31159
 
41743
31160
 
41744
 
  { $as_echo "$as_me:$LINENO: checking for F_SETLK in fcntl.h" >&5
 
31161
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
41745
31162
$as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
41746
 
if test "${ac_cv_define_F_SETLK+set}" = set; then
 
31163
if test "${ac_cv_define_F_SETLK+set}" = set; then :
41747
31164
  $as_echo_n "(cached) " >&6
41748
31165
else
41749
31166
 
41750
 
    cat >conftest.$ac_ext <<_ACEOF
41751
 
/* confdefs.h.  */
41752
 
_ACEOF
41753
 
cat confdefs.h >>conftest.$ac_ext
41754
 
cat >>conftest.$ac_ext <<_ACEOF
 
31167
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41755
31168
/* end confdefs.h.  */
41756
31169
 
41757
31170
#include <fcntl.h>
41761
31174
 
41762
31175
_ACEOF
41763
31176
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41764
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
31177
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
41765
31178
  ac_cv_define_F_SETLK=yes
41766
31179
else
41767
31180
  ac_cv_define_F_SETLK=no
41770
31183
 
41771
31184
 
41772
31185
fi
41773
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_F_SETLK" >&5
 
31186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
41774
31187
$as_echo "$ac_cv_define_F_SETLK" >&6; }
41775
31188
  if test "$ac_cv_define_F_SETLK" = "yes"; then
41776
31189
 
41777
 
cat >>confdefs.h <<\_ACEOF
41778
 
#define HAVE_F_SETLK 1
41779
 
_ACEOF
 
31190
$as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
41780
31191
 
41781
31192
  fi
41782
31193
 
41783
31194
 
41784
 
  { $as_echo "$as_me:$LINENO: checking for SEM_UNDO in sys/sem.h" >&5
 
31195
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
41785
31196
$as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
41786
 
if test "${ac_cv_define_SEM_UNDO+set}" = set; then
 
31197
if test "${ac_cv_define_SEM_UNDO+set}" = set; then :
41787
31198
  $as_echo_n "(cached) " >&6
41788
31199
else
41789
31200
 
41790
 
    cat >conftest.$ac_ext <<_ACEOF
41791
 
/* confdefs.h.  */
41792
 
_ACEOF
41793
 
cat confdefs.h >>conftest.$ac_ext
41794
 
cat >>conftest.$ac_ext <<_ACEOF
 
31201
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41795
31202
/* end confdefs.h.  */
41796
31203
 
41797
31204
#include <sys/sem.h>
41801
31208
 
41802
31209
_ACEOF
41803
31210
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41804
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
31211
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
41805
31212
  ac_cv_define_SEM_UNDO=yes
41806
31213
else
41807
31214
  ac_cv_define_SEM_UNDO=no
41810
31217
 
41811
31218
 
41812
31219
fi
41813
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_SEM_UNDO" >&5
 
31220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
41814
31221
$as_echo "$ac_cv_define_SEM_UNDO" >&6; }
41815
31222
  if test "$ac_cv_define_SEM_UNDO" = "yes"; then
41816
31223
 
41817
 
cat >>confdefs.h <<\_ACEOF
41818
 
#define HAVE_SEM_UNDO 1
41819
 
_ACEOF
 
31224
$as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
41820
31225
 
41821
31226
  fi
41822
31227
 
41824
31229
# We are assuming that if the platform doesn't have POLLIN, it doesn't have
41825
31230
# any POLL definitions.
41826
31231
 
41827
 
  { $as_echo "$as_me:$LINENO: checking for POLLIN in poll.h sys/poll.h" >&5
 
31232
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
41828
31233
$as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
41829
 
if test "${ac_cv_define_POLLIN+set}" = set; then
 
31234
if test "${ac_cv_define_POLLIN+set}" = set; then :
41830
31235
  $as_echo_n "(cached) " >&6
41831
31236
else
41832
31237
 
41833
31238
    ac_cv_define_POLLIN=no
41834
31239
    for curhdr in poll.h sys/poll.h
41835
31240
    do
41836
 
      cat >conftest.$ac_ext <<_ACEOF
41837
 
/* confdefs.h.  */
41838
 
_ACEOF
41839
 
cat confdefs.h >>conftest.$ac_ext
41840
 
cat >>conftest.$ac_ext <<_ACEOF
 
31241
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41841
31242
/* end confdefs.h.  */
41842
31243
 
41843
31244
#include <$curhdr>
41847
31248
 
41848
31249
_ACEOF
41849
31250
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41850
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
31251
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
41851
31252
  ac_cv_define_POLLIN=yes
41852
31253
fi
41853
31254
rm -f conftest*
41855
31256
    done
41856
31257
 
41857
31258
fi
41858
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_POLLIN" >&5
 
31259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
41859
31260
$as_echo "$ac_cv_define_POLLIN" >&6; }
41860
31261
  if test "$ac_cv_define_POLLIN" = "yes"; then
41861
31262
 
41862
 
cat >>confdefs.h <<\_ACEOF
41863
 
#define HAVE_POLLIN 1
41864
 
_ACEOF
 
31263
$as_echo "#define HAVE_POLLIN 1" >>confdefs.h
41865
31264
 
41866
31265
  fi
41867
31266
 
41868
31267
 
41869
31268
if test "$threads" = "1"; then
41870
31269
 
41871
 
  { $as_echo "$as_me:$LINENO: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
 
31270
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
41872
31271
$as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
41873
 
if test "${ac_cv_define_PTHREAD_PROCESS_SHARED+set}" = set; then
 
31272
if test "${ac_cv_define_PTHREAD_PROCESS_SHARED+set}" = set; then :
41874
31273
  $as_echo_n "(cached) " >&6
41875
31274
else
41876
31275
 
41877
 
    cat >conftest.$ac_ext <<_ACEOF
41878
 
/* confdefs.h.  */
41879
 
_ACEOF
41880
 
cat confdefs.h >>conftest.$ac_ext
41881
 
cat >>conftest.$ac_ext <<_ACEOF
 
31276
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41882
31277
/* end confdefs.h.  */
41883
31278
 
41884
31279
#include <pthread.h>
41888
31283
 
41889
31284
_ACEOF
41890
31285
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41891
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
31286
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
41892
31287
  ac_cv_define_PTHREAD_PROCESS_SHARED=yes
41893
31288
else
41894
31289
  ac_cv_define_PTHREAD_PROCESS_SHARED=no
41897
31292
 
41898
31293
 
41899
31294
fi
41900
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
 
31295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
41901
31296
$as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
41902
31297
  if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
41903
31298
 
41904
 
cat >>confdefs.h <<\_ACEOF
41905
 
#define HAVE_PTHREAD_PROCESS_SHARED 1
41906
 
_ACEOF
 
31299
$as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
41907
31300
 
41908
31301
  fi
41909
31302
 
41910
 
 
41911
 
for ac_func in pthread_mutexattr_setpshared
41912
 
do
41913
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41914
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41915
 
$as_echo_n "checking for $ac_func... " >&6; }
41916
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41917
 
  $as_echo_n "(cached) " >&6
41918
 
else
41919
 
  cat >conftest.$ac_ext <<_ACEOF
41920
 
/* confdefs.h.  */
41921
 
_ACEOF
41922
 
cat confdefs.h >>conftest.$ac_ext
41923
 
cat >>conftest.$ac_ext <<_ACEOF
41924
 
/* end confdefs.h.  */
41925
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41926
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41927
 
#define $ac_func innocuous_$ac_func
41928
 
 
41929
 
/* System header to define __stub macros and hopefully few prototypes,
41930
 
    which can conflict with char $ac_func (); below.
41931
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41932
 
    <limits.h> exists even on freestanding compilers.  */
41933
 
 
41934
 
#ifdef __STDC__
41935
 
# include <limits.h>
41936
 
#else
41937
 
# include <assert.h>
41938
 
#endif
41939
 
 
41940
 
#undef $ac_func
41941
 
 
41942
 
/* Override any GCC internal prototype to avoid an error.
41943
 
   Use char because int might match the return type of a GCC
41944
 
   builtin and then its argument prototype would still apply.  */
41945
 
#ifdef __cplusplus
41946
 
extern "C"
41947
 
#endif
41948
 
char $ac_func ();
41949
 
/* The GNU C library defines this for functions which it implements
41950
 
    to always fail with ENOSYS.  Some functions are actually named
41951
 
    something starting with __ and the normal name is an alias.  */
41952
 
#if defined __stub_$ac_func || defined __stub___$ac_func
41953
 
choke me
41954
 
#endif
41955
 
 
41956
 
int
41957
 
main ()
41958
 
{
41959
 
return $ac_func ();
41960
 
  ;
41961
 
  return 0;
41962
 
}
41963
 
_ACEOF
41964
 
rm -f conftest.$ac_objext conftest$ac_exeext
41965
 
if { (ac_try="$ac_link"
41966
 
case "(($ac_try" in
41967
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41968
 
  *) ac_try_echo=$ac_try;;
41969
 
esac
41970
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41971
 
$as_echo "$ac_try_echo") >&5
41972
 
  (eval "$ac_link") 2>conftest.er1
41973
 
  ac_status=$?
41974
 
  grep -v '^ *+' conftest.er1 >conftest.err
41975
 
  rm -f conftest.er1
41976
 
  cat conftest.err >&5
41977
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41978
 
  (exit $ac_status); } && {
41979
 
         test -z "$ac_c_werror_flag" ||
41980
 
         test ! -s conftest.err
41981
 
       } && test -s conftest$ac_exeext && {
41982
 
         test "$cross_compiling" = yes ||
41983
 
         $as_test_x conftest$ac_exeext
41984
 
       }; then
41985
 
  eval "$as_ac_var=yes"
41986
 
else
41987
 
  $as_echo "$as_me: failed program was:" >&5
41988
 
sed 's/^/| /' conftest.$ac_ext >&5
41989
 
 
41990
 
        eval "$as_ac_var=no"
41991
 
fi
41992
 
 
41993
 
rm -rf conftest.dSYM
41994
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41995
 
      conftest$ac_exeext conftest.$ac_ext
41996
 
fi
41997
 
ac_res=`eval 'as_val=${'$as_ac_var'}
41998
 
                 $as_echo "$as_val"'`
41999
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42000
 
$as_echo "$ac_res" >&6; }
42001
 
as_val=`eval 'as_val=${'$as_ac_var'}
42002
 
                 $as_echo "$as_val"'`
42003
 
   if test "x$as_val" = x""yes; then
 
31303
    for ac_func in pthread_mutexattr_setpshared
 
31304
do :
 
31305
  ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
 
31306
if test "x$ac_cv_func_pthread_mutexattr_setpshared" = x""yes; then :
42004
31307
  cat >>confdefs.h <<_ACEOF
42005
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
31308
#define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
42006
31309
_ACEOF
42007
31310
 
42008
31311
fi
42039
31342
if test ".$ac_rc" = .yes; then
42040
31343
    :
42041
31344
 
42042
 
      { $as_echo "$as_me:$LINENO: checking for working PROCESS_SHARED locks" >&5
 
31345
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
42043
31346
$as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
42044
 
if test "${apr_cv_process_shared_works+set}" = set; then
 
31347
if test "${apr_cv_process_shared_works+set}" = set; then :
42045
31348
  $as_echo_n "(cached) " >&6
42046
31349
else
42047
31350
 
42048
 
      if test "$cross_compiling" = yes; then
42049
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
31351
      if test "$cross_compiling" = yes; then :
 
31352
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42050
31353
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42051
 
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42052
 
See \`config.log' for more details." >&5
42053
 
$as_echo "$as_me: error: cannot run test program while cross compiling
42054
 
See \`config.log' for more details." >&2;}
42055
 
   { (exit 1); exit 1; }; }; }
 
31354
as_fn_error "cannot run test program while cross compiling
 
31355
See \`config.log' for more details." "$LINENO" 5; }
42056
31356
else
42057
 
  cat >conftest.$ac_ext <<_ACEOF
42058
 
/* confdefs.h.  */
42059
 
_ACEOF
42060
 
cat confdefs.h >>conftest.$ac_ext
42061
 
cat >>conftest.$ac_ext <<_ACEOF
 
31357
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42062
31358
/* end confdefs.h.  */
42063
31359
 
42064
31360
#include <sys/types.h>
42080
31376
            exit(0);
42081
31377
        }
42082
31378
_ACEOF
42083
 
rm -f conftest$ac_exeext
42084
 
if { (ac_try="$ac_link"
42085
 
case "(($ac_try" in
42086
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42087
 
  *) ac_try_echo=$ac_try;;
42088
 
esac
42089
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42090
 
$as_echo "$ac_try_echo") >&5
42091
 
  (eval "$ac_link") 2>&5
42092
 
  ac_status=$?
42093
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42094
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42095
 
  { (case "(($ac_try" in
42096
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42097
 
  *) ac_try_echo=$ac_try;;
42098
 
esac
42099
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42100
 
$as_echo "$ac_try_echo") >&5
42101
 
  (eval "$ac_try") 2>&5
42102
 
  ac_status=$?
42103
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42104
 
  (exit $ac_status); }; }; then
 
31379
if ac_fn_c_try_run "$LINENO"; then :
42105
31380
  apr_cv_process_shared_works=yes
42106
31381
else
42107
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
42108
 
$as_echo "$as_me: failed program was:" >&5
42109
 
sed 's/^/| /' conftest.$ac_ext >&5
42110
 
 
42111
 
( exit $ac_status )
42112
 
apr_cv_process_shared_works=no
42113
 
fi
42114
 
rm -rf conftest.dSYM
42115
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42116
 
fi
42117
 
 
42118
 
 
42119
 
fi
42120
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_process_shared_works" >&5
 
31382
  apr_cv_process_shared_works=no
 
31383
fi
 
31384
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
31385
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
31386
fi
 
31387
 
 
31388
fi
 
31389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
42121
31390
$as_echo "$apr_cv_process_shared_works" >&6; }
42122
31391
      # Override detection of pthread_mutexattr_setpshared
42123
31392
      ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
42129
31398
 
42130
31399
    if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
42131
31400
 
42132
 
{ $as_echo "$as_me:$LINENO: checking for robust cross-process mutex support" >&5
 
31401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
42133
31402
$as_echo_n "checking for robust cross-process mutex support... " >&6; }
42134
 
if test "${apr_cv_mutex_robust_shared+set}" = set; then
 
31403
if test "${apr_cv_mutex_robust_shared+set}" = set; then :
42135
31404
  $as_echo_n "(cached) " >&6
42136
31405
else
42137
 
  if test "$cross_compiling" = yes; then
42138
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
31406
  if test "$cross_compiling" = yes; then :
 
31407
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42139
31408
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42140
 
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42141
 
See \`config.log' for more details." >&5
42142
 
$as_echo "$as_me: error: cannot run test program while cross compiling
42143
 
See \`config.log' for more details." >&2;}
42144
 
   { (exit 1); exit 1; }; }; }
 
31409
as_fn_error "cannot run test program while cross compiling
 
31410
See \`config.log' for more details." "$LINENO" 5; }
42145
31411
else
42146
 
  cat >conftest.$ac_ext <<_ACEOF
42147
 
/* confdefs.h.  */
42148
 
_ACEOF
42149
 
cat confdefs.h >>conftest.$ac_ext
42150
 
cat >>conftest.$ac_ext <<_ACEOF
 
31412
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42151
31413
/* end confdefs.h.  */
42152
31414
 
42153
31415
#include <sys/types.h>
42177
31439
    exit(0);
42178
31440
}
42179
31441
_ACEOF
42180
 
rm -f conftest$ac_exeext
42181
 
if { (ac_try="$ac_link"
42182
 
case "(($ac_try" in
42183
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42184
 
  *) ac_try_echo=$ac_try;;
42185
 
esac
42186
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42187
 
$as_echo "$ac_try_echo") >&5
42188
 
  (eval "$ac_link") 2>&5
42189
 
  ac_status=$?
42190
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42192
 
  { (case "(($ac_try" in
42193
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42194
 
  *) ac_try_echo=$ac_try;;
42195
 
esac
42196
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42197
 
$as_echo "$ac_try_echo") >&5
42198
 
  (eval "$ac_try") 2>&5
42199
 
  ac_status=$?
42200
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42201
 
  (exit $ac_status); }; }; then
 
31442
if ac_fn_c_try_run "$LINENO"; then :
42202
31443
  apr_cv_mutex_robust_shared=yes
42203
31444
else
42204
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
42205
 
$as_echo "$as_me: failed program was:" >&5
42206
 
sed 's/^/| /' conftest.$ac_ext >&5
42207
 
 
42208
 
( exit $ac_status )
42209
 
apr_cv_mutex_robust_shared=no
42210
 
fi
42211
 
rm -rf conftest.dSYM
42212
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42213
 
fi
42214
 
 
42215
 
 
42216
 
fi
42217
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_mutex_robust_shared" >&5
 
31445
  apr_cv_mutex_robust_shared=no
 
31446
fi
 
31447
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
31448
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
31449
fi
 
31450
 
 
31451
fi
 
31452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
42218
31453
$as_echo "$apr_cv_mutex_robust_shared" >&6; }
42219
31454
 
42220
31455
if test "$apr_cv_mutex_robust_shared" = "yes"; then
42221
31456
 
42222
 
cat >>confdefs.h <<\_ACEOF
42223
 
#define HAVE_PTHREAD_MUTEX_ROBUST 1
42224
 
_ACEOF
 
31457
$as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
42225
31458
 
42226
31459
fi
42227
31460
 
42464
31697
if test ".$ac_rc" = .yes; then
42465
31698
    :
42466
31699
 
42467
 
 
42468
31700
ac_decision='USE_FLOCK_SERIALIZE'
42469
31701
ac_decision_msg='4.2BSD-style flock()'
42470
31702
ac_decision_USE_FLOCK_SERIALIZE=yes
42502
31734
if test ".$ac_rc" = .yes; then
42503
31735
    :
42504
31736
 
42505
 
 
42506
31737
ac_decision='USE_FCNTL_SERIALIZE'
42507
31738
ac_decision_msg='SVR4-style fcntl()'
42508
31739
ac_decision_USE_FCNTL_SERIALIZE=yes
42540
31771
if test ".$ac_rc" = .yes; then
42541
31772
    :
42542
31773
 
42543
 
 
42544
31774
ac_decision='USE_SYSVSEM_SERIALIZE'
42545
31775
ac_decision_msg='SysV IPC semget()'
42546
31776
ac_decision_USE_SYSVSEM_SERIALIZE=yes
42578
31808
if test ".$ac_rc" = .yes; then
42579
31809
    :
42580
31810
 
42581
 
 
42582
31811
ac_decision='USE_BEOSSEM'
42583
31812
ac_decision_msg='BeOS Semaphores'
42584
31813
ac_decision_USE_BEOSSEM=yes
42605
31834
#define ${ac_decision_item} 1
42606
31835
_ACEOF
42607
31836
 
42608
 
    { $as_echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5
 
31837
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
42609
31838
$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
42610
31839
fi
42611
31840
 
42641
31870
esac
42642
31871
 
42643
31872
if test $hasfcntlser = "1"; then
42644
 
{ $as_echo "$as_me:$LINENO: checking if fcntl returns EACCES when F_SETLK is already held" >&5
 
31873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
42645
31874
$as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
42646
 
if test "$cross_compiling" = yes; then
 
31875
if test "$cross_compiling" = yes; then :
42647
31876
  apr_fcntl_tryacquire_eacces=0
42648
31877
else
42649
 
  cat >conftest.$ac_ext <<_ACEOF
42650
 
/* confdefs.h.  */
42651
 
_ACEOF
42652
 
cat confdefs.h >>conftest.$ac_ext
42653
 
cat >>conftest.$ac_ext <<_ACEOF
 
31878
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42654
31879
/* end confdefs.h.  */
42655
31880
 
42656
31881
#ifdef HAVE_STDLIB_H
42708
31933
    return (rc < 0) ? errno : 0;
42709
31934
}
42710
31935
_ACEOF
42711
 
rm -f conftest$ac_exeext
42712
 
if { (ac_try="$ac_link"
42713
 
case "(($ac_try" in
42714
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42715
 
  *) ac_try_echo=$ac_try;;
42716
 
esac
42717
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42718
 
$as_echo "$ac_try_echo") >&5
42719
 
  (eval "$ac_link") 2>&5
42720
 
  ac_status=$?
42721
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42722
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42723
 
  { (case "(($ac_try" in
42724
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42725
 
  *) ac_try_echo=$ac_try;;
42726
 
esac
42727
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42728
 
$as_echo "$ac_try_echo") >&5
42729
 
  (eval "$ac_try") 2>&5
42730
 
  ac_status=$?
42731
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42732
 
  (exit $ac_status); }; }; then
 
31936
if ac_fn_c_try_run "$LINENO"; then :
42733
31937
  apr_fcntl_tryacquire_eacces=1
42734
31938
else
42735
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
42736
 
$as_echo "$as_me: failed program was:" >&5
42737
 
sed 's/^/| /' conftest.$ac_ext >&5
42738
 
 
42739
 
( exit $ac_status )
42740
 
apr_fcntl_tryacquire_eacces=0
42741
 
fi
42742
 
rm -rf conftest.dSYM
42743
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42744
 
fi
42745
 
 
 
31939
  apr_fcntl_tryacquire_eacces=0
 
31940
fi
 
31941
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
31942
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
31943
fi
42746
31944
 
42747
31945
fi
42748
31946
 
42749
31947
if test "$apr_fcntl_tryacquire_eacces" = "1"; then
42750
31948
 
42751
 
cat >>confdefs.h <<\_ACEOF
42752
 
#define FCNTL_TRYACQUIRE_EACCES 1
42753
 
_ACEOF
 
31949
$as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
42754
31950
 
42755
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31951
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42756
31952
$as_echo "yes" >&6; }
42757
31953
else
42758
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31954
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42759
31955
$as_echo "no" >&6; }
42760
31956
fi
42761
31957
 
42772
31968
 
42773
31969
 
42774
31970
 
42775
 
{ $as_echo "$as_me:$LINENO: checking if all interprocess locks affect threads" >&5
 
31971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
42776
31972
$as_echo_n "checking if all interprocess locks affect threads... " >&6; }
42777
31973
if test "x$apr_process_lock_is_global" = "xyes"; then
42778
31974
    proclockglobal="1"
42779
 
    { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31975
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42780
31976
$as_echo "yes" >&6; }
42781
31977
else
42782
31978
    proclockglobal="0"
42783
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
31979
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42784
31980
$as_echo "no" >&6; }
42785
31981
fi
42786
31982
 
42787
31983
 
42788
31984
 
42789
 
{ $as_echo "$as_me:$LINENO: checking if POSIX sems affect threads in the same process" >&5
 
31985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
42790
31986
$as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
42791
31987
if test "x$apr_posixsem_is_global" = "xyes"; then
42792
31988
 
42793
 
cat >>confdefs.h <<\_ACEOF
42794
 
#define POSIXSEM_IS_GLOBAL 1
42795
 
_ACEOF
 
31989
$as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
42796
31990
 
42797
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
31991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42798
31992
$as_echo "yes" >&6; }
42799
31993
else
42800
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
31994
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42801
31995
$as_echo "no" >&6; }
42802
31996
fi
42803
31997
 
42804
 
{ $as_echo "$as_me:$LINENO: checking if SysV sems affect threads in the same process" >&5
 
31998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
42805
31999
$as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
42806
32000
if test "x$apr_sysvsem_is_global" = "xyes"; then
42807
32001
 
42808
 
cat >>confdefs.h <<\_ACEOF
42809
 
#define SYSVSEM_IS_GLOBAL 1
42810
 
_ACEOF
 
32002
$as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
42811
32003
 
42812
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
32004
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42813
32005
$as_echo "yes" >&6; }
42814
32006
else
42815
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
32007
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42816
32008
$as_echo "no" >&6; }
42817
32009
fi
42818
32010
 
42819
 
{ $as_echo "$as_me:$LINENO: checking if fcntl locks affect threads in the same process" >&5
 
32011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
42820
32012
$as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
42821
32013
if test "x$apr_fcntl_is_global" = "xyes"; then
42822
32014
 
42823
 
cat >>confdefs.h <<\_ACEOF
42824
 
#define FCNTL_IS_GLOBAL 1
42825
 
_ACEOF
 
32015
$as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
42826
32016
 
42827
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
32017
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42828
32018
$as_echo "yes" >&6; }
42829
32019
else
42830
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
32020
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42831
32021
$as_echo "no" >&6; }
42832
32022
fi
42833
32023
 
42834
 
{ $as_echo "$as_me:$LINENO: checking if flock locks affect threads in the same process" >&5
 
32024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
42835
32025
$as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
42836
32026
if test "x$apr_flock_is_global" = "xyes"; then
42837
32027
 
42838
 
cat >>confdefs.h <<\_ACEOF
42839
 
#define FLOCK_IS_GLOBAL 1
42840
 
_ACEOF
 
32028
$as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
42841
32029
 
42842
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
32030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42843
32031
$as_echo "yes" >&6; }
42844
32032
else
42845
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
32033
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42846
32034
$as_echo "no" >&6; }
42847
32035
fi
42848
32036
 
42849
 
{ $as_echo "$as_me:$LINENO: checking for entropy source" >&5
 
32037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
42850
32038
$as_echo_n "checking for entropy source... " >&6; }
42851
32039
 
42852
32040
why_no_rand=""
42853
32041
 
42854
32042
 
42855
32043
# Check whether --with-egd was given.
42856
 
if test "${with_egd+set}" = set; then
 
32044
if test "${with_egd+set}" = set; then :
42857
32045
  withval=$with_egd;
42858
 
cat >>confdefs.h <<\_ACEOF
42859
 
#define HAVE_EGD 1
42860
 
_ACEOF
 
32046
$as_echo "#define HAVE_EGD 1" >>confdefs.h
42861
32047
 
42862
32048
    if test "$withval" = "yes"; then
42863
32049
 
42871
32057
_ACEOF
42872
32058
 
42873
32059
    fi
42874
 
    { $as_echo "$as_me:$LINENO: result: EGD-compatible daemon" >&5
 
32060
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
42875
32061
$as_echo "EGD-compatible daemon" >&6; }
42876
32062
    rand="1"
42877
32063
 
42881
32067
if test "$rand" != "1"; then
42882
32068
 
42883
32069
# Check whether --with-devrandom was given.
42884
 
if test "${with_devrandom+set}" = set; then
 
32070
if test "${with_devrandom+set}" = set; then :
42885
32071
  withval=$with_devrandom;  apr_devrandom="$withval"
42886
32072
else
42887
32073
   apr_devrandom="yes"
42902
32088
    if test -r "$apr_devrandom"; then
42903
32089
      rand="1"
42904
32090
    else
42905
 
      { { $as_echo "$as_me:$LINENO: error: $apr_devrandom not found or unreadable." >&5
42906
 
$as_echo "$as_me: error: $apr_devrandom not found or unreadable." >&2;}
42907
 
   { (exit 1); exit 1; }; }
 
32091
      as_fn_error "$apr_devrandom not found or unreadable." "$LINENO" 5
42908
32092
    fi
42909
32093
  fi
42910
32094
 
42925
32109
#define DEV_RANDOM "$apr_devrandom"
42926
32110
_ACEOF
42927
32111
 
42928
 
    { $as_echo "$as_me:$LINENO: result: $apr_devrandom" >&5
 
32112
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
42929
32113
$as_echo "$apr_devrandom" >&6; }
42930
32114
  fi
42931
32115
fi
42934
32118
    case $host in
42935
32119
        # we have built in support for OS/2
42936
32120
        *-os2*)
42937
 
            { $as_echo "$as_me:$LINENO: result: Using OS/2 builtin random" >&5
 
32121
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
42938
32122
$as_echo "Using OS/2 builtin random" >&6; }
42939
32123
            rand="1"
42940
32124
            ;;
42942
32126
            if test "$rand" != "1"; then
42943
32127
              if test "$ac_cv_lib_truerand_main" = "yes"; then
42944
32128
 
42945
 
cat >>confdefs.h <<\_ACEOF
42946
 
#define HAVE_TRUERAND 1
42947
 
_ACEOF
 
32129
$as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
42948
32130
 
42949
 
                { $as_echo "$as_me:$LINENO: result: truerand" >&5
 
32131
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
42950
32132
$as_echo "truerand" >&6; }
42951
32133
                rand="1"
42952
32134
              else
42953
 
                { $as_echo "$as_me:$LINENO: result: not found$why_no_rand" >&5
 
32135
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
42954
32136
$as_echo "not found$why_no_rand" >&6; }
42955
32137
                rand="0"
42956
32138
              fi
42962
32144
 
42963
32145
 
42964
32146
echo "${nl}Checking for File Info Support..."
42965
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
42966
 
$as_echo_n "checking for struct stat.st_blocks... " >&6; }
42967
 
if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
42968
 
  $as_echo_n "(cached) " >&6
42969
 
else
42970
 
  cat >conftest.$ac_ext <<_ACEOF
42971
 
/* confdefs.h.  */
42972
 
_ACEOF
42973
 
cat confdefs.h >>conftest.$ac_ext
42974
 
cat >>conftest.$ac_ext <<_ACEOF
42975
 
/* end confdefs.h.  */
42976
 
 
42977
 
#ifdef HAVE_SYS_TYPES_H
42978
 
#include <sys/types.h>
42979
 
#endif
42980
 
#ifdef HAVE_SYS_STAT_H
42981
 
#include <sys/stat.h>
42982
 
#endif
42983
 
#ifdef HAVE_UNISTD_H
42984
 
#include <unistd.h>
42985
 
#endif
42986
 
 
42987
 
int
42988
 
main ()
42989
 
{
42990
 
static struct stat ac_aggr;
42991
 
if (ac_aggr.st_blocks)
42992
 
return 0;
42993
 
  ;
42994
 
  return 0;
42995
 
}
42996
 
_ACEOF
42997
 
rm -f conftest.$ac_objext
42998
 
if { (ac_try="$ac_compile"
42999
 
case "(($ac_try" in
43000
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43001
 
  *) ac_try_echo=$ac_try;;
43002
 
esac
43003
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43004
 
$as_echo "$ac_try_echo") >&5
43005
 
  (eval "$ac_compile") 2>conftest.er1
43006
 
  ac_status=$?
43007
 
  grep -v '^ *+' conftest.er1 >conftest.err
43008
 
  rm -f conftest.er1
43009
 
  cat conftest.err >&5
43010
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43011
 
  (exit $ac_status); } && {
43012
 
         test -z "$ac_c_werror_flag" ||
43013
 
         test ! -s conftest.err
43014
 
       } && test -s conftest.$ac_objext; then
43015
 
  ac_cv_member_struct_stat_st_blocks=yes
43016
 
else
43017
 
  $as_echo "$as_me: failed program was:" >&5
43018
 
sed 's/^/| /' conftest.$ac_ext >&5
43019
 
 
43020
 
        cat >conftest.$ac_ext <<_ACEOF
43021
 
/* confdefs.h.  */
43022
 
_ACEOF
43023
 
cat confdefs.h >>conftest.$ac_ext
43024
 
cat >>conftest.$ac_ext <<_ACEOF
43025
 
/* end confdefs.h.  */
43026
 
 
43027
 
#ifdef HAVE_SYS_TYPES_H
43028
 
#include <sys/types.h>
43029
 
#endif
43030
 
#ifdef HAVE_SYS_STAT_H
43031
 
#include <sys/stat.h>
43032
 
#endif
43033
 
#ifdef HAVE_UNISTD_H
43034
 
#include <unistd.h>
43035
 
#endif
43036
 
 
43037
 
int
43038
 
main ()
43039
 
{
43040
 
static struct stat ac_aggr;
43041
 
if (sizeof ac_aggr.st_blocks)
43042
 
return 0;
43043
 
  ;
43044
 
  return 0;
43045
 
}
43046
 
_ACEOF
43047
 
rm -f conftest.$ac_objext
43048
 
if { (ac_try="$ac_compile"
43049
 
case "(($ac_try" in
43050
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43051
 
  *) ac_try_echo=$ac_try;;
43052
 
esac
43053
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43054
 
$as_echo "$ac_try_echo") >&5
43055
 
  (eval "$ac_compile") 2>conftest.er1
43056
 
  ac_status=$?
43057
 
  grep -v '^ *+' conftest.er1 >conftest.err
43058
 
  rm -f conftest.er1
43059
 
  cat conftest.err >&5
43060
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43061
 
  (exit $ac_status); } && {
43062
 
         test -z "$ac_c_werror_flag" ||
43063
 
         test ! -s conftest.err
43064
 
       } && test -s conftest.$ac_objext; then
43065
 
  ac_cv_member_struct_stat_st_blocks=yes
43066
 
else
43067
 
  $as_echo "$as_me: failed program was:" >&5
43068
 
sed 's/^/| /' conftest.$ac_ext >&5
43069
 
 
43070
 
        ac_cv_member_struct_stat_st_blocks=no
43071
 
fi
43072
 
 
43073
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43074
 
fi
43075
 
 
43076
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43077
 
fi
43078
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
43079
 
$as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
43080
 
if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
 
32147
ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
 
32148
#ifdef HAVE_SYS_TYPES_H
 
32149
#include <sys/types.h>
 
32150
#endif
 
32151
#ifdef HAVE_SYS_STAT_H
 
32152
#include <sys/stat.h>
 
32153
#endif
 
32154
#ifdef HAVE_UNISTD_H
 
32155
#include <unistd.h>
 
32156
#endif
 
32157
"
 
32158
if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
43081
32159
 
43082
32160
cat >>confdefs.h <<_ACEOF
43083
32161
#define HAVE_STRUCT_STAT_ST_BLOCKS 1
43085
32163
 
43086
32164
 
43087
32165
fi
43088
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
43089
 
$as_echo_n "checking for struct stat.st_atimensec... " >&6; }
43090
 
if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
43091
 
  $as_echo_n "(cached) " >&6
43092
 
else
43093
 
  cat >conftest.$ac_ext <<_ACEOF
43094
 
/* confdefs.h.  */
43095
 
_ACEOF
43096
 
cat confdefs.h >>conftest.$ac_ext
43097
 
cat >>conftest.$ac_ext <<_ACEOF
43098
 
/* end confdefs.h.  */
43099
 
 
43100
 
#ifdef HAVE_SYS_TYPES_H
43101
 
#include <sys/types.h>
43102
 
#endif
43103
 
#ifdef HAVE_SYS_STAT_H
43104
 
#include <sys/stat.h>
43105
 
#endif
43106
 
#ifdef HAVE_UNISTD_H
43107
 
#include <unistd.h>
43108
 
#endif
43109
 
 
43110
 
int
43111
 
main ()
43112
 
{
43113
 
static struct stat ac_aggr;
43114
 
if (ac_aggr.st_atimensec)
43115
 
return 0;
43116
 
  ;
43117
 
  return 0;
43118
 
}
43119
 
_ACEOF
43120
 
rm -f conftest.$ac_objext
43121
 
if { (ac_try="$ac_compile"
43122
 
case "(($ac_try" in
43123
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43124
 
  *) ac_try_echo=$ac_try;;
43125
 
esac
43126
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43127
 
$as_echo "$ac_try_echo") >&5
43128
 
  (eval "$ac_compile") 2>conftest.er1
43129
 
  ac_status=$?
43130
 
  grep -v '^ *+' conftest.er1 >conftest.err
43131
 
  rm -f conftest.er1
43132
 
  cat conftest.err >&5
43133
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43134
 
  (exit $ac_status); } && {
43135
 
         test -z "$ac_c_werror_flag" ||
43136
 
         test ! -s conftest.err
43137
 
       } && test -s conftest.$ac_objext; then
43138
 
  ac_cv_member_struct_stat_st_atimensec=yes
43139
 
else
43140
 
  $as_echo "$as_me: failed program was:" >&5
43141
 
sed 's/^/| /' conftest.$ac_ext >&5
43142
 
 
43143
 
        cat >conftest.$ac_ext <<_ACEOF
43144
 
/* confdefs.h.  */
43145
 
_ACEOF
43146
 
cat confdefs.h >>conftest.$ac_ext
43147
 
cat >>conftest.$ac_ext <<_ACEOF
43148
 
/* end confdefs.h.  */
43149
 
 
43150
 
#ifdef HAVE_SYS_TYPES_H
43151
 
#include <sys/types.h>
43152
 
#endif
43153
 
#ifdef HAVE_SYS_STAT_H
43154
 
#include <sys/stat.h>
43155
 
#endif
43156
 
#ifdef HAVE_UNISTD_H
43157
 
#include <unistd.h>
43158
 
#endif
43159
 
 
43160
 
int
43161
 
main ()
43162
 
{
43163
 
static struct stat ac_aggr;
43164
 
if (sizeof ac_aggr.st_atimensec)
43165
 
return 0;
43166
 
  ;
43167
 
  return 0;
43168
 
}
43169
 
_ACEOF
43170
 
rm -f conftest.$ac_objext
43171
 
if { (ac_try="$ac_compile"
43172
 
case "(($ac_try" in
43173
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43174
 
  *) ac_try_echo=$ac_try;;
43175
 
esac
43176
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43177
 
$as_echo "$ac_try_echo") >&5
43178
 
  (eval "$ac_compile") 2>conftest.er1
43179
 
  ac_status=$?
43180
 
  grep -v '^ *+' conftest.er1 >conftest.err
43181
 
  rm -f conftest.er1
43182
 
  cat conftest.err >&5
43183
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43184
 
  (exit $ac_status); } && {
43185
 
         test -z "$ac_c_werror_flag" ||
43186
 
         test ! -s conftest.err
43187
 
       } && test -s conftest.$ac_objext; then
43188
 
  ac_cv_member_struct_stat_st_atimensec=yes
43189
 
else
43190
 
  $as_echo "$as_me: failed program was:" >&5
43191
 
sed 's/^/| /' conftest.$ac_ext >&5
43192
 
 
43193
 
        ac_cv_member_struct_stat_st_atimensec=no
43194
 
fi
43195
 
 
43196
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43197
 
fi
43198
 
 
43199
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43200
 
fi
43201
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
43202
 
$as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
43203
 
if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then
 
32166
ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
 
32167
#ifdef HAVE_SYS_TYPES_H
 
32168
#include <sys/types.h>
 
32169
#endif
 
32170
#ifdef HAVE_SYS_STAT_H
 
32171
#include <sys/stat.h>
 
32172
#endif
 
32173
#ifdef HAVE_UNISTD_H
 
32174
#include <unistd.h>
 
32175
#endif
 
32176
"
 
32177
if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
43204
32178
 
43205
32179
cat >>confdefs.h <<_ACEOF
43206
32180
#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
43208
32182
 
43209
32183
 
43210
32184
fi
43211
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_ctimensec" >&5
43212
 
$as_echo_n "checking for struct stat.st_ctimensec... " >&6; }
43213
 
if test "${ac_cv_member_struct_stat_st_ctimensec+set}" = set; then
43214
 
  $as_echo_n "(cached) " >&6
43215
 
else
43216
 
  cat >conftest.$ac_ext <<_ACEOF
43217
 
/* confdefs.h.  */
43218
 
_ACEOF
43219
 
cat confdefs.h >>conftest.$ac_ext
43220
 
cat >>conftest.$ac_ext <<_ACEOF
43221
 
/* end confdefs.h.  */
43222
 
 
43223
 
#ifdef HAVE_SYS_TYPES_H
43224
 
#include <sys/types.h>
43225
 
#endif
43226
 
#ifdef HAVE_SYS_STAT_H
43227
 
#include <sys/stat.h>
43228
 
#endif
43229
 
#ifdef HAVE_UNISTD_H
43230
 
#include <unistd.h>
43231
 
#endif
43232
 
 
43233
 
int
43234
 
main ()
43235
 
{
43236
 
static struct stat ac_aggr;
43237
 
if (ac_aggr.st_ctimensec)
43238
 
return 0;
43239
 
  ;
43240
 
  return 0;
43241
 
}
43242
 
_ACEOF
43243
 
rm -f conftest.$ac_objext
43244
 
if { (ac_try="$ac_compile"
43245
 
case "(($ac_try" in
43246
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43247
 
  *) ac_try_echo=$ac_try;;
43248
 
esac
43249
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43250
 
$as_echo "$ac_try_echo") >&5
43251
 
  (eval "$ac_compile") 2>conftest.er1
43252
 
  ac_status=$?
43253
 
  grep -v '^ *+' conftest.er1 >conftest.err
43254
 
  rm -f conftest.er1
43255
 
  cat conftest.err >&5
43256
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257
 
  (exit $ac_status); } && {
43258
 
         test -z "$ac_c_werror_flag" ||
43259
 
         test ! -s conftest.err
43260
 
       } && test -s conftest.$ac_objext; then
43261
 
  ac_cv_member_struct_stat_st_ctimensec=yes
43262
 
else
43263
 
  $as_echo "$as_me: failed program was:" >&5
43264
 
sed 's/^/| /' conftest.$ac_ext >&5
43265
 
 
43266
 
        cat >conftest.$ac_ext <<_ACEOF
43267
 
/* confdefs.h.  */
43268
 
_ACEOF
43269
 
cat confdefs.h >>conftest.$ac_ext
43270
 
cat >>conftest.$ac_ext <<_ACEOF
43271
 
/* end confdefs.h.  */
43272
 
 
43273
 
#ifdef HAVE_SYS_TYPES_H
43274
 
#include <sys/types.h>
43275
 
#endif
43276
 
#ifdef HAVE_SYS_STAT_H
43277
 
#include <sys/stat.h>
43278
 
#endif
43279
 
#ifdef HAVE_UNISTD_H
43280
 
#include <unistd.h>
43281
 
#endif
43282
 
 
43283
 
int
43284
 
main ()
43285
 
{
43286
 
static struct stat ac_aggr;
43287
 
if (sizeof ac_aggr.st_ctimensec)
43288
 
return 0;
43289
 
  ;
43290
 
  return 0;
43291
 
}
43292
 
_ACEOF
43293
 
rm -f conftest.$ac_objext
43294
 
if { (ac_try="$ac_compile"
43295
 
case "(($ac_try" in
43296
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43297
 
  *) ac_try_echo=$ac_try;;
43298
 
esac
43299
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43300
 
$as_echo "$ac_try_echo") >&5
43301
 
  (eval "$ac_compile") 2>conftest.er1
43302
 
  ac_status=$?
43303
 
  grep -v '^ *+' conftest.er1 >conftest.err
43304
 
  rm -f conftest.er1
43305
 
  cat conftest.err >&5
43306
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307
 
  (exit $ac_status); } && {
43308
 
         test -z "$ac_c_werror_flag" ||
43309
 
         test ! -s conftest.err
43310
 
       } && test -s conftest.$ac_objext; then
43311
 
  ac_cv_member_struct_stat_st_ctimensec=yes
43312
 
else
43313
 
  $as_echo "$as_me: failed program was:" >&5
43314
 
sed 's/^/| /' conftest.$ac_ext >&5
43315
 
 
43316
 
        ac_cv_member_struct_stat_st_ctimensec=no
43317
 
fi
43318
 
 
43319
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43320
 
fi
43321
 
 
43322
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43323
 
fi
43324
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_ctimensec" >&5
43325
 
$as_echo "$ac_cv_member_struct_stat_st_ctimensec" >&6; }
43326
 
if test "x$ac_cv_member_struct_stat_st_ctimensec" = x""yes; then
 
32185
ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
 
32186
#ifdef HAVE_SYS_TYPES_H
 
32187
#include <sys/types.h>
 
32188
#endif
 
32189
#ifdef HAVE_SYS_STAT_H
 
32190
#include <sys/stat.h>
 
32191
#endif
 
32192
#ifdef HAVE_UNISTD_H
 
32193
#include <unistd.h>
 
32194
#endif
 
32195
"
 
32196
if test "x$ac_cv_member_struct_stat_st_ctimensec" = x""yes; then :
43327
32197
 
43328
32198
cat >>confdefs.h <<_ACEOF
43329
32199
#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
43331
32201
 
43332
32202
 
43333
32203
fi
43334
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
43335
 
$as_echo_n "checking for struct stat.st_mtimensec... " >&6; }
43336
 
if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
43337
 
  $as_echo_n "(cached) " >&6
43338
 
else
43339
 
  cat >conftest.$ac_ext <<_ACEOF
43340
 
/* confdefs.h.  */
43341
 
_ACEOF
43342
 
cat confdefs.h >>conftest.$ac_ext
43343
 
cat >>conftest.$ac_ext <<_ACEOF
43344
 
/* end confdefs.h.  */
43345
 
 
43346
 
#ifdef HAVE_SYS_TYPES_H
43347
 
#include <sys/types.h>
43348
 
#endif
43349
 
#ifdef HAVE_SYS_STAT_H
43350
 
#include <sys/stat.h>
43351
 
#endif
43352
 
#ifdef HAVE_UNISTD_H
43353
 
#include <unistd.h>
43354
 
#endif
43355
 
 
43356
 
int
43357
 
main ()
43358
 
{
43359
 
static struct stat ac_aggr;
43360
 
if (ac_aggr.st_mtimensec)
43361
 
return 0;
43362
 
  ;
43363
 
  return 0;
43364
 
}
43365
 
_ACEOF
43366
 
rm -f conftest.$ac_objext
43367
 
if { (ac_try="$ac_compile"
43368
 
case "(($ac_try" in
43369
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43370
 
  *) ac_try_echo=$ac_try;;
43371
 
esac
43372
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43373
 
$as_echo "$ac_try_echo") >&5
43374
 
  (eval "$ac_compile") 2>conftest.er1
43375
 
  ac_status=$?
43376
 
  grep -v '^ *+' conftest.er1 >conftest.err
43377
 
  rm -f conftest.er1
43378
 
  cat conftest.err >&5
43379
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43380
 
  (exit $ac_status); } && {
43381
 
         test -z "$ac_c_werror_flag" ||
43382
 
         test ! -s conftest.err
43383
 
       } && test -s conftest.$ac_objext; then
43384
 
  ac_cv_member_struct_stat_st_mtimensec=yes
43385
 
else
43386
 
  $as_echo "$as_me: failed program was:" >&5
43387
 
sed 's/^/| /' conftest.$ac_ext >&5
43388
 
 
43389
 
        cat >conftest.$ac_ext <<_ACEOF
43390
 
/* confdefs.h.  */
43391
 
_ACEOF
43392
 
cat confdefs.h >>conftest.$ac_ext
43393
 
cat >>conftest.$ac_ext <<_ACEOF
43394
 
/* end confdefs.h.  */
43395
 
 
43396
 
#ifdef HAVE_SYS_TYPES_H
43397
 
#include <sys/types.h>
43398
 
#endif
43399
 
#ifdef HAVE_SYS_STAT_H
43400
 
#include <sys/stat.h>
43401
 
#endif
43402
 
#ifdef HAVE_UNISTD_H
43403
 
#include <unistd.h>
43404
 
#endif
43405
 
 
43406
 
int
43407
 
main ()
43408
 
{
43409
 
static struct stat ac_aggr;
43410
 
if (sizeof ac_aggr.st_mtimensec)
43411
 
return 0;
43412
 
  ;
43413
 
  return 0;
43414
 
}
43415
 
_ACEOF
43416
 
rm -f conftest.$ac_objext
43417
 
if { (ac_try="$ac_compile"
43418
 
case "(($ac_try" in
43419
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43420
 
  *) ac_try_echo=$ac_try;;
43421
 
esac
43422
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43423
 
$as_echo "$ac_try_echo") >&5
43424
 
  (eval "$ac_compile") 2>conftest.er1
43425
 
  ac_status=$?
43426
 
  grep -v '^ *+' conftest.er1 >conftest.err
43427
 
  rm -f conftest.er1
43428
 
  cat conftest.err >&5
43429
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43430
 
  (exit $ac_status); } && {
43431
 
         test -z "$ac_c_werror_flag" ||
43432
 
         test ! -s conftest.err
43433
 
       } && test -s conftest.$ac_objext; then
43434
 
  ac_cv_member_struct_stat_st_mtimensec=yes
43435
 
else
43436
 
  $as_echo "$as_me: failed program was:" >&5
43437
 
sed 's/^/| /' conftest.$ac_ext >&5
43438
 
 
43439
 
        ac_cv_member_struct_stat_st_mtimensec=no
43440
 
fi
43441
 
 
43442
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43443
 
fi
43444
 
 
43445
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43446
 
fi
43447
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
43448
 
$as_echo "$ac_cv_member_struct_stat_st_mtimensec" >&6; }
43449
 
if test "x$ac_cv_member_struct_stat_st_mtimensec" = x""yes; then
 
32204
ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
 
32205
#ifdef HAVE_SYS_TYPES_H
 
32206
#include <sys/types.h>
 
32207
#endif
 
32208
#ifdef HAVE_SYS_STAT_H
 
32209
#include <sys/stat.h>
 
32210
#endif
 
32211
#ifdef HAVE_UNISTD_H
 
32212
#include <unistd.h>
 
32213
#endif
 
32214
"
 
32215
if test "x$ac_cv_member_struct_stat_st_mtimensec" = x""yes; then :
43450
32216
 
43451
32217
cat >>confdefs.h <<_ACEOF
43452
32218
#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
43454
32220
 
43455
32221
 
43456
32222
fi
43457
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
43458
 
$as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
43459
 
if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
43460
 
  $as_echo_n "(cached) " >&6
43461
 
else
43462
 
  cat >conftest.$ac_ext <<_ACEOF
43463
 
/* confdefs.h.  */
43464
 
_ACEOF
43465
 
cat confdefs.h >>conftest.$ac_ext
43466
 
cat >>conftest.$ac_ext <<_ACEOF
43467
 
/* end confdefs.h.  */
43468
 
 
43469
 
#ifdef HAVE_SYS_TYPES_H
43470
 
#include <sys/types.h>
43471
 
#endif
43472
 
#ifdef HAVE_SYS_STAT_H
43473
 
#include <sys/stat.h>
43474
 
#endif
43475
 
#ifdef HAVE_UNISTD_H
43476
 
#include <unistd.h>
43477
 
#endif
43478
 
 
43479
 
int
43480
 
main ()
43481
 
{
43482
 
static struct stat ac_aggr;
43483
 
if (ac_aggr.st_atim.tv_nsec)
43484
 
return 0;
43485
 
  ;
43486
 
  return 0;
43487
 
}
43488
 
_ACEOF
43489
 
rm -f conftest.$ac_objext
43490
 
if { (ac_try="$ac_compile"
43491
 
case "(($ac_try" in
43492
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43493
 
  *) ac_try_echo=$ac_try;;
43494
 
esac
43495
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43496
 
$as_echo "$ac_try_echo") >&5
43497
 
  (eval "$ac_compile") 2>conftest.er1
43498
 
  ac_status=$?
43499
 
  grep -v '^ *+' conftest.er1 >conftest.err
43500
 
  rm -f conftest.er1
43501
 
  cat conftest.err >&5
43502
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43503
 
  (exit $ac_status); } && {
43504
 
         test -z "$ac_c_werror_flag" ||
43505
 
         test ! -s conftest.err
43506
 
       } && test -s conftest.$ac_objext; then
43507
 
  ac_cv_member_struct_stat_st_atim_tv_nsec=yes
43508
 
else
43509
 
  $as_echo "$as_me: failed program was:" >&5
43510
 
sed 's/^/| /' conftest.$ac_ext >&5
43511
 
 
43512
 
        cat >conftest.$ac_ext <<_ACEOF
43513
 
/* confdefs.h.  */
43514
 
_ACEOF
43515
 
cat confdefs.h >>conftest.$ac_ext
43516
 
cat >>conftest.$ac_ext <<_ACEOF
43517
 
/* end confdefs.h.  */
43518
 
 
43519
 
#ifdef HAVE_SYS_TYPES_H
43520
 
#include <sys/types.h>
43521
 
#endif
43522
 
#ifdef HAVE_SYS_STAT_H
43523
 
#include <sys/stat.h>
43524
 
#endif
43525
 
#ifdef HAVE_UNISTD_H
43526
 
#include <unistd.h>
43527
 
#endif
43528
 
 
43529
 
int
43530
 
main ()
43531
 
{
43532
 
static struct stat ac_aggr;
43533
 
if (sizeof ac_aggr.st_atim.tv_nsec)
43534
 
return 0;
43535
 
  ;
43536
 
  return 0;
43537
 
}
43538
 
_ACEOF
43539
 
rm -f conftest.$ac_objext
43540
 
if { (ac_try="$ac_compile"
43541
 
case "(($ac_try" in
43542
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43543
 
  *) ac_try_echo=$ac_try;;
43544
 
esac
43545
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43546
 
$as_echo "$ac_try_echo") >&5
43547
 
  (eval "$ac_compile") 2>conftest.er1
43548
 
  ac_status=$?
43549
 
  grep -v '^ *+' conftest.er1 >conftest.err
43550
 
  rm -f conftest.er1
43551
 
  cat conftest.err >&5
43552
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553
 
  (exit $ac_status); } && {
43554
 
         test -z "$ac_c_werror_flag" ||
43555
 
         test ! -s conftest.err
43556
 
       } && test -s conftest.$ac_objext; then
43557
 
  ac_cv_member_struct_stat_st_atim_tv_nsec=yes
43558
 
else
43559
 
  $as_echo "$as_me: failed program was:" >&5
43560
 
sed 's/^/| /' conftest.$ac_ext >&5
43561
 
 
43562
 
        ac_cv_member_struct_stat_st_atim_tv_nsec=no
43563
 
fi
43564
 
 
43565
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43566
 
fi
43567
 
 
43568
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43569
 
fi
43570
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
43571
 
$as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
43572
 
if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then
 
32223
ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
 
32224
#ifdef HAVE_SYS_TYPES_H
 
32225
#include <sys/types.h>
 
32226
#endif
 
32227
#ifdef HAVE_SYS_STAT_H
 
32228
#include <sys/stat.h>
 
32229
#endif
 
32230
#ifdef HAVE_UNISTD_H
 
32231
#include <unistd.h>
 
32232
#endif
 
32233
"
 
32234
if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
43573
32235
 
43574
32236
cat >>confdefs.h <<_ACEOF
43575
32237
#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
43577
32239
 
43578
32240
 
43579
32241
fi
43580
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_ctim.tv_nsec" >&5
43581
 
$as_echo_n "checking for struct stat.st_ctim.tv_nsec... " >&6; }
43582
 
if test "${ac_cv_member_struct_stat_st_ctim_tv_nsec+set}" = set; then
43583
 
  $as_echo_n "(cached) " >&6
43584
 
else
43585
 
  cat >conftest.$ac_ext <<_ACEOF
43586
 
/* confdefs.h.  */
43587
 
_ACEOF
43588
 
cat confdefs.h >>conftest.$ac_ext
43589
 
cat >>conftest.$ac_ext <<_ACEOF
43590
 
/* end confdefs.h.  */
43591
 
 
43592
 
#ifdef HAVE_SYS_TYPES_H
43593
 
#include <sys/types.h>
43594
 
#endif
43595
 
#ifdef HAVE_SYS_STAT_H
43596
 
#include <sys/stat.h>
43597
 
#endif
43598
 
#ifdef HAVE_UNISTD_H
43599
 
#include <unistd.h>
43600
 
#endif
43601
 
 
43602
 
int
43603
 
main ()
43604
 
{
43605
 
static struct stat ac_aggr;
43606
 
if (ac_aggr.st_ctim.tv_nsec)
43607
 
return 0;
43608
 
  ;
43609
 
  return 0;
43610
 
}
43611
 
_ACEOF
43612
 
rm -f conftest.$ac_objext
43613
 
if { (ac_try="$ac_compile"
43614
 
case "(($ac_try" in
43615
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43616
 
  *) ac_try_echo=$ac_try;;
43617
 
esac
43618
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43619
 
$as_echo "$ac_try_echo") >&5
43620
 
  (eval "$ac_compile") 2>conftest.er1
43621
 
  ac_status=$?
43622
 
  grep -v '^ *+' conftest.er1 >conftest.err
43623
 
  rm -f conftest.er1
43624
 
  cat conftest.err >&5
43625
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43626
 
  (exit $ac_status); } && {
43627
 
         test -z "$ac_c_werror_flag" ||
43628
 
         test ! -s conftest.err
43629
 
       } && test -s conftest.$ac_objext; then
43630
 
  ac_cv_member_struct_stat_st_ctim_tv_nsec=yes
43631
 
else
43632
 
  $as_echo "$as_me: failed program was:" >&5
43633
 
sed 's/^/| /' conftest.$ac_ext >&5
43634
 
 
43635
 
        cat >conftest.$ac_ext <<_ACEOF
43636
 
/* confdefs.h.  */
43637
 
_ACEOF
43638
 
cat confdefs.h >>conftest.$ac_ext
43639
 
cat >>conftest.$ac_ext <<_ACEOF
43640
 
/* end confdefs.h.  */
43641
 
 
43642
 
#ifdef HAVE_SYS_TYPES_H
43643
 
#include <sys/types.h>
43644
 
#endif
43645
 
#ifdef HAVE_SYS_STAT_H
43646
 
#include <sys/stat.h>
43647
 
#endif
43648
 
#ifdef HAVE_UNISTD_H
43649
 
#include <unistd.h>
43650
 
#endif
43651
 
 
43652
 
int
43653
 
main ()
43654
 
{
43655
 
static struct stat ac_aggr;
43656
 
if (sizeof ac_aggr.st_ctim.tv_nsec)
43657
 
return 0;
43658
 
  ;
43659
 
  return 0;
43660
 
}
43661
 
_ACEOF
43662
 
rm -f conftest.$ac_objext
43663
 
if { (ac_try="$ac_compile"
43664
 
case "(($ac_try" in
43665
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43666
 
  *) ac_try_echo=$ac_try;;
43667
 
esac
43668
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43669
 
$as_echo "$ac_try_echo") >&5
43670
 
  (eval "$ac_compile") 2>conftest.er1
43671
 
  ac_status=$?
43672
 
  grep -v '^ *+' conftest.er1 >conftest.err
43673
 
  rm -f conftest.er1
43674
 
  cat conftest.err >&5
43675
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676
 
  (exit $ac_status); } && {
43677
 
         test -z "$ac_c_werror_flag" ||
43678
 
         test ! -s conftest.err
43679
 
       } && test -s conftest.$ac_objext; then
43680
 
  ac_cv_member_struct_stat_st_ctim_tv_nsec=yes
43681
 
else
43682
 
  $as_echo "$as_me: failed program was:" >&5
43683
 
sed 's/^/| /' conftest.$ac_ext >&5
43684
 
 
43685
 
        ac_cv_member_struct_stat_st_ctim_tv_nsec=no
43686
 
fi
43687
 
 
43688
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43689
 
fi
43690
 
 
43691
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43692
 
fi
43693
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_ctim_tv_nsec" >&5
43694
 
$as_echo "$ac_cv_member_struct_stat_st_ctim_tv_nsec" >&6; }
43695
 
if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = x""yes; then
 
32242
ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
 
32243
#ifdef HAVE_SYS_TYPES_H
 
32244
#include <sys/types.h>
 
32245
#endif
 
32246
#ifdef HAVE_SYS_STAT_H
 
32247
#include <sys/stat.h>
 
32248
#endif
 
32249
#ifdef HAVE_UNISTD_H
 
32250
#include <unistd.h>
 
32251
#endif
 
32252
"
 
32253
if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = x""yes; then :
43696
32254
 
43697
32255
cat >>confdefs.h <<_ACEOF
43698
32256
#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
43700
32258
 
43701
32259
 
43702
32260
fi
43703
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim.tv_nsec" >&5
43704
 
$as_echo_n "checking for struct stat.st_mtim.tv_nsec... " >&6; }
43705
 
if test "${ac_cv_member_struct_stat_st_mtim_tv_nsec+set}" = set; then
43706
 
  $as_echo_n "(cached) " >&6
43707
 
else
43708
 
  cat >conftest.$ac_ext <<_ACEOF
43709
 
/* confdefs.h.  */
43710
 
_ACEOF
43711
 
cat confdefs.h >>conftest.$ac_ext
43712
 
cat >>conftest.$ac_ext <<_ACEOF
43713
 
/* end confdefs.h.  */
43714
 
 
43715
 
#ifdef HAVE_SYS_TYPES_H
43716
 
#include <sys/types.h>
43717
 
#endif
43718
 
#ifdef HAVE_SYS_STAT_H
43719
 
#include <sys/stat.h>
43720
 
#endif
43721
 
#ifdef HAVE_UNISTD_H
43722
 
#include <unistd.h>
43723
 
#endif
43724
 
 
43725
 
int
43726
 
main ()
43727
 
{
43728
 
static struct stat ac_aggr;
43729
 
if (ac_aggr.st_mtim.tv_nsec)
43730
 
return 0;
43731
 
  ;
43732
 
  return 0;
43733
 
}
43734
 
_ACEOF
43735
 
rm -f conftest.$ac_objext
43736
 
if { (ac_try="$ac_compile"
43737
 
case "(($ac_try" in
43738
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43739
 
  *) ac_try_echo=$ac_try;;
43740
 
esac
43741
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43742
 
$as_echo "$ac_try_echo") >&5
43743
 
  (eval "$ac_compile") 2>conftest.er1
43744
 
  ac_status=$?
43745
 
  grep -v '^ *+' conftest.er1 >conftest.err
43746
 
  rm -f conftest.er1
43747
 
  cat conftest.err >&5
43748
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43749
 
  (exit $ac_status); } && {
43750
 
         test -z "$ac_c_werror_flag" ||
43751
 
         test ! -s conftest.err
43752
 
       } && test -s conftest.$ac_objext; then
43753
 
  ac_cv_member_struct_stat_st_mtim_tv_nsec=yes
43754
 
else
43755
 
  $as_echo "$as_me: failed program was:" >&5
43756
 
sed 's/^/| /' conftest.$ac_ext >&5
43757
 
 
43758
 
        cat >conftest.$ac_ext <<_ACEOF
43759
 
/* confdefs.h.  */
43760
 
_ACEOF
43761
 
cat confdefs.h >>conftest.$ac_ext
43762
 
cat >>conftest.$ac_ext <<_ACEOF
43763
 
/* end confdefs.h.  */
43764
 
 
43765
 
#ifdef HAVE_SYS_TYPES_H
43766
 
#include <sys/types.h>
43767
 
#endif
43768
 
#ifdef HAVE_SYS_STAT_H
43769
 
#include <sys/stat.h>
43770
 
#endif
43771
 
#ifdef HAVE_UNISTD_H
43772
 
#include <unistd.h>
43773
 
#endif
43774
 
 
43775
 
int
43776
 
main ()
43777
 
{
43778
 
static struct stat ac_aggr;
43779
 
if (sizeof ac_aggr.st_mtim.tv_nsec)
43780
 
return 0;
43781
 
  ;
43782
 
  return 0;
43783
 
}
43784
 
_ACEOF
43785
 
rm -f conftest.$ac_objext
43786
 
if { (ac_try="$ac_compile"
43787
 
case "(($ac_try" in
43788
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43789
 
  *) ac_try_echo=$ac_try;;
43790
 
esac
43791
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43792
 
$as_echo "$ac_try_echo") >&5
43793
 
  (eval "$ac_compile") 2>conftest.er1
43794
 
  ac_status=$?
43795
 
  grep -v '^ *+' conftest.er1 >conftest.err
43796
 
  rm -f conftest.er1
43797
 
  cat conftest.err >&5
43798
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43799
 
  (exit $ac_status); } && {
43800
 
         test -z "$ac_c_werror_flag" ||
43801
 
         test ! -s conftest.err
43802
 
       } && test -s conftest.$ac_objext; then
43803
 
  ac_cv_member_struct_stat_st_mtim_tv_nsec=yes
43804
 
else
43805
 
  $as_echo "$as_me: failed program was:" >&5
43806
 
sed 's/^/| /' conftest.$ac_ext >&5
43807
 
 
43808
 
        ac_cv_member_struct_stat_st_mtim_tv_nsec=no
43809
 
fi
43810
 
 
43811
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43812
 
fi
43813
 
 
43814
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43815
 
fi
43816
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_tv_nsec" >&5
43817
 
$as_echo "$ac_cv_member_struct_stat_st_mtim_tv_nsec" >&6; }
43818
 
if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = x""yes; then
 
32261
ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
 
32262
#ifdef HAVE_SYS_TYPES_H
 
32263
#include <sys/types.h>
 
32264
#endif
 
32265
#ifdef HAVE_SYS_STAT_H
 
32266
#include <sys/stat.h>
 
32267
#endif
 
32268
#ifdef HAVE_UNISTD_H
 
32269
#include <unistd.h>
 
32270
#endif
 
32271
"
 
32272
if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = x""yes; then :
43819
32273
 
43820
32274
cat >>confdefs.h <<_ACEOF
43821
32275
#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
43823
32277
 
43824
32278
 
43825
32279
fi
43826
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_atime_n" >&5
43827
 
$as_echo_n "checking for struct stat.st_atime_n... " >&6; }
43828
 
if test "${ac_cv_member_struct_stat_st_atime_n+set}" = set; then
43829
 
  $as_echo_n "(cached) " >&6
43830
 
else
43831
 
  cat >conftest.$ac_ext <<_ACEOF
43832
 
/* confdefs.h.  */
43833
 
_ACEOF
43834
 
cat confdefs.h >>conftest.$ac_ext
43835
 
cat >>conftest.$ac_ext <<_ACEOF
43836
 
/* end confdefs.h.  */
43837
 
 
43838
 
#ifdef HAVE_SYS_TYPES_H
43839
 
#include <sys/types.h>
43840
 
#endif
43841
 
#ifdef HAVE_SYS_STAT_H
43842
 
#include <sys/stat.h>
43843
 
#endif
43844
 
#ifdef HAVE_UNISTD_H
43845
 
#include <unistd.h>
43846
 
#endif
43847
 
 
43848
 
int
43849
 
main ()
43850
 
{
43851
 
static struct stat ac_aggr;
43852
 
if (ac_aggr.st_atime_n)
43853
 
return 0;
43854
 
  ;
43855
 
  return 0;
43856
 
}
43857
 
_ACEOF
43858
 
rm -f conftest.$ac_objext
43859
 
if { (ac_try="$ac_compile"
43860
 
case "(($ac_try" in
43861
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43862
 
  *) ac_try_echo=$ac_try;;
43863
 
esac
43864
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43865
 
$as_echo "$ac_try_echo") >&5
43866
 
  (eval "$ac_compile") 2>conftest.er1
43867
 
  ac_status=$?
43868
 
  grep -v '^ *+' conftest.er1 >conftest.err
43869
 
  rm -f conftest.er1
43870
 
  cat conftest.err >&5
43871
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43872
 
  (exit $ac_status); } && {
43873
 
         test -z "$ac_c_werror_flag" ||
43874
 
         test ! -s conftest.err
43875
 
       } && test -s conftest.$ac_objext; then
43876
 
  ac_cv_member_struct_stat_st_atime_n=yes
43877
 
else
43878
 
  $as_echo "$as_me: failed program was:" >&5
43879
 
sed 's/^/| /' conftest.$ac_ext >&5
43880
 
 
43881
 
        cat >conftest.$ac_ext <<_ACEOF
43882
 
/* confdefs.h.  */
43883
 
_ACEOF
43884
 
cat confdefs.h >>conftest.$ac_ext
43885
 
cat >>conftest.$ac_ext <<_ACEOF
43886
 
/* end confdefs.h.  */
43887
 
 
43888
 
#ifdef HAVE_SYS_TYPES_H
43889
 
#include <sys/types.h>
43890
 
#endif
43891
 
#ifdef HAVE_SYS_STAT_H
43892
 
#include <sys/stat.h>
43893
 
#endif
43894
 
#ifdef HAVE_UNISTD_H
43895
 
#include <unistd.h>
43896
 
#endif
43897
 
 
43898
 
int
43899
 
main ()
43900
 
{
43901
 
static struct stat ac_aggr;
43902
 
if (sizeof ac_aggr.st_atime_n)
43903
 
return 0;
43904
 
  ;
43905
 
  return 0;
43906
 
}
43907
 
_ACEOF
43908
 
rm -f conftest.$ac_objext
43909
 
if { (ac_try="$ac_compile"
43910
 
case "(($ac_try" in
43911
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43912
 
  *) ac_try_echo=$ac_try;;
43913
 
esac
43914
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43915
 
$as_echo "$ac_try_echo") >&5
43916
 
  (eval "$ac_compile") 2>conftest.er1
43917
 
  ac_status=$?
43918
 
  grep -v '^ *+' conftest.er1 >conftest.err
43919
 
  rm -f conftest.er1
43920
 
  cat conftest.err >&5
43921
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922
 
  (exit $ac_status); } && {
43923
 
         test -z "$ac_c_werror_flag" ||
43924
 
         test ! -s conftest.err
43925
 
       } && test -s conftest.$ac_objext; then
43926
 
  ac_cv_member_struct_stat_st_atime_n=yes
43927
 
else
43928
 
  $as_echo "$as_me: failed program was:" >&5
43929
 
sed 's/^/| /' conftest.$ac_ext >&5
43930
 
 
43931
 
        ac_cv_member_struct_stat_st_atime_n=no
43932
 
fi
43933
 
 
43934
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43935
 
fi
43936
 
 
43937
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43938
 
fi
43939
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atime_n" >&5
43940
 
$as_echo "$ac_cv_member_struct_stat_st_atime_n" >&6; }
43941
 
if test "x$ac_cv_member_struct_stat_st_atime_n" = x""yes; then
 
32280
ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
 
32281
#ifdef HAVE_SYS_TYPES_H
 
32282
#include <sys/types.h>
 
32283
#endif
 
32284
#ifdef HAVE_SYS_STAT_H
 
32285
#include <sys/stat.h>
 
32286
#endif
 
32287
#ifdef HAVE_UNISTD_H
 
32288
#include <unistd.h>
 
32289
#endif
 
32290
"
 
32291
if test "x$ac_cv_member_struct_stat_st_atime_n" = x""yes; then :
43942
32292
 
43943
32293
cat >>confdefs.h <<_ACEOF
43944
32294
#define HAVE_STRUCT_STAT_ST_ATIME_N 1
43946
32296
 
43947
32297
 
43948
32298
fi
43949
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_ctime_n" >&5
43950
 
$as_echo_n "checking for struct stat.st_ctime_n... " >&6; }
43951
 
if test "${ac_cv_member_struct_stat_st_ctime_n+set}" = set; then
43952
 
  $as_echo_n "(cached) " >&6
43953
 
else
43954
 
  cat >conftest.$ac_ext <<_ACEOF
43955
 
/* confdefs.h.  */
43956
 
_ACEOF
43957
 
cat confdefs.h >>conftest.$ac_ext
43958
 
cat >>conftest.$ac_ext <<_ACEOF
43959
 
/* end confdefs.h.  */
43960
 
 
43961
 
#ifdef HAVE_SYS_TYPES_H
43962
 
#include <sys/types.h>
43963
 
#endif
43964
 
#ifdef HAVE_SYS_STAT_H
43965
 
#include <sys/stat.h>
43966
 
#endif
43967
 
#ifdef HAVE_UNISTD_H
43968
 
#include <unistd.h>
43969
 
#endif
43970
 
 
43971
 
int
43972
 
main ()
43973
 
{
43974
 
static struct stat ac_aggr;
43975
 
if (ac_aggr.st_ctime_n)
43976
 
return 0;
43977
 
  ;
43978
 
  return 0;
43979
 
}
43980
 
_ACEOF
43981
 
rm -f conftest.$ac_objext
43982
 
if { (ac_try="$ac_compile"
43983
 
case "(($ac_try" in
43984
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43985
 
  *) ac_try_echo=$ac_try;;
43986
 
esac
43987
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43988
 
$as_echo "$ac_try_echo") >&5
43989
 
  (eval "$ac_compile") 2>conftest.er1
43990
 
  ac_status=$?
43991
 
  grep -v '^ *+' conftest.er1 >conftest.err
43992
 
  rm -f conftest.er1
43993
 
  cat conftest.err >&5
43994
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43995
 
  (exit $ac_status); } && {
43996
 
         test -z "$ac_c_werror_flag" ||
43997
 
         test ! -s conftest.err
43998
 
       } && test -s conftest.$ac_objext; then
43999
 
  ac_cv_member_struct_stat_st_ctime_n=yes
44000
 
else
44001
 
  $as_echo "$as_me: failed program was:" >&5
44002
 
sed 's/^/| /' conftest.$ac_ext >&5
44003
 
 
44004
 
        cat >conftest.$ac_ext <<_ACEOF
44005
 
/* confdefs.h.  */
44006
 
_ACEOF
44007
 
cat confdefs.h >>conftest.$ac_ext
44008
 
cat >>conftest.$ac_ext <<_ACEOF
44009
 
/* end confdefs.h.  */
44010
 
 
44011
 
#ifdef HAVE_SYS_TYPES_H
44012
 
#include <sys/types.h>
44013
 
#endif
44014
 
#ifdef HAVE_SYS_STAT_H
44015
 
#include <sys/stat.h>
44016
 
#endif
44017
 
#ifdef HAVE_UNISTD_H
44018
 
#include <unistd.h>
44019
 
#endif
44020
 
 
44021
 
int
44022
 
main ()
44023
 
{
44024
 
static struct stat ac_aggr;
44025
 
if (sizeof ac_aggr.st_ctime_n)
44026
 
return 0;
44027
 
  ;
44028
 
  return 0;
44029
 
}
44030
 
_ACEOF
44031
 
rm -f conftest.$ac_objext
44032
 
if { (ac_try="$ac_compile"
44033
 
case "(($ac_try" in
44034
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44035
 
  *) ac_try_echo=$ac_try;;
44036
 
esac
44037
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44038
 
$as_echo "$ac_try_echo") >&5
44039
 
  (eval "$ac_compile") 2>conftest.er1
44040
 
  ac_status=$?
44041
 
  grep -v '^ *+' conftest.er1 >conftest.err
44042
 
  rm -f conftest.er1
44043
 
  cat conftest.err >&5
44044
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44045
 
  (exit $ac_status); } && {
44046
 
         test -z "$ac_c_werror_flag" ||
44047
 
         test ! -s conftest.err
44048
 
       } && test -s conftest.$ac_objext; then
44049
 
  ac_cv_member_struct_stat_st_ctime_n=yes
44050
 
else
44051
 
  $as_echo "$as_me: failed program was:" >&5
44052
 
sed 's/^/| /' conftest.$ac_ext >&5
44053
 
 
44054
 
        ac_cv_member_struct_stat_st_ctime_n=no
44055
 
fi
44056
 
 
44057
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44058
 
fi
44059
 
 
44060
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44061
 
fi
44062
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_ctime_n" >&5
44063
 
$as_echo "$ac_cv_member_struct_stat_st_ctime_n" >&6; }
44064
 
if test "x$ac_cv_member_struct_stat_st_ctime_n" = x""yes; then
 
32299
ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
 
32300
#ifdef HAVE_SYS_TYPES_H
 
32301
#include <sys/types.h>
 
32302
#endif
 
32303
#ifdef HAVE_SYS_STAT_H
 
32304
#include <sys/stat.h>
 
32305
#endif
 
32306
#ifdef HAVE_UNISTD_H
 
32307
#include <unistd.h>
 
32308
#endif
 
32309
"
 
32310
if test "x$ac_cv_member_struct_stat_st_ctime_n" = x""yes; then :
44065
32311
 
44066
32312
cat >>confdefs.h <<_ACEOF
44067
32313
#define HAVE_STRUCT_STAT_ST_CTIME_N 1
44069
32315
 
44070
32316
 
44071
32317
fi
44072
 
{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtime_n" >&5
44073
 
$as_echo_n "checking for struct stat.st_mtime_n... " >&6; }
44074
 
if test "${ac_cv_member_struct_stat_st_mtime_n+set}" = set; then
44075
 
  $as_echo_n "(cached) " >&6
44076
 
else
44077
 
  cat >conftest.$ac_ext <<_ACEOF
44078
 
/* confdefs.h.  */
44079
 
_ACEOF
44080
 
cat confdefs.h >>conftest.$ac_ext
44081
 
cat >>conftest.$ac_ext <<_ACEOF
44082
 
/* end confdefs.h.  */
44083
 
 
44084
 
#ifdef HAVE_SYS_TYPES_H
44085
 
#include <sys/types.h>
44086
 
#endif
44087
 
#ifdef HAVE_SYS_STAT_H
44088
 
#include <sys/stat.h>
44089
 
#endif
44090
 
#ifdef HAVE_UNISTD_H
44091
 
#include <unistd.h>
44092
 
#endif
44093
 
 
44094
 
int
44095
 
main ()
44096
 
{
44097
 
static struct stat ac_aggr;
44098
 
if (ac_aggr.st_mtime_n)
44099
 
return 0;
44100
 
  ;
44101
 
  return 0;
44102
 
}
44103
 
_ACEOF
44104
 
rm -f conftest.$ac_objext
44105
 
if { (ac_try="$ac_compile"
44106
 
case "(($ac_try" in
44107
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44108
 
  *) ac_try_echo=$ac_try;;
44109
 
esac
44110
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44111
 
$as_echo "$ac_try_echo") >&5
44112
 
  (eval "$ac_compile") 2>conftest.er1
44113
 
  ac_status=$?
44114
 
  grep -v '^ *+' conftest.er1 >conftest.err
44115
 
  rm -f conftest.er1
44116
 
  cat conftest.err >&5
44117
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44118
 
  (exit $ac_status); } && {
44119
 
         test -z "$ac_c_werror_flag" ||
44120
 
         test ! -s conftest.err
44121
 
       } && test -s conftest.$ac_objext; then
44122
 
  ac_cv_member_struct_stat_st_mtime_n=yes
44123
 
else
44124
 
  $as_echo "$as_me: failed program was:" >&5
44125
 
sed 's/^/| /' conftest.$ac_ext >&5
44126
 
 
44127
 
        cat >conftest.$ac_ext <<_ACEOF
44128
 
/* confdefs.h.  */
44129
 
_ACEOF
44130
 
cat confdefs.h >>conftest.$ac_ext
44131
 
cat >>conftest.$ac_ext <<_ACEOF
44132
 
/* end confdefs.h.  */
44133
 
 
44134
 
#ifdef HAVE_SYS_TYPES_H
44135
 
#include <sys/types.h>
44136
 
#endif
44137
 
#ifdef HAVE_SYS_STAT_H
44138
 
#include <sys/stat.h>
44139
 
#endif
44140
 
#ifdef HAVE_UNISTD_H
44141
 
#include <unistd.h>
44142
 
#endif
44143
 
 
44144
 
int
44145
 
main ()
44146
 
{
44147
 
static struct stat ac_aggr;
44148
 
if (sizeof ac_aggr.st_mtime_n)
44149
 
return 0;
44150
 
  ;
44151
 
  return 0;
44152
 
}
44153
 
_ACEOF
44154
 
rm -f conftest.$ac_objext
44155
 
if { (ac_try="$ac_compile"
44156
 
case "(($ac_try" in
44157
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44158
 
  *) ac_try_echo=$ac_try;;
44159
 
esac
44160
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44161
 
$as_echo "$ac_try_echo") >&5
44162
 
  (eval "$ac_compile") 2>conftest.er1
44163
 
  ac_status=$?
44164
 
  grep -v '^ *+' conftest.er1 >conftest.err
44165
 
  rm -f conftest.er1
44166
 
  cat conftest.err >&5
44167
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44168
 
  (exit $ac_status); } && {
44169
 
         test -z "$ac_c_werror_flag" ||
44170
 
         test ! -s conftest.err
44171
 
       } && test -s conftest.$ac_objext; then
44172
 
  ac_cv_member_struct_stat_st_mtime_n=yes
44173
 
else
44174
 
  $as_echo "$as_me: failed program was:" >&5
44175
 
sed 's/^/| /' conftest.$ac_ext >&5
44176
 
 
44177
 
        ac_cv_member_struct_stat_st_mtime_n=no
44178
 
fi
44179
 
 
44180
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44181
 
fi
44182
 
 
44183
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44184
 
fi
44185
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtime_n" >&5
44186
 
$as_echo "$ac_cv_member_struct_stat_st_mtime_n" >&6; }
44187
 
if test "x$ac_cv_member_struct_stat_st_mtime_n" = x""yes; then
 
32318
ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
 
32319
#ifdef HAVE_SYS_TYPES_H
 
32320
#include <sys/types.h>
 
32321
#endif
 
32322
#ifdef HAVE_SYS_STAT_H
 
32323
#include <sys/stat.h>
 
32324
#endif
 
32325
#ifdef HAVE_UNISTD_H
 
32326
#include <unistd.h>
 
32327
#endif
 
32328
"
 
32329
if test "x$ac_cv_member_struct_stat_st_mtime_n" = x""yes; then :
44188
32330
 
44189
32331
cat >>confdefs.h <<_ACEOF
44190
32332
#define HAVE_STRUCT_STAT_ST_MTIME_N 1
44195
32337
 
44196
32338
 
44197
32339
 
44198
 
{ $as_echo "$as_me:$LINENO: checking for inode member of struct dirent" >&5
 
32340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
44199
32341
$as_echo_n "checking for inode member of struct dirent... " >&6; }
44200
 
if test "${apr_cv_dirent_inode+set}" = set; then
 
32342
if test "${apr_cv_dirent_inode+set}" = set; then :
44201
32343
  $as_echo_n "(cached) " >&6
44202
32344
else
44203
32345
 
44204
32346
apr_cv_dirent_inode=no
44205
 
cat >conftest.$ac_ext <<_ACEOF
44206
 
/* confdefs.h.  */
44207
 
_ACEOF
44208
 
cat confdefs.h >>conftest.$ac_ext
44209
 
cat >>conftest.$ac_ext <<_ACEOF
 
32347
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44210
32348
/* end confdefs.h.  */
44211
32349
 
44212
32350
#include <sys/types.h>
44225
32363
  return 0;
44226
32364
}
44227
32365
_ACEOF
44228
 
rm -f conftest.$ac_objext
44229
 
if { (ac_try="$ac_compile"
44230
 
case "(($ac_try" in
44231
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44232
 
  *) ac_try_echo=$ac_try;;
44233
 
esac
44234
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44235
 
$as_echo "$ac_try_echo") >&5
44236
 
  (eval "$ac_compile") 2>conftest.er1
44237
 
  ac_status=$?
44238
 
  grep -v '^ *+' conftest.er1 >conftest.err
44239
 
  rm -f conftest.er1
44240
 
  cat conftest.err >&5
44241
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44242
 
  (exit $ac_status); } && {
44243
 
         test -z "$ac_c_werror_flag" ||
44244
 
         test ! -s conftest.err
44245
 
       } && test -s conftest.$ac_objext; then
 
32366
if ac_fn_c_try_compile "$LINENO"; then :
44246
32367
  apr_cv_dirent_inode=d_fileno
44247
 
else
44248
 
  $as_echo "$as_me: failed program was:" >&5
44249
 
sed 's/^/| /' conftest.$ac_ext >&5
44250
 
 
44251
 
 
44252
32368
fi
44253
 
 
44254
32369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44255
32370
if test "$apr_cv_dirent_inode" = "no"; then
44256
 
cat >conftest.$ac_ext <<_ACEOF
44257
 
/* confdefs.h.  */
44258
 
_ACEOF
44259
 
cat confdefs.h >>conftest.$ac_ext
44260
 
cat >>conftest.$ac_ext <<_ACEOF
 
32371
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44261
32372
/* end confdefs.h.  */
44262
32373
 
44263
32374
#include <sys/types.h>
44276
32387
  return 0;
44277
32388
}
44278
32389
_ACEOF
44279
 
rm -f conftest.$ac_objext
44280
 
if { (ac_try="$ac_compile"
44281
 
case "(($ac_try" in
44282
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44283
 
  *) ac_try_echo=$ac_try;;
44284
 
esac
44285
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44286
 
$as_echo "$ac_try_echo") >&5
44287
 
  (eval "$ac_compile") 2>conftest.er1
44288
 
  ac_status=$?
44289
 
  grep -v '^ *+' conftest.er1 >conftest.err
44290
 
  rm -f conftest.er1
44291
 
  cat conftest.err >&5
44292
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44293
 
  (exit $ac_status); } && {
44294
 
         test -z "$ac_c_werror_flag" ||
44295
 
         test ! -s conftest.err
44296
 
       } && test -s conftest.$ac_objext; then
 
32390
if ac_fn_c_try_compile "$LINENO"; then :
44297
32391
  apr_cv_dirent_inode=d_ino
44298
 
else
44299
 
  $as_echo "$as_me: failed program was:" >&5
44300
 
sed 's/^/| /' conftest.$ac_ext >&5
44301
 
 
44302
 
 
44303
32392
fi
44304
 
 
44305
32393
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44306
32394
fi
44307
32395
 
44308
32396
fi
44309
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_dirent_inode" >&5
 
32397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
44310
32398
$as_echo "$apr_cv_dirent_inode" >&6; }
44311
32399
if test "$apr_cv_dirent_inode" != "no"; then
44312
32400
 
44317
32405
fi
44318
32406
 
44319
32407
 
44320
 
{ $as_echo "$as_me:$LINENO: checking for file type member of struct dirent" >&5
 
32408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
44321
32409
$as_echo_n "checking for file type member of struct dirent... " >&6; }
44322
 
if test "${apr_cv_dirent_type+set}" = set; then
 
32410
if test "${apr_cv_dirent_type+set}" = set; then :
44323
32411
  $as_echo_n "(cached) " >&6
44324
32412
else
44325
32413
 
44326
32414
apr_cv_dirent_type=no
44327
 
cat >conftest.$ac_ext <<_ACEOF
44328
 
/* confdefs.h.  */
44329
 
_ACEOF
44330
 
cat confdefs.h >>conftest.$ac_ext
44331
 
cat >>conftest.$ac_ext <<_ACEOF
 
32415
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44332
32416
/* end confdefs.h.  */
44333
32417
 
44334
32418
#include <sys/types.h>
44344
32428
  return 0;
44345
32429
}
44346
32430
_ACEOF
44347
 
rm -f conftest.$ac_objext
44348
 
if { (ac_try="$ac_compile"
44349
 
case "(($ac_try" in
44350
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44351
 
  *) ac_try_echo=$ac_try;;
44352
 
esac
44353
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44354
 
$as_echo "$ac_try_echo") >&5
44355
 
  (eval "$ac_compile") 2>conftest.er1
44356
 
  ac_status=$?
44357
 
  grep -v '^ *+' conftest.er1 >conftest.err
44358
 
  rm -f conftest.er1
44359
 
  cat conftest.err >&5
44360
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44361
 
  (exit $ac_status); } && {
44362
 
         test -z "$ac_c_werror_flag" ||
44363
 
         test ! -s conftest.err
44364
 
       } && test -s conftest.$ac_objext; then
 
32431
if ac_fn_c_try_compile "$LINENO"; then :
44365
32432
  apr_cv_dirent_type=d_type
44366
 
else
44367
 
  $as_echo "$as_me: failed program was:" >&5
44368
 
sed 's/^/| /' conftest.$ac_ext >&5
44369
 
 
44370
 
 
44371
32433
fi
44372
 
 
44373
32434
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44374
32435
 
44375
32436
fi
44376
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_dirent_type" >&5
 
32437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
44377
32438
$as_echo "$apr_cv_dirent_type" >&6; }
44378
32439
if test "$apr_cv_dirent_type" != "no"; then
44379
32440
 
44386
32447
 
44387
32448
echo "${nl}Checking for OS UUID Support..."
44388
32449
 
44389
 
 
44390
 
 
44391
 
 
44392
32450
for ac_header in uuid.h uuid/uuid.h sys/uuid.h
44393
 
do
44394
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44395
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44396
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44397
 
$as_echo_n "checking for $ac_header... " >&6; }
44398
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44399
 
  $as_echo_n "(cached) " >&6
44400
 
fi
44401
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
44402
 
                 $as_echo "$as_val"'`
44403
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44404
 
$as_echo "$ac_res" >&6; }
44405
 
else
44406
 
  # Is the header compilable?
44407
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
44408
 
$as_echo_n "checking $ac_header usability... " >&6; }
44409
 
cat >conftest.$ac_ext <<_ACEOF
44410
 
/* confdefs.h.  */
44411
 
_ACEOF
44412
 
cat confdefs.h >>conftest.$ac_ext
44413
 
cat >>conftest.$ac_ext <<_ACEOF
44414
 
/* end confdefs.h.  */
44415
 
$ac_includes_default
44416
 
#include <$ac_header>
44417
 
_ACEOF
44418
 
rm -f conftest.$ac_objext
44419
 
if { (ac_try="$ac_compile"
44420
 
case "(($ac_try" in
44421
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44422
 
  *) ac_try_echo=$ac_try;;
44423
 
esac
44424
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44425
 
$as_echo "$ac_try_echo") >&5
44426
 
  (eval "$ac_compile") 2>conftest.er1
44427
 
  ac_status=$?
44428
 
  grep -v '^ *+' conftest.er1 >conftest.err
44429
 
  rm -f conftest.er1
44430
 
  cat conftest.err >&5
44431
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44432
 
  (exit $ac_status); } && {
44433
 
         test -z "$ac_c_werror_flag" ||
44434
 
         test ! -s conftest.err
44435
 
       } && test -s conftest.$ac_objext; then
44436
 
  ac_header_compiler=yes
44437
 
else
44438
 
  $as_echo "$as_me: failed program was:" >&5
44439
 
sed 's/^/| /' conftest.$ac_ext >&5
44440
 
 
44441
 
        ac_header_compiler=no
44442
 
fi
44443
 
 
44444
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44445
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44446
 
$as_echo "$ac_header_compiler" >&6; }
44447
 
 
44448
 
# Is the header present?
44449
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
44450
 
$as_echo_n "checking $ac_header presence... " >&6; }
44451
 
cat >conftest.$ac_ext <<_ACEOF
44452
 
/* confdefs.h.  */
44453
 
_ACEOF
44454
 
cat confdefs.h >>conftest.$ac_ext
44455
 
cat >>conftest.$ac_ext <<_ACEOF
44456
 
/* end confdefs.h.  */
44457
 
#include <$ac_header>
44458
 
_ACEOF
44459
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
44460
 
case "(($ac_try" in
44461
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44462
 
  *) ac_try_echo=$ac_try;;
44463
 
esac
44464
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44465
 
$as_echo "$ac_try_echo") >&5
44466
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44467
 
  ac_status=$?
44468
 
  grep -v '^ *+' conftest.er1 >conftest.err
44469
 
  rm -f conftest.er1
44470
 
  cat conftest.err >&5
44471
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44472
 
  (exit $ac_status); } >/dev/null && {
44473
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44474
 
         test ! -s conftest.err
44475
 
       }; then
44476
 
  ac_header_preproc=yes
44477
 
else
44478
 
  $as_echo "$as_me: failed program was:" >&5
44479
 
sed 's/^/| /' conftest.$ac_ext >&5
44480
 
 
44481
 
  ac_header_preproc=no
44482
 
fi
44483
 
 
44484
 
rm -f conftest.err conftest.$ac_ext
44485
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44486
 
$as_echo "$ac_header_preproc" >&6; }
44487
 
 
44488
 
# So?  What about this header?
44489
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44490
 
  yes:no: )
44491
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44492
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44493
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44494
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44495
 
    ac_header_preproc=yes
44496
 
    ;;
44497
 
  no:yes:* )
44498
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44499
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44500
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44501
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44502
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44503
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44504
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44505
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44506
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44507
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44508
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44509
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44510
 
 
44511
 
    ;;
44512
 
esac
44513
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44514
 
$as_echo_n "checking for $ac_header... " >&6; }
44515
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44516
 
  $as_echo_n "(cached) " >&6
44517
 
else
44518
 
  eval "$as_ac_Header=\$ac_header_preproc"
44519
 
fi
44520
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
44521
 
                 $as_echo "$as_val"'`
44522
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44523
 
$as_echo "$ac_res" >&6; }
44524
 
 
44525
 
fi
44526
 
as_val=`eval 'as_val=${'$as_ac_Header'}
44527
 
                 $as_echo "$as_val"'`
44528
 
   if test "x$as_val" = x""yes; then
 
32451
do :
 
32452
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
32453
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
32454
eval as_val=\$$as_ac_Header
 
32455
   if test "x$as_val" = x""yes; then :
44529
32456
  cat >>confdefs.h <<_ACEOF
44530
32457
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44531
32458
_ACEOF
44538
32465
apr_revert_save_LIBS=$LIBS
44539
32466
 
44540
32467
# Prefer the flavor(s) that live in libc;
44541
 
{ $as_echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
 
32468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
44542
32469
$as_echo_n "checking for library containing uuid_create... " >&6; }
44543
 
if test "${ac_cv_search_uuid_create+set}" = set; then
 
32470
if test "${ac_cv_search_uuid_create+set}" = set; then :
44544
32471
  $as_echo_n "(cached) " >&6
44545
32472
else
44546
32473
  ac_func_search_save_LIBS=$LIBS
44547
 
cat >conftest.$ac_ext <<_ACEOF
44548
 
/* confdefs.h.  */
44549
 
_ACEOF
44550
 
cat confdefs.h >>conftest.$ac_ext
44551
 
cat >>conftest.$ac_ext <<_ACEOF
 
32474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44552
32475
/* end confdefs.h.  */
44553
32476
 
44554
32477
/* Override any GCC internal prototype to avoid an error.
44573
32496
    ac_res=-l$ac_lib
44574
32497
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
44575
32498
  fi
44576
 
  rm -f conftest.$ac_objext conftest$ac_exeext
44577
 
if { (ac_try="$ac_link"
44578
 
case "(($ac_try" in
44579
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44580
 
  *) ac_try_echo=$ac_try;;
44581
 
esac
44582
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44583
 
$as_echo "$ac_try_echo") >&5
44584
 
  (eval "$ac_link") 2>conftest.er1
44585
 
  ac_status=$?
44586
 
  grep -v '^ *+' conftest.er1 >conftest.err
44587
 
  rm -f conftest.er1
44588
 
  cat conftest.err >&5
44589
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44590
 
  (exit $ac_status); } && {
44591
 
         test -z "$ac_c_werror_flag" ||
44592
 
         test ! -s conftest.err
44593
 
       } && test -s conftest$ac_exeext && {
44594
 
         test "$cross_compiling" = yes ||
44595
 
         $as_test_x conftest$ac_exeext
44596
 
       }; then
 
32499
  if ac_fn_c_try_link "$LINENO"; then :
44597
32500
  ac_cv_search_uuid_create=$ac_res
44598
 
else
44599
 
  $as_echo "$as_me: failed program was:" >&5
44600
 
sed 's/^/| /' conftest.$ac_ext >&5
44601
 
 
44602
 
 
44603
32501
fi
44604
 
 
44605
 
rm -rf conftest.dSYM
44606
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44607
 
      conftest$ac_exeext
44608
 
  if test "${ac_cv_search_uuid_create+set}" = set; then
 
32502
rm -f core conftest.err conftest.$ac_objext \
 
32503
    conftest$ac_exeext
 
32504
  if test "${ac_cv_search_uuid_create+set}" = set; then :
44609
32505
  break
44610
32506
fi
44611
32507
done
44612
 
if test "${ac_cv_search_uuid_create+set}" = set; then
44613
 
  :
 
32508
if test "${ac_cv_search_uuid_create+set}" = set; then :
 
32509
 
44614
32510
else
44615
32511
  ac_cv_search_uuid_create=no
44616
32512
fi
44617
32513
rm conftest.$ac_ext
44618
32514
LIBS=$ac_func_search_save_LIBS
44619
32515
fi
44620
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
 
32516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
44621
32517
$as_echo "$ac_cv_search_uuid_create" >&6; }
44622
32518
ac_res=$ac_cv_search_uuid_create
44623
 
if test "$ac_res" != no; then
 
32519
if test "$ac_res" != no; then :
44624
32520
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
44625
32521
 
44626
32522
fi
44627
32523
 
44628
 
{ $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
 
32524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
44629
32525
$as_echo_n "checking for library containing uuid_generate... " >&6; }
44630
 
if test "${ac_cv_search_uuid_generate+set}" = set; then
 
32526
if test "${ac_cv_search_uuid_generate+set}" = set; then :
44631
32527
  $as_echo_n "(cached) " >&6
44632
32528
else
44633
32529
  ac_func_search_save_LIBS=$LIBS
44634
 
cat >conftest.$ac_ext <<_ACEOF
44635
 
/* confdefs.h.  */
44636
 
_ACEOF
44637
 
cat confdefs.h >>conftest.$ac_ext
44638
 
cat >>conftest.$ac_ext <<_ACEOF
 
32530
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44639
32531
/* end confdefs.h.  */
44640
32532
 
44641
32533
/* Override any GCC internal prototype to avoid an error.
44660
32552
    ac_res=-l$ac_lib
44661
32553
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
44662
32554
  fi
44663
 
  rm -f conftest.$ac_objext conftest$ac_exeext
44664
 
if { (ac_try="$ac_link"
44665
 
case "(($ac_try" in
44666
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44667
 
  *) ac_try_echo=$ac_try;;
44668
 
esac
44669
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44670
 
$as_echo "$ac_try_echo") >&5
44671
 
  (eval "$ac_link") 2>conftest.er1
44672
 
  ac_status=$?
44673
 
  grep -v '^ *+' conftest.er1 >conftest.err
44674
 
  rm -f conftest.er1
44675
 
  cat conftest.err >&5
44676
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44677
 
  (exit $ac_status); } && {
44678
 
         test -z "$ac_c_werror_flag" ||
44679
 
         test ! -s conftest.err
44680
 
       } && test -s conftest$ac_exeext && {
44681
 
         test "$cross_compiling" = yes ||
44682
 
         $as_test_x conftest$ac_exeext
44683
 
       }; then
 
32555
  if ac_fn_c_try_link "$LINENO"; then :
44684
32556
  ac_cv_search_uuid_generate=$ac_res
44685
 
else
44686
 
  $as_echo "$as_me: failed program was:" >&5
44687
 
sed 's/^/| /' conftest.$ac_ext >&5
44688
 
 
44689
 
 
44690
32557
fi
44691
 
 
44692
 
rm -rf conftest.dSYM
44693
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44694
 
      conftest$ac_exeext
44695
 
  if test "${ac_cv_search_uuid_generate+set}" = set; then
 
32558
rm -f core conftest.err conftest.$ac_objext \
 
32559
    conftest$ac_exeext
 
32560
  if test "${ac_cv_search_uuid_generate+set}" = set; then :
44696
32561
  break
44697
32562
fi
44698
32563
done
44699
 
if test "${ac_cv_search_uuid_generate+set}" = set; then
44700
 
  :
 
32564
if test "${ac_cv_search_uuid_generate+set}" = set; then :
 
32565
 
44701
32566
else
44702
32567
  ac_cv_search_uuid_generate=no
44703
32568
fi
44704
32569
rm conftest.$ac_ext
44705
32570
LIBS=$ac_func_search_save_LIBS
44706
32571
fi
44707
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
 
32572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
44708
32573
$as_echo "$ac_cv_search_uuid_generate" >&6; }
44709
32574
ac_res=$ac_cv_search_uuid_generate
44710
 
if test "$ac_res" != no; then
 
32575
if test "$ac_res" != no; then :
44711
32576
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
44712
32577
 
44713
32578
fi
44717
32582
 LIBS=$apr_revert_save_LIBS
44718
32583
fi
44719
32584
 
44720
 
 
44721
 
 
44722
32585
for ac_func in uuid_create uuid_generate
44723
 
do
44724
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44725
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44726
 
$as_echo_n "checking for $ac_func... " >&6; }
44727
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44728
 
  $as_echo_n "(cached) " >&6
44729
 
else
44730
 
  cat >conftest.$ac_ext <<_ACEOF
44731
 
/* confdefs.h.  */
44732
 
_ACEOF
44733
 
cat confdefs.h >>conftest.$ac_ext
44734
 
cat >>conftest.$ac_ext <<_ACEOF
44735
 
/* end confdefs.h.  */
44736
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44737
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44738
 
#define $ac_func innocuous_$ac_func
44739
 
 
44740
 
/* System header to define __stub macros and hopefully few prototypes,
44741
 
    which can conflict with char $ac_func (); below.
44742
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44743
 
    <limits.h> exists even on freestanding compilers.  */
44744
 
 
44745
 
#ifdef __STDC__
44746
 
# include <limits.h>
44747
 
#else
44748
 
# include <assert.h>
44749
 
#endif
44750
 
 
44751
 
#undef $ac_func
44752
 
 
44753
 
/* Override any GCC internal prototype to avoid an error.
44754
 
   Use char because int might match the return type of a GCC
44755
 
   builtin and then its argument prototype would still apply.  */
44756
 
#ifdef __cplusplus
44757
 
extern "C"
44758
 
#endif
44759
 
char $ac_func ();
44760
 
/* The GNU C library defines this for functions which it implements
44761
 
    to always fail with ENOSYS.  Some functions are actually named
44762
 
    something starting with __ and the normal name is an alias.  */
44763
 
#if defined __stub_$ac_func || defined __stub___$ac_func
44764
 
choke me
44765
 
#endif
44766
 
 
44767
 
int
44768
 
main ()
44769
 
{
44770
 
return $ac_func ();
44771
 
  ;
44772
 
  return 0;
44773
 
}
44774
 
_ACEOF
44775
 
rm -f conftest.$ac_objext conftest$ac_exeext
44776
 
if { (ac_try="$ac_link"
44777
 
case "(($ac_try" in
44778
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44779
 
  *) ac_try_echo=$ac_try;;
44780
 
esac
44781
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44782
 
$as_echo "$ac_try_echo") >&5
44783
 
  (eval "$ac_link") 2>conftest.er1
44784
 
  ac_status=$?
44785
 
  grep -v '^ *+' conftest.er1 >conftest.err
44786
 
  rm -f conftest.er1
44787
 
  cat conftest.err >&5
44788
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44789
 
  (exit $ac_status); } && {
44790
 
         test -z "$ac_c_werror_flag" ||
44791
 
         test ! -s conftest.err
44792
 
       } && test -s conftest$ac_exeext && {
44793
 
         test "$cross_compiling" = yes ||
44794
 
         $as_test_x conftest$ac_exeext
44795
 
       }; then
44796
 
  eval "$as_ac_var=yes"
44797
 
else
44798
 
  $as_echo "$as_me: failed program was:" >&5
44799
 
sed 's/^/| /' conftest.$ac_ext >&5
44800
 
 
44801
 
        eval "$as_ac_var=no"
44802
 
fi
44803
 
 
44804
 
rm -rf conftest.dSYM
44805
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44806
 
      conftest$ac_exeext conftest.$ac_ext
44807
 
fi
44808
 
ac_res=`eval 'as_val=${'$as_ac_var'}
44809
 
                 $as_echo "$as_val"'`
44810
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44811
 
$as_echo "$ac_res" >&6; }
44812
 
as_val=`eval 'as_val=${'$as_ac_var'}
44813
 
                 $as_echo "$as_val"'`
44814
 
   if test "x$as_val" = x""yes; then
 
32586
do :
 
32587
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
32588
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
32589
eval as_val=\$$as_ac_var
 
32590
   if test "x$as_val" = x""yes; then :
44815
32591
  cat >>confdefs.h <<_ACEOF
44816
32592
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44817
32593
_ACEOF
44820
32596
done
44821
32597
 
44822
32598
 
44823
 
{ $as_echo "$as_me:$LINENO: checking for os uuid usability" >&5
 
32599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
44824
32600
$as_echo_n "checking for os uuid usability... " >&6; }
44825
 
if test "${apr_cv_osuuid+set}" = set; then
 
32601
if test "${apr_cv_osuuid+set}" = set; then :
44826
32602
  $as_echo_n "(cached) " >&6
44827
32603
else
44828
32604
 
44844
32620
"
44845
32621
 apr_cv_osuuid=no
44846
32622
 if test $ac_cv_func_uuid_create = yes; then
44847
 
  cat >conftest.$ac_ext <<_ACEOF
44848
 
/* confdefs.h.  */
44849
 
_ACEOF
44850
 
cat confdefs.h >>conftest.$ac_ext
44851
 
cat >>conftest.$ac_ext <<_ACEOF
 
32623
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44852
32624
/* end confdefs.h.  */
44853
32625
$uuid_includes
44854
32626
int
44864
32636
  return 0;
44865
32637
}
44866
32638
_ACEOF
44867
 
rm -f conftest.$ac_objext conftest$ac_exeext
44868
 
if { (ac_try="$ac_link"
44869
 
case "(($ac_try" in
44870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44871
 
  *) ac_try_echo=$ac_try;;
44872
 
esac
44873
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44874
 
$as_echo "$ac_try_echo") >&5
44875
 
  (eval "$ac_link") 2>conftest.er1
44876
 
  ac_status=$?
44877
 
  grep -v '^ *+' conftest.er1 >conftest.err
44878
 
  rm -f conftest.er1
44879
 
  cat conftest.err >&5
44880
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44881
 
  (exit $ac_status); } && {
44882
 
         test -z "$ac_c_werror_flag" ||
44883
 
         test ! -s conftest.err
44884
 
       } && test -s conftest$ac_exeext && {
44885
 
         test "$cross_compiling" = yes ||
44886
 
         $as_test_x conftest$ac_exeext
44887
 
       }; then
 
32639
if ac_fn_c_try_link "$LINENO"; then :
44888
32640
  apr_cv_osuuid=yes
44889
32641
else
44890
 
  $as_echo "$as_me: failed program was:" >&5
44891
 
sed 's/^/| /' conftest.$ac_ext >&5
44892
 
 
44893
 
        apr_cv_func_uuid_create=no
 
32642
  apr_cv_func_uuid_create=no
44894
32643
fi
44895
 
 
44896
 
rm -rf conftest.dSYM
44897
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44898
 
      conftest$ac_exeext conftest.$ac_ext
 
32644
rm -f core conftest.err conftest.$ac_objext \
 
32645
    conftest$ac_exeext conftest.$ac_ext
44899
32646
 fi
44900
32647
 if test $ac_cv_func_uuid_generate = yes; then
44901
 
  cat >conftest.$ac_ext <<_ACEOF
44902
 
/* confdefs.h.  */
44903
 
_ACEOF
44904
 
cat confdefs.h >>conftest.$ac_ext
44905
 
cat >>conftest.$ac_ext <<_ACEOF
 
32648
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44906
32649
/* end confdefs.h.  */
44907
32650
$uuid_includes
44908
32651
int
44916
32659
  return 0;
44917
32660
}
44918
32661
_ACEOF
44919
 
rm -f conftest.$ac_objext conftest$ac_exeext
44920
 
if { (ac_try="$ac_link"
44921
 
case "(($ac_try" in
44922
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44923
 
  *) ac_try_echo=$ac_try;;
44924
 
esac
44925
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44926
 
$as_echo "$ac_try_echo") >&5
44927
 
  (eval "$ac_link") 2>conftest.er1
44928
 
  ac_status=$?
44929
 
  grep -v '^ *+' conftest.er1 >conftest.err
44930
 
  rm -f conftest.er1
44931
 
  cat conftest.err >&5
44932
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44933
 
  (exit $ac_status); } && {
44934
 
         test -z "$ac_c_werror_flag" ||
44935
 
         test ! -s conftest.err
44936
 
       } && test -s conftest$ac_exeext && {
44937
 
         test "$cross_compiling" = yes ||
44938
 
         $as_test_x conftest$ac_exeext
44939
 
       }; then
 
32662
if ac_fn_c_try_link "$LINENO"; then :
44940
32663
  apr_cv_osuuid=yes
44941
32664
else
44942
 
  $as_echo "$as_me: failed program was:" >&5
44943
 
sed 's/^/| /' conftest.$ac_ext >&5
44944
 
 
44945
 
        apr_cv_func_uuid_generate=no
 
32665
  apr_cv_func_uuid_generate=no
44946
32666
fi
44947
 
 
44948
 
rm -rf conftest.dSYM
44949
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44950
 
      conftest$ac_exeext conftest.$ac_ext
 
32667
rm -f core conftest.err conftest.$ac_objext \
 
32668
    conftest$ac_exeext conftest.$ac_ext
44951
32669
 fi
44952
32670
 
44953
32671
fi
44954
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_osuuid" >&5
 
32672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
44955
32673
$as_echo "$apr_cv_osuuid" >&6; }
44956
32674
 
44957
32675
if test $apr_cv_osuuid = yes; then
44965
32683
 
44966
32684
echo "${nl}Checking for Time Support..."
44967
32685
 
44968
 
{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
44969
 
$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
44970
 
if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
44971
 
  $as_echo_n "(cached) " >&6
44972
 
else
44973
 
  cat >conftest.$ac_ext <<_ACEOF
44974
 
/* confdefs.h.  */
44975
 
_ACEOF
44976
 
cat confdefs.h >>conftest.$ac_ext
44977
 
cat >>conftest.$ac_ext <<_ACEOF
44978
 
/* end confdefs.h.  */
44979
 
 
44980
 
#include <sys/types.h>
44981
 
#include <time.h>
44982
 
 
44983
 
int
44984
 
main ()
44985
 
{
44986
 
static struct tm ac_aggr;
44987
 
if (ac_aggr.tm_gmtoff)
44988
 
return 0;
44989
 
  ;
44990
 
  return 0;
44991
 
}
44992
 
_ACEOF
44993
 
rm -f conftest.$ac_objext
44994
 
if { (ac_try="$ac_compile"
44995
 
case "(($ac_try" in
44996
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44997
 
  *) ac_try_echo=$ac_try;;
44998
 
esac
44999
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45000
 
$as_echo "$ac_try_echo") >&5
45001
 
  (eval "$ac_compile") 2>conftest.er1
45002
 
  ac_status=$?
45003
 
  grep -v '^ *+' conftest.er1 >conftest.err
45004
 
  rm -f conftest.er1
45005
 
  cat conftest.err >&5
45006
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45007
 
  (exit $ac_status); } && {
45008
 
         test -z "$ac_c_werror_flag" ||
45009
 
         test ! -s conftest.err
45010
 
       } && test -s conftest.$ac_objext; then
45011
 
  ac_cv_member_struct_tm_tm_gmtoff=yes
45012
 
else
45013
 
  $as_echo "$as_me: failed program was:" >&5
45014
 
sed 's/^/| /' conftest.$ac_ext >&5
45015
 
 
45016
 
        cat >conftest.$ac_ext <<_ACEOF
45017
 
/* confdefs.h.  */
45018
 
_ACEOF
45019
 
cat confdefs.h >>conftest.$ac_ext
45020
 
cat >>conftest.$ac_ext <<_ACEOF
45021
 
/* end confdefs.h.  */
45022
 
 
45023
 
#include <sys/types.h>
45024
 
#include <time.h>
45025
 
 
45026
 
int
45027
 
main ()
45028
 
{
45029
 
static struct tm ac_aggr;
45030
 
if (sizeof ac_aggr.tm_gmtoff)
45031
 
return 0;
45032
 
  ;
45033
 
  return 0;
45034
 
}
45035
 
_ACEOF
45036
 
rm -f conftest.$ac_objext
45037
 
if { (ac_try="$ac_compile"
45038
 
case "(($ac_try" in
45039
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45040
 
  *) ac_try_echo=$ac_try;;
45041
 
esac
45042
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45043
 
$as_echo "$ac_try_echo") >&5
45044
 
  (eval "$ac_compile") 2>conftest.er1
45045
 
  ac_status=$?
45046
 
  grep -v '^ *+' conftest.er1 >conftest.err
45047
 
  rm -f conftest.er1
45048
 
  cat conftest.err >&5
45049
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45050
 
  (exit $ac_status); } && {
45051
 
         test -z "$ac_c_werror_flag" ||
45052
 
         test ! -s conftest.err
45053
 
       } && test -s conftest.$ac_objext; then
45054
 
  ac_cv_member_struct_tm_tm_gmtoff=yes
45055
 
else
45056
 
  $as_echo "$as_me: failed program was:" >&5
45057
 
sed 's/^/| /' conftest.$ac_ext >&5
45058
 
 
45059
 
        ac_cv_member_struct_tm_tm_gmtoff=no
45060
 
fi
45061
 
 
45062
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45063
 
fi
45064
 
 
45065
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45066
 
fi
45067
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
45068
 
$as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
45069
 
if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
 
32686
ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
 
32687
#include <sys/types.h>
 
32688
#include <time.h>
 
32689
"
 
32690
if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
45070
32691
 
45071
32692
cat >>confdefs.h <<_ACEOF
45072
32693
#define HAVE_STRUCT_TM_TM_GMTOFF 1
45074
32695
 
45075
32696
 
45076
32697
fi
45077
 
{ $as_echo "$as_me:$LINENO: checking for struct tm.__tm_gmtoff" >&5
45078
 
$as_echo_n "checking for struct tm.__tm_gmtoff... " >&6; }
45079
 
if test "${ac_cv_member_struct_tm___tm_gmtoff+set}" = set; then
45080
 
  $as_echo_n "(cached) " >&6
45081
 
else
45082
 
  cat >conftest.$ac_ext <<_ACEOF
45083
 
/* confdefs.h.  */
45084
 
_ACEOF
45085
 
cat confdefs.h >>conftest.$ac_ext
45086
 
cat >>conftest.$ac_ext <<_ACEOF
45087
 
/* end confdefs.h.  */
45088
 
 
45089
 
#include <sys/types.h>
45090
 
#include <time.h>
45091
 
 
45092
 
int
45093
 
main ()
45094
 
{
45095
 
static struct tm ac_aggr;
45096
 
if (ac_aggr.__tm_gmtoff)
45097
 
return 0;
45098
 
  ;
45099
 
  return 0;
45100
 
}
45101
 
_ACEOF
45102
 
rm -f conftest.$ac_objext
45103
 
if { (ac_try="$ac_compile"
45104
 
case "(($ac_try" in
45105
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45106
 
  *) ac_try_echo=$ac_try;;
45107
 
esac
45108
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45109
 
$as_echo "$ac_try_echo") >&5
45110
 
  (eval "$ac_compile") 2>conftest.er1
45111
 
  ac_status=$?
45112
 
  grep -v '^ *+' conftest.er1 >conftest.err
45113
 
  rm -f conftest.er1
45114
 
  cat conftest.err >&5
45115
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45116
 
  (exit $ac_status); } && {
45117
 
         test -z "$ac_c_werror_flag" ||
45118
 
         test ! -s conftest.err
45119
 
       } && test -s conftest.$ac_objext; then
45120
 
  ac_cv_member_struct_tm___tm_gmtoff=yes
45121
 
else
45122
 
  $as_echo "$as_me: failed program was:" >&5
45123
 
sed 's/^/| /' conftest.$ac_ext >&5
45124
 
 
45125
 
        cat >conftest.$ac_ext <<_ACEOF
45126
 
/* confdefs.h.  */
45127
 
_ACEOF
45128
 
cat confdefs.h >>conftest.$ac_ext
45129
 
cat >>conftest.$ac_ext <<_ACEOF
45130
 
/* end confdefs.h.  */
45131
 
 
45132
 
#include <sys/types.h>
45133
 
#include <time.h>
45134
 
 
45135
 
int
45136
 
main ()
45137
 
{
45138
 
static struct tm ac_aggr;
45139
 
if (sizeof ac_aggr.__tm_gmtoff)
45140
 
return 0;
45141
 
  ;
45142
 
  return 0;
45143
 
}
45144
 
_ACEOF
45145
 
rm -f conftest.$ac_objext
45146
 
if { (ac_try="$ac_compile"
45147
 
case "(($ac_try" in
45148
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45149
 
  *) ac_try_echo=$ac_try;;
45150
 
esac
45151
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45152
 
$as_echo "$ac_try_echo") >&5
45153
 
  (eval "$ac_compile") 2>conftest.er1
45154
 
  ac_status=$?
45155
 
  grep -v '^ *+' conftest.er1 >conftest.err
45156
 
  rm -f conftest.er1
45157
 
  cat conftest.err >&5
45158
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45159
 
  (exit $ac_status); } && {
45160
 
         test -z "$ac_c_werror_flag" ||
45161
 
         test ! -s conftest.err
45162
 
       } && test -s conftest.$ac_objext; then
45163
 
  ac_cv_member_struct_tm___tm_gmtoff=yes
45164
 
else
45165
 
  $as_echo "$as_me: failed program was:" >&5
45166
 
sed 's/^/| /' conftest.$ac_ext >&5
45167
 
 
45168
 
        ac_cv_member_struct_tm___tm_gmtoff=no
45169
 
fi
45170
 
 
45171
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45172
 
fi
45173
 
 
45174
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45175
 
fi
45176
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm___tm_gmtoff" >&5
45177
 
$as_echo "$ac_cv_member_struct_tm___tm_gmtoff" >&6; }
45178
 
if test "x$ac_cv_member_struct_tm___tm_gmtoff" = x""yes; then
 
32698
ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
 
32699
#include <sys/types.h>
 
32700
#include <time.h>
 
32701
"
 
32702
if test "x$ac_cv_member_struct_tm___tm_gmtoff" = x""yes; then :
45179
32703
 
45180
32704
cat >>confdefs.h <<_ACEOF
45181
32705
#define HAVE_STRUCT_TM___TM_GMTOFF 1
45187
32711
 
45188
32712
echo "${nl}Checking for Networking support..."
45189
32713
 
45190
 
  { $as_echo "$as_me:$LINENO: checking for type in_addr" >&5
 
32714
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
45191
32715
$as_echo_n "checking for type in_addr... " >&6; }
45192
 
if test "${ac_cv_type_in_addr+set}" = set; then
 
32716
if test "${ac_cv_type_in_addr+set}" = set; then :
45193
32717
  $as_echo_n "(cached) " >&6
45194
32718
else
45195
32719
 
45196
 
  cat >conftest.$ac_ext <<_ACEOF
45197
 
/* confdefs.h.  */
45198
 
_ACEOF
45199
 
cat confdefs.h >>conftest.$ac_ext
45200
 
cat >>conftest.$ac_ext <<_ACEOF
 
32720
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45201
32721
/* end confdefs.h.  */
45202
32722
 
45203
32723
#ifdef HAVE_SYS_TYPES_H
45221
32741
  return 0;
45222
32742
}
45223
32743
_ACEOF
45224
 
rm -f conftest.$ac_objext
45225
 
if { (ac_try="$ac_compile"
45226
 
case "(($ac_try" in
45227
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45228
 
  *) ac_try_echo=$ac_try;;
45229
 
esac
45230
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45231
 
$as_echo "$ac_try_echo") >&5
45232
 
  (eval "$ac_compile") 2>conftest.er1
45233
 
  ac_status=$?
45234
 
  grep -v '^ *+' conftest.er1 >conftest.err
45235
 
  rm -f conftest.er1
45236
 
  cat conftest.err >&5
45237
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45238
 
  (exit $ac_status); } && {
45239
 
         test -z "$ac_c_werror_flag" ||
45240
 
         test ! -s conftest.err
45241
 
       } && test -s conftest.$ac_objext; then
 
32744
if ac_fn_c_try_compile "$LINENO"; then :
45242
32745
   ac_cv_type_in_addr="yes"
45243
32746
else
45244
 
  $as_echo "$as_me: failed program was:" >&5
45245
 
sed 's/^/| /' conftest.$ac_ext >&5
45246
 
 
45247
32747
 
45248
32748
ac_cv_type_in_addr="no"
45249
32749
fi
45250
 
 
45251
32750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45252
32751
 
45253
32752
fi
45254
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_addr" >&5
 
32753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
45255
32754
$as_echo "$ac_cv_type_in_addr" >&6; }
45256
32755
 
45257
32756
if test "$ac_cv_type_in_addr" = "yes"; then
45260
32759
  have_in_addr="0"
45261
32760
fi
45262
32761
 
45263
 
{ $as_echo "$as_me:$LINENO: checking if fd == socket on this platform" >&5
 
32762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
45264
32763
$as_echo_n "checking if fd == socket on this platform... " >&6; }
45265
32764
if test "x$file_as_socket" != "x0" ; then
45266
32765
    file_as_socket="1";
45274
32773
 
45275
32774
if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
45276
32775
 
45277
 
cat >>confdefs.h <<\_ACEOF
45278
 
#define WAITIO_USES_POLL 1
45279
 
_ACEOF
 
32776
$as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
45280
32777
 
45281
32778
fi
45282
32779
 
45284
32781
if test "$ac_cv_func_gethostbyname_r" = "yes"; then
45285
32782
 
45286
32783
 
45287
 
{ $as_echo "$as_me:$LINENO: checking style of gethostbyname_r routine" >&5
 
32784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
45288
32785
$as_echo_n "checking style of gethostbyname_r routine... " >&6; }
45289
 
if test "${ac_cv_gethostbyname_r_style+set}" = set; then
 
32786
if test "${ac_cv_gethostbyname_r_style+set}" = set; then :
45290
32787
  $as_echo_n "(cached) " >&6
45291
32788
else
45292
32789
  apr_save_CFLAGS=$CFLAGS
45294
32791
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
45295
32792
   CFLAGS="$CFLAGS -Werror"
45296
32793
 fi
45297
 
 cat >conftest.$ac_ext <<_ACEOF
 
32794
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
32795
/* end confdefs.h.  */
45298
32796
#include "confdefs.h"
45299
32797
 
45300
32798
 
45323
32821
 
45324
32822
     return 0; }
45325
32823
_ACEOF
45326
 
rm -f conftest.$ac_objext
45327
 
if { (ac_try="$ac_compile"
45328
 
case "(($ac_try" in
45329
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45330
 
  *) ac_try_echo=$ac_try;;
45331
 
esac
45332
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45333
 
$as_echo "$ac_try_echo") >&5
45334
 
  (eval "$ac_compile") 2>conftest.er1
45335
 
  ac_status=$?
45336
 
  grep -v '^ *+' conftest.er1 >conftest.err
45337
 
  rm -f conftest.er1
45338
 
  cat conftest.err >&5
45339
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45340
 
  (exit $ac_status); } && {
45341
 
         test -z "$ac_c_werror_flag" ||
45342
 
         test ! -s conftest.err
45343
 
       } && test -s conftest.$ac_objext; then
 
32824
if ac_fn_c_try_compile "$LINENO"; then :
45344
32825
  ac_cv_gethostbyname_r_style=glibc2
45345
32826
else
45346
 
  $as_echo "$as_me: failed program was:" >&5
45347
 
sed 's/^/| /' conftest.$ac_ext >&5
45348
 
 
45349
 
        ac_cv_gethostbyname_r_style=none
 
32827
  ac_cv_gethostbyname_r_style=none
45350
32828
fi
45351
 
 
45352
32829
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45353
32830
 CFLAGS=$apr_save_CFLAGS
45354
32831
 
45355
32832
fi
45356
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gethostbyname_r_style" >&5
 
32833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
45357
32834
$as_echo "$ac_cv_gethostbyname_r_style" >&6; }
45358
32835
 
45359
32836
if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
45360
32837
 
45361
 
cat >>confdefs.h <<\_ACEOF
45362
 
#define GETHOSTBYNAME_R_GLIBC2 1
45363
 
_ACEOF
 
32838
$as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
45364
32839
 
45365
32840
fi
45366
32841
 
45367
 
{ $as_echo "$as_me:$LINENO: checking 3rd argument to the gethostbyname_r routines" >&5
 
32842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
45368
32843
$as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
45369
 
if test "${ac_cv_gethostbyname_r_arg+set}" = set; then
 
32844
if test "${ac_cv_gethostbyname_r_arg+set}" = set; then :
45370
32845
  $as_echo_n "(cached) " >&6
45371
32846
else
45372
32847
  apr_save_CFLAGS=$CFLAGS
45374
32849
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
45375
32850
   CFLAGS="$CFLAGS -Werror"
45376
32851
 fi
45377
 
 cat >conftest.$ac_ext <<_ACEOF
 
32852
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
32853
/* end confdefs.h.  */
45378
32854
#include "confdefs.h"
45379
32855
 
45380
32856
 
45403
32879
 
45404
32880
     return 0; }
45405
32881
_ACEOF
45406
 
rm -f conftest.$ac_objext
45407
 
if { (ac_try="$ac_compile"
45408
 
case "(($ac_try" in
45409
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45410
 
  *) ac_try_echo=$ac_try;;
45411
 
esac
45412
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45413
 
$as_echo "$ac_try_echo") >&5
45414
 
  (eval "$ac_compile") 2>conftest.er1
45415
 
  ac_status=$?
45416
 
  grep -v '^ *+' conftest.er1 >conftest.err
45417
 
  rm -f conftest.er1
45418
 
  cat conftest.err >&5
45419
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45420
 
  (exit $ac_status); } && {
45421
 
         test -z "$ac_c_werror_flag" ||
45422
 
         test ! -s conftest.err
45423
 
       } && test -s conftest.$ac_objext; then
 
32882
if ac_fn_c_try_compile "$LINENO"; then :
45424
32883
  ac_cv_gethostbyname_r_arg=hostent_data
45425
32884
else
45426
 
  $as_echo "$as_me: failed program was:" >&5
45427
 
sed 's/^/| /' conftest.$ac_ext >&5
45428
 
 
45429
 
        ac_cv_gethostbyname_r_arg=char
 
32885
  ac_cv_gethostbyname_r_arg=char
45430
32886
fi
45431
 
 
45432
32887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45433
32888
 CFLAGS=$apr_save_CFLAGS
45434
32889
 
45435
32890
fi
45436
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_gethostbyname_r_arg" >&5
 
32891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
45437
32892
$as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
45438
32893
 
45439
32894
if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
45440
32895
 
45441
 
cat >>confdefs.h <<\_ACEOF
45442
 
#define GETHOSTBYNAME_R_HOSTENT_DATA 1
45443
 
_ACEOF
 
32896
$as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
45444
32897
 
45445
32898
fi
45446
32899
 
45450
32903
if test "$ac_cv_func_getservbyname_r" = "yes"; then
45451
32904
 
45452
32905
 
45453
 
{ $as_echo "$as_me:$LINENO: checking style of getservbyname_r routine" >&5
 
32906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
45454
32907
$as_echo_n "checking style of getservbyname_r routine... " >&6; }
45455
 
if test "${ac_cv_getservbyname_r_style+set}" = set; then
 
32908
if test "${ac_cv_getservbyname_r_style+set}" = set; then :
45456
32909
  $as_echo_n "(cached) " >&6
45457
32910
else
45458
32911
 
45461
32914
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
45462
32915
   CFLAGS="$CFLAGS -Werror"
45463
32916
 fi
45464
 
 cat >conftest.$ac_ext <<_ACEOF
 
32917
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
32918
/* end confdefs.h.  */
45465
32919
#include "confdefs.h"
45466
32920
 
45467
32921
 
45491
32945
 
45492
32946
     return 0; }
45493
32947
_ACEOF
45494
 
rm -f conftest.$ac_objext
45495
 
if { (ac_try="$ac_compile"
45496
 
case "(($ac_try" in
45497
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45498
 
  *) ac_try_echo=$ac_try;;
45499
 
esac
45500
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45501
 
$as_echo "$ac_try_echo") >&5
45502
 
  (eval "$ac_compile") 2>conftest.er1
45503
 
  ac_status=$?
45504
 
  grep -v '^ *+' conftest.er1 >conftest.err
45505
 
  rm -f conftest.er1
45506
 
  cat conftest.err >&5
45507
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45508
 
  (exit $ac_status); } && {
45509
 
         test -z "$ac_c_werror_flag" ||
45510
 
         test ! -s conftest.err
45511
 
       } && test -s conftest.$ac_objext; then
 
32948
if ac_fn_c_try_compile "$LINENO"; then :
45512
32949
  ac_cv_getservbyname_r_style=glibc2
45513
32950
else
45514
 
  $as_echo "$as_me: failed program was:" >&5
45515
 
sed 's/^/| /' conftest.$ac_ext >&5
45516
 
 
45517
 
        ac_cv_getservbyname_r_style=none
 
32951
  ac_cv_getservbyname_r_style=none
45518
32952
fi
45519
 
 
45520
32953
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45521
32954
 CFLAGS=$apr_save_CFLAGS
45522
32955
 
45527
32960
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
45528
32961
   CFLAGS="$CFLAGS -Werror"
45529
32962
 fi
45530
 
 cat >conftest.$ac_ext <<_ACEOF
 
32963
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
32964
/* end confdefs.h.  */
45531
32965
#include "confdefs.h"
45532
32966
 
45533
32967
 
45556
32990
 
45557
32991
     return 0; }
45558
32992
_ACEOF
45559
 
rm -f conftest.$ac_objext
45560
 
if { (ac_try="$ac_compile"
45561
 
case "(($ac_try" in
45562
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45563
 
  *) ac_try_echo=$ac_try;;
45564
 
esac
45565
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45566
 
$as_echo "$ac_try_echo") >&5
45567
 
  (eval "$ac_compile") 2>conftest.er1
45568
 
  ac_status=$?
45569
 
  grep -v '^ *+' conftest.er1 >conftest.err
45570
 
  rm -f conftest.er1
45571
 
  cat conftest.err >&5
45572
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45573
 
  (exit $ac_status); } && {
45574
 
         test -z "$ac_c_werror_flag" ||
45575
 
         test ! -s conftest.err
45576
 
       } && test -s conftest.$ac_objext; then
 
32993
if ac_fn_c_try_compile "$LINENO"; then :
45577
32994
  ac_cv_getservbyname_r_style=solaris
45578
32995
else
45579
 
  $as_echo "$as_me: failed program was:" >&5
45580
 
sed 's/^/| /' conftest.$ac_ext >&5
45581
 
 
45582
 
        ac_cv_getservbyname_r_style=none
 
32996
  ac_cv_getservbyname_r_style=none
45583
32997
fi
45584
 
 
45585
32998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45586
32999
 CFLAGS=$apr_save_CFLAGS
45587
33000
 
45593
33006
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
45594
33007
   CFLAGS="$CFLAGS -Werror"
45595
33008
 fi
45596
 
 cat >conftest.$ac_ext <<_ACEOF
 
33009
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
33010
/* end confdefs.h.  */
45597
33011
#include "confdefs.h"
45598
33012
 
45599
33013
 
45622
33036
 
45623
33037
     return 0; }
45624
33038
_ACEOF
45625
 
rm -f conftest.$ac_objext
45626
 
if { (ac_try="$ac_compile"
45627
 
case "(($ac_try" in
45628
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45629
 
  *) ac_try_echo=$ac_try;;
45630
 
esac
45631
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45632
 
$as_echo "$ac_try_echo") >&5
45633
 
  (eval "$ac_compile") 2>conftest.er1
45634
 
  ac_status=$?
45635
 
  grep -v '^ *+' conftest.er1 >conftest.err
45636
 
  rm -f conftest.er1
45637
 
  cat conftest.err >&5
45638
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45639
 
  (exit $ac_status); } && {
45640
 
         test -z "$ac_c_werror_flag" ||
45641
 
         test ! -s conftest.err
45642
 
       } && test -s conftest.$ac_objext; then
 
33039
if ac_fn_c_try_compile "$LINENO"; then :
45643
33040
  ac_cv_getservbyname_r_style=osf1
45644
33041
else
45645
 
  $as_echo "$as_me: failed program was:" >&5
45646
 
sed 's/^/| /' conftest.$ac_ext >&5
45647
 
 
45648
 
        ac_cv_getservbyname_r_style=none
 
33042
  ac_cv_getservbyname_r_style=none
45649
33043
fi
45650
 
 
45651
33044
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45652
33045
 CFLAGS=$apr_save_CFLAGS
45653
33046
 
45654
33047
fi
45655
33048
 
45656
33049
fi
45657
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_getservbyname_r_style" >&5
 
33050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
45658
33051
$as_echo "$ac_cv_getservbyname_r_style" >&6; }
45659
33052
 
45660
33053
if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
45661
33054
 
45662
 
cat >>confdefs.h <<\_ACEOF
45663
 
#define GETSERVBYNAME_R_GLIBC2 1
45664
 
_ACEOF
 
33055
$as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
45665
33056
 
45666
33057
elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
45667
33058
 
45668
 
cat >>confdefs.h <<\_ACEOF
45669
 
#define GETSERVBYNAME_R_SOLARIS 1
45670
 
_ACEOF
 
33059
$as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
45671
33060
 
45672
33061
elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
45673
33062
 
45674
 
cat >>confdefs.h <<\_ACEOF
45675
 
#define GETSERVBYNAME_R_OSF1 1
45676
 
_ACEOF
45677
 
 
45678
 
fi
45679
 
 
45680
 
fi
45681
 
 
45682
 
 
45683
 
  { $as_echo "$as_me:$LINENO: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
 
33063
$as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
 
33064
 
 
33065
fi
 
33066
 
 
33067
fi
 
33068
 
 
33069
 
 
33070
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
45684
33071
$as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
45685
 
if test "${ac_cv_tcp_nodelay_inherited+set}" = set; then
 
33072
if test "${ac_cv_tcp_nodelay_inherited+set}" = set; then :
45686
33073
  $as_echo_n "(cached) " >&6
45687
33074
else
45688
33075
 
45689
 
  if test "$cross_compiling" = yes; then
 
33076
  if test "$cross_compiling" = yes; then :
45690
33077
 
45691
33078
    ac_cv_tcp_nodelay_inherited="yes"
45692
33079
 
45693
33080
else
45694
 
  cat >conftest.$ac_ext <<_ACEOF
45695
 
/* confdefs.h.  */
45696
 
_ACEOF
45697
 
cat confdefs.h >>conftest.$ac_ext
45698
 
cat >>conftest.$ac_ext <<_ACEOF
 
33081
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45699
33082
/* end confdefs.h.  */
45700
33083
 
45701
33084
#include <stdio.h>
45794
33177
}
45795
33178
 
45796
33179
_ACEOF
45797
 
rm -f conftest$ac_exeext
45798
 
if { (ac_try="$ac_link"
45799
 
case "(($ac_try" in
45800
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45801
 
  *) ac_try_echo=$ac_try;;
45802
 
esac
45803
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45804
 
$as_echo "$ac_try_echo") >&5
45805
 
  (eval "$ac_link") 2>&5
45806
 
  ac_status=$?
45807
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45808
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45809
 
  { (case "(($ac_try" in
45810
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45811
 
  *) ac_try_echo=$ac_try;;
45812
 
esac
45813
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45814
 
$as_echo "$ac_try_echo") >&5
45815
 
  (eval "$ac_try") 2>&5
45816
 
  ac_status=$?
45817
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45818
 
  (exit $ac_status); }; }; then
 
33180
if ac_fn_c_try_run "$LINENO"; then :
45819
33181
 
45820
33182
    ac_cv_tcp_nodelay_inherited="yes"
45821
33183
 
45822
33184
else
45823
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
45824
 
$as_echo "$as_me: failed program was:" >&5
45825
 
sed 's/^/| /' conftest.$ac_ext >&5
45826
 
 
45827
 
( exit $ac_status )
45828
33185
 
45829
33186
    ac_cv_tcp_nodelay_inherited="no"
45830
33187
 
45831
33188
fi
45832
 
rm -rf conftest.dSYM
45833
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45834
 
fi
45835
 
 
45836
 
 
45837
 
fi
45838
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_tcp_nodelay_inherited" >&5
 
33189
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
33190
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
33191
fi
 
33192
 
 
33193
fi
 
33194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
45839
33195
$as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
45840
33196
if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
45841
33197
    tcp_nodelay_inherited=1
45844
33200
fi
45845
33201
 
45846
33202
 
45847
 
  { $as_echo "$as_me:$LINENO: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
 
33203
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
45848
33204
$as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
45849
 
if test "${ac_cv_o_nonblock_inherited+set}" = set; then
 
33205
if test "${ac_cv_o_nonblock_inherited+set}" = set; then :
45850
33206
  $as_echo_n "(cached) " >&6
45851
33207
else
45852
33208
 
45853
 
  if test "$cross_compiling" = yes; then
 
33209
  if test "$cross_compiling" = yes; then :
45854
33210
 
45855
33211
    ac_cv_o_nonblock_inherited="yes"
45856
33212
 
45857
33213
else
45858
 
  cat >conftest.$ac_ext <<_ACEOF
45859
 
/* confdefs.h.  */
45860
 
_ACEOF
45861
 
cat confdefs.h >>conftest.$ac_ext
45862
 
cat >>conftest.$ac_ext <<_ACEOF
 
33214
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45863
33215
/* end confdefs.h.  */
45864
33216
 
45865
33217
#include <stdio.h>
45957
33309
}
45958
33310
 
45959
33311
_ACEOF
45960
 
rm -f conftest$ac_exeext
45961
 
if { (ac_try="$ac_link"
45962
 
case "(($ac_try" in
45963
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45964
 
  *) ac_try_echo=$ac_try;;
45965
 
esac
45966
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45967
 
$as_echo "$ac_try_echo") >&5
45968
 
  (eval "$ac_link") 2>&5
45969
 
  ac_status=$?
45970
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45971
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45972
 
  { (case "(($ac_try" in
45973
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45974
 
  *) ac_try_echo=$ac_try;;
45975
 
esac
45976
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45977
 
$as_echo "$ac_try_echo") >&5
45978
 
  (eval "$ac_try") 2>&5
45979
 
  ac_status=$?
45980
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45981
 
  (exit $ac_status); }; }; then
 
33312
if ac_fn_c_try_run "$LINENO"; then :
45982
33313
 
45983
33314
    ac_cv_o_nonblock_inherited="yes"
45984
33315
 
45985
33316
else
45986
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
45987
 
$as_echo "$as_me: failed program was:" >&5
45988
 
sed 's/^/| /' conftest.$ac_ext >&5
45989
 
 
45990
 
( exit $ac_status )
45991
33317
 
45992
33318
    ac_cv_o_nonblock_inherited="no"
45993
33319
 
45994
33320
fi
45995
 
rm -rf conftest.dSYM
45996
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45997
 
fi
45998
 
 
45999
 
 
46000
 
fi
46001
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_o_nonblock_inherited" >&5
 
33321
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
33322
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
33323
fi
 
33324
 
 
33325
fi
 
33326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
46002
33327
$as_echo "$ac_cv_o_nonblock_inherited" >&6; }
46003
33328
if test "$ac_cv_o_nonblock_inherited" = "yes"; then
46004
33329
    o_nonblock_inherited=1
46007
33332
fi
46008
33333
 
46009
33334
 
46010
 
{ $as_echo "$as_me:$LINENO: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
 
33335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
46011
33336
$as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
46012
 
if test "${apr_cv_tcp_nodelay_with_cork+set}" = set; then
 
33337
if test "${apr_cv_tcp_nodelay_with_cork+set}" = set; then :
46013
33338
  $as_echo_n "(cached) " >&6
46014
33339
else
46015
 
  if test "$cross_compiling" = yes; then
46016
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
33340
  if test "$cross_compiling" = yes; then :
 
33341
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46017
33342
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46018
 
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
46019
 
See \`config.log' for more details." >&5
46020
 
$as_echo "$as_me: error: cannot run test program while cross compiling
46021
 
See \`config.log' for more details." >&2;}
46022
 
   { (exit 1); exit 1; }; }; }
 
33343
as_fn_error "cannot run test program while cross compiling
 
33344
See \`config.log' for more details." "$LINENO" 5; }
46023
33345
else
46024
 
  cat >conftest.$ac_ext <<_ACEOF
46025
 
/* confdefs.h.  */
46026
 
_ACEOF
46027
 
cat confdefs.h >>conftest.$ac_ext
46028
 
cat >>conftest.$ac_ext <<_ACEOF
 
33346
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46029
33347
/* end confdefs.h.  */
46030
33348
 
46031
33349
#ifdef HAVE_SYS_TYPES_H
46074
33392
  return 0;
46075
33393
}
46076
33394
_ACEOF
46077
 
rm -f conftest$ac_exeext
46078
 
if { (ac_try="$ac_link"
46079
 
case "(($ac_try" in
46080
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46081
 
  *) ac_try_echo=$ac_try;;
46082
 
esac
46083
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46084
 
$as_echo "$ac_try_echo") >&5
46085
 
  (eval "$ac_link") 2>&5
46086
 
  ac_status=$?
46087
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46088
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
46096
 
  ac_status=$?
46097
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46098
 
  (exit $ac_status); }; }; then
 
33395
if ac_fn_c_try_run "$LINENO"; then :
46099
33396
  apr_cv_tcp_nodelay_with_cork=yes
46100
33397
else
46101
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
46102
 
$as_echo "$as_me: failed program was:" >&5
46103
 
sed 's/^/| /' conftest.$ac_ext >&5
46104
 
 
46105
 
( exit $ac_status )
46106
 
apr_cv_tcp_nodelay_with_cork=no
46107
 
fi
46108
 
rm -rf conftest.dSYM
46109
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46110
 
fi
46111
 
 
46112
 
 
46113
 
fi
46114
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_tcp_nodelay_with_cork" >&5
 
33398
  apr_cv_tcp_nodelay_with_cork=no
 
33399
fi
 
33400
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
33401
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
33402
fi
 
33403
 
 
33404
fi
 
33405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
46115
33406
$as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
46116
33407
 
46117
33408
if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
46118
33409
 
46119
 
cat >>confdefs.h <<\_ACEOF
46120
 
#define HAVE_TCP_NODELAY_WITH_CORK 1
46121
 
_ACEOF
 
33410
$as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
46122
33411
 
46123
33412
fi
46124
33413
 
46125
33414
 
46126
33415
# Look for a way of corking TCP...
46127
33416
 
46128
 
  { $as_echo "$as_me:$LINENO: checking for TCP_CORK in netinet/tcp.h" >&5
 
33417
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
46129
33418
$as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
46130
 
if test "${ac_cv_define_TCP_CORK+set}" = set; then
 
33419
if test "${ac_cv_define_TCP_CORK+set}" = set; then :
46131
33420
  $as_echo_n "(cached) " >&6
46132
33421
else
46133
33422
 
46134
 
    cat >conftest.$ac_ext <<_ACEOF
46135
 
/* confdefs.h.  */
46136
 
_ACEOF
46137
 
cat confdefs.h >>conftest.$ac_ext
46138
 
cat >>conftest.$ac_ext <<_ACEOF
 
33423
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46139
33424
/* end confdefs.h.  */
46140
33425
 
46141
33426
#include <netinet/tcp.h>
46145
33430
 
46146
33431
_ACEOF
46147
33432
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46148
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
33433
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
46149
33434
  ac_cv_define_TCP_CORK=yes
46150
33435
else
46151
33436
  ac_cv_define_TCP_CORK=no
46154
33439
 
46155
33440
 
46156
33441
fi
46157
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_TCP_CORK" >&5
 
33442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
46158
33443
$as_echo "$ac_cv_define_TCP_CORK" >&6; }
46159
33444
  if test "$ac_cv_define_TCP_CORK" = "yes"; then
46160
33445
 
46161
 
cat >>confdefs.h <<\_ACEOF
46162
 
#define HAVE_TCP_CORK 1
46163
 
_ACEOF
 
33446
$as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
46164
33447
 
46165
33448
  fi
46166
33449
 
46167
33450
 
46168
 
  { $as_echo "$as_me:$LINENO: checking for TCP_NOPUSH in netinet/tcp.h" >&5
 
33451
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
46169
33452
$as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
46170
 
if test "${ac_cv_define_TCP_NOPUSH+set}" = set; then
 
33453
if test "${ac_cv_define_TCP_NOPUSH+set}" = set; then :
46171
33454
  $as_echo_n "(cached) " >&6
46172
33455
else
46173
33456
 
46174
 
    cat >conftest.$ac_ext <<_ACEOF
46175
 
/* confdefs.h.  */
46176
 
_ACEOF
46177
 
cat confdefs.h >>conftest.$ac_ext
46178
 
cat >>conftest.$ac_ext <<_ACEOF
 
33457
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46179
33458
/* end confdefs.h.  */
46180
33459
 
46181
33460
#include <netinet/tcp.h>
46185
33464
 
46186
33465
_ACEOF
46187
33466
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46188
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
33467
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
46189
33468
  ac_cv_define_TCP_NOPUSH=yes
46190
33469
else
46191
33470
  ac_cv_define_TCP_NOPUSH=no
46194
33473
 
46195
33474
 
46196
33475
fi
46197
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_TCP_NOPUSH" >&5
 
33476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
46198
33477
$as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
46199
33478
  if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
46200
33479
 
46201
 
cat >>confdefs.h <<\_ACEOF
46202
 
#define HAVE_TCP_NOPUSH 1
46203
 
_ACEOF
 
33480
$as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
46204
33481
 
46205
33482
  fi
46206
33483
 
46212
33489
else
46213
33490
    case $host in
46214
33491
        *linux*)
46215
 
            cat >conftest.$ac_ext <<_ACEOF
46216
 
/* confdefs.h.  */
46217
 
_ACEOF
46218
 
cat confdefs.h >>conftest.$ac_ext
46219
 
cat >>conftest.$ac_ext <<_ACEOF
 
33492
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46220
33493
/* end confdefs.h.  */
46221
33494
 
46222
33495
#include <linux/socket.h>
46226
33499
 
46227
33500
_ACEOF
46228
33501
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46229
 
  $EGREP "yes" >/dev/null 2>&1; then
 
33502
  $EGREP "yes" >/dev/null 2>&1; then :
46230
33503
 
46231
33504
                apr_tcp_nopush_flag="3"
46232
33505
                have_corkable_tcp="1"
46245
33518
fi
46246
33519
 
46247
33520
 
46248
 
  { $as_echo "$as_me:$LINENO: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
 
33521
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
46249
33522
$as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
46250
 
if test "${ac_cv_define_SO_ACCEPTFILTER+set}" = set; then
 
33523
if test "${ac_cv_define_SO_ACCEPTFILTER+set}" = set; then :
46251
33524
  $as_echo_n "(cached) " >&6
46252
33525
else
46253
33526
 
46254
 
    cat >conftest.$ac_ext <<_ACEOF
46255
 
/* confdefs.h.  */
46256
 
_ACEOF
46257
 
cat confdefs.h >>conftest.$ac_ext
46258
 
cat >>conftest.$ac_ext <<_ACEOF
 
33527
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46259
33528
/* end confdefs.h.  */
46260
33529
 
46261
33530
#include <sys/socket.h>
46265
33534
 
46266
33535
_ACEOF
46267
33536
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46268
 
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
33537
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
46269
33538
  ac_cv_define_SO_ACCEPTFILTER=yes
46270
33539
else
46271
33540
  ac_cv_define_SO_ACCEPTFILTER=no
46274
33543
 
46275
33544
 
46276
33545
fi
46277
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
 
33546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
46278
33547
$as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
46279
33548
  if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
46280
33549
 
46281
 
cat >>confdefs.h <<\_ACEOF
46282
 
#define HAVE_SO_ACCEPTFILTER 1
46283
 
_ACEOF
 
33550
$as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
46284
33551
 
46285
33552
  fi
46286
33553
 
46291
33558
fi
46292
33559
 
46293
33560
 
46294
 
  { $as_echo "$as_me:$LINENO: checking whether SCTP is supported" >&5
 
33561
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
46295
33562
$as_echo_n "checking whether SCTP is supported... " >&6; }
46296
 
if test "${apr_cv_sctp+set}" = set; then
 
33563
if test "${apr_cv_sctp+set}" = set; then :
46297
33564
  $as_echo_n "(cached) " >&6
46298
33565
else
46299
33566
 
46300
 
  if test "$cross_compiling" = yes; then
 
33567
  if test "$cross_compiling" = yes; then :
46301
33568
  apr_cv_sctp=no
46302
33569
else
46303
 
  cat >conftest.$ac_ext <<_ACEOF
46304
 
/* confdefs.h.  */
46305
 
_ACEOF
46306
 
cat confdefs.h >>conftest.$ac_ext
46307
 
cat >>conftest.$ac_ext <<_ACEOF
 
33570
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46308
33571
/* end confdefs.h.  */
46309
33572
 
46310
33573
#ifdef HAVE_SYS_TYPES_H
46332
33595
    exit(0);
46333
33596
}
46334
33597
_ACEOF
46335
 
rm -f conftest$ac_exeext
46336
 
if { (ac_try="$ac_link"
46337
 
case "(($ac_try" in
46338
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46339
 
  *) ac_try_echo=$ac_try;;
46340
 
esac
46341
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46342
 
$as_echo "$ac_try_echo") >&5
46343
 
  (eval "$ac_link") 2>&5
46344
 
  ac_status=$?
46345
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46346
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46347
 
  { (case "(($ac_try" in
46348
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46349
 
  *) ac_try_echo=$ac_try;;
46350
 
esac
46351
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46352
 
$as_echo "$ac_try_echo") >&5
46353
 
  (eval "$ac_try") 2>&5
46354
 
  ac_status=$?
46355
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46356
 
  (exit $ac_status); }; }; then
 
33598
if ac_fn_c_try_run "$LINENO"; then :
46357
33599
  apr_cv_sctp=yes
46358
33600
else
46359
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
46360
 
$as_echo "$as_me: failed program was:" >&5
46361
 
sed 's/^/| /' conftest.$ac_ext >&5
46362
 
 
46363
 
( exit $ac_status )
46364
 
apr_cv_sctp=no
46365
 
fi
46366
 
rm -rf conftest.dSYM
46367
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46368
 
fi
46369
 
 
46370
 
 
46371
 
fi
46372
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_sctp" >&5
 
33601
  apr_cv_sctp=no
 
33602
fi
 
33603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
33604
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
33605
fi
 
33606
 
 
33607
fi
 
33608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
46373
33609
$as_echo "$apr_cv_sctp" >&6; }
46374
33610
 
46375
33611
if test "$apr_cv_sctp" = "yes"; then
46379
33615
fi
46380
33616
 
46381
33617
 
46382
 
{ $as_echo "$as_me:$LINENO: checking for struct ip_mreq" >&5
 
33618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
46383
33619
$as_echo_n "checking for struct ip_mreq... " >&6; }
46384
 
if test "${apr_cv_struct_ipmreq+set}" = set; then
 
33620
if test "${apr_cv_struct_ipmreq+set}" = set; then :
46385
33621
  $as_echo_n "(cached) " >&6
46386
33622
else
46387
33623
 
46388
 
cat >conftest.$ac_ext <<_ACEOF
46389
 
/* confdefs.h.  */
46390
 
_ACEOF
46391
 
cat confdefs.h >>conftest.$ac_ext
46392
 
cat >>conftest.$ac_ext <<_ACEOF
 
33624
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46393
33625
/* end confdefs.h.  */
46394
33626
 
46395
33627
#include <sys/types.h>
46406
33638
  return 0;
46407
33639
}
46408
33640
_ACEOF
46409
 
rm -f conftest.$ac_objext
46410
 
if { (ac_try="$ac_compile"
46411
 
case "(($ac_try" in
46412
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46413
 
  *) ac_try_echo=$ac_try;;
46414
 
esac
46415
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46416
 
$as_echo "$ac_try_echo") >&5
46417
 
  (eval "$ac_compile") 2>conftest.er1
46418
 
  ac_status=$?
46419
 
  grep -v '^ *+' conftest.er1 >conftest.err
46420
 
  rm -f conftest.er1
46421
 
  cat conftest.err >&5
46422
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46423
 
  (exit $ac_status); } && {
46424
 
         test -z "$ac_c_werror_flag" ||
46425
 
         test ! -s conftest.err
46426
 
       } && test -s conftest.$ac_objext; then
 
33641
if ac_fn_c_try_compile "$LINENO"; then :
46427
33642
  apr_cv_struct_ipmreq=yes
46428
33643
else
46429
 
  $as_echo "$as_me: failed program was:" >&5
46430
 
sed 's/^/| /' conftest.$ac_ext >&5
46431
 
 
46432
 
        apr_cv_struct_ipmreq=no
 
33644
  apr_cv_struct_ipmreq=no
46433
33645
fi
46434
 
 
46435
33646
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46436
33647
fi
46437
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_struct_ipmreq" >&5
 
33648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
46438
33649
$as_echo "$apr_cv_struct_ipmreq" >&6; }
46439
33650
 
46440
33651
if test $apr_cv_struct_ipmreq = yes; then
46441
33652
 
46442
 
cat >>confdefs.h <<\_ACEOF
46443
 
#define HAVE_STRUCT_IPMREQ 1
46444
 
_ACEOF
 
33653
$as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
46445
33654
 
46446
33655
fi
46447
33656
 
46451
33660
 
46452
33661
 
46453
33662
 
46454
 
 
46455
33663
for ac_func in set_h_errno
46456
 
do
46457
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46458
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46459
 
$as_echo_n "checking for $ac_func... " >&6; }
46460
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46461
 
  $as_echo_n "(cached) " >&6
46462
 
else
46463
 
  cat >conftest.$ac_ext <<_ACEOF
46464
 
/* confdefs.h.  */
46465
 
_ACEOF
46466
 
cat confdefs.h >>conftest.$ac_ext
46467
 
cat >>conftest.$ac_ext <<_ACEOF
46468
 
/* end confdefs.h.  */
46469
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46470
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46471
 
#define $ac_func innocuous_$ac_func
46472
 
 
46473
 
/* System header to define __stub macros and hopefully few prototypes,
46474
 
    which can conflict with char $ac_func (); below.
46475
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46476
 
    <limits.h> exists even on freestanding compilers.  */
46477
 
 
46478
 
#ifdef __STDC__
46479
 
# include <limits.h>
46480
 
#else
46481
 
# include <assert.h>
46482
 
#endif
46483
 
 
46484
 
#undef $ac_func
46485
 
 
46486
 
/* Override any GCC internal prototype to avoid an error.
46487
 
   Use char because int might match the return type of a GCC
46488
 
   builtin and then its argument prototype would still apply.  */
46489
 
#ifdef __cplusplus
46490
 
extern "C"
46491
 
#endif
46492
 
char $ac_func ();
46493
 
/* The GNU C library defines this for functions which it implements
46494
 
    to always fail with ENOSYS.  Some functions are actually named
46495
 
    something starting with __ and the normal name is an alias.  */
46496
 
#if defined __stub_$ac_func || defined __stub___$ac_func
46497
 
choke me
46498
 
#endif
46499
 
 
46500
 
int
46501
 
main ()
46502
 
{
46503
 
return $ac_func ();
46504
 
  ;
46505
 
  return 0;
46506
 
}
46507
 
_ACEOF
46508
 
rm -f conftest.$ac_objext conftest$ac_exeext
46509
 
if { (ac_try="$ac_link"
46510
 
case "(($ac_try" in
46511
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46512
 
  *) ac_try_echo=$ac_try;;
46513
 
esac
46514
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46515
 
$as_echo "$ac_try_echo") >&5
46516
 
  (eval "$ac_link") 2>conftest.er1
46517
 
  ac_status=$?
46518
 
  grep -v '^ *+' conftest.er1 >conftest.err
46519
 
  rm -f conftest.er1
46520
 
  cat conftest.err >&5
46521
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46522
 
  (exit $ac_status); } && {
46523
 
         test -z "$ac_c_werror_flag" ||
46524
 
         test ! -s conftest.err
46525
 
       } && test -s conftest$ac_exeext && {
46526
 
         test "$cross_compiling" = yes ||
46527
 
         $as_test_x conftest$ac_exeext
46528
 
       }; then
46529
 
  eval "$as_ac_var=yes"
46530
 
else
46531
 
  $as_echo "$as_me: failed program was:" >&5
46532
 
sed 's/^/| /' conftest.$ac_ext >&5
46533
 
 
46534
 
        eval "$as_ac_var=no"
46535
 
fi
46536
 
 
46537
 
rm -rf conftest.dSYM
46538
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46539
 
      conftest$ac_exeext conftest.$ac_ext
46540
 
fi
46541
 
ac_res=`eval 'as_val=${'$as_ac_var'}
46542
 
                 $as_echo "$as_val"'`
46543
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46544
 
$as_echo "$ac_res" >&6; }
46545
 
as_val=`eval 'as_val=${'$as_ac_var'}
46546
 
                 $as_echo "$as_val"'`
46547
 
   if test "x$as_val" = x""yes; then
 
33664
do :
 
33665
  ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
 
33666
if test "x$ac_cv_func_set_h_errno" = x""yes; then :
46548
33667
  cat >>confdefs.h <<_ACEOF
46549
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
33668
#define HAVE_SET_H_ERRNO 1
46550
33669
_ACEOF
46551
33670
 
46552
33671
fi
46556
33675
echo "${nl}Checking for IPv6 Networking support..."
46557
33676
 
46558
33677
# Check whether --enable-ipv6 was given.
46559
 
if test "${enable_ipv6+set}" = set; then
 
33678
if test "${enable_ipv6+set}" = set; then :
46560
33679
  enableval=$enable_ipv6;  if test "$enableval" = "no"; then
46561
33680
        user_disabled_ipv6=1
46562
33681
    fi
46570
33689
    broken_ipv6=0
46571
33690
esac
46572
33691
 
46573
 
{ $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
 
33692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
46574
33693
$as_echo_n "checking for library containing getaddrinfo... " >&6; }
46575
 
if test "${ac_cv_search_getaddrinfo+set}" = set; then
 
33694
if test "${ac_cv_search_getaddrinfo+set}" = set; then :
46576
33695
  $as_echo_n "(cached) " >&6
46577
33696
else
46578
33697
  ac_func_search_save_LIBS=$LIBS
46579
 
cat >conftest.$ac_ext <<_ACEOF
46580
 
/* confdefs.h.  */
46581
 
_ACEOF
46582
 
cat confdefs.h >>conftest.$ac_ext
46583
 
cat >>conftest.$ac_ext <<_ACEOF
 
33698
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46584
33699
/* end confdefs.h.  */
46585
33700
 
46586
33701
/* Override any GCC internal prototype to avoid an error.
46605
33720
    ac_res=-l$ac_lib
46606
33721
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
46607
33722
  fi
46608
 
  rm -f conftest.$ac_objext conftest$ac_exeext
46609
 
if { (ac_try="$ac_link"
46610
 
case "(($ac_try" in
46611
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46612
 
  *) ac_try_echo=$ac_try;;
46613
 
esac
46614
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46615
 
$as_echo "$ac_try_echo") >&5
46616
 
  (eval "$ac_link") 2>conftest.er1
46617
 
  ac_status=$?
46618
 
  grep -v '^ *+' conftest.er1 >conftest.err
46619
 
  rm -f conftest.er1
46620
 
  cat conftest.err >&5
46621
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46622
 
  (exit $ac_status); } && {
46623
 
         test -z "$ac_c_werror_flag" ||
46624
 
         test ! -s conftest.err
46625
 
       } && test -s conftest$ac_exeext && {
46626
 
         test "$cross_compiling" = yes ||
46627
 
         $as_test_x conftest$ac_exeext
46628
 
       }; then
 
33723
  if ac_fn_c_try_link "$LINENO"; then :
46629
33724
  ac_cv_search_getaddrinfo=$ac_res
46630
 
else
46631
 
  $as_echo "$as_me: failed program was:" >&5
46632
 
sed 's/^/| /' conftest.$ac_ext >&5
46633
 
 
46634
 
 
46635
33725
fi
46636
 
 
46637
 
rm -rf conftest.dSYM
46638
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46639
 
      conftest$ac_exeext
46640
 
  if test "${ac_cv_search_getaddrinfo+set}" = set; then
 
33726
rm -f core conftest.err conftest.$ac_objext \
 
33727
    conftest$ac_exeext
 
33728
  if test "${ac_cv_search_getaddrinfo+set}" = set; then :
46641
33729
  break
46642
33730
fi
46643
33731
done
46644
 
if test "${ac_cv_search_getaddrinfo+set}" = set; then
46645
 
  :
 
33732
if test "${ac_cv_search_getaddrinfo+set}" = set; then :
 
33733
 
46646
33734
else
46647
33735
  ac_cv_search_getaddrinfo=no
46648
33736
fi
46649
33737
rm conftest.$ac_ext
46650
33738
LIBS=$ac_func_search_save_LIBS
46651
33739
fi
46652
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
 
33740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
46653
33741
$as_echo "$ac_cv_search_getaddrinfo" >&6; }
46654
33742
ac_res=$ac_cv_search_getaddrinfo
46655
 
if test "$ac_res" != no; then
 
33743
if test "$ac_res" != no; then :
46656
33744
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46657
33745
 
46658
33746
fi
46659
33747
 
46660
 
{ $as_echo "$as_me:$LINENO: checking for library containing gai_strerror" >&5
 
33748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
46661
33749
$as_echo_n "checking for library containing gai_strerror... " >&6; }
46662
 
if test "${ac_cv_search_gai_strerror+set}" = set; then
 
33750
if test "${ac_cv_search_gai_strerror+set}" = set; then :
46663
33751
  $as_echo_n "(cached) " >&6
46664
33752
else
46665
33753
  ac_func_search_save_LIBS=$LIBS
46666
 
cat >conftest.$ac_ext <<_ACEOF
46667
 
/* confdefs.h.  */
46668
 
_ACEOF
46669
 
cat confdefs.h >>conftest.$ac_ext
46670
 
cat >>conftest.$ac_ext <<_ACEOF
 
33754
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46671
33755
/* end confdefs.h.  */
46672
33756
 
46673
33757
/* Override any GCC internal prototype to avoid an error.
46692
33776
    ac_res=-l$ac_lib
46693
33777
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
46694
33778
  fi
46695
 
  rm -f conftest.$ac_objext conftest$ac_exeext
46696
 
if { (ac_try="$ac_link"
46697
 
case "(($ac_try" in
46698
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46699
 
  *) ac_try_echo=$ac_try;;
46700
 
esac
46701
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46702
 
$as_echo "$ac_try_echo") >&5
46703
 
  (eval "$ac_link") 2>conftest.er1
46704
 
  ac_status=$?
46705
 
  grep -v '^ *+' conftest.er1 >conftest.err
46706
 
  rm -f conftest.er1
46707
 
  cat conftest.err >&5
46708
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46709
 
  (exit $ac_status); } && {
46710
 
         test -z "$ac_c_werror_flag" ||
46711
 
         test ! -s conftest.err
46712
 
       } && test -s conftest$ac_exeext && {
46713
 
         test "$cross_compiling" = yes ||
46714
 
         $as_test_x conftest$ac_exeext
46715
 
       }; then
 
33779
  if ac_fn_c_try_link "$LINENO"; then :
46716
33780
  ac_cv_search_gai_strerror=$ac_res
46717
 
else
46718
 
  $as_echo "$as_me: failed program was:" >&5
46719
 
sed 's/^/| /' conftest.$ac_ext >&5
46720
 
 
46721
 
 
46722
33781
fi
46723
 
 
46724
 
rm -rf conftest.dSYM
46725
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46726
 
      conftest$ac_exeext
46727
 
  if test "${ac_cv_search_gai_strerror+set}" = set; then
 
33782
rm -f core conftest.err conftest.$ac_objext \
 
33783
    conftest$ac_exeext
 
33784
  if test "${ac_cv_search_gai_strerror+set}" = set; then :
46728
33785
  break
46729
33786
fi
46730
33787
done
46731
 
if test "${ac_cv_search_gai_strerror+set}" = set; then
46732
 
  :
 
33788
if test "${ac_cv_search_gai_strerror+set}" = set; then :
 
33789
 
46733
33790
else
46734
33791
  ac_cv_search_gai_strerror=no
46735
33792
fi
46736
33793
rm conftest.$ac_ext
46737
33794
LIBS=$ac_func_search_save_LIBS
46738
33795
fi
46739
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gai_strerror" >&5
 
33796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
46740
33797
$as_echo "$ac_cv_search_gai_strerror" >&6; }
46741
33798
ac_res=$ac_cv_search_gai_strerror
46742
 
if test "$ac_res" != no; then
 
33799
if test "$ac_res" != no; then :
46743
33800
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46744
33801
 
46745
33802
fi
46746
33803
 
46747
 
{ $as_echo "$as_me:$LINENO: checking for library containing getnameinfo" >&5
 
33804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
46748
33805
$as_echo_n "checking for library containing getnameinfo... " >&6; }
46749
 
if test "${ac_cv_search_getnameinfo+set}" = set; then
 
33806
if test "${ac_cv_search_getnameinfo+set}" = set; then :
46750
33807
  $as_echo_n "(cached) " >&6
46751
33808
else
46752
33809
  ac_func_search_save_LIBS=$LIBS
46753
 
cat >conftest.$ac_ext <<_ACEOF
46754
 
/* confdefs.h.  */
46755
 
_ACEOF
46756
 
cat confdefs.h >>conftest.$ac_ext
46757
 
cat >>conftest.$ac_ext <<_ACEOF
 
33810
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46758
33811
/* end confdefs.h.  */
46759
33812
 
46760
33813
/* Override any GCC internal prototype to avoid an error.
46779
33832
    ac_res=-l$ac_lib
46780
33833
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
46781
33834
  fi
46782
 
  rm -f conftest.$ac_objext conftest$ac_exeext
46783
 
if { (ac_try="$ac_link"
46784
 
case "(($ac_try" in
46785
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46786
 
  *) ac_try_echo=$ac_try;;
46787
 
esac
46788
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46789
 
$as_echo "$ac_try_echo") >&5
46790
 
  (eval "$ac_link") 2>conftest.er1
46791
 
  ac_status=$?
46792
 
  grep -v '^ *+' conftest.er1 >conftest.err
46793
 
  rm -f conftest.er1
46794
 
  cat conftest.err >&5
46795
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46796
 
  (exit $ac_status); } && {
46797
 
         test -z "$ac_c_werror_flag" ||
46798
 
         test ! -s conftest.err
46799
 
       } && test -s conftest$ac_exeext && {
46800
 
         test "$cross_compiling" = yes ||
46801
 
         $as_test_x conftest$ac_exeext
46802
 
       }; then
 
33835
  if ac_fn_c_try_link "$LINENO"; then :
46803
33836
  ac_cv_search_getnameinfo=$ac_res
46804
 
else
46805
 
  $as_echo "$as_me: failed program was:" >&5
46806
 
sed 's/^/| /' conftest.$ac_ext >&5
46807
 
 
46808
 
 
46809
33837
fi
46810
 
 
46811
 
rm -rf conftest.dSYM
46812
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46813
 
      conftest$ac_exeext
46814
 
  if test "${ac_cv_search_getnameinfo+set}" = set; then
 
33838
rm -f core conftest.err conftest.$ac_objext \
 
33839
    conftest$ac_exeext
 
33840
  if test "${ac_cv_search_getnameinfo+set}" = set; then :
46815
33841
  break
46816
33842
fi
46817
33843
done
46818
 
if test "${ac_cv_search_getnameinfo+set}" = set; then
46819
 
  :
 
33844
if test "${ac_cv_search_getnameinfo+set}" = set; then :
 
33845
 
46820
33846
else
46821
33847
  ac_cv_search_getnameinfo=no
46822
33848
fi
46823
33849
rm conftest.$ac_ext
46824
33850
LIBS=$ac_func_search_save_LIBS
46825
33851
fi
46826
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getnameinfo" >&5
 
33852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
46827
33853
$as_echo "$ac_cv_search_getnameinfo" >&6; }
46828
33854
ac_res=$ac_cv_search_getnameinfo
46829
 
if test "$ac_res" != no; then
 
33855
if test "$ac_res" != no; then :
46830
33856
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46831
33857
 
46832
33858
fi
46833
33859
 
46834
 
 
46835
33860
for ac_func in gai_strerror
46836
 
do
46837
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46838
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46839
 
$as_echo_n "checking for $ac_func... " >&6; }
46840
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46841
 
  $as_echo_n "(cached) " >&6
46842
 
else
46843
 
  cat >conftest.$ac_ext <<_ACEOF
46844
 
/* confdefs.h.  */
46845
 
_ACEOF
46846
 
cat confdefs.h >>conftest.$ac_ext
46847
 
cat >>conftest.$ac_ext <<_ACEOF
46848
 
/* end confdefs.h.  */
46849
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46850
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46851
 
#define $ac_func innocuous_$ac_func
46852
 
 
46853
 
/* System header to define __stub macros and hopefully few prototypes,
46854
 
    which can conflict with char $ac_func (); below.
46855
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46856
 
    <limits.h> exists even on freestanding compilers.  */
46857
 
 
46858
 
#ifdef __STDC__
46859
 
# include <limits.h>
46860
 
#else
46861
 
# include <assert.h>
46862
 
#endif
46863
 
 
46864
 
#undef $ac_func
46865
 
 
46866
 
/* Override any GCC internal prototype to avoid an error.
46867
 
   Use char because int might match the return type of a GCC
46868
 
   builtin and then its argument prototype would still apply.  */
46869
 
#ifdef __cplusplus
46870
 
extern "C"
46871
 
#endif
46872
 
char $ac_func ();
46873
 
/* The GNU C library defines this for functions which it implements
46874
 
    to always fail with ENOSYS.  Some functions are actually named
46875
 
    something starting with __ and the normal name is an alias.  */
46876
 
#if defined __stub_$ac_func || defined __stub___$ac_func
46877
 
choke me
46878
 
#endif
46879
 
 
46880
 
int
46881
 
main ()
46882
 
{
46883
 
return $ac_func ();
46884
 
  ;
46885
 
  return 0;
46886
 
}
46887
 
_ACEOF
46888
 
rm -f conftest.$ac_objext conftest$ac_exeext
46889
 
if { (ac_try="$ac_link"
46890
 
case "(($ac_try" in
46891
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46892
 
  *) ac_try_echo=$ac_try;;
46893
 
esac
46894
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46895
 
$as_echo "$ac_try_echo") >&5
46896
 
  (eval "$ac_link") 2>conftest.er1
46897
 
  ac_status=$?
46898
 
  grep -v '^ *+' conftest.er1 >conftest.err
46899
 
  rm -f conftest.er1
46900
 
  cat conftest.err >&5
46901
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46902
 
  (exit $ac_status); } && {
46903
 
         test -z "$ac_c_werror_flag" ||
46904
 
         test ! -s conftest.err
46905
 
       } && test -s conftest$ac_exeext && {
46906
 
         test "$cross_compiling" = yes ||
46907
 
         $as_test_x conftest$ac_exeext
46908
 
       }; then
46909
 
  eval "$as_ac_var=yes"
46910
 
else
46911
 
  $as_echo "$as_me: failed program was:" >&5
46912
 
sed 's/^/| /' conftest.$ac_ext >&5
46913
 
 
46914
 
        eval "$as_ac_var=no"
46915
 
fi
46916
 
 
46917
 
rm -rf conftest.dSYM
46918
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46919
 
      conftest$ac_exeext conftest.$ac_ext
46920
 
fi
46921
 
ac_res=`eval 'as_val=${'$as_ac_var'}
46922
 
                 $as_echo "$as_val"'`
46923
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46924
 
$as_echo "$ac_res" >&6; }
46925
 
as_val=`eval 'as_val=${'$as_ac_var'}
46926
 
                 $as_echo "$as_val"'`
46927
 
   if test "x$as_val" = x""yes; then
 
33861
do :
 
33862
  ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
 
33863
if test "x$ac_cv_func_gai_strerror" = x""yes; then :
46928
33864
  cat >>confdefs.h <<_ACEOF
46929
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
33865
#define HAVE_GAI_STRERROR 1
46930
33866
_ACEOF
46931
33867
 
46932
33868
fi
46933
33869
done
46934
33870
 
46935
33871
 
46936
 
  { $as_echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
 
33872
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
46937
33873
$as_echo_n "checking for working getaddrinfo... " >&6; }
46938
 
if test "${ac_cv_working_getaddrinfo+set}" = set; then
 
33874
if test "${ac_cv_working_getaddrinfo+set}" = set; then :
46939
33875
  $as_echo_n "(cached) " >&6
46940
33876
else
46941
33877
 
46942
 
  if test "$cross_compiling" = yes; then
 
33878
  if test "$cross_compiling" = yes; then :
46943
33879
 
46944
33880
  ac_cv_working_getaddrinfo="yes"
46945
33881
 
46946
33882
else
46947
 
  cat >conftest.$ac_ext <<_ACEOF
46948
 
/* confdefs.h.  */
46949
 
_ACEOF
46950
 
cat confdefs.h >>conftest.$ac_ext
46951
 
cat >>conftest.$ac_ext <<_ACEOF
 
33883
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46952
33884
/* end confdefs.h.  */
46953
33885
 
46954
33886
#ifdef HAVE_NETDB_H
46982
33914
}
46983
33915
 
46984
33916
_ACEOF
46985
 
rm -f conftest$ac_exeext
46986
 
if { (ac_try="$ac_link"
46987
 
case "(($ac_try" in
46988
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46989
 
  *) ac_try_echo=$ac_try;;
46990
 
esac
46991
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46992
 
$as_echo "$ac_try_echo") >&5
46993
 
  (eval "$ac_link") 2>&5
46994
 
  ac_status=$?
46995
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46996
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46997
 
  { (case "(($ac_try" in
46998
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46999
 
  *) ac_try_echo=$ac_try;;
47000
 
esac
47001
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47002
 
$as_echo "$ac_try_echo") >&5
47003
 
  (eval "$ac_try") 2>&5
47004
 
  ac_status=$?
47005
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47006
 
  (exit $ac_status); }; }; then
 
33917
if ac_fn_c_try_run "$LINENO"; then :
47007
33918
 
47008
33919
  ac_cv_working_getaddrinfo="yes"
47009
33920
 
47010
33921
else
47011
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
47012
 
$as_echo "$as_me: failed program was:" >&5
47013
 
sed 's/^/| /' conftest.$ac_ext >&5
47014
 
 
47015
 
( exit $ac_status )
47016
33922
 
47017
33923
  ac_cv_working_getaddrinfo="no"
47018
33924
 
47019
33925
fi
47020
 
rm -rf conftest.dSYM
47021
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47022
 
fi
47023
 
 
47024
 
 
47025
 
fi
47026
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
 
33926
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
33927
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
33928
fi
 
33929
 
 
33930
fi
 
33931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
47027
33932
$as_echo "$ac_cv_working_getaddrinfo" >&6; }
47028
33933
if test "$ac_cv_working_getaddrinfo" = "yes"; then
47029
33934
  if test "$ac_cv_func_gai_strerror" != "yes"; then
47030
33935
    ac_cv_working_getaddrinfo="no"
47031
33936
  else
47032
33937
 
47033
 
cat >>confdefs.h <<\_ACEOF
47034
 
#define HAVE_GETADDRINFO 1
47035
 
_ACEOF
 
33938
$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
47036
33939
 
47037
33940
  fi
47038
33941
fi
47039
33942
 
47040
33943
 
47041
 
  { $as_echo "$as_me:$LINENO: checking for negative error codes for getaddrinfo" >&5
 
33944
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
47042
33945
$as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
47043
 
if test "${ac_cv_negative_eai+set}" = set; then
 
33946
if test "${ac_cv_negative_eai+set}" = set; then :
47044
33947
  $as_echo_n "(cached) " >&6
47045
33948
else
47046
33949
 
47047
 
  if test "$cross_compiling" = yes; then
 
33950
  if test "$cross_compiling" = yes; then :
47048
33951
 
47049
33952
  ac_cv_negative_eai="no"
47050
33953
 
47051
33954
else
47052
 
  cat >conftest.$ac_ext <<_ACEOF
47053
 
/* confdefs.h.  */
47054
 
_ACEOF
47055
 
cat confdefs.h >>conftest.$ac_ext
47056
 
cat >>conftest.$ac_ext <<_ACEOF
 
33955
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47057
33956
/* end confdefs.h.  */
47058
33957
 
47059
33958
#ifdef HAVE_NETDB_H
47068
33967
}
47069
33968
 
47070
33969
_ACEOF
47071
 
rm -f conftest$ac_exeext
47072
 
if { (ac_try="$ac_link"
47073
 
case "(($ac_try" in
47074
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47075
 
  *) ac_try_echo=$ac_try;;
47076
 
esac
47077
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47078
 
$as_echo "$ac_try_echo") >&5
47079
 
  (eval "$ac_link") 2>&5
47080
 
  ac_status=$?
47081
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47082
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47083
 
  { (case "(($ac_try" in
47084
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47085
 
  *) ac_try_echo=$ac_try;;
47086
 
esac
47087
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47088
 
$as_echo "$ac_try_echo") >&5
47089
 
  (eval "$ac_try") 2>&5
47090
 
  ac_status=$?
47091
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47092
 
  (exit $ac_status); }; }; then
 
33970
if ac_fn_c_try_run "$LINENO"; then :
47093
33971
 
47094
33972
  ac_cv_negative_eai="yes"
47095
33973
 
47096
33974
else
47097
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
47098
 
$as_echo "$as_me: failed program was:" >&5
47099
 
sed 's/^/| /' conftest.$ac_ext >&5
47100
 
 
47101
 
( exit $ac_status )
47102
33975
 
47103
33976
  ac_cv_negative_eai="no"
47104
33977
 
47105
33978
fi
47106
 
rm -rf conftest.dSYM
47107
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47108
 
fi
47109
 
 
47110
 
 
47111
 
fi
47112
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_negative_eai" >&5
 
33979
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
33980
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
33981
fi
 
33982
 
 
33983
fi
 
33984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
47113
33985
$as_echo "$ac_cv_negative_eai" >&6; }
47114
33986
if test "$ac_cv_negative_eai" = "yes"; then
47115
33987
 
47116
 
cat >>confdefs.h <<\_ACEOF
47117
 
#define NEGATIVE_EAI 1
47118
 
_ACEOF
 
33988
$as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
47119
33989
 
47120
33990
fi
47121
33991
 
47122
33992
 
47123
 
  { $as_echo "$as_me:$LINENO: checking for working getnameinfo" >&5
 
33993
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
47124
33994
$as_echo_n "checking for working getnameinfo... " >&6; }
47125
 
if test "${ac_cv_working_getnameinfo+set}" = set; then
 
33995
if test "${ac_cv_working_getnameinfo+set}" = set; then :
47126
33996
  $as_echo_n "(cached) " >&6
47127
33997
else
47128
33998
 
47129
 
  if test "$cross_compiling" = yes; then
 
33999
  if test "$cross_compiling" = yes; then :
47130
34000
 
47131
34001
  ac_cv_working_getnameinfo="yes"
47132
34002
 
47133
34003
else
47134
 
  cat >conftest.$ac_ext <<_ACEOF
47135
 
/* confdefs.h.  */
47136
 
_ACEOF
47137
 
cat confdefs.h >>conftest.$ac_ext
47138
 
cat >>conftest.$ac_ext <<_ACEOF
 
34004
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47139
34005
/* end confdefs.h.  */
47140
34006
 
47141
34007
#ifdef HAVE_NETDB_H
47177
34043
}
47178
34044
 
47179
34045
_ACEOF
47180
 
rm -f conftest$ac_exeext
47181
 
if { (ac_try="$ac_link"
47182
 
case "(($ac_try" in
47183
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47184
 
  *) ac_try_echo=$ac_try;;
47185
 
esac
47186
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47187
 
$as_echo "$ac_try_echo") >&5
47188
 
  (eval "$ac_link") 2>&5
47189
 
  ac_status=$?
47190
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47191
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47192
 
  { (case "(($ac_try" in
47193
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47194
 
  *) ac_try_echo=$ac_try;;
47195
 
esac
47196
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47197
 
$as_echo "$ac_try_echo") >&5
47198
 
  (eval "$ac_try") 2>&5
47199
 
  ac_status=$?
47200
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47201
 
  (exit $ac_status); }; }; then
 
34046
if ac_fn_c_try_run "$LINENO"; then :
47202
34047
 
47203
34048
  ac_cv_working_getnameinfo="yes"
47204
34049
 
47205
34050
else
47206
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
47207
 
$as_echo "$as_me: failed program was:" >&5
47208
 
sed 's/^/| /' conftest.$ac_ext >&5
47209
 
 
47210
 
( exit $ac_status )
47211
34051
 
47212
34052
  ac_cv_working_getnameinfo="no"
47213
34053
 
47214
34054
fi
47215
 
rm -rf conftest.dSYM
47216
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47217
 
fi
47218
 
 
47219
 
 
47220
 
fi
47221
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_getnameinfo" >&5
 
34055
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
34056
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
34057
fi
 
34058
 
 
34059
fi
 
34060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
47222
34061
$as_echo "$ac_cv_working_getnameinfo" >&6; }
47223
34062
if test "$ac_cv_working_getnameinfo" = "yes"; then
47224
34063
 
47225
 
cat >>confdefs.h <<\_ACEOF
47226
 
#define HAVE_GETNAMEINFO 1
47227
 
_ACEOF
 
34064
$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
47228
34065
 
47229
34066
fi
47230
34067
 
47231
34068
 
47232
 
{ $as_echo "$as_me:$LINENO: checking for sockaddr_in6" >&5
 
34069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
47233
34070
$as_echo_n "checking for sockaddr_in6... " >&6; }
47234
 
if test "${ac_cv_define_sockaddr_in6+set}" = set; then
 
34071
if test "${ac_cv_define_sockaddr_in6+set}" = set; then :
47235
34072
  $as_echo_n "(cached) " >&6
47236
34073
else
47237
34074
 
47238
 
cat >conftest.$ac_ext <<_ACEOF
47239
 
/* confdefs.h.  */
47240
 
_ACEOF
47241
 
cat confdefs.h >>conftest.$ac_ext
47242
 
cat >>conftest.$ac_ext <<_ACEOF
 
34075
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47243
34076
/* end confdefs.h.  */
47244
34077
 
47245
34078
#ifdef HAVE_SYS_TYPES_H
47259
34092
  return 0;
47260
34093
}
47261
34094
_ACEOF
47262
 
rm -f conftest.$ac_objext
47263
 
if { (ac_try="$ac_compile"
47264
 
case "(($ac_try" in
47265
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47266
 
  *) ac_try_echo=$ac_try;;
47267
 
esac
47268
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47269
 
$as_echo "$ac_try_echo") >&5
47270
 
  (eval "$ac_compile") 2>conftest.er1
47271
 
  ac_status=$?
47272
 
  grep -v '^ *+' conftest.er1 >conftest.err
47273
 
  rm -f conftest.er1
47274
 
  cat conftest.err >&5
47275
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47276
 
  (exit $ac_status); } && {
47277
 
         test -z "$ac_c_werror_flag" ||
47278
 
         test ! -s conftest.err
47279
 
       } && test -s conftest.$ac_objext; then
 
34095
if ac_fn_c_try_compile "$LINENO"; then :
47280
34096
 
47281
34097
    ac_cv_define_sockaddr_in6=yes
47282
34098
 
47283
34099
else
47284
 
  $as_echo "$as_me: failed program was:" >&5
47285
 
sed 's/^/| /' conftest.$ac_ext >&5
47286
 
 
47287
34100
 
47288
34101
    ac_cv_define_sockaddr_in6=no
47289
34102
 
47290
34103
fi
47291
 
 
47292
34104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47293
34105
 
47294
34106
fi
47295
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_define_sockaddr_in6" >&5
 
34107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
47296
34108
$as_echo "$ac_cv_define_sockaddr_in6" >&6; }
47297
34109
 
47298
34110
if test "$ac_cv_define_sockaddr_in6" = "yes"; then
47302
34114
fi
47303
34115
 
47304
34116
 
47305
 
{ $as_echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
 
34117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
47306
34118
$as_echo_n "checking for sockaddr_storage... " >&6; }
47307
 
if test "${apr_cv_define_sockaddr_storage+set}" = set; then
 
34119
if test "${apr_cv_define_sockaddr_storage+set}" = set; then :
47308
34120
  $as_echo_n "(cached) " >&6
47309
34121
else
47310
34122
 
47311
 
cat >conftest.$ac_ext <<_ACEOF
47312
 
/* confdefs.h.  */
47313
 
_ACEOF
47314
 
cat confdefs.h >>conftest.$ac_ext
47315
 
cat >>conftest.$ac_ext <<_ACEOF
 
34123
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47316
34124
/* end confdefs.h.  */
47317
34125
 
47318
34126
#ifdef HAVE_SYS_TYPES_H
47330
34138
  return 0;
47331
34139
}
47332
34140
_ACEOF
47333
 
rm -f conftest.$ac_objext
47334
 
if { (ac_try="$ac_compile"
47335
 
case "(($ac_try" in
47336
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47337
 
  *) ac_try_echo=$ac_try;;
47338
 
esac
47339
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47340
 
$as_echo "$ac_try_echo") >&5
47341
 
  (eval "$ac_compile") 2>conftest.er1
47342
 
  ac_status=$?
47343
 
  grep -v '^ *+' conftest.er1 >conftest.err
47344
 
  rm -f conftest.er1
47345
 
  cat conftest.err >&5
47346
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47347
 
  (exit $ac_status); } && {
47348
 
         test -z "$ac_c_werror_flag" ||
47349
 
         test ! -s conftest.err
47350
 
       } && test -s conftest.$ac_objext; then
 
34141
if ac_fn_c_try_compile "$LINENO"; then :
47351
34142
  apr_cv_define_sockaddr_storage=yes
47352
34143
else
47353
 
  $as_echo "$as_me: failed program was:" >&5
47354
 
sed 's/^/| /' conftest.$ac_ext >&5
47355
 
 
47356
 
        apr_cv_define_sockaddr_storage=no
 
34144
  apr_cv_define_sockaddr_storage=no
47357
34145
fi
47358
 
 
47359
34146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47360
34147
fi
47361
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_define_sockaddr_storage" >&5
 
34148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
47362
34149
$as_echo "$apr_cv_define_sockaddr_storage" >&6; }
47363
34150
 
47364
34151
if test "$apr_cv_define_sockaddr_storage" = "yes"; then
47378
34165
            if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
47379
34166
                if test "x$ac_cv_working_getnameinfo" = "xyes"; then
47380
34167
 
47381
 
  { $as_echo "$as_me:$LINENO: checking for working AI_ADDRCONFIG" >&5
 
34168
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
47382
34169
$as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
47383
 
if test "${apr_cv_gai_addrconfig+set}" = set; then
 
34170
if test "${apr_cv_gai_addrconfig+set}" = set; then :
47384
34171
  $as_echo_n "(cached) " >&6
47385
34172
else
47386
34173
 
47387
 
  if test "$cross_compiling" = yes; then
 
34174
  if test "$cross_compiling" = yes; then :
47388
34175
  apr_cv_gai_addrconfig=no
47389
34176
else
47390
 
  cat >conftest.$ac_ext <<_ACEOF
47391
 
/* confdefs.h.  */
47392
 
_ACEOF
47393
 
cat confdefs.h >>conftest.$ac_ext
47394
 
cat >>conftest.$ac_ext <<_ACEOF
 
34177
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47395
34178
/* end confdefs.h.  */
47396
34179
 
47397
34180
#ifdef HAVE_NETDB_H
47417
34200
    return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
47418
34201
}
47419
34202
_ACEOF
47420
 
rm -f conftest$ac_exeext
47421
 
if { (ac_try="$ac_link"
47422
 
case "(($ac_try" in
47423
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47424
 
  *) ac_try_echo=$ac_try;;
47425
 
esac
47426
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47427
 
$as_echo "$ac_try_echo") >&5
47428
 
  (eval "$ac_link") 2>&5
47429
 
  ac_status=$?
47430
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47431
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47432
 
  { (case "(($ac_try" in
47433
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47434
 
  *) ac_try_echo=$ac_try;;
47435
 
esac
47436
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47437
 
$as_echo "$ac_try_echo") >&5
47438
 
  (eval "$ac_try") 2>&5
47439
 
  ac_status=$?
47440
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47441
 
  (exit $ac_status); }; }; then
 
34203
if ac_fn_c_try_run "$LINENO"; then :
47442
34204
  apr_cv_gai_addrconfig=yes
47443
34205
else
47444
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
47445
 
$as_echo "$as_me: failed program was:" >&5
47446
 
sed 's/^/| /' conftest.$ac_ext >&5
47447
 
 
47448
 
( exit $ac_status )
47449
 
apr_cv_gai_addrconfig=no
47450
 
fi
47451
 
rm -rf conftest.dSYM
47452
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47453
 
fi
47454
 
 
47455
 
 
47456
 
fi
47457
 
{ $as_echo "$as_me:$LINENO: result: $apr_cv_gai_addrconfig" >&5
 
34206
  apr_cv_gai_addrconfig=no
 
34207
fi
 
34208
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
34209
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
34210
fi
 
34211
 
 
34212
fi
 
34213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
47458
34214
$as_echo "$apr_cv_gai_addrconfig" >&6; }
47459
34215
 
47460
34216
if test $apr_cv_gai_addrconfig = yes; then
47461
34217
 
47462
 
cat >>confdefs.h <<\_ACEOF
47463
 
#define HAVE_GAI_ADDRCONFIG 1
47464
 
_ACEOF
 
34218
$as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
47465
34219
 
47466
34220
fi
47467
34221
 
47481
34235
    fi
47482
34236
fi
47483
34237
 
47484
 
{ $as_echo "$as_me:$LINENO: checking if APR supports IPv6" >&5
 
34238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
47485
34239
$as_echo_n "checking if APR supports IPv6... " >&6; }
47486
 
{ $as_echo "$as_me:$LINENO: result: $ipv6_result" >&5
 
34240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
47487
34241
$as_echo "$ipv6_result" >&6; }
47488
34242
 
47489
34243
 
47491
34245
# hstrerror is only needed if IPv6 is not enabled,
47492
34246
# so getaddrinfo/gai_strerror are not used.
47493
34247
if test $have_ipv6 = 0; then
47494
 
  { $as_echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
 
34248
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
47495
34249
$as_echo_n "checking for library containing hstrerror... " >&6; }
47496
 
if test "${ac_cv_search_hstrerror+set}" = set; then
 
34250
if test "${ac_cv_search_hstrerror+set}" = set; then :
47497
34251
  $as_echo_n "(cached) " >&6
47498
34252
else
47499
34253
  ac_func_search_save_LIBS=$LIBS
47500
 
cat >conftest.$ac_ext <<_ACEOF
47501
 
/* confdefs.h.  */
47502
 
_ACEOF
47503
 
cat confdefs.h >>conftest.$ac_ext
47504
 
cat >>conftest.$ac_ext <<_ACEOF
 
34254
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47505
34255
/* end confdefs.h.  */
47506
34256
 
47507
34257
/* Override any GCC internal prototype to avoid an error.
47526
34276
    ac_res=-l$ac_lib
47527
34277
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
47528
34278
  fi
47529
 
  rm -f conftest.$ac_objext conftest$ac_exeext
47530
 
if { (ac_try="$ac_link"
47531
 
case "(($ac_try" in
47532
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47533
 
  *) ac_try_echo=$ac_try;;
47534
 
esac
47535
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47536
 
$as_echo "$ac_try_echo") >&5
47537
 
  (eval "$ac_link") 2>conftest.er1
47538
 
  ac_status=$?
47539
 
  grep -v '^ *+' conftest.er1 >conftest.err
47540
 
  rm -f conftest.er1
47541
 
  cat conftest.err >&5
47542
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47543
 
  (exit $ac_status); } && {
47544
 
         test -z "$ac_c_werror_flag" ||
47545
 
         test ! -s conftest.err
47546
 
       } && test -s conftest$ac_exeext && {
47547
 
         test "$cross_compiling" = yes ||
47548
 
         $as_test_x conftest$ac_exeext
47549
 
       }; then
 
34279
  if ac_fn_c_try_link "$LINENO"; then :
47550
34280
  ac_cv_search_hstrerror=$ac_res
47551
 
else
47552
 
  $as_echo "$as_me: failed program was:" >&5
47553
 
sed 's/^/| /' conftest.$ac_ext >&5
47554
 
 
47555
 
 
47556
34281
fi
47557
 
 
47558
 
rm -rf conftest.dSYM
47559
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47560
 
      conftest$ac_exeext
47561
 
  if test "${ac_cv_search_hstrerror+set}" = set; then
 
34282
rm -f core conftest.err conftest.$ac_objext \
 
34283
    conftest$ac_exeext
 
34284
  if test "${ac_cv_search_hstrerror+set}" = set; then :
47562
34285
  break
47563
34286
fi
47564
34287
done
47565
 
if test "${ac_cv_search_hstrerror+set}" = set; then
47566
 
  :
 
34288
if test "${ac_cv_search_hstrerror+set}" = set; then :
 
34289
 
47567
34290
else
47568
34291
  ac_cv_search_hstrerror=no
47569
34292
fi
47570
34293
rm conftest.$ac_ext
47571
34294
LIBS=$ac_func_search_save_LIBS
47572
34295
fi
47573
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
 
34296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
47574
34297
$as_echo "$ac_cv_search_hstrerror" >&6; }
47575
34298
ac_res=$ac_cv_search_hstrerror
47576
 
if test "$ac_res" != no; then
 
34299
if test "$ac_res" != no; then :
47577
34300
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47578
34301
 
47579
 
cat >>confdefs.h <<\_ACEOF
47580
 
#define HAVE_HSTRERROR 1
47581
 
_ACEOF
47582
 
 
47583
 
fi
47584
 
 
47585
 
fi
47586
 
 
 
34302
$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
 
34303
 
 
34304
fi
 
34305
 
 
34306
fi
47587
34307
 
47588
34308
 
47589
34309
for ac_header in langinfo.h
47590
 
do
47591
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47592
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47593
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47594
 
$as_echo_n "checking for $ac_header... " >&6; }
47595
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47596
 
  $as_echo_n "(cached) " >&6
47597
 
fi
47598
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
47599
 
                 $as_echo "$as_val"'`
47600
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47601
 
$as_echo "$ac_res" >&6; }
47602
 
else
47603
 
  # Is the header compilable?
47604
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
47605
 
$as_echo_n "checking $ac_header usability... " >&6; }
47606
 
cat >conftest.$ac_ext <<_ACEOF
47607
 
/* confdefs.h.  */
47608
 
_ACEOF
47609
 
cat confdefs.h >>conftest.$ac_ext
47610
 
cat >>conftest.$ac_ext <<_ACEOF
47611
 
/* end confdefs.h.  */
47612
 
$ac_includes_default
47613
 
#include <$ac_header>
47614
 
_ACEOF
47615
 
rm -f conftest.$ac_objext
47616
 
if { (ac_try="$ac_compile"
47617
 
case "(($ac_try" in
47618
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47619
 
  *) ac_try_echo=$ac_try;;
47620
 
esac
47621
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47622
 
$as_echo "$ac_try_echo") >&5
47623
 
  (eval "$ac_compile") 2>conftest.er1
47624
 
  ac_status=$?
47625
 
  grep -v '^ *+' conftest.er1 >conftest.err
47626
 
  rm -f conftest.er1
47627
 
  cat conftest.err >&5
47628
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47629
 
  (exit $ac_status); } && {
47630
 
         test -z "$ac_c_werror_flag" ||
47631
 
         test ! -s conftest.err
47632
 
       } && test -s conftest.$ac_objext; then
47633
 
  ac_header_compiler=yes
47634
 
else
47635
 
  $as_echo "$as_me: failed program was:" >&5
47636
 
sed 's/^/| /' conftest.$ac_ext >&5
47637
 
 
47638
 
        ac_header_compiler=no
47639
 
fi
47640
 
 
47641
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47642
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47643
 
$as_echo "$ac_header_compiler" >&6; }
47644
 
 
47645
 
# Is the header present?
47646
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
47647
 
$as_echo_n "checking $ac_header presence... " >&6; }
47648
 
cat >conftest.$ac_ext <<_ACEOF
47649
 
/* confdefs.h.  */
47650
 
_ACEOF
47651
 
cat confdefs.h >>conftest.$ac_ext
47652
 
cat >>conftest.$ac_ext <<_ACEOF
47653
 
/* end confdefs.h.  */
47654
 
#include <$ac_header>
47655
 
_ACEOF
47656
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
47657
 
case "(($ac_try" in
47658
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47659
 
  *) ac_try_echo=$ac_try;;
47660
 
esac
47661
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47662
 
$as_echo "$ac_try_echo") >&5
47663
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47664
 
  ac_status=$?
47665
 
  grep -v '^ *+' conftest.er1 >conftest.err
47666
 
  rm -f conftest.er1
47667
 
  cat conftest.err >&5
47668
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47669
 
  (exit $ac_status); } >/dev/null && {
47670
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47671
 
         test ! -s conftest.err
47672
 
       }; then
47673
 
  ac_header_preproc=yes
47674
 
else
47675
 
  $as_echo "$as_me: failed program was:" >&5
47676
 
sed 's/^/| /' conftest.$ac_ext >&5
47677
 
 
47678
 
  ac_header_preproc=no
47679
 
fi
47680
 
 
47681
 
rm -f conftest.err conftest.$ac_ext
47682
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47683
 
$as_echo "$ac_header_preproc" >&6; }
47684
 
 
47685
 
# So?  What about this header?
47686
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47687
 
  yes:no: )
47688
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47689
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47690
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47691
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47692
 
    ac_header_preproc=yes
47693
 
    ;;
47694
 
  no:yes:* )
47695
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47696
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47697
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47698
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47699
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47700
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47701
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47702
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47703
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47704
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47705
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47706
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47707
 
 
47708
 
    ;;
47709
 
esac
47710
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47711
 
$as_echo_n "checking for $ac_header... " >&6; }
47712
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47713
 
  $as_echo_n "(cached) " >&6
47714
 
else
47715
 
  eval "$as_ac_Header=\$ac_header_preproc"
47716
 
fi
47717
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
47718
 
                 $as_echo "$as_val"'`
47719
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47720
 
$as_echo "$ac_res" >&6; }
47721
 
 
47722
 
fi
47723
 
as_val=`eval 'as_val=${'$as_ac_Header'}
47724
 
                 $as_echo "$as_val"'`
47725
 
   if test "x$as_val" = x""yes; then
 
34310
do :
 
34311
  ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
 
34312
if test "x$ac_cv_header_langinfo_h" = x""yes; then :
47726
34313
  cat >>confdefs.h <<_ACEOF
47727
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34314
#define HAVE_LANGINFO_H 1
47728
34315
_ACEOF
47729
34316
 
47730
34317
fi
47731
34318
 
47732
34319
done
47733
34320
 
47734
 
 
47735
34321
for ac_func in nl_langinfo
47736
 
do
47737
 
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47738
 
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47739
 
$as_echo_n "checking for $ac_func... " >&6; }
47740
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47741
 
  $as_echo_n "(cached) " >&6
47742
 
else
47743
 
  cat >conftest.$ac_ext <<_ACEOF
47744
 
/* confdefs.h.  */
47745
 
_ACEOF
47746
 
cat confdefs.h >>conftest.$ac_ext
47747
 
cat >>conftest.$ac_ext <<_ACEOF
47748
 
/* end confdefs.h.  */
47749
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47750
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47751
 
#define $ac_func innocuous_$ac_func
47752
 
 
47753
 
/* System header to define __stub macros and hopefully few prototypes,
47754
 
    which can conflict with char $ac_func (); below.
47755
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47756
 
    <limits.h> exists even on freestanding compilers.  */
47757
 
 
47758
 
#ifdef __STDC__
47759
 
# include <limits.h>
47760
 
#else
47761
 
# include <assert.h>
47762
 
#endif
47763
 
 
47764
 
#undef $ac_func
47765
 
 
47766
 
/* Override any GCC internal prototype to avoid an error.
47767
 
   Use char because int might match the return type of a GCC
47768
 
   builtin and then its argument prototype would still apply.  */
47769
 
#ifdef __cplusplus
47770
 
extern "C"
47771
 
#endif
47772
 
char $ac_func ();
47773
 
/* The GNU C library defines this for functions which it implements
47774
 
    to always fail with ENOSYS.  Some functions are actually named
47775
 
    something starting with __ and the normal name is an alias.  */
47776
 
#if defined __stub_$ac_func || defined __stub___$ac_func
47777
 
choke me
47778
 
#endif
47779
 
 
47780
 
int
47781
 
main ()
47782
 
{
47783
 
return $ac_func ();
47784
 
  ;
47785
 
  return 0;
47786
 
}
47787
 
_ACEOF
47788
 
rm -f conftest.$ac_objext conftest$ac_exeext
47789
 
if { (ac_try="$ac_link"
47790
 
case "(($ac_try" in
47791
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47792
 
  *) ac_try_echo=$ac_try;;
47793
 
esac
47794
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47795
 
$as_echo "$ac_try_echo") >&5
47796
 
  (eval "$ac_link") 2>conftest.er1
47797
 
  ac_status=$?
47798
 
  grep -v '^ *+' conftest.er1 >conftest.err
47799
 
  rm -f conftest.er1
47800
 
  cat conftest.err >&5
47801
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47802
 
  (exit $ac_status); } && {
47803
 
         test -z "$ac_c_werror_flag" ||
47804
 
         test ! -s conftest.err
47805
 
       } && test -s conftest$ac_exeext && {
47806
 
         test "$cross_compiling" = yes ||
47807
 
         $as_test_x conftest$ac_exeext
47808
 
       }; then
47809
 
  eval "$as_ac_var=yes"
47810
 
else
47811
 
  $as_echo "$as_me: failed program was:" >&5
47812
 
sed 's/^/| /' conftest.$ac_ext >&5
47813
 
 
47814
 
        eval "$as_ac_var=no"
47815
 
fi
47816
 
 
47817
 
rm -rf conftest.dSYM
47818
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47819
 
      conftest$ac_exeext conftest.$ac_ext
47820
 
fi
47821
 
ac_res=`eval 'as_val=${'$as_ac_var'}
47822
 
                 $as_echo "$as_val"'`
47823
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47824
 
$as_echo "$ac_res" >&6; }
47825
 
as_val=`eval 'as_val=${'$as_ac_var'}
47826
 
                 $as_echo "$as_val"'`
47827
 
   if test "x$as_val" = x""yes; then
 
34322
do :
 
34323
  ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
 
34324
if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
47828
34325
  cat >>confdefs.h <<_ACEOF
47829
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
34326
#define HAVE_NL_LANGINFO 1
47830
34327
_ACEOF
47831
34328
 
47832
34329
fi
48023
34520
    case $ac_val in #(
48024
34521
    *${as_nl}*)
48025
34522
      case $ac_var in #(
48026
 
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
34523
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
48027
34524
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
48028
34525
      esac
48029
34526
      case $ac_var in #(
48030
34527
      _ | IFS | as_nl) ;; #(
48031
34528
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
48032
 
      *) $as_unset $ac_var ;;
 
34529
      *) { eval $ac_var=; unset $ac_var;} ;;
48033
34530
      esac ;;
48034
34531
    esac
48035
34532
  done
48037
34534
  (set) 2>&1 |
48038
34535
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
48039
34536
    *${as_nl}ac_space=\ *)
48040
 
      # `set' does not quote correctly, so add quotes (double-quote
48041
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
34537
      # `set' does not quote correctly, so add quotes: double-quote
 
34538
      # substitution turns \\\\ into \\, and sed turns \\ into \.
48042
34539
      sed -n \
48043
34540
        "s/'/'\\\\''/g;
48044
34541
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48061
34558
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48062
34559
  if test -w "$cache_file"; then
48063
34560
    test "x$cache_file" != "x/dev/null" &&
48064
 
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
34561
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
48065
34562
$as_echo "$as_me: updating cache $cache_file" >&6;}
48066
34563
    cat confcache >$cache_file
48067
34564
  else
48068
 
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
34565
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
48069
34566
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48070
34567
  fi
48071
34568
fi
48085
34582
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
48086
34583
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
48087
34584
  #    will be set to the directory where LIBOBJS objects are built.
48088
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
48089
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
34585
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
34586
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
48090
34587
done
48091
34588
LIBOBJS=$ac_libobjs
48092
34589
 
48099
34596
ac_write_fail=0
48100
34597
ac_clean_files_save=$ac_clean_files
48101
34598
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48102
 
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
34599
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
48103
34600
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
48104
 
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
34601
as_write_fail=0
 
34602
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
48105
34603
#! $SHELL
48106
34604
# Generated by $as_me.
48107
34605
# Run this file to recreate the current configuration.
48111
34609
debug=false
48112
34610
ac_cs_recheck=false
48113
34611
ac_cs_silent=false
 
34612
 
48114
34613
SHELL=\${CONFIG_SHELL-$SHELL}
48115
 
_ACEOF
48116
 
 
48117
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48118
 
## --------------------- ##
48119
 
## M4sh Initialization.  ##
48120
 
## --------------------- ##
 
34614
export SHELL
 
34615
_ASEOF
 
34616
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
34617
## -------------------- ##
 
34618
## M4sh Initialization. ##
 
34619
## -------------------- ##
48121
34620
 
48122
34621
# Be more Bourne compatible
48123
34622
DUALCASE=1; export DUALCASE # for MKS sh
48124
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
34623
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
48125
34624
  emulate sh
48126
34625
  NULLCMD=:
48127
34626
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
48129
34628
  alias -g '${1+"$@"}'='"$@"'
48130
34629
  setopt NO_GLOB_SUBST
48131
34630
else
48132
 
  case `(set -o) 2>/dev/null` in
48133
 
  *posix*) set -o posix ;;
 
34631
  case `(set -o) 2>/dev/null` in #(
 
34632
  *posix*) :
 
34633
    set -o posix ;; #(
 
34634
  *) :
 
34635
     ;;
48134
34636
esac
48135
 
 
48136
34637
fi
48137
34638
 
48138
34639
 
48139
 
 
48140
 
 
48141
 
# PATH needs CR
48142
 
# Avoid depending upon Character Ranges.
48143
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48144
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48145
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48146
 
as_cr_digits='0123456789'
48147
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
48148
 
 
48149
34640
as_nl='
48150
34641
'
48151
34642
export as_nl
48153
34644
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48154
34645
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48155
34646
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48156
 
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
34647
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
34648
# but without wasting forks for bash or zsh.
 
34649
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
34650
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
34651
  as_echo='print -r --'
 
34652
  as_echo_n='print -rn --'
 
34653
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48157
34654
  as_echo='printf %s\n'
48158
34655
  as_echo_n='printf %s'
48159
34656
else
48164
34661
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
48165
34662
    as_echo_n_body='eval
48166
34663
      arg=$1;
48167
 
      case $arg in
 
34664
      case $arg in #(
48168
34665
      *"$as_nl"*)
48169
34666
        expr "X$arg" : "X\\(.*\\)$as_nl";
48170
34667
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
48187
34684
  }
48188
34685
fi
48189
34686
 
48190
 
# Support unset when possible.
48191
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48192
 
  as_unset=unset
48193
 
else
48194
 
  as_unset=false
48195
 
fi
48196
 
 
48197
34687
 
48198
34688
# IFS
48199
34689
# We need space, tab and new line, in precisely that order.  Quoting is
48203
34693
IFS=" ""        $as_nl"
48204
34694
 
48205
34695
# Find who we are.  Look in the path if we contain no directory separator.
48206
 
case $0 in
 
34696
case $0 in #((
48207
34697
  *[\\/]* ) as_myself=$0 ;;
48208
34698
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48209
34699
for as_dir in $PATH
48210
34700
do
48211
34701
  IFS=$as_save_IFS
48212
34702
  test -z "$as_dir" && as_dir=.
48213
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48214
 
done
 
34703
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
34704
  done
48215
34705
IFS=$as_save_IFS
48216
34706
 
48217
34707
     ;;
48223
34713
fi
48224
34714
if test ! -f "$as_myself"; then
48225
34715
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
48226
 
  { (exit 1); exit 1; }
 
34716
  exit 1
48227
34717
fi
48228
34718
 
48229
 
# Work around bugs in pre-3.0 UWIN ksh.
48230
 
for as_var in ENV MAIL MAILPATH
48231
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
34719
# Unset variables that we do not need and which cause bugs (e.g. in
 
34720
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
34721
# suppresses any "Segmentation fault" message there.  '((' could
 
34722
# trigger a bug in pdksh 5.2.14.
 
34723
for as_var in BASH_ENV ENV MAIL MAILPATH
 
34724
do eval test x\${$as_var+set} = xset \
 
34725
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
48232
34726
done
48233
34727
PS1='$ '
48234
34728
PS2='> '
48240
34734
LANGUAGE=C
48241
34735
export LANGUAGE
48242
34736
 
48243
 
# Required to use basename.
 
34737
# CDPATH.
 
34738
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
34739
 
 
34740
 
 
34741
# as_fn_error ERROR [LINENO LOG_FD]
 
34742
# ---------------------------------
 
34743
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
34744
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
34745
# script with status $?, using 1 if that was 0.
 
34746
as_fn_error ()
 
34747
{
 
34748
  as_status=$?; test $as_status -eq 0 && as_status=1
 
34749
  if test "$3"; then
 
34750
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
34751
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
34752
  fi
 
34753
  $as_echo "$as_me: error: $1" >&2
 
34754
  as_fn_exit $as_status
 
34755
} # as_fn_error
 
34756
 
 
34757
 
 
34758
# as_fn_set_status STATUS
 
34759
# -----------------------
 
34760
# Set $? to STATUS, without forking.
 
34761
as_fn_set_status ()
 
34762
{
 
34763
  return $1
 
34764
} # as_fn_set_status
 
34765
 
 
34766
# as_fn_exit STATUS
 
34767
# -----------------
 
34768
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
34769
as_fn_exit ()
 
34770
{
 
34771
  set +e
 
34772
  as_fn_set_status $1
 
34773
  exit $1
 
34774
} # as_fn_exit
 
34775
 
 
34776
# as_fn_unset VAR
 
34777
# ---------------
 
34778
# Portably unset VAR.
 
34779
as_fn_unset ()
 
34780
{
 
34781
  { eval $1=; unset $1;}
 
34782
}
 
34783
as_unset=as_fn_unset
 
34784
# as_fn_append VAR VALUE
 
34785
# ----------------------
 
34786
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
34787
# advantage of any shell optimizations that allow amortized linear growth over
 
34788
# repeated appends, instead of the typical quadratic growth present in naive
 
34789
# implementations.
 
34790
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
34791
  eval 'as_fn_append ()
 
34792
  {
 
34793
    eval $1+=\$2
 
34794
  }'
 
34795
else
 
34796
  as_fn_append ()
 
34797
  {
 
34798
    eval $1=\$$1\$2
 
34799
  }
 
34800
fi # as_fn_append
 
34801
 
 
34802
# as_fn_arith ARG...
 
34803
# ------------------
 
34804
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
34805
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
34806
# must be portable across $(()) and expr.
 
34807
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
34808
  eval 'as_fn_arith ()
 
34809
  {
 
34810
    as_val=$(( $* ))
 
34811
  }'
 
34812
else
 
34813
  as_fn_arith ()
 
34814
  {
 
34815
    as_val=`expr "$@" || test $? -eq 1`
 
34816
  }
 
34817
fi # as_fn_arith
 
34818
 
 
34819
 
48244
34820
if expr a : '\(a\)' >/dev/null 2>&1 &&
48245
34821
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
48246
34822
  as_expr=expr
48254
34830
  as_basename=false
48255
34831
fi
48256
34832
 
 
34833
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
34834
  as_dirname=dirname
 
34835
else
 
34836
  as_dirname=false
 
34837
fi
48257
34838
 
48258
 
# Name of the executable.
48259
34839
as_me=`$as_basename -- "$0" ||
48260
34840
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48261
34841
         X"$0" : 'X\(//\)$' \| \
48275
34855
          }
48276
34856
          s/.*/./; q'`
48277
34857
 
48278
 
# CDPATH.
48279
 
$as_unset CDPATH
48280
 
 
48281
 
 
48282
 
 
48283
 
  as_lineno_1=$LINENO
48284
 
  as_lineno_2=$LINENO
48285
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
48286
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
48287
 
 
48288
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48289
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
48290
 
  # line-number line after each line using $LINENO; the second 'sed'
48291
 
  # does the real work.  The second script uses 'N' to pair each
48292
 
  # line-number line with the line containing $LINENO, and appends
48293
 
  # trailing '-' during substitution so that $LINENO is not a special
48294
 
  # case at line end.
48295
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48296
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
48297
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
48298
 
  sed -n '
48299
 
    p
48300
 
    /[$]LINENO/=
48301
 
  ' <$as_myself |
48302
 
    sed '
48303
 
      s/[$]LINENO.*/&-/
48304
 
      t lineno
48305
 
      b
48306
 
      :lineno
48307
 
      N
48308
 
      :loop
48309
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
48310
 
      t loop
48311
 
      s/-\n.*//
48312
 
    ' >$as_me.lineno &&
48313
 
  chmod +x "$as_me.lineno" ||
48314
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
48315
 
   { (exit 1); exit 1; }; }
48316
 
 
48317
 
  # Don't try to exec as it changes $[0], causing all sort of problems
48318
 
  # (the dirname of $[0] is not the place where we might find the
48319
 
  # original and so on.  Autoconf is especially sensitive to this).
48320
 
  . "./$as_me.lineno"
48321
 
  # Exit status is that of the last command.
48322
 
  exit
48323
 
}
48324
 
 
48325
 
 
48326
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48327
 
  as_dirname=dirname
48328
 
else
48329
 
  as_dirname=false
48330
 
fi
 
34858
# Avoid depending upon Character Ranges.
 
34859
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
34860
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
34861
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
34862
as_cr_digits='0123456789'
 
34863
as_cr_alnum=$as_cr_Letters$as_cr_digits
48331
34864
 
48332
34865
ECHO_C= ECHO_N= ECHO_T=
48333
 
case `echo -n x` in
 
34866
case `echo -n x` in #(((((
48334
34867
-n*)
48335
 
  case `echo 'x\c'` in
 
34868
  case `echo 'xy\c'` in
48336
34869
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
48337
 
  *)   ECHO_C='\c';;
 
34870
  xy)  ECHO_C='\c';;
 
34871
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
34872
       ECHO_T=' ';;
48338
34873
  esac;;
48339
34874
*)
48340
34875
  ECHO_N='-n';;
48341
34876
esac
48342
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
48343
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
48344
 
  as_expr=expr
48345
 
else
48346
 
  as_expr=false
48347
 
fi
48348
34877
 
48349
34878
rm -f conf$$ conf$$.exe conf$$.file
48350
34879
if test -d conf$$.dir; then
48373
34902
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48374
34903
rmdir conf$$.dir 2>/dev/null
48375
34904
 
 
34905
 
 
34906
# as_fn_mkdir_p
 
34907
# -------------
 
34908
# Create "$as_dir" as a directory, including parents if necessary.
 
34909
as_fn_mkdir_p ()
 
34910
{
 
34911
 
 
34912
  case $as_dir in #(
 
34913
  -*) as_dir=./$as_dir;;
 
34914
  esac
 
34915
  test -d "$as_dir" || eval $as_mkdir_p || {
 
34916
    as_dirs=
 
34917
    while :; do
 
34918
      case $as_dir in #(
 
34919
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
34920
      *) as_qdir=$as_dir;;
 
34921
      esac
 
34922
      as_dirs="'$as_qdir' $as_dirs"
 
34923
      as_dir=`$as_dirname -- "$as_dir" ||
 
34924
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
34925
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
34926
         X"$as_dir" : 'X\(//\)$' \| \
 
34927
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
34928
$as_echo X"$as_dir" |
 
34929
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
34930
            s//\1/
 
34931
            q
 
34932
          }
 
34933
          /^X\(\/\/\)[^/].*/{
 
34934
            s//\1/
 
34935
            q
 
34936
          }
 
34937
          /^X\(\/\/\)$/{
 
34938
            s//\1/
 
34939
            q
 
34940
          }
 
34941
          /^X\(\/\).*/{
 
34942
            s//\1/
 
34943
            q
 
34944
          }
 
34945
          s/.*/./; q'`
 
34946
      test -d "$as_dir" && break
 
34947
    done
 
34948
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
34949
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
34950
 
 
34951
 
 
34952
} # as_fn_mkdir_p
48376
34953
if mkdir -p . 2>/dev/null; then
48377
 
  as_mkdir_p=:
 
34954
  as_mkdir_p='mkdir -p "$as_dir"'
48378
34955
else
48379
34956
  test -d ./-p && rmdir ./-p
48380
34957
  as_mkdir_p=false
48393
34970
      if test -d "$1"; then
48394
34971
        test -d "$1/.";
48395
34972
      else
48396
 
        case $1 in
 
34973
        case $1 in #(
48397
34974
        -*)set "./$1";;
48398
34975
        esac;
48399
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
34976
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
48400
34977
        ???[sx]*):;;*)false;;esac;fi
48401
34978
    '\'' sh
48402
34979
  '
48411
34988
 
48412
34989
 
48413
34990
exec 6>&1
 
34991
## ----------------------------------- ##
 
34992
## Main body of $CONFIG_STATUS script. ##
 
34993
## ----------------------------------- ##
 
34994
_ASEOF
 
34995
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
48414
34996
 
48415
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
34997
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
34998
# Save the log message, to keep $0 and so on meaningful, and to
48416
34999
# report actual input values of CONFIG_FILES etc. instead of their
48417
35000
# values after options handling.
48418
35001
ac_log="
48419
35002
This file was extended by $as_me, which was
48420
 
generated by GNU Autoconf 2.63.  Invocation command line was
 
35003
generated by GNU Autoconf 2.64.  Invocation command line was
48421
35004
 
48422
35005
  CONFIG_FILES    = $CONFIG_FILES
48423
35006
  CONFIG_HEADERS  = $CONFIG_HEADERS
48449
35032
 
48450
35033
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48451
35034
ac_cs_usage="\
48452
 
\`$as_me' instantiates files from templates according to the
48453
 
current configuration.
 
35035
\`$as_me' instantiates files and other configuration actions
 
35036
from templates according to the current configuration.  Unless the files
 
35037
and actions are specified as TAGs, all are instantiated by default.
48454
35038
 
48455
 
Usage: $0 [OPTION]... [FILE]...
 
35039
Usage: $0 [OPTION]... [TAG]...
48456
35040
 
48457
35041
  -h, --help       print this help, then exit
48458
35042
  -V, --version    print version number and configuration settings, then exit
48474
35058
Configuration commands:
48475
35059
$config_commands
48476
35060
 
48477
 
Report bugs to <bug-autoconf@gnu.org>."
 
35061
Report bugs to the package provider."
48478
35062
 
48479
35063
_ACEOF
48480
35064
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48481
35065
ac_cs_version="\\
48482
35066
config.status
48483
 
configured by $0, generated by GNU Autoconf 2.63,
 
35067
configured by $0, generated by GNU Autoconf 2.64,
48484
35068
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
48485
35069
 
48486
 
Copyright (C) 2008 Free Software Foundation, Inc.
 
35070
Copyright (C) 2009 Free Software Foundation, Inc.
48487
35071
This config.status script is free software; the Free Software Foundation
48488
35072
gives unlimited permission to copy, distribute and modify it."
48489
35073
 
48525
35109
    case $ac_optarg in
48526
35110
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48527
35111
    esac
48528
 
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
35112
    as_fn_append CONFIG_FILES " '$ac_optarg'"
48529
35113
    ac_need_defaults=false;;
48530
35114
  --header | --heade | --head | --hea )
48531
35115
    $ac_shift
48532
35116
    case $ac_optarg in
48533
35117
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48534
35118
    esac
48535
 
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
35119
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
48536
35120
    ac_need_defaults=false;;
48537
35121
  --he | --h)
48538
35122
    # Conflict between --help and --header
48539
 
    { $as_echo "$as_me: error: ambiguous option: $1
48540
 
Try \`$0 --help' for more information." >&2
48541
 
   { (exit 1); exit 1; }; };;
 
35123
    as_fn_error "ambiguous option: \`$1'
 
35124
Try \`$0 --help' for more information.";;
48542
35125
  --help | --hel | -h )
48543
35126
    $as_echo "$ac_cs_usage"; exit ;;
48544
35127
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48546
35129
    ac_cs_silent=: ;;
48547
35130
 
48548
35131
  # This is an error.
48549
 
  -*) { $as_echo "$as_me: error: unrecognized option: $1
48550
 
Try \`$0 --help' for more information." >&2
48551
 
   { (exit 1); exit 1; }; } ;;
 
35132
  -*) as_fn_error "unrecognized option: \`$1'
 
35133
Try \`$0 --help' for more information." ;;
48552
35134
 
48553
 
  *) ac_config_targets="$ac_config_targets $1"
 
35135
  *) as_fn_append ac_config_targets " $1"
48554
35136
     ac_need_defaults=false ;;
48555
35137
 
48556
35138
  esac
48622
35204
    "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
48623
35205
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
48624
35206
 
48625
 
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48626
 
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48627
 
   { (exit 1); exit 1; }; };;
 
35207
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
48628
35208
  esac
48629
35209
done
48630
35210
 
48651
35231
  trap 'exit_status=$?
48652
35232
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
48653
35233
' 0
48654
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
35234
  trap 'as_fn_exit 1' 1 2 13 15
48655
35235
}
48656
35236
# Create a (secure) tmp directory for tmp files.
48657
35237
 
48662
35242
{
48663
35243
  tmp=./conf$$-$RANDOM
48664
35244
  (umask 077 && mkdir "$tmp")
48665
 
} ||
48666
 
{
48667
 
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
48668
 
   { (exit 1); exit 1; }
48669
 
}
 
35245
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
48670
35246
 
48671
35247
# Set up the scripts for CONFIG_FILES section.
48672
35248
# No need to generate them if there are no CONFIG_FILES.
48674
35250
if test -n "$CONFIG_FILES"; then
48675
35251
 
48676
35252
 
48677
 
ac_cr='
 
 
b"'"
 
35253
ac_cr=`echo X | tr X '\015'`
 
35254
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
35255
# But we know of no other shell where ac_cr would be empty at this
 
35256
# point, so we can use a bashism as a fallback.
 
35257
if test "x$ac_cr" = x; then
 
35258
  eval ac_cr=\$\'\\r\'
 
35259
fi
48678
35260
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48679
35261
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48680
 
  ac_cs_awk_cr='\\r'
 
35262
  ac_cs_awk_cr='\r'
48681
35263
else
48682
35264
  ac_cs_awk_cr=$ac_cr
48683
35265
fi
48691
35273
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48692
35274
  echo "_ACEOF"
48693
35275
} >conf$$subs.sh ||
48694
 
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48695
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48696
 
   { (exit 1); exit 1; }; }
 
35276
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
48697
35277
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
48698
35278
ac_delim='%!_!# '
48699
35279
for ac_last_try in false false false false false :; do
48700
35280
  . ./conf$$subs.sh ||
48701
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48702
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48703
 
   { (exit 1); exit 1; }; }
 
35281
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
48704
35282
 
48705
35283
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48706
35284
  if test $ac_delim_n = $ac_delim_num; then
48707
35285
    break
48708
35286
  elif $ac_last_try; then
48709
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48710
 
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48711
 
   { (exit 1); exit 1; }; }
 
35287
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
48712
35288
  else
48713
35289
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48714
35290
  fi
48797
35373
else
48798
35374
  cat
48799
35375
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
48800
 
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
48801
 
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
48802
 
   { (exit 1); exit 1; }; }
 
35376
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
48803
35377
_ACEOF
48804
35378
 
48805
35379
# VPATH may cause trouble with some makes, so we remove $(srcdir),
48840
35414
  if test -z "$ac_t"; then
48841
35415
    break
48842
35416
  elif $ac_last_try; then
48843
 
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
48844
 
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
48845
 
   { (exit 1); exit 1; }; }
 
35417
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
48846
35418
  else
48847
35419
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48848
35420
  fi
48927
35499
_ACAWK
48928
35500
_ACEOF
48929
35501
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48930
 
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
48931
 
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
48932
 
   { (exit 1); exit 1; }; }
 
35502
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
48933
35503
fi # test -n "$CONFIG_HEADERS"
48934
35504
 
48935
35505
 
48942
35512
  esac
48943
35513
  case $ac_mode$ac_tag in
48944
35514
  :[FHL]*:*);;
48945
 
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
48946
 
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
48947
 
   { (exit 1); exit 1; }; };;
 
35515
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
48948
35516
  :[FH]-) ac_tag=-:-;;
48949
35517
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48950
35518
  esac
48972
35540
           [\\/$]*) false;;
48973
35541
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48974
35542
           esac ||
48975
 
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
48976
 
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
48977
 
   { (exit 1); exit 1; }; };;
 
35543
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
48978
35544
      esac
48979
35545
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48980
 
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
35546
      as_fn_append ac_file_inputs " '$ac_f'"
48981
35547
    done
48982
35548
 
48983
35549
    # Let's still pretend it is `configure' which instantiates (i.e., don't
48988
35554
        `' by configure.'
48989
35555
    if test x"$ac_file" != x-; then
48990
35556
      configure_input="$ac_file.  $configure_input"
48991
 
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
35557
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
48992
35558
$as_echo "$as_me: creating $ac_file" >&6;}
48993
35559
    fi
48994
35560
    # Neutralize special characters interpreted by sed in replacement strings.
49001
35567
 
49002
35568
    case $ac_tag in
49003
35569
    *:-:* | *:-) cat >"$tmp/stdin" \
49004
 
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49005
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
49006
 
   { (exit 1); exit 1; }; } ;;
 
35570
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
49007
35571
    esac
49008
35572
    ;;
49009
35573
  esac
49031
35595
            q
49032
35596
          }
49033
35597
          s/.*/./; q'`
49034
 
  { as_dir="$ac_dir"
49035
 
  case $as_dir in #(
49036
 
  -*) as_dir=./$as_dir;;
49037
 
  esac
49038
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
49039
 
    as_dirs=
49040
 
    while :; do
49041
 
      case $as_dir in #(
49042
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
49043
 
      *) as_qdir=$as_dir;;
49044
 
      esac
49045
 
      as_dirs="'$as_qdir' $as_dirs"
49046
 
      as_dir=`$as_dirname -- "$as_dir" ||
49047
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49048
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
49049
 
         X"$as_dir" : 'X\(//\)$' \| \
49050
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49051
 
$as_echo X"$as_dir" |
49052
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49053
 
            s//\1/
49054
 
            q
49055
 
          }
49056
 
          /^X\(\/\/\)[^/].*/{
49057
 
            s//\1/
49058
 
            q
49059
 
          }
49060
 
          /^X\(\/\/\)$/{
49061
 
            s//\1/
49062
 
            q
49063
 
          }
49064
 
          /^X\(\/\).*/{
49065
 
            s//\1/
49066
 
            q
49067
 
          }
49068
 
          s/.*/./; q'`
49069
 
      test -d "$as_dir" && break
49070
 
    done
49071
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
49072
 
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
49073
 
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
49074
 
   { (exit 1); exit 1; }; }; }
 
35598
  as_dir="$ac_dir"; as_fn_mkdir_p
49075
35599
  ac_builddir=.
49076
35600
 
49077
35601
case "$ac_dir" in
49123
35647
# If the template does not know about datarootdir, expand it.
49124
35648
# FIXME: This hack should be removed a few years after 2.60.
49125
35649
ac_datarootdir_hack=; ac_datarootdir_seen=
49126
 
 
49127
35650
ac_sed_dataroot='
49128
35651
/datarootdir/ {
49129
35652
  p
49133
35656
/@docdir@/p
49134
35657
/@infodir@/p
49135
35658
/@localedir@/p
49136
 
/@mandir@/p
49137
 
'
 
35659
/@mandir@/p'
49138
35660
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
49139
35661
*datarootdir*) ac_datarootdir_seen=yes;;
49140
35662
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
49141
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
35663
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
49142
35664
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
49143
35665
_ACEOF
49144
35666
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49148
35670
  s&@infodir@&$infodir&g
49149
35671
  s&@localedir@&$localedir&g
49150
35672
  s&@mandir@&$mandir&g
49151
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
35673
  s&\\\${datarootdir}&$datarootdir&g' ;;
49152
35674
esac
49153
35675
_ACEOF
49154
35676
 
49176
35698
$ac_datarootdir_hack
49177
35699
"
49178
35700
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
49179
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49180
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
49181
 
   { (exit 1); exit 1; }; }
 
35701
  || as_fn_error "could not create $ac_file" "$LINENO" 5
49182
35702
 
49183
35703
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
49184
35704
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
49185
35705
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
49186
 
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
35706
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49187
35707
which seems to be undefined.  Please make sure it is defined." >&5
49188
35708
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49189
35709
which seems to be undefined.  Please make sure it is defined." >&2;}
49193
35713
  -) cat "$tmp/out" && rm -f "$tmp/out";;
49194
35714
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
49195
35715
  esac \
49196
 
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49197
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
49198
 
   { (exit 1); exit 1; }; }
 
35716
  || as_fn_error "could not create $ac_file" "$LINENO" 5
49199
35717
 ;;
49200
35718
  :H)
49201
35719
  #
49206
35724
      $as_echo "/* $configure_input  */" \
49207
35725
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
49208
35726
    } >"$tmp/config.h" \
49209
 
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49210
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
49211
 
   { (exit 1); exit 1; }; }
 
35727
      || as_fn_error "could not create $ac_file" "$LINENO" 5
49212
35728
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
49213
 
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
35729
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
49214
35730
$as_echo "$as_me: $ac_file is unchanged" >&6;}
49215
35731
    else
49216
35732
      rm -f "$ac_file"
49217
35733
      mv "$tmp/config.h" "$ac_file" \
49218
 
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49219
 
$as_echo "$as_me: error: could not create $ac_file" >&2;}
49220
 
   { (exit 1); exit 1; }; }
 
35734
        || as_fn_error "could not create $ac_file" "$LINENO" 5
49221
35735
    fi
49222
35736
  else
49223
35737
    $as_echo "/* $configure_input  */" \
49224
35738
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
49225
 
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
49226
 
$as_echo "$as_me: error: could not create -" >&2;}
49227
 
   { (exit 1); exit 1; }; }
 
35739
      || as_fn_error "could not create -" "$LINENO" 5
49228
35740
  fi
49229
35741
 ;;
49230
35742
 
49231
 
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
35743
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
49232
35744
$as_echo "$as_me: executing $ac_file commands" >&6;}
49233
35745
 ;;
49234
35746
  esac
49240
35752
for i in $APR_SAVE_HEADERS; do
49241
35753
  if cmp -s $i $i.save 2>/dev/null; then
49242
35754
    mv $i.save $i
49243
 
    { $as_echo "$as_me:$LINENO: $i is unchanged" >&5
 
35755
    { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
49244
35756
$as_echo "$as_me: $i is unchanged" >&6;}
49245
35757
  fi
49246
35758
  rm -f $i.save
49261
35773
done # for ac_tag
49262
35774
 
49263
35775
 
49264
 
{ (exit 0); exit 0; }
 
35776
as_fn_exit 0
49265
35777
_ACEOF
49266
 
chmod +x $CONFIG_STATUS
49267
35778
ac_clean_files=$ac_clean_files_save
49268
35779
 
49269
35780
test $ac_write_fail = 0 ||
49270
 
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
49271
 
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
49272
 
   { (exit 1); exit 1; }; }
 
35781
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
49273
35782
 
49274
35783
 
49275
35784
# configure is writing to config.log, and then calls config.status.
49290
35799
  exec 5>>config.log
49291
35800
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49292
35801
  # would make configure fail if this is the last instruction.
49293
 
  $ac_cs_success || { (exit 1); exit 1; }
 
35802
  $ac_cs_success || as_fn_exit $?
49294
35803
fi
49295
35804
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49296
 
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
35805
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49297
35806
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49298
35807
fi
49299
35808