~ubuntu-branches/ubuntu/trusty/nettle/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2011-09-03 17:59:01 UTC
  • mfrom: (8.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20110903175901-s07iotf0smzqshl2
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for nettle 2.1.
 
3
# Generated by GNU Autoconf 2.67 for nettle 2.4.
4
4
#
5
5
# Report bugs to <nettle-bugs@lists.lysator.liu.se>.
6
6
#
 
7
#
7
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
 
11
#
 
12
#
9
13
# This configure script is free software; the Free Software Foundation
10
14
# gives unlimited permission to copy, distribute and modify it.
11
 
## --------------------- ##
12
 
## M4sh Initialization.  ##
13
 
## --------------------- ##
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
14
18
 
15
19
# Be more Bourne compatible
16
20
DUALCASE=1; export DUALCASE # for MKS sh
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
22
  emulate sh
19
23
  NULLCMD=:
20
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
25
  # is contrary to our usage.  Disable this feature.
22
26
  alias -g '${1+"$@"}'='"$@"'
23
27
  setopt NO_GLOB_SUBST
24
28
else
25
 
  case `(set -o) 2>/dev/null` in
26
 
  *posix*) set -o posix ;;
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
27
34
esac
28
 
 
29
 
fi
30
 
 
31
 
 
32
 
 
33
 
 
34
 
# PATH needs CR
35
 
# Avoid depending upon Character Ranges.
36
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
 
as_cr_digits='0123456789'
40
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
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
41
75
 
42
76
# The user is always right.
43
77
if test "${PATH_SEPARATOR+set}" != set; then
44
 
  echo "#! /bin/sh" >conf$$.sh
45
 
  echo  "exit 0"   >>conf$$.sh
46
 
  chmod +x conf$$.sh
47
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48
 
    PATH_SEPARATOR=';'
49
 
  else
50
 
    PATH_SEPARATOR=:
51
 
  fi
52
 
  rm -f conf$$.sh
53
 
fi
54
 
 
55
 
# Support unset when possible.
56
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57
 
  as_unset=unset
58
 
else
59
 
  as_unset=false
 
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
  }
60
83
fi
61
84
 
62
85
 
65
88
# there to prevent editors from complaining about space-tab.
66
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
90
# splitting by setting IFS to empty value.)
68
 
as_nl='
69
 
'
70
91
IFS=" ""        $as_nl"
71
92
 
72
93
# Find who we are.  Look in the path if we contain no directory separator.
73
 
case $0 in
 
94
case $0 in #((
74
95
  *[\\/]* ) as_myself=$0 ;;
75
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76
97
for as_dir in $PATH
77
98
do
78
99
  IFS=$as_save_IFS
79
100
  test -z "$as_dir" && as_dir=.
80
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
 
done
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
82
103
IFS=$as_save_IFS
83
104
 
84
105
     ;;
89
110
  as_myself=$0
90
111
fi
91
112
if test ! -f "$as_myself"; then
92
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93
 
  { (exit 1); exit 1; }
 
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
114
  exit 1
94
115
fi
95
116
 
96
 
# Work around bugs in pre-3.0 UWIN ksh.
97
 
for as_var in ENV MAIL MAILPATH
98
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
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 || :
99
124
done
100
125
PS1='$ '
101
126
PS2='> '
102
127
PS4='+ '
103
128
 
104
129
# NLS nuisances.
105
 
for as_var in \
106
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
 
  LC_TELEPHONE LC_TIME
109
 
do
110
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
 
    eval $as_var=C; export $as_var
112
 
  else
113
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114
 
  fi
115
 
done
116
 
 
117
 
# Required to use basename.
118
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120
 
  as_expr=expr
121
 
else
122
 
  as_expr=false
123
 
fi
124
 
 
125
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
 
  as_basename=basename
127
 
else
128
 
  as_basename=false
129
 
fi
130
 
 
131
 
 
132
 
# Name of the executable.
133
 
as_me=`$as_basename -- "$0" ||
134
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
 
         X"$0" : 'X\(//\)$' \| \
136
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137
 
echo X/"$0" |
138
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
139
 
            s//\1/
140
 
            q
141
 
          }
142
 
          /^X\/\(\/\/\)$/{
143
 
            s//\1/
144
 
            q
145
 
          }
146
 
          /^X\/\(\/\).*/{
147
 
            s//\1/
148
 
            q
149
 
          }
150
 
          s/.*/./; q'`
 
130
LC_ALL=C
 
131
export LC_ALL
 
132
LANGUAGE=C
 
133
export LANGUAGE
151
134
 
152
135
# CDPATH.
153
 
$as_unset CDPATH
154
 
 
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
155
137
 
156
138
if test "x$CONFIG_SHELL" = x; then
157
 
  if (eval ":") 2>/dev/null; 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 :
158
178
  as_have_required=yes
159
179
else
160
180
  as_have_required=no
161
181
fi
162
 
 
163
 
  if test $as_have_required = yes &&     (eval ":
164
 
(as_func_return () {
165
 
  (exit \$1)
166
 
}
167
 
as_func_success () {
168
 
  as_func_return 0
169
 
}
170
 
as_func_failure () {
171
 
  as_func_return 1
172
 
}
173
 
as_func_ret_success () {
174
 
  return 0
175
 
}
176
 
as_func_ret_failure () {
177
 
  return 1
178
 
}
179
 
 
180
 
exitcode=0
181
 
if as_func_success; then
182
 
  :
183
 
else
184
 
  exitcode=1
185
 
  echo as_func_success failed.
186
 
fi
187
 
 
188
 
if as_func_failure; then
189
 
  exitcode=1
190
 
  echo as_func_failure succeeded.
191
 
fi
192
 
 
193
 
if as_func_ret_success; then
194
 
  :
195
 
else
196
 
  exitcode=1
197
 
  echo as_func_ret_success failed.
198
 
fi
199
 
 
200
 
if as_func_ret_failure; then
201
 
  exitcode=1
202
 
  echo as_func_ret_failure succeeded.
203
 
fi
204
 
 
205
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206
 
  :
207
 
else
208
 
  exitcode=1
209
 
  echo positional parameters were not saved.
210
 
fi
211
 
 
212
 
test \$exitcode = 0) || { (exit 1); exit 1; }
213
 
 
214
 
(
215
 
  as_lineno_1=\$LINENO
216
 
  as_lineno_2=\$LINENO
217
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
 
") 2> /dev/null; then
220
 
  :
221
 
else
222
 
  as_candidate_shells=
223
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
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
224
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
188
do
226
189
  IFS=$as_save_IFS
227
190
  test -z "$as_dir" && as_dir=.
228
 
  case $as_dir in
 
191
  as_found=:
 
192
  case $as_dir in #(
229
193
         /*)
230
194
           for as_base in sh bash ksh sh5; do
231
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
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
232
204
           done;;
233
205
       esac
 
206
  as_found=false
234
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; }
235
212
IFS=$as_save_IFS
236
213
 
237
214
 
238
 
      for as_shell in $as_candidate_shells $SHELL; do
239
 
         # Try only shells that exist, to save several forks.
240
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
242
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
 
  emulate sh
244
 
  NULLCMD=:
245
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
 
  # is contrary to our usage.  Disable this feature.
247
 
  alias -g '${1+"$@"}'='"$@"'
248
 
  setopt NO_GLOB_SUBST
249
 
else
250
 
  case `(set -o) 2>/dev/null` in
251
 
  *posix*) set -o posix ;;
252
 
esac
253
 
 
254
 
fi
255
 
 
256
 
 
257
 
:
258
 
_ASEOF
259
 
}; then
260
 
  CONFIG_SHELL=$as_shell
261
 
               as_have_required=yes
262
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
263
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
 
  emulate sh
265
 
  NULLCMD=:
266
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
 
  # is contrary to our usage.  Disable this feature.
268
 
  alias -g '${1+"$@"}'='"$@"'
269
 
  setopt NO_GLOB_SUBST
270
 
else
271
 
  case `(set -o) 2>/dev/null` in
272
 
  *posix*) set -o posix ;;
273
 
esac
274
 
 
275
 
fi
276
 
 
277
 
 
278
 
:
279
 
(as_func_return () {
280
 
  (exit $1)
281
 
}
282
 
as_func_success () {
283
 
  as_func_return 0
284
 
}
285
 
as_func_failure () {
286
 
  as_func_return 1
287
 
}
288
 
as_func_ret_success () {
289
 
  return 0
290
 
}
291
 
as_func_ret_failure () {
292
 
  return 1
293
 
}
294
 
 
295
 
exitcode=0
296
 
if as_func_success; then
297
 
  :
298
 
else
299
 
  exitcode=1
300
 
  echo as_func_success failed.
301
 
fi
302
 
 
303
 
if as_func_failure; then
304
 
  exitcode=1
305
 
  echo as_func_failure succeeded.
306
 
fi
307
 
 
308
 
if as_func_ret_success; then
309
 
  :
310
 
else
311
 
  exitcode=1
312
 
  echo as_func_ret_success failed.
313
 
fi
314
 
 
315
 
if as_func_ret_failure; then
316
 
  exitcode=1
317
 
  echo as_func_ret_failure succeeded.
318
 
fi
319
 
 
320
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
321
 
  :
322
 
else
323
 
  exitcode=1
324
 
  echo positional parameters were not saved.
325
 
fi
326
 
 
327
 
test $exitcode = 0) || { (exit 1); exit 1; }
328
 
 
329
 
(
330
 
  as_lineno_1=$LINENO
331
 
  as_lineno_2=$LINENO
332
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
333
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
 
 
335
 
_ASEOF
336
 
}; then
337
 
  break
338
 
fi
339
 
 
340
 
fi
341
 
 
342
 
      done
343
 
 
344
 
      if test "x$CONFIG_SHELL" != x; then
345
 
  for as_var in BASH_ENV ENV
346
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
 
        done
348
 
        export CONFIG_SHELL
349
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350
 
fi
351
 
 
352
 
 
353
 
    if test $as_have_required = no; then
354
 
  echo This script requires a shell more modern than all the
355
 
      echo shells that I found on your system.  Please install a
356
 
      echo modern shell, or manually run the script under such a
357
 
      echo shell if you do have one.
358
 
      { (exit 1); exit 1; }
359
 
fi
360
 
 
361
 
 
362
 
fi
363
 
 
364
 
fi
365
 
 
366
 
 
367
 
 
368
 
(eval "as_func_return () {
369
 
  (exit \$1)
370
 
}
371
 
as_func_success () {
372
 
  as_func_return 0
373
 
}
374
 
as_func_failure () {
375
 
  as_func_return 1
376
 
}
377
 
as_func_ret_success () {
378
 
  return 0
379
 
}
380
 
as_func_ret_failure () {
381
 
  return 1
382
 
}
383
 
 
384
 
exitcode=0
385
 
if as_func_success; then
386
 
  :
387
 
else
388
 
  exitcode=1
389
 
  echo as_func_success failed.
390
 
fi
391
 
 
392
 
if as_func_failure; then
393
 
  exitcode=1
394
 
  echo as_func_failure succeeded.
395
 
fi
396
 
 
397
 
if as_func_ret_success; then
398
 
  :
399
 
else
400
 
  exitcode=1
401
 
  echo as_func_ret_success failed.
402
 
fi
403
 
 
404
 
if as_func_ret_failure; then
405
 
  exitcode=1
406
 
  echo as_func_ret_failure succeeded.
407
 
fi
408
 
 
409
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410
 
  :
411
 
else
412
 
  exitcode=1
413
 
  echo positional parameters were not saved.
414
 
fi
415
 
 
416
 
test \$exitcode = 0") || {
417
 
  echo No shell found that supports shell functions.
418
 
  echo Please tell autoconf@gnu.org about your system,
419
 
  echo including any error possibly output before this
420
 
  echo message
421
 
}
422
 
 
423
 
 
424
 
 
425
 
  as_lineno_1=$LINENO
426
 
  as_lineno_2=$LINENO
427
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
428
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
 
 
430
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
432
 
  # line-number line after each line using $LINENO; the second 'sed'
433
 
  # does the real work.  The second script uses 'N' to pair each
434
 
  # line-number line with the line containing $LINENO, and appends
435
 
  # trailing '-' during substitution so that $LINENO is not a special
436
 
  # case at line end.
437
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
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: nettle-bugs@lists.lysator.liu.se 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
 
370
  if test "$4"; then
 
371
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
373
  fi
 
374
  $as_echo "$as_me: error: $2" >&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.  :-)
440
429
  sed -n '
441
430
    p
442
431
    /[$]LINENO/=
453
442
      s/-\n.*//
454
443
    ' >$as_me.lineno &&
455
444
  chmod +x "$as_me.lineno" ||
456
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
 
   { (exit 1); exit 1; }; }
 
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458
446
 
459
447
  # Don't try to exec as it changes $[0], causing all sort of problems
460
448
  # (the dirname of $[0] is not the place where we might find the
464
452
  exit
465
453
}
466
454
 
467
 
 
468
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
 
  as_dirname=dirname
470
 
else
471
 
  as_dirname=false
472
 
fi
473
 
 
474
455
ECHO_C= ECHO_N= ECHO_T=
475
 
case `echo -n x` in
 
456
case `echo -n x` in #(((((
476
457
-n*)
477
 
  case `echo 'x\c'` in
 
458
  case `echo 'xy\c'` in
478
459
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479
 
  *)   ECHO_C='\c';;
 
460
  xy)  ECHO_C='\c';;
 
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
462
       ECHO_T=' ';;
480
463
  esac;;
481
464
*)
482
465
  ECHO_N='-n';;
483
466
esac
484
467
 
485
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487
 
  as_expr=expr
488
 
else
489
 
  as_expr=false
490
 
fi
491
 
 
492
468
rm -f conf$$ conf$$.exe conf$$.file
493
469
if test -d conf$$.dir; then
494
470
  rm -f conf$$.dir/conf$$.file
495
471
else
496
472
  rm -f conf$$.dir
497
 
  mkdir conf$$.dir
 
473
  mkdir conf$$.dir 2>/dev/null
498
474
fi
499
 
echo >conf$$.file
500
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
501
 
  as_ln_s='ln -s'
502
 
  # ... but there are two gotchas:
503
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
 
  # In both cases, we have to default to `cp -p'.
506
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
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
507
487
    as_ln_s='cp -p'
508
 
elif ln conf$$.file conf$$ 2>/dev/null; then
509
 
  as_ln_s=ln
 
488
  fi
510
489
else
511
490
  as_ln_s='cp -p'
512
491
fi
514
493
rmdir conf$$.dir 2>/dev/null
515
494
 
516
495
if mkdir -p . 2>/dev/null; then
517
 
  as_mkdir_p=:
 
496
  as_mkdir_p='mkdir -p "$as_dir"'
518
497
else
519
498
  test -d ./-p && rmdir ./-p
520
499
  as_mkdir_p=false
531
510
  as_test_x='
532
511
    eval sh -c '\''
533
512
      if test -d "$1"; then
534
 
        test -d "$1/.";
 
513
        test -d "$1/.";
535
514
      else
536
 
        case $1 in
537
 
        -*)set "./$1";;
 
515
        case $1 in #(
 
516
        -*)set "./$1";;
538
517
        esac;
539
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
518
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
540
519
        ???[sx]*):;;*)false;;esac;fi
541
520
    '\'' sh
542
521
  '
550
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
530
 
552
531
 
553
 
 
554
 
exec 7<&0 </dev/null 6>&1
 
532
test -n "$DJDIR" || exec 7<&0 </dev/null
 
533
exec 6>&1
555
534
 
556
535
# Name of the host.
557
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
536
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
558
537
# so uname gets run too.
559
538
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
539
 
569
548
subdirs=
570
549
MFLAGS=
571
550
MAKEFLAGS=
572
 
SHELL=${CONFIG_SHELL-/bin/sh}
573
551
 
574
552
# Identity of this package.
575
553
PACKAGE_NAME='nettle'
576
554
PACKAGE_TARNAME='nettle'
577
 
PACKAGE_VERSION='2.1'
578
 
PACKAGE_STRING='nettle 2.1'
 
555
PACKAGE_VERSION='2.4'
 
556
PACKAGE_STRING='nettle 2.4'
579
557
PACKAGE_BUGREPORT='nettle-bugs@lists.lysator.liu.se'
 
558
PACKAGE_URL=''
580
559
 
581
560
ac_unique_file="arcfour.c"
582
561
# Factoring default headers for most tests.
615
594
# include <unistd.h>
616
595
#endif"
617
596
 
618
 
ac_subst_vars='SHELL
 
597
ac_subst_vars='LTLIBOBJS
 
598
BENCH_LIBS
 
599
OPENSSL_LIBFLAGS
 
600
IF_SHARED
 
601
IF_HOGWEED
 
602
LIBOBJS
 
603
ALLOCA
 
604
EGREP
 
605
GREP
 
606
CPP
 
607
M4
 
608
LIBHOGWEED_LIBS
 
609
LIBHOGWEED_LINK
 
610
LIBHOGWEED_FILE
 
611
LIBHOGWEED_SONAME
 
612
LIBHOGWEED_FORLINK
 
613
LIBHOGWEED_MINOR
 
614
LIBHOGWEED_MAJOR
 
615
LIBNETTLE_LIBS
 
616
LIBNETTLE_LINK
 
617
LIBNETTLE_FILE
 
618
LIBNETTLE_SONAME
 
619
LIBNETTLE_FORLINK
 
620
LIBNETTLE_MINOR
 
621
LIBNETTLE_MAJOR
 
622
SHLIBCFLAGS
 
623
ASM_ALIGN_LOG
 
624
ASM_MARK_NOEXEC_STACK
 
625
ASM_TYPE_FUNCTION
 
626
ASM_ELF_STYLE
 
627
ASM_SYMBOL_PREFIX
 
628
CCPIC_MAYBE
 
629
CCPIC
 
630
DEP_PROCESS
 
631
DEP_FLAGS
 
632
DEP_INCLUDE
 
633
MKDIR_P
 
634
INSTALL_DATA
 
635
INSTALL_SCRIPT
 
636
INSTALL_PROGRAM
 
637
OBJDUMP
 
638
NM
 
639
RANLIB
 
640
SET_MAKE
 
641
CXX_TESTS
 
642
ac_ct_CXX
 
643
CXXFLAGS
 
644
CXX
 
645
OBJEXT
 
646
EXEEXT
 
647
ac_ct_CC
 
648
CPPFLAGS
 
649
LDFLAGS
 
650
CFLAGS
 
651
CC
 
652
host_os
 
653
host_vendor
 
654
host_cpu
 
655
host
 
656
build_os
 
657
build_vendor
 
658
build_cpu
 
659
build
 
660
target_alias
 
661
host_alias
 
662
build_alias
 
663
LIBS
 
664
ECHO_T
 
665
ECHO_N
 
666
ECHO_C
 
667
DEFS
 
668
mandir
 
669
localedir
 
670
libdir
 
671
psdir
 
672
pdfdir
 
673
dvidir
 
674
htmldir
 
675
infodir
 
676
docdir
 
677
oldincludedir
 
678
includedir
 
679
localstatedir
 
680
sharedstatedir
 
681
sysconfdir
 
682
datadir
 
683
datarootdir
 
684
libexecdir
 
685
sbindir
 
686
bindir
 
687
program_transform_name
 
688
prefix
 
689
exec_prefix
 
690
PACKAGE_URL
 
691
PACKAGE_BUGREPORT
 
692
PACKAGE_STRING
 
693
PACKAGE_VERSION
 
694
PACKAGE_TARNAME
 
695
PACKAGE_NAME
619
696
PATH_SEPARATOR
620
 
PACKAGE_NAME
621
 
PACKAGE_TARNAME
622
 
PACKAGE_VERSION
623
 
PACKAGE_STRING
624
 
PACKAGE_BUGREPORT
625
 
exec_prefix
626
 
prefix
627
 
program_transform_name
628
 
bindir
629
 
sbindir
630
 
libexecdir
631
 
datarootdir
632
 
datadir
633
 
sysconfdir
634
 
sharedstatedir
635
 
localstatedir
636
 
includedir
637
 
oldincludedir
638
 
docdir
639
 
infodir
640
 
htmldir
641
 
dvidir
642
 
pdfdir
643
 
psdir
644
 
libdir
645
 
localedir
646
 
mandir
647
 
DEFS
648
 
ECHO_C
649
 
ECHO_N
650
 
ECHO_T
651
 
LIBS
652
 
build_alias
653
 
host_alias
654
 
target_alias
655
 
build
656
 
build_cpu
657
 
build_vendor
658
 
build_os
659
 
host
660
 
host_cpu
661
 
host_vendor
662
 
host_os
663
 
CC
664
 
CFLAGS
665
 
LDFLAGS
666
 
CPPFLAGS
667
 
ac_ct_CC
668
 
EXEEXT
669
 
OBJEXT
670
 
CXX
671
 
CXXFLAGS
672
 
ac_ct_CXX
673
 
CXX_TESTS
674
 
SET_MAKE
675
 
RANLIB
676
 
NM
677
 
OBJDUMP
678
 
INSTALL_PROGRAM
679
 
INSTALL_SCRIPT
680
 
INSTALL_DATA
681
 
DEP_INCLUDE
682
 
DEP_FLAGS
683
 
DEP_PROCESS
684
 
CCPIC
685
 
CCPIC_MAYBE
686
 
ASM_SYMBOL_PREFIX
687
 
ASM_ELF_STYLE
688
 
ASM_TYPE_FUNCTION
689
 
ASM_MARK_NOEXEC_STACK
690
 
ASM_ALIGN_LOG
691
 
SHLIBCFLAGS
692
 
LIBNETTLE_MAJOR
693
 
LIBNETTLE_MINOR
694
 
LIBNETTLE_FORLINK
695
 
LIBNETTLE_SONAME
696
 
LIBNETTLE_FILE
697
 
LIBNETTLE_LINK
698
 
LIBNETTLE_LIBS
699
 
LIBHOGWEED_MAJOR
700
 
LIBHOGWEED_MINOR
701
 
LIBHOGWEED_FORLINK
702
 
LIBHOGWEED_SONAME
703
 
LIBHOGWEED_FILE
704
 
LIBHOGWEED_LINK
705
 
LIBHOGWEED_LIBS
706
 
M4
707
 
CPP
708
 
GREP
709
 
EGREP
710
 
ALLOCA
711
 
LIBOBJS
712
 
IF_HOGWEED
713
 
IF_SHARED
714
 
OPENSSL_LIBFLAGS
715
 
LTLIBOBJS'
 
697
SHELL'
716
698
ac_subst_files=''
 
699
ac_user_opts='
 
700
enable_option_checking
 
701
with_include_path
 
702
with_lib_path
 
703
enable_public_key
 
704
enable_assembler
 
705
enable_shared
 
706
enable_pic
 
707
enable_openssl
 
708
enable_gcov
 
709
enable_dependency_tracking
 
710
'
717
711
      ac_precious_vars='build_alias
718
712
host_alias
719
713
target_alias
731
725
# Initialize some variables set by options.
732
726
ac_init_help=
733
727
ac_init_version=false
 
728
ac_unrecognized_opts=
 
729
ac_unrecognized_sep=
734
730
# The variables have the same names as the options, with
735
731
# dashes changed to underlines.
736
732
cache_file=/dev/null
786
782
  fi
787
783
 
788
784
  case $ac_option in
789
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790
 
  *)    ac_optarg=yes ;;
 
785
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
786
  *=)   ac_optarg= ;;
 
787
  *)    ac_optarg=yes ;;
791
788
  esac
792
789
 
793
790
  # Accept the important Cygnus configure options, so we can diagnose typos.
829
826
    datarootdir=$ac_optarg ;;
830
827
 
831
828
  -disable-* | --disable-*)
832
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
829
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833
830
    # Reject names that are not valid shell variable names.
834
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836
 
   { (exit 1); exit 1; }; }
837
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838
 
    eval enable_$ac_feature=no ;;
 
831
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
832
      as_fn_error $? "invalid feature name: $ac_useropt"
 
833
    ac_useropt_orig=$ac_useropt
 
834
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
835
    case $ac_user_opts in
 
836
      *"
 
837
"enable_$ac_useropt"
 
838
"*) ;;
 
839
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
840
         ac_unrecognized_sep=', ';;
 
841
    esac
 
842
    eval enable_$ac_useropt=no ;;
839
843
 
840
844
  -docdir | --docdir | --docdi | --doc | --do)
841
845
    ac_prev=docdir ;;
848
852
    dvidir=$ac_optarg ;;
849
853
 
850
854
  -enable-* | --enable-*)
851
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
855
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852
856
    # Reject names that are not valid shell variable names.
853
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855
 
   { (exit 1); exit 1; }; }
856
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
857
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
858
      as_fn_error $? "invalid feature name: $ac_useropt"
 
859
    ac_useropt_orig=$ac_useropt
 
860
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
861
    case $ac_user_opts in
 
862
      *"
 
863
"enable_$ac_useropt"
 
864
"*) ;;
 
865
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
866
         ac_unrecognized_sep=', ';;
 
867
    esac
 
868
    eval enable_$ac_useropt=\$ac_optarg ;;
858
869
 
859
870
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860
871
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045
1056
    ac_init_version=: ;;
1046
1057
 
1047
1058
  -with-* | --with-*)
1048
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1059
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049
1060
    # Reject names that are not valid shell variable names.
1050
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1052
 
   { (exit 1); exit 1; }; }
1053
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054
 
    eval with_$ac_package=\$ac_optarg ;;
 
1061
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1062
      as_fn_error $? "invalid package name: $ac_useropt"
 
1063
    ac_useropt_orig=$ac_useropt
 
1064
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1065
    case $ac_user_opts in
 
1066
      *"
 
1067
"with_$ac_useropt"
 
1068
"*) ;;
 
1069
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1070
         ac_unrecognized_sep=', ';;
 
1071
    esac
 
1072
    eval with_$ac_useropt=\$ac_optarg ;;
1055
1073
 
1056
1074
  -without-* | --without-*)
1057
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1075
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058
1076
    # Reject names that are not valid shell variable names.
1059
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1061
 
   { (exit 1); exit 1; }; }
1062
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063
 
    eval with_$ac_package=no ;;
 
1077
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1078
      as_fn_error $? "invalid package name: $ac_useropt"
 
1079
    ac_useropt_orig=$ac_useropt
 
1080
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1081
    case $ac_user_opts in
 
1082
      *"
 
1083
"with_$ac_useropt"
 
1084
"*) ;;
 
1085
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1086
         ac_unrecognized_sep=', ';;
 
1087
    esac
 
1088
    eval with_$ac_useropt=no ;;
1064
1089
 
1065
1090
  --x)
1066
1091
    # Obsolete; use --with-x.
1080
1105
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081
1106
    x_libraries=$ac_optarg ;;
1082
1107
 
1083
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1084
 
Try \`$0 --help' for more information." >&2
1085
 
   { (exit 1); exit 1; }; }
 
1108
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1109
Try \`$0 --help' for more information"
1086
1110
    ;;
1087
1111
 
1088
1112
  *=*)
1089
1113
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090
1114
    # Reject names that are not valid shell variable names.
1091
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1092
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1093
 
   { (exit 1); exit 1; }; }
 
1115
    case $ac_envvar in #(
 
1116
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1117
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1118
    esac
1094
1119
    eval $ac_envvar=\$ac_optarg
1095
1120
    export $ac_envvar ;;
1096
1121
 
1097
1122
  *)
1098
1123
    # FIXME: should be removed in autoconf 3.0.
1099
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1124
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100
1125
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1126
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102
1127
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103
1128
    ;;
1104
1129
 
1107
1132
 
1108
1133
if test -n "$ac_prev"; then
1109
1134
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1111
 
   { (exit 1); exit 1; }; }
1112
 
fi
1113
 
 
1114
 
# Be sure to have absolute directory names.
 
1135
  as_fn_error $? "missing argument to $ac_option"
 
1136
fi
 
1137
 
 
1138
if test -n "$ac_unrecognized_opts"; then
 
1139
  case $enable_option_checking in
 
1140
    no) ;;
 
1141
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1142
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1143
  esac
 
1144
fi
 
1145
 
 
1146
# Check all directory arguments for consistency.
1115
1147
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116
1148
                datadir sysconfdir sharedstatedir localstatedir includedir \
1117
1149
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118
1150
                libdir localedir mandir
1119
1151
do
1120
1152
  eval ac_val=\$$ac_var
 
1153
  # Remove trailing slashes.
 
1154
  case $ac_val in
 
1155
    */ )
 
1156
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1157
      eval $ac_var=\$ac_val;;
 
1158
  esac
 
1159
  # Be sure to have absolute directory names.
1121
1160
  case $ac_val in
1122
1161
    [\\/$]* | ?:[\\/]* )  continue;;
1123
1162
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1124
1163
  esac
1125
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126
 
   { (exit 1); exit 1; }; }
 
1164
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1127
1165
done
1128
1166
 
1129
1167
# There might be people who depend on the old broken behavior: `$host'
1137
1175
if test "x$host_alias" != x; then
1138
1176
  if test "x$build_alias" = x; then
1139
1177
    cross_compiling=maybe
1140
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141
 
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1178
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1179
    If a cross compiler is detected then cross compile mode will be used" >&2
1142
1180
  elif test "x$build_alias" != "x$host_alias"; then
1143
1181
    cross_compiling=yes
1144
1182
  fi
1153
1191
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154
1192
ac_ls_di=`ls -di .` &&
1155
1193
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1157
 
   { (exit 1); exit 1; }; }
 
1194
  as_fn_error $? "working directory cannot be determined"
1158
1195
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1160
 
   { (exit 1); exit 1; }; }
 
1196
  as_fn_error $? "pwd does not report name of working directory"
1161
1197
 
1162
1198
 
1163
1199
# Find the source files, if location was not specified.
1164
1200
if test -z "$srcdir"; then
1165
1201
  ac_srcdir_defaulted=yes
1166
1202
  # Try the directory containing this script, then the parent directory.
1167
 
  ac_confdir=`$as_dirname -- "$0" ||
1168
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169
 
         X"$0" : 'X\(//\)[^/]' \| \
1170
 
         X"$0" : 'X\(//\)$' \| \
1171
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1172
 
echo X"$0" |
 
1203
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1204
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1205
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1206
         X"$as_myself" : 'X\(//\)$' \| \
 
1207
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1208
$as_echo X"$as_myself" |
1173
1209
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1174
1210
            s//\1/
1175
1211
            q
1196
1232
fi
1197
1233
if test ! -r "$srcdir/$ac_unique_file"; then
1198
1234
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1200
 
   { (exit 1); exit 1; }; }
 
1235
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1201
1236
fi
1202
1237
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1203
1238
ac_abs_confdir=`(
1204
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205
 
   { (exit 1); exit 1; }; }
 
1239
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1206
1240
        pwd)`
1207
1241
# When building in place, set srcdir=.
1208
1242
if test "$ac_abs_confdir" = "$ac_pwd"; then
1228
1262
  # Omit some internal or obsolete options to make the list less imposing.
1229
1263
  # This message is too long to be a string in the A/UX 3.1 sh.
1230
1264
  cat <<_ACEOF
1231
 
\`configure' configures nettle 2.1 to adapt to many kinds of systems.
 
1265
\`configure' configures nettle 2.4 to adapt to many kinds of systems.
1232
1266
 
1233
1267
Usage: $0 [OPTION]... [VAR=VALUE]...
1234
1268
 
1242
1276
      --help=short        display options specific to this package
1243
1277
      --help=recursive    display the short help of all the included packages
1244
1278
  -V, --version           display version information and exit
1245
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1279
  -q, --quiet, --silent   do not print \`checking ...' messages
1246
1280
      --cache-file=FILE   cache test results in FILE [disabled]
1247
1281
  -C, --config-cache      alias for \`--cache-file=config.cache'
1248
1282
  -n, --no-create         do not create output files
1250
1284
 
1251
1285
Installation directories:
1252
1286
  --prefix=PREFIX         install architecture-independent files in PREFIX
1253
 
                          [$ac_default_prefix]
 
1287
                          [$ac_default_prefix]
1254
1288
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1255
 
                          [PREFIX]
 
1289
                          [PREFIX]
1256
1290
 
1257
1291
By default, \`make install' will install all the files in
1258
1292
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1262
1296
For better control, use the options below.
1263
1297
 
1264
1298
Fine tuning of the installation directories:
1265
 
  --bindir=DIR           user executables [EPREFIX/bin]
1266
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1267
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1268
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1269
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1270
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1271
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1272
 
  --includedir=DIR       C header files [PREFIX/include]
1273
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1274
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1275
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1276
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1277
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1278
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1279
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/nettle]
1280
 
  --htmldir=DIR          html documentation [DOCDIR]
1281
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1282
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1283
 
  --psdir=DIR            ps documentation [DOCDIR]
 
1299
  --bindir=DIR            user executables [EPREFIX/bin]
 
1300
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1301
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1302
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1303
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1304
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1305
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1306
  --includedir=DIR        C header files [PREFIX/include]
 
1307
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1308
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1309
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1310
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1311
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1312
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1313
  --docdir=DIR            documentation root [DATAROOTDIR/doc/nettle]
 
1314
  --htmldir=DIR           html documentation [DOCDIR]
 
1315
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1316
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1317
  --psdir=DIR             ps documentation [DOCDIR]
1284
1318
_ACEOF
1285
1319
 
1286
1320
  cat <<\_ACEOF
1293
1327
 
1294
1328
if test -n "$ac_init_help"; then
1295
1329
  case $ac_init_help in
1296
 
     short | recursive ) echo "Configuration of nettle 2.1:";;
 
1330
     short | recursive ) echo "Configuration of nettle 2.4:";;
1297
1331
   esac
1298
1332
  cat <<\_ACEOF
1299
1333
 
1300
1334
Optional Features:
 
1335
  --disable-option-checking  ignore unrecognized --enable/--with options
1301
1336
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1302
1337
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1303
1338
  --disable-public-key    Disable public key algorithms
1306
1341
  --disable-pic           Do not try to compile library files as position
1307
1342
                          independent code
1308
1343
  --disable-openssl       Do not include openssl glue in the benchmark program
 
1344
  --enable-gcov           Instrument for gcov (requires a modern gcc)
1309
1345
  --disable-dependency-tracking
1310
1346
                          Disable dependency tracking. Dependency tracking
1311
1347
                          doesn't work with BSD make
1324
1360
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1325
1361
              nonstandard directory <lib dir>
1326
1362
  LIBS        libraries to pass to the linker, e.g. -l<library>
1327
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1363
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1328
1364
              you have headers in a nonstandard directory <include dir>
1329
1365
  CXX         C++ compiler command
1330
1366
  CXXFLAGS    C++ compiler flags
1341
1377
if test "$ac_init_help" = "recursive"; then
1342
1378
  # If there are subdirs, report their specific --help.
1343
1379
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1344
 
    test -d "$ac_dir" || continue
 
1380
    test -d "$ac_dir" ||
 
1381
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1382
      continue
1345
1383
    ac_builddir=.
1346
1384
 
1347
1385
case "$ac_dir" in
1348
1386
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349
1387
*)
1350
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1388
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1351
1389
  # A ".." for each directory in $ac_dir_suffix.
1352
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1390
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1353
1391
  case $ac_top_builddir_sub in
1354
1392
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355
1393
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385
1423
      echo &&
1386
1424
      $SHELL "$ac_srcdir/configure" --help=recursive
1387
1425
    else
1388
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1426
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389
1427
    fi || ac_status=$?
1390
1428
    cd "$ac_pwd" || { ac_status=$?; break; }
1391
1429
  done
1394
1432
test -n "$ac_init_help" && exit $ac_status
1395
1433
if $ac_init_version; then
1396
1434
  cat <<\_ACEOF
1397
 
nettle configure 2.1
1398
 
generated by GNU Autoconf 2.61
 
1435
nettle configure 2.4
 
1436
generated by GNU Autoconf 2.67
1399
1437
 
1400
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1401
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1438
Copyright (C) 2010 Free Software Foundation, Inc.
1402
1439
This configure script is free software; the Free Software Foundation
1403
1440
gives unlimited permission to copy, distribute and modify it.
1404
1441
_ACEOF
1405
1442
  exit
1406
1443
fi
 
1444
 
 
1445
## ------------------------ ##
 
1446
## Autoconf initialization. ##
 
1447
## ------------------------ ##
 
1448
 
 
1449
# ac_fn_c_try_compile LINENO
 
1450
# --------------------------
 
1451
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1452
ac_fn_c_try_compile ()
 
1453
{
 
1454
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1455
  rm -f conftest.$ac_objext
 
1456
  if { { ac_try="$ac_compile"
 
1457
case "(($ac_try" in
 
1458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1459
  *) ac_try_echo=$ac_try;;
 
1460
esac
 
1461
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1462
$as_echo "$ac_try_echo"; } >&5
 
1463
  (eval "$ac_compile") 2>conftest.err
 
1464
  ac_status=$?
 
1465
  if test -s conftest.err; then
 
1466
    grep -v '^ *+' conftest.err >conftest.er1
 
1467
    cat conftest.er1 >&5
 
1468
    mv -f conftest.er1 conftest.err
 
1469
  fi
 
1470
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1471
  test $ac_status = 0; } && {
 
1472
         test -z "$ac_c_werror_flag" ||
 
1473
         test ! -s conftest.err
 
1474
       } && test -s conftest.$ac_objext; then :
 
1475
  ac_retval=0
 
1476
else
 
1477
  $as_echo "$as_me: failed program was:" >&5
 
1478
sed 's/^/| /' conftest.$ac_ext >&5
 
1479
 
 
1480
        ac_retval=1
 
1481
fi
 
1482
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1483
  as_fn_set_status $ac_retval
 
1484
 
 
1485
} # ac_fn_c_try_compile
 
1486
 
 
1487
# ac_fn_cxx_try_compile LINENO
 
1488
# ----------------------------
 
1489
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1490
ac_fn_cxx_try_compile ()
 
1491
{
 
1492
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1493
  rm -f conftest.$ac_objext
 
1494
  if { { ac_try="$ac_compile"
 
1495
case "(($ac_try" in
 
1496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1497
  *) ac_try_echo=$ac_try;;
 
1498
esac
 
1499
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1500
$as_echo "$ac_try_echo"; } >&5
 
1501
  (eval "$ac_compile") 2>conftest.err
 
1502
  ac_status=$?
 
1503
  if test -s conftest.err; then
 
1504
    grep -v '^ *+' conftest.err >conftest.er1
 
1505
    cat conftest.er1 >&5
 
1506
    mv -f conftest.er1 conftest.err
 
1507
  fi
 
1508
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1509
  test $ac_status = 0; } && {
 
1510
         test -z "$ac_cxx_werror_flag" ||
 
1511
         test ! -s conftest.err
 
1512
       } && test -s conftest.$ac_objext; then :
 
1513
  ac_retval=0
 
1514
else
 
1515
  $as_echo "$as_me: failed program was:" >&5
 
1516
sed 's/^/| /' conftest.$ac_ext >&5
 
1517
 
 
1518
        ac_retval=1
 
1519
fi
 
1520
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1521
  as_fn_set_status $ac_retval
 
1522
 
 
1523
} # ac_fn_cxx_try_compile
 
1524
 
 
1525
# ac_fn_c_try_cpp LINENO
 
1526
# ----------------------
 
1527
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1528
ac_fn_c_try_cpp ()
 
1529
{
 
1530
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1531
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1532
case "(($ac_try" in
 
1533
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1534
  *) ac_try_echo=$ac_try;;
 
1535
esac
 
1536
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1537
$as_echo "$ac_try_echo"; } >&5
 
1538
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1539
  ac_status=$?
 
1540
  if test -s conftest.err; then
 
1541
    grep -v '^ *+' conftest.err >conftest.er1
 
1542
    cat conftest.er1 >&5
 
1543
    mv -f conftest.er1 conftest.err
 
1544
  fi
 
1545
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1546
  test $ac_status = 0; } > conftest.i && {
 
1547
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1548
         test ! -s conftest.err
 
1549
       }; then :
 
1550
  ac_retval=0
 
1551
else
 
1552
  $as_echo "$as_me: failed program was:" >&5
 
1553
sed 's/^/| /' conftest.$ac_ext >&5
 
1554
 
 
1555
    ac_retval=1
 
1556
fi
 
1557
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1558
  as_fn_set_status $ac_retval
 
1559
 
 
1560
} # ac_fn_c_try_cpp
 
1561
 
 
1562
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1563
# -------------------------------------------
 
1564
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1565
# variable VAR accordingly.
 
1566
ac_fn_c_check_type ()
 
1567
{
 
1568
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1569
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1570
$as_echo_n "checking for $2... " >&6; }
 
1571
if eval "test \"\${$3+set}\"" = set; then :
 
1572
  $as_echo_n "(cached) " >&6
 
1573
else
 
1574
  eval "$3=no"
 
1575
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1576
/* end confdefs.h.  */
 
1577
$4
 
1578
int
 
1579
main ()
 
1580
{
 
1581
if (sizeof ($2))
 
1582
         return 0;
 
1583
  ;
 
1584
  return 0;
 
1585
}
 
1586
_ACEOF
 
1587
if ac_fn_c_try_compile "$LINENO"; then :
 
1588
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1589
/* end confdefs.h.  */
 
1590
$4
 
1591
int
 
1592
main ()
 
1593
{
 
1594
if (sizeof (($2)))
 
1595
            return 0;
 
1596
  ;
 
1597
  return 0;
 
1598
}
 
1599
_ACEOF
 
1600
if ac_fn_c_try_compile "$LINENO"; then :
 
1601
 
 
1602
else
 
1603
  eval "$3=yes"
 
1604
fi
 
1605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1606
fi
 
1607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1608
fi
 
1609
eval ac_res=\$$3
 
1610
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1611
$as_echo "$ac_res" >&6; }
 
1612
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1613
 
 
1614
} # ac_fn_c_check_type
 
1615
 
 
1616
# ac_fn_c_try_run LINENO
 
1617
# ----------------------
 
1618
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1619
# that executables *can* be run.
 
1620
ac_fn_c_try_run ()
 
1621
{
 
1622
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1623
  if { { ac_try="$ac_link"
 
1624
case "(($ac_try" in
 
1625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1626
  *) ac_try_echo=$ac_try;;
 
1627
esac
 
1628
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1629
$as_echo "$ac_try_echo"; } >&5
 
1630
  (eval "$ac_link") 2>&5
 
1631
  ac_status=$?
 
1632
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1633
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1634
  { { case "(($ac_try" in
 
1635
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1636
  *) ac_try_echo=$ac_try;;
 
1637
esac
 
1638
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1639
$as_echo "$ac_try_echo"; } >&5
 
1640
  (eval "$ac_try") 2>&5
 
1641
  ac_status=$?
 
1642
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1643
  test $ac_status = 0; }; }; then :
 
1644
  ac_retval=0
 
1645
else
 
1646
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1647
       $as_echo "$as_me: failed program was:" >&5
 
1648
sed 's/^/| /' conftest.$ac_ext >&5
 
1649
 
 
1650
       ac_retval=$ac_status
 
1651
fi
 
1652
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1653
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1654
  as_fn_set_status $ac_retval
 
1655
 
 
1656
} # ac_fn_c_try_run
 
1657
 
 
1658
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1659
# -------------------------------------------------------
 
1660
# Tests whether HEADER exists and can be compiled using the include files in
 
1661
# INCLUDES, setting the cache variable VAR accordingly.
 
1662
ac_fn_c_check_header_compile ()
 
1663
{
 
1664
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1665
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1666
$as_echo_n "checking for $2... " >&6; }
 
1667
if eval "test \"\${$3+set}\"" = set; then :
 
1668
  $as_echo_n "(cached) " >&6
 
1669
else
 
1670
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1671
/* end confdefs.h.  */
 
1672
$4
 
1673
#include <$2>
 
1674
_ACEOF
 
1675
if ac_fn_c_try_compile "$LINENO"; then :
 
1676
  eval "$3=yes"
 
1677
else
 
1678
  eval "$3=no"
 
1679
fi
 
1680
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1681
fi
 
1682
eval ac_res=\$$3
 
1683
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1684
$as_echo "$ac_res" >&6; }
 
1685
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1686
 
 
1687
} # ac_fn_c_check_header_compile
 
1688
 
 
1689
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
1690
# --------------------------------------------
 
1691
# Tries to find the compile-time value of EXPR in a program that includes
 
1692
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
1693
# computed
 
1694
ac_fn_c_compute_int ()
 
1695
{
 
1696
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1697
  if test "$cross_compiling" = yes; then
 
1698
    # Depending upon the size, compute the lo and hi bounds.
 
1699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1700
/* end confdefs.h.  */
 
1701
$4
 
1702
int
 
1703
main ()
 
1704
{
 
1705
static int test_array [1 - 2 * !(($2) >= 0)];
 
1706
test_array [0] = 0
 
1707
 
 
1708
  ;
 
1709
  return 0;
 
1710
}
 
1711
_ACEOF
 
1712
if ac_fn_c_try_compile "$LINENO"; then :
 
1713
  ac_lo=0 ac_mid=0
 
1714
  while :; do
 
1715
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1716
/* end confdefs.h.  */
 
1717
$4
 
1718
int
 
1719
main ()
 
1720
{
 
1721
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
1722
test_array [0] = 0
 
1723
 
 
1724
  ;
 
1725
  return 0;
 
1726
}
 
1727
_ACEOF
 
1728
if ac_fn_c_try_compile "$LINENO"; then :
 
1729
  ac_hi=$ac_mid; break
 
1730
else
 
1731
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
1732
                        if test $ac_lo -le $ac_mid; then
 
1733
                          ac_lo= ac_hi=
 
1734
                          break
 
1735
                        fi
 
1736
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
1737
fi
 
1738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1739
  done
 
1740
else
 
1741
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1742
/* end confdefs.h.  */
 
1743
$4
 
1744
int
 
1745
main ()
 
1746
{
 
1747
static int test_array [1 - 2 * !(($2) < 0)];
 
1748
test_array [0] = 0
 
1749
 
 
1750
  ;
 
1751
  return 0;
 
1752
}
 
1753
_ACEOF
 
1754
if ac_fn_c_try_compile "$LINENO"; then :
 
1755
  ac_hi=-1 ac_mid=-1
 
1756
  while :; do
 
1757
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1758
/* end confdefs.h.  */
 
1759
$4
 
1760
int
 
1761
main ()
 
1762
{
 
1763
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
1764
test_array [0] = 0
 
1765
 
 
1766
  ;
 
1767
  return 0;
 
1768
}
 
1769
_ACEOF
 
1770
if ac_fn_c_try_compile "$LINENO"; then :
 
1771
  ac_lo=$ac_mid; break
 
1772
else
 
1773
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
1774
                        if test $ac_mid -le $ac_hi; then
 
1775
                          ac_lo= ac_hi=
 
1776
                          break
 
1777
                        fi
 
1778
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
1779
fi
 
1780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1781
  done
 
1782
else
 
1783
  ac_lo= ac_hi=
 
1784
fi
 
1785
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1786
fi
 
1787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1788
# Binary search between lo and hi bounds.
 
1789
while test "x$ac_lo" != "x$ac_hi"; do
 
1790
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
1791
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1792
/* end confdefs.h.  */
 
1793
$4
 
1794
int
 
1795
main ()
 
1796
{
 
1797
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
1798
test_array [0] = 0
 
1799
 
 
1800
  ;
 
1801
  return 0;
 
1802
}
 
1803
_ACEOF
 
1804
if ac_fn_c_try_compile "$LINENO"; then :
 
1805
  ac_hi=$ac_mid
 
1806
else
 
1807
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
1808
fi
 
1809
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1810
done
 
1811
case $ac_lo in #((
 
1812
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
1813
'') ac_retval=1 ;;
 
1814
esac
 
1815
  else
 
1816
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1817
/* end confdefs.h.  */
 
1818
$4
 
1819
static long int longval () { return $2; }
 
1820
static unsigned long int ulongval () { return $2; }
 
1821
#include <stdio.h>
 
1822
#include <stdlib.h>
 
1823
int
 
1824
main ()
 
1825
{
 
1826
 
 
1827
  FILE *f = fopen ("conftest.val", "w");
 
1828
  if (! f)
 
1829
    return 1;
 
1830
  if (($2) < 0)
 
1831
    {
 
1832
      long int i = longval ();
 
1833
      if (i != ($2))
 
1834
        return 1;
 
1835
      fprintf (f, "%ld", i);
 
1836
    }
 
1837
  else
 
1838
    {
 
1839
      unsigned long int i = ulongval ();
 
1840
      if (i != ($2))
 
1841
        return 1;
 
1842
      fprintf (f, "%lu", i);
 
1843
    }
 
1844
  /* Do not output a trailing newline, as this causes \r\n confusion
 
1845
     on some platforms.  */
 
1846
  return ferror (f) || fclose (f) != 0;
 
1847
 
 
1848
  ;
 
1849
  return 0;
 
1850
}
 
1851
_ACEOF
 
1852
if ac_fn_c_try_run "$LINENO"; then :
 
1853
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
1854
else
 
1855
  ac_retval=1
 
1856
fi
 
1857
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
1858
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
1859
rm -f conftest.val
 
1860
 
 
1861
  fi
 
1862
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1863
  as_fn_set_status $ac_retval
 
1864
 
 
1865
} # ac_fn_c_compute_int
 
1866
 
 
1867
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1868
# -------------------------------------------------------
 
1869
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1870
# the include files in INCLUDES and setting the cache variable VAR
 
1871
# accordingly.
 
1872
ac_fn_c_check_header_mongrel ()
 
1873
{
 
1874
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1875
  if eval "test \"\${$3+set}\"" = set; then :
 
1876
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1877
$as_echo_n "checking for $2... " >&6; }
 
1878
if eval "test \"\${$3+set}\"" = set; then :
 
1879
  $as_echo_n "(cached) " >&6
 
1880
fi
 
1881
eval ac_res=\$$3
 
1882
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1883
$as_echo "$ac_res" >&6; }
 
1884
else
 
1885
  # Is the header compilable?
 
1886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1887
$as_echo_n "checking $2 usability... " >&6; }
 
1888
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1889
/* end confdefs.h.  */
 
1890
$4
 
1891
#include <$2>
 
1892
_ACEOF
 
1893
if ac_fn_c_try_compile "$LINENO"; then :
 
1894
  ac_header_compiler=yes
 
1895
else
 
1896
  ac_header_compiler=no
 
1897
fi
 
1898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1900
$as_echo "$ac_header_compiler" >&6; }
 
1901
 
 
1902
# Is the header present?
 
1903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1904
$as_echo_n "checking $2 presence... " >&6; }
 
1905
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1906
/* end confdefs.h.  */
 
1907
#include <$2>
 
1908
_ACEOF
 
1909
if ac_fn_c_try_cpp "$LINENO"; then :
 
1910
  ac_header_preproc=yes
 
1911
else
 
1912
  ac_header_preproc=no
 
1913
fi
 
1914
rm -f conftest.err conftest.i conftest.$ac_ext
 
1915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1916
$as_echo "$ac_header_preproc" >&6; }
 
1917
 
 
1918
# So?  What about this header?
 
1919
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1920
  yes:no: )
 
1921
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1922
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1923
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1924
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1925
    ;;
 
1926
  no:yes:* )
 
1927
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1928
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1929
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1930
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1931
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1932
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1933
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1934
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1935
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1936
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1937
( $as_echo "## ----------------------------------------------- ##
 
1938
## Report this to nettle-bugs@lists.lysator.liu.se ##
 
1939
## ----------------------------------------------- ##"
 
1940
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1941
    ;;
 
1942
esac
 
1943
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1944
$as_echo_n "checking for $2... " >&6; }
 
1945
if eval "test \"\${$3+set}\"" = set; then :
 
1946
  $as_echo_n "(cached) " >&6
 
1947
else
 
1948
  eval "$3=\$ac_header_compiler"
 
1949
fi
 
1950
eval ac_res=\$$3
 
1951
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1952
$as_echo "$ac_res" >&6; }
 
1953
fi
 
1954
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1955
 
 
1956
} # ac_fn_c_check_header_mongrel
 
1957
 
 
1958
# ac_fn_c_try_link LINENO
 
1959
# -----------------------
 
1960
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1961
ac_fn_c_try_link ()
 
1962
{
 
1963
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1964
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1965
  if { { ac_try="$ac_link"
 
1966
case "(($ac_try" in
 
1967
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1968
  *) ac_try_echo=$ac_try;;
 
1969
esac
 
1970
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1971
$as_echo "$ac_try_echo"; } >&5
 
1972
  (eval "$ac_link") 2>conftest.err
 
1973
  ac_status=$?
 
1974
  if test -s conftest.err; then
 
1975
    grep -v '^ *+' conftest.err >conftest.er1
 
1976
    cat conftest.er1 >&5
 
1977
    mv -f conftest.er1 conftest.err
 
1978
  fi
 
1979
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1980
  test $ac_status = 0; } && {
 
1981
         test -z "$ac_c_werror_flag" ||
 
1982
         test ! -s conftest.err
 
1983
       } && test -s conftest$ac_exeext && {
 
1984
         test "$cross_compiling" = yes ||
 
1985
         $as_test_x conftest$ac_exeext
 
1986
       }; then :
 
1987
  ac_retval=0
 
1988
else
 
1989
  $as_echo "$as_me: failed program was:" >&5
 
1990
sed 's/^/| /' conftest.$ac_ext >&5
 
1991
 
 
1992
        ac_retval=1
 
1993
fi
 
1994
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1995
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1996
  # interfere with the next link command; also delete a directory that is
 
1997
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1998
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1999
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2000
  as_fn_set_status $ac_retval
 
2001
 
 
2002
} # ac_fn_c_try_link
 
2003
 
 
2004
# ac_fn_c_check_func LINENO FUNC VAR
 
2005
# ----------------------------------
 
2006
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2007
ac_fn_c_check_func ()
 
2008
{
 
2009
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2010
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2011
$as_echo_n "checking for $2... " >&6; }
 
2012
if eval "test \"\${$3+set}\"" = set; then :
 
2013
  $as_echo_n "(cached) " >&6
 
2014
else
 
2015
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2016
/* end confdefs.h.  */
 
2017
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2018
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2019
#define $2 innocuous_$2
 
2020
 
 
2021
/* System header to define __stub macros and hopefully few prototypes,
 
2022
    which can conflict with char $2 (); below.
 
2023
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2024
    <limits.h> exists even on freestanding compilers.  */
 
2025
 
 
2026
#ifdef __STDC__
 
2027
# include <limits.h>
 
2028
#else
 
2029
# include <assert.h>
 
2030
#endif
 
2031
 
 
2032
#undef $2
 
2033
 
 
2034
/* Override any GCC internal prototype to avoid an error.
 
2035
   Use char because int might match the return type of a GCC
 
2036
   builtin and then its argument prototype would still apply.  */
 
2037
#ifdef __cplusplus
 
2038
extern "C"
 
2039
#endif
 
2040
char $2 ();
 
2041
/* The GNU C library defines this for functions which it implements
 
2042
    to always fail with ENOSYS.  Some functions are actually named
 
2043
    something starting with __ and the normal name is an alias.  */
 
2044
#if defined __stub_$2 || defined __stub___$2
 
2045
choke me
 
2046
#endif
 
2047
 
 
2048
int
 
2049
main ()
 
2050
{
 
2051
return $2 ();
 
2052
  ;
 
2053
  return 0;
 
2054
}
 
2055
_ACEOF
 
2056
if ac_fn_c_try_link "$LINENO"; then :
 
2057
  eval "$3=yes"
 
2058
else
 
2059
  eval "$3=no"
 
2060
fi
 
2061
rm -f core conftest.err conftest.$ac_objext \
 
2062
    conftest$ac_exeext conftest.$ac_ext
 
2063
fi
 
2064
eval ac_res=\$$3
 
2065
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2066
$as_echo "$ac_res" >&6; }
 
2067
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2068
 
 
2069
} # ac_fn_c_check_func
1407
2070
cat >config.log <<_ACEOF
1408
2071
This file contains any messages produced by compilers while
1409
2072
running configure, to aid debugging if configure makes a mistake.
1410
2073
 
1411
 
It was created by nettle $as_me 2.1, which was
1412
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
2074
It was created by nettle $as_me 2.4, which was
 
2075
generated by GNU Autoconf 2.67.  Invocation command line was
1413
2076
 
1414
2077
  $ $0 $@
1415
2078
 
1445
2108
do
1446
2109
  IFS=$as_save_IFS
1447
2110
  test -z "$as_dir" && as_dir=.
1448
 
  echo "PATH: $as_dir"
1449
 
done
 
2111
    $as_echo "PATH: $as_dir"
 
2112
  done
1450
2113
IFS=$as_save_IFS
1451
2114
 
1452
2115
} >&5
1480
2143
    | -silent | --silent | --silen | --sile | --sil)
1481
2144
      continue ;;
1482
2145
    *\'*)
1483
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2146
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1484
2147
    esac
1485
2148
    case $ac_pass in
1486
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2149
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1487
2150
    2)
1488
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2151
      as_fn_append ac_configure_args1 " '$ac_arg'"
1489
2152
      if test $ac_must_keep_next = true; then
1490
2153
        ac_must_keep_next=false # Got value, back to normal.
1491
2154
      else
1501
2164
          -* ) ac_must_keep_next=true ;;
1502
2165
        esac
1503
2166
      fi
1504
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2167
      as_fn_append ac_configure_args " '$ac_arg'"
1505
2168
      ;;
1506
2169
    esac
1507
2170
  done
1508
2171
done
1509
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1510
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2172
{ ac_configure_args0=; unset ac_configure_args0;}
 
2173
{ ac_configure_args1=; unset ac_configure_args1;}
1511
2174
 
1512
2175
# When interrupted or exit'd, cleanup temporary files, and complete
1513
2176
# config.log.  We remove comments because anyway the quotes in there
1519
2182
  {
1520
2183
    echo
1521
2184
 
1522
 
    cat <<\_ASBOX
1523
 
## ---------------- ##
 
2185
    $as_echo "## ---------------- ##
1524
2186
## Cache variables. ##
1525
 
## ---------------- ##
1526
 
_ASBOX
 
2187
## ---------------- ##"
1527
2188
    echo
1528
2189
    # The following way of writing the cache mishandles newlines in values,
1529
2190
(
1532
2193
    case $ac_val in #(
1533
2194
    *${as_nl}*)
1534
2195
      case $ac_var in #(
1535
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1536
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
2196
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2197
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1537
2198
      esac
1538
2199
      case $ac_var in #(
1539
2200
      _ | IFS | as_nl) ;; #(
1540
 
      *) $as_unset $ac_var ;;
 
2201
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2202
      *) { eval $ac_var=; unset $ac_var;} ;;
1541
2203
      esac ;;
1542
2204
    esac
1543
2205
  done
1556
2218
)
1557
2219
    echo
1558
2220
 
1559
 
    cat <<\_ASBOX
1560
 
## ----------------- ##
 
2221
    $as_echo "## ----------------- ##
1561
2222
## Output variables. ##
1562
 
## ----------------- ##
1563
 
_ASBOX
 
2223
## ----------------- ##"
1564
2224
    echo
1565
2225
    for ac_var in $ac_subst_vars
1566
2226
    do
1567
2227
      eval ac_val=\$$ac_var
1568
2228
      case $ac_val in
1569
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2229
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1570
2230
      esac
1571
 
      echo "$ac_var='\''$ac_val'\''"
 
2231
      $as_echo "$ac_var='\''$ac_val'\''"
1572
2232
    done | sort
1573
2233
    echo
1574
2234
 
1575
2235
    if test -n "$ac_subst_files"; then
1576
 
      cat <<\_ASBOX
1577
 
## ------------------- ##
 
2236
      $as_echo "## ------------------- ##
1578
2237
## File substitutions. ##
1579
 
## ------------------- ##
1580
 
_ASBOX
 
2238
## ------------------- ##"
1581
2239
      echo
1582
2240
      for ac_var in $ac_subst_files
1583
2241
      do
1584
2242
        eval ac_val=\$$ac_var
1585
2243
        case $ac_val in
1586
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2244
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1587
2245
        esac
1588
 
        echo "$ac_var='\''$ac_val'\''"
 
2246
        $as_echo "$ac_var='\''$ac_val'\''"
1589
2247
      done | sort
1590
2248
      echo
1591
2249
    fi
1592
2250
 
1593
2251
    if test -s confdefs.h; then
1594
 
      cat <<\_ASBOX
1595
 
## ----------- ##
 
2252
      $as_echo "## ----------- ##
1596
2253
## confdefs.h. ##
1597
 
## ----------- ##
1598
 
_ASBOX
 
2254
## ----------- ##"
1599
2255
      echo
1600
2256
      cat confdefs.h
1601
2257
      echo
1602
2258
    fi
1603
2259
    test "$ac_signal" != 0 &&
1604
 
      echo "$as_me: caught signal $ac_signal"
1605
 
    echo "$as_me: exit $exit_status"
 
2260
      $as_echo "$as_me: caught signal $ac_signal"
 
2261
    $as_echo "$as_me: exit $exit_status"
1606
2262
  } >&5
1607
2263
  rm -f core *.core core.conftest.* &&
1608
2264
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1609
2265
    exit $exit_status
1610
2266
' 0
1611
2267
for ac_signal in 1 2 13 15; do
1612
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2268
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1613
2269
done
1614
2270
ac_signal=0
1615
2271
 
1616
2272
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1617
2273
rm -f -r conftest* confdefs.h
1618
2274
 
 
2275
$as_echo "/* confdefs.h */" > confdefs.h
 
2276
 
1619
2277
# Predefined preprocessor variables.
1620
2278
 
1621
2279
cat >>confdefs.h <<_ACEOF
1622
2280
#define PACKAGE_NAME "$PACKAGE_NAME"
1623
2281
_ACEOF
1624
2282
 
1625
 
 
1626
2283
cat >>confdefs.h <<_ACEOF
1627
2284
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1628
2285
_ACEOF
1629
2286
 
1630
 
 
1631
2287
cat >>confdefs.h <<_ACEOF
1632
2288
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1633
2289
_ACEOF
1634
2290
 
1635
 
 
1636
2291
cat >>confdefs.h <<_ACEOF
1637
2292
#define PACKAGE_STRING "$PACKAGE_STRING"
1638
2293
_ACEOF
1639
2294
 
1640
 
 
1641
2295
cat >>confdefs.h <<_ACEOF
1642
2296
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1643
2297
_ACEOF
1644
2298
 
 
2299
cat >>confdefs.h <<_ACEOF
 
2300
#define PACKAGE_URL "$PACKAGE_URL"
 
2301
_ACEOF
 
2302
 
1645
2303
 
1646
2304
# Let the site file select an alternate cache file if it wants to.
1647
 
# Prefer explicitly selected file to automatically selected ones.
 
2305
# Prefer an explicitly selected file to automatically selected ones.
 
2306
ac_site_file1=NONE
 
2307
ac_site_file2=NONE
1648
2308
if test -n "$CONFIG_SITE"; then
1649
 
  set x "$CONFIG_SITE"
 
2309
  # We do not want a PATH search for config.site.
 
2310
  case $CONFIG_SITE in #((
 
2311
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2312
    */*) ac_site_file1=$CONFIG_SITE;;
 
2313
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2314
  esac
1650
2315
elif test "x$prefix" != xNONE; then
1651
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
2316
  ac_site_file1=$prefix/share/config.site
 
2317
  ac_site_file2=$prefix/etc/config.site
1652
2318
else
1653
 
  set x "$ac_default_prefix/share/config.site" \
1654
 
        "$ac_default_prefix/etc/config.site"
 
2319
  ac_site_file1=$ac_default_prefix/share/config.site
 
2320
  ac_site_file2=$ac_default_prefix/etc/config.site
1655
2321
fi
1656
 
shift
1657
 
for ac_site_file
 
2322
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1658
2323
do
1659
 
  if test -r "$ac_site_file"; then
1660
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1661
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2324
  test "x$ac_site_file" = xNONE && continue
 
2325
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2326
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2327
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1662
2328
    sed 's/^/| /' "$ac_site_file" >&5
1663
 
    . "$ac_site_file"
 
2329
    . "$ac_site_file" \
 
2330
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2331
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2332
as_fn_error $? "failed to load site script $ac_site_file
 
2333
See \`config.log' for more details" "$LINENO" 5 ; }
1664
2334
  fi
1665
2335
done
1666
2336
 
1667
2337
if test -r "$cache_file"; then
1668
 
  # Some versions of bash will fail to source /dev/null (special
1669
 
  # files actually), so we avoid doing that.
1670
 
  if test -f "$cache_file"; then
1671
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1672
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2338
  # Some versions of bash will fail to source /dev/null (special files
 
2339
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2340
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2341
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2342
$as_echo "$as_me: loading cache $cache_file" >&6;}
1673
2343
    case $cache_file in
1674
2344
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1675
2345
      *)                      . "./$cache_file";;
1676
2346
    esac
1677
2347
  fi
1678
2348
else
1679
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1680
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2349
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2350
$as_echo "$as_me: creating cache $cache_file" >&6;}
1681
2351
  >$cache_file
1682
2352
fi
1683
2353
 
1691
2361
  eval ac_new_val=\$ac_env_${ac_var}_value
1692
2362
  case $ac_old_set,$ac_new_set in
1693
2363
    set,)
1694
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1695
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2364
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2365
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1696
2366
      ac_cache_corrupted=: ;;
1697
2367
    ,set)
1698
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1699
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2368
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2369
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1700
2370
      ac_cache_corrupted=: ;;
1701
2371
    ,);;
1702
2372
    *)
1703
2373
      if test "x$ac_old_val" != "x$ac_new_val"; then
1704
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1705
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1706
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1707
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1708
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1709
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1710
 
        ac_cache_corrupted=:
 
2374
        # differences in whitespace do not lead to failure.
 
2375
        ac_old_val_w=`echo x $ac_old_val`
 
2376
        ac_new_val_w=`echo x $ac_new_val`
 
2377
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2378
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2379
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2380
          ac_cache_corrupted=:
 
2381
        else
 
2382
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2383
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2384
          eval $ac_var=\$ac_old_val
 
2385
        fi
 
2386
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2387
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2388
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2389
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1711
2390
      fi;;
1712
2391
  esac
1713
2392
  # Pass precious variables to config.status.
1714
2393
  if test "$ac_new_set" = set; then
1715
2394
    case $ac_new_val in
1716
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2395
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1717
2396
    *) ac_arg=$ac_var=$ac_new_val ;;
1718
2397
    esac
1719
2398
    case " $ac_configure_args " in
1720
2399
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1721
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2400
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1722
2401
    esac
1723
2402
  fi
1724
2403
done
1725
2404
if $ac_cache_corrupted; then
1726
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1727
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1728
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1729
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1730
 
   { (exit 1); exit 1; }; }
 
2405
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2406
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2407
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2408
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2409
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1731
2410
fi
1732
 
 
1733
 
 
1734
 
 
1735
 
 
1736
 
 
1737
 
 
1738
 
 
1739
 
 
1740
 
 
1741
 
 
1742
 
 
1743
 
 
1744
 
 
1745
 
 
1746
 
 
1747
 
 
1748
 
 
1749
 
 
1750
 
 
1751
 
 
1752
 
 
1753
 
 
1754
 
 
1755
 
 
 
2411
## -------------------- ##
 
2412
## Main body of script. ##
 
2413
## -------------------- ##
1756
2414
 
1757
2415
ac_ext=c
1758
2416
ac_cpp='$CPP $CPPFLAGS'
1781
2439
  fi
1782
2440
done
1783
2441
if test -z "$ac_aux_dir"; then
1784
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1785
 
echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1786
 
   { (exit 1); exit 1; }; }
 
2442
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
1787
2443
fi
1788
2444
 
1789
2445
# These three variables are undocumented and unsupported,
1800
2456
 
1801
2457
 
1802
2458
LIBNETTLE_MAJOR=4
1803
 
LIBNETTLE_MINOR=0
 
2459
LIBNETTLE_MINOR=3
1804
2460
 
1805
2461
LIBHOGWEED_MAJOR=2
1806
 
LIBHOGWEED_MINOR=0
 
2462
LIBHOGWEED_MINOR=1
1807
2463
 
1808
2464
# Make sure we can run config.sub.
1809
2465
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1810
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1811
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1812
 
   { (exit 1); exit 1; }; }
 
2466
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1813
2467
 
1814
 
{ echo "$as_me:$LINENO: checking build system type" >&5
1815
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1816
 
if test "${ac_cv_build+set}" = set; then
1817
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2469
$as_echo_n "checking build system type... " >&6; }
 
2470
if test "${ac_cv_build+set}" = set; then :
 
2471
  $as_echo_n "(cached) " >&6
1818
2472
else
1819
2473
  ac_build_alias=$build_alias
1820
2474
test "x$ac_build_alias" = x &&
1821
2475
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1822
2476
test "x$ac_build_alias" = x &&
1823
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1824
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1825
 
   { (exit 1); exit 1; }; }
 
2477
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1826
2478
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1827
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1828
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1829
 
   { (exit 1); exit 1; }; }
 
2479
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1830
2480
 
1831
2481
fi
1832
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1833
 
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2483
$as_echo "$ac_cv_build" >&6; }
1834
2484
case $ac_cv_build in
1835
2485
*-*-*) ;;
1836
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1837
 
echo "$as_me: error: invalid value of canonical build" >&2;}
1838
 
   { (exit 1); exit 1; }; };;
 
2486
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
1839
2487
esac
1840
2488
build=$ac_cv_build
1841
2489
ac_save_IFS=$IFS; IFS='-'
1851
2499
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1852
2500
 
1853
2501
 
1854
 
{ echo "$as_me:$LINENO: checking host system type" >&5
1855
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1856
 
if test "${ac_cv_host+set}" = set; then
1857
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2503
$as_echo_n "checking host system type... " >&6; }
 
2504
if test "${ac_cv_host+set}" = set; then :
 
2505
  $as_echo_n "(cached) " >&6
1858
2506
else
1859
2507
  if test "x$host_alias" = x; then
1860
2508
  ac_cv_host=$ac_cv_build
1861
2509
else
1862
2510
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1863
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1864
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1865
 
   { (exit 1); exit 1; }; }
 
2511
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1866
2512
fi
1867
2513
 
1868
2514
fi
1869
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1870
 
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2516
$as_echo "$ac_cv_host" >&6; }
1871
2517
case $ac_cv_host in
1872
2518
*-*-*) ;;
1873
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1874
 
echo "$as_me: error: invalid value of canonical host" >&2;}
1875
 
   { (exit 1); exit 1; }; };;
 
2519
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
1876
2520
esac
1877
2521
host=$ac_cv_host
1878
2522
ac_save_IFS=$IFS; IFS='-'
1892
2536
# Command line options
1893
2537
 
1894
2538
# Check whether --with-include-path was given.
1895
 
if test "${with_include_path+set}" = set; then
 
2539
if test "${with_include_path+set}" = set; then :
1896
2540
  withval=$with_include_path;
1897
2541
else
1898
2542
  with_include_path=''
1905
2549
 
1906
2550
 
1907
2551
# Check whether --with-lib-path was given.
1908
 
if test "${with_lib_path+set}" = set; then
 
2552
if test "${with_lib_path+set}" = set; then :
1909
2553
  withval=$with_lib_path;
1910
2554
else
1911
2555
  with_lib_path=''
1917
2561
fi
1918
2562
 
1919
2563
# Check whether --enable-public-key was given.
1920
 
if test "${enable_public_key+set}" = set; then
 
2564
if test "${enable_public_key+set}" = set; then :
1921
2565
  enableval=$enable_public_key;
1922
2566
else
1923
2567
  enable_public_key=yes
1925
2569
 
1926
2570
 
1927
2571
# Check whether --enable-assembler was given.
1928
 
if test "${enable_assembler+set}" = set; then
 
2572
if test "${enable_assembler+set}" = set; then :
1929
2573
  enableval=$enable_assembler;
1930
2574
else
1931
2575
  enable_assembler=yes
1933
2577
 
1934
2578
 
1935
2579
# Check whether --enable-shared was given.
1936
 
if test "${enable_shared+set}" = set; then
 
2580
if test "${enable_shared+set}" = set; then :
1937
2581
  enableval=$enable_shared;
1938
2582
else
1939
2583
  enable_shared=no
1941
2585
 
1942
2586
 
1943
2587
# Check whether --enable-pic was given.
1944
 
if test "${enable_pic+set}" = set; then
 
2588
if test "${enable_pic+set}" = set; then :
1945
2589
  enableval=$enable_pic;
1946
2590
else
1947
2591
  enable_pic=yes
1949
2593
 
1950
2594
 
1951
2595
# Check whether --enable-openssl was given.
1952
 
if test "${enable_openssl+set}" = set; then
 
2596
if test "${enable_openssl+set}" = set; then :
1953
2597
  enableval=$enable_openssl;
1954
2598
else
1955
2599
  enable_openssl=yes
1956
2600
fi
1957
2601
 
1958
2602
 
1959
 
{ echo "$as_me:$LINENO: checking for -R flag" >&5
1960
 
echo $ECHO_N "checking for -R flag... $ECHO_C" >&6; }
 
2603
# Check whether --enable-gcov was given.
 
2604
if test "${enable_gcov+set}" = set; then :
 
2605
  enableval=$enable_gcov;
 
2606
else
 
2607
  enable_gcov=no
 
2608
fi
 
2609
 
 
2610
 
 
2611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -R flag" >&5
 
2612
$as_echo_n "checking for -R flag... " >&6; }
1961
2613
RPATHFLAG=''
1962
2614
case "$host_os" in
1963
2615
  osf1*)                RPATHFLAG="-rpath " ;;
1975
2627
esac
1976
2628
 
1977
2629
if test x$RPATHFLAG = x ; then
1978
 
  { echo "$as_me:$LINENO: result: none" >&5
1979
 
echo "${ECHO_T}none" >&6; }
 
2630
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
2631
$as_echo "none" >&6; }
1980
2632
else
1981
 
  { echo "$as_me:$LINENO: result: using $RPATHFLAG" >&5
1982
 
echo "${ECHO_T}using $RPATHFLAG" >&6; }
 
2633
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $RPATHFLAG" >&5
 
2634
$as_echo "using $RPATHFLAG" >&6; }
1983
2635
fi
1984
2636
 
1985
2637
RPATH_CANDIDATE_REAL_DIRS=''
1986
2638
RPATH_CANDIDATE_DIRS=''
1987
2639
 
1988
 
{ echo "$as_me:$LINENO: result: Searching for libraries" >&5
1989
 
echo "${ECHO_T}Searching for libraries" >&6; }
 
2640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Searching for libraries" >&5
 
2641
$as_echo "Searching for libraries" >&6; }
1990
2642
 
1991
2643
for d in `echo $with_lib_path | sed 's/:/ /g'` \
1992
2644
    `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
1993
2645
    /usr/local/lib /sw/local/lib /sw/lib \
1994
2646
    /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib ; do
1995
 
  { echo "$as_me:$LINENO: checking $d" >&5
1996
 
echo $ECHO_N "checking $d... $ECHO_C" >&6; }
 
2647
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $d" >&5
 
2648
$as_echo_n "checking $d... " >&6; }
1997
2649
ac_exists=no
1998
2650
if test -d "$d/." ; then
1999
2651
  ac_real_dir=`cd $d && pwd`
2007
2659
      fi
2008
2660
    done
2009
2661
    if test $ac_found = yes ; then
2010
 
      { echo "$as_me:$LINENO: result: already added" >&5
2011
 
echo "${ECHO_T}already added" >&6; }
 
2662
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: already added" >&5
 
2663
$as_echo "already added" >&6; }
2012
2664
    else
2013
 
      { echo "$as_me:$LINENO: result: added" >&5
2014
 
echo "${ECHO_T}added" >&6; }
 
2665
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: added" >&5
 
2666
$as_echo "added" >&6; }
2015
2667
      # LDFLAGS="$LDFLAGS -L $d"
2016
2668
      RPATH_CANDIDATE_REAL_DIRS="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
2017
2669
      RPATH_CANDIDATE_DIRS="$d $RPATH_CANDIDATE_DIRS"
2019
2671
  fi
2020
2672
fi
2021
2673
if test $ac_exists = no ; then
2022
 
  { echo "$as_me:$LINENO: result: not found" >&5
2023
 
echo "${ECHO_T}not found" >&6; }
 
2674
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
 
2675
$as_echo "not found" >&6; }
2024
2676
fi
2025
2677
 
2026
2678
done
2035
2687
if test -n "$ac_tool_prefix"; then
2036
2688
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2037
2689
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2038
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2039
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040
 
if test "${ac_cv_prog_CC+set}" = set; then
2041
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2691
$as_echo_n "checking for $ac_word... " >&6; }
 
2692
if test "${ac_cv_prog_CC+set}" = set; then :
 
2693
  $as_echo_n "(cached) " >&6
2042
2694
else
2043
2695
  if test -n "$CC"; then
2044
2696
  ac_cv_prog_CC="$CC" # Let the user override the test.
2048
2700
do
2049
2701
  IFS=$as_save_IFS
2050
2702
  test -z "$as_dir" && as_dir=.
2051
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2703
    for ac_exec_ext in '' $ac_executable_extensions; do
2052
2704
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053
2705
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2054
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2706
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2055
2707
    break 2
2056
2708
  fi
2057
2709
done
2058
 
done
 
2710
  done
2059
2711
IFS=$as_save_IFS
2060
2712
 
2061
2713
fi
2062
2714
fi
2063
2715
CC=$ac_cv_prog_CC
2064
2716
if test -n "$CC"; then
2065
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2066
 
echo "${ECHO_T}$CC" >&6; }
 
2717
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2718
$as_echo "$CC" >&6; }
2067
2719
else
2068
 
  { echo "$as_me:$LINENO: result: no" >&5
2069
 
echo "${ECHO_T}no" >&6; }
 
2720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2721
$as_echo "no" >&6; }
2070
2722
fi
2071
2723
 
2072
2724
 
2075
2727
  ac_ct_CC=$CC
2076
2728
  # Extract the first word of "gcc", so it can be a program name with args.
2077
2729
set dummy gcc; ac_word=$2
2078
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2079
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2731
$as_echo_n "checking for $ac_word... " >&6; }
 
2732
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2733
  $as_echo_n "(cached) " >&6
2082
2734
else
2083
2735
  if test -n "$ac_ct_CC"; then
2084
2736
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088
2740
do
2089
2741
  IFS=$as_save_IFS
2090
2742
  test -z "$as_dir" && as_dir=.
2091
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2743
    for ac_exec_ext in '' $ac_executable_extensions; do
2092
2744
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093
2745
    ac_cv_prog_ac_ct_CC="gcc"
2094
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2746
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2095
2747
    break 2
2096
2748
  fi
2097
2749
done
2098
 
done
 
2750
  done
2099
2751
IFS=$as_save_IFS
2100
2752
 
2101
2753
fi
2102
2754
fi
2103
2755
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104
2756
if test -n "$ac_ct_CC"; then
2105
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2757
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2758
$as_echo "$ac_ct_CC" >&6; }
2107
2759
else
2108
 
  { echo "$as_me:$LINENO: result: no" >&5
2109
 
echo "${ECHO_T}no" >&6; }
 
2760
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2761
$as_echo "no" >&6; }
2110
2762
fi
2111
2763
 
2112
2764
  if test "x$ac_ct_CC" = x; then
2114
2766
  else
2115
2767
    case $cross_compiling:$ac_tool_warned in
2116
2768
yes:)
2117
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2118
 
whose name does not start with the host triplet.  If you think this
2119
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2120
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2121
 
whose name does not start with the host triplet.  If you think this
2122
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2769
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2770
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2123
2771
ac_tool_warned=yes ;;
2124
2772
esac
2125
2773
    CC=$ac_ct_CC
2132
2780
          if test -n "$ac_tool_prefix"; then
2133
2781
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2134
2782
set dummy ${ac_tool_prefix}cc; ac_word=$2
2135
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2136
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137
 
if test "${ac_cv_prog_CC+set}" = set; then
2138
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2784
$as_echo_n "checking for $ac_word... " >&6; }
 
2785
if test "${ac_cv_prog_CC+set}" = set; then :
 
2786
  $as_echo_n "(cached) " >&6
2139
2787
else
2140
2788
  if test -n "$CC"; then
2141
2789
  ac_cv_prog_CC="$CC" # Let the user override the test.
2145
2793
do
2146
2794
  IFS=$as_save_IFS
2147
2795
  test -z "$as_dir" && as_dir=.
2148
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2796
    for ac_exec_ext in '' $ac_executable_extensions; do
2149
2797
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150
2798
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2151
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2799
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2152
2800
    break 2
2153
2801
  fi
2154
2802
done
2155
 
done
 
2803
  done
2156
2804
IFS=$as_save_IFS
2157
2805
 
2158
2806
fi
2159
2807
fi
2160
2808
CC=$ac_cv_prog_CC
2161
2809
if test -n "$CC"; then
2162
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2163
 
echo "${ECHO_T}$CC" >&6; }
 
2810
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2811
$as_echo "$CC" >&6; }
2164
2812
else
2165
 
  { echo "$as_me:$LINENO: result: no" >&5
2166
 
echo "${ECHO_T}no" >&6; }
 
2813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2814
$as_echo "no" >&6; }
2167
2815
fi
2168
2816
 
2169
2817
 
2172
2820
if test -z "$CC"; then
2173
2821
  # Extract the first word of "cc", so it can be a program name with args.
2174
2822
set dummy cc; ac_word=$2
2175
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177
 
if test "${ac_cv_prog_CC+set}" = set; then
2178
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2824
$as_echo_n "checking for $ac_word... " >&6; }
 
2825
if test "${ac_cv_prog_CC+set}" = set; then :
 
2826
  $as_echo_n "(cached) " >&6
2179
2827
else
2180
2828
  if test -n "$CC"; then
2181
2829
  ac_cv_prog_CC="$CC" # Let the user override the test.
2186
2834
do
2187
2835
  IFS=$as_save_IFS
2188
2836
  test -z "$as_dir" && as_dir=.
2189
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2837
    for ac_exec_ext in '' $ac_executable_extensions; do
2190
2838
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191
2839
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192
2840
       ac_prog_rejected=yes
2193
2841
       continue
2194
2842
     fi
2195
2843
    ac_cv_prog_CC="cc"
2196
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2844
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2197
2845
    break 2
2198
2846
  fi
2199
2847
done
2200
 
done
 
2848
  done
2201
2849
IFS=$as_save_IFS
2202
2850
 
2203
2851
if test $ac_prog_rejected = yes; then
2216
2864
fi
2217
2865
CC=$ac_cv_prog_CC
2218
2866
if test -n "$CC"; then
2219
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2220
 
echo "${ECHO_T}$CC" >&6; }
 
2867
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2868
$as_echo "$CC" >&6; }
2221
2869
else
2222
 
  { echo "$as_me:$LINENO: result: no" >&5
2223
 
echo "${ECHO_T}no" >&6; }
 
2870
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2871
$as_echo "no" >&6; }
2224
2872
fi
2225
2873
 
2226
2874
 
2231
2879
  do
2232
2880
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2233
2881
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2234
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2235
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236
 
if test "${ac_cv_prog_CC+set}" = set; then
2237
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2883
$as_echo_n "checking for $ac_word... " >&6; }
 
2884
if test "${ac_cv_prog_CC+set}" = set; then :
 
2885
  $as_echo_n "(cached) " >&6
2238
2886
else
2239
2887
  if test -n "$CC"; then
2240
2888
  ac_cv_prog_CC="$CC" # Let the user override the test.
2244
2892
do
2245
2893
  IFS=$as_save_IFS
2246
2894
  test -z "$as_dir" && as_dir=.
2247
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2895
    for ac_exec_ext in '' $ac_executable_extensions; do
2248
2896
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249
2897
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2250
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2898
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2251
2899
    break 2
2252
2900
  fi
2253
2901
done
2254
 
done
 
2902
  done
2255
2903
IFS=$as_save_IFS
2256
2904
 
2257
2905
fi
2258
2906
fi
2259
2907
CC=$ac_cv_prog_CC
2260
2908
if test -n "$CC"; then
2261
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2262
 
echo "${ECHO_T}$CC" >&6; }
 
2909
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2910
$as_echo "$CC" >&6; }
2263
2911
else
2264
 
  { echo "$as_me:$LINENO: result: no" >&5
2265
 
echo "${ECHO_T}no" >&6; }
 
2912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2913
$as_echo "no" >&6; }
2266
2914
fi
2267
2915
 
2268
2916
 
2275
2923
do
2276
2924
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2277
2925
set dummy $ac_prog; ac_word=$2
2278
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2279
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2927
$as_echo_n "checking for $ac_word... " >&6; }
 
2928
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2929
  $as_echo_n "(cached) " >&6
2282
2930
else
2283
2931
  if test -n "$ac_ct_CC"; then
2284
2932
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2288
2936
do
2289
2937
  IFS=$as_save_IFS
2290
2938
  test -z "$as_dir" && as_dir=.
2291
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2939
    for ac_exec_ext in '' $ac_executable_extensions; do
2292
2940
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293
2941
    ac_cv_prog_ac_ct_CC="$ac_prog"
2294
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2942
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2295
2943
    break 2
2296
2944
  fi
2297
2945
done
2298
 
done
 
2946
  done
2299
2947
IFS=$as_save_IFS
2300
2948
 
2301
2949
fi
2302
2950
fi
2303
2951
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304
2952
if test -n "$ac_ct_CC"; then
2305
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2953
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2954
$as_echo "$ac_ct_CC" >&6; }
2307
2955
else
2308
 
  { echo "$as_me:$LINENO: result: no" >&5
2309
 
echo "${ECHO_T}no" >&6; }
 
2956
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2957
$as_echo "no" >&6; }
2310
2958
fi
2311
2959
 
2312
2960
 
2318
2966
  else
2319
2967
    case $cross_compiling:$ac_tool_warned in
2320
2968
yes:)
2321
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2322
 
whose name does not start with the host triplet.  If you think this
2323
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2324
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2325
 
whose name does not start with the host triplet.  If you think this
2326
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2970
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2327
2971
ac_tool_warned=yes ;;
2328
2972
esac
2329
2973
    CC=$ac_ct_CC
2333
2977
fi
2334
2978
 
2335
2979
 
2336
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2337
 
See \`config.log' for more details." >&5
2338
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2339
 
See \`config.log' for more details." >&2;}
2340
 
   { (exit 1); exit 1; }; }
 
2980
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2981
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2982
as_fn_error $? "no acceptable C compiler found in \$PATH
 
2983
See \`config.log' for more details" "$LINENO" 5 ; }
2341
2984
 
2342
2985
# Provide some information about the compiler.
2343
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
2344
 
ac_compiler=`set X $ac_compile; echo $2`
2345
 
{ (ac_try="$ac_compiler --version >&5"
2346
 
case "(($ac_try" in
2347
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348
 
  *) ac_try_echo=$ac_try;;
2349
 
esac
2350
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351
 
  (eval "$ac_compiler --version >&5") 2>&5
2352
 
  ac_status=$?
2353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354
 
  (exit $ac_status); }
2355
 
{ (ac_try="$ac_compiler -v >&5"
2356
 
case "(($ac_try" in
2357
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358
 
  *) ac_try_echo=$ac_try;;
2359
 
esac
2360
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361
 
  (eval "$ac_compiler -v >&5") 2>&5
2362
 
  ac_status=$?
2363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364
 
  (exit $ac_status); }
2365
 
{ (ac_try="$ac_compiler -V >&5"
2366
 
case "(($ac_try" in
2367
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368
 
  *) ac_try_echo=$ac_try;;
2369
 
esac
2370
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371
 
  (eval "$ac_compiler -V >&5") 2>&5
2372
 
  ac_status=$?
2373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374
 
  (exit $ac_status); }
 
2986
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
2987
set X $ac_compile
 
2988
ac_compiler=$2
 
2989
for ac_option in --version -v -V -qversion; do
 
2990
  { { ac_try="$ac_compiler $ac_option >&5"
 
2991
case "(($ac_try" in
 
2992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2993
  *) ac_try_echo=$ac_try;;
 
2994
esac
 
2995
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2996
$as_echo "$ac_try_echo"; } >&5
 
2997
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
2998
  ac_status=$?
 
2999
  if test -s conftest.err; then
 
3000
    sed '10a\
 
3001
... rest of stderr output deleted ...
 
3002
         10q' conftest.err >conftest.er1
 
3003
    cat conftest.er1 >&5
 
3004
  fi
 
3005
  rm -f conftest.er1 conftest.err
 
3006
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3007
  test $ac_status = 0; }
 
3008
done
2375
3009
 
2376
 
cat >conftest.$ac_ext <<_ACEOF
2377
 
/* confdefs.h.  */
2378
 
_ACEOF
2379
 
cat confdefs.h >>conftest.$ac_ext
2380
 
cat >>conftest.$ac_ext <<_ACEOF
 
3010
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381
3011
/* end confdefs.h.  */
2382
3012
 
2383
3013
int
2389
3019
}
2390
3020
_ACEOF
2391
3021
ac_clean_files_save=$ac_clean_files
2392
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3022
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2393
3023
# Try to create an executable without -o first, disregard a.out.
2394
3024
# It will help us diagnose broken compilers, and finding out an intuition
2395
3025
# of exeext.
2396
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2397
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2398
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2399
 
#
2400
 
# List of possible output files, starting from the most likely.
2401
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2402
 
# only as a last resort.  b.out is created by i960 compilers.
2403
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2404
 
#
2405
 
# The IRIX 6 linker writes into existing files which may not be
2406
 
# executable, retaining their permissions.  Remove them first so a
2407
 
# subsequent execution test works.
 
3026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3027
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3028
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3029
 
 
3030
# The possible output files:
 
3031
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3032
 
2408
3033
ac_rmfiles=
2409
3034
for ac_file in $ac_files
2410
3035
do
2411
3036
  case $ac_file in
2412
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3037
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2413
3038
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2414
3039
  esac
2415
3040
done
2416
3041
rm -f $ac_rmfiles
2417
3042
 
2418
 
if { (ac_try="$ac_link_default"
 
3043
if { { ac_try="$ac_link_default"
2419
3044
case "(($ac_try" in
2420
3045
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421
3046
  *) ac_try_echo=$ac_try;;
2422
3047
esac
2423
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3048
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3049
$as_echo "$ac_try_echo"; } >&5
2424
3050
  (eval "$ac_link_default") 2>&5
2425
3051
  ac_status=$?
2426
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427
 
  (exit $ac_status); }; then
 
3052
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3053
  test $ac_status = 0; }; then :
2428
3054
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2429
3055
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2430
3056
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2434
3060
do
2435
3061
  test -f "$ac_file" || continue
2436
3062
  case $ac_file in
2437
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3063
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2438
3064
        ;;
2439
3065
    [ab].out )
2440
3066
        # We found the default executable, but exeext='' is most
2441
3067
        # certainly right.
2442
3068
        break;;
2443
3069
    *.* )
2444
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3070
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2445
3071
        then :; else
2446
3072
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447
3073
        fi
2460
3086
else
2461
3087
  ac_file=''
2462
3088
fi
2463
 
 
2464
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2465
 
echo "${ECHO_T}$ac_file" >&6; }
2466
 
if test -z "$ac_file"; then
2467
 
  echo "$as_me: failed program was:" >&5
 
3089
if test -z "$ac_file"; then :
 
3090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3091
$as_echo "no" >&6; }
 
3092
$as_echo "$as_me: failed program was:" >&5
2468
3093
sed 's/^/| /' conftest.$ac_ext >&5
2469
3094
 
2470
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2471
 
See \`config.log' for more details." >&5
2472
 
echo "$as_me: error: C compiler cannot create executables
2473
 
See \`config.log' for more details." >&2;}
2474
 
   { (exit 77); exit 77; }; }
 
3095
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3096
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3097
as_fn_error 77 "C compiler cannot create executables
 
3098
See \`config.log' for more details" "$LINENO" 5 ; }
 
3099
else
 
3100
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3101
$as_echo "yes" >&6; }
2475
3102
fi
2476
 
 
 
3103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3104
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3106
$as_echo "$ac_file" >&6; }
2477
3107
ac_exeext=$ac_cv_exeext
2478
3108
 
2479
 
# Check that the compiler produces executables we can run.  If not, either
2480
 
# the compiler is broken, or we cross compile.
2481
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2482
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2483
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2484
 
# If not cross compiling, check that we can run a simple program.
2485
 
if test "$cross_compiling" != yes; then
2486
 
  if { ac_try='./$ac_file'
2487
 
  { (case "(($ac_try" in
2488
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489
 
  *) ac_try_echo=$ac_try;;
2490
 
esac
2491
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492
 
  (eval "$ac_try") 2>&5
2493
 
  ac_status=$?
2494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495
 
  (exit $ac_status); }; }; then
2496
 
    cross_compiling=no
2497
 
  else
2498
 
    if test "$cross_compiling" = maybe; then
2499
 
        cross_compiling=yes
2500
 
    else
2501
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2502
 
If you meant to cross compile, use \`--host'.
2503
 
See \`config.log' for more details." >&5
2504
 
echo "$as_me: error: cannot run C compiled programs.
2505
 
If you meant to cross compile, use \`--host'.
2506
 
See \`config.log' for more details." >&2;}
2507
 
   { (exit 1); exit 1; }; }
2508
 
    fi
2509
 
  fi
2510
 
fi
2511
 
{ echo "$as_me:$LINENO: result: yes" >&5
2512
 
echo "${ECHO_T}yes" >&6; }
2513
 
 
2514
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3109
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2515
3110
ac_clean_files=$ac_clean_files_save
2516
 
# Check that the compiler produces executables we can run.  If not, either
2517
 
# the compiler is broken, or we cross compile.
2518
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2519
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2520
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2521
 
echo "${ECHO_T}$cross_compiling" >&6; }
2522
 
 
2523
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2524
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2525
 
if { (ac_try="$ac_link"
 
3111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3112
$as_echo_n "checking for suffix of executables... " >&6; }
 
3113
if { { ac_try="$ac_link"
2526
3114
case "(($ac_try" in
2527
3115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528
3116
  *) ac_try_echo=$ac_try;;
2529
3117
esac
2530
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3118
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3119
$as_echo "$ac_try_echo"; } >&5
2531
3120
  (eval "$ac_link") 2>&5
2532
3121
  ac_status=$?
2533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534
 
  (exit $ac_status); }; then
 
3122
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3123
  test $ac_status = 0; }; then :
2535
3124
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2536
3125
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2537
3126
# work properly (i.e., refer to `conftest.exe'), while it won't with
2539
3128
for ac_file in conftest.exe conftest conftest.*; do
2540
3129
  test -f "$ac_file" || continue
2541
3130
  case $ac_file in
2542
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3131
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2543
3132
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2544
3133
          break;;
2545
3134
    * ) break;;
2546
3135
  esac
2547
3136
done
2548
3137
else
2549
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2550
 
See \`config.log' for more details." >&5
2551
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2552
 
See \`config.log' for more details." >&2;}
2553
 
   { (exit 1); exit 1; }; }
 
3138
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3139
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3140
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3141
See \`config.log' for more details" "$LINENO" 5 ; }
2554
3142
fi
2555
 
 
2556
 
rm -f conftest$ac_cv_exeext
2557
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2558
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3143
rm -f conftest conftest$ac_cv_exeext
 
3144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3145
$as_echo "$ac_cv_exeext" >&6; }
2559
3146
 
2560
3147
rm -f conftest.$ac_ext
2561
3148
EXEEXT=$ac_cv_exeext
2562
3149
ac_exeext=$EXEEXT
2563
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2564
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2565
 
if test "${ac_cv_objext+set}" = set; then
2566
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3150
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3151
/* end confdefs.h.  */
 
3152
#include <stdio.h>
 
3153
int
 
3154
main ()
 
3155
{
 
3156
FILE *f = fopen ("conftest.out", "w");
 
3157
 return ferror (f) || fclose (f) != 0;
 
3158
 
 
3159
  ;
 
3160
  return 0;
 
3161
}
 
3162
_ACEOF
 
3163
ac_clean_files="$ac_clean_files conftest.out"
 
3164
# Check that the compiler produces executables we can run.  If not, either
 
3165
# the compiler is broken, or we cross compile.
 
3166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3167
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3168
if test "$cross_compiling" != yes; then
 
3169
  { { ac_try="$ac_link"
 
3170
case "(($ac_try" in
 
3171
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3172
  *) ac_try_echo=$ac_try;;
 
3173
esac
 
3174
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3175
$as_echo "$ac_try_echo"; } >&5
 
3176
  (eval "$ac_link") 2>&5
 
3177
  ac_status=$?
 
3178
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3179
  test $ac_status = 0; }
 
3180
  if { ac_try='./conftest$ac_cv_exeext'
 
3181
  { { case "(($ac_try" in
 
3182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3183
  *) ac_try_echo=$ac_try;;
 
3184
esac
 
3185
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3186
$as_echo "$ac_try_echo"; } >&5
 
3187
  (eval "$ac_try") 2>&5
 
3188
  ac_status=$?
 
3189
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3190
  test $ac_status = 0; }; }; then
 
3191
    cross_compiling=no
 
3192
  else
 
3193
    if test "$cross_compiling" = maybe; then
 
3194
        cross_compiling=yes
 
3195
    else
 
3196
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3197
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3198
as_fn_error $? "cannot run C compiled programs.
 
3199
If you meant to cross compile, use \`--host'.
 
3200
See \`config.log' for more details" "$LINENO" 5 ; }
 
3201
    fi
 
3202
  fi
 
3203
fi
 
3204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3205
$as_echo "$cross_compiling" >&6; }
 
3206
 
 
3207
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3208
ac_clean_files=$ac_clean_files_save
 
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3210
$as_echo_n "checking for suffix of object files... " >&6; }
 
3211
if test "${ac_cv_objext+set}" = set; then :
 
3212
  $as_echo_n "(cached) " >&6
2567
3213
else
2568
 
  cat >conftest.$ac_ext <<_ACEOF
2569
 
/* confdefs.h.  */
2570
 
_ACEOF
2571
 
cat confdefs.h >>conftest.$ac_ext
2572
 
cat >>conftest.$ac_ext <<_ACEOF
 
3214
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573
3215
/* end confdefs.h.  */
2574
3216
 
2575
3217
int
2581
3223
}
2582
3224
_ACEOF
2583
3225
rm -f conftest.o conftest.obj
2584
 
if { (ac_try="$ac_compile"
 
3226
if { { ac_try="$ac_compile"
2585
3227
case "(($ac_try" in
2586
3228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587
3229
  *) ac_try_echo=$ac_try;;
2588
3230
esac
2589
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3231
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3232
$as_echo "$ac_try_echo"; } >&5
2590
3233
  (eval "$ac_compile") 2>&5
2591
3234
  ac_status=$?
2592
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593
 
  (exit $ac_status); }; then
 
3235
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3236
  test $ac_status = 0; }; then :
2594
3237
  for ac_file in conftest.o conftest.obj conftest.*; do
2595
3238
  test -f "$ac_file" || continue;
2596
3239
  case $ac_file in
2597
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3240
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2598
3241
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2599
3242
       break;;
2600
3243
  esac
2601
3244
done
2602
3245
else
2603
 
  echo "$as_me: failed program was:" >&5
 
3246
  $as_echo "$as_me: failed program was:" >&5
2604
3247
sed 's/^/| /' conftest.$ac_ext >&5
2605
3248
 
2606
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2607
 
See \`config.log' for more details." >&5
2608
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2609
 
See \`config.log' for more details." >&2;}
2610
 
   { (exit 1); exit 1; }; }
 
3249
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3250
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3251
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3252
See \`config.log' for more details" "$LINENO" 5 ; }
2611
3253
fi
2612
 
 
2613
3254
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2614
3255
fi
2615
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2616
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3257
$as_echo "$ac_cv_objext" >&6; }
2617
3258
OBJEXT=$ac_cv_objext
2618
3259
ac_objext=$OBJEXT
2619
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2620
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2621
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2622
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3261
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3262
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3263
  $as_echo_n "(cached) " >&6
2623
3264
else
2624
 
  cat >conftest.$ac_ext <<_ACEOF
2625
 
/* confdefs.h.  */
2626
 
_ACEOF
2627
 
cat confdefs.h >>conftest.$ac_ext
2628
 
cat >>conftest.$ac_ext <<_ACEOF
 
3265
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629
3266
/* end confdefs.h.  */
2630
3267
 
2631
3268
int
2639
3276
  return 0;
2640
3277
}
2641
3278
_ACEOF
2642
 
rm -f conftest.$ac_objext
2643
 
if { (ac_try="$ac_compile"
2644
 
case "(($ac_try" in
2645
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646
 
  *) ac_try_echo=$ac_try;;
2647
 
esac
2648
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649
 
  (eval "$ac_compile") 2>conftest.er1
2650
 
  ac_status=$?
2651
 
  grep -v '^ *+' conftest.er1 >conftest.err
2652
 
  rm -f conftest.er1
2653
 
  cat conftest.err >&5
2654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655
 
  (exit $ac_status); } && {
2656
 
         test -z "$ac_c_werror_flag" ||
2657
 
         test ! -s conftest.err
2658
 
       } && test -s conftest.$ac_objext; then
 
3279
if ac_fn_c_try_compile "$LINENO"; then :
2659
3280
  ac_compiler_gnu=yes
2660
3281
else
2661
 
  echo "$as_me: failed program was:" >&5
2662
 
sed 's/^/| /' conftest.$ac_ext >&5
2663
 
 
2664
 
        ac_compiler_gnu=no
 
3282
  ac_compiler_gnu=no
2665
3283
fi
2666
 
 
2667
3284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668
3285
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2669
3286
 
2670
3287
fi
2671
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2672
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2673
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3288
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3289
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3290
if test $ac_compiler_gnu = yes; then
 
3291
  GCC=yes
 
3292
else
 
3293
  GCC=
 
3294
fi
2674
3295
ac_test_CFLAGS=${CFLAGS+set}
2675
3296
ac_save_CFLAGS=$CFLAGS
2676
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2677
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2678
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2679
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3298
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3299
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3300
  $as_echo_n "(cached) " >&6
2680
3301
else
2681
3302
  ac_save_c_werror_flag=$ac_c_werror_flag
2682
3303
   ac_c_werror_flag=yes
2683
3304
   ac_cv_prog_cc_g=no
2684
3305
   CFLAGS="-g"
2685
 
   cat >conftest.$ac_ext <<_ACEOF
2686
 
/* confdefs.h.  */
2687
 
_ACEOF
2688
 
cat confdefs.h >>conftest.$ac_ext
2689
 
cat >>conftest.$ac_ext <<_ACEOF
 
3306
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690
3307
/* end confdefs.h.  */
2691
3308
 
2692
3309
int
2697
3314
  return 0;
2698
3315
}
2699
3316
_ACEOF
2700
 
rm -f conftest.$ac_objext
2701
 
if { (ac_try="$ac_compile"
2702
 
case "(($ac_try" in
2703
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704
 
  *) ac_try_echo=$ac_try;;
2705
 
esac
2706
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707
 
  (eval "$ac_compile") 2>conftest.er1
2708
 
  ac_status=$?
2709
 
  grep -v '^ *+' conftest.er1 >conftest.err
2710
 
  rm -f conftest.er1
2711
 
  cat conftest.err >&5
2712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713
 
  (exit $ac_status); } && {
2714
 
         test -z "$ac_c_werror_flag" ||
2715
 
         test ! -s conftest.err
2716
 
       } && test -s conftest.$ac_objext; then
 
3317
if ac_fn_c_try_compile "$LINENO"; then :
2717
3318
  ac_cv_prog_cc_g=yes
2718
3319
else
2719
 
  echo "$as_me: failed program was:" >&5
2720
 
sed 's/^/| /' conftest.$ac_ext >&5
2721
 
 
2722
 
        CFLAGS=""
2723
 
      cat >conftest.$ac_ext <<_ACEOF
2724
 
/* confdefs.h.  */
2725
 
_ACEOF
2726
 
cat confdefs.h >>conftest.$ac_ext
2727
 
cat >>conftest.$ac_ext <<_ACEOF
 
3320
  CFLAGS=""
 
3321
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728
3322
/* end confdefs.h.  */
2729
3323
 
2730
3324
int
2735
3329
  return 0;
2736
3330
}
2737
3331
_ACEOF
2738
 
rm -f conftest.$ac_objext
2739
 
if { (ac_try="$ac_compile"
2740
 
case "(($ac_try" in
2741
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742
 
  *) ac_try_echo=$ac_try;;
2743
 
esac
2744
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745
 
  (eval "$ac_compile") 2>conftest.er1
2746
 
  ac_status=$?
2747
 
  grep -v '^ *+' conftest.er1 >conftest.err
2748
 
  rm -f conftest.er1
2749
 
  cat conftest.err >&5
2750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751
 
  (exit $ac_status); } && {
2752
 
         test -z "$ac_c_werror_flag" ||
2753
 
         test ! -s conftest.err
2754
 
       } && test -s conftest.$ac_objext; then
2755
 
  :
 
3332
if ac_fn_c_try_compile "$LINENO"; then :
 
3333
 
2756
3334
else
2757
 
  echo "$as_me: failed program was:" >&5
2758
 
sed 's/^/| /' conftest.$ac_ext >&5
2759
 
 
2760
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3335
  ac_c_werror_flag=$ac_save_c_werror_flag
2761
3336
         CFLAGS="-g"
2762
 
         cat >conftest.$ac_ext <<_ACEOF
2763
 
/* confdefs.h.  */
2764
 
_ACEOF
2765
 
cat confdefs.h >>conftest.$ac_ext
2766
 
cat >>conftest.$ac_ext <<_ACEOF
 
3337
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767
3338
/* end confdefs.h.  */
2768
3339
 
2769
3340
int
2774
3345
  return 0;
2775
3346
}
2776
3347
_ACEOF
2777
 
rm -f conftest.$ac_objext
2778
 
if { (ac_try="$ac_compile"
2779
 
case "(($ac_try" in
2780
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781
 
  *) ac_try_echo=$ac_try;;
2782
 
esac
2783
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784
 
  (eval "$ac_compile") 2>conftest.er1
2785
 
  ac_status=$?
2786
 
  grep -v '^ *+' conftest.er1 >conftest.err
2787
 
  rm -f conftest.er1
2788
 
  cat conftest.err >&5
2789
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
 
  (exit $ac_status); } && {
2791
 
         test -z "$ac_c_werror_flag" ||
2792
 
         test ! -s conftest.err
2793
 
       } && test -s conftest.$ac_objext; then
 
3348
if ac_fn_c_try_compile "$LINENO"; then :
2794
3349
  ac_cv_prog_cc_g=yes
2795
 
else
2796
 
  echo "$as_me: failed program was:" >&5
2797
 
sed 's/^/| /' conftest.$ac_ext >&5
2798
 
 
2799
 
 
2800
 
fi
2801
 
 
2802
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803
 
fi
2804
 
 
2805
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806
 
fi
2807
 
 
 
3350
fi
 
3351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3352
fi
 
3353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3354
fi
2808
3355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809
3356
   ac_c_werror_flag=$ac_save_c_werror_flag
2810
3357
fi
2811
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2812
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3359
$as_echo "$ac_cv_prog_cc_g" >&6; }
2813
3360
if test "$ac_test_CFLAGS" = set; then
2814
3361
  CFLAGS=$ac_save_CFLAGS
2815
3362
elif test $ac_cv_prog_cc_g = yes; then
2825
3372
    CFLAGS=
2826
3373
  fi
2827
3374
fi
2828
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2829
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2830
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
2831
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3376
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3377
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3378
  $as_echo_n "(cached) " >&6
2832
3379
else
2833
3380
  ac_cv_prog_cc_c89=no
2834
3381
ac_save_CC=$CC
2835
 
cat >conftest.$ac_ext <<_ACEOF
2836
 
/* confdefs.h.  */
2837
 
_ACEOF
2838
 
cat confdefs.h >>conftest.$ac_ext
2839
 
cat >>conftest.$ac_ext <<_ACEOF
 
3382
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840
3383
/* end confdefs.h.  */
2841
3384
#include <stdarg.h>
2842
3385
#include <stdio.h>
2893
3436
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894
3437
do
2895
3438
  CC="$ac_save_CC $ac_arg"
2896
 
  rm -f conftest.$ac_objext
2897
 
if { (ac_try="$ac_compile"
2898
 
case "(($ac_try" in
2899
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900
 
  *) ac_try_echo=$ac_try;;
2901
 
esac
2902
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903
 
  (eval "$ac_compile") 2>conftest.er1
2904
 
  ac_status=$?
2905
 
  grep -v '^ *+' conftest.er1 >conftest.err
2906
 
  rm -f conftest.er1
2907
 
  cat conftest.err >&5
2908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909
 
  (exit $ac_status); } && {
2910
 
         test -z "$ac_c_werror_flag" ||
2911
 
         test ! -s conftest.err
2912
 
       } && test -s conftest.$ac_objext; then
 
3439
  if ac_fn_c_try_compile "$LINENO"; then :
2913
3440
  ac_cv_prog_cc_c89=$ac_arg
2914
 
else
2915
 
  echo "$as_me: failed program was:" >&5
2916
 
sed 's/^/| /' conftest.$ac_ext >&5
2917
 
 
2918
 
 
2919
3441
fi
2920
 
 
2921
3442
rm -f core conftest.err conftest.$ac_objext
2922
3443
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2923
3444
done
2928
3449
# AC_CACHE_VAL
2929
3450
case "x$ac_cv_prog_cc_c89" in
2930
3451
  x)
2931
 
    { echo "$as_me:$LINENO: result: none needed" >&5
2932
 
echo "${ECHO_T}none needed" >&6; } ;;
 
3452
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3453
$as_echo "none needed" >&6; } ;;
2933
3454
  xno)
2934
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
2935
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
3455
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3456
$as_echo "unsupported" >&6; } ;;
2936
3457
  *)
2937
3458
    CC="$CC $ac_cv_prog_cc_c89"
2938
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2939
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3459
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3460
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2940
3461
esac
 
3462
if test "x$ac_cv_prog_cc_c89" != xno; then :
2941
3463
 
 
3464
fi
2942
3465
 
2943
3466
ac_ext=c
2944
3467
ac_cpp='$CPP $CPPFLAGS'
2955
3478
# sh script, and foo.exe is a windows executable.
2956
3479
 
2957
3480
if test "x$CC" = xrntcl ; then
2958
 
    { echo "$as_me:$LINENO: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&5
2959
 
echo "$as_me: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&6;}
 
3481
    { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&5
 
3482
$as_echo "$as_me: Compiling with rntcl; clearing EXEEXT and disabling assembler" >&6;}
2960
3483
    ac_exeext=''
2961
3484
    ac_cv_exeext=''
2962
3485
    EXEEXT=''
2978
3501
  do
2979
3502
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2980
3503
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2981
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2982
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983
 
if test "${ac_cv_prog_CXX+set}" = set; then
2984
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3505
$as_echo_n "checking for $ac_word... " >&6; }
 
3506
if test "${ac_cv_prog_CXX+set}" = set; then :
 
3507
  $as_echo_n "(cached) " >&6
2985
3508
else
2986
3509
  if test -n "$CXX"; then
2987
3510
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2991
3514
do
2992
3515
  IFS=$as_save_IFS
2993
3516
  test -z "$as_dir" && as_dir=.
2994
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3517
    for ac_exec_ext in '' $ac_executable_extensions; do
2995
3518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996
3519
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2997
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3520
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998
3521
    break 2
2999
3522
  fi
3000
3523
done
3001
 
done
 
3524
  done
3002
3525
IFS=$as_save_IFS
3003
3526
 
3004
3527
fi
3005
3528
fi
3006
3529
CXX=$ac_cv_prog_CXX
3007
3530
if test -n "$CXX"; then
3008
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
3009
 
echo "${ECHO_T}$CXX" >&6; }
 
3531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
3532
$as_echo "$CXX" >&6; }
3010
3533
else
3011
 
  { echo "$as_me:$LINENO: result: no" >&5
3012
 
echo "${ECHO_T}no" >&6; }
 
3534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3535
$as_echo "no" >&6; }
3013
3536
fi
3014
3537
 
3015
3538
 
3022
3545
do
3023
3546
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3024
3547
set dummy $ac_prog; ac_word=$2
3025
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3026
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3027
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3549
$as_echo_n "checking for $ac_word... " >&6; }
 
3550
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
3551
  $as_echo_n "(cached) " >&6
3029
3552
else
3030
3553
  if test -n "$ac_ct_CXX"; then
3031
3554
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3035
3558
do
3036
3559
  IFS=$as_save_IFS
3037
3560
  test -z "$as_dir" && as_dir=.
3038
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3561
    for ac_exec_ext in '' $ac_executable_extensions; do
3039
3562
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040
3563
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3041
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3564
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042
3565
    break 2
3043
3566
  fi
3044
3567
done
3045
 
done
 
3568
  done
3046
3569
IFS=$as_save_IFS
3047
3570
 
3048
3571
fi
3049
3572
fi
3050
3573
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3051
3574
if test -n "$ac_ct_CXX"; then
3052
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3053
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
3575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
3576
$as_echo "$ac_ct_CXX" >&6; }
3054
3577
else
3055
 
  { echo "$as_me:$LINENO: result: no" >&5
3056
 
echo "${ECHO_T}no" >&6; }
 
3578
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3579
$as_echo "no" >&6; }
3057
3580
fi
3058
3581
 
3059
3582
 
3065
3588
  else
3066
3589
    case $cross_compiling:$ac_tool_warned in
3067
3590
yes:)
3068
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3069
 
whose name does not start with the host triplet.  If you think this
3070
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3071
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3072
 
whose name does not start with the host triplet.  If you think this
3073
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3591
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3592
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074
3593
ac_tool_warned=yes ;;
3075
3594
esac
3076
3595
    CXX=$ac_ct_CXX
3080
3599
  fi
3081
3600
fi
3082
3601
# Provide some information about the compiler.
3083
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3084
 
ac_compiler=`set X $ac_compile; echo $2`
3085
 
{ (ac_try="$ac_compiler --version >&5"
3086
 
case "(($ac_try" in
3087
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088
 
  *) ac_try_echo=$ac_try;;
3089
 
esac
3090
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091
 
  (eval "$ac_compiler --version >&5") 2>&5
3092
 
  ac_status=$?
3093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094
 
  (exit $ac_status); }
3095
 
{ (ac_try="$ac_compiler -v >&5"
3096
 
case "(($ac_try" in
3097
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098
 
  *) ac_try_echo=$ac_try;;
3099
 
esac
3100
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101
 
  (eval "$ac_compiler -v >&5") 2>&5
3102
 
  ac_status=$?
3103
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104
 
  (exit $ac_status); }
3105
 
{ (ac_try="$ac_compiler -V >&5"
3106
 
case "(($ac_try" in
3107
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108
 
  *) ac_try_echo=$ac_try;;
3109
 
esac
3110
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111
 
  (eval "$ac_compiler -V >&5") 2>&5
3112
 
  ac_status=$?
3113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114
 
  (exit $ac_status); }
 
3602
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
3603
set X $ac_compile
 
3604
ac_compiler=$2
 
3605
for ac_option in --version -v -V -qversion; do
 
3606
  { { ac_try="$ac_compiler $ac_option >&5"
 
3607
case "(($ac_try" in
 
3608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3609
  *) ac_try_echo=$ac_try;;
 
3610
esac
 
3611
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3612
$as_echo "$ac_try_echo"; } >&5
 
3613
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3614
  ac_status=$?
 
3615
  if test -s conftest.err; then
 
3616
    sed '10a\
 
3617
... rest of stderr output deleted ...
 
3618
         10q' conftest.err >conftest.er1
 
3619
    cat conftest.er1 >&5
 
3620
  fi
 
3621
  rm -f conftest.er1 conftest.err
 
3622
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3623
  test $ac_status = 0; }
 
3624
done
3115
3625
 
3116
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3117
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3118
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3119
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3627
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3628
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
3629
  $as_echo_n "(cached) " >&6
3120
3630
else
3121
 
  cat >conftest.$ac_ext <<_ACEOF
3122
 
/* confdefs.h.  */
3123
 
_ACEOF
3124
 
cat confdefs.h >>conftest.$ac_ext
3125
 
cat >>conftest.$ac_ext <<_ACEOF
 
3631
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126
3632
/* end confdefs.h.  */
3127
3633
 
3128
3634
int
3136
3642
  return 0;
3137
3643
}
3138
3644
_ACEOF
3139
 
rm -f conftest.$ac_objext
3140
 
if { (ac_try="$ac_compile"
3141
 
case "(($ac_try" in
3142
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143
 
  *) ac_try_echo=$ac_try;;
3144
 
esac
3145
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146
 
  (eval "$ac_compile") 2>conftest.er1
3147
 
  ac_status=$?
3148
 
  grep -v '^ *+' conftest.er1 >conftest.err
3149
 
  rm -f conftest.er1
3150
 
  cat conftest.err >&5
3151
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152
 
  (exit $ac_status); } && {
3153
 
         test -z "$ac_cxx_werror_flag" ||
3154
 
         test ! -s conftest.err
3155
 
       } && test -s conftest.$ac_objext; then
 
3645
if ac_fn_cxx_try_compile "$LINENO"; then :
3156
3646
  ac_compiler_gnu=yes
3157
3647
else
3158
 
  echo "$as_me: failed program was:" >&5
3159
 
sed 's/^/| /' conftest.$ac_ext >&5
3160
 
 
3161
 
        ac_compiler_gnu=no
 
3648
  ac_compiler_gnu=no
3162
3649
fi
3163
 
 
3164
3650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165
3651
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3166
3652
 
3167
3653
fi
3168
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3169
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3170
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3655
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3656
if test $ac_compiler_gnu = yes; then
 
3657
  GXX=yes
 
3658
else
 
3659
  GXX=
 
3660
fi
3171
3661
ac_test_CXXFLAGS=${CXXFLAGS+set}
3172
3662
ac_save_CXXFLAGS=$CXXFLAGS
3173
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3174
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3175
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
3176
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3664
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3665
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
3666
  $as_echo_n "(cached) " >&6
3177
3667
else
3178
3668
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3179
3669
   ac_cxx_werror_flag=yes
3180
3670
   ac_cv_prog_cxx_g=no
3181
3671
   CXXFLAGS="-g"
3182
 
   cat >conftest.$ac_ext <<_ACEOF
3183
 
/* confdefs.h.  */
3184
 
_ACEOF
3185
 
cat confdefs.h >>conftest.$ac_ext
3186
 
cat >>conftest.$ac_ext <<_ACEOF
 
3672
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187
3673
/* end confdefs.h.  */
3188
3674
 
3189
3675
int
3194
3680
  return 0;
3195
3681
}
3196
3682
_ACEOF
3197
 
rm -f conftest.$ac_objext
3198
 
if { (ac_try="$ac_compile"
3199
 
case "(($ac_try" in
3200
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201
 
  *) ac_try_echo=$ac_try;;
3202
 
esac
3203
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204
 
  (eval "$ac_compile") 2>conftest.er1
3205
 
  ac_status=$?
3206
 
  grep -v '^ *+' conftest.er1 >conftest.err
3207
 
  rm -f conftest.er1
3208
 
  cat conftest.err >&5
3209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210
 
  (exit $ac_status); } && {
3211
 
         test -z "$ac_cxx_werror_flag" ||
3212
 
         test ! -s conftest.err
3213
 
       } && test -s conftest.$ac_objext; then
 
3683
if ac_fn_cxx_try_compile "$LINENO"; then :
3214
3684
  ac_cv_prog_cxx_g=yes
3215
3685
else
3216
 
  echo "$as_me: failed program was:" >&5
3217
 
sed 's/^/| /' conftest.$ac_ext >&5
3218
 
 
3219
 
        CXXFLAGS=""
3220
 
      cat >conftest.$ac_ext <<_ACEOF
3221
 
/* confdefs.h.  */
3222
 
_ACEOF
3223
 
cat confdefs.h >>conftest.$ac_ext
3224
 
cat >>conftest.$ac_ext <<_ACEOF
 
3686
  CXXFLAGS=""
 
3687
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225
3688
/* end confdefs.h.  */
3226
3689
 
3227
3690
int
3232
3695
  return 0;
3233
3696
}
3234
3697
_ACEOF
3235
 
rm -f conftest.$ac_objext
3236
 
if { (ac_try="$ac_compile"
3237
 
case "(($ac_try" in
3238
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239
 
  *) ac_try_echo=$ac_try;;
3240
 
esac
3241
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242
 
  (eval "$ac_compile") 2>conftest.er1
3243
 
  ac_status=$?
3244
 
  grep -v '^ *+' conftest.er1 >conftest.err
3245
 
  rm -f conftest.er1
3246
 
  cat conftest.err >&5
3247
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248
 
  (exit $ac_status); } && {
3249
 
         test -z "$ac_cxx_werror_flag" ||
3250
 
         test ! -s conftest.err
3251
 
       } && test -s conftest.$ac_objext; then
3252
 
  :
 
3698
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3699
 
3253
3700
else
3254
 
  echo "$as_me: failed program was:" >&5
3255
 
sed 's/^/| /' conftest.$ac_ext >&5
3256
 
 
3257
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3701
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3258
3702
         CXXFLAGS="-g"
3259
 
         cat >conftest.$ac_ext <<_ACEOF
3260
 
/* confdefs.h.  */
3261
 
_ACEOF
3262
 
cat confdefs.h >>conftest.$ac_ext
3263
 
cat >>conftest.$ac_ext <<_ACEOF
 
3703
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264
3704
/* end confdefs.h.  */
3265
3705
 
3266
3706
int
3271
3711
  return 0;
3272
3712
}
3273
3713
_ACEOF
3274
 
rm -f conftest.$ac_objext
3275
 
if { (ac_try="$ac_compile"
3276
 
case "(($ac_try" in
3277
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278
 
  *) ac_try_echo=$ac_try;;
3279
 
esac
3280
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281
 
  (eval "$ac_compile") 2>conftest.er1
3282
 
  ac_status=$?
3283
 
  grep -v '^ *+' conftest.er1 >conftest.err
3284
 
  rm -f conftest.er1
3285
 
  cat conftest.err >&5
3286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287
 
  (exit $ac_status); } && {
3288
 
         test -z "$ac_cxx_werror_flag" ||
3289
 
         test ! -s conftest.err
3290
 
       } && test -s conftest.$ac_objext; then
 
3714
if ac_fn_cxx_try_compile "$LINENO"; then :
3291
3715
  ac_cv_prog_cxx_g=yes
3292
 
else
3293
 
  echo "$as_me: failed program was:" >&5
3294
 
sed 's/^/| /' conftest.$ac_ext >&5
3295
 
 
3296
 
 
3297
 
fi
3298
 
 
3299
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300
 
fi
3301
 
 
3302
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303
 
fi
3304
 
 
 
3716
fi
 
3717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3718
fi
 
3719
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3720
fi
3305
3721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306
3722
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3307
3723
fi
3308
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3309
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
3724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3725
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3310
3726
if test "$ac_test_CXXFLAGS" = set; then
3311
3727
  CXXFLAGS=$ac_save_CXXFLAGS
3312
3728
elif test $ac_cv_prog_cxx_g = yes; then
3336
3752
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3337
3753
 
3338
3754
 
3339
 
cat >conftest.$ac_ext <<_ACEOF
3340
 
/* confdefs.h.  */
3341
 
_ACEOF
3342
 
cat confdefs.h >>conftest.$ac_ext
3343
 
cat >>conftest.$ac_ext <<_ACEOF
 
3755
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344
3756
/* end confdefs.h.  */
3345
3757
 
3346
3758
int
3351
3763
  return 0;
3352
3764
}
3353
3765
_ACEOF
3354
 
rm -f conftest.$ac_objext
3355
 
if { (ac_try="$ac_compile"
3356
 
case "(($ac_try" in
3357
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358
 
  *) ac_try_echo=$ac_try;;
3359
 
esac
3360
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361
 
  (eval "$ac_compile") 2>conftest.er1
3362
 
  ac_status=$?
3363
 
  grep -v '^ *+' conftest.er1 >conftest.err
3364
 
  rm -f conftest.er1
3365
 
  cat conftest.err >&5
3366
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367
 
  (exit $ac_status); } && {
3368
 
         test -z "$ac_cxx_werror_flag" ||
3369
 
         test ! -s conftest.err
3370
 
       } && test -s conftest.$ac_objext; then
 
3766
if ac_fn_cxx_try_compile "$LINENO"; then :
3371
3767
  CXX_TESTS='cxx-test$(EXEEXT)'
3372
3768
else
3373
 
  echo "$as_me: failed program was:" >&5
3374
 
sed 's/^/| /' conftest.$ac_ext >&5
3375
 
 
3376
 
        CXX_TESTS=''
 
3769
  CXX_TESTS=''
3377
3770
fi
3378
 
 
3379
3771
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380
3772
 
3381
3773
ac_ext=c
3385
3777
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3778
 
3387
3779
 
3388
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3389
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3390
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3391
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3392
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3781
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3782
set x ${MAKE-make}
 
3783
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3784
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
3785
  $as_echo_n "(cached) " >&6
3393
3786
else
3394
3787
  cat >conftest.make <<\_ACEOF
3395
3788
SHELL = /bin/sh
3396
3789
all:
3397
3790
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3398
3791
_ACEOF
3399
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3792
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3400
3793
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3401
3794
  *@@@%%%=?*=@@@%%%*)
3402
3795
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3406
3799
rm -f conftest.make
3407
3800
fi
3408
3801
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3409
 
  { echo "$as_me:$LINENO: result: yes" >&5
3410
 
echo "${ECHO_T}yes" >&6; }
 
3802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3803
$as_echo "yes" >&6; }
3411
3804
  SET_MAKE=
3412
3805
else
3413
 
  { echo "$as_me:$LINENO: result: no" >&5
3414
 
echo "${ECHO_T}no" >&6; }
 
3806
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3807
$as_echo "no" >&6; }
3415
3808
  SET_MAKE="MAKE=${MAKE-make}"
3416
3809
fi
3417
3810
 
3418
3811
if test -n "$ac_tool_prefix"; then
3419
3812
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3420
3813
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3421
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3422
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3423
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
3424
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3815
$as_echo_n "checking for $ac_word... " >&6; }
 
3816
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
3817
  $as_echo_n "(cached) " >&6
3425
3818
else
3426
3819
  if test -n "$RANLIB"; then
3427
3820
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3431
3824
do
3432
3825
  IFS=$as_save_IFS
3433
3826
  test -z "$as_dir" && as_dir=.
3434
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3827
    for ac_exec_ext in '' $ac_executable_extensions; do
3435
3828
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436
3829
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3437
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3830
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438
3831
    break 2
3439
3832
  fi
3440
3833
done
3441
 
done
 
3834
  done
3442
3835
IFS=$as_save_IFS
3443
3836
 
3444
3837
fi
3445
3838
fi
3446
3839
RANLIB=$ac_cv_prog_RANLIB
3447
3840
if test -n "$RANLIB"; then
3448
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3449
 
echo "${ECHO_T}$RANLIB" >&6; }
 
3841
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
3842
$as_echo "$RANLIB" >&6; }
3450
3843
else
3451
 
  { echo "$as_me:$LINENO: result: no" >&5
3452
 
echo "${ECHO_T}no" >&6; }
 
3844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3845
$as_echo "no" >&6; }
3453
3846
fi
3454
3847
 
3455
3848
 
3458
3851
  ac_ct_RANLIB=$RANLIB
3459
3852
  # Extract the first word of "ranlib", so it can be a program name with args.
3460
3853
set dummy ranlib; ac_word=$2
3461
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3462
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3463
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3464
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3855
$as_echo_n "checking for $ac_word... " >&6; }
 
3856
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
3857
  $as_echo_n "(cached) " >&6
3465
3858
else
3466
3859
  if test -n "$ac_ct_RANLIB"; then
3467
3860
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3471
3864
do
3472
3865
  IFS=$as_save_IFS
3473
3866
  test -z "$as_dir" && as_dir=.
3474
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3867
    for ac_exec_ext in '' $ac_executable_extensions; do
3475
3868
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476
3869
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3477
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3870
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478
3871
    break 2
3479
3872
  fi
3480
3873
done
3481
 
done
 
3874
  done
3482
3875
IFS=$as_save_IFS
3483
3876
 
3484
3877
fi
3485
3878
fi
3486
3879
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3487
3880
if test -n "$ac_ct_RANLIB"; then
3488
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3489
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
3881
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
3882
$as_echo "$ac_ct_RANLIB" >&6; }
3490
3883
else
3491
 
  { echo "$as_me:$LINENO: result: no" >&5
3492
 
echo "${ECHO_T}no" >&6; }
 
3884
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3885
$as_echo "no" >&6; }
3493
3886
fi
3494
3887
 
3495
3888
  if test "x$ac_ct_RANLIB" = x; then
3497
3890
  else
3498
3891
    case $cross_compiling:$ac_tool_warned in
3499
3892
yes:)
3500
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3501
 
whose name does not start with the host triplet.  If you think this
3502
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3503
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3504
 
whose name does not start with the host triplet.  If you think this
3505
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3893
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3894
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506
3895
ac_tool_warned=yes ;;
3507
3896
esac
3508
3897
    RANLIB=$ac_ct_RANLIB
3514
3903
if test -n "$ac_tool_prefix"; then
3515
3904
  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3516
3905
set dummy ${ac_tool_prefix}nm; ac_word=$2
3517
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3518
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3519
 
if test "${ac_cv_prog_NM+set}" = set; then
3520
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3907
$as_echo_n "checking for $ac_word... " >&6; }
 
3908
if test "${ac_cv_prog_NM+set}" = set; then :
 
3909
  $as_echo_n "(cached) " >&6
3521
3910
else
3522
3911
  if test -n "$NM"; then
3523
3912
  ac_cv_prog_NM="$NM" # Let the user override the test.
3527
3916
do
3528
3917
  IFS=$as_save_IFS
3529
3918
  test -z "$as_dir" && as_dir=.
3530
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3919
    for ac_exec_ext in '' $ac_executable_extensions; do
3531
3920
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532
3921
    ac_cv_prog_NM="${ac_tool_prefix}nm"
3533
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3922
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534
3923
    break 2
3535
3924
  fi
3536
3925
done
3537
 
done
 
3926
  done
3538
3927
IFS=$as_save_IFS
3539
3928
 
3540
3929
fi
3541
3930
fi
3542
3931
NM=$ac_cv_prog_NM
3543
3932
if test -n "$NM"; then
3544
 
  { echo "$as_me:$LINENO: result: $NM" >&5
3545
 
echo "${ECHO_T}$NM" >&6; }
 
3933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
 
3934
$as_echo "$NM" >&6; }
3546
3935
else
3547
 
  { echo "$as_me:$LINENO: result: no" >&5
3548
 
echo "${ECHO_T}no" >&6; }
 
3936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3937
$as_echo "no" >&6; }
3549
3938
fi
3550
3939
 
3551
3940
 
3554
3943
  ac_ct_NM=$NM
3555
3944
  # Extract the first word of "nm", so it can be a program name with args.
3556
3945
set dummy nm; ac_word=$2
3557
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3558
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3559
 
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
3560
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3947
$as_echo_n "checking for $ac_word... " >&6; }
 
3948
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
 
3949
  $as_echo_n "(cached) " >&6
3561
3950
else
3562
3951
  if test -n "$ac_ct_NM"; then
3563
3952
  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3567
3956
do
3568
3957
  IFS=$as_save_IFS
3569
3958
  test -z "$as_dir" && as_dir=.
3570
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3959
    for ac_exec_ext in '' $ac_executable_extensions; do
3571
3960
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572
3961
    ac_cv_prog_ac_ct_NM="nm"
3573
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3962
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574
3963
    break 2
3575
3964
  fi
3576
3965
done
3577
 
done
 
3966
  done
3578
3967
IFS=$as_save_IFS
3579
3968
 
3580
3969
fi
3581
3970
fi
3582
3971
ac_ct_NM=$ac_cv_prog_ac_ct_NM
3583
3972
if test -n "$ac_ct_NM"; then
3584
 
  { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
3585
 
echo "${ECHO_T}$ac_ct_NM" >&6; }
 
3973
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
 
3974
$as_echo "$ac_ct_NM" >&6; }
3586
3975
else
3587
 
  { echo "$as_me:$LINENO: result: no" >&5
3588
 
echo "${ECHO_T}no" >&6; }
 
3976
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3977
$as_echo "no" >&6; }
3589
3978
fi
3590
3979
 
3591
3980
  if test "x$ac_ct_NM" = x; then
3593
3982
  else
3594
3983
    case $cross_compiling:$ac_tool_warned in
3595
3984
yes:)
3596
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3597
 
whose name does not start with the host triplet.  If you think this
3598
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3599
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3600
 
whose name does not start with the host triplet.  If you think this
3601
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3985
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3986
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3602
3987
ac_tool_warned=yes ;;
3603
3988
esac
3604
3989
    NM=$ac_ct_NM
3611
3996
if test -n "$ac_tool_prefix"; then
3612
3997
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3613
3998
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3614
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3615
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3617
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4000
$as_echo_n "checking for $ac_word... " >&6; }
 
4001
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
4002
  $as_echo_n "(cached) " >&6
3618
4003
else
3619
4004
  if test -n "$OBJDUMP"; then
3620
4005
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3624
4009
do
3625
4010
  IFS=$as_save_IFS
3626
4011
  test -z "$as_dir" && as_dir=.
3627
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4012
    for ac_exec_ext in '' $ac_executable_extensions; do
3628
4013
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629
4014
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3630
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4015
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631
4016
    break 2
3632
4017
  fi
3633
4018
done
3634
 
done
 
4019
  done
3635
4020
IFS=$as_save_IFS
3636
4021
 
3637
4022
fi
3638
4023
fi
3639
4024
OBJDUMP=$ac_cv_prog_OBJDUMP
3640
4025
if test -n "$OBJDUMP"; then
3641
 
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3642
 
echo "${ECHO_T}$OBJDUMP" >&6; }
 
4026
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
4027
$as_echo "$OBJDUMP" >&6; }
3643
4028
else
3644
 
  { echo "$as_me:$LINENO: result: no" >&5
3645
 
echo "${ECHO_T}no" >&6; }
 
4029
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4030
$as_echo "no" >&6; }
3646
4031
fi
3647
4032
 
3648
4033
 
3651
4036
  ac_ct_OBJDUMP=$OBJDUMP
3652
4037
  # Extract the first word of "objdump", so it can be a program name with args.
3653
4038
set dummy objdump; ac_word=$2
3654
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3655
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3656
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3657
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4040
$as_echo_n "checking for $ac_word... " >&6; }
 
4041
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
4042
  $as_echo_n "(cached) " >&6
3658
4043
else
3659
4044
  if test -n "$ac_ct_OBJDUMP"; then
3660
4045
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3664
4049
do
3665
4050
  IFS=$as_save_IFS
3666
4051
  test -z "$as_dir" && as_dir=.
3667
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4052
    for ac_exec_ext in '' $ac_executable_extensions; do
3668
4053
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669
4054
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3670
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4055
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671
4056
    break 2
3672
4057
  fi
3673
4058
done
3674
 
done
 
4059
  done
3675
4060
IFS=$as_save_IFS
3676
4061
 
3677
4062
fi
3678
4063
fi
3679
4064
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3680
4065
if test -n "$ac_ct_OBJDUMP"; then
3681
 
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3682
 
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
 
4066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
4067
$as_echo "$ac_ct_OBJDUMP" >&6; }
3683
4068
else
3684
 
  { echo "$as_me:$LINENO: result: no" >&5
3685
 
echo "${ECHO_T}no" >&6; }
 
4069
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4070
$as_echo "no" >&6; }
3686
4071
fi
3687
4072
 
3688
4073
  if test "x$ac_ct_OBJDUMP" = x; then
3690
4075
  else
3691
4076
    case $cross_compiling:$ac_tool_warned in
3692
4077
yes:)
3693
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3694
 
whose name does not start with the host triplet.  If you think this
3695
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3696
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3697
 
whose name does not start with the host triplet.  If you think this
3698
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4078
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4079
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699
4080
ac_tool_warned=yes ;;
3700
4081
esac
3701
4082
    OBJDUMP=$ac_ct_OBJDUMP
3706
4087
 
3707
4088
 
3708
4089
if test "x$ac_cv_prog_cc_stdc" = xno ; then
3709
 
  { { echo "$as_me:$LINENO: error: the C compiler doesn't handle ANSI-C" >&5
3710
 
echo "$as_me: error: the C compiler doesn't handle ANSI-C" >&2;}
3711
 
   { (exit 1); exit 1; }; } #'
 
4090
  as_fn_error $? "the C compiler doesn't handle ANSI-C" "$LINENO" 5  #'
3712
4091
fi
3713
4092
 
3714
4093
# Find a good install program.  We prefer a C program (faster),
3724
4103
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3725
4104
# OS/2's system install, which has a completely different semantic
3726
4105
# ./install, which can be erroneously created by make from ./install.sh.
3727
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3728
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
4106
# Reject install programs that cannot install multiple files.
 
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
4108
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3729
4109
if test -z "$INSTALL"; then
3730
 
if test "${ac_cv_path_install+set}" = set; then
3731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4110
if test "${ac_cv_path_install+set}" = set; then :
 
4111
  $as_echo_n "(cached) " >&6
3732
4112
else
3733
4113
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734
4114
for as_dir in $PATH
3735
4115
do
3736
4116
  IFS=$as_save_IFS
3737
4117
  test -z "$as_dir" && as_dir=.
3738
 
  # Account for people who put trailing slashes in PATH elements.
3739
 
case $as_dir/ in
3740
 
  ./ | .// | /cC/* | \
 
4118
    # Account for people who put trailing slashes in PATH elements.
 
4119
case $as_dir/ in #((
 
4120
  ./ | .// | /[cC]/* | \
3741
4121
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3742
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
4122
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3743
4123
  /usr/ucb/* ) ;;
3744
4124
  *)
3745
4125
    # OSF1 and SCO ODT 3.0 have their own names for install.
3757
4137
            # program-specific install script used by HP pwplus--don't use.
3758
4138
            :
3759
4139
          else
3760
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3761
 
            break 3
 
4140
            rm -rf conftest.one conftest.two conftest.dir
 
4141
            echo one > conftest.one
 
4142
            echo two > conftest.two
 
4143
            mkdir conftest.dir
 
4144
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
4145
              test -s conftest.one && test -s conftest.two &&
 
4146
              test -s conftest.dir/conftest.one &&
 
4147
              test -s conftest.dir/conftest.two
 
4148
            then
 
4149
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4150
              break 3
 
4151
            fi
3762
4152
          fi
3763
4153
        fi
3764
4154
      done
3765
4155
    done
3766
4156
    ;;
3767
4157
esac
3768
 
done
 
4158
 
 
4159
  done
3769
4160
IFS=$as_save_IFS
3770
4161
 
 
4162
rm -rf conftest.one conftest.two conftest.dir
3771
4163
 
3772
4164
fi
3773
4165
  if test "${ac_cv_path_install+set}" = set; then
3780
4172
    INSTALL=$ac_install_sh
3781
4173
  fi
3782
4174
fi
3783
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3784
 
echo "${ECHO_T}$INSTALL" >&6; }
 
4175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
4176
$as_echo "$INSTALL" >&6; }
3785
4177
 
3786
4178
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3787
4179
# It thinks the first close brace ends the variable substitution.
3794
4186
 
3795
4187
# According to the autoconf manual, needs install-sh from
3796
4188
# autoconf-2.60 or automake-1.10 to avoid races.
3797
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3798
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
4189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
4190
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3799
4191
if test -z "$MKDIR_P"; then
3800
 
  if test "${ac_cv_path_mkdir+set}" = set; then
3801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4192
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
4193
  $as_echo_n "(cached) " >&6
3802
4194
else
3803
4195
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804
4196
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3805
4197
do
3806
4198
  IFS=$as_save_IFS
3807
4199
  test -z "$as_dir" && as_dir=.
3808
 
  for ac_prog in mkdir gmkdir; do
 
4200
    for ac_prog in mkdir gmkdir; do
3809
4201
         for ac_exec_ext in '' $ac_executable_extensions; do
3810
4202
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3811
4203
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3817
4209
           esac
3818
4210
         done
3819
4211
       done
3820
 
done
 
4212
  done
3821
4213
IFS=$as_save_IFS
3822
4214
 
3823
4215
fi
3824
4216
 
 
4217
  test -d ./--version && rmdir ./--version
3825
4218
  if test "${ac_cv_path_mkdir+set}" = set; then
3826
4219
    MKDIR_P="$ac_cv_path_mkdir -p"
3827
4220
  else
3829
4222
    # value for MKDIR_P within a source directory, because that will
3830
4223
    # break other packages using the cache if that directory is
3831
4224
    # removed, or if the value is a relative name.
3832
 
    test -d ./--version && rmdir ./--version
3833
4225
    MKDIR_P="$ac_install_sh -d"
3834
4226
  fi
3835
4227
fi
3836
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3837
 
echo "${ECHO_T}$MKDIR_P" >&6; }
 
4228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
4229
$as_echo "$MKDIR_P" >&6; }
3838
4230
 
3839
4231
 
3840
4232
# Check whether --enable-dependency_tracking was given.
3841
 
if test "${enable_dependency_tracking+set}" = set; then
 
4233
if test "${enable_dependency_tracking+set}" = set; then :
3842
4234
  enableval=$enable_dependency_tracking;
3843
4235
else
3844
4236
  enable_dependency_tracking=yes
3853
4245
    case "$gcc_version" in
3854
4246
      2.*|*[!0-9.]2.*)
3855
4247
        enable_dependency_tracking=no
3856
 
        { echo "$as_me:$LINENO: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&5
3857
 
echo "$as_me: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&2;}
 
4248
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&5
 
4249
$as_echo "$as_me: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&2;}
3858
4250
      ;;
3859
4251
      *)
3860
4252
        DEP_FLAGS='-MT $@ -MD -MP -MF $@.d'
3863
4255
    esac
3864
4256
  else
3865
4257
    enable_dependency_tracking=no
3866
 
    { echo "$as_me:$LINENO: WARNING: Dependency tracking disabled" >&5
3867
 
echo "$as_me: WARNING: Dependency tracking disabled" >&2;}
 
4258
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled" >&5
 
4259
$as_echo "$as_me: WARNING: Dependency tracking disabled" >&2;}
3868
4260
  fi
3869
4261
fi
3870
4262
 
3887
4279
 
3888
4280
fi
3889
4281
 
3890
 
# Figure out ABI. Currently, configurable only be setting CFLAGS.
 
4282
# Figure out ABI. Currently, configurable only by setting CFLAGS.
3891
4283
ABI=standard
3892
4284
 
3893
4285
case "$host_cpu" in
3894
4286
  x86_64 | amd64)
3895
4287
 
3896
 
cat >conftest.$ac_ext <<_ACEOF
3897
 
/* confdefs.h.  */
3898
 
_ACEOF
3899
 
cat confdefs.h >>conftest.$ac_ext
3900
 
cat >>conftest.$ac_ext <<_ACEOF
 
4288
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901
4289
/* end confdefs.h.  */
3902
4290
 
3903
4291
#if defined(__x86_64__) || defined(__arch64__)
3912
4300
  return 0;
3913
4301
}
3914
4302
_ACEOF
3915
 
rm -f conftest.$ac_objext
3916
 
if { (ac_try="$ac_compile"
3917
 
case "(($ac_try" in
3918
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919
 
  *) ac_try_echo=$ac_try;;
3920
 
esac
3921
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922
 
  (eval "$ac_compile") 2>conftest.er1
3923
 
  ac_status=$?
3924
 
  grep -v '^ *+' conftest.er1 >conftest.err
3925
 
  rm -f conftest.er1
3926
 
  cat conftest.err >&5
3927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928
 
  (exit $ac_status); } && {
3929
 
         test -z "$ac_c_werror_flag" ||
3930
 
         test ! -s conftest.err
3931
 
       } && test -s conftest.$ac_objext; then
 
4303
if ac_fn_c_try_compile "$LINENO"; then :
3932
4304
 
3933
4305
      ABI=32
3934
4306
 
3935
4307
else
3936
 
  echo "$as_me: failed program was:" >&5
3937
 
sed 's/^/| /' conftest.$ac_ext >&5
3938
 
 
3939
4308
 
3940
4309
      ABI=64
3941
4310
 
3942
4311
fi
3943
 
 
3944
4312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945
4313
    ;;
3946
4314
  *sparc*)
3947
 
    cat >conftest.$ac_ext <<_ACEOF
3948
 
/* confdefs.h.  */
3949
 
_ACEOF
3950
 
cat confdefs.h >>conftest.$ac_ext
3951
 
cat >>conftest.$ac_ext <<_ACEOF
 
4315
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952
4316
/* end confdefs.h.  */
3953
4317
 
3954
4318
#if defined(__sparcv9) || defined(__arch64__)
3963
4327
  return 0;
3964
4328
}
3965
4329
_ACEOF
3966
 
rm -f conftest.$ac_objext
3967
 
if { (ac_try="$ac_compile"
3968
 
case "(($ac_try" in
3969
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970
 
  *) ac_try_echo=$ac_try;;
3971
 
esac
3972
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973
 
  (eval "$ac_compile") 2>conftest.er1
3974
 
  ac_status=$?
3975
 
  grep -v '^ *+' conftest.er1 >conftest.err
3976
 
  rm -f conftest.er1
3977
 
  cat conftest.err >&5
3978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979
 
  (exit $ac_status); } && {
3980
 
         test -z "$ac_c_werror_flag" ||
3981
 
         test ! -s conftest.err
3982
 
       } && test -s conftest.$ac_objext; then
 
4330
if ac_fn_c_try_compile "$LINENO"; then :
3983
4331
 
3984
4332
      ABI=32
3985
4333
 
3986
4334
else
3987
 
  echo "$as_me: failed program was:" >&5
3988
 
sed 's/^/| /' conftest.$ac_ext >&5
3989
 
 
3990
4335
 
3991
4336
      ABI=64
3992
4337
 
3993
4338
fi
3994
 
 
3995
4339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996
4340
    ;;
3997
4341
esac
3998
4342
 
3999
4343
if test "x$ABI" != xstandard ; then
4000
 
  { echo "$as_me:$LINENO: Compiler uses $ABI-bit ABI. To change, set CC." >&5
4001
 
echo "$as_me: Compiler uses $ABI-bit ABI. To change, set CC." >&6;}
 
4344
  { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler uses $ABI-bit ABI. To change, set CC." >&5
 
4345
$as_echo "$as_me: Compiler uses $ABI-bit ABI. To change, set CC." >&6;}
4002
4346
  if test "$libdir" = '${exec_prefix}/lib' ; then
4003
4347
    # Try setting a better default
4004
4348
    case "$host_cpu:$host_os:$ABI" in
4008
4352
      *:solaris*:64|*:sunos*:64)
4009
4353
        libdir='${exec_prefix}/lib/64'
4010
4354
        ;;
4011
 
      # According to the fhs, all architectures except IA64
4012
 
      # puts 32-bit libraries in lib, and 64-bit in lib64.
4013
 
      *:linux*:32)
4014
 
        libdir='${exec_prefix}/lib'
4015
 
        ;;
4016
 
      *:linux*:64)
4017
 
        libdir='${exec_prefix}/lib64'
 
4355
      # Linux conventions are a mess... According to the Linux File
 
4356
      # Hierarchy Standard, all architectures except IA64 puts 32-bit
 
4357
      # libraries in lib, and 64-bit in lib64. Some distributions,
 
4358
      # e.g., Fedora and Gentoo, adhere to this standard, while at
 
4359
      # least Debian has decided to put 64-bit libraries in lib and
 
4360
      # 32-bit libraries in lib32.
 
4361
 
 
4362
      # We try to figure out the convention, except if we're cross
 
4363
      # compiling. We use lib${ABI} if /usr/lib${ABI} exists and
 
4364
      # appears to not be a symlink to a different name.
 
4365
      *:linux*:32|*:linux*:64)
 
4366
        if test "$cross_compiling" = yes ; then
 
4367
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&5
 
4368
$as_echo "$as_me: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&2;};  else
 
4369
          # The dash builtin pwd tries to be "helpful" and remember
 
4370
          # symlink names. Use -P option, and hope it's portable enough.
 
4371
          test -d /usr/lib${ABI} \
 
4372
            && (cd /usr/lib${ABI} && pwd -P | grep >/dev/null "/lib${ABI}"'$') \
 
4373
            && libdir='${exec_prefix}/'"lib${ABI}"
 
4374
        fi
4018
4375
        ;;
4019
4376
      # On freebsd, it seems 32-bit libraries are in lib32,
4020
4377
      # and 64-bit in lib. Don't know about "kfreebsd", does
4026
4383
        libdir='${exec_prefix}/lib'
4027
4384
        ;;
4028
4385
      *)
4029
 
        { echo "$as_me:$LINENO: WARNING: Don't know where to install $ABI-bit libraries on this system." >&5
4030
 
echo "$as_me: WARNING: Don't know where to install $ABI-bit libraries on this system." >&2;}; #'
4031
 
 
 
4386
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know where to install $ABI-bit libraries on this system." >&5
 
4387
$as_echo "$as_me: WARNING: Don't know where to install $ABI-bit libraries on this system." >&2;};
4032
4388
    esac
4033
 
    { echo "$as_me:$LINENO: Libraries to be installed in $libdir." >&5
4034
 
echo "$as_me: Libraries to be installed in $libdir." >&6;}
 
4389
    { $as_echo "$as_me:${as_lineno-$LINENO}: Libraries to be installed in $libdir." >&5
 
4390
$as_echo "$as_me: Libraries to be installed in $libdir." >&6;}
4035
4391
  fi
4036
4392
fi
4037
4393
 
4038
4394
# Select assembler code
4039
4395
asm_path=
4040
 
case "$host_cpu" in
4041
 
  i?86* | k[5-8]* | pentium* | athlon)
4042
 
    asm_path=x86
4043
 
    ;;
4044
 
  x86_64 | amd64)
4045
 
    if test "$ABI" = 64 ; then
4046
 
      asm_path=x86_64
4047
 
    else
 
4396
if test "x$enable_assembler" = xyes ; then
 
4397
  case "$host_cpu" in
 
4398
    i?86* | k[5-8]* | pentium* | athlon)
4048
4399
      asm_path=x86
4049
 
    fi
4050
 
    ;;
4051
 
  *sparc*)
4052
 
    if test "$ABI" = 64 ; then
4053
 
      asm_path=sparc64
4054
 
    else
4055
 
      asm_path=sparc32
4056
 
    fi
4057
 
    ;;
4058
 
  *)
4059
 
    enable_assembler=no
4060
 
    ;;
4061
 
esac
4062
 
 
 
4400
      ;;
 
4401
    x86_64 | amd64)
 
4402
      if test "$ABI" = 64 ; then
 
4403
        asm_path=x86_64
 
4404
      else
 
4405
        asm_path=x86
 
4406
      fi
 
4407
      ;;
 
4408
    *sparc*)
 
4409
      if test "$ABI" = 64 ; then
 
4410
        asm_path=sparc64
 
4411
      else
 
4412
        asm_path=sparc32
 
4413
      fi
 
4414
      ;;
 
4415
    *)
 
4416
      enable_assembler=no
 
4417
      ;;
 
4418
  esac
 
4419
fi
4063
4420
# echo "enable_assembler: $enable_assembler, asm_path: $asm_path"
4064
4421
 
4065
4422
if test "x$enable_assembler" = xyes ; then
4066
4423
  if test -n "$asm_path"; then
4067
 
    { echo "$as_me:$LINENO: Looking for assembler files in $asm_path/." >&5
4068
 
echo "$as_me: Looking for assembler files in $asm_path/." >&6;}
 
4424
    { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for assembler files in $asm_path/." >&5
 
4425
$as_echo "$as_me: Looking for assembler files in $asm_path/." >&6;}
4069
4426
    found=no
4070
4427
    for tmp_f in aes-encrypt-internal.asm aes-decrypt-internal.asm \
4071
4428
                 arcfour-crypt.asm camellia-crypt-internal.asm \
4072
 
                 md5-compress.asm sha1-compress.asm machine.m4; do
 
4429
                 md5-compress.asm memxor.asm \
 
4430
                 serpent-encrypt.asm serpent-decrypt.asm \
 
4431
                 sha1-compress.asm machine.m4; do
4073
4432
#       echo "Looking for $srcdir/$asm_path/$tmp_f"
4074
4433
      if test -f "$srcdir/$asm_path/$tmp_f"; then
4075
4434
#        echo found
4080
4439
    done
4081
4440
    if test "$found" = no; then
4082
4441
      enable_assembler=no
4083
 
      { echo "$as_me:$LINENO: WARNING: No assembler files found." >&5
4084
 
echo "$as_me: WARNING: No assembler files found." >&2;}
 
4442
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No assembler files found." >&5
 
4443
$as_echo "$as_me: WARNING: No assembler files found." >&2;}
4085
4444
    fi
4086
4445
  fi
4087
4446
fi
4088
4447
 
4089
 
{ echo "$as_me:$LINENO: checking CCPIC" >&5
4090
 
echo $ECHO_N "checking CCPIC... $ECHO_C" >&6; }
4091
 
if test "${lsh_cv_sys_ccpic+set}" = set; then
4092
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCPIC" >&5
 
4449
$as_echo_n "checking CCPIC... " >&6; }
 
4450
if test "${lsh_cv_sys_ccpic+set}" = set; then :
 
4451
  $as_echo_n "(cached) " >&6
4093
4452
else
4094
4453
 
4095
4454
  if test -z "$CCPIC" ; then
4119
4478
  fi
4120
4479
  OLD_CFLAGS="$CFLAGS"
4121
4480
  CFLAGS="$CFLAGS $CCPIC"
4122
 
  cat >conftest.$ac_ext <<_ACEOF
4123
 
/* confdefs.h.  */
4124
 
_ACEOF
4125
 
cat confdefs.h >>conftest.$ac_ext
4126
 
cat >>conftest.$ac_ext <<_ACEOF
 
4481
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127
4482
/* end confdefs.h.  */
4128
4483
 
4129
4484
int
4134
4489
  return 0;
4135
4490
}
4136
4491
_ACEOF
4137
 
rm -f conftest.$ac_objext
4138
 
if { (ac_try="$ac_compile"
4139
 
case "(($ac_try" in
4140
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141
 
  *) ac_try_echo=$ac_try;;
4142
 
esac
4143
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144
 
  (eval "$ac_compile") 2>conftest.er1
4145
 
  ac_status=$?
4146
 
  grep -v '^ *+' conftest.er1 >conftest.err
4147
 
  rm -f conftest.er1
4148
 
  cat conftest.err >&5
4149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150
 
  (exit $ac_status); } && {
4151
 
         test -z "$ac_c_werror_flag" ||
4152
 
         test ! -s conftest.err
4153
 
       } && test -s conftest.$ac_objext; then
 
4492
if ac_fn_c_try_compile "$LINENO"; then :
4154
4493
  lsh_cv_sys_ccpic="$CCPIC"
4155
4494
else
4156
 
  echo "$as_me: failed program was:" >&5
4157
 
sed 's/^/| /' conftest.$ac_ext >&5
4158
 
 
4159
 
        lsh_cv_sys_ccpic=''
 
4495
  lsh_cv_sys_ccpic=''
4160
4496
fi
4161
 
 
4162
4497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163
4498
  CFLAGS="$OLD_CFLAGS"
4164
4499
 
4165
4500
fi
4166
4501
 
4167
4502
CCPIC="$lsh_cv_sys_ccpic"
4168
 
{ echo "$as_me:$LINENO: result: $CCPIC" >&5
4169
 
echo "${ECHO_T}$CCPIC" >&6; }
 
4503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPIC" >&5
 
4504
$as_echo "$CCPIC" >&6; }
4170
4505
 
4171
4506
 
4172
4507
SHLIBCFLAGS="$CCPIC"
4173
4508
 
4174
4509
case "$host_os" in
 
4510
  mingw32*)
 
4511
    LIBNETTLE_FORLINK='libnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
 
4512
    LIBNETTLE_SONAME=''
 
4513
    LIBNETTLE_FILE='libnettle.dll.a'
 
4514
    LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
 
4515
    LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
 
4516
 
 
4517
    LIBHOGWEED_FORLINK='libhogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
 
4518
    LIBHOGWEED_SONAME=''
 
4519
    LIBHOGWEED_FILE='libhogweed.dll.a'
 
4520
    LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
 
4521
    LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a'
 
4522
    ;;
4175
4523
  cygwin*)
4176
4524
    LIBNETTLE_FORLINK='cygnettle-$(LIBNETTLE_MAJOR)-$(LIBNETTLE_MINOR).dll'
4177
4525
    LIBNETTLE_SONAME=''
4178
4526
    LIBNETTLE_FILE='libnettle.dll.a'
4179
 
    LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_LIBFILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
 
4527
    LIBNETTLE_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4180
4528
    LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
4181
4529
 
4182
4530
    LIBHOGWEED_FORLINK='cyghogweed-$(LIBHOGWEED_MAJOR)-$(LIBHOGWEED_MINOR).dll'
4183
4531
    LIBHOGWEED_SONAME=''
4184
4532
    LIBHOGWEED_FILE='libhogweed.dll.a'
4185
 
    LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_LIBFILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
 
4533
    LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
4186
4534
    LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS)'
4187
4535
    ;;
4188
4536
  darwin*)
4198
4546
    LIBHOGWEED_LINK='$(CC) -dynamiclib $(LDFLAGS)'
4199
4547
    LIBHOGWEED_LIBS=''
4200
4548
    ;;
 
4549
  solaris*)
 
4550
    # Sun's ld uses -h to set the soname, and this option is passed
 
4551
    # through by both Sun's compiler and gcc. Might not work with GNU
 
4552
    # ld, but it's unusual to use GNU ld on Solaris.
 
4553
    LIBNETTLE_FORLINK=libnettle.so
 
4554
    LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
 
4555
    LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
 
4556
    LIBNETTLE_LINK='$(CC) $(LDFLAGS) -G -h $(LIBNETTLE_SONAME)'
 
4557
    LIBNETTLE_LIBS=''
 
4558
 
 
4559
    LIBHOGWEED_FORLINK=libhogweed.so
 
4560
    LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
 
4561
    LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
 
4562
    LIBHOGWEED_LINK='$(CC) $(LDFLAGS) -L. -G -h $(LIBHOGWEED_SONAME)'
 
4563
    LIBHOGWEED_LIBS='-lnettle -lgmp'
 
4564
    ;;
4201
4565
  *)
4202
4566
    LIBNETTLE_FORLINK=libnettle.so
4203
4567
    LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
4232
4596
ASM_ALIGN_LOG=''
4233
4597
 
4234
4598
if test x$enable_assembler = xyes ; then
4235
 
  { echo "$as_me:$LINENO: checking if globals are prefixed by underscore" >&5
4236
 
echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6; }
4237
 
if test "${nettle_cv_asm_underscore+set}" = set; then
4238
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4599
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
 
4600
$as_echo_n "checking if globals are prefixed by underscore... " >&6; }
 
4601
if test "${nettle_cv_asm_underscore+set}" = set; then :
 
4602
  $as_echo_n "(cached) " >&6
4239
4603
else
4240
4604
   # Default is no underscore
4241
4605
    nettle_cv_asm_underscore=no
4242
 
    cat >conftest.$ac_ext <<_ACEOF
 
4606
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4607
/* end confdefs.h.  */
4243
4608
int a_global_symbol;
4244
4609
_ACEOF
4245
 
rm -f conftest.$ac_objext
4246
 
if { (ac_try="$ac_compile"
4247
 
case "(($ac_try" in
4248
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249
 
  *) ac_try_echo=$ac_try;;
4250
 
esac
4251
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252
 
  (eval "$ac_compile") 2>conftest.er1
4253
 
  ac_status=$?
4254
 
  grep -v '^ *+' conftest.er1 >conftest.err
4255
 
  rm -f conftest.er1
4256
 
  cat conftest.err >&5
4257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258
 
  (exit $ac_status); } && {
4259
 
         test -z "$ac_c_werror_flag" ||
4260
 
         test ! -s conftest.err
4261
 
       } && test -s conftest.$ac_objext; then
 
4610
if ac_fn_c_try_compile "$LINENO"; then :
4262
4611
   $NM conftest.$OBJEXT >conftest.out
4263
4612
        if grep _a_global_symbol conftest.out >/dev/null ; then
4264
4613
          nettle_cv_asm_underscore=yes
4265
4614
        elif grep a_global_symbol conftest.out >/dev/null ; then
4266
4615
          nettle_cv_asm_underscore=no
4267
4616
        else
4268
 
          { echo "$as_me:$LINENO: WARNING: nm doesn't list a_global_symbol at all" >&5
4269
 
echo "$as_me: WARNING: nm doesn't list a_global_symbol at all" >&2;}
 
4617
          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nm doesn't list a_global_symbol at all" >&5
 
4618
$as_echo "$as_me: WARNING: nm doesn't list a_global_symbol at all" >&2;}
4270
4619
        fi
4271
4620
else
4272
 
  echo "$as_me: failed program was:" >&5
4273
 
sed 's/^/| /' conftest.$ac_ext >&5
4274
 
 
4275
 
        { echo "$as_me:$LINENO: WARNING: test program with a single global could not be compiled!?" >&5
4276
 
echo "$as_me: WARNING: test program with a single global could not be compiled!?" >&2;}
 
4621
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: test program with a single global could not be compiled!?" >&5
 
4622
$as_echo "$as_me: WARNING: test program with a single global could not be compiled!?" >&2;}
4277
4623
fi
4278
 
 
4279
4624
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280
4625
fi
4281
 
{ echo "$as_me:$LINENO: result: $nettle_cv_asm_underscore" >&5
4282
 
echo "${ECHO_T}$nettle_cv_asm_underscore" >&6; }
 
4626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_underscore" >&5
 
4627
$as_echo "$nettle_cv_asm_underscore" >&6; }
4283
4628
  if test x$nettle_cv_asm_underscore = xyes ; then
4284
4629
    ASM_SYMBOL_PREFIX='_'
4285
4630
  fi
4286
4631
 
4287
 
  { echo "$as_me:$LINENO: checking if we should use a .note.GNU-stack section" >&5
4288
 
echo $ECHO_N "checking if we should use a .note.GNU-stack section... $ECHO_C" >&6; }
4289
 
if test "${nettle_cv_asm_gnu_stack+set}" = set; then
4290
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4632
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use a .note.GNU-stack section" >&5
 
4633
$as_echo_n "checking if we should use a .note.GNU-stack section... " >&6; }
 
4634
if test "${nettle_cv_asm_gnu_stack+set}" = set; then :
 
4635
  $as_echo_n "(cached) " >&6
4291
4636
else
4292
4637
   # Default
4293
4638
    nettle_cv_asm_gnu_stack=no
4296
4641
int foo() { return 0; }
4297
4642
EOF
4298
4643
    nettle_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
4299
 
    if { (eval echo "$as_me:$LINENO: \"$nettle_compile\"") >&5
 
4644
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$nettle_compile\""; } >&5
4300
4645
  (eval $nettle_compile) 2>&5
4301
4646
  ac_status=$?
4302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303
 
  (exit $ac_status); }; then
 
4647
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4648
  test $ac_status = 0; }; then
4304
4649
      cat conftest.out >&5
4305
4650
      $OBJDUMP -x conftest.o | grep '\.note\.GNU-stack' > /dev/null \
4306
4651
      && nettle_cv_asm_gnu_stack=yes
4311
4656
    fi
4312
4657
    rm -f conftest.*
4313
4658
fi
4314
 
{ echo "$as_me:$LINENO: result: $nettle_cv_asm_gnu_stack" >&5
4315
 
echo "${ECHO_T}$nettle_cv_asm_gnu_stack" >&6; }
 
4659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_gnu_stack" >&5
 
4660
$as_echo "$nettle_cv_asm_gnu_stack" >&6; }
4316
4661
  if test x$nettle_cv_asm_gnu_stack = xyes ; then
4317
4662
    ASM_MARK_NOEXEC_STACK='.section .note.GNU-stack,"",@progbits'
4318
4663
  fi
4319
4664
 
4320
 
  { echo "$as_me:$LINENO: checking for ELF-style .type,%function pseudo-ops" >&5
4321
 
echo $ECHO_N "checking for ELF-style .type,%function pseudo-ops... $ECHO_C" >&6; }
4322
 
if test "${nettle_cv_asm_type_percent_function+set}" = set; then
4323
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4665
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,%function pseudo-ops" >&5
 
4666
$as_echo_n "checking for ELF-style .type,%function pseudo-ops... " >&6; }
 
4667
if test "${nettle_cv_asm_type_percent_function+set}" = set; then :
 
4668
  $as_echo_n "(cached) " >&6
4324
4669
else
4325
4670
  cat >conftest.s <<EOF
4326
4671
 
4334
4679
 
4335
4680
EOF
4336
4681
gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4337
 
if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
 
4682
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4338
4683
  (eval $gmp_assemble) 2>&5
4339
4684
  ac_status=$?
4340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341
 
  (exit $ac_status); }; then
 
4685
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4686
  test $ac_status = 0; }; then
4342
4687
  cat conftest.out >&5
4343
4688
  nettle_cv_asm_type_percent_function=yes
4344
4689
else
4350
4695
rm -f conftest*
4351
4696
 
4352
4697
fi
4353
 
{ echo "$as_me:$LINENO: result: $nettle_cv_asm_type_percent_function" >&5
4354
 
echo "${ECHO_T}$nettle_cv_asm_type_percent_function" >&6; }
 
4698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_percent_function" >&5
 
4699
$as_echo "$nettle_cv_asm_type_percent_function" >&6; }
4355
4700
 
4356
 
  { echo "$as_me:$LINENO: checking for ELF-style .type,#function pseudo-ops" >&5
4357
 
echo $ECHO_N "checking for ELF-style .type,#function pseudo-ops... $ECHO_C" >&6; }
4358
 
if test "${nettle_cv_asm_type_hash_function+set}" = set; then
4359
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4701
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,#function pseudo-ops" >&5
 
4702
$as_echo_n "checking for ELF-style .type,#function pseudo-ops... " >&6; }
 
4703
if test "${nettle_cv_asm_type_hash_function+set}" = set; then :
 
4704
  $as_echo_n "(cached) " >&6
4360
4705
else
4361
4706
  cat >conftest.s <<EOF
4362
4707
 
4370
4715
 
4371
4716
EOF
4372
4717
gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4373
 
if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
 
4718
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4374
4719
  (eval $gmp_assemble) 2>&5
4375
4720
  ac_status=$?
4376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377
 
  (exit $ac_status); }; then
 
4721
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4722
  test $ac_status = 0; }; then
4378
4723
  cat conftest.out >&5
4379
4724
  nettle_cv_asm_type_hash_function=yes
4380
4725
else
4386
4731
rm -f conftest*
4387
4732
 
4388
4733
fi
4389
 
{ echo "$as_me:$LINENO: result: $nettle_cv_asm_type_hash_function" >&5
4390
 
echo "${ECHO_T}$nettle_cv_asm_type_hash_function" >&6; }
 
4734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_hash_function" >&5
 
4735
$as_echo "$nettle_cv_asm_type_hash_function" >&6; }
4391
4736
 
4392
4737
  if test x$nettle_cv_asm_type_percent_function = xyes ; then
4393
4738
    ASM_ELF_STYLE='yes'
4398
4743
      ASM_TYPE_FUNCTION='#function'
4399
4744
    fi
4400
4745
  fi
4401
 
  { echo "$as_me:$LINENO: checking if .align assembly directive is logarithmic" >&5
4402
 
echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6; }
4403
 
if test "${nettle_cv_asm_align_log+set}" = set; then
4404
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4746
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
 
4747
$as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
 
4748
if test "${nettle_cv_asm_align_log+set}" = set; then :
 
4749
  $as_echo_n "(cached) " >&6
4405
4750
else
4406
4751
  cat >conftest.s <<EOF
4407
4752
 
4409
4754
 
4410
4755
EOF
4411
4756
gmp_assemble="$CC $CFLAGS $CPPFLAGS -c conftest.s >conftest.out 2>&1"
4412
 
if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
 
4757
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
4413
4758
  (eval $gmp_assemble) 2>&5
4414
4759
  ac_status=$?
4415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416
 
  (exit $ac_status); }; then
 
4760
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4761
  test $ac_status = 0; }; then
4417
4762
  cat conftest.out >&5
4418
4763
  nettle_cv_asm_align_log=yes
4419
4764
else
4425
4770
rm -f conftest*
4426
4771
 
4427
4772
fi
4428
 
{ echo "$as_me:$LINENO: result: $nettle_cv_asm_align_log" >&5
4429
 
echo "${ECHO_T}$nettle_cv_asm_align_log" >&6; }
 
4773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_align_log" >&5
 
4774
$as_echo "$nettle_cv_asm_align_log" >&6; }
4430
4775
  if test x$nettle_cv_asm_align_log = xyes ; then
4431
4776
    ASM_ALIGN_LOG='yes'
4432
4777
  fi
4458
4803
 
4459
4804
# Extract the first word of "m4", so it can be a program name with args.
4460
4805
set dummy m4; ac_word=$2
4461
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463
 
if test "${ac_cv_path_M4+set}" = set; then
4464
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4807
$as_echo_n "checking for $ac_word... " >&6; }
 
4808
if test "${ac_cv_path_M4+set}" = set; then :
 
4809
  $as_echo_n "(cached) " >&6
4465
4810
else
4466
4811
  case $M4 in
4467
4812
  [\\/]* | ?:[\\/]*)
4473
4818
do
4474
4819
  IFS=$as_save_IFS
4475
4820
  test -z "$as_dir" && as_dir=.
4476
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4821
    for ac_exec_ext in '' $ac_executable_extensions; do
4477
4822
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478
4823
    ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4479
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4824
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480
4825
    break 2
4481
4826
  fi
4482
4827
done
4483
 
done
 
4828
  done
4484
4829
IFS=$as_save_IFS
4485
4830
 
4486
4831
  test -z "$ac_cv_path_M4" && ac_cv_path_M4="m4"
4489
4834
fi
4490
4835
M4=$ac_cv_path_M4
4491
4836
if test -n "$M4"; then
4492
 
  { echo "$as_me:$LINENO: result: $M4" >&5
4493
 
echo "${ECHO_T}$M4" >&6; }
 
4837
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
 
4838
$as_echo "$M4" >&6; }
4494
4839
else
4495
 
  { echo "$as_me:$LINENO: result: no" >&5
4496
 
echo "${ECHO_T}no" >&6; }
4497
 
fi
4498
 
 
4499
 
 
 
4840
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4841
$as_echo "no" >&6; }
 
4842
fi
 
4843
 
 
4844
 
 
4845
 
 
4846
if test "x$enable_gcov" = "xyes"; then
 
4847
  CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
 
4848
fi
4500
4849
 
4501
4850
# Checks for typedefs, structures, and compiler characteristics.
4502
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4503
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4504
 
if test "${ac_cv_c_const+set}" = set; then
4505
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
4852
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
4853
if test "${ac_cv_c_const+set}" = set; then :
 
4854
  $as_echo_n "(cached) " >&6
4506
4855
else
4507
 
  cat >conftest.$ac_ext <<_ACEOF
4508
 
/* confdefs.h.  */
4509
 
_ACEOF
4510
 
cat confdefs.h >>conftest.$ac_ext
4511
 
cat >>conftest.$ac_ext <<_ACEOF
 
4856
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512
4857
/* end confdefs.h.  */
4513
4858
 
4514
4859
int
4568
4913
  return 0;
4569
4914
}
4570
4915
_ACEOF
4571
 
rm -f conftest.$ac_objext
4572
 
if { (ac_try="$ac_compile"
4573
 
case "(($ac_try" in
4574
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575
 
  *) ac_try_echo=$ac_try;;
4576
 
esac
4577
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578
 
  (eval "$ac_compile") 2>conftest.er1
4579
 
  ac_status=$?
4580
 
  grep -v '^ *+' conftest.er1 >conftest.err
4581
 
  rm -f conftest.er1
4582
 
  cat conftest.err >&5
4583
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584
 
  (exit $ac_status); } && {
4585
 
         test -z "$ac_c_werror_flag" ||
4586
 
         test ! -s conftest.err
4587
 
       } && test -s conftest.$ac_objext; then
 
4916
if ac_fn_c_try_compile "$LINENO"; then :
4588
4917
  ac_cv_c_const=yes
4589
4918
else
4590
 
  echo "$as_me: failed program was:" >&5
4591
 
sed 's/^/| /' conftest.$ac_ext >&5
4592
 
 
4593
 
        ac_cv_c_const=no
 
4919
  ac_cv_c_const=no
4594
4920
fi
4595
 
 
4596
4921
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597
4922
fi
4598
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4599
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
4923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
4924
$as_echo "$ac_cv_c_const" >&6; }
4600
4925
if test $ac_cv_c_const = no; then
4601
4926
 
4602
 
cat >>confdefs.h <<\_ACEOF
4603
 
#define const
4604
 
_ACEOF
 
4927
$as_echo "#define const /**/" >>confdefs.h
4605
4928
 
4606
4929
fi
4607
4930
 
4608
 
{ echo "$as_me:$LINENO: checking for inline" >&5
4609
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4610
 
if test "${ac_cv_c_inline+set}" = set; then
4611
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
4932
$as_echo_n "checking for inline... " >&6; }
 
4933
if test "${ac_cv_c_inline+set}" = set; then :
 
4934
  $as_echo_n "(cached) " >&6
4612
4935
else
4613
4936
  ac_cv_c_inline=no
4614
4937
for ac_kw in inline __inline__ __inline; do
4615
 
  cat >conftest.$ac_ext <<_ACEOF
4616
 
/* confdefs.h.  */
4617
 
_ACEOF
4618
 
cat confdefs.h >>conftest.$ac_ext
4619
 
cat >>conftest.$ac_ext <<_ACEOF
 
4938
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620
4939
/* end confdefs.h.  */
4621
4940
#ifndef __cplusplus
4622
4941
typedef int foo_t;
4625
4944
#endif
4626
4945
 
4627
4946
_ACEOF
4628
 
rm -f conftest.$ac_objext
4629
 
if { (ac_try="$ac_compile"
4630
 
case "(($ac_try" in
4631
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632
 
  *) ac_try_echo=$ac_try;;
4633
 
esac
4634
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635
 
  (eval "$ac_compile") 2>conftest.er1
4636
 
  ac_status=$?
4637
 
  grep -v '^ *+' conftest.er1 >conftest.err
4638
 
  rm -f conftest.er1
4639
 
  cat conftest.err >&5
4640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641
 
  (exit $ac_status); } && {
4642
 
         test -z "$ac_c_werror_flag" ||
4643
 
         test ! -s conftest.err
4644
 
       } && test -s conftest.$ac_objext; then
 
4947
if ac_fn_c_try_compile "$LINENO"; then :
4645
4948
  ac_cv_c_inline=$ac_kw
4646
 
else
4647
 
  echo "$as_me: failed program was:" >&5
4648
 
sed 's/^/| /' conftest.$ac_ext >&5
4649
 
 
4650
 
 
4651
4949
fi
4652
 
 
4653
4950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654
4951
  test "$ac_cv_c_inline" != no && break
4655
4952
done
4656
4953
 
4657
4954
fi
4658
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4659
 
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4660
 
 
 
4955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
4956
$as_echo "$ac_cv_c_inline" >&6; }
4661
4957
 
4662
4958
case $ac_cv_c_inline in
4663
4959
  inline | yes) ;;
4679
4975
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680
4976
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681
4977
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4683
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4979
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4684
4980
# On Suns, sometimes $CPP names a directory.
4685
4981
if test -n "$CPP" && test -d "$CPP"; then
4686
4982
  CPP=
4687
4983
fi
4688
4984
if test -z "$CPP"; then
4689
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4690
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4985
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
4986
  $as_echo_n "(cached) " >&6
4691
4987
else
4692
4988
      # Double quotes because CPP needs to be expanded
4693
4989
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4701
4997
  # <limits.h> exists even on freestanding compilers.
4702
4998
  # On the NeXT, cc -E runs the code through the compiler's parser,
4703
4999
  # not just through cpp. "Syntax error" is here to catch this case.
4704
 
  cat >conftest.$ac_ext <<_ACEOF
4705
 
/* confdefs.h.  */
4706
 
_ACEOF
4707
 
cat confdefs.h >>conftest.$ac_ext
4708
 
cat >>conftest.$ac_ext <<_ACEOF
 
5000
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709
5001
/* end confdefs.h.  */
4710
5002
#ifdef __STDC__
4711
5003
# include <limits.h>
4714
5006
#endif
4715
5007
                     Syntax error
4716
5008
_ACEOF
4717
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4718
 
case "(($ac_try" in
4719
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720
 
  *) ac_try_echo=$ac_try;;
4721
 
esac
4722
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724
 
  ac_status=$?
4725
 
  grep -v '^ *+' conftest.er1 >conftest.err
4726
 
  rm -f conftest.er1
4727
 
  cat conftest.err >&5
4728
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729
 
  (exit $ac_status); } >/dev/null && {
4730
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731
 
         test ! -s conftest.err
4732
 
       }; then
4733
 
  :
 
5009
if ac_fn_c_try_cpp "$LINENO"; then :
 
5010
 
4734
5011
else
4735
 
  echo "$as_me: failed program was:" >&5
4736
 
sed 's/^/| /' conftest.$ac_ext >&5
4737
 
 
4738
5012
  # Broken: fails on valid input.
4739
5013
continue
4740
5014
fi
4741
 
 
4742
 
rm -f conftest.err conftest.$ac_ext
 
5015
rm -f conftest.err conftest.i conftest.$ac_ext
4743
5016
 
4744
5017
  # OK, works on sane cases.  Now check whether nonexistent headers
4745
5018
  # can be detected and how.
4746
 
  cat >conftest.$ac_ext <<_ACEOF
4747
 
/* confdefs.h.  */
4748
 
_ACEOF
4749
 
cat confdefs.h >>conftest.$ac_ext
4750
 
cat >>conftest.$ac_ext <<_ACEOF
 
5019
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751
5020
/* end confdefs.h.  */
4752
5021
#include <ac_nonexistent.h>
4753
5022
_ACEOF
4754
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4755
 
case "(($ac_try" in
4756
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757
 
  *) ac_try_echo=$ac_try;;
4758
 
esac
4759
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4761
 
  ac_status=$?
4762
 
  grep -v '^ *+' conftest.er1 >conftest.err
4763
 
  rm -f conftest.er1
4764
 
  cat conftest.err >&5
4765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766
 
  (exit $ac_status); } >/dev/null && {
4767
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4768
 
         test ! -s conftest.err
4769
 
       }; then
 
5023
if ac_fn_c_try_cpp "$LINENO"; then :
4770
5024
  # Broken: success on invalid input.
4771
5025
continue
4772
5026
else
4773
 
  echo "$as_me: failed program was:" >&5
4774
 
sed 's/^/| /' conftest.$ac_ext >&5
4775
 
 
4776
5027
  # Passes both tests.
4777
5028
ac_preproc_ok=:
4778
5029
break
4779
5030
fi
4780
 
 
4781
 
rm -f conftest.err conftest.$ac_ext
 
5031
rm -f conftest.err conftest.i conftest.$ac_ext
4782
5032
 
4783
5033
done
4784
5034
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4785
 
rm -f conftest.err conftest.$ac_ext
4786
 
if $ac_preproc_ok; then
 
5035
rm -f conftest.i conftest.err conftest.$ac_ext
 
5036
if $ac_preproc_ok; then :
4787
5037
  break
4788
5038
fi
4789
5039
 
4795
5045
else
4796
5046
  ac_cv_prog_CPP=$CPP
4797
5047
fi
4798
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
4799
 
echo "${ECHO_T}$CPP" >&6; }
 
5048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
5049
$as_echo "$CPP" >&6; }
4800
5050
ac_preproc_ok=false
4801
5051
for ac_c_preproc_warn_flag in '' yes
4802
5052
do
4806
5056
  # <limits.h> exists even on freestanding compilers.
4807
5057
  # On the NeXT, cc -E runs the code through the compiler's parser,
4808
5058
  # not just through cpp. "Syntax error" is here to catch this case.
4809
 
  cat >conftest.$ac_ext <<_ACEOF
4810
 
/* confdefs.h.  */
4811
 
_ACEOF
4812
 
cat confdefs.h >>conftest.$ac_ext
4813
 
cat >>conftest.$ac_ext <<_ACEOF
 
5059
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814
5060
/* end confdefs.h.  */
4815
5061
#ifdef __STDC__
4816
5062
# include <limits.h>
4819
5065
#endif
4820
5066
                     Syntax error
4821
5067
_ACEOF
4822
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4823
 
case "(($ac_try" in
4824
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825
 
  *) ac_try_echo=$ac_try;;
4826
 
esac
4827
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4829
 
  ac_status=$?
4830
 
  grep -v '^ *+' conftest.er1 >conftest.err
4831
 
  rm -f conftest.er1
4832
 
  cat conftest.err >&5
4833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834
 
  (exit $ac_status); } >/dev/null && {
4835
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4836
 
         test ! -s conftest.err
4837
 
       }; then
4838
 
  :
 
5068
if ac_fn_c_try_cpp "$LINENO"; then :
 
5069
 
4839
5070
else
4840
 
  echo "$as_me: failed program was:" >&5
4841
 
sed 's/^/| /' conftest.$ac_ext >&5
4842
 
 
4843
5071
  # Broken: fails on valid input.
4844
5072
continue
4845
5073
fi
4846
 
 
4847
 
rm -f conftest.err conftest.$ac_ext
 
5074
rm -f conftest.err conftest.i conftest.$ac_ext
4848
5075
 
4849
5076
  # OK, works on sane cases.  Now check whether nonexistent headers
4850
5077
  # can be detected and how.
4851
 
  cat >conftest.$ac_ext <<_ACEOF
4852
 
/* confdefs.h.  */
4853
 
_ACEOF
4854
 
cat confdefs.h >>conftest.$ac_ext
4855
 
cat >>conftest.$ac_ext <<_ACEOF
 
5078
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856
5079
/* end confdefs.h.  */
4857
5080
#include <ac_nonexistent.h>
4858
5081
_ACEOF
4859
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4860
 
case "(($ac_try" in
4861
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862
 
  *) ac_try_echo=$ac_try;;
4863
 
esac
4864
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4866
 
  ac_status=$?
4867
 
  grep -v '^ *+' conftest.er1 >conftest.err
4868
 
  rm -f conftest.er1
4869
 
  cat conftest.err >&5
4870
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871
 
  (exit $ac_status); } >/dev/null && {
4872
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4873
 
         test ! -s conftest.err
4874
 
       }; then
 
5082
if ac_fn_c_try_cpp "$LINENO"; then :
4875
5083
  # Broken: success on invalid input.
4876
5084
continue
4877
5085
else
4878
 
  echo "$as_me: failed program was:" >&5
4879
 
sed 's/^/| /' conftest.$ac_ext >&5
4880
 
 
4881
5086
  # Passes both tests.
4882
5087
ac_preproc_ok=:
4883
5088
break
4884
5089
fi
4885
 
 
4886
 
rm -f conftest.err conftest.$ac_ext
 
5090
rm -f conftest.err conftest.i conftest.$ac_ext
4887
5091
 
4888
5092
done
4889
5093
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4890
 
rm -f conftest.err conftest.$ac_ext
4891
 
if $ac_preproc_ok; then
4892
 
  :
 
5094
rm -f conftest.i conftest.err conftest.$ac_ext
 
5095
if $ac_preproc_ok; then :
 
5096
 
4893
5097
else
4894
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4895
 
See \`config.log' for more details." >&5
4896
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4897
 
See \`config.log' for more details." >&2;}
4898
 
   { (exit 1); exit 1; }; }
 
5098
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5099
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5100
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
5101
See \`config.log' for more details" "$LINENO" 5 ; }
4899
5102
fi
4900
5103
 
4901
5104
ac_ext=c
4905
5108
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906
5109
 
4907
5110
 
4908
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4909
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4910
 
if test "${ac_cv_path_GREP+set}" = set; then
4911
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4912
 
else
4913
 
  # Extract the first word of "grep ggrep" to use in msg output
4914
 
if test -z "$GREP"; then
4915
 
set dummy grep ggrep; ac_prog_name=$2
4916
 
if test "${ac_cv_path_GREP+set}" = set; then
4917
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4918
 
else
 
5111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
5112
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
5113
if test "${ac_cv_path_GREP+set}" = set; then :
 
5114
  $as_echo_n "(cached) " >&6
 
5115
else
 
5116
  if test -z "$GREP"; then
4919
5117
  ac_path_GREP_found=false
4920
 
# Loop through the user's path and test for each of PROGNAME-LIST
4921
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5118
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5119
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922
5120
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4923
5121
do
4924
5122
  IFS=$as_save_IFS
4925
5123
  test -z "$as_dir" && as_dir=.
4926
 
  for ac_prog in grep ggrep; do
4927
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4928
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4929
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4930
 
    # Check for GNU ac_path_GREP and select it if it is found.
 
5124
    for ac_prog in grep ggrep; do
 
5125
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5126
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
5127
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
5128
# Check for GNU ac_path_GREP and select it if it is found.
4931
5129
  # Check for GNU $ac_path_GREP
4932
5130
case `"$ac_path_GREP" --version 2>&1` in
4933
5131
*GNU*)
4934
5132
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4935
5133
*)
4936
5134
  ac_count=0
4937
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5135
  $as_echo_n 0123456789 >"conftest.in"
4938
5136
  while :
4939
5137
  do
4940
5138
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4941
5139
    mv "conftest.tmp" "conftest.in"
4942
5140
    cp "conftest.in" "conftest.nl"
4943
 
    echo 'GREP' >> "conftest.nl"
 
5141
    $as_echo 'GREP' >> "conftest.nl"
4944
5142
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945
5143
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946
 
    ac_count=`expr $ac_count + 1`
 
5144
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4947
5145
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4948
5146
      # Best one so far, save it but keep looking for a better one
4949
5147
      ac_cv_path_GREP="$ac_path_GREP"
4955
5153
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956
5154
esac
4957
5155
 
4958
 
 
4959
 
    $ac_path_GREP_found && break 3
4960
 
  done
4961
 
done
4962
 
 
4963
 
done
 
5156
      $ac_path_GREP_found && break 3
 
5157
    done
 
5158
  done
 
5159
  done
4964
5160
IFS=$as_save_IFS
4965
 
 
4966
 
 
4967
 
fi
4968
 
 
4969
 
GREP="$ac_cv_path_GREP"
4970
 
if test -z "$GREP"; then
4971
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4972
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4973
 
   { (exit 1); exit 1; }; }
4974
 
fi
4975
 
 
 
5161
  if test -z "$ac_cv_path_GREP"; then
 
5162
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5163
  fi
4976
5164
else
4977
5165
  ac_cv_path_GREP=$GREP
4978
5166
fi
4979
5167
 
4980
 
 
4981
5168
fi
4982
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4983
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
5169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
5170
$as_echo "$ac_cv_path_GREP" >&6; }
4984
5171
 GREP="$ac_cv_path_GREP"
4985
5172
 
4986
5173
 
4987
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
4988
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4989
 
if test "${ac_cv_path_EGREP+set}" = set; then
4990
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
5175
$as_echo_n "checking for egrep... " >&6; }
 
5176
if test "${ac_cv_path_EGREP+set}" = set; then :
 
5177
  $as_echo_n "(cached) " >&6
4991
5178
else
4992
5179
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4993
5180
   then ac_cv_path_EGREP="$GREP -E"
4994
5181
   else
4995
 
     # Extract the first word of "egrep" to use in msg output
4996
 
if test -z "$EGREP"; then
4997
 
set dummy egrep; ac_prog_name=$2
4998
 
if test "${ac_cv_path_EGREP+set}" = set; then
4999
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5000
 
else
 
5182
     if test -z "$EGREP"; then
5001
5183
  ac_path_EGREP_found=false
5002
 
# Loop through the user's path and test for each of PROGNAME-LIST
5003
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5184
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004
5186
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5005
5187
do
5006
5188
  IFS=$as_save_IFS
5007
5189
  test -z "$as_dir" && as_dir=.
5008
 
  for ac_prog in egrep; do
5009
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5010
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5011
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5012
 
    # Check for GNU ac_path_EGREP and select it if it is found.
 
5190
    for ac_prog in egrep; do
 
5191
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5192
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5193
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
5194
# Check for GNU ac_path_EGREP and select it if it is found.
5013
5195
  # Check for GNU $ac_path_EGREP
5014
5196
case `"$ac_path_EGREP" --version 2>&1` in
5015
5197
*GNU*)
5016
5198
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5017
5199
*)
5018
5200
  ac_count=0
5019
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5201
  $as_echo_n 0123456789 >"conftest.in"
5020
5202
  while :
5021
5203
  do
5022
5204
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5023
5205
    mv "conftest.tmp" "conftest.in"
5024
5206
    cp "conftest.in" "conftest.nl"
5025
 
    echo 'EGREP' >> "conftest.nl"
 
5207
    $as_echo 'EGREP' >> "conftest.nl"
5026
5208
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5027
5209
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5028
 
    ac_count=`expr $ac_count + 1`
 
5210
    as_fn_arith $ac_count + 1 && ac_count=$as_val
5029
5211
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5030
5212
      # Best one so far, save it but keep looking for a better one
5031
5213
      ac_cv_path_EGREP="$ac_path_EGREP"
5037
5219
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5038
5220
esac
5039
5221
 
5040
 
 
5041
 
    $ac_path_EGREP_found && break 3
5042
 
  done
5043
 
done
5044
 
 
5045
 
done
 
5222
      $ac_path_EGREP_found && break 3
 
5223
    done
 
5224
  done
 
5225
  done
5046
5226
IFS=$as_save_IFS
5047
 
 
5048
 
 
5049
 
fi
5050
 
 
5051
 
EGREP="$ac_cv_path_EGREP"
5052
 
if test -z "$EGREP"; then
5053
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5054
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5055
 
   { (exit 1); exit 1; }; }
5056
 
fi
5057
 
 
 
5227
  if test -z "$ac_cv_path_EGREP"; then
 
5228
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5229
  fi
5058
5230
else
5059
5231
  ac_cv_path_EGREP=$EGREP
5060
5232
fi
5061
5233
 
5062
 
 
5063
5234
   fi
5064
5235
fi
5065
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5066
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
5236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
5237
$as_echo "$ac_cv_path_EGREP" >&6; }
5067
5238
 EGREP="$ac_cv_path_EGREP"
5068
5239
 
5069
5240
 
5070
 
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5071
 
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5072
 
if test "${ac_cv_type_uid_t+set}" = set; then
5073
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
 
5242
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
 
5243
if test "${ac_cv_type_uid_t+set}" = set; then :
 
5244
  $as_echo_n "(cached) " >&6
5074
5245
else
5075
 
  cat >conftest.$ac_ext <<_ACEOF
5076
 
/* confdefs.h.  */
5077
 
_ACEOF
5078
 
cat confdefs.h >>conftest.$ac_ext
5079
 
cat >>conftest.$ac_ext <<_ACEOF
 
5246
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080
5247
/* end confdefs.h.  */
5081
5248
#include <sys/types.h>
5082
5249
 
5083
5250
_ACEOF
5084
5251
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085
 
  $EGREP "uid_t" >/dev/null 2>&1; then
 
5252
  $EGREP "uid_t" >/dev/null 2>&1; then :
5086
5253
  ac_cv_type_uid_t=yes
5087
5254
else
5088
5255
  ac_cv_type_uid_t=no
5090
5257
rm -f conftest*
5091
5258
 
5092
5259
fi
5093
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5094
 
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
 
5260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
 
5261
$as_echo "$ac_cv_type_uid_t" >&6; }
5095
5262
if test $ac_cv_type_uid_t = no; then
5096
5263
 
5097
 
cat >>confdefs.h <<\_ACEOF
5098
 
#define uid_t int
5099
 
_ACEOF
5100
 
 
5101
 
 
5102
 
cat >>confdefs.h <<\_ACEOF
5103
 
#define gid_t int
5104
 
_ACEOF
 
5264
$as_echo "#define uid_t int" >>confdefs.h
 
5265
 
 
5266
 
 
5267
$as_echo "#define gid_t int" >>confdefs.h
5105
5268
 
5106
5269
fi
5107
5270
 
5108
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5109
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5110
 
if test "${ac_cv_header_stdc+set}" = set; then
5111
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
5272
$as_echo_n "checking for ANSI C header files... " >&6; }
 
5273
if test "${ac_cv_header_stdc+set}" = set; then :
 
5274
  $as_echo_n "(cached) " >&6
5112
5275
else
5113
 
  cat >conftest.$ac_ext <<_ACEOF
5114
 
/* confdefs.h.  */
5115
 
_ACEOF
5116
 
cat confdefs.h >>conftest.$ac_ext
5117
 
cat >>conftest.$ac_ext <<_ACEOF
 
5276
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118
5277
/* end confdefs.h.  */
5119
5278
#include <stdlib.h>
5120
5279
#include <stdarg.h>
5129
5288
  return 0;
5130
5289
}
5131
5290
_ACEOF
5132
 
rm -f conftest.$ac_objext
5133
 
if { (ac_try="$ac_compile"
5134
 
case "(($ac_try" in
5135
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136
 
  *) ac_try_echo=$ac_try;;
5137
 
esac
5138
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139
 
  (eval "$ac_compile") 2>conftest.er1
5140
 
  ac_status=$?
5141
 
  grep -v '^ *+' conftest.er1 >conftest.err
5142
 
  rm -f conftest.er1
5143
 
  cat conftest.err >&5
5144
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145
 
  (exit $ac_status); } && {
5146
 
         test -z "$ac_c_werror_flag" ||
5147
 
         test ! -s conftest.err
5148
 
       } && test -s conftest.$ac_objext; then
 
5291
if ac_fn_c_try_compile "$LINENO"; then :
5149
5292
  ac_cv_header_stdc=yes
5150
5293
else
5151
 
  echo "$as_me: failed program was:" >&5
5152
 
sed 's/^/| /' conftest.$ac_ext >&5
5153
 
 
5154
 
        ac_cv_header_stdc=no
 
5294
  ac_cv_header_stdc=no
5155
5295
fi
5156
 
 
5157
5296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158
5297
 
5159
5298
if test $ac_cv_header_stdc = yes; then
5160
5299
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5161
 
  cat >conftest.$ac_ext <<_ACEOF
5162
 
/* confdefs.h.  */
5163
 
_ACEOF
5164
 
cat confdefs.h >>conftest.$ac_ext
5165
 
cat >>conftest.$ac_ext <<_ACEOF
 
5300
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166
5301
/* end confdefs.h.  */
5167
5302
#include <string.h>
5168
5303
 
5169
5304
_ACEOF
5170
5305
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5171
 
  $EGREP "memchr" >/dev/null 2>&1; then
5172
 
  :
 
5306
  $EGREP "memchr" >/dev/null 2>&1; then :
 
5307
 
5173
5308
else
5174
5309
  ac_cv_header_stdc=no
5175
5310
fi
5179
5314
 
5180
5315
if test $ac_cv_header_stdc = yes; then
5181
5316
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5182
 
  cat >conftest.$ac_ext <<_ACEOF
5183
 
/* confdefs.h.  */
5184
 
_ACEOF
5185
 
cat confdefs.h >>conftest.$ac_ext
5186
 
cat >>conftest.$ac_ext <<_ACEOF
 
5317
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187
5318
/* end confdefs.h.  */
5188
5319
#include <stdlib.h>
5189
5320
 
5190
5321
_ACEOF
5191
5322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192
 
  $EGREP "free" >/dev/null 2>&1; then
5193
 
  :
 
5323
  $EGREP "free" >/dev/null 2>&1; then :
 
5324
 
5194
5325
else
5195
5326
  ac_cv_header_stdc=no
5196
5327
fi
5200
5331
 
5201
5332
if test $ac_cv_header_stdc = yes; then
5202
5333
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5203
 
  if test "$cross_compiling" = yes; then
 
5334
  if test "$cross_compiling" = yes; then :
5204
5335
  :
5205
5336
else
5206
 
  cat >conftest.$ac_ext <<_ACEOF
5207
 
/* confdefs.h.  */
5208
 
_ACEOF
5209
 
cat confdefs.h >>conftest.$ac_ext
5210
 
cat >>conftest.$ac_ext <<_ACEOF
 
5337
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211
5338
/* end confdefs.h.  */
5212
5339
#include <ctype.h>
5213
5340
#include <stdlib.h>
5234
5361
  return 0;
5235
5362
}
5236
5363
_ACEOF
5237
 
rm -f conftest$ac_exeext
5238
 
if { (ac_try="$ac_link"
5239
 
case "(($ac_try" in
5240
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241
 
  *) ac_try_echo=$ac_try;;
5242
 
esac
5243
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244
 
  (eval "$ac_link") 2>&5
5245
 
  ac_status=$?
5246
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5248
 
  { (case "(($ac_try" in
5249
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250
 
  *) ac_try_echo=$ac_try;;
5251
 
esac
5252
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253
 
  (eval "$ac_try") 2>&5
5254
 
  ac_status=$?
5255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256
 
  (exit $ac_status); }; }; then
5257
 
  :
 
5364
if ac_fn_c_try_run "$LINENO"; then :
 
5365
 
5258
5366
else
5259
 
  echo "$as_me: program exited with status $ac_status" >&5
5260
 
echo "$as_me: failed program was:" >&5
5261
 
sed 's/^/| /' conftest.$ac_ext >&5
5262
 
 
5263
 
( exit $ac_status )
5264
 
ac_cv_header_stdc=no
5265
 
fi
5266
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5267
 
fi
5268
 
 
5269
 
 
5270
 
fi
5271
 
fi
5272
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5273
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5367
  ac_cv_header_stdc=no
 
5368
fi
 
5369
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5370
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5371
fi
 
5372
 
 
5373
fi
 
5374
fi
 
5375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
5376
$as_echo "$ac_cv_header_stdc" >&6; }
5274
5377
if test $ac_cv_header_stdc = yes; then
5275
5378
 
5276
 
cat >>confdefs.h <<\_ACEOF
5277
 
#define STDC_HEADERS 1
5278
 
_ACEOF
 
5379
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5279
5380
 
5280
5381
fi
5281
5382
 
5282
5383
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5283
 
 
5284
 
 
5285
 
 
5286
 
 
5287
 
 
5288
 
 
5289
 
 
5290
 
 
5291
 
 
5292
5384
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5293
5385
                  inttypes.h stdint.h unistd.h
5294
 
do
5295
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5297
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5298
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5300
 
else
5301
 
  cat >conftest.$ac_ext <<_ACEOF
5302
 
/* confdefs.h.  */
5303
 
_ACEOF
5304
 
cat confdefs.h >>conftest.$ac_ext
5305
 
cat >>conftest.$ac_ext <<_ACEOF
5306
 
/* end confdefs.h.  */
5307
 
$ac_includes_default
5308
 
 
5309
 
#include <$ac_header>
5310
 
_ACEOF
5311
 
rm -f conftest.$ac_objext
5312
 
if { (ac_try="$ac_compile"
5313
 
case "(($ac_try" in
5314
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315
 
  *) ac_try_echo=$ac_try;;
5316
 
esac
5317
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318
 
  (eval "$ac_compile") 2>conftest.er1
5319
 
  ac_status=$?
5320
 
  grep -v '^ *+' conftest.er1 >conftest.err
5321
 
  rm -f conftest.er1
5322
 
  cat conftest.err >&5
5323
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324
 
  (exit $ac_status); } && {
5325
 
         test -z "$ac_c_werror_flag" ||
5326
 
         test ! -s conftest.err
5327
 
       } && test -s conftest.$ac_objext; then
5328
 
  eval "$as_ac_Header=yes"
5329
 
else
5330
 
  echo "$as_me: failed program was:" >&5
5331
 
sed 's/^/| /' conftest.$ac_ext >&5
5332
 
 
5333
 
        eval "$as_ac_Header=no"
5334
 
fi
5335
 
 
5336
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337
 
fi
5338
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5339
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5340
 
echo "${ECHO_T}$ac_res" >&6; }
5341
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5386
do :
 
5387
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5388
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
5389
"
 
5390
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5342
5391
  cat >>confdefs.h <<_ACEOF
5343
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5392
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5344
5393
_ACEOF
5345
5394
 
5346
5395
fi
5348
5397
done
5349
5398
 
5350
5399
 
5351
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
5352
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5353
 
if test "${ac_cv_type_size_t+set}" = set; then
5354
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5355
 
else
5356
 
  cat >conftest.$ac_ext <<_ACEOF
5357
 
/* confdefs.h.  */
5358
 
_ACEOF
5359
 
cat confdefs.h >>conftest.$ac_ext
5360
 
cat >>conftest.$ac_ext <<_ACEOF
5361
 
/* end confdefs.h.  */
5362
 
$ac_includes_default
5363
 
typedef size_t ac__type_new_;
5364
 
int
5365
 
main ()
5366
 
{
5367
 
if ((ac__type_new_ *) 0)
5368
 
  return 0;
5369
 
if (sizeof (ac__type_new_))
5370
 
  return 0;
5371
 
  ;
5372
 
  return 0;
5373
 
}
5374
 
_ACEOF
5375
 
rm -f conftest.$ac_objext
5376
 
if { (ac_try="$ac_compile"
5377
 
case "(($ac_try" in
5378
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379
 
  *) ac_try_echo=$ac_try;;
5380
 
esac
5381
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382
 
  (eval "$ac_compile") 2>conftest.er1
5383
 
  ac_status=$?
5384
 
  grep -v '^ *+' conftest.er1 >conftest.err
5385
 
  rm -f conftest.er1
5386
 
  cat conftest.err >&5
5387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388
 
  (exit $ac_status); } && {
5389
 
         test -z "$ac_c_werror_flag" ||
5390
 
         test ! -s conftest.err
5391
 
       } && test -s conftest.$ac_objext; then
5392
 
  ac_cv_type_size_t=yes
5393
 
else
5394
 
  echo "$as_me: failed program was:" >&5
5395
 
sed 's/^/| /' conftest.$ac_ext >&5
5396
 
 
5397
 
        ac_cv_type_size_t=no
5398
 
fi
5399
 
 
5400
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401
 
fi
5402
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5403
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5404
 
if test $ac_cv_type_size_t = yes; then
5405
 
  :
 
5400
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
5401
if test "x$ac_cv_type_size_t" = x""yes; then :
 
5402
 
5406
5403
else
5407
5404
 
5408
5405
cat >>confdefs.h <<_ACEOF
5411
5408
 
5412
5409
fi
5413
5410
 
5414
 
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5415
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5416
 
if test "${ac_cv_header_time+set}" = set; then
5417
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
 
5412
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
5413
if test "${ac_cv_header_time+set}" = set; then :
 
5414
  $as_echo_n "(cached) " >&6
5418
5415
else
5419
 
  cat >conftest.$ac_ext <<_ACEOF
5420
 
/* confdefs.h.  */
5421
 
_ACEOF
5422
 
cat confdefs.h >>conftest.$ac_ext
5423
 
cat >>conftest.$ac_ext <<_ACEOF
 
5416
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424
5417
/* end confdefs.h.  */
5425
5418
#include <sys/types.h>
5426
5419
#include <sys/time.h>
5435
5428
  return 0;
5436
5429
}
5437
5430
_ACEOF
5438
 
rm -f conftest.$ac_objext
5439
 
if { (ac_try="$ac_compile"
5440
 
case "(($ac_try" in
5441
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442
 
  *) ac_try_echo=$ac_try;;
5443
 
esac
5444
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445
 
  (eval "$ac_compile") 2>conftest.er1
5446
 
  ac_status=$?
5447
 
  grep -v '^ *+' conftest.er1 >conftest.err
5448
 
  rm -f conftest.er1
5449
 
  cat conftest.err >&5
5450
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451
 
  (exit $ac_status); } && {
5452
 
         test -z "$ac_c_werror_flag" ||
5453
 
         test ! -s conftest.err
5454
 
       } && test -s conftest.$ac_objext; then
 
5431
if ac_fn_c_try_compile "$LINENO"; then :
5455
5432
  ac_cv_header_time=yes
5456
5433
else
5457
 
  echo "$as_me: failed program was:" >&5
5458
 
sed 's/^/| /' conftest.$ac_ext >&5
5459
 
 
5460
 
        ac_cv_header_time=no
 
5434
  ac_cv_header_time=no
5461
5435
fi
5462
 
 
5463
5436
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464
5437
fi
5465
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5466
 
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
5438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
 
5439
$as_echo "$ac_cv_header_time" >&6; }
5467
5440
if test $ac_cv_header_time = yes; then
5468
5441
 
5469
 
cat >>confdefs.h <<\_ACEOF
5470
 
#define TIME_WITH_SYS_TIME 1
5471
 
_ACEOF
5472
 
 
5473
 
fi
5474
 
 
5475
 
# Used by eratosthenes.c
5476
 
{ echo "$as_me:$LINENO: checking for long" >&5
5477
 
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5478
 
if test "${ac_cv_type_long+set}" = set; then
5479
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5480
 
else
5481
 
  cat >conftest.$ac_ext <<_ACEOF
5482
 
/* confdefs.h.  */
5483
 
_ACEOF
5484
 
cat confdefs.h >>conftest.$ac_ext
5485
 
cat >>conftest.$ac_ext <<_ACEOF
5486
 
/* end confdefs.h.  */
5487
 
$ac_includes_default
5488
 
typedef long ac__type_new_;
5489
 
int
5490
 
main ()
5491
 
{
5492
 
if ((ac__type_new_ *) 0)
5493
 
  return 0;
5494
 
if (sizeof (ac__type_new_))
5495
 
  return 0;
5496
 
  ;
5497
 
  return 0;
5498
 
}
5499
 
_ACEOF
5500
 
rm -f conftest.$ac_objext
5501
 
if { (ac_try="$ac_compile"
5502
 
case "(($ac_try" in
5503
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504
 
  *) ac_try_echo=$ac_try;;
5505
 
esac
5506
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507
 
  (eval "$ac_compile") 2>conftest.er1
5508
 
  ac_status=$?
5509
 
  grep -v '^ *+' conftest.er1 >conftest.err
5510
 
  rm -f conftest.er1
5511
 
  cat conftest.err >&5
5512
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513
 
  (exit $ac_status); } && {
5514
 
         test -z "$ac_c_werror_flag" ||
5515
 
         test ! -s conftest.err
5516
 
       } && test -s conftest.$ac_objext; then
5517
 
  ac_cv_type_long=yes
5518
 
else
5519
 
  echo "$as_me: failed program was:" >&5
5520
 
sed 's/^/| /' conftest.$ac_ext >&5
5521
 
 
5522
 
        ac_cv_type_long=no
5523
 
fi
5524
 
 
5525
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526
 
fi
5527
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5528
 
echo "${ECHO_T}$ac_cv_type_long" >&6; }
 
5442
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
 
5443
 
 
5444
fi
5529
5445
 
5530
5446
# The cast to long int works around a bug in the HP C Compiler
5531
5447
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5532
5448
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5533
5449
# This bug is HP SR number 8606223364.
5534
 
{ echo "$as_me:$LINENO: checking size of long" >&5
5535
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5536
 
if test "${ac_cv_sizeof_long+set}" = set; then
5537
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5538
 
else
5539
 
  if test "$cross_compiling" = yes; then
5540
 
  # Depending upon the size, compute the lo and hi bounds.
5541
 
cat >conftest.$ac_ext <<_ACEOF
5542
 
/* confdefs.h.  */
5543
 
_ACEOF
5544
 
cat confdefs.h >>conftest.$ac_ext
5545
 
cat >>conftest.$ac_ext <<_ACEOF
5546
 
/* end confdefs.h.  */
5547
 
$ac_includes_default
5548
 
   typedef long ac__type_sizeof_;
5549
 
int
5550
 
main ()
5551
 
{
5552
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5553
 
test_array [0] = 0
5554
 
 
5555
 
  ;
5556
 
  return 0;
5557
 
}
5558
 
_ACEOF
5559
 
rm -f conftest.$ac_objext
5560
 
if { (ac_try="$ac_compile"
5561
 
case "(($ac_try" in
5562
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563
 
  *) ac_try_echo=$ac_try;;
5564
 
esac
5565
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566
 
  (eval "$ac_compile") 2>conftest.er1
5567
 
  ac_status=$?
5568
 
  grep -v '^ *+' conftest.er1 >conftest.err
5569
 
  rm -f conftest.er1
5570
 
  cat conftest.err >&5
5571
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572
 
  (exit $ac_status); } && {
5573
 
         test -z "$ac_c_werror_flag" ||
5574
 
         test ! -s conftest.err
5575
 
       } && test -s conftest.$ac_objext; then
5576
 
  ac_lo=0 ac_mid=0
5577
 
  while :; do
5578
 
    cat >conftest.$ac_ext <<_ACEOF
5579
 
/* confdefs.h.  */
5580
 
_ACEOF
5581
 
cat confdefs.h >>conftest.$ac_ext
5582
 
cat >>conftest.$ac_ext <<_ACEOF
5583
 
/* end confdefs.h.  */
5584
 
$ac_includes_default
5585
 
   typedef long ac__type_sizeof_;
5586
 
int
5587
 
main ()
5588
 
{
5589
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5590
 
test_array [0] = 0
5591
 
 
5592
 
  ;
5593
 
  return 0;
5594
 
}
5595
 
_ACEOF
5596
 
rm -f conftest.$ac_objext
5597
 
if { (ac_try="$ac_compile"
5598
 
case "(($ac_try" in
5599
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600
 
  *) ac_try_echo=$ac_try;;
5601
 
esac
5602
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603
 
  (eval "$ac_compile") 2>conftest.er1
5604
 
  ac_status=$?
5605
 
  grep -v '^ *+' conftest.er1 >conftest.err
5606
 
  rm -f conftest.er1
5607
 
  cat conftest.err >&5
5608
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609
 
  (exit $ac_status); } && {
5610
 
         test -z "$ac_c_werror_flag" ||
5611
 
         test ! -s conftest.err
5612
 
       } && test -s conftest.$ac_objext; then
5613
 
  ac_hi=$ac_mid; break
5614
 
else
5615
 
  echo "$as_me: failed program was:" >&5
5616
 
sed 's/^/| /' conftest.$ac_ext >&5
5617
 
 
5618
 
        ac_lo=`expr $ac_mid + 1`
5619
 
                        if test $ac_lo -le $ac_mid; then
5620
 
                          ac_lo= ac_hi=
5621
 
                          break
5622
 
                        fi
5623
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
5624
 
fi
5625
 
 
5626
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627
 
  done
5628
 
else
5629
 
  echo "$as_me: failed program was:" >&5
5630
 
sed 's/^/| /' conftest.$ac_ext >&5
5631
 
 
5632
 
        cat >conftest.$ac_ext <<_ACEOF
5633
 
/* confdefs.h.  */
5634
 
_ACEOF
5635
 
cat confdefs.h >>conftest.$ac_ext
5636
 
cat >>conftest.$ac_ext <<_ACEOF
5637
 
/* end confdefs.h.  */
5638
 
$ac_includes_default
5639
 
   typedef long ac__type_sizeof_;
5640
 
int
5641
 
main ()
5642
 
{
5643
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5644
 
test_array [0] = 0
5645
 
 
5646
 
  ;
5647
 
  return 0;
5648
 
}
5649
 
_ACEOF
5650
 
rm -f conftest.$ac_objext
5651
 
if { (ac_try="$ac_compile"
5652
 
case "(($ac_try" in
5653
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654
 
  *) ac_try_echo=$ac_try;;
5655
 
esac
5656
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657
 
  (eval "$ac_compile") 2>conftest.er1
5658
 
  ac_status=$?
5659
 
  grep -v '^ *+' conftest.er1 >conftest.err
5660
 
  rm -f conftest.er1
5661
 
  cat conftest.err >&5
5662
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663
 
  (exit $ac_status); } && {
5664
 
         test -z "$ac_c_werror_flag" ||
5665
 
         test ! -s conftest.err
5666
 
       } && test -s conftest.$ac_objext; then
5667
 
  ac_hi=-1 ac_mid=-1
5668
 
  while :; do
5669
 
    cat >conftest.$ac_ext <<_ACEOF
5670
 
/* confdefs.h.  */
5671
 
_ACEOF
5672
 
cat confdefs.h >>conftest.$ac_ext
5673
 
cat >>conftest.$ac_ext <<_ACEOF
5674
 
/* end confdefs.h.  */
5675
 
$ac_includes_default
5676
 
   typedef long ac__type_sizeof_;
5677
 
int
5678
 
main ()
5679
 
{
5680
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5681
 
test_array [0] = 0
5682
 
 
5683
 
  ;
5684
 
  return 0;
5685
 
}
5686
 
_ACEOF
5687
 
rm -f conftest.$ac_objext
5688
 
if { (ac_try="$ac_compile"
5689
 
case "(($ac_try" in
5690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691
 
  *) ac_try_echo=$ac_try;;
5692
 
esac
5693
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694
 
  (eval "$ac_compile") 2>conftest.er1
5695
 
  ac_status=$?
5696
 
  grep -v '^ *+' conftest.er1 >conftest.err
5697
 
  rm -f conftest.er1
5698
 
  cat conftest.err >&5
5699
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700
 
  (exit $ac_status); } && {
5701
 
         test -z "$ac_c_werror_flag" ||
5702
 
         test ! -s conftest.err
5703
 
       } && test -s conftest.$ac_objext; then
5704
 
  ac_lo=$ac_mid; break
5705
 
else
5706
 
  echo "$as_me: failed program was:" >&5
5707
 
sed 's/^/| /' conftest.$ac_ext >&5
5708
 
 
5709
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
5710
 
                        if test $ac_mid -le $ac_hi; then
5711
 
                          ac_lo= ac_hi=
5712
 
                          break
5713
 
                        fi
5714
 
                        ac_mid=`expr 2 '*' $ac_mid`
5715
 
fi
5716
 
 
5717
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718
 
  done
5719
 
else
5720
 
  echo "$as_me: failed program was:" >&5
5721
 
sed 's/^/| /' conftest.$ac_ext >&5
5722
 
 
5723
 
        ac_lo= ac_hi=
5724
 
fi
5725
 
 
5726
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727
 
fi
5728
 
 
5729
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730
 
# Binary search between lo and hi bounds.
5731
 
while test "x$ac_lo" != "x$ac_hi"; do
5732
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5733
 
  cat >conftest.$ac_ext <<_ACEOF
5734
 
/* confdefs.h.  */
5735
 
_ACEOF
5736
 
cat confdefs.h >>conftest.$ac_ext
5737
 
cat >>conftest.$ac_ext <<_ACEOF
5738
 
/* end confdefs.h.  */
5739
 
$ac_includes_default
5740
 
   typedef long ac__type_sizeof_;
5741
 
int
5742
 
main ()
5743
 
{
5744
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5745
 
test_array [0] = 0
5746
 
 
5747
 
  ;
5748
 
  return 0;
5749
 
}
5750
 
_ACEOF
5751
 
rm -f conftest.$ac_objext
5752
 
if { (ac_try="$ac_compile"
5753
 
case "(($ac_try" in
5754
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755
 
  *) ac_try_echo=$ac_try;;
5756
 
esac
5757
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758
 
  (eval "$ac_compile") 2>conftest.er1
5759
 
  ac_status=$?
5760
 
  grep -v '^ *+' conftest.er1 >conftest.err
5761
 
  rm -f conftest.er1
5762
 
  cat conftest.err >&5
5763
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764
 
  (exit $ac_status); } && {
5765
 
         test -z "$ac_c_werror_flag" ||
5766
 
         test ! -s conftest.err
5767
 
       } && test -s conftest.$ac_objext; then
5768
 
  ac_hi=$ac_mid
5769
 
else
5770
 
  echo "$as_me: failed program was:" >&5
5771
 
sed 's/^/| /' conftest.$ac_ext >&5
5772
 
 
5773
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
5774
 
fi
5775
 
 
5776
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777
 
done
5778
 
case $ac_lo in
5779
 
?*) ac_cv_sizeof_long=$ac_lo;;
5780
 
'') if test "$ac_cv_type_long" = yes; then
5781
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5782
 
See \`config.log' for more details." >&5
5783
 
echo "$as_me: error: cannot compute sizeof (long)
5784
 
See \`config.log' for more details." >&2;}
5785
 
   { (exit 77); exit 77; }; }
5786
 
   else
5787
 
     ac_cv_sizeof_long=0
5788
 
   fi ;;
5789
 
esac
5790
 
else
5791
 
  cat >conftest.$ac_ext <<_ACEOF
5792
 
/* confdefs.h.  */
5793
 
_ACEOF
5794
 
cat confdefs.h >>conftest.$ac_ext
5795
 
cat >>conftest.$ac_ext <<_ACEOF
5796
 
/* end confdefs.h.  */
5797
 
$ac_includes_default
5798
 
   typedef long ac__type_sizeof_;
5799
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5800
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5801
 
#include <stdio.h>
5802
 
#include <stdlib.h>
5803
 
int
5804
 
main ()
5805
 
{
5806
 
 
5807
 
  FILE *f = fopen ("conftest.val", "w");
5808
 
  if (! f)
5809
 
    return 1;
5810
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5811
 
    {
5812
 
      long int i = longval ();
5813
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5814
 
        return 1;
5815
 
      fprintf (f, "%ld\n", i);
5816
 
    }
5817
 
  else
5818
 
    {
5819
 
      unsigned long int i = ulongval ();
5820
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
5821
 
        return 1;
5822
 
      fprintf (f, "%lu\n", i);
5823
 
    }
5824
 
  return ferror (f) || fclose (f) != 0;
5825
 
 
5826
 
  ;
5827
 
  return 0;
5828
 
}
5829
 
_ACEOF
5830
 
rm -f conftest$ac_exeext
5831
 
if { (ac_try="$ac_link"
5832
 
case "(($ac_try" in
5833
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834
 
  *) ac_try_echo=$ac_try;;
5835
 
esac
5836
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837
 
  (eval "$ac_link") 2>&5
5838
 
  ac_status=$?
5839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5841
 
  { (case "(($ac_try" in
5842
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843
 
  *) ac_try_echo=$ac_try;;
5844
 
esac
5845
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846
 
  (eval "$ac_try") 2>&5
5847
 
  ac_status=$?
5848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849
 
  (exit $ac_status); }; }; then
5850
 
  ac_cv_sizeof_long=`cat conftest.val`
5851
 
else
5852
 
  echo "$as_me: program exited with status $ac_status" >&5
5853
 
echo "$as_me: failed program was:" >&5
5854
 
sed 's/^/| /' conftest.$ac_ext >&5
5855
 
 
5856
 
( exit $ac_status )
5857
 
if test "$ac_cv_type_long" = yes; then
5858
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5859
 
See \`config.log' for more details." >&5
5860
 
echo "$as_me: error: cannot compute sizeof (long)
5861
 
See \`config.log' for more details." >&2;}
5862
 
   { (exit 77); exit 77; }; }
 
5450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
5451
$as_echo_n "checking size of long... " >&6; }
 
5452
if test "${ac_cv_sizeof_long+set}" = set; then :
 
5453
  $as_echo_n "(cached) " >&6
 
5454
else
 
5455
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
5456
 
 
5457
else
 
5458
  if test "$ac_cv_type_long" = yes; then
 
5459
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5460
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5461
as_fn_error 77 "cannot compute sizeof (long)
 
5462
See \`config.log' for more details" "$LINENO" 5 ; }
5863
5463
   else
5864
5464
     ac_cv_sizeof_long=0
5865
5465
   fi
5866
5466
fi
5867
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5868
 
fi
5869
 
rm -f conftest.val
5870
 
fi
5871
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5872
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
5467
 
 
5468
fi
 
5469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
5470
$as_echo "$ac_cv_sizeof_long" >&6; }
5873
5471
 
5874
5472
 
5875
5473
 
5879
5477
 
5880
5478
 
5881
5479
 
5882
 
 
5883
 
 
5884
 
 
5885
 
 
5886
5480
for ac_header in openssl/blowfish.h openssl/des.h openssl/cast.h openssl/aes.h
5887
 
do
5888
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5889
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5890
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5891
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5892
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5893
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5894
 
fi
5895
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5896
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5897
 
echo "${ECHO_T}$ac_res" >&6; }
5898
 
else
5899
 
  # Is the header compilable?
5900
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5901
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5902
 
cat >conftest.$ac_ext <<_ACEOF
5903
 
/* confdefs.h.  */
5904
 
_ACEOF
5905
 
cat confdefs.h >>conftest.$ac_ext
5906
 
cat >>conftest.$ac_ext <<_ACEOF
5907
 
/* end confdefs.h.  */
5908
 
$ac_includes_default
5909
 
#include <$ac_header>
5910
 
_ACEOF
5911
 
rm -f conftest.$ac_objext
5912
 
if { (ac_try="$ac_compile"
5913
 
case "(($ac_try" in
5914
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915
 
  *) ac_try_echo=$ac_try;;
5916
 
esac
5917
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918
 
  (eval "$ac_compile") 2>conftest.er1
5919
 
  ac_status=$?
5920
 
  grep -v '^ *+' conftest.er1 >conftest.err
5921
 
  rm -f conftest.er1
5922
 
  cat conftest.err >&5
5923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924
 
  (exit $ac_status); } && {
5925
 
         test -z "$ac_c_werror_flag" ||
5926
 
         test ! -s conftest.err
5927
 
       } && test -s conftest.$ac_objext; then
5928
 
  ac_header_compiler=yes
5929
 
else
5930
 
  echo "$as_me: failed program was:" >&5
5931
 
sed 's/^/| /' conftest.$ac_ext >&5
5932
 
 
5933
 
        ac_header_compiler=no
5934
 
fi
5935
 
 
5936
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5938
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5939
 
 
5940
 
# Is the header present?
5941
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5942
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5943
 
cat >conftest.$ac_ext <<_ACEOF
5944
 
/* confdefs.h.  */
5945
 
_ACEOF
5946
 
cat confdefs.h >>conftest.$ac_ext
5947
 
cat >>conftest.$ac_ext <<_ACEOF
5948
 
/* end confdefs.h.  */
5949
 
#include <$ac_header>
5950
 
_ACEOF
5951
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5952
 
case "(($ac_try" in
5953
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954
 
  *) ac_try_echo=$ac_try;;
5955
 
esac
5956
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5958
 
  ac_status=$?
5959
 
  grep -v '^ *+' conftest.er1 >conftest.err
5960
 
  rm -f conftest.er1
5961
 
  cat conftest.err >&5
5962
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963
 
  (exit $ac_status); } >/dev/null && {
5964
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5965
 
         test ! -s conftest.err
5966
 
       }; then
5967
 
  ac_header_preproc=yes
5968
 
else
5969
 
  echo "$as_me: failed program was:" >&5
5970
 
sed 's/^/| /' conftest.$ac_ext >&5
5971
 
 
5972
 
  ac_header_preproc=no
5973
 
fi
5974
 
 
5975
 
rm -f conftest.err conftest.$ac_ext
5976
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5977
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5978
 
 
5979
 
# So?  What about this header?
5980
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5981
 
  yes:no: )
5982
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5983
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5984
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5985
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5986
 
    ac_header_preproc=yes
5987
 
    ;;
5988
 
  no:yes:* )
5989
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5990
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5991
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5992
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5993
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5994
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5995
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5996
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5997
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5998
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5999
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6000
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6001
 
    ( cat <<\_ASBOX
6002
 
## ----------------------------------------------- ##
6003
 
## Report this to nettle-bugs@lists.lysator.liu.se ##
6004
 
## ----------------------------------------------- ##
6005
 
_ASBOX
6006
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
6007
 
    ;;
6008
 
esac
6009
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6010
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6011
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6012
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6013
 
else
6014
 
  eval "$as_ac_Header=\$ac_header_preproc"
6015
 
fi
6016
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6017
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6018
 
echo "${ECHO_T}$ac_res" >&6; }
6019
 
 
6020
 
fi
6021
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5481
do :
 
5482
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5483
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5484
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6022
5485
  cat >>confdefs.h <<_ACEOF
6023
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5486
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6024
5487
_ACEOF
6025
5488
 
6026
5489
else
6033
5496
 
6034
5497
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6035
5498
# for constant arguments.  Useless!
6036
 
{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6037
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6038
 
if test "${ac_cv_working_alloca_h+set}" = set; then
6039
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
 
5500
$as_echo_n "checking for working alloca.h... " >&6; }
 
5501
if test "${ac_cv_working_alloca_h+set}" = set; then :
 
5502
  $as_echo_n "(cached) " >&6
6040
5503
else
6041
 
  cat >conftest.$ac_ext <<_ACEOF
6042
 
/* confdefs.h.  */
6043
 
_ACEOF
6044
 
cat confdefs.h >>conftest.$ac_ext
6045
 
cat >>conftest.$ac_ext <<_ACEOF
 
5504
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046
5505
/* end confdefs.h.  */
6047
5506
#include <alloca.h>
6048
5507
int
6054
5513
  return 0;
6055
5514
}
6056
5515
_ACEOF
6057
 
rm -f conftest.$ac_objext conftest$ac_exeext
6058
 
if { (ac_try="$ac_link"
6059
 
case "(($ac_try" in
6060
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061
 
  *) ac_try_echo=$ac_try;;
6062
 
esac
6063
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064
 
  (eval "$ac_link") 2>conftest.er1
6065
 
  ac_status=$?
6066
 
  grep -v '^ *+' conftest.er1 >conftest.err
6067
 
  rm -f conftest.er1
6068
 
  cat conftest.err >&5
6069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070
 
  (exit $ac_status); } && {
6071
 
         test -z "$ac_c_werror_flag" ||
6072
 
         test ! -s conftest.err
6073
 
       } && test -s conftest$ac_exeext &&
6074
 
       $as_test_x conftest$ac_exeext; then
 
5516
if ac_fn_c_try_link "$LINENO"; then :
6075
5517
  ac_cv_working_alloca_h=yes
6076
5518
else
6077
 
  echo "$as_me: failed program was:" >&5
6078
 
sed 's/^/| /' conftest.$ac_ext >&5
6079
 
 
6080
 
        ac_cv_working_alloca_h=no
6081
 
fi
6082
 
 
6083
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6084
 
      conftest$ac_exeext conftest.$ac_ext
6085
 
fi
6086
 
{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6087
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
 
5519
  ac_cv_working_alloca_h=no
 
5520
fi
 
5521
rm -f core conftest.err conftest.$ac_objext \
 
5522
    conftest$ac_exeext conftest.$ac_ext
 
5523
fi
 
5524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
 
5525
$as_echo "$ac_cv_working_alloca_h" >&6; }
6088
5526
if test $ac_cv_working_alloca_h = yes; then
6089
5527
 
6090
 
cat >>confdefs.h <<\_ACEOF
6091
 
#define HAVE_ALLOCA_H 1
6092
 
_ACEOF
 
5528
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6093
5529
 
6094
5530
fi
6095
5531
 
6096
 
{ echo "$as_me:$LINENO: checking for alloca" >&5
6097
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6098
 
if test "${ac_cv_func_alloca_works+set}" = set; then
6099
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
 
5533
$as_echo_n "checking for alloca... " >&6; }
 
5534
if test "${ac_cv_func_alloca_works+set}" = set; then :
 
5535
  $as_echo_n "(cached) " >&6
6100
5536
else
6101
 
  cat >conftest.$ac_ext <<_ACEOF
6102
 
/* confdefs.h.  */
6103
 
_ACEOF
6104
 
cat confdefs.h >>conftest.$ac_ext
6105
 
cat >>conftest.$ac_ext <<_ACEOF
 
5537
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106
5538
/* end confdefs.h.  */
6107
5539
#ifdef __GNUC__
6108
5540
# define alloca __builtin_alloca
6134
5566
  return 0;
6135
5567
}
6136
5568
_ACEOF
6137
 
rm -f conftest.$ac_objext conftest$ac_exeext
6138
 
if { (ac_try="$ac_link"
6139
 
case "(($ac_try" in
6140
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141
 
  *) ac_try_echo=$ac_try;;
6142
 
esac
6143
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144
 
  (eval "$ac_link") 2>conftest.er1
6145
 
  ac_status=$?
6146
 
  grep -v '^ *+' conftest.er1 >conftest.err
6147
 
  rm -f conftest.er1
6148
 
  cat conftest.err >&5
6149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150
 
  (exit $ac_status); } && {
6151
 
         test -z "$ac_c_werror_flag" ||
6152
 
         test ! -s conftest.err
6153
 
       } && test -s conftest$ac_exeext &&
6154
 
       $as_test_x conftest$ac_exeext; then
 
5569
if ac_fn_c_try_link "$LINENO"; then :
6155
5570
  ac_cv_func_alloca_works=yes
6156
5571
else
6157
 
  echo "$as_me: failed program was:" >&5
6158
 
sed 's/^/| /' conftest.$ac_ext >&5
6159
 
 
6160
 
        ac_cv_func_alloca_works=no
6161
 
fi
6162
 
 
6163
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6164
 
      conftest$ac_exeext conftest.$ac_ext
6165
 
fi
6166
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6167
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
 
5572
  ac_cv_func_alloca_works=no
 
5573
fi
 
5574
rm -f core conftest.err conftest.$ac_objext \
 
5575
    conftest$ac_exeext conftest.$ac_ext
 
5576
fi
 
5577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
 
5578
$as_echo "$ac_cv_func_alloca_works" >&6; }
6168
5579
 
6169
5580
if test $ac_cv_func_alloca_works = yes; then
6170
5581
 
6171
 
cat >>confdefs.h <<\_ACEOF
6172
 
#define HAVE_ALLOCA 1
6173
 
_ACEOF
 
5582
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6174
5583
 
6175
5584
else
6176
5585
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6180
5589
 
6181
5590
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6182
5591
 
6183
 
cat >>confdefs.h <<\_ACEOF
6184
 
#define C_ALLOCA 1
6185
 
_ACEOF
6186
 
 
6187
 
 
6188
 
{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6189
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6190
 
if test "${ac_cv_os_cray+set}" = set; then
6191
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5592
$as_echo "#define C_ALLOCA 1" >>confdefs.h
 
5593
 
 
5594
 
 
5595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
 
5596
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
5597
if test "${ac_cv_os_cray+set}" = set; then :
 
5598
  $as_echo_n "(cached) " >&6
6192
5599
else
6193
 
  cat >conftest.$ac_ext <<_ACEOF
6194
 
/* confdefs.h.  */
6195
 
_ACEOF
6196
 
cat confdefs.h >>conftest.$ac_ext
6197
 
cat >>conftest.$ac_ext <<_ACEOF
 
5600
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198
5601
/* end confdefs.h.  */
6199
5602
#if defined CRAY && ! defined CRAY2
6200
5603
webecray
6204
5607
 
6205
5608
_ACEOF
6206
5609
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6207
 
  $EGREP "webecray" >/dev/null 2>&1; then
 
5610
  $EGREP "webecray" >/dev/null 2>&1; then :
6208
5611
  ac_cv_os_cray=yes
6209
5612
else
6210
5613
  ac_cv_os_cray=no
6212
5615
rm -f conftest*
6213
5616
 
6214
5617
fi
6215
 
{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6216
 
echo "${ECHO_T}$ac_cv_os_cray" >&6; }
 
5618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
 
5619
$as_echo "$ac_cv_os_cray" >&6; }
6217
5620
if test $ac_cv_os_cray = yes; then
6218
5621
  for ac_func in _getb67 GETB67 getb67; do
6219
 
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6220
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6221
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6222
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6223
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6224
 
else
6225
 
  cat >conftest.$ac_ext <<_ACEOF
6226
 
/* confdefs.h.  */
6227
 
_ACEOF
6228
 
cat confdefs.h >>conftest.$ac_ext
6229
 
cat >>conftest.$ac_ext <<_ACEOF
6230
 
/* end confdefs.h.  */
6231
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6232
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6233
 
#define $ac_func innocuous_$ac_func
6234
 
 
6235
 
/* System header to define __stub macros and hopefully few prototypes,
6236
 
    which can conflict with char $ac_func (); below.
6237
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6238
 
    <limits.h> exists even on freestanding compilers.  */
6239
 
 
6240
 
#ifdef __STDC__
6241
 
# include <limits.h>
6242
 
#else
6243
 
# include <assert.h>
6244
 
#endif
6245
 
 
6246
 
#undef $ac_func
6247
 
 
6248
 
/* Override any GCC internal prototype to avoid an error.
6249
 
   Use char because int might match the return type of a GCC
6250
 
   builtin and then its argument prototype would still apply.  */
6251
 
#ifdef __cplusplus
6252
 
extern "C"
6253
 
#endif
6254
 
char $ac_func ();
6255
 
/* The GNU C library defines this for functions which it implements
6256
 
    to always fail with ENOSYS.  Some functions are actually named
6257
 
    something starting with __ and the normal name is an alias.  */
6258
 
#if defined __stub_$ac_func || defined __stub___$ac_func
6259
 
choke me
6260
 
#endif
6261
 
 
6262
 
int
6263
 
main ()
6264
 
{
6265
 
return $ac_func ();
6266
 
  ;
6267
 
  return 0;
6268
 
}
6269
 
_ACEOF
6270
 
rm -f conftest.$ac_objext conftest$ac_exeext
6271
 
if { (ac_try="$ac_link"
6272
 
case "(($ac_try" in
6273
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274
 
  *) ac_try_echo=$ac_try;;
6275
 
esac
6276
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277
 
  (eval "$ac_link") 2>conftest.er1
6278
 
  ac_status=$?
6279
 
  grep -v '^ *+' conftest.er1 >conftest.err
6280
 
  rm -f conftest.er1
6281
 
  cat conftest.err >&5
6282
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283
 
  (exit $ac_status); } && {
6284
 
         test -z "$ac_c_werror_flag" ||
6285
 
         test ! -s conftest.err
6286
 
       } && test -s conftest$ac_exeext &&
6287
 
       $as_test_x conftest$ac_exeext; then
6288
 
  eval "$as_ac_var=yes"
6289
 
else
6290
 
  echo "$as_me: failed program was:" >&5
6291
 
sed 's/^/| /' conftest.$ac_ext >&5
6292
 
 
6293
 
        eval "$as_ac_var=no"
6294
 
fi
6295
 
 
6296
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6297
 
      conftest$ac_exeext conftest.$ac_ext
6298
 
fi
6299
 
ac_res=`eval echo '${'$as_ac_var'}'`
6300
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6301
 
echo "${ECHO_T}$ac_res" >&6; }
6302
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5622
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5623
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5624
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6303
5625
 
6304
5626
cat >>confdefs.h <<_ACEOF
6305
5627
#define CRAY_STACKSEG_END $ac_func
6311
5633
  done
6312
5634
fi
6313
5635
 
6314
 
{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6315
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6316
 
if test "${ac_cv_c_stack_direction+set}" = set; then
6317
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
 
5637
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
5638
if test "${ac_cv_c_stack_direction+set}" = set; then :
 
5639
  $as_echo_n "(cached) " >&6
6318
5640
else
6319
 
  if test "$cross_compiling" = yes; then
 
5641
  if test "$cross_compiling" = yes; then :
6320
5642
  ac_cv_c_stack_direction=0
6321
5643
else
6322
 
  cat >conftest.$ac_ext <<_ACEOF
6323
 
/* confdefs.h.  */
6324
 
_ACEOF
6325
 
cat confdefs.h >>conftest.$ac_ext
6326
 
cat >>conftest.$ac_ext <<_ACEOF
 
5644
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327
5645
/* end confdefs.h.  */
6328
5646
$ac_includes_default
6329
5647
int
6346
5664
  return find_stack_direction () < 0;
6347
5665
}
6348
5666
_ACEOF
6349
 
rm -f conftest$ac_exeext
6350
 
if { (ac_try="$ac_link"
6351
 
case "(($ac_try" in
6352
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353
 
  *) ac_try_echo=$ac_try;;
6354
 
esac
6355
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356
 
  (eval "$ac_link") 2>&5
6357
 
  ac_status=$?
6358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6360
 
  { (case "(($ac_try" in
6361
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362
 
  *) ac_try_echo=$ac_try;;
6363
 
esac
6364
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365
 
  (eval "$ac_try") 2>&5
6366
 
  ac_status=$?
6367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368
 
  (exit $ac_status); }; }; then
 
5667
if ac_fn_c_try_run "$LINENO"; then :
6369
5668
  ac_cv_c_stack_direction=1
6370
5669
else
6371
 
  echo "$as_me: program exited with status $ac_status" >&5
6372
 
echo "$as_me: failed program was:" >&5
6373
 
sed 's/^/| /' conftest.$ac_ext >&5
6374
 
 
6375
 
( exit $ac_status )
6376
 
ac_cv_c_stack_direction=-1
6377
 
fi
6378
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6379
 
fi
6380
 
 
6381
 
 
6382
 
fi
6383
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6384
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6385
 
 
 
5670
  ac_cv_c_stack_direction=-1
 
5671
fi
 
5672
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5673
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5674
fi
 
5675
 
 
5676
fi
 
5677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
 
5678
$as_echo "$ac_cv_c_stack_direction" >&6; }
6386
5679
cat >>confdefs.h <<_ACEOF
6387
5680
#define STACK_DIRECTION $ac_cv_c_stack_direction
6388
5681
_ACEOF
6390
5683
 
6391
5684
fi
6392
5685
 
6393
 
 
6394
5686
for ac_header in malloc.h
6395
 
do
6396
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6397
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6398
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6399
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6400
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6401
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6402
 
fi
6403
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6404
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6405
 
echo "${ECHO_T}$ac_res" >&6; }
6406
 
else
6407
 
  # Is the header compilable?
6408
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6409
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6410
 
cat >conftest.$ac_ext <<_ACEOF
6411
 
/* confdefs.h.  */
6412
 
_ACEOF
6413
 
cat confdefs.h >>conftest.$ac_ext
6414
 
cat >>conftest.$ac_ext <<_ACEOF
6415
 
/* end confdefs.h.  */
6416
 
$ac_includes_default
6417
 
#include <$ac_header>
6418
 
_ACEOF
6419
 
rm -f conftest.$ac_objext
6420
 
if { (ac_try="$ac_compile"
6421
 
case "(($ac_try" in
6422
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423
 
  *) ac_try_echo=$ac_try;;
6424
 
esac
6425
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426
 
  (eval "$ac_compile") 2>conftest.er1
6427
 
  ac_status=$?
6428
 
  grep -v '^ *+' conftest.er1 >conftest.err
6429
 
  rm -f conftest.er1
6430
 
  cat conftest.err >&5
6431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432
 
  (exit $ac_status); } && {
6433
 
         test -z "$ac_c_werror_flag" ||
6434
 
         test ! -s conftest.err
6435
 
       } && test -s conftest.$ac_objext; then
6436
 
  ac_header_compiler=yes
6437
 
else
6438
 
  echo "$as_me: failed program was:" >&5
6439
 
sed 's/^/| /' conftest.$ac_ext >&5
6440
 
 
6441
 
        ac_header_compiler=no
6442
 
fi
6443
 
 
6444
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
6447
 
 
6448
 
# Is the header present?
6449
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6451
 
cat >conftest.$ac_ext <<_ACEOF
6452
 
/* confdefs.h.  */
6453
 
_ACEOF
6454
 
cat confdefs.h >>conftest.$ac_ext
6455
 
cat >>conftest.$ac_ext <<_ACEOF
6456
 
/* end confdefs.h.  */
6457
 
#include <$ac_header>
6458
 
_ACEOF
6459
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6460
 
case "(($ac_try" in
6461
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462
 
  *) ac_try_echo=$ac_try;;
6463
 
esac
6464
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6466
 
  ac_status=$?
6467
 
  grep -v '^ *+' conftest.er1 >conftest.err
6468
 
  rm -f conftest.er1
6469
 
  cat conftest.err >&5
6470
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471
 
  (exit $ac_status); } >/dev/null && {
6472
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6473
 
         test ! -s conftest.err
6474
 
       }; then
6475
 
  ac_header_preproc=yes
6476
 
else
6477
 
  echo "$as_me: failed program was:" >&5
6478
 
sed 's/^/| /' conftest.$ac_ext >&5
6479
 
 
6480
 
  ac_header_preproc=no
6481
 
fi
6482
 
 
6483
 
rm -f conftest.err conftest.$ac_ext
6484
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6485
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
6486
 
 
6487
 
# So?  What about this header?
6488
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6489
 
  yes:no: )
6490
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6491
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6492
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6493
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6494
 
    ac_header_preproc=yes
6495
 
    ;;
6496
 
  no:yes:* )
6497
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6498
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6499
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6500
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6501
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6502
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6503
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6504
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6505
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6506
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6507
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6508
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6509
 
    ( cat <<\_ASBOX
6510
 
## ----------------------------------------------- ##
6511
 
## Report this to nettle-bugs@lists.lysator.liu.se ##
6512
 
## ----------------------------------------------- ##
6513
 
_ASBOX
6514
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
6515
 
    ;;
6516
 
esac
6517
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6518
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6519
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6520
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6521
 
else
6522
 
  eval "$as_ac_Header=\$ac_header_preproc"
6523
 
fi
6524
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6525
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6526
 
echo "${ECHO_T}$ac_res" >&6; }
6527
 
 
6528
 
fi
6529
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6530
 
  cat >>confdefs.h <<_ACEOF
6531
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6532
 
_ACEOF
6533
 
 
6534
 
fi
6535
 
 
6536
 
done
6537
 
 
 
5687
do :
 
5688
  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
 
5689
if test "x$ac_cv_header_malloc_h" = x""yes; then :
 
5690
  cat >>confdefs.h <<_ACEOF
 
5691
#define HAVE_MALLOC_H 1
 
5692
_ACEOF
 
5693
 
 
5694
fi
 
5695
 
 
5696
done
 
5697
 
 
5698
 
 
5699
for ac_func in strerror
 
5700
do :
 
5701
  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
 
5702
if test "x$ac_cv_func_strerror" = x""yes; then :
 
5703
  cat >>confdefs.h <<_ACEOF
 
5704
#define HAVE_STRERROR 1
 
5705
_ACEOF
 
5706
 
 
5707
fi
 
5708
done
6538
5709
 
6539
5710
 
6540
5711
 
6541
5712
# Needed by the supplied memcmp.c
6542
 
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6543
 
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6544
 
if test "${ac_cv_c_bigendian+set}" = set; then
6545
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5713
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
 
5714
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
5715
if test "${ac_cv_c_bigendian+set}" = set; then :
 
5716
  $as_echo_n "(cached) " >&6
6546
5717
else
6547
 
  # See if sys/param.h defines the BYTE_ORDER macro.
6548
 
cat >conftest.$ac_ext <<_ACEOF
6549
 
/* confdefs.h.  */
 
5718
  ac_cv_c_bigendian=unknown
 
5719
    # See if we're dealing with a universal compiler.
 
5720
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5721
/* end confdefs.h.  */
 
5722
#ifndef __APPLE_CC__
 
5723
               not a universal capable compiler
 
5724
             #endif
 
5725
             typedef int dummy;
 
5726
 
6550
5727
_ACEOF
6551
 
cat confdefs.h >>conftest.$ac_ext
6552
 
cat >>conftest.$ac_ext <<_ACEOF
 
5728
if ac_fn_c_try_compile "$LINENO"; then :
 
5729
 
 
5730
        # Check for potential -arch flags.  It is not universal unless
 
5731
        # there are at least two -arch flags with different values.
 
5732
        ac_arch=
 
5733
        ac_prev=
 
5734
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
 
5735
         if test -n "$ac_prev"; then
 
5736
           case $ac_word in
 
5737
             i?86 | x86_64 | ppc | ppc64)
 
5738
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
 
5739
                 ac_arch=$ac_word
 
5740
               else
 
5741
                 ac_cv_c_bigendian=universal
 
5742
                 break
 
5743
               fi
 
5744
               ;;
 
5745
           esac
 
5746
           ac_prev=
 
5747
         elif test "x$ac_word" = "x-arch"; then
 
5748
           ac_prev=arch
 
5749
         fi
 
5750
       done
 
5751
fi
 
5752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5753
    if test $ac_cv_c_bigendian = unknown; then
 
5754
      # See if sys/param.h defines the BYTE_ORDER macro.
 
5755
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553
5756
/* end confdefs.h.  */
6554
5757
#include <sys/types.h>
6555
 
#include <sys/param.h>
 
5758
             #include <sys/param.h>
6556
5759
 
6557
5760
int
6558
5761
main ()
6559
5762
{
6560
 
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6561
 
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6562
 
 bogus endian macros
6563
 
#endif
 
5763
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
5764
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
5765
                     && LITTLE_ENDIAN)
 
5766
              bogus endian macros
 
5767
             #endif
6564
5768
 
6565
5769
  ;
6566
5770
  return 0;
6567
5771
}
6568
5772
_ACEOF
6569
 
rm -f conftest.$ac_objext
6570
 
if { (ac_try="$ac_compile"
6571
 
case "(($ac_try" in
6572
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573
 
  *) ac_try_echo=$ac_try;;
6574
 
esac
6575
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576
 
  (eval "$ac_compile") 2>conftest.er1
6577
 
  ac_status=$?
6578
 
  grep -v '^ *+' conftest.er1 >conftest.err
6579
 
  rm -f conftest.er1
6580
 
  cat conftest.err >&5
6581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582
 
  (exit $ac_status); } && {
6583
 
         test -z "$ac_c_werror_flag" ||
6584
 
         test ! -s conftest.err
6585
 
       } && test -s conftest.$ac_objext; then
 
5773
if ac_fn_c_try_compile "$LINENO"; then :
6586
5774
  # It does; now see whether it defined to BIG_ENDIAN or not.
6587
 
cat >conftest.$ac_ext <<_ACEOF
6588
 
/* confdefs.h.  */
6589
 
_ACEOF
6590
 
cat confdefs.h >>conftest.$ac_ext
6591
 
cat >>conftest.$ac_ext <<_ACEOF
 
5775
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592
5776
/* end confdefs.h.  */
6593
5777
#include <sys/types.h>
6594
 
#include <sys/param.h>
 
5778
                #include <sys/param.h>
6595
5779
 
6596
5780
int
6597
5781
main ()
6598
5782
{
6599
5783
#if BYTE_ORDER != BIG_ENDIAN
6600
 
 not big endian
6601
 
#endif
6602
 
 
6603
 
  ;
6604
 
  return 0;
6605
 
}
6606
 
_ACEOF
6607
 
rm -f conftest.$ac_objext
6608
 
if { (ac_try="$ac_compile"
6609
 
case "(($ac_try" in
6610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611
 
  *) ac_try_echo=$ac_try;;
6612
 
esac
6613
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614
 
  (eval "$ac_compile") 2>conftest.er1
6615
 
  ac_status=$?
6616
 
  grep -v '^ *+' conftest.er1 >conftest.err
6617
 
  rm -f conftest.er1
6618
 
  cat conftest.err >&5
6619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620
 
  (exit $ac_status); } && {
6621
 
         test -z "$ac_c_werror_flag" ||
6622
 
         test ! -s conftest.err
6623
 
       } && test -s conftest.$ac_objext; then
6624
 
  ac_cv_c_bigendian=yes
6625
 
else
6626
 
  echo "$as_me: failed program was:" >&5
6627
 
sed 's/^/| /' conftest.$ac_ext >&5
6628
 
 
6629
 
        ac_cv_c_bigendian=no
6630
 
fi
6631
 
 
6632
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633
 
else
6634
 
  echo "$as_me: failed program was:" >&5
6635
 
sed 's/^/| /' conftest.$ac_ext >&5
6636
 
 
6637
 
        # It does not; compile a test program.
6638
 
if test "$cross_compiling" = yes; then
6639
 
  # try to guess the endianness by grepping values into an object file
6640
 
  ac_cv_c_bigendian=unknown
6641
 
  cat >conftest.$ac_ext <<_ACEOF
6642
 
/* confdefs.h.  */
6643
 
_ACEOF
6644
 
cat confdefs.h >>conftest.$ac_ext
6645
 
cat >>conftest.$ac_ext <<_ACEOF
6646
 
/* end confdefs.h.  */
6647
 
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6648
 
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6649
 
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6650
 
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6651
 
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6652
 
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6653
 
int
6654
 
main ()
6655
 
{
6656
 
 _ascii (); _ebcdic ();
6657
 
  ;
6658
 
  return 0;
6659
 
}
6660
 
_ACEOF
6661
 
rm -f conftest.$ac_objext
6662
 
if { (ac_try="$ac_compile"
6663
 
case "(($ac_try" in
6664
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665
 
  *) ac_try_echo=$ac_try;;
6666
 
esac
6667
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668
 
  (eval "$ac_compile") 2>conftest.er1
6669
 
  ac_status=$?
6670
 
  grep -v '^ *+' conftest.er1 >conftest.err
6671
 
  rm -f conftest.er1
6672
 
  cat conftest.err >&5
6673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674
 
  (exit $ac_status); } && {
6675
 
         test -z "$ac_c_werror_flag" ||
6676
 
         test ! -s conftest.err
6677
 
       } && test -s conftest.$ac_objext; then
6678
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6679
 
  ac_cv_c_bigendian=yes
6680
 
fi
6681
 
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6682
 
  if test "$ac_cv_c_bigendian" = unknown; then
6683
 
    ac_cv_c_bigendian=no
6684
 
  else
6685
 
    # finding both strings is unlikely to happen, but who knows?
6686
 
    ac_cv_c_bigendian=unknown
6687
 
  fi
6688
 
fi
6689
 
else
6690
 
  echo "$as_me: failed program was:" >&5
6691
 
sed 's/^/| /' conftest.$ac_ext >&5
6692
 
 
6693
 
 
6694
 
fi
6695
 
 
6696
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697
 
else
6698
 
  cat >conftest.$ac_ext <<_ACEOF
6699
 
/* confdefs.h.  */
6700
 
_ACEOF
6701
 
cat confdefs.h >>conftest.$ac_ext
6702
 
cat >>conftest.$ac_ext <<_ACEOF
 
5784
                 not big endian
 
5785
                #endif
 
5786
 
 
5787
  ;
 
5788
  return 0;
 
5789
}
 
5790
_ACEOF
 
5791
if ac_fn_c_try_compile "$LINENO"; then :
 
5792
  ac_cv_c_bigendian=yes
 
5793
else
 
5794
  ac_cv_c_bigendian=no
 
5795
fi
 
5796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5797
fi
 
5798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5799
    fi
 
5800
    if test $ac_cv_c_bigendian = unknown; then
 
5801
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
5802
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5803
/* end confdefs.h.  */
 
5804
#include <limits.h>
 
5805
 
 
5806
int
 
5807
main ()
 
5808
{
 
5809
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
5810
              bogus endian macros
 
5811
             #endif
 
5812
 
 
5813
  ;
 
5814
  return 0;
 
5815
}
 
5816
_ACEOF
 
5817
if ac_fn_c_try_compile "$LINENO"; then :
 
5818
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
5819
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5820
/* end confdefs.h.  */
 
5821
#include <limits.h>
 
5822
 
 
5823
int
 
5824
main ()
 
5825
{
 
5826
#ifndef _BIG_ENDIAN
 
5827
                 not big endian
 
5828
                #endif
 
5829
 
 
5830
  ;
 
5831
  return 0;
 
5832
}
 
5833
_ACEOF
 
5834
if ac_fn_c_try_compile "$LINENO"; then :
 
5835
  ac_cv_c_bigendian=yes
 
5836
else
 
5837
  ac_cv_c_bigendian=no
 
5838
fi
 
5839
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5840
fi
 
5841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5842
    fi
 
5843
    if test $ac_cv_c_bigendian = unknown; then
 
5844
      # Compile a test program.
 
5845
      if test "$cross_compiling" = yes; then :
 
5846
  # Try to guess by grepping values from an object file.
 
5847
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5848
/* end confdefs.h.  */
 
5849
short int ascii_mm[] =
 
5850
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
5851
                short int ascii_ii[] =
 
5852
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
5853
                int use_ascii (int i) {
 
5854
                  return ascii_mm[i] + ascii_ii[i];
 
5855
                }
 
5856
                short int ebcdic_ii[] =
 
5857
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
5858
                short int ebcdic_mm[] =
 
5859
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
5860
                int use_ebcdic (int i) {
 
5861
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
5862
                }
 
5863
                extern int foo;
 
5864
 
 
5865
int
 
5866
main ()
 
5867
{
 
5868
return use_ascii (foo) == use_ebcdic (foo);
 
5869
  ;
 
5870
  return 0;
 
5871
}
 
5872
_ACEOF
 
5873
if ac_fn_c_try_compile "$LINENO"; then :
 
5874
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
5875
              ac_cv_c_bigendian=yes
 
5876
            fi
 
5877
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
5878
              if test "$ac_cv_c_bigendian" = unknown; then
 
5879
                ac_cv_c_bigendian=no
 
5880
              else
 
5881
                # finding both strings is unlikely to happen, but who knows?
 
5882
                ac_cv_c_bigendian=unknown
 
5883
              fi
 
5884
            fi
 
5885
fi
 
5886
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5887
else
 
5888
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703
5889
/* end confdefs.h.  */
6704
5890
$ac_includes_default
6705
5891
int
6706
5892
main ()
6707
5893
{
6708
5894
 
6709
 
  /* Are we little or big endian?  From Harbison&Steele.  */
6710
 
  union
6711
 
  {
6712
 
    long int l;
6713
 
    char c[sizeof (long int)];
6714
 
  } u;
6715
 
  u.l = 1;
6716
 
  return u.c[sizeof (long int) - 1] == 1;
 
5895
             /* Are we little or big endian?  From Harbison&Steele.  */
 
5896
             union
 
5897
             {
 
5898
               long int l;
 
5899
               char c[sizeof (long int)];
 
5900
             } u;
 
5901
             u.l = 1;
 
5902
             return u.c[sizeof (long int) - 1] == 1;
6717
5903
 
6718
5904
  ;
6719
5905
  return 0;
6720
5906
}
6721
5907
_ACEOF
6722
 
rm -f conftest$ac_exeext
6723
 
if { (ac_try="$ac_link"
6724
 
case "(($ac_try" in
6725
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726
 
  *) ac_try_echo=$ac_try;;
6727
 
esac
6728
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729
 
  (eval "$ac_link") 2>&5
6730
 
  ac_status=$?
6731
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6733
 
  { (case "(($ac_try" in
6734
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735
 
  *) ac_try_echo=$ac_try;;
6736
 
esac
6737
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738
 
  (eval "$ac_try") 2>&5
6739
 
  ac_status=$?
6740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741
 
  (exit $ac_status); }; }; then
 
5908
if ac_fn_c_try_run "$LINENO"; then :
6742
5909
  ac_cv_c_bigendian=no
6743
5910
else
6744
 
  echo "$as_me: program exited with status $ac_status" >&5
6745
 
echo "$as_me: failed program was:" >&5
6746
 
sed 's/^/| /' conftest.$ac_ext >&5
6747
 
 
6748
 
( exit $ac_status )
6749
 
ac_cv_c_bigendian=yes
6750
 
fi
6751
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6752
 
fi
6753
 
 
6754
 
 
6755
 
fi
6756
 
 
6757
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758
 
fi
6759
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6760
 
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6761
 
case $ac_cv_c_bigendian in
6762
 
  yes)
6763
 
 
6764
 
cat >>confdefs.h <<\_ACEOF
6765
 
#define WORDS_BIGENDIAN 1
6766
 
_ACEOF
6767
 
 ;;
6768
 
  no)
6769
 
     ;;
6770
 
  *)
6771
 
    { { echo "$as_me:$LINENO: error: unknown endianness
6772
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6773
 
echo "$as_me: error: unknown endianness
6774
 
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6775
 
   { (exit 1); exit 1; }; } ;;
6776
 
esac
6777
 
 
6778
 
 
6779
 
for ac_func in memxor
6780
 
do
6781
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6782
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6783
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6784
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6785
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6786
 
else
6787
 
  cat >conftest.$ac_ext <<_ACEOF
6788
 
/* confdefs.h.  */
6789
 
_ACEOF
6790
 
cat confdefs.h >>conftest.$ac_ext
6791
 
cat >>conftest.$ac_ext <<_ACEOF
6792
 
/* end confdefs.h.  */
6793
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6794
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6795
 
#define $ac_func innocuous_$ac_func
6796
 
 
6797
 
/* System header to define __stub macros and hopefully few prototypes,
6798
 
    which can conflict with char $ac_func (); below.
6799
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6800
 
    <limits.h> exists even on freestanding compilers.  */
6801
 
 
6802
 
#ifdef __STDC__
6803
 
# include <limits.h>
6804
 
#else
6805
 
# include <assert.h>
6806
 
#endif
6807
 
 
6808
 
#undef $ac_func
6809
 
 
6810
 
/* Override any GCC internal prototype to avoid an error.
6811
 
   Use char because int might match the return type of a GCC
6812
 
   builtin and then its argument prototype would still apply.  */
6813
 
#ifdef __cplusplus
6814
 
extern "C"
6815
 
#endif
6816
 
char $ac_func ();
6817
 
/* The GNU C library defines this for functions which it implements
6818
 
    to always fail with ENOSYS.  Some functions are actually named
6819
 
    something starting with __ and the normal name is an alias.  */
6820
 
#if defined __stub_$ac_func || defined __stub___$ac_func
6821
 
choke me
6822
 
#endif
6823
 
 
6824
 
int
6825
 
main ()
6826
 
{
6827
 
return $ac_func ();
6828
 
  ;
6829
 
  return 0;
6830
 
}
6831
 
_ACEOF
6832
 
rm -f conftest.$ac_objext conftest$ac_exeext
6833
 
if { (ac_try="$ac_link"
6834
 
case "(($ac_try" in
6835
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836
 
  *) ac_try_echo=$ac_try;;
6837
 
esac
6838
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839
 
  (eval "$ac_link") 2>conftest.er1
6840
 
  ac_status=$?
6841
 
  grep -v '^ *+' conftest.er1 >conftest.err
6842
 
  rm -f conftest.er1
6843
 
  cat conftest.err >&5
6844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845
 
  (exit $ac_status); } && {
6846
 
         test -z "$ac_c_werror_flag" ||
6847
 
         test ! -s conftest.err
6848
 
       } && test -s conftest$ac_exeext &&
6849
 
       $as_test_x conftest$ac_exeext; then
6850
 
  eval "$as_ac_var=yes"
6851
 
else
6852
 
  echo "$as_me: failed program was:" >&5
6853
 
sed 's/^/| /' conftest.$ac_ext >&5
6854
 
 
6855
 
        eval "$as_ac_var=no"
6856
 
fi
6857
 
 
6858
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6859
 
      conftest$ac_exeext conftest.$ac_ext
6860
 
fi
6861
 
ac_res=`eval echo '${'$as_ac_var'}'`
6862
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6863
 
echo "${ECHO_T}$ac_res" >&6; }
6864
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
6865
 
  cat >>confdefs.h <<_ACEOF
6866
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6867
 
_ACEOF
 
5911
  ac_cv_c_bigendian=yes
 
5912
fi
 
5913
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5914
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5915
fi
 
5916
 
 
5917
    fi
 
5918
fi
 
5919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
 
5920
$as_echo "$ac_cv_c_bigendian" >&6; }
 
5921
 case $ac_cv_c_bigendian in #(
 
5922
   yes)
 
5923
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
 
5924
;; #(
 
5925
   no)
 
5926
      ;; #(
 
5927
   universal)
 
5928
 
 
5929
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
 
5930
 
 
5931
     ;; #(
 
5932
   *)
 
5933
     as_fn_error $? "unknown endianness
 
5934
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
 
5935
 esac
 
5936
 
 
5937
ac_fn_c_check_func "$LINENO" "memxor" "ac_cv_func_memxor"
 
5938
if test "x$ac_cv_func_memxor" = x""yes; then :
 
5939
  $as_echo "#define HAVE_MEMXOR 1" >>confdefs.h
6868
5940
 
6869
5941
else
6870
5942
  case " $LIBOBJS " in
6871
 
  *" $ac_func.$ac_objext "* ) ;;
6872
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
 
5943
  *" memxor.$ac_objext "* ) ;;
 
5944
  *) LIBOBJS="$LIBOBJS memxor.$ac_objext"
6873
5945
 ;;
6874
5946
esac
6875
5947
 
6876
5948
fi
6877
 
done
6878
 
 
6879
 
 
6880
 
 
6881
 
{ echo "$as_me:$LINENO: checking for __attribute__" >&5
6882
 
echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
6883
 
if test "${lsh_cv_c_attribute+set}" = set; then
6884
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5949
 
 
5950
 
 
5951
 
 
5952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
 
5953
$as_echo_n "checking for __attribute__... " >&6; }
 
5954
if test "${lsh_cv_c_attribute+set}" = set; then :
 
5955
  $as_echo_n "(cached) " >&6
6885
5956
else
6886
 
   cat >conftest.$ac_ext <<_ACEOF
6887
 
/* confdefs.h.  */
6888
 
_ACEOF
6889
 
cat confdefs.h >>conftest.$ac_ext
6890
 
cat >>conftest.$ac_ext <<_ACEOF
 
5957
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891
5958
/* end confdefs.h.  */
6892
5959
 
6893
5960
#include <stdlib.h>
6908
5975
  return 0;
6909
5976
}
6910
5977
_ACEOF
6911
 
rm -f conftest.$ac_objext
6912
 
if { (ac_try="$ac_compile"
6913
 
case "(($ac_try" in
6914
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915
 
  *) ac_try_echo=$ac_try;;
6916
 
esac
6917
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918
 
  (eval "$ac_compile") 2>conftest.er1
6919
 
  ac_status=$?
6920
 
  grep -v '^ *+' conftest.er1 >conftest.err
6921
 
  rm -f conftest.er1
6922
 
  cat conftest.err >&5
6923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924
 
  (exit $ac_status); } && {
6925
 
         test -z "$ac_c_werror_flag" ||
6926
 
         test ! -s conftest.err
6927
 
       } && test -s conftest.$ac_objext; then
 
5978
if ac_fn_c_try_compile "$LINENO"; then :
6928
5979
  lsh_cv_c_attribute=yes
6929
5980
else
6930
 
  echo "$as_me: failed program was:" >&5
6931
 
sed 's/^/| /' conftest.$ac_ext >&5
6932
 
 
6933
 
        lsh_cv_c_attribute=no
 
5981
  lsh_cv_c_attribute=no
6934
5982
fi
6935
 
 
6936
5983
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937
5984
fi
6938
 
{ echo "$as_me:$LINENO: result: $lsh_cv_c_attribute" >&5
6939
 
echo "${ECHO_T}$lsh_cv_c_attribute" >&6; }
6940
 
 
 
5985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5
 
5986
$as_echo "$lsh_cv_c_attribute" >&6; }
6941
5987
 
6942
5988
 
6943
5989
if test "x$lsh_cv_c_attribute" = "xyes"; then
6944
 
  cat >>confdefs.h <<\_ACEOF
6945
 
#define HAVE_GCC_ATTRIBUTE 1
6946
 
_ACEOF
 
5990
  $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
6947
5991
 
6948
5992
fi
6949
5993
 
6950
5994
 
6951
5995
 
6952
 
 
6953
5996
# According to Simon Josefsson, looking for uint32_t and friends in
6954
5997
# sys/types.h is needed on some systems, in particular cygwin.
6955
5998
# ------ AX CREATE STDINT H -------------------------------------
6956
 
{ echo "$as_me:$LINENO: checking for stdint types" >&5
6957
 
echo $ECHO_N "checking for stdint types... $ECHO_C" >&6; }
 
5999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
 
6000
$as_echo_n "checking for stdint types... " >&6; }
6958
6001
ac_stdint_h=`echo nettle-stdint.h`
6959
6002
# try to shortcircuit - if the default include path of the compiler
6960
6003
# can find a "stdint.h" header then we assume that all compilers can.
6961
 
if test "${ac_cv_header_stdint_t+set}" = set; then
6962
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6004
if test "${ac_cv_header_stdint_t+set}" = set; then :
 
6005
  $as_echo_n "(cached) " >&6
6963
6006
else
6964
6007
 
6965
6008
old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6966
6009
old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6967
6010
old_CFLAGS="$CFLAGS"     ; CFLAGS=""
6968
 
cat >conftest.$ac_ext <<_ACEOF
6969
 
/* confdefs.h.  */
6970
 
_ACEOF
6971
 
cat confdefs.h >>conftest.$ac_ext
6972
 
cat >>conftest.$ac_ext <<_ACEOF
 
6011
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973
6012
/* end confdefs.h.  */
6974
6013
#include <stdint.h>
6975
6014
int
6980
6019
  return 0;
6981
6020
}
6982
6021
_ACEOF
6983
 
rm -f conftest.$ac_objext
6984
 
if { (ac_try="$ac_compile"
6985
 
case "(($ac_try" in
6986
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987
 
  *) ac_try_echo=$ac_try;;
6988
 
esac
6989
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990
 
  (eval "$ac_compile") 2>conftest.er1
6991
 
  ac_status=$?
6992
 
  grep -v '^ *+' conftest.er1 >conftest.err
6993
 
  rm -f conftest.er1
6994
 
  cat conftest.err >&5
6995
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996
 
  (exit $ac_status); } && {
6997
 
         test -z "$ac_c_werror_flag" ||
6998
 
         test ! -s conftest.err
6999
 
       } && test -s conftest.$ac_objext; then
 
6022
if ac_fn_c_try_compile "$LINENO"; then :
7000
6023
  ac_cv_stdint_result="(assuming C99 compatible system)"
7001
6024
 ac_cv_header_stdint_t="stdint.h";
7002
6025
else
7003
 
  echo "$as_me: failed program was:" >&5
7004
 
sed 's/^/| /' conftest.$ac_ext >&5
7005
 
 
7006
 
        ac_cv_header_stdint_t=""
 
6026
  ac_cv_header_stdint_t=""
7007
6027
fi
7008
 
 
7009
6028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010
6029
CXXFLAGS="$old_CXXFLAGS"
7011
6030
CPPFLAGS="$old_CPPFLAGS"
7015
6034
 
7016
6035
v="... $ac_cv_header_stdint_h"
7017
6036
if test "$ac_stdint_h" = "stdint.h" ; then
7018
 
 { echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
7019
 
echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6; }
 
6037
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
 
6038
$as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
7020
6039
elif test "$ac_stdint_h" = "inttypes.h" ; then
7021
 
 { echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
7022
 
echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6; }
 
6040
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
 
6041
$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
7023
6042
elif test "_$ac_cv_header_stdint_t" = "_" ; then
7024
 
 { echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
7025
 
echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6; }
 
6043
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
 
6044
$as_echo "(putting them into $ac_stdint_h)$v" >&6; }
7026
6045
else
7027
6046
 ac_cv_header_stdint="$ac_cv_header_stdint_t"
7028
 
 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
7029
 
echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6; }
 
6047
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
 
6048
$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
7030
6049
fi
7031
6050
 
7032
6051
if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
7035
6054
inttype_headers=`echo sys/types.h | sed -e 's/,/ /g'`
7036
6055
 
7037
6056
ac_cv_stdint_result="(no helpful system typedefs seen)"
7038
 
{ echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
7039
 
echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; }
7040
 
if test "${ac_cv_header_stdint_x+set}" = set; then
7041
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
 
6058
$as_echo_n "checking for stdint uintptr_t... " >&6; }
 
6059
if test "${ac_cv_header_stdint_x+set}" = set; then :
 
6060
  $as_echo_n "(cached) " >&6
7042
6061
else
7043
6062
 
7044
6063
 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
7045
 
  { echo "$as_me:$LINENO: result: (..)" >&5
7046
 
echo "${ECHO_T}(..)" >&6; }
 
6064
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
 
6065
$as_echo "(..)" >&6; }
7047
6066
  for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
7048
6067
   unset ac_cv_type_uintptr_t
7049
6068
   unset ac_cv_type_uint64_t
7050
 
   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
7051
 
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
7052
 
if test "${ac_cv_type_uintptr_t+set}" = set; then
7053
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7054
 
else
7055
 
  cat >conftest.$ac_ext <<_ACEOF
7056
 
/* confdefs.h.  */
7057
 
_ACEOF
7058
 
cat confdefs.h >>conftest.$ac_ext
7059
 
cat >>conftest.$ac_ext <<_ACEOF
7060
 
/* end confdefs.h.  */
7061
 
#include <$i>
7062
 
 
7063
 
typedef uintptr_t ac__type_new_;
7064
 
int
7065
 
main ()
7066
 
{
7067
 
if ((ac__type_new_ *) 0)
7068
 
  return 0;
7069
 
if (sizeof (ac__type_new_))
7070
 
  return 0;
7071
 
  ;
7072
 
  return 0;
7073
 
}
7074
 
_ACEOF
7075
 
rm -f conftest.$ac_objext
7076
 
if { (ac_try="$ac_compile"
7077
 
case "(($ac_try" in
7078
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079
 
  *) ac_try_echo=$ac_try;;
7080
 
esac
7081
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082
 
  (eval "$ac_compile") 2>conftest.er1
7083
 
  ac_status=$?
7084
 
  grep -v '^ *+' conftest.er1 >conftest.err
7085
 
  rm -f conftest.er1
7086
 
  cat conftest.err >&5
7087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088
 
  (exit $ac_status); } && {
7089
 
         test -z "$ac_c_werror_flag" ||
7090
 
         test ! -s conftest.err
7091
 
       } && test -s conftest.$ac_objext; then
7092
 
  ac_cv_type_uintptr_t=yes
7093
 
else
7094
 
  echo "$as_me: failed program was:" >&5
7095
 
sed 's/^/| /' conftest.$ac_ext >&5
7096
 
 
7097
 
        ac_cv_type_uintptr_t=no
7098
 
fi
7099
 
 
7100
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101
 
fi
7102
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7103
 
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
7104
 
if test $ac_cv_type_uintptr_t = yes; then
 
6069
   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
 
6070
"
 
6071
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
7105
6072
  ac_cv_header_stdint_x=$i
7106
6073
else
7107
6074
       continue
7108
6075
fi
7109
6076
 
7110
 
   { echo "$as_me:$LINENO: checking for uint64_t" >&5
7111
 
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7112
 
if test "${ac_cv_type_uint64_t+set}" = set; then
7113
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7114
 
else
7115
 
  cat >conftest.$ac_ext <<_ACEOF
7116
 
/* confdefs.h.  */
7117
 
_ACEOF
7118
 
cat confdefs.h >>conftest.$ac_ext
7119
 
cat >>conftest.$ac_ext <<_ACEOF
7120
 
/* end confdefs.h.  */
7121
 
#include<$i>
7122
 
 
7123
 
typedef uint64_t ac__type_new_;
7124
 
int
7125
 
main ()
7126
 
{
7127
 
if ((ac__type_new_ *) 0)
7128
 
  return 0;
7129
 
if (sizeof (ac__type_new_))
7130
 
  return 0;
7131
 
  ;
7132
 
  return 0;
7133
 
}
7134
 
_ACEOF
7135
 
rm -f conftest.$ac_objext
7136
 
if { (ac_try="$ac_compile"
7137
 
case "(($ac_try" in
7138
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139
 
  *) ac_try_echo=$ac_try;;
7140
 
esac
7141
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142
 
  (eval "$ac_compile") 2>conftest.er1
7143
 
  ac_status=$?
7144
 
  grep -v '^ *+' conftest.er1 >conftest.err
7145
 
  rm -f conftest.er1
7146
 
  cat conftest.err >&5
7147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148
 
  (exit $ac_status); } && {
7149
 
         test -z "$ac_c_werror_flag" ||
7150
 
         test ! -s conftest.err
7151
 
       } && test -s conftest.$ac_objext; then
7152
 
  ac_cv_type_uint64_t=yes
7153
 
else
7154
 
  echo "$as_me: failed program was:" >&5
7155
 
sed 's/^/| /' conftest.$ac_ext >&5
7156
 
 
7157
 
        ac_cv_type_uint64_t=no
7158
 
fi
7159
 
 
7160
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161
 
fi
7162
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7163
 
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
7164
 
if test $ac_cv_type_uint64_t = yes; then
 
6077
   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
 
6078
"
 
6079
if test "x$ac_cv_type_uint64_t" = x""yes; then :
7165
6080
  and64="/uint64_t"
7166
6081
else
7167
6082
  and64=""
7170
6085
   ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
7171
6086
   break;
7172
6087
  done
7173
 
  { echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
7174
 
echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; }
 
6088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
 
6089
$as_echo_n "checking for stdint uintptr_t... " >&6; }
7175
6090
 
7176
6091
fi
7177
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
7178
 
echo "${ECHO_T}$ac_cv_header_stdint_x" >&6; }
 
6092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
 
6093
$as_echo "$ac_cv_header_stdint_x" >&6; }
7179
6094
 
7180
6095
if test "_$ac_cv_header_stdint_x" = "_" ; then
7181
 
{ echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
7182
 
echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; }
7183
 
if test "${ac_cv_header_stdint_o+set}" = set; then
7184
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
 
6097
$as_echo_n "checking for stdint uint32_t... " >&6; }
 
6098
if test "${ac_cv_header_stdint_o+set}" = set; then :
 
6099
  $as_echo_n "(cached) " >&6
7185
6100
else
7186
6101
 
7187
6102
 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
7188
 
  { echo "$as_me:$LINENO: result: (..)" >&5
7189
 
echo "${ECHO_T}(..)" >&6; }
 
6103
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
 
6104
$as_echo "(..)" >&6; }
7190
6105
  for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
7191
6106
   unset ac_cv_type_uint32_t
7192
6107
   unset ac_cv_type_uint64_t
7193
 
   { echo "$as_me:$LINENO: checking for uint32_t" >&5
7194
 
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7195
 
if test "${ac_cv_type_uint32_t+set}" = set; then
7196
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7197
 
else
7198
 
  cat >conftest.$ac_ext <<_ACEOF
7199
 
/* confdefs.h.  */
7200
 
_ACEOF
7201
 
cat confdefs.h >>conftest.$ac_ext
7202
 
cat >>conftest.$ac_ext <<_ACEOF
7203
 
/* end confdefs.h.  */
7204
 
#include <$i>
7205
 
 
7206
 
typedef uint32_t ac__type_new_;
7207
 
int
7208
 
main ()
7209
 
{
7210
 
if ((ac__type_new_ *) 0)
7211
 
  return 0;
7212
 
if (sizeof (ac__type_new_))
7213
 
  return 0;
7214
 
  ;
7215
 
  return 0;
7216
 
}
7217
 
_ACEOF
7218
 
rm -f conftest.$ac_objext
7219
 
if { (ac_try="$ac_compile"
7220
 
case "(($ac_try" in
7221
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222
 
  *) ac_try_echo=$ac_try;;
7223
 
esac
7224
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225
 
  (eval "$ac_compile") 2>conftest.er1
7226
 
  ac_status=$?
7227
 
  grep -v '^ *+' conftest.er1 >conftest.err
7228
 
  rm -f conftest.er1
7229
 
  cat conftest.err >&5
7230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231
 
  (exit $ac_status); } && {
7232
 
         test -z "$ac_c_werror_flag" ||
7233
 
         test ! -s conftest.err
7234
 
       } && test -s conftest.$ac_objext; then
7235
 
  ac_cv_type_uint32_t=yes
7236
 
else
7237
 
  echo "$as_me: failed program was:" >&5
7238
 
sed 's/^/| /' conftest.$ac_ext >&5
7239
 
 
7240
 
        ac_cv_type_uint32_t=no
7241
 
fi
7242
 
 
7243
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244
 
fi
7245
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7246
 
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
7247
 
if test $ac_cv_type_uint32_t = yes; then
 
6108
   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
 
6109
"
 
6110
if test "x$ac_cv_type_uint32_t" = x""yes; then :
7248
6111
  ac_cv_header_stdint_o=$i
7249
6112
else
7250
6113
       continue
7251
6114
fi
7252
6115
 
7253
 
   { echo "$as_me:$LINENO: checking for uint64_t" >&5
7254
 
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7255
 
if test "${ac_cv_type_uint64_t+set}" = set; then
7256
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7257
 
else
7258
 
  cat >conftest.$ac_ext <<_ACEOF
7259
 
/* confdefs.h.  */
7260
 
_ACEOF
7261
 
cat confdefs.h >>conftest.$ac_ext
7262
 
cat >>conftest.$ac_ext <<_ACEOF
7263
 
/* end confdefs.h.  */
7264
 
#include<$i>
7265
 
 
7266
 
typedef uint64_t ac__type_new_;
7267
 
int
7268
 
main ()
7269
 
{
7270
 
if ((ac__type_new_ *) 0)
7271
 
  return 0;
7272
 
if (sizeof (ac__type_new_))
7273
 
  return 0;
7274
 
  ;
7275
 
  return 0;
7276
 
}
7277
 
_ACEOF
7278
 
rm -f conftest.$ac_objext
7279
 
if { (ac_try="$ac_compile"
7280
 
case "(($ac_try" in
7281
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282
 
  *) ac_try_echo=$ac_try;;
7283
 
esac
7284
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285
 
  (eval "$ac_compile") 2>conftest.er1
7286
 
  ac_status=$?
7287
 
  grep -v '^ *+' conftest.er1 >conftest.err
7288
 
  rm -f conftest.er1
7289
 
  cat conftest.err >&5
7290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291
 
  (exit $ac_status); } && {
7292
 
         test -z "$ac_c_werror_flag" ||
7293
 
         test ! -s conftest.err
7294
 
       } && test -s conftest.$ac_objext; then
7295
 
  ac_cv_type_uint64_t=yes
7296
 
else
7297
 
  echo "$as_me: failed program was:" >&5
7298
 
sed 's/^/| /' conftest.$ac_ext >&5
7299
 
 
7300
 
        ac_cv_type_uint64_t=no
7301
 
fi
7302
 
 
7303
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304
 
fi
7305
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7306
 
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
7307
 
if test $ac_cv_type_uint64_t = yes; then
 
6116
   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
 
6117
"
 
6118
if test "x$ac_cv_type_uint64_t" = x""yes; then :
7308
6119
  and64="/uint64_t"
7309
6120
else
7310
6121
  and64=""
7313
6124
   ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
7314
6125
   break;
7315
6126
  done
7316
 
  { echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
7317
 
echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; }
 
6127
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
 
6128
$as_echo_n "checking for stdint uint32_t... " >&6; }
7318
6129
 
7319
6130
fi
7320
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
7321
 
echo "${ECHO_T}$ac_cv_header_stdint_o" >&6; }
 
6131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
 
6132
$as_echo "$ac_cv_header_stdint_o" >&6; }
7322
6133
fi
7323
6134
 
7324
6135
if test "_$ac_cv_header_stdint_x" = "_" ; then
7325
6136
if test "_$ac_cv_header_stdint_o" = "_" ; then
7326
 
{ echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
7327
 
echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; }
7328
 
if test "${ac_cv_header_stdint_u+set}" = set; then
7329
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
 
6138
$as_echo_n "checking for stdint u_int32_t... " >&6; }
 
6139
if test "${ac_cv_header_stdint_u+set}" = set; then :
 
6140
  $as_echo_n "(cached) " >&6
7330
6141
else
7331
6142
 
7332
6143
 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
7333
 
  { echo "$as_me:$LINENO: result: (..)" >&5
7334
 
echo "${ECHO_T}(..)" >&6; }
 
6144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
 
6145
$as_echo "(..)" >&6; }
7335
6146
  for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
7336
6147
   unset ac_cv_type_u_int32_t
7337
6148
   unset ac_cv_type_u_int64_t
7338
 
   { echo "$as_me:$LINENO: checking for u_int32_t" >&5
7339
 
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
7340
 
if test "${ac_cv_type_u_int32_t+set}" = set; then
7341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7342
 
else
7343
 
  cat >conftest.$ac_ext <<_ACEOF
7344
 
/* confdefs.h.  */
7345
 
_ACEOF
7346
 
cat confdefs.h >>conftest.$ac_ext
7347
 
cat >>conftest.$ac_ext <<_ACEOF
7348
 
/* end confdefs.h.  */
7349
 
#include <$i>
7350
 
 
7351
 
typedef u_int32_t ac__type_new_;
7352
 
int
7353
 
main ()
7354
 
{
7355
 
if ((ac__type_new_ *) 0)
7356
 
  return 0;
7357
 
if (sizeof (ac__type_new_))
7358
 
  return 0;
7359
 
  ;
7360
 
  return 0;
7361
 
}
7362
 
_ACEOF
7363
 
rm -f conftest.$ac_objext
7364
 
if { (ac_try="$ac_compile"
7365
 
case "(($ac_try" in
7366
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367
 
  *) ac_try_echo=$ac_try;;
7368
 
esac
7369
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370
 
  (eval "$ac_compile") 2>conftest.er1
7371
 
  ac_status=$?
7372
 
  grep -v '^ *+' conftest.er1 >conftest.err
7373
 
  rm -f conftest.er1
7374
 
  cat conftest.err >&5
7375
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376
 
  (exit $ac_status); } && {
7377
 
         test -z "$ac_c_werror_flag" ||
7378
 
         test ! -s conftest.err
7379
 
       } && test -s conftest.$ac_objext; then
7380
 
  ac_cv_type_u_int32_t=yes
7381
 
else
7382
 
  echo "$as_me: failed program was:" >&5
7383
 
sed 's/^/| /' conftest.$ac_ext >&5
7384
 
 
7385
 
        ac_cv_type_u_int32_t=no
7386
 
fi
7387
 
 
7388
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389
 
fi
7390
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7391
 
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
7392
 
if test $ac_cv_type_u_int32_t = yes; then
 
6149
   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
 
6150
"
 
6151
if test "x$ac_cv_type_u_int32_t" = x""yes; then :
7393
6152
  ac_cv_header_stdint_u=$i
7394
6153
else
7395
6154
       continue
7396
6155
fi
7397
6156
 
7398
 
   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
7399
 
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
7400
 
if test "${ac_cv_type_u_int64_t+set}" = set; then
7401
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7402
 
else
7403
 
  cat >conftest.$ac_ext <<_ACEOF
7404
 
/* confdefs.h.  */
7405
 
_ACEOF
7406
 
cat confdefs.h >>conftest.$ac_ext
7407
 
cat >>conftest.$ac_ext <<_ACEOF
7408
 
/* end confdefs.h.  */
7409
 
#include<$i>
7410
 
 
7411
 
typedef u_int64_t ac__type_new_;
7412
 
int
7413
 
main ()
7414
 
{
7415
 
if ((ac__type_new_ *) 0)
7416
 
  return 0;
7417
 
if (sizeof (ac__type_new_))
7418
 
  return 0;
7419
 
  ;
7420
 
  return 0;
7421
 
}
7422
 
_ACEOF
7423
 
rm -f conftest.$ac_objext
7424
 
if { (ac_try="$ac_compile"
7425
 
case "(($ac_try" in
7426
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427
 
  *) ac_try_echo=$ac_try;;
7428
 
esac
7429
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430
 
  (eval "$ac_compile") 2>conftest.er1
7431
 
  ac_status=$?
7432
 
  grep -v '^ *+' conftest.er1 >conftest.err
7433
 
  rm -f conftest.er1
7434
 
  cat conftest.err >&5
7435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436
 
  (exit $ac_status); } && {
7437
 
         test -z "$ac_c_werror_flag" ||
7438
 
         test ! -s conftest.err
7439
 
       } && test -s conftest.$ac_objext; then
7440
 
  ac_cv_type_u_int64_t=yes
7441
 
else
7442
 
  echo "$as_me: failed program was:" >&5
7443
 
sed 's/^/| /' conftest.$ac_ext >&5
7444
 
 
7445
 
        ac_cv_type_u_int64_t=no
7446
 
fi
7447
 
 
7448
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449
 
fi
7450
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
7451
 
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
7452
 
if test $ac_cv_type_u_int64_t = yes; then
 
6157
   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
 
6158
"
 
6159
if test "x$ac_cv_type_u_int64_t" = x""yes; then :
7453
6160
  and64="/u_int64_t"
7454
6161
else
7455
6162
  and64=""
7458
6165
   ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
7459
6166
   break;
7460
6167
  done
7461
 
  { echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
7462
 
echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; }
 
6168
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
 
6169
$as_echo_n "checking for stdint u_int32_t... " >&6; }
7463
6170
 
7464
6171
fi
7465
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
7466
 
echo "${ECHO_T}$ac_cv_header_stdint_u" >&6; }
 
6172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
 
6173
$as_echo "$ac_cv_header_stdint_u" >&6; }
7467
6174
fi fi
7468
6175
 
7469
6176
if test "_$ac_cv_header_stdint_x" = "_" ; then
7470
 
   { echo "$as_me:$LINENO: checking for stdint datatype model" >&5
7471
 
echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6; }
7472
 
   { echo "$as_me:$LINENO: result: (..)" >&5
7473
 
echo "${ECHO_T}(..)" >&6; }
7474
 
   { echo "$as_me:$LINENO: checking for char" >&5
7475
 
echo $ECHO_N "checking for char... $ECHO_C" >&6; }
7476
 
if test "${ac_cv_type_char+set}" = set; then
7477
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7478
 
else
7479
 
  cat >conftest.$ac_ext <<_ACEOF
7480
 
/* confdefs.h.  */
7481
 
_ACEOF
7482
 
cat confdefs.h >>conftest.$ac_ext
7483
 
cat >>conftest.$ac_ext <<_ACEOF
7484
 
/* end confdefs.h.  */
7485
 
$ac_includes_default
7486
 
typedef char ac__type_new_;
7487
 
int
7488
 
main ()
7489
 
{
7490
 
if ((ac__type_new_ *) 0)
7491
 
  return 0;
7492
 
if (sizeof (ac__type_new_))
7493
 
  return 0;
7494
 
  ;
7495
 
  return 0;
7496
 
}
7497
 
_ACEOF
7498
 
rm -f conftest.$ac_objext
7499
 
if { (ac_try="$ac_compile"
7500
 
case "(($ac_try" in
7501
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502
 
  *) ac_try_echo=$ac_try;;
7503
 
esac
7504
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505
 
  (eval "$ac_compile") 2>conftest.er1
7506
 
  ac_status=$?
7507
 
  grep -v '^ *+' conftest.er1 >conftest.err
7508
 
  rm -f conftest.er1
7509
 
  cat conftest.err >&5
7510
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511
 
  (exit $ac_status); } && {
7512
 
         test -z "$ac_c_werror_flag" ||
7513
 
         test ! -s conftest.err
7514
 
       } && test -s conftest.$ac_objext; then
7515
 
  ac_cv_type_char=yes
7516
 
else
7517
 
  echo "$as_me: failed program was:" >&5
7518
 
sed 's/^/| /' conftest.$ac_ext >&5
7519
 
 
7520
 
        ac_cv_type_char=no
7521
 
fi
7522
 
 
7523
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524
 
fi
7525
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7526
 
echo "${ECHO_T}$ac_cv_type_char" >&6; }
7527
 
 
7528
 
# The cast to long int works around a bug in the HP C Compiler
 
6177
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
 
6178
$as_echo_n "checking for stdint datatype model... " >&6; }
 
6179
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
 
6180
$as_echo "(..)" >&6; }
 
6181
   # The cast to long int works around a bug in the HP C Compiler
7529
6182
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7530
6183
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7531
6184
# This bug is HP SR number 8606223364.
7532
 
{ echo "$as_me:$LINENO: checking size of char" >&5
7533
 
echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
7534
 
if test "${ac_cv_sizeof_char+set}" = set; then
7535
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7536
 
else
7537
 
  if test "$cross_compiling" = yes; then
7538
 
  # Depending upon the size, compute the lo and hi bounds.
7539
 
cat >conftest.$ac_ext <<_ACEOF
7540
 
/* confdefs.h.  */
7541
 
_ACEOF
7542
 
cat confdefs.h >>conftest.$ac_ext
7543
 
cat >>conftest.$ac_ext <<_ACEOF
7544
 
/* end confdefs.h.  */
7545
 
$ac_includes_default
7546
 
   typedef char ac__type_sizeof_;
7547
 
int
7548
 
main ()
7549
 
{
7550
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7551
 
test_array [0] = 0
7552
 
 
7553
 
  ;
7554
 
  return 0;
7555
 
}
7556
 
_ACEOF
7557
 
rm -f conftest.$ac_objext
7558
 
if { (ac_try="$ac_compile"
7559
 
case "(($ac_try" in
7560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561
 
  *) ac_try_echo=$ac_try;;
7562
 
esac
7563
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564
 
  (eval "$ac_compile") 2>conftest.er1
7565
 
  ac_status=$?
7566
 
  grep -v '^ *+' conftest.er1 >conftest.err
7567
 
  rm -f conftest.er1
7568
 
  cat conftest.err >&5
7569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570
 
  (exit $ac_status); } && {
7571
 
         test -z "$ac_c_werror_flag" ||
7572
 
         test ! -s conftest.err
7573
 
       } && test -s conftest.$ac_objext; then
7574
 
  ac_lo=0 ac_mid=0
7575
 
  while :; do
7576
 
    cat >conftest.$ac_ext <<_ACEOF
7577
 
/* confdefs.h.  */
7578
 
_ACEOF
7579
 
cat confdefs.h >>conftest.$ac_ext
7580
 
cat >>conftest.$ac_ext <<_ACEOF
7581
 
/* end confdefs.h.  */
7582
 
$ac_includes_default
7583
 
   typedef char ac__type_sizeof_;
7584
 
int
7585
 
main ()
7586
 
{
7587
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7588
 
test_array [0] = 0
7589
 
 
7590
 
  ;
7591
 
  return 0;
7592
 
}
7593
 
_ACEOF
7594
 
rm -f conftest.$ac_objext
7595
 
if { (ac_try="$ac_compile"
7596
 
case "(($ac_try" in
7597
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598
 
  *) ac_try_echo=$ac_try;;
7599
 
esac
7600
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601
 
  (eval "$ac_compile") 2>conftest.er1
7602
 
  ac_status=$?
7603
 
  grep -v '^ *+' conftest.er1 >conftest.err
7604
 
  rm -f conftest.er1
7605
 
  cat conftest.err >&5
7606
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607
 
  (exit $ac_status); } && {
7608
 
         test -z "$ac_c_werror_flag" ||
7609
 
         test ! -s conftest.err
7610
 
       } && test -s conftest.$ac_objext; then
7611
 
  ac_hi=$ac_mid; break
7612
 
else
7613
 
  echo "$as_me: failed program was:" >&5
7614
 
sed 's/^/| /' conftest.$ac_ext >&5
7615
 
 
7616
 
        ac_lo=`expr $ac_mid + 1`
7617
 
                        if test $ac_lo -le $ac_mid; then
7618
 
                          ac_lo= ac_hi=
7619
 
                          break
7620
 
                        fi
7621
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
7622
 
fi
7623
 
 
7624
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625
 
  done
7626
 
else
7627
 
  echo "$as_me: failed program was:" >&5
7628
 
sed 's/^/| /' conftest.$ac_ext >&5
7629
 
 
7630
 
        cat >conftest.$ac_ext <<_ACEOF
7631
 
/* confdefs.h.  */
7632
 
_ACEOF
7633
 
cat confdefs.h >>conftest.$ac_ext
7634
 
cat >>conftest.$ac_ext <<_ACEOF
7635
 
/* end confdefs.h.  */
7636
 
$ac_includes_default
7637
 
   typedef char ac__type_sizeof_;
7638
 
int
7639
 
main ()
7640
 
{
7641
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7642
 
test_array [0] = 0
7643
 
 
7644
 
  ;
7645
 
  return 0;
7646
 
}
7647
 
_ACEOF
7648
 
rm -f conftest.$ac_objext
7649
 
if { (ac_try="$ac_compile"
7650
 
case "(($ac_try" in
7651
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652
 
  *) ac_try_echo=$ac_try;;
7653
 
esac
7654
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655
 
  (eval "$ac_compile") 2>conftest.er1
7656
 
  ac_status=$?
7657
 
  grep -v '^ *+' conftest.er1 >conftest.err
7658
 
  rm -f conftest.er1
7659
 
  cat conftest.err >&5
7660
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661
 
  (exit $ac_status); } && {
7662
 
         test -z "$ac_c_werror_flag" ||
7663
 
         test ! -s conftest.err
7664
 
       } && test -s conftest.$ac_objext; then
7665
 
  ac_hi=-1 ac_mid=-1
7666
 
  while :; do
7667
 
    cat >conftest.$ac_ext <<_ACEOF
7668
 
/* confdefs.h.  */
7669
 
_ACEOF
7670
 
cat confdefs.h >>conftest.$ac_ext
7671
 
cat >>conftest.$ac_ext <<_ACEOF
7672
 
/* end confdefs.h.  */
7673
 
$ac_includes_default
7674
 
   typedef char ac__type_sizeof_;
7675
 
int
7676
 
main ()
7677
 
{
7678
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7679
 
test_array [0] = 0
7680
 
 
7681
 
  ;
7682
 
  return 0;
7683
 
}
7684
 
_ACEOF
7685
 
rm -f conftest.$ac_objext
7686
 
if { (ac_try="$ac_compile"
7687
 
case "(($ac_try" in
7688
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689
 
  *) ac_try_echo=$ac_try;;
7690
 
esac
7691
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692
 
  (eval "$ac_compile") 2>conftest.er1
7693
 
  ac_status=$?
7694
 
  grep -v '^ *+' conftest.er1 >conftest.err
7695
 
  rm -f conftest.er1
7696
 
  cat conftest.err >&5
7697
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698
 
  (exit $ac_status); } && {
7699
 
         test -z "$ac_c_werror_flag" ||
7700
 
         test ! -s conftest.err
7701
 
       } && test -s conftest.$ac_objext; then
7702
 
  ac_lo=$ac_mid; break
7703
 
else
7704
 
  echo "$as_me: failed program was:" >&5
7705
 
sed 's/^/| /' conftest.$ac_ext >&5
7706
 
 
7707
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
7708
 
                        if test $ac_mid -le $ac_hi; then
7709
 
                          ac_lo= ac_hi=
7710
 
                          break
7711
 
                        fi
7712
 
                        ac_mid=`expr 2 '*' $ac_mid`
7713
 
fi
7714
 
 
7715
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716
 
  done
7717
 
else
7718
 
  echo "$as_me: failed program was:" >&5
7719
 
sed 's/^/| /' conftest.$ac_ext >&5
7720
 
 
7721
 
        ac_lo= ac_hi=
7722
 
fi
7723
 
 
7724
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725
 
fi
7726
 
 
7727
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728
 
# Binary search between lo and hi bounds.
7729
 
while test "x$ac_lo" != "x$ac_hi"; do
7730
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7731
 
  cat >conftest.$ac_ext <<_ACEOF
7732
 
/* confdefs.h.  */
7733
 
_ACEOF
7734
 
cat confdefs.h >>conftest.$ac_ext
7735
 
cat >>conftest.$ac_ext <<_ACEOF
7736
 
/* end confdefs.h.  */
7737
 
$ac_includes_default
7738
 
   typedef char ac__type_sizeof_;
7739
 
int
7740
 
main ()
7741
 
{
7742
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7743
 
test_array [0] = 0
7744
 
 
7745
 
  ;
7746
 
  return 0;
7747
 
}
7748
 
_ACEOF
7749
 
rm -f conftest.$ac_objext
7750
 
if { (ac_try="$ac_compile"
7751
 
case "(($ac_try" in
7752
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753
 
  *) ac_try_echo=$ac_try;;
7754
 
esac
7755
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756
 
  (eval "$ac_compile") 2>conftest.er1
7757
 
  ac_status=$?
7758
 
  grep -v '^ *+' conftest.er1 >conftest.err
7759
 
  rm -f conftest.er1
7760
 
  cat conftest.err >&5
7761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762
 
  (exit $ac_status); } && {
7763
 
         test -z "$ac_c_werror_flag" ||
7764
 
         test ! -s conftest.err
7765
 
       } && test -s conftest.$ac_objext; then
7766
 
  ac_hi=$ac_mid
7767
 
else
7768
 
  echo "$as_me: failed program was:" >&5
7769
 
sed 's/^/| /' conftest.$ac_ext >&5
7770
 
 
7771
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
7772
 
fi
7773
 
 
7774
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775
 
done
7776
 
case $ac_lo in
7777
 
?*) ac_cv_sizeof_char=$ac_lo;;
7778
 
'') if test "$ac_cv_type_char" = yes; then
7779
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7780
 
See \`config.log' for more details." >&5
7781
 
echo "$as_me: error: cannot compute sizeof (char)
7782
 
See \`config.log' for more details." >&2;}
7783
 
   { (exit 77); exit 77; }; }
7784
 
   else
7785
 
     ac_cv_sizeof_char=0
7786
 
   fi ;;
7787
 
esac
7788
 
else
7789
 
  cat >conftest.$ac_ext <<_ACEOF
7790
 
/* confdefs.h.  */
7791
 
_ACEOF
7792
 
cat confdefs.h >>conftest.$ac_ext
7793
 
cat >>conftest.$ac_ext <<_ACEOF
7794
 
/* end confdefs.h.  */
7795
 
$ac_includes_default
7796
 
   typedef char ac__type_sizeof_;
7797
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7798
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7799
 
#include <stdio.h>
7800
 
#include <stdlib.h>
7801
 
int
7802
 
main ()
7803
 
{
7804
 
 
7805
 
  FILE *f = fopen ("conftest.val", "w");
7806
 
  if (! f)
7807
 
    return 1;
7808
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7809
 
    {
7810
 
      long int i = longval ();
7811
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7812
 
        return 1;
7813
 
      fprintf (f, "%ld\n", i);
7814
 
    }
7815
 
  else
7816
 
    {
7817
 
      unsigned long int i = ulongval ();
7818
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7819
 
        return 1;
7820
 
      fprintf (f, "%lu\n", i);
7821
 
    }
7822
 
  return ferror (f) || fclose (f) != 0;
7823
 
 
7824
 
  ;
7825
 
  return 0;
7826
 
}
7827
 
_ACEOF
7828
 
rm -f conftest$ac_exeext
7829
 
if { (ac_try="$ac_link"
7830
 
case "(($ac_try" in
7831
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832
 
  *) ac_try_echo=$ac_try;;
7833
 
esac
7834
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835
 
  (eval "$ac_link") 2>&5
7836
 
  ac_status=$?
7837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7839
 
  { (case "(($ac_try" in
7840
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841
 
  *) ac_try_echo=$ac_try;;
7842
 
esac
7843
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844
 
  (eval "$ac_try") 2>&5
7845
 
  ac_status=$?
7846
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847
 
  (exit $ac_status); }; }; then
7848
 
  ac_cv_sizeof_char=`cat conftest.val`
7849
 
else
7850
 
  echo "$as_me: program exited with status $ac_status" >&5
7851
 
echo "$as_me: failed program was:" >&5
7852
 
sed 's/^/| /' conftest.$ac_ext >&5
7853
 
 
7854
 
( exit $ac_status )
7855
 
if test "$ac_cv_type_char" = yes; then
7856
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7857
 
See \`config.log' for more details." >&5
7858
 
echo "$as_me: error: cannot compute sizeof (char)
7859
 
See \`config.log' for more details." >&2;}
7860
 
   { (exit 77); exit 77; }; }
 
6185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
 
6186
$as_echo_n "checking size of char... " >&6; }
 
6187
if test "${ac_cv_sizeof_char+set}" = set; then :
 
6188
  $as_echo_n "(cached) " >&6
 
6189
else
 
6190
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
 
6191
 
 
6192
else
 
6193
  if test "$ac_cv_type_char" = yes; then
 
6194
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6195
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6196
as_fn_error 77 "cannot compute sizeof (char)
 
6197
See \`config.log' for more details" "$LINENO" 5 ; }
7861
6198
   else
7862
6199
     ac_cv_sizeof_char=0
7863
6200
   fi
7864
6201
fi
7865
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7866
 
fi
7867
 
rm -f conftest.val
7868
 
fi
7869
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7870
 
echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
 
6202
 
 
6203
fi
 
6204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
 
6205
$as_echo "$ac_cv_sizeof_char" >&6; }
7871
6206
 
7872
6207
 
7873
6208
 
7876
6211
_ACEOF
7877
6212
 
7878
6213
 
7879
 
   { echo "$as_me:$LINENO: checking for short" >&5
7880
 
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7881
 
if test "${ac_cv_type_short+set}" = set; then
7882
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7883
 
else
7884
 
  cat >conftest.$ac_ext <<_ACEOF
7885
 
/* confdefs.h.  */
7886
 
_ACEOF
7887
 
cat confdefs.h >>conftest.$ac_ext
7888
 
cat >>conftest.$ac_ext <<_ACEOF
7889
 
/* end confdefs.h.  */
7890
 
$ac_includes_default
7891
 
typedef short ac__type_new_;
7892
 
int
7893
 
main ()
7894
 
{
7895
 
if ((ac__type_new_ *) 0)
7896
 
  return 0;
7897
 
if (sizeof (ac__type_new_))
7898
 
  return 0;
7899
 
  ;
7900
 
  return 0;
7901
 
}
7902
 
_ACEOF
7903
 
rm -f conftest.$ac_objext
7904
 
if { (ac_try="$ac_compile"
7905
 
case "(($ac_try" in
7906
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907
 
  *) ac_try_echo=$ac_try;;
7908
 
esac
7909
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910
 
  (eval "$ac_compile") 2>conftest.er1
7911
 
  ac_status=$?
7912
 
  grep -v '^ *+' conftest.er1 >conftest.err
7913
 
  rm -f conftest.er1
7914
 
  cat conftest.err >&5
7915
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916
 
  (exit $ac_status); } && {
7917
 
         test -z "$ac_c_werror_flag" ||
7918
 
         test ! -s conftest.err
7919
 
       } && test -s conftest.$ac_objext; then
7920
 
  ac_cv_type_short=yes
7921
 
else
7922
 
  echo "$as_me: failed program was:" >&5
7923
 
sed 's/^/| /' conftest.$ac_ext >&5
7924
 
 
7925
 
        ac_cv_type_short=no
7926
 
fi
7927
 
 
7928
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929
 
fi
7930
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7931
 
echo "${ECHO_T}$ac_cv_type_short" >&6; }
7932
 
 
7933
 
# The cast to long int works around a bug in the HP C Compiler
 
6214
   # The cast to long int works around a bug in the HP C Compiler
7934
6215
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7935
6216
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7936
6217
# This bug is HP SR number 8606223364.
7937
 
{ echo "$as_me:$LINENO: checking size of short" >&5
7938
 
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7939
 
if test "${ac_cv_sizeof_short+set}" = set; then
7940
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7941
 
else
7942
 
  if test "$cross_compiling" = yes; then
7943
 
  # Depending upon the size, compute the lo and hi bounds.
7944
 
cat >conftest.$ac_ext <<_ACEOF
7945
 
/* confdefs.h.  */
7946
 
_ACEOF
7947
 
cat confdefs.h >>conftest.$ac_ext
7948
 
cat >>conftest.$ac_ext <<_ACEOF
7949
 
/* end confdefs.h.  */
7950
 
$ac_includes_default
7951
 
   typedef short ac__type_sizeof_;
7952
 
int
7953
 
main ()
7954
 
{
7955
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7956
 
test_array [0] = 0
7957
 
 
7958
 
  ;
7959
 
  return 0;
7960
 
}
7961
 
_ACEOF
7962
 
rm -f conftest.$ac_objext
7963
 
if { (ac_try="$ac_compile"
7964
 
case "(($ac_try" in
7965
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966
 
  *) ac_try_echo=$ac_try;;
7967
 
esac
7968
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969
 
  (eval "$ac_compile") 2>conftest.er1
7970
 
  ac_status=$?
7971
 
  grep -v '^ *+' conftest.er1 >conftest.err
7972
 
  rm -f conftest.er1
7973
 
  cat conftest.err >&5
7974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975
 
  (exit $ac_status); } && {
7976
 
         test -z "$ac_c_werror_flag" ||
7977
 
         test ! -s conftest.err
7978
 
       } && test -s conftest.$ac_objext; then
7979
 
  ac_lo=0 ac_mid=0
7980
 
  while :; do
7981
 
    cat >conftest.$ac_ext <<_ACEOF
7982
 
/* confdefs.h.  */
7983
 
_ACEOF
7984
 
cat confdefs.h >>conftest.$ac_ext
7985
 
cat >>conftest.$ac_ext <<_ACEOF
7986
 
/* end confdefs.h.  */
7987
 
$ac_includes_default
7988
 
   typedef short ac__type_sizeof_;
7989
 
int
7990
 
main ()
7991
 
{
7992
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7993
 
test_array [0] = 0
7994
 
 
7995
 
  ;
7996
 
  return 0;
7997
 
}
7998
 
_ACEOF
7999
 
rm -f conftest.$ac_objext
8000
 
if { (ac_try="$ac_compile"
8001
 
case "(($ac_try" in
8002
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003
 
  *) ac_try_echo=$ac_try;;
8004
 
esac
8005
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006
 
  (eval "$ac_compile") 2>conftest.er1
8007
 
  ac_status=$?
8008
 
  grep -v '^ *+' conftest.er1 >conftest.err
8009
 
  rm -f conftest.er1
8010
 
  cat conftest.err >&5
8011
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012
 
  (exit $ac_status); } && {
8013
 
         test -z "$ac_c_werror_flag" ||
8014
 
         test ! -s conftest.err
8015
 
       } && test -s conftest.$ac_objext; then
8016
 
  ac_hi=$ac_mid; break
8017
 
else
8018
 
  echo "$as_me: failed program was:" >&5
8019
 
sed 's/^/| /' conftest.$ac_ext >&5
8020
 
 
8021
 
        ac_lo=`expr $ac_mid + 1`
8022
 
                        if test $ac_lo -le $ac_mid; then
8023
 
                          ac_lo= ac_hi=
8024
 
                          break
8025
 
                        fi
8026
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
8027
 
fi
8028
 
 
8029
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030
 
  done
8031
 
else
8032
 
  echo "$as_me: failed program was:" >&5
8033
 
sed 's/^/| /' conftest.$ac_ext >&5
8034
 
 
8035
 
        cat >conftest.$ac_ext <<_ACEOF
8036
 
/* confdefs.h.  */
8037
 
_ACEOF
8038
 
cat confdefs.h >>conftest.$ac_ext
8039
 
cat >>conftest.$ac_ext <<_ACEOF
8040
 
/* end confdefs.h.  */
8041
 
$ac_includes_default
8042
 
   typedef short ac__type_sizeof_;
8043
 
int
8044
 
main ()
8045
 
{
8046
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8047
 
test_array [0] = 0
8048
 
 
8049
 
  ;
8050
 
  return 0;
8051
 
}
8052
 
_ACEOF
8053
 
rm -f conftest.$ac_objext
8054
 
if { (ac_try="$ac_compile"
8055
 
case "(($ac_try" in
8056
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057
 
  *) ac_try_echo=$ac_try;;
8058
 
esac
8059
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060
 
  (eval "$ac_compile") 2>conftest.er1
8061
 
  ac_status=$?
8062
 
  grep -v '^ *+' conftest.er1 >conftest.err
8063
 
  rm -f conftest.er1
8064
 
  cat conftest.err >&5
8065
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066
 
  (exit $ac_status); } && {
8067
 
         test -z "$ac_c_werror_flag" ||
8068
 
         test ! -s conftest.err
8069
 
       } && test -s conftest.$ac_objext; then
8070
 
  ac_hi=-1 ac_mid=-1
8071
 
  while :; do
8072
 
    cat >conftest.$ac_ext <<_ACEOF
8073
 
/* confdefs.h.  */
8074
 
_ACEOF
8075
 
cat confdefs.h >>conftest.$ac_ext
8076
 
cat >>conftest.$ac_ext <<_ACEOF
8077
 
/* end confdefs.h.  */
8078
 
$ac_includes_default
8079
 
   typedef short ac__type_sizeof_;
8080
 
int
8081
 
main ()
8082
 
{
8083
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8084
 
test_array [0] = 0
8085
 
 
8086
 
  ;
8087
 
  return 0;
8088
 
}
8089
 
_ACEOF
8090
 
rm -f conftest.$ac_objext
8091
 
if { (ac_try="$ac_compile"
8092
 
case "(($ac_try" in
8093
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094
 
  *) ac_try_echo=$ac_try;;
8095
 
esac
8096
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097
 
  (eval "$ac_compile") 2>conftest.er1
8098
 
  ac_status=$?
8099
 
  grep -v '^ *+' conftest.er1 >conftest.err
8100
 
  rm -f conftest.er1
8101
 
  cat conftest.err >&5
8102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103
 
  (exit $ac_status); } && {
8104
 
         test -z "$ac_c_werror_flag" ||
8105
 
         test ! -s conftest.err
8106
 
       } && test -s conftest.$ac_objext; then
8107
 
  ac_lo=$ac_mid; break
8108
 
else
8109
 
  echo "$as_me: failed program was:" >&5
8110
 
sed 's/^/| /' conftest.$ac_ext >&5
8111
 
 
8112
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
8113
 
                        if test $ac_mid -le $ac_hi; then
8114
 
                          ac_lo= ac_hi=
8115
 
                          break
8116
 
                        fi
8117
 
                        ac_mid=`expr 2 '*' $ac_mid`
8118
 
fi
8119
 
 
8120
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121
 
  done
8122
 
else
8123
 
  echo "$as_me: failed program was:" >&5
8124
 
sed 's/^/| /' conftest.$ac_ext >&5
8125
 
 
8126
 
        ac_lo= ac_hi=
8127
 
fi
8128
 
 
8129
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130
 
fi
8131
 
 
8132
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133
 
# Binary search between lo and hi bounds.
8134
 
while test "x$ac_lo" != "x$ac_hi"; do
8135
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8136
 
  cat >conftest.$ac_ext <<_ACEOF
8137
 
/* confdefs.h.  */
8138
 
_ACEOF
8139
 
cat confdefs.h >>conftest.$ac_ext
8140
 
cat >>conftest.$ac_ext <<_ACEOF
8141
 
/* end confdefs.h.  */
8142
 
$ac_includes_default
8143
 
   typedef short ac__type_sizeof_;
8144
 
int
8145
 
main ()
8146
 
{
8147
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8148
 
test_array [0] = 0
8149
 
 
8150
 
  ;
8151
 
  return 0;
8152
 
}
8153
 
_ACEOF
8154
 
rm -f conftest.$ac_objext
8155
 
if { (ac_try="$ac_compile"
8156
 
case "(($ac_try" in
8157
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158
 
  *) ac_try_echo=$ac_try;;
8159
 
esac
8160
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161
 
  (eval "$ac_compile") 2>conftest.er1
8162
 
  ac_status=$?
8163
 
  grep -v '^ *+' conftest.er1 >conftest.err
8164
 
  rm -f conftest.er1
8165
 
  cat conftest.err >&5
8166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167
 
  (exit $ac_status); } && {
8168
 
         test -z "$ac_c_werror_flag" ||
8169
 
         test ! -s conftest.err
8170
 
       } && test -s conftest.$ac_objext; then
8171
 
  ac_hi=$ac_mid
8172
 
else
8173
 
  echo "$as_me: failed program was:" >&5
8174
 
sed 's/^/| /' conftest.$ac_ext >&5
8175
 
 
8176
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
8177
 
fi
8178
 
 
8179
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180
 
done
8181
 
case $ac_lo in
8182
 
?*) ac_cv_sizeof_short=$ac_lo;;
8183
 
'') if test "$ac_cv_type_short" = yes; then
8184
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8185
 
See \`config.log' for more details." >&5
8186
 
echo "$as_me: error: cannot compute sizeof (short)
8187
 
See \`config.log' for more details." >&2;}
8188
 
   { (exit 77); exit 77; }; }
8189
 
   else
8190
 
     ac_cv_sizeof_short=0
8191
 
   fi ;;
8192
 
esac
8193
 
else
8194
 
  cat >conftest.$ac_ext <<_ACEOF
8195
 
/* confdefs.h.  */
8196
 
_ACEOF
8197
 
cat confdefs.h >>conftest.$ac_ext
8198
 
cat >>conftest.$ac_ext <<_ACEOF
8199
 
/* end confdefs.h.  */
8200
 
$ac_includes_default
8201
 
   typedef short ac__type_sizeof_;
8202
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8203
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8204
 
#include <stdio.h>
8205
 
#include <stdlib.h>
8206
 
int
8207
 
main ()
8208
 
{
8209
 
 
8210
 
  FILE *f = fopen ("conftest.val", "w");
8211
 
  if (! f)
8212
 
    return 1;
8213
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8214
 
    {
8215
 
      long int i = longval ();
8216
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8217
 
        return 1;
8218
 
      fprintf (f, "%ld\n", i);
8219
 
    }
8220
 
  else
8221
 
    {
8222
 
      unsigned long int i = ulongval ();
8223
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8224
 
        return 1;
8225
 
      fprintf (f, "%lu\n", i);
8226
 
    }
8227
 
  return ferror (f) || fclose (f) != 0;
8228
 
 
8229
 
  ;
8230
 
  return 0;
8231
 
}
8232
 
_ACEOF
8233
 
rm -f conftest$ac_exeext
8234
 
if { (ac_try="$ac_link"
8235
 
case "(($ac_try" in
8236
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237
 
  *) ac_try_echo=$ac_try;;
8238
 
esac
8239
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240
 
  (eval "$ac_link") 2>&5
8241
 
  ac_status=$?
8242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8244
 
  { (case "(($ac_try" in
8245
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246
 
  *) ac_try_echo=$ac_try;;
8247
 
esac
8248
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249
 
  (eval "$ac_try") 2>&5
8250
 
  ac_status=$?
8251
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252
 
  (exit $ac_status); }; }; then
8253
 
  ac_cv_sizeof_short=`cat conftest.val`
8254
 
else
8255
 
  echo "$as_me: program exited with status $ac_status" >&5
8256
 
echo "$as_me: failed program was:" >&5
8257
 
sed 's/^/| /' conftest.$ac_ext >&5
8258
 
 
8259
 
( exit $ac_status )
8260
 
if test "$ac_cv_type_short" = yes; then
8261
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8262
 
See \`config.log' for more details." >&5
8263
 
echo "$as_me: error: cannot compute sizeof (short)
8264
 
See \`config.log' for more details." >&2;}
8265
 
   { (exit 77); exit 77; }; }
 
6218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
 
6219
$as_echo_n "checking size of short... " >&6; }
 
6220
if test "${ac_cv_sizeof_short+set}" = set; then :
 
6221
  $as_echo_n "(cached) " >&6
 
6222
else
 
6223
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
 
6224
 
 
6225
else
 
6226
  if test "$ac_cv_type_short" = yes; then
 
6227
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6228
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6229
as_fn_error 77 "cannot compute sizeof (short)
 
6230
See \`config.log' for more details" "$LINENO" 5 ; }
8266
6231
   else
8267
6232
     ac_cv_sizeof_short=0
8268
6233
   fi
8269
6234
fi
8270
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8271
 
fi
8272
 
rm -f conftest.val
8273
 
fi
8274
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8275
 
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
 
6235
 
 
6236
fi
 
6237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
 
6238
$as_echo "$ac_cv_sizeof_short" >&6; }
8276
6239
 
8277
6240
 
8278
6241
 
8281
6244
_ACEOF
8282
6245
 
8283
6246
 
8284
 
   { echo "$as_me:$LINENO: checking for int" >&5
8285
 
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8286
 
if test "${ac_cv_type_int+set}" = set; then
8287
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8288
 
else
8289
 
  cat >conftest.$ac_ext <<_ACEOF
8290
 
/* confdefs.h.  */
8291
 
_ACEOF
8292
 
cat confdefs.h >>conftest.$ac_ext
8293
 
cat >>conftest.$ac_ext <<_ACEOF
8294
 
/* end confdefs.h.  */
8295
 
$ac_includes_default
8296
 
typedef int ac__type_new_;
8297
 
int
8298
 
main ()
8299
 
{
8300
 
if ((ac__type_new_ *) 0)
8301
 
  return 0;
8302
 
if (sizeof (ac__type_new_))
8303
 
  return 0;
8304
 
  ;
8305
 
  return 0;
8306
 
}
8307
 
_ACEOF
8308
 
rm -f conftest.$ac_objext
8309
 
if { (ac_try="$ac_compile"
8310
 
case "(($ac_try" in
8311
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312
 
  *) ac_try_echo=$ac_try;;
8313
 
esac
8314
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315
 
  (eval "$ac_compile") 2>conftest.er1
8316
 
  ac_status=$?
8317
 
  grep -v '^ *+' conftest.er1 >conftest.err
8318
 
  rm -f conftest.er1
8319
 
  cat conftest.err >&5
8320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321
 
  (exit $ac_status); } && {
8322
 
         test -z "$ac_c_werror_flag" ||
8323
 
         test ! -s conftest.err
8324
 
       } && test -s conftest.$ac_objext; then
8325
 
  ac_cv_type_int=yes
8326
 
else
8327
 
  echo "$as_me: failed program was:" >&5
8328
 
sed 's/^/| /' conftest.$ac_ext >&5
8329
 
 
8330
 
        ac_cv_type_int=no
8331
 
fi
8332
 
 
8333
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334
 
fi
8335
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8336
 
echo "${ECHO_T}$ac_cv_type_int" >&6; }
8337
 
 
8338
 
# The cast to long int works around a bug in the HP C Compiler
 
6247
   # The cast to long int works around a bug in the HP C Compiler
8339
6248
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8340
6249
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8341
6250
# This bug is HP SR number 8606223364.
8342
 
{ echo "$as_me:$LINENO: checking size of int" >&5
8343
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8344
 
if test "${ac_cv_sizeof_int+set}" = set; then
8345
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8346
 
else
8347
 
  if test "$cross_compiling" = yes; then
8348
 
  # Depending upon the size, compute the lo and hi bounds.
8349
 
cat >conftest.$ac_ext <<_ACEOF
8350
 
/* confdefs.h.  */
8351
 
_ACEOF
8352
 
cat confdefs.h >>conftest.$ac_ext
8353
 
cat >>conftest.$ac_ext <<_ACEOF
8354
 
/* end confdefs.h.  */
8355
 
$ac_includes_default
8356
 
   typedef int ac__type_sizeof_;
8357
 
int
8358
 
main ()
8359
 
{
8360
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8361
 
test_array [0] = 0
8362
 
 
8363
 
  ;
8364
 
  return 0;
8365
 
}
8366
 
_ACEOF
8367
 
rm -f conftest.$ac_objext
8368
 
if { (ac_try="$ac_compile"
8369
 
case "(($ac_try" in
8370
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371
 
  *) ac_try_echo=$ac_try;;
8372
 
esac
8373
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374
 
  (eval "$ac_compile") 2>conftest.er1
8375
 
  ac_status=$?
8376
 
  grep -v '^ *+' conftest.er1 >conftest.err
8377
 
  rm -f conftest.er1
8378
 
  cat conftest.err >&5
8379
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380
 
  (exit $ac_status); } && {
8381
 
         test -z "$ac_c_werror_flag" ||
8382
 
         test ! -s conftest.err
8383
 
       } && test -s conftest.$ac_objext; then
8384
 
  ac_lo=0 ac_mid=0
8385
 
  while :; do
8386
 
    cat >conftest.$ac_ext <<_ACEOF
8387
 
/* confdefs.h.  */
8388
 
_ACEOF
8389
 
cat confdefs.h >>conftest.$ac_ext
8390
 
cat >>conftest.$ac_ext <<_ACEOF
8391
 
/* end confdefs.h.  */
8392
 
$ac_includes_default
8393
 
   typedef int ac__type_sizeof_;
8394
 
int
8395
 
main ()
8396
 
{
8397
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8398
 
test_array [0] = 0
8399
 
 
8400
 
  ;
8401
 
  return 0;
8402
 
}
8403
 
_ACEOF
8404
 
rm -f conftest.$ac_objext
8405
 
if { (ac_try="$ac_compile"
8406
 
case "(($ac_try" in
8407
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408
 
  *) ac_try_echo=$ac_try;;
8409
 
esac
8410
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411
 
  (eval "$ac_compile") 2>conftest.er1
8412
 
  ac_status=$?
8413
 
  grep -v '^ *+' conftest.er1 >conftest.err
8414
 
  rm -f conftest.er1
8415
 
  cat conftest.err >&5
8416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417
 
  (exit $ac_status); } && {
8418
 
         test -z "$ac_c_werror_flag" ||
8419
 
         test ! -s conftest.err
8420
 
       } && test -s conftest.$ac_objext; then
8421
 
  ac_hi=$ac_mid; break
8422
 
else
8423
 
  echo "$as_me: failed program was:" >&5
8424
 
sed 's/^/| /' conftest.$ac_ext >&5
8425
 
 
8426
 
        ac_lo=`expr $ac_mid + 1`
8427
 
                        if test $ac_lo -le $ac_mid; then
8428
 
                          ac_lo= ac_hi=
8429
 
                          break
8430
 
                        fi
8431
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
8432
 
fi
8433
 
 
8434
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435
 
  done
8436
 
else
8437
 
  echo "$as_me: failed program was:" >&5
8438
 
sed 's/^/| /' conftest.$ac_ext >&5
8439
 
 
8440
 
        cat >conftest.$ac_ext <<_ACEOF
8441
 
/* confdefs.h.  */
8442
 
_ACEOF
8443
 
cat confdefs.h >>conftest.$ac_ext
8444
 
cat >>conftest.$ac_ext <<_ACEOF
8445
 
/* end confdefs.h.  */
8446
 
$ac_includes_default
8447
 
   typedef int ac__type_sizeof_;
8448
 
int
8449
 
main ()
8450
 
{
8451
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8452
 
test_array [0] = 0
8453
 
 
8454
 
  ;
8455
 
  return 0;
8456
 
}
8457
 
_ACEOF
8458
 
rm -f conftest.$ac_objext
8459
 
if { (ac_try="$ac_compile"
8460
 
case "(($ac_try" in
8461
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462
 
  *) ac_try_echo=$ac_try;;
8463
 
esac
8464
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465
 
  (eval "$ac_compile") 2>conftest.er1
8466
 
  ac_status=$?
8467
 
  grep -v '^ *+' conftest.er1 >conftest.err
8468
 
  rm -f conftest.er1
8469
 
  cat conftest.err >&5
8470
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471
 
  (exit $ac_status); } && {
8472
 
         test -z "$ac_c_werror_flag" ||
8473
 
         test ! -s conftest.err
8474
 
       } && test -s conftest.$ac_objext; then
8475
 
  ac_hi=-1 ac_mid=-1
8476
 
  while :; do
8477
 
    cat >conftest.$ac_ext <<_ACEOF
8478
 
/* confdefs.h.  */
8479
 
_ACEOF
8480
 
cat confdefs.h >>conftest.$ac_ext
8481
 
cat >>conftest.$ac_ext <<_ACEOF
8482
 
/* end confdefs.h.  */
8483
 
$ac_includes_default
8484
 
   typedef int ac__type_sizeof_;
8485
 
int
8486
 
main ()
8487
 
{
8488
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8489
 
test_array [0] = 0
8490
 
 
8491
 
  ;
8492
 
  return 0;
8493
 
}
8494
 
_ACEOF
8495
 
rm -f conftest.$ac_objext
8496
 
if { (ac_try="$ac_compile"
8497
 
case "(($ac_try" in
8498
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499
 
  *) ac_try_echo=$ac_try;;
8500
 
esac
8501
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502
 
  (eval "$ac_compile") 2>conftest.er1
8503
 
  ac_status=$?
8504
 
  grep -v '^ *+' conftest.er1 >conftest.err
8505
 
  rm -f conftest.er1
8506
 
  cat conftest.err >&5
8507
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508
 
  (exit $ac_status); } && {
8509
 
         test -z "$ac_c_werror_flag" ||
8510
 
         test ! -s conftest.err
8511
 
       } && test -s conftest.$ac_objext; then
8512
 
  ac_lo=$ac_mid; break
8513
 
else
8514
 
  echo "$as_me: failed program was:" >&5
8515
 
sed 's/^/| /' conftest.$ac_ext >&5
8516
 
 
8517
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
8518
 
                        if test $ac_mid -le $ac_hi; then
8519
 
                          ac_lo= ac_hi=
8520
 
                          break
8521
 
                        fi
8522
 
                        ac_mid=`expr 2 '*' $ac_mid`
8523
 
fi
8524
 
 
8525
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526
 
  done
8527
 
else
8528
 
  echo "$as_me: failed program was:" >&5
8529
 
sed 's/^/| /' conftest.$ac_ext >&5
8530
 
 
8531
 
        ac_lo= ac_hi=
8532
 
fi
8533
 
 
8534
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535
 
fi
8536
 
 
8537
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538
 
# Binary search between lo and hi bounds.
8539
 
while test "x$ac_lo" != "x$ac_hi"; do
8540
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8541
 
  cat >conftest.$ac_ext <<_ACEOF
8542
 
/* confdefs.h.  */
8543
 
_ACEOF
8544
 
cat confdefs.h >>conftest.$ac_ext
8545
 
cat >>conftest.$ac_ext <<_ACEOF
8546
 
/* end confdefs.h.  */
8547
 
$ac_includes_default
8548
 
   typedef int ac__type_sizeof_;
8549
 
int
8550
 
main ()
8551
 
{
8552
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8553
 
test_array [0] = 0
8554
 
 
8555
 
  ;
8556
 
  return 0;
8557
 
}
8558
 
_ACEOF
8559
 
rm -f conftest.$ac_objext
8560
 
if { (ac_try="$ac_compile"
8561
 
case "(($ac_try" in
8562
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563
 
  *) ac_try_echo=$ac_try;;
8564
 
esac
8565
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566
 
  (eval "$ac_compile") 2>conftest.er1
8567
 
  ac_status=$?
8568
 
  grep -v '^ *+' conftest.er1 >conftest.err
8569
 
  rm -f conftest.er1
8570
 
  cat conftest.err >&5
8571
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572
 
  (exit $ac_status); } && {
8573
 
         test -z "$ac_c_werror_flag" ||
8574
 
         test ! -s conftest.err
8575
 
       } && test -s conftest.$ac_objext; then
8576
 
  ac_hi=$ac_mid
8577
 
else
8578
 
  echo "$as_me: failed program was:" >&5
8579
 
sed 's/^/| /' conftest.$ac_ext >&5
8580
 
 
8581
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
8582
 
fi
8583
 
 
8584
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585
 
done
8586
 
case $ac_lo in
8587
 
?*) ac_cv_sizeof_int=$ac_lo;;
8588
 
'') if test "$ac_cv_type_int" = yes; then
8589
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8590
 
See \`config.log' for more details." >&5
8591
 
echo "$as_me: error: cannot compute sizeof (int)
8592
 
See \`config.log' for more details." >&2;}
8593
 
   { (exit 77); exit 77; }; }
8594
 
   else
8595
 
     ac_cv_sizeof_int=0
8596
 
   fi ;;
8597
 
esac
8598
 
else
8599
 
  cat >conftest.$ac_ext <<_ACEOF
8600
 
/* confdefs.h.  */
8601
 
_ACEOF
8602
 
cat confdefs.h >>conftest.$ac_ext
8603
 
cat >>conftest.$ac_ext <<_ACEOF
8604
 
/* end confdefs.h.  */
8605
 
$ac_includes_default
8606
 
   typedef int ac__type_sizeof_;
8607
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8608
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8609
 
#include <stdio.h>
8610
 
#include <stdlib.h>
8611
 
int
8612
 
main ()
8613
 
{
8614
 
 
8615
 
  FILE *f = fopen ("conftest.val", "w");
8616
 
  if (! f)
8617
 
    return 1;
8618
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8619
 
    {
8620
 
      long int i = longval ();
8621
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8622
 
        return 1;
8623
 
      fprintf (f, "%ld\n", i);
8624
 
    }
8625
 
  else
8626
 
    {
8627
 
      unsigned long int i = ulongval ();
8628
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8629
 
        return 1;
8630
 
      fprintf (f, "%lu\n", i);
8631
 
    }
8632
 
  return ferror (f) || fclose (f) != 0;
8633
 
 
8634
 
  ;
8635
 
  return 0;
8636
 
}
8637
 
_ACEOF
8638
 
rm -f conftest$ac_exeext
8639
 
if { (ac_try="$ac_link"
8640
 
case "(($ac_try" in
8641
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642
 
  *) ac_try_echo=$ac_try;;
8643
 
esac
8644
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645
 
  (eval "$ac_link") 2>&5
8646
 
  ac_status=$?
8647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8649
 
  { (case "(($ac_try" in
8650
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651
 
  *) ac_try_echo=$ac_try;;
8652
 
esac
8653
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654
 
  (eval "$ac_try") 2>&5
8655
 
  ac_status=$?
8656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657
 
  (exit $ac_status); }; }; then
8658
 
  ac_cv_sizeof_int=`cat conftest.val`
8659
 
else
8660
 
  echo "$as_me: program exited with status $ac_status" >&5
8661
 
echo "$as_me: failed program was:" >&5
8662
 
sed 's/^/| /' conftest.$ac_ext >&5
8663
 
 
8664
 
( exit $ac_status )
8665
 
if test "$ac_cv_type_int" = yes; then
8666
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8667
 
See \`config.log' for more details." >&5
8668
 
echo "$as_me: error: cannot compute sizeof (int)
8669
 
See \`config.log' for more details." >&2;}
8670
 
   { (exit 77); exit 77; }; }
 
6251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
 
6252
$as_echo_n "checking size of int... " >&6; }
 
6253
if test "${ac_cv_sizeof_int+set}" = set; then :
 
6254
  $as_echo_n "(cached) " >&6
 
6255
else
 
6256
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
 
6257
 
 
6258
else
 
6259
  if test "$ac_cv_type_int" = yes; then
 
6260
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6261
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6262
as_fn_error 77 "cannot compute sizeof (int)
 
6263
See \`config.log' for more details" "$LINENO" 5 ; }
8671
6264
   else
8672
6265
     ac_cv_sizeof_int=0
8673
6266
   fi
8674
6267
fi
8675
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8676
 
fi
8677
 
rm -f conftest.val
8678
 
fi
8679
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8680
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
6268
 
 
6269
fi
 
6270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
 
6271
$as_echo "$ac_cv_sizeof_int" >&6; }
8681
6272
 
8682
6273
 
8683
6274
 
8686
6277
_ACEOF
8687
6278
 
8688
6279
 
8689
 
   { echo "$as_me:$LINENO: checking for long" >&5
8690
 
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
8691
 
if test "${ac_cv_type_long+set}" = set; then
8692
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8693
 
else
8694
 
  cat >conftest.$ac_ext <<_ACEOF
8695
 
/* confdefs.h.  */
8696
 
_ACEOF
8697
 
cat confdefs.h >>conftest.$ac_ext
8698
 
cat >>conftest.$ac_ext <<_ACEOF
8699
 
/* end confdefs.h.  */
8700
 
$ac_includes_default
8701
 
typedef long ac__type_new_;
8702
 
int
8703
 
main ()
8704
 
{
8705
 
if ((ac__type_new_ *) 0)
8706
 
  return 0;
8707
 
if (sizeof (ac__type_new_))
8708
 
  return 0;
8709
 
  ;
8710
 
  return 0;
8711
 
}
8712
 
_ACEOF
8713
 
rm -f conftest.$ac_objext
8714
 
if { (ac_try="$ac_compile"
8715
 
case "(($ac_try" in
8716
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717
 
  *) ac_try_echo=$ac_try;;
8718
 
esac
8719
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720
 
  (eval "$ac_compile") 2>conftest.er1
8721
 
  ac_status=$?
8722
 
  grep -v '^ *+' conftest.er1 >conftest.err
8723
 
  rm -f conftest.er1
8724
 
  cat conftest.err >&5
8725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726
 
  (exit $ac_status); } && {
8727
 
         test -z "$ac_c_werror_flag" ||
8728
 
         test ! -s conftest.err
8729
 
       } && test -s conftest.$ac_objext; then
8730
 
  ac_cv_type_long=yes
8731
 
else
8732
 
  echo "$as_me: failed program was:" >&5
8733
 
sed 's/^/| /' conftest.$ac_ext >&5
8734
 
 
8735
 
        ac_cv_type_long=no
8736
 
fi
8737
 
 
8738
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739
 
fi
8740
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8741
 
echo "${ECHO_T}$ac_cv_type_long" >&6; }
8742
 
 
8743
 
# The cast to long int works around a bug in the HP C Compiler
 
6280
   # The cast to long int works around a bug in the HP C Compiler
8744
6281
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8745
6282
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8746
6283
# This bug is HP SR number 8606223364.
8747
 
{ echo "$as_me:$LINENO: checking size of long" >&5
8748
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
8749
 
if test "${ac_cv_sizeof_long+set}" = set; then
8750
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8751
 
else
8752
 
  if test "$cross_compiling" = yes; then
8753
 
  # Depending upon the size, compute the lo and hi bounds.
8754
 
cat >conftest.$ac_ext <<_ACEOF
8755
 
/* confdefs.h.  */
8756
 
_ACEOF
8757
 
cat confdefs.h >>conftest.$ac_ext
8758
 
cat >>conftest.$ac_ext <<_ACEOF
8759
 
/* end confdefs.h.  */
8760
 
$ac_includes_default
8761
 
   typedef long ac__type_sizeof_;
8762
 
int
8763
 
main ()
8764
 
{
8765
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8766
 
test_array [0] = 0
8767
 
 
8768
 
  ;
8769
 
  return 0;
8770
 
}
8771
 
_ACEOF
8772
 
rm -f conftest.$ac_objext
8773
 
if { (ac_try="$ac_compile"
8774
 
case "(($ac_try" in
8775
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776
 
  *) ac_try_echo=$ac_try;;
8777
 
esac
8778
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779
 
  (eval "$ac_compile") 2>conftest.er1
8780
 
  ac_status=$?
8781
 
  grep -v '^ *+' conftest.er1 >conftest.err
8782
 
  rm -f conftest.er1
8783
 
  cat conftest.err >&5
8784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785
 
  (exit $ac_status); } && {
8786
 
         test -z "$ac_c_werror_flag" ||
8787
 
         test ! -s conftest.err
8788
 
       } && test -s conftest.$ac_objext; then
8789
 
  ac_lo=0 ac_mid=0
8790
 
  while :; do
8791
 
    cat >conftest.$ac_ext <<_ACEOF
8792
 
/* confdefs.h.  */
8793
 
_ACEOF
8794
 
cat confdefs.h >>conftest.$ac_ext
8795
 
cat >>conftest.$ac_ext <<_ACEOF
8796
 
/* end confdefs.h.  */
8797
 
$ac_includes_default
8798
 
   typedef long ac__type_sizeof_;
8799
 
int
8800
 
main ()
8801
 
{
8802
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8803
 
test_array [0] = 0
8804
 
 
8805
 
  ;
8806
 
  return 0;
8807
 
}
8808
 
_ACEOF
8809
 
rm -f conftest.$ac_objext
8810
 
if { (ac_try="$ac_compile"
8811
 
case "(($ac_try" in
8812
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813
 
  *) ac_try_echo=$ac_try;;
8814
 
esac
8815
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816
 
  (eval "$ac_compile") 2>conftest.er1
8817
 
  ac_status=$?
8818
 
  grep -v '^ *+' conftest.er1 >conftest.err
8819
 
  rm -f conftest.er1
8820
 
  cat conftest.err >&5
8821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822
 
  (exit $ac_status); } && {
8823
 
         test -z "$ac_c_werror_flag" ||
8824
 
         test ! -s conftest.err
8825
 
       } && test -s conftest.$ac_objext; then
8826
 
  ac_hi=$ac_mid; break
8827
 
else
8828
 
  echo "$as_me: failed program was:" >&5
8829
 
sed 's/^/| /' conftest.$ac_ext >&5
8830
 
 
8831
 
        ac_lo=`expr $ac_mid + 1`
8832
 
                        if test $ac_lo -le $ac_mid; then
8833
 
                          ac_lo= ac_hi=
8834
 
                          break
8835
 
                        fi
8836
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
8837
 
fi
8838
 
 
8839
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840
 
  done
8841
 
else
8842
 
  echo "$as_me: failed program was:" >&5
8843
 
sed 's/^/| /' conftest.$ac_ext >&5
8844
 
 
8845
 
        cat >conftest.$ac_ext <<_ACEOF
8846
 
/* confdefs.h.  */
8847
 
_ACEOF
8848
 
cat confdefs.h >>conftest.$ac_ext
8849
 
cat >>conftest.$ac_ext <<_ACEOF
8850
 
/* end confdefs.h.  */
8851
 
$ac_includes_default
8852
 
   typedef long ac__type_sizeof_;
8853
 
int
8854
 
main ()
8855
 
{
8856
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8857
 
test_array [0] = 0
8858
 
 
8859
 
  ;
8860
 
  return 0;
8861
 
}
8862
 
_ACEOF
8863
 
rm -f conftest.$ac_objext
8864
 
if { (ac_try="$ac_compile"
8865
 
case "(($ac_try" in
8866
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867
 
  *) ac_try_echo=$ac_try;;
8868
 
esac
8869
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870
 
  (eval "$ac_compile") 2>conftest.er1
8871
 
  ac_status=$?
8872
 
  grep -v '^ *+' conftest.er1 >conftest.err
8873
 
  rm -f conftest.er1
8874
 
  cat conftest.err >&5
8875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876
 
  (exit $ac_status); } && {
8877
 
         test -z "$ac_c_werror_flag" ||
8878
 
         test ! -s conftest.err
8879
 
       } && test -s conftest.$ac_objext; then
8880
 
  ac_hi=-1 ac_mid=-1
8881
 
  while :; do
8882
 
    cat >conftest.$ac_ext <<_ACEOF
8883
 
/* confdefs.h.  */
8884
 
_ACEOF
8885
 
cat confdefs.h >>conftest.$ac_ext
8886
 
cat >>conftest.$ac_ext <<_ACEOF
8887
 
/* end confdefs.h.  */
8888
 
$ac_includes_default
8889
 
   typedef long ac__type_sizeof_;
8890
 
int
8891
 
main ()
8892
 
{
8893
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8894
 
test_array [0] = 0
8895
 
 
8896
 
  ;
8897
 
  return 0;
8898
 
}
8899
 
_ACEOF
8900
 
rm -f conftest.$ac_objext
8901
 
if { (ac_try="$ac_compile"
8902
 
case "(($ac_try" in
8903
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904
 
  *) ac_try_echo=$ac_try;;
8905
 
esac
8906
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907
 
  (eval "$ac_compile") 2>conftest.er1
8908
 
  ac_status=$?
8909
 
  grep -v '^ *+' conftest.er1 >conftest.err
8910
 
  rm -f conftest.er1
8911
 
  cat conftest.err >&5
8912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913
 
  (exit $ac_status); } && {
8914
 
         test -z "$ac_c_werror_flag" ||
8915
 
         test ! -s conftest.err
8916
 
       } && test -s conftest.$ac_objext; then
8917
 
  ac_lo=$ac_mid; break
8918
 
else
8919
 
  echo "$as_me: failed program was:" >&5
8920
 
sed 's/^/| /' conftest.$ac_ext >&5
8921
 
 
8922
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
8923
 
                        if test $ac_mid -le $ac_hi; then
8924
 
                          ac_lo= ac_hi=
8925
 
                          break
8926
 
                        fi
8927
 
                        ac_mid=`expr 2 '*' $ac_mid`
8928
 
fi
8929
 
 
8930
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931
 
  done
8932
 
else
8933
 
  echo "$as_me: failed program was:" >&5
8934
 
sed 's/^/| /' conftest.$ac_ext >&5
8935
 
 
8936
 
        ac_lo= ac_hi=
8937
 
fi
8938
 
 
8939
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940
 
fi
8941
 
 
8942
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943
 
# Binary search between lo and hi bounds.
8944
 
while test "x$ac_lo" != "x$ac_hi"; do
8945
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8946
 
  cat >conftest.$ac_ext <<_ACEOF
8947
 
/* confdefs.h.  */
8948
 
_ACEOF
8949
 
cat confdefs.h >>conftest.$ac_ext
8950
 
cat >>conftest.$ac_ext <<_ACEOF
8951
 
/* end confdefs.h.  */
8952
 
$ac_includes_default
8953
 
   typedef long ac__type_sizeof_;
8954
 
int
8955
 
main ()
8956
 
{
8957
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8958
 
test_array [0] = 0
8959
 
 
8960
 
  ;
8961
 
  return 0;
8962
 
}
8963
 
_ACEOF
8964
 
rm -f conftest.$ac_objext
8965
 
if { (ac_try="$ac_compile"
8966
 
case "(($ac_try" in
8967
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968
 
  *) ac_try_echo=$ac_try;;
8969
 
esac
8970
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971
 
  (eval "$ac_compile") 2>conftest.er1
8972
 
  ac_status=$?
8973
 
  grep -v '^ *+' conftest.er1 >conftest.err
8974
 
  rm -f conftest.er1
8975
 
  cat conftest.err >&5
8976
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977
 
  (exit $ac_status); } && {
8978
 
         test -z "$ac_c_werror_flag" ||
8979
 
         test ! -s conftest.err
8980
 
       } && test -s conftest.$ac_objext; then
8981
 
  ac_hi=$ac_mid
8982
 
else
8983
 
  echo "$as_me: failed program was:" >&5
8984
 
sed 's/^/| /' conftest.$ac_ext >&5
8985
 
 
8986
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
8987
 
fi
8988
 
 
8989
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990
 
done
8991
 
case $ac_lo in
8992
 
?*) ac_cv_sizeof_long=$ac_lo;;
8993
 
'') if test "$ac_cv_type_long" = yes; then
8994
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8995
 
See \`config.log' for more details." >&5
8996
 
echo "$as_me: error: cannot compute sizeof (long)
8997
 
See \`config.log' for more details." >&2;}
8998
 
   { (exit 77); exit 77; }; }
8999
 
   else
9000
 
     ac_cv_sizeof_long=0
9001
 
   fi ;;
9002
 
esac
9003
 
else
9004
 
  cat >conftest.$ac_ext <<_ACEOF
9005
 
/* confdefs.h.  */
9006
 
_ACEOF
9007
 
cat confdefs.h >>conftest.$ac_ext
9008
 
cat >>conftest.$ac_ext <<_ACEOF
9009
 
/* end confdefs.h.  */
9010
 
$ac_includes_default
9011
 
   typedef long ac__type_sizeof_;
9012
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9013
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9014
 
#include <stdio.h>
9015
 
#include <stdlib.h>
9016
 
int
9017
 
main ()
9018
 
{
9019
 
 
9020
 
  FILE *f = fopen ("conftest.val", "w");
9021
 
  if (! f)
9022
 
    return 1;
9023
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9024
 
    {
9025
 
      long int i = longval ();
9026
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9027
 
        return 1;
9028
 
      fprintf (f, "%ld\n", i);
9029
 
    }
9030
 
  else
9031
 
    {
9032
 
      unsigned long int i = ulongval ();
9033
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9034
 
        return 1;
9035
 
      fprintf (f, "%lu\n", i);
9036
 
    }
9037
 
  return ferror (f) || fclose (f) != 0;
9038
 
 
9039
 
  ;
9040
 
  return 0;
9041
 
}
9042
 
_ACEOF
9043
 
rm -f conftest$ac_exeext
9044
 
if { (ac_try="$ac_link"
9045
 
case "(($ac_try" in
9046
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047
 
  *) ac_try_echo=$ac_try;;
9048
 
esac
9049
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050
 
  (eval "$ac_link") 2>&5
9051
 
  ac_status=$?
9052
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9054
 
  { (case "(($ac_try" in
9055
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056
 
  *) ac_try_echo=$ac_try;;
9057
 
esac
9058
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059
 
  (eval "$ac_try") 2>&5
9060
 
  ac_status=$?
9061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062
 
  (exit $ac_status); }; }; then
9063
 
  ac_cv_sizeof_long=`cat conftest.val`
9064
 
else
9065
 
  echo "$as_me: program exited with status $ac_status" >&5
9066
 
echo "$as_me: failed program was:" >&5
9067
 
sed 's/^/| /' conftest.$ac_ext >&5
9068
 
 
9069
 
( exit $ac_status )
9070
 
if test "$ac_cv_type_long" = yes; then
9071
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9072
 
See \`config.log' for more details." >&5
9073
 
echo "$as_me: error: cannot compute sizeof (long)
9074
 
See \`config.log' for more details." >&2;}
9075
 
   { (exit 77); exit 77; }; }
 
6284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
 
6285
$as_echo_n "checking size of long... " >&6; }
 
6286
if test "${ac_cv_sizeof_long+set}" = set; then :
 
6287
  $as_echo_n "(cached) " >&6
 
6288
else
 
6289
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
 
6290
 
 
6291
else
 
6292
  if test "$ac_cv_type_long" = yes; then
 
6293
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6294
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6295
as_fn_error 77 "cannot compute sizeof (long)
 
6296
See \`config.log' for more details" "$LINENO" 5 ; }
9076
6297
   else
9077
6298
     ac_cv_sizeof_long=0
9078
6299
   fi
9079
6300
fi
9080
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9081
 
fi
9082
 
rm -f conftest.val
9083
 
fi
9084
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9085
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
6301
 
 
6302
fi
 
6303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
 
6304
$as_echo "$ac_cv_sizeof_long" >&6; }
9086
6305
 
9087
6306
 
9088
6307
 
9091
6310
_ACEOF
9092
6311
 
9093
6312
 
9094
 
   { echo "$as_me:$LINENO: checking for void*" >&5
9095
 
echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
9096
 
if test "${ac_cv_type_voidp+set}" = set; then
9097
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9098
 
else
9099
 
  cat >conftest.$ac_ext <<_ACEOF
9100
 
/* confdefs.h.  */
9101
 
_ACEOF
9102
 
cat confdefs.h >>conftest.$ac_ext
9103
 
cat >>conftest.$ac_ext <<_ACEOF
9104
 
/* end confdefs.h.  */
9105
 
$ac_includes_default
9106
 
typedef void* ac__type_new_;
9107
 
int
9108
 
main ()
9109
 
{
9110
 
if ((ac__type_new_ *) 0)
9111
 
  return 0;
9112
 
if (sizeof (ac__type_new_))
9113
 
  return 0;
9114
 
  ;
9115
 
  return 0;
9116
 
}
9117
 
_ACEOF
9118
 
rm -f conftest.$ac_objext
9119
 
if { (ac_try="$ac_compile"
9120
 
case "(($ac_try" in
9121
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122
 
  *) ac_try_echo=$ac_try;;
9123
 
esac
9124
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125
 
  (eval "$ac_compile") 2>conftest.er1
9126
 
  ac_status=$?
9127
 
  grep -v '^ *+' conftest.er1 >conftest.err
9128
 
  rm -f conftest.er1
9129
 
  cat conftest.err >&5
9130
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131
 
  (exit $ac_status); } && {
9132
 
         test -z "$ac_c_werror_flag" ||
9133
 
         test ! -s conftest.err
9134
 
       } && test -s conftest.$ac_objext; then
9135
 
  ac_cv_type_voidp=yes
9136
 
else
9137
 
  echo "$as_me: failed program was:" >&5
9138
 
sed 's/^/| /' conftest.$ac_ext >&5
9139
 
 
9140
 
        ac_cv_type_voidp=no
9141
 
fi
9142
 
 
9143
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144
 
fi
9145
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
9146
 
echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
9147
 
 
9148
 
# The cast to long int works around a bug in the HP C Compiler
 
6313
   # The cast to long int works around a bug in the HP C Compiler
9149
6314
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9150
6315
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9151
6316
# This bug is HP SR number 8606223364.
9152
 
{ echo "$as_me:$LINENO: checking size of void*" >&5
9153
 
echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
9154
 
if test "${ac_cv_sizeof_voidp+set}" = set; then
9155
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9156
 
else
9157
 
  if test "$cross_compiling" = yes; then
9158
 
  # Depending upon the size, compute the lo and hi bounds.
9159
 
cat >conftest.$ac_ext <<_ACEOF
9160
 
/* confdefs.h.  */
9161
 
_ACEOF
9162
 
cat confdefs.h >>conftest.$ac_ext
9163
 
cat >>conftest.$ac_ext <<_ACEOF
9164
 
/* end confdefs.h.  */
9165
 
$ac_includes_default
9166
 
   typedef void* ac__type_sizeof_;
9167
 
int
9168
 
main ()
9169
 
{
9170
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9171
 
test_array [0] = 0
9172
 
 
9173
 
  ;
9174
 
  return 0;
9175
 
}
9176
 
_ACEOF
9177
 
rm -f conftest.$ac_objext
9178
 
if { (ac_try="$ac_compile"
9179
 
case "(($ac_try" in
9180
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181
 
  *) ac_try_echo=$ac_try;;
9182
 
esac
9183
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184
 
  (eval "$ac_compile") 2>conftest.er1
9185
 
  ac_status=$?
9186
 
  grep -v '^ *+' conftest.er1 >conftest.err
9187
 
  rm -f conftest.er1
9188
 
  cat conftest.err >&5
9189
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190
 
  (exit $ac_status); } && {
9191
 
         test -z "$ac_c_werror_flag" ||
9192
 
         test ! -s conftest.err
9193
 
       } && test -s conftest.$ac_objext; then
9194
 
  ac_lo=0 ac_mid=0
9195
 
  while :; do
9196
 
    cat >conftest.$ac_ext <<_ACEOF
9197
 
/* confdefs.h.  */
9198
 
_ACEOF
9199
 
cat confdefs.h >>conftest.$ac_ext
9200
 
cat >>conftest.$ac_ext <<_ACEOF
9201
 
/* end confdefs.h.  */
9202
 
$ac_includes_default
9203
 
   typedef void* ac__type_sizeof_;
9204
 
int
9205
 
main ()
9206
 
{
9207
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9208
 
test_array [0] = 0
9209
 
 
9210
 
  ;
9211
 
  return 0;
9212
 
}
9213
 
_ACEOF
9214
 
rm -f conftest.$ac_objext
9215
 
if { (ac_try="$ac_compile"
9216
 
case "(($ac_try" in
9217
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218
 
  *) ac_try_echo=$ac_try;;
9219
 
esac
9220
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221
 
  (eval "$ac_compile") 2>conftest.er1
9222
 
  ac_status=$?
9223
 
  grep -v '^ *+' conftest.er1 >conftest.err
9224
 
  rm -f conftest.er1
9225
 
  cat conftest.err >&5
9226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227
 
  (exit $ac_status); } && {
9228
 
         test -z "$ac_c_werror_flag" ||
9229
 
         test ! -s conftest.err
9230
 
       } && test -s conftest.$ac_objext; then
9231
 
  ac_hi=$ac_mid; break
9232
 
else
9233
 
  echo "$as_me: failed program was:" >&5
9234
 
sed 's/^/| /' conftest.$ac_ext >&5
9235
 
 
9236
 
        ac_lo=`expr $ac_mid + 1`
9237
 
                        if test $ac_lo -le $ac_mid; then
9238
 
                          ac_lo= ac_hi=
9239
 
                          break
9240
 
                        fi
9241
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
9242
 
fi
9243
 
 
9244
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245
 
  done
9246
 
else
9247
 
  echo "$as_me: failed program was:" >&5
9248
 
sed 's/^/| /' conftest.$ac_ext >&5
9249
 
 
9250
 
        cat >conftest.$ac_ext <<_ACEOF
9251
 
/* confdefs.h.  */
9252
 
_ACEOF
9253
 
cat confdefs.h >>conftest.$ac_ext
9254
 
cat >>conftest.$ac_ext <<_ACEOF
9255
 
/* end confdefs.h.  */
9256
 
$ac_includes_default
9257
 
   typedef void* ac__type_sizeof_;
9258
 
int
9259
 
main ()
9260
 
{
9261
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9262
 
test_array [0] = 0
9263
 
 
9264
 
  ;
9265
 
  return 0;
9266
 
}
9267
 
_ACEOF
9268
 
rm -f conftest.$ac_objext
9269
 
if { (ac_try="$ac_compile"
9270
 
case "(($ac_try" in
9271
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272
 
  *) ac_try_echo=$ac_try;;
9273
 
esac
9274
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275
 
  (eval "$ac_compile") 2>conftest.er1
9276
 
  ac_status=$?
9277
 
  grep -v '^ *+' conftest.er1 >conftest.err
9278
 
  rm -f conftest.er1
9279
 
  cat conftest.err >&5
9280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281
 
  (exit $ac_status); } && {
9282
 
         test -z "$ac_c_werror_flag" ||
9283
 
         test ! -s conftest.err
9284
 
       } && test -s conftest.$ac_objext; then
9285
 
  ac_hi=-1 ac_mid=-1
9286
 
  while :; do
9287
 
    cat >conftest.$ac_ext <<_ACEOF
9288
 
/* confdefs.h.  */
9289
 
_ACEOF
9290
 
cat confdefs.h >>conftest.$ac_ext
9291
 
cat >>conftest.$ac_ext <<_ACEOF
9292
 
/* end confdefs.h.  */
9293
 
$ac_includes_default
9294
 
   typedef void* ac__type_sizeof_;
9295
 
int
9296
 
main ()
9297
 
{
9298
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9299
 
test_array [0] = 0
9300
 
 
9301
 
  ;
9302
 
  return 0;
9303
 
}
9304
 
_ACEOF
9305
 
rm -f conftest.$ac_objext
9306
 
if { (ac_try="$ac_compile"
9307
 
case "(($ac_try" in
9308
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309
 
  *) ac_try_echo=$ac_try;;
9310
 
esac
9311
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312
 
  (eval "$ac_compile") 2>conftest.er1
9313
 
  ac_status=$?
9314
 
  grep -v '^ *+' conftest.er1 >conftest.err
9315
 
  rm -f conftest.er1
9316
 
  cat conftest.err >&5
9317
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318
 
  (exit $ac_status); } && {
9319
 
         test -z "$ac_c_werror_flag" ||
9320
 
         test ! -s conftest.err
9321
 
       } && test -s conftest.$ac_objext; then
9322
 
  ac_lo=$ac_mid; break
9323
 
else
9324
 
  echo "$as_me: failed program was:" >&5
9325
 
sed 's/^/| /' conftest.$ac_ext >&5
9326
 
 
9327
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
9328
 
                        if test $ac_mid -le $ac_hi; then
9329
 
                          ac_lo= ac_hi=
9330
 
                          break
9331
 
                        fi
9332
 
                        ac_mid=`expr 2 '*' $ac_mid`
9333
 
fi
9334
 
 
9335
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336
 
  done
9337
 
else
9338
 
  echo "$as_me: failed program was:" >&5
9339
 
sed 's/^/| /' conftest.$ac_ext >&5
9340
 
 
9341
 
        ac_lo= ac_hi=
9342
 
fi
9343
 
 
9344
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345
 
fi
9346
 
 
9347
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348
 
# Binary search between lo and hi bounds.
9349
 
while test "x$ac_lo" != "x$ac_hi"; do
9350
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9351
 
  cat >conftest.$ac_ext <<_ACEOF
9352
 
/* confdefs.h.  */
9353
 
_ACEOF
9354
 
cat confdefs.h >>conftest.$ac_ext
9355
 
cat >>conftest.$ac_ext <<_ACEOF
9356
 
/* end confdefs.h.  */
9357
 
$ac_includes_default
9358
 
   typedef void* ac__type_sizeof_;
9359
 
int
9360
 
main ()
9361
 
{
9362
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9363
 
test_array [0] = 0
9364
 
 
9365
 
  ;
9366
 
  return 0;
9367
 
}
9368
 
_ACEOF
9369
 
rm -f conftest.$ac_objext
9370
 
if { (ac_try="$ac_compile"
9371
 
case "(($ac_try" in
9372
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373
 
  *) ac_try_echo=$ac_try;;
9374
 
esac
9375
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376
 
  (eval "$ac_compile") 2>conftest.er1
9377
 
  ac_status=$?
9378
 
  grep -v '^ *+' conftest.er1 >conftest.err
9379
 
  rm -f conftest.er1
9380
 
  cat conftest.err >&5
9381
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382
 
  (exit $ac_status); } && {
9383
 
         test -z "$ac_c_werror_flag" ||
9384
 
         test ! -s conftest.err
9385
 
       } && test -s conftest.$ac_objext; then
9386
 
  ac_hi=$ac_mid
9387
 
else
9388
 
  echo "$as_me: failed program was:" >&5
9389
 
sed 's/^/| /' conftest.$ac_ext >&5
9390
 
 
9391
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
9392
 
fi
9393
 
 
9394
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395
 
done
9396
 
case $ac_lo in
9397
 
?*) ac_cv_sizeof_voidp=$ac_lo;;
9398
 
'') if test "$ac_cv_type_voidp" = yes; then
9399
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
9400
 
See \`config.log' for more details." >&5
9401
 
echo "$as_me: error: cannot compute sizeof (void*)
9402
 
See \`config.log' for more details." >&2;}
9403
 
   { (exit 77); exit 77; }; }
9404
 
   else
9405
 
     ac_cv_sizeof_voidp=0
9406
 
   fi ;;
9407
 
esac
9408
 
else
9409
 
  cat >conftest.$ac_ext <<_ACEOF
9410
 
/* confdefs.h.  */
9411
 
_ACEOF
9412
 
cat confdefs.h >>conftest.$ac_ext
9413
 
cat >>conftest.$ac_ext <<_ACEOF
9414
 
/* end confdefs.h.  */
9415
 
$ac_includes_default
9416
 
   typedef void* ac__type_sizeof_;
9417
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9418
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9419
 
#include <stdio.h>
9420
 
#include <stdlib.h>
9421
 
int
9422
 
main ()
9423
 
{
9424
 
 
9425
 
  FILE *f = fopen ("conftest.val", "w");
9426
 
  if (! f)
9427
 
    return 1;
9428
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9429
 
    {
9430
 
      long int i = longval ();
9431
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9432
 
        return 1;
9433
 
      fprintf (f, "%ld\n", i);
9434
 
    }
9435
 
  else
9436
 
    {
9437
 
      unsigned long int i = ulongval ();
9438
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9439
 
        return 1;
9440
 
      fprintf (f, "%lu\n", i);
9441
 
    }
9442
 
  return ferror (f) || fclose (f) != 0;
9443
 
 
9444
 
  ;
9445
 
  return 0;
9446
 
}
9447
 
_ACEOF
9448
 
rm -f conftest$ac_exeext
9449
 
if { (ac_try="$ac_link"
9450
 
case "(($ac_try" in
9451
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452
 
  *) ac_try_echo=$ac_try;;
9453
 
esac
9454
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455
 
  (eval "$ac_link") 2>&5
9456
 
  ac_status=$?
9457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9459
 
  { (case "(($ac_try" in
9460
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461
 
  *) ac_try_echo=$ac_try;;
9462
 
esac
9463
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464
 
  (eval "$ac_try") 2>&5
9465
 
  ac_status=$?
9466
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467
 
  (exit $ac_status); }; }; then
9468
 
  ac_cv_sizeof_voidp=`cat conftest.val`
9469
 
else
9470
 
  echo "$as_me: program exited with status $ac_status" >&5
9471
 
echo "$as_me: failed program was:" >&5
9472
 
sed 's/^/| /' conftest.$ac_ext >&5
9473
 
 
9474
 
( exit $ac_status )
9475
 
if test "$ac_cv_type_voidp" = yes; then
9476
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
9477
 
See \`config.log' for more details." >&5
9478
 
echo "$as_me: error: cannot compute sizeof (void*)
9479
 
See \`config.log' for more details." >&2;}
9480
 
   { (exit 77); exit 77; }; }
 
6317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
 
6318
$as_echo_n "checking size of void*... " >&6; }
 
6319
if test "${ac_cv_sizeof_voidp+set}" = set; then :
 
6320
  $as_echo_n "(cached) " >&6
 
6321
else
 
6322
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
 
6323
 
 
6324
else
 
6325
  if test "$ac_cv_type_voidp" = yes; then
 
6326
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6327
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6328
as_fn_error 77 "cannot compute sizeof (void*)
 
6329
See \`config.log' for more details" "$LINENO" 5 ; }
9481
6330
   else
9482
6331
     ac_cv_sizeof_voidp=0
9483
6332
   fi
9484
6333
fi
9485
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9486
 
fi
9487
 
rm -f conftest.val
9488
 
fi
9489
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
9490
 
echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
 
6334
 
 
6335
fi
 
6336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
 
6337
$as_echo "$ac_cv_sizeof_voidp" >&6; }
9491
6338
 
9492
6339
 
9493
6340
 
9518
6365
    222/*|444/*) name="$name        (unusual dsptype)" ;;
9519
6366
     *)          name="$name        (very unusal model)" ;;
9520
6367
   esac
9521
 
   { echo "$as_me:$LINENO: result: combined for stdint datatype model...  $name" >&5
9522
 
echo "${ECHO_T}combined for stdint datatype model...  $name" >&6; }
 
6368
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: combined for stdint datatype model...  $name" >&5
 
6369
$as_echo "combined for stdint datatype model...  $name" >&6; }
9523
6370
fi
9524
6371
 
9525
6372
if test "_$ac_cv_header_stdint_x" != "_" ; then
9532
6379
   ac_cv_header_stdint="stddef.h"
9533
6380
fi
9534
6381
 
9535
 
{ echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
9536
 
echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6; }
9537
 
{ echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
9538
 
echo "${ECHO_T}($ac_cv_header_stdint)" >&6; }
 
6382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
 
6383
$as_echo_n "checking for extra inttypes in chosen header... " >&6; }
 
6384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
 
6385
$as_echo "($ac_cv_header_stdint)" >&6; }
9539
6386
unset ac_cv_type_int_least32_t
9540
6387
unset ac_cv_type_int_fast32_t
9541
 
{ echo "$as_me:$LINENO: checking for int_least32_t" >&5
9542
 
echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; }
9543
 
if test "${ac_cv_type_int_least32_t+set}" = set; then
9544
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9545
 
else
9546
 
  cat >conftest.$ac_ext <<_ACEOF
9547
 
/* confdefs.h.  */
9548
 
_ACEOF
9549
 
cat confdefs.h >>conftest.$ac_ext
9550
 
cat >>conftest.$ac_ext <<_ACEOF
9551
 
/* end confdefs.h.  */
9552
 
#include <$ac_cv_header_stdint>
9553
 
 
9554
 
typedef int_least32_t ac__type_new_;
9555
 
int
9556
 
main ()
9557
 
{
9558
 
if ((ac__type_new_ *) 0)
9559
 
  return 0;
9560
 
if (sizeof (ac__type_new_))
9561
 
  return 0;
9562
 
  ;
9563
 
  return 0;
9564
 
}
9565
 
_ACEOF
9566
 
rm -f conftest.$ac_objext
9567
 
if { (ac_try="$ac_compile"
9568
 
case "(($ac_try" in
9569
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570
 
  *) ac_try_echo=$ac_try;;
9571
 
esac
9572
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573
 
  (eval "$ac_compile") 2>conftest.er1
9574
 
  ac_status=$?
9575
 
  grep -v '^ *+' conftest.er1 >conftest.err
9576
 
  rm -f conftest.er1
9577
 
  cat conftest.err >&5
9578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579
 
  (exit $ac_status); } && {
9580
 
         test -z "$ac_c_werror_flag" ||
9581
 
         test ! -s conftest.err
9582
 
       } && test -s conftest.$ac_objext; then
9583
 
  ac_cv_type_int_least32_t=yes
9584
 
else
9585
 
  echo "$as_me: failed program was:" >&5
9586
 
sed 's/^/| /' conftest.$ac_ext >&5
9587
 
 
9588
 
        ac_cv_type_int_least32_t=no
9589
 
fi
9590
 
 
9591
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592
 
fi
9593
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
9594
 
echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; }
9595
 
 
9596
 
{ echo "$as_me:$LINENO: checking for int_fast32_t" >&5
9597
 
echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; }
9598
 
if test "${ac_cv_type_int_fast32_t+set}" = set; then
9599
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9600
 
else
9601
 
  cat >conftest.$ac_ext <<_ACEOF
9602
 
/* confdefs.h.  */
9603
 
_ACEOF
9604
 
cat confdefs.h >>conftest.$ac_ext
9605
 
cat >>conftest.$ac_ext <<_ACEOF
9606
 
/* end confdefs.h.  */
9607
 
#include<$ac_cv_header_stdint>
9608
 
 
9609
 
typedef int_fast32_t ac__type_new_;
9610
 
int
9611
 
main ()
9612
 
{
9613
 
if ((ac__type_new_ *) 0)
9614
 
  return 0;
9615
 
if (sizeof (ac__type_new_))
9616
 
  return 0;
9617
 
  ;
9618
 
  return 0;
9619
 
}
9620
 
_ACEOF
9621
 
rm -f conftest.$ac_objext
9622
 
if { (ac_try="$ac_compile"
9623
 
case "(($ac_try" in
9624
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625
 
  *) ac_try_echo=$ac_try;;
9626
 
esac
9627
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628
 
  (eval "$ac_compile") 2>conftest.er1
9629
 
  ac_status=$?
9630
 
  grep -v '^ *+' conftest.er1 >conftest.err
9631
 
  rm -f conftest.er1
9632
 
  cat conftest.err >&5
9633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634
 
  (exit $ac_status); } && {
9635
 
         test -z "$ac_c_werror_flag" ||
9636
 
         test ! -s conftest.err
9637
 
       } && test -s conftest.$ac_objext; then
9638
 
  ac_cv_type_int_fast32_t=yes
9639
 
else
9640
 
  echo "$as_me: failed program was:" >&5
9641
 
sed 's/^/| /' conftest.$ac_ext >&5
9642
 
 
9643
 
        ac_cv_type_int_fast32_t=no
9644
 
fi
9645
 
 
9646
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647
 
fi
9648
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
9649
 
echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; }
9650
 
 
9651
 
{ echo "$as_me:$LINENO: checking for intmax_t" >&5
9652
 
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9653
 
if test "${ac_cv_type_intmax_t+set}" = set; then
9654
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9655
 
else
9656
 
  cat >conftest.$ac_ext <<_ACEOF
9657
 
/* confdefs.h.  */
9658
 
_ACEOF
9659
 
cat confdefs.h >>conftest.$ac_ext
9660
 
cat >>conftest.$ac_ext <<_ACEOF
9661
 
/* end confdefs.h.  */
9662
 
#include <$ac_cv_header_stdint>
9663
 
 
9664
 
typedef intmax_t ac__type_new_;
9665
 
int
9666
 
main ()
9667
 
{
9668
 
if ((ac__type_new_ *) 0)
9669
 
  return 0;
9670
 
if (sizeof (ac__type_new_))
9671
 
  return 0;
9672
 
  ;
9673
 
  return 0;
9674
 
}
9675
 
_ACEOF
9676
 
rm -f conftest.$ac_objext
9677
 
if { (ac_try="$ac_compile"
9678
 
case "(($ac_try" in
9679
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680
 
  *) ac_try_echo=$ac_try;;
9681
 
esac
9682
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683
 
  (eval "$ac_compile") 2>conftest.er1
9684
 
  ac_status=$?
9685
 
  grep -v '^ *+' conftest.er1 >conftest.err
9686
 
  rm -f conftest.er1
9687
 
  cat conftest.err >&5
9688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689
 
  (exit $ac_status); } && {
9690
 
         test -z "$ac_c_werror_flag" ||
9691
 
         test ! -s conftest.err
9692
 
       } && test -s conftest.$ac_objext; then
9693
 
  ac_cv_type_intmax_t=yes
9694
 
else
9695
 
  echo "$as_me: failed program was:" >&5
9696
 
sed 's/^/| /' conftest.$ac_ext >&5
9697
 
 
9698
 
        ac_cv_type_intmax_t=no
9699
 
fi
9700
 
 
9701
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702
 
fi
9703
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
9704
 
echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
 
6388
ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
 
6389
"
 
6390
if test "x$ac_cv_type_int_least32_t" = x""yes; then :
 
6391
 
 
6392
fi
 
6393
 
 
6394
ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
 
6395
"
 
6396
if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
 
6397
 
 
6398
fi
 
6399
 
 
6400
ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
 
6401
"
 
6402
if test "x$ac_cv_type_intmax_t" = x""yes; then :
 
6403
 
 
6404
fi
9705
6405
 
9706
6406
 
9707
6407
fi # shortcircut to system "stdint.h"
9712
6412
ac_cv_stdint_message="using $CC"
9713
6413
fi
9714
6414
 
9715
 
{ echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
9716
 
echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
 
6415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
 
6416
$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
9717
6417
 
9718
6418
# ----------------- DONE inttypes.h checks START header -------------
9719
6419
ac_config_commands="$ac_config_commands $ac_stdint_h"
9722
6422
 
9723
6423
# Check for file locking. We (AC_PROG_CC?) have already checked for
9724
6424
# sys/types.h and unistd.h.
9725
 
{ echo "$as_me:$LINENO: checking for fcntl file locking" >&5
9726
 
echo $ECHO_N "checking for fcntl file locking... $ECHO_C" >&6; }
9727
 
if test "${nettle_cv_fcntl_locking+set}" = set; then
9728
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl file locking" >&5
 
6426
$as_echo_n "checking for fcntl file locking... " >&6; }
 
6427
if test "${nettle_cv_fcntl_locking+set}" = set; then :
 
6428
  $as_echo_n "(cached) " >&6
9729
6429
else
9730
 
  cat >conftest.$ac_ext <<_ACEOF
9731
 
/* confdefs.h.  */
9732
 
_ACEOF
9733
 
cat confdefs.h >>conftest.$ac_ext
9734
 
cat >>conftest.$ac_ext <<_ACEOF
 
6430
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735
6431
/* end confdefs.h.  */
9736
6432
 
9737
6433
#if HAVE_SYS_TYPES_H
9753
6449
  return 0;
9754
6450
}
9755
6451
_ACEOF
9756
 
rm -f conftest.$ac_objext
9757
 
if { (ac_try="$ac_compile"
9758
 
case "(($ac_try" in
9759
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760
 
  *) ac_try_echo=$ac_try;;
9761
 
esac
9762
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763
 
  (eval "$ac_compile") 2>conftest.er1
9764
 
  ac_status=$?
9765
 
  grep -v '^ *+' conftest.er1 >conftest.err
9766
 
  rm -f conftest.er1
9767
 
  cat conftest.err >&5
9768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769
 
  (exit $ac_status); } && {
9770
 
         test -z "$ac_c_werror_flag" ||
9771
 
         test ! -s conftest.err
9772
 
       } && test -s conftest.$ac_objext; then
 
6452
if ac_fn_c_try_compile "$LINENO"; then :
9773
6453
  nettle_cv_fcntl_locking=yes
9774
6454
else
9775
 
  echo "$as_me: failed program was:" >&5
9776
 
sed 's/^/| /' conftest.$ac_ext >&5
9777
 
 
9778
 
        nettle_cv_fcntl_locking=no
 
6455
  nettle_cv_fcntl_locking=no
9779
6456
fi
9780
 
 
9781
6457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9782
6458
fi
9783
 
{ echo "$as_me:$LINENO: result: $nettle_cv_fcntl_locking" >&5
9784
 
echo "${ECHO_T}$nettle_cv_fcntl_locking" >&6; }
9785
 
 
 
6459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_fcntl_locking" >&5
 
6460
$as_echo "$nettle_cv_fcntl_locking" >&6; }
9786
6461
 
9787
6462
 
9788
6463
if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
9789
 
  cat >>confdefs.h <<\_ACEOF
9790
 
#define HAVE_FCNTL_LOCKING 1
9791
 
_ACEOF
 
6464
  $as_echo "#define HAVE_FCNTL_LOCKING 1" >>confdefs.h
9792
6465
 
9793
6466
fi
9794
6467
 
9795
6468
# Checks for libraries
9796
 
 
9797
 
{ echo "$as_me:$LINENO: checking for __gmpz_getlimbn in -lgmp" >&5
9798
 
echo $ECHO_N "checking for __gmpz_getlimbn in -lgmp... $ECHO_C" >&6; }
9799
 
if test "${ac_cv_lib_gmp___gmpz_getlimbn+set}" = set; then
9800
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_getlimbn in -lgmp" >&5
 
6470
$as_echo_n "checking for __gmpz_getlimbn in -lgmp... " >&6; }
 
6471
if test "${ac_cv_lib_gmp___gmpz_getlimbn+set}" = set; then :
 
6472
  $as_echo_n "(cached) " >&6
9801
6473
else
9802
6474
  ac_check_lib_save_LIBS=$LIBS
9803
6475
LIBS="-lgmp  $LIBS"
9804
 
cat >conftest.$ac_ext <<_ACEOF
9805
 
/* confdefs.h.  */
9806
 
_ACEOF
9807
 
cat confdefs.h >>conftest.$ac_ext
9808
 
cat >>conftest.$ac_ext <<_ACEOF
 
6476
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809
6477
/* end confdefs.h.  */
9810
6478
 
9811
6479
/* Override any GCC internal prototype to avoid an error.
9823
6491
  return 0;
9824
6492
}
9825
6493
_ACEOF
9826
 
rm -f conftest.$ac_objext conftest$ac_exeext
9827
 
if { (ac_try="$ac_link"
9828
 
case "(($ac_try" in
9829
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830
 
  *) ac_try_echo=$ac_try;;
9831
 
esac
9832
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833
 
  (eval "$ac_link") 2>conftest.er1
9834
 
  ac_status=$?
9835
 
  grep -v '^ *+' conftest.er1 >conftest.err
9836
 
  rm -f conftest.er1
9837
 
  cat conftest.err >&5
9838
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839
 
  (exit $ac_status); } && {
9840
 
         test -z "$ac_c_werror_flag" ||
9841
 
         test ! -s conftest.err
9842
 
       } && test -s conftest$ac_exeext &&
9843
 
       $as_test_x conftest$ac_exeext; then
 
6494
if ac_fn_c_try_link "$LINENO"; then :
9844
6495
  ac_cv_lib_gmp___gmpz_getlimbn=yes
9845
6496
else
9846
 
  echo "$as_me: failed program was:" >&5
9847
 
sed 's/^/| /' conftest.$ac_ext >&5
9848
 
 
9849
 
        ac_cv_lib_gmp___gmpz_getlimbn=no
 
6497
  ac_cv_lib_gmp___gmpz_getlimbn=no
9850
6498
fi
9851
 
 
9852
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853
 
      conftest$ac_exeext conftest.$ac_ext
 
6499
rm -f core conftest.err conftest.$ac_objext \
 
6500
    conftest$ac_exeext conftest.$ac_ext
9854
6501
LIBS=$ac_check_lib_save_LIBS
9855
6502
fi
9856
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_getlimbn" >&5
9857
 
echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_getlimbn" >&6; }
9858
 
if test $ac_cv_lib_gmp___gmpz_getlimbn = yes; then
 
6503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_getlimbn" >&5
 
6504
$as_echo "$ac_cv_lib_gmp___gmpz_getlimbn" >&6; }
 
6505
if test "x$ac_cv_lib_gmp___gmpz_getlimbn" = x""yes; then :
9859
6506
  cat >>confdefs.h <<_ACEOF
9860
6507
#define HAVE_LIBGMP 1
9861
6508
_ACEOF
9863
6510
  LIBS="-lgmp $LIBS"
9864
6511
 
9865
6512
else
9866
 
  { echo "$as_me:$LINENO: WARNING: GNU MP not found, or not 3.1 or up, see http://www.swox.com/gmp.
 
6513
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
9867
6514
Support for public key algorithms will be unavailable." >&5
9868
 
echo "$as_me: WARNING: GNU MP not found, or not 3.1 or up, see http://www.swox.com/gmp.
 
6515
$as_echo "$as_me: WARNING: GNU MP not found, or not 3.1 or up, see http://gmplib.org/.
9869
6516
Support for public key algorithms will be unavailable." >&2;}
9870
6517
    enable_public_key=no
9871
6518
fi
9874
6521
# Add -R flags needed to run programs linked with gmp
9875
6522
if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
9876
6523
  ac_success=no
9877
 
  if test "$cross_compiling" = yes; then
 
6524
  if test "$cross_compiling" = yes; then :
9878
6525
  :
9879
6526
else
9880
 
  cat >conftest.$ac_ext <<_ACEOF
9881
 
/* confdefs.h.  */
9882
 
_ACEOF
9883
 
cat confdefs.h >>conftest.$ac_ext
9884
 
cat >>conftest.$ac_ext <<_ACEOF
 
6527
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885
6528
/* end confdefs.h.  */
9886
6529
int main(int argc, char **argv) { return 0; }
9887
6530
_ACEOF
9888
 
rm -f conftest$ac_exeext
9889
 
if { (ac_try="$ac_link"
9890
 
case "(($ac_try" in
9891
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892
 
  *) ac_try_echo=$ac_try;;
9893
 
esac
9894
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895
 
  (eval "$ac_link") 2>&5
9896
 
  ac_status=$?
9897
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9899
 
  { (case "(($ac_try" in
9900
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901
 
  *) ac_try_echo=$ac_try;;
9902
 
esac
9903
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904
 
  (eval "$ac_try") 2>&5
9905
 
  ac_status=$?
9906
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907
 
  (exit $ac_status); }; }; then
 
6531
if ac_fn_c_try_run "$LINENO"; then :
9908
6532
  ac_success=yes
9909
6533
else
9910
 
  echo "$as_me: program exited with status $ac_status" >&5
9911
 
echo "$as_me: failed program was:" >&5
9912
 
sed 's/^/| /' conftest.$ac_ext >&5
9913
 
 
9914
 
( exit $ac_status )
9915
 
ac_success=no
9916
 
fi
9917
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9918
 
fi
9919
 
 
 
6534
  ac_success=no
 
6535
fi
 
6536
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6537
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6538
fi
9920
6539
 
9921
6540
 
9922
6541
  if test $ac_success = no ; then
9923
 
    { echo "$as_me:$LINENO: checking Running simple test program failed. Trying -R flags" >&5
9924
 
echo $ECHO_N "checking Running simple test program failed. Trying -R flags... $ECHO_C" >&6; }
 
6542
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
 
6543
$as_echo_n "checking Running simple test program failed. Trying -R flags... " >&6; }
9925
6544
    ac_remaining_dirs=''
9926
6545
    ac_rpath_save_LDFLAGS="$LDFLAGS"
9927
6546
    for d in $RPATH_CANDIDATE_DIRS ; do
9929
6548
        ac_remaining_dirs="$ac_remaining_dirs $d"
9930
6549
      else
9931
6550
        LDFLAGS="$RPATHFLAG$d $LDFLAGS"
9932
 
        if test "$cross_compiling" = yes; then
 
6551
        if test "$cross_compiling" = yes; then :
9933
6552
  :
9934
6553
else
9935
 
  cat >conftest.$ac_ext <<_ACEOF
9936
 
/* confdefs.h.  */
9937
 
_ACEOF
9938
 
cat confdefs.h >>conftest.$ac_ext
9939
 
cat >>conftest.$ac_ext <<_ACEOF
 
6554
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940
6555
/* end confdefs.h.  */
9941
6556
int main(int argc, char **argv) { return 0; }
9942
6557
_ACEOF
9943
 
rm -f conftest$ac_exeext
9944
 
if { (ac_try="$ac_link"
9945
 
case "(($ac_try" in
9946
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947
 
  *) ac_try_echo=$ac_try;;
9948
 
esac
9949
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950
 
  (eval "$ac_link") 2>&5
9951
 
  ac_status=$?
9952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9954
 
  { (case "(($ac_try" in
9955
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956
 
  *) ac_try_echo=$ac_try;;
9957
 
esac
9958
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959
 
  (eval "$ac_try") 2>&5
9960
 
  ac_status=$?
9961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962
 
  (exit $ac_status); }; }; then
 
6558
if ac_fn_c_try_run "$LINENO"; then :
9963
6559
  ac_success=yes
9964
6560
          ac_rpath_save_LDFLAGS="$LDFLAGS"
9965
 
          { echo "$as_me:$LINENO: result: adding $RPATHFLAG$d" >&5
9966
 
echo "${ECHO_T}adding $RPATHFLAG$d" >&6; }
 
6561
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
 
6562
$as_echo "adding $RPATHFLAG$d" >&6; }
9967
6563
 
9968
6564
else
9969
 
  echo "$as_me: program exited with status $ac_status" >&5
9970
 
echo "$as_me: failed program was:" >&5
9971
 
sed 's/^/| /' conftest.$ac_ext >&5
9972
 
 
9973
 
( exit $ac_status )
9974
 
ac_remaining_dirs="$ac_remaining_dirs $d"
9975
 
fi
9976
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9977
 
fi
9978
 
 
 
6565
  ac_remaining_dirs="$ac_remaining_dirs $d"
 
6566
fi
 
6567
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6568
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6569
fi
9979
6570
 
9980
6571
        LDFLAGS="$ac_rpath_save_LDFLAGS"
9981
6572
      fi
9983
6574
    RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
9984
6575
  fi
9985
6576
  if test $ac_success = no ; then
9986
 
    { echo "$as_me:$LINENO: result: failed" >&5
9987
 
echo "${ECHO_T}failed" >&6; }
 
6577
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6578
$as_echo "failed" >&6; }
9988
6579
  fi
9989
6580
fi
9990
6581
 
9991
6582
 
9992
6583
 
9993
 
 
9994
 
{ echo "$as_me:$LINENO: checking for __gmpz_powm_sec" >&5
9995
 
echo $ECHO_N "checking for __gmpz_powm_sec... $ECHO_C" >&6; }
9996
 
if test "${ac_cv_func___gmpz_powm_sec+set}" = set; then
9997
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9998
 
else
9999
 
  cat >conftest.$ac_ext <<_ACEOF
10000
 
/* confdefs.h.  */
10001
 
_ACEOF
10002
 
cat confdefs.h >>conftest.$ac_ext
10003
 
cat >>conftest.$ac_ext <<_ACEOF
10004
 
/* end confdefs.h.  */
10005
 
/* Define __gmpz_powm_sec to an innocuous variant, in case <limits.h> declares __gmpz_powm_sec.
10006
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10007
 
#define __gmpz_powm_sec innocuous___gmpz_powm_sec
10008
 
 
10009
 
/* System header to define __stub macros and hopefully few prototypes,
10010
 
    which can conflict with char __gmpz_powm_sec (); below.
10011
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10012
 
    <limits.h> exists even on freestanding compilers.  */
10013
 
 
10014
 
#ifdef __STDC__
10015
 
# include <limits.h>
10016
 
#else
10017
 
# include <assert.h>
10018
 
#endif
10019
 
 
10020
 
#undef __gmpz_powm_sec
10021
 
 
10022
 
/* Override any GCC internal prototype to avoid an error.
10023
 
   Use char because int might match the return type of a GCC
10024
 
   builtin and then its argument prototype would still apply.  */
10025
 
#ifdef __cplusplus
10026
 
extern "C"
10027
 
#endif
10028
 
char __gmpz_powm_sec ();
10029
 
/* The GNU C library defines this for functions which it implements
10030
 
    to always fail with ENOSYS.  Some functions are actually named
10031
 
    something starting with __ and the normal name is an alias.  */
10032
 
#if defined __stub___gmpz_powm_sec || defined __stub_____gmpz_powm_sec
10033
 
choke me
10034
 
#endif
10035
 
 
10036
 
int
10037
 
main ()
10038
 
{
10039
 
return __gmpz_powm_sec ();
10040
 
  ;
10041
 
  return 0;
10042
 
}
10043
 
_ACEOF
10044
 
rm -f conftest.$ac_objext conftest$ac_exeext
10045
 
if { (ac_try="$ac_link"
10046
 
case "(($ac_try" in
10047
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048
 
  *) ac_try_echo=$ac_try;;
10049
 
esac
10050
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051
 
  (eval "$ac_link") 2>conftest.er1
10052
 
  ac_status=$?
10053
 
  grep -v '^ *+' conftest.er1 >conftest.err
10054
 
  rm -f conftest.er1
10055
 
  cat conftest.err >&5
10056
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057
 
  (exit $ac_status); } && {
10058
 
         test -z "$ac_c_werror_flag" ||
10059
 
         test ! -s conftest.err
10060
 
       } && test -s conftest$ac_exeext &&
10061
 
       $as_test_x conftest$ac_exeext; then
10062
 
  ac_cv_func___gmpz_powm_sec=yes
10063
 
else
10064
 
  echo "$as_me: failed program was:" >&5
10065
 
sed 's/^/| /' conftest.$ac_ext >&5
10066
 
 
10067
 
        ac_cv_func___gmpz_powm_sec=no
10068
 
fi
10069
 
 
10070
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10071
 
      conftest$ac_exeext conftest.$ac_ext
10072
 
fi
10073
 
{ echo "$as_me:$LINENO: result: $ac_cv_func___gmpz_powm_sec" >&5
10074
 
echo "${ECHO_T}$ac_cv_func___gmpz_powm_sec" >&6; }
10075
 
if test $ac_cv_func___gmpz_powm_sec = yes; then
10076
 
  cat >>confdefs.h <<\_ACEOF
10077
 
#define HAVE_MPZ_POWM_SEC 1
10078
 
_ACEOF
10079
 
 
10080
 
fi
10081
 
 
 
6584
ac_fn_c_check_func "$LINENO" "__gmpz_powm_sec" "ac_cv_func___gmpz_powm_sec"
 
6585
if test "x$ac_cv_func___gmpz_powm_sec" = x""yes; then :
 
6586
  $as_echo "#define HAVE_MPZ_POWM_SEC 1" >>confdefs.h
 
6587
 
 
6588
fi
10082
6589
 
10083
6590
 
10084
6591
 
10085
6592
 
10086
6593
if test "x$enable_public_key" = xyes ; then
10087
 
  cat >>confdefs.h <<\_ACEOF
10088
 
#define WITH_HOGWEED 1
10089
 
_ACEOF
 
6594
  $as_echo "#define WITH_HOGWEED 1" >>confdefs.h
10090
6595
 
10091
6596
  IF_HOGWEED=''
10092
6597
else
10106
6611
 
10107
6612
# Check for openssl's libcrypto (used only for benchmarking)
10108
6613
if test x$enable_openssl = xyes ; then
10109
 
  { echo "$as_me:$LINENO: checking for BF_ecb_encrypt in -lcrypto" >&5
10110
 
echo $ECHO_N "checking for BF_ecb_encrypt in -lcrypto... $ECHO_C" >&6; }
10111
 
if test "${ac_cv_lib_crypto_BF_ecb_encrypt+set}" = set; then
10112
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6614
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BF_ecb_encrypt in -lcrypto" >&5
 
6615
$as_echo_n "checking for BF_ecb_encrypt in -lcrypto... " >&6; }
 
6616
if test "${ac_cv_lib_crypto_BF_ecb_encrypt+set}" = set; then :
 
6617
  $as_echo_n "(cached) " >&6
10113
6618
else
10114
6619
  ac_check_lib_save_LIBS=$LIBS
10115
6620
LIBS="-lcrypto  $LIBS"
10116
 
cat >conftest.$ac_ext <<_ACEOF
10117
 
/* confdefs.h.  */
10118
 
_ACEOF
10119
 
cat confdefs.h >>conftest.$ac_ext
10120
 
cat >>conftest.$ac_ext <<_ACEOF
 
6621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121
6622
/* end confdefs.h.  */
10122
6623
 
10123
6624
/* Override any GCC internal prototype to avoid an error.
10135
6636
  return 0;
10136
6637
}
10137
6638
_ACEOF
10138
 
rm -f conftest.$ac_objext conftest$ac_exeext
10139
 
if { (ac_try="$ac_link"
10140
 
case "(($ac_try" in
10141
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142
 
  *) ac_try_echo=$ac_try;;
10143
 
esac
10144
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145
 
  (eval "$ac_link") 2>conftest.er1
10146
 
  ac_status=$?
10147
 
  grep -v '^ *+' conftest.er1 >conftest.err
10148
 
  rm -f conftest.er1
10149
 
  cat conftest.err >&5
10150
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151
 
  (exit $ac_status); } && {
10152
 
         test -z "$ac_c_werror_flag" ||
10153
 
         test ! -s conftest.err
10154
 
       } && test -s conftest$ac_exeext &&
10155
 
       $as_test_x conftest$ac_exeext; then
 
6639
if ac_fn_c_try_link "$LINENO"; then :
10156
6640
  ac_cv_lib_crypto_BF_ecb_encrypt=yes
10157
6641
else
10158
 
  echo "$as_me: failed program was:" >&5
10159
 
sed 's/^/| /' conftest.$ac_ext >&5
10160
 
 
10161
 
        ac_cv_lib_crypto_BF_ecb_encrypt=no
 
6642
  ac_cv_lib_crypto_BF_ecb_encrypt=no
10162
6643
fi
10163
 
 
10164
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165
 
      conftest$ac_exeext conftest.$ac_ext
 
6644
rm -f core conftest.err conftest.$ac_objext \
 
6645
    conftest$ac_exeext conftest.$ac_ext
10166
6646
LIBS=$ac_check_lib_save_LIBS
10167
6647
fi
10168
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_BF_ecb_encrypt" >&5
10169
 
echo "${ECHO_T}$ac_cv_lib_crypto_BF_ecb_encrypt" >&6; }
10170
 
if test $ac_cv_lib_crypto_BF_ecb_encrypt = yes; then
 
6648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BF_ecb_encrypt" >&5
 
6649
$as_echo "$ac_cv_lib_crypto_BF_ecb_encrypt" >&6; }
 
6650
if test "x$ac_cv_lib_crypto_BF_ecb_encrypt" = x""yes; then :
10171
6651
  OPENSSL_LIBFLAGS='-lcrypto'
10172
6652
else
10173
6653
  enable_openssl=no
10177
6657
 
10178
6658
 
10179
6659
 
10180
 
 
10181
6660
if test x$enable_openssl = xyes ; then
10182
 
  cat >>confdefs.h <<\_ACEOF
10183
 
#define WITH_OPENSSL 1
 
6661
  $as_echo "#define WITH_OPENSSL 1" >>confdefs.h
 
6662
 
 
6663
fi
 
6664
 
 
6665
 
 
6666
 
 
6667
# Choose strategy for Camellia round
 
6668
 
 
6669
 
 
6670
# clock_gettime is in librt on *-*-osf5.1 and on glibc, so add -lrt to
 
6671
# BENCH_LIBS if needed. On linux (tested on x86_32, 2.6.26),
 
6672
# clock_getres reports ns accuracy, while in a quick test on osf
 
6673
# clock_getres said only 1 millisecond.
 
6674
 
 
6675
old_LIBS="$LIBS"
 
6676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
 
6677
$as_echo_n "checking for library containing clock_gettime... " >&6; }
 
6678
if test "${ac_cv_search_clock_gettime+set}" = set; then :
 
6679
  $as_echo_n "(cached) " >&6
 
6680
else
 
6681
  ac_func_search_save_LIBS=$LIBS
 
6682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6683
/* end confdefs.h.  */
 
6684
 
 
6685
/* Override any GCC internal prototype to avoid an error.
 
6686
   Use char because int might match the return type of a GCC
 
6687
   builtin and then its argument prototype would still apply.  */
 
6688
#ifdef __cplusplus
 
6689
extern "C"
 
6690
#endif
 
6691
char clock_gettime ();
 
6692
int
 
6693
main ()
 
6694
{
 
6695
return clock_gettime ();
 
6696
  ;
 
6697
  return 0;
 
6698
}
10184
6699
_ACEOF
10185
 
 
10186
 
fi
 
6700
for ac_lib in '' rt; do
 
6701
  if test -z "$ac_lib"; then
 
6702
    ac_res="none required"
 
6703
  else
 
6704
    ac_res=-l$ac_lib
 
6705
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6706
  fi
 
6707
  if ac_fn_c_try_link "$LINENO"; then :
 
6708
  ac_cv_search_clock_gettime=$ac_res
 
6709
fi
 
6710
rm -f core conftest.err conftest.$ac_objext \
 
6711
    conftest$ac_exeext
 
6712
  if test "${ac_cv_search_clock_gettime+set}" = set; then :
 
6713
  break
 
6714
fi
 
6715
done
 
6716
if test "${ac_cv_search_clock_gettime+set}" = set; then :
 
6717
 
 
6718
else
 
6719
  ac_cv_search_clock_gettime=no
 
6720
fi
 
6721
rm conftest.$ac_ext
 
6722
LIBS=$ac_func_search_save_LIBS
 
6723
fi
 
6724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
 
6725
$as_echo "$ac_cv_search_clock_gettime" >&6; }
 
6726
ac_res=$ac_cv_search_clock_gettime
 
6727
if test "$ac_res" != no; then :
 
6728
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
6729
 
 
6730
 
 
6731
$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
 
6732
 
 
6733
fi
 
6734
 
 
6735
BENCH_LIBS="$LIBS"
 
6736
LIBS="$old_LIBS"
10187
6737
 
10188
6738
 
10189
6739
 
10190
6740
# Set these flags *last*, or else the test programs won't compile
10191
6741
if test x$GCC = xyes ; then
10192
6742
  # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
10193
 
  if "$CC" --version | grep '^2\.96$' 1>/dev/null 2>&1; then
 
6743
  if $CC --version | grep '^2\.96$' 1>/dev/null 2>&1; then
10194
6744
    true
10195
6745
  else
10196
6746
    CFLAGS="$CFLAGS -ggdb3"
10197
6747
  fi
10198
6748
  # FIXME: It would be better to actually test if this option works and/or is needed.
10199
6749
  # Or perhaps use -funsigned-char.
10200
 
  if "$CC" --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
 
6750
  if $CC --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
10201
6751
    CFLAGS="$CFLAGS -Wno-pointer-sign"
10202
6752
  fi
10203
6753
  CFLAGS="$CFLAGS -Wall -W \
10214
6764
 
10215
6765
ac_config_files="$ac_config_files tools/Makefile testsuite/Makefile examples/Makefile"
10216
6766
 
 
6767
ac_config_files="$ac_config_files nettle.pc hogweed.pc"
 
6768
 
10217
6769
 
10218
6770
cat >confcache <<\_ACEOF
10219
6771
# This file is a shell script that caches the results of configure
10242
6794
    case $ac_val in #(
10243
6795
    *${as_nl}*)
10244
6796
      case $ac_var in #(
10245
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10246
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
6797
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
6798
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10247
6799
      esac
10248
6800
      case $ac_var in #(
10249
6801
      _ | IFS | as_nl) ;; #(
10250
 
      *) $as_unset $ac_var ;;
 
6802
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
6803
      *) { eval $ac_var=; unset $ac_var;} ;;
10251
6804
      esac ;;
10252
6805
    esac
10253
6806
  done
10255
6808
  (set) 2>&1 |
10256
6809
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10257
6810
    *${as_nl}ac_space=\ *)
10258
 
      # `set' does not quote correctly, so add quotes (double-quote
10259
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
6811
      # `set' does not quote correctly, so add quotes: double-quote
 
6812
      # substitution turns \\\\ into \\, and sed turns \\ into \.
10260
6813
      sed -n \
10261
6814
        "s/'/'\\\\''/g;
10262
6815
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10279
6832
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10280
6833
  if test -w "$cache_file"; then
10281
6834
    test "x$cache_file" != "x/dev/null" &&
10282
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10283
 
echo "$as_me: updating cache $cache_file" >&6;}
 
6835
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
6836
$as_echo "$as_me: updating cache $cache_file" >&6;}
10284
6837
    cat confcache >$cache_file
10285
6838
  else
10286
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10287
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
6839
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
6840
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10288
6841
  fi
10289
6842
fi
10290
6843
rm -f confcache
10297
6850
 
10298
6851
ac_libobjs=
10299
6852
ac_ltlibobjs=
 
6853
U=
10300
6854
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10301
6855
  # 1. Remove the extension, and $U if already installed.
10302
6856
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10303
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
6857
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10304
6858
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10305
6859
  #    will be set to the directory where LIBOBJS objects are built.
10306
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10307
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
6860
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
6861
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10308
6862
done
10309
6863
LIBOBJS=$ac_libobjs
10310
6864
 
10312
6866
 
10313
6867
 
10314
6868
 
 
6869
 
10315
6870
: ${CONFIG_STATUS=./config.status}
 
6871
ac_write_fail=0
10316
6872
ac_clean_files_save=$ac_clean_files
10317
6873
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10318
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10319
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
10320
 
cat >$CONFIG_STATUS <<_ACEOF
 
6874
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
6875
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
6876
as_write_fail=0
 
6877
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10321
6878
#! $SHELL
10322
6879
# Generated by $as_me.
10323
6880
# Run this file to recreate the current configuration.
10327
6884
debug=false
10328
6885
ac_cs_recheck=false
10329
6886
ac_cs_silent=false
 
6887
 
10330
6888
SHELL=\${CONFIG_SHELL-$SHELL}
10331
 
_ACEOF
10332
 
 
10333
 
cat >>$CONFIG_STATUS <<\_ACEOF
10334
 
## --------------------- ##
10335
 
## M4sh Initialization.  ##
10336
 
## --------------------- ##
 
6889
export SHELL
 
6890
_ASEOF
 
6891
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
6892
## -------------------- ##
 
6893
## M4sh Initialization. ##
 
6894
## -------------------- ##
10337
6895
 
10338
6896
# Be more Bourne compatible
10339
6897
DUALCASE=1; export DUALCASE # for MKS sh
10340
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
6898
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10341
6899
  emulate sh
10342
6900
  NULLCMD=:
10343
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
6901
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10344
6902
  # is contrary to our usage.  Disable this feature.
10345
6903
  alias -g '${1+"$@"}'='"$@"'
10346
6904
  setopt NO_GLOB_SUBST
10347
6905
else
10348
 
  case `(set -o) 2>/dev/null` in
10349
 
  *posix*) set -o posix ;;
 
6906
  case `(set -o) 2>/dev/null` in #(
 
6907
  *posix*) :
 
6908
    set -o posix ;; #(
 
6909
  *) :
 
6910
     ;;
10350
6911
esac
10351
 
 
10352
 
fi
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
# PATH needs CR
10358
 
# Avoid depending upon Character Ranges.
10359
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10360
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10361
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10362
 
as_cr_digits='0123456789'
10363
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
6912
fi
 
6913
 
 
6914
 
 
6915
as_nl='
 
6916
'
 
6917
export as_nl
 
6918
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
6919
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
6920
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
6921
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
6922
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
6923
# but without wasting forks for bash or zsh.
 
6924
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
6925
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
6926
  as_echo='print -r --'
 
6927
  as_echo_n='print -rn --'
 
6928
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
6929
  as_echo='printf %s\n'
 
6930
  as_echo_n='printf %s'
 
6931
else
 
6932
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
6933
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
6934
    as_echo_n='/usr/ucb/echo -n'
 
6935
  else
 
6936
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
6937
    as_echo_n_body='eval
 
6938
      arg=$1;
 
6939
      case $arg in #(
 
6940
      *"$as_nl"*)
 
6941
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
6942
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
6943
      esac;
 
6944
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
6945
    '
 
6946
    export as_echo_n_body
 
6947
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
6948
  fi
 
6949
  export as_echo_body
 
6950
  as_echo='sh -c $as_echo_body as_echo'
 
6951
fi
10364
6952
 
10365
6953
# The user is always right.
10366
6954
if test "${PATH_SEPARATOR+set}" != set; then
10367
 
  echo "#! /bin/sh" >conf$$.sh
10368
 
  echo  "exit 0"   >>conf$$.sh
10369
 
  chmod +x conf$$.sh
10370
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10371
 
    PATH_SEPARATOR=';'
10372
 
  else
10373
 
    PATH_SEPARATOR=:
10374
 
  fi
10375
 
  rm -f conf$$.sh
10376
 
fi
10377
 
 
10378
 
# Support unset when possible.
10379
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10380
 
  as_unset=unset
10381
 
else
10382
 
  as_unset=false
 
6955
  PATH_SEPARATOR=:
 
6956
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
6957
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
6958
      PATH_SEPARATOR=';'
 
6959
  }
10383
6960
fi
10384
6961
 
10385
6962
 
10388
6965
# there to prevent editors from complaining about space-tab.
10389
6966
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10390
6967
# splitting by setting IFS to empty value.)
10391
 
as_nl='
10392
 
'
10393
6968
IFS=" ""        $as_nl"
10394
6969
 
10395
6970
# Find who we are.  Look in the path if we contain no directory separator.
10396
 
case $0 in
 
6971
case $0 in #((
10397
6972
  *[\\/]* ) as_myself=$0 ;;
10398
6973
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399
6974
for as_dir in $PATH
10400
6975
do
10401
6976
  IFS=$as_save_IFS
10402
6977
  test -z "$as_dir" && as_dir=.
10403
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10404
 
done
 
6978
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
6979
  done
10405
6980
IFS=$as_save_IFS
10406
6981
 
10407
6982
     ;;
10412
6987
  as_myself=$0
10413
6988
fi
10414
6989
if test ! -f "$as_myself"; then
10415
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10416
 
  { (exit 1); exit 1; }
 
6990
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
6991
  exit 1
10417
6992
fi
10418
6993
 
10419
 
# Work around bugs in pre-3.0 UWIN ksh.
10420
 
for as_var in ENV MAIL MAILPATH
10421
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
6994
# Unset variables that we do not need and which cause bugs (e.g. in
 
6995
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
6996
# suppresses any "Segmentation fault" message there.  '((' could
 
6997
# trigger a bug in pdksh 5.2.14.
 
6998
for as_var in BASH_ENV ENV MAIL MAILPATH
 
6999
do eval test x\${$as_var+set} = xset \
 
7000
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10422
7001
done
10423
7002
PS1='$ '
10424
7003
PS2='> '
10425
7004
PS4='+ '
10426
7005
 
10427
7006
# NLS nuisances.
10428
 
for as_var in \
10429
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10430
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10431
 
  LC_TELEPHONE LC_TIME
10432
 
do
10433
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10434
 
    eval $as_var=C; export $as_var
10435
 
  else
10436
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
7007
LC_ALL=C
 
7008
export LC_ALL
 
7009
LANGUAGE=C
 
7010
export LANGUAGE
 
7011
 
 
7012
# CDPATH.
 
7013
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
7014
 
 
7015
 
 
7016
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
7017
# ----------------------------------------
 
7018
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
7019
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
7020
# script with STATUS, using 1 if that was 0.
 
7021
as_fn_error ()
 
7022
{
 
7023
  as_status=$1; test $as_status -eq 0 && as_status=1
 
7024
  if test "$4"; then
 
7025
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
7026
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10437
7027
  fi
10438
 
done
10439
 
 
10440
 
# Required to use basename.
 
7028
  $as_echo "$as_me: error: $2" >&2
 
7029
  as_fn_exit $as_status
 
7030
} # as_fn_error
 
7031
 
 
7032
 
 
7033
# as_fn_set_status STATUS
 
7034
# -----------------------
 
7035
# Set $? to STATUS, without forking.
 
7036
as_fn_set_status ()
 
7037
{
 
7038
  return $1
 
7039
} # as_fn_set_status
 
7040
 
 
7041
# as_fn_exit STATUS
 
7042
# -----------------
 
7043
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
7044
as_fn_exit ()
 
7045
{
 
7046
  set +e
 
7047
  as_fn_set_status $1
 
7048
  exit $1
 
7049
} # as_fn_exit
 
7050
 
 
7051
# as_fn_unset VAR
 
7052
# ---------------
 
7053
# Portably unset VAR.
 
7054
as_fn_unset ()
 
7055
{
 
7056
  { eval $1=; unset $1;}
 
7057
}
 
7058
as_unset=as_fn_unset
 
7059
# as_fn_append VAR VALUE
 
7060
# ----------------------
 
7061
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
7062
# advantage of any shell optimizations that allow amortized linear growth over
 
7063
# repeated appends, instead of the typical quadratic growth present in naive
 
7064
# implementations.
 
7065
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
7066
  eval 'as_fn_append ()
 
7067
  {
 
7068
    eval $1+=\$2
 
7069
  }'
 
7070
else
 
7071
  as_fn_append ()
 
7072
  {
 
7073
    eval $1=\$$1\$2
 
7074
  }
 
7075
fi # as_fn_append
 
7076
 
 
7077
# as_fn_arith ARG...
 
7078
# ------------------
 
7079
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
7080
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
7081
# must be portable across $(()) and expr.
 
7082
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
7083
  eval 'as_fn_arith ()
 
7084
  {
 
7085
    as_val=$(( $* ))
 
7086
  }'
 
7087
else
 
7088
  as_fn_arith ()
 
7089
  {
 
7090
    as_val=`expr "$@" || test $? -eq 1`
 
7091
  }
 
7092
fi # as_fn_arith
 
7093
 
 
7094
 
10441
7095
if expr a : '\(a\)' >/dev/null 2>&1 &&
10442
7096
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10443
7097
  as_expr=expr
10451
7105
  as_basename=false
10452
7106
fi
10453
7107
 
 
7108
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
7109
  as_dirname=dirname
 
7110
else
 
7111
  as_dirname=false
 
7112
fi
10454
7113
 
10455
 
# Name of the executable.
10456
7114
as_me=`$as_basename -- "$0" ||
10457
7115
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10458
7116
         X"$0" : 'X\(//\)$' \| \
10459
7117
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10460
 
echo X/"$0" |
 
7118
$as_echo X/"$0" |
10461
7119
    sed '/^.*\/\([^/][^/]*\)\/*$/{
10462
7120
            s//\1/
10463
7121
            q
10472
7130
          }
10473
7131
          s/.*/./; q'`
10474
7132
 
10475
 
# CDPATH.
10476
 
$as_unset CDPATH
10477
 
 
10478
 
 
10479
 
 
10480
 
  as_lineno_1=$LINENO
10481
 
  as_lineno_2=$LINENO
10482
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
10483
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10484
 
 
10485
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10486
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
10487
 
  # line-number line after each line using $LINENO; the second 'sed'
10488
 
  # does the real work.  The second script uses 'N' to pair each
10489
 
  # line-number line with the line containing $LINENO, and appends
10490
 
  # trailing '-' during substitution so that $LINENO is not a special
10491
 
  # case at line end.
10492
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10493
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10494
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
10495
 
  sed -n '
10496
 
    p
10497
 
    /[$]LINENO/=
10498
 
  ' <$as_myself |
10499
 
    sed '
10500
 
      s/[$]LINENO.*/&-/
10501
 
      t lineno
10502
 
      b
10503
 
      :lineno
10504
 
      N
10505
 
      :loop
10506
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10507
 
      t loop
10508
 
      s/-\n.*//
10509
 
    ' >$as_me.lineno &&
10510
 
  chmod +x "$as_me.lineno" ||
10511
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10512
 
   { (exit 1); exit 1; }; }
10513
 
 
10514
 
  # Don't try to exec as it changes $[0], causing all sort of problems
10515
 
  # (the dirname of $[0] is not the place where we might find the
10516
 
  # original and so on.  Autoconf is especially sensitive to this).
10517
 
  . "./$as_me.lineno"
10518
 
  # Exit status is that of the last command.
10519
 
  exit
10520
 
}
10521
 
 
10522
 
 
10523
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10524
 
  as_dirname=dirname
10525
 
else
10526
 
  as_dirname=false
10527
 
fi
 
7133
# Avoid depending upon Character Ranges.
 
7134
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
7135
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
7136
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
7137
as_cr_digits='0123456789'
 
7138
as_cr_alnum=$as_cr_Letters$as_cr_digits
10528
7139
 
10529
7140
ECHO_C= ECHO_N= ECHO_T=
10530
 
case `echo -n x` in
 
7141
case `echo -n x` in #(((((
10531
7142
-n*)
10532
 
  case `echo 'x\c'` in
 
7143
  case `echo 'xy\c'` in
10533
7144
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10534
 
  *)   ECHO_C='\c';;
 
7145
  xy)  ECHO_C='\c';;
 
7146
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
7147
       ECHO_T=' ';;
10535
7148
  esac;;
10536
7149
*)
10537
7150
  ECHO_N='-n';;
10538
7151
esac
10539
7152
 
10540
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
10541
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10542
 
  as_expr=expr
10543
 
else
10544
 
  as_expr=false
10545
 
fi
10546
 
 
10547
7153
rm -f conf$$ conf$$.exe conf$$.file
10548
7154
if test -d conf$$.dir; then
10549
7155
  rm -f conf$$.dir/conf$$.file
10550
7156
else
10551
7157
  rm -f conf$$.dir
10552
 
  mkdir conf$$.dir
 
7158
  mkdir conf$$.dir 2>/dev/null
10553
7159
fi
10554
 
echo >conf$$.file
10555
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
10556
 
  as_ln_s='ln -s'
10557
 
  # ... but there are two gotchas:
10558
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10559
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10560
 
  # In both cases, we have to default to `cp -p'.
10561
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
7160
if (echo >conf$$.file) 2>/dev/null; then
 
7161
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
7162
    as_ln_s='ln -s'
 
7163
    # ... but there are two gotchas:
 
7164
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
7165
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
7166
    # In both cases, we have to default to `cp -p'.
 
7167
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
7168
      as_ln_s='cp -p'
 
7169
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
7170
    as_ln_s=ln
 
7171
  else
10562
7172
    as_ln_s='cp -p'
10563
 
elif ln conf$$.file conf$$ 2>/dev/null; then
10564
 
  as_ln_s=ln
 
7173
  fi
10565
7174
else
10566
7175
  as_ln_s='cp -p'
10567
7176
fi
10568
7177
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10569
7178
rmdir conf$$.dir 2>/dev/null
10570
7179
 
 
7180
 
 
7181
# as_fn_mkdir_p
 
7182
# -------------
 
7183
# Create "$as_dir" as a directory, including parents if necessary.
 
7184
as_fn_mkdir_p ()
 
7185
{
 
7186
 
 
7187
  case $as_dir in #(
 
7188
  -*) as_dir=./$as_dir;;
 
7189
  esac
 
7190
  test -d "$as_dir" || eval $as_mkdir_p || {
 
7191
    as_dirs=
 
7192
    while :; do
 
7193
      case $as_dir in #(
 
7194
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
7195
      *) as_qdir=$as_dir;;
 
7196
      esac
 
7197
      as_dirs="'$as_qdir' $as_dirs"
 
7198
      as_dir=`$as_dirname -- "$as_dir" ||
 
7199
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7200
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
7201
         X"$as_dir" : 'X\(//\)$' \| \
 
7202
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
7203
$as_echo X"$as_dir" |
 
7204
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
7205
            s//\1/
 
7206
            q
 
7207
          }
 
7208
          /^X\(\/\/\)[^/].*/{
 
7209
            s//\1/
 
7210
            q
 
7211
          }
 
7212
          /^X\(\/\/\)$/{
 
7213
            s//\1/
 
7214
            q
 
7215
          }
 
7216
          /^X\(\/\).*/{
 
7217
            s//\1/
 
7218
            q
 
7219
          }
 
7220
          s/.*/./; q'`
 
7221
      test -d "$as_dir" && break
 
7222
    done
 
7223
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
7224
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
7225
 
 
7226
 
 
7227
} # as_fn_mkdir_p
10571
7228
if mkdir -p . 2>/dev/null; then
10572
 
  as_mkdir_p=:
 
7229
  as_mkdir_p='mkdir -p "$as_dir"'
10573
7230
else
10574
7231
  test -d ./-p && rmdir ./-p
10575
7232
  as_mkdir_p=false
10586
7243
  as_test_x='
10587
7244
    eval sh -c '\''
10588
7245
      if test -d "$1"; then
10589
 
        test -d "$1/.";
 
7246
        test -d "$1/.";
10590
7247
      else
10591
 
        case $1 in
10592
 
        -*)set "./$1";;
 
7248
        case $1 in #(
 
7249
        -*)set "./$1";;
10593
7250
        esac;
10594
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
7251
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10595
7252
        ???[sx]*):;;*)false;;esac;fi
10596
7253
    '\'' sh
10597
7254
  '
10606
7263
 
10607
7264
 
10608
7265
exec 6>&1
 
7266
## ----------------------------------- ##
 
7267
## Main body of $CONFIG_STATUS script. ##
 
7268
## ----------------------------------- ##
 
7269
_ASEOF
 
7270
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10609
7271
 
10610
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
7272
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7273
# Save the log message, to keep $0 and so on meaningful, and to
10611
7274
# report actual input values of CONFIG_FILES etc. instead of their
10612
7275
# values after options handling.
10613
7276
ac_log="
10614
 
This file was extended by nettle $as_me 2.1, which was
10615
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
7277
This file was extended by nettle $as_me 2.4, which was
 
7278
generated by GNU Autoconf 2.67.  Invocation command line was
10616
7279
 
10617
7280
  CONFIG_FILES    = $CONFIG_FILES
10618
7281
  CONFIG_HEADERS  = $CONFIG_HEADERS
10625
7288
 
10626
7289
_ACEOF
10627
7290
 
10628
 
cat >>$CONFIG_STATUS <<_ACEOF
 
7291
case $ac_config_files in *"
 
7292
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
7293
esac
 
7294
 
 
7295
case $ac_config_headers in *"
 
7296
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
7297
esac
 
7298
 
 
7299
 
 
7300
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10629
7301
# Files that config.status was made for.
10630
7302
config_files="$ac_config_files"
10631
7303
config_headers="$ac_config_headers"
10634
7306
 
10635
7307
_ACEOF
10636
7308
 
10637
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7309
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10638
7310
ac_cs_usage="\
10639
 
\`$as_me' instantiates files from templates according to the
10640
 
current configuration.
 
7311
\`$as_me' instantiates files and other configuration actions
 
7312
from templates according to the current configuration.  Unless the files
 
7313
and actions are specified as TAGs, all are instantiated by default.
10641
7314
 
10642
 
Usage: $0 [OPTIONS] [FILE]...
 
7315
Usage: $0 [OPTION]... [TAG]...
10643
7316
 
10644
7317
  -h, --help       print this help, then exit
10645
7318
  -V, --version    print version number and configuration settings, then exit
10646
 
  -q, --quiet      do not print progress messages
 
7319
      --config     print configuration, then exit
 
7320
  -q, --quiet, --silent
 
7321
                   do not print progress messages
10647
7322
  -d, --debug      don't remove temporary files
10648
7323
      --recheck    update $as_me by reconfiguring in the same conditions
10649
 
  --file=FILE[:TEMPLATE]
10650
 
                   instantiate the configuration file FILE
10651
 
  --header=FILE[:TEMPLATE]
10652
 
                   instantiate the configuration header FILE
 
7324
      --file=FILE[:TEMPLATE]
 
7325
                   instantiate the configuration file FILE
 
7326
      --header=FILE[:TEMPLATE]
 
7327
                   instantiate the configuration header FILE
10653
7328
 
10654
7329
Configuration files:
10655
7330
$config_files
10663
7338
Configuration commands:
10664
7339
$config_commands
10665
7340
 
10666
 
Report bugs to <bug-autoconf@gnu.org>."
 
7341
Report bugs to <nettle-bugs@lists.lysator.liu.se>."
10667
7342
 
10668
7343
_ACEOF
10669
 
cat >>$CONFIG_STATUS <<_ACEOF
 
7344
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7345
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10670
7346
ac_cs_version="\\
10671
 
nettle config.status 2.1
10672
 
configured by $0, generated by GNU Autoconf 2.61,
10673
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
7347
nettle config.status 2.4
 
7348
configured by $0, generated by GNU Autoconf 2.67,
 
7349
  with options \\"\$ac_cs_config\\"
10674
7350
 
10675
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
7351
Copyright (C) 2010 Free Software Foundation, Inc.
10676
7352
This config.status script is free software; the Free Software Foundation
10677
7353
gives unlimited permission to copy, distribute and modify it."
10678
7354
 
10680
7356
srcdir='$srcdir'
10681
7357
INSTALL='$INSTALL'
10682
7358
MKDIR_P='$MKDIR_P'
 
7359
test -n "\$AWK" || AWK=awk
10683
7360
_ACEOF
10684
7361
 
10685
 
cat >>$CONFIG_STATUS <<\_ACEOF
10686
 
# If no file are specified by the user, then we need to provide default
10687
 
# value.  By we need to know if files were specified by the user.
 
7362
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7363
# The default lists apply if the user does not specify any file.
10688
7364
ac_need_defaults=:
10689
7365
while test $# != 0
10690
7366
do
10691
7367
  case $1 in
10692
 
  --*=*)
 
7368
  --*=?*)
10693
7369
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10694
7370
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10695
7371
    ac_shift=:
10696
7372
    ;;
 
7373
  --*=)
 
7374
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
7375
    ac_optarg=
 
7376
    ac_shift=:
 
7377
    ;;
10697
7378
  *)
10698
7379
    ac_option=$1
10699
7380
    ac_optarg=$2
10706
7387
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10707
7388
    ac_cs_recheck=: ;;
10708
7389
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10709
 
    echo "$ac_cs_version"; exit ;;
 
7390
    $as_echo "$ac_cs_version"; exit ;;
 
7391
  --config | --confi | --conf | --con | --co | --c )
 
7392
    $as_echo "$ac_cs_config"; exit ;;
10710
7393
  --debug | --debu | --deb | --de | --d | -d )
10711
7394
    debug=: ;;
10712
7395
  --file | --fil | --fi | --f )
10713
7396
    $ac_shift
10714
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
7397
    case $ac_optarg in
 
7398
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
7399
    '') as_fn_error $? "missing file argument" ;;
 
7400
    esac
 
7401
    as_fn_append CONFIG_FILES " '$ac_optarg'"
10715
7402
    ac_need_defaults=false;;
10716
7403
  --header | --heade | --head | --hea )
10717
7404
    $ac_shift
10718
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
7405
    case $ac_optarg in
 
7406
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
7407
    esac
 
7408
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10719
7409
    ac_need_defaults=false;;
10720
7410
  --he | --h)
10721
7411
    # Conflict between --help and --header
10722
 
    { echo "$as_me: error: ambiguous option: $1
10723
 
Try \`$0 --help' for more information." >&2
10724
 
   { (exit 1); exit 1; }; };;
 
7412
    as_fn_error $? "ambiguous option: \`$1'
 
7413
Try \`$0 --help' for more information.";;
10725
7414
  --help | --hel | -h )
10726
 
    echo "$ac_cs_usage"; exit ;;
 
7415
    $as_echo "$ac_cs_usage"; exit ;;
10727
7416
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10728
7417
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10729
7418
    ac_cs_silent=: ;;
10730
7419
 
10731
7420
  # This is an error.
10732
 
  -*) { echo "$as_me: error: unrecognized option: $1
10733
 
Try \`$0 --help' for more information." >&2
10734
 
   { (exit 1); exit 1; }; } ;;
 
7421
  -*) as_fn_error $? "unrecognized option: \`$1'
 
7422
Try \`$0 --help' for more information." ;;
10735
7423
 
10736
 
  *) ac_config_targets="$ac_config_targets $1"
 
7424
  *) as_fn_append ac_config_targets " $1"
10737
7425
     ac_need_defaults=false ;;
10738
7426
 
10739
7427
  esac
10748
7436
fi
10749
7437
 
10750
7438
_ACEOF
10751
 
cat >>$CONFIG_STATUS <<_ACEOF
 
7439
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10752
7440
if \$ac_cs_recheck; then
10753
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10754
 
  CONFIG_SHELL=$SHELL
 
7441
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
7442
  shift
 
7443
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
7444
  CONFIG_SHELL='$SHELL'
10755
7445
  export CONFIG_SHELL
10756
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
7446
  exec "\$@"
10757
7447
fi
10758
7448
 
10759
7449
_ACEOF
10760
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7450
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10761
7451
exec 5>>config.log
10762
7452
{
10763
7453
  echo
10764
7454
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10765
7455
## Running $as_me. ##
10766
7456
_ASBOX
10767
 
  echo "$ac_log"
 
7457
  $as_echo "$ac_log"
10768
7458
} >&5
10769
7459
 
10770
7460
_ACEOF
10771
 
cat >>$CONFIG_STATUS <<_ACEOF
 
7461
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10772
7462
#
10773
7463
# INIT-COMMANDS
10774
7464
#
10776
7466
PACKAGE="$PACKAGE"
10777
7467
VERSION="$VERSION"
10778
7468
ac_stdint_h="$ac_stdint_h"
10779
 
_ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
 
7469
_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
10780
7470
ac_cv_stdint_message="$ac_cv_stdint_message"
10781
7471
ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
10782
7472
ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
10793
7483
 
10794
7484
_ACEOF
10795
7485
 
10796
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7486
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10797
7487
 
10798
7488
# Handling of arguments.
10799
7489
for ac_config_target in $ac_config_targets
10809
7499
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10810
7500
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
10811
7501
    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
 
7502
    "nettle.pc") CONFIG_FILES="$CONFIG_FILES nettle.pc" ;;
 
7503
    "hogweed.pc") CONFIG_FILES="$CONFIG_FILES hogweed.pc" ;;
10812
7504
 
10813
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10814
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10815
 
   { (exit 1); exit 1; }; };;
 
7505
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
10816
7506
  esac
10817
7507
done
10818
7508
 
10840
7530
  trap 'exit_status=$?
10841
7531
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10842
7532
' 0
10843
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
7533
  trap 'as_fn_exit 1' 1 2 13 15
10844
7534
}
10845
7535
# Create a (secure) tmp directory for tmp files.
10846
7536
 
10851
7541
{
10852
7542
  tmp=./conf$$-$RANDOM
10853
7543
  (umask 077 && mkdir "$tmp")
10854
 
} ||
10855
 
{
10856
 
   echo "$me: cannot create a temporary directory in ." >&2
10857
 
   { (exit 1); exit 1; }
10858
 
}
10859
 
 
10860
 
#
10861
 
# Set up the sed scripts for CONFIG_FILES section.
10862
 
#
10863
 
 
10864
 
# No need to generate the scripts if there are no CONFIG_FILES.
10865
 
# This happens for instance when ./config.status config.h
 
7544
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
7545
 
 
7546
# Set up the scripts for CONFIG_FILES section.
 
7547
# No need to generate them if there are no CONFIG_FILES.
 
7548
# This happens for instance with `./config.status config.h'.
10866
7549
if test -n "$CONFIG_FILES"; then
10867
7550
 
10868
 
_ACEOF
10869
 
 
10870
 
 
10871
 
 
10872
 
ac_delim='%!_!# '
10873
 
for ac_last_try in false false false false false :; do
10874
 
  cat >conf$$subs.sed <<_ACEOF
10875
 
SHELL!$SHELL$ac_delim
10876
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10877
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10878
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10879
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10880
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10881
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10882
 
exec_prefix!$exec_prefix$ac_delim
10883
 
prefix!$prefix$ac_delim
10884
 
program_transform_name!$program_transform_name$ac_delim
10885
 
bindir!$bindir$ac_delim
10886
 
sbindir!$sbindir$ac_delim
10887
 
libexecdir!$libexecdir$ac_delim
10888
 
datarootdir!$datarootdir$ac_delim
10889
 
datadir!$datadir$ac_delim
10890
 
sysconfdir!$sysconfdir$ac_delim
10891
 
sharedstatedir!$sharedstatedir$ac_delim
10892
 
localstatedir!$localstatedir$ac_delim
10893
 
includedir!$includedir$ac_delim
10894
 
oldincludedir!$oldincludedir$ac_delim
10895
 
docdir!$docdir$ac_delim
10896
 
infodir!$infodir$ac_delim
10897
 
htmldir!$htmldir$ac_delim
10898
 
dvidir!$dvidir$ac_delim
10899
 
pdfdir!$pdfdir$ac_delim
10900
 
psdir!$psdir$ac_delim
10901
 
libdir!$libdir$ac_delim
10902
 
localedir!$localedir$ac_delim
10903
 
mandir!$mandir$ac_delim
10904
 
DEFS!$DEFS$ac_delim
10905
 
ECHO_C!$ECHO_C$ac_delim
10906
 
ECHO_N!$ECHO_N$ac_delim
10907
 
ECHO_T!$ECHO_T$ac_delim
10908
 
LIBS!$LIBS$ac_delim
10909
 
build_alias!$build_alias$ac_delim
10910
 
host_alias!$host_alias$ac_delim
10911
 
target_alias!$target_alias$ac_delim
10912
 
build!$build$ac_delim
10913
 
build_cpu!$build_cpu$ac_delim
10914
 
build_vendor!$build_vendor$ac_delim
10915
 
build_os!$build_os$ac_delim
10916
 
host!$host$ac_delim
10917
 
host_cpu!$host_cpu$ac_delim
10918
 
host_vendor!$host_vendor$ac_delim
10919
 
host_os!$host_os$ac_delim
10920
 
CC!$CC$ac_delim
10921
 
CFLAGS!$CFLAGS$ac_delim
10922
 
LDFLAGS!$LDFLAGS$ac_delim
10923
 
CPPFLAGS!$CPPFLAGS$ac_delim
10924
 
ac_ct_CC!$ac_ct_CC$ac_delim
10925
 
EXEEXT!$EXEEXT$ac_delim
10926
 
OBJEXT!$OBJEXT$ac_delim
10927
 
CXX!$CXX$ac_delim
10928
 
CXXFLAGS!$CXXFLAGS$ac_delim
10929
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
10930
 
CXX_TESTS!$CXX_TESTS$ac_delim
10931
 
SET_MAKE!$SET_MAKE$ac_delim
10932
 
RANLIB!$RANLIB$ac_delim
10933
 
NM!$NM$ac_delim
10934
 
OBJDUMP!$OBJDUMP$ac_delim
10935
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10936
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10937
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
10938
 
DEP_INCLUDE!$DEP_INCLUDE$ac_delim
10939
 
DEP_FLAGS!$DEP_FLAGS$ac_delim
10940
 
DEP_PROCESS!$DEP_PROCESS$ac_delim
10941
 
CCPIC!$CCPIC$ac_delim
10942
 
CCPIC_MAYBE!$CCPIC_MAYBE$ac_delim
10943
 
ASM_SYMBOL_PREFIX!$ASM_SYMBOL_PREFIX$ac_delim
10944
 
ASM_ELF_STYLE!$ASM_ELF_STYLE$ac_delim
10945
 
ASM_TYPE_FUNCTION!$ASM_TYPE_FUNCTION$ac_delim
10946
 
ASM_MARK_NOEXEC_STACK!$ASM_MARK_NOEXEC_STACK$ac_delim
10947
 
ASM_ALIGN_LOG!$ASM_ALIGN_LOG$ac_delim
10948
 
SHLIBCFLAGS!$SHLIBCFLAGS$ac_delim
10949
 
LIBNETTLE_MAJOR!$LIBNETTLE_MAJOR$ac_delim
10950
 
LIBNETTLE_MINOR!$LIBNETTLE_MINOR$ac_delim
10951
 
LIBNETTLE_FORLINK!$LIBNETTLE_FORLINK$ac_delim
10952
 
LIBNETTLE_SONAME!$LIBNETTLE_SONAME$ac_delim
10953
 
LIBNETTLE_FILE!$LIBNETTLE_FILE$ac_delim
10954
 
LIBNETTLE_LINK!$LIBNETTLE_LINK$ac_delim
10955
 
LIBNETTLE_LIBS!$LIBNETTLE_LIBS$ac_delim
10956
 
LIBHOGWEED_MAJOR!$LIBHOGWEED_MAJOR$ac_delim
10957
 
LIBHOGWEED_MINOR!$LIBHOGWEED_MINOR$ac_delim
10958
 
LIBHOGWEED_FORLINK!$LIBHOGWEED_FORLINK$ac_delim
10959
 
LIBHOGWEED_SONAME!$LIBHOGWEED_SONAME$ac_delim
10960
 
LIBHOGWEED_FILE!$LIBHOGWEED_FILE$ac_delim
10961
 
LIBHOGWEED_LINK!$LIBHOGWEED_LINK$ac_delim
10962
 
LIBHOGWEED_LIBS!$LIBHOGWEED_LIBS$ac_delim
10963
 
M4!$M4$ac_delim
10964
 
CPP!$CPP$ac_delim
10965
 
GREP!$GREP$ac_delim
10966
 
EGREP!$EGREP$ac_delim
10967
 
ALLOCA!$ALLOCA$ac_delim
10968
 
LIBOBJS!$LIBOBJS$ac_delim
10969
 
IF_HOGWEED!$IF_HOGWEED$ac_delim
10970
 
IF_SHARED!$IF_SHARED$ac_delim
10971
 
OPENSSL_LIBFLAGS!$OPENSSL_LIBFLAGS$ac_delim
10972
 
_ACEOF
10973
 
 
10974
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10975
 
    break
10976
 
  elif $ac_last_try; then
10977
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10978
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10979
 
   { (exit 1); exit 1; }; }
10980
 
  else
10981
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10982
 
  fi
10983
 
done
10984
 
 
10985
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10986
 
if test -n "$ac_eof"; then
10987
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10988
 
  ac_eof=`expr $ac_eof + 1`
10989
 
fi
10990
 
 
10991
 
cat >>$CONFIG_STATUS <<_ACEOF
10992
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10993
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10994
 
_ACEOF
10995
 
sed '
10996
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10997
 
s/^/s,@/; s/!/@,|#_!!_#|/
10998
 
:n
10999
 
t n
11000
 
s/'"$ac_delim"'$/,g/; t
11001
 
s/$/\\/; p
11002
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11003
 
' >>$CONFIG_STATUS <conf$$subs.sed
11004
 
rm -f conf$$subs.sed
11005
 
cat >>$CONFIG_STATUS <<_ACEOF
11006
 
CEOF$ac_eof
11007
 
_ACEOF
11008
 
 
11009
 
 
11010
 
ac_delim='%!_!# '
11011
 
for ac_last_try in false false false false false :; do
11012
 
  cat >conf$$subs.sed <<_ACEOF
11013
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
11014
 
_ACEOF
11015
 
 
11016
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
11017
 
    break
11018
 
  elif $ac_last_try; then
11019
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11020
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11021
 
   { (exit 1); exit 1; }; }
11022
 
  else
11023
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11024
 
  fi
11025
 
done
11026
 
 
11027
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11028
 
if test -n "$ac_eof"; then
11029
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11030
 
  ac_eof=`expr $ac_eof + 1`
11031
 
fi
11032
 
 
11033
 
cat >>$CONFIG_STATUS <<_ACEOF
11034
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11035
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11036
 
_ACEOF
11037
 
sed '
11038
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11039
 
s/^/s,@/; s/!/@,|#_!!_#|/
11040
 
:n
11041
 
t n
11042
 
s/'"$ac_delim"'$/,g/; t
11043
 
s/$/\\/; p
11044
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11045
 
' >>$CONFIG_STATUS <conf$$subs.sed
11046
 
rm -f conf$$subs.sed
11047
 
cat >>$CONFIG_STATUS <<_ACEOF
11048
 
:end
11049
 
s/|#_!!_#|//g
11050
 
CEOF$ac_eof
11051
 
_ACEOF
11052
 
 
11053
 
 
11054
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11055
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
7551
 
 
7552
ac_cr=`echo X | tr X '\015'`
 
7553
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
7554
# But we know of no other shell where ac_cr would be empty at this
 
7555
# point, so we can use a bashism as a fallback.
 
7556
if test "x$ac_cr" = x; then
 
7557
  eval ac_cr=\$\'\\r\'
 
7558
fi
 
7559
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
7560
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
7561
  ac_cs_awk_cr='\\r'
 
7562
else
 
7563
  ac_cs_awk_cr=$ac_cr
 
7564
fi
 
7565
 
 
7566
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
7567
_ACEOF
 
7568
 
 
7569
 
 
7570
{
 
7571
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
7572
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
7573
  echo "_ACEOF"
 
7574
} >conf$$subs.sh ||
 
7575
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
7576
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
7577
ac_delim='%!_!# '
 
7578
for ac_last_try in false false false false false :; do
 
7579
  . ./conf$$subs.sh ||
 
7580
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
7581
 
 
7582
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
7583
  if test $ac_delim_n = $ac_delim_num; then
 
7584
    break
 
7585
  elif $ac_last_try; then
 
7586
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
7587
  else
 
7588
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
7589
  fi
 
7590
done
 
7591
rm -f conf$$subs.sh
 
7592
 
 
7593
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7594
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
7595
_ACEOF
 
7596
sed -n '
 
7597
h
 
7598
s/^/S["/; s/!.*/"]=/
 
7599
p
 
7600
g
 
7601
s/^[^!]*!//
 
7602
:repl
 
7603
t repl
 
7604
s/'"$ac_delim"'$//
 
7605
t delim
 
7606
:nl
 
7607
h
 
7608
s/\(.\{148\}\)..*/\1/
 
7609
t more1
 
7610
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
7611
p
 
7612
n
 
7613
b repl
 
7614
:more1
 
7615
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
7616
p
 
7617
g
 
7618
s/.\{148\}//
 
7619
t nl
 
7620
:delim
 
7621
h
 
7622
s/\(.\{148\}\)..*/\1/
 
7623
t more2
 
7624
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
7625
p
 
7626
b
 
7627
:more2
 
7628
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
7629
p
 
7630
g
 
7631
s/.\{148\}//
 
7632
t delim
 
7633
' <conf$$subs.awk | sed '
 
7634
/^[^""]/{
 
7635
  N
 
7636
  s/\n//
 
7637
}
 
7638
' >>$CONFIG_STATUS || ac_write_fail=1
 
7639
rm -f conf$$subs.awk
 
7640
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7641
_ACAWK
 
7642
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
7643
  for (key in S) S_is_set[key] = 1
 
7644
  FS = ""
 
7645
 
 
7646
}
 
7647
{
 
7648
  line = $ 0
 
7649
  nfields = split(line, field, "@")
 
7650
  substed = 0
 
7651
  len = length(field[1])
 
7652
  for (i = 2; i < nfields; i++) {
 
7653
    key = field[i]
 
7654
    keylen = length(key)
 
7655
    if (S_is_set[key]) {
 
7656
      value = S[key]
 
7657
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
7658
      len += length(value) + length(field[++i])
 
7659
      substed = 1
 
7660
    } else
 
7661
      len += 1 + keylen
 
7662
  }
 
7663
 
 
7664
  print line
 
7665
}
 
7666
 
 
7667
_ACAWK
 
7668
_ACEOF
 
7669
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7670
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
7671
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
7672
else
 
7673
  cat
 
7674
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
7675
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
7676
_ACEOF
 
7677
 
 
7678
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
7679
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11056
7680
# trailing colons and then remove the whole line if VPATH becomes empty
11057
7681
# (actually we leave an empty line to preserve line numbers).
11058
7682
if test "x$srcdir" = x.; then
11059
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11060
 
s/:*\$(srcdir):*/:/
11061
 
s/:*\${srcdir}:*/:/
11062
 
s/:*@srcdir@:*/:/
11063
 
s/^\([^=]*=[     ]*\):*/\1/
 
7683
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
7684
h
 
7685
s///
 
7686
s/^/:/
 
7687
s/[      ]*$/:/
 
7688
s/:\$(srcdir):/:/g
 
7689
s/:\${srcdir}:/:/g
 
7690
s/:@srcdir@:/:/g
 
7691
s/^:*//
11064
7692
s/:*$//
 
7693
x
 
7694
s/\(=[   ]*\).*/\1/
 
7695
G
 
7696
s/\n//
11065
7697
s/^[^=]*=[       ]*$//
11066
7698
}'
11067
7699
fi
11068
7700
 
11069
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7701
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11070
7702
fi # test -n "$CONFIG_FILES"
11071
7703
 
11072
 
 
11073
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
 
7704
# Set up the scripts for CONFIG_HEADERS section.
 
7705
# No need to generate them if there are no CONFIG_HEADERS.
 
7706
# This happens for instance with `./config.status Makefile'.
 
7707
if test -n "$CONFIG_HEADERS"; then
 
7708
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
7709
BEGIN {
 
7710
_ACEOF
 
7711
 
 
7712
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
7713
# here-document in config.status, that substitutes the proper values into
 
7714
# config.h.in to produce config.h.
 
7715
 
 
7716
# Create a delimiter string that does not exist in confdefs.h, to ease
 
7717
# handling of long lines.
 
7718
ac_delim='%!_!# '
 
7719
for ac_last_try in false false :; do
 
7720
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
7721
  if test -z "$ac_t"; then
 
7722
    break
 
7723
  elif $ac_last_try; then
 
7724
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
7725
  else
 
7726
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
7727
  fi
 
7728
done
 
7729
 
 
7730
# For the awk script, D is an array of macro values keyed by name,
 
7731
# likewise P contains macro parameters if any.  Preserve backslash
 
7732
# newline sequences.
 
7733
 
 
7734
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
7735
sed -n '
 
7736
s/.\{148\}/&'"$ac_delim"'/g
 
7737
t rset
 
7738
:rset
 
7739
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
7740
t def
 
7741
d
 
7742
:def
 
7743
s/\\$//
 
7744
t bsnl
 
7745
s/["\\]/\\&/g
 
7746
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
7747
D["\1"]=" \3"/p
 
7748
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
7749
d
 
7750
:bsnl
 
7751
s/["\\]/\\&/g
 
7752
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
7753
D["\1"]=" \3\\\\\\n"\\/p
 
7754
t cont
 
7755
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
7756
t cont
 
7757
d
 
7758
:cont
 
7759
n
 
7760
s/.\{148\}/&'"$ac_delim"'/g
 
7761
t clear
 
7762
:clear
 
7763
s/\\$//
 
7764
t bsnlc
 
7765
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
7766
d
 
7767
:bsnlc
 
7768
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
7769
b cont
 
7770
' <confdefs.h | sed '
 
7771
s/'"$ac_delim"'/"\\\
 
7772
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
7773
 
 
7774
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7775
  for (key in D) D_is_set[key] = 1
 
7776
  FS = ""
 
7777
}
 
7778
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
7779
  line = \$ 0
 
7780
  split(line, arg, " ")
 
7781
  if (arg[1] == "#") {
 
7782
    defundef = arg[2]
 
7783
    mac1 = arg[3]
 
7784
  } else {
 
7785
    defundef = substr(arg[1], 2)
 
7786
    mac1 = arg[2]
 
7787
  }
 
7788
  split(mac1, mac2, "(") #)
 
7789
  macro = mac2[1]
 
7790
  prefix = substr(line, 1, index(line, defundef) - 1)
 
7791
  if (D_is_set[macro]) {
 
7792
    # Preserve the white space surrounding the "#".
 
7793
    print prefix "define", macro P[macro] D[macro]
 
7794
    next
 
7795
  } else {
 
7796
    # Replace #undef with comments.  This is necessary, for example,
 
7797
    # in the case of _POSIX_SOURCE, which is predefined and required
 
7798
    # on some systems where configure will not decide to define it.
 
7799
    if (defundef == "undef") {
 
7800
      print "/*", prefix defundef, macro, "*/"
 
7801
      next
 
7802
    }
 
7803
  }
 
7804
}
 
7805
{ print }
 
7806
_ACAWK
 
7807
_ACEOF
 
7808
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
7809
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
7810
fi # test -n "$CONFIG_HEADERS"
 
7811
 
 
7812
 
 
7813
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
 
7814
shift
 
7815
for ac_tag
11074
7816
do
11075
7817
  case $ac_tag in
11076
7818
  :[FHLC]) ac_mode=$ac_tag; continue;;
11077
7819
  esac
11078
7820
  case $ac_mode$ac_tag in
11079
7821
  :[FHL]*:*);;
11080
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11081
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11082
 
   { (exit 1); exit 1; }; };;
 
7822
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
11083
7823
  :[FH]-) ac_tag=-:-;;
11084
7824
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11085
7825
  esac
11107
7847
           [\\/$]*) false;;
11108
7848
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11109
7849
           esac ||
11110
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11111
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11112
 
   { (exit 1); exit 1; }; };;
 
7850
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
11113
7851
      esac
11114
 
      ac_file_inputs="$ac_file_inputs $ac_f"
 
7852
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
7853
      as_fn_append ac_file_inputs " '$ac_f'"
11115
7854
    done
11116
7855
 
11117
7856
    # Let's still pretend it is `configure' which instantiates (i.e., don't
11118
7857
    # use $as_me), people would be surprised to read:
11119
7858
    #    /* config.h.  Generated by config.status.  */
11120
 
    configure_input="Generated from "`IFS=:
11121
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
7859
    configure_input='Generated from '`
 
7860
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
7861
        `' by configure.'
11122
7862
    if test x"$ac_file" != x-; then
11123
7863
      configure_input="$ac_file.  $configure_input"
11124
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
11125
 
echo "$as_me: creating $ac_file" >&6;}
 
7864
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
7865
$as_echo "$as_me: creating $ac_file" >&6;}
11126
7866
    fi
 
7867
    # Neutralize special characters interpreted by sed in replacement strings.
 
7868
    case $configure_input in #(
 
7869
    *\&* | *\|* | *\\* )
 
7870
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
7871
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
7872
    *) ac_sed_conf_input=$configure_input;;
 
7873
    esac
11127
7874
 
11128
7875
    case $ac_tag in
11129
 
    *:-:* | *:-) cat >"$tmp/stdin";;
 
7876
    *:-:* | *:-) cat >"$tmp/stdin" \
 
7877
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
11130
7878
    esac
11131
7879
    ;;
11132
7880
  esac
11136
7884
         X"$ac_file" : 'X\(//\)[^/]' \| \
11137
7885
         X"$ac_file" : 'X\(//\)$' \| \
11138
7886
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11139
 
echo X"$ac_file" |
11140
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11141
 
            s//\1/
11142
 
            q
11143
 
          }
11144
 
          /^X\(\/\/\)[^/].*/{
11145
 
            s//\1/
11146
 
            q
11147
 
          }
11148
 
          /^X\(\/\/\)$/{
11149
 
            s//\1/
11150
 
            q
11151
 
          }
11152
 
          /^X\(\/\).*/{
11153
 
            s//\1/
11154
 
            q
11155
 
          }
11156
 
          s/.*/./; q'`
11157
 
  { as_dir="$ac_dir"
11158
 
  case $as_dir in #(
11159
 
  -*) as_dir=./$as_dir;;
11160
 
  esac
11161
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11162
 
    as_dirs=
11163
 
    while :; do
11164
 
      case $as_dir in #(
11165
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11166
 
      *) as_qdir=$as_dir;;
11167
 
      esac
11168
 
      as_dirs="'$as_qdir' $as_dirs"
11169
 
      as_dir=`$as_dirname -- "$as_dir" ||
11170
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11171
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
11172
 
         X"$as_dir" : 'X\(//\)$' \| \
11173
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11174
 
echo X"$as_dir" |
11175
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11176
 
            s//\1/
11177
 
            q
11178
 
          }
11179
 
          /^X\(\/\/\)[^/].*/{
11180
 
            s//\1/
11181
 
            q
11182
 
          }
11183
 
          /^X\(\/\/\)$/{
11184
 
            s//\1/
11185
 
            q
11186
 
          }
11187
 
          /^X\(\/\).*/{
11188
 
            s//\1/
11189
 
            q
11190
 
          }
11191
 
          s/.*/./; q'`
11192
 
      test -d "$as_dir" && break
11193
 
    done
11194
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
11195
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11196
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
11197
 
   { (exit 1); exit 1; }; }; }
 
7887
$as_echo X"$ac_file" |
 
7888
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
7889
            s//\1/
 
7890
            q
 
7891
          }
 
7892
          /^X\(\/\/\)[^/].*/{
 
7893
            s//\1/
 
7894
            q
 
7895
          }
 
7896
          /^X\(\/\/\)$/{
 
7897
            s//\1/
 
7898
            q
 
7899
          }
 
7900
          /^X\(\/\).*/{
 
7901
            s//\1/
 
7902
            q
 
7903
          }
 
7904
          s/.*/./; q'`
 
7905
  as_dir="$ac_dir"; as_fn_mkdir_p
11198
7906
  ac_builddir=.
11199
7907
 
11200
7908
case "$ac_dir" in
11201
7909
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11202
7910
*)
11203
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
7911
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11204
7912
  # A ".." for each directory in $ac_dir_suffix.
11205
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
7913
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11206
7914
  case $ac_top_builddir_sub in
11207
7915
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11208
7916
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11247
7955
  esac
11248
7956
_ACEOF
11249
7957
 
11250
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7958
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11251
7959
# If the template does not know about datarootdir, expand it.
11252
7960
# FIXME: This hack should be removed a few years after 2.60.
11253
7961
ac_datarootdir_hack=; ac_datarootdir_seen=
11254
 
 
11255
 
case `sed -n '/datarootdir/ {
 
7962
ac_sed_dataroot='
 
7963
/datarootdir/ {
11256
7964
  p
11257
7965
  q
11258
7966
}
11260
7968
/@docdir@/p
11261
7969
/@infodir@/p
11262
7970
/@localedir@/p
11263
 
/@mandir@/p
11264
 
' $ac_file_inputs` in
 
7971
/@mandir@/p'
 
7972
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11265
7973
*datarootdir*) ac_datarootdir_seen=yes;;
11266
7974
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11267
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11268
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
7975
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
7976
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11269
7977
_ACEOF
11270
 
cat >>$CONFIG_STATUS <<_ACEOF
 
7978
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11271
7979
  ac_datarootdir_hack='
11272
7980
  s&@datadir@&$datadir&g
11273
7981
  s&@docdir@&$docdir&g
11274
7982
  s&@infodir@&$infodir&g
11275
7983
  s&@localedir@&$localedir&g
11276
7984
  s&@mandir@&$mandir&g
11277
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
7985
  s&\\\${datarootdir}&$datarootdir&g' ;;
11278
7986
esac
11279
7987
_ACEOF
11280
7988
 
11281
7989
# Neutralize VPATH when `$srcdir' = `.'.
11282
7990
# Shell code in configure.ac might set extrasub.
11283
7991
# FIXME: do we really want to maintain this feature?
11284
 
cat >>$CONFIG_STATUS <<_ACEOF
11285
 
  sed "$ac_vpsub
 
7992
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
7993
ac_sed_extra="$ac_vpsub
11286
7994
$extrasub
11287
7995
_ACEOF
11288
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
7996
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11289
7997
:t
11290
7998
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11291
 
s&@configure_input@&$configure_input&;t t
 
7999
s|@configure_input@|$ac_sed_conf_input|;t t
11292
8000
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
8001
s&@top_build_prefix@&$ac_top_build_prefix&;t t
11293
8002
s&@srcdir@&$ac_srcdir&;t t
11294
8003
s&@abs_srcdir@&$ac_abs_srcdir&;t t
11295
8004
s&@top_srcdir@&$ac_top_srcdir&;t t
11300
8009
s&@INSTALL@&$ac_INSTALL&;t t
11301
8010
s&@MKDIR_P@&$ac_MKDIR_P&;t t
11302
8011
$ac_datarootdir_hack
11303
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
8012
"
 
8013
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
8014
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11304
8015
 
11305
8016
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11306
8017
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11307
8018
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11308
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11309
 
which seems to be undefined.  Please make sure it is defined." >&5
11310
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11311
 
which seems to be undefined.  Please make sure it is defined." >&2;}
 
8019
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8020
which seems to be undefined.  Please make sure it is defined" >&5
 
8021
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8022
which seems to be undefined.  Please make sure it is defined" >&2;}
11312
8023
 
11313
8024
  rm -f "$tmp/stdin"
11314
8025
  case $ac_file in
11315
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
11316
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11317
 
  esac
 
8026
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
8027
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
8028
  esac \
 
8029
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11318
8030
 ;;
11319
8031
  :H)
11320
8032
  #
11321
8033
  # CONFIG_HEADER
11322
8034
  #
11323
 
_ACEOF
11324
 
 
11325
 
# Transform confdefs.h into a sed script `conftest.defines', that
11326
 
# substitutes the proper values into config.h.in to produce config.h.
11327
 
rm -f conftest.defines conftest.tail
11328
 
# First, append a space to every undef/define line, to ease matching.
11329
 
echo 's/$/ /' >conftest.defines
11330
 
# Then, protect against being on the right side of a sed subst, or in
11331
 
# an unquoted here document, in config.status.  If some macros were
11332
 
# called several times there might be several #defines for the same
11333
 
# symbol, which is useless.  But do not sort them, since the last
11334
 
# AC_DEFINE must be honored.
11335
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11336
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11337
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
11338
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
11339
 
# just an empty string.
11340
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
11341
 
ac_dB='\\)[      (].*,\\1define\\2'
11342
 
ac_dC=' '
11343
 
ac_dD=' ,'
11344
 
 
11345
 
uniq confdefs.h |
11346
 
  sed -n '
11347
 
        t rset
11348
 
        :rset
11349
 
        s/^[     ]*#[    ]*define[       ][      ]*//
11350
 
        t ok
11351
 
        d
11352
 
        :ok
11353
 
        s/[\\&,]/\\&/g
11354
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11355
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11356
 
  ' >>conftest.defines
11357
 
 
11358
 
# Remove the space that was appended to ease matching.
11359
 
# Then replace #undef with comments.  This is necessary, for
11360
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
11361
 
# on some systems where configure will not decide to define it.
11362
 
# (The regexp can be short, since the line contains either #define or #undef.)
11363
 
echo 's/ $//
11364
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
11365
 
 
11366
 
# Break up conftest.defines:
11367
 
ac_max_sed_lines=50
11368
 
 
11369
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11370
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11371
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11372
 
# et cetera.
11373
 
ac_in='$ac_file_inputs'
11374
 
ac_out='"$tmp/out1"'
11375
 
ac_nxt='"$tmp/out2"'
11376
 
 
11377
 
while :
11378
 
do
11379
 
  # Write a here document:
11380
 
    cat >>$CONFIG_STATUS <<_ACEOF
11381
 
    # First, check the format of the line:
11382
 
    cat >"\$tmp/defines.sed" <<\\CEOF
11383
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
11384
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
11385
 
b
11386
 
:def
11387
 
_ACEOF
11388
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11389
 
  echo 'CEOF
11390
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11391
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11392
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11393
 
  grep . conftest.tail >/dev/null || break
11394
 
  rm -f conftest.defines
11395
 
  mv conftest.tail conftest.defines
11396
 
done
11397
 
rm -f conftest.defines conftest.tail
11398
 
 
11399
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
11400
 
cat >>$CONFIG_STATUS <<\_ACEOF
11401
8035
  if test x"$ac_file" != x-; then
11402
 
    echo "/* $configure_input  */" >"$tmp/config.h"
11403
 
    cat "$ac_result" >>"$tmp/config.h"
11404
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11405
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11406
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
8036
    {
 
8037
      $as_echo "/* $configure_input  */" \
 
8038
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
8039
    } >"$tmp/config.h" \
 
8040
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
8041
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
8042
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
8043
$as_echo "$as_me: $ac_file is unchanged" >&6;}
11407
8044
    else
11408
 
      rm -f $ac_file
11409
 
      mv "$tmp/config.h" $ac_file
 
8045
      rm -f "$ac_file"
 
8046
      mv "$tmp/config.h" "$ac_file" \
 
8047
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11410
8048
    fi
11411
8049
  else
11412
 
    echo "/* $configure_input  */"
11413
 
    cat "$ac_result"
 
8050
    $as_echo "/* $configure_input  */" \
 
8051
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
8052
      || as_fn_error $? "could not create -" "$LINENO" 5
11414
8053
  fi
11415
 
  rm -f "$tmp/out12"
11416
8054
 ;;
11417
8055
  :L)
11418
8056
  #
11419
8057
  # CONFIG_LINK
11420
8058
  #
11421
8059
 
11422
 
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
11423
 
echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
11424
 
 
11425
 
  if test ! -r "$srcdir/$ac_source"; then
11426
 
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
11427
 
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
11428
 
   { (exit 1); exit 1; }; }
 
8060
  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
 
8061
    :
 
8062
  else
 
8063
    # Prefer the file from the source tree if names are identical.
 
8064
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
 
8065
      ac_source=$srcdir/$ac_source
 
8066
    fi
 
8067
 
 
8068
    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
 
8069
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
 
8070
 
 
8071
    if test ! -r "$ac_source"; then
 
8072
      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
 
8073
    fi
 
8074
    rm -f "$ac_file"
 
8075
 
 
8076
    # Try a relative symlink, then a hard link, then a copy.
 
8077
    case $ac_source in
 
8078
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
 
8079
        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
 
8080
    esac
 
8081
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
 
8082
      ln "$ac_source" "$ac_file" 2>/dev/null ||
 
8083
      cp -p "$ac_source" "$ac_file" ||
 
8084
      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
11429
8085
  fi
11430
 
  rm -f "$ac_file"
11431
 
 
11432
 
  # Try a relative symlink, then a hard link, then a copy.
11433
 
  case $srcdir in
11434
 
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
11435
 
      *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
11436
 
  esac
11437
 
  ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
11438
 
    ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
11439
 
    cp -p "$srcdir/$ac_source" "$ac_file" ||
11440
 
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
11441
 
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
11442
 
   { (exit 1); exit 1; }; }
11443
8086
 ;;
11444
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11445
 
echo "$as_me: executing $ac_file commands" >&6;}
 
8087
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
8088
$as_echo "$as_me: executing $ac_file commands" >&6;}
11446
8089
 ;;
11447
8090
  esac
11448
8091
 
11452
8095
 | sed 's/\.c$//' | (while read f; do echo > "$f.o.d"; echo > "$f.po.d"; done)
11453
8096
 ;;
11454
8097
    "$ac_stdint_h":C)
11455
 
{ echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
11456
 
echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
 
8098
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
 
8099
$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
11457
8100
ac_stdint=$tmp/_stdint.h
11458
8101
 
11459
8102
echo "#ifndef" $_ac_stdint_h >$ac_stdint
11803
8446
#endif
11804
8447
STDINT_EOF
11805
8448
    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
11806
 
      { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
11807
 
echo "$as_me: $ac_stdint_h is unchanged" >&6;}
 
8449
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
 
8450
$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
11808
8451
    else
11809
8452
      ac_dir=`$as_dirname -- "$ac_stdint_h" ||
11810
8453
$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11811
8454
         X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
11812
8455
         X"$ac_stdint_h" : 'X\(//\)$' \| \
11813
8456
         X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
11814
 
echo X"$ac_stdint_h" |
11815
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11816
 
            s//\1/
11817
 
            q
11818
 
          }
11819
 
          /^X\(\/\/\)[^/].*/{
11820
 
            s//\1/
11821
 
            q
11822
 
          }
11823
 
          /^X\(\/\/\)$/{
11824
 
            s//\1/
11825
 
            q
11826
 
          }
11827
 
          /^X\(\/\).*/{
11828
 
            s//\1/
11829
 
            q
11830
 
          }
11831
 
          s/.*/./; q'`
11832
 
      { as_dir="$ac_dir"
11833
 
  case $as_dir in #(
11834
 
  -*) as_dir=./$as_dir;;
11835
 
  esac
11836
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11837
 
    as_dirs=
11838
 
    while :; do
11839
 
      case $as_dir in #(
11840
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11841
 
      *) as_qdir=$as_dir;;
11842
 
      esac
11843
 
      as_dirs="'$as_qdir' $as_dirs"
11844
 
      as_dir=`$as_dirname -- "$as_dir" ||
11845
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11846
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
11847
 
         X"$as_dir" : 'X\(//\)$' \| \
11848
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11849
 
echo X"$as_dir" |
11850
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11851
 
            s//\1/
11852
 
            q
11853
 
          }
11854
 
          /^X\(\/\/\)[^/].*/{
11855
 
            s//\1/
11856
 
            q
11857
 
          }
11858
 
          /^X\(\/\/\)$/{
11859
 
            s//\1/
11860
 
            q
11861
 
          }
11862
 
          /^X\(\/\).*/{
11863
 
            s//\1/
11864
 
            q
11865
 
          }
11866
 
          s/.*/./; q'`
11867
 
      test -d "$as_dir" && break
11868
 
    done
11869
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
11870
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11871
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
11872
 
   { (exit 1); exit 1; }; }; }
 
8457
$as_echo X"$ac_stdint_h" |
 
8458
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8459
            s//\1/
 
8460
            q
 
8461
          }
 
8462
          /^X\(\/\/\)[^/].*/{
 
8463
            s//\1/
 
8464
            q
 
8465
          }
 
8466
          /^X\(\/\/\)$/{
 
8467
            s//\1/
 
8468
            q
 
8469
          }
 
8470
          /^X\(\/\).*/{
 
8471
            s//\1/
 
8472
            q
 
8473
          }
 
8474
          s/.*/./; q'`
 
8475
      as_dir="$ac_dir"; as_fn_mkdir_p
11873
8476
      rm -f $ac_stdint_h
11874
8477
      mv $ac_stdint $ac_stdint_h
11875
8478
    fi
11879
8482
done # for ac_tag
11880
8483
 
11881
8484
 
11882
 
{ (exit 0); exit 0; }
 
8485
as_fn_exit 0
11883
8486
_ACEOF
11884
 
chmod +x $CONFIG_STATUS
11885
8487
ac_clean_files=$ac_clean_files_save
11886
8488
 
 
8489
test $ac_write_fail = 0 ||
 
8490
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
8491
 
11887
8492
 
11888
8493
# configure is writing to config.log, and then calls config.status.
11889
8494
# config.status does its own redirection, appending to config.log.
11903
8508
  exec 5>>config.log
11904
8509
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11905
8510
  # would make configure fail if this is the last instruction.
11906
 
  $ac_cs_success || { (exit 1); exit 1; }
11907
 
fi
11908
 
 
11909
 
 
 
8511
  $ac_cs_success || as_fn_exit 1
 
8512
fi
 
8513
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
8514
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
8515
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
8516
fi
 
8517
 
 
8518
 
 
8519
{ $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
 
8520
 
 
8521
  Version:           ${PACKAGE_STRING}
 
8522
  Host type:         ${host}
 
8523
  ABI:               ${ABI}
 
8524
  Assembly files:    ${asm_path:-none}
 
8525
  Install prefix:    ${prefix}
 
8526
  Library directory: ${libdir}
 
8527
  Compiler:          ${CC}
 
8528
  Shared libraries:  ${enable_shared}
 
8529
  Public key crypto: ${enable_public_key}
 
8530
" >&5
 
8531
$as_echo "$as_me: summary of build options:
 
8532
 
 
8533
  Version:           ${PACKAGE_STRING}
 
8534
  Host type:         ${host}
 
8535
  ABI:               ${ABI}
 
8536
  Assembly files:    ${asm_path:-none}
 
8537
  Install prefix:    ${prefix}
 
8538
  Library directory: ${libdir}
 
8539
  Compiler:          ${CC}
 
8540
  Shared libraries:  ${enable_shared}
 
8541
  Public key crypto: ${enable_public_key}
 
8542
" >&6;}