~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-updates

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

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.59 for gnupg 1.9.20.
4
 
#
5
 
# Report bugs to <gnupg-devel@gnupg.org>.
6
 
#
7
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.61 for gnupg 2.0.9.
 
4
#
 
5
# Report bugs to <bug-gnupg@gnupg.org>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8
9
# This configure script is free software; the Free Software Foundation
9
10
# gives unlimited permission to copy, distribute and modify it.
10
11
## --------------------- ##
11
12
## M4sh Initialization.  ##
12
13
## --------------------- ##
13
14
 
14
 
# Be Bourne compatible
15
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
 
  emulate sh
17
 
  NULLCMD=:
18
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
 
  # is contrary to our usage.  Disable this feature.
20
 
  alias -g '${1+"$@"}'='"$@"'
21
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
 
  set -o posix
23
 
fi
 
15
# Be more Bourne compatible
24
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
25
54
 
26
55
# Support unset when possible.
27
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31
60
fi
32
61
 
33
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
34
96
# Work around bugs in pre-3.0 UWIN ksh.
35
 
$as_unset ENV MAIL MAILPATH
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
36
100
PS1='$ '
37
101
PS2='> '
38
102
PS4='+ '
46
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
111
    eval $as_var=C; export $as_var
48
112
  else
49
 
    $as_unset $as_var
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
50
114
  fi
51
115
done
52
116
 
53
117
# Required to use basename.
54
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
55
120
  as_expr=expr
56
121
else
57
122
  as_expr=false
58
123
fi
59
124
 
60
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
61
126
  as_basename=basename
62
127
else
63
128
  as_basename=false
65
130
 
66
131
 
67
132
# Name of the executable.
68
 
as_me=`$as_basename "$0" ||
 
133
as_me=`$as_basename -- "$0" ||
69
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
135
         X"$0" : 'X\(//\)$' \| \
71
 
         X"$0" : 'X\(/\)$' \| \
72
 
         .     : '\(.\)' 2>/dev/null ||
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
73
137
echo X/"$0" |
74
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
 
          /^X\/\(\/\).*/{ s//\1/; q; }
77
 
          s/.*/./; q'`
78
 
 
79
 
 
80
 
# PATH needs CR, and LINENO needs CR and PATH.
81
 
# Avoid depending upon Character Ranges.
82
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
 
as_cr_digits='0123456789'
86
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
 
 
88
 
# The user is always right.
89
 
if test "${PATH_SEPARATOR+set}" != set; then
90
 
  echo "#! /bin/sh" >conf$$.sh
91
 
  echo  "exit 0"   >>conf$$.sh
92
 
  chmod +x conf$$.sh
93
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
 
    PATH_SEPARATOR=';'
95
 
  else
96
 
    PATH_SEPARATOR=:
97
 
  fi
98
 
  rm -f conf$$.sh
99
 
fi
100
 
 
101
 
 
102
 
  as_lineno_1=$LINENO
103
 
  as_lineno_2=$LINENO
104
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
 
  # Find who we are.  Look in the path if we contain no path at all
108
 
  # relative or not.
109
 
  case $0 in
110
 
    *[\\/]* ) as_myself=$0 ;;
111
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
 
for as_dir in $PATH
113
 
do
114
 
  IFS=$as_save_IFS
115
 
  test -z "$as_dir" && as_dir=.
116
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
 
done
118
 
 
119
 
       ;;
120
 
  esac
121
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
 
  # in which case we are not to be found in the path.
123
 
  if test "x$as_myself" = x; then
124
 
    as_myself=$0
125
 
  fi
126
 
  if test ! -f "$as_myself"; then
127
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
 
   { (exit 1); exit 1; }; }
129
 
  fi
130
 
  case $CONFIG_SHELL in
131
 
  '')
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
132
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
225
do
135
226
  IFS=$as_save_IFS
136
227
  test -z "$as_dir" && as_dir=.
137
 
  for as_base in sh bash ksh sh5; do
138
 
         case $as_dir in
 
228
  case $as_dir in
139
229
         /*)
140
 
           if ("$as_dir/$as_base" -c '
141
 
  as_lineno_1=$LINENO
142
 
  as_lineno_2=$LINENO
143
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
 
             CONFIG_SHELL=$as_dir/$as_base
149
 
             export CONFIG_SHELL
150
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
 
           fi;;
152
 
         esac
153
 
       done
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
154
234
done
155
 
;;
156
 
  esac
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
157
429
 
158
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
 
  # line-number line before each line; the second 'sed' does the real
161
 
  # work.  The second script uses 'N' to pair each line-number line
162
 
  # with the numbered line, and appends trailing '-' during
163
 
  # substitution so that $LINENO is not a special case at line end.
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
164
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
 
  sed '=' <$as_myself |
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
167
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
168
449
      N
169
 
      s,$,-,
170
 
      : loop
171
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
452
      t loop
173
 
      s,-$,,
174
 
      s,^['$as_cr_digits']*\n,,
 
453
      s/-\n.*//
175
454
    ' >$as_me.lineno &&
176
 
  chmod +x $as_me.lineno ||
 
455
  chmod +x "$as_me.lineno" ||
177
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
457
   { (exit 1); exit 1; }; }
179
458
 
180
459
  # Don't try to exec as it changes $[0], causing all sort of problems
181
460
  # (the dirname of $[0] is not the place where we might find the
182
 
  # original and so on.  Autoconf is especially sensible to this).
183
 
  . ./$as_me.lineno
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
184
463
  # Exit status is that of the last command.
185
464
  exit
186
465
}
187
466
 
188
467
 
189
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
 
  *c*,-n*) ECHO_N= ECHO_C='
191
 
' ECHO_T='      ' ;;
192
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
194
483
esac
195
484
 
196
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
197
487
  as_expr=expr
198
488
else
199
489
  as_expr=false
200
490
fi
201
491
 
202
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
203
499
echo >conf$$.file
204
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
 
  # We could just check for DJGPP; but this test a) works b) is more generic
206
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
 
  if test -f conf$$.exe; then
208
 
    # Don't use ln at all; we don't have any links
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
209
507
    as_ln_s='cp -p'
210
 
  else
211
 
    as_ln_s='ln -s'
212
 
  fi
213
508
elif ln conf$$.file conf$$ 2>/dev/null; then
214
509
  as_ln_s=ln
215
510
else
216
511
  as_ln_s='cp -p'
217
512
fi
218
 
rm -f conf$$ conf$$.exe conf$$.file
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
219
515
 
220
516
if mkdir -p . 2>/dev/null; then
221
517
  as_mkdir_p=:
224
520
  as_mkdir_p=false
225
521
fi
226
522
 
227
 
as_executable_p="test -f"
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
228
545
 
229
546
# Sed expression to map a string onto a valid CPP name.
230
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
551
 
235
552
 
236
 
# IFS
237
 
# We need space, tab and new line, in precisely that order.
238
 
as_nl='
239
 
'
240
 
IFS="   $as_nl"
241
 
 
242
 
# CDPATH.
243
 
$as_unset CDPATH
244
 
 
 
553
 
 
554
exec 7<&0 </dev/null 6>&1
245
555
 
246
556
# Name of the host.
247
557
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
558
# so uname gets run too.
249
559
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
560
 
251
 
exec 6>&1
252
 
 
253
561
#
254
562
# Initializations.
255
563
#
256
564
ac_default_prefix=/usr/local
 
565
ac_clean_files=
257
566
ac_config_libobj_dir=.
 
567
LIBOBJS=
258
568
cross_compiling=no
259
569
subdirs=
260
570
MFLAGS=
261
571
MAKEFLAGS=
262
572
SHELL=${CONFIG_SHELL-/bin/sh}
263
573
 
264
 
# Maximum number of lines to put in a shell here document.
265
 
# This variable seems obsolete.  It should probably be removed, and
266
 
# only ac_max_sed_lines should be used.
267
 
: ${ac_max_here_lines=38}
268
 
 
269
574
# Identity of this package.
270
575
PACKAGE_NAME='gnupg'
271
576
PACKAGE_TARNAME='gnupg'
272
 
PACKAGE_VERSION='1.9.20'
273
 
PACKAGE_STRING='gnupg 1.9.20'
274
 
PACKAGE_BUGREPORT='gnupg-devel@gnupg.org'
 
577
PACKAGE_VERSION='2.0.9'
 
578
PACKAGE_STRING='gnupg 2.0.9'
 
579
PACKAGE_BUGREPORT='bug-gnupg@gnupg.org'
275
580
 
276
581
ac_unique_file="sm/gpgsm.c"
 
582
gt_needs=
277
583
# Factoring default headers for most tests.
278
584
ac_includes_default="\
279
585
#include <stdio.h>
280
 
#if HAVE_SYS_TYPES_H
 
586
#ifdef HAVE_SYS_TYPES_H
281
587
# include <sys/types.h>
282
588
#endif
283
 
#if HAVE_SYS_STAT_H
 
589
#ifdef HAVE_SYS_STAT_H
284
590
# include <sys/stat.h>
285
591
#endif
286
 
#if STDC_HEADERS
 
592
#ifdef STDC_HEADERS
287
593
# include <stdlib.h>
288
594
# include <stddef.h>
289
595
#else
290
 
# if HAVE_STDLIB_H
 
596
# ifdef HAVE_STDLIB_H
291
597
#  include <stdlib.h>
292
598
# endif
293
599
#endif
294
 
#if HAVE_STRING_H
295
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
600
#ifdef HAVE_STRING_H
 
601
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
296
602
#  include <memory.h>
297
603
# endif
298
604
# include <string.h>
299
605
#endif
300
 
#if HAVE_STRINGS_H
 
606
#ifdef HAVE_STRINGS_H
301
607
# include <strings.h>
302
608
#endif
303
 
#if HAVE_INTTYPES_H
 
609
#ifdef HAVE_INTTYPES_H
304
610
# include <inttypes.h>
305
 
#else
306
 
# if HAVE_STDINT_H
307
 
#  include <stdint.h>
308
 
# endif
309
 
#endif
310
 
#if HAVE_UNISTD_H
 
611
#endif
 
612
#ifdef HAVE_STDINT_H
 
613
# include <stdint.h>
 
614
#endif
 
615
#ifdef HAVE_UNISTD_H
311
616
# include <unistd.h>
312
617
#endif"
313
618
 
314
 
gl_header_list=
315
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar PACKAGE_GT GNUPG_AGENT_PGM GNUPG_AGENT_PGM_TRUE GNUPG_AGENT_PGM_FALSE GNUPG_PINENTRY_PGM GNUPG_PINENTRY_PGM_TRUE GNUPG_PINENTRY_PGM_FALSE GNUPG_SCDAEMON_PGM GNUPG_SCDAEMON_PGM_TRUE GNUPG_SCDAEMON_PGM_FALSE GNUPG_DIRMNGR_PGM GNUPG_DIRMNGR_PGM_TRUE GNUPG_DIRMNGR_PGM_FALSE GNUPG_PROTECT_TOOL_PGM GNUPG_PROTECT_TOOL_PGM_TRUE GNUPG_PROTECT_TOOL_PGM_FALSE GPGKEYS_HKP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S RANLIB ac_ct_RANLIB AR ac_ct_AR PERL DOCBOOK_TO_MAN HAVE_DOCBOOK_TO_MAN_TRUE HAVE_DOCBOOK_TO_MAN_FALSE FAQPROG WORKING_FAQPROG_TRUE WORKING_FAQPROG_FALSE DOCBOOK_TO_TEXI HAVE_DOCBOOK_TO_TEXI_TRUE HAVE_DOCBOOK_TO_TEXI_FALSE HAVE_DOSISH_SYSTEM_TRUE HAVE_DOSISH_SYSTEM_FALSE HAVE_W32_SYSTEM_TRUE HAVE_W32_SYSTEM_FALSE GPG_ERROR_CONFIG GPG_ERROR_CFLAGS GPG_ERROR_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS LIBASSUAN_CONFIG LIBASSUAN_CFLAGS LIBASSUAN_LIBS KSBA_CONFIG KSBA_CFLAGS KSBA_LIBS LIBUSB_LIBS DL_LIBS LIBUTIL_LIBS SHRED PTH_CONFIG PTH_CFLAGS PTH_LIBS SRVLIBS GPGKEYS_LDAP LDAPLIBS SENDMAIL GPGKEYS_MAILTO MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB SHA512_O GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE ALLOCA_H LIBOBJS EOVERFLOW CAPLIBS REGEX_O RUN_PKITS_TESTS_TRUE RUN_PKITS_TESTS_FALSE CROSS_COMPILING_TRUE CROSS_COMPILING_FALSE NETLIBS W32LIBS BUILD_GPG_TRUE BUILD_GPG_FALSE BUILD_GPGSM_TRUE BUILD_GPGSM_FALSE BUILD_AGENT_TRUE BUILD_AGENT_FALSE BUILD_SCDAEMON_TRUE BUILD_SCDAEMON_FALSE BUILD_SYMCRYPTRUN_TRUE BUILD_SYMCRYPTRUN_FALSE LTLIBOBJS'
 
619
ac_header_list=
 
620
ac_subst_vars='SHELL
 
621
PATH_SEPARATOR
 
622
PACKAGE_NAME
 
623
PACKAGE_TARNAME
 
624
PACKAGE_VERSION
 
625
PACKAGE_STRING
 
626
PACKAGE_BUGREPORT
 
627
exec_prefix
 
628
prefix
 
629
program_transform_name
 
630
bindir
 
631
sbindir
 
632
libexecdir
 
633
datarootdir
 
634
datadir
 
635
sysconfdir
 
636
sharedstatedir
 
637
localstatedir
 
638
includedir
 
639
oldincludedir
 
640
docdir
 
641
infodir
 
642
htmldir
 
643
dvidir
 
644
pdfdir
 
645
psdir
 
646
libdir
 
647
localedir
 
648
mandir
 
649
DEFS
 
650
ECHO_C
 
651
ECHO_N
 
652
ECHO_T
 
653
LIBS
 
654
build_alias
 
655
host_alias
 
656
target_alias
 
657
INSTALL_PROGRAM
 
658
INSTALL_SCRIPT
 
659
INSTALL_DATA
 
660
am__isrc
 
661
CYGPATH_W
 
662
PACKAGE
 
663
VERSION
 
664
ACLOCAL
 
665
AUTOCONF
 
666
AUTOMAKE
 
667
AUTOHEADER
 
668
MAKEINFO
 
669
install_sh
 
670
STRIP
 
671
INSTALL_STRIP_PROGRAM
 
672
mkdir_p
 
673
AWK
 
674
SET_MAKE
 
675
am__leading_dot
 
676
AMTAR
 
677
am__tar
 
678
am__untar
 
679
build
 
680
build_cpu
 
681
build_vendor
 
682
build_os
 
683
host
 
684
host_cpu
 
685
host_vendor
 
686
host_os
 
687
PACKAGE_GT
 
688
GNUPG_AGENT_PGM
 
689
GNUPG_AGENT_PGM_TRUE
 
690
GNUPG_AGENT_PGM_FALSE
 
691
GNUPG_PINENTRY_PGM
 
692
GNUPG_PINENTRY_PGM_TRUE
 
693
GNUPG_PINENTRY_PGM_FALSE
 
694
GNUPG_SCDAEMON_PGM
 
695
GNUPG_SCDAEMON_PGM_TRUE
 
696
GNUPG_SCDAEMON_PGM_FALSE
 
697
GNUPG_DIRMNGR_PGM
 
698
GNUPG_DIRMNGR_PGM_TRUE
 
699
GNUPG_DIRMNGR_PGM_FALSE
 
700
GNUPG_PROTECT_TOOL_PGM
 
701
GNUPG_PROTECT_TOOL_PGM_TRUE
 
702
GNUPG_PROTECT_TOOL_PGM_FALSE
 
703
MAINTAINER_MODE_TRUE
 
704
MAINTAINER_MODE_FALSE
 
705
MAINT
 
706
CC
 
707
CFLAGS
 
708
LDFLAGS
 
709
CPPFLAGS
 
710
ac_ct_CC
 
711
EXEEXT
 
712
OBJEXT
 
713
DEPDIR
 
714
am__include
 
715
am__quote
 
716
AMDEP_TRUE
 
717
AMDEP_FALSE
 
718
AMDEPBACKSLASH
 
719
CCDEPMODE
 
720
am__fastdepCC_TRUE
 
721
am__fastdepCC_FALSE
 
722
CPP
 
723
LN_S
 
724
RANLIB
 
725
AR
 
726
PERL
 
727
WINDRES
 
728
FAQPROG
 
729
WORKING_FAQPROG_TRUE
 
730
WORKING_FAQPROG_FALSE
 
731
TAR
 
732
HAVE_USTAR_TRUE
 
733
HAVE_USTAR_FALSE
 
734
CC_FOR_BUILD
 
735
HAVE_DOSISH_SYSTEM_TRUE
 
736
HAVE_DOSISH_SYSTEM_FALSE
 
737
USE_SIMPLE_GETTEXT_TRUE
 
738
USE_SIMPLE_GETTEXT_FALSE
 
739
HAVE_W32_SYSTEM_TRUE
 
740
HAVE_W32_SYSTEM_FALSE
 
741
GPGKEYS_HKP
 
742
GPGKEYS_FINGER
 
743
GPG_ERROR_CONFIG
 
744
GPG_ERROR_CFLAGS
 
745
GPG_ERROR_LIBS
 
746
LIBGCRYPT_CONFIG
 
747
LIBGCRYPT_CFLAGS
 
748
LIBGCRYPT_LIBS
 
749
LIBASSUAN_CONFIG
 
750
LIBASSUAN_CFLAGS
 
751
LIBASSUAN_LIBS
 
752
LIBASSUAN_PTH_CFLAGS
 
753
LIBASSUAN_PTH_LIBS
 
754
KSBA_CONFIG
 
755
KSBA_CFLAGS
 
756
KSBA_LIBS
 
757
LIBUSB_LIBS
 
758
DL_LIBS
 
759
LIBUTIL_LIBS
 
760
SHRED
 
761
PTH_CONFIG
 
762
PTH_CFLAGS
 
763
PTH_LIBS
 
764
DNSLIBS
 
765
USE_DNS_SRV_TRUE
 
766
USE_DNS_SRV_FALSE
 
767
GPGKEYS_LDAP
 
768
LDAPLIBS
 
769
LDAP_CPPFLAGS
 
770
_libcurl_config
 
771
LIBCURL_CPPFLAGS
 
772
LIBCURL
 
773
FAKE_CURL_TRUE
 
774
FAKE_CURL_FALSE
 
775
GPGKEYS_CURL
 
776
SENDMAIL
 
777
GPGKEYS_MAILTO
 
778
LIBICONV
 
779
LTLIBICONV
 
780
USE_NLS
 
781
GETTEXT_MACRO_VERSION
 
782
MSGFMT
 
783
GMSGFMT
 
784
MSGFMT_015
 
785
GMSGFMT_015
 
786
XGETTEXT
 
787
XGETTEXT_015
 
788
MSGMERGE
 
789
XGETTEXT_EXTRA_OPTIONS
 
790
INTL_MACOSX_LIBS
 
791
INTLLIBS
 
792
LIBINTL
 
793
LTLIBINTL
 
794
POSUB
 
795
USE_INCLUDED_LIBINTL
 
796
BUILD_INCLUDED_LIBINTL
 
797
GREP
 
798
EGREP
 
799
GL_COND_LIBTOOL_TRUE
 
800
GL_COND_LIBTOOL_FALSE
 
801
ALLOCA
 
802
ALLOCA_H
 
803
LIBOBJS
 
804
HAVE_LONG_LONG_INT
 
805
HAVE_UNSIGNED_LONG_LONG_INT
 
806
HAVE_WCHAR_H
 
807
HAVE_INTTYPES_H
 
808
HAVE_SYS_TYPES_H
 
809
ABSOLUTE_STDINT_H
 
810
HAVE_STDINT_H
 
811
HAVE_SYS_INTTYPES_H
 
812
HAVE_SYS_BITYPES_H
 
813
BITSIZEOF_PTRDIFF_T
 
814
BITSIZEOF_SIG_ATOMIC_T
 
815
BITSIZEOF_SIZE_T
 
816
BITSIZEOF_WCHAR_T
 
817
BITSIZEOF_WINT_T
 
818
HAVE_SIGNED_SIG_ATOMIC_T
 
819
HAVE_SIGNED_WCHAR_T
 
820
HAVE_SIGNED_WINT_T
 
821
PTRDIFF_T_SUFFIX
 
822
SIG_ATOMIC_T_SUFFIX
 
823
SIZE_T_SUFFIX
 
824
WCHAR_T_SUFFIX
 
825
WINT_T_SUFFIX
 
826
STDINT_H
 
827
UNISTD_H
 
828
LIBGNU_LIBDEPS
 
829
LIBGNU_LTLIBDEPS
 
830
DISABLE_REGEX_TRUE
 
831
DISABLE_REGEX_FALSE
 
832
ENABLE_BZIP2_SUPPORT_TRUE
 
833
ENABLE_BZIP2_SUPPORT_FALSE
 
834
ZLIBS
 
835
LIBREADLINE
 
836
CROSS_COMPILING_TRUE
 
837
CROSS_COMPILING_FALSE
 
838
NETLIBS
 
839
W32SOCKLIBS
 
840
BUILD_GPG_TRUE
 
841
BUILD_GPG_FALSE
 
842
BUILD_GPGSM_TRUE
 
843
BUILD_GPGSM_FALSE
 
844
BUILD_AGENT_TRUE
 
845
BUILD_AGENT_FALSE
 
846
BUILD_SCDAEMON_TRUE
 
847
BUILD_SCDAEMON_FALSE
 
848
BUILD_TOOLS_TRUE
 
849
BUILD_TOOLS_FALSE
 
850
BUILD_DOC_TRUE
 
851
BUILD_DOC_FALSE
 
852
BUILD_SYMCRYPTRUN_TRUE
 
853
BUILD_SYMCRYPTRUN_FALSE
 
854
RUN_GPG_TESTS_TRUE
 
855
RUN_GPG_TESTS_FALSE
 
856
LTLIBOBJS'
316
857
ac_subst_files=''
 
858
      ac_precious_vars='build_alias
 
859
host_alias
 
860
target_alias
 
861
CC
 
862
CFLAGS
 
863
LDFLAGS
 
864
LIBS
 
865
CPPFLAGS
 
866
CPP
 
867
CC_FOR_BUILD'
 
868
 
317
869
 
318
870
# Initialize some variables set by options.
319
871
ac_init_help=
340
892
# and all the variables that are supposed to be based on exec_prefix
341
893
# by default will actually change.
342
894
# Use braces instead of parens because sh, perl, etc. also accept them.
 
895
# (The list follows the same order as the GNU Coding Standards.)
343
896
bindir='${exec_prefix}/bin'
344
897
sbindir='${exec_prefix}/sbin'
345
898
libexecdir='${exec_prefix}/libexec'
346
 
datadir='${prefix}/share'
 
899
datarootdir='${prefix}/share'
 
900
datadir='${datarootdir}'
347
901
sysconfdir='${prefix}/etc'
348
902
sharedstatedir='${prefix}/com'
349
903
localstatedir='${prefix}/var'
350
 
libdir='${exec_prefix}/lib'
351
904
includedir='${prefix}/include'
352
905
oldincludedir='/usr/include'
353
 
infodir='${prefix}/info'
354
 
mandir='${prefix}/man'
 
906
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
907
infodir='${datarootdir}/info'
 
908
htmldir='${docdir}'
 
909
dvidir='${docdir}'
 
910
pdfdir='${docdir}'
 
911
psdir='${docdir}'
 
912
libdir='${exec_prefix}/lib'
 
913
localedir='${datarootdir}/locale'
 
914
mandir='${datarootdir}/man'
355
915
 
356
916
ac_prev=
 
917
ac_dashdash=
357
918
for ac_option
358
919
do
359
920
  # If the previous option needs an argument, assign it.
360
921
  if test -n "$ac_prev"; then
361
 
    eval "$ac_prev=\$ac_option"
 
922
    eval $ac_prev=\$ac_option
362
923
    ac_prev=
363
924
    continue
364
925
  fi
365
926
 
366
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
927
  case $ac_option in
 
928
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
929
  *)    ac_optarg=yes ;;
 
930
  esac
367
931
 
368
932
  # Accept the important Cygnus configure options, so we can diagnose typos.
369
933
 
370
 
  case $ac_option in
 
934
  case $ac_dashdash$ac_option in
 
935
  --)
 
936
    ac_dashdash=yes ;;
371
937
 
372
938
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
373
939
    ac_prev=bindir ;;
389
955
  --config-cache | -C)
390
956
    cache_file=config.cache ;;
391
957
 
392
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
958
  -datadir | --datadir | --datadi | --datad)
393
959
    ac_prev=datadir ;;
394
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395
 
  | --da=*)
 
960
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
396
961
    datadir=$ac_optarg ;;
397
962
 
 
963
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
964
  | --dataroo | --dataro | --datar)
 
965
    ac_prev=datarootdir ;;
 
966
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
967
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
968
    datarootdir=$ac_optarg ;;
 
969
 
398
970
  -disable-* | --disable-*)
399
971
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400
972
    # Reject names that are not valid shell variable names.
401
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
973
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
402
974
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403
975
   { (exit 1); exit 1; }; }
404
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405
 
    eval "enable_$ac_feature=no" ;;
 
976
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
977
    eval enable_$ac_feature=no ;;
 
978
 
 
979
  -docdir | --docdir | --docdi | --doc | --do)
 
980
    ac_prev=docdir ;;
 
981
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
982
    docdir=$ac_optarg ;;
 
983
 
 
984
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
985
    ac_prev=dvidir ;;
 
986
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
987
    dvidir=$ac_optarg ;;
406
988
 
407
989
  -enable-* | --enable-*)
408
990
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409
991
    # Reject names that are not valid shell variable names.
410
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
992
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
411
993
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412
994
   { (exit 1); exit 1; }; }
413
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414
 
    case $ac_option in
415
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416
 
      *) ac_optarg=yes ;;
417
 
    esac
418
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
995
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
996
    eval enable_$ac_feature=\$ac_optarg ;;
419
997
 
420
998
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421
999
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
442
1020
  -host=* | --host=* | --hos=* | --ho=*)
443
1021
    host_alias=$ac_optarg ;;
444
1022
 
 
1023
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1024
    ac_prev=htmldir ;;
 
1025
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1026
  | --ht=*)
 
1027
    htmldir=$ac_optarg ;;
 
1028
 
445
1029
  -includedir | --includedir | --includedi | --included | --include \
446
1030
  | --includ | --inclu | --incl | --inc)
447
1031
    ac_prev=includedir ;;
466
1050
  | --libexe=* | --libex=* | --libe=*)
467
1051
    libexecdir=$ac_optarg ;;
468
1052
 
 
1053
  -localedir | --localedir | --localedi | --localed | --locale)
 
1054
    ac_prev=localedir ;;
 
1055
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1056
    localedir=$ac_optarg ;;
 
1057
 
469
1058
  -localstatedir | --localstatedir | --localstatedi | --localstated \
470
 
  | --localstate | --localstat | --localsta | --localst \
471
 
  | --locals | --local | --loca | --loc | --lo)
 
1059
  | --localstate | --localstat | --localsta | --localst | --locals)
472
1060
    ac_prev=localstatedir ;;
473
1061
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
1062
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
476
1063
    localstatedir=$ac_optarg ;;
477
1064
 
478
1065
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
537
1124
  | --progr-tra=* | --program-tr=* | --program-t=*)
538
1125
    program_transform_name=$ac_optarg ;;
539
1126
 
 
1127
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1128
    ac_prev=pdfdir ;;
 
1129
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1130
    pdfdir=$ac_optarg ;;
 
1131
 
 
1132
  -psdir | --psdir | --psdi | --psd | --ps)
 
1133
    ac_prev=psdir ;;
 
1134
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1135
    psdir=$ac_optarg ;;
 
1136
 
540
1137
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541
1138
  | -silent | --silent | --silen | --sile | --sil)
542
1139
    silent=yes ;;
589
1186
  -with-* | --with-*)
590
1187
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591
1188
    # Reject names that are not valid shell variable names.
592
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1189
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
593
1190
      { echo "$as_me: error: invalid package name: $ac_package" >&2
594
1191
   { (exit 1); exit 1; }; }
595
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
596
 
    case $ac_option in
597
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598
 
      *) ac_optarg=yes ;;
599
 
    esac
600
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1192
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1193
    eval with_$ac_package=\$ac_optarg ;;
601
1194
 
602
1195
  -without-* | --without-*)
603
1196
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604
1197
    # Reject names that are not valid shell variable names.
605
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1198
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
606
1199
      { echo "$as_me: error: invalid package name: $ac_package" >&2
607
1200
   { (exit 1); exit 1; }; }
608
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
609
 
    eval "with_$ac_package=no" ;;
 
1201
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1202
    eval with_$ac_package=no ;;
610
1203
 
611
1204
  --x)
612
1205
    # Obsolete; use --with-x.
637
1230
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638
1231
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639
1232
   { (exit 1); exit 1; }; }
640
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641
 
    eval "$ac_envvar='$ac_optarg'"
 
1233
    eval $ac_envvar=\$ac_optarg
642
1234
    export $ac_envvar ;;
643
1235
 
644
1236
  *)
658
1250
   { (exit 1); exit 1; }; }
659
1251
fi
660
1252
 
661
 
# Be sure to have absolute paths.
662
 
for ac_var in exec_prefix prefix
663
 
do
664
 
  eval ac_val=$`echo $ac_var`
665
 
  case $ac_val in
666
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668
 
   { (exit 1); exit 1; }; };;
669
 
  esac
670
 
done
671
 
 
672
 
# Be sure to have absolute paths.
673
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674
 
              localstatedir libdir includedir oldincludedir infodir mandir
675
 
do
676
 
  eval ac_val=$`echo $ac_var`
677
 
  case $ac_val in
678
 
    [\\/$]* | ?:[\\/]* ) ;;
679
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680
 
   { (exit 1); exit 1; }; };;
681
 
  esac
 
1253
# Be sure to have absolute directory names.
 
1254
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1255
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1256
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1257
                libdir localedir mandir
 
1258
do
 
1259
  eval ac_val=\$$ac_var
 
1260
  case $ac_val in
 
1261
    [\\/$]* | ?:[\\/]* )  continue;;
 
1262
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1263
  esac
 
1264
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1265
   { (exit 1); exit 1; }; }
682
1266
done
683
1267
 
684
1268
# There might be people who depend on the old broken behavior: `$host'
705
1289
test "$silent" = yes && exec 6>/dev/null
706
1290
 
707
1291
 
 
1292
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1293
ac_ls_di=`ls -di .` &&
 
1294
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1295
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1296
   { (exit 1); exit 1; }; }
 
1297
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1298
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1299
   { (exit 1); exit 1; }; }
 
1300
 
 
1301
 
708
1302
# Find the source files, if location was not specified.
709
1303
if test -z "$srcdir"; then
710
1304
  ac_srcdir_defaulted=yes
711
 
  # Try the directory containing this script, then its parent.
712
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
1305
  # Try the directory containing this script, then the parent directory.
 
1306
  ac_confdir=`$as_dirname -- "$0" ||
713
1307
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714
1308
         X"$0" : 'X\(//\)[^/]' \| \
715
1309
         X"$0" : 'X\(//\)$' \| \
716
 
         X"$0" : 'X\(/\)' \| \
717
 
         .     : '\(.\)' 2>/dev/null ||
 
1310
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
718
1311
echo X"$0" |
719
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721
 
          /^X\(\/\/\)$/{ s//\1/; q; }
722
 
          /^X\(\/\).*/{ s//\1/; q; }
723
 
          s/.*/./; q'`
 
1312
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1313
            s//\1/
 
1314
            q
 
1315
          }
 
1316
          /^X\(\/\/\)[^/].*/{
 
1317
            s//\1/
 
1318
            q
 
1319
          }
 
1320
          /^X\(\/\/\)$/{
 
1321
            s//\1/
 
1322
            q
 
1323
          }
 
1324
          /^X\(\/\).*/{
 
1325
            s//\1/
 
1326
            q
 
1327
          }
 
1328
          s/.*/./; q'`
724
1329
  srcdir=$ac_confdir
725
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1330
  if test ! -r "$srcdir/$ac_unique_file"; then
726
1331
    srcdir=..
727
1332
  fi
728
1333
else
729
1334
  ac_srcdir_defaulted=no
730
1335
fi
731
 
if test ! -r $srcdir/$ac_unique_file; then
732
 
  if test "$ac_srcdir_defaulted" = yes; then
733
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734
 
   { (exit 1); exit 1; }; }
735
 
  else
736
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737
 
   { (exit 1); exit 1; }; }
738
 
  fi
739
 
fi
740
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742
 
   { (exit 1); exit 1; }; }
743
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744
 
ac_env_build_alias_set=${build_alias+set}
745
 
ac_env_build_alias_value=$build_alias
746
 
ac_cv_env_build_alias_set=${build_alias+set}
747
 
ac_cv_env_build_alias_value=$build_alias
748
 
ac_env_host_alias_set=${host_alias+set}
749
 
ac_env_host_alias_value=$host_alias
750
 
ac_cv_env_host_alias_set=${host_alias+set}
751
 
ac_cv_env_host_alias_value=$host_alias
752
 
ac_env_target_alias_set=${target_alias+set}
753
 
ac_env_target_alias_value=$target_alias
754
 
ac_cv_env_target_alias_set=${target_alias+set}
755
 
ac_cv_env_target_alias_value=$target_alias
756
 
ac_env_CC_set=${CC+set}
757
 
ac_env_CC_value=$CC
758
 
ac_cv_env_CC_set=${CC+set}
759
 
ac_cv_env_CC_value=$CC
760
 
ac_env_CFLAGS_set=${CFLAGS+set}
761
 
ac_env_CFLAGS_value=$CFLAGS
762
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
763
 
ac_cv_env_CFLAGS_value=$CFLAGS
764
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
765
 
ac_env_LDFLAGS_value=$LDFLAGS
766
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
768
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769
 
ac_env_CPPFLAGS_value=$CPPFLAGS
770
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
 
ac_env_CPP_set=${CPP+set}
773
 
ac_env_CPP_value=$CPP
774
 
ac_cv_env_CPP_set=${CPP+set}
775
 
ac_cv_env_CPP_value=$CPP
 
1336
if test ! -r "$srcdir/$ac_unique_file"; then
 
1337
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1338
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1339
   { (exit 1); exit 1; }; }
 
1340
fi
 
1341
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1342
ac_abs_confdir=`(
 
1343
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1344
   { (exit 1); exit 1; }; }
 
1345
        pwd)`
 
1346
# When building in place, set srcdir=.
 
1347
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1348
  srcdir=.
 
1349
fi
 
1350
# Remove unnecessary trailing slashes from srcdir.
 
1351
# Double slashes in file names in object file debugging info
 
1352
# mess up M-x gdb in Emacs.
 
1353
case $srcdir in
 
1354
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1355
esac
 
1356
for ac_var in $ac_precious_vars; do
 
1357
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1358
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1359
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1360
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1361
done
776
1362
 
777
1363
#
778
1364
# Report the --help message.
781
1367
  # Omit some internal or obsolete options to make the list less imposing.
782
1368
  # This message is too long to be a string in the A/UX 3.1 sh.
783
1369
  cat <<_ACEOF
784
 
\`configure' configures gnupg 1.9.20 to adapt to many kinds of systems.
 
1370
\`configure' configures gnupg 2.0.9 to adapt to many kinds of systems.
785
1371
 
786
1372
Usage: $0 [OPTION]... [VAR=VALUE]...
787
1373
 
801
1387
  -n, --no-create         do not create output files
802
1388
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
1389
 
804
 
_ACEOF
805
 
 
806
 
  cat <<_ACEOF
807
1390
Installation directories:
808
1391
  --prefix=PREFIX         install architecture-independent files in PREFIX
809
1392
                          [$ac_default_prefix]
821
1404
  --bindir=DIR           user executables [EPREFIX/bin]
822
1405
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
823
1406
  --libexecdir=DIR       program executables [EPREFIX/libexec]
824
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825
1407
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826
1408
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827
1409
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828
1410
  --libdir=DIR           object code libraries [EPREFIX/lib]
829
1411
  --includedir=DIR       C header files [PREFIX/include]
830
1412
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831
 
  --infodir=DIR          info documentation [PREFIX/info]
832
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1413
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1414
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1415
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1416
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1417
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1418
  --docdir=DIR           documentation root [DATAROOTDIR/doc/gnupg]
 
1419
  --htmldir=DIR          html documentation [DOCDIR]
 
1420
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1421
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1422
  --psdir=DIR            ps documentation [DOCDIR]
833
1423
_ACEOF
834
1424
 
835
1425
  cat <<\_ACEOF
842
1432
System types:
843
1433
  --build=BUILD     configure for building on BUILD [guessed]
844
1434
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
845
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
846
1435
_ACEOF
847
1436
fi
848
1437
 
849
1438
if test -n "$ac_init_help"; then
850
1439
  case $ac_init_help in
851
 
     short | recursive ) echo "Configuration of gnupg 1.9.20:";;
 
1440
     short | recursive ) echo "Configuration of gnupg 2.0.9:";;
852
1441
   esac
853
1442
  cat <<\_ACEOF
854
1443
 
855
1444
Optional Features:
856
1445
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857
1446
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858
 
  --enable-gpg            build the gpg program
 
1447
  --disable-gpg           do not build the gpg program
859
1448
  --disable-gpgsm         do not build the gpgsm program
860
1449
  --disable-agent         do not build the agent program
861
1450
  --disable-scdaemon      do not build the scdaemon program
 
1451
  --disable-tools         do not build the tools program
 
1452
  --disable-doc           do not build the doc program
862
1453
  --enable-symcryptrun    build the symcryptrun program
863
1454
  --enable-agent-only     build only the gpg-agent
 
1455
  --enable-selinux-support
 
1456
                          enable SELinux support
 
1457
  --disable-bzip2         disable the BZIP2 compression algorithm
 
1458
  --enable-camellia       enable the CAMELLIA cipher for gpg
864
1459
  --disable-exec          disable all external program execution
865
1460
  --disable-photo-viewers disable photo ID viewers
866
1461
  --disable-keyserver-helpers  disable all external keyserver support
867
 
  --disable-ldap          disable LDAP keyserver interface
868
 
  --disable-hkp           disable HKP keyserver interface
869
 
  --disable-mailto        disable email keyserver interface
870
 
  --disable-keyserver-path disable the exec-path option for keyserver helpers
 
1462
  --disable-ldap          disable LDAP keyserver interface only
 
1463
  --disable-hkp           disable HKP keyserver interface only
 
1464
  --disable-finger        disable finger key fetching interface only
 
1465
  --disable-generic       disable generic object key fetching interface only
 
1466
  --enable-mailto         enable email keyserver interface only
 
1467
  --disable-keyserver-path
 
1468
                          disable the exec-path option for keyserver helpers
 
1469
  --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
871
1470
  --enable-maintainer-mode  enable make rules and dependencies not useful
872
1471
                          (and sometimes confusing) to the casual installer
873
1472
  --disable-dependency-tracking  speeds up one-time build
874
1473
  --enable-dependency-tracking   do not reject slow dependency extractors
875
1474
  --disable-largefile     omit support for large files
876
 
  --disable-dns-srv       disable the use of DNS SRV in HKP
 
1475
  --disable-dns-srv       disable the use of DNS SRV in HKP and HTTP
 
1476
  --disable-dns-pka       disable the use of PKA records in DNS
 
1477
  --disable-dns-cert      disable the use of CERT records in DNS
 
1478
  --disable-rpath         do not hardcode runtime library paths
877
1479
  --disable-nls           do not use Native Language Support
878
 
  --disable-rpath         do not hardcode runtime library paths
879
 
  --disable-regex         do not handle regular expressions in trust sigs
 
1480
  --disable-endian-check  disable the endian check and trust the OS provided
 
1481
                          macros
 
1482
  --disable-regex         do not handle regular expressions in trust
 
1483
                          signatures
 
1484
  --disable-optimization  disable compiler optimization
880
1485
 
881
1486
Optional Packages:
882
1487
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
888
1493
  --with-protect-tool-pgm=PATH  Use PATH as the default for the protect-tool)
889
1494
  --with-photo-viewer=FIXED_VIEWER  set a fixed photo ID viewer
890
1495
  --with-capabilities     use linux capabilities default=no
 
1496
  --with-tar=PATH         look for a tar program in PATH
891
1497
  --with-gpg-error-prefix=PFX
892
1498
                          prefix where GPG Error is installed (optional)
893
1499
  --with-libgcrypt-prefix=PFX
896
1502
                          prefix where LIBASSUAN is installed (optional)
897
1503
  --with-ksba-prefix=PFX  prefix where KSBA is installed (optional)
898
1504
  --with-pth-prefix=PFX   prefix where GNU Pth is installed (optional)
 
1505
  --with-ldap=DIR         look for the LDAP library in DIR
 
1506
  --with-libcurl=DIR      look for the curl library in DIR
899
1507
  --with-mailprog=NAME    use "NAME -t" for mail transport
900
1508
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
901
1509
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
902
1510
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
903
 
  --with-included-gettext use the GNU gettext library included here
904
1511
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
905
1512
  --without-libintl-prefix     don't search for libintl in includedir and libdir
906
 
  --with-included-regex   use the included GNU regex library
 
1513
  --with-regex=DIR        look for regex in DIR
907
1514
  --with-zlib=DIR         use libz in DIR
908
 
  --with-pkits-tests      run the PKITS based tests
 
1515
  --with-bzip2=DIR        look for bzip2 in DIR
 
1516
  --with-readline=DIR     look for the readline library in DIR
909
1517
 
910
1518
Some influential environment variables:
911
1519
  CC          C compiler command
912
1520
  CFLAGS      C compiler flags
913
1521
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
914
1522
              nonstandard directory <lib dir>
915
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
916
 
              headers in a nonstandard directory <include dir>
 
1523
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1524
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1525
              you have headers in a nonstandard directory <include dir>
917
1526
  CPP         C preprocessor
 
1527
  CC_FOR_BUILD
 
1528
              build system C compiler
918
1529
 
919
1530
Use these variables to override the choices made by `configure' or to help
920
1531
it to find libraries and programs with nonstandard names/locations.
921
1532
 
922
 
Report bugs to <gnupg-devel@gnupg.org>.
 
1533
Report bugs to <bug-gnupg@gnupg.org>.
923
1534
_ACEOF
 
1535
ac_status=$?
924
1536
fi
925
1537
 
926
1538
if test "$ac_init_help" = "recursive"; then
927
1539
  # If there are subdirs, report their specific --help.
928
 
  ac_popdir=`pwd`
929
1540
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
930
 
    test -d $ac_dir || continue
 
1541
    test -d "$ac_dir" || continue
931
1542
    ac_builddir=.
932
1543
 
933
 
if test "$ac_dir" != .; then
 
1544
case "$ac_dir" in
 
1545
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1546
*)
934
1547
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
935
 
  # A "../" for each directory in $ac_dir_suffix.
936
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
937
 
else
938
 
  ac_dir_suffix= ac_top_builddir=
939
 
fi
 
1548
  # A ".." for each directory in $ac_dir_suffix.
 
1549
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1550
  case $ac_top_builddir_sub in
 
1551
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1552
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1553
  esac ;;
 
1554
esac
 
1555
ac_abs_top_builddir=$ac_pwd
 
1556
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1557
# for backward compatibility:
 
1558
ac_top_builddir=$ac_top_build_prefix
940
1559
 
941
1560
case $srcdir in
942
 
  .)  # No --srcdir option.  We are building in place.
 
1561
  .)  # We are building in place.
943
1562
    ac_srcdir=.
944
 
    if test -z "$ac_top_builddir"; then
945
 
       ac_top_srcdir=.
946
 
    else
947
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
948
 
    fi ;;
949
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1563
    ac_top_srcdir=$ac_top_builddir_sub
 
1564
    ac_abs_top_srcdir=$ac_pwd ;;
 
1565
  [\\/]* | ?:[\\/]* )  # Absolute name.
950
1566
    ac_srcdir=$srcdir$ac_dir_suffix;
951
 
    ac_top_srcdir=$srcdir ;;
952
 
  *) # Relative path.
953
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
954
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
955
 
esac
956
 
 
957
 
# Do not use `cd foo && pwd` to compute absolute paths, because
958
 
# the directories may not exist.
959
 
case `pwd` in
960
 
.) ac_abs_builddir="$ac_dir";;
961
 
*)
962
 
  case "$ac_dir" in
963
 
  .) ac_abs_builddir=`pwd`;;
964
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
965
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
966
 
  esac;;
967
 
esac
968
 
case $ac_abs_builddir in
969
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
970
 
*)
971
 
  case ${ac_top_builddir}. in
972
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
973
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
974
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
975
 
  esac;;
976
 
esac
977
 
case $ac_abs_builddir in
978
 
.) ac_abs_srcdir=$ac_srcdir;;
979
 
*)
980
 
  case $ac_srcdir in
981
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
982
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
983
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
984
 
  esac;;
985
 
esac
986
 
case $ac_abs_builddir in
987
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
988
 
*)
989
 
  case $ac_top_srcdir in
990
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
991
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
992
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
993
 
  esac;;
994
 
esac
995
 
 
996
 
    cd $ac_dir
997
 
    # Check for guested configure; otherwise get Cygnus style configure.
998
 
    if test -f $ac_srcdir/configure.gnu; then
999
 
      echo
1000
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1001
 
    elif test -f $ac_srcdir/configure; then
1002
 
      echo
1003
 
      $SHELL $ac_srcdir/configure  --help=recursive
1004
 
    elif test -f $ac_srcdir/configure.ac ||
1005
 
           test -f $ac_srcdir/configure.in; then
1006
 
      echo
1007
 
      $ac_configure --help
 
1567
    ac_top_srcdir=$srcdir
 
1568
    ac_abs_top_srcdir=$srcdir ;;
 
1569
  *) # Relative name.
 
1570
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1571
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1572
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1573
esac
 
1574
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1575
 
 
1576
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1577
    # Check for guested configure.
 
1578
    if test -f "$ac_srcdir/configure.gnu"; then
 
1579
      echo &&
 
1580
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1581
    elif test -f "$ac_srcdir/configure"; then
 
1582
      echo &&
 
1583
      $SHELL "$ac_srcdir/configure" --help=recursive
1008
1584
    else
1009
1585
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010
 
    fi
1011
 
    cd "$ac_popdir"
 
1586
    fi || ac_status=$?
 
1587
    cd "$ac_pwd" || { ac_status=$?; break; }
1012
1588
  done
1013
1589
fi
1014
1590
 
1015
 
test -n "$ac_init_help" && exit 0
 
1591
test -n "$ac_init_help" && exit $ac_status
1016
1592
if $ac_init_version; then
1017
1593
  cat <<\_ACEOF
1018
 
gnupg configure 1.9.20
1019
 
generated by GNU Autoconf 2.59
 
1594
gnupg configure 2.0.9
 
1595
generated by GNU Autoconf 2.61
1020
1596
 
1021
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1597
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1598
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1022
1599
This configure script is free software; the Free Software Foundation
1023
1600
gives unlimited permission to copy, distribute and modify it.
1024
1601
_ACEOF
1025
 
  exit 0
 
1602
  exit
1026
1603
fi
1027
 
exec 5>config.log
1028
 
cat >&5 <<_ACEOF
 
1604
cat >config.log <<_ACEOF
1029
1605
This file contains any messages produced by compilers while
1030
1606
running configure, to aid debugging if configure makes a mistake.
1031
1607
 
1032
 
It was created by gnupg $as_me 1.9.20, which was
1033
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1608
It was created by gnupg $as_me 2.0.9, which was
 
1609
generated by GNU Autoconf 2.61.  Invocation command line was
1034
1610
 
1035
1611
  $ $0 $@
1036
1612
 
1037
1613
_ACEOF
 
1614
exec 5>>config.log
1038
1615
{
1039
1616
cat <<_ASUNAME
1040
1617
## --------- ##
1053
1630
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1054
1631
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1055
1632
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1056
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1633
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1057
1634
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1058
1635
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1059
1636
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1067
1644
  test -z "$as_dir" && as_dir=.
1068
1645
  echo "PATH: $as_dir"
1069
1646
done
 
1647
IFS=$as_save_IFS
1070
1648
 
1071
1649
} >&5
1072
1650
 
1088
1666
ac_configure_args=
1089
1667
ac_configure_args0=
1090
1668
ac_configure_args1=
1091
 
ac_sep=
1092
1669
ac_must_keep_next=false
1093
1670
for ac_pass in 1 2
1094
1671
do
1099
1676
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100
1677
    | -silent | --silent | --silen | --sile | --sil)
1101
1678
      continue ;;
1102
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1679
    *\'*)
1103
1680
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1104
1681
    esac
1105
1682
    case $ac_pass in
1121
1698
          -* ) ac_must_keep_next=true ;;
1122
1699
        esac
1123
1700
      fi
1124
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1125
 
      # Get rid of the leading space.
1126
 
      ac_sep=" "
 
1701
      ac_configure_args="$ac_configure_args '$ac_arg'"
1127
1702
      ;;
1128
1703
    esac
1129
1704
  done
1134
1709
# When interrupted or exit'd, cleanup temporary files, and complete
1135
1710
# config.log.  We remove comments because anyway the quotes in there
1136
1711
# would cause problems or look ugly.
1137
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1138
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1712
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1713
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1139
1714
trap 'exit_status=$?
1140
1715
  # Save into config.log some information that might help in debugging.
1141
1716
  {
1148
1723
_ASBOX
1149
1724
    echo
1150
1725
    # The following way of writing the cache mishandles newlines in values,
1151
 
{
 
1726
(
 
1727
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1728
    eval ac_val=\$$ac_var
 
1729
    case $ac_val in #(
 
1730
    *${as_nl}*)
 
1731
      case $ac_var in #(
 
1732
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1733
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1734
      esac
 
1735
      case $ac_var in #(
 
1736
      _ | IFS | as_nl) ;; #(
 
1737
      *) $as_unset $ac_var ;;
 
1738
      esac ;;
 
1739
    esac
 
1740
  done
1152
1741
  (set) 2>&1 |
1153
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1154
 
    *ac_space=\ *)
 
1742
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1743
    *${as_nl}ac_space=\ *)
1155
1744
      sed -n \
1156
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1157
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1158
 
      ;;
 
1745
        "s/'\''/'\''\\\\'\'''\''/g;
 
1746
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1747
      ;; #(
1159
1748
    *)
1160
 
      sed -n \
1161
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1749
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1162
1750
      ;;
1163
 
    esac;
1164
 
}
 
1751
    esac |
 
1752
    sort
 
1753
)
1165
1754
    echo
1166
1755
 
1167
1756
    cat <<\_ASBOX
1172
1761
    echo
1173
1762
    for ac_var in $ac_subst_vars
1174
1763
    do
1175
 
      eval ac_val=$`echo $ac_var`
1176
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1764
      eval ac_val=\$$ac_var
 
1765
      case $ac_val in
 
1766
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1767
      esac
 
1768
      echo "$ac_var='\''$ac_val'\''"
1177
1769
    done | sort
1178
1770
    echo
1179
1771
 
1180
1772
    if test -n "$ac_subst_files"; then
1181
1773
      cat <<\_ASBOX
1182
 
## ------------- ##
1183
 
## Output files. ##
1184
 
## ------------- ##
 
1774
## ------------------- ##
 
1775
## File substitutions. ##
 
1776
## ------------------- ##
1185
1777
_ASBOX
1186
1778
      echo
1187
1779
      for ac_var in $ac_subst_files
1188
1780
      do
1189
 
        eval ac_val=$`echo $ac_var`
1190
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1781
        eval ac_val=\$$ac_var
 
1782
        case $ac_val in
 
1783
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1784
        esac
 
1785
        echo "$ac_var='\''$ac_val'\''"
1191
1786
      done | sort
1192
1787
      echo
1193
1788
    fi
1199
1794
## ----------- ##
1200
1795
_ASBOX
1201
1796
      echo
1202
 
      sed "/^$/d" confdefs.h | sort
 
1797
      cat confdefs.h
1203
1798
      echo
1204
1799
    fi
1205
1800
    test "$ac_signal" != 0 &&
1206
1801
      echo "$as_me: caught signal $ac_signal"
1207
1802
    echo "$as_me: exit $exit_status"
1208
1803
  } >&5
1209
 
  rm -f core *.core &&
1210
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1804
  rm -f core *.core core.conftest.* &&
 
1805
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1211
1806
    exit $exit_status
1212
 
     ' 0
 
1807
' 0
1213
1808
for ac_signal in 1 2 13 15; do
1214
1809
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1215
1810
done
1216
1811
ac_signal=0
1217
1812
 
1218
1813
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1219
 
rm -rf conftest* confdefs.h
1220
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1221
 
echo >confdefs.h
 
1814
rm -f -r conftest* confdefs.h
1222
1815
 
1223
1816
# Predefined preprocessor variables.
1224
1817
 
1249
1842
 
1250
1843
# Let the site file select an alternate cache file if it wants to.
1251
1844
# Prefer explicitly selected file to automatically selected ones.
1252
 
if test -z "$CONFIG_SITE"; then
1253
 
  if test "x$prefix" != xNONE; then
1254
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1255
 
  else
1256
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1257
 
  fi
 
1845
if test -n "$CONFIG_SITE"; then
 
1846
  set x "$CONFIG_SITE"
 
1847
elif test "x$prefix" != xNONE; then
 
1848
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1849
else
 
1850
  set x "$ac_default_prefix/share/config.site" \
 
1851
        "$ac_default_prefix/etc/config.site"
1258
1852
fi
1259
 
for ac_site_file in $CONFIG_SITE; do
 
1853
shift
 
1854
for ac_site_file
 
1855
do
1260
1856
  if test -r "$ac_site_file"; then
1261
1857
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1262
1858
echo "$as_me: loading site script $ac_site_file" >&6;}
1272
1868
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1273
1869
echo "$as_me: loading cache $cache_file" >&6;}
1274
1870
    case $cache_file in
1275
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1276
 
      *)                      . ./$cache_file;;
 
1871
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1872
      *)                      . "./$cache_file";;
1277
1873
    esac
1278
1874
  fi
1279
1875
else
1282
1878
  >$cache_file
1283
1879
fi
1284
1880
 
 
1881
gt_needs="$gt_needs need-ngettext"
 
1882
ac_header_list="$ac_header_list sys/time.h"
 
1883
ac_header_list="$ac_header_list unistd.h"
 
1884
ac_header_list="$ac_header_list wchar.h"
 
1885
ac_header_list="$ac_header_list stdint.h"
1285
1886
# Check that the precious variables saved in the cache have kept the same
1286
1887
# value.
1287
1888
ac_cache_corrupted=false
1288
 
for ac_var in `(set) 2>&1 |
1289
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1889
for ac_var in $ac_precious_vars; do
1290
1890
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1291
1891
  eval ac_new_set=\$ac_env_${ac_var}_set
1292
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1293
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1892
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1893
  eval ac_new_val=\$ac_env_${ac_var}_value
1294
1894
  case $ac_old_set,$ac_new_set in
1295
1895
    set,)
1296
1896
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1315
1915
  # Pass precious variables to config.status.
1316
1916
  if test "$ac_new_set" = set; then
1317
1917
    case $ac_new_val in
1318
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1918
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1320
1919
    *) ac_arg=$ac_var=$ac_new_val ;;
1321
1920
    esac
1322
1921
    case " $ac_configure_args " in
1333
1932
   { (exit 1); exit 1; }; }
1334
1933
fi
1335
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
 
1946
 
 
1947
 
 
1948
 
 
1949
 
 
1950
 
 
1951
 
 
1952
 
 
1953
 
 
1954
 
 
1955
 
 
1956
 
 
1957
 
 
1958
 
1336
1959
ac_ext=c
1337
1960
ac_cpp='$CPP $CPPFLAGS'
1338
1961
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340
1963
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341
1964
 
1342
1965
 
1343
 
gl_header_list="$gl_header_list sys/time.h"
1344
 
gl_header_list="$gl_header_list unistd.h"
1345
 
 
1346
 
 
1347
 
 
1348
 
 
1349
 
 
1350
 
 
1351
 
 
1352
 
 
1353
 
 
1354
 
 
1355
 
 
1356
 
 
1357
 
 
1358
 
 
1359
 
 
1360
 
 
1361
 
 
1362
 
 
1363
 
 
1364
 
 
1365
 
 
1366
 
 
1367
 
 
1368
 
 
1369
 
 
1370
1966
# Set development_version to yes if the minor number is odd or you
1371
1967
# feel that the default check for a development version is not
1372
1968
# sufficient.
1373
 
development_version=yes
1374
 
NEED_GPG_ERROR_VERSION=1.0
 
1969
development_version=no
 
1970
 
 
1971
NEED_GPG_ERROR_VERSION=1.4
1375
1972
 
1376
1973
NEED_LIBGCRYPT_API=1
1377
 
NEED_LIBGCRYPT_VERSION=1.1.94
1378
 
 
1379
 
NEED_LIBASSUAN_VERSION=0.6.10
1380
 
 
1381
 
NEED_KSBA_VERSION=0.9.13
 
1974
NEED_LIBGCRYPT_VERSION=1.2.2
 
1975
 
 
1976
NEED_LIBASSUAN_API=1
 
1977
NEED_LIBASSUAN_VERSION=1.0.4
 
1978
 
 
1979
NEED_KSBA_API=1
 
1980
NEED_KSBA_VERSION=1.0.2
1382
1981
 
1383
1982
 
1384
1983
PACKAGE=$PACKAGE_NAME
1386
1985
VERSION=$PACKAGE_VERSION
1387
1986
 
1388
1987
ac_aux_dir=
1389
 
for ac_dir in scripts $srcdir/scripts; do
1390
 
  if test -f $ac_dir/install-sh; then
 
1988
for ac_dir in scripts "$srcdir"/scripts; do
 
1989
  if test -f "$ac_dir/install-sh"; then
1391
1990
    ac_aux_dir=$ac_dir
1392
1991
    ac_install_sh="$ac_aux_dir/install-sh -c"
1393
1992
    break
1394
 
  elif test -f $ac_dir/install.sh; then
 
1993
  elif test -f "$ac_dir/install.sh"; then
1395
1994
    ac_aux_dir=$ac_dir
1396
1995
    ac_install_sh="$ac_aux_dir/install.sh -c"
1397
1996
    break
1398
 
  elif test -f $ac_dir/shtool; then
 
1997
  elif test -f "$ac_dir/shtool"; then
1399
1998
    ac_aux_dir=$ac_dir
1400
1999
    ac_install_sh="$ac_aux_dir/shtool install -c"
1401
2000
    break
1402
2001
  fi
1403
2002
done
1404
2003
if test -z "$ac_aux_dir"; then
1405
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1406
 
echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1407
 
   { (exit 1); exit 1; }; }
1408
 
fi
1409
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412
 
 
1413
 
 
1414
 
          ac_config_headers="$ac_config_headers config.h"
1415
 
 
1416
 
# Make sure we can run config.sub.
1417
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1418
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1419
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1420
 
   { (exit 1); exit 1; }; }
1421
 
 
1422
 
echo "$as_me:$LINENO: checking build system type" >&5
1423
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1424
 
if test "${ac_cv_build+set}" = set; then
1425
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1426
 
else
1427
 
  ac_cv_build_alias=$build_alias
1428
 
test -z "$ac_cv_build_alias" &&
1429
 
  ac_cv_build_alias=`$ac_config_guess`
1430
 
test -z "$ac_cv_build_alias" &&
1431
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1432
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1433
 
   { (exit 1); exit 1; }; }
1434
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1435
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1436
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1437
 
   { (exit 1); exit 1; }; }
1438
 
 
1439
 
fi
1440
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1441
 
echo "${ECHO_T}$ac_cv_build" >&6
1442
 
build=$ac_cv_build
1443
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
 
 
1447
 
 
1448
 
echo "$as_me:$LINENO: checking host system type" >&5
1449
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1450
 
if test "${ac_cv_host+set}" = set; then
1451
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1452
 
else
1453
 
  ac_cv_host_alias=$host_alias
1454
 
test -z "$ac_cv_host_alias" &&
1455
 
  ac_cv_host_alias=$ac_cv_build_alias
1456
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1457
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1458
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1459
 
   { (exit 1); exit 1; }; }
1460
 
 
1461
 
fi
1462
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1463
 
echo "${ECHO_T}$ac_cv_host" >&6
1464
 
host=$ac_cv_host
1465
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1466
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1467
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1468
 
 
1469
 
 
1470
 
echo "$as_me:$LINENO: checking target system type" >&5
1471
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1472
 
if test "${ac_cv_target+set}" = set; then
1473
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1474
 
else
1475
 
  ac_cv_target_alias=$target_alias
1476
 
test "x$ac_cv_target_alias" = "x" &&
1477
 
  ac_cv_target_alias=$ac_cv_host_alias
1478
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1479
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1480
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1481
 
   { (exit 1); exit 1; }; }
1482
 
 
1483
 
fi
1484
 
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1485
 
echo "${ECHO_T}$ac_cv_target" >&6
1486
 
target=$ac_cv_target
1487
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490
 
 
1491
 
 
1492
 
# The aliases save the names the user supplied, while $host etc.
1493
 
# will get canonicalized.
1494
 
test -n "$target_alias" &&
1495
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1496
 
    NONENONEs,x,x, &&
1497
 
  program_prefix=${target_alias}-
1498
 
am__api_version="1.9"
 
2004
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
 
2005
echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
 
2006
   { (exit 1); exit 1; }; }
 
2007
fi
 
2008
 
 
2009
# These three variables are undocumented and unsupported,
 
2010
# and are intended to be withdrawn in a future Autoconf release.
 
2011
# They can cause serious problems if a builder's source tree is in a directory
 
2012
# whose full name contains unusual characters.
 
2013
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2014
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2015
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2016
 
 
2017
 
 
2018
 
 
2019
ac_config_headers="$ac_config_headers config.h"
 
2020
 
 
2021
am__api_version='1.10'
 
2022
 
1499
2023
# Find a good install program.  We prefer a C program (faster),
1500
2024
# so one script is as good as another.  But avoid the broken or
1501
2025
# incompatible versions:
1509
2033
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1510
2034
# OS/2's system install, which has a completely different semantic
1511
2035
# ./install, which can be erroneously created by make from ./install.sh.
1512
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1513
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2036
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2037
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1514
2038
if test -z "$INSTALL"; then
1515
2039
if test "${ac_cv_path_install+set}" = set; then
1516
2040
  echo $ECHO_N "(cached) $ECHO_C" >&6
1532
2056
    # by default.
1533
2057
    for ac_prog in ginstall scoinst install; do
1534
2058
      for ac_exec_ext in '' $ac_executable_extensions; do
1535
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2059
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1536
2060
          if test $ac_prog = install &&
1537
2061
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1538
2062
            # AIX install.  It has an incompatible calling convention.
1551
2075
    ;;
1552
2076
esac
1553
2077
done
 
2078
IFS=$as_save_IFS
1554
2079
 
1555
2080
 
1556
2081
fi
1557
2082
  if test "${ac_cv_path_install+set}" = set; then
1558
2083
    INSTALL=$ac_cv_path_install
1559
2084
  else
1560
 
    # As a last resort, use the slow shell script.  We don't cache a
1561
 
    # path for INSTALL within a source directory, because that will
 
2085
    # As a last resort, use the slow shell script.  Don't cache a
 
2086
    # value for INSTALL within a source directory, because that will
1562
2087
    # break other packages using the cache if that directory is
1563
 
    # removed, or if the path is relative.
 
2088
    # removed, or if the value is a relative name.
1564
2089
    INSTALL=$ac_install_sh
1565
2090
  fi
1566
2091
fi
1567
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1568
 
echo "${ECHO_T}$INSTALL" >&6
 
2092
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2093
echo "${ECHO_T}$INSTALL" >&6; }
1569
2094
 
1570
2095
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1571
2096
# It thinks the first close brace ends the variable substitution.
1575
2100
 
1576
2101
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1577
2102
 
1578
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1579
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2103
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2104
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1580
2105
# Just in case
1581
2106
sleep 1
1582
2107
echo timestamp > conftest.file
1618
2143
Check your system clock" >&2;}
1619
2144
   { (exit 1); exit 1; }; }
1620
2145
fi
1621
 
echo "$as_me:$LINENO: result: yes" >&5
1622
 
echo "${ECHO_T}yes" >&6
 
2146
{ echo "$as_me:$LINENO: result: yes" >&5
 
2147
echo "${ECHO_T}yes" >&6; }
1623
2148
test "$program_prefix" != NONE &&
1624
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2149
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1625
2150
# Use a double $ so make ignores it.
1626
2151
test "$program_suffix" != NONE &&
1627
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
2152
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1628
2153
# Double any \ or $.  echo might interpret backslashes.
1629
2154
# By default was `s,x,x', remove it if useless.
1630
2155
cat <<\_ACEOF >conftest.sed
1631
2156
s/[\\$]/&&/g;s/;s,x,x,$//
1632
2157
_ACEOF
1633
2158
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1634
 
rm conftest.sed
 
2159
rm -f conftest.sed
1635
2160
 
1636
2161
# expand $ac_aux_dir to an absolute path
1637
2162
am_aux_dir=`cd $ac_aux_dir && pwd`
1646
2171
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1647
2172
fi
1648
2173
 
1649
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1650
 
  # We used to keeping the `.' as first argument, in order to
1651
 
  # allow $(mkdir_p) to be used without argument.  As in
1652
 
  #   $(mkdir_p) $(somedir)
1653
 
  # where $(somedir) is conditionally defined.  However this is wrong
1654
 
  # for two reasons:
1655
 
  #  1. if the package is installed by a user who cannot write `.'
1656
 
  #     make install will fail,
1657
 
  #  2. the above comment should most certainly read
1658
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1659
 
  #     so it does not work when $(somedir) is undefined and
1660
 
  #     $(DESTDIR) is not.
1661
 
  #  To support the latter case, we have to write
1662
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1663
 
  #  so the `.' trick is pointless.
1664
 
  mkdir_p='mkdir -p --'
 
2174
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2175
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2176
if test -z "$MKDIR_P"; then
 
2177
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2178
  echo $ECHO_N "(cached) $ECHO_C" >&6
1665
2179
else
1666
 
  # On NextStep and OpenStep, the `mkdir' command does not
1667
 
  # recognize any option.  It will interpret all options as
1668
 
  # directories to create, and then abort because `.' already
1669
 
  # exists.
1670
 
  for d in ./-p ./--version;
1671
 
  do
1672
 
    test -d $d && rmdir $d
1673
 
  done
1674
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1675
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1676
 
    mkdir_p='$(mkinstalldirs)'
 
2180
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2181
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2182
do
 
2183
  IFS=$as_save_IFS
 
2184
  test -z "$as_dir" && as_dir=.
 
2185
  for ac_prog in mkdir gmkdir; do
 
2186
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2187
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2188
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2189
             'mkdir (GNU coreutils) '* | \
 
2190
             'mkdir (coreutils) '* | \
 
2191
             'mkdir (fileutils) '4.1*)
 
2192
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2193
               break 3;;
 
2194
           esac
 
2195
         done
 
2196
       done
 
2197
done
 
2198
IFS=$as_save_IFS
 
2199
 
 
2200
fi
 
2201
 
 
2202
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2203
    MKDIR_P="$ac_cv_path_mkdir -p"
1677
2204
  else
1678
 
    mkdir_p='$(install_sh) -d'
 
2205
    # As a last resort, use the slow shell script.  Don't cache a
 
2206
    # value for MKDIR_P within a source directory, because that will
 
2207
    # break other packages using the cache if that directory is
 
2208
    # removed, or if the value is a relative name.
 
2209
    test -d ./--version && rmdir ./--version
 
2210
    MKDIR_P="$ac_install_sh -d"
1679
2211
  fi
1680
2212
fi
 
2213
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2214
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2215
 
 
2216
mkdir_p="$MKDIR_P"
 
2217
case $mkdir_p in
 
2218
  [\\/$]* | ?:[\\/]*) ;;
 
2219
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2220
esac
1681
2221
 
1682
2222
for ac_prog in gawk mawk nawk awk
1683
2223
do
1684
2224
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1685
2225
set dummy $ac_prog; ac_word=$2
1686
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1687
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2226
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1688
2228
if test "${ac_cv_prog_AWK+set}" = set; then
1689
2229
  echo $ECHO_N "(cached) $ECHO_C" >&6
1690
2230
else
1697
2237
  IFS=$as_save_IFS
1698
2238
  test -z "$as_dir" && as_dir=.
1699
2239
  for ac_exec_ext in '' $ac_executable_extensions; do
1700
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2240
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1701
2241
    ac_cv_prog_AWK="$ac_prog"
1702
2242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703
2243
    break 2
1704
2244
  fi
1705
2245
done
1706
2246
done
 
2247
IFS=$as_save_IFS
1707
2248
 
1708
2249
fi
1709
2250
fi
1710
2251
AWK=$ac_cv_prog_AWK
1711
2252
if test -n "$AWK"; then
1712
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1713
 
echo "${ECHO_T}$AWK" >&6
 
2253
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2254
echo "${ECHO_T}$AWK" >&6; }
1714
2255
else
1715
 
  echo "$as_me:$LINENO: result: no" >&5
1716
 
echo "${ECHO_T}no" >&6
 
2256
  { echo "$as_me:$LINENO: result: no" >&5
 
2257
echo "${ECHO_T}no" >&6; }
1717
2258
fi
1718
2259
 
 
2260
 
1719
2261
  test -n "$AWK" && break
1720
2262
done
1721
2263
 
1722
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1723
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1724
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1725
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2264
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2265
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2266
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2267
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1726
2268
  echo $ECHO_N "(cached) $ECHO_C" >&6
1727
2269
else
1728
2270
  cat >conftest.make <<\_ACEOF
 
2271
SHELL = /bin/sh
1729
2272
all:
1730
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2273
        @echo '@@@%%%=$(MAKE)=@@@%%%'
1731
2274
_ACEOF
1732
2275
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1733
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1734
 
if test -n "$ac_maketemp"; then
1735
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1736
 
else
1737
 
  eval ac_cv_prog_make_${ac_make}_set=no
1738
 
fi
 
2276
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2277
  *@@@%%%=?*=@@@%%%*)
 
2278
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2279
  *)
 
2280
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2281
esac
1739
2282
rm -f conftest.make
1740
2283
fi
1741
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1742
 
  echo "$as_me:$LINENO: result: yes" >&5
1743
 
echo "${ECHO_T}yes" >&6
 
2284
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2285
  { echo "$as_me:$LINENO: result: yes" >&5
 
2286
echo "${ECHO_T}yes" >&6; }
1744
2287
  SET_MAKE=
1745
2288
else
1746
 
  echo "$as_me:$LINENO: result: no" >&5
1747
 
echo "${ECHO_T}no" >&6
 
2289
  { echo "$as_me:$LINENO: result: no" >&5
 
2290
echo "${ECHO_T}no" >&6; }
1748
2291
  SET_MAKE="MAKE=${MAKE-make}"
1749
2292
fi
1750
2293
 
1757
2300
fi
1758
2301
rmdir .tst 2>/dev/null
1759
2302
 
1760
 
# test to see if srcdir already configured
1761
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1762
 
   test -f $srcdir/config.status; then
1763
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2303
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2304
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2305
  # is not polluted with repeated "-I."
 
2306
  am__isrc=' -I$(srcdir)'
 
2307
  # test to see if srcdir already configured
 
2308
  if test -f $srcdir/config.status; then
 
2309
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1764
2310
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1765
2311
   { (exit 1); exit 1; }; }
 
2312
  fi
1766
2313
fi
1767
2314
 
1768
2315
# test whether we have cygpath
1805
2352
 
1806
2353
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1807
2354
 
1808
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2355
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1809
2356
 
1810
2357
# Installed binaries are usually stripped using `strip' when the user
1811
2358
# run `make install-strip'.  However `strip' might not be the right
1815
2362
  if test -n "$ac_tool_prefix"; then
1816
2363
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1817
2364
set dummy ${ac_tool_prefix}strip; ac_word=$2
1818
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1819
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2365
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2366
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1820
2367
if test "${ac_cv_prog_STRIP+set}" = set; then
1821
2368
  echo $ECHO_N "(cached) $ECHO_C" >&6
1822
2369
else
1829
2376
  IFS=$as_save_IFS
1830
2377
  test -z "$as_dir" && as_dir=.
1831
2378
  for ac_exec_ext in '' $ac_executable_extensions; do
1832
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2379
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1833
2380
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1834
2381
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835
2382
    break 2
1836
2383
  fi
1837
2384
done
1838
2385
done
 
2386
IFS=$as_save_IFS
1839
2387
 
1840
2388
fi
1841
2389
fi
1842
2390
STRIP=$ac_cv_prog_STRIP
1843
2391
if test -n "$STRIP"; then
1844
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1845
 
echo "${ECHO_T}$STRIP" >&6
 
2392
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2393
echo "${ECHO_T}$STRIP" >&6; }
1846
2394
else
1847
 
  echo "$as_me:$LINENO: result: no" >&5
1848
 
echo "${ECHO_T}no" >&6
 
2395
  { echo "$as_me:$LINENO: result: no" >&5
 
2396
echo "${ECHO_T}no" >&6; }
1849
2397
fi
 
2398
 
1850
2399
 
1851
2400
fi
1852
2401
if test -z "$ac_cv_prog_STRIP"; then
1853
2402
  ac_ct_STRIP=$STRIP
1854
2403
  # Extract the first word of "strip", so it can be a program name with args.
1855
2404
set dummy strip; ac_word=$2
1856
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1857
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2405
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2406
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1858
2407
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1859
2408
  echo $ECHO_N "(cached) $ECHO_C" >&6
1860
2409
else
1867
2416
  IFS=$as_save_IFS
1868
2417
  test -z "$as_dir" && as_dir=.
1869
2418
  for ac_exec_ext in '' $ac_executable_extensions; do
1870
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2419
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1871
2420
    ac_cv_prog_ac_ct_STRIP="strip"
1872
2421
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873
2422
    break 2
1874
2423
  fi
1875
2424
done
1876
2425
done
 
2426
IFS=$as_save_IFS
1877
2427
 
1878
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1879
2428
fi
1880
2429
fi
1881
2430
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1882
2431
if test -n "$ac_ct_STRIP"; then
1883
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1884
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2432
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2433
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1885
2434
else
1886
 
  echo "$as_me:$LINENO: result: no" >&5
1887
 
echo "${ECHO_T}no" >&6
 
2435
  { echo "$as_me:$LINENO: result: no" >&5
 
2436
echo "${ECHO_T}no" >&6; }
1888
2437
fi
1889
2438
 
1890
 
  STRIP=$ac_ct_STRIP
 
2439
  if test "x$ac_ct_STRIP" = x; then
 
2440
    STRIP=":"
 
2441
  else
 
2442
    case $cross_compiling:$ac_tool_warned in
 
2443
yes:)
 
2444
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2445
whose name does not start with the host triplet.  If you think this
 
2446
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2447
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2448
whose name does not start with the host triplet.  If you think this
 
2449
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2450
ac_tool_warned=yes ;;
 
2451
esac
 
2452
    STRIP=$ac_ct_STRIP
 
2453
  fi
1891
2454
else
1892
2455
  STRIP="$ac_cv_prog_STRIP"
1893
2456
fi
1894
2457
 
1895
2458
fi
1896
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2459
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1897
2460
 
1898
2461
# We need awk for the "check" target.  The system "awk" is bad on
1899
2462
# some platforms.
1907
2470
 
1908
2471
 
1909
2472
 
 
2473
# Make sure we can run config.sub.
 
2474
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2475
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2476
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2477
   { (exit 1); exit 1; }; }
 
2478
 
 
2479
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2480
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2481
if test "${ac_cv_build+set}" = set; then
 
2482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2483
else
 
2484
  ac_build_alias=$build_alias
 
2485
test "x$ac_build_alias" = x &&
 
2486
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2487
test "x$ac_build_alias" = x &&
 
2488
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2489
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2490
   { (exit 1); exit 1; }; }
 
2491
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2492
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2493
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2494
   { (exit 1); exit 1; }; }
 
2495
 
 
2496
fi
 
2497
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2498
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2499
case $ac_cv_build in
 
2500
*-*-*) ;;
 
2501
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2502
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2503
   { (exit 1); exit 1; }; };;
 
2504
esac
 
2505
build=$ac_cv_build
 
2506
ac_save_IFS=$IFS; IFS='-'
 
2507
set x $ac_cv_build
 
2508
shift
 
2509
build_cpu=$1
 
2510
build_vendor=$2
 
2511
shift; shift
 
2512
# Remember, the first character of IFS is used to create $*,
 
2513
# except with old shells:
 
2514
build_os=$*
 
2515
IFS=$ac_save_IFS
 
2516
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2517
 
 
2518
 
 
2519
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2520
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2521
if test "${ac_cv_host+set}" = set; then
 
2522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2523
else
 
2524
  if test "x$host_alias" = x; then
 
2525
  ac_cv_host=$ac_cv_build
 
2526
else
 
2527
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2528
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2529
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2530
   { (exit 1); exit 1; }; }
 
2531
fi
 
2532
 
 
2533
fi
 
2534
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2535
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2536
case $ac_cv_host in
 
2537
*-*-*) ;;
 
2538
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2539
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2540
   { (exit 1); exit 1; }; };;
 
2541
esac
 
2542
host=$ac_cv_host
 
2543
ac_save_IFS=$IFS; IFS='-'
 
2544
set x $ac_cv_host
 
2545
shift
 
2546
host_cpu=$1
 
2547
host_vendor=$2
 
2548
shift; shift
 
2549
# Remember, the first character of IFS is used to create $*,
 
2550
# except with old shells:
 
2551
host_os=$*
 
2552
IFS=$ac_save_IFS
 
2553
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2554
 
 
2555
 
 
2556
 
 
2557
 
 
2558
 
 
2559
 
 
2560
        { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
 
2561
echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
 
2562
        { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
 
2563
echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
 
2564
        hostname=`hostname`
 
2565
        if test "$hostname"; then
 
2566
           { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
 
2567
echo "$as_me: autobuild hostname... $hostname" >&6;}
 
2568
        fi
 
2569
 
 
2570
        date=`date +%Y%m%d-%H%M%S`
 
2571
        if test "$?" != 0; then
 
2572
           date=`date`
 
2573
        fi
 
2574
        if test "$date"; then
 
2575
           { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
 
2576
echo "$as_me: autobuild timestamp... $date" >&6;}
 
2577
        fi
 
2578
 
1910
2579
 
1911
2580
 
1912
2581
cat >>confdefs.h <<\_ACEOF
1915
2584
 
1916
2585
 
1917
2586
 
1918
 
# Some status variables to give feedback at the end of a configure run
 
2587
# Some status variables.
1919
2588
have_gpg_error=no
1920
2589
have_libgcrypt=no
1921
2590
have_libassuan=no
1922
2591
have_ksba=no
1923
2592
have_pth=no
1924
 
 
1925
 
build_gpg=no
1926
 
 
1927
 
      # Check whether --enable-gpg or --disable-gpg was given.
 
2593
have_libusb=no
 
2594
 
 
2595
use_bzip2=yes
 
2596
use_exec=yes
 
2597
disable_keyserver_path=no
 
2598
use_camellia=no
 
2599
 
 
2600
 
 
2601
build_gpg=yes
 
2602
 
 
2603
      # Check whether --enable-gpg was given.
1928
2604
if test "${enable_gpg+set}" = set; then
1929
 
  enableval="$enable_gpg"
1930
 
  build_gpg=$enableval
 
2605
  enableval=$enable_gpg; build_gpg=$enableval
1931
2606
else
1932
 
  build_gpg=no
1933
 
fi;
 
2607
  build_gpg=yes
 
2608
fi
 
2609
 
1934
2610
 
1935
2611
   case "$build_gpg" in
1936
2612
         no|yes)
1944
2620
 
1945
2621
build_gpgsm=yes
1946
2622
 
1947
 
      # Check whether --enable-gpgsm or --disable-gpgsm was given.
 
2623
      # Check whether --enable-gpgsm was given.
1948
2624
if test "${enable_gpgsm+set}" = set; then
1949
 
  enableval="$enable_gpgsm"
1950
 
  build_gpgsm=$enableval
 
2625
  enableval=$enable_gpgsm; build_gpgsm=$enableval
1951
2626
else
1952
2627
  build_gpgsm=yes
1953
 
fi;
 
2628
fi
 
2629
 
1954
2630
 
1955
2631
   case "$build_gpgsm" in
1956
2632
         no|yes)
1964
2640
 
1965
2641
build_agent=yes
1966
2642
 
1967
 
      # Check whether --enable-agent or --disable-agent was given.
 
2643
      # Check whether --enable-agent was given.
1968
2644
if test "${enable_agent+set}" = set; then
1969
 
  enableval="$enable_agent"
1970
 
  build_agent=$enableval
 
2645
  enableval=$enable_agent; build_agent=$enableval
1971
2646
else
1972
2647
  build_agent=yes
1973
 
fi;
 
2648
fi
 
2649
 
1974
2650
 
1975
2651
   case "$build_agent" in
1976
2652
         no|yes)
1984
2660
 
1985
2661
build_scdaemon=yes
1986
2662
 
1987
 
      # Check whether --enable-scdaemon or --disable-scdaemon was given.
 
2663
      # Check whether --enable-scdaemon was given.
1988
2664
if test "${enable_scdaemon+set}" = set; then
1989
 
  enableval="$enable_scdaemon"
1990
 
  build_scdaemon=$enableval
 
2665
  enableval=$enable_scdaemon; build_scdaemon=$enableval
1991
2666
else
1992
2667
  build_scdaemon=yes
1993
 
fi;
 
2668
fi
 
2669
 
1994
2670
 
1995
2671
   case "$build_scdaemon" in
1996
2672
         no|yes)
2002
2678
           ;;
2003
2679
   esac
2004
2680
 
 
2681
build_tools=yes
 
2682
 
 
2683
      # Check whether --enable-tools was given.
 
2684
if test "${enable_tools+set}" = set; then
 
2685
  enableval=$enable_tools; build_tools=$enableval
 
2686
else
 
2687
  build_tools=yes
 
2688
fi
 
2689
 
 
2690
 
 
2691
   case "$build_tools" in
 
2692
         no|yes)
 
2693
           ;;
 
2694
         *)
 
2695
           { { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-tools" >&5
 
2696
echo "$as_me: error: only yes or no allowed for feature --enable-tools" >&2;}
 
2697
   { (exit 1); exit 1; }; }
 
2698
           ;;
 
2699
   esac
 
2700
 
 
2701
build_doc=yes
 
2702
 
 
2703
      # Check whether --enable-doc was given.
 
2704
if test "${enable_doc+set}" = set; then
 
2705
  enableval=$enable_doc; build_doc=$enableval
 
2706
else
 
2707
  build_doc=yes
 
2708
fi
 
2709
 
 
2710
 
 
2711
   case "$build_doc" in
 
2712
         no|yes)
 
2713
           ;;
 
2714
         *)
 
2715
           { { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-doc" >&5
 
2716
echo "$as_me: error: only yes or no allowed for feature --enable-doc" >&2;}
 
2717
   { (exit 1); exit 1; }; }
 
2718
           ;;
 
2719
   esac
 
2720
 
2005
2721
build_symcryptrun=no
2006
2722
 
2007
 
      # Check whether --enable-symcryptrun or --disable-symcryptrun was given.
 
2723
      # Check whether --enable-symcryptrun was given.
2008
2724
if test "${enable_symcryptrun+set}" = set; then
2009
 
  enableval="$enable_symcryptrun"
2010
 
  build_symcryptrun=$enableval
 
2725
  enableval=$enable_symcryptrun; build_symcryptrun=$enableval
2011
2726
else
2012
2727
  build_symcryptrun=no
2013
 
fi;
 
2728
fi
 
2729
 
2014
2730
 
2015
2731
   case "$build_symcryptrun" in
2016
2732
         no|yes)
2027
2743
 
2028
2744
 
2029
2745
 
2030
 
 
2031
2746
cat >>confdefs.h <<_ACEOF
2032
2747
#define PACKAGE "$PACKAGE"
2033
2748
_ACEOF
2066
2781
# ${prefix} depended values with fixed paths, which can't be replaced
2067
2782
# at make time.  See also am/cmacros.am and the defaults in AH_BOTTOM.
2068
2783
 
2069
 
# Check whether --with-agent-pgm or --without-agent-pgm was given.
 
2784
# Check whether --with-agent-pgm was given.
2070
2785
if test "${with_agent_pgm+set}" = set; then
2071
 
  withval="$with_agent_pgm"
2072
 
  GNUPG_AGENT_PGM="$withval"
 
2786
  withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
2073
2787
else
2074
2788
  GNUPG_AGENT_PGM=""
2075
 
fi;
2076
 
 
2077
 
 
2078
 
 
2079
 
if test -n "$GNUPG_AGENT_PGM"; then
 
2789
fi
 
2790
 
 
2791
 
 
2792
 if test -n "$GNUPG_AGENT_PGM"; then
2080
2793
  GNUPG_AGENT_PGM_TRUE=
2081
2794
  GNUPG_AGENT_PGM_FALSE='#'
2082
2795
else
2088
2801
test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
2089
2802
 
2090
2803
 
2091
 
# Check whether --with-pinentry-pgm or --without-pinentry-pgm was given.
 
2804
# Check whether --with-pinentry-pgm was given.
2092
2805
if test "${with_pinentry_pgm+set}" = set; then
2093
 
  withval="$with_pinentry_pgm"
2094
 
  GNUPG_PINENTRY_PGM="$withval"
 
2806
  withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
2095
2807
else
2096
2808
  GNUPG_PINENTRY_PGM=""
2097
 
fi;
2098
 
 
2099
 
 
2100
 
 
2101
 
if test -n "$GNUPG_PINENTRY_PGM"; then
 
2809
fi
 
2810
 
 
2811
 
 
2812
 if test -n "$GNUPG_PINENTRY_PGM"; then
2102
2813
  GNUPG_PINENTRY_PGM_TRUE=
2103
2814
  GNUPG_PINENTRY_PGM_FALSE='#'
2104
2815
else
2111
2822
 
2112
2823
 
2113
2824
 
2114
 
# Check whether --with-scdaemon-pgm or --without-scdaemon-pgm was given.
 
2825
# Check whether --with-scdaemon-pgm was given.
2115
2826
if test "${with_scdaemon_pgm+set}" = set; then
2116
 
  withval="$with_scdaemon_pgm"
2117
 
  GNUPG_SCDAEMON_PGM="$withval"
 
2827
  withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
2118
2828
else
2119
2829
  GNUPG_SCDAEMON_PGM=""
2120
 
fi;
2121
 
 
2122
 
 
2123
 
 
2124
 
if test -n "$GNUPG_SCDAEMON_PGM"; then
 
2830
fi
 
2831
 
 
2832
 
 
2833
 if test -n "$GNUPG_SCDAEMON_PGM"; then
2125
2834
  GNUPG_SCDAEMON_PGM_TRUE=
2126
2835
  GNUPG_SCDAEMON_PGM_FALSE='#'
2127
2836
else
2134
2843
 
2135
2844
 
2136
2845
 
2137
 
# Check whether --with-dirmngr-pgm or --without-dirmngr-pgm was given.
 
2846
# Check whether --with-dirmngr-pgm was given.
2138
2847
if test "${with_dirmngr_pgm+set}" = set; then
2139
 
  withval="$with_dirmngr_pgm"
2140
 
  GNUPG_DIRMNGR_PGM="$withval"
 
2848
  withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
2141
2849
else
2142
2850
  GNUPG_DIRMNGR_PGM=""
2143
 
fi;
2144
 
 
2145
 
 
2146
 
 
2147
 
if test -n "$GNUPG_DIRMNGR_PGM"; then
 
2851
fi
 
2852
 
 
2853
 
 
2854
 if test -n "$GNUPG_DIRMNGR_PGM"; then
2148
2855
  GNUPG_DIRMNGR_PGM_TRUE=
2149
2856
  GNUPG_DIRMNGR_PGM_FALSE='#'
2150
2857
else
2156
2863
test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
2157
2864
 
2158
2865
 
2159
 
# Check whether --with-protect-tool-pgm or --without-protect-tool-pgm was given.
 
2866
# Check whether --with-protect-tool-pgm was given.
2160
2867
if test "${with_protect_tool_pgm+set}" = set; then
2161
 
  withval="$with_protect_tool_pgm"
2162
 
  GNUPG_PROTECT_TOOL_PGM="$withval"
 
2868
  withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
2163
2869
else
2164
2870
  GNUPG_PROTECT_TOOL_PGM=""
2165
 
fi;
2166
 
 
2167
 
 
2168
 
 
2169
 
if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
 
2871
fi
 
2872
 
 
2873
 
 
2874
 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
2170
2875
  GNUPG_PROTECT_TOOL_PGM_TRUE=
2171
2876
  GNUPG_PROTECT_TOOL_PGM_FALSE='#'
2172
2877
else
2179
2884
      && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
2180
2885
 
2181
2886
 
2182
 
 
2183
 
# Some folks want to use only the agent form this packet.  Make it
 
2887
# Some folks want to use only the agent from this packet.  Make it
2184
2888
# easier for them by providing the configure option
2185
2889
# --enable-only-agent.
2186
 
# Check whether --enable-agent-only or --disable-agent-only was given.
 
2890
# Check whether --enable-agent-only was given.
2187
2891
if test "${enable_agent_only+set}" = set; then
2188
 
  enableval="$enable_agent_only"
2189
 
  build_agent_only=$enableval
2190
 
fi;
 
2892
  enableval=$enable_agent_only; build_agent_only=$enableval
 
2893
fi
 
2894
 
 
2895
 
 
2896
# SELinux support includes tracking of sensitive files to avoid
 
2897
# leaking their contents through processing these files by gpg itself
 
2898
{ echo "$as_me:$LINENO: checking whether SELinux support is requested" >&5
 
2899
echo $ECHO_N "checking whether SELinux support is requested... $ECHO_C" >&6; }
 
2900
# Check whether --enable-selinux-support was given.
 
2901
if test "${enable_selinux_support+set}" = set; then
 
2902
  enableval=$enable_selinux_support; selinux_support=$enableval
 
2903
else
 
2904
  selinux_support=no
 
2905
fi
 
2906
 
 
2907
{ echo "$as_me:$LINENO: result: $selinux_support" >&5
 
2908
echo "${ECHO_T}$selinux_support" >&6; }
 
2909
 
 
2910
# Allow disabling of bzib2 support.
 
2911
# It is defined only after we confirm the library is available later
 
2912
{ echo "$as_me:$LINENO: checking whether to enable the BZIP2 compression algorithm" >&5
 
2913
echo $ECHO_N "checking whether to enable the BZIP2 compression algorithm... $ECHO_C" >&6; }
 
2914
# Check whether --enable-bzip2 was given.
 
2915
if test "${enable_bzip2+set}" = set; then
 
2916
  enableval=$enable_bzip2; use_bzip2=$enableval
 
2917
fi
 
2918
 
 
2919
{ echo "$as_me:$LINENO: result: $use_bzip2" >&5
 
2920
echo "${ECHO_T}$use_bzip2" >&6; }
 
2921
 
 
2922
# Check whether testing support for Camellia has been requested
 
2923
{ echo "$as_me:$LINENO: checking whether to enable the CAMELLIA cipher for gpg" >&5
 
2924
echo $ECHO_N "checking whether to enable the CAMELLIA cipher for gpg... $ECHO_C" >&6; }
 
2925
# Check whether --enable-camellia was given.
 
2926
if test "${enable_camellia+set}" = set; then
 
2927
  enableval=$enable_camellia; use_camellia=$enableval
 
2928
fi
 
2929
 
 
2930
{ echo "$as_me:$LINENO: result: $use_camellia" >&5
 
2931
echo "${ECHO_T}$use_camellia" >&6; }
 
2932
if test x"$use_camellia" = xyes ; then
 
2933
 
 
2934
cat >>confdefs.h <<\_ACEOF
 
2935
#define USE_CAMELLIA 1
 
2936
_ACEOF
 
2937
 
 
2938
   { echo "$as_me:$LINENO: WARNING:
 
2939
***
 
2940
*** The Camellia cipher for gpg is for testing only and
 
2941
*** is NOT for production use!
 
2942
***" >&5
 
2943
echo "$as_me: WARNING:
 
2944
***
 
2945
*** The Camellia cipher for gpg is for testing only and
 
2946
*** is NOT for production use!
 
2947
***" >&2;}
 
2948
fi
2191
2949
 
2192
2950
 
2193
2951
# Configure option to allow or disallow execution of external
2194
2952
# programs, like a photo viewer.
2195
 
echo "$as_me:$LINENO: checking whether to enable external program execution" >&5
2196
 
echo $ECHO_N "checking whether to enable external program execution... $ECHO_C" >&6
2197
 
# Check whether --enable-exec or --disable-exec was given.
 
2953
{ echo "$as_me:$LINENO: checking whether to enable external program execution" >&5
 
2954
echo $ECHO_N "checking whether to enable external program execution... $ECHO_C" >&6; }
 
2955
# Check whether --enable-exec was given.
2198
2956
if test "${enable_exec+set}" = set; then
2199
 
  enableval="$enable_exec"
2200
 
  use_exec=$enableval
2201
 
fi;
2202
 
echo "$as_me:$LINENO: result: $use_exec" >&5
2203
 
echo "${ECHO_T}$use_exec" >&6
 
2957
  enableval=$enable_exec; use_exec=$enableval
 
2958
fi
 
2959
 
 
2960
{ echo "$as_me:$LINENO: result: $use_exec" >&5
 
2961
echo "${ECHO_T}$use_exec" >&6; }
2204
2962
if test "$use_exec" = no ; then
2205
2963
 
2206
2964
cat >>confdefs.h <<\_ACEOF
2210
2968
fi
2211
2969
 
2212
2970
if test "$use_exec" = yes ; then
2213
 
  echo "$as_me:$LINENO: checking whether to enable photo ID viewing" >&5
2214
 
echo $ECHO_N "checking whether to enable photo ID viewing... $ECHO_C" >&6
2215
 
  # Check whether --enable-photo-viewers or --disable-photo-viewers was given.
 
2971
  { echo "$as_me:$LINENO: checking whether to enable photo ID viewing" >&5
 
2972
echo $ECHO_N "checking whether to enable photo ID viewing... $ECHO_C" >&6; }
 
2973
  # Check whether --enable-photo-viewers was given.
2216
2974
if test "${enable_photo_viewers+set}" = set; then
2217
 
  enableval="$enable_photo_viewers"
2218
 
  if test "$enableval" = no ; then
 
2975
  enableval=$enable_photo_viewers; if test "$enableval" = no ; then
2219
2976
 
2220
2977
cat >>confdefs.h <<\_ACEOF
2221
2978
#define DISABLE_PHOTO_VIEWER 1
2224
2981
      fi
2225
2982
else
2226
2983
  enableval=yes
2227
 
fi;
 
2984
fi
 
2985
 
2228
2986
  gnupg_cv_enable_photo_viewers=$enableval
2229
 
  echo "$as_me:$LINENO: result: $enableval" >&5
2230
 
echo "${ECHO_T}$enableval" >&6
 
2987
  { echo "$as_me:$LINENO: result: $enableval" >&5
 
2988
echo "${ECHO_T}$enableval" >&6; }
2231
2989
 
2232
2990
  if test "$gnupg_cv_enable_photo_viewers" = yes ; then
2233
 
    echo "$as_me:$LINENO: checking whether to use a fixed photo ID viewer" >&5
2234
 
echo $ECHO_N "checking whether to use a fixed photo ID viewer... $ECHO_C" >&6
 
2991
    { echo "$as_me:$LINENO: checking whether to use a fixed photo ID viewer" >&5
 
2992
echo $ECHO_N "checking whether to use a fixed photo ID viewer... $ECHO_C" >&6; }
2235
2993
 
2236
 
# Check whether --with-photo-viewer or --without-photo-viewer was given.
 
2994
# Check whether --with-photo-viewer was given.
2237
2995
if test "${with_photo_viewer+set}" = set; then
2238
 
  withval="$with_photo_viewer"
2239
 
  if test "$withval" = yes ; then
 
2996
  withval=$with_photo_viewer; if test "$withval" = yes ; then
2240
2997
           withval=no
2241
2998
        elif test "$withval" != no ; then
2242
2999
 
2247
3004
        fi
2248
3005
else
2249
3006
  withval=no
2250
 
fi;
2251
 
    echo "$as_me:$LINENO: result: $withval" >&5
2252
 
echo "${ECHO_T}$withval" >&6
 
3007
fi
 
3008
 
 
3009
    { echo "$as_me:$LINENO: result: $withval" >&5
 
3010
echo "${ECHO_T}$withval" >&6; }
2253
3011
  fi
2254
3012
 
2255
 
  echo "$as_me:$LINENO: checking whether to enable external keyserver helpers" >&5
2256
 
echo $ECHO_N "checking whether to enable external keyserver helpers... $ECHO_C" >&6
2257
 
  # Check whether --enable-keyserver-helpers or --disable-keyserver-helpers was given.
 
3013
  { echo "$as_me:$LINENO: checking whether to enable external keyserver helpers" >&5
 
3014
echo $ECHO_N "checking whether to enable external keyserver helpers... $ECHO_C" >&6; }
 
3015
  # Check whether --enable-keyserver-helpers was given.
2258
3016
if test "${enable_keyserver_helpers+set}" = set; then
2259
 
  enableval="$enable_keyserver_helpers"
2260
 
  if test "$enableval" = no ; then
 
3017
  enableval=$enable_keyserver_helpers; if test "$enableval" = no ; then
2261
3018
 
2262
3019
cat >>confdefs.h <<\_ACEOF
2263
3020
#define DISABLE_KEYSERVER_HELPERS 1
2266
3023
      fi
2267
3024
else
2268
3025
  enableval=yes
2269
 
fi;
 
3026
fi
 
3027
 
2270
3028
  gnupg_cv_enable_keyserver_helpers=$enableval
2271
 
  echo "$as_me:$LINENO: result: $enableval" >&5
2272
 
echo "${ECHO_T}$enableval" >&6
 
3029
  { echo "$as_me:$LINENO: result: $enableval" >&5
 
3030
echo "${ECHO_T}$enableval" >&6; }
2273
3031
 
2274
3032
  if test "$gnupg_cv_enable_keyserver_helpers" = yes ; then
2275
 
    echo "$as_me:$LINENO: checking whether LDAP keyserver support is requested" >&5
2276
 
echo $ECHO_N "checking whether LDAP keyserver support is requested... $ECHO_C" >&6
2277
 
    # Check whether --enable-ldap or --disable-ldap was given.
 
3033
    # LDAP is defined only after we confirm the library is available later
 
3034
    { echo "$as_me:$LINENO: checking whether LDAP keyserver support is requested" >&5
 
3035
echo $ECHO_N "checking whether LDAP keyserver support is requested... $ECHO_C" >&6; }
 
3036
    # Check whether --enable-ldap was given.
2278
3037
if test "${enable_ldap+set}" = set; then
2279
 
  enableval="$enable_ldap"
2280
 
  try_ldap=$enableval
 
3038
  enableval=$enable_ldap; try_ldap=$enableval
2281
3039
else
2282
3040
  try_ldap=yes
2283
 
fi;
2284
 
    echo "$as_me:$LINENO: result: $try_ldap" >&5
2285
 
echo "${ECHO_T}$try_ldap" >&6
2286
 
 
2287
 
    echo "$as_me:$LINENO: checking whether HKP keyserver support is requested" >&5
2288
 
echo $ECHO_N "checking whether HKP keyserver support is requested... $ECHO_C" >&6
2289
 
    # Check whether --enable-hkp or --disable-hkp was given.
 
3041
fi
 
3042
 
 
3043
    { echo "$as_me:$LINENO: result: $try_ldap" >&5
 
3044
echo "${ECHO_T}$try_ldap" >&6; }
 
3045
 
 
3046
    { echo "$as_me:$LINENO: checking whether HKP keyserver support is requested" >&5
 
3047
echo $ECHO_N "checking whether HKP keyserver support is requested... $ECHO_C" >&6; }
 
3048
    # Check whether --enable-hkp was given.
2290
3049
if test "${enable_hkp+set}" = set; then
2291
 
  enableval="$enable_hkp"
2292
 
  try_hkp=$enableval
 
3050
  enableval=$enable_hkp; try_hkp=$enableval
2293
3051
else
2294
3052
  try_hkp=yes
2295
 
fi;
2296
 
    echo "$as_me:$LINENO: result: $try_hkp" >&5
2297
 
echo "${ECHO_T}$try_hkp" >&6
2298
 
 
2299
 
    if test "$try_hkp" = yes ; then
2300
 
      GPGKEYS_HKP="gpgkeys_hkp$EXEEXT"
2301
 
 
2302
 
    fi
2303
 
 
2304
 
    echo "$as_me:$LINENO: checking whether email keyserver support is requested" >&5
2305
 
echo $ECHO_N "checking whether email keyserver support is requested... $ECHO_C" >&6
2306
 
    # Check whether --enable-mailto or --disable-mailto was given.
 
3053
fi
 
3054
 
 
3055
    { echo "$as_me:$LINENO: result: $try_hkp" >&5
 
3056
echo "${ECHO_T}$try_hkp" >&6; }
 
3057
 
 
3058
    { echo "$as_me:$LINENO: checking whether finger key fetching support is requested" >&5
 
3059
echo $ECHO_N "checking whether finger key fetching support is requested... $ECHO_C" >&6; }
 
3060
    # Check whether --enable-finger was given.
 
3061
if test "${enable_finger+set}" = set; then
 
3062
  enableval=$enable_finger; try_finger=$enableval
 
3063
else
 
3064
  try_finger=yes
 
3065
fi
 
3066
 
 
3067
    { echo "$as_me:$LINENO: result: $try_finger" >&5
 
3068
echo "${ECHO_T}$try_finger" >&6; }
 
3069
 
 
3070
    { echo "$as_me:$LINENO: checking whether generic object key fetching support is requested" >&5
 
3071
echo $ECHO_N "checking whether generic object key fetching support is requested... $ECHO_C" >&6; }
 
3072
    # Check whether --enable-generic was given.
 
3073
if test "${enable_generic+set}" = set; then
 
3074
  enableval=$enable_generic; try_generic=$enableval
 
3075
else
 
3076
  try_generic=yes
 
3077
fi
 
3078
 
 
3079
    { echo "$as_me:$LINENO: result: $try_generic" >&5
 
3080
echo "${ECHO_T}$try_generic" >&6; }
 
3081
 
 
3082
    { echo "$as_me:$LINENO: checking whether email keyserver support is requested" >&5
 
3083
echo $ECHO_N "checking whether email keyserver support is requested... $ECHO_C" >&6; }
 
3084
    # Check whether --enable-mailto was given.
2307
3085
if test "${enable_mailto+set}" = set; then
2308
 
  enableval="$enable_mailto"
2309
 
  try_mailto=$enableval
 
3086
  enableval=$enable_mailto; try_mailto=$enableval
2310
3087
else
2311
 
  try_mailto=yes
2312
 
fi;
2313
 
    echo "$as_me:$LINENO: result: $try_mailto" >&5
2314
 
echo "${ECHO_T}$try_mailto" >&6
 
3088
  try_mailto=no
 
3089
fi
 
3090
 
 
3091
    { echo "$as_me:$LINENO: result: $try_mailto" >&5
 
3092
echo "${ECHO_T}$try_mailto" >&6; }
2315
3093
    fi
2316
3094
 
2317
 
    echo "$as_me:$LINENO: checking whether keyserver exec-path is enabled" >&5
2318
 
echo $ECHO_N "checking whether keyserver exec-path is enabled... $ECHO_C" >&6
2319
 
    # Check whether --enable-keyserver-path or --disable-keyserver-path was given.
 
3095
    { echo "$as_me:$LINENO: checking whether keyserver exec-path is enabled" >&5
 
3096
echo $ECHO_N "checking whether keyserver exec-path is enabled... $ECHO_C" >&6; }
 
3097
    # Check whether --enable-keyserver-path was given.
2320
3098
if test "${enable_keyserver_path+set}" = set; then
2321
 
  enableval="$enable_keyserver_path"
2322
 
  if test "$enableval" = no ; then
2323
 
 
2324
 
cat >>confdefs.h <<\_ACEOF
2325
 
#define DISABLE_KEYSERVER_PATH 1
2326
 
_ACEOF
2327
 
 
2328
 
        fi
 
3099
  enableval=$enable_keyserver_path; if test "$enableval" = no ; then
 
3100
         disable_keyserver_path=yes
 
3101
      fi
2329
3102
else
2330
3103
  enableval=yes
2331
 
fi;
2332
 
    echo "$as_me:$LINENO: result: $enableval" >&5
2333
 
echo "${ECHO_T}$enableval" >&6
 
3104
fi
 
3105
 
 
3106
    { echo "$as_me:$LINENO: result: $enableval" >&5
 
3107
echo "${ECHO_T}$enableval" >&6; }
2334
3108
  fi
2335
3109
 
2336
 
echo "$as_me:$LINENO: checking whether use of capabilities is requested" >&5
2337
 
echo $ECHO_N "checking whether use of capabilities is requested... $ECHO_C" >&6
2338
 
 
2339
 
# Check whether --with-capabilities or --without-capabilities was given.
 
3110
 
 
3111
#
 
3112
# Check for the key/uid cache size.  This can't be zero, but can be
 
3113
# pretty small on embedded systems.  This is used for the gpg part.
 
3114
#
 
3115
{ echo "$as_me:$LINENO: checking for the size of the key and uid cache" >&5
 
3116
echo $ECHO_N "checking for the size of the key and uid cache... $ECHO_C" >&6; }
 
3117
# Check whether --enable-key-cache was given.
 
3118
if test "${enable_key_cache+set}" = set; then
 
3119
  enableval=$enable_key_cache;
 
3120
else
 
3121
  enableval=4096
 
3122
fi
 
3123
 
 
3124
if test "$enableval" = "no"; then
 
3125
   enableval=5
 
3126
elif test "$enableval" = "yes" || test "$enableval" = ""; then
 
3127
   enableval=4096
 
3128
fi
 
3129
key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
 
3130
if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
 
3131
   { { echo "$as_me:$LINENO: error: invalid key-cache size" >&5
 
3132
echo "$as_me: error: invalid key-cache size" >&2;}
 
3133
   { (exit 1); exit 1; }; }
 
3134
fi
 
3135
{ echo "$as_me:$LINENO: result: $key_cache_size" >&5
 
3136
echo "${ECHO_T}$key_cache_size" >&6; }
 
3137
 
 
3138
cat >>confdefs.h <<_ACEOF
 
3139
#define PK_UID_CACHE_SIZE $key_cache_size
 
3140
_ACEOF
 
3141
 
 
3142
 
 
3143
 
 
3144
 
 
3145
#
 
3146
# Check whether we want to use Linux capabilities
 
3147
#
 
3148
{ echo "$as_me:$LINENO: checking whether use of capabilities is requested" >&5
 
3149
echo $ECHO_N "checking whether use of capabilities is requested... $ECHO_C" >&6; }
 
3150
 
 
3151
# Check whether --with-capabilities was given.
2340
3152
if test "${with_capabilities+set}" = set; then
2341
 
  withval="$with_capabilities"
2342
 
  use_capabilities="$withval"
 
3153
  withval=$with_capabilities; use_capabilities="$withval"
2343
3154
else
2344
3155
  use_capabilities=no
2345
 
fi;
2346
 
echo "$as_me:$LINENO: result: $use_capabilities" >&5
2347
 
echo "${ECHO_T}$use_capabilities" >&6
2348
 
 
2349
 
 
2350
 
 
2351
 
 
2352
 
 
2353
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2354
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2355
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
3156
fi
 
3157
 
 
3158
{ echo "$as_me:$LINENO: result: $use_capabilities" >&5
 
3159
echo "${ECHO_T}$use_capabilities" >&6; }
 
3160
 
 
3161
#
 
3162
# To avoid double inclusion of config.h which might happen at some
 
3163
# places, we add the usual double inclusion protection at the top of
 
3164
# config.h.
 
3165
#
 
3166
 
 
3167
 
 
3168
 
 
3169
#
 
3170
# Stuff which goes at the bottom of config.h.
 
3171
#
 
3172
 
 
3173
 
 
3174
 
 
3175
 
 
3176
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
3177
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
 
3178
    # Check whether --enable-maintainer-mode was given.
2356
3179
if test "${enable_maintainer_mode+set}" = set; then
2357
 
  enableval="$enable_maintainer_mode"
2358
 
  USE_MAINTAINER_MODE=$enableval
 
3180
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2359
3181
else
2360
3182
  USE_MAINTAINER_MODE=no
2361
 
fi;
2362
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2363
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2364
 
 
2365
 
 
2366
 
if test $USE_MAINTAINER_MODE = yes; then
 
3183
fi
 
3184
 
 
3185
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
3186
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
 
3187
   if test $USE_MAINTAINER_MODE = yes; then
2367
3188
  MAINTAINER_MODE_TRUE=
2368
3189
  MAINTAINER_MODE_FALSE='#'
2369
3190
else
2376
3197
 
2377
3198
 
2378
3199
# Checks for programs.
2379
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2380
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2381
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2382
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3200
{ echo "$as_me:$LINENO: checking for programs" >&5
 
3201
echo "$as_me: checking for programs" >&6;}
 
3202
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3203
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
3204
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3205
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2383
3206
  echo $ECHO_N "(cached) $ECHO_C" >&6
2384
3207
else
2385
3208
  cat >conftest.make <<\_ACEOF
 
3209
SHELL = /bin/sh
2386
3210
all:
2387
 
        @echo 'ac_maketemp="$(MAKE)"'
 
3211
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2388
3212
_ACEOF
2389
3213
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2390
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2391
 
if test -n "$ac_maketemp"; then
2392
 
  eval ac_cv_prog_make_${ac_make}_set=yes
2393
 
else
2394
 
  eval ac_cv_prog_make_${ac_make}_set=no
2395
 
fi
 
3214
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3215
  *@@@%%%=?*=@@@%%%*)
 
3216
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3217
  *)
 
3218
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3219
esac
2396
3220
rm -f conftest.make
2397
3221
fi
2398
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2399
 
  echo "$as_me:$LINENO: result: yes" >&5
2400
 
echo "${ECHO_T}yes" >&6
 
3222
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3223
  { echo "$as_me:$LINENO: result: yes" >&5
 
3224
echo "${ECHO_T}yes" >&6; }
2401
3225
  SET_MAKE=
2402
3226
else
2403
 
  echo "$as_me:$LINENO: result: no" >&5
2404
 
echo "${ECHO_T}no" >&6
 
3227
  { echo "$as_me:$LINENO: result: no" >&5
 
3228
echo "${ECHO_T}no" >&6; }
2405
3229
  SET_MAKE="MAKE=${MAKE-make}"
2406
3230
fi
2407
3231
 
2408
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2409
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
3232
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
3233
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2410
3234
# Just in case
2411
3235
sleep 1
2412
3236
echo timestamp > conftest.file
2448
3272
Check your system clock" >&2;}
2449
3273
   { (exit 1); exit 1; }; }
2450
3274
fi
2451
 
echo "$as_me:$LINENO: result: yes" >&5
2452
 
echo "${ECHO_T}yes" >&6
 
3275
{ echo "$as_me:$LINENO: result: yes" >&5
 
3276
echo "${ECHO_T}yes" >&6; }
2453
3277
missing_dir=`cd $ac_aux_dir && pwd`
2454
3278
 
2455
3279
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
2470
3294
do
2471
3295
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2472
3296
set dummy $ac_prog; ac_word=$2
2473
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2474
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3297
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3298
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475
3299
if test "${ac_cv_prog_AWK+set}" = set; then
2476
3300
  echo $ECHO_N "(cached) $ECHO_C" >&6
2477
3301
else
2484
3308
  IFS=$as_save_IFS
2485
3309
  test -z "$as_dir" && as_dir=.
2486
3310
  for ac_exec_ext in '' $ac_executable_extensions; do
2487
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3311
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488
3312
    ac_cv_prog_AWK="$ac_prog"
2489
3313
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490
3314
    break 2
2491
3315
  fi
2492
3316
done
2493
3317
done
 
3318
IFS=$as_save_IFS
2494
3319
 
2495
3320
fi
2496
3321
fi
2497
3322
AWK=$ac_cv_prog_AWK
2498
3323
if test -n "$AWK"; then
2499
 
  echo "$as_me:$LINENO: result: $AWK" >&5
2500
 
echo "${ECHO_T}$AWK" >&6
 
3324
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
3325
echo "${ECHO_T}$AWK" >&6; }
2501
3326
else
2502
 
  echo "$as_me:$LINENO: result: no" >&5
2503
 
echo "${ECHO_T}no" >&6
 
3327
  { echo "$as_me:$LINENO: result: no" >&5
 
3328
echo "${ECHO_T}no" >&6; }
2504
3329
fi
2505
3330
 
 
3331
 
2506
3332
  test -n "$AWK" && break
2507
3333
done
2508
3334
 
2514
3340
if test -n "$ac_tool_prefix"; then
2515
3341
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2516
3342
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2517
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2518
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3343
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519
3345
if test "${ac_cv_prog_CC+set}" = set; then
2520
3346
  echo $ECHO_N "(cached) $ECHO_C" >&6
2521
3347
else
2528
3354
  IFS=$as_save_IFS
2529
3355
  test -z "$as_dir" && as_dir=.
2530
3356
  for ac_exec_ext in '' $ac_executable_extensions; do
2531
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3357
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532
3358
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2533
3359
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534
3360
    break 2
2535
3361
  fi
2536
3362
done
2537
3363
done
 
3364
IFS=$as_save_IFS
2538
3365
 
2539
3366
fi
2540
3367
fi
2541
3368
CC=$ac_cv_prog_CC
2542
3369
if test -n "$CC"; then
2543
 
  echo "$as_me:$LINENO: result: $CC" >&5
2544
 
echo "${ECHO_T}$CC" >&6
 
3370
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3371
echo "${ECHO_T}$CC" >&6; }
2545
3372
else
2546
 
  echo "$as_me:$LINENO: result: no" >&5
2547
 
echo "${ECHO_T}no" >&6
 
3373
  { echo "$as_me:$LINENO: result: no" >&5
 
3374
echo "${ECHO_T}no" >&6; }
2548
3375
fi
 
3376
 
2549
3377
 
2550
3378
fi
2551
3379
if test -z "$ac_cv_prog_CC"; then
2552
3380
  ac_ct_CC=$CC
2553
3381
  # Extract the first word of "gcc", so it can be a program name with args.
2554
3382
set dummy gcc; ac_word=$2
2555
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2556
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3383
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3384
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557
3385
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2558
3386
  echo $ECHO_N "(cached) $ECHO_C" >&6
2559
3387
else
2566
3394
  IFS=$as_save_IFS
2567
3395
  test -z "$as_dir" && as_dir=.
2568
3396
  for ac_exec_ext in '' $ac_executable_extensions; do
2569
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3397
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570
3398
    ac_cv_prog_ac_ct_CC="gcc"
2571
3399
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572
3400
    break 2
2573
3401
  fi
2574
3402
done
2575
3403
done
 
3404
IFS=$as_save_IFS
2576
3405
 
2577
3406
fi
2578
3407
fi
2579
3408
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580
3409
if test -n "$ac_ct_CC"; then
2581
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2582
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
3410
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3411
echo "${ECHO_T}$ac_ct_CC" >&6; }
2583
3412
else
2584
 
  echo "$as_me:$LINENO: result: no" >&5
2585
 
echo "${ECHO_T}no" >&6
 
3413
  { echo "$as_me:$LINENO: result: no" >&5
 
3414
echo "${ECHO_T}no" >&6; }
2586
3415
fi
2587
3416
 
2588
 
  CC=$ac_ct_CC
 
3417
  if test "x$ac_ct_CC" = x; then
 
3418
    CC=""
 
3419
  else
 
3420
    case $cross_compiling:$ac_tool_warned in
 
3421
yes:)
 
3422
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3423
whose name does not start with the host triplet.  If you think this
 
3424
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3425
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3426
whose name does not start with the host triplet.  If you think this
 
3427
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3428
ac_tool_warned=yes ;;
 
3429
esac
 
3430
    CC=$ac_ct_CC
 
3431
  fi
2589
3432
else
2590
3433
  CC="$ac_cv_prog_CC"
2591
3434
fi
2592
3435
 
2593
3436
if test -z "$CC"; then
2594
 
  if test -n "$ac_tool_prefix"; then
2595
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3437
          if test -n "$ac_tool_prefix"; then
 
3438
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2596
3439
set dummy ${ac_tool_prefix}cc; ac_word=$2
2597
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2598
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3440
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3441
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599
3442
if test "${ac_cv_prog_CC+set}" = set; then
2600
3443
  echo $ECHO_N "(cached) $ECHO_C" >&6
2601
3444
else
2608
3451
  IFS=$as_save_IFS
2609
3452
  test -z "$as_dir" && as_dir=.
2610
3453
  for ac_exec_ext in '' $ac_executable_extensions; do
2611
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3454
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612
3455
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2613
3456
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614
3457
    break 2
2615
3458
  fi
2616
3459
done
2617
3460
done
 
3461
IFS=$as_save_IFS
2618
3462
 
2619
3463
fi
2620
3464
fi
2621
3465
CC=$ac_cv_prog_CC
2622
3466
if test -n "$CC"; then
2623
 
  echo "$as_me:$LINENO: result: $CC" >&5
2624
 
echo "${ECHO_T}$CC" >&6
2625
 
else
2626
 
  echo "$as_me:$LINENO: result: no" >&5
2627
 
echo "${ECHO_T}no" >&6
2628
 
fi
2629
 
 
2630
 
fi
2631
 
if test -z "$ac_cv_prog_CC"; then
2632
 
  ac_ct_CC=$CC
2633
 
  # Extract the first word of "cc", so it can be a program name with args.
2634
 
set dummy cc; ac_word=$2
2635
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2636
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2639
 
else
2640
 
  if test -n "$ac_ct_CC"; then
2641
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642
 
else
2643
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644
 
for as_dir in $PATH
2645
 
do
2646
 
  IFS=$as_save_IFS
2647
 
  test -z "$as_dir" && as_dir=.
2648
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2649
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650
 
    ac_cv_prog_ac_ct_CC="cc"
2651
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652
 
    break 2
 
3467
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3468
echo "${ECHO_T}$CC" >&6; }
 
3469
else
 
3470
  { echo "$as_me:$LINENO: result: no" >&5
 
3471
echo "${ECHO_T}no" >&6; }
 
3472
fi
 
3473
 
 
3474
 
2653
3475
  fi
2654
 
done
2655
 
done
2656
 
 
2657
 
fi
2658
 
fi
2659
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660
 
if test -n "$ac_ct_CC"; then
2661
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662
 
echo "${ECHO_T}$ac_ct_CC" >&6
2663
 
else
2664
 
  echo "$as_me:$LINENO: result: no" >&5
2665
 
echo "${ECHO_T}no" >&6
2666
 
fi
2667
 
 
2668
 
  CC=$ac_ct_CC
2669
 
else
2670
 
  CC="$ac_cv_prog_CC"
2671
 
fi
2672
 
 
2673
3476
fi
2674
3477
if test -z "$CC"; then
2675
3478
  # Extract the first word of "cc", so it can be a program name with args.
2676
3479
set dummy cc; ac_word=$2
2677
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2678
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3480
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3481
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679
3482
if test "${ac_cv_prog_CC+set}" = set; then
2680
3483
  echo $ECHO_N "(cached) $ECHO_C" >&6
2681
3484
else
2689
3492
  IFS=$as_save_IFS
2690
3493
  test -z "$as_dir" && as_dir=.
2691
3494
  for ac_exec_ext in '' $ac_executable_extensions; do
2692
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3495
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693
3496
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2694
3497
       ac_prog_rejected=yes
2695
3498
       continue
2700
3503
  fi
2701
3504
done
2702
3505
done
 
3506
IFS=$as_save_IFS
2703
3507
 
2704
3508
if test $ac_prog_rejected = yes; then
2705
3509
  # We found a bogon in the path, so make sure we never use it.
2717
3521
fi
2718
3522
CC=$ac_cv_prog_CC
2719
3523
if test -n "$CC"; then
2720
 
  echo "$as_me:$LINENO: result: $CC" >&5
2721
 
echo "${ECHO_T}$CC" >&6
 
3524
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3525
echo "${ECHO_T}$CC" >&6; }
2722
3526
else
2723
 
  echo "$as_me:$LINENO: result: no" >&5
2724
 
echo "${ECHO_T}no" >&6
 
3527
  { echo "$as_me:$LINENO: result: no" >&5
 
3528
echo "${ECHO_T}no" >&6; }
2725
3529
fi
 
3530
 
2726
3531
 
2727
3532
fi
2728
3533
if test -z "$CC"; then
2729
3534
  if test -n "$ac_tool_prefix"; then
2730
 
  for ac_prog in cl
 
3535
  for ac_prog in cl.exe
2731
3536
  do
2732
3537
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733
3538
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2734
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2735
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3539
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3540
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2736
3541
if test "${ac_cv_prog_CC+set}" = set; then
2737
3542
  echo $ECHO_N "(cached) $ECHO_C" >&6
2738
3543
else
2745
3550
  IFS=$as_save_IFS
2746
3551
  test -z "$as_dir" && as_dir=.
2747
3552
  for ac_exec_ext in '' $ac_executable_extensions; do
2748
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749
3554
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2750
3555
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751
3556
    break 2
2752
3557
  fi
2753
3558
done
2754
3559
done
 
3560
IFS=$as_save_IFS
2755
3561
 
2756
3562
fi
2757
3563
fi
2758
3564
CC=$ac_cv_prog_CC
2759
3565
if test -n "$CC"; then
2760
 
  echo "$as_me:$LINENO: result: $CC" >&5
2761
 
echo "${ECHO_T}$CC" >&6
 
3566
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3567
echo "${ECHO_T}$CC" >&6; }
2762
3568
else
2763
 
  echo "$as_me:$LINENO: result: no" >&5
2764
 
echo "${ECHO_T}no" >&6
 
3569
  { echo "$as_me:$LINENO: result: no" >&5
 
3570
echo "${ECHO_T}no" >&6; }
2765
3571
fi
2766
3572
 
 
3573
 
2767
3574
    test -n "$CC" && break
2768
3575
  done
2769
3576
fi
2770
3577
if test -z "$CC"; then
2771
3578
  ac_ct_CC=$CC
2772
 
  for ac_prog in cl
 
3579
  for ac_prog in cl.exe
2773
3580
do
2774
3581
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2775
3582
set dummy $ac_prog; ac_word=$2
2776
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2777
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3583
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2778
3585
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2779
3586
  echo $ECHO_N "(cached) $ECHO_C" >&6
2780
3587
else
2787
3594
  IFS=$as_save_IFS
2788
3595
  test -z "$as_dir" && as_dir=.
2789
3596
  for ac_exec_ext in '' $ac_executable_extensions; do
2790
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3597
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791
3598
    ac_cv_prog_ac_ct_CC="$ac_prog"
2792
3599
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793
3600
    break 2
2794
3601
  fi
2795
3602
done
2796
3603
done
 
3604
IFS=$as_save_IFS
2797
3605
 
2798
3606
fi
2799
3607
fi
2800
3608
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801
3609
if test -n "$ac_ct_CC"; then
2802
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2803
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
3610
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3611
echo "${ECHO_T}$ac_ct_CC" >&6; }
2804
3612
else
2805
 
  echo "$as_me:$LINENO: result: no" >&5
2806
 
echo "${ECHO_T}no" >&6
 
3613
  { echo "$as_me:$LINENO: result: no" >&5
 
3614
echo "${ECHO_T}no" >&6; }
2807
3615
fi
2808
3616
 
 
3617
 
2809
3618
  test -n "$ac_ct_CC" && break
2810
3619
done
2811
3620
 
2812
 
  CC=$ac_ct_CC
 
3621
  if test "x$ac_ct_CC" = x; then
 
3622
    CC=""
 
3623
  else
 
3624
    case $cross_compiling:$ac_tool_warned in
 
3625
yes:)
 
3626
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3627
whose name does not start with the host triplet.  If you think this
 
3628
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3629
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3630
whose name does not start with the host triplet.  If you think this
 
3631
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3632
ac_tool_warned=yes ;;
 
3633
esac
 
3634
    CC=$ac_ct_CC
 
3635
  fi
2813
3636
fi
2814
3637
 
2815
3638
fi
2822
3645
   { (exit 1); exit 1; }; }
2823
3646
 
2824
3647
# Provide some information about the compiler.
2825
 
echo "$as_me:$LINENO:" \
2826
 
     "checking for C compiler version" >&5
 
3648
echo "$as_me:$LINENO: checking for C compiler version" >&5
2827
3649
ac_compiler=`set X $ac_compile; echo $2`
2828
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2829
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2830
 
  ac_status=$?
2831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832
 
  (exit $ac_status); }
2833
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2834
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2835
 
  ac_status=$?
2836
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837
 
  (exit $ac_status); }
2838
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2839
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3650
{ (ac_try="$ac_compiler --version >&5"
 
3651
case "(($ac_try" in
 
3652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3653
  *) ac_try_echo=$ac_try;;
 
3654
esac
 
3655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3656
  (eval "$ac_compiler --version >&5") 2>&5
 
3657
  ac_status=$?
 
3658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3659
  (exit $ac_status); }
 
3660
{ (ac_try="$ac_compiler -v >&5"
 
3661
case "(($ac_try" in
 
3662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3663
  *) ac_try_echo=$ac_try;;
 
3664
esac
 
3665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3666
  (eval "$ac_compiler -v >&5") 2>&5
 
3667
  ac_status=$?
 
3668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3669
  (exit $ac_status); }
 
3670
{ (ac_try="$ac_compiler -V >&5"
 
3671
case "(($ac_try" in
 
3672
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3673
  *) ac_try_echo=$ac_try;;
 
3674
esac
 
3675
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3676
  (eval "$ac_compiler -V >&5") 2>&5
2840
3677
  ac_status=$?
2841
3678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842
3679
  (exit $ac_status); }
2861
3698
# Try to create an executable without -o first, disregard a.out.
2862
3699
# It will help us diagnose broken compilers, and finding out an intuition
2863
3700
# of exeext.
2864
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2865
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
3701
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3702
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2866
3703
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2867
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2868
 
  (eval $ac_link_default) 2>&5
 
3704
#
 
3705
# List of possible output files, starting from the most likely.
 
3706
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3707
# only as a last resort.  b.out is created by i960 compilers.
 
3708
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3709
#
 
3710
# The IRIX 6 linker writes into existing files which may not be
 
3711
# executable, retaining their permissions.  Remove them first so a
 
3712
# subsequent execution test works.
 
3713
ac_rmfiles=
 
3714
for ac_file in $ac_files
 
3715
do
 
3716
  case $ac_file in
 
3717
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3718
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3719
  esac
 
3720
done
 
3721
rm -f $ac_rmfiles
 
3722
 
 
3723
if { (ac_try="$ac_link_default"
 
3724
case "(($ac_try" in
 
3725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3726
  *) ac_try_echo=$ac_try;;
 
3727
esac
 
3728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3729
  (eval "$ac_link_default") 2>&5
2869
3730
  ac_status=$?
2870
3731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871
3732
  (exit $ac_status); }; then
2872
 
  # Find the output, starting from the most likely.  This scheme is
2873
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2874
 
# resort.
2875
 
 
2876
 
# Be careful to initialize this variable, since it used to be cached.
2877
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2878
 
ac_cv_exeext=
2879
 
# b.out is created by i960 compilers.
2880
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3733
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3734
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3735
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3736
# so that the user can short-circuit this test for compilers unknown to
 
3737
# Autoconf.
 
3738
for ac_file in $ac_files ''
2881
3739
do
2882
3740
  test -f "$ac_file" || continue
2883
3741
  case $ac_file in
2884
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2885
 
        ;;
2886
 
    conftest.$ac_ext )
2887
 
        # This is the source file.
 
3742
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2888
3743
        ;;
2889
3744
    [ab].out )
2890
3745
        # We found the default executable, but exeext='' is most
2891
3746
        # certainly right.
2892
3747
        break;;
2893
3748
    *.* )
2894
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2895
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2896
 
        # but it would be cool to find out if it's true.  Does anybody
2897
 
        # maintain Libtool? --akim.
2898
 
        export ac_cv_exeext
 
3749
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3750
        then :; else
 
3751
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3752
        fi
 
3753
        # We set ac_cv_exeext here because the later test for it is not
 
3754
        # safe: cross compilers may not add the suffix if given an `-o'
 
3755
        # argument, so we may need to know it at that point already.
 
3756
        # Even if this section looks crufty: it has the advantage of
 
3757
        # actually working.
2899
3758
        break;;
2900
3759
    * )
2901
3760
        break;;
2902
3761
  esac
2903
3762
done
 
3763
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3764
 
2904
3765
else
 
3766
  ac_file=''
 
3767
fi
 
3768
 
 
3769
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3770
echo "${ECHO_T}$ac_file" >&6; }
 
3771
if test -z "$ac_file"; then
2905
3772
  echo "$as_me: failed program was:" >&5
2906
3773
sed 's/^/| /' conftest.$ac_ext >&5
2907
3774
 
2913
3780
fi
2914
3781
 
2915
3782
ac_exeext=$ac_cv_exeext
2916
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2917
 
echo "${ECHO_T}$ac_file" >&6
2918
3783
 
2919
 
# Check the compiler produces executables we can run.  If not, either
 
3784
# Check that the compiler produces executables we can run.  If not, either
2920
3785
# the compiler is broken, or we cross compile.
2921
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2922
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
3786
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3787
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2923
3788
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2924
3789
# If not cross compiling, check that we can run a simple program.
2925
3790
if test "$cross_compiling" != yes; then
2926
3791
  if { ac_try='./$ac_file'
2927
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928
 
  (eval $ac_try) 2>&5
 
3792
  { (case "(($ac_try" in
 
3793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3794
  *) ac_try_echo=$ac_try;;
 
3795
esac
 
3796
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3797
  (eval "$ac_try") 2>&5
2929
3798
  ac_status=$?
2930
3799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931
3800
  (exit $ac_status); }; }; then
2944
3813
    fi
2945
3814
  fi
2946
3815
fi
2947
 
echo "$as_me:$LINENO: result: yes" >&5
2948
 
echo "${ECHO_T}yes" >&6
 
3816
{ echo "$as_me:$LINENO: result: yes" >&5
 
3817
echo "${ECHO_T}yes" >&6; }
2949
3818
 
2950
3819
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2951
3820
ac_clean_files=$ac_clean_files_save
2952
 
# Check the compiler produces executables we can run.  If not, either
 
3821
# Check that the compiler produces executables we can run.  If not, either
2953
3822
# the compiler is broken, or we cross compile.
2954
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2955
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2956
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2957
 
echo "${ECHO_T}$cross_compiling" >&6
 
3823
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3824
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3825
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3826
echo "${ECHO_T}$cross_compiling" >&6; }
2958
3827
 
2959
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2960
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2961
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962
 
  (eval $ac_link) 2>&5
 
3828
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3829
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3830
if { (ac_try="$ac_link"
 
3831
case "(($ac_try" in
 
3832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3833
  *) ac_try_echo=$ac_try;;
 
3834
esac
 
3835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3836
  (eval "$ac_link") 2>&5
2963
3837
  ac_status=$?
2964
3838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965
3839
  (exit $ac_status); }; then
2970
3844
for ac_file in conftest.exe conftest conftest.*; do
2971
3845
  test -f "$ac_file" || continue
2972
3846
  case $ac_file in
2973
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3847
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2974
3848
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2975
 
          export ac_cv_exeext
2976
3849
          break;;
2977
3850
    * ) break;;
2978
3851
  esac
2986
3859
fi
2987
3860
 
2988
3861
rm -f conftest$ac_cv_exeext
2989
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2990
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3862
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3863
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2991
3864
 
2992
3865
rm -f conftest.$ac_ext
2993
3866
EXEEXT=$ac_cv_exeext
2994
3867
ac_exeext=$EXEEXT
2995
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2996
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
3868
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3869
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2997
3870
if test "${ac_cv_objext+set}" = set; then
2998
3871
  echo $ECHO_N "(cached) $ECHO_C" >&6
2999
3872
else
3013
3886
}
3014
3887
_ACEOF
3015
3888
rm -f conftest.o conftest.obj
3016
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017
 
  (eval $ac_compile) 2>&5
 
3889
if { (ac_try="$ac_compile"
 
3890
case "(($ac_try" in
 
3891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3892
  *) ac_try_echo=$ac_try;;
 
3893
esac
 
3894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3895
  (eval "$ac_compile") 2>&5
3018
3896
  ac_status=$?
3019
3897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
3898
  (exit $ac_status); }; then
3021
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3899
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3900
  test -f "$ac_file" || continue;
3022
3901
  case $ac_file in
3023
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3902
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3024
3903
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3025
3904
       break;;
3026
3905
  esac
3038
3917
 
3039
3918
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3040
3919
fi
3041
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3042
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
3920
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3921
echo "${ECHO_T}$ac_cv_objext" >&6; }
3043
3922
OBJEXT=$ac_cv_objext
3044
3923
ac_objext=$OBJEXT
3045
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3046
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3924
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3925
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3047
3926
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3048
3927
  echo $ECHO_N "(cached) $ECHO_C" >&6
3049
3928
else
3066
3945
}
3067
3946
_ACEOF
3068
3947
rm -f conftest.$ac_objext
3069
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070
 
  (eval $ac_compile) 2>conftest.er1
 
3948
if { (ac_try="$ac_compile"
 
3949
case "(($ac_try" in
 
3950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3951
  *) ac_try_echo=$ac_try;;
 
3952
esac
 
3953
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3954
  (eval "$ac_compile") 2>conftest.er1
3071
3955
  ac_status=$?
3072
3956
  grep -v '^ *+' conftest.er1 >conftest.err
3073
3957
  rm -f conftest.er1
3074
3958
  cat conftest.err >&5
3075
3959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076
 
  (exit $ac_status); } &&
3077
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079
 
  (eval $ac_try) 2>&5
3080
 
  ac_status=$?
3081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082
 
  (exit $ac_status); }; } &&
3083
 
         { ac_try='test -s conftest.$ac_objext'
3084
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085
 
  (eval $ac_try) 2>&5
3086
 
  ac_status=$?
3087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088
 
  (exit $ac_status); }; }; then
 
3960
  (exit $ac_status); } && {
 
3961
         test -z "$ac_c_werror_flag" ||
 
3962
         test ! -s conftest.err
 
3963
       } && test -s conftest.$ac_objext; then
3089
3964
  ac_compiler_gnu=yes
3090
3965
else
3091
3966
  echo "$as_me: failed program was:" >&5
3092
3967
sed 's/^/| /' conftest.$ac_ext >&5
3093
3968
 
3094
 
ac_compiler_gnu=no
 
3969
        ac_compiler_gnu=no
3095
3970
fi
3096
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3971
 
 
3972
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097
3973
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3098
3974
 
3099
3975
fi
3100
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3101
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3976
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3977
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3102
3978
GCC=`test $ac_compiler_gnu = yes && echo yes`
3103
3979
ac_test_CFLAGS=${CFLAGS+set}
3104
3980
ac_save_CFLAGS=$CFLAGS
3105
 
CFLAGS="-g"
3106
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3107
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3981
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3982
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3108
3983
if test "${ac_cv_prog_cc_g+set}" = set; then
3109
3984
  echo $ECHO_N "(cached) $ECHO_C" >&6
3110
3985
else
3111
 
  cat >conftest.$ac_ext <<_ACEOF
3112
 
/* confdefs.h.  */
3113
 
_ACEOF
3114
 
cat confdefs.h >>conftest.$ac_ext
3115
 
cat >>conftest.$ac_ext <<_ACEOF
3116
 
/* end confdefs.h.  */
3117
 
 
3118
 
int
3119
 
main ()
3120
 
{
3121
 
 
3122
 
  ;
3123
 
  return 0;
3124
 
}
3125
 
_ACEOF
3126
 
rm -f conftest.$ac_objext
3127
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128
 
  (eval $ac_compile) 2>conftest.er1
3129
 
  ac_status=$?
3130
 
  grep -v '^ *+' conftest.er1 >conftest.err
3131
 
  rm -f conftest.er1
3132
 
  cat conftest.err >&5
3133
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
 
  (exit $ac_status); } &&
3135
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3136
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137
 
  (eval $ac_try) 2>&5
3138
 
  ac_status=$?
3139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140
 
  (exit $ac_status); }; } &&
3141
 
         { ac_try='test -s conftest.$ac_objext'
3142
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143
 
  (eval $ac_try) 2>&5
3144
 
  ac_status=$?
3145
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146
 
  (exit $ac_status); }; }; then
3147
 
  ac_cv_prog_cc_g=yes
3148
 
else
3149
 
  echo "$as_me: failed program was:" >&5
3150
 
sed 's/^/| /' conftest.$ac_ext >&5
3151
 
 
3152
 
ac_cv_prog_cc_g=no
3153
 
fi
3154
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3155
 
fi
3156
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3157
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3986
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3987
   ac_c_werror_flag=yes
 
3988
   ac_cv_prog_cc_g=no
 
3989
   CFLAGS="-g"
 
3990
   cat >conftest.$ac_ext <<_ACEOF
 
3991
/* confdefs.h.  */
 
3992
_ACEOF
 
3993
cat confdefs.h >>conftest.$ac_ext
 
3994
cat >>conftest.$ac_ext <<_ACEOF
 
3995
/* end confdefs.h.  */
 
3996
 
 
3997
int
 
3998
main ()
 
3999
{
 
4000
 
 
4001
  ;
 
4002
  return 0;
 
4003
}
 
4004
_ACEOF
 
4005
rm -f conftest.$ac_objext
 
4006
if { (ac_try="$ac_compile"
 
4007
case "(($ac_try" in
 
4008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4009
  *) ac_try_echo=$ac_try;;
 
4010
esac
 
4011
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4012
  (eval "$ac_compile") 2>conftest.er1
 
4013
  ac_status=$?
 
4014
  grep -v '^ *+' conftest.er1 >conftest.err
 
4015
  rm -f conftest.er1
 
4016
  cat conftest.err >&5
 
4017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4018
  (exit $ac_status); } && {
 
4019
         test -z "$ac_c_werror_flag" ||
 
4020
         test ! -s conftest.err
 
4021
       } && test -s conftest.$ac_objext; then
 
4022
  ac_cv_prog_cc_g=yes
 
4023
else
 
4024
  echo "$as_me: failed program was:" >&5
 
4025
sed 's/^/| /' conftest.$ac_ext >&5
 
4026
 
 
4027
        CFLAGS=""
 
4028
      cat >conftest.$ac_ext <<_ACEOF
 
4029
/* confdefs.h.  */
 
4030
_ACEOF
 
4031
cat confdefs.h >>conftest.$ac_ext
 
4032
cat >>conftest.$ac_ext <<_ACEOF
 
4033
/* end confdefs.h.  */
 
4034
 
 
4035
int
 
4036
main ()
 
4037
{
 
4038
 
 
4039
  ;
 
4040
  return 0;
 
4041
}
 
4042
_ACEOF
 
4043
rm -f conftest.$ac_objext
 
4044
if { (ac_try="$ac_compile"
 
4045
case "(($ac_try" in
 
4046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4047
  *) ac_try_echo=$ac_try;;
 
4048
esac
 
4049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4050
  (eval "$ac_compile") 2>conftest.er1
 
4051
  ac_status=$?
 
4052
  grep -v '^ *+' conftest.er1 >conftest.err
 
4053
  rm -f conftest.er1
 
4054
  cat conftest.err >&5
 
4055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4056
  (exit $ac_status); } && {
 
4057
         test -z "$ac_c_werror_flag" ||
 
4058
         test ! -s conftest.err
 
4059
       } && test -s conftest.$ac_objext; then
 
4060
  :
 
4061
else
 
4062
  echo "$as_me: failed program was:" >&5
 
4063
sed 's/^/| /' conftest.$ac_ext >&5
 
4064
 
 
4065
        ac_c_werror_flag=$ac_save_c_werror_flag
 
4066
         CFLAGS="-g"
 
4067
         cat >conftest.$ac_ext <<_ACEOF
 
4068
/* confdefs.h.  */
 
4069
_ACEOF
 
4070
cat confdefs.h >>conftest.$ac_ext
 
4071
cat >>conftest.$ac_ext <<_ACEOF
 
4072
/* end confdefs.h.  */
 
4073
 
 
4074
int
 
4075
main ()
 
4076
{
 
4077
 
 
4078
  ;
 
4079
  return 0;
 
4080
}
 
4081
_ACEOF
 
4082
rm -f conftest.$ac_objext
 
4083
if { (ac_try="$ac_compile"
 
4084
case "(($ac_try" in
 
4085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4086
  *) ac_try_echo=$ac_try;;
 
4087
esac
 
4088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4089
  (eval "$ac_compile") 2>conftest.er1
 
4090
  ac_status=$?
 
4091
  grep -v '^ *+' conftest.er1 >conftest.err
 
4092
  rm -f conftest.er1
 
4093
  cat conftest.err >&5
 
4094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4095
  (exit $ac_status); } && {
 
4096
         test -z "$ac_c_werror_flag" ||
 
4097
         test ! -s conftest.err
 
4098
       } && test -s conftest.$ac_objext; then
 
4099
  ac_cv_prog_cc_g=yes
 
4100
else
 
4101
  echo "$as_me: failed program was:" >&5
 
4102
sed 's/^/| /' conftest.$ac_ext >&5
 
4103
 
 
4104
 
 
4105
fi
 
4106
 
 
4107
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4108
fi
 
4109
 
 
4110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4111
fi
 
4112
 
 
4113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4114
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4115
fi
 
4116
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
4117
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3158
4118
if test "$ac_test_CFLAGS" = set; then
3159
4119
  CFLAGS=$ac_save_CFLAGS
3160
4120
elif test $ac_cv_prog_cc_g = yes; then
3170
4130
    CFLAGS=
3171
4131
  fi
3172
4132
fi
3173
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3174
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3175
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
4133
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
4134
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
4135
if test "${ac_cv_prog_cc_c89+set}" = set; then
3176
4136
  echo $ECHO_N "(cached) $ECHO_C" >&6
3177
4137
else
3178
 
  ac_cv_prog_cc_stdc=no
 
4138
  ac_cv_prog_cc_c89=no
3179
4139
ac_save_CC=$CC
3180
4140
cat >conftest.$ac_ext <<_ACEOF
3181
4141
/* confdefs.h.  */
3209
4169
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3210
4170
   function prototypes and stuff, but not '\xHH' hex character constants.
3211
4171
   These don't provoke an error unfortunately, instead are silently treated
3212
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
4172
   as 'x'.  The following induces an error, until -std is added to get
3213
4173
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3214
4174
   array size at least.  It's necessary to write '\x00'==0 to get something
3215
 
   that's true only with -std1.  */
 
4175
   that's true only with -std.  */
3216
4176
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3217
4177
 
 
4178
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4179
   inside strings and character constants.  */
 
4180
#define FOO(x) 'x'
 
4181
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4182
 
3218
4183
int test (int i, double x);
3219
4184
struct s1 {int (*f) (int a);};
3220
4185
struct s2 {int (*f) (double a);};
3229
4194
  return 0;
3230
4195
}
3231
4196
_ACEOF
3232
 
# Don't try gcc -ansi; that turns off useful extensions and
3233
 
# breaks some systems' header files.
3234
 
# AIX                   -qlanglvl=ansi
3235
 
# Ultrix and OSF/1      -std1
3236
 
# HP-UX 10.20 and later -Ae
3237
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3238
 
# SVR4                  -Xc -D__EXTENSIONS__
3239
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4197
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4198
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3240
4199
do
3241
4200
  CC="$ac_save_CC $ac_arg"
3242
4201
  rm -f conftest.$ac_objext
3243
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244
 
  (eval $ac_compile) 2>conftest.er1
 
4202
if { (ac_try="$ac_compile"
 
4203
case "(($ac_try" in
 
4204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4205
  *) ac_try_echo=$ac_try;;
 
4206
esac
 
4207
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4208
  (eval "$ac_compile") 2>conftest.er1
3245
4209
  ac_status=$?
3246
4210
  grep -v '^ *+' conftest.er1 >conftest.err
3247
4211
  rm -f conftest.er1
3248
4212
  cat conftest.err >&5
3249
4213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250
 
  (exit $ac_status); } &&
3251
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3252
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253
 
  (eval $ac_try) 2>&5
3254
 
  ac_status=$?
3255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256
 
  (exit $ac_status); }; } &&
3257
 
         { ac_try='test -s conftest.$ac_objext'
3258
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259
 
  (eval $ac_try) 2>&5
3260
 
  ac_status=$?
3261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262
 
  (exit $ac_status); }; }; then
3263
 
  ac_cv_prog_cc_stdc=$ac_arg
3264
 
break
 
4214
  (exit $ac_status); } && {
 
4215
         test -z "$ac_c_werror_flag" ||
 
4216
         test ! -s conftest.err
 
4217
       } && test -s conftest.$ac_objext; then
 
4218
  ac_cv_prog_cc_c89=$ac_arg
3265
4219
else
3266
4220
  echo "$as_me: failed program was:" >&5
3267
4221
sed 's/^/| /' conftest.$ac_ext >&5
3268
4222
 
 
4223
 
3269
4224
fi
3270
 
rm -f conftest.err conftest.$ac_objext
 
4225
 
 
4226
rm -f core conftest.err conftest.$ac_objext
 
4227
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3271
4228
done
3272
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
4229
rm -f conftest.$ac_ext
3273
4230
CC=$ac_save_CC
3274
4231
 
3275
4232
fi
3276
 
 
3277
 
case "x$ac_cv_prog_cc_stdc" in
3278
 
  x|xno)
3279
 
    echo "$as_me:$LINENO: result: none needed" >&5
3280
 
echo "${ECHO_T}none needed" >&6 ;;
 
4233
# AC_CACHE_VAL
 
4234
case "x$ac_cv_prog_cc_c89" in
 
4235
  x)
 
4236
    { echo "$as_me:$LINENO: result: none needed" >&5
 
4237
echo "${ECHO_T}none needed" >&6; } ;;
 
4238
  xno)
 
4239
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
4240
echo "${ECHO_T}unsupported" >&6; } ;;
3281
4241
  *)
3282
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3283
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3284
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
4242
    CC="$CC $ac_cv_prog_cc_c89"
 
4243
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4244
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3285
4245
esac
3286
4246
 
3287
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
3288
 
# in C++ we need to declare it.  In case someone uses the same compiler
3289
 
# for both compiling C and C++ we need to have the C++ compiler decide
3290
 
# the declaration of exit, since it's the most demanding environment.
3291
 
cat >conftest.$ac_ext <<_ACEOF
3292
 
#ifndef __cplusplus
3293
 
  choke me
3294
 
#endif
3295
 
_ACEOF
3296
 
rm -f conftest.$ac_objext
3297
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298
 
  (eval $ac_compile) 2>conftest.er1
3299
 
  ac_status=$?
3300
 
  grep -v '^ *+' conftest.er1 >conftest.err
3301
 
  rm -f conftest.er1
3302
 
  cat conftest.err >&5
3303
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304
 
  (exit $ac_status); } &&
3305
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3306
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307
 
  (eval $ac_try) 2>&5
3308
 
  ac_status=$?
3309
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310
 
  (exit $ac_status); }; } &&
3311
 
         { ac_try='test -s conftest.$ac_objext'
3312
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313
 
  (eval $ac_try) 2>&5
3314
 
  ac_status=$?
3315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316
 
  (exit $ac_status); }; }; then
3317
 
  for ac_declaration in \
3318
 
   '' \
3319
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3320
 
   'extern "C" void std::exit (int); using std::exit;' \
3321
 
   'extern "C" void exit (int) throw ();' \
3322
 
   'extern "C" void exit (int);' \
3323
 
   'void exit (int);'
3324
 
do
3325
 
  cat >conftest.$ac_ext <<_ACEOF
3326
 
/* confdefs.h.  */
3327
 
_ACEOF
3328
 
cat confdefs.h >>conftest.$ac_ext
3329
 
cat >>conftest.$ac_ext <<_ACEOF
3330
 
/* end confdefs.h.  */
3331
 
$ac_declaration
3332
 
#include <stdlib.h>
3333
 
int
3334
 
main ()
3335
 
{
3336
 
exit (42);
3337
 
  ;
3338
 
  return 0;
3339
 
}
3340
 
_ACEOF
3341
 
rm -f conftest.$ac_objext
3342
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343
 
  (eval $ac_compile) 2>conftest.er1
3344
 
  ac_status=$?
3345
 
  grep -v '^ *+' conftest.er1 >conftest.err
3346
 
  rm -f conftest.er1
3347
 
  cat conftest.err >&5
3348
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349
 
  (exit $ac_status); } &&
3350
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3351
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352
 
  (eval $ac_try) 2>&5
3353
 
  ac_status=$?
3354
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355
 
  (exit $ac_status); }; } &&
3356
 
         { ac_try='test -s conftest.$ac_objext'
3357
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358
 
  (eval $ac_try) 2>&5
3359
 
  ac_status=$?
3360
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361
 
  (exit $ac_status); }; }; then
3362
 
  :
3363
 
else
3364
 
  echo "$as_me: failed program was:" >&5
3365
 
sed 's/^/| /' conftest.$ac_ext >&5
3366
 
 
3367
 
continue
3368
 
fi
3369
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3370
 
  cat >conftest.$ac_ext <<_ACEOF
3371
 
/* confdefs.h.  */
3372
 
_ACEOF
3373
 
cat confdefs.h >>conftest.$ac_ext
3374
 
cat >>conftest.$ac_ext <<_ACEOF
3375
 
/* end confdefs.h.  */
3376
 
$ac_declaration
3377
 
int
3378
 
main ()
3379
 
{
3380
 
exit (42);
3381
 
  ;
3382
 
  return 0;
3383
 
}
3384
 
_ACEOF
3385
 
rm -f conftest.$ac_objext
3386
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387
 
  (eval $ac_compile) 2>conftest.er1
3388
 
  ac_status=$?
3389
 
  grep -v '^ *+' conftest.er1 >conftest.err
3390
 
  rm -f conftest.er1
3391
 
  cat conftest.err >&5
3392
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393
 
  (exit $ac_status); } &&
3394
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3395
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396
 
  (eval $ac_try) 2>&5
3397
 
  ac_status=$?
3398
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399
 
  (exit $ac_status); }; } &&
3400
 
         { ac_try='test -s conftest.$ac_objext'
3401
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402
 
  (eval $ac_try) 2>&5
3403
 
  ac_status=$?
3404
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405
 
  (exit $ac_status); }; }; then
3406
 
  break
3407
 
else
3408
 
  echo "$as_me: failed program was:" >&5
3409
 
sed 's/^/| /' conftest.$ac_ext >&5
3410
 
 
3411
 
fi
3412
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413
 
done
3414
 
rm -f conftest*
3415
 
if test -n "$ac_declaration"; then
3416
 
  echo '#ifdef __cplusplus' >>confdefs.h
3417
 
  echo $ac_declaration      >>confdefs.h
3418
 
  echo '#endif'             >>confdefs.h
3419
 
fi
3420
 
 
3421
 
else
3422
 
  echo "$as_me: failed program was:" >&5
3423
 
sed 's/^/| /' conftest.$ac_ext >&5
3424
 
 
3425
 
fi
3426
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4247
 
3427
4248
ac_ext=c
3428
4249
ac_cpp='$CPP $CPPFLAGS'
3429
4250
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431
4252
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
4253
DEPDIR="${am__leading_dot}deps"
3433
4254
 
3434
 
          ac_config_commands="$ac_config_commands depfiles"
 
4255
ac_config_commands="$ac_config_commands depfiles"
3435
4256
 
3436
4257
 
3437
4258
am_make=${MAKE-make}
3441
4262
.PHONY: am__doit
3442
4263
END
3443
4264
# If we don't find an include directive, just comment out the code.
3444
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3445
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
4265
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
4266
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3446
4267
am__include="#"
3447
4268
am__quote=
3448
4269
_am_result=none
3469
4290
fi
3470
4291
 
3471
4292
 
3472
 
echo "$as_me:$LINENO: result: $_am_result" >&5
3473
 
echo "${ECHO_T}$_am_result" >&6
 
4293
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
4294
echo "${ECHO_T}$_am_result" >&6; }
3474
4295
rm -f confinc confmf
3475
4296
 
3476
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
4297
# Check whether --enable-dependency-tracking was given.
3477
4298
if test "${enable_dependency_tracking+set}" = set; then
3478
 
  enableval="$enable_dependency_tracking"
 
4299
  enableval=$enable_dependency_tracking;
 
4300
fi
3479
4301
 
3480
 
fi;
3481
4302
if test "x$enable_dependency_tracking" != xno; then
3482
4303
  am_depcomp="$ac_aux_dir/depcomp"
3483
4304
  AMDEPBACKSLASH='\'
3484
4305
fi
3485
 
 
3486
 
 
3487
 
if test "x$enable_dependency_tracking" != xno; then
 
4306
 if test "x$enable_dependency_tracking" != xno; then
3488
4307
  AMDEP_TRUE=
3489
4308
  AMDEP_FALSE='#'
3490
4309
else
3494
4313
 
3495
4314
 
3496
4315
 
3497
 
 
3498
4316
depcc="$CC"   am_compiler_list=
3499
4317
 
3500
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3501
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4318
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4319
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3502
4320
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3503
4321
  echo $ECHO_N "(cached) $ECHO_C" >&6
3504
4322
else
3562
4380
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3563
4381
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3564
4382
         >/dev/null 2>conftest.err &&
 
4383
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3565
4384
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3566
4385
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3567
4386
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3587
4406
fi
3588
4407
 
3589
4408
fi
3590
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3591
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
4409
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4410
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3592
4411
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3593
4412
 
3594
 
 
3595
 
 
3596
 
if
 
4413
 if
3597
4414
  test "x$enable_dependency_tracking" != xno \
3598
4415
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3599
4416
  am__fastdepCC_TRUE=
3609
4426
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610
4427
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611
4428
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3613
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4429
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4430
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3614
4431
# On Suns, sometimes $CPP names a directory.
3615
4432
if test -n "$CPP" && test -d "$CPP"; then
3616
4433
  CPP=
3644
4461
#endif
3645
4462
                     Syntax error
3646
4463
_ACEOF
3647
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3648
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4464
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4465
case "(($ac_try" in
 
4466
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4467
  *) ac_try_echo=$ac_try;;
 
4468
esac
 
4469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4470
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3649
4471
  ac_status=$?
3650
4472
  grep -v '^ *+' conftest.er1 >conftest.err
3651
4473
  rm -f conftest.er1
3652
4474
  cat conftest.err >&5
3653
4475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654
 
  (exit $ac_status); } >/dev/null; then
3655
 
  if test -s conftest.err; then
3656
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3657
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3658
 
  else
3659
 
    ac_cpp_err=
3660
 
  fi
3661
 
else
3662
 
  ac_cpp_err=yes
3663
 
fi
3664
 
if test -z "$ac_cpp_err"; then
 
4476
  (exit $ac_status); } >/dev/null && {
 
4477
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4478
         test ! -s conftest.err
 
4479
       }; then
3665
4480
  :
3666
4481
else
3667
4482
  echo "$as_me: failed program was:" >&5
3670
4485
  # Broken: fails on valid input.
3671
4486
continue
3672
4487
fi
 
4488
 
3673
4489
rm -f conftest.err conftest.$ac_ext
3674
4490
 
3675
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
4491
  # OK, works on sane cases.  Now check whether nonexistent headers
3676
4492
  # can be detected and how.
3677
4493
  cat >conftest.$ac_ext <<_ACEOF
3678
4494
/* confdefs.h.  */
3682
4498
/* end confdefs.h.  */
3683
4499
#include <ac_nonexistent.h>
3684
4500
_ACEOF
3685
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3686
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4501
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4502
case "(($ac_try" in
 
4503
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4504
  *) ac_try_echo=$ac_try;;
 
4505
esac
 
4506
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4507
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3687
4508
  ac_status=$?
3688
4509
  grep -v '^ *+' conftest.er1 >conftest.err
3689
4510
  rm -f conftest.er1
3690
4511
  cat conftest.err >&5
3691
4512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692
 
  (exit $ac_status); } >/dev/null; then
3693
 
  if test -s conftest.err; then
3694
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3695
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3696
 
  else
3697
 
    ac_cpp_err=
3698
 
  fi
3699
 
else
3700
 
  ac_cpp_err=yes
3701
 
fi
3702
 
if test -z "$ac_cpp_err"; then
 
4513
  (exit $ac_status); } >/dev/null && {
 
4514
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4515
         test ! -s conftest.err
 
4516
       }; then
3703
4517
  # Broken: success on invalid input.
3704
4518
continue
3705
4519
else
3710
4524
ac_preproc_ok=:
3711
4525
break
3712
4526
fi
 
4527
 
3713
4528
rm -f conftest.err conftest.$ac_ext
3714
4529
 
3715
4530
done
3727
4542
else
3728
4543
  ac_cv_prog_CPP=$CPP
3729
4544
fi
3730
 
echo "$as_me:$LINENO: result: $CPP" >&5
3731
 
echo "${ECHO_T}$CPP" >&6
 
4545
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4546
echo "${ECHO_T}$CPP" >&6; }
3732
4547
ac_preproc_ok=false
3733
4548
for ac_c_preproc_warn_flag in '' yes
3734
4549
do
3751
4566
#endif
3752
4567
                     Syntax error
3753
4568
_ACEOF
3754
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4569
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4570
case "(($ac_try" in
 
4571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4572
  *) ac_try_echo=$ac_try;;
 
4573
esac
 
4574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4575
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3756
4576
  ac_status=$?
3757
4577
  grep -v '^ *+' conftest.er1 >conftest.err
3758
4578
  rm -f conftest.er1
3759
4579
  cat conftest.err >&5
3760
4580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761
 
  (exit $ac_status); } >/dev/null; then
3762
 
  if test -s conftest.err; then
3763
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3764
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3765
 
  else
3766
 
    ac_cpp_err=
3767
 
  fi
3768
 
else
3769
 
  ac_cpp_err=yes
3770
 
fi
3771
 
if test -z "$ac_cpp_err"; then
 
4581
  (exit $ac_status); } >/dev/null && {
 
4582
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4583
         test ! -s conftest.err
 
4584
       }; then
3772
4585
  :
3773
4586
else
3774
4587
  echo "$as_me: failed program was:" >&5
3777
4590
  # Broken: fails on valid input.
3778
4591
continue
3779
4592
fi
 
4593
 
3780
4594
rm -f conftest.err conftest.$ac_ext
3781
4595
 
3782
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
4596
  # OK, works on sane cases.  Now check whether nonexistent headers
3783
4597
  # can be detected and how.
3784
4598
  cat >conftest.$ac_ext <<_ACEOF
3785
4599
/* confdefs.h.  */
3789
4603
/* end confdefs.h.  */
3790
4604
#include <ac_nonexistent.h>
3791
4605
_ACEOF
3792
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3793
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4606
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4607
case "(($ac_try" in
 
4608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4609
  *) ac_try_echo=$ac_try;;
 
4610
esac
 
4611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4612
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3794
4613
  ac_status=$?
3795
4614
  grep -v '^ *+' conftest.er1 >conftest.err
3796
4615
  rm -f conftest.er1
3797
4616
  cat conftest.err >&5
3798
4617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799
 
  (exit $ac_status); } >/dev/null; then
3800
 
  if test -s conftest.err; then
3801
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3802
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3803
 
  else
3804
 
    ac_cpp_err=
3805
 
  fi
3806
 
else
3807
 
  ac_cpp_err=yes
3808
 
fi
3809
 
if test -z "$ac_cpp_err"; then
 
4618
  (exit $ac_status); } >/dev/null && {
 
4619
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4620
         test ! -s conftest.err
 
4621
       }; then
3810
4622
  # Broken: success on invalid input.
3811
4623
continue
3812
4624
else
3817
4629
ac_preproc_ok=:
3818
4630
break
3819
4631
fi
 
4632
 
3820
4633
rm -f conftest.err conftest.$ac_ext
3821
4634
 
3822
4635
done
3838
4651
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839
4652
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840
4653
 
 
4654
if test "x$CC" != xcc; then
 
4655
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
4656
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
4657
else
 
4658
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
4659
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
4660
fi
 
4661
set dummy $CC; ac_cc=`echo $2 |
 
4662
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4663
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
4664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4665
else
 
4666
  cat >conftest.$ac_ext <<_ACEOF
 
4667
/* confdefs.h.  */
 
4668
_ACEOF
 
4669
cat confdefs.h >>conftest.$ac_ext
 
4670
cat >>conftest.$ac_ext <<_ACEOF
 
4671
/* end confdefs.h.  */
 
4672
 
 
4673
int
 
4674
main ()
 
4675
{
 
4676
 
 
4677
  ;
 
4678
  return 0;
 
4679
}
 
4680
_ACEOF
 
4681
# Make sure it works both with $CC and with simple cc.
 
4682
# We do the test twice because some compilers refuse to overwrite an
 
4683
# existing .o file with -o, though they will create one.
 
4684
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4685
rm -f conftest2.*
 
4686
if { (case "(($ac_try" in
 
4687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4688
  *) ac_try_echo=$ac_try;;
 
4689
esac
 
4690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4691
  (eval "$ac_try") 2>&5
 
4692
  ac_status=$?
 
4693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4694
  (exit $ac_status); } &&
 
4695
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
4696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4697
  *) ac_try_echo=$ac_try;;
 
4698
esac
 
4699
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4700
  (eval "$ac_try") 2>&5
 
4701
  ac_status=$?
 
4702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4703
  (exit $ac_status); };
 
4704
then
 
4705
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
4706
  if test "x$CC" != xcc; then
 
4707
    # Test first that cc exists at all.
 
4708
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4709
  { (case "(($ac_try" in
 
4710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4711
  *) ac_try_echo=$ac_try;;
 
4712
esac
 
4713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4714
  (eval "$ac_try") 2>&5
 
4715
  ac_status=$?
 
4716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4717
  (exit $ac_status); }; }; then
 
4718
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4719
      rm -f conftest2.*
 
4720
      if { (case "(($ac_try" in
 
4721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4722
  *) ac_try_echo=$ac_try;;
 
4723
esac
 
4724
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4725
  (eval "$ac_try") 2>&5
 
4726
  ac_status=$?
 
4727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4728
  (exit $ac_status); } &&
 
4729
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
4730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4731
  *) ac_try_echo=$ac_try;;
 
4732
esac
 
4733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4734
  (eval "$ac_try") 2>&5
 
4735
  ac_status=$?
 
4736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4737
  (exit $ac_status); };
 
4738
      then
 
4739
        # cc works too.
 
4740
        :
 
4741
      else
 
4742
        # cc exists but doesn't like -o.
 
4743
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4744
      fi
 
4745
    fi
 
4746
  fi
 
4747
else
 
4748
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4749
fi
 
4750
rm -f core conftest*
 
4751
 
 
4752
fi
 
4753
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
4754
  { echo "$as_me:$LINENO: result: yes" >&5
 
4755
echo "${ECHO_T}yes" >&6; }
 
4756
else
 
4757
  { echo "$as_me:$LINENO: result: no" >&5
 
4758
echo "${ECHO_T}no" >&6; }
 
4759
 
 
4760
cat >>confdefs.h <<\_ACEOF
 
4761
#define NO_MINUS_C_MINUS_O 1
 
4762
_ACEOF
 
4763
 
 
4764
fi
 
4765
 
 
4766
# FIXME: we rely on the cache variable name because
 
4767
# there is no other way.
 
4768
set dummy $CC
 
4769
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4770
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
4771
   # Losing compiler, so override with the script.
 
4772
   # FIXME: It is wrong to rewrite CC.
 
4773
   # But if we don't then we get into trouble of one sort or another.
 
4774
   # A longer-term fix would be to have automake use am__CC in this case,
 
4775
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4776
   CC="$am_aux_dir/compile $CC"
 
4777
fi
 
4778
 
 
4779
 
 
4780
if test "x$ac_cv_prog_cc_c89" = "xno" ; then
 
4781
  { { echo "$as_me:$LINENO: error: No C-89 compiler found" >&5
 
4782
echo "$as_me: error: No C-89 compiler found" >&2;}
 
4783
   { (exit 1); exit 1; }; }
 
4784
fi
3841
4785
# Find a good install program.  We prefer a C program (faster),
3842
4786
# so one script is as good as another.  But avoid the broken or
3843
4787
# incompatible versions:
3851
4795
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3852
4796
# OS/2's system install, which has a completely different semantic
3853
4797
# ./install, which can be erroneously created by make from ./install.sh.
3854
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3855
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
4798
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
4799
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3856
4800
if test -z "$INSTALL"; then
3857
4801
if test "${ac_cv_path_install+set}" = set; then
3858
4802
  echo $ECHO_N "(cached) $ECHO_C" >&6
3874
4818
    # by default.
3875
4819
    for ac_prog in ginstall scoinst install; do
3876
4820
      for ac_exec_ext in '' $ac_executable_extensions; do
3877
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
4821
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3878
4822
          if test $ac_prog = install &&
3879
4823
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3880
4824
            # AIX install.  It has an incompatible calling convention.
3893
4837
    ;;
3894
4838
esac
3895
4839
done
 
4840
IFS=$as_save_IFS
3896
4841
 
3897
4842
 
3898
4843
fi
3899
4844
  if test "${ac_cv_path_install+set}" = set; then
3900
4845
    INSTALL=$ac_cv_path_install
3901
4846
  else
3902
 
    # As a last resort, use the slow shell script.  We don't cache a
3903
 
    # path for INSTALL within a source directory, because that will
 
4847
    # As a last resort, use the slow shell script.  Don't cache a
 
4848
    # value for INSTALL within a source directory, because that will
3904
4849
    # break other packages using the cache if that directory is
3905
 
    # removed, or if the path is relative.
 
4850
    # removed, or if the value is a relative name.
3906
4851
    INSTALL=$ac_install_sh
3907
4852
  fi
3908
4853
fi
3909
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
3910
 
echo "${ECHO_T}$INSTALL" >&6
 
4854
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
4855
echo "${ECHO_T}$INSTALL" >&6; }
3911
4856
 
3912
4857
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3913
4858
# It thinks the first close brace ends the variable substitution.
3917
4862
 
3918
4863
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3919
4864
 
3920
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3921
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4865
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4866
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3922
4867
LN_S=$as_ln_s
3923
4868
if test "$LN_S" = "ln -s"; then
3924
 
  echo "$as_me:$LINENO: result: yes" >&5
3925
 
echo "${ECHO_T}yes" >&6
3926
 
else
3927
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3928
 
echo "${ECHO_T}no, using $LN_S" >&6
3929
 
fi
3930
 
 
3931
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3932
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3933
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3934
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3935
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3936
 
else
3937
 
  cat >conftest.make <<\_ACEOF
3938
 
all:
3939
 
        @echo 'ac_maketemp="$(MAKE)"'
3940
 
_ACEOF
3941
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3942
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3943
 
if test -n "$ac_maketemp"; then
3944
 
  eval ac_cv_prog_make_${ac_make}_set=yes
3945
 
else
3946
 
  eval ac_cv_prog_make_${ac_make}_set=no
3947
 
fi
3948
 
rm -f conftest.make
3949
 
fi
3950
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3951
 
  echo "$as_me:$LINENO: result: yes" >&5
3952
 
echo "${ECHO_T}yes" >&6
3953
 
  SET_MAKE=
3954
 
else
3955
 
  echo "$as_me:$LINENO: result: no" >&5
3956
 
echo "${ECHO_T}no" >&6
3957
 
  SET_MAKE="MAKE=${MAKE-make}"
 
4869
  { echo "$as_me:$LINENO: result: yes" >&5
 
4870
echo "${ECHO_T}yes" >&6; }
 
4871
else
 
4872
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4873
echo "${ECHO_T}no, using $LN_S" >&6; }
3958
4874
fi
3959
4875
 
3960
4876
if test -n "$ac_tool_prefix"; then
3961
4877
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962
4878
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3964
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4879
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4880
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3965
4881
if test "${ac_cv_prog_RANLIB+set}" = set; then
3966
4882
  echo $ECHO_N "(cached) $ECHO_C" >&6
3967
4883
else
3974
4890
  IFS=$as_save_IFS
3975
4891
  test -z "$as_dir" && as_dir=.
3976
4892
  for ac_exec_ext in '' $ac_executable_extensions; do
3977
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4893
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978
4894
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979
4895
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980
4896
    break 2
3981
4897
  fi
3982
4898
done
3983
4899
done
 
4900
IFS=$as_save_IFS
3984
4901
 
3985
4902
fi
3986
4903
fi
3987
4904
RANLIB=$ac_cv_prog_RANLIB
3988
4905
if test -n "$RANLIB"; then
3989
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3990
 
echo "${ECHO_T}$RANLIB" >&6
 
4906
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
4907
echo "${ECHO_T}$RANLIB" >&6; }
3991
4908
else
3992
 
  echo "$as_me:$LINENO: result: no" >&5
3993
 
echo "${ECHO_T}no" >&6
 
4909
  { echo "$as_me:$LINENO: result: no" >&5
 
4910
echo "${ECHO_T}no" >&6; }
3994
4911
fi
 
4912
 
3995
4913
 
3996
4914
fi
3997
4915
if test -z "$ac_cv_prog_RANLIB"; then
3998
4916
  ac_ct_RANLIB=$RANLIB
3999
4917
  # Extract the first word of "ranlib", so it can be a program name with args.
4000
4918
set dummy ranlib; ac_word=$2
4001
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4002
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4919
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4920
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4003
4921
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004
4922
  echo $ECHO_N "(cached) $ECHO_C" >&6
4005
4923
else
4012
4930
  IFS=$as_save_IFS
4013
4931
  test -z "$as_dir" && as_dir=.
4014
4932
  for ac_exec_ext in '' $ac_executable_extensions; do
4015
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4933
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016
4934
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4017
4935
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018
4936
    break 2
4019
4937
  fi
4020
4938
done
4021
4939
done
 
4940
IFS=$as_save_IFS
4022
4941
 
4023
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4024
4942
fi
4025
4943
fi
4026
4944
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027
4945
if test -n "$ac_ct_RANLIB"; then
4028
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
4946
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
4947
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4030
4948
else
4031
 
  echo "$as_me:$LINENO: result: no" >&5
4032
 
echo "${ECHO_T}no" >&6
 
4949
  { echo "$as_me:$LINENO: result: no" >&5
 
4950
echo "${ECHO_T}no" >&6; }
4033
4951
fi
4034
4952
 
4035
 
  RANLIB=$ac_ct_RANLIB
 
4953
  if test "x$ac_ct_RANLIB" = x; then
 
4954
    RANLIB=":"
 
4955
  else
 
4956
    case $cross_compiling:$ac_tool_warned in
 
4957
yes:)
 
4958
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4959
whose name does not start with the host triplet.  If you think this
 
4960
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4961
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4962
whose name does not start with the host triplet.  If you think this
 
4963
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4964
ac_tool_warned=yes ;;
 
4965
esac
 
4966
    RANLIB=$ac_ct_RANLIB
 
4967
  fi
4036
4968
else
4037
4969
  RANLIB="$ac_cv_prog_RANLIB"
4038
4970
fi
4040
4972
if test -n "$ac_tool_prefix"; then
4041
4973
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4042
4974
set dummy ${ac_tool_prefix}ar; ac_word=$2
4043
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4044
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4975
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4976
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4045
4977
if test "${ac_cv_prog_AR+set}" = set; then
4046
4978
  echo $ECHO_N "(cached) $ECHO_C" >&6
4047
4979
else
4054
4986
  IFS=$as_save_IFS
4055
4987
  test -z "$as_dir" && as_dir=.
4056
4988
  for ac_exec_ext in '' $ac_executable_extensions; do
4057
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4989
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4058
4990
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4059
4991
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060
4992
    break 2
4061
4993
  fi
4062
4994
done
4063
4995
done
 
4996
IFS=$as_save_IFS
4064
4997
 
4065
4998
fi
4066
4999
fi
4067
5000
AR=$ac_cv_prog_AR
4068
5001
if test -n "$AR"; then
4069
 
  echo "$as_me:$LINENO: result: $AR" >&5
4070
 
echo "${ECHO_T}$AR" >&6
 
5002
  { echo "$as_me:$LINENO: result: $AR" >&5
 
5003
echo "${ECHO_T}$AR" >&6; }
4071
5004
else
4072
 
  echo "$as_me:$LINENO: result: no" >&5
4073
 
echo "${ECHO_T}no" >&6
 
5005
  { echo "$as_me:$LINENO: result: no" >&5
 
5006
echo "${ECHO_T}no" >&6; }
4074
5007
fi
 
5008
 
4075
5009
 
4076
5010
fi
4077
5011
if test -z "$ac_cv_prog_AR"; then
4078
5012
  ac_ct_AR=$AR
4079
5013
  # Extract the first word of "ar", so it can be a program name with args.
4080
5014
set dummy ar; ac_word=$2
4081
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4082
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5015
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5016
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4083
5017
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4084
5018
  echo $ECHO_N "(cached) $ECHO_C" >&6
4085
5019
else
4092
5026
  IFS=$as_save_IFS
4093
5027
  test -z "$as_dir" && as_dir=.
4094
5028
  for ac_exec_ext in '' $ac_executable_extensions; do
4095
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5029
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096
5030
    ac_cv_prog_ac_ct_AR="ar"
4097
5031
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098
5032
    break 2
4099
5033
  fi
4100
5034
done
4101
5035
done
 
5036
IFS=$as_save_IFS
4102
5037
 
4103
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
4104
5038
fi
4105
5039
fi
4106
5040
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4107
5041
if test -n "$ac_ct_AR"; then
4108
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4109
 
echo "${ECHO_T}$ac_ct_AR" >&6
 
5042
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5043
echo "${ECHO_T}$ac_ct_AR" >&6; }
4110
5044
else
4111
 
  echo "$as_me:$LINENO: result: no" >&5
4112
 
echo "${ECHO_T}no" >&6
 
5045
  { echo "$as_me:$LINENO: result: no" >&5
 
5046
echo "${ECHO_T}no" >&6; }
4113
5047
fi
4114
5048
 
4115
 
  AR=$ac_ct_AR
 
5049
  if test "x$ac_ct_AR" = x; then
 
5050
    AR=":"
 
5051
  else
 
5052
    case $cross_compiling:$ac_tool_warned in
 
5053
yes:)
 
5054
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5055
whose name does not start with the host triplet.  If you think this
 
5056
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5057
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5058
whose name does not start with the host triplet.  If you think this
 
5059
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5060
ac_tool_warned=yes ;;
 
5061
esac
 
5062
    AR=$ac_ct_AR
 
5063
  fi
4116
5064
else
4117
5065
  AR="$ac_cv_prog_AR"
4118
5066
fi
4119
5067
 
4120
5068
# Extract the first word of ""perl"", so it can be a program name with args.
4121
5069
set dummy "perl"; ac_word=$2
4122
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4123
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5070
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5071
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124
5072
if test "${ac_cv_path_PERL+set}" = set; then
4125
5073
  echo $ECHO_N "(cached) $ECHO_C" >&6
4126
5074
else
4135
5083
  IFS=$as_save_IFS
4136
5084
  test -z "$as_dir" && as_dir=.
4137
5085
  for ac_exec_ext in '' $ac_executable_extensions; do
4138
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5086
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139
5087
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4140
5088
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141
5089
    break 2
4142
5090
  fi
4143
5091
done
4144
5092
done
 
5093
IFS=$as_save_IFS
4145
5094
 
4146
5095
  ;;
4147
5096
esac
4148
5097
fi
4149
5098
PERL=$ac_cv_path_PERL
4150
 
 
4151
5099
if test -n "$PERL"; then
4152
 
  echo "$as_me:$LINENO: result: $PERL" >&5
4153
 
echo "${ECHO_T}$PERL" >&6
4154
 
else
4155
 
  echo "$as_me:$LINENO: result: no" >&5
4156
 
echo "${ECHO_T}no" >&6
4157
 
fi
4158
 
 
4159
 
 
4160
 
echo "$as_me:$LINENO: checking for library containing strerror" >&5
4161
 
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4162
 
if test "${ac_cv_search_strerror+set}" = set; then
4163
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4164
 
else
4165
 
  ac_func_search_save_LIBS=$LIBS
4166
 
ac_cv_search_strerror=no
 
5100
  { echo "$as_me:$LINENO: result: $PERL" >&5
 
5101
echo "${ECHO_T}$PERL" >&6; }
 
5102
else
 
5103
  { echo "$as_me:$LINENO: result: no" >&5
 
5104
echo "${ECHO_T}no" >&6; }
 
5105
fi
 
5106
 
 
5107
 
 
5108
if test -n "$ac_tool_prefix"; then
 
5109
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
 
5110
set dummy ${ac_tool_prefix}windres; ac_word=$2
 
5111
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5113
if test "${ac_cv_prog_WINDRES+set}" = set; then
 
5114
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5115
else
 
5116
  if test -n "$WINDRES"; then
 
5117
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
 
5118
else
 
5119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5120
for as_dir in $PATH
 
5121
do
 
5122
  IFS=$as_save_IFS
 
5123
  test -z "$as_dir" && as_dir=.
 
5124
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5125
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5126
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
 
5127
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5128
    break 2
 
5129
  fi
 
5130
done
 
5131
done
 
5132
IFS=$as_save_IFS
 
5133
 
 
5134
fi
 
5135
fi
 
5136
WINDRES=$ac_cv_prog_WINDRES
 
5137
if test -n "$WINDRES"; then
 
5138
  { echo "$as_me:$LINENO: result: $WINDRES" >&5
 
5139
echo "${ECHO_T}$WINDRES" >&6; }
 
5140
else
 
5141
  { echo "$as_me:$LINENO: result: no" >&5
 
5142
echo "${ECHO_T}no" >&6; }
 
5143
fi
 
5144
 
 
5145
 
 
5146
fi
 
5147
if test -z "$ac_cv_prog_WINDRES"; then
 
5148
  ac_ct_WINDRES=$WINDRES
 
5149
  # Extract the first word of "windres", so it can be a program name with args.
 
5150
set dummy windres; ac_word=$2
 
5151
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5152
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5153
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
 
5154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5155
else
 
5156
  if test -n "$ac_ct_WINDRES"; then
 
5157
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
 
5158
else
 
5159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5160
for as_dir in $PATH
 
5161
do
 
5162
  IFS=$as_save_IFS
 
5163
  test -z "$as_dir" && as_dir=.
 
5164
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5165
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5166
    ac_cv_prog_ac_ct_WINDRES="windres"
 
5167
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5168
    break 2
 
5169
  fi
 
5170
done
 
5171
done
 
5172
IFS=$as_save_IFS
 
5173
 
 
5174
fi
 
5175
fi
 
5176
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
 
5177
if test -n "$ac_ct_WINDRES"; then
 
5178
  { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
 
5179
echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
 
5180
else
 
5181
  { echo "$as_me:$LINENO: result: no" >&5
 
5182
echo "${ECHO_T}no" >&6; }
 
5183
fi
 
5184
 
 
5185
  if test "x$ac_ct_WINDRES" = x; then
 
5186
    WINDRES=":"
 
5187
  else
 
5188
    case $cross_compiling:$ac_tool_warned in
 
5189
yes:)
 
5190
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5191
whose name does not start with the host triplet.  If you think this
 
5192
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5193
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5194
whose name does not start with the host triplet.  If you think this
 
5195
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5196
ac_tool_warned=yes ;;
 
5197
esac
 
5198
    WINDRES=$ac_ct_WINDRES
 
5199
  fi
 
5200
else
 
5201
  WINDRES="$ac_cv_prog_WINDRES"
 
5202
fi
 
5203
 
 
5204
 
 
5205
 
 
5206
        { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
5207
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
 
5208
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
5209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5210
else
 
5211
  ac_check_lib_save_LIBS=$LIBS
 
5212
LIBS="-lcposix  $LIBS"
4167
5213
cat >conftest.$ac_ext <<_ACEOF
4168
5214
/* confdefs.h.  */
4169
5215
_ACEOF
4171
5217
cat >>conftest.$ac_ext <<_ACEOF
4172
5218
/* end confdefs.h.  */
4173
5219
 
4174
 
/* Override any gcc2 internal prototype to avoid an error.  */
4175
 
#ifdef __cplusplus
4176
 
extern "C"
4177
 
#endif
4178
 
/* We use char because int might match the return type of a gcc2
4179
 
   builtin and then its argument prototype would still apply.  */
4180
 
char strerror ();
4181
 
int
4182
 
main ()
4183
 
{
4184
 
strerror ();
4185
 
  ;
4186
 
  return 0;
4187
 
}
4188
 
_ACEOF
4189
 
rm -f conftest.$ac_objext conftest$ac_exeext
4190
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4191
 
  (eval $ac_link) 2>conftest.er1
4192
 
  ac_status=$?
4193
 
  grep -v '^ *+' conftest.er1 >conftest.err
4194
 
  rm -f conftest.er1
4195
 
  cat conftest.err >&5
4196
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197
 
  (exit $ac_status); } &&
4198
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4199
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200
 
  (eval $ac_try) 2>&5
4201
 
  ac_status=$?
4202
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203
 
  (exit $ac_status); }; } &&
4204
 
         { ac_try='test -s conftest$ac_exeext'
4205
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206
 
  (eval $ac_try) 2>&5
4207
 
  ac_status=$?
4208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209
 
  (exit $ac_status); }; }; then
4210
 
  ac_cv_search_strerror="none required"
4211
 
else
4212
 
  echo "$as_me: failed program was:" >&5
4213
 
sed 's/^/| /' conftest.$ac_ext >&5
4214
 
 
4215
 
fi
4216
 
rm -f conftest.err conftest.$ac_objext \
4217
 
      conftest$ac_exeext conftest.$ac_ext
4218
 
if test "$ac_cv_search_strerror" = no; then
4219
 
  for ac_lib in cposix; do
4220
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4221
 
    cat >conftest.$ac_ext <<_ACEOF
4222
 
/* confdefs.h.  */
4223
 
_ACEOF
4224
 
cat confdefs.h >>conftest.$ac_ext
4225
 
cat >>conftest.$ac_ext <<_ACEOF
4226
 
/* end confdefs.h.  */
4227
 
 
4228
 
/* Override any gcc2 internal prototype to avoid an error.  */
4229
 
#ifdef __cplusplus
4230
 
extern "C"
4231
 
#endif
4232
 
/* We use char because int might match the return type of a gcc2
4233
 
   builtin and then its argument prototype would still apply.  */
4234
 
char strerror ();
4235
 
int
4236
 
main ()
4237
 
{
4238
 
strerror ();
4239
 
  ;
4240
 
  return 0;
4241
 
}
4242
 
_ACEOF
4243
 
rm -f conftest.$ac_objext conftest$ac_exeext
4244
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245
 
  (eval $ac_link) 2>conftest.er1
4246
 
  ac_status=$?
4247
 
  grep -v '^ *+' conftest.er1 >conftest.err
4248
 
  rm -f conftest.er1
4249
 
  cat conftest.err >&5
4250
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251
 
  (exit $ac_status); } &&
4252
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4253
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254
 
  (eval $ac_try) 2>&5
4255
 
  ac_status=$?
4256
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257
 
  (exit $ac_status); }; } &&
4258
 
         { ac_try='test -s conftest$ac_exeext'
4259
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260
 
  (eval $ac_try) 2>&5
4261
 
  ac_status=$?
4262
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263
 
  (exit $ac_status); }; }; then
4264
 
  ac_cv_search_strerror="-l$ac_lib"
4265
 
break
4266
 
else
4267
 
  echo "$as_me: failed program was:" >&5
4268
 
sed 's/^/| /' conftest.$ac_ext >&5
4269
 
 
4270
 
fi
4271
 
rm -f conftest.err conftest.$ac_objext \
4272
 
      conftest$ac_exeext conftest.$ac_ext
4273
 
  done
4274
 
fi
4275
 
LIBS=$ac_func_search_save_LIBS
4276
 
fi
4277
 
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4278
 
echo "${ECHO_T}$ac_cv_search_strerror" >&6
4279
 
if test "$ac_cv_search_strerror" != no; then
4280
 
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4281
 
 
4282
 
fi
4283
 
 
4284
 
 
4285
 
 
4286
 
 
4287
 
# Check whether --enable-largefile or --disable-largefile was given.
 
5220
/* Override any GCC internal prototype to avoid an error.
 
5221
   Use char because int might match the return type of a GCC
 
5222
   builtin and then its argument prototype would still apply.  */
 
5223
#ifdef __cplusplus
 
5224
extern "C"
 
5225
#endif
 
5226
char strerror ();
 
5227
int
 
5228
main ()
 
5229
{
 
5230
return strerror ();
 
5231
  ;
 
5232
  return 0;
 
5233
}
 
5234
_ACEOF
 
5235
rm -f conftest.$ac_objext conftest$ac_exeext
 
5236
if { (ac_try="$ac_link"
 
5237
case "(($ac_try" in
 
5238
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5239
  *) ac_try_echo=$ac_try;;
 
5240
esac
 
5241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5242
  (eval "$ac_link") 2>conftest.er1
 
5243
  ac_status=$?
 
5244
  grep -v '^ *+' conftest.er1 >conftest.err
 
5245
  rm -f conftest.er1
 
5246
  cat conftest.err >&5
 
5247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5248
  (exit $ac_status); } && {
 
5249
         test -z "$ac_c_werror_flag" ||
 
5250
         test ! -s conftest.err
 
5251
       } && test -s conftest$ac_exeext &&
 
5252
       $as_test_x conftest$ac_exeext; then
 
5253
  ac_cv_lib_cposix_strerror=yes
 
5254
else
 
5255
  echo "$as_me: failed program was:" >&5
 
5256
sed 's/^/| /' conftest.$ac_ext >&5
 
5257
 
 
5258
        ac_cv_lib_cposix_strerror=no
 
5259
fi
 
5260
 
 
5261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5262
      conftest$ac_exeext conftest.$ac_ext
 
5263
LIBS=$ac_check_lib_save_LIBS
 
5264
fi
 
5265
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
5266
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
 
5267
if test $ac_cv_lib_cposix_strerror = yes; then
 
5268
  LIBS="$LIBS -lcposix"
 
5269
fi
 
5270
 
 
5271
 
 
5272
 
 
5273
 
 
5274
 
 
5275
 
 
5276
# Check whether --enable-largefile was given.
4288
5277
if test "${enable_largefile+set}" = set; then
4289
 
  enableval="$enable_largefile"
 
5278
  enableval=$enable_largefile;
 
5279
fi
4290
5280
 
4291
 
fi;
4292
5281
if test "$enable_largefile" != no; then
4293
5282
 
4294
 
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4295
 
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
 
5283
  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
5284
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4296
5285
if test "${ac_cv_sys_largefile_CC+set}" = set; then
4297
5286
  echo $ECHO_N "(cached) $ECHO_C" >&6
4298
5287
else
4300
5289
     if test "$GCC" != yes; then
4301
5290
       ac_save_CC=$CC
4302
5291
       while :; do
4303
 
         # IRIX 6.2 and later do not support large files by default,
4304
 
         # so use the C compiler's -n32 option if that helps.
 
5292
         # IRIX 6.2 and later do not support large files by default,
 
5293
         # so use the C compiler's -n32 option if that helps.
4305
5294
         cat >conftest.$ac_ext <<_ACEOF
4306
5295
/* confdefs.h.  */
4307
5296
_ACEOF
4325
5314
  return 0;
4326
5315
}
4327
5316
_ACEOF
4328
 
         rm -f conftest.$ac_objext
4329
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330
 
  (eval $ac_compile) 2>conftest.er1
 
5317
         rm -f conftest.$ac_objext
 
5318
if { (ac_try="$ac_compile"
 
5319
case "(($ac_try" in
 
5320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5321
  *) ac_try_echo=$ac_try;;
 
5322
esac
 
5323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5324
  (eval "$ac_compile") 2>conftest.er1
4331
5325
  ac_status=$?
4332
5326
  grep -v '^ *+' conftest.er1 >conftest.err
4333
5327
  rm -f conftest.er1
4334
5328
  cat conftest.err >&5
4335
5329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
 
  (exit $ac_status); } &&
4337
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4338
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339
 
  (eval $ac_try) 2>&5
4340
 
  ac_status=$?
4341
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342
 
  (exit $ac_status); }; } &&
4343
 
         { ac_try='test -s conftest.$ac_objext'
4344
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345
 
  (eval $ac_try) 2>&5
4346
 
  ac_status=$?
4347
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348
 
  (exit $ac_status); }; }; then
 
5330
  (exit $ac_status); } && {
 
5331
         test -z "$ac_c_werror_flag" ||
 
5332
         test ! -s conftest.err
 
5333
       } && test -s conftest.$ac_objext; then
4349
5334
  break
4350
5335
else
4351
5336
  echo "$as_me: failed program was:" >&5
4352
5337
sed 's/^/| /' conftest.$ac_ext >&5
4353
5338
 
 
5339
 
4354
5340
fi
4355
 
rm -f conftest.err conftest.$ac_objext
4356
 
         CC="$CC -n32"
4357
 
         rm -f conftest.$ac_objext
4358
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359
 
  (eval $ac_compile) 2>conftest.er1
 
5341
 
 
5342
rm -f core conftest.err conftest.$ac_objext
 
5343
         CC="$CC -n32"
 
5344
         rm -f conftest.$ac_objext
 
5345
if { (ac_try="$ac_compile"
 
5346
case "(($ac_try" in
 
5347
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5348
  *) ac_try_echo=$ac_try;;
 
5349
esac
 
5350
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5351
  (eval "$ac_compile") 2>conftest.er1
4360
5352
  ac_status=$?
4361
5353
  grep -v '^ *+' conftest.er1 >conftest.err
4362
5354
  rm -f conftest.er1
4363
5355
  cat conftest.err >&5
4364
5356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365
 
  (exit $ac_status); } &&
4366
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368
 
  (eval $ac_try) 2>&5
4369
 
  ac_status=$?
4370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371
 
  (exit $ac_status); }; } &&
4372
 
         { ac_try='test -s conftest.$ac_objext'
4373
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374
 
  (eval $ac_try) 2>&5
4375
 
  ac_status=$?
4376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377
 
  (exit $ac_status); }; }; then
 
5357
  (exit $ac_status); } && {
 
5358
         test -z "$ac_c_werror_flag" ||
 
5359
         test ! -s conftest.err
 
5360
       } && test -s conftest.$ac_objext; then
4378
5361
  ac_cv_sys_largefile_CC=' -n32'; break
4379
5362
else
4380
5363
  echo "$as_me: failed program was:" >&5
4381
5364
sed 's/^/| /' conftest.$ac_ext >&5
4382
5365
 
 
5366
 
4383
5367
fi
4384
 
rm -f conftest.err conftest.$ac_objext
 
5368
 
 
5369
rm -f core conftest.err conftest.$ac_objext
4385
5370
         break
4386
5371
       done
4387
5372
       CC=$ac_save_CC
4388
5373
       rm -f conftest.$ac_ext
4389
5374
    fi
4390
5375
fi
4391
 
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4392
 
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
 
5376
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
5377
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4393
5378
  if test "$ac_cv_sys_largefile_CC" != no; then
4394
5379
    CC=$CC$ac_cv_sys_largefile_CC
4395
5380
  fi
4396
5381
 
4397
 
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4398
 
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
 
5382
  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
5383
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4399
5384
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4400
5385
  echo $ECHO_N "(cached) $ECHO_C" >&6
4401
5386
else
4402
5387
  while :; do
4403
 
  ac_cv_sys_file_offset_bits=no
4404
5388
  cat >conftest.$ac_ext <<_ACEOF
4405
5389
/* confdefs.h.  */
4406
5390
_ACEOF
4425
5409
}
4426
5410
_ACEOF
4427
5411
rm -f conftest.$ac_objext
4428
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429
 
  (eval $ac_compile) 2>conftest.er1
 
5412
if { (ac_try="$ac_compile"
 
5413
case "(($ac_try" in
 
5414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5415
  *) ac_try_echo=$ac_try;;
 
5416
esac
 
5417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5418
  (eval "$ac_compile") 2>conftest.er1
4430
5419
  ac_status=$?
4431
5420
  grep -v '^ *+' conftest.er1 >conftest.err
4432
5421
  rm -f conftest.er1
4433
5422
  cat conftest.err >&5
4434
5423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435
 
  (exit $ac_status); } &&
4436
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4437
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438
 
  (eval $ac_try) 2>&5
4439
 
  ac_status=$?
4440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441
 
  (exit $ac_status); }; } &&
4442
 
         { ac_try='test -s conftest.$ac_objext'
4443
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444
 
  (eval $ac_try) 2>&5
4445
 
  ac_status=$?
4446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447
 
  (exit $ac_status); }; }; then
4448
 
  break
 
5424
  (exit $ac_status); } && {
 
5425
         test -z "$ac_c_werror_flag" ||
 
5426
         test ! -s conftest.err
 
5427
       } && test -s conftest.$ac_objext; then
 
5428
  ac_cv_sys_file_offset_bits=no; break
4449
5429
else
4450
5430
  echo "$as_me: failed program was:" >&5
4451
5431
sed 's/^/| /' conftest.$ac_ext >&5
4452
5432
 
 
5433
 
4453
5434
fi
4454
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5435
 
 
5436
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455
5437
  cat >conftest.$ac_ext <<_ACEOF
4456
5438
/* confdefs.h.  */
4457
5439
_ACEOF
4477
5459
}
4478
5460
_ACEOF
4479
5461
rm -f conftest.$ac_objext
4480
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481
 
  (eval $ac_compile) 2>conftest.er1
 
5462
if { (ac_try="$ac_compile"
 
5463
case "(($ac_try" in
 
5464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5465
  *) ac_try_echo=$ac_try;;
 
5466
esac
 
5467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5468
  (eval "$ac_compile") 2>conftest.er1
4482
5469
  ac_status=$?
4483
5470
  grep -v '^ *+' conftest.er1 >conftest.err
4484
5471
  rm -f conftest.er1
4485
5472
  cat conftest.err >&5
4486
5473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487
 
  (exit $ac_status); } &&
4488
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4489
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490
 
  (eval $ac_try) 2>&5
4491
 
  ac_status=$?
4492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493
 
  (exit $ac_status); }; } &&
4494
 
         { ac_try='test -s conftest.$ac_objext'
4495
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496
 
  (eval $ac_try) 2>&5
4497
 
  ac_status=$?
4498
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499
 
  (exit $ac_status); }; }; then
 
5474
  (exit $ac_status); } && {
 
5475
         test -z "$ac_c_werror_flag" ||
 
5476
         test ! -s conftest.err
 
5477
       } && test -s conftest.$ac_objext; then
4500
5478
  ac_cv_sys_file_offset_bits=64; break
4501
5479
else
4502
5480
  echo "$as_me: failed program was:" >&5
4503
5481
sed 's/^/| /' conftest.$ac_ext >&5
4504
5482
 
 
5483
 
4505
5484
fi
4506
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5485
 
 
5486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5487
  ac_cv_sys_file_offset_bits=unknown
4507
5488
  break
4508
5489
done
4509
5490
fi
4510
 
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4511
 
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4512
 
if test "$ac_cv_sys_file_offset_bits" != no; then
4513
 
 
 
5491
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
5492
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
 
5493
case $ac_cv_sys_file_offset_bits in #(
 
5494
  no | unknown) ;;
 
5495
  *)
4514
5496
cat >>confdefs.h <<_ACEOF
4515
5497
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4516
5498
_ACEOF
4517
 
 
4518
 
fi
 
5499
;;
 
5500
esac
4519
5501
rm -f conftest*
4520
 
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4521
 
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
 
5502
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
5503
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
5504
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4522
5505
if test "${ac_cv_sys_large_files+set}" = set; then
4523
5506
  echo $ECHO_N "(cached) $ECHO_C" >&6
4524
5507
else
4525
5508
  while :; do
4526
 
  ac_cv_sys_large_files=no
4527
5509
  cat >conftest.$ac_ext <<_ACEOF
4528
5510
/* confdefs.h.  */
4529
5511
_ACEOF
4548
5530
}
4549
5531
_ACEOF
4550
5532
rm -f conftest.$ac_objext
4551
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4552
 
  (eval $ac_compile) 2>conftest.er1
 
5533
if { (ac_try="$ac_compile"
 
5534
case "(($ac_try" in
 
5535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5536
  *) ac_try_echo=$ac_try;;
 
5537
esac
 
5538
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5539
  (eval "$ac_compile") 2>conftest.er1
4553
5540
  ac_status=$?
4554
5541
  grep -v '^ *+' conftest.er1 >conftest.err
4555
5542
  rm -f conftest.er1
4556
5543
  cat conftest.err >&5
4557
5544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558
 
  (exit $ac_status); } &&
4559
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561
 
  (eval $ac_try) 2>&5
4562
 
  ac_status=$?
4563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564
 
  (exit $ac_status); }; } &&
4565
 
         { ac_try='test -s conftest.$ac_objext'
4566
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567
 
  (eval $ac_try) 2>&5
4568
 
  ac_status=$?
4569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570
 
  (exit $ac_status); }; }; then
4571
 
  break
 
5545
  (exit $ac_status); } && {
 
5546
         test -z "$ac_c_werror_flag" ||
 
5547
         test ! -s conftest.err
 
5548
       } && test -s conftest.$ac_objext; then
 
5549
  ac_cv_sys_large_files=no; break
4572
5550
else
4573
5551
  echo "$as_me: failed program was:" >&5
4574
5552
sed 's/^/| /' conftest.$ac_ext >&5
4575
5553
 
 
5554
 
4576
5555
fi
4577
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5556
 
 
5557
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578
5558
  cat >conftest.$ac_ext <<_ACEOF
4579
5559
/* confdefs.h.  */
4580
5560
_ACEOF
4600
5580
}
4601
5581
_ACEOF
4602
5582
rm -f conftest.$ac_objext
4603
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604
 
  (eval $ac_compile) 2>conftest.er1
 
5583
if { (ac_try="$ac_compile"
 
5584
case "(($ac_try" in
 
5585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5586
  *) ac_try_echo=$ac_try;;
 
5587
esac
 
5588
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5589
  (eval "$ac_compile") 2>conftest.er1
4605
5590
  ac_status=$?
4606
5591
  grep -v '^ *+' conftest.er1 >conftest.err
4607
5592
  rm -f conftest.er1
4608
5593
  cat conftest.err >&5
4609
5594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610
 
  (exit $ac_status); } &&
4611
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4612
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613
 
  (eval $ac_try) 2>&5
4614
 
  ac_status=$?
4615
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616
 
  (exit $ac_status); }; } &&
4617
 
         { ac_try='test -s conftest.$ac_objext'
4618
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619
 
  (eval $ac_try) 2>&5
4620
 
  ac_status=$?
4621
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622
 
  (exit $ac_status); }; }; then
 
5595
  (exit $ac_status); } && {
 
5596
         test -z "$ac_c_werror_flag" ||
 
5597
         test ! -s conftest.err
 
5598
       } && test -s conftest.$ac_objext; then
4623
5599
  ac_cv_sys_large_files=1; break
4624
5600
else
4625
5601
  echo "$as_me: failed program was:" >&5
4626
5602
sed 's/^/| /' conftest.$ac_ext >&5
4627
5603
 
 
5604
 
4628
5605
fi
4629
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5606
 
 
5607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5608
  ac_cv_sys_large_files=unknown
4630
5609
  break
4631
5610
done
4632
5611
fi
4633
 
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4634
 
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4635
 
if test "$ac_cv_sys_large_files" != no; then
4636
 
 
 
5612
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
5613
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
 
5614
case $ac_cv_sys_large_files in #(
 
5615
  no | unknown) ;;
 
5616
  *)
4637
5617
cat >>confdefs.h <<_ACEOF
4638
5618
#define _LARGE_FILES $ac_cv_sys_large_files
4639
5619
_ACEOF
4640
 
 
4641
 
fi
 
5620
;;
 
5621
esac
4642
5622
rm -f conftest*
4643
 
fi
4644
 
 
4645
 
# Extract the first word of "docbook-to-man", so it can be a program name with args.
4646
 
set dummy docbook-to-man; ac_word=$2
4647
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4648
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649
 
if test "${ac_cv_prog_DOCBOOK_TO_MAN+set}" = set; then
4650
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4651
 
else
4652
 
  if test -n "$DOCBOOK_TO_MAN"; then
4653
 
  ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
4654
 
else
4655
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656
 
for as_dir in $PATH
4657
 
do
4658
 
  IFS=$as_save_IFS
4659
 
  test -z "$as_dir" && as_dir=.
4660
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4661
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662
 
    ac_cv_prog_DOCBOOK_TO_MAN="yes"
4663
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664
 
    break 2
4665
5623
  fi
4666
 
done
4667
 
done
4668
 
 
4669
 
  test -z "$ac_cv_prog_DOCBOOK_TO_MAN" && ac_cv_prog_DOCBOOK_TO_MAN="no"
4670
 
fi
4671
 
fi
4672
 
DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
4673
 
if test -n "$DOCBOOK_TO_MAN"; then
4674
 
  echo "$as_me:$LINENO: result: $DOCBOOK_TO_MAN" >&5
4675
 
echo "${ECHO_T}$DOCBOOK_TO_MAN" >&6
4676
 
else
4677
 
  echo "$as_me:$LINENO: result: no" >&5
4678
 
echo "${ECHO_T}no" >&6
4679
 
fi
4680
 
 
4681
 
 
4682
 
 
4683
 
if test "$ac_cv_prog_DOCBOOK_TO_MAN" = yes; then
4684
 
  HAVE_DOCBOOK_TO_MAN_TRUE=
4685
 
  HAVE_DOCBOOK_TO_MAN_FALSE='#'
4686
 
else
4687
 
  HAVE_DOCBOOK_TO_MAN_TRUE='#'
4688
 
  HAVE_DOCBOOK_TO_MAN_FALSE=
4689
 
fi
4690
 
 
4691
 
 echo "$as_me:$LINENO: checking for faqprog.pl" >&5
4692
 
echo $ECHO_N "checking for faqprog.pl... $ECHO_C" >&6
 
5624
fi
 
5625
 
 
5626
 { echo "$as_me:$LINENO: checking for faqprog.pl" >&5
 
5627
echo $ECHO_N "checking for faqprog.pl... $ECHO_C" >&6; }
4693
5628
    if faqprog.pl -V 2>/dev/null | grep '^faqprog.pl ' >/dev/null 2>&1; then
4694
5629
        working_faqprog=yes
4695
5630
        FAQPROG="faqprog.pl"
4697
5632
        working_faqprog=no
4698
5633
        FAQPROG=": "
4699
5634
    fi
4700
 
    echo "$as_me:$LINENO: result: $working_faqprog" >&5
4701
 
echo "${ECHO_T}$working_faqprog" >&6
4702
 
 
4703
 
 
4704
 
 
4705
 
if test "$working_faqprog" = "yes" ; then
 
5635
    { echo "$as_me:$LINENO: result: $working_faqprog" >&5
 
5636
echo "${ECHO_T}$working_faqprog" >&6; }
 
5637
 
 
5638
     if test "$working_faqprog" = "yes" ; then
4706
5639
  WORKING_FAQPROG_TRUE=
4707
5640
  WORKING_FAQPROG_FALSE='#'
4708
5641
else
4713
5646
 
4714
5647
 
4715
5648
 
4716
 
    # Extract the first word of "docbook2texi", so it can be a program name with args.
4717
 
set dummy docbook2texi; ac_word=$2
4718
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4719
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720
 
if test "${ac_cv_prog_DOCBOOK_TO_TEXI+set}" = set; then
 
5649
 
 
5650
# Check whether --with-tar was given.
 
5651
if test "${with_tar+set}" = set; then
 
5652
  withval=$with_tar; _do_tar=$withval
 
5653
fi
 
5654
 
 
5655
 
 
5656
  if test x$_do_tar != xno ; then
 
5657
 
 
5658
     if test x$_do_tar = x ; then
 
5659
        # Extract the first word of ""tar"", so it can be a program name with args.
 
5660
set dummy "tar"; ac_word=$2
 
5661
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5663
if test "${ac_cv_path_TAR+set}" = set; then
4721
5664
  echo $ECHO_N "(cached) $ECHO_C" >&6
4722
5665
else
4723
 
  if test -n "$DOCBOOK_TO_TEXI"; then
4724
 
  ac_cv_prog_DOCBOOK_TO_TEXI="$DOCBOOK_TO_TEXI" # Let the user override the test.
4725
 
else
4726
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5666
  case $TAR in
 
5667
  [\\/]* | ?:[\\/]*)
 
5668
  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
 
5669
  ;;
 
5670
  *)
 
5671
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727
5672
for as_dir in $PATH
4728
5673
do
4729
5674
  IFS=$as_save_IFS
4730
5675
  test -z "$as_dir" && as_dir=.
4731
5676
  for ac_exec_ext in '' $ac_executable_extensions; do
4732
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733
 
    ac_cv_prog_DOCBOOK_TO_TEXI="yes"
 
5677
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5678
    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4734
5679
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735
5680
    break 2
4736
5681
  fi
4737
5682
done
4738
5683
done
4739
 
 
4740
 
  test -z "$ac_cv_prog_DOCBOOK_TO_TEXI" && ac_cv_prog_DOCBOOK_TO_TEXI="no"
4741
 
fi
4742
 
fi
4743
 
DOCBOOK_TO_TEXI=$ac_cv_prog_DOCBOOK_TO_TEXI
4744
 
if test -n "$DOCBOOK_TO_TEXI"; then
4745
 
  echo "$as_me:$LINENO: result: $DOCBOOK_TO_TEXI" >&5
4746
 
echo "${ECHO_T}$DOCBOOK_TO_TEXI" >&6
4747
 
else
4748
 
  echo "$as_me:$LINENO: result: no" >&5
4749
 
echo "${ECHO_T}no" >&6
4750
 
fi
4751
 
 
4752
 
    echo "$as_me:$LINENO: checking for sgml to texi tools" >&5
4753
 
echo $ECHO_N "checking for sgml to texi tools... $ECHO_C" >&6
4754
 
    working_sgmltotexi=no
4755
 
    if test "$ac_cv_prog_DOCBOOK_TO_TEXI" = yes; then
4756
 
      if sgml2xml -v /dev/null 2>&1 | grep 'SP version' >/dev/null 2>&1 ; then
4757
 
            working_sgmltotexi=yes
4758
 
      fi
4759
 
    fi
4760
 
    echo "$as_me:$LINENO: result: $working_sgmltotexi" >&5
4761
 
echo "${ECHO_T}$working_sgmltotexi" >&6
4762
 
 
4763
 
 
4764
 
if test "$working_sgmltotexi" = "yes" ; then
4765
 
  HAVE_DOCBOOK_TO_TEXI_TRUE=
4766
 
  HAVE_DOCBOOK_TO_TEXI_FALSE='#'
4767
 
else
4768
 
  HAVE_DOCBOOK_TO_TEXI_TRUE='#'
4769
 
  HAVE_DOCBOOK_TO_TEXI_FALSE=
4770
 
fi
 
5684
IFS=$as_save_IFS
 
5685
 
 
5686
  ;;
 
5687
esac
 
5688
fi
 
5689
TAR=$ac_cv_path_TAR
 
5690
if test -n "$TAR"; then
 
5691
  { echo "$as_me:$LINENO: result: $TAR" >&5
 
5692
echo "${ECHO_T}$TAR" >&6; }
 
5693
else
 
5694
  { echo "$as_me:$LINENO: result: no" >&5
 
5695
echo "${ECHO_T}no" >&6; }
 
5696
fi
 
5697
 
 
5698
 
 
5699
        _mytar=$ac_cv_path_TAR
 
5700
     fi
 
5701
 
 
5702
     # Check if our tar is ustar format.  If so, it's good.  TODO: Add some
 
5703
     # code to check various options, etc, to try and create ustar
 
5704
     # format.
 
5705
 
 
5706
     if test x$_mytar != x ; then
 
5707
        { echo "$as_me:$LINENO: checking whether $_mytar speaks USTAR" >&5
 
5708
echo $ECHO_N "checking whether $_mytar speaks USTAR... $ECHO_C" >&6; }
 
5709
        echo hithere > conftest.txt
 
5710
        $_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null
 
5711
        _tar_bad=$?
 
5712
        rm conftest.txt
 
5713
 
 
5714
        if test x$_tar_bad = x0 ; then
 
5715
           { echo "$as_me:$LINENO: result: yes" >&5
 
5716
echo "${ECHO_T}yes" >&6; }
 
5717
        else
 
5718
           { echo "$as_me:$LINENO: result: no" >&5
 
5719
echo "${ECHO_T}no" >&6; }
 
5720
        fi
 
5721
     fi
 
5722
  fi
 
5723
 
 
5724
   if test x$_tar_bad = x0; then
 
5725
  HAVE_USTAR_TRUE=
 
5726
  HAVE_USTAR_FALSE='#'
 
5727
else
 
5728
  HAVE_USTAR_TRUE='#'
 
5729
  HAVE_USTAR_FALSE=
 
5730
fi
 
5731
 
 
5732
 
 
5733
 
 
5734
# We need to compile and run a program on the build machine.  A
 
5735
# comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
 
5736
# the AC archive is broken for autoconf 2.57.  Given that tehre is no
 
5737
# newer version of that macro, we assume that it is also broken for
 
5738
# autoconf 2.61 and thus we use a simple but usually sufficient
 
5739
# approach.
 
5740
{ echo "$as_me:$LINENO: checking for cc for build" >&5
 
5741
echo $ECHO_N "checking for cc for build... $ECHO_C" >&6; }
 
5742
if test "$cross_compiling" = "yes"; then
 
5743
  CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
 
5744
else
 
5745
  CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
 
5746
fi
 
5747
{ echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
 
5748
echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
4771
5749
 
4772
5750
 
4773
5751
 
4775
5753
try_gettext=yes
4776
5754
have_dosish_system=no
4777
5755
have_w32_system=no
 
5756
use_simple_gettext=no
4778
5757
case "${host}" in
4779
5758
    *-mingw32*)
4780
5759
        # special stuff for Windoze NT
4794
5773
#define USE_SIMPLE_GETTEXT 1
4795
5774
_ACEOF
4796
5775
 
 
5776
        disable_keyserver_path=yes
4797
5777
        have_dosish_system=yes
4798
5778
        have_w32_system=yes
4799
5779
        try_gettext="no"
 
5780
        use_simple_gettext=yes
4800
5781
        ;;
4801
5782
    i?86-emx-os2 | i?86-*-os2*emx )
4802
5783
        # OS/2 with the EMX environment
4840
5821
        ;;
4841
5822
    *-dec-osf5*)
4842
5823
        if test -z "$GCC" ; then
4843
 
            # Use the newer compiler `-msg_disable ptrmismatch' to
 
5824
            # Use the newer compiler `-msg_disable ptrmismatch1' to
4844
5825
            # get rid of the unsigned/signed char mismatch warnings.
4845
5826
            # Using this may hide other pointer mismatch warnings, but
4846
5827
            # it at least lets other warning classes through
4847
 
            CFLAGS="$CFLAGS -msg_disable ptrmismatch"
 
5828
            CFLAGS="$CFLAGS -msg_disable ptrmismatch1"
4848
5829
        fi
4849
5830
        ;;
4850
5831
    m68k-atari-mint)
4860
5841
_ACEOF
4861
5842
 
4862
5843
fi
4863
 
 
4864
 
 
4865
 
if test "$have_dosish_system" = yes; then
 
5844
 if test "$have_dosish_system" = yes; then
4866
5845
  HAVE_DOSISH_SYSTEM_TRUE=
4867
5846
  HAVE_DOSISH_SYSTEM_FALSE='#'
4868
5847
else
4871
5850
fi
4872
5851
 
4873
5852
 
 
5853
 if test x"$use_simple_gettext" = xyes; then
 
5854
  USE_SIMPLE_GETTEXT_TRUE=
 
5855
  USE_SIMPLE_GETTEXT_FALSE='#'
 
5856
else
 
5857
  USE_SIMPLE_GETTEXT_TRUE='#'
 
5858
  USE_SIMPLE_GETTEXT_FALSE=
 
5859
fi
 
5860
 
 
5861
 
4874
5862
if test "$have_w32_system" = yes; then
4875
5863
 
4876
5864
cat >>confdefs.h <<\_ACEOF
4878
5866
_ACEOF
4879
5867
 
4880
5868
fi
4881
 
 
4882
 
 
4883
 
if test "$have_w32_system" = yes; then
 
5869
 if test "$have_w32_system" = yes; then
4884
5870
  HAVE_W32_SYSTEM_TRUE=
4885
5871
  HAVE_W32_SYSTEM_FALSE='#'
4886
5872
else
4889
5875
fi
4890
5876
 
4891
5877
 
 
5878
if test "$disable_keyserver_path" = yes; then
 
5879
 
 
5880
cat >>confdefs.h <<\_ACEOF
 
5881
#define DISABLE_KEYSERVER_PATH 1
 
5882
_ACEOF
 
5883
 
 
5884
fi
 
5885
 
 
5886
# (These need to go after AC_PROG_CC so that $EXEEXT is defined)
 
5887
 
 
5888
cat >>confdefs.h <<_ACEOF
 
5889
#define EXEEXT "$EXEEXT"
 
5890
_ACEOF
 
5891
 
 
5892
 
 
5893
if test x"$try_hkp" = xyes ; then
 
5894
  GPGKEYS_HKP="gpg2keys_hkp$EXEEXT"
 
5895
 
 
5896
fi
 
5897
 
 
5898
if test x"$try_finger" = xyes ; then
 
5899
  GPGKEYS_FINGER="gpg2keys_finger$EXEEXT"
 
5900
 
 
5901
fi
 
5902
 
4892
5903
 
4893
5904
 
4894
5905
#
4895
5906
# Checks for libraries.
4896
5907
#
 
5908
{ echo "$as_me:$LINENO: checking for libraries" >&5
 
5909
echo "$as_me: checking for libraries" >&6;}
4897
5910
 
4898
5911
 
4899
5912
#
4901
5914
# related projects.
4902
5915
#
4903
5916
 
4904
 
# Check whether --with-gpg-error-prefix or --without-gpg-error-prefix was given.
 
5917
# Check whether --with-gpg-error-prefix was given.
4905
5918
if test "${with_gpg_error_prefix+set}" = set; then
4906
 
  withval="$with_gpg_error_prefix"
4907
 
  gpg_error_config_prefix="$withval"
 
5919
  withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
4908
5920
else
4909
5921
  gpg_error_config_prefix=""
4910
 
fi;
 
5922
fi
 
5923
 
4911
5924
  if test x$gpg_error_config_prefix != x ; then
4912
5925
     if test x${GPG_ERROR_CONFIG+set} != xset ; then
4913
5926
        GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
4916
5929
 
4917
5930
  # Extract the first word of "gpg-error-config", so it can be a program name with args.
4918
5931
set dummy gpg-error-config; ac_word=$2
4919
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4920
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5932
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5933
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921
5934
if test "${ac_cv_path_GPG_ERROR_CONFIG+set}" = set; then
4922
5935
  echo $ECHO_N "(cached) $ECHO_C" >&6
4923
5936
else
4932
5945
  IFS=$as_save_IFS
4933
5946
  test -z "$as_dir" && as_dir=.
4934
5947
  for ac_exec_ext in '' $ac_executable_extensions; do
4935
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5948
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936
5949
    ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4937
5950
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938
5951
    break 2
4939
5952
  fi
4940
5953
done
4941
5954
done
 
5955
IFS=$as_save_IFS
4942
5956
 
4943
5957
  test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
4944
5958
  ;;
4945
5959
esac
4946
5960
fi
4947
5961
GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
4948
 
 
4949
5962
if test -n "$GPG_ERROR_CONFIG"; then
4950
 
  echo "$as_me:$LINENO: result: $GPG_ERROR_CONFIG" >&5
4951
 
echo "${ECHO_T}$GPG_ERROR_CONFIG" >&6
 
5963
  { echo "$as_me:$LINENO: result: $GPG_ERROR_CONFIG" >&5
 
5964
echo "${ECHO_T}$GPG_ERROR_CONFIG" >&6; }
4952
5965
else
4953
 
  echo "$as_me:$LINENO: result: no" >&5
4954
 
echo "${ECHO_T}no" >&6
 
5966
  { echo "$as_me:$LINENO: result: no" >&5
 
5967
echo "${ECHO_T}no" >&6; }
4955
5968
fi
4956
5969
 
 
5970
 
4957
5971
  min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
4958
 
  echo "$as_me:$LINENO: checking for GPG Error - version >= $min_gpg_error_version" >&5
4959
 
echo $ECHO_N "checking for GPG Error - version >= $min_gpg_error_version... $ECHO_C" >&6
 
5972
  { echo "$as_me:$LINENO: checking for GPG Error - version >= $min_gpg_error_version" >&5
 
5973
echo $ECHO_N "checking for GPG Error - version >= $min_gpg_error_version... $ECHO_C" >&6; }
4960
5974
  ok=no
4961
5975
  if test "$GPG_ERROR_CONFIG" != "no" ; then
4962
5976
    req_major=`echo $min_gpg_error_version | \
4981
5995
  if test $ok = yes; then
4982
5996
    GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
4983
5997
    GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
4984
 
    echo "$as_me:$LINENO: result: yes" >&5
4985
 
echo "${ECHO_T}yes" >&6
 
5998
    { echo "$as_me:$LINENO: result: yes ($gpg_error_config_version)" >&5
 
5999
echo "${ECHO_T}yes ($gpg_error_config_version)" >&6; }
4986
6000
    have_gpg_error=yes
4987
6001
  else
4988
6002
    GPG_ERROR_CFLAGS=""
4989
6003
    GPG_ERROR_LIBS=""
4990
 
    echo "$as_me:$LINENO: result: no" >&5
4991
 
echo "${ECHO_T}no" >&6
 
6004
    { echo "$as_me:$LINENO: result: no" >&5
 
6005
echo "${ECHO_T}no" >&6; }
4992
6006
    have_gpg_error=no
4993
6007
  fi
4994
6008
 
4995
6009
 
4996
6010
 
4997
 
_tmp_gpg_error_save_cflags="$CFLAGS"
4998
 
CFLAGS="$CFLAGS $GPG_ERROR_CFLAGS"
4999
 
echo "$as_me:$LINENO: checking whether GPG_ERR_LOCKED is declared" >&5
5000
 
echo $ECHO_N "checking whether GPG_ERR_LOCKED is declared... $ECHO_C" >&6
5001
 
if test "${ac_cv_have_decl_GPG_ERR_LOCKED+set}" = set; then
5002
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5003
 
else
5004
 
  cat >conftest.$ac_ext <<_ACEOF
5005
 
/* confdefs.h.  */
5006
 
_ACEOF
5007
 
cat confdefs.h >>conftest.$ac_ext
5008
 
cat >>conftest.$ac_ext <<_ACEOF
5009
 
/* end confdefs.h.  */
5010
 
#include <gpg-error.h>
5011
 
 
5012
 
int
5013
 
main ()
5014
 
{
5015
 
#ifndef GPG_ERR_LOCKED
5016
 
  char *p = (char *) GPG_ERR_LOCKED;
5017
 
#endif
5018
 
 
5019
 
  ;
5020
 
  return 0;
5021
 
}
5022
 
_ACEOF
5023
 
rm -f conftest.$ac_objext
5024
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025
 
  (eval $ac_compile) 2>conftest.er1
5026
 
  ac_status=$?
5027
 
  grep -v '^ *+' conftest.er1 >conftest.err
5028
 
  rm -f conftest.er1
5029
 
  cat conftest.err >&5
5030
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031
 
  (exit $ac_status); } &&
5032
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5033
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034
 
  (eval $ac_try) 2>&5
5035
 
  ac_status=$?
5036
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037
 
  (exit $ac_status); }; } &&
5038
 
         { ac_try='test -s conftest.$ac_objext'
5039
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040
 
  (eval $ac_try) 2>&5
5041
 
  ac_status=$?
5042
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043
 
  (exit $ac_status); }; }; then
5044
 
  ac_cv_have_decl_GPG_ERR_LOCKED=yes
5045
 
else
5046
 
  echo "$as_me: failed program was:" >&5
5047
 
sed 's/^/| /' conftest.$ac_ext >&5
5048
 
 
5049
 
ac_cv_have_decl_GPG_ERR_LOCKED=no
5050
 
fi
5051
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5052
 
fi
5053
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_GPG_ERR_LOCKED" >&5
5054
 
echo "${ECHO_T}$ac_cv_have_decl_GPG_ERR_LOCKED" >&6
5055
 
if test $ac_cv_have_decl_GPG_ERR_LOCKED = yes; then
5056
 
 
5057
 
cat >>confdefs.h <<_ACEOF
5058
 
#define HAVE_DECL_GPG_ERR_LOCKED 1
5059
 
_ACEOF
5060
 
 
5061
 
 
5062
 
else
5063
 
  cat >>confdefs.h <<_ACEOF
5064
 
#define HAVE_DECL_GPG_ERR_LOCKED 0
5065
 
_ACEOF
5066
 
 
5067
 
 
5068
 
fi
5069
 
 
5070
 
 
5071
 
CFLAGS="${_tmp_gpg_error_save_cflags}"
5072
6011
 
5073
6012
 
5074
6013
#
5075
6014
# Libgcrypt is our generic crypto library
5076
6015
#
5077
6016
 
5078
 
# Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
 
6017
# Check whether --with-libgcrypt-prefix was given.
5079
6018
if test "${with_libgcrypt_prefix+set}" = set; then
5080
 
  withval="$with_libgcrypt_prefix"
5081
 
  libgcrypt_config_prefix="$withval"
 
6019
  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
5082
6020
else
5083
6021
  libgcrypt_config_prefix=""
5084
 
fi;
 
6022
fi
 
6023
 
5085
6024
  if test x$libgcrypt_config_prefix != x ; then
5086
6025
     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
5087
6026
        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
5090
6029
 
5091
6030
  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
5092
6031
set dummy libgcrypt-config; ac_word=$2
5093
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5094
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6032
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6033
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095
6034
if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
5096
6035
  echo $ECHO_N "(cached) $ECHO_C" >&6
5097
6036
else
5106
6045
  IFS=$as_save_IFS
5107
6046
  test -z "$as_dir" && as_dir=.
5108
6047
  for ac_exec_ext in '' $ac_executable_extensions; do
5109
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6048
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110
6049
    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5111
6050
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112
6051
    break 2
5113
6052
  fi
5114
6053
done
5115
6054
done
 
6055
IFS=$as_save_IFS
5116
6056
 
5117
6057
  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
5118
6058
  ;;
5119
6059
esac
5120
6060
fi
5121
6061
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
5122
 
 
5123
6062
if test -n "$LIBGCRYPT_CONFIG"; then
5124
 
  echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
5125
 
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
 
6063
  { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
 
6064
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
5126
6065
else
5127
 
  echo "$as_me:$LINENO: result: no" >&5
5128
 
echo "${ECHO_T}no" >&6
 
6066
  { echo "$as_me:$LINENO: result: no" >&5
 
6067
echo "${ECHO_T}no" >&6; }
5129
6068
fi
5130
6069
 
 
6070
 
5131
6071
  tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
5132
6072
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
5133
6073
     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
5137
6077
     min_libgcrypt_version="$tmp"
5138
6078
  fi
5139
6079
 
5140
 
  echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
5141
 
echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
 
6080
  { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
 
6081
echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
5142
6082
  ok=no
5143
6083
  if test "$LIBGCRYPT_CONFIG" != "no" ; then
5144
6084
    req_major=`echo $min_libgcrypt_version | \
5171
6111
    fi
5172
6112
  fi
5173
6113
  if test $ok = yes; then
5174
 
    echo "$as_me:$LINENO: result: yes" >&5
5175
 
echo "${ECHO_T}yes" >&6
 
6114
    { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
 
6115
echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
5176
6116
  else
5177
 
    echo "$as_me:$LINENO: result: no" >&5
5178
 
echo "${ECHO_T}no" >&6
 
6117
    { echo "$as_me:$LINENO: result: no" >&5
 
6118
echo "${ECHO_T}no" >&6; }
5179
6119
  fi
5180
6120
  if test $ok = yes; then
5181
6121
     # If we have a recent libgcrypt, we should also check that the
5183
6123
     if test "$req_libgcrypt_api" -gt 0 ; then
5184
6124
        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
5185
6125
        if test "$tmp" -gt 0 ; then
5186
 
           echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
5187
 
echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
 
6126
           { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
 
6127
echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
5188
6128
           if test "$req_libgcrypt_api" -eq "$tmp" ; then
5189
 
             echo "$as_me:$LINENO: result: okay" >&5
5190
 
echo "${ECHO_T}okay" >&6
 
6129
             { echo "$as_me:$LINENO: result: okay" >&5
 
6130
echo "${ECHO_T}okay" >&6; }
5191
6131
           else
5192
6132
             ok=no
5193
 
             echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
5194
 
echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
 
6133
             { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
 
6134
echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
5195
6135
           fi
5196
6136
        fi
5197
6137
     fi
5214
6154
# libassuan is used for IPC
5215
6155
#
5216
6156
 
5217
 
# Check whether --with-libassuan-prefix or --without-libassuan-prefix was given.
 
6157
# Check whether --with-libassuan-prefix was given.
5218
6158
if test "${with_libassuan_prefix+set}" = set; then
5219
 
  withval="$with_libassuan_prefix"
5220
 
  libassuan_config_prefix="$withval"
 
6159
  withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
5221
6160
else
5222
6161
  libassuan_config_prefix=""
5223
 
fi;
 
6162
fi
 
6163
 
5224
6164
  if test x$libassuan_config_prefix != x ; then
5225
 
     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
5226
 
     if test x${LIBASSUAN_CONFIG+set} != xset ; then
5227
 
        LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
5228
 
     fi
 
6165
    libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
 
6166
    if test x${LIBASSUAN_CONFIG+set} != xset ; then
 
6167
      LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
 
6168
    fi
5229
6169
  fi
5230
 
 
5231
6170
  # Extract the first word of "libassuan-config", so it can be a program name with args.
5232
6171
set dummy libassuan-config; ac_word=$2
5233
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5234
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6172
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6173
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235
6174
if test "${ac_cv_path_LIBASSUAN_CONFIG+set}" = set; then
5236
6175
  echo $ECHO_N "(cached) $ECHO_C" >&6
5237
6176
else
5246
6185
  IFS=$as_save_IFS
5247
6186
  test -z "$as_dir" && as_dir=.
5248
6187
  for ac_exec_ext in '' $ac_executable_extensions; do
5249
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6188
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250
6189
    ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5251
6190
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252
6191
    break 2
5253
6192
  fi
5254
6193
done
5255
6194
done
 
6195
IFS=$as_save_IFS
5256
6196
 
5257
6197
  test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
5258
6198
  ;;
5259
6199
esac
5260
6200
fi
5261
6201
LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
5262
 
 
5263
6202
if test -n "$LIBASSUAN_CONFIG"; then
5264
 
  echo "$as_me:$LINENO: result: $LIBASSUAN_CONFIG" >&5
5265
 
echo "${ECHO_T}$LIBASSUAN_CONFIG" >&6
 
6203
  { echo "$as_me:$LINENO: result: $LIBASSUAN_CONFIG" >&5
 
6204
echo "${ECHO_T}$LIBASSUAN_CONFIG" >&6; }
5266
6205
else
5267
 
  echo "$as_me:$LINENO: result: no" >&5
5268
 
echo "${ECHO_T}no" >&6
 
6206
  { echo "$as_me:$LINENO: result: no" >&5
 
6207
echo "${ECHO_T}no" >&6; }
5269
6208
fi
5270
6209
 
5271
 
  min_libassuan_version="$NEED_LIBASSUAN_VERSION"
5272
 
  echo "$as_me:$LINENO: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
5273
 
echo $ECHO_N "checking for LIBASSUAN - version >= $min_libassuan_version... $ECHO_C" >&6
 
6210
 
 
6211
 
 
6212
  tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
 
6213
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
6214
    req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
6215
    min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
6216
  else
 
6217
    req_libassuan_api=0
 
6218
    min_libassuan_version="$tmp"
 
6219
  fi
 
6220
 
 
6221
  if test "$LIBASSUAN_CONFIG" != "no" ; then
 
6222
    libassuan_version=`$LIBASSUAN_CONFIG --version`
 
6223
  fi
 
6224
  libassuan_version_major=`echo $libassuan_version | \
 
6225
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
6226
  libassuan_version_minor=`echo $libassuan_version | \
 
6227
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
6228
  libassuan_version_micro=`echo $libassuan_version | \
 
6229
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
 
6230
 
 
6231
  { echo "$as_me:$LINENO: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
 
6232
echo $ECHO_N "checking for LIBASSUAN - version >= $min_libassuan_version... $ECHO_C" >&6; }
5274
6233
  ok=no
5275
6234
  if test "$LIBASSUAN_CONFIG" != "no" ; then
 
6235
 
5276
6236
    req_major=`echo $min_libassuan_version | \
5277
6237
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
5278
6238
    req_minor=`echo $min_libassuan_version | \
5279
6239
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
5280
6240
    req_micro=`echo $min_libassuan_version | \
5281
6241
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
5282
 
    libassuan_config_version=`$LIBASSUAN_CONFIG $libassuan_config_args --version`
5283
 
    major=`echo $libassuan_config_version | \
5284
 
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
5285
 
    minor=`echo $libassuan_config_version | \
5286
 
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
5287
 
    micro=`echo $libassuan_config_version | \
5288
 
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
5289
 
    if test "$major" -gt "$req_major"; then
 
6242
    if test "$libassuan_version_major" -gt "$req_major"; then
5290
6243
        ok=yes
5291
6244
    else
5292
 
        if test "$major" -eq "$req_major"; then
5293
 
            if test "$minor" -gt "$req_minor"; then
 
6245
        if test "$libassuan_version_major" -eq "$req_major"; then
 
6246
            if test "$libassuan_version_minor" -gt "$req_minor"; then
5294
6247
               ok=yes
5295
6248
            else
5296
 
               if test "$minor" -eq "$req_minor"; then
5297
 
                   if test "$micro" -ge "$req_micro"; then
 
6249
               if test "$libassuan_version_minor" -eq "$req_minor"; then
 
6250
                   if test "$libassuan_version_micro" -ge "$req_micro"; then
5298
6251
                     ok=yes
5299
6252
                   fi
5300
6253
               fi
5301
6254
            fi
5302
6255
        fi
5303
6256
    fi
5304
 
  fi
 
6257
 
 
6258
  fi
 
6259
 
 
6260
  if test $ok = yes; then
 
6261
    { echo "$as_me:$LINENO: result: yes ($libassuan_version)" >&5
 
6262
echo "${ECHO_T}yes ($libassuan_version)" >&6; }
 
6263
  else
 
6264
    { echo "$as_me:$LINENO: result: no" >&5
 
6265
echo "${ECHO_T}no" >&6; }
 
6266
  fi
 
6267
 
 
6268
  if test $ok = yes; then
 
6269
    if test "$req_libassuan_api" -gt 0 ; then
 
6270
      tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
 
6271
      if test "$tmp" -gt 0 ; then
 
6272
        { echo "$as_me:$LINENO: checking LIBASSUAN API version" >&5
 
6273
echo $ECHO_N "checking LIBASSUAN API version... $ECHO_C" >&6; }
 
6274
        if test "$req_libassuan_api" -eq "$tmp" ; then
 
6275
          { echo "$as_me:$LINENO: result: okay" >&5
 
6276
echo "${ECHO_T}okay" >&6; }
 
6277
        else
 
6278
          ok=no
 
6279
          { echo "$as_me:$LINENO: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
 
6280
echo "${ECHO_T}does not match.  want=$req_libassuan_api got=$tmp." >&6; }
 
6281
        fi
 
6282
      fi
 
6283
    fi
 
6284
  fi
 
6285
 
 
6286
 
5305
6287
  if test $ok = yes; then
5306
6288
    LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
5307
6289
    LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
5308
 
    echo "$as_me:$LINENO: result: yes" >&5
5309
 
echo "${ECHO_T}yes" >&6
5310
6290
    have_libassuan=yes
5311
6291
  else
5312
6292
    LIBASSUAN_CFLAGS=""
5313
6293
    LIBASSUAN_LIBS=""
5314
 
    echo "$as_me:$LINENO: result: no" >&5
5315
 
echo "${ECHO_T}no" >&6
5316
 
    have_libassuan=no
5317
 
  fi
5318
 
 
5319
 
 
 
6294
    have_libassuan=no
 
6295
  fi
 
6296
 
 
6297
 
 
6298
 
 
6299
if test "$have_libassuan" = "yes"; then
 
6300
  have_libassuan=no
 
6301
 
 
6302
# Check whether --with-libassuan-prefix was given.
 
6303
if test "${with_libassuan_prefix+set}" = set; then
 
6304
  withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
 
6305
else
 
6306
  libassuan_config_prefix=""
 
6307
fi
 
6308
 
 
6309
  if test x$libassuan_config_prefix != x ; then
 
6310
    libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
 
6311
    if test x${LIBASSUAN_CONFIG+set} != xset ; then
 
6312
      LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
 
6313
    fi
 
6314
  fi
 
6315
  # Extract the first word of "libassuan-config", so it can be a program name with args.
 
6316
set dummy libassuan-config; ac_word=$2
 
6317
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6318
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6319
if test "${ac_cv_path_LIBASSUAN_CONFIG+set}" = set; then
 
6320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6321
else
 
6322
  case $LIBASSUAN_CONFIG in
 
6323
  [\\/]* | ?:[\\/]*)
 
6324
  ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
 
6325
  ;;
 
6326
  *)
 
6327
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6328
for as_dir in $PATH
 
6329
do
 
6330
  IFS=$as_save_IFS
 
6331
  test -z "$as_dir" && as_dir=.
 
6332
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6333
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6334
    ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
6335
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6336
    break 2
 
6337
  fi
 
6338
done
 
6339
done
 
6340
IFS=$as_save_IFS
 
6341
 
 
6342
  test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
 
6343
  ;;
 
6344
esac
 
6345
fi
 
6346
LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
 
6347
if test -n "$LIBASSUAN_CONFIG"; then
 
6348
  { echo "$as_me:$LINENO: result: $LIBASSUAN_CONFIG" >&5
 
6349
echo "${ECHO_T}$LIBASSUAN_CONFIG" >&6; }
 
6350
else
 
6351
  { echo "$as_me:$LINENO: result: no" >&5
 
6352
echo "${ECHO_T}no" >&6; }
 
6353
fi
 
6354
 
 
6355
 
 
6356
 
 
6357
  tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
 
6358
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
6359
    req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
6360
    min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
6361
  else
 
6362
    req_libassuan_api=0
 
6363
    min_libassuan_version="$tmp"
 
6364
  fi
 
6365
 
 
6366
  if test "$LIBASSUAN_CONFIG" != "no" ; then
 
6367
    libassuan_version=`$LIBASSUAN_CONFIG --version`
 
6368
  fi
 
6369
  libassuan_version_major=`echo $libassuan_version | \
 
6370
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
6371
  libassuan_version_minor=`echo $libassuan_version | \
 
6372
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
6373
  libassuan_version_micro=`echo $libassuan_version | \
 
6374
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
 
6375
 
 
6376
  { echo "$as_me:$LINENO: checking for LIBASSUAN pth - version >= $min_libassuan_version" >&5
 
6377
echo $ECHO_N "checking for LIBASSUAN pth - version >= $min_libassuan_version... $ECHO_C" >&6; }
 
6378
  ok=no
 
6379
  if test "$LIBASSUAN_CONFIG" != "no" ; then
 
6380
    if `$LIBASSUAN_CONFIG --thread=pth 2> /dev/null` ; then
 
6381
    req_major=`echo $min_libassuan_version | \
 
6382
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
 
6383
    req_minor=`echo $min_libassuan_version | \
 
6384
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
 
6385
    req_micro=`echo $min_libassuan_version | \
 
6386
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
 
6387
    if test "$libassuan_version_major" -gt "$req_major"; then
 
6388
        ok=yes
 
6389
    else
 
6390
        if test "$libassuan_version_major" -eq "$req_major"; then
 
6391
            if test "$libassuan_version_minor" -gt "$req_minor"; then
 
6392
               ok=yes
 
6393
            else
 
6394
               if test "$libassuan_version_minor" -eq "$req_minor"; then
 
6395
                   if test "$libassuan_version_micro" -ge "$req_micro"; then
 
6396
                     ok=yes
 
6397
                   fi
 
6398
               fi
 
6399
            fi
 
6400
        fi
 
6401
    fi
 
6402
    fi
 
6403
  fi
 
6404
 
 
6405
  if test $ok = yes; then
 
6406
    { echo "$as_me:$LINENO: result: yes ($libassuan_version)" >&5
 
6407
echo "${ECHO_T}yes ($libassuan_version)" >&6; }
 
6408
  else
 
6409
    { echo "$as_me:$LINENO: result: no" >&5
 
6410
echo "${ECHO_T}no" >&6; }
 
6411
  fi
 
6412
 
 
6413
  if test $ok = yes; then
 
6414
    if test "$req_libassuan_api" -gt 0 ; then
 
6415
      tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
 
6416
      if test "$tmp" -gt 0 ; then
 
6417
        { echo "$as_me:$LINENO: checking LIBASSUAN pth API version" >&5
 
6418
echo $ECHO_N "checking LIBASSUAN pth API version... $ECHO_C" >&6; }
 
6419
        if test "$req_libassuan_api" -eq "$tmp" ; then
 
6420
          { echo "$as_me:$LINENO: result: okay" >&5
 
6421
echo "${ECHO_T}okay" >&6; }
 
6422
        else
 
6423
          ok=no
 
6424
          { echo "$as_me:$LINENO: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
 
6425
echo "${ECHO_T}does not match.  want=$req_libassuan_api got=$tmp." >&6; }
 
6426
        fi
 
6427
      fi
 
6428
    fi
 
6429
  fi
 
6430
 
 
6431
 
 
6432
  if test $ok = yes; then
 
6433
    LIBASSUAN_PTH_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --thread=pth --cflags`
 
6434
    LIBASSUAN_PTH_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --thread=pth --libs`
 
6435
    have_libassuan=yes
 
6436
  else
 
6437
    LIBASSUAN_PTH_CFLAGS=""
 
6438
    LIBASSUAN_PTH_LIBS=""
 
6439
    have_libassuan=no
 
6440
  fi
 
6441
 
 
6442
 
 
6443
 
 
6444
 
 
6445
# Check whether --with-libassuan-prefix was given.
 
6446
if test "${with_libassuan_prefix+set}" = set; then
 
6447
  withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
 
6448
else
 
6449
  libassuan_config_prefix=""
 
6450
fi
 
6451
 
 
6452
  if test x$libassuan_config_prefix != x ; then
 
6453
    libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
 
6454
    if test x${LIBASSUAN_CONFIG+set} != xset ; then
 
6455
      LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
 
6456
    fi
 
6457
  fi
 
6458
  # Extract the first word of "libassuan-config", so it can be a program name with args.
 
6459
set dummy libassuan-config; ac_word=$2
 
6460
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6462
if test "${ac_cv_path_LIBASSUAN_CONFIG+set}" = set; then
 
6463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6464
else
 
6465
  case $LIBASSUAN_CONFIG in
 
6466
  [\\/]* | ?:[\\/]*)
 
6467
  ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
 
6468
  ;;
 
6469
  *)
 
6470
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6471
for as_dir in $PATH
 
6472
do
 
6473
  IFS=$as_save_IFS
 
6474
  test -z "$as_dir" && as_dir=.
 
6475
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6476
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6477
    ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
6478
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6479
    break 2
 
6480
  fi
 
6481
done
 
6482
done
 
6483
IFS=$as_save_IFS
 
6484
 
 
6485
  test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
 
6486
  ;;
 
6487
esac
 
6488
fi
 
6489
LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
 
6490
if test -n "$LIBASSUAN_CONFIG"; then
 
6491
  { echo "$as_me:$LINENO: result: $LIBASSUAN_CONFIG" >&5
 
6492
echo "${ECHO_T}$LIBASSUAN_CONFIG" >&6; }
 
6493
else
 
6494
  { echo "$as_me:$LINENO: result: no" >&5
 
6495
echo "${ECHO_T}no" >&6; }
 
6496
fi
 
6497
 
 
6498
 
 
6499
 
 
6500
  tmp="$NEED_LIBASSUAN_API:1.0.1"
 
6501
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
6502
    req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
6503
    min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
6504
  else
 
6505
    req_libassuan_api=0
 
6506
    min_libassuan_version="$tmp"
 
6507
  fi
 
6508
 
 
6509
  if test "$LIBASSUAN_CONFIG" != "no" ; then
 
6510
    libassuan_version=`$LIBASSUAN_CONFIG --version`
 
6511
  fi
 
6512
  libassuan_version_major=`echo $libassuan_version | \
 
6513
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
6514
  libassuan_version_minor=`echo $libassuan_version | \
 
6515
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
6516
  libassuan_version_micro=`echo $libassuan_version | \
 
6517
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
 
6518
 
 
6519
  { echo "$as_me:$LINENO: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
 
6520
echo $ECHO_N "checking for LIBASSUAN - version >= $min_libassuan_version... $ECHO_C" >&6; }
 
6521
  ok=no
 
6522
  if test "$LIBASSUAN_CONFIG" != "no" ; then
 
6523
 
 
6524
    req_major=`echo $min_libassuan_version | \
 
6525
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
 
6526
    req_minor=`echo $min_libassuan_version | \
 
6527
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
 
6528
    req_micro=`echo $min_libassuan_version | \
 
6529
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
 
6530
    if test "$libassuan_version_major" -gt "$req_major"; then
 
6531
        ok=yes
 
6532
    else
 
6533
        if test "$libassuan_version_major" -eq "$req_major"; then
 
6534
            if test "$libassuan_version_minor" -gt "$req_minor"; then
 
6535
               ok=yes
 
6536
            else
 
6537
               if test "$libassuan_version_minor" -eq "$req_minor"; then
 
6538
                   if test "$libassuan_version_micro" -ge "$req_micro"; then
 
6539
                     ok=yes
 
6540
                   fi
 
6541
               fi
 
6542
            fi
 
6543
        fi
 
6544
    fi
 
6545
 
 
6546
  fi
 
6547
 
 
6548
  if test $ok = yes; then
 
6549
    { echo "$as_me:$LINENO: result: yes ($libassuan_version)" >&5
 
6550
echo "${ECHO_T}yes ($libassuan_version)" >&6; }
 
6551
  else
 
6552
    { echo "$as_me:$LINENO: result: no" >&5
 
6553
echo "${ECHO_T}no" >&6; }
 
6554
  fi
 
6555
 
 
6556
  if test $ok = yes; then
 
6557
    if test "$req_libassuan_api" -gt 0 ; then
 
6558
      tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
 
6559
      if test "$tmp" -gt 0 ; then
 
6560
        { echo "$as_me:$LINENO: checking LIBASSUAN API version" >&5
 
6561
echo $ECHO_N "checking LIBASSUAN API version... $ECHO_C" >&6; }
 
6562
        if test "$req_libassuan_api" -eq "$tmp" ; then
 
6563
          { echo "$as_me:$LINENO: result: okay" >&5
 
6564
echo "${ECHO_T}okay" >&6; }
 
6565
        else
 
6566
          ok=no
 
6567
          { echo "$as_me:$LINENO: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
 
6568
echo "${ECHO_T}does not match.  want=$req_libassuan_api got=$tmp." >&6; }
 
6569
        fi
 
6570
      fi
 
6571
    fi
 
6572
  fi
 
6573
 
 
6574
 
 
6575
  if test $ok = yes; then
 
6576
 
 
6577
cat >>confdefs.h <<\_ACEOF
 
6578
#define HAVE_ASSUAN_SET_IO_MONITOR 1
 
6579
_ACEOF
 
6580
 
 
6581
  else
 
6582
    :
 
6583
  fi
 
6584
 
 
6585
 
 
6586
cat >>confdefs.h <<_ACEOF
 
6587
#define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
 
6588
_ACEOF
 
6589
 
 
6590
fi
5320
6591
 
5321
6592
 
5322
6593
 
5324
6595
# libksba is our X.509 support library
5325
6596
#
5326
6597
 
5327
 
# Check whether --with-ksba-prefix or --without-ksba-prefix was given.
 
6598
# Check whether --with-ksba-prefix was given.
5328
6599
if test "${with_ksba_prefix+set}" = set; then
5329
 
  withval="$with_ksba_prefix"
5330
 
  ksba_config_prefix="$withval"
 
6600
  withval=$with_ksba_prefix; ksba_config_prefix="$withval"
5331
6601
else
5332
6602
  ksba_config_prefix=""
5333
 
fi;
 
6603
fi
 
6604
 
5334
6605
  if test x$ksba_config_prefix != x ; then
5335
6606
     ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
5336
6607
     if test x${KSBA_CONFIG+set} != xset ; then
5340
6611
 
5341
6612
  # Extract the first word of "ksba-config", so it can be a program name with args.
5342
6613
set dummy ksba-config; ac_word=$2
5343
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5344
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6614
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6615
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345
6616
if test "${ac_cv_path_KSBA_CONFIG+set}" = set; then
5346
6617
  echo $ECHO_N "(cached) $ECHO_C" >&6
5347
6618
else
5356
6627
  IFS=$as_save_IFS
5357
6628
  test -z "$as_dir" && as_dir=.
5358
6629
  for ac_exec_ext in '' $ac_executable_extensions; do
5359
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6630
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360
6631
    ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5361
6632
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362
6633
    break 2
5363
6634
  fi
5364
6635
done
5365
6636
done
 
6637
IFS=$as_save_IFS
5366
6638
 
5367
6639
  test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
5368
6640
  ;;
5369
6641
esac
5370
6642
fi
5371
6643
KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
5372
 
 
5373
6644
if test -n "$KSBA_CONFIG"; then
5374
 
  echo "$as_me:$LINENO: result: $KSBA_CONFIG" >&5
5375
 
echo "${ECHO_T}$KSBA_CONFIG" >&6
 
6645
  { echo "$as_me:$LINENO: result: $KSBA_CONFIG" >&5
 
6646
echo "${ECHO_T}$KSBA_CONFIG" >&6; }
5376
6647
else
5377
 
  echo "$as_me:$LINENO: result: no" >&5
5378
 
echo "${ECHO_T}no" >&6
 
6648
  { echo "$as_me:$LINENO: result: no" >&5
 
6649
echo "${ECHO_T}no" >&6; }
5379
6650
fi
5380
6651
 
5381
 
  min_ksba_version="$NEED_KSBA_VERSION"
5382
 
  echo "$as_me:$LINENO: checking for KSBA - version >= $min_ksba_version" >&5
5383
 
echo $ECHO_N "checking for KSBA - version >= $min_ksba_version... $ECHO_C" >&6
 
6652
 
 
6653
  tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
 
6654
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
6655
     req_ksba_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
6656
     min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
6657
  else
 
6658
     req_ksba_api=0
 
6659
     min_ksba_version="$tmp"
 
6660
  fi
 
6661
 
 
6662
  { echo "$as_me:$LINENO: checking for KSBA - version >= $min_ksba_version" >&5
 
6663
echo $ECHO_N "checking for KSBA - version >= $min_ksba_version... $ECHO_C" >&6; }
5384
6664
  ok=no
5385
6665
  if test "$KSBA_CONFIG" != "no" ; then
5386
6666
    req_major=`echo $min_ksba_version | \
5413
6693
    fi
5414
6694
  fi
5415
6695
  if test $ok = yes; then
 
6696
    { echo "$as_me:$LINENO: result: yes ($ksba_config_version)" >&5
 
6697
echo "${ECHO_T}yes ($ksba_config_version)" >&6; }
 
6698
  else
 
6699
    { echo "$as_me:$LINENO: result: no" >&5
 
6700
echo "${ECHO_T}no" >&6; }
 
6701
  fi
 
6702
  if test $ok = yes; then
 
6703
     # Even if we have a recent libksba, we should check that the
 
6704
     # API is compatible.
 
6705
     if test "$req_ksba_api" -gt 0 ; then
 
6706
        tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
 
6707
        if test "$tmp" -gt 0 ; then
 
6708
           { echo "$as_me:$LINENO: checking KSBA API version" >&5
 
6709
echo $ECHO_N "checking KSBA API version... $ECHO_C" >&6; }
 
6710
           if test "$req_ksba_api" -eq "$tmp" ; then
 
6711
             { echo "$as_me:$LINENO: result: okay" >&5
 
6712
echo "${ECHO_T}okay" >&6; }
 
6713
           else
 
6714
             ok=no
 
6715
             { echo "$as_me:$LINENO: result: does not match.  want=$req_ksba_api got=$tmp." >&5
 
6716
echo "${ECHO_T}does not match.  want=$req_ksba_api got=$tmp." >&6; }
 
6717
           fi
 
6718
        fi
 
6719
     fi
 
6720
  fi
 
6721
  if test $ok = yes; then
5416
6722
    KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
5417
6723
    KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
5418
 
    echo "$as_me:$LINENO: result: yes" >&5
5419
 
echo "${ECHO_T}yes" >&6
5420
6724
    have_ksba=yes
5421
6725
  else
5422
6726
    KSBA_CFLAGS=""
5423
6727
    KSBA_LIBS=""
5424
 
    echo "$as_me:$LINENO: result: no" >&5
5425
 
echo "${ECHO_T}no" >&6
5426
6728
    have_ksba=no
5427
6729
  fi
5428
6730
 
5429
6731
 
5430
6732
 
5431
6733
 
 
6734
 
5432
6735
#
5433
6736
# libusb allows us to use the integrated CCID smartcard reader driver.
5434
6737
#
5435
 
echo "$as_me:$LINENO: checking for usb_bulk_write in -lusb" >&5
5436
 
echo $ECHO_N "checking for usb_bulk_write in -lusb... $ECHO_C" >&6
 
6738
# FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
 
6739
{ echo "$as_me:$LINENO: checking for usb_bulk_write in -lusb" >&5
 
6740
echo $ECHO_N "checking for usb_bulk_write in -lusb... $ECHO_C" >&6; }
5437
6741
if test "${ac_cv_lib_usb_usb_bulk_write+set}" = set; then
5438
6742
  echo $ECHO_N "(cached) $ECHO_C" >&6
5439
6743
else
5446
6750
cat >>conftest.$ac_ext <<_ACEOF
5447
6751
/* end confdefs.h.  */
5448
6752
 
5449
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
6753
/* Override any GCC internal prototype to avoid an error.
 
6754
   Use char because int might match the return type of a GCC
 
6755
   builtin and then its argument prototype would still apply.  */
5450
6756
#ifdef __cplusplus
5451
6757
extern "C"
5452
6758
#endif
5453
 
/* We use char because int might match the return type of a gcc2
5454
 
   builtin and then its argument prototype would still apply.  */
5455
6759
char usb_bulk_write ();
5456
6760
int
5457
6761
main ()
5458
6762
{
5459
 
usb_bulk_write ();
 
6763
return usb_bulk_write ();
5460
6764
  ;
5461
6765
  return 0;
5462
6766
}
5463
6767
_ACEOF
5464
6768
rm -f conftest.$ac_objext conftest$ac_exeext
5465
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466
 
  (eval $ac_link) 2>conftest.er1
 
6769
if { (ac_try="$ac_link"
 
6770
case "(($ac_try" in
 
6771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6772
  *) ac_try_echo=$ac_try;;
 
6773
esac
 
6774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6775
  (eval "$ac_link") 2>conftest.er1
5467
6776
  ac_status=$?
5468
6777
  grep -v '^ *+' conftest.er1 >conftest.err
5469
6778
  rm -f conftest.er1
5470
6779
  cat conftest.err >&5
5471
6780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472
 
  (exit $ac_status); } &&
5473
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5474
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475
 
  (eval $ac_try) 2>&5
5476
 
  ac_status=$?
5477
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478
 
  (exit $ac_status); }; } &&
5479
 
         { ac_try='test -s conftest$ac_exeext'
5480
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481
 
  (eval $ac_try) 2>&5
5482
 
  ac_status=$?
5483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484
 
  (exit $ac_status); }; }; then
 
6781
  (exit $ac_status); } && {
 
6782
         test -z "$ac_c_werror_flag" ||
 
6783
         test ! -s conftest.err
 
6784
       } && test -s conftest$ac_exeext &&
 
6785
       $as_test_x conftest$ac_exeext; then
5485
6786
  ac_cv_lib_usb_usb_bulk_write=yes
5486
6787
else
5487
6788
  echo "$as_me: failed program was:" >&5
5488
6789
sed 's/^/| /' conftest.$ac_ext >&5
5489
6790
 
5490
 
ac_cv_lib_usb_usb_bulk_write=no
 
6791
        ac_cv_lib_usb_usb_bulk_write=no
5491
6792
fi
5492
 
rm -f conftest.err conftest.$ac_objext \
 
6793
 
 
6794
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5493
6795
      conftest$ac_exeext conftest.$ac_ext
5494
6796
LIBS=$ac_check_lib_save_LIBS
5495
6797
fi
5496
 
echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_bulk_write" >&5
5497
 
echo "${ECHO_T}$ac_cv_lib_usb_usb_bulk_write" >&6
 
6798
{ echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_bulk_write" >&5
 
6799
echo "${ECHO_T}$ac_cv_lib_usb_usb_bulk_write" >&6; }
5498
6800
if test $ac_cv_lib_usb_usb_bulk_write = yes; then
5499
6801
   LIBUSB_LIBS="$LIBUSB_LIBS -lusb"
5500
6802
 
5502
6804
#define HAVE_LIBUSB 1
5503
6805
_ACEOF
5504
6806
 
 
6807
                have_libusb=yes
5505
6808
 
5506
6809
fi
5507
6810
 
5510
6813
for ac_func in usb_create_match
5511
6814
do
5512
6815
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5513
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
5514
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5515
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6816
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6817
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6818
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5516
6819
  echo $ECHO_N "(cached) $ECHO_C" >&6
5517
6820
else
5518
6821
  cat >conftest.$ac_ext <<_ACEOF
5538
6841
 
5539
6842
#undef $ac_func
5540
6843
 
5541
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
6844
/* Override any GCC internal prototype to avoid an error.
 
6845
   Use char because int might match the return type of a GCC
 
6846
   builtin and then its argument prototype would still apply.  */
5542
6847
#ifdef __cplusplus
5543
6848
extern "C"
5544
 
{
5545
6849
#endif
5546
 
/* We use char because int might match the return type of a gcc2
5547
 
   builtin and then its argument prototype would still apply.  */
5548
6850
char $ac_func ();
5549
6851
/* The GNU C library defines this for functions which it implements
5550
6852
    to always fail with ENOSYS.  Some functions are actually named
5551
6853
    something starting with __ and the normal name is an alias.  */
5552
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6854
#if defined __stub_$ac_func || defined __stub___$ac_func
5553
6855
choke me
5554
 
#else
5555
 
char (*f) () = $ac_func;
5556
 
#endif
5557
 
#ifdef __cplusplus
5558
 
}
5559
6856
#endif
5560
6857
 
5561
6858
int
5562
6859
main ()
5563
6860
{
5564
 
return f != $ac_func;
 
6861
return $ac_func ();
5565
6862
  ;
5566
6863
  return 0;
5567
6864
}
5568
6865
_ACEOF
5569
6866
rm -f conftest.$ac_objext conftest$ac_exeext
5570
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571
 
  (eval $ac_link) 2>conftest.er1
 
6867
if { (ac_try="$ac_link"
 
6868
case "(($ac_try" in
 
6869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6870
  *) ac_try_echo=$ac_try;;
 
6871
esac
 
6872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6873
  (eval "$ac_link") 2>conftest.er1
5572
6874
  ac_status=$?
5573
6875
  grep -v '^ *+' conftest.er1 >conftest.err
5574
6876
  rm -f conftest.er1
5575
6877
  cat conftest.err >&5
5576
6878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577
 
  (exit $ac_status); } &&
5578
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5579
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580
 
  (eval $ac_try) 2>&5
5581
 
  ac_status=$?
5582
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583
 
  (exit $ac_status); }; } &&
5584
 
         { ac_try='test -s conftest$ac_exeext'
5585
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586
 
  (eval $ac_try) 2>&5
5587
 
  ac_status=$?
5588
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589
 
  (exit $ac_status); }; }; then
 
6879
  (exit $ac_status); } && {
 
6880
         test -z "$ac_c_werror_flag" ||
 
6881
         test ! -s conftest.err
 
6882
       } && test -s conftest$ac_exeext &&
 
6883
       $as_test_x conftest$ac_exeext; then
5590
6884
  eval "$as_ac_var=yes"
5591
6885
else
5592
6886
  echo "$as_me: failed program was:" >&5
5593
6887
sed 's/^/| /' conftest.$ac_ext >&5
5594
6888
 
5595
 
eval "$as_ac_var=no"
 
6889
        eval "$as_ac_var=no"
5596
6890
fi
5597
 
rm -f conftest.err conftest.$ac_objext \
 
6891
 
 
6892
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5598
6893
      conftest$ac_exeext conftest.$ac_ext
5599
6894
fi
5600
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5601
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6895
ac_res=`eval echo '${'$as_ac_var'}'`
 
6896
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6897
echo "${ECHO_T}$ac_res" >&6; }
5602
6898
if test `eval echo '${'$as_ac_var'}'` = yes; then
5603
6899
  cat >>confdefs.h <<_ACEOF
5604
6900
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5611
6907
#
5612
6908
# Check wether it is necessary to link against libdl.
5613
6909
#
 
6910
gnupg_dlopen_save_libs="$LIBS"
5614
6911
LIBS=""
5615
 
echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5616
 
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
 
6912
{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
 
6913
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
5617
6914
if test "${ac_cv_search_dlopen+set}" = set; then
5618
6915
  echo $ECHO_N "(cached) $ECHO_C" >&6
5619
6916
else
5620
6917
  ac_func_search_save_LIBS=$LIBS
5621
 
ac_cv_search_dlopen=no
5622
6918
cat >conftest.$ac_ext <<_ACEOF
5623
6919
/* confdefs.h.  */
5624
6920
_ACEOF
5626
6922
cat >>conftest.$ac_ext <<_ACEOF
5627
6923
/* end confdefs.h.  */
5628
6924
 
5629
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
6925
/* Override any GCC internal prototype to avoid an error.
 
6926
   Use char because int might match the return type of a GCC
 
6927
   builtin and then its argument prototype would still apply.  */
5630
6928
#ifdef __cplusplus
5631
6929
extern "C"
5632
6930
#endif
5633
 
/* We use char because int might match the return type of a gcc2
5634
 
   builtin and then its argument prototype would still apply.  */
5635
6931
char dlopen ();
5636
6932
int
5637
6933
main ()
5638
6934
{
5639
 
dlopen ();
 
6935
return dlopen ();
5640
6936
  ;
5641
6937
  return 0;
5642
6938
}
5643
6939
_ACEOF
5644
 
rm -f conftest.$ac_objext conftest$ac_exeext
5645
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5646
 
  (eval $ac_link) 2>conftest.er1
5647
 
  ac_status=$?
5648
 
  grep -v '^ *+' conftest.er1 >conftest.err
5649
 
  rm -f conftest.er1
5650
 
  cat conftest.err >&5
5651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652
 
  (exit $ac_status); } &&
5653
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655
 
  (eval $ac_try) 2>&5
5656
 
  ac_status=$?
5657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658
 
  (exit $ac_status); }; } &&
5659
 
         { ac_try='test -s conftest$ac_exeext'
5660
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661
 
  (eval $ac_try) 2>&5
5662
 
  ac_status=$?
5663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664
 
  (exit $ac_status); }; }; then
5665
 
  ac_cv_search_dlopen="none required"
5666
 
else
5667
 
  echo "$as_me: failed program was:" >&5
5668
 
sed 's/^/| /' conftest.$ac_ext >&5
5669
 
 
5670
 
fi
5671
 
rm -f conftest.err conftest.$ac_objext \
5672
 
      conftest$ac_exeext conftest.$ac_ext
5673
 
if test "$ac_cv_search_dlopen" = no; then
5674
 
  for ac_lib in c dl; do
 
6940
for ac_lib in '' c dl; do
 
6941
  if test -z "$ac_lib"; then
 
6942
    ac_res="none required"
 
6943
  else
 
6944
    ac_res=-l$ac_lib
5675
6945
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5676
 
    cat >conftest.$ac_ext <<_ACEOF
5677
 
/* confdefs.h.  */
5678
 
_ACEOF
5679
 
cat confdefs.h >>conftest.$ac_ext
5680
 
cat >>conftest.$ac_ext <<_ACEOF
5681
 
/* end confdefs.h.  */
5682
 
 
5683
 
/* Override any gcc2 internal prototype to avoid an error.  */
5684
 
#ifdef __cplusplus
5685
 
extern "C"
5686
 
#endif
5687
 
/* We use char because int might match the return type of a gcc2
5688
 
   builtin and then its argument prototype would still apply.  */
5689
 
char dlopen ();
5690
 
int
5691
 
main ()
5692
 
{
5693
 
dlopen ();
5694
 
  ;
5695
 
  return 0;
5696
 
}
5697
 
_ACEOF
5698
 
rm -f conftest.$ac_objext conftest$ac_exeext
5699
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700
 
  (eval $ac_link) 2>conftest.er1
 
6946
  fi
 
6947
  rm -f conftest.$ac_objext conftest$ac_exeext
 
6948
if { (ac_try="$ac_link"
 
6949
case "(($ac_try" in
 
6950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6951
  *) ac_try_echo=$ac_try;;
 
6952
esac
 
6953
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6954
  (eval "$ac_link") 2>conftest.er1
5701
6955
  ac_status=$?
5702
6956
  grep -v '^ *+' conftest.er1 >conftest.err
5703
6957
  rm -f conftest.er1
5704
6958
  cat conftest.err >&5
5705
6959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706
 
  (exit $ac_status); } &&
5707
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5708
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709
 
  (eval $ac_try) 2>&5
5710
 
  ac_status=$?
5711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712
 
  (exit $ac_status); }; } &&
5713
 
         { ac_try='test -s conftest$ac_exeext'
5714
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715
 
  (eval $ac_try) 2>&5
5716
 
  ac_status=$?
5717
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718
 
  (exit $ac_status); }; }; then
5719
 
  ac_cv_search_dlopen="-l$ac_lib"
5720
 
break
 
6960
  (exit $ac_status); } && {
 
6961
         test -z "$ac_c_werror_flag" ||
 
6962
         test ! -s conftest.err
 
6963
       } && test -s conftest$ac_exeext &&
 
6964
       $as_test_x conftest$ac_exeext; then
 
6965
  ac_cv_search_dlopen=$ac_res
5721
6966
else
5722
6967
  echo "$as_me: failed program was:" >&5
5723
6968
sed 's/^/| /' conftest.$ac_ext >&5
5724
6969
 
5725
 
fi
5726
 
rm -f conftest.err conftest.$ac_objext \
5727
 
      conftest$ac_exeext conftest.$ac_ext
5728
 
  done
5729
 
fi
 
6970
 
 
6971
fi
 
6972
 
 
6973
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6974
      conftest$ac_exeext
 
6975
  if test "${ac_cv_search_dlopen+set}" = set; then
 
6976
  break
 
6977
fi
 
6978
done
 
6979
if test "${ac_cv_search_dlopen+set}" = set; then
 
6980
  :
 
6981
else
 
6982
  ac_cv_search_dlopen=no
 
6983
fi
 
6984
rm conftest.$ac_ext
5730
6985
LIBS=$ac_func_search_save_LIBS
5731
6986
fi
5732
 
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5733
 
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5734
 
if test "$ac_cv_search_dlopen" != no; then
5735
 
  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
 
6987
{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
 
6988
echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
 
6989
ac_res=$ac_cv_search_dlopen
 
6990
if test "$ac_res" != no; then
 
6991
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5736
6992
 
5737
6993
fi
5738
6994
 
5739
6995
DL_LIBS=$LIBS
5740
6996
 
 
6997
LIBS="$gnupg_dlopen_save_libs"
5741
6998
 
5742
6999
#
5743
7000
# Checks for symcryptrun:
5744
7001
#
5745
7002
 
5746
7003
# libutil has openpty() and login_tty().
5747
 
echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
5748
 
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
 
7004
{ echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
 
7005
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
5749
7006
if test "${ac_cv_lib_util_openpty+set}" = set; then
5750
7007
  echo $ECHO_N "(cached) $ECHO_C" >&6
5751
7008
else
5758
7015
cat >>conftest.$ac_ext <<_ACEOF
5759
7016
/* end confdefs.h.  */
5760
7017
 
5761
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7018
/* Override any GCC internal prototype to avoid an error.
 
7019
   Use char because int might match the return type of a GCC
 
7020
   builtin and then its argument prototype would still apply.  */
5762
7021
#ifdef __cplusplus
5763
7022
extern "C"
5764
7023
#endif
5765
 
/* We use char because int might match the return type of a gcc2
5766
 
   builtin and then its argument prototype would still apply.  */
5767
7024
char openpty ();
5768
7025
int
5769
7026
main ()
5770
7027
{
5771
 
openpty ();
 
7028
return openpty ();
5772
7029
  ;
5773
7030
  return 0;
5774
7031
}
5775
7032
_ACEOF
5776
7033
rm -f conftest.$ac_objext conftest$ac_exeext
5777
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5778
 
  (eval $ac_link) 2>conftest.er1
 
7034
if { (ac_try="$ac_link"
 
7035
case "(($ac_try" in
 
7036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7037
  *) ac_try_echo=$ac_try;;
 
7038
esac
 
7039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7040
  (eval "$ac_link") 2>conftest.er1
5779
7041
  ac_status=$?
5780
7042
  grep -v '^ *+' conftest.er1 >conftest.err
5781
7043
  rm -f conftest.er1
5782
7044
  cat conftest.err >&5
5783
7045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784
 
  (exit $ac_status); } &&
5785
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5786
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787
 
  (eval $ac_try) 2>&5
5788
 
  ac_status=$?
5789
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790
 
  (exit $ac_status); }; } &&
5791
 
         { ac_try='test -s conftest$ac_exeext'
5792
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793
 
  (eval $ac_try) 2>&5
5794
 
  ac_status=$?
5795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796
 
  (exit $ac_status); }; }; then
 
7046
  (exit $ac_status); } && {
 
7047
         test -z "$ac_c_werror_flag" ||
 
7048
         test ! -s conftest.err
 
7049
       } && test -s conftest$ac_exeext &&
 
7050
       $as_test_x conftest$ac_exeext; then
5797
7051
  ac_cv_lib_util_openpty=yes
5798
7052
else
5799
7053
  echo "$as_me: failed program was:" >&5
5800
7054
sed 's/^/| /' conftest.$ac_ext >&5
5801
7055
 
5802
 
ac_cv_lib_util_openpty=no
 
7056
        ac_cv_lib_util_openpty=no
5803
7057
fi
5804
 
rm -f conftest.err conftest.$ac_objext \
 
7058
 
 
7059
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5805
7060
      conftest$ac_exeext conftest.$ac_ext
5806
7061
LIBS=$ac_check_lib_save_LIBS
5807
7062
fi
5808
 
echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
5809
 
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
 
7063
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
 
7064
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
5810
7065
if test $ac_cv_lib_util_openpty = yes; then
5811
7066
   LIBUTIL_LIBS="$LIBUTIL_LIBS -lutil"
5812
7067
 
5822
7077
# shred is used to clean temporary plain text files.
5823
7078
# Extract the first word of "shred", so it can be a program name with args.
5824
7079
set dummy shred; ac_word=$2
5825
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5826
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7080
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7081
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827
7082
if test "${ac_cv_path_SHRED+set}" = set; then
5828
7083
  echo $ECHO_N "(cached) $ECHO_C" >&6
5829
7084
else
5838
7093
  IFS=$as_save_IFS
5839
7094
  test -z "$as_dir" && as_dir=.
5840
7095
  for ac_exec_ext in '' $ac_executable_extensions; do
5841
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7096
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842
7097
    ac_cv_path_SHRED="$as_dir/$ac_word$ac_exec_ext"
5843
7098
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844
7099
    break 2
5845
7100
  fi
5846
7101
done
5847
7102
done
 
7103
IFS=$as_save_IFS
5848
7104
 
5849
7105
  test -z "$ac_cv_path_SHRED" && ac_cv_path_SHRED="/usr/bin/shred"
5850
7106
  ;;
5851
7107
esac
5852
7108
fi
5853
7109
SHRED=$ac_cv_path_SHRED
5854
 
 
5855
7110
if test -n "$SHRED"; then
5856
 
  echo "$as_me:$LINENO: result: $SHRED" >&5
5857
 
echo "${ECHO_T}$SHRED" >&6
 
7111
  { echo "$as_me:$LINENO: result: $SHRED" >&5
 
7112
echo "${ECHO_T}$SHRED" >&6; }
5858
7113
else
5859
 
  echo "$as_me:$LINENO: result: no" >&5
5860
 
echo "${ECHO_T}no" >&6
 
7114
  { echo "$as_me:$LINENO: result: no" >&5
 
7115
echo "${ECHO_T}no" >&6; }
5861
7116
fi
5862
7117
 
5863
7118
 
 
7119
 
5864
7120
cat >>confdefs.h <<_ACEOF
5865
7121
#define SHRED "${SHRED}"
5866
7122
_ACEOF
5867
7123
 
5868
7124
 
5869
7125
 
 
7126
 
5870
7127
#
5871
 
# Check whether the (highly desirable) GNU Pth library is available
 
7128
# Check whether the GNU Pth library is available
5872
7129
# Note, that we include a Pth emulation for W32.
5873
7130
#
5874
7131
 
5875
 
# Check whether --with-pth-prefix or --without-pth-prefix was given.
 
7132
# Check whether --with-pth-prefix was given.
5876
7133
if test "${with_pth_prefix+set}" = set; then
5877
 
  withval="$with_pth_prefix"
5878
 
  pth_config_prefix="$withval"
 
7134
  withval=$with_pth_prefix; pth_config_prefix="$withval"
5879
7135
else
5880
7136
  pth_config_prefix=""
5881
 
fi;
5882
 
if test x$pth_config_prefix != x ; then
5883
 
   PTH_CONFIG="$pth_config_prefix/bin/pth-config"
5884
7137
fi
5885
 
# Extract the first word of "pth-config", so it can be a program name with args.
 
7138
 
 
7139
  if test x$pth_config_prefix != x ; then
 
7140
     PTH_CONFIG="$pth_config_prefix/bin/pth-config"
 
7141
  fi
 
7142
  # Extract the first word of "pth-config", so it can be a program name with args.
5886
7143
set dummy pth-config; ac_word=$2
5887
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5888
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7144
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7145
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5889
7146
if test "${ac_cv_path_PTH_CONFIG+set}" = set; then
5890
7147
  echo $ECHO_N "(cached) $ECHO_C" >&6
5891
7148
else
5900
7157
  IFS=$as_save_IFS
5901
7158
  test -z "$as_dir" && as_dir=.
5902
7159
  for ac_exec_ext in '' $ac_executable_extensions; do
5903
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7160
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904
7161
    ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5905
7162
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906
7163
    break 2
5907
7164
  fi
5908
7165
done
5909
7166
done
 
7167
IFS=$as_save_IFS
5910
7168
 
5911
7169
  test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
5912
7170
  ;;
5913
7171
esac
5914
7172
fi
5915
7173
PTH_CONFIG=$ac_cv_path_PTH_CONFIG
5916
 
 
5917
7174
if test -n "$PTH_CONFIG"; then
5918
 
  echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
5919
 
echo "${ECHO_T}$PTH_CONFIG" >&6
 
7175
  { echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
 
7176
echo "${ECHO_T}$PTH_CONFIG" >&6; }
5920
7177
else
5921
 
  echo "$as_me:$LINENO: result: no" >&5
5922
 
echo "${ECHO_T}no" >&6
 
7178
  { echo "$as_me:$LINENO: result: no" >&5
 
7179
echo "${ECHO_T}no" >&6; }
5923
7180
fi
5924
7181
 
5925
 
if test "$have_w32_system" = no; then
5926
 
 if test "$PTH_CONFIG" = "no"; then
5927
 
    { echo "$as_me:$LINENO: WARNING:
5928
 
***
5929
 
*** To support concurrent access to the gpg-agent and the SCdaemon
5930
 
*** we need the support of the GNU Portable Threads Library.
5931
 
*** Download it from ftp://ftp.gnu.org/gnu/pth/
5932
 
*** On a Debian GNU/Linux system you might want to try
5933
 
***   apt-get install libpth-dev
5934
 
***" >&5
5935
 
echo "$as_me: WARNING:
5936
 
***
5937
 
*** To support concurrent access to the gpg-agent and the SCdaemon
5938
 
*** we need the support of the GNU Portable Threads Library.
5939
 
*** Download it from ftp://ftp.gnu.org/gnu/pth/
5940
 
*** On a Debian GNU/Linux system you might want to try
5941
 
***   apt-get install libpth-dev
5942
 
***" >&2;}
5943
 
 else
 
7182
 
 
7183
  tmp=1.3.7
 
7184
  if test "$PTH_CONFIG" != "no"; then
5944
7185
 
5945
7186
    _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
5946
 
    _req_version="1.3.7"
 
7187
    _req_version="$tmp"
5947
7188
 
5948
 
    echo "$as_me:$LINENO: checking for PTH - version >= $_req_version" >&5
5949
 
echo $ECHO_N "checking for PTH - version >= $_req_version... $ECHO_C" >&6
 
7189
    { echo "$as_me:$LINENO: checking for PTH - version >= $_req_version" >&5
 
7190
echo $ECHO_N "checking for PTH - version >= $_req_version... $ECHO_C" >&6; }
5950
7191
    for _var in _pth_version _req_version; do
5951
7192
        eval "_val=\"\$${_var}\""
5952
7193
        _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
5971
7212
        fi
5972
7213
    fi
5973
7214
    if test $have_pth = yes; then
5974
 
       echo "$as_me:$LINENO: result: yes" >&5
5975
 
echo "${ECHO_T}yes" >&6
5976
 
       echo "$as_me:$LINENO: checking whether PTH installation is sane" >&5
5977
 
echo $ECHO_N "checking whether PTH installation is sane... $ECHO_C" >&6
 
7215
       { echo "$as_me:$LINENO: result: yes" >&5
 
7216
echo "${ECHO_T}yes" >&6; }
 
7217
       { echo "$as_me:$LINENO: checking whether PTH installation is sane" >&5
 
7218
echo $ECHO_N "checking whether PTH installation is sane... $ECHO_C" >&6; }
5978
7219
       if test "${gnupg_cv_pth_is_sane+set}" = set; then
5979
7220
  echo $ECHO_N "(cached) $ECHO_C" >&6
5980
7221
else
5984
7225
         _gnupg_pth_save_libs=$LIBS
5985
7226
         CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
5986
7227
         LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
5987
 
         LIBS="$LIBS `$PTH_CONFIG --libs`"
 
7228
         LIBS="$LIBS `$PTH_CONFIG --libs --all`"
5988
7229
         cat >conftest.$ac_ext <<_ACEOF
5989
7230
/* confdefs.h.  */
5990
7231
_ACEOF
6002
7243
}
6003
7244
_ACEOF
6004
7245
rm -f conftest.$ac_objext conftest$ac_exeext
6005
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006
 
  (eval $ac_link) 2>conftest.er1
 
7246
if { (ac_try="$ac_link"
 
7247
case "(($ac_try" in
 
7248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7249
  *) ac_try_echo=$ac_try;;
 
7250
esac
 
7251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7252
  (eval "$ac_link") 2>conftest.er1
6007
7253
  ac_status=$?
6008
7254
  grep -v '^ *+' conftest.er1 >conftest.err
6009
7255
  rm -f conftest.er1
6010
7256
  cat conftest.err >&5
6011
7257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012
 
  (exit $ac_status); } &&
6013
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6014
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015
 
  (eval $ac_try) 2>&5
6016
 
  ac_status=$?
6017
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018
 
  (exit $ac_status); }; } &&
6019
 
         { ac_try='test -s conftest$ac_exeext'
6020
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021
 
  (eval $ac_try) 2>&5
6022
 
  ac_status=$?
6023
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024
 
  (exit $ac_status); }; }; then
 
7258
  (exit $ac_status); } && {
 
7259
         test -z "$ac_c_werror_flag" ||
 
7260
         test ! -s conftest.err
 
7261
       } && test -s conftest$ac_exeext &&
 
7262
       $as_test_x conftest$ac_exeext; then
6025
7263
  gnupg_cv_pth_is_sane=yes
6026
7264
else
6027
7265
  echo "$as_me: failed program was:" >&5
6028
7266
sed 's/^/| /' conftest.$ac_ext >&5
6029
7267
 
6030
 
gnupg_cv_pth_is_sane=no
 
7268
        gnupg_cv_pth_is_sane=no
6031
7269
fi
6032
 
rm -f conftest.err conftest.$ac_objext \
 
7270
 
 
7271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6033
7272
      conftest$ac_exeext conftest.$ac_ext
6034
7273
         CFLAGS=$_gnupg_pth_save_cflags
6035
7274
         LDFLAGS=$_gnupg_pth_save_ldflags
6040
7279
       if test $gnupg_cv_pth_is_sane != yes; then
6041
7280
          have_pth=no
6042
7281
       fi
6043
 
       echo "$as_me:$LINENO: result: $gnupg_cv_pth_is_sane" >&5
6044
 
echo "${ECHO_T}$gnupg_cv_pth_is_sane" >&6
 
7282
       { echo "$as_me:$LINENO: result: $gnupg_cv_pth_is_sane" >&5
 
7283
echo "${ECHO_T}$gnupg_cv_pth_is_sane" >&6; }
6045
7284
    else
6046
 
       echo "$as_me:$LINENO: result: no" >&5
6047
 
echo "${ECHO_T}no" >&6
 
7285
       { echo "$as_me:$LINENO: result: no" >&5
 
7286
echo "${ECHO_T}no" >&6; }
6048
7287
    fi
6049
7288
 
6050
 
  if test $have_pth = yes; then
6051
 
     PTH_CFLAGS=`$PTH_CONFIG --cflags`
6052
 
     PTH_LIBS=`$PTH_CONFIG --ldflags`
6053
 
     PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs`"
6054
 
 
6055
 
cat >>confdefs.h <<\_ACEOF
6056
 
#define USE_GNU_PTH 1
6057
 
_ACEOF
6058
 
 
 
7289
    if test $have_pth = yes; then
 
7290
       PTH_CFLAGS=`$PTH_CONFIG --cflags`
 
7291
       PTH_LIBS=`$PTH_CONFIG --ldflags`
 
7292
       PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
6059
7293
 
6060
7294
cat >>confdefs.h <<\_ACEOF
6061
7295
#define HAVE_PTH 1
6062
7296
_ACEOF
6063
7297
 
 
7298
    fi
6064
7299
  fi
6065
 
 fi
 
7300
 
 
7301
 
 
7302
 
 
7303
if test "$have_pth" = "yes"; then
 
7304
 
 
7305
cat >>confdefs.h <<\_ACEOF
 
7306
#define USE_GNU_PTH 1
 
7307
_ACEOF
 
7308
 
6066
7309
else
6067
 
 have_pth=yes
6068
 
 PTH_CFLAGS=""
6069
 
 PTH_LIBS=""
6070
 
 cat >>confdefs.h <<\_ACEOF
6071
 
#define USE_GNU_PTH 1
6072
 
_ACEOF
6073
 
 
6074
 
 cat >>confdefs.h <<\_ACEOF
6075
 
#define HAVE_PTH 1
6076
 
_ACEOF
6077
 
 
 
7310
  { echo "$as_me:$LINENO: WARNING:
 
7311
***
 
7312
*** To support concurrent access to the gpg-agent and the SCdaemon
 
7313
*** we need the support of the GNU Portable Threads Library.
 
7314
*** Download it from ftp://ftp.gnu.org/gnu/pth/
 
7315
*** On a Debian GNU/Linux system you might want to try
 
7316
***   apt-get install libpth-dev
 
7317
***" >&5
 
7318
echo "$as_me: WARNING:
 
7319
***
 
7320
*** To support concurrent access to the gpg-agent and the SCdaemon
 
7321
*** we need the support of the GNU Portable Threads Library.
 
7322
*** Download it from ftp://ftp.gnu.org/gnu/pth/
 
7323
*** On a Debian GNU/Linux system you might want to try
 
7324
***   apt-get install libpth-dev
 
7325
***" >&2;}
6078
7326
fi
6079
7327
 
6080
7328
 
6081
 
 
6082
 
 
6083
 
 
6084
 
echo "$as_me:$LINENO: checking for gethostbyname" >&5
6085
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
7329
{ echo "$as_me:$LINENO: checking for networking options" >&5
 
7330
echo "$as_me: checking for networking options" >&6;}
 
7331
 
 
7332
#
 
7333
# Must check for network library requirements before doing link tests
 
7334
# for ldap, for example. If ldap libs are static (or dynamic and without
 
7335
# ELF runtime link paths), then link will fail and LDAP support won't
 
7336
# be detected.
 
7337
#
 
7338
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
7339
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6086
7340
if test "${ac_cv_func_gethostbyname+set}" = set; then
6087
7341
  echo $ECHO_N "(cached) $ECHO_C" >&6
6088
7342
else
6109
7363
 
6110
7364
#undef gethostbyname
6111
7365
 
6112
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7366
/* Override any GCC internal prototype to avoid an error.
 
7367
   Use char because int might match the return type of a GCC
 
7368
   builtin and then its argument prototype would still apply.  */
6113
7369
#ifdef __cplusplus
6114
7370
extern "C"
6115
 
{
6116
7371
#endif
6117
 
/* We use char because int might match the return type of a gcc2
6118
 
   builtin and then its argument prototype would still apply.  */
6119
7372
char gethostbyname ();
6120
7373
/* The GNU C library defines this for functions which it implements
6121
7374
    to always fail with ENOSYS.  Some functions are actually named
6122
7375
    something starting with __ and the normal name is an alias.  */
6123
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
7376
#if defined __stub_gethostbyname || defined __stub___gethostbyname
6124
7377
choke me
6125
 
#else
6126
 
char (*f) () = gethostbyname;
6127
 
#endif
6128
 
#ifdef __cplusplus
6129
 
}
6130
7378
#endif
6131
7379
 
6132
7380
int
6133
7381
main ()
6134
7382
{
6135
 
return f != gethostbyname;
 
7383
return gethostbyname ();
6136
7384
  ;
6137
7385
  return 0;
6138
7386
}
6139
7387
_ACEOF
6140
7388
rm -f conftest.$ac_objext conftest$ac_exeext
6141
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6142
 
  (eval $ac_link) 2>conftest.er1
 
7389
if { (ac_try="$ac_link"
 
7390
case "(($ac_try" in
 
7391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7392
  *) ac_try_echo=$ac_try;;
 
7393
esac
 
7394
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7395
  (eval "$ac_link") 2>conftest.er1
6143
7396
  ac_status=$?
6144
7397
  grep -v '^ *+' conftest.er1 >conftest.err
6145
7398
  rm -f conftest.er1
6146
7399
  cat conftest.err >&5
6147
7400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148
 
  (exit $ac_status); } &&
6149
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151
 
  (eval $ac_try) 2>&5
6152
 
  ac_status=$?
6153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154
 
  (exit $ac_status); }; } &&
6155
 
         { ac_try='test -s conftest$ac_exeext'
6156
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157
 
  (eval $ac_try) 2>&5
6158
 
  ac_status=$?
6159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160
 
  (exit $ac_status); }; }; then
 
7401
  (exit $ac_status); } && {
 
7402
         test -z "$ac_c_werror_flag" ||
 
7403
         test ! -s conftest.err
 
7404
       } && test -s conftest$ac_exeext &&
 
7405
       $as_test_x conftest$ac_exeext; then
6161
7406
  ac_cv_func_gethostbyname=yes
6162
7407
else
6163
7408
  echo "$as_me: failed program was:" >&5
6164
7409
sed 's/^/| /' conftest.$ac_ext >&5
6165
7410
 
6166
 
ac_cv_func_gethostbyname=no
 
7411
        ac_cv_func_gethostbyname=no
6167
7412
fi
6168
 
rm -f conftest.err conftest.$ac_objext \
 
7413
 
 
7414
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6169
7415
      conftest$ac_exeext conftest.$ac_ext
6170
7416
fi
6171
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6172
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
7417
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
7418
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6173
7419
if test $ac_cv_func_gethostbyname = yes; then
6174
7420
  :
6175
7421
else
6176
 
  echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6177
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
7422
  { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
7423
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6178
7424
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6179
7425
  echo $ECHO_N "(cached) $ECHO_C" >&6
6180
7426
else
6187
7433
cat >>conftest.$ac_ext <<_ACEOF
6188
7434
/* end confdefs.h.  */
6189
7435
 
6190
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7436
/* Override any GCC internal prototype to avoid an error.
 
7437
   Use char because int might match the return type of a GCC
 
7438
   builtin and then its argument prototype would still apply.  */
6191
7439
#ifdef __cplusplus
6192
7440
extern "C"
6193
7441
#endif
6194
 
/* We use char because int might match the return type of a gcc2
6195
 
   builtin and then its argument prototype would still apply.  */
6196
7442
char gethostbyname ();
6197
7443
int
6198
7444
main ()
6199
7445
{
6200
 
gethostbyname ();
 
7446
return gethostbyname ();
6201
7447
  ;
6202
7448
  return 0;
6203
7449
}
6204
7450
_ACEOF
6205
7451
rm -f conftest.$ac_objext conftest$ac_exeext
6206
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6207
 
  (eval $ac_link) 2>conftest.er1
 
7452
if { (ac_try="$ac_link"
 
7453
case "(($ac_try" in
 
7454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7455
  *) ac_try_echo=$ac_try;;
 
7456
esac
 
7457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7458
  (eval "$ac_link") 2>conftest.er1
6208
7459
  ac_status=$?
6209
7460
  grep -v '^ *+' conftest.er1 >conftest.err
6210
7461
  rm -f conftest.er1
6211
7462
  cat conftest.err >&5
6212
7463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213
 
  (exit $ac_status); } &&
6214
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6215
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216
 
  (eval $ac_try) 2>&5
6217
 
  ac_status=$?
6218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219
 
  (exit $ac_status); }; } &&
6220
 
         { ac_try='test -s conftest$ac_exeext'
6221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222
 
  (eval $ac_try) 2>&5
6223
 
  ac_status=$?
6224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225
 
  (exit $ac_status); }; }; then
 
7464
  (exit $ac_status); } && {
 
7465
         test -z "$ac_c_werror_flag" ||
 
7466
         test ! -s conftest.err
 
7467
       } && test -s conftest$ac_exeext &&
 
7468
       $as_test_x conftest$ac_exeext; then
6226
7469
  ac_cv_lib_nsl_gethostbyname=yes
6227
7470
else
6228
7471
  echo "$as_me: failed program was:" >&5
6229
7472
sed 's/^/| /' conftest.$ac_ext >&5
6230
7473
 
6231
 
ac_cv_lib_nsl_gethostbyname=no
 
7474
        ac_cv_lib_nsl_gethostbyname=no
6232
7475
fi
6233
 
rm -f conftest.err conftest.$ac_objext \
 
7476
 
 
7477
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6234
7478
      conftest$ac_exeext conftest.$ac_ext
6235
7479
LIBS=$ac_check_lib_save_LIBS
6236
7480
fi
6237
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6238
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
7481
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
7482
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6239
7483
if test $ac_cv_lib_nsl_gethostbyname = yes; then
6240
7484
  NETLIBS="-lnsl $NETLIBS"
6241
7485
fi
6242
7486
 
6243
7487
fi
6244
7488
 
6245
 
echo "$as_me:$LINENO: checking for setsockopt" >&5
6246
 
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
 
7489
{ echo "$as_me:$LINENO: checking for setsockopt" >&5
 
7490
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
6247
7491
if test "${ac_cv_func_setsockopt+set}" = set; then
6248
7492
  echo $ECHO_N "(cached) $ECHO_C" >&6
6249
7493
else
6270
7514
 
6271
7515
#undef setsockopt
6272
7516
 
6273
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7517
/* Override any GCC internal prototype to avoid an error.
 
7518
   Use char because int might match the return type of a GCC
 
7519
   builtin and then its argument prototype would still apply.  */
6274
7520
#ifdef __cplusplus
6275
7521
extern "C"
6276
 
{
6277
7522
#endif
6278
 
/* We use char because int might match the return type of a gcc2
6279
 
   builtin and then its argument prototype would still apply.  */
6280
7523
char setsockopt ();
6281
7524
/* The GNU C library defines this for functions which it implements
6282
7525
    to always fail with ENOSYS.  Some functions are actually named
6283
7526
    something starting with __ and the normal name is an alias.  */
6284
 
#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
 
7527
#if defined __stub_setsockopt || defined __stub___setsockopt
6285
7528
choke me
6286
 
#else
6287
 
char (*f) () = setsockopt;
6288
 
#endif
6289
 
#ifdef __cplusplus
6290
 
}
6291
7529
#endif
6292
7530
 
6293
7531
int
6294
7532
main ()
6295
7533
{
6296
 
return f != setsockopt;
 
7534
return setsockopt ();
6297
7535
  ;
6298
7536
  return 0;
6299
7537
}
6300
7538
_ACEOF
6301
7539
rm -f conftest.$ac_objext conftest$ac_exeext
6302
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303
 
  (eval $ac_link) 2>conftest.er1
 
7540
if { (ac_try="$ac_link"
 
7541
case "(($ac_try" in
 
7542
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7543
  *) ac_try_echo=$ac_try;;
 
7544
esac
 
7545
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7546
  (eval "$ac_link") 2>conftest.er1
6304
7547
  ac_status=$?
6305
7548
  grep -v '^ *+' conftest.er1 >conftest.err
6306
7549
  rm -f conftest.er1
6307
7550
  cat conftest.err >&5
6308
7551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
 
  (exit $ac_status); } &&
6310
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312
 
  (eval $ac_try) 2>&5
6313
 
  ac_status=$?
6314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315
 
  (exit $ac_status); }; } &&
6316
 
         { ac_try='test -s conftest$ac_exeext'
6317
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318
 
  (eval $ac_try) 2>&5
6319
 
  ac_status=$?
6320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321
 
  (exit $ac_status); }; }; then
 
7552
  (exit $ac_status); } && {
 
7553
         test -z "$ac_c_werror_flag" ||
 
7554
         test ! -s conftest.err
 
7555
       } && test -s conftest$ac_exeext &&
 
7556
       $as_test_x conftest$ac_exeext; then
6322
7557
  ac_cv_func_setsockopt=yes
6323
7558
else
6324
7559
  echo "$as_me: failed program was:" >&5
6325
7560
sed 's/^/| /' conftest.$ac_ext >&5
6326
7561
 
6327
 
ac_cv_func_setsockopt=no
 
7562
        ac_cv_func_setsockopt=no
6328
7563
fi
6329
 
rm -f conftest.err conftest.$ac_objext \
 
7564
 
 
7565
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6330
7566
      conftest$ac_exeext conftest.$ac_ext
6331
7567
fi
6332
 
echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
6333
 
echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
 
7568
{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
 
7569
echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
6334
7570
if test $ac_cv_func_setsockopt = yes; then
6335
7571
  :
6336
7572
else
6337
 
  echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
6338
 
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
 
7573
  { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
 
7574
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
6339
7575
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
6340
7576
  echo $ECHO_N "(cached) $ECHO_C" >&6
6341
7577
else
6348
7584
cat >>conftest.$ac_ext <<_ACEOF
6349
7585
/* end confdefs.h.  */
6350
7586
 
6351
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7587
/* Override any GCC internal prototype to avoid an error.
 
7588
   Use char because int might match the return type of a GCC
 
7589
   builtin and then its argument prototype would still apply.  */
6352
7590
#ifdef __cplusplus
6353
7591
extern "C"
6354
7592
#endif
6355
 
/* We use char because int might match the return type of a gcc2
6356
 
   builtin and then its argument prototype would still apply.  */
6357
7593
char setsockopt ();
6358
7594
int
6359
7595
main ()
6360
7596
{
6361
 
setsockopt ();
 
7597
return setsockopt ();
6362
7598
  ;
6363
7599
  return 0;
6364
7600
}
6365
7601
_ACEOF
6366
7602
rm -f conftest.$ac_objext conftest$ac_exeext
6367
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368
 
  (eval $ac_link) 2>conftest.er1
 
7603
if { (ac_try="$ac_link"
 
7604
case "(($ac_try" in
 
7605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7606
  *) ac_try_echo=$ac_try;;
 
7607
esac
 
7608
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7609
  (eval "$ac_link") 2>conftest.er1
6369
7610
  ac_status=$?
6370
7611
  grep -v '^ *+' conftest.er1 >conftest.err
6371
7612
  rm -f conftest.er1
6372
7613
  cat conftest.err >&5
6373
7614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374
 
  (exit $ac_status); } &&
6375
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6376
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377
 
  (eval $ac_try) 2>&5
6378
 
  ac_status=$?
6379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380
 
  (exit $ac_status); }; } &&
6381
 
         { ac_try='test -s conftest$ac_exeext'
6382
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383
 
  (eval $ac_try) 2>&5
6384
 
  ac_status=$?
6385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386
 
  (exit $ac_status); }; }; then
 
7615
  (exit $ac_status); } && {
 
7616
         test -z "$ac_c_werror_flag" ||
 
7617
         test ! -s conftest.err
 
7618
       } && test -s conftest$ac_exeext &&
 
7619
       $as_test_x conftest$ac_exeext; then
6387
7620
  ac_cv_lib_socket_setsockopt=yes
6388
7621
else
6389
7622
  echo "$as_me: failed program was:" >&5
6390
7623
sed 's/^/| /' conftest.$ac_ext >&5
6391
7624
 
6392
 
ac_cv_lib_socket_setsockopt=no
 
7625
        ac_cv_lib_socket_setsockopt=no
6393
7626
fi
6394
 
rm -f conftest.err conftest.$ac_objext \
 
7627
 
 
7628
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6395
7629
      conftest$ac_exeext conftest.$ac_ext
6396
7630
LIBS=$ac_check_lib_save_LIBS
6397
7631
fi
6398
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
6399
 
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
 
7632
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
 
7633
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
6400
7634
if test $ac_cv_lib_socket_setsockopt = yes; then
6401
7635
  NETLIBS="-lsocket $NETLIBS"
6402
7636
fi
6404
7638
fi
6405
7639
 
6406
7640
 
6407
 
 
6408
 
# Check whether --enable-dns-srv or --disable-dns-srv was given.
 
7641
#
 
7642
# Now try for the resolver functions so we can use DNS for SRV, PA and CERT.
 
7643
#
 
7644
if test x"$try_hkp" = xyes || test x"$try_http" = xyes ; then
 
7645
  # Check whether --enable-dns-srv was given.
6409
7646
if test "${enable_dns_srv+set}" = set; then
6410
 
  enableval="$enable_dns_srv"
6411
 
  use_dns_srv=$enableval
 
7647
  enableval=$enable_dns_srv; use_dns_srv=$enableval
6412
7648
else
6413
7649
  use_dns_srv=yes
6414
 
fi;
6415
 
 
6416
 
if test x"$try_hkp" = xyes && test x"$use_dns_srv" = xyes ; then
6417
 
  _srv_save_libs=$LIBS
 
7650
fi
 
7651
 
 
7652
fi
 
7653
 
 
7654
# Check whether --enable-dns-pka was given.
 
7655
if test "${enable_dns_pka+set}" = set; then
 
7656
  enableval=$enable_dns_pka; use_dns_pka=$enableval
 
7657
else
 
7658
  use_dns_pka=yes
 
7659
fi
 
7660
 
 
7661
 
 
7662
# Check whether --enable-dns-cert was given.
 
7663
if test "${enable_dns_cert+set}" = set; then
 
7664
  enableval=$enable_dns_cert; use_dns_cert=$enableval
 
7665
else
 
7666
  use_dns_cert=yes
 
7667
fi
 
7668
 
 
7669
 
 
7670
if test x"$use_dns_pka" = xyes || test x"$use_dns_srv" = xyes \
 
7671
   || test x"$use_dns_cert" = xyes; then
 
7672
  _dns_save_libs=$LIBS
6418
7673
  LIBS=""
6419
7674
  # the double underscore thing is a glibc-ism?
6420
 
  echo "$as_me:$LINENO: checking for library containing res_query" >&5
6421
 
echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
6422
 
if test "${ac_cv_search_res_query+set}" = set; then
6423
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6424
 
else
6425
 
  ac_func_search_save_LIBS=$LIBS
6426
 
ac_cv_search_res_query=no
6427
 
cat >conftest.$ac_ext <<_ACEOF
6428
 
/* confdefs.h.  */
6429
 
_ACEOF
6430
 
cat confdefs.h >>conftest.$ac_ext
6431
 
cat >>conftest.$ac_ext <<_ACEOF
6432
 
/* end confdefs.h.  */
6433
 
 
6434
 
/* Override any gcc2 internal prototype to avoid an error.  */
6435
 
#ifdef __cplusplus
6436
 
extern "C"
6437
 
#endif
6438
 
/* We use char because int might match the return type of a gcc2
6439
 
   builtin and then its argument prototype would still apply.  */
6440
 
char res_query ();
6441
 
int
6442
 
main ()
6443
 
{
6444
 
res_query ();
6445
 
  ;
6446
 
  return 0;
6447
 
}
6448
 
_ACEOF
6449
 
rm -f conftest.$ac_objext conftest$ac_exeext
6450
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451
 
  (eval $ac_link) 2>conftest.er1
6452
 
  ac_status=$?
6453
 
  grep -v '^ *+' conftest.er1 >conftest.err
6454
 
  rm -f conftest.er1
6455
 
  cat conftest.err >&5
6456
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457
 
  (exit $ac_status); } &&
6458
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6459
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460
 
  (eval $ac_try) 2>&5
6461
 
  ac_status=$?
6462
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463
 
  (exit $ac_status); }; } &&
6464
 
         { ac_try='test -s conftest$ac_exeext'
6465
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466
 
  (eval $ac_try) 2>&5
6467
 
  ac_status=$?
6468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469
 
  (exit $ac_status); }; }; then
6470
 
  ac_cv_search_res_query="none required"
6471
 
else
6472
 
  echo "$as_me: failed program was:" >&5
6473
 
sed 's/^/| /' conftest.$ac_ext >&5
6474
 
 
6475
 
fi
6476
 
rm -f conftest.err conftest.$ac_objext \
6477
 
      conftest$ac_exeext conftest.$ac_ext
6478
 
if test "$ac_cv_search_res_query" = no; then
6479
 
  for ac_lib in resolv bind; do
6480
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6481
 
    cat >conftest.$ac_ext <<_ACEOF
6482
 
/* confdefs.h.  */
6483
 
_ACEOF
6484
 
cat confdefs.h >>conftest.$ac_ext
6485
 
cat >>conftest.$ac_ext <<_ACEOF
6486
 
/* end confdefs.h.  */
6487
 
 
6488
 
/* Override any gcc2 internal prototype to avoid an error.  */
6489
 
#ifdef __cplusplus
6490
 
extern "C"
6491
 
#endif
6492
 
/* We use char because int might match the return type of a gcc2
6493
 
   builtin and then its argument prototype would still apply.  */
6494
 
char res_query ();
6495
 
int
6496
 
main ()
6497
 
{
6498
 
res_query ();
6499
 
  ;
6500
 
  return 0;
6501
 
}
6502
 
_ACEOF
6503
 
rm -f conftest.$ac_objext conftest$ac_exeext
6504
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505
 
  (eval $ac_link) 2>conftest.er1
6506
 
  ac_status=$?
6507
 
  grep -v '^ *+' conftest.er1 >conftest.err
6508
 
  rm -f conftest.er1
6509
 
  cat conftest.err >&5
6510
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511
 
  (exit $ac_status); } &&
6512
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6513
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514
 
  (eval $ac_try) 2>&5
6515
 
  ac_status=$?
6516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517
 
  (exit $ac_status); }; } &&
6518
 
         { ac_try='test -s conftest$ac_exeext'
6519
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520
 
  (eval $ac_try) 2>&5
6521
 
  ac_status=$?
6522
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523
 
  (exit $ac_status); }; }; then
6524
 
  ac_cv_search_res_query="-l$ac_lib"
6525
 
break
6526
 
else
6527
 
  echo "$as_me: failed program was:" >&5
6528
 
sed 's/^/| /' conftest.$ac_ext >&5
6529
 
 
6530
 
fi
6531
 
rm -f conftest.err conftest.$ac_objext \
6532
 
      conftest$ac_exeext conftest.$ac_ext
6533
 
  done
6534
 
fi
6535
 
LIBS=$ac_func_search_save_LIBS
6536
 
fi
6537
 
echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
6538
 
echo "${ECHO_T}$ac_cv_search_res_query" >&6
6539
 
if test "$ac_cv_search_res_query" != no; then
6540
 
  test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
6541
 
 
6542
 
else
6543
 
  echo "$as_me:$LINENO: checking for library containing __res_query" >&5
6544
 
echo $ECHO_N "checking for library containing __res_query... $ECHO_C" >&6
6545
 
if test "${ac_cv_search___res_query+set}" = set; then
6546
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6547
 
else
6548
 
  ac_func_search_save_LIBS=$LIBS
6549
 
ac_cv_search___res_query=no
6550
 
cat >conftest.$ac_ext <<_ACEOF
6551
 
/* confdefs.h.  */
6552
 
_ACEOF
6553
 
cat confdefs.h >>conftest.$ac_ext
6554
 
cat >>conftest.$ac_ext <<_ACEOF
6555
 
/* end confdefs.h.  */
6556
 
 
6557
 
/* Override any gcc2 internal prototype to avoid an error.  */
6558
 
#ifdef __cplusplus
6559
 
extern "C"
6560
 
#endif
6561
 
/* We use char because int might match the return type of a gcc2
6562
 
   builtin and then its argument prototype would still apply.  */
6563
 
char __res_query ();
6564
 
int
6565
 
main ()
6566
 
{
6567
 
__res_query ();
6568
 
  ;
6569
 
  return 0;
6570
 
}
6571
 
_ACEOF
6572
 
rm -f conftest.$ac_objext conftest$ac_exeext
6573
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574
 
  (eval $ac_link) 2>conftest.er1
6575
 
  ac_status=$?
6576
 
  grep -v '^ *+' conftest.er1 >conftest.err
6577
 
  rm -f conftest.er1
6578
 
  cat conftest.err >&5
6579
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
 
  (exit $ac_status); } &&
6581
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6582
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583
 
  (eval $ac_try) 2>&5
6584
 
  ac_status=$?
6585
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586
 
  (exit $ac_status); }; } &&
6587
 
         { ac_try='test -s conftest$ac_exeext'
6588
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589
 
  (eval $ac_try) 2>&5
6590
 
  ac_status=$?
6591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592
 
  (exit $ac_status); }; }; then
6593
 
  ac_cv_search___res_query="none required"
6594
 
else
6595
 
  echo "$as_me: failed program was:" >&5
6596
 
sed 's/^/| /' conftest.$ac_ext >&5
6597
 
 
6598
 
fi
6599
 
rm -f conftest.err conftest.$ac_objext \
6600
 
      conftest$ac_exeext conftest.$ac_ext
6601
 
if test "$ac_cv_search___res_query" = no; then
6602
 
  for ac_lib in resolv bind; do
6603
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6604
 
    cat >conftest.$ac_ext <<_ACEOF
6605
 
/* confdefs.h.  */
6606
 
_ACEOF
6607
 
cat confdefs.h >>conftest.$ac_ext
6608
 
cat >>conftest.$ac_ext <<_ACEOF
6609
 
/* end confdefs.h.  */
6610
 
 
6611
 
/* Override any gcc2 internal prototype to avoid an error.  */
6612
 
#ifdef __cplusplus
6613
 
extern "C"
6614
 
#endif
6615
 
/* We use char because int might match the return type of a gcc2
6616
 
   builtin and then its argument prototype would still apply.  */
6617
 
char __res_query ();
6618
 
int
6619
 
main ()
6620
 
{
6621
 
__res_query ();
6622
 
  ;
6623
 
  return 0;
6624
 
}
6625
 
_ACEOF
6626
 
rm -f conftest.$ac_objext conftest$ac_exeext
6627
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628
 
  (eval $ac_link) 2>conftest.er1
6629
 
  ac_status=$?
6630
 
  grep -v '^ *+' conftest.er1 >conftest.err
6631
 
  rm -f conftest.er1
6632
 
  cat conftest.err >&5
6633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634
 
  (exit $ac_status); } &&
6635
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6636
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637
 
  (eval $ac_try) 2>&5
6638
 
  ac_status=$?
6639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640
 
  (exit $ac_status); }; } &&
6641
 
         { ac_try='test -s conftest$ac_exeext'
6642
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643
 
  (eval $ac_try) 2>&5
6644
 
  ac_status=$?
6645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646
 
  (exit $ac_status); }; }; then
6647
 
  ac_cv_search___res_query="-l$ac_lib"
6648
 
break
6649
 
else
6650
 
  echo "$as_me: failed program was:" >&5
6651
 
sed 's/^/| /' conftest.$ac_ext >&5
6652
 
 
6653
 
fi
6654
 
rm -f conftest.err conftest.$ac_objext \
6655
 
      conftest$ac_exeext conftest.$ac_ext
6656
 
  done
6657
 
fi
6658
 
LIBS=$ac_func_search_save_LIBS
6659
 
fi
6660
 
echo "$as_me:$LINENO: result: $ac_cv_search___res_query" >&5
6661
 
echo "${ECHO_T}$ac_cv_search___res_query" >&6
6662
 
if test "$ac_cv_search___res_query" != no; then
6663
 
  test "$ac_cv_search___res_query" = "none required" || LIBS="$ac_cv_search___res_query $LIBS"
6664
 
 
6665
 
else
6666
 
  use_dns_srv=no
6667
 
fi
6668
 
 
6669
 
fi
6670
 
 
6671
 
  echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
6672
 
echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
6673
 
if test "${ac_cv_search_dn_expand+set}" = set; then
6674
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6675
 
else
6676
 
  ac_func_search_save_LIBS=$LIBS
6677
 
ac_cv_search_dn_expand=no
6678
 
cat >conftest.$ac_ext <<_ACEOF
6679
 
/* confdefs.h.  */
6680
 
_ACEOF
6681
 
cat confdefs.h >>conftest.$ac_ext
6682
 
cat >>conftest.$ac_ext <<_ACEOF
6683
 
/* end confdefs.h.  */
6684
 
 
6685
 
/* Override any gcc2 internal prototype to avoid an error.  */
6686
 
#ifdef __cplusplus
6687
 
extern "C"
6688
 
#endif
6689
 
/* We use char because int might match the return type of a gcc2
6690
 
   builtin and then its argument prototype would still apply.  */
6691
 
char dn_expand ();
6692
 
int
6693
 
main ()
6694
 
{
6695
 
dn_expand ();
6696
 
  ;
6697
 
  return 0;
6698
 
}
6699
 
_ACEOF
6700
 
rm -f conftest.$ac_objext conftest$ac_exeext
6701
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6702
 
  (eval $ac_link) 2>conftest.er1
6703
 
  ac_status=$?
6704
 
  grep -v '^ *+' conftest.er1 >conftest.err
6705
 
  rm -f conftest.er1
6706
 
  cat conftest.err >&5
6707
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708
 
  (exit $ac_status); } &&
6709
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6710
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711
 
  (eval $ac_try) 2>&5
6712
 
  ac_status=$?
6713
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714
 
  (exit $ac_status); }; } &&
6715
 
         { ac_try='test -s conftest$ac_exeext'
6716
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717
 
  (eval $ac_try) 2>&5
6718
 
  ac_status=$?
6719
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720
 
  (exit $ac_status); }; }; then
6721
 
  ac_cv_search_dn_expand="none required"
6722
 
else
6723
 
  echo "$as_me: failed program was:" >&5
6724
 
sed 's/^/| /' conftest.$ac_ext >&5
6725
 
 
6726
 
fi
6727
 
rm -f conftest.err conftest.$ac_objext \
6728
 
      conftest$ac_exeext conftest.$ac_ext
6729
 
if test "$ac_cv_search_dn_expand" = no; then
6730
 
  for ac_lib in resolv bind; do
6731
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6732
 
    cat >conftest.$ac_ext <<_ACEOF
6733
 
/* confdefs.h.  */
6734
 
_ACEOF
6735
 
cat confdefs.h >>conftest.$ac_ext
6736
 
cat >>conftest.$ac_ext <<_ACEOF
6737
 
/* end confdefs.h.  */
6738
 
 
6739
 
/* Override any gcc2 internal prototype to avoid an error.  */
6740
 
#ifdef __cplusplus
6741
 
extern "C"
6742
 
#endif
6743
 
/* We use char because int might match the return type of a gcc2
6744
 
   builtin and then its argument prototype would still apply.  */
6745
 
char dn_expand ();
6746
 
int
6747
 
main ()
6748
 
{
6749
 
dn_expand ();
6750
 
  ;
6751
 
  return 0;
6752
 
}
6753
 
_ACEOF
6754
 
rm -f conftest.$ac_objext conftest$ac_exeext
6755
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6756
 
  (eval $ac_link) 2>conftest.er1
6757
 
  ac_status=$?
6758
 
  grep -v '^ *+' conftest.er1 >conftest.err
6759
 
  rm -f conftest.er1
6760
 
  cat conftest.err >&5
6761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762
 
  (exit $ac_status); } &&
6763
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765
 
  (eval $ac_try) 2>&5
6766
 
  ac_status=$?
6767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768
 
  (exit $ac_status); }; } &&
6769
 
         { ac_try='test -s conftest$ac_exeext'
6770
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771
 
  (eval $ac_try) 2>&5
6772
 
  ac_status=$?
6773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774
 
  (exit $ac_status); }; }; then
6775
 
  ac_cv_search_dn_expand="-l$ac_lib"
6776
 
break
6777
 
else
6778
 
  echo "$as_me: failed program was:" >&5
6779
 
sed 's/^/| /' conftest.$ac_ext >&5
6780
 
 
6781
 
fi
6782
 
rm -f conftest.err conftest.$ac_objext \
6783
 
      conftest$ac_exeext conftest.$ac_ext
6784
 
  done
6785
 
fi
6786
 
LIBS=$ac_func_search_save_LIBS
6787
 
fi
6788
 
echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
6789
 
echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
6790
 
if test "$ac_cv_search_dn_expand" != no; then
6791
 
  test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
6792
 
 
6793
 
else
6794
 
  echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
6795
 
echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
6796
 
if test "${ac_cv_search___dn_expand+set}" = set; then
6797
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6798
 
else
6799
 
  ac_func_search_save_LIBS=$LIBS
6800
 
ac_cv_search___dn_expand=no
6801
 
cat >conftest.$ac_ext <<_ACEOF
6802
 
/* confdefs.h.  */
6803
 
_ACEOF
6804
 
cat confdefs.h >>conftest.$ac_ext
6805
 
cat >>conftest.$ac_ext <<_ACEOF
6806
 
/* end confdefs.h.  */
6807
 
 
6808
 
/* Override any gcc2 internal prototype to avoid an error.  */
6809
 
#ifdef __cplusplus
6810
 
extern "C"
6811
 
#endif
6812
 
/* We use char because int might match the return type of a gcc2
6813
 
   builtin and then its argument prototype would still apply.  */
6814
 
char __dn_expand ();
6815
 
int
6816
 
main ()
6817
 
{
6818
 
__dn_expand ();
6819
 
  ;
6820
 
  return 0;
6821
 
}
6822
 
_ACEOF
6823
 
rm -f conftest.$ac_objext conftest$ac_exeext
6824
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6825
 
  (eval $ac_link) 2>conftest.er1
6826
 
  ac_status=$?
6827
 
  grep -v '^ *+' conftest.er1 >conftest.err
6828
 
  rm -f conftest.er1
6829
 
  cat conftest.err >&5
6830
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831
 
  (exit $ac_status); } &&
6832
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6833
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834
 
  (eval $ac_try) 2>&5
6835
 
  ac_status=$?
6836
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837
 
  (exit $ac_status); }; } &&
6838
 
         { ac_try='test -s conftest$ac_exeext'
6839
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840
 
  (eval $ac_try) 2>&5
6841
 
  ac_status=$?
6842
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843
 
  (exit $ac_status); }; }; then
6844
 
  ac_cv_search___dn_expand="none required"
6845
 
else
6846
 
  echo "$as_me: failed program was:" >&5
6847
 
sed 's/^/| /' conftest.$ac_ext >&5
6848
 
 
6849
 
fi
6850
 
rm -f conftest.err conftest.$ac_objext \
6851
 
      conftest$ac_exeext conftest.$ac_ext
6852
 
if test "$ac_cv_search___dn_expand" = no; then
6853
 
  for ac_lib in resolv bind; do
6854
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6855
 
    cat >conftest.$ac_ext <<_ACEOF
6856
 
/* confdefs.h.  */
6857
 
_ACEOF
6858
 
cat confdefs.h >>conftest.$ac_ext
6859
 
cat >>conftest.$ac_ext <<_ACEOF
6860
 
/* end confdefs.h.  */
6861
 
 
6862
 
/* Override any gcc2 internal prototype to avoid an error.  */
6863
 
#ifdef __cplusplus
6864
 
extern "C"
6865
 
#endif
6866
 
/* We use char because int might match the return type of a gcc2
6867
 
   builtin and then its argument prototype would still apply.  */
6868
 
char __dn_expand ();
6869
 
int
6870
 
main ()
6871
 
{
6872
 
__dn_expand ();
6873
 
  ;
6874
 
  return 0;
6875
 
}
6876
 
_ACEOF
6877
 
rm -f conftest.$ac_objext conftest$ac_exeext
6878
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6879
 
  (eval $ac_link) 2>conftest.er1
6880
 
  ac_status=$?
6881
 
  grep -v '^ *+' conftest.er1 >conftest.err
6882
 
  rm -f conftest.er1
6883
 
  cat conftest.err >&5
6884
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885
 
  (exit $ac_status); } &&
6886
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6887
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888
 
  (eval $ac_try) 2>&5
6889
 
  ac_status=$?
6890
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891
 
  (exit $ac_status); }; } &&
6892
 
         { ac_try='test -s conftest$ac_exeext'
6893
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894
 
  (eval $ac_try) 2>&5
6895
 
  ac_status=$?
6896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897
 
  (exit $ac_status); }; }; then
6898
 
  ac_cv_search___dn_expand="-l$ac_lib"
6899
 
break
6900
 
else
6901
 
  echo "$as_me: failed program was:" >&5
6902
 
sed 's/^/| /' conftest.$ac_ext >&5
6903
 
 
6904
 
fi
6905
 
rm -f conftest.err conftest.$ac_objext \
6906
 
      conftest$ac_exeext conftest.$ac_ext
6907
 
  done
6908
 
fi
6909
 
LIBS=$ac_func_search_save_LIBS
6910
 
fi
6911
 
echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
6912
 
echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
6913
 
if test "$ac_cv_search___dn_expand" != no; then
6914
 
  test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
6915
 
 
6916
 
else
6917
 
  use_dns_srv=no
6918
 
fi
6919
 
 
6920
 
fi
6921
 
 
6922
 
  echo "$as_me:$LINENO: checking for library containing dn_skipname" >&5
6923
 
echo $ECHO_N "checking for library containing dn_skipname... $ECHO_C" >&6
6924
 
if test "${ac_cv_search_dn_skipname+set}" = set; then
6925
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6926
 
else
6927
 
  ac_func_search_save_LIBS=$LIBS
6928
 
ac_cv_search_dn_skipname=no
6929
 
cat >conftest.$ac_ext <<_ACEOF
6930
 
/* confdefs.h.  */
6931
 
_ACEOF
6932
 
cat confdefs.h >>conftest.$ac_ext
6933
 
cat >>conftest.$ac_ext <<_ACEOF
6934
 
/* end confdefs.h.  */
6935
 
 
6936
 
/* Override any gcc2 internal prototype to avoid an error.  */
6937
 
#ifdef __cplusplus
6938
 
extern "C"
6939
 
#endif
6940
 
/* We use char because int might match the return type of a gcc2
6941
 
   builtin and then its argument prototype would still apply.  */
6942
 
char dn_skipname ();
6943
 
int
6944
 
main ()
6945
 
{
6946
 
dn_skipname ();
6947
 
  ;
6948
 
  return 0;
6949
 
}
6950
 
_ACEOF
6951
 
rm -f conftest.$ac_objext conftest$ac_exeext
6952
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953
 
  (eval $ac_link) 2>conftest.er1
6954
 
  ac_status=$?
6955
 
  grep -v '^ *+' conftest.er1 >conftest.err
6956
 
  rm -f conftest.er1
6957
 
  cat conftest.err >&5
6958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959
 
  (exit $ac_status); } &&
6960
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6961
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962
 
  (eval $ac_try) 2>&5
6963
 
  ac_status=$?
6964
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965
 
  (exit $ac_status); }; } &&
6966
 
         { ac_try='test -s conftest$ac_exeext'
6967
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968
 
  (eval $ac_try) 2>&5
6969
 
  ac_status=$?
6970
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971
 
  (exit $ac_status); }; }; then
6972
 
  ac_cv_search_dn_skipname="none required"
6973
 
else
6974
 
  echo "$as_me: failed program was:" >&5
6975
 
sed 's/^/| /' conftest.$ac_ext >&5
6976
 
 
6977
 
fi
6978
 
rm -f conftest.err conftest.$ac_objext \
6979
 
      conftest$ac_exeext conftest.$ac_ext
6980
 
if test "$ac_cv_search_dn_skipname" = no; then
6981
 
  for ac_lib in resolv bind; do
6982
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6983
 
    cat >conftest.$ac_ext <<_ACEOF
6984
 
/* confdefs.h.  */
6985
 
_ACEOF
6986
 
cat confdefs.h >>conftest.$ac_ext
6987
 
cat >>conftest.$ac_ext <<_ACEOF
6988
 
/* end confdefs.h.  */
6989
 
 
6990
 
/* Override any gcc2 internal prototype to avoid an error.  */
6991
 
#ifdef __cplusplus
6992
 
extern "C"
6993
 
#endif
6994
 
/* We use char because int might match the return type of a gcc2
6995
 
   builtin and then its argument prototype would still apply.  */
6996
 
char dn_skipname ();
6997
 
int
6998
 
main ()
6999
 
{
7000
 
dn_skipname ();
7001
 
  ;
7002
 
  return 0;
7003
 
}
7004
 
_ACEOF
7005
 
rm -f conftest.$ac_objext conftest$ac_exeext
7006
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007
 
  (eval $ac_link) 2>conftest.er1
7008
 
  ac_status=$?
7009
 
  grep -v '^ *+' conftest.er1 >conftest.err
7010
 
  rm -f conftest.er1
7011
 
  cat conftest.err >&5
7012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013
 
  (exit $ac_status); } &&
7014
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7015
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016
 
  (eval $ac_try) 2>&5
7017
 
  ac_status=$?
7018
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019
 
  (exit $ac_status); }; } &&
7020
 
         { ac_try='test -s conftest$ac_exeext'
7021
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022
 
  (eval $ac_try) 2>&5
7023
 
  ac_status=$?
7024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025
 
  (exit $ac_status); }; }; then
7026
 
  ac_cv_search_dn_skipname="-l$ac_lib"
7027
 
break
7028
 
else
7029
 
  echo "$as_me: failed program was:" >&5
7030
 
sed 's/^/| /' conftest.$ac_ext >&5
7031
 
 
7032
 
fi
7033
 
rm -f conftest.err conftest.$ac_objext \
7034
 
      conftest$ac_exeext conftest.$ac_ext
7035
 
  done
7036
 
fi
7037
 
LIBS=$ac_func_search_save_LIBS
7038
 
fi
7039
 
echo "$as_me:$LINENO: result: $ac_cv_search_dn_skipname" >&5
7040
 
echo "${ECHO_T}$ac_cv_search_dn_skipname" >&6
7041
 
if test "$ac_cv_search_dn_skipname" != no; then
7042
 
  test "$ac_cv_search_dn_skipname" = "none required" || LIBS="$ac_cv_search_dn_skipname $LIBS"
7043
 
 
7044
 
else
7045
 
  echo "$as_me:$LINENO: checking for library containing __dn_skipname" >&5
7046
 
echo $ECHO_N "checking for library containing __dn_skipname... $ECHO_C" >&6
7047
 
if test "${ac_cv_search___dn_skipname+set}" = set; then
7048
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7049
 
else
7050
 
  ac_func_search_save_LIBS=$LIBS
7051
 
ac_cv_search___dn_skipname=no
7052
 
cat >conftest.$ac_ext <<_ACEOF
7053
 
/* confdefs.h.  */
7054
 
_ACEOF
7055
 
cat confdefs.h >>conftest.$ac_ext
7056
 
cat >>conftest.$ac_ext <<_ACEOF
7057
 
/* end confdefs.h.  */
7058
 
 
7059
 
/* Override any gcc2 internal prototype to avoid an error.  */
7060
 
#ifdef __cplusplus
7061
 
extern "C"
7062
 
#endif
7063
 
/* We use char because int might match the return type of a gcc2
7064
 
   builtin and then its argument prototype would still apply.  */
7065
 
char __dn_skipname ();
7066
 
int
7067
 
main ()
7068
 
{
7069
 
__dn_skipname ();
7070
 
  ;
7071
 
  return 0;
7072
 
}
7073
 
_ACEOF
7074
 
rm -f conftest.$ac_objext conftest$ac_exeext
7075
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7076
 
  (eval $ac_link) 2>conftest.er1
7077
 
  ac_status=$?
7078
 
  grep -v '^ *+' conftest.er1 >conftest.err
7079
 
  rm -f conftest.er1
7080
 
  cat conftest.err >&5
7081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082
 
  (exit $ac_status); } &&
7083
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7084
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085
 
  (eval $ac_try) 2>&5
7086
 
  ac_status=$?
7087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088
 
  (exit $ac_status); }; } &&
7089
 
         { ac_try='test -s conftest$ac_exeext'
7090
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091
 
  (eval $ac_try) 2>&5
7092
 
  ac_status=$?
7093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094
 
  (exit $ac_status); }; }; then
7095
 
  ac_cv_search___dn_skipname="none required"
7096
 
else
7097
 
  echo "$as_me: failed program was:" >&5
7098
 
sed 's/^/| /' conftest.$ac_ext >&5
7099
 
 
7100
 
fi
7101
 
rm -f conftest.err conftest.$ac_objext \
7102
 
      conftest$ac_exeext conftest.$ac_ext
7103
 
if test "$ac_cv_search___dn_skipname" = no; then
7104
 
  for ac_lib in resolv bind; do
7105
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7106
 
    cat >conftest.$ac_ext <<_ACEOF
7107
 
/* confdefs.h.  */
7108
 
_ACEOF
7109
 
cat confdefs.h >>conftest.$ac_ext
7110
 
cat >>conftest.$ac_ext <<_ACEOF
7111
 
/* end confdefs.h.  */
7112
 
 
7113
 
/* Override any gcc2 internal prototype to avoid an error.  */
7114
 
#ifdef __cplusplus
7115
 
extern "C"
7116
 
#endif
7117
 
/* We use char because int might match the return type of a gcc2
7118
 
   builtin and then its argument prototype would still apply.  */
7119
 
char __dn_skipname ();
7120
 
int
7121
 
main ()
7122
 
{
7123
 
__dn_skipname ();
7124
 
  ;
7125
 
  return 0;
7126
 
}
7127
 
_ACEOF
7128
 
rm -f conftest.$ac_objext conftest$ac_exeext
7129
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130
 
  (eval $ac_link) 2>conftest.er1
7131
 
  ac_status=$?
7132
 
  grep -v '^ *+' conftest.er1 >conftest.err
7133
 
  rm -f conftest.er1
7134
 
  cat conftest.err >&5
7135
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136
 
  (exit $ac_status); } &&
7137
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7138
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139
 
  (eval $ac_try) 2>&5
7140
 
  ac_status=$?
7141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142
 
  (exit $ac_status); }; } &&
7143
 
         { ac_try='test -s conftest$ac_exeext'
7144
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145
 
  (eval $ac_try) 2>&5
7146
 
  ac_status=$?
7147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148
 
  (exit $ac_status); }; }; then
7149
 
  ac_cv_search___dn_skipname="-l$ac_lib"
7150
 
break
7151
 
else
7152
 
  echo "$as_me: failed program was:" >&5
7153
 
sed 's/^/| /' conftest.$ac_ext >&5
7154
 
 
7155
 
fi
7156
 
rm -f conftest.err conftest.$ac_objext \
7157
 
      conftest$ac_exeext conftest.$ac_ext
7158
 
  done
7159
 
fi
7160
 
LIBS=$ac_func_search_save_LIBS
7161
 
fi
7162
 
echo "$as_me:$LINENO: result: $ac_cv_search___dn_skipname" >&5
7163
 
echo "${ECHO_T}$ac_cv_search___dn_skipname" >&6
7164
 
if test "$ac_cv_search___dn_skipname" != no; then
7165
 
  test "$ac_cv_search___dn_skipname" = "none required" || LIBS="$ac_cv_search___dn_skipname $LIBS"
7166
 
 
7167
 
else
7168
 
  use_dns_srv=no
7169
 
fi
7170
 
 
7171
 
fi
7172
 
 
7173
 
 
7174
 
  if test x"$use_dns_srv" = xyes ; then
 
7675
  { echo "$as_me:$LINENO: checking for library containing res_query" >&5
 
7676
echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
 
7677
if test "${ac_cv_search_res_query+set}" = set; then
 
7678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7679
else
 
7680
  ac_func_search_save_LIBS=$LIBS
 
7681
cat >conftest.$ac_ext <<_ACEOF
 
7682
/* confdefs.h.  */
 
7683
_ACEOF
 
7684
cat confdefs.h >>conftest.$ac_ext
 
7685
cat >>conftest.$ac_ext <<_ACEOF
 
7686
/* end confdefs.h.  */
 
7687
 
 
7688
/* Override any GCC internal prototype to avoid an error.
 
7689
   Use char because int might match the return type of a GCC
 
7690
   builtin and then its argument prototype would still apply.  */
 
7691
#ifdef __cplusplus
 
7692
extern "C"
 
7693
#endif
 
7694
char res_query ();
 
7695
int
 
7696
main ()
 
7697
{
 
7698
return res_query ();
 
7699
  ;
 
7700
  return 0;
 
7701
}
 
7702
_ACEOF
 
7703
for ac_lib in '' resolv bind; do
 
7704
  if test -z "$ac_lib"; then
 
7705
    ac_res="none required"
 
7706
  else
 
7707
    ac_res=-l$ac_lib
 
7708
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
7709
  fi
 
7710
  rm -f conftest.$ac_objext conftest$ac_exeext
 
7711
if { (ac_try="$ac_link"
 
7712
case "(($ac_try" in
 
7713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7714
  *) ac_try_echo=$ac_try;;
 
7715
esac
 
7716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7717
  (eval "$ac_link") 2>conftest.er1
 
7718
  ac_status=$?
 
7719
  grep -v '^ *+' conftest.er1 >conftest.err
 
7720
  rm -f conftest.er1
 
7721
  cat conftest.err >&5
 
7722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7723
  (exit $ac_status); } && {
 
7724
         test -z "$ac_c_werror_flag" ||
 
7725
         test ! -s conftest.err
 
7726
       } && test -s conftest$ac_exeext &&
 
7727
       $as_test_x conftest$ac_exeext; then
 
7728
  ac_cv_search_res_query=$ac_res
 
7729
else
 
7730
  echo "$as_me: failed program was:" >&5
 
7731
sed 's/^/| /' conftest.$ac_ext >&5
 
7732
 
 
7733
 
 
7734
fi
 
7735
 
 
7736
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7737
      conftest$ac_exeext
 
7738
  if test "${ac_cv_search_res_query+set}" = set; then
 
7739
  break
 
7740
fi
 
7741
done
 
7742
if test "${ac_cv_search_res_query+set}" = set; then
 
7743
  :
 
7744
else
 
7745
  ac_cv_search_res_query=no
 
7746
fi
 
7747
rm conftest.$ac_ext
 
7748
LIBS=$ac_func_search_save_LIBS
 
7749
fi
 
7750
{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
 
7751
echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
 
7752
ac_res=$ac_cv_search_res_query
 
7753
if test "$ac_res" != no; then
 
7754
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
7755
 
 
7756
else
 
7757
  { echo "$as_me:$LINENO: checking for library containing __res_query" >&5
 
7758
echo $ECHO_N "checking for library containing __res_query... $ECHO_C" >&6; }
 
7759
if test "${ac_cv_search___res_query+set}" = set; then
 
7760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7761
else
 
7762
  ac_func_search_save_LIBS=$LIBS
 
7763
cat >conftest.$ac_ext <<_ACEOF
 
7764
/* confdefs.h.  */
 
7765
_ACEOF
 
7766
cat confdefs.h >>conftest.$ac_ext
 
7767
cat >>conftest.$ac_ext <<_ACEOF
 
7768
/* end confdefs.h.  */
 
7769
 
 
7770
/* Override any GCC internal prototype to avoid an error.
 
7771
   Use char because int might match the return type of a GCC
 
7772
   builtin and then its argument prototype would still apply.  */
 
7773
#ifdef __cplusplus
 
7774
extern "C"
 
7775
#endif
 
7776
char __res_query ();
 
7777
int
 
7778
main ()
 
7779
{
 
7780
return __res_query ();
 
7781
  ;
 
7782
  return 0;
 
7783
}
 
7784
_ACEOF
 
7785
for ac_lib in '' resolv bind; do
 
7786
  if test -z "$ac_lib"; then
 
7787
    ac_res="none required"
 
7788
  else
 
7789
    ac_res=-l$ac_lib
 
7790
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
7791
  fi
 
7792
  rm -f conftest.$ac_objext conftest$ac_exeext
 
7793
if { (ac_try="$ac_link"
 
7794
case "(($ac_try" in
 
7795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7796
  *) ac_try_echo=$ac_try;;
 
7797
esac
 
7798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7799
  (eval "$ac_link") 2>conftest.er1
 
7800
  ac_status=$?
 
7801
  grep -v '^ *+' conftest.er1 >conftest.err
 
7802
  rm -f conftest.er1
 
7803
  cat conftest.err >&5
 
7804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7805
  (exit $ac_status); } && {
 
7806
         test -z "$ac_c_werror_flag" ||
 
7807
         test ! -s conftest.err
 
7808
       } && test -s conftest$ac_exeext &&
 
7809
       $as_test_x conftest$ac_exeext; then
 
7810
  ac_cv_search___res_query=$ac_res
 
7811
else
 
7812
  echo "$as_me: failed program was:" >&5
 
7813
sed 's/^/| /' conftest.$ac_ext >&5
 
7814
 
 
7815
 
 
7816
fi
 
7817
 
 
7818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7819
      conftest$ac_exeext
 
7820
  if test "${ac_cv_search___res_query+set}" = set; then
 
7821
  break
 
7822
fi
 
7823
done
 
7824
if test "${ac_cv_search___res_query+set}" = set; then
 
7825
  :
 
7826
else
 
7827
  ac_cv_search___res_query=no
 
7828
fi
 
7829
rm conftest.$ac_ext
 
7830
LIBS=$ac_func_search_save_LIBS
 
7831
fi
 
7832
{ echo "$as_me:$LINENO: result: $ac_cv_search___res_query" >&5
 
7833
echo "${ECHO_T}$ac_cv_search___res_query" >&6; }
 
7834
ac_res=$ac_cv_search___res_query
 
7835
if test "$ac_res" != no; then
 
7836
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
7837
 
 
7838
else
 
7839
  have_resolver=no
 
7840
fi
 
7841
 
 
7842
fi
 
7843
 
 
7844
  { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
 
7845
echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
 
7846
if test "${ac_cv_search_dn_expand+set}" = set; then
 
7847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7848
else
 
7849
  ac_func_search_save_LIBS=$LIBS
 
7850
cat >conftest.$ac_ext <<_ACEOF
 
7851
/* confdefs.h.  */
 
7852
_ACEOF
 
7853
cat confdefs.h >>conftest.$ac_ext
 
7854
cat >>conftest.$ac_ext <<_ACEOF
 
7855
/* end confdefs.h.  */
 
7856
 
 
7857
/* Override any GCC internal prototype to avoid an error.
 
7858
   Use char because int might match the return type of a GCC
 
7859
   builtin and then its argument prototype would still apply.  */
 
7860
#ifdef __cplusplus
 
7861
extern "C"
 
7862
#endif
 
7863
char dn_expand ();
 
7864
int
 
7865
main ()
 
7866
{
 
7867
return dn_expand ();
 
7868
  ;
 
7869
  return 0;
 
7870
}
 
7871
_ACEOF
 
7872
for ac_lib in '' resolv bind; do
 
7873
  if test -z "$ac_lib"; then
 
7874
    ac_res="none required"
 
7875
  else
 
7876
    ac_res=-l$ac_lib
 
7877
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
7878
  fi
 
7879
  rm -f conftest.$ac_objext conftest$ac_exeext
 
7880
if { (ac_try="$ac_link"
 
7881
case "(($ac_try" in
 
7882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7883
  *) ac_try_echo=$ac_try;;
 
7884
esac
 
7885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7886
  (eval "$ac_link") 2>conftest.er1
 
7887
  ac_status=$?
 
7888
  grep -v '^ *+' conftest.er1 >conftest.err
 
7889
  rm -f conftest.er1
 
7890
  cat conftest.err >&5
 
7891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7892
  (exit $ac_status); } && {
 
7893
         test -z "$ac_c_werror_flag" ||
 
7894
         test ! -s conftest.err
 
7895
       } && test -s conftest$ac_exeext &&
 
7896
       $as_test_x conftest$ac_exeext; then
 
7897
  ac_cv_search_dn_expand=$ac_res
 
7898
else
 
7899
  echo "$as_me: failed program was:" >&5
 
7900
sed 's/^/| /' conftest.$ac_ext >&5
 
7901
 
 
7902
 
 
7903
fi
 
7904
 
 
7905
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7906
      conftest$ac_exeext
 
7907
  if test "${ac_cv_search_dn_expand+set}" = set; then
 
7908
  break
 
7909
fi
 
7910
done
 
7911
if test "${ac_cv_search_dn_expand+set}" = set; then
 
7912
  :
 
7913
else
 
7914
  ac_cv_search_dn_expand=no
 
7915
fi
 
7916
rm conftest.$ac_ext
 
7917
LIBS=$ac_func_search_save_LIBS
 
7918
fi
 
7919
{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
 
7920
echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
 
7921
ac_res=$ac_cv_search_dn_expand
 
7922
if test "$ac_res" != no; then
 
7923
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
7924
 
 
7925
else
 
7926
  { echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
 
7927
echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6; }
 
7928
if test "${ac_cv_search___dn_expand+set}" = set; then
 
7929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7930
else
 
7931
  ac_func_search_save_LIBS=$LIBS
 
7932
cat >conftest.$ac_ext <<_ACEOF
 
7933
/* confdefs.h.  */
 
7934
_ACEOF
 
7935
cat confdefs.h >>conftest.$ac_ext
 
7936
cat >>conftest.$ac_ext <<_ACEOF
 
7937
/* end confdefs.h.  */
 
7938
 
 
7939
/* Override any GCC internal prototype to avoid an error.
 
7940
   Use char because int might match the return type of a GCC
 
7941
   builtin and then its argument prototype would still apply.  */
 
7942
#ifdef __cplusplus
 
7943
extern "C"
 
7944
#endif
 
7945
char __dn_expand ();
 
7946
int
 
7947
main ()
 
7948
{
 
7949
return __dn_expand ();
 
7950
  ;
 
7951
  return 0;
 
7952
}
 
7953
_ACEOF
 
7954
for ac_lib in '' resolv bind; do
 
7955
  if test -z "$ac_lib"; then
 
7956
    ac_res="none required"
 
7957
  else
 
7958
    ac_res=-l$ac_lib
 
7959
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
7960
  fi
 
7961
  rm -f conftest.$ac_objext conftest$ac_exeext
 
7962
if { (ac_try="$ac_link"
 
7963
case "(($ac_try" in
 
7964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7965
  *) ac_try_echo=$ac_try;;
 
7966
esac
 
7967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7968
  (eval "$ac_link") 2>conftest.er1
 
7969
  ac_status=$?
 
7970
  grep -v '^ *+' conftest.er1 >conftest.err
 
7971
  rm -f conftest.er1
 
7972
  cat conftest.err >&5
 
7973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7974
  (exit $ac_status); } && {
 
7975
         test -z "$ac_c_werror_flag" ||
 
7976
         test ! -s conftest.err
 
7977
       } && test -s conftest$ac_exeext &&
 
7978
       $as_test_x conftest$ac_exeext; then
 
7979
  ac_cv_search___dn_expand=$ac_res
 
7980
else
 
7981
  echo "$as_me: failed program was:" >&5
 
7982
sed 's/^/| /' conftest.$ac_ext >&5
 
7983
 
 
7984
 
 
7985
fi
 
7986
 
 
7987
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7988
      conftest$ac_exeext
 
7989
  if test "${ac_cv_search___dn_expand+set}" = set; then
 
7990
  break
 
7991
fi
 
7992
done
 
7993
if test "${ac_cv_search___dn_expand+set}" = set; then
 
7994
  :
 
7995
else
 
7996
  ac_cv_search___dn_expand=no
 
7997
fi
 
7998
rm conftest.$ac_ext
 
7999
LIBS=$ac_func_search_save_LIBS
 
8000
fi
 
8001
{ echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
 
8002
echo "${ECHO_T}$ac_cv_search___dn_expand" >&6; }
 
8003
ac_res=$ac_cv_search___dn_expand
 
8004
if test "$ac_res" != no; then
 
8005
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8006
 
 
8007
else
 
8008
  have_resolver=no
 
8009
fi
 
8010
 
 
8011
fi
 
8012
 
 
8013
  { echo "$as_me:$LINENO: checking for library containing dn_skipname" >&5
 
8014
echo $ECHO_N "checking for library containing dn_skipname... $ECHO_C" >&6; }
 
8015
if test "${ac_cv_search_dn_skipname+set}" = set; then
 
8016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8017
else
 
8018
  ac_func_search_save_LIBS=$LIBS
 
8019
cat >conftest.$ac_ext <<_ACEOF
 
8020
/* confdefs.h.  */
 
8021
_ACEOF
 
8022
cat confdefs.h >>conftest.$ac_ext
 
8023
cat >>conftest.$ac_ext <<_ACEOF
 
8024
/* end confdefs.h.  */
 
8025
 
 
8026
/* Override any GCC internal prototype to avoid an error.
 
8027
   Use char because int might match the return type of a GCC
 
8028
   builtin and then its argument prototype would still apply.  */
 
8029
#ifdef __cplusplus
 
8030
extern "C"
 
8031
#endif
 
8032
char dn_skipname ();
 
8033
int
 
8034
main ()
 
8035
{
 
8036
return dn_skipname ();
 
8037
  ;
 
8038
  return 0;
 
8039
}
 
8040
_ACEOF
 
8041
for ac_lib in '' resolv bind; do
 
8042
  if test -z "$ac_lib"; then
 
8043
    ac_res="none required"
 
8044
  else
 
8045
    ac_res=-l$ac_lib
 
8046
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
8047
  fi
 
8048
  rm -f conftest.$ac_objext conftest$ac_exeext
 
8049
if { (ac_try="$ac_link"
 
8050
case "(($ac_try" in
 
8051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8052
  *) ac_try_echo=$ac_try;;
 
8053
esac
 
8054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8055
  (eval "$ac_link") 2>conftest.er1
 
8056
  ac_status=$?
 
8057
  grep -v '^ *+' conftest.er1 >conftest.err
 
8058
  rm -f conftest.er1
 
8059
  cat conftest.err >&5
 
8060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8061
  (exit $ac_status); } && {
 
8062
         test -z "$ac_c_werror_flag" ||
 
8063
         test ! -s conftest.err
 
8064
       } && test -s conftest$ac_exeext &&
 
8065
       $as_test_x conftest$ac_exeext; then
 
8066
  ac_cv_search_dn_skipname=$ac_res
 
8067
else
 
8068
  echo "$as_me: failed program was:" >&5
 
8069
sed 's/^/| /' conftest.$ac_ext >&5
 
8070
 
 
8071
 
 
8072
fi
 
8073
 
 
8074
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8075
      conftest$ac_exeext
 
8076
  if test "${ac_cv_search_dn_skipname+set}" = set; then
 
8077
  break
 
8078
fi
 
8079
done
 
8080
if test "${ac_cv_search_dn_skipname+set}" = set; then
 
8081
  :
 
8082
else
 
8083
  ac_cv_search_dn_skipname=no
 
8084
fi
 
8085
rm conftest.$ac_ext
 
8086
LIBS=$ac_func_search_save_LIBS
 
8087
fi
 
8088
{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_skipname" >&5
 
8089
echo "${ECHO_T}$ac_cv_search_dn_skipname" >&6; }
 
8090
ac_res=$ac_cv_search_dn_skipname
 
8091
if test "$ac_res" != no; then
 
8092
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8093
 
 
8094
else
 
8095
  { echo "$as_me:$LINENO: checking for library containing __dn_skipname" >&5
 
8096
echo $ECHO_N "checking for library containing __dn_skipname... $ECHO_C" >&6; }
 
8097
if test "${ac_cv_search___dn_skipname+set}" = set; then
 
8098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8099
else
 
8100
  ac_func_search_save_LIBS=$LIBS
 
8101
cat >conftest.$ac_ext <<_ACEOF
 
8102
/* confdefs.h.  */
 
8103
_ACEOF
 
8104
cat confdefs.h >>conftest.$ac_ext
 
8105
cat >>conftest.$ac_ext <<_ACEOF
 
8106
/* end confdefs.h.  */
 
8107
 
 
8108
/* Override any GCC internal prototype to avoid an error.
 
8109
   Use char because int might match the return type of a GCC
 
8110
   builtin and then its argument prototype would still apply.  */
 
8111
#ifdef __cplusplus
 
8112
extern "C"
 
8113
#endif
 
8114
char __dn_skipname ();
 
8115
int
 
8116
main ()
 
8117
{
 
8118
return __dn_skipname ();
 
8119
  ;
 
8120
  return 0;
 
8121
}
 
8122
_ACEOF
 
8123
for ac_lib in '' resolv bind; do
 
8124
  if test -z "$ac_lib"; then
 
8125
    ac_res="none required"
 
8126
  else
 
8127
    ac_res=-l$ac_lib
 
8128
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
8129
  fi
 
8130
  rm -f conftest.$ac_objext conftest$ac_exeext
 
8131
if { (ac_try="$ac_link"
 
8132
case "(($ac_try" in
 
8133
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8134
  *) ac_try_echo=$ac_try;;
 
8135
esac
 
8136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8137
  (eval "$ac_link") 2>conftest.er1
 
8138
  ac_status=$?
 
8139
  grep -v '^ *+' conftest.er1 >conftest.err
 
8140
  rm -f conftest.er1
 
8141
  cat conftest.err >&5
 
8142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8143
  (exit $ac_status); } && {
 
8144
         test -z "$ac_c_werror_flag" ||
 
8145
         test ! -s conftest.err
 
8146
       } && test -s conftest$ac_exeext &&
 
8147
       $as_test_x conftest$ac_exeext; then
 
8148
  ac_cv_search___dn_skipname=$ac_res
 
8149
else
 
8150
  echo "$as_me: failed program was:" >&5
 
8151
sed 's/^/| /' conftest.$ac_ext >&5
 
8152
 
 
8153
 
 
8154
fi
 
8155
 
 
8156
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8157
      conftest$ac_exeext
 
8158
  if test "${ac_cv_search___dn_skipname+set}" = set; then
 
8159
  break
 
8160
fi
 
8161
done
 
8162
if test "${ac_cv_search___dn_skipname+set}" = set; then
 
8163
  :
 
8164
else
 
8165
  ac_cv_search___dn_skipname=no
 
8166
fi
 
8167
rm conftest.$ac_ext
 
8168
LIBS=$ac_func_search_save_LIBS
 
8169
fi
 
8170
{ echo "$as_me:$LINENO: result: $ac_cv_search___dn_skipname" >&5
 
8171
echo "${ECHO_T}$ac_cv_search___dn_skipname" >&6; }
 
8172
ac_res=$ac_cv_search___dn_skipname
 
8173
if test "$ac_res" != no; then
 
8174
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8175
 
 
8176
else
 
8177
  have_resolver=no
 
8178
fi
 
8179
 
 
8180
fi
 
8181
 
 
8182
 
 
8183
  if test x"$have_resolver" != xno ; then
 
8184
 
 
8185
    # Make sure that the BIND 4 resolver interface is workable before
 
8186
    # enabling any code that calls it.  At some point I'll rewrite the
 
8187
    # code to use the BIND 8 resolver API.
 
8188
 
 
8189
    { echo "$as_me:$LINENO: checking whether the resolver is usable" >&5
 
8190
echo $ECHO_N "checking whether the resolver is usable... $ECHO_C" >&6; }
 
8191
    cat >conftest.$ac_ext <<_ACEOF
 
8192
/* confdefs.h.  */
 
8193
_ACEOF
 
8194
cat confdefs.h >>conftest.$ac_ext
 
8195
cat >>conftest.$ac_ext <<_ACEOF
 
8196
/* end confdefs.h.  */
 
8197
#include <sys/types.h>
 
8198
#include <netinet/in.h>
 
8199
#include <arpa/nameser.h>
 
8200
#include <resolv.h>
 
8201
int
 
8202
main ()
 
8203
{
 
8204
unsigned char answer[PACKETSZ];
 
8205
  res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
 
8206
  dn_skipname(0,0);
 
8207
  dn_expand(0,0,0,0,0);
 
8208
 
 
8209
  ;
 
8210
  return 0;
 
8211
}
 
8212
_ACEOF
 
8213
rm -f conftest.$ac_objext conftest$ac_exeext
 
8214
if { (ac_try="$ac_link"
 
8215
case "(($ac_try" in
 
8216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8217
  *) ac_try_echo=$ac_try;;
 
8218
esac
 
8219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8220
  (eval "$ac_link") 2>conftest.er1
 
8221
  ac_status=$?
 
8222
  grep -v '^ *+' conftest.er1 >conftest.err
 
8223
  rm -f conftest.er1
 
8224
  cat conftest.err >&5
 
8225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8226
  (exit $ac_status); } && {
 
8227
         test -z "$ac_c_werror_flag" ||
 
8228
         test ! -s conftest.err
 
8229
       } && test -s conftest$ac_exeext &&
 
8230
       $as_test_x conftest$ac_exeext; then
 
8231
  have_resolver=yes
 
8232
else
 
8233
  echo "$as_me: failed program was:" >&5
 
8234
sed 's/^/| /' conftest.$ac_ext >&5
 
8235
 
 
8236
        have_resolver=no
 
8237
fi
 
8238
 
 
8239
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8240
      conftest$ac_exeext conftest.$ac_ext
 
8241
    { echo "$as_me:$LINENO: result: $have_resolver" >&5
 
8242
echo "${ECHO_T}$have_resolver" >&6; }
 
8243
 
 
8244
    # This is Apple-specific and somewhat bizarre as they changed the
 
8245
    # define in bind 8 for some reason.
 
8246
 
 
8247
    if test x"$have_resolver" != xyes ; then
 
8248
       { echo "$as_me:$LINENO: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
 
8249
echo $ECHO_N "checking whether I can make the resolver usable with BIND_8_COMPAT... $ECHO_C" >&6; }
 
8250
       cat >conftest.$ac_ext <<_ACEOF
 
8251
/* confdefs.h.  */
 
8252
_ACEOF
 
8253
cat confdefs.h >>conftest.$ac_ext
 
8254
cat >>conftest.$ac_ext <<_ACEOF
 
8255
/* end confdefs.h.  */
 
8256
#define BIND_8_COMPAT
 
8257
#include <sys/types.h>
 
8258
#include <netinet/in.h>
 
8259
#include <arpa/nameser.h>
 
8260
#include <resolv.h>
 
8261
int
 
8262
main ()
 
8263
{
 
8264
unsigned char answer[PACKETSZ];
 
8265
  res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
 
8266
  dn_skipname(0,0); dn_expand(0,0,0,0,0);
 
8267
 
 
8268
  ;
 
8269
  return 0;
 
8270
}
 
8271
_ACEOF
 
8272
rm -f conftest.$ac_objext conftest$ac_exeext
 
8273
if { (ac_try="$ac_link"
 
8274
case "(($ac_try" in
 
8275
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8276
  *) ac_try_echo=$ac_try;;
 
8277
esac
 
8278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8279
  (eval "$ac_link") 2>conftest.er1
 
8280
  ac_status=$?
 
8281
  grep -v '^ *+' conftest.er1 >conftest.err
 
8282
  rm -f conftest.er1
 
8283
  cat conftest.err >&5
 
8284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8285
  (exit $ac_status); } && {
 
8286
         test -z "$ac_c_werror_flag" ||
 
8287
         test ! -s conftest.err
 
8288
       } && test -s conftest$ac_exeext &&
 
8289
       $as_test_x conftest$ac_exeext; then
 
8290
  have_resolver=yes ; need_compat=yes
 
8291
else
 
8292
  echo "$as_me: failed program was:" >&5
 
8293
sed 's/^/| /' conftest.$ac_ext >&5
 
8294
 
 
8295
 
 
8296
fi
 
8297
 
 
8298
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8299
      conftest$ac_exeext conftest.$ac_ext
 
8300
       { echo "$as_me:$LINENO: result: $have_resolver" >&5
 
8301
echo "${ECHO_T}$have_resolver" >&6; }
 
8302
    fi
 
8303
  fi
 
8304
 
 
8305
  if test x"$have_resolver" = xyes ; then
 
8306
     DNSLIBS=$LIBS
 
8307
 
 
8308
     if test x"$use_dns_srv" = xyes ; then
7175
8309
 
7176
8310
cat >>confdefs.h <<\_ACEOF
7177
8311
#define USE_DNS_SRV 1
7178
8312
_ACEOF
7179
8313
 
7180
 
     SRVLIBS=$LIBS
 
8314
     fi
 
8315
 
 
8316
     if test x"$use_dns_pka" = xyes ; then
 
8317
 
 
8318
cat >>confdefs.h <<\_ACEOF
 
8319
#define USE_DNS_PKA 1
 
8320
_ACEOF
 
8321
 
 
8322
     fi
 
8323
 
 
8324
     if test x"$use_dns_cert" = xyes ; then
 
8325
 
 
8326
cat >>confdefs.h <<\_ACEOF
 
8327
#define USE_DNS_CERT 1
 
8328
_ACEOF
 
8329
 
 
8330
     fi
 
8331
 
 
8332
     if test x"$need_compat" = xyes ; then
 
8333
 
 
8334
cat >>confdefs.h <<\_ACEOF
 
8335
#define BIND_8_COMPAT 1
 
8336
_ACEOF
 
8337
 
 
8338
     fi
7181
8339
  else
7182
 
     { echo "$as_me:$LINENO: WARNING: Resolver functions not found.  Disabling DNS SRV." >&5
7183
 
echo "$as_me: WARNING: Resolver functions not found.  Disabling DNS SRV." >&2;}
 
8340
     use_dns_srv=no
 
8341
     use_dns_pka=no
 
8342
     use_dns_cert=no
7184
8343
  fi
7185
 
  LIBS=$_srv_save_libs
7186
 
fi
7187
 
 
7188
 
 
 
8344
 
 
8345
  LIBS=$_dns_save_libs
 
8346
fi
 
8347
 
 
8348
 
 
8349
 
 
8350
 if test x"$use_dns_srv" = xyes; then
 
8351
  USE_DNS_SRV_TRUE=
 
8352
  USE_DNS_SRV_FALSE='#'
 
8353
else
 
8354
  USE_DNS_SRV_TRUE='#'
 
8355
  USE_DNS_SRV_FALSE=
 
8356
fi
 
8357
 
 
8358
 
 
8359
#
 
8360
# Check for LDAP
 
8361
#
 
8362
if test "$try_ldap" = yes ; then
7189
8363
 
7190
8364
# Try and link a LDAP test program to weed out unusable LDAP
7191
 
# libraries.  -lldap [-llber [-lresolv]] is for OpenLDAP.  OpenLDAP in
7192
 
# general is terrible with creating weird dependencies.  If all else
7193
 
# fails, the user can play guess-the-dependency by using something
7194
 
# like ./configure LDAPLIBS="-Lfoo -lbar"
7195
 
 
7196
 
if test "$try_ldap" = yes ; then
7197
 
  for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv"; do
 
8365
# libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
 
8366
# OpenLDAP, circa 1999, was terrible with creating weird dependencies.
 
8367
# If all else fails, the user can play guess-the-dependency by using
 
8368
# something like ./configure LDAPLIBS="-Lfoo -lbar"
 
8369
 
 
8370
 
 
8371
# Check whether --with-ldap was given.
 
8372
if test "${with_ldap+set}" = set; then
 
8373
  withval=$with_ldap; _ldap_with=$withval
 
8374
fi
 
8375
 
 
8376
 
 
8377
if test x$_ldap_with != xno ; then
 
8378
 
 
8379
  if test -d "$withval" ; then
 
8380
     LDAP_CPPFLAGS="-I$withval/include"
 
8381
     LDAP_LDFLAGS="-L$withval/lib"
 
8382
  fi
 
8383
 
 
8384
  _ldap_save_cppflags=$CPPFLAGS
 
8385
  CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
 
8386
  _ldap_save_ldflags=$LDFLAGS
 
8387
  LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
 
8388
 
 
8389
  for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
7198
8390
    _ldap_save_libs=$LIBS
7199
8391
    LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
7200
8392
 
7201
 
    echo "$as_me:$LINENO: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
7202
 
echo $ECHO_N "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... $ECHO_C" >&6
 
8393
    { echo "$as_me:$LINENO: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
 
8394
echo $ECHO_N "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... $ECHO_C" >&6; }
7203
8395
    cat >conftest.$ac_ext <<_ACEOF
7204
8396
/* confdefs.h.  */
7205
8397
_ACEOF
7206
8398
cat confdefs.h >>conftest.$ac_ext
7207
8399
cat >>conftest.$ac_ext <<_ACEOF
7208
8400
/* end confdefs.h.  */
 
8401
 
 
8402
#ifdef _WIN32
 
8403
#include <winsock2.h>
 
8404
#include <winldap.h>
 
8405
#else
7209
8406
#include <ldap.h>
 
8407
#endif
 
8408
 
7210
8409
int
7211
8410
main ()
7212
8411
{
7216
8415
}
7217
8416
_ACEOF
7218
8417
rm -f conftest.$ac_objext conftest$ac_exeext
7219
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220
 
  (eval $ac_link) 2>conftest.er1
 
8418
if { (ac_try="$ac_link"
 
8419
case "(($ac_try" in
 
8420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8421
  *) ac_try_echo=$ac_try;;
 
8422
esac
 
8423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8424
  (eval "$ac_link") 2>conftest.er1
7221
8425
  ac_status=$?
7222
8426
  grep -v '^ *+' conftest.er1 >conftest.err
7223
8427
  rm -f conftest.er1
7224
8428
  cat conftest.err >&5
7225
8429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226
 
  (exit $ac_status); } &&
7227
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7228
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229
 
  (eval $ac_try) 2>&5
7230
 
  ac_status=$?
7231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232
 
  (exit $ac_status); }; } &&
7233
 
         { ac_try='test -s conftest$ac_exeext'
7234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235
 
  (eval $ac_try) 2>&5
7236
 
  ac_status=$?
7237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238
 
  (exit $ac_status); }; }; then
 
8430
  (exit $ac_status); } && {
 
8431
         test -z "$ac_c_werror_flag" ||
 
8432
         test ! -s conftest.err
 
8433
       } && test -s conftest$ac_exeext &&
 
8434
       $as_test_x conftest$ac_exeext; then
7239
8435
  gnupg_cv_func_ldap_init=yes
7240
8436
else
7241
8437
  echo "$as_me: failed program was:" >&5
7242
8438
sed 's/^/| /' conftest.$ac_ext >&5
7243
8439
 
7244
 
gnupg_cv_func_ldap_init=no
 
8440
        gnupg_cv_func_ldap_init=no
7245
8441
fi
7246
 
rm -f conftest.err conftest.$ac_objext \
 
8442
 
 
8443
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7247
8444
      conftest$ac_exeext conftest.$ac_ext
7248
 
    echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_init" >&5
7249
 
echo "${ECHO_T}$gnupg_cv_func_ldap_init" >&6
 
8445
    { echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_init" >&5
 
8446
echo "${ECHO_T}$gnupg_cv_func_ldap_init" >&6; }
7250
8447
 
7251
8448
    if test $gnupg_cv_func_ldap_init = no; then
7252
 
      echo "$as_me:$LINENO: checking whether I can make LDAP be sane with lber.h" >&5
7253
 
echo $ECHO_N "checking whether I can make LDAP be sane with lber.h... $ECHO_C" >&6
 
8449
      { echo "$as_me:$LINENO: checking whether I can make LDAP be sane with lber.h" >&5
 
8450
echo $ECHO_N "checking whether I can make LDAP be sane with lber.h... $ECHO_C" >&6; }
7254
8451
      cat >conftest.$ac_ext <<_ACEOF
7255
8452
/* confdefs.h.  */
7256
8453
_ACEOF
7268
8465
}
7269
8466
_ACEOF
7270
8467
rm -f conftest.$ac_objext conftest$ac_exeext
7271
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272
 
  (eval $ac_link) 2>conftest.er1
 
8468
if { (ac_try="$ac_link"
 
8469
case "(($ac_try" in
 
8470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8471
  *) ac_try_echo=$ac_try;;
 
8472
esac
 
8473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8474
  (eval "$ac_link") 2>conftest.er1
7273
8475
  ac_status=$?
7274
8476
  grep -v '^ *+' conftest.er1 >conftest.err
7275
8477
  rm -f conftest.er1
7276
8478
  cat conftest.err >&5
7277
8479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278
 
  (exit $ac_status); } &&
7279
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7280
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281
 
  (eval $ac_try) 2>&5
7282
 
  ac_status=$?
7283
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284
 
  (exit $ac_status); }; } &&
7285
 
         { ac_try='test -s conftest$ac_exeext'
7286
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287
 
  (eval $ac_try) 2>&5
7288
 
  ac_status=$?
7289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290
 
  (exit $ac_status); }; }; then
 
8480
  (exit $ac_status); } && {
 
8481
         test -z "$ac_c_werror_flag" ||
 
8482
         test ! -s conftest.err
 
8483
       } && test -s conftest$ac_exeext &&
 
8484
       $as_test_x conftest$ac_exeext; then
7291
8485
  gnupg_cv_func_ldaplber_init=yes
7292
8486
else
7293
8487
  echo "$as_me: failed program was:" >&5
7294
8488
sed 's/^/| /' conftest.$ac_ext >&5
7295
8489
 
7296
 
gnupg_cv_func_ldaplber_init=no
 
8490
        gnupg_cv_func_ldaplber_init=no
7297
8491
fi
7298
 
rm -f conftest.err conftest.$ac_objext \
 
8492
 
 
8493
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7299
8494
      conftest$ac_exeext conftest.$ac_ext
7300
 
      echo "$as_me:$LINENO: result: $gnupg_cv_func_ldaplber_init" >&5
7301
 
echo "${ECHO_T}$gnupg_cv_func_ldaplber_init" >&6
 
8495
      { echo "$as_me:$LINENO: result: $gnupg_cv_func_ldaplber_init" >&5
 
8496
echo "${ECHO_T}$gnupg_cv_func_ldaplber_init" >&6; }
7302
8497
    fi
7303
8498
 
7304
8499
    if test "$gnupg_cv_func_ldaplber_init" = yes ; then
7310
8505
    fi
7311
8506
 
7312
8507
    if test "$gnupg_cv_func_ldap_init" = yes || \
7313
 
        test "$gnupg_cv_func_ldaplber_init" = yes ; then
7314
 
       LDAPLIBS=$MY_LDAPLIBS
7315
 
       GPGKEYS_LDAP="gpgkeys_ldap$EXEEXT"
7316
 
 
7317
 
       echo "$as_me:$LINENO: checking whether LDAP supports ldap_get_option" >&5
7318
 
echo $ECHO_N "checking whether LDAP supports ldap_get_option... $ECHO_C" >&6
7319
 
 
7320
 
       if test "$gnupg_cv_func_ldap_init" = yes ; then
7321
 
          cat >conftest.$ac_ext <<_ACEOF
7322
 
/* confdefs.h.  */
7323
 
_ACEOF
7324
 
cat confdefs.h >>conftest.$ac_ext
7325
 
cat >>conftest.$ac_ext <<_ACEOF
7326
 
/* end confdefs.h.  */
7327
 
#include <ldap.h>
7328
 
int
7329
 
main ()
7330
 
{
7331
 
ldap_get_option((void *)0,0,(void *)0);
7332
 
  ;
7333
 
  return 0;
7334
 
}
7335
 
_ACEOF
7336
 
rm -f conftest.$ac_objext conftest$ac_exeext
7337
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338
 
  (eval $ac_link) 2>conftest.er1
7339
 
  ac_status=$?
7340
 
  grep -v '^ *+' conftest.er1 >conftest.err
7341
 
  rm -f conftest.er1
7342
 
  cat conftest.err >&5
7343
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344
 
  (exit $ac_status); } &&
7345
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7346
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347
 
  (eval $ac_try) 2>&5
7348
 
  ac_status=$?
7349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350
 
  (exit $ac_status); }; } &&
7351
 
         { ac_try='test -s conftest$ac_exeext'
7352
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353
 
  (eval $ac_try) 2>&5
7354
 
  ac_status=$?
7355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356
 
  (exit $ac_status); }; }; then
7357
 
  gnupg_cv_func_ldap_get_option=yes
7358
 
else
7359
 
  echo "$as_me: failed program was:" >&5
7360
 
sed 's/^/| /' conftest.$ac_ext >&5
7361
 
 
7362
 
gnupg_cv_func_ldap_get_option=no
7363
 
fi
7364
 
rm -f conftest.err conftest.$ac_objext \
7365
 
      conftest$ac_exeext conftest.$ac_ext
7366
 
        else
7367
 
          cat >conftest.$ac_ext <<_ACEOF
7368
 
/* confdefs.h.  */
7369
 
_ACEOF
7370
 
cat confdefs.h >>conftest.$ac_ext
7371
 
cat >>conftest.$ac_ext <<_ACEOF
7372
 
/* end confdefs.h.  */
7373
 
#include <lber.h>
7374
 
#include <ldap.h>
7375
 
int
7376
 
main ()
7377
 
{
7378
 
ldap_get_option((void *)0,0,(void *)0);
7379
 
  ;
7380
 
  return 0;
7381
 
}
7382
 
_ACEOF
7383
 
rm -f conftest.$ac_objext conftest$ac_exeext
7384
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385
 
  (eval $ac_link) 2>conftest.er1
7386
 
  ac_status=$?
7387
 
  grep -v '^ *+' conftest.er1 >conftest.err
7388
 
  rm -f conftest.er1
7389
 
  cat conftest.err >&5
7390
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391
 
  (exit $ac_status); } &&
7392
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7393
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394
 
  (eval $ac_try) 2>&5
7395
 
  ac_status=$?
7396
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397
 
  (exit $ac_status); }; } &&
7398
 
         { ac_try='test -s conftest$ac_exeext'
7399
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400
 
  (eval $ac_try) 2>&5
7401
 
  ac_status=$?
7402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403
 
  (exit $ac_status); }; }; then
7404
 
  gnupg_cv_func_ldap_get_option=yes
7405
 
else
7406
 
  echo "$as_me: failed program was:" >&5
7407
 
sed 's/^/| /' conftest.$ac_ext >&5
7408
 
 
7409
 
gnupg_cv_func_ldap_get_option=no
7410
 
fi
7411
 
rm -f conftest.err conftest.$ac_objext \
7412
 
      conftest$ac_exeext conftest.$ac_ext
7413
 
       fi
7414
 
 
7415
 
       echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_get_option" >&5
7416
 
echo "${ECHO_T}$gnupg_cv_func_ldap_get_option" >&6
7417
 
 
7418
 
       if test "$gnupg_cv_func_ldap_get_option" = yes ; then
7419
 
 
7420
 
cat >>confdefs.h <<\_ACEOF
7421
 
#define HAVE_LDAP_GET_OPTION 1
7422
 
_ACEOF
7423
 
 
7424
 
       else
7425
 
          echo "$as_me:$LINENO: checking whether LDAP supports ld_errno" >&5
7426
 
echo $ECHO_N "checking whether LDAP supports ld_errno... $ECHO_C" >&6
7427
 
 
7428
 
          if test "$gnupg_cv_func_ldap_init" = yes ; then
7429
 
            cat >conftest.$ac_ext <<_ACEOF
7430
 
/* confdefs.h.  */
7431
 
_ACEOF
7432
 
cat confdefs.h >>conftest.$ac_ext
7433
 
cat >>conftest.$ac_ext <<_ACEOF
7434
 
/* end confdefs.h.  */
7435
 
#include <ldap.h>
7436
 
int
7437
 
main ()
7438
 
{
7439
 
LDAP *ldap; ldap->ld_errno;
7440
 
  ;
7441
 
  return 0;
7442
 
}
7443
 
_ACEOF
7444
 
rm -f conftest.$ac_objext
7445
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446
 
  (eval $ac_compile) 2>conftest.er1
7447
 
  ac_status=$?
7448
 
  grep -v '^ *+' conftest.er1 >conftest.err
7449
 
  rm -f conftest.er1
7450
 
  cat conftest.err >&5
7451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452
 
  (exit $ac_status); } &&
7453
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7454
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455
 
  (eval $ac_try) 2>&5
7456
 
  ac_status=$?
7457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458
 
  (exit $ac_status); }; } &&
7459
 
         { ac_try='test -s conftest.$ac_objext'
7460
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461
 
  (eval $ac_try) 2>&5
7462
 
  ac_status=$?
7463
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464
 
  (exit $ac_status); }; }; then
7465
 
  gnupg_cv_func_ldap_ld_errno=yes
7466
 
else
7467
 
  echo "$as_me: failed program was:" >&5
7468
 
sed 's/^/| /' conftest.$ac_ext >&5
7469
 
 
7470
 
gnupg_cv_func_ldap_ld_errno=no
7471
 
fi
7472
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7473
 
           else
7474
 
            cat >conftest.$ac_ext <<_ACEOF
7475
 
/* confdefs.h.  */
7476
 
_ACEOF
7477
 
cat confdefs.h >>conftest.$ac_ext
7478
 
cat >>conftest.$ac_ext <<_ACEOF
7479
 
/* end confdefs.h.  */
7480
 
#include <lber.h>
7481
 
#include <ldap.h>
7482
 
int
7483
 
main ()
7484
 
{
7485
 
LDAP *ldap; ldap->ld_errno;
7486
 
  ;
7487
 
  return 0;
7488
 
}
7489
 
_ACEOF
7490
 
rm -f conftest.$ac_objext conftest$ac_exeext
7491
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492
 
  (eval $ac_link) 2>conftest.er1
7493
 
  ac_status=$?
7494
 
  grep -v '^ *+' conftest.er1 >conftest.err
7495
 
  rm -f conftest.er1
7496
 
  cat conftest.err >&5
7497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498
 
  (exit $ac_status); } &&
7499
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7500
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501
 
  (eval $ac_try) 2>&5
7502
 
  ac_status=$?
7503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504
 
  (exit $ac_status); }; } &&
7505
 
         { ac_try='test -s conftest$ac_exeext'
7506
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507
 
  (eval $ac_try) 2>&5
7508
 
  ac_status=$?
7509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510
 
  (exit $ac_status); }; }; then
7511
 
  gnupg_cv_func_ldap_ld_errno=yes
7512
 
else
7513
 
  echo "$as_me: failed program was:" >&5
7514
 
sed 's/^/| /' conftest.$ac_ext >&5
7515
 
 
7516
 
gnupg_cv_func_ldap_ld_errno=no
7517
 
fi
7518
 
rm -f conftest.err conftest.$ac_objext \
7519
 
      conftest$ac_exeext conftest.$ac_ext
7520
 
          fi
7521
 
 
7522
 
          echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_ld_errno" >&5
7523
 
echo "${ECHO_T}$gnupg_cv_func_ldap_ld_errno" >&6
 
8508
        test "$gnupg_cv_func_ldaplber_init" = yes ; then
 
8509
       LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
 
8510
       GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
 
8511
 
 
8512
 
 
8513
 
 
8514
for ac_func in ldap_get_option ldap_set_option
 
8515
do
 
8516
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8517
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8518
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
8519
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
8520
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8521
else
 
8522
  cat >conftest.$ac_ext <<_ACEOF
 
8523
/* confdefs.h.  */
 
8524
_ACEOF
 
8525
cat confdefs.h >>conftest.$ac_ext
 
8526
cat >>conftest.$ac_ext <<_ACEOF
 
8527
/* end confdefs.h.  */
 
8528
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8529
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8530
#define $ac_func innocuous_$ac_func
 
8531
 
 
8532
/* System header to define __stub macros and hopefully few prototypes,
 
8533
    which can conflict with char $ac_func (); below.
 
8534
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8535
    <limits.h> exists even on freestanding compilers.  */
 
8536
 
 
8537
#ifdef __STDC__
 
8538
# include <limits.h>
 
8539
#else
 
8540
# include <assert.h>
 
8541
#endif
 
8542
 
 
8543
#undef $ac_func
 
8544
 
 
8545
/* Override any GCC internal prototype to avoid an error.
 
8546
   Use char because int might match the return type of a GCC
 
8547
   builtin and then its argument prototype would still apply.  */
 
8548
#ifdef __cplusplus
 
8549
extern "C"
 
8550
#endif
 
8551
char $ac_func ();
 
8552
/* The GNU C library defines this for functions which it implements
 
8553
    to always fail with ENOSYS.  Some functions are actually named
 
8554
    something starting with __ and the normal name is an alias.  */
 
8555
#if defined __stub_$ac_func || defined __stub___$ac_func
 
8556
choke me
 
8557
#endif
 
8558
 
 
8559
int
 
8560
main ()
 
8561
{
 
8562
return $ac_func ();
 
8563
  ;
 
8564
  return 0;
 
8565
}
 
8566
_ACEOF
 
8567
rm -f conftest.$ac_objext conftest$ac_exeext
 
8568
if { (ac_try="$ac_link"
 
8569
case "(($ac_try" in
 
8570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8571
  *) ac_try_echo=$ac_try;;
 
8572
esac
 
8573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8574
  (eval "$ac_link") 2>conftest.er1
 
8575
  ac_status=$?
 
8576
  grep -v '^ *+' conftest.er1 >conftest.err
 
8577
  rm -f conftest.er1
 
8578
  cat conftest.err >&5
 
8579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8580
  (exit $ac_status); } && {
 
8581
         test -z "$ac_c_werror_flag" ||
 
8582
         test ! -s conftest.err
 
8583
       } && test -s conftest$ac_exeext &&
 
8584
       $as_test_x conftest$ac_exeext; then
 
8585
  eval "$as_ac_var=yes"
 
8586
else
 
8587
  echo "$as_me: failed program was:" >&5
 
8588
sed 's/^/| /' conftest.$ac_ext >&5
 
8589
 
 
8590
        eval "$as_ac_var=no"
 
8591
fi
 
8592
 
 
8593
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8594
      conftest$ac_exeext conftest.$ac_ext
 
8595
fi
 
8596
ac_res=`eval echo '${'$as_ac_var'}'`
 
8597
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8598
echo "${ECHO_T}$ac_res" >&6; }
 
8599
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8600
  cat >>confdefs.h <<_ACEOF
 
8601
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8602
_ACEOF
 
8603
 
 
8604
fi
 
8605
done
 
8606
 
 
8607
       # The extra test for ldap_start_tls_sA is for W32 because
 
8608
       # that is the actual function in the library.
 
8609
 
 
8610
 
 
8611
for ac_func in ldap_start_tls_s ldap_start_tls_sA
 
8612
do
 
8613
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8614
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8615
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
8616
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
8617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8618
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
 
8624
/* end confdefs.h.  */
 
8625
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8626
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8627
#define $ac_func innocuous_$ac_func
 
8628
 
 
8629
/* System header to define __stub macros and hopefully few prototypes,
 
8630
    which can conflict with char $ac_func (); below.
 
8631
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8632
    <limits.h> exists even on freestanding compilers.  */
 
8633
 
 
8634
#ifdef __STDC__
 
8635
# include <limits.h>
 
8636
#else
 
8637
# include <assert.h>
 
8638
#endif
 
8639
 
 
8640
#undef $ac_func
 
8641
 
 
8642
/* Override any GCC internal prototype to avoid an error.
 
8643
   Use char because int might match the return type of a GCC
 
8644
   builtin and then its argument prototype would still apply.  */
 
8645
#ifdef __cplusplus
 
8646
extern "C"
 
8647
#endif
 
8648
char $ac_func ();
 
8649
/* The GNU C library defines this for functions which it implements
 
8650
    to always fail with ENOSYS.  Some functions are actually named
 
8651
    something starting with __ and the normal name is an alias.  */
 
8652
#if defined __stub_$ac_func || defined __stub___$ac_func
 
8653
choke me
 
8654
#endif
 
8655
 
 
8656
int
 
8657
main ()
 
8658
{
 
8659
return $ac_func ();
 
8660
  ;
 
8661
  return 0;
 
8662
}
 
8663
_ACEOF
 
8664
rm -f conftest.$ac_objext conftest$ac_exeext
 
8665
if { (ac_try="$ac_link"
 
8666
case "(($ac_try" in
 
8667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8668
  *) ac_try_echo=$ac_try;;
 
8669
esac
 
8670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8671
  (eval "$ac_link") 2>conftest.er1
 
8672
  ac_status=$?
 
8673
  grep -v '^ *+' conftest.er1 >conftest.err
 
8674
  rm -f conftest.er1
 
8675
  cat conftest.err >&5
 
8676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8677
  (exit $ac_status); } && {
 
8678
         test -z "$ac_c_werror_flag" ||
 
8679
         test ! -s conftest.err
 
8680
       } && test -s conftest$ac_exeext &&
 
8681
       $as_test_x conftest$ac_exeext; then
 
8682
  eval "$as_ac_var=yes"
 
8683
else
 
8684
  echo "$as_me: failed program was:" >&5
 
8685
sed 's/^/| /' conftest.$ac_ext >&5
 
8686
 
 
8687
        eval "$as_ac_var=no"
 
8688
fi
 
8689
 
 
8690
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8691
      conftest$ac_exeext conftest.$ac_ext
 
8692
fi
 
8693
ac_res=`eval echo '${'$as_ac_var'}'`
 
8694
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8695
echo "${ECHO_T}$ac_res" >&6; }
 
8696
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8697
  cat >>confdefs.h <<_ACEOF
 
8698
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8699
_ACEOF
 
8700
 
 
8701
fi
 
8702
done
 
8703
 
 
8704
 
 
8705
       if test "$ac_cv_func_ldap_get_option" != yes ; then
 
8706
          { echo "$as_me:$LINENO: checking whether LDAP supports ld_errno" >&5
 
8707
echo $ECHO_N "checking whether LDAP supports ld_errno... $ECHO_C" >&6; }
 
8708
          cat >conftest.$ac_ext <<_ACEOF
 
8709
/* confdefs.h.  */
 
8710
_ACEOF
 
8711
cat confdefs.h >>conftest.$ac_ext
 
8712
cat >>conftest.$ac_ext <<_ACEOF
 
8713
/* end confdefs.h.  */
 
8714
#include <ldap.h>
 
8715
int
 
8716
main ()
 
8717
{
 
8718
LDAP *ldap; ldap->ld_errno;
 
8719
  ;
 
8720
  return 0;
 
8721
}
 
8722
_ACEOF
 
8723
rm -f conftest.$ac_objext conftest$ac_exeext
 
8724
if { (ac_try="$ac_link"
 
8725
case "(($ac_try" in
 
8726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8727
  *) ac_try_echo=$ac_try;;
 
8728
esac
 
8729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8730
  (eval "$ac_link") 2>conftest.er1
 
8731
  ac_status=$?
 
8732
  grep -v '^ *+' conftest.er1 >conftest.err
 
8733
  rm -f conftest.er1
 
8734
  cat conftest.err >&5
 
8735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8736
  (exit $ac_status); } && {
 
8737
         test -z "$ac_c_werror_flag" ||
 
8738
         test ! -s conftest.err
 
8739
       } && test -s conftest$ac_exeext &&
 
8740
       $as_test_x conftest$ac_exeext; then
 
8741
  gnupg_cv_func_ldap_ld_errno=yes
 
8742
else
 
8743
  echo "$as_me: failed program was:" >&5
 
8744
sed 's/^/| /' conftest.$ac_ext >&5
 
8745
 
 
8746
        gnupg_cv_func_ldap_ld_errno=no
 
8747
fi
 
8748
 
 
8749
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8750
      conftest$ac_exeext conftest.$ac_ext
 
8751
          { echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_ld_errno" >&5
 
8752
echo "${ECHO_T}$gnupg_cv_func_ldap_ld_errno" >&6; }
7524
8753
 
7525
8754
          if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
7526
8755
 
7536
8765
 
7537
8766
    if test "$GPGKEYS_LDAP" != "" ; then break; fi
7538
8767
  done
7539
 
fi
7540
 
 
7541
 
 
7542
 
 
7543
 
 
7544
 
 
 
8768
 
 
8769
 
 
8770
 
 
8771
 
 
8772
 
 
8773
  CPPFLAGS=$_ldap_save_cppflags
 
8774
  LDFLAGS=$_ldap_save_ldflags
 
8775
fi
 
8776
 
 
8777
fi
 
8778
 
 
8779
#
 
8780
# Check for curl.  We fake the curl API if libcurl isn't installed.
 
8781
#
 
8782
 
 
8783
 
 
8784
 
 
8785
 
 
8786
 
 
8787
 
 
8788
 
 
8789
 
 
8790
 
 
8791
 
 
8792
 
 
8793
 
 
8794
 
 
8795
 
 
8796
 
 
8797
 
 
8798
 
 
8799
 
 
8800
 
 
8801
 
 
8802
 
 
8803
 
 
8804
 
 
8805
 
 
8806
 
 
8807
 
 
8808
 
 
8809
 
 
8810
 
 
8811
 
 
8812
 
 
8813
 
 
8814
 
 
8815
 
 
8816
 
 
8817
 
 
8818
 
 
8819
 
 
8820
# Check whether --with-libcurl was given.
 
8821
if test "${with_libcurl+set}" = set; then
 
8822
  withval=$with_libcurl; _libcurl_with=$withval
 
8823
else
 
8824
  _libcurl_with=yes
 
8825
fi
 
8826
 
 
8827
 
 
8828
  if test "$_libcurl_with" != "no" ; then
 
8829
 
 
8830
     for ac_prog in gawk mawk nawk awk
 
8831
do
 
8832
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
8833
set dummy $ac_prog; ac_word=$2
 
8834
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8835
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8836
if test "${ac_cv_prog_AWK+set}" = set; then
 
8837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8838
else
 
8839
  if test -n "$AWK"; then
 
8840
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
8841
else
 
8842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8843
for as_dir in $PATH
 
8844
do
 
8845
  IFS=$as_save_IFS
 
8846
  test -z "$as_dir" && as_dir=.
 
8847
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8848
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8849
    ac_cv_prog_AWK="$ac_prog"
 
8850
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8851
    break 2
 
8852
  fi
 
8853
done
 
8854
done
 
8855
IFS=$as_save_IFS
 
8856
 
 
8857
fi
 
8858
fi
 
8859
AWK=$ac_cv_prog_AWK
 
8860
if test -n "$AWK"; then
 
8861
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
8862
echo "${ECHO_T}$AWK" >&6; }
 
8863
else
 
8864
  { echo "$as_me:$LINENO: result: no" >&5
 
8865
echo "${ECHO_T}no" >&6; }
 
8866
fi
 
8867
 
 
8868
 
 
8869
  test -n "$AWK" && break
 
8870
done
 
8871
 
 
8872
 
 
8873
     _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
 
8874
 
 
8875
     _libcurl_try_link=yes
 
8876
 
 
8877
     if test -d "$_libcurl_with" ; then
 
8878
        LIBCURL_CPPFLAGS="-I$withval/include"
 
8879
        _libcurl_ldflags="-L$withval/lib"
 
8880
        # Extract the first word of ""$withval/bin/curl-config"", so it can be a program name with args.
 
8881
set dummy "$withval/bin/curl-config"; ac_word=$2
 
8882
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8884
if test "${ac_cv_path__libcurl_config+set}" = set; then
 
8885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8886
else
 
8887
  case $_libcurl_config in
 
8888
  [\\/]* | ?:[\\/]*)
 
8889
  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
 
8890
  ;;
 
8891
  *)
 
8892
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8893
for as_dir in $PATH
 
8894
do
 
8895
  IFS=$as_save_IFS
 
8896
  test -z "$as_dir" && as_dir=.
 
8897
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8898
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8899
    ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
 
8900
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8901
    break 2
 
8902
  fi
 
8903
done
 
8904
done
 
8905
IFS=$as_save_IFS
 
8906
 
 
8907
  ;;
 
8908
esac
 
8909
fi
 
8910
_libcurl_config=$ac_cv_path__libcurl_config
 
8911
if test -n "$_libcurl_config"; then
 
8912
  { echo "$as_me:$LINENO: result: $_libcurl_config" >&5
 
8913
echo "${ECHO_T}$_libcurl_config" >&6; }
 
8914
else
 
8915
  { echo "$as_me:$LINENO: result: no" >&5
 
8916
echo "${ECHO_T}no" >&6; }
 
8917
fi
 
8918
 
 
8919
 
 
8920
     else
 
8921
        # Extract the first word of "curl-config", so it can be a program name with args.
 
8922
set dummy curl-config; ac_word=$2
 
8923
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8925
if test "${ac_cv_path__libcurl_config+set}" = set; then
 
8926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8927
else
 
8928
  case $_libcurl_config in
 
8929
  [\\/]* | ?:[\\/]*)
 
8930
  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
 
8931
  ;;
 
8932
  *)
 
8933
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8934
for as_dir in $PATH
 
8935
do
 
8936
  IFS=$as_save_IFS
 
8937
  test -z "$as_dir" && as_dir=.
 
8938
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8939
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8940
    ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
 
8941
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8942
    break 2
 
8943
  fi
 
8944
done
 
8945
done
 
8946
IFS=$as_save_IFS
 
8947
 
 
8948
  ;;
 
8949
esac
 
8950
fi
 
8951
_libcurl_config=$ac_cv_path__libcurl_config
 
8952
if test -n "$_libcurl_config"; then
 
8953
  { echo "$as_me:$LINENO: result: $_libcurl_config" >&5
 
8954
echo "${ECHO_T}$_libcurl_config" >&6; }
 
8955
else
 
8956
  { echo "$as_me:$LINENO: result: no" >&5
 
8957
echo "${ECHO_T}no" >&6; }
 
8958
fi
 
8959
 
 
8960
 
 
8961
     fi
 
8962
 
 
8963
     if test x$_libcurl_config != "x" ; then
 
8964
        { echo "$as_me:$LINENO: checking for the version of libcurl" >&5
 
8965
echo $ECHO_N "checking for the version of libcurl... $ECHO_C" >&6; }
 
8966
if test "${libcurl_cv_lib_curl_version+set}" = set; then
 
8967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8968
else
 
8969
  libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
 
8970
fi
 
8971
{ echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
 
8972
echo "${ECHO_T}$libcurl_cv_lib_curl_version" >&6; }
 
8973
 
 
8974
        _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
 
8975
        _libcurl_wanted=`echo 0 | $_libcurl_version_parse`
 
8976
 
 
8977
        if test $_libcurl_wanted -gt 0 ; then
 
8978
           { echo "$as_me:$LINENO: checking for libcurl >= version " >&5
 
8979
echo $ECHO_N "checking for libcurl >= version ... $ECHO_C" >&6; }
 
8980
if test "${libcurl_cv_lib_version_ok+set}" = set; then
 
8981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8982
else
 
8983
 
 
8984
              if test $_libcurl_version -ge $_libcurl_wanted ; then
 
8985
                 libcurl_cv_lib_version_ok=yes
 
8986
              else
 
8987
                 libcurl_cv_lib_version_ok=no
 
8988
              fi
 
8989
 
 
8990
fi
 
8991
{ echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
 
8992
echo "${ECHO_T}$libcurl_cv_lib_version_ok" >&6; }
 
8993
        fi
 
8994
 
 
8995
        if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
 
8996
           if test x"$LIBCURL_CPPFLAGS" = "x" ; then
 
8997
              LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
 
8998
           fi
 
8999
           if test x"$LIBCURL" = "x" ; then
 
9000
              LIBCURL=`$_libcurl_config --libs`
 
9001
 
 
9002
              # This is so silly, but Apple actually has a bug in their
 
9003
              # curl-config script.  Fixed in Tiger, but there are still
 
9004
              # lots of Panther installs around.
 
9005
              case "${host}" in
 
9006
                 powerpc-apple-darwin7*)
 
9007
                    LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
 
9008
                 ;;
 
9009
              esac
 
9010
           fi
 
9011
 
 
9012
           # All curl-config scripts support --feature
 
9013
           _libcurl_features=`$_libcurl_config --feature`
 
9014
 
 
9015
           # Is it modern enough to have --protocols? (7.12.4)
 
9016
           if test $_libcurl_version -ge 461828 ; then
 
9017
              _libcurl_protocols=`$_libcurl_config --protocols`
 
9018
           fi
 
9019
        else
 
9020
           _libcurl_try_link=no
 
9021
        fi
 
9022
 
 
9023
        unset _libcurl_wanted
 
9024
     fi
 
9025
 
 
9026
     if test $_libcurl_try_link = yes ; then
 
9027
 
 
9028
        # we didn't find curl-config, so let's see if the user-supplied
 
9029
        # link line (or failing that, "-lcurl") is enough.
 
9030
        LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
 
9031
 
 
9032
        { echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
 
9033
echo $ECHO_N "checking whether libcurl is usable... $ECHO_C" >&6; }
 
9034
if test "${libcurl_cv_lib_curl_usable+set}" = set; then
 
9035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9036
else
 
9037
 
 
9038
           _libcurl_save_cppflags=$CPPFLAGS
 
9039
           CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
 
9040
           _libcurl_save_libs=$LIBS
 
9041
           LIBS="$LIBCURL $LIBS"
 
9042
 
 
9043
           cat >conftest.$ac_ext <<_ACEOF
 
9044
/* confdefs.h.  */
 
9045
_ACEOF
 
9046
cat confdefs.h >>conftest.$ac_ext
 
9047
cat >>conftest.$ac_ext <<_ACEOF
 
9048
/* end confdefs.h.  */
 
9049
#include <curl/curl.h>
 
9050
int
 
9051
main ()
 
9052
{
 
9053
 
 
9054
/* Try and use a few common options to force a failure if we are
 
9055
   missing symbols or can't link. */
 
9056
int x;
 
9057
curl_easy_setopt(NULL,CURLOPT_URL,NULL);
 
9058
x=CURL_ERROR_SIZE;
 
9059
x=CURLOPT_WRITEFUNCTION;
 
9060
x=CURLOPT_FILE;
 
9061
x=CURLOPT_ERRORBUFFER;
 
9062
x=CURLOPT_STDERR;
 
9063
x=CURLOPT_VERBOSE;
 
9064
 
 
9065
  ;
 
9066
  return 0;
 
9067
}
 
9068
_ACEOF
 
9069
rm -f conftest.$ac_objext conftest$ac_exeext
 
9070
if { (ac_try="$ac_link"
 
9071
case "(($ac_try" in
 
9072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9073
  *) ac_try_echo=$ac_try;;
 
9074
esac
 
9075
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9076
  (eval "$ac_link") 2>conftest.er1
 
9077
  ac_status=$?
 
9078
  grep -v '^ *+' conftest.er1 >conftest.err
 
9079
  rm -f conftest.er1
 
9080
  cat conftest.err >&5
 
9081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9082
  (exit $ac_status); } && {
 
9083
         test -z "$ac_c_werror_flag" ||
 
9084
         test ! -s conftest.err
 
9085
       } && test -s conftest$ac_exeext &&
 
9086
       $as_test_x conftest$ac_exeext; then
 
9087
  libcurl_cv_lib_curl_usable=yes
 
9088
else
 
9089
  echo "$as_me: failed program was:" >&5
 
9090
sed 's/^/| /' conftest.$ac_ext >&5
 
9091
 
 
9092
        libcurl_cv_lib_curl_usable=no
 
9093
fi
 
9094
 
 
9095
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9096
      conftest$ac_exeext conftest.$ac_ext
 
9097
 
 
9098
           CPPFLAGS=$_libcurl_save_cppflags
 
9099
           LIBS=$_libcurl_save_libs
 
9100
           unset _libcurl_save_cppflags
 
9101
           unset _libcurl_save_libs
 
9102
 
 
9103
fi
 
9104
{ echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
 
9105
echo "${ECHO_T}$libcurl_cv_lib_curl_usable" >&6; }
 
9106
 
 
9107
        if test $libcurl_cv_lib_curl_usable = yes ; then
 
9108
 
 
9109
           # Does curl_free() exist in this version of libcurl?
 
9110
           # If not, fake it with free()
 
9111
 
 
9112
           _libcurl_save_cppflags=$CPPFLAGS
 
9113
           CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
 
9114
           _libcurl_save_libs=$LIBS
 
9115
           LIBS="$LIBS $LIBCURL"
 
9116
 
 
9117
           { echo "$as_me:$LINENO: checking for curl_free" >&5
 
9118
echo $ECHO_N "checking for curl_free... $ECHO_C" >&6; }
 
9119
if test "${ac_cv_func_curl_free+set}" = set; then
 
9120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9121
else
 
9122
  cat >conftest.$ac_ext <<_ACEOF
 
9123
/* confdefs.h.  */
 
9124
_ACEOF
 
9125
cat confdefs.h >>conftest.$ac_ext
 
9126
cat >>conftest.$ac_ext <<_ACEOF
 
9127
/* end confdefs.h.  */
 
9128
/* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
 
9129
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9130
#define curl_free innocuous_curl_free
 
9131
 
 
9132
/* System header to define __stub macros and hopefully few prototypes,
 
9133
    which can conflict with char curl_free (); below.
 
9134
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9135
    <limits.h> exists even on freestanding compilers.  */
 
9136
 
 
9137
#ifdef __STDC__
 
9138
# include <limits.h>
 
9139
#else
 
9140
# include <assert.h>
 
9141
#endif
 
9142
 
 
9143
#undef curl_free
 
9144
 
 
9145
/* Override any GCC internal prototype to avoid an error.
 
9146
   Use char because int might match the return type of a GCC
 
9147
   builtin and then its argument prototype would still apply.  */
 
9148
#ifdef __cplusplus
 
9149
extern "C"
 
9150
#endif
 
9151
char curl_free ();
 
9152
/* The GNU C library defines this for functions which it implements
 
9153
    to always fail with ENOSYS.  Some functions are actually named
 
9154
    something starting with __ and the normal name is an alias.  */
 
9155
#if defined __stub_curl_free || defined __stub___curl_free
 
9156
choke me
 
9157
#endif
 
9158
 
 
9159
int
 
9160
main ()
 
9161
{
 
9162
return curl_free ();
 
9163
  ;
 
9164
  return 0;
 
9165
}
 
9166
_ACEOF
 
9167
rm -f conftest.$ac_objext conftest$ac_exeext
 
9168
if { (ac_try="$ac_link"
 
9169
case "(($ac_try" in
 
9170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9171
  *) ac_try_echo=$ac_try;;
 
9172
esac
 
9173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9174
  (eval "$ac_link") 2>conftest.er1
 
9175
  ac_status=$?
 
9176
  grep -v '^ *+' conftest.er1 >conftest.err
 
9177
  rm -f conftest.er1
 
9178
  cat conftest.err >&5
 
9179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9180
  (exit $ac_status); } && {
 
9181
         test -z "$ac_c_werror_flag" ||
 
9182
         test ! -s conftest.err
 
9183
       } && test -s conftest$ac_exeext &&
 
9184
       $as_test_x conftest$ac_exeext; then
 
9185
  ac_cv_func_curl_free=yes
 
9186
else
 
9187
  echo "$as_me: failed program was:" >&5
 
9188
sed 's/^/| /' conftest.$ac_ext >&5
 
9189
 
 
9190
        ac_cv_func_curl_free=no
 
9191
fi
 
9192
 
 
9193
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9194
      conftest$ac_exeext conftest.$ac_ext
 
9195
fi
 
9196
{ echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
 
9197
echo "${ECHO_T}$ac_cv_func_curl_free" >&6; }
 
9198
if test $ac_cv_func_curl_free = yes; then
 
9199
  :
 
9200
else
 
9201
 
 
9202
cat >>confdefs.h <<\_ACEOF
 
9203
#define curl_free free
 
9204
_ACEOF
 
9205
 
 
9206
fi
 
9207
 
 
9208
 
 
9209
           CPPFLAGS=$_libcurl_save_cppflags
 
9210
           LIBS=$_libcurl_save_libs
 
9211
           unset _libcurl_save_cppflags
 
9212
           unset _libcurl_save_libs
 
9213
 
 
9214
 
 
9215
cat >>confdefs.h <<\_ACEOF
 
9216
#define HAVE_LIBCURL 1
 
9217
_ACEOF
 
9218
 
 
9219
 
 
9220
 
 
9221
 
 
9222
           for _libcurl_feature in $_libcurl_features ; do
 
9223
              cat >>confdefs.h <<_ACEOF
 
9224
#define `echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
 
9225
_ACEOF
 
9226
 
 
9227
              eval `echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
 
9228
           done
 
9229
 
 
9230
           if test "x$_libcurl_protocols" = "x" ; then
 
9231
 
 
9232
              # We don't have --protocols, so just assume that all
 
9233
              # protocols are available
 
9234
              _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
 
9235
 
 
9236
              if test x$libcurl_feature_SSL = xyes ; then
 
9237
                 _libcurl_protocols="$_libcurl_protocols HTTPS"
 
9238
 
 
9239
                 # FTPS wasn't standards-compliant until version
 
9240
                 # 7.11.0
 
9241
                 if test $_libcurl_version -ge 461568; then
 
9242
                    _libcurl_protocols="$_libcurl_protocols FTPS"
 
9243
                 fi
 
9244
              fi
 
9245
           fi
 
9246
 
 
9247
           for _libcurl_protocol in $_libcurl_protocols ; do
 
9248
              cat >>confdefs.h <<_ACEOF
 
9249
#define `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
 
9250
_ACEOF
 
9251
 
 
9252
              eval `echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
 
9253
           done
 
9254
        else
 
9255
           unset LIBCURL
 
9256
           unset LIBCURL_CPPFLAGS
 
9257
        fi
 
9258
     fi
 
9259
 
 
9260
     unset _libcurl_try_link
 
9261
     unset _libcurl_version_parse
 
9262
     unset _libcurl_config
 
9263
     unset _libcurl_feature
 
9264
     unset _libcurl_features
 
9265
     unset _libcurl_protocol
 
9266
     unset _libcurl_protocols
 
9267
     unset _libcurl_version
 
9268
     unset _libcurl_ldflags
 
9269
  fi
 
9270
 
 
9271
  if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
 
9272
     # This is the IF-NO path
 
9273
     fake_curl=yes
 
9274
  else
 
9275
     # This is the IF-YES path
 
9276
     :
 
9277
  fi
 
9278
 
 
9279
  unset _libcurl_with
 
9280
 
 
9281
 if test x"$fake_curl" = xyes; then
 
9282
  FAKE_CURL_TRUE=
 
9283
  FAKE_CURL_FALSE='#'
 
9284
else
 
9285
  FAKE_CURL_TRUE='#'
 
9286
  FAKE_CURL_FALSE=
 
9287
fi
 
9288
 
 
9289
 
 
9290
# Generic, for us, means curl
 
9291
 
 
9292
if test x"$try_generic" = xyes ; then
 
9293
   GPGKEYS_CURL="gpg2keys_curl$EXEEXT"
 
9294
 
 
9295
fi
 
9296
 
 
9297
#
 
9298
# Check for sendmail
 
9299
#
 
9300
# This isn't necessarily sendmail itself, but anything that gives a
 
9301
# sendmail-ish interface to the outside world.  That includes Exim,
 
9302
# Postfix, etc.  Basically, anything that can handle "sendmail -t".
7545
9303
if test "$try_mailto" = yes ; then
7546
9304
 
7547
 
# Check whether --with-mailprog or --without-mailprog was given.
 
9305
# Check whether --with-mailprog was given.
7548
9306
if test "${with_mailprog+set}" = set; then
7549
 
  withval="$with_mailprog"
7550
 
 
 
9307
  withval=$with_mailprog;
7551
9308
else
7552
9309
  with_mailprog=yes
7553
 
fi;
7554
 
 
7555
 
  if test "$with_mailprog" = yes ; then
 
9310
fi
 
9311
 
 
9312
 
 
9313
  if test x"$with_mailprog" = xyes ; then
7556
9314
    # Extract the first word of "sendmail", so it can be a program name with args.
7557
9315
set dummy sendmail; ac_word=$2
7558
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7559
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
9316
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9317
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560
9318
if test "${ac_cv_path_SENDMAIL+set}" = set; then
7561
9319
  echo $ECHO_N "(cached) $ECHO_C" >&6
7562
9320
else
7572
9330
  IFS=$as_save_IFS
7573
9331
  test -z "$as_dir" && as_dir=.
7574
9332
  for ac_exec_ext in '' $ac_executable_extensions; do
7575
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
9333
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576
9334
    ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
7577
9335
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578
9336
    break 2
7579
9337
  fi
7580
9338
done
7581
9339
done
 
9340
IFS=$as_save_IFS
7582
9341
 
7583
9342
  ;;
7584
9343
esac
7585
9344
fi
7586
9345
SENDMAIL=$ac_cv_path_SENDMAIL
7587
 
 
7588
9346
if test -n "$SENDMAIL"; then
7589
 
  echo "$as_me:$LINENO: result: $SENDMAIL" >&5
7590
 
echo "${ECHO_T}$SENDMAIL" >&6
 
9347
  { echo "$as_me:$LINENO: result: $SENDMAIL" >&5
 
9348
echo "${ECHO_T}$SENDMAIL" >&6; }
7591
9349
else
7592
 
  echo "$as_me:$LINENO: result: no" >&5
7593
 
echo "${ECHO_T}no" >&6
 
9350
  { echo "$as_me:$LINENO: result: no" >&5
 
9351
echo "${ECHO_T}no" >&6; }
7594
9352
fi
7595
9353
 
 
9354
 
7596
9355
    if test "$ac_cv_path_SENDMAIL" ; then
7597
 
      GPGKEYS_MAILTO="gpgkeys_mailto"
 
9356
      GPGKEYS_MAILTO="gpg2keys_mailto"
7598
9357
    fi
7599
 
  elif test "$with_mailprog" != no ; then
7600
 
    echo "$as_me:$LINENO: checking for a mail transport program" >&5
7601
 
echo $ECHO_N "checking for a mail transport program... $ECHO_C" >&6
 
9358
  elif test x"$with_mailprog" != xno ; then
 
9359
    { echo "$as_me:$LINENO: checking for a mail transport program" >&5
 
9360
echo $ECHO_N "checking for a mail transport program... $ECHO_C" >&6; }
7602
9361
    SENDMAIL=$with_mailprog
7603
9362
 
7604
 
    echo "$as_me:$LINENO: result: $with_mailprog" >&5
7605
 
echo "${ECHO_T}$with_mailprog" >&6
7606
 
    GPGKEYS_MAILTO="gpgkeys_mailto"
 
9363
    { echo "$as_me:$LINENO: result: $with_mailprog" >&5
 
9364
echo "${ECHO_T}$with_mailprog" >&6; }
 
9365
    GPGKEYS_MAILTO="gpg2keys_mailto"
7607
9366
  fi
7608
9367
fi
7609
9368
 
7610
9369
 
7611
9370
 
 
9371
#
 
9372
# Construct a printable name of the OS
 
9373
#
7612
9374
case "${host}" in
7613
9375
    *-mingw32*)
7614
9376
        PRINTABLE_OS_NAME="MingW32"
7637
9399
 
7638
9400
 
7639
9401
 
7640
 
 
7641
 
if test "$try_gettext" = yes; then
7642
 
 
7643
 
        MKINSTALLDIRS=
7644
 
  if test -n "$ac_aux_dir"; then
7645
 
    case "$ac_aux_dir" in
7646
 
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7647
 
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7648
 
    esac
7649
 
  fi
7650
 
  if test -z "$MKINSTALLDIRS"; then
7651
 
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7652
 
  fi
7653
 
 
7654
 
 
7655
 
 
7656
 
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7657
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7658
 
    # Check whether --enable-nls or --disable-nls was given.
7659
 
if test "${enable_nls+set}" = set; then
7660
 
  enableval="$enable_nls"
7661
 
  USE_NLS=$enableval
7662
 
else
7663
 
  USE_NLS=yes
7664
 
fi;
7665
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
7666
 
echo "${ECHO_T}$USE_NLS" >&6
7667
 
 
7668
 
 
7669
 
 
7670
 
 
7671
 
 
7672
 
 
7673
 
# Prepare PATH_SEPARATOR.
7674
 
# The user is always right.
7675
 
if test "${PATH_SEPARATOR+set}" != set; then
7676
 
  echo "#! /bin/sh" >conf$$.sh
7677
 
  echo  "exit 0"   >>conf$$.sh
7678
 
  chmod +x conf$$.sh
7679
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7680
 
    PATH_SEPARATOR=';'
7681
 
  else
7682
 
    PATH_SEPARATOR=:
7683
 
  fi
7684
 
  rm -f conf$$.sh
7685
 
fi
7686
 
 
7687
 
# Find out how to test for executable files. Don't use a zero-byte file,
7688
 
# as systems may use methods other than mode bits to determine executability.
7689
 
cat >conf$$.file <<_ASEOF
7690
 
#! /bin/sh
7691
 
exit 0
7692
 
_ASEOF
7693
 
chmod +x conf$$.file
7694
 
if test -x conf$$.file >/dev/null 2>&1; then
7695
 
  ac_executable_p="test -x"
7696
 
else
7697
 
  ac_executable_p="test -f"
7698
 
fi
7699
 
rm -f conf$$.file
7700
 
 
7701
 
# Extract the first word of "msgfmt", so it can be a program name with args.
7702
 
set dummy msgfmt; ac_word=$2
7703
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7704
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7705
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
7706
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7707
 
else
7708
 
  case "$MSGFMT" in
7709
 
  [\\/]* | ?:[\\/]*)
7710
 
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7711
 
    ;;
7712
 
  *)
7713
 
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7714
 
    for ac_dir in $PATH; do
7715
 
      IFS="$ac_save_IFS"
7716
 
      test -z "$ac_dir" && ac_dir=.
7717
 
      for ac_exec_ext in '' $ac_executable_extensions; do
7718
 
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7719
 
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7720
 
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7721
 
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7722
 
            break 2
7723
 
          fi
7724
 
        fi
7725
 
      done
7726
 
    done
7727
 
    IFS="$ac_save_IFS"
7728
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7729
 
    ;;
7730
 
esac
7731
 
fi
7732
 
MSGFMT="$ac_cv_path_MSGFMT"
7733
 
if test "$MSGFMT" != ":"; then
7734
 
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
7735
 
echo "${ECHO_T}$MSGFMT" >&6
7736
 
else
7737
 
  echo "$as_me:$LINENO: result: no" >&5
7738
 
echo "${ECHO_T}no" >&6
7739
 
fi
7740
 
 
7741
 
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
7742
 
set dummy gmsgfmt; ac_word=$2
7743
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7744
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7745
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
7746
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7747
 
else
7748
 
  case $GMSGFMT in
7749
 
  [\\/]* | ?:[\\/]*)
7750
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7751
 
  ;;
7752
 
  *)
7753
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754
 
for as_dir in $PATH
7755
 
do
7756
 
  IFS=$as_save_IFS
7757
 
  test -z "$as_dir" && as_dir=.
7758
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7759
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7761
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762
 
    break 2
7763
 
  fi
7764
 
done
7765
 
done
7766
 
 
7767
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7768
 
  ;;
7769
 
esac
7770
 
fi
7771
 
GMSGFMT=$ac_cv_path_GMSGFMT
7772
 
 
7773
 
if test -n "$GMSGFMT"; then
7774
 
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7775
 
echo "${ECHO_T}$GMSGFMT" >&6
7776
 
else
7777
 
  echo "$as_me:$LINENO: result: no" >&5
7778
 
echo "${ECHO_T}no" >&6
7779
 
fi
7780
 
 
7781
 
 
7782
 
 
7783
 
# Prepare PATH_SEPARATOR.
7784
 
# The user is always right.
7785
 
if test "${PATH_SEPARATOR+set}" != set; then
7786
 
  echo "#! /bin/sh" >conf$$.sh
7787
 
  echo  "exit 0"   >>conf$$.sh
7788
 
  chmod +x conf$$.sh
7789
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7790
 
    PATH_SEPARATOR=';'
7791
 
  else
7792
 
    PATH_SEPARATOR=:
7793
 
  fi
7794
 
  rm -f conf$$.sh
7795
 
fi
7796
 
 
7797
 
# Find out how to test for executable files. Don't use a zero-byte file,
7798
 
# as systems may use methods other than mode bits to determine executability.
7799
 
cat >conf$$.file <<_ASEOF
7800
 
#! /bin/sh
7801
 
exit 0
7802
 
_ASEOF
7803
 
chmod +x conf$$.file
7804
 
if test -x conf$$.file >/dev/null 2>&1; then
7805
 
  ac_executable_p="test -x"
7806
 
else
7807
 
  ac_executable_p="test -f"
7808
 
fi
7809
 
rm -f conf$$.file
7810
 
 
7811
 
# Extract the first word of "xgettext", so it can be a program name with args.
7812
 
set dummy xgettext; ac_word=$2
7813
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7814
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7815
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
7816
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7817
 
else
7818
 
  case "$XGETTEXT" in
7819
 
  [\\/]* | ?:[\\/]*)
7820
 
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7821
 
    ;;
7822
 
  *)
7823
 
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7824
 
    for ac_dir in $PATH; do
7825
 
      IFS="$ac_save_IFS"
7826
 
      test -z "$ac_dir" && ac_dir=.
7827
 
      for ac_exec_ext in '' $ac_executable_extensions; do
7828
 
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7829
 
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7830
 
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7831
 
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7832
 
            break 2
7833
 
          fi
7834
 
        fi
7835
 
      done
7836
 
    done
7837
 
    IFS="$ac_save_IFS"
7838
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7839
 
    ;;
7840
 
esac
7841
 
fi
7842
 
XGETTEXT="$ac_cv_path_XGETTEXT"
7843
 
if test "$XGETTEXT" != ":"; then
7844
 
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7845
 
echo "${ECHO_T}$XGETTEXT" >&6
7846
 
else
7847
 
  echo "$as_me:$LINENO: result: no" >&5
7848
 
echo "${ECHO_T}no" >&6
7849
 
fi
7850
 
 
7851
 
    rm -f messages.po
7852
 
 
7853
 
 
7854
 
# Prepare PATH_SEPARATOR.
7855
 
# The user is always right.
7856
 
if test "${PATH_SEPARATOR+set}" != set; then
7857
 
  echo "#! /bin/sh" >conf$$.sh
7858
 
  echo  "exit 0"   >>conf$$.sh
7859
 
  chmod +x conf$$.sh
7860
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7861
 
    PATH_SEPARATOR=';'
7862
 
  else
7863
 
    PATH_SEPARATOR=:
7864
 
  fi
7865
 
  rm -f conf$$.sh
7866
 
fi
7867
 
 
7868
 
# Find out how to test for executable files. Don't use a zero-byte file,
7869
 
# as systems may use methods other than mode bits to determine executability.
7870
 
cat >conf$$.file <<_ASEOF
7871
 
#! /bin/sh
7872
 
exit 0
7873
 
_ASEOF
7874
 
chmod +x conf$$.file
7875
 
if test -x conf$$.file >/dev/null 2>&1; then
7876
 
  ac_executable_p="test -x"
7877
 
else
7878
 
  ac_executable_p="test -f"
7879
 
fi
7880
 
rm -f conf$$.file
7881
 
 
7882
 
# Extract the first word of "msgmerge", so it can be a program name with args.
7883
 
set dummy msgmerge; ac_word=$2
7884
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7885
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7886
 
if test "${ac_cv_path_MSGMERGE+set}" = set; then
7887
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7888
 
else
7889
 
  case "$MSGMERGE" in
7890
 
  [\\/]* | ?:[\\/]*)
7891
 
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7892
 
    ;;
7893
 
  *)
7894
 
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7895
 
    for ac_dir in $PATH; do
7896
 
      IFS="$ac_save_IFS"
7897
 
      test -z "$ac_dir" && ac_dir=.
7898
 
      for ac_exec_ext in '' $ac_executable_extensions; do
7899
 
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7900
 
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7901
 
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7902
 
            break 2
7903
 
          fi
7904
 
        fi
7905
 
      done
7906
 
    done
7907
 
    IFS="$ac_save_IFS"
7908
 
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7909
 
    ;;
7910
 
esac
7911
 
fi
7912
 
MSGMERGE="$ac_cv_path_MSGMERGE"
7913
 
if test "$MSGMERGE" != ":"; then
7914
 
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7915
 
echo "${ECHO_T}$MSGMERGE" >&6
7916
 
else
7917
 
  echo "$as_me:$LINENO: result: no" >&5
7918
 
echo "${ECHO_T}no" >&6
7919
 
fi
7920
 
 
7921
 
 
7922
 
      if test "$GMSGFMT" != ":"; then
7923
 
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7924
 
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7925
 
      : ;
7926
 
    else
7927
 
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7928
 
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7929
 
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7930
 
      GMSGFMT=":"
7931
 
    fi
7932
 
  fi
7933
 
 
7934
 
      if test "$XGETTEXT" != ":"; then
7935
 
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7936
 
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7937
 
      : ;
7938
 
    else
7939
 
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7940
 
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7941
 
      XGETTEXT=":"
7942
 
    fi
7943
 
        rm -f messages.po
7944
 
  fi
7945
 
 
7946
 
            ac_config_commands="$ac_config_commands default-1"
7947
 
 
7948
 
 
7949
 
 
7950
 
echo "$as_me:$LINENO: checking for egrep" >&5
7951
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7952
 
if test "${ac_cv_prog_egrep+set}" = set; then
7953
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7954
 
else
7955
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7956
 
    then ac_cv_prog_egrep='grep -E'
7957
 
    else ac_cv_prog_egrep='egrep'
7958
 
    fi
7959
 
fi
7960
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7961
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7962
 
 EGREP=$ac_cv_prog_egrep
7963
 
 
7964
 
 
7965
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7966
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7967
 
if test "${ac_cv_header_stdc+set}" = set; then
7968
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7969
 
else
7970
 
  cat >conftest.$ac_ext <<_ACEOF
7971
 
/* confdefs.h.  */
7972
 
_ACEOF
7973
 
cat confdefs.h >>conftest.$ac_ext
7974
 
cat >>conftest.$ac_ext <<_ACEOF
7975
 
/* end confdefs.h.  */
7976
 
#include <stdlib.h>
7977
 
#include <stdarg.h>
7978
 
#include <string.h>
7979
 
#include <float.h>
7980
 
 
7981
 
int
7982
 
main ()
7983
 
{
7984
 
 
7985
 
  ;
7986
 
  return 0;
7987
 
}
7988
 
_ACEOF
7989
 
rm -f conftest.$ac_objext
7990
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7991
 
  (eval $ac_compile) 2>conftest.er1
7992
 
  ac_status=$?
7993
 
  grep -v '^ *+' conftest.er1 >conftest.err
7994
 
  rm -f conftest.er1
7995
 
  cat conftest.err >&5
7996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997
 
  (exit $ac_status); } &&
7998
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7999
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000
 
  (eval $ac_try) 2>&5
8001
 
  ac_status=$?
8002
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003
 
  (exit $ac_status); }; } &&
8004
 
         { ac_try='test -s conftest.$ac_objext'
8005
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006
 
  (eval $ac_try) 2>&5
8007
 
  ac_status=$?
8008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009
 
  (exit $ac_status); }; }; then
8010
 
  ac_cv_header_stdc=yes
8011
 
else
8012
 
  echo "$as_me: failed program was:" >&5
8013
 
sed 's/^/| /' conftest.$ac_ext >&5
8014
 
 
8015
 
ac_cv_header_stdc=no
8016
 
fi
8017
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8018
 
 
8019
 
if test $ac_cv_header_stdc = yes; then
8020
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8021
 
  cat >conftest.$ac_ext <<_ACEOF
8022
 
/* confdefs.h.  */
8023
 
_ACEOF
8024
 
cat confdefs.h >>conftest.$ac_ext
8025
 
cat >>conftest.$ac_ext <<_ACEOF
8026
 
/* end confdefs.h.  */
8027
 
#include <string.h>
8028
 
 
8029
 
_ACEOF
8030
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8031
 
  $EGREP "memchr" >/dev/null 2>&1; then
8032
 
  :
8033
 
else
8034
 
  ac_cv_header_stdc=no
8035
 
fi
8036
 
rm -f conftest*
8037
 
 
8038
 
fi
8039
 
 
8040
 
if test $ac_cv_header_stdc = yes; then
8041
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8042
 
  cat >conftest.$ac_ext <<_ACEOF
8043
 
/* confdefs.h.  */
8044
 
_ACEOF
8045
 
cat confdefs.h >>conftest.$ac_ext
8046
 
cat >>conftest.$ac_ext <<_ACEOF
8047
 
/* end confdefs.h.  */
8048
 
#include <stdlib.h>
8049
 
 
8050
 
_ACEOF
8051
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8052
 
  $EGREP "free" >/dev/null 2>&1; then
8053
 
  :
8054
 
else
8055
 
  ac_cv_header_stdc=no
8056
 
fi
8057
 
rm -f conftest*
8058
 
 
8059
 
fi
8060
 
 
8061
 
if test $ac_cv_header_stdc = yes; then
8062
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8063
 
  if test "$cross_compiling" = yes; then
8064
 
  :
8065
 
else
8066
 
  cat >conftest.$ac_ext <<_ACEOF
8067
 
/* confdefs.h.  */
8068
 
_ACEOF
8069
 
cat confdefs.h >>conftest.$ac_ext
8070
 
cat >>conftest.$ac_ext <<_ACEOF
8071
 
/* end confdefs.h.  */
8072
 
#include <ctype.h>
8073
 
#if ((' ' & 0x0FF) == 0x020)
8074
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8075
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8076
 
#else
8077
 
# define ISLOWER(c) \
8078
 
                   (('a' <= (c) && (c) <= 'i') \
8079
 
                     || ('j' <= (c) && (c) <= 'r') \
8080
 
                     || ('s' <= (c) && (c) <= 'z'))
8081
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8082
 
#endif
8083
 
 
8084
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8085
 
int
8086
 
main ()
8087
 
{
8088
 
  int i;
8089
 
  for (i = 0; i < 256; i++)
8090
 
    if (XOR (islower (i), ISLOWER (i))
8091
 
        || toupper (i) != TOUPPER (i))
8092
 
      exit(2);
8093
 
  exit (0);
8094
 
}
8095
 
_ACEOF
8096
 
rm -f conftest$ac_exeext
8097
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8098
 
  (eval $ac_link) 2>&5
8099
 
  ac_status=$?
8100
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8102
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103
 
  (eval $ac_try) 2>&5
8104
 
  ac_status=$?
8105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106
 
  (exit $ac_status); }; }; then
8107
 
  :
8108
 
else
8109
 
  echo "$as_me: program exited with status $ac_status" >&5
8110
 
echo "$as_me: failed program was:" >&5
8111
 
sed 's/^/| /' conftest.$ac_ext >&5
8112
 
 
8113
 
( exit $ac_status )
8114
 
ac_cv_header_stdc=no
8115
 
fi
8116
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8117
 
fi
8118
 
fi
8119
 
fi
8120
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8121
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
8122
 
if test $ac_cv_header_stdc = yes; then
8123
 
 
8124
 
cat >>confdefs.h <<\_ACEOF
8125
 
#define STDC_HEADERS 1
8126
 
_ACEOF
8127
 
 
8128
 
fi
8129
 
 
8130
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8131
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8132
 
if test "${ac_cv_c_const+set}" = set; then
8133
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8134
 
else
8135
 
  cat >conftest.$ac_ext <<_ACEOF
8136
 
/* confdefs.h.  */
8137
 
_ACEOF
8138
 
cat confdefs.h >>conftest.$ac_ext
8139
 
cat >>conftest.$ac_ext <<_ACEOF
8140
 
/* end confdefs.h.  */
8141
 
 
8142
 
int
8143
 
main ()
8144
 
{
8145
 
/* FIXME: Include the comments suggested by Paul. */
8146
 
#ifndef __cplusplus
8147
 
  /* Ultrix mips cc rejects this.  */
8148
 
  typedef int charset[2];
8149
 
  const charset x;
8150
 
  /* SunOS 4.1.1 cc rejects this.  */
8151
 
  char const *const *ccp;
8152
 
  char **p;
8153
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
8154
 
  struct point {int x, y;};
8155
 
  static struct point const zero = {0,0};
8156
 
  /* AIX XL C 1.02.0.0 rejects this.
8157
 
     It does not let you subtract one const X* pointer from another in
8158
 
     an arm of an if-expression whose if-part is not a constant
8159
 
     expression */
8160
 
  const char *g = "string";
8161
 
  ccp = &g + (g ? g-g : 0);
8162
 
  /* HPUX 7.0 cc rejects these. */
8163
 
  ++ccp;
8164
 
  p = (char**) ccp;
8165
 
  ccp = (char const *const *) p;
8166
 
  { /* SCO 3.2v4 cc rejects this.  */
8167
 
    char *t;
8168
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
8169
 
 
8170
 
    *t++ = 0;
8171
 
  }
8172
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8173
 
    int x[] = {25, 17};
8174
 
    const int *foo = &x[0];
8175
 
    ++foo;
8176
 
  }
8177
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8178
 
    typedef const int *iptr;
8179
 
    iptr p = 0;
8180
 
    ++p;
8181
 
  }
8182
 
  { /* AIX XL C 1.02.0.0 rejects this saying
8183
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8184
 
    struct s { int j; const int *ap[3]; };
8185
 
    struct s *b; b->j = 5;
8186
 
  }
8187
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8188
 
    const int foo = 10;
8189
 
  }
8190
 
#endif
8191
 
 
8192
 
  ;
8193
 
  return 0;
8194
 
}
8195
 
_ACEOF
8196
 
rm -f conftest.$ac_objext
8197
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8198
 
  (eval $ac_compile) 2>conftest.er1
8199
 
  ac_status=$?
8200
 
  grep -v '^ *+' conftest.er1 >conftest.err
8201
 
  rm -f conftest.er1
8202
 
  cat conftest.err >&5
8203
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204
 
  (exit $ac_status); } &&
8205
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8206
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207
 
  (eval $ac_try) 2>&5
8208
 
  ac_status=$?
8209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210
 
  (exit $ac_status); }; } &&
8211
 
         { ac_try='test -s conftest.$ac_objext'
8212
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213
 
  (eval $ac_try) 2>&5
8214
 
  ac_status=$?
8215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216
 
  (exit $ac_status); }; }; then
8217
 
  ac_cv_c_const=yes
8218
 
else
8219
 
  echo "$as_me: failed program was:" >&5
8220
 
sed 's/^/| /' conftest.$ac_ext >&5
8221
 
 
8222
 
ac_cv_c_const=no
8223
 
fi
8224
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8225
 
fi
8226
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8227
 
echo "${ECHO_T}$ac_cv_c_const" >&6
8228
 
if test $ac_cv_c_const = no; then
8229
 
 
8230
 
cat >>confdefs.h <<\_ACEOF
8231
 
#define const
8232
 
_ACEOF
8233
 
 
8234
 
fi
8235
 
 
8236
 
 
8237
 
  echo "$as_me:$LINENO: checking for signed" >&5
8238
 
echo $ECHO_N "checking for signed... $ECHO_C" >&6
8239
 
if test "${bh_cv_c_signed+set}" = set; then
8240
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8241
 
else
8242
 
  cat >conftest.$ac_ext <<_ACEOF
8243
 
/* confdefs.h.  */
8244
 
_ACEOF
8245
 
cat confdefs.h >>conftest.$ac_ext
8246
 
cat >>conftest.$ac_ext <<_ACEOF
8247
 
/* end confdefs.h.  */
8248
 
 
8249
 
int
8250
 
main ()
8251
 
{
8252
 
signed char x;
8253
 
  ;
8254
 
  return 0;
8255
 
}
8256
 
_ACEOF
8257
 
rm -f conftest.$ac_objext
8258
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259
 
  (eval $ac_compile) 2>conftest.er1
8260
 
  ac_status=$?
8261
 
  grep -v '^ *+' conftest.er1 >conftest.err
8262
 
  rm -f conftest.er1
8263
 
  cat conftest.err >&5
8264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265
 
  (exit $ac_status); } &&
8266
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8267
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268
 
  (eval $ac_try) 2>&5
8269
 
  ac_status=$?
8270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271
 
  (exit $ac_status); }; } &&
8272
 
         { ac_try='test -s conftest.$ac_objext'
8273
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274
 
  (eval $ac_try) 2>&5
8275
 
  ac_status=$?
8276
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277
 
  (exit $ac_status); }; }; then
8278
 
  bh_cv_c_signed=yes
8279
 
else
8280
 
  echo "$as_me: failed program was:" >&5
8281
 
sed 's/^/| /' conftest.$ac_ext >&5
8282
 
 
8283
 
bh_cv_c_signed=no
8284
 
fi
8285
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286
 
fi
8287
 
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8288
 
echo "${ECHO_T}$bh_cv_c_signed" >&6
8289
 
  if test $bh_cv_c_signed = no; then
8290
 
 
8291
 
cat >>confdefs.h <<\_ACEOF
8292
 
#define signed
8293
 
_ACEOF
8294
 
 
8295
 
  fi
8296
 
 
8297
 
echo "$as_me:$LINENO: checking for inline" >&5
8298
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
8299
 
if test "${ac_cv_c_inline+set}" = set; then
8300
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8301
 
else
8302
 
  ac_cv_c_inline=no
8303
 
for ac_kw in inline __inline__ __inline; do
8304
 
  cat >conftest.$ac_ext <<_ACEOF
8305
 
/* confdefs.h.  */
8306
 
_ACEOF
8307
 
cat confdefs.h >>conftest.$ac_ext
8308
 
cat >>conftest.$ac_ext <<_ACEOF
8309
 
/* end confdefs.h.  */
8310
 
#ifndef __cplusplus
8311
 
typedef int foo_t;
8312
 
static $ac_kw foo_t static_foo () {return 0; }
8313
 
$ac_kw foo_t foo () {return 0; }
8314
 
#endif
8315
 
 
8316
 
_ACEOF
8317
 
rm -f conftest.$ac_objext
8318
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319
 
  (eval $ac_compile) 2>conftest.er1
8320
 
  ac_status=$?
8321
 
  grep -v '^ *+' conftest.er1 >conftest.err
8322
 
  rm -f conftest.er1
8323
 
  cat conftest.err >&5
8324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325
 
  (exit $ac_status); } &&
8326
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8327
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328
 
  (eval $ac_try) 2>&5
8329
 
  ac_status=$?
8330
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331
 
  (exit $ac_status); }; } &&
8332
 
         { ac_try='test -s conftest.$ac_objext'
8333
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334
 
  (eval $ac_try) 2>&5
8335
 
  ac_status=$?
8336
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337
 
  (exit $ac_status); }; }; then
8338
 
  ac_cv_c_inline=$ac_kw; break
8339
 
else
8340
 
  echo "$as_me: failed program was:" >&5
8341
 
sed 's/^/| /' conftest.$ac_ext >&5
8342
 
 
8343
 
fi
8344
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345
 
done
8346
 
 
8347
 
fi
8348
 
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8349
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
8350
 
 
8351
 
 
8352
 
case $ac_cv_c_inline in
8353
 
  inline | yes) ;;
8354
 
  *)
8355
 
    case $ac_cv_c_inline in
8356
 
      no) ac_val=;;
8357
 
      *) ac_val=$ac_cv_c_inline;;
8358
 
    esac
8359
 
    cat >>confdefs.h <<_ACEOF
8360
 
#ifndef __cplusplus
8361
 
#define inline $ac_val
8362
 
#endif
8363
 
_ACEOF
8364
 
    ;;
8365
 
esac
8366
 
 
8367
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8368
 
 
8369
 
 
8370
 
 
8371
 
 
8372
 
 
8373
 
 
8374
 
 
8375
 
 
8376
 
 
8377
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8378
 
                  inttypes.h stdint.h unistd.h
8379
 
do
8380
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8381
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
8382
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8383
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8384
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8385
 
else
8386
 
  cat >conftest.$ac_ext <<_ACEOF
8387
 
/* confdefs.h.  */
8388
 
_ACEOF
8389
 
cat confdefs.h >>conftest.$ac_ext
8390
 
cat >>conftest.$ac_ext <<_ACEOF
8391
 
/* end confdefs.h.  */
8392
 
$ac_includes_default
8393
 
 
8394
 
#include <$ac_header>
8395
 
_ACEOF
8396
 
rm -f conftest.$ac_objext
8397
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398
 
  (eval $ac_compile) 2>conftest.er1
8399
 
  ac_status=$?
8400
 
  grep -v '^ *+' conftest.er1 >conftest.err
8401
 
  rm -f conftest.er1
8402
 
  cat conftest.err >&5
8403
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404
 
  (exit $ac_status); } &&
8405
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8406
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407
 
  (eval $ac_try) 2>&5
8408
 
  ac_status=$?
8409
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410
 
  (exit $ac_status); }; } &&
8411
 
         { ac_try='test -s conftest.$ac_objext'
8412
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413
 
  (eval $ac_try) 2>&5
8414
 
  ac_status=$?
8415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416
 
  (exit $ac_status); }; }; then
8417
 
  eval "$as_ac_Header=yes"
8418
 
else
8419
 
  echo "$as_me: failed program was:" >&5
8420
 
sed 's/^/| /' conftest.$ac_ext >&5
8421
 
 
8422
 
eval "$as_ac_Header=no"
8423
 
fi
8424
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8425
 
fi
8426
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8427
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8428
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8429
 
  cat >>confdefs.h <<_ACEOF
8430
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8431
 
_ACEOF
8432
 
 
8433
 
fi
8434
 
 
8435
 
done
8436
 
 
8437
 
 
8438
 
echo "$as_me:$LINENO: checking for off_t" >&5
8439
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8440
 
if test "${ac_cv_type_off_t+set}" = set; then
8441
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8442
 
else
8443
 
  cat >conftest.$ac_ext <<_ACEOF
8444
 
/* confdefs.h.  */
8445
 
_ACEOF
8446
 
cat confdefs.h >>conftest.$ac_ext
8447
 
cat >>conftest.$ac_ext <<_ACEOF
8448
 
/* end confdefs.h.  */
8449
 
$ac_includes_default
8450
 
int
8451
 
main ()
8452
 
{
8453
 
if ((off_t *) 0)
8454
 
  return 0;
8455
 
if (sizeof (off_t))
8456
 
  return 0;
8457
 
  ;
8458
 
  return 0;
8459
 
}
8460
 
_ACEOF
8461
 
rm -f conftest.$ac_objext
8462
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8463
 
  (eval $ac_compile) 2>conftest.er1
8464
 
  ac_status=$?
8465
 
  grep -v '^ *+' conftest.er1 >conftest.err
8466
 
  rm -f conftest.er1
8467
 
  cat conftest.err >&5
8468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469
 
  (exit $ac_status); } &&
8470
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472
 
  (eval $ac_try) 2>&5
8473
 
  ac_status=$?
8474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475
 
  (exit $ac_status); }; } &&
8476
 
         { ac_try='test -s conftest.$ac_objext'
8477
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478
 
  (eval $ac_try) 2>&5
8479
 
  ac_status=$?
8480
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481
 
  (exit $ac_status); }; }; then
8482
 
  ac_cv_type_off_t=yes
8483
 
else
8484
 
  echo "$as_me: failed program was:" >&5
8485
 
sed 's/^/| /' conftest.$ac_ext >&5
8486
 
 
8487
 
ac_cv_type_off_t=no
8488
 
fi
8489
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8490
 
fi
8491
 
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8492
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6
8493
 
if test $ac_cv_type_off_t = yes; then
8494
 
  :
8495
 
else
8496
 
 
8497
 
cat >>confdefs.h <<_ACEOF
8498
 
#define off_t long
8499
 
_ACEOF
8500
 
 
8501
 
fi
8502
 
 
8503
 
echo "$as_me:$LINENO: checking for size_t" >&5
8504
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8505
 
if test "${ac_cv_type_size_t+set}" = set; then
8506
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8507
 
else
8508
 
  cat >conftest.$ac_ext <<_ACEOF
8509
 
/* confdefs.h.  */
8510
 
_ACEOF
8511
 
cat confdefs.h >>conftest.$ac_ext
8512
 
cat >>conftest.$ac_ext <<_ACEOF
8513
 
/* end confdefs.h.  */
8514
 
$ac_includes_default
8515
 
int
8516
 
main ()
8517
 
{
8518
 
if ((size_t *) 0)
8519
 
  return 0;
8520
 
if (sizeof (size_t))
8521
 
  return 0;
8522
 
  ;
8523
 
  return 0;
8524
 
}
8525
 
_ACEOF
8526
 
rm -f conftest.$ac_objext
8527
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528
 
  (eval $ac_compile) 2>conftest.er1
8529
 
  ac_status=$?
8530
 
  grep -v '^ *+' conftest.er1 >conftest.err
8531
 
  rm -f conftest.er1
8532
 
  cat conftest.err >&5
8533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534
 
  (exit $ac_status); } &&
8535
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8536
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537
 
  (eval $ac_try) 2>&5
8538
 
  ac_status=$?
8539
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540
 
  (exit $ac_status); }; } &&
8541
 
         { ac_try='test -s conftest.$ac_objext'
8542
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543
 
  (eval $ac_try) 2>&5
8544
 
  ac_status=$?
8545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546
 
  (exit $ac_status); }; }; then
8547
 
  ac_cv_type_size_t=yes
8548
 
else
8549
 
  echo "$as_me: failed program was:" >&5
8550
 
sed 's/^/| /' conftest.$ac_ext >&5
8551
 
 
8552
 
ac_cv_type_size_t=no
8553
 
fi
8554
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8555
 
fi
8556
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8557
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
8558
 
if test $ac_cv_type_size_t = yes; then
8559
 
  :
8560
 
else
8561
 
 
8562
 
cat >>confdefs.h <<_ACEOF
8563
 
#define size_t unsigned
8564
 
_ACEOF
8565
 
 
8566
 
fi
8567
 
 
8568
 
 
8569
 
  echo "$as_me:$LINENO: checking for long long" >&5
8570
 
echo $ECHO_N "checking for long long... $ECHO_C" >&6
8571
 
if test "${ac_cv_type_long_long+set}" = set; then
8572
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8573
 
else
8574
 
  cat >conftest.$ac_ext <<_ACEOF
8575
 
/* confdefs.h.  */
8576
 
_ACEOF
8577
 
cat confdefs.h >>conftest.$ac_ext
8578
 
cat >>conftest.$ac_ext <<_ACEOF
8579
 
/* end confdefs.h.  */
8580
 
long long ll = 1LL; int i = 63;
8581
 
int
8582
 
main ()
8583
 
{
8584
 
long long llmax = (long long) -1;
8585
 
     return ll << i | ll >> i | llmax / ll | llmax % ll;
8586
 
  ;
8587
 
  return 0;
8588
 
}
8589
 
_ACEOF
8590
 
rm -f conftest.$ac_objext conftest$ac_exeext
8591
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592
 
  (eval $ac_link) 2>conftest.er1
8593
 
  ac_status=$?
8594
 
  grep -v '^ *+' conftest.er1 >conftest.err
8595
 
  rm -f conftest.er1
8596
 
  cat conftest.err >&5
8597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598
 
  (exit $ac_status); } &&
8599
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8600
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601
 
  (eval $ac_try) 2>&5
8602
 
  ac_status=$?
8603
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604
 
  (exit $ac_status); }; } &&
8605
 
         { ac_try='test -s conftest$ac_exeext'
8606
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607
 
  (eval $ac_try) 2>&5
8608
 
  ac_status=$?
8609
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610
 
  (exit $ac_status); }; }; then
8611
 
  ac_cv_type_long_long=yes
8612
 
else
8613
 
  echo "$as_me: failed program was:" >&5
8614
 
sed 's/^/| /' conftest.$ac_ext >&5
8615
 
 
8616
 
ac_cv_type_long_long=no
8617
 
fi
8618
 
rm -f conftest.err conftest.$ac_objext \
8619
 
      conftest$ac_exeext conftest.$ac_ext
8620
 
fi
8621
 
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8622
 
echo "${ECHO_T}$ac_cv_type_long_long" >&6
8623
 
  if test $ac_cv_type_long_long = yes; then
8624
 
 
8625
 
cat >>confdefs.h <<\_ACEOF
8626
 
#define HAVE_LONG_LONG 1
8627
 
_ACEOF
8628
 
 
8629
 
  fi
8630
 
 
8631
 
 
8632
 
  echo "$as_me:$LINENO: checking for long double" >&5
8633
 
echo $ECHO_N "checking for long double... $ECHO_C" >&6
8634
 
if test "${gt_cv_c_long_double+set}" = set; then
8635
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8636
 
else
8637
 
  if test "$GCC" = yes; then
8638
 
       gt_cv_c_long_double=yes
8639
 
     else
8640
 
       cat >conftest.$ac_ext <<_ACEOF
8641
 
/* confdefs.h.  */
8642
 
_ACEOF
8643
 
cat confdefs.h >>conftest.$ac_ext
8644
 
cat >>conftest.$ac_ext <<_ACEOF
8645
 
/* end confdefs.h.  */
8646
 
 
8647
 
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8648
 
         long double foo = 0.0;
8649
 
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8650
 
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8651
 
 
8652
 
int
8653
 
main ()
8654
 
{
8655
 
 
8656
 
  ;
8657
 
  return 0;
8658
 
}
8659
 
_ACEOF
8660
 
rm -f conftest.$ac_objext
8661
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662
 
  (eval $ac_compile) 2>conftest.er1
8663
 
  ac_status=$?
8664
 
  grep -v '^ *+' conftest.er1 >conftest.err
8665
 
  rm -f conftest.er1
8666
 
  cat conftest.err >&5
8667
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668
 
  (exit $ac_status); } &&
8669
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8670
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671
 
  (eval $ac_try) 2>&5
8672
 
  ac_status=$?
8673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674
 
  (exit $ac_status); }; } &&
8675
 
         { ac_try='test -s conftest.$ac_objext'
8676
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677
 
  (eval $ac_try) 2>&5
8678
 
  ac_status=$?
8679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680
 
  (exit $ac_status); }; }; then
8681
 
  gt_cv_c_long_double=yes
8682
 
else
8683
 
  echo "$as_me: failed program was:" >&5
8684
 
sed 's/^/| /' conftest.$ac_ext >&5
8685
 
 
8686
 
gt_cv_c_long_double=no
8687
 
fi
8688
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8689
 
     fi
8690
 
fi
8691
 
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8692
 
echo "${ECHO_T}$gt_cv_c_long_double" >&6
8693
 
  if test $gt_cv_c_long_double = yes; then
8694
 
 
8695
 
cat >>confdefs.h <<\_ACEOF
8696
 
#define HAVE_LONG_DOUBLE 1
8697
 
_ACEOF
8698
 
 
8699
 
  fi
8700
 
 
8701
 
 
8702
 
  echo "$as_me:$LINENO: checking for wchar_t" >&5
8703
 
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8704
 
if test "${gt_cv_c_wchar_t+set}" = set; then
8705
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8706
 
else
8707
 
  cat >conftest.$ac_ext <<_ACEOF
8708
 
/* confdefs.h.  */
8709
 
_ACEOF
8710
 
cat confdefs.h >>conftest.$ac_ext
8711
 
cat >>conftest.$ac_ext <<_ACEOF
8712
 
/* end confdefs.h.  */
8713
 
#include <stddef.h>
8714
 
       wchar_t foo = (wchar_t)'\0';
8715
 
int
8716
 
main ()
8717
 
{
8718
 
 
8719
 
  ;
8720
 
  return 0;
8721
 
}
8722
 
_ACEOF
8723
 
rm -f conftest.$ac_objext
8724
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725
 
  (eval $ac_compile) 2>conftest.er1
8726
 
  ac_status=$?
8727
 
  grep -v '^ *+' conftest.er1 >conftest.err
8728
 
  rm -f conftest.er1
8729
 
  cat conftest.err >&5
8730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731
 
  (exit $ac_status); } &&
8732
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8733
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734
 
  (eval $ac_try) 2>&5
8735
 
  ac_status=$?
8736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737
 
  (exit $ac_status); }; } &&
8738
 
         { ac_try='test -s conftest.$ac_objext'
8739
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740
 
  (eval $ac_try) 2>&5
8741
 
  ac_status=$?
8742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743
 
  (exit $ac_status); }; }; then
8744
 
  gt_cv_c_wchar_t=yes
8745
 
else
8746
 
  echo "$as_me: failed program was:" >&5
8747
 
sed 's/^/| /' conftest.$ac_ext >&5
8748
 
 
8749
 
gt_cv_c_wchar_t=no
8750
 
fi
8751
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8752
 
fi
8753
 
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8754
 
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
8755
 
  if test $gt_cv_c_wchar_t = yes; then
8756
 
 
8757
 
cat >>confdefs.h <<\_ACEOF
8758
 
#define HAVE_WCHAR_T 1
8759
 
_ACEOF
8760
 
 
8761
 
  fi
8762
 
 
8763
 
 
8764
 
  echo "$as_me:$LINENO: checking for wint_t" >&5
8765
 
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
8766
 
if test "${gt_cv_c_wint_t+set}" = set; then
8767
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8768
 
else
8769
 
  cat >conftest.$ac_ext <<_ACEOF
8770
 
/* confdefs.h.  */
8771
 
_ACEOF
8772
 
cat confdefs.h >>conftest.$ac_ext
8773
 
cat >>conftest.$ac_ext <<_ACEOF
8774
 
/* end confdefs.h.  */
8775
 
#include <wchar.h>
8776
 
       wint_t foo = (wchar_t)'\0';
8777
 
int
8778
 
main ()
8779
 
{
8780
 
 
8781
 
  ;
8782
 
  return 0;
8783
 
}
8784
 
_ACEOF
8785
 
rm -f conftest.$ac_objext
8786
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787
 
  (eval $ac_compile) 2>conftest.er1
8788
 
  ac_status=$?
8789
 
  grep -v '^ *+' conftest.er1 >conftest.err
8790
 
  rm -f conftest.er1
8791
 
  cat conftest.err >&5
8792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793
 
  (exit $ac_status); } &&
8794
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8795
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796
 
  (eval $ac_try) 2>&5
8797
 
  ac_status=$?
8798
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799
 
  (exit $ac_status); }; } &&
8800
 
         { ac_try='test -s conftest.$ac_objext'
8801
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802
 
  (eval $ac_try) 2>&5
8803
 
  ac_status=$?
8804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805
 
  (exit $ac_status); }; }; then
8806
 
  gt_cv_c_wint_t=yes
8807
 
else
8808
 
  echo "$as_me: failed program was:" >&5
8809
 
sed 's/^/| /' conftest.$ac_ext >&5
8810
 
 
8811
 
gt_cv_c_wint_t=no
8812
 
fi
8813
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8814
 
fi
8815
 
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8816
 
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
8817
 
  if test $gt_cv_c_wint_t = yes; then
8818
 
 
8819
 
cat >>confdefs.h <<\_ACEOF
8820
 
#define HAVE_WINT_T 1
8821
 
_ACEOF
8822
 
 
8823
 
  fi
8824
 
 
8825
 
 
8826
 
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
8827
 
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8828
 
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8829
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8830
 
else
8831
 
  cat >conftest.$ac_ext <<_ACEOF
8832
 
/* confdefs.h.  */
8833
 
_ACEOF
8834
 
cat confdefs.h >>conftest.$ac_ext
8835
 
cat >>conftest.$ac_ext <<_ACEOF
8836
 
/* end confdefs.h.  */
8837
 
#include <sys/types.h>
8838
 
#include <inttypes.h>
8839
 
int
8840
 
main ()
8841
 
{
8842
 
uintmax_t i = (uintmax_t) -1;
8843
 
  ;
8844
 
  return 0;
8845
 
}
8846
 
_ACEOF
8847
 
rm -f conftest.$ac_objext
8848
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849
 
  (eval $ac_compile) 2>conftest.er1
8850
 
  ac_status=$?
8851
 
  grep -v '^ *+' conftest.er1 >conftest.err
8852
 
  rm -f conftest.er1
8853
 
  cat conftest.err >&5
8854
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855
 
  (exit $ac_status); } &&
8856
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8857
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858
 
  (eval $ac_try) 2>&5
8859
 
  ac_status=$?
8860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861
 
  (exit $ac_status); }; } &&
8862
 
         { ac_try='test -s conftest.$ac_objext'
8863
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864
 
  (eval $ac_try) 2>&5
8865
 
  ac_status=$?
8866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867
 
  (exit $ac_status); }; }; then
8868
 
  jm_ac_cv_header_inttypes_h=yes
8869
 
else
8870
 
  echo "$as_me: failed program was:" >&5
8871
 
sed 's/^/| /' conftest.$ac_ext >&5
8872
 
 
8873
 
jm_ac_cv_header_inttypes_h=no
8874
 
fi
8875
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8876
 
fi
8877
 
echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8878
 
echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
8879
 
  if test $jm_ac_cv_header_inttypes_h = yes; then
8880
 
 
8881
 
cat >>confdefs.h <<_ACEOF
8882
 
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
8883
 
_ACEOF
8884
 
 
8885
 
  fi
8886
 
 
8887
 
 
8888
 
  echo "$as_me:$LINENO: checking for stdint.h" >&5
8889
 
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
8890
 
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8891
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8892
 
else
8893
 
  cat >conftest.$ac_ext <<_ACEOF
8894
 
/* confdefs.h.  */
8895
 
_ACEOF
8896
 
cat confdefs.h >>conftest.$ac_ext
8897
 
cat >>conftest.$ac_ext <<_ACEOF
8898
 
/* end confdefs.h.  */
8899
 
#include <sys/types.h>
8900
 
#include <stdint.h>
8901
 
int
8902
 
main ()
8903
 
{
8904
 
uintmax_t i = (uintmax_t) -1;
8905
 
  ;
8906
 
  return 0;
8907
 
}
8908
 
_ACEOF
8909
 
rm -f conftest.$ac_objext
8910
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911
 
  (eval $ac_compile) 2>conftest.er1
8912
 
  ac_status=$?
8913
 
  grep -v '^ *+' conftest.er1 >conftest.err
8914
 
  rm -f conftest.er1
8915
 
  cat conftest.err >&5
8916
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917
 
  (exit $ac_status); } &&
8918
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8919
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920
 
  (eval $ac_try) 2>&5
8921
 
  ac_status=$?
8922
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923
 
  (exit $ac_status); }; } &&
8924
 
         { ac_try='test -s conftest.$ac_objext'
8925
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926
 
  (eval $ac_try) 2>&5
8927
 
  ac_status=$?
8928
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929
 
  (exit $ac_status); }; }; then
8930
 
  jm_ac_cv_header_stdint_h=yes
8931
 
else
8932
 
  echo "$as_me: failed program was:" >&5
8933
 
sed 's/^/| /' conftest.$ac_ext >&5
8934
 
 
8935
 
jm_ac_cv_header_stdint_h=no
8936
 
fi
8937
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8938
 
fi
8939
 
echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8940
 
echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
8941
 
  if test $jm_ac_cv_header_stdint_h = yes; then
8942
 
 
8943
 
cat >>confdefs.h <<_ACEOF
8944
 
#define HAVE_STDINT_H_WITH_UINTMAX 1
8945
 
_ACEOF
8946
 
 
8947
 
  fi
8948
 
 
8949
 
 
8950
 
 
8951
 
 
8952
 
  echo "$as_me:$LINENO: checking for intmax_t" >&5
8953
 
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8954
 
if test "${gt_cv_c_intmax_t+set}" = set; then
8955
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8956
 
else
8957
 
  cat >conftest.$ac_ext <<_ACEOF
8958
 
/* confdefs.h.  */
8959
 
_ACEOF
8960
 
cat confdefs.h >>conftest.$ac_ext
8961
 
cat >>conftest.$ac_ext <<_ACEOF
8962
 
/* end confdefs.h.  */
8963
 
 
8964
 
#include <stddef.h>
8965
 
#include <stdlib.h>
8966
 
#if HAVE_STDINT_H_WITH_UINTMAX
8967
 
#include <stdint.h>
8968
 
#endif
8969
 
#if HAVE_INTTYPES_H_WITH_UINTMAX
8970
 
#include <inttypes.h>
8971
 
#endif
8972
 
 
8973
 
int
8974
 
main ()
8975
 
{
8976
 
intmax_t x = -1;
8977
 
  ;
8978
 
  return 0;
8979
 
}
8980
 
_ACEOF
8981
 
rm -f conftest.$ac_objext
8982
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8983
 
  (eval $ac_compile) 2>conftest.er1
8984
 
  ac_status=$?
8985
 
  grep -v '^ *+' conftest.er1 >conftest.err
8986
 
  rm -f conftest.er1
8987
 
  cat conftest.err >&5
8988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989
 
  (exit $ac_status); } &&
8990
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992
 
  (eval $ac_try) 2>&5
8993
 
  ac_status=$?
8994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995
 
  (exit $ac_status); }; } &&
8996
 
         { ac_try='test -s conftest.$ac_objext'
8997
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998
 
  (eval $ac_try) 2>&5
8999
 
  ac_status=$?
9000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001
 
  (exit $ac_status); }; }; then
9002
 
  gt_cv_c_intmax_t=yes
9003
 
else
9004
 
  echo "$as_me: failed program was:" >&5
9005
 
sed 's/^/| /' conftest.$ac_ext >&5
9006
 
 
9007
 
gt_cv_c_intmax_t=no
9008
 
fi
9009
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9010
 
fi
9011
 
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9012
 
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
9013
 
  if test $gt_cv_c_intmax_t = yes; then
9014
 
 
9015
 
cat >>confdefs.h <<\_ACEOF
9016
 
#define HAVE_INTMAX_T 1
9017
 
_ACEOF
9018
 
 
9019
 
  fi
9020
 
 
9021
 
 
9022
 
 
9023
 
  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9024
 
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
9025
 
if test "${gt_cv_func_printf_posix+set}" = set; then
9026
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9027
 
else
9028
 
 
9029
 
      if test "$cross_compiling" = yes; then
9030
 
 
9031
 
        cat >conftest.$ac_ext <<_ACEOF
9032
 
/* confdefs.h.  */
9033
 
_ACEOF
9034
 
cat confdefs.h >>conftest.$ac_ext
9035
 
cat >>conftest.$ac_ext <<_ACEOF
9036
 
/* end confdefs.h.  */
9037
 
 
9038
 
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9039
 
  notposix
9040
 
#endif
9041
 
 
9042
 
_ACEOF
9043
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9044
 
  $EGREP "notposix" >/dev/null 2>&1; then
9045
 
  gt_cv_func_printf_posix="guessing no"
9046
 
else
9047
 
  gt_cv_func_printf_posix="guessing yes"
9048
 
fi
9049
 
rm -f conftest*
9050
 
 
9051
 
 
9052
 
else
9053
 
  cat >conftest.$ac_ext <<_ACEOF
9054
 
/* confdefs.h.  */
9055
 
_ACEOF
9056
 
cat confdefs.h >>conftest.$ac_ext
9057
 
cat >>conftest.$ac_ext <<_ACEOF
9058
 
/* end confdefs.h.  */
9059
 
 
9060
 
#include <stdio.h>
9061
 
#include <string.h>
9062
 
/* The string "%2$d %1$d", with dollar characters protected from the shell's
9063
 
   dollar expansion (possibly an autoconf bug).  */
9064
 
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9065
 
static char buf[100];
9066
 
int main ()
9067
 
{
9068
 
  sprintf (buf, format, 33, 55);
9069
 
  return (strcmp (buf, "55 33") != 0);
9070
 
}
9071
 
_ACEOF
9072
 
rm -f conftest$ac_exeext
9073
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074
 
  (eval $ac_link) 2>&5
9075
 
  ac_status=$?
9076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079
 
  (eval $ac_try) 2>&5
9080
 
  ac_status=$?
9081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082
 
  (exit $ac_status); }; }; then
9083
 
  gt_cv_func_printf_posix=yes
9084
 
else
9085
 
  echo "$as_me: program exited with status $ac_status" >&5
9086
 
echo "$as_me: failed program was:" >&5
9087
 
sed 's/^/| /' conftest.$ac_ext >&5
9088
 
 
9089
 
( exit $ac_status )
9090
 
gt_cv_func_printf_posix=no
9091
 
fi
9092
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9093
 
fi
9094
 
 
9095
 
fi
9096
 
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9097
 
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
9098
 
  case $gt_cv_func_printf_posix in
9099
 
    *yes)
9100
 
 
9101
 
cat >>confdefs.h <<\_ACEOF
9102
 
#define HAVE_POSIX_PRINTF 1
9103
 
_ACEOF
9104
 
 
9105
 
      ;;
9106
 
  esac
9107
 
 
9108
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9109
 
# for constant arguments.  Useless!
9110
 
echo "$as_me:$LINENO: checking for working alloca.h" >&5
9111
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9112
 
if test "${ac_cv_working_alloca_h+set}" = set; then
9113
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9114
 
else
9115
 
  cat >conftest.$ac_ext <<_ACEOF
9116
 
/* confdefs.h.  */
9117
 
_ACEOF
9118
 
cat confdefs.h >>conftest.$ac_ext
9119
 
cat >>conftest.$ac_ext <<_ACEOF
9120
 
/* end confdefs.h.  */
9121
 
#include <alloca.h>
9122
 
int
9123
 
main ()
9124
 
{
9125
 
char *p = (char *) alloca (2 * sizeof (int));
9126
 
  ;
9127
 
  return 0;
9128
 
}
9129
 
_ACEOF
9130
 
rm -f conftest.$ac_objext conftest$ac_exeext
9131
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132
 
  (eval $ac_link) 2>conftest.er1
9133
 
  ac_status=$?
9134
 
  grep -v '^ *+' conftest.er1 >conftest.err
9135
 
  rm -f conftest.er1
9136
 
  cat conftest.err >&5
9137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138
 
  (exit $ac_status); } &&
9139
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9140
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141
 
  (eval $ac_try) 2>&5
9142
 
  ac_status=$?
9143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144
 
  (exit $ac_status); }; } &&
9145
 
         { ac_try='test -s conftest$ac_exeext'
9146
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147
 
  (eval $ac_try) 2>&5
9148
 
  ac_status=$?
9149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150
 
  (exit $ac_status); }; }; then
9151
 
  ac_cv_working_alloca_h=yes
9152
 
else
9153
 
  echo "$as_me: failed program was:" >&5
9154
 
sed 's/^/| /' conftest.$ac_ext >&5
9155
 
 
9156
 
ac_cv_working_alloca_h=no
9157
 
fi
9158
 
rm -f conftest.err conftest.$ac_objext \
9159
 
      conftest$ac_exeext conftest.$ac_ext
9160
 
fi
9161
 
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9162
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9163
 
if test $ac_cv_working_alloca_h = yes; then
9164
 
 
9165
 
cat >>confdefs.h <<\_ACEOF
9166
 
#define HAVE_ALLOCA_H 1
9167
 
_ACEOF
9168
 
 
9169
 
fi
9170
 
 
9171
 
echo "$as_me:$LINENO: checking for alloca" >&5
9172
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9173
 
if test "${ac_cv_func_alloca_works+set}" = set; then
9174
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9175
 
else
9176
 
  cat >conftest.$ac_ext <<_ACEOF
9177
 
/* confdefs.h.  */
9178
 
_ACEOF
9179
 
cat confdefs.h >>conftest.$ac_ext
9180
 
cat >>conftest.$ac_ext <<_ACEOF
9181
 
/* end confdefs.h.  */
9182
 
#ifdef __GNUC__
9183
 
# define alloca __builtin_alloca
9184
 
#else
9185
 
# ifdef _MSC_VER
9186
 
#  include <malloc.h>
9187
 
#  define alloca _alloca
9188
 
# else
9189
 
#  if HAVE_ALLOCA_H
9190
 
#   include <alloca.h>
9191
 
#  else
9192
 
#   ifdef _AIX
9193
 
 #pragma alloca
9194
 
#   else
9195
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
9196
 
char *alloca ();
9197
 
#    endif
9198
 
#   endif
9199
 
#  endif
9200
 
# endif
9201
 
#endif
9202
 
 
9203
 
int
9204
 
main ()
9205
 
{
9206
 
char *p = (char *) alloca (1);
9207
 
  ;
9208
 
  return 0;
9209
 
}
9210
 
_ACEOF
9211
 
rm -f conftest.$ac_objext conftest$ac_exeext
9212
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213
 
  (eval $ac_link) 2>conftest.er1
9214
 
  ac_status=$?
9215
 
  grep -v '^ *+' conftest.er1 >conftest.err
9216
 
  rm -f conftest.er1
9217
 
  cat conftest.err >&5
9218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219
 
  (exit $ac_status); } &&
9220
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222
 
  (eval $ac_try) 2>&5
9223
 
  ac_status=$?
9224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225
 
  (exit $ac_status); }; } &&
9226
 
         { ac_try='test -s conftest$ac_exeext'
9227
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228
 
  (eval $ac_try) 2>&5
9229
 
  ac_status=$?
9230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231
 
  (exit $ac_status); }; }; then
9232
 
  ac_cv_func_alloca_works=yes
9233
 
else
9234
 
  echo "$as_me: failed program was:" >&5
9235
 
sed 's/^/| /' conftest.$ac_ext >&5
9236
 
 
9237
 
ac_cv_func_alloca_works=no
9238
 
fi
9239
 
rm -f conftest.err conftest.$ac_objext \
9240
 
      conftest$ac_exeext conftest.$ac_ext
9241
 
fi
9242
 
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9243
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9244
 
 
9245
 
if test $ac_cv_func_alloca_works = yes; then
9246
 
 
9247
 
cat >>confdefs.h <<\_ACEOF
9248
 
#define HAVE_ALLOCA 1
9249
 
_ACEOF
9250
 
 
9251
 
else
9252
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9253
 
# that cause trouble.  Some versions do not even contain alloca or
9254
 
# contain a buggy version.  If you still want to use their alloca,
9255
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
9256
 
 
9257
 
ALLOCA=alloca.$ac_objext
9258
 
 
9259
 
cat >>confdefs.h <<\_ACEOF
9260
 
#define C_ALLOCA 1
9261
 
_ACEOF
9262
 
 
9263
 
 
9264
 
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9265
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9266
 
if test "${ac_cv_os_cray+set}" = set; then
9267
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9268
 
else
9269
 
  cat >conftest.$ac_ext <<_ACEOF
9270
 
/* confdefs.h.  */
9271
 
_ACEOF
9272
 
cat confdefs.h >>conftest.$ac_ext
9273
 
cat >>conftest.$ac_ext <<_ACEOF
9274
 
/* end confdefs.h.  */
9275
 
#if defined(CRAY) && ! defined(CRAY2)
9276
 
webecray
9277
 
#else
9278
 
wenotbecray
9279
 
#endif
9280
 
 
9281
 
_ACEOF
9282
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9283
 
  $EGREP "webecray" >/dev/null 2>&1; then
9284
 
  ac_cv_os_cray=yes
9285
 
else
9286
 
  ac_cv_os_cray=no
9287
 
fi
9288
 
rm -f conftest*
9289
 
 
9290
 
fi
9291
 
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9292
 
echo "${ECHO_T}$ac_cv_os_cray" >&6
9293
 
if test $ac_cv_os_cray = yes; then
9294
 
  for ac_func in _getb67 GETB67 getb67; do
9295
 
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9297
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9300
 
else
9301
 
  cat >conftest.$ac_ext <<_ACEOF
9302
 
/* confdefs.h.  */
9303
 
_ACEOF
9304
 
cat confdefs.h >>conftest.$ac_ext
9305
 
cat >>conftest.$ac_ext <<_ACEOF
9306
 
/* end confdefs.h.  */
9307
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9308
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9309
 
#define $ac_func innocuous_$ac_func
9310
 
 
9311
 
/* System header to define __stub macros and hopefully few prototypes,
9312
 
    which can conflict with char $ac_func (); below.
9313
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314
 
    <limits.h> exists even on freestanding compilers.  */
9315
 
 
9316
 
#ifdef __STDC__
9317
 
# include <limits.h>
9318
 
#else
9319
 
# include <assert.h>
9320
 
#endif
9321
 
 
9322
 
#undef $ac_func
9323
 
 
9324
 
/* Override any gcc2 internal prototype to avoid an error.  */
9325
 
#ifdef __cplusplus
9326
 
extern "C"
9327
 
{
9328
 
#endif
9329
 
/* We use char because int might match the return type of a gcc2
9330
 
   builtin and then its argument prototype would still apply.  */
9331
 
char $ac_func ();
9332
 
/* The GNU C library defines this for functions which it implements
9333
 
    to always fail with ENOSYS.  Some functions are actually named
9334
 
    something starting with __ and the normal name is an alias.  */
9335
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9336
 
choke me
9337
 
#else
9338
 
char (*f) () = $ac_func;
9339
 
#endif
9340
 
#ifdef __cplusplus
9341
 
}
9342
 
#endif
9343
 
 
9344
 
int
9345
 
main ()
9346
 
{
9347
 
return f != $ac_func;
9348
 
  ;
9349
 
  return 0;
9350
 
}
9351
 
_ACEOF
9352
 
rm -f conftest.$ac_objext conftest$ac_exeext
9353
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354
 
  (eval $ac_link) 2>conftest.er1
9355
 
  ac_status=$?
9356
 
  grep -v '^ *+' conftest.er1 >conftest.err
9357
 
  rm -f conftest.er1
9358
 
  cat conftest.err >&5
9359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360
 
  (exit $ac_status); } &&
9361
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9362
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363
 
  (eval $ac_try) 2>&5
9364
 
  ac_status=$?
9365
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366
 
  (exit $ac_status); }; } &&
9367
 
         { ac_try='test -s conftest$ac_exeext'
9368
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369
 
  (eval $ac_try) 2>&5
9370
 
  ac_status=$?
9371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372
 
  (exit $ac_status); }; }; then
9373
 
  eval "$as_ac_var=yes"
9374
 
else
9375
 
  echo "$as_me: failed program was:" >&5
9376
 
sed 's/^/| /' conftest.$ac_ext >&5
9377
 
 
9378
 
eval "$as_ac_var=no"
9379
 
fi
9380
 
rm -f conftest.err conftest.$ac_objext \
9381
 
      conftest$ac_exeext conftest.$ac_ext
9382
 
fi
9383
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9384
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9385
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9386
 
 
9387
 
cat >>confdefs.h <<_ACEOF
9388
 
#define CRAY_STACKSEG_END $ac_func
9389
 
_ACEOF
9390
 
 
9391
 
    break
9392
 
fi
9393
 
 
9394
 
  done
9395
 
fi
9396
 
 
9397
 
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9398
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9399
 
if test "${ac_cv_c_stack_direction+set}" = set; then
9400
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9401
 
else
9402
 
  if test "$cross_compiling" = yes; then
9403
 
  ac_cv_c_stack_direction=0
9404
 
else
9405
 
  cat >conftest.$ac_ext <<_ACEOF
9406
 
/* confdefs.h.  */
9407
 
_ACEOF
9408
 
cat confdefs.h >>conftest.$ac_ext
9409
 
cat >>conftest.$ac_ext <<_ACEOF
9410
 
/* end confdefs.h.  */
9411
 
int
9412
 
find_stack_direction ()
9413
 
{
9414
 
  static char *addr = 0;
9415
 
  auto char dummy;
9416
 
  if (addr == 0)
9417
 
    {
9418
 
      addr = &dummy;
9419
 
      return find_stack_direction ();
9420
 
    }
9421
 
  else
9422
 
    return (&dummy > addr) ? 1 : -1;
9423
 
}
9424
 
 
9425
 
int
9426
 
main ()
9427
 
{
9428
 
  exit (find_stack_direction () < 0);
9429
 
}
9430
 
_ACEOF
9431
 
rm -f conftest$ac_exeext
9432
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433
 
  (eval $ac_link) 2>&5
9434
 
  ac_status=$?
9435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9437
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438
 
  (eval $ac_try) 2>&5
9439
 
  ac_status=$?
9440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
 
  (exit $ac_status); }; }; then
9442
 
  ac_cv_c_stack_direction=1
9443
 
else
9444
 
  echo "$as_me: program exited with status $ac_status" >&5
9445
 
echo "$as_me: failed program was:" >&5
9446
 
sed 's/^/| /' conftest.$ac_ext >&5
9447
 
 
9448
 
( exit $ac_status )
9449
 
ac_cv_c_stack_direction=-1
9450
 
fi
9451
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9452
 
fi
9453
 
fi
9454
 
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9455
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9456
 
 
9457
 
cat >>confdefs.h <<_ACEOF
9458
 
#define STACK_DIRECTION $ac_cv_c_stack_direction
9459
 
_ACEOF
9460
 
 
9461
 
 
9462
 
fi
9463
 
 
9464
 
 
9465
 
 
9466
 
for ac_header in stdlib.h unistd.h
9467
 
do
9468
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9469
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9470
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9471
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9472
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9473
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9474
 
fi
9475
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9476
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9477
 
else
9478
 
  # Is the header compilable?
9479
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9480
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9481
 
cat >conftest.$ac_ext <<_ACEOF
9482
 
/* confdefs.h.  */
9483
 
_ACEOF
9484
 
cat confdefs.h >>conftest.$ac_ext
9485
 
cat >>conftest.$ac_ext <<_ACEOF
9486
 
/* end confdefs.h.  */
9487
 
$ac_includes_default
9488
 
#include <$ac_header>
9489
 
_ACEOF
9490
 
rm -f conftest.$ac_objext
9491
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492
 
  (eval $ac_compile) 2>conftest.er1
9493
 
  ac_status=$?
9494
 
  grep -v '^ *+' conftest.er1 >conftest.err
9495
 
  rm -f conftest.er1
9496
 
  cat conftest.err >&5
9497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498
 
  (exit $ac_status); } &&
9499
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9500
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501
 
  (eval $ac_try) 2>&5
9502
 
  ac_status=$?
9503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504
 
  (exit $ac_status); }; } &&
9505
 
         { ac_try='test -s conftest.$ac_objext'
9506
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507
 
  (eval $ac_try) 2>&5
9508
 
  ac_status=$?
9509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510
 
  (exit $ac_status); }; }; then
9511
 
  ac_header_compiler=yes
9512
 
else
9513
 
  echo "$as_me: failed program was:" >&5
9514
 
sed 's/^/| /' conftest.$ac_ext >&5
9515
 
 
9516
 
ac_header_compiler=no
9517
 
fi
9518
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9519
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9520
 
echo "${ECHO_T}$ac_header_compiler" >&6
9521
 
 
9522
 
# Is the header present?
9523
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9524
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9525
 
cat >conftest.$ac_ext <<_ACEOF
9526
 
/* confdefs.h.  */
9527
 
_ACEOF
9528
 
cat confdefs.h >>conftest.$ac_ext
9529
 
cat >>conftest.$ac_ext <<_ACEOF
9530
 
/* end confdefs.h.  */
9531
 
#include <$ac_header>
9532
 
_ACEOF
9533
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9534
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9535
 
  ac_status=$?
9536
 
  grep -v '^ *+' conftest.er1 >conftest.err
9537
 
  rm -f conftest.er1
9538
 
  cat conftest.err >&5
9539
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540
 
  (exit $ac_status); } >/dev/null; then
9541
 
  if test -s conftest.err; then
9542
 
    ac_cpp_err=$ac_c_preproc_warn_flag
9543
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9544
 
  else
9545
 
    ac_cpp_err=
9546
 
  fi
9547
 
else
9548
 
  ac_cpp_err=yes
9549
 
fi
9550
 
if test -z "$ac_cpp_err"; then
9551
 
  ac_header_preproc=yes
9552
 
else
9553
 
  echo "$as_me: failed program was:" >&5
9554
 
sed 's/^/| /' conftest.$ac_ext >&5
9555
 
 
9556
 
  ac_header_preproc=no
9557
 
fi
9558
 
rm -f conftest.err conftest.$ac_ext
9559
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9560
 
echo "${ECHO_T}$ac_header_preproc" >&6
9561
 
 
9562
 
# So?  What about this header?
9563
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9564
 
  yes:no: )
9565
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9566
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9567
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9568
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9569
 
    ac_header_preproc=yes
9570
 
    ;;
9571
 
  no:yes:* )
9572
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9573
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9574
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9575
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9576
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9577
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9578
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9579
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9580
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9581
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9582
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9583
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9584
 
    (
9585
 
      cat <<\_ASBOX
9586
 
## ------------------------------------ ##
9587
 
## Report this to gnupg-devel@gnupg.org ##
9588
 
## ------------------------------------ ##
9589
 
_ASBOX
9590
 
    ) |
9591
 
      sed "s/^/$as_me: WARNING:     /" >&2
9592
 
    ;;
9593
 
esac
9594
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
9595
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9596
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9597
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9598
 
else
9599
 
  eval "$as_ac_Header=\$ac_header_preproc"
9600
 
fi
9601
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9602
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9603
 
 
9604
 
fi
9605
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9606
 
  cat >>confdefs.h <<_ACEOF
9607
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9608
 
_ACEOF
9609
 
 
9610
 
fi
9611
 
 
9612
 
done
9613
 
 
9614
 
 
9615
 
for ac_func in getpagesize
9616
 
do
9617
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9618
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9619
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9620
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9621
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9622
 
else
9623
 
  cat >conftest.$ac_ext <<_ACEOF
9624
 
/* confdefs.h.  */
9625
 
_ACEOF
9626
 
cat confdefs.h >>conftest.$ac_ext
9627
 
cat >>conftest.$ac_ext <<_ACEOF
9628
 
/* end confdefs.h.  */
9629
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9630
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9631
 
#define $ac_func innocuous_$ac_func
9632
 
 
9633
 
/* System header to define __stub macros and hopefully few prototypes,
9634
 
    which can conflict with char $ac_func (); below.
9635
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636
 
    <limits.h> exists even on freestanding compilers.  */
9637
 
 
9638
 
#ifdef __STDC__
9639
 
# include <limits.h>
9640
 
#else
9641
 
# include <assert.h>
9642
 
#endif
9643
 
 
9644
 
#undef $ac_func
9645
 
 
9646
 
/* Override any gcc2 internal prototype to avoid an error.  */
9647
 
#ifdef __cplusplus
9648
 
extern "C"
9649
 
{
9650
 
#endif
9651
 
/* We use char because int might match the return type of a gcc2
9652
 
   builtin and then its argument prototype would still apply.  */
9653
 
char $ac_func ();
9654
 
/* The GNU C library defines this for functions which it implements
9655
 
    to always fail with ENOSYS.  Some functions are actually named
9656
 
    something starting with __ and the normal name is an alias.  */
9657
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9658
 
choke me
9659
 
#else
9660
 
char (*f) () = $ac_func;
9661
 
#endif
9662
 
#ifdef __cplusplus
9663
 
}
9664
 
#endif
9665
 
 
9666
 
int
9667
 
main ()
9668
 
{
9669
 
return f != $ac_func;
9670
 
  ;
9671
 
  return 0;
9672
 
}
9673
 
_ACEOF
9674
 
rm -f conftest.$ac_objext conftest$ac_exeext
9675
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676
 
  (eval $ac_link) 2>conftest.er1
9677
 
  ac_status=$?
9678
 
  grep -v '^ *+' conftest.er1 >conftest.err
9679
 
  rm -f conftest.er1
9680
 
  cat conftest.err >&5
9681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682
 
  (exit $ac_status); } &&
9683
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9684
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685
 
  (eval $ac_try) 2>&5
9686
 
  ac_status=$?
9687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688
 
  (exit $ac_status); }; } &&
9689
 
         { ac_try='test -s conftest$ac_exeext'
9690
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691
 
  (eval $ac_try) 2>&5
9692
 
  ac_status=$?
9693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694
 
  (exit $ac_status); }; }; then
9695
 
  eval "$as_ac_var=yes"
9696
 
else
9697
 
  echo "$as_me: failed program was:" >&5
9698
 
sed 's/^/| /' conftest.$ac_ext >&5
9699
 
 
9700
 
eval "$as_ac_var=no"
9701
 
fi
9702
 
rm -f conftest.err conftest.$ac_objext \
9703
 
      conftest$ac_exeext conftest.$ac_ext
9704
 
fi
9705
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9706
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9707
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9708
 
  cat >>confdefs.h <<_ACEOF
9709
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9710
 
_ACEOF
9711
 
 
9712
 
fi
9713
 
done
9714
 
 
9715
 
echo "$as_me:$LINENO: checking for working mmap" >&5
9716
 
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9717
 
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9718
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9719
 
else
9720
 
  if test "$cross_compiling" = yes; then
9721
 
  ac_cv_func_mmap_fixed_mapped=no
9722
 
else
9723
 
  cat >conftest.$ac_ext <<_ACEOF
9724
 
/* confdefs.h.  */
9725
 
_ACEOF
9726
 
cat confdefs.h >>conftest.$ac_ext
9727
 
cat >>conftest.$ac_ext <<_ACEOF
9728
 
/* end confdefs.h.  */
9729
 
$ac_includes_default
9730
 
/* malloc might have been renamed as rpl_malloc. */
9731
 
#undef malloc
9732
 
 
9733
 
/* Thanks to Mike Haertel and Jim Avera for this test.
9734
 
   Here is a matrix of mmap possibilities:
9735
 
        mmap private not fixed
9736
 
        mmap private fixed at somewhere currently unmapped
9737
 
        mmap private fixed at somewhere already mapped
9738
 
        mmap shared not fixed
9739
 
        mmap shared fixed at somewhere currently unmapped
9740
 
        mmap shared fixed at somewhere already mapped
9741
 
   For private mappings, we should verify that changes cannot be read()
9742
 
   back from the file, nor mmap's back from the file at a different
9743
 
   address.  (There have been systems where private was not correctly
9744
 
   implemented like the infamous i386 svr4.0, and systems where the
9745
 
   VM page cache was not coherent with the file system buffer cache
9746
 
   like early versions of FreeBSD and possibly contemporary NetBSD.)
9747
 
   For shared mappings, we should conversely verify that changes get
9748
 
   propagated back to all the places they're supposed to be.
9749
 
 
9750
 
   Grep wants private fixed already mapped.
9751
 
   The main things grep needs to know about mmap are:
9752
 
   * does it exist and is it safe to write into the mmap'd area
9753
 
   * how to use it (BSD variants)  */
9754
 
 
9755
 
#include <fcntl.h>
9756
 
#include <sys/mman.h>
9757
 
 
9758
 
#if !STDC_HEADERS && !HAVE_STDLIB_H
9759
 
char *malloc ();
9760
 
#endif
9761
 
 
9762
 
/* This mess was copied from the GNU getpagesize.h.  */
9763
 
#if !HAVE_GETPAGESIZE
9764
 
/* Assume that all systems that can run configure have sys/param.h.  */
9765
 
# if !HAVE_SYS_PARAM_H
9766
 
#  define HAVE_SYS_PARAM_H 1
9767
 
# endif
9768
 
 
9769
 
# ifdef _SC_PAGESIZE
9770
 
#  define getpagesize() sysconf(_SC_PAGESIZE)
9771
 
# else /* no _SC_PAGESIZE */
9772
 
#  if HAVE_SYS_PARAM_H
9773
 
#   include <sys/param.h>
9774
 
#   ifdef EXEC_PAGESIZE
9775
 
#    define getpagesize() EXEC_PAGESIZE
9776
 
#   else /* no EXEC_PAGESIZE */
9777
 
#    ifdef NBPG
9778
 
#     define getpagesize() NBPG * CLSIZE
9779
 
#     ifndef CLSIZE
9780
 
#      define CLSIZE 1
9781
 
#     endif /* no CLSIZE */
9782
 
#    else /* no NBPG */
9783
 
#     ifdef NBPC
9784
 
#      define getpagesize() NBPC
9785
 
#     else /* no NBPC */
9786
 
#      ifdef PAGESIZE
9787
 
#       define getpagesize() PAGESIZE
9788
 
#      endif /* PAGESIZE */
9789
 
#     endif /* no NBPC */
9790
 
#    endif /* no NBPG */
9791
 
#   endif /* no EXEC_PAGESIZE */
9792
 
#  else /* no HAVE_SYS_PARAM_H */
9793
 
#   define getpagesize() 8192   /* punt totally */
9794
 
#  endif /* no HAVE_SYS_PARAM_H */
9795
 
# endif /* no _SC_PAGESIZE */
9796
 
 
9797
 
#endif /* no HAVE_GETPAGESIZE */
9798
 
 
9799
 
int
9800
 
main ()
9801
 
{
9802
 
  char *data, *data2, *data3;
9803
 
  int i, pagesize;
9804
 
  int fd;
9805
 
 
9806
 
  pagesize = getpagesize ();
9807
 
 
9808
 
  /* First, make a file with some known garbage in it. */
9809
 
  data = (char *) malloc (pagesize);
9810
 
  if (!data)
9811
 
    exit (1);
9812
 
  for (i = 0; i < pagesize; ++i)
9813
 
    *(data + i) = rand ();
9814
 
  umask (0);
9815
 
  fd = creat ("conftest.mmap", 0600);
9816
 
  if (fd < 0)
9817
 
    exit (1);
9818
 
  if (write (fd, data, pagesize) != pagesize)
9819
 
    exit (1);
9820
 
  close (fd);
9821
 
 
9822
 
  /* Next, try to mmap the file at a fixed address which already has
9823
 
     something else allocated at it.  If we can, also make sure that
9824
 
     we see the same garbage.  */
9825
 
  fd = open ("conftest.mmap", O_RDWR);
9826
 
  if (fd < 0)
9827
 
    exit (1);
9828
 
  data2 = (char *) malloc (2 * pagesize);
9829
 
  if (!data2)
9830
 
    exit (1);
9831
 
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9832
 
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9833
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
9834
 
    exit (1);
9835
 
  for (i = 0; i < pagesize; ++i)
9836
 
    if (*(data + i) != *(data2 + i))
9837
 
      exit (1);
9838
 
 
9839
 
  /* Finally, make sure that changes to the mapped area do not
9840
 
     percolate back to the file as seen by read().  (This is a bug on
9841
 
     some variants of i386 svr4.0.)  */
9842
 
  for (i = 0; i < pagesize; ++i)
9843
 
    *(data2 + i) = *(data2 + i) + 1;
9844
 
  data3 = (char *) malloc (pagesize);
9845
 
  if (!data3)
9846
 
    exit (1);
9847
 
  if (read (fd, data3, pagesize) != pagesize)
9848
 
    exit (1);
9849
 
  for (i = 0; i < pagesize; ++i)
9850
 
    if (*(data + i) != *(data3 + i))
9851
 
      exit (1);
9852
 
  close (fd);
9853
 
  exit (0);
9854
 
}
9855
 
_ACEOF
9856
 
rm -f conftest$ac_exeext
9857
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9858
 
  (eval $ac_link) 2>&5
9859
 
  ac_status=$?
9860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9862
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863
 
  (eval $ac_try) 2>&5
9864
 
  ac_status=$?
9865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866
 
  (exit $ac_status); }; }; then
9867
 
  ac_cv_func_mmap_fixed_mapped=yes
9868
 
else
9869
 
  echo "$as_me: program exited with status $ac_status" >&5
9870
 
echo "$as_me: failed program was:" >&5
9871
 
sed 's/^/| /' conftest.$ac_ext >&5
9872
 
 
9873
 
( exit $ac_status )
9874
 
ac_cv_func_mmap_fixed_mapped=no
9875
 
fi
9876
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9877
 
fi
9878
 
fi
9879
 
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9880
 
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9881
 
if test $ac_cv_func_mmap_fixed_mapped = yes; then
9882
 
 
9883
 
cat >>confdefs.h <<\_ACEOF
9884
 
#define HAVE_MMAP 1
9885
 
_ACEOF
9886
 
 
9887
 
fi
9888
 
rm -f conftest.mmap
9889
 
 
9890
 
 
9891
 
    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9892
 
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
9893
 
if test "${ac_cv_gnu_library_2_1+set}" = set; then
9894
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9895
 
else
9896
 
  cat >conftest.$ac_ext <<_ACEOF
9897
 
/* confdefs.h.  */
9898
 
_ACEOF
9899
 
cat confdefs.h >>conftest.$ac_ext
9900
 
cat >>conftest.$ac_ext <<_ACEOF
9901
 
/* end confdefs.h.  */
9902
 
 
9903
 
#include <features.h>
9904
 
#ifdef __GNU_LIBRARY__
9905
 
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9906
 
  Lucky GNU user
9907
 
 #endif
9908
 
#endif
9909
 
 
9910
 
_ACEOF
9911
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9912
 
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9913
 
  ac_cv_gnu_library_2_1=yes
9914
 
else
9915
 
  ac_cv_gnu_library_2_1=no
9916
 
fi
9917
 
rm -f conftest*
9918
 
 
9919
 
 
9920
 
 
9921
 
fi
9922
 
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9923
 
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9924
 
 
9925
 
    GLIBC21="$ac_cv_gnu_library_2_1"
9926
 
 
9927
 
 
9928
 
 
9929
 
 
9930
 
  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9931
 
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9932
 
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9933
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9934
 
else
9935
 
 
9936
 
      if test "$cross_compiling" = yes; then
9937
 
 
9938
 
          # Guess based on the CPU.
9939
 
          case "$host_cpu" in
9940
 
            alpha* | i3456786 | m68k | s390*)
9941
 
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
9942
 
            *)
9943
 
              gt_cv_int_divbyzero_sigfpe="guessing no";;
9944
 
          esac
9945
 
 
9946
 
else
9947
 
  cat >conftest.$ac_ext <<_ACEOF
9948
 
/* confdefs.h.  */
9949
 
_ACEOF
9950
 
cat confdefs.h >>conftest.$ac_ext
9951
 
cat >>conftest.$ac_ext <<_ACEOF
9952
 
/* end confdefs.h.  */
9953
 
 
9954
 
#include <stdlib.h>
9955
 
#include <signal.h>
9956
 
 
9957
 
static void
9958
 
#ifdef __cplusplus
9959
 
sigfpe_handler (int sig)
9960
 
#else
9961
 
sigfpe_handler (sig) int sig;
9962
 
#endif
9963
 
{
9964
 
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9965
 
  exit (sig != SIGFPE);
9966
 
}
9967
 
 
9968
 
int x = 1;
9969
 
int y = 0;
9970
 
int z;
9971
 
int nan;
9972
 
 
9973
 
int main ()
9974
 
{
9975
 
  signal (SIGFPE, sigfpe_handler);
9976
 
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9977
 
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9978
 
  signal (SIGTRAP, sigfpe_handler);
9979
 
#endif
9980
 
/* Linux/SPARC yields signal SIGILL.  */
9981
 
#if defined (__sparc__) && defined (__linux__)
9982
 
  signal (SIGILL, sigfpe_handler);
9983
 
#endif
9984
 
 
9985
 
  z = x / y;
9986
 
  nan = y / y;
9987
 
  exit (1);
9988
 
}
9989
 
 
9990
 
_ACEOF
9991
 
rm -f conftest$ac_exeext
9992
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993
 
  (eval $ac_link) 2>&5
9994
 
  ac_status=$?
9995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9997
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998
 
  (eval $ac_try) 2>&5
9999
 
  ac_status=$?
10000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001
 
  (exit $ac_status); }; }; then
10002
 
  gt_cv_int_divbyzero_sigfpe=yes
10003
 
else
10004
 
  echo "$as_me: program exited with status $ac_status" >&5
10005
 
echo "$as_me: failed program was:" >&5
10006
 
sed 's/^/| /' conftest.$ac_ext >&5
10007
 
 
10008
 
( exit $ac_status )
10009
 
gt_cv_int_divbyzero_sigfpe=no
10010
 
fi
10011
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10012
 
fi
10013
 
 
10014
 
fi
10015
 
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10016
 
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
10017
 
  case "$gt_cv_int_divbyzero_sigfpe" in
10018
 
    *yes) value=1;;
10019
 
    *) value=0;;
10020
 
  esac
10021
 
 
10022
 
cat >>confdefs.h <<_ACEOF
10023
 
#define INTDIV0_RAISES_SIGFPE $value
10024
 
_ACEOF
10025
 
 
10026
 
 
10027
 
 
10028
 
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
10029
 
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
10030
 
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10031
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10032
 
else
10033
 
  cat >conftest.$ac_ext <<_ACEOF
10034
 
/* confdefs.h.  */
10035
 
_ACEOF
10036
 
cat confdefs.h >>conftest.$ac_ext
10037
 
cat >>conftest.$ac_ext <<_ACEOF
10038
 
/* end confdefs.h.  */
10039
 
unsigned long long ull = 1ULL; int i = 63;
10040
 
int
10041
 
main ()
10042
 
{
10043
 
unsigned long long ullmax = (unsigned long long) -1;
10044
 
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10045
 
  ;
10046
 
  return 0;
10047
 
}
10048
 
_ACEOF
10049
 
rm -f conftest.$ac_objext conftest$ac_exeext
10050
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051
 
  (eval $ac_link) 2>conftest.er1
10052
 
  ac_status=$?
10053
 
  grep -v '^ *+' conftest.er1 >conftest.err
10054
 
  rm -f conftest.er1
10055
 
  cat conftest.err >&5
10056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057
 
  (exit $ac_status); } &&
10058
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10059
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060
 
  (eval $ac_try) 2>&5
10061
 
  ac_status=$?
10062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063
 
  (exit $ac_status); }; } &&
10064
 
         { ac_try='test -s conftest$ac_exeext'
10065
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066
 
  (eval $ac_try) 2>&5
10067
 
  ac_status=$?
10068
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069
 
  (exit $ac_status); }; }; then
10070
 
  ac_cv_type_unsigned_long_long=yes
10071
 
else
10072
 
  echo "$as_me: failed program was:" >&5
10073
 
sed 's/^/| /' conftest.$ac_ext >&5
10074
 
 
10075
 
ac_cv_type_unsigned_long_long=no
10076
 
fi
10077
 
rm -f conftest.err conftest.$ac_objext \
10078
 
      conftest$ac_exeext conftest.$ac_ext
10079
 
fi
10080
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10081
 
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
10082
 
  if test $ac_cv_type_unsigned_long_long = yes; then
10083
 
 
10084
 
cat >>confdefs.h <<\_ACEOF
10085
 
#define HAVE_UNSIGNED_LONG_LONG 1
10086
 
_ACEOF
10087
 
 
10088
 
  fi
10089
 
 
10090
 
 
10091
 
 
10092
 
 
10093
 
  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
10094
 
 
10095
 
    test $ac_cv_type_unsigned_long_long = yes \
10096
 
      && ac_type='unsigned long long' \
10097
 
      || ac_type='unsigned long'
10098
 
 
10099
 
cat >>confdefs.h <<_ACEOF
10100
 
#define uintmax_t $ac_type
10101
 
_ACEOF
10102
 
 
10103
 
  else
10104
 
 
10105
 
cat >>confdefs.h <<\_ACEOF
10106
 
#define HAVE_UINTMAX_T 1
10107
 
_ACEOF
10108
 
 
10109
 
  fi
10110
 
 
10111
 
 
10112
 
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
10113
 
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10114
 
if test "${gt_cv_header_inttypes_h+set}" = set; then
10115
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10116
 
else
10117
 
 
10118
 
    cat >conftest.$ac_ext <<_ACEOF
10119
 
/* confdefs.h.  */
10120
 
_ACEOF
10121
 
cat confdefs.h >>conftest.$ac_ext
10122
 
cat >>conftest.$ac_ext <<_ACEOF
10123
 
/* end confdefs.h.  */
10124
 
#include <sys/types.h>
10125
 
#include <inttypes.h>
10126
 
int
10127
 
main ()
10128
 
{
10129
 
 
10130
 
  ;
10131
 
  return 0;
10132
 
}
10133
 
_ACEOF
10134
 
rm -f conftest.$ac_objext
10135
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10136
 
  (eval $ac_compile) 2>conftest.er1
10137
 
  ac_status=$?
10138
 
  grep -v '^ *+' conftest.er1 >conftest.err
10139
 
  rm -f conftest.er1
10140
 
  cat conftest.err >&5
10141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142
 
  (exit $ac_status); } &&
10143
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10144
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145
 
  (eval $ac_try) 2>&5
10146
 
  ac_status=$?
10147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148
 
  (exit $ac_status); }; } &&
10149
 
         { ac_try='test -s conftest.$ac_objext'
10150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151
 
  (eval $ac_try) 2>&5
10152
 
  ac_status=$?
10153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154
 
  (exit $ac_status); }; }; then
10155
 
  gt_cv_header_inttypes_h=yes
10156
 
else
10157
 
  echo "$as_me: failed program was:" >&5
10158
 
sed 's/^/| /' conftest.$ac_ext >&5
10159
 
 
10160
 
gt_cv_header_inttypes_h=no
10161
 
fi
10162
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10163
 
 
10164
 
fi
10165
 
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10166
 
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
10167
 
  if test $gt_cv_header_inttypes_h = yes; then
10168
 
 
10169
 
cat >>confdefs.h <<_ACEOF
10170
 
#define HAVE_INTTYPES_H 1
10171
 
_ACEOF
10172
 
 
10173
 
  fi
10174
 
 
10175
 
 
10176
 
 
10177
 
  if test $gt_cv_header_inttypes_h = yes; then
10178
 
    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10179
 
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
10180
 
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10182
 
else
10183
 
 
10184
 
        cat >conftest.$ac_ext <<_ACEOF
10185
 
/* confdefs.h.  */
10186
 
_ACEOF
10187
 
cat confdefs.h >>conftest.$ac_ext
10188
 
cat >>conftest.$ac_ext <<_ACEOF
10189
 
/* end confdefs.h.  */
10190
 
#include <inttypes.h>
10191
 
#ifdef PRId32
10192
 
char *p = PRId32;
10193
 
#endif
10194
 
 
10195
 
int
10196
 
main ()
10197
 
{
10198
 
 
10199
 
  ;
10200
 
  return 0;
10201
 
}
10202
 
_ACEOF
10203
 
rm -f conftest.$ac_objext
10204
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205
 
  (eval $ac_compile) 2>conftest.er1
10206
 
  ac_status=$?
10207
 
  grep -v '^ *+' conftest.er1 >conftest.err
10208
 
  rm -f conftest.er1
10209
 
  cat conftest.err >&5
10210
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211
 
  (exit $ac_status); } &&
10212
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10213
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214
 
  (eval $ac_try) 2>&5
10215
 
  ac_status=$?
10216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217
 
  (exit $ac_status); }; } &&
10218
 
         { ac_try='test -s conftest.$ac_objext'
10219
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220
 
  (eval $ac_try) 2>&5
10221
 
  ac_status=$?
10222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223
 
  (exit $ac_status); }; }; then
10224
 
  gt_cv_inttypes_pri_broken=no
10225
 
else
10226
 
  echo "$as_me: failed program was:" >&5
10227
 
sed 's/^/| /' conftest.$ac_ext >&5
10228
 
 
10229
 
gt_cv_inttypes_pri_broken=yes
10230
 
fi
10231
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10232
 
 
10233
 
fi
10234
 
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10235
 
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
10236
 
  fi
10237
 
  if test "$gt_cv_inttypes_pri_broken" = yes; then
10238
 
 
10239
 
cat >>confdefs.h <<_ACEOF
10240
 
#define PRI_MACROS_BROKEN 1
10241
 
_ACEOF
10242
 
 
10243
 
  fi
10244
 
 
10245
 
 
10246
 
 
10247
 
for ac_header in stdint.h
10248
 
do
10249
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10250
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10251
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10252
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10253
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10255
 
fi
10256
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10257
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10258
 
else
10259
 
  # Is the header compilable?
10260
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10261
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10262
 
cat >conftest.$ac_ext <<_ACEOF
10263
 
/* confdefs.h.  */
10264
 
_ACEOF
10265
 
cat confdefs.h >>conftest.$ac_ext
10266
 
cat >>conftest.$ac_ext <<_ACEOF
10267
 
/* end confdefs.h.  */
10268
 
$ac_includes_default
10269
 
#include <$ac_header>
10270
 
_ACEOF
10271
 
rm -f conftest.$ac_objext
10272
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273
 
  (eval $ac_compile) 2>conftest.er1
10274
 
  ac_status=$?
10275
 
  grep -v '^ *+' conftest.er1 >conftest.err
10276
 
  rm -f conftest.er1
10277
 
  cat conftest.err >&5
10278
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279
 
  (exit $ac_status); } &&
10280
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10281
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282
 
  (eval $ac_try) 2>&5
10283
 
  ac_status=$?
10284
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285
 
  (exit $ac_status); }; } &&
10286
 
         { ac_try='test -s conftest.$ac_objext'
10287
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288
 
  (eval $ac_try) 2>&5
10289
 
  ac_status=$?
10290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291
 
  (exit $ac_status); }; }; then
10292
 
  ac_header_compiler=yes
10293
 
else
10294
 
  echo "$as_me: failed program was:" >&5
10295
 
sed 's/^/| /' conftest.$ac_ext >&5
10296
 
 
10297
 
ac_header_compiler=no
10298
 
fi
10299
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10300
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10301
 
echo "${ECHO_T}$ac_header_compiler" >&6
10302
 
 
10303
 
# Is the header present?
10304
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10305
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10306
 
cat >conftest.$ac_ext <<_ACEOF
10307
 
/* confdefs.h.  */
10308
 
_ACEOF
10309
 
cat confdefs.h >>conftest.$ac_ext
10310
 
cat >>conftest.$ac_ext <<_ACEOF
10311
 
/* end confdefs.h.  */
10312
 
#include <$ac_header>
10313
 
_ACEOF
10314
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10315
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10316
 
  ac_status=$?
10317
 
  grep -v '^ *+' conftest.er1 >conftest.err
10318
 
  rm -f conftest.er1
10319
 
  cat conftest.err >&5
10320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321
 
  (exit $ac_status); } >/dev/null; then
10322
 
  if test -s conftest.err; then
10323
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10324
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10325
 
  else
10326
 
    ac_cpp_err=
10327
 
  fi
10328
 
else
10329
 
  ac_cpp_err=yes
10330
 
fi
10331
 
if test -z "$ac_cpp_err"; then
10332
 
  ac_header_preproc=yes
10333
 
else
10334
 
  echo "$as_me: failed program was:" >&5
10335
 
sed 's/^/| /' conftest.$ac_ext >&5
10336
 
 
10337
 
  ac_header_preproc=no
10338
 
fi
10339
 
rm -f conftest.err conftest.$ac_ext
10340
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10341
 
echo "${ECHO_T}$ac_header_preproc" >&6
10342
 
 
10343
 
# So?  What about this header?
10344
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10345
 
  yes:no: )
10346
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10347
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10348
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10349
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10350
 
    ac_header_preproc=yes
10351
 
    ;;
10352
 
  no:yes:* )
10353
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10354
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10355
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10356
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10357
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10358
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10359
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10360
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10361
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10362
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10363
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10364
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10365
 
    (
10366
 
      cat <<\_ASBOX
10367
 
## ------------------------------------ ##
10368
 
## Report this to gnupg-devel@gnupg.org ##
10369
 
## ------------------------------------ ##
10370
 
_ASBOX
10371
 
    ) |
10372
 
      sed "s/^/$as_me: WARNING:     /" >&2
10373
 
    ;;
10374
 
esac
10375
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
10376
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10377
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10378
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10379
 
else
10380
 
  eval "$as_ac_Header=\$ac_header_preproc"
10381
 
fi
10382
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10383
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10384
 
 
10385
 
fi
10386
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10387
 
  cat >>confdefs.h <<_ACEOF
10388
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10389
 
_ACEOF
10390
 
 
10391
 
fi
10392
 
 
10393
 
done
10394
 
 
10395
 
    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10396
 
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
10397
 
  result=
10398
 
  cat >conftest.$ac_ext <<_ACEOF
10399
 
/* confdefs.h.  */
10400
 
_ACEOF
10401
 
cat confdefs.h >>conftest.$ac_ext
10402
 
cat >>conftest.$ac_ext <<_ACEOF
10403
 
/* end confdefs.h.  */
10404
 
 
10405
 
#include <limits.h>
10406
 
#if HAVE_STDINT_H
10407
 
#include <stdint.h>
10408
 
#endif
10409
 
#ifdef SIZE_MAX
10410
 
Found it
10411
 
#endif
10412
 
 
10413
 
_ACEOF
10414
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10415
 
  $EGREP "Found it" >/dev/null 2>&1; then
10416
 
  result=yes
10417
 
fi
10418
 
rm -f conftest*
10419
 
 
10420
 
  if test -z "$result"; then
10421
 
                    if test "$cross_compiling" = yes; then
10422
 
  # Depending upon the size, compute the lo and hi bounds.
10423
 
cat >conftest.$ac_ext <<_ACEOF
10424
 
/* confdefs.h.  */
10425
 
_ACEOF
10426
 
cat confdefs.h >>conftest.$ac_ext
10427
 
cat >>conftest.$ac_ext <<_ACEOF
10428
 
/* end confdefs.h.  */
10429
 
#include <stddef.h>
10430
 
int
10431
 
main ()
10432
 
{
10433
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10434
 
test_array [0] = 0
10435
 
 
10436
 
  ;
10437
 
  return 0;
10438
 
}
10439
 
_ACEOF
10440
 
rm -f conftest.$ac_objext
10441
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442
 
  (eval $ac_compile) 2>conftest.er1
10443
 
  ac_status=$?
10444
 
  grep -v '^ *+' conftest.er1 >conftest.err
10445
 
  rm -f conftest.er1
10446
 
  cat conftest.err >&5
10447
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448
 
  (exit $ac_status); } &&
10449
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10450
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451
 
  (eval $ac_try) 2>&5
10452
 
  ac_status=$?
10453
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454
 
  (exit $ac_status); }; } &&
10455
 
         { ac_try='test -s conftest.$ac_objext'
10456
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457
 
  (eval $ac_try) 2>&5
10458
 
  ac_status=$?
10459
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460
 
  (exit $ac_status); }; }; then
10461
 
  ac_lo=0 ac_mid=0
10462
 
  while :; do
10463
 
    cat >conftest.$ac_ext <<_ACEOF
10464
 
/* confdefs.h.  */
10465
 
_ACEOF
10466
 
cat confdefs.h >>conftest.$ac_ext
10467
 
cat >>conftest.$ac_ext <<_ACEOF
10468
 
/* end confdefs.h.  */
10469
 
#include <stddef.h>
10470
 
int
10471
 
main ()
10472
 
{
10473
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10474
 
test_array [0] = 0
10475
 
 
10476
 
  ;
10477
 
  return 0;
10478
 
}
10479
 
_ACEOF
10480
 
rm -f conftest.$ac_objext
10481
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482
 
  (eval $ac_compile) 2>conftest.er1
10483
 
  ac_status=$?
10484
 
  grep -v '^ *+' conftest.er1 >conftest.err
10485
 
  rm -f conftest.er1
10486
 
  cat conftest.err >&5
10487
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488
 
  (exit $ac_status); } &&
10489
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10490
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491
 
  (eval $ac_try) 2>&5
10492
 
  ac_status=$?
10493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494
 
  (exit $ac_status); }; } &&
10495
 
         { ac_try='test -s conftest.$ac_objext'
10496
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497
 
  (eval $ac_try) 2>&5
10498
 
  ac_status=$?
10499
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500
 
  (exit $ac_status); }; }; then
10501
 
  ac_hi=$ac_mid; break
10502
 
else
10503
 
  echo "$as_me: failed program was:" >&5
10504
 
sed 's/^/| /' conftest.$ac_ext >&5
10505
 
 
10506
 
ac_lo=`expr $ac_mid + 1`
10507
 
                    if test $ac_lo -le $ac_mid; then
10508
 
                      ac_lo= ac_hi=
10509
 
                      break
10510
 
                    fi
10511
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10512
 
fi
10513
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10514
 
  done
10515
 
else
10516
 
  echo "$as_me: failed program was:" >&5
10517
 
sed 's/^/| /' conftest.$ac_ext >&5
10518
 
 
10519
 
cat >conftest.$ac_ext <<_ACEOF
10520
 
/* confdefs.h.  */
10521
 
_ACEOF
10522
 
cat confdefs.h >>conftest.$ac_ext
10523
 
cat >>conftest.$ac_ext <<_ACEOF
10524
 
/* end confdefs.h.  */
10525
 
#include <stddef.h>
10526
 
int
10527
 
main ()
10528
 
{
10529
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10530
 
test_array [0] = 0
10531
 
 
10532
 
  ;
10533
 
  return 0;
10534
 
}
10535
 
_ACEOF
10536
 
rm -f conftest.$ac_objext
10537
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538
 
  (eval $ac_compile) 2>conftest.er1
10539
 
  ac_status=$?
10540
 
  grep -v '^ *+' conftest.er1 >conftest.err
10541
 
  rm -f conftest.er1
10542
 
  cat conftest.err >&5
10543
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544
 
  (exit $ac_status); } &&
10545
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10546
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547
 
  (eval $ac_try) 2>&5
10548
 
  ac_status=$?
10549
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550
 
  (exit $ac_status); }; } &&
10551
 
         { ac_try='test -s conftest.$ac_objext'
10552
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553
 
  (eval $ac_try) 2>&5
10554
 
  ac_status=$?
10555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556
 
  (exit $ac_status); }; }; then
10557
 
  ac_hi=-1 ac_mid=-1
10558
 
  while :; do
10559
 
    cat >conftest.$ac_ext <<_ACEOF
10560
 
/* confdefs.h.  */
10561
 
_ACEOF
10562
 
cat confdefs.h >>conftest.$ac_ext
10563
 
cat >>conftest.$ac_ext <<_ACEOF
10564
 
/* end confdefs.h.  */
10565
 
#include <stddef.h>
10566
 
int
10567
 
main ()
10568
 
{
10569
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10570
 
test_array [0] = 0
10571
 
 
10572
 
  ;
10573
 
  return 0;
10574
 
}
10575
 
_ACEOF
10576
 
rm -f conftest.$ac_objext
10577
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10578
 
  (eval $ac_compile) 2>conftest.er1
10579
 
  ac_status=$?
10580
 
  grep -v '^ *+' conftest.er1 >conftest.err
10581
 
  rm -f conftest.er1
10582
 
  cat conftest.err >&5
10583
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584
 
  (exit $ac_status); } &&
10585
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10586
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587
 
  (eval $ac_try) 2>&5
10588
 
  ac_status=$?
10589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590
 
  (exit $ac_status); }; } &&
10591
 
         { ac_try='test -s conftest.$ac_objext'
10592
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593
 
  (eval $ac_try) 2>&5
10594
 
  ac_status=$?
10595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596
 
  (exit $ac_status); }; }; then
10597
 
  ac_lo=$ac_mid; break
10598
 
else
10599
 
  echo "$as_me: failed program was:" >&5
10600
 
sed 's/^/| /' conftest.$ac_ext >&5
10601
 
 
10602
 
ac_hi=`expr '(' $ac_mid ')' - 1`
10603
 
                       if test $ac_mid -le $ac_hi; then
10604
 
                         ac_lo= ac_hi=
10605
 
                         break
10606
 
                       fi
10607
 
                       ac_mid=`expr 2 '*' $ac_mid`
10608
 
fi
10609
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10610
 
  done
10611
 
else
10612
 
  echo "$as_me: failed program was:" >&5
10613
 
sed 's/^/| /' conftest.$ac_ext >&5
10614
 
 
10615
 
ac_lo= ac_hi=
10616
 
fi
10617
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10618
 
fi
10619
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620
 
# Binary search between lo and hi bounds.
10621
 
while test "x$ac_lo" != "x$ac_hi"; do
10622
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10623
 
  cat >conftest.$ac_ext <<_ACEOF
10624
 
/* confdefs.h.  */
10625
 
_ACEOF
10626
 
cat confdefs.h >>conftest.$ac_ext
10627
 
cat >>conftest.$ac_ext <<_ACEOF
10628
 
/* end confdefs.h.  */
10629
 
#include <stddef.h>
10630
 
int
10631
 
main ()
10632
 
{
10633
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10634
 
test_array [0] = 0
10635
 
 
10636
 
  ;
10637
 
  return 0;
10638
 
}
10639
 
_ACEOF
10640
 
rm -f conftest.$ac_objext
10641
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10642
 
  (eval $ac_compile) 2>conftest.er1
10643
 
  ac_status=$?
10644
 
  grep -v '^ *+' conftest.er1 >conftest.err
10645
 
  rm -f conftest.er1
10646
 
  cat conftest.err >&5
10647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648
 
  (exit $ac_status); } &&
10649
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10650
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651
 
  (eval $ac_try) 2>&5
10652
 
  ac_status=$?
10653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654
 
  (exit $ac_status); }; } &&
10655
 
         { ac_try='test -s conftest.$ac_objext'
10656
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657
 
  (eval $ac_try) 2>&5
10658
 
  ac_status=$?
10659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660
 
  (exit $ac_status); }; }; then
10661
 
  ac_hi=$ac_mid
10662
 
else
10663
 
  echo "$as_me: failed program was:" >&5
10664
 
sed 's/^/| /' conftest.$ac_ext >&5
10665
 
 
10666
 
ac_lo=`expr '(' $ac_mid ')' + 1`
10667
 
fi
10668
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10669
 
done
10670
 
case $ac_lo in
10671
 
?*) res_hi=$ac_lo;;
10672
 
'') result=? ;;
10673
 
esac
10674
 
else
10675
 
  if test "$cross_compiling" = yes; then
10676
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
10677
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
10678
 
   { (exit 1); exit 1; }; }
10679
 
else
10680
 
  cat >conftest.$ac_ext <<_ACEOF
10681
 
/* confdefs.h.  */
10682
 
_ACEOF
10683
 
cat confdefs.h >>conftest.$ac_ext
10684
 
cat >>conftest.$ac_ext <<_ACEOF
10685
 
/* end confdefs.h.  */
10686
 
#include <stddef.h>
10687
 
long longval () { return ~(size_t)0 / 10; }
10688
 
unsigned long ulongval () { return ~(size_t)0 / 10; }
10689
 
#include <stdio.h>
10690
 
#include <stdlib.h>
10691
 
int
10692
 
main ()
10693
 
{
10694
 
 
10695
 
  FILE *f = fopen ("conftest.val", "w");
10696
 
  if (! f)
10697
 
    exit (1);
10698
 
  if ((~(size_t)0 / 10) < 0)
10699
 
    {
10700
 
      long i = longval ();
10701
 
      if (i != (~(size_t)0 / 10))
10702
 
        exit (1);
10703
 
      fprintf (f, "%ld\n", i);
10704
 
    }
10705
 
  else
10706
 
    {
10707
 
      unsigned long i = ulongval ();
10708
 
      if (i != (~(size_t)0 / 10))
10709
 
        exit (1);
10710
 
      fprintf (f, "%lu\n", i);
10711
 
    }
10712
 
  exit (ferror (f) || fclose (f) != 0);
10713
 
 
10714
 
  ;
10715
 
  return 0;
10716
 
}
10717
 
_ACEOF
10718
 
rm -f conftest$ac_exeext
10719
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10720
 
  (eval $ac_link) 2>&5
10721
 
  ac_status=$?
10722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10724
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725
 
  (eval $ac_try) 2>&5
10726
 
  ac_status=$?
10727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728
 
  (exit $ac_status); }; }; then
10729
 
  res_hi=`cat conftest.val`
10730
 
else
10731
 
  echo "$as_me: program exited with status $ac_status" >&5
10732
 
echo "$as_me: failed program was:" >&5
10733
 
sed 's/^/| /' conftest.$ac_ext >&5
10734
 
 
10735
 
( exit $ac_status )
10736
 
result=?
10737
 
fi
10738
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10739
 
fi
10740
 
fi
10741
 
rm -f conftest.val
10742
 
    if test "$cross_compiling" = yes; then
10743
 
  # Depending upon the size, compute the lo and hi bounds.
10744
 
cat >conftest.$ac_ext <<_ACEOF
10745
 
/* confdefs.h.  */
10746
 
_ACEOF
10747
 
cat confdefs.h >>conftest.$ac_ext
10748
 
cat >>conftest.$ac_ext <<_ACEOF
10749
 
/* end confdefs.h.  */
10750
 
#include <stddef.h>
10751
 
int
10752
 
main ()
10753
 
{
10754
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10755
 
test_array [0] = 0
10756
 
 
10757
 
  ;
10758
 
  return 0;
10759
 
}
10760
 
_ACEOF
10761
 
rm -f conftest.$ac_objext
10762
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763
 
  (eval $ac_compile) 2>conftest.er1
10764
 
  ac_status=$?
10765
 
  grep -v '^ *+' conftest.er1 >conftest.err
10766
 
  rm -f conftest.er1
10767
 
  cat conftest.err >&5
10768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769
 
  (exit $ac_status); } &&
10770
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10771
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772
 
  (eval $ac_try) 2>&5
10773
 
  ac_status=$?
10774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775
 
  (exit $ac_status); }; } &&
10776
 
         { ac_try='test -s conftest.$ac_objext'
10777
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778
 
  (eval $ac_try) 2>&5
10779
 
  ac_status=$?
10780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781
 
  (exit $ac_status); }; }; then
10782
 
  ac_lo=0 ac_mid=0
10783
 
  while :; do
10784
 
    cat >conftest.$ac_ext <<_ACEOF
10785
 
/* confdefs.h.  */
10786
 
_ACEOF
10787
 
cat confdefs.h >>conftest.$ac_ext
10788
 
cat >>conftest.$ac_ext <<_ACEOF
10789
 
/* end confdefs.h.  */
10790
 
#include <stddef.h>
10791
 
int
10792
 
main ()
10793
 
{
10794
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10795
 
test_array [0] = 0
10796
 
 
10797
 
  ;
10798
 
  return 0;
10799
 
}
10800
 
_ACEOF
10801
 
rm -f conftest.$ac_objext
10802
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803
 
  (eval $ac_compile) 2>conftest.er1
10804
 
  ac_status=$?
10805
 
  grep -v '^ *+' conftest.er1 >conftest.err
10806
 
  rm -f conftest.er1
10807
 
  cat conftest.err >&5
10808
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809
 
  (exit $ac_status); } &&
10810
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10811
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812
 
  (eval $ac_try) 2>&5
10813
 
  ac_status=$?
10814
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815
 
  (exit $ac_status); }; } &&
10816
 
         { ac_try='test -s conftest.$ac_objext'
10817
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818
 
  (eval $ac_try) 2>&5
10819
 
  ac_status=$?
10820
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821
 
  (exit $ac_status); }; }; then
10822
 
  ac_hi=$ac_mid; break
10823
 
else
10824
 
  echo "$as_me: failed program was:" >&5
10825
 
sed 's/^/| /' conftest.$ac_ext >&5
10826
 
 
10827
 
ac_lo=`expr $ac_mid + 1`
10828
 
                    if test $ac_lo -le $ac_mid; then
10829
 
                      ac_lo= ac_hi=
10830
 
                      break
10831
 
                    fi
10832
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10833
 
fi
10834
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10835
 
  done
10836
 
else
10837
 
  echo "$as_me: failed program was:" >&5
10838
 
sed 's/^/| /' conftest.$ac_ext >&5
10839
 
 
10840
 
cat >conftest.$ac_ext <<_ACEOF
10841
 
/* confdefs.h.  */
10842
 
_ACEOF
10843
 
cat confdefs.h >>conftest.$ac_ext
10844
 
cat >>conftest.$ac_ext <<_ACEOF
10845
 
/* end confdefs.h.  */
10846
 
#include <stddef.h>
10847
 
int
10848
 
main ()
10849
 
{
10850
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10851
 
test_array [0] = 0
10852
 
 
10853
 
  ;
10854
 
  return 0;
10855
 
}
10856
 
_ACEOF
10857
 
rm -f conftest.$ac_objext
10858
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859
 
  (eval $ac_compile) 2>conftest.er1
10860
 
  ac_status=$?
10861
 
  grep -v '^ *+' conftest.er1 >conftest.err
10862
 
  rm -f conftest.er1
10863
 
  cat conftest.err >&5
10864
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865
 
  (exit $ac_status); } &&
10866
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10867
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868
 
  (eval $ac_try) 2>&5
10869
 
  ac_status=$?
10870
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871
 
  (exit $ac_status); }; } &&
10872
 
         { ac_try='test -s conftest.$ac_objext'
10873
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874
 
  (eval $ac_try) 2>&5
10875
 
  ac_status=$?
10876
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877
 
  (exit $ac_status); }; }; then
10878
 
  ac_hi=-1 ac_mid=-1
10879
 
  while :; do
10880
 
    cat >conftest.$ac_ext <<_ACEOF
10881
 
/* confdefs.h.  */
10882
 
_ACEOF
10883
 
cat confdefs.h >>conftest.$ac_ext
10884
 
cat >>conftest.$ac_ext <<_ACEOF
10885
 
/* end confdefs.h.  */
10886
 
#include <stddef.h>
10887
 
int
10888
 
main ()
10889
 
{
10890
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10891
 
test_array [0] = 0
10892
 
 
10893
 
  ;
10894
 
  return 0;
10895
 
}
10896
 
_ACEOF
10897
 
rm -f conftest.$ac_objext
10898
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899
 
  (eval $ac_compile) 2>conftest.er1
10900
 
  ac_status=$?
10901
 
  grep -v '^ *+' conftest.er1 >conftest.err
10902
 
  rm -f conftest.er1
10903
 
  cat conftest.err >&5
10904
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905
 
  (exit $ac_status); } &&
10906
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10907
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908
 
  (eval $ac_try) 2>&5
10909
 
  ac_status=$?
10910
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911
 
  (exit $ac_status); }; } &&
10912
 
         { ac_try='test -s conftest.$ac_objext'
10913
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914
 
  (eval $ac_try) 2>&5
10915
 
  ac_status=$?
10916
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917
 
  (exit $ac_status); }; }; then
10918
 
  ac_lo=$ac_mid; break
10919
 
else
10920
 
  echo "$as_me: failed program was:" >&5
10921
 
sed 's/^/| /' conftest.$ac_ext >&5
10922
 
 
10923
 
ac_hi=`expr '(' $ac_mid ')' - 1`
10924
 
                       if test $ac_mid -le $ac_hi; then
10925
 
                         ac_lo= ac_hi=
10926
 
                         break
10927
 
                       fi
10928
 
                       ac_mid=`expr 2 '*' $ac_mid`
10929
 
fi
10930
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10931
 
  done
10932
 
else
10933
 
  echo "$as_me: failed program was:" >&5
10934
 
sed 's/^/| /' conftest.$ac_ext >&5
10935
 
 
10936
 
ac_lo= ac_hi=
10937
 
fi
10938
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10939
 
fi
10940
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10941
 
# Binary search between lo and hi bounds.
10942
 
while test "x$ac_lo" != "x$ac_hi"; do
10943
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10944
 
  cat >conftest.$ac_ext <<_ACEOF
10945
 
/* confdefs.h.  */
10946
 
_ACEOF
10947
 
cat confdefs.h >>conftest.$ac_ext
10948
 
cat >>conftest.$ac_ext <<_ACEOF
10949
 
/* end confdefs.h.  */
10950
 
#include <stddef.h>
10951
 
int
10952
 
main ()
10953
 
{
10954
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10955
 
test_array [0] = 0
10956
 
 
10957
 
  ;
10958
 
  return 0;
10959
 
}
10960
 
_ACEOF
10961
 
rm -f conftest.$ac_objext
10962
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10963
 
  (eval $ac_compile) 2>conftest.er1
10964
 
  ac_status=$?
10965
 
  grep -v '^ *+' conftest.er1 >conftest.err
10966
 
  rm -f conftest.er1
10967
 
  cat conftest.err >&5
10968
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969
 
  (exit $ac_status); } &&
10970
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10971
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972
 
  (eval $ac_try) 2>&5
10973
 
  ac_status=$?
10974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975
 
  (exit $ac_status); }; } &&
10976
 
         { ac_try='test -s conftest.$ac_objext'
10977
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978
 
  (eval $ac_try) 2>&5
10979
 
  ac_status=$?
10980
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981
 
  (exit $ac_status); }; }; then
10982
 
  ac_hi=$ac_mid
10983
 
else
10984
 
  echo "$as_me: failed program was:" >&5
10985
 
sed 's/^/| /' conftest.$ac_ext >&5
10986
 
 
10987
 
ac_lo=`expr '(' $ac_mid ')' + 1`
10988
 
fi
10989
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10990
 
done
10991
 
case $ac_lo in
10992
 
?*) res_lo=$ac_lo;;
10993
 
'') result=? ;;
10994
 
esac
10995
 
else
10996
 
  if test "$cross_compiling" = yes; then
10997
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
10998
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
10999
 
   { (exit 1); exit 1; }; }
11000
 
else
11001
 
  cat >conftest.$ac_ext <<_ACEOF
11002
 
/* confdefs.h.  */
11003
 
_ACEOF
11004
 
cat confdefs.h >>conftest.$ac_ext
11005
 
cat >>conftest.$ac_ext <<_ACEOF
11006
 
/* end confdefs.h.  */
11007
 
#include <stddef.h>
11008
 
long longval () { return ~(size_t)0 % 10; }
11009
 
unsigned long ulongval () { return ~(size_t)0 % 10; }
11010
 
#include <stdio.h>
11011
 
#include <stdlib.h>
11012
 
int
11013
 
main ()
11014
 
{
11015
 
 
11016
 
  FILE *f = fopen ("conftest.val", "w");
11017
 
  if (! f)
11018
 
    exit (1);
11019
 
  if ((~(size_t)0 % 10) < 0)
11020
 
    {
11021
 
      long i = longval ();
11022
 
      if (i != (~(size_t)0 % 10))
11023
 
        exit (1);
11024
 
      fprintf (f, "%ld\n", i);
11025
 
    }
11026
 
  else
11027
 
    {
11028
 
      unsigned long i = ulongval ();
11029
 
      if (i != (~(size_t)0 % 10))
11030
 
        exit (1);
11031
 
      fprintf (f, "%lu\n", i);
11032
 
    }
11033
 
  exit (ferror (f) || fclose (f) != 0);
11034
 
 
11035
 
  ;
11036
 
  return 0;
11037
 
}
11038
 
_ACEOF
11039
 
rm -f conftest$ac_exeext
11040
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041
 
  (eval $ac_link) 2>&5
11042
 
  ac_status=$?
11043
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11045
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046
 
  (eval $ac_try) 2>&5
11047
 
  ac_status=$?
11048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049
 
  (exit $ac_status); }; }; then
11050
 
  res_lo=`cat conftest.val`
11051
 
else
11052
 
  echo "$as_me: program exited with status $ac_status" >&5
11053
 
echo "$as_me: failed program was:" >&5
11054
 
sed 's/^/| /' conftest.$ac_ext >&5
11055
 
 
11056
 
( exit $ac_status )
11057
 
result=?
11058
 
fi
11059
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11060
 
fi
11061
 
fi
11062
 
rm -f conftest.val
11063
 
    if test "$cross_compiling" = yes; then
11064
 
  # Depending upon the size, compute the lo and hi bounds.
11065
 
cat >conftest.$ac_ext <<_ACEOF
11066
 
/* confdefs.h.  */
11067
 
_ACEOF
11068
 
cat confdefs.h >>conftest.$ac_ext
11069
 
cat >>conftest.$ac_ext <<_ACEOF
11070
 
/* end confdefs.h.  */
11071
 
#include <stddef.h>
11072
 
int
11073
 
main ()
11074
 
{
11075
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11076
 
test_array [0] = 0
11077
 
 
11078
 
  ;
11079
 
  return 0;
11080
 
}
11081
 
_ACEOF
11082
 
rm -f conftest.$ac_objext
11083
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084
 
  (eval $ac_compile) 2>conftest.er1
11085
 
  ac_status=$?
11086
 
  grep -v '^ *+' conftest.er1 >conftest.err
11087
 
  rm -f conftest.er1
11088
 
  cat conftest.err >&5
11089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090
 
  (exit $ac_status); } &&
11091
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11092
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093
 
  (eval $ac_try) 2>&5
11094
 
  ac_status=$?
11095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096
 
  (exit $ac_status); }; } &&
11097
 
         { ac_try='test -s conftest.$ac_objext'
11098
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099
 
  (eval $ac_try) 2>&5
11100
 
  ac_status=$?
11101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102
 
  (exit $ac_status); }; }; then
11103
 
  ac_lo=0 ac_mid=0
11104
 
  while :; do
11105
 
    cat >conftest.$ac_ext <<_ACEOF
11106
 
/* confdefs.h.  */
11107
 
_ACEOF
11108
 
cat confdefs.h >>conftest.$ac_ext
11109
 
cat >>conftest.$ac_ext <<_ACEOF
11110
 
/* end confdefs.h.  */
11111
 
#include <stddef.h>
11112
 
int
11113
 
main ()
11114
 
{
11115
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11116
 
test_array [0] = 0
11117
 
 
11118
 
  ;
11119
 
  return 0;
11120
 
}
11121
 
_ACEOF
11122
 
rm -f conftest.$ac_objext
11123
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124
 
  (eval $ac_compile) 2>conftest.er1
11125
 
  ac_status=$?
11126
 
  grep -v '^ *+' conftest.er1 >conftest.err
11127
 
  rm -f conftest.er1
11128
 
  cat conftest.err >&5
11129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130
 
  (exit $ac_status); } &&
11131
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11132
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133
 
  (eval $ac_try) 2>&5
11134
 
  ac_status=$?
11135
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136
 
  (exit $ac_status); }; } &&
11137
 
         { ac_try='test -s conftest.$ac_objext'
11138
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139
 
  (eval $ac_try) 2>&5
11140
 
  ac_status=$?
11141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142
 
  (exit $ac_status); }; }; then
11143
 
  ac_hi=$ac_mid; break
11144
 
else
11145
 
  echo "$as_me: failed program was:" >&5
11146
 
sed 's/^/| /' conftest.$ac_ext >&5
11147
 
 
11148
 
ac_lo=`expr $ac_mid + 1`
11149
 
                    if test $ac_lo -le $ac_mid; then
11150
 
                      ac_lo= ac_hi=
11151
 
                      break
11152
 
                    fi
11153
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
11154
 
fi
11155
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11156
 
  done
11157
 
else
11158
 
  echo "$as_me: failed program was:" >&5
11159
 
sed 's/^/| /' conftest.$ac_ext >&5
11160
 
 
11161
 
cat >conftest.$ac_ext <<_ACEOF
11162
 
/* confdefs.h.  */
11163
 
_ACEOF
11164
 
cat confdefs.h >>conftest.$ac_ext
11165
 
cat >>conftest.$ac_ext <<_ACEOF
11166
 
/* end confdefs.h.  */
11167
 
#include <stddef.h>
11168
 
int
11169
 
main ()
11170
 
{
11171
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11172
 
test_array [0] = 0
11173
 
 
11174
 
  ;
11175
 
  return 0;
11176
 
}
11177
 
_ACEOF
11178
 
rm -f conftest.$ac_objext
11179
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11180
 
  (eval $ac_compile) 2>conftest.er1
11181
 
  ac_status=$?
11182
 
  grep -v '^ *+' conftest.er1 >conftest.err
11183
 
  rm -f conftest.er1
11184
 
  cat conftest.err >&5
11185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186
 
  (exit $ac_status); } &&
11187
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11188
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189
 
  (eval $ac_try) 2>&5
11190
 
  ac_status=$?
11191
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192
 
  (exit $ac_status); }; } &&
11193
 
         { ac_try='test -s conftest.$ac_objext'
11194
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195
 
  (eval $ac_try) 2>&5
11196
 
  ac_status=$?
11197
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198
 
  (exit $ac_status); }; }; then
11199
 
  ac_hi=-1 ac_mid=-1
11200
 
  while :; do
11201
 
    cat >conftest.$ac_ext <<_ACEOF
11202
 
/* confdefs.h.  */
11203
 
_ACEOF
11204
 
cat confdefs.h >>conftest.$ac_ext
11205
 
cat >>conftest.$ac_ext <<_ACEOF
11206
 
/* end confdefs.h.  */
11207
 
#include <stddef.h>
11208
 
int
11209
 
main ()
11210
 
{
11211
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11212
 
test_array [0] = 0
11213
 
 
11214
 
  ;
11215
 
  return 0;
11216
 
}
11217
 
_ACEOF
11218
 
rm -f conftest.$ac_objext
11219
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11220
 
  (eval $ac_compile) 2>conftest.er1
11221
 
  ac_status=$?
11222
 
  grep -v '^ *+' conftest.er1 >conftest.err
11223
 
  rm -f conftest.er1
11224
 
  cat conftest.err >&5
11225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226
 
  (exit $ac_status); } &&
11227
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11228
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229
 
  (eval $ac_try) 2>&5
11230
 
  ac_status=$?
11231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232
 
  (exit $ac_status); }; } &&
11233
 
         { ac_try='test -s conftest.$ac_objext'
11234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235
 
  (eval $ac_try) 2>&5
11236
 
  ac_status=$?
11237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238
 
  (exit $ac_status); }; }; then
11239
 
  ac_lo=$ac_mid; break
11240
 
else
11241
 
  echo "$as_me: failed program was:" >&5
11242
 
sed 's/^/| /' conftest.$ac_ext >&5
11243
 
 
11244
 
ac_hi=`expr '(' $ac_mid ')' - 1`
11245
 
                       if test $ac_mid -le $ac_hi; then
11246
 
                         ac_lo= ac_hi=
11247
 
                         break
11248
 
                       fi
11249
 
                       ac_mid=`expr 2 '*' $ac_mid`
11250
 
fi
11251
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11252
 
  done
11253
 
else
11254
 
  echo "$as_me: failed program was:" >&5
11255
 
sed 's/^/| /' conftest.$ac_ext >&5
11256
 
 
11257
 
ac_lo= ac_hi=
11258
 
fi
11259
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11260
 
fi
11261
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262
 
# Binary search between lo and hi bounds.
11263
 
while test "x$ac_lo" != "x$ac_hi"; do
11264
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11265
 
  cat >conftest.$ac_ext <<_ACEOF
11266
 
/* confdefs.h.  */
11267
 
_ACEOF
11268
 
cat confdefs.h >>conftest.$ac_ext
11269
 
cat >>conftest.$ac_ext <<_ACEOF
11270
 
/* end confdefs.h.  */
11271
 
#include <stddef.h>
11272
 
int
11273
 
main ()
11274
 
{
11275
 
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11276
 
test_array [0] = 0
11277
 
 
11278
 
  ;
11279
 
  return 0;
11280
 
}
11281
 
_ACEOF
11282
 
rm -f conftest.$ac_objext
11283
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11284
 
  (eval $ac_compile) 2>conftest.er1
11285
 
  ac_status=$?
11286
 
  grep -v '^ *+' conftest.er1 >conftest.err
11287
 
  rm -f conftest.er1
11288
 
  cat conftest.err >&5
11289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290
 
  (exit $ac_status); } &&
11291
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11292
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293
 
  (eval $ac_try) 2>&5
11294
 
  ac_status=$?
11295
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296
 
  (exit $ac_status); }; } &&
11297
 
         { ac_try='test -s conftest.$ac_objext'
11298
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299
 
  (eval $ac_try) 2>&5
11300
 
  ac_status=$?
11301
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302
 
  (exit $ac_status); }; }; then
11303
 
  ac_hi=$ac_mid
11304
 
else
11305
 
  echo "$as_me: failed program was:" >&5
11306
 
sed 's/^/| /' conftest.$ac_ext >&5
11307
 
 
11308
 
ac_lo=`expr '(' $ac_mid ')' + 1`
11309
 
fi
11310
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11311
 
done
11312
 
case $ac_lo in
11313
 
?*) fits_in_uint=$ac_lo;;
11314
 
'') result=? ;;
11315
 
esac
11316
 
else
11317
 
  if test "$cross_compiling" = yes; then
11318
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11319
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11320
 
   { (exit 1); exit 1; }; }
11321
 
else
11322
 
  cat >conftest.$ac_ext <<_ACEOF
11323
 
/* confdefs.h.  */
11324
 
_ACEOF
11325
 
cat confdefs.h >>conftest.$ac_ext
11326
 
cat >>conftest.$ac_ext <<_ACEOF
11327
 
/* end confdefs.h.  */
11328
 
#include <stddef.h>
11329
 
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11330
 
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11331
 
#include <stdio.h>
11332
 
#include <stdlib.h>
11333
 
int
11334
 
main ()
11335
 
{
11336
 
 
11337
 
  FILE *f = fopen ("conftest.val", "w");
11338
 
  if (! f)
11339
 
    exit (1);
11340
 
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11341
 
    {
11342
 
      long i = longval ();
11343
 
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11344
 
        exit (1);
11345
 
      fprintf (f, "%ld\n", i);
11346
 
    }
11347
 
  else
11348
 
    {
11349
 
      unsigned long i = ulongval ();
11350
 
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11351
 
        exit (1);
11352
 
      fprintf (f, "%lu\n", i);
11353
 
    }
11354
 
  exit (ferror (f) || fclose (f) != 0);
11355
 
 
11356
 
  ;
11357
 
  return 0;
11358
 
}
11359
 
_ACEOF
11360
 
rm -f conftest$ac_exeext
11361
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362
 
  (eval $ac_link) 2>&5
11363
 
  ac_status=$?
11364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11366
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367
 
  (eval $ac_try) 2>&5
11368
 
  ac_status=$?
11369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370
 
  (exit $ac_status); }; }; then
11371
 
  fits_in_uint=`cat conftest.val`
11372
 
else
11373
 
  echo "$as_me: program exited with status $ac_status" >&5
11374
 
echo "$as_me: failed program was:" >&5
11375
 
sed 's/^/| /' conftest.$ac_ext >&5
11376
 
 
11377
 
( exit $ac_status )
11378
 
result=?
11379
 
fi
11380
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11381
 
fi
11382
 
fi
11383
 
rm -f conftest.val
11384
 
    if test "$fits_in_uint" = 1; then
11385
 
                  cat >conftest.$ac_ext <<_ACEOF
11386
 
/* confdefs.h.  */
11387
 
_ACEOF
11388
 
cat confdefs.h >>conftest.$ac_ext
11389
 
cat >>conftest.$ac_ext <<_ACEOF
11390
 
/* end confdefs.h.  */
11391
 
#include <stddef.h>
11392
 
        extern size_t foo;
11393
 
        extern unsigned long foo;
11394
 
 
11395
 
int
11396
 
main ()
11397
 
{
11398
 
 
11399
 
  ;
11400
 
  return 0;
11401
 
}
11402
 
_ACEOF
11403
 
rm -f conftest.$ac_objext
11404
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11405
 
  (eval $ac_compile) 2>conftest.er1
11406
 
  ac_status=$?
11407
 
  grep -v '^ *+' conftest.er1 >conftest.err
11408
 
  rm -f conftest.er1
11409
 
  cat conftest.err >&5
11410
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411
 
  (exit $ac_status); } &&
11412
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11413
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414
 
  (eval $ac_try) 2>&5
11415
 
  ac_status=$?
11416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417
 
  (exit $ac_status); }; } &&
11418
 
         { ac_try='test -s conftest.$ac_objext'
11419
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420
 
  (eval $ac_try) 2>&5
11421
 
  ac_status=$?
11422
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423
 
  (exit $ac_status); }; }; then
11424
 
  fits_in_uint=0
11425
 
else
11426
 
  echo "$as_me: failed program was:" >&5
11427
 
sed 's/^/| /' conftest.$ac_ext >&5
11428
 
 
11429
 
fi
11430
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11431
 
    fi
11432
 
    if test -z "$result"; then
11433
 
      if test "$fits_in_uint" = 1; then
11434
 
        result="$res_hi$res_lo"U
11435
 
      else
11436
 
        result="$res_hi$res_lo"UL
11437
 
      fi
11438
 
    else
11439
 
            result='~(size_t)0'
11440
 
    fi
11441
 
  fi
11442
 
  echo "$as_me:$LINENO: result: $result" >&5
11443
 
echo "${ECHO_T}$result" >&6
11444
 
  if test "$result" != yes; then
11445
 
 
11446
 
cat >>confdefs.h <<_ACEOF
11447
 
#define SIZE_MAX $result
11448
 
_ACEOF
11449
 
 
11450
 
  fi
11451
 
 
11452
 
 
11453
 
 
11454
 
 
11455
 
for ac_header in stdint.h
11456
 
do
11457
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11458
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11459
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11460
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11461
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11462
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11463
 
fi
11464
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11465
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11466
 
else
11467
 
  # Is the header compilable?
11468
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11469
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11470
 
cat >conftest.$ac_ext <<_ACEOF
11471
 
/* confdefs.h.  */
11472
 
_ACEOF
11473
 
cat confdefs.h >>conftest.$ac_ext
11474
 
cat >>conftest.$ac_ext <<_ACEOF
11475
 
/* end confdefs.h.  */
11476
 
$ac_includes_default
11477
 
#include <$ac_header>
11478
 
_ACEOF
11479
 
rm -f conftest.$ac_objext
11480
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481
 
  (eval $ac_compile) 2>conftest.er1
11482
 
  ac_status=$?
11483
 
  grep -v '^ *+' conftest.er1 >conftest.err
11484
 
  rm -f conftest.er1
11485
 
  cat conftest.err >&5
11486
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487
 
  (exit $ac_status); } &&
11488
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11489
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490
 
  (eval $ac_try) 2>&5
11491
 
  ac_status=$?
11492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493
 
  (exit $ac_status); }; } &&
11494
 
         { ac_try='test -s conftest.$ac_objext'
11495
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496
 
  (eval $ac_try) 2>&5
11497
 
  ac_status=$?
11498
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499
 
  (exit $ac_status); }; }; then
11500
 
  ac_header_compiler=yes
11501
 
else
11502
 
  echo "$as_me: failed program was:" >&5
11503
 
sed 's/^/| /' conftest.$ac_ext >&5
11504
 
 
11505
 
ac_header_compiler=no
11506
 
fi
11507
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11508
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11509
 
echo "${ECHO_T}$ac_header_compiler" >&6
11510
 
 
11511
 
# Is the header present?
11512
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11513
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11514
 
cat >conftest.$ac_ext <<_ACEOF
11515
 
/* confdefs.h.  */
11516
 
_ACEOF
11517
 
cat confdefs.h >>conftest.$ac_ext
11518
 
cat >>conftest.$ac_ext <<_ACEOF
11519
 
/* end confdefs.h.  */
11520
 
#include <$ac_header>
11521
 
_ACEOF
11522
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11523
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11524
 
  ac_status=$?
11525
 
  grep -v '^ *+' conftest.er1 >conftest.err
11526
 
  rm -f conftest.er1
11527
 
  cat conftest.err >&5
11528
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529
 
  (exit $ac_status); } >/dev/null; then
11530
 
  if test -s conftest.err; then
11531
 
    ac_cpp_err=$ac_c_preproc_warn_flag
11532
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11533
 
  else
11534
 
    ac_cpp_err=
11535
 
  fi
11536
 
else
11537
 
  ac_cpp_err=yes
11538
 
fi
11539
 
if test -z "$ac_cpp_err"; then
11540
 
  ac_header_preproc=yes
11541
 
else
11542
 
  echo "$as_me: failed program was:" >&5
11543
 
sed 's/^/| /' conftest.$ac_ext >&5
11544
 
 
11545
 
  ac_header_preproc=no
11546
 
fi
11547
 
rm -f conftest.err conftest.$ac_ext
11548
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11549
 
echo "${ECHO_T}$ac_header_preproc" >&6
11550
 
 
11551
 
# So?  What about this header?
11552
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553
 
  yes:no: )
11554
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11555
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11556
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11557
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11558
 
    ac_header_preproc=yes
11559
 
    ;;
11560
 
  no:yes:* )
11561
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11562
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11563
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11564
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11565
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11566
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11567
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11568
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11569
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11570
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11571
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11572
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11573
 
    (
11574
 
      cat <<\_ASBOX
11575
 
## ------------------------------------ ##
11576
 
## Report this to gnupg-devel@gnupg.org ##
11577
 
## ------------------------------------ ##
11578
 
_ASBOX
11579
 
    ) |
11580
 
      sed "s/^/$as_me: WARNING:     /" >&2
11581
 
    ;;
11582
 
esac
11583
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
11584
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11585
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11586
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11587
 
else
11588
 
  eval "$as_ac_Header=\$ac_header_preproc"
11589
 
fi
11590
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11591
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11592
 
 
11593
 
fi
11594
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11595
 
  cat >>confdefs.h <<_ACEOF
11596
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11597
 
_ACEOF
11598
 
 
11599
 
fi
11600
 
 
11601
 
done
11602
 
 
11603
 
 
 
9402
#
 
9403
# Checking for iconv
 
9404
#
11604
9405
 
11605
9406
      if test "X$prefix" = "XNONE"; then
11606
9407
    acl_final_prefix="$ac_default_prefix"
11618
9419
  prefix="$acl_save_prefix"
11619
9420
 
11620
9421
 
11621
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9422
# Check whether --with-gnu-ld was given.
11622
9423
if test "${with_gnu_ld+set}" = set; then
11623
 
  withval="$with_gnu_ld"
11624
 
  test "$withval" = no || with_gnu_ld=yes
 
9424
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11625
9425
else
11626
9426
  with_gnu_ld=no
11627
 
fi;
 
9427
fi
 
9428
 
11628
9429
# Prepare PATH_SEPARATOR.
11629
9430
# The user is always right.
11630
9431
if test "${PATH_SEPARATOR+set}" != set; then
11641
9442
ac_prog=ld
11642
9443
if test "$GCC" = yes; then
11643
9444
  # Check if gcc -print-prog-name=ld gives a path.
11644
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11645
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
9445
  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
9446
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
11646
9447
  case $host in
11647
9448
  *-*-mingw*)
11648
9449
    # gcc leaves a trailing carriage return which upsets mingw
11671
9472
    ;;
11672
9473
  esac
11673
9474
elif test "$with_gnu_ld" = yes; then
11674
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
11675
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9475
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9476
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11676
9477
else
11677
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11678
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9478
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9479
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11679
9480
fi
11680
9481
if test "${acl_cv_path_LD+set}" = set; then
11681
9482
  echo $ECHO_N "(cached) $ECHO_C" >&6
11705
9506
 
11706
9507
LD="$acl_cv_path_LD"
11707
9508
if test -n "$LD"; then
11708
 
  echo "$as_me:$LINENO: result: $LD" >&5
11709
 
echo "${ECHO_T}$LD" >&6
 
9509
  { echo "$as_me:$LINENO: result: $LD" >&5
 
9510
echo "${ECHO_T}$LD" >&6; }
11710
9511
else
11711
 
  echo "$as_me:$LINENO: result: no" >&5
11712
 
echo "${ECHO_T}no" >&6
 
9512
  { echo "$as_me:$LINENO: result: no" >&5
 
9513
echo "${ECHO_T}no" >&6; }
11713
9514
fi
11714
9515
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11715
9516
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11716
9517
   { (exit 1); exit 1; }; }
11717
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11718
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9518
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9519
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11719
9520
if test "${acl_cv_prog_gnu_ld+set}" = set; then
11720
9521
  echo $ECHO_N "(cached) $ECHO_C" >&6
11721
9522
else
11727
9528
  acl_cv_prog_gnu_ld=no ;;
11728
9529
esac
11729
9530
fi
11730
 
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11731
 
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
9531
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
9532
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
11732
9533
with_gnu_ld=$acl_cv_prog_gnu_ld
11733
9534
 
11734
9535
 
11735
9536
 
11736
 
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11737
 
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
9537
 
 
9538
                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
9539
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
11738
9540
if test "${acl_cv_rpath+set}" = set; then
11739
9541
  echo $ECHO_N "(cached) $ECHO_C" >&6
11740
9542
else
11746
9548
    acl_cv_rpath=done
11747
9549
 
11748
9550
fi
11749
 
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11750
 
echo "${ECHO_T}$acl_cv_rpath" >&6
 
9551
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
9552
echo "${ECHO_T}$acl_cv_rpath" >&6; }
11751
9553
  wl="$acl_cv_wl"
11752
 
  libext="$acl_cv_libext"
11753
 
  shlibext="$acl_cv_shlibext"
11754
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11755
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11756
 
  hardcode_direct="$acl_cv_hardcode_direct"
11757
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
11758
 
    # Check whether --enable-rpath or --disable-rpath was given.
 
9554
  acl_libext="$acl_cv_libext"
 
9555
  acl_shlibext="$acl_cv_shlibext"
 
9556
  acl_libname_spec="$acl_cv_libname_spec"
 
9557
  acl_library_names_spec="$acl_cv_library_names_spec"
 
9558
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
9559
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
9560
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
9561
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
9562
    # Check whether --enable-rpath was given.
11759
9563
if test "${enable_rpath+set}" = set; then
11760
 
  enableval="$enable_rpath"
11761
 
  :
 
9564
  enableval=$enable_rpath; :
11762
9565
else
11763
9566
  enable_rpath=yes
11764
 
fi;
 
9567
fi
 
9568
 
 
9569
 
 
9570
 
 
9571
                  acl_libdirstem=lib
 
9572
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
9573
  if test -n "$searchpath"; then
 
9574
    acl_save_IFS="${IFS=        }"; IFS=":"
 
9575
    for searchdir in $searchpath; do
 
9576
      if test -d "$searchdir"; then
 
9577
        case "$searchdir" in
 
9578
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
9579
          *) searchdir=`cd "$searchdir" && pwd`
 
9580
             case "$searchdir" in
 
9581
               */lib64 ) acl_libdirstem=lib64 ;;
 
9582
             esac ;;
 
9583
        esac
 
9584
      fi
 
9585
    done
 
9586
    IFS="$acl_save_IFS"
 
9587
  fi
 
9588
 
 
9589
 
11765
9590
 
11766
9591
 
11767
9592
 
11783
9608
  prefix="$acl_save_prefix"
11784
9609
 
11785
9610
 
11786
 
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
9611
# Check whether --with-libiconv-prefix was given.
11787
9612
if test "${with_libiconv_prefix+set}" = set; then
11788
 
  withval="$with_libiconv_prefix"
11789
 
 
 
9613
  withval=$with_libiconv_prefix;
11790
9614
    if test "X$withval" = "Xno"; then
11791
9615
      use_additional=no
11792
9616
    else
11805
9629
 
11806
9630
      else
11807
9631
        additional_includedir="$withval/include"
11808
 
        additional_libdir="$withval/lib"
 
9632
        additional_libdir="$withval/$acl_libdirstem"
11809
9633
      fi
11810
9634
    fi
11811
9635
 
11812
 
fi;
 
9636
fi
 
9637
 
11813
9638
      LIBICONV=
11814
9639
  LTLIBICONV=
11815
9640
  INCICONV=
 
9641
  LIBICONV_PREFIX=
11816
9642
  rpathdirs=
11817
9643
  ltrpathdirs=
11818
9644
  names_already_handled=
11846
9672
          found_la=
11847
9673
          found_so=
11848
9674
          found_a=
 
9675
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
9676
          if test -n "$acl_shlibext"; then
 
9677
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
9678
          else
 
9679
            shrext=
 
9680
          fi
11849
9681
          if test $use_additional = yes; then
11850
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11851
 
              found_dir="$additional_libdir"
11852
 
              found_so="$additional_libdir/lib$name.$shlibext"
11853
 
              if test -f "$additional_libdir/lib$name.la"; then
11854
 
                found_la="$additional_libdir/lib$name.la"
11855
 
              fi
11856
 
            else
11857
 
              if test -f "$additional_libdir/lib$name.$libext"; then
11858
 
                found_dir="$additional_libdir"
11859
 
                found_a="$additional_libdir/lib$name.$libext"
11860
 
                if test -f "$additional_libdir/lib$name.la"; then
11861
 
                  found_la="$additional_libdir/lib$name.la"
 
9682
            dir="$additional_libdir"
 
9683
                                    if test -n "$acl_shlibext"; then
 
9684
              if test -f "$dir/$libname$shrext"; then
 
9685
                found_dir="$dir"
 
9686
                found_so="$dir/$libname$shrext"
 
9687
              else
 
9688
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
9689
                  ver=`(cd "$dir" && \
 
9690
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
9691
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
9692
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
9693
                        | sed 1q ) 2>/dev/null`
 
9694
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
9695
                    found_dir="$dir"
 
9696
                    found_so="$dir/$libname$shrext.$ver"
 
9697
                  fi
 
9698
                else
 
9699
                  eval library_names=\"$acl_library_names_spec\"
 
9700
                  for f in $library_names; do
 
9701
                    if test -f "$dir/$f"; then
 
9702
                      found_dir="$dir"
 
9703
                      found_so="$dir/$f"
 
9704
                      break
 
9705
                    fi
 
9706
                  done
11862
9707
                fi
11863
9708
              fi
11864
9709
            fi
 
9710
                        if test "X$found_dir" = "X"; then
 
9711
              if test -f "$dir/$libname.$acl_libext"; then
 
9712
                found_dir="$dir"
 
9713
                found_a="$dir/$libname.$acl_libext"
 
9714
              fi
 
9715
            fi
 
9716
            if test "X$found_dir" != "X"; then
 
9717
              if test -f "$dir/$libname.la"; then
 
9718
                found_la="$dir/$libname.la"
 
9719
              fi
 
9720
            fi
11865
9721
          fi
11866
9722
          if test "X$found_dir" = "X"; then
11867
9723
            for x in $LDFLAGS $LTLIBICONV; do
11877
9733
              case "$x" in
11878
9734
                -L*)
11879
9735
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11880
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11881
 
                    found_dir="$dir"
11882
 
                    found_so="$dir/lib$name.$shlibext"
11883
 
                    if test -f "$dir/lib$name.la"; then
11884
 
                      found_la="$dir/lib$name.la"
11885
 
                    fi
11886
 
                  else
11887
 
                    if test -f "$dir/lib$name.$libext"; then
 
9736
                                    if test -n "$acl_shlibext"; then
 
9737
                    if test -f "$dir/$libname$shrext"; then
11888
9738
                      found_dir="$dir"
11889
 
                      found_a="$dir/lib$name.$libext"
11890
 
                      if test -f "$dir/lib$name.la"; then
11891
 
                        found_la="$dir/lib$name.la"
 
9739
                      found_so="$dir/$libname$shrext"
 
9740
                    else
 
9741
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
9742
                        ver=`(cd "$dir" && \
 
9743
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
9744
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
9745
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
9746
                              | sed 1q ) 2>/dev/null`
 
9747
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
9748
                          found_dir="$dir"
 
9749
                          found_so="$dir/$libname$shrext.$ver"
 
9750
                        fi
 
9751
                      else
 
9752
                        eval library_names=\"$acl_library_names_spec\"
 
9753
                        for f in $library_names; do
 
9754
                          if test -f "$dir/$f"; then
 
9755
                            found_dir="$dir"
 
9756
                            found_so="$dir/$f"
 
9757
                            break
 
9758
                          fi
 
9759
                        done
11892
9760
                      fi
11893
9761
                    fi
11894
9762
                  fi
 
9763
                                    if test "X$found_dir" = "X"; then
 
9764
                    if test -f "$dir/$libname.$acl_libext"; then
 
9765
                      found_dir="$dir"
 
9766
                      found_a="$dir/$libname.$acl_libext"
 
9767
                    fi
 
9768
                  fi
 
9769
                  if test "X$found_dir" != "X"; then
 
9770
                    if test -f "$dir/$libname.la"; then
 
9771
                      found_la="$dir/$libname.la"
 
9772
                    fi
 
9773
                  fi
11895
9774
                  ;;
11896
9775
              esac
11897
9776
              if test "X$found_dir" != "X"; then
11902
9781
          if test "X$found_dir" != "X"; then
11903
9782
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11904
9783
            if test "X$found_so" != "X"; then
11905
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
9784
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11906
9785
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11907
9786
              else
11908
9787
                                                                                haveit=
11915
9794
                if test -z "$haveit"; then
11916
9795
                  ltrpathdirs="$ltrpathdirs $found_dir"
11917
9796
                fi
11918
 
                                if test "$hardcode_direct" = yes; then
 
9797
                                if test "$acl_hardcode_direct" = yes; then
11919
9798
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11920
9799
                else
11921
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
9800
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11922
9801
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11923
9802
                                                            haveit=
11924
9803
                    for x in $rpathdirs; do
11950
9829
                    if test -z "$haveit"; then
11951
9830
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11952
9831
                    fi
11953
 
                    if test "$hardcode_minus_L" != no; then
 
9832
                    if test "$acl_hardcode_minus_L" != no; then
11954
9833
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11955
9834
                    else
11956
9835
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11967
9846
            fi
11968
9847
                        additional_includedir=
11969
9848
            case "$found_dir" in
11970
 
              */lib | */lib/)
11971
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
9849
              */$acl_libdirstem | */$acl_libdirstem/)
 
9850
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
9851
                LIBICONV_PREFIX="$basedir"
11972
9852
                additional_includedir="$basedir/include"
11973
9853
                ;;
11974
9854
            esac
11978
9858
                if test "X$additional_includedir" = "X/usr/local/include"; then
11979
9859
                  if test -n "$GCC"; then
11980
9860
                    case $host_os in
11981
 
                      linux*) haveit=yes;;
 
9861
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11982
9862
                    esac
11983
9863
                  fi
11984
9864
                fi
12017
9897
                case "$dep" in
12018
9898
                  -L*)
12019
9899
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12020
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
9900
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12021
9901
                      haveit=
12022
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
9902
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12023
9903
                        if test -n "$GCC"; then
12024
9904
                          case $host_os in
12025
 
                            linux*) haveit=yes;;
 
9905
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12026
9906
                          esac
12027
9907
                        fi
12028
9908
                      fi
12119
9999
    done
12120
10000
  done
12121
10001
  if test "X$rpathdirs" != "X"; then
12122
 
    if test -n "$hardcode_libdir_separator"; then
 
10002
    if test -n "$acl_hardcode_libdir_separator"; then
12123
10003
                        alldirs=
12124
10004
      for found_dir in $rpathdirs; do
12125
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
10005
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12126
10006
      done
12127
10007
            acl_save_libdir="$libdir"
12128
10008
      libdir="$alldirs"
12129
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
10009
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
12130
10010
      libdir="$acl_save_libdir"
12131
10011
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12132
10012
    else
12133
10013
            for found_dir in $rpathdirs; do
12134
10014
        acl_save_libdir="$libdir"
12135
10015
        libdir="$found_dir"
12136
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
10016
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
12137
10017
        libdir="$acl_save_libdir"
12138
10018
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12139
10019
      done
12151
10031
 
12152
10032
 
12153
10033
 
12154
 
 
12155
 
  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12156
 
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
12157
 
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12158
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12159
 
else
12160
 
  cat >conftest.$ac_ext <<_ACEOF
12161
 
/* confdefs.h.  */
12162
 
_ACEOF
12163
 
cat confdefs.h >>conftest.$ac_ext
12164
 
cat >>conftest.$ac_ext <<_ACEOF
12165
 
/* end confdefs.h.  */
12166
 
$ac_includes_default
12167
 
int
12168
 
main ()
12169
 
{
12170
 
if ((ptrdiff_t *) 0)
12171
 
  return 0;
12172
 
if (sizeof (ptrdiff_t))
12173
 
  return 0;
12174
 
  ;
12175
 
  return 0;
12176
 
}
12177
 
_ACEOF
12178
 
rm -f conftest.$ac_objext
12179
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180
 
  (eval $ac_compile) 2>conftest.er1
12181
 
  ac_status=$?
12182
 
  grep -v '^ *+' conftest.er1 >conftest.err
12183
 
  rm -f conftest.er1
12184
 
  cat conftest.err >&5
12185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186
 
  (exit $ac_status); } &&
12187
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12188
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189
 
  (eval $ac_try) 2>&5
12190
 
  ac_status=$?
12191
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192
 
  (exit $ac_status); }; } &&
12193
 
         { ac_try='test -s conftest.$ac_objext'
12194
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195
 
  (eval $ac_try) 2>&5
12196
 
  ac_status=$?
12197
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198
 
  (exit $ac_status); }; }; then
12199
 
  ac_cv_type_ptrdiff_t=yes
12200
 
else
12201
 
  echo "$as_me: failed program was:" >&5
12202
 
sed 's/^/| /' conftest.$ac_ext >&5
12203
 
 
12204
 
ac_cv_type_ptrdiff_t=no
12205
 
fi
12206
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12207
 
fi
12208
 
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12209
 
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
12210
 
if test $ac_cv_type_ptrdiff_t = yes; then
12211
 
  :
12212
 
else
12213
 
 
12214
 
cat >>confdefs.h <<\_ACEOF
12215
 
#define ptrdiff_t long
12216
 
_ACEOF
12217
 
 
12218
 
 
12219
 
fi
12220
 
 
12221
 
 
12222
 
 
12223
 
 
12224
 
 
12225
 
 
12226
 
 
12227
 
 
12228
 
 
12229
 
 
12230
 
 
12231
 
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12232
 
stdlib.h string.h unistd.h sys/param.h
12233
 
do
12234
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12235
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12236
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
12237
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12238
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12239
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12240
 
fi
12241
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12242
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12243
 
else
12244
 
  # Is the header compilable?
12245
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12246
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12247
 
cat >conftest.$ac_ext <<_ACEOF
12248
 
/* confdefs.h.  */
12249
 
_ACEOF
12250
 
cat confdefs.h >>conftest.$ac_ext
12251
 
cat >>conftest.$ac_ext <<_ACEOF
12252
 
/* end confdefs.h.  */
12253
 
$ac_includes_default
12254
 
#include <$ac_header>
12255
 
_ACEOF
12256
 
rm -f conftest.$ac_objext
12257
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12258
 
  (eval $ac_compile) 2>conftest.er1
12259
 
  ac_status=$?
12260
 
  grep -v '^ *+' conftest.er1 >conftest.err
12261
 
  rm -f conftest.er1
12262
 
  cat conftest.err >&5
12263
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264
 
  (exit $ac_status); } &&
12265
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12266
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267
 
  (eval $ac_try) 2>&5
12268
 
  ac_status=$?
12269
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270
 
  (exit $ac_status); }; } &&
12271
 
         { ac_try='test -s conftest.$ac_objext'
12272
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273
 
  (eval $ac_try) 2>&5
12274
 
  ac_status=$?
12275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276
 
  (exit $ac_status); }; }; then
12277
 
  ac_header_compiler=yes
12278
 
else
12279
 
  echo "$as_me: failed program was:" >&5
12280
 
sed 's/^/| /' conftest.$ac_ext >&5
12281
 
 
12282
 
ac_header_compiler=no
12283
 
fi
12284
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12285
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12286
 
echo "${ECHO_T}$ac_header_compiler" >&6
12287
 
 
12288
 
# Is the header present?
12289
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12290
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12291
 
cat >conftest.$ac_ext <<_ACEOF
12292
 
/* confdefs.h.  */
12293
 
_ACEOF
12294
 
cat confdefs.h >>conftest.$ac_ext
12295
 
cat >>conftest.$ac_ext <<_ACEOF
12296
 
/* end confdefs.h.  */
12297
 
#include <$ac_header>
12298
 
_ACEOF
12299
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12300
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12301
 
  ac_status=$?
12302
 
  grep -v '^ *+' conftest.er1 >conftest.err
12303
 
  rm -f conftest.er1
12304
 
  cat conftest.err >&5
12305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306
 
  (exit $ac_status); } >/dev/null; then
12307
 
  if test -s conftest.err; then
12308
 
    ac_cpp_err=$ac_c_preproc_warn_flag
12309
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12310
 
  else
12311
 
    ac_cpp_err=
12312
 
  fi
12313
 
else
12314
 
  ac_cpp_err=yes
12315
 
fi
12316
 
if test -z "$ac_cpp_err"; then
12317
 
  ac_header_preproc=yes
12318
 
else
12319
 
  echo "$as_me: failed program was:" >&5
12320
 
sed 's/^/| /' conftest.$ac_ext >&5
12321
 
 
12322
 
  ac_header_preproc=no
12323
 
fi
12324
 
rm -f conftest.err conftest.$ac_ext
12325
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12326
 
echo "${ECHO_T}$ac_header_preproc" >&6
12327
 
 
12328
 
# So?  What about this header?
12329
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12330
 
  yes:no: )
12331
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12332
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12333
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12334
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12335
 
    ac_header_preproc=yes
12336
 
    ;;
12337
 
  no:yes:* )
12338
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12339
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12340
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12341
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12342
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12343
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12344
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12345
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12346
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12347
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12348
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12349
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12350
 
    (
12351
 
      cat <<\_ASBOX
12352
 
## ------------------------------------ ##
12353
 
## Report this to gnupg-devel@gnupg.org ##
12354
 
## ------------------------------------ ##
12355
 
_ASBOX
12356
 
    ) |
12357
 
      sed "s/^/$as_me: WARNING:     /" >&2
12358
 
    ;;
12359
 
esac
12360
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
12361
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12362
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12363
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12364
 
else
12365
 
  eval "$as_ac_Header=\$ac_header_preproc"
12366
 
fi
12367
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12368
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12369
 
 
12370
 
fi
12371
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12372
 
  cat >>confdefs.h <<_ACEOF
12373
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12374
 
_ACEOF
12375
 
 
12376
 
fi
12377
 
 
12378
 
done
12379
 
 
12380
 
 
12381
 
 
12382
 
 
12383
 
 
12384
 
 
12385
 
 
12386
 
 
12387
 
 
12388
 
 
12389
 
 
12390
 
 
12391
 
 
12392
 
 
12393
 
 
12394
 
 
12395
 
 
12396
 
 
12397
 
 
12398
 
 
12399
 
 
12400
 
 
12401
 
 
12402
 
 
12403
 
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12404
 
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12405
 
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12406
 
__fsetlocking
12407
 
do
12408
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12409
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
12410
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12411
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
12412
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12413
 
else
12414
 
  cat >conftest.$ac_ext <<_ACEOF
12415
 
/* confdefs.h.  */
12416
 
_ACEOF
12417
 
cat confdefs.h >>conftest.$ac_ext
12418
 
cat >>conftest.$ac_ext <<_ACEOF
12419
 
/* end confdefs.h.  */
12420
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12421
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12422
 
#define $ac_func innocuous_$ac_func
12423
 
 
12424
 
/* System header to define __stub macros and hopefully few prototypes,
12425
 
    which can conflict with char $ac_func (); below.
12426
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427
 
    <limits.h> exists even on freestanding compilers.  */
12428
 
 
12429
 
#ifdef __STDC__
12430
 
# include <limits.h>
12431
 
#else
12432
 
# include <assert.h>
12433
 
#endif
12434
 
 
12435
 
#undef $ac_func
12436
 
 
12437
 
/* Override any gcc2 internal prototype to avoid an error.  */
12438
 
#ifdef __cplusplus
12439
 
extern "C"
12440
 
{
12441
 
#endif
12442
 
/* We use char because int might match the return type of a gcc2
12443
 
   builtin and then its argument prototype would still apply.  */
12444
 
char $ac_func ();
12445
 
/* The GNU C library defines this for functions which it implements
12446
 
    to always fail with ENOSYS.  Some functions are actually named
12447
 
    something starting with __ and the normal name is an alias.  */
12448
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12449
 
choke me
12450
 
#else
12451
 
char (*f) () = $ac_func;
12452
 
#endif
12453
 
#ifdef __cplusplus
12454
 
}
12455
 
#endif
12456
 
 
12457
 
int
12458
 
main ()
12459
 
{
12460
 
return f != $ac_func;
12461
 
  ;
12462
 
  return 0;
12463
 
}
12464
 
_ACEOF
12465
 
rm -f conftest.$ac_objext conftest$ac_exeext
12466
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467
 
  (eval $ac_link) 2>conftest.er1
12468
 
  ac_status=$?
12469
 
  grep -v '^ *+' conftest.er1 >conftest.err
12470
 
  rm -f conftest.er1
12471
 
  cat conftest.err >&5
12472
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473
 
  (exit $ac_status); } &&
12474
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12475
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476
 
  (eval $ac_try) 2>&5
12477
 
  ac_status=$?
12478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479
 
  (exit $ac_status); }; } &&
12480
 
         { ac_try='test -s conftest$ac_exeext'
12481
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482
 
  (eval $ac_try) 2>&5
12483
 
  ac_status=$?
12484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485
 
  (exit $ac_status); }; }; then
12486
 
  eval "$as_ac_var=yes"
12487
 
else
12488
 
  echo "$as_me: failed program was:" >&5
12489
 
sed 's/^/| /' conftest.$ac_ext >&5
12490
 
 
12491
 
eval "$as_ac_var=no"
12492
 
fi
12493
 
rm -f conftest.err conftest.$ac_objext \
12494
 
      conftest$ac_exeext conftest.$ac_ext
12495
 
fi
12496
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12497
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12498
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12499
 
  cat >>confdefs.h <<_ACEOF
12500
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12501
 
_ACEOF
12502
 
 
12503
 
fi
12504
 
done
12505
 
 
12506
 
 
12507
 
 
12508
 
  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12509
 
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
12510
 
if test "${ac_cv_have_decl__snprintf+set}" = set; then
12511
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12512
 
else
12513
 
  cat >conftest.$ac_ext <<_ACEOF
12514
 
/* confdefs.h.  */
12515
 
_ACEOF
12516
 
cat confdefs.h >>conftest.$ac_ext
12517
 
cat >>conftest.$ac_ext <<_ACEOF
12518
 
/* end confdefs.h.  */
12519
 
#include <stdio.h>
12520
 
int
12521
 
main ()
12522
 
{
12523
 
 
12524
 
#ifndef _snprintf
12525
 
  char *p = (char *) _snprintf;
12526
 
#endif
12527
 
 
12528
 
  ;
12529
 
  return 0;
12530
 
}
12531
 
_ACEOF
12532
 
rm -f conftest.$ac_objext
12533
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534
 
  (eval $ac_compile) 2>conftest.er1
12535
 
  ac_status=$?
12536
 
  grep -v '^ *+' conftest.er1 >conftest.err
12537
 
  rm -f conftest.er1
12538
 
  cat conftest.err >&5
12539
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540
 
  (exit $ac_status); } &&
12541
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12542
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543
 
  (eval $ac_try) 2>&5
12544
 
  ac_status=$?
12545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546
 
  (exit $ac_status); }; } &&
12547
 
         { ac_try='test -s conftest.$ac_objext'
12548
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549
 
  (eval $ac_try) 2>&5
12550
 
  ac_status=$?
12551
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552
 
  (exit $ac_status); }; }; then
12553
 
  ac_cv_have_decl__snprintf=yes
12554
 
else
12555
 
  echo "$as_me: failed program was:" >&5
12556
 
sed 's/^/| /' conftest.$ac_ext >&5
12557
 
 
12558
 
ac_cv_have_decl__snprintf=no
12559
 
fi
12560
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561
 
fi
12562
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12563
 
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
12564
 
  if test $ac_cv_have_decl__snprintf = yes; then
12565
 
    gt_value=1
12566
 
  else
12567
 
    gt_value=0
12568
 
  fi
12569
 
 
12570
 
cat >>confdefs.h <<_ACEOF
12571
 
#define HAVE_DECL__SNPRINTF $gt_value
12572
 
_ACEOF
12573
 
 
12574
 
 
12575
 
 
12576
 
  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12577
 
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
12578
 
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12579
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12580
 
else
12581
 
  cat >conftest.$ac_ext <<_ACEOF
12582
 
/* confdefs.h.  */
12583
 
_ACEOF
12584
 
cat confdefs.h >>conftest.$ac_ext
12585
 
cat >>conftest.$ac_ext <<_ACEOF
12586
 
/* end confdefs.h.  */
12587
 
#include <stdio.h>
12588
 
int
12589
 
main ()
12590
 
{
12591
 
 
12592
 
#ifndef _snwprintf
12593
 
  char *p = (char *) _snwprintf;
12594
 
#endif
12595
 
 
12596
 
  ;
12597
 
  return 0;
12598
 
}
12599
 
_ACEOF
12600
 
rm -f conftest.$ac_objext
12601
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602
 
  (eval $ac_compile) 2>conftest.er1
12603
 
  ac_status=$?
12604
 
  grep -v '^ *+' conftest.er1 >conftest.err
12605
 
  rm -f conftest.er1
12606
 
  cat conftest.err >&5
12607
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608
 
  (exit $ac_status); } &&
12609
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12610
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611
 
  (eval $ac_try) 2>&5
12612
 
  ac_status=$?
12613
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614
 
  (exit $ac_status); }; } &&
12615
 
         { ac_try='test -s conftest.$ac_objext'
12616
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617
 
  (eval $ac_try) 2>&5
12618
 
  ac_status=$?
12619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620
 
  (exit $ac_status); }; }; then
12621
 
  ac_cv_have_decl__snwprintf=yes
12622
 
else
12623
 
  echo "$as_me: failed program was:" >&5
12624
 
sed 's/^/| /' conftest.$ac_ext >&5
12625
 
 
12626
 
ac_cv_have_decl__snwprintf=no
12627
 
fi
12628
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12629
 
fi
12630
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12631
 
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
12632
 
  if test $ac_cv_have_decl__snwprintf = yes; then
12633
 
    gt_value=1
12634
 
  else
12635
 
    gt_value=0
12636
 
  fi
12637
 
 
12638
 
cat >>confdefs.h <<_ACEOF
12639
 
#define HAVE_DECL__SNWPRINTF $gt_value
12640
 
_ACEOF
12641
 
 
12642
 
 
12643
 
 
12644
 
 
12645
 
  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12646
 
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
12647
 
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12648
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12649
 
else
12650
 
  cat >conftest.$ac_ext <<_ACEOF
12651
 
/* confdefs.h.  */
12652
 
_ACEOF
12653
 
cat confdefs.h >>conftest.$ac_ext
12654
 
cat >>conftest.$ac_ext <<_ACEOF
12655
 
/* end confdefs.h.  */
12656
 
#include <stdio.h>
12657
 
int
12658
 
main ()
12659
 
{
12660
 
 
12661
 
#ifndef feof_unlocked
12662
 
  char *p = (char *) feof_unlocked;
12663
 
#endif
12664
 
 
12665
 
  ;
12666
 
  return 0;
12667
 
}
12668
 
_ACEOF
12669
 
rm -f conftest.$ac_objext
12670
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671
 
  (eval $ac_compile) 2>conftest.er1
12672
 
  ac_status=$?
12673
 
  grep -v '^ *+' conftest.er1 >conftest.err
12674
 
  rm -f conftest.er1
12675
 
  cat conftest.err >&5
12676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677
 
  (exit $ac_status); } &&
12678
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12679
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680
 
  (eval $ac_try) 2>&5
12681
 
  ac_status=$?
12682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683
 
  (exit $ac_status); }; } &&
12684
 
         { ac_try='test -s conftest.$ac_objext'
12685
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686
 
  (eval $ac_try) 2>&5
12687
 
  ac_status=$?
12688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689
 
  (exit $ac_status); }; }; then
12690
 
  ac_cv_have_decl_feof_unlocked=yes
12691
 
else
12692
 
  echo "$as_me: failed program was:" >&5
12693
 
sed 's/^/| /' conftest.$ac_ext >&5
12694
 
 
12695
 
ac_cv_have_decl_feof_unlocked=no
12696
 
fi
12697
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12698
 
fi
12699
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12700
 
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
12701
 
  if test $ac_cv_have_decl_feof_unlocked = yes; then
12702
 
    gt_value=1
12703
 
  else
12704
 
    gt_value=0
12705
 
  fi
12706
 
 
12707
 
cat >>confdefs.h <<_ACEOF
12708
 
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
12709
 
_ACEOF
12710
 
 
12711
 
 
12712
 
 
12713
 
  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12714
 
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
12715
 
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12716
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12717
 
else
12718
 
  cat >conftest.$ac_ext <<_ACEOF
12719
 
/* confdefs.h.  */
12720
 
_ACEOF
12721
 
cat confdefs.h >>conftest.$ac_ext
12722
 
cat >>conftest.$ac_ext <<_ACEOF
12723
 
/* end confdefs.h.  */
12724
 
#include <stdio.h>
12725
 
int
12726
 
main ()
12727
 
{
12728
 
 
12729
 
#ifndef fgets_unlocked
12730
 
  char *p = (char *) fgets_unlocked;
12731
 
#endif
12732
 
 
12733
 
  ;
12734
 
  return 0;
12735
 
}
12736
 
_ACEOF
12737
 
rm -f conftest.$ac_objext
12738
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739
 
  (eval $ac_compile) 2>conftest.er1
12740
 
  ac_status=$?
12741
 
  grep -v '^ *+' conftest.er1 >conftest.err
12742
 
  rm -f conftest.er1
12743
 
  cat conftest.err >&5
12744
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745
 
  (exit $ac_status); } &&
12746
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12747
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748
 
  (eval $ac_try) 2>&5
12749
 
  ac_status=$?
12750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751
 
  (exit $ac_status); }; } &&
12752
 
         { ac_try='test -s conftest.$ac_objext'
12753
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754
 
  (eval $ac_try) 2>&5
12755
 
  ac_status=$?
12756
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757
 
  (exit $ac_status); }; }; then
12758
 
  ac_cv_have_decl_fgets_unlocked=yes
12759
 
else
12760
 
  echo "$as_me: failed program was:" >&5
12761
 
sed 's/^/| /' conftest.$ac_ext >&5
12762
 
 
12763
 
ac_cv_have_decl_fgets_unlocked=no
12764
 
fi
12765
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12766
 
fi
12767
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12768
 
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
12769
 
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
12770
 
    gt_value=1
12771
 
  else
12772
 
    gt_value=0
12773
 
  fi
12774
 
 
12775
 
cat >>confdefs.h <<_ACEOF
12776
 
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
12777
 
_ACEOF
12778
 
 
12779
 
 
12780
 
 
12781
 
  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12782
 
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
12783
 
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12785
 
else
12786
 
  cat >conftest.$ac_ext <<_ACEOF
12787
 
/* confdefs.h.  */
12788
 
_ACEOF
12789
 
cat confdefs.h >>conftest.$ac_ext
12790
 
cat >>conftest.$ac_ext <<_ACEOF
12791
 
/* end confdefs.h.  */
12792
 
#include <stdio.h>
12793
 
int
12794
 
main ()
12795
 
{
12796
 
 
12797
 
#ifndef getc_unlocked
12798
 
  char *p = (char *) getc_unlocked;
12799
 
#endif
12800
 
 
12801
 
  ;
12802
 
  return 0;
12803
 
}
12804
 
_ACEOF
12805
 
rm -f conftest.$ac_objext
12806
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807
 
  (eval $ac_compile) 2>conftest.er1
12808
 
  ac_status=$?
12809
 
  grep -v '^ *+' conftest.er1 >conftest.err
12810
 
  rm -f conftest.er1
12811
 
  cat conftest.err >&5
12812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813
 
  (exit $ac_status); } &&
12814
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12815
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816
 
  (eval $ac_try) 2>&5
12817
 
  ac_status=$?
12818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819
 
  (exit $ac_status); }; } &&
12820
 
         { ac_try='test -s conftest.$ac_objext'
12821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822
 
  (eval $ac_try) 2>&5
12823
 
  ac_status=$?
12824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825
 
  (exit $ac_status); }; }; then
12826
 
  ac_cv_have_decl_getc_unlocked=yes
12827
 
else
12828
 
  echo "$as_me: failed program was:" >&5
12829
 
sed 's/^/| /' conftest.$ac_ext >&5
12830
 
 
12831
 
ac_cv_have_decl_getc_unlocked=no
12832
 
fi
12833
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12834
 
fi
12835
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12836
 
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
12837
 
  if test $ac_cv_have_decl_getc_unlocked = yes; then
12838
 
    gt_value=1
12839
 
  else
12840
 
    gt_value=0
12841
 
  fi
12842
 
 
12843
 
cat >>confdefs.h <<_ACEOF
12844
 
#define HAVE_DECL_GETC_UNLOCKED $gt_value
12845
 
_ACEOF
12846
 
 
12847
 
 
12848
 
 
12849
 
  case $gt_cv_func_printf_posix in
12850
 
    *yes) HAVE_POSIX_PRINTF=1 ;;
12851
 
    *) HAVE_POSIX_PRINTF=0 ;;
12852
 
  esac
12853
 
 
12854
 
  if test "$ac_cv_func_asprintf" = yes; then
12855
 
    HAVE_ASPRINTF=1
12856
 
  else
12857
 
    HAVE_ASPRINTF=0
12858
 
  fi
12859
 
 
12860
 
  if test "$ac_cv_func_snprintf" = yes; then
12861
 
    HAVE_SNPRINTF=1
12862
 
  else
12863
 
    HAVE_SNPRINTF=0
12864
 
  fi
12865
 
 
12866
 
  if test "$ac_cv_func_wprintf" = yes; then
12867
 
    HAVE_WPRINTF=1
12868
 
  else
12869
 
    HAVE_WPRINTF=0
12870
 
  fi
12871
 
 
12872
 
 
12873
 
 
12874
 
 
12875
 
 
12876
 
 
12877
 
 
12878
10034
          am_save_CPPFLAGS="$CPPFLAGS"
12879
10035
 
12880
10036
  for element in $INCICONV; do
12900
10056
  done
12901
10057
 
12902
10058
 
12903
 
  echo "$as_me:$LINENO: checking for iconv" >&5
12904
 
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
10059
  { echo "$as_me:$LINENO: checking for iconv" >&5
 
10060
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12905
10061
if test "${am_cv_func_iconv+set}" = set; then
12906
10062
  echo $ECHO_N "(cached) $ECHO_C" >&6
12907
10063
else
12927
10083
}
12928
10084
_ACEOF
12929
10085
rm -f conftest.$ac_objext conftest$ac_exeext
12930
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931
 
  (eval $ac_link) 2>conftest.er1
 
10086
if { (ac_try="$ac_link"
 
10087
case "(($ac_try" in
 
10088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10089
  *) ac_try_echo=$ac_try;;
 
10090
esac
 
10091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10092
  (eval "$ac_link") 2>conftest.er1
12932
10093
  ac_status=$?
12933
10094
  grep -v '^ *+' conftest.er1 >conftest.err
12934
10095
  rm -f conftest.er1
12935
10096
  cat conftest.err >&5
12936
10097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937
 
  (exit $ac_status); } &&
12938
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940
 
  (eval $ac_try) 2>&5
12941
 
  ac_status=$?
12942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943
 
  (exit $ac_status); }; } &&
12944
 
         { ac_try='test -s conftest$ac_exeext'
12945
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946
 
  (eval $ac_try) 2>&5
12947
 
  ac_status=$?
12948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949
 
  (exit $ac_status); }; }; then
 
10098
  (exit $ac_status); } && {
 
10099
         test -z "$ac_c_werror_flag" ||
 
10100
         test ! -s conftest.err
 
10101
       } && test -s conftest$ac_exeext &&
 
10102
       $as_test_x conftest$ac_exeext; then
12950
10103
  am_cv_func_iconv=yes
12951
10104
else
12952
10105
  echo "$as_me: failed program was:" >&5
12953
10106
sed 's/^/| /' conftest.$ac_ext >&5
12954
10107
 
 
10108
 
12955
10109
fi
12956
 
rm -f conftest.err conftest.$ac_objext \
 
10110
 
 
10111
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12957
10112
      conftest$ac_exeext conftest.$ac_ext
12958
10113
    if test "$am_cv_func_iconv" != yes; then
12959
10114
      am_save_LIBS="$LIBS"
12977
10132
}
12978
10133
_ACEOF
12979
10134
rm -f conftest.$ac_objext conftest$ac_exeext
12980
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12981
 
  (eval $ac_link) 2>conftest.er1
 
10135
if { (ac_try="$ac_link"
 
10136
case "(($ac_try" in
 
10137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10138
  *) ac_try_echo=$ac_try;;
 
10139
esac
 
10140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10141
  (eval "$ac_link") 2>conftest.er1
12982
10142
  ac_status=$?
12983
10143
  grep -v '^ *+' conftest.er1 >conftest.err
12984
10144
  rm -f conftest.er1
12985
10145
  cat conftest.err >&5
12986
10146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987
 
  (exit $ac_status); } &&
12988
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12989
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990
 
  (eval $ac_try) 2>&5
12991
 
  ac_status=$?
12992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993
 
  (exit $ac_status); }; } &&
12994
 
         { ac_try='test -s conftest$ac_exeext'
12995
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996
 
  (eval $ac_try) 2>&5
12997
 
  ac_status=$?
12998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999
 
  (exit $ac_status); }; }; then
 
10147
  (exit $ac_status); } && {
 
10148
         test -z "$ac_c_werror_flag" ||
 
10149
         test ! -s conftest.err
 
10150
       } && test -s conftest$ac_exeext &&
 
10151
       $as_test_x conftest$ac_exeext; then
13000
10152
  am_cv_lib_iconv=yes
13001
10153
        am_cv_func_iconv=yes
13002
10154
else
13003
10155
  echo "$as_me: failed program was:" >&5
13004
10156
sed 's/^/| /' conftest.$ac_ext >&5
13005
10157
 
 
10158
 
13006
10159
fi
13007
 
rm -f conftest.err conftest.$ac_objext \
 
10160
 
 
10161
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13008
10162
      conftest$ac_exeext conftest.$ac_ext
13009
10163
      LIBS="$am_save_LIBS"
13010
10164
    fi
13011
10165
 
13012
10166
fi
13013
 
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13014
 
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
10167
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
10168
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13015
10169
  if test "$am_cv_func_iconv" = yes; then
 
10170
    { echo "$as_me:$LINENO: checking for working iconv" >&5
 
10171
echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
 
10172
if test "${am_cv_func_iconv_works+set}" = set; then
 
10173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10174
else
 
10175
 
 
10176
            am_save_LIBS="$LIBS"
 
10177
      if test $am_cv_lib_iconv = yes; then
 
10178
        LIBS="$LIBS $LIBICONV"
 
10179
      fi
 
10180
      if test "$cross_compiling" = yes; then
 
10181
  case "$host_os" in
 
10182
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
10183
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
10184
         esac
 
10185
else
 
10186
  cat >conftest.$ac_ext <<_ACEOF
 
10187
/* confdefs.h.  */
 
10188
_ACEOF
 
10189
cat confdefs.h >>conftest.$ac_ext
 
10190
cat >>conftest.$ac_ext <<_ACEOF
 
10191
/* end confdefs.h.  */
 
10192
 
 
10193
#include <iconv.h>
 
10194
#include <string.h>
 
10195
int main ()
 
10196
{
 
10197
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
10198
     returns.  */
 
10199
  {
 
10200
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
10201
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
10202
      {
 
10203
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
10204
        char buf[10];
 
10205
        const char *inptr = input;
 
10206
        size_t inbytesleft = strlen (input);
 
10207
        char *outptr = buf;
 
10208
        size_t outbytesleft = sizeof (buf);
 
10209
        size_t res = iconv (cd_utf8_to_88591,
 
10210
                            (char **) &inptr, &inbytesleft,
 
10211
                            &outptr, &outbytesleft);
 
10212
        if (res == 0)
 
10213
          return 1;
 
10214
      }
 
10215
  }
 
10216
#if 0 /* This bug could be worked around by the caller.  */
 
10217
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
10218
  {
 
10219
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
10220
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
10221
      {
 
10222
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
10223
        char buf[50];
 
10224
        const char *inptr = input;
 
10225
        size_t inbytesleft = strlen (input);
 
10226
        char *outptr = buf;
 
10227
        size_t outbytesleft = sizeof (buf);
 
10228
        size_t res = iconv (cd_88591_to_utf8,
 
10229
                            (char **) &inptr, &inbytesleft,
 
10230
                            &outptr, &outbytesleft);
 
10231
        if ((int)res > 0)
 
10232
          return 1;
 
10233
      }
 
10234
  }
 
10235
#endif
 
10236
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
10237
     provided.  */
 
10238
  if (/* Try standardized names.  */
 
10239
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
10240
      /* Try IRIX, OSF/1 names.  */
 
10241
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
10242
      /* Try AIX names.  */
 
10243
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
10244
      /* Try HP-UX names.  */
 
10245
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
10246
    return 1;
 
10247
  return 0;
 
10248
}
 
10249
_ACEOF
 
10250
rm -f conftest$ac_exeext
 
10251
if { (ac_try="$ac_link"
 
10252
case "(($ac_try" in
 
10253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10254
  *) ac_try_echo=$ac_try;;
 
10255
esac
 
10256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10257
  (eval "$ac_link") 2>&5
 
10258
  ac_status=$?
 
10259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10260
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
10261
  { (case "(($ac_try" in
 
10262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10263
  *) ac_try_echo=$ac_try;;
 
10264
esac
 
10265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10266
  (eval "$ac_try") 2>&5
 
10267
  ac_status=$?
 
10268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10269
  (exit $ac_status); }; }; then
 
10270
  am_cv_func_iconv_works=yes
 
10271
else
 
10272
  echo "$as_me: program exited with status $ac_status" >&5
 
10273
echo "$as_me: failed program was:" >&5
 
10274
sed 's/^/| /' conftest.$ac_ext >&5
 
10275
 
 
10276
( exit $ac_status )
 
10277
am_cv_func_iconv_works=no
 
10278
fi
 
10279
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10280
fi
 
10281
 
 
10282
 
 
10283
      LIBS="$am_save_LIBS"
 
10284
 
 
10285
fi
 
10286
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
10287
echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
 
10288
    case "$am_cv_func_iconv_works" in
 
10289
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
10290
      *)   am_func_iconv=yes ;;
 
10291
    esac
 
10292
  else
 
10293
    am_func_iconv=no am_cv_lib_iconv=no
 
10294
  fi
 
10295
  if test "$am_func_iconv" = yes; then
13016
10296
 
13017
10297
cat >>confdefs.h <<\_ACEOF
13018
10298
#define HAVE_ICONV 1
13020
10300
 
13021
10301
  fi
13022
10302
  if test "$am_cv_lib_iconv" = yes; then
13023
 
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13024
 
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
13025
 
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
13026
 
echo "${ECHO_T}$LIBICONV" >&6
 
10303
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
10304
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
 
10305
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
10306
echo "${ECHO_T}$LIBICONV" >&6; }
13027
10307
  else
13028
10308
            CPPFLAGS="$am_save_CPPFLAGS"
13029
10309
    LIBICONV=
13033
10313
 
13034
10314
 
13035
10315
  if test "$am_cv_func_iconv" = yes; then
13036
 
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
13037
 
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
 
10316
    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
10317
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13038
10318
    if test "${am_cv_proto_iconv+set}" = set; then
13039
10319
  echo $ECHO_N "(cached) $ECHO_C" >&6
13040
10320
else
13067
10347
}
13068
10348
_ACEOF
13069
10349
rm -f conftest.$ac_objext
13070
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13071
 
  (eval $ac_compile) 2>conftest.er1
 
10350
if { (ac_try="$ac_compile"
 
10351
case "(($ac_try" in
 
10352
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10353
  *) ac_try_echo=$ac_try;;
 
10354
esac
 
10355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10356
  (eval "$ac_compile") 2>conftest.er1
13072
10357
  ac_status=$?
13073
10358
  grep -v '^ *+' conftest.er1 >conftest.err
13074
10359
  rm -f conftest.er1
13075
10360
  cat conftest.err >&5
13076
10361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077
 
  (exit $ac_status); } &&
13078
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13079
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080
 
  (eval $ac_try) 2>&5
13081
 
  ac_status=$?
13082
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083
 
  (exit $ac_status); }; } &&
13084
 
         { ac_try='test -s conftest.$ac_objext'
13085
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086
 
  (eval $ac_try) 2>&5
13087
 
  ac_status=$?
13088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089
 
  (exit $ac_status); }; }; then
 
10362
  (exit $ac_status); } && {
 
10363
         test -z "$ac_c_werror_flag" ||
 
10364
         test ! -s conftest.err
 
10365
       } && test -s conftest.$ac_objext; then
13090
10366
  am_cv_proto_iconv_arg1=""
13091
10367
else
13092
10368
  echo "$as_me: failed program was:" >&5
13093
10369
sed 's/^/| /' conftest.$ac_ext >&5
13094
10370
 
13095
 
am_cv_proto_iconv_arg1="const"
 
10371
        am_cv_proto_iconv_arg1="const"
13096
10372
fi
13097
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10373
 
 
10374
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098
10375
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13099
10376
fi
13100
10377
 
13101
10378
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13102
 
    echo "$as_me:$LINENO: result: ${ac_t:-
 
10379
    { echo "$as_me:$LINENO: result: ${ac_t:-
13103
10380
         }$am_cv_proto_iconv" >&5
13104
10381
echo "${ECHO_T}${ac_t:-
13105
 
         }$am_cv_proto_iconv" >&6
 
10382
         }$am_cv_proto_iconv" >&6; }
13106
10383
 
13107
10384
cat >>confdefs.h <<_ACEOF
13108
10385
#define ICONV_CONST $am_cv_proto_iconv_arg1
13111
10388
  fi
13112
10389
 
13113
10390
 
13114
 
  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13115
 
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13116
 
if test "${am_cv_langinfo_codeset+set}" = set; then
13117
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13118
 
else
13119
 
  cat >conftest.$ac_ext <<_ACEOF
13120
 
/* confdefs.h.  */
13121
 
_ACEOF
13122
 
cat confdefs.h >>conftest.$ac_ext
13123
 
cat >>conftest.$ac_ext <<_ACEOF
13124
 
/* end confdefs.h.  */
13125
 
#include <langinfo.h>
13126
 
int
13127
 
main ()
13128
 
{
13129
 
char* cs = nl_langinfo(CODESET);
13130
 
  ;
13131
 
  return 0;
13132
 
}
13133
 
_ACEOF
13134
 
rm -f conftest.$ac_objext conftest$ac_exeext
13135
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13136
 
  (eval $ac_link) 2>conftest.er1
13137
 
  ac_status=$?
13138
 
  grep -v '^ *+' conftest.er1 >conftest.err
13139
 
  rm -f conftest.er1
13140
 
  cat conftest.err >&5
13141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142
 
  (exit $ac_status); } &&
13143
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13144
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145
 
  (eval $ac_try) 2>&5
13146
 
  ac_status=$?
13147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148
 
  (exit $ac_status); }; } &&
13149
 
         { ac_try='test -s conftest$ac_exeext'
13150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151
 
  (eval $ac_try) 2>&5
13152
 
  ac_status=$?
13153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154
 
  (exit $ac_status); }; }; then
13155
 
  am_cv_langinfo_codeset=yes
13156
 
else
13157
 
  echo "$as_me: failed program was:" >&5
13158
 
sed 's/^/| /' conftest.$ac_ext >&5
13159
 
 
13160
 
am_cv_langinfo_codeset=no
13161
 
fi
13162
 
rm -f conftest.err conftest.$ac_objext \
13163
 
      conftest$ac_exeext conftest.$ac_ext
13164
 
 
13165
 
fi
13166
 
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13167
 
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13168
 
  if test $am_cv_langinfo_codeset = yes; then
13169
 
 
13170
 
cat >>confdefs.h <<\_ACEOF
13171
 
#define HAVE_LANGINFO_CODESET 1
13172
 
_ACEOF
13173
 
 
13174
 
  fi
13175
 
 
13176
 
  if test $ac_cv_header_locale_h = yes; then
13177
 
 
13178
 
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13179
 
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13180
 
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13182
 
else
13183
 
  cat >conftest.$ac_ext <<_ACEOF
13184
 
/* confdefs.h.  */
13185
 
_ACEOF
13186
 
cat confdefs.h >>conftest.$ac_ext
13187
 
cat >>conftest.$ac_ext <<_ACEOF
13188
 
/* end confdefs.h.  */
13189
 
#include <locale.h>
13190
 
int
13191
 
main ()
13192
 
{
13193
 
return LC_MESSAGES
13194
 
  ;
13195
 
  return 0;
13196
 
}
13197
 
_ACEOF
13198
 
rm -f conftest.$ac_objext conftest$ac_exeext
13199
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200
 
  (eval $ac_link) 2>conftest.er1
13201
 
  ac_status=$?
13202
 
  grep -v '^ *+' conftest.er1 >conftest.err
13203
 
  rm -f conftest.er1
13204
 
  cat conftest.err >&5
13205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206
 
  (exit $ac_status); } &&
13207
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13208
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209
 
  (eval $ac_try) 2>&5
13210
 
  ac_status=$?
13211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212
 
  (exit $ac_status); }; } &&
13213
 
         { ac_try='test -s conftest$ac_exeext'
13214
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215
 
  (eval $ac_try) 2>&5
13216
 
  ac_status=$?
13217
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218
 
  (exit $ac_status); }; }; then
13219
 
  am_cv_val_LC_MESSAGES=yes
13220
 
else
13221
 
  echo "$as_me: failed program was:" >&5
13222
 
sed 's/^/| /' conftest.$ac_ext >&5
13223
 
 
13224
 
am_cv_val_LC_MESSAGES=no
13225
 
fi
13226
 
rm -f conftest.err conftest.$ac_objext \
13227
 
      conftest$ac_exeext conftest.$ac_ext
13228
 
fi
13229
 
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13230
 
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13231
 
  if test $am_cv_val_LC_MESSAGES = yes; then
13232
 
 
13233
 
cat >>confdefs.h <<\_ACEOF
13234
 
#define HAVE_LC_MESSAGES 1
13235
 
_ACEOF
13236
 
 
13237
 
  fi
13238
 
 
13239
 
  fi
13240
 
 
13241
 
                      for ac_prog in bison
13242
 
do
13243
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13244
 
set dummy $ac_prog; ac_word=$2
13245
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
13246
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13247
 
if test "${ac_cv_prog_INTLBISON+set}" = set; then
13248
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13249
 
else
13250
 
  if test -n "$INTLBISON"; then
13251
 
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13252
 
else
13253
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10391
 
 
10392
#
 
10393
# Check for gettext
 
10394
#
 
10395
{ echo "$as_me:$LINENO: checking for gettext" >&5
 
10396
echo "$as_me: checking for gettext" >&6;}
 
10397
 
 
10398
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
10399
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
 
10400
    # Check whether --enable-nls was given.
 
10401
if test "${enable_nls+set}" = set; then
 
10402
  enableval=$enable_nls; USE_NLS=$enableval
 
10403
else
 
10404
  USE_NLS=yes
 
10405
fi
 
10406
 
 
10407
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
10408
echo "${ECHO_T}$USE_NLS" >&6; }
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
      GETTEXT_MACRO_VERSION=0.17
 
10414
 
 
10415
 
 
10416
 
 
10417
 
 
10418
# Prepare PATH_SEPARATOR.
 
10419
# The user is always right.
 
10420
if test "${PATH_SEPARATOR+set}" != set; then
 
10421
  echo "#! /bin/sh" >conf$$.sh
 
10422
  echo  "exit 0"   >>conf$$.sh
 
10423
  chmod +x conf$$.sh
 
10424
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
10425
    PATH_SEPARATOR=';'
 
10426
  else
 
10427
    PATH_SEPARATOR=:
 
10428
  fi
 
10429
  rm -f conf$$.sh
 
10430
fi
 
10431
 
 
10432
# Find out how to test for executable files. Don't use a zero-byte file,
 
10433
# as systems may use methods other than mode bits to determine executability.
 
10434
cat >conf$$.file <<_ASEOF
 
10435
#! /bin/sh
 
10436
exit 0
 
10437
_ASEOF
 
10438
chmod +x conf$$.file
 
10439
if test -x conf$$.file >/dev/null 2>&1; then
 
10440
  ac_executable_p="test -x"
 
10441
else
 
10442
  ac_executable_p="test -f"
 
10443
fi
 
10444
rm -f conf$$.file
 
10445
 
 
10446
# Extract the first word of "msgfmt", so it can be a program name with args.
 
10447
set dummy msgfmt; ac_word=$2
 
10448
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10449
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10450
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
10451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10452
else
 
10453
  case "$MSGFMT" in
 
10454
  [\\/]* | ?:[\\/]*)
 
10455
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
10456
    ;;
 
10457
  *)
 
10458
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
10459
    for ac_dir in $PATH; do
 
10460
      IFS="$ac_save_IFS"
 
10461
      test -z "$ac_dir" && ac_dir=.
 
10462
      for ac_exec_ext in '' $ac_executable_extensions; do
 
10463
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
10464
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
10465
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
10466
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
10467
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
10468
            break 2
 
10469
          fi
 
10470
        fi
 
10471
      done
 
10472
    done
 
10473
    IFS="$ac_save_IFS"
 
10474
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
10475
    ;;
 
10476
esac
 
10477
fi
 
10478
MSGFMT="$ac_cv_path_MSGFMT"
 
10479
if test "$MSGFMT" != ":"; then
 
10480
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
10481
echo "${ECHO_T}$MSGFMT" >&6; }
 
10482
else
 
10483
  { echo "$as_me:$LINENO: result: no" >&5
 
10484
echo "${ECHO_T}no" >&6; }
 
10485
fi
 
10486
 
 
10487
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
10488
set dummy gmsgfmt; ac_word=$2
 
10489
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10490
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10491
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
10492
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10493
else
 
10494
  case $GMSGFMT in
 
10495
  [\\/]* | ?:[\\/]*)
 
10496
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
10497
  ;;
 
10498
  *)
 
10499
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254
10500
for as_dir in $PATH
13255
10501
do
13256
10502
  IFS=$as_save_IFS
13257
10503
  test -z "$as_dir" && as_dir=.
13258
10504
  for ac_exec_ext in '' $ac_executable_extensions; do
13259
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13260
 
    ac_cv_prog_INTLBISON="$ac_prog"
 
10505
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10506
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13261
10507
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13262
10508
    break 2
13263
10509
  fi
13264
10510
done
13265
10511
done
13266
 
 
13267
 
fi
13268
 
fi
13269
 
INTLBISON=$ac_cv_prog_INTLBISON
13270
 
if test -n "$INTLBISON"; then
13271
 
  echo "$as_me:$LINENO: result: $INTLBISON" >&5
13272
 
echo "${ECHO_T}$INTLBISON" >&6
13273
 
else
13274
 
  echo "$as_me:$LINENO: result: no" >&5
13275
 
echo "${ECHO_T}no" >&6
13276
 
fi
13277
 
 
13278
 
  test -n "$INTLBISON" && break
13279
 
done
13280
 
 
13281
 
  if test -z "$INTLBISON"; then
13282
 
    ac_verc_fail=yes
13283
 
  else
13284
 
        echo "$as_me:$LINENO: checking version of bison" >&5
13285
 
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13286
 
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13287
 
    case $ac_prog_version in
13288
 
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13289
 
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13290
 
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13291
 
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13292
 
    esac
13293
 
    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13294
 
echo "${ECHO_T}$ac_prog_version" >&6
13295
 
  fi
13296
 
  if test $ac_verc_fail = yes; then
13297
 
    INTLBISON=:
13298
 
  fi
13299
 
 
13300
 
 
13301
 
 
13302
 
 
13303
 
 
13304
 
 
13305
 
 
13306
 
 
13307
 
 
13308
 
 
13309
 
 
13310
 
 
13311
 
 
13312
 
 
13313
 
 
13314
 
 
13315
 
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13316
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13317
 
    # Check whether --enable-nls or --disable-nls was given.
13318
 
if test "${enable_nls+set}" = set; then
13319
 
  enableval="$enable_nls"
13320
 
  USE_NLS=$enableval
13321
 
else
13322
 
  USE_NLS=yes
13323
 
fi;
13324
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
13325
 
echo "${ECHO_T}$USE_NLS" >&6
13326
 
 
13327
 
 
13328
 
 
13329
 
 
13330
 
    BUILD_INCLUDED_LIBINTL=no
13331
 
    USE_INCLUDED_LIBINTL=no
 
10512
IFS=$as_save_IFS
 
10513
 
 
10514
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
10515
  ;;
 
10516
esac
 
10517
fi
 
10518
GMSGFMT=$ac_cv_path_GMSGFMT
 
10519
if test -n "$GMSGFMT"; then
 
10520
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
10521
echo "${ECHO_T}$GMSGFMT" >&6; }
 
10522
else
 
10523
  { echo "$as_me:$LINENO: result: no" >&5
 
10524
echo "${ECHO_T}no" >&6; }
 
10525
fi
 
10526
 
 
10527
 
 
10528
 
 
10529
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
10530
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
10531
    *) MSGFMT_015=$MSGFMT ;;
 
10532
  esac
 
10533
 
 
10534
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
10535
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
10536
    *) GMSGFMT_015=$GMSGFMT ;;
 
10537
  esac
 
10538
 
 
10539
 
 
10540
 
 
10541
# Prepare PATH_SEPARATOR.
 
10542
# The user is always right.
 
10543
if test "${PATH_SEPARATOR+set}" != set; then
 
10544
  echo "#! /bin/sh" >conf$$.sh
 
10545
  echo  "exit 0"   >>conf$$.sh
 
10546
  chmod +x conf$$.sh
 
10547
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
10548
    PATH_SEPARATOR=';'
 
10549
  else
 
10550
    PATH_SEPARATOR=:
 
10551
  fi
 
10552
  rm -f conf$$.sh
 
10553
fi
 
10554
 
 
10555
# Find out how to test for executable files. Don't use a zero-byte file,
 
10556
# as systems may use methods other than mode bits to determine executability.
 
10557
cat >conf$$.file <<_ASEOF
 
10558
#! /bin/sh
 
10559
exit 0
 
10560
_ASEOF
 
10561
chmod +x conf$$.file
 
10562
if test -x conf$$.file >/dev/null 2>&1; then
 
10563
  ac_executable_p="test -x"
 
10564
else
 
10565
  ac_executable_p="test -f"
 
10566
fi
 
10567
rm -f conf$$.file
 
10568
 
 
10569
# Extract the first word of "xgettext", so it can be a program name with args.
 
10570
set dummy xgettext; ac_word=$2
 
10571
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10572
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10573
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
10574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10575
else
 
10576
  case "$XGETTEXT" in
 
10577
  [\\/]* | ?:[\\/]*)
 
10578
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
10579
    ;;
 
10580
  *)
 
10581
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
10582
    for ac_dir in $PATH; do
 
10583
      IFS="$ac_save_IFS"
 
10584
      test -z "$ac_dir" && ac_dir=.
 
10585
      for ac_exec_ext in '' $ac_executable_extensions; do
 
10586
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
10587
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
10588
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
10589
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
10590
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
10591
            break 2
 
10592
          fi
 
10593
        fi
 
10594
      done
 
10595
    done
 
10596
    IFS="$ac_save_IFS"
 
10597
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
10598
    ;;
 
10599
esac
 
10600
fi
 
10601
XGETTEXT="$ac_cv_path_XGETTEXT"
 
10602
if test "$XGETTEXT" != ":"; then
 
10603
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
10604
echo "${ECHO_T}$XGETTEXT" >&6; }
 
10605
else
 
10606
  { echo "$as_me:$LINENO: result: no" >&5
 
10607
echo "${ECHO_T}no" >&6; }
 
10608
fi
 
10609
 
 
10610
    rm -f messages.po
 
10611
 
 
10612
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
10613
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
10614
    *) XGETTEXT_015=$XGETTEXT ;;
 
10615
  esac
 
10616
 
 
10617
 
 
10618
 
 
10619
# Prepare PATH_SEPARATOR.
 
10620
# The user is always right.
 
10621
if test "${PATH_SEPARATOR+set}" != set; then
 
10622
  echo "#! /bin/sh" >conf$$.sh
 
10623
  echo  "exit 0"   >>conf$$.sh
 
10624
  chmod +x conf$$.sh
 
10625
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
10626
    PATH_SEPARATOR=';'
 
10627
  else
 
10628
    PATH_SEPARATOR=:
 
10629
  fi
 
10630
  rm -f conf$$.sh
 
10631
fi
 
10632
 
 
10633
# Find out how to test for executable files. Don't use a zero-byte file,
 
10634
# as systems may use methods other than mode bits to determine executability.
 
10635
cat >conf$$.file <<_ASEOF
 
10636
#! /bin/sh
 
10637
exit 0
 
10638
_ASEOF
 
10639
chmod +x conf$$.file
 
10640
if test -x conf$$.file >/dev/null 2>&1; then
 
10641
  ac_executable_p="test -x"
 
10642
else
 
10643
  ac_executable_p="test -f"
 
10644
fi
 
10645
rm -f conf$$.file
 
10646
 
 
10647
# Extract the first word of "msgmerge", so it can be a program name with args.
 
10648
set dummy msgmerge; ac_word=$2
 
10649
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10650
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
10651
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
10652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10653
else
 
10654
  case "$MSGMERGE" in
 
10655
  [\\/]* | ?:[\\/]*)
 
10656
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
10657
    ;;
 
10658
  *)
 
10659
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
10660
    for ac_dir in $PATH; do
 
10661
      IFS="$ac_save_IFS"
 
10662
      test -z "$ac_dir" && ac_dir=.
 
10663
      for ac_exec_ext in '' $ac_executable_extensions; do
 
10664
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
10665
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
10666
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
10667
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
10668
            break 2
 
10669
          fi
 
10670
        fi
 
10671
      done
 
10672
    done
 
10673
    IFS="$ac_save_IFS"
 
10674
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
10675
    ;;
 
10676
esac
 
10677
fi
 
10678
MSGMERGE="$ac_cv_path_MSGMERGE"
 
10679
if test "$MSGMERGE" != ":"; then
 
10680
  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
10681
echo "${ECHO_T}$MSGMERGE" >&6; }
 
10682
else
 
10683
  { echo "$as_me:$LINENO: result: no" >&5
 
10684
echo "${ECHO_T}no" >&6; }
 
10685
fi
 
10686
 
 
10687
 
 
10688
        test -n "$localedir" || localedir='${datadir}/locale'
 
10689
 
 
10690
 
 
10691
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
10692
 
 
10693
 
 
10694
  ac_config_commands="$ac_config_commands po-directories"
 
10695
 
 
10696
 
 
10697
 
 
10698
if test "$try_gettext" = yes; then
 
10699
 
 
10700
 
 
10701
 
 
10702
 
 
10703
 
 
10704
 
 
10705
 
 
10706
 
 
10707
 
 
10708
 
 
10709
 
 
10710
 
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
 
 
10716
 
 
10717
 
 
10718
 
 
10719
 
 
10720
 
 
10721
 
 
10722
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
10723
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
 
10724
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
10725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10726
else
 
10727
  gt_save_LIBS="$LIBS"
 
10728
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
10729
     cat >conftest.$ac_ext <<_ACEOF
 
10730
/* confdefs.h.  */
 
10731
_ACEOF
 
10732
cat confdefs.h >>conftest.$ac_ext
 
10733
cat >>conftest.$ac_ext <<_ACEOF
 
10734
/* end confdefs.h.  */
 
10735
#include <CoreFoundation/CFPreferences.h>
 
10736
int
 
10737
main ()
 
10738
{
 
10739
CFPreferencesCopyAppValue(NULL, NULL)
 
10740
  ;
 
10741
  return 0;
 
10742
}
 
10743
_ACEOF
 
10744
rm -f conftest.$ac_objext conftest$ac_exeext
 
10745
if { (ac_try="$ac_link"
 
10746
case "(($ac_try" in
 
10747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10748
  *) ac_try_echo=$ac_try;;
 
10749
esac
 
10750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10751
  (eval "$ac_link") 2>conftest.er1
 
10752
  ac_status=$?
 
10753
  grep -v '^ *+' conftest.er1 >conftest.err
 
10754
  rm -f conftest.er1
 
10755
  cat conftest.err >&5
 
10756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10757
  (exit $ac_status); } && {
 
10758
         test -z "$ac_c_werror_flag" ||
 
10759
         test ! -s conftest.err
 
10760
       } && test -s conftest$ac_exeext &&
 
10761
       $as_test_x conftest$ac_exeext; then
 
10762
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
10763
else
 
10764
  echo "$as_me: failed program was:" >&5
 
10765
sed 's/^/| /' conftest.$ac_ext >&5
 
10766
 
 
10767
        gt_cv_func_CFPreferencesCopyAppValue=no
 
10768
fi
 
10769
 
 
10770
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10771
      conftest$ac_exeext conftest.$ac_ext
 
10772
     LIBS="$gt_save_LIBS"
 
10773
fi
 
10774
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
10775
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
10776
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
10777
 
 
10778
cat >>confdefs.h <<\_ACEOF
 
10779
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
10780
_ACEOF
 
10781
 
 
10782
  fi
 
10783
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
10784
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
 
10785
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
10786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10787
else
 
10788
  gt_save_LIBS="$LIBS"
 
10789
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
10790
     cat >conftest.$ac_ext <<_ACEOF
 
10791
/* confdefs.h.  */
 
10792
_ACEOF
 
10793
cat confdefs.h >>conftest.$ac_ext
 
10794
cat >>conftest.$ac_ext <<_ACEOF
 
10795
/* end confdefs.h.  */
 
10796
#include <CoreFoundation/CFLocale.h>
 
10797
int
 
10798
main ()
 
10799
{
 
10800
CFLocaleCopyCurrent();
 
10801
  ;
 
10802
  return 0;
 
10803
}
 
10804
_ACEOF
 
10805
rm -f conftest.$ac_objext conftest$ac_exeext
 
10806
if { (ac_try="$ac_link"
 
10807
case "(($ac_try" in
 
10808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10809
  *) ac_try_echo=$ac_try;;
 
10810
esac
 
10811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10812
  (eval "$ac_link") 2>conftest.er1
 
10813
  ac_status=$?
 
10814
  grep -v '^ *+' conftest.er1 >conftest.err
 
10815
  rm -f conftest.er1
 
10816
  cat conftest.err >&5
 
10817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10818
  (exit $ac_status); } && {
 
10819
         test -z "$ac_c_werror_flag" ||
 
10820
         test ! -s conftest.err
 
10821
       } && test -s conftest$ac_exeext &&
 
10822
       $as_test_x conftest$ac_exeext; then
 
10823
  gt_cv_func_CFLocaleCopyCurrent=yes
 
10824
else
 
10825
  echo "$as_me: failed program was:" >&5
 
10826
sed 's/^/| /' conftest.$ac_ext >&5
 
10827
 
 
10828
        gt_cv_func_CFLocaleCopyCurrent=no
 
10829
fi
 
10830
 
 
10831
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10832
      conftest$ac_exeext conftest.$ac_ext
 
10833
     LIBS="$gt_save_LIBS"
 
10834
fi
 
10835
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
10836
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
10837
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
10838
 
 
10839
cat >>confdefs.h <<\_ACEOF
 
10840
#define HAVE_CFLOCALECOPYCURRENT 1
 
10841
_ACEOF
 
10842
 
 
10843
  fi
 
10844
  INTL_MACOSX_LIBS=
 
10845
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
10846
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
10847
  fi
 
10848
 
 
10849
 
 
10850
 
 
10851
 
 
10852
 
13332
10853
 
13333
10854
  LIBINTL=
13334
10855
  LTLIBINTL=
13335
10856
  POSUB=
13336
10857
 
 
10858
    case " $gt_needs " in
 
10859
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
10860
    *" need-ngettext "*) gt_api_version=2 ;;
 
10861
    *) gt_api_version=1 ;;
 
10862
  esac
 
10863
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
10864
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
10865
 
13337
10866
    if test "$USE_NLS" = "yes"; then
13338
10867
    gt_use_preinstalled_gnugettext=no
13339
10868
 
13340
 
      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13341
 
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13342
 
 
13343
 
# Check whether --with-included-gettext or --without-included-gettext was given.
13344
 
if test "${with_included_gettext+set}" = set; then
13345
 
  withval="$with_included_gettext"
13346
 
  nls_cv_force_use_gnu_gettext=$withval
13347
 
else
13348
 
  nls_cv_force_use_gnu_gettext=no
13349
 
fi;
13350
 
      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13351
 
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13352
 
 
13353
 
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13354
 
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13355
 
 
13356
 
 
13357
 
 
13358
 
 
13359
 
 
13360
 
 
13361
 
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13362
 
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13363
 
if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
 
10869
 
 
10870
        if test $gt_api_version -ge 3; then
 
10871
          gt_revision_test_code='
 
10872
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
10873
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
10874
#endif
 
10875
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
10876
'
 
10877
        else
 
10878
          gt_revision_test_code=
 
10879
        fi
 
10880
        if test $gt_api_version -ge 2; then
 
10881
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
10882
        else
 
10883
          gt_expression_test_code=
 
10884
        fi
 
10885
 
 
10886
        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
10887
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
 
10888
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
13364
10889
  echo $ECHO_N "(cached) $ECHO_C" >&6
13365
10890
else
13366
10891
  cat >conftest.$ac_ext <<_ACEOF
13370
10895
cat >>conftest.$ac_ext <<_ACEOF
13371
10896
/* end confdefs.h.  */
13372
10897
#include <libintl.h>
 
10898
$gt_revision_test_code
13373
10899
extern int _nl_msg_cat_cntr;
13374
10900
extern int *_nl_domain_bindings;
13375
10901
int
13376
10902
main ()
13377
10903
{
13378
10904
bindtextdomain ("", "");
13379
 
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13380
 
  ;
13381
 
  return 0;
13382
 
}
13383
 
_ACEOF
13384
 
rm -f conftest.$ac_objext conftest$ac_exeext
13385
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386
 
  (eval $ac_link) 2>conftest.er1
13387
 
  ac_status=$?
13388
 
  grep -v '^ *+' conftest.er1 >conftest.err
13389
 
  rm -f conftest.er1
13390
 
  cat conftest.err >&5
13391
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392
 
  (exit $ac_status); } &&
13393
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13394
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395
 
  (eval $ac_try) 2>&5
13396
 
  ac_status=$?
13397
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398
 
  (exit $ac_status); }; } &&
13399
 
         { ac_try='test -s conftest$ac_exeext'
13400
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401
 
  (eval $ac_try) 2>&5
 
10905
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
 
10906
  ;
 
10907
  return 0;
 
10908
}
 
10909
_ACEOF
 
10910
rm -f conftest.$ac_objext conftest$ac_exeext
 
10911
if { (ac_try="$ac_link"
 
10912
case "(($ac_try" in
 
10913
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10914
  *) ac_try_echo=$ac_try;;
 
10915
esac
 
10916
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10917
  (eval "$ac_link") 2>conftest.er1
 
10918
  ac_status=$?
 
10919
  grep -v '^ *+' conftest.er1 >conftest.err
 
10920
  rm -f conftest.er1
 
10921
  cat conftest.err >&5
 
10922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10923
  (exit $ac_status); } && {
 
10924
         test -z "$ac_c_werror_flag" ||
 
10925
         test ! -s conftest.err
 
10926
       } && test -s conftest$ac_exeext &&
 
10927
       $as_test_x conftest$ac_exeext; then
 
10928
  eval "$gt_func_gnugettext_libc=yes"
 
10929
else
 
10930
  echo "$as_me: failed program was:" >&5
 
10931
sed 's/^/| /' conftest.$ac_ext >&5
 
10932
 
 
10933
        eval "$gt_func_gnugettext_libc=no"
 
10934
fi
 
10935
 
 
10936
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10937
      conftest$ac_exeext conftest.$ac_ext
 
10938
fi
 
10939
ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
 
10940
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
10941
echo "${ECHO_T}$ac_res" >&6; }
 
10942
 
 
10943
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
10944
 
 
10945
 
 
10946
 
 
10947
 
 
10948
 
 
10949
          am_save_CPPFLAGS="$CPPFLAGS"
 
10950
 
 
10951
  for element in $INCICONV; do
 
10952
    haveit=
 
10953
    for x in $CPPFLAGS; do
 
10954
 
 
10955
  acl_save_prefix="$prefix"
 
10956
  prefix="$acl_final_prefix"
 
10957
  acl_save_exec_prefix="$exec_prefix"
 
10958
  exec_prefix="$acl_final_exec_prefix"
 
10959
  eval x=\"$x\"
 
10960
  exec_prefix="$acl_save_exec_prefix"
 
10961
  prefix="$acl_save_prefix"
 
10962
 
 
10963
      if test "X$x" = "X$element"; then
 
10964
        haveit=yes
 
10965
        break
 
10966
      fi
 
10967
    done
 
10968
    if test -z "$haveit"; then
 
10969
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
10970
    fi
 
10971
  done
 
10972
 
 
10973
 
 
10974
  { echo "$as_me:$LINENO: checking for iconv" >&5
 
10975
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
 
10976
if test "${am_cv_func_iconv+set}" = set; then
 
10977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10978
else
 
10979
 
 
10980
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
10981
    am_cv_lib_iconv=no
 
10982
    cat >conftest.$ac_ext <<_ACEOF
 
10983
/* confdefs.h.  */
 
10984
_ACEOF
 
10985
cat confdefs.h >>conftest.$ac_ext
 
10986
cat >>conftest.$ac_ext <<_ACEOF
 
10987
/* end confdefs.h.  */
 
10988
#include <stdlib.h>
 
10989
#include <iconv.h>
 
10990
int
 
10991
main ()
 
10992
{
 
10993
iconv_t cd = iconv_open("","");
 
10994
       iconv(cd,NULL,NULL,NULL,NULL);
 
10995
       iconv_close(cd);
 
10996
  ;
 
10997
  return 0;
 
10998
}
 
10999
_ACEOF
 
11000
rm -f conftest.$ac_objext conftest$ac_exeext
 
11001
if { (ac_try="$ac_link"
 
11002
case "(($ac_try" in
 
11003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11004
  *) ac_try_echo=$ac_try;;
 
11005
esac
 
11006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11007
  (eval "$ac_link") 2>conftest.er1
 
11008
  ac_status=$?
 
11009
  grep -v '^ *+' conftest.er1 >conftest.err
 
11010
  rm -f conftest.er1
 
11011
  cat conftest.err >&5
 
11012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11013
  (exit $ac_status); } && {
 
11014
         test -z "$ac_c_werror_flag" ||
 
11015
         test ! -s conftest.err
 
11016
       } && test -s conftest$ac_exeext &&
 
11017
       $as_test_x conftest$ac_exeext; then
 
11018
  am_cv_func_iconv=yes
 
11019
else
 
11020
  echo "$as_me: failed program was:" >&5
 
11021
sed 's/^/| /' conftest.$ac_ext >&5
 
11022
 
 
11023
 
 
11024
fi
 
11025
 
 
11026
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11027
      conftest$ac_exeext conftest.$ac_ext
 
11028
    if test "$am_cv_func_iconv" != yes; then
 
11029
      am_save_LIBS="$LIBS"
 
11030
      LIBS="$LIBS $LIBICONV"
 
11031
      cat >conftest.$ac_ext <<_ACEOF
 
11032
/* confdefs.h.  */
 
11033
_ACEOF
 
11034
cat confdefs.h >>conftest.$ac_ext
 
11035
cat >>conftest.$ac_ext <<_ACEOF
 
11036
/* end confdefs.h.  */
 
11037
#include <stdlib.h>
 
11038
#include <iconv.h>
 
11039
int
 
11040
main ()
 
11041
{
 
11042
iconv_t cd = iconv_open("","");
 
11043
         iconv(cd,NULL,NULL,NULL,NULL);
 
11044
         iconv_close(cd);
 
11045
  ;
 
11046
  return 0;
 
11047
}
 
11048
_ACEOF
 
11049
rm -f conftest.$ac_objext conftest$ac_exeext
 
11050
if { (ac_try="$ac_link"
 
11051
case "(($ac_try" in
 
11052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11053
  *) ac_try_echo=$ac_try;;
 
11054
esac
 
11055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11056
  (eval "$ac_link") 2>conftest.er1
 
11057
  ac_status=$?
 
11058
  grep -v '^ *+' conftest.er1 >conftest.err
 
11059
  rm -f conftest.er1
 
11060
  cat conftest.err >&5
 
11061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11062
  (exit $ac_status); } && {
 
11063
         test -z "$ac_c_werror_flag" ||
 
11064
         test ! -s conftest.err
 
11065
       } && test -s conftest$ac_exeext &&
 
11066
       $as_test_x conftest$ac_exeext; then
 
11067
  am_cv_lib_iconv=yes
 
11068
        am_cv_func_iconv=yes
 
11069
else
 
11070
  echo "$as_me: failed program was:" >&5
 
11071
sed 's/^/| /' conftest.$ac_ext >&5
 
11072
 
 
11073
 
 
11074
fi
 
11075
 
 
11076
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11077
      conftest$ac_exeext conftest.$ac_ext
 
11078
      LIBS="$am_save_LIBS"
 
11079
    fi
 
11080
 
 
11081
fi
 
11082
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
11083
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
 
11084
  if test "$am_cv_func_iconv" = yes; then
 
11085
    { echo "$as_me:$LINENO: checking for working iconv" >&5
 
11086
echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
 
11087
if test "${am_cv_func_iconv_works+set}" = set; then
 
11088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11089
else
 
11090
 
 
11091
            am_save_LIBS="$LIBS"
 
11092
      if test $am_cv_lib_iconv = yes; then
 
11093
        LIBS="$LIBS $LIBICONV"
 
11094
      fi
 
11095
      if test "$cross_compiling" = yes; then
 
11096
  case "$host_os" in
 
11097
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
11098
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
11099
         esac
 
11100
else
 
11101
  cat >conftest.$ac_ext <<_ACEOF
 
11102
/* confdefs.h.  */
 
11103
_ACEOF
 
11104
cat confdefs.h >>conftest.$ac_ext
 
11105
cat >>conftest.$ac_ext <<_ACEOF
 
11106
/* end confdefs.h.  */
 
11107
 
 
11108
#include <iconv.h>
 
11109
#include <string.h>
 
11110
int main ()
 
11111
{
 
11112
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
11113
     returns.  */
 
11114
  {
 
11115
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
11116
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
11117
      {
 
11118
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
11119
        char buf[10];
 
11120
        const char *inptr = input;
 
11121
        size_t inbytesleft = strlen (input);
 
11122
        char *outptr = buf;
 
11123
        size_t outbytesleft = sizeof (buf);
 
11124
        size_t res = iconv (cd_utf8_to_88591,
 
11125
                            (char **) &inptr, &inbytesleft,
 
11126
                            &outptr, &outbytesleft);
 
11127
        if (res == 0)
 
11128
          return 1;
 
11129
      }
 
11130
  }
 
11131
#if 0 /* This bug could be worked around by the caller.  */
 
11132
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
11133
  {
 
11134
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
11135
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
11136
      {
 
11137
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
11138
        char buf[50];
 
11139
        const char *inptr = input;
 
11140
        size_t inbytesleft = strlen (input);
 
11141
        char *outptr = buf;
 
11142
        size_t outbytesleft = sizeof (buf);
 
11143
        size_t res = iconv (cd_88591_to_utf8,
 
11144
                            (char **) &inptr, &inbytesleft,
 
11145
                            &outptr, &outbytesleft);
 
11146
        if ((int)res > 0)
 
11147
          return 1;
 
11148
      }
 
11149
  }
 
11150
#endif
 
11151
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
11152
     provided.  */
 
11153
  if (/* Try standardized names.  */
 
11154
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
11155
      /* Try IRIX, OSF/1 names.  */
 
11156
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
11157
      /* Try AIX names.  */
 
11158
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
11159
      /* Try HP-UX names.  */
 
11160
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
11161
    return 1;
 
11162
  return 0;
 
11163
}
 
11164
_ACEOF
 
11165
rm -f conftest$ac_exeext
 
11166
if { (ac_try="$ac_link"
 
11167
case "(($ac_try" in
 
11168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11169
  *) ac_try_echo=$ac_try;;
 
11170
esac
 
11171
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11172
  (eval "$ac_link") 2>&5
 
11173
  ac_status=$?
 
11174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11175
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11176
  { (case "(($ac_try" in
 
11177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11178
  *) ac_try_echo=$ac_try;;
 
11179
esac
 
11180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11181
  (eval "$ac_try") 2>&5
13402
11182
  ac_status=$?
13403
11183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404
11184
  (exit $ac_status); }; }; then
13405
 
  gt_cv_func_gnugettext2_libc=yes
 
11185
  am_cv_func_iconv_works=yes
13406
11186
else
13407
 
  echo "$as_me: failed program was:" >&5
 
11187
  echo "$as_me: program exited with status $ac_status" >&5
 
11188
echo "$as_me: failed program was:" >&5
13408
11189
sed 's/^/| /' conftest.$ac_ext >&5
13409
11190
 
13410
 
gt_cv_func_gnugettext2_libc=no
13411
 
fi
13412
 
rm -f conftest.err conftest.$ac_objext \
13413
 
      conftest$ac_exeext conftest.$ac_ext
13414
 
fi
13415
 
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
13416
 
echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
13417
 
 
13418
 
        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
 
11191
( exit $ac_status )
 
11192
am_cv_func_iconv_works=no
 
11193
fi
 
11194
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11195
fi
 
11196
 
 
11197
 
 
11198
      LIBS="$am_save_LIBS"
 
11199
 
 
11200
fi
 
11201
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
 
11202
echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
 
11203
    case "$am_cv_func_iconv_works" in
 
11204
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
11205
      *)   am_func_iconv=yes ;;
 
11206
    esac
 
11207
  else
 
11208
    am_func_iconv=no am_cv_lib_iconv=no
 
11209
  fi
 
11210
  if test "$am_func_iconv" = yes; then
 
11211
 
 
11212
cat >>confdefs.h <<\_ACEOF
 
11213
#define HAVE_ICONV 1
 
11214
_ACEOF
 
11215
 
 
11216
  fi
 
11217
  if test "$am_cv_lib_iconv" = yes; then
 
11218
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
11219
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
 
11220
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
11221
echo "${ECHO_T}$LIBICONV" >&6; }
 
11222
  else
 
11223
            CPPFLAGS="$am_save_CPPFLAGS"
 
11224
    LIBICONV=
 
11225
    LTLIBICONV=
 
11226
  fi
 
11227
 
 
11228
 
 
11229
 
 
11230
 
 
11231
 
13419
11232
 
13420
11233
 
13421
11234
 
13433
11246
  prefix="$acl_save_prefix"
13434
11247
 
13435
11248
 
13436
 
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
11249
# Check whether --with-libintl-prefix was given.
13437
11250
if test "${with_libintl_prefix+set}" = set; then
13438
 
  withval="$with_libintl_prefix"
13439
 
 
 
11251
  withval=$with_libintl_prefix;
13440
11252
    if test "X$withval" = "Xno"; then
13441
11253
      use_additional=no
13442
11254
    else
13455
11267
 
13456
11268
      else
13457
11269
        additional_includedir="$withval/include"
13458
 
        additional_libdir="$withval/lib"
 
11270
        additional_libdir="$withval/$acl_libdirstem"
13459
11271
      fi
13460
11272
    fi
13461
11273
 
13462
 
fi;
 
11274
fi
 
11275
 
13463
11276
      LIBINTL=
13464
11277
  LTLIBINTL=
13465
11278
  INCINTL=
 
11279
  LIBINTL_PREFIX=
13466
11280
  rpathdirs=
13467
11281
  ltrpathdirs=
13468
11282
  names_already_handled=
13496
11310
          found_la=
13497
11311
          found_so=
13498
11312
          found_a=
 
11313
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
11314
          if test -n "$acl_shlibext"; then
 
11315
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
11316
          else
 
11317
            shrext=
 
11318
          fi
13499
11319
          if test $use_additional = yes; then
13500
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13501
 
              found_dir="$additional_libdir"
13502
 
              found_so="$additional_libdir/lib$name.$shlibext"
13503
 
              if test -f "$additional_libdir/lib$name.la"; then
13504
 
                found_la="$additional_libdir/lib$name.la"
13505
 
              fi
13506
 
            else
13507
 
              if test -f "$additional_libdir/lib$name.$libext"; then
13508
 
                found_dir="$additional_libdir"
13509
 
                found_a="$additional_libdir/lib$name.$libext"
13510
 
                if test -f "$additional_libdir/lib$name.la"; then
13511
 
                  found_la="$additional_libdir/lib$name.la"
 
11320
            dir="$additional_libdir"
 
11321
                                    if test -n "$acl_shlibext"; then
 
11322
              if test -f "$dir/$libname$shrext"; then
 
11323
                found_dir="$dir"
 
11324
                found_so="$dir/$libname$shrext"
 
11325
              else
 
11326
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
11327
                  ver=`(cd "$dir" && \
 
11328
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
11329
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
11330
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
11331
                        | sed 1q ) 2>/dev/null`
 
11332
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
11333
                    found_dir="$dir"
 
11334
                    found_so="$dir/$libname$shrext.$ver"
 
11335
                  fi
 
11336
                else
 
11337
                  eval library_names=\"$acl_library_names_spec\"
 
11338
                  for f in $library_names; do
 
11339
                    if test -f "$dir/$f"; then
 
11340
                      found_dir="$dir"
 
11341
                      found_so="$dir/$f"
 
11342
                      break
 
11343
                    fi
 
11344
                  done
13512
11345
                fi
13513
11346
              fi
13514
11347
            fi
 
11348
                        if test "X$found_dir" = "X"; then
 
11349
              if test -f "$dir/$libname.$acl_libext"; then
 
11350
                found_dir="$dir"
 
11351
                found_a="$dir/$libname.$acl_libext"
 
11352
              fi
 
11353
            fi
 
11354
            if test "X$found_dir" != "X"; then
 
11355
              if test -f "$dir/$libname.la"; then
 
11356
                found_la="$dir/$libname.la"
 
11357
              fi
 
11358
            fi
13515
11359
          fi
13516
11360
          if test "X$found_dir" = "X"; then
13517
11361
            for x in $LDFLAGS $LTLIBINTL; do
13527
11371
              case "$x" in
13528
11372
                -L*)
13529
11373
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13530
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13531
 
                    found_dir="$dir"
13532
 
                    found_so="$dir/lib$name.$shlibext"
13533
 
                    if test -f "$dir/lib$name.la"; then
13534
 
                      found_la="$dir/lib$name.la"
13535
 
                    fi
13536
 
                  else
13537
 
                    if test -f "$dir/lib$name.$libext"; then
 
11374
                                    if test -n "$acl_shlibext"; then
 
11375
                    if test -f "$dir/$libname$shrext"; then
13538
11376
                      found_dir="$dir"
13539
 
                      found_a="$dir/lib$name.$libext"
13540
 
                      if test -f "$dir/lib$name.la"; then
13541
 
                        found_la="$dir/lib$name.la"
 
11377
                      found_so="$dir/$libname$shrext"
 
11378
                    else
 
11379
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
11380
                        ver=`(cd "$dir" && \
 
11381
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
11382
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
11383
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
11384
                              | sed 1q ) 2>/dev/null`
 
11385
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
11386
                          found_dir="$dir"
 
11387
                          found_so="$dir/$libname$shrext.$ver"
 
11388
                        fi
 
11389
                      else
 
11390
                        eval library_names=\"$acl_library_names_spec\"
 
11391
                        for f in $library_names; do
 
11392
                          if test -f "$dir/$f"; then
 
11393
                            found_dir="$dir"
 
11394
                            found_so="$dir/$f"
 
11395
                            break
 
11396
                          fi
 
11397
                        done
13542
11398
                      fi
13543
11399
                    fi
13544
11400
                  fi
 
11401
                                    if test "X$found_dir" = "X"; then
 
11402
                    if test -f "$dir/$libname.$acl_libext"; then
 
11403
                      found_dir="$dir"
 
11404
                      found_a="$dir/$libname.$acl_libext"
 
11405
                    fi
 
11406
                  fi
 
11407
                  if test "X$found_dir" != "X"; then
 
11408
                    if test -f "$dir/$libname.la"; then
 
11409
                      found_la="$dir/$libname.la"
 
11410
                    fi
 
11411
                  fi
13545
11412
                  ;;
13546
11413
              esac
13547
11414
              if test "X$found_dir" != "X"; then
13552
11419
          if test "X$found_dir" != "X"; then
13553
11420
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13554
11421
            if test "X$found_so" != "X"; then
13555
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
11422
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13556
11423
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13557
11424
              else
13558
11425
                                                                                haveit=
13565
11432
                if test -z "$haveit"; then
13566
11433
                  ltrpathdirs="$ltrpathdirs $found_dir"
13567
11434
                fi
13568
 
                                if test "$hardcode_direct" = yes; then
 
11435
                                if test "$acl_hardcode_direct" = yes; then
13569
11436
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13570
11437
                else
13571
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
11438
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13572
11439
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13573
11440
                                                            haveit=
13574
11441
                    for x in $rpathdirs; do
13600
11467
                    if test -z "$haveit"; then
13601
11468
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13602
11469
                    fi
13603
 
                    if test "$hardcode_minus_L" != no; then
 
11470
                    if test "$acl_hardcode_minus_L" != no; then
13604
11471
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13605
11472
                    else
13606
11473
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13617
11484
            fi
13618
11485
                        additional_includedir=
13619
11486
            case "$found_dir" in
13620
 
              */lib | */lib/)
13621
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
11487
              */$acl_libdirstem | */$acl_libdirstem/)
 
11488
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
11489
                LIBINTL_PREFIX="$basedir"
13622
11490
                additional_includedir="$basedir/include"
13623
11491
                ;;
13624
11492
            esac
13628
11496
                if test "X$additional_includedir" = "X/usr/local/include"; then
13629
11497
                  if test -n "$GCC"; then
13630
11498
                    case $host_os in
13631
 
                      linux*) haveit=yes;;
 
11499
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13632
11500
                    esac
13633
11501
                  fi
13634
11502
                fi
13667
11535
                case "$dep" in
13668
11536
                  -L*)
13669
11537
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13670
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
11538
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13671
11539
                      haveit=
13672
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
11540
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13673
11541
                        if test -n "$GCC"; then
13674
11542
                          case $host_os in
13675
 
                            linux*) haveit=yes;;
 
11543
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13676
11544
                          esac
13677
11545
                        fi
13678
11546
                      fi
13769
11637
    done
13770
11638
  done
13771
11639
  if test "X$rpathdirs" != "X"; then
13772
 
    if test -n "$hardcode_libdir_separator"; then
 
11640
    if test -n "$acl_hardcode_libdir_separator"; then
13773
11641
                        alldirs=
13774
11642
      for found_dir in $rpathdirs; do
13775
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
11643
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13776
11644
      done
13777
11645
            acl_save_libdir="$libdir"
13778
11646
      libdir="$alldirs"
13779
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
11647
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
13780
11648
      libdir="$acl_save_libdir"
13781
11649
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13782
11650
    else
13783
11651
            for found_dir in $rpathdirs; do
13784
11652
        acl_save_libdir="$libdir"
13785
11653
        libdir="$found_dir"
13786
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
11654
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
13787
11655
        libdir="$acl_save_libdir"
13788
11656
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13789
11657
      done
13795
11663
    done
13796
11664
  fi
13797
11665
 
13798
 
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13799
 
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13800
 
if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
 
11666
          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
11667
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
 
11668
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
13801
11669
  echo $ECHO_N "(cached) $ECHO_C" >&6
13802
11670
else
13803
11671
  gt_save_CPPFLAGS="$CPPFLAGS"
13811
11679
cat >>conftest.$ac_ext <<_ACEOF
13812
11680
/* end confdefs.h.  */
13813
11681
#include <libintl.h>
 
11682
$gt_revision_test_code
13814
11683
extern int _nl_msg_cat_cntr;
13815
11684
extern
13816
11685
#ifdef __cplusplus
13817
11686
"C"
13818
11687
#endif
13819
 
const char *_nl_expand_alias ();
 
11688
const char *_nl_expand_alias (const char *);
13820
11689
int
13821
11690
main ()
13822
11691
{
13823
11692
bindtextdomain ("", "");
13824
 
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
11693
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13825
11694
  ;
13826
11695
  return 0;
13827
11696
}
13828
11697
_ACEOF
13829
11698
rm -f conftest.$ac_objext conftest$ac_exeext
13830
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13831
 
  (eval $ac_link) 2>conftest.er1
 
11699
if { (ac_try="$ac_link"
 
11700
case "(($ac_try" in
 
11701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11702
  *) ac_try_echo=$ac_try;;
 
11703
esac
 
11704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11705
  (eval "$ac_link") 2>conftest.er1
13832
11706
  ac_status=$?
13833
11707
  grep -v '^ *+' conftest.er1 >conftest.err
13834
11708
  rm -f conftest.er1
13835
11709
  cat conftest.err >&5
13836
11710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837
 
  (exit $ac_status); } &&
13838
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13839
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840
 
  (eval $ac_try) 2>&5
13841
 
  ac_status=$?
13842
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843
 
  (exit $ac_status); }; } &&
13844
 
         { ac_try='test -s conftest$ac_exeext'
13845
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846
 
  (eval $ac_try) 2>&5
13847
 
  ac_status=$?
13848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849
 
  (exit $ac_status); }; }; then
13850
 
  gt_cv_func_gnugettext2_libintl=yes
 
11711
  (exit $ac_status); } && {
 
11712
         test -z "$ac_c_werror_flag" ||
 
11713
         test ! -s conftest.err
 
11714
       } && test -s conftest$ac_exeext &&
 
11715
       $as_test_x conftest$ac_exeext; then
 
11716
  eval "$gt_func_gnugettext_libintl=yes"
13851
11717
else
13852
11718
  echo "$as_me: failed program was:" >&5
13853
11719
sed 's/^/| /' conftest.$ac_ext >&5
13854
11720
 
13855
 
gt_cv_func_gnugettext2_libintl=no
 
11721
        eval "$gt_func_gnugettext_libintl=no"
13856
11722
fi
13857
 
rm -f conftest.err conftest.$ac_objext \
 
11723
 
 
11724
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13858
11725
      conftest$ac_exeext conftest.$ac_ext
13859
 
                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
 
11726
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13860
11727
              LIBS="$LIBS $LIBICONV"
13861
11728
              cat >conftest.$ac_ext <<_ACEOF
13862
11729
/* confdefs.h.  */
13865
11732
cat >>conftest.$ac_ext <<_ACEOF
13866
11733
/* end confdefs.h.  */
13867
11734
#include <libintl.h>
 
11735
$gt_revision_test_code
13868
11736
extern int _nl_msg_cat_cntr;
13869
11737
extern
13870
11738
#ifdef __cplusplus
13871
11739
"C"
13872
11740
#endif
13873
 
const char *_nl_expand_alias ();
 
11741
const char *_nl_expand_alias (const char *);
13874
11742
int
13875
11743
main ()
13876
11744
{
13877
11745
bindtextdomain ("", "");
13878
 
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
11746
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13879
11747
  ;
13880
11748
  return 0;
13881
11749
}
13882
11750
_ACEOF
13883
11751
rm -f conftest.$ac_objext conftest$ac_exeext
13884
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13885
 
  (eval $ac_link) 2>conftest.er1
 
11752
if { (ac_try="$ac_link"
 
11753
case "(($ac_try" in
 
11754
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11755
  *) ac_try_echo=$ac_try;;
 
11756
esac
 
11757
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11758
  (eval "$ac_link") 2>conftest.er1
13886
11759
  ac_status=$?
13887
11760
  grep -v '^ *+' conftest.er1 >conftest.err
13888
11761
  rm -f conftest.er1
13889
11762
  cat conftest.err >&5
13890
11763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891
 
  (exit $ac_status); } &&
13892
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13893
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894
 
  (eval $ac_try) 2>&5
13895
 
  ac_status=$?
13896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897
 
  (exit $ac_status); }; } &&
13898
 
         { ac_try='test -s conftest$ac_exeext'
13899
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900
 
  (eval $ac_try) 2>&5
13901
 
  ac_status=$?
13902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903
 
  (exit $ac_status); }; }; then
 
11764
  (exit $ac_status); } && {
 
11765
         test -z "$ac_c_werror_flag" ||
 
11766
         test ! -s conftest.err
 
11767
       } && test -s conftest$ac_exeext &&
 
11768
       $as_test_x conftest$ac_exeext; then
13904
11769
  LIBINTL="$LIBINTL $LIBICONV"
13905
11770
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13906
 
                gt_cv_func_gnugettext2_libintl=yes
 
11771
                eval "$gt_func_gnugettext_libintl=yes"
13907
11772
 
13908
11773
else
13909
11774
  echo "$as_me: failed program was:" >&5
13910
11775
sed 's/^/| /' conftest.$ac_ext >&5
13911
11776
 
 
11777
 
13912
11778
fi
13913
 
rm -f conftest.err conftest.$ac_objext \
 
11779
 
 
11780
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13914
11781
      conftest$ac_exeext conftest.$ac_ext
13915
11782
            fi
13916
11783
            CPPFLAGS="$gt_save_CPPFLAGS"
13917
11784
            LIBS="$gt_save_LIBS"
13918
11785
fi
13919
 
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
13920
 
echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
 
11786
ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
 
11787
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11788
echo "${ECHO_T}$ac_res" >&6; }
13921
11789
        fi
13922
11790
 
13923
 
                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13924
 
           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
 
11791
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
11792
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13925
11793
                && test "$PACKAGE" != gettext-runtime \
13926
11794
                && test "$PACKAGE" != gettext-tools; }; then
13927
11795
          gt_use_preinstalled_gnugettext=yes
13932
11800
        fi
13933
11801
 
13934
11802
 
13935
 
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13936
 
                              nls_cv_use_gnu_gettext=yes
13937
 
        fi
13938
 
      fi
13939
 
 
13940
 
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
13941
 
                BUILD_INCLUDED_LIBINTL=yes
13942
 
        USE_INCLUDED_LIBINTL=yes
13943
 
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13944
 
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13945
 
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13946
 
      fi
13947
 
 
 
11803
 
 
11804
    if test -n "$INTL_MACOSX_LIBS"; then
13948
11805
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
13949
11806
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
13950
 
                CATOBJEXT=.gmo
 
11807
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
11808
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13951
11809
      fi
13952
 
 
 
11810
    fi
13953
11811
 
13954
11812
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
13955
11813
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
13963
11821
    fi
13964
11822
  fi
13965
11823
 
13966
 
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
13967
 
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
13968
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
13969
 
echo "${ECHO_T}$USE_NLS" >&6
 
11824
  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
11825
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
 
11826
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
11827
echo "${ECHO_T}$USE_NLS" >&6; }
13970
11828
  if test "$USE_NLS" = "yes"; then
13971
 
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13972
 
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
11829
    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
11830
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13973
11831
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13974
 
      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
 
11832
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13975
11833
        gt_source="external libintl"
13976
11834
      else
13977
11835
        gt_source="libc"
13979
11837
    else
13980
11838
      gt_source="included intl directory"
13981
11839
    fi
13982
 
    echo "$as_me:$LINENO: result: $gt_source" >&5
13983
 
echo "${ECHO_T}$gt_source" >&6
 
11840
    { echo "$as_me:$LINENO: result: $gt_source" >&5
 
11841
echo "${ECHO_T}$gt_source" >&6; }
13984
11842
  fi
13985
11843
 
13986
11844
  if test "$USE_NLS" = "yes"; then
13987
11845
 
13988
11846
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13989
 
      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13990
 
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
13991
 
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
13992
 
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
13993
 
echo "${ECHO_T}$LIBINTL" >&6
 
11847
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
11848
        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
11849
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
 
11850
        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
11851
echo "${ECHO_T}$LIBINTL" >&6; }
13994
11852
 
13995
11853
  for element in $INCINTL; do
13996
11854
    haveit=
14032
11890
  fi
14033
11891
 
14034
11892
 
14035
 
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14036
 
      BUILD_INCLUDED_LIBINTL=yes
14037
 
    fi
14038
 
 
14039
 
 
14040
 
 
14041
 
 
14042
 
 
14043
 
        nls_cv_header_intl=
14044
 
    nls_cv_header_libgt=
14045
 
 
14046
 
        DATADIRNAME=share
14047
 
 
14048
 
 
14049
 
        INSTOBJEXT=.mo
14050
 
 
14051
 
 
14052
 
        GENCAT=gencat
14053
 
 
14054
 
 
14055
 
        if test "$USE_INCLUDED_LIBINTL" = yes; then
14056
 
      INTLOBJS="\$(GETTOBJS)"
14057
 
    fi
14058
 
 
14059
 
 
14060
 
        INTL_LIBTOOL_SUFFIX_PREFIX=
14061
 
 
14062
 
 
14063
11893
 
14064
11894
    INTLLIBS="$LIBINTL"
14065
11895
 
14077
11907
for ac_func in strchr
14078
11908
do
14079
11909
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14080
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
14081
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14082
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
11910
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
11911
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
11912
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14083
11913
  echo $ECHO_N "(cached) $ECHO_C" >&6
14084
11914
else
14085
11915
  cat >conftest.$ac_ext <<_ACEOF
14105
11935
 
14106
11936
#undef $ac_func
14107
11937
 
14108
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
11938
/* Override any GCC internal prototype to avoid an error.
 
11939
   Use char because int might match the return type of a GCC
 
11940
   builtin and then its argument prototype would still apply.  */
14109
11941
#ifdef __cplusplus
14110
11942
extern "C"
14111
 
{
14112
11943
#endif
14113
 
/* We use char because int might match the return type of a gcc2
14114
 
   builtin and then its argument prototype would still apply.  */
14115
11944
char $ac_func ();
14116
11945
/* The GNU C library defines this for functions which it implements
14117
11946
    to always fail with ENOSYS.  Some functions are actually named
14118
11947
    something starting with __ and the normal name is an alias.  */
14119
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
11948
#if defined __stub_$ac_func || defined __stub___$ac_func
14120
11949
choke me
14121
 
#else
14122
 
char (*f) () = $ac_func;
14123
 
#endif
14124
 
#ifdef __cplusplus
14125
 
}
14126
11950
#endif
14127
11951
 
14128
11952
int
14129
11953
main ()
14130
11954
{
14131
 
return f != $ac_func;
 
11955
return $ac_func ();
14132
11956
  ;
14133
11957
  return 0;
14134
11958
}
14135
11959
_ACEOF
14136
11960
rm -f conftest.$ac_objext conftest$ac_exeext
14137
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14138
 
  (eval $ac_link) 2>conftest.er1
 
11961
if { (ac_try="$ac_link"
 
11962
case "(($ac_try" in
 
11963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11964
  *) ac_try_echo=$ac_try;;
 
11965
esac
 
11966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11967
  (eval "$ac_link") 2>conftest.er1
14139
11968
  ac_status=$?
14140
11969
  grep -v '^ *+' conftest.er1 >conftest.err
14141
11970
  rm -f conftest.er1
14142
11971
  cat conftest.err >&5
14143
11972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144
 
  (exit $ac_status); } &&
14145
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14146
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147
 
  (eval $ac_try) 2>&5
14148
 
  ac_status=$?
14149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150
 
  (exit $ac_status); }; } &&
14151
 
         { ac_try='test -s conftest$ac_exeext'
14152
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153
 
  (eval $ac_try) 2>&5
14154
 
  ac_status=$?
14155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156
 
  (exit $ac_status); }; }; then
 
11973
  (exit $ac_status); } && {
 
11974
         test -z "$ac_c_werror_flag" ||
 
11975
         test ! -s conftest.err
 
11976
       } && test -s conftest$ac_exeext &&
 
11977
       $as_test_x conftest$ac_exeext; then
14157
11978
  eval "$as_ac_var=yes"
14158
11979
else
14159
11980
  echo "$as_me: failed program was:" >&5
14160
11981
sed 's/^/| /' conftest.$ac_ext >&5
14161
11982
 
14162
 
eval "$as_ac_var=no"
 
11983
        eval "$as_ac_var=no"
14163
11984
fi
14164
 
rm -f conftest.err conftest.$ac_objext \
 
11985
 
 
11986
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14165
11987
      conftest$ac_exeext conftest.$ac_ext
14166
11988
fi
14167
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14168
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
11989
ac_res=`eval echo '${'$as_ac_var'}'`
 
11990
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
11991
echo "${ECHO_T}$ac_res" >&6; }
14169
11992
if test `eval echo '${'$as_ac_var'}'` = yes; then
14170
11993
  cat >>confdefs.h <<_ACEOF
14171
11994
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14178
12001
  USE_NLS=no
14179
12002
  USE_INCLUDED_LIBINTL=no
14180
12003
  BUILD_INCLUDED_LIBINTL=no
14181
 
 
14182
 
 
14183
 
 
14184
 
fi
14185
 
 
 
12004
  POSUB=po
 
12005
 
 
12006
 
 
12007
 
 
12008
 
 
12009
fi
 
12010
 
 
12011
# We use HAVE_LANGINFO_CODESET in a couple of places.
 
12012
 
 
12013
  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
12014
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
 
12015
if test "${am_cv_langinfo_codeset+set}" = set; then
 
12016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12017
else
 
12018
  cat >conftest.$ac_ext <<_ACEOF
 
12019
/* confdefs.h.  */
 
12020
_ACEOF
 
12021
cat confdefs.h >>conftest.$ac_ext
 
12022
cat >>conftest.$ac_ext <<_ACEOF
 
12023
/* end confdefs.h.  */
 
12024
#include <langinfo.h>
 
12025
int
 
12026
main ()
 
12027
{
 
12028
char* cs = nl_langinfo(CODESET); return !cs;
 
12029
  ;
 
12030
  return 0;
 
12031
}
 
12032
_ACEOF
 
12033
rm -f conftest.$ac_objext conftest$ac_exeext
 
12034
if { (ac_try="$ac_link"
 
12035
case "(($ac_try" in
 
12036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12037
  *) ac_try_echo=$ac_try;;
 
12038
esac
 
12039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12040
  (eval "$ac_link") 2>conftest.er1
 
12041
  ac_status=$?
 
12042
  grep -v '^ *+' conftest.er1 >conftest.err
 
12043
  rm -f conftest.er1
 
12044
  cat conftest.err >&5
 
12045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12046
  (exit $ac_status); } && {
 
12047
         test -z "$ac_c_werror_flag" ||
 
12048
         test ! -s conftest.err
 
12049
       } && test -s conftest$ac_exeext &&
 
12050
       $as_test_x conftest$ac_exeext; then
 
12051
  am_cv_langinfo_codeset=yes
 
12052
else
 
12053
  echo "$as_me: failed program was:" >&5
 
12054
sed 's/^/| /' conftest.$ac_ext >&5
 
12055
 
 
12056
        am_cv_langinfo_codeset=no
 
12057
fi
 
12058
 
 
12059
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12060
      conftest$ac_exeext conftest.$ac_ext
 
12061
 
 
12062
fi
 
12063
{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
12064
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
 
12065
  if test $am_cv_langinfo_codeset = yes; then
 
12066
 
 
12067
cat >>confdefs.h <<\_ACEOF
 
12068
#define HAVE_LANGINFO_CODESET 1
 
12069
_ACEOF
 
12070
 
 
12071
  fi
 
12072
 
 
12073
 
 
12074
# Checks required for our use locales
 
12075
 
 
12076
  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
12077
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
 
12078
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
 
12079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12080
else
 
12081
  cat >conftest.$ac_ext <<_ACEOF
 
12082
/* confdefs.h.  */
 
12083
_ACEOF
 
12084
cat confdefs.h >>conftest.$ac_ext
 
12085
cat >>conftest.$ac_ext <<_ACEOF
 
12086
/* end confdefs.h.  */
 
12087
#include <locale.h>
 
12088
int
 
12089
main ()
 
12090
{
 
12091
return LC_MESSAGES
 
12092
  ;
 
12093
  return 0;
 
12094
}
 
12095
_ACEOF
 
12096
rm -f conftest.$ac_objext conftest$ac_exeext
 
12097
if { (ac_try="$ac_link"
 
12098
case "(($ac_try" in
 
12099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12100
  *) ac_try_echo=$ac_try;;
 
12101
esac
 
12102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12103
  (eval "$ac_link") 2>conftest.er1
 
12104
  ac_status=$?
 
12105
  grep -v '^ *+' conftest.er1 >conftest.err
 
12106
  rm -f conftest.er1
 
12107
  cat conftest.err >&5
 
12108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12109
  (exit $ac_status); } && {
 
12110
         test -z "$ac_c_werror_flag" ||
 
12111
         test ! -s conftest.err
 
12112
       } && test -s conftest$ac_exeext &&
 
12113
       $as_test_x conftest$ac_exeext; then
 
12114
  gt_cv_val_LC_MESSAGES=yes
 
12115
else
 
12116
  echo "$as_me: failed program was:" >&5
 
12117
sed 's/^/| /' conftest.$ac_ext >&5
 
12118
 
 
12119
        gt_cv_val_LC_MESSAGES=no
 
12120
fi
 
12121
 
 
12122
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12123
      conftest$ac_exeext conftest.$ac_ext
 
12124
fi
 
12125
{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
 
12126
echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
 
12127
  if test $gt_cv_val_LC_MESSAGES = yes; then
 
12128
 
 
12129
cat >>confdefs.h <<\_ACEOF
 
12130
#define HAVE_LC_MESSAGES 1
 
12131
_ACEOF
 
12132
 
 
12133
  fi
 
12134
 
 
12135
 
 
12136
 
 
12137
#
 
12138
# SELinux support
 
12139
#
 
12140
if test "$selinux_support" = yes ; then
 
12141
 
 
12142
cat >>confdefs.h <<\_ACEOF
 
12143
#define ENABLE_SELINUX_HACKS 1
 
12144
_ACEOF
 
12145
 
 
12146
fi
 
12147
 
 
12148
 
 
12149
#
14186
12150
# Checks for header files.
14187
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14188
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
12151
#
 
12152
{ echo "$as_me:$LINENO: checking for header files" >&5
 
12153
echo "$as_me: checking for header files" >&6;}
 
12154
 
 
12155
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
12156
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
12157
if test "${ac_cv_path_GREP+set}" = set; then
 
12158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12159
else
 
12160
  # Extract the first word of "grep ggrep" to use in msg output
 
12161
if test -z "$GREP"; then
 
12162
set dummy grep ggrep; ac_prog_name=$2
 
12163
if test "${ac_cv_path_GREP+set}" = set; then
 
12164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12165
else
 
12166
  ac_path_GREP_found=false
 
12167
# Loop through the user's path and test for each of PROGNAME-LIST
 
12168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12169
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
12170
do
 
12171
  IFS=$as_save_IFS
 
12172
  test -z "$as_dir" && as_dir=.
 
12173
  for ac_prog in grep ggrep; do
 
12174
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12175
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
12176
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
12177
    # Check for GNU ac_path_GREP and select it if it is found.
 
12178
  # Check for GNU $ac_path_GREP
 
12179
case `"$ac_path_GREP" --version 2>&1` in
 
12180
*GNU*)
 
12181
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
12182
*)
 
12183
  ac_count=0
 
12184
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
12185
  while :
 
12186
  do
 
12187
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
12188
    mv "conftest.tmp" "conftest.in"
 
12189
    cp "conftest.in" "conftest.nl"
 
12190
    echo 'GREP' >> "conftest.nl"
 
12191
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
12192
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
12193
    ac_count=`expr $ac_count + 1`
 
12194
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
12195
      # Best one so far, save it but keep looking for a better one
 
12196
      ac_cv_path_GREP="$ac_path_GREP"
 
12197
      ac_path_GREP_max=$ac_count
 
12198
    fi
 
12199
    # 10*(2^10) chars as input seems more than enough
 
12200
    test $ac_count -gt 10 && break
 
12201
  done
 
12202
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
12203
esac
 
12204
 
 
12205
 
 
12206
    $ac_path_GREP_found && break 3
 
12207
  done
 
12208
done
 
12209
 
 
12210
done
 
12211
IFS=$as_save_IFS
 
12212
 
 
12213
 
 
12214
fi
 
12215
 
 
12216
GREP="$ac_cv_path_GREP"
 
12217
if test -z "$GREP"; then
 
12218
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
12219
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
12220
   { (exit 1); exit 1; }; }
 
12221
fi
 
12222
 
 
12223
else
 
12224
  ac_cv_path_GREP=$GREP
 
12225
fi
 
12226
 
 
12227
 
 
12228
fi
 
12229
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
12230
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
12231
 GREP="$ac_cv_path_GREP"
 
12232
 
 
12233
 
 
12234
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
12235
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
12236
if test "${ac_cv_path_EGREP+set}" = set; then
 
12237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12238
else
 
12239
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
12240
   then ac_cv_path_EGREP="$GREP -E"
 
12241
   else
 
12242
     # Extract the first word of "egrep" to use in msg output
 
12243
if test -z "$EGREP"; then
 
12244
set dummy egrep; ac_prog_name=$2
 
12245
if test "${ac_cv_path_EGREP+set}" = set; then
 
12246
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12247
else
 
12248
  ac_path_EGREP_found=false
 
12249
# Loop through the user's path and test for each of PROGNAME-LIST
 
12250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12251
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
12252
do
 
12253
  IFS=$as_save_IFS
 
12254
  test -z "$as_dir" && as_dir=.
 
12255
  for ac_prog in egrep; do
 
12256
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12257
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
12258
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
12259
    # Check for GNU ac_path_EGREP and select it if it is found.
 
12260
  # Check for GNU $ac_path_EGREP
 
12261
case `"$ac_path_EGREP" --version 2>&1` in
 
12262
*GNU*)
 
12263
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
12264
*)
 
12265
  ac_count=0
 
12266
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
12267
  while :
 
12268
  do
 
12269
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
12270
    mv "conftest.tmp" "conftest.in"
 
12271
    cp "conftest.in" "conftest.nl"
 
12272
    echo 'EGREP' >> "conftest.nl"
 
12273
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
12274
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
12275
    ac_count=`expr $ac_count + 1`
 
12276
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
12277
      # Best one so far, save it but keep looking for a better one
 
12278
      ac_cv_path_EGREP="$ac_path_EGREP"
 
12279
      ac_path_EGREP_max=$ac_count
 
12280
    fi
 
12281
    # 10*(2^10) chars as input seems more than enough
 
12282
    test $ac_count -gt 10 && break
 
12283
  done
 
12284
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
12285
esac
 
12286
 
 
12287
 
 
12288
    $ac_path_EGREP_found && break 3
 
12289
  done
 
12290
done
 
12291
 
 
12292
done
 
12293
IFS=$as_save_IFS
 
12294
 
 
12295
 
 
12296
fi
 
12297
 
 
12298
EGREP="$ac_cv_path_EGREP"
 
12299
if test -z "$EGREP"; then
 
12300
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
12301
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
12302
   { (exit 1); exit 1; }; }
 
12303
fi
 
12304
 
 
12305
else
 
12306
  ac_cv_path_EGREP=$EGREP
 
12307
fi
 
12308
 
 
12309
 
 
12310
   fi
 
12311
fi
 
12312
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
12313
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
12314
 EGREP="$ac_cv_path_EGREP"
 
12315
 
 
12316
 
 
12317
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
12318
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14189
12319
if test "${ac_cv_header_stdc+set}" = set; then
14190
12320
  echo $ECHO_N "(cached) $ECHO_C" >&6
14191
12321
else
14209
12339
}
14210
12340
_ACEOF
14211
12341
rm -f conftest.$ac_objext
14212
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213
 
  (eval $ac_compile) 2>conftest.er1
 
12342
if { (ac_try="$ac_compile"
 
12343
case "(($ac_try" in
 
12344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12345
  *) ac_try_echo=$ac_try;;
 
12346
esac
 
12347
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12348
  (eval "$ac_compile") 2>conftest.er1
14214
12349
  ac_status=$?
14215
12350
  grep -v '^ *+' conftest.er1 >conftest.err
14216
12351
  rm -f conftest.er1
14217
12352
  cat conftest.err >&5
14218
12353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219
 
  (exit $ac_status); } &&
14220
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222
 
  (eval $ac_try) 2>&5
14223
 
  ac_status=$?
14224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225
 
  (exit $ac_status); }; } &&
14226
 
         { ac_try='test -s conftest.$ac_objext'
14227
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228
 
  (eval $ac_try) 2>&5
14229
 
  ac_status=$?
14230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231
 
  (exit $ac_status); }; }; then
 
12354
  (exit $ac_status); } && {
 
12355
         test -z "$ac_c_werror_flag" ||
 
12356
         test ! -s conftest.err
 
12357
       } && test -s conftest.$ac_objext; then
14232
12358
  ac_cv_header_stdc=yes
14233
12359
else
14234
12360
  echo "$as_me: failed program was:" >&5
14235
12361
sed 's/^/| /' conftest.$ac_ext >&5
14236
12362
 
14237
 
ac_cv_header_stdc=no
 
12363
        ac_cv_header_stdc=no
14238
12364
fi
14239
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12365
 
 
12366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14240
12367
 
14241
12368
if test $ac_cv_header_stdc = yes; then
14242
12369
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14292
12419
cat >>conftest.$ac_ext <<_ACEOF
14293
12420
/* end confdefs.h.  */
14294
12421
#include <ctype.h>
 
12422
#include <stdlib.h>
14295
12423
#if ((' ' & 0x0FF) == 0x020)
14296
12424
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14297
12425
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14311
12439
  for (i = 0; i < 256; i++)
14312
12440
    if (XOR (islower (i), ISLOWER (i))
14313
12441
        || toupper (i) != TOUPPER (i))
14314
 
      exit(2);
14315
 
  exit (0);
 
12442
      return 2;
 
12443
  return 0;
14316
12444
}
14317
12445
_ACEOF
14318
12446
rm -f conftest$ac_exeext
14319
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14320
 
  (eval $ac_link) 2>&5
 
12447
if { (ac_try="$ac_link"
 
12448
case "(($ac_try" in
 
12449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12450
  *) ac_try_echo=$ac_try;;
 
12451
esac
 
12452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12453
  (eval "$ac_link") 2>&5
14321
12454
  ac_status=$?
14322
12455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323
12456
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14324
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325
 
  (eval $ac_try) 2>&5
 
12457
  { (case "(($ac_try" in
 
12458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12459
  *) ac_try_echo=$ac_try;;
 
12460
esac
 
12461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12462
  (eval "$ac_try") 2>&5
14326
12463
  ac_status=$?
14327
12464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328
12465
  (exit $ac_status); }; }; then
14335
12472
( exit $ac_status )
14336
12473
ac_cv_header_stdc=no
14337
12474
fi
14338
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14339
 
fi
14340
 
fi
14341
 
fi
14342
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14343
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
12475
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
12476
fi
 
12477
 
 
12478
 
 
12479
fi
 
12480
fi
 
12481
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
12482
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14344
12483
if test $ac_cv_header_stdc = yes; then
14345
12484
 
14346
12485
cat >>confdefs.h <<\_ACEOF
14349
12488
 
14350
12489
fi
14351
12490
 
14352
 
 
14353
 
 
14354
 
 
14355
 
 
14356
 
 
14357
 
 
14358
 
for ac_header in string.h unistd.h langinfo.h termio.h locale.h dlfcn.h
14359
 
do
14360
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14362
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
14363
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14364
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14365
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14366
 
fi
14367
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14368
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14369
 
else
14370
 
  # Is the header compilable?
14371
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14373
 
cat >conftest.$ac_ext <<_ACEOF
14374
 
/* confdefs.h.  */
14375
 
_ACEOF
14376
 
cat confdefs.h >>conftest.$ac_ext
14377
 
cat >>conftest.$ac_ext <<_ACEOF
14378
 
/* end confdefs.h.  */
14379
 
$ac_includes_default
14380
 
#include <$ac_header>
14381
 
_ACEOF
14382
 
rm -f conftest.$ac_objext
14383
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384
 
  (eval $ac_compile) 2>conftest.er1
14385
 
  ac_status=$?
14386
 
  grep -v '^ *+' conftest.er1 >conftest.err
14387
 
  rm -f conftest.er1
14388
 
  cat conftest.err >&5
14389
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390
 
  (exit $ac_status); } &&
14391
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14392
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393
 
  (eval $ac_try) 2>&5
14394
 
  ac_status=$?
14395
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396
 
  (exit $ac_status); }; } &&
14397
 
         { ac_try='test -s conftest.$ac_objext'
14398
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399
 
  (eval $ac_try) 2>&5
14400
 
  ac_status=$?
14401
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402
 
  (exit $ac_status); }; }; then
14403
 
  ac_header_compiler=yes
14404
 
else
14405
 
  echo "$as_me: failed program was:" >&5
14406
 
sed 's/^/| /' conftest.$ac_ext >&5
14407
 
 
14408
 
ac_header_compiler=no
14409
 
fi
14410
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14411
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412
 
echo "${ECHO_T}$ac_header_compiler" >&6
14413
 
 
14414
 
# Is the header present?
14415
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
14416
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14417
 
cat >conftest.$ac_ext <<_ACEOF
14418
 
/* confdefs.h.  */
14419
 
_ACEOF
14420
 
cat confdefs.h >>conftest.$ac_ext
14421
 
cat >>conftest.$ac_ext <<_ACEOF
14422
 
/* end confdefs.h.  */
14423
 
#include <$ac_header>
14424
 
_ACEOF
14425
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14426
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14427
 
  ac_status=$?
14428
 
  grep -v '^ *+' conftest.er1 >conftest.err
14429
 
  rm -f conftest.er1
14430
 
  cat conftest.err >&5
14431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432
 
  (exit $ac_status); } >/dev/null; then
14433
 
  if test -s conftest.err; then
14434
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14435
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14436
 
  else
14437
 
    ac_cpp_err=
14438
 
  fi
14439
 
else
14440
 
  ac_cpp_err=yes
14441
 
fi
14442
 
if test -z "$ac_cpp_err"; then
14443
 
  ac_header_preproc=yes
14444
 
else
14445
 
  echo "$as_me: failed program was:" >&5
14446
 
sed 's/^/| /' conftest.$ac_ext >&5
14447
 
 
14448
 
  ac_header_preproc=no
14449
 
fi
14450
 
rm -f conftest.err conftest.$ac_ext
14451
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14452
 
echo "${ECHO_T}$ac_header_preproc" >&6
14453
 
 
14454
 
# So?  What about this header?
14455
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14456
 
  yes:no: )
14457
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14458
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14459
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14460
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14461
 
    ac_header_preproc=yes
14462
 
    ;;
14463
 
  no:yes:* )
14464
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14465
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14466
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14467
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14468
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14469
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14470
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14471
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14472
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14473
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14474
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14475
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14476
 
    (
14477
 
      cat <<\_ASBOX
14478
 
## ------------------------------------ ##
14479
 
## Report this to gnupg-devel@gnupg.org ##
14480
 
## ------------------------------------ ##
14481
 
_ASBOX
14482
 
    ) |
14483
 
      sed "s/^/$as_me: WARNING:     /" >&2
14484
 
    ;;
14485
 
esac
14486
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
14487
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14488
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14489
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14490
 
else
14491
 
  eval "$as_ac_Header=\$ac_header_preproc"
14492
 
fi
14493
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14494
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14495
 
 
14496
 
fi
14497
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14498
 
  cat >>confdefs.h <<_ACEOF
14499
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14500
 
_ACEOF
14501
 
 
14502
 
fi
14503
 
 
14504
 
done
14505
 
 
14506
 
 
 
12491
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
12492
 
 
12493
 
 
12494
 
 
12495
 
 
12496
 
 
12497
 
 
12498
 
 
12499
 
 
12500
 
 
12501
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
12502
                  inttypes.h stdint.h unistd.h
 
12503
do
 
12504
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12505
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12506
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12507
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12509
else
 
12510
  cat >conftest.$ac_ext <<_ACEOF
 
12511
/* confdefs.h.  */
 
12512
_ACEOF
 
12513
cat confdefs.h >>conftest.$ac_ext
 
12514
cat >>conftest.$ac_ext <<_ACEOF
 
12515
/* end confdefs.h.  */
 
12516
$ac_includes_default
 
12517
 
 
12518
#include <$ac_header>
 
12519
_ACEOF
 
12520
rm -f conftest.$ac_objext
 
12521
if { (ac_try="$ac_compile"
 
12522
case "(($ac_try" in
 
12523
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12524
  *) ac_try_echo=$ac_try;;
 
12525
esac
 
12526
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12527
  (eval "$ac_compile") 2>conftest.er1
 
12528
  ac_status=$?
 
12529
  grep -v '^ *+' conftest.er1 >conftest.err
 
12530
  rm -f conftest.er1
 
12531
  cat conftest.err >&5
 
12532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12533
  (exit $ac_status); } && {
 
12534
         test -z "$ac_c_werror_flag" ||
 
12535
         test ! -s conftest.err
 
12536
       } && test -s conftest.$ac_objext; then
 
12537
  eval "$as_ac_Header=yes"
 
12538
else
 
12539
  echo "$as_me: failed program was:" >&5
 
12540
sed 's/^/| /' conftest.$ac_ext >&5
 
12541
 
 
12542
        eval "$as_ac_Header=no"
 
12543
fi
 
12544
 
 
12545
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12546
fi
 
12547
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12548
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12549
echo "${ECHO_T}$ac_res" >&6; }
 
12550
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12551
  cat >>confdefs.h <<_ACEOF
 
12552
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12553
_ACEOF
 
12554
 
 
12555
fi
 
12556
 
 
12557
done
 
12558
 
 
12559
 
 
12560
 
 
12561
 
 
12562
 
 
12563
 
 
12564
 
 
12565
 
 
12566
for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h
 
12567
do
 
12568
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12569
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12570
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12571
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12572
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12574
fi
 
12575
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12576
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12577
echo "${ECHO_T}$ac_res" >&6; }
 
12578
else
 
12579
  # Is the header compilable?
 
12580
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12581
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
12582
cat >conftest.$ac_ext <<_ACEOF
 
12583
/* confdefs.h.  */
 
12584
_ACEOF
 
12585
cat confdefs.h >>conftest.$ac_ext
 
12586
cat >>conftest.$ac_ext <<_ACEOF
 
12587
/* end confdefs.h.  */
 
12588
$ac_includes_default
 
12589
#include <$ac_header>
 
12590
_ACEOF
 
12591
rm -f conftest.$ac_objext
 
12592
if { (ac_try="$ac_compile"
 
12593
case "(($ac_try" in
 
12594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12595
  *) ac_try_echo=$ac_try;;
 
12596
esac
 
12597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12598
  (eval "$ac_compile") 2>conftest.er1
 
12599
  ac_status=$?
 
12600
  grep -v '^ *+' conftest.er1 >conftest.err
 
12601
  rm -f conftest.er1
 
12602
  cat conftest.err >&5
 
12603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12604
  (exit $ac_status); } && {
 
12605
         test -z "$ac_c_werror_flag" ||
 
12606
         test ! -s conftest.err
 
12607
       } && test -s conftest.$ac_objext; then
 
12608
  ac_header_compiler=yes
 
12609
else
 
12610
  echo "$as_me: failed program was:" >&5
 
12611
sed 's/^/| /' conftest.$ac_ext >&5
 
12612
 
 
12613
        ac_header_compiler=no
 
12614
fi
 
12615
 
 
12616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12617
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12618
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
12619
 
 
12620
# Is the header present?
 
12621
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12622
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
12623
cat >conftest.$ac_ext <<_ACEOF
 
12624
/* confdefs.h.  */
 
12625
_ACEOF
 
12626
cat confdefs.h >>conftest.$ac_ext
 
12627
cat >>conftest.$ac_ext <<_ACEOF
 
12628
/* end confdefs.h.  */
 
12629
#include <$ac_header>
 
12630
_ACEOF
 
12631
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12632
case "(($ac_try" in
 
12633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12634
  *) ac_try_echo=$ac_try;;
 
12635
esac
 
12636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12637
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12638
  ac_status=$?
 
12639
  grep -v '^ *+' conftest.er1 >conftest.err
 
12640
  rm -f conftest.er1
 
12641
  cat conftest.err >&5
 
12642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12643
  (exit $ac_status); } >/dev/null && {
 
12644
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12645
         test ! -s conftest.err
 
12646
       }; then
 
12647
  ac_header_preproc=yes
 
12648
else
 
12649
  echo "$as_me: failed program was:" >&5
 
12650
sed 's/^/| /' conftest.$ac_ext >&5
 
12651
 
 
12652
  ac_header_preproc=no
 
12653
fi
 
12654
 
 
12655
rm -f conftest.err conftest.$ac_ext
 
12656
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12657
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
12658
 
 
12659
# So?  What about this header?
 
12660
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12661
  yes:no: )
 
12662
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12663
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12664
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12665
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12666
    ac_header_preproc=yes
 
12667
    ;;
 
12668
  no:yes:* )
 
12669
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12670
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12671
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12672
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12673
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12674
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12675
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12676
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12677
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12678
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12679
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12680
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12681
    ( cat <<\_ASBOX
 
12682
## ---------------------------------- ##
 
12683
## Report this to bug-gnupg@gnupg.org ##
 
12684
## ---------------------------------- ##
 
12685
_ASBOX
 
12686
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12687
    ;;
 
12688
esac
 
12689
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12691
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12693
else
 
12694
  eval "$as_ac_Header=\$ac_header_preproc"
 
12695
fi
 
12696
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12697
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12698
echo "${ECHO_T}$ac_res" >&6; }
 
12699
 
 
12700
fi
 
12701
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12702
  cat >>confdefs.h <<_ACEOF
 
12703
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12704
_ACEOF
 
12705
 
 
12706
fi
 
12707
 
 
12708
done
 
12709
 
 
12710
 
 
12711
 
 
12712
 
 
12713
for ac_header in pty.h pwd.h inttypes.h
 
12714
do
 
12715
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12716
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12717
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12718
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12719
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12721
fi
 
12722
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12723
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12724
echo "${ECHO_T}$ac_res" >&6; }
 
12725
else
 
12726
  # Is the header compilable?
 
12727
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
12728
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
12729
cat >conftest.$ac_ext <<_ACEOF
 
12730
/* confdefs.h.  */
 
12731
_ACEOF
 
12732
cat confdefs.h >>conftest.$ac_ext
 
12733
cat >>conftest.$ac_ext <<_ACEOF
 
12734
/* end confdefs.h.  */
 
12735
$ac_includes_default
 
12736
#include <$ac_header>
 
12737
_ACEOF
 
12738
rm -f conftest.$ac_objext
 
12739
if { (ac_try="$ac_compile"
 
12740
case "(($ac_try" in
 
12741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12742
  *) ac_try_echo=$ac_try;;
 
12743
esac
 
12744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12745
  (eval "$ac_compile") 2>conftest.er1
 
12746
  ac_status=$?
 
12747
  grep -v '^ *+' conftest.er1 >conftest.err
 
12748
  rm -f conftest.er1
 
12749
  cat conftest.err >&5
 
12750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12751
  (exit $ac_status); } && {
 
12752
         test -z "$ac_c_werror_flag" ||
 
12753
         test ! -s conftest.err
 
12754
       } && test -s conftest.$ac_objext; then
 
12755
  ac_header_compiler=yes
 
12756
else
 
12757
  echo "$as_me: failed program was:" >&5
 
12758
sed 's/^/| /' conftest.$ac_ext >&5
 
12759
 
 
12760
        ac_header_compiler=no
 
12761
fi
 
12762
 
 
12763
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12764
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12765
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
12766
 
 
12767
# Is the header present?
 
12768
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
12769
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
12770
cat >conftest.$ac_ext <<_ACEOF
 
12771
/* confdefs.h.  */
 
12772
_ACEOF
 
12773
cat confdefs.h >>conftest.$ac_ext
 
12774
cat >>conftest.$ac_ext <<_ACEOF
 
12775
/* end confdefs.h.  */
 
12776
#include <$ac_header>
 
12777
_ACEOF
 
12778
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
12779
case "(($ac_try" in
 
12780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12781
  *) ac_try_echo=$ac_try;;
 
12782
esac
 
12783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12784
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
12785
  ac_status=$?
 
12786
  grep -v '^ *+' conftest.er1 >conftest.err
 
12787
  rm -f conftest.er1
 
12788
  cat conftest.err >&5
 
12789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12790
  (exit $ac_status); } >/dev/null && {
 
12791
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
12792
         test ! -s conftest.err
 
12793
       }; then
 
12794
  ac_header_preproc=yes
 
12795
else
 
12796
  echo "$as_me: failed program was:" >&5
 
12797
sed 's/^/| /' conftest.$ac_ext >&5
 
12798
 
 
12799
  ac_header_preproc=no
 
12800
fi
 
12801
 
 
12802
rm -f conftest.err conftest.$ac_ext
 
12803
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12804
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
12805
 
 
12806
# So?  What about this header?
 
12807
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12808
  yes:no: )
 
12809
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
12810
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12811
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
12812
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
12813
    ac_header_preproc=yes
 
12814
    ;;
 
12815
  no:yes:* )
 
12816
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
12817
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
12818
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
12819
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
12820
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
12821
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
12822
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
12823
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12824
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
12825
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
12826
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
12827
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
12828
    ( cat <<\_ASBOX
 
12829
## ---------------------------------- ##
 
12830
## Report this to bug-gnupg@gnupg.org ##
 
12831
## ---------------------------------- ##
 
12832
_ASBOX
 
12833
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
12834
    ;;
 
12835
esac
 
12836
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
12837
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
12838
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
12839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12840
else
 
12841
  eval "$as_ac_Header=\$ac_header_preproc"
 
12842
fi
 
12843
ac_res=`eval echo '${'$as_ac_Header'}'`
 
12844
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
12845
echo "${ECHO_T}$ac_res" >&6; }
 
12846
 
 
12847
fi
 
12848
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
12849
  cat >>confdefs.h <<_ACEOF
 
12850
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12851
_ACEOF
 
12852
 
 
12853
fi
 
12854
 
 
12855
done
 
12856
 
 
12857
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
12858
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
12859
if test "${ac_cv_header_time+set}" = set; then
 
12860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12861
else
 
12862
  cat >conftest.$ac_ext <<_ACEOF
 
12863
/* confdefs.h.  */
 
12864
_ACEOF
 
12865
cat confdefs.h >>conftest.$ac_ext
 
12866
cat >>conftest.$ac_ext <<_ACEOF
 
12867
/* end confdefs.h.  */
 
12868
#include <sys/types.h>
 
12869
#include <sys/time.h>
 
12870
#include <time.h>
 
12871
 
 
12872
int
 
12873
main ()
 
12874
{
 
12875
if ((struct tm *) 0)
 
12876
return 0;
 
12877
  ;
 
12878
  return 0;
 
12879
}
 
12880
_ACEOF
 
12881
rm -f conftest.$ac_objext
 
12882
if { (ac_try="$ac_compile"
 
12883
case "(($ac_try" in
 
12884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12885
  *) ac_try_echo=$ac_try;;
 
12886
esac
 
12887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12888
  (eval "$ac_compile") 2>conftest.er1
 
12889
  ac_status=$?
 
12890
  grep -v '^ *+' conftest.er1 >conftest.err
 
12891
  rm -f conftest.er1
 
12892
  cat conftest.err >&5
 
12893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12894
  (exit $ac_status); } && {
 
12895
         test -z "$ac_c_werror_flag" ||
 
12896
         test ! -s conftest.err
 
12897
       } && test -s conftest.$ac_objext; then
 
12898
  ac_cv_header_time=yes
 
12899
else
 
12900
  echo "$as_me: failed program was:" >&5
 
12901
sed 's/^/| /' conftest.$ac_ext >&5
 
12902
 
 
12903
        ac_cv_header_time=no
 
12904
fi
 
12905
 
 
12906
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12907
fi
 
12908
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
12909
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
12910
if test $ac_cv_header_time = yes; then
 
12911
 
 
12912
cat >>confdefs.h <<\_ACEOF
 
12913
#define TIME_WITH_SYS_TIME 1
 
12914
_ACEOF
 
12915
 
 
12916
fi
 
12917
 
 
12918
 
 
12919
 
 
12920
#
14507
12921
# Checks for typedefs, structures, and compiler characteristics.
14508
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14509
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
12922
#
 
12923
{ echo "$as_me:$LINENO: checking for system characteristics" >&5
 
12924
echo "$as_me: checking for system characteristics" >&6;}
 
12925
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
12926
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
14510
12927
if test "${ac_cv_c_const+set}" = set; then
14511
12928
  echo $ECHO_N "(cached) $ECHO_C" >&6
14512
12929
else
14524
12941
#ifndef __cplusplus
14525
12942
  /* Ultrix mips cc rejects this.  */
14526
12943
  typedef int charset[2];
14527
 
  const charset x;
 
12944
  const charset cs;
14528
12945
  /* SunOS 4.1.1 cc rejects this.  */
14529
 
  char const *const *ccp;
14530
 
  char **p;
 
12946
  char const *const *pcpcc;
 
12947
  char **ppc;
14531
12948
  /* NEC SVR4.0.2 mips cc rejects this.  */
14532
12949
  struct point {int x, y;};
14533
12950
  static struct point const zero = {0,0};
14536
12953
     an arm of an if-expression whose if-part is not a constant
14537
12954
     expression */
14538
12955
  const char *g = "string";
14539
 
  ccp = &g + (g ? g-g : 0);
 
12956
  pcpcc = &g + (g ? g-g : 0);
14540
12957
  /* HPUX 7.0 cc rejects these. */
14541
 
  ++ccp;
14542
 
  p = (char**) ccp;
14543
 
  ccp = (char const *const *) p;
 
12958
  ++pcpcc;
 
12959
  ppc = (char**) pcpcc;
 
12960
  pcpcc = (char const *const *) ppc;
14544
12961
  { /* SCO 3.2v4 cc rejects this.  */
14545
12962
    char *t;
14546
12963
    char const *s = 0 ? (char *) 0 : (char const *) 0;
14547
12964
 
14548
12965
    *t++ = 0;
 
12966
    if (s) return 0;
14549
12967
  }
14550
12968
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14551
12969
    int x[] = {25, 17};
14564
12982
  }
14565
12983
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14566
12984
    const int foo = 10;
 
12985
    if (!foo) return 0;
14567
12986
  }
 
12987
  return !cs[0] && !zero.x;
14568
12988
#endif
14569
12989
 
14570
12990
  ;
14572
12992
}
14573
12993
_ACEOF
14574
12994
rm -f conftest.$ac_objext
14575
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576
 
  (eval $ac_compile) 2>conftest.er1
 
12995
if { (ac_try="$ac_compile"
 
12996
case "(($ac_try" in
 
12997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12998
  *) ac_try_echo=$ac_try;;
 
12999
esac
 
13000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13001
  (eval "$ac_compile") 2>conftest.er1
14577
13002
  ac_status=$?
14578
13003
  grep -v '^ *+' conftest.er1 >conftest.err
14579
13004
  rm -f conftest.er1
14580
13005
  cat conftest.err >&5
14581
13006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582
 
  (exit $ac_status); } &&
14583
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14584
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585
 
  (eval $ac_try) 2>&5
14586
 
  ac_status=$?
14587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588
 
  (exit $ac_status); }; } &&
14589
 
         { ac_try='test -s conftest.$ac_objext'
14590
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591
 
  (eval $ac_try) 2>&5
14592
 
  ac_status=$?
14593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594
 
  (exit $ac_status); }; }; then
 
13007
  (exit $ac_status); } && {
 
13008
         test -z "$ac_c_werror_flag" ||
 
13009
         test ! -s conftest.err
 
13010
       } && test -s conftest.$ac_objext; then
14595
13011
  ac_cv_c_const=yes
14596
13012
else
14597
13013
  echo "$as_me: failed program was:" >&5
14598
13014
sed 's/^/| /' conftest.$ac_ext >&5
14599
13015
 
14600
 
ac_cv_c_const=no
14601
 
fi
14602
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14603
 
fi
14604
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14605
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
13016
        ac_cv_c_const=no
 
13017
fi
 
13018
 
 
13019
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13020
fi
 
13021
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
13022
echo "${ECHO_T}$ac_cv_c_const" >&6; }
14606
13023
if test $ac_cv_c_const = no; then
14607
13024
 
14608
13025
cat >>confdefs.h <<\_ACEOF
14611
13028
 
14612
13029
fi
14613
13030
 
14614
 
echo "$as_me:$LINENO: checking for inline" >&5
14615
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
13031
{ echo "$as_me:$LINENO: checking for inline" >&5
 
13032
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
14616
13033
if test "${ac_cv_c_inline+set}" = set; then
14617
13034
  echo $ECHO_N "(cached) $ECHO_C" >&6
14618
13035
else
14632
13049
 
14633
13050
_ACEOF
14634
13051
rm -f conftest.$ac_objext
14635
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14636
 
  (eval $ac_compile) 2>conftest.er1
 
13052
if { (ac_try="$ac_compile"
 
13053
case "(($ac_try" in
 
13054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13055
  *) ac_try_echo=$ac_try;;
 
13056
esac
 
13057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13058
  (eval "$ac_compile") 2>conftest.er1
14637
13059
  ac_status=$?
14638
13060
  grep -v '^ *+' conftest.er1 >conftest.err
14639
13061
  rm -f conftest.er1
14640
13062
  cat conftest.err >&5
14641
13063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642
 
  (exit $ac_status); } &&
14643
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14644
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645
 
  (eval $ac_try) 2>&5
14646
 
  ac_status=$?
14647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648
 
  (exit $ac_status); }; } &&
14649
 
         { ac_try='test -s conftest.$ac_objext'
14650
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651
 
  (eval $ac_try) 2>&5
14652
 
  ac_status=$?
14653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654
 
  (exit $ac_status); }; }; then
14655
 
  ac_cv_c_inline=$ac_kw; break
 
13064
  (exit $ac_status); } && {
 
13065
         test -z "$ac_c_werror_flag" ||
 
13066
         test ! -s conftest.err
 
13067
       } && test -s conftest.$ac_objext; then
 
13068
  ac_cv_c_inline=$ac_kw
14656
13069
else
14657
13070
  echo "$as_me: failed program was:" >&5
14658
13071
sed 's/^/| /' conftest.$ac_ext >&5
14659
13072
 
 
13073
 
14660
13074
fi
14661
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13075
 
 
13076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13077
  test "$ac_cv_c_inline" != no && break
14662
13078
done
14663
13079
 
14664
13080
fi
14665
 
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14666
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
13081
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
13082
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
14667
13083
 
14668
13084
 
14669
13085
case $ac_cv_c_inline in
14681
13097
    ;;
14682
13098
esac
14683
13099
 
14684
 
echo "$as_me:$LINENO: checking for size_t" >&5
14685
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
13100
{ echo "$as_me:$LINENO: checking for working volatile" >&5
 
13101
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
 
13102
if test "${ac_cv_c_volatile+set}" = set; then
 
13103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13104
else
 
13105
  cat >conftest.$ac_ext <<_ACEOF
 
13106
/* confdefs.h.  */
 
13107
_ACEOF
 
13108
cat confdefs.h >>conftest.$ac_ext
 
13109
cat >>conftest.$ac_ext <<_ACEOF
 
13110
/* end confdefs.h.  */
 
13111
 
 
13112
int
 
13113
main ()
 
13114
{
 
13115
 
 
13116
volatile int x;
 
13117
int * volatile y = (int *) 0;
 
13118
return !x && !y;
 
13119
  ;
 
13120
  return 0;
 
13121
}
 
13122
_ACEOF
 
13123
rm -f conftest.$ac_objext
 
13124
if { (ac_try="$ac_compile"
 
13125
case "(($ac_try" in
 
13126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13127
  *) ac_try_echo=$ac_try;;
 
13128
esac
 
13129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13130
  (eval "$ac_compile") 2>conftest.er1
 
13131
  ac_status=$?
 
13132
  grep -v '^ *+' conftest.er1 >conftest.err
 
13133
  rm -f conftest.er1
 
13134
  cat conftest.err >&5
 
13135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13136
  (exit $ac_status); } && {
 
13137
         test -z "$ac_c_werror_flag" ||
 
13138
         test ! -s conftest.err
 
13139
       } && test -s conftest.$ac_objext; then
 
13140
  ac_cv_c_volatile=yes
 
13141
else
 
13142
  echo "$as_me: failed program was:" >&5
 
13143
sed 's/^/| /' conftest.$ac_ext >&5
 
13144
 
 
13145
        ac_cv_c_volatile=no
 
13146
fi
 
13147
 
 
13148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13149
fi
 
13150
{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
13151
echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
 
13152
if test $ac_cv_c_volatile = no; then
 
13153
 
 
13154
cat >>confdefs.h <<\_ACEOF
 
13155
#define volatile
 
13156
_ACEOF
 
13157
 
 
13158
fi
 
13159
 
 
13160
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
13161
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14686
13162
if test "${ac_cv_type_size_t+set}" = set; then
14687
13163
  echo $ECHO_N "(cached) $ECHO_C" >&6
14688
13164
else
14693
13169
cat >>conftest.$ac_ext <<_ACEOF
14694
13170
/* end confdefs.h.  */
14695
13171
$ac_includes_default
 
13172
typedef size_t ac__type_new_;
14696
13173
int
14697
13174
main ()
14698
13175
{
14699
 
if ((size_t *) 0)
 
13176
if ((ac__type_new_ *) 0)
14700
13177
  return 0;
14701
 
if (sizeof (size_t))
 
13178
if (sizeof (ac__type_new_))
14702
13179
  return 0;
14703
13180
  ;
14704
13181
  return 0;
14705
13182
}
14706
13183
_ACEOF
14707
13184
rm -f conftest.$ac_objext
14708
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709
 
  (eval $ac_compile) 2>conftest.er1
 
13185
if { (ac_try="$ac_compile"
 
13186
case "(($ac_try" in
 
13187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13188
  *) ac_try_echo=$ac_try;;
 
13189
esac
 
13190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13191
  (eval "$ac_compile") 2>conftest.er1
14710
13192
  ac_status=$?
14711
13193
  grep -v '^ *+' conftest.er1 >conftest.err
14712
13194
  rm -f conftest.er1
14713
13195
  cat conftest.err >&5
14714
13196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715
 
  (exit $ac_status); } &&
14716
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14717
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718
 
  (eval $ac_try) 2>&5
14719
 
  ac_status=$?
14720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721
 
  (exit $ac_status); }; } &&
14722
 
         { ac_try='test -s conftest.$ac_objext'
14723
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724
 
  (eval $ac_try) 2>&5
14725
 
  ac_status=$?
14726
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727
 
  (exit $ac_status); }; }; then
 
13197
  (exit $ac_status); } && {
 
13198
         test -z "$ac_c_werror_flag" ||
 
13199
         test ! -s conftest.err
 
13200
       } && test -s conftest.$ac_objext; then
14728
13201
  ac_cv_type_size_t=yes
14729
13202
else
14730
13203
  echo "$as_me: failed program was:" >&5
14731
13204
sed 's/^/| /' conftest.$ac_ext >&5
14732
13205
 
14733
 
ac_cv_type_size_t=no
14734
 
fi
14735
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14736
 
fi
14737
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14738
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
13206
        ac_cv_type_size_t=no
 
13207
fi
 
13208
 
 
13209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13210
fi
 
13211
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
13212
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14739
13213
if test $ac_cv_type_size_t = yes; then
14740
13214
  :
14741
13215
else
14742
13216
 
14743
13217
cat >>confdefs.h <<_ACEOF
14744
 
#define size_t unsigned
14745
 
_ACEOF
14746
 
 
14747
 
fi
14748
 
 
14749
 
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14750
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
13218
#define size_t unsigned int
 
13219
_ACEOF
 
13220
 
 
13221
fi
 
13222
 
 
13223
{ echo "$as_me:$LINENO: checking for mode_t" >&5
 
13224
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
 
13225
if test "${ac_cv_type_mode_t+set}" = set; then
 
13226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13227
else
 
13228
  cat >conftest.$ac_ext <<_ACEOF
 
13229
/* confdefs.h.  */
 
13230
_ACEOF
 
13231
cat confdefs.h >>conftest.$ac_ext
 
13232
cat >>conftest.$ac_ext <<_ACEOF
 
13233
/* end confdefs.h.  */
 
13234
$ac_includes_default
 
13235
typedef mode_t ac__type_new_;
 
13236
int
 
13237
main ()
 
13238
{
 
13239
if ((ac__type_new_ *) 0)
 
13240
  return 0;
 
13241
if (sizeof (ac__type_new_))
 
13242
  return 0;
 
13243
  ;
 
13244
  return 0;
 
13245
}
 
13246
_ACEOF
 
13247
rm -f conftest.$ac_objext
 
13248
if { (ac_try="$ac_compile"
 
13249
case "(($ac_try" in
 
13250
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13251
  *) ac_try_echo=$ac_try;;
 
13252
esac
 
13253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13254
  (eval "$ac_compile") 2>conftest.er1
 
13255
  ac_status=$?
 
13256
  grep -v '^ *+' conftest.er1 >conftest.err
 
13257
  rm -f conftest.er1
 
13258
  cat conftest.err >&5
 
13259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13260
  (exit $ac_status); } && {
 
13261
         test -z "$ac_c_werror_flag" ||
 
13262
         test ! -s conftest.err
 
13263
       } && test -s conftest.$ac_objext; then
 
13264
  ac_cv_type_mode_t=yes
 
13265
else
 
13266
  echo "$as_me: failed program was:" >&5
 
13267
sed 's/^/| /' conftest.$ac_ext >&5
 
13268
 
 
13269
        ac_cv_type_mode_t=no
 
13270
fi
 
13271
 
 
13272
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13273
fi
 
13274
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 
13275
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
 
13276
if test $ac_cv_type_mode_t = yes; then
 
13277
  :
 
13278
else
 
13279
 
 
13280
cat >>confdefs.h <<_ACEOF
 
13281
#define mode_t int
 
13282
_ACEOF
 
13283
 
 
13284
fi
 
13285
 
 
13286
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
13287
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14751
13288
if test "${ac_cv_type_signal+set}" = set; then
14752
13289
  echo $ECHO_N "(cached) $ECHO_C" >&6
14753
13290
else
14759
13296
/* end confdefs.h.  */
14760
13297
#include <sys/types.h>
14761
13298
#include <signal.h>
14762
 
#ifdef signal
14763
 
# undef signal
14764
 
#endif
14765
 
#ifdef __cplusplus
14766
 
extern "C" void (*signal (int, void (*)(int)))(int);
14767
 
#else
14768
 
void (*signal ()) ();
14769
 
#endif
14770
13299
 
14771
13300
int
14772
13301
main ()
14773
13302
{
14774
 
int i;
 
13303
return *(signal (0, 0)) (0) == 1;
14775
13304
  ;
14776
13305
  return 0;
14777
13306
}
14778
13307
_ACEOF
14779
13308
rm -f conftest.$ac_objext
14780
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14781
 
  (eval $ac_compile) 2>conftest.er1
 
13309
if { (ac_try="$ac_compile"
 
13310
case "(($ac_try" in
 
13311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13312
  *) ac_try_echo=$ac_try;;
 
13313
esac
 
13314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13315
  (eval "$ac_compile") 2>conftest.er1
14782
13316
  ac_status=$?
14783
13317
  grep -v '^ *+' conftest.er1 >conftest.err
14784
13318
  rm -f conftest.er1
14785
13319
  cat conftest.err >&5
14786
13320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787
 
  (exit $ac_status); } &&
14788
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14789
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790
 
  (eval $ac_try) 2>&5
14791
 
  ac_status=$?
14792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793
 
  (exit $ac_status); }; } &&
14794
 
         { ac_try='test -s conftest.$ac_objext'
14795
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796
 
  (eval $ac_try) 2>&5
14797
 
  ac_status=$?
14798
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799
 
  (exit $ac_status); }; }; then
14800
 
  ac_cv_type_signal=void
 
13321
  (exit $ac_status); } && {
 
13322
         test -z "$ac_c_werror_flag" ||
 
13323
         test ! -s conftest.err
 
13324
       } && test -s conftest.$ac_objext; then
 
13325
  ac_cv_type_signal=int
14801
13326
else
14802
13327
  echo "$as_me: failed program was:" >&5
14803
13328
sed 's/^/| /' conftest.$ac_ext >&5
14804
13329
 
14805
 
ac_cv_type_signal=int
14806
 
fi
14807
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14808
 
fi
14809
 
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14810
 
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
13330
        ac_cv_type_signal=void
 
13331
fi
 
13332
 
 
13333
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13334
fi
 
13335
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
13336
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14811
13337
 
14812
13338
cat >>confdefs.h <<_ACEOF
14813
13339
#define RETSIGTYPE $ac_cv_type_signal
14814
13340
_ACEOF
14815
13341
 
14816
13342
 
14817
 
echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
14818
 
echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
 
13343
{ echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
 
13344
echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
14819
13345
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
14820
13346
  echo $ECHO_N "(cached) $ECHO_C" >&6
14821
13347
else
14827
13353
/* end confdefs.h.  */
14828
13354
#include <signal.h>
14829
13355
/* NetBSD declares sys_siglist in unistd.h.  */
14830
 
#if HAVE_UNISTD_H
 
13356
#ifdef HAVE_UNISTD_H
14831
13357
# include <unistd.h>
14832
13358
#endif
14833
13359
 
14836
13362
main ()
14837
13363
{
14838
13364
#ifndef sys_siglist
14839
 
  char *p = (char *) sys_siglist;
 
13365
  (void) sys_siglist;
14840
13366
#endif
14841
13367
 
14842
13368
  ;
14844
13370
}
14845
13371
_ACEOF
14846
13372
rm -f conftest.$ac_objext
14847
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14848
 
  (eval $ac_compile) 2>conftest.er1
 
13373
if { (ac_try="$ac_compile"
 
13374
case "(($ac_try" in
 
13375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13376
  *) ac_try_echo=$ac_try;;
 
13377
esac
 
13378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13379
  (eval "$ac_compile") 2>conftest.er1
14849
13380
  ac_status=$?
14850
13381
  grep -v '^ *+' conftest.er1 >conftest.err
14851
13382
  rm -f conftest.er1
14852
13383
  cat conftest.err >&5
14853
13384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854
 
  (exit $ac_status); } &&
14855
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14856
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857
 
  (eval $ac_try) 2>&5
14858
 
  ac_status=$?
14859
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860
 
  (exit $ac_status); }; } &&
14861
 
         { ac_try='test -s conftest.$ac_objext'
14862
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863
 
  (eval $ac_try) 2>&5
14864
 
  ac_status=$?
14865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866
 
  (exit $ac_status); }; }; then
 
13385
  (exit $ac_status); } && {
 
13386
         test -z "$ac_c_werror_flag" ||
 
13387
         test ! -s conftest.err
 
13388
       } && test -s conftest.$ac_objext; then
14867
13389
  ac_cv_have_decl_sys_siglist=yes
14868
13390
else
14869
13391
  echo "$as_me: failed program was:" >&5
14870
13392
sed 's/^/| /' conftest.$ac_ext >&5
14871
13393
 
14872
 
ac_cv_have_decl_sys_siglist=no
14873
 
fi
14874
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14875
 
fi
14876
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
14877
 
echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
 
13394
        ac_cv_have_decl_sys_siglist=no
 
13395
fi
 
13396
 
 
13397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13398
fi
 
13399
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
 
13400
echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
14878
13401
if test $ac_cv_have_decl_sys_siglist = yes; then
14879
13402
 
14880
13403
cat >>confdefs.h <<_ACEOF
14893
13416
 
14894
13417
 
14895
13418
 
 
13419
# Check whether --enable-endian-check was given.
 
13420
if test "${enable_endian_check+set}" = set; then
 
13421
  enableval=$enable_endian_check; endiancheck=$enableval
 
13422
else
 
13423
  endiancheck=yes
 
13424
fi
 
13425
 
 
13426
 
 
13427
if test x"$endiancheck" = xyes ; then
14896
13428
 
14897
13429
    tmp_assumed_endian=big
14898
13430
    if test "$cross_compiling" = yes; then
14906
13438
      { echo "$as_me:$LINENO: WARNING: cross compiling; assuming $tmp_assumed_endian endianess" >&5
14907
13439
echo "$as_me: WARNING: cross compiling; assuming $tmp_assumed_endian endianess" >&2;}
14908
13440
    fi
14909
 
    echo "$as_me:$LINENO: checking endianess" >&5
14910
 
echo $ECHO_N "checking endianess... $ECHO_C" >&6
 
13441
    { echo "$as_me:$LINENO: checking endianess" >&5
 
13442
echo $ECHO_N "checking endianess... $ECHO_C" >&6; }
14911
13443
    if test "${gnupg_cv_c_endian+set}" = set; then
14912
13444
  echo $ECHO_N "(cached) $ECHO_C" >&6
14913
13445
else
14933
13465
}
14934
13466
_ACEOF
14935
13467
rm -f conftest.$ac_objext
14936
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14937
 
  (eval $ac_compile) 2>conftest.er1
 
13468
if { (ac_try="$ac_compile"
 
13469
case "(($ac_try" in
 
13470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13471
  *) ac_try_echo=$ac_try;;
 
13472
esac
 
13473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13474
  (eval "$ac_compile") 2>conftest.er1
14938
13475
  ac_status=$?
14939
13476
  grep -v '^ *+' conftest.er1 >conftest.err
14940
13477
  rm -f conftest.er1
14941
13478
  cat conftest.err >&5
14942
13479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943
 
  (exit $ac_status); } &&
14944
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14945
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946
 
  (eval $ac_try) 2>&5
14947
 
  ac_status=$?
14948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949
 
  (exit $ac_status); }; } &&
14950
 
         { ac_try='test -s conftest.$ac_objext'
14951
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952
 
  (eval $ac_try) 2>&5
14953
 
  ac_status=$?
14954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955
 
  (exit $ac_status); }; }; then
 
13480
  (exit $ac_status); } && {
 
13481
         test -z "$ac_c_werror_flag" ||
 
13482
         test ! -s conftest.err
 
13483
       } && test -s conftest.$ac_objext; then
14956
13484
  # It does; now see whether it defined to BIG_ENDIAN or not.
14957
13485
        cat >conftest.$ac_ext <<_ACEOF
14958
13486
/* confdefs.h.  */
14974
13502
}
14975
13503
_ACEOF
14976
13504
rm -f conftest.$ac_objext
14977
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978
 
  (eval $ac_compile) 2>conftest.er1
 
13505
if { (ac_try="$ac_compile"
 
13506
case "(($ac_try" in
 
13507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13508
  *) ac_try_echo=$ac_try;;
 
13509
esac
 
13510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13511
  (eval "$ac_compile") 2>conftest.er1
14979
13512
  ac_status=$?
14980
13513
  grep -v '^ *+' conftest.er1 >conftest.err
14981
13514
  rm -f conftest.er1
14982
13515
  cat conftest.err >&5
14983
13516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984
 
  (exit $ac_status); } &&
14985
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14986
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987
 
  (eval $ac_try) 2>&5
14988
 
  ac_status=$?
14989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990
 
  (exit $ac_status); }; } &&
14991
 
         { ac_try='test -s conftest.$ac_objext'
14992
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993
 
  (eval $ac_try) 2>&5
14994
 
  ac_status=$?
14995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996
 
  (exit $ac_status); }; }; then
 
13517
  (exit $ac_status); } && {
 
13518
         test -z "$ac_c_werror_flag" ||
 
13519
         test ! -s conftest.err
 
13520
       } && test -s conftest.$ac_objext; then
14997
13521
  gnupg_cv_c_endian=big
14998
13522
else
14999
13523
  echo "$as_me: failed program was:" >&5
15000
13524
sed 's/^/| /' conftest.$ac_ext >&5
15001
13525
 
15002
 
gnupg_cv_c_endian=little
 
13526
        gnupg_cv_c_endian=little
15003
13527
fi
15004
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13528
 
 
13529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15005
13530
else
15006
13531
  echo "$as_me: failed program was:" >&5
15007
13532
sed 's/^/| /' conftest.$ac_ext >&5
15008
13533
 
 
13534
 
15009
13535
fi
15010
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13536
 
 
13537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011
13538
        if test "$gnupg_cv_c_endian" = unknown; then
15012
13539
            if test "$cross_compiling" = yes; then
15013
13540
  gnupg_cv_c_endian=$tmp_assumed_endian
15031
13558
              }
15032
13559
_ACEOF
15033
13560
rm -f conftest$ac_exeext
15034
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15035
 
  (eval $ac_link) 2>&5
 
13561
if { (ac_try="$ac_link"
 
13562
case "(($ac_try" in
 
13563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13564
  *) ac_try_echo=$ac_try;;
 
13565
esac
 
13566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13567
  (eval "$ac_link") 2>&5
15036
13568
  ac_status=$?
15037
13569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038
13570
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15039
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040
 
  (eval $ac_try) 2>&5
 
13571
  { (case "(($ac_try" in
 
13572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13573
  *) ac_try_echo=$ac_try;;
 
13574
esac
 
13575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13576
  (eval "$ac_try") 2>&5
15041
13577
  ac_status=$?
15042
13578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043
13579
  (exit $ac_status); }; }; then
15050
13586
( exit $ac_status )
15051
13587
gnupg_cv_c_endian=big
15052
13588
fi
15053
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13589
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15054
13590
fi
 
13591
 
 
13592
 
15055
13593
        fi
15056
13594
 
15057
13595
fi
15058
13596
 
15059
 
    echo "$as_me:$LINENO: result: $gnupg_cv_c_endian" >&5
15060
 
echo "${ECHO_T}$gnupg_cv_c_endian" >&6
 
13597
    { echo "$as_me:$LINENO: result: $gnupg_cv_c_endian" >&5
 
13598
echo "${ECHO_T}$gnupg_cv_c_endian" >&6; }
15061
13599
    if test "$gnupg_cv_c_endian" = little; then
15062
13600
 
15063
13601
cat >>confdefs.h <<\_ACEOF
15072
13610
 
15073
13611
    fi
15074
13612
 
 
13613
fi
15075
13614
 
15076
 
 echo "$as_me:$LINENO: checking for byte typedef" >&5
15077
 
echo $ECHO_N "checking for byte typedef... $ECHO_C" >&6
 
13615
# fixme: we should get rid of the byte type
 
13616
 { echo "$as_me:$LINENO: checking for byte typedef" >&5
 
13617
echo $ECHO_N "checking for byte typedef... $ECHO_C" >&6; }
15078
13618
    if test "${gnupg_cv_typedef_byte+set}" = set; then
15079
13619
  echo $ECHO_N "(cached) $ECHO_C" >&6
15080
13620
else
15099
13639
}
15100
13640
_ACEOF
15101
13641
rm -f conftest.$ac_objext
15102
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15103
 
  (eval $ac_compile) 2>conftest.er1
 
13642
if { (ac_try="$ac_compile"
 
13643
case "(($ac_try" in
 
13644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13645
  *) ac_try_echo=$ac_try;;
 
13646
esac
 
13647
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13648
  (eval "$ac_compile") 2>conftest.er1
15104
13649
  ac_status=$?
15105
13650
  grep -v '^ *+' conftest.er1 >conftest.err
15106
13651
  rm -f conftest.er1
15107
13652
  cat conftest.err >&5
15108
13653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109
 
  (exit $ac_status); } &&
15110
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15111
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112
 
  (eval $ac_try) 2>&5
15113
 
  ac_status=$?
15114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115
 
  (exit $ac_status); }; } &&
15116
 
         { ac_try='test -s conftest.$ac_objext'
15117
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118
 
  (eval $ac_try) 2>&5
15119
 
  ac_status=$?
15120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121
 
  (exit $ac_status); }; }; then
 
13654
  (exit $ac_status); } && {
 
13655
         test -z "$ac_c_werror_flag" ||
 
13656
         test ! -s conftest.err
 
13657
       } && test -s conftest.$ac_objext; then
15122
13658
  gnupg_cv_typedef_byte=yes
15123
13659
else
15124
13660
  echo "$as_me: failed program was:" >&5
15125
13661
sed 's/^/| /' conftest.$ac_ext >&5
15126
13662
 
15127
 
gnupg_cv_typedef_byte=no
15128
 
fi
15129
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15130
 
fi
15131
 
 
15132
 
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_byte" >&5
15133
 
echo "${ECHO_T}$gnupg_cv_typedef_byte" >&6
 
13663
        gnupg_cv_typedef_byte=no
 
13664
fi
 
13665
 
 
13666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13667
fi
 
13668
 
 
13669
    { echo "$as_me:$LINENO: result: $gnupg_cv_typedef_byte" >&5
 
13670
echo "${ECHO_T}$gnupg_cv_typedef_byte" >&6; }
15134
13671
    if test "$gnupg_cv_typedef_byte" = yes; then
15135
13672
 
15136
13673
cat >>confdefs.h <<\_ACEOF
15139
13676
 
15140
13677
    fi
15141
13678
 
15142
 
 echo "$as_me:$LINENO: checking for ushort typedef" >&5
15143
 
echo $ECHO_N "checking for ushort typedef... $ECHO_C" >&6
 
13679
 { echo "$as_me:$LINENO: checking for ushort typedef" >&5
 
13680
echo $ECHO_N "checking for ushort typedef... $ECHO_C" >&6; }
15144
13681
    if test "${gnupg_cv_typedef_ushort+set}" = set; then
15145
13682
  echo $ECHO_N "(cached) $ECHO_C" >&6
15146
13683
else
15165
13702
}
15166
13703
_ACEOF
15167
13704
rm -f conftest.$ac_objext
15168
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15169
 
  (eval $ac_compile) 2>conftest.er1
 
13705
if { (ac_try="$ac_compile"
 
13706
case "(($ac_try" in
 
13707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13708
  *) ac_try_echo=$ac_try;;
 
13709
esac
 
13710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13711
  (eval "$ac_compile") 2>conftest.er1
15170
13712
  ac_status=$?
15171
13713
  grep -v '^ *+' conftest.er1 >conftest.err
15172
13714
  rm -f conftest.er1
15173
13715
  cat conftest.err >&5
15174
13716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175
 
  (exit $ac_status); } &&
15176
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15177
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178
 
  (eval $ac_try) 2>&5
15179
 
  ac_status=$?
15180
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181
 
  (exit $ac_status); }; } &&
15182
 
         { ac_try='test -s conftest.$ac_objext'
15183
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184
 
  (eval $ac_try) 2>&5
15185
 
  ac_status=$?
15186
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187
 
  (exit $ac_status); }; }; then
 
13717
  (exit $ac_status); } && {
 
13718
         test -z "$ac_c_werror_flag" ||
 
13719
         test ! -s conftest.err
 
13720
       } && test -s conftest.$ac_objext; then
15188
13721
  gnupg_cv_typedef_ushort=yes
15189
13722
else
15190
13723
  echo "$as_me: failed program was:" >&5
15191
13724
sed 's/^/| /' conftest.$ac_ext >&5
15192
13725
 
15193
 
gnupg_cv_typedef_ushort=no
15194
 
fi
15195
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15196
 
fi
15197
 
 
15198
 
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ushort" >&5
15199
 
echo "${ECHO_T}$gnupg_cv_typedef_ushort" >&6
 
13726
        gnupg_cv_typedef_ushort=no
 
13727
fi
 
13728
 
 
13729
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13730
fi
 
13731
 
 
13732
    { echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ushort" >&5
 
13733
echo "${ECHO_T}$gnupg_cv_typedef_ushort" >&6; }
15200
13734
    if test "$gnupg_cv_typedef_ushort" = yes; then
15201
13735
 
15202
13736
cat >>confdefs.h <<\_ACEOF
15205
13739
 
15206
13740
    fi
15207
13741
 
15208
 
 echo "$as_me:$LINENO: checking for ulong typedef" >&5
15209
 
echo $ECHO_N "checking for ulong typedef... $ECHO_C" >&6
 
13742
 { echo "$as_me:$LINENO: checking for ulong typedef" >&5
 
13743
echo $ECHO_N "checking for ulong typedef... $ECHO_C" >&6; }
15210
13744
    if test "${gnupg_cv_typedef_ulong+set}" = set; then
15211
13745
  echo $ECHO_N "(cached) $ECHO_C" >&6
15212
13746
else
15231
13765
}
15232
13766
_ACEOF
15233
13767
rm -f conftest.$ac_objext
15234
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235
 
  (eval $ac_compile) 2>conftest.er1
 
13768
if { (ac_try="$ac_compile"
 
13769
case "(($ac_try" in
 
13770
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13771
  *) ac_try_echo=$ac_try;;
 
13772
esac
 
13773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13774
  (eval "$ac_compile") 2>conftest.er1
15236
13775
  ac_status=$?
15237
13776
  grep -v '^ *+' conftest.er1 >conftest.err
15238
13777
  rm -f conftest.er1
15239
13778
  cat conftest.err >&5
15240
13779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241
 
  (exit $ac_status); } &&
15242
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15243
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244
 
  (eval $ac_try) 2>&5
15245
 
  ac_status=$?
15246
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247
 
  (exit $ac_status); }; } &&
15248
 
         { ac_try='test -s conftest.$ac_objext'
15249
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250
 
  (eval $ac_try) 2>&5
15251
 
  ac_status=$?
15252
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253
 
  (exit $ac_status); }; }; then
 
13780
  (exit $ac_status); } && {
 
13781
         test -z "$ac_c_werror_flag" ||
 
13782
         test ! -s conftest.err
 
13783
       } && test -s conftest.$ac_objext; then
15254
13784
  gnupg_cv_typedef_ulong=yes
15255
13785
else
15256
13786
  echo "$as_me: failed program was:" >&5
15257
13787
sed 's/^/| /' conftest.$ac_ext >&5
15258
13788
 
15259
 
gnupg_cv_typedef_ulong=no
15260
 
fi
15261
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15262
 
fi
15263
 
 
15264
 
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ulong" >&5
15265
 
echo "${ECHO_T}$gnupg_cv_typedef_ulong" >&6
 
13789
        gnupg_cv_typedef_ulong=no
 
13790
fi
 
13791
 
 
13792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13793
fi
 
13794
 
 
13795
    { echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ulong" >&5
 
13796
echo "${ECHO_T}$gnupg_cv_typedef_ulong" >&6; }
15266
13797
    if test "$gnupg_cv_typedef_ulong" = yes; then
15267
13798
 
15268
13799
cat >>confdefs.h <<\_ACEOF
15271
13802
 
15272
13803
    fi
15273
13804
 
15274
 
 echo "$as_me:$LINENO: checking for u16 typedef" >&5
15275
 
echo $ECHO_N "checking for u16 typedef... $ECHO_C" >&6
 
13805
 { echo "$as_me:$LINENO: checking for u16 typedef" >&5
 
13806
echo $ECHO_N "checking for u16 typedef... $ECHO_C" >&6; }
15276
13807
    if test "${gnupg_cv_typedef_u16+set}" = set; then
15277
13808
  echo $ECHO_N "(cached) $ECHO_C" >&6
15278
13809
else
15297
13828
}
15298
13829
_ACEOF
15299
13830
rm -f conftest.$ac_objext
15300
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301
 
  (eval $ac_compile) 2>conftest.er1
 
13831
if { (ac_try="$ac_compile"
 
13832
case "(($ac_try" in
 
13833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13834
  *) ac_try_echo=$ac_try;;
 
13835
esac
 
13836
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13837
  (eval "$ac_compile") 2>conftest.er1
15302
13838
  ac_status=$?
15303
13839
  grep -v '^ *+' conftest.er1 >conftest.err
15304
13840
  rm -f conftest.er1
15305
13841
  cat conftest.err >&5
15306
13842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307
 
  (exit $ac_status); } &&
15308
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15309
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310
 
  (eval $ac_try) 2>&5
15311
 
  ac_status=$?
15312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313
 
  (exit $ac_status); }; } &&
15314
 
         { ac_try='test -s conftest.$ac_objext'
15315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316
 
  (eval $ac_try) 2>&5
15317
 
  ac_status=$?
15318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319
 
  (exit $ac_status); }; }; then
 
13843
  (exit $ac_status); } && {
 
13844
         test -z "$ac_c_werror_flag" ||
 
13845
         test ! -s conftest.err
 
13846
       } && test -s conftest.$ac_objext; then
15320
13847
  gnupg_cv_typedef_u16=yes
15321
13848
else
15322
13849
  echo "$as_me: failed program was:" >&5
15323
13850
sed 's/^/| /' conftest.$ac_ext >&5
15324
13851
 
15325
 
gnupg_cv_typedef_u16=no
15326
 
fi
15327
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15328
 
fi
15329
 
 
15330
 
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_u16" >&5
15331
 
echo "${ECHO_T}$gnupg_cv_typedef_u16" >&6
 
13852
        gnupg_cv_typedef_u16=no
 
13853
fi
 
13854
 
 
13855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13856
fi
 
13857
 
 
13858
    { echo "$as_me:$LINENO: result: $gnupg_cv_typedef_u16" >&5
 
13859
echo "${ECHO_T}$gnupg_cv_typedef_u16" >&6; }
15332
13860
    if test "$gnupg_cv_typedef_u16" = yes; then
15333
13861
 
15334
13862
cat >>confdefs.h <<\_ACEOF
15337
13865
 
15338
13866
    fi
15339
13867
 
15340
 
 echo "$as_me:$LINENO: checking for u32 typedef" >&5
15341
 
echo $ECHO_N "checking for u32 typedef... $ECHO_C" >&6
 
13868
 { echo "$as_me:$LINENO: checking for u32 typedef" >&5
 
13869
echo $ECHO_N "checking for u32 typedef... $ECHO_C" >&6; }
15342
13870
    if test "${gnupg_cv_typedef_u32+set}" = set; then
15343
13871
  echo $ECHO_N "(cached) $ECHO_C" >&6
15344
13872
else
15363
13891
}
15364
13892
_ACEOF
15365
13893
rm -f conftest.$ac_objext
15366
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367
 
  (eval $ac_compile) 2>conftest.er1
 
13894
if { (ac_try="$ac_compile"
 
13895
case "(($ac_try" in
 
13896
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13897
  *) ac_try_echo=$ac_try;;
 
13898
esac
 
13899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13900
  (eval "$ac_compile") 2>conftest.er1
15368
13901
  ac_status=$?
15369
13902
  grep -v '^ *+' conftest.er1 >conftest.err
15370
13903
  rm -f conftest.er1
15371
13904
  cat conftest.err >&5
15372
13905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373
 
  (exit $ac_status); } &&
15374
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15375
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376
 
  (eval $ac_try) 2>&5
15377
 
  ac_status=$?
15378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379
 
  (exit $ac_status); }; } &&
15380
 
         { ac_try='test -s conftest.$ac_objext'
15381
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382
 
  (eval $ac_try) 2>&5
15383
 
  ac_status=$?
15384
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385
 
  (exit $ac_status); }; }; then
 
13906
  (exit $ac_status); } && {
 
13907
         test -z "$ac_c_werror_flag" ||
 
13908
         test ! -s conftest.err
 
13909
       } && test -s conftest.$ac_objext; then
15386
13910
  gnupg_cv_typedef_u32=yes
15387
13911
else
15388
13912
  echo "$as_me: failed program was:" >&5
15389
13913
sed 's/^/| /' conftest.$ac_ext >&5
15390
13914
 
15391
 
gnupg_cv_typedef_u32=no
15392
 
fi
15393
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15394
 
fi
15395
 
 
15396
 
    echo "$as_me:$LINENO: result: $gnupg_cv_typedef_u32" >&5
15397
 
echo "${ECHO_T}$gnupg_cv_typedef_u32" >&6
 
13915
        gnupg_cv_typedef_u32=no
 
13916
fi
 
13917
 
 
13918
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13919
fi
 
13920
 
 
13921
    { echo "$as_me:$LINENO: result: $gnupg_cv_typedef_u32" >&5
 
13922
echo "${ECHO_T}$gnupg_cv_typedef_u32" >&6; }
15398
13923
    if test "$gnupg_cv_typedef_u32" = yes; then
15399
13924
 
15400
13925
cat >>confdefs.h <<\_ACEOF
15404
13929
    fi
15405
13930
 
15406
13931
 
15407
 
echo "$as_me:$LINENO: checking for unsigned short" >&5
15408
 
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
 
13932
{ echo "$as_me:$LINENO: checking for unsigned short" >&5
 
13933
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
15409
13934
if test "${ac_cv_type_unsigned_short+set}" = set; then
15410
13935
  echo $ECHO_N "(cached) $ECHO_C" >&6
15411
13936
else
15416
13941
cat >>conftest.$ac_ext <<_ACEOF
15417
13942
/* end confdefs.h.  */
15418
13943
$ac_includes_default
 
13944
typedef unsigned short ac__type_new_;
15419
13945
int
15420
13946
main ()
15421
13947
{
15422
 
if ((unsigned short *) 0)
 
13948
if ((ac__type_new_ *) 0)
15423
13949
  return 0;
15424
 
if (sizeof (unsigned short))
 
13950
if (sizeof (ac__type_new_))
15425
13951
  return 0;
15426
13952
  ;
15427
13953
  return 0;
15428
13954
}
15429
13955
_ACEOF
15430
13956
rm -f conftest.$ac_objext
15431
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15432
 
  (eval $ac_compile) 2>conftest.er1
 
13957
if { (ac_try="$ac_compile"
 
13958
case "(($ac_try" in
 
13959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13960
  *) ac_try_echo=$ac_try;;
 
13961
esac
 
13962
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13963
  (eval "$ac_compile") 2>conftest.er1
15433
13964
  ac_status=$?
15434
13965
  grep -v '^ *+' conftest.er1 >conftest.err
15435
13966
  rm -f conftest.er1
15436
13967
  cat conftest.err >&5
15437
13968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438
 
  (exit $ac_status); } &&
15439
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15440
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441
 
  (eval $ac_try) 2>&5
15442
 
  ac_status=$?
15443
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444
 
  (exit $ac_status); }; } &&
15445
 
         { ac_try='test -s conftest.$ac_objext'
15446
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447
 
  (eval $ac_try) 2>&5
15448
 
  ac_status=$?
15449
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450
 
  (exit $ac_status); }; }; then
 
13969
  (exit $ac_status); } && {
 
13970
         test -z "$ac_c_werror_flag" ||
 
13971
         test ! -s conftest.err
 
13972
       } && test -s conftest.$ac_objext; then
15451
13973
  ac_cv_type_unsigned_short=yes
15452
13974
else
15453
13975
  echo "$as_me: failed program was:" >&5
15454
13976
sed 's/^/| /' conftest.$ac_ext >&5
15455
13977
 
15456
 
ac_cv_type_unsigned_short=no
15457
 
fi
15458
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15459
 
fi
15460
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
15461
 
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
15462
 
 
15463
 
echo "$as_me:$LINENO: checking size of unsigned short" >&5
15464
 
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
 
13978
        ac_cv_type_unsigned_short=no
 
13979
fi
 
13980
 
 
13981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13982
fi
 
13983
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
 
13984
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
 
13985
 
 
13986
# The cast to long int works around a bug in the HP C Compiler
 
13987
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
13988
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
13989
# This bug is HP SR number 8606223364.
 
13990
{ echo "$as_me:$LINENO: checking size of unsigned short" >&5
 
13991
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
15465
13992
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
15466
13993
  echo $ECHO_N "(cached) $ECHO_C" >&6
15467
13994
else
15468
 
  if test "$ac_cv_type_unsigned_short" = yes; then
15469
 
  # The cast to unsigned long works around a bug in the HP C Compiler
15470
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15471
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15472
 
  # This bug is HP SR number 8606223364.
15473
13995
  if test "$cross_compiling" = yes; then
15474
13996
  # Depending upon the size, compute the lo and hi bounds.
15475
13997
cat >conftest.$ac_ext <<_ACEOF
15479
14001
cat >>conftest.$ac_ext <<_ACEOF
15480
14002
/* end confdefs.h.  */
15481
14003
$ac_includes_default
 
14004
   typedef unsigned short ac__type_sizeof_;
15482
14005
int
15483
14006
main ()
15484
14007
{
15485
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
 
14008
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15486
14009
test_array [0] = 0
15487
14010
 
15488
14011
  ;
15490
14013
}
15491
14014
_ACEOF
15492
14015
rm -f conftest.$ac_objext
15493
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15494
 
  (eval $ac_compile) 2>conftest.er1
 
14016
if { (ac_try="$ac_compile"
 
14017
case "(($ac_try" in
 
14018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14019
  *) ac_try_echo=$ac_try;;
 
14020
esac
 
14021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14022
  (eval "$ac_compile") 2>conftest.er1
15495
14023
  ac_status=$?
15496
14024
  grep -v '^ *+' conftest.er1 >conftest.err
15497
14025
  rm -f conftest.er1
15498
14026
  cat conftest.err >&5
15499
14027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500
 
  (exit $ac_status); } &&
15501
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15502
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503
 
  (eval $ac_try) 2>&5
15504
 
  ac_status=$?
15505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506
 
  (exit $ac_status); }; } &&
15507
 
         { ac_try='test -s conftest.$ac_objext'
15508
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509
 
  (eval $ac_try) 2>&5
15510
 
  ac_status=$?
15511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512
 
  (exit $ac_status); }; }; then
 
14028
  (exit $ac_status); } && {
 
14029
         test -z "$ac_c_werror_flag" ||
 
14030
         test ! -s conftest.err
 
14031
       } && test -s conftest.$ac_objext; then
15513
14032
  ac_lo=0 ac_mid=0
15514
14033
  while :; do
15515
14034
    cat >conftest.$ac_ext <<_ACEOF
15519
14038
cat >>conftest.$ac_ext <<_ACEOF
15520
14039
/* end confdefs.h.  */
15521
14040
$ac_includes_default
 
14041
   typedef unsigned short ac__type_sizeof_;
15522
14042
int
15523
14043
main ()
15524
14044
{
15525
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
 
14045
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15526
14046
test_array [0] = 0
15527
14047
 
15528
14048
  ;
15530
14050
}
15531
14051
_ACEOF
15532
14052
rm -f conftest.$ac_objext
15533
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15534
 
  (eval $ac_compile) 2>conftest.er1
 
14053
if { (ac_try="$ac_compile"
 
14054
case "(($ac_try" in
 
14055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14056
  *) ac_try_echo=$ac_try;;
 
14057
esac
 
14058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14059
  (eval "$ac_compile") 2>conftest.er1
15535
14060
  ac_status=$?
15536
14061
  grep -v '^ *+' conftest.er1 >conftest.err
15537
14062
  rm -f conftest.er1
15538
14063
  cat conftest.err >&5
15539
14064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540
 
  (exit $ac_status); } &&
15541
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15542
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543
 
  (eval $ac_try) 2>&5
15544
 
  ac_status=$?
15545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546
 
  (exit $ac_status); }; } &&
15547
 
         { ac_try='test -s conftest.$ac_objext'
15548
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549
 
  (eval $ac_try) 2>&5
15550
 
  ac_status=$?
15551
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552
 
  (exit $ac_status); }; }; then
 
14065
  (exit $ac_status); } && {
 
14066
         test -z "$ac_c_werror_flag" ||
 
14067
         test ! -s conftest.err
 
14068
       } && test -s conftest.$ac_objext; then
15553
14069
  ac_hi=$ac_mid; break
15554
14070
else
15555
14071
  echo "$as_me: failed program was:" >&5
15556
14072
sed 's/^/| /' conftest.$ac_ext >&5
15557
14073
 
15558
 
ac_lo=`expr $ac_mid + 1`
15559
 
                    if test $ac_lo -le $ac_mid; then
15560
 
                      ac_lo= ac_hi=
15561
 
                      break
15562
 
                    fi
15563
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
14074
        ac_lo=`expr $ac_mid + 1`
 
14075
                        if test $ac_lo -le $ac_mid; then
 
14076
                          ac_lo= ac_hi=
 
14077
                          break
 
14078
                        fi
 
14079
                        ac_mid=`expr 2 '*' $ac_mid + 1`
15564
14080
fi
15565
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14081
 
 
14082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566
14083
  done
15567
14084
else
15568
14085
  echo "$as_me: failed program was:" >&5
15569
14086
sed 's/^/| /' conftest.$ac_ext >&5
15570
14087
 
15571
 
cat >conftest.$ac_ext <<_ACEOF
 
14088
        cat >conftest.$ac_ext <<_ACEOF
15572
14089
/* confdefs.h.  */
15573
14090
_ACEOF
15574
14091
cat confdefs.h >>conftest.$ac_ext
15575
14092
cat >>conftest.$ac_ext <<_ACEOF
15576
14093
/* end confdefs.h.  */
15577
14094
$ac_includes_default
 
14095
   typedef unsigned short ac__type_sizeof_;
15578
14096
int
15579
14097
main ()
15580
14098
{
15581
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
 
14099
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15582
14100
test_array [0] = 0
15583
14101
 
15584
14102
  ;
15586
14104
}
15587
14105
_ACEOF
15588
14106
rm -f conftest.$ac_objext
15589
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15590
 
  (eval $ac_compile) 2>conftest.er1
 
14107
if { (ac_try="$ac_compile"
 
14108
case "(($ac_try" in
 
14109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14110
  *) ac_try_echo=$ac_try;;
 
14111
esac
 
14112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14113
  (eval "$ac_compile") 2>conftest.er1
15591
14114
  ac_status=$?
15592
14115
  grep -v '^ *+' conftest.er1 >conftest.err
15593
14116
  rm -f conftest.er1
15594
14117
  cat conftest.err >&5
15595
14118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596
 
  (exit $ac_status); } &&
15597
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15598
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599
 
  (eval $ac_try) 2>&5
15600
 
  ac_status=$?
15601
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602
 
  (exit $ac_status); }; } &&
15603
 
         { ac_try='test -s conftest.$ac_objext'
15604
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605
 
  (eval $ac_try) 2>&5
15606
 
  ac_status=$?
15607
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608
 
  (exit $ac_status); }; }; then
 
14119
  (exit $ac_status); } && {
 
14120
         test -z "$ac_c_werror_flag" ||
 
14121
         test ! -s conftest.err
 
14122
       } && test -s conftest.$ac_objext; then
15609
14123
  ac_hi=-1 ac_mid=-1
15610
14124
  while :; do
15611
14125
    cat >conftest.$ac_ext <<_ACEOF
15615
14129
cat >>conftest.$ac_ext <<_ACEOF
15616
14130
/* end confdefs.h.  */
15617
14131
$ac_includes_default
 
14132
   typedef unsigned short ac__type_sizeof_;
15618
14133
int
15619
14134
main ()
15620
14135
{
15621
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
 
14136
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15622
14137
test_array [0] = 0
15623
14138
 
15624
14139
  ;
15626
14141
}
15627
14142
_ACEOF
15628
14143
rm -f conftest.$ac_objext
15629
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15630
 
  (eval $ac_compile) 2>conftest.er1
 
14144
if { (ac_try="$ac_compile"
 
14145
case "(($ac_try" in
 
14146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14147
  *) ac_try_echo=$ac_try;;
 
14148
esac
 
14149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14150
  (eval "$ac_compile") 2>conftest.er1
15631
14151
  ac_status=$?
15632
14152
  grep -v '^ *+' conftest.er1 >conftest.err
15633
14153
  rm -f conftest.er1
15634
14154
  cat conftest.err >&5
15635
14155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636
 
  (exit $ac_status); } &&
15637
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15638
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639
 
  (eval $ac_try) 2>&5
15640
 
  ac_status=$?
15641
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642
 
  (exit $ac_status); }; } &&
15643
 
         { ac_try='test -s conftest.$ac_objext'
15644
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645
 
  (eval $ac_try) 2>&5
15646
 
  ac_status=$?
15647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648
 
  (exit $ac_status); }; }; then
 
14156
  (exit $ac_status); } && {
 
14157
         test -z "$ac_c_werror_flag" ||
 
14158
         test ! -s conftest.err
 
14159
       } && test -s conftest.$ac_objext; then
15649
14160
  ac_lo=$ac_mid; break
15650
14161
else
15651
14162
  echo "$as_me: failed program was:" >&5
15652
14163
sed 's/^/| /' conftest.$ac_ext >&5
15653
14164
 
15654
 
ac_hi=`expr '(' $ac_mid ')' - 1`
15655
 
                       if test $ac_mid -le $ac_hi; then
15656
 
                         ac_lo= ac_hi=
15657
 
                         break
15658
 
                       fi
15659
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
14165
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
14166
                        if test $ac_mid -le $ac_hi; then
 
14167
                          ac_lo= ac_hi=
 
14168
                          break
 
14169
                        fi
 
14170
                        ac_mid=`expr 2 '*' $ac_mid`
15660
14171
fi
15661
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14172
 
 
14173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662
14174
  done
15663
14175
else
15664
14176
  echo "$as_me: failed program was:" >&5
15665
14177
sed 's/^/| /' conftest.$ac_ext >&5
15666
14178
 
15667
 
ac_lo= ac_hi=
15668
 
fi
15669
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15670
 
fi
15671
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14179
        ac_lo= ac_hi=
 
14180
fi
 
14181
 
 
14182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14183
fi
 
14184
 
 
14185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672
14186
# Binary search between lo and hi bounds.
15673
14187
while test "x$ac_lo" != "x$ac_hi"; do
15674
14188
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15679
14193
cat >>conftest.$ac_ext <<_ACEOF
15680
14194
/* end confdefs.h.  */
15681
14195
$ac_includes_default
 
14196
   typedef unsigned short ac__type_sizeof_;
15682
14197
int
15683
14198
main ()
15684
14199
{
15685
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
 
14200
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15686
14201
test_array [0] = 0
15687
14202
 
15688
14203
  ;
15690
14205
}
15691
14206
_ACEOF
15692
14207
rm -f conftest.$ac_objext
15693
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694
 
  (eval $ac_compile) 2>conftest.er1
 
14208
if { (ac_try="$ac_compile"
 
14209
case "(($ac_try" in
 
14210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14211
  *) ac_try_echo=$ac_try;;
 
14212
esac
 
14213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14214
  (eval "$ac_compile") 2>conftest.er1
15695
14215
  ac_status=$?
15696
14216
  grep -v '^ *+' conftest.er1 >conftest.err
15697
14217
  rm -f conftest.er1
15698
14218
  cat conftest.err >&5
15699
14219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700
 
  (exit $ac_status); } &&
15701
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15702
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703
 
  (eval $ac_try) 2>&5
15704
 
  ac_status=$?
15705
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706
 
  (exit $ac_status); }; } &&
15707
 
         { ac_try='test -s conftest.$ac_objext'
15708
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709
 
  (eval $ac_try) 2>&5
15710
 
  ac_status=$?
15711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712
 
  (exit $ac_status); }; }; then
 
14220
  (exit $ac_status); } && {
 
14221
         test -z "$ac_c_werror_flag" ||
 
14222
         test ! -s conftest.err
 
14223
       } && test -s conftest.$ac_objext; then
15713
14224
  ac_hi=$ac_mid
15714
14225
else
15715
14226
  echo "$as_me: failed program was:" >&5
15716
14227
sed 's/^/| /' conftest.$ac_ext >&5
15717
14228
 
15718
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
14229
        ac_lo=`expr '(' $ac_mid ')' + 1`
15719
14230
fi
15720
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14231
 
 
14232
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721
14233
done
15722
14234
case $ac_lo in
15723
14235
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
15724
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
 
14236
'') if test "$ac_cv_type_unsigned_short" = yes; then
 
14237
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
15725
14238
See \`config.log' for more details." >&5
15726
 
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
 
14239
echo "$as_me: error: cannot compute sizeof (unsigned short)
15727
14240
See \`config.log' for more details." >&2;}
15728
 
   { (exit 1); exit 1; }; } ;;
 
14241
   { (exit 77); exit 77; }; }
 
14242
   else
 
14243
     ac_cv_sizeof_unsigned_short=0
 
14244
   fi ;;
15729
14245
esac
15730
14246
else
15731
 
  if test "$cross_compiling" = yes; then
15732
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15733
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15734
 
   { (exit 1); exit 1; }; }
15735
 
else
15736
14247
  cat >conftest.$ac_ext <<_ACEOF
15737
14248
/* confdefs.h.  */
15738
14249
_ACEOF
15740
14251
cat >>conftest.$ac_ext <<_ACEOF
15741
14252
/* end confdefs.h.  */
15742
14253
$ac_includes_default
15743
 
long longval () { return (long) (sizeof (unsigned short)); }
15744
 
unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
 
14254
   typedef unsigned short ac__type_sizeof_;
 
14255
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
14256
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15745
14257
#include <stdio.h>
15746
14258
#include <stdlib.h>
15747
14259
int
15750
14262
 
15751
14263
  FILE *f = fopen ("conftest.val", "w");
15752
14264
  if (! f)
15753
 
    exit (1);
15754
 
  if (((long) (sizeof (unsigned short))) < 0)
 
14265
    return 1;
 
14266
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15755
14267
    {
15756
 
      long i = longval ();
15757
 
      if (i != ((long) (sizeof (unsigned short))))
15758
 
        exit (1);
 
14268
      long int i = longval ();
 
14269
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
14270
        return 1;
15759
14271
      fprintf (f, "%ld\n", i);
15760
14272
    }
15761
14273
  else
15762
14274
    {
15763
 
      unsigned long i = ulongval ();
15764
 
      if (i != ((long) (sizeof (unsigned short))))
15765
 
        exit (1);
 
14275
      unsigned long int i = ulongval ();
 
14276
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
14277
        return 1;
15766
14278
      fprintf (f, "%lu\n", i);
15767
14279
    }
15768
 
  exit (ferror (f) || fclose (f) != 0);
 
14280
  return ferror (f) || fclose (f) != 0;
15769
14281
 
15770
14282
  ;
15771
14283
  return 0;
15772
14284
}
15773
14285
_ACEOF
15774
14286
rm -f conftest$ac_exeext
15775
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15776
 
  (eval $ac_link) 2>&5
 
14287
if { (ac_try="$ac_link"
 
14288
case "(($ac_try" in
 
14289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14290
  *) ac_try_echo=$ac_try;;
 
14291
esac
 
14292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14293
  (eval "$ac_link") 2>&5
15777
14294
  ac_status=$?
15778
14295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779
14296
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15780
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781
 
  (eval $ac_try) 2>&5
 
14297
  { (case "(($ac_try" in
 
14298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14299
  *) ac_try_echo=$ac_try;;
 
14300
esac
 
14301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14302
  (eval "$ac_try") 2>&5
15782
14303
  ac_status=$?
15783
14304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784
14305
  (exit $ac_status); }; }; then
15789
14310
sed 's/^/| /' conftest.$ac_ext >&5
15790
14311
 
15791
14312
( exit $ac_status )
15792
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
 
14313
if test "$ac_cv_type_unsigned_short" = yes; then
 
14314
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
15793
14315
See \`config.log' for more details." >&5
15794
 
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
 
14316
echo "$as_me: error: cannot compute sizeof (unsigned short)
15795
14317
See \`config.log' for more details." >&2;}
15796
 
   { (exit 1); exit 1; }; }
15797
 
fi
15798
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15799
 
fi
 
14318
   { (exit 77); exit 77; }; }
 
14319
   else
 
14320
     ac_cv_sizeof_unsigned_short=0
 
14321
   fi
 
14322
fi
 
14323
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15800
14324
fi
15801
14325
rm -f conftest.val
15802
 
else
15803
 
  ac_cv_sizeof_unsigned_short=0
15804
 
fi
15805
 
fi
15806
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
15807
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
 
14326
fi
 
14327
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
 
14328
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
 
14329
 
 
14330
 
 
14331
 
15808
14332
cat >>confdefs.h <<_ACEOF
15809
14333
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
15810
14334
_ACEOF
15811
14335
 
15812
14336
 
15813
 
echo "$as_me:$LINENO: checking for unsigned int" >&5
15814
 
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
 
14337
{ echo "$as_me:$LINENO: checking for unsigned int" >&5
 
14338
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
15815
14339
if test "${ac_cv_type_unsigned_int+set}" = set; then
15816
14340
  echo $ECHO_N "(cached) $ECHO_C" >&6
15817
14341
else
15822
14346
cat >>conftest.$ac_ext <<_ACEOF
15823
14347
/* end confdefs.h.  */
15824
14348
$ac_includes_default
 
14349
typedef unsigned int ac__type_new_;
15825
14350
int
15826
14351
main ()
15827
14352
{
15828
 
if ((unsigned int *) 0)
 
14353
if ((ac__type_new_ *) 0)
15829
14354
  return 0;
15830
 
if (sizeof (unsigned int))
 
14355
if (sizeof (ac__type_new_))
15831
14356
  return 0;
15832
14357
  ;
15833
14358
  return 0;
15834
14359
}
15835
14360
_ACEOF
15836
14361
rm -f conftest.$ac_objext
15837
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15838
 
  (eval $ac_compile) 2>conftest.er1
 
14362
if { (ac_try="$ac_compile"
 
14363
case "(($ac_try" in
 
14364
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14365
  *) ac_try_echo=$ac_try;;
 
14366
esac
 
14367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14368
  (eval "$ac_compile") 2>conftest.er1
15839
14369
  ac_status=$?
15840
14370
  grep -v '^ *+' conftest.er1 >conftest.err
15841
14371
  rm -f conftest.er1
15842
14372
  cat conftest.err >&5
15843
14373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844
 
  (exit $ac_status); } &&
15845
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15846
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847
 
  (eval $ac_try) 2>&5
15848
 
  ac_status=$?
15849
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850
 
  (exit $ac_status); }; } &&
15851
 
         { ac_try='test -s conftest.$ac_objext'
15852
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853
 
  (eval $ac_try) 2>&5
15854
 
  ac_status=$?
15855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856
 
  (exit $ac_status); }; }; then
 
14374
  (exit $ac_status); } && {
 
14375
         test -z "$ac_c_werror_flag" ||
 
14376
         test ! -s conftest.err
 
14377
       } && test -s conftest.$ac_objext; then
15857
14378
  ac_cv_type_unsigned_int=yes
15858
14379
else
15859
14380
  echo "$as_me: failed program was:" >&5
15860
14381
sed 's/^/| /' conftest.$ac_ext >&5
15861
14382
 
15862
 
ac_cv_type_unsigned_int=no
15863
 
fi
15864
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15865
 
fi
15866
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
15867
 
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
15868
 
 
15869
 
echo "$as_me:$LINENO: checking size of unsigned int" >&5
15870
 
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
 
14383
        ac_cv_type_unsigned_int=no
 
14384
fi
 
14385
 
 
14386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14387
fi
 
14388
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
 
14389
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
 
14390
 
 
14391
# The cast to long int works around a bug in the HP C Compiler
 
14392
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
14393
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
14394
# This bug is HP SR number 8606223364.
 
14395
{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
 
14396
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
15871
14397
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
15872
14398
  echo $ECHO_N "(cached) $ECHO_C" >&6
15873
14399
else
15874
 
  if test "$ac_cv_type_unsigned_int" = yes; then
15875
 
  # The cast to unsigned long works around a bug in the HP C Compiler
15876
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15877
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15878
 
  # This bug is HP SR number 8606223364.
15879
14400
  if test "$cross_compiling" = yes; then
15880
14401
  # Depending upon the size, compute the lo and hi bounds.
15881
14402
cat >conftest.$ac_ext <<_ACEOF
15885
14406
cat >>conftest.$ac_ext <<_ACEOF
15886
14407
/* end confdefs.h.  */
15887
14408
$ac_includes_default
 
14409
   typedef unsigned int ac__type_sizeof_;
15888
14410
int
15889
14411
main ()
15890
14412
{
15891
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
 
14413
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15892
14414
test_array [0] = 0
15893
14415
 
15894
14416
  ;
15896
14418
}
15897
14419
_ACEOF
15898
14420
rm -f conftest.$ac_objext
15899
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15900
 
  (eval $ac_compile) 2>conftest.er1
 
14421
if { (ac_try="$ac_compile"
 
14422
case "(($ac_try" in
 
14423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14424
  *) ac_try_echo=$ac_try;;
 
14425
esac
 
14426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14427
  (eval "$ac_compile") 2>conftest.er1
15901
14428
  ac_status=$?
15902
14429
  grep -v '^ *+' conftest.er1 >conftest.err
15903
14430
  rm -f conftest.er1
15904
14431
  cat conftest.err >&5
15905
14432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906
 
  (exit $ac_status); } &&
15907
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15908
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909
 
  (eval $ac_try) 2>&5
15910
 
  ac_status=$?
15911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912
 
  (exit $ac_status); }; } &&
15913
 
         { ac_try='test -s conftest.$ac_objext'
15914
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915
 
  (eval $ac_try) 2>&5
15916
 
  ac_status=$?
15917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918
 
  (exit $ac_status); }; }; then
 
14433
  (exit $ac_status); } && {
 
14434
         test -z "$ac_c_werror_flag" ||
 
14435
         test ! -s conftest.err
 
14436
       } && test -s conftest.$ac_objext; then
15919
14437
  ac_lo=0 ac_mid=0
15920
14438
  while :; do
15921
14439
    cat >conftest.$ac_ext <<_ACEOF
15925
14443
cat >>conftest.$ac_ext <<_ACEOF
15926
14444
/* end confdefs.h.  */
15927
14445
$ac_includes_default
 
14446
   typedef unsigned int ac__type_sizeof_;
15928
14447
int
15929
14448
main ()
15930
14449
{
15931
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
 
14450
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15932
14451
test_array [0] = 0
15933
14452
 
15934
14453
  ;
15936
14455
}
15937
14456
_ACEOF
15938
14457
rm -f conftest.$ac_objext
15939
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15940
 
  (eval $ac_compile) 2>conftest.er1
 
14458
if { (ac_try="$ac_compile"
 
14459
case "(($ac_try" in
 
14460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14461
  *) ac_try_echo=$ac_try;;
 
14462
esac
 
14463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14464
  (eval "$ac_compile") 2>conftest.er1
15941
14465
  ac_status=$?
15942
14466
  grep -v '^ *+' conftest.er1 >conftest.err
15943
14467
  rm -f conftest.er1
15944
14468
  cat conftest.err >&5
15945
14469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946
 
  (exit $ac_status); } &&
15947
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15948
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949
 
  (eval $ac_try) 2>&5
15950
 
  ac_status=$?
15951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952
 
  (exit $ac_status); }; } &&
15953
 
         { ac_try='test -s conftest.$ac_objext'
15954
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955
 
  (eval $ac_try) 2>&5
15956
 
  ac_status=$?
15957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958
 
  (exit $ac_status); }; }; then
 
14470
  (exit $ac_status); } && {
 
14471
         test -z "$ac_c_werror_flag" ||
 
14472
         test ! -s conftest.err
 
14473
       } && test -s conftest.$ac_objext; then
15959
14474
  ac_hi=$ac_mid; break
15960
14475
else
15961
14476
  echo "$as_me: failed program was:" >&5
15962
14477
sed 's/^/| /' conftest.$ac_ext >&5
15963
14478
 
15964
 
ac_lo=`expr $ac_mid + 1`
15965
 
                    if test $ac_lo -le $ac_mid; then
15966
 
                      ac_lo= ac_hi=
15967
 
                      break
15968
 
                    fi
15969
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
14479
        ac_lo=`expr $ac_mid + 1`
 
14480
                        if test $ac_lo -le $ac_mid; then
 
14481
                          ac_lo= ac_hi=
 
14482
                          break
 
14483
                        fi
 
14484
                        ac_mid=`expr 2 '*' $ac_mid + 1`
15970
14485
fi
15971
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14486
 
 
14487
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15972
14488
  done
15973
14489
else
15974
14490
  echo "$as_me: failed program was:" >&5
15975
14491
sed 's/^/| /' conftest.$ac_ext >&5
15976
14492
 
15977
 
cat >conftest.$ac_ext <<_ACEOF
 
14493
        cat >conftest.$ac_ext <<_ACEOF
15978
14494
/* confdefs.h.  */
15979
14495
_ACEOF
15980
14496
cat confdefs.h >>conftest.$ac_ext
15981
14497
cat >>conftest.$ac_ext <<_ACEOF
15982
14498
/* end confdefs.h.  */
15983
14499
$ac_includes_default
 
14500
   typedef unsigned int ac__type_sizeof_;
15984
14501
int
15985
14502
main ()
15986
14503
{
15987
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
 
14504
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15988
14505
test_array [0] = 0
15989
14506
 
15990
14507
  ;
15992
14509
}
15993
14510
_ACEOF
15994
14511
rm -f conftest.$ac_objext
15995
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15996
 
  (eval $ac_compile) 2>conftest.er1
 
14512
if { (ac_try="$ac_compile"
 
14513
case "(($ac_try" in
 
14514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14515
  *) ac_try_echo=$ac_try;;
 
14516
esac
 
14517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14518
  (eval "$ac_compile") 2>conftest.er1
15997
14519
  ac_status=$?
15998
14520
  grep -v '^ *+' conftest.er1 >conftest.err
15999
14521
  rm -f conftest.er1
16000
14522
  cat conftest.err >&5
16001
14523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002
 
  (exit $ac_status); } &&
16003
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16004
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005
 
  (eval $ac_try) 2>&5
16006
 
  ac_status=$?
16007
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008
 
  (exit $ac_status); }; } &&
16009
 
         { ac_try='test -s conftest.$ac_objext'
16010
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011
 
  (eval $ac_try) 2>&5
16012
 
  ac_status=$?
16013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014
 
  (exit $ac_status); }; }; then
 
14524
  (exit $ac_status); } && {
 
14525
         test -z "$ac_c_werror_flag" ||
 
14526
         test ! -s conftest.err
 
14527
       } && test -s conftest.$ac_objext; then
16015
14528
  ac_hi=-1 ac_mid=-1
16016
14529
  while :; do
16017
14530
    cat >conftest.$ac_ext <<_ACEOF
16021
14534
cat >>conftest.$ac_ext <<_ACEOF
16022
14535
/* end confdefs.h.  */
16023
14536
$ac_includes_default
 
14537
   typedef unsigned int ac__type_sizeof_;
16024
14538
int
16025
14539
main ()
16026
14540
{
16027
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
 
14541
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16028
14542
test_array [0] = 0
16029
14543
 
16030
14544
  ;
16032
14546
}
16033
14547
_ACEOF
16034
14548
rm -f conftest.$ac_objext
16035
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036
 
  (eval $ac_compile) 2>conftest.er1
 
14549
if { (ac_try="$ac_compile"
 
14550
case "(($ac_try" in
 
14551
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14552
  *) ac_try_echo=$ac_try;;
 
14553
esac
 
14554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14555
  (eval "$ac_compile") 2>conftest.er1
16037
14556
  ac_status=$?
16038
14557
  grep -v '^ *+' conftest.er1 >conftest.err
16039
14558
  rm -f conftest.er1
16040
14559
  cat conftest.err >&5
16041
14560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042
 
  (exit $ac_status); } &&
16043
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16044
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045
 
  (eval $ac_try) 2>&5
16046
 
  ac_status=$?
16047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048
 
  (exit $ac_status); }; } &&
16049
 
         { ac_try='test -s conftest.$ac_objext'
16050
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051
 
  (eval $ac_try) 2>&5
16052
 
  ac_status=$?
16053
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054
 
  (exit $ac_status); }; }; then
 
14561
  (exit $ac_status); } && {
 
14562
         test -z "$ac_c_werror_flag" ||
 
14563
         test ! -s conftest.err
 
14564
       } && test -s conftest.$ac_objext; then
16055
14565
  ac_lo=$ac_mid; break
16056
14566
else
16057
14567
  echo "$as_me: failed program was:" >&5
16058
14568
sed 's/^/| /' conftest.$ac_ext >&5
16059
14569
 
16060
 
ac_hi=`expr '(' $ac_mid ')' - 1`
16061
 
                       if test $ac_mid -le $ac_hi; then
16062
 
                         ac_lo= ac_hi=
16063
 
                         break
16064
 
                       fi
16065
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
14570
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
14571
                        if test $ac_mid -le $ac_hi; then
 
14572
                          ac_lo= ac_hi=
 
14573
                          break
 
14574
                        fi
 
14575
                        ac_mid=`expr 2 '*' $ac_mid`
16066
14576
fi
16067
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14577
 
 
14578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16068
14579
  done
16069
14580
else
16070
14581
  echo "$as_me: failed program was:" >&5
16071
14582
sed 's/^/| /' conftest.$ac_ext >&5
16072
14583
 
16073
 
ac_lo= ac_hi=
16074
 
fi
16075
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16076
 
fi
16077
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14584
        ac_lo= ac_hi=
 
14585
fi
 
14586
 
 
14587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14588
fi
 
14589
 
 
14590
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16078
14591
# Binary search between lo and hi bounds.
16079
14592
while test "x$ac_lo" != "x$ac_hi"; do
16080
14593
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16085
14598
cat >>conftest.$ac_ext <<_ACEOF
16086
14599
/* end confdefs.h.  */
16087
14600
$ac_includes_default
 
14601
   typedef unsigned int ac__type_sizeof_;
16088
14602
int
16089
14603
main ()
16090
14604
{
16091
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
 
14605
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16092
14606
test_array [0] = 0
16093
14607
 
16094
14608
  ;
16096
14610
}
16097
14611
_ACEOF
16098
14612
rm -f conftest.$ac_objext
16099
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16100
 
  (eval $ac_compile) 2>conftest.er1
 
14613
if { (ac_try="$ac_compile"
 
14614
case "(($ac_try" in
 
14615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14616
  *) ac_try_echo=$ac_try;;
 
14617
esac
 
14618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14619
  (eval "$ac_compile") 2>conftest.er1
16101
14620
  ac_status=$?
16102
14621
  grep -v '^ *+' conftest.er1 >conftest.err
16103
14622
  rm -f conftest.er1
16104
14623
  cat conftest.err >&5
16105
14624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106
 
  (exit $ac_status); } &&
16107
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16108
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109
 
  (eval $ac_try) 2>&5
16110
 
  ac_status=$?
16111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112
 
  (exit $ac_status); }; } &&
16113
 
         { ac_try='test -s conftest.$ac_objext'
16114
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115
 
  (eval $ac_try) 2>&5
16116
 
  ac_status=$?
16117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118
 
  (exit $ac_status); }; }; then
 
14625
  (exit $ac_status); } && {
 
14626
         test -z "$ac_c_werror_flag" ||
 
14627
         test ! -s conftest.err
 
14628
       } && test -s conftest.$ac_objext; then
16119
14629
  ac_hi=$ac_mid
16120
14630
else
16121
14631
  echo "$as_me: failed program was:" >&5
16122
14632
sed 's/^/| /' conftest.$ac_ext >&5
16123
14633
 
16124
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
14634
        ac_lo=`expr '(' $ac_mid ')' + 1`
16125
14635
fi
16126
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14636
 
 
14637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16127
14638
done
16128
14639
case $ac_lo in
16129
14640
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
16130
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
 
14641
'') if test "$ac_cv_type_unsigned_int" = yes; then
 
14642
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
16131
14643
See \`config.log' for more details." >&5
16132
 
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
 
14644
echo "$as_me: error: cannot compute sizeof (unsigned int)
16133
14645
See \`config.log' for more details." >&2;}
16134
 
   { (exit 1); exit 1; }; } ;;
 
14646
   { (exit 77); exit 77; }; }
 
14647
   else
 
14648
     ac_cv_sizeof_unsigned_int=0
 
14649
   fi ;;
16135
14650
esac
16136
14651
else
16137
 
  if test "$cross_compiling" = yes; then
16138
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16139
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16140
 
   { (exit 1); exit 1; }; }
16141
 
else
16142
14652
  cat >conftest.$ac_ext <<_ACEOF
16143
14653
/* confdefs.h.  */
16144
14654
_ACEOF
16146
14656
cat >>conftest.$ac_ext <<_ACEOF
16147
14657
/* end confdefs.h.  */
16148
14658
$ac_includes_default
16149
 
long longval () { return (long) (sizeof (unsigned int)); }
16150
 
unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
 
14659
   typedef unsigned int ac__type_sizeof_;
 
14660
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
14661
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16151
14662
#include <stdio.h>
16152
14663
#include <stdlib.h>
16153
14664
int
16156
14667
 
16157
14668
  FILE *f = fopen ("conftest.val", "w");
16158
14669
  if (! f)
16159
 
    exit (1);
16160
 
  if (((long) (sizeof (unsigned int))) < 0)
 
14670
    return 1;
 
14671
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16161
14672
    {
16162
 
      long i = longval ();
16163
 
      if (i != ((long) (sizeof (unsigned int))))
16164
 
        exit (1);
 
14673
      long int i = longval ();
 
14674
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
14675
        return 1;
16165
14676
      fprintf (f, "%ld\n", i);
16166
14677
    }
16167
14678
  else
16168
14679
    {
16169
 
      unsigned long i = ulongval ();
16170
 
      if (i != ((long) (sizeof (unsigned int))))
16171
 
        exit (1);
 
14680
      unsigned long int i = ulongval ();
 
14681
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
14682
        return 1;
16172
14683
      fprintf (f, "%lu\n", i);
16173
14684
    }
16174
 
  exit (ferror (f) || fclose (f) != 0);
 
14685
  return ferror (f) || fclose (f) != 0;
16175
14686
 
16176
14687
  ;
16177
14688
  return 0;
16178
14689
}
16179
14690
_ACEOF
16180
14691
rm -f conftest$ac_exeext
16181
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16182
 
  (eval $ac_link) 2>&5
 
14692
if { (ac_try="$ac_link"
 
14693
case "(($ac_try" in
 
14694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14695
  *) ac_try_echo=$ac_try;;
 
14696
esac
 
14697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14698
  (eval "$ac_link") 2>&5
16183
14699
  ac_status=$?
16184
14700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185
14701
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16186
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187
 
  (eval $ac_try) 2>&5
 
14702
  { (case "(($ac_try" in
 
14703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14704
  *) ac_try_echo=$ac_try;;
 
14705
esac
 
14706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14707
  (eval "$ac_try") 2>&5
16188
14708
  ac_status=$?
16189
14709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190
14710
  (exit $ac_status); }; }; then
16195
14715
sed 's/^/| /' conftest.$ac_ext >&5
16196
14716
 
16197
14717
( exit $ac_status )
16198
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
 
14718
if test "$ac_cv_type_unsigned_int" = yes; then
 
14719
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
16199
14720
See \`config.log' for more details." >&5
16200
 
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
 
14721
echo "$as_me: error: cannot compute sizeof (unsigned int)
16201
14722
See \`config.log' for more details." >&2;}
16202
 
   { (exit 1); exit 1; }; }
16203
 
fi
16204
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16205
 
fi
 
14723
   { (exit 77); exit 77; }; }
 
14724
   else
 
14725
     ac_cv_sizeof_unsigned_int=0
 
14726
   fi
 
14727
fi
 
14728
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16206
14729
fi
16207
14730
rm -f conftest.val
16208
 
else
16209
 
  ac_cv_sizeof_unsigned_int=0
16210
 
fi
16211
 
fi
16212
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
16213
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
 
14731
fi
 
14732
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
 
14733
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
 
14734
 
 
14735
 
 
14736
 
16214
14737
cat >>confdefs.h <<_ACEOF
16215
14738
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16216
14739
_ACEOF
16217
14740
 
16218
14741
 
16219
 
echo "$as_me:$LINENO: checking for unsigned long" >&5
16220
 
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
 
14742
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
 
14743
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
16221
14744
if test "${ac_cv_type_unsigned_long+set}" = set; then
16222
14745
  echo $ECHO_N "(cached) $ECHO_C" >&6
16223
14746
else
16228
14751
cat >>conftest.$ac_ext <<_ACEOF
16229
14752
/* end confdefs.h.  */
16230
14753
$ac_includes_default
 
14754
typedef unsigned long ac__type_new_;
16231
14755
int
16232
14756
main ()
16233
14757
{
16234
 
if ((unsigned long *) 0)
 
14758
if ((ac__type_new_ *) 0)
16235
14759
  return 0;
16236
 
if (sizeof (unsigned long))
 
14760
if (sizeof (ac__type_new_))
16237
14761
  return 0;
16238
14762
  ;
16239
14763
  return 0;
16240
14764
}
16241
14765
_ACEOF
16242
14766
rm -f conftest.$ac_objext
16243
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16244
 
  (eval $ac_compile) 2>conftest.er1
 
14767
if { (ac_try="$ac_compile"
 
14768
case "(($ac_try" in
 
14769
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14770
  *) ac_try_echo=$ac_try;;
 
14771
esac
 
14772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14773
  (eval "$ac_compile") 2>conftest.er1
16245
14774
  ac_status=$?
16246
14775
  grep -v '^ *+' conftest.er1 >conftest.err
16247
14776
  rm -f conftest.er1
16248
14777
  cat conftest.err >&5
16249
14778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250
 
  (exit $ac_status); } &&
16251
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16252
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253
 
  (eval $ac_try) 2>&5
16254
 
  ac_status=$?
16255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256
 
  (exit $ac_status); }; } &&
16257
 
         { ac_try='test -s conftest.$ac_objext'
16258
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259
 
  (eval $ac_try) 2>&5
16260
 
  ac_status=$?
16261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262
 
  (exit $ac_status); }; }; then
 
14779
  (exit $ac_status); } && {
 
14780
         test -z "$ac_c_werror_flag" ||
 
14781
         test ! -s conftest.err
 
14782
       } && test -s conftest.$ac_objext; then
16263
14783
  ac_cv_type_unsigned_long=yes
16264
14784
else
16265
14785
  echo "$as_me: failed program was:" >&5
16266
14786
sed 's/^/| /' conftest.$ac_ext >&5
16267
14787
 
16268
 
ac_cv_type_unsigned_long=no
16269
 
fi
16270
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16271
 
fi
16272
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
16273
 
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
16274
 
 
16275
 
echo "$as_me:$LINENO: checking size of unsigned long" >&5
16276
 
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
 
14788
        ac_cv_type_unsigned_long=no
 
14789
fi
 
14790
 
 
14791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14792
fi
 
14793
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
14794
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
 
14795
 
 
14796
# The cast to long int works around a bug in the HP C Compiler
 
14797
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
14798
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
14799
# This bug is HP SR number 8606223364.
 
14800
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
 
14801
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
16277
14802
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
16278
14803
  echo $ECHO_N "(cached) $ECHO_C" >&6
16279
14804
else
16280
 
  if test "$ac_cv_type_unsigned_long" = yes; then
16281
 
  # The cast to unsigned long works around a bug in the HP C Compiler
16282
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16283
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16284
 
  # This bug is HP SR number 8606223364.
16285
14805
  if test "$cross_compiling" = yes; then
16286
14806
  # Depending upon the size, compute the lo and hi bounds.
16287
14807
cat >conftest.$ac_ext <<_ACEOF
16291
14811
cat >>conftest.$ac_ext <<_ACEOF
16292
14812
/* end confdefs.h.  */
16293
14813
$ac_includes_default
 
14814
   typedef unsigned long ac__type_sizeof_;
16294
14815
int
16295
14816
main ()
16296
14817
{
16297
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
 
14818
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
16298
14819
test_array [0] = 0
16299
14820
 
16300
14821
  ;
16302
14823
}
16303
14824
_ACEOF
16304
14825
rm -f conftest.$ac_objext
16305
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306
 
  (eval $ac_compile) 2>conftest.er1
 
14826
if { (ac_try="$ac_compile"
 
14827
case "(($ac_try" in
 
14828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14829
  *) ac_try_echo=$ac_try;;
 
14830
esac
 
14831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14832
  (eval "$ac_compile") 2>conftest.er1
16307
14833
  ac_status=$?
16308
14834
  grep -v '^ *+' conftest.er1 >conftest.err
16309
14835
  rm -f conftest.er1
16310
14836
  cat conftest.err >&5
16311
14837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312
 
  (exit $ac_status); } &&
16313
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16314
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315
 
  (eval $ac_try) 2>&5
16316
 
  ac_status=$?
16317
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318
 
  (exit $ac_status); }; } &&
16319
 
         { ac_try='test -s conftest.$ac_objext'
16320
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321
 
  (eval $ac_try) 2>&5
16322
 
  ac_status=$?
16323
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324
 
  (exit $ac_status); }; }; then
 
14838
  (exit $ac_status); } && {
 
14839
         test -z "$ac_c_werror_flag" ||
 
14840
         test ! -s conftest.err
 
14841
       } && test -s conftest.$ac_objext; then
16325
14842
  ac_lo=0 ac_mid=0
16326
14843
  while :; do
16327
14844
    cat >conftest.$ac_ext <<_ACEOF
16331
14848
cat >>conftest.$ac_ext <<_ACEOF
16332
14849
/* end confdefs.h.  */
16333
14850
$ac_includes_default
 
14851
   typedef unsigned long ac__type_sizeof_;
16334
14852
int
16335
14853
main ()
16336
14854
{
16337
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
14855
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16338
14856
test_array [0] = 0
16339
14857
 
16340
14858
  ;
16342
14860
}
16343
14861
_ACEOF
16344
14862
rm -f conftest.$ac_objext
16345
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346
 
  (eval $ac_compile) 2>conftest.er1
 
14863
if { (ac_try="$ac_compile"
 
14864
case "(($ac_try" in
 
14865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14866
  *) ac_try_echo=$ac_try;;
 
14867
esac
 
14868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14869
  (eval "$ac_compile") 2>conftest.er1
16347
14870
  ac_status=$?
16348
14871
  grep -v '^ *+' conftest.er1 >conftest.err
16349
14872
  rm -f conftest.er1
16350
14873
  cat conftest.err >&5
16351
14874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352
 
  (exit $ac_status); } &&
16353
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16354
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355
 
  (eval $ac_try) 2>&5
16356
 
  ac_status=$?
16357
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358
 
  (exit $ac_status); }; } &&
16359
 
         { ac_try='test -s conftest.$ac_objext'
16360
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361
 
  (eval $ac_try) 2>&5
16362
 
  ac_status=$?
16363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364
 
  (exit $ac_status); }; }; then
 
14875
  (exit $ac_status); } && {
 
14876
         test -z "$ac_c_werror_flag" ||
 
14877
         test ! -s conftest.err
 
14878
       } && test -s conftest.$ac_objext; then
16365
14879
  ac_hi=$ac_mid; break
16366
14880
else
16367
14881
  echo "$as_me: failed program was:" >&5
16368
14882
sed 's/^/| /' conftest.$ac_ext >&5
16369
14883
 
16370
 
ac_lo=`expr $ac_mid + 1`
16371
 
                    if test $ac_lo -le $ac_mid; then
16372
 
                      ac_lo= ac_hi=
16373
 
                      break
16374
 
                    fi
16375
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
14884
        ac_lo=`expr $ac_mid + 1`
 
14885
                        if test $ac_lo -le $ac_mid; then
 
14886
                          ac_lo= ac_hi=
 
14887
                          break
 
14888
                        fi
 
14889
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16376
14890
fi
16377
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14891
 
 
14892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378
14893
  done
16379
14894
else
16380
14895
  echo "$as_me: failed program was:" >&5
16381
14896
sed 's/^/| /' conftest.$ac_ext >&5
16382
14897
 
16383
 
cat >conftest.$ac_ext <<_ACEOF
 
14898
        cat >conftest.$ac_ext <<_ACEOF
16384
14899
/* confdefs.h.  */
16385
14900
_ACEOF
16386
14901
cat confdefs.h >>conftest.$ac_ext
16387
14902
cat >>conftest.$ac_ext <<_ACEOF
16388
14903
/* end confdefs.h.  */
16389
14904
$ac_includes_default
 
14905
   typedef unsigned long ac__type_sizeof_;
16390
14906
int
16391
14907
main ()
16392
14908
{
16393
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
 
14909
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16394
14910
test_array [0] = 0
16395
14911
 
16396
14912
  ;
16398
14914
}
16399
14915
_ACEOF
16400
14916
rm -f conftest.$ac_objext
16401
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16402
 
  (eval $ac_compile) 2>conftest.er1
 
14917
if { (ac_try="$ac_compile"
 
14918
case "(($ac_try" in
 
14919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14920
  *) ac_try_echo=$ac_try;;
 
14921
esac
 
14922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14923
  (eval "$ac_compile") 2>conftest.er1
16403
14924
  ac_status=$?
16404
14925
  grep -v '^ *+' conftest.er1 >conftest.err
16405
14926
  rm -f conftest.er1
16406
14927
  cat conftest.err >&5
16407
14928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408
 
  (exit $ac_status); } &&
16409
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16410
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411
 
  (eval $ac_try) 2>&5
16412
 
  ac_status=$?
16413
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414
 
  (exit $ac_status); }; } &&
16415
 
         { ac_try='test -s conftest.$ac_objext'
16416
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417
 
  (eval $ac_try) 2>&5
16418
 
  ac_status=$?
16419
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420
 
  (exit $ac_status); }; }; then
 
14929
  (exit $ac_status); } && {
 
14930
         test -z "$ac_c_werror_flag" ||
 
14931
         test ! -s conftest.err
 
14932
       } && test -s conftest.$ac_objext; then
16421
14933
  ac_hi=-1 ac_mid=-1
16422
14934
  while :; do
16423
14935
    cat >conftest.$ac_ext <<_ACEOF
16427
14939
cat >>conftest.$ac_ext <<_ACEOF
16428
14940
/* end confdefs.h.  */
16429
14941
$ac_includes_default
 
14942
   typedef unsigned long ac__type_sizeof_;
16430
14943
int
16431
14944
main ()
16432
14945
{
16433
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
 
14946
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16434
14947
test_array [0] = 0
16435
14948
 
16436
14949
  ;
16438
14951
}
16439
14952
_ACEOF
16440
14953
rm -f conftest.$ac_objext
16441
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16442
 
  (eval $ac_compile) 2>conftest.er1
 
14954
if { (ac_try="$ac_compile"
 
14955
case "(($ac_try" in
 
14956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14957
  *) ac_try_echo=$ac_try;;
 
14958
esac
 
14959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14960
  (eval "$ac_compile") 2>conftest.er1
16443
14961
  ac_status=$?
16444
14962
  grep -v '^ *+' conftest.er1 >conftest.err
16445
14963
  rm -f conftest.er1
16446
14964
  cat conftest.err >&5
16447
14965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448
 
  (exit $ac_status); } &&
16449
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16450
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451
 
  (eval $ac_try) 2>&5
16452
 
  ac_status=$?
16453
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454
 
  (exit $ac_status); }; } &&
16455
 
         { ac_try='test -s conftest.$ac_objext'
16456
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457
 
  (eval $ac_try) 2>&5
16458
 
  ac_status=$?
16459
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460
 
  (exit $ac_status); }; }; then
 
14966
  (exit $ac_status); } && {
 
14967
         test -z "$ac_c_werror_flag" ||
 
14968
         test ! -s conftest.err
 
14969
       } && test -s conftest.$ac_objext; then
16461
14970
  ac_lo=$ac_mid; break
16462
14971
else
16463
14972
  echo "$as_me: failed program was:" >&5
16464
14973
sed 's/^/| /' conftest.$ac_ext >&5
16465
14974
 
16466
 
ac_hi=`expr '(' $ac_mid ')' - 1`
16467
 
                       if test $ac_mid -le $ac_hi; then
16468
 
                         ac_lo= ac_hi=
16469
 
                         break
16470
 
                       fi
16471
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
14975
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
14976
                        if test $ac_mid -le $ac_hi; then
 
14977
                          ac_lo= ac_hi=
 
14978
                          break
 
14979
                        fi
 
14980
                        ac_mid=`expr 2 '*' $ac_mid`
16472
14981
fi
16473
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14982
 
 
14983
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474
14984
  done
16475
14985
else
16476
14986
  echo "$as_me: failed program was:" >&5
16477
14987
sed 's/^/| /' conftest.$ac_ext >&5
16478
14988
 
16479
 
ac_lo= ac_hi=
16480
 
fi
16481
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16482
 
fi
16483
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14989
        ac_lo= ac_hi=
 
14990
fi
 
14991
 
 
14992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
14993
fi
 
14994
 
 
14995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484
14996
# Binary search between lo and hi bounds.
16485
14997
while test "x$ac_lo" != "x$ac_hi"; do
16486
14998
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16491
15003
cat >>conftest.$ac_ext <<_ACEOF
16492
15004
/* end confdefs.h.  */
16493
15005
$ac_includes_default
 
15006
   typedef unsigned long ac__type_sizeof_;
16494
15007
int
16495
15008
main ()
16496
15009
{
16497
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
15010
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16498
15011
test_array [0] = 0
16499
15012
 
16500
15013
  ;
16502
15015
}
16503
15016
_ACEOF
16504
15017
rm -f conftest.$ac_objext
16505
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16506
 
  (eval $ac_compile) 2>conftest.er1
 
15018
if { (ac_try="$ac_compile"
 
15019
case "(($ac_try" in
 
15020
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15021
  *) ac_try_echo=$ac_try;;
 
15022
esac
 
15023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15024
  (eval "$ac_compile") 2>conftest.er1
16507
15025
  ac_status=$?
16508
15026
  grep -v '^ *+' conftest.er1 >conftest.err
16509
15027
  rm -f conftest.er1
16510
15028
  cat conftest.err >&5
16511
15029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512
 
  (exit $ac_status); } &&
16513
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16514
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515
 
  (eval $ac_try) 2>&5
16516
 
  ac_status=$?
16517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518
 
  (exit $ac_status); }; } &&
16519
 
         { ac_try='test -s conftest.$ac_objext'
16520
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521
 
  (eval $ac_try) 2>&5
16522
 
  ac_status=$?
16523
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524
 
  (exit $ac_status); }; }; then
 
15030
  (exit $ac_status); } && {
 
15031
         test -z "$ac_c_werror_flag" ||
 
15032
         test ! -s conftest.err
 
15033
       } && test -s conftest.$ac_objext; then
16525
15034
  ac_hi=$ac_mid
16526
15035
else
16527
15036
  echo "$as_me: failed program was:" >&5
16528
15037
sed 's/^/| /' conftest.$ac_ext >&5
16529
15038
 
16530
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
15039
        ac_lo=`expr '(' $ac_mid ')' + 1`
16531
15040
fi
16532
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15041
 
 
15042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533
15043
done
16534
15044
case $ac_lo in
16535
15045
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
16536
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
15046
'') if test "$ac_cv_type_unsigned_long" = yes; then
 
15047
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
16537
15048
See \`config.log' for more details." >&5
16538
 
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
15049
echo "$as_me: error: cannot compute sizeof (unsigned long)
16539
15050
See \`config.log' for more details." >&2;}
16540
 
   { (exit 1); exit 1; }; } ;;
 
15051
   { (exit 77); exit 77; }; }
 
15052
   else
 
15053
     ac_cv_sizeof_unsigned_long=0
 
15054
   fi ;;
16541
15055
esac
16542
15056
else
16543
 
  if test "$cross_compiling" = yes; then
16544
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16545
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16546
 
   { (exit 1); exit 1; }; }
16547
 
else
16548
15057
  cat >conftest.$ac_ext <<_ACEOF
16549
15058
/* confdefs.h.  */
16550
15059
_ACEOF
16552
15061
cat >>conftest.$ac_ext <<_ACEOF
16553
15062
/* end confdefs.h.  */
16554
15063
$ac_includes_default
16555
 
long longval () { return (long) (sizeof (unsigned long)); }
16556
 
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
 
15064
   typedef unsigned long ac__type_sizeof_;
 
15065
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
15066
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16557
15067
#include <stdio.h>
16558
15068
#include <stdlib.h>
16559
15069
int
16562
15072
 
16563
15073
  FILE *f = fopen ("conftest.val", "w");
16564
15074
  if (! f)
16565
 
    exit (1);
16566
 
  if (((long) (sizeof (unsigned long))) < 0)
 
15075
    return 1;
 
15076
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16567
15077
    {
16568
 
      long i = longval ();
16569
 
      if (i != ((long) (sizeof (unsigned long))))
16570
 
        exit (1);
 
15078
      long int i = longval ();
 
15079
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
15080
        return 1;
16571
15081
      fprintf (f, "%ld\n", i);
16572
15082
    }
16573
15083
  else
16574
15084
    {
16575
 
      unsigned long i = ulongval ();
16576
 
      if (i != ((long) (sizeof (unsigned long))))
16577
 
        exit (1);
 
15085
      unsigned long int i = ulongval ();
 
15086
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
15087
        return 1;
16578
15088
      fprintf (f, "%lu\n", i);
16579
15089
    }
16580
 
  exit (ferror (f) || fclose (f) != 0);
 
15090
  return ferror (f) || fclose (f) != 0;
16581
15091
 
16582
15092
  ;
16583
15093
  return 0;
16584
15094
}
16585
15095
_ACEOF
16586
15096
rm -f conftest$ac_exeext
16587
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16588
 
  (eval $ac_link) 2>&5
 
15097
if { (ac_try="$ac_link"
 
15098
case "(($ac_try" in
 
15099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15100
  *) ac_try_echo=$ac_try;;
 
15101
esac
 
15102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15103
  (eval "$ac_link") 2>&5
16589
15104
  ac_status=$?
16590
15105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591
15106
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16592
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593
 
  (eval $ac_try) 2>&5
 
15107
  { (case "(($ac_try" in
 
15108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15109
  *) ac_try_echo=$ac_try;;
 
15110
esac
 
15111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15112
  (eval "$ac_try") 2>&5
16594
15113
  ac_status=$?
16595
15114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596
15115
  (exit $ac_status); }; }; then
16601
15120
sed 's/^/| /' conftest.$ac_ext >&5
16602
15121
 
16603
15122
( exit $ac_status )
16604
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
 
15123
if test "$ac_cv_type_unsigned_long" = yes; then
 
15124
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
16605
15125
See \`config.log' for more details." >&5
16606
 
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
 
15126
echo "$as_me: error: cannot compute sizeof (unsigned long)
16607
15127
See \`config.log' for more details." >&2;}
16608
 
   { (exit 1); exit 1; }; }
16609
 
fi
16610
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16611
 
fi
 
15128
   { (exit 77); exit 77; }; }
 
15129
   else
 
15130
     ac_cv_sizeof_unsigned_long=0
 
15131
   fi
 
15132
fi
 
15133
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16612
15134
fi
16613
15135
rm -f conftest.val
16614
 
else
16615
 
  ac_cv_sizeof_unsigned_long=0
16616
 
fi
16617
 
fi
16618
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
16619
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
 
15136
fi
 
15137
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
 
15138
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
 
15139
 
 
15140
 
 
15141
 
16620
15142
cat >>confdefs.h <<_ACEOF
16621
15143
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16622
15144
_ACEOF
16623
15145
 
16624
15146
 
16625
 
echo "$as_me:$LINENO: checking for unsigned long long" >&5
16626
 
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
 
15147
{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
 
15148
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
16627
15149
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
16628
15150
  echo $ECHO_N "(cached) $ECHO_C" >&6
16629
15151
else
16634
15156
cat >>conftest.$ac_ext <<_ACEOF
16635
15157
/* end confdefs.h.  */
16636
15158
$ac_includes_default
 
15159
typedef unsigned long long ac__type_new_;
16637
15160
int
16638
15161
main ()
16639
15162
{
16640
 
if ((unsigned long long *) 0)
 
15163
if ((ac__type_new_ *) 0)
16641
15164
  return 0;
16642
 
if (sizeof (unsigned long long))
 
15165
if (sizeof (ac__type_new_))
16643
15166
  return 0;
16644
15167
  ;
16645
15168
  return 0;
16646
15169
}
16647
15170
_ACEOF
16648
15171
rm -f conftest.$ac_objext
16649
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16650
 
  (eval $ac_compile) 2>conftest.er1
 
15172
if { (ac_try="$ac_compile"
 
15173
case "(($ac_try" in
 
15174
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15175
  *) ac_try_echo=$ac_try;;
 
15176
esac
 
15177
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15178
  (eval "$ac_compile") 2>conftest.er1
16651
15179
  ac_status=$?
16652
15180
  grep -v '^ *+' conftest.er1 >conftest.err
16653
15181
  rm -f conftest.er1
16654
15182
  cat conftest.err >&5
16655
15183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656
 
  (exit $ac_status); } &&
16657
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16658
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659
 
  (eval $ac_try) 2>&5
16660
 
  ac_status=$?
16661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662
 
  (exit $ac_status); }; } &&
16663
 
         { ac_try='test -s conftest.$ac_objext'
16664
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665
 
  (eval $ac_try) 2>&5
16666
 
  ac_status=$?
16667
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668
 
  (exit $ac_status); }; }; then
 
15184
  (exit $ac_status); } && {
 
15185
         test -z "$ac_c_werror_flag" ||
 
15186
         test ! -s conftest.err
 
15187
       } && test -s conftest.$ac_objext; then
16669
15188
  ac_cv_type_unsigned_long_long=yes
16670
15189
else
16671
15190
  echo "$as_me: failed program was:" >&5
16672
15191
sed 's/^/| /' conftest.$ac_ext >&5
16673
15192
 
16674
 
ac_cv_type_unsigned_long_long=no
16675
 
fi
16676
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16677
 
fi
16678
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16679
 
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16680
 
 
16681
 
echo "$as_me:$LINENO: checking size of unsigned long long" >&5
16682
 
echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
 
15193
        ac_cv_type_unsigned_long_long=no
 
15194
fi
 
15195
 
 
15196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15197
fi
 
15198
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
 
15199
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
 
15200
 
 
15201
# The cast to long int works around a bug in the HP C Compiler
 
15202
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
15203
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
15204
# This bug is HP SR number 8606223364.
 
15205
{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5
 
15206
echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
16683
15207
if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
16684
15208
  echo $ECHO_N "(cached) $ECHO_C" >&6
16685
15209
else
16686
 
  if test "$ac_cv_type_unsigned_long_long" = yes; then
16687
 
  # The cast to unsigned long works around a bug in the HP C Compiler
16688
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16689
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16690
 
  # This bug is HP SR number 8606223364.
16691
15210
  if test "$cross_compiling" = yes; then
16692
15211
  # Depending upon the size, compute the lo and hi bounds.
16693
15212
cat >conftest.$ac_ext <<_ACEOF
16697
15216
cat >>conftest.$ac_ext <<_ACEOF
16698
15217
/* end confdefs.h.  */
16699
15218
$ac_includes_default
 
15219
   typedef unsigned long long ac__type_sizeof_;
16700
15220
int
16701
15221
main ()
16702
15222
{
16703
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
 
15223
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
16704
15224
test_array [0] = 0
16705
15225
 
16706
15226
  ;
16708
15228
}
16709
15229
_ACEOF
16710
15230
rm -f conftest.$ac_objext
16711
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712
 
  (eval $ac_compile) 2>conftest.er1
 
15231
if { (ac_try="$ac_compile"
 
15232
case "(($ac_try" in
 
15233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15234
  *) ac_try_echo=$ac_try;;
 
15235
esac
 
15236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15237
  (eval "$ac_compile") 2>conftest.er1
16713
15238
  ac_status=$?
16714
15239
  grep -v '^ *+' conftest.er1 >conftest.err
16715
15240
  rm -f conftest.er1
16716
15241
  cat conftest.err >&5
16717
15242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718
 
  (exit $ac_status); } &&
16719
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16720
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721
 
  (eval $ac_try) 2>&5
16722
 
  ac_status=$?
16723
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724
 
  (exit $ac_status); }; } &&
16725
 
         { ac_try='test -s conftest.$ac_objext'
16726
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727
 
  (eval $ac_try) 2>&5
16728
 
  ac_status=$?
16729
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730
 
  (exit $ac_status); }; }; then
 
15243
  (exit $ac_status); } && {
 
15244
         test -z "$ac_c_werror_flag" ||
 
15245
         test ! -s conftest.err
 
15246
       } && test -s conftest.$ac_objext; then
16731
15247
  ac_lo=0 ac_mid=0
16732
15248
  while :; do
16733
15249
    cat >conftest.$ac_ext <<_ACEOF
16737
15253
cat >>conftest.$ac_ext <<_ACEOF
16738
15254
/* end confdefs.h.  */
16739
15255
$ac_includes_default
 
15256
   typedef unsigned long long ac__type_sizeof_;
16740
15257
int
16741
15258
main ()
16742
15259
{
16743
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
 
15260
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16744
15261
test_array [0] = 0
16745
15262
 
16746
15263
  ;
16748
15265
}
16749
15266
_ACEOF
16750
15267
rm -f conftest.$ac_objext
16751
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16752
 
  (eval $ac_compile) 2>conftest.er1
 
15268
if { (ac_try="$ac_compile"
 
15269
case "(($ac_try" in
 
15270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15271
  *) ac_try_echo=$ac_try;;
 
15272
esac
 
15273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15274
  (eval "$ac_compile") 2>conftest.er1
16753
15275
  ac_status=$?
16754
15276
  grep -v '^ *+' conftest.er1 >conftest.err
16755
15277
  rm -f conftest.er1
16756
15278
  cat conftest.err >&5
16757
15279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758
 
  (exit $ac_status); } &&
16759
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16760
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761
 
  (eval $ac_try) 2>&5
16762
 
  ac_status=$?
16763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764
 
  (exit $ac_status); }; } &&
16765
 
         { ac_try='test -s conftest.$ac_objext'
16766
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767
 
  (eval $ac_try) 2>&5
16768
 
  ac_status=$?
16769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770
 
  (exit $ac_status); }; }; then
 
15280
  (exit $ac_status); } && {
 
15281
         test -z "$ac_c_werror_flag" ||
 
15282
         test ! -s conftest.err
 
15283
       } && test -s conftest.$ac_objext; then
16771
15284
  ac_hi=$ac_mid; break
16772
15285
else
16773
15286
  echo "$as_me: failed program was:" >&5
16774
15287
sed 's/^/| /' conftest.$ac_ext >&5
16775
15288
 
16776
 
ac_lo=`expr $ac_mid + 1`
16777
 
                    if test $ac_lo -le $ac_mid; then
16778
 
                      ac_lo= ac_hi=
16779
 
                      break
16780
 
                    fi
16781
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
15289
        ac_lo=`expr $ac_mid + 1`
 
15290
                        if test $ac_lo -le $ac_mid; then
 
15291
                          ac_lo= ac_hi=
 
15292
                          break
 
15293
                        fi
 
15294
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16782
15295
fi
16783
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15296
 
 
15297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16784
15298
  done
16785
15299
else
16786
15300
  echo "$as_me: failed program was:" >&5
16787
15301
sed 's/^/| /' conftest.$ac_ext >&5
16788
15302
 
16789
 
cat >conftest.$ac_ext <<_ACEOF
 
15303
        cat >conftest.$ac_ext <<_ACEOF
16790
15304
/* confdefs.h.  */
16791
15305
_ACEOF
16792
15306
cat confdefs.h >>conftest.$ac_ext
16793
15307
cat >>conftest.$ac_ext <<_ACEOF
16794
15308
/* end confdefs.h.  */
16795
15309
$ac_includes_default
 
15310
   typedef unsigned long long ac__type_sizeof_;
16796
15311
int
16797
15312
main ()
16798
15313
{
16799
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
 
15314
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
16800
15315
test_array [0] = 0
16801
15316
 
16802
15317
  ;
16804
15319
}
16805
15320
_ACEOF
16806
15321
rm -f conftest.$ac_objext
16807
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808
 
  (eval $ac_compile) 2>conftest.er1
 
15322
if { (ac_try="$ac_compile"
 
15323
case "(($ac_try" in
 
15324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15325
  *) ac_try_echo=$ac_try;;
 
15326
esac
 
15327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15328
  (eval "$ac_compile") 2>conftest.er1
16809
15329
  ac_status=$?
16810
15330
  grep -v '^ *+' conftest.er1 >conftest.err
16811
15331
  rm -f conftest.er1
16812
15332
  cat conftest.err >&5
16813
15333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814
 
  (exit $ac_status); } &&
16815
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16816
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817
 
  (eval $ac_try) 2>&5
16818
 
  ac_status=$?
16819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820
 
  (exit $ac_status); }; } &&
16821
 
         { ac_try='test -s conftest.$ac_objext'
16822
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823
 
  (eval $ac_try) 2>&5
16824
 
  ac_status=$?
16825
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826
 
  (exit $ac_status); }; }; then
 
15334
  (exit $ac_status); } && {
 
15335
         test -z "$ac_c_werror_flag" ||
 
15336
         test ! -s conftest.err
 
15337
       } && test -s conftest.$ac_objext; then
16827
15338
  ac_hi=-1 ac_mid=-1
16828
15339
  while :; do
16829
15340
    cat >conftest.$ac_ext <<_ACEOF
16833
15344
cat >>conftest.$ac_ext <<_ACEOF
16834
15345
/* end confdefs.h.  */
16835
15346
$ac_includes_default
 
15347
   typedef unsigned long long ac__type_sizeof_;
16836
15348
int
16837
15349
main ()
16838
15350
{
16839
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
 
15351
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
16840
15352
test_array [0] = 0
16841
15353
 
16842
15354
  ;
16844
15356
}
16845
15357
_ACEOF
16846
15358
rm -f conftest.$ac_objext
16847
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16848
 
  (eval $ac_compile) 2>conftest.er1
 
15359
if { (ac_try="$ac_compile"
 
15360
case "(($ac_try" in
 
15361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15362
  *) ac_try_echo=$ac_try;;
 
15363
esac
 
15364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15365
  (eval "$ac_compile") 2>conftest.er1
16849
15366
  ac_status=$?
16850
15367
  grep -v '^ *+' conftest.er1 >conftest.err
16851
15368
  rm -f conftest.er1
16852
15369
  cat conftest.err >&5
16853
15370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854
 
  (exit $ac_status); } &&
16855
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16856
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857
 
  (eval $ac_try) 2>&5
16858
 
  ac_status=$?
16859
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860
 
  (exit $ac_status); }; } &&
16861
 
         { ac_try='test -s conftest.$ac_objext'
16862
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863
 
  (eval $ac_try) 2>&5
16864
 
  ac_status=$?
16865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866
 
  (exit $ac_status); }; }; then
 
15371
  (exit $ac_status); } && {
 
15372
         test -z "$ac_c_werror_flag" ||
 
15373
         test ! -s conftest.err
 
15374
       } && test -s conftest.$ac_objext; then
16867
15375
  ac_lo=$ac_mid; break
16868
15376
else
16869
15377
  echo "$as_me: failed program was:" >&5
16870
15378
sed 's/^/| /' conftest.$ac_ext >&5
16871
15379
 
16872
 
ac_hi=`expr '(' $ac_mid ')' - 1`
16873
 
                       if test $ac_mid -le $ac_hi; then
16874
 
                         ac_lo= ac_hi=
16875
 
                         break
16876
 
                       fi
16877
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
15380
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
15381
                        if test $ac_mid -le $ac_hi; then
 
15382
                          ac_lo= ac_hi=
 
15383
                          break
 
15384
                        fi
 
15385
                        ac_mid=`expr 2 '*' $ac_mid`
16878
15386
fi
16879
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15387
 
 
15388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880
15389
  done
16881
15390
else
16882
15391
  echo "$as_me: failed program was:" >&5
16883
15392
sed 's/^/| /' conftest.$ac_ext >&5
16884
15393
 
16885
 
ac_lo= ac_hi=
16886
 
fi
16887
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16888
 
fi
16889
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15394
        ac_lo= ac_hi=
 
15395
fi
 
15396
 
 
15397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15398
fi
 
15399
 
 
15400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16890
15401
# Binary search between lo and hi bounds.
16891
15402
while test "x$ac_lo" != "x$ac_hi"; do
16892
15403
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16897
15408
cat >>conftest.$ac_ext <<_ACEOF
16898
15409
/* end confdefs.h.  */
16899
15410
$ac_includes_default
 
15411
   typedef unsigned long long ac__type_sizeof_;
16900
15412
int
16901
15413
main ()
16902
15414
{
16903
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
 
15415
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
16904
15416
test_array [0] = 0
16905
15417
 
16906
15418
  ;
16908
15420
}
16909
15421
_ACEOF
16910
15422
rm -f conftest.$ac_objext
16911
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16912
 
  (eval $ac_compile) 2>conftest.er1
 
15423
if { (ac_try="$ac_compile"
 
15424
case "(($ac_try" in
 
15425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15426
  *) ac_try_echo=$ac_try;;
 
15427
esac
 
15428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15429
  (eval "$ac_compile") 2>conftest.er1
16913
15430
  ac_status=$?
16914
15431
  grep -v '^ *+' conftest.er1 >conftest.err
16915
15432
  rm -f conftest.er1
16916
15433
  cat conftest.err >&5
16917
15434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918
 
  (exit $ac_status); } &&
16919
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16920
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921
 
  (eval $ac_try) 2>&5
16922
 
  ac_status=$?
16923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924
 
  (exit $ac_status); }; } &&
16925
 
         { ac_try='test -s conftest.$ac_objext'
16926
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927
 
  (eval $ac_try) 2>&5
16928
 
  ac_status=$?
16929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930
 
  (exit $ac_status); }; }; then
 
15435
  (exit $ac_status); } && {
 
15436
         test -z "$ac_c_werror_flag" ||
 
15437
         test ! -s conftest.err
 
15438
       } && test -s conftest.$ac_objext; then
16931
15439
  ac_hi=$ac_mid
16932
15440
else
16933
15441
  echo "$as_me: failed program was:" >&5
16934
15442
sed 's/^/| /' conftest.$ac_ext >&5
16935
15443
 
16936
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
15444
        ac_lo=`expr '(' $ac_mid ')' + 1`
16937
15445
fi
16938
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15446
 
 
15447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16939
15448
done
16940
15449
case $ac_lo in
16941
15450
?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
16942
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
 
15451
'') if test "$ac_cv_type_unsigned_long_long" = yes; then
 
15452
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
16943
15453
See \`config.log' for more details." >&5
16944
 
echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
 
15454
echo "$as_me: error: cannot compute sizeof (unsigned long long)
16945
15455
See \`config.log' for more details." >&2;}
16946
 
   { (exit 1); exit 1; }; } ;;
 
15456
   { (exit 77); exit 77; }; }
 
15457
   else
 
15458
     ac_cv_sizeof_unsigned_long_long=0
 
15459
   fi ;;
16947
15460
esac
16948
15461
else
16949
 
  if test "$cross_compiling" = yes; then
16950
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16951
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16952
 
   { (exit 1); exit 1; }; }
16953
 
else
16954
15462
  cat >conftest.$ac_ext <<_ACEOF
16955
15463
/* confdefs.h.  */
16956
15464
_ACEOF
16958
15466
cat >>conftest.$ac_ext <<_ACEOF
16959
15467
/* end confdefs.h.  */
16960
15468
$ac_includes_default
16961
 
long longval () { return (long) (sizeof (unsigned long long)); }
16962
 
unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
 
15469
   typedef unsigned long long ac__type_sizeof_;
 
15470
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
15471
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
16963
15472
#include <stdio.h>
16964
15473
#include <stdlib.h>
16965
15474
int
16968
15477
 
16969
15478
  FILE *f = fopen ("conftest.val", "w");
16970
15479
  if (! f)
16971
 
    exit (1);
16972
 
  if (((long) (sizeof (unsigned long long))) < 0)
 
15480
    return 1;
 
15481
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
16973
15482
    {
16974
 
      long i = longval ();
16975
 
      if (i != ((long) (sizeof (unsigned long long))))
16976
 
        exit (1);
 
15483
      long int i = longval ();
 
15484
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
15485
        return 1;
16977
15486
      fprintf (f, "%ld\n", i);
16978
15487
    }
16979
15488
  else
16980
15489
    {
16981
 
      unsigned long i = ulongval ();
16982
 
      if (i != ((long) (sizeof (unsigned long long))))
16983
 
        exit (1);
 
15490
      unsigned long int i = ulongval ();
 
15491
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
15492
        return 1;
16984
15493
      fprintf (f, "%lu\n", i);
16985
15494
    }
16986
 
  exit (ferror (f) || fclose (f) != 0);
 
15495
  return ferror (f) || fclose (f) != 0;
16987
15496
 
16988
15497
  ;
16989
15498
  return 0;
16990
15499
}
16991
15500
_ACEOF
16992
15501
rm -f conftest$ac_exeext
16993
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16994
 
  (eval $ac_link) 2>&5
 
15502
if { (ac_try="$ac_link"
 
15503
case "(($ac_try" in
 
15504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15505
  *) ac_try_echo=$ac_try;;
 
15506
esac
 
15507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15508
  (eval "$ac_link") 2>&5
16995
15509
  ac_status=$?
16996
15510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997
15511
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16998
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999
 
  (eval $ac_try) 2>&5
 
15512
  { (case "(($ac_try" in
 
15513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15514
  *) ac_try_echo=$ac_try;;
 
15515
esac
 
15516
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15517
  (eval "$ac_try") 2>&5
17000
15518
  ac_status=$?
17001
15519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002
15520
  (exit $ac_status); }; }; then
17007
15525
sed 's/^/| /' conftest.$ac_ext >&5
17008
15526
 
17009
15527
( exit $ac_status )
17010
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
 
15528
if test "$ac_cv_type_unsigned_long_long" = yes; then
 
15529
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
17011
15530
See \`config.log' for more details." >&5
17012
 
echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
 
15531
echo "$as_me: error: cannot compute sizeof (unsigned long long)
17013
15532
See \`config.log' for more details." >&2;}
17014
 
   { (exit 1); exit 1; }; }
17015
 
fi
17016
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17017
 
fi
 
15533
   { (exit 77); exit 77; }; }
 
15534
   else
 
15535
     ac_cv_sizeof_unsigned_long_long=0
 
15536
   fi
 
15537
fi
 
15538
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17018
15539
fi
17019
15540
rm -f conftest.val
17020
 
else
17021
 
  ac_cv_sizeof_unsigned_long_long=0
17022
 
fi
17023
 
fi
17024
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
17025
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
 
15541
fi
 
15542
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
 
15543
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
 
15544
 
 
15545
 
 
15546
 
17026
15547
cat >>confdefs.h <<_ACEOF
17027
15548
#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
17028
15549
_ACEOF
17029
15550
 
17030
15551
 
 
15552
{ echo "$as_me:$LINENO: checking for time_t" >&5
 
15553
echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
 
15554
if test "${ac_cv_type_time_t+set}" = set; then
 
15555
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15556
else
 
15557
  cat >conftest.$ac_ext <<_ACEOF
 
15558
/* confdefs.h.  */
 
15559
_ACEOF
 
15560
cat confdefs.h >>conftest.$ac_ext
 
15561
cat >>conftest.$ac_ext <<_ACEOF
 
15562
/* end confdefs.h.  */
 
15563
 
 
15564
#include <stdio.h>
 
15565
#if TIME_WITH_SYS_TIME
 
15566
# include <sys/time.h>
 
15567
# include <time.h>
 
15568
#else
 
15569
# if HAVE_SYS_TIME_H
 
15570
#  include <sys/time.h>
 
15571
# else
 
15572
#  include <time.h>
 
15573
# endif
 
15574
#endif
 
15575
 
 
15576
 
 
15577
typedef time_t ac__type_new_;
 
15578
int
 
15579
main ()
 
15580
{
 
15581
if ((ac__type_new_ *) 0)
 
15582
  return 0;
 
15583
if (sizeof (ac__type_new_))
 
15584
  return 0;
 
15585
  ;
 
15586
  return 0;
 
15587
}
 
15588
_ACEOF
 
15589
rm -f conftest.$ac_objext
 
15590
if { (ac_try="$ac_compile"
 
15591
case "(($ac_try" in
 
15592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15593
  *) ac_try_echo=$ac_try;;
 
15594
esac
 
15595
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15596
  (eval "$ac_compile") 2>conftest.er1
 
15597
  ac_status=$?
 
15598
  grep -v '^ *+' conftest.er1 >conftest.err
 
15599
  rm -f conftest.er1
 
15600
  cat conftest.err >&5
 
15601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15602
  (exit $ac_status); } && {
 
15603
         test -z "$ac_c_werror_flag" ||
 
15604
         test ! -s conftest.err
 
15605
       } && test -s conftest.$ac_objext; then
 
15606
  ac_cv_type_time_t=yes
 
15607
else
 
15608
  echo "$as_me: failed program was:" >&5
 
15609
sed 's/^/| /' conftest.$ac_ext >&5
 
15610
 
 
15611
        ac_cv_type_time_t=no
 
15612
fi
 
15613
 
 
15614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15615
fi
 
15616
{ echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
 
15617
echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
 
15618
 
 
15619
# The cast to long int works around a bug in the HP C Compiler
 
15620
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
15621
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
15622
# This bug is HP SR number 8606223364.
 
15623
{ echo "$as_me:$LINENO: checking size of time_t" >&5
 
15624
echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
 
15625
if test "${ac_cv_sizeof_time_t+set}" = set; then
 
15626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15627
else
 
15628
  if test "$cross_compiling" = yes; then
 
15629
  # Depending upon the size, compute the lo and hi bounds.
 
15630
cat >conftest.$ac_ext <<_ACEOF
 
15631
/* confdefs.h.  */
 
15632
_ACEOF
 
15633
cat confdefs.h >>conftest.$ac_ext
 
15634
cat >>conftest.$ac_ext <<_ACEOF
 
15635
/* end confdefs.h.  */
 
15636
 
 
15637
#include <stdio.h>
 
15638
#if TIME_WITH_SYS_TIME
 
15639
# include <sys/time.h>
 
15640
# include <time.h>
 
15641
#else
 
15642
# if HAVE_SYS_TIME_H
 
15643
#  include <sys/time.h>
 
15644
# else
 
15645
#  include <time.h>
 
15646
# endif
 
15647
#endif
 
15648
 
 
15649
 
 
15650
   typedef time_t ac__type_sizeof_;
 
15651
int
 
15652
main ()
 
15653
{
 
15654
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
15655
test_array [0] = 0
 
15656
 
 
15657
  ;
 
15658
  return 0;
 
15659
}
 
15660
_ACEOF
 
15661
rm -f conftest.$ac_objext
 
15662
if { (ac_try="$ac_compile"
 
15663
case "(($ac_try" in
 
15664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15665
  *) ac_try_echo=$ac_try;;
 
15666
esac
 
15667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15668
  (eval "$ac_compile") 2>conftest.er1
 
15669
  ac_status=$?
 
15670
  grep -v '^ *+' conftest.er1 >conftest.err
 
15671
  rm -f conftest.er1
 
15672
  cat conftest.err >&5
 
15673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15674
  (exit $ac_status); } && {
 
15675
         test -z "$ac_c_werror_flag" ||
 
15676
         test ! -s conftest.err
 
15677
       } && test -s conftest.$ac_objext; then
 
15678
  ac_lo=0 ac_mid=0
 
15679
  while :; do
 
15680
    cat >conftest.$ac_ext <<_ACEOF
 
15681
/* confdefs.h.  */
 
15682
_ACEOF
 
15683
cat confdefs.h >>conftest.$ac_ext
 
15684
cat >>conftest.$ac_ext <<_ACEOF
 
15685
/* end confdefs.h.  */
 
15686
 
 
15687
#include <stdio.h>
 
15688
#if TIME_WITH_SYS_TIME
 
15689
# include <sys/time.h>
 
15690
# include <time.h>
 
15691
#else
 
15692
# if HAVE_SYS_TIME_H
 
15693
#  include <sys/time.h>
 
15694
# else
 
15695
#  include <time.h>
 
15696
# endif
 
15697
#endif
 
15698
 
 
15699
 
 
15700
   typedef time_t ac__type_sizeof_;
 
15701
int
 
15702
main ()
 
15703
{
 
15704
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
15705
test_array [0] = 0
 
15706
 
 
15707
  ;
 
15708
  return 0;
 
15709
}
 
15710
_ACEOF
 
15711
rm -f conftest.$ac_objext
 
15712
if { (ac_try="$ac_compile"
 
15713
case "(($ac_try" in
 
15714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15715
  *) ac_try_echo=$ac_try;;
 
15716
esac
 
15717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15718
  (eval "$ac_compile") 2>conftest.er1
 
15719
  ac_status=$?
 
15720
  grep -v '^ *+' conftest.er1 >conftest.err
 
15721
  rm -f conftest.er1
 
15722
  cat conftest.err >&5
 
15723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15724
  (exit $ac_status); } && {
 
15725
         test -z "$ac_c_werror_flag" ||
 
15726
         test ! -s conftest.err
 
15727
       } && test -s conftest.$ac_objext; then
 
15728
  ac_hi=$ac_mid; break
 
15729
else
 
15730
  echo "$as_me: failed program was:" >&5
 
15731
sed 's/^/| /' conftest.$ac_ext >&5
 
15732
 
 
15733
        ac_lo=`expr $ac_mid + 1`
 
15734
                        if test $ac_lo -le $ac_mid; then
 
15735
                          ac_lo= ac_hi=
 
15736
                          break
 
15737
                        fi
 
15738
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
15739
fi
 
15740
 
 
15741
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15742
  done
 
15743
else
 
15744
  echo "$as_me: failed program was:" >&5
 
15745
sed 's/^/| /' conftest.$ac_ext >&5
 
15746
 
 
15747
        cat >conftest.$ac_ext <<_ACEOF
 
15748
/* confdefs.h.  */
 
15749
_ACEOF
 
15750
cat confdefs.h >>conftest.$ac_ext
 
15751
cat >>conftest.$ac_ext <<_ACEOF
 
15752
/* end confdefs.h.  */
 
15753
 
 
15754
#include <stdio.h>
 
15755
#if TIME_WITH_SYS_TIME
 
15756
# include <sys/time.h>
 
15757
# include <time.h>
 
15758
#else
 
15759
# if HAVE_SYS_TIME_H
 
15760
#  include <sys/time.h>
 
15761
# else
 
15762
#  include <time.h>
 
15763
# endif
 
15764
#endif
 
15765
 
 
15766
 
 
15767
   typedef time_t ac__type_sizeof_;
 
15768
int
 
15769
main ()
 
15770
{
 
15771
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
15772
test_array [0] = 0
 
15773
 
 
15774
  ;
 
15775
  return 0;
 
15776
}
 
15777
_ACEOF
 
15778
rm -f conftest.$ac_objext
 
15779
if { (ac_try="$ac_compile"
 
15780
case "(($ac_try" in
 
15781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15782
  *) ac_try_echo=$ac_try;;
 
15783
esac
 
15784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15785
  (eval "$ac_compile") 2>conftest.er1
 
15786
  ac_status=$?
 
15787
  grep -v '^ *+' conftest.er1 >conftest.err
 
15788
  rm -f conftest.er1
 
15789
  cat conftest.err >&5
 
15790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15791
  (exit $ac_status); } && {
 
15792
         test -z "$ac_c_werror_flag" ||
 
15793
         test ! -s conftest.err
 
15794
       } && test -s conftest.$ac_objext; then
 
15795
  ac_hi=-1 ac_mid=-1
 
15796
  while :; do
 
15797
    cat >conftest.$ac_ext <<_ACEOF
 
15798
/* confdefs.h.  */
 
15799
_ACEOF
 
15800
cat confdefs.h >>conftest.$ac_ext
 
15801
cat >>conftest.$ac_ext <<_ACEOF
 
15802
/* end confdefs.h.  */
 
15803
 
 
15804
#include <stdio.h>
 
15805
#if TIME_WITH_SYS_TIME
 
15806
# include <sys/time.h>
 
15807
# include <time.h>
 
15808
#else
 
15809
# if HAVE_SYS_TIME_H
 
15810
#  include <sys/time.h>
 
15811
# else
 
15812
#  include <time.h>
 
15813
# endif
 
15814
#endif
 
15815
 
 
15816
 
 
15817
   typedef time_t ac__type_sizeof_;
 
15818
int
 
15819
main ()
 
15820
{
 
15821
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
15822
test_array [0] = 0
 
15823
 
 
15824
  ;
 
15825
  return 0;
 
15826
}
 
15827
_ACEOF
 
15828
rm -f conftest.$ac_objext
 
15829
if { (ac_try="$ac_compile"
 
15830
case "(($ac_try" in
 
15831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15832
  *) ac_try_echo=$ac_try;;
 
15833
esac
 
15834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15835
  (eval "$ac_compile") 2>conftest.er1
 
15836
  ac_status=$?
 
15837
  grep -v '^ *+' conftest.er1 >conftest.err
 
15838
  rm -f conftest.er1
 
15839
  cat conftest.err >&5
 
15840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15841
  (exit $ac_status); } && {
 
15842
         test -z "$ac_c_werror_flag" ||
 
15843
         test ! -s conftest.err
 
15844
       } && test -s conftest.$ac_objext; then
 
15845
  ac_lo=$ac_mid; break
 
15846
else
 
15847
  echo "$as_me: failed program was:" >&5
 
15848
sed 's/^/| /' conftest.$ac_ext >&5
 
15849
 
 
15850
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
15851
                        if test $ac_mid -le $ac_hi; then
 
15852
                          ac_lo= ac_hi=
 
15853
                          break
 
15854
                        fi
 
15855
                        ac_mid=`expr 2 '*' $ac_mid`
 
15856
fi
 
15857
 
 
15858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15859
  done
 
15860
else
 
15861
  echo "$as_me: failed program was:" >&5
 
15862
sed 's/^/| /' conftest.$ac_ext >&5
 
15863
 
 
15864
        ac_lo= ac_hi=
 
15865
fi
 
15866
 
 
15867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15868
fi
 
15869
 
 
15870
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15871
# Binary search between lo and hi bounds.
 
15872
while test "x$ac_lo" != "x$ac_hi"; do
 
15873
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
15874
  cat >conftest.$ac_ext <<_ACEOF
 
15875
/* confdefs.h.  */
 
15876
_ACEOF
 
15877
cat confdefs.h >>conftest.$ac_ext
 
15878
cat >>conftest.$ac_ext <<_ACEOF
 
15879
/* end confdefs.h.  */
 
15880
 
 
15881
#include <stdio.h>
 
15882
#if TIME_WITH_SYS_TIME
 
15883
# include <sys/time.h>
 
15884
# include <time.h>
 
15885
#else
 
15886
# if HAVE_SYS_TIME_H
 
15887
#  include <sys/time.h>
 
15888
# else
 
15889
#  include <time.h>
 
15890
# endif
 
15891
#endif
 
15892
 
 
15893
 
 
15894
   typedef time_t ac__type_sizeof_;
 
15895
int
 
15896
main ()
 
15897
{
 
15898
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
15899
test_array [0] = 0
 
15900
 
 
15901
  ;
 
15902
  return 0;
 
15903
}
 
15904
_ACEOF
 
15905
rm -f conftest.$ac_objext
 
15906
if { (ac_try="$ac_compile"
 
15907
case "(($ac_try" in
 
15908
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15909
  *) ac_try_echo=$ac_try;;
 
15910
esac
 
15911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15912
  (eval "$ac_compile") 2>conftest.er1
 
15913
  ac_status=$?
 
15914
  grep -v '^ *+' conftest.er1 >conftest.err
 
15915
  rm -f conftest.er1
 
15916
  cat conftest.err >&5
 
15917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15918
  (exit $ac_status); } && {
 
15919
         test -z "$ac_c_werror_flag" ||
 
15920
         test ! -s conftest.err
 
15921
       } && test -s conftest.$ac_objext; then
 
15922
  ac_hi=$ac_mid
 
15923
else
 
15924
  echo "$as_me: failed program was:" >&5
 
15925
sed 's/^/| /' conftest.$ac_ext >&5
 
15926
 
 
15927
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
15928
fi
 
15929
 
 
15930
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15931
done
 
15932
case $ac_lo in
 
15933
?*) ac_cv_sizeof_time_t=$ac_lo;;
 
15934
'') if test "$ac_cv_type_time_t" = yes; then
 
15935
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
 
15936
See \`config.log' for more details." >&5
 
15937
echo "$as_me: error: cannot compute sizeof (time_t)
 
15938
See \`config.log' for more details." >&2;}
 
15939
   { (exit 77); exit 77; }; }
 
15940
   else
 
15941
     ac_cv_sizeof_time_t=0
 
15942
   fi ;;
 
15943
esac
 
15944
else
 
15945
  cat >conftest.$ac_ext <<_ACEOF
 
15946
/* confdefs.h.  */
 
15947
_ACEOF
 
15948
cat confdefs.h >>conftest.$ac_ext
 
15949
cat >>conftest.$ac_ext <<_ACEOF
 
15950
/* end confdefs.h.  */
 
15951
 
 
15952
#include <stdio.h>
 
15953
#if TIME_WITH_SYS_TIME
 
15954
# include <sys/time.h>
 
15955
# include <time.h>
 
15956
#else
 
15957
# if HAVE_SYS_TIME_H
 
15958
#  include <sys/time.h>
 
15959
# else
 
15960
#  include <time.h>
 
15961
# endif
 
15962
#endif
 
15963
 
 
15964
 
 
15965
   typedef time_t ac__type_sizeof_;
 
15966
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
15967
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
15968
#include <stdio.h>
 
15969
#include <stdlib.h>
 
15970
int
 
15971
main ()
 
15972
{
 
15973
 
 
15974
  FILE *f = fopen ("conftest.val", "w");
 
15975
  if (! f)
 
15976
    return 1;
 
15977
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
15978
    {
 
15979
      long int i = longval ();
 
15980
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
15981
        return 1;
 
15982
      fprintf (f, "%ld\n", i);
 
15983
    }
 
15984
  else
 
15985
    {
 
15986
      unsigned long int i = ulongval ();
 
15987
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
15988
        return 1;
 
15989
      fprintf (f, "%lu\n", i);
 
15990
    }
 
15991
  return ferror (f) || fclose (f) != 0;
 
15992
 
 
15993
  ;
 
15994
  return 0;
 
15995
}
 
15996
_ACEOF
 
15997
rm -f conftest$ac_exeext
 
15998
if { (ac_try="$ac_link"
 
15999
case "(($ac_try" in
 
16000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16001
  *) ac_try_echo=$ac_try;;
 
16002
esac
 
16003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16004
  (eval "$ac_link") 2>&5
 
16005
  ac_status=$?
 
16006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16007
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16008
  { (case "(($ac_try" in
 
16009
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16010
  *) ac_try_echo=$ac_try;;
 
16011
esac
 
16012
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16013
  (eval "$ac_try") 2>&5
 
16014
  ac_status=$?
 
16015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16016
  (exit $ac_status); }; }; then
 
16017
  ac_cv_sizeof_time_t=`cat conftest.val`
 
16018
else
 
16019
  echo "$as_me: program exited with status $ac_status" >&5
 
16020
echo "$as_me: failed program was:" >&5
 
16021
sed 's/^/| /' conftest.$ac_ext >&5
 
16022
 
 
16023
( exit $ac_status )
 
16024
if test "$ac_cv_type_time_t" = yes; then
 
16025
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
 
16026
See \`config.log' for more details." >&5
 
16027
echo "$as_me: error: cannot compute sizeof (time_t)
 
16028
See \`config.log' for more details." >&2;}
 
16029
   { (exit 77); exit 77; }; }
 
16030
   else
 
16031
     ac_cv_sizeof_time_t=0
 
16032
   fi
 
16033
fi
 
16034
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16035
fi
 
16036
rm -f conftest.val
 
16037
fi
 
16038
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
 
16039
echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
 
16040
 
 
16041
 
 
16042
 
 
16043
cat >>confdefs.h <<_ACEOF
 
16044
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
 
16045
_ACEOF
 
16046
 
 
16047
 
 
16048
 
 
16049
 
17031
16050
# Ensure that we have UINT64_C before we bother to check for uint64_t
17032
 
# fixme: really needed in gnupg?  I think it is only useful in libcgrypt.
17033
 
echo "$as_me:$LINENO: checking for UINT64_C" >&5
17034
 
echo $ECHO_N "checking for UINT64_C... $ECHO_C" >&6
 
16051
# Fixme: really needed in gnupg?  I think it is only useful in libcgrypt.
 
16052
{ echo "$as_me:$LINENO: checking for UINT64_C" >&5
 
16053
echo $ECHO_N "checking for UINT64_C... $ECHO_C" >&6; }
17035
16054
if test "${gnupg_cv_uint64_c_works+set}" = set; then
17036
16055
  echo $ECHO_N "(cached) $ECHO_C" >&6
17037
16056
else
17042
16061
cat >>conftest.$ac_ext <<_ACEOF
17043
16062
/* end confdefs.h.  */
17044
16063
#include <inttypes.h>
17045
 
uint64_t foo=UINT64_C(42);
 
16064
       uint64_t foo=UINT64_C(42);
17046
16065
int
17047
16066
main ()
17048
16067
{
17052
16071
}
17053
16072
_ACEOF
17054
16073
rm -f conftest.$ac_objext
17055
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17056
 
  (eval $ac_compile) 2>conftest.er1
 
16074
if { (ac_try="$ac_compile"
 
16075
case "(($ac_try" in
 
16076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16077
  *) ac_try_echo=$ac_try;;
 
16078
esac
 
16079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16080
  (eval "$ac_compile") 2>conftest.er1
17057
16081
  ac_status=$?
17058
16082
  grep -v '^ *+' conftest.er1 >conftest.err
17059
16083
  rm -f conftest.er1
17060
16084
  cat conftest.err >&5
17061
16085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062
 
  (exit $ac_status); } &&
17063
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17064
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065
 
  (eval $ac_try) 2>&5
17066
 
  ac_status=$?
17067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068
 
  (exit $ac_status); }; } &&
17069
 
         { ac_try='test -s conftest.$ac_objext'
17070
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071
 
  (eval $ac_try) 2>&5
17072
 
  ac_status=$?
17073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074
 
  (exit $ac_status); }; }; then
 
16086
  (exit $ac_status); } && {
 
16087
         test -z "$ac_c_werror_flag" ||
 
16088
         test ! -s conftest.err
 
16089
       } && test -s conftest.$ac_objext; then
17075
16090
  gnupg_cv_uint64_c_works=yes
17076
16091
else
17077
16092
  echo "$as_me: failed program was:" >&5
17078
16093
sed 's/^/| /' conftest.$ac_ext >&5
17079
16094
 
17080
 
gnupg_cv_uint64_c_works=no
17081
 
fi
17082
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17083
 
fi
17084
 
echo "$as_me:$LINENO: result: $gnupg_cv_uint64_c_works" >&5
17085
 
echo "${ECHO_T}$gnupg_cv_uint64_c_works" >&6
 
16095
        gnupg_cv_uint64_c_works=no
 
16096
fi
 
16097
 
 
16098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16099
fi
 
16100
{ echo "$as_me:$LINENO: result: $gnupg_cv_uint64_c_works" >&5
 
16101
echo "${ECHO_T}$gnupg_cv_uint64_c_works" >&6; }
17086
16102
if test "$gnupg_cv_uint64_c_works" = "yes" ; then
17087
 
   echo "$as_me:$LINENO: checking for uint64_t" >&5
17088
 
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
 
16103
   { echo "$as_me:$LINENO: checking for uint64_t" >&5
 
16104
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17089
16105
if test "${ac_cv_type_uint64_t+set}" = set; then
17090
16106
  echo $ECHO_N "(cached) $ECHO_C" >&6
17091
16107
else
17096
16112
cat >>conftest.$ac_ext <<_ACEOF
17097
16113
/* end confdefs.h.  */
17098
16114
$ac_includes_default
 
16115
typedef uint64_t ac__type_new_;
17099
16116
int
17100
16117
main ()
17101
16118
{
17102
 
if ((uint64_t *) 0)
 
16119
if ((ac__type_new_ *) 0)
17103
16120
  return 0;
17104
 
if (sizeof (uint64_t))
 
16121
if (sizeof (ac__type_new_))
17105
16122
  return 0;
17106
16123
  ;
17107
16124
  return 0;
17108
16125
}
17109
16126
_ACEOF
17110
16127
rm -f conftest.$ac_objext
17111
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17112
 
  (eval $ac_compile) 2>conftest.er1
 
16128
if { (ac_try="$ac_compile"
 
16129
case "(($ac_try" in
 
16130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16131
  *) ac_try_echo=$ac_try;;
 
16132
esac
 
16133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16134
  (eval "$ac_compile") 2>conftest.er1
17113
16135
  ac_status=$?
17114
16136
  grep -v '^ *+' conftest.er1 >conftest.err
17115
16137
  rm -f conftest.er1
17116
16138
  cat conftest.err >&5
17117
16139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118
 
  (exit $ac_status); } &&
17119
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17120
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121
 
  (eval $ac_try) 2>&5
17122
 
  ac_status=$?
17123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124
 
  (exit $ac_status); }; } &&
17125
 
         { ac_try='test -s conftest.$ac_objext'
17126
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127
 
  (eval $ac_try) 2>&5
17128
 
  ac_status=$?
17129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130
 
  (exit $ac_status); }; }; then
 
16140
  (exit $ac_status); } && {
 
16141
         test -z "$ac_c_werror_flag" ||
 
16142
         test ! -s conftest.err
 
16143
       } && test -s conftest.$ac_objext; then
17131
16144
  ac_cv_type_uint64_t=yes
17132
16145
else
17133
16146
  echo "$as_me: failed program was:" >&5
17134
16147
sed 's/^/| /' conftest.$ac_ext >&5
17135
16148
 
17136
 
ac_cv_type_uint64_t=no
17137
 
fi
17138
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17139
 
fi
17140
 
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17141
 
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
17142
 
 
17143
 
echo "$as_me:$LINENO: checking size of uint64_t" >&5
17144
 
echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
 
16149
        ac_cv_type_uint64_t=no
 
16150
fi
 
16151
 
 
16152
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16153
fi
 
16154
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
 
16155
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
 
16156
 
 
16157
# The cast to long int works around a bug in the HP C Compiler
 
16158
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
16159
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
16160
# This bug is HP SR number 8606223364.
 
16161
{ echo "$as_me:$LINENO: checking size of uint64_t" >&5
 
16162
echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6; }
17145
16163
if test "${ac_cv_sizeof_uint64_t+set}" = set; then
17146
16164
  echo $ECHO_N "(cached) $ECHO_C" >&6
17147
16165
else
17148
 
  if test "$ac_cv_type_uint64_t" = yes; then
17149
 
  # The cast to unsigned long works around a bug in the HP C Compiler
17150
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17151
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17152
 
  # This bug is HP SR number 8606223364.
17153
16166
  if test "$cross_compiling" = yes; then
17154
16167
  # Depending upon the size, compute the lo and hi bounds.
17155
16168
cat >conftest.$ac_ext <<_ACEOF
17159
16172
cat >>conftest.$ac_ext <<_ACEOF
17160
16173
/* end confdefs.h.  */
17161
16174
$ac_includes_default
 
16175
   typedef uint64_t ac__type_sizeof_;
17162
16176
int
17163
16177
main ()
17164
16178
{
17165
 
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= 0)];
 
16179
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17166
16180
test_array [0] = 0
17167
16181
 
17168
16182
  ;
17170
16184
}
17171
16185
_ACEOF
17172
16186
rm -f conftest.$ac_objext
17173
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17174
 
  (eval $ac_compile) 2>conftest.er1
 
16187
if { (ac_try="$ac_compile"
 
16188
case "(($ac_try" in
 
16189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16190
  *) ac_try_echo=$ac_try;;
 
16191
esac
 
16192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16193
  (eval "$ac_compile") 2>conftest.er1
17175
16194
  ac_status=$?
17176
16195
  grep -v '^ *+' conftest.er1 >conftest.err
17177
16196
  rm -f conftest.er1
17178
16197
  cat conftest.err >&5
17179
16198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180
 
  (exit $ac_status); } &&
17181
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17182
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183
 
  (eval $ac_try) 2>&5
17184
 
  ac_status=$?
17185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186
 
  (exit $ac_status); }; } &&
17187
 
         { ac_try='test -s conftest.$ac_objext'
17188
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189
 
  (eval $ac_try) 2>&5
17190
 
  ac_status=$?
17191
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192
 
  (exit $ac_status); }; }; then
 
16199
  (exit $ac_status); } && {
 
16200
         test -z "$ac_c_werror_flag" ||
 
16201
         test ! -s conftest.err
 
16202
       } && test -s conftest.$ac_objext; then
17193
16203
  ac_lo=0 ac_mid=0
17194
16204
  while :; do
17195
16205
    cat >conftest.$ac_ext <<_ACEOF
17199
16209
cat >>conftest.$ac_ext <<_ACEOF
17200
16210
/* end confdefs.h.  */
17201
16211
$ac_includes_default
 
16212
   typedef uint64_t ac__type_sizeof_;
17202
16213
int
17203
16214
main ()
17204
16215
{
17205
 
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
 
16216
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17206
16217
test_array [0] = 0
17207
16218
 
17208
16219
  ;
17210
16221
}
17211
16222
_ACEOF
17212
16223
rm -f conftest.$ac_objext
17213
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17214
 
  (eval $ac_compile) 2>conftest.er1
 
16224
if { (ac_try="$ac_compile"
 
16225
case "(($ac_try" in
 
16226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16227
  *) ac_try_echo=$ac_try;;
 
16228
esac
 
16229
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16230
  (eval "$ac_compile") 2>conftest.er1
17215
16231
  ac_status=$?
17216
16232
  grep -v '^ *+' conftest.er1 >conftest.err
17217
16233
  rm -f conftest.er1
17218
16234
  cat conftest.err >&5
17219
16235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220
 
  (exit $ac_status); } &&
17221
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17222
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223
 
  (eval $ac_try) 2>&5
17224
 
  ac_status=$?
17225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226
 
  (exit $ac_status); }; } &&
17227
 
         { ac_try='test -s conftest.$ac_objext'
17228
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229
 
  (eval $ac_try) 2>&5
17230
 
  ac_status=$?
17231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232
 
  (exit $ac_status); }; }; then
 
16236
  (exit $ac_status); } && {
 
16237
         test -z "$ac_c_werror_flag" ||
 
16238
         test ! -s conftest.err
 
16239
       } && test -s conftest.$ac_objext; then
17233
16240
  ac_hi=$ac_mid; break
17234
16241
else
17235
16242
  echo "$as_me: failed program was:" >&5
17236
16243
sed 's/^/| /' conftest.$ac_ext >&5
17237
16244
 
17238
 
ac_lo=`expr $ac_mid + 1`
17239
 
                    if test $ac_lo -le $ac_mid; then
17240
 
                      ac_lo= ac_hi=
17241
 
                      break
17242
 
                    fi
17243
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
16245
        ac_lo=`expr $ac_mid + 1`
 
16246
                        if test $ac_lo -le $ac_mid; then
 
16247
                          ac_lo= ac_hi=
 
16248
                          break
 
16249
                        fi
 
16250
                        ac_mid=`expr 2 '*' $ac_mid + 1`
17244
16251
fi
17245
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16252
 
 
16253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246
16254
  done
17247
16255
else
17248
16256
  echo "$as_me: failed program was:" >&5
17249
16257
sed 's/^/| /' conftest.$ac_ext >&5
17250
16258
 
17251
 
cat >conftest.$ac_ext <<_ACEOF
 
16259
        cat >conftest.$ac_ext <<_ACEOF
17252
16260
/* confdefs.h.  */
17253
16261
_ACEOF
17254
16262
cat confdefs.h >>conftest.$ac_ext
17255
16263
cat >>conftest.$ac_ext <<_ACEOF
17256
16264
/* end confdefs.h.  */
17257
16265
$ac_includes_default
 
16266
   typedef uint64_t ac__type_sizeof_;
17258
16267
int
17259
16268
main ()
17260
16269
{
17261
 
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) < 0)];
 
16270
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17262
16271
test_array [0] = 0
17263
16272
 
17264
16273
  ;
17266
16275
}
17267
16276
_ACEOF
17268
16277
rm -f conftest.$ac_objext
17269
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17270
 
  (eval $ac_compile) 2>conftest.er1
 
16278
if { (ac_try="$ac_compile"
 
16279
case "(($ac_try" in
 
16280
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16281
  *) ac_try_echo=$ac_try;;
 
16282
esac
 
16283
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16284
  (eval "$ac_compile") 2>conftest.er1
17271
16285
  ac_status=$?
17272
16286
  grep -v '^ *+' conftest.er1 >conftest.err
17273
16287
  rm -f conftest.er1
17274
16288
  cat conftest.err >&5
17275
16289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276
 
  (exit $ac_status); } &&
17277
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17278
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279
 
  (eval $ac_try) 2>&5
17280
 
  ac_status=$?
17281
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282
 
  (exit $ac_status); }; } &&
17283
 
         { ac_try='test -s conftest.$ac_objext'
17284
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285
 
  (eval $ac_try) 2>&5
17286
 
  ac_status=$?
17287
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288
 
  (exit $ac_status); }; }; then
 
16290
  (exit $ac_status); } && {
 
16291
         test -z "$ac_c_werror_flag" ||
 
16292
         test ! -s conftest.err
 
16293
       } && test -s conftest.$ac_objext; then
17289
16294
  ac_hi=-1 ac_mid=-1
17290
16295
  while :; do
17291
16296
    cat >conftest.$ac_ext <<_ACEOF
17295
16300
cat >>conftest.$ac_ext <<_ACEOF
17296
16301
/* end confdefs.h.  */
17297
16302
$ac_includes_default
 
16303
   typedef uint64_t ac__type_sizeof_;
17298
16304
int
17299
16305
main ()
17300
16306
{
17301
 
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= $ac_mid)];
 
16307
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
17302
16308
test_array [0] = 0
17303
16309
 
17304
16310
  ;
17306
16312
}
17307
16313
_ACEOF
17308
16314
rm -f conftest.$ac_objext
17309
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17310
 
  (eval $ac_compile) 2>conftest.er1
 
16315
if { (ac_try="$ac_compile"
 
16316
case "(($ac_try" in
 
16317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16318
  *) ac_try_echo=$ac_try;;
 
16319
esac
 
16320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16321
  (eval "$ac_compile") 2>conftest.er1
17311
16322
  ac_status=$?
17312
16323
  grep -v '^ *+' conftest.er1 >conftest.err
17313
16324
  rm -f conftest.er1
17314
16325
  cat conftest.err >&5
17315
16326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316
 
  (exit $ac_status); } &&
17317
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17318
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319
 
  (eval $ac_try) 2>&5
17320
 
  ac_status=$?
17321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322
 
  (exit $ac_status); }; } &&
17323
 
         { ac_try='test -s conftest.$ac_objext'
17324
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325
 
  (eval $ac_try) 2>&5
17326
 
  ac_status=$?
17327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328
 
  (exit $ac_status); }; }; then
 
16327
  (exit $ac_status); } && {
 
16328
         test -z "$ac_c_werror_flag" ||
 
16329
         test ! -s conftest.err
 
16330
       } && test -s conftest.$ac_objext; then
17329
16331
  ac_lo=$ac_mid; break
17330
16332
else
17331
16333
  echo "$as_me: failed program was:" >&5
17332
16334
sed 's/^/| /' conftest.$ac_ext >&5
17333
16335
 
17334
 
ac_hi=`expr '(' $ac_mid ')' - 1`
17335
 
                       if test $ac_mid -le $ac_hi; then
17336
 
                         ac_lo= ac_hi=
17337
 
                         break
17338
 
                       fi
17339
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
16336
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
16337
                        if test $ac_mid -le $ac_hi; then
 
16338
                          ac_lo= ac_hi=
 
16339
                          break
 
16340
                        fi
 
16341
                        ac_mid=`expr 2 '*' $ac_mid`
17340
16342
fi
17341
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16343
 
 
16344
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17342
16345
  done
17343
16346
else
17344
16347
  echo "$as_me: failed program was:" >&5
17345
16348
sed 's/^/| /' conftest.$ac_ext >&5
17346
16349
 
17347
 
ac_lo= ac_hi=
17348
 
fi
17349
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17350
 
fi
17351
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16350
        ac_lo= ac_hi=
 
16351
fi
 
16352
 
 
16353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16354
fi
 
16355
 
 
16356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17352
16357
# Binary search between lo and hi bounds.
17353
16358
while test "x$ac_lo" != "x$ac_hi"; do
17354
16359
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17359
16364
cat >>conftest.$ac_ext <<_ACEOF
17360
16365
/* end confdefs.h.  */
17361
16366
$ac_includes_default
 
16367
   typedef uint64_t ac__type_sizeof_;
17362
16368
int
17363
16369
main ()
17364
16370
{
17365
 
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
 
16371
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17366
16372
test_array [0] = 0
17367
16373
 
17368
16374
  ;
17370
16376
}
17371
16377
_ACEOF
17372
16378
rm -f conftest.$ac_objext
17373
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17374
 
  (eval $ac_compile) 2>conftest.er1
 
16379
if { (ac_try="$ac_compile"
 
16380
case "(($ac_try" in
 
16381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16382
  *) ac_try_echo=$ac_try;;
 
16383
esac
 
16384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16385
  (eval "$ac_compile") 2>conftest.er1
17375
16386
  ac_status=$?
17376
16387
  grep -v '^ *+' conftest.er1 >conftest.err
17377
16388
  rm -f conftest.er1
17378
16389
  cat conftest.err >&5
17379
16390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380
 
  (exit $ac_status); } &&
17381
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17382
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383
 
  (eval $ac_try) 2>&5
17384
 
  ac_status=$?
17385
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386
 
  (exit $ac_status); }; } &&
17387
 
         { ac_try='test -s conftest.$ac_objext'
17388
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389
 
  (eval $ac_try) 2>&5
17390
 
  ac_status=$?
17391
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392
 
  (exit $ac_status); }; }; then
 
16391
  (exit $ac_status); } && {
 
16392
         test -z "$ac_c_werror_flag" ||
 
16393
         test ! -s conftest.err
 
16394
       } && test -s conftest.$ac_objext; then
17393
16395
  ac_hi=$ac_mid
17394
16396
else
17395
16397
  echo "$as_me: failed program was:" >&5
17396
16398
sed 's/^/| /' conftest.$ac_ext >&5
17397
16399
 
17398
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
16400
        ac_lo=`expr '(' $ac_mid ')' + 1`
17399
16401
fi
17400
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16402
 
 
16403
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17401
16404
done
17402
16405
case $ac_lo in
17403
16406
?*) ac_cv_sizeof_uint64_t=$ac_lo;;
17404
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
 
16407
'') if test "$ac_cv_type_uint64_t" = yes; then
 
16408
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t)
17405
16409
See \`config.log' for more details." >&5
17406
 
echo "$as_me: error: cannot compute sizeof (uint64_t), 77
 
16410
echo "$as_me: error: cannot compute sizeof (uint64_t)
17407
16411
See \`config.log' for more details." >&2;}
17408
 
   { (exit 1); exit 1; }; } ;;
 
16412
   { (exit 77); exit 77; }; }
 
16413
   else
 
16414
     ac_cv_sizeof_uint64_t=0
 
16415
   fi ;;
17409
16416
esac
17410
16417
else
17411
 
  if test "$cross_compiling" = yes; then
17412
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17413
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17414
 
   { (exit 1); exit 1; }; }
17415
 
else
17416
16418
  cat >conftest.$ac_ext <<_ACEOF
17417
16419
/* confdefs.h.  */
17418
16420
_ACEOF
17420
16422
cat >>conftest.$ac_ext <<_ACEOF
17421
16423
/* end confdefs.h.  */
17422
16424
$ac_includes_default
17423
 
long longval () { return (long) (sizeof (uint64_t)); }
17424
 
unsigned long ulongval () { return (long) (sizeof (uint64_t)); }
 
16425
   typedef uint64_t ac__type_sizeof_;
 
16426
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
16427
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
17425
16428
#include <stdio.h>
17426
16429
#include <stdlib.h>
17427
16430
int
17430
16433
 
17431
16434
  FILE *f = fopen ("conftest.val", "w");
17432
16435
  if (! f)
17433
 
    exit (1);
17434
 
  if (((long) (sizeof (uint64_t))) < 0)
 
16436
    return 1;
 
16437
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
17435
16438
    {
17436
 
      long i = longval ();
17437
 
      if (i != ((long) (sizeof (uint64_t))))
17438
 
        exit (1);
 
16439
      long int i = longval ();
 
16440
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
16441
        return 1;
17439
16442
      fprintf (f, "%ld\n", i);
17440
16443
    }
17441
16444
  else
17442
16445
    {
17443
 
      unsigned long i = ulongval ();
17444
 
      if (i != ((long) (sizeof (uint64_t))))
17445
 
        exit (1);
 
16446
      unsigned long int i = ulongval ();
 
16447
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
16448
        return 1;
17446
16449
      fprintf (f, "%lu\n", i);
17447
16450
    }
17448
 
  exit (ferror (f) || fclose (f) != 0);
 
16451
  return ferror (f) || fclose (f) != 0;
17449
16452
 
17450
16453
  ;
17451
16454
  return 0;
17452
16455
}
17453
16456
_ACEOF
17454
16457
rm -f conftest$ac_exeext
17455
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17456
 
  (eval $ac_link) 2>&5
 
16458
if { (ac_try="$ac_link"
 
16459
case "(($ac_try" in
 
16460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16461
  *) ac_try_echo=$ac_try;;
 
16462
esac
 
16463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16464
  (eval "$ac_link") 2>&5
17457
16465
  ac_status=$?
17458
16466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459
16467
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17460
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461
 
  (eval $ac_try) 2>&5
 
16468
  { (case "(($ac_try" in
 
16469
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16470
  *) ac_try_echo=$ac_try;;
 
16471
esac
 
16472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16473
  (eval "$ac_try") 2>&5
17462
16474
  ac_status=$?
17463
16475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464
16476
  (exit $ac_status); }; }; then
17469
16481
sed 's/^/| /' conftest.$ac_ext >&5
17470
16482
 
17471
16483
( exit $ac_status )
17472
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
 
16484
if test "$ac_cv_type_uint64_t" = yes; then
 
16485
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t)
17473
16486
See \`config.log' for more details." >&5
17474
 
echo "$as_me: error: cannot compute sizeof (uint64_t), 77
 
16487
echo "$as_me: error: cannot compute sizeof (uint64_t)
17475
16488
See \`config.log' for more details." >&2;}
17476
 
   { (exit 1); exit 1; }; }
17477
 
fi
17478
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17479
 
fi
 
16489
   { (exit 77); exit 77; }; }
 
16490
   else
 
16491
     ac_cv_sizeof_uint64_t=0
 
16492
   fi
 
16493
fi
 
16494
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17480
16495
fi
17481
16496
rm -f conftest.val
17482
 
else
17483
 
  ac_cv_sizeof_uint64_t=0
17484
 
fi
17485
 
fi
17486
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
17487
 
echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
 
16497
fi
 
16498
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
 
16499
echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6; }
 
16500
 
 
16501
 
 
16502
 
17488
16503
cat >>confdefs.h <<_ACEOF
17489
16504
#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
17490
16505
_ACEOF
17492
16507
 
17493
16508
fi
17494
16509
 
17495
 
 
17496
 
 
17497
 
 
17498
16510
if test "$ac_cv_sizeof_unsigned_short" = "0" \
17499
16511
   || test "$ac_cv_sizeof_unsigned_int" = "0" \
17500
16512
   || test "$ac_cv_sizeof_unsigned_long" = "0"; then
17502
16514
echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
17503
16515
fi
17504
16516
 
17505
 
if test "$ac_cv_sizeof_unsigned_int" != "8" \
17506
 
   && test "$ac_cv_sizeof_unsigned_long" != "8" \
17507
 
   && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
17508
 
   && test "$ac_cv_sizeof_uint64_t" != "8"; then
17509
 
    { echo "$as_me:$LINENO: WARNING: No 64-bit types.  Disabling SHA-384, and SHA-512" >&5
17510
 
echo "$as_me: WARNING: No 64-bit types.  Disabling SHA-384, and SHA-512" >&2;}
17511
 
else
17512
 
  if test x"$use_sha512" = xyes ; then
17513
 
     SHA512_O=sha512.o
17514
 
 
17515
 
 
17516
 
cat >>confdefs.h <<\_ACEOF
17517
 
#define USE_SHA512 1
17518
 
_ACEOF
17519
 
 
17520
 
  fi
17521
 
fi
17522
 
 
17523
 
# fixme: do we really need this - it should be encapsulated in libassuan
17524
 
 echo "$as_me:$LINENO: checking for SO_PEERCRED" >&5
17525
 
echo $ECHO_N "checking for SO_PEERCRED... $ECHO_C" >&6
17526
 
    if test "${gnupg_cv_sys_so_peercred+set}" = set; then
17527
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17528
 
else
17529
 
  cat >conftest.$ac_ext <<_ACEOF
17530
 
/* confdefs.h.  */
17531
 
_ACEOF
17532
 
cat confdefs.h >>conftest.$ac_ext
17533
 
cat >>conftest.$ac_ext <<_ACEOF
17534
 
/* end confdefs.h.  */
17535
 
#include <sys/socket.h>
17536
 
int
17537
 
main ()
17538
 
{
17539
 
struct ucred cr;
17540
 
                     int cl = sizeof cr;
17541
 
                     getsockopt (1, SOL_SOCKET, SO_PEERCRED, &cr, &cl);
17542
 
  ;
17543
 
  return 0;
17544
 
}
17545
 
_ACEOF
17546
 
rm -f conftest.$ac_objext
17547
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17548
 
  (eval $ac_compile) 2>conftest.er1
17549
 
  ac_status=$?
17550
 
  grep -v '^ *+' conftest.er1 >conftest.err
17551
 
  rm -f conftest.er1
17552
 
  cat conftest.err >&5
17553
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554
 
  (exit $ac_status); } &&
17555
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17556
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557
 
  (eval $ac_try) 2>&5
17558
 
  ac_status=$?
17559
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560
 
  (exit $ac_status); }; } &&
17561
 
         { ac_try='test -s conftest.$ac_objext'
17562
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563
 
  (eval $ac_try) 2>&5
17564
 
  ac_status=$?
17565
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566
 
  (exit $ac_status); }; }; then
17567
 
  gnupg_cv_sys_so_peercred=yes
17568
 
else
17569
 
  echo "$as_me: failed program was:" >&5
17570
 
sed 's/^/| /' conftest.$ac_ext >&5
17571
 
 
17572
 
gnupg_cv_sys_so_peercred=no
17573
 
fi
17574
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17575
 
 
17576
 
fi
17577
 
 
17578
 
    echo "$as_me:$LINENO: result: $gnupg_cv_sys_so_peercred" >&5
17579
 
echo "${ECHO_T}$gnupg_cv_sys_so_peercred" >&6
17580
 
    if test $gnupg_cv_sys_so_peercred = yes; then
17581
 
 
17582
 
cat >>confdefs.h <<\_ACEOF
17583
 
#define HAVE_SO_PEERCRED 1
17584
 
_ACEOF
17585
 
 
17586
 
    fi
17587
 
 
17588
 
 
 
16517
 
 
16518
#
17589
16519
# Checks for library functions.
17590
 
echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17591
 
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
 
16520
#
 
16521
{ echo "$as_me:$LINENO: checking for library functions" >&5
 
16522
echo "$as_me: checking for library functions" >&6;}
 
16523
{ echo "$as_me:$LINENO: checking whether getpagesize is declared" >&5
 
16524
echo $ECHO_N "checking whether getpagesize is declared... $ECHO_C" >&6; }
 
16525
if test "${ac_cv_have_decl_getpagesize+set}" = set; then
 
16526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16527
else
 
16528
  cat >conftest.$ac_ext <<_ACEOF
 
16529
/* confdefs.h.  */
 
16530
_ACEOF
 
16531
cat confdefs.h >>conftest.$ac_ext
 
16532
cat >>conftest.$ac_ext <<_ACEOF
 
16533
/* end confdefs.h.  */
 
16534
$ac_includes_default
 
16535
int
 
16536
main ()
 
16537
{
 
16538
#ifndef getpagesize
 
16539
  (void) getpagesize;
 
16540
#endif
 
16541
 
 
16542
  ;
 
16543
  return 0;
 
16544
}
 
16545
_ACEOF
 
16546
rm -f conftest.$ac_objext
 
16547
if { (ac_try="$ac_compile"
 
16548
case "(($ac_try" in
 
16549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16550
  *) ac_try_echo=$ac_try;;
 
16551
esac
 
16552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16553
  (eval "$ac_compile") 2>conftest.er1
 
16554
  ac_status=$?
 
16555
  grep -v '^ *+' conftest.er1 >conftest.err
 
16556
  rm -f conftest.er1
 
16557
  cat conftest.err >&5
 
16558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16559
  (exit $ac_status); } && {
 
16560
         test -z "$ac_c_werror_flag" ||
 
16561
         test ! -s conftest.err
 
16562
       } && test -s conftest.$ac_objext; then
 
16563
  ac_cv_have_decl_getpagesize=yes
 
16564
else
 
16565
  echo "$as_me: failed program was:" >&5
 
16566
sed 's/^/| /' conftest.$ac_ext >&5
 
16567
 
 
16568
        ac_cv_have_decl_getpagesize=no
 
16569
fi
 
16570
 
 
16571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16572
fi
 
16573
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpagesize" >&5
 
16574
echo "${ECHO_T}$ac_cv_have_decl_getpagesize" >&6; }
 
16575
if test $ac_cv_have_decl_getpagesize = yes; then
 
16576
 
 
16577
cat >>confdefs.h <<_ACEOF
 
16578
#define HAVE_DECL_GETPAGESIZE 1
 
16579
_ACEOF
 
16580
 
 
16581
 
 
16582
else
 
16583
  cat >>confdefs.h <<_ACEOF
 
16584
#define HAVE_DECL_GETPAGESIZE 0
 
16585
_ACEOF
 
16586
 
 
16587
 
 
16588
fi
 
16589
 
 
16590
 
 
16591
{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 
16592
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17592
16593
if test "${ac_cv_sys_largefile_source+set}" = set; then
17593
16594
  echo $ECHO_N "(cached) $ECHO_C" >&6
17594
16595
else
17595
16596
  while :; do
17596
 
  ac_cv_sys_largefile_source=no
17597
16597
  cat >conftest.$ac_ext <<_ACEOF
17598
16598
/* confdefs.h.  */
17599
16599
_ACEOF
17600
16600
cat confdefs.h >>conftest.$ac_ext
17601
16601
cat >>conftest.$ac_ext <<_ACEOF
17602
16602
/* end confdefs.h.  */
17603
 
#include <stdio.h>
 
16603
#include <sys/types.h> /* for off_t */
 
16604
     #include <stdio.h>
17604
16605
int
17605
16606
main ()
17606
16607
{
17607
 
return !fseeko;
 
16608
int (*fp) (FILE *, off_t, int) = fseeko;
 
16609
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17608
16610
  ;
17609
16611
  return 0;
17610
16612
}
17611
16613
_ACEOF
17612
 
rm -f conftest.$ac_objext
17613
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17614
 
  (eval $ac_compile) 2>conftest.er1
 
16614
rm -f conftest.$ac_objext conftest$ac_exeext
 
16615
if { (ac_try="$ac_link"
 
16616
case "(($ac_try" in
 
16617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16618
  *) ac_try_echo=$ac_try;;
 
16619
esac
 
16620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16621
  (eval "$ac_link") 2>conftest.er1
17615
16622
  ac_status=$?
17616
16623
  grep -v '^ *+' conftest.er1 >conftest.err
17617
16624
  rm -f conftest.er1
17618
16625
  cat conftest.err >&5
17619
16626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620
 
  (exit $ac_status); } &&
17621
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17622
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623
 
  (eval $ac_try) 2>&5
17624
 
  ac_status=$?
17625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626
 
  (exit $ac_status); }; } &&
17627
 
         { ac_try='test -s conftest.$ac_objext'
17628
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629
 
  (eval $ac_try) 2>&5
17630
 
  ac_status=$?
17631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632
 
  (exit $ac_status); }; }; then
17633
 
  break
 
16627
  (exit $ac_status); } && {
 
16628
         test -z "$ac_c_werror_flag" ||
 
16629
         test ! -s conftest.err
 
16630
       } && test -s conftest$ac_exeext &&
 
16631
       $as_test_x conftest$ac_exeext; then
 
16632
  ac_cv_sys_largefile_source=no; break
17634
16633
else
17635
16634
  echo "$as_me: failed program was:" >&5
17636
16635
sed 's/^/| /' conftest.$ac_ext >&5
17637
16636
 
 
16637
 
17638
16638
fi
17639
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16639
 
 
16640
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16641
      conftest$ac_exeext conftest.$ac_ext
17640
16642
  cat >conftest.$ac_ext <<_ACEOF
17641
16643
/* confdefs.h.  */
17642
16644
_ACEOF
17644
16646
cat >>conftest.$ac_ext <<_ACEOF
17645
16647
/* end confdefs.h.  */
17646
16648
#define _LARGEFILE_SOURCE 1
17647
 
#include <stdio.h>
 
16649
#include <sys/types.h> /* for off_t */
 
16650
     #include <stdio.h>
17648
16651
int
17649
16652
main ()
17650
16653
{
17651
 
return !fseeko;
 
16654
int (*fp) (FILE *, off_t, int) = fseeko;
 
16655
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17652
16656
  ;
17653
16657
  return 0;
17654
16658
}
17655
16659
_ACEOF
17656
 
rm -f conftest.$ac_objext
17657
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17658
 
  (eval $ac_compile) 2>conftest.er1
 
16660
rm -f conftest.$ac_objext conftest$ac_exeext
 
16661
if { (ac_try="$ac_link"
 
16662
case "(($ac_try" in
 
16663
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16664
  *) ac_try_echo=$ac_try;;
 
16665
esac
 
16666
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16667
  (eval "$ac_link") 2>conftest.er1
17659
16668
  ac_status=$?
17660
16669
  grep -v '^ *+' conftest.er1 >conftest.err
17661
16670
  rm -f conftest.er1
17662
16671
  cat conftest.err >&5
17663
16672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664
 
  (exit $ac_status); } &&
17665
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17666
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667
 
  (eval $ac_try) 2>&5
17668
 
  ac_status=$?
17669
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670
 
  (exit $ac_status); }; } &&
17671
 
         { ac_try='test -s conftest.$ac_objext'
17672
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673
 
  (eval $ac_try) 2>&5
17674
 
  ac_status=$?
17675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676
 
  (exit $ac_status); }; }; then
 
16673
  (exit $ac_status); } && {
 
16674
         test -z "$ac_c_werror_flag" ||
 
16675
         test ! -s conftest.err
 
16676
       } && test -s conftest$ac_exeext &&
 
16677
       $as_test_x conftest$ac_exeext; then
17677
16678
  ac_cv_sys_largefile_source=1; break
17678
16679
else
17679
16680
  echo "$as_me: failed program was:" >&5
17680
16681
sed 's/^/| /' conftest.$ac_ext >&5
17681
16682
 
 
16683
 
17682
16684
fi
17683
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16685
 
 
16686
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16687
      conftest$ac_exeext conftest.$ac_ext
 
16688
  ac_cv_sys_largefile_source=unknown
17684
16689
  break
17685
16690
done
17686
16691
fi
17687
 
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17688
 
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17689
 
if test "$ac_cv_sys_largefile_source" != no; then
17690
 
 
 
16692
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
 
16693
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
 
16694
case $ac_cv_sys_largefile_source in #(
 
16695
  no | unknown) ;;
 
16696
  *)
17691
16697
cat >>confdefs.h <<_ACEOF
17692
16698
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17693
16699
_ACEOF
17694
 
 
17695
 
fi
 
16700
;;
 
16701
esac
17696
16702
rm -f conftest*
17697
16703
 
17698
16704
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17699
16705
# in glibc 2.1.3, but that breaks too many other things.
17700
16706
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17701
 
echo "$as_me:$LINENO: checking for fseeko" >&5
17702
 
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17703
 
if test "${ac_cv_func_fseeko+set}" = set; then
17704
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17705
 
else
17706
 
  cat >conftest.$ac_ext <<_ACEOF
17707
 
/* confdefs.h.  */
17708
 
_ACEOF
17709
 
cat confdefs.h >>conftest.$ac_ext
17710
 
cat >>conftest.$ac_ext <<_ACEOF
17711
 
/* end confdefs.h.  */
17712
 
#include <stdio.h>
17713
 
int
17714
 
main ()
17715
 
{
17716
 
return fseeko && fseeko (stdin, 0, 0);
17717
 
  ;
17718
 
  return 0;
17719
 
}
17720
 
_ACEOF
17721
 
rm -f conftest.$ac_objext conftest$ac_exeext
17722
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17723
 
  (eval $ac_link) 2>conftest.er1
17724
 
  ac_status=$?
17725
 
  grep -v '^ *+' conftest.er1 >conftest.err
17726
 
  rm -f conftest.er1
17727
 
  cat conftest.err >&5
17728
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729
 
  (exit $ac_status); } &&
17730
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17731
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732
 
  (eval $ac_try) 2>&5
17733
 
  ac_status=$?
17734
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735
 
  (exit $ac_status); }; } &&
17736
 
         { ac_try='test -s conftest$ac_exeext'
17737
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738
 
  (eval $ac_try) 2>&5
17739
 
  ac_status=$?
17740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741
 
  (exit $ac_status); }; }; then
17742
 
  ac_cv_func_fseeko=yes
17743
 
else
17744
 
  echo "$as_me: failed program was:" >&5
17745
 
sed 's/^/| /' conftest.$ac_ext >&5
17746
 
 
17747
 
ac_cv_func_fseeko=no
17748
 
fi
17749
 
rm -f conftest.err conftest.$ac_objext \
17750
 
      conftest$ac_exeext conftest.$ac_ext
17751
 
fi
17752
 
echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17753
 
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17754
 
if test $ac_cv_func_fseeko = yes; then
 
16707
if test $ac_cv_sys_largefile_source != unknown; then
17755
16708
 
17756
16709
cat >>confdefs.h <<\_ACEOF
17757
16710
#define HAVE_FSEEKO 1
17763
16716
for ac_func in vprintf
17764
16717
do
17765
16718
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17766
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
17767
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17768
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
16719
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
16720
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
16721
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17769
16722
  echo $ECHO_N "(cached) $ECHO_C" >&6
17770
16723
else
17771
16724
  cat >conftest.$ac_ext <<_ACEOF
17791
16744
 
17792
16745
#undef $ac_func
17793
16746
 
17794
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
16747
/* Override any GCC internal prototype to avoid an error.
 
16748
   Use char because int might match the return type of a GCC
 
16749
   builtin and then its argument prototype would still apply.  */
17795
16750
#ifdef __cplusplus
17796
16751
extern "C"
17797
 
{
17798
16752
#endif
17799
 
/* We use char because int might match the return type of a gcc2
17800
 
   builtin and then its argument prototype would still apply.  */
17801
16753
char $ac_func ();
17802
16754
/* The GNU C library defines this for functions which it implements
17803
16755
    to always fail with ENOSYS.  Some functions are actually named
17804
16756
    something starting with __ and the normal name is an alias.  */
17805
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
16757
#if defined __stub_$ac_func || defined __stub___$ac_func
17806
16758
choke me
17807
 
#else
17808
 
char (*f) () = $ac_func;
17809
 
#endif
17810
 
#ifdef __cplusplus
17811
 
}
17812
16759
#endif
17813
16760
 
17814
16761
int
17815
16762
main ()
17816
16763
{
17817
 
return f != $ac_func;
 
16764
return $ac_func ();
17818
16765
  ;
17819
16766
  return 0;
17820
16767
}
17821
16768
_ACEOF
17822
16769
rm -f conftest.$ac_objext conftest$ac_exeext
17823
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824
 
  (eval $ac_link) 2>conftest.er1
 
16770
if { (ac_try="$ac_link"
 
16771
case "(($ac_try" in
 
16772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16773
  *) ac_try_echo=$ac_try;;
 
16774
esac
 
16775
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16776
  (eval "$ac_link") 2>conftest.er1
17825
16777
  ac_status=$?
17826
16778
  grep -v '^ *+' conftest.er1 >conftest.err
17827
16779
  rm -f conftest.er1
17828
16780
  cat conftest.err >&5
17829
16781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830
 
  (exit $ac_status); } &&
17831
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17832
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833
 
  (eval $ac_try) 2>&5
17834
 
  ac_status=$?
17835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836
 
  (exit $ac_status); }; } &&
17837
 
         { ac_try='test -s conftest$ac_exeext'
17838
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839
 
  (eval $ac_try) 2>&5
17840
 
  ac_status=$?
17841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842
 
  (exit $ac_status); }; }; then
 
16782
  (exit $ac_status); } && {
 
16783
         test -z "$ac_c_werror_flag" ||
 
16784
         test ! -s conftest.err
 
16785
       } && test -s conftest$ac_exeext &&
 
16786
       $as_test_x conftest$ac_exeext; then
17843
16787
  eval "$as_ac_var=yes"
17844
16788
else
17845
16789
  echo "$as_me: failed program was:" >&5
17846
16790
sed 's/^/| /' conftest.$ac_ext >&5
17847
16791
 
17848
 
eval "$as_ac_var=no"
 
16792
        eval "$as_ac_var=no"
17849
16793
fi
17850
 
rm -f conftest.err conftest.$ac_objext \
 
16794
 
 
16795
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17851
16796
      conftest$ac_exeext conftest.$ac_ext
17852
16797
fi
17853
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17854
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
16798
ac_res=`eval echo '${'$as_ac_var'}'`
 
16799
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16800
echo "${ECHO_T}$ac_res" >&6; }
17855
16801
if test `eval echo '${'$as_ac_var'}'` = yes; then
17856
16802
  cat >>confdefs.h <<_ACEOF
17857
16803
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17858
16804
_ACEOF
17859
16805
 
17860
 
echo "$as_me:$LINENO: checking for _doprnt" >&5
17861
 
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
16806
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
 
16807
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
17862
16808
if test "${ac_cv_func__doprnt+set}" = set; then
17863
16809
  echo $ECHO_N "(cached) $ECHO_C" >&6
17864
16810
else
17885
16831
 
17886
16832
#undef _doprnt
17887
16833
 
17888
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
16834
/* Override any GCC internal prototype to avoid an error.
 
16835
   Use char because int might match the return type of a GCC
 
16836
   builtin and then its argument prototype would still apply.  */
17889
16837
#ifdef __cplusplus
17890
16838
extern "C"
17891
 
{
17892
16839
#endif
17893
 
/* We use char because int might match the return type of a gcc2
17894
 
   builtin and then its argument prototype would still apply.  */
17895
16840
char _doprnt ();
17896
16841
/* The GNU C library defines this for functions which it implements
17897
16842
    to always fail with ENOSYS.  Some functions are actually named
17898
16843
    something starting with __ and the normal name is an alias.  */
17899
 
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
16844
#if defined __stub__doprnt || defined __stub____doprnt
17900
16845
choke me
17901
 
#else
17902
 
char (*f) () = _doprnt;
17903
 
#endif
17904
 
#ifdef __cplusplus
17905
 
}
17906
16846
#endif
17907
16847
 
17908
16848
int
17909
16849
main ()
17910
16850
{
17911
 
return f != _doprnt;
 
16851
return _doprnt ();
17912
16852
  ;
17913
16853
  return 0;
17914
16854
}
17915
16855
_ACEOF
17916
16856
rm -f conftest.$ac_objext conftest$ac_exeext
17917
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918
 
  (eval $ac_link) 2>conftest.er1
 
16857
if { (ac_try="$ac_link"
 
16858
case "(($ac_try" in
 
16859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16860
  *) ac_try_echo=$ac_try;;
 
16861
esac
 
16862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16863
  (eval "$ac_link") 2>conftest.er1
17919
16864
  ac_status=$?
17920
16865
  grep -v '^ *+' conftest.er1 >conftest.err
17921
16866
  rm -f conftest.er1
17922
16867
  cat conftest.err >&5
17923
16868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924
 
  (exit $ac_status); } &&
17925
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17926
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927
 
  (eval $ac_try) 2>&5
17928
 
  ac_status=$?
17929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930
 
  (exit $ac_status); }; } &&
17931
 
         { ac_try='test -s conftest$ac_exeext'
17932
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933
 
  (eval $ac_try) 2>&5
17934
 
  ac_status=$?
17935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936
 
  (exit $ac_status); }; }; then
 
16869
  (exit $ac_status); } && {
 
16870
         test -z "$ac_c_werror_flag" ||
 
16871
         test ! -s conftest.err
 
16872
       } && test -s conftest$ac_exeext &&
 
16873
       $as_test_x conftest$ac_exeext; then
17937
16874
  ac_cv_func__doprnt=yes
17938
16875
else
17939
16876
  echo "$as_me: failed program was:" >&5
17940
16877
sed 's/^/| /' conftest.$ac_ext >&5
17941
16878
 
17942
 
ac_cv_func__doprnt=no
 
16879
        ac_cv_func__doprnt=no
17943
16880
fi
17944
 
rm -f conftest.err conftest.$ac_objext \
 
16881
 
 
16882
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17945
16883
      conftest$ac_exeext conftest.$ac_ext
17946
16884
fi
17947
 
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17948
 
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
16885
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
16886
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
17949
16887
if test $ac_cv_func__doprnt = yes; then
17950
16888
 
17951
16889
cat >>confdefs.h <<\_ACEOF
17958
16896
done
17959
16897
 
17960
16898
 
17961
 
echo "$as_me:$LINENO: checking for pid_t" >&5
17962
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
16899
{ echo "$as_me:$LINENO: checking for pid_t" >&5
 
16900
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17963
16901
if test "${ac_cv_type_pid_t+set}" = set; then
17964
16902
  echo $ECHO_N "(cached) $ECHO_C" >&6
17965
16903
else
17970
16908
cat >>conftest.$ac_ext <<_ACEOF
17971
16909
/* end confdefs.h.  */
17972
16910
$ac_includes_default
 
16911
typedef pid_t ac__type_new_;
17973
16912
int
17974
16913
main ()
17975
16914
{
17976
 
if ((pid_t *) 0)
 
16915
if ((ac__type_new_ *) 0)
17977
16916
  return 0;
17978
 
if (sizeof (pid_t))
 
16917
if (sizeof (ac__type_new_))
17979
16918
  return 0;
17980
16919
  ;
17981
16920
  return 0;
17982
16921
}
17983
16922
_ACEOF
17984
16923
rm -f conftest.$ac_objext
17985
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17986
 
  (eval $ac_compile) 2>conftest.er1
 
16924
if { (ac_try="$ac_compile"
 
16925
case "(($ac_try" in
 
16926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16927
  *) ac_try_echo=$ac_try;;
 
16928
esac
 
16929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16930
  (eval "$ac_compile") 2>conftest.er1
17987
16931
  ac_status=$?
17988
16932
  grep -v '^ *+' conftest.er1 >conftest.err
17989
16933
  rm -f conftest.er1
17990
16934
  cat conftest.err >&5
17991
16935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992
 
  (exit $ac_status); } &&
17993
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17994
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995
 
  (eval $ac_try) 2>&5
17996
 
  ac_status=$?
17997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998
 
  (exit $ac_status); }; } &&
17999
 
         { ac_try='test -s conftest.$ac_objext'
18000
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001
 
  (eval $ac_try) 2>&5
18002
 
  ac_status=$?
18003
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004
 
  (exit $ac_status); }; }; then
 
16936
  (exit $ac_status); } && {
 
16937
         test -z "$ac_c_werror_flag" ||
 
16938
         test ! -s conftest.err
 
16939
       } && test -s conftest.$ac_objext; then
18005
16940
  ac_cv_type_pid_t=yes
18006
16941
else
18007
16942
  echo "$as_me: failed program was:" >&5
18008
16943
sed 's/^/| /' conftest.$ac_ext >&5
18009
16944
 
18010
 
ac_cv_type_pid_t=no
18011
 
fi
18012
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18013
 
fi
18014
 
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18015
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
16945
        ac_cv_type_pid_t=no
 
16946
fi
 
16947
 
 
16948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16949
fi
 
16950
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
16951
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
18016
16952
if test $ac_cv_type_pid_t = yes; then
18017
16953
  :
18018
16954
else
18024
16960
fi
18025
16961
 
18026
16962
 
18027
 
 
18028
 
for ac_header in unistd.h vfork.h
 
16963
for ac_header in vfork.h
18029
16964
do
18030
16965
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18031
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18032
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
18033
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18034
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
16966
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16967
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16968
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16969
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18035
16970
  echo $ECHO_N "(cached) $ECHO_C" >&6
18036
16971
fi
18037
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18038
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
16972
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16973
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16974
echo "${ECHO_T}$ac_res" >&6; }
18039
16975
else
18040
16976
  # Is the header compilable?
18041
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18042
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
16977
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
16978
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18043
16979
cat >conftest.$ac_ext <<_ACEOF
18044
16980
/* confdefs.h.  */
18045
16981
_ACEOF
18050
16986
#include <$ac_header>
18051
16987
_ACEOF
18052
16988
rm -f conftest.$ac_objext
18053
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054
 
  (eval $ac_compile) 2>conftest.er1
 
16989
if { (ac_try="$ac_compile"
 
16990
case "(($ac_try" in
 
16991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16992
  *) ac_try_echo=$ac_try;;
 
16993
esac
 
16994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16995
  (eval "$ac_compile") 2>conftest.er1
18055
16996
  ac_status=$?
18056
16997
  grep -v '^ *+' conftest.er1 >conftest.err
18057
16998
  rm -f conftest.er1
18058
16999
  cat conftest.err >&5
18059
17000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060
 
  (exit $ac_status); } &&
18061
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18062
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063
 
  (eval $ac_try) 2>&5
18064
 
  ac_status=$?
18065
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066
 
  (exit $ac_status); }; } &&
18067
 
         { ac_try='test -s conftest.$ac_objext'
18068
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069
 
  (eval $ac_try) 2>&5
18070
 
  ac_status=$?
18071
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072
 
  (exit $ac_status); }; }; then
 
17001
  (exit $ac_status); } && {
 
17002
         test -z "$ac_c_werror_flag" ||
 
17003
         test ! -s conftest.err
 
17004
       } && test -s conftest.$ac_objext; then
18073
17005
  ac_header_compiler=yes
18074
17006
else
18075
17007
  echo "$as_me: failed program was:" >&5
18076
17008
sed 's/^/| /' conftest.$ac_ext >&5
18077
17009
 
18078
 
ac_header_compiler=no
 
17010
        ac_header_compiler=no
18079
17011
fi
18080
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18081
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18082
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
17012
 
 
17013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17014
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17015
echo "${ECHO_T}$ac_header_compiler" >&6; }
18083
17016
 
18084
17017
# Is the header present?
18085
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18086
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
17018
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
17019
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18087
17020
cat >conftest.$ac_ext <<_ACEOF
18088
17021
/* confdefs.h.  */
18089
17022
_ACEOF
18092
17025
/* end confdefs.h.  */
18093
17026
#include <$ac_header>
18094
17027
_ACEOF
18095
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18096
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
17028
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17029
case "(($ac_try" in
 
17030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17031
  *) ac_try_echo=$ac_try;;
 
17032
esac
 
17033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17034
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18097
17035
  ac_status=$?
18098
17036
  grep -v '^ *+' conftest.er1 >conftest.err
18099
17037
  rm -f conftest.er1
18100
17038
  cat conftest.err >&5
18101
17039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102
 
  (exit $ac_status); } >/dev/null; then
18103
 
  if test -s conftest.err; then
18104
 
    ac_cpp_err=$ac_c_preproc_warn_flag
18105
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18106
 
  else
18107
 
    ac_cpp_err=
18108
 
  fi
18109
 
else
18110
 
  ac_cpp_err=yes
18111
 
fi
18112
 
if test -z "$ac_cpp_err"; then
 
17040
  (exit $ac_status); } >/dev/null && {
 
17041
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17042
         test ! -s conftest.err
 
17043
       }; then
18113
17044
  ac_header_preproc=yes
18114
17045
else
18115
17046
  echo "$as_me: failed program was:" >&5
18117
17048
 
18118
17049
  ac_header_preproc=no
18119
17050
fi
 
17051
 
18120
17052
rm -f conftest.err conftest.$ac_ext
18121
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18122
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
17053
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17054
echo "${ECHO_T}$ac_header_preproc" >&6; }
18123
17055
 
18124
17056
# So?  What about this header?
18125
17057
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18143
17075
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18144
17076
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18145
17077
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18146
 
    (
18147
 
      cat <<\_ASBOX
18148
 
## ------------------------------------ ##
18149
 
## Report this to gnupg-devel@gnupg.org ##
18150
 
## ------------------------------------ ##
 
17078
    ( cat <<\_ASBOX
 
17079
## ---------------------------------- ##
 
17080
## Report this to bug-gnupg@gnupg.org ##
 
17081
## ---------------------------------- ##
18151
17082
_ASBOX
18152
 
    ) |
18153
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
17083
     ) | sed "s/^/$as_me: WARNING:     /" >&2
18154
17084
    ;;
18155
17085
esac
18156
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
18157
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18158
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
17086
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17087
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17088
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18159
17089
  echo $ECHO_N "(cached) $ECHO_C" >&6
18160
17090
else
18161
17091
  eval "$as_ac_Header=\$ac_header_preproc"
18162
17092
fi
18163
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18164
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
17093
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17094
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17095
echo "${ECHO_T}$ac_res" >&6; }
18165
17096
 
18166
17097
fi
18167
17098
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18178
17109
for ac_func in fork vfork
18179
17110
do
18180
17111
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18181
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18182
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18183
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
17112
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17113
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17114
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18184
17115
  echo $ECHO_N "(cached) $ECHO_C" >&6
18185
17116
else
18186
17117
  cat >conftest.$ac_ext <<_ACEOF
18206
17137
 
18207
17138
#undef $ac_func
18208
17139
 
18209
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
17140
/* Override any GCC internal prototype to avoid an error.
 
17141
   Use char because int might match the return type of a GCC
 
17142
   builtin and then its argument prototype would still apply.  */
18210
17143
#ifdef __cplusplus
18211
17144
extern "C"
18212
 
{
18213
17145
#endif
18214
 
/* We use char because int might match the return type of a gcc2
18215
 
   builtin and then its argument prototype would still apply.  */
18216
17146
char $ac_func ();
18217
17147
/* The GNU C library defines this for functions which it implements
18218
17148
    to always fail with ENOSYS.  Some functions are actually named
18219
17149
    something starting with __ and the normal name is an alias.  */
18220
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
17150
#if defined __stub_$ac_func || defined __stub___$ac_func
18221
17151
choke me
18222
 
#else
18223
 
char (*f) () = $ac_func;
18224
 
#endif
18225
 
#ifdef __cplusplus
18226
 
}
18227
17152
#endif
18228
17153
 
18229
17154
int
18230
17155
main ()
18231
17156
{
18232
 
return f != $ac_func;
 
17157
return $ac_func ();
18233
17158
  ;
18234
17159
  return 0;
18235
17160
}
18236
17161
_ACEOF
18237
17162
rm -f conftest.$ac_objext conftest$ac_exeext
18238
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18239
 
  (eval $ac_link) 2>conftest.er1
 
17163
if { (ac_try="$ac_link"
 
17164
case "(($ac_try" in
 
17165
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17166
  *) ac_try_echo=$ac_try;;
 
17167
esac
 
17168
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17169
  (eval "$ac_link") 2>conftest.er1
18240
17170
  ac_status=$?
18241
17171
  grep -v '^ *+' conftest.er1 >conftest.err
18242
17172
  rm -f conftest.er1
18243
17173
  cat conftest.err >&5
18244
17174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245
 
  (exit $ac_status); } &&
18246
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18247
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248
 
  (eval $ac_try) 2>&5
18249
 
  ac_status=$?
18250
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251
 
  (exit $ac_status); }; } &&
18252
 
         { ac_try='test -s conftest$ac_exeext'
18253
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254
 
  (eval $ac_try) 2>&5
18255
 
  ac_status=$?
18256
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257
 
  (exit $ac_status); }; }; then
 
17175
  (exit $ac_status); } && {
 
17176
         test -z "$ac_c_werror_flag" ||
 
17177
         test ! -s conftest.err
 
17178
       } && test -s conftest$ac_exeext &&
 
17179
       $as_test_x conftest$ac_exeext; then
18258
17180
  eval "$as_ac_var=yes"
18259
17181
else
18260
17182
  echo "$as_me: failed program was:" >&5
18261
17183
sed 's/^/| /' conftest.$ac_ext >&5
18262
17184
 
18263
 
eval "$as_ac_var=no"
 
17185
        eval "$as_ac_var=no"
18264
17186
fi
18265
 
rm -f conftest.err conftest.$ac_objext \
 
17187
 
 
17188
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18266
17189
      conftest$ac_exeext conftest.$ac_ext
18267
17190
fi
18268
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18269
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17191
ac_res=`eval echo '${'$as_ac_var'}'`
 
17192
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17193
echo "${ECHO_T}$ac_res" >&6; }
18270
17194
if test `eval echo '${'$as_ac_var'}'` = yes; then
18271
17195
  cat >>confdefs.h <<_ACEOF
18272
17196
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18276
17200
done
18277
17201
 
18278
17202
if test "x$ac_cv_func_fork" = xyes; then
18279
 
  echo "$as_me:$LINENO: checking for working fork" >&5
18280
 
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
 
17203
  { echo "$as_me:$LINENO: checking for working fork" >&5
 
17204
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
18281
17205
if test "${ac_cv_func_fork_works+set}" = set; then
18282
17206
  echo $ECHO_N "(cached) $ECHO_C" >&6
18283
17207
else
18296
17220
{
18297
17221
 
18298
17222
          /* By Ruediger Kuhlmann. */
18299
 
          if (fork() < 0)
18300
 
            exit (1);
18301
 
          exit (0);
 
17223
          return fork () < 0;
18302
17224
 
18303
17225
  ;
18304
17226
  return 0;
18305
17227
}
18306
17228
_ACEOF
18307
17229
rm -f conftest$ac_exeext
18308
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18309
 
  (eval $ac_link) 2>&5
 
17230
if { (ac_try="$ac_link"
 
17231
case "(($ac_try" in
 
17232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17233
  *) ac_try_echo=$ac_try;;
 
17234
esac
 
17235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17236
  (eval "$ac_link") 2>&5
18310
17237
  ac_status=$?
18311
17238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312
17239
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18313
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314
 
  (eval $ac_try) 2>&5
 
17240
  { (case "(($ac_try" in
 
17241
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17242
  *) ac_try_echo=$ac_try;;
 
17243
esac
 
17244
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17245
  (eval "$ac_try") 2>&5
18315
17246
  ac_status=$?
18316
17247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317
17248
  (exit $ac_status); }; }; then
18324
17255
( exit $ac_status )
18325
17256
ac_cv_func_fork_works=no
18326
17257
fi
18327
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18328
 
fi
18329
 
fi
18330
 
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18331
 
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
 
17258
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17259
fi
 
17260
 
 
17261
 
 
17262
fi
 
17263
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
 
17264
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
18332
17265
 
18333
17266
else
18334
17267
  ac_cv_func_fork_works=$ac_cv_func_fork
18348
17281
fi
18349
17282
ac_cv_func_vfork_works=$ac_cv_func_vfork
18350
17283
if test "x$ac_cv_func_vfork" = xyes; then
18351
 
  echo "$as_me:$LINENO: checking for working vfork" >&5
18352
 
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
 
17284
  { echo "$as_me:$LINENO: checking for working vfork" >&5
 
17285
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
18353
17286
if test "${ac_cv_func_vfork_works+set}" = set; then
18354
17287
  echo $ECHO_N "(cached) $ECHO_C" >&6
18355
17288
else
18363
17296
cat >>conftest.$ac_ext <<_ACEOF
18364
17297
/* end confdefs.h.  */
18365
17298
/* Thanks to Paul Eggert for this test.  */
18366
 
#include <stdio.h>
18367
 
#include <stdlib.h>
18368
 
#include <sys/types.h>
18369
 
#include <sys/stat.h>
 
17299
$ac_includes_default
18370
17300
#include <sys/wait.h>
18371
 
#if HAVE_UNISTD_H
18372
 
# include <unistd.h>
18373
 
#endif
18374
 
#if HAVE_VFORK_H
 
17301
#ifdef HAVE_VFORK_H
18375
17302
# include <vfork.h>
18376
17303
#endif
18377
17304
/* On some sparc systems, changes by the child to local and incoming
18442
17369
 
18443
17370
    while (wait(&status) != child)
18444
17371
      ;
18445
 
    exit(
 
17372
    return (
18446
17373
         /* Was there some problem with vforking?  */
18447
17374
         child < 0
18448
17375
 
18459
17386
}
18460
17387
_ACEOF
18461
17388
rm -f conftest$ac_exeext
18462
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18463
 
  (eval $ac_link) 2>&5
 
17389
if { (ac_try="$ac_link"
 
17390
case "(($ac_try" in
 
17391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17392
  *) ac_try_echo=$ac_try;;
 
17393
esac
 
17394
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17395
  (eval "$ac_link") 2>&5
18464
17396
  ac_status=$?
18465
17397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466
17398
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18467
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468
 
  (eval $ac_try) 2>&5
 
17399
  { (case "(($ac_try" in
 
17400
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17401
  *) ac_try_echo=$ac_try;;
 
17402
esac
 
17403
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17404
  (eval "$ac_try") 2>&5
18469
17405
  ac_status=$?
18470
17406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471
17407
  (exit $ac_status); }; }; then
18478
17414
( exit $ac_status )
18479
17415
ac_cv_func_vfork_works=no
18480
17416
fi
18481
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18482
 
fi
18483
 
fi
18484
 
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18485
 
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
 
17417
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17418
fi
 
17419
 
 
17420
 
 
17421
fi
 
17422
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
 
17423
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
18486
17424
 
18487
17425
fi;
18488
17426
if test "x$ac_cv_func_fork_works" = xcross; then
18516
17454
 
18517
17455
 
18518
17456
 
18519
 
 
18520
 
 
18521
 
 
18522
 
for ac_func in strerror stpcpy strsep strlwr tcgetattr strtoul mmap
 
17457
for ac_func in strerror strlwr tcgetattr mmap
18523
17458
do
18524
17459
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18525
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18526
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18527
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
17460
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17461
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17462
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18528
17463
  echo $ECHO_N "(cached) $ECHO_C" >&6
18529
17464
else
18530
17465
  cat >conftest.$ac_ext <<_ACEOF
18550
17485
 
18551
17486
#undef $ac_func
18552
17487
 
18553
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
17488
/* Override any GCC internal prototype to avoid an error.
 
17489
   Use char because int might match the return type of a GCC
 
17490
   builtin and then its argument prototype would still apply.  */
18554
17491
#ifdef __cplusplus
18555
17492
extern "C"
18556
 
{
18557
17493
#endif
18558
 
/* We use char because int might match the return type of a gcc2
18559
 
   builtin and then its argument prototype would still apply.  */
18560
17494
char $ac_func ();
18561
17495
/* The GNU C library defines this for functions which it implements
18562
17496
    to always fail with ENOSYS.  Some functions are actually named
18563
17497
    something starting with __ and the normal name is an alias.  */
18564
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
17498
#if defined __stub_$ac_func || defined __stub___$ac_func
18565
17499
choke me
18566
 
#else
18567
 
char (*f) () = $ac_func;
18568
 
#endif
18569
 
#ifdef __cplusplus
18570
 
}
18571
17500
#endif
18572
17501
 
18573
17502
int
18574
17503
main ()
18575
17504
{
18576
 
return f != $ac_func;
 
17505
return $ac_func ();
18577
17506
  ;
18578
17507
  return 0;
18579
17508
}
18580
17509
_ACEOF
18581
17510
rm -f conftest.$ac_objext conftest$ac_exeext
18582
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18583
 
  (eval $ac_link) 2>conftest.er1
 
17511
if { (ac_try="$ac_link"
 
17512
case "(($ac_try" in
 
17513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17514
  *) ac_try_echo=$ac_try;;
 
17515
esac
 
17516
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17517
  (eval "$ac_link") 2>conftest.er1
18584
17518
  ac_status=$?
18585
17519
  grep -v '^ *+' conftest.er1 >conftest.err
18586
17520
  rm -f conftest.er1
18587
17521
  cat conftest.err >&5
18588
17522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589
 
  (exit $ac_status); } &&
18590
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18591
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592
 
  (eval $ac_try) 2>&5
18593
 
  ac_status=$?
18594
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595
 
  (exit $ac_status); }; } &&
18596
 
         { ac_try='test -s conftest$ac_exeext'
18597
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598
 
  (eval $ac_try) 2>&5
18599
 
  ac_status=$?
18600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601
 
  (exit $ac_status); }; }; then
 
17523
  (exit $ac_status); } && {
 
17524
         test -z "$ac_c_werror_flag" ||
 
17525
         test ! -s conftest.err
 
17526
       } && test -s conftest$ac_exeext &&
 
17527
       $as_test_x conftest$ac_exeext; then
18602
17528
  eval "$as_ac_var=yes"
18603
17529
else
18604
17530
  echo "$as_me: failed program was:" >&5
18605
17531
sed 's/^/| /' conftest.$ac_ext >&5
18606
17532
 
18607
 
eval "$as_ac_var=no"
 
17533
        eval "$as_ac_var=no"
18608
17534
fi
18609
 
rm -f conftest.err conftest.$ac_objext \
 
17535
 
 
17536
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18610
17537
      conftest$ac_exeext conftest.$ac_ext
18611
17538
fi
18612
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18613
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17539
ac_res=`eval echo '${'$as_ac_var'}'`
 
17540
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17541
echo "${ECHO_T}$ac_res" >&6; }
18614
17542
if test `eval echo '${'$as_ac_var'}'` = yes; then
18615
17543
  cat >>confdefs.h <<_ACEOF
18616
17544
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18627
17555
for ac_func in strcasecmp strncasecmp ctermid times gmtime_r
18628
17556
do
18629
17557
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18630
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18631
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18632
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18633
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18634
 
else
18635
 
  cat >conftest.$ac_ext <<_ACEOF
18636
 
/* confdefs.h.  */
18637
 
_ACEOF
18638
 
cat confdefs.h >>conftest.$ac_ext
18639
 
cat >>conftest.$ac_ext <<_ACEOF
18640
 
/* end confdefs.h.  */
18641
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18642
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18643
 
#define $ac_func innocuous_$ac_func
18644
 
 
18645
 
/* System header to define __stub macros and hopefully few prototypes,
18646
 
    which can conflict with char $ac_func (); below.
18647
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18648
 
    <limits.h> exists even on freestanding compilers.  */
18649
 
 
18650
 
#ifdef __STDC__
18651
 
# include <limits.h>
18652
 
#else
18653
 
# include <assert.h>
18654
 
#endif
18655
 
 
18656
 
#undef $ac_func
18657
 
 
18658
 
/* Override any gcc2 internal prototype to avoid an error.  */
18659
 
#ifdef __cplusplus
18660
 
extern "C"
18661
 
{
18662
 
#endif
18663
 
/* We use char because int might match the return type of a gcc2
18664
 
   builtin and then its argument prototype would still apply.  */
18665
 
char $ac_func ();
18666
 
/* The GNU C library defines this for functions which it implements
18667
 
    to always fail with ENOSYS.  Some functions are actually named
18668
 
    something starting with __ and the normal name is an alias.  */
18669
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18670
 
choke me
18671
 
#else
18672
 
char (*f) () = $ac_func;
18673
 
#endif
18674
 
#ifdef __cplusplus
18675
 
}
18676
 
#endif
18677
 
 
18678
 
int
18679
 
main ()
18680
 
{
18681
 
return f != $ac_func;
18682
 
  ;
18683
 
  return 0;
18684
 
}
18685
 
_ACEOF
18686
 
rm -f conftest.$ac_objext conftest$ac_exeext
18687
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18688
 
  (eval $ac_link) 2>conftest.er1
18689
 
  ac_status=$?
18690
 
  grep -v '^ *+' conftest.er1 >conftest.err
18691
 
  rm -f conftest.er1
18692
 
  cat conftest.err >&5
18693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694
 
  (exit $ac_status); } &&
18695
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18696
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697
 
  (eval $ac_try) 2>&5
18698
 
  ac_status=$?
18699
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700
 
  (exit $ac_status); }; } &&
18701
 
         { ac_try='test -s conftest$ac_exeext'
18702
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703
 
  (eval $ac_try) 2>&5
18704
 
  ac_status=$?
18705
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706
 
  (exit $ac_status); }; }; then
18707
 
  eval "$as_ac_var=yes"
18708
 
else
18709
 
  echo "$as_me: failed program was:" >&5
18710
 
sed 's/^/| /' conftest.$ac_ext >&5
18711
 
 
18712
 
eval "$as_ac_var=no"
18713
 
fi
18714
 
rm -f conftest.err conftest.$ac_objext \
18715
 
      conftest$ac_exeext conftest.$ac_ext
18716
 
fi
18717
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18718
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18719
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
18720
 
  cat >>confdefs.h <<_ACEOF
18721
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18722
 
_ACEOF
18723
 
 
18724
 
fi
18725
 
done
18726
 
 
18727
 
 
18728
 
 
18729
 
 
18730
 
 
18731
 
 
18732
 
for ac_func in memmove gettimeofday getrusage setrlimit clock_gettime
18733
 
do
18734
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18735
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18736
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18737
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18738
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18739
 
else
18740
 
  cat >conftest.$ac_ext <<_ACEOF
18741
 
/* confdefs.h.  */
18742
 
_ACEOF
18743
 
cat confdefs.h >>conftest.$ac_ext
18744
 
cat >>conftest.$ac_ext <<_ACEOF
18745
 
/* end confdefs.h.  */
18746
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18747
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18748
 
#define $ac_func innocuous_$ac_func
18749
 
 
18750
 
/* System header to define __stub macros and hopefully few prototypes,
18751
 
    which can conflict with char $ac_func (); below.
18752
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18753
 
    <limits.h> exists even on freestanding compilers.  */
18754
 
 
18755
 
#ifdef __STDC__
18756
 
# include <limits.h>
18757
 
#else
18758
 
# include <assert.h>
18759
 
#endif
18760
 
 
18761
 
#undef $ac_func
18762
 
 
18763
 
/* Override any gcc2 internal prototype to avoid an error.  */
18764
 
#ifdef __cplusplus
18765
 
extern "C"
18766
 
{
18767
 
#endif
18768
 
/* We use char because int might match the return type of a gcc2
18769
 
   builtin and then its argument prototype would still apply.  */
18770
 
char $ac_func ();
18771
 
/* The GNU C library defines this for functions which it implements
18772
 
    to always fail with ENOSYS.  Some functions are actually named
18773
 
    something starting with __ and the normal name is an alias.  */
18774
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18775
 
choke me
18776
 
#else
18777
 
char (*f) () = $ac_func;
18778
 
#endif
18779
 
#ifdef __cplusplus
18780
 
}
18781
 
#endif
18782
 
 
18783
 
int
18784
 
main ()
18785
 
{
18786
 
return f != $ac_func;
18787
 
  ;
18788
 
  return 0;
18789
 
}
18790
 
_ACEOF
18791
 
rm -f conftest.$ac_objext conftest$ac_exeext
18792
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18793
 
  (eval $ac_link) 2>conftest.er1
18794
 
  ac_status=$?
18795
 
  grep -v '^ *+' conftest.er1 >conftest.err
18796
 
  rm -f conftest.er1
18797
 
  cat conftest.err >&5
18798
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799
 
  (exit $ac_status); } &&
18800
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18801
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802
 
  (eval $ac_try) 2>&5
18803
 
  ac_status=$?
18804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805
 
  (exit $ac_status); }; } &&
18806
 
         { ac_try='test -s conftest$ac_exeext'
18807
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808
 
  (eval $ac_try) 2>&5
18809
 
  ac_status=$?
18810
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811
 
  (exit $ac_status); }; }; then
18812
 
  eval "$as_ac_var=yes"
18813
 
else
18814
 
  echo "$as_me: failed program was:" >&5
18815
 
sed 's/^/| /' conftest.$ac_ext >&5
18816
 
 
18817
 
eval "$as_ac_var=no"
18818
 
fi
18819
 
rm -f conftest.err conftest.$ac_objext \
18820
 
      conftest$ac_exeext conftest.$ac_ext
18821
 
fi
18822
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18823
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
17558
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17559
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17560
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17562
else
 
17563
  cat >conftest.$ac_ext <<_ACEOF
 
17564
/* confdefs.h.  */
 
17565
_ACEOF
 
17566
cat confdefs.h >>conftest.$ac_ext
 
17567
cat >>conftest.$ac_ext <<_ACEOF
 
17568
/* end confdefs.h.  */
 
17569
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17570
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17571
#define $ac_func innocuous_$ac_func
 
17572
 
 
17573
/* System header to define __stub macros and hopefully few prototypes,
 
17574
    which can conflict with char $ac_func (); below.
 
17575
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17576
    <limits.h> exists even on freestanding compilers.  */
 
17577
 
 
17578
#ifdef __STDC__
 
17579
# include <limits.h>
 
17580
#else
 
17581
# include <assert.h>
 
17582
#endif
 
17583
 
 
17584
#undef $ac_func
 
17585
 
 
17586
/* Override any GCC internal prototype to avoid an error.
 
17587
   Use char because int might match the return type of a GCC
 
17588
   builtin and then its argument prototype would still apply.  */
 
17589
#ifdef __cplusplus
 
17590
extern "C"
 
17591
#endif
 
17592
char $ac_func ();
 
17593
/* The GNU C library defines this for functions which it implements
 
17594
    to always fail with ENOSYS.  Some functions are actually named
 
17595
    something starting with __ and the normal name is an alias.  */
 
17596
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17597
choke me
 
17598
#endif
 
17599
 
 
17600
int
 
17601
main ()
 
17602
{
 
17603
return $ac_func ();
 
17604
  ;
 
17605
  return 0;
 
17606
}
 
17607
_ACEOF
 
17608
rm -f conftest.$ac_objext conftest$ac_exeext
 
17609
if { (ac_try="$ac_link"
 
17610
case "(($ac_try" in
 
17611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17612
  *) ac_try_echo=$ac_try;;
 
17613
esac
 
17614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17615
  (eval "$ac_link") 2>conftest.er1
 
17616
  ac_status=$?
 
17617
  grep -v '^ *+' conftest.er1 >conftest.err
 
17618
  rm -f conftest.er1
 
17619
  cat conftest.err >&5
 
17620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17621
  (exit $ac_status); } && {
 
17622
         test -z "$ac_c_werror_flag" ||
 
17623
         test ! -s conftest.err
 
17624
       } && test -s conftest$ac_exeext &&
 
17625
       $as_test_x conftest$ac_exeext; then
 
17626
  eval "$as_ac_var=yes"
 
17627
else
 
17628
  echo "$as_me: failed program was:" >&5
 
17629
sed 's/^/| /' conftest.$ac_ext >&5
 
17630
 
 
17631
        eval "$as_ac_var=no"
 
17632
fi
 
17633
 
 
17634
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17635
      conftest$ac_exeext conftest.$ac_ext
 
17636
fi
 
17637
ac_res=`eval echo '${'$as_ac_var'}'`
 
17638
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17639
echo "${ECHO_T}$ac_res" >&6; }
 
17640
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17641
  cat >>confdefs.h <<_ACEOF
 
17642
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17643
_ACEOF
 
17644
 
 
17645
fi
 
17646
done
 
17647
 
 
17648
 
 
17649
 
 
17650
 
 
17651
 
 
17652
 
 
17653
for ac_func in unsetenv getpwnam getpwuid fcntl ftruncate
 
17654
do
 
17655
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17656
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17657
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17658
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17660
else
 
17661
  cat >conftest.$ac_ext <<_ACEOF
 
17662
/* confdefs.h.  */
 
17663
_ACEOF
 
17664
cat confdefs.h >>conftest.$ac_ext
 
17665
cat >>conftest.$ac_ext <<_ACEOF
 
17666
/* end confdefs.h.  */
 
17667
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17668
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17669
#define $ac_func innocuous_$ac_func
 
17670
 
 
17671
/* System header to define __stub macros and hopefully few prototypes,
 
17672
    which can conflict with char $ac_func (); below.
 
17673
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17674
    <limits.h> exists even on freestanding compilers.  */
 
17675
 
 
17676
#ifdef __STDC__
 
17677
# include <limits.h>
 
17678
#else
 
17679
# include <assert.h>
 
17680
#endif
 
17681
 
 
17682
#undef $ac_func
 
17683
 
 
17684
/* Override any GCC internal prototype to avoid an error.
 
17685
   Use char because int might match the return type of a GCC
 
17686
   builtin and then its argument prototype would still apply.  */
 
17687
#ifdef __cplusplus
 
17688
extern "C"
 
17689
#endif
 
17690
char $ac_func ();
 
17691
/* The GNU C library defines this for functions which it implements
 
17692
    to always fail with ENOSYS.  Some functions are actually named
 
17693
    something starting with __ and the normal name is an alias.  */
 
17694
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17695
choke me
 
17696
#endif
 
17697
 
 
17698
int
 
17699
main ()
 
17700
{
 
17701
return $ac_func ();
 
17702
  ;
 
17703
  return 0;
 
17704
}
 
17705
_ACEOF
 
17706
rm -f conftest.$ac_objext conftest$ac_exeext
 
17707
if { (ac_try="$ac_link"
 
17708
case "(($ac_try" in
 
17709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17710
  *) ac_try_echo=$ac_try;;
 
17711
esac
 
17712
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17713
  (eval "$ac_link") 2>conftest.er1
 
17714
  ac_status=$?
 
17715
  grep -v '^ *+' conftest.er1 >conftest.err
 
17716
  rm -f conftest.er1
 
17717
  cat conftest.err >&5
 
17718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17719
  (exit $ac_status); } && {
 
17720
         test -z "$ac_c_werror_flag" ||
 
17721
         test ! -s conftest.err
 
17722
       } && test -s conftest$ac_exeext &&
 
17723
       $as_test_x conftest$ac_exeext; then
 
17724
  eval "$as_ac_var=yes"
 
17725
else
 
17726
  echo "$as_me: failed program was:" >&5
 
17727
sed 's/^/| /' conftest.$ac_ext >&5
 
17728
 
 
17729
        eval "$as_ac_var=no"
 
17730
fi
 
17731
 
 
17732
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17733
      conftest$ac_exeext conftest.$ac_ext
 
17734
fi
 
17735
ac_res=`eval echo '${'$as_ac_var'}'`
 
17736
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17737
echo "${ECHO_T}$ac_res" >&6; }
 
17738
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17739
  cat >>confdefs.h <<_ACEOF
 
17740
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17741
_ACEOF
 
17742
 
 
17743
fi
 
17744
done
 
17745
 
 
17746
 
 
17747
 
 
17748
 
 
17749
 
 
17750
for ac_func in gettimeofday getrusage setrlimit clock_gettime
 
17751
do
 
17752
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17753
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17754
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17755
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17757
else
 
17758
  cat >conftest.$ac_ext <<_ACEOF
 
17759
/* confdefs.h.  */
 
17760
_ACEOF
 
17761
cat confdefs.h >>conftest.$ac_ext
 
17762
cat >>conftest.$ac_ext <<_ACEOF
 
17763
/* end confdefs.h.  */
 
17764
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17765
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17766
#define $ac_func innocuous_$ac_func
 
17767
 
 
17768
/* System header to define __stub macros and hopefully few prototypes,
 
17769
    which can conflict with char $ac_func (); below.
 
17770
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17771
    <limits.h> exists even on freestanding compilers.  */
 
17772
 
 
17773
#ifdef __STDC__
 
17774
# include <limits.h>
 
17775
#else
 
17776
# include <assert.h>
 
17777
#endif
 
17778
 
 
17779
#undef $ac_func
 
17780
 
 
17781
/* Override any GCC internal prototype to avoid an error.
 
17782
   Use char because int might match the return type of a GCC
 
17783
   builtin and then its argument prototype would still apply.  */
 
17784
#ifdef __cplusplus
 
17785
extern "C"
 
17786
#endif
 
17787
char $ac_func ();
 
17788
/* The GNU C library defines this for functions which it implements
 
17789
    to always fail with ENOSYS.  Some functions are actually named
 
17790
    something starting with __ and the normal name is an alias.  */
 
17791
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17792
choke me
 
17793
#endif
 
17794
 
 
17795
int
 
17796
main ()
 
17797
{
 
17798
return $ac_func ();
 
17799
  ;
 
17800
  return 0;
 
17801
}
 
17802
_ACEOF
 
17803
rm -f conftest.$ac_objext conftest$ac_exeext
 
17804
if { (ac_try="$ac_link"
 
17805
case "(($ac_try" in
 
17806
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17807
  *) ac_try_echo=$ac_try;;
 
17808
esac
 
17809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17810
  (eval "$ac_link") 2>conftest.er1
 
17811
  ac_status=$?
 
17812
  grep -v '^ *+' conftest.er1 >conftest.err
 
17813
  rm -f conftest.er1
 
17814
  cat conftest.err >&5
 
17815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17816
  (exit $ac_status); } && {
 
17817
         test -z "$ac_c_werror_flag" ||
 
17818
         test ! -s conftest.err
 
17819
       } && test -s conftest$ac_exeext &&
 
17820
       $as_test_x conftest$ac_exeext; then
 
17821
  eval "$as_ac_var=yes"
 
17822
else
 
17823
  echo "$as_me: failed program was:" >&5
 
17824
sed 's/^/| /' conftest.$ac_ext >&5
 
17825
 
 
17826
        eval "$as_ac_var=no"
 
17827
fi
 
17828
 
 
17829
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17830
      conftest$ac_exeext conftest.$ac_ext
 
17831
fi
 
17832
ac_res=`eval echo '${'$as_ac_var'}'`
 
17833
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17834
echo "${ECHO_T}$ac_res" >&6; }
18824
17835
if test `eval echo '${'$as_ac_var'}'` = yes; then
18825
17836
  cat >>confdefs.h <<_ACEOF
18826
17837
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18838
17849
for ac_func in atexit raise getpagesize strftime nl_langinfo setlocale
18839
17850
do
18840
17851
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18841
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18842
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18843
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18844
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18845
 
else
18846
 
  cat >conftest.$ac_ext <<_ACEOF
18847
 
/* confdefs.h.  */
18848
 
_ACEOF
18849
 
cat confdefs.h >>conftest.$ac_ext
18850
 
cat >>conftest.$ac_ext <<_ACEOF
18851
 
/* end confdefs.h.  */
18852
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18853
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18854
 
#define $ac_func innocuous_$ac_func
18855
 
 
18856
 
/* System header to define __stub macros and hopefully few prototypes,
18857
 
    which can conflict with char $ac_func (); below.
18858
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18859
 
    <limits.h> exists even on freestanding compilers.  */
18860
 
 
18861
 
#ifdef __STDC__
18862
 
# include <limits.h>
18863
 
#else
18864
 
# include <assert.h>
18865
 
#endif
18866
 
 
18867
 
#undef $ac_func
18868
 
 
18869
 
/* Override any gcc2 internal prototype to avoid an error.  */
18870
 
#ifdef __cplusplus
18871
 
extern "C"
18872
 
{
18873
 
#endif
18874
 
/* We use char because int might match the return type of a gcc2
18875
 
   builtin and then its argument prototype would still apply.  */
18876
 
char $ac_func ();
18877
 
/* The GNU C library defines this for functions which it implements
18878
 
    to always fail with ENOSYS.  Some functions are actually named
18879
 
    something starting with __ and the normal name is an alias.  */
18880
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18881
 
choke me
18882
 
#else
18883
 
char (*f) () = $ac_func;
18884
 
#endif
18885
 
#ifdef __cplusplus
18886
 
}
18887
 
#endif
18888
 
 
18889
 
int
18890
 
main ()
18891
 
{
18892
 
return f != $ac_func;
18893
 
  ;
18894
 
  return 0;
18895
 
}
18896
 
_ACEOF
18897
 
rm -f conftest.$ac_objext conftest$ac_exeext
18898
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899
 
  (eval $ac_link) 2>conftest.er1
18900
 
  ac_status=$?
18901
 
  grep -v '^ *+' conftest.er1 >conftest.err
18902
 
  rm -f conftest.er1
18903
 
  cat conftest.err >&5
18904
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905
 
  (exit $ac_status); } &&
18906
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18907
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908
 
  (eval $ac_try) 2>&5
18909
 
  ac_status=$?
18910
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911
 
  (exit $ac_status); }; } &&
18912
 
         { ac_try='test -s conftest$ac_exeext'
18913
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914
 
  (eval $ac_try) 2>&5
18915
 
  ac_status=$?
18916
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917
 
  (exit $ac_status); }; }; then
18918
 
  eval "$as_ac_var=yes"
18919
 
else
18920
 
  echo "$as_me: failed program was:" >&5
18921
 
sed 's/^/| /' conftest.$ac_ext >&5
18922
 
 
18923
 
eval "$as_ac_var=no"
18924
 
fi
18925
 
rm -f conftest.err conftest.$ac_objext \
18926
 
      conftest$ac_exeext conftest.$ac_ext
18927
 
fi
18928
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18929
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18930
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
18931
 
  cat >>confdefs.h <<_ACEOF
18932
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18933
 
_ACEOF
18934
 
 
18935
 
fi
18936
 
done
18937
 
 
18938
 
 
18939
 
 
18940
 
 
18941
 
 
18942
 
 
18943
 
 
18944
 
 
18945
 
 
18946
 
for ac_func in waitpid wait4 sigaction sigprocmask rand pipe stat getaddrinfo
18947
 
do
18948
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18949
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
18950
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18951
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
18952
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18953
 
else
18954
 
  cat >conftest.$ac_ext <<_ACEOF
18955
 
/* confdefs.h.  */
18956
 
_ACEOF
18957
 
cat confdefs.h >>conftest.$ac_ext
18958
 
cat >>conftest.$ac_ext <<_ACEOF
18959
 
/* end confdefs.h.  */
18960
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18961
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18962
 
#define $ac_func innocuous_$ac_func
18963
 
 
18964
 
/* System header to define __stub macros and hopefully few prototypes,
18965
 
    which can conflict with char $ac_func (); below.
18966
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18967
 
    <limits.h> exists even on freestanding compilers.  */
18968
 
 
18969
 
#ifdef __STDC__
18970
 
# include <limits.h>
18971
 
#else
18972
 
# include <assert.h>
18973
 
#endif
18974
 
 
18975
 
#undef $ac_func
18976
 
 
18977
 
/* Override any gcc2 internal prototype to avoid an error.  */
18978
 
#ifdef __cplusplus
18979
 
extern "C"
18980
 
{
18981
 
#endif
18982
 
/* We use char because int might match the return type of a gcc2
18983
 
   builtin and then its argument prototype would still apply.  */
18984
 
char $ac_func ();
18985
 
/* The GNU C library defines this for functions which it implements
18986
 
    to always fail with ENOSYS.  Some functions are actually named
18987
 
    something starting with __ and the normal name is an alias.  */
18988
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18989
 
choke me
18990
 
#else
18991
 
char (*f) () = $ac_func;
18992
 
#endif
18993
 
#ifdef __cplusplus
18994
 
}
18995
 
#endif
18996
 
 
18997
 
int
18998
 
main ()
18999
 
{
19000
 
return f != $ac_func;
19001
 
  ;
19002
 
  return 0;
19003
 
}
19004
 
_ACEOF
19005
 
rm -f conftest.$ac_objext conftest$ac_exeext
19006
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19007
 
  (eval $ac_link) 2>conftest.er1
19008
 
  ac_status=$?
19009
 
  grep -v '^ *+' conftest.er1 >conftest.err
19010
 
  rm -f conftest.er1
19011
 
  cat conftest.err >&5
19012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013
 
  (exit $ac_status); } &&
19014
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19015
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016
 
  (eval $ac_try) 2>&5
19017
 
  ac_status=$?
19018
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019
 
  (exit $ac_status); }; } &&
19020
 
         { ac_try='test -s conftest$ac_exeext'
19021
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022
 
  (eval $ac_try) 2>&5
19023
 
  ac_status=$?
19024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025
 
  (exit $ac_status); }; }; then
19026
 
  eval "$as_ac_var=yes"
19027
 
else
19028
 
  echo "$as_me: failed program was:" >&5
19029
 
sed 's/^/| /' conftest.$ac_ext >&5
19030
 
 
19031
 
eval "$as_ac_var=no"
19032
 
fi
19033
 
rm -f conftest.err conftest.$ac_objext \
19034
 
      conftest$ac_exeext conftest.$ac_ext
19035
 
fi
19036
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19037
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19038
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
19039
 
  cat >>confdefs.h <<_ACEOF
19040
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19041
 
_ACEOF
19042
 
 
19043
 
fi
19044
 
done
19045
 
 
19046
 
 
19047
 
 
19048
 
 
19049
 
 
19050
 
for ac_func in fseeko ftello ttyname isascii
19051
 
do
19052
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19053
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
19054
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19055
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
19056
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19057
 
else
19058
 
  cat >conftest.$ac_ext <<_ACEOF
19059
 
/* confdefs.h.  */
19060
 
_ACEOF
19061
 
cat confdefs.h >>conftest.$ac_ext
19062
 
cat >>conftest.$ac_ext <<_ACEOF
19063
 
/* end confdefs.h.  */
19064
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19065
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19066
 
#define $ac_func innocuous_$ac_func
19067
 
 
19068
 
/* System header to define __stub macros and hopefully few prototypes,
19069
 
    which can conflict with char $ac_func (); below.
19070
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19071
 
    <limits.h> exists even on freestanding compilers.  */
19072
 
 
19073
 
#ifdef __STDC__
19074
 
# include <limits.h>
19075
 
#else
19076
 
# include <assert.h>
19077
 
#endif
19078
 
 
19079
 
#undef $ac_func
19080
 
 
19081
 
/* Override any gcc2 internal prototype to avoid an error.  */
19082
 
#ifdef __cplusplus
19083
 
extern "C"
19084
 
{
19085
 
#endif
19086
 
/* We use char because int might match the return type of a gcc2
19087
 
   builtin and then its argument prototype would still apply.  */
19088
 
char $ac_func ();
19089
 
/* The GNU C library defines this for functions which it implements
19090
 
    to always fail with ENOSYS.  Some functions are actually named
19091
 
    something starting with __ and the normal name is an alias.  */
19092
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19093
 
choke me
19094
 
#else
19095
 
char (*f) () = $ac_func;
19096
 
#endif
19097
 
#ifdef __cplusplus
19098
 
}
19099
 
#endif
19100
 
 
19101
 
int
19102
 
main ()
19103
 
{
19104
 
return f != $ac_func;
19105
 
  ;
19106
 
  return 0;
19107
 
}
19108
 
_ACEOF
19109
 
rm -f conftest.$ac_objext conftest$ac_exeext
19110
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19111
 
  (eval $ac_link) 2>conftest.er1
19112
 
  ac_status=$?
19113
 
  grep -v '^ *+' conftest.er1 >conftest.err
19114
 
  rm -f conftest.er1
19115
 
  cat conftest.err >&5
19116
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117
 
  (exit $ac_status); } &&
19118
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19119
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120
 
  (eval $ac_try) 2>&5
19121
 
  ac_status=$?
19122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123
 
  (exit $ac_status); }; } &&
19124
 
         { ac_try='test -s conftest$ac_exeext'
19125
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126
 
  (eval $ac_try) 2>&5
19127
 
  ac_status=$?
19128
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129
 
  (exit $ac_status); }; }; then
19130
 
  eval "$as_ac_var=yes"
19131
 
else
19132
 
  echo "$as_me: failed program was:" >&5
19133
 
sed 's/^/| /' conftest.$ac_ext >&5
19134
 
 
19135
 
eval "$as_ac_var=no"
19136
 
fi
19137
 
rm -f conftest.err conftest.$ac_objext \
19138
 
      conftest$ac_exeext conftest.$ac_ext
19139
 
fi
19140
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19141
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19142
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
19143
 
  cat >>confdefs.h <<_ACEOF
19144
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19145
 
_ACEOF
19146
 
 
19147
 
fi
19148
 
done
19149
 
 
19150
 
 
19151
 
echo "$as_me:$LINENO: checking for struct sigaction" >&5
19152
 
echo $ECHO_N "checking for struct sigaction... $ECHO_C" >&6
 
17852
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17853
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17854
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17856
else
 
17857
  cat >conftest.$ac_ext <<_ACEOF
 
17858
/* confdefs.h.  */
 
17859
_ACEOF
 
17860
cat confdefs.h >>conftest.$ac_ext
 
17861
cat >>conftest.$ac_ext <<_ACEOF
 
17862
/* end confdefs.h.  */
 
17863
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17864
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17865
#define $ac_func innocuous_$ac_func
 
17866
 
 
17867
/* System header to define __stub macros and hopefully few prototypes,
 
17868
    which can conflict with char $ac_func (); below.
 
17869
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17870
    <limits.h> exists even on freestanding compilers.  */
 
17871
 
 
17872
#ifdef __STDC__
 
17873
# include <limits.h>
 
17874
#else
 
17875
# include <assert.h>
 
17876
#endif
 
17877
 
 
17878
#undef $ac_func
 
17879
 
 
17880
/* Override any GCC internal prototype to avoid an error.
 
17881
   Use char because int might match the return type of a GCC
 
17882
   builtin and then its argument prototype would still apply.  */
 
17883
#ifdef __cplusplus
 
17884
extern "C"
 
17885
#endif
 
17886
char $ac_func ();
 
17887
/* The GNU C library defines this for functions which it implements
 
17888
    to always fail with ENOSYS.  Some functions are actually named
 
17889
    something starting with __ and the normal name is an alias.  */
 
17890
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17891
choke me
 
17892
#endif
 
17893
 
 
17894
int
 
17895
main ()
 
17896
{
 
17897
return $ac_func ();
 
17898
  ;
 
17899
  return 0;
 
17900
}
 
17901
_ACEOF
 
17902
rm -f conftest.$ac_objext conftest$ac_exeext
 
17903
if { (ac_try="$ac_link"
 
17904
case "(($ac_try" in
 
17905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17906
  *) ac_try_echo=$ac_try;;
 
17907
esac
 
17908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17909
  (eval "$ac_link") 2>conftest.er1
 
17910
  ac_status=$?
 
17911
  grep -v '^ *+' conftest.er1 >conftest.err
 
17912
  rm -f conftest.er1
 
17913
  cat conftest.err >&5
 
17914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17915
  (exit $ac_status); } && {
 
17916
         test -z "$ac_c_werror_flag" ||
 
17917
         test ! -s conftest.err
 
17918
       } && test -s conftest$ac_exeext &&
 
17919
       $as_test_x conftest$ac_exeext; then
 
17920
  eval "$as_ac_var=yes"
 
17921
else
 
17922
  echo "$as_me: failed program was:" >&5
 
17923
sed 's/^/| /' conftest.$ac_ext >&5
 
17924
 
 
17925
        eval "$as_ac_var=no"
 
17926
fi
 
17927
 
 
17928
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17929
      conftest$ac_exeext conftest.$ac_ext
 
17930
fi
 
17931
ac_res=`eval echo '${'$as_ac_var'}'`
 
17932
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17933
echo "${ECHO_T}$ac_res" >&6; }
 
17934
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
17935
  cat >>confdefs.h <<_ACEOF
 
17936
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
17937
_ACEOF
 
17938
 
 
17939
fi
 
17940
done
 
17941
 
 
17942
 
 
17943
 
 
17944
 
 
17945
 
 
17946
 
 
17947
 
 
17948
 
 
17949
for ac_func in waitpid wait4 sigaction sigprocmask pipe stat getaddrinfo
 
17950
do
 
17951
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
17952
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
17953
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
17954
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
17955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17956
else
 
17957
  cat >conftest.$ac_ext <<_ACEOF
 
17958
/* confdefs.h.  */
 
17959
_ACEOF
 
17960
cat confdefs.h >>conftest.$ac_ext
 
17961
cat >>conftest.$ac_ext <<_ACEOF
 
17962
/* end confdefs.h.  */
 
17963
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
17964
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17965
#define $ac_func innocuous_$ac_func
 
17966
 
 
17967
/* System header to define __stub macros and hopefully few prototypes,
 
17968
    which can conflict with char $ac_func (); below.
 
17969
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17970
    <limits.h> exists even on freestanding compilers.  */
 
17971
 
 
17972
#ifdef __STDC__
 
17973
# include <limits.h>
 
17974
#else
 
17975
# include <assert.h>
 
17976
#endif
 
17977
 
 
17978
#undef $ac_func
 
17979
 
 
17980
/* Override any GCC internal prototype to avoid an error.
 
17981
   Use char because int might match the return type of a GCC
 
17982
   builtin and then its argument prototype would still apply.  */
 
17983
#ifdef __cplusplus
 
17984
extern "C"
 
17985
#endif
 
17986
char $ac_func ();
 
17987
/* The GNU C library defines this for functions which it implements
 
17988
    to always fail with ENOSYS.  Some functions are actually named
 
17989
    something starting with __ and the normal name is an alias.  */
 
17990
#if defined __stub_$ac_func || defined __stub___$ac_func
 
17991
choke me
 
17992
#endif
 
17993
 
 
17994
int
 
17995
main ()
 
17996
{
 
17997
return $ac_func ();
 
17998
  ;
 
17999
  return 0;
 
18000
}
 
18001
_ACEOF
 
18002
rm -f conftest.$ac_objext conftest$ac_exeext
 
18003
if { (ac_try="$ac_link"
 
18004
case "(($ac_try" in
 
18005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18006
  *) ac_try_echo=$ac_try;;
 
18007
esac
 
18008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18009
  (eval "$ac_link") 2>conftest.er1
 
18010
  ac_status=$?
 
18011
  grep -v '^ *+' conftest.er1 >conftest.err
 
18012
  rm -f conftest.er1
 
18013
  cat conftest.err >&5
 
18014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18015
  (exit $ac_status); } && {
 
18016
         test -z "$ac_c_werror_flag" ||
 
18017
         test ! -s conftest.err
 
18018
       } && test -s conftest$ac_exeext &&
 
18019
       $as_test_x conftest$ac_exeext; then
 
18020
  eval "$as_ac_var=yes"
 
18021
else
 
18022
  echo "$as_me: failed program was:" >&5
 
18023
sed 's/^/| /' conftest.$ac_ext >&5
 
18024
 
 
18025
        eval "$as_ac_var=no"
 
18026
fi
 
18027
 
 
18028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18029
      conftest$ac_exeext conftest.$ac_ext
 
18030
fi
 
18031
ac_res=`eval echo '${'$as_ac_var'}'`
 
18032
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18033
echo "${ECHO_T}$ac_res" >&6; }
 
18034
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18035
  cat >>confdefs.h <<_ACEOF
 
18036
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18037
_ACEOF
 
18038
 
 
18039
fi
 
18040
done
 
18041
 
 
18042
 
 
18043
 
 
18044
 
 
18045
for ac_func in ttyname rand ftello
 
18046
do
 
18047
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18048
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18049
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18050
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18052
else
 
18053
  cat >conftest.$ac_ext <<_ACEOF
 
18054
/* confdefs.h.  */
 
18055
_ACEOF
 
18056
cat confdefs.h >>conftest.$ac_ext
 
18057
cat >>conftest.$ac_ext <<_ACEOF
 
18058
/* end confdefs.h.  */
 
18059
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18060
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18061
#define $ac_func innocuous_$ac_func
 
18062
 
 
18063
/* System header to define __stub macros and hopefully few prototypes,
 
18064
    which can conflict with char $ac_func (); below.
 
18065
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18066
    <limits.h> exists even on freestanding compilers.  */
 
18067
 
 
18068
#ifdef __STDC__
 
18069
# include <limits.h>
 
18070
#else
 
18071
# include <assert.h>
 
18072
#endif
 
18073
 
 
18074
#undef $ac_func
 
18075
 
 
18076
/* Override any GCC internal prototype to avoid an error.
 
18077
   Use char because int might match the return type of a GCC
 
18078
   builtin and then its argument prototype would still apply.  */
 
18079
#ifdef __cplusplus
 
18080
extern "C"
 
18081
#endif
 
18082
char $ac_func ();
 
18083
/* The GNU C library defines this for functions which it implements
 
18084
    to always fail with ENOSYS.  Some functions are actually named
 
18085
    something starting with __ and the normal name is an alias.  */
 
18086
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18087
choke me
 
18088
#endif
 
18089
 
 
18090
int
 
18091
main ()
 
18092
{
 
18093
return $ac_func ();
 
18094
  ;
 
18095
  return 0;
 
18096
}
 
18097
_ACEOF
 
18098
rm -f conftest.$ac_objext conftest$ac_exeext
 
18099
if { (ac_try="$ac_link"
 
18100
case "(($ac_try" in
 
18101
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18102
  *) ac_try_echo=$ac_try;;
 
18103
esac
 
18104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18105
  (eval "$ac_link") 2>conftest.er1
 
18106
  ac_status=$?
 
18107
  grep -v '^ *+' conftest.er1 >conftest.err
 
18108
  rm -f conftest.er1
 
18109
  cat conftest.err >&5
 
18110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18111
  (exit $ac_status); } && {
 
18112
         test -z "$ac_c_werror_flag" ||
 
18113
         test ! -s conftest.err
 
18114
       } && test -s conftest$ac_exeext &&
 
18115
       $as_test_x conftest$ac_exeext; then
 
18116
  eval "$as_ac_var=yes"
 
18117
else
 
18118
  echo "$as_me: failed program was:" >&5
 
18119
sed 's/^/| /' conftest.$ac_ext >&5
 
18120
 
 
18121
        eval "$as_ac_var=no"
 
18122
fi
 
18123
 
 
18124
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18125
      conftest$ac_exeext conftest.$ac_ext
 
18126
fi
 
18127
ac_res=`eval echo '${'$as_ac_var'}'`
 
18128
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18129
echo "${ECHO_T}$ac_res" >&6; }
 
18130
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18131
  cat >>confdefs.h <<_ACEOF
 
18132
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18133
_ACEOF
 
18134
 
 
18135
fi
 
18136
done
 
18137
 
 
18138
 
 
18139
{ echo "$as_me:$LINENO: checking for struct sigaction" >&5
 
18140
echo $ECHO_N "checking for struct sigaction... $ECHO_C" >&6; }
19153
18141
if test "${ac_cv_type_struct_sigaction+set}" = set; then
19154
18142
  echo $ECHO_N "(cached) $ECHO_C" >&6
19155
18143
else
19161
18149
/* end confdefs.h.  */
19162
18150
#include <signal.h>
19163
18151
 
 
18152
typedef struct sigaction ac__type_new_;
19164
18153
int
19165
18154
main ()
19166
18155
{
19167
 
if ((struct sigaction *) 0)
 
18156
if ((ac__type_new_ *) 0)
19168
18157
  return 0;
19169
 
if (sizeof (struct sigaction))
 
18158
if (sizeof (ac__type_new_))
19170
18159
  return 0;
19171
18160
  ;
19172
18161
  return 0;
19173
18162
}
19174
18163
_ACEOF
19175
18164
rm -f conftest.$ac_objext
19176
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19177
 
  (eval $ac_compile) 2>conftest.er1
 
18165
if { (ac_try="$ac_compile"
 
18166
case "(($ac_try" in
 
18167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18168
  *) ac_try_echo=$ac_try;;
 
18169
esac
 
18170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18171
  (eval "$ac_compile") 2>conftest.er1
19178
18172
  ac_status=$?
19179
18173
  grep -v '^ *+' conftest.er1 >conftest.err
19180
18174
  rm -f conftest.er1
19181
18175
  cat conftest.err >&5
19182
18176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183
 
  (exit $ac_status); } &&
19184
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19185
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186
 
  (eval $ac_try) 2>&5
19187
 
  ac_status=$?
19188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189
 
  (exit $ac_status); }; } &&
19190
 
         { ac_try='test -s conftest.$ac_objext'
19191
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192
 
  (eval $ac_try) 2>&5
19193
 
  ac_status=$?
19194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195
 
  (exit $ac_status); }; }; then
 
18177
  (exit $ac_status); } && {
 
18178
         test -z "$ac_c_werror_flag" ||
 
18179
         test ! -s conftest.err
 
18180
       } && test -s conftest.$ac_objext; then
19196
18181
  ac_cv_type_struct_sigaction=yes
19197
18182
else
19198
18183
  echo "$as_me: failed program was:" >&5
19199
18184
sed 's/^/| /' conftest.$ac_ext >&5
19200
18185
 
19201
 
ac_cv_type_struct_sigaction=no
19202
 
fi
19203
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19204
 
fi
19205
 
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sigaction" >&5
19206
 
echo "${ECHO_T}$ac_cv_type_struct_sigaction" >&6
 
18186
        ac_cv_type_struct_sigaction=no
 
18187
fi
 
18188
 
 
18189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18190
fi
 
18191
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sigaction" >&5
 
18192
echo "${ECHO_T}$ac_cv_type_struct_sigaction" >&6; }
19207
18193
if test $ac_cv_type_struct_sigaction = yes; then
19208
18194
 
19209
18195
cat >>confdefs.h <<_ACEOF
19212
18198
 
19213
18199
 
19214
18200
fi
19215
 
echo "$as_me:$LINENO: checking for sigset_t" >&5
19216
 
echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
 
18201
{ echo "$as_me:$LINENO: checking for sigset_t" >&5
 
18202
echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
19217
18203
if test "${ac_cv_type_sigset_t+set}" = set; then
19218
18204
  echo $ECHO_N "(cached) $ECHO_C" >&6
19219
18205
else
19225
18211
/* end confdefs.h.  */
19226
18212
#include <signal.h>
19227
18213
 
 
18214
typedef sigset_t ac__type_new_;
19228
18215
int
19229
18216
main ()
19230
18217
{
19231
 
if ((sigset_t *) 0)
 
18218
if ((ac__type_new_ *) 0)
19232
18219
  return 0;
19233
 
if (sizeof (sigset_t))
 
18220
if (sizeof (ac__type_new_))
19234
18221
  return 0;
19235
18222
  ;
19236
18223
  return 0;
19237
18224
}
19238
18225
_ACEOF
19239
18226
rm -f conftest.$ac_objext
19240
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241
 
  (eval $ac_compile) 2>conftest.er1
 
18227
if { (ac_try="$ac_compile"
 
18228
case "(($ac_try" in
 
18229
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18230
  *) ac_try_echo=$ac_try;;
 
18231
esac
 
18232
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18233
  (eval "$ac_compile") 2>conftest.er1
19242
18234
  ac_status=$?
19243
18235
  grep -v '^ *+' conftest.er1 >conftest.err
19244
18236
  rm -f conftest.er1
19245
18237
  cat conftest.err >&5
19246
18238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247
 
  (exit $ac_status); } &&
19248
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19249
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250
 
  (eval $ac_try) 2>&5
19251
 
  ac_status=$?
19252
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253
 
  (exit $ac_status); }; } &&
19254
 
         { ac_try='test -s conftest.$ac_objext'
19255
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256
 
  (eval $ac_try) 2>&5
19257
 
  ac_status=$?
19258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259
 
  (exit $ac_status); }; }; then
 
18239
  (exit $ac_status); } && {
 
18240
         test -z "$ac_c_werror_flag" ||
 
18241
         test ! -s conftest.err
 
18242
       } && test -s conftest.$ac_objext; then
19260
18243
  ac_cv_type_sigset_t=yes
19261
18244
else
19262
18245
  echo "$as_me: failed program was:" >&5
19263
18246
sed 's/^/| /' conftest.$ac_ext >&5
19264
18247
 
19265
 
ac_cv_type_sigset_t=no
19266
 
fi
19267
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19268
 
fi
19269
 
echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
19270
 
echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
 
18248
        ac_cv_type_sigset_t=no
 
18249
fi
 
18250
 
 
18251
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18252
fi
 
18253
{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
 
18254
echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
19271
18255
if test $ac_cv_type_sigset_t = yes; then
19272
18256
 
19273
18257
cat >>confdefs.h <<_ACEOF
19278
18262
fi
19279
18263
 
19280
18264
 
 
18265
#
 
18266
# These are needed by libjnlib - fixme: we should use a jnlib.m4
 
18267
#
 
18268
 
 
18269
 
 
18270
 
 
18271
 
 
18272
 
 
18273
 
 
18274
 
 
18275
 
 
18276
for ac_func in memicmp stpcpy strsep strlwr strtoul memmove stricmp strtol
 
18277
do
 
18278
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18279
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18280
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18281
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18283
else
 
18284
  cat >conftest.$ac_ext <<_ACEOF
 
18285
/* confdefs.h.  */
 
18286
_ACEOF
 
18287
cat confdefs.h >>conftest.$ac_ext
 
18288
cat >>conftest.$ac_ext <<_ACEOF
 
18289
/* end confdefs.h.  */
 
18290
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18291
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18292
#define $ac_func innocuous_$ac_func
 
18293
 
 
18294
/* System header to define __stub macros and hopefully few prototypes,
 
18295
    which can conflict with char $ac_func (); below.
 
18296
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18297
    <limits.h> exists even on freestanding compilers.  */
 
18298
 
 
18299
#ifdef __STDC__
 
18300
# include <limits.h>
 
18301
#else
 
18302
# include <assert.h>
 
18303
#endif
 
18304
 
 
18305
#undef $ac_func
 
18306
 
 
18307
/* Override any GCC internal prototype to avoid an error.
 
18308
   Use char because int might match the return type of a GCC
 
18309
   builtin and then its argument prototype would still apply.  */
 
18310
#ifdef __cplusplus
 
18311
extern "C"
 
18312
#endif
 
18313
char $ac_func ();
 
18314
/* The GNU C library defines this for functions which it implements
 
18315
    to always fail with ENOSYS.  Some functions are actually named
 
18316
    something starting with __ and the normal name is an alias.  */
 
18317
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18318
choke me
 
18319
#endif
 
18320
 
 
18321
int
 
18322
main ()
 
18323
{
 
18324
return $ac_func ();
 
18325
  ;
 
18326
  return 0;
 
18327
}
 
18328
_ACEOF
 
18329
rm -f conftest.$ac_objext conftest$ac_exeext
 
18330
if { (ac_try="$ac_link"
 
18331
case "(($ac_try" in
 
18332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18333
  *) ac_try_echo=$ac_try;;
 
18334
esac
 
18335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18336
  (eval "$ac_link") 2>conftest.er1
 
18337
  ac_status=$?
 
18338
  grep -v '^ *+' conftest.er1 >conftest.err
 
18339
  rm -f conftest.er1
 
18340
  cat conftest.err >&5
 
18341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18342
  (exit $ac_status); } && {
 
18343
         test -z "$ac_c_werror_flag" ||
 
18344
         test ! -s conftest.err
 
18345
       } && test -s conftest$ac_exeext &&
 
18346
       $as_test_x conftest$ac_exeext; then
 
18347
  eval "$as_ac_var=yes"
 
18348
else
 
18349
  echo "$as_me: failed program was:" >&5
 
18350
sed 's/^/| /' conftest.$ac_ext >&5
 
18351
 
 
18352
        eval "$as_ac_var=no"
 
18353
fi
 
18354
 
 
18355
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18356
      conftest$ac_exeext conftest.$ac_ext
 
18357
fi
 
18358
ac_res=`eval echo '${'$as_ac_var'}'`
 
18359
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18360
echo "${ECHO_T}$ac_res" >&6; }
 
18361
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18362
  cat >>confdefs.h <<_ACEOF
 
18363
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18364
_ACEOF
 
18365
 
 
18366
fi
 
18367
done
 
18368
 
 
18369
 
 
18370
 
 
18371
 
 
18372
 
 
18373
 
 
18374
 
 
18375
 
 
18376
for ac_func in memrchr isascii timegm getrusage setrlimit stat setlocale
 
18377
do
 
18378
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18379
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18380
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18381
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18383
else
 
18384
  cat >conftest.$ac_ext <<_ACEOF
 
18385
/* confdefs.h.  */
 
18386
_ACEOF
 
18387
cat confdefs.h >>conftest.$ac_ext
 
18388
cat >>conftest.$ac_ext <<_ACEOF
 
18389
/* end confdefs.h.  */
 
18390
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18391
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18392
#define $ac_func innocuous_$ac_func
 
18393
 
 
18394
/* System header to define __stub macros and hopefully few prototypes,
 
18395
    which can conflict with char $ac_func (); below.
 
18396
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18397
    <limits.h> exists even on freestanding compilers.  */
 
18398
 
 
18399
#ifdef __STDC__
 
18400
# include <limits.h>
 
18401
#else
 
18402
# include <assert.h>
 
18403
#endif
 
18404
 
 
18405
#undef $ac_func
 
18406
 
 
18407
/* Override any GCC internal prototype to avoid an error.
 
18408
   Use char because int might match the return type of a GCC
 
18409
   builtin and then its argument prototype would still apply.  */
 
18410
#ifdef __cplusplus
 
18411
extern "C"
 
18412
#endif
 
18413
char $ac_func ();
 
18414
/* The GNU C library defines this for functions which it implements
 
18415
    to always fail with ENOSYS.  Some functions are actually named
 
18416
    something starting with __ and the normal name is an alias.  */
 
18417
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18418
choke me
 
18419
#endif
 
18420
 
 
18421
int
 
18422
main ()
 
18423
{
 
18424
return $ac_func ();
 
18425
  ;
 
18426
  return 0;
 
18427
}
 
18428
_ACEOF
 
18429
rm -f conftest.$ac_objext conftest$ac_exeext
 
18430
if { (ac_try="$ac_link"
 
18431
case "(($ac_try" in
 
18432
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18433
  *) ac_try_echo=$ac_try;;
 
18434
esac
 
18435
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18436
  (eval "$ac_link") 2>conftest.er1
 
18437
  ac_status=$?
 
18438
  grep -v '^ *+' conftest.er1 >conftest.err
 
18439
  rm -f conftest.er1
 
18440
  cat conftest.err >&5
 
18441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18442
  (exit $ac_status); } && {
 
18443
         test -z "$ac_c_werror_flag" ||
 
18444
         test ! -s conftest.err
 
18445
       } && test -s conftest$ac_exeext &&
 
18446
       $as_test_x conftest$ac_exeext; then
 
18447
  eval "$as_ac_var=yes"
 
18448
else
 
18449
  echo "$as_me: failed program was:" >&5
 
18450
sed 's/^/| /' conftest.$ac_ext >&5
 
18451
 
 
18452
        eval "$as_ac_var=no"
 
18453
fi
 
18454
 
 
18455
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18456
      conftest$ac_exeext conftest.$ac_ext
 
18457
fi
 
18458
ac_res=`eval echo '${'$as_ac_var'}'`
 
18459
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18460
echo "${ECHO_T}$ac_res" >&6; }
 
18461
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18462
  cat >>confdefs.h <<_ACEOF
 
18463
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18464
_ACEOF
 
18465
 
 
18466
fi
 
18467
done
 
18468
 
 
18469
 
 
18470
 
 
18471
 
 
18472
 
 
18473
for ac_func in flockfile funlockfile fopencookie funopen
 
18474
do
 
18475
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18476
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18477
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18478
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18479
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18480
else
 
18481
  cat >conftest.$ac_ext <<_ACEOF
 
18482
/* confdefs.h.  */
 
18483
_ACEOF
 
18484
cat confdefs.h >>conftest.$ac_ext
 
18485
cat >>conftest.$ac_ext <<_ACEOF
 
18486
/* end confdefs.h.  */
 
18487
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18488
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18489
#define $ac_func innocuous_$ac_func
 
18490
 
 
18491
/* System header to define __stub macros and hopefully few prototypes,
 
18492
    which can conflict with char $ac_func (); below.
 
18493
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18494
    <limits.h> exists even on freestanding compilers.  */
 
18495
 
 
18496
#ifdef __STDC__
 
18497
# include <limits.h>
 
18498
#else
 
18499
# include <assert.h>
 
18500
#endif
 
18501
 
 
18502
#undef $ac_func
 
18503
 
 
18504
/* Override any GCC internal prototype to avoid an error.
 
18505
   Use char because int might match the return type of a GCC
 
18506
   builtin and then its argument prototype would still apply.  */
 
18507
#ifdef __cplusplus
 
18508
extern "C"
 
18509
#endif
 
18510
char $ac_func ();
 
18511
/* The GNU C library defines this for functions which it implements
 
18512
    to always fail with ENOSYS.  Some functions are actually named
 
18513
    something starting with __ and the normal name is an alias.  */
 
18514
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18515
choke me
 
18516
#endif
 
18517
 
 
18518
int
 
18519
main ()
 
18520
{
 
18521
return $ac_func ();
 
18522
  ;
 
18523
  return 0;
 
18524
}
 
18525
_ACEOF
 
18526
rm -f conftest.$ac_objext conftest$ac_exeext
 
18527
if { (ac_try="$ac_link"
 
18528
case "(($ac_try" in
 
18529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18530
  *) ac_try_echo=$ac_try;;
 
18531
esac
 
18532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18533
  (eval "$ac_link") 2>conftest.er1
 
18534
  ac_status=$?
 
18535
  grep -v '^ *+' conftest.er1 >conftest.err
 
18536
  rm -f conftest.er1
 
18537
  cat conftest.err >&5
 
18538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18539
  (exit $ac_status); } && {
 
18540
         test -z "$ac_c_werror_flag" ||
 
18541
         test ! -s conftest.err
 
18542
       } && test -s conftest$ac_exeext &&
 
18543
       $as_test_x conftest$ac_exeext; then
 
18544
  eval "$as_ac_var=yes"
 
18545
else
 
18546
  echo "$as_me: failed program was:" >&5
 
18547
sed 's/^/| /' conftest.$ac_ext >&5
 
18548
 
 
18549
        eval "$as_ac_var=no"
 
18550
fi
 
18551
 
 
18552
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18553
      conftest$ac_exeext conftest.$ac_ext
 
18554
fi
 
18555
ac_res=`eval echo '${'$as_ac_var'}'`
 
18556
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18557
echo "${ECHO_T}$ac_res" >&6; }
 
18558
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18559
  cat >>confdefs.h <<_ACEOF
 
18560
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18561
_ACEOF
 
18562
 
 
18563
fi
 
18564
done
 
18565
 
 
18566
 
 
18567
#
19281
18568
# gnulib checks
19282
 
 
19283
 
 
 
18569
#
 
18570
 
 
18571
 
 
18572
 
 
18573
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
18574
# for constant arguments.  Useless!
 
18575
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
18576
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
 
18577
if test "${ac_cv_working_alloca_h+set}" = set; then
 
18578
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18579
else
 
18580
  cat >conftest.$ac_ext <<_ACEOF
 
18581
/* confdefs.h.  */
 
18582
_ACEOF
 
18583
cat confdefs.h >>conftest.$ac_ext
 
18584
cat >>conftest.$ac_ext <<_ACEOF
 
18585
/* end confdefs.h.  */
 
18586
#include <alloca.h>
 
18587
int
 
18588
main ()
 
18589
{
 
18590
char *p = (char *) alloca (2 * sizeof (int));
 
18591
                          if (p) return 0;
 
18592
  ;
 
18593
  return 0;
 
18594
}
 
18595
_ACEOF
 
18596
rm -f conftest.$ac_objext conftest$ac_exeext
 
18597
if { (ac_try="$ac_link"
 
18598
case "(($ac_try" in
 
18599
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18600
  *) ac_try_echo=$ac_try;;
 
18601
esac
 
18602
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18603
  (eval "$ac_link") 2>conftest.er1
 
18604
  ac_status=$?
 
18605
  grep -v '^ *+' conftest.er1 >conftest.err
 
18606
  rm -f conftest.er1
 
18607
  cat conftest.err >&5
 
18608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18609
  (exit $ac_status); } && {
 
18610
         test -z "$ac_c_werror_flag" ||
 
18611
         test ! -s conftest.err
 
18612
       } && test -s conftest$ac_exeext &&
 
18613
       $as_test_x conftest$ac_exeext; then
 
18614
  ac_cv_working_alloca_h=yes
 
18615
else
 
18616
  echo "$as_me: failed program was:" >&5
 
18617
sed 's/^/| /' conftest.$ac_ext >&5
 
18618
 
 
18619
        ac_cv_working_alloca_h=no
 
18620
fi
 
18621
 
 
18622
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18623
      conftest$ac_exeext conftest.$ac_ext
 
18624
fi
 
18625
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
18626
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
 
18627
if test $ac_cv_working_alloca_h = yes; then
 
18628
 
 
18629
cat >>confdefs.h <<\_ACEOF
 
18630
#define HAVE_ALLOCA_H 1
 
18631
_ACEOF
 
18632
 
 
18633
fi
 
18634
 
 
18635
{ echo "$as_me:$LINENO: checking for alloca" >&5
 
18636
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
 
18637
if test "${ac_cv_func_alloca_works+set}" = set; then
 
18638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18639
else
 
18640
  cat >conftest.$ac_ext <<_ACEOF
 
18641
/* confdefs.h.  */
 
18642
_ACEOF
 
18643
cat confdefs.h >>conftest.$ac_ext
 
18644
cat >>conftest.$ac_ext <<_ACEOF
 
18645
/* end confdefs.h.  */
 
18646
#ifdef __GNUC__
 
18647
# define alloca __builtin_alloca
 
18648
#else
 
18649
# ifdef _MSC_VER
 
18650
#  include <malloc.h>
 
18651
#  define alloca _alloca
 
18652
# else
 
18653
#  ifdef HAVE_ALLOCA_H
 
18654
#   include <alloca.h>
 
18655
#  else
 
18656
#   ifdef _AIX
 
18657
 #pragma alloca
 
18658
#   else
 
18659
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
18660
char *alloca ();
 
18661
#    endif
 
18662
#   endif
 
18663
#  endif
 
18664
# endif
 
18665
#endif
 
18666
 
 
18667
int
 
18668
main ()
 
18669
{
 
18670
char *p = (char *) alloca (1);
 
18671
                                    if (p) return 0;
 
18672
  ;
 
18673
  return 0;
 
18674
}
 
18675
_ACEOF
 
18676
rm -f conftest.$ac_objext conftest$ac_exeext
 
18677
if { (ac_try="$ac_link"
 
18678
case "(($ac_try" in
 
18679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18680
  *) ac_try_echo=$ac_try;;
 
18681
esac
 
18682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18683
  (eval "$ac_link") 2>conftest.er1
 
18684
  ac_status=$?
 
18685
  grep -v '^ *+' conftest.er1 >conftest.err
 
18686
  rm -f conftest.er1
 
18687
  cat conftest.err >&5
 
18688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18689
  (exit $ac_status); } && {
 
18690
         test -z "$ac_c_werror_flag" ||
 
18691
         test ! -s conftest.err
 
18692
       } && test -s conftest$ac_exeext &&
 
18693
       $as_test_x conftest$ac_exeext; then
 
18694
  ac_cv_func_alloca_works=yes
 
18695
else
 
18696
  echo "$as_me: failed program was:" >&5
 
18697
sed 's/^/| /' conftest.$ac_ext >&5
 
18698
 
 
18699
        ac_cv_func_alloca_works=no
 
18700
fi
 
18701
 
 
18702
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18703
      conftest$ac_exeext conftest.$ac_ext
 
18704
fi
 
18705
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
18706
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
 
18707
 
 
18708
if test $ac_cv_func_alloca_works = yes; then
 
18709
 
 
18710
cat >>confdefs.h <<\_ACEOF
 
18711
#define HAVE_ALLOCA 1
 
18712
_ACEOF
 
18713
 
 
18714
else
 
18715
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
18716
# that cause trouble.  Some versions do not even contain alloca or
 
18717
# contain a buggy version.  If you still want to use their alloca,
 
18718
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
18719
 
 
18720
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
18721
 
 
18722
cat >>confdefs.h <<\_ACEOF
 
18723
#define C_ALLOCA 1
 
18724
_ACEOF
 
18725
 
 
18726
 
 
18727
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
18728
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
 
18729
if test "${ac_cv_os_cray+set}" = set; then
 
18730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18731
else
 
18732
  cat >conftest.$ac_ext <<_ACEOF
 
18733
/* confdefs.h.  */
 
18734
_ACEOF
 
18735
cat confdefs.h >>conftest.$ac_ext
 
18736
cat >>conftest.$ac_ext <<_ACEOF
 
18737
/* end confdefs.h.  */
 
18738
#if defined CRAY && ! defined CRAY2
 
18739
webecray
 
18740
#else
 
18741
wenotbecray
 
18742
#endif
 
18743
 
 
18744
_ACEOF
 
18745
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
18746
  $EGREP "webecray" >/dev/null 2>&1; then
 
18747
  ac_cv_os_cray=yes
 
18748
else
 
18749
  ac_cv_os_cray=no
 
18750
fi
 
18751
rm -f conftest*
 
18752
 
 
18753
fi
 
18754
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
18755
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
 
18756
if test $ac_cv_os_cray = yes; then
 
18757
  for ac_func in _getb67 GETB67 getb67; do
 
18758
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18759
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18760
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18761
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18763
else
 
18764
  cat >conftest.$ac_ext <<_ACEOF
 
18765
/* confdefs.h.  */
 
18766
_ACEOF
 
18767
cat confdefs.h >>conftest.$ac_ext
 
18768
cat >>conftest.$ac_ext <<_ACEOF
 
18769
/* end confdefs.h.  */
 
18770
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18771
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18772
#define $ac_func innocuous_$ac_func
 
18773
 
 
18774
/* System header to define __stub macros and hopefully few prototypes,
 
18775
    which can conflict with char $ac_func (); below.
 
18776
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18777
    <limits.h> exists even on freestanding compilers.  */
 
18778
 
 
18779
#ifdef __STDC__
 
18780
# include <limits.h>
 
18781
#else
 
18782
# include <assert.h>
 
18783
#endif
 
18784
 
 
18785
#undef $ac_func
 
18786
 
 
18787
/* Override any GCC internal prototype to avoid an error.
 
18788
   Use char because int might match the return type of a GCC
 
18789
   builtin and then its argument prototype would still apply.  */
 
18790
#ifdef __cplusplus
 
18791
extern "C"
 
18792
#endif
 
18793
char $ac_func ();
 
18794
/* The GNU C library defines this for functions which it implements
 
18795
    to always fail with ENOSYS.  Some functions are actually named
 
18796
    something starting with __ and the normal name is an alias.  */
 
18797
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18798
choke me
 
18799
#endif
 
18800
 
 
18801
int
 
18802
main ()
 
18803
{
 
18804
return $ac_func ();
 
18805
  ;
 
18806
  return 0;
 
18807
}
 
18808
_ACEOF
 
18809
rm -f conftest.$ac_objext conftest$ac_exeext
 
18810
if { (ac_try="$ac_link"
 
18811
case "(($ac_try" in
 
18812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18813
  *) ac_try_echo=$ac_try;;
 
18814
esac
 
18815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18816
  (eval "$ac_link") 2>conftest.er1
 
18817
  ac_status=$?
 
18818
  grep -v '^ *+' conftest.er1 >conftest.err
 
18819
  rm -f conftest.er1
 
18820
  cat conftest.err >&5
 
18821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18822
  (exit $ac_status); } && {
 
18823
         test -z "$ac_c_werror_flag" ||
 
18824
         test ! -s conftest.err
 
18825
       } && test -s conftest$ac_exeext &&
 
18826
       $as_test_x conftest$ac_exeext; then
 
18827
  eval "$as_ac_var=yes"
 
18828
else
 
18829
  echo "$as_me: failed program was:" >&5
 
18830
sed 's/^/| /' conftest.$ac_ext >&5
 
18831
 
 
18832
        eval "$as_ac_var=no"
 
18833
fi
 
18834
 
 
18835
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18836
      conftest$ac_exeext conftest.$ac_ext
 
18837
fi
 
18838
ac_res=`eval echo '${'$as_ac_var'}'`
 
18839
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18840
echo "${ECHO_T}$ac_res" >&6; }
 
18841
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18842
 
 
18843
cat >>confdefs.h <<_ACEOF
 
18844
#define CRAY_STACKSEG_END $ac_func
 
18845
_ACEOF
 
18846
 
 
18847
    break
 
18848
fi
 
18849
 
 
18850
  done
 
18851
fi
 
18852
 
 
18853
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
18854
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
 
18855
if test "${ac_cv_c_stack_direction+set}" = set; then
 
18856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18857
else
 
18858
  if test "$cross_compiling" = yes; then
 
18859
  ac_cv_c_stack_direction=0
 
18860
else
 
18861
  cat >conftest.$ac_ext <<_ACEOF
 
18862
/* confdefs.h.  */
 
18863
_ACEOF
 
18864
cat confdefs.h >>conftest.$ac_ext
 
18865
cat >>conftest.$ac_ext <<_ACEOF
 
18866
/* end confdefs.h.  */
 
18867
$ac_includes_default
 
18868
int
 
18869
find_stack_direction ()
 
18870
{
 
18871
  static char *addr = 0;
 
18872
  auto char dummy;
 
18873
  if (addr == 0)
 
18874
    {
 
18875
      addr = &dummy;
 
18876
      return find_stack_direction ();
 
18877
    }
 
18878
  else
 
18879
    return (&dummy > addr) ? 1 : -1;
 
18880
}
 
18881
 
 
18882
int
 
18883
main ()
 
18884
{
 
18885
  return find_stack_direction () < 0;
 
18886
}
 
18887
_ACEOF
 
18888
rm -f conftest$ac_exeext
 
18889
if { (ac_try="$ac_link"
 
18890
case "(($ac_try" in
 
18891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18892
  *) ac_try_echo=$ac_try;;
 
18893
esac
 
18894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18895
  (eval "$ac_link") 2>&5
 
18896
  ac_status=$?
 
18897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18898
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18899
  { (case "(($ac_try" in
 
18900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18901
  *) ac_try_echo=$ac_try;;
 
18902
esac
 
18903
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18904
  (eval "$ac_try") 2>&5
 
18905
  ac_status=$?
 
18906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18907
  (exit $ac_status); }; }; then
 
18908
  ac_cv_c_stack_direction=1
 
18909
else
 
18910
  echo "$as_me: program exited with status $ac_status" >&5
 
18911
echo "$as_me: failed program was:" >&5
 
18912
sed 's/^/| /' conftest.$ac_ext >&5
 
18913
 
 
18914
( exit $ac_status )
 
18915
ac_cv_c_stack_direction=-1
 
18916
fi
 
18917
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18918
fi
 
18919
 
 
18920
 
 
18921
fi
 
18922
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
18923
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
 
18924
 
 
18925
cat >>confdefs.h <<_ACEOF
 
18926
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
18927
_ACEOF
 
18928
 
 
18929
 
 
18930
fi
19284
18931
 
19285
18932
 
19286
18933
 
19287
18934
for ac_header in stdlib.h
19288
18935
do
19289
18936
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19290
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19291
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
19292
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19293
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18937
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18938
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18939
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
18940
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19294
18941
  echo $ECHO_N "(cached) $ECHO_C" >&6
19295
18942
fi
19296
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19297
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18943
ac_res=`eval echo '${'$as_ac_Header'}'`
 
18944
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18945
echo "${ECHO_T}$ac_res" >&6; }
19298
18946
else
19299
18947
  # Is the header compilable?
19300
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19301
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
18948
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18949
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19302
18950
cat >conftest.$ac_ext <<_ACEOF
19303
18951
/* confdefs.h.  */
19304
18952
_ACEOF
19309
18957
#include <$ac_header>
19310
18958
_ACEOF
19311
18959
rm -f conftest.$ac_objext
19312
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313
 
  (eval $ac_compile) 2>conftest.er1
 
18960
if { (ac_try="$ac_compile"
 
18961
case "(($ac_try" in
 
18962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18963
  *) ac_try_echo=$ac_try;;
 
18964
esac
 
18965
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18966
  (eval "$ac_compile") 2>conftest.er1
19314
18967
  ac_status=$?
19315
18968
  grep -v '^ *+' conftest.er1 >conftest.err
19316
18969
  rm -f conftest.er1
19317
18970
  cat conftest.err >&5
19318
18971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319
 
  (exit $ac_status); } &&
19320
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19321
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322
 
  (eval $ac_try) 2>&5
19323
 
  ac_status=$?
19324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325
 
  (exit $ac_status); }; } &&
19326
 
         { ac_try='test -s conftest.$ac_objext'
19327
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328
 
  (eval $ac_try) 2>&5
19329
 
  ac_status=$?
19330
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331
 
  (exit $ac_status); }; }; then
 
18972
  (exit $ac_status); } && {
 
18973
         test -z "$ac_c_werror_flag" ||
 
18974
         test ! -s conftest.err
 
18975
       } && test -s conftest.$ac_objext; then
19332
18976
  ac_header_compiler=yes
19333
18977
else
19334
18978
  echo "$as_me: failed program was:" >&5
19335
18979
sed 's/^/| /' conftest.$ac_ext >&5
19336
18980
 
19337
 
ac_header_compiler=no
 
18981
        ac_header_compiler=no
19338
18982
fi
19339
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19341
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
18983
 
 
18984
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18985
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18986
echo "${ECHO_T}$ac_header_compiler" >&6; }
19342
18987
 
19343
18988
# Is the header present?
19344
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19345
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
18989
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18990
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19346
18991
cat >conftest.$ac_ext <<_ACEOF
19347
18992
/* confdefs.h.  */
19348
18993
_ACEOF
19351
18996
/* end confdefs.h.  */
19352
18997
#include <$ac_header>
19353
18998
_ACEOF
19354
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19355
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
18999
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19000
case "(($ac_try" in
 
19001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19002
  *) ac_try_echo=$ac_try;;
 
19003
esac
 
19004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19005
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19356
19006
  ac_status=$?
19357
19007
  grep -v '^ *+' conftest.er1 >conftest.err
19358
19008
  rm -f conftest.er1
19359
19009
  cat conftest.err >&5
19360
19010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361
 
  (exit $ac_status); } >/dev/null; then
19362
 
  if test -s conftest.err; then
19363
 
    ac_cpp_err=$ac_c_preproc_warn_flag
19364
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19365
 
  else
19366
 
    ac_cpp_err=
19367
 
  fi
19368
 
else
19369
 
  ac_cpp_err=yes
19370
 
fi
19371
 
if test -z "$ac_cpp_err"; then
 
19011
  (exit $ac_status); } >/dev/null && {
 
19012
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19013
         test ! -s conftest.err
 
19014
       }; then
19372
19015
  ac_header_preproc=yes
19373
19016
else
19374
19017
  echo "$as_me: failed program was:" >&5
19376
19019
 
19377
19020
  ac_header_preproc=no
19378
19021
fi
 
19022
 
19379
19023
rm -f conftest.err conftest.$ac_ext
19380
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19381
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
19024
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19025
echo "${ECHO_T}$ac_header_preproc" >&6; }
19382
19026
 
19383
19027
# So?  What about this header?
19384
19028
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19402
19046
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19403
19047
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19404
19048
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19405
 
    (
19406
 
      cat <<\_ASBOX
19407
 
## ------------------------------------ ##
19408
 
## Report this to gnupg-devel@gnupg.org ##
19409
 
## ------------------------------------ ##
 
19049
    ( cat <<\_ASBOX
 
19050
## ---------------------------------- ##
 
19051
## Report this to bug-gnupg@gnupg.org ##
 
19052
## ---------------------------------- ##
19410
19053
_ASBOX
19411
 
    ) |
19412
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
19054
     ) | sed "s/^/$as_me: WARNING:     /" >&2
19413
19055
    ;;
19414
19056
esac
19415
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
19416
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19417
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19057
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19058
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19059
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19418
19060
  echo $ECHO_N "(cached) $ECHO_C" >&6
19419
19061
else
19420
19062
  eval "$as_ac_Header=\$ac_header_preproc"
19421
19063
fi
19422
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19423
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19064
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19065
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19066
echo "${ECHO_T}$ac_res" >&6; }
19424
19067
 
19425
19068
fi
19426
19069
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19432
19075
 
19433
19076
done
19434
19077
 
19435
 
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19436
 
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
19078
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
19079
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
19437
19080
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19438
19081
  echo $ECHO_N "(cached) $ECHO_C" >&6
19439
19082
else
19446
19089
cat confdefs.h >>conftest.$ac_ext
19447
19090
cat >>conftest.$ac_ext <<_ACEOF
19448
19091
/* end confdefs.h.  */
19449
 
#if STDC_HEADERS || HAVE_STDLIB_H
 
19092
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
19450
19093
# include <stdlib.h>
19451
19094
#else
19452
19095
char *malloc ();
19455
19098
int
19456
19099
main ()
19457
19100
{
19458
 
exit (malloc (0) ? 0 : 1);
 
19101
return ! malloc (0);
19459
19102
  ;
19460
19103
  return 0;
19461
19104
}
19462
19105
_ACEOF
19463
19106
rm -f conftest$ac_exeext
19464
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19465
 
  (eval $ac_link) 2>&5
 
19107
if { (ac_try="$ac_link"
 
19108
case "(($ac_try" in
 
19109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19110
  *) ac_try_echo=$ac_try;;
 
19111
esac
 
19112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19113
  (eval "$ac_link") 2>&5
19466
19114
  ac_status=$?
19467
19115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468
19116
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19469
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470
 
  (eval $ac_try) 2>&5
 
19117
  { (case "(($ac_try" in
 
19118
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19119
  *) ac_try_echo=$ac_try;;
 
19120
esac
 
19121
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19122
  (eval "$ac_try") 2>&5
19471
19123
  ac_status=$?
19472
19124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473
19125
  (exit $ac_status); }; }; then
19480
19132
( exit $ac_status )
19481
19133
ac_cv_func_malloc_0_nonnull=no
19482
19134
fi
19483
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19484
 
fi
19485
 
fi
19486
 
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19487
 
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
19135
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19136
fi
 
19137
 
 
19138
 
 
19139
fi
 
19140
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
19141
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
19488
19142
if test $ac_cv_func_malloc_0_nonnull = yes; then
19489
19143
  gl_cv_func_malloc_0_nonnull=1
19490
19144
else
19499
19153
 
19500
19154
 
19501
19155
 
19502
 
  echo "$as_me:$LINENO: checking for long long" >&5
19503
 
echo $ECHO_N "checking for long long... $ECHO_C" >&6
19504
 
if test "${ac_cv_type_long_long+set}" = set; then
 
19156
  { echo "$as_me:$LINENO: checking for long long int" >&5
 
19157
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
 
19158
if test "${ac_cv_type_long_long_int+set}" = set; then
19505
19159
  echo $ECHO_N "(cached) $ECHO_C" >&6
19506
19160
else
19507
19161
  cat >conftest.$ac_ext <<_ACEOF
19508
 
/* confdefs.h.  */
 
19162
 
 
19163
  /* confdefs.h.  */
19509
19164
_ACEOF
19510
19165
cat confdefs.h >>conftest.$ac_ext
19511
19166
cat >>conftest.$ac_ext <<_ACEOF
19512
19167
/* end confdefs.h.  */
19513
 
long long ll = 1LL; int i = 63;
 
19168
/* Test preprocessor.  */
 
19169
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
19170
        error in preprocessor;
 
19171
      #endif
 
19172
      #if ! (18446744073709551615ULL <= -1ull)
 
19173
        error in preprocessor;
 
19174
      #endif
 
19175
      /* Test literals.  */
 
19176
      long long int ll = 9223372036854775807ll;
 
19177
      long long int nll = -9223372036854775807LL;
 
19178
      unsigned long long int ull = 18446744073709551615ULL;
 
19179
      /* Test constant expressions.   */
 
19180
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
19181
                     ? 1 : -1)];
 
19182
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
19183
                     ? 1 : -1)];
 
19184
      int i = 63;
19514
19185
int
19515
19186
main ()
19516
19187
{
19517
 
long long llmax = (long long) -1;
19518
 
     return ll << i | ll >> i | llmax / ll | llmax % ll;
 
19188
/* Test availability of runtime routines for shift and division.  */
 
19189
      long long int llmax = 9223372036854775807ll;
 
19190
      unsigned long long int ullmax = 18446744073709551615ull;
 
19191
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
19192
              | (llmax / ll) | (llmax % ll)
 
19193
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
19194
              | (ullmax / ull) | (ullmax % ull));
19519
19195
  ;
19520
19196
  return 0;
19521
19197
}
 
19198
 
19522
19199
_ACEOF
19523
19200
rm -f conftest.$ac_objext conftest$ac_exeext
19524
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19525
 
  (eval $ac_link) 2>conftest.er1
 
19201
if { (ac_try="$ac_link"
 
19202
case "(($ac_try" in
 
19203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19204
  *) ac_try_echo=$ac_try;;
 
19205
esac
 
19206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19207
  (eval "$ac_link") 2>conftest.er1
19526
19208
  ac_status=$?
19527
19209
  grep -v '^ *+' conftest.er1 >conftest.err
19528
19210
  rm -f conftest.er1
19529
19211
  cat conftest.err >&5
19530
19212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531
 
  (exit $ac_status); } &&
19532
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19533
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534
 
  (eval $ac_try) 2>&5
 
19213
  (exit $ac_status); } && {
 
19214
         test -z "$ac_c_werror_flag" ||
 
19215
         test ! -s conftest.err
 
19216
       } && test -s conftest$ac_exeext &&
 
19217
       $as_test_x conftest$ac_exeext; then
 
19218
                        if test "$cross_compiling" = yes; then
 
19219
  ac_cv_type_long_long_int=yes
 
19220
else
 
19221
  cat >conftest.$ac_ext <<_ACEOF
 
19222
/* confdefs.h.  */
 
19223
_ACEOF
 
19224
cat confdefs.h >>conftest.$ac_ext
 
19225
cat >>conftest.$ac_ext <<_ACEOF
 
19226
/* end confdefs.h.  */
 
19227
#include <limits.h>
 
19228
               #ifndef LLONG_MAX
 
19229
               # define HALF \
 
19230
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
19231
               # define LLONG_MAX (HALF - 1 + HALF)
 
19232
               #endif
 
19233
int
 
19234
main ()
 
19235
{
 
19236
long long int n = 1;
 
19237
               int i;
 
19238
               for (i = 0; ; i++)
 
19239
                 {
 
19240
                   long long int m = n << i;
 
19241
                   if (m >> i != n)
 
19242
                     return 1;
 
19243
                   if (LLONG_MAX / 2 < m)
 
19244
                     break;
 
19245
                 }
 
19246
               return 0;
 
19247
  ;
 
19248
  return 0;
 
19249
}
 
19250
_ACEOF
 
19251
rm -f conftest$ac_exeext
 
19252
if { (ac_try="$ac_link"
 
19253
case "(($ac_try" in
 
19254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19255
  *) ac_try_echo=$ac_try;;
 
19256
esac
 
19257
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19258
  (eval "$ac_link") 2>&5
19535
19259
  ac_status=$?
19536
19260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537
 
  (exit $ac_status); }; } &&
19538
 
         { ac_try='test -s conftest$ac_exeext'
19539
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540
 
  (eval $ac_try) 2>&5
 
19261
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19262
  { (case "(($ac_try" in
 
19263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19264
  *) ac_try_echo=$ac_try;;
 
19265
esac
 
19266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19267
  (eval "$ac_try") 2>&5
19541
19268
  ac_status=$?
19542
19269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543
19270
  (exit $ac_status); }; }; then
19544
 
  ac_cv_type_long_long=yes
 
19271
  ac_cv_type_long_long_int=yes
 
19272
else
 
19273
  echo "$as_me: program exited with status $ac_status" >&5
 
19274
echo "$as_me: failed program was:" >&5
 
19275
sed 's/^/| /' conftest.$ac_ext >&5
 
19276
 
 
19277
( exit $ac_status )
 
19278
ac_cv_type_long_long_int=no
 
19279
fi
 
19280
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19281
fi
 
19282
 
 
19283
 
19545
19284
else
19546
19285
  echo "$as_me: failed program was:" >&5
19547
19286
sed 's/^/| /' conftest.$ac_ext >&5
19548
19287
 
19549
 
ac_cv_type_long_long=no
 
19288
        ac_cv_type_long_long_int=no
19550
19289
fi
19551
 
rm -f conftest.err conftest.$ac_objext \
 
19290
 
 
19291
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19552
19292
      conftest$ac_exeext conftest.$ac_ext
19553
19293
fi
19554
 
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19555
 
echo "${ECHO_T}$ac_cv_type_long_long" >&6
19556
 
  if test $ac_cv_type_long_long = yes; then
19557
 
 
19558
 
cat >>confdefs.h <<\_ACEOF
19559
 
#define HAVE_LONG_LONG 1
19560
 
_ACEOF
19561
 
 
19562
 
  fi
19563
 
 
19564
 
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19565
 
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
 
19294
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
 
19295
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
 
19296
  if test $ac_cv_type_long_long_int = yes; then
 
19297
 
 
19298
cat >>confdefs.h <<\_ACEOF
 
19299
#define HAVE_LONG_LONG_INT 1
 
19300
_ACEOF
 
19301
 
 
19302
  fi
 
19303
 
 
19304
 
 
19305
  { echo "$as_me:$LINENO: checking for long double" >&5
 
19306
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
 
19307
if test "${gt_cv_c_long_double+set}" = set; then
 
19308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19309
else
 
19310
  if test "$GCC" = yes; then
 
19311
       gt_cv_c_long_double=yes
 
19312
     else
 
19313
       cat >conftest.$ac_ext <<_ACEOF
 
19314
/* confdefs.h.  */
 
19315
_ACEOF
 
19316
cat confdefs.h >>conftest.$ac_ext
 
19317
cat >>conftest.$ac_ext <<_ACEOF
 
19318
/* end confdefs.h.  */
 
19319
 
 
19320
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
 
19321
         long double foo = 0.0;
 
19322
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
 
19323
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
 
19324
 
 
19325
int
 
19326
main ()
 
19327
{
 
19328
 
 
19329
  ;
 
19330
  return 0;
 
19331
}
 
19332
_ACEOF
 
19333
rm -f conftest.$ac_objext
 
19334
if { (ac_try="$ac_compile"
 
19335
case "(($ac_try" in
 
19336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19337
  *) ac_try_echo=$ac_try;;
 
19338
esac
 
19339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19340
  (eval "$ac_compile") 2>conftest.er1
 
19341
  ac_status=$?
 
19342
  grep -v '^ *+' conftest.er1 >conftest.err
 
19343
  rm -f conftest.er1
 
19344
  cat conftest.err >&5
 
19345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19346
  (exit $ac_status); } && {
 
19347
         test -z "$ac_c_werror_flag" ||
 
19348
         test ! -s conftest.err
 
19349
       } && test -s conftest.$ac_objext; then
 
19350
  gt_cv_c_long_double=yes
 
19351
else
 
19352
  echo "$as_me: failed program was:" >&5
 
19353
sed 's/^/| /' conftest.$ac_ext >&5
 
19354
 
 
19355
        gt_cv_c_long_double=no
 
19356
fi
 
19357
 
 
19358
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19359
     fi
 
19360
fi
 
19361
{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
 
19362
echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
 
19363
  if test $gt_cv_c_long_double = yes; then
 
19364
 
 
19365
cat >>confdefs.h <<\_ACEOF
 
19366
#define HAVE_LONG_DOUBLE 1
 
19367
_ACEOF
 
19368
 
 
19369
  fi
 
19370
 
 
19371
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
 
19372
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
19566
19373
if test "${ac_cv_header_stat_broken+set}" = set; then
19567
19374
  echo $ECHO_N "(cached) $ECHO_C" >&6
19568
19375
else
19575
19382
#include <sys/types.h>
19576
19383
#include <sys/stat.h>
19577
19384
 
19578
 
#if defined(S_ISBLK) && defined(S_IFDIR)
19579
 
# if S_ISBLK (S_IFDIR)
19580
 
You lose.
19581
 
# endif
19582
 
#endif
19583
 
 
19584
 
#if defined(S_ISBLK) && defined(S_IFCHR)
19585
 
# if S_ISBLK (S_IFCHR)
19586
 
You lose.
19587
 
# endif
19588
 
#endif
19589
 
 
19590
 
#if defined(S_ISLNK) && defined(S_IFREG)
19591
 
# if S_ISLNK (S_IFREG)
19592
 
You lose.
19593
 
# endif
19594
 
#endif
19595
 
 
19596
 
#if defined(S_ISSOCK) && defined(S_IFREG)
19597
 
# if S_ISSOCK (S_IFREG)
19598
 
You lose.
19599
 
# endif
 
19385
#if defined S_ISBLK && defined S_IFDIR
 
19386
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
 
19387
#endif
 
19388
 
 
19389
#if defined S_ISBLK && defined S_IFCHR
 
19390
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
 
19391
#endif
 
19392
 
 
19393
#if defined S_ISLNK && defined S_IFREG
 
19394
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
 
19395
#endif
 
19396
 
 
19397
#if defined S_ISSOCK && defined S_IFREG
 
19398
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19600
19399
#endif
19601
19400
 
19602
19401
_ACEOF
19603
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19604
 
  $EGREP "You lose" >/dev/null 2>&1; then
19605
 
  ac_cv_header_stat_broken=yes
19606
 
else
 
19402
rm -f conftest.$ac_objext
 
19403
if { (ac_try="$ac_compile"
 
19404
case "(($ac_try" in
 
19405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19406
  *) ac_try_echo=$ac_try;;
 
19407
esac
 
19408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19409
  (eval "$ac_compile") 2>conftest.er1
 
19410
  ac_status=$?
 
19411
  grep -v '^ *+' conftest.er1 >conftest.err
 
19412
  rm -f conftest.er1
 
19413
  cat conftest.err >&5
 
19414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19415
  (exit $ac_status); } && {
 
19416
         test -z "$ac_c_werror_flag" ||
 
19417
         test ! -s conftest.err
 
19418
       } && test -s conftest.$ac_objext; then
19607
19419
  ac_cv_header_stat_broken=no
19608
 
fi
19609
 
rm -f conftest*
19610
 
 
19611
 
fi
19612
 
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19613
 
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
 
19420
else
 
19421
  echo "$as_me: failed program was:" >&5
 
19422
sed 's/^/| /' conftest.$ac_ext >&5
 
19423
 
 
19424
        ac_cv_header_stat_broken=yes
 
19425
fi
 
19426
 
 
19427
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19428
fi
 
19429
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
 
19430
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
19614
19431
if test $ac_cv_header_stat_broken = yes; then
19615
19432
 
19616
19433
cat >>confdefs.h <<\_ACEOF
19623
19440
 
19624
19441
 
19625
19442
 
19626
 
 
19627
 
for ac_header in $gl_header_list
 
19443
for ac_header in $ac_header_list
19628
19444
do
19629
19445
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19630
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19631
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
19632
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19633
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19446
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19447
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19448
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19449
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19634
19450
  echo $ECHO_N "(cached) $ECHO_C" >&6
19635
19451
fi
19636
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19637
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19452
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19453
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19454
echo "${ECHO_T}$ac_res" >&6; }
19638
19455
else
19639
19456
  # Is the header compilable?
19640
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19641
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
19457
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19458
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19642
19459
cat >conftest.$ac_ext <<_ACEOF
19643
19460
/* confdefs.h.  */
19644
19461
_ACEOF
19649
19466
#include <$ac_header>
19650
19467
_ACEOF
19651
19468
rm -f conftest.$ac_objext
19652
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19653
 
  (eval $ac_compile) 2>conftest.er1
 
19469
if { (ac_try="$ac_compile"
 
19470
case "(($ac_try" in
 
19471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19472
  *) ac_try_echo=$ac_try;;
 
19473
esac
 
19474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19475
  (eval "$ac_compile") 2>conftest.er1
19654
19476
  ac_status=$?
19655
19477
  grep -v '^ *+' conftest.er1 >conftest.err
19656
19478
  rm -f conftest.er1
19657
19479
  cat conftest.err >&5
19658
19480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659
 
  (exit $ac_status); } &&
19660
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19661
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662
 
  (eval $ac_try) 2>&5
19663
 
  ac_status=$?
19664
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665
 
  (exit $ac_status); }; } &&
19666
 
         { ac_try='test -s conftest.$ac_objext'
19667
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668
 
  (eval $ac_try) 2>&5
19669
 
  ac_status=$?
19670
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671
 
  (exit $ac_status); }; }; then
 
19481
  (exit $ac_status); } && {
 
19482
         test -z "$ac_c_werror_flag" ||
 
19483
         test ! -s conftest.err
 
19484
       } && test -s conftest.$ac_objext; then
19672
19485
  ac_header_compiler=yes
19673
19486
else
19674
19487
  echo "$as_me: failed program was:" >&5
19675
19488
sed 's/^/| /' conftest.$ac_ext >&5
19676
19489
 
19677
 
ac_header_compiler=no
 
19490
        ac_header_compiler=no
19678
19491
fi
19679
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19680
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19681
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
19492
 
 
19493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19494
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19495
echo "${ECHO_T}$ac_header_compiler" >&6; }
19682
19496
 
19683
19497
# Is the header present?
19684
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19685
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19498
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19499
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19686
19500
cat >conftest.$ac_ext <<_ACEOF
19687
19501
/* confdefs.h.  */
19688
19502
_ACEOF
19691
19505
/* end confdefs.h.  */
19692
19506
#include <$ac_header>
19693
19507
_ACEOF
19694
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19695
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19508
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19509
case "(($ac_try" in
 
19510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19511
  *) ac_try_echo=$ac_try;;
 
19512
esac
 
19513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19514
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19696
19515
  ac_status=$?
19697
19516
  grep -v '^ *+' conftest.er1 >conftest.err
19698
19517
  rm -f conftest.er1
19699
19518
  cat conftest.err >&5
19700
19519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701
 
  (exit $ac_status); } >/dev/null; then
19702
 
  if test -s conftest.err; then
19703
 
    ac_cpp_err=$ac_c_preproc_warn_flag
19704
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19705
 
  else
19706
 
    ac_cpp_err=
19707
 
  fi
19708
 
else
19709
 
  ac_cpp_err=yes
19710
 
fi
19711
 
if test -z "$ac_cpp_err"; then
 
19520
  (exit $ac_status); } >/dev/null && {
 
19521
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19522
         test ! -s conftest.err
 
19523
       }; then
19712
19524
  ac_header_preproc=yes
19713
19525
else
19714
19526
  echo "$as_me: failed program was:" >&5
19716
19528
 
19717
19529
  ac_header_preproc=no
19718
19530
fi
 
19531
 
19719
19532
rm -f conftest.err conftest.$ac_ext
19720
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19721
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
19533
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19534
echo "${ECHO_T}$ac_header_preproc" >&6; }
19722
19535
 
19723
19536
# So?  What about this header?
19724
19537
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19742
19555
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19743
19556
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19744
19557
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19745
 
    (
19746
 
      cat <<\_ASBOX
19747
 
## ------------------------------------ ##
19748
 
## Report this to gnupg-devel@gnupg.org ##
19749
 
## ------------------------------------ ##
 
19558
    ( cat <<\_ASBOX
 
19559
## ---------------------------------- ##
 
19560
## Report this to bug-gnupg@gnupg.org ##
 
19561
## ---------------------------------- ##
19750
19562
_ASBOX
19751
 
    ) |
19752
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
19563
     ) | sed "s/^/$as_me: WARNING:     /" >&2
19753
19564
    ;;
19754
19565
esac
19755
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
19756
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19757
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19566
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19567
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19568
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19758
19569
  echo $ECHO_N "(cached) $ECHO_C" >&6
19759
19570
else
19760
19571
  eval "$as_ac_Header=\$ac_header_preproc"
19761
19572
fi
19762
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19763
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19573
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19574
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19575
echo "${ECHO_T}$ac_res" >&6; }
19764
19576
 
19765
19577
fi
19766
19578
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19777
19589
 
19778
19590
 
19779
19591
 
19780
 
 
19781
 
 
19782
 
 
19783
 
 
19784
 
 
19785
 
 
19786
 
 
19787
 
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
19788
 
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19789
 
if test "${gl_cv_header_inttypes_h+set}" = set; then
19790
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19791
 
else
19792
 
  cat >conftest.$ac_ext <<_ACEOF
19793
 
/* confdefs.h.  */
19794
 
_ACEOF
19795
 
cat confdefs.h >>conftest.$ac_ext
19796
 
cat >>conftest.$ac_ext <<_ACEOF
19797
 
/* end confdefs.h.  */
19798
 
#include <sys/types.h>
19799
 
#include <inttypes.h>
19800
 
int
19801
 
main ()
19802
 
{
19803
 
uintmax_t i = (uintmax_t) -1;
19804
 
  ;
19805
 
  return 0;
19806
 
}
19807
 
_ACEOF
19808
 
rm -f conftest.$ac_objext
19809
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810
 
  (eval $ac_compile) 2>conftest.er1
19811
 
  ac_status=$?
19812
 
  grep -v '^ *+' conftest.er1 >conftest.err
19813
 
  rm -f conftest.er1
19814
 
  cat conftest.err >&5
19815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816
 
  (exit $ac_status); } &&
19817
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19818
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819
 
  (eval $ac_try) 2>&5
19820
 
  ac_status=$?
19821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822
 
  (exit $ac_status); }; } &&
19823
 
         { ac_try='test -s conftest.$ac_objext'
19824
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825
 
  (eval $ac_try) 2>&5
19826
 
  ac_status=$?
19827
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828
 
  (exit $ac_status); }; }; then
19829
 
  gl_cv_header_inttypes_h=yes
19830
 
else
19831
 
  echo "$as_me: failed program was:" >&5
19832
 
sed 's/^/| /' conftest.$ac_ext >&5
19833
 
 
19834
 
gl_cv_header_inttypes_h=no
19835
 
fi
19836
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19837
 
fi
19838
 
echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19839
 
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
19840
 
  if test $gl_cv_header_inttypes_h = yes; then
19841
 
 
19842
 
cat >>confdefs.h <<_ACEOF
19843
 
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
19844
 
_ACEOF
19845
 
 
19846
 
  fi
19847
 
 
19848
 
 
19849
 
  echo "$as_me:$LINENO: checking for stdint.h" >&5
19850
 
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19851
 
if test "${gl_cv_header_stdint_h+set}" = set; then
19852
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19853
 
else
19854
 
  cat >conftest.$ac_ext <<_ACEOF
19855
 
/* confdefs.h.  */
19856
 
_ACEOF
19857
 
cat confdefs.h >>conftest.$ac_ext
19858
 
cat >>conftest.$ac_ext <<_ACEOF
19859
 
/* end confdefs.h.  */
19860
 
#include <sys/types.h>
19861
 
#include <stdint.h>
19862
 
int
19863
 
main ()
19864
 
{
19865
 
uintmax_t i = (uintmax_t) -1;
19866
 
  ;
19867
 
  return 0;
19868
 
}
19869
 
_ACEOF
19870
 
rm -f conftest.$ac_objext
19871
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872
 
  (eval $ac_compile) 2>conftest.er1
19873
 
  ac_status=$?
19874
 
  grep -v '^ *+' conftest.er1 >conftest.err
19875
 
  rm -f conftest.er1
19876
 
  cat conftest.err >&5
19877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878
 
  (exit $ac_status); } &&
19879
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19880
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881
 
  (eval $ac_try) 2>&5
19882
 
  ac_status=$?
19883
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884
 
  (exit $ac_status); }; } &&
19885
 
         { ac_try='test -s conftest.$ac_objext'
19886
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887
 
  (eval $ac_try) 2>&5
19888
 
  ac_status=$?
19889
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890
 
  (exit $ac_status); }; }; then
19891
 
  gl_cv_header_stdint_h=yes
19892
 
else
19893
 
  echo "$as_me: failed program was:" >&5
19894
 
sed 's/^/| /' conftest.$ac_ext >&5
19895
 
 
19896
 
gl_cv_header_stdint_h=no
19897
 
fi
19898
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19899
 
fi
19900
 
echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19901
 
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
19902
 
  if test $gl_cv_header_stdint_h = yes; then
19903
 
 
19904
 
cat >>confdefs.h <<_ACEOF
19905
 
#define HAVE_STDINT_H_WITH_UINTMAX 1
19906
 
_ACEOF
19907
 
 
19908
 
  fi
19909
 
 
19910
 
 
19911
 
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
19912
 
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
19913
 
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
19914
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19915
 
else
19916
 
  cat >conftest.$ac_ext <<_ACEOF
19917
 
/* confdefs.h.  */
19918
 
_ACEOF
19919
 
cat confdefs.h >>conftest.$ac_ext
19920
 
cat >>conftest.$ac_ext <<_ACEOF
19921
 
/* end confdefs.h.  */
19922
 
unsigned long long ull = 1ULL; int i = 63;
19923
 
int
19924
 
main ()
19925
 
{
19926
 
unsigned long long ullmax = (unsigned long long) -1;
19927
 
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19928
 
  ;
19929
 
  return 0;
19930
 
}
 
19592
  { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
 
19593
echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
 
19594
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
 
19595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19596
else
 
19597
  cat >conftest.$ac_ext <<_ACEOF
 
19598
 
 
19599
  /* confdefs.h.  */
 
19600
_ACEOF
 
19601
cat confdefs.h >>conftest.$ac_ext
 
19602
cat >>conftest.$ac_ext <<_ACEOF
 
19603
/* end confdefs.h.  */
 
19604
/* Test preprocessor.  */
 
19605
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
19606
        error in preprocessor;
 
19607
      #endif
 
19608
      #if ! (18446744073709551615ULL <= -1ull)
 
19609
        error in preprocessor;
 
19610
      #endif
 
19611
      /* Test literals.  */
 
19612
      long long int ll = 9223372036854775807ll;
 
19613
      long long int nll = -9223372036854775807LL;
 
19614
      unsigned long long int ull = 18446744073709551615ULL;
 
19615
      /* Test constant expressions.   */
 
19616
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
19617
                     ? 1 : -1)];
 
19618
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
19619
                     ? 1 : -1)];
 
19620
      int i = 63;
 
19621
int
 
19622
main ()
 
19623
{
 
19624
/* Test availability of runtime routines for shift and division.  */
 
19625
      long long int llmax = 9223372036854775807ll;
 
19626
      unsigned long long int ullmax = 18446744073709551615ull;
 
19627
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
19628
              | (llmax / ll) | (llmax % ll)
 
19629
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
19630
              | (ullmax / ull) | (ullmax % ull));
 
19631
  ;
 
19632
  return 0;
 
19633
}
 
19634
 
19931
19635
_ACEOF
19932
19636
rm -f conftest.$ac_objext conftest$ac_exeext
19933
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934
 
  (eval $ac_link) 2>conftest.er1
 
19637
if { (ac_try="$ac_link"
 
19638
case "(($ac_try" in
 
19639
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19640
  *) ac_try_echo=$ac_try;;
 
19641
esac
 
19642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19643
  (eval "$ac_link") 2>conftest.er1
19935
19644
  ac_status=$?
19936
19645
  grep -v '^ *+' conftest.er1 >conftest.err
19937
19646
  rm -f conftest.er1
19938
19647
  cat conftest.err >&5
19939
19648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940
 
  (exit $ac_status); } &&
19941
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19942
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943
 
  (eval $ac_try) 2>&5
19944
 
  ac_status=$?
19945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946
 
  (exit $ac_status); }; } &&
19947
 
         { ac_try='test -s conftest$ac_exeext'
19948
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949
 
  (eval $ac_try) 2>&5
19950
 
  ac_status=$?
19951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952
 
  (exit $ac_status); }; }; then
19953
 
  ac_cv_type_unsigned_long_long=yes
 
19649
  (exit $ac_status); } && {
 
19650
         test -z "$ac_c_werror_flag" ||
 
19651
         test ! -s conftest.err
 
19652
       } && test -s conftest$ac_exeext &&
 
19653
       $as_test_x conftest$ac_exeext; then
 
19654
  ac_cv_type_unsigned_long_long_int=yes
19954
19655
else
19955
19656
  echo "$as_me: failed program was:" >&5
19956
19657
sed 's/^/| /' conftest.$ac_ext >&5
19957
19658
 
19958
 
ac_cv_type_unsigned_long_long=no
 
19659
        ac_cv_type_unsigned_long_long_int=no
19959
19660
fi
19960
 
rm -f conftest.err conftest.$ac_objext \
 
19661
 
 
19662
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961
19663
      conftest$ac_exeext conftest.$ac_ext
19962
19664
fi
19963
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
19964
 
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
19965
 
  if test $ac_cv_type_unsigned_long_long = yes; then
19966
 
 
19967
 
cat >>confdefs.h <<\_ACEOF
19968
 
#define HAVE_UNSIGNED_LONG_LONG 1
19969
 
_ACEOF
19970
 
 
19971
 
  fi
19972
 
 
19973
 
 
19974
 
 
19975
 
 
19976
 
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19977
 
 
19978
 
    test $ac_cv_type_unsigned_long_long = yes \
19979
 
      && ac_type='unsigned long long' \
19980
 
      || ac_type='unsigned long'
19981
 
 
19982
 
cat >>confdefs.h <<_ACEOF
19983
 
#define uintmax_t $ac_type
19984
 
_ACEOF
19985
 
 
19986
 
  else
19987
 
 
19988
 
cat >>confdefs.h <<\_ACEOF
19989
 
#define HAVE_UINTMAX_T 1
19990
 
_ACEOF
19991
 
 
19992
 
  fi
19993
 
 
19994
 
 
19995
 
 
19996
 
  echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
19997
 
echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
19998
 
if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
19999
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20000
 
else
20001
 
 
20002
 
    cat >conftest.$ac_ext <<_ACEOF
20003
 
/* confdefs.h.  */
20004
 
_ACEOF
20005
 
cat confdefs.h >>conftest.$ac_ext
20006
 
cat >>conftest.$ac_ext <<_ACEOF
20007
 
/* end confdefs.h.  */
20008
 
 
20009
 
#include <errno.h>
20010
 
#ifdef EOVERFLOW
20011
 
yes
20012
 
#endif
20013
 
 
20014
 
_ACEOF
20015
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20016
 
  $EGREP "yes" >/dev/null 2>&1; then
20017
 
  have_eoverflow=1
20018
 
fi
20019
 
rm -f conftest*
20020
 
 
20021
 
    if test -n "$have_eoverflow"; then
20022
 
            ac_cv_decl_EOVERFLOW=yes
20023
 
    else
20024
 
      cat >conftest.$ac_ext <<_ACEOF
20025
 
/* confdefs.h.  */
20026
 
_ACEOF
20027
 
cat confdefs.h >>conftest.$ac_ext
20028
 
cat >>conftest.$ac_ext <<_ACEOF
20029
 
/* end confdefs.h.  */
20030
 
 
20031
 
#define _XOPEN_SOURCE_EXTENDED 1
20032
 
#include <errno.h>
20033
 
#ifdef EOVERFLOW
20034
 
yes
20035
 
#endif
20036
 
 
20037
 
_ACEOF
20038
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20039
 
  $EGREP "yes" >/dev/null 2>&1; then
20040
 
  have_eoverflow=1
20041
 
fi
20042
 
rm -f conftest*
20043
 
 
20044
 
      if test -n "$have_eoverflow"; then
20045
 
                        if test "$cross_compiling" = yes; then
20046
 
  # Depending upon the size, compute the lo and hi bounds.
20047
 
cat >conftest.$ac_ext <<_ACEOF
20048
 
/* confdefs.h.  */
20049
 
_ACEOF
20050
 
cat confdefs.h >>conftest.$ac_ext
20051
 
cat >>conftest.$ac_ext <<_ACEOF
20052
 
/* end confdefs.h.  */
20053
 
 
20054
 
#define _XOPEN_SOURCE_EXTENDED 1
20055
 
#include <errno.h>
20056
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20057
 
#include <stdio.h>
20058
 
#include <stdlib.h>
20059
 
 
20060
 
int
20061
 
main ()
20062
 
{
20063
 
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
20064
 
test_array [0] = 0
20065
 
 
20066
 
  ;
20067
 
  return 0;
20068
 
}
20069
 
_ACEOF
20070
 
rm -f conftest.$ac_objext
20071
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20072
 
  (eval $ac_compile) 2>conftest.er1
20073
 
  ac_status=$?
20074
 
  grep -v '^ *+' conftest.er1 >conftest.err
20075
 
  rm -f conftest.er1
20076
 
  cat conftest.err >&5
20077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078
 
  (exit $ac_status); } &&
20079
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20080
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081
 
  (eval $ac_try) 2>&5
20082
 
  ac_status=$?
20083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084
 
  (exit $ac_status); }; } &&
20085
 
         { ac_try='test -s conftest.$ac_objext'
20086
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087
 
  (eval $ac_try) 2>&5
20088
 
  ac_status=$?
20089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090
 
  (exit $ac_status); }; }; then
20091
 
  ac_lo=0 ac_mid=0
20092
 
  while :; do
20093
 
    cat >conftest.$ac_ext <<_ACEOF
20094
 
/* confdefs.h.  */
20095
 
_ACEOF
20096
 
cat confdefs.h >>conftest.$ac_ext
20097
 
cat >>conftest.$ac_ext <<_ACEOF
20098
 
/* end confdefs.h.  */
20099
 
 
20100
 
#define _XOPEN_SOURCE_EXTENDED 1
20101
 
#include <errno.h>
20102
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20103
 
#include <stdio.h>
20104
 
#include <stdlib.h>
20105
 
 
20106
 
int
20107
 
main ()
20108
 
{
20109
 
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
20110
 
test_array [0] = 0
20111
 
 
20112
 
  ;
20113
 
  return 0;
20114
 
}
20115
 
_ACEOF
20116
 
rm -f conftest.$ac_objext
20117
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20118
 
  (eval $ac_compile) 2>conftest.er1
20119
 
  ac_status=$?
20120
 
  grep -v '^ *+' conftest.er1 >conftest.err
20121
 
  rm -f conftest.er1
20122
 
  cat conftest.err >&5
20123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124
 
  (exit $ac_status); } &&
20125
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20126
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127
 
  (eval $ac_try) 2>&5
20128
 
  ac_status=$?
20129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130
 
  (exit $ac_status); }; } &&
20131
 
         { ac_try='test -s conftest.$ac_objext'
20132
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133
 
  (eval $ac_try) 2>&5
20134
 
  ac_status=$?
20135
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136
 
  (exit $ac_status); }; }; then
20137
 
  ac_hi=$ac_mid; break
20138
 
else
20139
 
  echo "$as_me: failed program was:" >&5
20140
 
sed 's/^/| /' conftest.$ac_ext >&5
20141
 
 
20142
 
ac_lo=`expr $ac_mid + 1`
20143
 
                    if test $ac_lo -le $ac_mid; then
20144
 
                      ac_lo= ac_hi=
20145
 
                      break
20146
 
                    fi
20147
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
20148
 
fi
20149
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20150
 
  done
20151
 
else
20152
 
  echo "$as_me: failed program was:" >&5
20153
 
sed 's/^/| /' conftest.$ac_ext >&5
20154
 
 
20155
 
cat >conftest.$ac_ext <<_ACEOF
20156
 
/* confdefs.h.  */
20157
 
_ACEOF
20158
 
cat confdefs.h >>conftest.$ac_ext
20159
 
cat >>conftest.$ac_ext <<_ACEOF
20160
 
/* end confdefs.h.  */
20161
 
 
20162
 
#define _XOPEN_SOURCE_EXTENDED 1
20163
 
#include <errno.h>
20164
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20165
 
#include <stdio.h>
20166
 
#include <stdlib.h>
20167
 
 
20168
 
int
20169
 
main ()
20170
 
{
20171
 
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
20172
 
test_array [0] = 0
20173
 
 
20174
 
  ;
20175
 
  return 0;
20176
 
}
20177
 
_ACEOF
20178
 
rm -f conftest.$ac_objext
20179
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20180
 
  (eval $ac_compile) 2>conftest.er1
20181
 
  ac_status=$?
20182
 
  grep -v '^ *+' conftest.er1 >conftest.err
20183
 
  rm -f conftest.er1
20184
 
  cat conftest.err >&5
20185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186
 
  (exit $ac_status); } &&
20187
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20188
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189
 
  (eval $ac_try) 2>&5
20190
 
  ac_status=$?
20191
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192
 
  (exit $ac_status); }; } &&
20193
 
         { ac_try='test -s conftest.$ac_objext'
20194
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195
 
  (eval $ac_try) 2>&5
20196
 
  ac_status=$?
20197
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198
 
  (exit $ac_status); }; }; then
20199
 
  ac_hi=-1 ac_mid=-1
20200
 
  while :; do
20201
 
    cat >conftest.$ac_ext <<_ACEOF
20202
 
/* confdefs.h.  */
20203
 
_ACEOF
20204
 
cat confdefs.h >>conftest.$ac_ext
20205
 
cat >>conftest.$ac_ext <<_ACEOF
20206
 
/* end confdefs.h.  */
20207
 
 
20208
 
#define _XOPEN_SOURCE_EXTENDED 1
20209
 
#include <errno.h>
20210
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20211
 
#include <stdio.h>
20212
 
#include <stdlib.h>
20213
 
 
20214
 
int
20215
 
main ()
20216
 
{
20217
 
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
20218
 
test_array [0] = 0
20219
 
 
20220
 
  ;
20221
 
  return 0;
20222
 
}
20223
 
_ACEOF
20224
 
rm -f conftest.$ac_objext
20225
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226
 
  (eval $ac_compile) 2>conftest.er1
20227
 
  ac_status=$?
20228
 
  grep -v '^ *+' conftest.er1 >conftest.err
20229
 
  rm -f conftest.er1
20230
 
  cat conftest.err >&5
20231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232
 
  (exit $ac_status); } &&
20233
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235
 
  (eval $ac_try) 2>&5
20236
 
  ac_status=$?
20237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238
 
  (exit $ac_status); }; } &&
20239
 
         { ac_try='test -s conftest.$ac_objext'
20240
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241
 
  (eval $ac_try) 2>&5
20242
 
  ac_status=$?
20243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244
 
  (exit $ac_status); }; }; then
20245
 
  ac_lo=$ac_mid; break
20246
 
else
20247
 
  echo "$as_me: failed program was:" >&5
20248
 
sed 's/^/| /' conftest.$ac_ext >&5
20249
 
 
20250
 
ac_hi=`expr '(' $ac_mid ')' - 1`
20251
 
                       if test $ac_mid -le $ac_hi; then
20252
 
                         ac_lo= ac_hi=
20253
 
                         break
20254
 
                       fi
20255
 
                       ac_mid=`expr 2 '*' $ac_mid`
20256
 
fi
20257
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258
 
  done
20259
 
else
20260
 
  echo "$as_me: failed program was:" >&5
20261
 
sed 's/^/| /' conftest.$ac_ext >&5
20262
 
 
20263
 
ac_lo= ac_hi=
20264
 
fi
20265
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20266
 
fi
20267
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20268
 
# Binary search between lo and hi bounds.
20269
 
while test "x$ac_lo" != "x$ac_hi"; do
20270
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20271
 
  cat >conftest.$ac_ext <<_ACEOF
20272
 
/* confdefs.h.  */
20273
 
_ACEOF
20274
 
cat confdefs.h >>conftest.$ac_ext
20275
 
cat >>conftest.$ac_ext <<_ACEOF
20276
 
/* end confdefs.h.  */
20277
 
 
20278
 
#define _XOPEN_SOURCE_EXTENDED 1
20279
 
#include <errno.h>
20280
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20281
 
#include <stdio.h>
20282
 
#include <stdlib.h>
20283
 
 
20284
 
int
20285
 
main ()
20286
 
{
20287
 
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
20288
 
test_array [0] = 0
20289
 
 
20290
 
  ;
20291
 
  return 0;
20292
 
}
20293
 
_ACEOF
20294
 
rm -f conftest.$ac_objext
20295
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20296
 
  (eval $ac_compile) 2>conftest.er1
20297
 
  ac_status=$?
20298
 
  grep -v '^ *+' conftest.er1 >conftest.err
20299
 
  rm -f conftest.er1
20300
 
  cat conftest.err >&5
20301
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302
 
  (exit $ac_status); } &&
20303
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20304
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305
 
  (eval $ac_try) 2>&5
20306
 
  ac_status=$?
20307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308
 
  (exit $ac_status); }; } &&
20309
 
         { ac_try='test -s conftest.$ac_objext'
20310
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311
 
  (eval $ac_try) 2>&5
20312
 
  ac_status=$?
20313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314
 
  (exit $ac_status); }; }; then
20315
 
  ac_hi=$ac_mid
20316
 
else
20317
 
  echo "$as_me: failed program was:" >&5
20318
 
sed 's/^/| /' conftest.$ac_ext >&5
20319
 
 
20320
 
ac_lo=`expr '(' $ac_mid ')' + 1`
20321
 
fi
20322
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20323
 
done
20324
 
case $ac_lo in
20325
 
?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
20326
 
'')  ;;
20327
 
esac
20328
 
else
20329
 
  if test "$cross_compiling" = yes; then
20330
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20331
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20332
 
   { (exit 1); exit 1; }; }
20333
 
else
20334
 
  cat >conftest.$ac_ext <<_ACEOF
20335
 
/* confdefs.h.  */
20336
 
_ACEOF
20337
 
cat confdefs.h >>conftest.$ac_ext
20338
 
cat >>conftest.$ac_ext <<_ACEOF
20339
 
/* end confdefs.h.  */
20340
 
 
20341
 
#define _XOPEN_SOURCE_EXTENDED 1
20342
 
#include <errno.h>
20343
 
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20344
 
#include <stdio.h>
20345
 
#include <stdlib.h>
20346
 
 
20347
 
long longval () { return EOVERFLOW; }
20348
 
unsigned long ulongval () { return EOVERFLOW; }
20349
 
#include <stdio.h>
20350
 
#include <stdlib.h>
20351
 
int
20352
 
main ()
20353
 
{
20354
 
 
20355
 
  FILE *f = fopen ("conftest.val", "w");
20356
 
  if (! f)
20357
 
    exit (1);
20358
 
  if ((EOVERFLOW) < 0)
20359
 
    {
20360
 
      long i = longval ();
20361
 
      if (i != (EOVERFLOW))
20362
 
        exit (1);
20363
 
      fprintf (f, "%ld\n", i);
20364
 
    }
20365
 
  else
20366
 
    {
20367
 
      unsigned long i = ulongval ();
20368
 
      if (i != (EOVERFLOW))
20369
 
        exit (1);
20370
 
      fprintf (f, "%lu\n", i);
20371
 
    }
20372
 
  exit (ferror (f) || fclose (f) != 0);
20373
 
 
20374
 
  ;
20375
 
  return 0;
20376
 
}
20377
 
_ACEOF
20378
 
rm -f conftest$ac_exeext
20379
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20380
 
  (eval $ac_link) 2>&5
20381
 
  ac_status=$?
20382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20384
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385
 
  (eval $ac_try) 2>&5
20386
 
  ac_status=$?
20387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388
 
  (exit $ac_status); }; }; then
20389
 
  ac_cv_decl_EOVERFLOW=`cat conftest.val`
20390
 
else
20391
 
  echo "$as_me: program exited with status $ac_status" >&5
20392
 
echo "$as_me: failed program was:" >&5
20393
 
sed 's/^/| /' conftest.$ac_ext >&5
20394
 
 
20395
 
fi
20396
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20397
 
fi
20398
 
fi
20399
 
rm -f conftest.val
20400
 
      else
20401
 
                                ac_cv_decl_EOVERFLOW=E2BIG
20402
 
      fi
20403
 
    fi
20404
 
 
20405
 
fi
20406
 
echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
20407
 
echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
20408
 
  if test "$ac_cv_decl_EOVERFLOW" != yes; then
20409
 
 
20410
 
cat >>confdefs.h <<_ACEOF
20411
 
#define EOVERFLOW $ac_cv_decl_EOVERFLOW
20412
 
_ACEOF
20413
 
 
20414
 
    EOVERFLOW="$ac_cv_decl_EOVERFLOW"
20415
 
 
20416
 
  fi
20417
 
 
20418
 
 
20419
 
 
20420
 
 
20421
 
  echo "$as_me:$LINENO: checking for intmax_t" >&5
20422
 
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20423
 
if test "${gt_cv_c_intmax_t+set}" = set; then
20424
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20425
 
else
20426
 
  cat >conftest.$ac_ext <<_ACEOF
20427
 
/* confdefs.h.  */
20428
 
_ACEOF
20429
 
cat confdefs.h >>conftest.$ac_ext
20430
 
cat >>conftest.$ac_ext <<_ACEOF
20431
 
/* end confdefs.h.  */
20432
 
 
20433
 
#include <stddef.h>
20434
 
#include <stdlib.h>
20435
 
#if HAVE_STDINT_H_WITH_UINTMAX
20436
 
#include <stdint.h>
20437
 
#endif
20438
 
#if HAVE_INTTYPES_H_WITH_UINTMAX
20439
 
#include <inttypes.h>
20440
 
#endif
20441
 
 
20442
 
int
20443
 
main ()
20444
 
{
20445
 
intmax_t x = -1;
20446
 
  ;
20447
 
  return 0;
20448
 
}
20449
 
_ACEOF
20450
 
rm -f conftest.$ac_objext
20451
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20452
 
  (eval $ac_compile) 2>conftest.er1
20453
 
  ac_status=$?
20454
 
  grep -v '^ *+' conftest.er1 >conftest.err
20455
 
  rm -f conftest.er1
20456
 
  cat conftest.err >&5
20457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458
 
  (exit $ac_status); } &&
20459
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20460
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461
 
  (eval $ac_try) 2>&5
20462
 
  ac_status=$?
20463
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464
 
  (exit $ac_status); }; } &&
20465
 
         { ac_try='test -s conftest.$ac_objext'
20466
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467
 
  (eval $ac_try) 2>&5
20468
 
  ac_status=$?
20469
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470
 
  (exit $ac_status); }; }; then
20471
 
  gt_cv_c_intmax_t=yes
20472
 
else
20473
 
  echo "$as_me: failed program was:" >&5
20474
 
sed 's/^/| /' conftest.$ac_ext >&5
20475
 
 
20476
 
gt_cv_c_intmax_t=no
20477
 
fi
20478
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20479
 
fi
20480
 
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
20481
 
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
20482
 
  if test $gt_cv_c_intmax_t = yes; then
20483
 
 
20484
 
cat >>confdefs.h <<\_ACEOF
20485
 
#define HAVE_INTMAX_T 1
20486
 
_ACEOF
20487
 
 
20488
 
  else
20489
 
 
20490
 
    test $ac_cv_type_long_long = yes \
20491
 
      && ac_type='long long' \
20492
 
      || ac_type='long'
20493
 
 
20494
 
cat >>confdefs.h <<_ACEOF
20495
 
#define intmax_t $ac_type
20496
 
_ACEOF
20497
 
 
20498
 
  fi
20499
 
 
20500
 
 
20501
 
 
20502
 
 
20503
 
if false; then
 
19665
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
 
19666
echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
 
19667
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
19668
 
 
19669
cat >>confdefs.h <<\_ACEOF
 
19670
#define HAVE_UNSIGNED_LONG_LONG_INT 1
 
19671
_ACEOF
 
19672
 
 
19673
  fi
 
19674
 
 
19675
 
 
19676
 
 
19677
 
 
19678
 
 
19679
 
 
19680
   if false; then
20504
19681
  GL_COND_LIBTOOL_TRUE=
20505
19682
  GL_COND_LIBTOOL_FALSE='#'
20506
19683
else
20508
19685
  GL_COND_LIBTOOL_FALSE=
20509
19686
fi
20510
19687
 
 
19688
  gl_cond_libtool=false
 
19689
  gl_libdeps=
 
19690
  gl_ltlibdeps=
 
19691
  gl_source_base='gl'
20511
19692
 
20512
19693
 
20513
19694
 
20566
19747
for ac_func in mkdtemp
20567
19748
do
20568
19749
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20570
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20571
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19750
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19751
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
19752
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20572
19753
  echo $ECHO_N "(cached) $ECHO_C" >&6
20573
19754
else
20574
19755
  cat >conftest.$ac_ext <<_ACEOF
20594
19775
 
20595
19776
#undef $ac_func
20596
19777
 
20597
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
19778
/* Override any GCC internal prototype to avoid an error.
 
19779
   Use char because int might match the return type of a GCC
 
19780
   builtin and then its argument prototype would still apply.  */
20598
19781
#ifdef __cplusplus
20599
19782
extern "C"
20600
 
{
20601
19783
#endif
20602
 
/* We use char because int might match the return type of a gcc2
20603
 
   builtin and then its argument prototype would still apply.  */
20604
19784
char $ac_func ();
20605
19785
/* The GNU C library defines this for functions which it implements
20606
19786
    to always fail with ENOSYS.  Some functions are actually named
20607
19787
    something starting with __ and the normal name is an alias.  */
20608
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19788
#if defined __stub_$ac_func || defined __stub___$ac_func
20609
19789
choke me
20610
 
#else
20611
 
char (*f) () = $ac_func;
20612
 
#endif
20613
 
#ifdef __cplusplus
20614
 
}
20615
19790
#endif
20616
19791
 
20617
19792
int
20618
19793
main ()
20619
19794
{
20620
 
return f != $ac_func;
 
19795
return $ac_func ();
20621
19796
  ;
20622
19797
  return 0;
20623
19798
}
20624
19799
_ACEOF
20625
19800
rm -f conftest.$ac_objext conftest$ac_exeext
20626
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20627
 
  (eval $ac_link) 2>conftest.er1
 
19801
if { (ac_try="$ac_link"
 
19802
case "(($ac_try" in
 
19803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19804
  *) ac_try_echo=$ac_try;;
 
19805
esac
 
19806
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19807
  (eval "$ac_link") 2>conftest.er1
20628
19808
  ac_status=$?
20629
19809
  grep -v '^ *+' conftest.er1 >conftest.err
20630
19810
  rm -f conftest.er1
20631
19811
  cat conftest.err >&5
20632
19812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633
 
  (exit $ac_status); } &&
20634
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20635
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636
 
  (eval $ac_try) 2>&5
20637
 
  ac_status=$?
20638
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639
 
  (exit $ac_status); }; } &&
20640
 
         { ac_try='test -s conftest$ac_exeext'
20641
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642
 
  (eval $ac_try) 2>&5
20643
 
  ac_status=$?
20644
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645
 
  (exit $ac_status); }; }; then
 
19813
  (exit $ac_status); } && {
 
19814
         test -z "$ac_c_werror_flag" ||
 
19815
         test ! -s conftest.err
 
19816
       } && test -s conftest$ac_exeext &&
 
19817
       $as_test_x conftest$ac_exeext; then
20646
19818
  eval "$as_ac_var=yes"
20647
19819
else
20648
19820
  echo "$as_me: failed program was:" >&5
20649
19821
sed 's/^/| /' conftest.$ac_ext >&5
20650
19822
 
20651
 
eval "$as_ac_var=no"
 
19823
        eval "$as_ac_var=no"
20652
19824
fi
20653
 
rm -f conftest.err conftest.$ac_objext \
 
19825
 
 
19826
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654
19827
      conftest$ac_exeext conftest.$ac_ext
20655
19828
fi
20656
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20657
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
19829
ac_res=`eval echo '${'$as_ac_var'}'`
 
19830
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19831
echo "${ECHO_T}$ac_res" >&6; }
20658
19832
if test `eval echo '${'$as_ac_var'}'` = yes; then
20659
19833
  cat >>confdefs.h <<_ACEOF
20660
19834
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20661
19835
_ACEOF
20662
19836
 
20663
19837
else
20664
 
  case $LIBOBJS in
20665
 
    "$ac_func.$ac_objext"   | \
20666
 
  *" $ac_func.$ac_objext"   | \
20667
 
    "$ac_func.$ac_objext "* | \
 
19838
  case " $LIBOBJS " in
20668
19839
  *" $ac_func.$ac_objext "* ) ;;
20669
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
19840
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
19841
 ;;
20670
19842
esac
20671
19843
 
20672
19844
fi
20677
19849
 
20678
19850
 
20679
19851
 
20680
 
  :
20681
 
 
20682
19852
 
20683
19853
 
20684
19854
 
20690
19860
for ac_header in time.h
20691
19861
do
20692
19862
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20693
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20694
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20695
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20696
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19863
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19864
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19865
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19866
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20697
19867
  echo $ECHO_N "(cached) $ECHO_C" >&6
20698
19868
fi
20699
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20700
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19869
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19870
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19871
echo "${ECHO_T}$ac_res" >&6; }
20701
19872
else
20702
19873
  # Is the header compilable?
20703
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20704
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
19874
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19875
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20705
19876
cat >conftest.$ac_ext <<_ACEOF
20706
19877
/* confdefs.h.  */
20707
19878
_ACEOF
20712
19883
#include <$ac_header>
20713
19884
_ACEOF
20714
19885
rm -f conftest.$ac_objext
20715
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716
 
  (eval $ac_compile) 2>conftest.er1
 
19886
if { (ac_try="$ac_compile"
 
19887
case "(($ac_try" in
 
19888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19889
  *) ac_try_echo=$ac_try;;
 
19890
esac
 
19891
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19892
  (eval "$ac_compile") 2>conftest.er1
20717
19893
  ac_status=$?
20718
19894
  grep -v '^ *+' conftest.er1 >conftest.err
20719
19895
  rm -f conftest.er1
20720
19896
  cat conftest.err >&5
20721
19897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722
 
  (exit $ac_status); } &&
20723
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20724
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725
 
  (eval $ac_try) 2>&5
20726
 
  ac_status=$?
20727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728
 
  (exit $ac_status); }; } &&
20729
 
         { ac_try='test -s conftest.$ac_objext'
20730
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731
 
  (eval $ac_try) 2>&5
20732
 
  ac_status=$?
20733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734
 
  (exit $ac_status); }; }; then
 
19898
  (exit $ac_status); } && {
 
19899
         test -z "$ac_c_werror_flag" ||
 
19900
         test ! -s conftest.err
 
19901
       } && test -s conftest.$ac_objext; then
20735
19902
  ac_header_compiler=yes
20736
19903
else
20737
19904
  echo "$as_me: failed program was:" >&5
20738
19905
sed 's/^/| /' conftest.$ac_ext >&5
20739
19906
 
20740
 
ac_header_compiler=no
 
19907
        ac_header_compiler=no
20741
19908
fi
20742
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20743
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20744
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
19909
 
 
19910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19911
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19912
echo "${ECHO_T}$ac_header_compiler" >&6; }
20745
19913
 
20746
19914
# Is the header present?
20747
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20748
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19915
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19916
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20749
19917
cat >conftest.$ac_ext <<_ACEOF
20750
19918
/* confdefs.h.  */
20751
19919
_ACEOF
20754
19922
/* end confdefs.h.  */
20755
19923
#include <$ac_header>
20756
19924
_ACEOF
20757
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20758
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19925
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19926
case "(($ac_try" in
 
19927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19928
  *) ac_try_echo=$ac_try;;
 
19929
esac
 
19930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19931
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20759
19932
  ac_status=$?
20760
19933
  grep -v '^ *+' conftest.er1 >conftest.err
20761
19934
  rm -f conftest.er1
20762
19935
  cat conftest.err >&5
20763
19936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764
 
  (exit $ac_status); } >/dev/null; then
20765
 
  if test -s conftest.err; then
20766
 
    ac_cpp_err=$ac_c_preproc_warn_flag
20767
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20768
 
  else
20769
 
    ac_cpp_err=
20770
 
  fi
20771
 
else
20772
 
  ac_cpp_err=yes
20773
 
fi
20774
 
if test -z "$ac_cpp_err"; then
 
19937
  (exit $ac_status); } >/dev/null && {
 
19938
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19939
         test ! -s conftest.err
 
19940
       }; then
20775
19941
  ac_header_preproc=yes
20776
19942
else
20777
19943
  echo "$as_me: failed program was:" >&5
20779
19945
 
20780
19946
  ac_header_preproc=no
20781
19947
fi
 
19948
 
20782
19949
rm -f conftest.err conftest.$ac_ext
20783
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20784
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
19950
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19951
echo "${ECHO_T}$ac_header_preproc" >&6; }
20785
19952
 
20786
19953
# So?  What about this header?
20787
19954
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20805
19972
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20806
19973
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20807
19974
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20808
 
    (
20809
 
      cat <<\_ASBOX
20810
 
## ------------------------------------ ##
20811
 
## Report this to gnupg-devel@gnupg.org ##
20812
 
## ------------------------------------ ##
 
19975
    ( cat <<\_ASBOX
 
19976
## ---------------------------------- ##
 
19977
## Report this to bug-gnupg@gnupg.org ##
 
19978
## ---------------------------------- ##
20813
19979
_ASBOX
20814
 
    ) |
20815
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
19980
     ) | sed "s/^/$as_me: WARNING:     /" >&2
20816
19981
    ;;
20817
19982
esac
20818
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
20819
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20820
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19983
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19984
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19985
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821
19986
  echo $ECHO_N "(cached) $ECHO_C" >&6
20822
19987
else
20823
19988
  eval "$as_ac_Header=\$ac_header_preproc"
20824
19989
fi
20825
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20826
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19990
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19991
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19992
echo "${ECHO_T}$ac_res" >&6; }
20827
19993
 
20828
19994
fi
20829
19995
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20836
20002
done
20837
20003
 
20838
20004
 
20839
 
 
20840
20005
for ac_func in gettimeofday
20841
20006
do
20842
20007
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20843
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20844
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20845
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20008
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20009
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20010
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20846
20011
  echo $ECHO_N "(cached) $ECHO_C" >&6
20847
20012
else
20848
20013
  cat >conftest.$ac_ext <<_ACEOF
20868
20033
 
20869
20034
#undef $ac_func
20870
20035
 
20871
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
20036
/* Override any GCC internal prototype to avoid an error.
 
20037
   Use char because int might match the return type of a GCC
 
20038
   builtin and then its argument prototype would still apply.  */
20872
20039
#ifdef __cplusplus
20873
20040
extern "C"
20874
 
{
20875
20041
#endif
20876
 
/* We use char because int might match the return type of a gcc2
20877
 
   builtin and then its argument prototype would still apply.  */
20878
20042
char $ac_func ();
20879
20043
/* The GNU C library defines this for functions which it implements
20880
20044
    to always fail with ENOSYS.  Some functions are actually named
20881
20045
    something starting with __ and the normal name is an alias.  */
20882
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20046
#if defined __stub_$ac_func || defined __stub___$ac_func
20883
20047
choke me
20884
 
#else
20885
 
char (*f) () = $ac_func;
20886
 
#endif
20887
 
#ifdef __cplusplus
20888
 
}
20889
20048
#endif
20890
20049
 
20891
20050
int
20892
20051
main ()
20893
20052
{
20894
 
return f != $ac_func;
 
20053
return $ac_func ();
20895
20054
  ;
20896
20055
  return 0;
20897
20056
}
20898
20057
_ACEOF
20899
20058
rm -f conftest.$ac_objext conftest$ac_exeext
20900
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20901
 
  (eval $ac_link) 2>conftest.er1
 
20059
if { (ac_try="$ac_link"
 
20060
case "(($ac_try" in
 
20061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20062
  *) ac_try_echo=$ac_try;;
 
20063
esac
 
20064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20065
  (eval "$ac_link") 2>conftest.er1
20902
20066
  ac_status=$?
20903
20067
  grep -v '^ *+' conftest.er1 >conftest.err
20904
20068
  rm -f conftest.er1
20905
20069
  cat conftest.err >&5
20906
20070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907
 
  (exit $ac_status); } &&
20908
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20909
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910
 
  (eval $ac_try) 2>&5
20911
 
  ac_status=$?
20912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913
 
  (exit $ac_status); }; } &&
20914
 
         { ac_try='test -s conftest$ac_exeext'
20915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916
 
  (eval $ac_try) 2>&5
20917
 
  ac_status=$?
20918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919
 
  (exit $ac_status); }; }; then
 
20071
  (exit $ac_status); } && {
 
20072
         test -z "$ac_c_werror_flag" ||
 
20073
         test ! -s conftest.err
 
20074
       } && test -s conftest$ac_exeext &&
 
20075
       $as_test_x conftest$ac_exeext; then
20920
20076
  eval "$as_ac_var=yes"
20921
20077
else
20922
20078
  echo "$as_me: failed program was:" >&5
20923
20079
sed 's/^/| /' conftest.$ac_ext >&5
20924
20080
 
20925
 
eval "$as_ac_var=no"
 
20081
        eval "$as_ac_var=no"
20926
20082
fi
20927
 
rm -f conftest.err conftest.$ac_objext \
 
20083
 
 
20084
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20928
20085
      conftest$ac_exeext conftest.$ac_ext
20929
20086
fi
20930
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20931
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20087
ac_res=`eval echo '${'$as_ac_var'}'`
 
20088
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20089
echo "${ECHO_T}$ac_res" >&6; }
20932
20090
if test `eval echo '${'$as_ac_var'}'` = yes; then
20933
20091
  cat >>confdefs.h <<_ACEOF
20934
20092
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20946
20104
for ac_func in setenv unsetenv
20947
20105
do
20948
20106
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20949
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
20950
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20951
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20107
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20108
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20109
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20952
20110
  echo $ECHO_N "(cached) $ECHO_C" >&6
20953
20111
else
20954
20112
  cat >conftest.$ac_ext <<_ACEOF
20974
20132
 
20975
20133
#undef $ac_func
20976
20134
 
20977
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
20135
/* Override any GCC internal prototype to avoid an error.
 
20136
   Use char because int might match the return type of a GCC
 
20137
   builtin and then its argument prototype would still apply.  */
20978
20138
#ifdef __cplusplus
20979
20139
extern "C"
20980
 
{
20981
20140
#endif
20982
 
/* We use char because int might match the return type of a gcc2
20983
 
   builtin and then its argument prototype would still apply.  */
20984
20141
char $ac_func ();
20985
20142
/* The GNU C library defines this for functions which it implements
20986
20143
    to always fail with ENOSYS.  Some functions are actually named
20987
20144
    something starting with __ and the normal name is an alias.  */
20988
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20145
#if defined __stub_$ac_func || defined __stub___$ac_func
20989
20146
choke me
20990
 
#else
20991
 
char (*f) () = $ac_func;
20992
 
#endif
20993
 
#ifdef __cplusplus
20994
 
}
20995
20147
#endif
20996
20148
 
20997
20149
int
20998
20150
main ()
20999
20151
{
21000
 
return f != $ac_func;
 
20152
return $ac_func ();
21001
20153
  ;
21002
20154
  return 0;
21003
20155
}
21004
20156
_ACEOF
21005
20157
rm -f conftest.$ac_objext conftest$ac_exeext
21006
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21007
 
  (eval $ac_link) 2>conftest.er1
 
20158
if { (ac_try="$ac_link"
 
20159
case "(($ac_try" in
 
20160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20161
  *) ac_try_echo=$ac_try;;
 
20162
esac
 
20163
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20164
  (eval "$ac_link") 2>conftest.er1
21008
20165
  ac_status=$?
21009
20166
  grep -v '^ *+' conftest.er1 >conftest.err
21010
20167
  rm -f conftest.er1
21011
20168
  cat conftest.err >&5
21012
20169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013
 
  (exit $ac_status); } &&
21014
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21015
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016
 
  (eval $ac_try) 2>&5
21017
 
  ac_status=$?
21018
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019
 
  (exit $ac_status); }; } &&
21020
 
         { ac_try='test -s conftest$ac_exeext'
21021
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022
 
  (eval $ac_try) 2>&5
21023
 
  ac_status=$?
21024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025
 
  (exit $ac_status); }; }; then
 
20170
  (exit $ac_status); } && {
 
20171
         test -z "$ac_c_werror_flag" ||
 
20172
         test ! -s conftest.err
 
20173
       } && test -s conftest$ac_exeext &&
 
20174
       $as_test_x conftest$ac_exeext; then
21026
20175
  eval "$as_ac_var=yes"
21027
20176
else
21028
20177
  echo "$as_me: failed program was:" >&5
21029
20178
sed 's/^/| /' conftest.$ac_ext >&5
21030
20179
 
21031
 
eval "$as_ac_var=no"
 
20180
        eval "$as_ac_var=no"
21032
20181
fi
21033
 
rm -f conftest.err conftest.$ac_objext \
 
20182
 
 
20183
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21034
20184
      conftest$ac_exeext conftest.$ac_ext
21035
20185
fi
21036
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21037
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20186
ac_res=`eval echo '${'$as_ac_var'}'`
 
20187
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20188
echo "${ECHO_T}$ac_res" >&6; }
21038
20189
if test `eval echo '${'$as_ac_var'}'` = yes; then
21039
20190
  cat >>confdefs.h <<_ACEOF
21040
20191
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21041
20192
_ACEOF
21042
20193
 
21043
20194
else
21044
 
  case $LIBOBJS in
21045
 
    "$ac_func.$ac_objext"   | \
21046
 
  *" $ac_func.$ac_objext"   | \
21047
 
    "$ac_func.$ac_objext "* | \
 
20195
  case " $LIBOBJS " in
21048
20196
  *" $ac_func.$ac_objext "* ) ;;
21049
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
20197
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
20198
 ;;
21050
20199
esac
21051
20200
 
21052
20201
fi
21057
20206
 
21058
20207
 
21059
20208
 
21060
 
  :
21061
20209
 
21062
20210
 
21063
20211
 
21067
20215
for ac_header in search.h
21068
20216
do
21069
20217
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21070
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21071
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21072
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21073
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20218
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20219
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20220
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20221
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21074
20222
  echo $ECHO_N "(cached) $ECHO_C" >&6
21075
20223
fi
21076
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21077
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20224
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20225
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20226
echo "${ECHO_T}$ac_res" >&6; }
21078
20227
else
21079
20228
  # Is the header compilable?
21080
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21081
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20229
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20230
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21082
20231
cat >conftest.$ac_ext <<_ACEOF
21083
20232
/* confdefs.h.  */
21084
20233
_ACEOF
21089
20238
#include <$ac_header>
21090
20239
_ACEOF
21091
20240
rm -f conftest.$ac_objext
21092
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21093
 
  (eval $ac_compile) 2>conftest.er1
 
20241
if { (ac_try="$ac_compile"
 
20242
case "(($ac_try" in
 
20243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20244
  *) ac_try_echo=$ac_try;;
 
20245
esac
 
20246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20247
  (eval "$ac_compile") 2>conftest.er1
21094
20248
  ac_status=$?
21095
20249
  grep -v '^ *+' conftest.er1 >conftest.err
21096
20250
  rm -f conftest.er1
21097
20251
  cat conftest.err >&5
21098
20252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099
 
  (exit $ac_status); } &&
21100
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21101
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102
 
  (eval $ac_try) 2>&5
21103
 
  ac_status=$?
21104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105
 
  (exit $ac_status); }; } &&
21106
 
         { ac_try='test -s conftest.$ac_objext'
21107
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108
 
  (eval $ac_try) 2>&5
21109
 
  ac_status=$?
21110
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111
 
  (exit $ac_status); }; }; then
 
20253
  (exit $ac_status); } && {
 
20254
         test -z "$ac_c_werror_flag" ||
 
20255
         test ! -s conftest.err
 
20256
       } && test -s conftest.$ac_objext; then
21112
20257
  ac_header_compiler=yes
21113
20258
else
21114
20259
  echo "$as_me: failed program was:" >&5
21115
20260
sed 's/^/| /' conftest.$ac_ext >&5
21116
20261
 
21117
 
ac_header_compiler=no
 
20262
        ac_header_compiler=no
21118
20263
fi
21119
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21120
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21121
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
20264
 
 
20265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20266
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20267
echo "${ECHO_T}$ac_header_compiler" >&6; }
21122
20268
 
21123
20269
# Is the header present?
21124
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21125
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20270
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20271
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21126
20272
cat >conftest.$ac_ext <<_ACEOF
21127
20273
/* confdefs.h.  */
21128
20274
_ACEOF
21131
20277
/* end confdefs.h.  */
21132
20278
#include <$ac_header>
21133
20279
_ACEOF
21134
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21135
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20280
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20281
case "(($ac_try" in
 
20282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20283
  *) ac_try_echo=$ac_try;;
 
20284
esac
 
20285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20286
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21136
20287
  ac_status=$?
21137
20288
  grep -v '^ *+' conftest.er1 >conftest.err
21138
20289
  rm -f conftest.er1
21139
20290
  cat conftest.err >&5
21140
20291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141
 
  (exit $ac_status); } >/dev/null; then
21142
 
  if test -s conftest.err; then
21143
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21144
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21145
 
  else
21146
 
    ac_cpp_err=
21147
 
  fi
21148
 
else
21149
 
  ac_cpp_err=yes
21150
 
fi
21151
 
if test -z "$ac_cpp_err"; then
 
20292
  (exit $ac_status); } >/dev/null && {
 
20293
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20294
         test ! -s conftest.err
 
20295
       }; then
21152
20296
  ac_header_preproc=yes
21153
20297
else
21154
20298
  echo "$as_me: failed program was:" >&5
21156
20300
 
21157
20301
  ac_header_preproc=no
21158
20302
fi
 
20303
 
21159
20304
rm -f conftest.err conftest.$ac_ext
21160
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21161
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
20305
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20306
echo "${ECHO_T}$ac_header_preproc" >&6; }
21162
20307
 
21163
20308
# So?  What about this header?
21164
20309
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21182
20327
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21183
20328
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21184
20329
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21185
 
    (
21186
 
      cat <<\_ASBOX
21187
 
## ------------------------------------ ##
21188
 
## Report this to gnupg-devel@gnupg.org ##
21189
 
## ------------------------------------ ##
 
20330
    ( cat <<\_ASBOX
 
20331
## ---------------------------------- ##
 
20332
## Report this to bug-gnupg@gnupg.org ##
 
20333
## ---------------------------------- ##
21190
20334
_ASBOX
21191
 
    ) |
21192
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20335
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21193
20336
    ;;
21194
20337
esac
21195
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
21196
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21197
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20338
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20339
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20340
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21198
20341
  echo $ECHO_N "(cached) $ECHO_C" >&6
21199
20342
else
21200
20343
  eval "$as_ac_Header=\$ac_header_preproc"
21201
20344
fi
21202
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21203
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20345
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20346
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20347
echo "${ECHO_T}$ac_res" >&6; }
21204
20348
 
21205
20349
fi
21206
20350
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21216
20360
for ac_func in tsearch
21217
20361
do
21218
20362
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21219
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
21220
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21221
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20363
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20364
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20365
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21222
20366
  echo $ECHO_N "(cached) $ECHO_C" >&6
21223
20367
else
21224
20368
  cat >conftest.$ac_ext <<_ACEOF
21244
20388
 
21245
20389
#undef $ac_func
21246
20390
 
21247
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
20391
/* Override any GCC internal prototype to avoid an error.
 
20392
   Use char because int might match the return type of a GCC
 
20393
   builtin and then its argument prototype would still apply.  */
21248
20394
#ifdef __cplusplus
21249
20395
extern "C"
21250
 
{
21251
20396
#endif
21252
 
/* We use char because int might match the return type of a gcc2
21253
 
   builtin and then its argument prototype would still apply.  */
21254
20397
char $ac_func ();
21255
20398
/* The GNU C library defines this for functions which it implements
21256
20399
    to always fail with ENOSYS.  Some functions are actually named
21257
20400
    something starting with __ and the normal name is an alias.  */
21258
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20401
#if defined __stub_$ac_func || defined __stub___$ac_func
21259
20402
choke me
21260
 
#else
21261
 
char (*f) () = $ac_func;
21262
 
#endif
21263
 
#ifdef __cplusplus
21264
 
}
21265
20403
#endif
21266
20404
 
21267
20405
int
21268
20406
main ()
21269
20407
{
21270
 
return f != $ac_func;
 
20408
return $ac_func ();
21271
20409
  ;
21272
20410
  return 0;
21273
20411
}
21274
20412
_ACEOF
21275
20413
rm -f conftest.$ac_objext conftest$ac_exeext
21276
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21277
 
  (eval $ac_link) 2>conftest.er1
 
20414
if { (ac_try="$ac_link"
 
20415
case "(($ac_try" in
 
20416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20417
  *) ac_try_echo=$ac_try;;
 
20418
esac
 
20419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20420
  (eval "$ac_link") 2>conftest.er1
21278
20421
  ac_status=$?
21279
20422
  grep -v '^ *+' conftest.er1 >conftest.err
21280
20423
  rm -f conftest.er1
21281
20424
  cat conftest.err >&5
21282
20425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283
 
  (exit $ac_status); } &&
21284
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21285
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286
 
  (eval $ac_try) 2>&5
21287
 
  ac_status=$?
21288
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289
 
  (exit $ac_status); }; } &&
21290
 
         { ac_try='test -s conftest$ac_exeext'
21291
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292
 
  (eval $ac_try) 2>&5
21293
 
  ac_status=$?
21294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295
 
  (exit $ac_status); }; }; then
 
20426
  (exit $ac_status); } && {
 
20427
         test -z "$ac_c_werror_flag" ||
 
20428
         test ! -s conftest.err
 
20429
       } && test -s conftest$ac_exeext &&
 
20430
       $as_test_x conftest$ac_exeext; then
21296
20431
  eval "$as_ac_var=yes"
21297
20432
else
21298
20433
  echo "$as_me: failed program was:" >&5
21299
20434
sed 's/^/| /' conftest.$ac_ext >&5
21300
20435
 
21301
 
eval "$as_ac_var=no"
 
20436
        eval "$as_ac_var=no"
21302
20437
fi
21303
 
rm -f conftest.err conftest.$ac_objext \
 
20438
 
 
20439
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21304
20440
      conftest$ac_exeext conftest.$ac_ext
21305
20441
fi
21306
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21307
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20442
ac_res=`eval echo '${'$as_ac_var'}'`
 
20443
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20444
echo "${ECHO_T}$ac_res" >&6; }
21308
20445
if test `eval echo '${'$as_ac_var'}'` = yes; then
21309
20446
  cat >>confdefs.h <<_ACEOF
21310
20447
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21315
20452
 
21316
20453
 
21317
20454
 
21318
 
  echo "$as_me:$LINENO: checking if errno is properly declared" >&5
21319
 
echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
21320
 
  if test "${gt_cv_var_errno_declaration+set}" = set; then
21321
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21322
 
else
21323
 
 
21324
 
    cat >conftest.$ac_ext <<_ACEOF
21325
 
/* confdefs.h.  */
21326
 
_ACEOF
21327
 
cat confdefs.h >>conftest.$ac_ext
21328
 
cat >>conftest.$ac_ext <<_ACEOF
21329
 
/* end confdefs.h.  */
21330
 
#include <errno.h>
21331
 
      extern struct { int foo; } errno;
21332
 
int
21333
 
main ()
21334
 
{
21335
 
errno.foo = 1;
21336
 
  ;
21337
 
  return 0;
21338
 
}
21339
 
_ACEOF
21340
 
rm -f conftest.$ac_objext
21341
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21342
 
  (eval $ac_compile) 2>conftest.er1
21343
 
  ac_status=$?
21344
 
  grep -v '^ *+' conftest.er1 >conftest.err
21345
 
  rm -f conftest.er1
21346
 
  cat conftest.err >&5
21347
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348
 
  (exit $ac_status); } &&
21349
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21350
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351
 
  (eval $ac_try) 2>&5
21352
 
  ac_status=$?
21353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354
 
  (exit $ac_status); }; } &&
21355
 
         { ac_try='test -s conftest.$ac_objext'
21356
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357
 
  (eval $ac_try) 2>&5
21358
 
  ac_status=$?
21359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360
 
  (exit $ac_status); }; }; then
21361
 
  gt_cv_var_errno_declaration=no
21362
 
else
21363
 
  echo "$as_me: failed program was:" >&5
21364
 
sed 's/^/| /' conftest.$ac_ext >&5
21365
 
 
21366
 
gt_cv_var_errno_declaration=yes
21367
 
fi
21368
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21369
 
fi
21370
 
 
21371
 
  echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
21372
 
echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
21373
 
  if test $gt_cv_var_errno_declaration = yes; then
21374
 
 
21375
 
cat >>confdefs.h <<\_ACEOF
21376
 
#define HAVE_ERRNO_DECL 1
21377
 
_ACEOF
21378
 
 
21379
 
  fi
21380
 
 
21381
 
 
21382
 
 
21383
 
  echo "$as_me:$LINENO: checking if environ is properly declared" >&5
21384
 
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
 
20455
  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
 
20456
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
21385
20457
  if test "${gt_cv_var_environ_declaration+set}" = set; then
21386
20458
  echo $ECHO_N "(cached) $ECHO_C" >&6
21387
20459
else
21403
20475
}
21404
20476
_ACEOF
21405
20477
rm -f conftest.$ac_objext
21406
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21407
 
  (eval $ac_compile) 2>conftest.er1
 
20478
if { (ac_try="$ac_compile"
 
20479
case "(($ac_try" in
 
20480
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20481
  *) ac_try_echo=$ac_try;;
 
20482
esac
 
20483
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20484
  (eval "$ac_compile") 2>conftest.er1
21408
20485
  ac_status=$?
21409
20486
  grep -v '^ *+' conftest.er1 >conftest.err
21410
20487
  rm -f conftest.er1
21411
20488
  cat conftest.err >&5
21412
20489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413
 
  (exit $ac_status); } &&
21414
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21415
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416
 
  (eval $ac_try) 2>&5
21417
 
  ac_status=$?
21418
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419
 
  (exit $ac_status); }; } &&
21420
 
         { ac_try='test -s conftest.$ac_objext'
21421
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422
 
  (eval $ac_try) 2>&5
21423
 
  ac_status=$?
21424
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425
 
  (exit $ac_status); }; }; then
 
20490
  (exit $ac_status); } && {
 
20491
         test -z "$ac_c_werror_flag" ||
 
20492
         test ! -s conftest.err
 
20493
       } && test -s conftest.$ac_objext; then
21426
20494
  gt_cv_var_environ_declaration=no
21427
20495
else
21428
20496
  echo "$as_me: failed program was:" >&5
21429
20497
sed 's/^/| /' conftest.$ac_ext >&5
21430
20498
 
21431
 
gt_cv_var_environ_declaration=yes
21432
 
fi
21433
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21434
 
fi
21435
 
 
21436
 
  echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
21437
 
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
 
20499
        gt_cv_var_environ_declaration=yes
 
20500
fi
 
20501
 
 
20502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20503
fi
 
20504
 
 
20505
  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
 
20506
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
21438
20507
  if test $gt_cv_var_environ_declaration = yes; then
21439
20508
 
21440
20509
cat >>confdefs.h <<\_ACEOF
21448
20517
  if test $ac_cv_func_unsetenv = no; then
21449
20518
 
21450
20519
 
21451
 
  :
21452
 
 
21453
 
 
21454
 
 
21455
 
 
21456
 
 
21457
 
 
21458
 
 
21459
 
  echo "$as_me:$LINENO: checking if errno is properly declared" >&5
21460
 
echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
21461
 
  if test "${gt_cv_var_errno_declaration+set}" = set; then
21462
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21463
 
else
21464
 
 
21465
 
    cat >conftest.$ac_ext <<_ACEOF
21466
 
/* confdefs.h.  */
21467
 
_ACEOF
21468
 
cat confdefs.h >>conftest.$ac_ext
21469
 
cat >>conftest.$ac_ext <<_ACEOF
21470
 
/* end confdefs.h.  */
21471
 
#include <errno.h>
21472
 
      extern struct { int foo; } errno;
21473
 
int
21474
 
main ()
21475
 
{
21476
 
errno.foo = 1;
21477
 
  ;
21478
 
  return 0;
21479
 
}
21480
 
_ACEOF
21481
 
rm -f conftest.$ac_objext
21482
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21483
 
  (eval $ac_compile) 2>conftest.er1
21484
 
  ac_status=$?
21485
 
  grep -v '^ *+' conftest.er1 >conftest.err
21486
 
  rm -f conftest.er1
21487
 
  cat conftest.err >&5
21488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489
 
  (exit $ac_status); } &&
21490
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21491
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492
 
  (eval $ac_try) 2>&5
21493
 
  ac_status=$?
21494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495
 
  (exit $ac_status); }; } &&
21496
 
         { ac_try='test -s conftest.$ac_objext'
21497
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498
 
  (eval $ac_try) 2>&5
21499
 
  ac_status=$?
21500
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501
 
  (exit $ac_status); }; }; then
21502
 
  gt_cv_var_errno_declaration=no
21503
 
else
21504
 
  echo "$as_me: failed program was:" >&5
21505
 
sed 's/^/| /' conftest.$ac_ext >&5
21506
 
 
21507
 
gt_cv_var_errno_declaration=yes
21508
 
fi
21509
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21510
 
fi
21511
 
 
21512
 
  echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
21513
 
echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
21514
 
  if test $gt_cv_var_errno_declaration = yes; then
21515
 
 
21516
 
cat >>confdefs.h <<\_ACEOF
21517
 
#define HAVE_ERRNO_DECL 1
21518
 
_ACEOF
21519
 
 
21520
 
  fi
21521
 
 
21522
 
 
21523
 
 
21524
 
  echo "$as_me:$LINENO: checking if environ is properly declared" >&5
21525
 
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
 
20520
 
 
20521
 
 
20522
 
 
20523
 
 
20524
 
 
20525
 
 
20526
 
 
20527
  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
 
20528
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
21526
20529
  if test "${gt_cv_var_environ_declaration+set}" = set; then
21527
20530
  echo $ECHO_N "(cached) $ECHO_C" >&6
21528
20531
else
21544
20547
}
21545
20548
_ACEOF
21546
20549
rm -f conftest.$ac_objext
21547
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21548
 
  (eval $ac_compile) 2>conftest.er1
 
20550
if { (ac_try="$ac_compile"
 
20551
case "(($ac_try" in
 
20552
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20553
  *) ac_try_echo=$ac_try;;
 
20554
esac
 
20555
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20556
  (eval "$ac_compile") 2>conftest.er1
21549
20557
  ac_status=$?
21550
20558
  grep -v '^ *+' conftest.er1 >conftest.err
21551
20559
  rm -f conftest.er1
21552
20560
  cat conftest.err >&5
21553
20561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554
 
  (exit $ac_status); } &&
21555
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21556
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557
 
  (eval $ac_try) 2>&5
21558
 
  ac_status=$?
21559
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560
 
  (exit $ac_status); }; } &&
21561
 
         { ac_try='test -s conftest.$ac_objext'
21562
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563
 
  (eval $ac_try) 2>&5
21564
 
  ac_status=$?
21565
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566
 
  (exit $ac_status); }; }; then
 
20562
  (exit $ac_status); } && {
 
20563
         test -z "$ac_c_werror_flag" ||
 
20564
         test ! -s conftest.err
 
20565
       } && test -s conftest.$ac_objext; then
21567
20566
  gt_cv_var_environ_declaration=no
21568
20567
else
21569
20568
  echo "$as_me: failed program was:" >&5
21570
20569
sed 's/^/| /' conftest.$ac_ext >&5
21571
20570
 
21572
 
gt_cv_var_environ_declaration=yes
21573
 
fi
21574
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21575
 
fi
21576
 
 
21577
 
  echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
21578
 
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
 
20571
        gt_cv_var_environ_declaration=yes
 
20572
fi
 
20573
 
 
20574
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20575
fi
 
20576
 
 
20577
  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
 
20578
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
21579
20579
  if test $gt_cv_var_environ_declaration = yes; then
21580
20580
 
21581
20581
cat >>confdefs.h <<\_ACEOF
21586
20586
 
21587
20587
 
21588
20588
  else
21589
 
    echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
21590
 
echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
 
20589
    { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
 
20590
echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
21591
20591
if test "${gt_cv_func_unsetenv_ret+set}" = set; then
21592
20592
  echo $ECHO_N "(cached) $ECHO_C" >&6
21593
20593
else
21617
20617
}
21618
20618
_ACEOF
21619
20619
rm -f conftest.$ac_objext
21620
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21621
 
  (eval $ac_compile) 2>conftest.er1
 
20620
if { (ac_try="$ac_compile"
 
20621
case "(($ac_try" in
 
20622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20623
  *) ac_try_echo=$ac_try;;
 
20624
esac
 
20625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20626
  (eval "$ac_compile") 2>conftest.er1
21622
20627
  ac_status=$?
21623
20628
  grep -v '^ *+' conftest.er1 >conftest.err
21624
20629
  rm -f conftest.er1
21625
20630
  cat conftest.err >&5
21626
20631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627
 
  (exit $ac_status); } &&
21628
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21629
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630
 
  (eval $ac_try) 2>&5
21631
 
  ac_status=$?
21632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633
 
  (exit $ac_status); }; } &&
21634
 
         { ac_try='test -s conftest.$ac_objext'
21635
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636
 
  (eval $ac_try) 2>&5
21637
 
  ac_status=$?
21638
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639
 
  (exit $ac_status); }; }; then
 
20632
  (exit $ac_status); } && {
 
20633
         test -z "$ac_c_werror_flag" ||
 
20634
         test ! -s conftest.err
 
20635
       } && test -s conftest.$ac_objext; then
21640
20636
  gt_cv_func_unsetenv_ret='int'
21641
20637
else
21642
20638
  echo "$as_me: failed program was:" >&5
21643
20639
sed 's/^/| /' conftest.$ac_ext >&5
21644
20640
 
21645
 
gt_cv_func_unsetenv_ret='void'
21646
 
fi
21647
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21648
 
fi
21649
 
echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
21650
 
echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
 
20641
        gt_cv_func_unsetenv_ret='void'
 
20642
fi
 
20643
 
 
20644
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20645
fi
 
20646
{ echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
 
20647
echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
21651
20648
    if test $gt_cv_func_unsetenv_ret = 'void'; then
21652
20649
 
21653
20650
cat >>confdefs.h <<\_ACEOF
21662
20659
for ac_header in stdint.h
21663
20660
do
21664
20661
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21665
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21666
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
21667
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21668
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20662
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20663
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20664
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20665
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21669
20666
  echo $ECHO_N "(cached) $ECHO_C" >&6
21670
20667
fi
21671
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21672
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20668
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20669
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20670
echo "${ECHO_T}$ac_res" >&6; }
21673
20671
else
21674
20672
  # Is the header compilable?
21675
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21676
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20673
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20674
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21677
20675
cat >conftest.$ac_ext <<_ACEOF
21678
20676
/* confdefs.h.  */
21679
20677
_ACEOF
21684
20682
#include <$ac_header>
21685
20683
_ACEOF
21686
20684
rm -f conftest.$ac_objext
21687
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21688
 
  (eval $ac_compile) 2>conftest.er1
 
20685
if { (ac_try="$ac_compile"
 
20686
case "(($ac_try" in
 
20687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20688
  *) ac_try_echo=$ac_try;;
 
20689
esac
 
20690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20691
  (eval "$ac_compile") 2>conftest.er1
21689
20692
  ac_status=$?
21690
20693
  grep -v '^ *+' conftest.er1 >conftest.err
21691
20694
  rm -f conftest.er1
21692
20695
  cat conftest.err >&5
21693
20696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694
 
  (exit $ac_status); } &&
21695
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21696
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697
 
  (eval $ac_try) 2>&5
21698
 
  ac_status=$?
21699
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700
 
  (exit $ac_status); }; } &&
21701
 
         { ac_try='test -s conftest.$ac_objext'
21702
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703
 
  (eval $ac_try) 2>&5
21704
 
  ac_status=$?
21705
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706
 
  (exit $ac_status); }; }; then
 
20697
  (exit $ac_status); } && {
 
20698
         test -z "$ac_c_werror_flag" ||
 
20699
         test ! -s conftest.err
 
20700
       } && test -s conftest.$ac_objext; then
21707
20701
  ac_header_compiler=yes
21708
20702
else
21709
20703
  echo "$as_me: failed program was:" >&5
21710
20704
sed 's/^/| /' conftest.$ac_ext >&5
21711
20705
 
21712
 
ac_header_compiler=no
 
20706
        ac_header_compiler=no
21713
20707
fi
21714
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21715
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21716
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
20708
 
 
20709
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20710
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20711
echo "${ECHO_T}$ac_header_compiler" >&6; }
21717
20712
 
21718
20713
# Is the header present?
21719
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21720
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20714
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20715
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21721
20716
cat >conftest.$ac_ext <<_ACEOF
21722
20717
/* confdefs.h.  */
21723
20718
_ACEOF
21726
20721
/* end confdefs.h.  */
21727
20722
#include <$ac_header>
21728
20723
_ACEOF
21729
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21730
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20724
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20725
case "(($ac_try" in
 
20726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20727
  *) ac_try_echo=$ac_try;;
 
20728
esac
 
20729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20730
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21731
20731
  ac_status=$?
21732
20732
  grep -v '^ *+' conftest.er1 >conftest.err
21733
20733
  rm -f conftest.er1
21734
20734
  cat conftest.err >&5
21735
20735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736
 
  (exit $ac_status); } >/dev/null; then
21737
 
  if test -s conftest.err; then
21738
 
    ac_cpp_err=$ac_c_preproc_warn_flag
21739
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21740
 
  else
21741
 
    ac_cpp_err=
21742
 
  fi
21743
 
else
21744
 
  ac_cpp_err=yes
21745
 
fi
21746
 
if test -z "$ac_cpp_err"; then
 
20736
  (exit $ac_status); } >/dev/null && {
 
20737
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20738
         test ! -s conftest.err
 
20739
       }; then
21747
20740
  ac_header_preproc=yes
21748
20741
else
21749
20742
  echo "$as_me: failed program was:" >&5
21751
20744
 
21752
20745
  ac_header_preproc=no
21753
20746
fi
 
20747
 
21754
20748
rm -f conftest.err conftest.$ac_ext
21755
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21756
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
20749
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20750
echo "${ECHO_T}$ac_header_preproc" >&6; }
21757
20751
 
21758
20752
# So?  What about this header?
21759
20753
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21777
20771
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21778
20772
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21779
20773
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21780
 
    (
21781
 
      cat <<\_ASBOX
21782
 
## ------------------------------------ ##
21783
 
## Report this to gnupg-devel@gnupg.org ##
21784
 
## ------------------------------------ ##
 
20774
    ( cat <<\_ASBOX
 
20775
## ---------------------------------- ##
 
20776
## Report this to bug-gnupg@gnupg.org ##
 
20777
## ---------------------------------- ##
21785
20778
_ASBOX
21786
 
    ) |
21787
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
20779
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21788
20780
    ;;
21789
20781
esac
21790
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
21791
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21792
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20782
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20783
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20784
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21793
20785
  echo $ECHO_N "(cached) $ECHO_C" >&6
21794
20786
else
21795
20787
  eval "$as_ac_Header=\$ac_header_preproc"
21796
20788
fi
21797
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21798
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20789
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20790
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20791
echo "${ECHO_T}$ac_res" >&6; }
21799
20792
 
21800
20793
fi
21801
20794
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21807
20800
 
21808
20801
done
21809
20802
 
21810
 
    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
21811
 
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
21812
 
  result=
21813
 
  cat >conftest.$ac_ext <<_ACEOF
 
20803
    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
20804
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
 
20805
  if test "${gl_cv_size_max+set}" = set; then
 
20806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20807
else
 
20808
 
 
20809
    gl_cv_size_max=
 
20810
    cat >conftest.$ac_ext <<_ACEOF
21814
20811
/* confdefs.h.  */
21815
20812
_ACEOF
21816
20813
cat confdefs.h >>conftest.$ac_ext
21828
20825
_ACEOF
21829
20826
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21830
20827
  $EGREP "Found it" >/dev/null 2>&1; then
21831
 
  result=yes
 
20828
  gl_cv_size_max=yes
21832
20829
fi
21833
20830
rm -f conftest*
21834
20831
 
21835
 
  if test -z "$result"; then
21836
 
                    if test "$cross_compiling" = yes; then
21837
 
  # Depending upon the size, compute the lo and hi bounds.
21838
 
cat >conftest.$ac_ext <<_ACEOF
21839
 
/* confdefs.h.  */
21840
 
_ACEOF
21841
 
cat confdefs.h >>conftest.$ac_ext
21842
 
cat >>conftest.$ac_ext <<_ACEOF
21843
 
/* end confdefs.h.  */
21844
 
#include <stddef.h>
21845
 
int
21846
 
main ()
21847
 
{
21848
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
21849
 
test_array [0] = 0
21850
 
 
21851
 
  ;
21852
 
  return 0;
21853
 
}
21854
 
_ACEOF
21855
 
rm -f conftest.$ac_objext
21856
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21857
 
  (eval $ac_compile) 2>conftest.er1
21858
 
  ac_status=$?
21859
 
  grep -v '^ *+' conftest.er1 >conftest.err
21860
 
  rm -f conftest.er1
21861
 
  cat conftest.err >&5
21862
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863
 
  (exit $ac_status); } &&
21864
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21865
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866
 
  (eval $ac_try) 2>&5
21867
 
  ac_status=$?
21868
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869
 
  (exit $ac_status); }; } &&
21870
 
         { ac_try='test -s conftest.$ac_objext'
21871
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872
 
  (eval $ac_try) 2>&5
21873
 
  ac_status=$?
21874
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875
 
  (exit $ac_status); }; }; then
21876
 
  ac_lo=0 ac_mid=0
21877
 
  while :; do
21878
 
    cat >conftest.$ac_ext <<_ACEOF
21879
 
/* confdefs.h.  */
21880
 
_ACEOF
21881
 
cat confdefs.h >>conftest.$ac_ext
21882
 
cat >>conftest.$ac_ext <<_ACEOF
21883
 
/* end confdefs.h.  */
21884
 
#include <stddef.h>
21885
 
int
21886
 
main ()
21887
 
{
21888
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21889
 
test_array [0] = 0
21890
 
 
21891
 
  ;
21892
 
  return 0;
21893
 
}
21894
 
_ACEOF
21895
 
rm -f conftest.$ac_objext
21896
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21897
 
  (eval $ac_compile) 2>conftest.er1
21898
 
  ac_status=$?
21899
 
  grep -v '^ *+' conftest.er1 >conftest.err
21900
 
  rm -f conftest.er1
21901
 
  cat conftest.err >&5
21902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903
 
  (exit $ac_status); } &&
21904
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21905
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906
 
  (eval $ac_try) 2>&5
21907
 
  ac_status=$?
21908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909
 
  (exit $ac_status); }; } &&
21910
 
         { ac_try='test -s conftest.$ac_objext'
21911
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912
 
  (eval $ac_try) 2>&5
21913
 
  ac_status=$?
21914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915
 
  (exit $ac_status); }; }; then
21916
 
  ac_hi=$ac_mid; break
21917
 
else
21918
 
  echo "$as_me: failed program was:" >&5
21919
 
sed 's/^/| /' conftest.$ac_ext >&5
21920
 
 
21921
 
ac_lo=`expr $ac_mid + 1`
21922
 
                    if test $ac_lo -le $ac_mid; then
21923
 
                      ac_lo= ac_hi=
21924
 
                      break
21925
 
                    fi
21926
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
21927
 
fi
21928
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21929
 
  done
21930
 
else
21931
 
  echo "$as_me: failed program was:" >&5
21932
 
sed 's/^/| /' conftest.$ac_ext >&5
21933
 
 
21934
 
cat >conftest.$ac_ext <<_ACEOF
21935
 
/* confdefs.h.  */
21936
 
_ACEOF
21937
 
cat confdefs.h >>conftest.$ac_ext
21938
 
cat >>conftest.$ac_ext <<_ACEOF
21939
 
/* end confdefs.h.  */
21940
 
#include <stddef.h>
21941
 
int
21942
 
main ()
21943
 
{
21944
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
21945
 
test_array [0] = 0
21946
 
 
21947
 
  ;
21948
 
  return 0;
21949
 
}
21950
 
_ACEOF
21951
 
rm -f conftest.$ac_objext
21952
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21953
 
  (eval $ac_compile) 2>conftest.er1
21954
 
  ac_status=$?
21955
 
  grep -v '^ *+' conftest.er1 >conftest.err
21956
 
  rm -f conftest.er1
21957
 
  cat conftest.err >&5
21958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959
 
  (exit $ac_status); } &&
21960
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21961
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962
 
  (eval $ac_try) 2>&5
21963
 
  ac_status=$?
21964
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965
 
  (exit $ac_status); }; } &&
21966
 
         { ac_try='test -s conftest.$ac_objext'
21967
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968
 
  (eval $ac_try) 2>&5
21969
 
  ac_status=$?
21970
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971
 
  (exit $ac_status); }; }; then
21972
 
  ac_hi=-1 ac_mid=-1
21973
 
  while :; do
21974
 
    cat >conftest.$ac_ext <<_ACEOF
21975
 
/* confdefs.h.  */
21976
 
_ACEOF
21977
 
cat confdefs.h >>conftest.$ac_ext
21978
 
cat >>conftest.$ac_ext <<_ACEOF
21979
 
/* end confdefs.h.  */
21980
 
#include <stddef.h>
21981
 
int
21982
 
main ()
21983
 
{
21984
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21985
 
test_array [0] = 0
21986
 
 
21987
 
  ;
21988
 
  return 0;
21989
 
}
21990
 
_ACEOF
21991
 
rm -f conftest.$ac_objext
21992
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993
 
  (eval $ac_compile) 2>conftest.er1
21994
 
  ac_status=$?
21995
 
  grep -v '^ *+' conftest.er1 >conftest.err
21996
 
  rm -f conftest.er1
21997
 
  cat conftest.err >&5
21998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999
 
  (exit $ac_status); } &&
22000
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22001
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002
 
  (eval $ac_try) 2>&5
22003
 
  ac_status=$?
22004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005
 
  (exit $ac_status); }; } &&
22006
 
         { ac_try='test -s conftest.$ac_objext'
22007
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008
 
  (eval $ac_try) 2>&5
22009
 
  ac_status=$?
22010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011
 
  (exit $ac_status); }; }; then
22012
 
  ac_lo=$ac_mid; break
22013
 
else
22014
 
  echo "$as_me: failed program was:" >&5
22015
 
sed 's/^/| /' conftest.$ac_ext >&5
22016
 
 
22017
 
ac_hi=`expr '(' $ac_mid ')' - 1`
22018
 
                       if test $ac_mid -le $ac_hi; then
22019
 
                         ac_lo= ac_hi=
22020
 
                         break
22021
 
                       fi
22022
 
                       ac_mid=`expr 2 '*' $ac_mid`
22023
 
fi
22024
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22025
 
  done
22026
 
else
22027
 
  echo "$as_me: failed program was:" >&5
22028
 
sed 's/^/| /' conftest.$ac_ext >&5
22029
 
 
22030
 
ac_lo= ac_hi=
22031
 
fi
22032
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22033
 
fi
22034
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22035
 
# Binary search between lo and hi bounds.
22036
 
while test "x$ac_lo" != "x$ac_hi"; do
22037
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22038
 
  cat >conftest.$ac_ext <<_ACEOF
22039
 
/* confdefs.h.  */
22040
 
_ACEOF
22041
 
cat confdefs.h >>conftest.$ac_ext
22042
 
cat >>conftest.$ac_ext <<_ACEOF
22043
 
/* end confdefs.h.  */
22044
 
#include <stddef.h>
22045
 
int
22046
 
main ()
22047
 
{
22048
 
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
22049
 
test_array [0] = 0
22050
 
 
22051
 
  ;
22052
 
  return 0;
22053
 
}
22054
 
_ACEOF
22055
 
rm -f conftest.$ac_objext
22056
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22057
 
  (eval $ac_compile) 2>conftest.er1
22058
 
  ac_status=$?
22059
 
  grep -v '^ *+' conftest.er1 >conftest.err
22060
 
  rm -f conftest.er1
22061
 
  cat conftest.err >&5
22062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063
 
  (exit $ac_status); } &&
22064
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22065
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066
 
  (eval $ac_try) 2>&5
22067
 
  ac_status=$?
22068
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069
 
  (exit $ac_status); }; } &&
22070
 
         { ac_try='test -s conftest.$ac_objext'
22071
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072
 
  (eval $ac_try) 2>&5
22073
 
  ac_status=$?
22074
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075
 
  (exit $ac_status); }; }; then
22076
 
  ac_hi=$ac_mid
22077
 
else
22078
 
  echo "$as_me: failed program was:" >&5
22079
 
sed 's/^/| /' conftest.$ac_ext >&5
22080
 
 
22081
 
ac_lo=`expr '(' $ac_mid ')' + 1`
22082
 
fi
22083
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22084
 
done
22085
 
case $ac_lo in
22086
 
?*) res_hi=$ac_lo;;
22087
 
'') result=? ;;
22088
 
esac
22089
 
else
22090
 
  if test "$cross_compiling" = yes; then
22091
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22092
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22093
 
   { (exit 1); exit 1; }; }
22094
 
else
22095
 
  cat >conftest.$ac_ext <<_ACEOF
22096
 
/* confdefs.h.  */
22097
 
_ACEOF
22098
 
cat confdefs.h >>conftest.$ac_ext
22099
 
cat >>conftest.$ac_ext <<_ACEOF
22100
 
/* end confdefs.h.  */
22101
 
#include <stddef.h>
22102
 
long longval () { return ~(size_t)0 / 10; }
22103
 
unsigned long ulongval () { return ~(size_t)0 / 10; }
22104
 
#include <stdio.h>
22105
 
#include <stdlib.h>
22106
 
int
22107
 
main ()
22108
 
{
22109
 
 
22110
 
  FILE *f = fopen ("conftest.val", "w");
22111
 
  if (! f)
22112
 
    exit (1);
22113
 
  if ((~(size_t)0 / 10) < 0)
22114
 
    {
22115
 
      long i = longval ();
22116
 
      if (i != (~(size_t)0 / 10))
22117
 
        exit (1);
22118
 
      fprintf (f, "%ld\n", i);
22119
 
    }
22120
 
  else
22121
 
    {
22122
 
      unsigned long i = ulongval ();
22123
 
      if (i != (~(size_t)0 / 10))
22124
 
        exit (1);
22125
 
      fprintf (f, "%lu\n", i);
22126
 
    }
22127
 
  exit (ferror (f) || fclose (f) != 0);
22128
 
 
22129
 
  ;
22130
 
  return 0;
22131
 
}
22132
 
_ACEOF
22133
 
rm -f conftest$ac_exeext
22134
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22135
 
  (eval $ac_link) 2>&5
22136
 
  ac_status=$?
22137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22139
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140
 
  (eval $ac_try) 2>&5
22141
 
  ac_status=$?
22142
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143
 
  (exit $ac_status); }; }; then
22144
 
  res_hi=`cat conftest.val`
22145
 
else
22146
 
  echo "$as_me: program exited with status $ac_status" >&5
22147
 
echo "$as_me: failed program was:" >&5
22148
 
sed 's/^/| /' conftest.$ac_ext >&5
22149
 
 
22150
 
( exit $ac_status )
22151
 
result=?
22152
 
fi
22153
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22154
 
fi
22155
 
fi
22156
 
rm -f conftest.val
22157
 
    if test "$cross_compiling" = yes; then
22158
 
  # Depending upon the size, compute the lo and hi bounds.
22159
 
cat >conftest.$ac_ext <<_ACEOF
22160
 
/* confdefs.h.  */
22161
 
_ACEOF
22162
 
cat confdefs.h >>conftest.$ac_ext
22163
 
cat >>conftest.$ac_ext <<_ACEOF
22164
 
/* end confdefs.h.  */
22165
 
#include <stddef.h>
22166
 
int
22167
 
main ()
22168
 
{
22169
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
22170
 
test_array [0] = 0
22171
 
 
22172
 
  ;
22173
 
  return 0;
22174
 
}
22175
 
_ACEOF
22176
 
rm -f conftest.$ac_objext
22177
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22178
 
  (eval $ac_compile) 2>conftest.er1
22179
 
  ac_status=$?
22180
 
  grep -v '^ *+' conftest.er1 >conftest.err
22181
 
  rm -f conftest.er1
22182
 
  cat conftest.err >&5
22183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184
 
  (exit $ac_status); } &&
22185
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22186
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187
 
  (eval $ac_try) 2>&5
22188
 
  ac_status=$?
22189
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190
 
  (exit $ac_status); }; } &&
22191
 
         { ac_try='test -s conftest.$ac_objext'
22192
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193
 
  (eval $ac_try) 2>&5
22194
 
  ac_status=$?
22195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196
 
  (exit $ac_status); }; }; then
22197
 
  ac_lo=0 ac_mid=0
22198
 
  while :; do
22199
 
    cat >conftest.$ac_ext <<_ACEOF
22200
 
/* confdefs.h.  */
22201
 
_ACEOF
22202
 
cat confdefs.h >>conftest.$ac_ext
22203
 
cat >>conftest.$ac_ext <<_ACEOF
22204
 
/* end confdefs.h.  */
22205
 
#include <stddef.h>
22206
 
int
22207
 
main ()
22208
 
{
22209
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
22210
 
test_array [0] = 0
22211
 
 
22212
 
  ;
22213
 
  return 0;
22214
 
}
22215
 
_ACEOF
22216
 
rm -f conftest.$ac_objext
22217
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22218
 
  (eval $ac_compile) 2>conftest.er1
22219
 
  ac_status=$?
22220
 
  grep -v '^ *+' conftest.er1 >conftest.err
22221
 
  rm -f conftest.er1
22222
 
  cat conftest.err >&5
22223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224
 
  (exit $ac_status); } &&
22225
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22226
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227
 
  (eval $ac_try) 2>&5
22228
 
  ac_status=$?
22229
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230
 
  (exit $ac_status); }; } &&
22231
 
         { ac_try='test -s conftest.$ac_objext'
22232
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233
 
  (eval $ac_try) 2>&5
22234
 
  ac_status=$?
22235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236
 
  (exit $ac_status); }; }; then
22237
 
  ac_hi=$ac_mid; break
22238
 
else
22239
 
  echo "$as_me: failed program was:" >&5
22240
 
sed 's/^/| /' conftest.$ac_ext >&5
22241
 
 
22242
 
ac_lo=`expr $ac_mid + 1`
22243
 
                    if test $ac_lo -le $ac_mid; then
22244
 
                      ac_lo= ac_hi=
22245
 
                      break
22246
 
                    fi
22247
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
22248
 
fi
22249
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22250
 
  done
22251
 
else
22252
 
  echo "$as_me: failed program was:" >&5
22253
 
sed 's/^/| /' conftest.$ac_ext >&5
22254
 
 
22255
 
cat >conftest.$ac_ext <<_ACEOF
22256
 
/* confdefs.h.  */
22257
 
_ACEOF
22258
 
cat confdefs.h >>conftest.$ac_ext
22259
 
cat >>conftest.$ac_ext <<_ACEOF
22260
 
/* end confdefs.h.  */
22261
 
#include <stddef.h>
22262
 
int
22263
 
main ()
22264
 
{
22265
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
22266
 
test_array [0] = 0
22267
 
 
22268
 
  ;
22269
 
  return 0;
22270
 
}
22271
 
_ACEOF
22272
 
rm -f conftest.$ac_objext
22273
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22274
 
  (eval $ac_compile) 2>conftest.er1
22275
 
  ac_status=$?
22276
 
  grep -v '^ *+' conftest.er1 >conftest.err
22277
 
  rm -f conftest.er1
22278
 
  cat conftest.err >&5
22279
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280
 
  (exit $ac_status); } &&
22281
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22282
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283
 
  (eval $ac_try) 2>&5
22284
 
  ac_status=$?
22285
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286
 
  (exit $ac_status); }; } &&
22287
 
         { ac_try='test -s conftest.$ac_objext'
22288
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289
 
  (eval $ac_try) 2>&5
22290
 
  ac_status=$?
22291
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292
 
  (exit $ac_status); }; }; then
22293
 
  ac_hi=-1 ac_mid=-1
22294
 
  while :; do
22295
 
    cat >conftest.$ac_ext <<_ACEOF
22296
 
/* confdefs.h.  */
22297
 
_ACEOF
22298
 
cat confdefs.h >>conftest.$ac_ext
22299
 
cat >>conftest.$ac_ext <<_ACEOF
22300
 
/* end confdefs.h.  */
22301
 
#include <stddef.h>
22302
 
int
22303
 
main ()
22304
 
{
22305
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
22306
 
test_array [0] = 0
22307
 
 
22308
 
  ;
22309
 
  return 0;
22310
 
}
22311
 
_ACEOF
22312
 
rm -f conftest.$ac_objext
22313
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22314
 
  (eval $ac_compile) 2>conftest.er1
22315
 
  ac_status=$?
22316
 
  grep -v '^ *+' conftest.er1 >conftest.err
22317
 
  rm -f conftest.er1
22318
 
  cat conftest.err >&5
22319
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320
 
  (exit $ac_status); } &&
22321
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22322
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323
 
  (eval $ac_try) 2>&5
22324
 
  ac_status=$?
22325
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326
 
  (exit $ac_status); }; } &&
22327
 
         { ac_try='test -s conftest.$ac_objext'
22328
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329
 
  (eval $ac_try) 2>&5
22330
 
  ac_status=$?
22331
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332
 
  (exit $ac_status); }; }; then
22333
 
  ac_lo=$ac_mid; break
22334
 
else
22335
 
  echo "$as_me: failed program was:" >&5
22336
 
sed 's/^/| /' conftest.$ac_ext >&5
22337
 
 
22338
 
ac_hi=`expr '(' $ac_mid ')' - 1`
22339
 
                       if test $ac_mid -le $ac_hi; then
22340
 
                         ac_lo= ac_hi=
22341
 
                         break
22342
 
                       fi
22343
 
                       ac_mid=`expr 2 '*' $ac_mid`
22344
 
fi
22345
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22346
 
  done
22347
 
else
22348
 
  echo "$as_me: failed program was:" >&5
22349
 
sed 's/^/| /' conftest.$ac_ext >&5
22350
 
 
22351
 
ac_lo= ac_hi=
22352
 
fi
22353
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22354
 
fi
22355
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22356
 
# Binary search between lo and hi bounds.
22357
 
while test "x$ac_lo" != "x$ac_hi"; do
22358
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22359
 
  cat >conftest.$ac_ext <<_ACEOF
22360
 
/* confdefs.h.  */
22361
 
_ACEOF
22362
 
cat confdefs.h >>conftest.$ac_ext
22363
 
cat >>conftest.$ac_ext <<_ACEOF
22364
 
/* end confdefs.h.  */
22365
 
#include <stddef.h>
22366
 
int
22367
 
main ()
22368
 
{
22369
 
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
22370
 
test_array [0] = 0
22371
 
 
22372
 
  ;
22373
 
  return 0;
22374
 
}
22375
 
_ACEOF
22376
 
rm -f conftest.$ac_objext
22377
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22378
 
  (eval $ac_compile) 2>conftest.er1
22379
 
  ac_status=$?
22380
 
  grep -v '^ *+' conftest.er1 >conftest.err
22381
 
  rm -f conftest.er1
22382
 
  cat conftest.err >&5
22383
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384
 
  (exit $ac_status); } &&
22385
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22386
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387
 
  (eval $ac_try) 2>&5
22388
 
  ac_status=$?
22389
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390
 
  (exit $ac_status); }; } &&
22391
 
         { ac_try='test -s conftest.$ac_objext'
22392
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393
 
  (eval $ac_try) 2>&5
22394
 
  ac_status=$?
22395
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396
 
  (exit $ac_status); }; }; then
22397
 
  ac_hi=$ac_mid
22398
 
else
22399
 
  echo "$as_me: failed program was:" >&5
22400
 
sed 's/^/| /' conftest.$ac_ext >&5
22401
 
 
22402
 
ac_lo=`expr '(' $ac_mid ')' + 1`
22403
 
fi
22404
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22405
 
done
22406
 
case $ac_lo in
22407
 
?*) res_lo=$ac_lo;;
22408
 
'') result=? ;;
22409
 
esac
22410
 
else
22411
 
  if test "$cross_compiling" = yes; then
22412
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22413
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22414
 
   { (exit 1); exit 1; }; }
22415
 
else
22416
 
  cat >conftest.$ac_ext <<_ACEOF
22417
 
/* confdefs.h.  */
22418
 
_ACEOF
22419
 
cat confdefs.h >>conftest.$ac_ext
22420
 
cat >>conftest.$ac_ext <<_ACEOF
22421
 
/* end confdefs.h.  */
22422
 
#include <stddef.h>
22423
 
long longval () { return ~(size_t)0 % 10; }
22424
 
unsigned long ulongval () { return ~(size_t)0 % 10; }
22425
 
#include <stdio.h>
22426
 
#include <stdlib.h>
22427
 
int
22428
 
main ()
22429
 
{
22430
 
 
22431
 
  FILE *f = fopen ("conftest.val", "w");
22432
 
  if (! f)
22433
 
    exit (1);
22434
 
  if ((~(size_t)0 % 10) < 0)
22435
 
    {
22436
 
      long i = longval ();
22437
 
      if (i != (~(size_t)0 % 10))
22438
 
        exit (1);
22439
 
      fprintf (f, "%ld\n", i);
22440
 
    }
22441
 
  else
22442
 
    {
22443
 
      unsigned long i = ulongval ();
22444
 
      if (i != (~(size_t)0 % 10))
22445
 
        exit (1);
22446
 
      fprintf (f, "%lu\n", i);
22447
 
    }
22448
 
  exit (ferror (f) || fclose (f) != 0);
22449
 
 
22450
 
  ;
22451
 
  return 0;
22452
 
}
22453
 
_ACEOF
22454
 
rm -f conftest$ac_exeext
22455
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22456
 
  (eval $ac_link) 2>&5
22457
 
  ac_status=$?
22458
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22460
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461
 
  (eval $ac_try) 2>&5
22462
 
  ac_status=$?
22463
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464
 
  (exit $ac_status); }; }; then
22465
 
  res_lo=`cat conftest.val`
22466
 
else
22467
 
  echo "$as_me: program exited with status $ac_status" >&5
22468
 
echo "$as_me: failed program was:" >&5
22469
 
sed 's/^/| /' conftest.$ac_ext >&5
22470
 
 
22471
 
( exit $ac_status )
22472
 
result=?
22473
 
fi
22474
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22475
 
fi
22476
 
fi
22477
 
rm -f conftest.val
22478
 
    if test "$cross_compiling" = yes; then
 
20832
    if test -z "$gl_cv_size_max"; then
 
20833
                        if test "$cross_compiling" = yes; then
 
20834
  # Depending upon the size, compute the lo and hi bounds.
 
20835
cat >conftest.$ac_ext <<_ACEOF
 
20836
/* confdefs.h.  */
 
20837
_ACEOF
 
20838
cat confdefs.h >>conftest.$ac_ext
 
20839
cat >>conftest.$ac_ext <<_ACEOF
 
20840
/* end confdefs.h.  */
 
20841
#include <stddef.h>
 
20842
#include <limits.h>
 
20843
int
 
20844
main ()
 
20845
{
 
20846
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
 
20847
test_array [0] = 0
 
20848
 
 
20849
  ;
 
20850
  return 0;
 
20851
}
 
20852
_ACEOF
 
20853
rm -f conftest.$ac_objext
 
20854
if { (ac_try="$ac_compile"
 
20855
case "(($ac_try" in
 
20856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20857
  *) ac_try_echo=$ac_try;;
 
20858
esac
 
20859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20860
  (eval "$ac_compile") 2>conftest.er1
 
20861
  ac_status=$?
 
20862
  grep -v '^ *+' conftest.er1 >conftest.err
 
20863
  rm -f conftest.er1
 
20864
  cat conftest.err >&5
 
20865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20866
  (exit $ac_status); } && {
 
20867
         test -z "$ac_c_werror_flag" ||
 
20868
         test ! -s conftest.err
 
20869
       } && test -s conftest.$ac_objext; then
 
20870
  ac_lo=0 ac_mid=0
 
20871
  while :; do
 
20872
    cat >conftest.$ac_ext <<_ACEOF
 
20873
/* confdefs.h.  */
 
20874
_ACEOF
 
20875
cat confdefs.h >>conftest.$ac_ext
 
20876
cat >>conftest.$ac_ext <<_ACEOF
 
20877
/* end confdefs.h.  */
 
20878
#include <stddef.h>
 
20879
#include <limits.h>
 
20880
int
 
20881
main ()
 
20882
{
 
20883
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
20884
test_array [0] = 0
 
20885
 
 
20886
  ;
 
20887
  return 0;
 
20888
}
 
20889
_ACEOF
 
20890
rm -f conftest.$ac_objext
 
20891
if { (ac_try="$ac_compile"
 
20892
case "(($ac_try" in
 
20893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20894
  *) ac_try_echo=$ac_try;;
 
20895
esac
 
20896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20897
  (eval "$ac_compile") 2>conftest.er1
 
20898
  ac_status=$?
 
20899
  grep -v '^ *+' conftest.er1 >conftest.err
 
20900
  rm -f conftest.er1
 
20901
  cat conftest.err >&5
 
20902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20903
  (exit $ac_status); } && {
 
20904
         test -z "$ac_c_werror_flag" ||
 
20905
         test ! -s conftest.err
 
20906
       } && test -s conftest.$ac_objext; then
 
20907
  ac_hi=$ac_mid; break
 
20908
else
 
20909
  echo "$as_me: failed program was:" >&5
 
20910
sed 's/^/| /' conftest.$ac_ext >&5
 
20911
 
 
20912
        ac_lo=`expr $ac_mid + 1`
 
20913
                        if test $ac_lo -le $ac_mid; then
 
20914
                          ac_lo= ac_hi=
 
20915
                          break
 
20916
                        fi
 
20917
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
20918
fi
 
20919
 
 
20920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20921
  done
 
20922
else
 
20923
  echo "$as_me: failed program was:" >&5
 
20924
sed 's/^/| /' conftest.$ac_ext >&5
 
20925
 
 
20926
        cat >conftest.$ac_ext <<_ACEOF
 
20927
/* confdefs.h.  */
 
20928
_ACEOF
 
20929
cat confdefs.h >>conftest.$ac_ext
 
20930
cat >>conftest.$ac_ext <<_ACEOF
 
20931
/* end confdefs.h.  */
 
20932
#include <stddef.h>
 
20933
#include <limits.h>
 
20934
int
 
20935
main ()
 
20936
{
 
20937
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
 
20938
test_array [0] = 0
 
20939
 
 
20940
  ;
 
20941
  return 0;
 
20942
}
 
20943
_ACEOF
 
20944
rm -f conftest.$ac_objext
 
20945
if { (ac_try="$ac_compile"
 
20946
case "(($ac_try" in
 
20947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20948
  *) ac_try_echo=$ac_try;;
 
20949
esac
 
20950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20951
  (eval "$ac_compile") 2>conftest.er1
 
20952
  ac_status=$?
 
20953
  grep -v '^ *+' conftest.er1 >conftest.err
 
20954
  rm -f conftest.er1
 
20955
  cat conftest.err >&5
 
20956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20957
  (exit $ac_status); } && {
 
20958
         test -z "$ac_c_werror_flag" ||
 
20959
         test ! -s conftest.err
 
20960
       } && test -s conftest.$ac_objext; then
 
20961
  ac_hi=-1 ac_mid=-1
 
20962
  while :; do
 
20963
    cat >conftest.$ac_ext <<_ACEOF
 
20964
/* confdefs.h.  */
 
20965
_ACEOF
 
20966
cat confdefs.h >>conftest.$ac_ext
 
20967
cat >>conftest.$ac_ext <<_ACEOF
 
20968
/* end confdefs.h.  */
 
20969
#include <stddef.h>
 
20970
#include <limits.h>
 
20971
int
 
20972
main ()
 
20973
{
 
20974
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
 
20975
test_array [0] = 0
 
20976
 
 
20977
  ;
 
20978
  return 0;
 
20979
}
 
20980
_ACEOF
 
20981
rm -f conftest.$ac_objext
 
20982
if { (ac_try="$ac_compile"
 
20983
case "(($ac_try" in
 
20984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20985
  *) ac_try_echo=$ac_try;;
 
20986
esac
 
20987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20988
  (eval "$ac_compile") 2>conftest.er1
 
20989
  ac_status=$?
 
20990
  grep -v '^ *+' conftest.er1 >conftest.err
 
20991
  rm -f conftest.er1
 
20992
  cat conftest.err >&5
 
20993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20994
  (exit $ac_status); } && {
 
20995
         test -z "$ac_c_werror_flag" ||
 
20996
         test ! -s conftest.err
 
20997
       } && test -s conftest.$ac_objext; then
 
20998
  ac_lo=$ac_mid; break
 
20999
else
 
21000
  echo "$as_me: failed program was:" >&5
 
21001
sed 's/^/| /' conftest.$ac_ext >&5
 
21002
 
 
21003
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
21004
                        if test $ac_mid -le $ac_hi; then
 
21005
                          ac_lo= ac_hi=
 
21006
                          break
 
21007
                        fi
 
21008
                        ac_mid=`expr 2 '*' $ac_mid`
 
21009
fi
 
21010
 
 
21011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21012
  done
 
21013
else
 
21014
  echo "$as_me: failed program was:" >&5
 
21015
sed 's/^/| /' conftest.$ac_ext >&5
 
21016
 
 
21017
        ac_lo= ac_hi=
 
21018
fi
 
21019
 
 
21020
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21021
fi
 
21022
 
 
21023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21024
# Binary search between lo and hi bounds.
 
21025
while test "x$ac_lo" != "x$ac_hi"; do
 
21026
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21027
  cat >conftest.$ac_ext <<_ACEOF
 
21028
/* confdefs.h.  */
 
21029
_ACEOF
 
21030
cat confdefs.h >>conftest.$ac_ext
 
21031
cat >>conftest.$ac_ext <<_ACEOF
 
21032
/* end confdefs.h.  */
 
21033
#include <stddef.h>
 
21034
#include <limits.h>
 
21035
int
 
21036
main ()
 
21037
{
 
21038
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
 
21039
test_array [0] = 0
 
21040
 
 
21041
  ;
 
21042
  return 0;
 
21043
}
 
21044
_ACEOF
 
21045
rm -f conftest.$ac_objext
 
21046
if { (ac_try="$ac_compile"
 
21047
case "(($ac_try" in
 
21048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21049
  *) ac_try_echo=$ac_try;;
 
21050
esac
 
21051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21052
  (eval "$ac_compile") 2>conftest.er1
 
21053
  ac_status=$?
 
21054
  grep -v '^ *+' conftest.er1 >conftest.err
 
21055
  rm -f conftest.er1
 
21056
  cat conftest.err >&5
 
21057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21058
  (exit $ac_status); } && {
 
21059
         test -z "$ac_c_werror_flag" ||
 
21060
         test ! -s conftest.err
 
21061
       } && test -s conftest.$ac_objext; then
 
21062
  ac_hi=$ac_mid
 
21063
else
 
21064
  echo "$as_me: failed program was:" >&5
 
21065
sed 's/^/| /' conftest.$ac_ext >&5
 
21066
 
 
21067
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
21068
fi
 
21069
 
 
21070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21071
done
 
21072
case $ac_lo in
 
21073
?*) size_t_bits_minus_1=$ac_lo;;
 
21074
'') size_t_bits_minus_1= ;;
 
21075
esac
 
21076
else
 
21077
  cat >conftest.$ac_ext <<_ACEOF
 
21078
/* confdefs.h.  */
 
21079
_ACEOF
 
21080
cat confdefs.h >>conftest.$ac_ext
 
21081
cat >>conftest.$ac_ext <<_ACEOF
 
21082
/* end confdefs.h.  */
 
21083
#include <stddef.h>
 
21084
#include <limits.h>
 
21085
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
21086
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
 
21087
#include <stdio.h>
 
21088
#include <stdlib.h>
 
21089
int
 
21090
main ()
 
21091
{
 
21092
 
 
21093
  FILE *f = fopen ("conftest.val", "w");
 
21094
  if (! f)
 
21095
    return 1;
 
21096
  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
 
21097
    {
 
21098
      long int i = longval ();
 
21099
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
21100
        return 1;
 
21101
      fprintf (f, "%ld\n", i);
 
21102
    }
 
21103
  else
 
21104
    {
 
21105
      unsigned long int i = ulongval ();
 
21106
      if (i != (sizeof (size_t) * CHAR_BIT - 1))
 
21107
        return 1;
 
21108
      fprintf (f, "%lu\n", i);
 
21109
    }
 
21110
  return ferror (f) || fclose (f) != 0;
 
21111
 
 
21112
  ;
 
21113
  return 0;
 
21114
}
 
21115
_ACEOF
 
21116
rm -f conftest$ac_exeext
 
21117
if { (ac_try="$ac_link"
 
21118
case "(($ac_try" in
 
21119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21120
  *) ac_try_echo=$ac_try;;
 
21121
esac
 
21122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21123
  (eval "$ac_link") 2>&5
 
21124
  ac_status=$?
 
21125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21126
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21127
  { (case "(($ac_try" in
 
21128
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21129
  *) ac_try_echo=$ac_try;;
 
21130
esac
 
21131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21132
  (eval "$ac_try") 2>&5
 
21133
  ac_status=$?
 
21134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21135
  (exit $ac_status); }; }; then
 
21136
  size_t_bits_minus_1=`cat conftest.val`
 
21137
else
 
21138
  echo "$as_me: program exited with status $ac_status" >&5
 
21139
echo "$as_me: failed program was:" >&5
 
21140
sed 's/^/| /' conftest.$ac_ext >&5
 
21141
 
 
21142
( exit $ac_status )
 
21143
size_t_bits_minus_1=
 
21144
fi
 
21145
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21146
fi
 
21147
rm -f conftest.val
 
21148
 
 
21149
      if test "$cross_compiling" = yes; then
22479
21150
  # Depending upon the size, compute the lo and hi bounds.
22480
21151
cat >conftest.$ac_ext <<_ACEOF
22481
21152
/* confdefs.h.  */
22495
21166
}
22496
21167
_ACEOF
22497
21168
rm -f conftest.$ac_objext
22498
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22499
 
  (eval $ac_compile) 2>conftest.er1
 
21169
if { (ac_try="$ac_compile"
 
21170
case "(($ac_try" in
 
21171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21172
  *) ac_try_echo=$ac_try;;
 
21173
esac
 
21174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21175
  (eval "$ac_compile") 2>conftest.er1
22500
21176
  ac_status=$?
22501
21177
  grep -v '^ *+' conftest.er1 >conftest.err
22502
21178
  rm -f conftest.er1
22503
21179
  cat conftest.err >&5
22504
21180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505
 
  (exit $ac_status); } &&
22506
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22507
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508
 
  (eval $ac_try) 2>&5
22509
 
  ac_status=$?
22510
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511
 
  (exit $ac_status); }; } &&
22512
 
         { ac_try='test -s conftest.$ac_objext'
22513
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514
 
  (eval $ac_try) 2>&5
22515
 
  ac_status=$?
22516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517
 
  (exit $ac_status); }; }; then
 
21181
  (exit $ac_status); } && {
 
21182
         test -z "$ac_c_werror_flag" ||
 
21183
         test ! -s conftest.err
 
21184
       } && test -s conftest.$ac_objext; then
22518
21185
  ac_lo=0 ac_mid=0
22519
21186
  while :; do
22520
21187
    cat >conftest.$ac_ext <<_ACEOF
22535
21202
}
22536
21203
_ACEOF
22537
21204
rm -f conftest.$ac_objext
22538
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22539
 
  (eval $ac_compile) 2>conftest.er1
 
21205
if { (ac_try="$ac_compile"
 
21206
case "(($ac_try" in
 
21207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21208
  *) ac_try_echo=$ac_try;;
 
21209
esac
 
21210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21211
  (eval "$ac_compile") 2>conftest.er1
22540
21212
  ac_status=$?
22541
21213
  grep -v '^ *+' conftest.er1 >conftest.err
22542
21214
  rm -f conftest.er1
22543
21215
  cat conftest.err >&5
22544
21216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545
 
  (exit $ac_status); } &&
22546
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22547
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548
 
  (eval $ac_try) 2>&5
22549
 
  ac_status=$?
22550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551
 
  (exit $ac_status); }; } &&
22552
 
         { ac_try='test -s conftest.$ac_objext'
22553
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554
 
  (eval $ac_try) 2>&5
22555
 
  ac_status=$?
22556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557
 
  (exit $ac_status); }; }; then
 
21217
  (exit $ac_status); } && {
 
21218
         test -z "$ac_c_werror_flag" ||
 
21219
         test ! -s conftest.err
 
21220
       } && test -s conftest.$ac_objext; then
22558
21221
  ac_hi=$ac_mid; break
22559
21222
else
22560
21223
  echo "$as_me: failed program was:" >&5
22561
21224
sed 's/^/| /' conftest.$ac_ext >&5
22562
21225
 
22563
 
ac_lo=`expr $ac_mid + 1`
22564
 
                    if test $ac_lo -le $ac_mid; then
22565
 
                      ac_lo= ac_hi=
22566
 
                      break
22567
 
                    fi
22568
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
21226
        ac_lo=`expr $ac_mid + 1`
 
21227
                        if test $ac_lo -le $ac_mid; then
 
21228
                          ac_lo= ac_hi=
 
21229
                          break
 
21230
                        fi
 
21231
                        ac_mid=`expr 2 '*' $ac_mid + 1`
22569
21232
fi
22570
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21233
 
 
21234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571
21235
  done
22572
21236
else
22573
21237
  echo "$as_me: failed program was:" >&5
22574
21238
sed 's/^/| /' conftest.$ac_ext >&5
22575
21239
 
22576
 
cat >conftest.$ac_ext <<_ACEOF
 
21240
        cat >conftest.$ac_ext <<_ACEOF
22577
21241
/* confdefs.h.  */
22578
21242
_ACEOF
22579
21243
cat confdefs.h >>conftest.$ac_ext
22591
21255
}
22592
21256
_ACEOF
22593
21257
rm -f conftest.$ac_objext
22594
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22595
 
  (eval $ac_compile) 2>conftest.er1
 
21258
if { (ac_try="$ac_compile"
 
21259
case "(($ac_try" in
 
21260
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21261
  *) ac_try_echo=$ac_try;;
 
21262
esac
 
21263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21264
  (eval "$ac_compile") 2>conftest.er1
22596
21265
  ac_status=$?
22597
21266
  grep -v '^ *+' conftest.er1 >conftest.err
22598
21267
  rm -f conftest.er1
22599
21268
  cat conftest.err >&5
22600
21269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601
 
  (exit $ac_status); } &&
22602
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22603
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604
 
  (eval $ac_try) 2>&5
22605
 
  ac_status=$?
22606
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607
 
  (exit $ac_status); }; } &&
22608
 
         { ac_try='test -s conftest.$ac_objext'
22609
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610
 
  (eval $ac_try) 2>&5
22611
 
  ac_status=$?
22612
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613
 
  (exit $ac_status); }; }; then
 
21270
  (exit $ac_status); } && {
 
21271
         test -z "$ac_c_werror_flag" ||
 
21272
         test ! -s conftest.err
 
21273
       } && test -s conftest.$ac_objext; then
22614
21274
  ac_hi=-1 ac_mid=-1
22615
21275
  while :; do
22616
21276
    cat >conftest.$ac_ext <<_ACEOF
22631
21291
}
22632
21292
_ACEOF
22633
21293
rm -f conftest.$ac_objext
22634
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22635
 
  (eval $ac_compile) 2>conftest.er1
 
21294
if { (ac_try="$ac_compile"
 
21295
case "(($ac_try" in
 
21296
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21297
  *) ac_try_echo=$ac_try;;
 
21298
esac
 
21299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21300
  (eval "$ac_compile") 2>conftest.er1
22636
21301
  ac_status=$?
22637
21302
  grep -v '^ *+' conftest.er1 >conftest.err
22638
21303
  rm -f conftest.er1
22639
21304
  cat conftest.err >&5
22640
21305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641
 
  (exit $ac_status); } &&
22642
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22643
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644
 
  (eval $ac_try) 2>&5
22645
 
  ac_status=$?
22646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647
 
  (exit $ac_status); }; } &&
22648
 
         { ac_try='test -s conftest.$ac_objext'
22649
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650
 
  (eval $ac_try) 2>&5
22651
 
  ac_status=$?
22652
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653
 
  (exit $ac_status); }; }; then
 
21306
  (exit $ac_status); } && {
 
21307
         test -z "$ac_c_werror_flag" ||
 
21308
         test ! -s conftest.err
 
21309
       } && test -s conftest.$ac_objext; then
22654
21310
  ac_lo=$ac_mid; break
22655
21311
else
22656
21312
  echo "$as_me: failed program was:" >&5
22657
21313
sed 's/^/| /' conftest.$ac_ext >&5
22658
21314
 
22659
 
ac_hi=`expr '(' $ac_mid ')' - 1`
22660
 
                       if test $ac_mid -le $ac_hi; then
22661
 
                         ac_lo= ac_hi=
22662
 
                         break
22663
 
                       fi
22664
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
21315
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
21316
                        if test $ac_mid -le $ac_hi; then
 
21317
                          ac_lo= ac_hi=
 
21318
                          break
 
21319
                        fi
 
21320
                        ac_mid=`expr 2 '*' $ac_mid`
22665
21321
fi
22666
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21322
 
 
21323
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667
21324
  done
22668
21325
else
22669
21326
  echo "$as_me: failed program was:" >&5
22670
21327
sed 's/^/| /' conftest.$ac_ext >&5
22671
21328
 
22672
 
ac_lo= ac_hi=
22673
 
fi
22674
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22675
 
fi
22676
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21329
        ac_lo= ac_hi=
 
21330
fi
 
21331
 
 
21332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21333
fi
 
21334
 
 
21335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22677
21336
# Binary search between lo and hi bounds.
22678
21337
while test "x$ac_lo" != "x$ac_hi"; do
22679
21338
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22695
21354
}
22696
21355
_ACEOF
22697
21356
rm -f conftest.$ac_objext
22698
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22699
 
  (eval $ac_compile) 2>conftest.er1
 
21357
if { (ac_try="$ac_compile"
 
21358
case "(($ac_try" in
 
21359
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21360
  *) ac_try_echo=$ac_try;;
 
21361
esac
 
21362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21363
  (eval "$ac_compile") 2>conftest.er1
22700
21364
  ac_status=$?
22701
21365
  grep -v '^ *+' conftest.er1 >conftest.err
22702
21366
  rm -f conftest.er1
22703
21367
  cat conftest.err >&5
22704
21368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705
 
  (exit $ac_status); } &&
22706
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22707
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708
 
  (eval $ac_try) 2>&5
22709
 
  ac_status=$?
22710
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711
 
  (exit $ac_status); }; } &&
22712
 
         { ac_try='test -s conftest.$ac_objext'
22713
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714
 
  (eval $ac_try) 2>&5
22715
 
  ac_status=$?
22716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717
 
  (exit $ac_status); }; }; then
 
21369
  (exit $ac_status); } && {
 
21370
         test -z "$ac_c_werror_flag" ||
 
21371
         test ! -s conftest.err
 
21372
       } && test -s conftest.$ac_objext; then
22718
21373
  ac_hi=$ac_mid
22719
21374
else
22720
21375
  echo "$as_me: failed program was:" >&5
22721
21376
sed 's/^/| /' conftest.$ac_ext >&5
22722
21377
 
22723
 
ac_lo=`expr '(' $ac_mid ')' + 1`
 
21378
        ac_lo=`expr '(' $ac_mid ')' + 1`
22724
21379
fi
22725
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21380
 
 
21381
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726
21382
done
22727
21383
case $ac_lo in
22728
21384
?*) fits_in_uint=$ac_lo;;
22729
 
'') result=? ;;
 
21385
'') fits_in_uint= ;;
22730
21386
esac
22731
21387
else
22732
 
  if test "$cross_compiling" = yes; then
22733
 
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22734
 
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22735
 
   { (exit 1); exit 1; }; }
22736
 
else
22737
21388
  cat >conftest.$ac_ext <<_ACEOF
22738
21389
/* confdefs.h.  */
22739
21390
_ACEOF
22741
21392
cat >>conftest.$ac_ext <<_ACEOF
22742
21393
/* end confdefs.h.  */
22743
21394
#include <stddef.h>
22744
 
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
22745
 
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
21395
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
21396
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
22746
21397
#include <stdio.h>
22747
21398
#include <stdlib.h>
22748
21399
int
22751
21402
 
22752
21403
  FILE *f = fopen ("conftest.val", "w");
22753
21404
  if (! f)
22754
 
    exit (1);
 
21405
    return 1;
22755
21406
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
22756
21407
    {
22757
 
      long i = longval ();
 
21408
      long int i = longval ();
22758
21409
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22759
 
        exit (1);
 
21410
        return 1;
22760
21411
      fprintf (f, "%ld\n", i);
22761
21412
    }
22762
21413
  else
22763
21414
    {
22764
 
      unsigned long i = ulongval ();
 
21415
      unsigned long int i = ulongval ();
22765
21416
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
22766
 
        exit (1);
 
21417
        return 1;
22767
21418
      fprintf (f, "%lu\n", i);
22768
21419
    }
22769
 
  exit (ferror (f) || fclose (f) != 0);
 
21420
  return ferror (f) || fclose (f) != 0;
22770
21421
 
22771
21422
  ;
22772
21423
  return 0;
22773
21424
}
22774
21425
_ACEOF
22775
21426
rm -f conftest$ac_exeext
22776
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22777
 
  (eval $ac_link) 2>&5
 
21427
if { (ac_try="$ac_link"
 
21428
case "(($ac_try" in
 
21429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21430
  *) ac_try_echo=$ac_try;;
 
21431
esac
 
21432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21433
  (eval "$ac_link") 2>&5
22778
21434
  ac_status=$?
22779
21435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780
21436
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22781
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782
 
  (eval $ac_try) 2>&5
 
21437
  { (case "(($ac_try" in
 
21438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21439
  *) ac_try_echo=$ac_try;;
 
21440
esac
 
21441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21442
  (eval "$ac_try") 2>&5
22783
21443
  ac_status=$?
22784
21444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785
21445
  (exit $ac_status); }; }; then
22790
21450
sed 's/^/| /' conftest.$ac_ext >&5
22791
21451
 
22792
21452
( exit $ac_status )
22793
 
result=?
22794
 
fi
22795
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22796
 
fi
 
21453
fits_in_uint=
 
21454
fi
 
21455
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22797
21456
fi
22798
21457
rm -f conftest.val
22799
 
    if test "$fits_in_uint" = 1; then
22800
 
                  cat >conftest.$ac_ext <<_ACEOF
 
21458
 
 
21459
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
 
21460
        if test $fits_in_uint = 1; then
 
21461
                              cat >conftest.$ac_ext <<_ACEOF
22801
21462
/* confdefs.h.  */
22802
21463
_ACEOF
22803
21464
cat confdefs.h >>conftest.$ac_ext
22804
21465
cat >>conftest.$ac_ext <<_ACEOF
22805
21466
/* end confdefs.h.  */
22806
21467
#include <stddef.h>
22807
 
        extern size_t foo;
22808
 
        extern unsigned long foo;
 
21468
            extern size_t foo;
 
21469
            extern unsigned long foo;
22809
21470
 
22810
21471
int
22811
21472
main ()
22816
21477
}
22817
21478
_ACEOF
22818
21479
rm -f conftest.$ac_objext
22819
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22820
 
  (eval $ac_compile) 2>conftest.er1
 
21480
if { (ac_try="$ac_compile"
 
21481
case "(($ac_try" in
 
21482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21483
  *) ac_try_echo=$ac_try;;
 
21484
esac
 
21485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21486
  (eval "$ac_compile") 2>conftest.er1
22821
21487
  ac_status=$?
22822
21488
  grep -v '^ *+' conftest.er1 >conftest.err
22823
21489
  rm -f conftest.er1
22824
21490
  cat conftest.err >&5
22825
21491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826
 
  (exit $ac_status); } &&
22827
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22828
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829
 
  (eval $ac_try) 2>&5
22830
 
  ac_status=$?
22831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832
 
  (exit $ac_status); }; } &&
22833
 
         { ac_try='test -s conftest.$ac_objext'
22834
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835
 
  (eval $ac_try) 2>&5
22836
 
  ac_status=$?
22837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838
 
  (exit $ac_status); }; }; then
 
21492
  (exit $ac_status); } && {
 
21493
         test -z "$ac_c_werror_flag" ||
 
21494
         test ! -s conftest.err
 
21495
       } && test -s conftest.$ac_objext; then
22839
21496
  fits_in_uint=0
22840
21497
else
22841
21498
  echo "$as_me: failed program was:" >&5
22842
21499
sed 's/^/| /' conftest.$ac_ext >&5
22843
21500
 
 
21501
 
22844
21502
fi
22845
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22846
 
    fi
22847
 
    if test -z "$result"; then
22848
 
      if test "$fits_in_uint" = 1; then
22849
 
        result="$res_hi$res_lo"U
 
21503
 
 
21504
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21505
        fi
 
21506
                                if test $fits_in_uint = 1; then
 
21507
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
21508
        else
 
21509
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
 
21510
        fi
22850
21511
      else
22851
 
        result="$res_hi$res_lo"UL
 
21512
                gl_cv_size_max='((size_t)~(size_t)0)'
22852
21513
      fi
22853
 
    else
22854
 
            result='~(size_t)0'
22855
 
    fi
22856
 
  fi
22857
 
  echo "$as_me:$LINENO: result: $result" >&5
22858
 
echo "${ECHO_T}$result" >&6
22859
 
  if test "$result" != yes; then
22860
 
 
22861
 
cat >>confdefs.h <<_ACEOF
22862
 
#define SIZE_MAX $result
22863
 
_ACEOF
22864
 
 
22865
 
  fi
 
21514
    fi
 
21515
 
 
21516
fi
 
21517
 
 
21518
  { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
 
21519
echo "${ECHO_T}$gl_cv_size_max" >&6; }
 
21520
  if test "$gl_cv_size_max" != yes; then
 
21521
 
 
21522
cat >>confdefs.h <<_ACEOF
 
21523
#define SIZE_MAX $gl_cv_size_max
 
21524
_ACEOF
 
21525
 
 
21526
  fi
 
21527
 
 
21528
 
 
21529
 
 
21530
 
 
21531
  if test $ac_cv_type_long_long_int = yes; then
 
21532
    HAVE_LONG_LONG_INT=1
 
21533
  else
 
21534
    HAVE_LONG_LONG_INT=0
 
21535
  fi
 
21536
 
 
21537
 
 
21538
  if test $ac_cv_type_unsigned_long_long_int = yes; then
 
21539
    HAVE_UNSIGNED_LONG_LONG_INT=1
 
21540
  else
 
21541
    HAVE_UNSIGNED_LONG_LONG_INT=0
 
21542
  fi
 
21543
 
 
21544
 
 
21545
 
 
21546
 
 
21547
 
 
21548
 
 
21549
 
 
21550
 
 
21551
  if test $ac_cv_header_wchar_h = yes; then
 
21552
    HAVE_WCHAR_H=1
 
21553
  else
 
21554
    HAVE_WCHAR_H=0
 
21555
  fi
 
21556
 
 
21557
 
 
21558
      if test $ac_cv_header_inttypes_h = yes; then
 
21559
    HAVE_INTTYPES_H=1
 
21560
  else
 
21561
    HAVE_INTTYPES_H=0
 
21562
  fi
 
21563
 
 
21564
 
 
21565
      if test $ac_cv_header_sys_types_h = yes; then
 
21566
    HAVE_SYS_TYPES_H=1
 
21567
  else
 
21568
    HAVE_SYS_TYPES_H=0
 
21569
  fi
 
21570
 
 
21571
 
 
21572
    if test $ac_cv_header_stdint_h = yes; then
 
21573
      { echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
 
21574
echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
 
21575
if test "${gl_cv_absolute_stdint_h+set}" = set; then
 
21576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21577
else
 
21578
 
 
21579
 
 
21580
 
 
21581
 
 
21582
 
 
21583
    if test $ac_cv_header_stdint_h = yes; then
 
21584
      cat >conftest.$ac_ext <<_ACEOF
 
21585
/* confdefs.h.  */
 
21586
_ACEOF
 
21587
cat confdefs.h >>conftest.$ac_ext
 
21588
cat >>conftest.$ac_ext <<_ACEOF
 
21589
/* end confdefs.h.  */
 
21590
#include <stdint.h>
 
21591
_ACEOF
 
21592
      gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21593
sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
 
21594
    fi
 
21595
 
 
21596
fi
 
21597
{ echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
 
21598
echo "${ECHO_T}$gl_cv_absolute_stdint_h" >&6; }
 
21599
cat >>confdefs.h <<_ACEOF
 
21600
#define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
 
21601
_ACEOF
 
21602
 
 
21603
 
 
21604
    ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
 
21605
    HAVE_STDINT_H=1
 
21606
  else
 
21607
    ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
 
21608
    HAVE_STDINT_H=0
 
21609
  fi
 
21610
 
 
21611
 
 
21612
 
 
21613
          if test $ac_cv_header_stdint_h = yes; then
 
21614
    { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
 
21615
echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
 
21616
if test "${gl_cv_header_working_stdint_h+set}" = set; then
 
21617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21618
else
 
21619
  gl_cv_header_working_stdint_h=no
 
21620
       cat >conftest.$ac_ext <<_ACEOF
 
21621
 
 
21622
         /* confdefs.h.  */
 
21623
_ACEOF
 
21624
cat confdefs.h >>conftest.$ac_ext
 
21625
cat >>conftest.$ac_ext <<_ACEOF
 
21626
/* end confdefs.h.  */
 
21627
 
 
21628
#include <stddef.h>
 
21629
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
 
21630
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
 
21631
#include ABSOLUTE_STDINT_H
 
21632
#ifdef INT8_MAX
 
21633
int8_t a1 = INT8_MAX;
 
21634
int8_t a1min = INT8_MIN;
 
21635
#endif
 
21636
#ifdef INT16_MAX
 
21637
int16_t a2 = INT16_MAX;
 
21638
int16_t a2min = INT16_MIN;
 
21639
#endif
 
21640
#ifdef INT32_MAX
 
21641
int32_t a3 = INT32_MAX;
 
21642
int32_t a3min = INT32_MIN;
 
21643
#endif
 
21644
#ifdef INT64_MAX
 
21645
int64_t a4 = INT64_MAX;
 
21646
int64_t a4min = INT64_MIN;
 
21647
#endif
 
21648
#ifdef UINT8_MAX
 
21649
uint8_t b1 = UINT8_MAX;
 
21650
#else
 
21651
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
 
21652
#endif
 
21653
#ifdef UINT16_MAX
 
21654
uint16_t b2 = UINT16_MAX;
 
21655
#endif
 
21656
#ifdef UINT32_MAX
 
21657
uint32_t b3 = UINT32_MAX;
 
21658
#endif
 
21659
#ifdef UINT64_MAX
 
21660
uint64_t b4 = UINT64_MAX;
 
21661
#endif
 
21662
int_least8_t c1 = INT8_C (0x7f);
 
21663
int_least8_t c1max = INT_LEAST8_MAX;
 
21664
int_least8_t c1min = INT_LEAST8_MIN;
 
21665
int_least16_t c2 = INT16_C (0x7fff);
 
21666
int_least16_t c2max = INT_LEAST16_MAX;
 
21667
int_least16_t c2min = INT_LEAST16_MIN;
 
21668
int_least32_t c3 = INT32_C (0x7fffffff);
 
21669
int_least32_t c3max = INT_LEAST32_MAX;
 
21670
int_least32_t c3min = INT_LEAST32_MIN;
 
21671
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
 
21672
int_least64_t c4max = INT_LEAST64_MAX;
 
21673
int_least64_t c4min = INT_LEAST64_MIN;
 
21674
uint_least8_t d1 = UINT8_C (0xff);
 
21675
uint_least8_t d1max = UINT_LEAST8_MAX;
 
21676
uint_least16_t d2 = UINT16_C (0xffff);
 
21677
uint_least16_t d2max = UINT_LEAST16_MAX;
 
21678
uint_least32_t d3 = UINT32_C (0xffffffff);
 
21679
uint_least32_t d3max = UINT_LEAST32_MAX;
 
21680
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
 
21681
uint_least64_t d4max = UINT_LEAST64_MAX;
 
21682
int_fast8_t e1 = INT_FAST8_MAX;
 
21683
int_fast8_t e1min = INT_FAST8_MIN;
 
21684
int_fast16_t e2 = INT_FAST16_MAX;
 
21685
int_fast16_t e2min = INT_FAST16_MIN;
 
21686
int_fast32_t e3 = INT_FAST32_MAX;
 
21687
int_fast32_t e3min = INT_FAST32_MIN;
 
21688
int_fast64_t e4 = INT_FAST64_MAX;
 
21689
int_fast64_t e4min = INT_FAST64_MIN;
 
21690
uint_fast8_t f1 = UINT_FAST8_MAX;
 
21691
uint_fast16_t f2 = UINT_FAST16_MAX;
 
21692
uint_fast32_t f3 = UINT_FAST32_MAX;
 
21693
uint_fast64_t f4 = UINT_FAST64_MAX;
 
21694
#ifdef INTPTR_MAX
 
21695
intptr_t g = INTPTR_MAX;
 
21696
intptr_t gmin = INTPTR_MIN;
 
21697
#endif
 
21698
#ifdef UINTPTR_MAX
 
21699
uintptr_t h = UINTPTR_MAX;
 
21700
#endif
 
21701
intmax_t i = INTMAX_MAX;
 
21702
uintmax_t j = UINTMAX_MAX;
 
21703
struct s {
 
21704
  int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
 
21705
  int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
 
21706
  int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
 
21707
  int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
 
21708
  int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
 
21709
 
 
21710
  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
 
21711
  int check_UINT8_C:
 
21712
        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
 
21713
  int check_UINT16_C:
 
21714
        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
 
21715
 
 
21716
  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
 
21717
#ifdef UINT8_MAX
 
21718
  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
 
21719
#endif
 
21720
#ifdef UINT16_MAX
 
21721
  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
 
21722
#endif
 
21723
#ifdef UINT32_MAX
 
21724
  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
 
21725
#endif
 
21726
#ifdef UINT64_MAX
 
21727
  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
 
21728
#endif
 
21729
  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
 
21730
  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
 
21731
  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
 
21732
  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
 
21733
  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
 
21734
  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
 
21735
  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
 
21736
  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
 
21737
  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
 
21738
  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
 
21739
  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
 
21740
};
 
21741
 
 
21742
int
 
21743
main ()
 
21744
{
 
21745
 
 
21746
  ;
 
21747
  return 0;
 
21748
}
 
21749
_ACEOF
 
21750
rm -f conftest.$ac_objext
 
21751
if { (ac_try="$ac_compile"
 
21752
case "(($ac_try" in
 
21753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21754
  *) ac_try_echo=$ac_try;;
 
21755
esac
 
21756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21757
  (eval "$ac_compile") 2>conftest.er1
 
21758
  ac_status=$?
 
21759
  grep -v '^ *+' conftest.er1 >conftest.err
 
21760
  rm -f conftest.er1
 
21761
  cat conftest.err >&5
 
21762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21763
  (exit $ac_status); } && {
 
21764
         test -z "$ac_c_werror_flag" ||
 
21765
         test ! -s conftest.err
 
21766
       } && test -s conftest.$ac_objext; then
 
21767
  gl_cv_header_working_stdint_h=yes
 
21768
else
 
21769
  echo "$as_me: failed program was:" >&5
 
21770
sed 's/^/| /' conftest.$ac_ext >&5
 
21771
 
 
21772
 
 
21773
fi
 
21774
 
 
21775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21776
fi
 
21777
{ echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
 
21778
echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
 
21779
  fi
 
21780
  if test "$gl_cv_header_working_stdint_h" != yes; then
 
21781
 
 
21782
 
 
21783
 
 
21784
for ac_header in sys/inttypes.h sys/bitypes.h
 
21785
do
 
21786
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21787
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21788
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21789
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21790
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21792
fi
 
21793
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21794
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21795
echo "${ECHO_T}$ac_res" >&6; }
 
21796
else
 
21797
  # Is the header compilable?
 
21798
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21799
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
21800
cat >conftest.$ac_ext <<_ACEOF
 
21801
/* confdefs.h.  */
 
21802
_ACEOF
 
21803
cat confdefs.h >>conftest.$ac_ext
 
21804
cat >>conftest.$ac_ext <<_ACEOF
 
21805
/* end confdefs.h.  */
 
21806
$ac_includes_default
 
21807
#include <$ac_header>
 
21808
_ACEOF
 
21809
rm -f conftest.$ac_objext
 
21810
if { (ac_try="$ac_compile"
 
21811
case "(($ac_try" in
 
21812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21813
  *) ac_try_echo=$ac_try;;
 
21814
esac
 
21815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21816
  (eval "$ac_compile") 2>conftest.er1
 
21817
  ac_status=$?
 
21818
  grep -v '^ *+' conftest.er1 >conftest.err
 
21819
  rm -f conftest.er1
 
21820
  cat conftest.err >&5
 
21821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21822
  (exit $ac_status); } && {
 
21823
         test -z "$ac_c_werror_flag" ||
 
21824
         test ! -s conftest.err
 
21825
       } && test -s conftest.$ac_objext; then
 
21826
  ac_header_compiler=yes
 
21827
else
 
21828
  echo "$as_me: failed program was:" >&5
 
21829
sed 's/^/| /' conftest.$ac_ext >&5
 
21830
 
 
21831
        ac_header_compiler=no
 
21832
fi
 
21833
 
 
21834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21835
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21836
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21837
 
 
21838
# Is the header present?
 
21839
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21840
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
21841
cat >conftest.$ac_ext <<_ACEOF
 
21842
/* confdefs.h.  */
 
21843
_ACEOF
 
21844
cat confdefs.h >>conftest.$ac_ext
 
21845
cat >>conftest.$ac_ext <<_ACEOF
 
21846
/* end confdefs.h.  */
 
21847
#include <$ac_header>
 
21848
_ACEOF
 
21849
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21850
case "(($ac_try" in
 
21851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21852
  *) ac_try_echo=$ac_try;;
 
21853
esac
 
21854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21855
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21856
  ac_status=$?
 
21857
  grep -v '^ *+' conftest.er1 >conftest.err
 
21858
  rm -f conftest.er1
 
21859
  cat conftest.err >&5
 
21860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21861
  (exit $ac_status); } >/dev/null && {
 
21862
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21863
         test ! -s conftest.err
 
21864
       }; then
 
21865
  ac_header_preproc=yes
 
21866
else
 
21867
  echo "$as_me: failed program was:" >&5
 
21868
sed 's/^/| /' conftest.$ac_ext >&5
 
21869
 
 
21870
  ac_header_preproc=no
 
21871
fi
 
21872
 
 
21873
rm -f conftest.err conftest.$ac_ext
 
21874
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21875
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21876
 
 
21877
# So?  What about this header?
 
21878
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21879
  yes:no: )
 
21880
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21881
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21882
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21883
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21884
    ac_header_preproc=yes
 
21885
    ;;
 
21886
  no:yes:* )
 
21887
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21888
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21889
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21890
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21891
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21892
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21893
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21894
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21895
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21896
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21897
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21898
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21899
    ( cat <<\_ASBOX
 
21900
## ---------------------------------- ##
 
21901
## Report this to bug-gnupg@gnupg.org ##
 
21902
## ---------------------------------- ##
 
21903
_ASBOX
 
21904
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21905
    ;;
 
21906
esac
 
21907
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21908
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21909
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21911
else
 
21912
  eval "$as_ac_Header=\$ac_header_preproc"
 
21913
fi
 
21914
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21915
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21916
echo "${ECHO_T}$ac_res" >&6; }
 
21917
 
 
21918
fi
 
21919
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21920
  cat >>confdefs.h <<_ACEOF
 
21921
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21922
_ACEOF
 
21923
 
 
21924
fi
 
21925
 
 
21926
done
 
21927
 
 
21928
    if test $ac_cv_header_sys_inttypes_h = yes; then
 
21929
      HAVE_SYS_INTTYPES_H=1
 
21930
    else
 
21931
      HAVE_SYS_INTTYPES_H=0
 
21932
    fi
 
21933
 
 
21934
    if test $ac_cv_header_sys_bitypes_h = yes; then
 
21935
      HAVE_SYS_BITYPES_H=1
 
21936
    else
 
21937
      HAVE_SYS_BITYPES_H=0
 
21938
    fi
 
21939
 
 
21940
 
 
21941
 
 
21942
 
 
21943
 
 
21944
 
 
21945
 
 
21946
 
 
21947
 
 
21948
 
 
21949
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
 
21950
    { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
 
21951
echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
 
21952
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
 
21953
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21954
else
 
21955
  if test "$cross_compiling" = yes; then
 
21956
  # Depending upon the size, compute the lo and hi bounds.
 
21957
cat >conftest.$ac_ext <<_ACEOF
 
21958
/* confdefs.h.  */
 
21959
_ACEOF
 
21960
cat confdefs.h >>conftest.$ac_ext
 
21961
cat >>conftest.$ac_ext <<_ACEOF
 
21962
/* end confdefs.h.  */
 
21963
 
 
21964
  #include <stddef.h>
 
21965
  #include <signal.h>
 
21966
  #if HAVE_WCHAR_H
 
21967
    /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
 
21968
       <wchar.h>.  */
 
21969
  # include <stdio.h>
 
21970
  # include <time.h>
 
21971
  # include <wchar.h>
 
21972
  #endif
 
21973
 
 
21974
#include <limits.h>
 
21975
int
 
21976
main ()
 
21977
{
 
21978
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
 
21979
test_array [0] = 0
 
21980
 
 
21981
  ;
 
21982
  return 0;
 
21983
}
 
21984
_ACEOF
 
21985
rm -f conftest.$ac_objext
 
21986
if { (ac_try="$ac_compile"
 
21987
case "(($ac_try" in
 
21988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21989
  *) ac_try_echo=$ac_try;;
 
21990
esac
 
21991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21992
  (eval "$ac_compile") 2>conftest.er1
 
21993
  ac_status=$?
 
21994
  grep -v '^ *+' conftest.er1 >conftest.err
 
21995
  rm -f conftest.er1
 
21996
  cat conftest.err >&5
 
21997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21998
  (exit $ac_status); } && {
 
21999
         test -z "$ac_c_werror_flag" ||
 
22000
         test ! -s conftest.err
 
22001
       } && test -s conftest.$ac_objext; then
 
22002
  ac_lo=0 ac_mid=0
 
22003
  while :; do
 
22004
    cat >conftest.$ac_ext <<_ACEOF
 
22005
/* confdefs.h.  */
 
22006
_ACEOF
 
22007
cat confdefs.h >>conftest.$ac_ext
 
22008
cat >>conftest.$ac_ext <<_ACEOF
 
22009
/* end confdefs.h.  */
 
22010
 
 
22011
  #include <stddef.h>
 
22012
  #include <signal.h>
 
22013
  #if HAVE_WCHAR_H
 
22014
    /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
 
22015
       <wchar.h>.  */
 
22016
  # include <stdio.h>
 
22017
  # include <time.h>
 
22018
  # include <wchar.h>
 
22019
  #endif
 
22020
 
 
22021
#include <limits.h>
 
22022
int
 
22023
main ()
 
22024
{
 
22025
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
22026
test_array [0] = 0
 
22027
 
 
22028
  ;
 
22029
  return 0;
 
22030
}
 
22031
_ACEOF
 
22032
rm -f conftest.$ac_objext
 
22033
if { (ac_try="$ac_compile"
 
22034
case "(($ac_try" in
 
22035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22036
  *) ac_try_echo=$ac_try;;
 
22037
esac
 
22038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22039
  (eval "$ac_compile") 2>conftest.er1
 
22040
  ac_status=$?
 
22041
  grep -v '^ *+' conftest.er1 >conftest.err
 
22042
  rm -f conftest.er1
 
22043
  cat conftest.err >&5
 
22044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22045
  (exit $ac_status); } && {
 
22046
         test -z "$ac_c_werror_flag" ||
 
22047
         test ! -s conftest.err
 
22048
       } && test -s conftest.$ac_objext; then
 
22049
  ac_hi=$ac_mid; break
 
22050
else
 
22051
  echo "$as_me: failed program was:" >&5
 
22052
sed 's/^/| /' conftest.$ac_ext >&5
 
22053
 
 
22054
        ac_lo=`expr $ac_mid + 1`
 
22055
                        if test $ac_lo -le $ac_mid; then
 
22056
                          ac_lo= ac_hi=
 
22057
                          break
 
22058
                        fi
 
22059
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
22060
fi
 
22061
 
 
22062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22063
  done
 
22064
else
 
22065
  echo "$as_me: failed program was:" >&5
 
22066
sed 's/^/| /' conftest.$ac_ext >&5
 
22067
 
 
22068
        cat >conftest.$ac_ext <<_ACEOF
 
22069
/* confdefs.h.  */
 
22070
_ACEOF
 
22071
cat confdefs.h >>conftest.$ac_ext
 
22072
cat >>conftest.$ac_ext <<_ACEOF
 
22073
/* end confdefs.h.  */
 
22074
 
 
22075
  #include <stddef.h>
 
22076
  #include <signal.h>
 
22077
  #if HAVE_WCHAR_H
 
22078
    /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
 
22079
       <wchar.h>.  */
 
22080
  # include <stdio.h>
 
22081
  # include <time.h>
 
22082
  # include <wchar.h>
 
22083
  #endif
 
22084
 
 
22085
#include <limits.h>
 
22086
int
 
22087
main ()
 
22088
{
 
22089
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
 
22090
test_array [0] = 0
 
22091
 
 
22092
  ;
 
22093
  return 0;
 
22094
}
 
22095
_ACEOF
 
22096
rm -f conftest.$ac_objext
 
22097
if { (ac_try="$ac_compile"
 
22098
case "(($ac_try" in
 
22099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22100
  *) ac_try_echo=$ac_try;;
 
22101
esac
 
22102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22103
  (eval "$ac_compile") 2>conftest.er1
 
22104
  ac_status=$?
 
22105
  grep -v '^ *+' conftest.er1 >conftest.err
 
22106
  rm -f conftest.er1
 
22107
  cat conftest.err >&5
 
22108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22109
  (exit $ac_status); } && {
 
22110
         test -z "$ac_c_werror_flag" ||
 
22111
         test ! -s conftest.err
 
22112
       } && test -s conftest.$ac_objext; then
 
22113
  ac_hi=-1 ac_mid=-1
 
22114
  while :; do
 
22115
    cat >conftest.$ac_ext <<_ACEOF
 
22116
/* confdefs.h.  */
 
22117
_ACEOF
 
22118
cat confdefs.h >>conftest.$ac_ext
 
22119
cat >>conftest.$ac_ext <<_ACEOF
 
22120
/* end confdefs.h.  */
 
22121
 
 
22122
  #include <stddef.h>
 
22123
  #include <signal.h>
 
22124
  #if HAVE_WCHAR_H
 
22125
    /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
 
22126
       <wchar.h>.  */
 
22127
  # include <stdio.h>
 
22128
  # include <time.h>
 
22129
  # include <wchar.h>
 
22130
  #endif
 
22131
 
 
22132
#include <limits.h>
 
22133
int
 
22134
main ()
 
22135
{
 
22136
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
 
22137
test_array [0] = 0
 
22138
 
 
22139
  ;
 
22140
  return 0;
 
22141
}
 
22142
_ACEOF
 
22143
rm -f conftest.$ac_objext
 
22144
if { (ac_try="$ac_compile"
 
22145
case "(($ac_try" in
 
22146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22147
  *) ac_try_echo=$ac_try;;
 
22148
esac
 
22149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22150
  (eval "$ac_compile") 2>conftest.er1
 
22151
  ac_status=$?
 
22152
  grep -v '^ *+' conftest.er1 >conftest.err
 
22153
  rm -f conftest.er1
 
22154
  cat conftest.err >&5
 
22155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22156
  (exit $ac_status); } && {
 
22157
         test -z "$ac_c_werror_flag" ||
 
22158
         test ! -s conftest.err
 
22159
       } && test -s conftest.$ac_objext; then
 
22160
  ac_lo=$ac_mid; break
 
22161
else
 
22162
  echo "$as_me: failed program was:" >&5
 
22163
sed 's/^/| /' conftest.$ac_ext >&5
 
22164
 
 
22165
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
22166
                        if test $ac_mid -le $ac_hi; then
 
22167
                          ac_lo= ac_hi=
 
22168
                          break
 
22169
                        fi
 
22170
                        ac_mid=`expr 2 '*' $ac_mid`
 
22171
fi
 
22172
 
 
22173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22174
  done
 
22175
else
 
22176
  echo "$as_me: failed program was:" >&5
 
22177
sed 's/^/| /' conftest.$ac_ext >&5
 
22178
 
 
22179
        ac_lo= ac_hi=
 
22180
fi
 
22181
 
 
22182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22183
fi
 
22184
 
 
22185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22186
# Binary search between lo and hi bounds.
 
22187
while test "x$ac_lo" != "x$ac_hi"; do
 
22188
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22189
  cat >conftest.$ac_ext <<_ACEOF
 
22190
/* confdefs.h.  */
 
22191
_ACEOF
 
22192
cat confdefs.h >>conftest.$ac_ext
 
22193
cat >>conftest.$ac_ext <<_ACEOF
 
22194
/* end confdefs.h.  */
 
22195
 
 
22196
  #include <stddef.h>
 
22197
  #include <signal.h>
 
22198
  #if HAVE_WCHAR_H
 
22199
    /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
 
22200
       <wchar.h>.  */
 
22201
  # include <stdio.h>
 
22202
  # include <time.h>
 
22203
  # include <wchar.h>
 
22204
  #endif
 
22205
 
 
22206
#include <limits.h>
 
22207
int
 
22208
main ()
 
22209
{
 
22210
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
 
22211
test_array [0] = 0
 
22212
 
 
22213
  ;
 
22214
  return 0;
 
22215
}
 
22216
_ACEOF
 
22217
rm -f conftest.$ac_objext
 
22218
if { (ac_try="$ac_compile"
 
22219
case "(($ac_try" in
 
22220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22221
  *) ac_try_echo=$ac_try;;
 
22222
esac
 
22223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22224
  (eval "$ac_compile") 2>conftest.er1
 
22225
  ac_status=$?
 
22226
  grep -v '^ *+' conftest.er1 >conftest.err
 
22227
  rm -f conftest.er1
 
22228
  cat conftest.err >&5
 
22229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22230
  (exit $ac_status); } && {
 
22231
         test -z "$ac_c_werror_flag" ||
 
22232
         test ! -s conftest.err
 
22233
       } && test -s conftest.$ac_objext; then
 
22234
  ac_hi=$ac_mid
 
22235
else
 
22236
  echo "$as_me: failed program was:" >&5
 
22237
sed 's/^/| /' conftest.$ac_ext >&5
 
22238
 
 
22239
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
22240
fi
 
22241
 
 
22242
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22243
done
 
22244
case $ac_lo in
 
22245
?*) result=$ac_lo;;
 
22246
'') result=unknown ;;
 
22247
esac
 
22248
else
 
22249
  cat >conftest.$ac_ext <<_ACEOF
 
22250
/* confdefs.h.  */
 
22251
_ACEOF
 
22252
cat confdefs.h >>conftest.$ac_ext
 
22253
cat >>conftest.$ac_ext <<_ACEOF
 
22254
/* end confdefs.h.  */
 
22255
 
 
22256
  #include <stddef.h>
 
22257
  #include <signal.h>
 
22258
  #if HAVE_WCHAR_H
 
22259
    /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
 
22260
       <wchar.h>.  */
 
22261
  # include <stdio.h>
 
22262
  # include <time.h>
 
22263
  # include <wchar.h>
 
22264
  #endif
 
22265
 
 
22266
#include <limits.h>
 
22267
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
 
22268
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
 
22269
#include <stdio.h>
 
22270
#include <stdlib.h>
 
22271
int
 
22272
main ()
 
22273
{
 
22274
 
 
22275
  FILE *f = fopen ("conftest.val", "w");
 
22276
  if (! f)
 
22277
    return 1;
 
22278
  if ((sizeof ($gltype) * CHAR_BIT) < 0)
 
22279
    {
 
22280
      long int i = longval ();
 
22281
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
22282
        return 1;
 
22283
      fprintf (f, "%ld\n", i);
 
22284
    }
 
22285
  else
 
22286
    {
 
22287
      unsigned long int i = ulongval ();
 
22288
      if (i != (sizeof ($gltype) * CHAR_BIT))
 
22289
        return 1;
 
22290
      fprintf (f, "%lu\n", i);
 
22291
    }
 
22292
  return ferror (f) || fclose (f) != 0;
 
22293
 
 
22294
  ;
 
22295
  return 0;
 
22296
}
 
22297
_ACEOF
 
22298
rm -f conftest$ac_exeext
 
22299
if { (ac_try="$ac_link"
 
22300
case "(($ac_try" in
 
22301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22302
  *) ac_try_echo=$ac_try;;
 
22303
esac
 
22304
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22305
  (eval "$ac_link") 2>&5
 
22306
  ac_status=$?
 
22307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22308
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22309
  { (case "(($ac_try" in
 
22310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22311
  *) ac_try_echo=$ac_try;;
 
22312
esac
 
22313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22314
  (eval "$ac_try") 2>&5
 
22315
  ac_status=$?
 
22316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22317
  (exit $ac_status); }; }; then
 
22318
  result=`cat conftest.val`
 
22319
else
 
22320
  echo "$as_me: program exited with status $ac_status" >&5
 
22321
echo "$as_me: failed program was:" >&5
 
22322
sed 's/^/| /' conftest.$ac_ext >&5
 
22323
 
 
22324
( exit $ac_status )
 
22325
result=unknown
 
22326
fi
 
22327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22328
fi
 
22329
rm -f conftest.val
 
22330
 
 
22331
       eval gl_cv_bitsizeof_${gltype}=\$result
 
22332
 
 
22333
fi
 
22334
ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
 
22335
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22336
echo "${ECHO_T}$ac_res" >&6; }
 
22337
    eval result=\$gl_cv_bitsizeof_${gltype}
 
22338
    if test $result = unknown; then
 
22339
                                                result=0
 
22340
    fi
 
22341
    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
22342
    cat >>confdefs.h <<_ACEOF
 
22343
#define BITSIZEOF_${GLTYPE} $result
 
22344
_ACEOF
 
22345
 
 
22346
    eval BITSIZEOF_${GLTYPE}=\$result
 
22347
  done
 
22348
 
 
22349
 
 
22350
 
 
22351
 
 
22352
 
 
22353
 
 
22354
 
 
22355
  for gltype in sig_atomic_t wchar_t wint_t ; do
 
22356
    { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
 
22357
echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
 
22358
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
 
22359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22360
else
 
22361
  cat >conftest.$ac_ext <<_ACEOF
 
22362
/* confdefs.h.  */
 
22363
_ACEOF
 
22364
cat confdefs.h >>conftest.$ac_ext
 
22365
cat >>conftest.$ac_ext <<_ACEOF
 
22366
/* end confdefs.h.  */
 
22367
 
 
22368
  #include <stddef.h>
 
22369
  #include <signal.h>
 
22370
  #if HAVE_WCHAR_H
 
22371
    /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
 
22372
       <wchar.h>.  */
 
22373
  # include <stdio.h>
 
22374
  # include <time.h>
 
22375
  # include <wchar.h>
 
22376
  #endif
 
22377
 
 
22378
            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
 
22379
int
 
22380
main ()
 
22381
{
 
22382
 
 
22383
  ;
 
22384
  return 0;
 
22385
}
 
22386
_ACEOF
 
22387
rm -f conftest.$ac_objext
 
22388
if { (ac_try="$ac_compile"
 
22389
case "(($ac_try" in
 
22390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22391
  *) ac_try_echo=$ac_try;;
 
22392
esac
 
22393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22394
  (eval "$ac_compile") 2>conftest.er1
 
22395
  ac_status=$?
 
22396
  grep -v '^ *+' conftest.er1 >conftest.err
 
22397
  rm -f conftest.er1
 
22398
  cat conftest.err >&5
 
22399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22400
  (exit $ac_status); } && {
 
22401
         test -z "$ac_c_werror_flag" ||
 
22402
         test ! -s conftest.err
 
22403
       } && test -s conftest.$ac_objext; then
 
22404
  result=yes
 
22405
else
 
22406
  echo "$as_me: failed program was:" >&5
 
22407
sed 's/^/| /' conftest.$ac_ext >&5
 
22408
 
 
22409
        result=no
 
22410
fi
 
22411
 
 
22412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22413
       eval gl_cv_type_${gltype}_signed=\$result
 
22414
 
 
22415
fi
 
22416
ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
 
22417
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22418
echo "${ECHO_T}$ac_res" >&6; }
 
22419
    eval result=\$gl_cv_type_${gltype}_signed
 
22420
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
22421
    if test "$result" = yes; then
 
22422
      cat >>confdefs.h <<_ACEOF
 
22423
#define HAVE_SIGNED_${GLTYPE} 1
 
22424
_ACEOF
 
22425
 
 
22426
      eval HAVE_SIGNED_${GLTYPE}=1
 
22427
    else
 
22428
      eval HAVE_SIGNED_${GLTYPE}=0
 
22429
    fi
 
22430
  done
 
22431
 
 
22432
 
 
22433
  gl_cv_type_ptrdiff_t_signed=yes
 
22434
  gl_cv_type_size_t_signed=no
 
22435
 
 
22436
 
 
22437
 
 
22438
 
 
22439
 
 
22440
 
 
22441
 
 
22442
  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
 
22443
    { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
 
22444
echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
 
22445
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
 
22446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22447
else
 
22448
  eval gl_cv_type_${gltype}_suffix=no
 
22449
       eval result=\$gl_cv_type_${gltype}_signed
 
22450
       if test "$result" = yes; then
 
22451
         glsufu=
 
22452
       else
 
22453
         glsufu=u
 
22454
       fi
 
22455
       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
 
22456
         case $glsuf in
 
22457
           '')  gltype1='int';;
 
22458
           l)   gltype1='long int';;
 
22459
           ll)  gltype1='long long int';;
 
22460
           i64) gltype1='__int64';;
 
22461
           u)   gltype1='unsigned int';;
 
22462
           ul)  gltype1='unsigned long int';;
 
22463
           ull) gltype1='unsigned long long int';;
 
22464
           ui64)gltype1='unsigned __int64';;
 
22465
         esac
 
22466
         cat >conftest.$ac_ext <<_ACEOF
 
22467
/* confdefs.h.  */
 
22468
_ACEOF
 
22469
cat confdefs.h >>conftest.$ac_ext
 
22470
cat >>conftest.$ac_ext <<_ACEOF
 
22471
/* end confdefs.h.  */
 
22472
 
 
22473
  #include <stddef.h>
 
22474
  #include <signal.h>
 
22475
  #if HAVE_WCHAR_H
 
22476
    /* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
 
22477
       <wchar.h>.  */
 
22478
  # include <stdio.h>
 
22479
  # include <time.h>
 
22480
  # include <wchar.h>
 
22481
  #endif
 
22482
 
 
22483
              extern $gltype foo;
 
22484
              extern $gltype1 foo;
 
22485
int
 
22486
main ()
 
22487
{
 
22488
 
 
22489
  ;
 
22490
  return 0;
 
22491
}
 
22492
_ACEOF
 
22493
rm -f conftest.$ac_objext
 
22494
if { (ac_try="$ac_compile"
 
22495
case "(($ac_try" in
 
22496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22497
  *) ac_try_echo=$ac_try;;
 
22498
esac
 
22499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22500
  (eval "$ac_compile") 2>conftest.er1
 
22501
  ac_status=$?
 
22502
  grep -v '^ *+' conftest.er1 >conftest.err
 
22503
  rm -f conftest.er1
 
22504
  cat conftest.err >&5
 
22505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22506
  (exit $ac_status); } && {
 
22507
         test -z "$ac_c_werror_flag" ||
 
22508
         test ! -s conftest.err
 
22509
       } && test -s conftest.$ac_objext; then
 
22510
  eval gl_cv_type_${gltype}_suffix=\$glsuf
 
22511
else
 
22512
  echo "$as_me: failed program was:" >&5
 
22513
sed 's/^/| /' conftest.$ac_ext >&5
 
22514
 
 
22515
 
 
22516
fi
 
22517
 
 
22518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22519
         eval result=\$gl_cv_type_${gltype}_suffix
 
22520
         test "$result" != no && break
 
22521
       done
 
22522
fi
 
22523
ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
 
22524
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22525
echo "${ECHO_T}$ac_res" >&6; }
 
22526
    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
 
22527
    eval result=\$gl_cv_type_${gltype}_suffix
 
22528
    test "$result" = no && result=
 
22529
    eval ${GLTYPE}_SUFFIX=\$result
 
22530
    cat >>confdefs.h <<_ACEOF
 
22531
#define ${GLTYPE}_SUFFIX $result
 
22532
_ACEOF
 
22533
 
 
22534
  done
 
22535
 
 
22536
 
 
22537
 
 
22538
    STDINT_H=stdint.h
 
22539
  fi
 
22540
 
22866
22541
 
22867
22542
 
22868
22543
 
22869
22544
for ac_func in strpbrk
22870
22545
do
22871
22546
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22872
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
22873
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22874
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22547
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22548
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
22549
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22875
22550
  echo $ECHO_N "(cached) $ECHO_C" >&6
22876
22551
else
22877
22552
  cat >conftest.$ac_ext <<_ACEOF
22897
22572
 
22898
22573
#undef $ac_func
22899
22574
 
22900
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
22575
/* Override any GCC internal prototype to avoid an error.
 
22576
   Use char because int might match the return type of a GCC
 
22577
   builtin and then its argument prototype would still apply.  */
22901
22578
#ifdef __cplusplus
22902
22579
extern "C"
22903
 
{
22904
22580
#endif
22905
 
/* We use char because int might match the return type of a gcc2
22906
 
   builtin and then its argument prototype would still apply.  */
22907
22581
char $ac_func ();
22908
22582
/* The GNU C library defines this for functions which it implements
22909
22583
    to always fail with ENOSYS.  Some functions are actually named
22910
22584
    something starting with __ and the normal name is an alias.  */
22911
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22585
#if defined __stub_$ac_func || defined __stub___$ac_func
22912
22586
choke me
22913
 
#else
22914
 
char (*f) () = $ac_func;
22915
 
#endif
22916
 
#ifdef __cplusplus
22917
 
}
22918
22587
#endif
22919
22588
 
22920
22589
int
22921
22590
main ()
22922
22591
{
22923
 
return f != $ac_func;
 
22592
return $ac_func ();
22924
22593
  ;
22925
22594
  return 0;
22926
22595
}
22927
22596
_ACEOF
22928
22597
rm -f conftest.$ac_objext conftest$ac_exeext
22929
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22930
 
  (eval $ac_link) 2>conftest.er1
 
22598
if { (ac_try="$ac_link"
 
22599
case "(($ac_try" in
 
22600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22601
  *) ac_try_echo=$ac_try;;
 
22602
esac
 
22603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22604
  (eval "$ac_link") 2>conftest.er1
22931
22605
  ac_status=$?
22932
22606
  grep -v '^ *+' conftest.er1 >conftest.err
22933
22607
  rm -f conftest.er1
22934
22608
  cat conftest.err >&5
22935
22609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936
 
  (exit $ac_status); } &&
22937
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22938
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939
 
  (eval $ac_try) 2>&5
22940
 
  ac_status=$?
22941
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942
 
  (exit $ac_status); }; } &&
22943
 
         { ac_try='test -s conftest$ac_exeext'
22944
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945
 
  (eval $ac_try) 2>&5
22946
 
  ac_status=$?
22947
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948
 
  (exit $ac_status); }; }; then
 
22610
  (exit $ac_status); } && {
 
22611
         test -z "$ac_c_werror_flag" ||
 
22612
         test ! -s conftest.err
 
22613
       } && test -s conftest$ac_exeext &&
 
22614
       $as_test_x conftest$ac_exeext; then
22949
22615
  eval "$as_ac_var=yes"
22950
22616
else
22951
22617
  echo "$as_me: failed program was:" >&5
22952
22618
sed 's/^/| /' conftest.$ac_ext >&5
22953
22619
 
22954
 
eval "$as_ac_var=no"
 
22620
        eval "$as_ac_var=no"
22955
22621
fi
22956
 
rm -f conftest.err conftest.$ac_objext \
 
22622
 
 
22623
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22957
22624
      conftest$ac_exeext conftest.$ac_ext
22958
22625
fi
22959
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22960
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22626
ac_res=`eval echo '${'$as_ac_var'}'`
 
22627
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22628
echo "${ECHO_T}$ac_res" >&6; }
22961
22629
if test `eval echo '${'$as_ac_var'}'` = yes; then
22962
22630
  cat >>confdefs.h <<_ACEOF
22963
22631
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22964
22632
_ACEOF
22965
22633
 
22966
22634
else
22967
 
  case $LIBOBJS in
22968
 
    "$ac_func.$ac_objext"   | \
22969
 
  *" $ac_func.$ac_objext"   | \
22970
 
    "$ac_func.$ac_objext "* | \
 
22635
  case " $LIBOBJS " in
22971
22636
  *" $ac_func.$ac_objext "* ) ;;
22972
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
 
22637
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
22638
 ;;
22973
22639
esac
22974
22640
 
22975
22641
fi
22982
22648
 
22983
22649
 
22984
22650
 
22985
 
 
22986
 
 
22987
 
for ac_func in strsep
22988
 
do
22989
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22990
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
22991
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22992
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
22993
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22994
 
else
22995
 
  cat >conftest.$ac_ext <<_ACEOF
22996
 
/* confdefs.h.  */
22997
 
_ACEOF
22998
 
cat confdefs.h >>conftest.$ac_ext
22999
 
cat >>conftest.$ac_ext <<_ACEOF
23000
 
/* end confdefs.h.  */
23001
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23002
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23003
 
#define $ac_func innocuous_$ac_func
23004
 
 
23005
 
/* System header to define __stub macros and hopefully few prototypes,
23006
 
    which can conflict with char $ac_func (); below.
23007
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23008
 
    <limits.h> exists even on freestanding compilers.  */
23009
 
 
23010
 
#ifdef __STDC__
23011
 
# include <limits.h>
23012
 
#else
23013
 
# include <assert.h>
23014
 
#endif
23015
 
 
23016
 
#undef $ac_func
23017
 
 
23018
 
/* Override any gcc2 internal prototype to avoid an error.  */
23019
 
#ifdef __cplusplus
23020
 
extern "C"
23021
 
{
23022
 
#endif
23023
 
/* We use char because int might match the return type of a gcc2
23024
 
   builtin and then its argument prototype would still apply.  */
23025
 
char $ac_func ();
23026
 
/* The GNU C library defines this for functions which it implements
23027
 
    to always fail with ENOSYS.  Some functions are actually named
23028
 
    something starting with __ and the normal name is an alias.  */
23029
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23030
 
choke me
23031
 
#else
23032
 
char (*f) () = $ac_func;
23033
 
#endif
23034
 
#ifdef __cplusplus
23035
 
}
23036
 
#endif
23037
 
 
23038
 
int
23039
 
main ()
23040
 
{
23041
 
return f != $ac_func;
23042
 
  ;
23043
 
  return 0;
23044
 
}
23045
 
_ACEOF
23046
 
rm -f conftest.$ac_objext conftest$ac_exeext
23047
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23048
 
  (eval $ac_link) 2>conftest.er1
23049
 
  ac_status=$?
23050
 
  grep -v '^ *+' conftest.er1 >conftest.err
23051
 
  rm -f conftest.er1
23052
 
  cat conftest.err >&5
23053
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054
 
  (exit $ac_status); } &&
23055
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23056
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057
 
  (eval $ac_try) 2>&5
23058
 
  ac_status=$?
23059
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060
 
  (exit $ac_status); }; } &&
23061
 
         { ac_try='test -s conftest$ac_exeext'
23062
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063
 
  (eval $ac_try) 2>&5
23064
 
  ac_status=$?
23065
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066
 
  (exit $ac_status); }; }; then
23067
 
  eval "$as_ac_var=yes"
23068
 
else
23069
 
  echo "$as_me: failed program was:" >&5
23070
 
sed 's/^/| /' conftest.$ac_ext >&5
23071
 
 
23072
 
eval "$as_ac_var=no"
23073
 
fi
23074
 
rm -f conftest.err conftest.$ac_objext \
23075
 
      conftest$ac_exeext conftest.$ac_ext
23076
 
fi
23077
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23078
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23079
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23080
 
  cat >>confdefs.h <<_ACEOF
23081
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23082
 
_ACEOF
23083
 
 
23084
 
else
23085
 
  case $LIBOBJS in
23086
 
    "$ac_func.$ac_objext"   | \
23087
 
  *" $ac_func.$ac_objext"   | \
23088
 
    "$ac_func.$ac_objext "* | \
23089
 
  *" $ac_func.$ac_objext "* ) ;;
23090
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23091
 
esac
23092
 
 
23093
 
fi
23094
 
done
23095
 
 
23096
 
 
23097
 
  :
23098
 
 
23099
 
 
23100
 
 
23101
 
 
23102
 
for ac_func in vasnprintf
23103
 
do
23104
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23105
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23106
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23107
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23108
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23109
 
else
23110
 
  cat >conftest.$ac_ext <<_ACEOF
23111
 
/* confdefs.h.  */
23112
 
_ACEOF
23113
 
cat confdefs.h >>conftest.$ac_ext
23114
 
cat >>conftest.$ac_ext <<_ACEOF
23115
 
/* end confdefs.h.  */
23116
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23117
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23118
 
#define $ac_func innocuous_$ac_func
23119
 
 
23120
 
/* System header to define __stub macros and hopefully few prototypes,
23121
 
    which can conflict with char $ac_func (); below.
23122
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23123
 
    <limits.h> exists even on freestanding compilers.  */
23124
 
 
23125
 
#ifdef __STDC__
23126
 
# include <limits.h>
23127
 
#else
23128
 
# include <assert.h>
23129
 
#endif
23130
 
 
23131
 
#undef $ac_func
23132
 
 
23133
 
/* Override any gcc2 internal prototype to avoid an error.  */
23134
 
#ifdef __cplusplus
23135
 
extern "C"
23136
 
{
23137
 
#endif
23138
 
/* We use char because int might match the return type of a gcc2
23139
 
   builtin and then its argument prototype would still apply.  */
23140
 
char $ac_func ();
23141
 
/* The GNU C library defines this for functions which it implements
23142
 
    to always fail with ENOSYS.  Some functions are actually named
23143
 
    something starting with __ and the normal name is an alias.  */
23144
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23145
 
choke me
23146
 
#else
23147
 
char (*f) () = $ac_func;
23148
 
#endif
23149
 
#ifdef __cplusplus
23150
 
}
23151
 
#endif
23152
 
 
23153
 
int
23154
 
main ()
23155
 
{
23156
 
return f != $ac_func;
23157
 
  ;
23158
 
  return 0;
23159
 
}
23160
 
_ACEOF
23161
 
rm -f conftest.$ac_objext conftest$ac_exeext
23162
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23163
 
  (eval $ac_link) 2>conftest.er1
23164
 
  ac_status=$?
23165
 
  grep -v '^ *+' conftest.er1 >conftest.err
23166
 
  rm -f conftest.er1
23167
 
  cat conftest.err >&5
23168
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169
 
  (exit $ac_status); } &&
23170
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23171
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172
 
  (eval $ac_try) 2>&5
23173
 
  ac_status=$?
23174
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175
 
  (exit $ac_status); }; } &&
23176
 
         { ac_try='test -s conftest$ac_exeext'
23177
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178
 
  (eval $ac_try) 2>&5
23179
 
  ac_status=$?
23180
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181
 
  (exit $ac_status); }; }; then
23182
 
  eval "$as_ac_var=yes"
23183
 
else
23184
 
  echo "$as_me: failed program was:" >&5
23185
 
sed 's/^/| /' conftest.$ac_ext >&5
23186
 
 
23187
 
eval "$as_ac_var=no"
23188
 
fi
23189
 
rm -f conftest.err conftest.$ac_objext \
23190
 
      conftest$ac_exeext conftest.$ac_ext
23191
 
fi
23192
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23193
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23194
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23195
 
  cat >>confdefs.h <<_ACEOF
23196
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23197
 
_ACEOF
23198
 
 
23199
 
else
23200
 
  case $LIBOBJS in
23201
 
    "$ac_func.$ac_objext"   | \
23202
 
  *" $ac_func.$ac_objext"   | \
23203
 
    "$ac_func.$ac_objext "* | \
23204
 
  *" $ac_func.$ac_objext "* ) ;;
23205
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23206
 
esac
23207
 
 
23208
 
fi
23209
 
done
23210
 
 
23211
 
 
23212
 
  if test $ac_cv_func_vasnprintf = no; then
23213
 
    case $LIBOBJS in
23214
 
    "printf-args.$ac_objext"   | \
23215
 
  *" printf-args.$ac_objext"   | \
23216
 
    "printf-args.$ac_objext "* | \
23217
 
  *" printf-args.$ac_objext "* ) ;;
23218
 
  *) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
23219
 
esac
23220
 
 
23221
 
    case $LIBOBJS in
23222
 
    "printf-parse.$ac_objext"   | \
23223
 
  *" printf-parse.$ac_objext"   | \
23224
 
    "printf-parse.$ac_objext "* | \
23225
 
  *" printf-parse.$ac_objext "* ) ;;
23226
 
  *) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
23227
 
esac
23228
 
 
23229
 
    case $LIBOBJS in
23230
 
    "asnprintf.$ac_objext"   | \
23231
 
  *" asnprintf.$ac_objext"   | \
23232
 
    "asnprintf.$ac_objext "* | \
23233
 
  *" asnprintf.$ac_objext "* ) ;;
23234
 
  *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
23235
 
esac
23236
 
 
23237
 
 
23238
 
 
23239
 
 
23240
 
 
23241
 
 
23242
 
 
23243
 
 
23244
 
 
23245
 
 
23246
 
 
23247
 
 
23248
 
 
23249
 
 
23250
 
  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
23251
 
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
23252
 
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
23253
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23254
 
else
23255
 
  cat >conftest.$ac_ext <<_ACEOF
 
22651
for ac_header in unistd.h
 
22652
do
 
22653
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22654
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22655
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22656
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22657
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22659
fi
 
22660
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22661
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22662
echo "${ECHO_T}$ac_res" >&6; }
 
22663
else
 
22664
  # Is the header compilable?
 
22665
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22666
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
22667
cat >conftest.$ac_ext <<_ACEOF
23256
22668
/* confdefs.h.  */
23257
22669
_ACEOF
23258
22670
cat confdefs.h >>conftest.$ac_ext
23259
22671
cat >>conftest.$ac_ext <<_ACEOF
23260
22672
/* end confdefs.h.  */
23261
22673
$ac_includes_default
23262
 
int
23263
 
main ()
23264
 
{
23265
 
if ((ptrdiff_t *) 0)
23266
 
  return 0;
23267
 
if (sizeof (ptrdiff_t))
23268
 
  return 0;
23269
 
  ;
23270
 
  return 0;
23271
 
}
 
22674
#include <$ac_header>
23272
22675
_ACEOF
23273
22676
rm -f conftest.$ac_objext
23274
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23275
 
  (eval $ac_compile) 2>conftest.er1
23276
 
  ac_status=$?
23277
 
  grep -v '^ *+' conftest.er1 >conftest.err
23278
 
  rm -f conftest.er1
23279
 
  cat conftest.err >&5
23280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281
 
  (exit $ac_status); } &&
23282
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23283
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284
 
  (eval $ac_try) 2>&5
23285
 
  ac_status=$?
23286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287
 
  (exit $ac_status); }; } &&
23288
 
         { ac_try='test -s conftest.$ac_objext'
23289
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290
 
  (eval $ac_try) 2>&5
23291
 
  ac_status=$?
23292
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293
 
  (exit $ac_status); }; }; then
23294
 
  ac_cv_type_ptrdiff_t=yes
23295
 
else
23296
 
  echo "$as_me: failed program was:" >&5
23297
 
sed 's/^/| /' conftest.$ac_ext >&5
23298
 
 
23299
 
ac_cv_type_ptrdiff_t=no
23300
 
fi
23301
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23302
 
fi
23303
 
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
23304
 
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
23305
 
if test $ac_cv_type_ptrdiff_t = yes; then
23306
 
 
23307
 
cat >>confdefs.h <<_ACEOF
23308
 
#define HAVE_PTRDIFF_T 1
23309
 
_ACEOF
23310
 
 
23311
 
 
23312
 
fi
23313
 
 
23314
 
 
23315
 
 
23316
 
 
23317
 
 
23318
 
 
23319
 
 
23320
 
 
23321
 
 
23322
 
 
23323
 
 
23324
 
for ac_func in snprintf wcslen
23325
 
do
23326
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23327
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23328
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23329
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23330
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23331
 
else
23332
 
  cat >conftest.$ac_ext <<_ACEOF
23333
 
/* confdefs.h.  */
23334
 
_ACEOF
23335
 
cat confdefs.h >>conftest.$ac_ext
23336
 
cat >>conftest.$ac_ext <<_ACEOF
23337
 
/* end confdefs.h.  */
23338
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23339
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23340
 
#define $ac_func innocuous_$ac_func
23341
 
 
23342
 
/* System header to define __stub macros and hopefully few prototypes,
23343
 
    which can conflict with char $ac_func (); below.
23344
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23345
 
    <limits.h> exists even on freestanding compilers.  */
23346
 
 
23347
 
#ifdef __STDC__
23348
 
# include <limits.h>
23349
 
#else
23350
 
# include <assert.h>
23351
 
#endif
23352
 
 
23353
 
#undef $ac_func
23354
 
 
23355
 
/* Override any gcc2 internal prototype to avoid an error.  */
23356
 
#ifdef __cplusplus
23357
 
extern "C"
23358
 
{
23359
 
#endif
23360
 
/* We use char because int might match the return type of a gcc2
23361
 
   builtin and then its argument prototype would still apply.  */
23362
 
char $ac_func ();
23363
 
/* The GNU C library defines this for functions which it implements
23364
 
    to always fail with ENOSYS.  Some functions are actually named
23365
 
    something starting with __ and the normal name is an alias.  */
23366
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23367
 
choke me
23368
 
#else
23369
 
char (*f) () = $ac_func;
23370
 
#endif
23371
 
#ifdef __cplusplus
23372
 
}
23373
 
#endif
23374
 
 
23375
 
int
23376
 
main ()
23377
 
{
23378
 
return f != $ac_func;
23379
 
  ;
23380
 
  return 0;
23381
 
}
23382
 
_ACEOF
23383
 
rm -f conftest.$ac_objext conftest$ac_exeext
23384
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23385
 
  (eval $ac_link) 2>conftest.er1
23386
 
  ac_status=$?
23387
 
  grep -v '^ *+' conftest.er1 >conftest.err
23388
 
  rm -f conftest.er1
23389
 
  cat conftest.err >&5
23390
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391
 
  (exit $ac_status); } &&
23392
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23393
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394
 
  (eval $ac_try) 2>&5
23395
 
  ac_status=$?
23396
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397
 
  (exit $ac_status); }; } &&
23398
 
         { ac_try='test -s conftest$ac_exeext'
23399
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400
 
  (eval $ac_try) 2>&5
23401
 
  ac_status=$?
23402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403
 
  (exit $ac_status); }; }; then
23404
 
  eval "$as_ac_var=yes"
23405
 
else
23406
 
  echo "$as_me: failed program was:" >&5
23407
 
sed 's/^/| /' conftest.$ac_ext >&5
23408
 
 
23409
 
eval "$as_ac_var=no"
23410
 
fi
23411
 
rm -f conftest.err conftest.$ac_objext \
23412
 
      conftest$ac_exeext conftest.$ac_ext
23413
 
fi
23414
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23415
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23416
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23417
 
  cat >>confdefs.h <<_ACEOF
23418
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23419
 
_ACEOF
23420
 
 
23421
 
fi
23422
 
done
23423
 
 
23424
 
 
23425
 
 
23426
 
 
23427
 
  fi
23428
 
 
23429
 
 
23430
 
 
23431
 
for ac_func in vasprintf
23432
 
do
23433
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23434
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23435
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23436
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23437
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23438
 
else
23439
 
  cat >conftest.$ac_ext <<_ACEOF
23440
 
/* confdefs.h.  */
23441
 
_ACEOF
23442
 
cat confdefs.h >>conftest.$ac_ext
23443
 
cat >>conftest.$ac_ext <<_ACEOF
23444
 
/* end confdefs.h.  */
23445
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23446
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23447
 
#define $ac_func innocuous_$ac_func
23448
 
 
23449
 
/* System header to define __stub macros and hopefully few prototypes,
23450
 
    which can conflict with char $ac_func (); below.
23451
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23452
 
    <limits.h> exists even on freestanding compilers.  */
23453
 
 
23454
 
#ifdef __STDC__
23455
 
# include <limits.h>
23456
 
#else
23457
 
# include <assert.h>
23458
 
#endif
23459
 
 
23460
 
#undef $ac_func
23461
 
 
23462
 
/* Override any gcc2 internal prototype to avoid an error.  */
23463
 
#ifdef __cplusplus
23464
 
extern "C"
23465
 
{
23466
 
#endif
23467
 
/* We use char because int might match the return type of a gcc2
23468
 
   builtin and then its argument prototype would still apply.  */
23469
 
char $ac_func ();
23470
 
/* The GNU C library defines this for functions which it implements
23471
 
    to always fail with ENOSYS.  Some functions are actually named
23472
 
    something starting with __ and the normal name is an alias.  */
23473
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23474
 
choke me
23475
 
#else
23476
 
char (*f) () = $ac_func;
23477
 
#endif
23478
 
#ifdef __cplusplus
23479
 
}
23480
 
#endif
23481
 
 
23482
 
int
23483
 
main ()
23484
 
{
23485
 
return f != $ac_func;
23486
 
  ;
23487
 
  return 0;
23488
 
}
23489
 
_ACEOF
23490
 
rm -f conftest.$ac_objext conftest$ac_exeext
23491
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23492
 
  (eval $ac_link) 2>conftest.er1
23493
 
  ac_status=$?
23494
 
  grep -v '^ *+' conftest.er1 >conftest.err
23495
 
  rm -f conftest.er1
23496
 
  cat conftest.err >&5
23497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498
 
  (exit $ac_status); } &&
23499
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23500
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501
 
  (eval $ac_try) 2>&5
23502
 
  ac_status=$?
23503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504
 
  (exit $ac_status); }; } &&
23505
 
         { ac_try='test -s conftest$ac_exeext'
23506
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507
 
  (eval $ac_try) 2>&5
23508
 
  ac_status=$?
23509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510
 
  (exit $ac_status); }; }; then
23511
 
  eval "$as_ac_var=yes"
23512
 
else
23513
 
  echo "$as_me: failed program was:" >&5
23514
 
sed 's/^/| /' conftest.$ac_ext >&5
23515
 
 
23516
 
eval "$as_ac_var=no"
23517
 
fi
23518
 
rm -f conftest.err conftest.$ac_objext \
23519
 
      conftest$ac_exeext conftest.$ac_ext
23520
 
fi
23521
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23522
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23523
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23524
 
  cat >>confdefs.h <<_ACEOF
23525
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23526
 
_ACEOF
23527
 
 
23528
 
else
23529
 
  case $LIBOBJS in
23530
 
    "$ac_func.$ac_objext"   | \
23531
 
  *" $ac_func.$ac_objext"   | \
23532
 
    "$ac_func.$ac_objext "* | \
23533
 
  *" $ac_func.$ac_objext "* ) ;;
23534
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
23535
 
esac
23536
 
 
23537
 
fi
23538
 
done
23539
 
 
23540
 
 
23541
 
  if test $ac_cv_func_vasprintf = no; then
23542
 
    case $LIBOBJS in
23543
 
    "asprintf.$ac_objext"   | \
23544
 
  *" asprintf.$ac_objext"   | \
23545
 
    "asprintf.$ac_objext "* | \
23546
 
  *" asprintf.$ac_objext "* ) ;;
23547
 
  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
23548
 
esac
23549
 
 
23550
 
 
23551
 
 
23552
 
 
23553
 
 
23554
 
  fi
 
22677
if { (ac_try="$ac_compile"
 
22678
case "(($ac_try" in
 
22679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22680
  *) ac_try_echo=$ac_try;;
 
22681
esac
 
22682
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22683
  (eval "$ac_compile") 2>conftest.er1
 
22684
  ac_status=$?
 
22685
  grep -v '^ *+' conftest.er1 >conftest.err
 
22686
  rm -f conftest.er1
 
22687
  cat conftest.err >&5
 
22688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22689
  (exit $ac_status); } && {
 
22690
         test -z "$ac_c_werror_flag" ||
 
22691
         test ! -s conftest.err
 
22692
       } && test -s conftest.$ac_objext; then
 
22693
  ac_header_compiler=yes
 
22694
else
 
22695
  echo "$as_me: failed program was:" >&5
 
22696
sed 's/^/| /' conftest.$ac_ext >&5
 
22697
 
 
22698
        ac_header_compiler=no
 
22699
fi
 
22700
 
 
22701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22702
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22703
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22704
 
 
22705
# Is the header present?
 
22706
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22707
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
22708
cat >conftest.$ac_ext <<_ACEOF
 
22709
/* confdefs.h.  */
 
22710
_ACEOF
 
22711
cat confdefs.h >>conftest.$ac_ext
 
22712
cat >>conftest.$ac_ext <<_ACEOF
 
22713
/* end confdefs.h.  */
 
22714
#include <$ac_header>
 
22715
_ACEOF
 
22716
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22717
case "(($ac_try" in
 
22718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22719
  *) ac_try_echo=$ac_try;;
 
22720
esac
 
22721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22722
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22723
  ac_status=$?
 
22724
  grep -v '^ *+' conftest.er1 >conftest.err
 
22725
  rm -f conftest.er1
 
22726
  cat conftest.err >&5
 
22727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22728
  (exit $ac_status); } >/dev/null && {
 
22729
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22730
         test ! -s conftest.err
 
22731
       }; then
 
22732
  ac_header_preproc=yes
 
22733
else
 
22734
  echo "$as_me: failed program was:" >&5
 
22735
sed 's/^/| /' conftest.$ac_ext >&5
 
22736
 
 
22737
  ac_header_preproc=no
 
22738
fi
 
22739
 
 
22740
rm -f conftest.err conftest.$ac_ext
 
22741
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22742
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
22743
 
 
22744
# So?  What about this header?
 
22745
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22746
  yes:no: )
 
22747
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22748
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22749
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22750
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22751
    ac_header_preproc=yes
 
22752
    ;;
 
22753
  no:yes:* )
 
22754
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22755
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22756
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22757
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22758
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22759
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22760
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22761
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22762
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22763
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22764
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22765
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22766
    ( cat <<\_ASBOX
 
22767
## ---------------------------------- ##
 
22768
## Report this to bug-gnupg@gnupg.org ##
 
22769
## ---------------------------------- ##
 
22770
_ASBOX
 
22771
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22772
    ;;
 
22773
esac
 
22774
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22775
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22776
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22778
else
 
22779
  eval "$as_ac_Header=\$ac_header_preproc"
 
22780
fi
 
22781
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22782
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22783
echo "${ECHO_T}$ac_res" >&6; }
 
22784
 
 
22785
fi
 
22786
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22787
  cat >>confdefs.h <<_ACEOF
 
22788
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22789
_ACEOF
 
22790
 
 
22791
    UNISTD_H=''
 
22792
 
 
22793
else
 
22794
 
 
22795
    UNISTD_H='unistd.h'
 
22796
 
 
22797
fi
 
22798
 
 
22799
done
 
22800
 
 
22801
 
 
22802
 
23555
22803
 
23556
22804
 
23557
22805
 
23559
22807
for ac_header in stdint.h
23560
22808
do
23561
22809
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23562
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23563
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
23564
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23565
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23566
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23567
 
fi
23568
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23569
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23570
 
else
23571
 
  # Is the header compilable?
23572
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23573
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23574
 
cat >conftest.$ac_ext <<_ACEOF
23575
 
/* confdefs.h.  */
23576
 
_ACEOF
23577
 
cat confdefs.h >>conftest.$ac_ext
23578
 
cat >>conftest.$ac_ext <<_ACEOF
23579
 
/* end confdefs.h.  */
23580
 
$ac_includes_default
23581
 
#include <$ac_header>
23582
 
_ACEOF
23583
 
rm -f conftest.$ac_objext
23584
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23585
 
  (eval $ac_compile) 2>conftest.er1
23586
 
  ac_status=$?
23587
 
  grep -v '^ *+' conftest.er1 >conftest.err
23588
 
  rm -f conftest.er1
23589
 
  cat conftest.err >&5
23590
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591
 
  (exit $ac_status); } &&
23592
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23593
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594
 
  (eval $ac_try) 2>&5
23595
 
  ac_status=$?
23596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597
 
  (exit $ac_status); }; } &&
23598
 
         { ac_try='test -s conftest.$ac_objext'
23599
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600
 
  (eval $ac_try) 2>&5
23601
 
  ac_status=$?
23602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603
 
  (exit $ac_status); }; }; then
23604
 
  ac_header_compiler=yes
23605
 
else
23606
 
  echo "$as_me: failed program was:" >&5
23607
 
sed 's/^/| /' conftest.$ac_ext >&5
23608
 
 
23609
 
ac_header_compiler=no
23610
 
fi
23611
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23612
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23613
 
echo "${ECHO_T}$ac_header_compiler" >&6
23614
 
 
23615
 
# Is the header present?
23616
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23617
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23618
 
cat >conftest.$ac_ext <<_ACEOF
23619
 
/* confdefs.h.  */
23620
 
_ACEOF
23621
 
cat confdefs.h >>conftest.$ac_ext
23622
 
cat >>conftest.$ac_ext <<_ACEOF
23623
 
/* end confdefs.h.  */
23624
 
#include <$ac_header>
23625
 
_ACEOF
23626
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23627
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23628
 
  ac_status=$?
23629
 
  grep -v '^ *+' conftest.er1 >conftest.err
23630
 
  rm -f conftest.er1
23631
 
  cat conftest.err >&5
23632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633
 
  (exit $ac_status); } >/dev/null; then
23634
 
  if test -s conftest.err; then
23635
 
    ac_cpp_err=$ac_c_preproc_warn_flag
23636
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23637
 
  else
23638
 
    ac_cpp_err=
23639
 
  fi
23640
 
else
23641
 
  ac_cpp_err=yes
23642
 
fi
23643
 
if test -z "$ac_cpp_err"; then
23644
 
  ac_header_preproc=yes
23645
 
else
23646
 
  echo "$as_me: failed program was:" >&5
23647
 
sed 's/^/| /' conftest.$ac_ext >&5
23648
 
 
23649
 
  ac_header_preproc=no
23650
 
fi
23651
 
rm -f conftest.err conftest.$ac_ext
23652
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23653
 
echo "${ECHO_T}$ac_header_preproc" >&6
23654
 
 
23655
 
# So?  What about this header?
23656
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23657
 
  yes:no: )
23658
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23659
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23660
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23661
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23662
 
    ac_header_preproc=yes
23663
 
    ;;
23664
 
  no:yes:* )
23665
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23666
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23667
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23668
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23669
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23670
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23671
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23672
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23673
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23674
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23675
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23676
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23677
 
    (
23678
 
      cat <<\_ASBOX
23679
 
## ------------------------------------ ##
23680
 
## Report this to gnupg-devel@gnupg.org ##
23681
 
## ------------------------------------ ##
23682
 
_ASBOX
23683
 
    ) |
23684
 
      sed "s/^/$as_me: WARNING:     /" >&2
23685
 
    ;;
23686
 
esac
23687
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
23688
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23689
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23690
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23691
 
else
23692
 
  eval "$as_ac_Header=\$ac_header_preproc"
23693
 
fi
23694
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23695
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23696
 
 
23697
 
fi
23698
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23699
 
  cat >>confdefs.h <<_ACEOF
23700
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23701
 
_ACEOF
23702
 
 
23703
 
fi
23704
 
 
23705
 
done
23706
 
 
23707
 
 
23708
 
 
23709
 
 
23710
 
# These are needed by libjnlib - fixme: we should have macros for them
23711
 
 
23712
 
 
23713
 
 
23714
 
 
23715
 
 
23716
 
 
23717
 
 
23718
 
for ac_func in memicmp stpcpy strlwr strtoul memmove stricmp strtol
23719
 
do
23720
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23721
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23722
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23723
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23724
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23725
 
else
23726
 
  cat >conftest.$ac_ext <<_ACEOF
23727
 
/* confdefs.h.  */
23728
 
_ACEOF
23729
 
cat confdefs.h >>conftest.$ac_ext
23730
 
cat >>conftest.$ac_ext <<_ACEOF
23731
 
/* end confdefs.h.  */
23732
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23733
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23734
 
#define $ac_func innocuous_$ac_func
23735
 
 
23736
 
/* System header to define __stub macros and hopefully few prototypes,
23737
 
    which can conflict with char $ac_func (); below.
23738
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23739
 
    <limits.h> exists even on freestanding compilers.  */
23740
 
 
23741
 
#ifdef __STDC__
23742
 
# include <limits.h>
23743
 
#else
23744
 
# include <assert.h>
23745
 
#endif
23746
 
 
23747
 
#undef $ac_func
23748
 
 
23749
 
/* Override any gcc2 internal prototype to avoid an error.  */
23750
 
#ifdef __cplusplus
23751
 
extern "C"
23752
 
{
23753
 
#endif
23754
 
/* We use char because int might match the return type of a gcc2
23755
 
   builtin and then its argument prototype would still apply.  */
23756
 
char $ac_func ();
23757
 
/* The GNU C library defines this for functions which it implements
23758
 
    to always fail with ENOSYS.  Some functions are actually named
23759
 
    something starting with __ and the normal name is an alias.  */
23760
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23761
 
choke me
23762
 
#else
23763
 
char (*f) () = $ac_func;
23764
 
#endif
23765
 
#ifdef __cplusplus
23766
 
}
23767
 
#endif
23768
 
 
23769
 
int
23770
 
main ()
23771
 
{
23772
 
return f != $ac_func;
23773
 
  ;
23774
 
  return 0;
23775
 
}
23776
 
_ACEOF
23777
 
rm -f conftest.$ac_objext conftest$ac_exeext
23778
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23779
 
  (eval $ac_link) 2>conftest.er1
23780
 
  ac_status=$?
23781
 
  grep -v '^ *+' conftest.er1 >conftest.err
23782
 
  rm -f conftest.er1
23783
 
  cat conftest.err >&5
23784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785
 
  (exit $ac_status); } &&
23786
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23787
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788
 
  (eval $ac_try) 2>&5
23789
 
  ac_status=$?
23790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791
 
  (exit $ac_status); }; } &&
23792
 
         { ac_try='test -s conftest$ac_exeext'
23793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794
 
  (eval $ac_try) 2>&5
23795
 
  ac_status=$?
23796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797
 
  (exit $ac_status); }; }; then
23798
 
  eval "$as_ac_var=yes"
23799
 
else
23800
 
  echo "$as_me: failed program was:" >&5
23801
 
sed 's/^/| /' conftest.$ac_ext >&5
23802
 
 
23803
 
eval "$as_ac_var=no"
23804
 
fi
23805
 
rm -f conftest.err conftest.$ac_objext \
23806
 
      conftest$ac_exeext conftest.$ac_ext
23807
 
fi
23808
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23809
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23810
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23811
 
  cat >>confdefs.h <<_ACEOF
23812
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23813
 
_ACEOF
23814
 
 
23815
 
fi
23816
 
done
23817
 
 
23818
 
 
23819
 
 
23820
 
 
23821
 
 
23822
 
for ac_func in getrusage setrlimit stat setlocale
23823
 
do
23824
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23825
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23826
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23827
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23828
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23829
 
else
23830
 
  cat >conftest.$ac_ext <<_ACEOF
23831
 
/* confdefs.h.  */
23832
 
_ACEOF
23833
 
cat confdefs.h >>conftest.$ac_ext
23834
 
cat >>conftest.$ac_ext <<_ACEOF
23835
 
/* end confdefs.h.  */
23836
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23837
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23838
 
#define $ac_func innocuous_$ac_func
23839
 
 
23840
 
/* System header to define __stub macros and hopefully few prototypes,
23841
 
    which can conflict with char $ac_func (); below.
23842
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23843
 
    <limits.h> exists even on freestanding compilers.  */
23844
 
 
23845
 
#ifdef __STDC__
23846
 
# include <limits.h>
23847
 
#else
23848
 
# include <assert.h>
23849
 
#endif
23850
 
 
23851
 
#undef $ac_func
23852
 
 
23853
 
/* Override any gcc2 internal prototype to avoid an error.  */
23854
 
#ifdef __cplusplus
23855
 
extern "C"
23856
 
{
23857
 
#endif
23858
 
/* We use char because int might match the return type of a gcc2
23859
 
   builtin and then its argument prototype would still apply.  */
23860
 
char $ac_func ();
23861
 
/* The GNU C library defines this for functions which it implements
23862
 
    to always fail with ENOSYS.  Some functions are actually named
23863
 
    something starting with __ and the normal name is an alias.  */
23864
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23865
 
choke me
23866
 
#else
23867
 
char (*f) () = $ac_func;
23868
 
#endif
23869
 
#ifdef __cplusplus
23870
 
}
23871
 
#endif
23872
 
 
23873
 
int
23874
 
main ()
23875
 
{
23876
 
return f != $ac_func;
23877
 
  ;
23878
 
  return 0;
23879
 
}
23880
 
_ACEOF
23881
 
rm -f conftest.$ac_objext conftest$ac_exeext
23882
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883
 
  (eval $ac_link) 2>conftest.er1
23884
 
  ac_status=$?
23885
 
  grep -v '^ *+' conftest.er1 >conftest.err
23886
 
  rm -f conftest.er1
23887
 
  cat conftest.err >&5
23888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889
 
  (exit $ac_status); } &&
23890
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23891
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892
 
  (eval $ac_try) 2>&5
23893
 
  ac_status=$?
23894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895
 
  (exit $ac_status); }; } &&
23896
 
         { ac_try='test -s conftest$ac_exeext'
23897
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898
 
  (eval $ac_try) 2>&5
23899
 
  ac_status=$?
23900
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901
 
  (exit $ac_status); }; }; then
23902
 
  eval "$as_ac_var=yes"
23903
 
else
23904
 
  echo "$as_me: failed program was:" >&5
23905
 
sed 's/^/| /' conftest.$ac_ext >&5
23906
 
 
23907
 
eval "$as_ac_var=no"
23908
 
fi
23909
 
rm -f conftest.err conftest.$ac_objext \
23910
 
      conftest$ac_exeext conftest.$ac_ext
23911
 
fi
23912
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23913
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23914
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
23915
 
  cat >>confdefs.h <<_ACEOF
23916
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23917
 
_ACEOF
23918
 
 
23919
 
fi
23920
 
done
23921
 
 
23922
 
 
23923
 
 
23924
 
 
23925
 
 
23926
 
for ac_func in flockfile funlockfile fopencookie funopen
23927
 
do
23928
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23929
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
23930
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23931
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
23932
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23933
 
else
23934
 
  cat >conftest.$ac_ext <<_ACEOF
23935
 
/* confdefs.h.  */
23936
 
_ACEOF
23937
 
cat confdefs.h >>conftest.$ac_ext
23938
 
cat >>conftest.$ac_ext <<_ACEOF
23939
 
/* end confdefs.h.  */
23940
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23941
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23942
 
#define $ac_func innocuous_$ac_func
23943
 
 
23944
 
/* System header to define __stub macros and hopefully few prototypes,
23945
 
    which can conflict with char $ac_func (); below.
23946
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23947
 
    <limits.h> exists even on freestanding compilers.  */
23948
 
 
23949
 
#ifdef __STDC__
23950
 
# include <limits.h>
23951
 
#else
23952
 
# include <assert.h>
23953
 
#endif
23954
 
 
23955
 
#undef $ac_func
23956
 
 
23957
 
/* Override any gcc2 internal prototype to avoid an error.  */
23958
 
#ifdef __cplusplus
23959
 
extern "C"
23960
 
{
23961
 
#endif
23962
 
/* We use char because int might match the return type of a gcc2
23963
 
   builtin and then its argument prototype would still apply.  */
23964
 
char $ac_func ();
23965
 
/* The GNU C library defines this for functions which it implements
23966
 
    to always fail with ENOSYS.  Some functions are actually named
23967
 
    something starting with __ and the normal name is an alias.  */
23968
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23969
 
choke me
23970
 
#else
23971
 
char (*f) () = $ac_func;
23972
 
#endif
23973
 
#ifdef __cplusplus
23974
 
}
23975
 
#endif
23976
 
 
23977
 
int
23978
 
main ()
23979
 
{
23980
 
return f != $ac_func;
23981
 
  ;
23982
 
  return 0;
23983
 
}
23984
 
_ACEOF
23985
 
rm -f conftest.$ac_objext conftest$ac_exeext
23986
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987
 
  (eval $ac_link) 2>conftest.er1
23988
 
  ac_status=$?
23989
 
  grep -v '^ *+' conftest.er1 >conftest.err
23990
 
  rm -f conftest.er1
23991
 
  cat conftest.err >&5
23992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993
 
  (exit $ac_status); } &&
23994
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23995
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996
 
  (eval $ac_try) 2>&5
23997
 
  ac_status=$?
23998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999
 
  (exit $ac_status); }; } &&
24000
 
         { ac_try='test -s conftest$ac_exeext'
24001
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002
 
  (eval $ac_try) 2>&5
24003
 
  ac_status=$?
24004
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005
 
  (exit $ac_status); }; }; then
24006
 
  eval "$as_ac_var=yes"
24007
 
else
24008
 
  echo "$as_me: failed program was:" >&5
24009
 
sed 's/^/| /' conftest.$ac_ext >&5
24010
 
 
24011
 
eval "$as_ac_var=no"
24012
 
fi
24013
 
rm -f conftest.err conftest.$ac_objext \
24014
 
      conftest$ac_exeext conftest.$ac_ext
24015
 
fi
24016
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24017
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24018
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
24019
 
  cat >>confdefs.h <<_ACEOF
24020
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24021
 
_ACEOF
24022
 
 
24023
 
fi
24024
 
done
24025
 
 
24026
 
 
24027
 
 
24028
 
#
24029
 
# check for gethrtime and run a testprogram to see whether
24030
 
# it is broken.  It has been reported that some Solaris and HP UX systems
24031
 
# raise an SIGILL
24032
 
#
24033
 
#  fixme: Do we need this - iirc, this is only used by libgcrypt.
24034
 
#
24035
 
echo "$as_me:$LINENO: checking for gethrtime" >&5
24036
 
echo $ECHO_N "checking for gethrtime... $ECHO_C" >&6
24037
 
if test "${gnupg_cv_func_gethrtime+set}" = set; then
24038
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24039
 
else
24040
 
  cat >conftest.$ac_ext <<_ACEOF
24041
 
/* confdefs.h.  */
24042
 
_ACEOF
24043
 
cat confdefs.h >>conftest.$ac_ext
24044
 
cat >>conftest.$ac_ext <<_ACEOF
24045
 
/* end confdefs.h.  */
24046
 
#include <sys/times.h>
24047
 
int
24048
 
main ()
24049
 
{
24050
 
 
24051
 
                   hrtime_t tv;
24052
 
                   tv = gethrtime();
24053
 
 
24054
 
  ;
24055
 
  return 0;
24056
 
}
24057
 
_ACEOF
24058
 
rm -f conftest.$ac_objext conftest$ac_exeext
24059
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24060
 
  (eval $ac_link) 2>conftest.er1
24061
 
  ac_status=$?
24062
 
  grep -v '^ *+' conftest.er1 >conftest.err
24063
 
  rm -f conftest.er1
24064
 
  cat conftest.err >&5
24065
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066
 
  (exit $ac_status); } &&
24067
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24068
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24069
 
  (eval $ac_try) 2>&5
24070
 
  ac_status=$?
24071
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072
 
  (exit $ac_status); }; } &&
24073
 
         { ac_try='test -s conftest$ac_exeext'
24074
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24075
 
  (eval $ac_try) 2>&5
24076
 
  ac_status=$?
24077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078
 
  (exit $ac_status); }; }; then
24079
 
  gnupg_cv_func_gethrtime=yes
24080
 
else
24081
 
  echo "$as_me: failed program was:" >&5
24082
 
sed 's/^/| /' conftest.$ac_ext >&5
24083
 
 
24084
 
gnupg_cv_func_gethrtime=no
24085
 
fi
24086
 
rm -f conftest.err conftest.$ac_objext \
24087
 
      conftest$ac_exeext conftest.$ac_ext
24088
 
 
24089
 
fi
24090
 
echo "$as_me:$LINENO: result: $gnupg_cv_func_gethrtime" >&5
24091
 
echo "${ECHO_T}$gnupg_cv_func_gethrtime" >&6
24092
 
if test $gnupg_cv_func_gethrtime = yes; then
24093
 
 
24094
 
cat >>confdefs.h <<\_ACEOF
24095
 
#define HAVE_GETHRTIME 1
24096
 
_ACEOF
24097
 
 
24098
 
     echo "$as_me:$LINENO: checking whether gethrtime is broken" >&5
24099
 
echo $ECHO_N "checking whether gethrtime is broken... $ECHO_C" >&6
24100
 
if test "${gnupg_cv_func_broken_gethrtime+set}" = set; then
24101
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24102
 
else
24103
 
  if test "$cross_compiling" = yes; then
24104
 
  gnupg_cv_func_broken_gethrtime=assume-no
24105
 
else
24106
 
  cat >conftest.$ac_ext <<_ACEOF
24107
 
/* confdefs.h.  */
24108
 
_ACEOF
24109
 
cat confdefs.h >>conftest.$ac_ext
24110
 
cat >>conftest.$ac_ext <<_ACEOF
24111
 
/* end confdefs.h.  */
24112
 
 
24113
 
                   #include <sys/times.h>
24114
 
                   int main () {
24115
 
                   hrtime_t tv;
24116
 
                   tv = gethrtime();
24117
 
                 }
24118
 
 
24119
 
_ACEOF
24120
 
rm -f conftest$ac_exeext
24121
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24122
 
  (eval $ac_link) 2>&5
24123
 
  ac_status=$?
24124
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24126
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127
 
  (eval $ac_try) 2>&5
24128
 
  ac_status=$?
24129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130
 
  (exit $ac_status); }; }; then
24131
 
  gnupg_cv_func_broken_gethrtime=no
24132
 
else
24133
 
  echo "$as_me: program exited with status $ac_status" >&5
24134
 
echo "$as_me: failed program was:" >&5
24135
 
sed 's/^/| /' conftest.$ac_ext >&5
24136
 
 
24137
 
( exit $ac_status )
24138
 
gnupg_cv_func_broken_gethrtime=yes
24139
 
fi
24140
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24141
 
fi
24142
 
 
24143
 
fi
24144
 
echo "$as_me:$LINENO: result: $gnupg_cv_func_broken_gethrtime" >&5
24145
 
echo "${ECHO_T}$gnupg_cv_func_broken_gethrtime" >&6
24146
 
    if test $gnupg_cv_func_broken_gethrtime = yes; then
24147
 
 
24148
 
cat >>confdefs.h <<\_ACEOF
24149
 
#define HAVE_BROKEN_GETHRTIME 1
24150
 
_ACEOF
24151
 
 
24152
 
    fi
24153
 
fi
24154
 
 
24155
 
 
24156
 
 
24157
 
for ac_func in mlock
24158
 
do
24159
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24160
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
24161
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24162
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
24163
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24164
 
else
24165
 
  cat >conftest.$ac_ext <<_ACEOF
24166
 
/* confdefs.h.  */
24167
 
_ACEOF
24168
 
cat confdefs.h >>conftest.$ac_ext
24169
 
cat >>conftest.$ac_ext <<_ACEOF
24170
 
/* end confdefs.h.  */
24171
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24172
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24173
 
#define $ac_func innocuous_$ac_func
24174
 
 
24175
 
/* System header to define __stub macros and hopefully few prototypes,
24176
 
    which can conflict with char $ac_func (); below.
24177
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24178
 
    <limits.h> exists even on freestanding compilers.  */
24179
 
 
24180
 
#ifdef __STDC__
24181
 
# include <limits.h>
24182
 
#else
24183
 
# include <assert.h>
24184
 
#endif
24185
 
 
24186
 
#undef $ac_func
24187
 
 
24188
 
/* Override any gcc2 internal prototype to avoid an error.  */
24189
 
#ifdef __cplusplus
24190
 
extern "C"
24191
 
{
24192
 
#endif
24193
 
/* We use char because int might match the return type of a gcc2
24194
 
   builtin and then its argument prototype would still apply.  */
24195
 
char $ac_func ();
24196
 
/* The GNU C library defines this for functions which it implements
24197
 
    to always fail with ENOSYS.  Some functions are actually named
24198
 
    something starting with __ and the normal name is an alias.  */
24199
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24200
 
choke me
24201
 
#else
24202
 
char (*f) () = $ac_func;
24203
 
#endif
24204
 
#ifdef __cplusplus
24205
 
}
24206
 
#endif
24207
 
 
24208
 
int
24209
 
main ()
24210
 
{
24211
 
return f != $ac_func;
24212
 
  ;
24213
 
  return 0;
24214
 
}
24215
 
_ACEOF
24216
 
rm -f conftest.$ac_objext conftest$ac_exeext
24217
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24218
 
  (eval $ac_link) 2>conftest.er1
24219
 
  ac_status=$?
24220
 
  grep -v '^ *+' conftest.er1 >conftest.err
24221
 
  rm -f conftest.er1
24222
 
  cat conftest.err >&5
24223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224
 
  (exit $ac_status); } &&
24225
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24226
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24227
 
  (eval $ac_try) 2>&5
24228
 
  ac_status=$?
24229
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230
 
  (exit $ac_status); }; } &&
24231
 
         { ac_try='test -s conftest$ac_exeext'
24232
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24233
 
  (eval $ac_try) 2>&5
24234
 
  ac_status=$?
24235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236
 
  (exit $ac_status); }; }; then
24237
 
  eval "$as_ac_var=yes"
24238
 
else
24239
 
  echo "$as_me: failed program was:" >&5
24240
 
sed 's/^/| /' conftest.$ac_ext >&5
24241
 
 
24242
 
eval "$as_ac_var=no"
24243
 
fi
24244
 
rm -f conftest.err conftest.$ac_objext \
24245
 
      conftest$ac_exeext conftest.$ac_ext
24246
 
fi
24247
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24248
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24249
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
24250
 
  cat >>confdefs.h <<_ACEOF
24251
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24252
 
_ACEOF
24253
 
 
24254
 
fi
24255
 
done
24256
 
 
24257
 
    if test "$ac_cv_func_mlock" = "no"; then
24258
 
 
24259
 
for ac_header in sys/mman.h
24260
 
do
24261
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24262
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24263
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
24264
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24265
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24266
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24267
 
fi
24268
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24269
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24270
 
else
24271
 
  # Is the header compilable?
24272
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24273
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24274
 
cat >conftest.$ac_ext <<_ACEOF
24275
 
/* confdefs.h.  */
24276
 
_ACEOF
24277
 
cat confdefs.h >>conftest.$ac_ext
24278
 
cat >>conftest.$ac_ext <<_ACEOF
24279
 
/* end confdefs.h.  */
24280
 
$ac_includes_default
24281
 
#include <$ac_header>
24282
 
_ACEOF
24283
 
rm -f conftest.$ac_objext
24284
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24285
 
  (eval $ac_compile) 2>conftest.er1
24286
 
  ac_status=$?
24287
 
  grep -v '^ *+' conftest.er1 >conftest.err
24288
 
  rm -f conftest.er1
24289
 
  cat conftest.err >&5
24290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291
 
  (exit $ac_status); } &&
24292
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24293
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294
 
  (eval $ac_try) 2>&5
24295
 
  ac_status=$?
24296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297
 
  (exit $ac_status); }; } &&
24298
 
         { ac_try='test -s conftest.$ac_objext'
24299
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300
 
  (eval $ac_try) 2>&5
24301
 
  ac_status=$?
24302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303
 
  (exit $ac_status); }; }; then
24304
 
  ac_header_compiler=yes
24305
 
else
24306
 
  echo "$as_me: failed program was:" >&5
24307
 
sed 's/^/| /' conftest.$ac_ext >&5
24308
 
 
24309
 
ac_header_compiler=no
24310
 
fi
24311
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24312
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24313
 
echo "${ECHO_T}$ac_header_compiler" >&6
24314
 
 
24315
 
# Is the header present?
24316
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
24317
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24318
 
cat >conftest.$ac_ext <<_ACEOF
24319
 
/* confdefs.h.  */
24320
 
_ACEOF
24321
 
cat confdefs.h >>conftest.$ac_ext
24322
 
cat >>conftest.$ac_ext <<_ACEOF
24323
 
/* end confdefs.h.  */
24324
 
#include <$ac_header>
24325
 
_ACEOF
24326
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24327
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24328
 
  ac_status=$?
24329
 
  grep -v '^ *+' conftest.er1 >conftest.err
24330
 
  rm -f conftest.er1
24331
 
  cat conftest.err >&5
24332
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333
 
  (exit $ac_status); } >/dev/null; then
24334
 
  if test -s conftest.err; then
24335
 
    ac_cpp_err=$ac_c_preproc_warn_flag
24336
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24337
 
  else
24338
 
    ac_cpp_err=
24339
 
  fi
24340
 
else
24341
 
  ac_cpp_err=yes
24342
 
fi
24343
 
if test -z "$ac_cpp_err"; then
24344
 
  ac_header_preproc=yes
24345
 
else
24346
 
  echo "$as_me: failed program was:" >&5
24347
 
sed 's/^/| /' conftest.$ac_ext >&5
24348
 
 
24349
 
  ac_header_preproc=no
24350
 
fi
24351
 
rm -f conftest.err conftest.$ac_ext
24352
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24353
 
echo "${ECHO_T}$ac_header_preproc" >&6
24354
 
 
24355
 
# So?  What about this header?
24356
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24357
 
  yes:no: )
24358
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24359
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24360
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24361
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24362
 
    ac_header_preproc=yes
24363
 
    ;;
24364
 
  no:yes:* )
24365
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24366
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24367
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24368
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24369
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24370
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24371
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24372
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24373
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24374
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24375
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24376
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24377
 
    (
24378
 
      cat <<\_ASBOX
24379
 
## ------------------------------------ ##
24380
 
## Report this to gnupg-devel@gnupg.org ##
24381
 
## ------------------------------------ ##
24382
 
_ASBOX
24383
 
    ) |
24384
 
      sed "s/^/$as_me: WARNING:     /" >&2
24385
 
    ;;
24386
 
esac
24387
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
24388
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24389
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24390
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24391
 
else
24392
 
  eval "$as_ac_Header=\$ac_header_preproc"
24393
 
fi
24394
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24395
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24396
 
 
24397
 
fi
24398
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24399
 
  cat >>confdefs.h <<_ACEOF
24400
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24401
 
_ACEOF
24402
 
 
24403
 
fi
24404
 
 
24405
 
done
24406
 
 
24407
 
        if test "$ac_cv_header_sys_mman_h" = "yes"; then
24408
 
            # Add librt to LIBS:
24409
 
 
24410
 
echo "$as_me:$LINENO: checking for memlk in -lrt" >&5
24411
 
echo $ECHO_N "checking for memlk in -lrt... $ECHO_C" >&6
24412
 
if test "${ac_cv_lib_rt_memlk+set}" = set; then
24413
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24414
 
else
24415
 
  ac_check_lib_save_LIBS=$LIBS
24416
 
LIBS="-lrt  $LIBS"
24417
 
cat >conftest.$ac_ext <<_ACEOF
24418
 
/* confdefs.h.  */
24419
 
_ACEOF
24420
 
cat confdefs.h >>conftest.$ac_ext
24421
 
cat >>conftest.$ac_ext <<_ACEOF
24422
 
/* end confdefs.h.  */
24423
 
 
24424
 
/* Override any gcc2 internal prototype to avoid an error.  */
24425
 
#ifdef __cplusplus
24426
 
extern "C"
24427
 
#endif
24428
 
/* We use char because int might match the return type of a gcc2
24429
 
   builtin and then its argument prototype would still apply.  */
24430
 
char memlk ();
24431
 
int
24432
 
main ()
24433
 
{
24434
 
memlk ();
24435
 
  ;
24436
 
  return 0;
24437
 
}
24438
 
_ACEOF
24439
 
rm -f conftest.$ac_objext conftest$ac_exeext
24440
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24441
 
  (eval $ac_link) 2>conftest.er1
24442
 
  ac_status=$?
24443
 
  grep -v '^ *+' conftest.er1 >conftest.err
24444
 
  rm -f conftest.er1
24445
 
  cat conftest.err >&5
24446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447
 
  (exit $ac_status); } &&
24448
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24449
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24450
 
  (eval $ac_try) 2>&5
24451
 
  ac_status=$?
24452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453
 
  (exit $ac_status); }; } &&
24454
 
         { ac_try='test -s conftest$ac_exeext'
24455
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24456
 
  (eval $ac_try) 2>&5
24457
 
  ac_status=$?
24458
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459
 
  (exit $ac_status); }; }; then
24460
 
  ac_cv_lib_rt_memlk=yes
24461
 
else
24462
 
  echo "$as_me: failed program was:" >&5
24463
 
sed 's/^/| /' conftest.$ac_ext >&5
24464
 
 
24465
 
ac_cv_lib_rt_memlk=no
24466
 
fi
24467
 
rm -f conftest.err conftest.$ac_objext \
24468
 
      conftest$ac_exeext conftest.$ac_ext
24469
 
LIBS=$ac_check_lib_save_LIBS
24470
 
fi
24471
 
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_memlk" >&5
24472
 
echo "${ECHO_T}$ac_cv_lib_rt_memlk" >&6
24473
 
if test $ac_cv_lib_rt_memlk = yes; then
24474
 
  cat >>confdefs.h <<_ACEOF
24475
 
#define HAVE_LIBRT 1
24476
 
_ACEOF
24477
 
 
24478
 
  LIBS="-lrt $LIBS"
24479
 
 
24480
 
fi
24481
 
 
24482
 
            echo "$as_me:$LINENO: checking whether mlock is in sys/mman.h" >&5
24483
 
echo $ECHO_N "checking whether mlock is in sys/mman.h... $ECHO_C" >&6
24484
 
if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then
24485
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24486
 
else
24487
 
  cat >conftest.$ac_ext <<_ACEOF
24488
 
/* confdefs.h.  */
24489
 
_ACEOF
24490
 
cat confdefs.h >>conftest.$ac_ext
24491
 
cat >>conftest.$ac_ext <<_ACEOF
24492
 
/* end confdefs.h.  */
24493
 
 
24494
 
                    #include <assert.h>
24495
 
                    #ifdef HAVE_SYS_MMAN_H
24496
 
                    #include <sys/mman.h>
24497
 
                    #endif
24498
 
 
24499
 
int
24500
 
main ()
24501
 
{
24502
 
 
24503
 
                    int i;
24504
 
 
24505
 
                    /* glibc defines this for functions which it implements
24506
 
                     * to always fail with ENOSYS.  Some functions are actually
24507
 
                     * named something starting with __ and the normal name
24508
 
                     * is an alias.  */
24509
 
                    #if defined (__stub_mlock) || defined (__stub___mlock)
24510
 
                    choke me
24511
 
                    #else
24512
 
                    mlock(&i, 4);
24513
 
                    #endif
24514
 
                    ; return 0;
24515
 
 
24516
 
  ;
24517
 
  return 0;
24518
 
}
24519
 
_ACEOF
24520
 
rm -f conftest.$ac_objext conftest$ac_exeext
24521
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24522
 
  (eval $ac_link) 2>conftest.er1
24523
 
  ac_status=$?
24524
 
  grep -v '^ *+' conftest.er1 >conftest.err
24525
 
  rm -f conftest.er1
24526
 
  cat conftest.err >&5
24527
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528
 
  (exit $ac_status); } &&
24529
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24530
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531
 
  (eval $ac_try) 2>&5
24532
 
  ac_status=$?
24533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534
 
  (exit $ac_status); }; } &&
24535
 
         { ac_try='test -s conftest$ac_exeext'
24536
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537
 
  (eval $ac_try) 2>&5
24538
 
  ac_status=$?
24539
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540
 
  (exit $ac_status); }; }; then
24541
 
  gnupg_cv_mlock_is_in_sys_mman=yes
24542
 
else
24543
 
  echo "$as_me: failed program was:" >&5
24544
 
sed 's/^/| /' conftest.$ac_ext >&5
24545
 
 
24546
 
gnupg_cv_mlock_is_in_sys_mman=no
24547
 
fi
24548
 
rm -f conftest.err conftest.$ac_objext \
24549
 
      conftest$ac_exeext conftest.$ac_ext
24550
 
fi
24551
 
echo "$as_me:$LINENO: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
24552
 
echo "${ECHO_T}$gnupg_cv_mlock_is_in_sys_mman" >&6
24553
 
            if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
24554
 
 
24555
 
cat >>confdefs.h <<\_ACEOF
24556
 
#define HAVE_MLOCK 1
24557
 
_ACEOF
24558
 
 
24559
 
            fi
24560
 
        fi
24561
 
    fi
24562
 
    if test "$ac_cv_func_mlock" = "yes"; then
24563
 
        echo "$as_me:$LINENO: checking whether mlock is broken" >&5
24564
 
echo $ECHO_N "checking whether mlock is broken... $ECHO_C" >&6
24565
 
          if test "${gnupg_cv_have_broken_mlock+set}" = set; then
24566
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24567
 
else
24568
 
  if test "$cross_compiling" = yes; then
24569
 
  gnupg_cv_have_broken_mlock="assume-no"
24570
 
 
24571
 
else
24572
 
  cat >conftest.$ac_ext <<_ACEOF
24573
 
/* confdefs.h.  */
24574
 
_ACEOF
24575
 
cat confdefs.h >>conftest.$ac_ext
24576
 
cat >>conftest.$ac_ext <<_ACEOF
24577
 
/* end confdefs.h.  */
24578
 
 
24579
 
                #include <stdlib.h>
24580
 
                #include <unistd.h>
24581
 
                #include <errno.h>
24582
 
                #include <sys/mman.h>
24583
 
                #include <sys/types.h>
24584
 
                #include <fcntl.h>
24585
 
 
24586
 
                int main()
24587
 
                {
24588
 
                    char *pool;
24589
 
                    int err;
24590
 
                    long int pgsize = getpagesize();
24591
 
 
24592
 
                    pool = malloc( 4096 + pgsize );
24593
 
                    if( !pool )
24594
 
                        return 2;
24595
 
                    pool += (pgsize - ((long int)pool % pgsize));
24596
 
 
24597
 
                    err = mlock( pool, 4096 );
24598
 
                    if( !err || errno == EPERM )
24599
 
                        return 0; /* okay */
24600
 
 
24601
 
                    return 1;  /* hmmm */
24602
 
                }
24603
 
 
24604
 
 
24605
 
_ACEOF
24606
 
rm -f conftest$ac_exeext
24607
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24608
 
  (eval $ac_link) 2>&5
24609
 
  ac_status=$?
24610
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24612
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613
 
  (eval $ac_try) 2>&5
24614
 
  ac_status=$?
24615
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616
 
  (exit $ac_status); }; }; then
24617
 
  gnupg_cv_have_broken_mlock="no"
24618
 
else
24619
 
  echo "$as_me: program exited with status $ac_status" >&5
24620
 
echo "$as_me: failed program was:" >&5
24621
 
sed 's/^/| /' conftest.$ac_ext >&5
24622
 
 
24623
 
( exit $ac_status )
24624
 
gnupg_cv_have_broken_mlock="yes"
24625
 
fi
24626
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24627
 
fi
24628
 
 
24629
 
fi
24630
 
 
24631
 
         if test "$gnupg_cv_have_broken_mlock" = "yes"; then
24632
 
 
24633
 
cat >>confdefs.h <<\_ACEOF
24634
 
#define HAVE_BROKEN_MLOCK 1
24635
 
_ACEOF
24636
 
 
24637
 
             echo "$as_me:$LINENO: result: yes" >&5
24638
 
echo "${ECHO_T}yes" >&6
24639
 
 
24640
 
for ac_func in plock
24641
 
do
24642
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24643
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
24644
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24645
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
24646
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24647
 
else
24648
 
  cat >conftest.$ac_ext <<_ACEOF
24649
 
/* confdefs.h.  */
24650
 
_ACEOF
24651
 
cat confdefs.h >>conftest.$ac_ext
24652
 
cat >>conftest.$ac_ext <<_ACEOF
24653
 
/* end confdefs.h.  */
24654
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24655
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24656
 
#define $ac_func innocuous_$ac_func
24657
 
 
24658
 
/* System header to define __stub macros and hopefully few prototypes,
24659
 
    which can conflict with char $ac_func (); below.
24660
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24661
 
    <limits.h> exists even on freestanding compilers.  */
24662
 
 
24663
 
#ifdef __STDC__
24664
 
# include <limits.h>
24665
 
#else
24666
 
# include <assert.h>
24667
 
#endif
24668
 
 
24669
 
#undef $ac_func
24670
 
 
24671
 
/* Override any gcc2 internal prototype to avoid an error.  */
24672
 
#ifdef __cplusplus
24673
 
extern "C"
24674
 
{
24675
 
#endif
24676
 
/* We use char because int might match the return type of a gcc2
24677
 
   builtin and then its argument prototype would still apply.  */
24678
 
char $ac_func ();
24679
 
/* The GNU C library defines this for functions which it implements
24680
 
    to always fail with ENOSYS.  Some functions are actually named
24681
 
    something starting with __ and the normal name is an alias.  */
24682
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24683
 
choke me
24684
 
#else
24685
 
char (*f) () = $ac_func;
24686
 
#endif
24687
 
#ifdef __cplusplus
24688
 
}
24689
 
#endif
24690
 
 
24691
 
int
24692
 
main ()
24693
 
{
24694
 
return f != $ac_func;
24695
 
  ;
24696
 
  return 0;
24697
 
}
24698
 
_ACEOF
24699
 
rm -f conftest.$ac_objext conftest$ac_exeext
24700
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24701
 
  (eval $ac_link) 2>conftest.er1
24702
 
  ac_status=$?
24703
 
  grep -v '^ *+' conftest.er1 >conftest.err
24704
 
  rm -f conftest.er1
24705
 
  cat conftest.err >&5
24706
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707
 
  (exit $ac_status); } &&
24708
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24709
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710
 
  (eval $ac_try) 2>&5
24711
 
  ac_status=$?
24712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713
 
  (exit $ac_status); }; } &&
24714
 
         { ac_try='test -s conftest$ac_exeext'
24715
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716
 
  (eval $ac_try) 2>&5
24717
 
  ac_status=$?
24718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719
 
  (exit $ac_status); }; }; then
24720
 
  eval "$as_ac_var=yes"
24721
 
else
24722
 
  echo "$as_me: failed program was:" >&5
24723
 
sed 's/^/| /' conftest.$ac_ext >&5
24724
 
 
24725
 
eval "$as_ac_var=no"
24726
 
fi
24727
 
rm -f conftest.err conftest.$ac_objext \
24728
 
      conftest$ac_exeext conftest.$ac_ext
24729
 
fi
24730
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24731
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24732
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
24733
 
  cat >>confdefs.h <<_ACEOF
24734
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24735
 
_ACEOF
24736
 
 
24737
 
fi
24738
 
done
24739
 
 
24740
 
         else
24741
 
            if test "$gnupg_cv_have_broken_mlock" = "no"; then
24742
 
                echo "$as_me:$LINENO: result: no" >&5
24743
 
echo "${ECHO_T}no" >&6
24744
 
            else
24745
 
                echo "$as_me:$LINENO: result: assuming no" >&5
24746
 
echo "${ECHO_T}assuming no" >&6
24747
 
            fi
24748
 
         fi
24749
 
    fi
24750
 
 
 
22810
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22811
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22812
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22813
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22815
fi
 
22816
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22817
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22818
echo "${ECHO_T}$ac_res" >&6; }
 
22819
else
 
22820
  # Is the header compilable?
 
22821
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22822
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
22823
cat >conftest.$ac_ext <<_ACEOF
 
22824
/* confdefs.h.  */
 
22825
_ACEOF
 
22826
cat confdefs.h >>conftest.$ac_ext
 
22827
cat >>conftest.$ac_ext <<_ACEOF
 
22828
/* end confdefs.h.  */
 
22829
$ac_includes_default
 
22830
#include <$ac_header>
 
22831
_ACEOF
 
22832
rm -f conftest.$ac_objext
 
22833
if { (ac_try="$ac_compile"
 
22834
case "(($ac_try" in
 
22835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22836
  *) ac_try_echo=$ac_try;;
 
22837
esac
 
22838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22839
  (eval "$ac_compile") 2>conftest.er1
 
22840
  ac_status=$?
 
22841
  grep -v '^ *+' conftest.er1 >conftest.err
 
22842
  rm -f conftest.er1
 
22843
  cat conftest.err >&5
 
22844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22845
  (exit $ac_status); } && {
 
22846
         test -z "$ac_c_werror_flag" ||
 
22847
         test ! -s conftest.err
 
22848
       } && test -s conftest.$ac_objext; then
 
22849
  ac_header_compiler=yes
 
22850
else
 
22851
  echo "$as_me: failed program was:" >&5
 
22852
sed 's/^/| /' conftest.$ac_ext >&5
 
22853
 
 
22854
        ac_header_compiler=no
 
22855
fi
 
22856
 
 
22857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22858
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22859
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22860
 
 
22861
# Is the header present?
 
22862
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22863
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
22864
cat >conftest.$ac_ext <<_ACEOF
 
22865
/* confdefs.h.  */
 
22866
_ACEOF
 
22867
cat confdefs.h >>conftest.$ac_ext
 
22868
cat >>conftest.$ac_ext <<_ACEOF
 
22869
/* end confdefs.h.  */
 
22870
#include <$ac_header>
 
22871
_ACEOF
 
22872
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22873
case "(($ac_try" in
 
22874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22875
  *) ac_try_echo=$ac_try;;
 
22876
esac
 
22877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22878
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22879
  ac_status=$?
 
22880
  grep -v '^ *+' conftest.er1 >conftest.err
 
22881
  rm -f conftest.er1
 
22882
  cat conftest.err >&5
 
22883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22884
  (exit $ac_status); } >/dev/null && {
 
22885
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22886
         test ! -s conftest.err
 
22887
       }; then
 
22888
  ac_header_preproc=yes
 
22889
else
 
22890
  echo "$as_me: failed program was:" >&5
 
22891
sed 's/^/| /' conftest.$ac_ext >&5
 
22892
 
 
22893
  ac_header_preproc=no
 
22894
fi
 
22895
 
 
22896
rm -f conftest.err conftest.$ac_ext
 
22897
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22898
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
22899
 
 
22900
# So?  What about this header?
 
22901
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22902
  yes:no: )
 
22903
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22904
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22905
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22906
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22907
    ac_header_preproc=yes
 
22908
    ;;
 
22909
  no:yes:* )
 
22910
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22911
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22912
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22913
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22914
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22915
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22916
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22917
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22918
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22919
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22920
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22921
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22922
    ( cat <<\_ASBOX
 
22923
## ---------------------------------- ##
 
22924
## Report this to bug-gnupg@gnupg.org ##
 
22925
## ---------------------------------- ##
 
22926
_ASBOX
 
22927
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22928
    ;;
 
22929
esac
 
22930
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22931
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22932
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22934
else
 
22935
  eval "$as_ac_Header=\$ac_header_preproc"
 
22936
fi
 
22937
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22938
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22939
echo "${ECHO_T}$ac_res" >&6; }
 
22940
 
 
22941
fi
 
22942
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22943
  cat >>confdefs.h <<_ACEOF
 
22944
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22945
_ACEOF
 
22946
 
 
22947
fi
 
22948
 
 
22949
done
 
22950
 
 
22951
 
 
22952
  LIBGNU_LIBDEPS="$gl_libdeps"
 
22953
 
 
22954
  LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
 
22955
 
 
22956
 
 
22957
 
 
22958
 
 
22959
#
 
22960
# W32 specific test
 
22961
#
24751
22962
 
24752
22963
 
24753
22964
 
24754
22965
for ac_header in sys/stat.h unistd.h direct.h
24755
22966
do
24756
22967
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24757
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24758
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
24759
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24760
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22968
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22969
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22970
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22971
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24761
22972
  echo $ECHO_N "(cached) $ECHO_C" >&6
24762
22973
fi
24763
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24764
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22974
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22975
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22976
echo "${ECHO_T}$ac_res" >&6; }
24765
22977
else
24766
22978
  # Is the header compilable?
24767
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24768
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22979
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22980
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24769
22981
cat >conftest.$ac_ext <<_ACEOF
24770
22982
/* confdefs.h.  */
24771
22983
_ACEOF
24776
22988
#include <$ac_header>
24777
22989
_ACEOF
24778
22990
rm -f conftest.$ac_objext
24779
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24780
 
  (eval $ac_compile) 2>conftest.er1
 
22991
if { (ac_try="$ac_compile"
 
22992
case "(($ac_try" in
 
22993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22994
  *) ac_try_echo=$ac_try;;
 
22995
esac
 
22996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22997
  (eval "$ac_compile") 2>conftest.er1
24781
22998
  ac_status=$?
24782
22999
  grep -v '^ *+' conftest.er1 >conftest.err
24783
23000
  rm -f conftest.er1
24784
23001
  cat conftest.err >&5
24785
23002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786
 
  (exit $ac_status); } &&
24787
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24788
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789
 
  (eval $ac_try) 2>&5
24790
 
  ac_status=$?
24791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792
 
  (exit $ac_status); }; } &&
24793
 
         { ac_try='test -s conftest.$ac_objext'
24794
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795
 
  (eval $ac_try) 2>&5
24796
 
  ac_status=$?
24797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798
 
  (exit $ac_status); }; }; then
 
23003
  (exit $ac_status); } && {
 
23004
         test -z "$ac_c_werror_flag" ||
 
23005
         test ! -s conftest.err
 
23006
       } && test -s conftest.$ac_objext; then
24799
23007
  ac_header_compiler=yes
24800
23008
else
24801
23009
  echo "$as_me: failed program was:" >&5
24802
23010
sed 's/^/| /' conftest.$ac_ext >&5
24803
23011
 
24804
 
ac_header_compiler=no
 
23012
        ac_header_compiler=no
24805
23013
fi
24806
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24807
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24808
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
23014
 
 
23015
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23016
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23017
echo "${ECHO_T}$ac_header_compiler" >&6; }
24809
23018
 
24810
23019
# Is the header present?
24811
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
24812
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23020
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23021
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24813
23022
cat >conftest.$ac_ext <<_ACEOF
24814
23023
/* confdefs.h.  */
24815
23024
_ACEOF
24818
23027
/* end confdefs.h.  */
24819
23028
#include <$ac_header>
24820
23029
_ACEOF
24821
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24822
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23030
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23031
case "(($ac_try" in
 
23032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23033
  *) ac_try_echo=$ac_try;;
 
23034
esac
 
23035
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23036
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24823
23037
  ac_status=$?
24824
23038
  grep -v '^ *+' conftest.er1 >conftest.err
24825
23039
  rm -f conftest.er1
24826
23040
  cat conftest.err >&5
24827
23041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828
 
  (exit $ac_status); } >/dev/null; then
24829
 
  if test -s conftest.err; then
24830
 
    ac_cpp_err=$ac_c_preproc_warn_flag
24831
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24832
 
  else
24833
 
    ac_cpp_err=
24834
 
  fi
24835
 
else
24836
 
  ac_cpp_err=yes
24837
 
fi
24838
 
if test -z "$ac_cpp_err"; then
 
23042
  (exit $ac_status); } >/dev/null && {
 
23043
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23044
         test ! -s conftest.err
 
23045
       }; then
24839
23046
  ac_header_preproc=yes
24840
23047
else
24841
23048
  echo "$as_me: failed program was:" >&5
24843
23050
 
24844
23051
  ac_header_preproc=no
24845
23052
fi
 
23053
 
24846
23054
rm -f conftest.err conftest.$ac_ext
24847
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24848
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
23055
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23056
echo "${ECHO_T}$ac_header_preproc" >&6; }
24849
23057
 
24850
23058
# So?  What about this header?
24851
23059
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24869
23077
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24870
23078
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24871
23079
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24872
 
    (
24873
 
      cat <<\_ASBOX
24874
 
## ------------------------------------ ##
24875
 
## Report this to gnupg-devel@gnupg.org ##
24876
 
## ------------------------------------ ##
 
23080
    ( cat <<\_ASBOX
 
23081
## ---------------------------------- ##
 
23082
## Report this to bug-gnupg@gnupg.org ##
 
23083
## ---------------------------------- ##
24877
23084
_ASBOX
24878
 
    ) |
24879
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
23085
     ) | sed "s/^/$as_me: WARNING:     /" >&2
24880
23086
    ;;
24881
23087
esac
24882
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
24883
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24884
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23088
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23089
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
23090
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24885
23091
  echo $ECHO_N "(cached) $ECHO_C" >&6
24886
23092
else
24887
23093
  eval "$as_ac_Header=\$ac_header_preproc"
24888
23094
fi
24889
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24890
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23095
ac_res=`eval echo '${'$as_ac_Header'}'`
 
23096
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23097
echo "${ECHO_T}$ac_res" >&6; }
24891
23098
 
24892
23099
fi
24893
23100
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24899
23106
 
24900
23107
done
24901
23108
 
24902
 
echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
24903
 
echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
 
23109
{ echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
 
23110
echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
24904
23111
if test "${gnupg_cv_mkdir_takes_one_arg+set}" = set; then
24905
23112
  echo $ECHO_N "(cached) $ECHO_C" >&6
24906
23113
else
24930
23137
}
24931
23138
_ACEOF
24932
23139
rm -f conftest.$ac_objext
24933
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24934
 
  (eval $ac_compile) 2>conftest.er1
 
23140
if { (ac_try="$ac_compile"
 
23141
case "(($ac_try" in
 
23142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23143
  *) ac_try_echo=$ac_try;;
 
23144
esac
 
23145
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23146
  (eval "$ac_compile") 2>conftest.er1
24935
23147
  ac_status=$?
24936
23148
  grep -v '^ *+' conftest.er1 >conftest.err
24937
23149
  rm -f conftest.er1
24938
23150
  cat conftest.err >&5
24939
23151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940
 
  (exit $ac_status); } &&
24941
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24942
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943
 
  (eval $ac_try) 2>&5
24944
 
  ac_status=$?
24945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946
 
  (exit $ac_status); }; } &&
24947
 
         { ac_try='test -s conftest.$ac_objext'
24948
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24949
 
  (eval $ac_try) 2>&5
24950
 
  ac_status=$?
24951
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952
 
  (exit $ac_status); }; }; then
 
23152
  (exit $ac_status); } && {
 
23153
         test -z "$ac_c_werror_flag" ||
 
23154
         test ! -s conftest.err
 
23155
       } && test -s conftest.$ac_objext; then
24953
23156
  gnupg_cv_mkdir_takes_one_arg=no
24954
23157
else
24955
23158
  echo "$as_me: failed program was:" >&5
24956
23159
sed 's/^/| /' conftest.$ac_ext >&5
24957
23160
 
24958
 
gnupg_cv_mkdir_takes_one_arg=yes
24959
 
fi
24960
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24961
 
fi
24962
 
echo "$as_me:$LINENO: result: $gnupg_cv_mkdir_takes_one_arg" >&5
24963
 
echo "${ECHO_T}$gnupg_cv_mkdir_takes_one_arg" >&6
 
23161
        gnupg_cv_mkdir_takes_one_arg=yes
 
23162
fi
 
23163
 
 
23164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23165
fi
 
23166
{ echo "$as_me:$LINENO: result: $gnupg_cv_mkdir_takes_one_arg" >&5
 
23167
echo "${ECHO_T}$gnupg_cv_mkdir_takes_one_arg" >&6; }
24964
23168
if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
24965
23169
 
24966
23170
cat >>confdefs.h <<\_ACEOF
24970
23174
fi
24971
23175
 
24972
23176
 
24973
 
#  fixme: Still required?
24974
23177
#
24975
 
if test "$use_capabilities" = "yes" ; then
24976
 
use_capabilities=no
24977
 
 
24978
 
for ac_header in sys/capability.h
24979
 
do
24980
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24981
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24982
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
24983
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24984
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24985
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
24986
 
fi
24987
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24988
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24989
 
else
24990
 
  # Is the header compilable?
24991
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24992
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24993
 
cat >conftest.$ac_ext <<_ACEOF
24994
 
/* confdefs.h.  */
24995
 
_ACEOF
24996
 
cat confdefs.h >>conftest.$ac_ext
24997
 
cat >>conftest.$ac_ext <<_ACEOF
24998
 
/* end confdefs.h.  */
24999
 
$ac_includes_default
25000
 
#include <$ac_header>
25001
 
_ACEOF
25002
 
rm -f conftest.$ac_objext
25003
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25004
 
  (eval $ac_compile) 2>conftest.er1
25005
 
  ac_status=$?
25006
 
  grep -v '^ *+' conftest.er1 >conftest.err
25007
 
  rm -f conftest.er1
25008
 
  cat conftest.err >&5
25009
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010
 
  (exit $ac_status); } &&
25011
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25012
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013
 
  (eval $ac_try) 2>&5
25014
 
  ac_status=$?
25015
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016
 
  (exit $ac_status); }; } &&
25017
 
         { ac_try='test -s conftest.$ac_objext'
25018
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019
 
  (eval $ac_try) 2>&5
25020
 
  ac_status=$?
25021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022
 
  (exit $ac_status); }; }; then
25023
 
  ac_header_compiler=yes
25024
 
else
25025
 
  echo "$as_me: failed program was:" >&5
25026
 
sed 's/^/| /' conftest.$ac_ext >&5
25027
 
 
25028
 
ac_header_compiler=no
25029
 
fi
25030
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25031
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25032
 
echo "${ECHO_T}$ac_header_compiler" >&6
25033
 
 
25034
 
# Is the header present?
25035
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
25036
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25037
 
cat >conftest.$ac_ext <<_ACEOF
25038
 
/* confdefs.h.  */
25039
 
_ACEOF
25040
 
cat confdefs.h >>conftest.$ac_ext
25041
 
cat >>conftest.$ac_ext <<_ACEOF
25042
 
/* end confdefs.h.  */
25043
 
#include <$ac_header>
25044
 
_ACEOF
25045
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25046
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25047
 
  ac_status=$?
25048
 
  grep -v '^ *+' conftest.er1 >conftest.err
25049
 
  rm -f conftest.er1
25050
 
  cat conftest.err >&5
25051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052
 
  (exit $ac_status); } >/dev/null; then
25053
 
  if test -s conftest.err; then
25054
 
    ac_cpp_err=$ac_c_preproc_warn_flag
25055
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25056
 
  else
25057
 
    ac_cpp_err=
25058
 
  fi
25059
 
else
25060
 
  ac_cpp_err=yes
25061
 
fi
25062
 
if test -z "$ac_cpp_err"; then
25063
 
  ac_header_preproc=yes
25064
 
else
25065
 
  echo "$as_me: failed program was:" >&5
25066
 
sed 's/^/| /' conftest.$ac_ext >&5
25067
 
 
25068
 
  ac_header_preproc=no
25069
 
fi
25070
 
rm -f conftest.err conftest.$ac_ext
25071
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25072
 
echo "${ECHO_T}$ac_header_preproc" >&6
25073
 
 
25074
 
# So?  What about this header?
25075
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25076
 
  yes:no: )
25077
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25078
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25079
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25080
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25081
 
    ac_header_preproc=yes
25082
 
    ;;
25083
 
  no:yes:* )
25084
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25085
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25086
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25087
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25088
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25089
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25090
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25091
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25092
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25093
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25094
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25095
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25096
 
    (
25097
 
      cat <<\_ASBOX
25098
 
## ------------------------------------ ##
25099
 
## Report this to gnupg-devel@gnupg.org ##
25100
 
## ------------------------------------ ##
25101
 
_ASBOX
25102
 
    ) |
25103
 
      sed "s/^/$as_me: WARNING:     /" >&2
25104
 
    ;;
25105
 
esac
25106
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
25107
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25108
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
25109
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25110
 
else
25111
 
  eval "$as_ac_Header=\$ac_header_preproc"
25112
 
fi
25113
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25114
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25115
 
 
25116
 
fi
25117
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25118
 
  cat >>confdefs.h <<_ACEOF
25119
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25120
 
_ACEOF
25121
 
 
25122
 
fi
25123
 
 
25124
 
done
25125
 
 
25126
 
if test "$ac_cv_header_sys_capability_h" = "yes" ; then
25127
 
  echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
25128
 
echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6
25129
 
if test "${ac_cv_lib_cap_cap_init+set}" = set; then
25130
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
25131
 
else
25132
 
  ac_check_lib_save_LIBS=$LIBS
25133
 
LIBS="-lcap  $LIBS"
25134
 
cat >conftest.$ac_ext <<_ACEOF
25135
 
/* confdefs.h.  */
25136
 
_ACEOF
25137
 
cat confdefs.h >>conftest.$ac_ext
25138
 
cat >>conftest.$ac_ext <<_ACEOF
25139
 
/* end confdefs.h.  */
25140
 
 
25141
 
/* Override any gcc2 internal prototype to avoid an error.  */
25142
 
#ifdef __cplusplus
25143
 
extern "C"
25144
 
#endif
25145
 
/* We use char because int might match the return type of a gcc2
25146
 
   builtin and then its argument prototype would still apply.  */
25147
 
char cap_init ();
25148
 
int
25149
 
main ()
25150
 
{
25151
 
cap_init ();
25152
 
  ;
25153
 
  return 0;
25154
 
}
25155
 
_ACEOF
25156
 
rm -f conftest.$ac_objext conftest$ac_exeext
25157
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25158
 
  (eval $ac_link) 2>conftest.er1
25159
 
  ac_status=$?
25160
 
  grep -v '^ *+' conftest.er1 >conftest.err
25161
 
  rm -f conftest.er1
25162
 
  cat conftest.err >&5
25163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164
 
  (exit $ac_status); } &&
25165
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25166
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167
 
  (eval $ac_try) 2>&5
25168
 
  ac_status=$?
25169
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170
 
  (exit $ac_status); }; } &&
25171
 
         { ac_try='test -s conftest$ac_exeext'
25172
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173
 
  (eval $ac_try) 2>&5
25174
 
  ac_status=$?
25175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176
 
  (exit $ac_status); }; }; then
25177
 
  ac_cv_lib_cap_cap_init=yes
25178
 
else
25179
 
  echo "$as_me: failed program was:" >&5
25180
 
sed 's/^/| /' conftest.$ac_ext >&5
25181
 
 
25182
 
ac_cv_lib_cap_cap_init=no
25183
 
fi
25184
 
rm -f conftest.err conftest.$ac_objext \
25185
 
      conftest$ac_exeext conftest.$ac_ext
25186
 
LIBS=$ac_check_lib_save_LIBS
25187
 
fi
25188
 
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
25189
 
echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6
25190
 
if test $ac_cv_lib_cap_cap_init = yes; then
25191
 
  ac_need_libcap=1
25192
 
fi
25193
 
 
25194
 
  if test "$ac_cv_lib_cap_cap_init" = "yes"; then
25195
 
 
25196
 
cat >>confdefs.h <<\_ACEOF
25197
 
#define USE_CAPABILITIES 1
25198
 
_ACEOF
25199
 
 
25200
 
     CAPLIBS="-lcap"
25201
 
 
25202
 
     use_capabilities=yes
25203
 
  fi
25204
 
fi
25205
 
if test "$use_capabilities" = "no" ; then
25206
 
    { echo "$as_me:$LINENO: WARNING:
25207
 
***
25208
 
*** The use of capabilities on this system is not possible.
25209
 
*** You need a recent Linux kernel and some patches:
25210
 
***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
25211
 
***   fcap-module-990613.tar.gz     (kernel module)
25212
 
***   libcap-1.92.tar.gz            (user mode library and utilities)
25213
 
*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
25214
 
*** set (filesystems menu). Be warned: This code is *really* ALPHA.
25215
 
***" >&5
25216
 
echo "$as_me: WARNING:
25217
 
***
25218
 
*** The use of capabilities on this system is not possible.
25219
 
*** You need a recent Linux kernel and some patches:
25220
 
***   fcaps-2.2.9-990610.patch      (kernel patch for 2.2.9)
25221
 
***   fcap-module-990613.tar.gz     (kernel module)
25222
 
***   libcap-1.92.tar.gz            (user mode library and utilities)
25223
 
*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
25224
 
*** set (filesystems menu). Be warned: This code is *really* ALPHA.
25225
 
***" >&2;}
25226
 
fi
25227
 
fi
25228
 
 
25229
 
 
25230
23178
# Sanity check regex.  Tests adapted from mutt.
25231
 
 
25232
 
echo "$as_me:$LINENO: checking whether regular expression support is requested" >&5
25233
 
echo $ECHO_N "checking whether regular expression support is requested... $ECHO_C" >&6
25234
 
# Check whether --enable-regex or --disable-regex was given.
 
23179
#
 
23180
{ echo "$as_me:$LINENO: checking whether regular expression support is requested" >&5
 
23181
echo $ECHO_N "checking whether regular expression support is requested... $ECHO_C" >&6; }
 
23182
# Check whether --enable-regex was given.
25235
23183
if test "${enable_regex+set}" = set; then
25236
 
  enableval="$enable_regex"
25237
 
  use_regex=$enableval
 
23184
  enableval=$enable_regex; use_regex=$enableval
25238
23185
else
25239
23186
  use_regex=yes
25240
 
fi;
25241
 
echo "$as_me:$LINENO: result: $use_regex" >&5
25242
 
echo "${ECHO_T}$use_regex" >&6
 
23187
fi
 
23188
 
 
23189
{ echo "$as_me:$LINENO: result: $use_regex" >&5
 
23190
echo "${ECHO_T}$use_regex" >&6; }
25243
23191
 
25244
23192
if test "$use_regex" = yes ; then
25245
 
  echo "$as_me:$LINENO: checking whether the included regex lib is requested" >&5
25246
 
echo $ECHO_N "checking whether the included regex lib is requested... $ECHO_C" >&6
25247
 
 
25248
 
# Check whether --with-included-regex or --without-included-regex was given.
25249
 
if test "${with_included_regex+set}" = set; then
25250
 
  withval="$with_included_regex"
25251
 
  gnupg_cv_included_regex="$withval"
25252
 
else
25253
 
  gnupg_cv_included_regex=no
25254
 
fi;
25255
 
  echo "$as_me:$LINENO: result: $gnupg_cv_included_regex" >&5
25256
 
echo "${ECHO_T}$gnupg_cv_included_regex" >&6
25257
 
 
25258
 
  if test $gnupg_cv_included_regex = no ; then
25259
 
     # Does the system have regex functions at all?
25260
 
     echo "$as_me:$LINENO: checking for regcomp" >&5
25261
 
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
 
23193
  _cppflags="${CPPFLAGS}"
 
23194
  _ldflags="${LDFLAGS}"
 
23195
 
 
23196
# Check whether --with-regex was given.
 
23197
if test "${with_regex+set}" = set; then
 
23198
  withval=$with_regex;
 
23199
      if test -d "$withval" ; then
 
23200
        CPPFLAGS="${CPPFLAGS} -I$withval/include"
 
23201
        LDFLAGS="${LDFLAGS} -L$withval/lib"
 
23202
      fi
 
23203
 
 
23204
else
 
23205
  withval=""
 
23206
fi
 
23207
 
 
23208
 
 
23209
  # Does the system have regex functions at all?
 
23210
  { echo "$as_me:$LINENO: checking for library containing regcomp" >&5
 
23211
echo $ECHO_N "checking for library containing regcomp... $ECHO_C" >&6; }
 
23212
if test "${ac_cv_search_regcomp+set}" = set; then
 
23213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23214
else
 
23215
  ac_func_search_save_LIBS=$LIBS
 
23216
cat >conftest.$ac_ext <<_ACEOF
 
23217
/* confdefs.h.  */
 
23218
_ACEOF
 
23219
cat confdefs.h >>conftest.$ac_ext
 
23220
cat >>conftest.$ac_ext <<_ACEOF
 
23221
/* end confdefs.h.  */
 
23222
 
 
23223
/* Override any GCC internal prototype to avoid an error.
 
23224
   Use char because int might match the return type of a GCC
 
23225
   builtin and then its argument prototype would still apply.  */
 
23226
#ifdef __cplusplus
 
23227
extern "C"
 
23228
#endif
 
23229
char regcomp ();
 
23230
int
 
23231
main ()
 
23232
{
 
23233
return regcomp ();
 
23234
  ;
 
23235
  return 0;
 
23236
}
 
23237
_ACEOF
 
23238
for ac_lib in '' regex; do
 
23239
  if test -z "$ac_lib"; then
 
23240
    ac_res="none required"
 
23241
  else
 
23242
    ac_res=-l$ac_lib
 
23243
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
23244
  fi
 
23245
  rm -f conftest.$ac_objext conftest$ac_exeext
 
23246
if { (ac_try="$ac_link"
 
23247
case "(($ac_try" in
 
23248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23249
  *) ac_try_echo=$ac_try;;
 
23250
esac
 
23251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23252
  (eval "$ac_link") 2>conftest.er1
 
23253
  ac_status=$?
 
23254
  grep -v '^ *+' conftest.er1 >conftest.err
 
23255
  rm -f conftest.er1
 
23256
  cat conftest.err >&5
 
23257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23258
  (exit $ac_status); } && {
 
23259
         test -z "$ac_c_werror_flag" ||
 
23260
         test ! -s conftest.err
 
23261
       } && test -s conftest$ac_exeext &&
 
23262
       $as_test_x conftest$ac_exeext; then
 
23263
  ac_cv_search_regcomp=$ac_res
 
23264
else
 
23265
  echo "$as_me: failed program was:" >&5
 
23266
sed 's/^/| /' conftest.$ac_ext >&5
 
23267
 
 
23268
 
 
23269
fi
 
23270
 
 
23271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23272
      conftest$ac_exeext
 
23273
  if test "${ac_cv_search_regcomp+set}" = set; then
 
23274
  break
 
23275
fi
 
23276
done
 
23277
if test "${ac_cv_search_regcomp+set}" = set; then
 
23278
  :
 
23279
else
 
23280
  ac_cv_search_regcomp=no
 
23281
fi
 
23282
rm conftest.$ac_ext
 
23283
LIBS=$ac_func_search_save_LIBS
 
23284
fi
 
23285
{ echo "$as_me:$LINENO: result: $ac_cv_search_regcomp" >&5
 
23286
echo "${ECHO_T}$ac_cv_search_regcomp" >&6; }
 
23287
ac_res=$ac_cv_search_regcomp
 
23288
if test "$ac_res" != no; then
 
23289
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
23290
 
 
23291
fi
 
23292
 
 
23293
  { echo "$as_me:$LINENO: checking for regcomp" >&5
 
23294
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6; }
25262
23295
if test "${ac_cv_func_regcomp+set}" = set; then
25263
23296
  echo $ECHO_N "(cached) $ECHO_C" >&6
25264
23297
else
25285
23318
 
25286
23319
#undef regcomp
25287
23320
 
25288
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
23321
/* Override any GCC internal prototype to avoid an error.
 
23322
   Use char because int might match the return type of a GCC
 
23323
   builtin and then its argument prototype would still apply.  */
25289
23324
#ifdef __cplusplus
25290
23325
extern "C"
25291
 
{
25292
23326
#endif
25293
 
/* We use char because int might match the return type of a gcc2
25294
 
   builtin and then its argument prototype would still apply.  */
25295
23327
char regcomp ();
25296
23328
/* The GNU C library defines this for functions which it implements
25297
23329
    to always fail with ENOSYS.  Some functions are actually named
25298
23330
    something starting with __ and the normal name is an alias.  */
25299
 
#if defined (__stub_regcomp) || defined (__stub___regcomp)
 
23331
#if defined __stub_regcomp || defined __stub___regcomp
25300
23332
choke me
25301
 
#else
25302
 
char (*f) () = regcomp;
25303
 
#endif
25304
 
#ifdef __cplusplus
25305
 
}
25306
23333
#endif
25307
23334
 
25308
23335
int
25309
23336
main ()
25310
23337
{
25311
 
return f != regcomp;
 
23338
return regcomp ();
25312
23339
  ;
25313
23340
  return 0;
25314
23341
}
25315
23342
_ACEOF
25316
23343
rm -f conftest.$ac_objext conftest$ac_exeext
25317
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25318
 
  (eval $ac_link) 2>conftest.er1
 
23344
if { (ac_try="$ac_link"
 
23345
case "(($ac_try" in
 
23346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23347
  *) ac_try_echo=$ac_try;;
 
23348
esac
 
23349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23350
  (eval "$ac_link") 2>conftest.er1
25319
23351
  ac_status=$?
25320
23352
  grep -v '^ *+' conftest.er1 >conftest.err
25321
23353
  rm -f conftest.er1
25322
23354
  cat conftest.err >&5
25323
23355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324
 
  (exit $ac_status); } &&
25325
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25326
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327
 
  (eval $ac_try) 2>&5
25328
 
  ac_status=$?
25329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330
 
  (exit $ac_status); }; } &&
25331
 
         { ac_try='test -s conftest$ac_exeext'
25332
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333
 
  (eval $ac_try) 2>&5
25334
 
  ac_status=$?
25335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336
 
  (exit $ac_status); }; }; then
 
23356
  (exit $ac_status); } && {
 
23357
         test -z "$ac_c_werror_flag" ||
 
23358
         test ! -s conftest.err
 
23359
       } && test -s conftest$ac_exeext &&
 
23360
       $as_test_x conftest$ac_exeext; then
25337
23361
  ac_cv_func_regcomp=yes
25338
23362
else
25339
23363
  echo "$as_me: failed program was:" >&5
25340
23364
sed 's/^/| /' conftest.$ac_ext >&5
25341
23365
 
25342
 
ac_cv_func_regcomp=no
 
23366
        ac_cv_func_regcomp=no
25343
23367
fi
25344
 
rm -f conftest.err conftest.$ac_objext \
 
23368
 
 
23369
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25345
23370
      conftest$ac_exeext conftest.$ac_ext
25346
23371
fi
25347
 
echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
25348
 
echo "${ECHO_T}$ac_cv_func_regcomp" >&6
 
23372
{ echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
 
23373
echo "${ECHO_T}$ac_cv_func_regcomp" >&6; }
25349
23374
if test $ac_cv_func_regcomp = yes; then
25350
 
  gnupg_cv_included_regex=no
 
23375
  gnupg_cv_have_regex=yes
25351
23376
else
25352
 
  gnupg_cv_included_regex=yes
 
23377
  gnupg_cv_have_regex=no
25353
23378
fi
25354
23379
 
25355
 
  fi
25356
23380
 
25357
 
  if test $gnupg_cv_included_regex = no ; then
25358
 
     echo "$as_me:$LINENO: checking whether your system's regexp library is broken" >&5
25359
 
echo $ECHO_N "checking whether your system's regexp library is broken... $ECHO_C" >&6
 
23381
  if test $gnupg_cv_have_regex = no; then
 
23382
    use_regex=no
 
23383
  else
 
23384
    if test x"$cross_compiling" = xyes; then
 
23385
      { echo "$as_me:$LINENO: WARNING: cross compiling; assuming regexp libray is not broken" >&5
 
23386
echo "$as_me: WARNING: cross compiling; assuming regexp libray is not broken" >&2;}
 
23387
    else
 
23388
      { echo "$as_me:$LINENO: checking whether your system's regexp library is broken" >&5
 
23389
echo $ECHO_N "checking whether your system's regexp library is broken... $ECHO_C" >&6; }
25360
23390
if test "${gnupg_cv_regex_broken+set}" = set; then
25361
23391
  echo $ECHO_N "(cached) $ECHO_C" >&6
25362
23392
else
25375
23405
main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
25376
23406
_ACEOF
25377
23407
rm -f conftest$ac_exeext
25378
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25379
 
  (eval $ac_link) 2>&5
 
23408
if { (ac_try="$ac_link"
 
23409
case "(($ac_try" in
 
23410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23411
  *) ac_try_echo=$ac_try;;
 
23412
esac
 
23413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23414
  (eval "$ac_link") 2>&5
25380
23415
  ac_status=$?
25381
23416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382
23417
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25383
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384
 
  (eval $ac_try) 2>&5
 
23418
  { (case "(($ac_try" in
 
23419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23420
  *) ac_try_echo=$ac_try;;
 
23421
esac
 
23422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23423
  (eval "$ac_try") 2>&5
25385
23424
  ac_status=$?
25386
23425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387
23426
  (exit $ac_status); }; }; then
25394
23433
( exit $ac_status )
25395
23434
gnupg_cv_regex_broken=yes
25396
23435
fi
25397
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25398
 
fi
25399
 
fi
25400
 
echo "$as_me:$LINENO: result: $gnupg_cv_regex_broken" >&5
25401
 
echo "${ECHO_T}$gnupg_cv_regex_broken" >&6
25402
 
 
25403
 
     if test $gnupg_cv_regex_broken = yes ; then
25404
 
      { echo "$as_me:$LINENO: WARNING: your regex is broken - using the included GNU regex instead." >&5
25405
 
echo "$as_me: WARNING: your regex is broken - using the included GNU regex instead." >&2;}
25406
 
      gnupg_cv_included_regex=yes
25407
 
     fi
25408
 
  fi
25409
 
 
25410
 
  if test $gnupg_cv_included_regex = yes; then
25411
 
 
25412
 
cat >>confdefs.h <<\_ACEOF
25413
 
#define USE_GNU_REGEX 1
25414
 
_ACEOF
25415
 
 
25416
 
     REGEX_O=regex.o
25417
 
 
25418
 
  fi
25419
 
else
25420
 
 
 
23436
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23437
fi
 
23438
 
 
23439
 
 
23440
fi
 
23441
{ echo "$as_me:$LINENO: result: $gnupg_cv_regex_broken" >&5
 
23442
echo "${ECHO_T}$gnupg_cv_regex_broken" >&6; }
 
23443
 
 
23444
      if test $gnupg_cv_regex_broken = yes; then
 
23445
        { echo "$as_me:$LINENO: WARNING: your regex is broken - disabling regex use" >&5
 
23446
echo "$as_me: WARNING: your regex is broken - disabling regex use" >&2;}
 
23447
        use_regex=no
 
23448
      fi
 
23449
    fi
 
23450
  fi
 
23451
  CPPFLAGS="${_cppflags}"
 
23452
  LDFLAGS="${_ldflags}"
 
23453
fi
 
23454
 
 
23455
if test "$use_regex" != yes ; then
25421
23456
 
25422
23457
cat >>confdefs.h <<\_ACEOF
25423
23458
#define DISABLE_REGEX 1
25424
23459
_ACEOF
25425
23460
 
25426
23461
fi
25427
 
 
 
23462
 if test x"$use_regex" != xyes; then
 
23463
  DISABLE_REGEX_TRUE=
 
23464
  DISABLE_REGEX_FALSE='#'
 
23465
else
 
23466
  DISABLE_REGEX_TRUE='#'
 
23467
  DISABLE_REGEX_FALSE=
 
23468
fi
 
23469
 
 
23470
 
 
23471
 
 
23472
 
 
23473
#
 
23474
# Do we have zlib? Must do it here because Solaris failed
 
23475
# when compiling a conftest (due to the "-lz" from LIBS).
 
23476
# Note that we combine zlib and bzlib2 in ZLIBS.
 
23477
#
25428
23478
_cppflags="${CPPFLAGS}"
25429
23479
_ldflags="${LDFLAGS}"
25430
23480
 
25431
 
 
25432
 
# Check whether --with-zlib or --without-zlib was given.
 
23481
# Check whether --with-zlib was given.
25433
23482
if test "${with_zlib+set}" = set; then
25434
 
  withval="$with_zlib"
25435
 
 
 
23483
  withval=$with_zlib;
25436
23484
    if test -d "$withval"; then
25437
23485
      CPPFLAGS="${CPPFLAGS} -I$withval/include"
25438
23486
      LDFLAGS="${LDFLAGS} -L$withval/lib"
25439
23487
    fi
25440
23488
 
25441
 
fi;
 
23489
fi
 
23490
 
25442
23491
 
25443
23492
if test "${ac_cv_header_zlib_h+set}" = set; then
25444
 
  echo "$as_me:$LINENO: checking for zlib.h" >&5
25445
 
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
 
23493
  { echo "$as_me:$LINENO: checking for zlib.h" >&5
 
23494
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
25446
23495
if test "${ac_cv_header_zlib_h+set}" = set; then
25447
23496
  echo $ECHO_N "(cached) $ECHO_C" >&6
25448
23497
fi
25449
 
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25450
 
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
23498
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
23499
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
25451
23500
else
25452
23501
  # Is the header compilable?
25453
 
echo "$as_me:$LINENO: checking zlib.h usability" >&5
25454
 
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
 
23502
{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
 
23503
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
25455
23504
cat >conftest.$ac_ext <<_ACEOF
25456
23505
/* confdefs.h.  */
25457
23506
_ACEOF
25462
23511
#include <zlib.h>
25463
23512
_ACEOF
25464
23513
rm -f conftest.$ac_objext
25465
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25466
 
  (eval $ac_compile) 2>conftest.er1
 
23514
if { (ac_try="$ac_compile"
 
23515
case "(($ac_try" in
 
23516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23517
  *) ac_try_echo=$ac_try;;
 
23518
esac
 
23519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23520
  (eval "$ac_compile") 2>conftest.er1
25467
23521
  ac_status=$?
25468
23522
  grep -v '^ *+' conftest.er1 >conftest.err
25469
23523
  rm -f conftest.er1
25470
23524
  cat conftest.err >&5
25471
23525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472
 
  (exit $ac_status); } &&
25473
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25474
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475
 
  (eval $ac_try) 2>&5
25476
 
  ac_status=$?
25477
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478
 
  (exit $ac_status); }; } &&
25479
 
         { ac_try='test -s conftest.$ac_objext'
25480
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481
 
  (eval $ac_try) 2>&5
25482
 
  ac_status=$?
25483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484
 
  (exit $ac_status); }; }; then
 
23526
  (exit $ac_status); } && {
 
23527
         test -z "$ac_c_werror_flag" ||
 
23528
         test ! -s conftest.err
 
23529
       } && test -s conftest.$ac_objext; then
25485
23530
  ac_header_compiler=yes
25486
23531
else
25487
23532
  echo "$as_me: failed program was:" >&5
25488
23533
sed 's/^/| /' conftest.$ac_ext >&5
25489
23534
 
25490
 
ac_header_compiler=no
 
23535
        ac_header_compiler=no
25491
23536
fi
25492
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25493
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25494
 
echo "${ECHO_T}$ac_header_compiler" >&6
 
23537
 
 
23538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23539
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23540
echo "${ECHO_T}$ac_header_compiler" >&6; }
25495
23541
 
25496
23542
# Is the header present?
25497
 
echo "$as_me:$LINENO: checking zlib.h presence" >&5
25498
 
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
 
23543
{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
 
23544
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
25499
23545
cat >conftest.$ac_ext <<_ACEOF
25500
23546
/* confdefs.h.  */
25501
23547
_ACEOF
25504
23550
/* end confdefs.h.  */
25505
23551
#include <zlib.h>
25506
23552
_ACEOF
25507
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25508
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23553
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23554
case "(($ac_try" in
 
23555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23556
  *) ac_try_echo=$ac_try;;
 
23557
esac
 
23558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23559
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25509
23560
  ac_status=$?
25510
23561
  grep -v '^ *+' conftest.er1 >conftest.err
25511
23562
  rm -f conftest.er1
25512
23563
  cat conftest.err >&5
25513
23564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514
 
  (exit $ac_status); } >/dev/null; then
25515
 
  if test -s conftest.err; then
25516
 
    ac_cpp_err=$ac_c_preproc_warn_flag
25517
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25518
 
  else
25519
 
    ac_cpp_err=
25520
 
  fi
25521
 
else
25522
 
  ac_cpp_err=yes
25523
 
fi
25524
 
if test -z "$ac_cpp_err"; then
 
23565
  (exit $ac_status); } >/dev/null && {
 
23566
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23567
         test ! -s conftest.err
 
23568
       }; then
25525
23569
  ac_header_preproc=yes
25526
23570
else
25527
23571
  echo "$as_me: failed program was:" >&5
25529
23573
 
25530
23574
  ac_header_preproc=no
25531
23575
fi
 
23576
 
25532
23577
rm -f conftest.err conftest.$ac_ext
25533
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25534
 
echo "${ECHO_T}$ac_header_preproc" >&6
 
23578
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23579
echo "${ECHO_T}$ac_header_preproc" >&6; }
25535
23580
 
25536
23581
# So?  What about this header?
25537
23582
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25555
23600
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25556
23601
    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25557
23602
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25558
 
    (
25559
 
      cat <<\_ASBOX
25560
 
## ------------------------------------ ##
25561
 
## Report this to gnupg-devel@gnupg.org ##
25562
 
## ------------------------------------ ##
 
23603
    ( cat <<\_ASBOX
 
23604
## ---------------------------------- ##
 
23605
## Report this to bug-gnupg@gnupg.org ##
 
23606
## ---------------------------------- ##
25563
23607
_ASBOX
25564
 
    ) |
25565
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
23608
     ) | sed "s/^/$as_me: WARNING:     /" >&2
25566
23609
    ;;
25567
23610
esac
25568
 
echo "$as_me:$LINENO: checking for zlib.h" >&5
25569
 
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
 
23611
{ echo "$as_me:$LINENO: checking for zlib.h" >&5
 
23612
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
25570
23613
if test "${ac_cv_header_zlib_h+set}" = set; then
25571
23614
  echo $ECHO_N "(cached) $ECHO_C" >&6
25572
23615
else
25573
23616
  ac_cv_header_zlib_h=$ac_header_preproc
25574
23617
fi
25575
 
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25576
 
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
23618
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
23619
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
25577
23620
 
25578
23621
fi
25579
23622
if test $ac_cv_header_zlib_h = yes; then
25580
 
  echo "$as_me:$LINENO: checking for deflateInit2_ in -lz" >&5
25581
 
echo $ECHO_N "checking for deflateInit2_ in -lz... $ECHO_C" >&6
 
23623
  { echo "$as_me:$LINENO: checking for deflateInit2_ in -lz" >&5
 
23624
echo $ECHO_N "checking for deflateInit2_ in -lz... $ECHO_C" >&6; }
25582
23625
if test "${ac_cv_lib_z_deflateInit2_+set}" = set; then
25583
23626
  echo $ECHO_N "(cached) $ECHO_C" >&6
25584
23627
else
25591
23634
cat >>conftest.$ac_ext <<_ACEOF
25592
23635
/* end confdefs.h.  */
25593
23636
 
25594
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
23637
/* Override any GCC internal prototype to avoid an error.
 
23638
   Use char because int might match the return type of a GCC
 
23639
   builtin and then its argument prototype would still apply.  */
25595
23640
#ifdef __cplusplus
25596
23641
extern "C"
25597
23642
#endif
25598
 
/* We use char because int might match the return type of a gcc2
25599
 
   builtin and then its argument prototype would still apply.  */
25600
23643
char deflateInit2_ ();
25601
23644
int
25602
23645
main ()
25603
23646
{
25604
 
deflateInit2_ ();
 
23647
return deflateInit2_ ();
25605
23648
  ;
25606
23649
  return 0;
25607
23650
}
25608
23651
_ACEOF
25609
23652
rm -f conftest.$ac_objext conftest$ac_exeext
25610
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25611
 
  (eval $ac_link) 2>conftest.er1
 
23653
if { (ac_try="$ac_link"
 
23654
case "(($ac_try" in
 
23655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23656
  *) ac_try_echo=$ac_try;;
 
23657
esac
 
23658
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23659
  (eval "$ac_link") 2>conftest.er1
25612
23660
  ac_status=$?
25613
23661
  grep -v '^ *+' conftest.er1 >conftest.err
25614
23662
  rm -f conftest.er1
25615
23663
  cat conftest.err >&5
25616
23664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617
 
  (exit $ac_status); } &&
25618
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25619
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620
 
  (eval $ac_try) 2>&5
25621
 
  ac_status=$?
25622
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623
 
  (exit $ac_status); }; } &&
25624
 
         { ac_try='test -s conftest$ac_exeext'
25625
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626
 
  (eval $ac_try) 2>&5
25627
 
  ac_status=$?
25628
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629
 
  (exit $ac_status); }; }; then
 
23665
  (exit $ac_status); } && {
 
23666
         test -z "$ac_c_werror_flag" ||
 
23667
         test ! -s conftest.err
 
23668
       } && test -s conftest$ac_exeext &&
 
23669
       $as_test_x conftest$ac_exeext; then
25630
23670
  ac_cv_lib_z_deflateInit2_=yes
25631
23671
else
25632
23672
  echo "$as_me: failed program was:" >&5
25633
23673
sed 's/^/| /' conftest.$ac_ext >&5
25634
23674
 
25635
 
ac_cv_lib_z_deflateInit2_=no
 
23675
        ac_cv_lib_z_deflateInit2_=no
25636
23676
fi
25637
 
rm -f conftest.err conftest.$ac_objext \
 
23677
 
 
23678
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25638
23679
      conftest$ac_exeext conftest.$ac_ext
25639
23680
LIBS=$ac_check_lib_save_LIBS
25640
23681
fi
25641
 
echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflateInit2_" >&5
25642
 
echo "${ECHO_T}$ac_cv_lib_z_deflateInit2_" >&6
 
23682
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflateInit2_" >&5
 
23683
echo "${ECHO_T}$ac_cv_lib_z_deflateInit2_" >&6; }
25643
23684
if test $ac_cv_lib_z_deflateInit2_ = yes; then
25644
 
  LIBS="$LIBS -lz"
25645
 
else
25646
 
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
25647
 
fi
25648
 
 
25649
 
else
25650
 
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
25651
 
fi
25652
 
 
25653
 
 
25654
 
 
25655
 
 
25656
 
 
25657
 
# See wether we want to run the long test suite.
25658
 
 
25659
 
# Check whether --with-pkits-tests or --without-pkits-tests was given.
25660
 
if test "${with_pkits_tests+set}" = set; then
25661
 
  withval="$with_pkits_tests"
25662
 
  run_pkits_tests=$withval
25663
 
else
25664
 
  run_pkits_tests=no
25665
 
fi;
25666
 
 
25667
 
 
25668
 
if test "$run_pkits_tests" = "yes"; then
25669
 
  RUN_PKITS_TESTS_TRUE=
25670
 
  RUN_PKITS_TESTS_FALSE='#'
25671
 
else
25672
 
  RUN_PKITS_TESTS_TRUE='#'
25673
 
  RUN_PKITS_TESTS_FALSE=
25674
 
fi
25675
 
 
25676
 
 
25677
 
 
 
23685
  ZLIBS="-lz"
 
23686
else
 
23687
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
23688
fi
 
23689
 
 
23690
else
 
23691
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
23692
fi
 
23693
 
 
23694
 
 
23695
 
 
23696
#
 
23697
# Check whether we can support bzip2
 
23698
#
 
23699
if test "$use_bzip2" = yes ; then
 
23700
  _cppflags="${CPPFLAGS}"
 
23701
  _ldflags="${LDFLAGS}"
 
23702
 
 
23703
# Check whether --with-bzip2 was given.
 
23704
if test "${with_bzip2+set}" = set; then
 
23705
  withval=$with_bzip2;
 
23706
      if test -d "$withval" ; then
 
23707
        CPPFLAGS="${CPPFLAGS} -I$withval/include"
 
23708
        LDFLAGS="${LDFLAGS} -L$withval/lib"
 
23709
      fi
 
23710
 
 
23711
else
 
23712
  withval=""
 
23713
fi
 
23714
 
 
23715
 
 
23716
  # Checking alongside stdio.h as an early version of bzip2 (1.0)
 
23717
  # required stdio.h to be included before bzlib.h, and Solaris 9 is
 
23718
  # woefully out of date.
 
23719
  if test "$withval" != no ; then
 
23720
     { echo "$as_me:$LINENO: checking for bzlib.h" >&5
 
23721
echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6; }
 
23722
if test "${ac_cv_header_bzlib_h+set}" = set; then
 
23723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23724
else
 
23725
  cat >conftest.$ac_ext <<_ACEOF
 
23726
/* confdefs.h.  */
 
23727
_ACEOF
 
23728
cat confdefs.h >>conftest.$ac_ext
 
23729
cat >>conftest.$ac_ext <<_ACEOF
 
23730
/* end confdefs.h.  */
 
23731
#include <stdio.h>
 
23732
 
 
23733
#include <bzlib.h>
 
23734
_ACEOF
 
23735
rm -f conftest.$ac_objext
 
23736
if { (ac_try="$ac_compile"
 
23737
case "(($ac_try" in
 
23738
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23739
  *) ac_try_echo=$ac_try;;
 
23740
esac
 
23741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23742
  (eval "$ac_compile") 2>conftest.er1
 
23743
  ac_status=$?
 
23744
  grep -v '^ *+' conftest.er1 >conftest.err
 
23745
  rm -f conftest.er1
 
23746
  cat conftest.err >&5
 
23747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23748
  (exit $ac_status); } && {
 
23749
         test -z "$ac_c_werror_flag" ||
 
23750
         test ! -s conftest.err
 
23751
       } && test -s conftest.$ac_objext; then
 
23752
  ac_cv_header_bzlib_h=yes
 
23753
else
 
23754
  echo "$as_me: failed program was:" >&5
 
23755
sed 's/^/| /' conftest.$ac_ext >&5
 
23756
 
 
23757
        ac_cv_header_bzlib_h=no
 
23758
fi
 
23759
 
 
23760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23761
fi
 
23762
{ echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
 
23763
echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6; }
 
23764
if test $ac_cv_header_bzlib_h = yes; then
 
23765
  { echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
 
23766
echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6; }
 
23767
if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
 
23768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23769
else
 
23770
  ac_check_lib_save_LIBS=$LIBS
 
23771
LIBS="-lbz2  $LIBS"
 
23772
cat >conftest.$ac_ext <<_ACEOF
 
23773
/* confdefs.h.  */
 
23774
_ACEOF
 
23775
cat confdefs.h >>conftest.$ac_ext
 
23776
cat >>conftest.$ac_ext <<_ACEOF
 
23777
/* end confdefs.h.  */
 
23778
 
 
23779
/* Override any GCC internal prototype to avoid an error.
 
23780
   Use char because int might match the return type of a GCC
 
23781
   builtin and then its argument prototype would still apply.  */
 
23782
#ifdef __cplusplus
 
23783
extern "C"
 
23784
#endif
 
23785
char BZ2_bzCompressInit ();
 
23786
int
 
23787
main ()
 
23788
{
 
23789
return BZ2_bzCompressInit ();
 
23790
  ;
 
23791
  return 0;
 
23792
}
 
23793
_ACEOF
 
23794
rm -f conftest.$ac_objext conftest$ac_exeext
 
23795
if { (ac_try="$ac_link"
 
23796
case "(($ac_try" in
 
23797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23798
  *) ac_try_echo=$ac_try;;
 
23799
esac
 
23800
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23801
  (eval "$ac_link") 2>conftest.er1
 
23802
  ac_status=$?
 
23803
  grep -v '^ *+' conftest.er1 >conftest.err
 
23804
  rm -f conftest.er1
 
23805
  cat conftest.err >&5
 
23806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23807
  (exit $ac_status); } && {
 
23808
         test -z "$ac_c_werror_flag" ||
 
23809
         test ! -s conftest.err
 
23810
       } && test -s conftest$ac_exeext &&
 
23811
       $as_test_x conftest$ac_exeext; then
 
23812
  ac_cv_lib_bz2_BZ2_bzCompressInit=yes
 
23813
else
 
23814
  echo "$as_me: failed program was:" >&5
 
23815
sed 's/^/| /' conftest.$ac_ext >&5
 
23816
 
 
23817
        ac_cv_lib_bz2_BZ2_bzCompressInit=no
 
23818
fi
 
23819
 
 
23820
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23821
      conftest$ac_exeext conftest.$ac_ext
 
23822
LIBS=$ac_check_lib_save_LIBS
 
23823
fi
 
23824
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
 
23825
echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
 
23826
if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
 
23827
 
 
23828
          have_bz2=yes
 
23829
          ZLIBS="$ZLIBS -lbz2"
 
23830
 
 
23831
cat >>confdefs.h <<\_ACEOF
 
23832
#define HAVE_BZIP2 1
 
23833
_ACEOF
 
23834
 
 
23835
 
 
23836
else
 
23837
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
23838
fi
 
23839
 
 
23840
else
 
23841
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
23842
fi
 
23843
 
 
23844
 
 
23845
  fi
 
23846
fi
 
23847
 if test x"$have_bz2" = "xyes"; then
 
23848
  ENABLE_BZIP2_SUPPORT_TRUE=
 
23849
  ENABLE_BZIP2_SUPPORT_FALSE='#'
 
23850
else
 
23851
  ENABLE_BZIP2_SUPPORT_TRUE='#'
 
23852
  ENABLE_BZIP2_SUPPORT_FALSE=
 
23853
fi
 
23854
 
 
23855
 
 
23856
 
 
23857
 
 
23858
# Check for readline support
 
23859
 
 
23860
 
 
23861
# Check whether --with-readline was given.
 
23862
if test "${with_readline+set}" = set; then
 
23863
  withval=$with_readline; _do_readline=$withval
 
23864
else
 
23865
  _do_readline=yes
 
23866
fi
 
23867
 
 
23868
 
 
23869
  if test "$_do_readline" != "no" ; then
 
23870
     if test -d "$withval" ; then
 
23871
        CPPFLAGS="${CPPFLAGS} -I$withval/include"
 
23872
        LDFLAGS="${LDFLAGS} -L$withval/lib"
 
23873
     fi
 
23874
 
 
23875
     for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
 
23876
        _readline_save_libs=$LIBS
 
23877
        _combo="-lreadline${_termcap:+ $_termcap}"
 
23878
        LIBS="$LIBS $_combo"
 
23879
 
 
23880
        { echo "$as_me:$LINENO: checking whether readline via \"$_combo\" is present and sane" >&5
 
23881
echo $ECHO_N "checking whether readline via \"$_combo\" is present and sane... $ECHO_C" >&6; }
 
23882
 
 
23883
        cat >conftest.$ac_ext <<_ACEOF
 
23884
/* confdefs.h.  */
 
23885
_ACEOF
 
23886
cat confdefs.h >>conftest.$ac_ext
 
23887
cat >>conftest.$ac_ext <<_ACEOF
 
23888
/* end confdefs.h.  */
 
23889
 
 
23890
#include <stdio.h>
 
23891
#include <readline/readline.h>
 
23892
#include <readline/history.h>
 
23893
 
 
23894
int
 
23895
main ()
 
23896
{
 
23897
 
 
23898
rl_completion_func_t *completer;
 
23899
add_history("foobar");
 
23900
rl_catch_signals=0;
 
23901
rl_inhibit_completion=0;
 
23902
rl_attempted_completion_function=NULL;
 
23903
rl_completion_matches(NULL,NULL);
 
23904
 
 
23905
  ;
 
23906
  return 0;
 
23907
}
 
23908
_ACEOF
 
23909
rm -f conftest.$ac_objext conftest$ac_exeext
 
23910
if { (ac_try="$ac_link"
 
23911
case "(($ac_try" in
 
23912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23913
  *) ac_try_echo=$ac_try;;
 
23914
esac
 
23915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23916
  (eval "$ac_link") 2>conftest.er1
 
23917
  ac_status=$?
 
23918
  grep -v '^ *+' conftest.er1 >conftest.err
 
23919
  rm -f conftest.er1
 
23920
  cat conftest.err >&5
 
23921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23922
  (exit $ac_status); } && {
 
23923
         test -z "$ac_c_werror_flag" ||
 
23924
         test ! -s conftest.err
 
23925
       } && test -s conftest$ac_exeext &&
 
23926
       $as_test_x conftest$ac_exeext; then
 
23927
  _found_readline=yes
 
23928
else
 
23929
  echo "$as_me: failed program was:" >&5
 
23930
sed 's/^/| /' conftest.$ac_ext >&5
 
23931
 
 
23932
        _found_readline=no
 
23933
fi
 
23934
 
 
23935
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23936
      conftest$ac_exeext conftest.$ac_ext
 
23937
 
 
23938
        { echo "$as_me:$LINENO: result: $_found_readline" >&5
 
23939
echo "${ECHO_T}$_found_readline" >&6; }
 
23940
 
 
23941
        LIBS=$_readline_save_libs
 
23942
 
 
23943
        if test $_found_readline = yes ; then
 
23944
 
 
23945
cat >>confdefs.h <<\_ACEOF
 
23946
#define HAVE_LIBREADLINE 1
 
23947
_ACEOF
 
23948
 
 
23949
           LIBREADLINE=$_combo
 
23950
 
 
23951
           break
 
23952
        fi
 
23953
     done
 
23954
 
 
23955
     unset _termcap
 
23956
     unset _readline_save_libs
 
23957
     unset _combo
 
23958
     unset _found_readline
 
23959
  fi
 
23960
 
 
23961
 
 
23962
#
25678
23963
# Allow users to append something to the version string without
25679
23964
# flagging it as development version.  The user version parts is
25680
23965
# considered everything after a dash.
 
23966
#
25681
23967
if test "$development_version" != yes; then
25682
23968
    tmp_pat='[a-zA-Z]'
25683
23969
    if echo "$VERSION" | sed 's/-.*//' | grep "$tmp_pat" >/dev/null ; then
25692
23978
 
25693
23979
fi
25694
23980
 
25695
 
 
25696
 
 
25697
 
if test x$cross_compiling = xyes; then
 
23981
 if test x$cross_compiling = xyes; then
25698
23982
  CROSS_COMPILING_TRUE=
25699
23983
  CROSS_COMPILING_FALSE='#'
25700
23984
else
25726
24010
 
25727
24011
# Add some extra libs here so that previous tests don't fail for
25728
24012
# mysterious reasons - the final link step should bail out.
 
24013
# W32SOCKLIBS is also defined so that if can be used for tools not
 
24014
# requiring any network stuff but linking to code in libcommon which
 
24015
# tracks in winsock stuff (e.g. init_common_subsystems.
25729
24016
if test "$have_w32_system" = yes; then
25730
 
   W32LIBS="-lwsock32"
 
24017
   W32SOCKLIBS="-lws2_32"
 
24018
   NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
25731
24019
fi
25732
24020
 
25733
24021
 
 
24022
 
 
24023
 
 
24024
#
 
24025
# Setup gcc specific options
 
24026
#
 
24027
{ echo "$as_me:$LINENO: checking for cc features" >&5
 
24028
echo "$as_me: checking for cc features" >&6;}
25734
24029
if test "$GCC" = yes; then
 
24030
    # Note that it is okay to use CFLAGS here because this are just
 
24031
    # warning options and the user should have a chance of overriding
 
24032
    # them.
25735
24033
    if test "$USE_MAINTAINER_MODE" = "yes"; then
25736
24034
        CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
25737
 
        CFLAGS="$CFLAGS -Wno-format-y2k -Wformat-security"
 
24035
        CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
25738
24036
    else
25739
24037
        CFLAGS="$CFLAGS -Wall"
25740
24038
    fi
25741
 
fi
25742
 
 
25743
 
 
25744
 
 
25745
 
 
25746
 
 
25747
 
# We use jnlib, so tell other modules about it
25748
 
 
25749
 
cat >>confdefs.h <<\_ACEOF
25750
 
#define HAVE_JNLIB_LOGGING 1
25751
 
_ACEOF
25752
 
 
25753
 
 
25754
 
# For W32 we need to use our Pth emulation code
25755
 
if test "$have_w32_system" = yes; then
25756
 
            ac_config_links="$ac_config_links pth.h:jnlib/w32-pth.h"
25757
 
 
25758
 
fi
 
24039
 
 
24040
    { echo "$as_me:$LINENO: checking if gcc supports -Wno-pointer-sign" >&5
 
24041
echo $ECHO_N "checking if gcc supports -Wno-pointer-sign... $ECHO_C" >&6; }
 
24042
    _gcc_cflags_save=$CFLAGS
 
24043
    CFLAGS="-Wno-pointer-sign"
 
24044
    cat >conftest.$ac_ext <<_ACEOF
 
24045
/* confdefs.h.  */
 
24046
_ACEOF
 
24047
cat confdefs.h >>conftest.$ac_ext
 
24048
cat >>conftest.$ac_ext <<_ACEOF
 
24049
/* end confdefs.h.  */
 
24050
 
 
24051
int
 
24052
main ()
 
24053
{
 
24054
 
 
24055
  ;
 
24056
  return 0;
 
24057
}
 
24058
_ACEOF
 
24059
rm -f conftest.$ac_objext
 
24060
if { (ac_try="$ac_compile"
 
24061
case "(($ac_try" in
 
24062
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24063
  *) ac_try_echo=$ac_try;;
 
24064
esac
 
24065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24066
  (eval "$ac_compile") 2>conftest.er1
 
24067
  ac_status=$?
 
24068
  grep -v '^ *+' conftest.er1 >conftest.err
 
24069
  rm -f conftest.er1
 
24070
  cat conftest.err >&5
 
24071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24072
  (exit $ac_status); } && {
 
24073
         test -z "$ac_c_werror_flag" ||
 
24074
         test ! -s conftest.err
 
24075
       } && test -s conftest.$ac_objext; then
 
24076
  _gcc_psign=yes
 
24077
else
 
24078
  echo "$as_me: failed program was:" >&5
 
24079
sed 's/^/| /' conftest.$ac_ext >&5
 
24080
 
 
24081
        _gcc_psign=no
 
24082
fi
 
24083
 
 
24084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24085
    { echo "$as_me:$LINENO: result: $_gcc_psign" >&5
 
24086
echo "${ECHO_T}$_gcc_psign" >&6; }
 
24087
    CFLAGS=$_gcc_cflags_save;
 
24088
    if test x"$_gcc_psign" = xyes ; then
 
24089
       CFLAGS="$CFLAGS -Wno-pointer-sign"
 
24090
    fi
 
24091
 
 
24092
    { echo "$as_me:$LINENO: checking if gcc supports -Wpointer-arith" >&5
 
24093
echo $ECHO_N "checking if gcc supports -Wpointer-arith... $ECHO_C" >&6; }
 
24094
    _gcc_cflags_save=$CFLAGS
 
24095
    CFLAGS="-Wpointer-arith"
 
24096
    cat >conftest.$ac_ext <<_ACEOF
 
24097
/* confdefs.h.  */
 
24098
_ACEOF
 
24099
cat confdefs.h >>conftest.$ac_ext
 
24100
cat >>conftest.$ac_ext <<_ACEOF
 
24101
/* end confdefs.h.  */
 
24102
 
 
24103
int
 
24104
main ()
 
24105
{
 
24106
 
 
24107
  ;
 
24108
  return 0;
 
24109
}
 
24110
_ACEOF
 
24111
rm -f conftest.$ac_objext
 
24112
if { (ac_try="$ac_compile"
 
24113
case "(($ac_try" in
 
24114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24115
  *) ac_try_echo=$ac_try;;
 
24116
esac
 
24117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24118
  (eval "$ac_compile") 2>conftest.er1
 
24119
  ac_status=$?
 
24120
  grep -v '^ *+' conftest.er1 >conftest.err
 
24121
  rm -f conftest.er1
 
24122
  cat conftest.err >&5
 
24123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24124
  (exit $ac_status); } && {
 
24125
         test -z "$ac_c_werror_flag" ||
 
24126
         test ! -s conftest.err
 
24127
       } && test -s conftest.$ac_objext; then
 
24128
  _gcc_psign=yes
 
24129
else
 
24130
  echo "$as_me: failed program was:" >&5
 
24131
sed 's/^/| /' conftest.$ac_ext >&5
 
24132
 
 
24133
        _gcc_psign=no
 
24134
fi
 
24135
 
 
24136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24137
    { echo "$as_me:$LINENO: result: $_gcc_psign" >&5
 
24138
echo "${ECHO_T}$_gcc_psign" >&6; }
 
24139
    CFLAGS=$_gcc_cflags_save;
 
24140
    if test x"$_gcc_psign" = xyes ; then
 
24141
       CFLAGS="$CFLAGS -Wpointer-arith"
 
24142
    fi
 
24143
fi
 
24144
 
 
24145
 
 
24146
#
 
24147
# This is handy for debugging so the compiler doesn't rearrange
 
24148
# things and eliminate variables.
 
24149
#
 
24150
# Check whether --enable-optimization was given.
 
24151
if test "${enable_optimization+set}" = set; then
 
24152
  enableval=$enable_optimization; if test $enableval = no ; then
 
24153
                      CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
 
24154
                   fi
 
24155
fi
 
24156
 
 
24157
 
 
24158
#
 
24159
# Prepare building of estream
 
24160
#
 
24161
 
 
24162
  { echo "$as_me:$LINENO: checking system features for estream-printf" >&5
 
24163
echo "$as_me: checking system features for estream-printf" >&6;}
 
24164
 
 
24165
  { echo "$as_me:$LINENO: checking for long long int" >&5
 
24166
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
 
24167
if test "${ac_cv_type_long_long_int+set}" = set; then
 
24168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24169
else
 
24170
  cat >conftest.$ac_ext <<_ACEOF
 
24171
 
 
24172
  /* confdefs.h.  */
 
24173
_ACEOF
 
24174
cat confdefs.h >>conftest.$ac_ext
 
24175
cat >>conftest.$ac_ext <<_ACEOF
 
24176
/* end confdefs.h.  */
 
24177
/* Test preprocessor.  */
 
24178
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
24179
        error in preprocessor;
 
24180
      #endif
 
24181
      #if ! (18446744073709551615ULL <= -1ull)
 
24182
        error in preprocessor;
 
24183
      #endif
 
24184
      /* Test literals.  */
 
24185
      long long int ll = 9223372036854775807ll;
 
24186
      long long int nll = -9223372036854775807LL;
 
24187
      unsigned long long int ull = 18446744073709551615ULL;
 
24188
      /* Test constant expressions.   */
 
24189
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
24190
                     ? 1 : -1)];
 
24191
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
24192
                     ? 1 : -1)];
 
24193
      int i = 63;
 
24194
int
 
24195
main ()
 
24196
{
 
24197
/* Test availability of runtime routines for shift and division.  */
 
24198
      long long int llmax = 9223372036854775807ll;
 
24199
      unsigned long long int ullmax = 18446744073709551615ull;
 
24200
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
24201
              | (llmax / ll) | (llmax % ll)
 
24202
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
24203
              | (ullmax / ull) | (ullmax % ull));
 
24204
  ;
 
24205
  return 0;
 
24206
}
 
24207
 
 
24208
_ACEOF
 
24209
rm -f conftest.$ac_objext conftest$ac_exeext
 
24210
if { (ac_try="$ac_link"
 
24211
case "(($ac_try" in
 
24212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24213
  *) ac_try_echo=$ac_try;;
 
24214
esac
 
24215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24216
  (eval "$ac_link") 2>conftest.er1
 
24217
  ac_status=$?
 
24218
  grep -v '^ *+' conftest.er1 >conftest.err
 
24219
  rm -f conftest.er1
 
24220
  cat conftest.err >&5
 
24221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24222
  (exit $ac_status); } && {
 
24223
         test -z "$ac_c_werror_flag" ||
 
24224
         test ! -s conftest.err
 
24225
       } && test -s conftest$ac_exeext &&
 
24226
       $as_test_x conftest$ac_exeext; then
 
24227
                        if test "$cross_compiling" = yes; then
 
24228
  ac_cv_type_long_long_int=yes
 
24229
else
 
24230
  cat >conftest.$ac_ext <<_ACEOF
 
24231
/* confdefs.h.  */
 
24232
_ACEOF
 
24233
cat confdefs.h >>conftest.$ac_ext
 
24234
cat >>conftest.$ac_ext <<_ACEOF
 
24235
/* end confdefs.h.  */
 
24236
#include <limits.h>
 
24237
               #ifndef LLONG_MAX
 
24238
               # define HALF \
 
24239
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
24240
               # define LLONG_MAX (HALF - 1 + HALF)
 
24241
               #endif
 
24242
int
 
24243
main ()
 
24244
{
 
24245
long long int n = 1;
 
24246
               int i;
 
24247
               for (i = 0; ; i++)
 
24248
                 {
 
24249
                   long long int m = n << i;
 
24250
                   if (m >> i != n)
 
24251
                     return 1;
 
24252
                   if (LLONG_MAX / 2 < m)
 
24253
                     break;
 
24254
                 }
 
24255
               return 0;
 
24256
  ;
 
24257
  return 0;
 
24258
}
 
24259
_ACEOF
 
24260
rm -f conftest$ac_exeext
 
24261
if { (ac_try="$ac_link"
 
24262
case "(($ac_try" in
 
24263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24264
  *) ac_try_echo=$ac_try;;
 
24265
esac
 
24266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24267
  (eval "$ac_link") 2>&5
 
24268
  ac_status=$?
 
24269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24270
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24271
  { (case "(($ac_try" in
 
24272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24273
  *) ac_try_echo=$ac_try;;
 
24274
esac
 
24275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24276
  (eval "$ac_try") 2>&5
 
24277
  ac_status=$?
 
24278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24279
  (exit $ac_status); }; }; then
 
24280
  ac_cv_type_long_long_int=yes
 
24281
else
 
24282
  echo "$as_me: program exited with status $ac_status" >&5
 
24283
echo "$as_me: failed program was:" >&5
 
24284
sed 's/^/| /' conftest.$ac_ext >&5
 
24285
 
 
24286
( exit $ac_status )
 
24287
ac_cv_type_long_long_int=no
 
24288
fi
 
24289
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24290
fi
 
24291
 
 
24292
 
 
24293
else
 
24294
  echo "$as_me: failed program was:" >&5
 
24295
sed 's/^/| /' conftest.$ac_ext >&5
 
24296
 
 
24297
        ac_cv_type_long_long_int=no
 
24298
fi
 
24299
 
 
24300
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24301
      conftest$ac_exeext conftest.$ac_ext
 
24302
fi
 
24303
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
 
24304
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
 
24305
  if test $ac_cv_type_long_long_int = yes; then
 
24306
 
 
24307
cat >>confdefs.h <<\_ACEOF
 
24308
#define HAVE_LONG_LONG_INT 1
 
24309
_ACEOF
 
24310
 
 
24311
  fi
 
24312
 
 
24313
 
 
24314
  { echo "$as_me:$LINENO: checking for long double" >&5
 
24315
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
 
24316
if test "${ac_cv_type_long_double+set}" = set; then
 
24317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24318
else
 
24319
  if test "$GCC" = yes; then
 
24320
       ac_cv_type_long_double=yes
 
24321
     else
 
24322
       cat >conftest.$ac_ext <<_ACEOF
 
24323
/* confdefs.h.  */
 
24324
_ACEOF
 
24325
cat confdefs.h >>conftest.$ac_ext
 
24326
cat >>conftest.$ac_ext <<_ACEOF
 
24327
/* end confdefs.h.  */
 
24328
/* The Stardent Vistra knows sizeof (long double), but does
 
24329
                 not support it.  */
 
24330
              long double foo = 0.0L;
 
24331
int
 
24332
main ()
 
24333
{
 
24334
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
 
24335
              sizeof (double) <= sizeof (long double))];
 
24336
test_array [0] = 0
 
24337
 
 
24338
  ;
 
24339
  return 0;
 
24340
}
 
24341
_ACEOF
 
24342
rm -f conftest.$ac_objext
 
24343
if { (ac_try="$ac_compile"
 
24344
case "(($ac_try" in
 
24345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24346
  *) ac_try_echo=$ac_try;;
 
24347
esac
 
24348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24349
  (eval "$ac_compile") 2>conftest.er1
 
24350
  ac_status=$?
 
24351
  grep -v '^ *+' conftest.er1 >conftest.err
 
24352
  rm -f conftest.er1
 
24353
  cat conftest.err >&5
 
24354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24355
  (exit $ac_status); } && {
 
24356
         test -z "$ac_c_werror_flag" ||
 
24357
         test ! -s conftest.err
 
24358
       } && test -s conftest.$ac_objext; then
 
24359
  ac_cv_type_long_double=yes
 
24360
else
 
24361
  echo "$as_me: failed program was:" >&5
 
24362
sed 's/^/| /' conftest.$ac_ext >&5
 
24363
 
 
24364
        ac_cv_type_long_double=no
 
24365
fi
 
24366
 
 
24367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24368
     fi
 
24369
fi
 
24370
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
 
24371
echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
 
24372
  if test $ac_cv_type_long_double = yes; then
 
24373
 
 
24374
cat >>confdefs.h <<\_ACEOF
 
24375
#define HAVE_LONG_DOUBLE 1
 
24376
_ACEOF
 
24377
 
 
24378
  fi
 
24379
 
 
24380
 
 
24381
 
 
24382
  { echo "$as_me:$LINENO: checking for intmax_t" >&5
 
24383
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
 
24384
if test "${ac_cv_type_intmax_t+set}" = set; then
 
24385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24386
else
 
24387
  cat >conftest.$ac_ext <<_ACEOF
 
24388
/* confdefs.h.  */
 
24389
_ACEOF
 
24390
cat confdefs.h >>conftest.$ac_ext
 
24391
cat >>conftest.$ac_ext <<_ACEOF
 
24392
/* end confdefs.h.  */
 
24393
$ac_includes_default
 
24394
typedef intmax_t ac__type_new_;
 
24395
int
 
24396
main ()
 
24397
{
 
24398
if ((ac__type_new_ *) 0)
 
24399
  return 0;
 
24400
if (sizeof (ac__type_new_))
 
24401
  return 0;
 
24402
  ;
 
24403
  return 0;
 
24404
}
 
24405
_ACEOF
 
24406
rm -f conftest.$ac_objext
 
24407
if { (ac_try="$ac_compile"
 
24408
case "(($ac_try" in
 
24409
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24410
  *) ac_try_echo=$ac_try;;
 
24411
esac
 
24412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24413
  (eval "$ac_compile") 2>conftest.er1
 
24414
  ac_status=$?
 
24415
  grep -v '^ *+' conftest.er1 >conftest.err
 
24416
  rm -f conftest.er1
 
24417
  cat conftest.err >&5
 
24418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24419
  (exit $ac_status); } && {
 
24420
         test -z "$ac_c_werror_flag" ||
 
24421
         test ! -s conftest.err
 
24422
       } && test -s conftest.$ac_objext; then
 
24423
  ac_cv_type_intmax_t=yes
 
24424
else
 
24425
  echo "$as_me: failed program was:" >&5
 
24426
sed 's/^/| /' conftest.$ac_ext >&5
 
24427
 
 
24428
        ac_cv_type_intmax_t=no
 
24429
fi
 
24430
 
 
24431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24432
fi
 
24433
{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
 
24434
echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
 
24435
if test $ac_cv_type_intmax_t = yes; then
 
24436
 
 
24437
cat >>confdefs.h <<\_ACEOF
 
24438
#define HAVE_INTMAX_T 1
 
24439
_ACEOF
 
24440
 
 
24441
else
 
24442
  test $ac_cv_type_long_long_int = yes \
 
24443
       && ac_type='long long int' \
 
24444
       || ac_type='long int'
 
24445
 
 
24446
cat >>confdefs.h <<_ACEOF
 
24447
#define intmax_t $ac_type
 
24448
_ACEOF
 
24449
 
 
24450
fi
 
24451
 
 
24452
 
 
24453
 
 
24454
 
 
24455
  { echo "$as_me:$LINENO: checking for uintmax_t" >&5
 
24456
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
 
24457
if test "${ac_cv_type_uintmax_t+set}" = set; then
 
24458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24459
else
 
24460
  cat >conftest.$ac_ext <<_ACEOF
 
24461
/* confdefs.h.  */
 
24462
_ACEOF
 
24463
cat confdefs.h >>conftest.$ac_ext
 
24464
cat >>conftest.$ac_ext <<_ACEOF
 
24465
/* end confdefs.h.  */
 
24466
$ac_includes_default
 
24467
typedef uintmax_t ac__type_new_;
 
24468
int
 
24469
main ()
 
24470
{
 
24471
if ((ac__type_new_ *) 0)
 
24472
  return 0;
 
24473
if (sizeof (ac__type_new_))
 
24474
  return 0;
 
24475
  ;
 
24476
  return 0;
 
24477
}
 
24478
_ACEOF
 
24479
rm -f conftest.$ac_objext
 
24480
if { (ac_try="$ac_compile"
 
24481
case "(($ac_try" in
 
24482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24483
  *) ac_try_echo=$ac_try;;
 
24484
esac
 
24485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24486
  (eval "$ac_compile") 2>conftest.er1
 
24487
  ac_status=$?
 
24488
  grep -v '^ *+' conftest.er1 >conftest.err
 
24489
  rm -f conftest.er1
 
24490
  cat conftest.err >&5
 
24491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24492
  (exit $ac_status); } && {
 
24493
         test -z "$ac_c_werror_flag" ||
 
24494
         test ! -s conftest.err
 
24495
       } && test -s conftest.$ac_objext; then
 
24496
  ac_cv_type_uintmax_t=yes
 
24497
else
 
24498
  echo "$as_me: failed program was:" >&5
 
24499
sed 's/^/| /' conftest.$ac_ext >&5
 
24500
 
 
24501
        ac_cv_type_uintmax_t=no
 
24502
fi
 
24503
 
 
24504
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24505
fi
 
24506
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
 
24507
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
 
24508
if test $ac_cv_type_uintmax_t = yes; then
 
24509
 
 
24510
cat >>confdefs.h <<\_ACEOF
 
24511
#define HAVE_UINTMAX_T 1
 
24512
_ACEOF
 
24513
 
 
24514
else
 
24515
  test $ac_cv_type_unsigned_long_long_int = yes \
 
24516
       && ac_type='unsigned long long int' \
 
24517
       || ac_type='unsigned long int'
 
24518
 
 
24519
cat >>confdefs.h <<_ACEOF
 
24520
#define uintmax_t $ac_type
 
24521
_ACEOF
 
24522
 
 
24523
fi
 
24524
 
 
24525
 
 
24526
  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
24527
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
 
24528
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
24529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24530
else
 
24531
  cat >conftest.$ac_ext <<_ACEOF
 
24532
/* confdefs.h.  */
 
24533
_ACEOF
 
24534
cat confdefs.h >>conftest.$ac_ext
 
24535
cat >>conftest.$ac_ext <<_ACEOF
 
24536
/* end confdefs.h.  */
 
24537
$ac_includes_default
 
24538
typedef ptrdiff_t ac__type_new_;
 
24539
int
 
24540
main ()
 
24541
{
 
24542
if ((ac__type_new_ *) 0)
 
24543
  return 0;
 
24544
if (sizeof (ac__type_new_))
 
24545
  return 0;
 
24546
  ;
 
24547
  return 0;
 
24548
}
 
24549
_ACEOF
 
24550
rm -f conftest.$ac_objext
 
24551
if { (ac_try="$ac_compile"
 
24552
case "(($ac_try" in
 
24553
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24554
  *) ac_try_echo=$ac_try;;
 
24555
esac
 
24556
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24557
  (eval "$ac_compile") 2>conftest.er1
 
24558
  ac_status=$?
 
24559
  grep -v '^ *+' conftest.er1 >conftest.err
 
24560
  rm -f conftest.er1
 
24561
  cat conftest.err >&5
 
24562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24563
  (exit $ac_status); } && {
 
24564
         test -z "$ac_c_werror_flag" ||
 
24565
         test ! -s conftest.err
 
24566
       } && test -s conftest.$ac_objext; then
 
24567
  ac_cv_type_ptrdiff_t=yes
 
24568
else
 
24569
  echo "$as_me: failed program was:" >&5
 
24570
sed 's/^/| /' conftest.$ac_ext >&5
 
24571
 
 
24572
        ac_cv_type_ptrdiff_t=no
 
24573
fi
 
24574
 
 
24575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24576
fi
 
24577
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
24578
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
 
24579
if test $ac_cv_type_ptrdiff_t = yes; then
 
24580
 
 
24581
cat >>confdefs.h <<_ACEOF
 
24582
#define HAVE_PTRDIFF_T 1
 
24583
_ACEOF
 
24584
 
 
24585
 
 
24586
fi
 
24587
 
 
24588
  { echo "$as_me:$LINENO: checking for unsigned long" >&5
 
24589
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
 
24590
if test "${ac_cv_type_unsigned_long+set}" = set; then
 
24591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24592
else
 
24593
  cat >conftest.$ac_ext <<_ACEOF
 
24594
/* confdefs.h.  */
 
24595
_ACEOF
 
24596
cat confdefs.h >>conftest.$ac_ext
 
24597
cat >>conftest.$ac_ext <<_ACEOF
 
24598
/* end confdefs.h.  */
 
24599
$ac_includes_default
 
24600
typedef unsigned long ac__type_new_;
 
24601
int
 
24602
main ()
 
24603
{
 
24604
if ((ac__type_new_ *) 0)
 
24605
  return 0;
 
24606
if (sizeof (ac__type_new_))
 
24607
  return 0;
 
24608
  ;
 
24609
  return 0;
 
24610
}
 
24611
_ACEOF
 
24612
rm -f conftest.$ac_objext
 
24613
if { (ac_try="$ac_compile"
 
24614
case "(($ac_try" in
 
24615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24616
  *) ac_try_echo=$ac_try;;
 
24617
esac
 
24618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24619
  (eval "$ac_compile") 2>conftest.er1
 
24620
  ac_status=$?
 
24621
  grep -v '^ *+' conftest.er1 >conftest.err
 
24622
  rm -f conftest.er1
 
24623
  cat conftest.err >&5
 
24624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24625
  (exit $ac_status); } && {
 
24626
         test -z "$ac_c_werror_flag" ||
 
24627
         test ! -s conftest.err
 
24628
       } && test -s conftest.$ac_objext; then
 
24629
  ac_cv_type_unsigned_long=yes
 
24630
else
 
24631
  echo "$as_me: failed program was:" >&5
 
24632
sed 's/^/| /' conftest.$ac_ext >&5
 
24633
 
 
24634
        ac_cv_type_unsigned_long=no
 
24635
fi
 
24636
 
 
24637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24638
fi
 
24639
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
24640
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
 
24641
 
 
24642
# The cast to long int works around a bug in the HP C Compiler
 
24643
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24644
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24645
# This bug is HP SR number 8606223364.
 
24646
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
 
24647
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
 
24648
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
 
24649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24650
else
 
24651
  if test "$cross_compiling" = yes; then
 
24652
  # Depending upon the size, compute the lo and hi bounds.
 
24653
cat >conftest.$ac_ext <<_ACEOF
 
24654
/* confdefs.h.  */
 
24655
_ACEOF
 
24656
cat confdefs.h >>conftest.$ac_ext
 
24657
cat >>conftest.$ac_ext <<_ACEOF
 
24658
/* end confdefs.h.  */
 
24659
$ac_includes_default
 
24660
   typedef unsigned long ac__type_sizeof_;
 
24661
int
 
24662
main ()
 
24663
{
 
24664
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
24665
test_array [0] = 0
 
24666
 
 
24667
  ;
 
24668
  return 0;
 
24669
}
 
24670
_ACEOF
 
24671
rm -f conftest.$ac_objext
 
24672
if { (ac_try="$ac_compile"
 
24673
case "(($ac_try" in
 
24674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24675
  *) ac_try_echo=$ac_try;;
 
24676
esac
 
24677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24678
  (eval "$ac_compile") 2>conftest.er1
 
24679
  ac_status=$?
 
24680
  grep -v '^ *+' conftest.er1 >conftest.err
 
24681
  rm -f conftest.er1
 
24682
  cat conftest.err >&5
 
24683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24684
  (exit $ac_status); } && {
 
24685
         test -z "$ac_c_werror_flag" ||
 
24686
         test ! -s conftest.err
 
24687
       } && test -s conftest.$ac_objext; then
 
24688
  ac_lo=0 ac_mid=0
 
24689
  while :; do
 
24690
    cat >conftest.$ac_ext <<_ACEOF
 
24691
/* confdefs.h.  */
 
24692
_ACEOF
 
24693
cat confdefs.h >>conftest.$ac_ext
 
24694
cat >>conftest.$ac_ext <<_ACEOF
 
24695
/* end confdefs.h.  */
 
24696
$ac_includes_default
 
24697
   typedef unsigned long ac__type_sizeof_;
 
24698
int
 
24699
main ()
 
24700
{
 
24701
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
24702
test_array [0] = 0
 
24703
 
 
24704
  ;
 
24705
  return 0;
 
24706
}
 
24707
_ACEOF
 
24708
rm -f conftest.$ac_objext
 
24709
if { (ac_try="$ac_compile"
 
24710
case "(($ac_try" in
 
24711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24712
  *) ac_try_echo=$ac_try;;
 
24713
esac
 
24714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24715
  (eval "$ac_compile") 2>conftest.er1
 
24716
  ac_status=$?
 
24717
  grep -v '^ *+' conftest.er1 >conftest.err
 
24718
  rm -f conftest.er1
 
24719
  cat conftest.err >&5
 
24720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24721
  (exit $ac_status); } && {
 
24722
         test -z "$ac_c_werror_flag" ||
 
24723
         test ! -s conftest.err
 
24724
       } && test -s conftest.$ac_objext; then
 
24725
  ac_hi=$ac_mid; break
 
24726
else
 
24727
  echo "$as_me: failed program was:" >&5
 
24728
sed 's/^/| /' conftest.$ac_ext >&5
 
24729
 
 
24730
        ac_lo=`expr $ac_mid + 1`
 
24731
                        if test $ac_lo -le $ac_mid; then
 
24732
                          ac_lo= ac_hi=
 
24733
                          break
 
24734
                        fi
 
24735
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
24736
fi
 
24737
 
 
24738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24739
  done
 
24740
else
 
24741
  echo "$as_me: failed program was:" >&5
 
24742
sed 's/^/| /' conftest.$ac_ext >&5
 
24743
 
 
24744
        cat >conftest.$ac_ext <<_ACEOF
 
24745
/* confdefs.h.  */
 
24746
_ACEOF
 
24747
cat confdefs.h >>conftest.$ac_ext
 
24748
cat >>conftest.$ac_ext <<_ACEOF
 
24749
/* end confdefs.h.  */
 
24750
$ac_includes_default
 
24751
   typedef unsigned long ac__type_sizeof_;
 
24752
int
 
24753
main ()
 
24754
{
 
24755
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
24756
test_array [0] = 0
 
24757
 
 
24758
  ;
 
24759
  return 0;
 
24760
}
 
24761
_ACEOF
 
24762
rm -f conftest.$ac_objext
 
24763
if { (ac_try="$ac_compile"
 
24764
case "(($ac_try" in
 
24765
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24766
  *) ac_try_echo=$ac_try;;
 
24767
esac
 
24768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24769
  (eval "$ac_compile") 2>conftest.er1
 
24770
  ac_status=$?
 
24771
  grep -v '^ *+' conftest.er1 >conftest.err
 
24772
  rm -f conftest.er1
 
24773
  cat conftest.err >&5
 
24774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24775
  (exit $ac_status); } && {
 
24776
         test -z "$ac_c_werror_flag" ||
 
24777
         test ! -s conftest.err
 
24778
       } && test -s conftest.$ac_objext; then
 
24779
  ac_hi=-1 ac_mid=-1
 
24780
  while :; do
 
24781
    cat >conftest.$ac_ext <<_ACEOF
 
24782
/* confdefs.h.  */
 
24783
_ACEOF
 
24784
cat confdefs.h >>conftest.$ac_ext
 
24785
cat >>conftest.$ac_ext <<_ACEOF
 
24786
/* end confdefs.h.  */
 
24787
$ac_includes_default
 
24788
   typedef unsigned long ac__type_sizeof_;
 
24789
int
 
24790
main ()
 
24791
{
 
24792
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
24793
test_array [0] = 0
 
24794
 
 
24795
  ;
 
24796
  return 0;
 
24797
}
 
24798
_ACEOF
 
24799
rm -f conftest.$ac_objext
 
24800
if { (ac_try="$ac_compile"
 
24801
case "(($ac_try" in
 
24802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24803
  *) ac_try_echo=$ac_try;;
 
24804
esac
 
24805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24806
  (eval "$ac_compile") 2>conftest.er1
 
24807
  ac_status=$?
 
24808
  grep -v '^ *+' conftest.er1 >conftest.err
 
24809
  rm -f conftest.er1
 
24810
  cat conftest.err >&5
 
24811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24812
  (exit $ac_status); } && {
 
24813
         test -z "$ac_c_werror_flag" ||
 
24814
         test ! -s conftest.err
 
24815
       } && test -s conftest.$ac_objext; then
 
24816
  ac_lo=$ac_mid; break
 
24817
else
 
24818
  echo "$as_me: failed program was:" >&5
 
24819
sed 's/^/| /' conftest.$ac_ext >&5
 
24820
 
 
24821
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
24822
                        if test $ac_mid -le $ac_hi; then
 
24823
                          ac_lo= ac_hi=
 
24824
                          break
 
24825
                        fi
 
24826
                        ac_mid=`expr 2 '*' $ac_mid`
 
24827
fi
 
24828
 
 
24829
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24830
  done
 
24831
else
 
24832
  echo "$as_me: failed program was:" >&5
 
24833
sed 's/^/| /' conftest.$ac_ext >&5
 
24834
 
 
24835
        ac_lo= ac_hi=
 
24836
fi
 
24837
 
 
24838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24839
fi
 
24840
 
 
24841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24842
# Binary search between lo and hi bounds.
 
24843
while test "x$ac_lo" != "x$ac_hi"; do
 
24844
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24845
  cat >conftest.$ac_ext <<_ACEOF
 
24846
/* confdefs.h.  */
 
24847
_ACEOF
 
24848
cat confdefs.h >>conftest.$ac_ext
 
24849
cat >>conftest.$ac_ext <<_ACEOF
 
24850
/* end confdefs.h.  */
 
24851
$ac_includes_default
 
24852
   typedef unsigned long ac__type_sizeof_;
 
24853
int
 
24854
main ()
 
24855
{
 
24856
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
24857
test_array [0] = 0
 
24858
 
 
24859
  ;
 
24860
  return 0;
 
24861
}
 
24862
_ACEOF
 
24863
rm -f conftest.$ac_objext
 
24864
if { (ac_try="$ac_compile"
 
24865
case "(($ac_try" in
 
24866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24867
  *) ac_try_echo=$ac_try;;
 
24868
esac
 
24869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24870
  (eval "$ac_compile") 2>conftest.er1
 
24871
  ac_status=$?
 
24872
  grep -v '^ *+' conftest.er1 >conftest.err
 
24873
  rm -f conftest.er1
 
24874
  cat conftest.err >&5
 
24875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24876
  (exit $ac_status); } && {
 
24877
         test -z "$ac_c_werror_flag" ||
 
24878
         test ! -s conftest.err
 
24879
       } && test -s conftest.$ac_objext; then
 
24880
  ac_hi=$ac_mid
 
24881
else
 
24882
  echo "$as_me: failed program was:" >&5
 
24883
sed 's/^/| /' conftest.$ac_ext >&5
 
24884
 
 
24885
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
24886
fi
 
24887
 
 
24888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24889
done
 
24890
case $ac_lo in
 
24891
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
 
24892
'') if test "$ac_cv_type_unsigned_long" = yes; then
 
24893
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
 
24894
See \`config.log' for more details." >&5
 
24895
echo "$as_me: error: cannot compute sizeof (unsigned long)
 
24896
See \`config.log' for more details." >&2;}
 
24897
   { (exit 77); exit 77; }; }
 
24898
   else
 
24899
     ac_cv_sizeof_unsigned_long=0
 
24900
   fi ;;
 
24901
esac
 
24902
else
 
24903
  cat >conftest.$ac_ext <<_ACEOF
 
24904
/* confdefs.h.  */
 
24905
_ACEOF
 
24906
cat confdefs.h >>conftest.$ac_ext
 
24907
cat >>conftest.$ac_ext <<_ACEOF
 
24908
/* end confdefs.h.  */
 
24909
$ac_includes_default
 
24910
   typedef unsigned long ac__type_sizeof_;
 
24911
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
24912
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
24913
#include <stdio.h>
 
24914
#include <stdlib.h>
 
24915
int
 
24916
main ()
 
24917
{
 
24918
 
 
24919
  FILE *f = fopen ("conftest.val", "w");
 
24920
  if (! f)
 
24921
    return 1;
 
24922
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
24923
    {
 
24924
      long int i = longval ();
 
24925
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
24926
        return 1;
 
24927
      fprintf (f, "%ld\n", i);
 
24928
    }
 
24929
  else
 
24930
    {
 
24931
      unsigned long int i = ulongval ();
 
24932
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
24933
        return 1;
 
24934
      fprintf (f, "%lu\n", i);
 
24935
    }
 
24936
  return ferror (f) || fclose (f) != 0;
 
24937
 
 
24938
  ;
 
24939
  return 0;
 
24940
}
 
24941
_ACEOF
 
24942
rm -f conftest$ac_exeext
 
24943
if { (ac_try="$ac_link"
 
24944
case "(($ac_try" in
 
24945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24946
  *) ac_try_echo=$ac_try;;
 
24947
esac
 
24948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24949
  (eval "$ac_link") 2>&5
 
24950
  ac_status=$?
 
24951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24952
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24953
  { (case "(($ac_try" in
 
24954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24955
  *) ac_try_echo=$ac_try;;
 
24956
esac
 
24957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24958
  (eval "$ac_try") 2>&5
 
24959
  ac_status=$?
 
24960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24961
  (exit $ac_status); }; }; then
 
24962
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
 
24963
else
 
24964
  echo "$as_me: program exited with status $ac_status" >&5
 
24965
echo "$as_me: failed program was:" >&5
 
24966
sed 's/^/| /' conftest.$ac_ext >&5
 
24967
 
 
24968
( exit $ac_status )
 
24969
if test "$ac_cv_type_unsigned_long" = yes; then
 
24970
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
 
24971
See \`config.log' for more details." >&5
 
24972
echo "$as_me: error: cannot compute sizeof (unsigned long)
 
24973
See \`config.log' for more details." >&2;}
 
24974
   { (exit 77); exit 77; }; }
 
24975
   else
 
24976
     ac_cv_sizeof_unsigned_long=0
 
24977
   fi
 
24978
fi
 
24979
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24980
fi
 
24981
rm -f conftest.val
 
24982
fi
 
24983
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
 
24984
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
 
24985
 
 
24986
 
 
24987
 
 
24988
cat >>confdefs.h <<_ACEOF
 
24989
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
 
24990
_ACEOF
 
24991
 
 
24992
 
 
24993
  { echo "$as_me:$LINENO: checking for void *" >&5
 
24994
echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
 
24995
if test "${ac_cv_type_void_p+set}" = set; then
 
24996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24997
else
 
24998
  cat >conftest.$ac_ext <<_ACEOF
 
24999
/* confdefs.h.  */
 
25000
_ACEOF
 
25001
cat confdefs.h >>conftest.$ac_ext
 
25002
cat >>conftest.$ac_ext <<_ACEOF
 
25003
/* end confdefs.h.  */
 
25004
$ac_includes_default
 
25005
typedef void * ac__type_new_;
 
25006
int
 
25007
main ()
 
25008
{
 
25009
if ((ac__type_new_ *) 0)
 
25010
  return 0;
 
25011
if (sizeof (ac__type_new_))
 
25012
  return 0;
 
25013
  ;
 
25014
  return 0;
 
25015
}
 
25016
_ACEOF
 
25017
rm -f conftest.$ac_objext
 
25018
if { (ac_try="$ac_compile"
 
25019
case "(($ac_try" in
 
25020
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25021
  *) ac_try_echo=$ac_try;;
 
25022
esac
 
25023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25024
  (eval "$ac_compile") 2>conftest.er1
 
25025
  ac_status=$?
 
25026
  grep -v '^ *+' conftest.er1 >conftest.err
 
25027
  rm -f conftest.er1
 
25028
  cat conftest.err >&5
 
25029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25030
  (exit $ac_status); } && {
 
25031
         test -z "$ac_c_werror_flag" ||
 
25032
         test ! -s conftest.err
 
25033
       } && test -s conftest.$ac_objext; then
 
25034
  ac_cv_type_void_p=yes
 
25035
else
 
25036
  echo "$as_me: failed program was:" >&5
 
25037
sed 's/^/| /' conftest.$ac_ext >&5
 
25038
 
 
25039
        ac_cv_type_void_p=no
 
25040
fi
 
25041
 
 
25042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25043
fi
 
25044
{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
 
25045
echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
 
25046
 
 
25047
# The cast to long int works around a bug in the HP C Compiler
 
25048
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
25049
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
25050
# This bug is HP SR number 8606223364.
 
25051
{ echo "$as_me:$LINENO: checking size of void *" >&5
 
25052
echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
 
25053
if test "${ac_cv_sizeof_void_p+set}" = set; then
 
25054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25055
else
 
25056
  if test "$cross_compiling" = yes; then
 
25057
  # Depending upon the size, compute the lo and hi bounds.
 
25058
cat >conftest.$ac_ext <<_ACEOF
 
25059
/* confdefs.h.  */
 
25060
_ACEOF
 
25061
cat confdefs.h >>conftest.$ac_ext
 
25062
cat >>conftest.$ac_ext <<_ACEOF
 
25063
/* end confdefs.h.  */
 
25064
$ac_includes_default
 
25065
   typedef void * ac__type_sizeof_;
 
25066
int
 
25067
main ()
 
25068
{
 
25069
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
25070
test_array [0] = 0
 
25071
 
 
25072
  ;
 
25073
  return 0;
 
25074
}
 
25075
_ACEOF
 
25076
rm -f conftest.$ac_objext
 
25077
if { (ac_try="$ac_compile"
 
25078
case "(($ac_try" in
 
25079
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25080
  *) ac_try_echo=$ac_try;;
 
25081
esac
 
25082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25083
  (eval "$ac_compile") 2>conftest.er1
 
25084
  ac_status=$?
 
25085
  grep -v '^ *+' conftest.er1 >conftest.err
 
25086
  rm -f conftest.er1
 
25087
  cat conftest.err >&5
 
25088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25089
  (exit $ac_status); } && {
 
25090
         test -z "$ac_c_werror_flag" ||
 
25091
         test ! -s conftest.err
 
25092
       } && test -s conftest.$ac_objext; then
 
25093
  ac_lo=0 ac_mid=0
 
25094
  while :; do
 
25095
    cat >conftest.$ac_ext <<_ACEOF
 
25096
/* confdefs.h.  */
 
25097
_ACEOF
 
25098
cat confdefs.h >>conftest.$ac_ext
 
25099
cat >>conftest.$ac_ext <<_ACEOF
 
25100
/* end confdefs.h.  */
 
25101
$ac_includes_default
 
25102
   typedef void * ac__type_sizeof_;
 
25103
int
 
25104
main ()
 
25105
{
 
25106
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
25107
test_array [0] = 0
 
25108
 
 
25109
  ;
 
25110
  return 0;
 
25111
}
 
25112
_ACEOF
 
25113
rm -f conftest.$ac_objext
 
25114
if { (ac_try="$ac_compile"
 
25115
case "(($ac_try" in
 
25116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25117
  *) ac_try_echo=$ac_try;;
 
25118
esac
 
25119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25120
  (eval "$ac_compile") 2>conftest.er1
 
25121
  ac_status=$?
 
25122
  grep -v '^ *+' conftest.er1 >conftest.err
 
25123
  rm -f conftest.er1
 
25124
  cat conftest.err >&5
 
25125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25126
  (exit $ac_status); } && {
 
25127
         test -z "$ac_c_werror_flag" ||
 
25128
         test ! -s conftest.err
 
25129
       } && test -s conftest.$ac_objext; then
 
25130
  ac_hi=$ac_mid; break
 
25131
else
 
25132
  echo "$as_me: failed program was:" >&5
 
25133
sed 's/^/| /' conftest.$ac_ext >&5
 
25134
 
 
25135
        ac_lo=`expr $ac_mid + 1`
 
25136
                        if test $ac_lo -le $ac_mid; then
 
25137
                          ac_lo= ac_hi=
 
25138
                          break
 
25139
                        fi
 
25140
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
25141
fi
 
25142
 
 
25143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25144
  done
 
25145
else
 
25146
  echo "$as_me: failed program was:" >&5
 
25147
sed 's/^/| /' conftest.$ac_ext >&5
 
25148
 
 
25149
        cat >conftest.$ac_ext <<_ACEOF
 
25150
/* confdefs.h.  */
 
25151
_ACEOF
 
25152
cat confdefs.h >>conftest.$ac_ext
 
25153
cat >>conftest.$ac_ext <<_ACEOF
 
25154
/* end confdefs.h.  */
 
25155
$ac_includes_default
 
25156
   typedef void * ac__type_sizeof_;
 
25157
int
 
25158
main ()
 
25159
{
 
25160
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
25161
test_array [0] = 0
 
25162
 
 
25163
  ;
 
25164
  return 0;
 
25165
}
 
25166
_ACEOF
 
25167
rm -f conftest.$ac_objext
 
25168
if { (ac_try="$ac_compile"
 
25169
case "(($ac_try" in
 
25170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25171
  *) ac_try_echo=$ac_try;;
 
25172
esac
 
25173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25174
  (eval "$ac_compile") 2>conftest.er1
 
25175
  ac_status=$?
 
25176
  grep -v '^ *+' conftest.er1 >conftest.err
 
25177
  rm -f conftest.er1
 
25178
  cat conftest.err >&5
 
25179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25180
  (exit $ac_status); } && {
 
25181
         test -z "$ac_c_werror_flag" ||
 
25182
         test ! -s conftest.err
 
25183
       } && test -s conftest.$ac_objext; then
 
25184
  ac_hi=-1 ac_mid=-1
 
25185
  while :; do
 
25186
    cat >conftest.$ac_ext <<_ACEOF
 
25187
/* confdefs.h.  */
 
25188
_ACEOF
 
25189
cat confdefs.h >>conftest.$ac_ext
 
25190
cat >>conftest.$ac_ext <<_ACEOF
 
25191
/* end confdefs.h.  */
 
25192
$ac_includes_default
 
25193
   typedef void * ac__type_sizeof_;
 
25194
int
 
25195
main ()
 
25196
{
 
25197
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
25198
test_array [0] = 0
 
25199
 
 
25200
  ;
 
25201
  return 0;
 
25202
}
 
25203
_ACEOF
 
25204
rm -f conftest.$ac_objext
 
25205
if { (ac_try="$ac_compile"
 
25206
case "(($ac_try" in
 
25207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25208
  *) ac_try_echo=$ac_try;;
 
25209
esac
 
25210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25211
  (eval "$ac_compile") 2>conftest.er1
 
25212
  ac_status=$?
 
25213
  grep -v '^ *+' conftest.er1 >conftest.err
 
25214
  rm -f conftest.er1
 
25215
  cat conftest.err >&5
 
25216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25217
  (exit $ac_status); } && {
 
25218
         test -z "$ac_c_werror_flag" ||
 
25219
         test ! -s conftest.err
 
25220
       } && test -s conftest.$ac_objext; then
 
25221
  ac_lo=$ac_mid; break
 
25222
else
 
25223
  echo "$as_me: failed program was:" >&5
 
25224
sed 's/^/| /' conftest.$ac_ext >&5
 
25225
 
 
25226
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
25227
                        if test $ac_mid -le $ac_hi; then
 
25228
                          ac_lo= ac_hi=
 
25229
                          break
 
25230
                        fi
 
25231
                        ac_mid=`expr 2 '*' $ac_mid`
 
25232
fi
 
25233
 
 
25234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25235
  done
 
25236
else
 
25237
  echo "$as_me: failed program was:" >&5
 
25238
sed 's/^/| /' conftest.$ac_ext >&5
 
25239
 
 
25240
        ac_lo= ac_hi=
 
25241
fi
 
25242
 
 
25243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25244
fi
 
25245
 
 
25246
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25247
# Binary search between lo and hi bounds.
 
25248
while test "x$ac_lo" != "x$ac_hi"; do
 
25249
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
25250
  cat >conftest.$ac_ext <<_ACEOF
 
25251
/* confdefs.h.  */
 
25252
_ACEOF
 
25253
cat confdefs.h >>conftest.$ac_ext
 
25254
cat >>conftest.$ac_ext <<_ACEOF
 
25255
/* end confdefs.h.  */
 
25256
$ac_includes_default
 
25257
   typedef void * ac__type_sizeof_;
 
25258
int
 
25259
main ()
 
25260
{
 
25261
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
25262
test_array [0] = 0
 
25263
 
 
25264
  ;
 
25265
  return 0;
 
25266
}
 
25267
_ACEOF
 
25268
rm -f conftest.$ac_objext
 
25269
if { (ac_try="$ac_compile"
 
25270
case "(($ac_try" in
 
25271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25272
  *) ac_try_echo=$ac_try;;
 
25273
esac
 
25274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25275
  (eval "$ac_compile") 2>conftest.er1
 
25276
  ac_status=$?
 
25277
  grep -v '^ *+' conftest.er1 >conftest.err
 
25278
  rm -f conftest.er1
 
25279
  cat conftest.err >&5
 
25280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25281
  (exit $ac_status); } && {
 
25282
         test -z "$ac_c_werror_flag" ||
 
25283
         test ! -s conftest.err
 
25284
       } && test -s conftest.$ac_objext; then
 
25285
  ac_hi=$ac_mid
 
25286
else
 
25287
  echo "$as_me: failed program was:" >&5
 
25288
sed 's/^/| /' conftest.$ac_ext >&5
 
25289
 
 
25290
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
25291
fi
 
25292
 
 
25293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25294
done
 
25295
case $ac_lo in
 
25296
?*) ac_cv_sizeof_void_p=$ac_lo;;
 
25297
'') if test "$ac_cv_type_void_p" = yes; then
 
25298
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
 
25299
See \`config.log' for more details." >&5
 
25300
echo "$as_me: error: cannot compute sizeof (void *)
 
25301
See \`config.log' for more details." >&2;}
 
25302
   { (exit 77); exit 77; }; }
 
25303
   else
 
25304
     ac_cv_sizeof_void_p=0
 
25305
   fi ;;
 
25306
esac
 
25307
else
 
25308
  cat >conftest.$ac_ext <<_ACEOF
 
25309
/* confdefs.h.  */
 
25310
_ACEOF
 
25311
cat confdefs.h >>conftest.$ac_ext
 
25312
cat >>conftest.$ac_ext <<_ACEOF
 
25313
/* end confdefs.h.  */
 
25314
$ac_includes_default
 
25315
   typedef void * ac__type_sizeof_;
 
25316
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
25317
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
25318
#include <stdio.h>
 
25319
#include <stdlib.h>
 
25320
int
 
25321
main ()
 
25322
{
 
25323
 
 
25324
  FILE *f = fopen ("conftest.val", "w");
 
25325
  if (! f)
 
25326
    return 1;
 
25327
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
25328
    {
 
25329
      long int i = longval ();
 
25330
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
25331
        return 1;
 
25332
      fprintf (f, "%ld\n", i);
 
25333
    }
 
25334
  else
 
25335
    {
 
25336
      unsigned long int i = ulongval ();
 
25337
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
25338
        return 1;
 
25339
      fprintf (f, "%lu\n", i);
 
25340
    }
 
25341
  return ferror (f) || fclose (f) != 0;
 
25342
 
 
25343
  ;
 
25344
  return 0;
 
25345
}
 
25346
_ACEOF
 
25347
rm -f conftest$ac_exeext
 
25348
if { (ac_try="$ac_link"
 
25349
case "(($ac_try" in
 
25350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25351
  *) ac_try_echo=$ac_try;;
 
25352
esac
 
25353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25354
  (eval "$ac_link") 2>&5
 
25355
  ac_status=$?
 
25356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25357
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25358
  { (case "(($ac_try" in
 
25359
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25360
  *) ac_try_echo=$ac_try;;
 
25361
esac
 
25362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25363
  (eval "$ac_try") 2>&5
 
25364
  ac_status=$?
 
25365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25366
  (exit $ac_status); }; }; then
 
25367
  ac_cv_sizeof_void_p=`cat conftest.val`
 
25368
else
 
25369
  echo "$as_me: program exited with status $ac_status" >&5
 
25370
echo "$as_me: failed program was:" >&5
 
25371
sed 's/^/| /' conftest.$ac_ext >&5
 
25372
 
 
25373
( exit $ac_status )
 
25374
if test "$ac_cv_type_void_p" = yes; then
 
25375
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
 
25376
See \`config.log' for more details." >&5
 
25377
echo "$as_me: error: cannot compute sizeof (void *)
 
25378
See \`config.log' for more details." >&2;}
 
25379
   { (exit 77); exit 77; }; }
 
25380
   else
 
25381
     ac_cv_sizeof_void_p=0
 
25382
   fi
 
25383
fi
 
25384
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25385
fi
 
25386
rm -f conftest.val
 
25387
fi
 
25388
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
 
25389
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
 
25390
 
 
25391
 
 
25392
 
 
25393
cat >>confdefs.h <<_ACEOF
 
25394
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
25395
_ACEOF
 
25396
 
 
25397
 
 
25398
  { echo "$as_me:$LINENO: checking for nl_langinfo and THOUSANDS_SEP" >&5
 
25399
echo $ECHO_N "checking for nl_langinfo and THOUSANDS_SEP... $ECHO_C" >&6; }
 
25400
if test "${estream_cv_langinfo_thousands_sep+set}" = set; then
 
25401
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25402
else
 
25403
  cat >conftest.$ac_ext <<_ACEOF
 
25404
/* confdefs.h.  */
 
25405
_ACEOF
 
25406
cat confdefs.h >>conftest.$ac_ext
 
25407
cat >>conftest.$ac_ext <<_ACEOF
 
25408
/* end confdefs.h.  */
 
25409
#include <langinfo.h>
 
25410
int
 
25411
main ()
 
25412
{
 
25413
char* cs = nl_langinfo(THOUSANDS_SEP); return !cs;
 
25414
  ;
 
25415
  return 0;
 
25416
}
 
25417
_ACEOF
 
25418
rm -f conftest.$ac_objext conftest$ac_exeext
 
25419
if { (ac_try="$ac_link"
 
25420
case "(($ac_try" in
 
25421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25422
  *) ac_try_echo=$ac_try;;
 
25423
esac
 
25424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25425
  (eval "$ac_link") 2>conftest.er1
 
25426
  ac_status=$?
 
25427
  grep -v '^ *+' conftest.er1 >conftest.err
 
25428
  rm -f conftest.er1
 
25429
  cat conftest.err >&5
 
25430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25431
  (exit $ac_status); } && {
 
25432
         test -z "$ac_c_werror_flag" ||
 
25433
         test ! -s conftest.err
 
25434
       } && test -s conftest$ac_exeext &&
 
25435
       $as_test_x conftest$ac_exeext; then
 
25436
  estream_cv_langinfo_thousands_sep=yes
 
25437
else
 
25438
  echo "$as_me: failed program was:" >&5
 
25439
sed 's/^/| /' conftest.$ac_ext >&5
 
25440
 
 
25441
        estream_cv_langinfo_thousands_sep=no
 
25442
fi
 
25443
 
 
25444
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
25445
      conftest$ac_exeext conftest.$ac_ext
 
25446
 
 
25447
fi
 
25448
{ echo "$as_me:$LINENO: result: $estream_cv_langinfo_thousands_sep" >&5
 
25449
echo "${ECHO_T}$estream_cv_langinfo_thousands_sep" >&6; }
 
25450
  if test $estream_cv_langinfo_thousands_sep = yes; then
 
25451
 
 
25452
cat >>confdefs.h <<\_ACEOF
 
25453
#define HAVE_LANGINFO_THOUSANDS_SEP 1
 
25454
_ACEOF
 
25455
 
 
25456
  fi
 
25457
 
 
25458
 
 
25459
 
 
25460
  { echo "$as_me:$LINENO: checking system features for estream" >&5
 
25461
echo "$as_me: checking system features for estream" >&6;}
 
25462
 
 
25463
 
25759
25464
 
25760
25465
 
25761
25466
#
25783
25488
     tmp=", "
25784
25489
     missing_pth=yes
25785
25490
  fi
 
25491
  if test $have_libusb = no; then
 
25492
     build_scdaemon_extra="${tmp}without internal CCID driver"
 
25493
     tmp=", "
 
25494
  fi
25786
25495
  if test -n "$build_scdaemon_extra"; then
25787
25496
     build_scdaemon_extra="(${build_scdaemon_extra})"
25788
25497
  fi
25793
25502
  build_gpg=no
25794
25503
  build_gpgsm=no
25795
25504
  build_scdaemon=no
 
25505
  build_tools=no
 
25506
  build_doc=no
25796
25507
fi
25797
25508
 
25798
25509
 
25799
 
 
25800
 
 
25801
 
if test "$build_gpg" = "yes"; then
 
25510
 if test "$build_gpg" = "yes"; then
25802
25511
  BUILD_GPG_TRUE=
25803
25512
  BUILD_GPG_FALSE='#'
25804
25513
else
25806
25515
  BUILD_GPG_FALSE=
25807
25516
fi
25808
25517
 
25809
 
 
25810
 
 
25811
 
if test "$build_gpgsm" = "yes"; then
 
25518
 if test "$build_gpgsm" = "yes"; then
25812
25519
  BUILD_GPGSM_TRUE=
25813
25520
  BUILD_GPGSM_FALSE='#'
25814
25521
else
25816
25523
  BUILD_GPGSM_FALSE=
25817
25524
fi
25818
25525
 
25819
 
 
25820
 
 
25821
 
if test "$build_agent" = "yes"; then
 
25526
 if test "$build_agent" = "yes"; then
25822
25527
  BUILD_AGENT_TRUE=
25823
25528
  BUILD_AGENT_FALSE='#'
25824
25529
else
25826
25531
  BUILD_AGENT_FALSE=
25827
25532
fi
25828
25533
 
25829
 
 
25830
 
 
25831
 
if test "$build_scdaemon" = "yes"; then
 
25534
 if test "$build_scdaemon" = "yes"; then
25832
25535
  BUILD_SCDAEMON_TRUE=
25833
25536
  BUILD_SCDAEMON_FALSE='#'
25834
25537
else
25836
25539
  BUILD_SCDAEMON_FALSE=
25837
25540
fi
25838
25541
 
25839
 
 
25840
 
 
25841
 
if test "$build_symcryptrun" = "yes"; then
 
25542
 if test "$build_tools" = "yes"; then
 
25543
  BUILD_TOOLS_TRUE=
 
25544
  BUILD_TOOLS_FALSE='#'
 
25545
else
 
25546
  BUILD_TOOLS_TRUE='#'
 
25547
  BUILD_TOOLS_FALSE=
 
25548
fi
 
25549
 
 
25550
 if test "$build_doc" = "yes"; then
 
25551
  BUILD_DOC_TRUE=
 
25552
  BUILD_DOC_FALSE='#'
 
25553
else
 
25554
  BUILD_DOC_TRUE='#'
 
25555
  BUILD_DOC_FALSE=
 
25556
fi
 
25557
 
 
25558
 if test "$build_symcryptrun" = "yes"; then
25842
25559
  BUILD_SYMCRYPTRUN_TRUE=
25843
25560
  BUILD_SYMCRYPTRUN_FALSE='#'
25844
25561
else
25847
25564
fi
25848
25565
 
25849
25566
 
 
25567
 if test x$cross_compiling = xno -a "$build_gpg" = yes ; then
 
25568
  RUN_GPG_TESTS_TRUE=
 
25569
  RUN_GPG_TESTS_FALSE='#'
 
25570
else
 
25571
  RUN_GPG_TESTS_TRUE='#'
 
25572
  RUN_GPG_TESTS_FALSE=
 
25573
fi
 
25574
 
25850
25575
 
25851
25576
 
25852
25577
#
25878
25603
*** You need libgcrypt to build this program.
25879
25604
**  This library is for example available at
25880
25605
***   ftp://ftp.gnupg.org/gcrypt/libgcrypt/
25881
 
*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API) is required.)
 
25606
*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API is required.)
25882
25607
***" >&5
25883
25608
echo "$as_me:
25884
25609
***
25885
25610
*** You need libgcrypt to build this program.
25886
25611
**  This library is for example available at
25887
25612
***   ftp://ftp.gnupg.org/gcrypt/libgcrypt/
25888
 
*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API) is required.)
 
25613
*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API is required.)
25889
25614
***" >&6;}
25890
25615
fi
25891
25616
if test "$have_libassuan" = "no"; then
25892
25617
   die=yes
25893
25618
   { echo "$as_me:$LINENO:
25894
25619
***
25895
 
*** You need libassuan to build this program.
 
25620
*** You need libassuan with Pth support to build this program.
25896
25621
*** This library is for example available at
25897
 
***   ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/
25898
 
*** (at least version $NEED_LIBASSUAN_VERSION is required).
 
25622
***   ftp://ftp.gnupg.org/gcrypt/libassuan/
 
25623
*** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
25899
25624
***" >&5
25900
25625
echo "$as_me:
25901
25626
***
25902
 
*** You need libassuan to build this program.
 
25627
*** You need libassuan with Pth support to build this program.
25903
25628
*** This library is for example available at
25904
 
***   ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/
25905
 
*** (at least version $NEED_LIBASSUAN_VERSION is required).
 
25629
***   ftp://ftp.gnupg.org/gcrypt/libassuan/
 
25630
*** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
25906
25631
***" >&6;}
25907
25632
fi
25908
25633
if test "$have_ksba" = "no"; then
25910
25635
***
25911
25636
*** You need libksba to build this program.
25912
25637
*** This library is for example available at
25913
 
***   ftp://ftp.gnupg.org/gcrypt/alpha/libksba/
25914
 
*** (at least version $NEED_KSBA_VERSION is required).
 
25638
***   ftp://ftp.gnupg.org/gcrypt/libksba/
 
25639
*** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
25915
25640
***" >&5
25916
25641
echo "$as_me:
25917
25642
***
25918
25643
*** You need libksba to build this program.
25919
25644
*** This library is for example available at
25920
 
***   ftp://ftp.gnupg.org/gcrypt/alpha/libksba/
25921
 
*** (at least version $NEED_KSBA_VERSION is required).
 
25645
***   ftp://ftp.gnupg.org/gcrypt/libksba/
 
25646
*** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
25922
25647
***" >&6;}
25923
25648
fi
25924
25649
if test "$missing_pth" = "yes"; then
25930
25655
***   ftp://ftp.gnu.org/gnu/pth/
25931
25656
*** On a Debian GNU/Linux system you can install it using
25932
25657
***   apt-get install libpth-dev
 
25658
*** To build GnuPG for Windows you need to use the W32PTH
 
25659
*** package; available at:
 
25660
***   ftp://ftp.g10code.com/g10code/w32pth/
25933
25661
***" >&5
25934
25662
echo "$as_me:
25935
25663
***
25939
25667
***   ftp://ftp.gnu.org/gnu/pth/
25940
25668
*** On a Debian GNU/Linux system you can install it using
25941
25669
***   apt-get install libpth-dev
 
25670
*** To build GnuPG for Windows you need to use the W32PTH
 
25671
*** package; available at:
 
25672
***   ftp://ftp.g10code.com/g10code/w32pth/
25942
25673
***" >&6;}
25943
25674
   die=yes
25944
25675
fi
25959
25690
 
25960
25691
 
25961
25692
 
25962
 
                                                                                                                                                      ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in intl/Makefile gl/Makefile jnlib/Makefile common/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tools/Makefile doc/Makefile tests/Makefile"
 
25693
ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in gl/Makefile include/Makefile jnlib/Makefile common/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile keyserver/Makefile keyserver/gpg2keys_mailto keyserver/gpg2keys_test tools/gpg-zip tools/Makefile doc/Makefile tests/Makefile tests/openpgp/Makefile tests/pkits/Makefile"
25963
25694
 
25964
25695
cat >confcache <<\_ACEOF
25965
25696
# This file is a shell script that caches the results of configure
25979
25710
 
25980
25711
# The following way of writing the cache mishandles newlines in values,
25981
25712
# but we know of no workaround that is simple, portable, and efficient.
25982
 
# So, don't put newlines in cache variables' values.
 
25713
# So, we kill variables containing newlines.
25983
25714
# Ultrix sh set writes to stderr and can't be redirected directly,
25984
25715
# and sets the high bit in the cache file unless we assign to the vars.
25985
 
{
 
25716
(
 
25717
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
25718
    eval ac_val=\$$ac_var
 
25719
    case $ac_val in #(
 
25720
    *${as_nl}*)
 
25721
      case $ac_var in #(
 
25722
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
25723
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
25724
      esac
 
25725
      case $ac_var in #(
 
25726
      _ | IFS | as_nl) ;; #(
 
25727
      *) $as_unset $ac_var ;;
 
25728
      esac ;;
 
25729
    esac
 
25730
  done
 
25731
 
25986
25732
  (set) 2>&1 |
25987
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
25988
 
    *ac_space=\ *)
 
25733
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
25734
    *${as_nl}ac_space=\ *)
25989
25735
      # `set' does not quote correctly, so add quotes (double-quote
25990
25736
      # substitution turns \\\\ into \\, and sed turns \\ into \).
25991
25737
      sed -n \
25992
25738
        "s/'/'\\\\''/g;
25993
25739
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25994
 
      ;;
 
25740
      ;; #(
25995
25741
    *)
25996
25742
      # `set' quotes correctly as required by POSIX, so do not add quotes.
25997
 
      sed -n \
25998
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
25743
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25999
25744
      ;;
26000
 
    esac;
26001
 
} |
 
25745
    esac |
 
25746
    sort
 
25747
) |
26002
25748
  sed '
 
25749
     /^ac_cv_env_/b end
26003
25750
     t clear
26004
 
     : clear
 
25751
     :clear
26005
25752
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26006
25753
     t end
26007
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26008
 
     : end' >>confcache
26009
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
26010
 
  if test -w $cache_file; then
26011
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
25754
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
25755
     :end' >>confcache
 
25756
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
25757
  if test -w "$cache_file"; then
 
25758
    test "x$cache_file" != "x/dev/null" &&
 
25759
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
25760
echo "$as_me: updating cache $cache_file" >&6;}
26012
25761
    cat confcache >$cache_file
26013
25762
  else
26014
 
    echo "not updating unwritable cache $cache_file"
 
25763
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
25764
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26015
25765
  fi
26016
25766
fi
26017
25767
rm -f confcache
26020
25770
# Let make expand exec_prefix.
26021
25771
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26022
25772
 
26023
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
26024
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26025
 
# trailing colons and then remove the whole line if VPATH becomes empty
26026
 
# (actually we leave an empty line to preserve line numbers).
26027
 
if test "x$srcdir" = x.; then
26028
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
26029
 
s/:*\$(srcdir):*/:/;
26030
 
s/:*\${srcdir}:*/:/;
26031
 
s/:*@srcdir@:*/:/;
26032
 
s/^\([^=]*=[     ]*\):*/\1/;
26033
 
s/:*$//;
26034
 
s/^[^=]*=[       ]*$//;
26035
 
}'
26036
 
fi
26037
 
 
26038
25773
DEFS=-DHAVE_CONFIG_H
26039
25774
 
26040
25775
ac_libobjs=
26041
25776
ac_ltlibobjs=
26042
25777
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26043
25778
  # 1. Remove the extension, and $U if already installed.
26044
 
  ac_i=`echo "$ac_i" |
26045
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26046
 
  # 2. Add them.
26047
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26048
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
25779
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
25780
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
25781
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
25782
  #    will be set to the directory where LIBOBJS objects are built.
 
25783
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
25784
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26049
25785
done
26050
25786
LIBOBJS=$ac_libobjs
26051
25787
 
26108
25844
Usually this means the macro was only invoked conditionally." >&2;}
26109
25845
   { (exit 1); exit 1; }; }
26110
25846
fi
26111
 
if test -z "${HAVE_DOCBOOK_TO_MAN_TRUE}" && test -z "${HAVE_DOCBOOK_TO_MAN_FALSE}"; then
26112
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCBOOK_TO_MAN\" was never defined.
26113
 
Usually this means the macro was only invoked conditionally." >&5
26114
 
echo "$as_me: error: conditional \"HAVE_DOCBOOK_TO_MAN\" was never defined.
26115
 
Usually this means the macro was only invoked conditionally." >&2;}
26116
 
   { (exit 1); exit 1; }; }
26117
 
fi
26118
25847
if test -z "${WORKING_FAQPROG_TRUE}" && test -z "${WORKING_FAQPROG_FALSE}"; then
26119
25848
  { { echo "$as_me:$LINENO: error: conditional \"WORKING_FAQPROG\" was never defined.
26120
25849
Usually this means the macro was only invoked conditionally." >&5
26122
25851
Usually this means the macro was only invoked conditionally." >&2;}
26123
25852
   { (exit 1); exit 1; }; }
26124
25853
fi
26125
 
if test -z "${HAVE_DOCBOOK_TO_TEXI_TRUE}" && test -z "${HAVE_DOCBOOK_TO_TEXI_FALSE}"; then
26126
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCBOOK_TO_TEXI\" was never defined.
 
25854
if test -z "${HAVE_USTAR_TRUE}" && test -z "${HAVE_USTAR_FALSE}"; then
 
25855
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_USTAR\" was never defined.
26127
25856
Usually this means the macro was only invoked conditionally." >&5
26128
 
echo "$as_me: error: conditional \"HAVE_DOCBOOK_TO_TEXI\" was never defined.
 
25857
echo "$as_me: error: conditional \"HAVE_USTAR\" was never defined.
26129
25858
Usually this means the macro was only invoked conditionally." >&2;}
26130
25859
   { (exit 1); exit 1; }; }
26131
25860
fi
26136
25865
Usually this means the macro was only invoked conditionally." >&2;}
26137
25866
   { (exit 1); exit 1; }; }
26138
25867
fi
 
25868
if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
 
25869
  { { echo "$as_me:$LINENO: error: conditional \"USE_SIMPLE_GETTEXT\" was never defined.
 
25870
Usually this means the macro was only invoked conditionally." >&5
 
25871
echo "$as_me: error: conditional \"USE_SIMPLE_GETTEXT\" was never defined.
 
25872
Usually this means the macro was only invoked conditionally." >&2;}
 
25873
   { (exit 1); exit 1; }; }
 
25874
fi
26139
25875
if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
26140
25876
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
26141
25877
Usually this means the macro was only invoked conditionally." >&5
26143
25879
Usually this means the macro was only invoked conditionally." >&2;}
26144
25880
   { (exit 1); exit 1; }; }
26145
25881
fi
 
25882
if test -z "${USE_DNS_SRV_TRUE}" && test -z "${USE_DNS_SRV_FALSE}"; then
 
25883
  { { echo "$as_me:$LINENO: error: conditional \"USE_DNS_SRV\" was never defined.
 
25884
Usually this means the macro was only invoked conditionally." >&5
 
25885
echo "$as_me: error: conditional \"USE_DNS_SRV\" was never defined.
 
25886
Usually this means the macro was only invoked conditionally." >&2;}
 
25887
   { (exit 1); exit 1; }; }
 
25888
fi
 
25889
if test -z "${FAKE_CURL_TRUE}" && test -z "${FAKE_CURL_FALSE}"; then
 
25890
  { { echo "$as_me:$LINENO: error: conditional \"FAKE_CURL\" was never defined.
 
25891
Usually this means the macro was only invoked conditionally." >&5
 
25892
echo "$as_me: error: conditional \"FAKE_CURL\" was never defined.
 
25893
Usually this means the macro was only invoked conditionally." >&2;}
 
25894
   { (exit 1); exit 1; }; }
 
25895
fi
26146
25896
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
26147
25897
  { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
26148
25898
Usually this means the macro was only invoked conditionally." >&5
26150
25900
Usually this means the macro was only invoked conditionally." >&2;}
26151
25901
   { (exit 1); exit 1; }; }
26152
25902
fi
26153
 
if test -z "${RUN_PKITS_TESTS_TRUE}" && test -z "${RUN_PKITS_TESTS_FALSE}"; then
26154
 
  { { echo "$as_me:$LINENO: error: conditional \"RUN_PKITS_TESTS\" was never defined.
26155
 
Usually this means the macro was only invoked conditionally." >&5
26156
 
echo "$as_me: error: conditional \"RUN_PKITS_TESTS\" was never defined.
 
25903
if test -z "${DISABLE_REGEX_TRUE}" && test -z "${DISABLE_REGEX_FALSE}"; then
 
25904
  { { echo "$as_me:$LINENO: error: conditional \"DISABLE_REGEX\" was never defined.
 
25905
Usually this means the macro was only invoked conditionally." >&5
 
25906
echo "$as_me: error: conditional \"DISABLE_REGEX\" was never defined.
 
25907
Usually this means the macro was only invoked conditionally." >&2;}
 
25908
   { (exit 1); exit 1; }; }
 
25909
fi
 
25910
if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
 
25911
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
 
25912
Usually this means the macro was only invoked conditionally." >&5
 
25913
echo "$as_me: error: conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
26157
25914
Usually this means the macro was only invoked conditionally." >&2;}
26158
25915
   { (exit 1); exit 1; }; }
26159
25916
fi
26192
25949
Usually this means the macro was only invoked conditionally." >&2;}
26193
25950
   { (exit 1); exit 1; }; }
26194
25951
fi
 
25952
if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
 
25953
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_TOOLS\" was never defined.
 
25954
Usually this means the macro was only invoked conditionally." >&5
 
25955
echo "$as_me: error: conditional \"BUILD_TOOLS\" was never defined.
 
25956
Usually this means the macro was only invoked conditionally." >&2;}
 
25957
   { (exit 1); exit 1; }; }
 
25958
fi
 
25959
if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
 
25960
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOC\" was never defined.
 
25961
Usually this means the macro was only invoked conditionally." >&5
 
25962
echo "$as_me: error: conditional \"BUILD_DOC\" was never defined.
 
25963
Usually this means the macro was only invoked conditionally." >&2;}
 
25964
   { (exit 1); exit 1; }; }
 
25965
fi
26195
25966
if test -z "${BUILD_SYMCRYPTRUN_TRUE}" && test -z "${BUILD_SYMCRYPTRUN_FALSE}"; then
26196
25967
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYMCRYPTRUN\" was never defined.
26197
25968
Usually this means the macro was only invoked conditionally." >&5
26199
25970
Usually this means the macro was only invoked conditionally." >&2;}
26200
25971
   { (exit 1); exit 1; }; }
26201
25972
fi
 
25973
if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
 
25974
  { { echo "$as_me:$LINENO: error: conditional \"RUN_GPG_TESTS\" was never defined.
 
25975
Usually this means the macro was only invoked conditionally." >&5
 
25976
echo "$as_me: error: conditional \"RUN_GPG_TESTS\" was never defined.
 
25977
Usually this means the macro was only invoked conditionally." >&2;}
 
25978
   { (exit 1); exit 1; }; }
 
25979
fi
26202
25980
 
26203
25981
: ${CONFIG_STATUS=./config.status}
26204
25982
ac_clean_files_save=$ac_clean_files
26223
26001
## M4sh Initialization.  ##
26224
26002
## --------------------- ##
26225
26003
 
26226
 
# Be Bourne compatible
 
26004
# Be more Bourne compatible
 
26005
DUALCASE=1; export DUALCASE # for MKS sh
26227
26006
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26228
26007
  emulate sh
26229
26008
  NULLCMD=:
26230
26009
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26231
26010
  # is contrary to our usage.  Disable this feature.
26232
26011
  alias -g '${1+"$@"}'='"$@"'
26233
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26234
 
  set -o posix
26235
 
fi
26236
 
DUALCASE=1; export DUALCASE # for MKS sh
 
26012
  setopt NO_GLOB_SUBST
 
26013
else
 
26014
  case `(set -o) 2>/dev/null` in
 
26015
  *posix*) set -o posix ;;
 
26016
esac
 
26017
 
 
26018
fi
 
26019
 
 
26020
 
 
26021
 
 
26022
 
 
26023
# PATH needs CR
 
26024
# Avoid depending upon Character Ranges.
 
26025
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
26026
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
26027
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
26028
as_cr_digits='0123456789'
 
26029
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
26030
 
 
26031
# The user is always right.
 
26032
if test "${PATH_SEPARATOR+set}" != set; then
 
26033
  echo "#! /bin/sh" >conf$$.sh
 
26034
  echo  "exit 0"   >>conf$$.sh
 
26035
  chmod +x conf$$.sh
 
26036
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
26037
    PATH_SEPARATOR=';'
 
26038
  else
 
26039
    PATH_SEPARATOR=:
 
26040
  fi
 
26041
  rm -f conf$$.sh
 
26042
fi
26237
26043
 
26238
26044
# Support unset when possible.
26239
26045
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26243
26049
fi
26244
26050
 
26245
26051
 
 
26052
# IFS
 
26053
# We need space, tab and new line, in precisely that order.  Quoting is
 
26054
# there to prevent editors from complaining about space-tab.
 
26055
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
26056
# splitting by setting IFS to empty value.)
 
26057
as_nl='
 
26058
'
 
26059
IFS=" ""        $as_nl"
 
26060
 
 
26061
# Find who we are.  Look in the path if we contain no directory separator.
 
26062
case $0 in
 
26063
  *[\\/]* ) as_myself=$0 ;;
 
26064
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
26065
for as_dir in $PATH
 
26066
do
 
26067
  IFS=$as_save_IFS
 
26068
  test -z "$as_dir" && as_dir=.
 
26069
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
26070
done
 
26071
IFS=$as_save_IFS
 
26072
 
 
26073
     ;;
 
26074
esac
 
26075
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
26076
# in which case we are not to be found in the path.
 
26077
if test "x$as_myself" = x; then
 
26078
  as_myself=$0
 
26079
fi
 
26080
if test ! -f "$as_myself"; then
 
26081
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
26082
  { (exit 1); exit 1; }
 
26083
fi
 
26084
 
26246
26085
# Work around bugs in pre-3.0 UWIN ksh.
26247
 
$as_unset ENV MAIL MAILPATH
 
26086
for as_var in ENV MAIL MAILPATH
 
26087
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
26088
done
26248
26089
PS1='$ '
26249
26090
PS2='> '
26250
26091
PS4='+ '
26258
26099
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26259
26100
    eval $as_var=C; export $as_var
26260
26101
  else
26261
 
    $as_unset $as_var
 
26102
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26262
26103
  fi
26263
26104
done
26264
26105
 
26265
26106
# Required to use basename.
26266
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
26107
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
26108
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26267
26109
  as_expr=expr
26268
26110
else
26269
26111
  as_expr=false
26270
26112
fi
26271
26113
 
26272
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
26114
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26273
26115
  as_basename=basename
26274
26116
else
26275
26117
  as_basename=false
26277
26119
 
26278
26120
 
26279
26121
# Name of the executable.
26280
 
as_me=`$as_basename "$0" ||
 
26122
as_me=`$as_basename -- "$0" ||
26281
26123
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26282
26124
         X"$0" : 'X\(//\)$' \| \
26283
 
         X"$0" : 'X\(/\)$' \| \
26284
 
         .     : '\(.\)' 2>/dev/null ||
 
26125
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26285
26126
echo X/"$0" |
26286
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26287
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
26288
 
          /^X\/\(\/\).*/{ s//\1/; q; }
26289
 
          s/.*/./; q'`
26290
 
 
26291
 
 
26292
 
# PATH needs CR, and LINENO needs CR and PATH.
26293
 
# Avoid depending upon Character Ranges.
26294
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26295
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26296
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26297
 
as_cr_digits='0123456789'
26298
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
26299
 
 
26300
 
# The user is always right.
26301
 
if test "${PATH_SEPARATOR+set}" != set; then
26302
 
  echo "#! /bin/sh" >conf$$.sh
26303
 
  echo  "exit 0"   >>conf$$.sh
26304
 
  chmod +x conf$$.sh
26305
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26306
 
    PATH_SEPARATOR=';'
26307
 
  else
26308
 
    PATH_SEPARATOR=:
26309
 
  fi
26310
 
  rm -f conf$$.sh
26311
 
fi
26312
 
 
26313
 
 
26314
 
  as_lineno_1=$LINENO
26315
 
  as_lineno_2=$LINENO
26316
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26317
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
26318
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26319
 
  # Find who we are.  Look in the path if we contain no path at all
26320
 
  # relative or not.
26321
 
  case $0 in
26322
 
    *[\\/]* ) as_myself=$0 ;;
26323
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26324
 
for as_dir in $PATH
26325
 
do
26326
 
  IFS=$as_save_IFS
26327
 
  test -z "$as_dir" && as_dir=.
26328
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26329
 
done
26330
 
 
26331
 
       ;;
26332
 
  esac
26333
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
26334
 
  # in which case we are not to be found in the path.
26335
 
  if test "x$as_myself" = x; then
26336
 
    as_myself=$0
26337
 
  fi
26338
 
  if test ! -f "$as_myself"; then
26339
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26340
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26341
 
   { (exit 1); exit 1; }; }
26342
 
  fi
26343
 
  case $CONFIG_SHELL in
26344
 
  '')
26345
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26346
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26347
 
do
26348
 
  IFS=$as_save_IFS
26349
 
  test -z "$as_dir" && as_dir=.
26350
 
  for as_base in sh bash ksh sh5; do
26351
 
         case $as_dir in
26352
 
         /*)
26353
 
           if ("$as_dir/$as_base" -c '
26354
 
  as_lineno_1=$LINENO
26355
 
  as_lineno_2=$LINENO
26356
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26357
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
26358
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26359
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26360
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26361
 
             CONFIG_SHELL=$as_dir/$as_base
26362
 
             export CONFIG_SHELL
26363
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26364
 
           fi;;
26365
 
         esac
26366
 
       done
26367
 
done
26368
 
;;
26369
 
  esac
 
26127
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
26128
            s//\1/
 
26129
            q
 
26130
          }
 
26131
          /^X\/\(\/\/\)$/{
 
26132
            s//\1/
 
26133
            q
 
26134
          }
 
26135
          /^X\/\(\/\).*/{
 
26136
            s//\1/
 
26137
            q
 
26138
          }
 
26139
          s/.*/./; q'`
 
26140
 
 
26141
# CDPATH.
 
26142
$as_unset CDPATH
 
26143
 
 
26144
 
 
26145
 
 
26146
  as_lineno_1=$LINENO
 
26147
  as_lineno_2=$LINENO
 
26148
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
26149
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26370
26150
 
26371
26151
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26372
26152
  # uniformly replaced by the line number.  The first 'sed' inserts a
26373
 
  # line-number line before each line; the second 'sed' does the real
26374
 
  # work.  The second script uses 'N' to pair each line-number line
26375
 
  # with the numbered line, and appends trailing '-' during
26376
 
  # substitution so that $LINENO is not a special case at line end.
 
26153
  # line-number line after each line using $LINENO; the second 'sed'
 
26154
  # does the real work.  The second script uses 'N' to pair each
 
26155
  # line-number line with the line containing $LINENO, and appends
 
26156
  # trailing '-' during substitution so that $LINENO is not a special
 
26157
  # case at line end.
26377
26158
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26378
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26379
 
  sed '=' <$as_myself |
 
26159
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
26160
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
26161
  sed -n '
 
26162
    p
 
26163
    /[$]LINENO/=
 
26164
  ' <$as_myself |
26380
26165
    sed '
 
26166
      s/[$]LINENO.*/&-/
 
26167
      t lineno
 
26168
      b
 
26169
      :lineno
26381
26170
      N
26382
 
      s,$,-,
26383
 
      : loop
26384
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
26171
      :loop
 
26172
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26385
26173
      t loop
26386
 
      s,-$,,
26387
 
      s,^['$as_cr_digits']*\n,,
 
26174
      s/-\n.*//
26388
26175
    ' >$as_me.lineno &&
26389
 
  chmod +x $as_me.lineno ||
26390
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26391
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
26176
  chmod +x "$as_me.lineno" ||
 
26177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26392
26178
   { (exit 1); exit 1; }; }
26393
26179
 
26394
26180
  # Don't try to exec as it changes $[0], causing all sort of problems
26395
26181
  # (the dirname of $[0] is not the place where we might find the
26396
 
  # original and so on.  Autoconf is especially sensible to this).
26397
 
  . ./$as_me.lineno
 
26182
  # original and so on.  Autoconf is especially sensitive to this).
 
26183
  . "./$as_me.lineno"
26398
26184
  # Exit status is that of the last command.
26399
26185
  exit
26400
26186
}
26401
26187
 
26402
26188
 
26403
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26404
 
  *c*,-n*) ECHO_N= ECHO_C='
26405
 
' ECHO_T='      ' ;;
26406
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26407
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
26189
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
26190
  as_dirname=dirname
 
26191
else
 
26192
  as_dirname=false
 
26193
fi
 
26194
 
 
26195
ECHO_C= ECHO_N= ECHO_T=
 
26196
case `echo -n x` in
 
26197
-n*)
 
26198
  case `echo 'x\c'` in
 
26199
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
26200
  *)   ECHO_C='\c';;
 
26201
  esac;;
 
26202
*)
 
26203
  ECHO_N='-n';;
26408
26204
esac
26409
26205
 
26410
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
26206
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
26207
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26411
26208
  as_expr=expr
26412
26209
else
26413
26210
  as_expr=false
26414
26211
fi
26415
26212
 
26416
26213
rm -f conf$$ conf$$.exe conf$$.file
 
26214
if test -d conf$$.dir; then
 
26215
  rm -f conf$$.dir/conf$$.file
 
26216
else
 
26217
  rm -f conf$$.dir
 
26218
  mkdir conf$$.dir
 
26219
fi
26417
26220
echo >conf$$.file
26418
26221
if ln -s conf$$.file conf$$ 2>/dev/null; then
26419
 
  # We could just check for DJGPP; but this test a) works b) is more generic
26420
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26421
 
  if test -f conf$$.exe; then
26422
 
    # Don't use ln at all; we don't have any links
 
26222
  as_ln_s='ln -s'
 
26223
  # ... but there are two gotchas:
 
26224
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
26225
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
26226
  # In both cases, we have to default to `cp -p'.
 
26227
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26423
26228
    as_ln_s='cp -p'
26424
 
  else
26425
 
    as_ln_s='ln -s'
26426
 
  fi
26427
26229
elif ln conf$$.file conf$$ 2>/dev/null; then
26428
26230
  as_ln_s=ln
26429
26231
else
26430
26232
  as_ln_s='cp -p'
26431
26233
fi
26432
 
rm -f conf$$ conf$$.exe conf$$.file
 
26234
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
26235
rmdir conf$$.dir 2>/dev/null
26433
26236
 
26434
26237
if mkdir -p . 2>/dev/null; then
26435
26238
  as_mkdir_p=:
26438
26241
  as_mkdir_p=false
26439
26242
fi
26440
26243
 
26441
 
as_executable_p="test -f"
 
26244
if test -x / >/dev/null 2>&1; then
 
26245
  as_test_x='test -x'
 
26246
else
 
26247
  if ls -dL / >/dev/null 2>&1; then
 
26248
    as_ls_L_option=L
 
26249
  else
 
26250
    as_ls_L_option=
 
26251
  fi
 
26252
  as_test_x='
 
26253
    eval sh -c '\''
 
26254
      if test -d "$1"; then
 
26255
        test -d "$1/.";
 
26256
      else
 
26257
        case $1 in
 
26258
        -*)set "./$1";;
 
26259
        esac;
 
26260
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
26261
        ???[sx]*):;;*)false;;esac;fi
 
26262
    '\'' sh
 
26263
  '
 
26264
fi
 
26265
as_executable_p=$as_test_x
26442
26266
 
26443
26267
# Sed expression to map a string onto a valid CPP name.
26444
26268
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26447
26271
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26448
26272
 
26449
26273
 
26450
 
# IFS
26451
 
# We need space, tab and new line, in precisely that order.
26452
 
as_nl='
26453
 
'
26454
 
IFS="   $as_nl"
26455
 
 
26456
 
# CDPATH.
26457
 
$as_unset CDPATH
26458
 
 
26459
26274
exec 6>&1
26460
26275
 
26461
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
26276
# Save the log message, to keep $[0] and so on meaningful, and to
26462
26277
# report actual input values of CONFIG_FILES etc. instead of their
26463
 
# values after options handling.  Logging --version etc. is OK.
26464
 
exec 5>>config.log
26465
 
{
26466
 
  echo
26467
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26468
 
## Running $as_me. ##
26469
 
_ASBOX
26470
 
} >&5
26471
 
cat >&5 <<_CSEOF
26472
 
 
26473
 
This file was extended by gnupg $as_me 1.9.20, which was
26474
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
26278
# values after options handling.
 
26279
ac_log="
 
26280
This file was extended by gnupg $as_me 2.0.9, which was
 
26281
generated by GNU Autoconf 2.61.  Invocation command line was
26475
26282
 
26476
26283
  CONFIG_FILES    = $CONFIG_FILES
26477
26284
  CONFIG_HEADERS  = $CONFIG_HEADERS
26479
26286
  CONFIG_COMMANDS = $CONFIG_COMMANDS
26480
26287
  $ $0 $@
26481
26288
 
26482
 
_CSEOF
26483
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26484
 
echo >&5
 
26289
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
26290
"
 
26291
 
26485
26292
_ACEOF
26486
26293
 
 
26294
cat >>$CONFIG_STATUS <<_ACEOF
26487
26295
# Files that config.status was made for.
26488
 
if test -n "$ac_config_files"; then
26489
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26490
 
fi
26491
 
 
26492
 
if test -n "$ac_config_headers"; then
26493
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26494
 
fi
26495
 
 
26496
 
if test -n "$ac_config_links"; then
26497
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26498
 
fi
26499
 
 
26500
 
if test -n "$ac_config_commands"; then
26501
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26502
 
fi
 
26296
config_files="$ac_config_files"
 
26297
config_headers="$ac_config_headers"
 
26298
config_commands="$ac_config_commands"
 
26299
 
 
26300
_ACEOF
26503
26301
 
26504
26302
cat >>$CONFIG_STATUS <<\_ACEOF
26505
 
 
26506
26303
ac_cs_usage="\
26507
26304
\`$as_me' instantiates files from templates according to the
26508
26305
current configuration.
26510
26307
Usage: $0 [OPTIONS] [FILE]...
26511
26308
 
26512
26309
  -h, --help       print this help, then exit
26513
 
  -V, --version    print version number, then exit
 
26310
  -V, --version    print version number and configuration settings, then exit
26514
26311
  -q, --quiet      do not print progress messages
26515
26312
  -d, --debug      don't remove temporary files
26516
26313
      --recheck    update $as_me by reconfiguring in the same conditions
26525
26322
Configuration headers:
26526
26323
$config_headers
26527
26324
 
26528
 
Configuration links:
26529
 
$config_links
26530
 
 
26531
26325
Configuration commands:
26532
26326
$config_commands
26533
26327
 
26534
26328
Report bugs to <bug-autoconf@gnu.org>."
 
26329
 
26535
26330
_ACEOF
26536
 
 
26537
26331
cat >>$CONFIG_STATUS <<_ACEOF
26538
26332
ac_cs_version="\\
26539
 
gnupg config.status 1.9.20
26540
 
configured by $0, generated by GNU Autoconf 2.59,
26541
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
26333
gnupg config.status 2.0.9
 
26334
configured by $0, generated by GNU Autoconf 2.61,
 
26335
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26542
26336
 
26543
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
26337
Copyright (C) 2006 Free Software Foundation, Inc.
26544
26338
This config.status script is free software; the Free Software Foundation
26545
26339
gives unlimited permission to copy, distribute and modify it."
26546
 
srcdir=$srcdir
26547
 
INSTALL="$INSTALL"
 
26340
 
 
26341
ac_pwd='$ac_pwd'
 
26342
srcdir='$srcdir'
 
26343
INSTALL='$INSTALL'
 
26344
MKDIR_P='$MKDIR_P'
26548
26345
_ACEOF
26549
26346
 
26550
26347
cat >>$CONFIG_STATUS <<\_ACEOF
26555
26352
do
26556
26353
  case $1 in
26557
26354
  --*=*)
26558
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
26559
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
26355
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
26356
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26560
26357
    ac_shift=:
26561
26358
    ;;
26562
 
  -*)
 
26359
  *)
26563
26360
    ac_option=$1
26564
26361
    ac_optarg=$2
26565
26362
    ac_shift=shift
26566
26363
    ;;
26567
 
  *) # This is not an option, so the user has probably given explicit
26568
 
     # arguments.
26569
 
     ac_option=$1
26570
 
     ac_need_defaults=false;;
26571
26364
  esac
26572
26365
 
26573
26366
  case $ac_option in
26574
26367
  # Handling of the options.
26575
 
_ACEOF
26576
 
cat >>$CONFIG_STATUS <<\_ACEOF
26577
26368
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26578
26369
    ac_cs_recheck=: ;;
26579
 
  --version | --vers* | -V )
26580
 
    echo "$ac_cs_version"; exit 0 ;;
26581
 
  --he | --h)
26582
 
    # Conflict between --help and --header
26583
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
26584
 
Try \`$0 --help' for more information." >&5
26585
 
echo "$as_me: error: ambiguous option: $1
26586
 
Try \`$0 --help' for more information." >&2;}
26587
 
   { (exit 1); exit 1; }; };;
26588
 
  --help | --hel | -h )
26589
 
    echo "$ac_cs_usage"; exit 0 ;;
26590
 
  --debug | --d* | -d )
 
26370
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
26371
    echo "$ac_cs_version"; exit ;;
 
26372
  --debug | --debu | --deb | --de | --d | -d )
26591
26373
    debug=: ;;
26592
26374
  --file | --fil | --fi | --f )
26593
26375
    $ac_shift
26597
26379
    $ac_shift
26598
26380
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26599
26381
    ac_need_defaults=false;;
 
26382
  --he | --h)
 
26383
    # Conflict between --help and --header
 
26384
    { echo "$as_me: error: ambiguous option: $1
 
26385
Try \`$0 --help' for more information." >&2
 
26386
   { (exit 1); exit 1; }; };;
 
26387
  --help | --hel | -h )
 
26388
    echo "$ac_cs_usage"; exit ;;
26600
26389
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26601
26390
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26602
26391
    ac_cs_silent=: ;;
26603
26392
 
26604
26393
  # This is an error.
26605
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26606
 
Try \`$0 --help' for more information." >&5
26607
 
echo "$as_me: error: unrecognized option: $1
26608
 
Try \`$0 --help' for more information." >&2;}
 
26394
  -*) { echo "$as_me: error: unrecognized option: $1
 
26395
Try \`$0 --help' for more information." >&2
26609
26396
   { (exit 1); exit 1; }; } ;;
26610
26397
 
26611
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
26398
  *) ac_config_targets="$ac_config_targets $1"
 
26399
     ac_need_defaults=false ;;
26612
26400
 
26613
26401
  esac
26614
26402
  shift
26624
26412
_ACEOF
26625
26413
cat >>$CONFIG_STATUS <<_ACEOF
26626
26414
if \$ac_cs_recheck; then
26627
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26628
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
26415
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
26416
  CONFIG_SHELL=$SHELL
 
26417
  export CONFIG_SHELL
 
26418
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26629
26419
fi
26630
26420
 
26631
26421
_ACEOF
 
26422
cat >>$CONFIG_STATUS <<\_ACEOF
 
26423
exec 5>>config.log
 
26424
{
 
26425
  echo
 
26426
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
26427
## Running $as_me. ##
 
26428
_ASBOX
 
26429
  echo "$ac_log"
 
26430
} >&5
26632
26431
 
 
26432
_ACEOF
26633
26433
cat >>$CONFIG_STATUS <<_ACEOF
26634
26434
#
26635
 
# INIT-COMMANDS section.
 
26435
# INIT-COMMANDS
26636
26436
#
26637
 
 
26638
26437
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26639
26438
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
26640
26439
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
26641
 
    # from automake.
 
26440
    # from automake < 1.5.
26642
26441
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
26643
26442
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
26644
26443
    LINGUAS="${LINGUAS-%UNSET%}"
26646
26445
 
26647
26446
_ACEOF
26648
26447
 
26649
 
 
26650
 
 
26651
26448
cat >>$CONFIG_STATUS <<\_ACEOF
 
26449
 
 
26450
# Handling of arguments.
26652
26451
for ac_config_target in $ac_config_targets
26653
26452
do
26654
 
  case "$ac_config_target" in
26655
 
  # Handling of arguments.
26656
 
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
26657
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26658
 
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26659
 
  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
26660
 
  "gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
26661
 
  "jnlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES jnlib/Makefile" ;;
26662
 
  "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
26663
 
  "kbx/Makefile" ) CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
26664
 
  "g10/Makefile" ) CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
26665
 
  "sm/Makefile" ) CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
26666
 
  "agent/Makefile" ) CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
26667
 
  "scd/Makefile" ) CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
26668
 
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26669
 
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26670
 
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26671
 
  "pth.h" ) CONFIG_LINKS="$CONFIG_LINKS pth.h:jnlib/w32-pth.h" ;;
26672
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26673
 
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26674
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
26453
  case $ac_config_target in
 
26454
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
26455
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
26456
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
 
26457
    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
 
26458
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
26459
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
26460
    "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
 
26461
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
26462
    "jnlib/Makefile") CONFIG_FILES="$CONFIG_FILES jnlib/Makefile" ;;
 
26463
    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
 
26464
    "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
 
26465
    "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
 
26466
    "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
 
26467
    "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
 
26468
    "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
 
26469
    "keyserver/Makefile") CONFIG_FILES="$CONFIG_FILES keyserver/Makefile" ;;
 
26470
    "keyserver/gpg2keys_mailto") CONFIG_FILES="$CONFIG_FILES keyserver/gpg2keys_mailto" ;;
 
26471
    "keyserver/gpg2keys_test") CONFIG_FILES="$CONFIG_FILES keyserver/gpg2keys_test" ;;
 
26472
    "tools/gpg-zip") CONFIG_FILES="$CONFIG_FILES tools/gpg-zip" ;;
 
26473
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
26474
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
26475
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
26476
    "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
 
26477
    "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
 
26478
 
26675
26479
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26676
26480
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26677
26481
   { (exit 1); exit 1; }; };;
26678
26482
  esac
26679
26483
done
26680
26484
 
 
26485
 
26681
26486
# If the user did not use the arguments to specify the items to instantiate,
26682
26487
# then the envvar interface is used.  Set only those that are not.
26683
26488
# We use the long form for the default assignment because of an extremely
26685
26490
if $ac_need_defaults; then
26686
26491
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26687
26492
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26688
 
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26689
26493
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26690
26494
fi
26691
26495
 
26692
26496
# Have a temporary directory for convenience.  Make it in the build tree
26693
 
# simply because there is no reason to put it here, and in addition,
 
26497
# simply because there is no reason against having it here, and in addition,
26694
26498
# creating and moving files from /tmp can sometimes cause problems.
26695
 
# Create a temporary directory, and hook for its removal unless debugging.
 
26499
# Hook for its removal unless debugging.
 
26500
# Note that there is a small window in which the directory will not be cleaned:
 
26501
# after its creation but before its name has been assigned to `$tmp'.
26696
26502
$debug ||
26697
26503
{
26698
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
26504
  tmp=
 
26505
  trap 'exit_status=$?
 
26506
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
26507
' 0
26699
26508
  trap '{ (exit 1); exit 1; }' 1 2 13 15
26700
26509
}
26701
 
 
26702
26510
# Create a (secure) tmp directory for tmp files.
26703
26511
 
26704
26512
{
26705
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
26513
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26706
26514
  test -n "$tmp" && test -d "$tmp"
26707
26515
}  ||
26708
26516
{
26709
 
  tmp=./confstat$$-$RANDOM
26710
 
  (umask 077 && mkdir $tmp)
 
26517
  tmp=./conf$$-$RANDOM
 
26518
  (umask 077 && mkdir "$tmp")
26711
26519
} ||
26712
26520
{
26713
26521
   echo "$me: cannot create a temporary directory in ." >&2
26714
26522
   { (exit 1); exit 1; }
26715
26523
}
26716
26524
 
26717
 
_ACEOF
26718
 
 
26719
 
cat >>$CONFIG_STATUS <<_ACEOF
26720
 
 
26721
26525
#
26722
 
# CONFIG_FILES section.
 
26526
# Set up the sed scripts for CONFIG_FILES section.
26723
26527
#
26724
26528
 
26725
26529
# No need to generate the scripts if there are no CONFIG_FILES.
26726
26530
# This happens for instance when ./config.status config.h
26727
 
if test -n "\$CONFIG_FILES"; then
26728
 
  # Protect against being on the right side of a sed subst in config.status.
26729
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26730
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26731
 
s,@SHELL@,$SHELL,;t t
26732
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26733
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26734
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26735
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26736
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26737
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26738
 
s,@exec_prefix@,$exec_prefix,;t t
26739
 
s,@prefix@,$prefix,;t t
26740
 
s,@program_transform_name@,$program_transform_name,;t t
26741
 
s,@bindir@,$bindir,;t t
26742
 
s,@sbindir@,$sbindir,;t t
26743
 
s,@libexecdir@,$libexecdir,;t t
26744
 
s,@datadir@,$datadir,;t t
26745
 
s,@sysconfdir@,$sysconfdir,;t t
26746
 
s,@sharedstatedir@,$sharedstatedir,;t t
26747
 
s,@localstatedir@,$localstatedir,;t t
26748
 
s,@libdir@,$libdir,;t t
26749
 
s,@includedir@,$includedir,;t t
26750
 
s,@oldincludedir@,$oldincludedir,;t t
26751
 
s,@infodir@,$infodir,;t t
26752
 
s,@mandir@,$mandir,;t t
26753
 
s,@build_alias@,$build_alias,;t t
26754
 
s,@host_alias@,$host_alias,;t t
26755
 
s,@target_alias@,$target_alias,;t t
26756
 
s,@DEFS@,$DEFS,;t t
26757
 
s,@ECHO_C@,$ECHO_C,;t t
26758
 
s,@ECHO_N@,$ECHO_N,;t t
26759
 
s,@ECHO_T@,$ECHO_T,;t t
26760
 
s,@LIBS@,$LIBS,;t t
26761
 
s,@build@,$build,;t t
26762
 
s,@build_cpu@,$build_cpu,;t t
26763
 
s,@build_vendor@,$build_vendor,;t t
26764
 
s,@build_os@,$build_os,;t t
26765
 
s,@host@,$host,;t t
26766
 
s,@host_cpu@,$host_cpu,;t t
26767
 
s,@host_vendor@,$host_vendor,;t t
26768
 
s,@host_os@,$host_os,;t t
26769
 
s,@target@,$target,;t t
26770
 
s,@target_cpu@,$target_cpu,;t t
26771
 
s,@target_vendor@,$target_vendor,;t t
26772
 
s,@target_os@,$target_os,;t t
26773
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26774
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26775
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26776
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
26777
 
s,@PACKAGE@,$PACKAGE,;t t
26778
 
s,@VERSION@,$VERSION,;t t
26779
 
s,@ACLOCAL@,$ACLOCAL,;t t
26780
 
s,@AUTOCONF@,$AUTOCONF,;t t
26781
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
26782
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
26783
 
s,@MAKEINFO@,$MAKEINFO,;t t
26784
 
s,@install_sh@,$install_sh,;t t
26785
 
s,@STRIP@,$STRIP,;t t
26786
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26787
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26788
 
s,@mkdir_p@,$mkdir_p,;t t
26789
 
s,@AWK@,$AWK,;t t
26790
 
s,@SET_MAKE@,$SET_MAKE,;t t
26791
 
s,@am__leading_dot@,$am__leading_dot,;t t
26792
 
s,@AMTAR@,$AMTAR,;t t
26793
 
s,@am__tar@,$am__tar,;t t
26794
 
s,@am__untar@,$am__untar,;t t
26795
 
s,@PACKAGE_GT@,$PACKAGE_GT,;t t
26796
 
s,@GNUPG_AGENT_PGM@,$GNUPG_AGENT_PGM,;t t
26797
 
s,@GNUPG_AGENT_PGM_TRUE@,$GNUPG_AGENT_PGM_TRUE,;t t
26798
 
s,@GNUPG_AGENT_PGM_FALSE@,$GNUPG_AGENT_PGM_FALSE,;t t
26799
 
s,@GNUPG_PINENTRY_PGM@,$GNUPG_PINENTRY_PGM,;t t
26800
 
s,@GNUPG_PINENTRY_PGM_TRUE@,$GNUPG_PINENTRY_PGM_TRUE,;t t
26801
 
s,@GNUPG_PINENTRY_PGM_FALSE@,$GNUPG_PINENTRY_PGM_FALSE,;t t
26802
 
s,@GNUPG_SCDAEMON_PGM@,$GNUPG_SCDAEMON_PGM,;t t
26803
 
s,@GNUPG_SCDAEMON_PGM_TRUE@,$GNUPG_SCDAEMON_PGM_TRUE,;t t
26804
 
s,@GNUPG_SCDAEMON_PGM_FALSE@,$GNUPG_SCDAEMON_PGM_FALSE,;t t
26805
 
s,@GNUPG_DIRMNGR_PGM@,$GNUPG_DIRMNGR_PGM,;t t
26806
 
s,@GNUPG_DIRMNGR_PGM_TRUE@,$GNUPG_DIRMNGR_PGM_TRUE,;t t
26807
 
s,@GNUPG_DIRMNGR_PGM_FALSE@,$GNUPG_DIRMNGR_PGM_FALSE,;t t
26808
 
s,@GNUPG_PROTECT_TOOL_PGM@,$GNUPG_PROTECT_TOOL_PGM,;t t
26809
 
s,@GNUPG_PROTECT_TOOL_PGM_TRUE@,$GNUPG_PROTECT_TOOL_PGM_TRUE,;t t
26810
 
s,@GNUPG_PROTECT_TOOL_PGM_FALSE@,$GNUPG_PROTECT_TOOL_PGM_FALSE,;t t
26811
 
s,@GPGKEYS_HKP@,$GPGKEYS_HKP,;t t
26812
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26813
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26814
 
s,@MAINT@,$MAINT,;t t
26815
 
s,@CC@,$CC,;t t
26816
 
s,@CFLAGS@,$CFLAGS,;t t
26817
 
s,@LDFLAGS@,$LDFLAGS,;t t
26818
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
26819
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
26820
 
s,@EXEEXT@,$EXEEXT,;t t
26821
 
s,@OBJEXT@,$OBJEXT,;t t
26822
 
s,@DEPDIR@,$DEPDIR,;t t
26823
 
s,@am__include@,$am__include,;t t
26824
 
s,@am__quote@,$am__quote,;t t
26825
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26826
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26827
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26828
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
26829
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26830
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26831
 
s,@CPP@,$CPP,;t t
26832
 
s,@LN_S@,$LN_S,;t t
26833
 
s,@RANLIB@,$RANLIB,;t t
26834
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26835
 
s,@AR@,$AR,;t t
26836
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
26837
 
s,@PERL@,$PERL,;t t
26838
 
s,@DOCBOOK_TO_MAN@,$DOCBOOK_TO_MAN,;t t
26839
 
s,@HAVE_DOCBOOK_TO_MAN_TRUE@,$HAVE_DOCBOOK_TO_MAN_TRUE,;t t
26840
 
s,@HAVE_DOCBOOK_TO_MAN_FALSE@,$HAVE_DOCBOOK_TO_MAN_FALSE,;t t
26841
 
s,@FAQPROG@,$FAQPROG,;t t
26842
 
s,@WORKING_FAQPROG_TRUE@,$WORKING_FAQPROG_TRUE,;t t
26843
 
s,@WORKING_FAQPROG_FALSE@,$WORKING_FAQPROG_FALSE,;t t
26844
 
s,@DOCBOOK_TO_TEXI@,$DOCBOOK_TO_TEXI,;t t
26845
 
s,@HAVE_DOCBOOK_TO_TEXI_TRUE@,$HAVE_DOCBOOK_TO_TEXI_TRUE,;t t
26846
 
s,@HAVE_DOCBOOK_TO_TEXI_FALSE@,$HAVE_DOCBOOK_TO_TEXI_FALSE,;t t
26847
 
s,@HAVE_DOSISH_SYSTEM_TRUE@,$HAVE_DOSISH_SYSTEM_TRUE,;t t
26848
 
s,@HAVE_DOSISH_SYSTEM_FALSE@,$HAVE_DOSISH_SYSTEM_FALSE,;t t
26849
 
s,@HAVE_W32_SYSTEM_TRUE@,$HAVE_W32_SYSTEM_TRUE,;t t
26850
 
s,@HAVE_W32_SYSTEM_FALSE@,$HAVE_W32_SYSTEM_FALSE,;t t
26851
 
s,@GPG_ERROR_CONFIG@,$GPG_ERROR_CONFIG,;t t
26852
 
s,@GPG_ERROR_CFLAGS@,$GPG_ERROR_CFLAGS,;t t
26853
 
s,@GPG_ERROR_LIBS@,$GPG_ERROR_LIBS,;t t
26854
 
s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
26855
 
s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
26856
 
s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
26857
 
s,@LIBASSUAN_CONFIG@,$LIBASSUAN_CONFIG,;t t
26858
 
s,@LIBASSUAN_CFLAGS@,$LIBASSUAN_CFLAGS,;t t
26859
 
s,@LIBASSUAN_LIBS@,$LIBASSUAN_LIBS,;t t
26860
 
s,@KSBA_CONFIG@,$KSBA_CONFIG,;t t
26861
 
s,@KSBA_CFLAGS@,$KSBA_CFLAGS,;t t
26862
 
s,@KSBA_LIBS@,$KSBA_LIBS,;t t
26863
 
s,@LIBUSB_LIBS@,$LIBUSB_LIBS,;t t
26864
 
s,@DL_LIBS@,$DL_LIBS,;t t
26865
 
s,@LIBUTIL_LIBS@,$LIBUTIL_LIBS,;t t
26866
 
s,@SHRED@,$SHRED,;t t
26867
 
s,@PTH_CONFIG@,$PTH_CONFIG,;t t
26868
 
s,@PTH_CFLAGS@,$PTH_CFLAGS,;t t
26869
 
s,@PTH_LIBS@,$PTH_LIBS,;t t
26870
 
s,@SRVLIBS@,$SRVLIBS,;t t
26871
 
s,@GPGKEYS_LDAP@,$GPGKEYS_LDAP,;t t
26872
 
s,@LDAPLIBS@,$LDAPLIBS,;t t
26873
 
s,@SENDMAIL@,$SENDMAIL,;t t
26874
 
s,@GPGKEYS_MAILTO@,$GPGKEYS_MAILTO,;t t
26875
 
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
26876
 
s,@USE_NLS@,$USE_NLS,;t t
26877
 
s,@MSGFMT@,$MSGFMT,;t t
26878
 
s,@GMSGFMT@,$GMSGFMT,;t t
26879
 
s,@XGETTEXT@,$XGETTEXT,;t t
26880
 
s,@MSGMERGE@,$MSGMERGE,;t t
26881
 
s,@EGREP@,$EGREP,;t t
26882
 
s,@ALLOCA@,$ALLOCA,;t t
26883
 
s,@GLIBC21@,$GLIBC21,;t t
26884
 
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
26885
 
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
26886
 
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
26887
 
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
26888
 
s,@LIBICONV@,$LIBICONV,;t t
26889
 
s,@LTLIBICONV@,$LTLIBICONV,;t t
26890
 
s,@INTLBISON@,$INTLBISON,;t t
26891
 
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
26892
 
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
26893
 
s,@CATOBJEXT@,$CATOBJEXT,;t t
26894
 
s,@DATADIRNAME@,$DATADIRNAME,;t t
26895
 
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26896
 
s,@GENCAT@,$GENCAT,;t t
26897
 
s,@INTLOBJS@,$INTLOBJS,;t t
26898
 
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
26899
 
s,@INTLLIBS@,$INTLLIBS,;t t
26900
 
s,@LIBINTL@,$LIBINTL,;t t
26901
 
s,@LTLIBINTL@,$LTLIBINTL,;t t
26902
 
s,@POSUB@,$POSUB,;t t
26903
 
s,@SHA512_O@,$SHA512_O,;t t
26904
 
s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26905
 
s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26906
 
s,@ALLOCA_H@,$ALLOCA_H,;t t
26907
 
s,@LIBOBJS@,$LIBOBJS,;t t
26908
 
s,@EOVERFLOW@,$EOVERFLOW,;t t
26909
 
s,@CAPLIBS@,$CAPLIBS,;t t
26910
 
s,@REGEX_O@,$REGEX_O,;t t
26911
 
s,@RUN_PKITS_TESTS_TRUE@,$RUN_PKITS_TESTS_TRUE,;t t
26912
 
s,@RUN_PKITS_TESTS_FALSE@,$RUN_PKITS_TESTS_FALSE,;t t
26913
 
s,@CROSS_COMPILING_TRUE@,$CROSS_COMPILING_TRUE,;t t
26914
 
s,@CROSS_COMPILING_FALSE@,$CROSS_COMPILING_FALSE,;t t
26915
 
s,@NETLIBS@,$NETLIBS,;t t
26916
 
s,@W32LIBS@,$W32LIBS,;t t
26917
 
s,@BUILD_GPG_TRUE@,$BUILD_GPG_TRUE,;t t
26918
 
s,@BUILD_GPG_FALSE@,$BUILD_GPG_FALSE,;t t
26919
 
s,@BUILD_GPGSM_TRUE@,$BUILD_GPGSM_TRUE,;t t
26920
 
s,@BUILD_GPGSM_FALSE@,$BUILD_GPGSM_FALSE,;t t
26921
 
s,@BUILD_AGENT_TRUE@,$BUILD_AGENT_TRUE,;t t
26922
 
s,@BUILD_AGENT_FALSE@,$BUILD_AGENT_FALSE,;t t
26923
 
s,@BUILD_SCDAEMON_TRUE@,$BUILD_SCDAEMON_TRUE,;t t
26924
 
s,@BUILD_SCDAEMON_FALSE@,$BUILD_SCDAEMON_FALSE,;t t
26925
 
s,@BUILD_SYMCRYPTRUN_TRUE@,$BUILD_SYMCRYPTRUN_TRUE,;t t
26926
 
s,@BUILD_SYMCRYPTRUN_FALSE@,$BUILD_SYMCRYPTRUN_FALSE,;t t
26927
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26928
 
CEOF
26929
 
 
26930
 
_ACEOF
26931
 
 
26932
 
  cat >>$CONFIG_STATUS <<\_ACEOF
26933
 
  # Split the substitutions into bite-sized pieces for seds with
26934
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
26935
 
  ac_max_sed_lines=48
26936
 
  ac_sed_frag=1 # Number of current file.
26937
 
  ac_beg=1 # First line for current file.
26938
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
26939
 
  ac_more_lines=:
26940
 
  ac_sed_cmds=
26941
 
  while $ac_more_lines; do
26942
 
    if test $ac_beg -gt 1; then
26943
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26944
 
    else
26945
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26946
 
    fi
26947
 
    if test ! -s $tmp/subs.frag; then
26948
 
      ac_more_lines=false
26949
 
    else
26950
 
      # The purpose of the label and of the branching condition is to
26951
 
      # speed up the sed processing (if there are no `@' at all, there
26952
 
      # is no need to browse any of the substitutions).
26953
 
      # These are the two extra sed commands mentioned above.
26954
 
      (echo ':t
26955
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26956
 
      if test -z "$ac_sed_cmds"; then
26957
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26958
 
      else
26959
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26960
 
      fi
26961
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
26962
 
      ac_beg=$ac_end
26963
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
26964
 
    fi
26965
 
  done
26966
 
  if test -z "$ac_sed_cmds"; then
26967
 
    ac_sed_cmds=cat
26968
 
  fi
 
26531
if test -n "$CONFIG_FILES"; then
 
26532
 
 
26533
_ACEOF
 
26534
 
 
26535
 
 
26536
 
 
26537
ac_delim='%!_!# '
 
26538
for ac_last_try in false false false false false :; do
 
26539
  cat >conf$$subs.sed <<_ACEOF
 
26540
SHELL!$SHELL$ac_delim
 
26541
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
26542
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
26543
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
26544
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
26545
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
26546
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
26547
exec_prefix!$exec_prefix$ac_delim
 
26548
prefix!$prefix$ac_delim
 
26549
program_transform_name!$program_transform_name$ac_delim
 
26550
bindir!$bindir$ac_delim
 
26551
sbindir!$sbindir$ac_delim
 
26552
libexecdir!$libexecdir$ac_delim
 
26553
datarootdir!$datarootdir$ac_delim
 
26554
datadir!$datadir$ac_delim
 
26555
sysconfdir!$sysconfdir$ac_delim
 
26556
sharedstatedir!$sharedstatedir$ac_delim
 
26557
localstatedir!$localstatedir$ac_delim
 
26558
includedir!$includedir$ac_delim
 
26559
oldincludedir!$oldincludedir$ac_delim
 
26560
docdir!$docdir$ac_delim
 
26561
infodir!$infodir$ac_delim
 
26562
htmldir!$htmldir$ac_delim
 
26563
dvidir!$dvidir$ac_delim
 
26564
pdfdir!$pdfdir$ac_delim
 
26565
psdir!$psdir$ac_delim
 
26566
libdir!$libdir$ac_delim
 
26567
localedir!$localedir$ac_delim
 
26568
mandir!$mandir$ac_delim
 
26569
DEFS!$DEFS$ac_delim
 
26570
ECHO_C!$ECHO_C$ac_delim
 
26571
ECHO_N!$ECHO_N$ac_delim
 
26572
ECHO_T!$ECHO_T$ac_delim
 
26573
LIBS!$LIBS$ac_delim
 
26574
build_alias!$build_alias$ac_delim
 
26575
host_alias!$host_alias$ac_delim
 
26576
target_alias!$target_alias$ac_delim
 
26577
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
26578
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
26579
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
26580
am__isrc!$am__isrc$ac_delim
 
26581
CYGPATH_W!$CYGPATH_W$ac_delim
 
26582
PACKAGE!$PACKAGE$ac_delim
 
26583
VERSION!$VERSION$ac_delim
 
26584
ACLOCAL!$ACLOCAL$ac_delim
 
26585
AUTOCONF!$AUTOCONF$ac_delim
 
26586
AUTOMAKE!$AUTOMAKE$ac_delim
 
26587
AUTOHEADER!$AUTOHEADER$ac_delim
 
26588
MAKEINFO!$MAKEINFO$ac_delim
 
26589
install_sh!$install_sh$ac_delim
 
26590
STRIP!$STRIP$ac_delim
 
26591
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
26592
mkdir_p!$mkdir_p$ac_delim
 
26593
AWK!$AWK$ac_delim
 
26594
SET_MAKE!$SET_MAKE$ac_delim
 
26595
am__leading_dot!$am__leading_dot$ac_delim
 
26596
AMTAR!$AMTAR$ac_delim
 
26597
am__tar!$am__tar$ac_delim
 
26598
am__untar!$am__untar$ac_delim
 
26599
build!$build$ac_delim
 
26600
build_cpu!$build_cpu$ac_delim
 
26601
build_vendor!$build_vendor$ac_delim
 
26602
build_os!$build_os$ac_delim
 
26603
host!$host$ac_delim
 
26604
host_cpu!$host_cpu$ac_delim
 
26605
host_vendor!$host_vendor$ac_delim
 
26606
host_os!$host_os$ac_delim
 
26607
PACKAGE_GT!$PACKAGE_GT$ac_delim
 
26608
GNUPG_AGENT_PGM!$GNUPG_AGENT_PGM$ac_delim
 
26609
GNUPG_AGENT_PGM_TRUE!$GNUPG_AGENT_PGM_TRUE$ac_delim
 
26610
GNUPG_AGENT_PGM_FALSE!$GNUPG_AGENT_PGM_FALSE$ac_delim
 
26611
GNUPG_PINENTRY_PGM!$GNUPG_PINENTRY_PGM$ac_delim
 
26612
GNUPG_PINENTRY_PGM_TRUE!$GNUPG_PINENTRY_PGM_TRUE$ac_delim
 
26613
GNUPG_PINENTRY_PGM_FALSE!$GNUPG_PINENTRY_PGM_FALSE$ac_delim
 
26614
GNUPG_SCDAEMON_PGM!$GNUPG_SCDAEMON_PGM$ac_delim
 
26615
GNUPG_SCDAEMON_PGM_TRUE!$GNUPG_SCDAEMON_PGM_TRUE$ac_delim
 
26616
GNUPG_SCDAEMON_PGM_FALSE!$GNUPG_SCDAEMON_PGM_FALSE$ac_delim
 
26617
GNUPG_DIRMNGR_PGM!$GNUPG_DIRMNGR_PGM$ac_delim
 
26618
GNUPG_DIRMNGR_PGM_TRUE!$GNUPG_DIRMNGR_PGM_TRUE$ac_delim
 
26619
GNUPG_DIRMNGR_PGM_FALSE!$GNUPG_DIRMNGR_PGM_FALSE$ac_delim
 
26620
GNUPG_PROTECT_TOOL_PGM!$GNUPG_PROTECT_TOOL_PGM$ac_delim
 
26621
GNUPG_PROTECT_TOOL_PGM_TRUE!$GNUPG_PROTECT_TOOL_PGM_TRUE$ac_delim
 
26622
GNUPG_PROTECT_TOOL_PGM_FALSE!$GNUPG_PROTECT_TOOL_PGM_FALSE$ac_delim
 
26623
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
 
26624
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
 
26625
MAINT!$MAINT$ac_delim
 
26626
CC!$CC$ac_delim
 
26627
CFLAGS!$CFLAGS$ac_delim
 
26628
LDFLAGS!$LDFLAGS$ac_delim
 
26629
CPPFLAGS!$CPPFLAGS$ac_delim
 
26630
ac_ct_CC!$ac_ct_CC$ac_delim
 
26631
EXEEXT!$EXEEXT$ac_delim
 
26632
OBJEXT!$OBJEXT$ac_delim
 
26633
DEPDIR!$DEPDIR$ac_delim
 
26634
am__include!$am__include$ac_delim
 
26635
am__quote!$am__quote$ac_delim
 
26636
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
26637
_ACEOF
 
26638
 
 
26639
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
26640
    break
 
26641
  elif $ac_last_try; then
 
26642
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
26643
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
26644
   { (exit 1); exit 1; }; }
 
26645
  else
 
26646
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
26647
  fi
 
26648
done
 
26649
 
 
26650
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
26651
if test -n "$ac_eof"; then
 
26652
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
26653
  ac_eof=`expr $ac_eof + 1`
 
26654
fi
 
26655
 
 
26656
cat >>$CONFIG_STATUS <<_ACEOF
 
26657
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
26658
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
26659
_ACEOF
 
26660
sed '
 
26661
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
26662
s/^/s,@/; s/!/@,|#_!!_#|/
 
26663
:n
 
26664
t n
 
26665
s/'"$ac_delim"'$/,g/; t
 
26666
s/$/\\/; p
 
26667
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
26668
' >>$CONFIG_STATUS <conf$$subs.sed
 
26669
rm -f conf$$subs.sed
 
26670
cat >>$CONFIG_STATUS <<_ACEOF
 
26671
CEOF$ac_eof
 
26672
_ACEOF
 
26673
 
 
26674
 
 
26675
ac_delim='%!_!# '
 
26676
for ac_last_try in false false false false false :; do
 
26677
  cat >conf$$subs.sed <<_ACEOF
 
26678
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
26679
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
26680
CCDEPMODE!$CCDEPMODE$ac_delim
 
26681
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
26682
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
26683
CPP!$CPP$ac_delim
 
26684
LN_S!$LN_S$ac_delim
 
26685
RANLIB!$RANLIB$ac_delim
 
26686
AR!$AR$ac_delim
 
26687
PERL!$PERL$ac_delim
 
26688
WINDRES!$WINDRES$ac_delim
 
26689
FAQPROG!$FAQPROG$ac_delim
 
26690
WORKING_FAQPROG_TRUE!$WORKING_FAQPROG_TRUE$ac_delim
 
26691
WORKING_FAQPROG_FALSE!$WORKING_FAQPROG_FALSE$ac_delim
 
26692
TAR!$TAR$ac_delim
 
26693
HAVE_USTAR_TRUE!$HAVE_USTAR_TRUE$ac_delim
 
26694
HAVE_USTAR_FALSE!$HAVE_USTAR_FALSE$ac_delim
 
26695
CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
 
26696
HAVE_DOSISH_SYSTEM_TRUE!$HAVE_DOSISH_SYSTEM_TRUE$ac_delim
 
26697
HAVE_DOSISH_SYSTEM_FALSE!$HAVE_DOSISH_SYSTEM_FALSE$ac_delim
 
26698
USE_SIMPLE_GETTEXT_TRUE!$USE_SIMPLE_GETTEXT_TRUE$ac_delim
 
26699
USE_SIMPLE_GETTEXT_FALSE!$USE_SIMPLE_GETTEXT_FALSE$ac_delim
 
26700
HAVE_W32_SYSTEM_TRUE!$HAVE_W32_SYSTEM_TRUE$ac_delim
 
26701
HAVE_W32_SYSTEM_FALSE!$HAVE_W32_SYSTEM_FALSE$ac_delim
 
26702
GPGKEYS_HKP!$GPGKEYS_HKP$ac_delim
 
26703
GPGKEYS_FINGER!$GPGKEYS_FINGER$ac_delim
 
26704
GPG_ERROR_CONFIG!$GPG_ERROR_CONFIG$ac_delim
 
26705
GPG_ERROR_CFLAGS!$GPG_ERROR_CFLAGS$ac_delim
 
26706
GPG_ERROR_LIBS!$GPG_ERROR_LIBS$ac_delim
 
26707
LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
 
26708
LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
 
26709
LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
 
26710
LIBASSUAN_CONFIG!$LIBASSUAN_CONFIG$ac_delim
 
26711
LIBASSUAN_CFLAGS!$LIBASSUAN_CFLAGS$ac_delim
 
26712
LIBASSUAN_LIBS!$LIBASSUAN_LIBS$ac_delim
 
26713
LIBASSUAN_PTH_CFLAGS!$LIBASSUAN_PTH_CFLAGS$ac_delim
 
26714
LIBASSUAN_PTH_LIBS!$LIBASSUAN_PTH_LIBS$ac_delim
 
26715
KSBA_CONFIG!$KSBA_CONFIG$ac_delim
 
26716
KSBA_CFLAGS!$KSBA_CFLAGS$ac_delim
 
26717
KSBA_LIBS!$KSBA_LIBS$ac_delim
 
26718
LIBUSB_LIBS!$LIBUSB_LIBS$ac_delim
 
26719
DL_LIBS!$DL_LIBS$ac_delim
 
26720
LIBUTIL_LIBS!$LIBUTIL_LIBS$ac_delim
 
26721
SHRED!$SHRED$ac_delim
 
26722
PTH_CONFIG!$PTH_CONFIG$ac_delim
 
26723
PTH_CFLAGS!$PTH_CFLAGS$ac_delim
 
26724
PTH_LIBS!$PTH_LIBS$ac_delim
 
26725
DNSLIBS!$DNSLIBS$ac_delim
 
26726
USE_DNS_SRV_TRUE!$USE_DNS_SRV_TRUE$ac_delim
 
26727
USE_DNS_SRV_FALSE!$USE_DNS_SRV_FALSE$ac_delim
 
26728
GPGKEYS_LDAP!$GPGKEYS_LDAP$ac_delim
 
26729
LDAPLIBS!$LDAPLIBS$ac_delim
 
26730
LDAP_CPPFLAGS!$LDAP_CPPFLAGS$ac_delim
 
26731
_libcurl_config!$_libcurl_config$ac_delim
 
26732
LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim
 
26733
LIBCURL!$LIBCURL$ac_delim
 
26734
FAKE_CURL_TRUE!$FAKE_CURL_TRUE$ac_delim
 
26735
FAKE_CURL_FALSE!$FAKE_CURL_FALSE$ac_delim
 
26736
GPGKEYS_CURL!$GPGKEYS_CURL$ac_delim
 
26737
SENDMAIL!$SENDMAIL$ac_delim
 
26738
GPGKEYS_MAILTO!$GPGKEYS_MAILTO$ac_delim
 
26739
LIBICONV!$LIBICONV$ac_delim
 
26740
LTLIBICONV!$LTLIBICONV$ac_delim
 
26741
USE_NLS!$USE_NLS$ac_delim
 
26742
GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
 
26743
MSGFMT!$MSGFMT$ac_delim
 
26744
GMSGFMT!$GMSGFMT$ac_delim
 
26745
MSGFMT_015!$MSGFMT_015$ac_delim
 
26746
GMSGFMT_015!$GMSGFMT_015$ac_delim
 
26747
XGETTEXT!$XGETTEXT$ac_delim
 
26748
XGETTEXT_015!$XGETTEXT_015$ac_delim
 
26749
MSGMERGE!$MSGMERGE$ac_delim
 
26750
XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
 
26751
INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
 
26752
INTLLIBS!$INTLLIBS$ac_delim
 
26753
LIBINTL!$LIBINTL$ac_delim
 
26754
LTLIBINTL!$LTLIBINTL$ac_delim
 
26755
POSUB!$POSUB$ac_delim
 
26756
USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
 
26757
BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
 
26758
GREP!$GREP$ac_delim
 
26759
EGREP!$EGREP$ac_delim
 
26760
GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
 
26761
GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
 
26762
ALLOCA!$ALLOCA$ac_delim
 
26763
ALLOCA_H!$ALLOCA_H$ac_delim
 
26764
LIBOBJS!$LIBOBJS$ac_delim
 
26765
HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
 
26766
HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
 
26767
HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
 
26768
HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
 
26769
HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
 
26770
ABSOLUTE_STDINT_H!$ABSOLUTE_STDINT_H$ac_delim
 
26771
HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
 
26772
HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
 
26773
HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
 
26774
BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
 
26775
_ACEOF
 
26776
 
 
26777
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
26778
    break
 
26779
  elif $ac_last_try; then
 
26780
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
26781
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
26782
   { (exit 1); exit 1; }; }
 
26783
  else
 
26784
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
26785
  fi
 
26786
done
 
26787
 
 
26788
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
26789
if test -n "$ac_eof"; then
 
26790
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
26791
  ac_eof=`expr $ac_eof + 1`
 
26792
fi
 
26793
 
 
26794
cat >>$CONFIG_STATUS <<_ACEOF
 
26795
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
26796
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
26797
_ACEOF
 
26798
sed '
 
26799
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
26800
s/^/s,@/; s/!/@,|#_!!_#|/
 
26801
:n
 
26802
t n
 
26803
s/'"$ac_delim"'$/,g/; t
 
26804
s/$/\\/; p
 
26805
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
26806
' >>$CONFIG_STATUS <conf$$subs.sed
 
26807
rm -f conf$$subs.sed
 
26808
cat >>$CONFIG_STATUS <<_ACEOF
 
26809
CEOF$ac_eof
 
26810
_ACEOF
 
26811
 
 
26812
 
 
26813
ac_delim='%!_!# '
 
26814
for ac_last_try in false false false false false :; do
 
26815
  cat >conf$$subs.sed <<_ACEOF
 
26816
BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
 
26817
BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
 
26818
BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
 
26819
BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
 
26820
HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
 
26821
HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
 
26822
HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
 
26823
PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
 
26824
SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
 
26825
SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
 
26826
WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
 
26827
WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
 
26828
STDINT_H!$STDINT_H$ac_delim
 
26829
UNISTD_H!$UNISTD_H$ac_delim
 
26830
LIBGNU_LIBDEPS!$LIBGNU_LIBDEPS$ac_delim
 
26831
LIBGNU_LTLIBDEPS!$LIBGNU_LTLIBDEPS$ac_delim
 
26832
DISABLE_REGEX_TRUE!$DISABLE_REGEX_TRUE$ac_delim
 
26833
DISABLE_REGEX_FALSE!$DISABLE_REGEX_FALSE$ac_delim
 
26834
ENABLE_BZIP2_SUPPORT_TRUE!$ENABLE_BZIP2_SUPPORT_TRUE$ac_delim
 
26835
ENABLE_BZIP2_SUPPORT_FALSE!$ENABLE_BZIP2_SUPPORT_FALSE$ac_delim
 
26836
ZLIBS!$ZLIBS$ac_delim
 
26837
LIBREADLINE!$LIBREADLINE$ac_delim
 
26838
CROSS_COMPILING_TRUE!$CROSS_COMPILING_TRUE$ac_delim
 
26839
CROSS_COMPILING_FALSE!$CROSS_COMPILING_FALSE$ac_delim
 
26840
NETLIBS!$NETLIBS$ac_delim
 
26841
W32SOCKLIBS!$W32SOCKLIBS$ac_delim
 
26842
BUILD_GPG_TRUE!$BUILD_GPG_TRUE$ac_delim
 
26843
BUILD_GPG_FALSE!$BUILD_GPG_FALSE$ac_delim
 
26844
BUILD_GPGSM_TRUE!$BUILD_GPGSM_TRUE$ac_delim
 
26845
BUILD_GPGSM_FALSE!$BUILD_GPGSM_FALSE$ac_delim
 
26846
BUILD_AGENT_TRUE!$BUILD_AGENT_TRUE$ac_delim
 
26847
BUILD_AGENT_FALSE!$BUILD_AGENT_FALSE$ac_delim
 
26848
BUILD_SCDAEMON_TRUE!$BUILD_SCDAEMON_TRUE$ac_delim
 
26849
BUILD_SCDAEMON_FALSE!$BUILD_SCDAEMON_FALSE$ac_delim
 
26850
BUILD_TOOLS_TRUE!$BUILD_TOOLS_TRUE$ac_delim
 
26851
BUILD_TOOLS_FALSE!$BUILD_TOOLS_FALSE$ac_delim
 
26852
BUILD_DOC_TRUE!$BUILD_DOC_TRUE$ac_delim
 
26853
BUILD_DOC_FALSE!$BUILD_DOC_FALSE$ac_delim
 
26854
BUILD_SYMCRYPTRUN_TRUE!$BUILD_SYMCRYPTRUN_TRUE$ac_delim
 
26855
BUILD_SYMCRYPTRUN_FALSE!$BUILD_SYMCRYPTRUN_FALSE$ac_delim
 
26856
RUN_GPG_TESTS_TRUE!$RUN_GPG_TESTS_TRUE$ac_delim
 
26857
RUN_GPG_TESTS_FALSE!$RUN_GPG_TESTS_FALSE$ac_delim
 
26858
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
26859
_ACEOF
 
26860
 
 
26861
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then
 
26862
    break
 
26863
  elif $ac_last_try; then
 
26864
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
26865
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
26866
   { (exit 1); exit 1; }; }
 
26867
  else
 
26868
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
26869
  fi
 
26870
done
 
26871
 
 
26872
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
26873
if test -n "$ac_eof"; then
 
26874
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
26875
  ac_eof=`expr $ac_eof + 1`
 
26876
fi
 
26877
 
 
26878
cat >>$CONFIG_STATUS <<_ACEOF
 
26879
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 
26880
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
26881
_ACEOF
 
26882
sed '
 
26883
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
26884
s/^/s,@/; s/!/@,|#_!!_#|/
 
26885
:n
 
26886
t n
 
26887
s/'"$ac_delim"'$/,g/; t
 
26888
s/$/\\/; p
 
26889
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
26890
' >>$CONFIG_STATUS <conf$$subs.sed
 
26891
rm -f conf$$subs.sed
 
26892
cat >>$CONFIG_STATUS <<_ACEOF
 
26893
:end
 
26894
s/|#_!!_#|//g
 
26895
CEOF$ac_eof
 
26896
_ACEOF
 
26897
 
 
26898
 
 
26899
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
26900
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
26901
# trailing colons and then remove the whole line if VPATH becomes empty
 
26902
# (actually we leave an empty line to preserve line numbers).
 
26903
if test "x$srcdir" = x.; then
 
26904
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
26905
s/:*\$(srcdir):*/:/
 
26906
s/:*\${srcdir}:*/:/
 
26907
s/:*@srcdir@:*/:/
 
26908
s/^\([^=]*=[     ]*\):*/\1/
 
26909
s/:*$//
 
26910
s/^[^=]*=[       ]*$//
 
26911
}'
 
26912
fi
 
26913
 
 
26914
cat >>$CONFIG_STATUS <<\_ACEOF
26969
26915
fi # test -n "$CONFIG_FILES"
26970
26916
 
26971
 
_ACEOF
26972
 
cat >>$CONFIG_STATUS <<\_ACEOF
26973
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26974
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26975
 
  case $ac_file in
26976
 
  - | *:- | *:-:* ) # input from stdin
26977
 
        cat >$tmp/stdin
26978
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26979
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26980
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26981
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26982
 
  * )   ac_file_in=$ac_file.in ;;
26983
 
  esac
26984
 
 
26985
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26986
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
26917
 
 
26918
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
26919
do
 
26920
  case $ac_tag in
 
26921
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
26922
  esac
 
26923
  case $ac_mode$ac_tag in
 
26924
  :[FHL]*:*);;
 
26925
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
26926
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
26927
   { (exit 1); exit 1; }; };;
 
26928
  :[FH]-) ac_tag=-:-;;
 
26929
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
26930
  esac
 
26931
  ac_save_IFS=$IFS
 
26932
  IFS=:
 
26933
  set x $ac_tag
 
26934
  IFS=$ac_save_IFS
 
26935
  shift
 
26936
  ac_file=$1
 
26937
  shift
 
26938
 
 
26939
  case $ac_mode in
 
26940
  :L) ac_source=$1;;
 
26941
  :[FH])
 
26942
    ac_file_inputs=
 
26943
    for ac_f
 
26944
    do
 
26945
      case $ac_f in
 
26946
      -) ac_f="$tmp/stdin";;
 
26947
      *) # Look for the file first in the build tree, then in the source tree
 
26948
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
26949
         # because $ac_f cannot contain `:'.
 
26950
         test -f "$ac_f" ||
 
26951
           case $ac_f in
 
26952
           [\\/$]*) false;;
 
26953
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
26954
           esac ||
 
26955
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
26956
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
26957
   { (exit 1); exit 1; }; };;
 
26958
      esac
 
26959
      ac_file_inputs="$ac_file_inputs $ac_f"
 
26960
    done
 
26961
 
 
26962
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
26963
    # use $as_me), people would be surprised to read:
 
26964
    #    /* config.h.  Generated by config.status.  */
 
26965
    configure_input="Generated from "`IFS=:
 
26966
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
26967
    if test x"$ac_file" != x-; then
 
26968
      configure_input="$ac_file.  $configure_input"
 
26969
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
26970
echo "$as_me: creating $ac_file" >&6;}
 
26971
    fi
 
26972
 
 
26973
    case $ac_tag in
 
26974
    *:-:* | *:-) cat >"$tmp/stdin";;
 
26975
    esac
 
26976
    ;;
 
26977
  esac
 
26978
 
 
26979
  ac_dir=`$as_dirname -- "$ac_file" ||
26987
26980
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26988
26981
         X"$ac_file" : 'X\(//\)[^/]' \| \
26989
26982
         X"$ac_file" : 'X\(//\)$' \| \
26990
 
         X"$ac_file" : 'X\(/\)' \| \
26991
 
         .     : '\(.\)' 2>/dev/null ||
 
26983
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26992
26984
echo X"$ac_file" |
26993
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26994
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26995
 
          /^X\(\/\/\)$/{ s//\1/; q; }
26996
 
          /^X\(\/\).*/{ s//\1/; q; }
26997
 
          s/.*/./; q'`
26998
 
  { if $as_mkdir_p; then
26999
 
    mkdir -p "$ac_dir"
27000
 
  else
27001
 
    as_dir="$ac_dir"
 
26985
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
26986
            s//\1/
 
26987
            q
 
26988
          }
 
26989
          /^X\(\/\/\)[^/].*/{
 
26990
            s//\1/
 
26991
            q
 
26992
          }
 
26993
          /^X\(\/\/\)$/{
 
26994
            s//\1/
 
26995
            q
 
26996
          }
 
26997
          /^X\(\/\).*/{
 
26998
            s//\1/
 
26999
            q
 
27000
          }
 
27001
          s/.*/./; q'`
 
27002
  { as_dir="$ac_dir"
 
27003
  case $as_dir in #(
 
27004
  -*) as_dir=./$as_dir;;
 
27005
  esac
 
27006
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27002
27007
    as_dirs=
27003
 
    while test ! -d "$as_dir"; do
27004
 
      as_dirs="$as_dir $as_dirs"
27005
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
27008
    while :; do
 
27009
      case $as_dir in #(
 
27010
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
27011
      *) as_qdir=$as_dir;;
 
27012
      esac
 
27013
      as_dirs="'$as_qdir' $as_dirs"
 
27014
      as_dir=`$as_dirname -- "$as_dir" ||
27006
27015
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27007
27016
         X"$as_dir" : 'X\(//\)[^/]' \| \
27008
27017
         X"$as_dir" : 'X\(//\)$' \| \
27009
 
         X"$as_dir" : 'X\(/\)' \| \
27010
 
         .     : '\(.\)' 2>/dev/null ||
 
27018
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27011
27019
echo X"$as_dir" |
27012
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27013
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27014
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27015
 
          /^X\(\/\).*/{ s//\1/; q; }
27016
 
          s/.*/./; q'`
 
27020
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
27021
            s//\1/
 
27022
            q
 
27023
          }
 
27024
          /^X\(\/\/\)[^/].*/{
 
27025
            s//\1/
 
27026
            q
 
27027
          }
 
27028
          /^X\(\/\/\)$/{
 
27029
            s//\1/
 
27030
            q
 
27031
          }
 
27032
          /^X\(\/\).*/{
 
27033
            s//\1/
 
27034
            q
 
27035
          }
 
27036
          s/.*/./; q'`
 
27037
      test -d "$as_dir" && break
27017
27038
    done
27018
 
    test ! -n "$as_dirs" || mkdir $as_dirs
27019
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27020
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
27039
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
27040
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
27041
echo "$as_me: error: cannot create directory $as_dir" >&2;}
27021
27042
   { (exit 1); exit 1; }; }; }
27022
 
 
27023
27043
  ac_builddir=.
27024
27044
 
27025
 
if test "$ac_dir" != .; then
 
27045
case "$ac_dir" in
 
27046
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
27047
*)
27026
27048
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27027
 
  # A "../" for each directory in $ac_dir_suffix.
27028
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27029
 
else
27030
 
  ac_dir_suffix= ac_top_builddir=
27031
 
fi
 
27049
  # A ".." for each directory in $ac_dir_suffix.
 
27050
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
27051
  case $ac_top_builddir_sub in
 
27052
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
27053
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
27054
  esac ;;
 
27055
esac
 
27056
ac_abs_top_builddir=$ac_pwd
 
27057
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
27058
# for backward compatibility:
 
27059
ac_top_builddir=$ac_top_build_prefix
27032
27060
 
27033
27061
case $srcdir in
27034
 
  .)  # No --srcdir option.  We are building in place.
 
27062
  .)  # We are building in place.
27035
27063
    ac_srcdir=.
27036
 
    if test -z "$ac_top_builddir"; then
27037
 
       ac_top_srcdir=.
27038
 
    else
27039
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27040
 
    fi ;;
27041
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
27064
    ac_top_srcdir=$ac_top_builddir_sub
 
27065
    ac_abs_top_srcdir=$ac_pwd ;;
 
27066
  [\\/]* | ?:[\\/]* )  # Absolute name.
27042
27067
    ac_srcdir=$srcdir$ac_dir_suffix;
27043
 
    ac_top_srcdir=$srcdir ;;
27044
 
  *) # Relative path.
27045
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27046
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
27047
 
esac
27048
 
 
27049
 
# Do not use `cd foo && pwd` to compute absolute paths, because
27050
 
# the directories may not exist.
27051
 
case `pwd` in
27052
 
.) ac_abs_builddir="$ac_dir";;
27053
 
*)
27054
 
  case "$ac_dir" in
27055
 
  .) ac_abs_builddir=`pwd`;;
27056
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27057
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
27058
 
  esac;;
27059
 
esac
27060
 
case $ac_abs_builddir in
27061
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27062
 
*)
27063
 
  case ${ac_top_builddir}. in
27064
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
27065
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27066
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27067
 
  esac;;
27068
 
esac
27069
 
case $ac_abs_builddir in
27070
 
.) ac_abs_srcdir=$ac_srcdir;;
27071
 
*)
27072
 
  case $ac_srcdir in
27073
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
27074
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27075
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27076
 
  esac;;
27077
 
esac
27078
 
case $ac_abs_builddir in
27079
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
27080
 
*)
27081
 
  case $ac_top_srcdir in
27082
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
27083
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27084
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27085
 
  esac;;
27086
 
esac
27087
 
 
 
27068
    ac_top_srcdir=$srcdir
 
27069
    ac_abs_top_srcdir=$srcdir ;;
 
27070
  *) # Relative name.
 
27071
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
27072
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
27073
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
27074
esac
 
27075
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
27076
 
 
27077
 
 
27078
  case $ac_mode in
 
27079
  :F)
 
27080
  #
 
27081
  # CONFIG_FILE
 
27082
  #
27088
27083
 
27089
27084
  case $INSTALL in
27090
27085
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27091
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27092
 
  esac
27093
 
 
27094
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
27095
 
  # use $as_me), people would be surprised to read:
27096
 
  #    /* config.h.  Generated by config.status.  */
27097
 
  if test x"$ac_file" = x-; then
27098
 
    configure_input=
27099
 
  else
27100
 
    configure_input="$ac_file.  "
27101
 
  fi
27102
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
27103
 
                                     sed 's,.*/,,'` by configure."
27104
 
 
27105
 
  # First look for the input files in the build tree, otherwise in the
27106
 
  # src tree.
27107
 
  ac_file_inputs=`IFS=:
27108
 
    for f in $ac_file_in; do
27109
 
      case $f in
27110
 
      -) echo $tmp/stdin ;;
27111
 
      [\\/$]*)
27112
 
         # Absolute (can't be DOS-style, as IFS=:)
27113
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27114
 
echo "$as_me: error: cannot find input file: $f" >&2;}
27115
 
   { (exit 1); exit 1; }; }
27116
 
         echo "$f";;
27117
 
      *) # Relative
27118
 
         if test -f "$f"; then
27119
 
           # Build tree
27120
 
           echo "$f"
27121
 
         elif test -f "$srcdir/$f"; then
27122
 
           # Source tree
27123
 
           echo "$srcdir/$f"
27124
 
         else
27125
 
           # /dev/null tree
27126
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27127
 
echo "$as_me: error: cannot find input file: $f" >&2;}
27128
 
   { (exit 1); exit 1; }; }
27129
 
         fi;;
27130
 
      esac
27131
 
    done` || { (exit 1); exit 1; }
27132
 
 
27133
 
  if test x"$ac_file" != x-; then
27134
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
27135
 
echo "$as_me: creating $ac_file" >&6;}
27136
 
    rm -f "$ac_file"
27137
 
  fi
27138
 
_ACEOF
 
27086
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
27087
  esac
 
27088
  ac_MKDIR_P=$MKDIR_P
 
27089
  case $MKDIR_P in
 
27090
  [\\/$]* | ?:[\\/]* ) ;;
 
27091
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
27092
  esac
 
27093
_ACEOF
 
27094
 
 
27095
cat >>$CONFIG_STATUS <<\_ACEOF
 
27096
# If the template does not know about datarootdir, expand it.
 
27097
# FIXME: This hack should be removed a few years after 2.60.
 
27098
ac_datarootdir_hack=; ac_datarootdir_seen=
 
27099
 
 
27100
case `sed -n '/datarootdir/ {
 
27101
  p
 
27102
  q
 
27103
}
 
27104
/@datadir@/p
 
27105
/@docdir@/p
 
27106
/@infodir@/p
 
27107
/@localedir@/p
 
27108
/@mandir@/p
 
27109
' $ac_file_inputs` in
 
27110
*datarootdir*) ac_datarootdir_seen=yes;;
 
27111
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
27112
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
27113
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
27114
_ACEOF
 
27115
cat >>$CONFIG_STATUS <<_ACEOF
 
27116
  ac_datarootdir_hack='
 
27117
  s&@datadir@&$datadir&g
 
27118
  s&@docdir@&$docdir&g
 
27119
  s&@infodir@&$infodir&g
 
27120
  s&@localedir@&$localedir&g
 
27121
  s&@mandir@&$mandir&g
 
27122
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
27123
esac
 
27124
_ACEOF
 
27125
 
 
27126
# Neutralize VPATH when `$srcdir' = `.'.
 
27127
# Shell code in configure.ac might set extrasub.
 
27128
# FIXME: do we really want to maintain this feature?
27139
27129
cat >>$CONFIG_STATUS <<_ACEOF
27140
27130
  sed "$ac_vpsub
27141
27131
$extrasub
27143
27133
cat >>$CONFIG_STATUS <<\_ACEOF
27144
27134
:t
27145
27135
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27146
 
s,@configure_input@,$configure_input,;t t
27147
 
s,@srcdir@,$ac_srcdir,;t t
27148
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
27149
 
s,@top_srcdir@,$ac_top_srcdir,;t t
27150
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27151
 
s,@builddir@,$ac_builddir,;t t
27152
 
s,@abs_builddir@,$ac_abs_builddir,;t t
27153
 
s,@top_builddir@,$ac_top_builddir,;t t
27154
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27155
 
s,@INSTALL@,$ac_INSTALL,;t t
27156
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27157
 
  rm -f $tmp/stdin
27158
 
  if test x"$ac_file" != x-; then
27159
 
    mv $tmp/out $ac_file
27160
 
  else
27161
 
    cat $tmp/out
27162
 
    rm -f $tmp/out
27163
 
  fi
27164
 
 
27165
 
done
 
27136
s&@configure_input@&$configure_input&;t t
 
27137
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
27138
s&@srcdir@&$ac_srcdir&;t t
 
27139
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
27140
s&@top_srcdir@&$ac_top_srcdir&;t t
 
27141
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
27142
s&@builddir@&$ac_builddir&;t t
 
27143
s&@abs_builddir@&$ac_abs_builddir&;t t
 
27144
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
27145
s&@INSTALL@&$ac_INSTALL&;t t
 
27146
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
27147
$ac_datarootdir_hack
 
27148
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
 
27149
 
 
27150
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
27151
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
27152
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
27153
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
27154
which seems to be undefined.  Please make sure it is defined." >&5
 
27155
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
27156
which seems to be undefined.  Please make sure it is defined." >&2;}
 
27157
 
 
27158
  rm -f "$tmp/stdin"
 
27159
  case $ac_file in
 
27160
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
27161
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
27162
  esac
 
27163
 ;;
 
27164
  :H)
 
27165
  #
 
27166
  # CONFIG_HEADER
 
27167
  #
27166
27168
_ACEOF
27167
 
cat >>$CONFIG_STATUS <<\_ACEOF
27168
 
 
27169
 
#
27170
 
# CONFIG_HEADER section.
27171
 
#
27172
 
 
27173
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27174
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
27175
 
#
27176
 
# ac_d sets the value in "#define NAME VALUE" lines.
27177
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27178
 
ac_dB='[         ].*$,\1#\2'
 
27169
 
 
27170
# Transform confdefs.h into a sed script `conftest.defines', that
 
27171
# substitutes the proper values into config.h.in to produce config.h.
 
27172
rm -f conftest.defines conftest.tail
 
27173
# First, append a space to every undef/define line, to ease matching.
 
27174
echo 's/$/ /' >conftest.defines
 
27175
# Then, protect against being on the right side of a sed subst, or in
 
27176
# an unquoted here document, in config.status.  If some macros were
 
27177
# called several times there might be several #defines for the same
 
27178
# symbol, which is useless.  But do not sort them, since the last
 
27179
# AC_DEFINE must be honored.
 
27180
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
27181
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
27182
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
27183
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
27184
# just an empty string.
 
27185
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
27186
ac_dB='\\)[      (].*,\\1define\\2'
27179
27187
ac_dC=' '
27180
 
ac_dD=',;t'
27181
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27182
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27183
 
ac_uB='$,\1#\2define\3'
27184
 
ac_uC=' '
27185
 
ac_uD=',;t'
27186
 
 
27187
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27188
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27189
 
  case $ac_file in
27190
 
  - | *:- | *:-:* ) # input from stdin
27191
 
        cat >$tmp/stdin
27192
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27193
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27194
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27195
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27196
 
  * )   ac_file_in=$ac_file.in ;;
27197
 
  esac
27198
 
 
27199
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27200
 
echo "$as_me: creating $ac_file" >&6;}
27201
 
 
27202
 
  # First look for the input files in the build tree, otherwise in the
27203
 
  # src tree.
27204
 
  ac_file_inputs=`IFS=:
27205
 
    for f in $ac_file_in; do
27206
 
      case $f in
27207
 
      -) echo $tmp/stdin ;;
27208
 
      [\\/$]*)
27209
 
         # Absolute (can't be DOS-style, as IFS=:)
27210
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27211
 
echo "$as_me: error: cannot find input file: $f" >&2;}
27212
 
   { (exit 1); exit 1; }; }
27213
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
27214
 
         echo "$f";;
27215
 
      *) # Relative
27216
 
         if test -f "$f"; then
27217
 
           # Build tree
27218
 
           echo "$f"
27219
 
         elif test -f "$srcdir/$f"; then
27220
 
           # Source tree
27221
 
           echo "$srcdir/$f"
27222
 
         else
27223
 
           # /dev/null tree
27224
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27225
 
echo "$as_me: error: cannot find input file: $f" >&2;}
27226
 
   { (exit 1); exit 1; }; }
27227
 
         fi;;
27228
 
      esac
27229
 
    done` || { (exit 1); exit 1; }
27230
 
  # Remove the trailing spaces.
27231
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27232
 
 
27233
 
_ACEOF
27234
 
 
27235
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
27236
 
# `conftest.undefs', that substitutes the proper values into
27237
 
# config.h.in to produce config.h.  The first handles `#define'
27238
 
# templates, and the second `#undef' templates.
27239
 
# And first: Protect against being on the right side of a sed subst in
27240
 
# config.status.  Protect against being in an unquoted here document
27241
 
# in config.status.
27242
 
rm -f conftest.defines conftest.undefs
27243
 
# Using a here document instead of a string reduces the quoting nightmare.
27244
 
# Putting comments in sed scripts is not portable.
27245
 
#
27246
 
# `end' is used to avoid that the second main sed command (meant for
27247
 
# 0-ary CPP macros) applies to n-ary macro definitions.
27248
 
# See the Autoconf documentation for `clear'.
27249
 
cat >confdef2sed.sed <<\_ACEOF
27250
 
s/[\\&,]/\\&/g
27251
 
s,[\\$`],\\&,g
27252
 
t clear
27253
 
: clear
27254
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27255
 
t end
27256
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27257
 
: end
27258
 
_ACEOF
27259
 
# If some macros were called several times there might be several times
27260
 
# the same #defines, which is useless.  Nevertheless, we may not want to
27261
 
# sort them, since we want the *last* AC-DEFINE to be honored.
27262
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27263
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27264
 
rm -f confdef2sed.sed
27265
 
 
27266
 
# This sed command replaces #undef with comments.  This is necessary, for
 
27188
ac_dD=' ,'
 
27189
 
 
27190
uniq confdefs.h |
 
27191
  sed -n '
 
27192
        t rset
 
27193
        :rset
 
27194
        s/^[     ]*#[    ]*define[       ][      ]*//
 
27195
        t ok
 
27196
        d
 
27197
        :ok
 
27198
        s/[\\&,]/\\&/g
 
27199
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
27200
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
27201
  ' >>conftest.defines
 
27202
 
 
27203
# Remove the space that was appended to ease matching.
 
27204
# Then replace #undef with comments.  This is necessary, for
27267
27205
# example, in the case of _POSIX_SOURCE, which is predefined and required
27268
27206
# on some systems where configure will not decide to define it.
27269
 
cat >>conftest.undefs <<\_ACEOF
27270
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
27207
# (The regexp can be short, since the line contains either #define or #undef.)
 
27208
echo 's/ $//
 
27209
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
27210
 
 
27211
# Break up conftest.defines:
 
27212
ac_max_sed_lines=50
 
27213
 
 
27214
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
27215
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
27216
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
27217
# et cetera.
 
27218
ac_in='$ac_file_inputs'
 
27219
ac_out='"$tmp/out1"'
 
27220
ac_nxt='"$tmp/out2"'
 
27221
 
 
27222
while :
 
27223
do
 
27224
  # Write a here document:
 
27225
    cat >>$CONFIG_STATUS <<_ACEOF
 
27226
    # First, check the format of the line:
 
27227
    cat >"\$tmp/defines.sed" <<\\CEOF
 
27228
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
27229
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
27230
b
 
27231
:def
27271
27232
_ACEOF
27272
 
 
27273
 
# Break up conftest.defines because some shells have a limit on the size
27274
 
# of here documents, and old seds have small limits too (100 cmds).
27275
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27276
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27277
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27278
 
echo '  :' >>$CONFIG_STATUS
27279
 
rm -f conftest.tail
27280
 
while grep . conftest.defines >/dev/null
27281
 
do
27282
 
  # Write a limited-size here document to $tmp/defines.sed.
27283
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27284
 
  # Speed up: don't consider the non `#define' lines.
27285
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27286
 
  # Work around the forget-to-reset-the-flag bug.
27287
 
  echo 't clr' >>$CONFIG_STATUS
27288
 
  echo ': clr' >>$CONFIG_STATUS
27289
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
27233
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27290
27234
  echo 'CEOF
27291
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
27292
 
  rm -f $tmp/in
27293
 
  mv $tmp/out $tmp/in
27294
 
' >>$CONFIG_STATUS
27295
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
27235
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
27236
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
27237
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
27238
  grep . conftest.tail >/dev/null || break
27296
27239
  rm -f conftest.defines
27297
27240
  mv conftest.tail conftest.defines
27298
27241
done
27299
 
rm -f conftest.defines
27300
 
echo '  fi # grep' >>$CONFIG_STATUS
27301
 
echo >>$CONFIG_STATUS
27302
 
 
27303
 
# Break up conftest.undefs because some shells have a limit on the size
27304
 
# of here documents, and old seds have small limits too (100 cmds).
27305
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27306
 
rm -f conftest.tail
27307
 
while grep . conftest.undefs >/dev/null
27308
 
do
27309
 
  # Write a limited-size here document to $tmp/undefs.sed.
27310
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27311
 
  # Speed up: don't consider the non `#undef'
27312
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27313
 
  # Work around the forget-to-reset-the-flag bug.
27314
 
  echo 't clr' >>$CONFIG_STATUS
27315
 
  echo ': clr' >>$CONFIG_STATUS
27316
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27317
 
  echo 'CEOF
27318
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27319
 
  rm -f $tmp/in
27320
 
  mv $tmp/out $tmp/in
27321
 
' >>$CONFIG_STATUS
27322
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27323
 
  rm -f conftest.undefs
27324
 
  mv conftest.tail conftest.undefs
27325
 
done
27326
 
rm -f conftest.undefs
27327
 
 
 
27242
rm -f conftest.defines conftest.tail
 
27243
 
 
27244
echo "ac_result=$ac_in" >>$CONFIG_STATUS
27328
27245
cat >>$CONFIG_STATUS <<\_ACEOF
27329
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
27330
 
  # use $as_me), people would be surprised to read:
27331
 
  #    /* config.h.  Generated by config.status.  */
27332
 
  if test x"$ac_file" = x-; then
27333
 
    echo "/* Generated by configure.  */" >$tmp/config.h
27334
 
  else
27335
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27336
 
  fi
27337
 
  cat $tmp/in >>$tmp/config.h
27338
 
  rm -f $tmp/in
27339
27246
  if test x"$ac_file" != x-; then
27340
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
27247
    echo "/* $configure_input  */" >"$tmp/config.h"
 
27248
    cat "$ac_result" >>"$tmp/config.h"
 
27249
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27341
27250
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27342
27251
echo "$as_me: $ac_file is unchanged" >&6;}
27343
27252
    else
27344
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27345
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27346
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
27347
 
         X"$ac_file" : 'X\(//\)$' \| \
27348
 
         X"$ac_file" : 'X\(/\)' \| \
27349
 
         .     : '\(.\)' 2>/dev/null ||
27350
 
echo X"$ac_file" |
27351
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27352
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27353
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27354
 
          /^X\(\/\).*/{ s//\1/; q; }
27355
 
          s/.*/./; q'`
27356
 
      { if $as_mkdir_p; then
27357
 
    mkdir -p "$ac_dir"
27358
 
  else
27359
 
    as_dir="$ac_dir"
27360
 
    as_dirs=
27361
 
    while test ! -d "$as_dir"; do
27362
 
      as_dirs="$as_dir $as_dirs"
27363
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27364
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27365
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
27366
 
         X"$as_dir" : 'X\(//\)$' \| \
27367
 
         X"$as_dir" : 'X\(/\)' \| \
27368
 
         .     : '\(.\)' 2>/dev/null ||
27369
 
echo X"$as_dir" |
27370
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27371
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27372
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27373
 
          /^X\(\/\).*/{ s//\1/; q; }
27374
 
          s/.*/./; q'`
27375
 
    done
27376
 
    test ! -n "$as_dirs" || mkdir $as_dirs
27377
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27378
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27379
 
   { (exit 1); exit 1; }; }; }
27380
 
 
27381
27253
      rm -f $ac_file
27382
 
      mv $tmp/config.h $ac_file
 
27254
      mv "$tmp/config.h" $ac_file
27383
27255
    fi
27384
27256
  else
27385
 
    cat $tmp/config.h
27386
 
    rm -f $tmp/config.h
 
27257
    echo "/* $configure_input  */"
 
27258
    cat "$ac_result"
27387
27259
  fi
 
27260
  rm -f "$tmp/out12"
27388
27261
# Compute $ac_file's index in $config_headers.
27389
27262
_am_stamp_count=1
27390
27263
for _am_header in $config_headers :; do
27395
27268
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27396
27269
  esac
27397
27270
done
27398
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
27271
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27399
27272
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27400
27273
         X$ac_file : 'X\(//\)[^/]' \| \
27401
27274
         X$ac_file : 'X\(//\)$' \| \
27402
 
         X$ac_file : 'X\(/\)' \| \
27403
 
         .     : '\(.\)' 2>/dev/null ||
 
27275
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27404
27276
echo X$ac_file |
27405
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27406
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27407
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27408
 
          /^X\(\/\).*/{ s//\1/; q; }
27409
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
27410
 
done
27411
 
_ACEOF
27412
 
cat >>$CONFIG_STATUS <<\_ACEOF
27413
 
 
27414
 
#
27415
 
# CONFIG_LINKS section.
27416
 
#
27417
 
 
27418
 
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27419
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27420
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27421
 
 
27422
 
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27423
 
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27424
 
 
27425
 
  if test ! -r $srcdir/$ac_source; then
27426
 
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27427
 
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27428
 
   { (exit 1); exit 1; }; }
27429
 
  fi
27430
 
  rm -f $ac_dest
27431
 
 
27432
 
  # Make relative symlinks.
27433
 
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27434
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27435
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
27436
 
         X"$ac_dest" : 'X\(//\)$' \| \
27437
 
         X"$ac_dest" : 'X\(/\)' \| \
27438
 
         .     : '\(.\)' 2>/dev/null ||
27439
 
echo X"$ac_dest" |
27440
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27441
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27442
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27443
 
          /^X\(\/\).*/{ s//\1/; q; }
27444
 
          s/.*/./; q'`
27445
 
  { if $as_mkdir_p; then
27446
 
    mkdir -p "$ac_dest_dir"
27447
 
  else
27448
 
    as_dir="$ac_dest_dir"
27449
 
    as_dirs=
27450
 
    while test ! -d "$as_dir"; do
27451
 
      as_dirs="$as_dir $as_dirs"
27452
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27453
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27454
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
27455
 
         X"$as_dir" : 'X\(//\)$' \| \
27456
 
         X"$as_dir" : 'X\(/\)' \| \
27457
 
         .     : '\(.\)' 2>/dev/null ||
27458
 
echo X"$as_dir" |
27459
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27460
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27461
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27462
 
          /^X\(\/\).*/{ s//\1/; q; }
27463
 
          s/.*/./; q'`
27464
 
    done
27465
 
    test ! -n "$as_dirs" || mkdir $as_dirs
27466
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27467
 
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27468
 
   { (exit 1); exit 1; }; }; }
27469
 
 
27470
 
  ac_builddir=.
27471
 
 
27472
 
if test "$ac_dest_dir" != .; then
27473
 
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27474
 
  # A "../" for each directory in $ac_dir_suffix.
27475
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27476
 
else
27477
 
  ac_dir_suffix= ac_top_builddir=
27478
 
fi
27479
 
 
27480
 
case $srcdir in
27481
 
  .)  # No --srcdir option.  We are building in place.
27482
 
    ac_srcdir=.
27483
 
    if test -z "$ac_top_builddir"; then
27484
 
       ac_top_srcdir=.
27485
 
    else
27486
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27487
 
    fi ;;
27488
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
27489
 
    ac_srcdir=$srcdir$ac_dir_suffix;
27490
 
    ac_top_srcdir=$srcdir ;;
27491
 
  *) # Relative path.
27492
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27493
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
27494
 
esac
27495
 
 
27496
 
# Do not use `cd foo && pwd` to compute absolute paths, because
27497
 
# the directories may not exist.
27498
 
case `pwd` in
27499
 
.) ac_abs_builddir="$ac_dest_dir";;
27500
 
*)
27501
 
  case "$ac_dest_dir" in
27502
 
  .) ac_abs_builddir=`pwd`;;
27503
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27504
 
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27505
 
  esac;;
27506
 
esac
27507
 
case $ac_abs_builddir in
27508
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27509
 
*)
27510
 
  case ${ac_top_builddir}. in
27511
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
27512
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27513
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27514
 
  esac;;
27515
 
esac
27516
 
case $ac_abs_builddir in
27517
 
.) ac_abs_srcdir=$ac_srcdir;;
27518
 
*)
27519
 
  case $ac_srcdir in
27520
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
27521
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27522
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27523
 
  esac;;
27524
 
esac
27525
 
case $ac_abs_builddir in
27526
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
27527
 
*)
27528
 
  case $ac_top_srcdir in
27529
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
27530
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27531
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27532
 
  esac;;
27533
 
esac
27534
 
 
27535
 
 
27536
 
  case $srcdir in
27537
 
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27538
 
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
 
27277
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
27278
            s//\1/
 
27279
            q
 
27280
          }
 
27281
          /^X\(\/\/\)[^/].*/{
 
27282
            s//\1/
 
27283
            q
 
27284
          }
 
27285
          /^X\(\/\/\)$/{
 
27286
            s//\1/
 
27287
            q
 
27288
          }
 
27289
          /^X\(\/\).*/{
 
27290
            s//\1/
 
27291
            q
 
27292
          }
 
27293
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
27294
 ;;
 
27295
 
 
27296
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
27297
echo "$as_me: executing $ac_file commands" >&6;}
 
27298
 ;;
27539
27299
  esac
27540
27300
 
27541
 
  # Try a symlink, then a hard link, then a copy.
27542
 
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27543
 
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27544
 
    cp -p $srcdir/$ac_source $ac_dest ||
27545
 
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27546
 
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27547
 
   { (exit 1); exit 1; }; }
27548
 
done
27549
 
_ACEOF
27550
 
cat >>$CONFIG_STATUS <<\_ACEOF
27551
 
 
27552
 
#
27553
 
# CONFIG_COMMANDS section.
27554
 
#
27555
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27556
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27557
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27558
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27559
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27560
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
27561
 
         X"$ac_dest" : 'X\(//\)$' \| \
27562
 
         X"$ac_dest" : 'X\(/\)' \| \
27563
 
         .     : '\(.\)' 2>/dev/null ||
27564
 
echo X"$ac_dest" |
27565
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27566
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27567
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27568
 
          /^X\(\/\).*/{ s//\1/; q; }
27569
 
          s/.*/./; q'`
27570
 
  { if $as_mkdir_p; then
27571
 
    mkdir -p "$ac_dir"
27572
 
  else
27573
 
    as_dir="$ac_dir"
27574
 
    as_dirs=
27575
 
    while test ! -d "$as_dir"; do
27576
 
      as_dirs="$as_dir $as_dirs"
27577
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27578
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27579
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
27580
 
         X"$as_dir" : 'X\(//\)$' \| \
27581
 
         X"$as_dir" : 'X\(/\)' \| \
27582
 
         .     : '\(.\)' 2>/dev/null ||
27583
 
echo X"$as_dir" |
27584
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27585
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27586
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27587
 
          /^X\(\/\).*/{ s//\1/; q; }
27588
 
          s/.*/./; q'`
27589
 
    done
27590
 
    test ! -n "$as_dirs" || mkdir $as_dirs
27591
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27592
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27593
 
   { (exit 1); exit 1; }; }; }
27594
 
 
27595
 
  ac_builddir=.
27596
 
 
27597
 
if test "$ac_dir" != .; then
27598
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27599
 
  # A "../" for each directory in $ac_dir_suffix.
27600
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27601
 
else
27602
 
  ac_dir_suffix= ac_top_builddir=
27603
 
fi
27604
 
 
27605
 
case $srcdir in
27606
 
  .)  # No --srcdir option.  We are building in place.
27607
 
    ac_srcdir=.
27608
 
    if test -z "$ac_top_builddir"; then
27609
 
       ac_top_srcdir=.
27610
 
    else
27611
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27612
 
    fi ;;
27613
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
27614
 
    ac_srcdir=$srcdir$ac_dir_suffix;
27615
 
    ac_top_srcdir=$srcdir ;;
27616
 
  *) # Relative path.
27617
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27618
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
27619
 
esac
27620
 
 
27621
 
# Do not use `cd foo && pwd` to compute absolute paths, because
27622
 
# the directories may not exist.
27623
 
case `pwd` in
27624
 
.) ac_abs_builddir="$ac_dir";;
27625
 
*)
27626
 
  case "$ac_dir" in
27627
 
  .) ac_abs_builddir=`pwd`;;
27628
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27629
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
27630
 
  esac;;
27631
 
esac
27632
 
case $ac_abs_builddir in
27633
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27634
 
*)
27635
 
  case ${ac_top_builddir}. in
27636
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
27637
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27638
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27639
 
  esac;;
27640
 
esac
27641
 
case $ac_abs_builddir in
27642
 
.) ac_abs_srcdir=$ac_srcdir;;
27643
 
*)
27644
 
  case $ac_srcdir in
27645
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
27646
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27647
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27648
 
  esac;;
27649
 
esac
27650
 
case $ac_abs_builddir in
27651
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
27652
 
*)
27653
 
  case $ac_top_srcdir in
27654
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
27655
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27656
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27657
 
  esac;;
27658
 
esac
27659
 
 
27660
 
 
27661
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27662
 
echo "$as_me: executing $ac_dest commands" >&6;}
27663
 
  case $ac_dest in
27664
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
27301
 
 
27302
  case $ac_file$ac_mode in
 
27303
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27665
27304
  # Strip MF so we end up with the name of the file.
27666
27305
  mf=`echo "$mf" | sed -e 's/:.*$//'`
27667
27306
  # Check whether this is an Automake generated Makefile or not.
27669
27308
  # some people rename them; so instead we look at the file content.
27670
27309
  # Grep'ing the first line is not enough: some people post-process
27671
27310
  # each Makefile.in and add a new line on top of each file to say so.
27672
 
  # So let's grep whole file.
27673
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27674
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
27311
  # Grep'ing the whole file is not good either: AIX grep has a line
 
27312
  # limit of 2048, but all sed's we know have understand at least 4000.
 
27313
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
27314
    dirpart=`$as_dirname -- "$mf" ||
27675
27315
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27676
27316
         X"$mf" : 'X\(//\)[^/]' \| \
27677
27317
         X"$mf" : 'X\(//\)$' \| \
27678
 
         X"$mf" : 'X\(/\)' \| \
27679
 
         .     : '\(.\)' 2>/dev/null ||
 
27318
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27680
27319
echo X"$mf" |
27681
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27682
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27683
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27684
 
          /^X\(\/\).*/{ s//\1/; q; }
27685
 
          s/.*/./; q'`
 
27320
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
27321
            s//\1/
 
27322
            q
 
27323
          }
 
27324
          /^X\(\/\/\)[^/].*/{
 
27325
            s//\1/
 
27326
            q
 
27327
          }
 
27328
          /^X\(\/\/\)$/{
 
27329
            s//\1/
 
27330
            q
 
27331
          }
 
27332
          /^X\(\/\).*/{
 
27333
            s//\1/
 
27334
            q
 
27335
          }
 
27336
          s/.*/./; q'`
27686
27337
  else
27687
27338
    continue
27688
27339
  fi
27704
27355
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27705
27356
    # Make sure the directory exists.
27706
27357
    test -f "$dirpart/$file" && continue
27707
 
    fdir=`(dirname "$file") 2>/dev/null ||
 
27358
    fdir=`$as_dirname -- "$file" ||
27708
27359
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27709
27360
         X"$file" : 'X\(//\)[^/]' \| \
27710
27361
         X"$file" : 'X\(//\)$' \| \
27711
 
         X"$file" : 'X\(/\)' \| \
27712
 
         .     : '\(.\)' 2>/dev/null ||
 
27362
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27713
27363
echo X"$file" |
27714
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27715
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27716
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27717
 
          /^X\(\/\).*/{ s//\1/; q; }
27718
 
          s/.*/./; q'`
27719
 
    { if $as_mkdir_p; then
27720
 
    mkdir -p $dirpart/$fdir
27721
 
  else
27722
 
    as_dir=$dirpart/$fdir
 
27364
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
27365
            s//\1/
 
27366
            q
 
27367
          }
 
27368
          /^X\(\/\/\)[^/].*/{
 
27369
            s//\1/
 
27370
            q
 
27371
          }
 
27372
          /^X\(\/\/\)$/{
 
27373
            s//\1/
 
27374
            q
 
27375
          }
 
27376
          /^X\(\/\).*/{
 
27377
            s//\1/
 
27378
            q
 
27379
          }
 
27380
          s/.*/./; q'`
 
27381
    { as_dir=$dirpart/$fdir
 
27382
  case $as_dir in #(
 
27383
  -*) as_dir=./$as_dir;;
 
27384
  esac
 
27385
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27723
27386
    as_dirs=
27724
 
    while test ! -d "$as_dir"; do
27725
 
      as_dirs="$as_dir $as_dirs"
27726
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
27387
    while :; do
 
27388
      case $as_dir in #(
 
27389
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
27390
      *) as_qdir=$as_dir;;
 
27391
      esac
 
27392
      as_dirs="'$as_qdir' $as_dirs"
 
27393
      as_dir=`$as_dirname -- "$as_dir" ||
27727
27394
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27728
27395
         X"$as_dir" : 'X\(//\)[^/]' \| \
27729
27396
         X"$as_dir" : 'X\(//\)$' \| \
27730
 
         X"$as_dir" : 'X\(/\)' \| \
27731
 
         .     : '\(.\)' 2>/dev/null ||
 
27397
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27732
27398
echo X"$as_dir" |
27733
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27734
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27735
 
          /^X\(\/\/\)$/{ s//\1/; q; }
27736
 
          /^X\(\/\).*/{ s//\1/; q; }
27737
 
          s/.*/./; q'`
 
27399
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
27400
            s//\1/
 
27401
            q
 
27402
          }
 
27403
          /^X\(\/\/\)[^/].*/{
 
27404
            s//\1/
 
27405
            q
 
27406
          }
 
27407
          /^X\(\/\/\)$/{
 
27408
            s//\1/
 
27409
            q
 
27410
          }
 
27411
          /^X\(\/\).*/{
 
27412
            s//\1/
 
27413
            q
 
27414
          }
 
27415
          s/.*/./; q'`
 
27416
      test -d "$as_dir" && break
27738
27417
    done
27739
 
    test ! -n "$as_dirs" || mkdir $as_dirs
27740
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27741
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
27418
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
27419
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
27420
echo "$as_me: error: cannot create directory $as_dir" >&2;}
27742
27421
   { (exit 1); exit 1; }; }; }
27743
 
 
27744
27422
    # echo "creating $dirpart/$file"
27745
27423
    echo '# dummy' > "$dirpart/$file"
27746
27424
  done
27747
27425
done
27748
27426
 ;;
27749
 
    default-1 )
 
27427
    "po-directories":C)
27750
27428
    for ac_file in $CONFIG_FILES; do
27751
27429
      # Support "outfile[:infile[:infile...]]"
27752
27430
      case "$ac_file" in
27766
27444
          /*) top_srcdir="$ac_given_srcdir" ;;
27767
27445
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
27768
27446
        esac
 
27447
        # Treat a directory as a PO directory if and only if it has a
 
27448
        # POTFILES.in file. This allows packages to have multiple PO
 
27449
        # directories under different names or in different locations.
27769
27450
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27770
27451
          rm -f "$ac_dir/POTFILES"
27771
27452
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27779
27460
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
27780
27461
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27781
27462
            fi
27782
 
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27783
 
            # Hide the ALL_LINGUAS assigment from automake.
 
27463
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
27464
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
27784
27465
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
27785
27466
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27786
27467
          else
27787
27468
            # The set of available languages was given in configure.in.
 
27469
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
27788
27470
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
27789
27471
          fi
27790
27472
          # Compute POFILES
27855
27537
        ;;
27856
27538
      esac
27857
27539
    done ;;
 
27540
 
27858
27541
  esac
27859
 
done
27860
 
_ACEOF
 
27542
done # for ac_tag
27861
27543
 
27862
 
cat >>$CONFIG_STATUS <<\_ACEOF
27863
27544
 
27864
27545
{ (exit 0); exit 0; }
27865
27546
_ACEOF
27889
27570
fi
27890
27571
 
27891
27572
 
27892
 
#tests/pkits/Makefile
27893
 
 
27894
 
 
27895
 
 
27896
27573
 
27897
27574
echo "
27898
27575
        GnuPG v${VERSION} has been configured as follows:
27909
27586
        Default pinentry:  $show_gnupg_pinentry_pgm
27910
27587
        Default scdaemon:  $show_gnupg_scdaemon_pgm
27911
27588
        Default dirmngr:   $show_gnupg_dirmngr_pgm
27912
 
 
27913
 
        PKITS based tests: $run_pkits_tests
27914
 
"
 
27589
"
 
27590
if test x"$use_regex" != xyes ; then
 
27591
echo "
 
27592
        Warning: No regular expression support available.
 
27593
                 OpenPGP trust signatures won't work.
 
27594
                 gpg-check-pattern will not be build.
 
27595
"
 
27596
fi
 
27597
if test  x"$use_camellia" = xyes ; then
 
27598
  echo
 
27599
  echo "WARNING: The Camellia cipher for gpg is for testing only"
 
27600
  echo "         and is NOT for production use!"
 
27601
  echo
 
27602
fi
27915
27603