~ubuntu-branches/ubuntu/oneiric/openvpn/oneiric

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-06-16 18:33:37 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20110616183337-etb3qgbwjkn8zniq
Tags: upstream-2.2.0
ImportĀ upstreamĀ versionĀ 2.2.0

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 OpenVPN 2.1.3.
 
3
# Generated by GNU Autoconf 2.66 for OpenVPN 2.2.0.
4
4
#
5
5
# Report bugs to <openvpn-users@lists.sourceforge.net>.
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: openvpn-users@lists.sourceforge.net about your system,
 
235
$0: including any error possibly output before this
 
236
$0: message. Then install a modern shell, or manually run
 
237
$0: the script under such a shell if you do have one."
 
238
  fi
 
239
  exit 1
 
240
fi
 
241
fi
 
242
fi
 
243
SHELL=${CONFIG_SHELL-/bin/sh}
 
244
export SHELL
 
245
# Unset more variables known to interfere with behavior of common tools.
 
246
CLICOLOR_FORCE= GREP_OPTIONS=
 
247
unset CLICOLOR_FORCE GREP_OPTIONS
 
248
 
 
249
## --------------------- ##
 
250
## M4sh Shell Functions. ##
 
251
## --------------------- ##
 
252
# as_fn_unset VAR
 
253
# ---------------
 
254
# Portably unset VAR.
 
255
as_fn_unset ()
 
256
{
 
257
  { eval $1=; unset $1;}
 
258
}
 
259
as_unset=as_fn_unset
 
260
 
 
261
# as_fn_set_status STATUS
 
262
# -----------------------
 
263
# Set $? to STATUS, without forking.
 
264
as_fn_set_status ()
 
265
{
 
266
  return $1
 
267
} # as_fn_set_status
 
268
 
 
269
# as_fn_exit STATUS
 
270
# -----------------
 
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
272
as_fn_exit ()
 
273
{
 
274
  set +e
 
275
  as_fn_set_status $1
 
276
  exit $1
 
277
} # as_fn_exit
 
278
 
 
279
# as_fn_mkdir_p
 
280
# -------------
 
281
# Create "$as_dir" as a directory, including parents if necessary.
 
282
as_fn_mkdir_p ()
 
283
{
 
284
 
 
285
  case $as_dir in #(
 
286
  -*) as_dir=./$as_dir;;
 
287
  esac
 
288
  test -d "$as_dir" || eval $as_mkdir_p || {
 
289
    as_dirs=
 
290
    while :; do
 
291
      case $as_dir in #(
 
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
293
      *) as_qdir=$as_dir;;
 
294
      esac
 
295
      as_dirs="'$as_qdir' $as_dirs"
 
296
      as_dir=`$as_dirname -- "$as_dir" ||
 
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
298
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
299
         X"$as_dir" : 'X\(//\)$' \| \
 
300
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
301
$as_echo X"$as_dir" |
 
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
303
            s//\1/
 
304
            q
 
305
          }
 
306
          /^X\(\/\/\)[^/].*/{
 
307
            s//\1/
 
308
            q
 
309
          }
 
310
          /^X\(\/\/\)$/{
 
311
            s//\1/
 
312
            q
 
313
          }
 
314
          /^X\(\/\).*/{
 
315
            s//\1/
 
316
            q
 
317
          }
 
318
          s/.*/./; q'`
 
319
      test -d "$as_dir" && break
 
320
    done
 
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
322
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
323
 
 
324
 
 
325
} # as_fn_mkdir_p
 
326
# as_fn_append VAR VALUE
 
327
# ----------------------
 
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
329
# advantage of any shell optimizations that allow amortized linear growth over
 
330
# repeated appends, instead of the typical quadratic growth present in naive
 
331
# implementations.
 
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
333
  eval 'as_fn_append ()
 
334
  {
 
335
    eval $1+=\$2
 
336
  }'
 
337
else
 
338
  as_fn_append ()
 
339
  {
 
340
    eval $1=\$$1\$2
 
341
  }
 
342
fi # as_fn_append
 
343
 
 
344
# as_fn_arith ARG...
 
345
# ------------------
 
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
348
# must be portable across $(()) and expr.
 
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
350
  eval 'as_fn_arith ()
 
351
  {
 
352
    as_val=$(( $* ))
 
353
  }'
 
354
else
 
355
  as_fn_arith ()
 
356
  {
 
357
    as_val=`expr "$@" || test $? -eq 1`
 
358
  }
 
359
fi # as_fn_arith
 
360
 
 
361
 
 
362
# as_fn_error 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='OpenVPN'
576
554
PACKAGE_TARNAME='openvpn'
577
 
PACKAGE_VERSION='2.1.3'
578
 
PACKAGE_STRING='OpenVPN 2.1.3'
 
555
PACKAGE_VERSION='2.2.0'
 
556
PACKAGE_STRING='OpenVPN 2.2.0'
579
557
PACKAGE_BUGREPORT='openvpn-users@lists.sourceforge.net'
 
558
PACKAGE_URL=''
580
559
 
581
560
ac_unique_file="syshead.h"
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='am__EXEEXT_FALSE
 
598
am__EXEEXT_TRUE
 
599
LTLIBOBJS
 
600
WIN32_FALSE
 
601
WIN32_TRUE
 
602
win32datadir
 
603
TAP_WIN32_MIN_MINOR
 
604
TAP_WIN32_MIN_MAJOR
 
605
TAP_ID
 
606
LIBOBJS
 
607
MAN2HTML
 
608
EGREP
 
609
GREP
 
610
CPP
 
611
am__fastdepCC_FALSE
 
612
am__fastdepCC_TRUE
 
613
CCDEPMODE
 
614
AMDEPBACKSLASH
 
615
AMDEP_FALSE
 
616
AMDEP_TRUE
 
617
am__quote
 
618
am__include
 
619
DEPDIR
 
620
OBJEXT
 
621
EXEEXT
 
622
ac_ct_CC
 
623
CPPFLAGS
 
624
LDFLAGS
 
625
CFLAGS
 
626
CC
 
627
NETSTAT
 
628
ROUTE
 
629
IPROUTE
 
630
IFCONFIG
 
631
am__untar
 
632
am__tar
 
633
AMTAR
 
634
am__leading_dot
 
635
SET_MAKE
 
636
AWK
 
637
mkdir_p
 
638
MKDIR_P
 
639
INSTALL_STRIP_PROGRAM
 
640
STRIP
 
641
install_sh
 
642
MAKEINFO
 
643
AUTOHEADER
 
644
AUTOMAKE
 
645
AUTOCONF
 
646
ACLOCAL
 
647
VERSION
 
648
PACKAGE
 
649
CYGPATH_W
 
650
am__isrc
 
651
INSTALL_DATA
 
652
INSTALL_SCRIPT
 
653
INSTALL_PROGRAM
 
654
host_os
 
655
host_vendor
 
656
host_cpu
 
657
host
 
658
build_os
 
659
build_vendor
 
660
build_cpu
 
661
build
 
662
target_alias
 
663
host_alias
 
664
build_alias
 
665
LIBS
 
666
ECHO_T
 
667
ECHO_N
 
668
ECHO_C
 
669
DEFS
 
670
mandir
 
671
localedir
 
672
libdir
 
673
psdir
 
674
pdfdir
 
675
dvidir
 
676
htmldir
 
677
infodir
 
678
docdir
 
679
oldincludedir
 
680
includedir
 
681
localstatedir
 
682
sharedstatedir
 
683
sysconfdir
 
684
datadir
 
685
datarootdir
 
686
libexecdir
 
687
sbindir
 
688
bindir
 
689
program_transform_name
 
690
prefix
 
691
exec_prefix
 
692
PACKAGE_URL
 
693
PACKAGE_BUGREPORT
 
694
PACKAGE_STRING
 
695
PACKAGE_VERSION
 
696
PACKAGE_TARNAME
 
697
PACKAGE_NAME
619
698
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
 
target
664
 
target_cpu
665
 
target_vendor
666
 
target_os
667
 
INSTALL_PROGRAM
668
 
INSTALL_SCRIPT
669
 
INSTALL_DATA
670
 
am__isrc
671
 
CYGPATH_W
672
 
PACKAGE
673
 
VERSION
674
 
ACLOCAL
675
 
AUTOCONF
676
 
AUTOMAKE
677
 
AUTOHEADER
678
 
MAKEINFO
679
 
install_sh
680
 
STRIP
681
 
INSTALL_STRIP_PROGRAM
682
 
mkdir_p
683
 
AWK
684
 
SET_MAKE
685
 
am__leading_dot
686
 
AMTAR
687
 
am__tar
688
 
am__untar
689
 
IFCONFIG
690
 
IPROUTE
691
 
ROUTE
692
 
CC
693
 
CFLAGS
694
 
LDFLAGS
695
 
CPPFLAGS
696
 
ac_ct_CC
697
 
EXEEXT
698
 
OBJEXT
699
 
DEPDIR
700
 
am__include
701
 
am__quote
702
 
AMDEP_TRUE
703
 
AMDEP_FALSE
704
 
AMDEPBACKSLASH
705
 
CCDEPMODE
706
 
am__fastdepCC_TRUE
707
 
am__fastdepCC_FALSE
708
 
CPP
709
 
GREP
710
 
EGREP
711
 
MAN2HTML
712
 
LIBOBJS
713
 
PTHREAD_CC
714
 
PTHREAD_LIBS
715
 
PTHREAD_CFLAGS
716
 
TAP_ID
717
 
TAP_WIN32_MIN_MAJOR
718
 
TAP_WIN32_MIN_MINOR
719
 
win32datadir
720
 
WIN32_TRUE
721
 
WIN32_FALSE
722
 
LTLIBOBJS'
 
699
SHELL'
723
700
ac_subst_files=''
 
701
ac_user_opts='
 
702
enable_option_checking
 
703
with_cygwin_native
 
704
enable_lzo
 
705
enable_crypto
 
706
enable_ssl
 
707
enable_x509_alt_username
 
708
enable_multi
 
709
enable_server
 
710
enable_plugins
 
711
enable_eurephia
 
712
enable_management
 
713
enable_pkcs11
 
714
enable_socks
 
715
enable_http
 
716
enable_fragment
 
717
enable_multihome
 
718
enable_port_share
 
719
enable_debug
 
720
enable_small
 
721
enable_password_save
 
722
enable_iproute2
 
723
enable_def_auth
 
724
enable_pf
 
725
enable_strict
 
726
enable_pedantic
 
727
enable_profiling
 
728
enable_strict_options
 
729
enable_selinux
 
730
with_ssl_headers
 
731
with_ssl_lib
 
732
with_lzo_headers
 
733
with_lzo_lib
 
734
with_pkcs11_helper_headers
 
735
with_pkcs11_helper_lib
 
736
with_ifconfig_path
 
737
with_iproute_path
 
738
with_route_path
 
739
with_netstat_path
 
740
with_mem_check
 
741
enable_dependency_tracking
 
742
'
724
743
      ac_precious_vars='build_alias
725
744
host_alias
726
745
target_alias
736
755
# Initialize some variables set by options.
737
756
ac_init_help=
738
757
ac_init_version=false
 
758
ac_unrecognized_opts=
 
759
ac_unrecognized_sep=
739
760
# The variables have the same names as the options, with
740
761
# dashes changed to underlines.
741
762
cache_file=/dev/null
834
855
    datarootdir=$ac_optarg ;;
835
856
 
836
857
  -disable-* | --disable-*)
837
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
858
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838
859
    # Reject names that are not valid shell variable names.
839
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
840
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841
 
   { (exit 1); exit 1; }; }
842
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
843
 
    eval enable_$ac_feature=no ;;
 
860
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
861
      as_fn_error $? "invalid feature name: $ac_useropt"
 
862
    ac_useropt_orig=$ac_useropt
 
863
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
864
    case $ac_user_opts in
 
865
      *"
 
866
"enable_$ac_useropt"
 
867
"*) ;;
 
868
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
869
         ac_unrecognized_sep=', ';;
 
870
    esac
 
871
    eval enable_$ac_useropt=no ;;
844
872
 
845
873
  -docdir | --docdir | --docdi | --doc | --do)
846
874
    ac_prev=docdir ;;
853
881
    dvidir=$ac_optarg ;;
854
882
 
855
883
  -enable-* | --enable-*)
856
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
884
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857
885
    # Reject names that are not valid shell variable names.
858
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860
 
   { (exit 1); exit 1; }; }
861
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
886
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
887
      as_fn_error $? "invalid feature name: $ac_useropt"
 
888
    ac_useropt_orig=$ac_useropt
 
889
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
890
    case $ac_user_opts in
 
891
      *"
 
892
"enable_$ac_useropt"
 
893
"*) ;;
 
894
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
895
         ac_unrecognized_sep=', ';;
 
896
    esac
 
897
    eval enable_$ac_useropt=\$ac_optarg ;;
863
898
 
864
899
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865
900
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050
1085
    ac_init_version=: ;;
1051
1086
 
1052
1087
  -with-* | --with-*)
1053
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1088
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054
1089
    # Reject names that are not valid shell variable names.
1055
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1057
 
   { (exit 1); exit 1; }; }
1058
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1059
 
    eval with_$ac_package=\$ac_optarg ;;
 
1090
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1091
      as_fn_error $? "invalid package name: $ac_useropt"
 
1092
    ac_useropt_orig=$ac_useropt
 
1093
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1094
    case $ac_user_opts in
 
1095
      *"
 
1096
"with_$ac_useropt"
 
1097
"*) ;;
 
1098
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1099
         ac_unrecognized_sep=', ';;
 
1100
    esac
 
1101
    eval with_$ac_useropt=\$ac_optarg ;;
1060
1102
 
1061
1103
  -without-* | --without-*)
1062
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1104
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063
1105
    # Reject names that are not valid shell variable names.
1064
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1066
 
   { (exit 1); exit 1; }; }
1067
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068
 
    eval with_$ac_package=no ;;
 
1106
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1107
      as_fn_error $? "invalid package name: $ac_useropt"
 
1108
    ac_useropt_orig=$ac_useropt
 
1109
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1110
    case $ac_user_opts in
 
1111
      *"
 
1112
"with_$ac_useropt"
 
1113
"*) ;;
 
1114
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1115
         ac_unrecognized_sep=', ';;
 
1116
    esac
 
1117
    eval with_$ac_useropt=no ;;
1069
1118
 
1070
1119
  --x)
1071
1120
    # Obsolete; use --with-x.
1085
1134
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1086
1135
    x_libraries=$ac_optarg ;;
1087
1136
 
1088
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1089
 
Try \`$0 --help' for more information." >&2
1090
 
   { (exit 1); exit 1; }; }
 
1137
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1138
Try \`$0 --help' for more information"
1091
1139
    ;;
1092
1140
 
1093
1141
  *=*)
1094
1142
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1095
1143
    # Reject names that are not valid shell variable names.
1096
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1097
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1098
 
   { (exit 1); exit 1; }; }
 
1144
    case $ac_envvar in #(
 
1145
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1146
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1147
    esac
1099
1148
    eval $ac_envvar=\$ac_optarg
1100
1149
    export $ac_envvar ;;
1101
1150
 
1102
1151
  *)
1103
1152
    # FIXME: should be removed in autoconf 3.0.
1104
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1153
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105
1154
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1155
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107
1156
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108
1157
    ;;
1109
1158
 
1112
1161
 
1113
1162
if test -n "$ac_prev"; then
1114
1163
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1115
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1116
 
   { (exit 1); exit 1; }; }
1117
 
fi
1118
 
 
1119
 
# Be sure to have absolute directory names.
 
1164
  as_fn_error $? "missing argument to $ac_option"
 
1165
fi
 
1166
 
 
1167
if test -n "$ac_unrecognized_opts"; then
 
1168
  case $enable_option_checking in
 
1169
    no) ;;
 
1170
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1171
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1172
  esac
 
1173
fi
 
1174
 
 
1175
# Check all directory arguments for consistency.
1120
1176
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121
1177
                datadir sysconfdir sharedstatedir localstatedir includedir \
1122
1178
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123
1179
                libdir localedir mandir
1124
1180
do
1125
1181
  eval ac_val=\$$ac_var
 
1182
  # Remove trailing slashes.
 
1183
  case $ac_val in
 
1184
    */ )
 
1185
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1186
      eval $ac_var=\$ac_val;;
 
1187
  esac
 
1188
  # Be sure to have absolute directory names.
1126
1189
  case $ac_val in
1127
1190
    [\\/$]* | ?:[\\/]* )  continue;;
1128
1191
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1129
1192
  esac
1130
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1131
 
   { (exit 1); exit 1; }; }
 
1193
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1132
1194
done
1133
1195
 
1134
1196
# There might be people who depend on the old broken behavior: `$host'
1142
1204
if test "x$host_alias" != x; then
1143
1205
  if test "x$build_alias" = x; then
1144
1206
    cross_compiling=maybe
1145
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146
 
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1207
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1208
    If a cross compiler is detected then cross compile mode will be used" >&2
1147
1209
  elif test "x$build_alias" != "x$host_alias"; then
1148
1210
    cross_compiling=yes
1149
1211
  fi
1158
1220
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159
1221
ac_ls_di=`ls -di .` &&
1160
1222
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1162
 
   { (exit 1); exit 1; }; }
 
1223
  as_fn_error $? "working directory cannot be determined"
1163
1224
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1165
 
   { (exit 1); exit 1; }; }
 
1225
  as_fn_error $? "pwd does not report name of working directory"
1166
1226
 
1167
1227
 
1168
1228
# Find the source files, if location was not specified.
1169
1229
if test -z "$srcdir"; then
1170
1230
  ac_srcdir_defaulted=yes
1171
1231
  # Try the directory containing this script, then the parent directory.
1172
 
  ac_confdir=`$as_dirname -- "$0" ||
1173
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174
 
         X"$0" : 'X\(//\)[^/]' \| \
1175
 
         X"$0" : 'X\(//\)$' \| \
1176
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1177
 
echo X"$0" |
 
1232
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1233
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1234
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1235
         X"$as_myself" : 'X\(//\)$' \| \
 
1236
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1237
$as_echo X"$as_myself" |
1178
1238
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179
1239
            s//\1/
1180
1240
            q
1201
1261
fi
1202
1262
if test ! -r "$srcdir/$ac_unique_file"; then
1203
1263
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1205
 
   { (exit 1); exit 1; }; }
 
1264
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1206
1265
fi
1207
1266
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208
1267
ac_abs_confdir=`(
1209
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1210
 
   { (exit 1); exit 1; }; }
 
1268
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1211
1269
        pwd)`
1212
1270
# When building in place, set srcdir=.
1213
1271
if test "$ac_abs_confdir" = "$ac_pwd"; then
1233
1291
  # Omit some internal or obsolete options to make the list less imposing.
1234
1292
  # This message is too long to be a string in the A/UX 3.1 sh.
1235
1293
  cat <<_ACEOF
1236
 
\`configure' configures OpenVPN 2.1.3 to adapt to many kinds of systems.
 
1294
\`configure' configures OpenVPN 2.2.0 to adapt to many kinds of systems.
1237
1295
 
1238
1296
Usage: $0 [OPTION]... [VAR=VALUE]...
1239
1297
 
1247
1305
      --help=short        display options specific to this package
1248
1306
      --help=recursive    display the short help of all the included packages
1249
1307
  -V, --version           display version information and exit
1250
 
  -q, --quiet, --silent   do not print \`checking...' messages
 
1308
  -q, --quiet, --silent   do not print \`checking ...' messages
1251
1309
      --cache-file=FILE   cache test results in FILE [disabled]
1252
1310
  -C, --config-cache      alias for \`--cache-file=config.cache'
1253
1311
  -n, --no-create         do not create output files
1255
1313
 
1256
1314
Installation directories:
1257
1315
  --prefix=PREFIX         install architecture-independent files in PREFIX
1258
 
                          [$ac_default_prefix]
 
1316
                          [$ac_default_prefix]
1259
1317
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1260
 
                          [PREFIX]
 
1318
                          [PREFIX]
1261
1319
 
1262
1320
By default, \`make install' will install all the files in
1263
1321
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1267
1325
For better control, use the options below.
1268
1326
 
1269
1327
Fine tuning of the installation directories:
1270
 
  --bindir=DIR           user executables [EPREFIX/bin]
1271
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1272
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1273
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1274
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1275
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1276
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1277
 
  --includedir=DIR       C header files [PREFIX/include]
1278
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1279
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1280
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1281
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1282
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1283
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1284
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/openvpn]
1285
 
  --htmldir=DIR          html documentation [DOCDIR]
1286
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1287
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1288
 
  --psdir=DIR            ps documentation [DOCDIR]
 
1328
  --bindir=DIR            user executables [EPREFIX/bin]
 
1329
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1330
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1331
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1332
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1333
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1334
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1335
  --includedir=DIR        C header files [PREFIX/include]
 
1336
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1337
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1338
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1339
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1340
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1341
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1342
  --docdir=DIR            documentation root [DATAROOTDIR/doc/openvpn]
 
1343
  --htmldir=DIR           html documentation [DOCDIR]
 
1344
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1345
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1346
  --psdir=DIR             ps documentation [DOCDIR]
1289
1347
_ACEOF
1290
1348
 
1291
1349
  cat <<\_ACEOF
1298
1356
System types:
1299
1357
  --build=BUILD     configure for building on BUILD [guessed]
1300
1358
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1301
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
1302
1359
_ACEOF
1303
1360
fi
1304
1361
 
1305
1362
if test -n "$ac_init_help"; then
1306
1363
  case $ac_init_help in
1307
 
     short | recursive ) echo "Configuration of OpenVPN 2.1.3:";;
 
1364
     short | recursive ) echo "Configuration of OpenVPN 2.2.0:";;
1308
1365
   esac
1309
1366
  cat <<\_ACEOF
1310
1367
 
1311
1368
Optional Features:
 
1369
  --disable-option-checking  ignore unrecognized --enable/--with options
1312
1370
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1313
1371
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1314
1372
  --disable-lzo           Disable LZO compression support
1315
1373
  --disable-crypto        Disable OpenSSL crypto support
1316
1374
  --disable-ssl           Disable OpenSSL SSL support for TLS-based key exchange
 
1375
  --enable-x509-alt-username    Enable the --x509-username-field feature
1317
1376
  --disable-multi         Disable client/server support (--mode server + client mode)
1318
1377
  --disable-server        Disable server support only (but retain client support)
1319
1378
  --disable-plugins       Disable plug-in support
 
1379
  --disable-eurephia      Disable support for the eurephia plug-in
1320
1380
  --disable-management    Disable management server support
1321
1381
  --disable-pkcs11        Disable pkcs11 support
1322
1382
  --disable-socks         Disable Socks support
1326
1386
  --disable-port-share    Disable TCP server port-share support (--port-share)
1327
1387
  --disable-debug         Disable debugging support (disable gremlin and verb 7+ messages)
1328
1388
  --enable-small          Enable smaller executable size (disable OCC, usage message, and verb 4 parm list)
1329
 
  --enable-pthread        Enable pthread support (Experimental for OpenVPN 2.0)
1330
1389
  --enable-password-save  Allow --askpass and --auth-user-pass passwords to be read from a file
1331
1390
  --enable-iproute2       Enable support for iproute2
1332
1391
  --disable-def-auth      Disable deferred authentication
1352
1411
  --with-ifconfig-path=PATH   Path to ifconfig tool
1353
1412
  --with-iproute-path=PATH    Path to iproute tool
1354
1413
  --with-route-path=PATH  Path to route tool
 
1414
  --with-netstat-path=PATH  Path to netstat tool
1355
1415
  --with-mem-check=TYPE  Build with debug memory checking, TYPE = dmalloc or valgrind
1356
1416
 
1357
1417
Some influential environment variables:
1360
1420
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1361
1421
              nonstandard directory <lib dir>
1362
1422
  LIBS        libraries to pass to the linker, e.g. -l<library>
1363
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1423
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1364
1424
              you have headers in a nonstandard directory <include dir>
1365
1425
  CPP         C preprocessor
1366
1426
  MAN2HTML    man2html utility
1376
1436
if test "$ac_init_help" = "recursive"; then
1377
1437
  # If there are subdirs, report their specific --help.
1378
1438
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1379
 
    test -d "$ac_dir" || continue
 
1439
    test -d "$ac_dir" ||
 
1440
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1441
      continue
1380
1442
    ac_builddir=.
1381
1443
 
1382
1444
case "$ac_dir" in
1383
1445
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384
1446
*)
1385
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1447
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1386
1448
  # A ".." for each directory in $ac_dir_suffix.
1387
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1449
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1388
1450
  case $ac_top_builddir_sub in
1389
1451
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390
1452
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420
1482
      echo &&
1421
1483
      $SHELL "$ac_srcdir/configure" --help=recursive
1422
1484
    else
1423
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1485
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424
1486
    fi || ac_status=$?
1425
1487
    cd "$ac_pwd" || { ac_status=$?; break; }
1426
1488
  done
1429
1491
test -n "$ac_init_help" && exit $ac_status
1430
1492
if $ac_init_version; then
1431
1493
  cat <<\_ACEOF
1432
 
OpenVPN configure 2.1.3
1433
 
generated by GNU Autoconf 2.61
 
1494
OpenVPN configure 2.2.0
 
1495
generated by GNU Autoconf 2.66
1434
1496
 
1435
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1436
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1497
Copyright (C) 2010 Free Software Foundation, Inc.
1437
1498
This configure script is free software; the Free Software Foundation
1438
1499
gives unlimited permission to copy, distribute and modify it.
1439
1500
_ACEOF
1440
1501
  exit
1441
1502
fi
 
1503
 
 
1504
## ------------------------ ##
 
1505
## Autoconf initialization. ##
 
1506
## ------------------------ ##
 
1507
 
 
1508
# ac_fn_c_try_compile LINENO
 
1509
# --------------------------
 
1510
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1511
ac_fn_c_try_compile ()
 
1512
{
 
1513
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1514
  rm -f conftest.$ac_objext
 
1515
  if { { ac_try="$ac_compile"
 
1516
case "(($ac_try" in
 
1517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1518
  *) ac_try_echo=$ac_try;;
 
1519
esac
 
1520
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1521
$as_echo "$ac_try_echo"; } >&5
 
1522
  (eval "$ac_compile") 2>conftest.err
 
1523
  ac_status=$?
 
1524
  if test -s conftest.err; then
 
1525
    grep -v '^ *+' conftest.err >conftest.er1
 
1526
    cat conftest.er1 >&5
 
1527
    mv -f conftest.er1 conftest.err
 
1528
  fi
 
1529
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1530
  test $ac_status = 0; } && {
 
1531
         test -z "$ac_c_werror_flag" ||
 
1532
         test ! -s conftest.err
 
1533
       } && test -s conftest.$ac_objext; then :
 
1534
  ac_retval=0
 
1535
else
 
1536
  $as_echo "$as_me: failed program was:" >&5
 
1537
sed 's/^/| /' conftest.$ac_ext >&5
 
1538
 
 
1539
        ac_retval=1
 
1540
fi
 
1541
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1542
  as_fn_set_status $ac_retval
 
1543
 
 
1544
} # ac_fn_c_try_compile
 
1545
 
 
1546
# ac_fn_c_try_cpp LINENO
 
1547
# ----------------------
 
1548
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1549
ac_fn_c_try_cpp ()
 
1550
{
 
1551
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1552
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1553
case "(($ac_try" in
 
1554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1555
  *) ac_try_echo=$ac_try;;
 
1556
esac
 
1557
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1558
$as_echo "$ac_try_echo"; } >&5
 
1559
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1560
  ac_status=$?
 
1561
  if test -s conftest.err; then
 
1562
    grep -v '^ *+' conftest.err >conftest.er1
 
1563
    cat conftest.er1 >&5
 
1564
    mv -f conftest.er1 conftest.err
 
1565
  fi
 
1566
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1567
  test $ac_status = 0; } >/dev/null && {
 
1568
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1569
         test ! -s conftest.err
 
1570
       }; then :
 
1571
  ac_retval=0
 
1572
else
 
1573
  $as_echo "$as_me: failed program was:" >&5
 
1574
sed 's/^/| /' conftest.$ac_ext >&5
 
1575
 
 
1576
    ac_retval=1
 
1577
fi
 
1578
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1579
  as_fn_set_status $ac_retval
 
1580
 
 
1581
} # ac_fn_c_try_cpp
 
1582
 
 
1583
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1584
# -------------------------------------------------------
 
1585
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1586
# the include files in INCLUDES and setting the cache variable VAR
 
1587
# accordingly.
 
1588
ac_fn_c_check_header_mongrel ()
 
1589
{
 
1590
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1591
  if eval "test \"\${$3+set}\"" = set; then :
 
1592
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1593
$as_echo_n "checking for $2... " >&6; }
 
1594
if eval "test \"\${$3+set}\"" = set; then :
 
1595
  $as_echo_n "(cached) " >&6
 
1596
fi
 
1597
eval ac_res=\$$3
 
1598
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1599
$as_echo "$ac_res" >&6; }
 
1600
else
 
1601
  # Is the header compilable?
 
1602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1603
$as_echo_n "checking $2 usability... " >&6; }
 
1604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1605
/* end confdefs.h.  */
 
1606
$4
 
1607
#include <$2>
 
1608
_ACEOF
 
1609
if ac_fn_c_try_compile "$LINENO"; then :
 
1610
  ac_header_compiler=yes
 
1611
else
 
1612
  ac_header_compiler=no
 
1613
fi
 
1614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1616
$as_echo "$ac_header_compiler" >&6; }
 
1617
 
 
1618
# Is the header present?
 
1619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1620
$as_echo_n "checking $2 presence... " >&6; }
 
1621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1622
/* end confdefs.h.  */
 
1623
#include <$2>
 
1624
_ACEOF
 
1625
if ac_fn_c_try_cpp "$LINENO"; then :
 
1626
  ac_header_preproc=yes
 
1627
else
 
1628
  ac_header_preproc=no
 
1629
fi
 
1630
rm -f conftest.err conftest.$ac_ext
 
1631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1632
$as_echo "$ac_header_preproc" >&6; }
 
1633
 
 
1634
# So?  What about this header?
 
1635
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1636
  yes:no: )
 
1637
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1638
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1639
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1640
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1641
    ;;
 
1642
  no:yes:* )
 
1643
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1644
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1645
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1646
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1647
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1648
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1649
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1650
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1651
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1652
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1653
( $as_echo "## -------------------------------------------------- ##
 
1654
## Report this to openvpn-users@lists.sourceforge.net ##
 
1655
## -------------------------------------------------- ##"
 
1656
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1657
    ;;
 
1658
esac
 
1659
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1660
$as_echo_n "checking for $2... " >&6; }
 
1661
if eval "test \"\${$3+set}\"" = set; then :
 
1662
  $as_echo_n "(cached) " >&6
 
1663
else
 
1664
  eval "$3=\$ac_header_compiler"
 
1665
fi
 
1666
eval ac_res=\$$3
 
1667
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1668
$as_echo "$ac_res" >&6; }
 
1669
fi
 
1670
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1671
 
 
1672
} # ac_fn_c_check_header_mongrel
 
1673
 
 
1674
# ac_fn_c_try_run LINENO
 
1675
# ----------------------
 
1676
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1677
# that executables *can* be run.
 
1678
ac_fn_c_try_run ()
 
1679
{
 
1680
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1681
  if { { ac_try="$ac_link"
 
1682
case "(($ac_try" in
 
1683
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1684
  *) ac_try_echo=$ac_try;;
 
1685
esac
 
1686
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1687
$as_echo "$ac_try_echo"; } >&5
 
1688
  (eval "$ac_link") 2>&5
 
1689
  ac_status=$?
 
1690
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1691
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1692
  { { case "(($ac_try" in
 
1693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1694
  *) ac_try_echo=$ac_try;;
 
1695
esac
 
1696
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1697
$as_echo "$ac_try_echo"; } >&5
 
1698
  (eval "$ac_try") 2>&5
 
1699
  ac_status=$?
 
1700
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1701
  test $ac_status = 0; }; }; then :
 
1702
  ac_retval=0
 
1703
else
 
1704
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1705
       $as_echo "$as_me: failed program was:" >&5
 
1706
sed 's/^/| /' conftest.$ac_ext >&5
 
1707
 
 
1708
       ac_retval=$ac_status
 
1709
fi
 
1710
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1711
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1712
  as_fn_set_status $ac_retval
 
1713
 
 
1714
} # ac_fn_c_try_run
 
1715
 
 
1716
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1717
# -------------------------------------------------------
 
1718
# Tests whether HEADER exists and can be compiled using the include files in
 
1719
# INCLUDES, setting the cache variable VAR accordingly.
 
1720
ac_fn_c_check_header_compile ()
 
1721
{
 
1722
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1723
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1724
$as_echo_n "checking for $2... " >&6; }
 
1725
if eval "test \"\${$3+set}\"" = set; then :
 
1726
  $as_echo_n "(cached) " >&6
 
1727
else
 
1728
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1729
/* end confdefs.h.  */
 
1730
$4
 
1731
#include <$2>
 
1732
_ACEOF
 
1733
if ac_fn_c_try_compile "$LINENO"; then :
 
1734
  eval "$3=yes"
 
1735
else
 
1736
  eval "$3=no"
 
1737
fi
 
1738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1739
fi
 
1740
eval ac_res=\$$3
 
1741
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1742
$as_echo "$ac_res" >&6; }
 
1743
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1744
 
 
1745
} # ac_fn_c_check_header_compile
 
1746
 
 
1747
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1748
# -------------------------------------------
 
1749
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1750
# variable VAR accordingly.
 
1751
ac_fn_c_check_type ()
 
1752
{
 
1753
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1754
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1755
$as_echo_n "checking for $2... " >&6; }
 
1756
if eval "test \"\${$3+set}\"" = set; then :
 
1757
  $as_echo_n "(cached) " >&6
 
1758
else
 
1759
  eval "$3=no"
 
1760
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1761
/* end confdefs.h.  */
 
1762
$4
 
1763
int
 
1764
main ()
 
1765
{
 
1766
if (sizeof ($2))
 
1767
         return 0;
 
1768
  ;
 
1769
  return 0;
 
1770
}
 
1771
_ACEOF
 
1772
if ac_fn_c_try_compile "$LINENO"; then :
 
1773
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1774
/* end confdefs.h.  */
 
1775
$4
 
1776
int
 
1777
main ()
 
1778
{
 
1779
if (sizeof (($2)))
 
1780
            return 0;
 
1781
  ;
 
1782
  return 0;
 
1783
}
 
1784
_ACEOF
 
1785
if ac_fn_c_try_compile "$LINENO"; then :
 
1786
 
 
1787
else
 
1788
  eval "$3=yes"
 
1789
fi
 
1790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1791
fi
 
1792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1793
fi
 
1794
eval ac_res=\$$3
 
1795
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1796
$as_echo "$ac_res" >&6; }
 
1797
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1798
 
 
1799
} # ac_fn_c_check_type
 
1800
 
 
1801
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
1802
# --------------------------------------------
 
1803
# Tries to find the compile-time value of EXPR in a program that includes
 
1804
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
1805
# computed
 
1806
ac_fn_c_compute_int ()
 
1807
{
 
1808
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1809
  if test "$cross_compiling" = yes; then
 
1810
    # Depending upon the size, compute the lo and hi bounds.
 
1811
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1812
/* end confdefs.h.  */
 
1813
$4
 
1814
int
 
1815
main ()
 
1816
{
 
1817
static int test_array [1 - 2 * !(($2) >= 0)];
 
1818
test_array [0] = 0
 
1819
 
 
1820
  ;
 
1821
  return 0;
 
1822
}
 
1823
_ACEOF
 
1824
if ac_fn_c_try_compile "$LINENO"; then :
 
1825
  ac_lo=0 ac_mid=0
 
1826
  while :; do
 
1827
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1828
/* end confdefs.h.  */
 
1829
$4
 
1830
int
 
1831
main ()
 
1832
{
 
1833
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
1834
test_array [0] = 0
 
1835
 
 
1836
  ;
 
1837
  return 0;
 
1838
}
 
1839
_ACEOF
 
1840
if ac_fn_c_try_compile "$LINENO"; then :
 
1841
  ac_hi=$ac_mid; break
 
1842
else
 
1843
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
1844
                        if test $ac_lo -le $ac_mid; then
 
1845
                          ac_lo= ac_hi=
 
1846
                          break
 
1847
                        fi
 
1848
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
1849
fi
 
1850
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1851
  done
 
1852
else
 
1853
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1854
/* end confdefs.h.  */
 
1855
$4
 
1856
int
 
1857
main ()
 
1858
{
 
1859
static int test_array [1 - 2 * !(($2) < 0)];
 
1860
test_array [0] = 0
 
1861
 
 
1862
  ;
 
1863
  return 0;
 
1864
}
 
1865
_ACEOF
 
1866
if ac_fn_c_try_compile "$LINENO"; then :
 
1867
  ac_hi=-1 ac_mid=-1
 
1868
  while :; do
 
1869
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1870
/* end confdefs.h.  */
 
1871
$4
 
1872
int
 
1873
main ()
 
1874
{
 
1875
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
1876
test_array [0] = 0
 
1877
 
 
1878
  ;
 
1879
  return 0;
 
1880
}
 
1881
_ACEOF
 
1882
if ac_fn_c_try_compile "$LINENO"; then :
 
1883
  ac_lo=$ac_mid; break
 
1884
else
 
1885
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
1886
                        if test $ac_mid -le $ac_hi; then
 
1887
                          ac_lo= ac_hi=
 
1888
                          break
 
1889
                        fi
 
1890
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
1891
fi
 
1892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1893
  done
 
1894
else
 
1895
  ac_lo= ac_hi=
 
1896
fi
 
1897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1898
fi
 
1899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1900
# Binary search between lo and hi bounds.
 
1901
while test "x$ac_lo" != "x$ac_hi"; do
 
1902
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
1903
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1904
/* end confdefs.h.  */
 
1905
$4
 
1906
int
 
1907
main ()
 
1908
{
 
1909
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
1910
test_array [0] = 0
 
1911
 
 
1912
  ;
 
1913
  return 0;
 
1914
}
 
1915
_ACEOF
 
1916
if ac_fn_c_try_compile "$LINENO"; then :
 
1917
  ac_hi=$ac_mid
 
1918
else
 
1919
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
1920
fi
 
1921
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1922
done
 
1923
case $ac_lo in #((
 
1924
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
1925
'') ac_retval=1 ;;
 
1926
esac
 
1927
  else
 
1928
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1929
/* end confdefs.h.  */
 
1930
$4
 
1931
static long int longval () { return $2; }
 
1932
static unsigned long int ulongval () { return $2; }
 
1933
#include <stdio.h>
 
1934
#include <stdlib.h>
 
1935
int
 
1936
main ()
 
1937
{
 
1938
 
 
1939
  FILE *f = fopen ("conftest.val", "w");
 
1940
  if (! f)
 
1941
    return 1;
 
1942
  if (($2) < 0)
 
1943
    {
 
1944
      long int i = longval ();
 
1945
      if (i != ($2))
 
1946
        return 1;
 
1947
      fprintf (f, "%ld", i);
 
1948
    }
 
1949
  else
 
1950
    {
 
1951
      unsigned long int i = ulongval ();
 
1952
      if (i != ($2))
 
1953
        return 1;
 
1954
      fprintf (f, "%lu", i);
 
1955
    }
 
1956
  /* Do not output a trailing newline, as this causes \r\n confusion
 
1957
     on some platforms.  */
 
1958
  return ferror (f) || fclose (f) != 0;
 
1959
 
 
1960
  ;
 
1961
  return 0;
 
1962
}
 
1963
_ACEOF
 
1964
if ac_fn_c_try_run "$LINENO"; then :
 
1965
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
1966
else
 
1967
  ac_retval=1
 
1968
fi
 
1969
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
1970
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
1971
rm -f conftest.val
 
1972
 
 
1973
  fi
 
1974
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1975
  as_fn_set_status $ac_retval
 
1976
 
 
1977
} # ac_fn_c_compute_int
 
1978
 
 
1979
# ac_fn_c_try_link LINENO
 
1980
# -----------------------
 
1981
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1982
ac_fn_c_try_link ()
 
1983
{
 
1984
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1985
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1986
  if { { ac_try="$ac_link"
 
1987
case "(($ac_try" in
 
1988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1989
  *) ac_try_echo=$ac_try;;
 
1990
esac
 
1991
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1992
$as_echo "$ac_try_echo"; } >&5
 
1993
  (eval "$ac_link") 2>conftest.err
 
1994
  ac_status=$?
 
1995
  if test -s conftest.err; then
 
1996
    grep -v '^ *+' conftest.err >conftest.er1
 
1997
    cat conftest.er1 >&5
 
1998
    mv -f conftest.er1 conftest.err
 
1999
  fi
 
2000
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2001
  test $ac_status = 0; } && {
 
2002
         test -z "$ac_c_werror_flag" ||
 
2003
         test ! -s conftest.err
 
2004
       } && test -s conftest$ac_exeext && {
 
2005
         test "$cross_compiling" = yes ||
 
2006
         $as_test_x conftest$ac_exeext
 
2007
       }; then :
 
2008
  ac_retval=0
 
2009
else
 
2010
  $as_echo "$as_me: failed program was:" >&5
 
2011
sed 's/^/| /' conftest.$ac_ext >&5
 
2012
 
 
2013
        ac_retval=1
 
2014
fi
 
2015
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
2016
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
2017
  # interfere with the next link command; also delete a directory that is
 
2018
  # left behind by Apple's compiler.  We do this before executing the actions.
 
2019
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
2020
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2021
  as_fn_set_status $ac_retval
 
2022
 
 
2023
} # ac_fn_c_try_link
 
2024
 
 
2025
# ac_fn_c_check_func LINENO FUNC VAR
 
2026
# ----------------------------------
 
2027
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
2028
ac_fn_c_check_func ()
 
2029
{
 
2030
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2031
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2032
$as_echo_n "checking for $2... " >&6; }
 
2033
if eval "test \"\${$3+set}\"" = set; then :
 
2034
  $as_echo_n "(cached) " >&6
 
2035
else
 
2036
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2037
/* end confdefs.h.  */
 
2038
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
2039
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
2040
#define $2 innocuous_$2
 
2041
 
 
2042
/* System header to define __stub macros and hopefully few prototypes,
 
2043
    which can conflict with char $2 (); below.
 
2044
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2045
    <limits.h> exists even on freestanding compilers.  */
 
2046
 
 
2047
#ifdef __STDC__
 
2048
# include <limits.h>
 
2049
#else
 
2050
# include <assert.h>
 
2051
#endif
 
2052
 
 
2053
#undef $2
 
2054
 
 
2055
/* Override any GCC internal prototype to avoid an error.
 
2056
   Use char because int might match the return type of a GCC
 
2057
   builtin and then its argument prototype would still apply.  */
 
2058
#ifdef __cplusplus
 
2059
extern "C"
 
2060
#endif
 
2061
char $2 ();
 
2062
/* The GNU C library defines this for functions which it implements
 
2063
    to always fail with ENOSYS.  Some functions are actually named
 
2064
    something starting with __ and the normal name is an alias.  */
 
2065
#if defined __stub_$2 || defined __stub___$2
 
2066
choke me
 
2067
#endif
 
2068
 
 
2069
int
 
2070
main ()
 
2071
{
 
2072
return $2 ();
 
2073
  ;
 
2074
  return 0;
 
2075
}
 
2076
_ACEOF
 
2077
if ac_fn_c_try_link "$LINENO"; then :
 
2078
  eval "$3=yes"
 
2079
else
 
2080
  eval "$3=no"
 
2081
fi
 
2082
rm -f core conftest.err conftest.$ac_objext \
 
2083
    conftest$ac_exeext conftest.$ac_ext
 
2084
fi
 
2085
eval ac_res=\$$3
 
2086
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2087
$as_echo "$ac_res" >&6; }
 
2088
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2089
 
 
2090
} # ac_fn_c_check_func
1442
2091
cat >config.log <<_ACEOF
1443
2092
This file contains any messages produced by compilers while
1444
2093
running configure, to aid debugging if configure makes a mistake.
1445
2094
 
1446
 
It was created by OpenVPN $as_me 2.1.3, which was
1447
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
2095
It was created by OpenVPN $as_me 2.2.0, which was
 
2096
generated by GNU Autoconf 2.66.  Invocation command line was
1448
2097
 
1449
2098
  $ $0 $@
1450
2099
 
1480
2129
do
1481
2130
  IFS=$as_save_IFS
1482
2131
  test -z "$as_dir" && as_dir=.
1483
 
  echo "PATH: $as_dir"
1484
 
done
 
2132
    $as_echo "PATH: $as_dir"
 
2133
  done
1485
2134
IFS=$as_save_IFS
1486
2135
 
1487
2136
} >&5
1515
2164
    | -silent | --silent | --silen | --sile | --sil)
1516
2165
      continue ;;
1517
2166
    *\'*)
1518
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2167
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1519
2168
    esac
1520
2169
    case $ac_pass in
1521
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2170
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1522
2171
    2)
1523
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2172
      as_fn_append ac_configure_args1 " '$ac_arg'"
1524
2173
      if test $ac_must_keep_next = true; then
1525
2174
        ac_must_keep_next=false # Got value, back to normal.
1526
2175
      else
1536
2185
          -* ) ac_must_keep_next=true ;;
1537
2186
        esac
1538
2187
      fi
1539
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
2188
      as_fn_append ac_configure_args " '$ac_arg'"
1540
2189
      ;;
1541
2190
    esac
1542
2191
  done
1543
2192
done
1544
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1545
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2193
{ ac_configure_args0=; unset ac_configure_args0;}
 
2194
{ ac_configure_args1=; unset ac_configure_args1;}
1546
2195
 
1547
2196
# When interrupted or exit'd, cleanup temporary files, and complete
1548
2197
# config.log.  We remove comments because anyway the quotes in there
1554
2203
  {
1555
2204
    echo
1556
2205
 
1557
 
    cat <<\_ASBOX
1558
 
## ---------------- ##
 
2206
    $as_echo "## ---------------- ##
1559
2207
## Cache variables. ##
1560
 
## ---------------- ##
1561
 
_ASBOX
 
2208
## ---------------- ##"
1562
2209
    echo
1563
2210
    # The following way of writing the cache mishandles newlines in values,
1564
2211
(
1567
2214
    case $ac_val in #(
1568
2215
    *${as_nl}*)
1569
2216
      case $ac_var in #(
1570
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1571
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
2217
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2218
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1572
2219
      esac
1573
2220
      case $ac_var in #(
1574
2221
      _ | IFS | as_nl) ;; #(
1575
 
      *) $as_unset $ac_var ;;
 
2222
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2223
      *) { eval $ac_var=; unset $ac_var;} ;;
1576
2224
      esac ;;
1577
2225
    esac
1578
2226
  done
1591
2239
)
1592
2240
    echo
1593
2241
 
1594
 
    cat <<\_ASBOX
1595
 
## ----------------- ##
 
2242
    $as_echo "## ----------------- ##
1596
2243
## Output variables. ##
1597
 
## ----------------- ##
1598
 
_ASBOX
 
2244
## ----------------- ##"
1599
2245
    echo
1600
2246
    for ac_var in $ac_subst_vars
1601
2247
    do
1602
2248
      eval ac_val=\$$ac_var
1603
2249
      case $ac_val in
1604
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2250
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605
2251
      esac
1606
 
      echo "$ac_var='\''$ac_val'\''"
 
2252
      $as_echo "$ac_var='\''$ac_val'\''"
1607
2253
    done | sort
1608
2254
    echo
1609
2255
 
1610
2256
    if test -n "$ac_subst_files"; then
1611
 
      cat <<\_ASBOX
1612
 
## ------------------- ##
 
2257
      $as_echo "## ------------------- ##
1613
2258
## File substitutions. ##
1614
 
## ------------------- ##
1615
 
_ASBOX
 
2259
## ------------------- ##"
1616
2260
      echo
1617
2261
      for ac_var in $ac_subst_files
1618
2262
      do
1619
2263
        eval ac_val=\$$ac_var
1620
2264
        case $ac_val in
1621
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2265
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622
2266
        esac
1623
 
        echo "$ac_var='\''$ac_val'\''"
 
2267
        $as_echo "$ac_var='\''$ac_val'\''"
1624
2268
      done | sort
1625
2269
      echo
1626
2270
    fi
1627
2271
 
1628
2272
    if test -s confdefs.h; then
1629
 
      cat <<\_ASBOX
1630
 
## ----------- ##
 
2273
      $as_echo "## ----------- ##
1631
2274
## confdefs.h. ##
1632
 
## ----------- ##
1633
 
_ASBOX
 
2275
## ----------- ##"
1634
2276
      echo
1635
2277
      cat confdefs.h
1636
2278
      echo
1637
2279
    fi
1638
2280
    test "$ac_signal" != 0 &&
1639
 
      echo "$as_me: caught signal $ac_signal"
1640
 
    echo "$as_me: exit $exit_status"
 
2281
      $as_echo "$as_me: caught signal $ac_signal"
 
2282
    $as_echo "$as_me: exit $exit_status"
1641
2283
  } >&5
1642
2284
  rm -f core *.core core.conftest.* &&
1643
2285
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1644
2286
    exit $exit_status
1645
2287
' 0
1646
2288
for ac_signal in 1 2 13 15; do
1647
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2289
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1648
2290
done
1649
2291
ac_signal=0
1650
2292
 
1651
2293
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1652
2294
rm -f -r conftest* confdefs.h
1653
2295
 
 
2296
$as_echo "/* confdefs.h */" > confdefs.h
 
2297
 
1654
2298
# Predefined preprocessor variables.
1655
2299
 
1656
2300
cat >>confdefs.h <<_ACEOF
1657
2301
#define PACKAGE_NAME "$PACKAGE_NAME"
1658
2302
_ACEOF
1659
2303
 
1660
 
 
1661
2304
cat >>confdefs.h <<_ACEOF
1662
2305
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1663
2306
_ACEOF
1664
2307
 
1665
 
 
1666
2308
cat >>confdefs.h <<_ACEOF
1667
2309
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1668
2310
_ACEOF
1669
2311
 
1670
 
 
1671
2312
cat >>confdefs.h <<_ACEOF
1672
2313
#define PACKAGE_STRING "$PACKAGE_STRING"
1673
2314
_ACEOF
1674
2315
 
1675
 
 
1676
2316
cat >>confdefs.h <<_ACEOF
1677
2317
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1678
2318
_ACEOF
1679
2319
 
 
2320
cat >>confdefs.h <<_ACEOF
 
2321
#define PACKAGE_URL "$PACKAGE_URL"
 
2322
_ACEOF
 
2323
 
1680
2324
 
1681
2325
# Let the site file select an alternate cache file if it wants to.
1682
 
# Prefer explicitly selected file to automatically selected ones.
 
2326
# Prefer an explicitly selected file to automatically selected ones.
 
2327
ac_site_file1=NONE
 
2328
ac_site_file2=NONE
1683
2329
if test -n "$CONFIG_SITE"; then
1684
 
  set x "$CONFIG_SITE"
 
2330
  # We do not want a PATH search for config.site.
 
2331
  case $CONFIG_SITE in #((
 
2332
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2333
    */*) ac_site_file1=$CONFIG_SITE;;
 
2334
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2335
  esac
1685
2336
elif test "x$prefix" != xNONE; then
1686
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
2337
  ac_site_file1=$prefix/share/config.site
 
2338
  ac_site_file2=$prefix/etc/config.site
1687
2339
else
1688
 
  set x "$ac_default_prefix/share/config.site" \
1689
 
        "$ac_default_prefix/etc/config.site"
 
2340
  ac_site_file1=$ac_default_prefix/share/config.site
 
2341
  ac_site_file2=$ac_default_prefix/etc/config.site
1690
2342
fi
1691
 
shift
1692
 
for ac_site_file
 
2343
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1693
2344
do
1694
 
  if test -r "$ac_site_file"; then
1695
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1696
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2345
  test "x$ac_site_file" = xNONE && continue
 
2346
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2347
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2348
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1697
2349
    sed 's/^/| /' "$ac_site_file" >&5
1698
 
    . "$ac_site_file"
 
2350
    . "$ac_site_file" \
 
2351
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2352
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2353
as_fn_error $? "failed to load site script $ac_site_file
 
2354
See \`config.log' for more details" "$LINENO" 5; }
1699
2355
  fi
1700
2356
done
1701
2357
 
1702
2358
if test -r "$cache_file"; then
1703
 
  # Some versions of bash will fail to source /dev/null (special
1704
 
  # files actually), so we avoid doing that.
1705
 
  if test -f "$cache_file"; then
1706
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1707
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2359
  # Some versions of bash will fail to source /dev/null (special files
 
2360
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2361
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2362
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2363
$as_echo "$as_me: loading cache $cache_file" >&6;}
1708
2364
    case $cache_file in
1709
2365
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1710
2366
      *)                      . "./$cache_file";;
1711
2367
    esac
1712
2368
  fi
1713
2369
else
1714
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1715
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2370
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2371
$as_echo "$as_me: creating cache $cache_file" >&6;}
1716
2372
  >$cache_file
1717
2373
fi
1718
2374
 
1726
2382
  eval ac_new_val=\$ac_env_${ac_var}_value
1727
2383
  case $ac_old_set,$ac_new_set in
1728
2384
    set,)
1729
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1730
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2385
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2386
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1731
2387
      ac_cache_corrupted=: ;;
1732
2388
    ,set)
1733
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1734
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2389
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2390
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1735
2391
      ac_cache_corrupted=: ;;
1736
2392
    ,);;
1737
2393
    *)
1738
2394
      if test "x$ac_old_val" != "x$ac_new_val"; then
1739
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1740
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1741
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1742
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1743
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1744
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1745
 
        ac_cache_corrupted=:
 
2395
        # differences in whitespace do not lead to failure.
 
2396
        ac_old_val_w=`echo x $ac_old_val`
 
2397
        ac_new_val_w=`echo x $ac_new_val`
 
2398
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2399
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2400
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2401
          ac_cache_corrupted=:
 
2402
        else
 
2403
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2404
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2405
          eval $ac_var=\$ac_old_val
 
2406
        fi
 
2407
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2408
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2409
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2410
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1746
2411
      fi;;
1747
2412
  esac
1748
2413
  # Pass precious variables to config.status.
1749
2414
  if test "$ac_new_set" = set; then
1750
2415
    case $ac_new_val in
1751
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2416
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1752
2417
    *) ac_arg=$ac_var=$ac_new_val ;;
1753
2418
    esac
1754
2419
    case " $ac_configure_args " in
1755
2420
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1756
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2421
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1757
2422
    esac
1758
2423
  fi
1759
2424
done
1760
2425
if $ac_cache_corrupted; then
1761
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1762
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1763
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1764
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1765
 
   { (exit 1); exit 1; }; }
 
2426
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2427
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2428
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2429
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2430
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1766
2431
fi
1767
 
 
1768
 
 
1769
 
 
1770
 
 
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
 
 
1776
 
 
1777
 
 
1778
 
 
1779
 
 
1780
 
 
1781
 
 
1782
 
 
1783
 
 
1784
 
 
1785
 
 
1786
 
 
1787
 
 
1788
 
 
1789
 
 
1790
 
 
 
2432
## -------------------- ##
 
2433
## Main body of script. ##
 
2434
## -------------------- ##
1791
2435
 
1792
2436
ac_ext=c
1793
2437
ac_cpp='$CPP $CPPFLAGS'
1817
2461
  fi
1818
2462
done
1819
2463
if test -z "$ac_aux_dir"; then
1820
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1821
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1822
 
   { (exit 1); exit 1; }; }
 
2464
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1823
2465
fi
1824
2466
 
1825
2467
# These three variables are undocumented and unsupported,
1833
2475
 
1834
2476
# Make sure we can run config.sub.
1835
2477
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1836
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1837
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1838
 
   { (exit 1); exit 1; }; }
 
2478
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1839
2479
 
1840
 
{ echo "$as_me:$LINENO: checking build system type" >&5
1841
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1842
 
if test "${ac_cv_build+set}" = set; then
1843
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2481
$as_echo_n "checking build system type... " >&6; }
 
2482
if test "${ac_cv_build+set}" = set; then :
 
2483
  $as_echo_n "(cached) " >&6
1844
2484
else
1845
2485
  ac_build_alias=$build_alias
1846
2486
test "x$ac_build_alias" = x &&
1847
2487
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1848
2488
test "x$ac_build_alias" = x &&
1849
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1850
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1851
 
   { (exit 1); exit 1; }; }
 
2489
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1852
2490
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1853
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1854
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1855
 
   { (exit 1); exit 1; }; }
 
2491
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1856
2492
 
1857
2493
fi
1858
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1859
 
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2495
$as_echo "$ac_cv_build" >&6; }
1860
2496
case $ac_cv_build in
1861
2497
*-*-*) ;;
1862
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1863
 
echo "$as_me: error: invalid value of canonical build" >&2;}
1864
 
   { (exit 1); exit 1; }; };;
 
2498
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1865
2499
esac
1866
2500
build=$ac_cv_build
1867
2501
ac_save_IFS=$IFS; IFS='-'
1877
2511
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1878
2512
 
1879
2513
 
1880
 
{ echo "$as_me:$LINENO: checking host system type" >&5
1881
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1882
 
if test "${ac_cv_host+set}" = set; then
1883
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2515
$as_echo_n "checking host system type... " >&6; }
 
2516
if test "${ac_cv_host+set}" = set; then :
 
2517
  $as_echo_n "(cached) " >&6
1884
2518
else
1885
2519
  if test "x$host_alias" = x; then
1886
2520
  ac_cv_host=$ac_cv_build
1887
2521
else
1888
2522
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1889
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1890
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1891
 
   { (exit 1); exit 1; }; }
 
2523
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1892
2524
fi
1893
2525
 
1894
2526
fi
1895
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1896
 
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2528
$as_echo "$ac_cv_host" >&6; }
1897
2529
case $ac_cv_host in
1898
2530
*-*-*) ;;
1899
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1900
 
echo "$as_me: error: invalid value of canonical host" >&2;}
1901
 
   { (exit 1); exit 1; }; };;
 
2531
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1902
2532
esac
1903
2533
host=$ac_cv_host
1904
2534
ac_save_IFS=$IFS; IFS='-'
1914
2544
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1915
2545
 
1916
2546
 
1917
 
{ echo "$as_me:$LINENO: checking target system type" >&5
1918
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1919
 
if test "${ac_cv_target+set}" = set; then
1920
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1921
 
else
1922
 
  if test "x$target_alias" = x; then
1923
 
  ac_cv_target=$ac_cv_host
1924
 
else
1925
 
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1926
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1927
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1928
 
   { (exit 1); exit 1; }; }
1929
 
fi
1930
 
 
1931
 
fi
1932
 
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1933
 
echo "${ECHO_T}$ac_cv_target" >&6; }
1934
 
case $ac_cv_target in
1935
 
*-*-*) ;;
1936
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1937
 
echo "$as_me: error: invalid value of canonical target" >&2;}
1938
 
   { (exit 1); exit 1; }; };;
1939
 
esac
1940
 
target=$ac_cv_target
1941
 
ac_save_IFS=$IFS; IFS='-'
1942
 
set x $ac_cv_target
1943
 
shift
1944
 
target_cpu=$1
1945
 
target_vendor=$2
1946
 
shift; shift
1947
 
# Remember, the first character of IFS is used to create $*,
1948
 
# except with old shells:
1949
 
target_os=$*
1950
 
IFS=$ac_save_IFS
1951
 
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1952
 
 
1953
 
 
1954
 
# The aliases save the names the user supplied, while $host etc.
1955
 
# will get canonicalized.
1956
 
test -n "$target_alias" &&
1957
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1958
 
    NONENONEs,x,x, &&
1959
 
  program_prefix=${target_alias}-
1960
 
am__api_version='1.10'
 
2547
am__api_version='1.11'
1961
2548
 
1962
2549
# Find a good install program.  We prefer a C program (faster),
1963
2550
# so one script is as good as another.  But avoid the broken or
1972
2559
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1973
2560
# OS/2's system install, which has a completely different semantic
1974
2561
# ./install, which can be erroneously created by make from ./install.sh.
1975
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2562
# Reject install programs that cannot install multiple files.
 
2563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2564
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1977
2565
if test -z "$INSTALL"; then
1978
 
if test "${ac_cv_path_install+set}" = set; then
1979
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2566
if test "${ac_cv_path_install+set}" = set; then :
 
2567
  $as_echo_n "(cached) " >&6
1980
2568
else
1981
2569
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982
2570
for as_dir in $PATH
1983
2571
do
1984
2572
  IFS=$as_save_IFS
1985
2573
  test -z "$as_dir" && as_dir=.
1986
 
  # Account for people who put trailing slashes in PATH elements.
1987
 
case $as_dir/ in
1988
 
  ./ | .// | /cC/* | \
 
2574
    # Account for people who put trailing slashes in PATH elements.
 
2575
case $as_dir/ in #((
 
2576
  ./ | .// | /[cC]/* | \
1989
2577
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2578
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1991
2579
  /usr/ucb/* ) ;;
1992
2580
  *)
1993
2581
    # OSF1 and SCO ODT 3.0 have their own names for install.
2005
2593
            # program-specific install script used by HP pwplus--don't use.
2006
2594
            :
2007
2595
          else
2008
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2009
 
            break 3
 
2596
            rm -rf conftest.one conftest.two conftest.dir
 
2597
            echo one > conftest.one
 
2598
            echo two > conftest.two
 
2599
            mkdir conftest.dir
 
2600
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2601
              test -s conftest.one && test -s conftest.two &&
 
2602
              test -s conftest.dir/conftest.one &&
 
2603
              test -s conftest.dir/conftest.two
 
2604
            then
 
2605
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2606
              break 3
 
2607
            fi
2010
2608
          fi
2011
2609
        fi
2012
2610
      done
2013
2611
    done
2014
2612
    ;;
2015
2613
esac
2016
 
done
 
2614
 
 
2615
  done
2017
2616
IFS=$as_save_IFS
2018
2617
 
 
2618
rm -rf conftest.one conftest.two conftest.dir
2019
2619
 
2020
2620
fi
2021
2621
  if test "${ac_cv_path_install+set}" = set; then
2028
2628
    INSTALL=$ac_install_sh
2029
2629
  fi
2030
2630
fi
2031
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2032
 
echo "${ECHO_T}$INSTALL" >&6; }
 
2631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2632
$as_echo "$INSTALL" >&6; }
2033
2633
 
2034
2634
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035
2635
# It thinks the first close brace ends the variable substitution.
2039
2639
 
2040
2640
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2041
2641
 
2042
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2043
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2643
$as_echo_n "checking whether build environment is sane... " >&6; }
2044
2644
# Just in case
2045
2645
sleep 1
2046
2646
echo timestamp > conftest.file
 
2647
# Reject unsafe characters in $srcdir or the absolute working directory
 
2648
# name.  Accept space and tab only in the latter.
 
2649
am_lf='
 
2650
'
 
2651
case `pwd` in
 
2652
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2653
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2654
esac
 
2655
case $srcdir in
 
2656
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2657
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2658
esac
 
2659
 
2047
2660
# Do `set' in a subshell so we don't clobber the current shell's
2048
2661
# arguments.  Must try -L first in case configure is actually a
2049
2662
# symlink; some systems play weird games with the mod time of symlinks
2050
2663
# (eg FreeBSD returns the mod time of the symlink's containing
2051
2664
# directory).
2052
2665
if (
2053
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2666
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2054
2667
   if test "$*" = "X"; then
2055
2668
      # -L didn't work.
2056
 
      set X `ls -t $srcdir/configure conftest.file`
 
2669
      set X `ls -t "$srcdir/configure" conftest.file`
2057
2670
   fi
2058
2671
   rm -f conftest.file
2059
2672
   if test "$*" != "X $srcdir/configure conftest.file" \
2063
2676
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2064
2677
      # broken ls alias from the environment.  This has actually
2065
2678
      # happened.  Such a system could not be considered "sane".
2066
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2067
 
alias in your environment" >&5
2068
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2069
 
alias in your environment" >&2;}
2070
 
   { (exit 1); exit 1; }; }
 
2679
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2680
alias in your environment" "$LINENO" 5
2071
2681
   fi
2072
2682
 
2073
2683
   test "$2" = conftest.file
2076
2686
   # Ok.
2077
2687
   :
2078
2688
else
2079
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080
 
Check your system clock" >&5
2081
 
echo "$as_me: error: newly created file is older than distributed files!
2082
 
Check your system clock" >&2;}
2083
 
   { (exit 1); exit 1; }; }
 
2689
   as_fn_error $? "newly created file is older than distributed files!
 
2690
Check your system clock" "$LINENO" 5
2084
2691
fi
2085
 
{ echo "$as_me:$LINENO: result: yes" >&5
2086
 
echo "${ECHO_T}yes" >&6; }
 
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2693
$as_echo "yes" >&6; }
2087
2694
test "$program_prefix" != NONE &&
2088
2695
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2089
2696
# Use a double $ so make ignores it.
2090
2697
test "$program_suffix" != NONE &&
2091
2698
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2092
 
# Double any \ or $.  echo might interpret backslashes.
 
2699
# Double any \ or $.
2093
2700
# By default was `s,x,x', remove it if useless.
2094
 
cat <<\_ACEOF >conftest.sed
2095
 
s/[\\$]/&&/g;s/;s,x,x,$//
2096
 
_ACEOF
2097
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2098
 
rm -f conftest.sed
 
2701
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2702
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2099
2703
 
2100
2704
# expand $ac_aux_dir to an absolute path
2101
2705
am_aux_dir=`cd $ac_aux_dir && pwd`
2102
2706
 
2103
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2707
if test x"${MISSING+set}" != xset; then
 
2708
  case $am_aux_dir in
 
2709
  *\ * | *\     *)
 
2710
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2711
  *)
 
2712
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2713
  esac
 
2714
fi
2104
2715
# Use eval to expand $SHELL
2105
2716
if eval "$MISSING --run true"; then
2106
2717
  am_missing_run="$MISSING --run "
2107
2718
else
2108
2719
  am_missing_run=
2109
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2111
 
fi
2112
 
 
2113
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2114
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2720
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2721
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2722
fi
 
2723
 
 
2724
if test x"${install_sh}" != xset; then
 
2725
  case $am_aux_dir in
 
2726
  *\ * | *\     *)
 
2727
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2728
  *)
 
2729
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2730
  esac
 
2731
fi
 
2732
 
 
2733
# Installed binaries are usually stripped using `strip' when the user
 
2734
# run `make install-strip'.  However `strip' might not be the right
 
2735
# tool to use in cross-compilation environments, therefore Automake
 
2736
# will honor the `STRIP' environment variable to overrule this program.
 
2737
if test "$cross_compiling" != no; then
 
2738
  if test -n "$ac_tool_prefix"; then
 
2739
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2740
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2742
$as_echo_n "checking for $ac_word... " >&6; }
 
2743
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2744
  $as_echo_n "(cached) " >&6
 
2745
else
 
2746
  if test -n "$STRIP"; then
 
2747
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2748
else
 
2749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2750
for as_dir in $PATH
 
2751
do
 
2752
  IFS=$as_save_IFS
 
2753
  test -z "$as_dir" && as_dir=.
 
2754
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2755
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2756
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2757
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2758
    break 2
 
2759
  fi
 
2760
done
 
2761
  done
 
2762
IFS=$as_save_IFS
 
2763
 
 
2764
fi
 
2765
fi
 
2766
STRIP=$ac_cv_prog_STRIP
 
2767
if test -n "$STRIP"; then
 
2768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2769
$as_echo "$STRIP" >&6; }
 
2770
else
 
2771
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2772
$as_echo "no" >&6; }
 
2773
fi
 
2774
 
 
2775
 
 
2776
fi
 
2777
if test -z "$ac_cv_prog_STRIP"; then
 
2778
  ac_ct_STRIP=$STRIP
 
2779
  # Extract the first word of "strip", so it can be a program name with args.
 
2780
set dummy strip; ac_word=$2
 
2781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2782
$as_echo_n "checking for $ac_word... " >&6; }
 
2783
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2784
  $as_echo_n "(cached) " >&6
 
2785
else
 
2786
  if test -n "$ac_ct_STRIP"; then
 
2787
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2788
else
 
2789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2790
for as_dir in $PATH
 
2791
do
 
2792
  IFS=$as_save_IFS
 
2793
  test -z "$as_dir" && as_dir=.
 
2794
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2795
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2796
    ac_cv_prog_ac_ct_STRIP="strip"
 
2797
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2798
    break 2
 
2799
  fi
 
2800
done
 
2801
  done
 
2802
IFS=$as_save_IFS
 
2803
 
 
2804
fi
 
2805
fi
 
2806
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2807
if test -n "$ac_ct_STRIP"; then
 
2808
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2809
$as_echo "$ac_ct_STRIP" >&6; }
 
2810
else
 
2811
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2812
$as_echo "no" >&6; }
 
2813
fi
 
2814
 
 
2815
  if test "x$ac_ct_STRIP" = x; then
 
2816
    STRIP=":"
 
2817
  else
 
2818
    case $cross_compiling:$ac_tool_warned in
 
2819
yes:)
 
2820
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2821
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2822
ac_tool_warned=yes ;;
 
2823
esac
 
2824
    STRIP=$ac_ct_STRIP
 
2825
  fi
 
2826
else
 
2827
  STRIP="$ac_cv_prog_STRIP"
 
2828
fi
 
2829
 
 
2830
fi
 
2831
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2832
 
 
2833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2834
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2115
2835
if test -z "$MKDIR_P"; then
2116
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2117
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2836
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2837
  $as_echo_n "(cached) " >&6
2118
2838
else
2119
2839
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120
2840
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2121
2841
do
2122
2842
  IFS=$as_save_IFS
2123
2843
  test -z "$as_dir" && as_dir=.
2124
 
  for ac_prog in mkdir gmkdir; do
 
2844
    for ac_prog in mkdir gmkdir; do
2125
2845
         for ac_exec_ext in '' $ac_executable_extensions; do
2126
2846
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2127
2847
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2133
2853
           esac
2134
2854
         done
2135
2855
       done
2136
 
done
 
2856
  done
2137
2857
IFS=$as_save_IFS
2138
2858
 
2139
2859
fi
2140
2860
 
 
2861
  test -d ./--version && rmdir ./--version
2141
2862
  if test "${ac_cv_path_mkdir+set}" = set; then
2142
2863
    MKDIR_P="$ac_cv_path_mkdir -p"
2143
2864
  else
2145
2866
    # value for MKDIR_P within a source directory, because that will
2146
2867
    # break other packages using the cache if that directory is
2147
2868
    # removed, or if the value is a relative name.
2148
 
    test -d ./--version && rmdir ./--version
2149
2869
    MKDIR_P="$ac_install_sh -d"
2150
2870
  fi
2151
2871
fi
2152
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2153
 
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2873
$as_echo "$MKDIR_P" >&6; }
2154
2874
 
2155
2875
mkdir_p="$MKDIR_P"
2156
2876
case $mkdir_p in
2162
2882
do
2163
2883
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2164
2884
set dummy $ac_prog; ac_word=$2
2165
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2166
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2167
 
if test "${ac_cv_prog_AWK+set}" = set; then
2168
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2886
$as_echo_n "checking for $ac_word... " >&6; }
 
2887
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2888
  $as_echo_n "(cached) " >&6
2169
2889
else
2170
2890
  if test -n "$AWK"; then
2171
2891
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2175
2895
do
2176
2896
  IFS=$as_save_IFS
2177
2897
  test -z "$as_dir" && as_dir=.
2178
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2898
    for ac_exec_ext in '' $ac_executable_extensions; do
2179
2899
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2180
2900
    ac_cv_prog_AWK="$ac_prog"
2181
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2901
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2182
2902
    break 2
2183
2903
  fi
2184
2904
done
2185
 
done
 
2905
  done
2186
2906
IFS=$as_save_IFS
2187
2907
 
2188
2908
fi
2189
2909
fi
2190
2910
AWK=$ac_cv_prog_AWK
2191
2911
if test -n "$AWK"; then
2192
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2193
 
echo "${ECHO_T}$AWK" >&6; }
 
2912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2913
$as_echo "$AWK" >&6; }
2194
2914
else
2195
 
  { echo "$as_me:$LINENO: result: no" >&5
2196
 
echo "${ECHO_T}no" >&6; }
 
2915
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2916
$as_echo "no" >&6; }
2197
2917
fi
2198
2918
 
2199
2919
 
2200
2920
  test -n "$AWK" && break
2201
2921
done
2202
2922
 
2203
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2204
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2205
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2206
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2207
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2924
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2925
set x ${MAKE-make}
 
2926
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2927
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
2928
  $as_echo_n "(cached) " >&6
2208
2929
else
2209
2930
  cat >conftest.make <<\_ACEOF
2210
2931
SHELL = /bin/sh
2211
2932
all:
2212
2933
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2213
2934
_ACEOF
2214
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2935
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2215
2936
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2216
2937
  *@@@%%%=?*=@@@%%%*)
2217
2938
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2221
2942
rm -f conftest.make
2222
2943
fi
2223
2944
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2224
 
  { echo "$as_me:$LINENO: result: yes" >&5
2225
 
echo "${ECHO_T}yes" >&6; }
 
2945
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2946
$as_echo "yes" >&6; }
2226
2947
  SET_MAKE=
2227
2948
else
2228
 
  { echo "$as_me:$LINENO: result: no" >&5
2229
 
echo "${ECHO_T}no" >&6; }
 
2949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2950
$as_echo "no" >&6; }
2230
2951
  SET_MAKE="MAKE=${MAKE-make}"
2231
2952
fi
2232
2953
 
2245
2966
  am__isrc=' -I$(srcdir)'
2246
2967
  # test to see if srcdir already configured
2247
2968
  if test -f $srcdir/config.status; then
2248
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2249
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2250
 
   { (exit 1); exit 1; }; }
 
2969
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2251
2970
  fi
2252
2971
fi
2253
2972
 
2291
3010
 
2292
3011
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2293
3012
 
2294
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2295
 
 
2296
 
# Installed binaries are usually stripped using `strip' when the user
2297
 
# run `make install-strip'.  However `strip' might not be the right
2298
 
# tool to use in cross-compilation environments, therefore Automake
2299
 
# will honor the `STRIP' environment variable to overrule this program.
2300
 
if test "$cross_compiling" != no; then
2301
 
  if test -n "$ac_tool_prefix"; then
2302
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2303
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2304
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2305
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2307
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2308
 
else
2309
 
  if test -n "$STRIP"; then
2310
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311
 
else
2312
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313
 
for as_dir in $PATH
2314
 
do
2315
 
  IFS=$as_save_IFS
2316
 
  test -z "$as_dir" && as_dir=.
2317
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2318
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2320
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321
 
    break 2
2322
 
  fi
2323
 
done
2324
 
done
2325
 
IFS=$as_save_IFS
2326
 
 
2327
 
fi
2328
 
fi
2329
 
STRIP=$ac_cv_prog_STRIP
2330
 
if test -n "$STRIP"; then
2331
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2332
 
echo "${ECHO_T}$STRIP" >&6; }
2333
 
else
2334
 
  { echo "$as_me:$LINENO: result: no" >&5
2335
 
echo "${ECHO_T}no" >&6; }
2336
 
fi
2337
 
 
2338
 
 
2339
 
fi
2340
 
if test -z "$ac_cv_prog_STRIP"; then
2341
 
  ac_ct_STRIP=$STRIP
2342
 
  # Extract the first word of "strip", so it can be a program name with args.
2343
 
set dummy strip; ac_word=$2
2344
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2345
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2347
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2348
 
else
2349
 
  if test -n "$ac_ct_STRIP"; then
2350
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2351
 
else
2352
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353
 
for as_dir in $PATH
2354
 
do
2355
 
  IFS=$as_save_IFS
2356
 
  test -z "$as_dir" && as_dir=.
2357
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2358
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359
 
    ac_cv_prog_ac_ct_STRIP="strip"
2360
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361
 
    break 2
2362
 
  fi
2363
 
done
2364
 
done
2365
 
IFS=$as_save_IFS
2366
 
 
2367
 
fi
2368
 
fi
2369
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2370
 
if test -n "$ac_ct_STRIP"; then
2371
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2372
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2373
 
else
2374
 
  { echo "$as_me:$LINENO: result: no" >&5
2375
 
echo "${ECHO_T}no" >&6; }
2376
 
fi
2377
 
 
2378
 
  if test "x$ac_ct_STRIP" = x; then
2379
 
    STRIP=":"
2380
 
  else
2381
 
    case $cross_compiling:$ac_tool_warned in
2382
 
yes:)
2383
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2384
 
whose name does not start with the host triplet.  If you think this
2385
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2386
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2387
 
whose name does not start with the host triplet.  If you think this
2388
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2389
 
ac_tool_warned=yes ;;
2390
 
esac
2391
 
    STRIP=$ac_ct_STRIP
2392
 
  fi
2393
 
else
2394
 
  STRIP="$ac_cv_prog_STRIP"
2395
 
fi
2396
 
 
2397
 
fi
2398
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2399
 
 
2400
3013
# We need awk for the "check" target.  The system "awk" is bad on
2401
3014
# some platforms.
2402
3015
# Always define AMTAR for backward compatibility.
2412
3025
 
2413
3026
 
2414
3027
# Check whether --with-cygwin-native was given.
2415
 
if test "${with_cygwin_native+set}" = set; then
 
3028
if test "${with_cygwin_native+set}" = set; then :
2416
3029
  withval=$with_cygwin_native; CYGWIN_NATIVE="${withval}"
2417
3030
else
2418
3031
  CYGWIN_NATIVE="no"
2427
3040
                WIN32="yes"
2428
3041
                cross_compiling="yes"
2429
3042
        ;;
2430
 
        *-cygwin*)
2431
 
                { echo "$as_me:$LINENO: checking cygwin mode to use" >&5
2432
 
echo $ECHO_N "checking cygwin mode to use... $ECHO_C" >&6; }
 
3043
        *-*-cygwin*)
 
3044
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin mode to use" >&5
 
3045
$as_echo_n "checking cygwin mode to use... " >&6; }
2433
3046
                if test "${CYGWIN_NATIVE}" = "yes"; then
2434
 
                        { echo "$as_me:$LINENO: result: Using native win32" >&5
2435
 
echo "${ECHO_T}Using native win32" >&6; }
 
3047
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using native win32" >&5
 
3048
$as_echo "Using native win32" >&6; }
2436
3049
                        CFLAGS="${CFLAGS} -mno-cygwin"
2437
3050
                        CYGWIN="yes"
2438
3051
                        WIN32="yes"
2439
3052
                else
2440
 
                        { echo "$as_me:$LINENO: result: Using cygwin" >&5
2441
 
echo "${ECHO_T}Using cygwin" >&6; }
 
3053
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cygwin" >&5
 
3054
$as_echo "Using cygwin" >&6; }
2442
3055
                fi
2443
3056
        ;;
2444
3057
        *)
2446
3059
esac
2447
3060
 
2448
3061
# Check whether --enable-lzo was given.
2449
 
if test "${enable_lzo+set}" = set; then
 
3062
if test "${enable_lzo+set}" = set; then :
2450
3063
  enableval=$enable_lzo; LZO="$enableval"
2451
3064
else
2452
3065
  LZO="yes"
2455
3068
 
2456
3069
 
2457
3070
# Check whether --enable-crypto was given.
2458
 
if test "${enable_crypto+set}" = set; then
 
3071
if test "${enable_crypto+set}" = set; then :
2459
3072
  enableval=$enable_crypto; CRYPTO="$enableval"
2460
3073
else
2461
3074
  CRYPTO="yes"
2464
3077
 
2465
3078
 
2466
3079
# Check whether --enable-ssl was given.
2467
 
if test "${enable_ssl+set}" = set; then
 
3080
if test "${enable_ssl+set}" = set; then :
2468
3081
  enableval=$enable_ssl; SSL="$enableval"
2469
3082
else
2470
3083
  SSL="yes"
2472
3085
fi
2473
3086
 
2474
3087
 
 
3088
# Check whether --enable-x509-alt-username was given.
 
3089
if test "${enable_x509_alt_username+set}" = set; then :
 
3090
  enableval=$enable_x509_alt_username; X509ALTUSERNAME="$enableval"
 
3091
else
 
3092
  X509ALTUSERNAME="no"
 
3093
 
 
3094
fi
 
3095
 
 
3096
 
2475
3097
# Check whether --enable-multi was given.
2476
 
if test "${enable_multi+set}" = set; then
 
3098
if test "${enable_multi+set}" = set; then :
2477
3099
  enableval=$enable_multi; MULTI="$enableval"
2478
3100
else
2479
3101
  MULTI="yes"
2482
3104
 
2483
3105
 
2484
3106
# Check whether --enable-server was given.
2485
 
if test "${enable_server+set}" = set; then
 
3107
if test "${enable_server+set}" = set; then :
2486
3108
  enableval=$enable_server; MULTI_SERVER="$enableval"
2487
3109
else
2488
3110
  MULTI_SERVER="yes"
2491
3113
 
2492
3114
 
2493
3115
# Check whether --enable-plugins was given.
2494
 
if test "${enable_plugins+set}" = set; then
 
3116
if test "${enable_plugins+set}" = set; then :
2495
3117
  enableval=$enable_plugins; PLUGINS="$enableval"
2496
3118
else
2497
3119
  PLUGINS="yes"
2499
3121
fi
2500
3122
 
2501
3123
 
 
3124
# Check whether --enable-eurephia was given.
 
3125
if test "${enable_eurephia+set}" = set; then :
 
3126
  enableval=$enable_eurephia; EUREPHIA="$enableval"
 
3127
else
 
3128
  EUREPHIA="yes"
 
3129
 
 
3130
fi
 
3131
 
 
3132
 
2502
3133
# Check whether --enable-management was given.
2503
 
if test "${enable_management+set}" = set; then
 
3134
if test "${enable_management+set}" = set; then :
2504
3135
  enableval=$enable_management; MANAGEMENT="$enableval"
2505
3136
else
2506
3137
  MANAGEMENT="yes"
2509
3140
 
2510
3141
 
2511
3142
# Check whether --enable-pkcs11 was given.
2512
 
if test "${enable_pkcs11+set}" = set; then
 
3143
if test "${enable_pkcs11+set}" = set; then :
2513
3144
  enableval=$enable_pkcs11; PKCS11="$enableval"
2514
3145
else
2515
3146
  PKCS11="yes"
2518
3149
 
2519
3150
 
2520
3151
# Check whether --enable-socks was given.
2521
 
if test "${enable_socks+set}" = set; then
 
3152
if test "${enable_socks+set}" = set; then :
2522
3153
  enableval=$enable_socks; SOCKS="$enableval"
2523
3154
else
2524
3155
  SOCKS="yes"
2527
3158
 
2528
3159
 
2529
3160
# Check whether --enable-http was given.
2530
 
if test "${enable_http+set}" = set; then
 
3161
if test "${enable_http+set}" = set; then :
2531
3162
  enableval=$enable_http; HTTP_PROXY="$enableval"
2532
3163
else
2533
3164
  HTTP_PROXY="yes"
2536
3167
 
2537
3168
 
2538
3169
# Check whether --enable-fragment was given.
2539
 
if test "${enable_fragment+set}" = set; then
 
3170
if test "${enable_fragment+set}" = set; then :
2540
3171
  enableval=$enable_fragment; FRAGMENT="$enableval"
2541
3172
else
2542
3173
  FRAGMENT="yes"
2545
3176
 
2546
3177
 
2547
3178
# Check whether --enable-multihome was given.
2548
 
if test "${enable_multihome+set}" = set; then
 
3179
if test "${enable_multihome+set}" = set; then :
2549
3180
  enableval=$enable_multihome; MULTIHOME="$enableval"
2550
3181
else
2551
3182
  MULTIHOME="yes"
2554
3185
 
2555
3186
 
2556
3187
# Check whether --enable-port-share was given.
2557
 
if test "${enable_port_share+set}" = set; then
 
3188
if test "${enable_port_share+set}" = set; then :
2558
3189
  enableval=$enable_port_share; PORT_SHARE="$enableval"
2559
3190
else
2560
3191
  PORT_SHARE="yes"
2563
3194
 
2564
3195
 
2565
3196
# Check whether --enable-debug was given.
2566
 
if test "${enable_debug+set}" = set; then
 
3197
if test "${enable_debug+set}" = set; then :
2567
3198
  enableval=$enable_debug; DEBUG="$enableval"
2568
3199
else
2569
3200
  DEBUG="yes"
2572
3203
 
2573
3204
 
2574
3205
# Check whether --enable-small was given.
2575
 
if test "${enable_small+set}" = set; then
 
3206
if test "${enable_small+set}" = set; then :
2576
3207
  enableval=$enable_small; SMALL="$enableval"
2577
3208
else
2578
3209
  SMALL="no"
2580
3211
fi
2581
3212
 
2582
3213
 
2583
 
# Check whether --enable-pthread was given.
2584
 
if test "${enable_pthread+set}" = set; then
2585
 
  enableval=$enable_pthread; PTHREAD="$enableval"
2586
 
else
2587
 
  PTHREAD="no"
2588
 
 
2589
 
fi
2590
 
 
2591
 
 
2592
3214
# Check whether --enable-password-save was given.
2593
 
if test "${enable_password_save+set}" = set; then
 
3215
if test "${enable_password_save+set}" = set; then :
2594
3216
  enableval=$enable_password_save; PASSWORD_SAVE="$enableval"
2595
3217
else
2596
3218
  PASSWORD_SAVE="no"
2599
3221
 
2600
3222
 
2601
3223
# Check whether --enable-iproute2 was given.
2602
 
if test "${enable_iproute2+set}" = set; then
 
3224
if test "${enable_iproute2+set}" = set; then :
2603
3225
  enableval=$enable_iproute2; test $enableval = "yes" &&
2604
 
cat >>confdefs.h <<\_ACEOF
2605
 
#define CONFIG_FEATURE_IPROUTE 1
2606
 
_ACEOF
 
3226
$as_echo "#define CONFIG_FEATURE_IPROUTE 1" >>confdefs.h
2607
3227
 
2608
3228
 
2609
3229
fi
2610
3230
 
2611
3231
 
2612
3232
# Check whether --enable-def-auth was given.
2613
 
if test "${enable_def_auth+set}" = set; then
 
3233
if test "${enable_def_auth+set}" = set; then :
2614
3234
  enableval=$enable_def_auth; DEF_AUTH="$enableval"
2615
3235
else
2616
3236
  DEF_AUTH="yes"
2619
3239
 
2620
3240
 
2621
3241
# Check whether --enable-pf was given.
2622
 
if test "${enable_pf+set}" = set; then
 
3242
if test "${enable_pf+set}" = set; then :
2623
3243
  enableval=$enable_pf; PF="$enableval"
2624
3244
else
2625
3245
  PF="yes"
2628
3248
 
2629
3249
 
2630
3250
# Check whether --enable-strict was given.
2631
 
if test "${enable_strict+set}" = set; then
 
3251
if test "${enable_strict+set}" = set; then :
2632
3252
  enableval=$enable_strict; STRICT="$enableval"
2633
3253
else
2634
3254
  STRICT="no"
2637
3257
 
2638
3258
 
2639
3259
# Check whether --enable-pedantic was given.
2640
 
if test "${enable_pedantic+set}" = set; then
 
3260
if test "${enable_pedantic+set}" = set; then :
2641
3261
  enableval=$enable_pedantic; PEDANTIC="$enableval"
2642
3262
else
2643
3263
  PEDANTIC="no"
2646
3266
 
2647
3267
 
2648
3268
# Check whether --enable-profiling was given.
2649
 
if test "${enable_profiling+set}" = set; then
 
3269
if test "${enable_profiling+set}" = set; then :
2650
3270
  enableval=$enable_profiling; PROFILE="$enableval"
2651
3271
else
2652
3272
  PROFILE="no"
2655
3275
 
2656
3276
 
2657
3277
# Check whether --enable-strict-options was given.
2658
 
if test "${enable_strict_options+set}" = set; then
 
3278
if test "${enable_strict_options+set}" = set; then :
2659
3279
  enableval=$enable_strict_options; STRICT_OPTIONS="$enableval"
2660
3280
else
2661
3281
  STRICT_OPTIONS="no"
2664
3284
 
2665
3285
 
2666
3286
# Check whether --enable-selinux was given.
2667
 
if test "${enable_selinux+set}" = set; then
 
3287
if test "${enable_selinux+set}" = set; then :
2668
3288
  enableval=$enable_selinux; SELINUX="$enableval"
2669
3289
else
2670
3290
  SELINUX="yes"
2674
3294
 
2675
3295
 
2676
3296
# Check whether --with-ssl-headers was given.
2677
 
if test "${with_ssl_headers+set}" = set; then
 
3297
if test "${with_ssl_headers+set}" = set; then :
2678
3298
  withval=$with_ssl_headers; CS_HDR_DIR="$withval"
2679
3299
   CPPFLAGS="$CPPFLAGS -I$withval"
2680
3300
 
2683
3303
 
2684
3304
 
2685
3305
# Check whether --with-ssl-lib was given.
2686
 
if test "${with_ssl_lib+set}" = set; then
 
3306
if test "${with_ssl_lib+set}" = set; then :
2687
3307
  withval=$with_ssl_lib; LDFLAGS="$LDFLAGS -L$withval"
2688
3308
 
2689
3309
fi
2691
3311
 
2692
3312
 
2693
3313
# Check whether --with-lzo-headers was given.
2694
 
if test "${with_lzo_headers+set}" = set; then
 
3314
if test "${with_lzo_headers+set}" = set; then :
2695
3315
  withval=$with_lzo_headers; LZO_HDR_DIR="$withval"
2696
3316
   CPPFLAGS="$CPPFLAGS -I$withval"
2697
3317
 
2700
3320
 
2701
3321
 
2702
3322
# Check whether --with-lzo-lib was given.
2703
 
if test "${with_lzo_lib+set}" = set; then
 
3323
if test "${with_lzo_lib+set}" = set; then :
2704
3324
  withval=$with_lzo_lib; LDFLAGS="$LDFLAGS -L$withval"
2705
3325
 
2706
3326
fi
2708
3328
 
2709
3329
 
2710
3330
# Check whether --with-pkcs11-helper-headers was given.
2711
 
if test "${with_pkcs11_helper_headers+set}" = set; then
 
3331
if test "${with_pkcs11_helper_headers+set}" = set; then :
2712
3332
  withval=$with_pkcs11_helper_headers; PKCS11_HELPER_HDR_DIR="$withval"
2713
3333
   CPPFLAGS="$CPPFLAGS -I$withval"
2714
3334
 
2717
3337
 
2718
3338
 
2719
3339
# Check whether --with-pkcs11-helper-lib was given.
2720
 
if test "${with_pkcs11_helper_lib+set}" = set; then
 
3340
if test "${with_pkcs11_helper_lib+set}" = set; then :
2721
3341
  withval=$with_pkcs11_helper_lib; LDFLAGS="$LDFLAGS -L$withval"
2722
3342
 
2723
3343
fi
2725
3345
 
2726
3346
 
2727
3347
# Check whether --with-ifconfig-path was given.
2728
 
if test "${with_ifconfig_path+set}" = set; then
 
3348
if test "${with_ifconfig_path+set}" = set; then :
2729
3349
  withval=$with_ifconfig_path; IFCONFIG="$withval"
2730
3350
else
2731
3351
  # Extract the first word of "ifconfig", so it can be a program name with args.
2732
3352
set dummy ifconfig; ac_word=$2
2733
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2734
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735
 
if test "${ac_cv_path_IFCONFIG+set}" = set; then
2736
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3354
$as_echo_n "checking for $ac_word... " >&6; }
 
3355
if test "${ac_cv_path_IFCONFIG+set}" = set; then :
 
3356
  $as_echo_n "(cached) " >&6
2737
3357
else
2738
3358
  case $IFCONFIG in
2739
3359
  [\\/]* | ?:[\\/]*)
2746
3366
do
2747
3367
  IFS=$as_save_IFS
2748
3368
  test -z "$as_dir" && as_dir=.
2749
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3369
    for ac_exec_ext in '' $ac_executable_extensions; do
2750
3370
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751
3371
    ac_cv_path_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
2752
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3372
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753
3373
    break 2
2754
3374
  fi
2755
3375
done
2756
 
done
 
3376
  done
2757
3377
IFS=$as_save_IFS
2758
3378
 
2759
3379
  test -z "$ac_cv_path_IFCONFIG" && ac_cv_path_IFCONFIG="ifconfig"
2762
3382
fi
2763
3383
IFCONFIG=$ac_cv_path_IFCONFIG
2764
3384
if test -n "$IFCONFIG"; then
2765
 
  { echo "$as_me:$LINENO: result: $IFCONFIG" >&5
2766
 
echo "${ECHO_T}$IFCONFIG" >&6; }
 
3385
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
 
3386
$as_echo "$IFCONFIG" >&6; }
2767
3387
else
2768
 
  { echo "$as_me:$LINENO: result: no" >&5
2769
 
echo "${ECHO_T}no" >&6; }
 
3388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3389
$as_echo "no" >&6; }
2770
3390
fi
2771
3391
 
2772
3392
 
2781
3401
 
2782
3402
 
2783
3403
# Check whether --with-iproute-path was given.
2784
 
if test "${with_iproute_path+set}" = set; then
 
3404
if test "${with_iproute_path+set}" = set; then :
2785
3405
  withval=$with_iproute_path; IPROUTE="$withval"
2786
3406
else
2787
3407
  # Extract the first word of "ip", so it can be a program name with args.
2788
3408
set dummy ip; ac_word=$2
2789
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2790
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2791
 
if test "${ac_cv_path_IPROUTE+set}" = set; then
2792
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3410
$as_echo_n "checking for $ac_word... " >&6; }
 
3411
if test "${ac_cv_path_IPROUTE+set}" = set; then :
 
3412
  $as_echo_n "(cached) " >&6
2793
3413
else
2794
3414
  case $IPROUTE in
2795
3415
  [\\/]* | ?:[\\/]*)
2802
3422
do
2803
3423
  IFS=$as_save_IFS
2804
3424
  test -z "$as_dir" && as_dir=.
2805
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3425
    for ac_exec_ext in '' $ac_executable_extensions; do
2806
3426
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807
3427
    ac_cv_path_IPROUTE="$as_dir/$ac_word$ac_exec_ext"
2808
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3428
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809
3429
    break 2
2810
3430
  fi
2811
3431
done
2812
 
done
 
3432
  done
2813
3433
IFS=$as_save_IFS
2814
3434
 
2815
3435
  test -z "$ac_cv_path_IPROUTE" && ac_cv_path_IPROUTE="ip"
2818
3438
fi
2819
3439
IPROUTE=$ac_cv_path_IPROUTE
2820
3440
if test -n "$IPROUTE"; then
2821
 
  { echo "$as_me:$LINENO: result: $IPROUTE" >&5
2822
 
echo "${ECHO_T}$IPROUTE" >&6; }
 
3441
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
 
3442
$as_echo "$IPROUTE" >&6; }
2823
3443
else
2824
 
  { echo "$as_me:$LINENO: result: no" >&5
2825
 
echo "${ECHO_T}no" >&6; }
 
3444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3445
$as_echo "no" >&6; }
2826
3446
fi
2827
3447
 
2828
3448
 
2838
3458
 
2839
3459
 
2840
3460
# Check whether --with-route-path was given.
2841
 
if test "${with_route_path+set}" = set; then
 
3461
if test "${with_route_path+set}" = set; then :
2842
3462
  withval=$with_route_path; ROUTE="$withval"
2843
3463
else
2844
3464
  # Extract the first word of "route", so it can be a program name with args.
2845
3465
set dummy route; ac_word=$2
2846
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2847
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2848
 
if test "${ac_cv_path_ROUTE+set}" = set; then
2849
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3467
$as_echo_n "checking for $ac_word... " >&6; }
 
3468
if test "${ac_cv_path_ROUTE+set}" = set; then :
 
3469
  $as_echo_n "(cached) " >&6
2850
3470
else
2851
3471
  case $ROUTE in
2852
3472
  [\\/]* | ?:[\\/]*)
2859
3479
do
2860
3480
  IFS=$as_save_IFS
2861
3481
  test -z "$as_dir" && as_dir=.
2862
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3482
    for ac_exec_ext in '' $ac_executable_extensions; do
2863
3483
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864
3484
    ac_cv_path_ROUTE="$as_dir/$ac_word$ac_exec_ext"
2865
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3485
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866
3486
    break 2
2867
3487
  fi
2868
3488
done
2869
 
done
 
3489
  done
2870
3490
IFS=$as_save_IFS
2871
3491
 
2872
3492
  test -z "$ac_cv_path_ROUTE" && ac_cv_path_ROUTE="route"
2875
3495
fi
2876
3496
ROUTE=$ac_cv_path_ROUTE
2877
3497
if test -n "$ROUTE"; then
2878
 
  { echo "$as_me:$LINENO: result: $ROUTE" >&5
2879
 
echo "${ECHO_T}$ROUTE" >&6; }
 
3498
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
 
3499
$as_echo "$ROUTE" >&6; }
2880
3500
else
2881
 
  { echo "$as_me:$LINENO: result: no" >&5
2882
 
echo "${ECHO_T}no" >&6; }
 
3501
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3502
$as_echo "no" >&6; }
2883
3503
fi
2884
3504
 
2885
3505
 
2893
3513
 
2894
3514
 
2895
3515
 
 
3516
# Check whether --with-netstat-path was given.
 
3517
if test "${with_netstat_path+set}" = set; then :
 
3518
  withval=$with_netstat_path; NETSTAT="$withval"
 
3519
else
 
3520
  # Extract the first word of "netstat", so it can be a program name with args.
 
3521
set dummy netstat; ac_word=$2
 
3522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3523
$as_echo_n "checking for $ac_word... " >&6; }
 
3524
if test "${ac_cv_path_NETSTAT+set}" = set; then :
 
3525
  $as_echo_n "(cached) " >&6
 
3526
else
 
3527
  case $NETSTAT in
 
3528
  [\\/]* | ?:[\\/]*)
 
3529
  ac_cv_path_NETSTAT="$NETSTAT" # Let the user override the test with a path.
 
3530
  ;;
 
3531
  *)
 
3532
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3533
as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
 
3534
for as_dir in $as_dummy
 
3535
do
 
3536
  IFS=$as_save_IFS
 
3537
  test -z "$as_dir" && as_dir=.
 
3538
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3539
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3540
    ac_cv_path_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
 
3541
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3542
    break 2
 
3543
  fi
 
3544
done
 
3545
  done
 
3546
IFS=$as_save_IFS
 
3547
 
 
3548
  test -z "$ac_cv_path_NETSTAT" && ac_cv_path_NETSTAT="netstat"
 
3549
  ;;
 
3550
esac
 
3551
fi
 
3552
NETSTAT=$ac_cv_path_NETSTAT
 
3553
if test -n "$NETSTAT"; then
 
3554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
 
3555
$as_echo "$NETSTAT" >&6; }
 
3556
else
 
3557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3558
$as_echo "no" >&6; }
 
3559
fi
 
3560
 
 
3561
 
 
3562
 
 
3563
fi
 
3564
 
 
3565
 
 
3566
cat >>confdefs.h <<_ACEOF
 
3567
#define NETSTAT_PATH "$NETSTAT"
 
3568
_ACEOF
 
3569
 
 
3570
 
 
3571
 
2896
3572
# Check whether --with-mem-check was given.
2897
 
if test "${with_mem_check+set}" = set; then
 
3573
if test "${with_mem_check+set}" = set; then :
2898
3574
  withval=$with_mem_check; MEMCHECK="$withval"
2899
3575
 
2900
3576
fi
2902
3578
 
2903
3579
CPPFLAGS="$CPPFLAGS -I${srcdir}"
2904
3580
 
2905
 
openvpn_target=$target
2906
 
if test $target_alias; then
2907
 
  openvpn_target=$target_alias
 
3581
openvpn_host=$host
 
3582
if test $host_alias; then
 
3583
  openvpn_host=$host_alias
2908
3584
fi
2909
3585
 
2910
3586
cat >>confdefs.h <<_ACEOF
2911
 
#define TARGET_ALIAS "$openvpn_target"
2912
 
_ACEOF
2913
 
 
2914
 
case "$target" in
2915
 
*linux*)
2916
 
 
2917
 
cat >>confdefs.h <<\_ACEOF
2918
 
#define TARGET_LINUX 1
2919
 
_ACEOF
 
3587
#define TARGET_ALIAS "$openvpn_host"
 
3588
_ACEOF
 
3589
 
 
3590
case "$host" in
 
3591
*-*-linux*)
 
3592
 
 
3593
$as_echo "#define TARGET_LINUX 1" >>confdefs.h
2920
3594
 
2921
3595
                if test -z $CS_HDR_DIR && test "$CRYPTO" = "yes"; then
2922
3596
           CPPFLAGS="$CPPFLAGS $(pkg-config --cflags openssl 2>/dev/null)"
2923
3597
        fi
2924
3598
        ;;
2925
 
*solaris*)
2926
 
 
2927
 
cat >>confdefs.h <<\_ACEOF
2928
 
#define TARGET_SOLARIS 1
2929
 
_ACEOF
2930
 
 
2931
 
        ;;
2932
 
*openbsd*)
2933
 
 
2934
 
cat >>confdefs.h <<\_ACEOF
2935
 
#define TARGET_OPENBSD 1
2936
 
_ACEOF
2937
 
 
2938
 
        ;;
2939
 
*freebsd*)
2940
 
 
2941
 
cat >>confdefs.h <<\_ACEOF
2942
 
#define TARGET_FREEBSD 1
2943
 
_ACEOF
2944
 
 
2945
 
        ;;
2946
 
*netbsd*)
2947
 
 
2948
 
cat >>confdefs.h <<\_ACEOF
2949
 
#define TARGET_NETBSD 1
2950
 
_ACEOF
2951
 
 
2952
 
        ;;
2953
 
*darwin*)
2954
 
 
2955
 
cat >>confdefs.h <<\_ACEOF
2956
 
#define TARGET_DARWIN 1
2957
 
_ACEOF
 
3599
*-*-solaris*)
 
3600
 
 
3601
$as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
 
3602
 
 
3603
        ;;
 
3604
*-*-openbsd*)
 
3605
 
 
3606
$as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
 
3607
 
 
3608
        ;;
 
3609
*-*-freebsd*)
 
3610
 
 
3611
$as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
 
3612
 
 
3613
        ;;
 
3614
*-*-netbsd*)
 
3615
 
 
3616
$as_echo "#define TARGET_NETBSD 1" >>confdefs.h
 
3617
 
 
3618
        ;;
 
3619
*-*-darwin*)
 
3620
 
 
3621
$as_echo "#define TARGET_DARWIN 1" >>confdefs.h
2958
3622
 
2959
3623
        CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
2960
3624
        ;;
2961
 
*mingw*)
2962
 
 
2963
 
cat >>confdefs.h <<\_ACEOF
2964
 
#define TARGET_WIN32 1
2965
 
_ACEOF
2966
 
 
 
3625
*-mingw*)
 
3626
 
 
3627
$as_echo "#define TARGET_WIN32 1" >>confdefs.h
 
3628
 
 
3629
        CPPFLAGS="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
2967
3630
 
2968
3631
  LIBS="-lgdi32 $LIBS"
2969
3632
 
2983
3646
  LIBS="-lwinmm $LIBS"
2984
3647
 
2985
3648
        ;;
2986
 
*dragonfly*)
 
3649
*-*-dragonfly*)
2987
3650
 
2988
 
cat >>confdefs.h <<\_ACEOF
2989
 
#define TARGET_DRAGONFLY 1
2990
 
_ACEOF
 
3651
$as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
2991
3652
 
2992
3653
        ;;
2993
3654
 
3001
3662
if test -n "$ac_tool_prefix"; then
3002
3663
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003
3664
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3005
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3006
 
if test "${ac_cv_prog_CC+set}" = set; then
3007
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3666
$as_echo_n "checking for $ac_word... " >&6; }
 
3667
if test "${ac_cv_prog_CC+set}" = set; then :
 
3668
  $as_echo_n "(cached) " >&6
3008
3669
else
3009
3670
  if test -n "$CC"; then
3010
3671
  ac_cv_prog_CC="$CC" # Let the user override the test.
3014
3675
do
3015
3676
  IFS=$as_save_IFS
3016
3677
  test -z "$as_dir" && as_dir=.
3017
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3678
    for ac_exec_ext in '' $ac_executable_extensions; do
3018
3679
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019
3680
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3681
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021
3682
    break 2
3022
3683
  fi
3023
3684
done
3024
 
done
 
3685
  done
3025
3686
IFS=$as_save_IFS
3026
3687
 
3027
3688
fi
3028
3689
fi
3029
3690
CC=$ac_cv_prog_CC
3030
3691
if test -n "$CC"; then
3031
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3032
 
echo "${ECHO_T}$CC" >&6; }
 
3692
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3693
$as_echo "$CC" >&6; }
3033
3694
else
3034
 
  { echo "$as_me:$LINENO: result: no" >&5
3035
 
echo "${ECHO_T}no" >&6; }
 
3695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3696
$as_echo "no" >&6; }
3036
3697
fi
3037
3698
 
3038
3699
 
3041
3702
  ac_ct_CC=$CC
3042
3703
  # Extract the first word of "gcc", so it can be a program name with args.
3043
3704
set dummy gcc; ac_word=$2
3044
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3045
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3706
$as_echo_n "checking for $ac_word... " >&6; }
 
3707
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3708
  $as_echo_n "(cached) " >&6
3048
3709
else
3049
3710
  if test -n "$ac_ct_CC"; then
3050
3711
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054
3715
do
3055
3716
  IFS=$as_save_IFS
3056
3717
  test -z "$as_dir" && as_dir=.
3057
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3718
    for ac_exec_ext in '' $ac_executable_extensions; do
3058
3719
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059
3720
    ac_cv_prog_ac_ct_CC="gcc"
3060
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3721
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061
3722
    break 2
3062
3723
  fi
3063
3724
done
3064
 
done
 
3725
  done
3065
3726
IFS=$as_save_IFS
3066
3727
 
3067
3728
fi
3068
3729
fi
3069
3730
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070
3731
if test -n "$ac_ct_CC"; then
3071
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3732
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3733
$as_echo "$ac_ct_CC" >&6; }
3073
3734
else
3074
 
  { echo "$as_me:$LINENO: result: no" >&5
3075
 
echo "${ECHO_T}no" >&6; }
 
3735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3736
$as_echo "no" >&6; }
3076
3737
fi
3077
3738
 
3078
3739
  if test "x$ac_ct_CC" = x; then
3080
3741
  else
3081
3742
    case $cross_compiling:$ac_tool_warned in
3082
3743
yes:)
3083
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3084
 
whose name does not start with the host triplet.  If you think this
3085
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3086
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3087
 
whose name does not start with the host triplet.  If you think this
3088
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3744
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3745
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089
3746
ac_tool_warned=yes ;;
3090
3747
esac
3091
3748
    CC=$ac_ct_CC
3098
3755
          if test -n "$ac_tool_prefix"; then
3099
3756
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3100
3757
set dummy ${ac_tool_prefix}cc; ac_word=$2
3101
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3102
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3103
 
if test "${ac_cv_prog_CC+set}" = set; then
3104
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3759
$as_echo_n "checking for $ac_word... " >&6; }
 
3760
if test "${ac_cv_prog_CC+set}" = set; then :
 
3761
  $as_echo_n "(cached) " >&6
3105
3762
else
3106
3763
  if test -n "$CC"; then
3107
3764
  ac_cv_prog_CC="$CC" # Let the user override the test.
3111
3768
do
3112
3769
  IFS=$as_save_IFS
3113
3770
  test -z "$as_dir" && as_dir=.
3114
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3771
    for ac_exec_ext in '' $ac_executable_extensions; do
3115
3772
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116
3773
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3117
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3774
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118
3775
    break 2
3119
3776
  fi
3120
3777
done
3121
 
done
 
3778
  done
3122
3779
IFS=$as_save_IFS
3123
3780
 
3124
3781
fi
3125
3782
fi
3126
3783
CC=$ac_cv_prog_CC
3127
3784
if test -n "$CC"; then
3128
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3129
 
echo "${ECHO_T}$CC" >&6; }
 
3785
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3786
$as_echo "$CC" >&6; }
3130
3787
else
3131
 
  { echo "$as_me:$LINENO: result: no" >&5
3132
 
echo "${ECHO_T}no" >&6; }
 
3788
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3789
$as_echo "no" >&6; }
3133
3790
fi
3134
3791
 
3135
3792
 
3138
3795
if test -z "$CC"; then
3139
3796
  # Extract the first word of "cc", so it can be a program name with args.
3140
3797
set dummy cc; ac_word=$2
3141
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3142
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3143
 
if test "${ac_cv_prog_CC+set}" = set; then
3144
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3799
$as_echo_n "checking for $ac_word... " >&6; }
 
3800
if test "${ac_cv_prog_CC+set}" = set; then :
 
3801
  $as_echo_n "(cached) " >&6
3145
3802
else
3146
3803
  if test -n "$CC"; then
3147
3804
  ac_cv_prog_CC="$CC" # Let the user override the test.
3152
3809
do
3153
3810
  IFS=$as_save_IFS
3154
3811
  test -z "$as_dir" && as_dir=.
3155
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3812
    for ac_exec_ext in '' $ac_executable_extensions; do
3156
3813
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157
3814
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3158
3815
       ac_prog_rejected=yes
3159
3816
       continue
3160
3817
     fi
3161
3818
    ac_cv_prog_CC="cc"
3162
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3819
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163
3820
    break 2
3164
3821
  fi
3165
3822
done
3166
 
done
 
3823
  done
3167
3824
IFS=$as_save_IFS
3168
3825
 
3169
3826
if test $ac_prog_rejected = yes; then
3182
3839
fi
3183
3840
CC=$ac_cv_prog_CC
3184
3841
if test -n "$CC"; then
3185
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3186
 
echo "${ECHO_T}$CC" >&6; }
 
3842
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3843
$as_echo "$CC" >&6; }
3187
3844
else
3188
 
  { echo "$as_me:$LINENO: result: no" >&5
3189
 
echo "${ECHO_T}no" >&6; }
 
3845
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3846
$as_echo "no" >&6; }
3190
3847
fi
3191
3848
 
3192
3849
 
3197
3854
  do
3198
3855
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3199
3856
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3200
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3201
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3202
 
if test "${ac_cv_prog_CC+set}" = set; then
3203
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3858
$as_echo_n "checking for $ac_word... " >&6; }
 
3859
if test "${ac_cv_prog_CC+set}" = set; then :
 
3860
  $as_echo_n "(cached) " >&6
3204
3861
else
3205
3862
  if test -n "$CC"; then
3206
3863
  ac_cv_prog_CC="$CC" # Let the user override the test.
3210
3867
do
3211
3868
  IFS=$as_save_IFS
3212
3869
  test -z "$as_dir" && as_dir=.
3213
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3870
    for ac_exec_ext in '' $ac_executable_extensions; do
3214
3871
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215
3872
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3216
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3873
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217
3874
    break 2
3218
3875
  fi
3219
3876
done
3220
 
done
 
3877
  done
3221
3878
IFS=$as_save_IFS
3222
3879
 
3223
3880
fi
3224
3881
fi
3225
3882
CC=$ac_cv_prog_CC
3226
3883
if test -n "$CC"; then
3227
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3228
 
echo "${ECHO_T}$CC" >&6; }
 
3884
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3885
$as_echo "$CC" >&6; }
3229
3886
else
3230
 
  { echo "$as_me:$LINENO: result: no" >&5
3231
 
echo "${ECHO_T}no" >&6; }
 
3887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3888
$as_echo "no" >&6; }
3232
3889
fi
3233
3890
 
3234
3891
 
3241
3898
do
3242
3899
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3243
3900
set dummy $ac_prog; ac_word=$2
3244
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3245
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3246
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3247
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3902
$as_echo_n "checking for $ac_word... " >&6; }
 
3903
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3904
  $as_echo_n "(cached) " >&6
3248
3905
else
3249
3906
  if test -n "$ac_ct_CC"; then
3250
3907
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254
3911
do
3255
3912
  IFS=$as_save_IFS
3256
3913
  test -z "$as_dir" && as_dir=.
3257
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3914
    for ac_exec_ext in '' $ac_executable_extensions; do
3258
3915
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259
3916
    ac_cv_prog_ac_ct_CC="$ac_prog"
3260
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3917
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261
3918
    break 2
3262
3919
  fi
3263
3920
done
3264
 
done
 
3921
  done
3265
3922
IFS=$as_save_IFS
3266
3923
 
3267
3924
fi
3268
3925
fi
3269
3926
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3270
3927
if test -n "$ac_ct_CC"; then
3271
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3272
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3929
$as_echo "$ac_ct_CC" >&6; }
3273
3930
else
3274
 
  { echo "$as_me:$LINENO: result: no" >&5
3275
 
echo "${ECHO_T}no" >&6; }
 
3931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3932
$as_echo "no" >&6; }
3276
3933
fi
3277
3934
 
3278
3935
 
3284
3941
  else
3285
3942
    case $cross_compiling:$ac_tool_warned in
3286
3943
yes:)
3287
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3288
 
whose name does not start with the host triplet.  If you think this
3289
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3290
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3291
 
whose name does not start with the host triplet.  If you think this
3292
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3944
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3945
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3293
3946
ac_tool_warned=yes ;;
3294
3947
esac
3295
3948
    CC=$ac_ct_CC
3299
3952
fi
3300
3953
 
3301
3954
 
3302
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3303
 
See \`config.log' for more details." >&5
3304
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3305
 
See \`config.log' for more details." >&2;}
3306
 
   { (exit 1); exit 1; }; }
 
3955
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3956
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3957
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3958
See \`config.log' for more details" "$LINENO" 5; }
3307
3959
 
3308
3960
# Provide some information about the compiler.
3309
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
3310
 
ac_compiler=`set X $ac_compile; echo $2`
3311
 
{ (ac_try="$ac_compiler --version >&5"
3312
 
case "(($ac_try" in
3313
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314
 
  *) ac_try_echo=$ac_try;;
3315
 
esac
3316
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317
 
  (eval "$ac_compiler --version >&5") 2>&5
3318
 
  ac_status=$?
3319
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320
 
  (exit $ac_status); }
3321
 
{ (ac_try="$ac_compiler -v >&5"
3322
 
case "(($ac_try" in
3323
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324
 
  *) ac_try_echo=$ac_try;;
3325
 
esac
3326
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327
 
  (eval "$ac_compiler -v >&5") 2>&5
3328
 
  ac_status=$?
3329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330
 
  (exit $ac_status); }
3331
 
{ (ac_try="$ac_compiler -V >&5"
3332
 
case "(($ac_try" in
3333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334
 
  *) ac_try_echo=$ac_try;;
3335
 
esac
3336
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337
 
  (eval "$ac_compiler -V >&5") 2>&5
3338
 
  ac_status=$?
3339
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340
 
  (exit $ac_status); }
 
3961
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3962
set X $ac_compile
 
3963
ac_compiler=$2
 
3964
for ac_option in --version -v -V -qversion; do
 
3965
  { { ac_try="$ac_compiler $ac_option >&5"
 
3966
case "(($ac_try" in
 
3967
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3968
  *) ac_try_echo=$ac_try;;
 
3969
esac
 
3970
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3971
$as_echo "$ac_try_echo"; } >&5
 
3972
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3973
  ac_status=$?
 
3974
  if test -s conftest.err; then
 
3975
    sed '10a\
 
3976
... rest of stderr output deleted ...
 
3977
         10q' conftest.err >conftest.er1
 
3978
    cat conftest.er1 >&5
 
3979
  fi
 
3980
  rm -f conftest.er1 conftest.err
 
3981
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3982
  test $ac_status = 0; }
 
3983
done
3341
3984
 
3342
 
cat >conftest.$ac_ext <<_ACEOF
3343
 
/* confdefs.h.  */
3344
 
_ACEOF
3345
 
cat confdefs.h >>conftest.$ac_ext
3346
 
cat >>conftest.$ac_ext <<_ACEOF
 
3985
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347
3986
/* end confdefs.h.  */
3348
3987
 
3349
3988
int
3355
3994
}
3356
3995
_ACEOF
3357
3996
ac_clean_files_save=$ac_clean_files
3358
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3997
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3359
3998
# Try to create an executable without -o first, disregard a.out.
3360
3999
# It will help us diagnose broken compilers, and finding out an intuition
3361
4000
# of exeext.
3362
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3363
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3364
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3365
 
#
3366
 
# List of possible output files, starting from the most likely.
3367
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3368
 
# only as a last resort.  b.out is created by i960 compilers.
3369
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3370
 
#
3371
 
# The IRIX 6 linker writes into existing files which may not be
3372
 
# executable, retaining their permissions.  Remove them first so a
3373
 
# subsequent execution test works.
 
4001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
4002
$as_echo_n "checking whether the C compiler works... " >&6; }
 
4003
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
4004
 
 
4005
# The possible output files:
 
4006
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
4007
 
3374
4008
ac_rmfiles=
3375
4009
for ac_file in $ac_files
3376
4010
do
3377
4011
  case $ac_file in
3378
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
4012
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3379
4013
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3380
4014
  esac
3381
4015
done
3382
4016
rm -f $ac_rmfiles
3383
4017
 
3384
 
if { (ac_try="$ac_link_default"
 
4018
if { { ac_try="$ac_link_default"
3385
4019
case "(($ac_try" in
3386
4020
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387
4021
  *) ac_try_echo=$ac_try;;
3388
4022
esac
3389
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4023
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4024
$as_echo "$ac_try_echo"; } >&5
3390
4025
  (eval "$ac_link_default") 2>&5
3391
4026
  ac_status=$?
3392
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393
 
  (exit $ac_status); }; then
 
4027
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4028
  test $ac_status = 0; }; then :
3394
4029
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3395
4030
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3396
4031
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3400
4035
do
3401
4036
  test -f "$ac_file" || continue
3402
4037
  case $ac_file in
3403
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
4038
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3404
4039
        ;;
3405
4040
    [ab].out )
3406
4041
        # We found the default executable, but exeext='' is most
3407
4042
        # certainly right.
3408
4043
        break;;
3409
4044
    *.* )
3410
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
4045
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3411
4046
        then :; else
3412
4047
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413
4048
        fi
3426
4061
else
3427
4062
  ac_file=''
3428
4063
fi
3429
 
 
3430
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3431
 
echo "${ECHO_T}$ac_file" >&6; }
3432
 
if test -z "$ac_file"; then
3433
 
  echo "$as_me: failed program was:" >&5
 
4064
if test -z "$ac_file"; then :
 
4065
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4066
$as_echo "no" >&6; }
 
4067
$as_echo "$as_me: failed program was:" >&5
3434
4068
sed 's/^/| /' conftest.$ac_ext >&5
3435
4069
 
3436
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3437
 
See \`config.log' for more details." >&5
3438
 
echo "$as_me: error: C compiler cannot create executables
3439
 
See \`config.log' for more details." >&2;}
3440
 
   { (exit 77); exit 77; }; }
 
4070
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4071
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4072
as_fn_error 77 "C compiler cannot create executables
 
4073
See \`config.log' for more details" "$LINENO" 5; }
 
4074
else
 
4075
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4076
$as_echo "yes" >&6; }
3441
4077
fi
3442
 
 
 
4078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
4079
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
4080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
4081
$as_echo "$ac_file" >&6; }
3443
4082
ac_exeext=$ac_cv_exeext
3444
4083
 
3445
 
# Check that the compiler produces executables we can run.  If not, either
3446
 
# the compiler is broken, or we cross compile.
3447
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3448
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3449
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3450
 
# If not cross compiling, check that we can run a simple program.
3451
 
if test "$cross_compiling" != yes; then
3452
 
  if { ac_try='./$ac_file'
3453
 
  { (case "(($ac_try" in
3454
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455
 
  *) ac_try_echo=$ac_try;;
3456
 
esac
3457
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458
 
  (eval "$ac_try") 2>&5
3459
 
  ac_status=$?
3460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461
 
  (exit $ac_status); }; }; then
3462
 
    cross_compiling=no
3463
 
  else
3464
 
    if test "$cross_compiling" = maybe; then
3465
 
        cross_compiling=yes
3466
 
    else
3467
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3468
 
If you meant to cross compile, use \`--host'.
3469
 
See \`config.log' for more details." >&5
3470
 
echo "$as_me: error: cannot run C compiled programs.
3471
 
If you meant to cross compile, use \`--host'.
3472
 
See \`config.log' for more details." >&2;}
3473
 
   { (exit 1); exit 1; }; }
3474
 
    fi
3475
 
  fi
3476
 
fi
3477
 
{ echo "$as_me:$LINENO: result: yes" >&5
3478
 
echo "${ECHO_T}yes" >&6; }
3479
 
 
3480
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
4084
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3481
4085
ac_clean_files=$ac_clean_files_save
3482
 
# Check that the compiler produces executables we can run.  If not, either
3483
 
# the compiler is broken, or we cross compile.
3484
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3485
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3486
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3487
 
echo "${ECHO_T}$cross_compiling" >&6; }
3488
 
 
3489
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3490
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3491
 
if { (ac_try="$ac_link"
 
4086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
4087
$as_echo_n "checking for suffix of executables... " >&6; }
 
4088
if { { ac_try="$ac_link"
3492
4089
case "(($ac_try" in
3493
4090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494
4091
  *) ac_try_echo=$ac_try;;
3495
4092
esac
3496
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4093
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4094
$as_echo "$ac_try_echo"; } >&5
3497
4095
  (eval "$ac_link") 2>&5
3498
4096
  ac_status=$?
3499
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500
 
  (exit $ac_status); }; then
 
4097
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4098
  test $ac_status = 0; }; then :
3501
4099
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3502
4100
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3503
4101
# work properly (i.e., refer to `conftest.exe'), while it won't with
3505
4103
for ac_file in conftest.exe conftest conftest.*; do
3506
4104
  test -f "$ac_file" || continue
3507
4105
  case $ac_file in
3508
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
4106
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509
4107
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510
4108
          break;;
3511
4109
    * ) break;;
3512
4110
  esac
3513
4111
done
3514
4112
else
3515
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3516
 
See \`config.log' for more details." >&5
3517
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3518
 
See \`config.log' for more details." >&2;}
3519
 
   { (exit 1); exit 1; }; }
 
4113
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4114
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4115
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
4116
See \`config.log' for more details" "$LINENO" 5; }
3520
4117
fi
3521
 
 
3522
 
rm -f conftest$ac_cv_exeext
3523
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3524
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
4118
rm -f conftest conftest$ac_cv_exeext
 
4119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
4120
$as_echo "$ac_cv_exeext" >&6; }
3525
4121
 
3526
4122
rm -f conftest.$ac_ext
3527
4123
EXEEXT=$ac_cv_exeext
3528
4124
ac_exeext=$EXEEXT
3529
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3530
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3531
 
if test "${ac_cv_objext+set}" = set; then
3532
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4125
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4126
/* end confdefs.h.  */
 
4127
#include <stdio.h>
 
4128
int
 
4129
main ()
 
4130
{
 
4131
FILE *f = fopen ("conftest.out", "w");
 
4132
 return ferror (f) || fclose (f) != 0;
 
4133
 
 
4134
  ;
 
4135
  return 0;
 
4136
}
 
4137
_ACEOF
 
4138
ac_clean_files="$ac_clean_files conftest.out"
 
4139
# Check that the compiler produces executables we can run.  If not, either
 
4140
# the compiler is broken, or we cross compile.
 
4141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
4142
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
4143
if test "$cross_compiling" != yes; then
 
4144
  { { ac_try="$ac_link"
 
4145
case "(($ac_try" in
 
4146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4147
  *) ac_try_echo=$ac_try;;
 
4148
esac
 
4149
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4150
$as_echo "$ac_try_echo"; } >&5
 
4151
  (eval "$ac_link") 2>&5
 
4152
  ac_status=$?
 
4153
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4154
  test $ac_status = 0; }
 
4155
  if { ac_try='./conftest$ac_cv_exeext'
 
4156
  { { case "(($ac_try" in
 
4157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4158
  *) ac_try_echo=$ac_try;;
 
4159
esac
 
4160
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4161
$as_echo "$ac_try_echo"; } >&5
 
4162
  (eval "$ac_try") 2>&5
 
4163
  ac_status=$?
 
4164
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4165
  test $ac_status = 0; }; }; then
 
4166
    cross_compiling=no
 
4167
  else
 
4168
    if test "$cross_compiling" = maybe; then
 
4169
        cross_compiling=yes
 
4170
    else
 
4171
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4172
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4173
as_fn_error $? "cannot run C compiled programs.
 
4174
If you meant to cross compile, use \`--host'.
 
4175
See \`config.log' for more details" "$LINENO" 5; }
 
4176
    fi
 
4177
  fi
 
4178
fi
 
4179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
4180
$as_echo "$cross_compiling" >&6; }
 
4181
 
 
4182
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
4183
ac_clean_files=$ac_clean_files_save
 
4184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
4185
$as_echo_n "checking for suffix of object files... " >&6; }
 
4186
if test "${ac_cv_objext+set}" = set; then :
 
4187
  $as_echo_n "(cached) " >&6
3533
4188
else
3534
 
  cat >conftest.$ac_ext <<_ACEOF
3535
 
/* confdefs.h.  */
3536
 
_ACEOF
3537
 
cat confdefs.h >>conftest.$ac_ext
3538
 
cat >>conftest.$ac_ext <<_ACEOF
 
4189
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539
4190
/* end confdefs.h.  */
3540
4191
 
3541
4192
int
3547
4198
}
3548
4199
_ACEOF
3549
4200
rm -f conftest.o conftest.obj
3550
 
if { (ac_try="$ac_compile"
 
4201
if { { ac_try="$ac_compile"
3551
4202
case "(($ac_try" in
3552
4203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553
4204
  *) ac_try_echo=$ac_try;;
3554
4205
esac
3555
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4206
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4207
$as_echo "$ac_try_echo"; } >&5
3556
4208
  (eval "$ac_compile") 2>&5
3557
4209
  ac_status=$?
3558
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559
 
  (exit $ac_status); }; then
 
4210
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4211
  test $ac_status = 0; }; then :
3560
4212
  for ac_file in conftest.o conftest.obj conftest.*; do
3561
4213
  test -f "$ac_file" || continue;
3562
4214
  case $ac_file in
3563
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
4215
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3564
4216
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3565
4217
       break;;
3566
4218
  esac
3567
4219
done
3568
4220
else
3569
 
  echo "$as_me: failed program was:" >&5
 
4221
  $as_echo "$as_me: failed program was:" >&5
3570
4222
sed 's/^/| /' conftest.$ac_ext >&5
3571
4223
 
3572
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3573
 
See \`config.log' for more details." >&5
3574
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3575
 
See \`config.log' for more details." >&2;}
3576
 
   { (exit 1); exit 1; }; }
 
4224
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4225
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4226
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
4227
See \`config.log' for more details" "$LINENO" 5; }
3577
4228
fi
3578
 
 
3579
4229
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3580
4230
fi
3581
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3582
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
4231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
4232
$as_echo "$ac_cv_objext" >&6; }
3583
4233
OBJEXT=$ac_cv_objext
3584
4234
ac_objext=$OBJEXT
3585
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3586
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3587
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4236
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4237
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4238
  $as_echo_n "(cached) " >&6
3589
4239
else
3590
 
  cat >conftest.$ac_ext <<_ACEOF
3591
 
/* confdefs.h.  */
3592
 
_ACEOF
3593
 
cat confdefs.h >>conftest.$ac_ext
3594
 
cat >>conftest.$ac_ext <<_ACEOF
 
4240
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595
4241
/* end confdefs.h.  */
3596
4242
 
3597
4243
int
3605
4251
  return 0;
3606
4252
}
3607
4253
_ACEOF
3608
 
rm -f conftest.$ac_objext
3609
 
if { (ac_try="$ac_compile"
3610
 
case "(($ac_try" in
3611
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612
 
  *) ac_try_echo=$ac_try;;
3613
 
esac
3614
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615
 
  (eval "$ac_compile") 2>conftest.er1
3616
 
  ac_status=$?
3617
 
  grep -v '^ *+' conftest.er1 >conftest.err
3618
 
  rm -f conftest.er1
3619
 
  cat conftest.err >&5
3620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621
 
  (exit $ac_status); } && {
3622
 
         test -z "$ac_c_werror_flag" ||
3623
 
         test ! -s conftest.err
3624
 
       } && test -s conftest.$ac_objext; then
 
4254
if ac_fn_c_try_compile "$LINENO"; then :
3625
4255
  ac_compiler_gnu=yes
3626
4256
else
3627
 
  echo "$as_me: failed program was:" >&5
3628
 
sed 's/^/| /' conftest.$ac_ext >&5
3629
 
 
3630
 
        ac_compiler_gnu=no
 
4257
  ac_compiler_gnu=no
3631
4258
fi
3632
 
 
3633
4259
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634
4260
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3635
4261
 
3636
4262
fi
3637
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3638
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3639
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
4263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4264
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4265
if test $ac_compiler_gnu = yes; then
 
4266
  GCC=yes
 
4267
else
 
4268
  GCC=
 
4269
fi
3640
4270
ac_test_CFLAGS=${CFLAGS+set}
3641
4271
ac_save_CFLAGS=$CFLAGS
3642
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3643
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3644
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3645
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4273
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4274
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4275
  $as_echo_n "(cached) " >&6
3646
4276
else
3647
4277
  ac_save_c_werror_flag=$ac_c_werror_flag
3648
4278
   ac_c_werror_flag=yes
3649
4279
   ac_cv_prog_cc_g=no
3650
4280
   CFLAGS="-g"
3651
 
   cat >conftest.$ac_ext <<_ACEOF
3652
 
/* confdefs.h.  */
3653
 
_ACEOF
3654
 
cat confdefs.h >>conftest.$ac_ext
3655
 
cat >>conftest.$ac_ext <<_ACEOF
 
4281
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656
4282
/* end confdefs.h.  */
3657
4283
 
3658
4284
int
3663
4289
  return 0;
3664
4290
}
3665
4291
_ACEOF
3666
 
rm -f conftest.$ac_objext
3667
 
if { (ac_try="$ac_compile"
3668
 
case "(($ac_try" in
3669
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670
 
  *) ac_try_echo=$ac_try;;
3671
 
esac
3672
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673
 
  (eval "$ac_compile") 2>conftest.er1
3674
 
  ac_status=$?
3675
 
  grep -v '^ *+' conftest.er1 >conftest.err
3676
 
  rm -f conftest.er1
3677
 
  cat conftest.err >&5
3678
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679
 
  (exit $ac_status); } && {
3680
 
         test -z "$ac_c_werror_flag" ||
3681
 
         test ! -s conftest.err
3682
 
       } && test -s conftest.$ac_objext; then
 
4292
if ac_fn_c_try_compile "$LINENO"; then :
3683
4293
  ac_cv_prog_cc_g=yes
3684
4294
else
3685
 
  echo "$as_me: failed program was:" >&5
3686
 
sed 's/^/| /' conftest.$ac_ext >&5
3687
 
 
3688
 
        CFLAGS=""
3689
 
      cat >conftest.$ac_ext <<_ACEOF
3690
 
/* confdefs.h.  */
3691
 
_ACEOF
3692
 
cat confdefs.h >>conftest.$ac_ext
3693
 
cat >>conftest.$ac_ext <<_ACEOF
 
4295
  CFLAGS=""
 
4296
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694
4297
/* end confdefs.h.  */
3695
4298
 
3696
4299
int
3701
4304
  return 0;
3702
4305
}
3703
4306
_ACEOF
3704
 
rm -f conftest.$ac_objext
3705
 
if { (ac_try="$ac_compile"
3706
 
case "(($ac_try" in
3707
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708
 
  *) ac_try_echo=$ac_try;;
3709
 
esac
3710
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711
 
  (eval "$ac_compile") 2>conftest.er1
3712
 
  ac_status=$?
3713
 
  grep -v '^ *+' conftest.er1 >conftest.err
3714
 
  rm -f conftest.er1
3715
 
  cat conftest.err >&5
3716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717
 
  (exit $ac_status); } && {
3718
 
         test -z "$ac_c_werror_flag" ||
3719
 
         test ! -s conftest.err
3720
 
       } && test -s conftest.$ac_objext; then
3721
 
  :
 
4307
if ac_fn_c_try_compile "$LINENO"; then :
 
4308
 
3722
4309
else
3723
 
  echo "$as_me: failed program was:" >&5
3724
 
sed 's/^/| /' conftest.$ac_ext >&5
3725
 
 
3726
 
        ac_c_werror_flag=$ac_save_c_werror_flag
 
4310
  ac_c_werror_flag=$ac_save_c_werror_flag
3727
4311
         CFLAGS="-g"
3728
 
         cat >conftest.$ac_ext <<_ACEOF
3729
 
/* confdefs.h.  */
3730
 
_ACEOF
3731
 
cat confdefs.h >>conftest.$ac_ext
3732
 
cat >>conftest.$ac_ext <<_ACEOF
 
4312
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733
4313
/* end confdefs.h.  */
3734
4314
 
3735
4315
int
3740
4320
  return 0;
3741
4321
}
3742
4322
_ACEOF
3743
 
rm -f conftest.$ac_objext
3744
 
if { (ac_try="$ac_compile"
3745
 
case "(($ac_try" in
3746
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747
 
  *) ac_try_echo=$ac_try;;
3748
 
esac
3749
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750
 
  (eval "$ac_compile") 2>conftest.er1
3751
 
  ac_status=$?
3752
 
  grep -v '^ *+' conftest.er1 >conftest.err
3753
 
  rm -f conftest.er1
3754
 
  cat conftest.err >&5
3755
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756
 
  (exit $ac_status); } && {
3757
 
         test -z "$ac_c_werror_flag" ||
3758
 
         test ! -s conftest.err
3759
 
       } && test -s conftest.$ac_objext; then
 
4323
if ac_fn_c_try_compile "$LINENO"; then :
3760
4324
  ac_cv_prog_cc_g=yes
3761
 
else
3762
 
  echo "$as_me: failed program was:" >&5
3763
 
sed 's/^/| /' conftest.$ac_ext >&5
3764
 
 
3765
 
 
3766
 
fi
3767
 
 
3768
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769
 
fi
3770
 
 
3771
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772
 
fi
3773
 
 
 
4325
fi
 
4326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4327
fi
 
4328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4329
fi
3774
4330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775
4331
   ac_c_werror_flag=$ac_save_c_werror_flag
3776
4332
fi
3777
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3778
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
4333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4334
$as_echo "$ac_cv_prog_cc_g" >&6; }
3779
4335
if test "$ac_test_CFLAGS" = set; then
3780
4336
  CFLAGS=$ac_save_CFLAGS
3781
4337
elif test $ac_cv_prog_cc_g = yes; then
3791
4347
    CFLAGS=
3792
4348
  fi
3793
4349
fi
3794
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3795
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3796
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
3797
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4351
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4352
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4353
  $as_echo_n "(cached) " >&6
3798
4354
else
3799
4355
  ac_cv_prog_cc_c89=no
3800
4356
ac_save_CC=$CC
3801
 
cat >conftest.$ac_ext <<_ACEOF
3802
 
/* confdefs.h.  */
3803
 
_ACEOF
3804
 
cat confdefs.h >>conftest.$ac_ext
3805
 
cat >>conftest.$ac_ext <<_ACEOF
 
4357
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806
4358
/* end confdefs.h.  */
3807
4359
#include <stdarg.h>
3808
4360
#include <stdio.h>
3859
4411
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3860
4412
do
3861
4413
  CC="$ac_save_CC $ac_arg"
3862
 
  rm -f conftest.$ac_objext
3863
 
if { (ac_try="$ac_compile"
3864
 
case "(($ac_try" in
3865
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866
 
  *) ac_try_echo=$ac_try;;
3867
 
esac
3868
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869
 
  (eval "$ac_compile") 2>conftest.er1
3870
 
  ac_status=$?
3871
 
  grep -v '^ *+' conftest.er1 >conftest.err
3872
 
  rm -f conftest.er1
3873
 
  cat conftest.err >&5
3874
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875
 
  (exit $ac_status); } && {
3876
 
         test -z "$ac_c_werror_flag" ||
3877
 
         test ! -s conftest.err
3878
 
       } && test -s conftest.$ac_objext; then
 
4414
  if ac_fn_c_try_compile "$LINENO"; then :
3879
4415
  ac_cv_prog_cc_c89=$ac_arg
3880
 
else
3881
 
  echo "$as_me: failed program was:" >&5
3882
 
sed 's/^/| /' conftest.$ac_ext >&5
3883
 
 
3884
 
 
3885
4416
fi
3886
 
 
3887
4417
rm -f core conftest.err conftest.$ac_objext
3888
4418
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3889
4419
done
3894
4424
# AC_CACHE_VAL
3895
4425
case "x$ac_cv_prog_cc_c89" in
3896
4426
  x)
3897
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3898
 
echo "${ECHO_T}none needed" >&6; } ;;
 
4427
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4428
$as_echo "none needed" >&6; } ;;
3899
4429
  xno)
3900
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3901
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
4430
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4431
$as_echo "unsupported" >&6; } ;;
3902
4432
  *)
3903
4433
    CC="$CC $ac_cv_prog_cc_c89"
3904
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3905
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
4434
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4435
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3906
4436
esac
 
4437
if test "x$ac_cv_prog_cc_c89" != xno; then :
3907
4438
 
 
4439
fi
3908
4440
 
3909
4441
ac_ext=c
3910
4442
ac_cpp='$CPP $CPPFLAGS'
3919
4451
am_make=${MAKE-make}
3920
4452
cat > confinc << 'END'
3921
4453
am__doit:
3922
 
        @echo done
 
4454
        @echo this is the am__doit target
3923
4455
.PHONY: am__doit
3924
4456
END
3925
4457
# If we don't find an include directive, just comment out the code.
3926
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3927
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
4458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
4459
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3928
4460
am__include="#"
3929
4461
am__quote=
3930
4462
_am_result=none
3931
4463
# First try GNU make style include.
3932
4464
echo "include confinc" > confmf
3933
 
# We grep out `Entering directory' and `Leaving directory'
3934
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3935
 
# In particular we don't look at `^make:' because GNU make might
3936
 
# be invoked under some other name (usually "gmake"), in which
3937
 
# case it prints its new name instead of `make'.
3938
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3939
 
   am__include=include
3940
 
   am__quote=
3941
 
   _am_result=GNU
3942
 
fi
 
4465
# Ignore all kinds of additional output from `make'.
 
4466
case `$am_make -s -f confmf 2> /dev/null` in #(
 
4467
*the\ am__doit\ target*)
 
4468
  am__include=include
 
4469
  am__quote=
 
4470
  _am_result=GNU
 
4471
  ;;
 
4472
esac
3943
4473
# Now try BSD make style include.
3944
4474
if test "$am__include" = "#"; then
3945
4475
   echo '.include "confinc"' > confmf
3946
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3947
 
      am__include=.include
3948
 
      am__quote="\""
3949
 
      _am_result=BSD
3950
 
   fi
 
4476
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
4477
   *the\ am__doit\ target*)
 
4478
     am__include=.include
 
4479
     am__quote="\""
 
4480
     _am_result=BSD
 
4481
     ;;
 
4482
   esac
3951
4483
fi
3952
4484
 
3953
4485
 
3954
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3955
 
echo "${ECHO_T}$_am_result" >&6; }
 
4486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
4487
$as_echo "$_am_result" >&6; }
3956
4488
rm -f confinc confmf
3957
4489
 
3958
4490
# Check whether --enable-dependency-tracking was given.
3959
 
if test "${enable_dependency_tracking+set}" = set; then
 
4491
if test "${enable_dependency_tracking+set}" = set; then :
3960
4492
  enableval=$enable_dependency_tracking;
3961
4493
fi
3962
4494
 
3976
4508
 
3977
4509
depcc="$CC"   am_compiler_list=
3978
4510
 
3979
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3980
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3981
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3982
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4512
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4513
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4514
  $as_echo_n "(cached) " >&6
3983
4515
else
3984
4516
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3985
4517
  # We make a subdir and do the tests there.  Otherwise we can end up
4004
4536
  if test "$am_compiler_list" = ""; then
4005
4537
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4006
4538
  fi
 
4539
  am__universal=false
 
4540
  case " $depcc " in #(
 
4541
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4542
     esac
 
4543
 
4007
4544
  for depmode in $am_compiler_list; do
4008
4545
    # Setup a source with many dependencies, because some compilers
4009
4546
    # like to wrap large dependency lists on column 80 (with \), and
4021
4558
    done
4022
4559
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4023
4560
 
 
4561
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4562
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4563
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4564
    # versions had trouble with output in subdirs
 
4565
    am__obj=sub/conftest.${OBJEXT-o}
 
4566
    am__minus_obj="-o $am__obj"
4024
4567
    case $depmode in
 
4568
    gcc)
 
4569
      # This depmode causes a compiler race in universal mode.
 
4570
      test "$am__universal" = false || continue
 
4571
      ;;
4025
4572
    nosideeffect)
4026
4573
      # after this tag, mechanisms are not by side-effect, so they'll
4027
4574
      # only be used when explicitly requested
4031
4578
        break
4032
4579
      fi
4033
4580
      ;;
 
4581
    msvisualcpp | msvcmsys)
 
4582
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4583
      # not run yet.  These depmodes are late enough in the game, and
 
4584
      # so weak that their functioning should not be impacted.
 
4585
      am__obj=conftest.${OBJEXT-o}
 
4586
      am__minus_obj=
 
4587
      ;;
4034
4588
    none) break ;;
4035
4589
    esac
4036
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4037
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4038
 
    # handle `-M -o', and we need to detect this.
4039
4590
    if depmode=$depmode \
4040
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4591
       source=sub/conftest.c object=$am__obj \
4041
4592
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4042
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4593
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4043
4594
         >/dev/null 2>conftest.err &&
4044
4595
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4045
4596
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4046
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4597
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4047
4598
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4048
4599
      # icc doesn't choke on unknown options, it will just issue warnings
4049
4600
      # or remarks (even with -Werror).  So we grep stderr for any message
4067
4618
fi
4068
4619
 
4069
4620
fi
4070
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4071
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
4621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4622
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4072
4623
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4073
4624
 
4074
4625
 if
4082
4633
fi
4083
4634
 
4084
4635
 
4085
 
# Find a good install program.  We prefer a C program (faster),
4086
 
# so one script is as good as another.  But avoid the broken or
4087
 
# incompatible versions:
4088
 
# SysV /etc/install, /usr/sbin/install
4089
 
# SunOS /usr/etc/install
4090
 
# IRIX /sbin/install
4091
 
# AIX /bin/install
4092
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
4093
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4094
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4095
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4096
 
# OS/2's system install, which has a completely different semantic
4097
 
# ./install, which can be erroneously created by make from ./install.sh.
4098
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4099
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4100
 
if test -z "$INSTALL"; then
4101
 
if test "${ac_cv_path_install+set}" = set; then
4102
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4103
 
else
4104
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105
 
for as_dir in $PATH
4106
 
do
4107
 
  IFS=$as_save_IFS
4108
 
  test -z "$as_dir" && as_dir=.
4109
 
  # Account for people who put trailing slashes in PATH elements.
4110
 
case $as_dir/ in
4111
 
  ./ | .// | /cC/* | \
4112
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4113
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4114
 
  /usr/ucb/* ) ;;
4115
 
  *)
4116
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
4117
 
    # Don't use installbsd from OSF since it installs stuff as root
4118
 
    # by default.
4119
 
    for ac_prog in ginstall scoinst install; do
4120
 
      for ac_exec_ext in '' $ac_executable_extensions; do
4121
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4122
 
          if test $ac_prog = install &&
4123
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4124
 
            # AIX install.  It has an incompatible calling convention.
4125
 
            :
4126
 
          elif test $ac_prog = install &&
4127
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4128
 
            # program-specific install script used by HP pwplus--don't use.
4129
 
            :
4130
 
          else
4131
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4132
 
            break 3
4133
 
          fi
4134
 
        fi
4135
 
      done
4136
 
    done
4137
 
    ;;
4138
 
esac
4139
 
done
4140
 
IFS=$as_save_IFS
4141
 
 
4142
 
 
4143
 
fi
4144
 
  if test "${ac_cv_path_install+set}" = set; then
4145
 
    INSTALL=$ac_cv_path_install
4146
 
  else
4147
 
    # As a last resort, use the slow shell script.  Don't cache a
4148
 
    # value for INSTALL within a source directory, because that will
4149
 
    # break other packages using the cache if that directory is
4150
 
    # removed, or if the value is a relative name.
4151
 
    INSTALL=$ac_install_sh
4152
 
  fi
4153
 
fi
4154
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4155
 
echo "${ECHO_T}$INSTALL" >&6; }
4156
 
 
4157
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4158
 
# It thinks the first close brace ends the variable substitution.
4159
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4160
 
 
4161
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4162
 
 
4163
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4164
4636
 
4165
4637
 
4166
4638
ac_ext=c
4168
4640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169
4641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170
4642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4172
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
4644
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4173
4645
# On Suns, sometimes $CPP names a directory.
4174
4646
if test -n "$CPP" && test -d "$CPP"; then
4175
4647
  CPP=
4176
4648
fi
4177
4649
if test -z "$CPP"; then
4178
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4179
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4650
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
4651
  $as_echo_n "(cached) " >&6
4180
4652
else
4181
4653
      # Double quotes because CPP needs to be expanded
4182
4654
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4190
4662
  # <limits.h> exists even on freestanding compilers.
4191
4663
  # On the NeXT, cc -E runs the code through the compiler's parser,
4192
4664
  # not just through cpp. "Syntax error" is here to catch this case.
4193
 
  cat >conftest.$ac_ext <<_ACEOF
4194
 
/* confdefs.h.  */
4195
 
_ACEOF
4196
 
cat confdefs.h >>conftest.$ac_ext
4197
 
cat >>conftest.$ac_ext <<_ACEOF
 
4665
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198
4666
/* end confdefs.h.  */
4199
4667
#ifdef __STDC__
4200
4668
# include <limits.h>
4203
4671
#endif
4204
4672
                     Syntax error
4205
4673
_ACEOF
4206
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4207
 
case "(($ac_try" in
4208
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209
 
  *) ac_try_echo=$ac_try;;
4210
 
esac
4211
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4213
 
  ac_status=$?
4214
 
  grep -v '^ *+' conftest.er1 >conftest.err
4215
 
  rm -f conftest.er1
4216
 
  cat conftest.err >&5
4217
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218
 
  (exit $ac_status); } >/dev/null && {
4219
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220
 
         test ! -s conftest.err
4221
 
       }; then
4222
 
  :
 
4674
if ac_fn_c_try_cpp "$LINENO"; then :
 
4675
 
4223
4676
else
4224
 
  echo "$as_me: failed program was:" >&5
4225
 
sed 's/^/| /' conftest.$ac_ext >&5
4226
 
 
4227
4677
  # Broken: fails on valid input.
4228
4678
continue
4229
4679
fi
4230
 
 
4231
4680
rm -f conftest.err conftest.$ac_ext
4232
4681
 
4233
4682
  # OK, works on sane cases.  Now check whether nonexistent headers
4234
4683
  # can be detected and how.
4235
 
  cat >conftest.$ac_ext <<_ACEOF
4236
 
/* confdefs.h.  */
4237
 
_ACEOF
4238
 
cat confdefs.h >>conftest.$ac_ext
4239
 
cat >>conftest.$ac_ext <<_ACEOF
 
4684
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240
4685
/* end confdefs.h.  */
4241
4686
#include <ac_nonexistent.h>
4242
4687
_ACEOF
4243
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4244
 
case "(($ac_try" in
4245
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246
 
  *) ac_try_echo=$ac_try;;
4247
 
esac
4248
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4250
 
  ac_status=$?
4251
 
  grep -v '^ *+' conftest.er1 >conftest.err
4252
 
  rm -f conftest.er1
4253
 
  cat conftest.err >&5
4254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
 
  (exit $ac_status); } >/dev/null && {
4256
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4257
 
         test ! -s conftest.err
4258
 
       }; then
 
4688
if ac_fn_c_try_cpp "$LINENO"; then :
4259
4689
  # Broken: success on invalid input.
4260
4690
continue
4261
4691
else
4262
 
  echo "$as_me: failed program was:" >&5
4263
 
sed 's/^/| /' conftest.$ac_ext >&5
4264
 
 
4265
4692
  # Passes both tests.
4266
4693
ac_preproc_ok=:
4267
4694
break
4268
4695
fi
4269
 
 
4270
4696
rm -f conftest.err conftest.$ac_ext
4271
4697
 
4272
4698
done
4273
4699
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274
4700
rm -f conftest.err conftest.$ac_ext
4275
 
if $ac_preproc_ok; then
 
4701
if $ac_preproc_ok; then :
4276
4702
  break
4277
4703
fi
4278
4704
 
4284
4710
else
4285
4711
  ac_cv_prog_CPP=$CPP
4286
4712
fi
4287
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
4288
 
echo "${ECHO_T}$CPP" >&6; }
 
4713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4714
$as_echo "$CPP" >&6; }
4289
4715
ac_preproc_ok=false
4290
4716
for ac_c_preproc_warn_flag in '' yes
4291
4717
do
4295
4721
  # <limits.h> exists even on freestanding compilers.
4296
4722
  # On the NeXT, cc -E runs the code through the compiler's parser,
4297
4723
  # not just through cpp. "Syntax error" is here to catch this case.
4298
 
  cat >conftest.$ac_ext <<_ACEOF
4299
 
/* confdefs.h.  */
4300
 
_ACEOF
4301
 
cat confdefs.h >>conftest.$ac_ext
4302
 
cat >>conftest.$ac_ext <<_ACEOF
 
4724
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303
4725
/* end confdefs.h.  */
4304
4726
#ifdef __STDC__
4305
4727
# include <limits.h>
4308
4730
#endif
4309
4731
                     Syntax error
4310
4732
_ACEOF
4311
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4312
 
case "(($ac_try" in
4313
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314
 
  *) ac_try_echo=$ac_try;;
4315
 
esac
4316
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4318
 
  ac_status=$?
4319
 
  grep -v '^ *+' conftest.er1 >conftest.err
4320
 
  rm -f conftest.er1
4321
 
  cat conftest.err >&5
4322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323
 
  (exit $ac_status); } >/dev/null && {
4324
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4325
 
         test ! -s conftest.err
4326
 
       }; then
4327
 
  :
 
4733
if ac_fn_c_try_cpp "$LINENO"; then :
 
4734
 
4328
4735
else
4329
 
  echo "$as_me: failed program was:" >&5
4330
 
sed 's/^/| /' conftest.$ac_ext >&5
4331
 
 
4332
4736
  # Broken: fails on valid input.
4333
4737
continue
4334
4738
fi
4335
 
 
4336
4739
rm -f conftest.err conftest.$ac_ext
4337
4740
 
4338
4741
  # OK, works on sane cases.  Now check whether nonexistent headers
4339
4742
  # can be detected and how.
4340
 
  cat >conftest.$ac_ext <<_ACEOF
4341
 
/* confdefs.h.  */
4342
 
_ACEOF
4343
 
cat confdefs.h >>conftest.$ac_ext
4344
 
cat >>conftest.$ac_ext <<_ACEOF
 
4743
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345
4744
/* end confdefs.h.  */
4346
4745
#include <ac_nonexistent.h>
4347
4746
_ACEOF
4348
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4349
 
case "(($ac_try" in
4350
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351
 
  *) ac_try_echo=$ac_try;;
4352
 
esac
4353
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4355
 
  ac_status=$?
4356
 
  grep -v '^ *+' conftest.er1 >conftest.err
4357
 
  rm -f conftest.er1
4358
 
  cat conftest.err >&5
4359
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360
 
  (exit $ac_status); } >/dev/null && {
4361
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4362
 
         test ! -s conftest.err
4363
 
       }; then
 
4747
if ac_fn_c_try_cpp "$LINENO"; then :
4364
4748
  # Broken: success on invalid input.
4365
4749
continue
4366
4750
else
4367
 
  echo "$as_me: failed program was:" >&5
4368
 
sed 's/^/| /' conftest.$ac_ext >&5
4369
 
 
4370
4751
  # Passes both tests.
4371
4752
ac_preproc_ok=:
4372
4753
break
4373
4754
fi
4374
 
 
4375
4755
rm -f conftest.err conftest.$ac_ext
4376
4756
 
4377
4757
done
4378
4758
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4379
4759
rm -f conftest.err conftest.$ac_ext
4380
 
if $ac_preproc_ok; then
4381
 
  :
 
4760
if $ac_preproc_ok; then :
 
4761
 
4382
4762
else
4383
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4384
 
See \`config.log' for more details." >&5
4385
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4386
 
See \`config.log' for more details." >&2;}
4387
 
   { (exit 1); exit 1; }; }
 
4763
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4764
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4765
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
4766
See \`config.log' for more details" "$LINENO" 5; }
4388
4767
fi
4389
4768
 
4390
4769
ac_ext=c
4394
4773
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395
4774
 
4396
4775
 
4397
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4398
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4399
 
if test "${ac_cv_path_GREP+set}" = set; then
4400
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4401
 
else
4402
 
  # Extract the first word of "grep ggrep" to use in msg output
4403
 
if test -z "$GREP"; then
4404
 
set dummy grep ggrep; ac_prog_name=$2
4405
 
if test "${ac_cv_path_GREP+set}" = set; then
4406
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4407
 
else
 
4776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4777
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4778
if test "${ac_cv_path_GREP+set}" = set; then :
 
4779
  $as_echo_n "(cached) " >&6
 
4780
else
 
4781
  if test -z "$GREP"; then
4408
4782
  ac_path_GREP_found=false
4409
 
# Loop through the user's path and test for each of PROGNAME-LIST
4410
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4783
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4784
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411
4785
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412
4786
do
4413
4787
  IFS=$as_save_IFS
4414
4788
  test -z "$as_dir" && as_dir=.
4415
 
  for ac_prog in grep ggrep; do
4416
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4417
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4418
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4419
 
    # Check for GNU ac_path_GREP and select it if it is found.
 
4789
    for ac_prog in grep ggrep; do
 
4790
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4791
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4792
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4793
# Check for GNU ac_path_GREP and select it if it is found.
4420
4794
  # Check for GNU $ac_path_GREP
4421
4795
case `"$ac_path_GREP" --version 2>&1` in
4422
4796
*GNU*)
4423
4797
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4424
4798
*)
4425
4799
  ac_count=0
4426
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4800
  $as_echo_n 0123456789 >"conftest.in"
4427
4801
  while :
4428
4802
  do
4429
4803
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4430
4804
    mv "conftest.tmp" "conftest.in"
4431
4805
    cp "conftest.in" "conftest.nl"
4432
 
    echo 'GREP' >> "conftest.nl"
 
4806
    $as_echo 'GREP' >> "conftest.nl"
4433
4807
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434
4808
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435
 
    ac_count=`expr $ac_count + 1`
 
4809
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4436
4810
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4437
4811
      # Best one so far, save it but keep looking for a better one
4438
4812
      ac_cv_path_GREP="$ac_path_GREP"
4444
4818
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445
4819
esac
4446
4820
 
4447
 
 
4448
 
    $ac_path_GREP_found && break 3
4449
 
  done
4450
 
done
4451
 
 
4452
 
done
 
4821
      $ac_path_GREP_found && break 3
 
4822
    done
 
4823
  done
 
4824
  done
4453
4825
IFS=$as_save_IFS
4454
 
 
4455
 
 
4456
 
fi
4457
 
 
4458
 
GREP="$ac_cv_path_GREP"
4459
 
if test -z "$GREP"; then
4460
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4461
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4462
 
   { (exit 1); exit 1; }; }
4463
 
fi
4464
 
 
 
4826
  if test -z "$ac_cv_path_GREP"; then
 
4827
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4828
  fi
4465
4829
else
4466
4830
  ac_cv_path_GREP=$GREP
4467
4831
fi
4468
4832
 
4469
 
 
4470
4833
fi
4471
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4472
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4835
$as_echo "$ac_cv_path_GREP" >&6; }
4473
4836
 GREP="$ac_cv_path_GREP"
4474
4837
 
4475
4838
 
4476
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
4477
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4478
 
if test "${ac_cv_path_EGREP+set}" = set; then
4479
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4840
$as_echo_n "checking for egrep... " >&6; }
 
4841
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4842
  $as_echo_n "(cached) " >&6
4480
4843
else
4481
4844
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4482
4845
   then ac_cv_path_EGREP="$GREP -E"
4483
4846
   else
4484
 
     # Extract the first word of "egrep" to use in msg output
4485
 
if test -z "$EGREP"; then
4486
 
set dummy egrep; ac_prog_name=$2
4487
 
if test "${ac_cv_path_EGREP+set}" = set; then
4488
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4489
 
else
 
4847
     if test -z "$EGREP"; then
4490
4848
  ac_path_EGREP_found=false
4491
 
# Loop through the user's path and test for each of PROGNAME-LIST
4492
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4849
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4850
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493
4851
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494
4852
do
4495
4853
  IFS=$as_save_IFS
4496
4854
  test -z "$as_dir" && as_dir=.
4497
 
  for ac_prog in egrep; do
4498
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4499
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4500
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4501
 
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4855
    for ac_prog in egrep; do
 
4856
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4857
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4858
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4859
# Check for GNU ac_path_EGREP and select it if it is found.
4502
4860
  # Check for GNU $ac_path_EGREP
4503
4861
case `"$ac_path_EGREP" --version 2>&1` in
4504
4862
*GNU*)
4505
4863
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4506
4864
*)
4507
4865
  ac_count=0
4508
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4866
  $as_echo_n 0123456789 >"conftest.in"
4509
4867
  while :
4510
4868
  do
4511
4869
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4512
4870
    mv "conftest.tmp" "conftest.in"
4513
4871
    cp "conftest.in" "conftest.nl"
4514
 
    echo 'EGREP' >> "conftest.nl"
 
4872
    $as_echo 'EGREP' >> "conftest.nl"
4515
4873
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516
4874
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517
 
    ac_count=`expr $ac_count + 1`
 
4875
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4518
4876
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4519
4877
      # Best one so far, save it but keep looking for a better one
4520
4878
      ac_cv_path_EGREP="$ac_path_EGREP"
4526
4884
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527
4885
esac
4528
4886
 
4529
 
 
4530
 
    $ac_path_EGREP_found && break 3
4531
 
  done
4532
 
done
4533
 
 
4534
 
done
 
4887
      $ac_path_EGREP_found && break 3
 
4888
    done
 
4889
  done
 
4890
  done
4535
4891
IFS=$as_save_IFS
4536
 
 
4537
 
 
4538
 
fi
4539
 
 
4540
 
EGREP="$ac_cv_path_EGREP"
4541
 
if test -z "$EGREP"; then
4542
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4543
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4544
 
   { (exit 1); exit 1; }; }
4545
 
fi
4546
 
 
 
4892
  if test -z "$ac_cv_path_EGREP"; then
 
4893
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4894
  fi
4547
4895
else
4548
4896
  ac_cv_path_EGREP=$EGREP
4549
4897
fi
4550
4898
 
4551
 
 
4552
4899
   fi
4553
4900
fi
4554
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4555
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4902
$as_echo "$ac_cv_path_EGREP" >&6; }
4556
4903
 EGREP="$ac_cv_path_EGREP"
4557
4904
 
4558
4905
 
4559
4906
if test $ac_cv_c_compiler_gnu = yes; then
4560
 
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4561
 
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4562
 
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4563
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4907
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
 
4908
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
 
4909
if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
 
4910
  $as_echo_n "(cached) " >&6
4564
4911
else
4565
4912
    ac_pattern="Autoconf.*'x'"
4566
 
  cat >conftest.$ac_ext <<_ACEOF
4567
 
/* confdefs.h.  */
4568
 
_ACEOF
4569
 
cat confdefs.h >>conftest.$ac_ext
4570
 
cat >>conftest.$ac_ext <<_ACEOF
 
4913
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571
4914
/* end confdefs.h.  */
4572
4915
#include <sgtty.h>
4573
4916
Autoconf TIOCGETP
4574
4917
_ACEOF
4575
4918
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4576
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
4919
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4577
4920
  ac_cv_prog_gcc_traditional=yes
4578
4921
else
4579
4922
  ac_cv_prog_gcc_traditional=no
4582
4925
 
4583
4926
 
4584
4927
  if test $ac_cv_prog_gcc_traditional = no; then
4585
 
    cat >conftest.$ac_ext <<_ACEOF
4586
 
/* confdefs.h.  */
4587
 
_ACEOF
4588
 
cat confdefs.h >>conftest.$ac_ext
4589
 
cat >>conftest.$ac_ext <<_ACEOF
 
4928
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590
4929
/* end confdefs.h.  */
4591
4930
#include <termio.h>
4592
4931
Autoconf TCGETA
4593
4932
_ACEOF
4594
4933
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
4934
  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4596
4935
  ac_cv_prog_gcc_traditional=yes
4597
4936
fi
4598
4937
rm -f conftest*
4599
4938
 
4600
4939
  fi
4601
4940
fi
4602
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4603
 
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
 
4941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
 
4942
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4604
4943
  if test $ac_cv_prog_gcc_traditional = yes; then
4605
4944
    CC="$CC -traditional"
4606
4945
  fi
4607
4946
fi
4608
4947
 
4609
 
 
4610
 
cat >>confdefs.h <<\_ACEOF
4611
 
#define _GNU_SOURCE 1
4612
 
_ACEOF
 
4948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4949
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4950
if test "${ac_cv_header_stdc+set}" = set; then :
 
4951
  $as_echo_n "(cached) " >&6
 
4952
else
 
4953
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4954
/* end confdefs.h.  */
 
4955
#include <stdlib.h>
 
4956
#include <stdarg.h>
 
4957
#include <string.h>
 
4958
#include <float.h>
 
4959
 
 
4960
int
 
4961
main ()
 
4962
{
 
4963
 
 
4964
  ;
 
4965
  return 0;
 
4966
}
 
4967
_ACEOF
 
4968
if ac_fn_c_try_compile "$LINENO"; then :
 
4969
  ac_cv_header_stdc=yes
 
4970
else
 
4971
  ac_cv_header_stdc=no
 
4972
fi
 
4973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4974
 
 
4975
if test $ac_cv_header_stdc = yes; then
 
4976
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4977
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4978
/* end confdefs.h.  */
 
4979
#include <string.h>
 
4980
 
 
4981
_ACEOF
 
4982
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4983
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4984
 
 
4985
else
 
4986
  ac_cv_header_stdc=no
 
4987
fi
 
4988
rm -f conftest*
 
4989
 
 
4990
fi
 
4991
 
 
4992
if test $ac_cv_header_stdc = yes; then
 
4993
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4994
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4995
/* end confdefs.h.  */
 
4996
#include <stdlib.h>
 
4997
 
 
4998
_ACEOF
 
4999
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5000
  $EGREP "free" >/dev/null 2>&1; then :
 
5001
 
 
5002
else
 
5003
  ac_cv_header_stdc=no
 
5004
fi
 
5005
rm -f conftest*
 
5006
 
 
5007
fi
 
5008
 
 
5009
if test $ac_cv_header_stdc = yes; then
 
5010
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5011
  if test "$cross_compiling" = yes; then :
 
5012
  :
 
5013
else
 
5014
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5015
/* end confdefs.h.  */
 
5016
#include <ctype.h>
 
5017
#include <stdlib.h>
 
5018
#if ((' ' & 0x0FF) == 0x020)
 
5019
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5020
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5021
#else
 
5022
# define ISLOWER(c) \
 
5023
                   (('a' <= (c) && (c) <= 'i') \
 
5024
                     || ('j' <= (c) && (c) <= 'r') \
 
5025
                     || ('s' <= (c) && (c) <= 'z'))
 
5026
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5027
#endif
 
5028
 
 
5029
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5030
int
 
5031
main ()
 
5032
{
 
5033
  int i;
 
5034
  for (i = 0; i < 256; i++)
 
5035
    if (XOR (islower (i), ISLOWER (i))
 
5036
        || toupper (i) != TOUPPER (i))
 
5037
      return 2;
 
5038
  return 0;
 
5039
}
 
5040
_ACEOF
 
5041
if ac_fn_c_try_run "$LINENO"; then :
 
5042
 
 
5043
else
 
5044
  ac_cv_header_stdc=no
 
5045
fi
 
5046
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5047
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5048
fi
 
5049
 
 
5050
fi
 
5051
fi
 
5052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
5053
$as_echo "$ac_cv_header_stdc" >&6; }
 
5054
if test $ac_cv_header_stdc = yes; then
 
5055
 
 
5056
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
5057
 
 
5058
fi
 
5059
 
 
5060
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5061
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5062
                  inttypes.h stdint.h unistd.h
 
5063
do :
 
5064
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5065
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
5066
"
 
5067
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
5068
  cat >>confdefs.h <<_ACEOF
 
5069
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5070
_ACEOF
 
5071
 
 
5072
fi
 
5073
 
 
5074
done
 
5075
 
 
5076
 
 
5077
 
 
5078
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
5079
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
 
5080
  MINIX=yes
 
5081
else
 
5082
  MINIX=
 
5083
fi
 
5084
 
 
5085
 
 
5086
  if test "$MINIX" = yes; then
 
5087
 
 
5088
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
5089
 
 
5090
 
 
5091
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
5092
 
 
5093
 
 
5094
$as_echo "#define _MINIX 1" >>confdefs.h
 
5095
 
 
5096
  fi
 
5097
 
 
5098
 
 
5099
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
5100
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
5101
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
5102
  $as_echo_n "(cached) " >&6
 
5103
else
 
5104
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5105
/* end confdefs.h.  */
 
5106
 
 
5107
#         define __EXTENSIONS__ 1
 
5108
          $ac_includes_default
 
5109
int
 
5110
main ()
 
5111
{
 
5112
 
 
5113
  ;
 
5114
  return 0;
 
5115
}
 
5116
_ACEOF
 
5117
if ac_fn_c_try_compile "$LINENO"; then :
 
5118
  ac_cv_safe_to_define___extensions__=yes
 
5119
else
 
5120
  ac_cv_safe_to_define___extensions__=no
 
5121
fi
 
5122
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5123
fi
 
5124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
5125
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
5126
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
5127
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
5128
 
 
5129
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
5130
 
 
5131
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
5132
 
 
5133
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
5134
 
 
5135
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
5136
 
4613
5137
 
4614
5138
 
4615
5139
 
4619
5143
do
4620
5144
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4621
5145
set dummy $ac_prog; ac_word=$2
4622
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4623
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624
 
if test "${ac_cv_prog_MAN2HTML+set}" = set; then
4625
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5147
$as_echo_n "checking for $ac_word... " >&6; }
 
5148
if test "${ac_cv_prog_MAN2HTML+set}" = set; then :
 
5149
  $as_echo_n "(cached) " >&6
4626
5150
else
4627
5151
  if test -n "$MAN2HTML"; then
4628
5152
  ac_cv_prog_MAN2HTML="$MAN2HTML" # Let the user override the test.
4632
5156
do
4633
5157
  IFS=$as_save_IFS
4634
5158
  test -z "$as_dir" && as_dir=.
4635
 
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5159
    for ac_exec_ext in '' $ac_executable_extensions; do
4636
5160
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637
5161
    ac_cv_prog_MAN2HTML="$ac_prog"
4638
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5162
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639
5163
    break 2
4640
5164
  fi
4641
5165
done
4642
 
done
 
5166
  done
4643
5167
IFS=$as_save_IFS
4644
5168
 
4645
5169
fi
4646
5170
fi
4647
5171
MAN2HTML=$ac_cv_prog_MAN2HTML
4648
5172
if test -n "$MAN2HTML"; then
4649
 
  { echo "$as_me:$LINENO: result: $MAN2HTML" >&5
4650
 
echo "${ECHO_T}$MAN2HTML" >&6; }
 
5173
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
 
5174
$as_echo "$MAN2HTML" >&6; }
4651
5175
else
4652
 
  { echo "$as_me:$LINENO: result: no" >&5
4653
 
echo "${ECHO_T}no" >&6; }
 
5176
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5177
$as_echo "no" >&6; }
4654
5178
fi
4655
5179
 
4656
5180
 
4657
5181
  test -n "$MAN2HTML" && break
4658
5182
done
4659
5183
 
4660
 
        test -z "${MAN2HTML}" && { { echo "$as_me:$LINENO: error: man2html is required for win32" >&5
4661
 
echo "$as_me: error: man2html is required for win32" >&2;}
4662
 
   { (exit 1); exit 1; }; }
 
5184
        test -z "${MAN2HTML}" && as_fn_error $? "man2html is required for win32" "$LINENO" 5
4663
5185
fi
4664
5186
 
4665
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4666
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4667
 
if test "${ac_cv_header_stdc+set}" = set; then
4668
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
5188
$as_echo_n "checking for ANSI C header files... " >&6; }
 
5189
if test "${ac_cv_header_stdc+set}" = set; then :
 
5190
  $as_echo_n "(cached) " >&6
4669
5191
else
4670
 
  cat >conftest.$ac_ext <<_ACEOF
4671
 
/* confdefs.h.  */
4672
 
_ACEOF
4673
 
cat confdefs.h >>conftest.$ac_ext
4674
 
cat >>conftest.$ac_ext <<_ACEOF
 
5192
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675
5193
/* end confdefs.h.  */
4676
5194
#include <stdlib.h>
4677
5195
#include <stdarg.h>
4686
5204
  return 0;
4687
5205
}
4688
5206
_ACEOF
4689
 
rm -f conftest.$ac_objext
4690
 
if { (ac_try="$ac_compile"
4691
 
case "(($ac_try" in
4692
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693
 
  *) ac_try_echo=$ac_try;;
4694
 
esac
4695
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696
 
  (eval "$ac_compile") 2>conftest.er1
4697
 
  ac_status=$?
4698
 
  grep -v '^ *+' conftest.er1 >conftest.err
4699
 
  rm -f conftest.er1
4700
 
  cat conftest.err >&5
4701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702
 
  (exit $ac_status); } && {
4703
 
         test -z "$ac_c_werror_flag" ||
4704
 
         test ! -s conftest.err
4705
 
       } && test -s conftest.$ac_objext; then
 
5207
if ac_fn_c_try_compile "$LINENO"; then :
4706
5208
  ac_cv_header_stdc=yes
4707
5209
else
4708
 
  echo "$as_me: failed program was:" >&5
4709
 
sed 's/^/| /' conftest.$ac_ext >&5
4710
 
 
4711
 
        ac_cv_header_stdc=no
 
5210
  ac_cv_header_stdc=no
4712
5211
fi
4713
 
 
4714
5212
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715
5213
 
4716
5214
if test $ac_cv_header_stdc = yes; then
4717
5215
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4718
 
  cat >conftest.$ac_ext <<_ACEOF
4719
 
/* confdefs.h.  */
4720
 
_ACEOF
4721
 
cat confdefs.h >>conftest.$ac_ext
4722
 
cat >>conftest.$ac_ext <<_ACEOF
 
5216
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723
5217
/* end confdefs.h.  */
4724
5218
#include <string.h>
4725
5219
 
4726
5220
_ACEOF
4727
5221
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4728
 
  $EGREP "memchr" >/dev/null 2>&1; then
4729
 
  :
 
5222
  $EGREP "memchr" >/dev/null 2>&1; then :
 
5223
 
4730
5224
else
4731
5225
  ac_cv_header_stdc=no
4732
5226
fi
4736
5230
 
4737
5231
if test $ac_cv_header_stdc = yes; then
4738
5232
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4739
 
  cat >conftest.$ac_ext <<_ACEOF
4740
 
/* confdefs.h.  */
4741
 
_ACEOF
4742
 
cat confdefs.h >>conftest.$ac_ext
4743
 
cat >>conftest.$ac_ext <<_ACEOF
 
5233
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744
5234
/* end confdefs.h.  */
4745
5235
#include <stdlib.h>
4746
5236
 
4747
5237
_ACEOF
4748
5238
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749
 
  $EGREP "free" >/dev/null 2>&1; then
4750
 
  :
 
5239
  $EGREP "free" >/dev/null 2>&1; then :
 
5240
 
4751
5241
else
4752
5242
  ac_cv_header_stdc=no
4753
5243
fi
4757
5247
 
4758
5248
if test $ac_cv_header_stdc = yes; then
4759
5249
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4760
 
  if test "$cross_compiling" = yes; then
 
5250
  if test "$cross_compiling" = yes; then :
4761
5251
  :
4762
5252
else
4763
 
  cat >conftest.$ac_ext <<_ACEOF
4764
 
/* confdefs.h.  */
4765
 
_ACEOF
4766
 
cat confdefs.h >>conftest.$ac_ext
4767
 
cat >>conftest.$ac_ext <<_ACEOF
 
5253
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768
5254
/* end confdefs.h.  */
4769
5255
#include <ctype.h>
4770
5256
#include <stdlib.h>
4791
5277
  return 0;
4792
5278
}
4793
5279
_ACEOF
4794
 
rm -f conftest$ac_exeext
4795
 
if { (ac_try="$ac_link"
4796
 
case "(($ac_try" in
4797
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798
 
  *) ac_try_echo=$ac_try;;
4799
 
esac
4800
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801
 
  (eval "$ac_link") 2>&5
4802
 
  ac_status=$?
4803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4805
 
  { (case "(($ac_try" in
4806
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807
 
  *) ac_try_echo=$ac_try;;
4808
 
esac
4809
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810
 
  (eval "$ac_try") 2>&5
4811
 
  ac_status=$?
4812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813
 
  (exit $ac_status); }; }; then
4814
 
  :
 
5280
if ac_fn_c_try_run "$LINENO"; then :
 
5281
 
4815
5282
else
4816
 
  echo "$as_me: program exited with status $ac_status" >&5
4817
 
echo "$as_me: failed program was:" >&5
4818
 
sed 's/^/| /' conftest.$ac_ext >&5
4819
 
 
4820
 
( exit $ac_status )
4821
 
ac_cv_header_stdc=no
4822
 
fi
4823
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4824
 
fi
4825
 
 
4826
 
 
4827
 
fi
4828
 
fi
4829
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4830
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5283
  ac_cv_header_stdc=no
 
5284
fi
 
5285
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5286
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5287
fi
 
5288
 
 
5289
fi
 
5290
fi
 
5291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
5292
$as_echo "$ac_cv_header_stdc" >&6; }
4831
5293
if test $ac_cv_header_stdc = yes; then
4832
5294
 
4833
 
cat >>confdefs.h <<\_ACEOF
4834
 
#define STDC_HEADERS 1
4835
 
_ACEOF
 
5295
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4836
5296
 
4837
5297
fi
4838
5298
 
4839
5299
 
4840
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4841
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4842
 
if test "${ac_cv_c_const+set}" = set; then
4843
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
5301
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
5302
if test "${ac_cv_c_const+set}" = set; then :
 
5303
  $as_echo_n "(cached) " >&6
4844
5304
else
4845
 
  cat >conftest.$ac_ext <<_ACEOF
4846
 
/* confdefs.h.  */
4847
 
_ACEOF
4848
 
cat confdefs.h >>conftest.$ac_ext
4849
 
cat >>conftest.$ac_ext <<_ACEOF
 
5305
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850
5306
/* end confdefs.h.  */
4851
5307
 
4852
5308
int
4906
5362
  return 0;
4907
5363
}
4908
5364
_ACEOF
4909
 
rm -f conftest.$ac_objext
4910
 
if { (ac_try="$ac_compile"
4911
 
case "(($ac_try" in
4912
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913
 
  *) ac_try_echo=$ac_try;;
4914
 
esac
4915
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916
 
  (eval "$ac_compile") 2>conftest.er1
4917
 
  ac_status=$?
4918
 
  grep -v '^ *+' conftest.er1 >conftest.err
4919
 
  rm -f conftest.er1
4920
 
  cat conftest.err >&5
4921
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922
 
  (exit $ac_status); } && {
4923
 
         test -z "$ac_c_werror_flag" ||
4924
 
         test ! -s conftest.err
4925
 
       } && test -s conftest.$ac_objext; then
 
5365
if ac_fn_c_try_compile "$LINENO"; then :
4926
5366
  ac_cv_c_const=yes
4927
5367
else
4928
 
  echo "$as_me: failed program was:" >&5
4929
 
sed 's/^/| /' conftest.$ac_ext >&5
4930
 
 
4931
 
        ac_cv_c_const=no
 
5368
  ac_cv_c_const=no
4932
5369
fi
4933
 
 
4934
5370
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935
5371
fi
4936
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4937
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
5372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
5373
$as_echo "$ac_cv_c_const" >&6; }
4938
5374
if test $ac_cv_c_const = no; then
4939
5375
 
4940
 
cat >>confdefs.h <<\_ACEOF
4941
 
#define const
4942
 
_ACEOF
 
5376
$as_echo "#define const /**/" >>confdefs.h
4943
5377
 
4944
5378
fi
4945
5379
 
4946
 
{ echo "$as_me:$LINENO: checking for inline" >&5
4947
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4948
 
if test "${ac_cv_c_inline+set}" = set; then
4949
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
5381
$as_echo_n "checking for inline... " >&6; }
 
5382
if test "${ac_cv_c_inline+set}" = set; then :
 
5383
  $as_echo_n "(cached) " >&6
4950
5384
else
4951
5385
  ac_cv_c_inline=no
4952
5386
for ac_kw in inline __inline__ __inline; do
4953
 
  cat >conftest.$ac_ext <<_ACEOF
4954
 
/* confdefs.h.  */
4955
 
_ACEOF
4956
 
cat confdefs.h >>conftest.$ac_ext
4957
 
cat >>conftest.$ac_ext <<_ACEOF
 
5387
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958
5388
/* end confdefs.h.  */
4959
5389
#ifndef __cplusplus
4960
5390
typedef int foo_t;
4963
5393
#endif
4964
5394
 
4965
5395
_ACEOF
4966
 
rm -f conftest.$ac_objext
4967
 
if { (ac_try="$ac_compile"
4968
 
case "(($ac_try" in
4969
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970
 
  *) ac_try_echo=$ac_try;;
4971
 
esac
4972
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973
 
  (eval "$ac_compile") 2>conftest.er1
4974
 
  ac_status=$?
4975
 
  grep -v '^ *+' conftest.er1 >conftest.err
4976
 
  rm -f conftest.er1
4977
 
  cat conftest.err >&5
4978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979
 
  (exit $ac_status); } && {
4980
 
         test -z "$ac_c_werror_flag" ||
4981
 
         test ! -s conftest.err
4982
 
       } && test -s conftest.$ac_objext; then
 
5396
if ac_fn_c_try_compile "$LINENO"; then :
4983
5397
  ac_cv_c_inline=$ac_kw
4984
 
else
4985
 
  echo "$as_me: failed program was:" >&5
4986
 
sed 's/^/| /' conftest.$ac_ext >&5
4987
 
 
4988
 
 
4989
5398
fi
4990
 
 
4991
5399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992
5400
  test "$ac_cv_c_inline" != no && break
4993
5401
done
4994
5402
 
4995
5403
fi
4996
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4997
 
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4998
 
 
 
5404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
5405
$as_echo "$ac_cv_c_inline" >&6; }
4999
5406
 
5000
5407
case $ac_cv_c_inline in
5001
5408
  inline | yes) ;;
5012
5419
    ;;
5013
5420
esac
5014
5421
 
5015
 
{ echo "$as_me:$LINENO: checking for working volatile" >&5
5016
 
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
5017
 
if test "${ac_cv_c_volatile+set}" = set; then
5018
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
 
5423
$as_echo_n "checking for working volatile... " >&6; }
 
5424
if test "${ac_cv_c_volatile+set}" = set; then :
 
5425
  $as_echo_n "(cached) " >&6
5019
5426
else
5020
 
  cat >conftest.$ac_ext <<_ACEOF
5021
 
/* confdefs.h.  */
5022
 
_ACEOF
5023
 
cat confdefs.h >>conftest.$ac_ext
5024
 
cat >>conftest.$ac_ext <<_ACEOF
 
5427
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025
5428
/* end confdefs.h.  */
5026
5429
 
5027
5430
int
5035
5438
  return 0;
5036
5439
}
5037
5440
_ACEOF
5038
 
rm -f conftest.$ac_objext
5039
 
if { (ac_try="$ac_compile"
5040
 
case "(($ac_try" in
5041
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042
 
  *) ac_try_echo=$ac_try;;
5043
 
esac
5044
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045
 
  (eval "$ac_compile") 2>conftest.er1
5046
 
  ac_status=$?
5047
 
  grep -v '^ *+' conftest.er1 >conftest.err
5048
 
  rm -f conftest.er1
5049
 
  cat conftest.err >&5
5050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051
 
  (exit $ac_status); } && {
5052
 
         test -z "$ac_c_werror_flag" ||
5053
 
         test ! -s conftest.err
5054
 
       } && test -s conftest.$ac_objext; then
 
5441
if ac_fn_c_try_compile "$LINENO"; then :
5055
5442
  ac_cv_c_volatile=yes
5056
5443
else
5057
 
  echo "$as_me: failed program was:" >&5
5058
 
sed 's/^/| /' conftest.$ac_ext >&5
5059
 
 
5060
 
        ac_cv_c_volatile=no
 
5444
  ac_cv_c_volatile=no
5061
5445
fi
5062
 
 
5063
5446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064
5447
fi
5065
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5066
 
echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
 
5448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
 
5449
$as_echo "$ac_cv_c_volatile" >&6; }
5067
5450
if test $ac_cv_c_volatile = no; then
5068
5451
 
5069
 
cat >>confdefs.h <<\_ACEOF
5070
 
#define volatile
5071
 
_ACEOF
5072
 
 
5073
 
fi
5074
 
 
5075
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5076
 
 
5077
 
 
5078
 
 
5079
 
 
5080
 
 
5081
 
 
5082
 
 
5083
 
 
5084
 
 
5085
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5086
 
                  inttypes.h stdint.h unistd.h
5087
 
do
5088
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5089
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5090
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5091
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5092
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5093
 
else
5094
 
  cat >conftest.$ac_ext <<_ACEOF
5095
 
/* confdefs.h.  */
5096
 
_ACEOF
5097
 
cat confdefs.h >>conftest.$ac_ext
5098
 
cat >>conftest.$ac_ext <<_ACEOF
5099
 
/* end confdefs.h.  */
5100
 
$ac_includes_default
5101
 
 
5102
 
#include <$ac_header>
5103
 
_ACEOF
5104
 
rm -f conftest.$ac_objext
5105
 
if { (ac_try="$ac_compile"
5106
 
case "(($ac_try" in
5107
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108
 
  *) ac_try_echo=$ac_try;;
5109
 
esac
5110
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111
 
  (eval "$ac_compile") 2>conftest.er1
5112
 
  ac_status=$?
5113
 
  grep -v '^ *+' conftest.er1 >conftest.err
5114
 
  rm -f conftest.er1
5115
 
  cat conftest.err >&5
5116
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117
 
  (exit $ac_status); } && {
5118
 
         test -z "$ac_c_werror_flag" ||
5119
 
         test ! -s conftest.err
5120
 
       } && test -s conftest.$ac_objext; then
5121
 
  eval "$as_ac_Header=yes"
5122
 
else
5123
 
  echo "$as_me: failed program was:" >&5
5124
 
sed 's/^/| /' conftest.$ac_ext >&5
5125
 
 
5126
 
        eval "$as_ac_Header=no"
5127
 
fi
5128
 
 
5129
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130
 
fi
5131
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5132
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5133
 
echo "${ECHO_T}$ac_res" >&6; }
5134
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5135
 
  cat >>confdefs.h <<_ACEOF
5136
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5137
 
_ACEOF
5138
 
 
5139
 
fi
5140
 
 
5141
 
done
5142
 
 
5143
 
 
5144
 
{ echo "$as_me:$LINENO: checking for off_t" >&5
5145
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5146
 
if test "${ac_cv_type_off_t+set}" = set; then
5147
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5148
 
else
5149
 
  cat >conftest.$ac_ext <<_ACEOF
5150
 
/* confdefs.h.  */
5151
 
_ACEOF
5152
 
cat confdefs.h >>conftest.$ac_ext
5153
 
cat >>conftest.$ac_ext <<_ACEOF
5154
 
/* end confdefs.h.  */
5155
 
$ac_includes_default
5156
 
typedef off_t ac__type_new_;
5157
 
int
5158
 
main ()
5159
 
{
5160
 
if ((ac__type_new_ *) 0)
5161
 
  return 0;
5162
 
if (sizeof (ac__type_new_))
5163
 
  return 0;
5164
 
  ;
5165
 
  return 0;
5166
 
}
5167
 
_ACEOF
5168
 
rm -f conftest.$ac_objext
5169
 
if { (ac_try="$ac_compile"
5170
 
case "(($ac_try" in
5171
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172
 
  *) ac_try_echo=$ac_try;;
5173
 
esac
5174
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175
 
  (eval "$ac_compile") 2>conftest.er1
5176
 
  ac_status=$?
5177
 
  grep -v '^ *+' conftest.er1 >conftest.err
5178
 
  rm -f conftest.er1
5179
 
  cat conftest.err >&5
5180
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181
 
  (exit $ac_status); } && {
5182
 
         test -z "$ac_c_werror_flag" ||
5183
 
         test ! -s conftest.err
5184
 
       } && test -s conftest.$ac_objext; then
5185
 
  ac_cv_type_off_t=yes
5186
 
else
5187
 
  echo "$as_me: failed program was:" >&5
5188
 
sed 's/^/| /' conftest.$ac_ext >&5
5189
 
 
5190
 
        ac_cv_type_off_t=no
5191
 
fi
5192
 
 
5193
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194
 
fi
5195
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5196
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5197
 
if test $ac_cv_type_off_t = yes; then
5198
 
  :
 
5452
$as_echo "#define volatile /**/" >>confdefs.h
 
5453
 
 
5454
fi
 
5455
 
 
5456
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
5457
if test "x$ac_cv_type_off_t" = x""yes; then :
 
5458
 
5199
5459
else
5200
5460
 
5201
5461
cat >>confdefs.h <<_ACEOF
5204
5464
 
5205
5465
fi
5206
5466
 
5207
 
{ echo "$as_me:$LINENO: checking for pid_t" >&5
5208
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5209
 
if test "${ac_cv_type_pid_t+set}" = set; then
5210
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5211
 
else
5212
 
  cat >conftest.$ac_ext <<_ACEOF
5213
 
/* confdefs.h.  */
5214
 
_ACEOF
5215
 
cat confdefs.h >>conftest.$ac_ext
5216
 
cat >>conftest.$ac_ext <<_ACEOF
5217
 
/* end confdefs.h.  */
5218
 
$ac_includes_default
5219
 
typedef pid_t ac__type_new_;
5220
 
int
5221
 
main ()
5222
 
{
5223
 
if ((ac__type_new_ *) 0)
5224
 
  return 0;
5225
 
if (sizeof (ac__type_new_))
5226
 
  return 0;
5227
 
  ;
5228
 
  return 0;
5229
 
}
5230
 
_ACEOF
5231
 
rm -f conftest.$ac_objext
5232
 
if { (ac_try="$ac_compile"
5233
 
case "(($ac_try" in
5234
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235
 
  *) ac_try_echo=$ac_try;;
5236
 
esac
5237
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238
 
  (eval "$ac_compile") 2>conftest.er1
5239
 
  ac_status=$?
5240
 
  grep -v '^ *+' conftest.er1 >conftest.err
5241
 
  rm -f conftest.er1
5242
 
  cat conftest.err >&5
5243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244
 
  (exit $ac_status); } && {
5245
 
         test -z "$ac_c_werror_flag" ||
5246
 
         test ! -s conftest.err
5247
 
       } && test -s conftest.$ac_objext; then
5248
 
  ac_cv_type_pid_t=yes
5249
 
else
5250
 
  echo "$as_me: failed program was:" >&5
5251
 
sed 's/^/| /' conftest.$ac_ext >&5
5252
 
 
5253
 
        ac_cv_type_pid_t=no
5254
 
fi
5255
 
 
5256
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257
 
fi
5258
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5259
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5260
 
if test $ac_cv_type_pid_t = yes; then
5261
 
  :
 
5467
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
5468
if test "x$ac_cv_type_pid_t" = x""yes; then :
 
5469
 
5262
5470
else
5263
5471
 
5264
5472
cat >>confdefs.h <<_ACEOF
5267
5475
 
5268
5476
fi
5269
5477
 
5270
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
5271
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5272
 
if test "${ac_cv_type_size_t+set}" = set; then
5273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5274
 
else
5275
 
  cat >conftest.$ac_ext <<_ACEOF
5276
 
/* confdefs.h.  */
5277
 
_ACEOF
5278
 
cat confdefs.h >>conftest.$ac_ext
5279
 
cat >>conftest.$ac_ext <<_ACEOF
5280
 
/* end confdefs.h.  */
5281
 
$ac_includes_default
5282
 
typedef size_t ac__type_new_;
5283
 
int
5284
 
main ()
5285
 
{
5286
 
if ((ac__type_new_ *) 0)
5287
 
  return 0;
5288
 
if (sizeof (ac__type_new_))
5289
 
  return 0;
5290
 
  ;
5291
 
  return 0;
5292
 
}
5293
 
_ACEOF
5294
 
rm -f conftest.$ac_objext
5295
 
if { (ac_try="$ac_compile"
5296
 
case "(($ac_try" in
5297
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298
 
  *) ac_try_echo=$ac_try;;
5299
 
esac
5300
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301
 
  (eval "$ac_compile") 2>conftest.er1
5302
 
  ac_status=$?
5303
 
  grep -v '^ *+' conftest.er1 >conftest.err
5304
 
  rm -f conftest.er1
5305
 
  cat conftest.err >&5
5306
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307
 
  (exit $ac_status); } && {
5308
 
         test -z "$ac_c_werror_flag" ||
5309
 
         test ! -s conftest.err
5310
 
       } && test -s conftest.$ac_objext; then
5311
 
  ac_cv_type_size_t=yes
5312
 
else
5313
 
  echo "$as_me: failed program was:" >&5
5314
 
sed 's/^/| /' conftest.$ac_ext >&5
5315
 
 
5316
 
        ac_cv_type_size_t=no
5317
 
fi
5318
 
 
5319
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320
 
fi
5321
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5322
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5323
 
if test $ac_cv_type_size_t = yes; then
5324
 
  :
 
5478
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
5479
if test "x$ac_cv_type_size_t" = x""yes; then :
 
5480
 
5325
5481
else
5326
5482
 
5327
5483
cat >>confdefs.h <<_ACEOF
5330
5486
 
5331
5487
fi
5332
5488
 
5333
 
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5334
 
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5335
 
if test "${ac_cv_type_uid_t+set}" = set; then
5336
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
 
5490
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
 
5491
if test "${ac_cv_type_uid_t+set}" = set; then :
 
5492
  $as_echo_n "(cached) " >&6
5337
5493
else
5338
 
  cat >conftest.$ac_ext <<_ACEOF
5339
 
/* confdefs.h.  */
5340
 
_ACEOF
5341
 
cat confdefs.h >>conftest.$ac_ext
5342
 
cat >>conftest.$ac_ext <<_ACEOF
 
5494
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343
5495
/* end confdefs.h.  */
5344
5496
#include <sys/types.h>
5345
5497
 
5346
5498
_ACEOF
5347
5499
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5348
 
  $EGREP "uid_t" >/dev/null 2>&1; then
 
5500
  $EGREP "uid_t" >/dev/null 2>&1; then :
5349
5501
  ac_cv_type_uid_t=yes
5350
5502
else
5351
5503
  ac_cv_type_uid_t=no
5353
5505
rm -f conftest*
5354
5506
 
5355
5507
fi
5356
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5357
 
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
 
5508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
 
5509
$as_echo "$ac_cv_type_uid_t" >&6; }
5358
5510
if test $ac_cv_type_uid_t = no; then
5359
5511
 
5360
 
cat >>confdefs.h <<\_ACEOF
5361
 
#define uid_t int
5362
 
_ACEOF
5363
 
 
5364
 
 
5365
 
cat >>confdefs.h <<\_ACEOF
5366
 
#define gid_t int
5367
 
_ACEOF
 
5512
$as_echo "#define uid_t int" >>confdefs.h
 
5513
 
 
5514
 
 
5515
$as_echo "#define gid_t int" >>confdefs.h
5368
5516
 
5369
5517
fi
5370
5518
 
5371
5519
 
5372
 
   { echo "$as_me:$LINENO: checking for socklen_t" >&5
5373
 
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
5374
 
if test "${ac_cv_type_socklen_t+set}" = set; then
5375
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5376
 
else
5377
 
  cat >conftest.$ac_ext <<_ACEOF
5378
 
/* confdefs.h.  */
5379
 
_ACEOF
5380
 
cat confdefs.h >>conftest.$ac_ext
5381
 
cat >>conftest.$ac_ext <<_ACEOF
5382
 
/* end confdefs.h.  */
5383
 
#include <sys/types.h>
 
5520
   ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5384
5521
#include <sys/socket.h>
5385
 
 
5386
 
typedef socklen_t ac__type_new_;
5387
 
int
5388
 
main ()
5389
 
{
5390
 
if ((ac__type_new_ *) 0)
5391
 
  return 0;
5392
 
if (sizeof (ac__type_new_))
5393
 
  return 0;
5394
 
  ;
5395
 
  return 0;
5396
 
}
5397
 
_ACEOF
5398
 
rm -f conftest.$ac_objext
5399
 
if { (ac_try="$ac_compile"
5400
 
case "(($ac_try" in
5401
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402
 
  *) ac_try_echo=$ac_try;;
5403
 
esac
5404
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405
 
  (eval "$ac_compile") 2>conftest.er1
5406
 
  ac_status=$?
5407
 
  grep -v '^ *+' conftest.er1 >conftest.err
5408
 
  rm -f conftest.er1
5409
 
  cat conftest.err >&5
5410
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411
 
  (exit $ac_status); } && {
5412
 
         test -z "$ac_c_werror_flag" ||
5413
 
         test ! -s conftest.err
5414
 
       } && test -s conftest.$ac_objext; then
5415
 
  ac_cv_type_socklen_t=yes
5416
 
else
5417
 
  echo "$as_me: failed program was:" >&5
5418
 
sed 's/^/| /' conftest.$ac_ext >&5
5419
 
 
5420
 
        ac_cv_type_socklen_t=no
5421
 
fi
5422
 
 
5423
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424
 
fi
5425
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5426
 
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
5427
 
if test $ac_cv_type_socklen_t = yes; then
5428
 
  :
5429
 
else
5430
 
 
5431
 
      { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
5432
 
echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
5433
 
      if test "${curl_cv_socklen_t_equiv+set}" = set; then
5434
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5435
 
else
5436
 
 
5437
 
         # Systems have either "struct sockaddr *" or
5438
 
         # "void *" as the second argument to getpeername
5439
 
         curl_cv_socklen_t_equiv=
5440
 
         for arg2 in "struct sockaddr" void; do
5441
 
            for t in int size_t unsigned long "unsigned long"; do
5442
 
               cat >conftest.$ac_ext <<_ACEOF
5443
 
/* confdefs.h.  */
5444
 
_ACEOF
5445
 
cat confdefs.h >>conftest.$ac_ext
5446
 
cat >>conftest.$ac_ext <<_ACEOF
 
5522
"
 
5523
if test "x$ac_cv_type_socklen_t" = x""yes; then :
 
5524
 
 
5525
else
 
5526
 
 
5527
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
 
5528
$as_echo_n "checking for socklen_t equivalent... " >&6; }
 
5529
      if test "${curl_cv_socklen_t_equiv+set}" = set; then :
 
5530
  $as_echo_n "(cached) " >&6
 
5531
else
 
5532
 
 
5533
         case "$host" in
 
5534
         *-mingw*) curl_cv_socklen_t_equiv=int ;;
 
5535
         *)
 
5536
            # Systems have either "struct sockaddr *" or
 
5537
            # "void *" as the second argument to getpeername
 
5538
            curl_cv_socklen_t_equiv=
 
5539
            for arg2 in "struct sockaddr" void; do
 
5540
               for t in int size_t unsigned long "unsigned long"; do
 
5541
                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447
5542
/* end confdefs.h.  */
5448
5543
 
5449
 
                  #ifdef _WIN32
5450
 
                  #include <windows.h>
5451
 
                  #define PREFIX1 WINSOCK_API_LINKAGE
5452
 
                  #define PREFIX2 PASCAL
5453
 
                  #else
5454
 
                  #include <sys/types.h>
5455
 
                  #include <sys/socket.h>
5456
 
                  #define PREFIX1
5457
 
                  #define PREFIX2
5458
 
                  #define SOCKET int
5459
 
                  #endif
 
5544
                     #include <sys/types.h>
 
5545
                     #include <sys/socket.h>
5460
5546
 
5461
 
                  PREFIX1 int PREFIX2 getpeername (SOCKET, $arg2 *, $t *);
 
5547
                     int getpeername (int, $arg2 *, $t *);
5462
5548
 
5463
5549
int
5464
5550
main ()
5465
5551
{
5466
5552
 
5467
 
                  $t len;
5468
 
                  getpeername(0,0,&len);
 
5553
                     $t len;
 
5554
                     getpeername(0,0,&len);
5469
5555
 
5470
5556
  ;
5471
5557
  return 0;
5472
5558
}
5473
5559
_ACEOF
5474
 
rm -f conftest.$ac_objext
5475
 
if { (ac_try="$ac_compile"
5476
 
case "(($ac_try" in
5477
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478
 
  *) ac_try_echo=$ac_try;;
5479
 
esac
5480
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481
 
  (eval "$ac_compile") 2>conftest.er1
5482
 
  ac_status=$?
5483
 
  grep -v '^ *+' conftest.er1 >conftest.err
5484
 
  rm -f conftest.er1
5485
 
  cat conftest.err >&5
5486
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487
 
  (exit $ac_status); } && {
5488
 
         test -z "$ac_c_werror_flag" ||
5489
 
         test ! -s conftest.err
5490
 
       } && test -s conftest.$ac_objext; then
5491
 
 
5492
 
                  curl_cv_socklen_t_equiv="$t"
5493
 
                  break
5494
 
 
5495
 
else
5496
 
  echo "$as_me: failed program was:" >&5
5497
 
sed 's/^/| /' conftest.$ac_ext >&5
5498
 
 
 
5560
if ac_fn_c_try_compile "$LINENO"; then :
 
5561
 
 
5562
                     curl_cv_socklen_t_equiv="$t"
 
5563
                     break
5499
5564
 
5500
5565
fi
5501
 
 
5502
5566
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5567
               done
5503
5568
            done
5504
 
         done
 
5569
         ;;
 
5570
         esac
5505
5571
 
5506
5572
         if test "x$curl_cv_socklen_t_equiv" = x; then
5507
 
            { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
5508
 
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
5509
 
   { (exit 1); exit 1; }; }
 
5573
            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5510
5574
         fi
5511
5575
 
5512
5576
fi
5513
5577
 
5514
 
      { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
5515
 
echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
 
5578
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
 
5579
$as_echo "$curl_cv_socklen_t_equiv" >&6; }
5516
5580
 
5517
5581
cat >>confdefs.h <<_ACEOF
5518
5582
#define socklen_t $curl_cv_socklen_t_equiv
5521
5585
fi
5522
5586
 
5523
5587
 
5524
 
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5525
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5526
 
if test "${ac_cv_header_time+set}" = set; then
5527
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
 
5589
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
5590
if test "${ac_cv_header_time+set}" = set; then :
 
5591
  $as_echo_n "(cached) " >&6
5528
5592
else
5529
 
  cat >conftest.$ac_ext <<_ACEOF
5530
 
/* confdefs.h.  */
5531
 
_ACEOF
5532
 
cat confdefs.h >>conftest.$ac_ext
5533
 
cat >>conftest.$ac_ext <<_ACEOF
 
5593
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534
5594
/* end confdefs.h.  */
5535
5595
#include <sys/types.h>
5536
5596
#include <sys/time.h>
5545
5605
  return 0;
5546
5606
}
5547
5607
_ACEOF
5548
 
rm -f conftest.$ac_objext
5549
 
if { (ac_try="$ac_compile"
5550
 
case "(($ac_try" in
5551
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552
 
  *) ac_try_echo=$ac_try;;
5553
 
esac
5554
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555
 
  (eval "$ac_compile") 2>conftest.er1
5556
 
  ac_status=$?
5557
 
  grep -v '^ *+' conftest.er1 >conftest.err
5558
 
  rm -f conftest.er1
5559
 
  cat conftest.err >&5
5560
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561
 
  (exit $ac_status); } && {
5562
 
         test -z "$ac_c_werror_flag" ||
5563
 
         test ! -s conftest.err
5564
 
       } && test -s conftest.$ac_objext; then
 
5608
if ac_fn_c_try_compile "$LINENO"; then :
5565
5609
  ac_cv_header_time=yes
5566
5610
else
5567
 
  echo "$as_me: failed program was:" >&5
5568
 
sed 's/^/| /' conftest.$ac_ext >&5
5569
 
 
5570
 
        ac_cv_header_time=no
 
5611
  ac_cv_header_time=no
5571
5612
fi
5572
 
 
5573
5613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574
5614
fi
5575
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5576
 
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
5615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
 
5616
$as_echo "$ac_cv_header_time" >&6; }
5577
5617
if test $ac_cv_header_time = yes; then
5578
5618
 
5579
 
cat >>confdefs.h <<\_ACEOF
5580
 
#define TIME_WITH_SYS_TIME 1
5581
 
_ACEOF
 
5619
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5582
5620
 
5583
5621
fi
5584
5622
 
5585
 
        { echo "$as_me:$LINENO: checking for ISO C 1999 vararg macro support" >&5
5586
 
echo $ECHO_N "checking for ISO C 1999 vararg macro support... $ECHO_C" >&6; }
5587
 
if test "${ax_cv_cpp_vararg_macro_iso+set}" = set; then
5588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5623
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
 
5624
$as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
 
5625
if test "${ax_cv_cpp_vararg_macro_iso+set}" = set; then :
 
5626
  $as_echo_n "(cached) " >&6
5589
5627
else
5590
 
        cat >conftest.$ac_ext <<_ACEOF
 
5628
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5629
/* end confdefs.h.  */
5591
5630
 
5592
5631
#define macro(a, ...) func(a, __VA_ARGS__)
5593
5632
        int func(int a, int b, int c);
5594
5633
        int test() { return macro(1, 2, 3); }
5595
5634
 
5596
5635
_ACEOF
5597
 
rm -f conftest.$ac_objext
5598
 
if { (ac_try="$ac_compile"
5599
 
case "(($ac_try" in
5600
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601
 
  *) ac_try_echo=$ac_try;;
5602
 
esac
5603
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604
 
  (eval "$ac_compile") 2>conftest.er1
5605
 
  ac_status=$?
5606
 
  grep -v '^ *+' conftest.er1 >conftest.err
5607
 
  rm -f conftest.er1
5608
 
  cat conftest.err >&5
5609
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610
 
  (exit $ac_status); } && {
5611
 
         test -z "$ac_c_werror_flag" ||
5612
 
         test ! -s conftest.err
5613
 
       } && test -s conftest.$ac_objext; then
 
5636
if ac_fn_c_try_compile "$LINENO"; then :
5614
5637
   ax_cv_cpp_vararg_macro_iso=yes
5615
5638
else
5616
 
  echo "$as_me: failed program was:" >&5
5617
 
sed 's/^/| /' conftest.$ac_ext >&5
5618
 
 
5619
 
        ax_cv_cpp_vararg_macro_iso=no
 
5639
  ax_cv_cpp_vararg_macro_iso=no
5620
5640
fi
5621
 
 
5622
5641
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623
5642
fi
5624
 
{ echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_iso" >&5
5625
 
echo "${ECHO_T}$ax_cv_cpp_vararg_macro_iso" >&6; }
 
5643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
 
5644
$as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
5626
5645
    if test $ax_cv_cpp_vararg_macro_iso = yes ; then
5627
5646
 
5628
 
cat >>confdefs.h <<\_ACEOF
5629
 
#define HAVE_CPP_VARARG_MACRO_ISO 1
5630
 
_ACEOF
 
5647
$as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
5631
5648
 
5632
5649
    fi
5633
5650
 
5634
 
        { echo "$as_me:$LINENO: checking for GNU GCC vararg macro support" >&5
5635
 
echo $ECHO_N "checking for GNU GCC vararg macro support... $ECHO_C" >&6; }
5636
 
if test "${ax_cv_cpp_vararg_macro_gcc+set}" = set; then
5637
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5651
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
 
5652
$as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
 
5653
if test "${ax_cv_cpp_vararg_macro_gcc+set}" = set; then :
 
5654
  $as_echo_n "(cached) " >&6
5638
5655
else
5639
 
        cat >conftest.$ac_ext <<_ACEOF
 
5656
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5657
/* end confdefs.h.  */
5640
5658
 
5641
5659
        #define macro(a, b...) func(a, b)
5642
5660
        int func(int a, int b, int c);
5643
5661
        int test() { return macro(1, 2, 3); }
5644
5662
 
5645
5663
_ACEOF
5646
 
rm -f conftest.$ac_objext
5647
 
if { (ac_try="$ac_compile"
5648
 
case "(($ac_try" in
5649
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650
 
  *) ac_try_echo=$ac_try;;
5651
 
esac
5652
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653
 
  (eval "$ac_compile") 2>conftest.er1
5654
 
  ac_status=$?
5655
 
  grep -v '^ *+' conftest.er1 >conftest.err
5656
 
  rm -f conftest.er1
5657
 
  cat conftest.err >&5
5658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659
 
  (exit $ac_status); } && {
5660
 
         test -z "$ac_c_werror_flag" ||
5661
 
         test ! -s conftest.err
5662
 
       } && test -s conftest.$ac_objext; then
 
5664
if ac_fn_c_try_compile "$LINENO"; then :
5663
5665
   ax_cv_cpp_vararg_macro_gcc=yes
5664
5666
else
5665
 
  echo "$as_me: failed program was:" >&5
5666
 
sed 's/^/| /' conftest.$ac_ext >&5
5667
 
 
5668
 
        ax_cv_cpp_vararg_macro_gcc=no
 
5667
  ax_cv_cpp_vararg_macro_gcc=no
5669
5668
fi
5670
 
 
5671
5669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672
5670
fi
5673
 
{ echo "$as_me:$LINENO: result: $ax_cv_cpp_vararg_macro_gcc" >&5
5674
 
echo "${ECHO_T}$ax_cv_cpp_vararg_macro_gcc" >&6; }
 
5671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
 
5672
$as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
5675
5673
    if test $ax_cv_cpp_vararg_macro_gcc = yes ; then
5676
5674
 
5677
 
cat >>confdefs.h <<\_ACEOF
5678
 
#define HAVE_CPP_VARARG_MACRO_GCC 1
5679
 
_ACEOF
 
5675
$as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
5680
5676
 
5681
5677
    fi
5682
5678
 
5683
5679
 
5684
 
  { echo "$as_me:$LINENO: result: checking for C compiler empty array support" >&5
5685
 
echo "${ECHO_T}checking for C compiler empty array support" >&6; }
5686
 
  cat >conftest.$ac_ext <<_ACEOF
 
5680
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for C compiler empty array support" >&5
 
5681
$as_echo "checking for C compiler empty array support" >&6; }
 
5682
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5683
/* end confdefs.h.  */
5687
5684
 
5688
5685
        struct { int foo; int bar[0]; } mystruct;
5689
5686
 
5690
5687
_ACEOF
5691
 
rm -f conftest.$ac_objext
5692
 
if { (ac_try="$ac_compile"
5693
 
case "(($ac_try" in
5694
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695
 
  *) ac_try_echo=$ac_try;;
5696
 
esac
5697
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698
 
  (eval "$ac_compile") 2>conftest.er1
5699
 
  ac_status=$?
5700
 
  grep -v '^ *+' conftest.er1 >conftest.err
5701
 
  rm -f conftest.er1
5702
 
  cat conftest.err >&5
5703
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704
 
  (exit $ac_status); } && {
5705
 
         test -z "$ac_c_werror_flag" ||
5706
 
         test ! -s conftest.err
5707
 
       } && test -s conftest.$ac_objext; then
 
5688
if ac_fn_c_try_compile "$LINENO"; then :
5708
5689
 
5709
5690
 
5710
5691
cat >>confdefs.h <<_ACEOF
5713
5694
 
5714
5695
 
5715
5696
else
5716
 
  echo "$as_me: failed program was:" >&5
5717
 
sed 's/^/| /' conftest.$ac_ext >&5
5718
 
 
5719
 
 
5720
 
        cat >conftest.$ac_ext <<_ACEOF
 
5697
 
 
5698
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5699
/* end confdefs.h.  */
5721
5700
 
5722
5701
                struct { int foo; int bar[]; } mystruct;
5723
5702
 
5724
5703
_ACEOF
5725
 
rm -f conftest.$ac_objext
5726
 
if { (ac_try="$ac_compile"
5727
 
case "(($ac_try" in
5728
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729
 
  *) ac_try_echo=$ac_try;;
5730
 
esac
5731
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732
 
  (eval "$ac_compile") 2>conftest.er1
5733
 
  ac_status=$?
5734
 
  grep -v '^ *+' conftest.er1 >conftest.err
5735
 
  rm -f conftest.er1
5736
 
  cat conftest.err >&5
5737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738
 
  (exit $ac_status); } && {
5739
 
         test -z "$ac_c_werror_flag" ||
5740
 
         test ! -s conftest.err
5741
 
       } && test -s conftest.$ac_objext; then
 
5704
if ac_fn_c_try_compile "$LINENO"; then :
5742
5705
 
5743
5706
 
5744
5707
cat >>confdefs.h <<_ACEOF
5745
 
#define EMPTY_ARRAY_SIZE
 
5708
#define EMPTY_ARRAY_SIZE /**/
5746
5709
_ACEOF
5747
5710
 
5748
5711
 
5749
5712
else
5750
 
  echo "$as_me: failed program was:" >&5
5751
 
sed 's/^/| /' conftest.$ac_ext >&5
5752
 
 
5753
 
 
5754
 
                { { echo "$as_me:$LINENO: error: C compiler is unable to creaty empty arrays" >&5
5755
 
echo "$as_me: error: C compiler is unable to creaty empty arrays" >&2;}
5756
 
   { (exit 1); exit 1; }; }
5757
 
 
5758
 
fi
5759
 
 
5760
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761
 
 
5762
 
fi
5763
 
 
5764
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765
 
 
5766
 
 
5767
 
 
5768
 
 
5769
 
 
5770
 
 
5771
 
 
5772
 
 
 
5713
 
 
5714
                as_fn_error $? "C compiler is unable to creaty empty arrays" "$LINENO" 5
 
5715
 
 
5716
fi
 
5717
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5718
 
 
5719
fi
 
5720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773
5721
 
5774
5722
 
5775
5723
 
5776
5724
for ac_header in fcntl.h stdlib.h                stdarg.h stdio.h string.h               strings.h ctype.h errno.h
5777
 
do
5778
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5780
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5781
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5782
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5783
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5784
 
fi
5785
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5786
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5787
 
echo "${ECHO_T}$ac_res" >&6; }
5788
 
else
5789
 
  # Is the header compilable?
5790
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5791
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5792
 
cat >conftest.$ac_ext <<_ACEOF
5793
 
/* confdefs.h.  */
5794
 
_ACEOF
5795
 
cat confdefs.h >>conftest.$ac_ext
5796
 
cat >>conftest.$ac_ext <<_ACEOF
5797
 
/* end confdefs.h.  */
5798
 
$ac_includes_default
5799
 
#include <$ac_header>
5800
 
_ACEOF
5801
 
rm -f conftest.$ac_objext
5802
 
if { (ac_try="$ac_compile"
5803
 
case "(($ac_try" in
5804
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805
 
  *) ac_try_echo=$ac_try;;
5806
 
esac
5807
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808
 
  (eval "$ac_compile") 2>conftest.er1
5809
 
  ac_status=$?
5810
 
  grep -v '^ *+' conftest.er1 >conftest.err
5811
 
  rm -f conftest.er1
5812
 
  cat conftest.err >&5
5813
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814
 
  (exit $ac_status); } && {
5815
 
         test -z "$ac_c_werror_flag" ||
5816
 
         test ! -s conftest.err
5817
 
       } && test -s conftest.$ac_objext; then
5818
 
  ac_header_compiler=yes
5819
 
else
5820
 
  echo "$as_me: failed program was:" >&5
5821
 
sed 's/^/| /' conftest.$ac_ext >&5
5822
 
 
5823
 
        ac_header_compiler=no
5824
 
fi
5825
 
 
5826
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5828
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5829
 
 
5830
 
# Is the header present?
5831
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5832
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5833
 
cat >conftest.$ac_ext <<_ACEOF
5834
 
/* confdefs.h.  */
5835
 
_ACEOF
5836
 
cat confdefs.h >>conftest.$ac_ext
5837
 
cat >>conftest.$ac_ext <<_ACEOF
5838
 
/* end confdefs.h.  */
5839
 
#include <$ac_header>
5840
 
_ACEOF
5841
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5842
 
case "(($ac_try" in
5843
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844
 
  *) ac_try_echo=$ac_try;;
5845
 
esac
5846
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5848
 
  ac_status=$?
5849
 
  grep -v '^ *+' conftest.er1 >conftest.err
5850
 
  rm -f conftest.er1
5851
 
  cat conftest.err >&5
5852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853
 
  (exit $ac_status); } >/dev/null && {
5854
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5855
 
         test ! -s conftest.err
5856
 
       }; then
5857
 
  ac_header_preproc=yes
5858
 
else
5859
 
  echo "$as_me: failed program was:" >&5
5860
 
sed 's/^/| /' conftest.$ac_ext >&5
5861
 
 
5862
 
  ac_header_preproc=no
5863
 
fi
5864
 
 
5865
 
rm -f conftest.err conftest.$ac_ext
5866
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5867
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5868
 
 
5869
 
# So?  What about this header?
5870
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5871
 
  yes:no: )
5872
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5873
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5874
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5875
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5876
 
    ac_header_preproc=yes
5877
 
    ;;
5878
 
  no:yes:* )
5879
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5880
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5881
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5882
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5883
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5884
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5885
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5886
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5887
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5888
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5889
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5890
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5891
 
    ( cat <<\_ASBOX
5892
 
## -------------------------------------------------- ##
5893
 
## Report this to openvpn-users@lists.sourceforge.net ##
5894
 
## -------------------------------------------------- ##
5895
 
_ASBOX
5896
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5897
 
    ;;
5898
 
esac
5899
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5900
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5901
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5902
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5903
 
else
5904
 
  eval "$as_ac_Header=\$ac_header_preproc"
5905
 
fi
5906
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5907
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5908
 
echo "${ECHO_T}$ac_res" >&6; }
5909
 
 
5910
 
fi
5911
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5725
do :
 
5726
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5727
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5728
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5912
5729
  cat >>confdefs.h <<_ACEOF
5913
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5730
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914
5731
_ACEOF
5915
5732
 
5916
5733
fi
5919
5736
 
5920
5737
 
5921
5738
if test "${WIN32}" != "yes"; then
5922
 
   { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5923
 
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5924
 
if test "${ac_cv_header_sys_wait_h+set}" = set; then
5925
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5739
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
5740
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
 
5741
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
 
5742
  $as_echo_n "(cached) " >&6
5926
5743
else
5927
 
  cat >conftest.$ac_ext <<_ACEOF
5928
 
/* confdefs.h.  */
5929
 
_ACEOF
5930
 
cat confdefs.h >>conftest.$ac_ext
5931
 
cat >>conftest.$ac_ext <<_ACEOF
 
5744
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932
5745
/* end confdefs.h.  */
5933
5746
#include <sys/types.h>
5934
5747
#include <sys/wait.h>
5949
5762
  return 0;
5950
5763
}
5951
5764
_ACEOF
5952
 
rm -f conftest.$ac_objext
5953
 
if { (ac_try="$ac_compile"
5954
 
case "(($ac_try" in
5955
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956
 
  *) ac_try_echo=$ac_try;;
5957
 
esac
5958
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959
 
  (eval "$ac_compile") 2>conftest.er1
5960
 
  ac_status=$?
5961
 
  grep -v '^ *+' conftest.er1 >conftest.err
5962
 
  rm -f conftest.er1
5963
 
  cat conftest.err >&5
5964
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965
 
  (exit $ac_status); } && {
5966
 
         test -z "$ac_c_werror_flag" ||
5967
 
         test ! -s conftest.err
5968
 
       } && test -s conftest.$ac_objext; then
 
5765
if ac_fn_c_try_compile "$LINENO"; then :
5969
5766
  ac_cv_header_sys_wait_h=yes
5970
5767
else
5971
 
  echo "$as_me: failed program was:" >&5
5972
 
sed 's/^/| /' conftest.$ac_ext >&5
5973
 
 
5974
 
        ac_cv_header_sys_wait_h=no
 
5768
  ac_cv_header_sys_wait_h=no
5975
5769
fi
5976
 
 
5977
5770
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978
5771
fi
5979
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5980
 
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
 
5772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
 
5773
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5981
5774
if test $ac_cv_header_sys_wait_h = yes; then
5982
5775
 
5983
 
cat >>confdefs.h <<\_ACEOF
5984
 
#define HAVE_SYS_WAIT_H 1
5985
 
_ACEOF
5986
 
 
5987
 
fi
5988
 
 
5989
 
 
5990
 
 
5991
 
 
5992
 
 
5993
 
 
5994
 
 
5995
 
 
5996
 
 
5997
 
 
5998
 
 
5999
 
 
6000
 
 
6001
 
 
6002
 
 
6003
 
 
6004
 
 
6005
 
 
6006
 
 
6007
 
 
6008
 
 
6009
 
 
6010
 
 
6011
 
 
6012
 
 
6013
 
 
6014
 
 
6015
 
 
6016
 
 
6017
 
 
6018
 
 
6019
 
 
6020
 
 
6021
 
 
6022
 
 
6023
 
 
6024
 
 
6025
 
 
6026
 
for ac_header in sys/time.h sys/socket.h sys/un.h sys/ioctl.h sys/stat.h                 sys/mman.h fcntl.h sys/file.h stdlib.h stdint.h                 stdarg.h unistd.h signal.h stdio.h string.h             strings.h ctype.h errno.h syslog.h pwd.h grp.h                  net/if_tun.h net/tun/if_tun.h stropts.h sys/sockio.h            netinet/in.h netinet/in_systm.h                 netinet/tcp.h arpa/inet.h               netdb.h sys/uio.h linux/if_tun.h linux/sockios.h                linux/types.h sys/poll.h sys/epoll.h err.h
6027
 
do
6028
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6029
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6030
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6031
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6032
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6033
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6034
 
fi
6035
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6036
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6037
 
echo "${ECHO_T}$ac_res" >&6; }
6038
 
else
6039
 
  # Is the header compilable?
6040
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6041
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6042
 
cat >conftest.$ac_ext <<_ACEOF
6043
 
/* confdefs.h.  */
6044
 
_ACEOF
6045
 
cat confdefs.h >>conftest.$ac_ext
6046
 
cat >>conftest.$ac_ext <<_ACEOF
6047
 
/* end confdefs.h.  */
6048
 
$ac_includes_default
6049
 
#include <$ac_header>
6050
 
_ACEOF
6051
 
rm -f conftest.$ac_objext
6052
 
if { (ac_try="$ac_compile"
6053
 
case "(($ac_try" in
6054
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055
 
  *) ac_try_echo=$ac_try;;
6056
 
esac
6057
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058
 
  (eval "$ac_compile") 2>conftest.er1
6059
 
  ac_status=$?
6060
 
  grep -v '^ *+' conftest.er1 >conftest.err
6061
 
  rm -f conftest.er1
6062
 
  cat conftest.err >&5
6063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064
 
  (exit $ac_status); } && {
6065
 
         test -z "$ac_c_werror_flag" ||
6066
 
         test ! -s conftest.err
6067
 
       } && test -s conftest.$ac_objext; then
6068
 
  ac_header_compiler=yes
6069
 
else
6070
 
  echo "$as_me: failed program was:" >&5
6071
 
sed 's/^/| /' conftest.$ac_ext >&5
6072
 
 
6073
 
        ac_header_compiler=no
6074
 
fi
6075
 
 
6076
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
6079
 
 
6080
 
# Is the header present?
6081
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6083
 
cat >conftest.$ac_ext <<_ACEOF
6084
 
/* confdefs.h.  */
6085
 
_ACEOF
6086
 
cat confdefs.h >>conftest.$ac_ext
6087
 
cat >>conftest.$ac_ext <<_ACEOF
6088
 
/* end confdefs.h.  */
6089
 
#include <$ac_header>
6090
 
_ACEOF
6091
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6092
 
case "(($ac_try" in
6093
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094
 
  *) ac_try_echo=$ac_try;;
6095
 
esac
6096
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6098
 
  ac_status=$?
6099
 
  grep -v '^ *+' conftest.er1 >conftest.err
6100
 
  rm -f conftest.er1
6101
 
  cat conftest.err >&5
6102
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103
 
  (exit $ac_status); } >/dev/null && {
6104
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6105
 
         test ! -s conftest.err
6106
 
       }; then
6107
 
  ac_header_preproc=yes
6108
 
else
6109
 
  echo "$as_me: failed program was:" >&5
6110
 
sed 's/^/| /' conftest.$ac_ext >&5
6111
 
 
6112
 
  ac_header_preproc=no
6113
 
fi
6114
 
 
6115
 
rm -f conftest.err conftest.$ac_ext
6116
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6117
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
6118
 
 
6119
 
# So?  What about this header?
6120
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6121
 
  yes:no: )
6122
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6123
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6124
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6125
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6126
 
    ac_header_preproc=yes
6127
 
    ;;
6128
 
  no:yes:* )
6129
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6130
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6131
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6132
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6133
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6134
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6135
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6136
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6137
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6138
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6139
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6140
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6141
 
    ( cat <<\_ASBOX
6142
 
## -------------------------------------------------- ##
6143
 
## Report this to openvpn-users@lists.sourceforge.net ##
6144
 
## -------------------------------------------------- ##
6145
 
_ASBOX
6146
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
6147
 
    ;;
6148
 
esac
6149
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6150
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6153
 
else
6154
 
  eval "$as_ac_Header=\$ac_header_preproc"
6155
 
fi
6156
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6157
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6158
 
echo "${ECHO_T}$ac_res" >&6; }
6159
 
 
6160
 
fi
6161
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5776
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
 
5777
 
 
5778
fi
 
5779
 
 
5780
   for ac_header in sys/time.h sys/socket.h sys/un.h sys/ioctl.h sys/stat.h              sys/mman.h fcntl.h sys/file.h stdlib.h stdint.h                 stdarg.h unistd.h signal.h stdio.h string.h             strings.h ctype.h errno.h syslog.h pwd.h grp.h                  net/if_tun.h net/tun/if_tun.h stropts.h sys/sockio.h            netinet/in.h netinet/in_systm.h                 netinet/tcp.h arpa/inet.h               netdb.h sys/uio.h linux/if_tun.h linux/sockios.h                linux/types.h sys/poll.h sys/epoll.h err.h
 
5781
do :
 
5782
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5783
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5784
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6162
5785
  cat >>confdefs.h <<_ACEOF
6163
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5786
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164
5787
_ACEOF
6165
5788
 
6166
5789
fi
6167
5790
 
6168
5791
done
6169
5792
 
6170
 
 
6171
 
for ac_header in net/if.h
6172
 
do
6173
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6175
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6176
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6177
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6178
 
else
6179
 
  cat >conftest.$ac_ext <<_ACEOF
6180
 
/* confdefs.h.  */
6181
 
_ACEOF
6182
 
cat confdefs.h >>conftest.$ac_ext
6183
 
cat >>conftest.$ac_ext <<_ACEOF
6184
 
/* end confdefs.h.  */
6185
 
#ifdef HAVE_SYS_SOCKET_H
 
5793
   for ac_header in net/if.h
 
5794
do :
 
5795
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_TYPES_H
 
5796
                  # include <sys/types.h>
 
5797
                  #endif
 
5798
                  #ifdef HAVE_SYS_SOCKET_H
6186
5799
                  # include <sys/socket.h>
6187
5800
                  #endif
6188
5801
 
6189
 
 
6190
 
#include <$ac_header>
6191
 
_ACEOF
6192
 
rm -f conftest.$ac_objext
6193
 
if { (ac_try="$ac_compile"
6194
 
case "(($ac_try" in
6195
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196
 
  *) ac_try_echo=$ac_try;;
6197
 
esac
6198
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199
 
  (eval "$ac_compile") 2>conftest.er1
6200
 
  ac_status=$?
6201
 
  grep -v '^ *+' conftest.er1 >conftest.err
6202
 
  rm -f conftest.er1
6203
 
  cat conftest.err >&5
6204
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205
 
  (exit $ac_status); } && {
6206
 
         test -z "$ac_c_werror_flag" ||
6207
 
         test ! -s conftest.err
6208
 
       } && test -s conftest.$ac_objext; then
6209
 
  eval "$as_ac_Header=yes"
6210
 
else
6211
 
  echo "$as_me: failed program was:" >&5
6212
 
sed 's/^/| /' conftest.$ac_ext >&5
6213
 
 
6214
 
        eval "$as_ac_Header=no"
6215
 
fi
6216
 
 
6217
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218
 
fi
6219
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6220
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6221
 
echo "${ECHO_T}$ac_res" >&6; }
6222
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5802
"
 
5803
if test "x$ac_cv_header_net_if_h" = x""yes; then :
6223
5804
  cat >>confdefs.h <<_ACEOF
6224
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5805
#define HAVE_NET_IF_H 1
6225
5806
_ACEOF
6226
5807
 
6227
5808
fi
6228
5809
 
6229
5810
done
6230
5811
 
6231
 
 
6232
 
for ac_header in netinet/ip.h
6233
 
do
6234
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6236
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6237
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6238
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6239
 
else
6240
 
  cat >conftest.$ac_ext <<_ACEOF
6241
 
/* confdefs.h.  */
6242
 
_ACEOF
6243
 
cat confdefs.h >>conftest.$ac_ext
6244
 
cat >>conftest.$ac_ext <<_ACEOF
6245
 
/* end confdefs.h.  */
6246
 
#ifdef HAVE_SYS_TYPES_H
 
5812
   for ac_header in netinet/ip.h
 
5813
do :
 
5814
  ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#ifdef HAVE_SYS_TYPES_H
6247
5815
                  # include <sys/types.h>
6248
5816
                  #endif
6249
5817
                  #ifdef HAVE_NETINET_IN_H
6253
5821
                  # include <netinet/in_systm.h>
6254
5822
                  #endif
6255
5823
 
6256
 
 
6257
 
#include <$ac_header>
6258
 
_ACEOF
6259
 
rm -f conftest.$ac_objext
6260
 
if { (ac_try="$ac_compile"
6261
 
case "(($ac_try" in
6262
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263
 
  *) ac_try_echo=$ac_try;;
6264
 
esac
6265
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266
 
  (eval "$ac_compile") 2>conftest.er1
6267
 
  ac_status=$?
6268
 
  grep -v '^ *+' conftest.er1 >conftest.err
6269
 
  rm -f conftest.er1
6270
 
  cat conftest.err >&5
6271
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272
 
  (exit $ac_status); } && {
6273
 
         test -z "$ac_c_werror_flag" ||
6274
 
         test ! -s conftest.err
6275
 
       } && test -s conftest.$ac_objext; then
6276
 
  eval "$as_ac_Header=yes"
6277
 
else
6278
 
  echo "$as_me: failed program was:" >&5
6279
 
sed 's/^/| /' conftest.$ac_ext >&5
6280
 
 
6281
 
        eval "$as_ac_Header=no"
6282
 
fi
6283
 
 
6284
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285
 
fi
6286
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6287
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6288
 
echo "${ECHO_T}$ac_res" >&6; }
6289
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5824
"
 
5825
if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
6290
5826
  cat >>confdefs.h <<_ACEOF
6291
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5827
#define HAVE_NETINET_IP_H 1
6292
5828
_ACEOF
6293
5829
 
6294
5830
fi
6295
5831
 
6296
5832
done
6297
5833
 
6298
 
 
6299
 
for ac_header in netinet/if_ether.h
6300
 
do
6301
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6303
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6304
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6305
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6306
 
else
6307
 
  cat >conftest.$ac_ext <<_ACEOF
6308
 
/* confdefs.h.  */
6309
 
_ACEOF
6310
 
cat confdefs.h >>conftest.$ac_ext
6311
 
cat >>conftest.$ac_ext <<_ACEOF
6312
 
/* end confdefs.h.  */
6313
 
#ifdef HAVE_SYS_TYPES_H
 
5834
   for ac_header in netinet/if_ether.h
 
5835
do :
 
5836
  ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#ifdef HAVE_SYS_TYPES_H
6314
5837
                  # include <sys/types.h>
6315
5838
                  #endif
6316
5839
                  #ifdef HAVE_SYS_SOCKET_H
6320
5843
                  # include <netinet/in.h>
6321
5844
                  #endif
6322
5845
 
6323
 
 
6324
 
#include <$ac_header>
6325
 
_ACEOF
6326
 
rm -f conftest.$ac_objext
6327
 
if { (ac_try="$ac_compile"
6328
 
case "(($ac_try" in
6329
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330
 
  *) ac_try_echo=$ac_try;;
6331
 
esac
6332
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333
 
  (eval "$ac_compile") 2>conftest.er1
6334
 
  ac_status=$?
6335
 
  grep -v '^ *+' conftest.er1 >conftest.err
6336
 
  rm -f conftest.er1
6337
 
  cat conftest.err >&5
6338
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339
 
  (exit $ac_status); } && {
6340
 
         test -z "$ac_c_werror_flag" ||
6341
 
         test ! -s conftest.err
6342
 
       } && test -s conftest.$ac_objext; then
6343
 
  eval "$as_ac_Header=yes"
6344
 
else
6345
 
  echo "$as_me: failed program was:" >&5
6346
 
sed 's/^/| /' conftest.$ac_ext >&5
6347
 
 
6348
 
        eval "$as_ac_Header=no"
6349
 
fi
6350
 
 
6351
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352
 
fi
6353
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6354
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6355
 
echo "${ECHO_T}$ac_res" >&6; }
6356
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5846
"
 
5847
if test "x$ac_cv_header_netinet_if_ether_h" = x""yes; then :
6357
5848
  cat >>confdefs.h <<_ACEOF
6358
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5849
#define HAVE_NETINET_IF_ETHER_H 1
6359
5850
_ACEOF
6360
5851
 
6361
5852
fi
6362
5853
 
6363
5854
done
6364
5855
 
6365
 
 
6366
 
for ac_header in resolv.h
6367
 
do
6368
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6369
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6370
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6371
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6372
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6373
 
else
6374
 
  cat >conftest.$ac_ext <<_ACEOF
6375
 
/* confdefs.h.  */
6376
 
_ACEOF
6377
 
cat confdefs.h >>conftest.$ac_ext
6378
 
cat >>conftest.$ac_ext <<_ACEOF
6379
 
/* end confdefs.h.  */
6380
 
#ifdef HAVE_NETINET_IN_H
 
5856
   for ac_header in resolv.h
 
5857
do :
 
5858
  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#ifdef HAVE_NETINET_IN_H
6381
5859
                  # include <netinet/in.h>
6382
5860
                  #endif
6383
5861
 
6384
 
 
6385
 
#include <$ac_header>
6386
 
_ACEOF
6387
 
rm -f conftest.$ac_objext
6388
 
if { (ac_try="$ac_compile"
6389
 
case "(($ac_try" in
6390
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391
 
  *) ac_try_echo=$ac_try;;
6392
 
esac
6393
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394
 
  (eval "$ac_compile") 2>conftest.er1
6395
 
  ac_status=$?
6396
 
  grep -v '^ *+' conftest.er1 >conftest.err
6397
 
  rm -f conftest.er1
6398
 
  cat conftest.err >&5
6399
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400
 
  (exit $ac_status); } && {
6401
 
         test -z "$ac_c_werror_flag" ||
6402
 
         test ! -s conftest.err
6403
 
       } && test -s conftest.$ac_objext; then
6404
 
  eval "$as_ac_Header=yes"
6405
 
else
6406
 
  echo "$as_me: failed program was:" >&5
6407
 
sed 's/^/| /' conftest.$ac_ext >&5
6408
 
 
6409
 
        eval "$as_ac_Header=no"
6410
 
fi
6411
 
 
6412
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413
 
fi
6414
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6415
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6416
 
echo "${ECHO_T}$ac_res" >&6; }
6417
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5862
"
 
5863
if test "x$ac_cv_header_resolv_h" = x""yes; then :
6418
5864
  cat >>confdefs.h <<_ACEOF
6419
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5865
#define HAVE_RESOLV_H 1
6420
5866
_ACEOF
6421
5867
 
6422
5868
fi
6423
5869
 
6424
5870
done
6425
5871
 
6426
 
 
6427
 
for ac_header in linux/errqueue.h
6428
 
do
6429
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6430
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6431
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6432
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6433
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6434
 
else
6435
 
  cat >conftest.$ac_ext <<_ACEOF
6436
 
/* confdefs.h.  */
6437
 
_ACEOF
6438
 
cat confdefs.h >>conftest.$ac_ext
6439
 
cat >>conftest.$ac_ext <<_ACEOF
6440
 
/* end confdefs.h.  */
6441
 
#ifdef HAVE_LINUX_TYPES_H
 
5872
   for ac_header in linux/errqueue.h
 
5873
do :
 
5874
  ac_fn_c_check_header_compile "$LINENO" "linux/errqueue.h" "ac_cv_header_linux_errqueue_h" "#ifdef HAVE_LINUX_TYPES_H
6442
5875
         # include <linux/types.h>
6443
5876
         #endif
6444
5877
 
6445
 
 
6446
 
#include <$ac_header>
6447
 
_ACEOF
6448
 
rm -f conftest.$ac_objext
6449
 
if { (ac_try="$ac_compile"
6450
 
case "(($ac_try" in
6451
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452
 
  *) ac_try_echo=$ac_try;;
6453
 
esac
6454
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455
 
  (eval "$ac_compile") 2>conftest.er1
6456
 
  ac_status=$?
6457
 
  grep -v '^ *+' conftest.er1 >conftest.err
6458
 
  rm -f conftest.er1
6459
 
  cat conftest.err >&5
6460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461
 
  (exit $ac_status); } && {
6462
 
         test -z "$ac_c_werror_flag" ||
6463
 
         test ! -s conftest.err
6464
 
       } && test -s conftest.$ac_objext; then
6465
 
  eval "$as_ac_Header=yes"
6466
 
else
6467
 
  echo "$as_me: failed program was:" >&5
6468
 
sed 's/^/| /' conftest.$ac_ext >&5
6469
 
 
6470
 
        eval "$as_ac_Header=no"
6471
 
fi
6472
 
 
6473
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474
 
fi
6475
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6476
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6477
 
echo "${ECHO_T}$ac_res" >&6; }
6478
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5878
"
 
5879
if test "x$ac_cv_header_linux_errqueue_h" = x""yes; then :
6479
5880
  cat >>confdefs.h <<_ACEOF
6480
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5881
#define HAVE_LINUX_ERRQUEUE_H 1
6481
5882
_ACEOF
6482
5883
 
6483
5884
fi
6513
5914
    case $ac_val in #(
6514
5915
    *${as_nl}*)
6515
5916
      case $ac_var in #(
6516
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6517
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
5917
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
5918
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6518
5919
      esac
6519
5920
      case $ac_var in #(
6520
5921
      _ | IFS | as_nl) ;; #(
6521
 
      *) $as_unset $ac_var ;;
 
5922
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
5923
      *) { eval $ac_var=; unset $ac_var;} ;;
6522
5924
      esac ;;
6523
5925
    esac
6524
5926
  done
6526
5928
  (set) 2>&1 |
6527
5929
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6528
5930
    *${as_nl}ac_space=\ *)
6529
 
      # `set' does not quote correctly, so add quotes (double-quote
6530
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
5931
      # `set' does not quote correctly, so add quotes: double-quote
 
5932
      # substitution turns \\\\ into \\, and sed turns \\ into \.
6531
5933
      sed -n \
6532
5934
        "s/'/'\\\\''/g;
6533
5935
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6550
5952
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6551
5953
  if test -w "$cache_file"; then
6552
5954
    test "x$cache_file" != "x/dev/null" &&
6553
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6554
 
echo "$as_me: updating cache $cache_file" >&6;}
 
5955
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
5956
$as_echo "$as_me: updating cache $cache_file" >&6;}
6555
5957
    cat confcache >$cache_file
6556
5958
  else
6557
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6558
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
5959
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
5960
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6559
5961
  fi
6560
5962
fi
6561
5963
rm -f confcache
6562
5964
 
6563
 
{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
6564
 
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
6565
 
if test "${ac_cv_type_in_addr_t+set}" = set; then
6566
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6567
 
else
6568
 
  cat >conftest.$ac_ext <<_ACEOF
6569
 
/* confdefs.h.  */
6570
 
_ACEOF
6571
 
cat confdefs.h >>conftest.$ac_ext
6572
 
cat >>conftest.$ac_ext <<_ACEOF
6573
 
/* end confdefs.h.  */
6574
 
#include "syshead.h"
6575
 
 
6576
 
typedef in_addr_t ac__type_new_;
6577
 
int
6578
 
main ()
6579
 
{
6580
 
if ((ac__type_new_ *) 0)
6581
 
  return 0;
6582
 
if (sizeof (ac__type_new_))
6583
 
  return 0;
6584
 
  ;
6585
 
  return 0;
6586
 
}
6587
 
_ACEOF
6588
 
rm -f conftest.$ac_objext
6589
 
if { (ac_try="$ac_compile"
6590
 
case "(($ac_try" in
6591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592
 
  *) ac_try_echo=$ac_try;;
6593
 
esac
6594
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595
 
  (eval "$ac_compile") 2>conftest.er1
6596
 
  ac_status=$?
6597
 
  grep -v '^ *+' conftest.er1 >conftest.err
6598
 
  rm -f conftest.er1
6599
 
  cat conftest.err >&5
6600
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601
 
  (exit $ac_status); } && {
6602
 
         test -z "$ac_c_werror_flag" ||
6603
 
         test ! -s conftest.err
6604
 
       } && test -s conftest.$ac_objext; then
6605
 
  ac_cv_type_in_addr_t=yes
6606
 
else
6607
 
  echo "$as_me: failed program was:" >&5
6608
 
sed 's/^/| /' conftest.$ac_ext >&5
6609
 
 
6610
 
        ac_cv_type_in_addr_t=no
6611
 
fi
6612
 
 
6613
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614
 
fi
6615
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
6616
 
echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
6617
 
if test $ac_cv_type_in_addr_t = yes; then
6618
 
  :
6619
 
else
6620
 
 
6621
 
cat >>confdefs.h <<\_ACEOF
6622
 
#define in_addr_t uint32_t
6623
 
_ACEOF
6624
 
 
6625
 
fi
6626
 
 
6627
 
 
6628
 
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
6629
 
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
6630
 
if test "${ac_cv_type_uint8_t+set}" = set; then
6631
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6632
 
else
6633
 
  cat >conftest.$ac_ext <<_ACEOF
6634
 
/* confdefs.h.  */
6635
 
_ACEOF
6636
 
cat confdefs.h >>conftest.$ac_ext
6637
 
cat >>conftest.$ac_ext <<_ACEOF
6638
 
/* end confdefs.h.  */
6639
 
#include "syshead.h"
6640
 
 
6641
 
typedef uint8_t ac__type_new_;
6642
 
int
6643
 
main ()
6644
 
{
6645
 
if ((ac__type_new_ *) 0)
6646
 
  return 0;
6647
 
if (sizeof (ac__type_new_))
6648
 
  return 0;
6649
 
  ;
6650
 
  return 0;
6651
 
}
6652
 
_ACEOF
6653
 
rm -f conftest.$ac_objext
6654
 
if { (ac_try="$ac_compile"
6655
 
case "(($ac_try" in
6656
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657
 
  *) ac_try_echo=$ac_try;;
6658
 
esac
6659
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660
 
  (eval "$ac_compile") 2>conftest.er1
6661
 
  ac_status=$?
6662
 
  grep -v '^ *+' conftest.er1 >conftest.err
6663
 
  rm -f conftest.er1
6664
 
  cat conftest.err >&5
6665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666
 
  (exit $ac_status); } && {
6667
 
         test -z "$ac_c_werror_flag" ||
6668
 
         test ! -s conftest.err
6669
 
       } && test -s conftest.$ac_objext; then
6670
 
  ac_cv_type_uint8_t=yes
6671
 
else
6672
 
  echo "$as_me: failed program was:" >&5
6673
 
sed 's/^/| /' conftest.$ac_ext >&5
6674
 
 
6675
 
        ac_cv_type_uint8_t=no
6676
 
fi
6677
 
 
6678
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679
 
fi
6680
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6681
 
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
6682
 
if test $ac_cv_type_uint8_t = yes; then
6683
 
  :
6684
 
else
6685
 
 
6686
 
cat >>confdefs.h <<\_ACEOF
6687
 
#define uint8_t unsigned char
6688
 
_ACEOF
6689
 
 
6690
 
fi
6691
 
 
6692
 
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
6693
 
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6694
 
if test "${ac_cv_type_uint16_t+set}" = set; then
6695
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6696
 
else
6697
 
  cat >conftest.$ac_ext <<_ACEOF
6698
 
/* confdefs.h.  */
6699
 
_ACEOF
6700
 
cat confdefs.h >>conftest.$ac_ext
6701
 
cat >>conftest.$ac_ext <<_ACEOF
6702
 
/* end confdefs.h.  */
6703
 
#include "syshead.h"
6704
 
 
6705
 
typedef uint16_t ac__type_new_;
6706
 
int
6707
 
main ()
6708
 
{
6709
 
if ((ac__type_new_ *) 0)
6710
 
  return 0;
6711
 
if (sizeof (ac__type_new_))
6712
 
  return 0;
6713
 
  ;
6714
 
  return 0;
6715
 
}
6716
 
_ACEOF
6717
 
rm -f conftest.$ac_objext
6718
 
if { (ac_try="$ac_compile"
6719
 
case "(($ac_try" in
6720
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721
 
  *) ac_try_echo=$ac_try;;
6722
 
esac
6723
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724
 
  (eval "$ac_compile") 2>conftest.er1
6725
 
  ac_status=$?
6726
 
  grep -v '^ *+' conftest.er1 >conftest.err
6727
 
  rm -f conftest.er1
6728
 
  cat conftest.err >&5
6729
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730
 
  (exit $ac_status); } && {
6731
 
         test -z "$ac_c_werror_flag" ||
6732
 
         test ! -s conftest.err
6733
 
       } && test -s conftest.$ac_objext; then
6734
 
  ac_cv_type_uint16_t=yes
6735
 
else
6736
 
  echo "$as_me: failed program was:" >&5
6737
 
sed 's/^/| /' conftest.$ac_ext >&5
6738
 
 
6739
 
        ac_cv_type_uint16_t=no
6740
 
fi
6741
 
 
6742
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743
 
fi
6744
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6745
 
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
6746
 
if test $ac_cv_type_uint16_t = yes; then
6747
 
  :
6748
 
else
6749
 
 
6750
 
cat >>confdefs.h <<\_ACEOF
6751
 
#define uint16_t unsigned char
6752
 
_ACEOF
6753
 
 
6754
 
fi
6755
 
 
6756
 
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
6757
 
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6758
 
if test "${ac_cv_type_uint32_t+set}" = set; then
6759
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6760
 
else
6761
 
  cat >conftest.$ac_ext <<_ACEOF
6762
 
/* confdefs.h.  */
6763
 
_ACEOF
6764
 
cat confdefs.h >>conftest.$ac_ext
6765
 
cat >>conftest.$ac_ext <<_ACEOF
6766
 
/* end confdefs.h.  */
6767
 
#include "syshead.h"
6768
 
 
6769
 
typedef uint32_t ac__type_new_;
6770
 
int
6771
 
main ()
6772
 
{
6773
 
if ((ac__type_new_ *) 0)
6774
 
  return 0;
6775
 
if (sizeof (ac__type_new_))
6776
 
  return 0;
6777
 
  ;
6778
 
  return 0;
6779
 
}
6780
 
_ACEOF
6781
 
rm -f conftest.$ac_objext
6782
 
if { (ac_try="$ac_compile"
6783
 
case "(($ac_try" in
6784
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785
 
  *) ac_try_echo=$ac_try;;
6786
 
esac
6787
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788
 
  (eval "$ac_compile") 2>conftest.er1
6789
 
  ac_status=$?
6790
 
  grep -v '^ *+' conftest.er1 >conftest.err
6791
 
  rm -f conftest.er1
6792
 
  cat conftest.err >&5
6793
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794
 
  (exit $ac_status); } && {
6795
 
         test -z "$ac_c_werror_flag" ||
6796
 
         test ! -s conftest.err
6797
 
       } && test -s conftest.$ac_objext; then
6798
 
  ac_cv_type_uint32_t=yes
6799
 
else
6800
 
  echo "$as_me: failed program was:" >&5
6801
 
sed 's/^/| /' conftest.$ac_ext >&5
6802
 
 
6803
 
        ac_cv_type_uint32_t=no
6804
 
fi
6805
 
 
6806
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807
 
fi
6808
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6809
 
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
6810
 
if test $ac_cv_type_uint32_t = yes; then
6811
 
  :
6812
 
else
6813
 
 
6814
 
cat >>confdefs.h <<\_ACEOF
6815
 
#define uint32_t unsigned long
6816
 
_ACEOF
6817
 
 
6818
 
fi
6819
 
 
6820
 
 
6821
 
{ echo "$as_me:$LINENO: checking for struct tun_pi" >&5
6822
 
echo $ECHO_N "checking for struct tun_pi... $ECHO_C" >&6; }
6823
 
if test "${ac_cv_type_struct_tun_pi+set}" = set; then
6824
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6825
 
else
6826
 
  cat >conftest.$ac_ext <<_ACEOF
6827
 
/* confdefs.h.  */
6828
 
_ACEOF
6829
 
cat confdefs.h >>conftest.$ac_ext
6830
 
cat >>conftest.$ac_ext <<_ACEOF
6831
 
/* end confdefs.h.  */
6832
 
#include "syshead.h"
6833
 
 
6834
 
typedef struct tun_pi ac__type_new_;
6835
 
int
6836
 
main ()
6837
 
{
6838
 
if ((ac__type_new_ *) 0)
6839
 
  return 0;
6840
 
if (sizeof (ac__type_new_))
6841
 
  return 0;
6842
 
  ;
6843
 
  return 0;
6844
 
}
6845
 
_ACEOF
6846
 
rm -f conftest.$ac_objext
6847
 
if { (ac_try="$ac_compile"
6848
 
case "(($ac_try" in
6849
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850
 
  *) ac_try_echo=$ac_try;;
6851
 
esac
6852
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853
 
  (eval "$ac_compile") 2>conftest.er1
6854
 
  ac_status=$?
6855
 
  grep -v '^ *+' conftest.er1 >conftest.err
6856
 
  rm -f conftest.er1
6857
 
  cat conftest.err >&5
6858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859
 
  (exit $ac_status); } && {
6860
 
         test -z "$ac_c_werror_flag" ||
6861
 
         test ! -s conftest.err
6862
 
       } && test -s conftest.$ac_objext; then
6863
 
  ac_cv_type_struct_tun_pi=yes
6864
 
else
6865
 
  echo "$as_me: failed program was:" >&5
6866
 
sed 's/^/| /' conftest.$ac_ext >&5
6867
 
 
6868
 
        ac_cv_type_struct_tun_pi=no
6869
 
fi
6870
 
 
6871
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872
 
fi
6873
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_tun_pi" >&5
6874
 
echo "${ECHO_T}$ac_cv_type_struct_tun_pi" >&6; }
6875
 
if test $ac_cv_type_struct_tun_pi = yes; then
6876
 
 
6877
 
cat >>confdefs.h <<\_ACEOF
6878
 
#define HAVE_TUN_PI 1
6879
 
_ACEOF
6880
 
 
6881
 
fi
6882
 
 
6883
 
{ echo "$as_me:$LINENO: checking for struct iphdr" >&5
6884
 
echo $ECHO_N "checking for struct iphdr... $ECHO_C" >&6; }
6885
 
if test "${ac_cv_type_struct_iphdr+set}" = set; then
6886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6887
 
else
6888
 
  cat >conftest.$ac_ext <<_ACEOF
6889
 
/* confdefs.h.  */
6890
 
_ACEOF
6891
 
cat confdefs.h >>conftest.$ac_ext
6892
 
cat >>conftest.$ac_ext <<_ACEOF
6893
 
/* end confdefs.h.  */
6894
 
#include "syshead.h"
6895
 
 
6896
 
typedef struct iphdr ac__type_new_;
6897
 
int
6898
 
main ()
6899
 
{
6900
 
if ((ac__type_new_ *) 0)
6901
 
  return 0;
6902
 
if (sizeof (ac__type_new_))
6903
 
  return 0;
6904
 
  ;
6905
 
  return 0;
6906
 
}
6907
 
_ACEOF
6908
 
rm -f conftest.$ac_objext
6909
 
if { (ac_try="$ac_compile"
6910
 
case "(($ac_try" in
6911
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912
 
  *) ac_try_echo=$ac_try;;
6913
 
esac
6914
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915
 
  (eval "$ac_compile") 2>conftest.er1
6916
 
  ac_status=$?
6917
 
  grep -v '^ *+' conftest.er1 >conftest.err
6918
 
  rm -f conftest.er1
6919
 
  cat conftest.err >&5
6920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921
 
  (exit $ac_status); } && {
6922
 
         test -z "$ac_c_werror_flag" ||
6923
 
         test ! -s conftest.err
6924
 
       } && test -s conftest.$ac_objext; then
6925
 
  ac_cv_type_struct_iphdr=yes
6926
 
else
6927
 
  echo "$as_me: failed program was:" >&5
6928
 
sed 's/^/| /' conftest.$ac_ext >&5
6929
 
 
6930
 
        ac_cv_type_struct_iphdr=no
6931
 
fi
6932
 
 
6933
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934
 
fi
6935
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_iphdr" >&5
6936
 
echo "${ECHO_T}$ac_cv_type_struct_iphdr" >&6; }
6937
 
if test $ac_cv_type_struct_iphdr = yes; then
6938
 
 
6939
 
cat >>confdefs.h <<\_ACEOF
6940
 
#define HAVE_IPHDR 1
6941
 
_ACEOF
6942
 
 
6943
 
fi
6944
 
 
6945
 
{ echo "$as_me:$LINENO: checking for struct iovec" >&5
6946
 
echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
6947
 
if test "${ac_cv_type_struct_iovec+set}" = set; then
6948
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6949
 
else
6950
 
  cat >conftest.$ac_ext <<_ACEOF
6951
 
/* confdefs.h.  */
6952
 
_ACEOF
6953
 
cat confdefs.h >>conftest.$ac_ext
6954
 
cat >>conftest.$ac_ext <<_ACEOF
6955
 
/* end confdefs.h.  */
6956
 
#include "syshead.h"
6957
 
 
6958
 
typedef struct iovec ac__type_new_;
6959
 
int
6960
 
main ()
6961
 
{
6962
 
if ((ac__type_new_ *) 0)
6963
 
  return 0;
6964
 
if (sizeof (ac__type_new_))
6965
 
  return 0;
6966
 
  ;
6967
 
  return 0;
6968
 
}
6969
 
_ACEOF
6970
 
rm -f conftest.$ac_objext
6971
 
if { (ac_try="$ac_compile"
6972
 
case "(($ac_try" in
6973
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974
 
  *) ac_try_echo=$ac_try;;
6975
 
esac
6976
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977
 
  (eval "$ac_compile") 2>conftest.er1
6978
 
  ac_status=$?
6979
 
  grep -v '^ *+' conftest.er1 >conftest.err
6980
 
  rm -f conftest.er1
6981
 
  cat conftest.err >&5
6982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983
 
  (exit $ac_status); } && {
6984
 
         test -z "$ac_c_werror_flag" ||
6985
 
         test ! -s conftest.err
6986
 
       } && test -s conftest.$ac_objext; then
6987
 
  ac_cv_type_struct_iovec=yes
6988
 
else
6989
 
  echo "$as_me: failed program was:" >&5
6990
 
sed 's/^/| /' conftest.$ac_ext >&5
6991
 
 
6992
 
        ac_cv_type_struct_iovec=no
6993
 
fi
6994
 
 
6995
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996
 
fi
6997
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
6998
 
echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6; }
6999
 
if test $ac_cv_type_struct_iovec = yes; then
7000
 
 
7001
 
cat >>confdefs.h <<\_ACEOF
7002
 
#define HAVE_IOVEC 1
7003
 
_ACEOF
7004
 
 
7005
 
fi
7006
 
 
7007
 
 
7008
 
{ echo "$as_me:$LINENO: checking for struct sock_extended_err" >&5
7009
 
echo $ECHO_N "checking for struct sock_extended_err... $ECHO_C" >&6; }
7010
 
if test "${ac_cv_type_struct_sock_extended_err+set}" = set; then
7011
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7012
 
else
7013
 
  cat >conftest.$ac_ext <<_ACEOF
7014
 
/* confdefs.h.  */
7015
 
_ACEOF
7016
 
cat confdefs.h >>conftest.$ac_ext
7017
 
cat >>conftest.$ac_ext <<_ACEOF
7018
 
/* end confdefs.h.  */
7019
 
#include "syshead.h"
7020
 
 
7021
 
typedef struct sock_extended_err ac__type_new_;
7022
 
int
7023
 
main ()
7024
 
{
7025
 
if ((ac__type_new_ *) 0)
7026
 
  return 0;
7027
 
if (sizeof (ac__type_new_))
7028
 
  return 0;
7029
 
  ;
7030
 
  return 0;
7031
 
}
7032
 
_ACEOF
7033
 
rm -f conftest.$ac_objext
7034
 
if { (ac_try="$ac_compile"
7035
 
case "(($ac_try" in
7036
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037
 
  *) ac_try_echo=$ac_try;;
7038
 
esac
7039
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040
 
  (eval "$ac_compile") 2>conftest.er1
7041
 
  ac_status=$?
7042
 
  grep -v '^ *+' conftest.er1 >conftest.err
7043
 
  rm -f conftest.er1
7044
 
  cat conftest.err >&5
7045
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046
 
  (exit $ac_status); } && {
7047
 
         test -z "$ac_c_werror_flag" ||
7048
 
         test ! -s conftest.err
7049
 
       } && test -s conftest.$ac_objext; then
7050
 
  ac_cv_type_struct_sock_extended_err=yes
7051
 
else
7052
 
  echo "$as_me: failed program was:" >&5
7053
 
sed 's/^/| /' conftest.$ac_ext >&5
7054
 
 
7055
 
        ac_cv_type_struct_sock_extended_err=no
7056
 
fi
7057
 
 
7058
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059
 
fi
7060
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sock_extended_err" >&5
7061
 
echo "${ECHO_T}$ac_cv_type_struct_sock_extended_err" >&6; }
7062
 
if test $ac_cv_type_struct_sock_extended_err = yes; then
7063
 
 
7064
 
cat >>confdefs.h <<\_ACEOF
7065
 
#define HAVE_SOCK_EXTENDED_ERR 1
7066
 
_ACEOF
7067
 
 
7068
 
fi
7069
 
 
7070
 
{ echo "$as_me:$LINENO: checking for struct msghdr" >&5
7071
 
echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
7072
 
if test "${ac_cv_type_struct_msghdr+set}" = set; then
7073
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7074
 
else
7075
 
  cat >conftest.$ac_ext <<_ACEOF
7076
 
/* confdefs.h.  */
7077
 
_ACEOF
7078
 
cat confdefs.h >>conftest.$ac_ext
7079
 
cat >>conftest.$ac_ext <<_ACEOF
7080
 
/* end confdefs.h.  */
7081
 
#include "syshead.h"
7082
 
 
7083
 
typedef struct msghdr ac__type_new_;
7084
 
int
7085
 
main ()
7086
 
{
7087
 
if ((ac__type_new_ *) 0)
7088
 
  return 0;
7089
 
if (sizeof (ac__type_new_))
7090
 
  return 0;
7091
 
  ;
7092
 
  return 0;
7093
 
}
7094
 
_ACEOF
7095
 
rm -f conftest.$ac_objext
7096
 
if { (ac_try="$ac_compile"
7097
 
case "(($ac_try" in
7098
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099
 
  *) ac_try_echo=$ac_try;;
7100
 
esac
7101
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102
 
  (eval "$ac_compile") 2>conftest.er1
7103
 
  ac_status=$?
7104
 
  grep -v '^ *+' conftest.er1 >conftest.err
7105
 
  rm -f conftest.er1
7106
 
  cat conftest.err >&5
7107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108
 
  (exit $ac_status); } && {
7109
 
         test -z "$ac_c_werror_flag" ||
7110
 
         test ! -s conftest.err
7111
 
       } && test -s conftest.$ac_objext; then
7112
 
  ac_cv_type_struct_msghdr=yes
7113
 
else
7114
 
  echo "$as_me: failed program was:" >&5
7115
 
sed 's/^/| /' conftest.$ac_ext >&5
7116
 
 
7117
 
        ac_cv_type_struct_msghdr=no
7118
 
fi
7119
 
 
7120
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121
 
fi
7122
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
7123
 
echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6; }
7124
 
if test $ac_cv_type_struct_msghdr = yes; then
7125
 
 
7126
 
cat >>confdefs.h <<\_ACEOF
7127
 
#define HAVE_MSGHDR 1
7128
 
_ACEOF
7129
 
 
7130
 
fi
7131
 
 
7132
 
{ echo "$as_me:$LINENO: checking for struct cmsghdr" >&5
7133
 
echo $ECHO_N "checking for struct cmsghdr... $ECHO_C" >&6; }
7134
 
if test "${ac_cv_type_struct_cmsghdr+set}" = set; then
7135
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7136
 
else
7137
 
  cat >conftest.$ac_ext <<_ACEOF
7138
 
/* confdefs.h.  */
7139
 
_ACEOF
7140
 
cat confdefs.h >>conftest.$ac_ext
7141
 
cat >>conftest.$ac_ext <<_ACEOF
7142
 
/* end confdefs.h.  */
7143
 
#include "syshead.h"
7144
 
 
7145
 
typedef struct cmsghdr ac__type_new_;
7146
 
int
7147
 
main ()
7148
 
{
7149
 
if ((ac__type_new_ *) 0)
7150
 
  return 0;
7151
 
if (sizeof (ac__type_new_))
7152
 
  return 0;
7153
 
  ;
7154
 
  return 0;
7155
 
}
7156
 
_ACEOF
7157
 
rm -f conftest.$ac_objext
7158
 
if { (ac_try="$ac_compile"
7159
 
case "(($ac_try" in
7160
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161
 
  *) ac_try_echo=$ac_try;;
7162
 
esac
7163
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164
 
  (eval "$ac_compile") 2>conftest.er1
7165
 
  ac_status=$?
7166
 
  grep -v '^ *+' conftest.er1 >conftest.err
7167
 
  rm -f conftest.er1
7168
 
  cat conftest.err >&5
7169
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170
 
  (exit $ac_status); } && {
7171
 
         test -z "$ac_c_werror_flag" ||
7172
 
         test ! -s conftest.err
7173
 
       } && test -s conftest.$ac_objext; then
7174
 
  ac_cv_type_struct_cmsghdr=yes
7175
 
else
7176
 
  echo "$as_me: failed program was:" >&5
7177
 
sed 's/^/| /' conftest.$ac_ext >&5
7178
 
 
7179
 
        ac_cv_type_struct_cmsghdr=no
7180
 
fi
7181
 
 
7182
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183
 
fi
7184
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsghdr" >&5
7185
 
echo "${ECHO_T}$ac_cv_type_struct_cmsghdr" >&6; }
7186
 
if test $ac_cv_type_struct_cmsghdr = yes; then
7187
 
 
7188
 
cat >>confdefs.h <<\_ACEOF
7189
 
#define HAVE_CMSGHDR 1
7190
 
_ACEOF
7191
 
 
7192
 
fi
7193
 
 
7194
 
{ echo "$as_me:$LINENO: checking for struct in_pktinfo" >&5
7195
 
echo $ECHO_N "checking for struct in_pktinfo... $ECHO_C" >&6; }
7196
 
if test "${ac_cv_type_struct_in_pktinfo+set}" = set; then
7197
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7198
 
else
7199
 
  cat >conftest.$ac_ext <<_ACEOF
7200
 
/* confdefs.h.  */
7201
 
_ACEOF
7202
 
cat confdefs.h >>conftest.$ac_ext
7203
 
cat >>conftest.$ac_ext <<_ACEOF
7204
 
/* end confdefs.h.  */
7205
 
#include "syshead.h"
7206
 
 
7207
 
typedef struct in_pktinfo ac__type_new_;
7208
 
int
7209
 
main ()
7210
 
{
7211
 
if ((ac__type_new_ *) 0)
7212
 
  return 0;
7213
 
if (sizeof (ac__type_new_))
7214
 
  return 0;
7215
 
  ;
7216
 
  return 0;
7217
 
}
7218
 
_ACEOF
7219
 
rm -f conftest.$ac_objext
7220
 
if { (ac_try="$ac_compile"
7221
 
case "(($ac_try" in
7222
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223
 
  *) ac_try_echo=$ac_try;;
7224
 
esac
7225
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226
 
  (eval "$ac_compile") 2>conftest.er1
7227
 
  ac_status=$?
7228
 
  grep -v '^ *+' conftest.er1 >conftest.err
7229
 
  rm -f conftest.er1
7230
 
  cat conftest.err >&5
7231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232
 
  (exit $ac_status); } && {
7233
 
         test -z "$ac_c_werror_flag" ||
7234
 
         test ! -s conftest.err
7235
 
       } && test -s conftest.$ac_objext; then
7236
 
  ac_cv_type_struct_in_pktinfo=yes
7237
 
else
7238
 
  echo "$as_me: failed program was:" >&5
7239
 
sed 's/^/| /' conftest.$ac_ext >&5
7240
 
 
7241
 
        ac_cv_type_struct_in_pktinfo=no
7242
 
fi
7243
 
 
7244
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245
 
fi
7246
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_in_pktinfo" >&5
7247
 
echo "${ECHO_T}$ac_cv_type_struct_in_pktinfo" >&6; }
7248
 
if test $ac_cv_type_struct_in_pktinfo = yes; then
7249
 
 
7250
 
cat >>confdefs.h <<\_ACEOF
7251
 
#define HAVE_IN_PKTINFO 1
7252
 
_ACEOF
7253
 
 
7254
 
fi
7255
 
 
7256
 
 
7257
 
{ echo "$as_me:$LINENO: checking for unsigned int" >&5
7258
 
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
7259
 
if test "${ac_cv_type_unsigned_int+set}" = set; then
7260
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7261
 
else
7262
 
  cat >conftest.$ac_ext <<_ACEOF
7263
 
/* confdefs.h.  */
7264
 
_ACEOF
7265
 
cat confdefs.h >>conftest.$ac_ext
7266
 
cat >>conftest.$ac_ext <<_ACEOF
7267
 
/* end confdefs.h.  */
7268
 
$ac_includes_default
7269
 
typedef unsigned int ac__type_new_;
7270
 
int
7271
 
main ()
7272
 
{
7273
 
if ((ac__type_new_ *) 0)
7274
 
  return 0;
7275
 
if (sizeof (ac__type_new_))
7276
 
  return 0;
7277
 
  ;
7278
 
  return 0;
7279
 
}
7280
 
_ACEOF
7281
 
rm -f conftest.$ac_objext
7282
 
if { (ac_try="$ac_compile"
7283
 
case "(($ac_try" in
7284
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285
 
  *) ac_try_echo=$ac_try;;
7286
 
esac
7287
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288
 
  (eval "$ac_compile") 2>conftest.er1
7289
 
  ac_status=$?
7290
 
  grep -v '^ *+' conftest.er1 >conftest.err
7291
 
  rm -f conftest.er1
7292
 
  cat conftest.err >&5
7293
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294
 
  (exit $ac_status); } && {
7295
 
         test -z "$ac_c_werror_flag" ||
7296
 
         test ! -s conftest.err
7297
 
       } && test -s conftest.$ac_objext; then
7298
 
  ac_cv_type_unsigned_int=yes
7299
 
else
7300
 
  echo "$as_me: failed program was:" >&5
7301
 
sed 's/^/| /' conftest.$ac_ext >&5
7302
 
 
7303
 
        ac_cv_type_unsigned_int=no
7304
 
fi
7305
 
 
7306
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307
 
fi
7308
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
7309
 
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
 
5965
ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include \"syshead.h\"
 
5966
"
 
5967
if test "x$ac_cv_type_in_addr_t" = x""yes; then :
 
5968
 
 
5969
else
 
5970
 
 
5971
$as_echo "#define in_addr_t uint32_t" >>confdefs.h
 
5972
 
 
5973
fi
 
5974
 
 
5975
 
 
5976
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include \"syshead.h\"
 
5977
"
 
5978
if test "x$ac_cv_type_uint8_t" = x""yes; then :
 
5979
 
 
5980
else
 
5981
 
 
5982
$as_echo "#define uint8_t unsigned char" >>confdefs.h
 
5983
 
 
5984
fi
 
5985
 
 
5986
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include \"syshead.h\"
 
5987
"
 
5988
if test "x$ac_cv_type_uint16_t" = x""yes; then :
 
5989
 
 
5990
else
 
5991
 
 
5992
$as_echo "#define uint16_t unsigned char" >>confdefs.h
 
5993
 
 
5994
fi
 
5995
 
 
5996
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include \"syshead.h\"
 
5997
"
 
5998
if test "x$ac_cv_type_uint32_t" = x""yes; then :
 
5999
 
 
6000
else
 
6001
 
 
6002
$as_echo "#define uint32_t unsigned long" >>confdefs.h
 
6003
 
 
6004
fi
 
6005
 
 
6006
 
 
6007
ac_fn_c_check_type "$LINENO" "struct tun_pi" "ac_cv_type_struct_tun_pi" "#include \"syshead.h\"
 
6008
"
 
6009
if test "x$ac_cv_type_struct_tun_pi" = x""yes; then :
 
6010
 
 
6011
$as_echo "#define HAVE_TUN_PI 1" >>confdefs.h
 
6012
 
 
6013
fi
 
6014
 
 
6015
ac_fn_c_check_type "$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "#include \"syshead.h\"
 
6016
"
 
6017
if test "x$ac_cv_type_struct_iphdr" = x""yes; then :
 
6018
 
 
6019
$as_echo "#define HAVE_IPHDR 1" >>confdefs.h
 
6020
 
 
6021
fi
 
6022
 
 
6023
ac_fn_c_check_type "$LINENO" "struct iovec" "ac_cv_type_struct_iovec" "#include \"syshead.h\"
 
6024
"
 
6025
if test "x$ac_cv_type_struct_iovec" = x""yes; then :
 
6026
 
 
6027
$as_echo "#define HAVE_IOVEC 1" >>confdefs.h
 
6028
 
 
6029
fi
 
6030
 
 
6031
 
 
6032
ac_fn_c_check_type "$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "#include \"syshead.h\"
 
6033
"
 
6034
if test "x$ac_cv_type_struct_sock_extended_err" = x""yes; then :
 
6035
 
 
6036
$as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
 
6037
 
 
6038
fi
 
6039
 
 
6040
ac_fn_c_check_type "$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "#include \"syshead.h\"
 
6041
"
 
6042
if test "x$ac_cv_type_struct_msghdr" = x""yes; then :
 
6043
 
 
6044
$as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
 
6045
 
 
6046
fi
 
6047
 
 
6048
ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "#include \"syshead.h\"
 
6049
"
 
6050
if test "x$ac_cv_type_struct_cmsghdr" = x""yes; then :
 
6051
 
 
6052
$as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
 
6053
 
 
6054
fi
 
6055
 
 
6056
ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "#include \"syshead.h\"
 
6057
"
 
6058
if test "x$ac_cv_type_struct_in_pktinfo" = x""yes; then :
 
6059
 
 
6060
$as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
 
6061
 
 
6062
fi
 
6063
 
7310
6064
 
7311
6065
# The cast to long int works around a bug in the HP C Compiler
7312
6066
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7313
6067
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7314
6068
# This bug is HP SR number 8606223364.
7315
 
{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
7316
 
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
7317
 
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
7318
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7319
 
else
7320
 
  if test "$cross_compiling" = yes; then
7321
 
  # Depending upon the size, compute the lo and hi bounds.
7322
 
cat >conftest.$ac_ext <<_ACEOF
7323
 
/* confdefs.h.  */
7324
 
_ACEOF
7325
 
cat confdefs.h >>conftest.$ac_ext
7326
 
cat >>conftest.$ac_ext <<_ACEOF
7327
 
/* end confdefs.h.  */
7328
 
$ac_includes_default
7329
 
   typedef unsigned int ac__type_sizeof_;
7330
 
int
7331
 
main ()
7332
 
{
7333
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7334
 
test_array [0] = 0
7335
 
 
7336
 
  ;
7337
 
  return 0;
7338
 
}
7339
 
_ACEOF
7340
 
rm -f conftest.$ac_objext
7341
 
if { (ac_try="$ac_compile"
7342
 
case "(($ac_try" in
7343
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344
 
  *) ac_try_echo=$ac_try;;
7345
 
esac
7346
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347
 
  (eval "$ac_compile") 2>conftest.er1
7348
 
  ac_status=$?
7349
 
  grep -v '^ *+' conftest.er1 >conftest.err
7350
 
  rm -f conftest.er1
7351
 
  cat conftest.err >&5
7352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353
 
  (exit $ac_status); } && {
7354
 
         test -z "$ac_c_werror_flag" ||
7355
 
         test ! -s conftest.err
7356
 
       } && test -s conftest.$ac_objext; then
7357
 
  ac_lo=0 ac_mid=0
7358
 
  while :; do
7359
 
    cat >conftest.$ac_ext <<_ACEOF
7360
 
/* confdefs.h.  */
7361
 
_ACEOF
7362
 
cat confdefs.h >>conftest.$ac_ext
7363
 
cat >>conftest.$ac_ext <<_ACEOF
7364
 
/* end confdefs.h.  */
7365
 
$ac_includes_default
7366
 
   typedef unsigned int ac__type_sizeof_;
7367
 
int
7368
 
main ()
7369
 
{
7370
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7371
 
test_array [0] = 0
7372
 
 
7373
 
  ;
7374
 
  return 0;
7375
 
}
7376
 
_ACEOF
7377
 
rm -f conftest.$ac_objext
7378
 
if { (ac_try="$ac_compile"
7379
 
case "(($ac_try" in
7380
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381
 
  *) ac_try_echo=$ac_try;;
7382
 
esac
7383
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384
 
  (eval "$ac_compile") 2>conftest.er1
7385
 
  ac_status=$?
7386
 
  grep -v '^ *+' conftest.er1 >conftest.err
7387
 
  rm -f conftest.er1
7388
 
  cat conftest.err >&5
7389
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390
 
  (exit $ac_status); } && {
7391
 
         test -z "$ac_c_werror_flag" ||
7392
 
         test ! -s conftest.err
7393
 
       } && test -s conftest.$ac_objext; then
7394
 
  ac_hi=$ac_mid; break
7395
 
else
7396
 
  echo "$as_me: failed program was:" >&5
7397
 
sed 's/^/| /' conftest.$ac_ext >&5
7398
 
 
7399
 
        ac_lo=`expr $ac_mid + 1`
7400
 
                        if test $ac_lo -le $ac_mid; then
7401
 
                          ac_lo= ac_hi=
7402
 
                          break
7403
 
                        fi
7404
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
7405
 
fi
7406
 
 
7407
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408
 
  done
7409
 
else
7410
 
  echo "$as_me: failed program was:" >&5
7411
 
sed 's/^/| /' conftest.$ac_ext >&5
7412
 
 
7413
 
        cat >conftest.$ac_ext <<_ACEOF
7414
 
/* confdefs.h.  */
7415
 
_ACEOF
7416
 
cat confdefs.h >>conftest.$ac_ext
7417
 
cat >>conftest.$ac_ext <<_ACEOF
7418
 
/* end confdefs.h.  */
7419
 
$ac_includes_default
7420
 
   typedef unsigned int ac__type_sizeof_;
7421
 
int
7422
 
main ()
7423
 
{
7424
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7425
 
test_array [0] = 0
7426
 
 
7427
 
  ;
7428
 
  return 0;
7429
 
}
7430
 
_ACEOF
7431
 
rm -f conftest.$ac_objext
7432
 
if { (ac_try="$ac_compile"
7433
 
case "(($ac_try" in
7434
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435
 
  *) ac_try_echo=$ac_try;;
7436
 
esac
7437
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438
 
  (eval "$ac_compile") 2>conftest.er1
7439
 
  ac_status=$?
7440
 
  grep -v '^ *+' conftest.er1 >conftest.err
7441
 
  rm -f conftest.er1
7442
 
  cat conftest.err >&5
7443
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444
 
  (exit $ac_status); } && {
7445
 
         test -z "$ac_c_werror_flag" ||
7446
 
         test ! -s conftest.err
7447
 
       } && test -s conftest.$ac_objext; then
7448
 
  ac_hi=-1 ac_mid=-1
7449
 
  while :; do
7450
 
    cat >conftest.$ac_ext <<_ACEOF
7451
 
/* confdefs.h.  */
7452
 
_ACEOF
7453
 
cat confdefs.h >>conftest.$ac_ext
7454
 
cat >>conftest.$ac_ext <<_ACEOF
7455
 
/* end confdefs.h.  */
7456
 
$ac_includes_default
7457
 
   typedef unsigned int ac__type_sizeof_;
7458
 
int
7459
 
main ()
7460
 
{
7461
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7462
 
test_array [0] = 0
7463
 
 
7464
 
  ;
7465
 
  return 0;
7466
 
}
7467
 
_ACEOF
7468
 
rm -f conftest.$ac_objext
7469
 
if { (ac_try="$ac_compile"
7470
 
case "(($ac_try" in
7471
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472
 
  *) ac_try_echo=$ac_try;;
7473
 
esac
7474
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475
 
  (eval "$ac_compile") 2>conftest.er1
7476
 
  ac_status=$?
7477
 
  grep -v '^ *+' conftest.er1 >conftest.err
7478
 
  rm -f conftest.er1
7479
 
  cat conftest.err >&5
7480
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481
 
  (exit $ac_status); } && {
7482
 
         test -z "$ac_c_werror_flag" ||
7483
 
         test ! -s conftest.err
7484
 
       } && test -s conftest.$ac_objext; then
7485
 
  ac_lo=$ac_mid; break
7486
 
else
7487
 
  echo "$as_me: failed program was:" >&5
7488
 
sed 's/^/| /' conftest.$ac_ext >&5
7489
 
 
7490
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
7491
 
                        if test $ac_mid -le $ac_hi; then
7492
 
                          ac_lo= ac_hi=
7493
 
                          break
7494
 
                        fi
7495
 
                        ac_mid=`expr 2 '*' $ac_mid`
7496
 
fi
7497
 
 
7498
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499
 
  done
7500
 
else
7501
 
  echo "$as_me: failed program was:" >&5
7502
 
sed 's/^/| /' conftest.$ac_ext >&5
7503
 
 
7504
 
        ac_lo= ac_hi=
7505
 
fi
7506
 
 
7507
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508
 
fi
7509
 
 
7510
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511
 
# Binary search between lo and hi bounds.
7512
 
while test "x$ac_lo" != "x$ac_hi"; do
7513
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7514
 
  cat >conftest.$ac_ext <<_ACEOF
7515
 
/* confdefs.h.  */
7516
 
_ACEOF
7517
 
cat confdefs.h >>conftest.$ac_ext
7518
 
cat >>conftest.$ac_ext <<_ACEOF
7519
 
/* end confdefs.h.  */
7520
 
$ac_includes_default
7521
 
   typedef unsigned int ac__type_sizeof_;
7522
 
int
7523
 
main ()
7524
 
{
7525
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7526
 
test_array [0] = 0
7527
 
 
7528
 
  ;
7529
 
  return 0;
7530
 
}
7531
 
_ACEOF
7532
 
rm -f conftest.$ac_objext
7533
 
if { (ac_try="$ac_compile"
7534
 
case "(($ac_try" in
7535
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536
 
  *) ac_try_echo=$ac_try;;
7537
 
esac
7538
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539
 
  (eval "$ac_compile") 2>conftest.er1
7540
 
  ac_status=$?
7541
 
  grep -v '^ *+' conftest.er1 >conftest.err
7542
 
  rm -f conftest.er1
7543
 
  cat conftest.err >&5
7544
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545
 
  (exit $ac_status); } && {
7546
 
         test -z "$ac_c_werror_flag" ||
7547
 
         test ! -s conftest.err
7548
 
       } && test -s conftest.$ac_objext; then
7549
 
  ac_hi=$ac_mid
7550
 
else
7551
 
  echo "$as_me: failed program was:" >&5
7552
 
sed 's/^/| /' conftest.$ac_ext >&5
7553
 
 
7554
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
7555
 
fi
7556
 
 
7557
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558
 
done
7559
 
case $ac_lo in
7560
 
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
7561
 
'') if test "$ac_cv_type_unsigned_int" = yes; then
7562
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
7563
 
See \`config.log' for more details." >&5
7564
 
echo "$as_me: error: cannot compute sizeof (unsigned int)
7565
 
See \`config.log' for more details." >&2;}
7566
 
   { (exit 77); exit 77; }; }
7567
 
   else
7568
 
     ac_cv_sizeof_unsigned_int=0
7569
 
   fi ;;
7570
 
esac
7571
 
else
7572
 
  cat >conftest.$ac_ext <<_ACEOF
7573
 
/* confdefs.h.  */
7574
 
_ACEOF
7575
 
cat confdefs.h >>conftest.$ac_ext
7576
 
cat >>conftest.$ac_ext <<_ACEOF
7577
 
/* end confdefs.h.  */
7578
 
$ac_includes_default
7579
 
   typedef unsigned int ac__type_sizeof_;
7580
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7581
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7582
 
#include <stdio.h>
7583
 
#include <stdlib.h>
7584
 
int
7585
 
main ()
7586
 
{
7587
 
 
7588
 
  FILE *f = fopen ("conftest.val", "w");
7589
 
  if (! f)
7590
 
    return 1;
7591
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7592
 
    {
7593
 
      long int i = longval ();
7594
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7595
 
        return 1;
7596
 
      fprintf (f, "%ld\n", i);
7597
 
    }
7598
 
  else
7599
 
    {
7600
 
      unsigned long int i = ulongval ();
7601
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7602
 
        return 1;
7603
 
      fprintf (f, "%lu\n", i);
7604
 
    }
7605
 
  return ferror (f) || fclose (f) != 0;
7606
 
 
7607
 
  ;
7608
 
  return 0;
7609
 
}
7610
 
_ACEOF
7611
 
rm -f conftest$ac_exeext
7612
 
if { (ac_try="$ac_link"
7613
 
case "(($ac_try" in
7614
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615
 
  *) ac_try_echo=$ac_try;;
7616
 
esac
7617
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618
 
  (eval "$ac_link") 2>&5
7619
 
  ac_status=$?
7620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7622
 
  { (case "(($ac_try" in
7623
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624
 
  *) ac_try_echo=$ac_try;;
7625
 
esac
7626
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627
 
  (eval "$ac_try") 2>&5
7628
 
  ac_status=$?
7629
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630
 
  (exit $ac_status); }; }; then
7631
 
  ac_cv_sizeof_unsigned_int=`cat conftest.val`
7632
 
else
7633
 
  echo "$as_me: program exited with status $ac_status" >&5
7634
 
echo "$as_me: failed program was:" >&5
7635
 
sed 's/^/| /' conftest.$ac_ext >&5
7636
 
 
7637
 
( exit $ac_status )
7638
 
if test "$ac_cv_type_unsigned_int" = yes; then
7639
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
7640
 
See \`config.log' for more details." >&5
7641
 
echo "$as_me: error: cannot compute sizeof (unsigned int)
7642
 
See \`config.log' for more details." >&2;}
7643
 
   { (exit 77); exit 77; }; }
 
6069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
 
6070
$as_echo_n "checking size of unsigned int... " >&6; }
 
6071
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
 
6072
  $as_echo_n "(cached) " >&6
 
6073
else
 
6074
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
 
6075
 
 
6076
else
 
6077
  if test "$ac_cv_type_unsigned_int" = yes; then
 
6078
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6079
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6080
as_fn_error 77 "cannot compute sizeof (unsigned int)
 
6081
See \`config.log' for more details" "$LINENO" 5; }
7644
6082
   else
7645
6083
     ac_cv_sizeof_unsigned_int=0
7646
6084
   fi
7647
6085
fi
7648
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7649
 
fi
7650
 
rm -f conftest.val
7651
 
fi
7652
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
7653
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
 
6086
 
 
6087
fi
 
6088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
 
6089
$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
7654
6090
 
7655
6091
 
7656
6092
 
7659
6095
_ACEOF
7660
6096
 
7661
6097
 
7662
 
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
7663
 
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7664
 
if test "${ac_cv_type_unsigned_long+set}" = set; then
7665
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7666
 
else
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 unsigned long ac__type_new_;
7675
 
int
7676
 
main ()
7677
 
{
7678
 
if ((ac__type_new_ *) 0)
7679
 
  return 0;
7680
 
if (sizeof (ac__type_new_))
7681
 
  return 0;
7682
 
  ;
7683
 
  return 0;
7684
 
}
7685
 
_ACEOF
7686
 
rm -f conftest.$ac_objext
7687
 
if { (ac_try="$ac_compile"
7688
 
case "(($ac_try" in
7689
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690
 
  *) ac_try_echo=$ac_try;;
7691
 
esac
7692
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693
 
  (eval "$ac_compile") 2>conftest.er1
7694
 
  ac_status=$?
7695
 
  grep -v '^ *+' conftest.er1 >conftest.err
7696
 
  rm -f conftest.er1
7697
 
  cat conftest.err >&5
7698
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699
 
  (exit $ac_status); } && {
7700
 
         test -z "$ac_c_werror_flag" ||
7701
 
         test ! -s conftest.err
7702
 
       } && test -s conftest.$ac_objext; then
7703
 
  ac_cv_type_unsigned_long=yes
7704
 
else
7705
 
  echo "$as_me: failed program was:" >&5
7706
 
sed 's/^/| /' conftest.$ac_ext >&5
7707
 
 
7708
 
        ac_cv_type_unsigned_long=no
7709
 
fi
7710
 
 
7711
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712
 
fi
7713
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7714
 
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7715
 
 
7716
6098
# The cast to long int works around a bug in the HP C Compiler
7717
6099
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7718
6100
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7719
6101
# This bug is HP SR number 8606223364.
7720
 
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
7721
 
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7722
 
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7724
 
else
7725
 
  if test "$cross_compiling" = yes; then
7726
 
  # Depending upon the size, compute the lo and hi bounds.
7727
 
cat >conftest.$ac_ext <<_ACEOF
7728
 
/* confdefs.h.  */
7729
 
_ACEOF
7730
 
cat confdefs.h >>conftest.$ac_ext
7731
 
cat >>conftest.$ac_ext <<_ACEOF
7732
 
/* end confdefs.h.  */
7733
 
$ac_includes_default
7734
 
   typedef unsigned long ac__type_sizeof_;
7735
 
int
7736
 
main ()
7737
 
{
7738
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7739
 
test_array [0] = 0
7740
 
 
7741
 
  ;
7742
 
  return 0;
7743
 
}
7744
 
_ACEOF
7745
 
rm -f conftest.$ac_objext
7746
 
if { (ac_try="$ac_compile"
7747
 
case "(($ac_try" in
7748
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749
 
  *) ac_try_echo=$ac_try;;
7750
 
esac
7751
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752
 
  (eval "$ac_compile") 2>conftest.er1
7753
 
  ac_status=$?
7754
 
  grep -v '^ *+' conftest.er1 >conftest.err
7755
 
  rm -f conftest.er1
7756
 
  cat conftest.err >&5
7757
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758
 
  (exit $ac_status); } && {
7759
 
         test -z "$ac_c_werror_flag" ||
7760
 
         test ! -s conftest.err
7761
 
       } && test -s conftest.$ac_objext; then
7762
 
  ac_lo=0 ac_mid=0
7763
 
  while :; do
7764
 
    cat >conftest.$ac_ext <<_ACEOF
7765
 
/* confdefs.h.  */
7766
 
_ACEOF
7767
 
cat confdefs.h >>conftest.$ac_ext
7768
 
cat >>conftest.$ac_ext <<_ACEOF
7769
 
/* end confdefs.h.  */
7770
 
$ac_includes_default
7771
 
   typedef unsigned long ac__type_sizeof_;
7772
 
int
7773
 
main ()
7774
 
{
7775
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7776
 
test_array [0] = 0
7777
 
 
7778
 
  ;
7779
 
  return 0;
7780
 
}
7781
 
_ACEOF
7782
 
rm -f conftest.$ac_objext
7783
 
if { (ac_try="$ac_compile"
7784
 
case "(($ac_try" in
7785
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786
 
  *) ac_try_echo=$ac_try;;
7787
 
esac
7788
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789
 
  (eval "$ac_compile") 2>conftest.er1
7790
 
  ac_status=$?
7791
 
  grep -v '^ *+' conftest.er1 >conftest.err
7792
 
  rm -f conftest.er1
7793
 
  cat conftest.err >&5
7794
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795
 
  (exit $ac_status); } && {
7796
 
         test -z "$ac_c_werror_flag" ||
7797
 
         test ! -s conftest.err
7798
 
       } && test -s conftest.$ac_objext; then
7799
 
  ac_hi=$ac_mid; break
7800
 
else
7801
 
  echo "$as_me: failed program was:" >&5
7802
 
sed 's/^/| /' conftest.$ac_ext >&5
7803
 
 
7804
 
        ac_lo=`expr $ac_mid + 1`
7805
 
                        if test $ac_lo -le $ac_mid; then
7806
 
                          ac_lo= ac_hi=
7807
 
                          break
7808
 
                        fi
7809
 
                        ac_mid=`expr 2 '*' $ac_mid + 1`
7810
 
fi
7811
 
 
7812
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813
 
  done
7814
 
else
7815
 
  echo "$as_me: failed program was:" >&5
7816
 
sed 's/^/| /' conftest.$ac_ext >&5
7817
 
 
7818
 
        cat >conftest.$ac_ext <<_ACEOF
7819
 
/* confdefs.h.  */
7820
 
_ACEOF
7821
 
cat confdefs.h >>conftest.$ac_ext
7822
 
cat >>conftest.$ac_ext <<_ACEOF
7823
 
/* end confdefs.h.  */
7824
 
$ac_includes_default
7825
 
   typedef unsigned long ac__type_sizeof_;
7826
 
int
7827
 
main ()
7828
 
{
7829
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7830
 
test_array [0] = 0
7831
 
 
7832
 
  ;
7833
 
  return 0;
7834
 
}
7835
 
_ACEOF
7836
 
rm -f conftest.$ac_objext
7837
 
if { (ac_try="$ac_compile"
7838
 
case "(($ac_try" in
7839
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840
 
  *) ac_try_echo=$ac_try;;
7841
 
esac
7842
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843
 
  (eval "$ac_compile") 2>conftest.er1
7844
 
  ac_status=$?
7845
 
  grep -v '^ *+' conftest.er1 >conftest.err
7846
 
  rm -f conftest.er1
7847
 
  cat conftest.err >&5
7848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849
 
  (exit $ac_status); } && {
7850
 
         test -z "$ac_c_werror_flag" ||
7851
 
         test ! -s conftest.err
7852
 
       } && test -s conftest.$ac_objext; then
7853
 
  ac_hi=-1 ac_mid=-1
7854
 
  while :; do
7855
 
    cat >conftest.$ac_ext <<_ACEOF
7856
 
/* confdefs.h.  */
7857
 
_ACEOF
7858
 
cat confdefs.h >>conftest.$ac_ext
7859
 
cat >>conftest.$ac_ext <<_ACEOF
7860
 
/* end confdefs.h.  */
7861
 
$ac_includes_default
7862
 
   typedef unsigned long ac__type_sizeof_;
7863
 
int
7864
 
main ()
7865
 
{
7866
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7867
 
test_array [0] = 0
7868
 
 
7869
 
  ;
7870
 
  return 0;
7871
 
}
7872
 
_ACEOF
7873
 
rm -f conftest.$ac_objext
7874
 
if { (ac_try="$ac_compile"
7875
 
case "(($ac_try" in
7876
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877
 
  *) ac_try_echo=$ac_try;;
7878
 
esac
7879
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880
 
  (eval "$ac_compile") 2>conftest.er1
7881
 
  ac_status=$?
7882
 
  grep -v '^ *+' conftest.er1 >conftest.err
7883
 
  rm -f conftest.er1
7884
 
  cat conftest.err >&5
7885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886
 
  (exit $ac_status); } && {
7887
 
         test -z "$ac_c_werror_flag" ||
7888
 
         test ! -s conftest.err
7889
 
       } && test -s conftest.$ac_objext; then
7890
 
  ac_lo=$ac_mid; break
7891
 
else
7892
 
  echo "$as_me: failed program was:" >&5
7893
 
sed 's/^/| /' conftest.$ac_ext >&5
7894
 
 
7895
 
        ac_hi=`expr '(' $ac_mid ')' - 1`
7896
 
                        if test $ac_mid -le $ac_hi; then
7897
 
                          ac_lo= ac_hi=
7898
 
                          break
7899
 
                        fi
7900
 
                        ac_mid=`expr 2 '*' $ac_mid`
7901
 
fi
7902
 
 
7903
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904
 
  done
7905
 
else
7906
 
  echo "$as_me: failed program was:" >&5
7907
 
sed 's/^/| /' conftest.$ac_ext >&5
7908
 
 
7909
 
        ac_lo= ac_hi=
7910
 
fi
7911
 
 
7912
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913
 
fi
7914
 
 
7915
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916
 
# Binary search between lo and hi bounds.
7917
 
while test "x$ac_lo" != "x$ac_hi"; do
7918
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7919
 
  cat >conftest.$ac_ext <<_ACEOF
7920
 
/* confdefs.h.  */
7921
 
_ACEOF
7922
 
cat confdefs.h >>conftest.$ac_ext
7923
 
cat >>conftest.$ac_ext <<_ACEOF
7924
 
/* end confdefs.h.  */
7925
 
$ac_includes_default
7926
 
   typedef unsigned long ac__type_sizeof_;
7927
 
int
7928
 
main ()
7929
 
{
7930
 
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7931
 
test_array [0] = 0
7932
 
 
7933
 
  ;
7934
 
  return 0;
7935
 
}
7936
 
_ACEOF
7937
 
rm -f conftest.$ac_objext
7938
 
if { (ac_try="$ac_compile"
7939
 
case "(($ac_try" in
7940
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941
 
  *) ac_try_echo=$ac_try;;
7942
 
esac
7943
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944
 
  (eval "$ac_compile") 2>conftest.er1
7945
 
  ac_status=$?
7946
 
  grep -v '^ *+' conftest.er1 >conftest.err
7947
 
  rm -f conftest.er1
7948
 
  cat conftest.err >&5
7949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950
 
  (exit $ac_status); } && {
7951
 
         test -z "$ac_c_werror_flag" ||
7952
 
         test ! -s conftest.err
7953
 
       } && test -s conftest.$ac_objext; then
7954
 
  ac_hi=$ac_mid
7955
 
else
7956
 
  echo "$as_me: failed program was:" >&5
7957
 
sed 's/^/| /' conftest.$ac_ext >&5
7958
 
 
7959
 
        ac_lo=`expr '(' $ac_mid ')' + 1`
7960
 
fi
7961
 
 
7962
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963
 
done
7964
 
case $ac_lo in
7965
 
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7966
 
'') if test "$ac_cv_type_unsigned_long" = yes; then
7967
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7968
 
See \`config.log' for more details." >&5
7969
 
echo "$as_me: error: cannot compute sizeof (unsigned long)
7970
 
See \`config.log' for more details." >&2;}
7971
 
   { (exit 77); exit 77; }; }
7972
 
   else
7973
 
     ac_cv_sizeof_unsigned_long=0
7974
 
   fi ;;
7975
 
esac
7976
 
else
7977
 
  cat >conftest.$ac_ext <<_ACEOF
7978
 
/* confdefs.h.  */
7979
 
_ACEOF
7980
 
cat confdefs.h >>conftest.$ac_ext
7981
 
cat >>conftest.$ac_ext <<_ACEOF
7982
 
/* end confdefs.h.  */
7983
 
$ac_includes_default
7984
 
   typedef unsigned long ac__type_sizeof_;
7985
 
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7986
 
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7987
 
#include <stdio.h>
7988
 
#include <stdlib.h>
7989
 
int
7990
 
main ()
7991
 
{
7992
 
 
7993
 
  FILE *f = fopen ("conftest.val", "w");
7994
 
  if (! f)
7995
 
    return 1;
7996
 
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7997
 
    {
7998
 
      long int i = longval ();
7999
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8000
 
        return 1;
8001
 
      fprintf (f, "%ld\n", i);
8002
 
    }
8003
 
  else
8004
 
    {
8005
 
      unsigned long int i = ulongval ();
8006
 
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8007
 
        return 1;
8008
 
      fprintf (f, "%lu\n", i);
8009
 
    }
8010
 
  return ferror (f) || fclose (f) != 0;
8011
 
 
8012
 
  ;
8013
 
  return 0;
8014
 
}
8015
 
_ACEOF
8016
 
rm -f conftest$ac_exeext
8017
 
if { (ac_try="$ac_link"
8018
 
case "(($ac_try" in
8019
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020
 
  *) ac_try_echo=$ac_try;;
8021
 
esac
8022
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023
 
  (eval "$ac_link") 2>&5
8024
 
  ac_status=$?
8025
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8027
 
  { (case "(($ac_try" in
8028
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029
 
  *) ac_try_echo=$ac_try;;
8030
 
esac
8031
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032
 
  (eval "$ac_try") 2>&5
8033
 
  ac_status=$?
8034
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035
 
  (exit $ac_status); }; }; then
8036
 
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
8037
 
else
8038
 
  echo "$as_me: program exited with status $ac_status" >&5
8039
 
echo "$as_me: failed program was:" >&5
8040
 
sed 's/^/| /' conftest.$ac_ext >&5
8041
 
 
8042
 
( exit $ac_status )
8043
 
if test "$ac_cv_type_unsigned_long" = yes; then
8044
 
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
8045
 
See \`config.log' for more details." >&5
8046
 
echo "$as_me: error: cannot compute sizeof (unsigned long)
8047
 
See \`config.log' for more details." >&2;}
8048
 
   { (exit 77); exit 77; }; }
 
6102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
 
6103
$as_echo_n "checking size of unsigned long... " >&6; }
 
6104
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
 
6105
  $as_echo_n "(cached) " >&6
 
6106
else
 
6107
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
 
6108
 
 
6109
else
 
6110
  if test "$ac_cv_type_unsigned_long" = yes; then
 
6111
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6112
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6113
as_fn_error 77 "cannot compute sizeof (unsigned long)
 
6114
See \`config.log' for more details" "$LINENO" 5; }
8049
6115
   else
8050
6116
     ac_cv_sizeof_unsigned_long=0
8051
6117
   fi
8052
6118
fi
8053
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8054
 
fi
8055
 
rm -f conftest.val
8056
 
fi
8057
 
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
8058
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
 
6119
 
 
6120
fi
 
6121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
 
6122
$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8059
6123
 
8060
6124
 
8061
6125
 
8092
6156
    case $ac_val in #(
8093
6157
    *${as_nl}*)
8094
6158
      case $ac_var in #(
8095
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8096
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
6159
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
6160
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8097
6161
      esac
8098
6162
      case $ac_var in #(
8099
6163
      _ | IFS | as_nl) ;; #(
8100
 
      *) $as_unset $ac_var ;;
 
6164
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
6165
      *) { eval $ac_var=; unset $ac_var;} ;;
8101
6166
      esac ;;
8102
6167
    esac
8103
6168
  done
8105
6170
  (set) 2>&1 |
8106
6171
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8107
6172
    *${as_nl}ac_space=\ *)
8108
 
      # `set' does not quote correctly, so add quotes (double-quote
8109
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
6173
      # `set' does not quote correctly, so add quotes: double-quote
 
6174
      # substitution turns \\\\ into \\, and sed turns \\ into \.
8110
6175
      sed -n \
8111
6176
        "s/'/'\\\\''/g;
8112
6177
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8129
6194
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8130
6195
  if test -w "$cache_file"; then
8131
6196
    test "x$cache_file" != "x/dev/null" &&
8132
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8133
 
echo "$as_me: updating cache $cache_file" >&6;}
 
6197
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
6198
$as_echo "$as_me: updating cache $cache_file" >&6;}
8134
6199
    cat confcache >$cache_file
8135
6200
  else
8136
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8137
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
6201
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
6202
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8138
6203
  fi
8139
6204
fi
8140
6205
rm -f confcache
8141
6206
 
8142
 
 
8143
 
 
8144
 
 
8145
 
 
8146
6207
for ac_func in ctime memset vsnprintf strdup
8147
 
do
8148
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8149
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8150
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8151
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8152
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8153
 
else
8154
 
  cat >conftest.$ac_ext <<_ACEOF
8155
 
/* confdefs.h.  */
8156
 
_ACEOF
8157
 
cat confdefs.h >>conftest.$ac_ext
8158
 
cat >>conftest.$ac_ext <<_ACEOF
8159
 
/* end confdefs.h.  */
8160
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8161
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8162
 
#define $ac_func innocuous_$ac_func
8163
 
 
8164
 
/* System header to define __stub macros and hopefully few prototypes,
8165
 
    which can conflict with char $ac_func (); below.
8166
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8167
 
    <limits.h> exists even on freestanding compilers.  */
8168
 
 
8169
 
#ifdef __STDC__
8170
 
# include <limits.h>
8171
 
#else
8172
 
# include <assert.h>
8173
 
#endif
8174
 
 
8175
 
#undef $ac_func
8176
 
 
8177
 
/* Override any GCC internal prototype to avoid an error.
8178
 
   Use char because int might match the return type of a GCC
8179
 
   builtin and then its argument prototype would still apply.  */
8180
 
#ifdef __cplusplus
8181
 
extern "C"
8182
 
#endif
8183
 
char $ac_func ();
8184
 
/* The GNU C library defines this for functions which it implements
8185
 
    to always fail with ENOSYS.  Some functions are actually named
8186
 
    something starting with __ and the normal name is an alias.  */
8187
 
#if defined __stub_$ac_func || defined __stub___$ac_func
8188
 
choke me
8189
 
#endif
8190
 
 
8191
 
int
8192
 
main ()
8193
 
{
8194
 
return $ac_func ();
8195
 
  ;
8196
 
  return 0;
8197
 
}
8198
 
_ACEOF
8199
 
rm -f conftest.$ac_objext conftest$ac_exeext
8200
 
if { (ac_try="$ac_link"
8201
 
case "(($ac_try" in
8202
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203
 
  *) ac_try_echo=$ac_try;;
8204
 
esac
8205
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206
 
  (eval "$ac_link") 2>conftest.er1
8207
 
  ac_status=$?
8208
 
  grep -v '^ *+' conftest.er1 >conftest.err
8209
 
  rm -f conftest.er1
8210
 
  cat conftest.err >&5
8211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212
 
  (exit $ac_status); } && {
8213
 
         test -z "$ac_c_werror_flag" ||
8214
 
         test ! -s conftest.err
8215
 
       } && test -s conftest$ac_exeext &&
8216
 
       $as_test_x conftest$ac_exeext; then
8217
 
  eval "$as_ac_var=yes"
8218
 
else
8219
 
  echo "$as_me: failed program was:" >&5
8220
 
sed 's/^/| /' conftest.$ac_ext >&5
8221
 
 
8222
 
        eval "$as_ac_var=no"
8223
 
fi
8224
 
 
8225
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8226
 
      conftest$ac_exeext conftest.$ac_ext
8227
 
fi
8228
 
ac_res=`eval echo '${'$as_ac_var'}'`
8229
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8230
 
echo "${ECHO_T}$ac_res" >&6; }
8231
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6208
do :
 
6209
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6210
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
6211
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8232
6212
  cat >>confdefs.h <<_ACEOF
8233
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6213
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8234
6214
_ACEOF
8235
6215
 
8236
6216
else
8237
 
  { { echo "$as_me:$LINENO: error: Required library function not found" >&5
8238
 
echo "$as_me: error: Required library function not found" >&2;}
8239
 
   { (exit 1); exit 1; }; }
 
6217
  as_fn_error $? "Required library function not found" "$LINENO" 5
8240
6218
fi
8241
6219
done
8242
6220
 
8243
 
 
8244
 
 
8245
 
 
8246
 
 
8247
 
 
8248
 
 
8249
 
 
8250
 
 
8251
 
 
8252
 
 
8253
 
 
8254
 
 
8255
 
 
8256
 
 
8257
 
 
8258
 
 
8259
 
 
8260
 
 
8261
 
 
8262
 
 
8263
 
 
8264
 
 
8265
 
 
8266
 
 
8267
 
 
8268
 
 
8269
 
 
8270
 
 
8271
 
 
8272
 
 
8273
 
 
8274
 
 
8275
6221
for ac_func in daemon chroot getpwnam setuid nice system getpid dup dup2               getpass strerror syslog openlog mlockall getgrnam setgid                setgroups stat flock readv writev time          setsid chdir putenv getpeername unlink          chsize ftruncate execve getpeereid umask
8276
 
do
8277
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8278
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8279
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8280
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8282
 
else
8283
 
  cat >conftest.$ac_ext <<_ACEOF
8284
 
/* confdefs.h.  */
8285
 
_ACEOF
8286
 
cat confdefs.h >>conftest.$ac_ext
8287
 
cat >>conftest.$ac_ext <<_ACEOF
8288
 
/* end confdefs.h.  */
8289
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8290
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8291
 
#define $ac_func innocuous_$ac_func
8292
 
 
8293
 
/* System header to define __stub macros and hopefully few prototypes,
8294
 
    which can conflict with char $ac_func (); below.
8295
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8296
 
    <limits.h> exists even on freestanding compilers.  */
8297
 
 
8298
 
#ifdef __STDC__
8299
 
# include <limits.h>
8300
 
#else
8301
 
# include <assert.h>
8302
 
#endif
8303
 
 
8304
 
#undef $ac_func
8305
 
 
8306
 
/* Override any GCC internal prototype to avoid an error.
8307
 
   Use char because int might match the return type of a GCC
8308
 
   builtin and then its argument prototype would still apply.  */
8309
 
#ifdef __cplusplus
8310
 
extern "C"
8311
 
#endif
8312
 
char $ac_func ();
8313
 
/* The GNU C library defines this for functions which it implements
8314
 
    to always fail with ENOSYS.  Some functions are actually named
8315
 
    something starting with __ and the normal name is an alias.  */
8316
 
#if defined __stub_$ac_func || defined __stub___$ac_func
8317
 
choke me
8318
 
#endif
8319
 
 
8320
 
int
8321
 
main ()
8322
 
{
8323
 
return $ac_func ();
8324
 
  ;
8325
 
  return 0;
8326
 
}
8327
 
_ACEOF
8328
 
rm -f conftest.$ac_objext conftest$ac_exeext
8329
 
if { (ac_try="$ac_link"
8330
 
case "(($ac_try" in
8331
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332
 
  *) ac_try_echo=$ac_try;;
8333
 
esac
8334
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335
 
  (eval "$ac_link") 2>conftest.er1
8336
 
  ac_status=$?
8337
 
  grep -v '^ *+' conftest.er1 >conftest.err
8338
 
  rm -f conftest.er1
8339
 
  cat conftest.err >&5
8340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341
 
  (exit $ac_status); } && {
8342
 
         test -z "$ac_c_werror_flag" ||
8343
 
         test ! -s conftest.err
8344
 
       } && test -s conftest$ac_exeext &&
8345
 
       $as_test_x conftest$ac_exeext; then
8346
 
  eval "$as_ac_var=yes"
8347
 
else
8348
 
  echo "$as_me: failed program was:" >&5
8349
 
sed 's/^/| /' conftest.$ac_ext >&5
8350
 
 
8351
 
        eval "$as_ac_var=no"
8352
 
fi
8353
 
 
8354
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8355
 
      conftest$ac_exeext conftest.$ac_ext
8356
 
fi
8357
 
ac_res=`eval echo '${'$as_ac_var'}'`
8358
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8359
 
echo "${ECHO_T}$ac_res" >&6; }
8360
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6222
do :
 
6223
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6224
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
6225
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8361
6226
  cat >>confdefs.h <<_ACEOF
8362
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6227
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8363
6228
_ACEOF
8364
6229
 
8365
6230
fi
8373
6238
if test "${WIN32}" = "yes"; then
8374
6239
 
8375
6240
 
8376
 
cat >>confdefs.h <<\_ACEOF
8377
 
#define HAVE_GETTIMEOFDAY 1
8378
 
_ACEOF
8379
 
 
8380
 
 
8381
 
 
8382
 
cat >>confdefs.h <<\_ACEOF
8383
 
#define HAVE_SOCKET 1
8384
 
_ACEOF
8385
 
 
8386
 
 
8387
 
cat >>confdefs.h <<\_ACEOF
8388
 
#define HAVE_RECV 1
8389
 
_ACEOF
8390
 
 
8391
 
 
8392
 
cat >>confdefs.h <<\_ACEOF
8393
 
#define HAVE_RECVFROM 1
8394
 
_ACEOF
8395
 
 
8396
 
 
8397
 
cat >>confdefs.h <<\_ACEOF
8398
 
#define HAVE_SEND 1
8399
 
_ACEOF
8400
 
 
8401
 
 
8402
 
cat >>confdefs.h <<\_ACEOF
8403
 
#define HAVE_SENDTO 1
8404
 
_ACEOF
8405
 
 
8406
 
 
8407
 
cat >>confdefs.h <<\_ACEOF
8408
 
#define HAVE_LISTEN 1
8409
 
_ACEOF
8410
 
 
8411
 
 
8412
 
cat >>confdefs.h <<\_ACEOF
8413
 
#define HAVE_ACCEPT 1
8414
 
_ACEOF
8415
 
 
8416
 
 
8417
 
cat >>confdefs.h <<\_ACEOF
8418
 
#define HAVE_CONNECT 1
8419
 
_ACEOF
8420
 
 
8421
 
 
8422
 
cat >>confdefs.h <<\_ACEOF
8423
 
#define HAVE_BIND 1
8424
 
_ACEOF
8425
 
 
8426
 
 
8427
 
cat >>confdefs.h <<\_ACEOF
8428
 
#define HAVE_SELECT 1
8429
 
_ACEOF
8430
 
 
8431
 
 
8432
 
cat >>confdefs.h <<\_ACEOF
8433
 
#define HAVE_GETHOSTBYNAME 1
8434
 
_ACEOF
8435
 
 
8436
 
 
8437
 
cat >>confdefs.h <<\_ACEOF
8438
 
#define HAVE_INET_NTOA 1
8439
 
_ACEOF
8440
 
 
8441
 
 
8442
 
cat >>confdefs.h <<\_ACEOF
8443
 
#define HAVE_SETSOCKOPT 1
8444
 
_ACEOF
8445
 
 
8446
 
 
8447
 
cat >>confdefs.h <<\_ACEOF
8448
 
#define HAVE_GETSOCKOPT 1
8449
 
_ACEOF
8450
 
 
8451
 
 
8452
 
cat >>confdefs.h <<\_ACEOF
8453
 
#define HAVE_GETSOCKNAME 1
8454
 
_ACEOF
8455
 
 
8456
 
 
8457
 
cat >>confdefs.h <<\_ACEOF
8458
 
#define HAVE_POLL 1
8459
 
_ACEOF
8460
 
 
8461
 
 
8462
 
else
8463
 
 
8464
 
                { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8465
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8466
 
if test "${ac_cv_type_signal+set}" = set; then
8467
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8468
 
else
8469
 
  cat >conftest.$ac_ext <<_ACEOF
8470
 
/* confdefs.h.  */
8471
 
_ACEOF
8472
 
cat confdefs.h >>conftest.$ac_ext
8473
 
cat >>conftest.$ac_ext <<_ACEOF
 
6241
$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
 
6242
 
 
6243
 
 
6244
 
 
6245
$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
 
6246
 
 
6247
 
 
6248
$as_echo "#define HAVE_RECV 1" >>confdefs.h
 
6249
 
 
6250
 
 
6251
$as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
 
6252
 
 
6253
 
 
6254
$as_echo "#define HAVE_SEND 1" >>confdefs.h
 
6255
 
 
6256
 
 
6257
$as_echo "#define HAVE_SENDTO 1" >>confdefs.h
 
6258
 
 
6259
 
 
6260
$as_echo "#define HAVE_LISTEN 1" >>confdefs.h
 
6261
 
 
6262
 
 
6263
$as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
 
6264
 
 
6265
 
 
6266
$as_echo "#define HAVE_CONNECT 1" >>confdefs.h
 
6267
 
 
6268
 
 
6269
$as_echo "#define HAVE_BIND 1" >>confdefs.h
 
6270
 
 
6271
 
 
6272
$as_echo "#define HAVE_SELECT 1" >>confdefs.h
 
6273
 
 
6274
 
 
6275
$as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
 
6276
 
 
6277
 
 
6278
$as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
 
6279
 
 
6280
 
 
6281
$as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
 
6282
 
 
6283
 
 
6284
$as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
 
6285
 
 
6286
 
 
6287
$as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
 
6288
 
 
6289
 
 
6290
$as_echo "#define HAVE_POLL 1" >>confdefs.h
 
6291
 
 
6292
 
 
6293
else
 
6294
 
 
6295
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
 
6296
$as_echo_n "checking return type of signal handlers... " >&6; }
 
6297
if test "${ac_cv_type_signal+set}" = set; then :
 
6298
  $as_echo_n "(cached) " >&6
 
6299
else
 
6300
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474
6301
/* end confdefs.h.  */
8475
6302
#include <sys/types.h>
8476
6303
#include <signal.h>
8483
6310
  return 0;
8484
6311
}
8485
6312
_ACEOF
8486
 
rm -f conftest.$ac_objext
8487
 
if { (ac_try="$ac_compile"
8488
 
case "(($ac_try" in
8489
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490
 
  *) ac_try_echo=$ac_try;;
8491
 
esac
8492
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493
 
  (eval "$ac_compile") 2>conftest.er1
8494
 
  ac_status=$?
8495
 
  grep -v '^ *+' conftest.er1 >conftest.err
8496
 
  rm -f conftest.er1
8497
 
  cat conftest.err >&5
8498
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499
 
  (exit $ac_status); } && {
8500
 
         test -z "$ac_c_werror_flag" ||
8501
 
         test ! -s conftest.err
8502
 
       } && test -s conftest.$ac_objext; then
 
6313
if ac_fn_c_try_compile "$LINENO"; then :
8503
6314
  ac_cv_type_signal=int
8504
6315
else
8505
 
  echo "$as_me: failed program was:" >&5
8506
 
sed 's/^/| /' conftest.$ac_ext >&5
8507
 
 
8508
 
        ac_cv_type_signal=void
 
6316
  ac_cv_type_signal=void
8509
6317
fi
8510
 
 
8511
6318
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512
6319
fi
8513
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8514
 
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
 
6320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
 
6321
$as_echo "$ac_cv_type_signal" >&6; }
8515
6322
 
8516
6323
cat >>confdefs.h <<_ACEOF
8517
6324
#define RETSIGTYPE $ac_cv_type_signal
8519
6326
 
8520
6327
 
8521
6328
 
8522
 
                { echo "$as_me:$LINENO: checking for library containing socket" >&5
8523
 
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8524
 
if test "${ac_cv_search_socket+set}" = set; then
8525
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6329
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
 
6330
$as_echo_n "checking for library containing socket... " >&6; }
 
6331
if test "${ac_cv_search_socket+set}" = set; then :
 
6332
  $as_echo_n "(cached) " >&6
8526
6333
else
8527
6334
  ac_func_search_save_LIBS=$LIBS
8528
 
cat >conftest.$ac_ext <<_ACEOF
8529
 
/* confdefs.h.  */
8530
 
_ACEOF
8531
 
cat confdefs.h >>conftest.$ac_ext
8532
 
cat >>conftest.$ac_ext <<_ACEOF
 
6335
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533
6336
/* end confdefs.h.  */
8534
6337
 
8535
6338
/* Override any GCC internal prototype to avoid an error.
8554
6357
    ac_res=-l$ac_lib
8555
6358
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8556
6359
  fi
8557
 
  rm -f conftest.$ac_objext conftest$ac_exeext
8558
 
if { (ac_try="$ac_link"
8559
 
case "(($ac_try" in
8560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561
 
  *) ac_try_echo=$ac_try;;
8562
 
esac
8563
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564
 
  (eval "$ac_link") 2>conftest.er1
8565
 
  ac_status=$?
8566
 
  grep -v '^ *+' conftest.er1 >conftest.err
8567
 
  rm -f conftest.er1
8568
 
  cat conftest.err >&5
8569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570
 
  (exit $ac_status); } && {
8571
 
         test -z "$ac_c_werror_flag" ||
8572
 
         test ! -s conftest.err
8573
 
       } && test -s conftest$ac_exeext &&
8574
 
       $as_test_x conftest$ac_exeext; then
 
6360
  if ac_fn_c_try_link "$LINENO"; then :
8575
6361
  ac_cv_search_socket=$ac_res
8576
 
else
8577
 
  echo "$as_me: failed program was:" >&5
8578
 
sed 's/^/| /' conftest.$ac_ext >&5
8579
 
 
8580
 
 
8581
6362
fi
8582
 
 
8583
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8584
 
      conftest$ac_exeext
8585
 
  if test "${ac_cv_search_socket+set}" = set; then
 
6363
rm -f core conftest.err conftest.$ac_objext \
 
6364
    conftest$ac_exeext
 
6365
  if test "${ac_cv_search_socket+set}" = set; then :
8586
6366
  break
8587
6367
fi
8588
6368
done
8589
 
if test "${ac_cv_search_socket+set}" = set; then
8590
 
  :
 
6369
if test "${ac_cv_search_socket+set}" = set; then :
 
6370
 
8591
6371
else
8592
6372
  ac_cv_search_socket=no
8593
6373
fi
8594
6374
rm conftest.$ac_ext
8595
6375
LIBS=$ac_func_search_save_LIBS
8596
6376
fi
8597
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8598
 
echo "${ECHO_T}$ac_cv_search_socket" >&6; }
 
6377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
 
6378
$as_echo "$ac_cv_search_socket" >&6; }
8599
6379
ac_res=$ac_cv_search_socket
8600
 
if test "$ac_res" != no; then
 
6380
if test "$ac_res" != no; then :
8601
6381
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8602
6382
 
8603
6383
fi
8604
6384
 
8605
6385
 
8606
 
                { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
8607
 
echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
8608
 
if test "${ac_cv_search_inet_ntoa+set}" = set; then
8609
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6386
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
 
6387
$as_echo_n "checking for library containing inet_ntoa... " >&6; }
 
6388
if test "${ac_cv_search_inet_ntoa+set}" = set; then :
 
6389
  $as_echo_n "(cached) " >&6
8610
6390
else
8611
6391
  ac_func_search_save_LIBS=$LIBS
8612
 
cat >conftest.$ac_ext <<_ACEOF
8613
 
/* confdefs.h.  */
8614
 
_ACEOF
8615
 
cat confdefs.h >>conftest.$ac_ext
8616
 
cat >>conftest.$ac_ext <<_ACEOF
 
6392
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617
6393
/* end confdefs.h.  */
8618
6394
 
8619
6395
/* Override any GCC internal prototype to avoid an error.
8638
6414
    ac_res=-l$ac_lib
8639
6415
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8640
6416
  fi
8641
 
  rm -f conftest.$ac_objext conftest$ac_exeext
8642
 
if { (ac_try="$ac_link"
8643
 
case "(($ac_try" in
8644
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645
 
  *) ac_try_echo=$ac_try;;
8646
 
esac
8647
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648
 
  (eval "$ac_link") 2>conftest.er1
8649
 
  ac_status=$?
8650
 
  grep -v '^ *+' conftest.er1 >conftest.err
8651
 
  rm -f conftest.er1
8652
 
  cat conftest.err >&5
8653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654
 
  (exit $ac_status); } && {
8655
 
         test -z "$ac_c_werror_flag" ||
8656
 
         test ! -s conftest.err
8657
 
       } && test -s conftest$ac_exeext &&
8658
 
       $as_test_x conftest$ac_exeext; then
 
6417
  if ac_fn_c_try_link "$LINENO"; then :
8659
6418
  ac_cv_search_inet_ntoa=$ac_res
8660
 
else
8661
 
  echo "$as_me: failed program was:" >&5
8662
 
sed 's/^/| /' conftest.$ac_ext >&5
8663
 
 
8664
 
 
8665
6419
fi
8666
 
 
8667
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8668
 
      conftest$ac_exeext
8669
 
  if test "${ac_cv_search_inet_ntoa+set}" = set; then
 
6420
rm -f core conftest.err conftest.$ac_objext \
 
6421
    conftest$ac_exeext
 
6422
  if test "${ac_cv_search_inet_ntoa+set}" = set; then :
8670
6423
  break
8671
6424
fi
8672
6425
done
8673
 
if test "${ac_cv_search_inet_ntoa+set}" = set; then
8674
 
  :
 
6426
if test "${ac_cv_search_inet_ntoa+set}" = set; then :
 
6427
 
8675
6428
else
8676
6429
  ac_cv_search_inet_ntoa=no
8677
6430
fi
8678
6431
rm conftest.$ac_ext
8679
6432
LIBS=$ac_func_search_save_LIBS
8680
6433
fi
8681
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
8682
 
echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
 
6434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
 
6435
$as_echo "$ac_cv_search_inet_ntoa" >&6; }
8683
6436
ac_res=$ac_cv_search_inet_ntoa
8684
 
if test "$ac_res" != no; then
 
6437
if test "$ac_res" != no; then :
8685
6438
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8686
6439
 
8687
6440
fi
8688
6441
 
8689
6442
 
8690
 
                { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8691
 
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8692
 
if test "${ac_cv_search_gethostbyname+set}" = set; then
8693
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6443
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
 
6444
$as_echo_n "checking for library containing gethostbyname... " >&6; }
 
6445
if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
6446
  $as_echo_n "(cached) " >&6
8694
6447
else
8695
6448
  ac_func_search_save_LIBS=$LIBS
8696
 
cat >conftest.$ac_ext <<_ACEOF
8697
 
/* confdefs.h.  */
8698
 
_ACEOF
8699
 
cat confdefs.h >>conftest.$ac_ext
8700
 
cat >>conftest.$ac_ext <<_ACEOF
 
6449
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701
6450
/* end confdefs.h.  */
8702
6451
 
8703
6452
/* Override any GCC internal prototype to avoid an error.
8722
6471
    ac_res=-l$ac_lib
8723
6472
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8724
6473
  fi
8725
 
  rm -f conftest.$ac_objext conftest$ac_exeext
8726
 
if { (ac_try="$ac_link"
8727
 
case "(($ac_try" in
8728
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729
 
  *) ac_try_echo=$ac_try;;
8730
 
esac
8731
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732
 
  (eval "$ac_link") 2>conftest.er1
8733
 
  ac_status=$?
8734
 
  grep -v '^ *+' conftest.er1 >conftest.err
8735
 
  rm -f conftest.er1
8736
 
  cat conftest.err >&5
8737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738
 
  (exit $ac_status); } && {
8739
 
         test -z "$ac_c_werror_flag" ||
8740
 
         test ! -s conftest.err
8741
 
       } && test -s conftest$ac_exeext &&
8742
 
       $as_test_x conftest$ac_exeext; then
 
6474
  if ac_fn_c_try_link "$LINENO"; then :
8743
6475
  ac_cv_search_gethostbyname=$ac_res
8744
 
else
8745
 
  echo "$as_me: failed program was:" >&5
8746
 
sed 's/^/| /' conftest.$ac_ext >&5
8747
 
 
8748
 
 
8749
6476
fi
8750
 
 
8751
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8752
 
      conftest$ac_exeext
8753
 
  if test "${ac_cv_search_gethostbyname+set}" = set; then
 
6477
rm -f core conftest.err conftest.$ac_objext \
 
6478
    conftest$ac_exeext
 
6479
  if test "${ac_cv_search_gethostbyname+set}" = set; then :
8754
6480
  break
8755
6481
fi
8756
6482
done
8757
 
if test "${ac_cv_search_gethostbyname+set}" = set; then
8758
 
  :
 
6483
if test "${ac_cv_search_gethostbyname+set}" = set; then :
 
6484
 
8759
6485
else
8760
6486
  ac_cv_search_gethostbyname=no
8761
6487
fi
8762
6488
rm conftest.$ac_ext
8763
6489
LIBS=$ac_func_search_save_LIBS
8764
6490
fi
8765
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8766
 
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
 
6491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
 
6492
$as_echo "$ac_cv_search_gethostbyname" >&6; }
8767
6493
ac_res=$ac_cv_search_gethostbyname
8768
 
if test "$ac_res" != no; then
 
6494
if test "$ac_res" != no; then :
8769
6495
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8770
6496
 
8771
6497
fi
8772
6498
 
8773
6499
 
8774
 
 
8775
 
for ac_header in vfork.h
8776
 
do
8777
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8779
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8780
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8781
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8782
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8783
 
fi
8784
 
ac_res=`eval echo '${'$as_ac_Header'}'`
8785
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8786
 
echo "${ECHO_T}$ac_res" >&6; }
8787
 
else
8788
 
  # Is the header compilable?
8789
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8790
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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
 
#include <$ac_header>
8799
 
_ACEOF
8800
 
rm -f conftest.$ac_objext
8801
 
if { (ac_try="$ac_compile"
8802
 
case "(($ac_try" in
8803
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804
 
  *) ac_try_echo=$ac_try;;
8805
 
esac
8806
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807
 
  (eval "$ac_compile") 2>conftest.er1
8808
 
  ac_status=$?
8809
 
  grep -v '^ *+' conftest.er1 >conftest.err
8810
 
  rm -f conftest.er1
8811
 
  cat conftest.err >&5
8812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813
 
  (exit $ac_status); } && {
8814
 
         test -z "$ac_c_werror_flag" ||
8815
 
         test ! -s conftest.err
8816
 
       } && test -s conftest.$ac_objext; then
8817
 
  ac_header_compiler=yes
8818
 
else
8819
 
  echo "$as_me: failed program was:" >&5
8820
 
sed 's/^/| /' conftest.$ac_ext >&5
8821
 
 
8822
 
        ac_header_compiler=no
8823
 
fi
8824
 
 
8825
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8827
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
8828
 
 
8829
 
# Is the header present?
8830
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8831
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8832
 
cat >conftest.$ac_ext <<_ACEOF
8833
 
/* confdefs.h.  */
8834
 
_ACEOF
8835
 
cat confdefs.h >>conftest.$ac_ext
8836
 
cat >>conftest.$ac_ext <<_ACEOF
8837
 
/* end confdefs.h.  */
8838
 
#include <$ac_header>
8839
 
_ACEOF
8840
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
8841
 
case "(($ac_try" in
8842
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843
 
  *) ac_try_echo=$ac_try;;
8844
 
esac
8845
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8847
 
  ac_status=$?
8848
 
  grep -v '^ *+' conftest.er1 >conftest.err
8849
 
  rm -f conftest.er1
8850
 
  cat conftest.err >&5
8851
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852
 
  (exit $ac_status); } >/dev/null && {
8853
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8854
 
         test ! -s conftest.err
8855
 
       }; then
8856
 
  ac_header_preproc=yes
8857
 
else
8858
 
  echo "$as_me: failed program was:" >&5
8859
 
sed 's/^/| /' conftest.$ac_ext >&5
8860
 
 
8861
 
  ac_header_preproc=no
8862
 
fi
8863
 
 
8864
 
rm -f conftest.err conftest.$ac_ext
8865
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
8867
 
 
8868
 
# So?  What about this header?
8869
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8870
 
  yes:no: )
8871
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8872
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8874
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8875
 
    ac_header_preproc=yes
8876
 
    ;;
8877
 
  no:yes:* )
8878
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8879
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8880
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8881
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8882
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8883
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8884
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8885
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8886
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8887
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8888
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8889
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8890
 
    ( cat <<\_ASBOX
8891
 
## -------------------------------------------------- ##
8892
 
## Report this to openvpn-users@lists.sourceforge.net ##
8893
 
## -------------------------------------------------- ##
8894
 
_ASBOX
8895
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
8896
 
    ;;
8897
 
esac
8898
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8899
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8900
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8901
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8902
 
else
8903
 
  eval "$as_ac_Header=\$ac_header_preproc"
8904
 
fi
8905
 
ac_res=`eval echo '${'$as_ac_Header'}'`
8906
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8907
 
echo "${ECHO_T}$ac_res" >&6; }
8908
 
 
8909
 
fi
8910
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6500
                for ac_header in vfork.h
 
6501
do :
 
6502
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 
6503
if test "x$ac_cv_header_vfork_h" = x""yes; then :
8911
6504
  cat >>confdefs.h <<_ACEOF
8912
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6505
#define HAVE_VFORK_H 1
8913
6506
_ACEOF
8914
6507
 
8915
6508
fi
8916
6509
 
8917
6510
done
8918
6511
 
8919
 
 
8920
 
 
8921
6512
for ac_func in fork vfork
8922
 
do
8923
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8924
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8925
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8926
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8927
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8928
 
else
8929
 
  cat >conftest.$ac_ext <<_ACEOF
8930
 
/* confdefs.h.  */
8931
 
_ACEOF
8932
 
cat confdefs.h >>conftest.$ac_ext
8933
 
cat >>conftest.$ac_ext <<_ACEOF
8934
 
/* end confdefs.h.  */
8935
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8936
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8937
 
#define $ac_func innocuous_$ac_func
8938
 
 
8939
 
/* System header to define __stub macros and hopefully few prototypes,
8940
 
    which can conflict with char $ac_func (); below.
8941
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942
 
    <limits.h> exists even on freestanding compilers.  */
8943
 
 
8944
 
#ifdef __STDC__
8945
 
# include <limits.h>
8946
 
#else
8947
 
# include <assert.h>
8948
 
#endif
8949
 
 
8950
 
#undef $ac_func
8951
 
 
8952
 
/* Override any GCC internal prototype to avoid an error.
8953
 
   Use char because int might match the return type of a GCC
8954
 
   builtin and then its argument prototype would still apply.  */
8955
 
#ifdef __cplusplus
8956
 
extern "C"
8957
 
#endif
8958
 
char $ac_func ();
8959
 
/* The GNU C library defines this for functions which it implements
8960
 
    to always fail with ENOSYS.  Some functions are actually named
8961
 
    something starting with __ and the normal name is an alias.  */
8962
 
#if defined __stub_$ac_func || defined __stub___$ac_func
8963
 
choke me
8964
 
#endif
8965
 
 
8966
 
int
8967
 
main ()
8968
 
{
8969
 
return $ac_func ();
8970
 
  ;
8971
 
  return 0;
8972
 
}
8973
 
_ACEOF
8974
 
rm -f conftest.$ac_objext conftest$ac_exeext
8975
 
if { (ac_try="$ac_link"
8976
 
case "(($ac_try" in
8977
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978
 
  *) ac_try_echo=$ac_try;;
8979
 
esac
8980
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981
 
  (eval "$ac_link") 2>conftest.er1
8982
 
  ac_status=$?
8983
 
  grep -v '^ *+' conftest.er1 >conftest.err
8984
 
  rm -f conftest.er1
8985
 
  cat conftest.err >&5
8986
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987
 
  (exit $ac_status); } && {
8988
 
         test -z "$ac_c_werror_flag" ||
8989
 
         test ! -s conftest.err
8990
 
       } && test -s conftest$ac_exeext &&
8991
 
       $as_test_x conftest$ac_exeext; then
8992
 
  eval "$as_ac_var=yes"
8993
 
else
8994
 
  echo "$as_me: failed program was:" >&5
8995
 
sed 's/^/| /' conftest.$ac_ext >&5
8996
 
 
8997
 
        eval "$as_ac_var=no"
8998
 
fi
8999
 
 
9000
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9001
 
      conftest$ac_exeext conftest.$ac_ext
9002
 
fi
9003
 
ac_res=`eval echo '${'$as_ac_var'}'`
9004
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9005
 
echo "${ECHO_T}$ac_res" >&6; }
9006
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6513
do :
 
6514
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6515
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
6516
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9007
6517
  cat >>confdefs.h <<_ACEOF
9008
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6518
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9009
6519
_ACEOF
9010
6520
 
9011
6521
fi
9012
6522
done
9013
6523
 
9014
6524
if test "x$ac_cv_func_fork" = xyes; then
9015
 
  { echo "$as_me:$LINENO: checking for working fork" >&5
9016
 
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
9017
 
if test "${ac_cv_func_fork_works+set}" = set; then
9018
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6525
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 
6526
$as_echo_n "checking for working fork... " >&6; }
 
6527
if test "${ac_cv_func_fork_works+set}" = set; then :
 
6528
  $as_echo_n "(cached) " >&6
9019
6529
else
9020
 
  if test "$cross_compiling" = yes; then
 
6530
  if test "$cross_compiling" = yes; then :
9021
6531
  ac_cv_func_fork_works=cross
9022
6532
else
9023
 
  cat >conftest.$ac_ext <<_ACEOF
9024
 
/* confdefs.h.  */
9025
 
_ACEOF
9026
 
cat confdefs.h >>conftest.$ac_ext
9027
 
cat >>conftest.$ac_ext <<_ACEOF
 
6533
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028
6534
/* end confdefs.h.  */
9029
6535
$ac_includes_default
9030
6536
int
9038
6544
  return 0;
9039
6545
}
9040
6546
_ACEOF
9041
 
rm -f conftest$ac_exeext
9042
 
if { (ac_try="$ac_link"
9043
 
case "(($ac_try" in
9044
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045
 
  *) ac_try_echo=$ac_try;;
9046
 
esac
9047
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048
 
  (eval "$ac_link") 2>&5
9049
 
  ac_status=$?
9050
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9052
 
  { (case "(($ac_try" in
9053
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054
 
  *) ac_try_echo=$ac_try;;
9055
 
esac
9056
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057
 
  (eval "$ac_try") 2>&5
9058
 
  ac_status=$?
9059
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060
 
  (exit $ac_status); }; }; then
 
6547
if ac_fn_c_try_run "$LINENO"; then :
9061
6548
  ac_cv_func_fork_works=yes
9062
6549
else
9063
 
  echo "$as_me: program exited with status $ac_status" >&5
9064
 
echo "$as_me: failed program was:" >&5
9065
 
sed 's/^/| /' conftest.$ac_ext >&5
9066
 
 
9067
 
( exit $ac_status )
9068
 
ac_cv_func_fork_works=no
9069
 
fi
9070
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9071
 
fi
9072
 
 
9073
 
 
9074
 
fi
9075
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9076
 
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
 
6550
  ac_cv_func_fork_works=no
 
6551
fi
 
6552
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6553
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6554
fi
 
6555
 
 
6556
fi
 
6557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 
6558
$as_echo "$ac_cv_func_fork_works" >&6; }
9077
6559
 
9078
6560
else
9079
6561
  ac_cv_func_fork_works=$ac_cv_func_fork
9088
6570
      ac_cv_func_fork_works=yes
9089
6571
      ;;
9090
6572
  esac
9091
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9092
 
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
6573
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
6574
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9093
6575
fi
9094
6576
ac_cv_func_vfork_works=$ac_cv_func_vfork
9095
6577
if test "x$ac_cv_func_vfork" = xyes; then
9096
 
  { echo "$as_me:$LINENO: checking for working vfork" >&5
9097
 
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
9098
 
if test "${ac_cv_func_vfork_works+set}" = set; then
9099
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6578
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 
6579
$as_echo_n "checking for working vfork... " >&6; }
 
6580
if test "${ac_cv_func_vfork_works+set}" = set; then :
 
6581
  $as_echo_n "(cached) " >&6
9100
6582
else
9101
 
  if test "$cross_compiling" = yes; then
 
6583
  if test "$cross_compiling" = yes; then :
9102
6584
  ac_cv_func_vfork_works=cross
9103
6585
else
9104
 
  cat >conftest.$ac_ext <<_ACEOF
9105
 
/* confdefs.h.  */
9106
 
_ACEOF
9107
 
cat confdefs.h >>conftest.$ac_ext
9108
 
cat >>conftest.$ac_ext <<_ACEOF
 
6586
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109
6587
/* end confdefs.h.  */
9110
6588
/* Thanks to Paul Eggert for this test.  */
9111
6589
$ac_includes_default
9197
6675
  }
9198
6676
}
9199
6677
_ACEOF
9200
 
rm -f conftest$ac_exeext
9201
 
if { (ac_try="$ac_link"
9202
 
case "(($ac_try" in
9203
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204
 
  *) ac_try_echo=$ac_try;;
9205
 
esac
9206
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207
 
  (eval "$ac_link") 2>&5
9208
 
  ac_status=$?
9209
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9211
 
  { (case "(($ac_try" in
9212
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213
 
  *) ac_try_echo=$ac_try;;
9214
 
esac
9215
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216
 
  (eval "$ac_try") 2>&5
9217
 
  ac_status=$?
9218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219
 
  (exit $ac_status); }; }; then
 
6678
if ac_fn_c_try_run "$LINENO"; then :
9220
6679
  ac_cv_func_vfork_works=yes
9221
6680
else
9222
 
  echo "$as_me: program exited with status $ac_status" >&5
9223
 
echo "$as_me: failed program was:" >&5
9224
 
sed 's/^/| /' conftest.$ac_ext >&5
9225
 
 
9226
 
( exit $ac_status )
9227
 
ac_cv_func_vfork_works=no
9228
 
fi
9229
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9230
 
fi
9231
 
 
9232
 
 
9233
 
fi
9234
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9235
 
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
 
6681
  ac_cv_func_vfork_works=no
 
6682
fi
 
6683
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6684
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6685
fi
 
6686
 
 
6687
fi
 
6688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 
6689
$as_echo "$ac_cv_func_vfork_works" >&6; }
9236
6690
 
9237
6691
fi;
9238
6692
if test "x$ac_cv_func_fork_works" = xcross; then
9239
6693
  ac_cv_func_vfork_works=$ac_cv_func_vfork
9240
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9241
 
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
6694
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
6695
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9242
6696
fi
9243
6697
 
9244
6698
if test "x$ac_cv_func_vfork_works" = xyes; then
9245
6699
 
9246
 
cat >>confdefs.h <<\_ACEOF
9247
 
#define HAVE_WORKING_VFORK 1
9248
 
_ACEOF
 
6700
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9249
6701
 
9250
6702
else
9251
6703
 
9252
 
cat >>confdefs.h <<\_ACEOF
9253
 
#define vfork fork
9254
 
_ACEOF
 
6704
$as_echo "#define vfork fork" >>confdefs.h
9255
6705
 
9256
6706
fi
9257
6707
if test "x$ac_cv_func_fork_works" = xyes; then
9258
6708
 
9259
 
cat >>confdefs.h <<\_ACEOF
9260
 
#define HAVE_WORKING_FORK 1
9261
 
_ACEOF
9262
 
 
9263
 
fi
9264
 
 
9265
 
 
9266
 
 
9267
 
for ac_func in gettimeofday
9268
 
do
9269
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9270
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9271
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9272
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9274
 
else
9275
 
  cat >conftest.$ac_ext <<_ACEOF
9276
 
/* confdefs.h.  */
9277
 
_ACEOF
9278
 
cat confdefs.h >>conftest.$ac_ext
9279
 
cat >>conftest.$ac_ext <<_ACEOF
9280
 
/* end confdefs.h.  */
9281
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9282
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9283
 
#define $ac_func innocuous_$ac_func
9284
 
 
9285
 
/* System header to define __stub macros and hopefully few prototypes,
9286
 
    which can conflict with char $ac_func (); below.
9287
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9288
 
    <limits.h> exists even on freestanding compilers.  */
9289
 
 
9290
 
#ifdef __STDC__
9291
 
# include <limits.h>
9292
 
#else
9293
 
# include <assert.h>
9294
 
#endif
9295
 
 
9296
 
#undef $ac_func
9297
 
 
9298
 
/* Override any GCC internal prototype to avoid an error.
9299
 
   Use char because int might match the return type of a GCC
9300
 
   builtin and then its argument prototype would still apply.  */
9301
 
#ifdef __cplusplus
9302
 
extern "C"
9303
 
#endif
9304
 
char $ac_func ();
9305
 
/* The GNU C library defines this for functions which it implements
9306
 
    to always fail with ENOSYS.  Some functions are actually named
9307
 
    something starting with __ and the normal name is an alias.  */
9308
 
#if defined __stub_$ac_func || defined __stub___$ac_func
9309
 
choke me
9310
 
#endif
9311
 
 
9312
 
int
9313
 
main ()
9314
 
{
9315
 
return $ac_func ();
9316
 
  ;
9317
 
  return 0;
9318
 
}
9319
 
_ACEOF
9320
 
rm -f conftest.$ac_objext conftest$ac_exeext
9321
 
if { (ac_try="$ac_link"
9322
 
case "(($ac_try" in
9323
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324
 
  *) ac_try_echo=$ac_try;;
9325
 
esac
9326
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327
 
  (eval "$ac_link") 2>conftest.er1
9328
 
  ac_status=$?
9329
 
  grep -v '^ *+' conftest.er1 >conftest.err
9330
 
  rm -f conftest.er1
9331
 
  cat conftest.err >&5
9332
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333
 
  (exit $ac_status); } && {
9334
 
         test -z "$ac_c_werror_flag" ||
9335
 
         test ! -s conftest.err
9336
 
       } && test -s conftest$ac_exeext &&
9337
 
       $as_test_x conftest$ac_exeext; then
9338
 
  eval "$as_ac_var=yes"
9339
 
else
9340
 
  echo "$as_me: failed program was:" >&5
9341
 
sed 's/^/| /' conftest.$ac_ext >&5
9342
 
 
9343
 
        eval "$as_ac_var=no"
9344
 
fi
9345
 
 
9346
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9347
 
      conftest$ac_exeext conftest.$ac_ext
9348
 
fi
9349
 
ac_res=`eval echo '${'$as_ac_var'}'`
9350
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9351
 
echo "${ECHO_T}$ac_res" >&6; }
9352
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9353
 
  cat >>confdefs.h <<_ACEOF
9354
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355
 
_ACEOF
9356
 
 
9357
 
fi
9358
 
done
9359
 
 
9360
 
 
9361
 
 
9362
 
 
9363
 
 
9364
 
 
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
 
9373
 
for ac_func in socket recv recvfrom send sendto listen           accept connect bind select gethostbyname inet_ntoa
9374
 
do
9375
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9376
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9377
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9378
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9379
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9380
 
else
9381
 
  cat >conftest.$ac_ext <<_ACEOF
9382
 
/* confdefs.h.  */
9383
 
_ACEOF
9384
 
cat confdefs.h >>conftest.$ac_ext
9385
 
cat >>conftest.$ac_ext <<_ACEOF
9386
 
/* end confdefs.h.  */
9387
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9388
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9389
 
#define $ac_func innocuous_$ac_func
9390
 
 
9391
 
/* System header to define __stub macros and hopefully few prototypes,
9392
 
    which can conflict with char $ac_func (); below.
9393
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9394
 
    <limits.h> exists even on freestanding compilers.  */
9395
 
 
9396
 
#ifdef __STDC__
9397
 
# include <limits.h>
9398
 
#else
9399
 
# include <assert.h>
9400
 
#endif
9401
 
 
9402
 
#undef $ac_func
9403
 
 
9404
 
/* Override any GCC internal prototype to avoid an error.
9405
 
   Use char because int might match the return type of a GCC
9406
 
   builtin and then its argument prototype would still apply.  */
9407
 
#ifdef __cplusplus
9408
 
extern "C"
9409
 
#endif
9410
 
char $ac_func ();
9411
 
/* The GNU C library defines this for functions which it implements
9412
 
    to always fail with ENOSYS.  Some functions are actually named
9413
 
    something starting with __ and the normal name is an alias.  */
9414
 
#if defined __stub_$ac_func || defined __stub___$ac_func
9415
 
choke me
9416
 
#endif
9417
 
 
9418
 
int
9419
 
main ()
9420
 
{
9421
 
return $ac_func ();
9422
 
  ;
9423
 
  return 0;
9424
 
}
9425
 
_ACEOF
9426
 
rm -f conftest.$ac_objext conftest$ac_exeext
9427
 
if { (ac_try="$ac_link"
9428
 
case "(($ac_try" in
9429
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430
 
  *) ac_try_echo=$ac_try;;
9431
 
esac
9432
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433
 
  (eval "$ac_link") 2>conftest.er1
9434
 
  ac_status=$?
9435
 
  grep -v '^ *+' conftest.er1 >conftest.err
9436
 
  rm -f conftest.er1
9437
 
  cat conftest.err >&5
9438
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439
 
  (exit $ac_status); } && {
9440
 
         test -z "$ac_c_werror_flag" ||
9441
 
         test ! -s conftest.err
9442
 
       } && test -s conftest$ac_exeext &&
9443
 
       $as_test_x conftest$ac_exeext; then
9444
 
  eval "$as_ac_var=yes"
9445
 
else
9446
 
  echo "$as_me: failed program was:" >&5
9447
 
sed 's/^/| /' conftest.$ac_ext >&5
9448
 
 
9449
 
        eval "$as_ac_var=no"
9450
 
fi
9451
 
 
9452
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453
 
      conftest$ac_exeext conftest.$ac_ext
9454
 
fi
9455
 
ac_res=`eval echo '${'$as_ac_var'}'`
9456
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9457
 
echo "${ECHO_T}$ac_res" >&6; }
9458
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9459
 
  cat >>confdefs.h <<_ACEOF
9460
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9461
 
_ACEOF
9462
 
 
9463
 
else
9464
 
  { { echo "$as_me:$LINENO: error: Required library function not found" >&5
9465
 
echo "$as_me: error: Required library function not found" >&2;}
9466
 
   { (exit 1); exit 1; }; }
9467
 
fi
9468
 
done
9469
 
 
9470
 
 
9471
 
 
9472
 
 
9473
 
 
9474
 
 
9475
 
 
9476
 
for ac_func in setsockopt getsockopt getsockname poll sendmsg recvmsg
9477
 
do
9478
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9479
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9480
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9481
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9482
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9483
 
else
9484
 
  cat >conftest.$ac_ext <<_ACEOF
9485
 
/* confdefs.h.  */
9486
 
_ACEOF
9487
 
cat confdefs.h >>conftest.$ac_ext
9488
 
cat >>conftest.$ac_ext <<_ACEOF
9489
 
/* end confdefs.h.  */
9490
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9491
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9492
 
#define $ac_func innocuous_$ac_func
9493
 
 
9494
 
/* System header to define __stub macros and hopefully few prototypes,
9495
 
    which can conflict with char $ac_func (); below.
9496
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9497
 
    <limits.h> exists even on freestanding compilers.  */
9498
 
 
9499
 
#ifdef __STDC__
9500
 
# include <limits.h>
9501
 
#else
9502
 
# include <assert.h>
9503
 
#endif
9504
 
 
9505
 
#undef $ac_func
9506
 
 
9507
 
/* Override any GCC internal prototype to avoid an error.
9508
 
   Use char because int might match the return type of a GCC
9509
 
   builtin and then its argument prototype would still apply.  */
9510
 
#ifdef __cplusplus
9511
 
extern "C"
9512
 
#endif
9513
 
char $ac_func ();
9514
 
/* The GNU C library defines this for functions which it implements
9515
 
    to always fail with ENOSYS.  Some functions are actually named
9516
 
    something starting with __ and the normal name is an alias.  */
9517
 
#if defined __stub_$ac_func || defined __stub___$ac_func
9518
 
choke me
9519
 
#endif
9520
 
 
9521
 
int
9522
 
main ()
9523
 
{
9524
 
return $ac_func ();
9525
 
  ;
9526
 
  return 0;
9527
 
}
9528
 
_ACEOF
9529
 
rm -f conftest.$ac_objext conftest$ac_exeext
9530
 
if { (ac_try="$ac_link"
9531
 
case "(($ac_try" in
9532
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533
 
  *) ac_try_echo=$ac_try;;
9534
 
esac
9535
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536
 
  (eval "$ac_link") 2>conftest.er1
9537
 
  ac_status=$?
9538
 
  grep -v '^ *+' conftest.er1 >conftest.err
9539
 
  rm -f conftest.er1
9540
 
  cat conftest.err >&5
9541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542
 
  (exit $ac_status); } && {
9543
 
         test -z "$ac_c_werror_flag" ||
9544
 
         test ! -s conftest.err
9545
 
       } && test -s conftest$ac_exeext &&
9546
 
       $as_test_x conftest$ac_exeext; then
9547
 
  eval "$as_ac_var=yes"
9548
 
else
9549
 
  echo "$as_me: failed program was:" >&5
9550
 
sed 's/^/| /' conftest.$ac_ext >&5
9551
 
 
9552
 
        eval "$as_ac_var=no"
9553
 
fi
9554
 
 
9555
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9556
 
      conftest$ac_exeext conftest.$ac_ext
9557
 
fi
9558
 
ac_res=`eval echo '${'$as_ac_var'}'`
9559
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
9560
 
echo "${ECHO_T}$ac_res" >&6; }
9561
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
9562
 
  cat >>confdefs.h <<_ACEOF
9563
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9564
 
_ACEOF
9565
 
 
9566
 
fi
9567
 
done
9568
 
 
9569
 
 
9570
 
fi
9571
 
 
9572
 
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
9573
 
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
9574
 
if test "${ac_cv_func_memcmp_working+set}" = set; then
9575
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9576
 
else
9577
 
  if test "$cross_compiling" = yes; then
 
6709
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 
6710
 
 
6711
fi
 
6712
 
 
6713
 
 
6714
        for ac_func in gettimeofday
 
6715
do :
 
6716
  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
 
6717
if test "x$ac_cv_func_gettimeofday" = x""yes; then :
 
6718
  cat >>confdefs.h <<_ACEOF
 
6719
#define HAVE_GETTIMEOFDAY 1
 
6720
_ACEOF
 
6721
 
 
6722
fi
 
6723
done
 
6724
 
 
6725
 
 
6726
        for ac_func in socket recv recvfrom send sendto listen           accept connect bind select gethostbyname inet_ntoa
 
6727
do :
 
6728
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6729
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
6730
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
6731
  cat >>confdefs.h <<_ACEOF
 
6732
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6733
_ACEOF
 
6734
 
 
6735
else
 
6736
  as_fn_error $? "Required library function not found" "$LINENO" 5
 
6737
fi
 
6738
done
 
6739
 
 
6740
        for ac_func in setsockopt getsockopt getsockname poll sendmsg recvmsg
 
6741
do :
 
6742
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6743
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
6744
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
6745
  cat >>confdefs.h <<_ACEOF
 
6746
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6747
_ACEOF
 
6748
 
 
6749
fi
 
6750
done
 
6751
 
 
6752
 
 
6753
fi
 
6754
 
 
6755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
 
6756
$as_echo_n "checking for working memcmp... " >&6; }
 
6757
if test "${ac_cv_func_memcmp_working+set}" = set; then :
 
6758
  $as_echo_n "(cached) " >&6
 
6759
else
 
6760
  if test "$cross_compiling" = yes; then :
9578
6761
  ac_cv_func_memcmp_working=no
9579
6762
else
9580
 
  cat >conftest.$ac_ext <<_ACEOF
9581
 
/* confdefs.h.  */
9582
 
_ACEOF
9583
 
cat confdefs.h >>conftest.$ac_ext
9584
 
cat >>conftest.$ac_ext <<_ACEOF
 
6763
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585
6764
/* end confdefs.h.  */
9586
6765
$ac_includes_default
9587
6766
int
9616
6795
  return 0;
9617
6796
}
9618
6797
_ACEOF
9619
 
rm -f conftest$ac_exeext
9620
 
if { (ac_try="$ac_link"
9621
 
case "(($ac_try" in
9622
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623
 
  *) ac_try_echo=$ac_try;;
9624
 
esac
9625
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626
 
  (eval "$ac_link") 2>&5
9627
 
  ac_status=$?
9628
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9630
 
  { (case "(($ac_try" in
9631
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632
 
  *) ac_try_echo=$ac_try;;
9633
 
esac
9634
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635
 
  (eval "$ac_try") 2>&5
9636
 
  ac_status=$?
9637
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638
 
  (exit $ac_status); }; }; then
 
6798
if ac_fn_c_try_run "$LINENO"; then :
9639
6799
  ac_cv_func_memcmp_working=yes
9640
6800
else
9641
 
  echo "$as_me: program exited with status $ac_status" >&5
9642
 
echo "$as_me: failed program was:" >&5
9643
 
sed 's/^/| /' conftest.$ac_ext >&5
9644
 
 
9645
 
( exit $ac_status )
9646
 
ac_cv_func_memcmp_working=no
9647
 
fi
9648
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9649
 
fi
9650
 
 
9651
 
 
9652
 
fi
9653
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9654
 
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
 
6801
  ac_cv_func_memcmp_working=no
 
6802
fi
 
6803
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6804
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6805
fi
 
6806
 
 
6807
fi
 
6808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
 
6809
$as_echo "$ac_cv_func_memcmp_working" >&6; }
9655
6810
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9656
6811
  *" memcmp.$ac_objext "* ) ;;
9657
6812
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9660
6815
 
9661
6816
 
9662
6817
 
9663
 
cat >conftest.$ac_ext <<_ACEOF
9664
 
/* confdefs.h.  */
9665
 
_ACEOF
9666
 
cat confdefs.h >>conftest.$ac_ext
9667
 
cat >>conftest.$ac_ext <<_ACEOF
 
6818
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668
6819
/* end confdefs.h.  */
9669
6820
 
9670
6821
    #include <resolv.h>
9679
6830
  return 0;
9680
6831
}
9681
6832
_ACEOF
9682
 
rm -f conftest.$ac_objext conftest$ac_exeext
9683
 
if { (ac_try="$ac_link"
9684
 
case "(($ac_try" in
9685
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9686
 
  *) ac_try_echo=$ac_try;;
9687
 
esac
9688
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9689
 
  (eval "$ac_link") 2>conftest.er1
9690
 
  ac_status=$?
9691
 
  grep -v '^ *+' conftest.er1 >conftest.err
9692
 
  rm -f conftest.er1
9693
 
  cat conftest.err >&5
9694
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695
 
  (exit $ac_status); } && {
9696
 
         test -z "$ac_c_werror_flag" ||
9697
 
         test ! -s conftest.err
9698
 
       } && test -s conftest$ac_exeext &&
9699
 
       $as_test_x conftest$ac_exeext; then
9700
 
 
9701
 
    { echo "$as_me:$LINENO: result: res_init DEFINED" >&5
9702
 
echo "${ECHO_T}res_init DEFINED" >&6; }
9703
 
 
9704
 
cat >>confdefs.h <<\_ACEOF
9705
 
#define HAVE_RES_INIT 1
9706
 
_ACEOF
 
6833
if ac_fn_c_try_link "$LINENO"; then :
 
6834
 
 
6835
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: res_init DEFINED" >&5
 
6836
$as_echo "res_init DEFINED" >&6; }
 
6837
 
 
6838
$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
9707
6839
 
9708
6840
 
9709
6841
else
9710
 
  echo "$as_me: failed program was:" >&5
9711
 
sed 's/^/| /' conftest.$ac_ext >&5
9712
 
 
9713
 
 
9714
 
    { echo "$as_me:$LINENO: result: res_init UNDEFINED" >&5
9715
 
echo "${ECHO_T}res_init UNDEFINED" >&6; }
 
6842
 
 
6843
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: res_init UNDEFINED" >&5
 
6844
$as_echo "res_init UNDEFINED" >&6; }
9716
6845
 
9717
6846
fi
9718
 
 
9719
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9720
 
      conftest$ac_exeext conftest.$ac_ext
9721
 
 
9722
 
 
9723
 
{ echo "$as_me:$LINENO: checking for working epoll implementation..." >&5
9724
 
echo "$as_me: checking for working epoll implementation..." >&6;}
 
6847
rm -f core conftest.err conftest.$ac_objext \
 
6848
    conftest$ac_exeext conftest.$ac_ext
 
6849
 
 
6850
 
 
6851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working epoll implementation..." >&5
 
6852
$as_echo "$as_me: checking for working epoll implementation..." >&6;}
9725
6853
OLDLDFLAGS="$LDFLAGS"
9726
6854
LDFLAGS="$LDFLAGS -Wl,--fatal-warnings"
9727
 
{ echo "$as_me:$LINENO: checking for epoll_create" >&5
9728
 
echo $ECHO_N "checking for epoll_create... $ECHO_C" >&6; }
9729
 
if test "${ac_cv_func_epoll_create+set}" = set; then
9730
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9731
 
else
9732
 
  cat >conftest.$ac_ext <<_ACEOF
9733
 
/* confdefs.h.  */
9734
 
_ACEOF
9735
 
cat confdefs.h >>conftest.$ac_ext
9736
 
cat >>conftest.$ac_ext <<_ACEOF
9737
 
/* end confdefs.h.  */
9738
 
/* Define epoll_create to an innocuous variant, in case <limits.h> declares epoll_create.
9739
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9740
 
#define epoll_create innocuous_epoll_create
9741
 
 
9742
 
/* System header to define __stub macros and hopefully few prototypes,
9743
 
    which can conflict with char epoll_create (); below.
9744
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9745
 
    <limits.h> exists even on freestanding compilers.  */
9746
 
 
9747
 
#ifdef __STDC__
9748
 
# include <limits.h>
9749
 
#else
9750
 
# include <assert.h>
9751
 
#endif
9752
 
 
9753
 
#undef epoll_create
9754
 
 
9755
 
/* Override any GCC internal prototype to avoid an error.
9756
 
   Use char because int might match the return type of a GCC
9757
 
   builtin and then its argument prototype would still apply.  */
9758
 
#ifdef __cplusplus
9759
 
extern "C"
9760
 
#endif
9761
 
char epoll_create ();
9762
 
/* The GNU C library defines this for functions which it implements
9763
 
    to always fail with ENOSYS.  Some functions are actually named
9764
 
    something starting with __ and the normal name is an alias.  */
9765
 
#if defined __stub_epoll_create || defined __stub___epoll_create
9766
 
choke me
9767
 
#endif
9768
 
 
9769
 
int
9770
 
main ()
9771
 
{
9772
 
return epoll_create ();
9773
 
  ;
9774
 
  return 0;
9775
 
}
9776
 
_ACEOF
9777
 
rm -f conftest.$ac_objext conftest$ac_exeext
9778
 
if { (ac_try="$ac_link"
9779
 
case "(($ac_try" in
9780
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781
 
  *) ac_try_echo=$ac_try;;
9782
 
esac
9783
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784
 
  (eval "$ac_link") 2>conftest.er1
9785
 
  ac_status=$?
9786
 
  grep -v '^ *+' conftest.er1 >conftest.err
9787
 
  rm -f conftest.er1
9788
 
  cat conftest.err >&5
9789
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790
 
  (exit $ac_status); } && {
9791
 
         test -z "$ac_c_werror_flag" ||
9792
 
         test ! -s conftest.err
9793
 
       } && test -s conftest$ac_exeext &&
9794
 
       $as_test_x conftest$ac_exeext; then
9795
 
  ac_cv_func_epoll_create=yes
9796
 
else
9797
 
  echo "$as_me: failed program was:" >&5
9798
 
sed 's/^/| /' conftest.$ac_ext >&5
9799
 
 
9800
 
        ac_cv_func_epoll_create=no
9801
 
fi
9802
 
 
9803
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9804
 
      conftest$ac_exeext conftest.$ac_ext
9805
 
fi
9806
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_epoll_create" >&5
9807
 
echo "${ECHO_T}$ac_cv_func_epoll_create" >&6; }
9808
 
if test $ac_cv_func_epoll_create = yes; then
9809
 
 
9810
 
cat >>confdefs.h <<\_ACEOF
9811
 
#define HAVE_EPOLL_CREATE 1
9812
 
_ACEOF
 
6855
ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
 
6856
if test "x$ac_cv_func_epoll_create" = x""yes; then :
 
6857
 
 
6858
$as_echo "#define HAVE_EPOLL_CREATE 1" >>confdefs.h
9813
6859
 
9814
6860
fi
9815
6861
 
9817
6863
 
9818
6864
 
9819
6865
if test "$MEMCHECK" = "valgrind"; then
9820
 
   { echo "$as_me:$LINENO: checking for valgrind tool and Header files..." >&5
9821
 
echo "$as_me: checking for valgrind tool and Header files..." >&6;}
9822
 
   if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
9823
 
  { echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
9824
 
echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6; }
9825
 
if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
9826
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9827
 
fi
9828
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
9829
 
echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6; }
9830
 
else
9831
 
  # Is the header compilable?
9832
 
{ echo "$as_me:$LINENO: checking valgrind/memcheck.h usability" >&5
9833
 
echo $ECHO_N "checking valgrind/memcheck.h usability... $ECHO_C" >&6; }
9834
 
cat >conftest.$ac_ext <<_ACEOF
9835
 
/* confdefs.h.  */
9836
 
_ACEOF
9837
 
cat confdefs.h >>conftest.$ac_ext
9838
 
cat >>conftest.$ac_ext <<_ACEOF
9839
 
/* end confdefs.h.  */
9840
 
$ac_includes_default
9841
 
#include <valgrind/memcheck.h>
9842
 
_ACEOF
9843
 
rm -f conftest.$ac_objext
9844
 
if { (ac_try="$ac_compile"
9845
 
case "(($ac_try" in
9846
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847
 
  *) ac_try_echo=$ac_try;;
9848
 
esac
9849
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850
 
  (eval "$ac_compile") 2>conftest.er1
9851
 
  ac_status=$?
9852
 
  grep -v '^ *+' conftest.er1 >conftest.err
9853
 
  rm -f conftest.er1
9854
 
  cat conftest.err >&5
9855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856
 
  (exit $ac_status); } && {
9857
 
         test -z "$ac_c_werror_flag" ||
9858
 
         test ! -s conftest.err
9859
 
       } && test -s conftest.$ac_objext; then
9860
 
  ac_header_compiler=yes
9861
 
else
9862
 
  echo "$as_me: failed program was:" >&5
9863
 
sed 's/^/| /' conftest.$ac_ext >&5
9864
 
 
9865
 
        ac_header_compiler=no
9866
 
fi
9867
 
 
9868
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9870
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
9871
 
 
9872
 
# Is the header present?
9873
 
{ echo "$as_me:$LINENO: checking valgrind/memcheck.h presence" >&5
9874
 
echo $ECHO_N "checking valgrind/memcheck.h presence... $ECHO_C" >&6; }
9875
 
cat >conftest.$ac_ext <<_ACEOF
9876
 
/* confdefs.h.  */
9877
 
_ACEOF
9878
 
cat confdefs.h >>conftest.$ac_ext
9879
 
cat >>conftest.$ac_ext <<_ACEOF
9880
 
/* end confdefs.h.  */
9881
 
#include <valgrind/memcheck.h>
9882
 
_ACEOF
9883
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
9884
 
case "(($ac_try" in
9885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886
 
  *) ac_try_echo=$ac_try;;
9887
 
esac
9888
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9890
 
  ac_status=$?
9891
 
  grep -v '^ *+' conftest.er1 >conftest.err
9892
 
  rm -f conftest.er1
9893
 
  cat conftest.err >&5
9894
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895
 
  (exit $ac_status); } >/dev/null && {
9896
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9897
 
         test ! -s conftest.err
9898
 
       }; then
9899
 
  ac_header_preproc=yes
9900
 
else
9901
 
  echo "$as_me: failed program was:" >&5
9902
 
sed 's/^/| /' conftest.$ac_ext >&5
9903
 
 
9904
 
  ac_header_preproc=no
9905
 
fi
9906
 
 
9907
 
rm -f conftest.err conftest.$ac_ext
9908
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9909
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
9910
 
 
9911
 
# So?  What about this header?
9912
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9913
 
  yes:no: )
9914
 
    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&5
9915
 
echo "$as_me: WARNING: valgrind/memcheck.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9916
 
    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&5
9917
 
echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the compiler's result" >&2;}
9918
 
    ac_header_preproc=yes
9919
 
    ;;
9920
 
  no:yes:* )
9921
 
    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&5
9922
 
echo "$as_me: WARNING: valgrind/memcheck.h: present but cannot be compiled" >&2;}
9923
 
    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h:     check for missing prerequisite headers?" >&5
9924
 
echo "$as_me: WARNING: valgrind/memcheck.h:     check for missing prerequisite headers?" >&2;}
9925
 
    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&5
9926
 
echo "$as_me: WARNING: valgrind/memcheck.h: see the Autoconf documentation" >&2;}
9927
 
    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h:     section \"Present But Cannot Be Compiled\"" >&5
9928
 
echo "$as_me: WARNING: valgrind/memcheck.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9929
 
    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&5
9930
 
echo "$as_me: WARNING: valgrind/memcheck.h: proceeding with the preprocessor's result" >&2;}
9931
 
    { echo "$as_me:$LINENO: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&5
9932
 
echo "$as_me: WARNING: valgrind/memcheck.h: in the future, the compiler will take precedence" >&2;}
9933
 
    ( cat <<\_ASBOX
9934
 
## -------------------------------------------------- ##
9935
 
## Report this to openvpn-users@lists.sourceforge.net ##
9936
 
## -------------------------------------------------- ##
9937
 
_ASBOX
9938
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
9939
 
    ;;
9940
 
esac
9941
 
{ echo "$as_me:$LINENO: checking for valgrind/memcheck.h" >&5
9942
 
echo $ECHO_N "checking for valgrind/memcheck.h... $ECHO_C" >&6; }
9943
 
if test "${ac_cv_header_valgrind_memcheck_h+set}" = set; then
9944
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9945
 
else
9946
 
  ac_cv_header_valgrind_memcheck_h=$ac_header_preproc
9947
 
fi
9948
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_memcheck_h" >&5
9949
 
echo "${ECHO_T}$ac_cv_header_valgrind_memcheck_h" >&6; }
9950
 
 
9951
 
fi
9952
 
if test $ac_cv_header_valgrind_memcheck_h = yes; then
9953
 
 
9954
 
 
9955
 
cat >>confdefs.h <<\_ACEOF
9956
 
#define USE_VALGRIND 1
9957
 
_ACEOF
 
6866
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind tool and Header files..." >&5
 
6867
$as_echo "$as_me: checking for valgrind tool and Header files..." >&6;}
 
6868
   ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
 
6869
if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
 
6870
 
 
6871
 
 
6872
$as_echo "#define USE_VALGRIND 1" >>confdefs.h
9958
6873
 
9959
6874
            CFLAGS="-g -fno-inline"
9960
6875
 
9961
6876
else
9962
 
  { { echo "$as_me:$LINENO: error: valgrind headers not found." >&5
9963
 
echo "$as_me: error: valgrind headers not found." >&2;}
9964
 
   { (exit 1); exit 1; }; }
9965
 
 
9966
 
fi
9967
 
 
9968
 
 
9969
 
fi
9970
 
 
9971
 
 
9972
 
if test "$PTHREAD" = "yes"; then
9973
 
  { echo "$as_me:$LINENO: checking for pthread support..." >&5
9974
 
echo "$as_me: checking for pthread support..." >&6;}
9975
 
  { echo "$as_me:$LINENO: result: ********* WARNING: pthread support is experimental for OpenVPN 2.0" >&5
9976
 
echo "${ECHO_T}********* WARNING: pthread support is experimental for OpenVPN 2.0" >&6; }
9977
 
 
9978
 
 
9979
 
acx_pthread_ok=no
9980
 
 
9981
 
# We used to check for pthread.h first, but this fails if pthread.h
9982
 
# requires special compiler flags (e.g. on True64 or Sequent).
9983
 
# It gets checked for in the link test anyway.
9984
 
 
9985
 
# First of all, check if the user has set any of the PTHREAD_LIBS,
9986
 
# etcetera environment variables, and if threads linking works using
9987
 
# them:
9988
 
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9989
 
        save_CFLAGS="$CFLAGS"
9990
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9991
 
        save_LIBS="$LIBS"
9992
 
        LIBS="$PTHREAD_LIBS $LIBS"
9993
 
        { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9994
 
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
9995
 
        cat >conftest.$ac_ext <<_ACEOF
9996
 
/* confdefs.h.  */
9997
 
_ACEOF
9998
 
cat confdefs.h >>conftest.$ac_ext
9999
 
cat >>conftest.$ac_ext <<_ACEOF
10000
 
/* end confdefs.h.  */
10001
 
 
10002
 
/* Override any GCC internal prototype to avoid an error.
10003
 
   Use char because int might match the return type of a GCC
10004
 
   builtin and then its argument prototype would still apply.  */
10005
 
#ifdef __cplusplus
10006
 
extern "C"
10007
 
#endif
10008
 
char pthread_join ();
10009
 
int
10010
 
main ()
10011
 
{
10012
 
return pthread_join ();
10013
 
  ;
10014
 
  return 0;
10015
 
}
10016
 
_ACEOF
10017
 
rm -f conftest.$ac_objext conftest$ac_exeext
10018
 
if { (ac_try="$ac_link"
10019
 
case "(($ac_try" in
10020
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021
 
  *) ac_try_echo=$ac_try;;
10022
 
esac
10023
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024
 
  (eval "$ac_link") 2>conftest.er1
10025
 
  ac_status=$?
10026
 
  grep -v '^ *+' conftest.er1 >conftest.err
10027
 
  rm -f conftest.er1
10028
 
  cat conftest.err >&5
10029
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030
 
  (exit $ac_status); } && {
10031
 
         test -z "$ac_c_werror_flag" ||
10032
 
         test ! -s conftest.err
10033
 
       } && test -s conftest$ac_exeext &&
10034
 
       $as_test_x conftest$ac_exeext; then
10035
 
  acx_pthread_ok=yes
10036
 
else
10037
 
  echo "$as_me: failed program was:" >&5
10038
 
sed 's/^/| /' conftest.$ac_ext >&5
10039
 
 
10040
 
 
10041
 
fi
10042
 
 
10043
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044
 
      conftest$ac_exeext conftest.$ac_ext
10045
 
        { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
10046
 
echo "${ECHO_T}$acx_pthread_ok" >&6; }
10047
 
        if test x"$acx_pthread_ok" = xno; then
10048
 
                PTHREAD_LIBS=""
10049
 
                PTHREAD_CFLAGS=""
10050
 
        fi
10051
 
        LIBS="$save_LIBS"
10052
 
        CFLAGS="$save_CFLAGS"
10053
 
fi
10054
 
 
10055
 
# We must check for the threads library under a number of different
10056
 
# names; the ordering is very important because some systems
10057
 
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10058
 
# libraries is broken (non-POSIX).
10059
 
 
10060
 
# Create a list of thread flags to try.  Items starting with a "-" are
10061
 
# C compiler flags, and other items are library names, except for "none"
10062
 
# which indicates that we try without any flags at all.
10063
 
 
10064
 
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
10065
 
 
10066
 
# The ordering *is* (sometimes) important.  Some notes on the
10067
 
# individual items follow:
10068
 
 
10069
 
# pthreads: AIX (must check this before -lpthread)
10070
 
# none: in case threads are in libc; should be tried before -Kthread and
10071
 
#       other compiler flags to prevent continual compiler warnings
10072
 
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10073
 
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10074
 
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10075
 
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10076
 
# -pthreads: Solaris/gcc
10077
 
# -mthreads: Mingw32/gcc, Lynx/gcc
10078
 
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10079
 
#      doesn't hurt to check since this sometimes defines pthreads too;
10080
 
#      also defines -D_REENTRANT)
10081
 
# pthread: Linux, etcetera
10082
 
# --thread-safe: KAI C++
10083
 
 
10084
 
case "$target" in
10085
 
        *solaris*)
10086
 
 
10087
 
        # On Solaris (at least, for some versions), libc contains stubbed
10088
 
        # (non-functional) versions of the pthreads routines, so link-based
10089
 
        # tests will erroneously succeed.  (We need to link with -pthread or
10090
 
        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
10091
 
        # a function called by this macro, so we could check for that, but
10092
 
        # who knows whether they'll stub that too in a future libc.)  So,
10093
 
        # we'll just look for -pthreads and -lpthread first:
10094
 
 
10095
 
        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
10096
 
        ;;
10097
 
esac
10098
 
 
10099
 
if test x"$acx_pthread_ok" = xno; then
10100
 
for flag in $acx_pthread_flags; do
10101
 
 
10102
 
        case $flag in
10103
 
                none)
10104
 
                { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
10105
 
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
10106
 
                ;;
10107
 
 
10108
 
                -*)
10109
 
                { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
10110
 
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
10111
 
                PTHREAD_CFLAGS="$flag"
10112
 
                ;;
10113
 
 
10114
 
                *)
10115
 
                { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
10116
 
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
10117
 
                PTHREAD_LIBS="-l$flag"
10118
 
                ;;
10119
 
        esac
10120
 
 
10121
 
        save_LIBS="$LIBS"
10122
 
        save_CFLAGS="$CFLAGS"
10123
 
        LIBS="$PTHREAD_LIBS $LIBS"
10124
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10125
 
 
10126
 
        # Check for various functions.  We must include pthread.h,
10127
 
        # since some functions may be macros.  (On the Sequent, we
10128
 
        # need a special flag -Kthread to make this header compile.)
10129
 
        # We check for pthread_join because it is in -lpthread on IRIX
10130
 
        # while pthread_create is in libc.  We check for pthread_attr_init
10131
 
        # due to DEC craziness with -lpthreads.  We check for
10132
 
        # pthread_cleanup_push because it is one of the few pthread
10133
 
        # functions on Solaris that doesn't have a non-functional libc stub.
10134
 
        # We try pthread_create on general principles.
10135
 
        cat >conftest.$ac_ext <<_ACEOF
10136
 
/* confdefs.h.  */
10137
 
_ACEOF
10138
 
cat confdefs.h >>conftest.$ac_ext
10139
 
cat >>conftest.$ac_ext <<_ACEOF
10140
 
/* end confdefs.h.  */
10141
 
#include <pthread.h>
10142
 
int
10143
 
main ()
10144
 
{
10145
 
pthread_t th; pthread_join(th, 0);
10146
 
                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
10147
 
                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
10148
 
  ;
10149
 
  return 0;
10150
 
}
10151
 
_ACEOF
10152
 
rm -f conftest.$ac_objext conftest$ac_exeext
10153
 
if { (ac_try="$ac_link"
10154
 
case "(($ac_try" in
10155
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156
 
  *) ac_try_echo=$ac_try;;
10157
 
esac
10158
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159
 
  (eval "$ac_link") 2>conftest.er1
10160
 
  ac_status=$?
10161
 
  grep -v '^ *+' conftest.er1 >conftest.err
10162
 
  rm -f conftest.er1
10163
 
  cat conftest.err >&5
10164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165
 
  (exit $ac_status); } && {
10166
 
         test -z "$ac_c_werror_flag" ||
10167
 
         test ! -s conftest.err
10168
 
       } && test -s conftest$ac_exeext &&
10169
 
       $as_test_x conftest$ac_exeext; then
10170
 
  acx_pthread_ok=yes
10171
 
else
10172
 
  echo "$as_me: failed program was:" >&5
10173
 
sed 's/^/| /' conftest.$ac_ext >&5
10174
 
 
10175
 
 
10176
 
fi
10177
 
 
10178
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179
 
      conftest$ac_exeext conftest.$ac_ext
10180
 
 
10181
 
        LIBS="$save_LIBS"
10182
 
        CFLAGS="$save_CFLAGS"
10183
 
 
10184
 
        { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
10185
 
echo "${ECHO_T}$acx_pthread_ok" >&6; }
10186
 
        if test "x$acx_pthread_ok" = xyes; then
10187
 
                break;
10188
 
        fi
10189
 
 
10190
 
        PTHREAD_LIBS=""
10191
 
        PTHREAD_CFLAGS=""
10192
 
done
10193
 
fi
10194
 
 
10195
 
# Various other checks:
10196
 
if test "x$acx_pthread_ok" = xyes; then
10197
 
        save_LIBS="$LIBS"
10198
 
        LIBS="$PTHREAD_LIBS $LIBS"
10199
 
        save_CFLAGS="$CFLAGS"
10200
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10201
 
 
10202
 
        # Detect AIX lossage: threads are created detached by default
10203
 
        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
10204
 
        { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
10205
 
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
10206
 
        cat >conftest.$ac_ext <<_ACEOF
10207
 
/* confdefs.h.  */
10208
 
_ACEOF
10209
 
cat confdefs.h >>conftest.$ac_ext
10210
 
cat >>conftest.$ac_ext <<_ACEOF
10211
 
/* end confdefs.h.  */
10212
 
#include <pthread.h>
10213
 
int
10214
 
main ()
10215
 
{
10216
 
int attr=PTHREAD_CREATE_JOINABLE;
10217
 
  ;
10218
 
  return 0;
10219
 
}
10220
 
_ACEOF
10221
 
rm -f conftest.$ac_objext conftest$ac_exeext
10222
 
if { (ac_try="$ac_link"
10223
 
case "(($ac_try" in
10224
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225
 
  *) ac_try_echo=$ac_try;;
10226
 
esac
10227
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228
 
  (eval "$ac_link") 2>conftest.er1
10229
 
  ac_status=$?
10230
 
  grep -v '^ *+' conftest.er1 >conftest.err
10231
 
  rm -f conftest.er1
10232
 
  cat conftest.err >&5
10233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234
 
  (exit $ac_status); } && {
10235
 
         test -z "$ac_c_werror_flag" ||
10236
 
         test ! -s conftest.err
10237
 
       } && test -s conftest$ac_exeext &&
10238
 
       $as_test_x conftest$ac_exeext; then
10239
 
  ok=PTHREAD_CREATE_JOINABLE
10240
 
else
10241
 
  echo "$as_me: failed program was:" >&5
10242
 
sed 's/^/| /' conftest.$ac_ext >&5
10243
 
 
10244
 
        ok=unknown
10245
 
fi
10246
 
 
10247
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10248
 
      conftest$ac_exeext conftest.$ac_ext
10249
 
        if test x"$ok" = xunknown; then
10250
 
                cat >conftest.$ac_ext <<_ACEOF
10251
 
/* confdefs.h.  */
10252
 
_ACEOF
10253
 
cat confdefs.h >>conftest.$ac_ext
10254
 
cat >>conftest.$ac_ext <<_ACEOF
10255
 
/* end confdefs.h.  */
10256
 
#include <pthread.h>
10257
 
int
10258
 
main ()
10259
 
{
10260
 
int attr=PTHREAD_CREATE_UNDETACHED;
10261
 
  ;
10262
 
  return 0;
10263
 
}
10264
 
_ACEOF
10265
 
rm -f conftest.$ac_objext conftest$ac_exeext
10266
 
if { (ac_try="$ac_link"
10267
 
case "(($ac_try" in
10268
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269
 
  *) ac_try_echo=$ac_try;;
10270
 
esac
10271
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272
 
  (eval "$ac_link") 2>conftest.er1
10273
 
  ac_status=$?
10274
 
  grep -v '^ *+' conftest.er1 >conftest.err
10275
 
  rm -f conftest.er1
10276
 
  cat conftest.err >&5
10277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278
 
  (exit $ac_status); } && {
10279
 
         test -z "$ac_c_werror_flag" ||
10280
 
         test ! -s conftest.err
10281
 
       } && test -s conftest$ac_exeext &&
10282
 
       $as_test_x conftest$ac_exeext; then
10283
 
  ok=PTHREAD_CREATE_UNDETACHED
10284
 
else
10285
 
  echo "$as_me: failed program was:" >&5
10286
 
sed 's/^/| /' conftest.$ac_ext >&5
10287
 
 
10288
 
        ok=unknown
10289
 
fi
10290
 
 
10291
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10292
 
      conftest$ac_exeext conftest.$ac_ext
10293
 
        fi
10294
 
        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
10295
 
 
10296
 
cat >>confdefs.h <<\_ACEOF
10297
 
#define PTHREAD_CREATE_JOINABLE $ok
10298
 
_ACEOF
10299
 
 
10300
 
        fi
10301
 
        { echo "$as_me:$LINENO: result: ${ok}" >&5
10302
 
echo "${ECHO_T}${ok}" >&6; }
10303
 
        if test x"$ok" = xunknown; then
10304
 
                { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
10305
 
echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
10306
 
        fi
10307
 
 
10308
 
        { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
10309
 
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
10310
 
        flag=no
10311
 
        case "$target" in
10312
 
                *-aix* | *-freebsd*)               flag="-D_THREAD_SAFE";;
10313
 
                *solaris* | alpha*-osf* | *linux*) flag="-D_REENTRANT";;
10314
 
        esac
10315
 
        { echo "$as_me:$LINENO: result: ${flag}" >&5
10316
 
echo "${ECHO_T}${flag}" >&6; }
10317
 
        if test "x$flag" != xno; then
10318
 
                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10319
 
        fi
10320
 
 
10321
 
        LIBS="$save_LIBS"
10322
 
        CFLAGS="$save_CFLAGS"
10323
 
 
10324
 
        # More AIX lossage: must compile with cc_r
10325
 
        # Extract the first word of "cc_r", so it can be a program name with args.
10326
 
set dummy cc_r; ac_word=$2
10327
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10328
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10329
 
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
10330
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10331
 
else
10332
 
  if test -n "$PTHREAD_CC"; then
10333
 
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10334
 
else
10335
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336
 
for as_dir in $PATH
10337
 
do
10338
 
  IFS=$as_save_IFS
10339
 
  test -z "$as_dir" && as_dir=.
10340
 
  for ac_exec_ext in '' $ac_executable_extensions; do
10341
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342
 
    ac_cv_prog_PTHREAD_CC="cc_r"
10343
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10344
 
    break 2
10345
 
  fi
10346
 
done
10347
 
done
10348
 
IFS=$as_save_IFS
10349
 
 
10350
 
  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
10351
 
fi
10352
 
fi
10353
 
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10354
 
if test -n "$PTHREAD_CC"; then
10355
 
  { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
10356
 
echo "${ECHO_T}$PTHREAD_CC" >&6; }
10357
 
else
10358
 
  { echo "$as_me:$LINENO: result: no" >&5
10359
 
echo "${ECHO_T}no" >&6; }
10360
 
fi
10361
 
 
10362
 
 
10363
 
else
10364
 
        PTHREAD_CC="$CC"
10365
 
fi
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10372
 
if test x"$acx_pthread_ok" = xyes; then
10373
 
 
10374
 
            case "$target" in
10375
 
            *openbsd*)
10376
 
                { echo "$as_me:$LINENO: result: WARNING: pthread support on OpenBSD is unstable!" >&5
10377
 
echo "${ECHO_T}WARNING: pthread support on OpenBSD is unstable!" >&6; }
10378
 
                CFLAGS="$CFLAGS -pthread"
10379
 
                ;;
10380
 
            esac
10381
 
            LIBS="$PTHREAD_LIBS $LIBS"
10382
 
            CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10383
 
            CC="$PTHREAD_CC"
10384
 
 
10385
 
cat >>confdefs.h <<\_ACEOF
10386
 
#define USE_PTHREAD 1
10387
 
_ACEOF
10388
 
 
10389
 
 
10390
 
        :
10391
 
else
10392
 
        acx_pthread_ok=no
10393
 
 
10394
 
            { echo "$as_me:$LINENO: result: I don't know how to build with pthread support on this platform." >&5
10395
 
echo "${ECHO_T}I don't know how to build with pthread support on this platform." >&6; }
10396
 
            { { echo "$as_me:$LINENO: error: try ./configure --disable-pthread" >&5
10397
 
echo "$as_me: error: try ./configure --disable-pthread" >&2;}
10398
 
   { (exit 1); exit 1; }; }
 
6877
  as_fn_error $? "valgrind headers not found." "$LINENO" 5
10399
6878
 
10400
6879
fi
10401
6880
 
10404
6883
 
10405
6884
 
10406
6885
if test "$MEMCHECK" = "dmalloc"; then
10407
 
   { echo "$as_me:$LINENO: checking for dmalloc Library and Header files..." >&5
10408
 
echo "$as_me: checking for dmalloc Library and Header files..." >&6;}
10409
 
   if test "${ac_cv_header_dmalloc_h+set}" = set; then
10410
 
  { echo "$as_me:$LINENO: checking for dmalloc.h" >&5
10411
 
echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; }
10412
 
if test "${ac_cv_header_dmalloc_h+set}" = set; then
10413
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10414
 
fi
10415
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
10416
 
echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; }
10417
 
else
10418
 
  # Is the header compilable?
10419
 
{ echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
10420
 
echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6; }
10421
 
cat >conftest.$ac_ext <<_ACEOF
10422
 
/* confdefs.h.  */
10423
 
_ACEOF
10424
 
cat confdefs.h >>conftest.$ac_ext
10425
 
cat >>conftest.$ac_ext <<_ACEOF
10426
 
/* end confdefs.h.  */
10427
 
$ac_includes_default
10428
 
#include <dmalloc.h>
10429
 
_ACEOF
10430
 
rm -f conftest.$ac_objext
10431
 
if { (ac_try="$ac_compile"
10432
 
case "(($ac_try" in
10433
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434
 
  *) ac_try_echo=$ac_try;;
10435
 
esac
10436
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437
 
  (eval "$ac_compile") 2>conftest.er1
10438
 
  ac_status=$?
10439
 
  grep -v '^ *+' conftest.er1 >conftest.err
10440
 
  rm -f conftest.er1
10441
 
  cat conftest.err >&5
10442
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443
 
  (exit $ac_status); } && {
10444
 
         test -z "$ac_c_werror_flag" ||
10445
 
         test ! -s conftest.err
10446
 
       } && test -s conftest.$ac_objext; then
10447
 
  ac_header_compiler=yes
10448
 
else
10449
 
  echo "$as_me: failed program was:" >&5
10450
 
sed 's/^/| /' conftest.$ac_ext >&5
10451
 
 
10452
 
        ac_header_compiler=no
10453
 
fi
10454
 
 
10455
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10457
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
10458
 
 
10459
 
# Is the header present?
10460
 
{ echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
10461
 
echo $ECHO_N "checking dmalloc.h presence... $ECHO_C" >&6; }
10462
 
cat >conftest.$ac_ext <<_ACEOF
10463
 
/* confdefs.h.  */
10464
 
_ACEOF
10465
 
cat confdefs.h >>conftest.$ac_ext
10466
 
cat >>conftest.$ac_ext <<_ACEOF
10467
 
/* end confdefs.h.  */
10468
 
#include <dmalloc.h>
10469
 
_ACEOF
10470
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10471
 
case "(($ac_try" in
10472
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473
 
  *) ac_try_echo=$ac_try;;
10474
 
esac
10475
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10477
 
  ac_status=$?
10478
 
  grep -v '^ *+' conftest.er1 >conftest.err
10479
 
  rm -f conftest.er1
10480
 
  cat conftest.err >&5
10481
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482
 
  (exit $ac_status); } >/dev/null && {
10483
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10484
 
         test ! -s conftest.err
10485
 
       }; then
10486
 
  ac_header_preproc=yes
10487
 
else
10488
 
  echo "$as_me: failed program was:" >&5
10489
 
sed 's/^/| /' conftest.$ac_ext >&5
10490
 
 
10491
 
  ac_header_preproc=no
10492
 
fi
10493
 
 
10494
 
rm -f conftest.err conftest.$ac_ext
10495
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10496
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
10497
 
 
10498
 
# So?  What about this header?
10499
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10500
 
  yes:no: )
10501
 
    { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
10502
 
echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10503
 
    { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
10504
 
echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
10505
 
    ac_header_preproc=yes
10506
 
    ;;
10507
 
  no:yes:* )
10508
 
    { echo "$as_me:$LINENO: WARNING: dmalloc.h: present but cannot be compiled" >&5
10509
 
echo "$as_me: WARNING: dmalloc.h: present but cannot be compiled" >&2;}
10510
 
    { echo "$as_me:$LINENO: WARNING: dmalloc.h:     check for missing prerequisite headers?" >&5
10511
 
echo "$as_me: WARNING: dmalloc.h:     check for missing prerequisite headers?" >&2;}
10512
 
    { echo "$as_me:$LINENO: WARNING: dmalloc.h: see the Autoconf documentation" >&5
10513
 
echo "$as_me: WARNING: dmalloc.h: see the Autoconf documentation" >&2;}
10514
 
    { echo "$as_me:$LINENO: WARNING: dmalloc.h:     section \"Present But Cannot Be Compiled\"" >&5
10515
 
echo "$as_me: WARNING: dmalloc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10516
 
    { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&5
10517
 
echo "$as_me: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&2;}
10518
 
    { echo "$as_me:$LINENO: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&5
10519
 
echo "$as_me: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&2;}
10520
 
    ( cat <<\_ASBOX
10521
 
## -------------------------------------------------- ##
10522
 
## Report this to openvpn-users@lists.sourceforge.net ##
10523
 
## -------------------------------------------------- ##
10524
 
_ASBOX
10525
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
10526
 
    ;;
10527
 
esac
10528
 
{ echo "$as_me:$LINENO: checking for dmalloc.h" >&5
10529
 
echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6; }
10530
 
if test "${ac_cv_header_dmalloc_h+set}" = set; then
10531
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10532
 
else
10533
 
  ac_cv_header_dmalloc_h=$ac_header_preproc
10534
 
fi
10535
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
10536
 
echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6; }
10537
 
 
10538
 
fi
10539
 
if test $ac_cv_header_dmalloc_h = yes; then
10540
 
  { echo "$as_me:$LINENO: checking for malloc in -ldmalloc" >&5
10541
 
echo $ECHO_N "checking for malloc in -ldmalloc... $ECHO_C" >&6; }
10542
 
if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then
10543
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6886
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc Library and Header files..." >&5
 
6887
$as_echo "$as_me: checking for dmalloc Library and Header files..." >&6;}
 
6888
   ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
 
6889
if test "x$ac_cv_header_dmalloc_h" = x""yes; then :
 
6890
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
 
6891
$as_echo_n "checking for malloc in -ldmalloc... " >&6; }
 
6892
if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then :
 
6893
  $as_echo_n "(cached) " >&6
10544
6894
else
10545
6895
  ac_check_lib_save_LIBS=$LIBS
10546
6896
LIBS="-ldmalloc  $LIBS"
10547
 
cat >conftest.$ac_ext <<_ACEOF
10548
 
/* confdefs.h.  */
10549
 
_ACEOF
10550
 
cat confdefs.h >>conftest.$ac_ext
10551
 
cat >>conftest.$ac_ext <<_ACEOF
 
6897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552
6898
/* end confdefs.h.  */
10553
6899
 
10554
6900
/* Override any GCC internal prototype to avoid an error.
10566
6912
  return 0;
10567
6913
}
10568
6914
_ACEOF
10569
 
rm -f conftest.$ac_objext conftest$ac_exeext
10570
 
if { (ac_try="$ac_link"
10571
 
case "(($ac_try" in
10572
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573
 
  *) ac_try_echo=$ac_try;;
10574
 
esac
10575
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576
 
  (eval "$ac_link") 2>conftest.er1
10577
 
  ac_status=$?
10578
 
  grep -v '^ *+' conftest.er1 >conftest.err
10579
 
  rm -f conftest.er1
10580
 
  cat conftest.err >&5
10581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582
 
  (exit $ac_status); } && {
10583
 
         test -z "$ac_c_werror_flag" ||
10584
 
         test ! -s conftest.err
10585
 
       } && test -s conftest$ac_exeext &&
10586
 
       $as_test_x conftest$ac_exeext; then
 
6915
if ac_fn_c_try_link "$LINENO"; then :
10587
6916
  ac_cv_lib_dmalloc_malloc=yes
10588
6917
else
10589
 
  echo "$as_me: failed program was:" >&5
10590
 
sed 's/^/| /' conftest.$ac_ext >&5
10591
 
 
10592
 
        ac_cv_lib_dmalloc_malloc=no
 
6918
  ac_cv_lib_dmalloc_malloc=no
10593
6919
fi
10594
 
 
10595
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10596
 
      conftest$ac_exeext conftest.$ac_ext
 
6920
rm -f core conftest.err conftest.$ac_objext \
 
6921
    conftest$ac_exeext conftest.$ac_ext
10597
6922
LIBS=$ac_check_lib_save_LIBS
10598
6923
fi
10599
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_malloc" >&5
10600
 
echo "${ECHO_T}$ac_cv_lib_dmalloc_malloc" >&6; }
10601
 
if test $ac_cv_lib_dmalloc_malloc = yes; then
10602
 
 
10603
 
               if test "$PTHREAD" = "yes"; then
10604
 
 
10605
 
  LIBS="-ldmallocth $LIBS"
10606
 
 
10607
 
               else
 
6924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
 
6925
$as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
 
6926
if test "x$ac_cv_lib_dmalloc_malloc" = x""yes; then :
 
6927
 
10608
6928
 
10609
6929
  LIBS="-ldmalloc $LIBS"
10610
6930
 
10611
 
               fi
10612
6931
 
10613
 
cat >>confdefs.h <<\_ACEOF
10614
 
#define DMALLOC 1
10615
 
_ACEOF
 
6932
$as_echo "#define DMALLOC 1" >>confdefs.h
10616
6933
 
10617
6934
 
10618
6935
else
10619
 
  { { echo "$as_me:$LINENO: error: dmalloc library not found." >&5
10620
 
echo "$as_me: error: dmalloc library not found." >&2;}
10621
 
   { (exit 1); exit 1; }; }
 
6936
  as_fn_error $? "dmalloc library not found." "$LINENO" 5
10622
6937
 
10623
6938
fi
10624
6939
 
10625
6940
else
10626
 
  { { echo "$as_me:$LINENO: error: dmalloc headers not found." >&5
10627
 
echo "$as_me: error: dmalloc headers not found." >&2;}
10628
 
   { (exit 1); exit 1; }; }
 
6941
  as_fn_error $? "dmalloc headers not found." "$LINENO" 5
10629
6942
 
10630
6943
fi
10631
6944
 
10634
6947
 
10635
6948
if test "${WIN32}" != "yes"; then
10636
6949
   if test "$PLUGINS" = "yes"; then
10637
 
      { echo "$as_me:$LINENO: checking for libdl Library and Header files..." >&5
10638
 
echo "$as_me: checking for libdl Library and Header files..." >&6;}
10639
 
      if test "${ac_cv_header_dlfcn_h+set}" = set; then
10640
 
  { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10641
 
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10642
 
if test "${ac_cv_header_dlfcn_h+set}" = set; then
10643
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10644
 
fi
10645
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10646
 
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10647
 
else
10648
 
  # Is the header compilable?
10649
 
{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
10650
 
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
10651
 
cat >conftest.$ac_ext <<_ACEOF
10652
 
/* confdefs.h.  */
10653
 
_ACEOF
10654
 
cat confdefs.h >>conftest.$ac_ext
10655
 
cat >>conftest.$ac_ext <<_ACEOF
10656
 
/* end confdefs.h.  */
10657
 
$ac_includes_default
10658
 
#include <dlfcn.h>
10659
 
_ACEOF
10660
 
rm -f conftest.$ac_objext
10661
 
if { (ac_try="$ac_compile"
10662
 
case "(($ac_try" in
10663
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664
 
  *) ac_try_echo=$ac_try;;
10665
 
esac
10666
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667
 
  (eval "$ac_compile") 2>conftest.er1
10668
 
  ac_status=$?
10669
 
  grep -v '^ *+' conftest.er1 >conftest.err
10670
 
  rm -f conftest.er1
10671
 
  cat conftest.err >&5
10672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673
 
  (exit $ac_status); } && {
10674
 
         test -z "$ac_c_werror_flag" ||
10675
 
         test ! -s conftest.err
10676
 
       } && test -s conftest.$ac_objext; then
10677
 
  ac_header_compiler=yes
10678
 
else
10679
 
  echo "$as_me: failed program was:" >&5
10680
 
sed 's/^/| /' conftest.$ac_ext >&5
10681
 
 
10682
 
        ac_header_compiler=no
10683
 
fi
10684
 
 
10685
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10687
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
10688
 
 
10689
 
# Is the header present?
10690
 
{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
10691
 
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
10692
 
cat >conftest.$ac_ext <<_ACEOF
10693
 
/* confdefs.h.  */
10694
 
_ACEOF
10695
 
cat confdefs.h >>conftest.$ac_ext
10696
 
cat >>conftest.$ac_ext <<_ACEOF
10697
 
/* end confdefs.h.  */
10698
 
#include <dlfcn.h>
10699
 
_ACEOF
10700
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10701
 
case "(($ac_try" in
10702
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703
 
  *) ac_try_echo=$ac_try;;
10704
 
esac
10705
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10707
 
  ac_status=$?
10708
 
  grep -v '^ *+' conftest.er1 >conftest.err
10709
 
  rm -f conftest.er1
10710
 
  cat conftest.err >&5
10711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712
 
  (exit $ac_status); } >/dev/null && {
10713
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10714
 
         test ! -s conftest.err
10715
 
       }; then
10716
 
  ac_header_preproc=yes
10717
 
else
10718
 
  echo "$as_me: failed program was:" >&5
10719
 
sed 's/^/| /' conftest.$ac_ext >&5
10720
 
 
10721
 
  ac_header_preproc=no
10722
 
fi
10723
 
 
10724
 
rm -f conftest.err conftest.$ac_ext
10725
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10726
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
10727
 
 
10728
 
# So?  What about this header?
10729
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10730
 
  yes:no: )
10731
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
10732
 
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10733
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
10734
 
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
10735
 
    ac_header_preproc=yes
10736
 
    ;;
10737
 
  no:yes:* )
10738
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
10739
 
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
10740
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
10741
 
echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
10742
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
10743
 
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
10744
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
10745
 
echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10746
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
10747
 
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
10748
 
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
10749
 
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
10750
 
    ( cat <<\_ASBOX
10751
 
## -------------------------------------------------- ##
10752
 
## Report this to openvpn-users@lists.sourceforge.net ##
10753
 
## -------------------------------------------------- ##
10754
 
_ASBOX
10755
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
10756
 
    ;;
10757
 
esac
10758
 
{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5
10759
 
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
10760
 
if test "${ac_cv_header_dlfcn_h+set}" = set; then
10761
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10762
 
else
10763
 
  ac_cv_header_dlfcn_h=$ac_header_preproc
10764
 
fi
10765
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
10766
 
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
10767
 
 
10768
 
fi
10769
 
if test $ac_cv_header_dlfcn_h = yes; then
10770
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
10771
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10772
 
if test "${ac_cv_func_dlopen+set}" = set; then
10773
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10774
 
else
10775
 
  cat >conftest.$ac_ext <<_ACEOF
10776
 
/* confdefs.h.  */
10777
 
_ACEOF
10778
 
cat confdefs.h >>conftest.$ac_ext
10779
 
cat >>conftest.$ac_ext <<_ACEOF
10780
 
/* end confdefs.h.  */
10781
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10782
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10783
 
#define dlopen innocuous_dlopen
10784
 
 
10785
 
/* System header to define __stub macros and hopefully few prototypes,
10786
 
    which can conflict with char dlopen (); below.
10787
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10788
 
    <limits.h> exists even on freestanding compilers.  */
10789
 
 
10790
 
#ifdef __STDC__
10791
 
# include <limits.h>
10792
 
#else
10793
 
# include <assert.h>
10794
 
#endif
10795
 
 
10796
 
#undef dlopen
10797
 
 
10798
 
/* Override any GCC internal prototype to avoid an error.
10799
 
   Use char because int might match the return type of a GCC
10800
 
   builtin and then its argument prototype would still apply.  */
10801
 
#ifdef __cplusplus
10802
 
extern "C"
10803
 
#endif
10804
 
char dlopen ();
10805
 
/* The GNU C library defines this for functions which it implements
10806
 
    to always fail with ENOSYS.  Some functions are actually named
10807
 
    something starting with __ and the normal name is an alias.  */
10808
 
#if defined __stub_dlopen || defined __stub___dlopen
10809
 
choke me
10810
 
#endif
10811
 
 
10812
 
int
10813
 
main ()
10814
 
{
10815
 
return dlopen ();
10816
 
  ;
10817
 
  return 0;
10818
 
}
10819
 
_ACEOF
10820
 
rm -f conftest.$ac_objext conftest$ac_exeext
10821
 
if { (ac_try="$ac_link"
10822
 
case "(($ac_try" in
10823
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824
 
  *) ac_try_echo=$ac_try;;
10825
 
esac
10826
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827
 
  (eval "$ac_link") 2>conftest.er1
10828
 
  ac_status=$?
10829
 
  grep -v '^ *+' conftest.er1 >conftest.err
10830
 
  rm -f conftest.er1
10831
 
  cat conftest.err >&5
10832
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833
 
  (exit $ac_status); } && {
10834
 
         test -z "$ac_c_werror_flag" ||
10835
 
         test ! -s conftest.err
10836
 
       } && test -s conftest$ac_exeext &&
10837
 
       $as_test_x conftest$ac_exeext; then
10838
 
  ac_cv_func_dlopen=yes
10839
 
else
10840
 
  echo "$as_me: failed program was:" >&5
10841
 
sed 's/^/| /' conftest.$ac_ext >&5
10842
 
 
10843
 
        ac_cv_func_dlopen=no
10844
 
fi
10845
 
 
10846
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10847
 
      conftest$ac_exeext conftest.$ac_ext
10848
 
fi
10849
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10850
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10851
 
if test $ac_cv_func_dlopen = yes; then
10852
 
 
10853
 
cat >>confdefs.h <<\_ACEOF
10854
 
#define USE_LIBDL 1
10855
 
_ACEOF
10856
 
 
10857
 
else
10858
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10859
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10860
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10861
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6950
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl Library and Header files..." >&5
 
6951
$as_echo "$as_me: checking for libdl Library and Header files..." >&6;}
 
6952
      ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
 
6953
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
6954
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
6955
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
6956
 
 
6957
$as_echo "#define USE_LIBDL 1" >>confdefs.h
 
6958
 
 
6959
else
 
6960
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
6961
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
6962
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
6963
  $as_echo_n "(cached) " >&6
10862
6964
else
10863
6965
  ac_check_lib_save_LIBS=$LIBS
10864
6966
LIBS="-ldl  $LIBS"
10865
 
cat >conftest.$ac_ext <<_ACEOF
10866
 
/* confdefs.h.  */
10867
 
_ACEOF
10868
 
cat confdefs.h >>conftest.$ac_ext
10869
 
cat >>conftest.$ac_ext <<_ACEOF
 
6967
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870
6968
/* end confdefs.h.  */
10871
6969
 
10872
6970
/* Override any GCC internal prototype to avoid an error.
10884
6982
  return 0;
10885
6983
}
10886
6984
_ACEOF
10887
 
rm -f conftest.$ac_objext conftest$ac_exeext
10888
 
if { (ac_try="$ac_link"
10889
 
case "(($ac_try" in
10890
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891
 
  *) ac_try_echo=$ac_try;;
10892
 
esac
10893
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894
 
  (eval "$ac_link") 2>conftest.er1
10895
 
  ac_status=$?
10896
 
  grep -v '^ *+' conftest.er1 >conftest.err
10897
 
  rm -f conftest.er1
10898
 
  cat conftest.err >&5
10899
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900
 
  (exit $ac_status); } && {
10901
 
         test -z "$ac_c_werror_flag" ||
10902
 
         test ! -s conftest.err
10903
 
       } && test -s conftest$ac_exeext &&
10904
 
       $as_test_x conftest$ac_exeext; then
 
6985
if ac_fn_c_try_link "$LINENO"; then :
10905
6986
  ac_cv_lib_dl_dlopen=yes
10906
6987
else
10907
 
  echo "$as_me: failed program was:" >&5
10908
 
sed 's/^/| /' conftest.$ac_ext >&5
10909
 
 
10910
 
        ac_cv_lib_dl_dlopen=no
 
6988
  ac_cv_lib_dl_dlopen=no
10911
6989
fi
10912
 
 
10913
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10914
 
      conftest$ac_exeext conftest.$ac_ext
 
6990
rm -f core conftest.err conftest.$ac_objext \
 
6991
    conftest$ac_exeext conftest.$ac_ext
10915
6992
LIBS=$ac_check_lib_save_LIBS
10916
6993
fi
10917
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10918
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10919
 
if test $ac_cv_lib_dl_dlopen = yes; then
 
6994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
6995
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
6996
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10920
6997
 
10921
6998
 
10922
6999
  LIBS="-ldl $LIBS"
10923
7000
 
10924
7001
 
10925
 
cat >>confdefs.h <<\_ACEOF
10926
 
#define USE_LIBDL 1
10927
 
_ACEOF
10928
 
 
10929
 
 
10930
 
else
10931
 
  { echo "$as_me:$LINENO: result: libdl library not found." >&5
10932
 
echo "${ECHO_T}libdl library not found." >&6; }
10933
 
 
10934
 
fi
10935
 
 
10936
 
fi
10937
 
 
10938
 
else
10939
 
  { echo "$as_me:$LINENO: result: libdl headers not found." >&5
10940
 
echo "${ECHO_T}libdl headers not found." >&6; }
10941
 
 
10942
 
fi
10943
 
 
10944
 
 
 
7002
$as_echo "#define USE_LIBDL 1" >>confdefs.h
 
7003
 
 
7004
 
 
7005
else
 
7006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libdl library not found." >&5
 
7007
$as_echo "libdl library not found." >&6; }
 
7008
 
 
7009
fi
 
7010
 
 
7011
fi
 
7012
 
 
7013
else
 
7014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libdl headers not found." >&5
 
7015
$as_echo "libdl headers not found." >&6; }
 
7016
 
 
7017
fi
 
7018
 
 
7019
 
 
7020
      if test "$EUREPHIA" = "yes"; then
 
7021
 
 
7022
$as_echo "#define ENABLE_EUREPHIA 1" >>confdefs.h
 
7023
 
 
7024
      fi
10945
7025
   fi
10946
7026
fi
10947
7027
 
10948
7028
if test "${WIN32}" = "yes"; then
10949
7029
   if test "$PLUGINS" = "yes"; then
10950
 
        cat >conftest.$ac_ext <<_ACEOF
10951
 
/* confdefs.h.  */
10952
 
_ACEOF
10953
 
cat confdefs.h >>conftest.$ac_ext
10954
 
cat >>conftest.$ac_ext <<_ACEOF
 
7030
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955
7031
/* end confdefs.h.  */
10956
7032
 
10957
7033
            #include <windows.h>
10966
7042
  return 0;
10967
7043
}
10968
7044
_ACEOF
10969
 
rm -f conftest.$ac_objext conftest$ac_exeext
10970
 
if { (ac_try="$ac_link"
10971
 
case "(($ac_try" in
10972
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973
 
  *) ac_try_echo=$ac_try;;
10974
 
esac
10975
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976
 
  (eval "$ac_link") 2>conftest.er1
10977
 
  ac_status=$?
10978
 
  grep -v '^ *+' conftest.er1 >conftest.err
10979
 
  rm -f conftest.er1
10980
 
  cat conftest.err >&5
10981
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
 
  (exit $ac_status); } && {
10983
 
         test -z "$ac_c_werror_flag" ||
10984
 
         test ! -s conftest.err
10985
 
       } && test -s conftest$ac_exeext &&
10986
 
       $as_test_x conftest$ac_exeext; then
10987
 
 
10988
 
            { echo "$as_me:$LINENO: result: LoadLibrary DEFINED" >&5
10989
 
echo "${ECHO_T}LoadLibrary DEFINED" >&6; }
10990
 
 
10991
 
cat >>confdefs.h <<\_ACEOF
10992
 
#define USE_LOAD_LIBRARY 1
10993
 
_ACEOF
 
7045
if ac_fn_c_try_link "$LINENO"; then :
 
7046
 
 
7047
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: LoadLibrary DEFINED" >&5
 
7048
$as_echo "LoadLibrary DEFINED" >&6; }
 
7049
 
 
7050
$as_echo "#define USE_LOAD_LIBRARY 1" >>confdefs.h
10994
7051
 
10995
7052
 
10996
7053
else
10997
 
  echo "$as_me: failed program was:" >&5
10998
 
sed 's/^/| /' conftest.$ac_ext >&5
10999
 
 
11000
 
 
11001
 
            { echo "$as_me:$LINENO: result: LoadLibrary UNDEFINED" >&5
11002
 
echo "${ECHO_T}LoadLibrary UNDEFINED" >&6; }
 
7054
 
 
7055
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: LoadLibrary UNDEFINED" >&5
 
7056
$as_echo "LoadLibrary UNDEFINED" >&6; }
11003
7057
 
11004
7058
fi
11005
 
 
11006
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11007
 
      conftest$ac_exeext conftest.$ac_ext
 
7059
rm -f core conftest.err conftest.$ac_objext \
 
7060
    conftest$ac_exeext conftest.$ac_ext
11008
7061
   fi
11009
7062
fi
11010
7063
 
11011
7064
 
11012
7065
if test "$LZO" = "yes"; then
11013
7066
   LZO_H=""
11014
 
   { echo "$as_me:$LINENO: checking for LZO Library and Header files..." >&5
11015
 
echo "$as_me: checking for LZO Library and Header files..." >&6;}
11016
 
   if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
11017
 
  { echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
11018
 
echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6; }
11019
 
if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
11020
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11021
 
fi
11022
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
11023
 
echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6; }
11024
 
else
11025
 
  # Is the header compilable?
11026
 
{ echo "$as_me:$LINENO: checking lzo/lzo1x.h usability" >&5
11027
 
echo $ECHO_N "checking lzo/lzo1x.h usability... $ECHO_C" >&6; }
11028
 
cat >conftest.$ac_ext <<_ACEOF
11029
 
/* confdefs.h.  */
11030
 
_ACEOF
11031
 
cat confdefs.h >>conftest.$ac_ext
11032
 
cat >>conftest.$ac_ext <<_ACEOF
11033
 
/* end confdefs.h.  */
11034
 
$ac_includes_default
11035
 
#include <lzo/lzo1x.h>
11036
 
_ACEOF
11037
 
rm -f conftest.$ac_objext
11038
 
if { (ac_try="$ac_compile"
11039
 
case "(($ac_try" in
11040
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041
 
  *) ac_try_echo=$ac_try;;
11042
 
esac
11043
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044
 
  (eval "$ac_compile") 2>conftest.er1
11045
 
  ac_status=$?
11046
 
  grep -v '^ *+' conftest.er1 >conftest.err
11047
 
  rm -f conftest.er1
11048
 
  cat conftest.err >&5
11049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050
 
  (exit $ac_status); } && {
11051
 
         test -z "$ac_c_werror_flag" ||
11052
 
         test ! -s conftest.err
11053
 
       } && test -s conftest.$ac_objext; then
11054
 
  ac_header_compiler=yes
11055
 
else
11056
 
  echo "$as_me: failed program was:" >&5
11057
 
sed 's/^/| /' conftest.$ac_ext >&5
11058
 
 
11059
 
        ac_header_compiler=no
11060
 
fi
11061
 
 
11062
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11064
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
11065
 
 
11066
 
# Is the header present?
11067
 
{ echo "$as_me:$LINENO: checking lzo/lzo1x.h presence" >&5
11068
 
echo $ECHO_N "checking lzo/lzo1x.h presence... $ECHO_C" >&6; }
11069
 
cat >conftest.$ac_ext <<_ACEOF
11070
 
/* confdefs.h.  */
11071
 
_ACEOF
11072
 
cat confdefs.h >>conftest.$ac_ext
11073
 
cat >>conftest.$ac_ext <<_ACEOF
11074
 
/* end confdefs.h.  */
11075
 
#include <lzo/lzo1x.h>
11076
 
_ACEOF
11077
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
11078
 
case "(($ac_try" in
11079
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080
 
  *) ac_try_echo=$ac_try;;
11081
 
esac
11082
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11084
 
  ac_status=$?
11085
 
  grep -v '^ *+' conftest.er1 >conftest.err
11086
 
  rm -f conftest.er1
11087
 
  cat conftest.err >&5
11088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089
 
  (exit $ac_status); } >/dev/null && {
11090
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11091
 
         test ! -s conftest.err
11092
 
       }; then
11093
 
  ac_header_preproc=yes
11094
 
else
11095
 
  echo "$as_me: failed program was:" >&5
11096
 
sed 's/^/| /' conftest.$ac_ext >&5
11097
 
 
11098
 
  ac_header_preproc=no
11099
 
fi
11100
 
 
11101
 
rm -f conftest.err conftest.$ac_ext
11102
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11103
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
11104
 
 
11105
 
# So?  What about this header?
11106
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11107
 
  yes:no: )
11108
 
    { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
11109
 
echo "$as_me: WARNING: lzo/lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11110
 
    { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&5
11111
 
echo "$as_me: WARNING: lzo/lzo1x.h: proceeding with the compiler's result" >&2;}
11112
 
    ac_header_preproc=yes
11113
 
    ;;
11114
 
  no:yes:* )
11115
 
    { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: present but cannot be compiled" >&5
11116
 
echo "$as_me: WARNING: lzo/lzo1x.h: present but cannot be compiled" >&2;}
11117
 
    { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h:     check for missing prerequisite headers?" >&5
11118
 
echo "$as_me: WARNING: lzo/lzo1x.h:     check for missing prerequisite headers?" >&2;}
11119
 
    { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: see the Autoconf documentation" >&5
11120
 
echo "$as_me: WARNING: lzo/lzo1x.h: see the Autoconf documentation" >&2;}
11121
 
    { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h:     section \"Present But Cannot Be Compiled\"" >&5
11122
 
echo "$as_me: WARNING: lzo/lzo1x.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11123
 
    { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: proceeding with the preprocessor's result" >&5
11124
 
echo "$as_me: WARNING: lzo/lzo1x.h: proceeding with the preprocessor's result" >&2;}
11125
 
    { echo "$as_me:$LINENO: WARNING: lzo/lzo1x.h: in the future, the compiler will take precedence" >&5
11126
 
echo "$as_me: WARNING: lzo/lzo1x.h: in the future, the compiler will take precedence" >&2;}
11127
 
    ( cat <<\_ASBOX
11128
 
## -------------------------------------------------- ##
11129
 
## Report this to openvpn-users@lists.sourceforge.net ##
11130
 
## -------------------------------------------------- ##
11131
 
_ASBOX
11132
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
11133
 
    ;;
11134
 
esac
11135
 
{ echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
11136
 
echo $ECHO_N "checking for lzo/lzo1x.h... $ECHO_C" >&6; }
11137
 
if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
11138
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11139
 
else
11140
 
  ac_cv_header_lzo_lzo1x_h=$ac_header_preproc
11141
 
fi
11142
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_lzo_lzo1x_h" >&5
11143
 
echo "${ECHO_T}$ac_cv_header_lzo_lzo1x_h" >&6; }
11144
 
 
11145
 
fi
11146
 
if test $ac_cv_header_lzo_lzo1x_h = yes; then
 
7067
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZO Library and Header files..." >&5
 
7068
$as_echo "$as_me: checking for LZO Library and Header files..." >&6;}
 
7069
   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
 
7070
if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
11147
7071
   LZO_H="2"
11148
7072
          lzolibs="lzo2 lzo"
11149
7073
 
11150
 
cat >>confdefs.h <<\_ACEOF
11151
 
#define LZO_HEADER_DIR 1
11152
 
_ACEOF
11153
 
 
11154
 
 
11155
 
else
11156
 
   if test "${ac_cv_header_lzo1x_h+set}" = set; then
11157
 
  { echo "$as_me:$LINENO: checking for lzo1x.h" >&5
11158
 
echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6; }
11159
 
if test "${ac_cv_header_lzo1x_h+set}" = set; then
11160
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11161
 
fi
11162
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
11163
 
echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6; }
11164
 
else
11165
 
  # Is the header compilable?
11166
 
{ echo "$as_me:$LINENO: checking lzo1x.h usability" >&5
11167
 
echo $ECHO_N "checking lzo1x.h usability... $ECHO_C" >&6; }
11168
 
cat >conftest.$ac_ext <<_ACEOF
11169
 
/* confdefs.h.  */
11170
 
_ACEOF
11171
 
cat confdefs.h >>conftest.$ac_ext
11172
 
cat >>conftest.$ac_ext <<_ACEOF
11173
 
/* end confdefs.h.  */
11174
 
$ac_includes_default
11175
 
#include <lzo1x.h>
11176
 
_ACEOF
11177
 
rm -f conftest.$ac_objext
11178
 
if { (ac_try="$ac_compile"
11179
 
case "(($ac_try" in
11180
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181
 
  *) ac_try_echo=$ac_try;;
11182
 
esac
11183
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184
 
  (eval "$ac_compile") 2>conftest.er1
11185
 
  ac_status=$?
11186
 
  grep -v '^ *+' conftest.er1 >conftest.err
11187
 
  rm -f conftest.er1
11188
 
  cat conftest.err >&5
11189
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190
 
  (exit $ac_status); } && {
11191
 
         test -z "$ac_c_werror_flag" ||
11192
 
         test ! -s conftest.err
11193
 
       } && test -s conftest.$ac_objext; then
11194
 
  ac_header_compiler=yes
11195
 
else
11196
 
  echo "$as_me: failed program was:" >&5
11197
 
sed 's/^/| /' conftest.$ac_ext >&5
11198
 
 
11199
 
        ac_header_compiler=no
11200
 
fi
11201
 
 
11202
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11204
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
11205
 
 
11206
 
# Is the header present?
11207
 
{ echo "$as_me:$LINENO: checking lzo1x.h presence" >&5
11208
 
echo $ECHO_N "checking lzo1x.h presence... $ECHO_C" >&6; }
11209
 
cat >conftest.$ac_ext <<_ACEOF
11210
 
/* confdefs.h.  */
11211
 
_ACEOF
11212
 
cat confdefs.h >>conftest.$ac_ext
11213
 
cat >>conftest.$ac_ext <<_ACEOF
11214
 
/* end confdefs.h.  */
11215
 
#include <lzo1x.h>
11216
 
_ACEOF
11217
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
11218
 
case "(($ac_try" in
11219
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220
 
  *) ac_try_echo=$ac_try;;
11221
 
esac
11222
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11224
 
  ac_status=$?
11225
 
  grep -v '^ *+' conftest.er1 >conftest.err
11226
 
  rm -f conftest.er1
11227
 
  cat conftest.err >&5
11228
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229
 
  (exit $ac_status); } >/dev/null && {
11230
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11231
 
         test ! -s conftest.err
11232
 
       }; then
11233
 
  ac_header_preproc=yes
11234
 
else
11235
 
  echo "$as_me: failed program was:" >&5
11236
 
sed 's/^/| /' conftest.$ac_ext >&5
11237
 
 
11238
 
  ac_header_preproc=no
11239
 
fi
11240
 
 
11241
 
rm -f conftest.err conftest.$ac_ext
11242
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
11244
 
 
11245
 
# So?  What about this header?
11246
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247
 
  yes:no: )
11248
 
    { echo "$as_me:$LINENO: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&5
11249
 
echo "$as_me: WARNING: lzo1x.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250
 
    { echo "$as_me:$LINENO: WARNING: lzo1x.h: proceeding with the compiler's result" >&5
11251
 
echo "$as_me: WARNING: lzo1x.h: proceeding with the compiler's result" >&2;}
11252
 
    ac_header_preproc=yes
11253
 
    ;;
11254
 
  no:yes:* )
11255
 
    { echo "$as_me:$LINENO: WARNING: lzo1x.h: present but cannot be compiled" >&5
11256
 
echo "$as_me: WARNING: lzo1x.h: present but cannot be compiled" >&2;}
11257
 
    { echo "$as_me:$LINENO: WARNING: lzo1x.h:     check for missing prerequisite headers?" >&5
11258
 
echo "$as_me: WARNING: lzo1x.h:     check for missing prerequisite headers?" >&2;}
11259
 
    { echo "$as_me:$LINENO: WARNING: lzo1x.h: see the Autoconf documentation" >&5
11260
 
echo "$as_me: WARNING: lzo1x.h: see the Autoconf documentation" >&2;}
11261
 
    { echo "$as_me:$LINENO: WARNING: lzo1x.h:     section \"Present But Cannot Be Compiled\"" >&5
11262
 
echo "$as_me: WARNING: lzo1x.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11263
 
    { echo "$as_me:$LINENO: WARNING: lzo1x.h: proceeding with the preprocessor's result" >&5
11264
 
echo "$as_me: WARNING: lzo1x.h: proceeding with the preprocessor's result" >&2;}
11265
 
    { echo "$as_me:$LINENO: WARNING: lzo1x.h: in the future, the compiler will take precedence" >&5
11266
 
echo "$as_me: WARNING: lzo1x.h: in the future, the compiler will take precedence" >&2;}
11267
 
    ( cat <<\_ASBOX
11268
 
## -------------------------------------------------- ##
11269
 
## Report this to openvpn-users@lists.sourceforge.net ##
11270
 
## -------------------------------------------------- ##
11271
 
_ASBOX
11272
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
11273
 
    ;;
11274
 
esac
11275
 
{ echo "$as_me:$LINENO: checking for lzo1x.h" >&5
11276
 
echo $ECHO_N "checking for lzo1x.h... $ECHO_C" >&6; }
11277
 
if test "${ac_cv_header_lzo1x_h+set}" = set; then
11278
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11279
 
else
11280
 
  ac_cv_header_lzo1x_h=$ac_header_preproc
11281
 
fi
11282
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_lzo1x_h" >&5
11283
 
echo "${ECHO_T}$ac_cv_header_lzo1x_h" >&6; }
11284
 
 
11285
 
fi
11286
 
if test $ac_cv_header_lzo1x_h = yes; then
 
7074
$as_echo "#define LZO_HEADER_DIR 1" >>confdefs.h
 
7075
 
 
7076
 
 
7077
else
 
7078
   ac_fn_c_check_header_mongrel "$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
 
7079
if test "x$ac_cv_header_lzo1x_h" = x""yes; then :
11287
7080
   LZO_H="1" ; lzolibs=lzo
11288
7081
fi
11289
7082
 
11297
7090
     havelzolib=0
11298
7091
     for i in $lzolibs ; do
11299
7092
        if test $havelzolib = 1 ; then break ; fi
11300
 
        as_ac_Lib=`echo "ac_cv_lib_$i''_lzo1x_1_15_compress" | $as_tr_sh`
11301
 
{ echo "$as_me:$LINENO: checking for lzo1x_1_15_compress in -l$i" >&5
11302
 
echo $ECHO_N "checking for lzo1x_1_15_compress in -l$i... $ECHO_C" >&6; }
11303
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11304
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7093
        as_ac_Lib=`$as_echo "ac_cv_lib_$i''_lzo1x_1_15_compress" | $as_tr_sh`
 
7094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -l$i" >&5
 
7095
$as_echo_n "checking for lzo1x_1_15_compress in -l$i... " >&6; }
 
7096
if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
 
7097
  $as_echo_n "(cached) " >&6
11305
7098
else
11306
7099
  ac_check_lib_save_LIBS=$LIBS
11307
7100
LIBS="-l$i  $LIBS"
11308
 
cat >conftest.$ac_ext <<_ACEOF
11309
 
/* confdefs.h.  */
11310
 
_ACEOF
11311
 
cat confdefs.h >>conftest.$ac_ext
11312
 
cat >>conftest.$ac_ext <<_ACEOF
 
7101
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313
7102
/* end confdefs.h.  */
11314
7103
 
11315
7104
/* Override any GCC internal prototype to avoid an error.
11327
7116
  return 0;
11328
7117
}
11329
7118
_ACEOF
11330
 
rm -f conftest.$ac_objext conftest$ac_exeext
11331
 
if { (ac_try="$ac_link"
11332
 
case "(($ac_try" in
11333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334
 
  *) ac_try_echo=$ac_try;;
11335
 
esac
11336
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337
 
  (eval "$ac_link") 2>conftest.er1
11338
 
  ac_status=$?
11339
 
  grep -v '^ *+' conftest.er1 >conftest.err
11340
 
  rm -f conftest.er1
11341
 
  cat conftest.err >&5
11342
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343
 
  (exit $ac_status); } && {
11344
 
         test -z "$ac_c_werror_flag" ||
11345
 
         test ! -s conftest.err
11346
 
       } && test -s conftest$ac_exeext &&
11347
 
       $as_test_x conftest$ac_exeext; then
 
7119
if ac_fn_c_try_link "$LINENO"; then :
11348
7120
  eval "$as_ac_Lib=yes"
11349
7121
else
11350
 
  echo "$as_me: failed program was:" >&5
11351
 
sed 's/^/| /' conftest.$ac_ext >&5
11352
 
 
11353
 
        eval "$as_ac_Lib=no"
 
7122
  eval "$as_ac_Lib=no"
11354
7123
fi
11355
 
 
11356
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357
 
      conftest$ac_exeext conftest.$ac_ext
 
7124
rm -f core conftest.err conftest.$ac_objext \
 
7125
    conftest$ac_exeext conftest.$ac_ext
11358
7126
LIBS=$ac_check_lib_save_LIBS
11359
7127
fi
11360
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
11361
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11362
 
echo "${ECHO_T}$ac_res" >&6; }
11363
 
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
7128
eval ac_res=\$$as_ac_Lib
 
7129
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
7130
$as_echo "$ac_res" >&6; }
 
7131
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11364
7132
 
11365
7133
 
11366
7134
  LIBS="-l$i $LIBS"
11367
7135
 
11368
7136
 
11369
 
cat >>confdefs.h <<\_ACEOF
11370
 
#define USE_LZO 1
11371
 
_ACEOF
 
7137
$as_echo "#define USE_LZO 1" >>confdefs.h
11372
7138
 
11373
7139
 
11374
7140
cat >>confdefs.h <<_ACEOF
11382
7148
 
11383
7149
     done
11384
7150
     if test $havelzolib = 0 ; then
11385
 
       { { echo "$as_me:$LINENO: error: LZO headers were found but LZO library was not found" >&5
11386
 
echo "$as_me: error: LZO headers were found but LZO library was not found" >&2;}
11387
 
   { (exit 1); exit 1; }; }
 
7151
       as_fn_error $? "LZO headers were found but LZO library was not found" "$LINENO" 5
11388
7152
     fi
11389
7153
   else
11390
 
     { echo "$as_me:$LINENO: result: LZO headers were not found" >&5
11391
 
echo "${ECHO_T}LZO headers were not found" >&6; }
11392
 
     { echo "$as_me:$LINENO: result: LZO library available from http://www.oberhumer.com/opensource/lzo/" >&5
11393
 
echo "${ECHO_T}LZO library available from http://www.oberhumer.com/opensource/lzo/" >&6; }
11394
 
     { { echo "$as_me:$LINENO: error: Or try ./configure --disable-lzo" >&5
11395
 
echo "$as_me: error: Or try ./configure --disable-lzo" >&2;}
11396
 
   { (exit 1); exit 1; }; }
 
7154
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: LZO headers were not found" >&5
 
7155
$as_echo "LZO headers were not found" >&6; }
 
7156
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: LZO library available from http://www.oberhumer.com/opensource/lzo/" >&5
 
7157
$as_echo "LZO library available from http://www.oberhumer.com/opensource/lzo/" >&6; }
 
7158
     as_fn_error $? "Or try ./configure --disable-lzo" "$LINENO" 5
11397
7159
   fi
11398
7160
fi
11399
7161
 
11400
7162
 
11401
7163
if test "$CRYPTO" = "yes"; then
11402
 
   { echo "$as_me:$LINENO: checking for OpenSSL Crypto Library and Header files..." >&5
11403
 
echo "$as_me: checking for OpenSSL Crypto Library and Header files..." >&6;}
11404
 
   if test "${ac_cv_header_openssl_evp_h+set}" = set; then
11405
 
  { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
11406
 
echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
11407
 
if test "${ac_cv_header_openssl_evp_h+set}" = set; then
11408
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11409
 
fi
11410
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
11411
 
echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
11412
 
else
11413
 
  # Is the header compilable?
11414
 
{ echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
11415
 
echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
11416
 
cat >conftest.$ac_ext <<_ACEOF
11417
 
/* confdefs.h.  */
11418
 
_ACEOF
11419
 
cat confdefs.h >>conftest.$ac_ext
11420
 
cat >>conftest.$ac_ext <<_ACEOF
11421
 
/* end confdefs.h.  */
11422
 
$ac_includes_default
11423
 
#include <openssl/evp.h>
11424
 
_ACEOF
11425
 
rm -f conftest.$ac_objext
11426
 
if { (ac_try="$ac_compile"
11427
 
case "(($ac_try" in
11428
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429
 
  *) ac_try_echo=$ac_try;;
11430
 
esac
11431
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432
 
  (eval "$ac_compile") 2>conftest.er1
11433
 
  ac_status=$?
11434
 
  grep -v '^ *+' conftest.er1 >conftest.err
11435
 
  rm -f conftest.er1
11436
 
  cat conftest.err >&5
11437
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438
 
  (exit $ac_status); } && {
11439
 
         test -z "$ac_c_werror_flag" ||
11440
 
         test ! -s conftest.err
11441
 
       } && test -s conftest.$ac_objext; then
11442
 
  ac_header_compiler=yes
11443
 
else
11444
 
  echo "$as_me: failed program was:" >&5
11445
 
sed 's/^/| /' conftest.$ac_ext >&5
11446
 
 
11447
 
        ac_header_compiler=no
11448
 
fi
11449
 
 
11450
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11452
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
11453
 
 
11454
 
# Is the header present?
11455
 
{ echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
11456
 
echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
11457
 
cat >conftest.$ac_ext <<_ACEOF
11458
 
/* confdefs.h.  */
11459
 
_ACEOF
11460
 
cat confdefs.h >>conftest.$ac_ext
11461
 
cat >>conftest.$ac_ext <<_ACEOF
11462
 
/* end confdefs.h.  */
11463
 
#include <openssl/evp.h>
11464
 
_ACEOF
11465
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
11466
 
case "(($ac_try" in
11467
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468
 
  *) ac_try_echo=$ac_try;;
11469
 
esac
11470
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11472
 
  ac_status=$?
11473
 
  grep -v '^ *+' conftest.er1 >conftest.err
11474
 
  rm -f conftest.er1
11475
 
  cat conftest.err >&5
11476
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477
 
  (exit $ac_status); } >/dev/null && {
11478
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11479
 
         test ! -s conftest.err
11480
 
       }; then
11481
 
  ac_header_preproc=yes
11482
 
else
11483
 
  echo "$as_me: failed program was:" >&5
11484
 
sed 's/^/| /' conftest.$ac_ext >&5
11485
 
 
11486
 
  ac_header_preproc=no
11487
 
fi
11488
 
 
11489
 
rm -f conftest.err conftest.$ac_ext
11490
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11491
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
11492
 
 
11493
 
# So?  What about this header?
11494
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11495
 
  yes:no: )
11496
 
    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
11497
 
echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11498
 
    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
11499
 
echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
11500
 
    ac_header_preproc=yes
11501
 
    ;;
11502
 
  no:yes:* )
11503
 
    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
11504
 
echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
11505
 
    { echo "$as_me:$LINENO: WARNING: openssl/evp.h:     check for missing prerequisite headers?" >&5
11506
 
echo "$as_me: WARNING: openssl/evp.h:     check for missing prerequisite headers?" >&2;}
11507
 
    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
11508
 
echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
11509
 
    { echo "$as_me:$LINENO: WARNING: openssl/evp.h:     section \"Present But Cannot Be Compiled\"" >&5
11510
 
echo "$as_me: WARNING: openssl/evp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11511
 
    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
11512
 
echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
11513
 
    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
11514
 
echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
11515
 
    ( cat <<\_ASBOX
11516
 
## -------------------------------------------------- ##
11517
 
## Report this to openvpn-users@lists.sourceforge.net ##
11518
 
## -------------------------------------------------- ##
11519
 
_ASBOX
11520
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
11521
 
    ;;
11522
 
esac
11523
 
{ echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
11524
 
echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
11525
 
if test "${ac_cv_header_openssl_evp_h+set}" = set; then
11526
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11527
 
else
11528
 
  ac_cv_header_openssl_evp_h=$ac_header_preproc
11529
 
fi
11530
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
11531
 
echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
11532
 
 
11533
 
fi
11534
 
if test $ac_cv_header_openssl_evp_h = yes; then
11535
 
  :
11536
 
else
11537
 
  { { echo "$as_me:$LINENO: error: OpenSSL Crypto headers not found." >&5
11538
 
echo "$as_me: error: OpenSSL Crypto headers not found." >&2;}
11539
 
   { (exit 1); exit 1; }; }
 
7164
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL Crypto Library and Header files..." >&5
 
7165
$as_echo "$as_me: checking for OpenSSL Crypto Library and Header files..." >&6;}
 
7166
   ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
 
7167
if test "x$ac_cv_header_openssl_evp_h" = x""yes; then :
 
7168
 
 
7169
else
 
7170
  as_fn_error $? "OpenSSL Crypto headers not found." "$LINENO" 5
11540
7171
fi
11541
7172
 
11542
7173
 
11543
7174
 
11544
7175
   for lib in crypto eay32; do
11545
 
      as_ac_Lib=`echo "ac_cv_lib_$lib''_EVP_CIPHER_CTX_init" | $as_tr_sh`
11546
 
{ echo "$as_me:$LINENO: checking for EVP_CIPHER_CTX_init in -l$lib" >&5
11547
 
echo $ECHO_N "checking for EVP_CIPHER_CTX_init in -l$lib... $ECHO_C" >&6; }
11548
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11549
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7176
      as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_EVP_CIPHER_CTX_init" | $as_tr_sh`
 
7177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_init in -l$lib" >&5
 
7178
$as_echo_n "checking for EVP_CIPHER_CTX_init in -l$lib... " >&6; }
 
7179
if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
 
7180
  $as_echo_n "(cached) " >&6
11550
7181
else
11551
7182
  ac_check_lib_save_LIBS=$LIBS
11552
7183
LIBS="-l$lib  $LIBS"
11553
 
cat >conftest.$ac_ext <<_ACEOF
11554
 
/* confdefs.h.  */
11555
 
_ACEOF
11556
 
cat confdefs.h >>conftest.$ac_ext
11557
 
cat >>conftest.$ac_ext <<_ACEOF
 
7184
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558
7185
/* end confdefs.h.  */
11559
7186
 
11560
7187
/* Override any GCC internal prototype to avoid an error.
11572
7199
  return 0;
11573
7200
}
11574
7201
_ACEOF
11575
 
rm -f conftest.$ac_objext conftest$ac_exeext
11576
 
if { (ac_try="$ac_link"
11577
 
case "(($ac_try" in
11578
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579
 
  *) ac_try_echo=$ac_try;;
11580
 
esac
11581
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582
 
  (eval "$ac_link") 2>conftest.er1
11583
 
  ac_status=$?
11584
 
  grep -v '^ *+' conftest.er1 >conftest.err
11585
 
  rm -f conftest.er1
11586
 
  cat conftest.err >&5
11587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588
 
  (exit $ac_status); } && {
11589
 
         test -z "$ac_c_werror_flag" ||
11590
 
         test ! -s conftest.err
11591
 
       } && test -s conftest$ac_exeext &&
11592
 
       $as_test_x conftest$ac_exeext; then
 
7202
if ac_fn_c_try_link "$LINENO"; then :
11593
7203
  eval "$as_ac_Lib=yes"
11594
7204
else
11595
 
  echo "$as_me: failed program was:" >&5
11596
 
sed 's/^/| /' conftest.$ac_ext >&5
11597
 
 
11598
 
        eval "$as_ac_Lib=no"
 
7205
  eval "$as_ac_Lib=no"
11599
7206
fi
11600
 
 
11601
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602
 
      conftest$ac_exeext conftest.$ac_ext
 
7207
rm -f core conftest.err conftest.$ac_objext \
 
7208
    conftest$ac_exeext conftest.$ac_ext
11603
7209
LIBS=$ac_check_lib_save_LIBS
11604
7210
fi
11605
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
11606
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11607
 
echo "${ECHO_T}$ac_res" >&6; }
11608
 
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
7211
eval ac_res=\$$as_ac_Lib
 
7212
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
7213
$as_echo "$ac_res" >&6; }
 
7214
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11609
7215
 
11610
7216
                cryptofound=1
11611
7217
 
11617
7223
 
11618
7224
   done
11619
7225
 
11620
 
   test -n "$cryptofound" || { { echo "$as_me:$LINENO: error: OpenSSL Crypto library not found." >&5
11621
 
echo "$as_me: error: OpenSSL Crypto library not found." >&2;}
11622
 
   { (exit 1); exit 1; }; }
 
7226
   test -n "$cryptofound" || as_fn_error $? "OpenSSL Crypto library not found." "$LINENO" 5
11623
7227
 
11624
 
   { echo "$as_me:$LINENO: checking that OpenSSL Library is at least version 0.9.6" >&5
11625
 
echo $ECHO_N "checking that OpenSSL Library is at least version 0.9.6... $ECHO_C" >&6; }
11626
 
   cat >conftest.$ac_ext <<_ACEOF
11627
 
/* confdefs.h.  */
11628
 
_ACEOF
11629
 
cat confdefs.h >>conftest.$ac_ext
11630
 
cat >>conftest.$ac_ext <<_ACEOF
 
7228
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that OpenSSL Library is at least version 0.9.6" >&5
 
7229
$as_echo_n "checking that OpenSSL Library is at least version 0.9.6... " >&6; }
 
7230
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631
7231
/* end confdefs.h.  */
11632
7232
 
11633
7233
       #include <openssl/evp.h>
11637
7237
 
11638
7238
_ACEOF
11639
7239
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11640
 
  $EGREP "yes" >/dev/null 2>&1; then
11641
 
 
11642
 
       { echo "$as_me:$LINENO: result: yes" >&5
11643
 
echo "${ECHO_T}yes" >&6; }
11644
 
 
11645
 
cat >>confdefs.h <<\_ACEOF
11646
 
#define USE_CRYPTO 1
11647
 
_ACEOF
11648
 
 
11649
 
 
11650
 
for ac_func in EVP_CIPHER_CTX_set_key_length
11651
 
do
11652
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11654
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11657
 
else
11658
 
  cat >conftest.$ac_ext <<_ACEOF
11659
 
/* confdefs.h.  */
11660
 
_ACEOF
11661
 
cat confdefs.h >>conftest.$ac_ext
11662
 
cat >>conftest.$ac_ext <<_ACEOF
11663
 
/* end confdefs.h.  */
11664
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11666
 
#define $ac_func innocuous_$ac_func
11667
 
 
11668
 
/* System header to define __stub macros and hopefully few prototypes,
11669
 
    which can conflict with char $ac_func (); below.
11670
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671
 
    <limits.h> exists even on freestanding compilers.  */
11672
 
 
11673
 
#ifdef __STDC__
11674
 
# include <limits.h>
11675
 
#else
11676
 
# include <assert.h>
11677
 
#endif
11678
 
 
11679
 
#undef $ac_func
11680
 
 
11681
 
/* Override any GCC internal prototype to avoid an error.
11682
 
   Use char because int might match the return type of a GCC
11683
 
   builtin and then its argument prototype would still apply.  */
11684
 
#ifdef __cplusplus
11685
 
extern "C"
11686
 
#endif
11687
 
char $ac_func ();
11688
 
/* The GNU C library defines this for functions which it implements
11689
 
    to always fail with ENOSYS.  Some functions are actually named
11690
 
    something starting with __ and the normal name is an alias.  */
11691
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11692
 
choke me
11693
 
#endif
11694
 
 
11695
 
int
11696
 
main ()
11697
 
{
11698
 
return $ac_func ();
11699
 
  ;
11700
 
  return 0;
11701
 
}
11702
 
_ACEOF
11703
 
rm -f conftest.$ac_objext conftest$ac_exeext
11704
 
if { (ac_try="$ac_link"
11705
 
case "(($ac_try" in
11706
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707
 
  *) ac_try_echo=$ac_try;;
11708
 
esac
11709
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710
 
  (eval "$ac_link") 2>conftest.er1
11711
 
  ac_status=$?
11712
 
  grep -v '^ *+' conftest.er1 >conftest.err
11713
 
  rm -f conftest.er1
11714
 
  cat conftest.err >&5
11715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716
 
  (exit $ac_status); } && {
11717
 
         test -z "$ac_c_werror_flag" ||
11718
 
         test ! -s conftest.err
11719
 
       } && test -s conftest$ac_exeext &&
11720
 
       $as_test_x conftest$ac_exeext; then
11721
 
  eval "$as_ac_var=yes"
11722
 
else
11723
 
  echo "$as_me: failed program was:" >&5
11724
 
sed 's/^/| /' conftest.$ac_ext >&5
11725
 
 
11726
 
        eval "$as_ac_var=no"
11727
 
fi
11728
 
 
11729
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730
 
      conftest$ac_exeext conftest.$ac_ext
11731
 
fi
11732
 
ac_res=`eval echo '${'$as_ac_var'}'`
11733
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11734
 
echo "${ECHO_T}$ac_res" >&6; }
11735
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11736
 
  cat >>confdefs.h <<_ACEOF
11737
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738
 
_ACEOF
11739
 
 
11740
 
fi
11741
 
done
11742
 
 
11743
 
 
11744
 
 
11745
 
for ac_header in openssl/engine.h
11746
 
do
11747
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11753
 
fi
11754
 
ac_res=`eval echo '${'$as_ac_Header'}'`
11755
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11756
 
echo "${ECHO_T}$ac_res" >&6; }
11757
 
else
11758
 
  # Is the header compilable?
11759
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761
 
cat >conftest.$ac_ext <<_ACEOF
11762
 
/* confdefs.h.  */
11763
 
_ACEOF
11764
 
cat confdefs.h >>conftest.$ac_ext
11765
 
cat >>conftest.$ac_ext <<_ACEOF
11766
 
/* end confdefs.h.  */
11767
 
$ac_includes_default
11768
 
#include <$ac_header>
11769
 
_ACEOF
11770
 
rm -f conftest.$ac_objext
11771
 
if { (ac_try="$ac_compile"
11772
 
case "(($ac_try" in
11773
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774
 
  *) ac_try_echo=$ac_try;;
11775
 
esac
11776
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777
 
  (eval "$ac_compile") 2>conftest.er1
11778
 
  ac_status=$?
11779
 
  grep -v '^ *+' conftest.er1 >conftest.err
11780
 
  rm -f conftest.er1
11781
 
  cat conftest.err >&5
11782
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783
 
  (exit $ac_status); } && {
11784
 
         test -z "$ac_c_werror_flag" ||
11785
 
         test ! -s conftest.err
11786
 
       } && test -s conftest.$ac_objext; then
11787
 
  ac_header_compiler=yes
11788
 
else
11789
 
  echo "$as_me: failed program was:" >&5
11790
 
sed 's/^/| /' conftest.$ac_ext >&5
11791
 
 
11792
 
        ac_header_compiler=no
11793
 
fi
11794
 
 
11795
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
11798
 
 
11799
 
# Is the header present?
11800
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11802
 
cat >conftest.$ac_ext <<_ACEOF
11803
 
/* confdefs.h.  */
11804
 
_ACEOF
11805
 
cat confdefs.h >>conftest.$ac_ext
11806
 
cat >>conftest.$ac_ext <<_ACEOF
11807
 
/* end confdefs.h.  */
11808
 
#include <$ac_header>
11809
 
_ACEOF
11810
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
11811
 
case "(($ac_try" in
11812
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813
 
  *) ac_try_echo=$ac_try;;
11814
 
esac
11815
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11817
 
  ac_status=$?
11818
 
  grep -v '^ *+' conftest.er1 >conftest.err
11819
 
  rm -f conftest.er1
11820
 
  cat conftest.err >&5
11821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822
 
  (exit $ac_status); } >/dev/null && {
11823
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11824
 
         test ! -s conftest.err
11825
 
       }; then
11826
 
  ac_header_preproc=yes
11827
 
else
11828
 
  echo "$as_me: failed program was:" >&5
11829
 
sed 's/^/| /' conftest.$ac_ext >&5
11830
 
 
11831
 
  ac_header_preproc=no
11832
 
fi
11833
 
 
11834
 
rm -f conftest.err conftest.$ac_ext
11835
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11836
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
11837
 
 
11838
 
# So?  What about this header?
11839
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11840
 
  yes:no: )
11841
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11842
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11843
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11844
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11845
 
    ac_header_preproc=yes
11846
 
    ;;
11847
 
  no:yes:* )
11848
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11849
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11850
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11851
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11852
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11853
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11854
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11855
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11856
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11857
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11858
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11859
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11860
 
    ( cat <<\_ASBOX
11861
 
## -------------------------------------------------- ##
11862
 
## Report this to openvpn-users@lists.sourceforge.net ##
11863
 
## -------------------------------------------------- ##
11864
 
_ASBOX
11865
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
11866
 
    ;;
11867
 
esac
11868
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11869
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11870
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11872
 
else
11873
 
  eval "$as_ac_Header=\$ac_header_preproc"
11874
 
fi
11875
 
ac_res=`eval echo '${'$as_ac_Header'}'`
11876
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11877
 
echo "${ECHO_T}$ac_res" >&6; }
11878
 
 
11879
 
fi
11880
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11881
 
  cat >>confdefs.h <<_ACEOF
11882
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11883
 
_ACEOF
11884
 
 
11885
 
fi
11886
 
 
11887
 
done
11888
 
 
11889
 
 
11890
 
for ac_func in ENGINE_load_builtin_engines
11891
 
do
11892
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11893
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11894
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11895
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11896
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11897
 
else
11898
 
  cat >conftest.$ac_ext <<_ACEOF
11899
 
/* confdefs.h.  */
11900
 
_ACEOF
11901
 
cat confdefs.h >>conftest.$ac_ext
11902
 
cat >>conftest.$ac_ext <<_ACEOF
11903
 
/* end confdefs.h.  */
11904
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11905
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11906
 
#define $ac_func innocuous_$ac_func
11907
 
 
11908
 
/* System header to define __stub macros and hopefully few prototypes,
11909
 
    which can conflict with char $ac_func (); below.
11910
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911
 
    <limits.h> exists even on freestanding compilers.  */
11912
 
 
11913
 
#ifdef __STDC__
11914
 
# include <limits.h>
11915
 
#else
11916
 
# include <assert.h>
11917
 
#endif
11918
 
 
11919
 
#undef $ac_func
11920
 
 
11921
 
/* Override any GCC internal prototype to avoid an error.
11922
 
   Use char because int might match the return type of a GCC
11923
 
   builtin and then its argument prototype would still apply.  */
11924
 
#ifdef __cplusplus
11925
 
extern "C"
11926
 
#endif
11927
 
char $ac_func ();
11928
 
/* The GNU C library defines this for functions which it implements
11929
 
    to always fail with ENOSYS.  Some functions are actually named
11930
 
    something starting with __ and the normal name is an alias.  */
11931
 
#if defined __stub_$ac_func || defined __stub___$ac_func
11932
 
choke me
11933
 
#endif
11934
 
 
11935
 
int
11936
 
main ()
11937
 
{
11938
 
return $ac_func ();
11939
 
  ;
11940
 
  return 0;
11941
 
}
11942
 
_ACEOF
11943
 
rm -f conftest.$ac_objext conftest$ac_exeext
11944
 
if { (ac_try="$ac_link"
11945
 
case "(($ac_try" in
11946
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947
 
  *) ac_try_echo=$ac_try;;
11948
 
esac
11949
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950
 
  (eval "$ac_link") 2>conftest.er1
11951
 
  ac_status=$?
11952
 
  grep -v '^ *+' conftest.er1 >conftest.err
11953
 
  rm -f conftest.er1
11954
 
  cat conftest.err >&5
11955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956
 
  (exit $ac_status); } && {
11957
 
         test -z "$ac_c_werror_flag" ||
11958
 
         test ! -s conftest.err
11959
 
       } && test -s conftest$ac_exeext &&
11960
 
       $as_test_x conftest$ac_exeext; then
11961
 
  eval "$as_ac_var=yes"
11962
 
else
11963
 
  echo "$as_me: failed program was:" >&5
11964
 
sed 's/^/| /' conftest.$ac_ext >&5
11965
 
 
11966
 
        eval "$as_ac_var=no"
11967
 
fi
11968
 
 
11969
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11970
 
      conftest$ac_exeext conftest.$ac_ext
11971
 
fi
11972
 
ac_res=`eval echo '${'$as_ac_var'}'`
11973
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
11974
 
echo "${ECHO_T}$ac_res" >&6; }
11975
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11976
 
  cat >>confdefs.h <<_ACEOF
11977
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978
 
_ACEOF
11979
 
 
11980
 
fi
11981
 
done
11982
 
 
11983
 
 
11984
 
for ac_func in ENGINE_register_all_complete
11985
 
do
11986
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11987
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11988
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11989
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11990
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11991
 
else
11992
 
  cat >conftest.$ac_ext <<_ACEOF
11993
 
/* confdefs.h.  */
11994
 
_ACEOF
11995
 
cat confdefs.h >>conftest.$ac_ext
11996
 
cat >>conftest.$ac_ext <<_ACEOF
11997
 
/* end confdefs.h.  */
11998
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12000
 
#define $ac_func innocuous_$ac_func
12001
 
 
12002
 
/* System header to define __stub macros and hopefully few prototypes,
12003
 
    which can conflict with char $ac_func (); below.
12004
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005
 
    <limits.h> exists even on freestanding compilers.  */
12006
 
 
12007
 
#ifdef __STDC__
12008
 
# include <limits.h>
12009
 
#else
12010
 
# include <assert.h>
12011
 
#endif
12012
 
 
12013
 
#undef $ac_func
12014
 
 
12015
 
/* Override any GCC internal prototype to avoid an error.
12016
 
   Use char because int might match the return type of a GCC
12017
 
   builtin and then its argument prototype would still apply.  */
12018
 
#ifdef __cplusplus
12019
 
extern "C"
12020
 
#endif
12021
 
char $ac_func ();
12022
 
/* The GNU C library defines this for functions which it implements
12023
 
    to always fail with ENOSYS.  Some functions are actually named
12024
 
    something starting with __ and the normal name is an alias.  */
12025
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12026
 
choke me
12027
 
#endif
12028
 
 
12029
 
int
12030
 
main ()
12031
 
{
12032
 
return $ac_func ();
12033
 
  ;
12034
 
  return 0;
12035
 
}
12036
 
_ACEOF
12037
 
rm -f conftest.$ac_objext conftest$ac_exeext
12038
 
if { (ac_try="$ac_link"
12039
 
case "(($ac_try" in
12040
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041
 
  *) ac_try_echo=$ac_try;;
12042
 
esac
12043
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044
 
  (eval "$ac_link") 2>conftest.er1
12045
 
  ac_status=$?
12046
 
  grep -v '^ *+' conftest.er1 >conftest.err
12047
 
  rm -f conftest.er1
12048
 
  cat conftest.err >&5
12049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050
 
  (exit $ac_status); } && {
12051
 
         test -z "$ac_c_werror_flag" ||
12052
 
         test ! -s conftest.err
12053
 
       } && test -s conftest$ac_exeext &&
12054
 
       $as_test_x conftest$ac_exeext; then
12055
 
  eval "$as_ac_var=yes"
12056
 
else
12057
 
  echo "$as_me: failed program was:" >&5
12058
 
sed 's/^/| /' conftest.$ac_ext >&5
12059
 
 
12060
 
        eval "$as_ac_var=no"
12061
 
fi
12062
 
 
12063
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12064
 
      conftest$ac_exeext conftest.$ac_ext
12065
 
fi
12066
 
ac_res=`eval echo '${'$as_ac_var'}'`
12067
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12068
 
echo "${ECHO_T}$ac_res" >&6; }
12069
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12070
 
  cat >>confdefs.h <<_ACEOF
12071
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12072
 
_ACEOF
12073
 
 
12074
 
fi
12075
 
done
12076
 
 
12077
 
 
12078
 
for ac_func in ENGINE_cleanup
12079
 
do
12080
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12082
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12085
 
else
12086
 
  cat >conftest.$ac_ext <<_ACEOF
12087
 
/* confdefs.h.  */
12088
 
_ACEOF
12089
 
cat confdefs.h >>conftest.$ac_ext
12090
 
cat >>conftest.$ac_ext <<_ACEOF
12091
 
/* end confdefs.h.  */
12092
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12094
 
#define $ac_func innocuous_$ac_func
12095
 
 
12096
 
/* System header to define __stub macros and hopefully few prototypes,
12097
 
    which can conflict with char $ac_func (); below.
12098
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099
 
    <limits.h> exists even on freestanding compilers.  */
12100
 
 
12101
 
#ifdef __STDC__
12102
 
# include <limits.h>
12103
 
#else
12104
 
# include <assert.h>
12105
 
#endif
12106
 
 
12107
 
#undef $ac_func
12108
 
 
12109
 
/* Override any GCC internal prototype to avoid an error.
12110
 
   Use char because int might match the return type of a GCC
12111
 
   builtin and then its argument prototype would still apply.  */
12112
 
#ifdef __cplusplus
12113
 
extern "C"
12114
 
#endif
12115
 
char $ac_func ();
12116
 
/* The GNU C library defines this for functions which it implements
12117
 
    to always fail with ENOSYS.  Some functions are actually named
12118
 
    something starting with __ and the normal name is an alias.  */
12119
 
#if defined __stub_$ac_func || defined __stub___$ac_func
12120
 
choke me
12121
 
#endif
12122
 
 
12123
 
int
12124
 
main ()
12125
 
{
12126
 
return $ac_func ();
12127
 
  ;
12128
 
  return 0;
12129
 
}
12130
 
_ACEOF
12131
 
rm -f conftest.$ac_objext conftest$ac_exeext
12132
 
if { (ac_try="$ac_link"
12133
 
case "(($ac_try" in
12134
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135
 
  *) ac_try_echo=$ac_try;;
12136
 
esac
12137
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138
 
  (eval "$ac_link") 2>conftest.er1
12139
 
  ac_status=$?
12140
 
  grep -v '^ *+' conftest.er1 >conftest.err
12141
 
  rm -f conftest.er1
12142
 
  cat conftest.err >&5
12143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144
 
  (exit $ac_status); } && {
12145
 
         test -z "$ac_c_werror_flag" ||
12146
 
         test ! -s conftest.err
12147
 
       } && test -s conftest$ac_exeext &&
12148
 
       $as_test_x conftest$ac_exeext; then
12149
 
  eval "$as_ac_var=yes"
12150
 
else
12151
 
  echo "$as_me: failed program was:" >&5
12152
 
sed 's/^/| /' conftest.$ac_ext >&5
12153
 
 
12154
 
        eval "$as_ac_var=no"
12155
 
fi
12156
 
 
12157
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12158
 
      conftest$ac_exeext conftest.$ac_ext
12159
 
fi
12160
 
ac_res=`eval echo '${'$as_ac_var'}'`
12161
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12162
 
echo "${ECHO_T}$ac_res" >&6; }
12163
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
12164
 
  cat >>confdefs.h <<_ACEOF
12165
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12166
 
_ACEOF
12167
 
 
12168
 
fi
12169
 
done
12170
 
 
12171
 
 
12172
 
else
12173
 
  { { echo "$as_me:$LINENO: error: OpenSSL crypto Library is too old." >&5
12174
 
echo "$as_me: error: OpenSSL crypto Library is too old." >&2;}
12175
 
   { (exit 1); exit 1; }; }
 
7240
  $EGREP "yes" >/dev/null 2>&1; then :
 
7241
 
 
7242
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7243
$as_echo "yes" >&6; }
 
7244
 
 
7245
$as_echo "#define USE_CRYPTO 1" >>confdefs.h
 
7246
 
 
7247
       for ac_func in EVP_CIPHER_CTX_set_key_length
 
7248
do :
 
7249
  ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
 
7250
if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = x""yes; then :
 
7251
  cat >>confdefs.h <<_ACEOF
 
7252
#define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
 
7253
_ACEOF
 
7254
 
 
7255
fi
 
7256
done
 
7257
 
 
7258
 
 
7259
              for ac_header in openssl/engine.h
 
7260
do :
 
7261
  ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
 
7262
if test "x$ac_cv_header_openssl_engine_h" = x""yes; then :
 
7263
  cat >>confdefs.h <<_ACEOF
 
7264
#define HAVE_OPENSSL_ENGINE_H 1
 
7265
_ACEOF
 
7266
 
 
7267
fi
 
7268
 
 
7269
done
 
7270
 
 
7271
       for ac_func in ENGINE_load_builtin_engines
 
7272
do :
 
7273
  ac_fn_c_check_func "$LINENO" "ENGINE_load_builtin_engines" "ac_cv_func_ENGINE_load_builtin_engines"
 
7274
if test "x$ac_cv_func_ENGINE_load_builtin_engines" = x""yes; then :
 
7275
  cat >>confdefs.h <<_ACEOF
 
7276
#define HAVE_ENGINE_LOAD_BUILTIN_ENGINES 1
 
7277
_ACEOF
 
7278
 
 
7279
fi
 
7280
done
 
7281
 
 
7282
       for ac_func in ENGINE_register_all_complete
 
7283
do :
 
7284
  ac_fn_c_check_func "$LINENO" "ENGINE_register_all_complete" "ac_cv_func_ENGINE_register_all_complete"
 
7285
if test "x$ac_cv_func_ENGINE_register_all_complete" = x""yes; then :
 
7286
  cat >>confdefs.h <<_ACEOF
 
7287
#define HAVE_ENGINE_REGISTER_ALL_COMPLETE 1
 
7288
_ACEOF
 
7289
 
 
7290
fi
 
7291
done
 
7292
 
 
7293
       for ac_func in ENGINE_cleanup
 
7294
do :
 
7295
  ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup"
 
7296
if test "x$ac_cv_func_ENGINE_cleanup" = x""yes; then :
 
7297
  cat >>confdefs.h <<_ACEOF
 
7298
#define HAVE_ENGINE_CLEANUP 1
 
7299
_ACEOF
 
7300
 
 
7301
fi
 
7302
done
 
7303
 
 
7304
 
 
7305
else
 
7306
  as_fn_error $? "OpenSSL crypto Library is too old." "$LINENO" 5
12176
7307
 
12177
7308
fi
12178
7309
rm -f conftest*
12180
7311
 
12181
7312
 
12182
7313
   if test "$SSL" = "yes"; then
12183
 
      { echo "$as_me:$LINENO: checking for OpenSSL SSL Library and Header files..." >&5
12184
 
echo "$as_me: checking for OpenSSL SSL Library and Header files..." >&6;}
12185
 
      if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12186
 
  { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12187
 
echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12188
 
if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12189
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12190
 
fi
12191
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12192
 
echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12193
 
else
12194
 
  # Is the header compilable?
12195
 
{ echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12196
 
echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
12197
 
cat >conftest.$ac_ext <<_ACEOF
12198
 
/* confdefs.h.  */
12199
 
_ACEOF
12200
 
cat confdefs.h >>conftest.$ac_ext
12201
 
cat >>conftest.$ac_ext <<_ACEOF
12202
 
/* end confdefs.h.  */
12203
 
$ac_includes_default
12204
 
#include <openssl/ssl.h>
12205
 
_ACEOF
12206
 
rm -f conftest.$ac_objext
12207
 
if { (ac_try="$ac_compile"
12208
 
case "(($ac_try" in
12209
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210
 
  *) ac_try_echo=$ac_try;;
12211
 
esac
12212
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213
 
  (eval "$ac_compile") 2>conftest.er1
12214
 
  ac_status=$?
12215
 
  grep -v '^ *+' conftest.er1 >conftest.err
12216
 
  rm -f conftest.er1
12217
 
  cat conftest.err >&5
12218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219
 
  (exit $ac_status); } && {
12220
 
         test -z "$ac_c_werror_flag" ||
12221
 
         test ! -s conftest.err
12222
 
       } && test -s conftest.$ac_objext; then
12223
 
  ac_header_compiler=yes
12224
 
else
12225
 
  echo "$as_me: failed program was:" >&5
12226
 
sed 's/^/| /' conftest.$ac_ext >&5
12227
 
 
12228
 
        ac_header_compiler=no
12229
 
fi
12230
 
 
12231
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12233
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
12234
 
 
12235
 
# Is the header present?
12236
 
{ echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12237
 
echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
12238
 
cat >conftest.$ac_ext <<_ACEOF
12239
 
/* confdefs.h.  */
12240
 
_ACEOF
12241
 
cat confdefs.h >>conftest.$ac_ext
12242
 
cat >>conftest.$ac_ext <<_ACEOF
12243
 
/* end confdefs.h.  */
12244
 
#include <openssl/ssl.h>
12245
 
_ACEOF
12246
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
12247
 
case "(($ac_try" in
12248
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249
 
  *) ac_try_echo=$ac_try;;
12250
 
esac
12251
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12252
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12253
 
  ac_status=$?
12254
 
  grep -v '^ *+' conftest.er1 >conftest.err
12255
 
  rm -f conftest.er1
12256
 
  cat conftest.err >&5
12257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258
 
  (exit $ac_status); } >/dev/null && {
12259
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12260
 
         test ! -s conftest.err
12261
 
       }; then
12262
 
  ac_header_preproc=yes
12263
 
else
12264
 
  echo "$as_me: failed program was:" >&5
12265
 
sed 's/^/| /' conftest.$ac_ext >&5
12266
 
 
12267
 
  ac_header_preproc=no
12268
 
fi
12269
 
 
12270
 
rm -f conftest.err conftest.$ac_ext
12271
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12272
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
12273
 
 
12274
 
# So?  What about this header?
12275
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12276
 
  yes:no: )
12277
 
    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12278
 
echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12279
 
    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12280
 
echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12281
 
    ac_header_preproc=yes
12282
 
    ;;
12283
 
  no:yes:* )
12284
 
    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12285
 
echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12286
 
    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12287
 
echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12288
 
    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12289
 
echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12290
 
    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12291
 
echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12292
 
    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12293
 
echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12294
 
    { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12295
 
echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12296
 
    ( cat <<\_ASBOX
12297
 
## -------------------------------------------------- ##
12298
 
## Report this to openvpn-users@lists.sourceforge.net ##
12299
 
## -------------------------------------------------- ##
12300
 
_ASBOX
12301
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12302
 
    ;;
12303
 
esac
12304
 
{ echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12305
 
echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12306
 
if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12307
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12308
 
else
12309
 
  ac_cv_header_openssl_ssl_h=$ac_header_preproc
12310
 
fi
12311
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12312
 
echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12313
 
 
12314
 
fi
12315
 
if test $ac_cv_header_openssl_ssl_h = yes; then
12316
 
  :
12317
 
else
12318
 
  { { echo "$as_me:$LINENO: error: OpenSSL SSL headers not found." >&5
12319
 
echo "$as_me: error: OpenSSL SSL headers not found." >&2;}
12320
 
   { (exit 1); exit 1; }; }
 
7314
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL SSL Library and Header files..." >&5
 
7315
$as_echo "$as_me: checking for OpenSSL SSL Library and Header files..." >&6;}
 
7316
      ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
 
7317
if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
 
7318
 
 
7319
else
 
7320
  as_fn_error $? "OpenSSL SSL headers not found." "$LINENO" 5
12321
7321
 
12322
7322
fi
12323
7323
 
12324
7324
 
12325
7325
 
12326
7326
      for lib in ssl ssl32; do
12327
 
          as_ac_Lib=`echo "ac_cv_lib_$lib''_SSL_CTX_new" | $as_tr_sh`
12328
 
{ echo "$as_me:$LINENO: checking for SSL_CTX_new in -l$lib" >&5
12329
 
echo $ECHO_N "checking for SSL_CTX_new in -l$lib... $ECHO_C" >&6; }
12330
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12331
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7327
          as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_SSL_CTX_new" | $as_tr_sh`
 
7328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -l$lib" >&5
 
7329
$as_echo_n "checking for SSL_CTX_new in -l$lib... " >&6; }
 
7330
if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
 
7331
  $as_echo_n "(cached) " >&6
12332
7332
else
12333
7333
  ac_check_lib_save_LIBS=$LIBS
12334
7334
LIBS="-l$lib  $LIBS"
12335
 
cat >conftest.$ac_ext <<_ACEOF
12336
 
/* confdefs.h.  */
12337
 
_ACEOF
12338
 
cat confdefs.h >>conftest.$ac_ext
12339
 
cat >>conftest.$ac_ext <<_ACEOF
 
7335
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340
7336
/* end confdefs.h.  */
12341
7337
 
12342
7338
/* Override any GCC internal prototype to avoid an error.
12354
7350
  return 0;
12355
7351
}
12356
7352
_ACEOF
12357
 
rm -f conftest.$ac_objext conftest$ac_exeext
12358
 
if { (ac_try="$ac_link"
12359
 
case "(($ac_try" in
12360
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361
 
  *) ac_try_echo=$ac_try;;
12362
 
esac
12363
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364
 
  (eval "$ac_link") 2>conftest.er1
12365
 
  ac_status=$?
12366
 
  grep -v '^ *+' conftest.er1 >conftest.err
12367
 
  rm -f conftest.er1
12368
 
  cat conftest.err >&5
12369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370
 
  (exit $ac_status); } && {
12371
 
         test -z "$ac_c_werror_flag" ||
12372
 
         test ! -s conftest.err
12373
 
       } && test -s conftest$ac_exeext &&
12374
 
       $as_test_x conftest$ac_exeext; then
 
7353
if ac_fn_c_try_link "$LINENO"; then :
12375
7354
  eval "$as_ac_Lib=yes"
12376
7355
else
12377
 
  echo "$as_me: failed program was:" >&5
12378
 
sed 's/^/| /' conftest.$ac_ext >&5
12379
 
 
12380
 
        eval "$as_ac_Lib=no"
 
7356
  eval "$as_ac_Lib=no"
12381
7357
fi
12382
 
 
12383
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12384
 
      conftest$ac_exeext conftest.$ac_ext
 
7358
rm -f core conftest.err conftest.$ac_objext \
 
7359
    conftest$ac_exeext conftest.$ac_ext
12385
7360
LIBS=$ac_check_lib_save_LIBS
12386
7361
fi
12387
 
ac_res=`eval echo '${'$as_ac_Lib'}'`
12388
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
12389
 
echo "${ECHO_T}$ac_res" >&6; }
12390
 
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
7362
eval ac_res=\$$as_ac_Lib
 
7363
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
7364
$as_echo "$ac_res" >&6; }
 
7365
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12391
7366
 
12392
7367
                        sslfound=1
12393
7368
 
12399
7374
 
12400
7375
      done
12401
7376
 
12402
 
      test -n "${sslfound}" || { { echo "$as_me:$LINENO: error: OpenSSL SSL library not found." >&5
12403
 
echo "$as_me: error: OpenSSL SSL library not found." >&2;}
12404
 
   { (exit 1); exit 1; }; }
 
7377
      test -n "${sslfound}" || as_fn_error $? "OpenSSL SSL library not found." "$LINENO" 5
12405
7378
 
12406
7379
      if test "$MEMCHECK" = "ssl"; then
12407
 
             { echo "$as_me:$LINENO: checking for Memory Debugging Capabilities in OpenSSL Library..." >&5
12408
 
echo "$as_me: checking for Memory Debugging Capabilities in OpenSSL Library..." >&6;}
12409
 
             { echo "$as_me:$LINENO: checking for CRYPTO_mem_ctrl in -lssl" >&5
12410
 
echo $ECHO_N "checking for CRYPTO_mem_ctrl in -lssl... $ECHO_C" >&6; }
12411
 
if test "${ac_cv_lib_ssl_CRYPTO_mem_ctrl+set}" = set; then
12412
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7380
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Memory Debugging Capabilities in OpenSSL Library..." >&5
 
7381
$as_echo "$as_me: checking for Memory Debugging Capabilities in OpenSSL Library..." >&6;}
 
7382
             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
 
7383
$as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
 
7384
if test "${ac_cv_lib_ssl_CRYPTO_mem_ctrl+set}" = set; then :
 
7385
  $as_echo_n "(cached) " >&6
12413
7386
else
12414
7387
  ac_check_lib_save_LIBS=$LIBS
12415
7388
LIBS="-lssl  $LIBS"
12416
 
cat >conftest.$ac_ext <<_ACEOF
12417
 
/* confdefs.h.  */
12418
 
_ACEOF
12419
 
cat confdefs.h >>conftest.$ac_ext
12420
 
cat >>conftest.$ac_ext <<_ACEOF
 
7389
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421
7390
/* end confdefs.h.  */
12422
7391
 
12423
7392
/* Override any GCC internal prototype to avoid an error.
12435
7404
  return 0;
12436
7405
}
12437
7406
_ACEOF
12438
 
rm -f conftest.$ac_objext conftest$ac_exeext
12439
 
if { (ac_try="$ac_link"
12440
 
case "(($ac_try" in
12441
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442
 
  *) ac_try_echo=$ac_try;;
12443
 
esac
12444
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445
 
  (eval "$ac_link") 2>conftest.er1
12446
 
  ac_status=$?
12447
 
  grep -v '^ *+' conftest.er1 >conftest.err
12448
 
  rm -f conftest.er1
12449
 
  cat conftest.err >&5
12450
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451
 
  (exit $ac_status); } && {
12452
 
         test -z "$ac_c_werror_flag" ||
12453
 
         test ! -s conftest.err
12454
 
       } && test -s conftest$ac_exeext &&
12455
 
       $as_test_x conftest$ac_exeext; then
 
7407
if ac_fn_c_try_link "$LINENO"; then :
12456
7408
  ac_cv_lib_ssl_CRYPTO_mem_ctrl=yes
12457
7409
else
12458
 
  echo "$as_me: failed program was:" >&5
12459
 
sed 's/^/| /' conftest.$ac_ext >&5
12460
 
 
12461
 
        ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
 
7410
  ac_cv_lib_ssl_CRYPTO_mem_ctrl=no
12462
7411
fi
12463
 
 
12464
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12465
 
      conftest$ac_exeext conftest.$ac_ext
 
7412
rm -f core conftest.err conftest.$ac_objext \
 
7413
    conftest$ac_exeext conftest.$ac_ext
12466
7414
LIBS=$ac_check_lib_save_LIBS
12467
7415
fi
12468
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
12469
 
echo "${ECHO_T}$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
12470
 
if test $ac_cv_lib_ssl_CRYPTO_mem_ctrl = yes; then
12471
 
 
12472
 
 
12473
 
cat >>confdefs.h <<\_ACEOF
12474
 
#define CRYPTO_MDEBUG 1
12475
 
_ACEOF
12476
 
 
12477
 
                     { echo "$as_me:$LINENO: result: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
12478
 
echo "${ECHO_T}NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6; }
 
7416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
 
7417
$as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
 
7418
if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = x""yes; then :
 
7419
 
 
7420
 
 
7421
$as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
 
7422
 
 
7423
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
 
7424
$as_echo "NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6; }
12479
7425
 
12480
7426
else
12481
 
  { { echo "$as_me:$LINENO: error: Memory Debugging function in OpenSSL library not found." >&5
12482
 
echo "$as_me: error: Memory Debugging function in OpenSSL library not found." >&2;}
12483
 
   { (exit 1); exit 1; }; }
 
7427
  as_fn_error $? "Memory Debugging function in OpenSSL library not found." "$LINENO" 5
12484
7428
 
12485
7429
fi
12486
7430
 
12487
7431
      fi
12488
7432
 
12489
7433
 
12490
 
cat >>confdefs.h <<\_ACEOF
12491
 
#define USE_SSL 1
12492
 
_ACEOF
 
7434
$as_echo "#define USE_SSL 1" >>confdefs.h
12493
7435
 
12494
7436
   fi
12495
7437
fi
12496
7438
 
 
7439
if test "$X509ALTUSERNAME" = "yes"; then
 
7440
 
 
7441
$as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
 
7442
 
 
7443
fi
 
7444
 
12497
7445
if test "$PKCS11" = "yes"; then
12498
 
   { echo "$as_me:$LINENO: checking for pkcs11-helper Library and Header files..." >&5
12499
 
echo "$as_me: checking for pkcs11-helper Library and Header files..." >&6;}
12500
 
   if test "${ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h+set}" = set; then
12501
 
  { echo "$as_me:$LINENO: checking for pkcs11-helper-1.0/pkcs11h-core.h" >&5
12502
 
echo $ECHO_N "checking for pkcs11-helper-1.0/pkcs11h-core.h... $ECHO_C" >&6; }
12503
 
if test "${ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h+set}" = set; then
12504
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12505
 
fi
12506
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&5
12507
 
echo "${ECHO_T}$ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&6; }
12508
 
else
12509
 
  # Is the header compilable?
12510
 
{ echo "$as_me:$LINENO: checking pkcs11-helper-1.0/pkcs11h-core.h usability" >&5
12511
 
echo $ECHO_N "checking pkcs11-helper-1.0/pkcs11h-core.h usability... $ECHO_C" >&6; }
12512
 
cat >conftest.$ac_ext <<_ACEOF
12513
 
/* confdefs.h.  */
12514
 
_ACEOF
12515
 
cat confdefs.h >>conftest.$ac_ext
12516
 
cat >>conftest.$ac_ext <<_ACEOF
12517
 
/* end confdefs.h.  */
12518
 
$ac_includes_default
12519
 
#include <pkcs11-helper-1.0/pkcs11h-core.h>
12520
 
_ACEOF
12521
 
rm -f conftest.$ac_objext
12522
 
if { (ac_try="$ac_compile"
12523
 
case "(($ac_try" in
12524
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525
 
  *) ac_try_echo=$ac_try;;
12526
 
esac
12527
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528
 
  (eval "$ac_compile") 2>conftest.er1
12529
 
  ac_status=$?
12530
 
  grep -v '^ *+' conftest.er1 >conftest.err
12531
 
  rm -f conftest.er1
12532
 
  cat conftest.err >&5
12533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534
 
  (exit $ac_status); } && {
12535
 
         test -z "$ac_c_werror_flag" ||
12536
 
         test ! -s conftest.err
12537
 
       } && test -s conftest.$ac_objext; then
12538
 
  ac_header_compiler=yes
12539
 
else
12540
 
  echo "$as_me: failed program was:" >&5
12541
 
sed 's/^/| /' conftest.$ac_ext >&5
12542
 
 
12543
 
        ac_header_compiler=no
12544
 
fi
12545
 
 
12546
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12547
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12548
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
12549
 
 
12550
 
# Is the header present?
12551
 
{ echo "$as_me:$LINENO: checking pkcs11-helper-1.0/pkcs11h-core.h presence" >&5
12552
 
echo $ECHO_N "checking pkcs11-helper-1.0/pkcs11h-core.h presence... $ECHO_C" >&6; }
12553
 
cat >conftest.$ac_ext <<_ACEOF
12554
 
/* confdefs.h.  */
12555
 
_ACEOF
12556
 
cat confdefs.h >>conftest.$ac_ext
12557
 
cat >>conftest.$ac_ext <<_ACEOF
12558
 
/* end confdefs.h.  */
12559
 
#include <pkcs11-helper-1.0/pkcs11h-core.h>
12560
 
_ACEOF
12561
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
12562
 
case "(($ac_try" in
12563
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564
 
  *) ac_try_echo=$ac_try;;
12565
 
esac
12566
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12568
 
  ac_status=$?
12569
 
  grep -v '^ *+' conftest.er1 >conftest.err
12570
 
  rm -f conftest.er1
12571
 
  cat conftest.err >&5
12572
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573
 
  (exit $ac_status); } >/dev/null && {
12574
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12575
 
         test ! -s conftest.err
12576
 
       }; then
12577
 
  ac_header_preproc=yes
12578
 
else
12579
 
  echo "$as_me: failed program was:" >&5
12580
 
sed 's/^/| /' conftest.$ac_ext >&5
12581
 
 
12582
 
  ac_header_preproc=no
12583
 
fi
12584
 
 
12585
 
rm -f conftest.err conftest.$ac_ext
12586
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
12588
 
 
12589
 
# So?  What about this header?
12590
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12591
 
  yes:no: )
12592
 
    { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: accepted by the compiler, rejected by the preprocessor!" >&5
12593
 
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594
 
    { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the compiler's result" >&5
12595
 
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the compiler's result" >&2;}
12596
 
    ac_header_preproc=yes
12597
 
    ;;
12598
 
  no:yes:* )
12599
 
    { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: present but cannot be compiled" >&5
12600
 
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: present but cannot be compiled" >&2;}
12601
 
    { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h:     check for missing prerequisite headers?" >&5
12602
 
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h:     check for missing prerequisite headers?" >&2;}
12603
 
    { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: see the Autoconf documentation" >&5
12604
 
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: see the Autoconf documentation" >&2;}
12605
 
    { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h:     section \"Present But Cannot Be Compiled\"" >&5
12606
 
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12607
 
    { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the preprocessor's result" >&5
12608
 
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: proceeding with the preprocessor's result" >&2;}
12609
 
    { echo "$as_me:$LINENO: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: in the future, the compiler will take precedence" >&5
12610
 
echo "$as_me: WARNING: pkcs11-helper-1.0/pkcs11h-core.h: in the future, the compiler will take precedence" >&2;}
12611
 
    ( cat <<\_ASBOX
12612
 
## -------------------------------------------------- ##
12613
 
## Report this to openvpn-users@lists.sourceforge.net ##
12614
 
## -------------------------------------------------- ##
12615
 
_ASBOX
12616
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12617
 
    ;;
12618
 
esac
12619
 
{ echo "$as_me:$LINENO: checking for pkcs11-helper-1.0/pkcs11h-core.h" >&5
12620
 
echo $ECHO_N "checking for pkcs11-helper-1.0/pkcs11h-core.h... $ECHO_C" >&6; }
12621
 
if test "${ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h+set}" = set; then
12622
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12623
 
else
12624
 
  ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h=$ac_header_preproc
12625
 
fi
12626
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&5
12627
 
echo "${ECHO_T}$ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" >&6; }
12628
 
 
12629
 
fi
12630
 
if test $ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h = yes; then
12631
 
  { echo "$as_me:$LINENO: checking for pkcs11h_initialize in -lpkcs11-helper" >&5
12632
 
echo $ECHO_N "checking for pkcs11h_initialize in -lpkcs11-helper... $ECHO_C" >&6; }
12633
 
if test "${ac_cv_lib_pkcs11_helper_pkcs11h_initialize+set}" = set; then
12634
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7446
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pkcs11-helper Library and Header files..." >&5
 
7447
$as_echo "$as_me: checking for pkcs11-helper Library and Header files..." >&6;}
 
7448
   ac_fn_c_check_header_mongrel "$LINENO" "pkcs11-helper-1.0/pkcs11h-core.h" "ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" "$ac_includes_default"
 
7449
if test "x$ac_cv_header_pkcs11_helper_1_0_pkcs11h_core_h" = x""yes; then :
 
7450
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pkcs11h_initialize in -lpkcs11-helper" >&5
 
7451
$as_echo_n "checking for pkcs11h_initialize in -lpkcs11-helper... " >&6; }
 
7452
if test "${ac_cv_lib_pkcs11_helper_pkcs11h_initialize+set}" = set; then :
 
7453
  $as_echo_n "(cached) " >&6
12635
7454
else
12636
7455
  ac_check_lib_save_LIBS=$LIBS
12637
7456
LIBS="-lpkcs11-helper  $LIBS"
12638
 
cat >conftest.$ac_ext <<_ACEOF
12639
 
/* confdefs.h.  */
12640
 
_ACEOF
12641
 
cat confdefs.h >>conftest.$ac_ext
12642
 
cat >>conftest.$ac_ext <<_ACEOF
 
7457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643
7458
/* end confdefs.h.  */
12644
7459
 
12645
7460
/* Override any GCC internal prototype to avoid an error.
12657
7472
  return 0;
12658
7473
}
12659
7474
_ACEOF
12660
 
rm -f conftest.$ac_objext conftest$ac_exeext
12661
 
if { (ac_try="$ac_link"
12662
 
case "(($ac_try" in
12663
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664
 
  *) ac_try_echo=$ac_try;;
12665
 
esac
12666
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667
 
  (eval "$ac_link") 2>conftest.er1
12668
 
  ac_status=$?
12669
 
  grep -v '^ *+' conftest.er1 >conftest.err
12670
 
  rm -f conftest.er1
12671
 
  cat conftest.err >&5
12672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673
 
  (exit $ac_status); } && {
12674
 
         test -z "$ac_c_werror_flag" ||
12675
 
         test ! -s conftest.err
12676
 
       } && test -s conftest$ac_exeext &&
12677
 
       $as_test_x conftest$ac_exeext; then
 
7475
if ac_fn_c_try_link "$LINENO"; then :
12678
7476
  ac_cv_lib_pkcs11_helper_pkcs11h_initialize=yes
12679
7477
else
12680
 
  echo "$as_me: failed program was:" >&5
12681
 
sed 's/^/| /' conftest.$ac_ext >&5
12682
 
 
12683
 
        ac_cv_lib_pkcs11_helper_pkcs11h_initialize=no
 
7478
  ac_cv_lib_pkcs11_helper_pkcs11h_initialize=no
12684
7479
fi
12685
 
 
12686
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12687
 
      conftest$ac_exeext conftest.$ac_ext
 
7480
rm -f core conftest.err conftest.$ac_objext \
 
7481
    conftest$ac_exeext conftest.$ac_ext
12688
7482
LIBS=$ac_check_lib_save_LIBS
12689
7483
fi
12690
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pkcs11_helper_pkcs11h_initialize" >&5
12691
 
echo "${ECHO_T}$ac_cv_lib_pkcs11_helper_pkcs11h_initialize" >&6; }
12692
 
if test $ac_cv_lib_pkcs11_helper_pkcs11h_initialize = yes; then
12693
 
 
12694
 
 
12695
 
cat >>confdefs.h <<\_ACEOF
12696
 
#define USE_PKCS11 1
12697
 
_ACEOF
 
7484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pkcs11_helper_pkcs11h_initialize" >&5
 
7485
$as_echo "$ac_cv_lib_pkcs11_helper_pkcs11h_initialize" >&6; }
 
7486
if test "x$ac_cv_lib_pkcs11_helper_pkcs11h_initialize" = x""yes; then :
 
7487
 
 
7488
 
 
7489
$as_echo "#define USE_PKCS11 1" >>confdefs.h
12698
7490
 
12699
7491
 
12700
7492
  LIBS="-lpkcs11-helper $LIBS"
12701
7493
 
12702
7494
 
12703
7495
else
12704
 
  { echo "$as_me:$LINENO: result: pkcs11-helper library not found." >&5
12705
 
echo "${ECHO_T}pkcs11-helper library not found." >&6; }
 
7496
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkcs11-helper library not found." >&5
 
7497
$as_echo "pkcs11-helper library not found." >&6; }
12706
7498
 
12707
7499
fi
12708
7500
 
12709
7501
else
12710
 
  { echo "$as_me:$LINENO: result: pkcs11-helper headers not found." >&5
12711
 
echo "${ECHO_T}pkcs11-helper headers not found." >&6; }
 
7502
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkcs11-helper headers not found." >&5
 
7503
$as_echo "pkcs11-helper headers not found." >&6; }
12712
7504
 
12713
7505
fi
12714
7506
 
12717
7509
 
12718
7510
if test "$MULTI" = "yes"; then
12719
7511
 
12720
 
cat >>confdefs.h <<\_ACEOF
12721
 
#define ENABLE_CLIENT_SERVER 1
12722
 
_ACEOF
 
7512
$as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
12723
7513
 
12724
7514
fi
12725
7515
 
12726
7516
if test "$MULTI_SERVER" = "no"; then
12727
7517
 
12728
 
cat >>confdefs.h <<\_ACEOF
12729
 
#define ENABLE_CLIENT_ONLY 1
12730
 
_ACEOF
 
7518
$as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
12731
7519
 
12732
7520
fi
12733
7521
 
12734
7522
if test "$MANAGEMENT" = "yes"; then
12735
7523
 
12736
 
cat >>confdefs.h <<\_ACEOF
12737
 
#define ENABLE_MANAGEMENT 1
12738
 
_ACEOF
 
7524
$as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
12739
7525
 
12740
7526
fi
12741
7527
 
12742
7528
if test "$SOCKS" = "yes"; then
12743
7529
 
12744
 
cat >>confdefs.h <<\_ACEOF
12745
 
#define ENABLE_SOCKS 1
12746
 
_ACEOF
 
7530
$as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
12747
7531
 
12748
7532
fi
12749
7533
 
12750
7534
if test "$HTTP_PROXY" = "yes"; then
12751
7535
 
12752
 
cat >>confdefs.h <<\_ACEOF
12753
 
#define ENABLE_HTTP_PROXY 1
12754
 
_ACEOF
 
7536
$as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
12755
7537
 
12756
7538
fi
12757
7539
 
12758
7540
if test "$MULTIHOME" = "yes"; then
12759
7541
 
12760
 
cat >>confdefs.h <<\_ACEOF
12761
 
#define ENABLE_MULTIHOME 1
12762
 
_ACEOF
 
7542
$as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
12763
7543
 
12764
7544
fi
12765
7545
 
12766
7546
if test "$DEBUG" = "yes"; then
12767
7547
 
12768
 
cat >>confdefs.h <<\_ACEOF
12769
 
#define ENABLE_DEBUG 1
12770
 
_ACEOF
 
7548
$as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
12771
7549
 
12772
7550
fi
12773
7551
 
12774
7552
if test "$SMALL" = "yes"; then
12775
7553
 
12776
 
cat >>confdefs.h <<\_ACEOF
12777
 
#define ENABLE_SMALL 1
12778
 
_ACEOF
 
7554
$as_echo "#define ENABLE_SMALL 1" >>confdefs.h
12779
7555
 
12780
7556
fi
12781
7557
 
12782
7558
if test "$FRAGMENT" = "yes"; then
12783
7559
 
12784
 
cat >>confdefs.h <<\_ACEOF
12785
 
#define ENABLE_FRAGMENT 1
12786
 
_ACEOF
 
7560
$as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
12787
7561
 
12788
7562
fi
12789
7563
 
12790
7564
if test "$PORT_SHARE" = "yes"; then
12791
7565
 
12792
 
cat >>confdefs.h <<\_ACEOF
12793
 
#define ENABLE_PORT_SHARE 1
12794
 
_ACEOF
 
7566
$as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
12795
7567
 
12796
7568
fi
12797
7569
 
12798
7570
if test "$DEF_AUTH" = "yes"; then
12799
7571
 
12800
 
cat >>confdefs.h <<\_ACEOF
12801
 
#define CONFIGURE_DEF_AUTH 1
12802
 
_ACEOF
 
7572
$as_echo "#define CONFIGURE_DEF_AUTH 1" >>confdefs.h
12803
7573
 
12804
7574
fi
12805
7575
 
12806
7576
if test "$PF" = "yes"; then
12807
7577
 
12808
 
cat >>confdefs.h <<\_ACEOF
12809
 
#define CONFIGURE_PF 1
12810
 
_ACEOF
 
7578
$as_echo "#define CONFIGURE_PF 1" >>confdefs.h
12811
7579
 
12812
7580
fi
12813
7581
 
12825
7593
 
12826
7594
if test "$STRICT_OPTIONS" = "yes"; then
12827
7595
 
12828
 
cat >>confdefs.h <<\_ACEOF
12829
 
#define STRICT_OPTIONS_CHECK 1
12830
 
_ACEOF
 
7596
$as_echo "#define STRICT_OPTIONS_CHECK 1" >>confdefs.h
12831
7597
 
12832
7598
fi
12833
7599
 
12834
7600
if test "$PASSWORD_SAVE" = "yes"; then
12835
7601
 
12836
 
cat >>confdefs.h <<\_ACEOF
12837
 
#define ENABLE_PASSWORD_SAVE 1
12838
 
_ACEOF
 
7602
$as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
12839
7603
 
12840
7604
fi
12841
7605
 
12842
7606
if test "$SELINUX" = "yes"; then
12843
 
   { echo "$as_me:$LINENO: checking for libselinux Library and Header files..." >&5
12844
 
echo "$as_me: checking for libselinux Library and Header files..." >&6;}
12845
 
   if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
12846
 
  { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
12847
 
echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
12848
 
if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
12849
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12850
 
fi
12851
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
12852
 
echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
12853
 
else
12854
 
  # Is the header compilable?
12855
 
{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
12856
 
echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
12857
 
cat >conftest.$ac_ext <<_ACEOF
12858
 
/* confdefs.h.  */
12859
 
_ACEOF
12860
 
cat confdefs.h >>conftest.$ac_ext
12861
 
cat >>conftest.$ac_ext <<_ACEOF
12862
 
/* end confdefs.h.  */
12863
 
$ac_includes_default
12864
 
#include <selinux/selinux.h>
12865
 
_ACEOF
12866
 
rm -f conftest.$ac_objext
12867
 
if { (ac_try="$ac_compile"
12868
 
case "(($ac_try" in
12869
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870
 
  *) ac_try_echo=$ac_try;;
12871
 
esac
12872
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873
 
  (eval "$ac_compile") 2>conftest.er1
12874
 
  ac_status=$?
12875
 
  grep -v '^ *+' conftest.er1 >conftest.err
12876
 
  rm -f conftest.er1
12877
 
  cat conftest.err >&5
12878
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879
 
  (exit $ac_status); } && {
12880
 
         test -z "$ac_c_werror_flag" ||
12881
 
         test ! -s conftest.err
12882
 
       } && test -s conftest.$ac_objext; then
12883
 
  ac_header_compiler=yes
12884
 
else
12885
 
  echo "$as_me: failed program was:" >&5
12886
 
sed 's/^/| /' conftest.$ac_ext >&5
12887
 
 
12888
 
        ac_header_compiler=no
12889
 
fi
12890
 
 
12891
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12893
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
12894
 
 
12895
 
# Is the header present?
12896
 
{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
12897
 
echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
12898
 
cat >conftest.$ac_ext <<_ACEOF
12899
 
/* confdefs.h.  */
12900
 
_ACEOF
12901
 
cat confdefs.h >>conftest.$ac_ext
12902
 
cat >>conftest.$ac_ext <<_ACEOF
12903
 
/* end confdefs.h.  */
12904
 
#include <selinux/selinux.h>
12905
 
_ACEOF
12906
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
12907
 
case "(($ac_try" in
12908
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909
 
  *) ac_try_echo=$ac_try;;
12910
 
esac
12911
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12913
 
  ac_status=$?
12914
 
  grep -v '^ *+' conftest.er1 >conftest.err
12915
 
  rm -f conftest.er1
12916
 
  cat conftest.err >&5
12917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918
 
  (exit $ac_status); } >/dev/null && {
12919
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12920
 
         test ! -s conftest.err
12921
 
       }; then
12922
 
  ac_header_preproc=yes
12923
 
else
12924
 
  echo "$as_me: failed program was:" >&5
12925
 
sed 's/^/| /' conftest.$ac_ext >&5
12926
 
 
12927
 
  ac_header_preproc=no
12928
 
fi
12929
 
 
12930
 
rm -f conftest.err conftest.$ac_ext
12931
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12932
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
12933
 
 
12934
 
# So?  What about this header?
12935
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12936
 
  yes:no: )
12937
 
    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
12938
 
echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12939
 
    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
12940
 
echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
12941
 
    ac_header_preproc=yes
12942
 
    ;;
12943
 
  no:yes:* )
12944
 
    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
12945
 
echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
12946
 
    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
12947
 
echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
12948
 
    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
12949
 
echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
12950
 
    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
12951
 
echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12952
 
    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
12953
 
echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
12954
 
    { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
12955
 
echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
12956
 
    ( cat <<\_ASBOX
12957
 
## -------------------------------------------------- ##
12958
 
## Report this to openvpn-users@lists.sourceforge.net ##
12959
 
## -------------------------------------------------- ##
12960
 
_ASBOX
12961
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12962
 
    ;;
12963
 
esac
12964
 
{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
12965
 
echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
12966
 
if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
12967
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12968
 
else
12969
 
  ac_cv_header_selinux_selinux_h=$ac_header_preproc
12970
 
fi
12971
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
12972
 
echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
12973
 
 
12974
 
fi
12975
 
if test $ac_cv_header_selinux_selinux_h = yes; then
12976
 
  { echo "$as_me:$LINENO: checking for setcon in -lselinux" >&5
12977
 
echo $ECHO_N "checking for setcon in -lselinux... $ECHO_C" >&6; }
12978
 
if test "${ac_cv_lib_selinux_setcon+set}" = set; then
12979
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7607
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libselinux Library and Header files..." >&5
 
7608
$as_echo "$as_me: checking for libselinux Library and Header files..." >&6;}
 
7609
   ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
 
7610
if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
 
7611
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
 
7612
$as_echo_n "checking for setcon in -lselinux... " >&6; }
 
7613
if test "${ac_cv_lib_selinux_setcon+set}" = set; then :
 
7614
  $as_echo_n "(cached) " >&6
12980
7615
else
12981
7616
  ac_check_lib_save_LIBS=$LIBS
12982
7617
LIBS="-lselinux  $LIBS"
12983
 
cat >conftest.$ac_ext <<_ACEOF
12984
 
/* confdefs.h.  */
12985
 
_ACEOF
12986
 
cat confdefs.h >>conftest.$ac_ext
12987
 
cat >>conftest.$ac_ext <<_ACEOF
 
7618
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988
7619
/* end confdefs.h.  */
12989
7620
 
12990
7621
/* Override any GCC internal prototype to avoid an error.
13002
7633
  return 0;
13003
7634
}
13004
7635
_ACEOF
13005
 
rm -f conftest.$ac_objext conftest$ac_exeext
13006
 
if { (ac_try="$ac_link"
13007
 
case "(($ac_try" in
13008
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009
 
  *) ac_try_echo=$ac_try;;
13010
 
esac
13011
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012
 
  (eval "$ac_link") 2>conftest.er1
13013
 
  ac_status=$?
13014
 
  grep -v '^ *+' conftest.er1 >conftest.err
13015
 
  rm -f conftest.er1
13016
 
  cat conftest.err >&5
13017
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018
 
  (exit $ac_status); } && {
13019
 
         test -z "$ac_c_werror_flag" ||
13020
 
         test ! -s conftest.err
13021
 
       } && test -s conftest$ac_exeext &&
13022
 
       $as_test_x conftest$ac_exeext; then
 
7636
if ac_fn_c_try_link "$LINENO"; then :
13023
7637
  ac_cv_lib_selinux_setcon=yes
13024
7638
else
13025
 
  echo "$as_me: failed program was:" >&5
13026
 
sed 's/^/| /' conftest.$ac_ext >&5
13027
 
 
13028
 
        ac_cv_lib_selinux_setcon=no
 
7639
  ac_cv_lib_selinux_setcon=no
13029
7640
fi
13030
 
 
13031
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13032
 
      conftest$ac_exeext conftest.$ac_ext
 
7641
rm -f core conftest.err conftest.$ac_objext \
 
7642
    conftest$ac_exeext conftest.$ac_ext
13033
7643
LIBS=$ac_check_lib_save_LIBS
13034
7644
fi
13035
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setcon" >&5
13036
 
echo "${ECHO_T}$ac_cv_lib_selinux_setcon" >&6; }
13037
 
if test $ac_cv_lib_selinux_setcon = yes; then
 
7645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
 
7646
$as_echo "$ac_cv_lib_selinux_setcon" >&6; }
 
7647
if test "x$ac_cv_lib_selinux_setcon" = x""yes; then :
13038
7648
 
13039
7649
 
13040
7650
  LIBS="-lselinux $LIBS"
13041
7651
 
13042
7652
 
13043
 
cat >>confdefs.h <<\_ACEOF
13044
 
#define HAVE_SETCON 1
13045
 
_ACEOF
 
7653
$as_echo "#define HAVE_SETCON 1" >>confdefs.h
13046
7654
 
13047
7655
 
13048
7656
else
13049
 
  { echo "$as_me:$LINENO: result: SELinux library not found." >&5
13050
 
echo "${ECHO_T}SELinux library not found." >&6; }
 
7657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: SELinux library not found." >&5
 
7658
$as_echo "SELinux library not found." >&6; }
13051
7659
 
13052
7660
fi
13053
7661
 
13054
7662
else
13055
 
  { echo "$as_me:$LINENO: result: SELinux headers not found." >&5
13056
 
echo "${ECHO_T}SELinux headers not found." >&6; }
 
7663
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: SELinux headers not found." >&5
 
7664
$as_echo "SELinux headers not found." >&6; }
13057
7665
 
13058
7666
fi
13059
7667
 
13062
7670
 
13063
7671
TAP_ID="tap0901"
13064
7672
TAP_WIN32_MIN_MAJOR="9"
13065
 
TAP_WIN32_MIN_MINOR="1"
 
7673
TAP_WIN32_MIN_MINOR="8"
13066
7674
 
13067
7675
cat >>confdefs.h <<_ACEOF
13068
7676
#define TAP_ID "${TAP_ID}"
13104
7712
fi
13105
7713
# end workaround
13106
7714
 
 
7715
ac_config_files="$ac_config_files t_client.sh"
 
7716
 
13107
7717
ac_config_files="$ac_config_files Makefile openvpn.spec images/Makefile service-win32/Makefile install-win32/Makefile install-win32/settings"
13108
7718
 
13109
7719
cat >confcache <<\_ACEOF
13133
7743
    case $ac_val in #(
13134
7744
    *${as_nl}*)
13135
7745
      case $ac_var in #(
13136
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13137
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
7746
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
7747
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13138
7748
      esac
13139
7749
      case $ac_var in #(
13140
7750
      _ | IFS | as_nl) ;; #(
13141
 
      *) $as_unset $ac_var ;;
 
7751
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
7752
      *) { eval $ac_var=; unset $ac_var;} ;;
13142
7753
      esac ;;
13143
7754
    esac
13144
7755
  done
13146
7757
  (set) 2>&1 |
13147
7758
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13148
7759
    *${as_nl}ac_space=\ *)
13149
 
      # `set' does not quote correctly, so add quotes (double-quote
13150
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
7760
      # `set' does not quote correctly, so add quotes: double-quote
 
7761
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13151
7762
      sed -n \
13152
7763
        "s/'/'\\\\''/g;
13153
7764
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13170
7781
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13171
7782
  if test -w "$cache_file"; then
13172
7783
    test "x$cache_file" != "x/dev/null" &&
13173
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13174
 
echo "$as_me: updating cache $cache_file" >&6;}
 
7784
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
7785
$as_echo "$as_me: updating cache $cache_file" >&6;}
13175
7786
    cat confcache >$cache_file
13176
7787
  else
13177
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13178
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
7788
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
7789
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13179
7790
  fi
13180
7791
fi
13181
7792
rm -f confcache
13188
7799
 
13189
7800
ac_libobjs=
13190
7801
ac_ltlibobjs=
 
7802
U=
13191
7803
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13192
7804
  # 1. Remove the extension, and $U if already installed.
13193
7805
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13194
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
7806
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13195
7807
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13196
7808
  #    will be set to the directory where LIBOBJS objects are built.
13197
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13198
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
7809
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
7810
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13199
7811
done
13200
7812
LIBOBJS=$ac_libobjs
13201
7813
 
13202
7814
LTLIBOBJS=$ac_ltlibobjs
13203
7815
 
13204
7816
 
 
7817
 if test -n "$EXEEXT"; then
 
7818
  am__EXEEXT_TRUE=
 
7819
  am__EXEEXT_FALSE='#'
 
7820
else
 
7821
  am__EXEEXT_TRUE='#'
 
7822
  am__EXEEXT_FALSE=
 
7823
fi
 
7824
 
13205
7825
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13206
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13207
 
Usually this means the macro was only invoked conditionally." >&5
13208
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
13209
 
Usually this means the macro was only invoked conditionally." >&2;}
13210
 
   { (exit 1); exit 1; }; }
 
7826
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
7827
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13211
7828
fi
13212
7829
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13213
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13214
 
Usually this means the macro was only invoked conditionally." >&5
13215
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13216
 
Usually this means the macro was only invoked conditionally." >&2;}
13217
 
   { (exit 1); exit 1; }; }
 
7830
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
7831
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13218
7832
fi
13219
7833
if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
13220
 
  { { echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined.
13221
 
Usually this means the macro was only invoked conditionally." >&5
13222
 
echo "$as_me: error: conditional \"WIN32\" was never defined.
13223
 
Usually this means the macro was only invoked conditionally." >&2;}
13224
 
   { (exit 1); exit 1; }; }
 
7834
  as_fn_error $? "conditional \"WIN32\" was never defined.
 
7835
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13225
7836
fi
13226
7837
 
13227
7838
: ${CONFIG_STATUS=./config.status}
 
7839
ac_write_fail=0
13228
7840
ac_clean_files_save=$ac_clean_files
13229
7841
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13230
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13231
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
13232
 
cat >$CONFIG_STATUS <<_ACEOF
 
7842
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
7843
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
7844
as_write_fail=0
 
7845
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13233
7846
#! $SHELL
13234
7847
# Generated by $as_me.
13235
7848
# Run this file to recreate the current configuration.
13239
7852
debug=false
13240
7853
ac_cs_recheck=false
13241
7854
ac_cs_silent=false
 
7855
 
13242
7856
SHELL=\${CONFIG_SHELL-$SHELL}
13243
 
_ACEOF
13244
 
 
13245
 
cat >>$CONFIG_STATUS <<\_ACEOF
13246
 
## --------------------- ##
13247
 
## M4sh Initialization.  ##
13248
 
## --------------------- ##
 
7857
export SHELL
 
7858
_ASEOF
 
7859
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
7860
## -------------------- ##
 
7861
## M4sh Initialization. ##
 
7862
## -------------------- ##
13249
7863
 
13250
7864
# Be more Bourne compatible
13251
7865
DUALCASE=1; export DUALCASE # for MKS sh
13252
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
7866
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13253
7867
  emulate sh
13254
7868
  NULLCMD=:
13255
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
7869
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13256
7870
  # is contrary to our usage.  Disable this feature.
13257
7871
  alias -g '${1+"$@"}'='"$@"'
13258
7872
  setopt NO_GLOB_SUBST
13259
7873
else
13260
 
  case `(set -o) 2>/dev/null` in
13261
 
  *posix*) set -o posix ;;
 
7874
  case `(set -o) 2>/dev/null` in #(
 
7875
  *posix*) :
 
7876
    set -o posix ;; #(
 
7877
  *) :
 
7878
     ;;
13262
7879
esac
13263
 
 
13264
 
fi
13265
 
 
13266
 
 
13267
 
 
13268
 
 
13269
 
# PATH needs CR
13270
 
# Avoid depending upon Character Ranges.
13271
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13272
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13273
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13274
 
as_cr_digits='0123456789'
13275
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
7880
fi
 
7881
 
 
7882
 
 
7883
as_nl='
 
7884
'
 
7885
export as_nl
 
7886
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
7887
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
7888
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
7889
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
7890
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
7891
# but without wasting forks for bash or zsh.
 
7892
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
7893
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
7894
  as_echo='print -r --'
 
7895
  as_echo_n='print -rn --'
 
7896
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
7897
  as_echo='printf %s\n'
 
7898
  as_echo_n='printf %s'
 
7899
else
 
7900
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
7901
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
7902
    as_echo_n='/usr/ucb/echo -n'
 
7903
  else
 
7904
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
7905
    as_echo_n_body='eval
 
7906
      arg=$1;
 
7907
      case $arg in #(
 
7908
      *"$as_nl"*)
 
7909
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
7910
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
7911
      esac;
 
7912
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
7913
    '
 
7914
    export as_echo_n_body
 
7915
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
7916
  fi
 
7917
  export as_echo_body
 
7918
  as_echo='sh -c $as_echo_body as_echo'
 
7919
fi
13276
7920
 
13277
7921
# The user is always right.
13278
7922
if test "${PATH_SEPARATOR+set}" != set; then
13279
 
  echo "#! /bin/sh" >conf$$.sh
13280
 
  echo  "exit 0"   >>conf$$.sh
13281
 
  chmod +x conf$$.sh
13282
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13283
 
    PATH_SEPARATOR=';'
13284
 
  else
13285
 
    PATH_SEPARATOR=:
13286
 
  fi
13287
 
  rm -f conf$$.sh
13288
 
fi
13289
 
 
13290
 
# Support unset when possible.
13291
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13292
 
  as_unset=unset
13293
 
else
13294
 
  as_unset=false
 
7923
  PATH_SEPARATOR=:
 
7924
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
7925
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
7926
      PATH_SEPARATOR=';'
 
7927
  }
13295
7928
fi
13296
7929
 
13297
7930
 
13300
7933
# there to prevent editors from complaining about space-tab.
13301
7934
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13302
7935
# splitting by setting IFS to empty value.)
13303
 
as_nl='
13304
 
'
13305
7936
IFS=" ""        $as_nl"
13306
7937
 
13307
7938
# Find who we are.  Look in the path if we contain no directory separator.
13308
 
case $0 in
 
7939
case $0 in #((
13309
7940
  *[\\/]* ) as_myself=$0 ;;
13310
7941
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311
7942
for as_dir in $PATH
13312
7943
do
13313
7944
  IFS=$as_save_IFS
13314
7945
  test -z "$as_dir" && as_dir=.
13315
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13316
 
done
 
7946
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
7947
  done
13317
7948
IFS=$as_save_IFS
13318
7949
 
13319
7950
     ;;
13324
7955
  as_myself=$0
13325
7956
fi
13326
7957
if test ! -f "$as_myself"; then
13327
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13328
 
  { (exit 1); exit 1; }
 
7958
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
7959
  exit 1
13329
7960
fi
13330
7961
 
13331
 
# Work around bugs in pre-3.0 UWIN ksh.
13332
 
for as_var in ENV MAIL MAILPATH
13333
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
7962
# Unset variables that we do not need and which cause bugs (e.g. in
 
7963
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
7964
# suppresses any "Segmentation fault" message there.  '((' could
 
7965
# trigger a bug in pdksh 5.2.14.
 
7966
for as_var in BASH_ENV ENV MAIL MAILPATH
 
7967
do eval test x\${$as_var+set} = xset \
 
7968
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13334
7969
done
13335
7970
PS1='$ '
13336
7971
PS2='> '
13337
7972
PS4='+ '
13338
7973
 
13339
7974
# NLS nuisances.
13340
 
for as_var in \
13341
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13342
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13343
 
  LC_TELEPHONE LC_TIME
13344
 
do
13345
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13346
 
    eval $as_var=C; export $as_var
13347
 
  else
13348
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
7975
LC_ALL=C
 
7976
export LC_ALL
 
7977
LANGUAGE=C
 
7978
export LANGUAGE
 
7979
 
 
7980
# CDPATH.
 
7981
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
7982
 
 
7983
 
 
7984
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
7985
# ----------------------------------------
 
7986
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
7987
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
7988
# script with STATUS, using 1 if that was 0.
 
7989
as_fn_error ()
 
7990
{
 
7991
  as_status=$1; test $as_status -eq 0 && as_status=1
 
7992
  if test "$4"; then
 
7993
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
7994
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13349
7995
  fi
13350
 
done
13351
 
 
13352
 
# Required to use basename.
 
7996
  $as_echo "$as_me: error: $2" >&2
 
7997
  as_fn_exit $as_status
 
7998
} # as_fn_error
 
7999
 
 
8000
 
 
8001
# as_fn_set_status STATUS
 
8002
# -----------------------
 
8003
# Set $? to STATUS, without forking.
 
8004
as_fn_set_status ()
 
8005
{
 
8006
  return $1
 
8007
} # as_fn_set_status
 
8008
 
 
8009
# as_fn_exit STATUS
 
8010
# -----------------
 
8011
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
8012
as_fn_exit ()
 
8013
{
 
8014
  set +e
 
8015
  as_fn_set_status $1
 
8016
  exit $1
 
8017
} # as_fn_exit
 
8018
 
 
8019
# as_fn_unset VAR
 
8020
# ---------------
 
8021
# Portably unset VAR.
 
8022
as_fn_unset ()
 
8023
{
 
8024
  { eval $1=; unset $1;}
 
8025
}
 
8026
as_unset=as_fn_unset
 
8027
# as_fn_append VAR VALUE
 
8028
# ----------------------
 
8029
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
8030
# advantage of any shell optimizations that allow amortized linear growth over
 
8031
# repeated appends, instead of the typical quadratic growth present in naive
 
8032
# implementations.
 
8033
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
8034
  eval 'as_fn_append ()
 
8035
  {
 
8036
    eval $1+=\$2
 
8037
  }'
 
8038
else
 
8039
  as_fn_append ()
 
8040
  {
 
8041
    eval $1=\$$1\$2
 
8042
  }
 
8043
fi # as_fn_append
 
8044
 
 
8045
# as_fn_arith ARG...
 
8046
# ------------------
 
8047
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
8048
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
8049
# must be portable across $(()) and expr.
 
8050
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
8051
  eval 'as_fn_arith ()
 
8052
  {
 
8053
    as_val=$(( $* ))
 
8054
  }'
 
8055
else
 
8056
  as_fn_arith ()
 
8057
  {
 
8058
    as_val=`expr "$@" || test $? -eq 1`
 
8059
  }
 
8060
fi # as_fn_arith
 
8061
 
 
8062
 
13353
8063
if expr a : '\(a\)' >/dev/null 2>&1 &&
13354
8064
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13355
8065
  as_expr=expr
13363
8073
  as_basename=false
13364
8074
fi
13365
8075
 
 
8076
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
8077
  as_dirname=dirname
 
8078
else
 
8079
  as_dirname=false
 
8080
fi
13366
8081
 
13367
 
# Name of the executable.
13368
8082
as_me=`$as_basename -- "$0" ||
13369
8083
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13370
8084
         X"$0" : 'X\(//\)$' \| \
13371
8085
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13372
 
echo X/"$0" |
 
8086
$as_echo X/"$0" |
13373
8087
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13374
8088
            s//\1/
13375
8089
            q
13384
8098
          }
13385
8099
          s/.*/./; q'`
13386
8100
 
13387
 
# CDPATH.
13388
 
$as_unset CDPATH
13389
 
 
13390
 
 
13391
 
 
13392
 
  as_lineno_1=$LINENO
13393
 
  as_lineno_2=$LINENO
13394
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13395
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13396
 
 
13397
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13398
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
13399
 
  # line-number line after each line using $LINENO; the second 'sed'
13400
 
  # does the real work.  The second script uses 'N' to pair each
13401
 
  # line-number line with the line containing $LINENO, and appends
13402
 
  # trailing '-' during substitution so that $LINENO is not a special
13403
 
  # case at line end.
13404
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13405
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13406
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13407
 
  sed -n '
13408
 
    p
13409
 
    /[$]LINENO/=
13410
 
  ' <$as_myself |
13411
 
    sed '
13412
 
      s/[$]LINENO.*/&-/
13413
 
      t lineno
13414
 
      b
13415
 
      :lineno
13416
 
      N
13417
 
      :loop
13418
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13419
 
      t loop
13420
 
      s/-\n.*//
13421
 
    ' >$as_me.lineno &&
13422
 
  chmod +x "$as_me.lineno" ||
13423
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13424
 
   { (exit 1); exit 1; }; }
13425
 
 
13426
 
  # Don't try to exec as it changes $[0], causing all sort of problems
13427
 
  # (the dirname of $[0] is not the place where we might find the
13428
 
  # original and so on.  Autoconf is especially sensitive to this).
13429
 
  . "./$as_me.lineno"
13430
 
  # Exit status is that of the last command.
13431
 
  exit
13432
 
}
13433
 
 
13434
 
 
13435
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13436
 
  as_dirname=dirname
13437
 
else
13438
 
  as_dirname=false
13439
 
fi
 
8101
# Avoid depending upon Character Ranges.
 
8102
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
8103
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
8104
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
8105
as_cr_digits='0123456789'
 
8106
as_cr_alnum=$as_cr_Letters$as_cr_digits
13440
8107
 
13441
8108
ECHO_C= ECHO_N= ECHO_T=
13442
 
case `echo -n x` in
 
8109
case `echo -n x` in #(((((
13443
8110
-n*)
13444
 
  case `echo 'x\c'` in
 
8111
  case `echo 'xy\c'` in
13445
8112
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13446
 
  *)   ECHO_C='\c';;
 
8113
  xy)  ECHO_C='\c';;
 
8114
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
8115
       ECHO_T=' ';;
13447
8116
  esac;;
13448
8117
*)
13449
8118
  ECHO_N='-n';;
13450
8119
esac
13451
8120
 
13452
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
13453
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13454
 
  as_expr=expr
13455
 
else
13456
 
  as_expr=false
13457
 
fi
13458
 
 
13459
8121
rm -f conf$$ conf$$.exe conf$$.file
13460
8122
if test -d conf$$.dir; then
13461
8123
  rm -f conf$$.dir/conf$$.file
13462
8124
else
13463
8125
  rm -f conf$$.dir
13464
 
  mkdir conf$$.dir
 
8126
  mkdir conf$$.dir 2>/dev/null
13465
8127
fi
13466
 
echo >conf$$.file
13467
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
13468
 
  as_ln_s='ln -s'
13469
 
  # ... but there are two gotchas:
13470
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13471
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13472
 
  # In both cases, we have to default to `cp -p'.
13473
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
8128
if (echo >conf$$.file) 2>/dev/null; then
 
8129
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
8130
    as_ln_s='ln -s'
 
8131
    # ... but there are two gotchas:
 
8132
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
8133
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
8134
    # In both cases, we have to default to `cp -p'.
 
8135
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
8136
      as_ln_s='cp -p'
 
8137
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
8138
    as_ln_s=ln
 
8139
  else
13474
8140
    as_ln_s='cp -p'
13475
 
elif ln conf$$.file conf$$ 2>/dev/null; then
13476
 
  as_ln_s=ln
 
8141
  fi
13477
8142
else
13478
8143
  as_ln_s='cp -p'
13479
8144
fi
13480
8145
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13481
8146
rmdir conf$$.dir 2>/dev/null
13482
8147
 
 
8148
 
 
8149
# as_fn_mkdir_p
 
8150
# -------------
 
8151
# Create "$as_dir" as a directory, including parents if necessary.
 
8152
as_fn_mkdir_p ()
 
8153
{
 
8154
 
 
8155
  case $as_dir in #(
 
8156
  -*) as_dir=./$as_dir;;
 
8157
  esac
 
8158
  test -d "$as_dir" || eval $as_mkdir_p || {
 
8159
    as_dirs=
 
8160
    while :; do
 
8161
      case $as_dir in #(
 
8162
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
8163
      *) as_qdir=$as_dir;;
 
8164
      esac
 
8165
      as_dirs="'$as_qdir' $as_dirs"
 
8166
      as_dir=`$as_dirname -- "$as_dir" ||
 
8167
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8168
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
8169
         X"$as_dir" : 'X\(//\)$' \| \
 
8170
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
8171
$as_echo X"$as_dir" |
 
8172
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8173
            s//\1/
 
8174
            q
 
8175
          }
 
8176
          /^X\(\/\/\)[^/].*/{
 
8177
            s//\1/
 
8178
            q
 
8179
          }
 
8180
          /^X\(\/\/\)$/{
 
8181
            s//\1/
 
8182
            q
 
8183
          }
 
8184
          /^X\(\/\).*/{
 
8185
            s//\1/
 
8186
            q
 
8187
          }
 
8188
          s/.*/./; q'`
 
8189
      test -d "$as_dir" && break
 
8190
    done
 
8191
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
8192
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
8193
 
 
8194
 
 
8195
} # as_fn_mkdir_p
13483
8196
if mkdir -p . 2>/dev/null; then
13484
 
  as_mkdir_p=:
 
8197
  as_mkdir_p='mkdir -p "$as_dir"'
13485
8198
else
13486
8199
  test -d ./-p && rmdir ./-p
13487
8200
  as_mkdir_p=false
13498
8211
  as_test_x='
13499
8212
    eval sh -c '\''
13500
8213
      if test -d "$1"; then
13501
 
        test -d "$1/.";
 
8214
        test -d "$1/.";
13502
8215
      else
13503
 
        case $1 in
13504
 
        -*)set "./$1";;
 
8216
        case $1 in #(
 
8217
        -*)set "./$1";;
13505
8218
        esac;
13506
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
8219
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13507
8220
        ???[sx]*):;;*)false;;esac;fi
13508
8221
    '\'' sh
13509
8222
  '
13518
8231
 
13519
8232
 
13520
8233
exec 6>&1
 
8234
## ----------------------------------- ##
 
8235
## Main body of $CONFIG_STATUS script. ##
 
8236
## ----------------------------------- ##
 
8237
_ASEOF
 
8238
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13521
8239
 
13522
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
8240
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8241
# Save the log message, to keep $0 and so on meaningful, and to
13523
8242
# report actual input values of CONFIG_FILES etc. instead of their
13524
8243
# values after options handling.
13525
8244
ac_log="
13526
 
This file was extended by OpenVPN $as_me 2.1.3, which was
13527
 
generated by GNU Autoconf 2.61.  Invocation command line was
 
8245
This file was extended by OpenVPN $as_me 2.2.0, which was
 
8246
generated by GNU Autoconf 2.66.  Invocation command line was
13528
8247
 
13529
8248
  CONFIG_FILES    = $CONFIG_FILES
13530
8249
  CONFIG_HEADERS  = $CONFIG_HEADERS
13537
8256
 
13538
8257
_ACEOF
13539
8258
 
13540
 
cat >>$CONFIG_STATUS <<_ACEOF
 
8259
case $ac_config_files in *"
 
8260
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
8261
esac
 
8262
 
 
8263
case $ac_config_headers in *"
 
8264
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
8265
esac
 
8266
 
 
8267
 
 
8268
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13541
8269
# Files that config.status was made for.
13542
8270
config_files="$ac_config_files"
13543
8271
config_headers="$ac_config_headers"
13545
8273
 
13546
8274
_ACEOF
13547
8275
 
13548
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
8276
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13549
8277
ac_cs_usage="\
13550
 
\`$as_me' instantiates files from templates according to the
13551
 
current configuration.
 
8278
\`$as_me' instantiates files and other configuration actions
 
8279
from templates according to the current configuration.  Unless the files
 
8280
and actions are specified as TAGs, all are instantiated by default.
13552
8281
 
13553
 
Usage: $0 [OPTIONS] [FILE]...
 
8282
Usage: $0 [OPTION]... [TAG]...
13554
8283
 
13555
8284
  -h, --help       print this help, then exit
13556
8285
  -V, --version    print version number and configuration settings, then exit
13557
 
  -q, --quiet      do not print progress messages
 
8286
      --config     print configuration, then exit
 
8287
  -q, --quiet, --silent
 
8288
                   do not print progress messages
13558
8289
  -d, --debug      don't remove temporary files
13559
8290
      --recheck    update $as_me by reconfiguring in the same conditions
13560
 
  --file=FILE[:TEMPLATE]
13561
 
                   instantiate the configuration file FILE
13562
 
  --header=FILE[:TEMPLATE]
13563
 
                   instantiate the configuration header FILE
 
8291
      --file=FILE[:TEMPLATE]
 
8292
                   instantiate the configuration file FILE
 
8293
      --header=FILE[:TEMPLATE]
 
8294
                   instantiate the configuration header FILE
13564
8295
 
13565
8296
Configuration files:
13566
8297
$config_files
13571
8302
Configuration commands:
13572
8303
$config_commands
13573
8304
 
13574
 
Report bugs to <bug-autoconf@gnu.org>."
 
8305
Report bugs to <openvpn-users@lists.sourceforge.net>."
13575
8306
 
13576
8307
_ACEOF
13577
 
cat >>$CONFIG_STATUS <<_ACEOF
 
8308
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8309
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13578
8310
ac_cs_version="\\
13579
 
OpenVPN config.status 2.1.3
13580
 
configured by $0, generated by GNU Autoconf 2.61,
13581
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
8311
OpenVPN config.status 2.2.0
 
8312
configured by $0, generated by GNU Autoconf 2.66,
 
8313
  with options \\"\$ac_cs_config\\"
13582
8314
 
13583
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
8315
Copyright (C) 2010 Free Software Foundation, Inc.
13584
8316
This config.status script is free software; the Free Software Foundation
13585
8317
gives unlimited permission to copy, distribute and modify it."
13586
8318
 
13588
8320
srcdir='$srcdir'
13589
8321
INSTALL='$INSTALL'
13590
8322
MKDIR_P='$MKDIR_P'
 
8323
AWK='$AWK'
 
8324
test -n "\$AWK" || AWK=awk
13591
8325
_ACEOF
13592
8326
 
13593
 
cat >>$CONFIG_STATUS <<\_ACEOF
13594
 
# If no file are specified by the user, then we need to provide default
13595
 
# value.  By we need to know if files were specified by the user.
 
8327
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8328
# The default lists apply if the user does not specify any file.
13596
8329
ac_need_defaults=:
13597
8330
while test $# != 0
13598
8331
do
13614
8347
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13615
8348
    ac_cs_recheck=: ;;
13616
8349
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13617
 
    echo "$ac_cs_version"; exit ;;
 
8350
    $as_echo "$ac_cs_version"; exit ;;
 
8351
  --config | --confi | --conf | --con | --co | --c )
 
8352
    $as_echo "$ac_cs_config"; exit ;;
13618
8353
  --debug | --debu | --deb | --de | --d | -d )
13619
8354
    debug=: ;;
13620
8355
  --file | --fil | --fi | --f )
13621
8356
    $ac_shift
13622
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
8357
    case $ac_optarg in
 
8358
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
8359
    esac
 
8360
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13623
8361
    ac_need_defaults=false;;
13624
8362
  --header | --heade | --head | --hea )
13625
8363
    $ac_shift
13626
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
8364
    case $ac_optarg in
 
8365
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
8366
    esac
 
8367
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13627
8368
    ac_need_defaults=false;;
13628
8369
  --he | --h)
13629
8370
    # Conflict between --help and --header
13630
 
    { echo "$as_me: error: ambiguous option: $1
13631
 
Try \`$0 --help' for more information." >&2
13632
 
   { (exit 1); exit 1; }; };;
 
8371
    as_fn_error $? "ambiguous option: \`$1'
 
8372
Try \`$0 --help' for more information.";;
13633
8373
  --help | --hel | -h )
13634
 
    echo "$ac_cs_usage"; exit ;;
 
8374
    $as_echo "$ac_cs_usage"; exit ;;
13635
8375
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13636
8376
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13637
8377
    ac_cs_silent=: ;;
13638
8378
 
13639
8379
  # This is an error.
13640
 
  -*) { echo "$as_me: error: unrecognized option: $1
13641
 
Try \`$0 --help' for more information." >&2
13642
 
   { (exit 1); exit 1; }; } ;;
 
8380
  -*) as_fn_error $? "unrecognized option: \`$1'
 
8381
Try \`$0 --help' for more information." ;;
13643
8382
 
13644
 
  *) ac_config_targets="$ac_config_targets $1"
 
8383
  *) as_fn_append ac_config_targets " $1"
13645
8384
     ac_need_defaults=false ;;
13646
8385
 
13647
8386
  esac
13656
8395
fi
13657
8396
 
13658
8397
_ACEOF
13659
 
cat >>$CONFIG_STATUS <<_ACEOF
 
8398
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13660
8399
if \$ac_cs_recheck; then
13661
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13662
 
  CONFIG_SHELL=$SHELL
 
8400
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
8401
  shift
 
8402
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
8403
  CONFIG_SHELL='$SHELL'
13663
8404
  export CONFIG_SHELL
13664
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
8405
  exec "\$@"
13665
8406
fi
13666
8407
 
13667
8408
_ACEOF
13668
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
8409
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13669
8410
exec 5>>config.log
13670
8411
{
13671
8412
  echo
13672
8413
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13673
8414
## Running $as_me. ##
13674
8415
_ASBOX
13675
 
  echo "$ac_log"
 
8416
  $as_echo "$ac_log"
13676
8417
} >&5
13677
8418
 
13678
8419
_ACEOF
13679
 
cat >>$CONFIG_STATUS <<_ACEOF
 
8420
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13680
8421
#
13681
8422
# INIT-COMMANDS
13682
8423
#
13684
8425
 
13685
8426
_ACEOF
13686
8427
 
13687
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
8428
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13688
8429
 
13689
8430
# Handling of arguments.
13690
8431
for ac_config_target in $ac_config_targets
13692
8433
  case $ac_config_target in
13693
8434
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13694
8435
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
8436
    "t_client.sh") CONFIG_FILES="$CONFIG_FILES t_client.sh" ;;
13695
8437
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13696
8438
    "openvpn.spec") CONFIG_FILES="$CONFIG_FILES openvpn.spec" ;;
13697
8439
    "images/Makefile") CONFIG_FILES="$CONFIG_FILES images/Makefile" ;;
13699
8441
    "install-win32/Makefile") CONFIG_FILES="$CONFIG_FILES install-win32/Makefile" ;;
13700
8442
    "install-win32/settings") CONFIG_FILES="$CONFIG_FILES install-win32/settings" ;;
13701
8443
 
13702
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13703
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13704
 
   { (exit 1); exit 1; }; };;
 
8444
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13705
8445
  esac
13706
8446
done
13707
8447
 
13728
8468
  trap 'exit_status=$?
13729
8469
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13730
8470
' 0
13731
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
8471
  trap 'as_fn_exit 1' 1 2 13 15
13732
8472
}
13733
8473
# Create a (secure) tmp directory for tmp files.
13734
8474
 
13739
8479
{
13740
8480
  tmp=./conf$$-$RANDOM
13741
8481
  (umask 077 && mkdir "$tmp")
13742
 
} ||
13743
 
{
13744
 
   echo "$me: cannot create a temporary directory in ." >&2
13745
 
   { (exit 1); exit 1; }
13746
 
}
13747
 
 
13748
 
#
13749
 
# Set up the sed scripts for CONFIG_FILES section.
13750
 
#
13751
 
 
13752
 
# No need to generate the scripts if there are no CONFIG_FILES.
13753
 
# This happens for instance when ./config.status config.h
 
8482
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
8483
 
 
8484
# Set up the scripts for CONFIG_FILES section.
 
8485
# No need to generate them if there are no CONFIG_FILES.
 
8486
# This happens for instance with `./config.status config.h'.
13754
8487
if test -n "$CONFIG_FILES"; then
13755
8488
 
13756
 
_ACEOF
13757
 
 
13758
 
 
13759
 
 
13760
 
ac_delim='%!_!# '
13761
 
for ac_last_try in false false false false false :; do
13762
 
  cat >conf$$subs.sed <<_ACEOF
13763
 
SHELL!$SHELL$ac_delim
13764
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13765
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13766
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13767
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13768
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13769
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13770
 
exec_prefix!$exec_prefix$ac_delim
13771
 
prefix!$prefix$ac_delim
13772
 
program_transform_name!$program_transform_name$ac_delim
13773
 
bindir!$bindir$ac_delim
13774
 
sbindir!$sbindir$ac_delim
13775
 
libexecdir!$libexecdir$ac_delim
13776
 
datarootdir!$datarootdir$ac_delim
13777
 
datadir!$datadir$ac_delim
13778
 
sysconfdir!$sysconfdir$ac_delim
13779
 
sharedstatedir!$sharedstatedir$ac_delim
13780
 
localstatedir!$localstatedir$ac_delim
13781
 
includedir!$includedir$ac_delim
13782
 
oldincludedir!$oldincludedir$ac_delim
13783
 
docdir!$docdir$ac_delim
13784
 
infodir!$infodir$ac_delim
13785
 
htmldir!$htmldir$ac_delim
13786
 
dvidir!$dvidir$ac_delim
13787
 
pdfdir!$pdfdir$ac_delim
13788
 
psdir!$psdir$ac_delim
13789
 
libdir!$libdir$ac_delim
13790
 
localedir!$localedir$ac_delim
13791
 
mandir!$mandir$ac_delim
13792
 
DEFS!$DEFS$ac_delim
13793
 
ECHO_C!$ECHO_C$ac_delim
13794
 
ECHO_N!$ECHO_N$ac_delim
13795
 
ECHO_T!$ECHO_T$ac_delim
13796
 
LIBS!$LIBS$ac_delim
13797
 
build_alias!$build_alias$ac_delim
13798
 
host_alias!$host_alias$ac_delim
13799
 
target_alias!$target_alias$ac_delim
13800
 
build!$build$ac_delim
13801
 
build_cpu!$build_cpu$ac_delim
13802
 
build_vendor!$build_vendor$ac_delim
13803
 
build_os!$build_os$ac_delim
13804
 
host!$host$ac_delim
13805
 
host_cpu!$host_cpu$ac_delim
13806
 
host_vendor!$host_vendor$ac_delim
13807
 
host_os!$host_os$ac_delim
13808
 
target!$target$ac_delim
13809
 
target_cpu!$target_cpu$ac_delim
13810
 
target_vendor!$target_vendor$ac_delim
13811
 
target_os!$target_os$ac_delim
13812
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13813
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13814
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
13815
 
am__isrc!$am__isrc$ac_delim
13816
 
CYGPATH_W!$CYGPATH_W$ac_delim
13817
 
PACKAGE!$PACKAGE$ac_delim
13818
 
VERSION!$VERSION$ac_delim
13819
 
ACLOCAL!$ACLOCAL$ac_delim
13820
 
AUTOCONF!$AUTOCONF$ac_delim
13821
 
AUTOMAKE!$AUTOMAKE$ac_delim
13822
 
AUTOHEADER!$AUTOHEADER$ac_delim
13823
 
MAKEINFO!$MAKEINFO$ac_delim
13824
 
install_sh!$install_sh$ac_delim
13825
 
STRIP!$STRIP$ac_delim
13826
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13827
 
mkdir_p!$mkdir_p$ac_delim
13828
 
AWK!$AWK$ac_delim
13829
 
SET_MAKE!$SET_MAKE$ac_delim
13830
 
am__leading_dot!$am__leading_dot$ac_delim
13831
 
AMTAR!$AMTAR$ac_delim
13832
 
am__tar!$am__tar$ac_delim
13833
 
am__untar!$am__untar$ac_delim
13834
 
IFCONFIG!$IFCONFIG$ac_delim
13835
 
IPROUTE!$IPROUTE$ac_delim
13836
 
ROUTE!$ROUTE$ac_delim
13837
 
CC!$CC$ac_delim
13838
 
CFLAGS!$CFLAGS$ac_delim
13839
 
LDFLAGS!$LDFLAGS$ac_delim
13840
 
CPPFLAGS!$CPPFLAGS$ac_delim
13841
 
ac_ct_CC!$ac_ct_CC$ac_delim
13842
 
EXEEXT!$EXEEXT$ac_delim
13843
 
OBJEXT!$OBJEXT$ac_delim
13844
 
DEPDIR!$DEPDIR$ac_delim
13845
 
am__include!$am__include$ac_delim
13846
 
am__quote!$am__quote$ac_delim
13847
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13848
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13849
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13850
 
CCDEPMODE!$CCDEPMODE$ac_delim
13851
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13852
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13853
 
CPP!$CPP$ac_delim
13854
 
GREP!$GREP$ac_delim
13855
 
EGREP!$EGREP$ac_delim
13856
 
MAN2HTML!$MAN2HTML$ac_delim
13857
 
LIBOBJS!$LIBOBJS$ac_delim
13858
 
PTHREAD_CC!$PTHREAD_CC$ac_delim
13859
 
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
13860
 
_ACEOF
13861
 
 
13862
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13863
 
    break
13864
 
  elif $ac_last_try; then
13865
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13866
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13867
 
   { (exit 1); exit 1; }; }
13868
 
  else
13869
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13870
 
  fi
13871
 
done
13872
 
 
13873
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13874
 
if test -n "$ac_eof"; then
13875
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13876
 
  ac_eof=`expr $ac_eof + 1`
13877
 
fi
13878
 
 
13879
 
cat >>$CONFIG_STATUS <<_ACEOF
13880
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13881
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13882
 
_ACEOF
13883
 
sed '
13884
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13885
 
s/^/s,@/; s/!/@,|#_!!_#|/
13886
 
:n
13887
 
t n
13888
 
s/'"$ac_delim"'$/,g/; t
13889
 
s/$/\\/; p
13890
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13891
 
' >>$CONFIG_STATUS <conf$$subs.sed
13892
 
rm -f conf$$subs.sed
13893
 
cat >>$CONFIG_STATUS <<_ACEOF
13894
 
CEOF$ac_eof
13895
 
_ACEOF
13896
 
 
13897
 
 
13898
 
ac_delim='%!_!# '
13899
 
for ac_last_try in false false false false false :; do
13900
 
  cat >conf$$subs.sed <<_ACEOF
13901
 
PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
13902
 
TAP_ID!$TAP_ID$ac_delim
13903
 
TAP_WIN32_MIN_MAJOR!$TAP_WIN32_MIN_MAJOR$ac_delim
13904
 
TAP_WIN32_MIN_MINOR!$TAP_WIN32_MIN_MINOR$ac_delim
13905
 
win32datadir!$win32datadir$ac_delim
13906
 
WIN32_TRUE!$WIN32_TRUE$ac_delim
13907
 
WIN32_FALSE!$WIN32_FALSE$ac_delim
13908
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
13909
 
_ACEOF
13910
 
 
13911
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
13912
 
    break
13913
 
  elif $ac_last_try; then
13914
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13915
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13916
 
   { (exit 1); exit 1; }; }
13917
 
  else
13918
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13919
 
  fi
13920
 
done
13921
 
 
13922
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13923
 
if test -n "$ac_eof"; then
13924
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13925
 
  ac_eof=`expr $ac_eof + 1`
13926
 
fi
13927
 
 
13928
 
cat >>$CONFIG_STATUS <<_ACEOF
13929
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13930
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13931
 
_ACEOF
13932
 
sed '
13933
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13934
 
s/^/s,@/; s/!/@,|#_!!_#|/
13935
 
:n
13936
 
t n
13937
 
s/'"$ac_delim"'$/,g/; t
13938
 
s/$/\\/; p
13939
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13940
 
' >>$CONFIG_STATUS <conf$$subs.sed
13941
 
rm -f conf$$subs.sed
13942
 
cat >>$CONFIG_STATUS <<_ACEOF
13943
 
:end
13944
 
s/|#_!!_#|//g
13945
 
CEOF$ac_eof
13946
 
_ACEOF
13947
 
 
13948
 
 
13949
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13950
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
8489
 
 
8490
ac_cr=`echo X | tr X '\015'`
 
8491
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
8492
# But we know of no other shell where ac_cr would be empty at this
 
8493
# point, so we can use a bashism as a fallback.
 
8494
if test "x$ac_cr" = x; then
 
8495
  eval ac_cr=\$\'\\r\'
 
8496
fi
 
8497
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
8498
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
8499
  ac_cs_awk_cr='\\r'
 
8500
else
 
8501
  ac_cs_awk_cr=$ac_cr
 
8502
fi
 
8503
 
 
8504
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
8505
_ACEOF
 
8506
 
 
8507
 
 
8508
{
 
8509
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
8510
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
8511
  echo "_ACEOF"
 
8512
} >conf$$subs.sh ||
 
8513
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
8514
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
8515
ac_delim='%!_!# '
 
8516
for ac_last_try in false false false false false :; do
 
8517
  . ./conf$$subs.sh ||
 
8518
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
8519
 
 
8520
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
8521
  if test $ac_delim_n = $ac_delim_num; then
 
8522
    break
 
8523
  elif $ac_last_try; then
 
8524
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
8525
  else
 
8526
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
8527
  fi
 
8528
done
 
8529
rm -f conf$$subs.sh
 
8530
 
 
8531
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8532
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
8533
_ACEOF
 
8534
sed -n '
 
8535
h
 
8536
s/^/S["/; s/!.*/"]=/
 
8537
p
 
8538
g
 
8539
s/^[^!]*!//
 
8540
:repl
 
8541
t repl
 
8542
s/'"$ac_delim"'$//
 
8543
t delim
 
8544
:nl
 
8545
h
 
8546
s/\(.\{148\}\)..*/\1/
 
8547
t more1
 
8548
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
8549
p
 
8550
n
 
8551
b repl
 
8552
:more1
 
8553
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
8554
p
 
8555
g
 
8556
s/.\{148\}//
 
8557
t nl
 
8558
:delim
 
8559
h
 
8560
s/\(.\{148\}\)..*/\1/
 
8561
t more2
 
8562
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
8563
p
 
8564
b
 
8565
:more2
 
8566
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
8567
p
 
8568
g
 
8569
s/.\{148\}//
 
8570
t delim
 
8571
' <conf$$subs.awk | sed '
 
8572
/^[^""]/{
 
8573
  N
 
8574
  s/\n//
 
8575
}
 
8576
' >>$CONFIG_STATUS || ac_write_fail=1
 
8577
rm -f conf$$subs.awk
 
8578
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8579
_ACAWK
 
8580
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
8581
  for (key in S) S_is_set[key] = 1
 
8582
  FS = ""
 
8583
 
 
8584
}
 
8585
{
 
8586
  line = $ 0
 
8587
  nfields = split(line, field, "@")
 
8588
  substed = 0
 
8589
  len = length(field[1])
 
8590
  for (i = 2; i < nfields; i++) {
 
8591
    key = field[i]
 
8592
    keylen = length(key)
 
8593
    if (S_is_set[key]) {
 
8594
      value = S[key]
 
8595
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
8596
      len += length(value) + length(field[++i])
 
8597
      substed = 1
 
8598
    } else
 
8599
      len += 1 + keylen
 
8600
  }
 
8601
 
 
8602
  print line
 
8603
}
 
8604
 
 
8605
_ACAWK
 
8606
_ACEOF
 
8607
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8608
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
8609
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
8610
else
 
8611
  cat
 
8612
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
8613
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
8614
_ACEOF
 
8615
 
 
8616
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
8617
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13951
8618
# trailing colons and then remove the whole line if VPATH becomes empty
13952
8619
# (actually we leave an empty line to preserve line numbers).
13953
8620
if test "x$srcdir" = x.; then
13954
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13955
 
s/:*\$(srcdir):*/:/
13956
 
s/:*\${srcdir}:*/:/
13957
 
s/:*@srcdir@:*/:/
13958
 
s/^\([^=]*=[     ]*\):*/\1/
 
8621
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
8622
h
 
8623
s///
 
8624
s/^/:/
 
8625
s/[      ]*$/:/
 
8626
s/:\$(srcdir):/:/g
 
8627
s/:\${srcdir}:/:/g
 
8628
s/:@srcdir@:/:/g
 
8629
s/^:*//
13959
8630
s/:*$//
 
8631
x
 
8632
s/\(=[   ]*\).*/\1/
 
8633
G
 
8634
s/\n//
13960
8635
s/^[^=]*=[       ]*$//
13961
8636
}'
13962
8637
fi
13963
8638
 
13964
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
8639
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13965
8640
fi # test -n "$CONFIG_FILES"
13966
8641
 
13967
 
 
13968
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
8642
# Set up the scripts for CONFIG_HEADERS section.
 
8643
# No need to generate them if there are no CONFIG_HEADERS.
 
8644
# This happens for instance with `./config.status Makefile'.
 
8645
if test -n "$CONFIG_HEADERS"; then
 
8646
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
8647
BEGIN {
 
8648
_ACEOF
 
8649
 
 
8650
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
8651
# here-document in config.status, that substitutes the proper values into
 
8652
# config.h.in to produce config.h.
 
8653
 
 
8654
# Create a delimiter string that does not exist in confdefs.h, to ease
 
8655
# handling of long lines.
 
8656
ac_delim='%!_!# '
 
8657
for ac_last_try in false false :; do
 
8658
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
8659
  if test -z "$ac_t"; then
 
8660
    break
 
8661
  elif $ac_last_try; then
 
8662
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
8663
  else
 
8664
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
8665
  fi
 
8666
done
 
8667
 
 
8668
# For the awk script, D is an array of macro values keyed by name,
 
8669
# likewise P contains macro parameters if any.  Preserve backslash
 
8670
# newline sequences.
 
8671
 
 
8672
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
8673
sed -n '
 
8674
s/.\{148\}/&'"$ac_delim"'/g
 
8675
t rset
 
8676
:rset
 
8677
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
8678
t def
 
8679
d
 
8680
:def
 
8681
s/\\$//
 
8682
t bsnl
 
8683
s/["\\]/\\&/g
 
8684
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
8685
D["\1"]=" \3"/p
 
8686
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
8687
d
 
8688
:bsnl
 
8689
s/["\\]/\\&/g
 
8690
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
8691
D["\1"]=" \3\\\\\\n"\\/p
 
8692
t cont
 
8693
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
8694
t cont
 
8695
d
 
8696
:cont
 
8697
n
 
8698
s/.\{148\}/&'"$ac_delim"'/g
 
8699
t clear
 
8700
:clear
 
8701
s/\\$//
 
8702
t bsnlc
 
8703
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
8704
d
 
8705
:bsnlc
 
8706
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
8707
b cont
 
8708
' <confdefs.h | sed '
 
8709
s/'"$ac_delim"'/"\\\
 
8710
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
8711
 
 
8712
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8713
  for (key in D) D_is_set[key] = 1
 
8714
  FS = ""
 
8715
}
 
8716
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
8717
  line = \$ 0
 
8718
  split(line, arg, " ")
 
8719
  if (arg[1] == "#") {
 
8720
    defundef = arg[2]
 
8721
    mac1 = arg[3]
 
8722
  } else {
 
8723
    defundef = substr(arg[1], 2)
 
8724
    mac1 = arg[2]
 
8725
  }
 
8726
  split(mac1, mac2, "(") #)
 
8727
  macro = mac2[1]
 
8728
  prefix = substr(line, 1, index(line, defundef) - 1)
 
8729
  if (D_is_set[macro]) {
 
8730
    # Preserve the white space surrounding the "#".
 
8731
    print prefix "define", macro P[macro] D[macro]
 
8732
    next
 
8733
  } else {
 
8734
    # Replace #undef with comments.  This is necessary, for example,
 
8735
    # in the case of _POSIX_SOURCE, which is predefined and required
 
8736
    # on some systems where configure will not decide to define it.
 
8737
    if (defundef == "undef") {
 
8738
      print "/*", prefix defundef, macro, "*/"
 
8739
      next
 
8740
    }
 
8741
  }
 
8742
}
 
8743
{ print }
 
8744
_ACAWK
 
8745
_ACEOF
 
8746
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
8747
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
8748
fi # test -n "$CONFIG_HEADERS"
 
8749
 
 
8750
 
 
8751
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
8752
shift
 
8753
for ac_tag
13969
8754
do
13970
8755
  case $ac_tag in
13971
8756
  :[FHLC]) ac_mode=$ac_tag; continue;;
13972
8757
  esac
13973
8758
  case $ac_mode$ac_tag in
13974
8759
  :[FHL]*:*);;
13975
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13976
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13977
 
   { (exit 1); exit 1; }; };;
 
8760
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13978
8761
  :[FH]-) ac_tag=-:-;;
13979
8762
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13980
8763
  esac
14002
8785
           [\\/$]*) false;;
14003
8786
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14004
8787
           esac ||
14005
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14006
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14007
 
   { (exit 1); exit 1; }; };;
 
8788
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14008
8789
      esac
14009
 
      ac_file_inputs="$ac_file_inputs $ac_f"
 
8790
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
8791
      as_fn_append ac_file_inputs " '$ac_f'"
14010
8792
    done
14011
8793
 
14012
8794
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14013
8795
    # use $as_me), people would be surprised to read:
14014
8796
    #    /* config.h.  Generated by config.status.  */
14015
 
    configure_input="Generated from "`IFS=:
14016
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
8797
    configure_input='Generated from '`
 
8798
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
8799
        `' by configure.'
14017
8800
    if test x"$ac_file" != x-; then
14018
8801
      configure_input="$ac_file.  $configure_input"
14019
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
14020
 
echo "$as_me: creating $ac_file" >&6;}
 
8802
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
8803
$as_echo "$as_me: creating $ac_file" >&6;}
14021
8804
    fi
 
8805
    # Neutralize special characters interpreted by sed in replacement strings.
 
8806
    case $configure_input in #(
 
8807
    *\&* | *\|* | *\\* )
 
8808
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
8809
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
8810
    *) ac_sed_conf_input=$configure_input;;
 
8811
    esac
14022
8812
 
14023
8813
    case $ac_tag in
14024
 
    *:-:* | *:-) cat >"$tmp/stdin";;
 
8814
    *:-:* | *:-) cat >"$tmp/stdin" \
 
8815
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14025
8816
    esac
14026
8817
    ;;
14027
8818
  esac
14031
8822
         X"$ac_file" : 'X\(//\)[^/]' \| \
14032
8823
         X"$ac_file" : 'X\(//\)$' \| \
14033
8824
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14034
 
echo X"$ac_file" |
14035
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14036
 
            s//\1/
14037
 
            q
14038
 
          }
14039
 
          /^X\(\/\/\)[^/].*/{
14040
 
            s//\1/
14041
 
            q
14042
 
          }
14043
 
          /^X\(\/\/\)$/{
14044
 
            s//\1/
14045
 
            q
14046
 
          }
14047
 
          /^X\(\/\).*/{
14048
 
            s//\1/
14049
 
            q
14050
 
          }
14051
 
          s/.*/./; q'`
14052
 
  { as_dir="$ac_dir"
14053
 
  case $as_dir in #(
14054
 
  -*) as_dir=./$as_dir;;
14055
 
  esac
14056
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14057
 
    as_dirs=
14058
 
    while :; do
14059
 
      case $as_dir in #(
14060
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14061
 
      *) as_qdir=$as_dir;;
14062
 
      esac
14063
 
      as_dirs="'$as_qdir' $as_dirs"
14064
 
      as_dir=`$as_dirname -- "$as_dir" ||
14065
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14066
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
14067
 
         X"$as_dir" : 'X\(//\)$' \| \
14068
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14069
 
echo X"$as_dir" |
14070
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14071
 
            s//\1/
14072
 
            q
14073
 
          }
14074
 
          /^X\(\/\/\)[^/].*/{
14075
 
            s//\1/
14076
 
            q
14077
 
          }
14078
 
          /^X\(\/\/\)$/{
14079
 
            s//\1/
14080
 
            q
14081
 
          }
14082
 
          /^X\(\/\).*/{
14083
 
            s//\1/
14084
 
            q
14085
 
          }
14086
 
          s/.*/./; q'`
14087
 
      test -d "$as_dir" && break
14088
 
    done
14089
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14090
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14091
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
14092
 
   { (exit 1); exit 1; }; }; }
 
8825
$as_echo X"$ac_file" |
 
8826
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8827
            s//\1/
 
8828
            q
 
8829
          }
 
8830
          /^X\(\/\/\)[^/].*/{
 
8831
            s//\1/
 
8832
            q
 
8833
          }
 
8834
          /^X\(\/\/\)$/{
 
8835
            s//\1/
 
8836
            q
 
8837
          }
 
8838
          /^X\(\/\).*/{
 
8839
            s//\1/
 
8840
            q
 
8841
          }
 
8842
          s/.*/./; q'`
 
8843
  as_dir="$ac_dir"; as_fn_mkdir_p
14093
8844
  ac_builddir=.
14094
8845
 
14095
8846
case "$ac_dir" in
14096
8847
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14097
8848
*)
14098
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
8849
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14099
8850
  # A ".." for each directory in $ac_dir_suffix.
14100
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
8851
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14101
8852
  case $ac_top_builddir_sub in
14102
8853
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14103
8854
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14142
8893
  esac
14143
8894
_ACEOF
14144
8895
 
14145
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
8896
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14146
8897
# If the template does not know about datarootdir, expand it.
14147
8898
# FIXME: This hack should be removed a few years after 2.60.
14148
8899
ac_datarootdir_hack=; ac_datarootdir_seen=
14149
 
 
14150
 
case `sed -n '/datarootdir/ {
 
8900
ac_sed_dataroot='
 
8901
/datarootdir/ {
14151
8902
  p
14152
8903
  q
14153
8904
}
14155
8906
/@docdir@/p
14156
8907
/@infodir@/p
14157
8908
/@localedir@/p
14158
 
/@mandir@/p
14159
 
' $ac_file_inputs` in
 
8909
/@mandir@/p'
 
8910
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14160
8911
*datarootdir*) ac_datarootdir_seen=yes;;
14161
8912
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14162
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14163
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
8913
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
8914
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14164
8915
_ACEOF
14165
 
cat >>$CONFIG_STATUS <<_ACEOF
 
8916
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14166
8917
  ac_datarootdir_hack='
14167
8918
  s&@datadir@&$datadir&g
14168
8919
  s&@docdir@&$docdir&g
14169
8920
  s&@infodir@&$infodir&g
14170
8921
  s&@localedir@&$localedir&g
14171
8922
  s&@mandir@&$mandir&g
14172
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
8923
  s&\\\${datarootdir}&$datarootdir&g' ;;
14173
8924
esac
14174
8925
_ACEOF
14175
8926
 
14176
8927
# Neutralize VPATH when `$srcdir' = `.'.
14177
8928
# Shell code in configure.ac might set extrasub.
14178
8929
# FIXME: do we really want to maintain this feature?
14179
 
cat >>$CONFIG_STATUS <<_ACEOF
14180
 
  sed "$ac_vpsub
 
8930
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
8931
ac_sed_extra="$ac_vpsub
14181
8932
$extrasub
14182
8933
_ACEOF
14183
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
8934
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14184
8935
:t
14185
8936
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14186
 
s&@configure_input@&$configure_input&;t t
 
8937
s|@configure_input@|$ac_sed_conf_input|;t t
14187
8938
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
8939
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14188
8940
s&@srcdir@&$ac_srcdir&;t t
14189
8941
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14190
8942
s&@top_srcdir@&$ac_top_srcdir&;t t
14195
8947
s&@INSTALL@&$ac_INSTALL&;t t
14196
8948
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14197
8949
$ac_datarootdir_hack
14198
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
8950
"
 
8951
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
8952
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14199
8953
 
14200
8954
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14201
8955
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14202
8956
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14203
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14204
 
which seems to be undefined.  Please make sure it is defined." >&5
14205
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14206
 
which seems to be undefined.  Please make sure it is defined." >&2;}
 
8957
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8958
which seems to be undefined.  Please make sure it is defined" >&5
 
8959
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8960
which seems to be undefined.  Please make sure it is defined" >&2;}
14207
8961
 
14208
8962
  rm -f "$tmp/stdin"
14209
8963
  case $ac_file in
14210
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
14211
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14212
 
  esac
 
8964
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
8965
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
8966
  esac \
 
8967
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14213
8968
 ;;
14214
8969
  :H)
14215
8970
  #
14216
8971
  # CONFIG_HEADER
14217
8972
  #
14218
 
_ACEOF
14219
 
 
14220
 
# Transform confdefs.h into a sed script `conftest.defines', that
14221
 
# substitutes the proper values into config.h.in to produce config.h.
14222
 
rm -f conftest.defines conftest.tail
14223
 
# First, append a space to every undef/define line, to ease matching.
14224
 
echo 's/$/ /' >conftest.defines
14225
 
# Then, protect against being on the right side of a sed subst, or in
14226
 
# an unquoted here document, in config.status.  If some macros were
14227
 
# called several times there might be several #defines for the same
14228
 
# symbol, which is useless.  But do not sort them, since the last
14229
 
# AC_DEFINE must be honored.
14230
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14231
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14232
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
14233
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
14234
 
# just an empty string.
14235
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
14236
 
ac_dB='\\)[      (].*,\\1define\\2'
14237
 
ac_dC=' '
14238
 
ac_dD=' ,'
14239
 
 
14240
 
uniq confdefs.h |
14241
 
  sed -n '
14242
 
        t rset
14243
 
        :rset
14244
 
        s/^[     ]*#[    ]*define[       ][      ]*//
14245
 
        t ok
14246
 
        d
14247
 
        :ok
14248
 
        s/[\\&,]/\\&/g
14249
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14250
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14251
 
  ' >>conftest.defines
14252
 
 
14253
 
# Remove the space that was appended to ease matching.
14254
 
# Then replace #undef with comments.  This is necessary, for
14255
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
14256
 
# on some systems where configure will not decide to define it.
14257
 
# (The regexp can be short, since the line contains either #define or #undef.)
14258
 
echo 's/ $//
14259
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
14260
 
 
14261
 
# Break up conftest.defines:
14262
 
ac_max_sed_lines=50
14263
 
 
14264
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14265
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14266
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14267
 
# et cetera.
14268
 
ac_in='$ac_file_inputs'
14269
 
ac_out='"$tmp/out1"'
14270
 
ac_nxt='"$tmp/out2"'
14271
 
 
14272
 
while :
14273
 
do
14274
 
  # Write a here document:
14275
 
    cat >>$CONFIG_STATUS <<_ACEOF
14276
 
    # First, check the format of the line:
14277
 
    cat >"\$tmp/defines.sed" <<\\CEOF
14278
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
14279
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14280
 
b
14281
 
:def
14282
 
_ACEOF
14283
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14284
 
  echo 'CEOF
14285
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14286
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14287
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14288
 
  grep . conftest.tail >/dev/null || break
14289
 
  rm -f conftest.defines
14290
 
  mv conftest.tail conftest.defines
14291
 
done
14292
 
rm -f conftest.defines conftest.tail
14293
 
 
14294
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
14295
 
cat >>$CONFIG_STATUS <<\_ACEOF
14296
8973
  if test x"$ac_file" != x-; then
14297
 
    echo "/* $configure_input  */" >"$tmp/config.h"
14298
 
    cat "$ac_result" >>"$tmp/config.h"
14299
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14300
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14301
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
8974
    {
 
8975
      $as_echo "/* $configure_input  */" \
 
8976
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
8977
    } >"$tmp/config.h" \
 
8978
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
8979
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
8980
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
8981
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14302
8982
    else
14303
 
      rm -f $ac_file
14304
 
      mv "$tmp/config.h" $ac_file
 
8983
      rm -f "$ac_file"
 
8984
      mv "$tmp/config.h" "$ac_file" \
 
8985
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14305
8986
    fi
14306
8987
  else
14307
 
    echo "/* $configure_input  */"
14308
 
    cat "$ac_result"
 
8988
    $as_echo "/* $configure_input  */" \
 
8989
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
8990
      || as_fn_error $? "could not create -" "$LINENO" 5
14309
8991
  fi
14310
 
  rm -f "$tmp/out12"
14311
 
# Compute $ac_file's index in $config_headers.
14312
 
_am_arg=$ac_file
 
8992
# Compute "$ac_file"'s index in $config_headers.
 
8993
_am_arg="$ac_file"
14313
8994
_am_stamp_count=1
14314
8995
for _am_header in $config_headers :; do
14315
8996
  case $_am_header in
14324
9005
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14325
9006
         X"$_am_arg" : 'X\(//\)$' \| \
14326
9007
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14327
 
echo X"$_am_arg" |
 
9008
$as_echo X"$_am_arg" |
14328
9009
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14329
9010
            s//\1/
14330
9011
            q
14344
9025
          s/.*/./; q'`/stamp-h$_am_stamp_count
14345
9026
 ;;
14346
9027
 
14347
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14348
 
echo "$as_me: executing $ac_file commands" >&6;}
 
9028
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
9029
$as_echo "$as_me: executing $ac_file commands" >&6;}
14349
9030
 ;;
14350
9031
  esac
14351
9032
 
14352
9033
 
14353
9034
  case $ac_file$ac_mode in
14354
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14355
 
  # Strip MF so we end up with the name of the file.
14356
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
14357
 
  # Check whether this is an Automake generated Makefile or not.
14358
 
  # We used to match only the files named `Makefile.in', but
14359
 
  # some people rename them; so instead we look at the file content.
14360
 
  # Grep'ing the first line is not enough: some people post-process
14361
 
  # each Makefile.in and add a new line on top of each file to say so.
14362
 
  # Grep'ing the whole file is not good either: AIX grep has a line
14363
 
  # limit of 2048, but all sed's we know have understand at least 4000.
14364
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14365
 
    dirpart=`$as_dirname -- "$mf" ||
 
9035
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
9036
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9037
  # are listed without --file.  Let's play safe and only enable the eval
 
9038
  # if we detect the quoting.
 
9039
  case $CONFIG_FILES in
 
9040
  *\'*) eval set x "$CONFIG_FILES" ;;
 
9041
  *)   set x $CONFIG_FILES ;;
 
9042
  esac
 
9043
  shift
 
9044
  for mf
 
9045
  do
 
9046
    # Strip MF so we end up with the name of the file.
 
9047
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9048
    # Check whether this is an Automake generated Makefile or not.
 
9049
    # We used to match only the files named `Makefile.in', but
 
9050
    # some people rename them; so instead we look at the file content.
 
9051
    # Grep'ing the first line is not enough: some people post-process
 
9052
    # each Makefile.in and add a new line on top of each file to say so.
 
9053
    # Grep'ing the whole file is not good either: AIX grep has a line
 
9054
    # limit of 2048, but all sed's we know have understand at least 4000.
 
9055
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
9056
      dirpart=`$as_dirname -- "$mf" ||
14366
9057
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14367
9058
         X"$mf" : 'X\(//\)[^/]' \| \
14368
9059
         X"$mf" : 'X\(//\)$' \| \
14369
9060
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14370
 
echo X"$mf" |
 
9061
$as_echo X"$mf" |
14371
9062
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14372
9063
            s//\1/
14373
9064
            q
14385
9076
            q
14386
9077
          }
14387
9078
          s/.*/./; q'`
14388
 
  else
14389
 
    continue
14390
 
  fi
14391
 
  # Extract the definition of DEPDIR, am__include, and am__quote
14392
 
  # from the Makefile without running `make'.
14393
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14394
 
  test -z "$DEPDIR" && continue
14395
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
14396
 
  test -z "am__include" && continue
14397
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14398
 
  # When using ansi2knr, U may be empty or an underscore; expand it
14399
 
  U=`sed -n 's/^U = //p' < "$mf"`
14400
 
  # Find all dependency output files, they are included files with
14401
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
14402
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
14403
 
  # expansion.
14404
 
  for file in `sed -n "
14405
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14406
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14407
 
    # Make sure the directory exists.
14408
 
    test -f "$dirpart/$file" && continue
14409
 
    fdir=`$as_dirname -- "$file" ||
 
9079
    else
 
9080
      continue
 
9081
    fi
 
9082
    # Extract the definition of DEPDIR, am__include, and am__quote
 
9083
    # from the Makefile without running `make'.
 
9084
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9085
    test -z "$DEPDIR" && continue
 
9086
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9087
    test -z "am__include" && continue
 
9088
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9089
    # When using ansi2knr, U may be empty or an underscore; expand it
 
9090
    U=`sed -n 's/^U = //p' < "$mf"`
 
9091
    # Find all dependency output files, they are included files with
 
9092
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9093
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
9094
    # expansion.
 
9095
    for file in `sed -n "
 
9096
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9097
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9098
      # Make sure the directory exists.
 
9099
      test -f "$dirpart/$file" && continue
 
9100
      fdir=`$as_dirname -- "$file" ||
14410
9101
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14411
9102
         X"$file" : 'X\(//\)[^/]' \| \
14412
9103
         X"$file" : 'X\(//\)$' \| \
14413
9104
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14414
 
echo X"$file" |
14415
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14416
 
            s//\1/
14417
 
            q
14418
 
          }
14419
 
          /^X\(\/\/\)[^/].*/{
14420
 
            s//\1/
14421
 
            q
14422
 
          }
14423
 
          /^X\(\/\/\)$/{
14424
 
            s//\1/
14425
 
            q
14426
 
          }
14427
 
          /^X\(\/\).*/{
14428
 
            s//\1/
14429
 
            q
14430
 
          }
14431
 
          s/.*/./; q'`
14432
 
    { as_dir=$dirpart/$fdir
14433
 
  case $as_dir in #(
14434
 
  -*) as_dir=./$as_dir;;
14435
 
  esac
14436
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14437
 
    as_dirs=
14438
 
    while :; do
14439
 
      case $as_dir in #(
14440
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14441
 
      *) as_qdir=$as_dir;;
14442
 
      esac
14443
 
      as_dirs="'$as_qdir' $as_dirs"
14444
 
      as_dir=`$as_dirname -- "$as_dir" ||
14445
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14446
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
14447
 
         X"$as_dir" : 'X\(//\)$' \| \
14448
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14449
 
echo X"$as_dir" |
14450
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14451
 
            s//\1/
14452
 
            q
14453
 
          }
14454
 
          /^X\(\/\/\)[^/].*/{
14455
 
            s//\1/
14456
 
            q
14457
 
          }
14458
 
          /^X\(\/\/\)$/{
14459
 
            s//\1/
14460
 
            q
14461
 
          }
14462
 
          /^X\(\/\).*/{
14463
 
            s//\1/
14464
 
            q
14465
 
          }
14466
 
          s/.*/./; q'`
14467
 
      test -d "$as_dir" && break
 
9105
$as_echo X"$file" |
 
9106
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
9107
            s//\1/
 
9108
            q
 
9109
          }
 
9110
          /^X\(\/\/\)[^/].*/{
 
9111
            s//\1/
 
9112
            q
 
9113
          }
 
9114
          /^X\(\/\/\)$/{
 
9115
            s//\1/
 
9116
            q
 
9117
          }
 
9118
          /^X\(\/\).*/{
 
9119
            s//\1/
 
9120
            q
 
9121
          }
 
9122
          s/.*/./; q'`
 
9123
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
9124
      # echo "creating $dirpart/$file"
 
9125
      echo '# dummy' > "$dirpart/$file"
14468
9126
    done
14469
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14470
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14471
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
14472
 
   { (exit 1); exit 1; }; }; }
14473
 
    # echo "creating $dirpart/$file"
14474
 
    echo '# dummy' > "$dirpart/$file"
14475
9127
  done
14476
 
done
 
9128
}
14477
9129
 ;;
 
9130
    "t_client.sh":F) chmod +x t_client.sh ;;
14478
9131
 
14479
9132
  esac
14480
9133
done # for ac_tag
14481
9134
 
14482
9135
 
14483
 
{ (exit 0); exit 0; }
 
9136
as_fn_exit 0
14484
9137
_ACEOF
14485
 
chmod +x $CONFIG_STATUS
14486
9138
ac_clean_files=$ac_clean_files_save
14487
9139
 
 
9140
test $ac_write_fail = 0 ||
 
9141
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
9142
 
14488
9143
 
14489
9144
# configure is writing to config.log, and then calls config.status.
14490
9145
# config.status does its own redirection, appending to config.log.
14504
9159
  exec 5>>config.log
14505
9160
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14506
9161
  # would make configure fail if this is the last instruction.
14507
 
  $ac_cs_success || { (exit 1); exit 1; }
 
9162
  $ac_cs_success || as_fn_exit 1
 
9163
fi
 
9164
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
9165
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
9166
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14508
9167
fi
14509
9168