~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to .pc/ftbfs_kfreebsd.diff/configure

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2010-11-24 12:26:31 UTC
  • mfrom: (1.6.1 upstream) (2.3.8 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124122631-upujekj1ek94h3x2
Tags: 1.10.6-1
* New upstream release:
  + Fixed FTBFS on alpha arch (Closes: #590257)
  + Added IPv6 support (Closes: #448390)
* debian/patches/ftbfs_kfreebsd.diff:
  + Dropped, merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.65 for aria2 1.10.0.
4
 
#
5
 
# Report bugs to <t-tujikawa@users.sourceforge.net>.
6
 
#
7
 
#
8
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
 
# Inc.
11
 
#
12
 
#
13
 
# This configure script is free software; the Free Software Foundation
14
 
# gives unlimited permission to copy, distribute and modify it.
15
 
## -------------------- ##
16
 
## M4sh Initialization. ##
17
 
## -------------------- ##
18
 
 
19
 
# Be more Bourne compatible
20
 
DUALCASE=1; export DUALCASE # for MKS sh
21
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
 
  emulate sh
23
 
  NULLCMD=:
24
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
 
  # is contrary to our usage.  Disable this feature.
26
 
  alias -g '${1+"$@"}'='"$@"'
27
 
  setopt NO_GLOB_SUBST
28
 
else
29
 
  case `(set -o) 2>/dev/null` in #(
30
 
  *posix*) :
31
 
    set -o posix ;; #(
32
 
  *) :
33
 
     ;;
34
 
esac
35
 
fi
36
 
 
37
 
 
38
 
as_nl='
39
 
'
40
 
export as_nl
41
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
 
# but without wasting forks for bash or zsh.
47
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
 
  as_echo='print -r --'
50
 
  as_echo_n='print -rn --'
51
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52
 
  as_echo='printf %s\n'
53
 
  as_echo_n='printf %s'
54
 
else
55
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
 
    as_echo_n='/usr/ucb/echo -n'
58
 
  else
59
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
 
    as_echo_n_body='eval
61
 
      arg=$1;
62
 
      case $arg in #(
63
 
      *"$as_nl"*)
64
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
65
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
 
      esac;
67
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
 
    '
69
 
    export as_echo_n_body
70
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
 
  fi
72
 
  export as_echo_body
73
 
  as_echo='sh -c $as_echo_body as_echo'
74
 
fi
75
 
 
76
 
# The user is always right.
77
 
if test "${PATH_SEPARATOR+set}" != set; then
78
 
  PATH_SEPARATOR=:
79
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
 
      PATH_SEPARATOR=';'
82
 
  }
83
 
fi
84
 
 
85
 
 
86
 
# IFS
87
 
# We need space, tab and new line, in precisely that order.  Quoting is
88
 
# there to prevent editors from complaining about space-tab.
89
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
 
# splitting by setting IFS to empty value.)
91
 
IFS=" ""        $as_nl"
92
 
 
93
 
# Find who we are.  Look in the path if we contain no directory separator.
94
 
case $0 in #((
95
 
  *[\\/]* ) as_myself=$0 ;;
96
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
 
for as_dir in $PATH
98
 
do
99
 
  IFS=$as_save_IFS
100
 
  test -z "$as_dir" && as_dir=.
101
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102
 
  done
103
 
IFS=$as_save_IFS
104
 
 
105
 
     ;;
106
 
esac
107
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
 
# in which case we are not to be found in the path.
109
 
if test "x$as_myself" = x; then
110
 
  as_myself=$0
111
 
fi
112
 
if test ! -f "$as_myself"; then
113
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
 
  exit 1
115
 
fi
116
 
 
117
 
# Unset variables that we do not need and which cause bugs (e.g. in
118
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119
 
# suppresses any "Segmentation fault" message there.  '((' could
120
 
# trigger a bug in pdksh 5.2.14.
121
 
for as_var in BASH_ENV ENV MAIL MAILPATH
122
 
do eval test x\${$as_var+set} = xset \
123
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124
 
done
125
 
PS1='$ '
126
 
PS2='> '
127
 
PS4='+ '
128
 
 
129
 
# NLS nuisances.
130
 
LC_ALL=C
131
 
export LC_ALL
132
 
LANGUAGE=C
133
 
export LANGUAGE
134
 
 
135
 
# CDPATH.
136
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
 
 
138
 
if test "x$CONFIG_SHELL" = x; then
139
 
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
 
  emulate sh
141
 
  NULLCMD=:
142
 
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
 
  # is contrary to our usage.  Disable this feature.
144
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
 
  setopt NO_GLOB_SUBST
146
 
else
147
 
  case \`(set -o) 2>/dev/null\` in #(
148
 
  *posix*) :
149
 
    set -o posix ;; #(
150
 
  *) :
151
 
     ;;
152
 
esac
153
 
fi
154
 
"
155
 
  as_required="as_fn_return () { (exit \$1); }
156
 
as_fn_success () { as_fn_return 0; }
157
 
as_fn_failure () { as_fn_return 1; }
158
 
as_fn_ret_success () { return 0; }
159
 
as_fn_ret_failure () { return 1; }
160
 
 
161
 
exitcode=0
162
 
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
 
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
 
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
 
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
 
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
 
 
168
 
else
169
 
  exitcode=1; echo positional parameters were not saved.
170
 
fi
171
 
test x\$exitcode = x0 || exit 1"
172
 
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
 
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
 
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
 
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
 
test \$(( 1 + 1 )) = 2 || exit 1"
177
 
  if (eval "$as_required") 2>/dev/null; then :
178
 
  as_have_required=yes
179
 
else
180
 
  as_have_required=no
181
 
fi
182
 
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
 
 
184
 
else
185
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186
 
as_found=false
187
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
 
do
189
 
  IFS=$as_save_IFS
190
 
  test -z "$as_dir" && as_dir=.
191
 
  as_found=:
192
 
  case $as_dir in #(
193
 
         /*)
194
 
           for as_base in sh bash ksh sh5; do
195
 
             # Try only shells that exist, to save several forks.
196
 
             as_shell=$as_dir/$as_base
197
 
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
 
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
 
  CONFIG_SHELL=$as_shell as_have_required=yes
200
 
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201
 
  break 2
202
 
fi
203
 
fi
204
 
           done;;
205
 
       esac
206
 
  as_found=false
207
 
done
208
 
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
 
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
 
  CONFIG_SHELL=$SHELL as_have_required=yes
211
 
fi; }
212
 
IFS=$as_save_IFS
213
 
 
214
 
 
215
 
      if test "x$CONFIG_SHELL" != x; then :
216
 
  # We cannot yet assume a decent shell, so we have to provide a
217
 
        # neutralization value for shells without unset; and this also
218
 
        # works around shells that cannot unset nonexistent variables.
219
 
        BASH_ENV=/dev/null
220
 
        ENV=/dev/null
221
 
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222
 
        export CONFIG_SHELL
223
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
 
fi
225
 
 
226
 
    if test x$as_have_required = xno; then :
227
 
  $as_echo "$0: This script requires a shell more modern than all"
228
 
  $as_echo "$0: the shells that I found on your system."
229
 
  if test x${ZSH_VERSION+set} = xset ; then
230
 
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
 
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232
 
  else
233
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234
 
$0: t-tujikawa@users.sourceforge.net about your system,
235
 
$0: including any error possibly output before this
236
 
$0: message. Then install a modern shell, or manually run
237
 
$0: the script under such a shell if you do have one."
238
 
  fi
239
 
  exit 1
240
 
fi
241
 
fi
242
 
fi
243
 
SHELL=${CONFIG_SHELL-/bin/sh}
244
 
export SHELL
245
 
# Unset more variables known to interfere with behavior of common tools.
246
 
CLICOLOR_FORCE= GREP_OPTIONS=
247
 
unset CLICOLOR_FORCE GREP_OPTIONS
248
 
 
249
 
## --------------------- ##
250
 
## M4sh Shell Functions. ##
251
 
## --------------------- ##
252
 
# as_fn_unset VAR
253
 
# ---------------
254
 
# Portably unset VAR.
255
 
as_fn_unset ()
256
 
{
257
 
  { eval $1=; unset $1;}
258
 
}
259
 
as_unset=as_fn_unset
260
 
 
261
 
# as_fn_set_status STATUS
262
 
# -----------------------
263
 
# Set $? to STATUS, without forking.
264
 
as_fn_set_status ()
265
 
{
266
 
  return $1
267
 
} # as_fn_set_status
268
 
 
269
 
# as_fn_exit STATUS
270
 
# -----------------
271
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272
 
as_fn_exit ()
273
 
{
274
 
  set +e
275
 
  as_fn_set_status $1
276
 
  exit $1
277
 
} # as_fn_exit
278
 
 
279
 
# as_fn_mkdir_p
280
 
# -------------
281
 
# Create "$as_dir" as a directory, including parents if necessary.
282
 
as_fn_mkdir_p ()
283
 
{
284
 
 
285
 
  case $as_dir in #(
286
 
  -*) as_dir=./$as_dir;;
287
 
  esac
288
 
  test -d "$as_dir" || eval $as_mkdir_p || {
289
 
    as_dirs=
290
 
    while :; do
291
 
      case $as_dir in #(
292
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
 
      *) as_qdir=$as_dir;;
294
 
      esac
295
 
      as_dirs="'$as_qdir' $as_dirs"
296
 
      as_dir=`$as_dirname -- "$as_dir" ||
297
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
299
 
         X"$as_dir" : 'X\(//\)$' \| \
300
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
 
$as_echo X"$as_dir" |
302
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303
 
            s//\1/
304
 
            q
305
 
          }
306
 
          /^X\(\/\/\)[^/].*/{
307
 
            s//\1/
308
 
            q
309
 
          }
310
 
          /^X\(\/\/\)$/{
311
 
            s//\1/
312
 
            q
313
 
          }
314
 
          /^X\(\/\).*/{
315
 
            s//\1/
316
 
            q
317
 
          }
318
 
          s/.*/./; q'`
319
 
      test -d "$as_dir" && break
320
 
    done
321
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
322
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
 
 
324
 
 
325
 
} # as_fn_mkdir_p
326
 
# as_fn_append VAR VALUE
327
 
# ----------------------
328
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
 
# advantage of any shell optimizations that allow amortized linear growth over
330
 
# repeated appends, instead of the typical quadratic growth present in naive
331
 
# implementations.
332
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
 
  eval 'as_fn_append ()
334
 
  {
335
 
    eval $1+=\$2
336
 
  }'
337
 
else
338
 
  as_fn_append ()
339
 
  {
340
 
    eval $1=\$$1\$2
341
 
  }
342
 
fi # as_fn_append
343
 
 
344
 
# as_fn_arith ARG...
345
 
# ------------------
346
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
 
# must be portable across $(()) and expr.
349
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350
 
  eval 'as_fn_arith ()
351
 
  {
352
 
    as_val=$(( $* ))
353
 
  }'
354
 
else
355
 
  as_fn_arith ()
356
 
  {
357
 
    as_val=`expr "$@" || test $? -eq 1`
358
 
  }
359
 
fi # as_fn_arith
360
 
 
361
 
 
362
 
# as_fn_error ERROR [LINENO LOG_FD]
363
 
# ---------------------------------
364
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
 
# script with status $?, using 1 if that was 0.
367
 
as_fn_error ()
368
 
{
369
 
  as_status=$?; test $as_status -eq 0 && as_status=1
370
 
  if test "$3"; then
371
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373
 
  fi
374
 
  $as_echo "$as_me: error: $1" >&2
375
 
  as_fn_exit $as_status
376
 
} # as_fn_error
377
 
 
378
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380
 
  as_expr=expr
381
 
else
382
 
  as_expr=false
383
 
fi
384
 
 
385
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386
 
  as_basename=basename
387
 
else
388
 
  as_basename=false
389
 
fi
390
 
 
391
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392
 
  as_dirname=dirname
393
 
else
394
 
  as_dirname=false
395
 
fi
396
 
 
397
 
as_me=`$as_basename -- "$0" ||
398
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
 
         X"$0" : 'X\(//\)$' \| \
400
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401
 
$as_echo X/"$0" |
402
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
403
 
            s//\1/
404
 
            q
405
 
          }
406
 
          /^X\/\(\/\/\)$/{
407
 
            s//\1/
408
 
            q
409
 
          }
410
 
          /^X\/\(\/\).*/{
411
 
            s//\1/
412
 
            q
413
 
          }
414
 
          s/.*/./; q'`
415
 
 
416
 
# Avoid depending upon Character Ranges.
417
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
 
as_cr_digits='0123456789'
421
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
422
 
 
423
 
 
424
 
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
 
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
 
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
 
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
 
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429
 
  sed -n '
430
 
    p
431
 
    /[$]LINENO/=
432
 
  ' <$as_myself |
433
 
    sed '
434
 
      s/[$]LINENO.*/&-/
435
 
      t lineno
436
 
      b
437
 
      :lineno
438
 
      N
439
 
      :loop
440
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441
 
      t loop
442
 
      s/-\n.*//
443
 
    ' >$as_me.lineno &&
444
 
  chmod +x "$as_me.lineno" ||
445
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
 
 
447
 
  # Don't try to exec as it changes $[0], causing all sort of problems
448
 
  # (the dirname of $[0] is not the place where we might find the
449
 
  # original and so on.  Autoconf is especially sensitive to this).
450
 
  . "./$as_me.lineno"
451
 
  # Exit status is that of the last command.
452
 
  exit
453
 
}
454
 
 
455
 
ECHO_C= ECHO_N= ECHO_T=
456
 
case `echo -n x` in #(((((
457
 
-n*)
458
 
  case `echo 'xy\c'` in
459
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460
 
  xy)  ECHO_C='\c';;
461
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462
 
       ECHO_T=' ';;
463
 
  esac;;
464
 
*)
465
 
  ECHO_N='-n';;
466
 
esac
467
 
 
468
 
rm -f conf$$ conf$$.exe conf$$.file
469
 
if test -d conf$$.dir; then
470
 
  rm -f conf$$.dir/conf$$.file
471
 
else
472
 
  rm -f conf$$.dir
473
 
  mkdir conf$$.dir 2>/dev/null
474
 
fi
475
 
if (echo >conf$$.file) 2>/dev/null; then
476
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
477
 
    as_ln_s='ln -s'
478
 
    # ... but there are two gotchas:
479
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
 
    # In both cases, we have to default to `cp -p'.
482
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483
 
      as_ln_s='cp -p'
484
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
485
 
    as_ln_s=ln
486
 
  else
487
 
    as_ln_s='cp -p'
488
 
  fi
489
 
else
490
 
  as_ln_s='cp -p'
491
 
fi
492
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
 
rmdir conf$$.dir 2>/dev/null
494
 
 
495
 
if mkdir -p . 2>/dev/null; then
496
 
  as_mkdir_p='mkdir -p "$as_dir"'
497
 
else
498
 
  test -d ./-p && rmdir ./-p
499
 
  as_mkdir_p=false
500
 
fi
501
 
 
502
 
if test -x / >/dev/null 2>&1; then
503
 
  as_test_x='test -x'
504
 
else
505
 
  if ls -dL / >/dev/null 2>&1; then
506
 
    as_ls_L_option=L
507
 
  else
508
 
    as_ls_L_option=
509
 
  fi
510
 
  as_test_x='
511
 
    eval sh -c '\''
512
 
      if test -d "$1"; then
513
 
        test -d "$1/.";
514
 
      else
515
 
        case $1 in #(
516
 
        -*)set "./$1";;
517
 
        esac;
518
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
 
        ???[sx]*):;;*)false;;esac;fi
520
 
    '\'' sh
521
 
  '
522
 
fi
523
 
as_executable_p=$as_test_x
524
 
 
525
 
# Sed expression to map a string onto a valid CPP name.
526
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
 
 
528
 
# Sed expression to map a string onto a valid variable name.
529
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
 
 
531
 
 
532
 
test -n "$DJDIR" || exec 7<&0 </dev/null
533
 
exec 6>&1
534
 
 
535
 
# Name of the host.
536
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537
 
# so uname gets run too.
538
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
 
 
540
 
#
541
 
# Initializations.
542
 
#
543
 
ac_default_prefix=/usr/local
544
 
ac_clean_files=
545
 
ac_config_libobj_dir=.
546
 
LIBOBJS=
547
 
cross_compiling=no
548
 
subdirs=
549
 
MFLAGS=
550
 
MAKEFLAGS=
551
 
 
552
 
# Identity of this package.
553
 
PACKAGE_NAME='aria2'
554
 
PACKAGE_TARNAME='aria2'
555
 
PACKAGE_VERSION='1.10.0'
556
 
PACKAGE_STRING='aria2 1.10.0'
557
 
PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
558
 
PACKAGE_URL='http://aria2.sourceforge.net/'
559
 
 
560
 
ac_unique_file="src/a2io.h"
561
 
# Factoring default headers for most tests.
562
 
ac_includes_default="\
563
 
#include <stdio.h>
564
 
#ifdef HAVE_SYS_TYPES_H
565
 
# include <sys/types.h>
566
 
#endif
567
 
#ifdef HAVE_SYS_STAT_H
568
 
# include <sys/stat.h>
569
 
#endif
570
 
#ifdef STDC_HEADERS
571
 
# include <stdlib.h>
572
 
# include <stddef.h>
573
 
#else
574
 
# ifdef HAVE_STDLIB_H
575
 
#  include <stdlib.h>
576
 
# endif
577
 
#endif
578
 
#ifdef HAVE_STRING_H
579
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580
 
#  include <memory.h>
581
 
# endif
582
 
# include <string.h>
583
 
#endif
584
 
#ifdef HAVE_STRINGS_H
585
 
# include <strings.h>
586
 
#endif
587
 
#ifdef HAVE_INTTYPES_H
588
 
# include <inttypes.h>
589
 
#endif
590
 
#ifdef HAVE_STDINT_H
591
 
# include <stdint.h>
592
 
#endif
593
 
#ifdef HAVE_UNISTD_H
594
 
# include <unistd.h>
595
 
#endif"
596
 
 
597
 
gt_needs=
598
 
ac_header_list=
599
 
ac_func_list=
600
 
ac_subst_vars='am__EXEEXT_FALSE
601
 
am__EXEEXT_TRUE
602
 
LTLIBOBJS
603
 
HAVE_KQUEUE_FALSE
604
 
HAVE_KQUEUE_TRUE
605
 
HAVE_PORT_ASSOCIATE_FALSE
606
 
HAVE_PORT_ASSOCIATE_TRUE
607
 
HAVE_TIMEGETTIME_FALSE
608
 
HAVE_TIMEGETTIME_TRUE
609
 
HAVE_POLL_FALSE
610
 
HAVE_POLL_TRUE
611
 
HAVE_MACH_ABSOLUTE_TIME_FALSE
612
 
HAVE_MACH_ABSOLUTE_TIME_TRUE
613
 
HAVE_DAEMON_FALSE
614
 
HAVE_DAEMON_TRUE
615
 
HAVE_TIMEGM_FALSE
616
 
HAVE_TIMEGM_TRUE
617
 
HAVE_STRPTIME_FALSE
618
 
HAVE_STRPTIME_TRUE
619
 
HAVE_LOCALTIME_R_FALSE
620
 
HAVE_LOCALTIME_R_TRUE
621
 
HAVE_INET_ATON_FALSE
622
 
HAVE_INET_ATON_TRUE
623
 
HAVE_GETTIMEOFDAY_FALSE
624
 
HAVE_GETTIMEOFDAY_TRUE
625
 
HAVE_GETADDRINFO_FALSE
626
 
HAVE_GETADDRINFO_TRUE
627
 
HAVE_GAI_STRERROR_FALSE
628
 
HAVE_GAI_STRERROR_TRUE
629
 
HAVE_BASENAME_FALSE
630
 
HAVE_BASENAME_TRUE
631
 
HAVE_ASCTIME_R_FALSE
632
 
HAVE_ASCTIME_R_TRUE
633
 
HAVE_SOME_FALLOCATE_FALSE
634
 
HAVE_SOME_FALLOCATE_TRUE
635
 
HAVE_EPOLL_FALSE
636
 
HAVE_EPOLL_TRUE
637
 
POW_LIB
638
 
LIBOBJS
639
 
POSUB
640
 
LTLIBINTL
641
 
LIBINTL
642
 
INTLLIBS
643
 
INTL_LIBTOOL_SUFFIX_PREFIX
644
 
INTLOBJS
645
 
GENCAT
646
 
INSTOBJEXT
647
 
DATADIRNAME
648
 
CATOBJEXT
649
 
USE_INCLUDED_LIBINTL
650
 
BUILD_INCLUDED_LIBINTL
651
 
LTLIBC
652
 
WINDRES
653
 
WOE32
654
 
WOE32DLL
655
 
HAVE_WPRINTF
656
 
HAVE_SNPRINTF
657
 
HAVE_ASPRINTF
658
 
HAVE_POSIX_PRINTF
659
 
INTL_MACOSX_LIBS
660
 
GLIBC21
661
 
INTLBISON
662
 
LTLIBICONV
663
 
LIBICONV
664
 
LTLIBMULTITHREAD
665
 
LIBMULTITHREAD
666
 
LTLIBTHREAD
667
 
LIBTHREAD
668
 
LIBPTH_PREFIX
669
 
LTLIBPTH
670
 
LIBPTH
671
 
PRI_MACROS_BROKEN
672
 
HAVE_VISIBILITY
673
 
CFLAG_VISIBILITY
674
 
GLIBC2
675
 
XGETTEXT_EXTRA_OPTIONS
676
 
MSGMERGE
677
 
XGETTEXT_015
678
 
XGETTEXT
679
 
GMSGFMT_015
680
 
MSGFMT_015
681
 
GMSGFMT
682
 
MSGFMT
683
 
GETTEXT_MACRO_VERSION
684
 
USE_NLS
685
 
ALLOCA
686
 
HAVE_SQLITE3_FALSE
687
 
HAVE_SQLITE3_TRUE
688
 
HAVE_LIBZ_FALSE
689
 
HAVE_LIBZ_TRUE
690
 
ENABLE_ASYNC_DNS_FALSE
691
 
ENABLE_ASYNC_DNS_TRUE
692
 
HAVE_LIBEXPAT_FALSE
693
 
HAVE_LIBEXPAT_TRUE
694
 
HAVE_LIBXML2_FALSE
695
 
HAVE_LIBXML2_TRUE
696
 
ENABLE_XML_RPC_FALSE
697
 
ENABLE_XML_RPC_TRUE
698
 
ENABLE_METALINK_LIBEXPAT_FALSE
699
 
ENABLE_METALINK_LIBEXPAT_TRUE
700
 
ENABLE_METALINK_LIBXML2_FALSE
701
 
ENABLE_METALINK_LIBXML2_TRUE
702
 
ENABLE_METALINK_FALSE
703
 
ENABLE_METALINK_TRUE
704
 
ENABLE_BITTORRENT_FALSE
705
 
ENABLE_BITTORRENT_TRUE
706
 
ENABLE_MESSAGE_DIGEST_FALSE
707
 
ENABLE_MESSAGE_DIGEST_TRUE
708
 
HAVE_LIBSSL_FALSE
709
 
HAVE_LIBSSL_TRUE
710
 
HAVE_LIBGNUTLS_FALSE
711
 
HAVE_LIBGNUTLS_TRUE
712
 
ca_bundle
713
 
ENABLE_SSL_FALSE
714
 
ENABLE_SSL_TRUE
715
 
LIBZ_CPPFLAGS
716
 
LIBZ_LIBS
717
 
LIBCARES_CPPFLAGS
718
 
LIBCARES_LIBS
719
 
OPENSSL_CFLAGS
720
 
OPENSSL_LIBS
721
 
LIBGCRYPT_LIBS
722
 
LIBGCRYPT_CFLAGS
723
 
LIBGCRYPT_CONFIG
724
 
LIBGNUTLS_CONFIG
725
 
LIBGNUTLS_LIBS
726
 
LIBGNUTLS_CFLAGS
727
 
SQLITE3_LIBS
728
 
SQLITE3_CFLAGS
729
 
LIBEXPAT_CPPFLAGS
730
 
LIBEXPAT_LIBS
731
 
XML_LIBS
732
 
XML_CPPFLAGS
733
 
XML2_CONFIG
734
 
PKG_CONFIG_LIBDIR
735
 
PKG_CONFIG_PATH
736
 
PKG_CONFIG
737
 
EGREP
738
 
GREP
739
 
CXXCPP
740
 
YFLAGS
741
 
YACC
742
 
RANLIB
743
 
am__fastdepCC_FALSE
744
 
am__fastdepCC_TRUE
745
 
CCDEPMODE
746
 
ac_ct_CC
747
 
CFLAGS
748
 
CC
749
 
am__fastdepCXX_FALSE
750
 
am__fastdepCXX_TRUE
751
 
CXXDEPMODE
752
 
AMDEPBACKSLASH
753
 
AMDEP_FALSE
754
 
AMDEP_TRUE
755
 
am__quote
756
 
am__include
757
 
DEPDIR
758
 
OBJEXT
759
 
EXEEXT
760
 
ac_ct_CXX
761
 
CPPFLAGS
762
 
LDFLAGS
763
 
CXXFLAGS
764
 
CXX
765
 
WINSOCK_LIBS
766
 
CPPUNIT_LIBS
767
 
CPPUNIT_CFLAGS
768
 
CPPUNIT_CONFIG
769
 
am__untar
770
 
am__tar
771
 
AMTAR
772
 
am__leading_dot
773
 
SET_MAKE
774
 
AWK
775
 
mkdir_p
776
 
MKDIR_P
777
 
INSTALL_STRIP_PROGRAM
778
 
STRIP
779
 
install_sh
780
 
MAKEINFO
781
 
AUTOHEADER
782
 
AUTOMAKE
783
 
AUTOCONF
784
 
ACLOCAL
785
 
VERSION
786
 
PACKAGE
787
 
CYGPATH_W
788
 
am__isrc
789
 
INSTALL_DATA
790
 
INSTALL_SCRIPT
791
 
INSTALL_PROGRAM
792
 
target_os
793
 
target_vendor
794
 
target_cpu
795
 
target
796
 
host_os
797
 
host_vendor
798
 
host_cpu
799
 
host
800
 
build_os
801
 
build_vendor
802
 
build_cpu
803
 
build
804
 
target_alias
805
 
host_alias
806
 
build_alias
807
 
LIBS
808
 
ECHO_T
809
 
ECHO_N
810
 
ECHO_C
811
 
DEFS
812
 
mandir
813
 
localedir
814
 
libdir
815
 
psdir
816
 
pdfdir
817
 
dvidir
818
 
htmldir
819
 
infodir
820
 
docdir
821
 
oldincludedir
822
 
includedir
823
 
localstatedir
824
 
sharedstatedir
825
 
sysconfdir
826
 
datadir
827
 
datarootdir
828
 
libexecdir
829
 
sbindir
830
 
bindir
831
 
program_transform_name
832
 
prefix
833
 
exec_prefix
834
 
PACKAGE_URL
835
 
PACKAGE_BUGREPORT
836
 
PACKAGE_STRING
837
 
PACKAGE_VERSION
838
 
PACKAGE_TARNAME
839
 
PACKAGE_NAME
840
 
PATH_SEPARATOR
841
 
SHELL'
842
 
ac_subst_files=''
843
 
ac_user_opts='
844
 
enable_option_checking
845
 
with_cppunit_prefix
846
 
with_cppunit_exec_prefix
847
 
with_gnutls
848
 
with_openssl
849
 
with_sqlite3
850
 
with_libxml2
851
 
with_libexpat
852
 
with_libcares
853
 
with_libz
854
 
enable_bittorrent
855
 
enable_metalink
856
 
enable_epoll
857
 
with_ca_bundle
858
 
enable_dependency_tracking
859
 
with_xml_prefix
860
 
with_xml_exec_prefix
861
 
enable_xmltest
862
 
with_libexpat_prefix
863
 
with_sqlite3_prefix
864
 
with_libgnutls_prefix
865
 
with_libgcrypt_prefix
866
 
with_openssl_prefix
867
 
with_libcares_prefix
868
 
with_libz_prefix
869
 
enable_largefile
870
 
enable_nls
871
 
enable_threads
872
 
with_gnu_ld
873
 
enable_rpath
874
 
with_libpth_prefix
875
 
with_libiconv_prefix
876
 
with_included_gettext
877
 
with_libintl_prefix
878
 
'
879
 
      ac_precious_vars='build_alias
880
 
host_alias
881
 
target_alias
882
 
CXX
883
 
CXXFLAGS
884
 
LDFLAGS
885
 
LIBS
886
 
CPPFLAGS
887
 
CCC
888
 
CC
889
 
CFLAGS
890
 
YACC
891
 
YFLAGS
892
 
CXXCPP
893
 
PKG_CONFIG
894
 
PKG_CONFIG_PATH
895
 
PKG_CONFIG_LIBDIR
896
 
SQLITE3_CFLAGS
897
 
SQLITE3_LIBS
898
 
LIBGNUTLS_CFLAGS
899
 
LIBGNUTLS_LIBS'
900
 
 
901
 
 
902
 
# Initialize some variables set by options.
903
 
ac_init_help=
904
 
ac_init_version=false
905
 
ac_unrecognized_opts=
906
 
ac_unrecognized_sep=
907
 
# The variables have the same names as the options, with
908
 
# dashes changed to underlines.
909
 
cache_file=/dev/null
910
 
exec_prefix=NONE
911
 
no_create=
912
 
no_recursion=
913
 
prefix=NONE
914
 
program_prefix=NONE
915
 
program_suffix=NONE
916
 
program_transform_name=s,x,x,
917
 
silent=
918
 
site=
919
 
srcdir=
920
 
verbose=
921
 
x_includes=NONE
922
 
x_libraries=NONE
923
 
 
924
 
# Installation directory options.
925
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
926
 
# and all the variables that are supposed to be based on exec_prefix
927
 
# by default will actually change.
928
 
# Use braces instead of parens because sh, perl, etc. also accept them.
929
 
# (The list follows the same order as the GNU Coding Standards.)
930
 
bindir='${exec_prefix}/bin'
931
 
sbindir='${exec_prefix}/sbin'
932
 
libexecdir='${exec_prefix}/libexec'
933
 
datarootdir='${prefix}/share'
934
 
datadir='${datarootdir}'
935
 
sysconfdir='${prefix}/etc'
936
 
sharedstatedir='${prefix}/com'
937
 
localstatedir='${prefix}/var'
938
 
includedir='${prefix}/include'
939
 
oldincludedir='/usr/include'
940
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941
 
infodir='${datarootdir}/info'
942
 
htmldir='${docdir}'
943
 
dvidir='${docdir}'
944
 
pdfdir='${docdir}'
945
 
psdir='${docdir}'
946
 
libdir='${exec_prefix}/lib'
947
 
localedir='${datarootdir}/locale'
948
 
mandir='${datarootdir}/man'
949
 
 
950
 
ac_prev=
951
 
ac_dashdash=
952
 
for ac_option
953
 
do
954
 
  # If the previous option needs an argument, assign it.
955
 
  if test -n "$ac_prev"; then
956
 
    eval $ac_prev=\$ac_option
957
 
    ac_prev=
958
 
    continue
959
 
  fi
960
 
 
961
 
  case $ac_option in
962
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963
 
  *)    ac_optarg=yes ;;
964
 
  esac
965
 
 
966
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
967
 
 
968
 
  case $ac_dashdash$ac_option in
969
 
  --)
970
 
    ac_dashdash=yes ;;
971
 
 
972
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
973
 
    ac_prev=bindir ;;
974
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975
 
    bindir=$ac_optarg ;;
976
 
 
977
 
  -build | --build | --buil | --bui | --bu)
978
 
    ac_prev=build_alias ;;
979
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980
 
    build_alias=$ac_optarg ;;
981
 
 
982
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
983
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984
 
    ac_prev=cache_file ;;
985
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987
 
    cache_file=$ac_optarg ;;
988
 
 
989
 
  --config-cache | -C)
990
 
    cache_file=config.cache ;;
991
 
 
992
 
  -datadir | --datadir | --datadi | --datad)
993
 
    ac_prev=datadir ;;
994
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
995
 
    datadir=$ac_optarg ;;
996
 
 
997
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998
 
  | --dataroo | --dataro | --datar)
999
 
    ac_prev=datarootdir ;;
1000
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002
 
    datarootdir=$ac_optarg ;;
1003
 
 
1004
 
  -disable-* | --disable-*)
1005
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006
 
    # Reject names that are not valid shell variable names.
1007
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008
 
      as_fn_error "invalid feature name: $ac_useropt"
1009
 
    ac_useropt_orig=$ac_useropt
1010
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011
 
    case $ac_user_opts in
1012
 
      *"
1013
 
"enable_$ac_useropt"
1014
 
"*) ;;
1015
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016
 
         ac_unrecognized_sep=', ';;
1017
 
    esac
1018
 
    eval enable_$ac_useropt=no ;;
1019
 
 
1020
 
  -docdir | --docdir | --docdi | --doc | --do)
1021
 
    ac_prev=docdir ;;
1022
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023
 
    docdir=$ac_optarg ;;
1024
 
 
1025
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026
 
    ac_prev=dvidir ;;
1027
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028
 
    dvidir=$ac_optarg ;;
1029
 
 
1030
 
  -enable-* | --enable-*)
1031
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032
 
    # Reject names that are not valid shell variable names.
1033
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034
 
      as_fn_error "invalid feature name: $ac_useropt"
1035
 
    ac_useropt_orig=$ac_useropt
1036
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037
 
    case $ac_user_opts in
1038
 
      *"
1039
 
"enable_$ac_useropt"
1040
 
"*) ;;
1041
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042
 
         ac_unrecognized_sep=', ';;
1043
 
    esac
1044
 
    eval enable_$ac_useropt=\$ac_optarg ;;
1045
 
 
1046
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048
 
  | --exec | --exe | --ex)
1049
 
    ac_prev=exec_prefix ;;
1050
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052
 
  | --exec=* | --exe=* | --ex=*)
1053
 
    exec_prefix=$ac_optarg ;;
1054
 
 
1055
 
  -gas | --gas | --ga | --g)
1056
 
    # Obsolete; use --with-gas.
1057
 
    with_gas=yes ;;
1058
 
 
1059
 
  -help | --help | --hel | --he | -h)
1060
 
    ac_init_help=long ;;
1061
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062
 
    ac_init_help=recursive ;;
1063
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064
 
    ac_init_help=short ;;
1065
 
 
1066
 
  -host | --host | --hos | --ho)
1067
 
    ac_prev=host_alias ;;
1068
 
  -host=* | --host=* | --hos=* | --ho=*)
1069
 
    host_alias=$ac_optarg ;;
1070
 
 
1071
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072
 
    ac_prev=htmldir ;;
1073
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074
 
  | --ht=*)
1075
 
    htmldir=$ac_optarg ;;
1076
 
 
1077
 
  -includedir | --includedir | --includedi | --included | --include \
1078
 
  | --includ | --inclu | --incl | --inc)
1079
 
    ac_prev=includedir ;;
1080
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1082
 
    includedir=$ac_optarg ;;
1083
 
 
1084
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1085
 
    ac_prev=infodir ;;
1086
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087
 
    infodir=$ac_optarg ;;
1088
 
 
1089
 
  -libdir | --libdir | --libdi | --libd)
1090
 
    ac_prev=libdir ;;
1091
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092
 
    libdir=$ac_optarg ;;
1093
 
 
1094
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095
 
  | --libexe | --libex | --libe)
1096
 
    ac_prev=libexecdir ;;
1097
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098
 
  | --libexe=* | --libex=* | --libe=*)
1099
 
    libexecdir=$ac_optarg ;;
1100
 
 
1101
 
  -localedir | --localedir | --localedi | --localed | --locale)
1102
 
    ac_prev=localedir ;;
1103
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104
 
    localedir=$ac_optarg ;;
1105
 
 
1106
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1107
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1108
 
    ac_prev=localstatedir ;;
1109
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111
 
    localstatedir=$ac_optarg ;;
1112
 
 
1113
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114
 
    ac_prev=mandir ;;
1115
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116
 
    mandir=$ac_optarg ;;
1117
 
 
1118
 
  -nfp | --nfp | --nf)
1119
 
    # Obsolete; use --without-fp.
1120
 
    with_fp=no ;;
1121
 
 
1122
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123
 
  | --no-cr | --no-c | -n)
1124
 
    no_create=yes ;;
1125
 
 
1126
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128
 
    no_recursion=yes ;;
1129
 
 
1130
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132
 
  | --oldin | --oldi | --old | --ol | --o)
1133
 
    ac_prev=oldincludedir ;;
1134
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137
 
    oldincludedir=$ac_optarg ;;
1138
 
 
1139
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140
 
    ac_prev=prefix ;;
1141
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142
 
    prefix=$ac_optarg ;;
1143
 
 
1144
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145
 
  | --program-pre | --program-pr | --program-p)
1146
 
    ac_prev=program_prefix ;;
1147
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149
 
    program_prefix=$ac_optarg ;;
1150
 
 
1151
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152
 
  | --program-suf | --program-su | --program-s)
1153
 
    ac_prev=program_suffix ;;
1154
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156
 
    program_suffix=$ac_optarg ;;
1157
 
 
1158
 
  -program-transform-name | --program-transform-name \
1159
 
  | --program-transform-nam | --program-transform-na \
1160
 
  | --program-transform-n | --program-transform- \
1161
 
  | --program-transform | --program-transfor \
1162
 
  | --program-transfo | --program-transf \
1163
 
  | --program-trans | --program-tran \
1164
 
  | --progr-tra | --program-tr | --program-t)
1165
 
    ac_prev=program_transform_name ;;
1166
 
  -program-transform-name=* | --program-transform-name=* \
1167
 
  | --program-transform-nam=* | --program-transform-na=* \
1168
 
  | --program-transform-n=* | --program-transform-=* \
1169
 
  | --program-transform=* | --program-transfor=* \
1170
 
  | --program-transfo=* | --program-transf=* \
1171
 
  | --program-trans=* | --program-tran=* \
1172
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1173
 
    program_transform_name=$ac_optarg ;;
1174
 
 
1175
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176
 
    ac_prev=pdfdir ;;
1177
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178
 
    pdfdir=$ac_optarg ;;
1179
 
 
1180
 
  -psdir | --psdir | --psdi | --psd | --ps)
1181
 
    ac_prev=psdir ;;
1182
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183
 
    psdir=$ac_optarg ;;
1184
 
 
1185
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186
 
  | -silent | --silent | --silen | --sile | --sil)
1187
 
    silent=yes ;;
1188
 
 
1189
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190
 
    ac_prev=sbindir ;;
1191
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192
 
  | --sbi=* | --sb=*)
1193
 
    sbindir=$ac_optarg ;;
1194
 
 
1195
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197
 
  | --sharedst | --shareds | --shared | --share | --shar \
1198
 
  | --sha | --sh)
1199
 
    ac_prev=sharedstatedir ;;
1200
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203
 
  | --sha=* | --sh=*)
1204
 
    sharedstatedir=$ac_optarg ;;
1205
 
 
1206
 
  -site | --site | --sit)
1207
 
    ac_prev=site ;;
1208
 
  -site=* | --site=* | --sit=*)
1209
 
    site=$ac_optarg ;;
1210
 
 
1211
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212
 
    ac_prev=srcdir ;;
1213
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214
 
    srcdir=$ac_optarg ;;
1215
 
 
1216
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1218
 
    ac_prev=sysconfdir ;;
1219
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221
 
    sysconfdir=$ac_optarg ;;
1222
 
 
1223
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1224
 
    ac_prev=target_alias ;;
1225
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226
 
    target_alias=$ac_optarg ;;
1227
 
 
1228
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229
 
    verbose=yes ;;
1230
 
 
1231
 
  -version | --version | --versio | --versi | --vers | -V)
1232
 
    ac_init_version=: ;;
1233
 
 
1234
 
  -with-* | --with-*)
1235
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236
 
    # Reject names that are not valid shell variable names.
1237
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238
 
      as_fn_error "invalid package name: $ac_useropt"
1239
 
    ac_useropt_orig=$ac_useropt
1240
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241
 
    case $ac_user_opts in
1242
 
      *"
1243
 
"with_$ac_useropt"
1244
 
"*) ;;
1245
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246
 
         ac_unrecognized_sep=', ';;
1247
 
    esac
1248
 
    eval with_$ac_useropt=\$ac_optarg ;;
1249
 
 
1250
 
  -without-* | --without-*)
1251
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252
 
    # Reject names that are not valid shell variable names.
1253
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254
 
      as_fn_error "invalid package name: $ac_useropt"
1255
 
    ac_useropt_orig=$ac_useropt
1256
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257
 
    case $ac_user_opts in
1258
 
      *"
1259
 
"with_$ac_useropt"
1260
 
"*) ;;
1261
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262
 
         ac_unrecognized_sep=', ';;
1263
 
    esac
1264
 
    eval with_$ac_useropt=no ;;
1265
 
 
1266
 
  --x)
1267
 
    # Obsolete; use --with-x.
1268
 
    with_x=yes ;;
1269
 
 
1270
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271
 
  | --x-incl | --x-inc | --x-in | --x-i)
1272
 
    ac_prev=x_includes ;;
1273
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275
 
    x_includes=$ac_optarg ;;
1276
 
 
1277
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279
 
    ac_prev=x_libraries ;;
1280
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282
 
    x_libraries=$ac_optarg ;;
1283
 
 
1284
 
  -*) as_fn_error "unrecognized option: \`$ac_option'
1285
 
Try \`$0 --help' for more information."
1286
 
    ;;
1287
 
 
1288
 
  *=*)
1289
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290
 
    # Reject names that are not valid shell variable names.
1291
 
    case $ac_envvar in #(
1292
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1293
 
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1294
 
    esac
1295
 
    eval $ac_envvar=\$ac_optarg
1296
 
    export $ac_envvar ;;
1297
 
 
1298
 
  *)
1299
 
    # FIXME: should be removed in autoconf 3.0.
1300
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1304
 
    ;;
1305
 
 
1306
 
  esac
1307
 
done
1308
 
 
1309
 
if test -n "$ac_prev"; then
1310
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311
 
  as_fn_error "missing argument to $ac_option"
1312
 
fi
1313
 
 
1314
 
if test -n "$ac_unrecognized_opts"; then
1315
 
  case $enable_option_checking in
1316
 
    no) ;;
1317
 
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1318
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319
 
  esac
1320
 
fi
1321
 
 
1322
 
# Check all directory arguments for consistency.
1323
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1325
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326
 
                libdir localedir mandir
1327
 
do
1328
 
  eval ac_val=\$$ac_var
1329
 
  # Remove trailing slashes.
1330
 
  case $ac_val in
1331
 
    */ )
1332
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333
 
      eval $ac_var=\$ac_val;;
1334
 
  esac
1335
 
  # Be sure to have absolute directory names.
1336
 
  case $ac_val in
1337
 
    [\\/$]* | ?:[\\/]* )  continue;;
1338
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339
 
  esac
1340
 
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1341
 
done
1342
 
 
1343
 
# There might be people who depend on the old broken behavior: `$host'
1344
 
# used to hold the argument of --host etc.
1345
 
# FIXME: To remove some day.
1346
 
build=$build_alias
1347
 
host=$host_alias
1348
 
target=$target_alias
1349
 
 
1350
 
# FIXME: To remove some day.
1351
 
if test "x$host_alias" != x; then
1352
 
  if test "x$build_alias" = x; then
1353
 
    cross_compiling=maybe
1354
 
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355
 
    If a cross compiler is detected then cross compile mode will be used." >&2
1356
 
  elif test "x$build_alias" != "x$host_alias"; then
1357
 
    cross_compiling=yes
1358
 
  fi
1359
 
fi
1360
 
 
1361
 
ac_tool_prefix=
1362
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
 
 
1364
 
test "$silent" = yes && exec 6>/dev/null
1365
 
 
1366
 
 
1367
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368
 
ac_ls_di=`ls -di .` &&
1369
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370
 
  as_fn_error "working directory cannot be determined"
1371
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372
 
  as_fn_error "pwd does not report name of working directory"
1373
 
 
1374
 
 
1375
 
# Find the source files, if location was not specified.
1376
 
if test -z "$srcdir"; then
1377
 
  ac_srcdir_defaulted=yes
1378
 
  # Try the directory containing this script, then the parent directory.
1379
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1380
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1382
 
         X"$as_myself" : 'X\(//\)$' \| \
1383
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384
 
$as_echo X"$as_myself" |
1385
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386
 
            s//\1/
1387
 
            q
1388
 
          }
1389
 
          /^X\(\/\/\)[^/].*/{
1390
 
            s//\1/
1391
 
            q
1392
 
          }
1393
 
          /^X\(\/\/\)$/{
1394
 
            s//\1/
1395
 
            q
1396
 
          }
1397
 
          /^X\(\/\).*/{
1398
 
            s//\1/
1399
 
            q
1400
 
          }
1401
 
          s/.*/./; q'`
1402
 
  srcdir=$ac_confdir
1403
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1404
 
    srcdir=..
1405
 
  fi
1406
 
else
1407
 
  ac_srcdir_defaulted=no
1408
 
fi
1409
 
if test ! -r "$srcdir/$ac_unique_file"; then
1410
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411
 
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1412
 
fi
1413
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414
 
ac_abs_confdir=`(
1415
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1416
 
        pwd)`
1417
 
# When building in place, set srcdir=.
1418
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1419
 
  srcdir=.
1420
 
fi
1421
 
# Remove unnecessary trailing slashes from srcdir.
1422
 
# Double slashes in file names in object file debugging info
1423
 
# mess up M-x gdb in Emacs.
1424
 
case $srcdir in
1425
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426
 
esac
1427
 
for ac_var in $ac_precious_vars; do
1428
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1430
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432
 
done
1433
 
 
1434
 
#
1435
 
# Report the --help message.
1436
 
#
1437
 
if test "$ac_init_help" = "long"; then
1438
 
  # Omit some internal or obsolete options to make the list less imposing.
1439
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1440
 
  cat <<_ACEOF
1441
 
\`configure' configures aria2 1.10.0 to adapt to many kinds of systems.
1442
 
 
1443
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1444
 
 
1445
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1447
 
 
1448
 
Defaults for the options are specified in brackets.
1449
 
 
1450
 
Configuration:
1451
 
  -h, --help              display this help and exit
1452
 
      --help=short        display options specific to this package
1453
 
      --help=recursive    display the short help of all the included packages
1454
 
  -V, --version           display version information and exit
1455
 
  -q, --quiet, --silent   do not print \`checking...' messages
1456
 
      --cache-file=FILE   cache test results in FILE [disabled]
1457
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1458
 
  -n, --no-create         do not create output files
1459
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1460
 
 
1461
 
Installation directories:
1462
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1463
 
                          [$ac_default_prefix]
1464
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1465
 
                          [PREFIX]
1466
 
 
1467
 
By default, \`make install' will install all the files in
1468
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1469
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470
 
for instance \`--prefix=\$HOME'.
1471
 
 
1472
 
For better control, use the options below.
1473
 
 
1474
 
Fine tuning of the installation directories:
1475
 
  --bindir=DIR            user executables [EPREFIX/bin]
1476
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1477
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1478
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1479
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1480
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1481
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1482
 
  --includedir=DIR        C header files [PREFIX/include]
1483
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1484
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1485
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1486
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1487
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1488
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1489
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/aria2]
1490
 
  --htmldir=DIR           html documentation [DOCDIR]
1491
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1492
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1493
 
  --psdir=DIR             ps documentation [DOCDIR]
1494
 
_ACEOF
1495
 
 
1496
 
  cat <<\_ACEOF
1497
 
 
1498
 
Program names:
1499
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1500
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1501
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1502
 
 
1503
 
System types:
1504
 
  --build=BUILD     configure for building on BUILD [guessed]
1505
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1506
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
1507
 
_ACEOF
1508
 
fi
1509
 
 
1510
 
if test -n "$ac_init_help"; then
1511
 
  case $ac_init_help in
1512
 
     short | recursive ) echo "Configuration of aria2 1.10.0:";;
1513
 
   esac
1514
 
  cat <<\_ACEOF
1515
 
 
1516
 
Optional Features:
1517
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1518
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1519
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1520
 
  --enable-bittorrent     Enable bittorrent support.
1521
 
  --enable-metalink       Enable metalink support.
1522
 
  --enable-epoll          Enable epoll support.
1523
 
  --disable-dependency-tracking  speeds up one-time build
1524
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1525
 
  --disable-xmltest       Do not try to compile and run a test LIBXML program
1526
 
  --disable-largefile     omit support for large files
1527
 
  --disable-nls           do not use Native Language Support
1528
 
  --enable-threads={posix|solaris|pth|win32}
1529
 
                          specify multithreading API
1530
 
  --disable-threads       build without multithread safety
1531
 
  --disable-rpath         do not hardcode runtime library paths
1532
 
 
1533
 
Optional Packages:
1534
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1535
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1536
 
  --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1537
 
  --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1538
 
  --with-gnutls           Use gnutls if it is installed.
1539
 
  --with-openssl          Use openssl if it is installed.
1540
 
  --with-sqlite3          Use sqlite3 if it is installed.
1541
 
  --with-libxml2          Use libxml2 if it is installed.
1542
 
  --with-libexpat         Use libexpat if it is installed.
1543
 
  --with-libcares         Use libcares if it is installed.
1544
 
  --with-libz             Use libz if it is installed.
1545
 
  --with-ca-bundle=FILE   Use FILE as default CA bundle.
1546
 
  --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
1547
 
  --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1548
 
  --with-libexpat-prefix=PREFIX  Prefix where libexpat installed (optional)
1549
 
  --with-sqlite3-prefix=PREFIX  Prefix where SQLite3 installed (optional)
1550
 
  --with-libgnutls-prefix=PFX   Prefix where libgnutls is installed (optional)
1551
 
  --with-libgcrypt-prefix=PFX
1552
 
                          prefix where LIBGCRYPT is installed (optional)
1553
 
  --with-openssl-prefix=PREFIX  Prefix where OpenSSL installed (optional)
1554
 
  --with-libcares-prefix=PREFIX  Prefix where libcares installed (optional)
1555
 
  --with-libz-prefix=PREFIX  Prefix where libz installed (optional)
1556
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1557
 
  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1558
 
  --without-libpth-prefix     don't search for libpth in includedir and libdir
1559
 
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1560
 
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1561
 
  --with-included-gettext use the GNU gettext library included here
1562
 
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1563
 
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1564
 
 
1565
 
Some influential environment variables:
1566
 
  CXX         C++ compiler command
1567
 
  CXXFLAGS    C++ compiler flags
1568
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1569
 
              nonstandard directory <lib dir>
1570
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1571
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572
 
              you have headers in a nonstandard directory <include dir>
1573
 
  CC          C compiler command
1574
 
  CFLAGS      C compiler flags
1575
 
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1576
 
              the first program found out of: `bison -y', `byacc', `yacc'.
1577
 
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1578
 
              This script will default YFLAGS to the empty string to avoid a
1579
 
              default value of `-d' given by some make applications.
1580
 
  CXXCPP      C++ preprocessor
1581
 
  PKG_CONFIG  path to pkg-config utility
1582
 
  PKG_CONFIG_PATH
1583
 
              directories to add to pkg-config's search path
1584
 
  PKG_CONFIG_LIBDIR
1585
 
              path overriding pkg-config's built-in search path
1586
 
  SQLITE3_CFLAGS
1587
 
              C compiler flags for SQLITE3, overriding pkg-config
1588
 
  SQLITE3_LIBS
1589
 
              linker flags for SQLITE3, overriding pkg-config
1590
 
  LIBGNUTLS_CFLAGS
1591
 
              C compiler flags for LIBGNUTLS, overriding pkg-config
1592
 
  LIBGNUTLS_LIBS
1593
 
              linker flags for LIBGNUTLS, overriding pkg-config
1594
 
 
1595
 
Use these variables to override the choices made by `configure' or to help
1596
 
it to find libraries and programs with nonstandard names/locations.
1597
 
 
1598
 
Report bugs to <t-tujikawa@users.sourceforge.net>.
1599
 
aria2 home page: <http://aria2.sourceforge.net/>.
1600
 
_ACEOF
1601
 
ac_status=$?
1602
 
fi
1603
 
 
1604
 
if test "$ac_init_help" = "recursive"; then
1605
 
  # If there are subdirs, report their specific --help.
1606
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607
 
    test -d "$ac_dir" ||
1608
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609
 
      continue
1610
 
    ac_builddir=.
1611
 
 
1612
 
case "$ac_dir" in
1613
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614
 
*)
1615
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616
 
  # A ".." for each directory in $ac_dir_suffix.
1617
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618
 
  case $ac_top_builddir_sub in
1619
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621
 
  esac ;;
1622
 
esac
1623
 
ac_abs_top_builddir=$ac_pwd
1624
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625
 
# for backward compatibility:
1626
 
ac_top_builddir=$ac_top_build_prefix
1627
 
 
1628
 
case $srcdir in
1629
 
  .)  # We are building in place.
1630
 
    ac_srcdir=.
1631
 
    ac_top_srcdir=$ac_top_builddir_sub
1632
 
    ac_abs_top_srcdir=$ac_pwd ;;
1633
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1634
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1635
 
    ac_top_srcdir=$srcdir
1636
 
    ac_abs_top_srcdir=$srcdir ;;
1637
 
  *) # Relative name.
1638
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1640
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641
 
esac
1642
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
 
 
1644
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1645
 
    # Check for guested configure.
1646
 
    if test -f "$ac_srcdir/configure.gnu"; then
1647
 
      echo &&
1648
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649
 
    elif test -f "$ac_srcdir/configure"; then
1650
 
      echo &&
1651
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1652
 
    else
1653
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654
 
    fi || ac_status=$?
1655
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1656
 
  done
1657
 
fi
1658
 
 
1659
 
test -n "$ac_init_help" && exit $ac_status
1660
 
if $ac_init_version; then
1661
 
  cat <<\_ACEOF
1662
 
aria2 configure 1.10.0
1663
 
generated by GNU Autoconf 2.65
1664
 
 
1665
 
Copyright (C) 2009 Free Software Foundation, Inc.
1666
 
This configure script is free software; the Free Software Foundation
1667
 
gives unlimited permission to copy, distribute and modify it.
1668
 
_ACEOF
1669
 
  exit
1670
 
fi
1671
 
 
1672
 
## ------------------------ ##
1673
 
## Autoconf initialization. ##
1674
 
## ------------------------ ##
1675
 
 
1676
 
# ac_fn_cxx_try_compile LINENO
1677
 
# ----------------------------
1678
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679
 
ac_fn_cxx_try_compile ()
1680
 
{
1681
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682
 
  rm -f conftest.$ac_objext
1683
 
  if { { ac_try="$ac_compile"
1684
 
case "(($ac_try" in
1685
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686
 
  *) ac_try_echo=$ac_try;;
1687
 
esac
1688
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689
 
$as_echo "$ac_try_echo"; } >&5
1690
 
  (eval "$ac_compile") 2>conftest.err
1691
 
  ac_status=$?
1692
 
  if test -s conftest.err; then
1693
 
    grep -v '^ *+' conftest.err >conftest.er1
1694
 
    cat conftest.er1 >&5
1695
 
    mv -f conftest.er1 conftest.err
1696
 
  fi
1697
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698
 
  test $ac_status = 0; } && {
1699
 
         test -z "$ac_cxx_werror_flag" ||
1700
 
         test ! -s conftest.err
1701
 
       } && test -s conftest.$ac_objext; then :
1702
 
  ac_retval=0
1703
 
else
1704
 
  $as_echo "$as_me: failed program was:" >&5
1705
 
sed 's/^/| /' conftest.$ac_ext >&5
1706
 
 
1707
 
        ac_retval=1
1708
 
fi
1709
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710
 
  as_fn_set_status $ac_retval
1711
 
 
1712
 
} # ac_fn_cxx_try_compile
1713
 
 
1714
 
# ac_fn_c_try_compile LINENO
1715
 
# --------------------------
1716
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1717
 
ac_fn_c_try_compile ()
1718
 
{
1719
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720
 
  rm -f conftest.$ac_objext
1721
 
  if { { ac_try="$ac_compile"
1722
 
case "(($ac_try" in
1723
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724
 
  *) ac_try_echo=$ac_try;;
1725
 
esac
1726
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727
 
$as_echo "$ac_try_echo"; } >&5
1728
 
  (eval "$ac_compile") 2>conftest.err
1729
 
  ac_status=$?
1730
 
  if test -s conftest.err; then
1731
 
    grep -v '^ *+' conftest.err >conftest.er1
1732
 
    cat conftest.er1 >&5
1733
 
    mv -f conftest.er1 conftest.err
1734
 
  fi
1735
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736
 
  test $ac_status = 0; } && {
1737
 
         test -z "$ac_c_werror_flag" ||
1738
 
         test ! -s conftest.err
1739
 
       } && test -s conftest.$ac_objext; then :
1740
 
  ac_retval=0
1741
 
else
1742
 
  $as_echo "$as_me: failed program was:" >&5
1743
 
sed 's/^/| /' conftest.$ac_ext >&5
1744
 
 
1745
 
        ac_retval=1
1746
 
fi
1747
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748
 
  as_fn_set_status $ac_retval
1749
 
 
1750
 
} # ac_fn_c_try_compile
1751
 
 
1752
 
# ac_fn_cxx_try_cpp LINENO
1753
 
# ------------------------
1754
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755
 
ac_fn_cxx_try_cpp ()
1756
 
{
1757
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1759
 
case "(($ac_try" in
1760
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761
 
  *) ac_try_echo=$ac_try;;
1762
 
esac
1763
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764
 
$as_echo "$ac_try_echo"; } >&5
1765
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766
 
  ac_status=$?
1767
 
  if test -s conftest.err; then
1768
 
    grep -v '^ *+' conftest.err >conftest.er1
1769
 
    cat conftest.er1 >&5
1770
 
    mv -f conftest.er1 conftest.err
1771
 
  fi
1772
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773
 
  test $ac_status = 0; } >/dev/null && {
1774
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1775
 
         test ! -s conftest.err
1776
 
       }; then :
1777
 
  ac_retval=0
1778
 
else
1779
 
  $as_echo "$as_me: failed program was:" >&5
1780
 
sed 's/^/| /' conftest.$ac_ext >&5
1781
 
 
1782
 
    ac_retval=1
1783
 
fi
1784
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785
 
  as_fn_set_status $ac_retval
1786
 
 
1787
 
} # ac_fn_cxx_try_cpp
1788
 
 
1789
 
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1790
 
# ---------------------------------------------------------
1791
 
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792
 
# the include files in INCLUDES and setting the cache variable VAR
1793
 
# accordingly.
1794
 
ac_fn_cxx_check_header_mongrel ()
1795
 
{
1796
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797
 
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799
 
$as_echo_n "checking for $2... " >&6; }
1800
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801
 
  $as_echo_n "(cached) " >&6
1802
 
fi
1803
 
eval ac_res=\$$3
1804
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805
 
$as_echo "$ac_res" >&6; }
1806
 
else
1807
 
  # Is the header compilable?
1808
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809
 
$as_echo_n "checking $2 usability... " >&6; }
1810
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811
 
/* end confdefs.h.  */
1812
 
$4
1813
 
#include <$2>
1814
 
_ACEOF
1815
 
if ac_fn_cxx_try_compile "$LINENO"; then :
1816
 
  ac_header_compiler=yes
1817
 
else
1818
 
  ac_header_compiler=no
1819
 
fi
1820
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822
 
$as_echo "$ac_header_compiler" >&6; }
1823
 
 
1824
 
# Is the header present?
1825
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826
 
$as_echo_n "checking $2 presence... " >&6; }
1827
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828
 
/* end confdefs.h.  */
1829
 
#include <$2>
1830
 
_ACEOF
1831
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
1832
 
  ac_header_preproc=yes
1833
 
else
1834
 
  ac_header_preproc=no
1835
 
fi
1836
 
rm -f conftest.err conftest.$ac_ext
1837
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838
 
$as_echo "$ac_header_preproc" >&6; }
1839
 
 
1840
 
# So?  What about this header?
1841
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1842
 
  yes:no: )
1843
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847
 
    ;;
1848
 
  no:yes:* )
1849
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1852
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1853
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1856
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1857
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859
 
( cat <<\_ASBOX
1860
 
## ----------------------------------------------- ##
1861
 
## Report this to t-tujikawa@users.sourceforge.net ##
1862
 
## ----------------------------------------------- ##
1863
 
_ASBOX
1864
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1865
 
    ;;
1866
 
esac
1867
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868
 
$as_echo_n "checking for $2... " >&6; }
1869
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870
 
  $as_echo_n "(cached) " >&6
1871
 
else
1872
 
  eval "$3=\$ac_header_compiler"
1873
 
fi
1874
 
eval ac_res=\$$3
1875
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876
 
$as_echo "$ac_res" >&6; }
1877
 
fi
1878
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
 
 
1880
 
} # ac_fn_cxx_check_header_mongrel
1881
 
 
1882
 
# ac_fn_cxx_try_run LINENO
1883
 
# ------------------------
1884
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885
 
# that executables *can* be run.
1886
 
ac_fn_cxx_try_run ()
1887
 
{
1888
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889
 
  if { { ac_try="$ac_link"
1890
 
case "(($ac_try" in
1891
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892
 
  *) ac_try_echo=$ac_try;;
1893
 
esac
1894
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895
 
$as_echo "$ac_try_echo"; } >&5
1896
 
  (eval "$ac_link") 2>&5
1897
 
  ac_status=$?
1898
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900
 
  { { case "(($ac_try" in
1901
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902
 
  *) ac_try_echo=$ac_try;;
1903
 
esac
1904
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905
 
$as_echo "$ac_try_echo"; } >&5
1906
 
  (eval "$ac_try") 2>&5
1907
 
  ac_status=$?
1908
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909
 
  test $ac_status = 0; }; }; then :
1910
 
  ac_retval=0
1911
 
else
1912
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1913
 
       $as_echo "$as_me: failed program was:" >&5
1914
 
sed 's/^/| /' conftest.$ac_ext >&5
1915
 
 
1916
 
       ac_retval=$ac_status
1917
 
fi
1918
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920
 
  as_fn_set_status $ac_retval
1921
 
 
1922
 
} # ac_fn_cxx_try_run
1923
 
 
1924
 
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1925
 
# ---------------------------------------------------------
1926
 
# Tests whether HEADER exists and can be compiled using the include files in
1927
 
# INCLUDES, setting the cache variable VAR accordingly.
1928
 
ac_fn_cxx_check_header_compile ()
1929
 
{
1930
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932
 
$as_echo_n "checking for $2... " >&6; }
1933
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934
 
  $as_echo_n "(cached) " >&6
1935
 
else
1936
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937
 
/* end confdefs.h.  */
1938
 
$4
1939
 
#include <$2>
1940
 
_ACEOF
1941
 
if ac_fn_cxx_try_compile "$LINENO"; then :
1942
 
  eval "$3=yes"
1943
 
else
1944
 
  eval "$3=no"
1945
 
fi
1946
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947
 
fi
1948
 
eval ac_res=\$$3
1949
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950
 
$as_echo "$ac_res" >&6; }
1951
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
 
 
1953
 
} # ac_fn_cxx_check_header_compile
1954
 
 
1955
 
# ac_fn_cxx_try_link LINENO
1956
 
# -------------------------
1957
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1958
 
ac_fn_cxx_try_link ()
1959
 
{
1960
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1962
 
  if { { ac_try="$ac_link"
1963
 
case "(($ac_try" in
1964
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965
 
  *) ac_try_echo=$ac_try;;
1966
 
esac
1967
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968
 
$as_echo "$ac_try_echo"; } >&5
1969
 
  (eval "$ac_link") 2>conftest.err
1970
 
  ac_status=$?
1971
 
  if test -s conftest.err; then
1972
 
    grep -v '^ *+' conftest.err >conftest.er1
1973
 
    cat conftest.er1 >&5
1974
 
    mv -f conftest.er1 conftest.err
1975
 
  fi
1976
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977
 
  test $ac_status = 0; } && {
1978
 
         test -z "$ac_cxx_werror_flag" ||
1979
 
         test ! -s conftest.err
1980
 
       } && test -s conftest$ac_exeext && {
1981
 
         test "$cross_compiling" = yes ||
1982
 
         $as_test_x conftest$ac_exeext
1983
 
       }; then :
1984
 
  ac_retval=0
1985
 
else
1986
 
  $as_echo "$as_me: failed program was:" >&5
1987
 
sed 's/^/| /' conftest.$ac_ext >&5
1988
 
 
1989
 
        ac_retval=1
1990
 
fi
1991
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993
 
  # interfere with the next link command; also delete a directory that is
1994
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1995
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997
 
  as_fn_set_status $ac_retval
1998
 
 
1999
 
} # ac_fn_cxx_try_link
2000
 
 
2001
 
# ac_fn_cxx_check_func LINENO FUNC VAR
2002
 
# ------------------------------------
2003
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2004
 
ac_fn_cxx_check_func ()
2005
 
{
2006
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008
 
$as_echo_n "checking for $2... " >&6; }
2009
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010
 
  $as_echo_n "(cached) " >&6
2011
 
else
2012
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013
 
/* end confdefs.h.  */
2014
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2016
 
#define $2 innocuous_$2
2017
 
 
2018
 
/* System header to define __stub macros and hopefully few prototypes,
2019
 
    which can conflict with char $2 (); below.
2020
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021
 
    <limits.h> exists even on freestanding compilers.  */
2022
 
 
2023
 
#ifdef __STDC__
2024
 
# include <limits.h>
2025
 
#else
2026
 
# include <assert.h>
2027
 
#endif
2028
 
 
2029
 
#undef $2
2030
 
 
2031
 
/* Override any GCC internal prototype to avoid an error.
2032
 
   Use char because int might match the return type of a GCC
2033
 
   builtin and then its argument prototype would still apply.  */
2034
 
#ifdef __cplusplus
2035
 
extern "C"
2036
 
#endif
2037
 
char $2 ();
2038
 
/* The GNU C library defines this for functions which it implements
2039
 
    to always fail with ENOSYS.  Some functions are actually named
2040
 
    something starting with __ and the normal name is an alias.  */
2041
 
#if defined __stub_$2 || defined __stub___$2
2042
 
choke me
2043
 
#endif
2044
 
 
2045
 
int
2046
 
main ()
2047
 
{
2048
 
return $2 ();
2049
 
  ;
2050
 
  return 0;
2051
 
}
2052
 
_ACEOF
2053
 
if ac_fn_cxx_try_link "$LINENO"; then :
2054
 
  eval "$3=yes"
2055
 
else
2056
 
  eval "$3=no"
2057
 
fi
2058
 
rm -f core conftest.err conftest.$ac_objext \
2059
 
    conftest$ac_exeext conftest.$ac_ext
2060
 
fi
2061
 
eval ac_res=\$$3
2062
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063
 
$as_echo "$ac_res" >&6; }
2064
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065
 
 
2066
 
} # ac_fn_cxx_check_func
2067
 
 
2068
 
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2069
 
# ---------------------------------------------
2070
 
# Tests whether TYPE exists after having included INCLUDES, setting cache
2071
 
# variable VAR accordingly.
2072
 
ac_fn_cxx_check_type ()
2073
 
{
2074
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076
 
$as_echo_n "checking for $2... " >&6; }
2077
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078
 
  $as_echo_n "(cached) " >&6
2079
 
else
2080
 
  eval "$3=no"
2081
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082
 
/* end confdefs.h.  */
2083
 
$4
2084
 
int
2085
 
main ()
2086
 
{
2087
 
if (sizeof ($2))
2088
 
         return 0;
2089
 
  ;
2090
 
  return 0;
2091
 
}
2092
 
_ACEOF
2093
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2094
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095
 
/* end confdefs.h.  */
2096
 
$4
2097
 
int
2098
 
main ()
2099
 
{
2100
 
if (sizeof (($2)))
2101
 
            return 0;
2102
 
  ;
2103
 
  return 0;
2104
 
}
2105
 
_ACEOF
2106
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2107
 
 
2108
 
else
2109
 
  eval "$3=yes"
2110
 
fi
2111
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112
 
fi
2113
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114
 
fi
2115
 
eval ac_res=\$$3
2116
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117
 
$as_echo "$ac_res" >&6; }
2118
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119
 
 
2120
 
} # ac_fn_cxx_check_type
2121
 
 
2122
 
# ac_fn_c_find_intX_t LINENO BITS VAR
2123
 
# -----------------------------------
2124
 
# Finds a signed integer type with width BITS, setting cache variable VAR
2125
 
# accordingly.
2126
 
ac_fn_c_find_intX_t ()
2127
 
{
2128
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2130
 
$as_echo_n "checking for int$2_t... " >&6; }
2131
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2132
 
  $as_echo_n "(cached) " >&6
2133
 
else
2134
 
  eval "$3=no"
2135
 
     # Order is important - never check a type that is potentially smaller
2136
 
     # than half of the expected target width.
2137
 
     for ac_type in int$2_t 'int' 'long int' \
2138
 
         'long long int' 'short int' 'signed char'; do
2139
 
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140
 
/* end confdefs.h.  */
2141
 
$ac_includes_default
2142
 
             enum { N = $2 / 2 - 1 };
2143
 
int
2144
 
main ()
2145
 
{
2146
 
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2147
 
test_array [0] = 0
2148
 
 
2149
 
  ;
2150
 
  return 0;
2151
 
}
2152
 
_ACEOF
2153
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2154
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155
 
/* end confdefs.h.  */
2156
 
$ac_includes_default
2157
 
                enum { N = $2 / 2 - 1 };
2158
 
int
2159
 
main ()
2160
 
{
2161
 
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2162
 
                 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2163
 
test_array [0] = 0
2164
 
 
2165
 
  ;
2166
 
  return 0;
2167
 
}
2168
 
_ACEOF
2169
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2170
 
 
2171
 
else
2172
 
  case $ac_type in #(
2173
 
  int$2_t) :
2174
 
    eval "$3=yes" ;; #(
2175
 
  *) :
2176
 
    eval "$3=\$ac_type" ;;
2177
 
esac
2178
 
fi
2179
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180
 
fi
2181
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182
 
       eval as_val=\$$3
2183
 
   if test "x$as_val" = x""no; then :
2184
 
 
2185
 
else
2186
 
  break
2187
 
fi
2188
 
     done
2189
 
fi
2190
 
eval ac_res=\$$3
2191
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192
 
$as_echo "$ac_res" >&6; }
2193
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2194
 
 
2195
 
} # ac_fn_c_find_intX_t
2196
 
 
2197
 
# ac_fn_c_find_uintX_t LINENO BITS VAR
2198
 
# ------------------------------------
2199
 
# Finds an unsigned integer type with width BITS, setting cache variable VAR
2200
 
# accordingly.
2201
 
ac_fn_c_find_uintX_t ()
2202
 
{
2203
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2205
 
$as_echo_n "checking for uint$2_t... " >&6; }
2206
 
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2207
 
  $as_echo_n "(cached) " >&6
2208
 
else
2209
 
  eval "$3=no"
2210
 
     # Order is important - never check a type that is potentially smaller
2211
 
     # than half of the expected target width.
2212
 
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2213
 
         'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2214
 
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215
 
/* end confdefs.h.  */
2216
 
$ac_includes_default
2217
 
int
2218
 
main ()
2219
 
{
2220
 
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2221
 
test_array [0] = 0
2222
 
 
2223
 
  ;
2224
 
  return 0;
2225
 
}
2226
 
_ACEOF
2227
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2228
 
  case $ac_type in #(
2229
 
  uint$2_t) :
2230
 
    eval "$3=yes" ;; #(
2231
 
  *) :
2232
 
    eval "$3=\$ac_type" ;;
2233
 
esac
2234
 
fi
2235
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236
 
       eval as_val=\$$3
2237
 
   if test "x$as_val" = x""no; then :
2238
 
 
2239
 
else
2240
 
  break
2241
 
fi
2242
 
     done
2243
 
fi
2244
 
eval ac_res=\$$3
2245
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246
 
$as_echo "$ac_res" >&6; }
2247
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248
 
 
2249
 
} # ac_fn_c_find_uintX_t
2250
 
 
2251
 
# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2252
 
# ----------------------------------------------
2253
 
# Tries to find the compile-time value of EXPR in a program that includes
2254
 
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2255
 
# computed
2256
 
ac_fn_cxx_compute_int ()
2257
 
{
2258
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259
 
  if test "$cross_compiling" = yes; then
2260
 
    # Depending upon the size, compute the lo and hi bounds.
2261
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262
 
/* end confdefs.h.  */
2263
 
$4
2264
 
int
2265
 
main ()
2266
 
{
2267
 
static int test_array [1 - 2 * !(($2) >= 0)];
2268
 
test_array [0] = 0
2269
 
 
2270
 
  ;
2271
 
  return 0;
2272
 
}
2273
 
_ACEOF
2274
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2275
 
  ac_lo=0 ac_mid=0
2276
 
  while :; do
2277
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278
 
/* end confdefs.h.  */
2279
 
$4
2280
 
int
2281
 
main ()
2282
 
{
2283
 
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2284
 
test_array [0] = 0
2285
 
 
2286
 
  ;
2287
 
  return 0;
2288
 
}
2289
 
_ACEOF
2290
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2291
 
  ac_hi=$ac_mid; break
2292
 
else
2293
 
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2294
 
                        if test $ac_lo -le $ac_mid; then
2295
 
                          ac_lo= ac_hi=
2296
 
                          break
2297
 
                        fi
2298
 
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2299
 
fi
2300
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301
 
  done
2302
 
else
2303
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304
 
/* end confdefs.h.  */
2305
 
$4
2306
 
int
2307
 
main ()
2308
 
{
2309
 
static int test_array [1 - 2 * !(($2) < 0)];
2310
 
test_array [0] = 0
2311
 
 
2312
 
  ;
2313
 
  return 0;
2314
 
}
2315
 
_ACEOF
2316
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2317
 
  ac_hi=-1 ac_mid=-1
2318
 
  while :; do
2319
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320
 
/* end confdefs.h.  */
2321
 
$4
2322
 
int
2323
 
main ()
2324
 
{
2325
 
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2326
 
test_array [0] = 0
2327
 
 
2328
 
  ;
2329
 
  return 0;
2330
 
}
2331
 
_ACEOF
2332
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2333
 
  ac_lo=$ac_mid; break
2334
 
else
2335
 
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2336
 
                        if test $ac_mid -le $ac_hi; then
2337
 
                          ac_lo= ac_hi=
2338
 
                          break
2339
 
                        fi
2340
 
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2341
 
fi
2342
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343
 
  done
2344
 
else
2345
 
  ac_lo= ac_hi=
2346
 
fi
2347
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348
 
fi
2349
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350
 
# Binary search between lo and hi bounds.
2351
 
while test "x$ac_lo" != "x$ac_hi"; do
2352
 
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2353
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354
 
/* end confdefs.h.  */
2355
 
$4
2356
 
int
2357
 
main ()
2358
 
{
2359
 
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2360
 
test_array [0] = 0
2361
 
 
2362
 
  ;
2363
 
  return 0;
2364
 
}
2365
 
_ACEOF
2366
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2367
 
  ac_hi=$ac_mid
2368
 
else
2369
 
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2370
 
fi
2371
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372
 
done
2373
 
case $ac_lo in #((
2374
 
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2375
 
'') ac_retval=1 ;;
2376
 
esac
2377
 
  else
2378
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379
 
/* end confdefs.h.  */
2380
 
$4
2381
 
static long int longval () { return $2; }
2382
 
static unsigned long int ulongval () { return $2; }
2383
 
#include <stdio.h>
2384
 
#include <stdlib.h>
2385
 
int
2386
 
main ()
2387
 
{
2388
 
 
2389
 
  FILE *f = fopen ("conftest.val", "w");
2390
 
  if (! f)
2391
 
    return 1;
2392
 
  if (($2) < 0)
2393
 
    {
2394
 
      long int i = longval ();
2395
 
      if (i != ($2))
2396
 
        return 1;
2397
 
      fprintf (f, "%ld", i);
2398
 
    }
2399
 
  else
2400
 
    {
2401
 
      unsigned long int i = ulongval ();
2402
 
      if (i != ($2))
2403
 
        return 1;
2404
 
      fprintf (f, "%lu", i);
2405
 
    }
2406
 
  /* Do not output a trailing newline, as this causes \r\n confusion
2407
 
     on some platforms.  */
2408
 
  return ferror (f) || fclose (f) != 0;
2409
 
 
2410
 
  ;
2411
 
  return 0;
2412
 
}
2413
 
_ACEOF
2414
 
if ac_fn_cxx_try_run "$LINENO"; then :
2415
 
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2416
 
else
2417
 
  ac_retval=1
2418
 
fi
2419
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2420
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2421
 
rm -f conftest.val
2422
 
 
2423
 
  fi
2424
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2425
 
  as_fn_set_status $ac_retval
2426
 
 
2427
 
} # ac_fn_cxx_compute_int
2428
 
 
2429
 
# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2430
 
# ------------------------------------------------------
2431
 
# Tries to find if the field MEMBER exists in type AGGR, after including
2432
 
# INCLUDES, setting cache variable VAR accordingly.
2433
 
ac_fn_cxx_check_member ()
2434
 
{
2435
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2437
 
$as_echo_n "checking for $2.$3... " >&6; }
2438
 
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2439
 
  $as_echo_n "(cached) " >&6
2440
 
else
2441
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442
 
/* end confdefs.h.  */
2443
 
$5
2444
 
int
2445
 
main ()
2446
 
{
2447
 
static $2 ac_aggr;
2448
 
if (ac_aggr.$3)
2449
 
return 0;
2450
 
  ;
2451
 
  return 0;
2452
 
}
2453
 
_ACEOF
2454
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2455
 
  eval "$4=yes"
2456
 
else
2457
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458
 
/* end confdefs.h.  */
2459
 
$5
2460
 
int
2461
 
main ()
2462
 
{
2463
 
static $2 ac_aggr;
2464
 
if (sizeof ac_aggr.$3)
2465
 
return 0;
2466
 
  ;
2467
 
  return 0;
2468
 
}
2469
 
_ACEOF
2470
 
if ac_fn_cxx_try_compile "$LINENO"; then :
2471
 
  eval "$4=yes"
2472
 
else
2473
 
  eval "$4=no"
2474
 
fi
2475
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476
 
fi
2477
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478
 
fi
2479
 
eval ac_res=\$$4
2480
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481
 
$as_echo "$ac_res" >&6; }
2482
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483
 
 
2484
 
} # ac_fn_cxx_check_member
2485
 
cat >config.log <<_ACEOF
2486
 
This file contains any messages produced by compilers while
2487
 
running configure, to aid debugging if configure makes a mistake.
2488
 
 
2489
 
It was created by aria2 $as_me 1.10.0, which was
2490
 
generated by GNU Autoconf 2.65.  Invocation command line was
2491
 
 
2492
 
  $ $0 $@
2493
 
 
2494
 
_ACEOF
2495
 
exec 5>>config.log
2496
 
{
2497
 
cat <<_ASUNAME
2498
 
## --------- ##
2499
 
## Platform. ##
2500
 
## --------- ##
2501
 
 
2502
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2503
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2504
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2505
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2506
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2507
 
 
2508
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2509
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2510
 
 
2511
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2512
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2513
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2514
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2515
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2516
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2517
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2518
 
 
2519
 
_ASUNAME
2520
 
 
2521
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522
 
for as_dir in $PATH
2523
 
do
2524
 
  IFS=$as_save_IFS
2525
 
  test -z "$as_dir" && as_dir=.
2526
 
    $as_echo "PATH: $as_dir"
2527
 
  done
2528
 
IFS=$as_save_IFS
2529
 
 
2530
 
} >&5
2531
 
 
2532
 
cat >&5 <<_ACEOF
2533
 
 
2534
 
 
2535
 
## ----------- ##
2536
 
## Core tests. ##
2537
 
## ----------- ##
2538
 
 
2539
 
_ACEOF
2540
 
 
2541
 
 
2542
 
# Keep a trace of the command line.
2543
 
# Strip out --no-create and --no-recursion so they do not pile up.
2544
 
# Strip out --silent because we don't want to record it for future runs.
2545
 
# Also quote any args containing shell meta-characters.
2546
 
# Make two passes to allow for proper duplicate-argument suppression.
2547
 
ac_configure_args=
2548
 
ac_configure_args0=
2549
 
ac_configure_args1=
2550
 
ac_must_keep_next=false
2551
 
for ac_pass in 1 2
2552
 
do
2553
 
  for ac_arg
2554
 
  do
2555
 
    case $ac_arg in
2556
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2557
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2558
 
    | -silent | --silent | --silen | --sile | --sil)
2559
 
      continue ;;
2560
 
    *\'*)
2561
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2562
 
    esac
2563
 
    case $ac_pass in
2564
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2565
 
    2)
2566
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
2567
 
      if test $ac_must_keep_next = true; then
2568
 
        ac_must_keep_next=false # Got value, back to normal.
2569
 
      else
2570
 
        case $ac_arg in
2571
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
2572
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2573
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2574
 
          | -with-* | --with-* | -without-* | --without-* | --x)
2575
 
            case "$ac_configure_args0 " in
2576
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2577
 
            esac
2578
 
            ;;
2579
 
          -* ) ac_must_keep_next=true ;;
2580
 
        esac
2581
 
      fi
2582
 
      as_fn_append ac_configure_args " '$ac_arg'"
2583
 
      ;;
2584
 
    esac
2585
 
  done
2586
 
done
2587
 
{ ac_configure_args0=; unset ac_configure_args0;}
2588
 
{ ac_configure_args1=; unset ac_configure_args1;}
2589
 
 
2590
 
# When interrupted or exit'd, cleanup temporary files, and complete
2591
 
# config.log.  We remove comments because anyway the quotes in there
2592
 
# would cause problems or look ugly.
2593
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
2594
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2595
 
trap 'exit_status=$?
2596
 
  # Save into config.log some information that might help in debugging.
2597
 
  {
2598
 
    echo
2599
 
 
2600
 
    cat <<\_ASBOX
2601
 
## ---------------- ##
2602
 
## Cache variables. ##
2603
 
## ---------------- ##
2604
 
_ASBOX
2605
 
    echo
2606
 
    # The following way of writing the cache mishandles newlines in values,
2607
 
(
2608
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2609
 
    eval ac_val=\$$ac_var
2610
 
    case $ac_val in #(
2611
 
    *${as_nl}*)
2612
 
      case $ac_var in #(
2613
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2614
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2615
 
      esac
2616
 
      case $ac_var in #(
2617
 
      _ | IFS | as_nl) ;; #(
2618
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2619
 
      *) { eval $ac_var=; unset $ac_var;} ;;
2620
 
      esac ;;
2621
 
    esac
2622
 
  done
2623
 
  (set) 2>&1 |
2624
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2625
 
    *${as_nl}ac_space=\ *)
2626
 
      sed -n \
2627
 
        "s/'\''/'\''\\\\'\'''\''/g;
2628
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2629
 
      ;; #(
2630
 
    *)
2631
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2632
 
      ;;
2633
 
    esac |
2634
 
    sort
2635
 
)
2636
 
    echo
2637
 
 
2638
 
    cat <<\_ASBOX
2639
 
## ----------------- ##
2640
 
## Output variables. ##
2641
 
## ----------------- ##
2642
 
_ASBOX
2643
 
    echo
2644
 
    for ac_var in $ac_subst_vars
2645
 
    do
2646
 
      eval ac_val=\$$ac_var
2647
 
      case $ac_val in
2648
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2649
 
      esac
2650
 
      $as_echo "$ac_var='\''$ac_val'\''"
2651
 
    done | sort
2652
 
    echo
2653
 
 
2654
 
    if test -n "$ac_subst_files"; then
2655
 
      cat <<\_ASBOX
2656
 
## ------------------- ##
2657
 
## File substitutions. ##
2658
 
## ------------------- ##
2659
 
_ASBOX
2660
 
      echo
2661
 
      for ac_var in $ac_subst_files
2662
 
      do
2663
 
        eval ac_val=\$$ac_var
2664
 
        case $ac_val in
2665
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2666
 
        esac
2667
 
        $as_echo "$ac_var='\''$ac_val'\''"
2668
 
      done | sort
2669
 
      echo
2670
 
    fi
2671
 
 
2672
 
    if test -s confdefs.h; then
2673
 
      cat <<\_ASBOX
2674
 
## ----------- ##
2675
 
## confdefs.h. ##
2676
 
## ----------- ##
2677
 
_ASBOX
2678
 
      echo
2679
 
      cat confdefs.h
2680
 
      echo
2681
 
    fi
2682
 
    test "$ac_signal" != 0 &&
2683
 
      $as_echo "$as_me: caught signal $ac_signal"
2684
 
    $as_echo "$as_me: exit $exit_status"
2685
 
  } >&5
2686
 
  rm -f core *.core core.conftest.* &&
2687
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2688
 
    exit $exit_status
2689
 
' 0
2690
 
for ac_signal in 1 2 13 15; do
2691
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2692
 
done
2693
 
ac_signal=0
2694
 
 
2695
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2696
 
rm -f -r conftest* confdefs.h
2697
 
 
2698
 
$as_echo "/* confdefs.h */" > confdefs.h
2699
 
 
2700
 
# Predefined preprocessor variables.
2701
 
 
2702
 
cat >>confdefs.h <<_ACEOF
2703
 
#define PACKAGE_NAME "$PACKAGE_NAME"
2704
 
_ACEOF
2705
 
 
2706
 
cat >>confdefs.h <<_ACEOF
2707
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2708
 
_ACEOF
2709
 
 
2710
 
cat >>confdefs.h <<_ACEOF
2711
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2712
 
_ACEOF
2713
 
 
2714
 
cat >>confdefs.h <<_ACEOF
2715
 
#define PACKAGE_STRING "$PACKAGE_STRING"
2716
 
_ACEOF
2717
 
 
2718
 
cat >>confdefs.h <<_ACEOF
2719
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2720
 
_ACEOF
2721
 
 
2722
 
cat >>confdefs.h <<_ACEOF
2723
 
#define PACKAGE_URL "$PACKAGE_URL"
2724
 
_ACEOF
2725
 
 
2726
 
 
2727
 
# Let the site file select an alternate cache file if it wants to.
2728
 
# Prefer an explicitly selected file to automatically selected ones.
2729
 
ac_site_file1=NONE
2730
 
ac_site_file2=NONE
2731
 
if test -n "$CONFIG_SITE"; then
2732
 
  ac_site_file1=$CONFIG_SITE
2733
 
elif test "x$prefix" != xNONE; then
2734
 
  ac_site_file1=$prefix/share/config.site
2735
 
  ac_site_file2=$prefix/etc/config.site
2736
 
else
2737
 
  ac_site_file1=$ac_default_prefix/share/config.site
2738
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2739
 
fi
2740
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2741
 
do
2742
 
  test "x$ac_site_file" = xNONE && continue
2743
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2744
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2745
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2746
 
    sed 's/^/| /' "$ac_site_file" >&5
2747
 
    . "$ac_site_file"
2748
 
  fi
2749
 
done
2750
 
 
2751
 
if test -r "$cache_file"; then
2752
 
  # Some versions of bash will fail to source /dev/null (special files
2753
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2754
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2755
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2756
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2757
 
    case $cache_file in
2758
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2759
 
      *)                      . "./$cache_file";;
2760
 
    esac
2761
 
  fi
2762
 
else
2763
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2764
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2765
 
  >$cache_file
2766
 
fi
2767
 
 
2768
 
gt_needs="$gt_needs "
2769
 
as_fn_append ac_header_list " stdlib.h"
2770
 
as_fn_append ac_header_list " unistd.h"
2771
 
as_fn_append ac_header_list " sys/param.h"
2772
 
as_fn_append ac_header_list " sys/time.h"
2773
 
as_fn_append ac_func_list " alarm"
2774
 
# Check that the precious variables saved in the cache have kept the same
2775
 
# value.
2776
 
ac_cache_corrupted=false
2777
 
for ac_var in $ac_precious_vars; do
2778
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2779
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2780
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2781
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2782
 
  case $ac_old_set,$ac_new_set in
2783
 
    set,)
2784
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2785
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2786
 
      ac_cache_corrupted=: ;;
2787
 
    ,set)
2788
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2789
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2790
 
      ac_cache_corrupted=: ;;
2791
 
    ,);;
2792
 
    *)
2793
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2794
 
        # differences in whitespace do not lead to failure.
2795
 
        ac_old_val_w=`echo x $ac_old_val`
2796
 
        ac_new_val_w=`echo x $ac_new_val`
2797
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2798
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2799
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2800
 
          ac_cache_corrupted=:
2801
 
        else
2802
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2803
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2804
 
          eval $ac_var=\$ac_old_val
2805
 
        fi
2806
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2807
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2808
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2809
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2810
 
      fi;;
2811
 
  esac
2812
 
  # Pass precious variables to config.status.
2813
 
  if test "$ac_new_set" = set; then
2814
 
    case $ac_new_val in
2815
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2816
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2817
 
    esac
2818
 
    case " $ac_configure_args " in
2819
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2820
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2821
 
    esac
2822
 
  fi
2823
 
done
2824
 
if $ac_cache_corrupted; then
2825
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2826
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2827
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2828
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2829
 
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2830
 
fi
2831
 
## -------------------- ##
2832
 
## Main body of script. ##
2833
 
## -------------------- ##
2834
 
 
2835
 
ac_ext=c
2836
 
ac_cpp='$CPP $CPPFLAGS'
2837
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840
 
 
2841
 
 
2842
 
ac_aux_dir=
2843
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2844
 
  for ac_t in install-sh install.sh shtool; do
2845
 
    if test -f "$ac_dir/$ac_t"; then
2846
 
      ac_aux_dir=$ac_dir
2847
 
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2848
 
      break 2
2849
 
    fi
2850
 
  done
2851
 
done
2852
 
if test -z "$ac_aux_dir"; then
2853
 
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2854
 
fi
2855
 
 
2856
 
# These three variables are undocumented and unsupported,
2857
 
# and are intended to be withdrawn in a future Autoconf release.
2858
 
# They can cause serious problems if a builder's source tree is in a directory
2859
 
# whose full name contains unusual characters.
2860
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2861
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2862
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2863
 
 
2864
 
 
2865
 
# Make sure we can run config.sub.
2866
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2867
 
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2868
 
 
2869
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2870
 
$as_echo_n "checking build system type... " >&6; }
2871
 
if test "${ac_cv_build+set}" = set; then :
2872
 
  $as_echo_n "(cached) " >&6
2873
 
else
2874
 
  ac_build_alias=$build_alias
2875
 
test "x$ac_build_alias" = x &&
2876
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2877
 
test "x$ac_build_alias" = x &&
2878
 
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2879
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2880
 
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2881
 
 
2882
 
fi
2883
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2884
 
$as_echo "$ac_cv_build" >&6; }
2885
 
case $ac_cv_build in
2886
 
*-*-*) ;;
2887
 
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2888
 
esac
2889
 
build=$ac_cv_build
2890
 
ac_save_IFS=$IFS; IFS='-'
2891
 
set x $ac_cv_build
2892
 
shift
2893
 
build_cpu=$1
2894
 
build_vendor=$2
2895
 
shift; shift
2896
 
# Remember, the first character of IFS is used to create $*,
2897
 
# except with old shells:
2898
 
build_os=$*
2899
 
IFS=$ac_save_IFS
2900
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2901
 
 
2902
 
 
2903
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2904
 
$as_echo_n "checking host system type... " >&6; }
2905
 
if test "${ac_cv_host+set}" = set; then :
2906
 
  $as_echo_n "(cached) " >&6
2907
 
else
2908
 
  if test "x$host_alias" = x; then
2909
 
  ac_cv_host=$ac_cv_build
2910
 
else
2911
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2912
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2913
 
fi
2914
 
 
2915
 
fi
2916
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2917
 
$as_echo "$ac_cv_host" >&6; }
2918
 
case $ac_cv_host in
2919
 
*-*-*) ;;
2920
 
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2921
 
esac
2922
 
host=$ac_cv_host
2923
 
ac_save_IFS=$IFS; IFS='-'
2924
 
set x $ac_cv_host
2925
 
shift
2926
 
host_cpu=$1
2927
 
host_vendor=$2
2928
 
shift; shift
2929
 
# Remember, the first character of IFS is used to create $*,
2930
 
# except with old shells:
2931
 
host_os=$*
2932
 
IFS=$ac_save_IFS
2933
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2934
 
 
2935
 
 
2936
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2937
 
$as_echo_n "checking target system type... " >&6; }
2938
 
if test "${ac_cv_target+set}" = set; then :
2939
 
  $as_echo_n "(cached) " >&6
2940
 
else
2941
 
  if test "x$target_alias" = x; then
2942
 
  ac_cv_target=$ac_cv_host
2943
 
else
2944
 
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2945
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2946
 
fi
2947
 
 
2948
 
fi
2949
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2950
 
$as_echo "$ac_cv_target" >&6; }
2951
 
case $ac_cv_target in
2952
 
*-*-*) ;;
2953
 
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2954
 
esac
2955
 
target=$ac_cv_target
2956
 
ac_save_IFS=$IFS; IFS='-'
2957
 
set x $ac_cv_target
2958
 
shift
2959
 
target_cpu=$1
2960
 
target_vendor=$2
2961
 
shift; shift
2962
 
# Remember, the first character of IFS is used to create $*,
2963
 
# except with old shells:
2964
 
target_os=$*
2965
 
IFS=$ac_save_IFS
2966
 
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2967
 
 
2968
 
 
2969
 
# The aliases save the names the user supplied, while $host etc.
2970
 
# will get canonicalized.
2971
 
test -n "$target_alias" &&
2972
 
  test "$program_prefix$program_suffix$program_transform_name" = \
2973
 
    NONENONEs,x,x, &&
2974
 
  program_prefix=${target_alias}-
2975
 
am__api_version='1.11'
2976
 
 
2977
 
# Find a good install program.  We prefer a C program (faster),
2978
 
# so one script is as good as another.  But avoid the broken or
2979
 
# incompatible versions:
2980
 
# SysV /etc/install, /usr/sbin/install
2981
 
# SunOS /usr/etc/install
2982
 
# IRIX /sbin/install
2983
 
# AIX /bin/install
2984
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2985
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2986
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2987
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2988
 
# OS/2's system install, which has a completely different semantic
2989
 
# ./install, which can be erroneously created by make from ./install.sh.
2990
 
# Reject install programs that cannot install multiple files.
2991
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2992
 
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2993
 
if test -z "$INSTALL"; then
2994
 
if test "${ac_cv_path_install+set}" = set; then :
2995
 
  $as_echo_n "(cached) " >&6
2996
 
else
2997
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998
 
for as_dir in $PATH
2999
 
do
3000
 
  IFS=$as_save_IFS
3001
 
  test -z "$as_dir" && as_dir=.
3002
 
    # Account for people who put trailing slashes in PATH elements.
3003
 
case $as_dir/ in #((
3004
 
  ./ | .// | /[cC]/* | \
3005
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3006
 
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3007
 
  /usr/ucb/* ) ;;
3008
 
  *)
3009
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
3010
 
    # Don't use installbsd from OSF since it installs stuff as root
3011
 
    # by default.
3012
 
    for ac_prog in ginstall scoinst install; do
3013
 
      for ac_exec_ext in '' $ac_executable_extensions; do
3014
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3015
 
          if test $ac_prog = install &&
3016
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3017
 
            # AIX install.  It has an incompatible calling convention.
3018
 
            :
3019
 
          elif test $ac_prog = install &&
3020
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3021
 
            # program-specific install script used by HP pwplus--don't use.
3022
 
            :
3023
 
          else
3024
 
            rm -rf conftest.one conftest.two conftest.dir
3025
 
            echo one > conftest.one
3026
 
            echo two > conftest.two
3027
 
            mkdir conftest.dir
3028
 
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3029
 
              test -s conftest.one && test -s conftest.two &&
3030
 
              test -s conftest.dir/conftest.one &&
3031
 
              test -s conftest.dir/conftest.two
3032
 
            then
3033
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3034
 
              break 3
3035
 
            fi
3036
 
          fi
3037
 
        fi
3038
 
      done
3039
 
    done
3040
 
    ;;
3041
 
esac
3042
 
 
3043
 
  done
3044
 
IFS=$as_save_IFS
3045
 
 
3046
 
rm -rf conftest.one conftest.two conftest.dir
3047
 
 
3048
 
fi
3049
 
  if test "${ac_cv_path_install+set}" = set; then
3050
 
    INSTALL=$ac_cv_path_install
3051
 
  else
3052
 
    # As a last resort, use the slow shell script.  Don't cache a
3053
 
    # value for INSTALL within a source directory, because that will
3054
 
    # break other packages using the cache if that directory is
3055
 
    # removed, or if the value is a relative name.
3056
 
    INSTALL=$ac_install_sh
3057
 
  fi
3058
 
fi
3059
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3060
 
$as_echo "$INSTALL" >&6; }
3061
 
 
3062
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3063
 
# It thinks the first close brace ends the variable substitution.
3064
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3065
 
 
3066
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3067
 
 
3068
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3069
 
 
3070
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3071
 
$as_echo_n "checking whether build environment is sane... " >&6; }
3072
 
# Just in case
3073
 
sleep 1
3074
 
echo timestamp > conftest.file
3075
 
# Reject unsafe characters in $srcdir or the absolute working directory
3076
 
# name.  Accept space and tab only in the latter.
3077
 
am_lf='
3078
 
'
3079
 
case `pwd` in
3080
 
  *[\\\"\#\$\&\'\`$am_lf]*)
3081
 
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3082
 
esac
3083
 
case $srcdir in
3084
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3085
 
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3086
 
esac
3087
 
 
3088
 
# Do `set' in a subshell so we don't clobber the current shell's
3089
 
# arguments.  Must try -L first in case configure is actually a
3090
 
# symlink; some systems play weird games with the mod time of symlinks
3091
 
# (eg FreeBSD returns the mod time of the symlink's containing
3092
 
# directory).
3093
 
if (
3094
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3095
 
   if test "$*" = "X"; then
3096
 
      # -L didn't work.
3097
 
      set X `ls -t "$srcdir/configure" conftest.file`
3098
 
   fi
3099
 
   rm -f conftest.file
3100
 
   if test "$*" != "X $srcdir/configure conftest.file" \
3101
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
3102
 
 
3103
 
      # If neither matched, then we have a broken ls.  This can happen
3104
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
3105
 
      # broken ls alias from the environment.  This has actually
3106
 
      # happened.  Such a system could not be considered "sane".
3107
 
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3108
 
alias in your environment" "$LINENO" 5
3109
 
   fi
3110
 
 
3111
 
   test "$2" = conftest.file
3112
 
   )
3113
 
then
3114
 
   # Ok.
3115
 
   :
3116
 
else
3117
 
   as_fn_error "newly created file is older than distributed files!
3118
 
Check your system clock" "$LINENO" 5
3119
 
fi
3120
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121
 
$as_echo "yes" >&6; }
3122
 
test "$program_prefix" != NONE &&
3123
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3124
 
# Use a double $ so make ignores it.
3125
 
test "$program_suffix" != NONE &&
3126
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3127
 
# Double any \ or $.
3128
 
# By default was `s,x,x', remove it if useless.
3129
 
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3130
 
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3131
 
 
3132
 
# expand $ac_aux_dir to an absolute path
3133
 
am_aux_dir=`cd $ac_aux_dir && pwd`
3134
 
 
3135
 
if test x"${MISSING+set}" != xset; then
3136
 
  case $am_aux_dir in
3137
 
  *\ * | *\     *)
3138
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3139
 
  *)
3140
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3141
 
  esac
3142
 
fi
3143
 
# Use eval to expand $SHELL
3144
 
if eval "$MISSING --run true"; then
3145
 
  am_missing_run="$MISSING --run "
3146
 
else
3147
 
  am_missing_run=
3148
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3149
 
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3150
 
fi
3151
 
 
3152
 
if test x"${install_sh}" != xset; then
3153
 
  case $am_aux_dir in
3154
 
  *\ * | *\     *)
3155
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3156
 
  *)
3157
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
3158
 
  esac
3159
 
fi
3160
 
 
3161
 
# Installed binaries are usually stripped using `strip' when the user
3162
 
# run `make install-strip'.  However `strip' might not be the right
3163
 
# tool to use in cross-compilation environments, therefore Automake
3164
 
# will honor the `STRIP' environment variable to overrule this program.
3165
 
if test "$cross_compiling" != no; then
3166
 
  if test -n "$ac_tool_prefix"; then
3167
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3168
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
3169
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170
 
$as_echo_n "checking for $ac_word... " >&6; }
3171
 
if test "${ac_cv_prog_STRIP+set}" = set; then :
3172
 
  $as_echo_n "(cached) " >&6
3173
 
else
3174
 
  if test -n "$STRIP"; then
3175
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3176
 
else
3177
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178
 
for as_dir in $PATH
3179
 
do
3180
 
  IFS=$as_save_IFS
3181
 
  test -z "$as_dir" && as_dir=.
3182
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3183
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3185
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186
 
    break 2
3187
 
  fi
3188
 
done
3189
 
  done
3190
 
IFS=$as_save_IFS
3191
 
 
3192
 
fi
3193
 
fi
3194
 
STRIP=$ac_cv_prog_STRIP
3195
 
if test -n "$STRIP"; then
3196
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3197
 
$as_echo "$STRIP" >&6; }
3198
 
else
3199
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200
 
$as_echo "no" >&6; }
3201
 
fi
3202
 
 
3203
 
 
3204
 
fi
3205
 
if test -z "$ac_cv_prog_STRIP"; then
3206
 
  ac_ct_STRIP=$STRIP
3207
 
  # Extract the first word of "strip", so it can be a program name with args.
3208
 
set dummy strip; ac_word=$2
3209
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210
 
$as_echo_n "checking for $ac_word... " >&6; }
3211
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3212
 
  $as_echo_n "(cached) " >&6
3213
 
else
3214
 
  if test -n "$ac_ct_STRIP"; then
3215
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3216
 
else
3217
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218
 
for as_dir in $PATH
3219
 
do
3220
 
  IFS=$as_save_IFS
3221
 
  test -z "$as_dir" && as_dir=.
3222
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3223
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224
 
    ac_cv_prog_ac_ct_STRIP="strip"
3225
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226
 
    break 2
3227
 
  fi
3228
 
done
3229
 
  done
3230
 
IFS=$as_save_IFS
3231
 
 
3232
 
fi
3233
 
fi
3234
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3235
 
if test -n "$ac_ct_STRIP"; then
3236
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3237
 
$as_echo "$ac_ct_STRIP" >&6; }
3238
 
else
3239
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240
 
$as_echo "no" >&6; }
3241
 
fi
3242
 
 
3243
 
  if test "x$ac_ct_STRIP" = x; then
3244
 
    STRIP=":"
3245
 
  else
3246
 
    case $cross_compiling:$ac_tool_warned in
3247
 
yes:)
3248
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250
 
ac_tool_warned=yes ;;
3251
 
esac
3252
 
    STRIP=$ac_ct_STRIP
3253
 
  fi
3254
 
else
3255
 
  STRIP="$ac_cv_prog_STRIP"
3256
 
fi
3257
 
 
3258
 
fi
3259
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3260
 
 
3261
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3262
 
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3263
 
if test -z "$MKDIR_P"; then
3264
 
  if test "${ac_cv_path_mkdir+set}" = set; then :
3265
 
  $as_echo_n "(cached) " >&6
3266
 
else
3267
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3269
 
do
3270
 
  IFS=$as_save_IFS
3271
 
  test -z "$as_dir" && as_dir=.
3272
 
    for ac_prog in mkdir gmkdir; do
3273
 
         for ac_exec_ext in '' $ac_executable_extensions; do
3274
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3275
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3276
 
             'mkdir (GNU coreutils) '* | \
3277
 
             'mkdir (coreutils) '* | \
3278
 
             'mkdir (fileutils) '4.1*)
3279
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3280
 
               break 3;;
3281
 
           esac
3282
 
         done
3283
 
       done
3284
 
  done
3285
 
IFS=$as_save_IFS
3286
 
 
3287
 
fi
3288
 
 
3289
 
  test -d ./--version && rmdir ./--version
3290
 
  if test "${ac_cv_path_mkdir+set}" = set; then
3291
 
    MKDIR_P="$ac_cv_path_mkdir -p"
3292
 
  else
3293
 
    # As a last resort, use the slow shell script.  Don't cache a
3294
 
    # value for MKDIR_P within a source directory, because that will
3295
 
    # break other packages using the cache if that directory is
3296
 
    # removed, or if the value is a relative name.
3297
 
    MKDIR_P="$ac_install_sh -d"
3298
 
  fi
3299
 
fi
3300
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3301
 
$as_echo "$MKDIR_P" >&6; }
3302
 
 
3303
 
mkdir_p="$MKDIR_P"
3304
 
case $mkdir_p in
3305
 
  [\\/$]* | ?:[\\/]*) ;;
3306
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3307
 
esac
3308
 
 
3309
 
for ac_prog in gawk mawk nawk awk
3310
 
do
3311
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3312
 
set dummy $ac_prog; ac_word=$2
3313
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314
 
$as_echo_n "checking for $ac_word... " >&6; }
3315
 
if test "${ac_cv_prog_AWK+set}" = set; then :
3316
 
  $as_echo_n "(cached) " >&6
3317
 
else
3318
 
  if test -n "$AWK"; then
3319
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3320
 
else
3321
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322
 
for as_dir in $PATH
3323
 
do
3324
 
  IFS=$as_save_IFS
3325
 
  test -z "$as_dir" && as_dir=.
3326
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3327
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328
 
    ac_cv_prog_AWK="$ac_prog"
3329
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330
 
    break 2
3331
 
  fi
3332
 
done
3333
 
  done
3334
 
IFS=$as_save_IFS
3335
 
 
3336
 
fi
3337
 
fi
3338
 
AWK=$ac_cv_prog_AWK
3339
 
if test -n "$AWK"; then
3340
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3341
 
$as_echo "$AWK" >&6; }
3342
 
else
3343
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344
 
$as_echo "no" >&6; }
3345
 
fi
3346
 
 
3347
 
 
3348
 
  test -n "$AWK" && break
3349
 
done
3350
 
 
3351
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3352
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3353
 
set x ${MAKE-make}
3354
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3355
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3356
 
  $as_echo_n "(cached) " >&6
3357
 
else
3358
 
  cat >conftest.make <<\_ACEOF
3359
 
SHELL = /bin/sh
3360
 
all:
3361
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3362
 
_ACEOF
3363
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3364
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3365
 
  *@@@%%%=?*=@@@%%%*)
3366
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3367
 
  *)
3368
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
3369
 
esac
3370
 
rm -f conftest.make
3371
 
fi
3372
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3373
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374
 
$as_echo "yes" >&6; }
3375
 
  SET_MAKE=
3376
 
else
3377
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378
 
$as_echo "no" >&6; }
3379
 
  SET_MAKE="MAKE=${MAKE-make}"
3380
 
fi
3381
 
 
3382
 
rm -rf .tst 2>/dev/null
3383
 
mkdir .tst 2>/dev/null
3384
 
if test -d .tst; then
3385
 
  am__leading_dot=.
3386
 
else
3387
 
  am__leading_dot=_
3388
 
fi
3389
 
rmdir .tst 2>/dev/null
3390
 
 
3391
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3392
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3393
 
  # is not polluted with repeated "-I."
3394
 
  am__isrc=' -I$(srcdir)'
3395
 
  # test to see if srcdir already configured
3396
 
  if test -f $srcdir/config.status; then
3397
 
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3398
 
  fi
3399
 
fi
3400
 
 
3401
 
# test whether we have cygpath
3402
 
if test -z "$CYGPATH_W"; then
3403
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
3404
 
    CYGPATH_W='cygpath -w'
3405
 
  else
3406
 
    CYGPATH_W=echo
3407
 
  fi
3408
 
fi
3409
 
 
3410
 
 
3411
 
# Define the identity of the package.
3412
 
 PACKAGE='aria2'
3413
 
 VERSION='1.10.0'
3414
 
 
3415
 
 
3416
 
cat >>confdefs.h <<_ACEOF
3417
 
#define PACKAGE "$PACKAGE"
3418
 
_ACEOF
3419
 
 
3420
 
 
3421
 
cat >>confdefs.h <<_ACEOF
3422
 
#define VERSION "$VERSION"
3423
 
_ACEOF
3424
 
 
3425
 
# Some tools Automake needs.
3426
 
 
3427
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3428
 
 
3429
 
 
3430
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3431
 
 
3432
 
 
3433
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3434
 
 
3435
 
 
3436
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3437
 
 
3438
 
 
3439
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3440
 
 
3441
 
# We need awk for the "check" target.  The system "awk" is bad on
3442
 
# some platforms.
3443
 
# Always define AMTAR for backward compatibility.
3444
 
 
3445
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
3446
 
 
3447
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3448
 
 
3449
 
 
3450
 
 
3451
 
 
3452
 
 
3453
 
 
3454
 
 
3455
 
 
3456
 
# Check whether --with-cppunit-prefix was given.
3457
 
if test "${with_cppunit_prefix+set}" = set; then :
3458
 
  withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
3459
 
else
3460
 
  cppunit_config_prefix=""
3461
 
fi
3462
 
 
3463
 
 
3464
 
# Check whether --with-cppunit-exec-prefix was given.
3465
 
if test "${with_cppunit_exec_prefix+set}" = set; then :
3466
 
  withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
3467
 
else
3468
 
  cppunit_config_exec_prefix=""
3469
 
fi
3470
 
 
3471
 
 
3472
 
  if test x$cppunit_config_exec_prefix != x ; then
3473
 
     cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
3474
 
     if test x${CPPUNIT_CONFIG+set} != xset ; then
3475
 
        CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
3476
 
     fi
3477
 
  fi
3478
 
  if test x$cppunit_config_prefix != x ; then
3479
 
     cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
3480
 
     if test x${CPPUNIT_CONFIG+set} != xset ; then
3481
 
        CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
3482
 
     fi
3483
 
  fi
3484
 
 
3485
 
  # Extract the first word of "cppunit-config", so it can be a program name with args.
3486
 
set dummy cppunit-config; ac_word=$2
3487
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488
 
$as_echo_n "checking for $ac_word... " >&6; }
3489
 
if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
3490
 
  $as_echo_n "(cached) " >&6
3491
 
else
3492
 
  case $CPPUNIT_CONFIG in
3493
 
  [\\/]* | ?:[\\/]*)
3494
 
  ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
3495
 
  ;;
3496
 
  *)
3497
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498
 
for as_dir in $PATH
3499
 
do
3500
 
  IFS=$as_save_IFS
3501
 
  test -z "$as_dir" && as_dir=.
3502
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3503
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504
 
    ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3505
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506
 
    break 2
3507
 
  fi
3508
 
done
3509
 
  done
3510
 
IFS=$as_save_IFS
3511
 
 
3512
 
  test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
3513
 
  ;;
3514
 
esac
3515
 
fi
3516
 
CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
3517
 
if test -n "$CPPUNIT_CONFIG"; then
3518
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
3519
 
$as_echo "$CPPUNIT_CONFIG" >&6; }
3520
 
else
3521
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522
 
$as_echo "no" >&6; }
3523
 
fi
3524
 
 
3525
 
 
3526
 
  cppunit_version_min=1.10.2
3527
 
 
3528
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
3529
 
$as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
3530
 
  no_cppunit=""
3531
 
  if test "$CPPUNIT_CONFIG" = "no" ; then
3532
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533
 
$as_echo "no" >&6; }
3534
 
    no_cppunit=yes
3535
 
  else
3536
 
    CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
3537
 
    CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
3538
 
    cppunit_version=`$CPPUNIT_CONFIG --version`
3539
 
 
3540
 
    cppunit_major_version=`echo $cppunit_version | \
3541
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3542
 
    cppunit_minor_version=`echo $cppunit_version | \
3543
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3544
 
    cppunit_micro_version=`echo $cppunit_version | \
3545
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3546
 
 
3547
 
    cppunit_major_min=`echo $cppunit_version_min | \
3548
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3549
 
    if test "x${cppunit_major_min}" = "x" ; then
3550
 
       cppunit_major_min=0
3551
 
    fi
3552
 
 
3553
 
    cppunit_minor_min=`echo $cppunit_version_min | \
3554
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3555
 
    if test "x${cppunit_minor_min}" = "x" ; then
3556
 
       cppunit_minor_min=0
3557
 
    fi
3558
 
 
3559
 
    cppunit_micro_min=`echo $cppunit_version_min | \
3560
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3561
 
    if test "x${cppunit_micro_min}" = "x" ; then
3562
 
       cppunit_micro_min=0
3563
 
    fi
3564
 
 
3565
 
    cppunit_version_proper=`expr \
3566
 
        $cppunit_major_version \> $cppunit_major_min \| \
3567
 
        $cppunit_major_version \= $cppunit_major_min \& \
3568
 
        $cppunit_minor_version \> $cppunit_minor_min \| \
3569
 
        $cppunit_major_version \= $cppunit_major_min \& \
3570
 
        $cppunit_minor_version \= $cppunit_minor_min \& \
3571
 
        $cppunit_micro_version \>= $cppunit_micro_min `
3572
 
 
3573
 
    if test "$cppunit_version_proper" = "1" ; then
3574
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
3575
 
$as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
3576
 
    else
3577
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578
 
$as_echo "no" >&6; }
3579
 
      no_cppunit=yes
3580
 
    fi
3581
 
  fi
3582
 
 
3583
 
  if test "x$no_cppunit" = x ; then
3584
 
     :
3585
 
  else
3586
 
     CPPUNIT_CFLAGS=""
3587
 
     CPPUNIT_LIBS=""
3588
 
     :
3589
 
  fi
3590
 
 
3591
 
 
3592
 
 
3593
 
 
3594
 
 
3595
 
ac_config_headers="$ac_config_headers config.h"
3596
 
 
3597
 
 
3598
 
case "$target" in
3599
 
  *mingw*|*cygwin*)
3600
 
    WINSOCK_LIBS="-lws2_32"
3601
 
 
3602
 
    LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
3603
 
    ;;
3604
 
esac
3605
 
 
3606
 
 
3607
 
cat >>confdefs.h <<_ACEOF
3608
 
#define TARGET "$target"
3609
 
_ACEOF
3610
 
 
3611
 
 
3612
 
# Checks for arguments.
3613
 
 
3614
 
# Check whether --with-gnutls was given.
3615
 
if test "${with_gnutls+set}" = set; then :
3616
 
  withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
3617
 
else
3618
 
  with_gnutls=yes
3619
 
fi
3620
 
 
3621
 
 
3622
 
 
3623
 
# Check whether --with-openssl was given.
3624
 
if test "${with_openssl+set}" = set; then :
3625
 
  withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
3626
 
else
3627
 
  with_openssl=yes
3628
 
fi
3629
 
 
3630
 
 
3631
 
 
3632
 
# Check whether --with-sqlite3 was given.
3633
 
if test "${with_sqlite3+set}" = set; then :
3634
 
  withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
3635
 
else
3636
 
  with_sqlite3=yes
3637
 
fi
3638
 
 
3639
 
 
3640
 
 
3641
 
# Check whether --with-libxml2 was given.
3642
 
if test "${with_libxml2+set}" = set; then :
3643
 
  withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
3644
 
else
3645
 
  with_libxml2=yes
3646
 
fi
3647
 
 
3648
 
 
3649
 
 
3650
 
# Check whether --with-libexpat was given.
3651
 
if test "${with_libexpat+set}" = set; then :
3652
 
  withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
3653
 
else
3654
 
  with_libexpat=yes
3655
 
fi
3656
 
 
3657
 
 
3658
 
 
3659
 
# Check whether --with-libcares was given.
3660
 
if test "${with_libcares+set}" = set; then :
3661
 
  withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
3662
 
else
3663
 
  with_libcares=yes
3664
 
fi
3665
 
 
3666
 
 
3667
 
 
3668
 
# Check whether --with-libz was given.
3669
 
if test "${with_libz+set}" = set; then :
3670
 
  withval=$with_libz; with_libz_requested=$withval with_libz=$withval
3671
 
else
3672
 
  with_libz=yes
3673
 
fi
3674
 
 
3675
 
 
3676
 
 
3677
 
# Check whether --enable-bittorrent was given.
3678
 
if test "${enable_bittorrent+set}" = set; then :
3679
 
  enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
3680
 
else
3681
 
  enable_bittorrent=yes
3682
 
fi
3683
 
 
3684
 
 
3685
 
# Check whether --enable-metalink was given.
3686
 
if test "${enable_metalink+set}" = set; then :
3687
 
  enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
3688
 
else
3689
 
  enable_metalink=yes
3690
 
fi
3691
 
 
3692
 
 
3693
 
# Check whether --enable-epoll was given.
3694
 
if test "${enable_epoll+set}" = set; then :
3695
 
  enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
3696
 
else
3697
 
  enable_epoll=yes
3698
 
fi
3699
 
 
3700
 
 
3701
 
 
3702
 
 
3703
 
# Check whether --with-ca-bundle was given.
3704
 
if test "${with_ca_bundle+set}" = set; then :
3705
 
  withval=$with_ca_bundle; ca_bundle=$withval
3706
 
else
3707
 
  ca_bundle=""
3708
 
fi
3709
 
 
3710
 
 
3711
 
# Checks for programs.
3712
 
ac_ext=cpp
3713
 
ac_cpp='$CXXCPP $CPPFLAGS'
3714
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3717
 
if test -z "$CXX"; then
3718
 
  if test -n "$CCC"; then
3719
 
    CXX=$CCC
3720
 
  else
3721
 
    if test -n "$ac_tool_prefix"; then
3722
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3723
 
  do
3724
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3725
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3726
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727
 
$as_echo_n "checking for $ac_word... " >&6; }
3728
 
if test "${ac_cv_prog_CXX+set}" = set; then :
3729
 
  $as_echo_n "(cached) " >&6
3730
 
else
3731
 
  if test -n "$CXX"; then
3732
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3733
 
else
3734
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735
 
for as_dir in $PATH
3736
 
do
3737
 
  IFS=$as_save_IFS
3738
 
  test -z "$as_dir" && as_dir=.
3739
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3740
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3742
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743
 
    break 2
3744
 
  fi
3745
 
done
3746
 
  done
3747
 
IFS=$as_save_IFS
3748
 
 
3749
 
fi
3750
 
fi
3751
 
CXX=$ac_cv_prog_CXX
3752
 
if test -n "$CXX"; then
3753
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3754
 
$as_echo "$CXX" >&6; }
3755
 
else
3756
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757
 
$as_echo "no" >&6; }
3758
 
fi
3759
 
 
3760
 
 
3761
 
    test -n "$CXX" && break
3762
 
  done
3763
 
fi
3764
 
if test -z "$CXX"; then
3765
 
  ac_ct_CXX=$CXX
3766
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3767
 
do
3768
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3769
 
set dummy $ac_prog; ac_word=$2
3770
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771
 
$as_echo_n "checking for $ac_word... " >&6; }
3772
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3773
 
  $as_echo_n "(cached) " >&6
3774
 
else
3775
 
  if test -n "$ac_ct_CXX"; then
3776
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3777
 
else
3778
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779
 
for as_dir in $PATH
3780
 
do
3781
 
  IFS=$as_save_IFS
3782
 
  test -z "$as_dir" && as_dir=.
3783
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3784
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3786
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787
 
    break 2
3788
 
  fi
3789
 
done
3790
 
  done
3791
 
IFS=$as_save_IFS
3792
 
 
3793
 
fi
3794
 
fi
3795
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3796
 
if test -n "$ac_ct_CXX"; then
3797
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3798
 
$as_echo "$ac_ct_CXX" >&6; }
3799
 
else
3800
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801
 
$as_echo "no" >&6; }
3802
 
fi
3803
 
 
3804
 
 
3805
 
  test -n "$ac_ct_CXX" && break
3806
 
done
3807
 
 
3808
 
  if test "x$ac_ct_CXX" = x; then
3809
 
    CXX="g++"
3810
 
  else
3811
 
    case $cross_compiling:$ac_tool_warned in
3812
 
yes:)
3813
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3814
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3815
 
ac_tool_warned=yes ;;
3816
 
esac
3817
 
    CXX=$ac_ct_CXX
3818
 
  fi
3819
 
fi
3820
 
 
3821
 
  fi
3822
 
fi
3823
 
# Provide some information about the compiler.
3824
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3825
 
set X $ac_compile
3826
 
ac_compiler=$2
3827
 
for ac_option in --version -v -V -qversion; do
3828
 
  { { ac_try="$ac_compiler $ac_option >&5"
3829
 
case "(($ac_try" in
3830
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831
 
  *) ac_try_echo=$ac_try;;
3832
 
esac
3833
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834
 
$as_echo "$ac_try_echo"; } >&5
3835
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3836
 
  ac_status=$?
3837
 
  if test -s conftest.err; then
3838
 
    sed '10a\
3839
 
... rest of stderr output deleted ...
3840
 
         10q' conftest.err >conftest.er1
3841
 
    cat conftest.er1 >&5
3842
 
  fi
3843
 
  rm -f conftest.er1 conftest.err
3844
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845
 
  test $ac_status = 0; }
3846
 
done
3847
 
 
3848
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849
 
/* end confdefs.h.  */
3850
 
 
3851
 
int
3852
 
main ()
3853
 
{
3854
 
 
3855
 
  ;
3856
 
  return 0;
3857
 
}
3858
 
_ACEOF
3859
 
ac_clean_files_save=$ac_clean_files
3860
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3861
 
# Try to create an executable without -o first, disregard a.out.
3862
 
# It will help us diagnose broken compilers, and finding out an intuition
3863
 
# of exeext.
3864
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3865
 
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3866
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3867
 
 
3868
 
# The possible output files:
3869
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3870
 
 
3871
 
ac_rmfiles=
3872
 
for ac_file in $ac_files
3873
 
do
3874
 
  case $ac_file in
3875
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3876
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3877
 
  esac
3878
 
done
3879
 
rm -f $ac_rmfiles
3880
 
 
3881
 
if { { ac_try="$ac_link_default"
3882
 
case "(($ac_try" in
3883
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884
 
  *) ac_try_echo=$ac_try;;
3885
 
esac
3886
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887
 
$as_echo "$ac_try_echo"; } >&5
3888
 
  (eval "$ac_link_default") 2>&5
3889
 
  ac_status=$?
3890
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891
 
  test $ac_status = 0; }; then :
3892
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3893
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3894
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3895
 
# so that the user can short-circuit this test for compilers unknown to
3896
 
# Autoconf.
3897
 
for ac_file in $ac_files ''
3898
 
do
3899
 
  test -f "$ac_file" || continue
3900
 
  case $ac_file in
3901
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3902
 
        ;;
3903
 
    [ab].out )
3904
 
        # We found the default executable, but exeext='' is most
3905
 
        # certainly right.
3906
 
        break;;
3907
 
    *.* )
3908
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3909
 
        then :; else
3910
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3911
 
        fi
3912
 
        # We set ac_cv_exeext here because the later test for it is not
3913
 
        # safe: cross compilers may not add the suffix if given an `-o'
3914
 
        # argument, so we may need to know it at that point already.
3915
 
        # Even if this section looks crufty: it has the advantage of
3916
 
        # actually working.
3917
 
        break;;
3918
 
    * )
3919
 
        break;;
3920
 
  esac
3921
 
done
3922
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3923
 
 
3924
 
else
3925
 
  ac_file=''
3926
 
fi
3927
 
if test -z "$ac_file"; then :
3928
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929
 
$as_echo "no" >&6; }
3930
 
$as_echo "$as_me: failed program was:" >&5
3931
 
sed 's/^/| /' conftest.$ac_ext >&5
3932
 
 
3933
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935
 
{ as_fn_set_status 77
3936
 
as_fn_error "C++ compiler cannot create executables
3937
 
See \`config.log' for more details." "$LINENO" 5; }; }
3938
 
else
3939
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940
 
$as_echo "yes" >&6; }
3941
 
fi
3942
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3943
 
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3944
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3945
 
$as_echo "$ac_file" >&6; }
3946
 
ac_exeext=$ac_cv_exeext
3947
 
 
3948
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3949
 
ac_clean_files=$ac_clean_files_save
3950
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951
 
$as_echo_n "checking for suffix of executables... " >&6; }
3952
 
if { { ac_try="$ac_link"
3953
 
case "(($ac_try" in
3954
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955
 
  *) ac_try_echo=$ac_try;;
3956
 
esac
3957
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958
 
$as_echo "$ac_try_echo"; } >&5
3959
 
  (eval "$ac_link") 2>&5
3960
 
  ac_status=$?
3961
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962
 
  test $ac_status = 0; }; then :
3963
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3964
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3965
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3966
 
# `rm'.
3967
 
for ac_file in conftest.exe conftest conftest.*; do
3968
 
  test -f "$ac_file" || continue
3969
 
  case $ac_file in
3970
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972
 
          break;;
3973
 
    * ) break;;
3974
 
  esac
3975
 
done
3976
 
else
3977
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979
 
as_fn_error "cannot compute suffix of executables: cannot compile and link
3980
 
See \`config.log' for more details." "$LINENO" 5; }
3981
 
fi
3982
 
rm -f conftest conftest$ac_cv_exeext
3983
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984
 
$as_echo "$ac_cv_exeext" >&6; }
3985
 
 
3986
 
rm -f conftest.$ac_ext
3987
 
EXEEXT=$ac_cv_exeext
3988
 
ac_exeext=$EXEEXT
3989
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990
 
/* end confdefs.h.  */
3991
 
#include <stdio.h>
3992
 
int
3993
 
main ()
3994
 
{
3995
 
FILE *f = fopen ("conftest.out", "w");
3996
 
 return ferror (f) || fclose (f) != 0;
3997
 
 
3998
 
  ;
3999
 
  return 0;
4000
 
}
4001
 
_ACEOF
4002
 
ac_clean_files="$ac_clean_files conftest.out"
4003
 
# Check that the compiler produces executables we can run.  If not, either
4004
 
# the compiler is broken, or we cross compile.
4005
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4006
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
4007
 
if test "$cross_compiling" != yes; then
4008
 
  { { ac_try="$ac_link"
4009
 
case "(($ac_try" in
4010
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011
 
  *) ac_try_echo=$ac_try;;
4012
 
esac
4013
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014
 
$as_echo "$ac_try_echo"; } >&5
4015
 
  (eval "$ac_link") 2>&5
4016
 
  ac_status=$?
4017
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018
 
  test $ac_status = 0; }
4019
 
  if { ac_try='./conftest$ac_cv_exeext'
4020
 
  { { case "(($ac_try" in
4021
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022
 
  *) ac_try_echo=$ac_try;;
4023
 
esac
4024
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025
 
$as_echo "$ac_try_echo"; } >&5
4026
 
  (eval "$ac_try") 2>&5
4027
 
  ac_status=$?
4028
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029
 
  test $ac_status = 0; }; }; then
4030
 
    cross_compiling=no
4031
 
  else
4032
 
    if test "$cross_compiling" = maybe; then
4033
 
        cross_compiling=yes
4034
 
    else
4035
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037
 
as_fn_error "cannot run C++ compiled programs.
4038
 
If you meant to cross compile, use \`--host'.
4039
 
See \`config.log' for more details." "$LINENO" 5; }
4040
 
    fi
4041
 
  fi
4042
 
fi
4043
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4044
 
$as_echo "$cross_compiling" >&6; }
4045
 
 
4046
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4047
 
ac_clean_files=$ac_clean_files_save
4048
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4049
 
$as_echo_n "checking for suffix of object files... " >&6; }
4050
 
if test "${ac_cv_objext+set}" = set; then :
4051
 
  $as_echo_n "(cached) " >&6
4052
 
else
4053
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054
 
/* end confdefs.h.  */
4055
 
 
4056
 
int
4057
 
main ()
4058
 
{
4059
 
 
4060
 
  ;
4061
 
  return 0;
4062
 
}
4063
 
_ACEOF
4064
 
rm -f conftest.o conftest.obj
4065
 
if { { ac_try="$ac_compile"
4066
 
case "(($ac_try" in
4067
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068
 
  *) ac_try_echo=$ac_try;;
4069
 
esac
4070
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071
 
$as_echo "$ac_try_echo"; } >&5
4072
 
  (eval "$ac_compile") 2>&5
4073
 
  ac_status=$?
4074
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075
 
  test $ac_status = 0; }; then :
4076
 
  for ac_file in conftest.o conftest.obj conftest.*; do
4077
 
  test -f "$ac_file" || continue;
4078
 
  case $ac_file in
4079
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4080
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4081
 
       break;;
4082
 
  esac
4083
 
done
4084
 
else
4085
 
  $as_echo "$as_me: failed program was:" >&5
4086
 
sed 's/^/| /' conftest.$ac_ext >&5
4087
 
 
4088
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090
 
as_fn_error "cannot compute suffix of object files: cannot compile
4091
 
See \`config.log' for more details." "$LINENO" 5; }
4092
 
fi
4093
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4094
 
fi
4095
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4096
 
$as_echo "$ac_cv_objext" >&6; }
4097
 
OBJEXT=$ac_cv_objext
4098
 
ac_objext=$OBJEXT
4099
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4100
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4101
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4102
 
  $as_echo_n "(cached) " >&6
4103
 
else
4104
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105
 
/* end confdefs.h.  */
4106
 
 
4107
 
int
4108
 
main ()
4109
 
{
4110
 
#ifndef __GNUC__
4111
 
       choke me
4112
 
#endif
4113
 
 
4114
 
  ;
4115
 
  return 0;
4116
 
}
4117
 
_ACEOF
4118
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4119
 
  ac_compiler_gnu=yes
4120
 
else
4121
 
  ac_compiler_gnu=no
4122
 
fi
4123
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4125
 
 
4126
 
fi
4127
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4128
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4129
 
if test $ac_compiler_gnu = yes; then
4130
 
  GXX=yes
4131
 
else
4132
 
  GXX=
4133
 
fi
4134
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
4135
 
ac_save_CXXFLAGS=$CXXFLAGS
4136
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4137
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4138
 
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4139
 
  $as_echo_n "(cached) " >&6
4140
 
else
4141
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4142
 
   ac_cxx_werror_flag=yes
4143
 
   ac_cv_prog_cxx_g=no
4144
 
   CXXFLAGS="-g"
4145
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146
 
/* end confdefs.h.  */
4147
 
 
4148
 
int
4149
 
main ()
4150
 
{
4151
 
 
4152
 
  ;
4153
 
  return 0;
4154
 
}
4155
 
_ACEOF
4156
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4157
 
  ac_cv_prog_cxx_g=yes
4158
 
else
4159
 
  CXXFLAGS=""
4160
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161
 
/* end confdefs.h.  */
4162
 
 
4163
 
int
4164
 
main ()
4165
 
{
4166
 
 
4167
 
  ;
4168
 
  return 0;
4169
 
}
4170
 
_ACEOF
4171
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4172
 
 
4173
 
else
4174
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4175
 
         CXXFLAGS="-g"
4176
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177
 
/* end confdefs.h.  */
4178
 
 
4179
 
int
4180
 
main ()
4181
 
{
4182
 
 
4183
 
  ;
4184
 
  return 0;
4185
 
}
4186
 
_ACEOF
4187
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4188
 
  ac_cv_prog_cxx_g=yes
4189
 
fi
4190
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191
 
fi
4192
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193
 
fi
4194
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4196
 
fi
4197
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4198
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4199
 
if test "$ac_test_CXXFLAGS" = set; then
4200
 
  CXXFLAGS=$ac_save_CXXFLAGS
4201
 
elif test $ac_cv_prog_cxx_g = yes; then
4202
 
  if test "$GXX" = yes; then
4203
 
    CXXFLAGS="-g -O2"
4204
 
  else
4205
 
    CXXFLAGS="-g"
4206
 
  fi
4207
 
else
4208
 
  if test "$GXX" = yes; then
4209
 
    CXXFLAGS="-O2"
4210
 
  else
4211
 
    CXXFLAGS=
4212
 
  fi
4213
 
fi
4214
 
ac_ext=c
4215
 
ac_cpp='$CPP $CPPFLAGS'
4216
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219
 
DEPDIR="${am__leading_dot}deps"
4220
 
 
4221
 
ac_config_commands="$ac_config_commands depfiles"
4222
 
 
4223
 
 
4224
 
am_make=${MAKE-make}
4225
 
cat > confinc << 'END'
4226
 
am__doit:
4227
 
        @echo this is the am__doit target
4228
 
.PHONY: am__doit
4229
 
END
4230
 
# If we don't find an include directive, just comment out the code.
4231
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4232
 
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4233
 
am__include="#"
4234
 
am__quote=
4235
 
_am_result=none
4236
 
# First try GNU make style include.
4237
 
echo "include confinc" > confmf
4238
 
# Ignore all kinds of additional output from `make'.
4239
 
case `$am_make -s -f confmf 2> /dev/null` in #(
4240
 
*the\ am__doit\ target*)
4241
 
  am__include=include
4242
 
  am__quote=
4243
 
  _am_result=GNU
4244
 
  ;;
4245
 
esac
4246
 
# Now try BSD make style include.
4247
 
if test "$am__include" = "#"; then
4248
 
   echo '.include "confinc"' > confmf
4249
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
4250
 
   *the\ am__doit\ target*)
4251
 
     am__include=.include
4252
 
     am__quote="\""
4253
 
     _am_result=BSD
4254
 
     ;;
4255
 
   esac
4256
 
fi
4257
 
 
4258
 
 
4259
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4260
 
$as_echo "$_am_result" >&6; }
4261
 
rm -f confinc confmf
4262
 
 
4263
 
# Check whether --enable-dependency-tracking was given.
4264
 
if test "${enable_dependency_tracking+set}" = set; then :
4265
 
  enableval=$enable_dependency_tracking;
4266
 
fi
4267
 
 
4268
 
if test "x$enable_dependency_tracking" != xno; then
4269
 
  am_depcomp="$ac_aux_dir/depcomp"
4270
 
  AMDEPBACKSLASH='\'
4271
 
fi
4272
 
 if test "x$enable_dependency_tracking" != xno; then
4273
 
  AMDEP_TRUE=
4274
 
  AMDEP_FALSE='#'
4275
 
else
4276
 
  AMDEP_TRUE='#'
4277
 
  AMDEP_FALSE=
4278
 
fi
4279
 
 
4280
 
 
4281
 
 
4282
 
depcc="$CXX"  am_compiler_list=
4283
 
 
4284
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4285
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
4286
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4287
 
  $as_echo_n "(cached) " >&6
4288
 
else
4289
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4290
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4291
 
  # making bogus files that we don't know about and never remove.  For
4292
 
  # instance it was reported that on HP-UX the gcc test will end up
4293
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4294
 
  # in D'.
4295
 
  mkdir conftest.dir
4296
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4297
 
  # using a relative directory.
4298
 
  cp "$am_depcomp" conftest.dir
4299
 
  cd conftest.dir
4300
 
  # We will build objects and dependencies in a subdirectory because
4301
 
  # it helps to detect inapplicable dependency modes.  For instance
4302
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4303
 
  # side effect of compilation, but ICC will put the dependencies in
4304
 
  # the current directory while Tru64 will put them in the object
4305
 
  # directory.
4306
 
  mkdir sub
4307
 
 
4308
 
  am_cv_CXX_dependencies_compiler_type=none
4309
 
  if test "$am_compiler_list" = ""; then
4310
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4311
 
  fi
4312
 
  am__universal=false
4313
 
  case " $depcc " in #(
4314
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4315
 
     esac
4316
 
 
4317
 
  for depmode in $am_compiler_list; do
4318
 
    # Setup a source with many dependencies, because some compilers
4319
 
    # like to wrap large dependency lists on column 80 (with \), and
4320
 
    # we should not choose a depcomp mode which is confused by this.
4321
 
    #
4322
 
    # We need to recreate these files for each test, as the compiler may
4323
 
    # overwrite some of them when testing with obscure command lines.
4324
 
    # This happens at least with the AIX C compiler.
4325
 
    : > sub/conftest.c
4326
 
    for i in 1 2 3 4 5 6; do
4327
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4328
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4329
 
      # Solaris 8's {/usr,}/bin/sh.
4330
 
      touch sub/conftst$i.h
4331
 
    done
4332
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4333
 
 
4334
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4335
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4336
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
4337
 
    # versions had trouble with output in subdirs
4338
 
    am__obj=sub/conftest.${OBJEXT-o}
4339
 
    am__minus_obj="-o $am__obj"
4340
 
    case $depmode in
4341
 
    gcc)
4342
 
      # This depmode causes a compiler race in universal mode.
4343
 
      test "$am__universal" = false || continue
4344
 
      ;;
4345
 
    nosideeffect)
4346
 
      # after this tag, mechanisms are not by side-effect, so they'll
4347
 
      # only be used when explicitly requested
4348
 
      if test "x$enable_dependency_tracking" = xyes; then
4349
 
        continue
4350
 
      else
4351
 
        break
4352
 
      fi
4353
 
      ;;
4354
 
    msvisualcpp | msvcmsys)
4355
 
      # This compiler won't grok `-c -o', but also, the minuso test has
4356
 
      # not run yet.  These depmodes are late enough in the game, and
4357
 
      # so weak that their functioning should not be impacted.
4358
 
      am__obj=conftest.${OBJEXT-o}
4359
 
      am__minus_obj=
4360
 
      ;;
4361
 
    none) break ;;
4362
 
    esac
4363
 
    if depmode=$depmode \
4364
 
       source=sub/conftest.c object=$am__obj \
4365
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4366
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4367
 
         >/dev/null 2>conftest.err &&
4368
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4369
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4370
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4371
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4372
 
      # icc doesn't choke on unknown options, it will just issue warnings
4373
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4374
 
      # that says an option was ignored or not supported.
4375
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4376
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4377
 
      # The diagnosis changed in icc 8.0:
4378
 
      #   icc: Command line remark: option '-MP' not supported
4379
 
      if (grep 'ignoring option' conftest.err ||
4380
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4381
 
        am_cv_CXX_dependencies_compiler_type=$depmode
4382
 
        break
4383
 
      fi
4384
 
    fi
4385
 
  done
4386
 
 
4387
 
  cd ..
4388
 
  rm -rf conftest.dir
4389
 
else
4390
 
  am_cv_CXX_dependencies_compiler_type=none
4391
 
fi
4392
 
 
4393
 
fi
4394
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4395
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4396
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4397
 
 
4398
 
 if
4399
 
  test "x$enable_dependency_tracking" != xno \
4400
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4401
 
  am__fastdepCXX_TRUE=
4402
 
  am__fastdepCXX_FALSE='#'
4403
 
else
4404
 
  am__fastdepCXX_TRUE='#'
4405
 
  am__fastdepCXX_FALSE=
4406
 
fi
4407
 
 
4408
 
 
4409
 
ac_ext=c
4410
 
ac_cpp='$CPP $CPPFLAGS'
4411
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
 
if test -n "$ac_tool_prefix"; then
4415
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4416
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4417
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418
 
$as_echo_n "checking for $ac_word... " >&6; }
4419
 
if test "${ac_cv_prog_CC+set}" = set; then :
4420
 
  $as_echo_n "(cached) " >&6
4421
 
else
4422
 
  if test -n "$CC"; then
4423
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4424
 
else
4425
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426
 
for as_dir in $PATH
4427
 
do
4428
 
  IFS=$as_save_IFS
4429
 
  test -z "$as_dir" && as_dir=.
4430
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4431
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4433
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434
 
    break 2
4435
 
  fi
4436
 
done
4437
 
  done
4438
 
IFS=$as_save_IFS
4439
 
 
4440
 
fi
4441
 
fi
4442
 
CC=$ac_cv_prog_CC
4443
 
if test -n "$CC"; then
4444
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4445
 
$as_echo "$CC" >&6; }
4446
 
else
4447
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448
 
$as_echo "no" >&6; }
4449
 
fi
4450
 
 
4451
 
 
4452
 
fi
4453
 
if test -z "$ac_cv_prog_CC"; then
4454
 
  ac_ct_CC=$CC
4455
 
  # Extract the first word of "gcc", so it can be a program name with args.
4456
 
set dummy gcc; ac_word=$2
4457
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458
 
$as_echo_n "checking for $ac_word... " >&6; }
4459
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4460
 
  $as_echo_n "(cached) " >&6
4461
 
else
4462
 
  if test -n "$ac_ct_CC"; then
4463
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4464
 
else
4465
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466
 
for as_dir in $PATH
4467
 
do
4468
 
  IFS=$as_save_IFS
4469
 
  test -z "$as_dir" && as_dir=.
4470
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4471
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472
 
    ac_cv_prog_ac_ct_CC="gcc"
4473
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474
 
    break 2
4475
 
  fi
4476
 
done
4477
 
  done
4478
 
IFS=$as_save_IFS
4479
 
 
4480
 
fi
4481
 
fi
4482
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4483
 
if test -n "$ac_ct_CC"; then
4484
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4485
 
$as_echo "$ac_ct_CC" >&6; }
4486
 
else
4487
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488
 
$as_echo "no" >&6; }
4489
 
fi
4490
 
 
4491
 
  if test "x$ac_ct_CC" = x; then
4492
 
    CC=""
4493
 
  else
4494
 
    case $cross_compiling:$ac_tool_warned in
4495
 
yes:)
4496
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4497
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4498
 
ac_tool_warned=yes ;;
4499
 
esac
4500
 
    CC=$ac_ct_CC
4501
 
  fi
4502
 
else
4503
 
  CC="$ac_cv_prog_CC"
4504
 
fi
4505
 
 
4506
 
if test -z "$CC"; then
4507
 
          if test -n "$ac_tool_prefix"; then
4508
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4509
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
4510
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511
 
$as_echo_n "checking for $ac_word... " >&6; }
4512
 
if test "${ac_cv_prog_CC+set}" = set; then :
4513
 
  $as_echo_n "(cached) " >&6
4514
 
else
4515
 
  if test -n "$CC"; then
4516
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4517
 
else
4518
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519
 
for as_dir in $PATH
4520
 
do
4521
 
  IFS=$as_save_IFS
4522
 
  test -z "$as_dir" && as_dir=.
4523
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4524
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4526
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527
 
    break 2
4528
 
  fi
4529
 
done
4530
 
  done
4531
 
IFS=$as_save_IFS
4532
 
 
4533
 
fi
4534
 
fi
4535
 
CC=$ac_cv_prog_CC
4536
 
if test -n "$CC"; then
4537
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4538
 
$as_echo "$CC" >&6; }
4539
 
else
4540
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541
 
$as_echo "no" >&6; }
4542
 
fi
4543
 
 
4544
 
 
4545
 
  fi
4546
 
fi
4547
 
if test -z "$CC"; then
4548
 
  # Extract the first word of "cc", so it can be a program name with args.
4549
 
set dummy cc; ac_word=$2
4550
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551
 
$as_echo_n "checking for $ac_word... " >&6; }
4552
 
if test "${ac_cv_prog_CC+set}" = set; then :
4553
 
  $as_echo_n "(cached) " >&6
4554
 
else
4555
 
  if test -n "$CC"; then
4556
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4557
 
else
4558
 
  ac_prog_rejected=no
4559
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560
 
for as_dir in $PATH
4561
 
do
4562
 
  IFS=$as_save_IFS
4563
 
  test -z "$as_dir" && as_dir=.
4564
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4565
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4567
 
       ac_prog_rejected=yes
4568
 
       continue
4569
 
     fi
4570
 
    ac_cv_prog_CC="cc"
4571
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572
 
    break 2
4573
 
  fi
4574
 
done
4575
 
  done
4576
 
IFS=$as_save_IFS
4577
 
 
4578
 
if test $ac_prog_rejected = yes; then
4579
 
  # We found a bogon in the path, so make sure we never use it.
4580
 
  set dummy $ac_cv_prog_CC
4581
 
  shift
4582
 
  if test $# != 0; then
4583
 
    # We chose a different compiler from the bogus one.
4584
 
    # However, it has the same basename, so the bogon will be chosen
4585
 
    # first if we set CC to just the basename; use the full file name.
4586
 
    shift
4587
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4588
 
  fi
4589
 
fi
4590
 
fi
4591
 
fi
4592
 
CC=$ac_cv_prog_CC
4593
 
if test -n "$CC"; then
4594
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4595
 
$as_echo "$CC" >&6; }
4596
 
else
4597
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598
 
$as_echo "no" >&6; }
4599
 
fi
4600
 
 
4601
 
 
4602
 
fi
4603
 
if test -z "$CC"; then
4604
 
  if test -n "$ac_tool_prefix"; then
4605
 
  for ac_prog in cl.exe
4606
 
  do
4607
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4609
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610
 
$as_echo_n "checking for $ac_word... " >&6; }
4611
 
if test "${ac_cv_prog_CC+set}" = set; then :
4612
 
  $as_echo_n "(cached) " >&6
4613
 
else
4614
 
  if test -n "$CC"; then
4615
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
4616
 
else
4617
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618
 
for as_dir in $PATH
4619
 
do
4620
 
  IFS=$as_save_IFS
4621
 
  test -z "$as_dir" && as_dir=.
4622
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4623
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4625
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626
 
    break 2
4627
 
  fi
4628
 
done
4629
 
  done
4630
 
IFS=$as_save_IFS
4631
 
 
4632
 
fi
4633
 
fi
4634
 
CC=$ac_cv_prog_CC
4635
 
if test -n "$CC"; then
4636
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4637
 
$as_echo "$CC" >&6; }
4638
 
else
4639
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640
 
$as_echo "no" >&6; }
4641
 
fi
4642
 
 
4643
 
 
4644
 
    test -n "$CC" && break
4645
 
  done
4646
 
fi
4647
 
if test -z "$CC"; then
4648
 
  ac_ct_CC=$CC
4649
 
  for ac_prog in cl.exe
4650
 
do
4651
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4652
 
set dummy $ac_prog; ac_word=$2
4653
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654
 
$as_echo_n "checking for $ac_word... " >&6; }
4655
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4656
 
  $as_echo_n "(cached) " >&6
4657
 
else
4658
 
  if test -n "$ac_ct_CC"; then
4659
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4660
 
else
4661
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662
 
for as_dir in $PATH
4663
 
do
4664
 
  IFS=$as_save_IFS
4665
 
  test -z "$as_dir" && as_dir=.
4666
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4667
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
4669
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670
 
    break 2
4671
 
  fi
4672
 
done
4673
 
  done
4674
 
IFS=$as_save_IFS
4675
 
 
4676
 
fi
4677
 
fi
4678
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4679
 
if test -n "$ac_ct_CC"; then
4680
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4681
 
$as_echo "$ac_ct_CC" >&6; }
4682
 
else
4683
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684
 
$as_echo "no" >&6; }
4685
 
fi
4686
 
 
4687
 
 
4688
 
  test -n "$ac_ct_CC" && break
4689
 
done
4690
 
 
4691
 
  if test "x$ac_ct_CC" = x; then
4692
 
    CC=""
4693
 
  else
4694
 
    case $cross_compiling:$ac_tool_warned in
4695
 
yes:)
4696
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698
 
ac_tool_warned=yes ;;
4699
 
esac
4700
 
    CC=$ac_ct_CC
4701
 
  fi
4702
 
fi
4703
 
 
4704
 
fi
4705
 
 
4706
 
 
4707
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4708
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4709
 
as_fn_error "no acceptable C compiler found in \$PATH
4710
 
See \`config.log' for more details." "$LINENO" 5; }
4711
 
 
4712
 
# Provide some information about the compiler.
4713
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4714
 
set X $ac_compile
4715
 
ac_compiler=$2
4716
 
for ac_option in --version -v -V -qversion; do
4717
 
  { { ac_try="$ac_compiler $ac_option >&5"
4718
 
case "(($ac_try" in
4719
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720
 
  *) ac_try_echo=$ac_try;;
4721
 
esac
4722
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723
 
$as_echo "$ac_try_echo"; } >&5
4724
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4725
 
  ac_status=$?
4726
 
  if test -s conftest.err; then
4727
 
    sed '10a\
4728
 
... rest of stderr output deleted ...
4729
 
         10q' conftest.err >conftest.er1
4730
 
    cat conftest.er1 >&5
4731
 
  fi
4732
 
  rm -f conftest.er1 conftest.err
4733
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4734
 
  test $ac_status = 0; }
4735
 
done
4736
 
 
4737
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4738
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4739
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4740
 
  $as_echo_n "(cached) " >&6
4741
 
else
4742
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743
 
/* end confdefs.h.  */
4744
 
 
4745
 
int
4746
 
main ()
4747
 
{
4748
 
#ifndef __GNUC__
4749
 
       choke me
4750
 
#endif
4751
 
 
4752
 
  ;
4753
 
  return 0;
4754
 
}
4755
 
_ACEOF
4756
 
if ac_fn_c_try_compile "$LINENO"; then :
4757
 
  ac_compiler_gnu=yes
4758
 
else
4759
 
  ac_compiler_gnu=no
4760
 
fi
4761
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4763
 
 
4764
 
fi
4765
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4766
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4767
 
if test $ac_compiler_gnu = yes; then
4768
 
  GCC=yes
4769
 
else
4770
 
  GCC=
4771
 
fi
4772
 
ac_test_CFLAGS=${CFLAGS+set}
4773
 
ac_save_CFLAGS=$CFLAGS
4774
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4775
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4776
 
if test "${ac_cv_prog_cc_g+set}" = set; then :
4777
 
  $as_echo_n "(cached) " >&6
4778
 
else
4779
 
  ac_save_c_werror_flag=$ac_c_werror_flag
4780
 
   ac_c_werror_flag=yes
4781
 
   ac_cv_prog_cc_g=no
4782
 
   CFLAGS="-g"
4783
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784
 
/* end confdefs.h.  */
4785
 
 
4786
 
int
4787
 
main ()
4788
 
{
4789
 
 
4790
 
  ;
4791
 
  return 0;
4792
 
}
4793
 
_ACEOF
4794
 
if ac_fn_c_try_compile "$LINENO"; then :
4795
 
  ac_cv_prog_cc_g=yes
4796
 
else
4797
 
  CFLAGS=""
4798
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799
 
/* end confdefs.h.  */
4800
 
 
4801
 
int
4802
 
main ()
4803
 
{
4804
 
 
4805
 
  ;
4806
 
  return 0;
4807
 
}
4808
 
_ACEOF
4809
 
if ac_fn_c_try_compile "$LINENO"; then :
4810
 
 
4811
 
else
4812
 
  ac_c_werror_flag=$ac_save_c_werror_flag
4813
 
         CFLAGS="-g"
4814
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815
 
/* end confdefs.h.  */
4816
 
 
4817
 
int
4818
 
main ()
4819
 
{
4820
 
 
4821
 
  ;
4822
 
  return 0;
4823
 
}
4824
 
_ACEOF
4825
 
if ac_fn_c_try_compile "$LINENO"; then :
4826
 
  ac_cv_prog_cc_g=yes
4827
 
fi
4828
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829
 
fi
4830
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831
 
fi
4832
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4834
 
fi
4835
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4836
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
4837
 
if test "$ac_test_CFLAGS" = set; then
4838
 
  CFLAGS=$ac_save_CFLAGS
4839
 
elif test $ac_cv_prog_cc_g = yes; then
4840
 
  if test "$GCC" = yes; then
4841
 
    CFLAGS="-g -O2"
4842
 
  else
4843
 
    CFLAGS="-g"
4844
 
  fi
4845
 
else
4846
 
  if test "$GCC" = yes; then
4847
 
    CFLAGS="-O2"
4848
 
  else
4849
 
    CFLAGS=
4850
 
  fi
4851
 
fi
4852
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4853
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4854
 
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4855
 
  $as_echo_n "(cached) " >&6
4856
 
else
4857
 
  ac_cv_prog_cc_c89=no
4858
 
ac_save_CC=$CC
4859
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860
 
/* end confdefs.h.  */
4861
 
#include <stdarg.h>
4862
 
#include <stdio.h>
4863
 
#include <sys/types.h>
4864
 
#include <sys/stat.h>
4865
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4866
 
struct buf { int x; };
4867
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4868
 
static char *e (p, i)
4869
 
     char **p;
4870
 
     int i;
4871
 
{
4872
 
  return p[i];
4873
 
}
4874
 
static char *f (char * (*g) (char **, int), char **p, ...)
4875
 
{
4876
 
  char *s;
4877
 
  va_list v;
4878
 
  va_start (v,p);
4879
 
  s = g (p, va_arg (v,int));
4880
 
  va_end (v);
4881
 
  return s;
4882
 
}
4883
 
 
4884
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4885
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4886
 
   These don't provoke an error unfortunately, instead are silently treated
4887
 
   as 'x'.  The following induces an error, until -std is added to get
4888
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4889
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4890
 
   that's true only with -std.  */
4891
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4892
 
 
4893
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4894
 
   inside strings and character constants.  */
4895
 
#define FOO(x) 'x'
4896
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4897
 
 
4898
 
int test (int i, double x);
4899
 
struct s1 {int (*f) (int a);};
4900
 
struct s2 {int (*f) (double a);};
4901
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4902
 
int argc;
4903
 
char **argv;
4904
 
int
4905
 
main ()
4906
 
{
4907
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4908
 
  ;
4909
 
  return 0;
4910
 
}
4911
 
_ACEOF
4912
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4913
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4914
 
do
4915
 
  CC="$ac_save_CC $ac_arg"
4916
 
  if ac_fn_c_try_compile "$LINENO"; then :
4917
 
  ac_cv_prog_cc_c89=$ac_arg
4918
 
fi
4919
 
rm -f core conftest.err conftest.$ac_objext
4920
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4921
 
done
4922
 
rm -f conftest.$ac_ext
4923
 
CC=$ac_save_CC
4924
 
 
4925
 
fi
4926
 
# AC_CACHE_VAL
4927
 
case "x$ac_cv_prog_cc_c89" in
4928
 
  x)
4929
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4930
 
$as_echo "none needed" >&6; } ;;
4931
 
  xno)
4932
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4933
 
$as_echo "unsupported" >&6; } ;;
4934
 
  *)
4935
 
    CC="$CC $ac_cv_prog_cc_c89"
4936
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4937
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4938
 
esac
4939
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
4940
 
 
4941
 
fi
4942
 
 
4943
 
ac_ext=c
4944
 
ac_cpp='$CPP $CPPFLAGS'
4945
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948
 
 
4949
 
depcc="$CC"   am_compiler_list=
4950
 
 
4951
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4952
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
4953
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4954
 
  $as_echo_n "(cached) " >&6
4955
 
else
4956
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4957
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4958
 
  # making bogus files that we don't know about and never remove.  For
4959
 
  # instance it was reported that on HP-UX the gcc test will end up
4960
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4961
 
  # in D'.
4962
 
  mkdir conftest.dir
4963
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4964
 
  # using a relative directory.
4965
 
  cp "$am_depcomp" conftest.dir
4966
 
  cd conftest.dir
4967
 
  # We will build objects and dependencies in a subdirectory because
4968
 
  # it helps to detect inapplicable dependency modes.  For instance
4969
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4970
 
  # side effect of compilation, but ICC will put the dependencies in
4971
 
  # the current directory while Tru64 will put them in the object
4972
 
  # directory.
4973
 
  mkdir sub
4974
 
 
4975
 
  am_cv_CC_dependencies_compiler_type=none
4976
 
  if test "$am_compiler_list" = ""; then
4977
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4978
 
  fi
4979
 
  am__universal=false
4980
 
  case " $depcc " in #(
4981
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4982
 
     esac
4983
 
 
4984
 
  for depmode in $am_compiler_list; do
4985
 
    # Setup a source with many dependencies, because some compilers
4986
 
    # like to wrap large dependency lists on column 80 (with \), and
4987
 
    # we should not choose a depcomp mode which is confused by this.
4988
 
    #
4989
 
    # We need to recreate these files for each test, as the compiler may
4990
 
    # overwrite some of them when testing with obscure command lines.
4991
 
    # This happens at least with the AIX C compiler.
4992
 
    : > sub/conftest.c
4993
 
    for i in 1 2 3 4 5 6; do
4994
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4995
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4996
 
      # Solaris 8's {/usr,}/bin/sh.
4997
 
      touch sub/conftst$i.h
4998
 
    done
4999
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5000
 
 
5001
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5002
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5003
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
5004
 
    # versions had trouble with output in subdirs
5005
 
    am__obj=sub/conftest.${OBJEXT-o}
5006
 
    am__minus_obj="-o $am__obj"
5007
 
    case $depmode in
5008
 
    gcc)
5009
 
      # This depmode causes a compiler race in universal mode.
5010
 
      test "$am__universal" = false || continue
5011
 
      ;;
5012
 
    nosideeffect)
5013
 
      # after this tag, mechanisms are not by side-effect, so they'll
5014
 
      # only be used when explicitly requested
5015
 
      if test "x$enable_dependency_tracking" = xyes; then
5016
 
        continue
5017
 
      else
5018
 
        break
5019
 
      fi
5020
 
      ;;
5021
 
    msvisualcpp | msvcmsys)
5022
 
      # This compiler won't grok `-c -o', but also, the minuso test has
5023
 
      # not run yet.  These depmodes are late enough in the game, and
5024
 
      # so weak that their functioning should not be impacted.
5025
 
      am__obj=conftest.${OBJEXT-o}
5026
 
      am__minus_obj=
5027
 
      ;;
5028
 
    none) break ;;
5029
 
    esac
5030
 
    if depmode=$depmode \
5031
 
       source=sub/conftest.c object=$am__obj \
5032
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5033
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5034
 
         >/dev/null 2>conftest.err &&
5035
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5036
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5037
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5038
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5039
 
      # icc doesn't choke on unknown options, it will just issue warnings
5040
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5041
 
      # that says an option was ignored or not supported.
5042
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5043
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5044
 
      # The diagnosis changed in icc 8.0:
5045
 
      #   icc: Command line remark: option '-MP' not supported
5046
 
      if (grep 'ignoring option' conftest.err ||
5047
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5048
 
        am_cv_CC_dependencies_compiler_type=$depmode
5049
 
        break
5050
 
      fi
5051
 
    fi
5052
 
  done
5053
 
 
5054
 
  cd ..
5055
 
  rm -rf conftest.dir
5056
 
else
5057
 
  am_cv_CC_dependencies_compiler_type=none
5058
 
fi
5059
 
 
5060
 
fi
5061
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5062
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5063
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5064
 
 
5065
 
 if
5066
 
  test "x$enable_dependency_tracking" != xno \
5067
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5068
 
  am__fastdepCC_TRUE=
5069
 
  am__fastdepCC_FALSE='#'
5070
 
else
5071
 
  am__fastdepCC_TRUE='#'
5072
 
  am__fastdepCC_FALSE=
5073
 
fi
5074
 
 
5075
 
 
5076
 
 
5077
 
 
5078
 
if test -n "$ac_tool_prefix"; then
5079
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5080
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5081
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082
 
$as_echo_n "checking for $ac_word... " >&6; }
5083
 
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5084
 
  $as_echo_n "(cached) " >&6
5085
 
else
5086
 
  if test -n "$RANLIB"; then
5087
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5088
 
else
5089
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090
 
for as_dir in $PATH
5091
 
do
5092
 
  IFS=$as_save_IFS
5093
 
  test -z "$as_dir" && as_dir=.
5094
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5095
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5097
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098
 
    break 2
5099
 
  fi
5100
 
done
5101
 
  done
5102
 
IFS=$as_save_IFS
5103
 
 
5104
 
fi
5105
 
fi
5106
 
RANLIB=$ac_cv_prog_RANLIB
5107
 
if test -n "$RANLIB"; then
5108
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5109
 
$as_echo "$RANLIB" >&6; }
5110
 
else
5111
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112
 
$as_echo "no" >&6; }
5113
 
fi
5114
 
 
5115
 
 
5116
 
fi
5117
 
if test -z "$ac_cv_prog_RANLIB"; then
5118
 
  ac_ct_RANLIB=$RANLIB
5119
 
  # Extract the first word of "ranlib", so it can be a program name with args.
5120
 
set dummy ranlib; ac_word=$2
5121
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122
 
$as_echo_n "checking for $ac_word... " >&6; }
5123
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5124
 
  $as_echo_n "(cached) " >&6
5125
 
else
5126
 
  if test -n "$ac_ct_RANLIB"; then
5127
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5128
 
else
5129
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130
 
for as_dir in $PATH
5131
 
do
5132
 
  IFS=$as_save_IFS
5133
 
  test -z "$as_dir" && as_dir=.
5134
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5135
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5137
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138
 
    break 2
5139
 
  fi
5140
 
done
5141
 
  done
5142
 
IFS=$as_save_IFS
5143
 
 
5144
 
fi
5145
 
fi
5146
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5147
 
if test -n "$ac_ct_RANLIB"; then
5148
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5149
 
$as_echo "$ac_ct_RANLIB" >&6; }
5150
 
else
5151
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152
 
$as_echo "no" >&6; }
5153
 
fi
5154
 
 
5155
 
  if test "x$ac_ct_RANLIB" = x; then
5156
 
    RANLIB=":"
5157
 
  else
5158
 
    case $cross_compiling:$ac_tool_warned in
5159
 
yes:)
5160
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162
 
ac_tool_warned=yes ;;
5163
 
esac
5164
 
    RANLIB=$ac_ct_RANLIB
5165
 
  fi
5166
 
else
5167
 
  RANLIB="$ac_cv_prog_RANLIB"
5168
 
fi
5169
 
 
5170
 
for ac_prog in 'bison -y' byacc
5171
 
do
5172
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5173
 
set dummy $ac_prog; ac_word=$2
5174
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175
 
$as_echo_n "checking for $ac_word... " >&6; }
5176
 
if test "${ac_cv_prog_YACC+set}" = set; then :
5177
 
  $as_echo_n "(cached) " >&6
5178
 
else
5179
 
  if test -n "$YACC"; then
5180
 
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5181
 
else
5182
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183
 
for as_dir in $PATH
5184
 
do
5185
 
  IFS=$as_save_IFS
5186
 
  test -z "$as_dir" && as_dir=.
5187
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5188
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189
 
    ac_cv_prog_YACC="$ac_prog"
5190
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191
 
    break 2
5192
 
  fi
5193
 
done
5194
 
  done
5195
 
IFS=$as_save_IFS
5196
 
 
5197
 
fi
5198
 
fi
5199
 
YACC=$ac_cv_prog_YACC
5200
 
if test -n "$YACC"; then
5201
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5202
 
$as_echo "$YACC" >&6; }
5203
 
else
5204
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205
 
$as_echo "no" >&6; }
5206
 
fi
5207
 
 
5208
 
 
5209
 
  test -n "$YACC" && break
5210
 
done
5211
 
test -n "$YACC" || YACC="yacc"
5212
 
 
5213
 
 
5214
 
# Setting language choice
5215
 
ac_ext=cpp
5216
 
ac_cpp='$CXXCPP $CPPFLAGS'
5217
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5220
 
 
5221
 
 
5222
 
# Enable system extensions
5223
 
 
5224
 
ac_ext=cpp
5225
 
ac_cpp='$CXXCPP $CPPFLAGS'
5226
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5229
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5230
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5231
 
if test -z "$CXXCPP"; then
5232
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5233
 
  $as_echo_n "(cached) " >&6
5234
 
else
5235
 
      # Double quotes because CXXCPP needs to be expanded
5236
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
5237
 
    do
5238
 
      ac_preproc_ok=false
5239
 
for ac_cxx_preproc_warn_flag in '' yes
5240
 
do
5241
 
  # Use a header file that comes with gcc, so configuring glibc
5242
 
  # with a fresh cross-compiler works.
5243
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5244
 
  # <limits.h> exists even on freestanding compilers.
5245
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5246
 
  # not just through cpp. "Syntax error" is here to catch this case.
5247
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248
 
/* end confdefs.h.  */
5249
 
#ifdef __STDC__
5250
 
# include <limits.h>
5251
 
#else
5252
 
# include <assert.h>
5253
 
#endif
5254
 
                     Syntax error
5255
 
_ACEOF
5256
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
5257
 
 
5258
 
else
5259
 
  # Broken: fails on valid input.
5260
 
continue
5261
 
fi
5262
 
rm -f conftest.err conftest.$ac_ext
5263
 
 
5264
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5265
 
  # can be detected and how.
5266
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267
 
/* end confdefs.h.  */
5268
 
#include <ac_nonexistent.h>
5269
 
_ACEOF
5270
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
5271
 
  # Broken: success on invalid input.
5272
 
continue
5273
 
else
5274
 
  # Passes both tests.
5275
 
ac_preproc_ok=:
5276
 
break
5277
 
fi
5278
 
rm -f conftest.err conftest.$ac_ext
5279
 
 
5280
 
done
5281
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5282
 
rm -f conftest.err conftest.$ac_ext
5283
 
if $ac_preproc_ok; then :
5284
 
  break
5285
 
fi
5286
 
 
5287
 
    done
5288
 
    ac_cv_prog_CXXCPP=$CXXCPP
5289
 
 
5290
 
fi
5291
 
  CXXCPP=$ac_cv_prog_CXXCPP
5292
 
else
5293
 
  ac_cv_prog_CXXCPP=$CXXCPP
5294
 
fi
5295
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5296
 
$as_echo "$CXXCPP" >&6; }
5297
 
ac_preproc_ok=false
5298
 
for ac_cxx_preproc_warn_flag in '' yes
5299
 
do
5300
 
  # Use a header file that comes with gcc, so configuring glibc
5301
 
  # with a fresh cross-compiler works.
5302
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5303
 
  # <limits.h> exists even on freestanding compilers.
5304
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5305
 
  # not just through cpp. "Syntax error" is here to catch this case.
5306
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307
 
/* end confdefs.h.  */
5308
 
#ifdef __STDC__
5309
 
# include <limits.h>
5310
 
#else
5311
 
# include <assert.h>
5312
 
#endif
5313
 
                     Syntax error
5314
 
_ACEOF
5315
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
5316
 
 
5317
 
else
5318
 
  # Broken: fails on valid input.
5319
 
continue
5320
 
fi
5321
 
rm -f conftest.err conftest.$ac_ext
5322
 
 
5323
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5324
 
  # can be detected and how.
5325
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326
 
/* end confdefs.h.  */
5327
 
#include <ac_nonexistent.h>
5328
 
_ACEOF
5329
 
if ac_fn_cxx_try_cpp "$LINENO"; then :
5330
 
  # Broken: success on invalid input.
5331
 
continue
5332
 
else
5333
 
  # Passes both tests.
5334
 
ac_preproc_ok=:
5335
 
break
5336
 
fi
5337
 
rm -f conftest.err conftest.$ac_ext
5338
 
 
5339
 
done
5340
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5341
 
rm -f conftest.err conftest.$ac_ext
5342
 
if $ac_preproc_ok; then :
5343
 
 
5344
 
else
5345
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5346
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5347
 
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5348
 
See \`config.log' for more details." "$LINENO" 5; }
5349
 
fi
5350
 
 
5351
 
ac_ext=cpp
5352
 
ac_cpp='$CXXCPP $CPPFLAGS'
5353
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5356
 
 
5357
 
 
5358
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5359
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5360
 
if test "${ac_cv_path_GREP+set}" = set; then :
5361
 
  $as_echo_n "(cached) " >&6
5362
 
else
5363
 
  if test -z "$GREP"; then
5364
 
  ac_path_GREP_found=false
5365
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5366
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5368
 
do
5369
 
  IFS=$as_save_IFS
5370
 
  test -z "$as_dir" && as_dir=.
5371
 
    for ac_prog in grep ggrep; do
5372
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5373
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5374
 
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5375
 
# Check for GNU ac_path_GREP and select it if it is found.
5376
 
  # Check for GNU $ac_path_GREP
5377
 
case `"$ac_path_GREP" --version 2>&1` in
5378
 
*GNU*)
5379
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5380
 
*)
5381
 
  ac_count=0
5382
 
  $as_echo_n 0123456789 >"conftest.in"
5383
 
  while :
5384
 
  do
5385
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5386
 
    mv "conftest.tmp" "conftest.in"
5387
 
    cp "conftest.in" "conftest.nl"
5388
 
    $as_echo 'GREP' >> "conftest.nl"
5389
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5390
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5391
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5392
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5393
 
      # Best one so far, save it but keep looking for a better one
5394
 
      ac_cv_path_GREP="$ac_path_GREP"
5395
 
      ac_path_GREP_max=$ac_count
5396
 
    fi
5397
 
    # 10*(2^10) chars as input seems more than enough
5398
 
    test $ac_count -gt 10 && break
5399
 
  done
5400
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5401
 
esac
5402
 
 
5403
 
      $ac_path_GREP_found && break 3
5404
 
    done
5405
 
  done
5406
 
  done
5407
 
IFS=$as_save_IFS
5408
 
  if test -z "$ac_cv_path_GREP"; then
5409
 
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5410
 
  fi
5411
 
else
5412
 
  ac_cv_path_GREP=$GREP
5413
 
fi
5414
 
 
5415
 
fi
5416
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5417
 
$as_echo "$ac_cv_path_GREP" >&6; }
5418
 
 GREP="$ac_cv_path_GREP"
5419
 
 
5420
 
 
5421
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5422
 
$as_echo_n "checking for egrep... " >&6; }
5423
 
if test "${ac_cv_path_EGREP+set}" = set; then :
5424
 
  $as_echo_n "(cached) " >&6
5425
 
else
5426
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5427
 
   then ac_cv_path_EGREP="$GREP -E"
5428
 
   else
5429
 
     if test -z "$EGREP"; then
5430
 
  ac_path_EGREP_found=false
5431
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5432
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5434
 
do
5435
 
  IFS=$as_save_IFS
5436
 
  test -z "$as_dir" && as_dir=.
5437
 
    for ac_prog in egrep; do
5438
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5439
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5440
 
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5441
 
# Check for GNU ac_path_EGREP and select it if it is found.
5442
 
  # Check for GNU $ac_path_EGREP
5443
 
case `"$ac_path_EGREP" --version 2>&1` in
5444
 
*GNU*)
5445
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5446
 
*)
5447
 
  ac_count=0
5448
 
  $as_echo_n 0123456789 >"conftest.in"
5449
 
  while :
5450
 
  do
5451
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5452
 
    mv "conftest.tmp" "conftest.in"
5453
 
    cp "conftest.in" "conftest.nl"
5454
 
    $as_echo 'EGREP' >> "conftest.nl"
5455
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5456
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5457
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5458
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5459
 
      # Best one so far, save it but keep looking for a better one
5460
 
      ac_cv_path_EGREP="$ac_path_EGREP"
5461
 
      ac_path_EGREP_max=$ac_count
5462
 
    fi
5463
 
    # 10*(2^10) chars as input seems more than enough
5464
 
    test $ac_count -gt 10 && break
5465
 
  done
5466
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5467
 
esac
5468
 
 
5469
 
      $ac_path_EGREP_found && break 3
5470
 
    done
5471
 
  done
5472
 
  done
5473
 
IFS=$as_save_IFS
5474
 
  if test -z "$ac_cv_path_EGREP"; then
5475
 
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5476
 
  fi
5477
 
else
5478
 
  ac_cv_path_EGREP=$EGREP
5479
 
fi
5480
 
 
5481
 
   fi
5482
 
fi
5483
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5484
 
$as_echo "$ac_cv_path_EGREP" >&6; }
5485
 
 EGREP="$ac_cv_path_EGREP"
5486
 
 
5487
 
 
5488
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5489
 
$as_echo_n "checking for ANSI C header files... " >&6; }
5490
 
if test "${ac_cv_header_stdc+set}" = set; then :
5491
 
  $as_echo_n "(cached) " >&6
5492
 
else
5493
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494
 
/* end confdefs.h.  */
5495
 
#include <stdlib.h>
5496
 
#include <stdarg.h>
5497
 
#include <string.h>
5498
 
#include <float.h>
5499
 
 
5500
 
int
5501
 
main ()
5502
 
{
5503
 
 
5504
 
  ;
5505
 
  return 0;
5506
 
}
5507
 
_ACEOF
5508
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5509
 
  ac_cv_header_stdc=yes
5510
 
else
5511
 
  ac_cv_header_stdc=no
5512
 
fi
5513
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514
 
 
5515
 
if test $ac_cv_header_stdc = yes; then
5516
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5517
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518
 
/* end confdefs.h.  */
5519
 
#include <string.h>
5520
 
 
5521
 
_ACEOF
5522
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5523
 
  $EGREP "memchr" >/dev/null 2>&1; then :
5524
 
 
5525
 
else
5526
 
  ac_cv_header_stdc=no
5527
 
fi
5528
 
rm -f conftest*
5529
 
 
5530
 
fi
5531
 
 
5532
 
if test $ac_cv_header_stdc = yes; then
5533
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5534
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535
 
/* end confdefs.h.  */
5536
 
#include <stdlib.h>
5537
 
 
5538
 
_ACEOF
5539
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540
 
  $EGREP "free" >/dev/null 2>&1; then :
5541
 
 
5542
 
else
5543
 
  ac_cv_header_stdc=no
5544
 
fi
5545
 
rm -f conftest*
5546
 
 
5547
 
fi
5548
 
 
5549
 
if test $ac_cv_header_stdc = yes; then
5550
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5551
 
  if test "$cross_compiling" = yes; then :
5552
 
  :
5553
 
else
5554
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555
 
/* end confdefs.h.  */
5556
 
#include <ctype.h>
5557
 
#include <stdlib.h>
5558
 
#if ((' ' & 0x0FF) == 0x020)
5559
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5560
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5561
 
#else
5562
 
# define ISLOWER(c) \
5563
 
                   (('a' <= (c) && (c) <= 'i') \
5564
 
                     || ('j' <= (c) && (c) <= 'r') \
5565
 
                     || ('s' <= (c) && (c) <= 'z'))
5566
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5567
 
#endif
5568
 
 
5569
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5570
 
int
5571
 
main ()
5572
 
{
5573
 
  int i;
5574
 
  for (i = 0; i < 256; i++)
5575
 
    if (XOR (islower (i), ISLOWER (i))
5576
 
        || toupper (i) != TOUPPER (i))
5577
 
      return 2;
5578
 
  return 0;
5579
 
}
5580
 
_ACEOF
5581
 
if ac_fn_cxx_try_run "$LINENO"; then :
5582
 
 
5583
 
else
5584
 
  ac_cv_header_stdc=no
5585
 
fi
5586
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5587
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5588
 
fi
5589
 
 
5590
 
fi
5591
 
fi
5592
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5593
 
$as_echo "$ac_cv_header_stdc" >&6; }
5594
 
if test $ac_cv_header_stdc = yes; then
5595
 
 
5596
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5597
 
 
5598
 
fi
5599
 
 
5600
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5601
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5602
 
                  inttypes.h stdint.h unistd.h
5603
 
do :
5604
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5605
 
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5606
 
"
5607
 
eval as_val=\$$as_ac_Header
5608
 
   if test "x$as_val" = x""yes; then :
5609
 
  cat >>confdefs.h <<_ACEOF
5610
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5611
 
_ACEOF
5612
 
 
5613
 
fi
5614
 
 
5615
 
done
5616
 
 
5617
 
 
5618
 
 
5619
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5620
 
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5621
 
  MINIX=yes
5622
 
else
5623
 
  MINIX=
5624
 
fi
5625
 
 
5626
 
 
5627
 
  if test "$MINIX" = yes; then
5628
 
 
5629
 
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5630
 
 
5631
 
 
5632
 
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5633
 
 
5634
 
 
5635
 
$as_echo "#define _MINIX 1" >>confdefs.h
5636
 
 
5637
 
  fi
5638
 
 
5639
 
 
5640
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5641
 
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5642
 
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5643
 
  $as_echo_n "(cached) " >&6
5644
 
else
5645
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646
 
/* end confdefs.h.  */
5647
 
 
5648
 
#         define __EXTENSIONS__ 1
5649
 
          $ac_includes_default
5650
 
int
5651
 
main ()
5652
 
{
5653
 
 
5654
 
  ;
5655
 
  return 0;
5656
 
}
5657
 
_ACEOF
5658
 
if ac_fn_cxx_try_compile "$LINENO"; then :
5659
 
  ac_cv_safe_to_define___extensions__=yes
5660
 
else
5661
 
  ac_cv_safe_to_define___extensions__=no
5662
 
fi
5663
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664
 
fi
5665
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5666
 
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5667
 
  test $ac_cv_safe_to_define___extensions__ = yes &&
5668
 
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5669
 
 
5670
 
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5671
 
 
5672
 
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5673
 
 
5674
 
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5675
 
 
5676
 
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5677
 
 
5678
 
 
5679
 
 
5680
 
# Check pkg-config is available
5681
 
 
5682
 
 
5683
 
 
5684
 
 
5685
 
 
5686
 
 
5687
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5688
 
        if test -n "$ac_tool_prefix"; then
5689
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5690
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5691
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692
 
$as_echo_n "checking for $ac_word... " >&6; }
5693
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5694
 
  $as_echo_n "(cached) " >&6
5695
 
else
5696
 
  case $PKG_CONFIG in
5697
 
  [\\/]* | ?:[\\/]*)
5698
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5699
 
  ;;
5700
 
  *)
5701
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702
 
for as_dir in $PATH
5703
 
do
5704
 
  IFS=$as_save_IFS
5705
 
  test -z "$as_dir" && as_dir=.
5706
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5707
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5709
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710
 
    break 2
5711
 
  fi
5712
 
done
5713
 
  done
5714
 
IFS=$as_save_IFS
5715
 
 
5716
 
  ;;
5717
 
esac
5718
 
fi
5719
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5720
 
if test -n "$PKG_CONFIG"; then
5721
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5722
 
$as_echo "$PKG_CONFIG" >&6; }
5723
 
else
5724
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725
 
$as_echo "no" >&6; }
5726
 
fi
5727
 
 
5728
 
 
5729
 
fi
5730
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
5731
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
5732
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
5733
 
set dummy pkg-config; ac_word=$2
5734
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735
 
$as_echo_n "checking for $ac_word... " >&6; }
5736
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5737
 
  $as_echo_n "(cached) " >&6
5738
 
else
5739
 
  case $ac_pt_PKG_CONFIG in
5740
 
  [\\/]* | ?:[\\/]*)
5741
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5742
 
  ;;
5743
 
  *)
5744
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745
 
for as_dir in $PATH
5746
 
do
5747
 
  IFS=$as_save_IFS
5748
 
  test -z "$as_dir" && as_dir=.
5749
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5750
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5752
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753
 
    break 2
5754
 
  fi
5755
 
done
5756
 
  done
5757
 
IFS=$as_save_IFS
5758
 
 
5759
 
  ;;
5760
 
esac
5761
 
fi
5762
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5763
 
if test -n "$ac_pt_PKG_CONFIG"; then
5764
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5765
 
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5766
 
else
5767
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768
 
$as_echo "no" >&6; }
5769
 
fi
5770
 
 
5771
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
5772
 
    PKG_CONFIG=""
5773
 
  else
5774
 
    case $cross_compiling:$ac_tool_warned in
5775
 
yes:)
5776
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778
 
ac_tool_warned=yes ;;
5779
 
esac
5780
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
5781
 
  fi
5782
 
else
5783
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5784
 
fi
5785
 
 
5786
 
fi
5787
 
if test -n "$PKG_CONFIG"; then
5788
 
        _pkg_min_version=0.20
5789
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5790
 
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5791
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5792
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793
 
$as_echo "yes" >&6; }
5794
 
        else
5795
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796
 
$as_echo "no" >&6; }
5797
 
                PKG_CONFIG=""
5798
 
        fi
5799
 
fi
5800
 
 
5801
 
# Checks for libraries.
5802
 
if test "x$with_libxml2" = "xyes"; then
5803
 
 
5804
 
 
5805
 
# Check whether --with-xml-prefix was given.
5806
 
if test "${with_xml_prefix+set}" = set; then :
5807
 
  withval=$with_xml_prefix; xml_config_prefix="$withval"
5808
 
else
5809
 
  xml_config_prefix=""
5810
 
fi
5811
 
 
5812
 
 
5813
 
# Check whether --with-xml-exec-prefix was given.
5814
 
if test "${with_xml_exec_prefix+set}" = set; then :
5815
 
  withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
5816
 
else
5817
 
  xml_config_exec_prefix=""
5818
 
fi
5819
 
 
5820
 
# Check whether --enable-xmltest was given.
5821
 
if test "${enable_xmltest+set}" = set; then :
5822
 
  enableval=$enable_xmltest;
5823
 
else
5824
 
  enable_xmltest=yes
5825
 
fi
5826
 
 
5827
 
 
5828
 
  if test x$xml_config_exec_prefix != x ; then
5829
 
     xml_config_args="$xml_config_args"
5830
 
     if test x${XML2_CONFIG+set} != xset ; then
5831
 
        XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
5832
 
     fi
5833
 
  fi
5834
 
  if test x$xml_config_prefix != x ; then
5835
 
     xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
5836
 
     if test x${XML2_CONFIG+set} != xset ; then
5837
 
        XML2_CONFIG=$xml_config_prefix/bin/xml2-config
5838
 
     fi
5839
 
  fi
5840
 
 
5841
 
  # Extract the first word of "xml2-config", so it can be a program name with args.
5842
 
set dummy xml2-config; ac_word=$2
5843
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844
 
$as_echo_n "checking for $ac_word... " >&6; }
5845
 
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
5846
 
  $as_echo_n "(cached) " >&6
5847
 
else
5848
 
  case $XML2_CONFIG in
5849
 
  [\\/]* | ?:[\\/]*)
5850
 
  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
5851
 
  ;;
5852
 
  *)
5853
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854
 
for as_dir in $PATH
5855
 
do
5856
 
  IFS=$as_save_IFS
5857
 
  test -z "$as_dir" && as_dir=.
5858
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5859
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860
 
    ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5861
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862
 
    break 2
5863
 
  fi
5864
 
done
5865
 
  done
5866
 
IFS=$as_save_IFS
5867
 
 
5868
 
  test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
5869
 
  ;;
5870
 
esac
5871
 
fi
5872
 
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
5873
 
if test -n "$XML2_CONFIG"; then
5874
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5875
 
$as_echo "$XML2_CONFIG" >&6; }
5876
 
else
5877
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878
 
$as_echo "no" >&6; }
5879
 
fi
5880
 
 
5881
 
 
5882
 
  min_xml_version=2.6.24
5883
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
5884
 
$as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
5885
 
  no_xml=""
5886
 
  if test "$XML2_CONFIG" = "no" ; then
5887
 
    no_xml=yes
5888
 
  else
5889
 
    XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
5890
 
    XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
5891
 
    xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
5892
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5893
 
    xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
5894
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5895
 
    xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
5896
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5897
 
    if test "x$enable_xmltest" = "xyes" ; then
5898
 
      ac_save_CPPFLAGS="$CPPFLAGS"
5899
 
      ac_save_LIBS="$LIBS"
5900
 
      CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
5901
 
      LIBS="$XML_LIBS $LIBS"
5902
 
      rm -f conf.xmltest
5903
 
      if test "$cross_compiling" = yes; then :
5904
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
5905
 
else
5906
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907
 
/* end confdefs.h.  */
5908
 
 
5909
 
#include <stdlib.h>
5910
 
#include <stdio.h>
5911
 
#include <string.h>
5912
 
#include <libxml/xmlversion.h>
5913
 
 
5914
 
int
5915
 
main()
5916
 
{
5917
 
  int xml_major_version, xml_minor_version, xml_micro_version;
5918
 
  int major, minor, micro;
5919
 
  char *tmp_version;
5920
 
 
5921
 
  system("touch conf.xmltest");
5922
 
 
5923
 
  /* Capture xml2-config output via autoconf/configure variables */
5924
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
5925
 
  tmp_version = (char *)strdup("$min_xml_version");
5926
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5927
 
     printf("%s, bad version string from xml2-config\n", "$min_xml_version");
5928
 
     exit(1);
5929
 
   }
5930
 
   free(tmp_version);
5931
 
 
5932
 
   /* Capture the version information from the header files */
5933
 
   tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
5934
 
   if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
5935
 
     printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
5936
 
     exit(1);
5937
 
   }
5938
 
   free(tmp_version);
5939
 
 
5940
 
 /* Compare xml2-config output to the libxml headers */
5941
 
  if ((xml_major_version != $xml_config_major_version) ||
5942
 
      (xml_minor_version != $xml_config_minor_version) ||
5943
 
      (xml_micro_version != $xml_config_micro_version))
5944
 
    {
5945
 
      printf("*** libxml header files (version %d.%d.%d) do not match\n",
5946
 
         xml_major_version, xml_minor_version, xml_micro_version);
5947
 
      printf("*** xml2-config (version %d.%d.%d)\n",
5948
 
         $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
5949
 
      return 1;
5950
 
    }
5951
 
/* Compare the headers to the library to make sure we match */
5952
 
  /* Less than ideal -- doesn't provide us with return value feedback,
5953
 
   * only exits if there's a serious mismatch between header and library.
5954
 
   */
5955
 
    LIBXML_TEST_VERSION;
5956
 
 
5957
 
    /* Test that the library is greater than our minimum version */
5958
 
    if ((xml_major_version > major) ||
5959
 
        ((xml_major_version == major) && (xml_minor_version > minor)) ||
5960
 
        ((xml_major_version == major) && (xml_minor_version == minor) &&
5961
 
        (xml_micro_version >= micro)))
5962
 
      {
5963
 
        return 0;
5964
 
       }
5965
 
     else
5966
 
      {
5967
 
        printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
5968
 
               xml_major_version, xml_minor_version, xml_micro_version);
5969
 
        printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
5970
 
           major, minor, micro);
5971
 
        printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
5972
 
        printf("***\n");
5973
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
5974
 
        printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
5975
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
5976
 
        printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
5977
 
        printf("*** correct copy of xml2-config. (In this case, you will have to\n");
5978
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5979
 
        printf("*** so that the correct libraries are found at run-time))\n");
5980
 
    }
5981
 
  return 1;
5982
 
}
5983
 
 
5984
 
_ACEOF
5985
 
if ac_fn_cxx_try_run "$LINENO"; then :
5986
 
 
5987
 
else
5988
 
  no_xml=yes
5989
 
fi
5990
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5991
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5992
 
fi
5993
 
 
5994
 
       CPPFLAGS="$ac_save_CPPFLAGS"
5995
 
       LIBS="$ac_save_LIBS"
5996
 
     fi
5997
 
  fi
5998
 
 
5999
 
  if test "x$no_xml" = x ; then
6000
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
6001
 
$as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
6002
 
     have_libxml2=yes
6003
 
  else
6004
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005
 
$as_echo "no" >&6; }
6006
 
     if test "$XML2_CONFIG" = "no" ; then
6007
 
       echo "*** The xml2-config script installed by LIBXML could not be found"
6008
 
       echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
6009
 
       echo "*** your path, or set the XML2_CONFIG environment variable to the"
6010
 
       echo "*** full path to xml2-config."
6011
 
     else
6012
 
       if test -f conf.xmltest ; then
6013
 
        :
6014
 
       else
6015
 
          echo "*** Could not run libxml test program, checking why..."
6016
 
          CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
6017
 
          LIBS="$LIBS $XML_LIBS"
6018
 
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019
 
/* end confdefs.h.  */
6020
 
 
6021
 
#include <libxml/xmlversion.h>
6022
 
#include <stdio.h>
6023
 
 
6024
 
int
6025
 
main ()
6026
 
{
6027
 
 LIBXML_TEST_VERSION; return 0;
6028
 
  ;
6029
 
  return 0;
6030
 
}
6031
 
_ACEOF
6032
 
if ac_fn_cxx_try_link "$LINENO"; then :
6033
 
   echo "*** The test program compiled, but did not run. This usually means"
6034
 
          echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
6035
 
          echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
6036
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6037
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
6038
 
          echo "*** is required on your system"
6039
 
          echo "***"
6040
 
          echo "*** If you have an old version installed, it is best to remove it, although"
6041
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6042
 
else
6043
 
   echo "*** The test program failed to compile or link. See the file config.log for the"
6044
 
          echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
6045
 
          echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
6046
 
          echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
6047
 
fi
6048
 
rm -f core conftest.err conftest.$ac_objext \
6049
 
    conftest$ac_exeext conftest.$ac_ext
6050
 
          CPPFLAGS="$ac_save_CPPFLAGS"
6051
 
          LIBS="$ac_save_LIBS"
6052
 
       fi
6053
 
     fi
6054
 
 
6055
 
     XML_CPPFLAGS=""
6056
 
     XML_LIBS=""
6057
 
     :
6058
 
  fi
6059
 
 
6060
 
 
6061
 
  rm -f conf.xmltest
6062
 
 
6063
 
  if test "x$have_libxml2" = "xyes"; then
6064
 
 
6065
 
$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
6066
 
 
6067
 
  elif test "x$with_libxml2_requested" = "xyes"; then
6068
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6069
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6070
 
as_fn_error "libxml2 is requested but not found in the system.
6071
 
See \`config.log' for more details." "$LINENO" 5; }
6072
 
  fi
6073
 
fi
6074
 
 
6075
 
if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
6076
 
 
6077
 
 
6078
 
# Check whether --with-libexpat-prefix was given.
6079
 
if test "${with_libexpat_prefix+set}" = set; then :
6080
 
  withval=$with_libexpat_prefix; libexpat_prefix=$withval
6081
 
else
6082
 
  libexpat_prefix=""
6083
 
fi
6084
 
 
6085
 
 
6086
 
if test "x$libexpat_prefix" = "x"; then
6087
 
  libexpat_prefix="/usr"
6088
 
fi
6089
 
 
6090
 
libexpat_prefix_lib=$libexpat_prefix/lib
6091
 
libexpat_prefix_include=$libexpat_prefix/include
6092
 
 
6093
 
LIBS_save=$LIBS
6094
 
CPPFLAGS_save=$CPPFLAGS
6095
 
 
6096
 
LIBS="-L$libexpat_prefix_lib $LIBS"
6097
 
CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
6098
 
 
6099
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
6100
 
$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
6101
 
if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
6102
 
  $as_echo_n "(cached) " >&6
6103
 
else
6104
 
  ac_check_lib_save_LIBS=$LIBS
6105
 
LIBS="-lexpat  $LIBS"
6106
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107
 
/* end confdefs.h.  */
6108
 
 
6109
 
/* Override any GCC internal prototype to avoid an error.
6110
 
   Use char because int might match the return type of a GCC
6111
 
   builtin and then its argument prototype would still apply.  */
6112
 
#ifdef __cplusplus
6113
 
extern "C"
6114
 
#endif
6115
 
char XML_ParserCreate ();
6116
 
int
6117
 
main ()
6118
 
{
6119
 
return XML_ParserCreate ();
6120
 
  ;
6121
 
  return 0;
6122
 
}
6123
 
_ACEOF
6124
 
if ac_fn_cxx_try_link "$LINENO"; then :
6125
 
  ac_cv_lib_expat_XML_ParserCreate=yes
6126
 
else
6127
 
  ac_cv_lib_expat_XML_ParserCreate=no
6128
 
fi
6129
 
rm -f core conftest.err conftest.$ac_objext \
6130
 
    conftest$ac_exeext conftest.$ac_ext
6131
 
LIBS=$ac_check_lib_save_LIBS
6132
 
fi
6133
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
6134
 
$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
6135
 
if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
6136
 
  have_libexpat=yes
6137
 
fi
6138
 
 
6139
 
if test "x$have_libexpat" = "xyes"; then
6140
 
 
6141
 
$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
6142
 
 
6143
 
    LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
6144
 
    LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
6145
 
 
6146
 
 
6147
 
fi
6148
 
 
6149
 
LIBS=$LIBS_save
6150
 
CPPFLAGS=$CPPFLAGS_save
6151
 
 
6152
 
 
6153
 
  if test "x$have_libexpat" != "xyes" &&
6154
 
     test "x$with_libexpat_requested" = "xyes"; then
6155
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6156
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6157
 
as_fn_error "libexpat is requested but not found in the system.
6158
 
See \`config.log' for more details." "$LINENO" 5; }
6159
 
  fi
6160
 
fi
6161
 
 
6162
 
if test "x$with_sqlite3" = "xyes"; then
6163
 
 
6164
 
 
6165
 
# Check whether --with-sqlite3-prefix was given.
6166
 
if test "${with_sqlite3_prefix+set}" = set; then :
6167
 
  withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
6168
 
else
6169
 
  sqlite3_prefix=""
6170
 
fi
6171
 
 
6172
 
if test "x$sqlite3_prefix" = "x"; then
6173
 
  sqlite3_prefix="/usr"
6174
 
fi
6175
 
 
6176
 
LIBS_save=$LIBS
6177
 
CPPFLAGS_save=$CPPFLAGS
6178
 
 
6179
 
 
6180
 
pkg_failed=no
6181
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
6182
 
$as_echo_n "checking for SQLITE3... " >&6; }
6183
 
 
6184
 
if test -n "$SQLITE3_CFLAGS"; then
6185
 
    pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
6186
 
 elif test -n "$PKG_CONFIG"; then
6187
 
    if test -n "$PKG_CONFIG" && \
6188
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
6189
 
  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
6190
 
  ac_status=$?
6191
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192
 
  test $ac_status = 0; }; then
6193
 
  pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
6194
 
else
6195
 
  pkg_failed=yes
6196
 
fi
6197
 
 else
6198
 
    pkg_failed=untried
6199
 
fi
6200
 
if test -n "$SQLITE3_LIBS"; then
6201
 
    pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
6202
 
 elif test -n "$PKG_CONFIG"; then
6203
 
    if test -n "$PKG_CONFIG" && \
6204
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
6205
 
  ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
6206
 
  ac_status=$?
6207
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208
 
  test $ac_status = 0; }; then
6209
 
  pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
6210
 
else
6211
 
  pkg_failed=yes
6212
 
fi
6213
 
 else
6214
 
    pkg_failed=untried
6215
 
fi
6216
 
 
6217
 
 
6218
 
 
6219
 
if test $pkg_failed = yes; then
6220
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221
 
$as_echo "no" >&6; }
6222
 
 
6223
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6224
 
        _pkg_short_errors_supported=yes
6225
 
else
6226
 
        _pkg_short_errors_supported=no
6227
 
fi
6228
 
        if test $_pkg_short_errors_supported = yes; then
6229
 
                SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sqlite3" 2>&1`
6230
 
        else
6231
 
                SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors "sqlite3" 2>&1`
6232
 
        fi
6233
 
        # Put the nasty error message in config.log where it belongs
6234
 
        echo "$SQLITE3_PKG_ERRORS" >&5
6235
 
 
6236
 
        have_sqlite3=no
6237
 
elif test $pkg_failed = untried; then
6238
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239
 
$as_echo "no" >&6; }
6240
 
        have_sqlite3=no
6241
 
else
6242
 
        SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
6243
 
        SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
6244
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6245
 
$as_echo "yes" >&6; }
6246
 
        have_sqlite3=yes
6247
 
fi
6248
 
 
6249
 
if test "x$have_sqlite3" != "xyes"; then
6250
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
6251
 
$as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
6252
 
 
6253
 
  sqlite3_prefix_lib=$sqlite3_prefix/lib
6254
 
  sqlite3_prefix_include=$sqlite3_prefix/include
6255
 
 
6256
 
  LIBS="-L$sqlite3_prefix_lib $LIBS"
6257
 
  CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
6258
 
 
6259
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
6260
 
$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
6261
 
if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
6262
 
  $as_echo_n "(cached) " >&6
6263
 
else
6264
 
  ac_check_lib_save_LIBS=$LIBS
6265
 
LIBS="-lsqlite3  $LIBS"
6266
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267
 
/* end confdefs.h.  */
6268
 
 
6269
 
/* Override any GCC internal prototype to avoid an error.
6270
 
   Use char because int might match the return type of a GCC
6271
 
   builtin and then its argument prototype would still apply.  */
6272
 
#ifdef __cplusplus
6273
 
extern "C"
6274
 
#endif
6275
 
char sqlite3_open ();
6276
 
int
6277
 
main ()
6278
 
{
6279
 
return sqlite3_open ();
6280
 
  ;
6281
 
  return 0;
6282
 
}
6283
 
_ACEOF
6284
 
if ac_fn_cxx_try_link "$LINENO"; then :
6285
 
  ac_cv_lib_sqlite3_sqlite3_open=yes
6286
 
else
6287
 
  ac_cv_lib_sqlite3_sqlite3_open=no
6288
 
fi
6289
 
rm -f core conftest.err conftest.$ac_objext \
6290
 
    conftest$ac_exeext conftest.$ac_ext
6291
 
LIBS=$ac_check_lib_save_LIBS
6292
 
fi
6293
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
6294
 
$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
6295
 
if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
6296
 
  have_sqlite3=yes
6297
 
fi
6298
 
 
6299
 
  if test "x$have_sqlite3" = "xyes"; then
6300
 
    SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
6301
 
    SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
6302
 
  fi
6303
 
fi
6304
 
if test "x$have_sqlite3" = "xyes"; then
6305
 
    LIBS="$SQLITE3_LIBS $LIBS"
6306
 
    CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
6307
 
    for ac_func in sqlite3_open_v2
6308
 
do :
6309
 
  ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
6310
 
if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
6311
 
  cat >>confdefs.h <<_ACEOF
6312
 
#define HAVE_SQLITE3_OPEN_V2 1
6313
 
_ACEOF
6314
 
 
6315
 
fi
6316
 
done
6317
 
 
6318
 
 
6319
 
$as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
6320
 
 
6321
 
 
6322
 
 
6323
 
fi
6324
 
 
6325
 
LIBS=$LIBS_save
6326
 
CPPFLAGS=$CPPFLAGS_save
6327
 
 
6328
 
 
6329
 
  if test "x$have_sqlite3" != "xyes" &&
6330
 
     test "x$with_sqlite3_requested" = "xyes"; then
6331
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6332
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6333
 
as_fn_error "sqlite3 is requested but not found in the system.
6334
 
See \`config.log' for more details." "$LINENO" 5; }
6335
 
  fi
6336
 
fi
6337
 
 
6338
 
if test "x$with_gnutls" = "xyes"; then
6339
 
  # gnutls >= 2.8 doesn't have libgnutls-config anymore.
6340
 
  # First check the presence of libgnutls using pkg-config.
6341
 
 
6342
 
pkg_failed=no
6343
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
6344
 
$as_echo_n "checking for LIBGNUTLS... " >&6; }
6345
 
 
6346
 
if test -n "$LIBGNUTLS_CFLAGS"; then
6347
 
    pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
6348
 
 elif test -n "$PKG_CONFIG"; then
6349
 
    if test -n "$PKG_CONFIG" && \
6350
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
6351
 
  ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
6352
 
  ac_status=$?
6353
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354
 
  test $ac_status = 0; }; then
6355
 
  pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
6356
 
else
6357
 
  pkg_failed=yes
6358
 
fi
6359
 
 else
6360
 
    pkg_failed=untried
6361
 
fi
6362
 
if test -n "$LIBGNUTLS_LIBS"; then
6363
 
    pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
6364
 
 elif test -n "$PKG_CONFIG"; then
6365
 
    if test -n "$PKG_CONFIG" && \
6366
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
6367
 
  ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
6368
 
  ac_status=$?
6369
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370
 
  test $ac_status = 0; }; then
6371
 
  pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
6372
 
else
6373
 
  pkg_failed=yes
6374
 
fi
6375
 
 else
6376
 
    pkg_failed=untried
6377
 
fi
6378
 
 
6379
 
 
6380
 
 
6381
 
if test $pkg_failed = yes; then
6382
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383
 
$as_echo "no" >&6; }
6384
 
 
6385
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6386
 
        _pkg_short_errors_supported=yes
6387
 
else
6388
 
        _pkg_short_errors_supported=no
6389
 
fi
6390
 
        if test $_pkg_short_errors_supported = yes; then
6391
 
                LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnutls >= 1.2.9" 2>&1`
6392
 
        else
6393
 
                LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnutls >= 1.2.9" 2>&1`
6394
 
        fi
6395
 
        # Put the nasty error message in config.log where it belongs
6396
 
        echo "$LIBGNUTLS_PKG_ERRORS" >&5
6397
 
 
6398
 
        have_libgnutls=no
6399
 
elif test $pkg_failed = untried; then
6400
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401
 
$as_echo "no" >&6; }
6402
 
        have_libgnutls=no
6403
 
else
6404
 
        LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
6405
 
        LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
6406
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6407
 
$as_echo "yes" >&6; }
6408
 
        have_libgnutls=yes
6409
 
fi
6410
 
  # If no libgnutls found by pkg-config, fall back to old macro
6411
 
  if test "x$have_libgnutls" = "xno"; then
6412
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
6413
 
$as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
6414
 
 
6415
 
# Check whether --with-libgnutls-prefix was given.
6416
 
if test "${with_libgnutls_prefix+set}" = set; then :
6417
 
  withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
6418
 
else
6419
 
  libgnutls_config_prefix=""
6420
 
fi
6421
 
 
6422
 
 
6423
 
  if test x$libgnutls_config_prefix != x ; then
6424
 
     if test x${LIBGNUTLS_CONFIG+set} != xset ; then
6425
 
        LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
6426
 
     fi
6427
 
  fi
6428
 
 
6429
 
  # Extract the first word of "libgnutls-config", so it can be a program name with args.
6430
 
set dummy libgnutls-config; ac_word=$2
6431
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432
 
$as_echo_n "checking for $ac_word... " >&6; }
6433
 
if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
6434
 
  $as_echo_n "(cached) " >&6
6435
 
else
6436
 
  case $LIBGNUTLS_CONFIG in
6437
 
  [\\/]* | ?:[\\/]*)
6438
 
  ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
6439
 
  ;;
6440
 
  *)
6441
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442
 
for as_dir in $PATH
6443
 
do
6444
 
  IFS=$as_save_IFS
6445
 
  test -z "$as_dir" && as_dir=.
6446
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6447
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448
 
    ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6449
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450
 
    break 2
6451
 
  fi
6452
 
done
6453
 
  done
6454
 
IFS=$as_save_IFS
6455
 
 
6456
 
  test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
6457
 
  ;;
6458
 
esac
6459
 
fi
6460
 
LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
6461
 
if test -n "$LIBGNUTLS_CONFIG"; then
6462
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
6463
 
$as_echo "$LIBGNUTLS_CONFIG" >&6; }
6464
 
else
6465
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466
 
$as_echo "no" >&6; }
6467
 
fi
6468
 
 
6469
 
 
6470
 
  min_libgnutls_version=1.2.9
6471
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
6472
 
$as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
6473
 
  no_libgnutls=""
6474
 
  if test "$LIBGNUTLS_CONFIG" = "no" ; then
6475
 
    no_libgnutls=yes
6476
 
  else
6477
 
    LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
6478
 
    LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
6479
 
    libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
6480
 
 
6481
 
 
6482
 
      ac_save_CFLAGS="$CFLAGS"
6483
 
      ac_save_LIBS="$LIBS"
6484
 
      CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
6485
 
      LIBS="$LIBS $LIBGNUTLS_LIBS"
6486
 
      rm -f conf.libgnutlstest
6487
 
      if test "$cross_compiling" = yes; then :
6488
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
6489
 
else
6490
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491
 
/* end confdefs.h.  */
6492
 
 
6493
 
#include <stdio.h>
6494
 
#include <stdlib.h>
6495
 
#include <string.h>
6496
 
#include <gnutls/gnutls.h>
6497
 
 
6498
 
int
6499
 
main ()
6500
 
{
6501
 
    system ("touch conf.libgnutlstest");
6502
 
 
6503
 
    if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
6504
 
    {
6505
 
      printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
6506
 
             "$libgnutls_config_version", gnutls_check_version(NULL) );
6507
 
      printf("*** was found! If libgnutls-config was correct, then it is best\n");
6508
 
      printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
6509
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6510
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6511
 
      printf("*** required on your system.\n");
6512
 
      printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
6513
 
      printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
6514
 
      printf("*** before re-running configure\n");
6515
 
    }
6516
 
    else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
6517
 
    {
6518
 
      printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
6519
 
      printf("*** library (version %s)\n", gnutls_check_version(NULL) );
6520
 
    }
6521
 
    else
6522
 
    {
6523
 
      if ( gnutls_check_version( "$min_libgnutls_version" ) )
6524
 
      {
6525
 
        return 0;
6526
 
      }
6527
 
     else
6528
 
      {
6529
 
        printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
6530
 
                gnutls_check_version(NULL) );
6531
 
        printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
6532
 
               "$min_libgnutls_version" );
6533
 
        printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
6534
 
        printf("*** \n");
6535
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
6536
 
        printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
6537
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
6538
 
        printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
6539
 
        printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
6540
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6541
 
        printf("*** so that the correct libraries are found at run-time))\n");
6542
 
      }
6543
 
    }
6544
 
  return 1;
6545
 
}
6546
 
 
6547
 
_ACEOF
6548
 
if ac_fn_cxx_try_run "$LINENO"; then :
6549
 
 
6550
 
else
6551
 
  no_libgnutls=yes
6552
 
fi
6553
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6554
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6555
 
fi
6556
 
 
6557
 
       CFLAGS="$ac_save_CFLAGS"
6558
 
       LIBS="$ac_save_LIBS"
6559
 
  fi
6560
 
 
6561
 
  if test "x$no_libgnutls" = x ; then
6562
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563
 
$as_echo "yes" >&6; }
6564
 
     have_libgnutls=yes
6565
 
  else
6566
 
     if test -f conf.libgnutlstest ; then
6567
 
        :
6568
 
     else
6569
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570
 
$as_echo "no" >&6; }
6571
 
     fi
6572
 
     if test "$LIBGNUTLS_CONFIG" = "no" ; then
6573
 
       echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
6574
 
       echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
6575
 
       echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
6576
 
       echo "*** full path to libgnutls-config."
6577
 
     else
6578
 
       if test -f conf.libgnutlstest ; then
6579
 
        :
6580
 
       else
6581
 
          echo "*** Could not run libgnutls test program, checking why..."
6582
 
          CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
6583
 
          LIBS="$LIBS $LIBGNUTLS_LIBS"
6584
 
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585
 
/* end confdefs.h.  */
6586
 
 
6587
 
#include <stdio.h>
6588
 
#include <stdlib.h>
6589
 
#include <string.h>
6590
 
#include <gnutls/gnutls.h>
6591
 
 
6592
 
int
6593
 
main ()
6594
 
{
6595
 
 return !!gnutls_check_version(NULL);
6596
 
  ;
6597
 
  return 0;
6598
 
}
6599
 
_ACEOF
6600
 
if ac_fn_cxx_try_link "$LINENO"; then :
6601
 
   echo "*** The test program compiled, but did not run. This usually means"
6602
 
          echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
6603
 
          echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
6604
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6605
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
6606
 
          echo "*** is required on your system"
6607
 
          echo "***"
6608
 
          echo "*** If you have an old version installed, it is best to remove it, although"
6609
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6610
 
          echo "***"
6611
 
else
6612
 
   echo "*** The test program failed to compile or link. See the file config.log for the"
6613
 
          echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
6614
 
          echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
6615
 
          echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
6616
 
fi
6617
 
rm -f core conftest.err conftest.$ac_objext \
6618
 
    conftest$ac_exeext conftest.$ac_ext
6619
 
          CFLAGS="$ac_save_CFLAGS"
6620
 
          LIBS="$ac_save_LIBS"
6621
 
       fi
6622
 
     fi
6623
 
     LIBGNUTLS_CFLAGS=""
6624
 
     LIBGNUTLS_LIBS=""
6625
 
     :
6626
 
  fi
6627
 
  rm -f conf.libgnutlstest
6628
 
 
6629
 
 
6630
 
 
6631
 
  fi
6632
 
  if test "x$have_libgnutls" = "xyes"; then
6633
 
 
6634
 
$as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
6635
 
 
6636
 
  elif test "x$with_gnutls_requested" = "xyes"; then
6637
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6638
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6639
 
as_fn_error "gnutls is requested but not found in the system.
6640
 
See \`config.log' for more details." "$LINENO" 5; }
6641
 
  fi
6642
 
 
6643
 
 
6644
 
fi
6645
 
 
6646
 
if test "x$have_libgnutls" = "xyes"; then
6647
 
 
6648
 
# Check whether --with-libgcrypt-prefix was given.
6649
 
if test "${with_libgcrypt_prefix+set}" = set; then :
6650
 
  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
6651
 
else
6652
 
  libgcrypt_config_prefix=""
6653
 
fi
6654
 
 
6655
 
  if test x$libgcrypt_config_prefix != x ; then
6656
 
     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
6657
 
        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
6658
 
     fi
6659
 
  fi
6660
 
 
6661
 
  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
6662
 
set dummy libgcrypt-config; ac_word=$2
6663
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664
 
$as_echo_n "checking for $ac_word... " >&6; }
6665
 
if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
6666
 
  $as_echo_n "(cached) " >&6
6667
 
else
6668
 
  case $LIBGCRYPT_CONFIG in
6669
 
  [\\/]* | ?:[\\/]*)
6670
 
  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
6671
 
  ;;
6672
 
  *)
6673
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674
 
for as_dir in $PATH
6675
 
do
6676
 
  IFS=$as_save_IFS
6677
 
  test -z "$as_dir" && as_dir=.
6678
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6679
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680
 
    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6681
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682
 
    break 2
6683
 
  fi
6684
 
done
6685
 
  done
6686
 
IFS=$as_save_IFS
6687
 
 
6688
 
  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
6689
 
  ;;
6690
 
esac
6691
 
fi
6692
 
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
6693
 
if test -n "$LIBGCRYPT_CONFIG"; then
6694
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
6695
 
$as_echo "$LIBGCRYPT_CONFIG" >&6; }
6696
 
else
6697
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698
 
$as_echo "no" >&6; }
6699
 
fi
6700
 
 
6701
 
 
6702
 
  tmp=1.2.2
6703
 
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
6704
 
     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
6705
 
     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
6706
 
  else
6707
 
     req_libgcrypt_api=0
6708
 
     min_libgcrypt_version="$tmp"
6709
 
  fi
6710
 
 
6711
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
6712
 
$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
6713
 
  ok=no
6714
 
  if test "$LIBGCRYPT_CONFIG" != "no" ; then
6715
 
    req_major=`echo $min_libgcrypt_version | \
6716
 
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
6717
 
    req_minor=`echo $min_libgcrypt_version | \
6718
 
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
6719
 
    req_micro=`echo $min_libgcrypt_version | \
6720
 
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
6721
 
    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
6722
 
    major=`echo $libgcrypt_config_version | \
6723
 
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
6724
 
    minor=`echo $libgcrypt_config_version | \
6725
 
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
6726
 
    micro=`echo $libgcrypt_config_version | \
6727
 
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
6728
 
    if test "$major" -gt "$req_major"; then
6729
 
        ok=yes
6730
 
    else
6731
 
        if test "$major" -eq "$req_major"; then
6732
 
            if test "$minor" -gt "$req_minor"; then
6733
 
               ok=yes
6734
 
            else
6735
 
               if test "$minor" -eq "$req_minor"; then
6736
 
                   if test "$micro" -ge "$req_micro"; then
6737
 
                     ok=yes
6738
 
                   fi
6739
 
               fi
6740
 
            fi
6741
 
        fi
6742
 
    fi
6743
 
  fi
6744
 
  if test $ok = yes; then
6745
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
6746
 
$as_echo "yes ($libgcrypt_config_version)" >&6; }
6747
 
  else
6748
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749
 
$as_echo "no" >&6; }
6750
 
  fi
6751
 
  if test $ok = yes; then
6752
 
     # If we have a recent libgcrypt, we should also check that the
6753
 
     # API is compatible
6754
 
     if test "$req_libgcrypt_api" -gt 0 ; then
6755
 
        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
6756
 
        if test "$tmp" -gt 0 ; then
6757
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
6758
 
$as_echo_n "checking LIBGCRYPT API version... " >&6; }
6759
 
           if test "$req_libgcrypt_api" -eq "$tmp" ; then
6760
 
             { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
6761
 
$as_echo "okay" >&6; }
6762
 
           else
6763
 
             ok=no
6764
 
             { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
6765
 
$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
6766
 
           fi
6767
 
        fi
6768
 
     fi
6769
 
  fi
6770
 
  if test $ok = yes; then
6771
 
    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
6772
 
    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
6773
 
    have_libgcrypt=yes
6774
 
  else
6775
 
    LIBGCRYPT_CFLAGS=""
6776
 
    LIBGCRYPT_LIBS=""
6777
 
    :
6778
 
  fi
6779
 
 
6780
 
 
6781
 
 
6782
 
  if test "x$have_libgcrypt" = "xyes"; then
6783
 
 
6784
 
$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
6785
 
 
6786
 
  fi
6787
 
fi
6788
 
 
6789
 
if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
6790
 
 
6791
 
 
6792
 
# Check whether --with-openssl-prefix was given.
6793
 
if test "${with_openssl_prefix+set}" = set; then :
6794
 
  withval=$with_openssl_prefix; openssl_prefix=$withval
6795
 
else
6796
 
  openssl_prefix=""
6797
 
fi
6798
 
 
6799
 
 
6800
 
if test "x$openssl_prefix" = "x"; then
6801
 
  openssl_prefix="/usr/local"
6802
 
fi
6803
 
 
6804
 
LIBS_save=$LIBS
6805
 
CPPFLAGS_save=$CPPFLAGS
6806
 
 
6807
 
PKG_CONFIG="$openssl_prefix/bin/pkg-config"
6808
 
if test -x $PKG_CONFIG; then
6809
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
6810
 
$as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
6811
 
  $PKG_CONFIG --exists openssl
6812
 
  if test "$?" = "0"; then
6813
 
    # Use pkg-config to detect LIBS and CFLAGS
6814
 
    OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
6815
 
    OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
6816
 
 
6817
 
    LIBS="$OPENSSL_LIBS $LIBS"
6818
 
    CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
6819
 
    have_openssl=yes
6820
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6821
 
$as_echo "yes" >&6; }
6822
 
  else
6823
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824
 
$as_echo "no" >&6; }
6825
 
  fi
6826
 
fi
6827
 
if test "x$have_openssl" != "xyes"; then
6828
 
  openssl_prefix_lib=$openssl_prefix/lib
6829
 
  openssl_prefix_include=$openssl_prefix/include
6830
 
 
6831
 
  LIBS="-L$openssl_prefix_lib $LIBS"
6832
 
  CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
6833
 
 
6834
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
6835
 
$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
6836
 
if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
6837
 
  $as_echo_n "(cached) " >&6
6838
 
else
6839
 
  ac_check_lib_save_LIBS=$LIBS
6840
 
LIBS="-lssl  $LIBS"
6841
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842
 
/* end confdefs.h.  */
6843
 
 
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.  */
6847
 
#ifdef __cplusplus
6848
 
extern "C"
6849
 
#endif
6850
 
char SSL_library_init ();
6851
 
int
6852
 
main ()
6853
 
{
6854
 
return SSL_library_init ();
6855
 
  ;
6856
 
  return 0;
6857
 
}
6858
 
_ACEOF
6859
 
if ac_fn_cxx_try_link "$LINENO"; then :
6860
 
  ac_cv_lib_ssl_SSL_library_init=yes
6861
 
else
6862
 
  ac_cv_lib_ssl_SSL_library_init=no
6863
 
fi
6864
 
rm -f core conftest.err conftest.$ac_objext \
6865
 
    conftest$ac_exeext conftest.$ac_ext
6866
 
LIBS=$ac_check_lib_save_LIBS
6867
 
fi
6868
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6869
 
$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
6870
 
if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
6871
 
  have_openssl=yes LIBS="-lssl $LIBS"
6872
 
fi
6873
 
 
6874
 
  if test "x$have_openssl" = "xyes"; then
6875
 
    have_openssl=no
6876
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
6877
 
$as_echo_n "checking for main in -lcrypto... " >&6; }
6878
 
if test "${ac_cv_lib_crypto_main+set}" = set; then :
6879
 
  $as_echo_n "(cached) " >&6
6880
 
else
6881
 
  ac_check_lib_save_LIBS=$LIBS
6882
 
LIBS="-lcrypto  $LIBS"
6883
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884
 
/* end confdefs.h.  */
6885
 
 
6886
 
 
6887
 
int
6888
 
main ()
6889
 
{
6890
 
return main ();
6891
 
  ;
6892
 
  return 0;
6893
 
}
6894
 
_ACEOF
6895
 
if ac_fn_cxx_try_link "$LINENO"; then :
6896
 
  ac_cv_lib_crypto_main=yes
6897
 
else
6898
 
  ac_cv_lib_crypto_main=no
6899
 
fi
6900
 
rm -f core conftest.err conftest.$ac_objext \
6901
 
    conftest$ac_exeext conftest.$ac_ext
6902
 
LIBS=$ac_check_lib_save_LIBS
6903
 
fi
6904
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
6905
 
$as_echo "$ac_cv_lib_crypto_main" >&6; }
6906
 
if test "x$ac_cv_lib_crypto_main" = x""yes; then :
6907
 
  have_openssl=yes; LIBS="-lcrypto $LIBS"
6908
 
fi
6909
 
 
6910
 
    if test "x$have_openssl" = "xyes"; then
6911
 
      OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
6912
 
      OPENSSL_CFLAGS="-I$openssl_prefix_include"
6913
 
    fi
6914
 
  fi
6915
 
fi
6916
 
 
6917
 
if test "x$have_openssl" = "xyes"; then
6918
 
 
6919
 
$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
6920
 
 
6921
 
  # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
6922
 
  for ac_func in EVP_DigestInit_ex
6923
 
do :
6924
 
  ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
6925
 
if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
6926
 
  cat >>confdefs.h <<_ACEOF
6927
 
#define HAVE_EVP_DIGESTINIT_EX 1
6928
 
_ACEOF
6929
 
 have_digestinit_ex=yes
6930
 
fi
6931
 
done
6932
 
 
6933
 
  if test "x$have_digestinit_ex" = "x"; then
6934
 
 
6935
 
$as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
6936
 
 
6937
 
  fi
6938
 
 
6939
 
 
6940
 
  # search for sha256 support
6941
 
  for ac_func in EVP_sha256
6942
 
do :
6943
 
  ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
6944
 
if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
6945
 
  cat >>confdefs.h <<_ACEOF
6946
 
#define HAVE_EVP_SHA256 1
6947
 
_ACEOF
6948
 
 
6949
 
fi
6950
 
done
6951
 
 
6952
 
fi
6953
 
 
6954
 
LIBS=$LIBS_save
6955
 
CPPFLAGS=$CPPFLAGS_save
6956
 
 
6957
 
  if test "x$have_openssl" != "xyes" &&
6958
 
     test "x$with_openssl_requested" = "xyes"; then
6959
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6960
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6961
 
as_fn_error "openssl is requested but not found in the system.
6962
 
See \`config.log' for more details." "$LINENO" 5; }
6963
 
  fi
6964
 
fi
6965
 
 
6966
 
if test "x$with_libcares" = "xyes"; then
6967
 
 
6968
 
 
6969
 
# Check whether --with-libcares-prefix was given.
6970
 
if test "${with_libcares_prefix+set}" = set; then :
6971
 
  withval=$with_libcares_prefix; libcares_prefix=$withval
6972
 
else
6973
 
  libcares_prefix=""
6974
 
fi
6975
 
 
6976
 
 
6977
 
if test "x$libcares_prefix" = "x"; then
6978
 
  libcares_prefix="/usr"
6979
 
fi
6980
 
 
6981
 
libcares_prefix_lib=$libcares_prefix/lib
6982
 
libcares_prefix_include=$libcares_prefix/include
6983
 
 
6984
 
LIBS_save=$LIBS
6985
 
CPPFLAGS_save=$CPPFLAGS
6986
 
 
6987
 
LIBS="-L$libcares_prefix_lib $LIBS"
6988
 
CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
6989
 
 
6990
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
6991
 
$as_echo_n "checking for ares_init in -lcares... " >&6; }
6992
 
if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
6993
 
  $as_echo_n "(cached) " >&6
6994
 
else
6995
 
  ac_check_lib_save_LIBS=$LIBS
6996
 
LIBS="-lcares  $LIBS"
6997
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998
 
/* end confdefs.h.  */
6999
 
 
7000
 
/* Override any GCC internal prototype to avoid an error.
7001
 
   Use char because int might match the return type of a GCC
7002
 
   builtin and then its argument prototype would still apply.  */
7003
 
#ifdef __cplusplus
7004
 
extern "C"
7005
 
#endif
7006
 
char ares_init ();
7007
 
int
7008
 
main ()
7009
 
{
7010
 
return ares_init ();
7011
 
  ;
7012
 
  return 0;
7013
 
}
7014
 
_ACEOF
7015
 
if ac_fn_cxx_try_link "$LINENO"; then :
7016
 
  ac_cv_lib_cares_ares_init=yes
7017
 
else
7018
 
  ac_cv_lib_cares_ares_init=no
7019
 
fi
7020
 
rm -f core conftest.err conftest.$ac_objext \
7021
 
    conftest$ac_exeext conftest.$ac_ext
7022
 
LIBS=$ac_check_lib_save_LIBS
7023
 
fi
7024
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
7025
 
$as_echo "$ac_cv_lib_cares_ares_init" >&6; }
7026
 
if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
7027
 
  have_libcares=yes
7028
 
fi
7029
 
 
7030
 
 
7031
 
if test "x$have_libcares" != "xyes"; then
7032
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
7033
 
$as_echo_n "checking for ares_init in -lcares... " >&6; }
7034
 
if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
7035
 
  $as_echo_n "(cached) " >&6
7036
 
else
7037
 
  ac_check_lib_save_LIBS=$LIBS
7038
 
LIBS="-lcares -lrt $LIBS"
7039
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040
 
/* end confdefs.h.  */
7041
 
 
7042
 
/* Override any GCC internal prototype to avoid an error.
7043
 
   Use char because int might match the return type of a GCC
7044
 
   builtin and then its argument prototype would still apply.  */
7045
 
#ifdef __cplusplus
7046
 
extern "C"
7047
 
#endif
7048
 
char ares_init ();
7049
 
int
7050
 
main ()
7051
 
{
7052
 
return ares_init ();
7053
 
  ;
7054
 
  return 0;
7055
 
}
7056
 
_ACEOF
7057
 
if ac_fn_cxx_try_link "$LINENO"; then :
7058
 
  ac_cv_lib_cares_ares_init=yes
7059
 
else
7060
 
  ac_cv_lib_cares_ares_init=no
7061
 
fi
7062
 
rm -f core conftest.err conftest.$ac_objext \
7063
 
    conftest$ac_exeext conftest.$ac_ext
7064
 
LIBS=$ac_check_lib_save_LIBS
7065
 
fi
7066
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
7067
 
$as_echo "$ac_cv_lib_cares_ares_init" >&6; }
7068
 
if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
7069
 
  have_libcares=yes need_librt=yes
7070
 
fi
7071
 
 
7072
 
fi
7073
 
 
7074
 
if test "x$have_libcares" = "xyes"; then
7075
 
 
7076
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
7077
 
$as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
7078
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079
 
/* end confdefs.h.  */
7080
 
 
7081
 
    #include <ares.h>
7082
 
 
7083
 
    void callback(void* arg, int status, int timeouts, struct hostent* host);
7084
 
 
7085
 
int
7086
 
main ()
7087
 
{
7088
 
 
7089
 
    ares_channel channel;
7090
 
    ares_gethostbyname(channel, "foo", 0, callback, 0);
7091
 
 
7092
 
  ;
7093
 
  return 0;
7094
 
}
7095
 
_ACEOF
7096
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7097
 
  have_libcares1_5=yes
7098
 
else
7099
 
  have_libcares1_5=no
7100
 
fi
7101
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
7103
 
$as_echo "$have_libcares1_5" >&6; }
7104
 
 
7105
 
    if test "x$have_libcares1_5" = "xyes"; then
7106
 
 
7107
 
$as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
7108
 
 
7109
 
    fi
7110
 
 
7111
 
 
7112
 
$as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
7113
 
 
7114
 
    LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
7115
 
    if test "x$need_librt" = "xyes"; then
7116
 
      LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
7117
 
    fi
7118
 
    LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
7119
 
 
7120
 
 
7121
 
fi
7122
 
 
7123
 
LIBS=$LIBS_save
7124
 
CPPFLAGS=$CPPFLAGS_save
7125
 
 
7126
 
 
7127
 
  if test "x$have_libcares" != "xyes" &&
7128
 
     test "x$with_libcares_requested" = "xyes"; then
7129
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7130
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7131
 
as_fn_error "libcares is requested but not found in the system.
7132
 
See \`config.log' for more details." "$LINENO" 5; }
7133
 
  fi
7134
 
fi
7135
 
 
7136
 
# Check availability of libz
7137
 
if test "x$with_libz" = "xyes"; then
7138
 
 
7139
 
 
7140
 
# Check whether --with-libz-prefix was given.
7141
 
if test "${with_libz_prefix+set}" = set; then :
7142
 
  withval=$with_libz_prefix; libz_prefix=$withval
7143
 
else
7144
 
  libz_prefix=""
7145
 
fi
7146
 
 
7147
 
 
7148
 
if test "x$libz_prefix" = "x"; then
7149
 
  libz_prefix="/usr"
7150
 
fi
7151
 
 
7152
 
libz_prefix_lib=$libz_prefix/lib
7153
 
libz_prefix_include=$libz_prefix/include
7154
 
 
7155
 
LIBS_save=$LIBS
7156
 
CPPFLAGS_save=$CPPFLAGS
7157
 
 
7158
 
LIBS="-L$libz_prefix_lib $LIBS"
7159
 
CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
7160
 
 
7161
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7162
 
$as_echo_n "checking for zlibVersion in -lz... " >&6; }
7163
 
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
7164
 
  $as_echo_n "(cached) " >&6
7165
 
else
7166
 
  ac_check_lib_save_LIBS=$LIBS
7167
 
LIBS="-lz  $LIBS"
7168
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169
 
/* end confdefs.h.  */
7170
 
 
7171
 
/* Override any GCC internal prototype to avoid an error.
7172
 
   Use char because int might match the return type of a GCC
7173
 
   builtin and then its argument prototype would still apply.  */
7174
 
#ifdef __cplusplus
7175
 
extern "C"
7176
 
#endif
7177
 
char zlibVersion ();
7178
 
int
7179
 
main ()
7180
 
{
7181
 
return zlibVersion ();
7182
 
  ;
7183
 
  return 0;
7184
 
}
7185
 
_ACEOF
7186
 
if ac_fn_cxx_try_link "$LINENO"; then :
7187
 
  ac_cv_lib_z_zlibVersion=yes
7188
 
else
7189
 
  ac_cv_lib_z_zlibVersion=no
7190
 
fi
7191
 
rm -f core conftest.err conftest.$ac_objext \
7192
 
    conftest$ac_exeext conftest.$ac_ext
7193
 
LIBS=$ac_check_lib_save_LIBS
7194
 
fi
7195
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7196
 
$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7197
 
if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
7198
 
  have_libz=yes
7199
 
fi
7200
 
 
7201
 
if test "x$have_libz" = "xyes"; then
7202
 
 
7203
 
$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7204
 
 
7205
 
    LIBZ_LIBS="-L$libz_prefix_lib -lz"
7206
 
    LIBZ_CPPFLAGS="-I$libz_prefix_include"
7207
 
 
7208
 
 
7209
 
fi
7210
 
 
7211
 
LIBS=$LIBS_save
7212
 
CPPFLAGS=$CPPFLAGS_save
7213
 
 
7214
 
 
7215
 
  if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
7216
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7217
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7218
 
as_fn_error "libz is requested but not found in the system.
7219
 
See \`config.log' for more details." "$LINENO" 5; }
7220
 
  fi
7221
 
fi
7222
 
 
7223
 
# Define variables based on the result of the checks for libraries.
7224
 
if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
7225
 
 
7226
 
$as_echo "#define ENABLE_SSL 1" >>confdefs.h
7227
 
 
7228
 
   if true; then
7229
 
  ENABLE_SSL_TRUE=
7230
 
  ENABLE_SSL_FALSE='#'
7231
 
else
7232
 
  ENABLE_SSL_TRUE='#'
7233
 
  ENABLE_SSL_FALSE=
7234
 
fi
7235
 
 
7236
 
 
7237
 
else
7238
 
   if false; then
7239
 
  ENABLE_SSL_TRUE=
7240
 
  ENABLE_SSL_FALSE='#'
7241
 
else
7242
 
  ENABLE_SSL_TRUE='#'
7243
 
  ENABLE_SSL_FALSE=
7244
 
fi
7245
 
 
7246
 
fi
7247
 
 
7248
 
 if  test "x$have_libgnutls" = "xyes" ; then
7249
 
  HAVE_LIBGNUTLS_TRUE=
7250
 
  HAVE_LIBGNUTLS_FALSE='#'
7251
 
else
7252
 
  HAVE_LIBGNUTLS_TRUE='#'
7253
 
  HAVE_LIBGNUTLS_FALSE=
7254
 
fi
7255
 
 
7256
 
 if  test "x$have_openssl" = "xyes" ; then
7257
 
  HAVE_LIBSSL_TRUE=
7258
 
  HAVE_LIBSSL_FALSE='#'
7259
 
else
7260
 
  HAVE_LIBSSL_TRUE='#'
7261
 
  HAVE_LIBSSL_FALSE=
7262
 
fi
7263
 
 
7264
 
 
7265
 
if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
7266
 
 
7267
 
$as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
7268
 
 
7269
 
   if true; then
7270
 
  ENABLE_MESSAGE_DIGEST_TRUE=
7271
 
  ENABLE_MESSAGE_DIGEST_FALSE='#'
7272
 
else
7273
 
  ENABLE_MESSAGE_DIGEST_TRUE='#'
7274
 
  ENABLE_MESSAGE_DIGEST_FALSE=
7275
 
fi
7276
 
 
7277
 
  enable_message_digest=yes
7278
 
else
7279
 
   if false; then
7280
 
  ENABLE_MESSAGE_DIGEST_TRUE=
7281
 
  ENABLE_MESSAGE_DIGEST_FALSE='#'
7282
 
else
7283
 
  ENABLE_MESSAGE_DIGEST_TRUE='#'
7284
 
  ENABLE_MESSAGE_DIGEST_FALSE=
7285
 
fi
7286
 
 
7287
 
fi
7288
 
 
7289
 
if test "x$enable_bittorrent" = "xyes" &&
7290
 
   test "x$enable_message_digest" = "xyes"; then
7291
 
 
7292
 
$as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
7293
 
 
7294
 
   if true; then
7295
 
  ENABLE_BITTORRENT_TRUE=
7296
 
  ENABLE_BITTORRENT_FALSE='#'
7297
 
else
7298
 
  ENABLE_BITTORRENT_TRUE='#'
7299
 
  ENABLE_BITTORRENT_FALSE=
7300
 
fi
7301
 
 
7302
 
else
7303
 
  if test "x$enable_bittorrent_requested" = "xyes"; then
7304
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7305
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7306
 
as_fn_error "bittorrent is requested but cannot be enabled with current\
7307
 
 configuration.\
7308
 
 Make sure that dependent libraries are installed and configure script options\
7309
 
 are correct.
7310
 
See \`config.log' for more details." "$LINENO" 5; }
7311
 
  fi
7312
 
  enable_bittorrent=no
7313
 
   if false; then
7314
 
  ENABLE_BITTORRENT_TRUE=
7315
 
  ENABLE_BITTORRENT_FALSE='#'
7316
 
else
7317
 
  ENABLE_BITTORRENT_TRUE='#'
7318
 
  ENABLE_BITTORRENT_FALSE=
7319
 
fi
7320
 
 
7321
 
fi
7322
 
 
7323
 
if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
7324
 
   test "x$enable_metalink" = "xyes"; then
7325
 
 
7326
 
$as_echo "#define ENABLE_METALINK 1" >>confdefs.h
7327
 
 
7328
 
   if true; then
7329
 
  ENABLE_METALINK_TRUE=
7330
 
  ENABLE_METALINK_FALSE='#'
7331
 
else
7332
 
  ENABLE_METALINK_TRUE='#'
7333
 
  ENABLE_METALINK_FALSE=
7334
 
fi
7335
 
 
7336
 
else
7337
 
  if test "x$enable_metalink_requested" = "xyes"; then
7338
 
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7339
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7340
 
as_fn_error "metalink is requested but cannot be enabled with current\
7341
 
 configuration.\
7342
 
 Make sure that dependent libraries are installed and configure script options\
7343
 
 are correct.
7344
 
See \`config.log' for more details." "$LINENO" 5; }
7345
 
  fi
7346
 
  enable_metalink=no
7347
 
   if false; then
7348
 
  ENABLE_METALINK_TRUE=
7349
 
  ENABLE_METALINK_FALSE='#'
7350
 
else
7351
 
  ENABLE_METALINK_TRUE='#'
7352
 
  ENABLE_METALINK_FALSE=
7353
 
fi
7354
 
 
7355
 
fi
7356
 
 
7357
 
 if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
7358
 
  ENABLE_METALINK_LIBXML2_TRUE=
7359
 
  ENABLE_METALINK_LIBXML2_FALSE='#'
7360
 
else
7361
 
  ENABLE_METALINK_LIBXML2_TRUE='#'
7362
 
  ENABLE_METALINK_LIBXML2_FALSE=
7363
 
fi
7364
 
 
7365
 
 if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
7366
 
  ENABLE_METALINK_LIBEXPAT_TRUE=
7367
 
  ENABLE_METALINK_LIBEXPAT_FALSE='#'
7368
 
else
7369
 
  ENABLE_METALINK_LIBEXPAT_TRUE='#'
7370
 
  ENABLE_METALINK_LIBEXPAT_FALSE=
7371
 
fi
7372
 
 
7373
 
 
7374
 
if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
7375
 
  enable_xml_rpc=yes
7376
 
fi
7377
 
 
7378
 
if test "x$enable_xml_rpc" = "xyes"; then
7379
 
 
7380
 
$as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
7381
 
 
7382
 
fi
7383
 
 if test "x$enable_xml_rpc" = "xyes"; then
7384
 
  ENABLE_XML_RPC_TRUE=
7385
 
  ENABLE_XML_RPC_FALSE='#'
7386
 
else
7387
 
  ENABLE_XML_RPC_TRUE='#'
7388
 
  ENABLE_XML_RPC_FALSE=
7389
 
fi
7390
 
 
7391
 
 
7392
 
 if test "x$have_libxml2" = "xyes"; then
7393
 
  HAVE_LIBXML2_TRUE=
7394
 
  HAVE_LIBXML2_FALSE='#'
7395
 
else
7396
 
  HAVE_LIBXML2_TRUE='#'
7397
 
  HAVE_LIBXML2_FALSE=
7398
 
fi
7399
 
 
7400
 
 if test "x$have_libexpat" = "xyes"; then
7401
 
  HAVE_LIBEXPAT_TRUE=
7402
 
  HAVE_LIBEXPAT_FALSE='#'
7403
 
else
7404
 
  HAVE_LIBEXPAT_TRUE='#'
7405
 
  HAVE_LIBEXPAT_FALSE=
7406
 
fi
7407
 
 
7408
 
 
7409
 
if test "x$have_libcares" = "xyes"; then
7410
 
 
7411
 
$as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
7412
 
 
7413
 
   if true; then
7414
 
  ENABLE_ASYNC_DNS_TRUE=
7415
 
  ENABLE_ASYNC_DNS_FALSE='#'
7416
 
else
7417
 
  ENABLE_ASYNC_DNS_TRUE='#'
7418
 
  ENABLE_ASYNC_DNS_FALSE=
7419
 
fi
7420
 
 
7421
 
else
7422
 
   if false; then
7423
 
  ENABLE_ASYNC_DNS_TRUE=
7424
 
  ENABLE_ASYNC_DNS_FALSE='#'
7425
 
else
7426
 
  ENABLE_ASYNC_DNS_TRUE='#'
7427
 
  ENABLE_ASYNC_DNS_FALSE=
7428
 
fi
7429
 
 
7430
 
fi
7431
 
 
7432
 
# Set conditional for libz
7433
 
 if test "x$have_libz" = "xyes"; then
7434
 
  HAVE_LIBZ_TRUE=
7435
 
  HAVE_LIBZ_FALSE='#'
7436
 
else
7437
 
  HAVE_LIBZ_TRUE='#'
7438
 
  HAVE_LIBZ_FALSE=
7439
 
fi
7440
 
 
7441
 
 
7442
 
# Set conditional for sqlite3
7443
 
 if test "x$have_sqlite3" = "xyes"; then
7444
 
  HAVE_SQLITE3_TRUE=
7445
 
  HAVE_SQLITE3_FALSE='#'
7446
 
else
7447
 
  HAVE_SQLITE3_TRUE='#'
7448
 
  HAVE_SQLITE3_FALSE=
7449
 
fi
7450
 
 
7451
 
 
7452
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7453
 
$as_echo_n "checking for library containing clock_gettime... " >&6; }
7454
 
if test "${ac_cv_search_clock_gettime+set}" = set; then :
7455
 
  $as_echo_n "(cached) " >&6
7456
 
else
7457
 
  ac_func_search_save_LIBS=$LIBS
7458
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459
 
/* end confdefs.h.  */
7460
 
 
7461
 
/* Override any GCC internal prototype to avoid an error.
7462
 
   Use char because int might match the return type of a GCC
7463
 
   builtin and then its argument prototype would still apply.  */
7464
 
#ifdef __cplusplus
7465
 
extern "C"
7466
 
#endif
7467
 
char clock_gettime ();
7468
 
int
7469
 
main ()
7470
 
{
7471
 
return clock_gettime ();
7472
 
  ;
7473
 
  return 0;
7474
 
}
7475
 
_ACEOF
7476
 
for ac_lib in '' rt; do
7477
 
  if test -z "$ac_lib"; then
7478
 
    ac_res="none required"
7479
 
  else
7480
 
    ac_res=-l$ac_lib
7481
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7482
 
  fi
7483
 
  if ac_fn_cxx_try_link "$LINENO"; then :
7484
 
  ac_cv_search_clock_gettime=$ac_res
7485
 
fi
7486
 
rm -f core conftest.err conftest.$ac_objext \
7487
 
    conftest$ac_exeext
7488
 
  if test "${ac_cv_search_clock_gettime+set}" = set; then :
7489
 
  break
7490
 
fi
7491
 
done
7492
 
if test "${ac_cv_search_clock_gettime+set}" = set; then :
7493
 
 
7494
 
else
7495
 
  ac_cv_search_clock_gettime=no
7496
 
fi
7497
 
rm conftest.$ac_ext
7498
 
LIBS=$ac_func_search_save_LIBS
7499
 
fi
7500
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7501
 
$as_echo "$ac_cv_search_clock_gettime" >&6; }
7502
 
ac_res=$ac_cv_search_clock_gettime
7503
 
if test "$ac_res" != no; then :
7504
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7505
 
 
7506
 
fi
7507
 
 
7508
 
 
7509
 
case "$target" in
7510
 
        *solaris*)
7511
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7512
 
$as_echo_n "checking for library containing getaddrinfo... " >&6; }
7513
 
if test "${ac_cv_search_getaddrinfo+set}" = set; then :
7514
 
  $as_echo_n "(cached) " >&6
7515
 
else
7516
 
  ac_func_search_save_LIBS=$LIBS
7517
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518
 
/* end confdefs.h.  */
7519
 
 
7520
 
/* Override any GCC internal prototype to avoid an error.
7521
 
   Use char because int might match the return type of a GCC
7522
 
   builtin and then its argument prototype would still apply.  */
7523
 
#ifdef __cplusplus
7524
 
extern "C"
7525
 
#endif
7526
 
char getaddrinfo ();
7527
 
int
7528
 
main ()
7529
 
{
7530
 
return getaddrinfo ();
7531
 
  ;
7532
 
  return 0;
7533
 
}
7534
 
_ACEOF
7535
 
for ac_lib in '' nsl socket; do
7536
 
  if test -z "$ac_lib"; then
7537
 
    ac_res="none required"
7538
 
  else
7539
 
    ac_res=-l$ac_lib
7540
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7541
 
  fi
7542
 
  if ac_fn_cxx_try_link "$LINENO"; then :
7543
 
  ac_cv_search_getaddrinfo=$ac_res
7544
 
fi
7545
 
rm -f core conftest.err conftest.$ac_objext \
7546
 
    conftest$ac_exeext
7547
 
  if test "${ac_cv_search_getaddrinfo+set}" = set; then :
7548
 
  break
7549
 
fi
7550
 
done
7551
 
if test "${ac_cv_search_getaddrinfo+set}" = set; then :
7552
 
 
7553
 
else
7554
 
  ac_cv_search_getaddrinfo=no
7555
 
fi
7556
 
rm conftest.$ac_ext
7557
 
LIBS=$ac_func_search_save_LIBS
7558
 
fi
7559
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7560
 
$as_echo "$ac_cv_search_getaddrinfo" >&6; }
7561
 
ac_res=$ac_cv_search_getaddrinfo
7562
 
if test "$ac_res" != no; then :
7563
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7564
 
 
7565
 
fi
7566
 
 
7567
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
7568
 
$as_echo_n "checking for library containing inet_aton... " >&6; }
7569
 
if test "${ac_cv_search_inet_aton+set}" = set; then :
7570
 
  $as_echo_n "(cached) " >&6
7571
 
else
7572
 
  ac_func_search_save_LIBS=$LIBS
7573
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574
 
/* end confdefs.h.  */
7575
 
 
7576
 
/* Override any GCC internal prototype to avoid an error.
7577
 
   Use char because int might match the return type of a GCC
7578
 
   builtin and then its argument prototype would still apply.  */
7579
 
#ifdef __cplusplus
7580
 
extern "C"
7581
 
#endif
7582
 
char inet_aton ();
7583
 
int
7584
 
main ()
7585
 
{
7586
 
return inet_aton ();
7587
 
  ;
7588
 
  return 0;
7589
 
}
7590
 
_ACEOF
7591
 
for ac_lib in '' nsl socket; do
7592
 
  if test -z "$ac_lib"; then
7593
 
    ac_res="none required"
7594
 
  else
7595
 
    ac_res=-l$ac_lib
7596
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7597
 
  fi
7598
 
  if ac_fn_cxx_try_link "$LINENO"; then :
7599
 
  ac_cv_search_inet_aton=$ac_res
7600
 
fi
7601
 
rm -f core conftest.err conftest.$ac_objext \
7602
 
    conftest$ac_exeext
7603
 
  if test "${ac_cv_search_inet_aton+set}" = set; then :
7604
 
  break
7605
 
fi
7606
 
done
7607
 
if test "${ac_cv_search_inet_aton+set}" = set; then :
7608
 
 
7609
 
else
7610
 
  ac_cv_search_inet_aton=no
7611
 
fi
7612
 
rm conftest.$ac_ext
7613
 
LIBS=$ac_func_search_save_LIBS
7614
 
fi
7615
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
7616
 
$as_echo "$ac_cv_search_inet_aton" >&6; }
7617
 
ac_res=$ac_cv_search_inet_aton
7618
 
if test "$ac_res" != no; then :
7619
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7620
 
 
7621
 
fi
7622
 
 
7623
 
                ;;
7624
 
esac
7625
 
 
7626
 
# Checks for header files.
7627
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7628
 
# for constant arguments.  Useless!
7629
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7630
 
$as_echo_n "checking for working alloca.h... " >&6; }
7631
 
if test "${ac_cv_working_alloca_h+set}" = set; then :
7632
 
  $as_echo_n "(cached) " >&6
7633
 
else
7634
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635
 
/* end confdefs.h.  */
7636
 
#include <alloca.h>
7637
 
int
7638
 
main ()
7639
 
{
7640
 
char *p = (char *) alloca (2 * sizeof (int));
7641
 
                          if (p) return 0;
7642
 
  ;
7643
 
  return 0;
7644
 
}
7645
 
_ACEOF
7646
 
if ac_fn_cxx_try_link "$LINENO"; then :
7647
 
  ac_cv_working_alloca_h=yes
7648
 
else
7649
 
  ac_cv_working_alloca_h=no
7650
 
fi
7651
 
rm -f core conftest.err conftest.$ac_objext \
7652
 
    conftest$ac_exeext conftest.$ac_ext
7653
 
fi
7654
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7655
 
$as_echo "$ac_cv_working_alloca_h" >&6; }
7656
 
if test $ac_cv_working_alloca_h = yes; then
7657
 
 
7658
 
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7659
 
 
7660
 
fi
7661
 
 
7662
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7663
 
$as_echo_n "checking for alloca... " >&6; }
7664
 
if test "${ac_cv_func_alloca_works+set}" = set; then :
7665
 
  $as_echo_n "(cached) " >&6
7666
 
else
7667
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668
 
/* end confdefs.h.  */
7669
 
#ifdef __GNUC__
7670
 
# define alloca __builtin_alloca
7671
 
#else
7672
 
# ifdef _MSC_VER
7673
 
#  include <malloc.h>
7674
 
#  define alloca _alloca
7675
 
# else
7676
 
#  ifdef HAVE_ALLOCA_H
7677
 
#   include <alloca.h>
7678
 
#  else
7679
 
#   ifdef _AIX
7680
 
 #pragma alloca
7681
 
#   else
7682
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
7683
 
char *alloca ();
7684
 
#    endif
7685
 
#   endif
7686
 
#  endif
7687
 
# endif
7688
 
#endif
7689
 
 
7690
 
int
7691
 
main ()
7692
 
{
7693
 
char *p = (char *) alloca (1);
7694
 
                                    if (p) return 0;
7695
 
  ;
7696
 
  return 0;
7697
 
}
7698
 
_ACEOF
7699
 
if ac_fn_cxx_try_link "$LINENO"; then :
7700
 
  ac_cv_func_alloca_works=yes
7701
 
else
7702
 
  ac_cv_func_alloca_works=no
7703
 
fi
7704
 
rm -f core conftest.err conftest.$ac_objext \
7705
 
    conftest$ac_exeext conftest.$ac_ext
7706
 
fi
7707
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7708
 
$as_echo "$ac_cv_func_alloca_works" >&6; }
7709
 
 
7710
 
if test $ac_cv_func_alloca_works = yes; then
7711
 
 
7712
 
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7713
 
 
7714
 
else
7715
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7716
 
# that cause trouble.  Some versions do not even contain alloca or
7717
 
# contain a buggy version.  If you still want to use their alloca,
7718
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
7719
 
 
7720
 
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7721
 
 
7722
 
$as_echo "#define C_ALLOCA 1" >>confdefs.h
7723
 
 
7724
 
 
7725
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7726
 
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7727
 
if test "${ac_cv_os_cray+set}" = set; then :
7728
 
  $as_echo_n "(cached) " >&6
7729
 
else
7730
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731
 
/* end confdefs.h.  */
7732
 
#if defined CRAY && ! defined CRAY2
7733
 
webecray
7734
 
#else
7735
 
wenotbecray
7736
 
#endif
7737
 
 
7738
 
_ACEOF
7739
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7740
 
  $EGREP "webecray" >/dev/null 2>&1; then :
7741
 
  ac_cv_os_cray=yes
7742
 
else
7743
 
  ac_cv_os_cray=no
7744
 
fi
7745
 
rm -f conftest*
7746
 
 
7747
 
fi
7748
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7749
 
$as_echo "$ac_cv_os_cray" >&6; }
7750
 
if test $ac_cv_os_cray = yes; then
7751
 
  for ac_func in _getb67 GETB67 getb67; do
7752
 
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7753
 
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7754
 
eval as_val=\$$as_ac_var
7755
 
   if test "x$as_val" = x""yes; then :
7756
 
 
7757
 
cat >>confdefs.h <<_ACEOF
7758
 
#define CRAY_STACKSEG_END $ac_func
7759
 
_ACEOF
7760
 
 
7761
 
    break
7762
 
fi
7763
 
 
7764
 
  done
7765
 
fi
7766
 
 
7767
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7768
 
$as_echo_n "checking stack direction for C alloca... " >&6; }
7769
 
if test "${ac_cv_c_stack_direction+set}" = set; then :
7770
 
  $as_echo_n "(cached) " >&6
7771
 
else
7772
 
  if test "$cross_compiling" = yes; then :
7773
 
  ac_cv_c_stack_direction=0
7774
 
else
7775
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776
 
/* end confdefs.h.  */
7777
 
$ac_includes_default
7778
 
int
7779
 
find_stack_direction ()
7780
 
{
7781
 
  static char *addr = 0;
7782
 
  auto char dummy;
7783
 
  if (addr == 0)
7784
 
    {
7785
 
      addr = &dummy;
7786
 
      return find_stack_direction ();
7787
 
    }
7788
 
  else
7789
 
    return (&dummy > addr) ? 1 : -1;
7790
 
}
7791
 
 
7792
 
int
7793
 
main ()
7794
 
{
7795
 
  return find_stack_direction () < 0;
7796
 
}
7797
 
_ACEOF
7798
 
if ac_fn_cxx_try_run "$LINENO"; then :
7799
 
  ac_cv_c_stack_direction=1
7800
 
else
7801
 
  ac_cv_c_stack_direction=-1
7802
 
fi
7803
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7804
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7805
 
fi
7806
 
 
7807
 
fi
7808
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7809
 
$as_echo "$ac_cv_c_stack_direction" >&6; }
7810
 
cat >>confdefs.h <<_ACEOF
7811
 
#define STACK_DIRECTION $ac_cv_c_stack_direction
7812
 
_ACEOF
7813
 
 
7814
 
 
7815
 
fi
7816
 
 
7817
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7818
 
$as_echo_n "checking for ANSI C header files... " >&6; }
7819
 
if test "${ac_cv_header_stdc+set}" = set; then :
7820
 
  $as_echo_n "(cached) " >&6
7821
 
else
7822
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823
 
/* end confdefs.h.  */
7824
 
#include <stdlib.h>
7825
 
#include <stdarg.h>
7826
 
#include <string.h>
7827
 
#include <float.h>
7828
 
 
7829
 
int
7830
 
main ()
7831
 
{
7832
 
 
7833
 
  ;
7834
 
  return 0;
7835
 
}
7836
 
_ACEOF
7837
 
if ac_fn_cxx_try_compile "$LINENO"; then :
7838
 
  ac_cv_header_stdc=yes
7839
 
else
7840
 
  ac_cv_header_stdc=no
7841
 
fi
7842
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843
 
 
7844
 
if test $ac_cv_header_stdc = yes; then
7845
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7846
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847
 
/* end confdefs.h.  */
7848
 
#include <string.h>
7849
 
 
7850
 
_ACEOF
7851
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7852
 
  $EGREP "memchr" >/dev/null 2>&1; then :
7853
 
 
7854
 
else
7855
 
  ac_cv_header_stdc=no
7856
 
fi
7857
 
rm -f conftest*
7858
 
 
7859
 
fi
7860
 
 
7861
 
if test $ac_cv_header_stdc = yes; then
7862
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7863
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864
 
/* end confdefs.h.  */
7865
 
#include <stdlib.h>
7866
 
 
7867
 
_ACEOF
7868
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869
 
  $EGREP "free" >/dev/null 2>&1; then :
7870
 
 
7871
 
else
7872
 
  ac_cv_header_stdc=no
7873
 
fi
7874
 
rm -f conftest*
7875
 
 
7876
 
fi
7877
 
 
7878
 
if test $ac_cv_header_stdc = yes; then
7879
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7880
 
  if test "$cross_compiling" = yes; then :
7881
 
  :
7882
 
else
7883
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884
 
/* end confdefs.h.  */
7885
 
#include <ctype.h>
7886
 
#include <stdlib.h>
7887
 
#if ((' ' & 0x0FF) == 0x020)
7888
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7889
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7890
 
#else
7891
 
# define ISLOWER(c) \
7892
 
                   (('a' <= (c) && (c) <= 'i') \
7893
 
                     || ('j' <= (c) && (c) <= 'r') \
7894
 
                     || ('s' <= (c) && (c) <= 'z'))
7895
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7896
 
#endif
7897
 
 
7898
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7899
 
int
7900
 
main ()
7901
 
{
7902
 
  int i;
7903
 
  for (i = 0; i < 256; i++)
7904
 
    if (XOR (islower (i), ISLOWER (i))
7905
 
        || toupper (i) != TOUPPER (i))
7906
 
      return 2;
7907
 
  return 0;
7908
 
}
7909
 
_ACEOF
7910
 
if ac_fn_cxx_try_run "$LINENO"; then :
7911
 
 
7912
 
else
7913
 
  ac_cv_header_stdc=no
7914
 
fi
7915
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7916
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7917
 
fi
7918
 
 
7919
 
fi
7920
 
fi
7921
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7922
 
$as_echo "$ac_cv_header_stdc" >&6; }
7923
 
if test $ac_cv_header_stdc = yes; then
7924
 
 
7925
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7926
 
 
7927
 
fi
7928
 
 
7929
 
 
7930
 
case "$target" in
7931
 
        *mingw*)
7932
 
                for ac_header in windows.h \
7933
 
                                  winsock2.h \
7934
 
                                  ws2tcpip.h \
7935
 
                                  mmsystem.h
7936
 
do :
7937
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7938
 
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
7939
 
# include <windows.h>
7940
 
#endif
7941
 
 
7942
 
"
7943
 
eval as_val=\$$as_ac_Header
7944
 
   if test "x$as_val" = x""yes; then :
7945
 
  cat >>confdefs.h <<_ACEOF
7946
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947
 
_ACEOF
7948
 
 
7949
 
fi
7950
 
 
7951
 
done
7952
 
 
7953
 
                ;;
7954
 
esac
7955
 
 
7956
 
for ac_header in argz.h \
7957
 
                  arpa/inet.h \
7958
 
                  fcntl.h \
7959
 
                  float.h \
7960
 
                  inttypes.h \
7961
 
                  io.h \
7962
 
                  langinfo.h \
7963
 
                  libintl.h \
7964
 
                  limits.h \
7965
 
                  locale.h \
7966
 
                  malloc.h \
7967
 
                  netdb.h \
7968
 
                  netinet/in.h \
7969
 
                  poll.h \
7970
 
                  port.h \
7971
 
                  stddef.h \
7972
 
                  stdint.h \
7973
 
                  stdio_ext.h \
7974
 
                  stdlib.h \
7975
 
                  string.h \
7976
 
                  strings.h \
7977
 
                  sys/ioctl.h \
7978
 
                  sys/param.h \
7979
 
                  sys/socket.h \
7980
 
                  sys/time.h \
7981
 
                  termios.h \
7982
 
                  unistd.h \
7983
 
                  utime.h \
7984
 
                  wchar.h \
7985
 
                  ifaddrs.h
7986
 
do :
7987
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988
 
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7989
 
eval as_val=\$$as_ac_Header
7990
 
   if test "x$as_val" = x""yes; then :
7991
 
  cat >>confdefs.h <<_ACEOF
7992
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7993
 
_ACEOF
7994
 
 
7995
 
fi
7996
 
 
7997
 
done
7998
 
 
7999
 
 
8000
 
# Checks for typedefs, structures, and compiler characteristics.
8001
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8002
 
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8003
 
if test "${ac_cv_header_stdbool_h+set}" = set; then :
8004
 
  $as_echo_n "(cached) " >&6
8005
 
else
8006
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007
 
/* end confdefs.h.  */
8008
 
 
8009
 
#include <stdbool.h>
8010
 
#ifndef bool
8011
 
 "error: bool is not defined"
8012
 
#endif
8013
 
#ifndef false
8014
 
 "error: false is not defined"
8015
 
#endif
8016
 
#if false
8017
 
 "error: false is not 0"
8018
 
#endif
8019
 
#ifndef true
8020
 
 "error: true is not defined"
8021
 
#endif
8022
 
#if true != 1
8023
 
 "error: true is not 1"
8024
 
#endif
8025
 
#ifndef __bool_true_false_are_defined
8026
 
 "error: __bool_true_false_are_defined is not defined"
8027
 
#endif
8028
 
 
8029
 
        struct s { _Bool s: 1; _Bool t; } s;
8030
 
 
8031
 
        char a[true == 1 ? 1 : -1];
8032
 
        char b[false == 0 ? 1 : -1];
8033
 
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8034
 
        char d[(bool) 0.5 == true ? 1 : -1];
8035
 
        bool e = &s;
8036
 
        char f[(_Bool) 0.0 == false ? 1 : -1];
8037
 
        char g[true];
8038
 
        char h[sizeof (_Bool)];
8039
 
        char i[sizeof s.t];
8040
 
        enum { j = false, k = true, l = false * true, m = true * 256 };
8041
 
        /* The following fails for
8042
 
           HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8043
 
        _Bool n[m];
8044
 
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8045
 
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8046
 
#       if defined __xlc__ || defined __GNUC__
8047
 
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8048
 
            reported by James Lemley on 2005-10-05; see
8049
 
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8050
 
            This test is not quite right, since xlc is allowed to
8051
 
            reject this program, as the initializer for xlcbug is
8052
 
            not one of the forms that C requires support for.
8053
 
            However, doing the test right would require a runtime
8054
 
            test, and that would make cross-compilation harder.
8055
 
            Let us hope that IBM fixes the xlc bug, and also adds
8056
 
            support for this kind of constant expression.  In the
8057
 
            meantime, this test will reject xlc, which is OK, since
8058
 
            our stdbool.h substitute should suffice.  We also test
8059
 
            this with GCC, where it should work, to detect more
8060
 
            quickly whether someone messes up the test in the
8061
 
            future.  */
8062
 
         char digs[] = "0123456789";
8063
 
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8064
 
#       endif
8065
 
        /* Catch a bug in an HP-UX C compiler.  See
8066
 
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8067
 
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8068
 
         */
8069
 
        _Bool q = true;
8070
 
        _Bool *pq = &q;
8071
 
 
8072
 
int
8073
 
main ()
8074
 
{
8075
 
 
8076
 
        *pq |= q;
8077
 
        *pq |= ! q;
8078
 
        /* Refer to every declared value, to avoid compiler optimizations.  */
8079
 
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8080
 
                + !m + !n + !o + !p + !q + !pq);
8081
 
 
8082
 
  ;
8083
 
  return 0;
8084
 
}
8085
 
_ACEOF
8086
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8087
 
  ac_cv_header_stdbool_h=yes
8088
 
else
8089
 
  ac_cv_header_stdbool_h=no
8090
 
fi
8091
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092
 
fi
8093
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8094
 
$as_echo "$ac_cv_header_stdbool_h" >&6; }
8095
 
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8096
 
if test "x$ac_cv_type__Bool" = x""yes; then :
8097
 
 
8098
 
cat >>confdefs.h <<_ACEOF
8099
 
#define HAVE__BOOL 1
8100
 
_ACEOF
8101
 
 
8102
 
 
8103
 
fi
8104
 
 
8105
 
if test $ac_cv_header_stdbool_h = yes; then
8106
 
 
8107
 
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
8108
 
 
8109
 
fi
8110
 
 
8111
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8112
 
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8113
 
if test "${ac_cv_c_const+set}" = set; then :
8114
 
  $as_echo_n "(cached) " >&6
8115
 
else
8116
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117
 
/* end confdefs.h.  */
8118
 
 
8119
 
int
8120
 
main ()
8121
 
{
8122
 
/* FIXME: Include the comments suggested by Paul. */
8123
 
#ifndef __cplusplus
8124
 
  /* Ultrix mips cc rejects this.  */
8125
 
  typedef int charset[2];
8126
 
  const charset cs;
8127
 
  /* SunOS 4.1.1 cc rejects this.  */
8128
 
  char const *const *pcpcc;
8129
 
  char **ppc;
8130
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
8131
 
  struct point {int x, y;};
8132
 
  static struct point const zero = {0,0};
8133
 
  /* AIX XL C 1.02.0.0 rejects this.
8134
 
     It does not let you subtract one const X* pointer from another in
8135
 
     an arm of an if-expression whose if-part is not a constant
8136
 
     expression */
8137
 
  const char *g = "string";
8138
 
  pcpcc = &g + (g ? g-g : 0);
8139
 
  /* HPUX 7.0 cc rejects these. */
8140
 
  ++pcpcc;
8141
 
  ppc = (char**) pcpcc;
8142
 
  pcpcc = (char const *const *) ppc;
8143
 
  { /* SCO 3.2v4 cc rejects this.  */
8144
 
    char *t;
8145
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
8146
 
 
8147
 
    *t++ = 0;
8148
 
    if (s) return 0;
8149
 
  }
8150
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8151
 
    int x[] = {25, 17};
8152
 
    const int *foo = &x[0];
8153
 
    ++foo;
8154
 
  }
8155
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8156
 
    typedef const int *iptr;
8157
 
    iptr p = 0;
8158
 
    ++p;
8159
 
  }
8160
 
  { /* AIX XL C 1.02.0.0 rejects this saying
8161
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8162
 
    struct s { int j; const int *ap[3]; };
8163
 
    struct s *b; b->j = 5;
8164
 
  }
8165
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8166
 
    const int foo = 10;
8167
 
    if (!foo) return 0;
8168
 
  }
8169
 
  return !cs[0] && !zero.x;
8170
 
#endif
8171
 
 
8172
 
  ;
8173
 
  return 0;
8174
 
}
8175
 
_ACEOF
8176
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8177
 
  ac_cv_c_const=yes
8178
 
else
8179
 
  ac_cv_c_const=no
8180
 
fi
8181
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182
 
fi
8183
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8184
 
$as_echo "$ac_cv_c_const" >&6; }
8185
 
if test $ac_cv_c_const = no; then
8186
 
 
8187
 
$as_echo "#define const /**/" >>confdefs.h
8188
 
 
8189
 
fi
8190
 
 
8191
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8192
 
$as_echo_n "checking for inline... " >&6; }
8193
 
if test "${ac_cv_c_inline+set}" = set; then :
8194
 
  $as_echo_n "(cached) " >&6
8195
 
else
8196
 
  ac_cv_c_inline=no
8197
 
for ac_kw in inline __inline__ __inline; do
8198
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199
 
/* end confdefs.h.  */
8200
 
#ifndef __cplusplus
8201
 
typedef int foo_t;
8202
 
static $ac_kw foo_t static_foo () {return 0; }
8203
 
$ac_kw foo_t foo () {return 0; }
8204
 
#endif
8205
 
 
8206
 
_ACEOF
8207
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8208
 
  ac_cv_c_inline=$ac_kw
8209
 
fi
8210
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211
 
  test "$ac_cv_c_inline" != no && break
8212
 
done
8213
 
 
8214
 
fi
8215
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8216
 
$as_echo "$ac_cv_c_inline" >&6; }
8217
 
 
8218
 
case $ac_cv_c_inline in
8219
 
  inline | yes) ;;
8220
 
  *)
8221
 
    case $ac_cv_c_inline in
8222
 
      no) ac_val=;;
8223
 
      *) ac_val=$ac_cv_c_inline;;
8224
 
    esac
8225
 
    cat >>confdefs.h <<_ACEOF
8226
 
#ifndef __cplusplus
8227
 
#define inline $ac_val
8228
 
#endif
8229
 
_ACEOF
8230
 
    ;;
8231
 
esac
8232
 
 
8233
 
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
8234
 
case $ac_cv_c_int16_t in #(
8235
 
  no|yes) ;; #(
8236
 
  *)
8237
 
 
8238
 
cat >>confdefs.h <<_ACEOF
8239
 
#define int16_t $ac_cv_c_int16_t
8240
 
_ACEOF
8241
 
;;
8242
 
esac
8243
 
 
8244
 
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
8245
 
case $ac_cv_c_int32_t in #(
8246
 
  no|yes) ;; #(
8247
 
  *)
8248
 
 
8249
 
cat >>confdefs.h <<_ACEOF
8250
 
#define int32_t $ac_cv_c_int32_t
8251
 
_ACEOF
8252
 
;;
8253
 
esac
8254
 
 
8255
 
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
8256
 
case $ac_cv_c_int64_t in #(
8257
 
  no|yes) ;; #(
8258
 
  *)
8259
 
 
8260
 
cat >>confdefs.h <<_ACEOF
8261
 
#define int64_t $ac_cv_c_int64_t
8262
 
_ACEOF
8263
 
;;
8264
 
esac
8265
 
 
8266
 
ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
8267
 
case $ac_cv_c_int8_t in #(
8268
 
  no|yes) ;; #(
8269
 
  *)
8270
 
 
8271
 
cat >>confdefs.h <<_ACEOF
8272
 
#define int8_t $ac_cv_c_int8_t
8273
 
_ACEOF
8274
 
;;
8275
 
esac
8276
 
 
8277
 
ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8278
 
if test "x$ac_cv_type_mode_t" = x""yes; then :
8279
 
 
8280
 
else
8281
 
 
8282
 
cat >>confdefs.h <<_ACEOF
8283
 
#define mode_t int
8284
 
_ACEOF
8285
 
 
8286
 
fi
8287
 
 
8288
 
ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8289
 
if test "x$ac_cv_type_off_t" = x""yes; then :
8290
 
 
8291
 
else
8292
 
 
8293
 
cat >>confdefs.h <<_ACEOF
8294
 
#define off_t long int
8295
 
_ACEOF
8296
 
 
8297
 
fi
8298
 
 
8299
 
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8300
 
if test "x$ac_cv_type_size_t" = x""yes; then :
8301
 
 
8302
 
else
8303
 
 
8304
 
cat >>confdefs.h <<_ACEOF
8305
 
#define size_t unsigned int
8306
 
_ACEOF
8307
 
 
8308
 
fi
8309
 
 
8310
 
ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8311
 
if test "x$ac_cv_type_ssize_t" = x""yes; then :
8312
 
 
8313
 
else
8314
 
 
8315
 
cat >>confdefs.h <<_ACEOF
8316
 
#define ssize_t int
8317
 
_ACEOF
8318
 
 
8319
 
fi
8320
 
 
8321
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8322
 
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8323
 
if test "${ac_cv_header_time+set}" = set; then :
8324
 
  $as_echo_n "(cached) " >&6
8325
 
else
8326
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327
 
/* end confdefs.h.  */
8328
 
#include <sys/types.h>
8329
 
#include <sys/time.h>
8330
 
#include <time.h>
8331
 
 
8332
 
int
8333
 
main ()
8334
 
{
8335
 
if ((struct tm *) 0)
8336
 
return 0;
8337
 
  ;
8338
 
  return 0;
8339
 
}
8340
 
_ACEOF
8341
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8342
 
  ac_cv_header_time=yes
8343
 
else
8344
 
  ac_cv_header_time=no
8345
 
fi
8346
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347
 
fi
8348
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8349
 
$as_echo "$ac_cv_header_time" >&6; }
8350
 
if test $ac_cv_header_time = yes; then
8351
 
 
8352
 
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8353
 
 
8354
 
fi
8355
 
 
8356
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8357
 
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8358
 
if test "${ac_cv_struct_tm+set}" = set; then :
8359
 
  $as_echo_n "(cached) " >&6
8360
 
else
8361
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362
 
/* end confdefs.h.  */
8363
 
#include <sys/types.h>
8364
 
#include <time.h>
8365
 
 
8366
 
int
8367
 
main ()
8368
 
{
8369
 
struct tm tm;
8370
 
                                     int *p = &tm.tm_sec;
8371
 
                                     return !p;
8372
 
  ;
8373
 
  return 0;
8374
 
}
8375
 
_ACEOF
8376
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8377
 
  ac_cv_struct_tm=time.h
8378
 
else
8379
 
  ac_cv_struct_tm=sys/time.h
8380
 
fi
8381
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382
 
fi
8383
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8384
 
$as_echo "$ac_cv_struct_tm" >&6; }
8385
 
if test $ac_cv_struct_tm = sys/time.h; then
8386
 
 
8387
 
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8388
 
 
8389
 
fi
8390
 
 
8391
 
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
8392
 
case $ac_cv_c_uint16_t in #(
8393
 
  no|yes) ;; #(
8394
 
  *)
8395
 
 
8396
 
 
8397
 
cat >>confdefs.h <<_ACEOF
8398
 
#define uint16_t $ac_cv_c_uint16_t
8399
 
_ACEOF
8400
 
;;
8401
 
  esac
8402
 
 
8403
 
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
8404
 
case $ac_cv_c_uint32_t in #(
8405
 
  no|yes) ;; #(
8406
 
  *)
8407
 
 
8408
 
$as_echo "#define _UINT32_T 1" >>confdefs.h
8409
 
 
8410
 
 
8411
 
cat >>confdefs.h <<_ACEOF
8412
 
#define uint32_t $ac_cv_c_uint32_t
8413
 
_ACEOF
8414
 
;;
8415
 
  esac
8416
 
 
8417
 
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
8418
 
case $ac_cv_c_uint64_t in #(
8419
 
  no|yes) ;; #(
8420
 
  *)
8421
 
 
8422
 
$as_echo "#define _UINT64_T 1" >>confdefs.h
8423
 
 
8424
 
 
8425
 
cat >>confdefs.h <<_ACEOF
8426
 
#define uint64_t $ac_cv_c_uint64_t
8427
 
_ACEOF
8428
 
;;
8429
 
  esac
8430
 
 
8431
 
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
8432
 
case $ac_cv_c_uint8_t in #(
8433
 
  no|yes) ;; #(
8434
 
  *)
8435
 
 
8436
 
$as_echo "#define _UINT8_T 1" >>confdefs.h
8437
 
 
8438
 
 
8439
 
cat >>confdefs.h <<_ACEOF
8440
 
#define uint8_t $ac_cv_c_uint8_t
8441
 
_ACEOF
8442
 
;;
8443
 
  esac
8444
 
 
8445
 
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8446
 
if test "x$ac_cv_type_pid_t" = x""yes; then :
8447
 
 
8448
 
else
8449
 
 
8450
 
cat >>confdefs.h <<_ACEOF
8451
 
#define pid_t int
8452
 
_ACEOF
8453
 
 
8454
 
fi
8455
 
 
8456
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8457
 
$as_echo_n "checking for working volatile... " >&6; }
8458
 
if test "${ac_cv_c_volatile+set}" = set; then :
8459
 
  $as_echo_n "(cached) " >&6
8460
 
else
8461
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462
 
/* end confdefs.h.  */
8463
 
 
8464
 
int
8465
 
main ()
8466
 
{
8467
 
 
8468
 
volatile int x;
8469
 
int * volatile y = (int *) 0;
8470
 
return !x && !y;
8471
 
  ;
8472
 
  return 0;
8473
 
}
8474
 
_ACEOF
8475
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8476
 
  ac_cv_c_volatile=yes
8477
 
else
8478
 
  ac_cv_c_volatile=no
8479
 
fi
8480
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481
 
fi
8482
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8483
 
$as_echo "$ac_cv_c_volatile" >&6; }
8484
 
if test $ac_cv_c_volatile = no; then
8485
 
 
8486
 
$as_echo "#define volatile /**/" >>confdefs.h
8487
 
 
8488
 
fi
8489
 
 
8490
 
ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8491
 
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8492
 
 
8493
 
cat >>confdefs.h <<_ACEOF
8494
 
#define HAVE_PTRDIFF_T 1
8495
 
_ACEOF
8496
 
 
8497
 
 
8498
 
fi
8499
 
ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
8500
 
if test "x$ac_cv_type_struct_timespec" = x""yes; then :
8501
 
 
8502
 
cat >>confdefs.h <<_ACEOF
8503
 
#define HAVE_STRUCT_TIMESPEC 1
8504
 
_ACEOF
8505
 
 
8506
 
 
8507
 
fi
8508
 
 
8509
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8510
 
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8511
 
if test "${ac_cv_c_bigendian+set}" = set; then :
8512
 
  $as_echo_n "(cached) " >&6
8513
 
else
8514
 
  ac_cv_c_bigendian=unknown
8515
 
    # See if we're dealing with a universal compiler.
8516
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517
 
/* end confdefs.h.  */
8518
 
#ifndef __APPLE_CC__
8519
 
               not a universal capable compiler
8520
 
             #endif
8521
 
             typedef int dummy;
8522
 
 
8523
 
_ACEOF
8524
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8525
 
 
8526
 
        # Check for potential -arch flags.  It is not universal unless
8527
 
        # there are at least two -arch flags with different values.
8528
 
        ac_arch=
8529
 
        ac_prev=
8530
 
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8531
 
         if test -n "$ac_prev"; then
8532
 
           case $ac_word in
8533
 
             i?86 | x86_64 | ppc | ppc64)
8534
 
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8535
 
                 ac_arch=$ac_word
8536
 
               else
8537
 
                 ac_cv_c_bigendian=universal
8538
 
                 break
8539
 
               fi
8540
 
               ;;
8541
 
           esac
8542
 
           ac_prev=
8543
 
         elif test "x$ac_word" = "x-arch"; then
8544
 
           ac_prev=arch
8545
 
         fi
8546
 
       done
8547
 
fi
8548
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549
 
    if test $ac_cv_c_bigendian = unknown; then
8550
 
      # See if sys/param.h defines the BYTE_ORDER macro.
8551
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552
 
/* end confdefs.h.  */
8553
 
#include <sys/types.h>
8554
 
             #include <sys/param.h>
8555
 
 
8556
 
int
8557
 
main ()
8558
 
{
8559
 
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8560
 
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8561
 
                     && LITTLE_ENDIAN)
8562
 
              bogus endian macros
8563
 
             #endif
8564
 
 
8565
 
  ;
8566
 
  return 0;
8567
 
}
8568
 
_ACEOF
8569
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8570
 
  # It does; now see whether it defined to BIG_ENDIAN or not.
8571
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572
 
/* end confdefs.h.  */
8573
 
#include <sys/types.h>
8574
 
                #include <sys/param.h>
8575
 
 
8576
 
int
8577
 
main ()
8578
 
{
8579
 
#if BYTE_ORDER != BIG_ENDIAN
8580
 
                 not big endian
8581
 
                #endif
8582
 
 
8583
 
  ;
8584
 
  return 0;
8585
 
}
8586
 
_ACEOF
8587
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8588
 
  ac_cv_c_bigendian=yes
8589
 
else
8590
 
  ac_cv_c_bigendian=no
8591
 
fi
8592
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593
 
fi
8594
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595
 
    fi
8596
 
    if test $ac_cv_c_bigendian = unknown; then
8597
 
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8598
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599
 
/* end confdefs.h.  */
8600
 
#include <limits.h>
8601
 
 
8602
 
int
8603
 
main ()
8604
 
{
8605
 
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8606
 
              bogus endian macros
8607
 
             #endif
8608
 
 
8609
 
  ;
8610
 
  return 0;
8611
 
}
8612
 
_ACEOF
8613
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8614
 
  # It does; now see whether it defined to _BIG_ENDIAN or not.
8615
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616
 
/* end confdefs.h.  */
8617
 
#include <limits.h>
8618
 
 
8619
 
int
8620
 
main ()
8621
 
{
8622
 
#ifndef _BIG_ENDIAN
8623
 
                 not big endian
8624
 
                #endif
8625
 
 
8626
 
  ;
8627
 
  return 0;
8628
 
}
8629
 
_ACEOF
8630
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8631
 
  ac_cv_c_bigendian=yes
8632
 
else
8633
 
  ac_cv_c_bigendian=no
8634
 
fi
8635
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636
 
fi
8637
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638
 
    fi
8639
 
    if test $ac_cv_c_bigendian = unknown; then
8640
 
      # Compile a test program.
8641
 
      if test "$cross_compiling" = yes; then :
8642
 
  # Try to guess by grepping values from an object file.
8643
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644
 
/* end confdefs.h.  */
8645
 
short int ascii_mm[] =
8646
 
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8647
 
                short int ascii_ii[] =
8648
 
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8649
 
                int use_ascii (int i) {
8650
 
                  return ascii_mm[i] + ascii_ii[i];
8651
 
                }
8652
 
                short int ebcdic_ii[] =
8653
 
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8654
 
                short int ebcdic_mm[] =
8655
 
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8656
 
                int use_ebcdic (int i) {
8657
 
                  return ebcdic_mm[i] + ebcdic_ii[i];
8658
 
                }
8659
 
                extern int foo;
8660
 
 
8661
 
int
8662
 
main ()
8663
 
{
8664
 
return use_ascii (foo) == use_ebcdic (foo);
8665
 
  ;
8666
 
  return 0;
8667
 
}
8668
 
_ACEOF
8669
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8670
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8671
 
              ac_cv_c_bigendian=yes
8672
 
            fi
8673
 
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8674
 
              if test "$ac_cv_c_bigendian" = unknown; then
8675
 
                ac_cv_c_bigendian=no
8676
 
              else
8677
 
                # finding both strings is unlikely to happen, but who knows?
8678
 
                ac_cv_c_bigendian=unknown
8679
 
              fi
8680
 
            fi
8681
 
fi
8682
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683
 
else
8684
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685
 
/* end confdefs.h.  */
8686
 
$ac_includes_default
8687
 
int
8688
 
main ()
8689
 
{
8690
 
 
8691
 
             /* Are we little or big endian?  From Harbison&Steele.  */
8692
 
             union
8693
 
             {
8694
 
               long int l;
8695
 
               char c[sizeof (long int)];
8696
 
             } u;
8697
 
             u.l = 1;
8698
 
             return u.c[sizeof (long int) - 1] == 1;
8699
 
 
8700
 
  ;
8701
 
  return 0;
8702
 
}
8703
 
_ACEOF
8704
 
if ac_fn_cxx_try_run "$LINENO"; then :
8705
 
  ac_cv_c_bigendian=no
8706
 
else
8707
 
  ac_cv_c_bigendian=yes
8708
 
fi
8709
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8710
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
8711
 
fi
8712
 
 
8713
 
    fi
8714
 
fi
8715
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8716
 
$as_echo "$ac_cv_c_bigendian" >&6; }
8717
 
 case $ac_cv_c_bigendian in #(
8718
 
   yes)
8719
 
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8720
 
;; #(
8721
 
   no)
8722
 
      ;; #(
8723
 
   universal)
8724
 
 
8725
 
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8726
 
 
8727
 
     ;; #(
8728
 
   *)
8729
 
     as_fn_error "unknown endianness
8730
 
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8731
 
 esac
8732
 
 
8733
 
# Check whether --enable-largefile was given.
8734
 
if test "${enable_largefile+set}" = set; then :
8735
 
  enableval=$enable_largefile;
8736
 
fi
8737
 
 
8738
 
if test "$enable_largefile" != no; then
8739
 
 
8740
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8741
 
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8742
 
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8743
 
  $as_echo_n "(cached) " >&6
8744
 
else
8745
 
  ac_cv_sys_largefile_CC=no
8746
 
     if test "$GCC" != yes; then
8747
 
       ac_save_CC=$CC
8748
 
       while :; do
8749
 
         # IRIX 6.2 and later do not support large files by default,
8750
 
         # so use the C compiler's -n32 option if that helps.
8751
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752
 
/* end confdefs.h.  */
8753
 
#include <sys/types.h>
8754
 
 /* Check that off_t can represent 2**63 - 1 correctly.
8755
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8756
 
    since some C++ compilers masquerading as C compilers
8757
 
    incorrectly reject 9223372036854775807.  */
8758
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8759
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8760
 
                       && LARGE_OFF_T % 2147483647 == 1)
8761
 
                      ? 1 : -1];
8762
 
int
8763
 
main ()
8764
 
{
8765
 
 
8766
 
  ;
8767
 
  return 0;
8768
 
}
8769
 
_ACEOF
8770
 
         if ac_fn_cxx_try_compile "$LINENO"; then :
8771
 
  break
8772
 
fi
8773
 
rm -f core conftest.err conftest.$ac_objext
8774
 
         CC="$CC -n32"
8775
 
         if ac_fn_cxx_try_compile "$LINENO"; then :
8776
 
  ac_cv_sys_largefile_CC=' -n32'; break
8777
 
fi
8778
 
rm -f core conftest.err conftest.$ac_objext
8779
 
         break
8780
 
       done
8781
 
       CC=$ac_save_CC
8782
 
       rm -f conftest.$ac_ext
8783
 
    fi
8784
 
fi
8785
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8786
 
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8787
 
  if test "$ac_cv_sys_largefile_CC" != no; then
8788
 
    CC=$CC$ac_cv_sys_largefile_CC
8789
 
  fi
8790
 
 
8791
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8792
 
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8793
 
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8794
 
  $as_echo_n "(cached) " >&6
8795
 
else
8796
 
  while :; do
8797
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798
 
/* end confdefs.h.  */
8799
 
#include <sys/types.h>
8800
 
 /* Check that off_t can represent 2**63 - 1 correctly.
8801
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8802
 
    since some C++ compilers masquerading as C compilers
8803
 
    incorrectly reject 9223372036854775807.  */
8804
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8805
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8806
 
                       && LARGE_OFF_T % 2147483647 == 1)
8807
 
                      ? 1 : -1];
8808
 
int
8809
 
main ()
8810
 
{
8811
 
 
8812
 
  ;
8813
 
  return 0;
8814
 
}
8815
 
_ACEOF
8816
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8817
 
  ac_cv_sys_file_offset_bits=no; break
8818
 
fi
8819
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821
 
/* end confdefs.h.  */
8822
 
#define _FILE_OFFSET_BITS 64
8823
 
#include <sys/types.h>
8824
 
 /* Check that off_t can represent 2**63 - 1 correctly.
8825
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8826
 
    since some C++ compilers masquerading as C compilers
8827
 
    incorrectly reject 9223372036854775807.  */
8828
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8829
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8830
 
                       && LARGE_OFF_T % 2147483647 == 1)
8831
 
                      ? 1 : -1];
8832
 
int
8833
 
main ()
8834
 
{
8835
 
 
8836
 
  ;
8837
 
  return 0;
8838
 
}
8839
 
_ACEOF
8840
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8841
 
  ac_cv_sys_file_offset_bits=64; break
8842
 
fi
8843
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844
 
  ac_cv_sys_file_offset_bits=unknown
8845
 
  break
8846
 
done
8847
 
fi
8848
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8849
 
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8850
 
case $ac_cv_sys_file_offset_bits in #(
8851
 
  no | unknown) ;;
8852
 
  *)
8853
 
cat >>confdefs.h <<_ACEOF
8854
 
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8855
 
_ACEOF
8856
 
;;
8857
 
esac
8858
 
rm -rf conftest*
8859
 
  if test $ac_cv_sys_file_offset_bits = unknown; then
8860
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8861
 
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8862
 
if test "${ac_cv_sys_large_files+set}" = set; then :
8863
 
  $as_echo_n "(cached) " >&6
8864
 
else
8865
 
  while :; do
8866
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867
 
/* end confdefs.h.  */
8868
 
#include <sys/types.h>
8869
 
 /* Check that off_t can represent 2**63 - 1 correctly.
8870
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8871
 
    since some C++ compilers masquerading as C compilers
8872
 
    incorrectly reject 9223372036854775807.  */
8873
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8874
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8875
 
                       && LARGE_OFF_T % 2147483647 == 1)
8876
 
                      ? 1 : -1];
8877
 
int
8878
 
main ()
8879
 
{
8880
 
 
8881
 
  ;
8882
 
  return 0;
8883
 
}
8884
 
_ACEOF
8885
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8886
 
  ac_cv_sys_large_files=no; break
8887
 
fi
8888
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890
 
/* end confdefs.h.  */
8891
 
#define _LARGE_FILES 1
8892
 
#include <sys/types.h>
8893
 
 /* Check that off_t can represent 2**63 - 1 correctly.
8894
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8895
 
    since some C++ compilers masquerading as C compilers
8896
 
    incorrectly reject 9223372036854775807.  */
8897
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8898
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8899
 
                       && LARGE_OFF_T % 2147483647 == 1)
8900
 
                      ? 1 : -1];
8901
 
int
8902
 
main ()
8903
 
{
8904
 
 
8905
 
  ;
8906
 
  return 0;
8907
 
}
8908
 
_ACEOF
8909
 
if ac_fn_cxx_try_compile "$LINENO"; then :
8910
 
  ac_cv_sys_large_files=1; break
8911
 
fi
8912
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913
 
  ac_cv_sys_large_files=unknown
8914
 
  break
8915
 
done
8916
 
fi
8917
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8918
 
$as_echo "$ac_cv_sys_large_files" >&6; }
8919
 
case $ac_cv_sys_large_files in #(
8920
 
  no | unknown) ;;
8921
 
  *)
8922
 
cat >>confdefs.h <<_ACEOF
8923
 
#define _LARGE_FILES $ac_cv_sys_large_files
8924
 
_ACEOF
8925
 
;;
8926
 
esac
8927
 
rm -rf conftest*
8928
 
  fi
8929
 
fi
8930
 
 
8931
 
 
8932
 
# Checks for library functions.
8933
 
 
8934
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8935
 
$as_echo_n "checking whether NLS is requested... " >&6; }
8936
 
    # Check whether --enable-nls was given.
8937
 
if test "${enable_nls+set}" = set; then :
8938
 
  enableval=$enable_nls; USE_NLS=$enableval
8939
 
else
8940
 
  USE_NLS=yes
8941
 
fi
8942
 
 
8943
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8944
 
$as_echo "$USE_NLS" >&6; }
8945
 
 
8946
 
 
8947
 
 
8948
 
 
8949
 
      GETTEXT_MACRO_VERSION=0.17
8950
 
 
8951
 
 
8952
 
 
8953
 
 
8954
 
# Prepare PATH_SEPARATOR.
8955
 
# The user is always right.
8956
 
if test "${PATH_SEPARATOR+set}" != set; then
8957
 
  echo "#! /bin/sh" >conf$$.sh
8958
 
  echo  "exit 0"   >>conf$$.sh
8959
 
  chmod +x conf$$.sh
8960
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8961
 
    PATH_SEPARATOR=';'
8962
 
  else
8963
 
    PATH_SEPARATOR=:
8964
 
  fi
8965
 
  rm -f conf$$.sh
8966
 
fi
8967
 
 
8968
 
# Find out how to test for executable files. Don't use a zero-byte file,
8969
 
# as systems may use methods other than mode bits to determine executability.
8970
 
cat >conf$$.file <<_ASEOF
8971
 
#! /bin/sh
8972
 
exit 0
8973
 
_ASEOF
8974
 
chmod +x conf$$.file
8975
 
if test -x conf$$.file >/dev/null 2>&1; then
8976
 
  ac_executable_p="test -x"
8977
 
else
8978
 
  ac_executable_p="test -f"
8979
 
fi
8980
 
rm -f conf$$.file
8981
 
 
8982
 
# Extract the first word of "msgfmt", so it can be a program name with args.
8983
 
set dummy msgfmt; ac_word=$2
8984
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985
 
$as_echo_n "checking for $ac_word... " >&6; }
8986
 
if test "${ac_cv_path_MSGFMT+set}" = set; then :
8987
 
  $as_echo_n "(cached) " >&6
8988
 
else
8989
 
  case "$MSGFMT" in
8990
 
  [\\/]* | ?:[\\/]*)
8991
 
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8992
 
    ;;
8993
 
  *)
8994
 
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8995
 
    for ac_dir in $PATH; do
8996
 
      IFS="$ac_save_IFS"
8997
 
      test -z "$ac_dir" && ac_dir=.
8998
 
      for ac_exec_ext in '' $ac_executable_extensions; do
8999
 
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9000
 
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
9001
 
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
9002
 
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9003
 
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
9004
 
            break 2
9005
 
          fi
9006
 
        fi
9007
 
      done
9008
 
    done
9009
 
    IFS="$ac_save_IFS"
9010
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9011
 
    ;;
9012
 
esac
9013
 
fi
9014
 
MSGFMT="$ac_cv_path_MSGFMT"
9015
 
if test "$MSGFMT" != ":"; then
9016
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9017
 
$as_echo "$MSGFMT" >&6; }
9018
 
else
9019
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020
 
$as_echo "no" >&6; }
9021
 
fi
9022
 
 
9023
 
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
9024
 
set dummy gmsgfmt; ac_word=$2
9025
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026
 
$as_echo_n "checking for $ac_word... " >&6; }
9027
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
9028
 
  $as_echo_n "(cached) " >&6
9029
 
else
9030
 
  case $GMSGFMT in
9031
 
  [\\/]* | ?:[\\/]*)
9032
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9033
 
  ;;
9034
 
  *)
9035
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036
 
for as_dir in $PATH
9037
 
do
9038
 
  IFS=$as_save_IFS
9039
 
  test -z "$as_dir" && as_dir=.
9040
 
    for ac_exec_ext in '' $ac_executable_extensions; do
9041
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9042
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9043
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044
 
    break 2
9045
 
  fi
9046
 
done
9047
 
  done
9048
 
IFS=$as_save_IFS
9049
 
 
9050
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9051
 
  ;;
9052
 
esac
9053
 
fi
9054
 
GMSGFMT=$ac_cv_path_GMSGFMT
9055
 
if test -n "$GMSGFMT"; then
9056
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
9057
 
$as_echo "$GMSGFMT" >&6; }
9058
 
else
9059
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060
 
$as_echo "no" >&6; }
9061
 
fi
9062
 
 
9063
 
 
9064
 
 
9065
 
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9066
 
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
9067
 
    *) MSGFMT_015=$MSGFMT ;;
9068
 
  esac
9069
 
 
9070
 
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9071
 
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
9072
 
    *) GMSGFMT_015=$GMSGFMT ;;
9073
 
  esac
9074
 
 
9075
 
 
9076
 
 
9077
 
# Prepare PATH_SEPARATOR.
9078
 
# The user is always right.
9079
 
if test "${PATH_SEPARATOR+set}" != set; then
9080
 
  echo "#! /bin/sh" >conf$$.sh
9081
 
  echo  "exit 0"   >>conf$$.sh
9082
 
  chmod +x conf$$.sh
9083
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9084
 
    PATH_SEPARATOR=';'
9085
 
  else
9086
 
    PATH_SEPARATOR=:
9087
 
  fi
9088
 
  rm -f conf$$.sh
9089
 
fi
9090
 
 
9091
 
# Find out how to test for executable files. Don't use a zero-byte file,
9092
 
# as systems may use methods other than mode bits to determine executability.
9093
 
cat >conf$$.file <<_ASEOF
9094
 
#! /bin/sh
9095
 
exit 0
9096
 
_ASEOF
9097
 
chmod +x conf$$.file
9098
 
if test -x conf$$.file >/dev/null 2>&1; then
9099
 
  ac_executable_p="test -x"
9100
 
else
9101
 
  ac_executable_p="test -f"
9102
 
fi
9103
 
rm -f conf$$.file
9104
 
 
9105
 
# Extract the first word of "xgettext", so it can be a program name with args.
9106
 
set dummy xgettext; ac_word=$2
9107
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108
 
$as_echo_n "checking for $ac_word... " >&6; }
9109
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
9110
 
  $as_echo_n "(cached) " >&6
9111
 
else
9112
 
  case "$XGETTEXT" in
9113
 
  [\\/]* | ?:[\\/]*)
9114
 
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9115
 
    ;;
9116
 
  *)
9117
 
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9118
 
    for ac_dir in $PATH; do
9119
 
      IFS="$ac_save_IFS"
9120
 
      test -z "$ac_dir" && ac_dir=.
9121
 
      for ac_exec_ext in '' $ac_executable_extensions; do
9122
 
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9123
 
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
9124
 
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
9125
 
     (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
9126
 
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9127
 
            break 2
9128
 
          fi
9129
 
        fi
9130
 
      done
9131
 
    done
9132
 
    IFS="$ac_save_IFS"
9133
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9134
 
    ;;
9135
 
esac
9136
 
fi
9137
 
XGETTEXT="$ac_cv_path_XGETTEXT"
9138
 
if test "$XGETTEXT" != ":"; then
9139
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9140
 
$as_echo "$XGETTEXT" >&6; }
9141
 
else
9142
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143
 
$as_echo "no" >&6; }
9144
 
fi
9145
 
 
9146
 
    rm -f messages.po
9147
 
 
9148
 
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9149
 
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
9150
 
    *) XGETTEXT_015=$XGETTEXT ;;
9151
 
  esac
9152
 
 
9153
 
 
9154
 
 
9155
 
# Prepare PATH_SEPARATOR.
9156
 
# The user is always right.
9157
 
if test "${PATH_SEPARATOR+set}" != set; then
9158
 
  echo "#! /bin/sh" >conf$$.sh
9159
 
  echo  "exit 0"   >>conf$$.sh
9160
 
  chmod +x conf$$.sh
9161
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9162
 
    PATH_SEPARATOR=';'
9163
 
  else
9164
 
    PATH_SEPARATOR=:
9165
 
  fi
9166
 
  rm -f conf$$.sh
9167
 
fi
9168
 
 
9169
 
# Find out how to test for executable files. Don't use a zero-byte file,
9170
 
# as systems may use methods other than mode bits to determine executability.
9171
 
cat >conf$$.file <<_ASEOF
9172
 
#! /bin/sh
9173
 
exit 0
9174
 
_ASEOF
9175
 
chmod +x conf$$.file
9176
 
if test -x conf$$.file >/dev/null 2>&1; then
9177
 
  ac_executable_p="test -x"
9178
 
else
9179
 
  ac_executable_p="test -f"
9180
 
fi
9181
 
rm -f conf$$.file
9182
 
 
9183
 
# Extract the first word of "msgmerge", so it can be a program name with args.
9184
 
set dummy msgmerge; ac_word=$2
9185
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186
 
$as_echo_n "checking for $ac_word... " >&6; }
9187
 
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
9188
 
  $as_echo_n "(cached) " >&6
9189
 
else
9190
 
  case "$MSGMERGE" in
9191
 
  [\\/]* | ?:[\\/]*)
9192
 
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9193
 
    ;;
9194
 
  *)
9195
 
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9196
 
    for ac_dir in $PATH; do
9197
 
      IFS="$ac_save_IFS"
9198
 
      test -z "$ac_dir" && ac_dir=.
9199
 
      for ac_exec_ext in '' $ac_executable_extensions; do
9200
 
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9201
 
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
9202
 
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
9203
 
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9204
 
            break 2
9205
 
          fi
9206
 
        fi
9207
 
      done
9208
 
    done
9209
 
    IFS="$ac_save_IFS"
9210
 
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9211
 
    ;;
9212
 
esac
9213
 
fi
9214
 
MSGMERGE="$ac_cv_path_MSGMERGE"
9215
 
if test "$MSGMERGE" != ":"; then
9216
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9217
 
$as_echo "$MSGMERGE" >&6; }
9218
 
else
9219
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220
 
$as_echo "no" >&6; }
9221
 
fi
9222
 
 
9223
 
 
9224
 
        test -n "$localedir" || localedir='${datadir}/locale'
9225
 
 
9226
 
 
9227
 
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
9228
 
 
9229
 
 
9230
 
  ac_config_commands="$ac_config_commands po-directories"
9231
 
 
9232
 
 
9233
 
 
9234
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
9235
 
$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
9236
 
if test "${ac_cv_gnu_library_2+set}" = set; then :
9237
 
  $as_echo_n "(cached) " >&6
9238
 
else
9239
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240
 
/* end confdefs.h.  */
9241
 
 
9242
 
#include <features.h>
9243
 
#ifdef __GNU_LIBRARY__
9244
 
 #if (__GLIBC__ >= 2)
9245
 
  Lucky GNU user
9246
 
 #endif
9247
 
#endif
9248
 
 
9249
 
_ACEOF
9250
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9251
 
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9252
 
  ac_cv_gnu_library_2=yes
9253
 
else
9254
 
  ac_cv_gnu_library_2=no
9255
 
fi
9256
 
rm -f conftest*
9257
 
 
9258
 
 
9259
 
 
9260
 
fi
9261
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
9262
 
$as_echo "$ac_cv_gnu_library_2" >&6; }
9263
 
 
9264
 
    GLIBC2="$ac_cv_gnu_library_2"
9265
 
 
9266
 
 
9267
 
 
9268
 
 
9269
 
  CFLAG_VISIBILITY=
9270
 
  HAVE_VISIBILITY=0
9271
 
  if test -n "$GCC"; then
9272
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
9273
 
$as_echo_n "checking for simple visibility declarations... " >&6; }
9274
 
    if test "${gl_cv_cc_visibility+set}" = set; then :
9275
 
  $as_echo_n "(cached) " >&6
9276
 
else
9277
 
 
9278
 
      gl_save_CFLAGS="$CFLAGS"
9279
 
      CFLAGS="$CFLAGS -fvisibility=hidden"
9280
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281
 
/* end confdefs.h.  */
9282
 
extern __attribute__((__visibility__("hidden"))) int hiddenvar;
9283
 
         extern __attribute__((__visibility__("default"))) int exportedvar;
9284
 
         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
9285
 
         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
9286
 
int
9287
 
main ()
9288
 
{
9289
 
 
9290
 
  ;
9291
 
  return 0;
9292
 
}
9293
 
_ACEOF
9294
 
if ac_fn_cxx_try_compile "$LINENO"; then :
9295
 
  gl_cv_cc_visibility=yes
9296
 
else
9297
 
  gl_cv_cc_visibility=no
9298
 
fi
9299
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300
 
      CFLAGS="$gl_save_CFLAGS"
9301
 
fi
9302
 
 
9303
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
9304
 
$as_echo "$gl_cv_cc_visibility" >&6; }
9305
 
    if test $gl_cv_cc_visibility = yes; then
9306
 
      CFLAG_VISIBILITY="-fvisibility=hidden"
9307
 
      HAVE_VISIBILITY=1
9308
 
    fi
9309
 
  fi
9310
 
 
9311
 
 
9312
 
 
9313
 
cat >>confdefs.h <<_ACEOF
9314
 
#define HAVE_VISIBILITY $HAVE_VISIBILITY
9315
 
_ACEOF
9316
 
 
9317
 
 
9318
 
 
9319
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
9320
 
$as_echo_n "checking for stdint.h... " >&6; }
9321
 
if test "${gl_cv_header_stdint_h+set}" = set; then :
9322
 
  $as_echo_n "(cached) " >&6
9323
 
else
9324
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325
 
/* end confdefs.h.  */
9326
 
#include <sys/types.h>
9327
 
#include <stdint.h>
9328
 
int
9329
 
main ()
9330
 
{
9331
 
uintmax_t i = (uintmax_t) -1; return !i;
9332
 
  ;
9333
 
  return 0;
9334
 
}
9335
 
_ACEOF
9336
 
if ac_fn_cxx_try_compile "$LINENO"; then :
9337
 
  gl_cv_header_stdint_h=yes
9338
 
else
9339
 
  gl_cv_header_stdint_h=no
9340
 
fi
9341
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342
 
fi
9343
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
9344
 
$as_echo "$gl_cv_header_stdint_h" >&6; }
9345
 
  if test $gl_cv_header_stdint_h = yes; then
9346
 
 
9347
 
cat >>confdefs.h <<_ACEOF
9348
 
#define HAVE_STDINT_H_WITH_UINTMAX 1
9349
 
_ACEOF
9350
 
 
9351
 
  fi
9352
 
 
9353
 
 
9354
 
 
9355
 
 
9356
 
  for ac_header in $ac_header_list
9357
 
do :
9358
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9359
 
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9360
 
"
9361
 
eval as_val=\$$as_ac_Header
9362
 
   if test "x$as_val" = x""yes; then :
9363
 
  cat >>confdefs.h <<_ACEOF
9364
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9365
 
_ACEOF
9366
 
 
9367
 
fi
9368
 
 
9369
 
done
9370
 
 
9371
 
 
9372
 
 
9373
 
 
9374
 
 
9375
 
 
9376
 
 
9377
 
 
9378
 
for ac_func in getpagesize
9379
 
do :
9380
 
  ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9381
 
if test "x$ac_cv_func_getpagesize" = x""yes; then :
9382
 
  cat >>confdefs.h <<_ACEOF
9383
 
#define HAVE_GETPAGESIZE 1
9384
 
_ACEOF
9385
 
 
9386
 
fi
9387
 
done
9388
 
 
9389
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9390
 
$as_echo_n "checking for working mmap... " >&6; }
9391
 
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9392
 
  $as_echo_n "(cached) " >&6
9393
 
else
9394
 
  if test "$cross_compiling" = yes; then :
9395
 
  ac_cv_func_mmap_fixed_mapped=no
9396
 
else
9397
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398
 
/* end confdefs.h.  */
9399
 
$ac_includes_default
9400
 
/* malloc might have been renamed as rpl_malloc. */
9401
 
#undef malloc
9402
 
 
9403
 
/* Thanks to Mike Haertel and Jim Avera for this test.
9404
 
   Here is a matrix of mmap possibilities:
9405
 
        mmap private not fixed
9406
 
        mmap private fixed at somewhere currently unmapped
9407
 
        mmap private fixed at somewhere already mapped
9408
 
        mmap shared not fixed
9409
 
        mmap shared fixed at somewhere currently unmapped
9410
 
        mmap shared fixed at somewhere already mapped
9411
 
   For private mappings, we should verify that changes cannot be read()
9412
 
   back from the file, nor mmap's back from the file at a different
9413
 
   address.  (There have been systems where private was not correctly
9414
 
   implemented like the infamous i386 svr4.0, and systems where the
9415
 
   VM page cache was not coherent with the file system buffer cache
9416
 
   like early versions of FreeBSD and possibly contemporary NetBSD.)
9417
 
   For shared mappings, we should conversely verify that changes get
9418
 
   propagated back to all the places they're supposed to be.
9419
 
 
9420
 
   Grep wants private fixed already mapped.
9421
 
   The main things grep needs to know about mmap are:
9422
 
   * does it exist and is it safe to write into the mmap'd area
9423
 
   * how to use it (BSD variants)  */
9424
 
 
9425
 
#include <fcntl.h>
9426
 
#include <sys/mman.h>
9427
 
 
9428
 
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9429
 
char *malloc ();
9430
 
#endif
9431
 
 
9432
 
/* This mess was copied from the GNU getpagesize.h.  */
9433
 
#ifndef HAVE_GETPAGESIZE
9434
 
# ifdef _SC_PAGESIZE
9435
 
#  define getpagesize() sysconf(_SC_PAGESIZE)
9436
 
# else /* no _SC_PAGESIZE */
9437
 
#  ifdef HAVE_SYS_PARAM_H
9438
 
#   include <sys/param.h>
9439
 
#   ifdef EXEC_PAGESIZE
9440
 
#    define getpagesize() EXEC_PAGESIZE
9441
 
#   else /* no EXEC_PAGESIZE */
9442
 
#    ifdef NBPG
9443
 
#     define getpagesize() NBPG * CLSIZE
9444
 
#     ifndef CLSIZE
9445
 
#      define CLSIZE 1
9446
 
#     endif /* no CLSIZE */
9447
 
#    else /* no NBPG */
9448
 
#     ifdef NBPC
9449
 
#      define getpagesize() NBPC
9450
 
#     else /* no NBPC */
9451
 
#      ifdef PAGESIZE
9452
 
#       define getpagesize() PAGESIZE
9453
 
#      endif /* PAGESIZE */
9454
 
#     endif /* no NBPC */
9455
 
#    endif /* no NBPG */
9456
 
#   endif /* no EXEC_PAGESIZE */
9457
 
#  else /* no HAVE_SYS_PARAM_H */
9458
 
#   define getpagesize() 8192   /* punt totally */
9459
 
#  endif /* no HAVE_SYS_PARAM_H */
9460
 
# endif /* no _SC_PAGESIZE */
9461
 
 
9462
 
#endif /* no HAVE_GETPAGESIZE */
9463
 
 
9464
 
int
9465
 
main ()
9466
 
{
9467
 
  char *data, *data2, *data3;
9468
 
  const char *cdata2;
9469
 
  int i, pagesize;
9470
 
  int fd, fd2;
9471
 
 
9472
 
  pagesize = getpagesize ();
9473
 
 
9474
 
  /* First, make a file with some known garbage in it. */
9475
 
  data = (char *) malloc (pagesize);
9476
 
  if (!data)
9477
 
    return 1;
9478
 
  for (i = 0; i < pagesize; ++i)
9479
 
    *(data + i) = rand ();
9480
 
  umask (0);
9481
 
  fd = creat ("conftest.mmap", 0600);
9482
 
  if (fd < 0)
9483
 
    return 2;
9484
 
  if (write (fd, data, pagesize) != pagesize)
9485
 
    return 3;
9486
 
  close (fd);
9487
 
 
9488
 
  /* Next, check that the tail of a page is zero-filled.  File must have
9489
 
     non-zero length, otherwise we risk SIGBUS for entire page.  */
9490
 
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9491
 
  if (fd2 < 0)
9492
 
    return 4;
9493
 
  cdata2 = "";
9494
 
  if (write (fd2, cdata2, 1) != 1)
9495
 
    return 5;
9496
 
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9497
 
  if (data2 == MAP_FAILED)
9498
 
    return 6;
9499
 
  for (i = 0; i < pagesize; ++i)
9500
 
    if (*(data2 + i))
9501
 
      return 7;
9502
 
  close (fd2);
9503
 
  if (munmap (data2, pagesize))
9504
 
    return 8;
9505
 
 
9506
 
  /* Next, try to mmap the file at a fixed address which already has
9507
 
     something else allocated at it.  If we can, also make sure that
9508
 
     we see the same garbage.  */
9509
 
  fd = open ("conftest.mmap", O_RDWR);
9510
 
  if (fd < 0)
9511
 
    return 9;
9512
 
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9513
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
9514
 
    return 10;
9515
 
  for (i = 0; i < pagesize; ++i)
9516
 
    if (*(data + i) != *(data2 + i))
9517
 
      return 11;
9518
 
 
9519
 
  /* Finally, make sure that changes to the mapped area do not
9520
 
     percolate back to the file as seen by read().  (This is a bug on
9521
 
     some variants of i386 svr4.0.)  */
9522
 
  for (i = 0; i < pagesize; ++i)
9523
 
    *(data2 + i) = *(data2 + i) + 1;
9524
 
  data3 = (char *) malloc (pagesize);
9525
 
  if (!data3)
9526
 
    return 12;
9527
 
  if (read (fd, data3, pagesize) != pagesize)
9528
 
    return 13;
9529
 
  for (i = 0; i < pagesize; ++i)
9530
 
    if (*(data + i) != *(data3 + i))
9531
 
      return 14;
9532
 
  close (fd);
9533
 
  return 0;
9534
 
}
9535
 
_ACEOF
9536
 
if ac_fn_cxx_try_run "$LINENO"; then :
9537
 
  ac_cv_func_mmap_fixed_mapped=yes
9538
 
else
9539
 
  ac_cv_func_mmap_fixed_mapped=no
9540
 
fi
9541
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9542
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9543
 
fi
9544
 
 
9545
 
fi
9546
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9547
 
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9548
 
if test $ac_cv_func_mmap_fixed_mapped = yes; then
9549
 
 
9550
 
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9551
 
 
9552
 
fi
9553
 
rm -f conftest.mmap conftest.txt
9554
 
 
9555
 
 
9556
 
 
9557
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
9558
 
$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
9559
 
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
9560
 
  $as_echo_n "(cached) " >&6
9561
 
else
9562
 
 
9563
 
      gt_cv_int_divbyzero_sigfpe=
9564
 
      case "$host_os" in
9565
 
        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
9566
 
          # On MacOS X 10.2 or newer, just assume the same as when cross-
9567
 
          # compiling. If we were to perform the real test, 1 Crash Report
9568
 
          # dialog window would pop up.
9569
 
          case "$host_cpu" in
9570
 
            i[34567]86 | x86_64)
9571
 
              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
9572
 
          esac
9573
 
          ;;
9574
 
      esac
9575
 
      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
9576
 
        if test "$cross_compiling" = yes; then :
9577
 
 
9578
 
            # Guess based on the CPU.
9579
 
            case "$host_cpu" in
9580
 
              alpha* | i[34567]86 | x86_64 | m68k | s390*)
9581
 
                gt_cv_int_divbyzero_sigfpe="guessing yes";;
9582
 
              *)
9583
 
                gt_cv_int_divbyzero_sigfpe="guessing no";;
9584
 
            esac
9585
 
 
9586
 
else
9587
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588
 
/* end confdefs.h.  */
9589
 
 
9590
 
#include <stdlib.h>
9591
 
#include <signal.h>
9592
 
 
9593
 
static void
9594
 
sigfpe_handler (int sig)
9595
 
{
9596
 
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9597
 
  exit (sig != SIGFPE);
9598
 
}
9599
 
 
9600
 
int x = 1;
9601
 
int y = 0;
9602
 
int z;
9603
 
int nan;
9604
 
 
9605
 
int main ()
9606
 
{
9607
 
  signal (SIGFPE, sigfpe_handler);
9608
 
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9609
 
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9610
 
  signal (SIGTRAP, sigfpe_handler);
9611
 
#endif
9612
 
/* Linux/SPARC yields signal SIGILL.  */
9613
 
#if defined (__sparc__) && defined (__linux__)
9614
 
  signal (SIGILL, sigfpe_handler);
9615
 
#endif
9616
 
 
9617
 
  z = x / y;
9618
 
  nan = y / y;
9619
 
  exit (1);
9620
 
}
9621
 
 
9622
 
_ACEOF
9623
 
if ac_fn_cxx_try_run "$LINENO"; then :
9624
 
  gt_cv_int_divbyzero_sigfpe=yes
9625
 
else
9626
 
  gt_cv_int_divbyzero_sigfpe=no
9627
 
fi
9628
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9629
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
9630
 
fi
9631
 
 
9632
 
      fi
9633
 
 
9634
 
fi
9635
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
9636
 
$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
9637
 
  case "$gt_cv_int_divbyzero_sigfpe" in
9638
 
    *yes) value=1;;
9639
 
    *) value=0;;
9640
 
  esac
9641
 
 
9642
 
cat >>confdefs.h <<_ACEOF
9643
 
#define INTDIV0_RAISES_SIGFPE $value
9644
 
_ACEOF
9645
 
 
9646
 
 
9647
 
 
9648
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9649
 
$as_echo_n "checking for inttypes.h... " >&6; }
9650
 
if test "${gl_cv_header_inttypes_h+set}" = set; then :
9651
 
  $as_echo_n "(cached) " >&6
9652
 
else
9653
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654
 
/* end confdefs.h.  */
9655
 
#include <sys/types.h>
9656
 
#include <inttypes.h>
9657
 
int
9658
 
main ()
9659
 
{
9660
 
uintmax_t i = (uintmax_t) -1; return !i;
9661
 
  ;
9662
 
  return 0;
9663
 
}
9664
 
_ACEOF
9665
 
if ac_fn_cxx_try_compile "$LINENO"; then :
9666
 
  gl_cv_header_inttypes_h=yes
9667
 
else
9668
 
  gl_cv_header_inttypes_h=no
9669
 
fi
9670
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671
 
fi
9672
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
9673
 
$as_echo "$gl_cv_header_inttypes_h" >&6; }
9674
 
  if test $gl_cv_header_inttypes_h = yes; then
9675
 
 
9676
 
cat >>confdefs.h <<_ACEOF
9677
 
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
9678
 
_ACEOF
9679
 
 
9680
 
  fi
9681
 
 
9682
 
 
9683
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
9684
 
$as_echo_n "checking for unsigned long long int... " >&6; }
9685
 
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
9686
 
  $as_echo_n "(cached) " >&6
9687
 
else
9688
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689
 
/* end confdefs.h.  */
9690
 
 
9691
 
  /* Test preprocessor.  */
9692
 
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9693
 
        error in preprocessor;
9694
 
      #endif
9695
 
      #if ! (18446744073709551615ULL <= -1ull)
9696
 
        error in preprocessor;
9697
 
      #endif
9698
 
      /* Test literals.  */
9699
 
      long long int ll = 9223372036854775807ll;
9700
 
      long long int nll = -9223372036854775807LL;
9701
 
      unsigned long long int ull = 18446744073709551615ULL;
9702
 
      /* Test constant expressions.   */
9703
 
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9704
 
                     ? 1 : -1)];
9705
 
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9706
 
                     ? 1 : -1)];
9707
 
      int i = 63;
9708
 
int
9709
 
main ()
9710
 
{
9711
 
/* Test availability of runtime routines for shift and division.  */
9712
 
      long long int llmax = 9223372036854775807ll;
9713
 
      unsigned long long int ullmax = 18446744073709551615ull;
9714
 
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9715
 
              | (llmax / ll) | (llmax % ll)
9716
 
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9717
 
              | (ullmax / ull) | (ullmax % ull));
9718
 
  ;
9719
 
  return 0;
9720
 
}
9721
 
 
9722
 
_ACEOF
9723
 
if ac_fn_cxx_try_link "$LINENO"; then :
9724
 
  ac_cv_type_unsigned_long_long_int=yes
9725
 
else
9726
 
  ac_cv_type_unsigned_long_long_int=no
9727
 
fi
9728
 
rm -f core conftest.err conftest.$ac_objext \
9729
 
    conftest$ac_exeext conftest.$ac_ext
9730
 
fi
9731
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9732
 
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9733
 
  if test $ac_cv_type_unsigned_long_long_int = yes; then
9734
 
 
9735
 
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9736
 
 
9737
 
  fi
9738
 
 
9739
 
 
9740
 
 
9741
 
 
9742
 
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9743
 
 
9744
 
    test $ac_cv_type_unsigned_long_long_int = yes \
9745
 
      && ac_type='unsigned long long' \
9746
 
      || ac_type='unsigned long'
9747
 
 
9748
 
cat >>confdefs.h <<_ACEOF
9749
 
#define uintmax_t $ac_type
9750
 
_ACEOF
9751
 
 
9752
 
  else
9753
 
 
9754
 
$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
9755
 
 
9756
 
  fi
9757
 
 
9758
 
 
9759
 
  for ac_header in inttypes.h
9760
 
do :
9761
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9762
 
if test "x$ac_cv_header_inttypes_h" = x""yes; then :
9763
 
  cat >>confdefs.h <<_ACEOF
9764
 
#define HAVE_INTTYPES_H 1
9765
 
_ACEOF
9766
 
 
9767
 
fi
9768
 
 
9769
 
done
9770
 
 
9771
 
  if test $ac_cv_header_inttypes_h = yes; then
9772
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
9773
 
$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
9774
 
if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
9775
 
  $as_echo_n "(cached) " >&6
9776
 
else
9777
 
 
9778
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779
 
/* end confdefs.h.  */
9780
 
#include <inttypes.h>
9781
 
#ifdef PRId32
9782
 
char *p = PRId32;
9783
 
#endif
9784
 
 
9785
 
int
9786
 
main ()
9787
 
{
9788
 
 
9789
 
  ;
9790
 
  return 0;
9791
 
}
9792
 
_ACEOF
9793
 
if ac_fn_cxx_try_compile "$LINENO"; then :
9794
 
  gt_cv_inttypes_pri_broken=no
9795
 
else
9796
 
  gt_cv_inttypes_pri_broken=yes
9797
 
fi
9798
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799
 
 
9800
 
fi
9801
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
9802
 
$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
9803
 
  fi
9804
 
  if test "$gt_cv_inttypes_pri_broken" = yes; then
9805
 
 
9806
 
cat >>confdefs.h <<_ACEOF
9807
 
#define PRI_MACROS_BROKEN 1
9808
 
_ACEOF
9809
 
 
9810
 
    PRI_MACROS_BROKEN=1
9811
 
  else
9812
 
    PRI_MACROS_BROKEN=0
9813
 
  fi
9814
 
 
9815
 
 
9816
 
 
9817
 
 
9818
 
 
9819
 
 
9820
 
    # Check whether --enable-threads was given.
9821
 
if test "${enable_threads+set}" = set; then :
9822
 
  enableval=$enable_threads; gl_use_threads=$enableval
9823
 
else
9824
 
  case "$host_os" in
9825
 
                            osf*) gl_use_threads=no ;;
9826
 
       *)    gl_use_threads=yes ;;
9827
 
     esac
9828
 
 
9829
 
fi
9830
 
 
9831
 
  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9832
 
    # For using <pthread.h>:
9833
 
    case "$host_os" in
9834
 
      osf*)
9835
 
        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
9836
 
        # groks <pthread.h>. cc also understands the flag -pthread, but
9837
 
        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
9838
 
        # 2. putting a flag into CPPFLAGS that has an effect on the linker
9839
 
        # causes the AC_TRY_LINK test below to succeed unexpectedly,
9840
 
        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
9841
 
        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
9842
 
        ;;
9843
 
    esac
9844
 
    # Some systems optimize for single-threaded programs by default, and
9845
 
    # need special flags to disable these optimizations. For example, the
9846
 
    # definition of 'errno' in <errno.h>.
9847
 
    case "$host_os" in
9848
 
      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
9849
 
      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
9850
 
    esac
9851
 
  fi
9852
 
 
9853
 
 
9854
 
 
9855
 
 
9856
 
 
9857
 
      if test "X$prefix" = "XNONE"; then
9858
 
    acl_final_prefix="$ac_default_prefix"
9859
 
  else
9860
 
    acl_final_prefix="$prefix"
9861
 
  fi
9862
 
  if test "X$exec_prefix" = "XNONE"; then
9863
 
    acl_final_exec_prefix='${prefix}'
9864
 
  else
9865
 
    acl_final_exec_prefix="$exec_prefix"
9866
 
  fi
9867
 
  acl_save_prefix="$prefix"
9868
 
  prefix="$acl_final_prefix"
9869
 
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9870
 
  prefix="$acl_save_prefix"
9871
 
 
9872
 
 
9873
 
# Check whether --with-gnu-ld was given.
9874
 
if test "${with_gnu_ld+set}" = set; then :
9875
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9876
 
else
9877
 
  with_gnu_ld=no
9878
 
fi
9879
 
 
9880
 
# Prepare PATH_SEPARATOR.
9881
 
# The user is always right.
9882
 
if test "${PATH_SEPARATOR+set}" != set; then
9883
 
  echo "#! /bin/sh" >conf$$.sh
9884
 
  echo  "exit 0"   >>conf$$.sh
9885
 
  chmod +x conf$$.sh
9886
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9887
 
    PATH_SEPARATOR=';'
9888
 
  else
9889
 
    PATH_SEPARATOR=:
9890
 
  fi
9891
 
  rm -f conf$$.sh
9892
 
fi
9893
 
ac_prog=ld
9894
 
if test "$GCC" = yes; then
9895
 
  # Check if gcc -print-prog-name=ld gives a path.
9896
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9897
 
$as_echo_n "checking for ld used by GCC... " >&6; }
9898
 
  case $host in
9899
 
  *-*-mingw*)
9900
 
    # gcc leaves a trailing carriage return which upsets mingw
9901
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9902
 
  *)
9903
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9904
 
  esac
9905
 
  case $ac_prog in
9906
 
    # Accept absolute paths.
9907
 
    [\\/]* | [A-Za-z]:[\\/]*)
9908
 
      re_direlt='/[^/][^/]*/\.\./'
9909
 
      # Canonicalize the path of ld
9910
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9911
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9912
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9913
 
      done
9914
 
      test -z "$LD" && LD="$ac_prog"
9915
 
      ;;
9916
 
  "")
9917
 
    # If it fails, then pretend we aren't using GCC.
9918
 
    ac_prog=ld
9919
 
    ;;
9920
 
  *)
9921
 
    # If it is relative, then search for the first ld in PATH.
9922
 
    with_gnu_ld=unknown
9923
 
    ;;
9924
 
  esac
9925
 
elif test "$with_gnu_ld" = yes; then
9926
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9927
 
$as_echo_n "checking for GNU ld... " >&6; }
9928
 
else
9929
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9930
 
$as_echo_n "checking for non-GNU ld... " >&6; }
9931
 
fi
9932
 
if test "${acl_cv_path_LD+set}" = set; then :
9933
 
  $as_echo_n "(cached) " >&6
9934
 
else
9935
 
  if test -z "$LD"; then
9936
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9937
 
  for ac_dir in $PATH; do
9938
 
    test -z "$ac_dir" && ac_dir=.
9939
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9940
 
      acl_cv_path_LD="$ac_dir/$ac_prog"
9941
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
9942
 
      # but apparently some GNU ld's only accept -v.
9943
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
9944
 
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9945
 
      *GNU* | *'with BFD'*)
9946
 
        test "$with_gnu_ld" != no && break ;;
9947
 
      *)
9948
 
        test "$with_gnu_ld" != yes && break ;;
9949
 
      esac
9950
 
    fi
9951
 
  done
9952
 
  IFS="$ac_save_ifs"
9953
 
else
9954
 
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
9955
 
fi
9956
 
fi
9957
 
 
9958
 
LD="$acl_cv_path_LD"
9959
 
if test -n "$LD"; then
9960
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9961
 
$as_echo "$LD" >&6; }
9962
 
else
9963
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964
 
$as_echo "no" >&6; }
9965
 
fi
9966
 
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9967
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9968
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9969
 
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9970
 
  $as_echo_n "(cached) " >&6
9971
 
else
9972
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9973
 
case `$LD -v 2>&1 </dev/null` in
9974
 
*GNU* | *'with BFD'*)
9975
 
  acl_cv_prog_gnu_ld=yes ;;
9976
 
*)
9977
 
  acl_cv_prog_gnu_ld=no ;;
9978
 
esac
9979
 
fi
9980
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9981
 
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
9982
 
with_gnu_ld=$acl_cv_prog_gnu_ld
9983
 
 
9984
 
 
9985
 
 
9986
 
 
9987
 
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9988
 
$as_echo_n "checking for shared library run path origin... " >&6; }
9989
 
if test "${acl_cv_rpath+set}" = set; then :
9990
 
  $as_echo_n "(cached) " >&6
9991
 
else
9992
 
 
9993
 
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9994
 
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9995
 
    . ./conftest.sh
9996
 
    rm -f ./conftest.sh
9997
 
    acl_cv_rpath=done
9998
 
 
9999
 
fi
10000
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10001
 
$as_echo "$acl_cv_rpath" >&6; }
10002
 
  wl="$acl_cv_wl"
10003
 
  acl_libext="$acl_cv_libext"
10004
 
  acl_shlibext="$acl_cv_shlibext"
10005
 
  acl_libname_spec="$acl_cv_libname_spec"
10006
 
  acl_library_names_spec="$acl_cv_library_names_spec"
10007
 
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10008
 
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10009
 
  acl_hardcode_direct="$acl_cv_hardcode_direct"
10010
 
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10011
 
    # Check whether --enable-rpath was given.
10012
 
if test "${enable_rpath+set}" = set; then :
10013
 
  enableval=$enable_rpath; :
10014
 
else
10015
 
  enable_rpath=yes
10016
 
fi
10017
 
 
10018
 
 
10019
 
 
10020
 
                  acl_libdirstem=lib
10021
 
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10022
 
  if test -n "$searchpath"; then
10023
 
    acl_save_IFS="${IFS=        }"; IFS=":"
10024
 
    for searchdir in $searchpath; do
10025
 
      if test -d "$searchdir"; then
10026
 
        case "$searchdir" in
10027
 
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10028
 
          *) searchdir=`cd "$searchdir" && pwd`
10029
 
             case "$searchdir" in
10030
 
               */lib64 ) acl_libdirstem=lib64 ;;
10031
 
             esac ;;
10032
 
        esac
10033
 
      fi
10034
 
    done
10035
 
    IFS="$acl_save_IFS"
10036
 
  fi
10037
 
 
10038
 
 
10039
 
 
10040
 
  gl_threads_api=none
10041
 
  LIBTHREAD=
10042
 
  LTLIBTHREAD=
10043
 
  LIBMULTITHREAD=
10044
 
  LTLIBMULTITHREAD=
10045
 
  if test "$gl_use_threads" != no; then
10046
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
10047
 
$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
10048
 
    gl_have_weak=no
10049
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050
 
/* end confdefs.h.  */
10051
 
extern void xyzzy ();
10052
 
#pragma weak xyzzy
10053
 
int
10054
 
main ()
10055
 
{
10056
 
xyzzy();
10057
 
  ;
10058
 
  return 0;
10059
 
}
10060
 
_ACEOF
10061
 
if ac_fn_cxx_try_link "$LINENO"; then :
10062
 
  gl_have_weak=yes
10063
 
fi
10064
 
rm -f core conftest.err conftest.$ac_objext \
10065
 
    conftest$ac_exeext conftest.$ac_ext
10066
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
10067
 
$as_echo "$gl_have_weak" >&6; }
10068
 
    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
10069
 
      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
10070
 
      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
10071
 
      ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10072
 
if test "x$ac_cv_header_pthread_h" = x""yes; then :
10073
 
  gl_have_pthread_h=yes
10074
 
else
10075
 
  gl_have_pthread_h=no
10076
 
fi
10077
 
 
10078
 
 
10079
 
      if test "$gl_have_pthread_h" = yes; then
10080
 
        # Other possible tests:
10081
 
        #   -lpthreads (FSU threads, PCthreads)
10082
 
        #   -lgthreads
10083
 
        gl_have_pthread=
10084
 
        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
10085
 
        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
10086
 
        # the second one only in libpthread, and lock.c needs it.
10087
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088
 
/* end confdefs.h.  */
10089
 
#include <pthread.h>
10090
 
int
10091
 
main ()
10092
 
{
10093
 
pthread_mutex_lock((pthread_mutex_t*)0);
10094
 
           pthread_mutexattr_init((pthread_mutexattr_t*)0);
10095
 
  ;
10096
 
  return 0;
10097
 
}
10098
 
_ACEOF
10099
 
if ac_fn_cxx_try_link "$LINENO"; then :
10100
 
  gl_have_pthread=yes
10101
 
fi
10102
 
rm -f core conftest.err conftest.$ac_objext \
10103
 
    conftest$ac_exeext conftest.$ac_ext
10104
 
        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
10105
 
        # since it is defined as a macro on OSF/1.)
10106
 
        if test -n "$gl_have_pthread"; then
10107
 
          # The program links fine without libpthread. But it may actually
10108
 
          # need to link with libpthread in order to create multiple threads.
10109
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10110
 
$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10111
 
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
10112
 
  $as_echo_n "(cached) " >&6
10113
 
else
10114
 
  ac_check_lib_save_LIBS=$LIBS
10115
 
LIBS="-lpthread  $LIBS"
10116
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117
 
/* end confdefs.h.  */
10118
 
 
10119
 
/* Override any GCC internal prototype to avoid an error.
10120
 
   Use char because int might match the return type of a GCC
10121
 
   builtin and then its argument prototype would still apply.  */
10122
 
#ifdef __cplusplus
10123
 
extern "C"
10124
 
#endif
10125
 
char pthread_kill ();
10126
 
int
10127
 
main ()
10128
 
{
10129
 
return pthread_kill ();
10130
 
  ;
10131
 
  return 0;
10132
 
}
10133
 
_ACEOF
10134
 
if ac_fn_cxx_try_link "$LINENO"; then :
10135
 
  ac_cv_lib_pthread_pthread_kill=yes
10136
 
else
10137
 
  ac_cv_lib_pthread_pthread_kill=no
10138
 
fi
10139
 
rm -f core conftest.err conftest.$ac_objext \
10140
 
    conftest$ac_exeext conftest.$ac_ext
10141
 
LIBS=$ac_check_lib_save_LIBS
10142
 
fi
10143
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10144
 
$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10145
 
if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
10146
 
  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
10147
 
             # On Solaris and HP-UX, most pthread functions exist also in libc.
10148
 
             # Therefore pthread_in_use() needs to actually try to create a
10149
 
             # thread: pthread_create from libc will fail, whereas
10150
 
             # pthread_create will actually create a thread.
10151
 
             case "$host_os" in
10152
 
               solaris* | hpux*)
10153
 
 
10154
 
$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
10155
 
 
10156
 
             esac
10157
 
 
10158
 
fi
10159
 
 
10160
 
        else
10161
 
          # Some library is needed. Try libpthread and libc_r.
10162
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10163
 
$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10164
 
if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
10165
 
  $as_echo_n "(cached) " >&6
10166
 
else
10167
 
  ac_check_lib_save_LIBS=$LIBS
10168
 
LIBS="-lpthread  $LIBS"
10169
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170
 
/* end confdefs.h.  */
10171
 
 
10172
 
/* Override any GCC internal prototype to avoid an error.
10173
 
   Use char because int might match the return type of a GCC
10174
 
   builtin and then its argument prototype would still apply.  */
10175
 
#ifdef __cplusplus
10176
 
extern "C"
10177
 
#endif
10178
 
char pthread_kill ();
10179
 
int
10180
 
main ()
10181
 
{
10182
 
return pthread_kill ();
10183
 
  ;
10184
 
  return 0;
10185
 
}
10186
 
_ACEOF
10187
 
if ac_fn_cxx_try_link "$LINENO"; then :
10188
 
  ac_cv_lib_pthread_pthread_kill=yes
10189
 
else
10190
 
  ac_cv_lib_pthread_pthread_kill=no
10191
 
fi
10192
 
rm -f core conftest.err conftest.$ac_objext \
10193
 
    conftest$ac_exeext conftest.$ac_ext
10194
 
LIBS=$ac_check_lib_save_LIBS
10195
 
fi
10196
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10197
 
$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10198
 
if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
10199
 
  gl_have_pthread=yes
10200
 
             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
10201
 
             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
10202
 
fi
10203
 
 
10204
 
          if test -z "$gl_have_pthread"; then
10205
 
            # For FreeBSD 4.
10206
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
10207
 
$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
10208
 
if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
10209
 
  $as_echo_n "(cached) " >&6
10210
 
else
10211
 
  ac_check_lib_save_LIBS=$LIBS
10212
 
LIBS="-lc_r  $LIBS"
10213
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214
 
/* end confdefs.h.  */
10215
 
 
10216
 
/* Override any GCC internal prototype to avoid an error.
10217
 
   Use char because int might match the return type of a GCC
10218
 
   builtin and then its argument prototype would still apply.  */
10219
 
#ifdef __cplusplus
10220
 
extern "C"
10221
 
#endif
10222
 
char pthread_kill ();
10223
 
int
10224
 
main ()
10225
 
{
10226
 
return pthread_kill ();
10227
 
  ;
10228
 
  return 0;
10229
 
}
10230
 
_ACEOF
10231
 
if ac_fn_cxx_try_link "$LINENO"; then :
10232
 
  ac_cv_lib_c_r_pthread_kill=yes
10233
 
else
10234
 
  ac_cv_lib_c_r_pthread_kill=no
10235
 
fi
10236
 
rm -f core conftest.err conftest.$ac_objext \
10237
 
    conftest$ac_exeext conftest.$ac_ext
10238
 
LIBS=$ac_check_lib_save_LIBS
10239
 
fi
10240
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
10241
 
$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
10242
 
if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
10243
 
  gl_have_pthread=yes
10244
 
               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
10245
 
               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
10246
 
fi
10247
 
 
10248
 
          fi
10249
 
        fi
10250
 
        if test -n "$gl_have_pthread"; then
10251
 
          gl_threads_api=posix
10252
 
 
10253
 
$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
10254
 
 
10255
 
          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10256
 
            if test $gl_have_weak = yes; then
10257
 
 
10258
 
$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
10259
 
 
10260
 
              LIBTHREAD=
10261
 
              LTLIBTHREAD=
10262
 
            fi
10263
 
          fi
10264
 
          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
10265
 
          # pthread_rwlock_* functions.
10266
 
          ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
10267
 
"
10268
 
if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
10269
 
 
10270
 
$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
10271
 
 
10272
 
fi
10273
 
 
10274
 
          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
10275
 
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276
 
/* end confdefs.h.  */
10277
 
#include <pthread.h>
10278
 
int
10279
 
main ()
10280
 
{
10281
 
#if __FreeBSD__ == 4
10282
 
error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
10283
 
#else
10284
 
int x = (int)PTHREAD_MUTEX_RECURSIVE;
10285
 
return !x;
10286
 
#endif
10287
 
  ;
10288
 
  return 0;
10289
 
}
10290
 
_ACEOF
10291
 
if ac_fn_cxx_try_compile "$LINENO"; then :
10292
 
 
10293
 
$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
10294
 
 
10295
 
fi
10296
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297
 
        fi
10298
 
      fi
10299
 
    fi
10300
 
    if test -z "$gl_have_pthread"; then
10301
 
      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
10302
 
        gl_have_solaristhread=
10303
 
        gl_save_LIBS="$LIBS"
10304
 
        LIBS="$LIBS -lthread"
10305
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306
 
/* end confdefs.h.  */
10307
 
#include <thread.h>
10308
 
#include <synch.h>
10309
 
int
10310
 
main ()
10311
 
{
10312
 
thr_self();
10313
 
  ;
10314
 
  return 0;
10315
 
}
10316
 
_ACEOF
10317
 
if ac_fn_cxx_try_link "$LINENO"; then :
10318
 
  gl_have_solaristhread=yes
10319
 
fi
10320
 
rm -f core conftest.err conftest.$ac_objext \
10321
 
    conftest$ac_exeext conftest.$ac_ext
10322
 
        LIBS="$gl_save_LIBS"
10323
 
        if test -n "$gl_have_solaristhread"; then
10324
 
          gl_threads_api=solaris
10325
 
          LIBTHREAD=-lthread
10326
 
          LTLIBTHREAD=-lthread
10327
 
          LIBMULTITHREAD="$LIBTHREAD"
10328
 
          LTLIBMULTITHREAD="$LTLIBTHREAD"
10329
 
 
10330
 
$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
10331
 
 
10332
 
          if test $gl_have_weak = yes; then
10333
 
 
10334
 
$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
10335
 
 
10336
 
            LIBTHREAD=
10337
 
            LTLIBTHREAD=
10338
 
          fi
10339
 
        fi
10340
 
      fi
10341
 
    fi
10342
 
    if test "$gl_use_threads" = pth; then
10343
 
      gl_save_CPPFLAGS="$CPPFLAGS"
10344
 
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
10350
 
$as_echo_n "checking how to link with libpth... " >&6; }
10351
 
if test "${ac_cv_libpth_libs+set}" = set; then :
10352
 
  $as_echo_n "(cached) " >&6
10353
 
else
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
    use_additional=yes
10360
 
 
10361
 
  acl_save_prefix="$prefix"
10362
 
  prefix="$acl_final_prefix"
10363
 
  acl_save_exec_prefix="$exec_prefix"
10364
 
  exec_prefix="$acl_final_exec_prefix"
10365
 
 
10366
 
    eval additional_includedir=\"$includedir\"
10367
 
    eval additional_libdir=\"$libdir\"
10368
 
 
10369
 
  exec_prefix="$acl_save_exec_prefix"
10370
 
  prefix="$acl_save_prefix"
10371
 
 
10372
 
 
10373
 
# Check whether --with-libpth-prefix was given.
10374
 
if test "${with_libpth_prefix+set}" = set; then :
10375
 
  withval=$with_libpth_prefix;
10376
 
    if test "X$withval" = "Xno"; then
10377
 
      use_additional=no
10378
 
    else
10379
 
      if test "X$withval" = "X"; then
10380
 
 
10381
 
  acl_save_prefix="$prefix"
10382
 
  prefix="$acl_final_prefix"
10383
 
  acl_save_exec_prefix="$exec_prefix"
10384
 
  exec_prefix="$acl_final_exec_prefix"
10385
 
 
10386
 
          eval additional_includedir=\"$includedir\"
10387
 
          eval additional_libdir=\"$libdir\"
10388
 
 
10389
 
  exec_prefix="$acl_save_exec_prefix"
10390
 
  prefix="$acl_save_prefix"
10391
 
 
10392
 
      else
10393
 
        additional_includedir="$withval/include"
10394
 
        additional_libdir="$withval/$acl_libdirstem"
10395
 
      fi
10396
 
    fi
10397
 
 
10398
 
fi
10399
 
 
10400
 
      LIBPTH=
10401
 
  LTLIBPTH=
10402
 
  INCPTH=
10403
 
  LIBPTH_PREFIX=
10404
 
  rpathdirs=
10405
 
  ltrpathdirs=
10406
 
  names_already_handled=
10407
 
  names_next_round='pth '
10408
 
  while test -n "$names_next_round"; do
10409
 
    names_this_round="$names_next_round"
10410
 
    names_next_round=
10411
 
    for name in $names_this_round; do
10412
 
      already_handled=
10413
 
      for n in $names_already_handled; do
10414
 
        if test "$n" = "$name"; then
10415
 
          already_handled=yes
10416
 
          break
10417
 
        fi
10418
 
      done
10419
 
      if test -z "$already_handled"; then
10420
 
        names_already_handled="$names_already_handled $name"
10421
 
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10422
 
        eval value=\"\$HAVE_LIB$uppername\"
10423
 
        if test -n "$value"; then
10424
 
          if test "$value" = yes; then
10425
 
            eval value=\"\$LIB$uppername\"
10426
 
            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
10427
 
            eval value=\"\$LTLIB$uppername\"
10428
 
            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
10429
 
          else
10430
 
                                    :
10431
 
          fi
10432
 
        else
10433
 
                              found_dir=
10434
 
          found_la=
10435
 
          found_so=
10436
 
          found_a=
10437
 
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10438
 
          if test -n "$acl_shlibext"; then
10439
 
            shrext=".$acl_shlibext"             # typically: shrext=.so
10440
 
          else
10441
 
            shrext=
10442
 
          fi
10443
 
          if test $use_additional = yes; then
10444
 
            dir="$additional_libdir"
10445
 
                                    if test -n "$acl_shlibext"; then
10446
 
              if test -f "$dir/$libname$shrext"; then
10447
 
                found_dir="$dir"
10448
 
                found_so="$dir/$libname$shrext"
10449
 
              else
10450
 
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10451
 
                  ver=`(cd "$dir" && \
10452
 
                        for f in "$libname$shrext".*; do echo "$f"; done \
10453
 
                        | sed -e "s,^$libname$shrext\\\\.,," \
10454
 
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10455
 
                        | sed 1q ) 2>/dev/null`
10456
 
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10457
 
                    found_dir="$dir"
10458
 
                    found_so="$dir/$libname$shrext.$ver"
10459
 
                  fi
10460
 
                else
10461
 
                  eval library_names=\"$acl_library_names_spec\"
10462
 
                  for f in $library_names; do
10463
 
                    if test -f "$dir/$f"; then
10464
 
                      found_dir="$dir"
10465
 
                      found_so="$dir/$f"
10466
 
                      break
10467
 
                    fi
10468
 
                  done
10469
 
                fi
10470
 
              fi
10471
 
            fi
10472
 
                        if test "X$found_dir" = "X"; then
10473
 
              if test -f "$dir/$libname.$acl_libext"; then
10474
 
                found_dir="$dir"
10475
 
                found_a="$dir/$libname.$acl_libext"
10476
 
              fi
10477
 
            fi
10478
 
            if test "X$found_dir" != "X"; then
10479
 
              if test -f "$dir/$libname.la"; then
10480
 
                found_la="$dir/$libname.la"
10481
 
              fi
10482
 
            fi
10483
 
          fi
10484
 
          if test "X$found_dir" = "X"; then
10485
 
            for x in $LDFLAGS $LTLIBPTH; do
10486
 
 
10487
 
  acl_save_prefix="$prefix"
10488
 
  prefix="$acl_final_prefix"
10489
 
  acl_save_exec_prefix="$exec_prefix"
10490
 
  exec_prefix="$acl_final_exec_prefix"
10491
 
  eval x=\"$x\"
10492
 
  exec_prefix="$acl_save_exec_prefix"
10493
 
  prefix="$acl_save_prefix"
10494
 
 
10495
 
              case "$x" in
10496
 
                -L*)
10497
 
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10498
 
                                    if test -n "$acl_shlibext"; then
10499
 
                    if test -f "$dir/$libname$shrext"; then
10500
 
                      found_dir="$dir"
10501
 
                      found_so="$dir/$libname$shrext"
10502
 
                    else
10503
 
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10504
 
                        ver=`(cd "$dir" && \
10505
 
                              for f in "$libname$shrext".*; do echo "$f"; done \
10506
 
                              | sed -e "s,^$libname$shrext\\\\.,," \
10507
 
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10508
 
                              | sed 1q ) 2>/dev/null`
10509
 
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10510
 
                          found_dir="$dir"
10511
 
                          found_so="$dir/$libname$shrext.$ver"
10512
 
                        fi
10513
 
                      else
10514
 
                        eval library_names=\"$acl_library_names_spec\"
10515
 
                        for f in $library_names; do
10516
 
                          if test -f "$dir/$f"; then
10517
 
                            found_dir="$dir"
10518
 
                            found_so="$dir/$f"
10519
 
                            break
10520
 
                          fi
10521
 
                        done
10522
 
                      fi
10523
 
                    fi
10524
 
                  fi
10525
 
                                    if test "X$found_dir" = "X"; then
10526
 
                    if test -f "$dir/$libname.$acl_libext"; then
10527
 
                      found_dir="$dir"
10528
 
                      found_a="$dir/$libname.$acl_libext"
10529
 
                    fi
10530
 
                  fi
10531
 
                  if test "X$found_dir" != "X"; then
10532
 
                    if test -f "$dir/$libname.la"; then
10533
 
                      found_la="$dir/$libname.la"
10534
 
                    fi
10535
 
                  fi
10536
 
                  ;;
10537
 
              esac
10538
 
              if test "X$found_dir" != "X"; then
10539
 
                break
10540
 
              fi
10541
 
            done
10542
 
          fi
10543
 
          if test "X$found_dir" != "X"; then
10544
 
                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
10545
 
            if test "X$found_so" != "X"; then
10546
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10547
 
                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10548
 
              else
10549
 
                                                                                haveit=
10550
 
                for x in $ltrpathdirs; do
10551
 
                  if test "X$x" = "X$found_dir"; then
10552
 
                    haveit=yes
10553
 
                    break
10554
 
                  fi
10555
 
                done
10556
 
                if test -z "$haveit"; then
10557
 
                  ltrpathdirs="$ltrpathdirs $found_dir"
10558
 
                fi
10559
 
                                if test "$acl_hardcode_direct" = yes; then
10560
 
                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10561
 
                else
10562
 
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10563
 
                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10564
 
                                                            haveit=
10565
 
                    for x in $rpathdirs; do
10566
 
                      if test "X$x" = "X$found_dir"; then
10567
 
                        haveit=yes
10568
 
                        break
10569
 
                      fi
10570
 
                    done
10571
 
                    if test -z "$haveit"; then
10572
 
                      rpathdirs="$rpathdirs $found_dir"
10573
 
                    fi
10574
 
                  else
10575
 
                                                                                haveit=
10576
 
                    for x in $LDFLAGS $LIBPTH; do
10577
 
 
10578
 
  acl_save_prefix="$prefix"
10579
 
  prefix="$acl_final_prefix"
10580
 
  acl_save_exec_prefix="$exec_prefix"
10581
 
  exec_prefix="$acl_final_exec_prefix"
10582
 
  eval x=\"$x\"
10583
 
  exec_prefix="$acl_save_exec_prefix"
10584
 
  prefix="$acl_save_prefix"
10585
 
 
10586
 
                      if test "X$x" = "X-L$found_dir"; then
10587
 
                        haveit=yes
10588
 
                        break
10589
 
                      fi
10590
 
                    done
10591
 
                    if test -z "$haveit"; then
10592
 
                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
10593
 
                    fi
10594
 
                    if test "$acl_hardcode_minus_L" != no; then
10595
 
                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10596
 
                    else
10597
 
                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10598
 
                    fi
10599
 
                  fi
10600
 
                fi
10601
 
              fi
10602
 
            else
10603
 
              if test "X$found_a" != "X"; then
10604
 
                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
10605
 
              else
10606
 
                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
10607
 
              fi
10608
 
            fi
10609
 
                        additional_includedir=
10610
 
            case "$found_dir" in
10611
 
              */$acl_libdirstem | */$acl_libdirstem/)
10612
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10613
 
                LIBPTH_PREFIX="$basedir"
10614
 
                additional_includedir="$basedir/include"
10615
 
                ;;
10616
 
            esac
10617
 
            if test "X$additional_includedir" != "X"; then
10618
 
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10619
 
                haveit=
10620
 
                if test "X$additional_includedir" = "X/usr/local/include"; then
10621
 
                  if test -n "$GCC"; then
10622
 
                    case $host_os in
10623
 
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10624
 
                    esac
10625
 
                  fi
10626
 
                fi
10627
 
                if test -z "$haveit"; then
10628
 
                  for x in $CPPFLAGS $INCPTH; do
10629
 
 
10630
 
  acl_save_prefix="$prefix"
10631
 
  prefix="$acl_final_prefix"
10632
 
  acl_save_exec_prefix="$exec_prefix"
10633
 
  exec_prefix="$acl_final_exec_prefix"
10634
 
  eval x=\"$x\"
10635
 
  exec_prefix="$acl_save_exec_prefix"
10636
 
  prefix="$acl_save_prefix"
10637
 
 
10638
 
                    if test "X$x" = "X-I$additional_includedir"; then
10639
 
                      haveit=yes
10640
 
                      break
10641
 
                    fi
10642
 
                  done
10643
 
                  if test -z "$haveit"; then
10644
 
                    if test -d "$additional_includedir"; then
10645
 
                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10646
 
                    fi
10647
 
                  fi
10648
 
                fi
10649
 
              fi
10650
 
            fi
10651
 
                        if test -n "$found_la"; then
10652
 
                                                        save_libdir="$libdir"
10653
 
              case "$found_la" in
10654
 
                */* | *\\*) . "$found_la" ;;
10655
 
                *) . "./$found_la" ;;
10656
 
              esac
10657
 
              libdir="$save_libdir"
10658
 
                            for dep in $dependency_libs; do
10659
 
                case "$dep" in
10660
 
                  -L*)
10661
 
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10662
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10663
 
                      haveit=
10664
 
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10665
 
                        if test -n "$GCC"; then
10666
 
                          case $host_os in
10667
 
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10668
 
                          esac
10669
 
                        fi
10670
 
                      fi
10671
 
                      if test -z "$haveit"; then
10672
 
                        haveit=
10673
 
                        for x in $LDFLAGS $LIBPTH; do
10674
 
 
10675
 
  acl_save_prefix="$prefix"
10676
 
  prefix="$acl_final_prefix"
10677
 
  acl_save_exec_prefix="$exec_prefix"
10678
 
  exec_prefix="$acl_final_exec_prefix"
10679
 
  eval x=\"$x\"
10680
 
  exec_prefix="$acl_save_exec_prefix"
10681
 
  prefix="$acl_save_prefix"
10682
 
 
10683
 
                          if test "X$x" = "X-L$additional_libdir"; then
10684
 
                            haveit=yes
10685
 
                            break
10686
 
                          fi
10687
 
                        done
10688
 
                        if test -z "$haveit"; then
10689
 
                          if test -d "$additional_libdir"; then
10690
 
                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10691
 
                          fi
10692
 
                        fi
10693
 
                        haveit=
10694
 
                        for x in $LDFLAGS $LTLIBPTH; do
10695
 
 
10696
 
  acl_save_prefix="$prefix"
10697
 
  prefix="$acl_final_prefix"
10698
 
  acl_save_exec_prefix="$exec_prefix"
10699
 
  exec_prefix="$acl_final_exec_prefix"
10700
 
  eval x=\"$x\"
10701
 
  exec_prefix="$acl_save_exec_prefix"
10702
 
  prefix="$acl_save_prefix"
10703
 
 
10704
 
                          if test "X$x" = "X-L$additional_libdir"; then
10705
 
                            haveit=yes
10706
 
                            break
10707
 
                          fi
10708
 
                        done
10709
 
                        if test -z "$haveit"; then
10710
 
                          if test -d "$additional_libdir"; then
10711
 
                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10712
 
                          fi
10713
 
                        fi
10714
 
                      fi
10715
 
                    fi
10716
 
                    ;;
10717
 
                  -R*)
10718
 
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10719
 
                    if test "$enable_rpath" != no; then
10720
 
                                                                  haveit=
10721
 
                      for x in $rpathdirs; do
10722
 
                        if test "X$x" = "X$dir"; then
10723
 
                          haveit=yes
10724
 
                          break
10725
 
                        fi
10726
 
                      done
10727
 
                      if test -z "$haveit"; then
10728
 
                        rpathdirs="$rpathdirs $dir"
10729
 
                      fi
10730
 
                                                                  haveit=
10731
 
                      for x in $ltrpathdirs; do
10732
 
                        if test "X$x" = "X$dir"; then
10733
 
                          haveit=yes
10734
 
                          break
10735
 
                        fi
10736
 
                      done
10737
 
                      if test -z "$haveit"; then
10738
 
                        ltrpathdirs="$ltrpathdirs $dir"
10739
 
                      fi
10740
 
                    fi
10741
 
                    ;;
10742
 
                  -l*)
10743
 
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10744
 
                    ;;
10745
 
                  *.la)
10746
 
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10747
 
                    ;;
10748
 
                  *)
10749
 
                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
10750
 
                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10751
 
                    ;;
10752
 
                esac
10753
 
              done
10754
 
            fi
10755
 
          else
10756
 
                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10757
 
            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10758
 
          fi
10759
 
        fi
10760
 
      fi
10761
 
    done
10762
 
  done
10763
 
  if test "X$rpathdirs" != "X"; then
10764
 
    if test -n "$acl_hardcode_libdir_separator"; then
10765
 
                        alldirs=
10766
 
      for found_dir in $rpathdirs; do
10767
 
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10768
 
      done
10769
 
            acl_save_libdir="$libdir"
10770
 
      libdir="$alldirs"
10771
 
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
10772
 
      libdir="$acl_save_libdir"
10773
 
      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10774
 
    else
10775
 
            for found_dir in $rpathdirs; do
10776
 
        acl_save_libdir="$libdir"
10777
 
        libdir="$found_dir"
10778
 
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
10779
 
        libdir="$acl_save_libdir"
10780
 
        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10781
 
      done
10782
 
    fi
10783
 
  fi
10784
 
  if test "X$ltrpathdirs" != "X"; then
10785
 
            for found_dir in $ltrpathdirs; do
10786
 
      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10787
 
    done
10788
 
  fi
10789
 
 
10790
 
    ac_cv_libpth_libs="$LIBPTH"
10791
 
    ac_cv_libpth_ltlibs="$LTLIBPTH"
10792
 
    ac_cv_libpth_cppflags="$INCPTH"
10793
 
    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
10794
 
 
10795
 
fi
10796
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10797
 
$as_echo "$ac_cv_libpth_libs" >&6; }
10798
 
  LIBPTH="$ac_cv_libpth_libs"
10799
 
  LTLIBPTH="$ac_cv_libpth_ltlibs"
10800
 
  INCPTH="$ac_cv_libpth_cppflags"
10801
 
  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
10802
 
 
10803
 
  for element in $INCPTH; do
10804
 
    haveit=
10805
 
    for x in $CPPFLAGS; do
10806
 
 
10807
 
  acl_save_prefix="$prefix"
10808
 
  prefix="$acl_final_prefix"
10809
 
  acl_save_exec_prefix="$exec_prefix"
10810
 
  exec_prefix="$acl_final_exec_prefix"
10811
 
  eval x=\"$x\"
10812
 
  exec_prefix="$acl_save_exec_prefix"
10813
 
  prefix="$acl_save_prefix"
10814
 
 
10815
 
      if test "X$x" = "X$element"; then
10816
 
        haveit=yes
10817
 
        break
10818
 
      fi
10819
 
    done
10820
 
    if test -z "$haveit"; then
10821
 
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10822
 
    fi
10823
 
  done
10824
 
 
10825
 
 
10826
 
 
10827
 
 
10828
 
      HAVE_LIBPTH=yes
10829
 
 
10830
 
 
10831
 
 
10832
 
      gl_have_pth=
10833
 
      gl_save_LIBS="$LIBS"
10834
 
      LIBS="$LIBS -lpth"
10835
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836
 
/* end confdefs.h.  */
10837
 
#include <pth.h>
10838
 
int
10839
 
main ()
10840
 
{
10841
 
pth_self();
10842
 
  ;
10843
 
  return 0;
10844
 
}
10845
 
_ACEOF
10846
 
if ac_fn_cxx_try_link "$LINENO"; then :
10847
 
  gl_have_pth=yes
10848
 
fi
10849
 
rm -f core conftest.err conftest.$ac_objext \
10850
 
    conftest$ac_exeext conftest.$ac_ext
10851
 
      LIBS="$gl_save_LIBS"
10852
 
      if test -n "$gl_have_pth"; then
10853
 
        gl_threads_api=pth
10854
 
        LIBTHREAD="$LIBPTH"
10855
 
        LTLIBTHREAD="$LTLIBPTH"
10856
 
        LIBMULTITHREAD="$LIBTHREAD"
10857
 
        LTLIBMULTITHREAD="$LTLIBTHREAD"
10858
 
 
10859
 
$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
10860
 
 
10861
 
        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10862
 
          if test $gl_have_weak = yes; then
10863
 
 
10864
 
$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10865
 
 
10866
 
            LIBTHREAD=
10867
 
            LTLIBTHREAD=
10868
 
          fi
10869
 
        fi
10870
 
      else
10871
 
        CPPFLAGS="$gl_save_CPPFLAGS"
10872
 
      fi
10873
 
    fi
10874
 
    if test -z "$gl_have_pthread"; then
10875
 
      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
10876
 
        if { case "$host_os" in
10877
 
               mingw*) true;;
10878
 
               *) false;;
10879
 
             esac
10880
 
           }; then
10881
 
          gl_threads_api=win32
10882
 
 
10883
 
$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
10884
 
 
10885
 
        fi
10886
 
      fi
10887
 
    fi
10888
 
  fi
10889
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10890
 
$as_echo_n "checking for multithread API to use... " >&6; }
10891
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10892
 
$as_echo "$gl_threads_api" >&6; }
10893
 
 
10894
 
 
10895
 
 
10896
 
 
10897
 
 
10898
 
 
10899
 
 
10900
 
 
10901
 
 
10902
 
 
10903
 
 
10904
 
 
10905
 
 
10906
 
 
10907
 
 
10908
 
 
10909
 
 
10910
 
 
10911
 
 
10912
 
 
10913
 
    use_additional=yes
10914
 
 
10915
 
  acl_save_prefix="$prefix"
10916
 
  prefix="$acl_final_prefix"
10917
 
  acl_save_exec_prefix="$exec_prefix"
10918
 
  exec_prefix="$acl_final_exec_prefix"
10919
 
 
10920
 
    eval additional_includedir=\"$includedir\"
10921
 
    eval additional_libdir=\"$libdir\"
10922
 
 
10923
 
  exec_prefix="$acl_save_exec_prefix"
10924
 
  prefix="$acl_save_prefix"
10925
 
 
10926
 
 
10927
 
# Check whether --with-libiconv-prefix was given.
10928
 
if test "${with_libiconv_prefix+set}" = set; then :
10929
 
  withval=$with_libiconv_prefix;
10930
 
    if test "X$withval" = "Xno"; then
10931
 
      use_additional=no
10932
 
    else
10933
 
      if test "X$withval" = "X"; then
10934
 
 
10935
 
  acl_save_prefix="$prefix"
10936
 
  prefix="$acl_final_prefix"
10937
 
  acl_save_exec_prefix="$exec_prefix"
10938
 
  exec_prefix="$acl_final_exec_prefix"
10939
 
 
10940
 
          eval additional_includedir=\"$includedir\"
10941
 
          eval additional_libdir=\"$libdir\"
10942
 
 
10943
 
  exec_prefix="$acl_save_exec_prefix"
10944
 
  prefix="$acl_save_prefix"
10945
 
 
10946
 
      else
10947
 
        additional_includedir="$withval/include"
10948
 
        additional_libdir="$withval/$acl_libdirstem"
10949
 
      fi
10950
 
    fi
10951
 
 
10952
 
fi
10953
 
 
10954
 
      LIBICONV=
10955
 
  LTLIBICONV=
10956
 
  INCICONV=
10957
 
  LIBICONV_PREFIX=
10958
 
  rpathdirs=
10959
 
  ltrpathdirs=
10960
 
  names_already_handled=
10961
 
  names_next_round='iconv '
10962
 
  while test -n "$names_next_round"; do
10963
 
    names_this_round="$names_next_round"
10964
 
    names_next_round=
10965
 
    for name in $names_this_round; do
10966
 
      already_handled=
10967
 
      for n in $names_already_handled; do
10968
 
        if test "$n" = "$name"; then
10969
 
          already_handled=yes
10970
 
          break
10971
 
        fi
10972
 
      done
10973
 
      if test -z "$already_handled"; then
10974
 
        names_already_handled="$names_already_handled $name"
10975
 
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10976
 
        eval value=\"\$HAVE_LIB$uppername\"
10977
 
        if test -n "$value"; then
10978
 
          if test "$value" = yes; then
10979
 
            eval value=\"\$LIB$uppername\"
10980
 
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10981
 
            eval value=\"\$LTLIB$uppername\"
10982
 
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10983
 
          else
10984
 
                                    :
10985
 
          fi
10986
 
        else
10987
 
                              found_dir=
10988
 
          found_la=
10989
 
          found_so=
10990
 
          found_a=
10991
 
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10992
 
          if test -n "$acl_shlibext"; then
10993
 
            shrext=".$acl_shlibext"             # typically: shrext=.so
10994
 
          else
10995
 
            shrext=
10996
 
          fi
10997
 
          if test $use_additional = yes; then
10998
 
            dir="$additional_libdir"
10999
 
                                    if test -n "$acl_shlibext"; then
11000
 
              if test -f "$dir/$libname$shrext"; then
11001
 
                found_dir="$dir"
11002
 
                found_so="$dir/$libname$shrext"
11003
 
              else
11004
 
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11005
 
                  ver=`(cd "$dir" && \
11006
 
                        for f in "$libname$shrext".*; do echo "$f"; done \
11007
 
                        | sed -e "s,^$libname$shrext\\\\.,," \
11008
 
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11009
 
                        | sed 1q ) 2>/dev/null`
11010
 
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11011
 
                    found_dir="$dir"
11012
 
                    found_so="$dir/$libname$shrext.$ver"
11013
 
                  fi
11014
 
                else
11015
 
                  eval library_names=\"$acl_library_names_spec\"
11016
 
                  for f in $library_names; do
11017
 
                    if test -f "$dir/$f"; then
11018
 
                      found_dir="$dir"
11019
 
                      found_so="$dir/$f"
11020
 
                      break
11021
 
                    fi
11022
 
                  done
11023
 
                fi
11024
 
              fi
11025
 
            fi
11026
 
                        if test "X$found_dir" = "X"; then
11027
 
              if test -f "$dir/$libname.$acl_libext"; then
11028
 
                found_dir="$dir"
11029
 
                found_a="$dir/$libname.$acl_libext"
11030
 
              fi
11031
 
            fi
11032
 
            if test "X$found_dir" != "X"; then
11033
 
              if test -f "$dir/$libname.la"; then
11034
 
                found_la="$dir/$libname.la"
11035
 
              fi
11036
 
            fi
11037
 
          fi
11038
 
          if test "X$found_dir" = "X"; then
11039
 
            for x in $LDFLAGS $LTLIBICONV; do
11040
 
 
11041
 
  acl_save_prefix="$prefix"
11042
 
  prefix="$acl_final_prefix"
11043
 
  acl_save_exec_prefix="$exec_prefix"
11044
 
  exec_prefix="$acl_final_exec_prefix"
11045
 
  eval x=\"$x\"
11046
 
  exec_prefix="$acl_save_exec_prefix"
11047
 
  prefix="$acl_save_prefix"
11048
 
 
11049
 
              case "$x" in
11050
 
                -L*)
11051
 
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11052
 
                                    if test -n "$acl_shlibext"; then
11053
 
                    if test -f "$dir/$libname$shrext"; then
11054
 
                      found_dir="$dir"
11055
 
                      found_so="$dir/$libname$shrext"
11056
 
                    else
11057
 
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11058
 
                        ver=`(cd "$dir" && \
11059
 
                              for f in "$libname$shrext".*; do echo "$f"; done \
11060
 
                              | sed -e "s,^$libname$shrext\\\\.,," \
11061
 
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11062
 
                              | sed 1q ) 2>/dev/null`
11063
 
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11064
 
                          found_dir="$dir"
11065
 
                          found_so="$dir/$libname$shrext.$ver"
11066
 
                        fi
11067
 
                      else
11068
 
                        eval library_names=\"$acl_library_names_spec\"
11069
 
                        for f in $library_names; do
11070
 
                          if test -f "$dir/$f"; then
11071
 
                            found_dir="$dir"
11072
 
                            found_so="$dir/$f"
11073
 
                            break
11074
 
                          fi
11075
 
                        done
11076
 
                      fi
11077
 
                    fi
11078
 
                  fi
11079
 
                                    if test "X$found_dir" = "X"; then
11080
 
                    if test -f "$dir/$libname.$acl_libext"; then
11081
 
                      found_dir="$dir"
11082
 
                      found_a="$dir/$libname.$acl_libext"
11083
 
                    fi
11084
 
                  fi
11085
 
                  if test "X$found_dir" != "X"; then
11086
 
                    if test -f "$dir/$libname.la"; then
11087
 
                      found_la="$dir/$libname.la"
11088
 
                    fi
11089
 
                  fi
11090
 
                  ;;
11091
 
              esac
11092
 
              if test "X$found_dir" != "X"; then
11093
 
                break
11094
 
              fi
11095
 
            done
11096
 
          fi
11097
 
          if test "X$found_dir" != "X"; then
11098
 
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11099
 
            if test "X$found_so" != "X"; then
11100
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11101
 
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11102
 
              else
11103
 
                                                                                haveit=
11104
 
                for x in $ltrpathdirs; do
11105
 
                  if test "X$x" = "X$found_dir"; then
11106
 
                    haveit=yes
11107
 
                    break
11108
 
                  fi
11109
 
                done
11110
 
                if test -z "$haveit"; then
11111
 
                  ltrpathdirs="$ltrpathdirs $found_dir"
11112
 
                fi
11113
 
                                if test "$acl_hardcode_direct" = yes; then
11114
 
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11115
 
                else
11116
 
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11117
 
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11118
 
                                                            haveit=
11119
 
                    for x in $rpathdirs; do
11120
 
                      if test "X$x" = "X$found_dir"; then
11121
 
                        haveit=yes
11122
 
                        break
11123
 
                      fi
11124
 
                    done
11125
 
                    if test -z "$haveit"; then
11126
 
                      rpathdirs="$rpathdirs $found_dir"
11127
 
                    fi
11128
 
                  else
11129
 
                                                                                haveit=
11130
 
                    for x in $LDFLAGS $LIBICONV; do
11131
 
 
11132
 
  acl_save_prefix="$prefix"
11133
 
  prefix="$acl_final_prefix"
11134
 
  acl_save_exec_prefix="$exec_prefix"
11135
 
  exec_prefix="$acl_final_exec_prefix"
11136
 
  eval x=\"$x\"
11137
 
  exec_prefix="$acl_save_exec_prefix"
11138
 
  prefix="$acl_save_prefix"
11139
 
 
11140
 
                      if test "X$x" = "X-L$found_dir"; then
11141
 
                        haveit=yes
11142
 
                        break
11143
 
                      fi
11144
 
                    done
11145
 
                    if test -z "$haveit"; then
11146
 
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11147
 
                    fi
11148
 
                    if test "$acl_hardcode_minus_L" != no; then
11149
 
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11150
 
                    else
11151
 
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11152
 
                    fi
11153
 
                  fi
11154
 
                fi
11155
 
              fi
11156
 
            else
11157
 
              if test "X$found_a" != "X"; then
11158
 
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11159
 
              else
11160
 
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11161
 
              fi
11162
 
            fi
11163
 
                        additional_includedir=
11164
 
            case "$found_dir" in
11165
 
              */$acl_libdirstem | */$acl_libdirstem/)
11166
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11167
 
                LIBICONV_PREFIX="$basedir"
11168
 
                additional_includedir="$basedir/include"
11169
 
                ;;
11170
 
            esac
11171
 
            if test "X$additional_includedir" != "X"; then
11172
 
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
11173
 
                haveit=
11174
 
                if test "X$additional_includedir" = "X/usr/local/include"; then
11175
 
                  if test -n "$GCC"; then
11176
 
                    case $host_os in
11177
 
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11178
 
                    esac
11179
 
                  fi
11180
 
                fi
11181
 
                if test -z "$haveit"; then
11182
 
                  for x in $CPPFLAGS $INCICONV; do
11183
 
 
11184
 
  acl_save_prefix="$prefix"
11185
 
  prefix="$acl_final_prefix"
11186
 
  acl_save_exec_prefix="$exec_prefix"
11187
 
  exec_prefix="$acl_final_exec_prefix"
11188
 
  eval x=\"$x\"
11189
 
  exec_prefix="$acl_save_exec_prefix"
11190
 
  prefix="$acl_save_prefix"
11191
 
 
11192
 
                    if test "X$x" = "X-I$additional_includedir"; then
11193
 
                      haveit=yes
11194
 
                      break
11195
 
                    fi
11196
 
                  done
11197
 
                  if test -z "$haveit"; then
11198
 
                    if test -d "$additional_includedir"; then
11199
 
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11200
 
                    fi
11201
 
                  fi
11202
 
                fi
11203
 
              fi
11204
 
            fi
11205
 
                        if test -n "$found_la"; then
11206
 
                                                        save_libdir="$libdir"
11207
 
              case "$found_la" in
11208
 
                */* | *\\*) . "$found_la" ;;
11209
 
                *) . "./$found_la" ;;
11210
 
              esac
11211
 
              libdir="$save_libdir"
11212
 
                            for dep in $dependency_libs; do
11213
 
                case "$dep" in
11214
 
                  -L*)
11215
 
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11216
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11217
 
                      haveit=
11218
 
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11219
 
                        if test -n "$GCC"; then
11220
 
                          case $host_os in
11221
 
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11222
 
                          esac
11223
 
                        fi
11224
 
                      fi
11225
 
                      if test -z "$haveit"; then
11226
 
                        haveit=
11227
 
                        for x in $LDFLAGS $LIBICONV; do
11228
 
 
11229
 
  acl_save_prefix="$prefix"
11230
 
  prefix="$acl_final_prefix"
11231
 
  acl_save_exec_prefix="$exec_prefix"
11232
 
  exec_prefix="$acl_final_exec_prefix"
11233
 
  eval x=\"$x\"
11234
 
  exec_prefix="$acl_save_exec_prefix"
11235
 
  prefix="$acl_save_prefix"
11236
 
 
11237
 
                          if test "X$x" = "X-L$additional_libdir"; then
11238
 
                            haveit=yes
11239
 
                            break
11240
 
                          fi
11241
 
                        done
11242
 
                        if test -z "$haveit"; then
11243
 
                          if test -d "$additional_libdir"; then
11244
 
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11245
 
                          fi
11246
 
                        fi
11247
 
                        haveit=
11248
 
                        for x in $LDFLAGS $LTLIBICONV; do
11249
 
 
11250
 
  acl_save_prefix="$prefix"
11251
 
  prefix="$acl_final_prefix"
11252
 
  acl_save_exec_prefix="$exec_prefix"
11253
 
  exec_prefix="$acl_final_exec_prefix"
11254
 
  eval x=\"$x\"
11255
 
  exec_prefix="$acl_save_exec_prefix"
11256
 
  prefix="$acl_save_prefix"
11257
 
 
11258
 
                          if test "X$x" = "X-L$additional_libdir"; then
11259
 
                            haveit=yes
11260
 
                            break
11261
 
                          fi
11262
 
                        done
11263
 
                        if test -z "$haveit"; then
11264
 
                          if test -d "$additional_libdir"; then
11265
 
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11266
 
                          fi
11267
 
                        fi
11268
 
                      fi
11269
 
                    fi
11270
 
                    ;;
11271
 
                  -R*)
11272
 
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
11273
 
                    if test "$enable_rpath" != no; then
11274
 
                                                                  haveit=
11275
 
                      for x in $rpathdirs; do
11276
 
                        if test "X$x" = "X$dir"; then
11277
 
                          haveit=yes
11278
 
                          break
11279
 
                        fi
11280
 
                      done
11281
 
                      if test -z "$haveit"; then
11282
 
                        rpathdirs="$rpathdirs $dir"
11283
 
                      fi
11284
 
                                                                  haveit=
11285
 
                      for x in $ltrpathdirs; do
11286
 
                        if test "X$x" = "X$dir"; then
11287
 
                          haveit=yes
11288
 
                          break
11289
 
                        fi
11290
 
                      done
11291
 
                      if test -z "$haveit"; then
11292
 
                        ltrpathdirs="$ltrpathdirs $dir"
11293
 
                      fi
11294
 
                    fi
11295
 
                    ;;
11296
 
                  -l*)
11297
 
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11298
 
                    ;;
11299
 
                  *.la)
11300
 
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11301
 
                    ;;
11302
 
                  *)
11303
 
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11304
 
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11305
 
                    ;;
11306
 
                esac
11307
 
              done
11308
 
            fi
11309
 
          else
11310
 
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11311
 
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11312
 
          fi
11313
 
        fi
11314
 
      fi
11315
 
    done
11316
 
  done
11317
 
  if test "X$rpathdirs" != "X"; then
11318
 
    if test -n "$acl_hardcode_libdir_separator"; then
11319
 
                        alldirs=
11320
 
      for found_dir in $rpathdirs; do
11321
 
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11322
 
      done
11323
 
            acl_save_libdir="$libdir"
11324
 
      libdir="$alldirs"
11325
 
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
11326
 
      libdir="$acl_save_libdir"
11327
 
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11328
 
    else
11329
 
            for found_dir in $rpathdirs; do
11330
 
        acl_save_libdir="$libdir"
11331
 
        libdir="$found_dir"
11332
 
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
11333
 
        libdir="$acl_save_libdir"
11334
 
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11335
 
      done
11336
 
    fi
11337
 
  fi
11338
 
  if test "X$ltrpathdirs" != "X"; then
11339
 
            for found_dir in $ltrpathdirs; do
11340
 
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11341
 
    done
11342
 
  fi
11343
 
 
11344
 
 
11345
 
 
11346
 
 
11347
 
 
11348
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349
 
/* end confdefs.h.  */
11350
 
int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
11351
 
int
11352
 
main ()
11353
 
{
11354
 
 
11355
 
  ;
11356
 
  return 0;
11357
 
}
11358
 
_ACEOF
11359
 
if ac_fn_cxx_try_link "$LINENO"; then :
11360
 
 
11361
 
$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
11362
 
 
11363
 
fi
11364
 
rm -f core conftest.err conftest.$ac_objext \
11365
 
    conftest$ac_exeext conftest.$ac_ext
11366
 
 
11367
 
  for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
11368
 
do :
11369
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11370
 
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11371
 
eval as_val=\$$as_ac_Header
11372
 
   if test "x$as_val" = x""yes; then :
11373
 
  cat >>confdefs.h <<_ACEOF
11374
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11375
 
_ACEOF
11376
 
 
11377
 
fi
11378
 
 
11379
 
done
11380
 
 
11381
 
  for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
11382
 
    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
11383
 
    argz_next __fsetlocking
11384
 
do :
11385
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11386
 
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11387
 
eval as_val=\$$as_ac_var
11388
 
   if test "x$as_val" = x""yes; then :
11389
 
  cat >>confdefs.h <<_ACEOF
11390
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11391
 
_ACEOF
11392
 
 
11393
 
fi
11394
 
done
11395
 
 
11396
 
 
11397
 
 
11398
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
11399
 
$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
11400
 
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
11401
 
  $as_echo_n "(cached) " >&6
11402
 
else
11403
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404
 
/* end confdefs.h.  */
11405
 
#include <stdio.h>
11406
 
int
11407
 
main ()
11408
 
{
11409
 
 
11410
 
#ifndef feof_unlocked
11411
 
  char *p = (char *) feof_unlocked;
11412
 
#endif
11413
 
 
11414
 
  ;
11415
 
  return 0;
11416
 
}
11417
 
_ACEOF
11418
 
if ac_fn_cxx_try_compile "$LINENO"; then :
11419
 
  ac_cv_have_decl_feof_unlocked=yes
11420
 
else
11421
 
  ac_cv_have_decl_feof_unlocked=no
11422
 
fi
11423
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11424
 
fi
11425
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
11426
 
$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
11427
 
  if test $ac_cv_have_decl_feof_unlocked = yes; then
11428
 
    gt_value=1
11429
 
  else
11430
 
    gt_value=0
11431
 
  fi
11432
 
 
11433
 
cat >>confdefs.h <<_ACEOF
11434
 
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
11435
 
_ACEOF
11436
 
 
11437
 
 
11438
 
 
11439
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
11440
 
$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
11441
 
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
11442
 
  $as_echo_n "(cached) " >&6
11443
 
else
11444
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445
 
/* end confdefs.h.  */
11446
 
#include <stdio.h>
11447
 
int
11448
 
main ()
11449
 
{
11450
 
 
11451
 
#ifndef fgets_unlocked
11452
 
  char *p = (char *) fgets_unlocked;
11453
 
#endif
11454
 
 
11455
 
  ;
11456
 
  return 0;
11457
 
}
11458
 
_ACEOF
11459
 
if ac_fn_cxx_try_compile "$LINENO"; then :
11460
 
  ac_cv_have_decl_fgets_unlocked=yes
11461
 
else
11462
 
  ac_cv_have_decl_fgets_unlocked=no
11463
 
fi
11464
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465
 
fi
11466
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
11467
 
$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
11468
 
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
11469
 
    gt_value=1
11470
 
  else
11471
 
    gt_value=0
11472
 
  fi
11473
 
 
11474
 
cat >>confdefs.h <<_ACEOF
11475
 
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
11476
 
_ACEOF
11477
 
 
11478
 
 
11479
 
 
11480
 
 
11481
 
 
11482
 
 
11483
 
 
11484
 
 
11485
 
          am_save_CPPFLAGS="$CPPFLAGS"
11486
 
 
11487
 
  for element in $INCICONV; do
11488
 
    haveit=
11489
 
    for x in $CPPFLAGS; do
11490
 
 
11491
 
  acl_save_prefix="$prefix"
11492
 
  prefix="$acl_final_prefix"
11493
 
  acl_save_exec_prefix="$exec_prefix"
11494
 
  exec_prefix="$acl_final_exec_prefix"
11495
 
  eval x=\"$x\"
11496
 
  exec_prefix="$acl_save_exec_prefix"
11497
 
  prefix="$acl_save_prefix"
11498
 
 
11499
 
      if test "X$x" = "X$element"; then
11500
 
        haveit=yes
11501
 
        break
11502
 
      fi
11503
 
    done
11504
 
    if test -z "$haveit"; then
11505
 
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11506
 
    fi
11507
 
  done
11508
 
 
11509
 
 
11510
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11511
 
$as_echo_n "checking for iconv... " >&6; }
11512
 
if test "${am_cv_func_iconv+set}" = set; then :
11513
 
  $as_echo_n "(cached) " >&6
11514
 
else
11515
 
 
11516
 
    am_cv_func_iconv="no, consider installing GNU libiconv"
11517
 
    am_cv_lib_iconv=no
11518
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519
 
/* end confdefs.h.  */
11520
 
#include <stdlib.h>
11521
 
#include <iconv.h>
11522
 
int
11523
 
main ()
11524
 
{
11525
 
iconv_t cd = iconv_open("","");
11526
 
       iconv(cd,NULL,NULL,NULL,NULL);
11527
 
       iconv_close(cd);
11528
 
  ;
11529
 
  return 0;
11530
 
}
11531
 
_ACEOF
11532
 
if ac_fn_cxx_try_link "$LINENO"; then :
11533
 
  am_cv_func_iconv=yes
11534
 
fi
11535
 
rm -f core conftest.err conftest.$ac_objext \
11536
 
    conftest$ac_exeext conftest.$ac_ext
11537
 
    if test "$am_cv_func_iconv" != yes; then
11538
 
      am_save_LIBS="$LIBS"
11539
 
      LIBS="$LIBS $LIBICONV"
11540
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541
 
/* end confdefs.h.  */
11542
 
#include <stdlib.h>
11543
 
#include <iconv.h>
11544
 
int
11545
 
main ()
11546
 
{
11547
 
iconv_t cd = iconv_open("","");
11548
 
         iconv(cd,NULL,NULL,NULL,NULL);
11549
 
         iconv_close(cd);
11550
 
  ;
11551
 
  return 0;
11552
 
}
11553
 
_ACEOF
11554
 
if ac_fn_cxx_try_link "$LINENO"; then :
11555
 
  am_cv_lib_iconv=yes
11556
 
        am_cv_func_iconv=yes
11557
 
fi
11558
 
rm -f core conftest.err conftest.$ac_objext \
11559
 
    conftest$ac_exeext conftest.$ac_ext
11560
 
      LIBS="$am_save_LIBS"
11561
 
    fi
11562
 
 
11563
 
fi
11564
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11565
 
$as_echo "$am_cv_func_iconv" >&6; }
11566
 
  if test "$am_cv_func_iconv" = yes; then
11567
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11568
 
$as_echo_n "checking for working iconv... " >&6; }
11569
 
if test "${am_cv_func_iconv_works+set}" = set; then :
11570
 
  $as_echo_n "(cached) " >&6
11571
 
else
11572
 
 
11573
 
            am_save_LIBS="$LIBS"
11574
 
      if test $am_cv_lib_iconv = yes; then
11575
 
        LIBS="$LIBS $LIBICONV"
11576
 
      fi
11577
 
      if test "$cross_compiling" = yes; then :
11578
 
  case "$host_os" in
11579
 
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11580
 
           *)            am_cv_func_iconv_works="guessing yes" ;;
11581
 
         esac
11582
 
else
11583
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584
 
/* end confdefs.h.  */
11585
 
 
11586
 
#include <iconv.h>
11587
 
#include <string.h>
11588
 
int main ()
11589
 
{
11590
 
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11591
 
     returns.  */
11592
 
  {
11593
 
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11594
 
    if (cd_utf8_to_88591 != (iconv_t)(-1))
11595
 
      {
11596
 
        static const char input[] = "\342\202\254"; /* EURO SIGN */
11597
 
        char buf[10];
11598
 
        const char *inptr = input;
11599
 
        size_t inbytesleft = strlen (input);
11600
 
        char *outptr = buf;
11601
 
        size_t outbytesleft = sizeof (buf);
11602
 
        size_t res = iconv (cd_utf8_to_88591,
11603
 
                            (char **) &inptr, &inbytesleft,
11604
 
                            &outptr, &outbytesleft);
11605
 
        if (res == 0)
11606
 
          return 1;
11607
 
      }
11608
 
  }
11609
 
#if 0 /* This bug could be worked around by the caller.  */
11610
 
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11611
 
  {
11612
 
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11613
 
    if (cd_88591_to_utf8 != (iconv_t)(-1))
11614
 
      {
11615
 
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11616
 
        char buf[50];
11617
 
        const char *inptr = input;
11618
 
        size_t inbytesleft = strlen (input);
11619
 
        char *outptr = buf;
11620
 
        size_t outbytesleft = sizeof (buf);
11621
 
        size_t res = iconv (cd_88591_to_utf8,
11622
 
                            (char **) &inptr, &inbytesleft,
11623
 
                            &outptr, &outbytesleft);
11624
 
        if ((int)res > 0)
11625
 
          return 1;
11626
 
      }
11627
 
  }
11628
 
#endif
11629
 
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11630
 
     provided.  */
11631
 
  if (/* Try standardized names.  */
11632
 
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11633
 
      /* Try IRIX, OSF/1 names.  */
11634
 
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11635
 
      /* Try AIX names.  */
11636
 
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11637
 
      /* Try HP-UX names.  */
11638
 
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11639
 
    return 1;
11640
 
  return 0;
11641
 
}
11642
 
_ACEOF
11643
 
if ac_fn_cxx_try_run "$LINENO"; then :
11644
 
  am_cv_func_iconv_works=yes
11645
 
else
11646
 
  am_cv_func_iconv_works=no
11647
 
fi
11648
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11649
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11650
 
fi
11651
 
 
11652
 
      LIBS="$am_save_LIBS"
11653
 
 
11654
 
fi
11655
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11656
 
$as_echo "$am_cv_func_iconv_works" >&6; }
11657
 
    case "$am_cv_func_iconv_works" in
11658
 
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11659
 
      *)   am_func_iconv=yes ;;
11660
 
    esac
11661
 
  else
11662
 
    am_func_iconv=no am_cv_lib_iconv=no
11663
 
  fi
11664
 
  if test "$am_func_iconv" = yes; then
11665
 
 
11666
 
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
11667
 
 
11668
 
  fi
11669
 
  if test "$am_cv_lib_iconv" = yes; then
11670
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11671
 
$as_echo_n "checking how to link with libiconv... " >&6; }
11672
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11673
 
$as_echo "$LIBICONV" >&6; }
11674
 
  else
11675
 
            CPPFLAGS="$am_save_CPPFLAGS"
11676
 
    LIBICONV=
11677
 
    LTLIBICONV=
11678
 
  fi
11679
 
 
11680
 
 
11681
 
 
11682
 
  if test "$am_cv_func_iconv" = yes; then
11683
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11684
 
$as_echo_n "checking for iconv declaration... " >&6; }
11685
 
    if test "${am_cv_proto_iconv+set}" = set; then :
11686
 
  $as_echo_n "(cached) " >&6
11687
 
else
11688
 
 
11689
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690
 
/* end confdefs.h.  */
11691
 
 
11692
 
#include <stdlib.h>
11693
 
#include <iconv.h>
11694
 
extern
11695
 
#ifdef __cplusplus
11696
 
"C"
11697
 
#endif
11698
 
#if defined(__STDC__) || defined(__cplusplus)
11699
 
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11700
 
#else
11701
 
size_t iconv();
11702
 
#endif
11703
 
 
11704
 
int
11705
 
main ()
11706
 
{
11707
 
 
11708
 
  ;
11709
 
  return 0;
11710
 
}
11711
 
_ACEOF
11712
 
if ac_fn_cxx_try_compile "$LINENO"; then :
11713
 
  am_cv_proto_iconv_arg1=""
11714
 
else
11715
 
  am_cv_proto_iconv_arg1="const"
11716
 
fi
11717
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718
 
      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);"
11719
 
fi
11720
 
 
11721
 
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11722
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11723
 
         }$am_cv_proto_iconv" >&5
11724
 
$as_echo "${ac_t:-
11725
 
         }$am_cv_proto_iconv" >&6; }
11726
 
 
11727
 
cat >>confdefs.h <<_ACEOF
11728
 
#define ICONV_CONST $am_cv_proto_iconv_arg1
11729
 
_ACEOF
11730
 
 
11731
 
  fi
11732
 
 
11733
 
 
11734
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
11735
 
$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
11736
 
if test "${gt_cv_nl_locale_name+set}" = set; then :
11737
 
  $as_echo_n "(cached) " >&6
11738
 
else
11739
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740
 
/* end confdefs.h.  */
11741
 
#include <langinfo.h>
11742
 
#include <locale.h>
11743
 
int
11744
 
main ()
11745
 
{
11746
 
char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
11747
 
       return !cs;
11748
 
 
11749
 
  ;
11750
 
  return 0;
11751
 
}
11752
 
_ACEOF
11753
 
if ac_fn_cxx_try_link "$LINENO"; then :
11754
 
  gt_cv_nl_locale_name=yes
11755
 
else
11756
 
  gt_cv_nl_locale_name=no
11757
 
fi
11758
 
rm -f core conftest.err conftest.$ac_objext \
11759
 
    conftest$ac_exeext conftest.$ac_ext
11760
 
 
11761
 
fi
11762
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
11763
 
$as_echo "$gt_cv_nl_locale_name" >&6; }
11764
 
  if test $gt_cv_nl_locale_name = yes; then
11765
 
 
11766
 
$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
11767
 
 
11768
 
  fi
11769
 
 
11770
 
                      for ac_prog in bison
11771
 
do
11772
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11773
 
set dummy $ac_prog; ac_word=$2
11774
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775
 
$as_echo_n "checking for $ac_word... " >&6; }
11776
 
if test "${ac_cv_prog_INTLBISON+set}" = set; then :
11777
 
  $as_echo_n "(cached) " >&6
11778
 
else
11779
 
  if test -n "$INTLBISON"; then
11780
 
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11781
 
else
11782
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783
 
for as_dir in $PATH
11784
 
do
11785
 
  IFS=$as_save_IFS
11786
 
  test -z "$as_dir" && as_dir=.
11787
 
    for ac_exec_ext in '' $ac_executable_extensions; do
11788
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11789
 
    ac_cv_prog_INTLBISON="$ac_prog"
11790
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791
 
    break 2
11792
 
  fi
11793
 
done
11794
 
  done
11795
 
IFS=$as_save_IFS
11796
 
 
11797
 
fi
11798
 
fi
11799
 
INTLBISON=$ac_cv_prog_INTLBISON
11800
 
if test -n "$INTLBISON"; then
11801
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
11802
 
$as_echo "$INTLBISON" >&6; }
11803
 
else
11804
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805
 
$as_echo "no" >&6; }
11806
 
fi
11807
 
 
11808
 
 
11809
 
  test -n "$INTLBISON" && break
11810
 
done
11811
 
 
11812
 
  if test -z "$INTLBISON"; then
11813
 
    ac_verc_fail=yes
11814
 
  else
11815
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
11816
 
$as_echo_n "checking version of bison... " >&6; }
11817
 
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11818
 
    case $ac_prog_version in
11819
 
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11820
 
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11821
 
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11822
 
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11823
 
    esac
11824
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
11825
 
$as_echo "$ac_prog_version" >&6; }
11826
 
  fi
11827
 
  if test $ac_verc_fail = yes; then
11828
 
    INTLBISON=:
11829
 
  fi
11830
 
 
11831
 
 
11832
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11833
 
$as_echo_n "checking for long long int... " >&6; }
11834
 
if test "${ac_cv_type_long_long_int+set}" = set; then :
11835
 
  $as_echo_n "(cached) " >&6
11836
 
else
11837
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838
 
/* end confdefs.h.  */
11839
 
 
11840
 
  /* Test preprocessor.  */
11841
 
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11842
 
        error in preprocessor;
11843
 
      #endif
11844
 
      #if ! (18446744073709551615ULL <= -1ull)
11845
 
        error in preprocessor;
11846
 
      #endif
11847
 
      /* Test literals.  */
11848
 
      long long int ll = 9223372036854775807ll;
11849
 
      long long int nll = -9223372036854775807LL;
11850
 
      unsigned long long int ull = 18446744073709551615ULL;
11851
 
      /* Test constant expressions.   */
11852
 
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11853
 
                     ? 1 : -1)];
11854
 
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11855
 
                     ? 1 : -1)];
11856
 
      int i = 63;
11857
 
int
11858
 
main ()
11859
 
{
11860
 
/* Test availability of runtime routines for shift and division.  */
11861
 
      long long int llmax = 9223372036854775807ll;
11862
 
      unsigned long long int ullmax = 18446744073709551615ull;
11863
 
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11864
 
              | (llmax / ll) | (llmax % ll)
11865
 
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11866
 
              | (ullmax / ull) | (ullmax % ull));
11867
 
  ;
11868
 
  return 0;
11869
 
}
11870
 
 
11871
 
_ACEOF
11872
 
if ac_fn_cxx_try_link "$LINENO"; then :
11873
 
                        if test "$cross_compiling" = yes; then :
11874
 
  ac_cv_type_long_long_int=yes
11875
 
else
11876
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877
 
/* end confdefs.h.  */
11878
 
#include <limits.h>
11879
 
               #ifndef LLONG_MAX
11880
 
               # define HALF \
11881
 
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11882
 
               # define LLONG_MAX (HALF - 1 + HALF)
11883
 
               #endif
11884
 
int
11885
 
main ()
11886
 
{
11887
 
long long int n = 1;
11888
 
               int i;
11889
 
               for (i = 0; ; i++)
11890
 
                 {
11891
 
                   long long int m = n << i;
11892
 
                   if (m >> i != n)
11893
 
                     return 1;
11894
 
                   if (LLONG_MAX / 2 < m)
11895
 
                     break;
11896
 
                 }
11897
 
               return 0;
11898
 
  ;
11899
 
  return 0;
11900
 
}
11901
 
_ACEOF
11902
 
if ac_fn_cxx_try_run "$LINENO"; then :
11903
 
  ac_cv_type_long_long_int=yes
11904
 
else
11905
 
  ac_cv_type_long_long_int=no
11906
 
fi
11907
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11908
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11909
 
fi
11910
 
 
11911
 
else
11912
 
  ac_cv_type_long_long_int=no
11913
 
fi
11914
 
rm -f core conftest.err conftest.$ac_objext \
11915
 
    conftest$ac_exeext conftest.$ac_ext
11916
 
fi
11917
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11918
 
$as_echo "$ac_cv_type_long_long_int" >&6; }
11919
 
  if test $ac_cv_type_long_long_int = yes; then
11920
 
 
11921
 
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11922
 
 
11923
 
  fi
11924
 
 
11925
 
 
11926
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11927
 
$as_echo_n "checking for wchar_t... " >&6; }
11928
 
if test "${gt_cv_c_wchar_t+set}" = set; then :
11929
 
  $as_echo_n "(cached) " >&6
11930
 
else
11931
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932
 
/* end confdefs.h.  */
11933
 
#include <stddef.h>
11934
 
       wchar_t foo = (wchar_t)'\0';
11935
 
int
11936
 
main ()
11937
 
{
11938
 
 
11939
 
  ;
11940
 
  return 0;
11941
 
}
11942
 
_ACEOF
11943
 
if ac_fn_cxx_try_compile "$LINENO"; then :
11944
 
  gt_cv_c_wchar_t=yes
11945
 
else
11946
 
  gt_cv_c_wchar_t=no
11947
 
fi
11948
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949
 
fi
11950
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11951
 
$as_echo "$gt_cv_c_wchar_t" >&6; }
11952
 
  if test $gt_cv_c_wchar_t = yes; then
11953
 
 
11954
 
$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11955
 
 
11956
 
  fi
11957
 
 
11958
 
 
11959
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11960
 
$as_echo_n "checking for wint_t... " >&6; }
11961
 
if test "${gt_cv_c_wint_t+set}" = set; then :
11962
 
  $as_echo_n "(cached) " >&6
11963
 
else
11964
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965
 
/* end confdefs.h.  */
11966
 
 
11967
 
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11968
 
   <wchar.h>.
11969
 
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11970
 
   before <wchar.h>.  */
11971
 
#include <stddef.h>
11972
 
#include <stdio.h>
11973
 
#include <time.h>
11974
 
#include <wchar.h>
11975
 
       wint_t foo = (wchar_t)'\0';
11976
 
int
11977
 
main ()
11978
 
{
11979
 
 
11980
 
  ;
11981
 
  return 0;
11982
 
}
11983
 
_ACEOF
11984
 
if ac_fn_cxx_try_compile "$LINENO"; then :
11985
 
  gt_cv_c_wint_t=yes
11986
 
else
11987
 
  gt_cv_c_wint_t=no
11988
 
fi
11989
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990
 
fi
11991
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11992
 
$as_echo "$gt_cv_c_wint_t" >&6; }
11993
 
  if test $gt_cv_c_wint_t = yes; then
11994
 
 
11995
 
$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11996
 
 
11997
 
  fi
11998
 
 
11999
 
 
12000
 
 
12001
 
 
12002
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
12003
 
$as_echo_n "checking for intmax_t... " >&6; }
12004
 
if test "${gt_cv_c_intmax_t+set}" = set; then :
12005
 
  $as_echo_n "(cached) " >&6
12006
 
else
12007
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008
 
/* end confdefs.h.  */
12009
 
 
12010
 
#include <stddef.h>
12011
 
#include <stdlib.h>
12012
 
#if HAVE_STDINT_H_WITH_UINTMAX
12013
 
#include <stdint.h>
12014
 
#endif
12015
 
#if HAVE_INTTYPES_H_WITH_UINTMAX
12016
 
#include <inttypes.h>
12017
 
#endif
12018
 
 
12019
 
int
12020
 
main ()
12021
 
{
12022
 
intmax_t x = -1;
12023
 
        return !x;
12024
 
  ;
12025
 
  return 0;
12026
 
}
12027
 
_ACEOF
12028
 
if ac_fn_cxx_try_compile "$LINENO"; then :
12029
 
  gt_cv_c_intmax_t=yes
12030
 
else
12031
 
  gt_cv_c_intmax_t=no
12032
 
fi
12033
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034
 
fi
12035
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
12036
 
$as_echo "$gt_cv_c_intmax_t" >&6; }
12037
 
  if test $gt_cv_c_intmax_t = yes; then
12038
 
 
12039
 
$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
12040
 
 
12041
 
  fi
12042
 
 
12043
 
 
12044
 
 
12045
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
12046
 
$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
12047
 
if test "${gt_cv_func_printf_posix+set}" = set; then :
12048
 
  $as_echo_n "(cached) " >&6
12049
 
else
12050
 
 
12051
 
      if test "$cross_compiling" = yes; then :
12052
 
 
12053
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054
 
/* end confdefs.h.  */
12055
 
 
12056
 
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
12057
 
  notposix
12058
 
#endif
12059
 
 
12060
 
_ACEOF
12061
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12062
 
  $EGREP "notposix" >/dev/null 2>&1; then :
12063
 
  gt_cv_func_printf_posix="guessing no"
12064
 
else
12065
 
  gt_cv_func_printf_posix="guessing yes"
12066
 
fi
12067
 
rm -f conftest*
12068
 
 
12069
 
 
12070
 
else
12071
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072
 
/* end confdefs.h.  */
12073
 
 
12074
 
#include <stdio.h>
12075
 
#include <string.h>
12076
 
/* The string "%2$d %1$d", with dollar characters protected from the shell's
12077
 
   dollar expansion (possibly an autoconf bug).  */
12078
 
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
12079
 
static char buf[100];
12080
 
int main ()
12081
 
{
12082
 
  sprintf (buf, format, 33, 55);
12083
 
  return (strcmp (buf, "55 33") != 0);
12084
 
}
12085
 
_ACEOF
12086
 
if ac_fn_cxx_try_run "$LINENO"; then :
12087
 
  gt_cv_func_printf_posix=yes
12088
 
else
12089
 
  gt_cv_func_printf_posix=no
12090
 
fi
12091
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12092
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12093
 
fi
12094
 
 
12095
 
 
12096
 
fi
12097
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
12098
 
$as_echo "$gt_cv_func_printf_posix" >&6; }
12099
 
  case $gt_cv_func_printf_posix in
12100
 
    *yes)
12101
 
 
12102
 
$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
12103
 
 
12104
 
      ;;
12105
 
  esac
12106
 
 
12107
 
 
12108
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12109
 
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12110
 
if test "${ac_cv_gnu_library_2_1+set}" = set; then :
12111
 
  $as_echo_n "(cached) " >&6
12112
 
else
12113
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114
 
/* end confdefs.h.  */
12115
 
 
12116
 
#include <features.h>
12117
 
#ifdef __GNU_LIBRARY__
12118
 
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12119
 
  Lucky GNU user
12120
 
 #endif
12121
 
#endif
12122
 
 
12123
 
_ACEOF
12124
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12125
 
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
12126
 
  ac_cv_gnu_library_2_1=yes
12127
 
else
12128
 
  ac_cv_gnu_library_2_1=no
12129
 
fi
12130
 
rm -f conftest*
12131
 
 
12132
 
 
12133
 
 
12134
 
fi
12135
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12136
 
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
12137
 
 
12138
 
    GLIBC21="$ac_cv_gnu_library_2_1"
12139
 
 
12140
 
 
12141
 
 
12142
 
  for ac_header in stdint.h
12143
 
do :
12144
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12145
 
if test "x$ac_cv_header_stdint_h" = x""yes; then :
12146
 
  cat >>confdefs.h <<_ACEOF
12147
 
#define HAVE_STDINT_H 1
12148
 
_ACEOF
12149
 
 
12150
 
fi
12151
 
 
12152
 
done
12153
 
 
12154
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
12155
 
$as_echo_n "checking for SIZE_MAX... " >&6; }
12156
 
  if test "${gl_cv_size_max+set}" = set; then :
12157
 
  $as_echo_n "(cached) " >&6
12158
 
else
12159
 
 
12160
 
    gl_cv_size_max=
12161
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162
 
/* end confdefs.h.  */
12163
 
 
12164
 
#include <limits.h>
12165
 
#if HAVE_STDINT_H
12166
 
#include <stdint.h>
12167
 
#endif
12168
 
#ifdef SIZE_MAX
12169
 
Found it
12170
 
#endif
12171
 
 
12172
 
_ACEOF
12173
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12174
 
  $EGREP "Found it" >/dev/null 2>&1; then :
12175
 
  gl_cv_size_max=yes
12176
 
fi
12177
 
rm -f conftest*
12178
 
 
12179
 
    if test -z "$gl_cv_size_max"; then
12180
 
                        if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
12181
 
#include <limits.h>"; then :
12182
 
 
12183
 
else
12184
 
  size_t_bits_minus_1=
12185
 
fi
12186
 
 
12187
 
      if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
12188
 
 
12189
 
else
12190
 
  fits_in_uint=
12191
 
fi
12192
 
 
12193
 
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
12194
 
        if test $fits_in_uint = 1; then
12195
 
                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196
 
/* end confdefs.h.  */
12197
 
#include <stddef.h>
12198
 
            extern size_t foo;
12199
 
            extern unsigned long foo;
12200
 
 
12201
 
int
12202
 
main ()
12203
 
{
12204
 
 
12205
 
  ;
12206
 
  return 0;
12207
 
}
12208
 
_ACEOF
12209
 
if ac_fn_cxx_try_compile "$LINENO"; then :
12210
 
  fits_in_uint=0
12211
 
fi
12212
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213
 
        fi
12214
 
                                if test $fits_in_uint = 1; then
12215
 
          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
12216
 
        else
12217
 
          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
12218
 
        fi
12219
 
      else
12220
 
                gl_cv_size_max='((size_t)~(size_t)0)'
12221
 
      fi
12222
 
    fi
12223
 
 
12224
 
fi
12225
 
 
12226
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
12227
 
$as_echo "$gl_cv_size_max" >&6; }
12228
 
  if test "$gl_cv_size_max" != yes; then
12229
 
 
12230
 
cat >>confdefs.h <<_ACEOF
12231
 
#define SIZE_MAX $gl_cv_size_max
12232
 
_ACEOF
12233
 
 
12234
 
  fi
12235
 
 
12236
 
 
12237
 
 
12238
 
 
12239
 
  for ac_header in stdint.h
12240
 
do :
12241
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12242
 
if test "x$ac_cv_header_stdint_h" = x""yes; then :
12243
 
  cat >>confdefs.h <<_ACEOF
12244
 
#define HAVE_STDINT_H 1
12245
 
_ACEOF
12246
 
 
12247
 
fi
12248
 
 
12249
 
done
12250
 
 
12251
 
 
12252
 
 
12253
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12254
 
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12255
 
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
12256
 
  $as_echo_n "(cached) " >&6
12257
 
else
12258
 
  gt_save_LIBS="$LIBS"
12259
 
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12260
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261
 
/* end confdefs.h.  */
12262
 
#include <CoreFoundation/CFPreferences.h>
12263
 
int
12264
 
main ()
12265
 
{
12266
 
CFPreferencesCopyAppValue(NULL, NULL)
12267
 
  ;
12268
 
  return 0;
12269
 
}
12270
 
_ACEOF
12271
 
if ac_fn_cxx_try_link "$LINENO"; then :
12272
 
  gt_cv_func_CFPreferencesCopyAppValue=yes
12273
 
else
12274
 
  gt_cv_func_CFPreferencesCopyAppValue=no
12275
 
fi
12276
 
rm -f core conftest.err conftest.$ac_objext \
12277
 
    conftest$ac_exeext conftest.$ac_ext
12278
 
     LIBS="$gt_save_LIBS"
12279
 
fi
12280
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12281
 
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12282
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12283
 
 
12284
 
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12285
 
 
12286
 
  fi
12287
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12288
 
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12289
 
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
12290
 
  $as_echo_n "(cached) " >&6
12291
 
else
12292
 
  gt_save_LIBS="$LIBS"
12293
 
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12294
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295
 
/* end confdefs.h.  */
12296
 
#include <CoreFoundation/CFLocale.h>
12297
 
int
12298
 
main ()
12299
 
{
12300
 
CFLocaleCopyCurrent();
12301
 
  ;
12302
 
  return 0;
12303
 
}
12304
 
_ACEOF
12305
 
if ac_fn_cxx_try_link "$LINENO"; then :
12306
 
  gt_cv_func_CFLocaleCopyCurrent=yes
12307
 
else
12308
 
  gt_cv_func_CFLocaleCopyCurrent=no
12309
 
fi
12310
 
rm -f core conftest.err conftest.$ac_objext \
12311
 
    conftest$ac_exeext conftest.$ac_ext
12312
 
     LIBS="$gt_save_LIBS"
12313
 
fi
12314
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12315
 
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12316
 
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12317
 
 
12318
 
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12319
 
 
12320
 
  fi
12321
 
  INTL_MACOSX_LIBS=
12322
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12323
 
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12324
 
  fi
12325
 
 
12326
 
 
12327
 
 
12328
 
 
12329
 
 
12330
 
 
12331
 
 
12332
 
  ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12333
 
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
12334
 
 
12335
 
else
12336
 
 
12337
 
$as_echo "#define ptrdiff_t long" >>confdefs.h
12338
 
 
12339
 
 
12340
 
fi
12341
 
 
12342
 
  for ac_header in stddef.h stdlib.h string.h
12343
 
do :
12344
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12345
 
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12346
 
eval as_val=\$$as_ac_Header
12347
 
   if test "x$as_val" = x""yes; then :
12348
 
  cat >>confdefs.h <<_ACEOF
12349
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12350
 
_ACEOF
12351
 
 
12352
 
fi
12353
 
 
12354
 
done
12355
 
 
12356
 
  for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
12357
 
do :
12358
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12359
 
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12360
 
eval as_val=\$$as_ac_var
12361
 
   if test "x$as_val" = x""yes; then :
12362
 
  cat >>confdefs.h <<_ACEOF
12363
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12364
 
_ACEOF
12365
 
 
12366
 
fi
12367
 
done
12368
 
 
12369
 
 
12370
 
 
12371
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
12372
 
$as_echo_n "checking whether _snprintf is declared... " >&6; }
12373
 
if test "${ac_cv_have_decl__snprintf+set}" = set; then :
12374
 
  $as_echo_n "(cached) " >&6
12375
 
else
12376
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377
 
/* end confdefs.h.  */
12378
 
#include <stdio.h>
12379
 
int
12380
 
main ()
12381
 
{
12382
 
 
12383
 
#ifndef _snprintf
12384
 
  char *p = (char *) _snprintf;
12385
 
#endif
12386
 
 
12387
 
  ;
12388
 
  return 0;
12389
 
}
12390
 
_ACEOF
12391
 
if ac_fn_cxx_try_compile "$LINENO"; then :
12392
 
  ac_cv_have_decl__snprintf=yes
12393
 
else
12394
 
  ac_cv_have_decl__snprintf=no
12395
 
fi
12396
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397
 
fi
12398
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
12399
 
$as_echo "$ac_cv_have_decl__snprintf" >&6; }
12400
 
  if test $ac_cv_have_decl__snprintf = yes; then
12401
 
    gt_value=1
12402
 
  else
12403
 
    gt_value=0
12404
 
  fi
12405
 
 
12406
 
cat >>confdefs.h <<_ACEOF
12407
 
#define HAVE_DECL__SNPRINTF $gt_value
12408
 
_ACEOF
12409
 
 
12410
 
 
12411
 
 
12412
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
12413
 
$as_echo_n "checking whether _snwprintf is declared... " >&6; }
12414
 
if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
12415
 
  $as_echo_n "(cached) " >&6
12416
 
else
12417
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418
 
/* end confdefs.h.  */
12419
 
#include <stdio.h>
12420
 
int
12421
 
main ()
12422
 
{
12423
 
 
12424
 
#ifndef _snwprintf
12425
 
  char *p = (char *) _snwprintf;
12426
 
#endif
12427
 
 
12428
 
  ;
12429
 
  return 0;
12430
 
}
12431
 
_ACEOF
12432
 
if ac_fn_cxx_try_compile "$LINENO"; then :
12433
 
  ac_cv_have_decl__snwprintf=yes
12434
 
else
12435
 
  ac_cv_have_decl__snwprintf=no
12436
 
fi
12437
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438
 
fi
12439
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
12440
 
$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
12441
 
  if test $ac_cv_have_decl__snwprintf = yes; then
12442
 
    gt_value=1
12443
 
  else
12444
 
    gt_value=0
12445
 
  fi
12446
 
 
12447
 
cat >>confdefs.h <<_ACEOF
12448
 
#define HAVE_DECL__SNWPRINTF $gt_value
12449
 
_ACEOF
12450
 
 
12451
 
 
12452
 
 
12453
 
 
12454
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
12455
 
$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
12456
 
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
12457
 
  $as_echo_n "(cached) " >&6
12458
 
else
12459
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460
 
/* end confdefs.h.  */
12461
 
#include <stdio.h>
12462
 
int
12463
 
main ()
12464
 
{
12465
 
 
12466
 
#ifndef getc_unlocked
12467
 
  char *p = (char *) getc_unlocked;
12468
 
#endif
12469
 
 
12470
 
  ;
12471
 
  return 0;
12472
 
}
12473
 
_ACEOF
12474
 
if ac_fn_cxx_try_compile "$LINENO"; then :
12475
 
  ac_cv_have_decl_getc_unlocked=yes
12476
 
else
12477
 
  ac_cv_have_decl_getc_unlocked=no
12478
 
fi
12479
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480
 
fi
12481
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
12482
 
$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
12483
 
  if test $ac_cv_have_decl_getc_unlocked = yes; then
12484
 
    gt_value=1
12485
 
  else
12486
 
    gt_value=0
12487
 
  fi
12488
 
 
12489
 
cat >>confdefs.h <<_ACEOF
12490
 
#define HAVE_DECL_GETC_UNLOCKED $gt_value
12491
 
_ACEOF
12492
 
 
12493
 
 
12494
 
 
12495
 
  case $gt_cv_func_printf_posix in
12496
 
    *yes) HAVE_POSIX_PRINTF=1 ;;
12497
 
    *) HAVE_POSIX_PRINTF=0 ;;
12498
 
  esac
12499
 
 
12500
 
  if test "$ac_cv_func_asprintf" = yes; then
12501
 
    HAVE_ASPRINTF=1
12502
 
  else
12503
 
    HAVE_ASPRINTF=0
12504
 
  fi
12505
 
 
12506
 
  if test "$ac_cv_func_snprintf" = yes; then
12507
 
    HAVE_SNPRINTF=1
12508
 
  else
12509
 
    HAVE_SNPRINTF=0
12510
 
  fi
12511
 
 
12512
 
  if test "$ac_cv_func_wprintf" = yes; then
12513
 
    HAVE_WPRINTF=1
12514
 
  else
12515
 
    HAVE_WPRINTF=0
12516
 
  fi
12517
 
 
12518
 
 
12519
 
 
12520
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12521
 
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12522
 
if test "${am_cv_langinfo_codeset+set}" = set; then :
12523
 
  $as_echo_n "(cached) " >&6
12524
 
else
12525
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526
 
/* end confdefs.h.  */
12527
 
#include <langinfo.h>
12528
 
int
12529
 
main ()
12530
 
{
12531
 
char* cs = nl_langinfo(CODESET); return !cs;
12532
 
  ;
12533
 
  return 0;
12534
 
}
12535
 
_ACEOF
12536
 
if ac_fn_cxx_try_link "$LINENO"; then :
12537
 
  am_cv_langinfo_codeset=yes
12538
 
else
12539
 
  am_cv_langinfo_codeset=no
12540
 
fi
12541
 
rm -f core conftest.err conftest.$ac_objext \
12542
 
    conftest$ac_exeext conftest.$ac_ext
12543
 
 
12544
 
fi
12545
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12546
 
$as_echo "$am_cv_langinfo_codeset" >&6; }
12547
 
  if test $am_cv_langinfo_codeset = yes; then
12548
 
 
12549
 
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12550
 
 
12551
 
  fi
12552
 
 
12553
 
 
12554
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12555
 
$as_echo_n "checking for LC_MESSAGES... " >&6; }
12556
 
if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
12557
 
  $as_echo_n "(cached) " >&6
12558
 
else
12559
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560
 
/* end confdefs.h.  */
12561
 
#include <locale.h>
12562
 
int
12563
 
main ()
12564
 
{
12565
 
return LC_MESSAGES
12566
 
  ;
12567
 
  return 0;
12568
 
}
12569
 
_ACEOF
12570
 
if ac_fn_cxx_try_link "$LINENO"; then :
12571
 
  gt_cv_val_LC_MESSAGES=yes
12572
 
else
12573
 
  gt_cv_val_LC_MESSAGES=no
12574
 
fi
12575
 
rm -f core conftest.err conftest.$ac_objext \
12576
 
    conftest$ac_exeext conftest.$ac_ext
12577
 
fi
12578
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
12579
 
$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
12580
 
  if test $gt_cv_val_LC_MESSAGES = yes; then
12581
 
 
12582
 
$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12583
 
 
12584
 
  fi
12585
 
 
12586
 
 
12587
 
                if test "$enable_shared" = yes; then
12588
 
    case "$host_os" in
12589
 
      mingw* | cygwin*) is_woe32dll=yes ;;
12590
 
      *) is_woe32dll=no ;;
12591
 
    esac
12592
 
  else
12593
 
    is_woe32dll=no
12594
 
  fi
12595
 
  WOE32DLL=$is_woe32dll
12596
 
 
12597
 
 
12598
 
      case "$host_os" in
12599
 
    mingw* | cygwin*) is_woe32=yes ;;
12600
 
    *) is_woe32=no ;;
12601
 
  esac
12602
 
  WOE32=$is_woe32
12603
 
 
12604
 
  if test $WOE32 = yes; then
12605
 
        if test -n "$ac_tool_prefix"; then
12606
 
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12607
 
set dummy ${ac_tool_prefix}windres; ac_word=$2
12608
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12609
 
$as_echo_n "checking for $ac_word... " >&6; }
12610
 
if test "${ac_cv_prog_WINDRES+set}" = set; then :
12611
 
  $as_echo_n "(cached) " >&6
12612
 
else
12613
 
  if test -n "$WINDRES"; then
12614
 
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12615
 
else
12616
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12617
 
for as_dir in $PATH
12618
 
do
12619
 
  IFS=$as_save_IFS
12620
 
  test -z "$as_dir" && as_dir=.
12621
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12622
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12623
 
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
12624
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12625
 
    break 2
12626
 
  fi
12627
 
done
12628
 
  done
12629
 
IFS=$as_save_IFS
12630
 
 
12631
 
fi
12632
 
fi
12633
 
WINDRES=$ac_cv_prog_WINDRES
12634
 
if test -n "$WINDRES"; then
12635
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12636
 
$as_echo "$WINDRES" >&6; }
12637
 
else
12638
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639
 
$as_echo "no" >&6; }
12640
 
fi
12641
 
 
12642
 
 
12643
 
fi
12644
 
if test -z "$ac_cv_prog_WINDRES"; then
12645
 
  ac_ct_WINDRES=$WINDRES
12646
 
  # Extract the first word of "windres", so it can be a program name with args.
12647
 
set dummy windres; ac_word=$2
12648
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12649
 
$as_echo_n "checking for $ac_word... " >&6; }
12650
 
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
12651
 
  $as_echo_n "(cached) " >&6
12652
 
else
12653
 
  if test -n "$ac_ct_WINDRES"; then
12654
 
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
12655
 
else
12656
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657
 
for as_dir in $PATH
12658
 
do
12659
 
  IFS=$as_save_IFS
12660
 
  test -z "$as_dir" && as_dir=.
12661
 
    for ac_exec_ext in '' $ac_executable_extensions; do
12662
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12663
 
    ac_cv_prog_ac_ct_WINDRES="windres"
12664
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665
 
    break 2
12666
 
  fi
12667
 
done
12668
 
  done
12669
 
IFS=$as_save_IFS
12670
 
 
12671
 
fi
12672
 
fi
12673
 
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
12674
 
if test -n "$ac_ct_WINDRES"; then
12675
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
12676
 
$as_echo "$ac_ct_WINDRES" >&6; }
12677
 
else
12678
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679
 
$as_echo "no" >&6; }
12680
 
fi
12681
 
 
12682
 
  if test "x$ac_ct_WINDRES" = x; then
12683
 
    WINDRES=""
12684
 
  else
12685
 
    case $cross_compiling:$ac_tool_warned in
12686
 
yes:)
12687
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12688
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12689
 
ac_tool_warned=yes ;;
12690
 
esac
12691
 
    WINDRES=$ac_ct_WINDRES
12692
 
  fi
12693
 
else
12694
 
  WINDRES="$ac_cv_prog_WINDRES"
12695
 
fi
12696
 
 
12697
 
  fi
12698
 
 
12699
 
              case "$host_os" in
12700
 
    hpux*) LTLIBC="" ;;
12701
 
    *)     LTLIBC="-lc" ;;
12702
 
  esac
12703
 
 
12704
 
 
12705
 
 
12706
 
 
12707
 
 
12708
 
 
12709
 
 
12710
 
 
12711
 
 
12712
 
 
12713
 
 
12714
 
 
12715
 
 
12716
 
 
12717
 
 
12718
 
 
12719
 
 
12720
 
 
12721
 
 
12722
 
 
12723
 
 
12724
 
 
12725
 
 
12726
 
 
12727
 
 
12728
 
 
12729
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12730
 
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12731
 
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
12732
 
  $as_echo_n "(cached) " >&6
12733
 
else
12734
 
  gt_save_LIBS="$LIBS"
12735
 
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12736
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737
 
/* end confdefs.h.  */
12738
 
#include <CoreFoundation/CFPreferences.h>
12739
 
int
12740
 
main ()
12741
 
{
12742
 
CFPreferencesCopyAppValue(NULL, NULL)
12743
 
  ;
12744
 
  return 0;
12745
 
}
12746
 
_ACEOF
12747
 
if ac_fn_cxx_try_link "$LINENO"; then :
12748
 
  gt_cv_func_CFPreferencesCopyAppValue=yes
12749
 
else
12750
 
  gt_cv_func_CFPreferencesCopyAppValue=no
12751
 
fi
12752
 
rm -f core conftest.err conftest.$ac_objext \
12753
 
    conftest$ac_exeext conftest.$ac_ext
12754
 
     LIBS="$gt_save_LIBS"
12755
 
fi
12756
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12757
 
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12758
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12759
 
 
12760
 
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12761
 
 
12762
 
  fi
12763
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12764
 
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12765
 
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
12766
 
  $as_echo_n "(cached) " >&6
12767
 
else
12768
 
  gt_save_LIBS="$LIBS"
12769
 
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12770
 
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771
 
/* end confdefs.h.  */
12772
 
#include <CoreFoundation/CFLocale.h>
12773
 
int
12774
 
main ()
12775
 
{
12776
 
CFLocaleCopyCurrent();
12777
 
  ;
12778
 
  return 0;
12779
 
}
12780
 
_ACEOF
12781
 
if ac_fn_cxx_try_link "$LINENO"; then :
12782
 
  gt_cv_func_CFLocaleCopyCurrent=yes
12783
 
else
12784
 
  gt_cv_func_CFLocaleCopyCurrent=no
12785
 
fi
12786
 
rm -f core conftest.err conftest.$ac_objext \
12787
 
    conftest$ac_exeext conftest.$ac_ext
12788
 
     LIBS="$gt_save_LIBS"
12789
 
fi
12790
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12791
 
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12792
 
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12793
 
 
12794
 
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12795
 
 
12796
 
  fi
12797
 
  INTL_MACOSX_LIBS=
12798
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12799
 
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12800
 
  fi
12801
 
 
12802
 
 
12803
 
 
12804
 
 
12805
 
 
12806
 
 
12807
 
    BUILD_INCLUDED_LIBINTL=no
12808
 
    USE_INCLUDED_LIBINTL=no
12809
 
 
12810
 
  LIBINTL=
12811
 
  LTLIBINTL=
12812
 
  POSUB=
12813
 
 
12814
 
    case " $gt_needs " in
12815
 
    *" need-formatstring-macros "*) gt_api_version=3 ;;
12816
 
    *" need-ngettext "*) gt_api_version=2 ;;
12817
 
    *) gt_api_version=1 ;;
12818
 
  esac
12819
 
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12820
 
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12821
 
 
12822
 
    if test "$USE_NLS" = "yes"; then
12823
 
    gt_use_preinstalled_gnugettext=no
12824
 
 
12825
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
12826
 
$as_echo_n "checking whether included gettext is requested... " >&6; }
12827
 
 
12828
 
# Check whether --with-included-gettext was given.
12829
 
if test "${with_included_gettext+set}" = set; then :
12830
 
  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12831
 
else
12832
 
  nls_cv_force_use_gnu_gettext=no
12833
 
fi
12834
 
 
12835
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
12836
 
$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
12837
 
 
12838
 
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12839
 
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12840
 
 
12841
 
 
12842
 
        if test $gt_api_version -ge 3; then
12843
 
          gt_revision_test_code='
12844
 
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12845
 
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12846
 
#endif
12847
 
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12848
 
'
12849
 
        else
12850
 
          gt_revision_test_code=
12851
 
        fi
12852
 
        if test $gt_api_version -ge 2; then
12853
 
          gt_expression_test_code=' + * ngettext ("", "", 0)'
12854
 
        else
12855
 
          gt_expression_test_code=
12856
 
        fi
12857
 
 
12858
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12859
 
$as_echo_n "checking for GNU gettext in libc... " >&6; }
12860
 
if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
12861
 
  $as_echo_n "(cached) " >&6
12862
 
else
12863
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864
 
/* end confdefs.h.  */
12865
 
#include <libintl.h>
12866
 
$gt_revision_test_code
12867
 
extern int _nl_msg_cat_cntr;
12868
 
extern int *_nl_domain_bindings;
12869
 
int
12870
 
main ()
12871
 
{
12872
 
bindtextdomain ("", "");
12873
 
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12874
 
  ;
12875
 
  return 0;
12876
 
}
12877
 
_ACEOF
12878
 
if ac_fn_cxx_try_link "$LINENO"; then :
12879
 
  eval "$gt_func_gnugettext_libc=yes"
12880
 
else
12881
 
  eval "$gt_func_gnugettext_libc=no"
12882
 
fi
12883
 
rm -f core conftest.err conftest.$ac_objext \
12884
 
    conftest$ac_exeext conftest.$ac_ext
12885
 
fi
12886
 
eval ac_res=\$$gt_func_gnugettext_libc
12887
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12888
 
$as_echo "$ac_res" >&6; }
12889
 
 
12890
 
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12891
 
 
12892
 
 
12893
 
 
12894
 
 
12895
 
 
12896
 
    use_additional=yes
12897
 
 
12898
 
  acl_save_prefix="$prefix"
12899
 
  prefix="$acl_final_prefix"
12900
 
  acl_save_exec_prefix="$exec_prefix"
12901
 
  exec_prefix="$acl_final_exec_prefix"
12902
 
 
12903
 
    eval additional_includedir=\"$includedir\"
12904
 
    eval additional_libdir=\"$libdir\"
12905
 
 
12906
 
  exec_prefix="$acl_save_exec_prefix"
12907
 
  prefix="$acl_save_prefix"
12908
 
 
12909
 
 
12910
 
# Check whether --with-libintl-prefix was given.
12911
 
if test "${with_libintl_prefix+set}" = set; then :
12912
 
  withval=$with_libintl_prefix;
12913
 
    if test "X$withval" = "Xno"; then
12914
 
      use_additional=no
12915
 
    else
12916
 
      if test "X$withval" = "X"; then
12917
 
 
12918
 
  acl_save_prefix="$prefix"
12919
 
  prefix="$acl_final_prefix"
12920
 
  acl_save_exec_prefix="$exec_prefix"
12921
 
  exec_prefix="$acl_final_exec_prefix"
12922
 
 
12923
 
          eval additional_includedir=\"$includedir\"
12924
 
          eval additional_libdir=\"$libdir\"
12925
 
 
12926
 
  exec_prefix="$acl_save_exec_prefix"
12927
 
  prefix="$acl_save_prefix"
12928
 
 
12929
 
      else
12930
 
        additional_includedir="$withval/include"
12931
 
        additional_libdir="$withval/$acl_libdirstem"
12932
 
      fi
12933
 
    fi
12934
 
 
12935
 
fi
12936
 
 
12937
 
      LIBINTL=
12938
 
  LTLIBINTL=
12939
 
  INCINTL=
12940
 
  LIBINTL_PREFIX=
12941
 
  rpathdirs=
12942
 
  ltrpathdirs=
12943
 
  names_already_handled=
12944
 
  names_next_round='intl '
12945
 
  while test -n "$names_next_round"; do
12946
 
    names_this_round="$names_next_round"
12947
 
    names_next_round=
12948
 
    for name in $names_this_round; do
12949
 
      already_handled=
12950
 
      for n in $names_already_handled; do
12951
 
        if test "$n" = "$name"; then
12952
 
          already_handled=yes
12953
 
          break
12954
 
        fi
12955
 
      done
12956
 
      if test -z "$already_handled"; then
12957
 
        names_already_handled="$names_already_handled $name"
12958
 
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12959
 
        eval value=\"\$HAVE_LIB$uppername\"
12960
 
        if test -n "$value"; then
12961
 
          if test "$value" = yes; then
12962
 
            eval value=\"\$LIB$uppername\"
12963
 
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12964
 
            eval value=\"\$LTLIB$uppername\"
12965
 
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12966
 
          else
12967
 
                                    :
12968
 
          fi
12969
 
        else
12970
 
                              found_dir=
12971
 
          found_la=
12972
 
          found_so=
12973
 
          found_a=
12974
 
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12975
 
          if test -n "$acl_shlibext"; then
12976
 
            shrext=".$acl_shlibext"             # typically: shrext=.so
12977
 
          else
12978
 
            shrext=
12979
 
          fi
12980
 
          if test $use_additional = yes; then
12981
 
            dir="$additional_libdir"
12982
 
                                    if test -n "$acl_shlibext"; then
12983
 
              if test -f "$dir/$libname$shrext"; then
12984
 
                found_dir="$dir"
12985
 
                found_so="$dir/$libname$shrext"
12986
 
              else
12987
 
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12988
 
                  ver=`(cd "$dir" && \
12989
 
                        for f in "$libname$shrext".*; do echo "$f"; done \
12990
 
                        | sed -e "s,^$libname$shrext\\\\.,," \
12991
 
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12992
 
                        | sed 1q ) 2>/dev/null`
12993
 
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12994
 
                    found_dir="$dir"
12995
 
                    found_so="$dir/$libname$shrext.$ver"
12996
 
                  fi
12997
 
                else
12998
 
                  eval library_names=\"$acl_library_names_spec\"
12999
 
                  for f in $library_names; do
13000
 
                    if test -f "$dir/$f"; then
13001
 
                      found_dir="$dir"
13002
 
                      found_so="$dir/$f"
13003
 
                      break
13004
 
                    fi
13005
 
                  done
13006
 
                fi
13007
 
              fi
13008
 
            fi
13009
 
                        if test "X$found_dir" = "X"; then
13010
 
              if test -f "$dir/$libname.$acl_libext"; then
13011
 
                found_dir="$dir"
13012
 
                found_a="$dir/$libname.$acl_libext"
13013
 
              fi
13014
 
            fi
13015
 
            if test "X$found_dir" != "X"; then
13016
 
              if test -f "$dir/$libname.la"; then
13017
 
                found_la="$dir/$libname.la"
13018
 
              fi
13019
 
            fi
13020
 
          fi
13021
 
          if test "X$found_dir" = "X"; then
13022
 
            for x in $LDFLAGS $LTLIBINTL; do
13023
 
 
13024
 
  acl_save_prefix="$prefix"
13025
 
  prefix="$acl_final_prefix"
13026
 
  acl_save_exec_prefix="$exec_prefix"
13027
 
  exec_prefix="$acl_final_exec_prefix"
13028
 
  eval x=\"$x\"
13029
 
  exec_prefix="$acl_save_exec_prefix"
13030
 
  prefix="$acl_save_prefix"
13031
 
 
13032
 
              case "$x" in
13033
 
                -L*)
13034
 
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13035
 
                                    if test -n "$acl_shlibext"; then
13036
 
                    if test -f "$dir/$libname$shrext"; then
13037
 
                      found_dir="$dir"
13038
 
                      found_so="$dir/$libname$shrext"
13039
 
                    else
13040
 
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13041
 
                        ver=`(cd "$dir" && \
13042
 
                              for f in "$libname$shrext".*; do echo "$f"; done \
13043
 
                              | sed -e "s,^$libname$shrext\\\\.,," \
13044
 
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13045
 
                              | sed 1q ) 2>/dev/null`
13046
 
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13047
 
                          found_dir="$dir"
13048
 
                          found_so="$dir/$libname$shrext.$ver"
13049
 
                        fi
13050
 
                      else
13051
 
                        eval library_names=\"$acl_library_names_spec\"
13052
 
                        for f in $library_names; do
13053
 
                          if test -f "$dir/$f"; then
13054
 
                            found_dir="$dir"
13055
 
                            found_so="$dir/$f"
13056
 
                            break
13057
 
                          fi
13058
 
                        done
13059
 
                      fi
13060
 
                    fi
13061
 
                  fi
13062
 
                                    if test "X$found_dir" = "X"; then
13063
 
                    if test -f "$dir/$libname.$acl_libext"; then
13064
 
                      found_dir="$dir"
13065
 
                      found_a="$dir/$libname.$acl_libext"
13066
 
                    fi
13067
 
                  fi
13068
 
                  if test "X$found_dir" != "X"; then
13069
 
                    if test -f "$dir/$libname.la"; then
13070
 
                      found_la="$dir/$libname.la"
13071
 
                    fi
13072
 
                  fi
13073
 
                  ;;
13074
 
              esac
13075
 
              if test "X$found_dir" != "X"; then
13076
 
                break
13077
 
              fi
13078
 
            done
13079
 
          fi
13080
 
          if test "X$found_dir" != "X"; then
13081
 
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13082
 
            if test "X$found_so" != "X"; then
13083
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13084
 
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13085
 
              else
13086
 
                                                                                haveit=
13087
 
                for x in $ltrpathdirs; do
13088
 
                  if test "X$x" = "X$found_dir"; then
13089
 
                    haveit=yes
13090
 
                    break
13091
 
                  fi
13092
 
                done
13093
 
                if test -z "$haveit"; then
13094
 
                  ltrpathdirs="$ltrpathdirs $found_dir"
13095
 
                fi
13096
 
                                if test "$acl_hardcode_direct" = yes; then
13097
 
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13098
 
                else
13099
 
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13100
 
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13101
 
                                                            haveit=
13102
 
                    for x in $rpathdirs; do
13103
 
                      if test "X$x" = "X$found_dir"; then
13104
 
                        haveit=yes
13105
 
                        break
13106
 
                      fi
13107
 
                    done
13108
 
                    if test -z "$haveit"; then
13109
 
                      rpathdirs="$rpathdirs $found_dir"
13110
 
                    fi
13111
 
                  else
13112
 
                                                                                haveit=
13113
 
                    for x in $LDFLAGS $LIBINTL; do
13114
 
 
13115
 
  acl_save_prefix="$prefix"
13116
 
  prefix="$acl_final_prefix"
13117
 
  acl_save_exec_prefix="$exec_prefix"
13118
 
  exec_prefix="$acl_final_exec_prefix"
13119
 
  eval x=\"$x\"
13120
 
  exec_prefix="$acl_save_exec_prefix"
13121
 
  prefix="$acl_save_prefix"
13122
 
 
13123
 
                      if test "X$x" = "X-L$found_dir"; then
13124
 
                        haveit=yes
13125
 
                        break
13126
 
                      fi
13127
 
                    done
13128
 
                    if test -z "$haveit"; then
13129
 
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13130
 
                    fi
13131
 
                    if test "$acl_hardcode_minus_L" != no; then
13132
 
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13133
 
                    else
13134
 
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13135
 
                    fi
13136
 
                  fi
13137
 
                fi
13138
 
              fi
13139
 
            else
13140
 
              if test "X$found_a" != "X"; then
13141
 
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13142
 
              else
13143
 
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13144
 
              fi
13145
 
            fi
13146
 
                        additional_includedir=
13147
 
            case "$found_dir" in
13148
 
              */$acl_libdirstem | */$acl_libdirstem/)
13149
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13150
 
                LIBINTL_PREFIX="$basedir"
13151
 
                additional_includedir="$basedir/include"
13152
 
                ;;
13153
 
            esac
13154
 
            if test "X$additional_includedir" != "X"; then
13155
 
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13156
 
                haveit=
13157
 
                if test "X$additional_includedir" = "X/usr/local/include"; then
13158
 
                  if test -n "$GCC"; then
13159
 
                    case $host_os in
13160
 
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13161
 
                    esac
13162
 
                  fi
13163
 
                fi
13164
 
                if test -z "$haveit"; then
13165
 
                  for x in $CPPFLAGS $INCINTL; do
13166
 
 
13167
 
  acl_save_prefix="$prefix"
13168
 
  prefix="$acl_final_prefix"
13169
 
  acl_save_exec_prefix="$exec_prefix"
13170
 
  exec_prefix="$acl_final_exec_prefix"
13171
 
  eval x=\"$x\"
13172
 
  exec_prefix="$acl_save_exec_prefix"
13173
 
  prefix="$acl_save_prefix"
13174
 
 
13175
 
                    if test "X$x" = "X-I$additional_includedir"; then
13176
 
                      haveit=yes
13177
 
                      break
13178
 
                    fi
13179
 
                  done
13180
 
                  if test -z "$haveit"; then
13181
 
                    if test -d "$additional_includedir"; then
13182
 
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13183
 
                    fi
13184
 
                  fi
13185
 
                fi
13186
 
              fi
13187
 
            fi
13188
 
                        if test -n "$found_la"; then
13189
 
                                                        save_libdir="$libdir"
13190
 
              case "$found_la" in
13191
 
                */* | *\\*) . "$found_la" ;;
13192
 
                *) . "./$found_la" ;;
13193
 
              esac
13194
 
              libdir="$save_libdir"
13195
 
                            for dep in $dependency_libs; do
13196
 
                case "$dep" in
13197
 
                  -L*)
13198
 
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13199
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13200
 
                      haveit=
13201
 
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13202
 
                        if test -n "$GCC"; then
13203
 
                          case $host_os in
13204
 
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13205
 
                          esac
13206
 
                        fi
13207
 
                      fi
13208
 
                      if test -z "$haveit"; then
13209
 
                        haveit=
13210
 
                        for x in $LDFLAGS $LIBINTL; do
13211
 
 
13212
 
  acl_save_prefix="$prefix"
13213
 
  prefix="$acl_final_prefix"
13214
 
  acl_save_exec_prefix="$exec_prefix"
13215
 
  exec_prefix="$acl_final_exec_prefix"
13216
 
  eval x=\"$x\"
13217
 
  exec_prefix="$acl_save_exec_prefix"
13218
 
  prefix="$acl_save_prefix"
13219
 
 
13220
 
                          if test "X$x" = "X-L$additional_libdir"; then
13221
 
                            haveit=yes
13222
 
                            break
13223
 
                          fi
13224
 
                        done
13225
 
                        if test -z "$haveit"; then
13226
 
                          if test -d "$additional_libdir"; then
13227
 
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13228
 
                          fi
13229
 
                        fi
13230
 
                        haveit=
13231
 
                        for x in $LDFLAGS $LTLIBINTL; do
13232
 
 
13233
 
  acl_save_prefix="$prefix"
13234
 
  prefix="$acl_final_prefix"
13235
 
  acl_save_exec_prefix="$exec_prefix"
13236
 
  exec_prefix="$acl_final_exec_prefix"
13237
 
  eval x=\"$x\"
13238
 
  exec_prefix="$acl_save_exec_prefix"
13239
 
  prefix="$acl_save_prefix"
13240
 
 
13241
 
                          if test "X$x" = "X-L$additional_libdir"; then
13242
 
                            haveit=yes
13243
 
                            break
13244
 
                          fi
13245
 
                        done
13246
 
                        if test -z "$haveit"; then
13247
 
                          if test -d "$additional_libdir"; then
13248
 
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13249
 
                          fi
13250
 
                        fi
13251
 
                      fi
13252
 
                    fi
13253
 
                    ;;
13254
 
                  -R*)
13255
 
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
13256
 
                    if test "$enable_rpath" != no; then
13257
 
                                                                  haveit=
13258
 
                      for x in $rpathdirs; do
13259
 
                        if test "X$x" = "X$dir"; then
13260
 
                          haveit=yes
13261
 
                          break
13262
 
                        fi
13263
 
                      done
13264
 
                      if test -z "$haveit"; then
13265
 
                        rpathdirs="$rpathdirs $dir"
13266
 
                      fi
13267
 
                                                                  haveit=
13268
 
                      for x in $ltrpathdirs; do
13269
 
                        if test "X$x" = "X$dir"; then
13270
 
                          haveit=yes
13271
 
                          break
13272
 
                        fi
13273
 
                      done
13274
 
                      if test -z "$haveit"; then
13275
 
                        ltrpathdirs="$ltrpathdirs $dir"
13276
 
                      fi
13277
 
                    fi
13278
 
                    ;;
13279
 
                  -l*)
13280
 
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13281
 
                    ;;
13282
 
                  *.la)
13283
 
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13284
 
                    ;;
13285
 
                  *)
13286
 
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13287
 
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13288
 
                    ;;
13289
 
                esac
13290
 
              done
13291
 
            fi
13292
 
          else
13293
 
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13294
 
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13295
 
          fi
13296
 
        fi
13297
 
      fi
13298
 
    done
13299
 
  done
13300
 
  if test "X$rpathdirs" != "X"; then
13301
 
    if test -n "$acl_hardcode_libdir_separator"; then
13302
 
                        alldirs=
13303
 
      for found_dir in $rpathdirs; do
13304
 
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13305
 
      done
13306
 
            acl_save_libdir="$libdir"
13307
 
      libdir="$alldirs"
13308
 
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
13309
 
      libdir="$acl_save_libdir"
13310
 
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13311
 
    else
13312
 
            for found_dir in $rpathdirs; do
13313
 
        acl_save_libdir="$libdir"
13314
 
        libdir="$found_dir"
13315
 
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
13316
 
        libdir="$acl_save_libdir"
13317
 
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13318
 
      done
13319
 
    fi
13320
 
  fi
13321
 
  if test "X$ltrpathdirs" != "X"; then
13322
 
            for found_dir in $ltrpathdirs; do
13323
 
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13324
 
    done
13325
 
  fi
13326
 
 
13327
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13328
 
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
13329
 
if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
13330
 
  $as_echo_n "(cached) " >&6
13331
 
else
13332
 
  gt_save_CPPFLAGS="$CPPFLAGS"
13333
 
            CPPFLAGS="$CPPFLAGS $INCINTL"
13334
 
            gt_save_LIBS="$LIBS"
13335
 
            LIBS="$LIBS $LIBINTL"
13336
 
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337
 
/* end confdefs.h.  */
13338
 
#include <libintl.h>
13339
 
$gt_revision_test_code
13340
 
extern int _nl_msg_cat_cntr;
13341
 
extern
13342
 
#ifdef __cplusplus
13343
 
"C"
13344
 
#endif
13345
 
const char *_nl_expand_alias (const char *);
13346
 
int
13347
 
main ()
13348
 
{
13349
 
bindtextdomain ("", "");
13350
 
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13351
 
  ;
13352
 
  return 0;
13353
 
}
13354
 
_ACEOF
13355
 
if ac_fn_cxx_try_link "$LINENO"; then :
13356
 
  eval "$gt_func_gnugettext_libintl=yes"
13357
 
else
13358
 
  eval "$gt_func_gnugettext_libintl=no"
13359
 
fi
13360
 
rm -f core conftest.err conftest.$ac_objext \
13361
 
    conftest$ac_exeext conftest.$ac_ext
13362
 
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13363
 
              LIBS="$LIBS $LIBICONV"
13364
 
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365
 
/* end confdefs.h.  */
13366
 
#include <libintl.h>
13367
 
$gt_revision_test_code
13368
 
extern int _nl_msg_cat_cntr;
13369
 
extern
13370
 
#ifdef __cplusplus
13371
 
"C"
13372
 
#endif
13373
 
const char *_nl_expand_alias (const char *);
13374
 
int
13375
 
main ()
13376
 
{
13377
 
bindtextdomain ("", "");
13378
 
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13379
 
  ;
13380
 
  return 0;
13381
 
}
13382
 
_ACEOF
13383
 
if ac_fn_cxx_try_link "$LINENO"; then :
13384
 
  LIBINTL="$LIBINTL $LIBICONV"
13385
 
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13386
 
                eval "$gt_func_gnugettext_libintl=yes"
13387
 
 
13388
 
fi
13389
 
rm -f core conftest.err conftest.$ac_objext \
13390
 
    conftest$ac_exeext conftest.$ac_ext
13391
 
            fi
13392
 
            CPPFLAGS="$gt_save_CPPFLAGS"
13393
 
            LIBS="$gt_save_LIBS"
13394
 
fi
13395
 
eval ac_res=\$$gt_func_gnugettext_libintl
13396
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13397
 
$as_echo "$ac_res" >&6; }
13398
 
        fi
13399
 
 
13400
 
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13401
 
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13402
 
                && test "$PACKAGE" != gettext-runtime \
13403
 
                && test "$PACKAGE" != gettext-tools; }; then
13404
 
          gt_use_preinstalled_gnugettext=yes
13405
 
        else
13406
 
                    LIBINTL=
13407
 
          LTLIBINTL=
13408
 
          INCINTL=
13409
 
        fi
13410
 
 
13411
 
 
13412
 
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13413
 
                              nls_cv_use_gnu_gettext=yes
13414
 
        fi
13415
 
      fi
13416
 
 
13417
 
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
13418
 
                BUILD_INCLUDED_LIBINTL=yes
13419
 
        USE_INCLUDED_LIBINTL=yes
13420
 
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
13421
 
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
13422
 
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13423
 
      fi
13424
 
 
13425
 
      CATOBJEXT=
13426
 
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
13427
 
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
13428
 
                CATOBJEXT=.gmo
13429
 
      fi
13430
 
 
13431
 
 
13432
 
    if test -n "$INTL_MACOSX_LIBS"; then
13433
 
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
13434
 
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
13435
 
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13436
 
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13437
 
      fi
13438
 
    fi
13439
 
 
13440
 
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
13441
 
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
13442
 
 
13443
 
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
13444
 
 
13445
 
    else
13446
 
      USE_NLS=no
13447
 
    fi
13448
 
  fi
13449
 
 
13450
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13451
 
$as_echo_n "checking whether to use NLS... " >&6; }
13452
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13453
 
$as_echo "$USE_NLS" >&6; }
13454
 
  if test "$USE_NLS" = "yes"; then
13455
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13456
 
$as_echo_n "checking where the gettext function comes from... " >&6; }
13457
 
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13458
 
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13459
 
        gt_source="external libintl"
13460
 
      else
13461
 
        gt_source="libc"
13462
 
      fi
13463
 
    else
13464
 
      gt_source="included intl directory"
13465
 
    fi
13466
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13467
 
$as_echo "$gt_source" >&6; }
13468
 
  fi
13469
 
 
13470
 
  if test "$USE_NLS" = "yes"; then
13471
 
 
13472
 
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13473
 
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13474
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13475
 
$as_echo_n "checking how to link with libintl... " >&6; }
13476
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13477
 
$as_echo "$LIBINTL" >&6; }
13478
 
 
13479
 
  for element in $INCINTL; do
13480
 
    haveit=
13481
 
    for x in $CPPFLAGS; do
13482
 
 
13483
 
  acl_save_prefix="$prefix"
13484
 
  prefix="$acl_final_prefix"
13485
 
  acl_save_exec_prefix="$exec_prefix"
13486
 
  exec_prefix="$acl_final_exec_prefix"
13487
 
  eval x=\"$x\"
13488
 
  exec_prefix="$acl_save_exec_prefix"
13489
 
  prefix="$acl_save_prefix"
13490
 
 
13491
 
      if test "X$x" = "X$element"; then
13492
 
        haveit=yes
13493
 
        break
13494
 
      fi
13495
 
    done
13496
 
    if test -z "$haveit"; then
13497
 
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13498
 
    fi
13499
 
  done
13500
 
 
13501
 
      fi
13502
 
 
13503
 
 
13504
 
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13505
 
 
13506
 
 
13507
 
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13508
 
 
13509
 
    fi
13510
 
 
13511
 
        POSUB=po
13512
 
  fi
13513
 
 
13514
 
 
13515
 
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13516
 
      BUILD_INCLUDED_LIBINTL=yes
13517
 
    fi
13518
 
 
13519
 
 
13520
 
 
13521
 
 
13522
 
 
13523
 
        nls_cv_header_intl=
13524
 
    nls_cv_header_libgt=
13525
 
 
13526
 
        DATADIRNAME=share
13527
 
 
13528
 
 
13529
 
        INSTOBJEXT=.mo
13530
 
 
13531
 
 
13532
 
        GENCAT=gencat
13533
 
 
13534
 
 
13535
 
        INTLOBJS=
13536
 
    if test "$USE_INCLUDED_LIBINTL" = yes; then
13537
 
      INTLOBJS="\$(GETTOBJS)"
13538
 
    fi
13539
 
 
13540
 
 
13541
 
        INTL_LIBTOOL_SUFFIX_PREFIX=
13542
 
 
13543
 
 
13544
 
 
13545
 
    INTLLIBS="$LIBINTL"
13546
 
 
13547
 
 
13548
 
 
13549
 
 
13550
 
 
13551
 
 
13552
 
 
13553
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
13554
 
$as_echo_n "checking for error_at_line... " >&6; }
13555
 
if test "${ac_cv_lib_error_at_line+set}" = set; then :
13556
 
  $as_echo_n "(cached) " >&6
13557
 
else
13558
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559
 
/* end confdefs.h.  */
13560
 
#include <error.h>
13561
 
int
13562
 
main ()
13563
 
{
13564
 
error_at_line (0, 0, "", 0, "an error occurred");
13565
 
  ;
13566
 
  return 0;
13567
 
}
13568
 
_ACEOF
13569
 
if ac_fn_cxx_try_link "$LINENO"; then :
13570
 
  ac_cv_lib_error_at_line=yes
13571
 
else
13572
 
  ac_cv_lib_error_at_line=no
13573
 
fi
13574
 
rm -f core conftest.err conftest.$ac_objext \
13575
 
    conftest$ac_exeext conftest.$ac_ext
13576
 
fi
13577
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
13578
 
$as_echo "$ac_cv_lib_error_at_line" >&6; }
13579
 
if test $ac_cv_lib_error_at_line = no; then
13580
 
  case " $LIBOBJS " in
13581
 
  *" error.$ac_objext "* ) ;;
13582
 
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
13583
 
 ;;
13584
 
esac
13585
 
 
13586
 
fi
13587
 
 
13588
 
if test $ac_cv_c_compiler_gnu = yes; then
13589
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13590
 
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
13591
 
if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
13592
 
  $as_echo_n "(cached) " >&6
13593
 
else
13594
 
    ac_pattern="Autoconf.*'x'"
13595
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596
 
/* end confdefs.h.  */
13597
 
#include <sgtty.h>
13598
 
Autoconf TIOCGETP
13599
 
_ACEOF
13600
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13602
 
  ac_cv_prog_gcc_traditional=yes
13603
 
else
13604
 
  ac_cv_prog_gcc_traditional=no
13605
 
fi
13606
 
rm -f conftest*
13607
 
 
13608
 
 
13609
 
  if test $ac_cv_prog_gcc_traditional = no; then
13610
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611
 
/* end confdefs.h.  */
13612
 
#include <termio.h>
13613
 
Autoconf TCGETA
13614
 
_ACEOF
13615
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13616
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13617
 
  ac_cv_prog_gcc_traditional=yes
13618
 
fi
13619
 
rm -f conftest*
13620
 
 
13621
 
  fi
13622
 
fi
13623
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13624
 
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13625
 
  if test $ac_cv_prog_gcc_traditional = yes; then
13626
 
    CC="$CC -traditional"
13627
 
  fi
13628
 
fi
13629
 
 
13630
 
 
13631
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13632
 
$as_echo_n "checking for working memcmp... " >&6; }
13633
 
if test "${ac_cv_func_memcmp_working+set}" = set; then :
13634
 
  $as_echo_n "(cached) " >&6
13635
 
else
13636
 
  if test "$cross_compiling" = yes; then :
13637
 
  ac_cv_func_memcmp_working=no
13638
 
else
13639
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640
 
/* end confdefs.h.  */
13641
 
$ac_includes_default
13642
 
int
13643
 
main ()
13644
 
{
13645
 
 
13646
 
  /* Some versions of memcmp are not 8-bit clean.  */
13647
 
  char c0 = '\100', c1 = '\200', c2 = '\201';
13648
 
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13649
 
    return 1;
13650
 
 
13651
 
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13652
 
     or more and with at least one buffer not starting on a 4-byte boundary.
13653
 
     William Lewis provided this test program.   */
13654
 
  {
13655
 
    char foo[21];
13656
 
    char bar[21];
13657
 
    int i;
13658
 
    for (i = 0; i < 4; i++)
13659
 
      {
13660
 
        char *a = foo + i;
13661
 
        char *b = bar + i;
13662
 
        strcpy (a, "--------01111111");
13663
 
        strcpy (b, "--------10000000");
13664
 
        if (memcmp (a, b, 16) >= 0)
13665
 
          return 1;
13666
 
      }
13667
 
    return 0;
13668
 
  }
13669
 
 
13670
 
  ;
13671
 
  return 0;
13672
 
}
13673
 
_ACEOF
13674
 
if ac_fn_cxx_try_run "$LINENO"; then :
13675
 
  ac_cv_func_memcmp_working=yes
13676
 
else
13677
 
  ac_cv_func_memcmp_working=no
13678
 
fi
13679
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13680
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13681
 
fi
13682
 
 
13683
 
fi
13684
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13685
 
$as_echo "$ac_cv_func_memcmp_working" >&6; }
13686
 
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13687
 
  *" memcmp.$ac_objext "* ) ;;
13688
 
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13689
 
 ;;
13690
 
esac
13691
 
 
13692
 
 
13693
 
 
13694
 
 
13695
 
 
13696
 
 
13697
 
 
13698
 
  for ac_func in $ac_func_list
13699
 
do :
13700
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13701
 
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
13702
 
eval as_val=\$$as_ac_var
13703
 
   if test "x$as_val" = x""yes; then :
13704
 
  cat >>confdefs.h <<_ACEOF
13705
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13706
 
_ACEOF
13707
 
 
13708
 
fi
13709
 
done
13710
 
 
13711
 
 
13712
 
 
13713
 
 
13714
 
 
13715
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13716
 
$as_echo_n "checking for working mktime... " >&6; }
13717
 
if test "${ac_cv_func_working_mktime+set}" = set; then :
13718
 
  $as_echo_n "(cached) " >&6
13719
 
else
13720
 
  if test "$cross_compiling" = yes; then :
13721
 
  ac_cv_func_working_mktime=no
13722
 
else
13723
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724
 
/* end confdefs.h.  */
13725
 
/* Test program from Paul Eggert and Tony Leneis.  */
13726
 
#ifdef TIME_WITH_SYS_TIME
13727
 
# include <sys/time.h>
13728
 
# include <time.h>
13729
 
#else
13730
 
# ifdef HAVE_SYS_TIME_H
13731
 
#  include <sys/time.h>
13732
 
# else
13733
 
#  include <time.h>
13734
 
# endif
13735
 
#endif
13736
 
 
13737
 
#include <limits.h>
13738
 
#include <stdlib.h>
13739
 
 
13740
 
#ifdef HAVE_UNISTD_H
13741
 
# include <unistd.h>
13742
 
#endif
13743
 
 
13744
 
#ifndef HAVE_ALARM
13745
 
# define alarm(X) /* empty */
13746
 
#endif
13747
 
 
13748
 
/* Work around redefinition to rpl_putenv by other config tests.  */
13749
 
#undef putenv
13750
 
 
13751
 
static time_t time_t_max;
13752
 
static time_t time_t_min;
13753
 
 
13754
 
/* Values we'll use to set the TZ environment variable.  */
13755
 
static char *tz_strings[] = {
13756
 
  (char *) 0, "TZ=GMT0", "TZ=JST-9",
13757
 
  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13758
 
};
13759
 
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13760
 
 
13761
 
/* Return 0 if mktime fails to convert a date in the spring-forward gap.
13762
 
   Based on a problem report from Andreas Jaeger.  */
13763
 
static int
13764
 
spring_forward_gap ()
13765
 
{
13766
 
  /* glibc (up to about 1998-10-07) failed this test. */
13767
 
  struct tm tm;
13768
 
 
13769
 
  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13770
 
     instead of "TZ=America/Vancouver" in order to detect the bug even
13771
 
     on systems that don't support the Olson extension, or don't have the
13772
 
     full zoneinfo tables installed.  */
13773
 
  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13774
 
 
13775
 
  tm.tm_year = 98;
13776
 
  tm.tm_mon = 3;
13777
 
  tm.tm_mday = 5;
13778
 
  tm.tm_hour = 2;
13779
 
  tm.tm_min = 0;
13780
 
  tm.tm_sec = 0;
13781
 
  tm.tm_isdst = -1;
13782
 
  return mktime (&tm) != (time_t) -1;
13783
 
}
13784
 
 
13785
 
static int
13786
 
mktime_test1 (now)
13787
 
     time_t now;
13788
 
{
13789
 
  struct tm *lt;
13790
 
  return ! (lt = localtime (&now)) || mktime (lt) == now;
13791
 
}
13792
 
 
13793
 
static int
13794
 
mktime_test (now)
13795
 
     time_t now;
13796
 
{
13797
 
  return (mktime_test1 (now)
13798
 
          && mktime_test1 ((time_t) (time_t_max - now))
13799
 
          && mktime_test1 ((time_t) (time_t_min + now)));
13800
 
}
13801
 
 
13802
 
static int
13803
 
irix_6_4_bug ()
13804
 
{
13805
 
  /* Based on code from Ariel Faigon.  */
13806
 
  struct tm tm;
13807
 
  tm.tm_year = 96;
13808
 
  tm.tm_mon = 3;
13809
 
  tm.tm_mday = 0;
13810
 
  tm.tm_hour = 0;
13811
 
  tm.tm_min = 0;
13812
 
  tm.tm_sec = 0;
13813
 
  tm.tm_isdst = -1;
13814
 
  mktime (&tm);
13815
 
  return tm.tm_mon == 2 && tm.tm_mday == 31;
13816
 
}
13817
 
 
13818
 
static int
13819
 
bigtime_test (j)
13820
 
     int j;
13821
 
{
13822
 
  struct tm tm;
13823
 
  time_t now;
13824
 
  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13825
 
  now = mktime (&tm);
13826
 
  if (now != (time_t) -1)
13827
 
    {
13828
 
      struct tm *lt = localtime (&now);
13829
 
      if (! (lt
13830
 
             && lt->tm_year == tm.tm_year
13831
 
             && lt->tm_mon == tm.tm_mon
13832
 
             && lt->tm_mday == tm.tm_mday
13833
 
             && lt->tm_hour == tm.tm_hour
13834
 
             && lt->tm_min == tm.tm_min
13835
 
             && lt->tm_sec == tm.tm_sec
13836
 
             && lt->tm_yday == tm.tm_yday
13837
 
             && lt->tm_wday == tm.tm_wday
13838
 
             && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13839
 
                  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13840
 
        return 0;
13841
 
    }
13842
 
  return 1;
13843
 
}
13844
 
 
13845
 
static int
13846
 
year_2050_test ()
13847
 
{
13848
 
  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13849
 
     ignoring leap seconds.  */
13850
 
  unsigned long int answer = 2527315200UL;
13851
 
 
13852
 
  struct tm tm;
13853
 
  time_t t;
13854
 
  tm.tm_year = 2050 - 1900;
13855
 
  tm.tm_mon = 2 - 1;
13856
 
  tm.tm_mday = 1;
13857
 
  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13858
 
  tm.tm_isdst = -1;
13859
 
 
13860
 
  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13861
 
     instead of "TZ=America/Vancouver" in order to detect the bug even
13862
 
     on systems that don't support the Olson extension, or don't have the
13863
 
     full zoneinfo tables installed.  */
13864
 
  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13865
 
 
13866
 
  t = mktime (&tm);
13867
 
 
13868
 
  /* Check that the result is either a failure, or close enough
13869
 
     to the correct answer that we can assume the discrepancy is
13870
 
     due to leap seconds.  */
13871
 
  return (t == (time_t) -1
13872
 
          || (0 < t && answer - 120 <= t && t <= answer + 120));
13873
 
}
13874
 
 
13875
 
int
13876
 
main ()
13877
 
{
13878
 
  time_t t, delta;
13879
 
  int i, j;
13880
 
 
13881
 
  /* This test makes some buggy mktime implementations loop.
13882
 
     Give up after 60 seconds; a mktime slower than that
13883
 
     isn't worth using anyway.  */
13884
 
  alarm (60);
13885
 
 
13886
 
  for (;;)
13887
 
    {
13888
 
      t = (time_t_max << 1) + 1;
13889
 
      if (t <= time_t_max)
13890
 
        break;
13891
 
      time_t_max = t;
13892
 
    }
13893
 
  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
13894
 
 
13895
 
  delta = time_t_max / 997; /* a suitable prime number */
13896
 
  for (i = 0; i < N_STRINGS; i++)
13897
 
    {
13898
 
      if (tz_strings[i])
13899
 
        putenv (tz_strings[i]);
13900
 
 
13901
 
      for (t = 0; t <= time_t_max - delta; t += delta)
13902
 
        if (! mktime_test (t))
13903
 
          return 1;
13904
 
      if (! (mktime_test ((time_t) 1)
13905
 
             && mktime_test ((time_t) (60 * 60))
13906
 
             && mktime_test ((time_t) (60 * 60 * 24))))
13907
 
        return 1;
13908
 
 
13909
 
      for (j = 1; ; j <<= 1)
13910
 
        if (! bigtime_test (j))
13911
 
          return 1;
13912
 
        else if (INT_MAX / 2 < j)
13913
 
          break;
13914
 
      if (! bigtime_test (INT_MAX))
13915
 
        return 1;
13916
 
    }
13917
 
  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
13918
 
}
13919
 
_ACEOF
13920
 
if ac_fn_cxx_try_run "$LINENO"; then :
13921
 
  ac_cv_func_working_mktime=yes
13922
 
else
13923
 
  ac_cv_func_working_mktime=no
13924
 
fi
13925
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13926
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
13927
 
fi
13928
 
 
13929
 
fi
13930
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
13931
 
$as_echo "$ac_cv_func_working_mktime" >&6; }
13932
 
if test $ac_cv_func_working_mktime = no; then
13933
 
  case " $LIBOBJS " in
13934
 
  *" mktime.$ac_objext "* ) ;;
13935
 
  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13936
 
 ;;
13937
 
esac
13938
 
 
13939
 
fi
13940
 
 
13941
 
 
13942
 
for ac_func in getpagesize
13943
 
do :
13944
 
  ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13945
 
if test "x$ac_cv_func_getpagesize" = x""yes; then :
13946
 
  cat >>confdefs.h <<_ACEOF
13947
 
#define HAVE_GETPAGESIZE 1
13948
 
_ACEOF
13949
 
 
13950
 
fi
13951
 
done
13952
 
 
13953
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13954
 
$as_echo_n "checking for working mmap... " >&6; }
13955
 
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13956
 
  $as_echo_n "(cached) " >&6
13957
 
else
13958
 
  if test "$cross_compiling" = yes; then :
13959
 
  ac_cv_func_mmap_fixed_mapped=no
13960
 
else
13961
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962
 
/* end confdefs.h.  */
13963
 
$ac_includes_default
13964
 
/* malloc might have been renamed as rpl_malloc. */
13965
 
#undef malloc
13966
 
 
13967
 
/* Thanks to Mike Haertel and Jim Avera for this test.
13968
 
   Here is a matrix of mmap possibilities:
13969
 
        mmap private not fixed
13970
 
        mmap private fixed at somewhere currently unmapped
13971
 
        mmap private fixed at somewhere already mapped
13972
 
        mmap shared not fixed
13973
 
        mmap shared fixed at somewhere currently unmapped
13974
 
        mmap shared fixed at somewhere already mapped
13975
 
   For private mappings, we should verify that changes cannot be read()
13976
 
   back from the file, nor mmap's back from the file at a different
13977
 
   address.  (There have been systems where private was not correctly
13978
 
   implemented like the infamous i386 svr4.0, and systems where the
13979
 
   VM page cache was not coherent with the file system buffer cache
13980
 
   like early versions of FreeBSD and possibly contemporary NetBSD.)
13981
 
   For shared mappings, we should conversely verify that changes get
13982
 
   propagated back to all the places they're supposed to be.
13983
 
 
13984
 
   Grep wants private fixed already mapped.
13985
 
   The main things grep needs to know about mmap are:
13986
 
   * does it exist and is it safe to write into the mmap'd area
13987
 
   * how to use it (BSD variants)  */
13988
 
 
13989
 
#include <fcntl.h>
13990
 
#include <sys/mman.h>
13991
 
 
13992
 
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13993
 
char *malloc ();
13994
 
#endif
13995
 
 
13996
 
/* This mess was copied from the GNU getpagesize.h.  */
13997
 
#ifndef HAVE_GETPAGESIZE
13998
 
# ifdef _SC_PAGESIZE
13999
 
#  define getpagesize() sysconf(_SC_PAGESIZE)
14000
 
# else /* no _SC_PAGESIZE */
14001
 
#  ifdef HAVE_SYS_PARAM_H
14002
 
#   include <sys/param.h>
14003
 
#   ifdef EXEC_PAGESIZE
14004
 
#    define getpagesize() EXEC_PAGESIZE
14005
 
#   else /* no EXEC_PAGESIZE */
14006
 
#    ifdef NBPG
14007
 
#     define getpagesize() NBPG * CLSIZE
14008
 
#     ifndef CLSIZE
14009
 
#      define CLSIZE 1
14010
 
#     endif /* no CLSIZE */
14011
 
#    else /* no NBPG */
14012
 
#     ifdef NBPC
14013
 
#      define getpagesize() NBPC
14014
 
#     else /* no NBPC */
14015
 
#      ifdef PAGESIZE
14016
 
#       define getpagesize() PAGESIZE
14017
 
#      endif /* PAGESIZE */
14018
 
#     endif /* no NBPC */
14019
 
#    endif /* no NBPG */
14020
 
#   endif /* no EXEC_PAGESIZE */
14021
 
#  else /* no HAVE_SYS_PARAM_H */
14022
 
#   define getpagesize() 8192   /* punt totally */
14023
 
#  endif /* no HAVE_SYS_PARAM_H */
14024
 
# endif /* no _SC_PAGESIZE */
14025
 
 
14026
 
#endif /* no HAVE_GETPAGESIZE */
14027
 
 
14028
 
int
14029
 
main ()
14030
 
{
14031
 
  char *data, *data2, *data3;
14032
 
  const char *cdata2;
14033
 
  int i, pagesize;
14034
 
  int fd, fd2;
14035
 
 
14036
 
  pagesize = getpagesize ();
14037
 
 
14038
 
  /* First, make a file with some known garbage in it. */
14039
 
  data = (char *) malloc (pagesize);
14040
 
  if (!data)
14041
 
    return 1;
14042
 
  for (i = 0; i < pagesize; ++i)
14043
 
    *(data + i) = rand ();
14044
 
  umask (0);
14045
 
  fd = creat ("conftest.mmap", 0600);
14046
 
  if (fd < 0)
14047
 
    return 2;
14048
 
  if (write (fd, data, pagesize) != pagesize)
14049
 
    return 3;
14050
 
  close (fd);
14051
 
 
14052
 
  /* Next, check that the tail of a page is zero-filled.  File must have
14053
 
     non-zero length, otherwise we risk SIGBUS for entire page.  */
14054
 
  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14055
 
  if (fd2 < 0)
14056
 
    return 4;
14057
 
  cdata2 = "";
14058
 
  if (write (fd2, cdata2, 1) != 1)
14059
 
    return 5;
14060
 
  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14061
 
  if (data2 == MAP_FAILED)
14062
 
    return 6;
14063
 
  for (i = 0; i < pagesize; ++i)
14064
 
    if (*(data2 + i))
14065
 
      return 7;
14066
 
  close (fd2);
14067
 
  if (munmap (data2, pagesize))
14068
 
    return 8;
14069
 
 
14070
 
  /* Next, try to mmap the file at a fixed address which already has
14071
 
     something else allocated at it.  If we can, also make sure that
14072
 
     we see the same garbage.  */
14073
 
  fd = open ("conftest.mmap", O_RDWR);
14074
 
  if (fd < 0)
14075
 
    return 9;
14076
 
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14077
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14078
 
    return 10;
14079
 
  for (i = 0; i < pagesize; ++i)
14080
 
    if (*(data + i) != *(data2 + i))
14081
 
      return 11;
14082
 
 
14083
 
  /* Finally, make sure that changes to the mapped area do not
14084
 
     percolate back to the file as seen by read().  (This is a bug on
14085
 
     some variants of i386 svr4.0.)  */
14086
 
  for (i = 0; i < pagesize; ++i)
14087
 
    *(data2 + i) = *(data2 + i) + 1;
14088
 
  data3 = (char *) malloc (pagesize);
14089
 
  if (!data3)
14090
 
    return 12;
14091
 
  if (read (fd, data3, pagesize) != pagesize)
14092
 
    return 13;
14093
 
  for (i = 0; i < pagesize; ++i)
14094
 
    if (*(data + i) != *(data3 + i))
14095
 
      return 14;
14096
 
  close (fd);
14097
 
  return 0;
14098
 
}
14099
 
_ACEOF
14100
 
if ac_fn_cxx_try_run "$LINENO"; then :
14101
 
  ac_cv_func_mmap_fixed_mapped=yes
14102
 
else
14103
 
  ac_cv_func_mmap_fixed_mapped=no
14104
 
fi
14105
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14106
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14107
 
fi
14108
 
 
14109
 
fi
14110
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14111
 
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14112
 
if test $ac_cv_func_mmap_fixed_mapped = yes; then
14113
 
 
14114
 
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14115
 
 
14116
 
fi
14117
 
rm -f conftest.mmap conftest.txt
14118
 
 
14119
 
for ac_header in sys/select.h sys/socket.h
14120
 
do :
14121
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14122
 
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14123
 
eval as_val=\$$as_ac_Header
14124
 
   if test "x$as_val" = x""yes; then :
14125
 
  cat >>confdefs.h <<_ACEOF
14126
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127
 
_ACEOF
14128
 
 
14129
 
fi
14130
 
 
14131
 
done
14132
 
 
14133
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14134
 
$as_echo_n "checking types of arguments for select... " >&6; }
14135
 
if test "${ac_cv_func_select_args+set}" = set; then :
14136
 
  $as_echo_n "(cached) " >&6
14137
 
else
14138
 
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14139
 
 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14140
 
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14141
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142
 
/* end confdefs.h.  */
14143
 
$ac_includes_default
14144
 
#ifdef HAVE_SYS_SELECT_H
14145
 
# include <sys/select.h>
14146
 
#endif
14147
 
#ifdef HAVE_SYS_SOCKET_H
14148
 
# include <sys/socket.h>
14149
 
#endif
14150
 
 
14151
 
int
14152
 
main ()
14153
 
{
14154
 
extern int select ($ac_arg1,
14155
 
                                            $ac_arg234, $ac_arg234, $ac_arg234,
14156
 
                                            $ac_arg5);
14157
 
  ;
14158
 
  return 0;
14159
 
}
14160
 
_ACEOF
14161
 
if ac_fn_cxx_try_compile "$LINENO"; then :
14162
 
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14163
 
fi
14164
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165
 
  done
14166
 
 done
14167
 
done
14168
 
# Provide a safe default value.
14169
 
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14170
 
 
14171
 
fi
14172
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14173
 
$as_echo "$ac_cv_func_select_args" >&6; }
14174
 
ac_save_IFS=$IFS; IFS=','
14175
 
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14176
 
IFS=$ac_save_IFS
14177
 
shift
14178
 
 
14179
 
cat >>confdefs.h <<_ACEOF
14180
 
#define SELECT_TYPE_ARG1 $1
14181
 
_ACEOF
14182
 
 
14183
 
 
14184
 
cat >>confdefs.h <<_ACEOF
14185
 
#define SELECT_TYPE_ARG234 ($2)
14186
 
_ACEOF
14187
 
 
14188
 
 
14189
 
cat >>confdefs.h <<_ACEOF
14190
 
#define SELECT_TYPE_ARG5 ($3)
14191
 
_ACEOF
14192
 
 
14193
 
rm -f conftest*
14194
 
 
14195
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14196
 
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14197
 
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14198
 
  $as_echo_n "(cached) " >&6
14199
 
else
14200
 
  rm -f conftest.sym conftest.file
14201
 
echo >conftest.file
14202
 
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14203
 
  if test "$cross_compiling" = yes; then :
14204
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
14205
 
else
14206
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207
 
/* end confdefs.h.  */
14208
 
$ac_includes_default
14209
 
int
14210
 
main ()
14211
 
{
14212
 
struct stat sbuf;
14213
 
     /* Linux will dereference the symlink and fail, as required by POSIX.
14214
 
        That is better in the sense that it means we will not
14215
 
        have to compile and use the lstat wrapper.  */
14216
 
     return lstat ("conftest.sym/", &sbuf) == 0;
14217
 
  ;
14218
 
  return 0;
14219
 
}
14220
 
_ACEOF
14221
 
if ac_fn_cxx_try_run "$LINENO"; then :
14222
 
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
14223
 
else
14224
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
14225
 
fi
14226
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14227
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14228
 
fi
14229
 
 
14230
 
else
14231
 
  # If the `ln -s' command failed, then we probably don't even
14232
 
  # have an lstat function.
14233
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
14234
 
fi
14235
 
rm -f conftest.sym conftest.file
14236
 
 
14237
 
fi
14238
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14239
 
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14240
 
 
14241
 
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14242
 
 
14243
 
cat >>confdefs.h <<_ACEOF
14244
 
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14245
 
_ACEOF
14246
 
 
14247
 
 
14248
 
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14249
 
  case " $LIBOBJS " in
14250
 
  *" lstat.$ac_objext "* ) ;;
14251
 
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14252
 
 ;;
14253
 
esac
14254
 
 
14255
 
fi
14256
 
 
14257
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
14258
 
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
14259
 
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
14260
 
  $as_echo_n "(cached) " >&6
14261
 
else
14262
 
  if test "$cross_compiling" = yes; then :
14263
 
  ac_cv_func_stat_empty_string_bug=yes
14264
 
else
14265
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266
 
/* end confdefs.h.  */
14267
 
$ac_includes_default
14268
 
int
14269
 
main ()
14270
 
{
14271
 
struct stat sbuf;
14272
 
  return stat ("", &sbuf) == 0;
14273
 
  ;
14274
 
  return 0;
14275
 
}
14276
 
_ACEOF
14277
 
if ac_fn_cxx_try_run "$LINENO"; then :
14278
 
  ac_cv_func_stat_empty_string_bug=no
14279
 
else
14280
 
  ac_cv_func_stat_empty_string_bug=yes
14281
 
fi
14282
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14283
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14284
 
fi
14285
 
 
14286
 
fi
14287
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
14288
 
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
14289
 
if test $ac_cv_func_stat_empty_string_bug = yes; then
14290
 
  case " $LIBOBJS " in
14291
 
  *" stat.$ac_objext "* ) ;;
14292
 
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14293
 
 ;;
14294
 
esac
14295
 
 
14296
 
 
14297
 
cat >>confdefs.h <<_ACEOF
14298
 
#define HAVE_STAT_EMPTY_STRING_BUG 1
14299
 
_ACEOF
14300
 
 
14301
 
fi
14302
 
 
14303
 
for ac_func in strftime
14304
 
do :
14305
 
  ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14306
 
if test "x$ac_cv_func_strftime" = x""yes; then :
14307
 
  cat >>confdefs.h <<_ACEOF
14308
 
#define HAVE_STRFTIME 1
14309
 
_ACEOF
14310
 
 
14311
 
else
14312
 
  # strftime is in -lintl on SCO UNIX.
14313
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
14314
 
$as_echo_n "checking for strftime in -lintl... " >&6; }
14315
 
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
14316
 
  $as_echo_n "(cached) " >&6
14317
 
else
14318
 
  ac_check_lib_save_LIBS=$LIBS
14319
 
LIBS="-lintl  $LIBS"
14320
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321
 
/* end confdefs.h.  */
14322
 
 
14323
 
/* Override any GCC internal prototype to avoid an error.
14324
 
   Use char because int might match the return type of a GCC
14325
 
   builtin and then its argument prototype would still apply.  */
14326
 
#ifdef __cplusplus
14327
 
extern "C"
14328
 
#endif
14329
 
char strftime ();
14330
 
int
14331
 
main ()
14332
 
{
14333
 
return strftime ();
14334
 
  ;
14335
 
  return 0;
14336
 
}
14337
 
_ACEOF
14338
 
if ac_fn_cxx_try_link "$LINENO"; then :
14339
 
  ac_cv_lib_intl_strftime=yes
14340
 
else
14341
 
  ac_cv_lib_intl_strftime=no
14342
 
fi
14343
 
rm -f core conftest.err conftest.$ac_objext \
14344
 
    conftest$ac_exeext conftest.$ac_ext
14345
 
LIBS=$ac_check_lib_save_LIBS
14346
 
fi
14347
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
14348
 
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14349
 
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
14350
 
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
14351
 
 
14352
 
LIBS="-lintl $LIBS"
14353
 
fi
14354
 
 
14355
 
fi
14356
 
done
14357
 
 
14358
 
for ac_func in vprintf
14359
 
do :
14360
 
  ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14361
 
if test "x$ac_cv_func_vprintf" = x""yes; then :
14362
 
  cat >>confdefs.h <<_ACEOF
14363
 
#define HAVE_VPRINTF 1
14364
 
_ACEOF
14365
 
 
14366
 
ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14367
 
if test "x$ac_cv_func__doprnt" = x""yes; then :
14368
 
 
14369
 
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14370
 
 
14371
 
fi
14372
 
 
14373
 
fi
14374
 
done
14375
 
 
14376
 
 
14377
 
for ac_header in vfork.h
14378
 
do :
14379
 
  ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14380
 
if test "x$ac_cv_header_vfork_h" = x""yes; then :
14381
 
  cat >>confdefs.h <<_ACEOF
14382
 
#define HAVE_VFORK_H 1
14383
 
_ACEOF
14384
 
 
14385
 
fi
14386
 
 
14387
 
done
14388
 
 
14389
 
for ac_func in fork vfork
14390
 
do :
14391
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14392
 
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
14393
 
eval as_val=\$$as_ac_var
14394
 
   if test "x$as_val" = x""yes; then :
14395
 
  cat >>confdefs.h <<_ACEOF
14396
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14397
 
_ACEOF
14398
 
 
14399
 
fi
14400
 
done
14401
 
 
14402
 
if test "x$ac_cv_func_fork" = xyes; then
14403
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14404
 
$as_echo_n "checking for working fork... " >&6; }
14405
 
if test "${ac_cv_func_fork_works+set}" = set; then :
14406
 
  $as_echo_n "(cached) " >&6
14407
 
else
14408
 
  if test "$cross_compiling" = yes; then :
14409
 
  ac_cv_func_fork_works=cross
14410
 
else
14411
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412
 
/* end confdefs.h.  */
14413
 
$ac_includes_default
14414
 
int
14415
 
main ()
14416
 
{
14417
 
 
14418
 
          /* By Ruediger Kuhlmann. */
14419
 
          return fork () < 0;
14420
 
 
14421
 
  ;
14422
 
  return 0;
14423
 
}
14424
 
_ACEOF
14425
 
if ac_fn_cxx_try_run "$LINENO"; then :
14426
 
  ac_cv_func_fork_works=yes
14427
 
else
14428
 
  ac_cv_func_fork_works=no
14429
 
fi
14430
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14431
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14432
 
fi
14433
 
 
14434
 
fi
14435
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14436
 
$as_echo "$ac_cv_func_fork_works" >&6; }
14437
 
 
14438
 
else
14439
 
  ac_cv_func_fork_works=$ac_cv_func_fork
14440
 
fi
14441
 
if test "x$ac_cv_func_fork_works" = xcross; then
14442
 
  case $host in
14443
 
    *-*-amigaos* | *-*-msdosdjgpp*)
14444
 
      # Override, as these systems have only a dummy fork() stub
14445
 
      ac_cv_func_fork_works=no
14446
 
      ;;
14447
 
    *)
14448
 
      ac_cv_func_fork_works=yes
14449
 
      ;;
14450
 
  esac
14451
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14452
 
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14453
 
fi
14454
 
ac_cv_func_vfork_works=$ac_cv_func_vfork
14455
 
if test "x$ac_cv_func_vfork" = xyes; then
14456
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14457
 
$as_echo_n "checking for working vfork... " >&6; }
14458
 
if test "${ac_cv_func_vfork_works+set}" = set; then :
14459
 
  $as_echo_n "(cached) " >&6
14460
 
else
14461
 
  if test "$cross_compiling" = yes; then :
14462
 
  ac_cv_func_vfork_works=cross
14463
 
else
14464
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465
 
/* end confdefs.h.  */
14466
 
/* Thanks to Paul Eggert for this test.  */
14467
 
$ac_includes_default
14468
 
#include <sys/wait.h>
14469
 
#ifdef HAVE_VFORK_H
14470
 
# include <vfork.h>
14471
 
#endif
14472
 
/* On some sparc systems, changes by the child to local and incoming
14473
 
   argument registers are propagated back to the parent.  The compiler
14474
 
   is told about this with #include <vfork.h>, but some compilers
14475
 
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14476
 
   static variable whose address is put into a register that is
14477
 
   clobbered by the vfork.  */
14478
 
static void
14479
 
#ifdef __cplusplus
14480
 
sparc_address_test (int arg)
14481
 
# else
14482
 
sparc_address_test (arg) int arg;
14483
 
#endif
14484
 
{
14485
 
  static pid_t child;
14486
 
  if (!child) {
14487
 
    child = vfork ();
14488
 
    if (child < 0) {
14489
 
      perror ("vfork");
14490
 
      _exit(2);
14491
 
    }
14492
 
    if (!child) {
14493
 
      arg = getpid();
14494
 
      write(-1, "", 0);
14495
 
      _exit (arg);
14496
 
    }
14497
 
  }
14498
 
}
14499
 
 
14500
 
int
14501
 
main ()
14502
 
{
14503
 
  pid_t parent = getpid ();
14504
 
  pid_t child;
14505
 
 
14506
 
  sparc_address_test (0);
14507
 
 
14508
 
  child = vfork ();
14509
 
 
14510
 
  if (child == 0) {
14511
 
    /* Here is another test for sparc vfork register problems.  This
14512
 
       test uses lots of local variables, at least as many local
14513
 
       variables as main has allocated so far including compiler
14514
 
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14515
 
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14516
 
       reuse the register of parent for one of the local variables,
14517
 
       since it will think that parent can't possibly be used any more
14518
 
       in this routine.  Assigning to the local variable will thus
14519
 
       munge parent in the parent process.  */
14520
 
    pid_t
14521
 
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14522
 
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14523
 
    /* Convince the compiler that p..p7 are live; otherwise, it might
14524
 
       use the same hardware register for all 8 local variables.  */
14525
 
    if (p != p1 || p != p2 || p != p3 || p != p4
14526
 
        || p != p5 || p != p6 || p != p7)
14527
 
      _exit(1);
14528
 
 
14529
 
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14530
 
       from child file descriptors.  If the child closes a descriptor
14531
 
       before it execs or exits, this munges the parent's descriptor
14532
 
       as well.  Test for this by closing stdout in the child.  */
14533
 
    _exit(close(fileno(stdout)) != 0);
14534
 
  } else {
14535
 
    int status;
14536
 
    struct stat st;
14537
 
 
14538
 
    while (wait(&status) != child)
14539
 
      ;
14540
 
    return (
14541
 
         /* Was there some problem with vforking?  */
14542
 
         child < 0
14543
 
 
14544
 
         /* Did the child fail?  (This shouldn't happen.)  */
14545
 
         || status
14546
 
 
14547
 
         /* Did the vfork/compiler bug occur?  */
14548
 
         || parent != getpid()
14549
 
 
14550
 
         /* Did the file descriptor bug occur?  */
14551
 
         || fstat(fileno(stdout), &st) != 0
14552
 
         );
14553
 
  }
14554
 
}
14555
 
_ACEOF
14556
 
if ac_fn_cxx_try_run "$LINENO"; then :
14557
 
  ac_cv_func_vfork_works=yes
14558
 
else
14559
 
  ac_cv_func_vfork_works=no
14560
 
fi
14561
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14562
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14563
 
fi
14564
 
 
14565
 
fi
14566
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14567
 
$as_echo "$ac_cv_func_vfork_works" >&6; }
14568
 
 
14569
 
fi;
14570
 
if test "x$ac_cv_func_fork_works" = xcross; then
14571
 
  ac_cv_func_vfork_works=$ac_cv_func_vfork
14572
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14573
 
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14574
 
fi
14575
 
 
14576
 
if test "x$ac_cv_func_vfork_works" = xyes; then
14577
 
 
14578
 
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14579
 
 
14580
 
else
14581
 
 
14582
 
$as_echo "#define vfork fork" >>confdefs.h
14583
 
 
14584
 
fi
14585
 
if test "x$ac_cv_func_fork_works" = xyes; then
14586
 
 
14587
 
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14588
 
 
14589
 
fi
14590
 
 
14591
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
14592
 
$as_echo_n "checking for working strtod... " >&6; }
14593
 
if test "${ac_cv_func_strtod+set}" = set; then :
14594
 
  $as_echo_n "(cached) " >&6
14595
 
else
14596
 
  if test "$cross_compiling" = yes; then :
14597
 
  ac_cv_func_strtod=no
14598
 
else
14599
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600
 
/* end confdefs.h.  */
14601
 
 
14602
 
$ac_includes_default
14603
 
#ifndef strtod
14604
 
double strtod ();
14605
 
#endif
14606
 
int
14607
 
main()
14608
 
{
14609
 
  {
14610
 
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14611
 
    char *string = " +69";
14612
 
    char *term;
14613
 
    double value;
14614
 
    value = strtod (string, &term);
14615
 
    if (value != 69 || term != (string + 4))
14616
 
      return 1;
14617
 
  }
14618
 
 
14619
 
  {
14620
 
    /* Under Solaris 2.4, strtod returns the wrong value for the
14621
 
       terminating character under some conditions.  */
14622
 
    char *string = "NaN";
14623
 
    char *term;
14624
 
    strtod (string, &term);
14625
 
    if (term != string && *(term - 1) == 0)
14626
 
      return 1;
14627
 
  }
14628
 
  return 0;
14629
 
}
14630
 
 
14631
 
_ACEOF
14632
 
if ac_fn_cxx_try_run "$LINENO"; then :
14633
 
  ac_cv_func_strtod=yes
14634
 
else
14635
 
  ac_cv_func_strtod=no
14636
 
fi
14637
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14638
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14639
 
fi
14640
 
 
14641
 
fi
14642
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
14643
 
$as_echo "$ac_cv_func_strtod" >&6; }
14644
 
if test $ac_cv_func_strtod = no; then
14645
 
  case " $LIBOBJS " in
14646
 
  *" strtod.$ac_objext "* ) ;;
14647
 
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14648
 
 ;;
14649
 
esac
14650
 
 
14651
 
ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
14652
 
if test "x$ac_cv_func_pow" = x""yes; then :
14653
 
 
14654
 
fi
14655
 
 
14656
 
if test $ac_cv_func_pow = no; then
14657
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14658
 
$as_echo_n "checking for pow in -lm... " >&6; }
14659
 
if test "${ac_cv_lib_m_pow+set}" = set; then :
14660
 
  $as_echo_n "(cached) " >&6
14661
 
else
14662
 
  ac_check_lib_save_LIBS=$LIBS
14663
 
LIBS="-lm  $LIBS"
14664
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665
 
/* end confdefs.h.  */
14666
 
 
14667
 
/* Override any GCC internal prototype to avoid an error.
14668
 
   Use char because int might match the return type of a GCC
14669
 
   builtin and then its argument prototype would still apply.  */
14670
 
#ifdef __cplusplus
14671
 
extern "C"
14672
 
#endif
14673
 
char pow ();
14674
 
int
14675
 
main ()
14676
 
{
14677
 
return pow ();
14678
 
  ;
14679
 
  return 0;
14680
 
}
14681
 
_ACEOF
14682
 
if ac_fn_cxx_try_link "$LINENO"; then :
14683
 
  ac_cv_lib_m_pow=yes
14684
 
else
14685
 
  ac_cv_lib_m_pow=no
14686
 
fi
14687
 
rm -f core conftest.err conftest.$ac_objext \
14688
 
    conftest$ac_exeext conftest.$ac_ext
14689
 
LIBS=$ac_check_lib_save_LIBS
14690
 
fi
14691
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14692
 
$as_echo "$ac_cv_lib_m_pow" >&6; }
14693
 
if test "x$ac_cv_lib_m_pow" = x""yes; then :
14694
 
  POW_LIB=-lm
14695
 
else
14696
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
14697
 
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14698
 
fi
14699
 
 
14700
 
fi
14701
 
 
14702
 
fi
14703
 
 
14704
 
for ac_func in __argz_count \
14705
 
                __argz_next \
14706
 
                __argz_stringify \
14707
 
                atexit \
14708
 
                ftruncate \
14709
 
                getcwd \
14710
 
                gethostbyaddr \
14711
 
                gethostbyname \
14712
 
                getifaddrs \
14713
 
                getpagesize \
14714
 
                inet_ntoa \
14715
 
                memchr \
14716
 
                memmove \
14717
 
                mempcpy \
14718
 
                memset \
14719
 
                mkdir \
14720
 
                munmap \
14721
 
                nl_langinfo \
14722
 
                posix_memalign \
14723
 
                pow \
14724
 
                putenv \
14725
 
                rmdir \
14726
 
                select \
14727
 
                setlocale \
14728
 
                sleep \
14729
 
                socket \
14730
 
                stpcpy \
14731
 
                strcasecmp \
14732
 
                strchr \
14733
 
                strcspn \
14734
 
                strdup \
14735
 
                strerror \
14736
 
                strncasecmp \
14737
 
                strstr \
14738
 
                strtol \
14739
 
                strtoul \
14740
 
                strtoull \
14741
 
                tzset \
14742
 
                unsetenv \
14743
 
                usleep \
14744
 
                utime
14745
 
do :
14746
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14747
 
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
14748
 
eval as_val=\$$as_ac_var
14749
 
   if test "x$as_val" = x""yes; then :
14750
 
  cat >>confdefs.h <<_ACEOF
14751
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14752
 
_ACEOF
14753
 
 
14754
 
fi
14755
 
done
14756
 
 
14757
 
 
14758
 
if test "x$enable_epoll" = "xyes"; then
14759
 
  for ac_func in epoll_create
14760
 
do :
14761
 
  ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
14762
 
if test "x$ac_cv_func_epoll_create" = x""yes; then :
14763
 
  cat >>confdefs.h <<_ACEOF
14764
 
#define HAVE_EPOLL_CREATE 1
14765
 
_ACEOF
14766
 
 have_epoll=yes
14767
 
fi
14768
 
done
14769
 
 
14770
 
  if test "x$have_epoll" = "xyes"; then
14771
 
 
14772
 
$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14773
 
 
14774
 
  fi
14775
 
fi
14776
 
 if test "x$have_epoll" = "xyes"; then
14777
 
  HAVE_EPOLL_TRUE=
14778
 
  HAVE_EPOLL_FALSE='#'
14779
 
else
14780
 
  HAVE_EPOLL_TRUE='#'
14781
 
  HAVE_EPOLL_FALSE=
14782
 
fi
14783
 
 
14784
 
 
14785
 
for ac_func in posix_fallocate
14786
 
do :
14787
 
  ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
14788
 
if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
14789
 
  cat >>confdefs.h <<_ACEOF
14790
 
#define HAVE_POSIX_FALLOCATE 1
14791
 
_ACEOF
14792
 
 have_posix_fallocate=yes
14793
 
fi
14794
 
done
14795
 
 
14796
 
 if test "x$have_posix_fallocate" = "xyes"; then
14797
 
  HAVE_SOME_FALLOCATE_TRUE=
14798
 
  HAVE_SOME_FALLOCATE_FALSE='#'
14799
 
else
14800
 
  HAVE_SOME_FALLOCATE_TRUE='#'
14801
 
  HAVE_SOME_FALLOCATE_FALSE=
14802
 
fi
14803
 
 
14804
 
 
14805
 
for ac_func in fallocate
14806
 
do :
14807
 
  ac_fn_cxx_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
14808
 
if test "x$ac_cv_func_fallocate" = x""yes; then :
14809
 
  cat >>confdefs.h <<_ACEOF
14810
 
#define HAVE_FALLOCATE 1
14811
 
_ACEOF
14812
 
 have_fallocate=yes
14813
 
fi
14814
 
done
14815
 
 
14816
 
 if test "x$have_fallocate" = "xyes"; then
14817
 
  HAVE_SOME_FALLOCATE_TRUE=
14818
 
  HAVE_SOME_FALLOCATE_FALSE='#'
14819
 
else
14820
 
  HAVE_SOME_FALLOCATE_TRUE='#'
14821
 
  HAVE_SOME_FALLOCATE_FALSE=
14822
 
fi
14823
 
 
14824
 
 
14825
 
if test "x$have_posix_fallocate" = "xyes" ||
14826
 
   test "x$have_fallocate" = "xyes"; then
14827
 
 
14828
 
$as_echo "#define HAVE_SOME_FALLOCATE 1" >>confdefs.h
14829
 
 
14830
 
fi
14831
 
 
14832
 
for ac_func in asctime_r
14833
 
do :
14834
 
  ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14835
 
if test "x$ac_cv_func_asctime_r" = x""yes; then :
14836
 
  cat >>confdefs.h <<_ACEOF
14837
 
#define HAVE_ASCTIME_R 1
14838
 
_ACEOF
14839
 
  if true; then
14840
 
  HAVE_ASCTIME_R_TRUE=
14841
 
  HAVE_ASCTIME_R_FALSE='#'
14842
 
else
14843
 
  HAVE_ASCTIME_R_TRUE='#'
14844
 
  HAVE_ASCTIME_R_FALSE=
14845
 
fi
14846
 
 
14847
 
else
14848
 
   if false; then
14849
 
  HAVE_ASCTIME_R_TRUE=
14850
 
  HAVE_ASCTIME_R_FALSE='#'
14851
 
else
14852
 
  HAVE_ASCTIME_R_TRUE='#'
14853
 
  HAVE_ASCTIME_R_FALSE=
14854
 
fi
14855
 
 
14856
 
fi
14857
 
done
14858
 
 
14859
 
for ac_func in basename
14860
 
do :
14861
 
  ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
14862
 
if test "x$ac_cv_func_basename" = x""yes; then :
14863
 
  cat >>confdefs.h <<_ACEOF
14864
 
#define HAVE_BASENAME 1
14865
 
_ACEOF
14866
 
  if true; then
14867
 
  HAVE_BASENAME_TRUE=
14868
 
  HAVE_BASENAME_FALSE='#'
14869
 
else
14870
 
  HAVE_BASENAME_TRUE='#'
14871
 
  HAVE_BASENAME_FALSE=
14872
 
fi
14873
 
 
14874
 
else
14875
 
   if false; then
14876
 
  HAVE_BASENAME_TRUE=
14877
 
  HAVE_BASENAME_FALSE='#'
14878
 
else
14879
 
  HAVE_BASENAME_TRUE='#'
14880
 
  HAVE_BASENAME_FALSE=
14881
 
fi
14882
 
 
14883
 
fi
14884
 
done
14885
 
 
14886
 
for ac_func in gai_strerror
14887
 
do :
14888
 
  ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
14889
 
if test "x$ac_cv_func_gai_strerror" = x""yes; then :
14890
 
  cat >>confdefs.h <<_ACEOF
14891
 
#define HAVE_GAI_STRERROR 1
14892
 
_ACEOF
14893
 
  if true; then
14894
 
  HAVE_GAI_STRERROR_TRUE=
14895
 
  HAVE_GAI_STRERROR_FALSE='#'
14896
 
else
14897
 
  HAVE_GAI_STRERROR_TRUE='#'
14898
 
  HAVE_GAI_STRERROR_FALSE=
14899
 
fi
14900
 
 
14901
 
else
14902
 
   if false; then
14903
 
  HAVE_GAI_STRERROR_TRUE=
14904
 
  HAVE_GAI_STRERROR_FALSE='#'
14905
 
else
14906
 
  HAVE_GAI_STRERROR_TRUE='#'
14907
 
  HAVE_GAI_STRERROR_FALSE=
14908
 
fi
14909
 
 
14910
 
fi
14911
 
done
14912
 
 
14913
 
for ac_func in getaddrinfo
14914
 
do :
14915
 
  ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
14916
 
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
14917
 
  cat >>confdefs.h <<_ACEOF
14918
 
#define HAVE_GETADDRINFO 1
14919
 
_ACEOF
14920
 
  if true; then
14921
 
  HAVE_GETADDRINFO_TRUE=
14922
 
  HAVE_GETADDRINFO_FALSE='#'
14923
 
else
14924
 
  HAVE_GETADDRINFO_TRUE='#'
14925
 
  HAVE_GETADDRINFO_FALSE=
14926
 
fi
14927
 
 
14928
 
else
14929
 
   if false; then
14930
 
  HAVE_GETADDRINFO_TRUE=
14931
 
  HAVE_GETADDRINFO_FALSE='#'
14932
 
else
14933
 
  HAVE_GETADDRINFO_TRUE='#'
14934
 
  HAVE_GETADDRINFO_FALSE=
14935
 
fi
14936
 
 
14937
 
fi
14938
 
done
14939
 
 
14940
 
for ac_func in gettimeofday
14941
 
do :
14942
 
  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14943
 
if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14944
 
  cat >>confdefs.h <<_ACEOF
14945
 
#define HAVE_GETTIMEOFDAY 1
14946
 
_ACEOF
14947
 
  if true; then
14948
 
  HAVE_GETTIMEOFDAY_TRUE=
14949
 
  HAVE_GETTIMEOFDAY_FALSE='#'
14950
 
else
14951
 
  HAVE_GETTIMEOFDAY_TRUE='#'
14952
 
  HAVE_GETTIMEOFDAY_FALSE=
14953
 
fi
14954
 
 
14955
 
else
14956
 
   if false; then
14957
 
  HAVE_GETTIMEOFDAY_TRUE=
14958
 
  HAVE_GETTIMEOFDAY_FALSE='#'
14959
 
else
14960
 
  HAVE_GETTIMEOFDAY_TRUE='#'
14961
 
  HAVE_GETTIMEOFDAY_FALSE=
14962
 
fi
14963
 
 
14964
 
fi
14965
 
done
14966
 
 
14967
 
for ac_func in inet_aton
14968
 
do :
14969
 
  ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
14970
 
if test "x$ac_cv_func_inet_aton" = x""yes; then :
14971
 
  cat >>confdefs.h <<_ACEOF
14972
 
#define HAVE_INET_ATON 1
14973
 
_ACEOF
14974
 
  if true; then
14975
 
  HAVE_INET_ATON_TRUE=
14976
 
  HAVE_INET_ATON_FALSE='#'
14977
 
else
14978
 
  HAVE_INET_ATON_TRUE='#'
14979
 
  HAVE_INET_ATON_FALSE=
14980
 
fi
14981
 
 
14982
 
else
14983
 
   if false; then
14984
 
  HAVE_INET_ATON_TRUE=
14985
 
  HAVE_INET_ATON_FALSE='#'
14986
 
else
14987
 
  HAVE_INET_ATON_TRUE='#'
14988
 
  HAVE_INET_ATON_FALSE=
14989
 
fi
14990
 
 
14991
 
fi
14992
 
done
14993
 
 
14994
 
for ac_func in localtime_r
14995
 
do :
14996
 
  ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14997
 
if test "x$ac_cv_func_localtime_r" = x""yes; then :
14998
 
  cat >>confdefs.h <<_ACEOF
14999
 
#define HAVE_LOCALTIME_R 1
15000
 
_ACEOF
15001
 
  if true; then
15002
 
  HAVE_LOCALTIME_R_TRUE=
15003
 
  HAVE_LOCALTIME_R_FALSE='#'
15004
 
else
15005
 
  HAVE_LOCALTIME_R_TRUE='#'
15006
 
  HAVE_LOCALTIME_R_FALSE=
15007
 
fi
15008
 
 
15009
 
else
15010
 
   if false; then
15011
 
  HAVE_LOCALTIME_R_TRUE=
15012
 
  HAVE_LOCALTIME_R_FALSE='#'
15013
 
else
15014
 
  HAVE_LOCALTIME_R_TRUE='#'
15015
 
  HAVE_LOCALTIME_R_FALSE=
15016
 
fi
15017
 
 
15018
 
fi
15019
 
done
15020
 
 
15021
 
for ac_func in strptime
15022
 
do :
15023
 
  ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15024
 
if test "x$ac_cv_func_strptime" = x""yes; then :
15025
 
  cat >>confdefs.h <<_ACEOF
15026
 
#define HAVE_STRPTIME 1
15027
 
_ACEOF
15028
 
  if true; then
15029
 
  HAVE_STRPTIME_TRUE=
15030
 
  HAVE_STRPTIME_FALSE='#'
15031
 
else
15032
 
  HAVE_STRPTIME_TRUE='#'
15033
 
  HAVE_STRPTIME_FALSE=
15034
 
fi
15035
 
 
15036
 
else
15037
 
   if false; then
15038
 
  HAVE_STRPTIME_TRUE=
15039
 
  HAVE_STRPTIME_FALSE='#'
15040
 
else
15041
 
  HAVE_STRPTIME_TRUE='#'
15042
 
  HAVE_STRPTIME_FALSE=
15043
 
fi
15044
 
 
15045
 
fi
15046
 
done
15047
 
 
15048
 
for ac_func in timegm
15049
 
do :
15050
 
  ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
15051
 
if test "x$ac_cv_func_timegm" = x""yes; then :
15052
 
  cat >>confdefs.h <<_ACEOF
15053
 
#define HAVE_TIMEGM 1
15054
 
_ACEOF
15055
 
  if true; then
15056
 
  HAVE_TIMEGM_TRUE=
15057
 
  HAVE_TIMEGM_FALSE='#'
15058
 
else
15059
 
  HAVE_TIMEGM_TRUE='#'
15060
 
  HAVE_TIMEGM_FALSE=
15061
 
fi
15062
 
 
15063
 
else
15064
 
   if false; then
15065
 
  HAVE_TIMEGM_TRUE=
15066
 
  HAVE_TIMEGM_FALSE='#'
15067
 
else
15068
 
  HAVE_TIMEGM_TRUE='#'
15069
 
  HAVE_TIMEGM_FALSE=
15070
 
fi
15071
 
 
15072
 
fi
15073
 
done
15074
 
 
15075
 
for ac_func in daemon
15076
 
do :
15077
 
  ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
15078
 
if test "x$ac_cv_func_daemon" = x""yes; then :
15079
 
  cat >>confdefs.h <<_ACEOF
15080
 
#define HAVE_DAEMON 1
15081
 
_ACEOF
15082
 
 have_daemon=yes
15083
 
fi
15084
 
done
15085
 
 
15086
 
 if test "x$have_daemon" = "xyes"; then
15087
 
  HAVE_DAEMON_TRUE=
15088
 
  HAVE_DAEMON_FALSE='#'
15089
 
else
15090
 
  HAVE_DAEMON_TRUE='#'
15091
 
  HAVE_DAEMON_FALSE=
15092
 
fi
15093
 
 
15094
 
 
15095
 
for ac_func in clock_gettime
15096
 
do :
15097
 
  ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
15098
 
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
15099
 
  cat >>confdefs.h <<_ACEOF
15100
 
#define HAVE_CLOCK_GETTIME 1
15101
 
_ACEOF
15102
 
 have_clock_gettime=yes
15103
 
fi
15104
 
done
15105
 
 
15106
 
 
15107
 
if test "x$have_clock_gettime" != "xyes"; then
15108
 
   for ac_func in mach_absolute_time
15109
 
do :
15110
 
  ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
15111
 
if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
15112
 
  cat >>confdefs.h <<_ACEOF
15113
 
#define HAVE_MACH_ABSOLUTE_TIME 1
15114
 
_ACEOF
15115
 
 have_mach_absolute_time=yes
15116
 
fi
15117
 
done
15118
 
 
15119
 
fi
15120
 
 if test "x$have_mach_absolute_time" = "xyes"; then
15121
 
  HAVE_MACH_ABSOLUTE_TIME_TRUE=
15122
 
  HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
15123
 
else
15124
 
  HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
15125
 
  HAVE_MACH_ABSOLUTE_TIME_FALSE=
15126
 
fi
15127
 
 
15128
 
 
15129
 
for ac_func in poll
15130
 
do :
15131
 
  ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
15132
 
if test "x$ac_cv_func_poll" = x""yes; then :
15133
 
  cat >>confdefs.h <<_ACEOF
15134
 
#define HAVE_POLL 1
15135
 
_ACEOF
15136
 
 have_poll=yes
15137
 
fi
15138
 
done
15139
 
 
15140
 
 if test "x$have_poll" = "xyes"; then
15141
 
  HAVE_POLL_TRUE=
15142
 
  HAVE_POLL_FALSE='#'
15143
 
else
15144
 
  HAVE_POLL_TRUE='#'
15145
 
  HAVE_POLL_FALSE=
15146
 
fi
15147
 
 
15148
 
 
15149
 
case "$target" in
15150
 
  *mingw*)
15151
 
         if true; then
15152
 
  HAVE_GETADDRINFO_TRUE=
15153
 
  HAVE_GETADDRINFO_FALSE='#'
15154
 
else
15155
 
  HAVE_GETADDRINFO_TRUE='#'
15156
 
  HAVE_GETADDRINFO_FALSE=
15157
 
fi
15158
 
 
15159
 
         if false; then
15160
 
  HAVE_GAI_STRERROR_TRUE=
15161
 
  HAVE_GAI_STRERROR_FALSE='#'
15162
 
else
15163
 
  HAVE_GAI_STRERROR_TRUE='#'
15164
 
  HAVE_GAI_STRERROR_FALSE=
15165
 
fi
15166
 
 
15167
 
    if test "x$have_clock_gettime" != "xyes"; then
15168
 
         if true; then
15169
 
  HAVE_TIMEGETTIME_TRUE=
15170
 
  HAVE_TIMEGETTIME_FALSE='#'
15171
 
else
15172
 
  HAVE_TIMEGETTIME_TRUE='#'
15173
 
  HAVE_TIMEGETTIME_FALSE=
15174
 
fi
15175
 
 
15176
 
    fi
15177
 
    ;;
15178
 
  *)
15179
 
     if false; then
15180
 
  HAVE_TIMEGETTIME_TRUE=
15181
 
  HAVE_TIMEGETTIME_FALSE='#'
15182
 
else
15183
 
  HAVE_TIMEGETTIME_TRUE='#'
15184
 
  HAVE_TIMEGETTIME_FALSE=
15185
 
fi
15186
 
 
15187
 
    ;;
15188
 
esac
15189
 
 
15190
 
for ac_func in port_associate
15191
 
do :
15192
 
  ac_fn_cxx_check_func "$LINENO" "port_associate" "ac_cv_func_port_associate"
15193
 
if test "x$ac_cv_func_port_associate" = x""yes; then :
15194
 
  cat >>confdefs.h <<_ACEOF
15195
 
#define HAVE_PORT_ASSOCIATE 1
15196
 
_ACEOF
15197
 
 have_port_associate=yes
15198
 
fi
15199
 
done
15200
 
 
15201
 
 if test "x$have_port_associate" = "xyes"; then
15202
 
  HAVE_PORT_ASSOCIATE_TRUE=
15203
 
  HAVE_PORT_ASSOCIATE_FALSE='#'
15204
 
else
15205
 
  HAVE_PORT_ASSOCIATE_TRUE='#'
15206
 
  HAVE_PORT_ASSOCIATE_FALSE=
15207
 
fi
15208
 
 
15209
 
 
15210
 
for ac_func in kqueue
15211
 
do :
15212
 
  ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
15213
 
if test "x$ac_cv_func_kqueue" = x""yes; then :
15214
 
  cat >>confdefs.h <<_ACEOF
15215
 
#define HAVE_KQUEUE 1
15216
 
_ACEOF
15217
 
 have_kqueue=yes
15218
 
fi
15219
 
done
15220
 
 
15221
 
 if test "x$have_kqueue" = "xyes"; then
15222
 
  HAVE_KQUEUE_TRUE=
15223
 
  HAVE_KQUEUE_FALSE='#'
15224
 
else
15225
 
  HAVE_KQUEUE_TRUE='#'
15226
 
  HAVE_KQUEUE_FALSE=
15227
 
fi
15228
 
 
15229
 
if test "x$have_kqueue" = "xyes"; then
15230
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kevent.udata is intptr_t" >&5
15231
 
$as_echo_n "checking whether struct kevent.udata is intptr_t... " >&6; }
15232
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233
 
/* end confdefs.h.  */
15234
 
 
15235
 
#include <sys/types.h>
15236
 
#include <sys/event.h>
15237
 
#include <sys/time.h>
15238
 
 
15239
 
int
15240
 
main ()
15241
 
{
15242
 
 
15243
 
struct kevent event;
15244
 
event.udata = reinterpret_cast<intptr_t>(&event);
15245
 
 
15246
 
  ;
15247
 
  return 0;
15248
 
}
15249
 
_ACEOF
15250
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15251
 
  kevent_udata_intptr_t=yes
15252
 
else
15253
 
  kevent_udata_intptr_t=no
15254
 
fi
15255
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kevent_udata_intptr_t" >&5
15257
 
$as_echo "$kevent_udata_intptr_t" >&6; }
15258
 
    if test "x$kevent_udata_intptr_t" = "xyes"; then
15259
 
 
15260
 
$as_echo "#define KEVENT_UDATA_INTPTR_T 1" >>confdefs.h
15261
 
 
15262
 
    fi
15263
 
fi
15264
 
 
15265
 
ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
15266
 
"
15267
 
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
15268
 
 
15269
 
$as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
15270
 
 
15271
 
fi
15272
 
 
15273
 
 
15274
 
# Check struct option.name is assignable from const char*.  struct
15275
 
# option.name in opensolaris is of type char*. In Linux, it is const
15276
 
# char*
15277
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
15278
 
$as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
15279
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280
 
/* end confdefs.h.  */
15281
 
 
15282
 
#include <unistd.h>
15283
 
#include <getopt.h>
15284
 
 
15285
 
int
15286
 
main ()
15287
 
{
15288
 
 
15289
 
const char* s = "const char";
15290
 
option op;
15291
 
op.name = s;
15292
 
 
15293
 
  ;
15294
 
  return 0;
15295
 
}
15296
 
_ACEOF
15297
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15298
 
  have_option_const_name=yes
15299
 
else
15300
 
  have_option_const_name=no
15301
 
fi
15302
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
15304
 
$as_echo "$have_option_const_name" >&6; }
15305
 
if test "x$have_option_const_name" = "xyes"; then
15306
 
 
15307
 
$as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
15308
 
 
15309
 
fi
15310
 
 
15311
 
ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
15312
 
 
15313
 
cat >confcache <<\_ACEOF
15314
 
# This file is a shell script that caches the results of configure
15315
 
# tests run on this system so they can be shared between configure
15316
 
# scripts and configure runs, see configure's option --config-cache.
15317
 
# It is not useful on other systems.  If it contains results you don't
15318
 
# want to keep, you may remove or edit it.
15319
 
#
15320
 
# config.status only pays attention to the cache file if you give it
15321
 
# the --recheck option to rerun configure.
15322
 
#
15323
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15324
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15325
 
# following values.
15326
 
 
15327
 
_ACEOF
15328
 
 
15329
 
# The following way of writing the cache mishandles newlines in values,
15330
 
# but we know of no workaround that is simple, portable, and efficient.
15331
 
# So, we kill variables containing newlines.
15332
 
# Ultrix sh set writes to stderr and can't be redirected directly,
15333
 
# and sets the high bit in the cache file unless we assign to the vars.
15334
 
(
15335
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15336
 
    eval ac_val=\$$ac_var
15337
 
    case $ac_val in #(
15338
 
    *${as_nl}*)
15339
 
      case $ac_var in #(
15340
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15341
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15342
 
      esac
15343
 
      case $ac_var in #(
15344
 
      _ | IFS | as_nl) ;; #(
15345
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15346
 
      *) { eval $ac_var=; unset $ac_var;} ;;
15347
 
      esac ;;
15348
 
    esac
15349
 
  done
15350
 
 
15351
 
  (set) 2>&1 |
15352
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15353
 
    *${as_nl}ac_space=\ *)
15354
 
      # `set' does not quote correctly, so add quotes: double-quote
15355
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
15356
 
      sed -n \
15357
 
        "s/'/'\\\\''/g;
15358
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15359
 
      ;; #(
15360
 
    *)
15361
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
15362
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15363
 
      ;;
15364
 
    esac |
15365
 
    sort
15366
 
) |
15367
 
  sed '
15368
 
     /^ac_cv_env_/b end
15369
 
     t clear
15370
 
     :clear
15371
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15372
 
     t end
15373
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15374
 
     :end' >>confcache
15375
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15376
 
  if test -w "$cache_file"; then
15377
 
    test "x$cache_file" != "x/dev/null" &&
15378
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15379
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
15380
 
    cat confcache >$cache_file
15381
 
  else
15382
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15383
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15384
 
  fi
15385
 
fi
15386
 
rm -f confcache
15387
 
 
15388
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15389
 
# Let make expand exec_prefix.
15390
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15391
 
 
15392
 
DEFS=-DHAVE_CONFIG_H
15393
 
 
15394
 
ac_libobjs=
15395
 
ac_ltlibobjs=
15396
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15397
 
  # 1. Remove the extension, and $U if already installed.
15398
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15399
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15400
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15401
 
  #    will be set to the directory where LIBOBJS objects are built.
15402
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15403
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15404
 
done
15405
 
LIBOBJS=$ac_libobjs
15406
 
 
15407
 
LTLIBOBJS=$ac_ltlibobjs
15408
 
 
15409
 
 
15410
 
 if test -n "$EXEEXT"; then
15411
 
  am__EXEEXT_TRUE=
15412
 
  am__EXEEXT_FALSE='#'
15413
 
else
15414
 
  am__EXEEXT_TRUE='#'
15415
 
  am__EXEEXT_FALSE=
15416
 
fi
15417
 
 
15418
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15419
 
  as_fn_error "conditional \"AMDEP\" was never defined.
15420
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15421
 
fi
15422
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15423
 
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15424
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15425
 
fi
15426
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15427
 
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15428
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15429
 
fi
15430
 
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15431
 
  as_fn_error "conditional \"ENABLE_SSL\" was never defined.
15432
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15433
 
fi
15434
 
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15435
 
  as_fn_error "conditional \"ENABLE_SSL\" was never defined.
15436
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15437
 
fi
15438
 
if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
15439
 
  as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
15440
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15441
 
fi
15442
 
if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
15443
 
  as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
15444
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15445
 
fi
15446
 
if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
15447
 
  as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
15448
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15449
 
fi
15450
 
if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
15451
 
  as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
15452
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15453
 
fi
15454
 
if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
15455
 
  as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
15456
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15457
 
fi
15458
 
if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
15459
 
  as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
15460
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15461
 
fi
15462
 
if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
15463
 
  as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
15464
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15465
 
fi
15466
 
if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
15467
 
  as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
15468
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15469
 
fi
15470
 
if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
15471
 
  as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
15472
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15473
 
fi
15474
 
if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
15475
 
  as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
15476
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15477
 
fi
15478
 
if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
15479
 
  as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
15480
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15481
 
fi
15482
 
if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
15483
 
  as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
15484
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15485
 
fi
15486
 
if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
15487
 
  as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
15488
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15489
 
fi
15490
 
if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
15491
 
  as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
15492
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15493
 
fi
15494
 
if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
15495
 
  as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
15496
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15497
 
fi
15498
 
if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
15499
 
  as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
15500
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15501
 
fi
15502
 
if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
15503
 
  as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
15504
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15505
 
fi
15506
 
 
15507
 
if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
15508
 
  as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
15509
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15510
 
fi
15511
 
if test -z "${HAVE_SOME_FALLOCATE_TRUE}" && test -z "${HAVE_SOME_FALLOCATE_FALSE}"; then
15512
 
  as_fn_error "conditional \"HAVE_SOME_FALLOCATE\" was never defined.
15513
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15514
 
fi
15515
 
if test -z "${HAVE_SOME_FALLOCATE_TRUE}" && test -z "${HAVE_SOME_FALLOCATE_FALSE}"; then
15516
 
  as_fn_error "conditional \"HAVE_SOME_FALLOCATE\" was never defined.
15517
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15518
 
fi
15519
 
if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
15520
 
  as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
15521
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15522
 
fi
15523
 
if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
15524
 
  as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
15525
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15526
 
fi
15527
 
if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
15528
 
  as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
15529
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15530
 
fi
15531
 
if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
15532
 
  as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
15533
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15534
 
fi
15535
 
if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
15536
 
  as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
15537
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15538
 
fi
15539
 
if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
15540
 
  as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
15541
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15542
 
fi
15543
 
if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
15544
 
  as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
15545
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15546
 
fi
15547
 
if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
15548
 
  as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
15549
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15550
 
fi
15551
 
if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
15552
 
  as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
15553
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15554
 
fi
15555
 
if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
15556
 
  as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
15557
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15558
 
fi
15559
 
if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
15560
 
  as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
15561
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15562
 
fi
15563
 
if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
15564
 
  as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
15565
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15566
 
fi
15567
 
if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
15568
 
  as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
15569
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15570
 
fi
15571
 
if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
15572
 
  as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
15573
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15574
 
fi
15575
 
if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
15576
 
  as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
15577
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15578
 
fi
15579
 
if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
15580
 
  as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
15581
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15582
 
fi
15583
 
if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
15584
 
  as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
15585
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586
 
fi
15587
 
if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
15588
 
  as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
15589
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590
 
fi
15591
 
if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
15592
 
  as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
15593
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594
 
fi
15595
 
if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
15596
 
  as_fn_error "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
15597
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598
 
fi
15599
 
if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
15600
 
  as_fn_error "conditional \"HAVE_POLL\" was never defined.
15601
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602
 
fi
15603
 
if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
15604
 
  as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
15605
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606
 
fi
15607
 
if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
15608
 
  as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
15609
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610
 
fi
15611
 
if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
15612
 
  as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
15613
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614
 
fi
15615
 
if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
15616
 
  as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
15617
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618
 
fi
15619
 
if test -z "${HAVE_PORT_ASSOCIATE_TRUE}" && test -z "${HAVE_PORT_ASSOCIATE_FALSE}"; then
15620
 
  as_fn_error "conditional \"HAVE_PORT_ASSOCIATE\" was never defined.
15621
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622
 
fi
15623
 
if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
15624
 
  as_fn_error "conditional \"HAVE_KQUEUE\" was never defined.
15625
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626
 
fi
15627
 
 
15628
 
: ${CONFIG_STATUS=./config.status}
15629
 
ac_write_fail=0
15630
 
ac_clean_files_save=$ac_clean_files
15631
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15632
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15633
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15634
 
as_write_fail=0
15635
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15636
 
#! $SHELL
15637
 
# Generated by $as_me.
15638
 
# Run this file to recreate the current configuration.
15639
 
# Compiler output produced by configure, useful for debugging
15640
 
# configure, is in config.log if it exists.
15641
 
 
15642
 
debug=false
15643
 
ac_cs_recheck=false
15644
 
ac_cs_silent=false
15645
 
 
15646
 
SHELL=\${CONFIG_SHELL-$SHELL}
15647
 
export SHELL
15648
 
_ASEOF
15649
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15650
 
## -------------------- ##
15651
 
## M4sh Initialization. ##
15652
 
## -------------------- ##
15653
 
 
15654
 
# Be more Bourne compatible
15655
 
DUALCASE=1; export DUALCASE # for MKS sh
15656
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15657
 
  emulate sh
15658
 
  NULLCMD=:
15659
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15660
 
  # is contrary to our usage.  Disable this feature.
15661
 
  alias -g '${1+"$@"}'='"$@"'
15662
 
  setopt NO_GLOB_SUBST
15663
 
else
15664
 
  case `(set -o) 2>/dev/null` in #(
15665
 
  *posix*) :
15666
 
    set -o posix ;; #(
15667
 
  *) :
15668
 
     ;;
15669
 
esac
15670
 
fi
15671
 
 
15672
 
 
15673
 
as_nl='
15674
 
'
15675
 
export as_nl
15676
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15677
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15678
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15679
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15680
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
15681
 
# but without wasting forks for bash or zsh.
15682
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
15683
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15684
 
  as_echo='print -r --'
15685
 
  as_echo_n='print -rn --'
15686
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15687
 
  as_echo='printf %s\n'
15688
 
  as_echo_n='printf %s'
15689
 
else
15690
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15691
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15692
 
    as_echo_n='/usr/ucb/echo -n'
15693
 
  else
15694
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15695
 
    as_echo_n_body='eval
15696
 
      arg=$1;
15697
 
      case $arg in #(
15698
 
      *"$as_nl"*)
15699
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
15700
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15701
 
      esac;
15702
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15703
 
    '
15704
 
    export as_echo_n_body
15705
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
15706
 
  fi
15707
 
  export as_echo_body
15708
 
  as_echo='sh -c $as_echo_body as_echo'
15709
 
fi
15710
 
 
15711
 
# The user is always right.
15712
 
if test "${PATH_SEPARATOR+set}" != set; then
15713
 
  PATH_SEPARATOR=:
15714
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15715
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15716
 
      PATH_SEPARATOR=';'
15717
 
  }
15718
 
fi
15719
 
 
15720
 
 
15721
 
# IFS
15722
 
# We need space, tab and new line, in precisely that order.  Quoting is
15723
 
# there to prevent editors from complaining about space-tab.
15724
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15725
 
# splitting by setting IFS to empty value.)
15726
 
IFS=" ""        $as_nl"
15727
 
 
15728
 
# Find who we are.  Look in the path if we contain no directory separator.
15729
 
case $0 in #((
15730
 
  *[\\/]* ) as_myself=$0 ;;
15731
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15732
 
for as_dir in $PATH
15733
 
do
15734
 
  IFS=$as_save_IFS
15735
 
  test -z "$as_dir" && as_dir=.
15736
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15737
 
  done
15738
 
IFS=$as_save_IFS
15739
 
 
15740
 
     ;;
15741
 
esac
15742
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
15743
 
# in which case we are not to be found in the path.
15744
 
if test "x$as_myself" = x; then
15745
 
  as_myself=$0
15746
 
fi
15747
 
if test ! -f "$as_myself"; then
15748
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15749
 
  exit 1
15750
 
fi
15751
 
 
15752
 
# Unset variables that we do not need and which cause bugs (e.g. in
15753
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15754
 
# suppresses any "Segmentation fault" message there.  '((' could
15755
 
# trigger a bug in pdksh 5.2.14.
15756
 
for as_var in BASH_ENV ENV MAIL MAILPATH
15757
 
do eval test x\${$as_var+set} = xset \
15758
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15759
 
done
15760
 
PS1='$ '
15761
 
PS2='> '
15762
 
PS4='+ '
15763
 
 
15764
 
# NLS nuisances.
15765
 
LC_ALL=C
15766
 
export LC_ALL
15767
 
LANGUAGE=C
15768
 
export LANGUAGE
15769
 
 
15770
 
# CDPATH.
15771
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15772
 
 
15773
 
 
15774
 
# as_fn_error ERROR [LINENO LOG_FD]
15775
 
# ---------------------------------
15776
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15777
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15778
 
# script with status $?, using 1 if that was 0.
15779
 
as_fn_error ()
15780
 
{
15781
 
  as_status=$?; test $as_status -eq 0 && as_status=1
15782
 
  if test "$3"; then
15783
 
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15784
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15785
 
  fi
15786
 
  $as_echo "$as_me: error: $1" >&2
15787
 
  as_fn_exit $as_status
15788
 
} # as_fn_error
15789
 
 
15790
 
 
15791
 
# as_fn_set_status STATUS
15792
 
# -----------------------
15793
 
# Set $? to STATUS, without forking.
15794
 
as_fn_set_status ()
15795
 
{
15796
 
  return $1
15797
 
} # as_fn_set_status
15798
 
 
15799
 
# as_fn_exit STATUS
15800
 
# -----------------
15801
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15802
 
as_fn_exit ()
15803
 
{
15804
 
  set +e
15805
 
  as_fn_set_status $1
15806
 
  exit $1
15807
 
} # as_fn_exit
15808
 
 
15809
 
# as_fn_unset VAR
15810
 
# ---------------
15811
 
# Portably unset VAR.
15812
 
as_fn_unset ()
15813
 
{
15814
 
  { eval $1=; unset $1;}
15815
 
}
15816
 
as_unset=as_fn_unset
15817
 
# as_fn_append VAR VALUE
15818
 
# ----------------------
15819
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
15820
 
# advantage of any shell optimizations that allow amortized linear growth over
15821
 
# repeated appends, instead of the typical quadratic growth present in naive
15822
 
# implementations.
15823
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15824
 
  eval 'as_fn_append ()
15825
 
  {
15826
 
    eval $1+=\$2
15827
 
  }'
15828
 
else
15829
 
  as_fn_append ()
15830
 
  {
15831
 
    eval $1=\$$1\$2
15832
 
  }
15833
 
fi # as_fn_append
15834
 
 
15835
 
# as_fn_arith ARG...
15836
 
# ------------------
15837
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
15838
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15839
 
# must be portable across $(()) and expr.
15840
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15841
 
  eval 'as_fn_arith ()
15842
 
  {
15843
 
    as_val=$(( $* ))
15844
 
  }'
15845
 
else
15846
 
  as_fn_arith ()
15847
 
  {
15848
 
    as_val=`expr "$@" || test $? -eq 1`
15849
 
  }
15850
 
fi # as_fn_arith
15851
 
 
15852
 
 
15853
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
15854
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15855
 
  as_expr=expr
15856
 
else
15857
 
  as_expr=false
15858
 
fi
15859
 
 
15860
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15861
 
  as_basename=basename
15862
 
else
15863
 
  as_basename=false
15864
 
fi
15865
 
 
15866
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15867
 
  as_dirname=dirname
15868
 
else
15869
 
  as_dirname=false
15870
 
fi
15871
 
 
15872
 
as_me=`$as_basename -- "$0" ||
15873
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15874
 
         X"$0" : 'X\(//\)$' \| \
15875
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15876
 
$as_echo X/"$0" |
15877
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15878
 
            s//\1/
15879
 
            q
15880
 
          }
15881
 
          /^X\/\(\/\/\)$/{
15882
 
            s//\1/
15883
 
            q
15884
 
          }
15885
 
          /^X\/\(\/\).*/{
15886
 
            s//\1/
15887
 
            q
15888
 
          }
15889
 
          s/.*/./; q'`
15890
 
 
15891
 
# Avoid depending upon Character Ranges.
15892
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15893
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15894
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15895
 
as_cr_digits='0123456789'
15896
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
15897
 
 
15898
 
ECHO_C= ECHO_N= ECHO_T=
15899
 
case `echo -n x` in #(((((
15900
 
-n*)
15901
 
  case `echo 'xy\c'` in
15902
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15903
 
  xy)  ECHO_C='\c';;
15904
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15905
 
       ECHO_T=' ';;
15906
 
  esac;;
15907
 
*)
15908
 
  ECHO_N='-n';;
15909
 
esac
15910
 
 
15911
 
rm -f conf$$ conf$$.exe conf$$.file
15912
 
if test -d conf$$.dir; then
15913
 
  rm -f conf$$.dir/conf$$.file
15914
 
else
15915
 
  rm -f conf$$.dir
15916
 
  mkdir conf$$.dir 2>/dev/null
15917
 
fi
15918
 
if (echo >conf$$.file) 2>/dev/null; then
15919
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
15920
 
    as_ln_s='ln -s'
15921
 
    # ... but there are two gotchas:
15922
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15923
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15924
 
    # In both cases, we have to default to `cp -p'.
15925
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15926
 
      as_ln_s='cp -p'
15927
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
15928
 
    as_ln_s=ln
15929
 
  else
15930
 
    as_ln_s='cp -p'
15931
 
  fi
15932
 
else
15933
 
  as_ln_s='cp -p'
15934
 
fi
15935
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15936
 
rmdir conf$$.dir 2>/dev/null
15937
 
 
15938
 
 
15939
 
# as_fn_mkdir_p
15940
 
# -------------
15941
 
# Create "$as_dir" as a directory, including parents if necessary.
15942
 
as_fn_mkdir_p ()
15943
 
{
15944
 
 
15945
 
  case $as_dir in #(
15946
 
  -*) as_dir=./$as_dir;;
15947
 
  esac
15948
 
  test -d "$as_dir" || eval $as_mkdir_p || {
15949
 
    as_dirs=
15950
 
    while :; do
15951
 
      case $as_dir in #(
15952
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15953
 
      *) as_qdir=$as_dir;;
15954
 
      esac
15955
 
      as_dirs="'$as_qdir' $as_dirs"
15956
 
      as_dir=`$as_dirname -- "$as_dir" ||
15957
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15958
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15959
 
         X"$as_dir" : 'X\(//\)$' \| \
15960
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15961
 
$as_echo X"$as_dir" |
15962
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15963
 
            s//\1/
15964
 
            q
15965
 
          }
15966
 
          /^X\(\/\/\)[^/].*/{
15967
 
            s//\1/
15968
 
            q
15969
 
          }
15970
 
          /^X\(\/\/\)$/{
15971
 
            s//\1/
15972
 
            q
15973
 
          }
15974
 
          /^X\(\/\).*/{
15975
 
            s//\1/
15976
 
            q
15977
 
          }
15978
 
          s/.*/./; q'`
15979
 
      test -d "$as_dir" && break
15980
 
    done
15981
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15982
 
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15983
 
 
15984
 
 
15985
 
} # as_fn_mkdir_p
15986
 
if mkdir -p . 2>/dev/null; then
15987
 
  as_mkdir_p='mkdir -p "$as_dir"'
15988
 
else
15989
 
  test -d ./-p && rmdir ./-p
15990
 
  as_mkdir_p=false
15991
 
fi
15992
 
 
15993
 
if test -x / >/dev/null 2>&1; then
15994
 
  as_test_x='test -x'
15995
 
else
15996
 
  if ls -dL / >/dev/null 2>&1; then
15997
 
    as_ls_L_option=L
15998
 
  else
15999
 
    as_ls_L_option=
16000
 
  fi
16001
 
  as_test_x='
16002
 
    eval sh -c '\''
16003
 
      if test -d "$1"; then
16004
 
        test -d "$1/.";
16005
 
      else
16006
 
        case $1 in #(
16007
 
        -*)set "./$1";;
16008
 
        esac;
16009
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16010
 
        ???[sx]*):;;*)false;;esac;fi
16011
 
    '\'' sh
16012
 
  '
16013
 
fi
16014
 
as_executable_p=$as_test_x
16015
 
 
16016
 
# Sed expression to map a string onto a valid CPP name.
16017
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16018
 
 
16019
 
# Sed expression to map a string onto a valid variable name.
16020
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16021
 
 
16022
 
 
16023
 
exec 6>&1
16024
 
## ----------------------------------- ##
16025
 
## Main body of $CONFIG_STATUS script. ##
16026
 
## ----------------------------------- ##
16027
 
_ASEOF
16028
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16029
 
 
16030
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16031
 
# Save the log message, to keep $0 and so on meaningful, and to
16032
 
# report actual input values of CONFIG_FILES etc. instead of their
16033
 
# values after options handling.
16034
 
ac_log="
16035
 
This file was extended by aria2 $as_me 1.10.0, which was
16036
 
generated by GNU Autoconf 2.65.  Invocation command line was
16037
 
 
16038
 
  CONFIG_FILES    = $CONFIG_FILES
16039
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
16040
 
  CONFIG_LINKS    = $CONFIG_LINKS
16041
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
16042
 
  $ $0 $@
16043
 
 
16044
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16045
 
"
16046
 
 
16047
 
_ACEOF
16048
 
 
16049
 
case $ac_config_files in *"
16050
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16051
 
esac
16052
 
 
16053
 
case $ac_config_headers in *"
16054
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16055
 
esac
16056
 
 
16057
 
 
16058
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16059
 
# Files that config.status was made for.
16060
 
config_files="$ac_config_files"
16061
 
config_headers="$ac_config_headers"
16062
 
config_commands="$ac_config_commands"
16063
 
 
16064
 
_ACEOF
16065
 
 
16066
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16067
 
ac_cs_usage="\
16068
 
\`$as_me' instantiates files and other configuration actions
16069
 
from templates according to the current configuration.  Unless the files
16070
 
and actions are specified as TAGs, all are instantiated by default.
16071
 
 
16072
 
Usage: $0 [OPTION]... [TAG]...
16073
 
 
16074
 
  -h, --help       print this help, then exit
16075
 
  -V, --version    print version number and configuration settings, then exit
16076
 
      --config     print configuration, then exit
16077
 
  -q, --quiet, --silent
16078
 
                   do not print progress messages
16079
 
  -d, --debug      don't remove temporary files
16080
 
      --recheck    update $as_me by reconfiguring in the same conditions
16081
 
      --file=FILE[:TEMPLATE]
16082
 
                   instantiate the configuration file FILE
16083
 
      --header=FILE[:TEMPLATE]
16084
 
                   instantiate the configuration header FILE
16085
 
 
16086
 
Configuration files:
16087
 
$config_files
16088
 
 
16089
 
Configuration headers:
16090
 
$config_headers
16091
 
 
16092
 
Configuration commands:
16093
 
$config_commands
16094
 
 
16095
 
Report bugs to <t-tujikawa@users.sourceforge.net>.
16096
 
aria2 home page: <http://aria2.sourceforge.net/>."
16097
 
 
16098
 
_ACEOF
16099
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16100
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16101
 
ac_cs_version="\\
16102
 
aria2 config.status 1.10.0
16103
 
configured by $0, generated by GNU Autoconf 2.65,
16104
 
  with options \\"\$ac_cs_config\\"
16105
 
 
16106
 
Copyright (C) 2009 Free Software Foundation, Inc.
16107
 
This config.status script is free software; the Free Software Foundation
16108
 
gives unlimited permission to copy, distribute and modify it."
16109
 
 
16110
 
ac_pwd='$ac_pwd'
16111
 
srcdir='$srcdir'
16112
 
INSTALL='$INSTALL'
16113
 
MKDIR_P='$MKDIR_P'
16114
 
AWK='$AWK'
16115
 
test -n "\$AWK" || AWK=awk
16116
 
_ACEOF
16117
 
 
16118
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16119
 
# The default lists apply if the user does not specify any file.
16120
 
ac_need_defaults=:
16121
 
while test $# != 0
16122
 
do
16123
 
  case $1 in
16124
 
  --*=*)
16125
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16126
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16127
 
    ac_shift=:
16128
 
    ;;
16129
 
  *)
16130
 
    ac_option=$1
16131
 
    ac_optarg=$2
16132
 
    ac_shift=shift
16133
 
    ;;
16134
 
  esac
16135
 
 
16136
 
  case $ac_option in
16137
 
  # Handling of the options.
16138
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16139
 
    ac_cs_recheck=: ;;
16140
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16141
 
    $as_echo "$ac_cs_version"; exit ;;
16142
 
  --config | --confi | --conf | --con | --co | --c )
16143
 
    $as_echo "$ac_cs_config"; exit ;;
16144
 
  --debug | --debu | --deb | --de | --d | -d )
16145
 
    debug=: ;;
16146
 
  --file | --fil | --fi | --f )
16147
 
    $ac_shift
16148
 
    case $ac_optarg in
16149
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16150
 
    esac
16151
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
16152
 
    ac_need_defaults=false;;
16153
 
  --header | --heade | --head | --hea )
16154
 
    $ac_shift
16155
 
    case $ac_optarg in
16156
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16157
 
    esac
16158
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16159
 
    ac_need_defaults=false;;
16160
 
  --he | --h)
16161
 
    # Conflict between --help and --header
16162
 
    as_fn_error "ambiguous option: \`$1'
16163
 
Try \`$0 --help' for more information.";;
16164
 
  --help | --hel | -h )
16165
 
    $as_echo "$ac_cs_usage"; exit ;;
16166
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16167
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16168
 
    ac_cs_silent=: ;;
16169
 
 
16170
 
  # This is an error.
16171
 
  -*) as_fn_error "unrecognized option: \`$1'
16172
 
Try \`$0 --help' for more information." ;;
16173
 
 
16174
 
  *) as_fn_append ac_config_targets " $1"
16175
 
     ac_need_defaults=false ;;
16176
 
 
16177
 
  esac
16178
 
  shift
16179
 
done
16180
 
 
16181
 
ac_configure_extra_args=
16182
 
 
16183
 
if $ac_cs_silent; then
16184
 
  exec 6>/dev/null
16185
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
16186
 
fi
16187
 
 
16188
 
_ACEOF
16189
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190
 
if \$ac_cs_recheck; then
16191
 
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16192
 
  shift
16193
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16194
 
  CONFIG_SHELL='$SHELL'
16195
 
  export CONFIG_SHELL
16196
 
  exec "\$@"
16197
 
fi
16198
 
 
16199
 
_ACEOF
16200
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16201
 
exec 5>>config.log
16202
 
{
16203
 
  echo
16204
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16205
 
## Running $as_me. ##
16206
 
_ASBOX
16207
 
  $as_echo "$ac_log"
16208
 
} >&5
16209
 
 
16210
 
_ACEOF
16211
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212
 
#
16213
 
# INIT-COMMANDS
16214
 
#
16215
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16216
 
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16217
 
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16218
 
    # from automake < 1.5.
16219
 
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16220
 
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
16221
 
    LINGUAS="${LINGUAS-%UNSET%}"
16222
 
 
16223
 
 
16224
 
_ACEOF
16225
 
 
16226
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16227
 
 
16228
 
# Handling of arguments.
16229
 
for ac_config_target in $ac_config_targets
16230
 
do
16231
 
  case $ac_config_target in
16232
 
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16233
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16234
 
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16235
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16236
 
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16237
 
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16238
 
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16239
 
    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16240
 
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16241
 
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16242
 
 
16243
 
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16244
 
  esac
16245
 
done
16246
 
 
16247
 
 
16248
 
# If the user did not use the arguments to specify the items to instantiate,
16249
 
# then the envvar interface is used.  Set only those that are not.
16250
 
# We use the long form for the default assignment because of an extremely
16251
 
# bizarre bug on SunOS 4.1.3.
16252
 
if $ac_need_defaults; then
16253
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16254
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16255
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16256
 
fi
16257
 
 
16258
 
# Have a temporary directory for convenience.  Make it in the build tree
16259
 
# simply because there is no reason against having it here, and in addition,
16260
 
# creating and moving files from /tmp can sometimes cause problems.
16261
 
# Hook for its removal unless debugging.
16262
 
# Note that there is a small window in which the directory will not be cleaned:
16263
 
# after its creation but before its name has been assigned to `$tmp'.
16264
 
$debug ||
16265
 
{
16266
 
  tmp=
16267
 
  trap 'exit_status=$?
16268
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16269
 
' 0
16270
 
  trap 'as_fn_exit 1' 1 2 13 15
16271
 
}
16272
 
# Create a (secure) tmp directory for tmp files.
16273
 
 
16274
 
{
16275
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16276
 
  test -n "$tmp" && test -d "$tmp"
16277
 
}  ||
16278
 
{
16279
 
  tmp=./conf$$-$RANDOM
16280
 
  (umask 077 && mkdir "$tmp")
16281
 
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16282
 
 
16283
 
# Set up the scripts for CONFIG_FILES section.
16284
 
# No need to generate them if there are no CONFIG_FILES.
16285
 
# This happens for instance with `./config.status config.h'.
16286
 
if test -n "$CONFIG_FILES"; then
16287
 
 
16288
 
 
16289
 
ac_cr=`echo X | tr X '\015'`
16290
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16291
 
# But we know of no other shell where ac_cr would be empty at this
16292
 
# point, so we can use a bashism as a fallback.
16293
 
if test "x$ac_cr" = x; then
16294
 
  eval ac_cr=\$\'\\r\'
16295
 
fi
16296
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16297
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16298
 
  ac_cs_awk_cr='\r'
16299
 
else
16300
 
  ac_cs_awk_cr=$ac_cr
16301
 
fi
16302
 
 
16303
 
echo 'BEGIN {' >"$tmp/subs1.awk" &&
16304
 
_ACEOF
16305
 
 
16306
 
 
16307
 
{
16308
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
16309
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16310
 
  echo "_ACEOF"
16311
 
} >conf$$subs.sh ||
16312
 
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16313
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16314
 
ac_delim='%!_!# '
16315
 
for ac_last_try in false false false false false :; do
16316
 
  . ./conf$$subs.sh ||
16317
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16318
 
 
16319
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16320
 
  if test $ac_delim_n = $ac_delim_num; then
16321
 
    break
16322
 
  elif $ac_last_try; then
16323
 
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16324
 
  else
16325
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16326
 
  fi
16327
 
done
16328
 
rm -f conf$$subs.sh
16329
 
 
16330
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16331
 
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16332
 
_ACEOF
16333
 
sed -n '
16334
 
h
16335
 
s/^/S["/; s/!.*/"]=/
16336
 
p
16337
 
g
16338
 
s/^[^!]*!//
16339
 
:repl
16340
 
t repl
16341
 
s/'"$ac_delim"'$//
16342
 
t delim
16343
 
:nl
16344
 
h
16345
 
s/\(.\{148\}\)..*/\1/
16346
 
t more1
16347
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16348
 
p
16349
 
n
16350
 
b repl
16351
 
:more1
16352
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16353
 
p
16354
 
g
16355
 
s/.\{148\}//
16356
 
t nl
16357
 
:delim
16358
 
h
16359
 
s/\(.\{148\}\)..*/\1/
16360
 
t more2
16361
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
16362
 
p
16363
 
b
16364
 
:more2
16365
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16366
 
p
16367
 
g
16368
 
s/.\{148\}//
16369
 
t delim
16370
 
' <conf$$subs.awk | sed '
16371
 
/^[^""]/{
16372
 
  N
16373
 
  s/\n//
16374
 
}
16375
 
' >>$CONFIG_STATUS || ac_write_fail=1
16376
 
rm -f conf$$subs.awk
16377
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16378
 
_ACAWK
16379
 
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16380
 
  for (key in S) S_is_set[key] = 1
16381
 
  FS = ""
16382
 
 
16383
 
}
16384
 
{
16385
 
  line = $ 0
16386
 
  nfields = split(line, field, "@")
16387
 
  substed = 0
16388
 
  len = length(field[1])
16389
 
  for (i = 2; i < nfields; i++) {
16390
 
    key = field[i]
16391
 
    keylen = length(key)
16392
 
    if (S_is_set[key]) {
16393
 
      value = S[key]
16394
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16395
 
      len += length(value) + length(field[++i])
16396
 
      substed = 1
16397
 
    } else
16398
 
      len += 1 + keylen
16399
 
  }
16400
 
 
16401
 
  print line
16402
 
}
16403
 
 
16404
 
_ACAWK
16405
 
_ACEOF
16406
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16407
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16408
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16409
 
else
16410
 
  cat
16411
 
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16412
 
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16413
 
_ACEOF
16414
 
 
16415
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16416
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16417
 
# trailing colons and then remove the whole line if VPATH becomes empty
16418
 
# (actually we leave an empty line to preserve line numbers).
16419
 
if test "x$srcdir" = x.; then
16420
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
16421
 
s/:*\$(srcdir):*/:/
16422
 
s/:*\${srcdir}:*/:/
16423
 
s/:*@srcdir@:*/:/
16424
 
s/^\([^=]*=[     ]*\):*/\1/
16425
 
s/:*$//
16426
 
s/^[^=]*=[       ]*$//
16427
 
}'
16428
 
fi
16429
 
 
16430
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16431
 
fi # test -n "$CONFIG_FILES"
16432
 
 
16433
 
# Set up the scripts for CONFIG_HEADERS section.
16434
 
# No need to generate them if there are no CONFIG_HEADERS.
16435
 
# This happens for instance with `./config.status Makefile'.
16436
 
if test -n "$CONFIG_HEADERS"; then
16437
 
cat >"$tmp/defines.awk" <<\_ACAWK ||
16438
 
BEGIN {
16439
 
_ACEOF
16440
 
 
16441
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
16442
 
# here-document in config.status, that substitutes the proper values into
16443
 
# config.h.in to produce config.h.
16444
 
 
16445
 
# Create a delimiter string that does not exist in confdefs.h, to ease
16446
 
# handling of long lines.
16447
 
ac_delim='%!_!# '
16448
 
for ac_last_try in false false :; do
16449
 
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16450
 
  if test -z "$ac_t"; then
16451
 
    break
16452
 
  elif $ac_last_try; then
16453
 
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16454
 
  else
16455
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16456
 
  fi
16457
 
done
16458
 
 
16459
 
# For the awk script, D is an array of macro values keyed by name,
16460
 
# likewise P contains macro parameters if any.  Preserve backslash
16461
 
# newline sequences.
16462
 
 
16463
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16464
 
sed -n '
16465
 
s/.\{148\}/&'"$ac_delim"'/g
16466
 
t rset
16467
 
:rset
16468
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
16469
 
t def
16470
 
d
16471
 
:def
16472
 
s/\\$//
16473
 
t bsnl
16474
 
s/["\\]/\\&/g
16475
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16476
 
D["\1"]=" \3"/p
16477
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16478
 
d
16479
 
:bsnl
16480
 
s/["\\]/\\&/g
16481
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16482
 
D["\1"]=" \3\\\\\\n"\\/p
16483
 
t cont
16484
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16485
 
t cont
16486
 
d
16487
 
:cont
16488
 
n
16489
 
s/.\{148\}/&'"$ac_delim"'/g
16490
 
t clear
16491
 
:clear
16492
 
s/\\$//
16493
 
t bsnlc
16494
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16495
 
d
16496
 
:bsnlc
16497
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16498
 
b cont
16499
 
' <confdefs.h | sed '
16500
 
s/'"$ac_delim"'/"\\\
16501
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16502
 
 
16503
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16504
 
  for (key in D) D_is_set[key] = 1
16505
 
  FS = ""
16506
 
}
16507
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16508
 
  line = \$ 0
16509
 
  split(line, arg, " ")
16510
 
  if (arg[1] == "#") {
16511
 
    defundef = arg[2]
16512
 
    mac1 = arg[3]
16513
 
  } else {
16514
 
    defundef = substr(arg[1], 2)
16515
 
    mac1 = arg[2]
16516
 
  }
16517
 
  split(mac1, mac2, "(") #)
16518
 
  macro = mac2[1]
16519
 
  prefix = substr(line, 1, index(line, defundef) - 1)
16520
 
  if (D_is_set[macro]) {
16521
 
    # Preserve the white space surrounding the "#".
16522
 
    print prefix "define", macro P[macro] D[macro]
16523
 
    next
16524
 
  } else {
16525
 
    # Replace #undef with comments.  This is necessary, for example,
16526
 
    # in the case of _POSIX_SOURCE, which is predefined and required
16527
 
    # on some systems where configure will not decide to define it.
16528
 
    if (defundef == "undef") {
16529
 
      print "/*", prefix defundef, macro, "*/"
16530
 
      next
16531
 
    }
16532
 
  }
16533
 
}
16534
 
{ print }
16535
 
_ACAWK
16536
 
_ACEOF
16537
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16538
 
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16539
 
fi # test -n "$CONFIG_HEADERS"
16540
 
 
16541
 
 
16542
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16543
 
shift
16544
 
for ac_tag
16545
 
do
16546
 
  case $ac_tag in
16547
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
16548
 
  esac
16549
 
  case $ac_mode$ac_tag in
16550
 
  :[FHL]*:*);;
16551
 
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16552
 
  :[FH]-) ac_tag=-:-;;
16553
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16554
 
  esac
16555
 
  ac_save_IFS=$IFS
16556
 
  IFS=:
16557
 
  set x $ac_tag
16558
 
  IFS=$ac_save_IFS
16559
 
  shift
16560
 
  ac_file=$1
16561
 
  shift
16562
 
 
16563
 
  case $ac_mode in
16564
 
  :L) ac_source=$1;;
16565
 
  :[FH])
16566
 
    ac_file_inputs=
16567
 
    for ac_f
16568
 
    do
16569
 
      case $ac_f in
16570
 
      -) ac_f="$tmp/stdin";;
16571
 
      *) # Look for the file first in the build tree, then in the source tree
16572
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
16573
 
         # because $ac_f cannot contain `:'.
16574
 
         test -f "$ac_f" ||
16575
 
           case $ac_f in
16576
 
           [\\/$]*) false;;
16577
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16578
 
           esac ||
16579
 
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16580
 
      esac
16581
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16582
 
      as_fn_append ac_file_inputs " '$ac_f'"
16583
 
    done
16584
 
 
16585
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
16586
 
    # use $as_me), people would be surprised to read:
16587
 
    #    /* config.h.  Generated by config.status.  */
16588
 
    configure_input='Generated from '`
16589
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16590
 
        `' by configure.'
16591
 
    if test x"$ac_file" != x-; then
16592
 
      configure_input="$ac_file.  $configure_input"
16593
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16594
 
$as_echo "$as_me: creating $ac_file" >&6;}
16595
 
    fi
16596
 
    # Neutralize special characters interpreted by sed in replacement strings.
16597
 
    case $configure_input in #(
16598
 
    *\&* | *\|* | *\\* )
16599
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
16600
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16601
 
    *) ac_sed_conf_input=$configure_input;;
16602
 
    esac
16603
 
 
16604
 
    case $ac_tag in
16605
 
    *:-:* | *:-) cat >"$tmp/stdin" \
16606
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16607
 
    esac
16608
 
    ;;
16609
 
  esac
16610
 
 
16611
 
  ac_dir=`$as_dirname -- "$ac_file" ||
16612
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16613
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
16614
 
         X"$ac_file" : 'X\(//\)$' \| \
16615
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16616
 
$as_echo X"$ac_file" |
16617
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16618
 
            s//\1/
16619
 
            q
16620
 
          }
16621
 
          /^X\(\/\/\)[^/].*/{
16622
 
            s//\1/
16623
 
            q
16624
 
          }
16625
 
          /^X\(\/\/\)$/{
16626
 
            s//\1/
16627
 
            q
16628
 
          }
16629
 
          /^X\(\/\).*/{
16630
 
            s//\1/
16631
 
            q
16632
 
          }
16633
 
          s/.*/./; q'`
16634
 
  as_dir="$ac_dir"; as_fn_mkdir_p
16635
 
  ac_builddir=.
16636
 
 
16637
 
case "$ac_dir" in
16638
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16639
 
*)
16640
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16641
 
  # A ".." for each directory in $ac_dir_suffix.
16642
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16643
 
  case $ac_top_builddir_sub in
16644
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16645
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16646
 
  esac ;;
16647
 
esac
16648
 
ac_abs_top_builddir=$ac_pwd
16649
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16650
 
# for backward compatibility:
16651
 
ac_top_builddir=$ac_top_build_prefix
16652
 
 
16653
 
case $srcdir in
16654
 
  .)  # We are building in place.
16655
 
    ac_srcdir=.
16656
 
    ac_top_srcdir=$ac_top_builddir_sub
16657
 
    ac_abs_top_srcdir=$ac_pwd ;;
16658
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
16659
 
    ac_srcdir=$srcdir$ac_dir_suffix;
16660
 
    ac_top_srcdir=$srcdir
16661
 
    ac_abs_top_srcdir=$srcdir ;;
16662
 
  *) # Relative name.
16663
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16664
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16665
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16666
 
esac
16667
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16668
 
 
16669
 
 
16670
 
  case $ac_mode in
16671
 
  :F)
16672
 
  #
16673
 
  # CONFIG_FILE
16674
 
  #
16675
 
 
16676
 
  case $INSTALL in
16677
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16678
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16679
 
  esac
16680
 
  ac_MKDIR_P=$MKDIR_P
16681
 
  case $MKDIR_P in
16682
 
  [\\/$]* | ?:[\\/]* ) ;;
16683
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16684
 
  esac
16685
 
_ACEOF
16686
 
 
16687
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16688
 
# If the template does not know about datarootdir, expand it.
16689
 
# FIXME: This hack should be removed a few years after 2.60.
16690
 
ac_datarootdir_hack=; ac_datarootdir_seen=
16691
 
ac_sed_dataroot='
16692
 
/datarootdir/ {
16693
 
  p
16694
 
  q
16695
 
}
16696
 
/@datadir@/p
16697
 
/@docdir@/p
16698
 
/@infodir@/p
16699
 
/@localedir@/p
16700
 
/@mandir@/p'
16701
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16702
 
*datarootdir*) ac_datarootdir_seen=yes;;
16703
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16704
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16705
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16706
 
_ACEOF
16707
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16708
 
  ac_datarootdir_hack='
16709
 
  s&@datadir@&$datadir&g
16710
 
  s&@docdir@&$docdir&g
16711
 
  s&@infodir@&$infodir&g
16712
 
  s&@localedir@&$localedir&g
16713
 
  s&@mandir@&$mandir&g
16714
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
16715
 
esac
16716
 
_ACEOF
16717
 
 
16718
 
# Neutralize VPATH when `$srcdir' = `.'.
16719
 
# Shell code in configure.ac might set extrasub.
16720
 
# FIXME: do we really want to maintain this feature?
16721
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16722
 
ac_sed_extra="$ac_vpsub
16723
 
$extrasub
16724
 
_ACEOF
16725
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16726
 
:t
16727
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16728
 
s|@configure_input@|$ac_sed_conf_input|;t t
16729
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
16730
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16731
 
s&@srcdir@&$ac_srcdir&;t t
16732
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16733
 
s&@top_srcdir@&$ac_top_srcdir&;t t
16734
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16735
 
s&@builddir@&$ac_builddir&;t t
16736
 
s&@abs_builddir@&$ac_abs_builddir&;t t
16737
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16738
 
s&@INSTALL@&$ac_INSTALL&;t t
16739
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16740
 
$ac_datarootdir_hack
16741
 
"
16742
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16743
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
16744
 
 
16745
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16746
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16747
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16748
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16749
 
which seems to be undefined.  Please make sure it is defined." >&5
16750
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16751
 
which seems to be undefined.  Please make sure it is defined." >&2;}
16752
 
 
16753
 
  rm -f "$tmp/stdin"
16754
 
  case $ac_file in
16755
 
  -) cat "$tmp/out" && rm -f "$tmp/out";;
16756
 
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16757
 
  esac \
16758
 
  || as_fn_error "could not create $ac_file" "$LINENO" 5
16759
 
 ;;
16760
 
  :H)
16761
 
  #
16762
 
  # CONFIG_HEADER
16763
 
  #
16764
 
  if test x"$ac_file" != x-; then
16765
 
    {
16766
 
      $as_echo "/* $configure_input  */" \
16767
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16768
 
    } >"$tmp/config.h" \
16769
 
      || as_fn_error "could not create $ac_file" "$LINENO" 5
16770
 
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16771
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16772
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16773
 
    else
16774
 
      rm -f "$ac_file"
16775
 
      mv "$tmp/config.h" "$ac_file" \
16776
 
        || as_fn_error "could not create $ac_file" "$LINENO" 5
16777
 
    fi
16778
 
  else
16779
 
    $as_echo "/* $configure_input  */" \
16780
 
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16781
 
      || as_fn_error "could not create -" "$LINENO" 5
16782
 
  fi
16783
 
# Compute "$ac_file"'s index in $config_headers.
16784
 
_am_arg="$ac_file"
16785
 
_am_stamp_count=1
16786
 
for _am_header in $config_headers :; do
16787
 
  case $_am_header in
16788
 
    $_am_arg | $_am_arg:* )
16789
 
      break ;;
16790
 
    * )
16791
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16792
 
  esac
16793
 
done
16794
 
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16795
 
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16796
 
         X"$_am_arg" : 'X\(//\)[^/]' \| \
16797
 
         X"$_am_arg" : 'X\(//\)$' \| \
16798
 
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16799
 
$as_echo X"$_am_arg" |
16800
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16801
 
            s//\1/
16802
 
            q
16803
 
          }
16804
 
          /^X\(\/\/\)[^/].*/{
16805
 
            s//\1/
16806
 
            q
16807
 
          }
16808
 
          /^X\(\/\/\)$/{
16809
 
            s//\1/
16810
 
            q
16811
 
          }
16812
 
          /^X\(\/\).*/{
16813
 
            s//\1/
16814
 
            q
16815
 
          }
16816
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
16817
 
 ;;
16818
 
 
16819
 
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16820
 
$as_echo "$as_me: executing $ac_file commands" >&6;}
16821
 
 ;;
16822
 
  esac
16823
 
 
16824
 
 
16825
 
  case $ac_file$ac_mode in
16826
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16827
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16828
 
  # are listed without --file.  Let's play safe and only enable the eval
16829
 
  # if we detect the quoting.
16830
 
  case $CONFIG_FILES in
16831
 
  *\'*) eval set x "$CONFIG_FILES" ;;
16832
 
  *)   set x $CONFIG_FILES ;;
16833
 
  esac
16834
 
  shift
16835
 
  for mf
16836
 
  do
16837
 
    # Strip MF so we end up with the name of the file.
16838
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
16839
 
    # Check whether this is an Automake generated Makefile or not.
16840
 
    # We used to match only the files named `Makefile.in', but
16841
 
    # some people rename them; so instead we look at the file content.
16842
 
    # Grep'ing the first line is not enough: some people post-process
16843
 
    # each Makefile.in and add a new line on top of each file to say so.
16844
 
    # Grep'ing the whole file is not good either: AIX grep has a line
16845
 
    # limit of 2048, but all sed's we know have understand at least 4000.
16846
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16847
 
      dirpart=`$as_dirname -- "$mf" ||
16848
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16849
 
         X"$mf" : 'X\(//\)[^/]' \| \
16850
 
         X"$mf" : 'X\(//\)$' \| \
16851
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16852
 
$as_echo X"$mf" |
16853
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16854
 
            s//\1/
16855
 
            q
16856
 
          }
16857
 
          /^X\(\/\/\)[^/].*/{
16858
 
            s//\1/
16859
 
            q
16860
 
          }
16861
 
          /^X\(\/\/\)$/{
16862
 
            s//\1/
16863
 
            q
16864
 
          }
16865
 
          /^X\(\/\).*/{
16866
 
            s//\1/
16867
 
            q
16868
 
          }
16869
 
          s/.*/./; q'`
16870
 
    else
16871
 
      continue
16872
 
    fi
16873
 
    # Extract the definition of DEPDIR, am__include, and am__quote
16874
 
    # from the Makefile without running `make'.
16875
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16876
 
    test -z "$DEPDIR" && continue
16877
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16878
 
    test -z "am__include" && continue
16879
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16880
 
    # When using ansi2knr, U may be empty or an underscore; expand it
16881
 
    U=`sed -n 's/^U = //p' < "$mf"`
16882
 
    # Find all dependency output files, they are included files with
16883
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16884
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
16885
 
    # expansion.
16886
 
    for file in `sed -n "
16887
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16888
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16889
 
      # Make sure the directory exists.
16890
 
      test -f "$dirpart/$file" && continue
16891
 
      fdir=`$as_dirname -- "$file" ||
16892
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16893
 
         X"$file" : 'X\(//\)[^/]' \| \
16894
 
         X"$file" : 'X\(//\)$' \| \
16895
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16896
 
$as_echo X"$file" |
16897
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16898
 
            s//\1/
16899
 
            q
16900
 
          }
16901
 
          /^X\(\/\/\)[^/].*/{
16902
 
            s//\1/
16903
 
            q
16904
 
          }
16905
 
          /^X\(\/\/\)$/{
16906
 
            s//\1/
16907
 
            q
16908
 
          }
16909
 
          /^X\(\/\).*/{
16910
 
            s//\1/
16911
 
            q
16912
 
          }
16913
 
          s/.*/./; q'`
16914
 
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16915
 
      # echo "creating $dirpart/$file"
16916
 
      echo '# dummy' > "$dirpart/$file"
16917
 
    done
16918
 
  done
16919
 
}
16920
 
 ;;
16921
 
    "po-directories":C)
16922
 
    for ac_file in $CONFIG_FILES; do
16923
 
      # Support "outfile[:infile[:infile...]]"
16924
 
      case "$ac_file" in
16925
 
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16926
 
      esac
16927
 
      # PO directories have a Makefile.in generated from Makefile.in.in.
16928
 
      case "$ac_file" in */Makefile.in)
16929
 
        # Adjust a relative srcdir.
16930
 
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16931
 
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16932
 
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16933
 
        # In autoconf-2.13 it is called $ac_given_srcdir.
16934
 
        # In autoconf-2.50 it is called $srcdir.
16935
 
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16936
 
        case "$ac_given_srcdir" in
16937
 
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16938
 
          /*) top_srcdir="$ac_given_srcdir" ;;
16939
 
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16940
 
        esac
16941
 
        # Treat a directory as a PO directory if and only if it has a
16942
 
        # POTFILES.in file. This allows packages to have multiple PO
16943
 
        # directories under different names or in different locations.
16944
 
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16945
 
          rm -f "$ac_dir/POTFILES"
16946
 
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16947
 
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16948
 
          POMAKEFILEDEPS="POTFILES.in"
16949
 
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16950
 
          # on $ac_dir but don't depend on user-specified configuration
16951
 
          # parameters.
16952
 
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16953
 
            # The LINGUAS file contains the set of available languages.
16954
 
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
16955
 
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16956
 
            fi
16957
 
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16958
 
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
16959
 
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16960
 
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16961
 
          else
16962
 
            # The set of available languages was given in configure.in.
16963
 
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
16964
 
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16965
 
          fi
16966
 
          # Compute POFILES
16967
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16968
 
          # Compute UPDATEPOFILES
16969
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16970
 
          # Compute DUMMYPOFILES
16971
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16972
 
          # Compute GMOFILES
16973
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16974
 
          case "$ac_given_srcdir" in
16975
 
            .) srcdirpre= ;;
16976
 
            *) srcdirpre='$(srcdir)/' ;;
16977
 
          esac
16978
 
          POFILES=
16979
 
          UPDATEPOFILES=
16980
 
          DUMMYPOFILES=
16981
 
          GMOFILES=
16982
 
          for lang in $ALL_LINGUAS; do
16983
 
            POFILES="$POFILES $srcdirpre$lang.po"
16984
 
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16985
 
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16986
 
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16987
 
          done
16988
 
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
16989
 
          # environment variable.
16990
 
          INST_LINGUAS=
16991
 
          if test -n "$ALL_LINGUAS"; then
16992
 
            for presentlang in $ALL_LINGUAS; do
16993
 
              useit=no
16994
 
              if test "%UNSET%" != "$LINGUAS"; then
16995
 
                desiredlanguages="$LINGUAS"
16996
 
              else
16997
 
                desiredlanguages="$ALL_LINGUAS"
16998
 
              fi
16999
 
              for desiredlang in $desiredlanguages; do
17000
 
                # Use the presentlang catalog if desiredlang is
17001
 
                #   a. equal to presentlang, or
17002
 
                #   b. a variant of presentlang (because in this case,
17003
 
                #      presentlang can be used as a fallback for messages
17004
 
                #      which are not translated in the desiredlang catalog).
17005
 
                case "$desiredlang" in
17006
 
                  "$presentlang"*) useit=yes;;
17007
 
                esac
17008
 
              done
17009
 
              if test $useit = yes; then
17010
 
                INST_LINGUAS="$INST_LINGUAS $presentlang"
17011
 
              fi
17012
 
            done
17013
 
          fi
17014
 
          CATALOGS=
17015
 
          if test -n "$INST_LINGUAS"; then
17016
 
            for lang in $INST_LINGUAS; do
17017
 
              CATALOGS="$CATALOGS $lang.gmo"
17018
 
            done
17019
 
          fi
17020
 
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17021
 
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17022
 
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17023
 
            if test -f "$f"; then
17024
 
              case "$f" in
17025
 
                *.orig | *.bak | *~) ;;
17026
 
                *) cat "$f" >> "$ac_dir/Makefile" ;;
17027
 
              esac
17028
 
            fi
17029
 
          done
17030
 
        fi
17031
 
        ;;
17032
 
      esac
17033
 
    done ;;
17034
 
 
17035
 
  esac
17036
 
done # for ac_tag
17037
 
 
17038
 
 
17039
 
as_fn_exit 0
17040
 
_ACEOF
17041
 
ac_clean_files=$ac_clean_files_save
17042
 
 
17043
 
test $ac_write_fail = 0 ||
17044
 
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17045
 
 
17046
 
 
17047
 
# configure is writing to config.log, and then calls config.status.
17048
 
# config.status does its own redirection, appending to config.log.
17049
 
# Unfortunately, on DOS this fails, as config.log is still kept open
17050
 
# by configure, so config.status won't be able to write to it; its
17051
 
# output is simply discarded.  So we exec the FD to /dev/null,
17052
 
# effectively closing config.log, so it can be properly (re)opened and
17053
 
# appended to by config.status.  When coming back to configure, we
17054
 
# need to make the FD available again.
17055
 
if test "$no_create" != yes; then
17056
 
  ac_cs_success=:
17057
 
  ac_config_status_args=
17058
 
  test "$silent" = yes &&
17059
 
    ac_config_status_args="$ac_config_status_args --quiet"
17060
 
  exec 5>/dev/null
17061
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17062
 
  exec 5>>config.log
17063
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17064
 
  # would make configure fail if this is the last instruction.
17065
 
  $ac_cs_success || as_fn_exit $?
17066
 
fi
17067
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17068
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17069
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17070
 
fi
17071
 
 
17072
 
 
17073
 
echo " "
17074
 
echo "Build:          $build"
17075
 
echo "Target:         $target"
17076
 
echo "Install prefix: $prefix"
17077
 
echo "CXXFLAGS:       $CXXFLAGS"
17078
 
echo "CFLAGS:         $CFLAGS"
17079
 
echo "CPPFLAGS:       $CPPFLAGS"
17080
 
echo "LDFLAGS:        $LDFLAGS"
17081
 
echo "LIBS:           $LIBS"
17082
 
echo "SQLite3:        $have_sqlite3"
17083
 
echo "GnuTLS:         $have_libgnutls"
17084
 
echo "OpenSSL:        $have_openssl"
17085
 
echo "CA Bundle:      $ca_bundle"
17086
 
echo "LibXML2:        $have_libxml2"
17087
 
echo "LibExpat:       $have_libexpat"
17088
 
echo "LibCares:       $have_libcares"
17089
 
echo "Libz:           $have_libz"
17090
 
echo "Epoll:          $have_epoll"
17091
 
echo "Bittorrent:     $enable_bittorrent"
17092
 
echo "Metalink:       $enable_metalink"
17093
 
echo "XML-RPC:        $enable_xml_rpc"